mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 14:10:06 +00:00
Add layer debug
This commit is contained in:
parent
cc0c82bbd2
commit
44ada2cc8d
5 changed files with 19 additions and 0 deletions
|
|
@ -470,6 +470,11 @@ void MainWindow::on_actionImGuiDebug_triggered()
|
|||
p->imGuiDebugDialog_->show();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionDumpLayerList_triggered()
|
||||
{
|
||||
p->activeMap_->DumpLayerList();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionDumpRadarProductRecords_triggered()
|
||||
{
|
||||
manager::RadarProductManager::DumpRecords();
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ private slots:
|
|||
void on_actionPlacefileManager_triggered();
|
||||
void on_actionLayerManager_triggered();
|
||||
void on_actionImGuiDebug_triggered();
|
||||
void on_actionDumpLayerList_triggered();
|
||||
void on_actionDumpRadarProductRecords_triggered();
|
||||
void on_actionUserManual_triggered();
|
||||
void on_actionDiscord_triggered();
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@
|
|||
</property>
|
||||
<addaction name="actionImGuiDebug"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionDumpLayerList"/>
|
||||
<addaction name="actionDumpRadarProductRecords"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuTools">
|
||||
|
|
@ -441,6 +442,11 @@
|
|||
<string>&Layer Manager</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDumpLayerList">
|
||||
<property name="text">
|
||||
<string>Dump &Layer List</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../../../../scwx-qt.qrc"/>
|
||||
|
|
|
|||
|
|
@ -754,6 +754,11 @@ void MapWidget::changeStyle()
|
|||
Q_EMIT MapStyleChanged(p->currentStyle_->name_);
|
||||
}
|
||||
|
||||
void MapWidget::DumpLayerList() const
|
||||
{
|
||||
logger_->debug("Layers: {}", p->map_->layerIds().join(", ").toStdString());
|
||||
}
|
||||
|
||||
std::string MapWidgetImpl::FindMapSymbologyLayer()
|
||||
{
|
||||
std::string before = "ferry";
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@ public:
|
|||
explicit MapWidget(std::size_t id, const QMapLibreGL::Settings&);
|
||||
~MapWidget();
|
||||
|
||||
void DumpLayerList() const;
|
||||
|
||||
common::Level3ProductCategoryMap GetAvailableLevel3Categories();
|
||||
float GetElevation() const;
|
||||
std::vector<float> GetElevationCuts() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue