mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 09:26:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			46 lines
		
	
	
	
		
			827 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
	
		
			827 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef MAINDIALOG_H
 | |
| #define MAINDIALOG_H
 | |
| 
 | |
| #include <QDialog>
 | |
| 
 | |
| #include <components/files/configurationmanager.hpp>
 | |
| 
 | |
| class QListWidget;
 | |
| class QListWidgetItem;
 | |
| class QStackedWidget;
 | |
| class QStringList;
 | |
| class QStringListModel;
 | |
| class QString;
 | |
| 
 | |
| class PlayPage;
 | |
| class GraphicsPage;
 | |
| class DataFilesPage;
 | |
| 
 | |
| class MainDialog : public QDialog
 | |
| {
 | |
|     Q_OBJECT
 | |
| 
 | |
| public:
 | |
|     MainDialog();
 | |
| 
 | |
| public slots:
 | |
|     void changePage(QListWidgetItem *current, QListWidgetItem *previous);
 | |
|     void play();
 | |
|     void profileChanged(int index);
 | |
| 
 | |
| private:
 | |
|     void createIcons();
 | |
|     void createPages();
 | |
|     void closeEvent(QCloseEvent *event);
 | |
| 
 | |
|     QListWidget *mIconWidget;
 | |
|     QStackedWidget *mPagesWidget;
 | |
| 
 | |
|     PlayPage *mPlayPage;
 | |
|     GraphicsPage *mGraphicsPage;
 | |
|     DataFilesPage *mDataFilesPage;
 | |
| 
 | |
|     Files::ConfigurationManager mCfgMgr;
 | |
| };
 | |
| 
 | |
| #endif
 |