gSAFE  1.3.8
Signals | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
HDialog Class Reference

#include <dialib.h>

Inheritance diagram for HDialog:
HDialogData

Signals

void listItemChanged (void)
 
void tbutton1Clicked (void)
 
void tbutton2Clicked (void)
 

Public Member Functions

 HDialog (QWidget *parent=0, 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)
 
 ~HDialog (void)
 
QFrame * get1DispCont (void)
 
QFrame * get2DispCont (void)
 
QToolButton * getToolButtObj (int i)
 
- Public Member Functions inherited from HDialogData
 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)
 

Static Public Member Functions

static int run (QWidget *parent=0, 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

QWidget * parent_dialog
 
- Public Attributes inherited from HDialogData
QPushButton * closebutton
 
bool declose
 
bool deletedata
 
HDispPlainDataMatrixdmatrix1
 
HDispPlainDataMatrixdmatrix2
 
bool EscC
 
bool inscroll
 
HDispListlist1
 
HDispListlist2
 
QToolButton * pixTool [8]
 
QScrollArea * sv1
 
QScrollArea * sv2
 
bool t1AC
 
bool t1C
 
bool t2AC
 
bool t2C
 
HDispTabletable1
 
HDispTabletable2
 
bool tb1clicked
 
bool tb2clicked
 
QPushButton * toolbutton1
 
QPushButton * toolbutton2
 

Protected Member Functions

void keyPressEvent (QKeyEvent *e)
 

Detailed Description

Standard quick buildable paramerized dialog box based on HDialogData.

hdialib.png

See HDialogData for parameters

...
HDialog *newdialog;
newdialog = new HDialog(parent,"Add a new item",item_table,NULL,
"Ok|EscC|Vert|OkIsAccept","New item","","",NULL);
if(newdialog->exec())
{
runCheck(); // check the data
if(item_table->insertRecord() != 0)
{
//error occured
...
}
}
delete newdialog;
...

Definition at line 149 of file dialib.h.

Constructor & Destructor Documentation

HDialog::HDialog ( QWidget *  parent = 0,
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 
)

Create a special generated QDialog with necessary GUI (See the HDialogData class description for details)

Parameters
basewthe base QWidget descendant where the GUI is builded.
captionthe Caption text
dobj1Data object 1
dobj2Data object 2
funcThe function modifiers (See class description)
ttexttitle text
tbutt1the text of Button1
tbutt2the text of Button2
toolbuttonsThe pixmaps of toolbuttons.
xsizethe initial horizontal size
ysizethe initial vertical size

Definition at line 285 of file dialib.cpp.

HDialog::~HDialog ( void  )

Destructor

Definition at line 310 of file dialib.cpp.

Member Function Documentation

QFrame* HDialog::get1DispCont ( void  )
inline

Returns the first display container HDispTable or HDispList if exists. Otherwise returns null.

Definition at line 200 of file dialib.h.

QFrame* HDialog::get2DispCont ( void  )
inline

Returns the second display container HDispTable or HDispList if exists. Otherwise returns null.

Definition at line 206 of file dialib.h.

QToolButton* HDialog::getToolButtObj ( int  i)
inline

Returns the generated toolbutton object by it's index.

Definition at line 196 of file dialib.h.

void HDialog::listItemChanged ( void  )
signal

This signal is emitted when one object is HList and the listItemChanged signal of HList is emitted

int HDialog::run ( QWidget *  parent = 0,
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 
)
static

Static function to start an independent generated dialog (alloc a object, exec, and delete it.) See HDialogData for details of parameters

Definition at line 265 of file dialib.cpp.

void HDialog::tbutton1Clicked ( void  )
signal

This signal is emitted when the Button1 is pressed

void HDialog::tbutton2Clicked ( void  )
signal

This signal is emitted when the Button2 is pressed

Member Data Documentation

QWidget* HDialog::parent_dialog

The parent dialog

Definition at line 193 of file dialib.h.


The documentation for this class was generated from the following files: