#include <forms.h>
This class provides a common interface with GTK+ windows that are here called "Forms". VDKForm provides common functionalities for all derived classes.
VDKForm::VDKForm | ( | VDKForm & | ) | [inline, private] |
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:
|
VDKForm::~VDKForm | ( | ) | [virtual] |
Destructor
bool VDKForm::Destroy | ( | ) |
Explicitely destroy a form.
Reimplemented from VDKObject.
virtual int VDKForm::isA | ( | ) | [inline, virtual] |
returns an enum id (incomplete and not so useful)
Reimplemented from VDKObject.
VDKBox* VDKForm::Box | ( | ) | [inline] |
return inner box
void VDKForm::Show | ( | GtkWindowPosition | pos = GTK_WIN_POS_NONE |
) | [virtual] |
Shows form.
pos | indicates initial form position, can be one of the following:
|
void VDKForm::Hide | ( | ) | [virtual] |
Hides form
void VDKForm::ShowModal | ( | GtkWindowPosition | pos = GTK_WIN_POS_NONE |
) | [virtual] |
Shows a form in modal behaviour
pos | indicates initial form position, can be one of the following:
|
bool VDKForm::IsModal | ( | ) | [inline] |
Return if a showed window is modal or not
void VDKForm::Add | ( | VDKObject * | obj, | |
int | justify = l_justify , |
|||
int | expand = TRUE , |
|||
int | fill = TRUE , |
|||
int | padding = 1 | |||
) | [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.
VDKForm* VDKForm::Owner | ( | ) | [inline] |
Return form owner Tip: returns NULL id <this> is main form
Reimplemented from VDKObject.
bool VDKForm::CanClose | ( | void | ) | [virtual] |
Placeholder for subclasses. User should override this returning a false (don't close) or true (close) value.
Reimplemented in VDKFileDialog, and VDKFileIconDialog.
void VDKForm::Close | ( | void | ) | [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.
virtual void VDKForm::Setup | ( | void | ) | [pure virtual] |
Must be overridden by subclasses, in this method user fills form with useful widgets
Reimplemented from VDKObject.
Implemented in VDKFileDialog, VDKFileSel, VDKFileChooser, and VDKFileIconDialog.
void VDKForm::Raise | ( | ) |
Raises form
void VDKForm::Lower | ( | ) |
Lower form
void VDKForm::SetVisible | ( | bool | visible | ) | [inline] |
bool VDKForm::GetVisible | ( | ) | [inline] |
Returns object visibility
Reimplemented from VDKObject.
VDKApplication* VDKForm::app [protected] |
owner application address
ChildList VDKForm::childs [protected] |
child and child garbage list
GtkWidget* VDKForm::window [protected] |
underlaying gtk+ window
VDKBox* VDKForm::box [protected] |
default inner box
bool VDKForm::isModal [protected] |
modal flag
bool VDKForm::never_showed [protected] |
never showed flag
VDKPoint VDKForm::_oldSize [protected] |
size storage
int VDKForm::modalCount [protected] |
counts how many modal childs we have should be always max 1
VDKReadWriteValueProp<VDKForm,bool> VDKForm::Visible |
Setting this property will show/hide or get object visibility
Reimplemented from VDKObject.