src/gui.h

changeset 190
82f784cf2ce5
parent 189
ac2d3e8dd110
child 192
c414924a647c
equal deleted inserted replaced
189:ac2d3e8dd110 190:82f784cf2ce5
36 class ForgeWindow; 36 class ForgeWindow;
37 class color; 37 class color;
38 class QSplitter; 38 class QSplitter;
39 class DelHistory; 39 class DelHistory;
40 class QToolButton; 40 class QToolButton;
41 class QDialogButtonBox;
41 42
42 // Stuff for dialogs 43 // Stuff for dialogs
43 #define IMPLEMENT_DIALOG_BUTTONS \ 44 #define IMPLEMENT_DIALOG_BUTTONS \
44 bbx_buttons = new QDialogButtonBox (QDialogButtonBox::Ok | QDialogButtonBox::Cancel); \ 45 bbx_buttons = new QDialogButtonBox (QDialogButtonBox::Ok | QDialogButtonBox::Cancel); \
45 connect (bbx_buttons, SIGNAL (accepted ()), this, SLOT (accept ())); \ 46 connect (bbx_buttons, SIGNAL (accepted ()), this, SLOT (accept ())); \
240 bool confirm (str msg); 241 bool confirm (str msg);
241 void critical (str msg); 242 void critical (str msg);
242 QAction* findAction (str name); 243 QAction* findAction (str name);
243 QIcon makeColorIcon (color* colinfo, const ushort size); 244 QIcon makeColorIcon (color* colinfo, const ushort size);
244 void makeColorSelector (QComboBox* box); 245 void makeColorSelector (QComboBox* box);
246 QDialogButtonBox* makeButtonBox (QDialog& dlg);
245 247
246 // ----------------------------------------------------------------------------- 248 // -----------------------------------------------------------------------------
247 // Pointer to the instance of ForgeWindow. 249 // Pointer to the instance of ForgeWindow.
248 extern ForgeWindow* g_win; 250 extern ForgeWindow* g_win;
249 251

mercurial