2009-08-17 10:41:51 +00:00
|
|
|
/***************************************************************************
|
|
|
|
|
|
|
|
gsplitter.h
|
|
|
|
|
|
|
|
(c) 2000-2009 Benoît Minisini <gambas@users.sourceforge.net>
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
***************************************************************************/
|
2007-12-30 16:41:49 +00:00
|
|
|
#ifndef __GSPLITTER_H
|
|
|
|
#define __GSPLITTER_H
|
|
|
|
|
|
|
|
class gSplitter : public gContainer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
gSplitter(gContainer *parent, bool vert);
|
|
|
|
|
|
|
|
//"Properties"
|
|
|
|
char* layout();
|
|
|
|
void setLayout(char *vl);
|
|
|
|
|
|
|
|
//int childCount();
|
|
|
|
//gControl* child(int index);
|
|
|
|
|
|
|
|
//"Methods"
|
|
|
|
virtual void performArrange();
|
|
|
|
virtual void resize(int w, int h);
|
|
|
|
|
|
|
|
//"Signals"
|
|
|
|
void (*onResize)(gControl *sender);
|
|
|
|
|
|
|
|
//"Private"
|
|
|
|
virtual void insert(gControl *child);
|
|
|
|
virtual void remove(gControl *child);
|
|
|
|
void updateChild(GtkWidget *wid = 0);
|
2008-03-31 19:04:28 +00:00
|
|
|
void updateVisibility();
|
2007-12-30 16:41:49 +00:00
|
|
|
GtkPaned *curr;
|
|
|
|
bool vertical;
|
|
|
|
GtkPaned *next(GtkPaned *iter);
|
[DEVELOPMENT ENVIRONMENT]
* BUG: Use TextEdit.RichText insted of TextEdit.Text.
* BUG: END SUB can be the end of a method. The class analyze now takes
that into account.
[HELP]
* BUG: Fixed the generated treeview.
[COMPILER]
* OPT: The NOT operator used just at the beginning of a conditional
expression is optimized. Consequently, an expression like 'IF NOT 2' is
now equivalent to 'IF 2 = 0' and not to 'IF (NOT 2) <> 0' as before. In
other words, the boolean conversion is now done before the NOT, and not
after. The following instructions are concerned: IF, WHILE, UNTIL.
* NEW: BYREF is new keyword that is a more readable synonymous of '@'.
[GB.DB.FORM]
* BUG: Correctly manage data controls inside TabStrip-like containers.
* BUG: Setting the focus on a non-initialized DataControl does not raise
an error anymore.
[GB.GTK]
* BUG: HSplitter.Layout and VSplitter.Layout now work correctly. It is a
list of children widths, hidden children having a zero width.
* BUG: Window arrangement is done before the Open event is raised, as in
gb.qt.
* BUG: Keyboard, focus and mouse events now work correctly on Window and
DrawingArea controls.
[GB.QT]
* BUG: HSplitter.Layout and VSplitter.Layout now work correctly. It is a
list of children widths, hidden children having a zero width.
* BUG: Many warning fixes.
* BUG: Now the Control.Visible property works like in gb.gtk, i.e. it
returns if the control was not explicitely hidden.
git-svn-id: svn://localhost/gambas/trunk@1060 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-02-06 00:25:48 +00:00
|
|
|
int handleCount();
|
2007-12-30 16:41:49 +00:00
|
|
|
bool _notify;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|