gwenhywfar  5.10.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
QT4_GuiDialog Class Reference

#include <qt4_gui_dialog.hpp>

Inheritance diagram for QT4_GuiDialog:
Inheritance graph
[legend]
Collaboration diagram for QT4_GuiDialog:
Collaboration graph
[legend]

Public Member Functions

int closeDialog ()
 
int execute ()
 
GWEN_DIALOGgetCInterface ()
 
QT4_DialogBoxgetMainWindow ()
 
int openDialog ()
 
 QT4_GuiDialog (QT4_Gui *gui, GWEN_DIALOG *dlg)
 
int runDialog (bool untilEnd)
 
bool setup (QWidget *parentWindow)
 
virtual ~QT4_GuiDialog ()
 

Static Public Member Functions

static QT4_GuiDialoggetDialog (GWEN_DIALOG *dlg)
 

Protected Member Functions

int emitSignal (GWEN_DIALOG_EVENTTYPE t, const char *sender)
 
GWEN_WIDGETfindWidgetByImplData (int index, void *ptr)
 
GWEN_WIDGETfindWidgetByName (const char *name)
 
virtual const char * getCharProperty (GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
 
virtual int getIntProperty (GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
 
GWEN_WIDGET_TREE * getWidgets () const
 
virtual int setCharProperty (GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
 
virtual int setIntProperty (GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
 
int setupTree (GWEN_WIDGET *w)
 

Protected Attributes

GWEN_DIALOG_dialog
 
QT4_Gui_gui
 
QT4_DialogBox_mainWidget
 
int _widgetCount
 

Detailed Description

Definition at line 35 of file qt4_gui_dialog.hpp.

Constructor & Destructor Documentation

◆ QT4_GuiDialog()

QT4_GuiDialog ( QT4_Gui gui,
GWEN_DIALOG dlg 
)

Definition at line 82 of file qt4_gui_dialog.cpp.

◆ ~QT4_GuiDialog()

~QT4_GuiDialog ( )
virtual

Definition at line 91 of file qt4_gui_dialog.cpp.

References _mainWidget, and QT4_DialogBox::unlinkFromDialog().

Here is the call graph for this function:

Member Function Documentation

◆ closeDialog()

int closeDialog ( )

Definition at line 153 of file qt4_gui_dialog.cpp.

References CppDialog::_dialog, _mainWidget, DBG_INFO, getMainWindow(), GWEN_Dialog_EmitSignalToAll(), GWEN_DialogEvent_TypeFini, GWEN_ERROR_GENERIC, and NULL.

Referenced by QT4_Gui::closeDialog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ emitSignal()

int emitSignal ( GWEN_DIALOG_EVENTTYPE  t,
const char *  sender 
)
protectedinherited

Definition at line 218 of file cppdialog.cpp.

References CppDialog::_dialog, and GWEN_Dialog_EmitSignal().

Here is the call graph for this function:

◆ execute()

int execute ( )

Definition at line 110 of file qt4_gui_dialog.cpp.

References CppDialog::_dialog, DBG_INFO, getMainWindow(), GWEN_Dialog_EmitSignalToAll(), GWEN_DialogEvent_TypeFini, GWEN_ERROR_GENERIC, and NULL.

Referenced by QT4_Gui::execDialog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findWidgetByImplData()

GWEN_WIDGET * findWidgetByImplData ( int  index,
void *  ptr 
)
protectedinherited

Definition at line 239 of file cppdialog.cpp.

References CppDialog::_dialog, and GWEN_Dialog_FindWidgetByImplData().

Here is the call graph for this function:

◆ findWidgetByName()

GWEN_WIDGET * findWidgetByName ( const char *  name)
protectedinherited

Definition at line 232 of file cppdialog.cpp.

References CppDialog::_dialog, and GWEN_Dialog_FindWidgetByName().

Here is the call graph for this function:

◆ getCharProperty()

const char * getCharProperty ( GWEN_WIDGET w,
GWEN_DIALOG_PROPERTY  prop,
int  index,
const char *  defaultValue 
)
protectedvirtual

Reimplemented from CppDialog.

Definition at line 231 of file qt4_gui_dialog.cpp.

References GWEN_Widget_GetCharProperty().

Here is the call graph for this function:

◆ getCInterface()

GWEN_DIALOG * getCInterface ( )
inherited

◆ getDialog()

QT4_GuiDialog * getDialog ( GWEN_DIALOG dlg)
static

Definition at line 99 of file qt4_gui_dialog.cpp.

References CppDialog::getDialog(), and NULL.

Referenced by QT4_Gui::closeDialog(), and QT4_Gui::runDialog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIntProperty()

int getIntProperty ( GWEN_WIDGET w,
GWEN_DIALOG_PROPERTY  prop,
int  index,
int  defaultValue 
)
protectedvirtual

Reimplemented from CppDialog.

Definition at line 212 of file qt4_gui_dialog.cpp.

References GWEN_Widget_GetIntProperty().

Here is the call graph for this function:

◆ getMainWindow()

QT4_DialogBox* getMainWindow ( )
inline

◆ getWidgets()

GWEN_WIDGET_TREE * getWidgets ( ) const
protectedinherited

Definition at line 225 of file cppdialog.cpp.

References CppDialog::_dialog, and GWEN_Dialog_GetWidgets().

Here is the call graph for this function:

◆ openDialog()

int openDialog ( )

Definition at line 134 of file qt4_gui_dialog.cpp.

References DBG_INFO, getMainWindow(), GWEN_ERROR_GENERIC, and NULL.

Referenced by QT4_Gui::openDialog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ runDialog()

int runDialog ( bool  untilEnd)

Definition at line 178 of file qt4_gui_dialog.cpp.

References QT4_DialogBox::cont(), DBG_INFO, getMainWindow(), GWEN_ERROR_GENERIC, and NULL.

Referenced by QT4_Gui::runDialog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCharProperty()

int setCharProperty ( GWEN_WIDGET w,
GWEN_DIALOG_PROPERTY  prop,
int  index,
const char *  value,
int  doSignal 
)
protectedvirtual

Reimplemented from CppDialog.

Definition at line 221 of file qt4_gui_dialog.cpp.

References GWEN_Widget_SetCharProperty().

Here is the call graph for this function:

◆ setIntProperty()

int setIntProperty ( GWEN_WIDGET w,
GWEN_DIALOG_PROPERTY  prop,
int  index,
int  value,
int  doSignal 
)
protectedvirtual

Reimplemented from CppDialog.

Definition at line 202 of file qt4_gui_dialog.cpp.

References GWEN_Widget_SetIntProperty().

Here is the call graph for this function:

◆ setup()

bool setup ( QWidget *  parentWindow)

Definition at line 355 of file qt4_gui_dialog.cpp.

References CppDialog::_dialog, _mainWidget, DBG_ERROR, DBG_INFO, GWEN_Dialog_EmitSignalToAll(), GWEN_Dialog_GetWidgets(), GWEN_DialogEvent_TypeInit, GWEN_LOGDOMAIN, GWEN_Widget_GetImplData(), NULL, QT4_DIALOG_WIDGET_REAL, and setupTree().

Referenced by QT4_Gui::execDialog(), and QT4_Gui::openDialog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setupTree()

int setupTree ( GWEN_WIDGET w)
protected

Field Documentation

◆ _dialog

GWEN_DIALOG* _dialog
protectedinherited

◆ _gui

QT4_Gui* _gui
protected

Definition at line 50 of file qt4_gui_dialog.hpp.

◆ _mainWidget

QT4_DialogBox* _mainWidget
protected

Definition at line 55 of file qt4_gui_dialog.hpp.

Referenced by closeDialog(), getMainWindow(), setup(), setupTree(), and ~QT4_GuiDialog().

◆ _widgetCount

int _widgetCount
protected

Definition at line 54 of file qt4_gui_dialog.hpp.


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