mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:10:06 +00:00
Add Resource Explorer dock and menu
This commit is contained in:
parent
889fe698e6
commit
8a450a76bb
2 changed files with 43 additions and 1 deletions
|
|
@ -125,6 +125,21 @@ MainWindow::MainWindow(QWidget* parent) :
|
||||||
|
|
||||||
p->ConfigureMapLayout();
|
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
|
// Add Level 2 Products
|
||||||
p->level2ProductsWidget_ = new ui::Level2ProductsWidget(this);
|
p->level2ProductsWidget_ = new ui::Level2ProductsWidget(this);
|
||||||
ui->radarProductGroupBox->layout()->replaceWidget(ui->level2ProductFrame,
|
ui->radarProductGroupBox->layout()->replaceWidget(ui->level2ProductFrame,
|
||||||
|
|
|
||||||
|
|
@ -52,13 +52,21 @@
|
||||||
</property>
|
</property>
|
||||||
<addaction name="actionAboutSupercellWx"/>
|
<addaction name="actionAboutSupercellWx"/>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QMenu" name="menuView">
|
||||||
|
<property name="title">
|
||||||
|
<string>&View</string>
|
||||||
|
</property>
|
||||||
|
<addaction name="actionRadarToolbox"/>
|
||||||
|
<addaction name="actionResourceExplorer"/>
|
||||||
|
</widget>
|
||||||
<addaction name="menuFile"/>
|
<addaction name="menuFile"/>
|
||||||
|
<addaction name="menuView"/>
|
||||||
<addaction name="menuHelp"/>
|
<addaction name="menuHelp"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QStatusBar" name="statusbar"/>
|
<widget class="QStatusBar" name="statusbar"/>
|
||||||
<widget class="QDockWidget" name="radarToolboxDock">
|
<widget class="QDockWidget" name="radarToolboxDock">
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Toolbox</string>
|
<string>Radar Toolbox</string>
|
||||||
</property>
|
</property>
|
||||||
<attribute name="dockWidgetArea">
|
<attribute name="dockWidgetArea">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
|
|
@ -217,6 +225,15 @@
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</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">
|
<action name="actionExit">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>E&xit</string>
|
<string>E&xit</string>
|
||||||
|
|
@ -235,6 +252,16 @@
|
||||||
<string>Ctrl+O</string>
|
<string>Ctrl+O</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionRadarToolbox">
|
||||||
|
<property name="text">
|
||||||
|
<string>Radar Toolbox</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionResourceExplorer">
|
||||||
|
<property name="text">
|
||||||
|
<string>&Resource Explorer</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue