mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:30:05 +00:00 
			
		
		
		
	Add select Map Layers to View menu
This commit is contained in:
		
							parent
							
								
									54047b7645
								
							
						
					
					
						commit
						9e3b2916e1
					
				
					 6 changed files with 199 additions and 5 deletions
				
			
		|  | @ -16,6 +16,7 @@ namespace model | |||
| 
 | ||||
| class LayerModel : public QAbstractTableModel | ||||
| { | ||||
|    Q_OBJECT | ||||
|    Q_DISABLE_COPY_MOVE(LayerModel) | ||||
| 
 | ||||
| public: | ||||
|  | @ -36,7 +37,12 @@ public: | |||
|    explicit LayerModel(QObject* parent = nullptr); | ||||
|    ~LayerModel(); | ||||
| 
 | ||||
|    types::LayerInfo   GetLayerInfo(types::LayerType        type, | ||||
|                                    types::LayerDescription description) const; | ||||
|    types::LayerVector GetLayers() const; | ||||
|    void               SetLayerDisplayed(types::LayerType        type, | ||||
|                                         types::LayerDescription description, | ||||
|                                         bool                    displayed); | ||||
| 
 | ||||
|    void ResetLayers(); | ||||
| 
 | ||||
|  | @ -77,6 +83,9 @@ public: | |||
| 
 | ||||
|    static std::shared_ptr<LayerModel> Instance(); | ||||
| 
 | ||||
| signals: | ||||
|    void LayerDisplayChanged(types::LayerInfo layer); | ||||
| 
 | ||||
| private: | ||||
|    class Impl; | ||||
|    std::unique_ptr<Impl> p; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat