mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:40:06 +00:00 
			
		
		
		
	Radar site dialog
This commit is contained in:
		
							parent
							
								
									60a85a6b14
								
							
						
					
					
						commit
						9e3c525109
					
				
					 6 changed files with 162 additions and 4 deletions
				
			
		|  | @ -11,6 +11,7 @@ | |||
| #include <scwx/qt/ui/level2_products_widget.hpp> | ||||
| #include <scwx/qt/ui/level2_settings_widget.hpp> | ||||
| #include <scwx/qt/ui/level3_products_widget.hpp> | ||||
| #include <scwx/qt/ui/radar_site_dialog.hpp> | ||||
| #include <scwx/common/characters.hpp> | ||||
| #include <scwx/common/products.hpp> | ||||
| #include <scwx/common/vcp.hpp> | ||||
|  | @ -43,6 +44,7 @@ public: | |||
|        activeMap_ {nullptr}, | ||||
|        level2ProductsWidget_ {nullptr}, | ||||
|        level2SettingsWidget_ {nullptr}, | ||||
|        radarSiteDialog_ {nullptr}, | ||||
|        maps_ {}, | ||||
|        elevationCuts_ {}, | ||||
|        elevationButtonsChanged_ {false}, | ||||
|  | @ -99,6 +101,8 @@ public: | |||
| 
 | ||||
|    ui::Level3ProductsWidget* level3ProductsWidget_; | ||||
| 
 | ||||
|    ui::RadarSiteDialog* radarSiteDialog_; | ||||
| 
 | ||||
|    std::vector<map::MapWidget*> maps_; | ||||
|    std::vector<float>           elevationCuts_; | ||||
| 
 | ||||
|  | @ -144,6 +148,9 @@ MainWindow::MainWindow(QWidget* parent) : | |||
|    // Configure Map
 | ||||
|    p->ConfigureMapLayout(); | ||||
| 
 | ||||
|    // Radar Site Dialog
 | ||||
|    p->radarSiteDialog_ = new ui::RadarSiteDialog(this); | ||||
| 
 | ||||
|    // Add Level 2 Products
 | ||||
|    p->level2ProductsWidget_ = new ui::Level2ProductsWidget(this); | ||||
|    ui->radarProductGroupBox->layout()->replaceWidget(ui->level2ProductFrame, | ||||
|  | @ -285,6 +292,11 @@ void MainWindow::on_actionExit_triggered() | |||
|    close(); | ||||
| } | ||||
| 
 | ||||
| void MainWindow::on_radarSiteSelectButton_clicked() | ||||
| { | ||||
|    p->radarSiteDialog_->show(); | ||||
| } | ||||
| 
 | ||||
| void MainWindow::on_resourceTreeCollapseAllButton_clicked() | ||||
| { | ||||
|    ui->resourceTreeView->collapseAll(); | ||||
|  |  | |||
|  | @ -16,12 +16,12 @@ namespace qt | |||
| namespace main | ||||
| { | ||||
| 
 | ||||
| class MainWindowImpl; | ||||
| 
 | ||||
| class MainWindow : public QMainWindow | ||||
| { | ||||
|    Q_OBJECT | ||||
| 
 | ||||
|    friend class MainWindowImpl; | ||||
| 
 | ||||
| public: | ||||
|    MainWindow(QWidget* parent = nullptr); | ||||
|    ~MainWindow(); | ||||
|  | @ -31,12 +31,15 @@ public: | |||
| private slots: | ||||
|    void on_actionOpen_triggered(); | ||||
|    void on_actionExit_triggered(); | ||||
|    void on_radarSiteSelectButton_clicked(); | ||||
|    void on_resourceTreeCollapseAllButton_clicked(); | ||||
|    void on_resourceTreeExpandAllButton_clicked(); | ||||
| 
 | ||||
| private: | ||||
|    std::unique_ptr<MainWindowImpl> p; | ||||
|    Ui::MainWindow*                 ui; | ||||
| 
 | ||||
|    friend class MainWindowImpl; | ||||
| }; | ||||
| 
 | ||||
| } // namespace main
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat