Add Resource Explorer dock and menu

This commit is contained in:
Dan Paulat 2022-09-13 23:24:46 -05:00
parent 889fe698e6
commit 8a450a76bb
2 changed files with 43 additions and 1 deletions

View file

@ -125,6 +125,21 @@ MainWindow::MainWindow(QWidget* parent) :
p->ConfigureMapLayout();
// Configure Menu
ui->menuView->insertAction(ui->actionRadarToolbox,
ui->radarToolboxDock->toggleViewAction());
ui->radarToolboxDock->toggleViewAction()->setText(tr("Radar &Toolbox"));
ui->actionRadarToolbox->setVisible(false);
ui->menuView->insertAction(ui->actionResourceExplorer,
ui->resourceExplorerDock->toggleViewAction());
ui->resourceExplorerDock->toggleViewAction()->setText(
tr("&Resource Explorer"));
ui->actionResourceExplorer->setVisible(false);
// Configure Docks
ui->resourceExplorerDock->setVisible(false);
// Add Level 2 Products
p->level2ProductsWidget_ = new ui::Level2ProductsWidget(this);
ui->radarProductGroupBox->layout()->replaceWidget(ui->level2ProductFrame,

View file

@ -52,13 +52,21 @@
</property>
<addaction name="actionAboutSupercellWx"/>
</widget>
<widget class="QMenu" name="menuView">
<property name="title">
<string>&amp;View</string>
</property>
<addaction name="actionRadarToolbox"/>
<addaction name="actionResourceExplorer"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuView"/>
<addaction name="menuHelp"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<widget class="QDockWidget" name="radarToolboxDock">
<property name="windowTitle">
<string>Toolbox</string>
<string>Radar Toolbox</string>
</property>
<attribute name="dockWidgetArea">
<number>1</number>
@ -217,6 +225,15 @@
</layout>
</widget>
</widget>
<widget class="QDockWidget" name="resourceExplorerDock">
<property name="windowTitle">
<string>Resource Explorer</string>
</property>
<attribute name="dockWidgetArea">
<number>8</number>
</attribute>
<widget class="QWidget" name="dockWidgetContents"/>
</widget>
<action name="actionExit">
<property name="text">
<string>E&amp;xit</string>
@ -235,6 +252,16 @@
<string>Ctrl+O</string>
</property>
</action>
<action name="actionRadarToolbox">
<property name="text">
<string>Radar Toolbox</string>
</property>
</action>
<action name="actionResourceExplorer">
<property name="text">
<string>&amp;Resource Explorer</string>
</property>
</action>
</widget>
<resources/>
<connections/>