diff --git a/scwx-qt/source/scwx/qt/main/main_window.cpp b/scwx-qt/source/scwx/qt/main/main_window.cpp index c233f830..be8a16b5 100644 --- a/scwx-qt/source/scwx/qt/main/main_window.cpp +++ b/scwx-qt/source/scwx/qt/main/main_window.cpp @@ -157,6 +157,11 @@ void MainWindow::showEvent(QShowEvent* event) resizeDocks({ui->radarToolboxDock}, {150}, Qt::Horizontal); } +void MainWindow::on_actionExit_triggered() +{ + close(); +} + void MainWindowImpl::InitializeConnections() { connect( diff --git a/scwx-qt/source/scwx/qt/main/main_window.hpp b/scwx-qt/source/scwx/qt/main/main_window.hpp index 868dfd60..cb55c835 100644 --- a/scwx-qt/source/scwx/qt/main/main_window.hpp +++ b/scwx-qt/source/scwx/qt/main/main_window.hpp @@ -29,6 +29,9 @@ public: bool event(QEvent* event) override; void showEvent(QShowEvent* event) override; +private slots: + void on_actionExit_triggered(); + private: std::unique_ptr p; Ui::MainWindow* ui; diff --git a/scwx-qt/source/scwx/qt/main/main_window.ui b/scwx-qt/source/scwx/qt/main/main_window.ui index 0095d26e..bd6429d0 100644 --- a/scwx-qt/source/scwx/qt/main/main_window.ui +++ b/scwx-qt/source/scwx/qt/main/main_window.ui @@ -11,7 +11,7 @@ - MainWindow + Supercell Wx @@ -38,6 +38,20 @@ 21 + + + &File + + + + + + &Help + + + + + @@ -223,6 +237,16 @@ + + + E&xit + + + + + About &Supercell Wx... + + diff --git a/scwx-qt/ts/scwx_en_US.ts b/scwx-qt/ts/scwx_en_US.ts index 2d150155..a97dba2c 100644 --- a/scwx-qt/ts/scwx_en_US.ts +++ b/scwx-qt/ts/scwx_en_US.ts @@ -4,69 +4,89 @@ MainWindow - - MainWindow - - - - + Toolbox - + ... - + Level 3 - + Settings - + Declutter - + Radar Site - + + Supercell Wx + + + + + &File + + + + + &Help + + + + Volume Coverage Pattern - + VCP - + Clear Air Mode - + Radar Products - + Level 2 - + Elevation + + + E&xit + + + + + About &Supercell Wx... + +