mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 23:30:04 +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();
|
||||
|
||||
// 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,
|
||||
|
|
|
|||
|
|
@ -52,13 +52,21 @@
|
|||
</property>
|
||||
<addaction name="actionAboutSupercellWx"/>
|
||||
</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="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&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>&Resource Explorer</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue