gwenhywfar
4.3.3
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
gui
cpp
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 <gwenhywfar/dialog_be.h>
14
#include <list>
15
#include <string>
16
17
class
CppDialog
;
18
19
29
class
CppDialog
{
30
friend
class
CppDialogLinker
;
31
32
private
:
33
GWEN_DIALOG_SETINTPROPERTY_FN
_setIntPropertyFn;
34
GWEN_DIALOG_GETINTPROPERTY_FN
_getIntPropertyFn;
35
GWEN_DIALOG_SETCHARPROPERTY_FN
_setCharPropertyFn;
36
GWEN_DIALOG_GETCHARPROPERTY_FN
_getCharPropertyFn;
37
38
public
:
39
CppDialog
(
GWEN_DIALOG
*dlg);
40
virtual
~CppDialog
();
41
42
GWEN_DIALOG
*
getCInterface
();
43
44
static
CppDialog
*
getDialog
(
GWEN_DIALOG
*dlg);
45
46
protected
:
47
GWEN_DIALOG
*
_dialog
;
48
49
CppDialog
();
50
51
int
emitSignal
(
GWEN_DIALOG_EVENTTYPE
t,
const
char
*sender);
52
53
GWEN_WIDGET_TREE *
getWidgets
()
const
;
54
55
GWEN_WIDGET
*
findWidgetByName
(
const
char
*name);
56
57
GWEN_WIDGET
*
findWidgetByImplData
(
int
index,
void
*ptr);
58
59
60
virtual
int
setIntProperty
(
GWEN_WIDGET
*w,
61
GWEN_DIALOG_PROPERTY
prop,
62
int
index,
63
int
value,
64
int
doSignal);
65
66
virtual
int
getIntProperty
(
GWEN_WIDGET
*w,
67
GWEN_DIALOG_PROPERTY
prop,
68
int
index,
69
int
defaultValue);
70
71
virtual
int
setCharProperty
(
GWEN_WIDGET
*w,
72
GWEN_DIALOG_PROPERTY
prop,
73
int
index,
74
const
char
*value,
75
int
doSignal);
76
77
virtual
const
char
*
getCharProperty
(
GWEN_WIDGET
*w,
78
GWEN_DIALOG_PROPERTY
prop,
79
int
index,
80
const
char
*defaultValue);
81
82
};
83
84
85
86
87
#endif
/* CPPDIALOG_HPP */
88
89
Generated on Thu Mar 20 2014 17:05:59 for gwenhywfar by
1.8.1.2