diff --git a/companion/src/companion.qrc b/companion/src/companion.qrc
index 34831d7c6..f5ee907aa 100644
--- a/companion/src/companion.qrc
+++ b/companion/src/companion.qrc
@@ -298,7 +298,6 @@
themes/monochrome/16/edit.png
themes/monochrome/16/information.png
themes/monochrome/16/configure.png
- themes/monochrome/16/switch_dir.png
themes/monochrome/16/list.png
themes/monochrome/16/wizard.png
themes/monochrome/16/logs.png
@@ -342,7 +341,6 @@
themes/monochrome/24/edit.png
themes/monochrome/24/information.png
themes/monochrome/24/configure.png
- themes/monochrome/24/switch_dir.png
themes/monochrome/24/list.png
themes/monochrome/24/wizard.png
themes/monochrome/24/logs.png
@@ -386,7 +384,6 @@
themes/monochrome/32/edit.png
themes/monochrome/32/information.png
themes/monochrome/32/configure.png
- themes/monochrome/32/switch_dir.png
themes/monochrome/32/list.png
themes/monochrome/32/wizard.png
themes/monochrome/32/logs.png
@@ -430,7 +427,6 @@
themes/monochrome/48/edit.png
themes/monochrome/48/information.png
themes/monochrome/48/configure.png
- themes/monochrome/48/switch_dir.png
themes/monochrome/48/list.png
themes/monochrome/48/wizard.png
themes/monochrome/48/logs.png
@@ -474,7 +470,6 @@
themes/classic/16/edit.png
themes/classic/16/information.png
themes/classic/16/configure.png
- themes/classic/16/switch_dir.png
themes/classic/16/list.png
themes/classic/16/wizard.png
themes/classic/16/logs.png
@@ -518,7 +513,6 @@
themes/classic/24/edit.png
themes/classic/24/information.png
themes/classic/24/configure.png
- themes/classic/24/switch_dir.png
themes/classic/24/list.png
themes/classic/24/wizard.png
themes/classic/24/logs.png
@@ -562,7 +556,6 @@
themes/classic/32/edit.png
themes/classic/32/information.png
themes/classic/32/configure.png
- themes/classic/32/switch_dir.png
themes/classic/32/list.png
themes/classic/32/wizard.png
themes/classic/32/logs.png
@@ -606,7 +599,6 @@
themes/classic/48/edit.png
themes/classic/48/information.png
themes/classic/48/configure.png
- themes/classic/48/switch_dir.png
themes/classic/48/list.png
themes/classic/48/wizard.png
themes/classic/48/logs.png
@@ -650,7 +642,6 @@
themes/monoblue/16/edit.png
themes/monoblue/16/information.png
themes/monoblue/16/configure.png
- themes/monoblue/16/switch_dir.png
themes/monoblue/16/list.png
themes/monoblue/16/wizard.png
themes/monoblue/16/logs.png
@@ -694,7 +685,6 @@
themes/monoblue/24/edit.png
themes/monoblue/24/information.png
themes/monoblue/24/configure.png
- themes/monoblue/24/switch_dir.png
themes/monoblue/24/list.png
themes/monoblue/24/wizard.png
themes/monoblue/24/logs.png
@@ -738,7 +728,6 @@
themes/monoblue/32/edit.png
themes/monoblue/32/information.png
themes/monoblue/32/configure.png
- themes/monoblue/32/switch_dir.png
themes/monoblue/32/list.png
themes/monoblue/32/wizard.png
themes/monoblue/32/logs.png
@@ -782,7 +771,6 @@
themes/monoblue/48/edit.png
themes/monoblue/48/information.png
themes/monoblue/48/configure.png
- themes/monoblue/48/switch_dir.png
themes/monoblue/48/list.png
themes/monoblue/48/wizard.png
themes/monoblue/48/logs.png
@@ -826,7 +814,6 @@
themes/monowhite/16/edit.png
themes/monowhite/16/information.png
themes/monowhite/16/configure.png
- themes/monowhite/16/switch_dir.png
themes/monowhite/16/list.png
themes/monowhite/16/wizard.png
themes/monowhite/16/logs.png
@@ -870,7 +857,6 @@
themes/monowhite/24/edit.png
themes/monowhite/24/information.png
themes/monowhite/24/configure.png
- themes/monowhite/24/switch_dir.png
themes/monowhite/24/list.png
themes/monowhite/24/wizard.png
themes/monowhite/24/logs.png
@@ -914,7 +900,6 @@
themes/monowhite/32/edit.png
themes/monowhite/32/information.png
themes/monowhite/32/configure.png
- themes/monowhite/32/switch_dir.png
themes/monowhite/32/list.png
themes/monowhite/32/wizard.png
themes/monowhite/32/logs.png
@@ -958,7 +943,6 @@
themes/monowhite/48/edit.png
themes/monowhite/48/information.png
themes/monowhite/48/configure.png
- themes/monowhite/48/switch_dir.png
themes/monowhite/48/list.png
themes/monowhite/48/wizard.png
themes/monowhite/48/logs.png
diff --git a/companion/src/images/originals/monochrome icons/switch_dir.png b/companion/src/images/originals/monochrome icons/switch_dir.png
deleted file mode 100644
index 36253c57e..000000000
Binary files a/companion/src/images/originals/monochrome icons/switch_dir.png and /dev/null differ
diff --git a/companion/src/images/originals/monochrome icons/switch_dir64.png b/companion/src/images/originals/monochrome icons/switch_dir64.png
deleted file mode 100644
index 49155ffaf..000000000
Binary files a/companion/src/images/originals/monochrome icons/switch_dir64.png and /dev/null differ
diff --git a/companion/src/mainwindow.cpp b/companion/src/mainwindow.cpp
index 72a7d0c11..720a003a5 100644
--- a/companion/src/mainwindow.cpp
+++ b/companion/src/mainwindow.cpp
@@ -1556,12 +1556,6 @@ void MainWindow::updateMenus()
saveAct->setEnabled(hasMdiChild);
saveAsAct->setEnabled(hasMdiChild);
pasteAct->setEnabled(hasMdiChild ? activeMdiChild()->hasPasteData() : false);
- closeAct->setEnabled(hasMdiChild);
- closeAllAct->setEnabled(hasMdiChild);
- tileAct->setEnabled(hasMdiChild);
- cascadeAct->setEnabled(hasMdiChild);
- nextAct->setEnabled(hasMdiChild);
- previousAct->setEnabled(hasMdiChild);
burnToAct->setEnabled(hasMdiChild);
separatorAct->setVisible(hasMdiChild);
@@ -1590,39 +1584,6 @@ void MainWindow::updateMenus()
profileButton->setDisabled(notfound);
}
-void MainWindow::updateWindowMenu()
-{
- windowMenu->clear();
- windowMenu->addAction(closeAct);
- windowMenu->addAction(closeAllAct);
- windowMenu->addSeparator();
- windowMenu->addAction(tileAct);
- windowMenu->addAction(cascadeAct);
- windowMenu->addSeparator();
- windowMenu->addAction(nextAct);
- windowMenu->addAction(previousAct);
- windowMenu->addAction(separatorAct);
-
- QList windows = mdiArea->subWindowList();
- separatorAct->setVisible(!windows.isEmpty());
-
- for (int i = 0; i < windows.size(); ++i) {
- MdiChild *child = qobject_cast(windows.at(i)->widget());
-
- QString text;
- if (i < 9) {
- text = tr("&%1 %2").arg(i + 1).arg(child->userFriendlyCurrentFile());
- } else {
- text = tr("%1 %2").arg(i + 1).arg(child->userFriendlyCurrentFile());
- }
- QAction *action = windowMenu->addAction(text);
- action->setCheckable(true);
- action ->setChecked(child == activeMdiChild());
- connect(action, SIGNAL(triggered()), windowMapper, SLOT(map()));
- windowMapper->setMapping(action, windows.at(i));
- }
-}
-
MdiChild *MainWindow::createMdiChild()
{
MdiChild *child = new MdiChild;
@@ -1773,37 +1734,6 @@ void MainWindow::createActions()
printAct->setEnabled(false);
connect(printAct,SIGNAL(triggered()),this,SLOT(print()));
- closeAct = new QAction(tr("Cl&ose"), this);
- closeAct->setStatusTip(tr("Close the active window"));
- connect(closeAct, SIGNAL(triggered()),
- mdiArea, SLOT(closeActiveSubWindow()));
-
- closeAllAct = new QAction(tr("Close &All"), this);
- closeAllAct->setStatusTip(tr("Close all the windows"));
- connect(closeAllAct, SIGNAL(triggered()),
- mdiArea, SLOT(closeAllSubWindows()));
-
- tileAct = new QAction(tr("&Tile"), this);
- tileAct->setStatusTip(tr("Tile the windows"));
- connect(tileAct, SIGNAL(triggered()), mdiArea, SLOT(tileSubWindows()));
-
- cascadeAct = new QAction(tr("&Cascade"), this);
- cascadeAct->setStatusTip(tr("Cascade the windows"));
- connect(cascadeAct, SIGNAL(triggered()), mdiArea, SLOT(cascadeSubWindows()));
-
- nextAct = new QAction(tr("Ne&xt"), this);
- nextAct->setShortcuts(QKeySequence::NextChild);
- nextAct->setStatusTip(tr("Move the focus to the next window"));
- connect(nextAct, SIGNAL(triggered()),
- mdiArea, SLOT(activateNextSubWindow()));
-
- previousAct = new QAction(tr("Pre&vious"), this);
- previousAct->setShortcuts(QKeySequence::PreviousChild);
- previousAct->setStatusTip(tr("Move the focus to the previous "
- "window"));
- connect(previousAct, SIGNAL(triggered()),
- mdiArea, SLOT(activatePreviousSubWindow()));
-
separatorAct = new QAction(this);
separatorAct->setSeparator(true);
@@ -1811,9 +1741,6 @@ void MainWindow::createActions()
aboutAct->setStatusTip(tr("Show the application's About box"));
connect(aboutAct, SIGNAL(triggered()), this, SLOT(about()));
- switchLayoutDirectionAct = new QAction(CompanionIcon("switch_dir.png"), tr("Switch layout direction"), this);
- switchLayoutDirectionAct->setStatusTip(tr("Switch layout Left/Right"));
- connect(switchLayoutDirectionAct, SIGNAL(triggered()), this, SLOT(switchLayoutDirection()));
for (int i = 0; i < MaxRecentFiles; ++i) {
recentFileActs[i] = new QAction(this);
recentFileActs[i]->setVisible(false);
@@ -1857,7 +1784,6 @@ void MainWindow::createMenus()
profilesMenu->setIcon(CompanionIcon("profiles.png"));
for (int i=0; iaddAction(profileActs[i]);
- fileMenu->addAction(switchLayoutDirectionAct);
fileMenu->addAction(exitAct);
editMenu = menuBar()->addMenu(tr("&Edit"));
@@ -1883,10 +1809,6 @@ void MainWindow::createMenus()
burnMenu->addAction(burnFusesAct);
burnMenu->addAction(burnListAct);
}
- windowMenu = menuBar()->addMenu(tr("&Window"));
- updateWindowMenu();
- connect(windowMenu, SIGNAL(aboutToShow()), this, SLOT(updateWindowMenu()));
-
menuBar()->addSeparator();
helpMenu = menuBar()->addMenu(tr("&Help"));
diff --git a/companion/src/mainwindow.h b/companion/src/mainwindow.h
index de5b1083f..bdcdcd018 100644
--- a/companion/src/mainwindow.h
+++ b/companion/src/mainwindow.h
@@ -120,7 +120,6 @@ private slots:
void loadBackup();
void preferences();
void updateMenus();
- void updateWindowMenu();
MdiChild *createMdiChild();
void switchLayoutDirection();
void setActiveSubWindow(QWidget *window);
@@ -185,7 +184,6 @@ private:
QMenu *fileMenu;
QMenu *editMenu;
QMenu *burnMenu;
- QMenu *windowMenu;
QMenu *helpMenu;
QToolBar *fileToolBar;
QToolBar *editToolBar;
@@ -217,18 +215,11 @@ private:
QAction *burnExtenalToEEPROMAct;
QAction *burnExtenalFromEEPROMAct;
QAction *simulateAct;
- QAction *closeAct;
- QAction *closeAllAct;
- QAction *tileAct;
- QAction *cascadeAct;
- QAction *nextAct;
- QAction *previousAct;
QAction *separatorAct;
QAction *aboutAct;
QAction *printAct;
QAction *loadbackupAct;
QAction *logsAct;
- QAction *switchLayoutDirectionAct;
QAction *recentFileActs[MAX_RECENT];
QAction *profileActs[MAX_PROFILES];
QString fwToUpdate;
diff --git a/companion/src/themes/classic/16/switch_dir.png b/companion/src/themes/classic/16/switch_dir.png
deleted file mode 100644
index 006788cc0..000000000
Binary files a/companion/src/themes/classic/16/switch_dir.png and /dev/null differ
diff --git a/companion/src/themes/classic/24/switch_dir.png b/companion/src/themes/classic/24/switch_dir.png
deleted file mode 100644
index 798b94926..000000000
Binary files a/companion/src/themes/classic/24/switch_dir.png and /dev/null differ
diff --git a/companion/src/themes/classic/32/switch_dir.png b/companion/src/themes/classic/32/switch_dir.png
deleted file mode 100644
index 6e297dd3a..000000000
Binary files a/companion/src/themes/classic/32/switch_dir.png and /dev/null differ
diff --git a/companion/src/themes/classic/48/switch_dir.png b/companion/src/themes/classic/48/switch_dir.png
deleted file mode 100644
index 179d5a07f..000000000
Binary files a/companion/src/themes/classic/48/switch_dir.png and /dev/null differ
diff --git a/companion/src/themes/monoblue/16/switch_dir.png b/companion/src/themes/monoblue/16/switch_dir.png
deleted file mode 100644
index 0ce35b6a1..000000000
Binary files a/companion/src/themes/monoblue/16/switch_dir.png and /dev/null differ
diff --git a/companion/src/themes/monoblue/24/switch_dir.png b/companion/src/themes/monoblue/24/switch_dir.png
deleted file mode 100644
index 5a915d89f..000000000
Binary files a/companion/src/themes/monoblue/24/switch_dir.png and /dev/null differ
diff --git a/companion/src/themes/monoblue/32/switch_dir.png b/companion/src/themes/monoblue/32/switch_dir.png
deleted file mode 100644
index 3c0d6dddc..000000000
Binary files a/companion/src/themes/monoblue/32/switch_dir.png and /dev/null differ
diff --git a/companion/src/themes/monoblue/48/switch_dir.png b/companion/src/themes/monoblue/48/switch_dir.png
deleted file mode 100644
index f31c11dee..000000000
Binary files a/companion/src/themes/monoblue/48/switch_dir.png and /dev/null differ
diff --git a/companion/src/themes/monochrome/16/switch_dir.png b/companion/src/themes/monochrome/16/switch_dir.png
deleted file mode 100644
index fbbb2a841..000000000
Binary files a/companion/src/themes/monochrome/16/switch_dir.png and /dev/null differ
diff --git a/companion/src/themes/monochrome/24/switch_dir.png b/companion/src/themes/monochrome/24/switch_dir.png
deleted file mode 100644
index 8d6879e2f..000000000
Binary files a/companion/src/themes/monochrome/24/switch_dir.png and /dev/null differ
diff --git a/companion/src/themes/monochrome/32/switch_dir.png b/companion/src/themes/monochrome/32/switch_dir.png
deleted file mode 100644
index 36253c57e..000000000
Binary files a/companion/src/themes/monochrome/32/switch_dir.png and /dev/null differ
diff --git a/companion/src/themes/monochrome/48/switch_dir.png b/companion/src/themes/monochrome/48/switch_dir.png
deleted file mode 100644
index 1039325c4..000000000
Binary files a/companion/src/themes/monochrome/48/switch_dir.png and /dev/null differ
diff --git a/companion/src/themes/monowhite/16/switch_dir.png b/companion/src/themes/monowhite/16/switch_dir.png
deleted file mode 100644
index 803b35927..000000000
Binary files a/companion/src/themes/monowhite/16/switch_dir.png and /dev/null differ
diff --git a/companion/src/themes/monowhite/24/switch_dir.png b/companion/src/themes/monowhite/24/switch_dir.png
deleted file mode 100644
index 384ec6997..000000000
Binary files a/companion/src/themes/monowhite/24/switch_dir.png and /dev/null differ
diff --git a/companion/src/themes/monowhite/32/switch_dir.png b/companion/src/themes/monowhite/32/switch_dir.png
deleted file mode 100644
index 39cd0a7bf..000000000
Binary files a/companion/src/themes/monowhite/32/switch_dir.png and /dev/null differ
diff --git a/companion/src/themes/monowhite/48/switch_dir.png b/companion/src/themes/monowhite/48/switch_dir.png
deleted file mode 100644
index 701f3c8e3..000000000
Binary files a/companion/src/themes/monowhite/48/switch_dir.png and /dev/null differ