mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:30:05 +00:00 
			
		
		
		
	Fix up custom map inputs, making it easier for others to use
This commit is contained in:
		
							parent
							
								
									c9ead60dd4
								
							
						
					
					
						commit
						fee00b737a
					
				
					 11 changed files with 425 additions and 65 deletions
				
			
		
							
								
								
									
										38
									
								
								scwx-qt/source/scwx/qt/ui/custom_layer_dialog.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								scwx-qt/source/scwx/qt/ui/custom_layer_dialog.hpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,38 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <qmaplibre.hpp> | ||||
| #include <QDialog> | ||||
| #include <string> | ||||
| 
 | ||||
| namespace Ui | ||||
| { | ||||
| class CustomLayerDialog; | ||||
| } | ||||
| 
 | ||||
| namespace scwx::qt::ui | ||||
| { | ||||
| 
 | ||||
| class CustomLayerDialogImpl; | ||||
| 
 | ||||
| class CustomLayerDialog : public QDialog | ||||
| { | ||||
|    Q_OBJECT | ||||
| 
 | ||||
| public: | ||||
|    explicit CustomLayerDialog(const QMapLibre::Settings& settings, | ||||
|                               QWidget*                   parent = nullptr); | ||||
|    ~CustomLayerDialog() override; | ||||
|    CustomLayerDialog(const CustomLayerDialog&)            = delete; | ||||
|    CustomLayerDialog(CustomLayerDialog&&)                 = delete; | ||||
|    CustomLayerDialog& operator=(const CustomLayerDialog&) = delete; | ||||
|    CustomLayerDialog& operator=(CustomLayerDialog&&)      = delete; | ||||
| 
 | ||||
|    std::string selected_layer(); | ||||
| 
 | ||||
| private: | ||||
|    friend class CustomLayerDialogImpl; | ||||
|    std::unique_ptr<CustomLayerDialogImpl> p; | ||||
|    Ui::CustomLayerDialog*                 ui; | ||||
| }; | ||||
| 
 | ||||
| } // namespace scwx::qt::ui
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak