gwenhywfar 5.10.2
cppdialog.hpp
Go to the documentation of this file.
1/***************************************************************************
2 begin : Fri Jan 22 2010
3 copyright : (C) 2010 by Martin Preuss
4 email : martin@libchipcard.de
5
6 ***************************************************************************
7 * Please see toplevel file COPYING for license details *
8 ***************************************************************************/
9
10#ifndef CPPDIALOG_HPP
11#define CPPDIALOG_HPP
12
13#include <gwen-gui-cpp/api.h>
14
16
17#include <list>
18#include <string>
19
20class CppDialog;
21
22
32class CPPGUI_API CppDialog {
33 friend class CppDialogLinker;
34
35private:
36 GWEN_DIALOG_SETINTPROPERTY_FN _setIntPropertyFn;
37 GWEN_DIALOG_GETINTPROPERTY_FN _getIntPropertyFn;
38 GWEN_DIALOG_SETCHARPROPERTY_FN _setCharPropertyFn;
39 GWEN_DIALOG_GETCHARPROPERTY_FN _getCharPropertyFn;
40
41public:
43 virtual ~CppDialog();
44
46
47 static CPPGUI_API CppDialog *getDialog(GWEN_DIALOG *dlg);
48
49protected:
51
53
54 int emitSignal(GWEN_DIALOG_EVENTTYPE t, const char *sender);
55
56 GWEN_WIDGET_TREE *getWidgets() const;
57
58 GWEN_WIDGET *findWidgetByName(const char *name);
59
60 GWEN_WIDGET *findWidgetByImplData(int index, void *ptr);
61
62
65 int index,
66 int value,
67 int doSignal);
68
71 int index,
72 int defaultValue);
73
76 int index,
77 const char *value,
78 int doSignal);
79
80 virtual const char *getCharProperty(GWEN_WIDGET *w,
82 int index,
83 const char *defaultValue);
84
85};
86
87
88
89
90#endif /* CPPDIALOG_HPP */
91
92
A C++ binding for the C module GWEN_DIALOG.
Definition cppdialog.hpp:32
int emitSignal(GWEN_DIALOG_EVENTTYPE t, const char *sender)
GWEN_DIALOG * getCInterface()
CppDialog(GWEN_DIALOG *dlg)
GWEN_WIDGET_TREE * getWidgets() const
virtual int setCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
virtual ~CppDialog()
GWEN_WIDGET * findWidgetByName(const char *name)
virtual int getIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
GWEN_DIALOG * _dialog
Definition cppdialog.hpp:50
virtual int setIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
static CPPGUI_API CppDialog * getDialog(GWEN_DIALOG *dlg)
virtual const char * getCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
GWEN_WIDGET * findWidgetByImplData(int index, void *ptr)
struct GWEN_DIALOG GWEN_DIALOG
Definition dialog.h:54
GWEN_DIALOG_PROPERTY
Definition dialog.h:260
GWEN_DIALOG_EVENTTYPE
Definition dialog.h:98
const char *GWENHYWFAR_CB(* GWEN_DIALOG_GETCHARPROPERTY_FN)(GWEN_DIALOG *dlg, GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
Definition dialog_be.h:62
int GWENHYWFAR_CB(* GWEN_DIALOG_GETINTPROPERTY_FN)(GWEN_DIALOG *dlg, GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
Definition dialog_be.h:49
int GWENHYWFAR_CB(* GWEN_DIALOG_SETCHARPROPERTY_FN)(GWEN_DIALOG *dlg, GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
Definition dialog_be.h:55
int GWENHYWFAR_CB(* GWEN_DIALOG_SETINTPROPERTY_FN)(GWEN_DIALOG *dlg, GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
Definition dialog_be.h:42
struct GWEN_WIDGET GWEN_WIDGET
Definition widget_be.h:34