13 #include <gwenhywfar/dialog_be.h> 14 #include <gwenhywfar/widget_be.h> 15 #include <gwenhywfar/debug.h> 17 #include <gwen-gui-cpp/cppwidget.hpp> 19 #include <QApplication> 21 #include <QPushButton> 24 #include <QTextBrowser> 27 #include <QProgressBar> 28 #include <QHBoxLayout> 29 #include <QVBoxLayout> 30 #include <QGridLayout> 32 #include <QTreeWidget> 35 #include <QStackedWidget> 36 #include <QScrollArea> 38 #include <QRadioButton> 39 #include <QHeaderView> 49 #define QT5_DIALOG_STRING_TITLE 0 50 #define QT5_DIALOG_STRING_VALUE 1 112 if (dialogBox==
NULL) {
113 DBG_INFO(0,
"Dialog's main widget is not derived from class FXDialogBox");
118 rv=dialogBox->exec();
121 if (rv==QT5_DialogBox::Accepted) {
135 if (dialogBox==
NULL) {
136 DBG_INFO(0,
"Dialog's main widget is not derived from class FXDialogBox");
143 qApp->processEvents();
154 if (dialogBox==
NULL) {
155 DBG_INFO(0,
"Dialog's main widget is not derived from class FXDialogBox");
165 qApp->processEvents();
179 if (dialogBox==
NULL) {
180 DBG_INFO(0,
"Dialog's main widget is not derived from class FXDialogBox");
190 qApp->processEvents();
231 const char *defaultValue) {
342 wChild=GWEN_Widget_Tree_GetFirstChild(w);
350 wChild=GWEN_Widget_Tree_GetNext(wChild);
359 GWEN_WIDGET_TREE *wtree;
368 w=GWEN_Widget_Tree_GetFirst(wtree);
384 DBG_INFO(0,
"Error initializing dialog: %d", rv);
virtual int setIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
#define DBG_ERROR(dbg_logger, format,...)
static QT5_GuiDialog * getDialog(GWEN_DIALOG *dlg)
QT5_GuiDialog(QT5_Gui *gui, GWEN_DIALOG *dlg)
int runDialog(bool untilEnd)
GWEN_WIDGET_TREE * GWEN_Dialog_GetWidgets(const GWEN_DIALOG *dlg)
int setupTree(GWEN_WIDGET *w)
A C++ binding for the C module GWEN_DIALOG.
struct GWEN_DIALOG GWEN_DIALOG
QT5_DialogBox * _mainWidget
bool setup(QWidget *parentWindow)
virtual int setCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
int GWEN_Dialog_EmitSignalToAll(GWEN_DIALOG *dlg, GWEN_DIALOG_EVENTTYPE t, const char *sender)
#define GWEN_ERROR_GENERIC
QT5_DialogBox * getMainWindow()
virtual int getIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
virtual const char * getCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
#define DBG_INFO(dbg_logger, format,...)
#define GWEN_ERROR_INTERNAL
static CPPGUI_API CppDialog * getDialog(GWEN_DIALOG *dlg)
#define QT5_DIALOG_WIDGET_REAL