diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-20 11:12:28 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-02 03:06:59 -0400 |
| commit | 107b396902be52f8ae305f58d4e7d85a86779051 (patch) | |
| tree | d3295342db3707e355affe315f39bc478ec89a86 /src/settings.h | |
| parent | e8d7930edacdc04a4607ecd59fc402f2f04ea39d (diff) | |
moved tabs to SettingsDialog
removed Settings::query(), main window now deals with SettingsDialog directly
Diffstat (limited to 'src/settings.h')
| -rw-r--r-- | src/settings.h | 55 |
1 files changed, 2 insertions, 53 deletions
diff --git a/src/settings.h b/src/settings.h index 71fbcbc1..899baaa3 100644 --- a/src/settings.h +++ b/src/settings.h @@ -26,60 +26,21 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <QList> #include <QMap> #include <QObject> -#include <QPushButton> #include <QSet> #include <QSettings> #include <QString> #include <QVariant> #include <QColor> -#include <QMetaType> - -#include <QtGlobal> //for uint - #include <map> #include <vector> -class QCheckBox; -class QComboBox; -class QLineEdit; -class QSpinBox; -class QListWidget; -class QWidget; -class QLabel; -class QPushButton; - -struct ServerInfo; - namespace MOBase { class IPlugin; class IPluginGame; } -namespace Ui { - class SettingsDialog; -} - -class SettingsDialog; class PluginContainer; -class Settings; - -class SettingsTab -{ -public: - SettingsTab(Settings *m_parent, SettingsDialog &m_dialog); - virtual ~SettingsTab(); - - virtual void update() = 0; - virtual void closing() {} - -protected: - Settings *m_parent; - QSettings &m_Settings; - SettingsDialog &m_dialog; - Ui::SettingsDialog* ui; - - QWidget* parentWidget(); -}; +struct ServerInfo; /** * manages the settings for Mod Organizer. The settings are not cached @@ -87,17 +48,11 @@ protected: **/ class Settings : public QObject { - Q_OBJECT public: - - /** - * @brief constructor - **/ Settings(const QSettings &settingsSource); - - virtual ~Settings(); + ~Settings(); static Settings &instance(); @@ -114,12 +69,6 @@ public: void registerPlugin(MOBase::IPlugin *plugin); /** - * displays a SettingsDialog that allows the user to change settings. If the - * user accepts the changes, the settings are immediately written - **/ - void query(PluginContainer *pluginContainer, QWidget *parent); - - /** * set up the settings for the specified plugins **/ void addPluginSettings(const std::vector<MOBase::IPlugin*> &plugins); |
