vdk 2.4.0
|
VDKForm widgets, generally the outermost widget container. More...
#include <forms.h>
Public Member Functions | |
VDKForm (VDKApplication *app, char *title=(char *) NULL, int mode=v_box, GtkWindowType display=GTK_WINDOW_TOPLEVEL) | |
VDKForm (VDKForm *owner, char *title=(char *) NULL, int mode=v_box, GtkWindowType display=GTK_WINDOW_TOPLEVEL) | |
virtual | ~VDKForm () |
bool | Destroy () |
virtual int | isA () |
VDKBox * | Box () |
virtual void | Show (GtkWindowPosition pos=GTK_WIN_POS_NONE) |
virtual void | Hide () |
virtual void | ShowModal (GtkWindowPosition pos=GTK_WIN_POS_NONE) |
bool | IsModal () |
virtual void | Add (VDKObject *obj, int justify=l_justify, int expand=TRUE, int fill=TRUE, int padding=1) |
VDKForm * | Owner () |
virtual bool | CanClose (void) |
virtual void | Close (void) |
virtual void | Setup (void)=0 |
void | Raise () |
void | Lower () |
void | SetVisible (bool flag) |
bool | GetVisible () |
![]() | |
VDKRgb | GetBackground (GtkStateType state=GTK_STATE_NORMAL) |
VDKRgb | GetForeground (GtkStateType state=GTK_STATE_NORMAL) |
VDKObject (VDKForm *owner=NULL) | |
VDKObject (VDKForm *owner, GtkWidget *widget) | |
virtual | ~VDKObject () |
virtual GtkWidget * | Widget () |
GtkWidget * | ConnectingWidget () |
GtkWidget * | WrappedWidget () |
virtual void | SetFont (VDKFont *f) |
VDKFont * | GetFont () |
void | SetCursor (VDKCursorType) |
VDKCursorType | GetCursor () |
virtual void | SetForeground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL) |
virtual void | SetBackground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL) |
void | SetSize (int w, int h) |
void | SetUsize (VDKPoint s) |
virtual void | SetTip (char *) |
ItemList & | Items () |
void | Draw (GdkRectangle *area=NULL) |
void | SignalEmit (int signal) |
void | SignalEmit (char *sig) |
void | SignalEmitParent (int signal) |
void | SignalEmitParent (char *sig) |
void | GrabFocus () |
VDKObject * | Parent (VDKObject *p=NULL) |
int | SignalConnect (VDKObject *obj, char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false) |
int | SignalConnect (char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false) |
bool | SignalDisconnect (int connection) |
int | EventConnect (VDKObject *obj, char *event, bool(VDKObject::*method)(VDKObject *, GdkEvent *), bool after=false) |
int | EventConnect (char *, bool(VDKObject::*)(VDKObject *, GdkEvent *), bool after=false) |
bool | EventDisconnect (int connection) |
Protected Attributes | |
VDKApplication * | app |
ChildList | childs |
GtkWidget * | window |
VDKBox * | box |
bool | isModal |
bool | never_showed |
VDKPoint | _oldSize |
int | modalCount |
![]() | |
VDKObjectSignal | s_clicked |
GtkWidget * | widget |
GtkWidget * | sigwid |
VDKObject * | parent |
Private Member Functions | |
VDKForm (VDKForm &) | |
VDKForm & | operator= (VDKForm &) |
Additional Inherited Members | |
![]() | |
VDKReadWriteValueProp < VDKObject, VDKRgb > | NormalBackground |
VDKReadWriteValueProp < VDKObject, VDKFont * > | Font |
SizeObjectProp | Usize |
VDKReadWriteValueProp < VDKObject, bool > | Enabled |
VDKReadWriteValueProp < VDKObject, VDKCursorType > | Cursor |
VDKReadWriteValueProp < VDKObject, bool > | Visible |
VDKForm widgets, generally the outermost widget container.
This class provides a common interface with GTK+ windows that are here called "Forms". VDKForm provides common functionalities for all derived classes.
|
inlineprivate |
copy and assignement prohibited
VDKForm::VDKForm | ( | VDKApplication * | app, |
char * | title = (char *) NULL , |
||
int | mode = v_box , |
||
GtkWindowType | display = GTK_WINDOW_TOPLEVEL |
||
) |
constructor, makes a main form, application child
app | the application that owns the form |
title | |
mode | as inner box should be, either vertical (v_box) or horizontal (h_box) |
display | display type can be one of the following:
|
VDKForm::VDKForm | ( | VDKForm * | owner, |
char * | title = (char *) NULL , |
||
int | mode = v_box , |
||
GtkWindowType | display = GTK_WINDOW_TOPLEVEL |
||
) |
constructor, makes a child form
owner | the form that owns the child form |
title | |
mode | as inner box should be, either vertical (v_box) or horizontal (h_box) |
display | display type can be one of the following:
|
|
virtual |
Destructor
|
virtual |
Add an object to the form. Tip: <obj> will be actually added to inner box same as form->Box()->Add();
obj | the object to be added |
justify | where the object wil be added, can be:
|
expand | if true objet will expand from container center |
fill | if true object will fill all available space |
padding | how many pixels are left around object |
Reimplemented from VDKObject.
|
inline |
return inner box
|
virtual |
Placeholder for subclasses. User should override this returning a false (don't close) or true (close) value.
Reimplemented in VDKFileDialog, and VDKFileIconDialog.
|
virtual |
Closes the form, if form is main application form it quits application as well. Call CanClose() before, if it returns true closes the form otherwise form won't be closed.
bool VDKForm::Destroy | ( | ) |
Explicitely destroy a form.
Reimplemented from VDKObject.
|
inline |
Returns object visibility
Reimplemented from VDKObject.
|
virtual |
Hides form
|
inlinevirtual |
returns an enum id (incomplete and not so useful)
Reimplemented from VDKObject.
|
inline |
Return if a showed window is modal or not
void VDKForm::Lower | ( | ) |
Lower form
|
inline |
Return form owner Tip: returns NULL id <this> is main form
Reimplemented from VDKObject.
void VDKForm::Raise | ( | ) |
Raises form
|
pure virtual |
Must be overridden by subclasses, in this method user fills form with useful widgets
Reimplemented from VDKObject.
Implemented in VDKFileDialog, VDKFileSel, and VDKFileIconDialog.
|
inline |
|
virtual |
Shows form.
pos | indicates initial form position, can be one of the following:
|
|
virtual |
Shows a form in modal behaviour
pos | indicates initial form position, can be one of the following:
|
|
protected |
size storage
|
protected |
owner application address
|
protected |
default inner box
|
protected |
child and child garbage list
|
protected |
modal flag
|
protected |
counts how many modal childs we have should be always max 1
|
protected |
never showed flag
|
protected |
underlaying gtk+ window