src/gui.cpp

changeset 190
82f784cf2ce5
parent 189
ac2d3e8dd110
child 191
9bb6a17305ad
equal deleted inserted replaced
189:ac2d3e8dd110 190:82f784cf2ce5
23 #include <qstatusbar.h> 23 #include <qstatusbar.h>
24 #include <qsplitter.h> 24 #include <qsplitter.h>
25 #include <qlistwidget.h> 25 #include <qlistwidget.h>
26 #include <qtoolbutton.h> 26 #include <qtoolbutton.h>
27 #include <qcombobox.h> 27 #include <qcombobox.h>
28 #include <qdialogbuttonbox.h>
28 #include <qcoreapplication.h> 29 #include <qcoreapplication.h>
29 #include "common.h" 30 #include "common.h"
30 #include "gldraw.h" 31 #include "gldraw.h"
31 #include "gui.h" 32 #include "gui.h"
32 #include "file.h" 33 #include "file.h"
373 addToolBarAction ("makeCornerVerts"); 374 addToolBarAction ("makeCornerVerts");
374 addToolBarAction ("roundCoords"); 375 addToolBarAction ("roundCoords");
375 addToolBarAction ("screencap"); 376 addToolBarAction ("screencap");
376 addToolBarAction ("uncolorize"); 377 addToolBarAction ("uncolorize");
377 addToolBarAction ("visibility"); 378 addToolBarAction ("visibility");
379 addToolBarAction ("replaceCoords");
378 380
379 initSingleToolBar ("External Programs"); 381 initSingleToolBar ("External Programs");
380 addToolBarAction ("ytruder"); 382 addToolBarAction ("ytruder");
381 addToolBarAction ("rectifier"); 383 addToolBarAction ("rectifier");
382 addToolBarAction ("intersector"); 384 addToolBarAction ("intersector");
1044 box->setItemData (row, pair.first); 1046 box->setItemData (row, pair.first);
1045 1047
1046 ++row; 1048 ++row;
1047 } 1049 }
1048 } 1050 }
1051
1052 // ========================================================================================================================================
1053 QDialogButtonBox* makeButtonBox (QDialog& dlg) {
1054 QDialogButtonBox* bbx_buttons = new QDialogButtonBox (QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
1055 QWidget::connect (bbx_buttons, SIGNAL (accepted ()), &dlg, SLOT (accept ()));
1056 QWidget::connect (bbx_buttons, SIGNAL (rejected ()), &dlg, SLOT (reject ()));
1057 return bbx_buttons;
1058 }

mercurial