mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-27 23:26:37 +00:00 
			
		
		
		
	For details please see: https://forum.openmw.org/viewtopic.php?f=7&t=1451 https://bugreports.qt-project.org/browse/QTBUG-22829 Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
		
			
				
	
	
		
			50 lines
		
	
	
	
		
			1,021 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
	
		
			1,021 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef CS_EDITOR_H
 | |
| #define CS_EDITOR_H
 | |
| 
 | |
| #include <QObject>
 | |
| #ifndef Q_MOC_RUN
 | |
| #include <components/files/configurationmanager.hpp>
 | |
| #endif
 | |
| #include "model/doc/documentmanager.hpp"
 | |
| 
 | |
| #include "view/doc/viewmanager.hpp"
 | |
| #include "view/doc/startup.hpp"
 | |
| #include "view/doc/filedialog.hpp"
 | |
| 
 | |
| namespace CS
 | |
| {
 | |
|     class Editor : public QObject
 | |
|     {
 | |
|             Q_OBJECT
 | |
| 
 | |
|             CSMDoc::DocumentManager mDocumentManager;
 | |
|             CSVDoc::ViewManager mViewManager;
 | |
|             CSVDoc::StartupDialogue mStartup;
 | |
|             FileDialog mFileDialog;
 | |
| 
 | |
|             Files::ConfigurationManager mCfgMgr;
 | |
| 
 | |
|             void setupDataFiles();
 | |
| 
 | |
|             // not implemented
 | |
|             Editor (const Editor&);
 | |
|             Editor& operator= (const Editor&);
 | |
| 
 | |
|         public:
 | |
| 
 | |
|             Editor();
 | |
| 
 | |
|             int run();
 | |
|             ///< \return error status
 | |
| 
 | |
|         private slots:
 | |
| 
 | |
|             void createDocument();
 | |
| 
 | |
|             void loadDocument();
 | |
|             void openFiles();
 | |
|             void createNewFile();
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif
 |