diff -r 20f5eaae8425 -r 110669124caf gui.h --- a/gui.h Tue Mar 19 18:25:08 2013 +0200 +++ b/gui.h Tue Mar 19 21:52:38 2013 +0200 @@ -28,6 +28,13 @@ #include #include "gldraw.h" +// Stuff for dialogs +#define IMPLEMENT_DIALOG_BUTTONS \ + qButtons = new QDialogButtonBox (QDialogButtonBox::Ok | QDialogButtonBox::Cancel); \ + connect (qButtons, SIGNAL (accepted ()), this, SLOT (accept ())); \ + connect (qButtons, SIGNAL (rejected ()), this, SLOT (reject ())); \ + + class ForgeWindow : public QMainWindow { Q_OBJECT