13 #include <gwenhywfar/dialog_be.h>
14 #include <gwenhywfar/widget_be.h>
15 #include <gwenhywfar/debug.h>
17 #include <QApplication>
19 #include <QPushButton>
22 #include <QTextBrowser>
25 #include <QProgressBar>
26 #include <QHBoxLayout>
27 #include <QVBoxLayout>
28 #include <QGridLayout>
30 #include <QTreeWidget>
33 #include <QStackedWidget>
34 #include <QScrollArea>
36 #include <QRadioButton>
37 #include <QHeaderView>
47 #define QT4_DIALOG_WIDGET_REAL 0
48 #define QT4_DIALOG_WIDGET_CONTENT 1
49 #define QT4_DIALOG_WIDGET_LAYOUT 2
51 #define QT4_DIALOG_STRING_TITLE 0
52 #define QT4_DIALOG_STRING_VALUE 1
115 if (dialogBox==
NULL) {
116 DBG_INFO(0,
"Dialog's main widget is not derived from class FXDialogBox");
121 rv=dialogBox->exec();
124 if (rv==QT4_DialogBox::Accepted) {
138 if (dialogBox==
NULL) {
139 DBG_INFO(0,
"Dialog's main widget is not derived from class FXDialogBox");
146 qApp->processEvents();
157 if (dialogBox==
NULL) {
158 DBG_INFO(0,
"Dialog's main widget is not derived from class FXDialogBox");
168 qApp->processEvents();
182 if (dialogBox==
NULL) {
183 DBG_INFO(0,
"Dialog's main widget is not derived from class FXDialogBox");
193 qApp->processEvents();
234 const char *defaultValue) {
339 wChild=GWEN_Widget_Tree_GetFirstChild(w);
347 wChild=GWEN_Widget_Tree_GetNext(wChild);
356 GWEN_WIDGET_TREE *wtree;
365 w=GWEN_Widget_Tree_GetFirst(wtree);
381 DBG_INFO(0,
"Error initializing dialog: %d", rv);
GWEN_WIDGET_TREE * GWEN_Dialog_GetWidgets(const GWEN_DIALOG *dlg)
int setupTree(GWEN_WIDGET *w)
static QT4_GuiDialog * getDialog(GWEN_DIALOG *dlg)
int runDialog(bool untilEnd)
A C++ binding for the C module GWEN_DIALOG.
struct GWEN_DIALOG GWEN_DIALOG
int GWEN_Dialog_EmitSignalToAll(GWEN_DIALOG *dlg, GWEN_DIALOG_EVENTTYPE t, const char *sender)
virtual int setCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
#define GWEN_ERROR_GENERIC
QT4_GuiDialog(QT4_Gui *gui, GWEN_DIALOG *dlg)
bool setup(QWidget *parentWindow)
QT4_DialogBox * _mainWidget
#define DBG_ERROR(dbg_logger, format, args...)
#define DBG_INFO(dbg_logger, format, args...)
#define QT4_DIALOG_WIDGET_REAL
virtual int getIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
#define GWEN_ERROR_INTERNAL
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)
QT4_DialogBox * getMainWindow()