gui.cpp

changeset 39
110669124caf
parent 38
20f5eaae8425
child 40
215b9f8f0cd7
equal deleted inserted replaced
38:20f5eaae8425 39:110669124caf
23 #include "gui.h" 23 #include "gui.h"
24 #include "file.h" 24 #include "file.h"
25 25
26 #include "zz_setContentsDialog.h" 26 #include "zz_setContentsDialog.h"
27 #include "zz_configDialog.h" 27 #include "zz_configDialog.h"
28 #include "zz_addObjectDialog.h"
28 29
29 #define MAKE_ACTION(OBJECT, DISPLAYNAME, IMAGENAME, DESCR) \ 30 #define MAKE_ACTION(OBJECT, DISPLAYNAME, IMAGENAME, DESCR) \
30 qAct_##OBJECT = new QAction (QIcon ("./icons/" IMAGENAME ".png"), tr (DISPLAYNAME), this); \ 31 qAct_##OBJECT = new QAction (QIcon ("./icons/" IMAGENAME ".png"), tr (DISPLAYNAME), this); \
31 qAct_##OBJECT->setStatusTip (tr (DESCR)); \ 32 qAct_##OBJECT->setStatusTip (tr (DESCR)); \
32 connect (qAct_##OBJECT, SIGNAL (triggered ()), this, SLOT (slot_##OBJECT ())); 33 connect (qAct_##OBJECT, SIGNAL (triggered ()), this, SLOT (slot_##OBJECT ()));
312 g_CurrentFile->addObject (line); 313 g_CurrentFile->addObject (line);
313 refresh (); 314 refresh ();
314 } 315 }
315 316
316 void ForgeWindow::slot_newComment () { 317 void ForgeWindow::slot_newComment () {
317 LDComment* comm = new LDComment; 318 AddObjectDialog::staticDialog (OBJ_Comment, this);
318 g_CurrentFile->addObject (comm);
319 refresh ();
320 } 319 }
321 320
322 void ForgeWindow::slot_help () { 321 void ForgeWindow::slot_help () {
323 322
324 } 323 }

mercurial