gwenhywfar  4.7.0beta
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
CppDialog Class Reference

A C++ binding for the C module GWEN_DIALOG. More...

#include <cppdialog.hpp>

Inheritance diagram for CppDialog:
FOX16_GuiDialog QT4_GuiDialog

Public Member Functions

 CppDialog (GWEN_DIALOG *dlg)
 
GWEN_DIALOGgetCInterface ()
 
virtual ~CppDialog ()
 

Static Public Member Functions

static CPPGUI_API CppDialoggetDialog (GWEN_DIALOG *dlg)
 

Protected Member Functions

 CppDialog ()
 
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)
 

Protected Attributes

GWEN_DIALOG_dialog
 

Friends

class CppDialogLinker
 

Detailed Description

A C++ binding for the C module GWEN_DIALOG.

This class simply is a C++ binding for the C module GWEN_DIALOG. It redirects C callbacks used by GWEN_DIALOG to virtual functions in this class.

Author
Martin Preussmarti.nosp@m.n@aq.nosp@m.uaman.nosp@m.iac..nosp@m.de

Definition at line 32 of file cppdialog.hpp.

Constructor & Destructor Documentation

CppDialog ( GWEN_DIALOG dlg)
~CppDialog ( )
virtual

Definition at line 140 of file cppdialog.cpp.

References _dialog, and GWEN_INHERIT_UNLINK.

CppDialog ( )
protected

Definition at line 116 of file cppdialog.cpp.

Member Function Documentation

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

Definition at line 220 of file cppdialog.cpp.

References _dialog, and GWEN_Dialog_EmitSignal().

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

Definition at line 241 of file cppdialog.cpp.

References _dialog, and GWEN_Dialog_FindWidgetByImplData().

GWEN_WIDGET * findWidgetByName ( const char *  name)
protected

Definition at line 234 of file cppdialog.cpp.

References _dialog, and GWEN_Dialog_FindWidgetByName().

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

Reimplemented in FOX16_GuiDialog, and QT4_GuiDialog.

Definition at line 208 of file cppdialog.cpp.

References _dialog.

GWEN_DIALOG * getCInterface ( )
CppDialog * getDialog ( GWEN_DIALOG dlg)
static
int getIntProperty ( GWEN_WIDGET w,
GWEN_DIALOG_PROPERTY  prop,
int  index,
int  defaultValue 
)
protectedvirtual

Reimplemented in FOX16_GuiDialog, and QT4_GuiDialog.

Definition at line 183 of file cppdialog.cpp.

References _dialog.

GWEN_WIDGET_TREE * getWidgets ( ) const
protected

Definition at line 227 of file cppdialog.cpp.

References _dialog, and GWEN_Dialog_GetWidgets().

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

Reimplemented in FOX16_GuiDialog, and QT4_GuiDialog.

Definition at line 195 of file cppdialog.cpp.

References _dialog, and GWEN_ERROR_NOT_SUPPORTED.

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

Reimplemented in FOX16_GuiDialog, and QT4_GuiDialog.

Definition at line 170 of file cppdialog.cpp.

References _dialog, and GWEN_ERROR_NOT_SUPPORTED.

Friends And Related Function Documentation

friend class CppDialogLinker
friend

Definition at line 33 of file cppdialog.hpp.

Field Documentation

GWEN_DIALOG* _dialog
protected

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