summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-12 14:53:23 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-12 14:53:23 -0400
commit863c48593949e91beb6b7ff02a1385b9977182f5 (patch)
treef2fcb487699d0162dff11ee1aa7d5e7fc9b23eec /qt-ui/mainwindow.cpp
parentee3bf421e1d61996c12430184c82ee65327a178c (diff)
downloadsubsurface-863c48593949e91beb6b7ff02a1385b9977182f5.tar.gz
Add fifth view mode "Globe" for main window
For consistency I didn't change the meaning of Ctrl-1/2/3/4 and added this as Ctrl-5 - but one could just as easily make the argument that "ViewGlobe" should be Ctrl-4 and "ViewAll" should be Ctrl-5. This ensures that only one of the four widgets is shown in the individual modes, but it doesn't address the drawing issues with the profile. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index f40e95751..339996845 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -245,6 +245,7 @@ void MainWindow::on_actionViewList_triggered()
ui->InfoWidget->setVisible(false);
ui->ListWidget->setVisible(true);
ui->ProfileWidget->setVisible(false);
+ ui->globe->setVisible(false);
}
void MainWindow::on_actionViewProfile_triggered()
@@ -252,6 +253,7 @@ void MainWindow::on_actionViewProfile_triggered()
ui->InfoWidget->setVisible(false);
ui->ListWidget->setVisible(false);
ui->ProfileWidget->setVisible(true);
+ ui->globe->setVisible(false);
}
void MainWindow::on_actionViewInfo_triggered()
@@ -259,6 +261,15 @@ void MainWindow::on_actionViewInfo_triggered()
ui->InfoWidget->setVisible(true);
ui->ListWidget->setVisible(false);
ui->ProfileWidget->setVisible(false);
+ ui->globe->setVisible(false);
+}
+
+void MainWindow::on_actionViewGlobe_triggered()
+{
+ ui->InfoWidget->setVisible(false);
+ ui->ListWidget->setVisible(false);
+ ui->ProfileWidget->setVisible(false);
+ ui->globe->setVisible(true);
}
void MainWindow::on_actionViewAll_triggered()
@@ -266,6 +277,7 @@ void MainWindow::on_actionViewAll_triggered()
ui->InfoWidget->setVisible(true);
ui->ListWidget->setVisible(true);
ui->ProfileWidget->setVisible(true);
+ ui->globe->setVisible(true);
}
void MainWindow::on_actionPreviousDC_triggered()