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> 45 #define QT5_DIALOG_STRING_TITLE 0 46 #define QT5_DIALOG_STRING_VALUE 1 107 if (dialogBox==
NULL) {
108 DBG_INFO(0,
"Dialog's main widget is not derived from class FXDialogBox");
113 rv=dialogBox->exec();
116 if (rv==QT5_DialogBox::Accepted) {
130 if (dialogBox==
NULL) {
131 DBG_INFO(0,
"Dialog's main widget is not derived from class FXDialogBox");
138 qApp->processEvents();
149 if (dialogBox==
NULL) {
150 DBG_INFO(0,
"Dialog's main widget is not derived from class FXDialogBox");
160 qApp->processEvents();
174 if (dialogBox==
NULL) {
175 DBG_INFO(0,
"Dialog's main widget is not derived from class FXDialogBox");
185 qApp->processEvents();
226 const char *defaultValue) {
331 wChild=GWEN_Widget_Tree_GetFirstChild(w);
339 wChild=GWEN_Widget_Tree_GetNext(wChild);
348 GWEN_WIDGET_TREE *wtree;
357 w=GWEN_Widget_Tree_GetFirst(wtree);
373 DBG_INFO(0,
"Error initializing dialog: %d", rv);
virtual int setIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
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()
#define DBG_ERROR(dbg_logger, format, args...)
virtual int getIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
#define DBG_INFO(dbg_logger, format, args...)
virtual const char * getCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
#define GWEN_ERROR_INTERNAL
static CPPGUI_API CppDialog * getDialog(GWEN_DIALOG *dlg)
#define QT5_DIALOG_WIDGET_REAL