gwenhywfar  4.3.1
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)
 CppDialog (GWEN_DIALOG *dlg)
GWEN_DIALOGgetCInterface ()
GWEN_DIALOGgetCInterface ()
virtual ~CppDialog ()
virtual ~CppDialog ()

Static Public Member Functions

static CppDialoggetDialog (GWEN_DIALOG *dlg)
static CppDialoggetDialog (GWEN_DIALOG *dlg)

Protected Member Functions

 CppDialog ()
 CppDialog ()
int emitSignal (GWEN_DIALOG_EVENTTYPE t, const char *sender)
int emitSignal (GWEN_DIALOG_EVENTTYPE t, const char *sender)
GWEN_WIDGETfindWidgetByImplData (int index, void *ptr)
GWEN_WIDGETfindWidgetByImplData (int index, void *ptr)
GWEN_WIDGETfindWidgetByName (const char *name)
GWEN_WIDGETfindWidgetByName (const char *name)
virtual const char * getCharProperty (GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
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)
virtual int getIntProperty (GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
GWEN_WIDGET_TREE * getWidgets () const
GWEN_WIDGET_TREE * getWidgets () const
virtual int setCharProperty (GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
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)
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 Preuss<martin@aquamaniac.de>

Definition at line 29 of file cpp/cppdialog.hpp.


Constructor & Destructor Documentation

CppDialog ( GWEN_DIALOG dlg)
~CppDialog ( ) [virtual]

Definition at line 140 of file cpp/cppdialog.cpp.

References _dialog, and GWEN_INHERIT_UNLINK.

CppDialog ( ) [protected]

Definition at line 116 of file cpp/cppdialog.cpp.

CppDialog ( GWEN_DIALOG dlg)
virtual ~CppDialog ( ) [virtual]
CppDialog ( ) [protected]

Member Function Documentation

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

Definition at line 220 of file cpp/cppdialog.cpp.

References _dialog, and GWEN_Dialog_EmitSignal().

int emitSignal ( GWEN_DIALOG_EVENTTYPE  t,
const char *  sender 
) [protected]
GWEN_WIDGET * findWidgetByImplData ( int  index,
void *  ptr 
) [protected]

Definition at line 241 of file cpp/cppdialog.cpp.

References _dialog, and GWEN_Dialog_FindWidgetByImplData().

GWEN_WIDGET* findWidgetByImplData ( int  index,
void *  ptr 
) [protected]
GWEN_WIDGET * findWidgetByName ( const char *  name) [protected]

Definition at line 234 of file cpp/cppdialog.cpp.

References _dialog, and GWEN_Dialog_FindWidgetByName().

GWEN_WIDGET* findWidgetByName ( const char *  name) [protected]
const char * getCharProperty ( GWEN_WIDGET w,
GWEN_DIALOG_PROPERTY  prop,
int  index,
const char *  defaultValue 
) [protected, virtual]

Reimplemented in FOX16_GuiDialog, and QT4_GuiDialog.

Definition at line 208 of file cpp/cppdialog.cpp.

References _dialog.

virtual const char* getCharProperty ( GWEN_WIDGET w,
GWEN_DIALOG_PROPERTY  prop,
int  index,
const char *  defaultValue 
) [protected, virtual]

Reimplemented in FOX16_GuiDialog, and QT4_GuiDialog.

CppDialog * getDialog ( GWEN_DIALOG dlg) [static]

Reimplemented in FOX16_GuiDialog, and QT4_GuiDialog.

Definition at line 148 of file cpp/cppdialog.cpp.

References GWEN_Dialog_GetParentDialog(), and GWEN_INHERIT_GETDATA.

static CppDialog* getDialog ( GWEN_DIALOG dlg) [static]

Reimplemented in FOX16_GuiDialog, and QT4_GuiDialog.

int getIntProperty ( GWEN_WIDGET w,
GWEN_DIALOG_PROPERTY  prop,
int  index,
int  defaultValue 
) [protected, virtual]

Reimplemented in FOX16_GuiDialog, and QT4_GuiDialog.

Definition at line 183 of file cpp/cppdialog.cpp.

References _dialog.

virtual int getIntProperty ( GWEN_WIDGET w,
GWEN_DIALOG_PROPERTY  prop,
int  index,
int  defaultValue 
) [protected, virtual]

Reimplemented in FOX16_GuiDialog, and QT4_GuiDialog.

GWEN_WIDGET_TREE * getWidgets ( ) const [protected]

Definition at line 227 of file cpp/cppdialog.cpp.

References _dialog, and GWEN_Dialog_GetWidgets().

GWEN_WIDGET_TREE* getWidgets ( ) const [protected]
int setCharProperty ( GWEN_WIDGET w,
GWEN_DIALOG_PROPERTY  prop,
int  index,
const char *  value,
int  doSignal 
) [protected, virtual]

Reimplemented in FOX16_GuiDialog, and QT4_GuiDialog.

Definition at line 195 of file cpp/cppdialog.cpp.

References _dialog, and GWEN_ERROR_NOT_SUPPORTED.

virtual int setCharProperty ( GWEN_WIDGET w,
GWEN_DIALOG_PROPERTY  prop,
int  index,
const char *  value,
int  doSignal 
) [protected, virtual]

Reimplemented in FOX16_GuiDialog, and QT4_GuiDialog.

int setIntProperty ( GWEN_WIDGET w,
GWEN_DIALOG_PROPERTY  prop,
int  index,
int  value,
int  doSignal 
) [protected, virtual]

Reimplemented in FOX16_GuiDialog, and QT4_GuiDialog.

Definition at line 170 of file cpp/cppdialog.cpp.

References _dialog, and GWEN_ERROR_NOT_SUPPORTED.

virtual int setIntProperty ( GWEN_WIDGET w,
GWEN_DIALOG_PROPERTY  prop,
int  index,
int  value,
int  doSignal 
) [protected, virtual]

Reimplemented in FOX16_GuiDialog, and QT4_GuiDialog.


Friends And Related Function Documentation

CppDialogLinker [friend]

Definition at line 30 of file cpp/cppdialog.hpp.


Field Documentation

GWEN_DIALOG * _dialog [protected]

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