gwenhywfar
4.10.0beta
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
gwenhywfar4
gwen-gui-cpp
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
15
#include <
gwenhywfar/dialog_be.h
>
16
17
#include <list>
18
#include <string>
19
20
class
CppDialog
;
21
22
32
class
CPPGUI_API
CppDialog
{
33
friend
class
CppDialogLinker;
34
35
private
:
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
41
public
:
42
CppDialog
(
GWEN_DIALOG
*dlg);
43
virtual
~
CppDialog
();
44
45
GWEN_DIALOG
*getCInterface();
46
47
static
CPPGUI_API
CppDialog
*getDialog(
GWEN_DIALOG
*dlg);
48
49
protected
:
50
GWEN_DIALOG
*
_dialog
;
51
52
CppDialog
();
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
63
virtual
int
setIntProperty(
GWEN_WIDGET
*w,
64
GWEN_DIALOG_PROPERTY
prop,
65
int
index,
66
int
value,
67
int
doSignal);
68
69
virtual
int
getIntProperty(
GWEN_WIDGET
*w,
70
GWEN_DIALOG_PROPERTY
prop,
71
int
index,
72
int
defaultValue);
73
74
virtual
int
setCharProperty(
GWEN_WIDGET
*w,
75
GWEN_DIALOG_PROPERTY
prop,
76
int
index,
77
const
char
*value,
78
int
doSignal);
79
80
virtual
const
char
*getCharProperty(
GWEN_WIDGET
*w,
81
GWEN_DIALOG_PROPERTY
prop,
82
int
index,
83
const
char
*defaultValue);
84
85
};
86
87
88
89
90
#endif
/* CPPDIALOG_HPP */
91
92
Generated on Tue Feb 11 2014 11:09:42 for gwenhywfar by
1.8.1.2