mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 07:56:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			48 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef SETTINGSPAGE_H
 | |
| #define SETTINGSPAGE_H
 | |
| 
 | |
| #include <QCompleter>
 | |
| #include <QStringListModel>
 | |
| 
 | |
| #include "ui_settingspage.h"
 | |
| 
 | |
| namespace Config
 | |
| {
 | |
|     class GameSettings;
 | |
| }
 | |
| 
 | |
| namespace Launcher
 | |
| {
 | |
|     class SettingsPage : public QWidget, private Ui::SettingsPage
 | |
|     {
 | |
|         Q_OBJECT
 | |
| 
 | |
|     public:
 | |
|         explicit SettingsPage(Config::GameSettings& gameSettings, QWidget* parent = nullptr);
 | |
| 
 | |
|         bool loadSettings();
 | |
|         void saveSettings();
 | |
| 
 | |
|     public slots:
 | |
|         void slotLoadedCellsChanged(QStringList cellNames);
 | |
| 
 | |
|     private slots:
 | |
|         void on_skipMenuCheckBox_stateChanged(int state);
 | |
|         void on_runScriptAfterStartupBrowseButton_clicked();
 | |
|         void slotAnimSourcesToggled(bool checked);
 | |
|         void slotPostProcessToggled(bool checked);
 | |
|         void slotSkyBlendingToggled(bool checked);
 | |
| 
 | |
|     private:
 | |
|         Config::GameSettings& mGameSettings;
 | |
|         QCompleter mCellNameCompleter;
 | |
|         QStringListModel mCellNameCompleterModel;
 | |
| 
 | |
|         /**
 | |
|          * Load the cells associated with the given content files for use in autocomplete
 | |
|          * @param filePaths the file paths of the content files to be examined
 | |
|          */
 | |
|         void loadCellsForAutocomplete(QStringList filePaths);
 | |
|     };
 | |
| }
 | |
| #endif
 |