gSAFE
1.3.8
|
#include <dialib.h>
Public Member Functions | |
HDialogData (void) | |
int | makeGui (QWidget *basew, QString caption=0, HBase *dobj1=NULL, HBase *dobj2=NULL, QString func="Ok|EscC|Vert", QString ttext="", QString tbutt1="", QString tbutt2="", QList< QPixmap * > *toolbuttons=NULL, int xsize=320, int ysize=240) |
Public Attributes | |
QPushButton * | closebutton |
bool | declose |
bool | deletedata |
HDispPlainDataMatrix * | dmatrix1 |
HDispPlainDataMatrix * | dmatrix2 |
bool | EscC |
bool | inscroll |
HDispList * | list1 |
HDispList * | list2 |
QToolButton * | pixTool [8] |
QScrollArea * | sv1 |
QScrollArea * | sv2 |
bool | t1AC |
bool | t1C |
bool | t2AC |
bool | t2C |
HDispTable * | table1 |
HDispTable * | table2 |
bool | tb1clicked |
bool | tb2clicked |
QPushButton * | toolbutton1 |
QPushButton * | toolbutton2 |
Standard quick paramerized GUI builder class.
You can build GUI of dialog box, widget or frame, easily by parameters. You have to call the makeGui() function to build the necessary GUI. The gui will be resizeable, with stretch.
Possible parts of the builded gui:
Some standard composition of builded GUI. In the picture all possible parts is enabled, keep in mind that most of them is optional!
The functions parameter is text which can be the combination of the following words ("Ok|EscC|Vert")
If you would like to generate the dialog box too, you can use the HDialog class instead this.
A small code part from the tutorial:
HDialogData::HDialogData | ( | void | ) |
Constructor. Does nothing
Definition at line 18 of file dialib.cpp.
int HDialogData::makeGui | ( | QWidget * | basew, |
QString | caption = 0 , |
||
HBase * | dobj1 = NULL , |
||
HBase * | dobj2 = NULL , |
||
QString | func = "Ok|EscC|Vert" , |
||
QString | ttext = "" , |
||
QString | tbutt1 = "" , |
||
QString | tbutt2 = "" , |
||
QList< QPixmap * > * | toolbuttons = NULL , |
||
int | xsize = 320 , |
||
int | ysize = 240 |
||
) |
Generate the necessary GUI (See the class description for details)
basew | the base QWidget descendant where the GUI is builded. |
caption | the Caption text |
dobj1 | Data object 1 |
dobj2 | Data object 2 |
func | The function modifiers (See class description) |
ttext | title text |
tbutt1 | the text of Button1 |
tbutt2 | the text of Button2 |
toolbuttons | The pixmaps of toolbuttons. |
xsize | the initial horizontal size |
ysize | the initial vertical size |
Definition at line 41 of file dialib.cpp.
bool HDialogData::tb1clicked |
bool HDialogData::tb2clicked |