<!DOCTYPE TS>
<TS version="2.0" language="de_DE" sourcelanguage="en_US">
<context>
+ <name>HelpWindow</name>
+ <message>
+ <location filename="helpwindow.ui" line="14"/>
+ <source>Help</source>
+ <translation>Hilfe</translation>
+ </message>
+ <message>
+ <location filename="helpwindow.cpp" line="56"/>
+ <source>QCPUFreq</source>
+ <translation>QCPUFreq</translation>
+ </message>
+ <message>
+ <location filename="helpwindow.cpp" line="56"/>
+ <source>Cannot open help file!</source>
+ <translation>Kann die Hilfe-Datei nicht öffnen!</translation>
+ </message>
+</context>
+<context>
<name>MainWindow</name>
<message>
<location filename="mainwindow.ui" line="14"/>
- <location filename="mainwindow.cpp" line="218"/>
+ <location filename="mainwindow.cpp" line="141"/>
+ <location filename="mainwindow.cpp" line="270"/>
<source>QCPUFreq</source>
<translation>QCPUFreq</translation>
</message>
<location filename="mainwindow.ui" line="55"/>
<location filename="mainwindow.ui" line="69"/>
<location filename="mainwindow.ui" line="83"/>
- <location filename="mainwindow.cpp" line="107"/>
+ <location filename="mainwindow.cpp" line="156"/>
<source>Unknown</source>
<translation>Unbekannt</translation>
</message>
</message>
<message>
<location filename="mainwindow.ui" line="109"/>
- <location filename="mainwindow.cpp" line="260"/>
- <source>Disabled</source>
- <translation>Deaktiviert</translation>
+ <source>Enable</source>
+ <oldsource>Disabled</oldsource>
+ <translation>Aktivieren</translation>
</message>
<message>
<location filename="mainwindow.ui" line="306"/>
<translation>Datei</translation>
</message>
<message>
- <location filename="mainwindow.ui" line="342"/>
+ <location filename="mainwindow.ui" line="343"/>
<source>About</source>
<translation>Über</translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="218"/>
+ <location filename="mainwindow.ui" line="348"/>
+ <source>Help</source>
+ <translation>Hilfe</translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="141"/>
+ <source>There seems to be a problem with your sudo setup!</source>
+ <translation>Es liegt offenbar ein Problem bei der sudo Einrichtung vor!</translation>
+ </message>
+ <message>
+ <location filename="mainwindow.cpp" line="270"/>
<source>Could not get information from /sys!</source>
<translation>Konnte Informationen aus /sys nicht lesen!</translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="257"/>
<source>Enabled</source>
- <translation>Aktiviert</translation>
+ <translation type="obsolete">Aktiviert</translation>
</message>
<message>
- <location filename="mainwindow.cpp" line="325"/>
+ <location filename="mainwindow.cpp" line="373"/>
<source>SmartReflex support is known to be unstable on some devices and may cause random reboots.</source>
<translation>SmartReflex kann auf einigen Geräten instabil sein und zu zufälligen Neustarts führen.</translation>
</message>
--- /dev/null
+<h1>QCPUFreq Hilfe</h1>
+
+Dieses Programm ermöglicht es die maximale CPU Geschwindigkeit herabzusetzen.
+<br><br>
+Das kann besonders bei Anwendungen nützlich sein, die stets die CPU dazu veranlassen, mit maximaler Geschwindigkeit zu laufen, obwohl es nicht notwendig ist (zum Beispiel Emulatoren). Falls solche Anwendungen häufig zum Einsatz kommen, kann man relativ viel Akku-Leistung sparen. Jedoch kann nicht in allen Fällen Akku gespart werden!
+<hr>
+WICHTIG:
+<ul>
+ <li>Alle Änderungen sind <strong>NICHT dauerhaft</strong><br>
+ Wenn die CPU Frequenz oder die SmartReflex™ Einstellungen dauerhaft geändert werden sollen, muss die Datei <em>/etc/pmconfig</em> angepasst werden. Ändern Sie diese Datei nur, wenn Sie genau wissen, was Sie machen!
+ </li>
+ <li>Nachdem das Akku-Ladegerät herausgezogen wird, verwendet die CPU wieder die Systemeinstellung für die maximaler Geschwindigkeit. Verwenden Sie nach dem Aufladen QCPUFreq, um diese wieder herabzusetzen!</li>
+ <li>SmartReflex™ ist auf einigen Geräten instabil und kann zu zufälligen Neustarts führen.</li>
+ <li>Ab PR 1.2 hat Nokia "VDD2 SR" deaktiviert, um das Gerät stabiler zu machen. Aus diesem Grund aktiviert QCPUFreq auf neueren Firmwareversionen nur VDD1 SmartReflex™.</li>
+ <li>Es kann vorkommen, dass als Wert für die CPU-Temperatur "0" angezeigt wird. Es handelt sich hierbei um ein Kernel-Problem und stellt keine Fehlfunktion dieses Programmes dar.</li>
+</ul>
This application allows you to lower your maximum CPU speed.
<br><br>
-You only need to
+This might be useful for some applications (like emulators), which cause your CPU to always run at full speed when it is really not required. You can save quite a lot of battery power if you use such applications frequently. Please note that you won't always be able to save battery power!
<hr>
-fsd
+IMPORTANT:
+<ul>
+ <li>Changes are <strong>NON-permanent</strong><br>
+ If you want to permanently change your CPU frequency or SmartReflex™ settings, you need to edit /etc/pmconfig. Only edit this file if you know what you are doing!
+ </li>
+ <li>After unplugging the charger from your device the CPU will always use the full maximum speed setting. Use QCPUFreq after charging for lowering the speed again!</li>
+ <li>SmartReflex™ is known to be unstable on some devices and may cause random reboots.</li>
+ <li>Starting with PR 1.2, Nokia has disabled "VDD2 SR" in order to make the device more stable. This is why QCPUFreq only enables VDD1 SmartReflex™ on newer firmwares.</li>
+ <li>The value of the CPU temperature might sometimes be "0". This is actually a kernel problem and not a bug in QCPUFreq.</li>
+</ul>
#include <QLocale>
#include <QTextStream>
#include <QMessageBox>
+#include <QPalette>
+#include <QBrush>
+#include <QColor>
HelpWindow::HelpWindow(QWidget *parent) :
QWidget(parent),
setHelpText();
+ //format color of help text according to system color scheme
+ QPalette palette;
+ QBrush brush = palette.windowText();
+ QColor color = brush.color();
+ ui->textBrowser->setStyleSheet( "background: transparent; color: " + color.name() + ";" );
}
+
HelpWindow::~HelpWindow()
{
delete ui;
{
//get the current locale name for lacalized help messages
QString locale = QLocale::system().name();
+ QStringList tmp = locale.split("_");
+ locale = tmp.first();
//open help text
QFile help( ":/txt/help_" + locale );
txt += "\n";
} while ( !in.atEnd() );
- ui->textEdit->setText( txt );
+ ui->textBrowser->setText( txt );
}
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
- <widget class="QTextEdit" name="textEdit">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
+ <widget class="QTextBrowser" name="textBrowser">
<property name="styleSheet">
- <string notr="true">background: transparent;</string>
+ <string notr="true"/>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
- <property name="frameShadow">
- <enum>QFrame::Plain</enum>
- </property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
- <property name="readOnly">
- <bool>true</bool>
- </property>
</widget>
</item>
</layout>
QApplication a(argc, argv);
QString locale = QLocale::system().name();
+ QStringList tmp = locale.split("_");
+ locale = tmp.first();
QString localedir = "/opt/usr/share/qcpufreq";
QTranslator translator;
translator.load( locale, localedir );
connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(orientationChanged()));
connect(ui->sr_box, SIGNAL(clicked()), this, SLOT(setSmartReflex()));
connect(refreshTimer, SIGNAL(timeout()), this, SLOT(refresh()));
+
}
MainWindow::~MainWindow()
<rect>
<x>0</x>
<y>0</y>
- <width>699</width>
- <height>619</height>
+ <width>469</width>
+ <height>636</height>
</rect>
</property>
<property name="windowTitle">
<item row="4" column="1">
<widget class="QCheckBox" name="sr_box">
<property name="sizePolicy">
- <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
+ <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
- <string>Enable SR</string>
+ <string>Enable</string>
</property>
</widget>
</item>
<rect>
<x>0</x>
<y>0</y>
- <width>699</width>
+ <width>469</width>
<height>21</height>
</rect>
</property>
</qresource>
<qresource prefix="/txt">
<file alias="help_en">help_en.html</file>
+ <file alias="help_de">help_de.html</file>
</qresource>
</RCC>