gwenhywfar 5.12.0
CppDialog Class Reference

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

#include <cppdialog.hpp>

Inheritance diagram for CppDialog:

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() [1/2]

◆ ~CppDialog()

~CppDialog ( )
virtual

Definition at line 138 of file cppdialog.cpp.

References _dialog, CppDialog(), and GWEN_INHERIT_UNLINK.

Here is the call graph for this function:

◆ CppDialog() [2/2]

CppDialog ( )
protected

Definition at line 116 of file cppdialog.cpp.

References _dialog, and NULL.

Member Function Documentation

◆ emitSignal()

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

Definition at line 218 of file cppdialog.cpp.

References _dialog, and GWEN_Dialog_EmitSignal().

Here is the call graph for this function:

◆ findWidgetByImplData()

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

Definition at line 239 of file cppdialog.cpp.

References _dialog, and GWEN_Dialog_FindWidgetByImplData().

Here is the call graph for this function:

◆ findWidgetByName()

GWEN_WIDGET * findWidgetByName ( const char * name)
protected

Definition at line 232 of file cppdialog.cpp.

References _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 in FOX16_GuiDialog, QT4_GuiDialog, and QT5_GuiDialog.

Definition at line 206 of file cppdialog.cpp.

References _dialog.

◆ getCInterface()

GWEN_DIALOG * getCInterface ( )

Definition at line 162 of file cppdialog.cpp.

References _dialog.

Referenced by CppDialogLinker.

Here is the caller graph for this function:

◆ getDialog()

CppDialog * getDialog ( GWEN_DIALOG * dlg)
static

Definition at line 146 of file cppdialog.cpp.

References CppDialog(), GWEN_Dialog_GetParentDialog(), and GWEN_INHERIT_GETDATA.

Referenced by CppDialogLinker, CppWidget::getDialog(), FOX16_GuiDialog::getDialog(), QT4_GuiDialog::getDialog(), and QT5_GuiDialog::getDialog().

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 in FOX16_GuiDialog, QT4_GuiDialog, and QT5_GuiDialog.

Definition at line 181 of file cppdialog.cpp.

References _dialog.

◆ getWidgets()

GWEN_WIDGET_TREE * getWidgets ( ) const
protected

Definition at line 225 of file cppdialog.cpp.

References _dialog, and GWEN_Dialog_GetWidgets().

Here is the call graph for this function:

◆ setCharProperty()

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

Reimplemented in FOX16_GuiDialog, QT4_GuiDialog, and QT5_GuiDialog.

Definition at line 193 of file cppdialog.cpp.

References _dialog, and GWEN_ERROR_NOT_SUPPORTED.

◆ setIntProperty()

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

Reimplemented in FOX16_GuiDialog, QT4_GuiDialog, and QT5_GuiDialog.

Definition at line 168 of file cppdialog.cpp.

References _dialog, and GWEN_ERROR_NOT_SUPPORTED.

◆ CppDialogLinker

friend class CppDialogLinker
friend

Definition at line 33 of file cppdialog.hpp.

References CppDialog(), CppDialogLinker, getCInterface(), and getDialog().

Referenced by CppDialogLinker.

Field Documentation

◆ _dialog


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