X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmainwindow.h;h=93c39c5602b5e6ba77eb483c19905f781f1f5df4;hb=fc865bf143095ad1acf6afc5f0ba491c8fba5de5;hp=a2c30428a12f754c0f1534ee0aef1beac5b00731;hpb=89f906b75be3e7d21cb34f8e9b811a798af26688;p=qcpufreq diff --git a/src/mainwindow.h b/src/mainwindow.h index a2c3042..93c39c5 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -1,6 +1,6 @@ /* * QCPUFreq - a simple cpufreq GUI - * Copyright (C) 2010 Daniel Klaffenbach + * Copyright (C) 2010 Daniel Klaffenbach * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,8 +23,11 @@ #include #include #include +#include #include "helpwindow.h" +#include "loadpreset.h" +#include "settings.h" namespace Ui { class MainWindow; @@ -41,11 +44,17 @@ 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(); private: @@ -63,13 +72,21 @@ private: QProcess helperProcess; //! The help window HelpWindow helpWindow; + //! Initializes the application + void init(); + LoadPreset *loadPresetDialog; int minFreq; QString readSysFile( QString sys_file ); //! the timer for refreshing the UI QTimer refreshTimer; + //! The amount of scaling steps + int scalingSteps; + //! The available scaling frequencies + QStringList scalingFrequencies; //! the QGraphicsScene will contain the large chip icon displayed in the UI QGraphicsScene scene; bool showSudoError; + Settings *settings; bool usePortrait(); };