mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 13:30:06 +00:00
Separating tree model from radar product model
This commit is contained in:
parent
782d61e5f0
commit
1ab0d62b1f
7 changed files with 182 additions and 79 deletions
|
|
@ -45,6 +45,7 @@ public:
|
|||
level2ProductsWidget_ {nullptr},
|
||||
level2SettingsWidget_ {nullptr},
|
||||
radarSiteDialog_ {nullptr},
|
||||
radarProductModel_ {nullptr},
|
||||
maps_ {},
|
||||
elevationCuts_ {},
|
||||
elevationButtonsChanged_ {false},
|
||||
|
|
@ -104,6 +105,8 @@ public:
|
|||
|
||||
ui::RadarSiteDialog* radarSiteDialog_;
|
||||
|
||||
std::shared_ptr<model::RadarProductModel> radarProductModel_;
|
||||
|
||||
std::vector<map::MapWidget*> maps_;
|
||||
std::vector<float> elevationCuts_;
|
||||
|
||||
|
|
@ -144,7 +147,7 @@ MainWindow::MainWindow(QWidget* parent) :
|
|||
// Configure Docks
|
||||
ui->resourceExplorerDock->setVisible(false);
|
||||
|
||||
ui->resourceTreeView->setModel(new model::RadarProductModel(this));
|
||||
p->radarProductModel_ = std::make_shared<model::RadarProductModel>();
|
||||
|
||||
// Configure Map
|
||||
p->ConfigureMapLayout();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue