summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-07-20 11:12:28 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-08-02 03:06:59 -0400
commit107b396902be52f8ae305f58d4e7d85a86779051 (patch)
treed3295342db3707e355affe315f39bc478ec89a86 /src/settings.h
parente8d7930edacdc04a4607ecd59fc402f2f04ea39d (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.h55
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);