New release: 0.4.2
[qcpufreq] / src / mainwindow.h
index 6dc82c6..93c39c5 100644 (file)
@@ -26,6 +26,7 @@
 #include <QStringList>
 
 #include "helpwindow.h"
+#include "loadpreset.h"
 #include "settings.h"
 
 namespace Ui {
@@ -43,11 +44,16 @@ public:
 public slots:
     void about();
     void adjustFreq();
+    void applySettings();
+    void loadPreset(QString presetName);
     void orientationChanged();
     void refresh();
+    void save();
+    void setAdvancedTemperature();
     void setAutoRotation();
     void setSmartReflex();
     void showHelp();
+    //void showLoadPresetDialog();
     void showSettings();
 
 
@@ -68,6 +74,7 @@ private:
     HelpWindow helpWindow;
     //! Initializes the application
     void init();
+    LoadPreset *loadPresetDialog;
     int minFreq;
     QString readSysFile( QString sys_file );
     //! the timer for refreshing the UI
@@ -79,7 +86,7 @@ private:
     //! the QGraphicsScene will contain the large chip icon displayed in the UI
     QGraphicsScene scene;
     bool showSudoError;
-    Settings settings;
+    Settings *settings;
     bool usePortrait();
 };