gui.h

changeset 145
ddf24c380be6
parent 140
2e8c1626aef7
child 146
2ab24976acaa
equal deleted inserted replaced
144:b2b8b45f6f5f 145:ddf24c380be6
27 #include <QToolBar> 27 #include <QToolBar>
28 #include <QTextEdit> 28 #include <QTextEdit>
29 #include <qpushbutton.h> 29 #include <qpushbutton.h>
30 #include "gldraw.h" 30 #include "gldraw.h"
31 #include "config.h" 31 #include "config.h"
32
33 class ForgeWindow;
34 class color;
35 class QSplitter;
32 36
33 // Stuff for dialogs 37 // Stuff for dialogs
34 #define IMPLEMENT_DIALOG_BUTTONS \ 38 #define IMPLEMENT_DIALOG_BUTTONS \
35 bbx_buttons = new QDialogButtonBox (QDialogButtonBox::Ok | QDialogButtonBox::Cancel); \ 39 bbx_buttons = new QDialogButtonBox (QDialogButtonBox::Ok | QDialogButtonBox::Cancel); \
36 connect (bbx_buttons, SIGNAL (accepted ()), this, SLOT (accept ())); \ 40 connect (bbx_buttons, SIGNAL (accepted ()), this, SLOT (accept ())); \
65 #define KEY(N) (Qt::Key_##N) 69 #define KEY(N) (Qt::Key_##N)
66 #define CTRL(N) (Qt::CTRL | Qt::Key_##N) 70 #define CTRL(N) (Qt::CTRL | Qt::Key_##N)
67 #define SHIFT(N) (Qt::SHIFT | Qt::Key_##N) 71 #define SHIFT(N) (Qt::SHIFT | Qt::Key_##N)
68 #define CTRL_SHIFT(N) (Qt::CTRL | Qt::SHIFT | Qt::Key_##N) 72 #define CTRL_SHIFT(N) (Qt::CTRL | Qt::SHIFT | Qt::Key_##N)
69 73
70 class color; 74 // =============================================================================
71 typedef struct { 75 typedef struct {
72 color* col; 76 color* col;
73 QPushButton* btn; 77 QPushButton* btn;
74 bool bSeparator; 78 bool bSeparator;
75 } quickColorMetaEntry; 79 } quickColorMetaEntry;
109 QTextEdit* qMessageLog; 113 QTextEdit* qMessageLog;
110 QMenu* qFileMenu, *qEditMenu, *qViewMenu, *qInsertMenu, *qMoveMenu, 114 QMenu* qFileMenu, *qEditMenu, *qViewMenu, *qInsertMenu, *qMoveMenu,
111 *qHelpMenu, *qControlMenu; 115 *qHelpMenu, *qControlMenu;
112 QMenu* qRecentFilesMenu; 116 QMenu* qRecentFilesMenu;
113 std::vector<QAction*> qaRecentFiles; 117 std::vector<QAction*> qaRecentFiles;
118 QSplitter* hsplit, *vsplit;
114 119
115 #ifndef RELEASE 120 #ifndef RELEASE
116 QMenu* qDebugMenu; 121 QMenu* qDebugMenu;
117 QToolBar* qDebugToolBar; 122 QToolBar* qDebugToolBar;
118 #endif // RELEASE 123 #endif // RELEASE

mercurial