From 863c48593949e91beb6b7ff02a1385b9977182f5 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 12 Jun 2013 14:53:23 -0400 Subject: 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 --- qt-ui/mainwindow.cpp | 12 ++++++++++++ qt-ui/mainwindow.h | 1 + qt-ui/mainwindow.ui | 26 +++++++++++++++++++------- 3 files changed, 32 insertions(+), 7 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() diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index f3024ef8d..937d6d214 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -71,6 +71,7 @@ private Q_SLOTS: void on_actionViewList_triggered(); void on_actionViewProfile_triggered(); void on_actionViewInfo_triggered(); + void on_actionViewGlobe_triggered(); void on_actionViewAll_triggered(); void on_actionPreviousDC_triggered(); void on_actionNextDC_triggered(); diff --git a/qt-ui/mainwindow.ui b/qt-ui/mainwindow.ui index a29cb6179..a91b96133 100644 --- a/qt-ui/mainwindow.ui +++ b/qt-ui/mainwindow.ui @@ -103,7 +103,7 @@ 0 0 763 - 20 + 34 @@ -148,6 +148,7 @@ + @@ -358,8 +359,25 @@ F1 + + + View Globe + + + View Globe + + + Ctrl+5 + + + + KMessageWidget + QWidget +
kmessagewidget.h
+ 1 +
MainTab QWidget @@ -382,12 +400,6 @@
globe.h
1
- - KMessageWidget - QWidget -
kmessagewidget.h
- 1 -
-- cgit v1.2.3-70-g09d2