diff options
Diffstat (limited to 'utils/themeeditor/gui/editorwindow.cpp')
-rw-r--r-- | utils/themeeditor/gui/editorwindow.cpp | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/utils/themeeditor/gui/editorwindow.cpp b/utils/themeeditor/gui/editorwindow.cpp index 6bc40fbff6..48ee76d11c 100644 --- a/utils/themeeditor/gui/editorwindow.cpp +++ b/utils/themeeditor/gui/editorwindow.cpp | |||
@@ -207,6 +207,24 @@ void EditorWindow::setupUI() | |||
207 | 207 | ||
208 | void EditorWindow::setupMenus() | 208 | void EditorWindow::setupMenus() |
209 | { | 209 | { |
210 | /* Adding actions to the toolbar */ | ||
211 | ui->toolBar->addAction(ui->actionNew_Document); | ||
212 | ui->toolBar->addAction(ui->actionOpen_Document); | ||
213 | ui->toolBar->addAction(ui->actionSave_Document); | ||
214 | ui->toolBar->addAction(ui->actionSave_Document_As); | ||
215 | |||
216 | ui->toolBar->addSeparator(); | ||
217 | ui->toolBar->addAction(ui->actionUndo); | ||
218 | ui->toolBar->addAction(ui->actionRedo); | ||
219 | |||
220 | ui->toolBar->addSeparator(); | ||
221 | ui->toolBar->addAction(ui->actionCut); | ||
222 | ui->toolBar->addAction(ui->actionCopy); | ||
223 | ui->toolBar->addAction(ui->actionPaste); | ||
224 | |||
225 | ui->toolBar->addSeparator(); | ||
226 | ui->toolBar->addAction(ui->actionFind_Replace); | ||
227 | |||
210 | /* Connecting panel show actions */ | 228 | /* Connecting panel show actions */ |
211 | QObject::connect(ui->actionFile_Panel, SIGNAL(triggered()), | 229 | QObject::connect(ui->actionFile_Panel, SIGNAL(triggered()), |
212 | this, SLOT(showPanel())); | 230 | this, SLOT(showPanel())); |
@@ -224,8 +242,6 @@ void EditorWindow::setupMenus() | |||
224 | this, SLOT(newTab())); | 242 | this, SLOT(newTab())); |
225 | QObject::connect(ui->actionNew_Project, SIGNAL(triggered()), | 243 | QObject::connect(ui->actionNew_Project, SIGNAL(triggered()), |
226 | this, SLOT(newProject())); | 244 | this, SLOT(newProject())); |
227 | QObject::connect(ui->actionToolbarNew, SIGNAL(triggered()), | ||
228 | this, SLOT(newTab())); | ||
229 | 245 | ||
230 | QObject::connect(ui->actionClose_Document, SIGNAL(triggered()), | 246 | QObject::connect(ui->actionClose_Document, SIGNAL(triggered()), |
231 | this, SLOT(closeCurrent())); | 247 | this, SLOT(closeCurrent())); |
@@ -236,15 +252,11 @@ void EditorWindow::setupMenus() | |||
236 | this, SLOT(saveCurrent())); | 252 | this, SLOT(saveCurrent())); |
237 | QObject::connect(ui->actionSave_Document_As, SIGNAL(triggered()), | 253 | QObject::connect(ui->actionSave_Document_As, SIGNAL(triggered()), |
238 | this, SLOT(saveCurrentAs())); | 254 | this, SLOT(saveCurrentAs())); |
239 | QObject::connect(ui->actionToolbarSave, SIGNAL(triggered()), | ||
240 | this, SLOT(saveCurrent())); | ||
241 | QObject::connect(ui->actionExport_Project, SIGNAL(triggered()), | 255 | QObject::connect(ui->actionExport_Project, SIGNAL(triggered()), |
242 | this, SLOT(exportProject())); | 256 | this, SLOT(exportProject())); |
243 | 257 | ||
244 | QObject::connect(ui->actionOpen_Document, SIGNAL(triggered()), | 258 | QObject::connect(ui->actionOpen_Document, SIGNAL(triggered()), |
245 | this, SLOT(openFile())); | 259 | this, SLOT(openFile())); |
246 | QObject::connect(ui->actionToolbarOpen, SIGNAL(triggered()), | ||
247 | this, SLOT(openFile())); | ||
248 | 260 | ||
249 | QObject::connect(ui->actionOpen_Project, SIGNAL(triggered()), | 261 | QObject::connect(ui->actionOpen_Project, SIGNAL(triggered()), |
250 | this, SLOT(openProject())); | 262 | this, SLOT(openProject())); |
@@ -409,7 +421,6 @@ void EditorWindow::shiftTab(int index) | |||
409 | ui->actionSave_Document->setEnabled(false); | 421 | ui->actionSave_Document->setEnabled(false); |
410 | ui->actionSave_Document_As->setEnabled(false); | 422 | ui->actionSave_Document_As->setEnabled(false); |
411 | ui->actionClose_Document->setEnabled(false); | 423 | ui->actionClose_Document->setEnabled(false); |
412 | ui->actionToolbarSave->setEnabled(false); | ||
413 | ui->fromTree->setEnabled(false); | 424 | ui->fromTree->setEnabled(false); |
414 | ui->actionUndo->setEnabled(false); | 425 | ui->actionUndo->setEnabled(false); |
415 | ui->actionRedo->setEnabled(false); | 426 | ui->actionRedo->setEnabled(false); |
@@ -424,7 +435,6 @@ void EditorWindow::shiftTab(int index) | |||
424 | ui->actionSave_Document->setEnabled(true); | 435 | ui->actionSave_Document->setEnabled(true); |
425 | ui->actionSave_Document_As->setEnabled(true); | 436 | ui->actionSave_Document_As->setEnabled(true); |
426 | ui->actionClose_Document->setEnabled(true); | 437 | ui->actionClose_Document->setEnabled(true); |
427 | ui->actionToolbarSave->setEnabled(true); | ||
428 | ui->actionUndo->setEnabled(false); | 438 | ui->actionUndo->setEnabled(false); |
429 | ui->actionRedo->setEnabled(false); | 439 | ui->actionRedo->setEnabled(false); |
430 | ui->actionCut->setEnabled(false); | 440 | ui->actionCut->setEnabled(false); |
@@ -443,7 +453,6 @@ void EditorWindow::shiftTab(int index) | |||
443 | ui->actionSave_Document->setEnabled(true); | 453 | ui->actionSave_Document->setEnabled(true); |
444 | ui->actionSave_Document_As->setEnabled(true); | 454 | ui->actionSave_Document_As->setEnabled(true); |
445 | ui->actionClose_Document->setEnabled(true); | 455 | ui->actionClose_Document->setEnabled(true); |
446 | ui->actionToolbarSave->setEnabled(true); | ||
447 | ui->fromTree->setEnabled(true); | 456 | ui->fromTree->setEnabled(true); |
448 | 457 | ||
449 | ui->actionUndo->setEnabled(true); | 458 | ui->actionUndo->setEnabled(true); |