Convert to TDE R14 API

pull/1/head
Timothy Pearson 12 years ago
parent ea3a9effca
commit 24857cad8e

@ -15,7 +15,7 @@ KSensors-0.7.2
-------------- --------------
* Fixed crash in kde 3.1 when docking sensors * Fixed crash in kde 3.1 when docking sensors
* Used K sufix instead of º in Kelvin temperatures. * Used K sufix instead of º in Kelvin temperatures.
* Fixed compilation problems with gcc 3.x * Fixed compilation problems with gcc 3.x
* Fixed max1617 bug (patch from Aurelien Jarno <aurel32@debian.org>) * Fixed max1617 bug (patch from Aurelien Jarno <aurel32@debian.org>)
* Updated code for using new version of hddtemp (v0.3b) (patch from Aurelien Jarno <aurel32@debian.org>) * Updated code for using new version of hddtemp (v0.3b) (patch from Aurelien Jarno <aurel32@debian.org>)

@ -4,7 +4,7 @@ KSensors (ksensors.sourceforge.net) michaell@teleline.es
Allgemeine Informationen Allgemeine Informationen
------------------------ ------------------------
Dies ist ein lmsensors Frontend, Sie müssen zuerst die lmsensors Treiber Dies ist ein lmsensors Frontend, Sie müssen zuerst die lmsensors Treiber
installieren, um es zu benutzen (http://www.netroedge.com/~lm78/): installieren, um es zu benutzen (http://www.netroedge.com/~lm78/):
In Mandrake versuchen Sie: In Mandrake versuchen Sie:
@ -12,19 +12,19 @@ urpmi lm_utils lm_utils-devel
Dann starten Sie das Script: Dann starten Sie das Script:
sensors-detect sensors-detect
es listet die Module auf, die Sie für Ihr Motherboard installieren müssen. es listet die Module auf, die Sie für Ihr Motherboard installieren müssen.
Diese Software wurde nur auf meinem Motherboard (PII866 Asus CUBX-L) Diese Software wurde nur auf meinem Motherboard (PII866 Asus CUBX-L)
getestet. Ich weiß nicht, ob es mit anderen Motherboards problemlos getestet. Ich weiß nicht, ob es mit anderen Motherboards problemlos
funktioniert. Versuchen Sie es. funktioniert. Versuchen Sie es.
KSensors kompilieren und installieren KSensors kompilieren und installieren
------------------------------------- -------------------------------------
Dieses Programm wird standardmäßig in /usr/local/kde installiert. Dieses Programm wird standardmäßig in /usr/local/kde installiert.
In den neuesten Distributionen (Debian woody, Mandrake, usw.) In den neuesten Distributionen (Debian woody, Mandrake, usw.)
liegt das KDE Verzeichnis in /usr. In diesem Fall müssen Sie das liegt das KDE Verzeichnis in /usr. In diesem Fall müssen Sie das
Verzeichnis mit dem --prefix Argument konfigurieren. Verzeichnis mit dem --prefix Argument konfigurieren.
tar -zxvf ksensors-0.7.3.tar.gz tar -zxvf ksensors-0.7.3.tar.gz
@ -44,7 +44,7 @@ Kontakt Information
------------------- -------------------
Kontakten Sie mich, wenn Sie Probleme haben, diese Software Kontakten Sie mich, wenn Sie Probleme haben, diese Software
zu benutzen, oder um Fehler zu melden, Fragen zu stellen, zu benutzen, oder um Fehler zu melden, Fragen zu stellen,
Rückmeldungen zu geben usw. Rückmeldungen zu geben usw.
------------------------- -------------------------
ksensors.sourceforge.net ksensors.sourceforge.net

@ -2,7 +2,7 @@
KSensors (ksensors.sourceforge.net) michaell@teleline.es KSensors (ksensors.sourceforge.net) michaell@teleline.es
================================================================== ==================================================================
Information Générales Information Générales
--------------------- ---------------------
Ce programme est un front-end pour lmsensors, vous devez installer les drivers Ce programme est un front-end pour lmsensors, vous devez installer les drivers
@ -14,25 +14,25 @@ urpmi lm_utils lm_utils-devel
Ensuite, executez le script: Ensuite, executez le script:
sensors-detect sensors-detect
il vous montrera les modules de lm-sensors que vous devez installer pour il vous montrera les modules de lm-sensors que vous devez installer pour
votre carte-mère. votre carte-mère.
Ce programme a été testé uniquement sur ma carte-mère (PII866 Asus CUBX-L). Ce programme a été testé uniquement sur ma carte-mère (PII866 Asus CUBX-L).
Je ne sais pas s'il marche correctement avec d'autres carte-mères, essayez. Je ne sais pas s'il marche correctement avec d'autres carte-mères, essayez.
NOUVEAU : Surveillance de la température des disques durs NOUVEAU : Surveillance de la température des disques durs
--------------------------------------------------------- ---------------------------------------------------------
KSensors peut maintenant afficher les températures de vos disques durs KSensors peut maintenant afficher les températures de vos disques durs
(uniquement les disques durs récents). (uniquement les disques durs récents).
Vous devez pour cela installer le programme HDDtemp écrit par Emmanuel Vous devez pour cela installer le programme HDDtemp écrit par Emmanuel
Varagnat. HDDTemp doit se trouver dans la variable PATH pour que KSensors Varagnat. HDDTemp doit se trouver dans la variable PATH pour que KSensors
puisse l'utiliser. puisse l'utiliser.
Vous pouvez télécharger HDDTemp à l'adresse http://coredump.free.fr. Vous pouvez télécharger HDDTemp à l'adresse http://coredump.free.fr.
Le bit SUID bit doit être activé, tapez: Le bit SUID bit doit être activé, tapez:
chmod +s hddtemp chmod +s hddtemp
ATTENTION: Activer un bit SUID peut créer un trou de sécurité. ATTENTION: Activer un bit SUID peut créer un trou de sécurité.
Compilation et installation de KSensors avec KDE 3.x Compilation et installation de KSensors avec KDE 3.x
@ -44,10 +44,10 @@ cd ksensors-0.7.3
make make
make install make install
* Remplacez /opt/kde3 et /usr/lib/qt3 par vos répertoires KDE3 et QT3. * Remplacez /opt/kde3 et /usr/lib/qt3 par vos répertoires KDE3 et QT3.
Comment désinstaller Comment désinstaller
-------------------- --------------------
cd ksensors-0.7.3 cd ksensors-0.7.3
make uninstall make uninstall
@ -55,7 +55,7 @@ make uninstall
Contact Contact
------- -------
Contactez moi (en anglais ou en espagnol) si vous avez des problèmes pour Contactez moi (en anglais ou en espagnol) si vous avez des problèmes pour
executer ce programme ou pour m'indiquer des bugs, pour me poser des executer ce programme ou pour m'indiquer des bugs, pour me poser des
questions, faire des demandes, etc. questions, faire des demandes, etc.

@ -998,7 +998,7 @@ elif test "$kde_use_qt_emb" = "yes"; then
x_includes="" x_includes=""
x_libraries="" x_libraries=""
elif test "$kde_use_qt_mac" = "yes"; then elif test "$kde_use_qt_mac" = "yes"; then
dnl We're using QT/Mac (I use QT_MAC so that qglobal.h doesn't *have* to dnl We're using QT/Mac (I use QT_MAC so that ntqglobal.h doesn't *have* to
dnl be included to get the information) --Sam dnl be included to get the information) --Sam
CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp" CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp"
CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp" CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp"
@ -1032,19 +1032,19 @@ AC_DEFUN(KDE_PRINT_QT_PROGRAM,
AC_REQUIRE([KDE_USE_QT]) AC_REQUIRE([KDE_USE_QT])
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#include "confdefs.h" #include "confdefs.h"
#include <qglobal.h> #include <ntqglobal.h>
#include <qapplication.h> #include <ntqapplication.h>
EOF EOF
if test "$kde_qtver" = "2"; then if test "$kde_qtver" = "2"; then
cat >> conftest.$ac_ext <<EOF cat >> conftest.$ac_ext <<EOF
#include <qevent.h> #include <ntqevent.h>
#include <qstring.h> #include <ntqstring.h>
#include <qstyle.h> #include <ntqstyle.h>
EOF EOF
if test $kde_qtsubver -gt 0; then if test $kde_qtsubver -gt 0; then
cat >> conftest.$ac_ext <<EOF cat >> conftest.$ac_ext <<EOF
#if QT_VERSION < 210 #if TQT_VERSION < 210
#error 1 #error 1
#endif #endif
EOF EOF
@ -1053,8 +1053,8 @@ fi
if test "$kde_qtver" = "3"; then if test "$kde_qtver" = "3"; then
cat >> conftest.$ac_ext <<EOF cat >> conftest.$ac_ext <<EOF
#include <qcursor.h> #include <ntqcursor.h>
#include <qstylefactory.h> #include <ntqstylefactory.h>
#include <private/qucomextra_p.h> #include <private/qucomextra_p.h>
EOF EOF
fi fi
@ -1133,20 +1133,20 @@ fi
if test -z "$3"; then if test -z "$3"; then
if test $kde_qtver = 3; then if test $kde_qtver = 3; then
if test $kde_qtsubver -gt 0; then if test $kde_qtsubver -gt 0; then
kde_qt_verstring="QT_VERSION >= 0x030100" kde_qt_verstring="TQT_VERSION >= 0x030100"
else else
kde_qt_verstring="QT_VERSION >= 300" kde_qt_verstring="TQT_VERSION >= 300"
fi fi
fi fi
if test $kde_qtver = 2; then if test $kde_qtver = 2; then
if test $kde_qtsubver -gt 0; then if test $kde_qtsubver -gt 0; then
kde_qt_verstring="QT_VERSION >= 222" kde_qt_verstring="TQT_VERSION >= 222"
else else
kde_qt_verstring="QT_VERSION >= 200" kde_qt_verstring="TQT_VERSION >= 200"
fi fi
fi fi
if test $kde_qtver = 1; then if test $kde_qtver = 1; then
kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200" kde_qt_verstring="TQT_VERSION >= 142 && TQT_VERSION < 200"
fi fi
else else
kde_qt_verstring=$3 kde_qt_verstring=$3
@ -1252,7 +1252,7 @@ AC_ARG_ENABLE(
USING_QT_MT="" USING_QT_MT=""
dnl ------------------------------------------------------------------------ dnl ------------------------------------------------------------------------
dnl If we not get --disable-qt-mt then adjust some vars for the host. dnl If we not get --disable-tqt-mt then adjust some vars for the host.
dnl ------------------------------------------------------------------------ dnl ------------------------------------------------------------------------
KDE_MT_LDFLAGS= KDE_MT_LDFLAGS=
@ -1315,7 +1315,7 @@ dnl ------------------------------------------------------------
fi fi
dnl ------------------------------------------------------------------------ dnl ------------------------------------------------------------------------
dnl If we got --enable-qt-mt then adjust the Qt library name for the host. dnl If we got --enable-tqt-mt then adjust the Qt library name for the host.
dnl ------------------------------------------------------------------------ dnl ------------------------------------------------------------------------
if test "x$kde_use_qt_mt" = "xyes"; then if test "x$kde_use_qt_mt" = "xyes"; then
@ -1386,9 +1386,9 @@ if test ! "$ac_qt_includes" = "NO"; then
fi fi
if test "$kde_qtver" != "1"; then if test "$kde_qtver" != "1"; then
kde_qt_header=qstyle.h kde_qt_header=ntqstyle.h
else else
kde_qt_header=qglobal.h kde_qt_header=ntqglobal.h
fi fi
AC_FIND_FILE($kde_qt_header, $qt_incdirs, qt_incdir) AC_FIND_FILE($kde_qt_header, $qt_incdirs, qt_incdir)
@ -1926,7 +1926,7 @@ AC_CACHE_VAL(kde_cv_have_kdeqtaddon,
LDFLAGS="$LDFLAGS $all_libraries $USER_LDFLAGS" LDFLAGS="$LDFLAGS $all_libraries $USER_LDFLAGS"
AC_TRY_LINK([ AC_TRY_LINK([
#include <qdom.h> #include <ntqdom.h>
], ],
[ [
QDomDocument doc; QDomDocument doc;
@ -2470,7 +2470,7 @@ LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
ac_save_CXXFLAGS="$CXXFLAGS" ac_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES" CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
AC_TRY_LINK( AC_TRY_LINK(
[#include <qapplication.h>], [#include <ntqapplication.h>],
[ [
int argc; int argc;
char** argv; char** argv;
@ -4358,7 +4358,7 @@ CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
AC_TRY_RUN(dnl AC_TRY_RUN(dnl
[ [
#include <qimageio.h> #include <qimageio.h>
#include <qstring.h> #include <ntqstring.h>
int main() { int main() {
QString t = "hallo"; QString t = "hallo";
t.fill('t'); t.fill('t');
@ -5137,7 +5137,7 @@ if test "${with_qt_dir+set}" = set; then
kde_qtdir="$with_qt_dir" kde_qtdir="$with_qt_dir"
fi fi
AC_FIND_FILE(qsql.html, [ $kde_qtdir/doc/html $QTDIR/doc/html /usr/share/doc/packages/qt3/html /usr/lib/qt/doc /usr/lib/qt3/doc /usr/lib/qt3/doc/html /usr/doc/qt3/html /usr/doc/qt3 /usr/share/doc/qt3-doc /usr/share/qt3/doc/html /usr/X11R6/share/doc/qt/html ], QTDOCDIR) AC_FIND_FILE(ntqsql.html, [ $kde_qtdir/doc/html $QTDIR/doc/html /usr/share/doc/packages/qt3/html /usr/lib/qt/doc /usr/lib/qt3/doc /usr/lib/qt3/doc/html /usr/doc/qt3/html /usr/doc/qt3 /usr/share/doc/qt3-doc /usr/share/qt3/doc/html /usr/X11R6/share/doc/qt/html ], QTDOCDIR)
AC_MSG_RESULT($QTDOCDIR) AC_MSG_RESULT($QTDOCDIR)
AC_SUBST(QTDOCDIR) AC_SUBST(QTDOCDIR)
@ -5158,7 +5158,7 @@ AC_SUBST(DOXYGEN_PROJECT_NAME)
AC_SUBST(DOXYGEN_PROJECT_NUMBER) AC_SUBST(DOXYGEN_PROJECT_NUMBER)
KDE_HAS_DOXYGEN=no KDE_HAS_DOXYGEN=no
if test -n "$DOXYGEN" && test -x "$DOXYGEN" && test -f $QTDOCDIR/qsql.html; then if test -n "$DOXYGEN" && test -x "$DOXYGEN" && test -f $QTDOCDIR/ntqsql.html; then
KDE_HAS_DOXYGEN=yes KDE_HAS_DOXYGEN=yes
fi fi
AC_SUBST(KDE_HAS_DOXYGEN) AC_SUBST(KDE_HAS_DOXYGEN)

46
aclocal.m4 vendored

@ -1010,7 +1010,7 @@ elif test "$kde_use_qt_emb" = "yes"; then
x_includes="" x_includes=""
x_libraries="" x_libraries=""
elif test "$kde_use_qt_mac" = "yes"; then elif test "$kde_use_qt_mac" = "yes"; then
dnl We're using QT/Mac (I use QT_MAC so that qglobal.h doesn't *have* to dnl We're using QT/Mac (I use QT_MAC so that ntqglobal.h doesn't *have* to
dnl be included to get the information) --Sam dnl be included to get the information) --Sam
CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp" CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp"
CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp" CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp"
@ -1044,19 +1044,19 @@ AC_DEFUN(KDE_PRINT_QT_PROGRAM,
AC_REQUIRE([KDE_USE_QT]) AC_REQUIRE([KDE_USE_QT])
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#include "confdefs.h" #include "confdefs.h"
#include <qglobal.h> #include <ntqglobal.h>
#include <qapplication.h> #include <ntqapplication.h>
EOF EOF
if test "$kde_qtver" = "2"; then if test "$kde_qtver" = "2"; then
cat >> conftest.$ac_ext <<EOF cat >> conftest.$ac_ext <<EOF
#include <qevent.h> #include <ntqevent.h>
#include <qstring.h> #include <ntqstring.h>
#include <qstyle.h> #include <ntqstyle.h>
EOF EOF
if test $kde_qtsubver -gt 0; then if test $kde_qtsubver -gt 0; then
cat >> conftest.$ac_ext <<EOF cat >> conftest.$ac_ext <<EOF
#if QT_VERSION < 210 #if TQT_VERSION < 210
#error 1 #error 1
#endif #endif
EOF EOF
@ -1065,8 +1065,8 @@ fi
if test "$kde_qtver" = "3"; then if test "$kde_qtver" = "3"; then
cat >> conftest.$ac_ext <<EOF cat >> conftest.$ac_ext <<EOF
#include <qcursor.h> #include <ntqcursor.h>
#include <qstylefactory.h> #include <ntqstylefactory.h>
#include <private/qucomextra_p.h> #include <private/qucomextra_p.h>
EOF EOF
fi fi
@ -1145,20 +1145,20 @@ fi
if test -z "$3"; then if test -z "$3"; then
if test $kde_qtver = 3; then if test $kde_qtver = 3; then
if test $kde_qtsubver -gt 0; then if test $kde_qtsubver -gt 0; then
kde_qt_verstring="QT_VERSION >= 0x030100" kde_qt_verstring="TQT_VERSION >= 0x030100"
else else
kde_qt_verstring="QT_VERSION >= 300" kde_qt_verstring="TQT_VERSION >= 300"
fi fi
fi fi
if test $kde_qtver = 2; then if test $kde_qtver = 2; then
if test $kde_qtsubver -gt 0; then if test $kde_qtsubver -gt 0; then
kde_qt_verstring="QT_VERSION >= 222" kde_qt_verstring="TQT_VERSION >= 222"
else else
kde_qt_verstring="QT_VERSION >= 200" kde_qt_verstring="TQT_VERSION >= 200"
fi fi
fi fi
if test $kde_qtver = 1; then if test $kde_qtver = 1; then
kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200" kde_qt_verstring="TQT_VERSION >= 142 && TQT_VERSION < 200"
fi fi
else else
kde_qt_verstring=$3 kde_qt_verstring=$3
@ -1264,7 +1264,7 @@ AC_ARG_ENABLE(
USING_QT_MT="" USING_QT_MT=""
dnl ------------------------------------------------------------------------ dnl ------------------------------------------------------------------------
dnl If we not get --disable-qt-mt then adjust some vars for the host. dnl If we not get --disable-tqt-mt then adjust some vars for the host.
dnl ------------------------------------------------------------------------ dnl ------------------------------------------------------------------------
KDE_MT_LDFLAGS= KDE_MT_LDFLAGS=
@ -1327,7 +1327,7 @@ dnl ------------------------------------------------------------
fi fi
dnl ------------------------------------------------------------------------ dnl ------------------------------------------------------------------------
dnl If we got --enable-qt-mt then adjust the Qt library name for the host. dnl If we got --enable-tqt-mt then adjust the Qt library name for the host.
dnl ------------------------------------------------------------------------ dnl ------------------------------------------------------------------------
if test "x$kde_use_qt_mt" = "xyes"; then if test "x$kde_use_qt_mt" = "xyes"; then
@ -1398,9 +1398,9 @@ if test ! "$ac_qt_includes" = "NO"; then
fi fi
if test "$kde_qtver" != "1"; then if test "$kde_qtver" != "1"; then
kde_qt_header=qstyle.h kde_qt_header=ntqstyle.h
else else
kde_qt_header=qglobal.h kde_qt_header=ntqglobal.h
fi fi
AC_FIND_FILE($kde_qt_header, $qt_incdirs, qt_incdir) AC_FIND_FILE($kde_qt_header, $qt_incdirs, qt_incdir)
@ -1938,7 +1938,7 @@ AC_CACHE_VAL(kde_cv_have_kdeqtaddon,
LDFLAGS="$LDFLAGS $all_libraries $USER_LDFLAGS" LDFLAGS="$LDFLAGS $all_libraries $USER_LDFLAGS"
AC_TRY_LINK([ AC_TRY_LINK([
#include <qdom.h> #include <ntqdom.h>
], ],
[ [
QDomDocument doc; QDomDocument doc;
@ -2482,7 +2482,7 @@ LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
ac_save_CXXFLAGS="$CXXFLAGS" ac_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES" CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
AC_TRY_LINK( AC_TRY_LINK(
[#include <qapplication.h>], [#include <ntqapplication.h>],
[ [
int argc; int argc;
char** argv; char** argv;
@ -4370,7 +4370,7 @@ CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
AC_TRY_RUN(dnl AC_TRY_RUN(dnl
[ [
#include <qimageio.h> #include <qimageio.h>
#include <qstring.h> #include <ntqstring.h>
int main() { int main() {
QString t = "hallo"; QString t = "hallo";
t.fill('t'); t.fill('t');
@ -5149,7 +5149,7 @@ if test "${with_qt_dir+set}" = set; then
kde_qtdir="$with_qt_dir" kde_qtdir="$with_qt_dir"
fi fi
AC_FIND_FILE(qsql.html, [ $kde_qtdir/doc/html $QTDIR/doc/html /usr/share/doc/packages/qt3/html /usr/lib/qt/doc /usr/lib/qt3/doc /usr/lib/qt3/doc/html /usr/doc/qt3/html /usr/doc/qt3 /usr/share/doc/qt3-doc /usr/share/qt3/doc/html /usr/X11R6/share/doc/qt/html ], QTDOCDIR) AC_FIND_FILE(ntqsql.html, [ $kde_qtdir/doc/html $QTDIR/doc/html /usr/share/doc/packages/qt3/html /usr/lib/qt/doc /usr/lib/qt3/doc /usr/lib/qt3/doc/html /usr/doc/qt3/html /usr/doc/qt3 /usr/share/doc/qt3-doc /usr/share/qt3/doc/html /usr/X11R6/share/doc/qt/html ], QTDOCDIR)
AC_MSG_RESULT($QTDOCDIR) AC_MSG_RESULT($QTDOCDIR)
AC_SUBST(QTDOCDIR) AC_SUBST(QTDOCDIR)
@ -5170,7 +5170,7 @@ AC_SUBST(DOXYGEN_PROJECT_NAME)
AC_SUBST(DOXYGEN_PROJECT_NUMBER) AC_SUBST(DOXYGEN_PROJECT_NUMBER)
KDE_HAS_DOXYGEN=no KDE_HAS_DOXYGEN=no
if test -n "$DOXYGEN" && test -x "$DOXYGEN" && test -f $QTDOCDIR/qsql.html; then if test -n "$DOXYGEN" && test -x "$DOXYGEN" && test -f $QTDOCDIR/ntqsql.html; then
KDE_HAS_DOXYGEN=yes KDE_HAS_DOXYGEN=yes
fi fi
AC_SUBST(KDE_HAS_DOXYGEN) AC_SUBST(KDE_HAS_DOXYGEN)

@ -158,17 +158,17 @@ patent issues. -->
<para>It slices! It dices! and it comes with a free toaster!</para> <para>It slices! It dices! and it comes with a free toaster!</para>
<para> <para>
The Squiggle Tool <guiicon><inlinemediaobject> The Stquiggle Tool <guiicon><inlinemediaobject>
<imageobject> <imageobject>
<imagedata fileref="squiggle.png" format="PNG"/> <imagedata fileref="stquiggle.png" format="PNG"/>
</imageobject> </imageobject>
<imageobject> <imageobject>
<imagedata fileref="squiggle.eps" format="EPS"/> <imagedata fileref="stquiggle.eps" format="EPS"/>
</imageobject> </imageobject>
<textobject> <textobject>
<phrase>Squiggle</phrase> <phrase>Stquiggle</phrase>
</textobject> </textobject>
</inlinemediaobject></guiicon> is used to draw squiggly lines all over </inlinemediaobject></guiicon> is used to draw stquiggly lines all over
the &ksensors; main window. It's not a bug, it's a feature! the &ksensors; main window. It's not a bug, it's a feature!
</para> </para>
@ -441,7 +441,7 @@ Program copyright 2003 noname <email>s&#64;s&#46;org</email>
<para> <para>
Contributors: Contributors:
<itemizedlist> <itemizedlist>
<listitem><para>Konqui the KDE Dragon <email>konqui@kde.org</email></para> <listitem><para>Kontqui the KDE Dragon <email>kontqui@kde.org</email></para>
</listitem> </listitem>
<listitem><para>Tux the Linux Penguin <email>tux@linux.org</email></para> <listitem><para>Tux the Linux Penguin <email>tux@linux.org</email></para>
</listitem> </listitem>

Binary file not shown.

@ -104,7 +104,7 @@ msgid ""
"Welcome to the KSensors configuration window. Click on the left to select a " "Welcome to the KSensors configuration window. Click on the left to select a "
"configuration option." "configuration option."
msgstr "" msgstr ""
"Bienvenido a la pantalla de configuracion de KSensors. Pinche a su izquierda " "Bienvenido a la pantalla de configuracion de KSensors. Pinche a su iztquierda "
"para seleccionar una opción de configuración." "para seleccionar una opción de configuración."
#: rc.cpp:7 #: rc.cpp:7

@ -0,0 +1,422 @@
# translation of nb.po to Norwegian Bokmål
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Per Øyvind Karlsen <pkarlsen@mandriva.com>, 2006.
msgid ""
msgstr ""
"Project-Id-Version: nb\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-08-18 23:19+0200\n"
"PO-Revision-Date: 2006-09-27 20:52+0200\n"
"Last-Translator: Per Øyvind Karlsen <pkarlsen@mandriva.com>\n"
"Language-Team: Norwegian Bokmål <cooker-i18n@mandrivalinux.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"
#: hdsensorslist.cpp:36
msgid "Hard Disks"
msgstr "Harddisker"
#: i8ksensorslist.cpp:29
msgid "MainBoard"
msgstr "Hovedkort"
#: ksensorscfg.cpp:51
msgid "KSensors Configuration"
msgstr "KSensors-oppsett"
#: ksensorscfg.cpp:56
msgid "Global settings"
msgstr "Globale innstillinger"
#: ksensorscfg.cpp:68
msgid " sensors"
msgstr " sensorer"
#: ksensorscfg.cpp:85
msgid "System Information"
msgstr "Systeminformasjon"
#: lmsensorscfg.cpp:101
msgid "Temperature"
msgstr "Temperatur"
#: lmsensorscfg.cpp:107
msgid "Fan"
msgstr "Vifte"
#: lmsensorscfg.cpp:110
msgid "Voltage"
msgstr "Spenning"
#: lmsensorsdock.cpp:62
msgid "&About KSensors"
msgstr "&Om KSensors"
#: lmsensorsdock.cpp:64
#: lmsensorsdock.cpp:124
msgid "&Minimize"
msgstr "&Minimiser"
#: lmsensorsdock.cpp:64
#: lmsensorsdock.cpp:124
msgid "&Restore"
msgstr "&Gjenopprett"
#: lmsensorsdock.cpp:65
msgid "&Exit"
msgstr "&Avslutt"
#: main.cpp:27
msgid "KSensors - A nice lmsensors frontend for KDE"
msgstr "KSensors - Ett behagelig lmsensors-grensesnitt for KDE"
#: main.cpp:33
msgid "Don't dock in KDE system tray."
msgstr "Ikke fest i KDE systemkurv."
#: main.cpp:34
msgid "Show splash screen."
msgstr "Vis velkomstbilde."
#: main.cpp:43
#: rc.cpp:5
msgid "KSensors"
msgstr "KSensors"
#: rc.cpp:1
msgid "C&ustom"
msgstr "&Egendefinert"
#: rc.cpp:2
msgid "AboutCfgDesign"
msgstr "AboutCfgDesign"
#: rc.cpp:3
msgid "KSensors configuration"
msgstr "KSensors-oppsett"
#: rc.cpp:4
msgid "Monitoring your motherboard"
msgstr "Overvåk hovedkortet ditt"
#: rc.cpp:6
msgid "Welcome to the KSensors configuration window. Click on the left to select a configuration option."
msgstr "Velkommen til KSensors opppsettsvindu. Klikk til venstre for å velge ett oppsettsvalg."
#: rc.cpp:7
msgid "GeneralCfg"
msgstr "GeneralCfg"
#: rc.cpp:8
msgid "Panels size"
msgstr "Panelstørrelse"
#: rc.cpp:9
msgid "64 x 64"
msgstr "64 x 64"
#: rc.cpp:10
msgid "56 x 56"
msgstr "56 x 56"
#: rc.cpp:11
msgid "48 x 48"
msgstr "48 x 48"
#: rc.cpp:12
#: rc.cpp:55
#: rc.cpp:59
#: rc.cpp:91
msgid "Colors"
msgstr "Farger"
#: rc.cpp:13
msgid "Startup"
msgstr "Oppstart"
#: rc.cpp:14
msgid "Autostart KSensors on KDE startup"
msgstr "Start opp automatisk ved oppstart av KDE"
#: rc.cpp:15
msgid "LMSensorsCfgDesign"
msgstr "LMSensorsCfgDesign"
#: rc.cpp:16
msgid "Sensors"
msgstr "Sensorer"
#: rc.cpp:17
msgid "General"
msgstr "Generelt"
#: rc.cpp:19
msgid "Description"
msgstr "Beskrivelse"
#: rc.cpp:21
msgid "Values"
msgstr "Verdier"
#: rc.cpp:23
msgid "Current"
msgstr "Gjeldende"
#: rc.cpp:24
msgid "Maximum"
msgstr "Maksimum"
#: rc.cpp:25
msgid "+1%"
msgstr "+1%"
#: rc.cpp:26
msgid "+2%"
msgstr "+2%"
#: rc.cpp:27
msgid "+3%"
msgstr "+3%"
#: rc.cpp:28
msgid "+4%"
msgstr "+4%"
#: rc.cpp:29
msgid "+5%"
msgstr "+5%"
#: rc.cpp:30
msgid "+10%"
msgstr "+10%"
#: rc.cpp:31
msgid "+15%"
msgstr "+15%"
#: rc.cpp:32
msgid "+20%"
msgstr "+20%"
#: rc.cpp:33
msgid "+30%"
msgstr "+30%"
#: rc.cpp:34
msgid "+40%"
msgstr "+40%"
#: rc.cpp:35
msgid "+50%"
msgstr "+50%"
#: rc.cpp:36
msgid "Multiplier"
msgstr "Multiplikator"
#: rc.cpp:37
msgid "Ideal"
msgstr "Ideell"
#: rc.cpp:38
msgid "Minimum"
msgstr "Minimum"
#: rc.cpp:39
msgid "Addition"
msgstr "Tillegg"
#: rc.cpp:41
msgid "-1%"
msgstr "-1%"
#: rc.cpp:42
msgid "-2%"
msgstr "-2%"
#: rc.cpp:43
msgid "-3%"
msgstr "-3%"
#: rc.cpp:44
msgid "-4%"
msgstr "-4%"
#: rc.cpp:45
msgid "-5%"
msgstr "-5%"
#: rc.cpp:46
msgid "-10%"
msgstr "-10%"
#: rc.cpp:47
msgid "-15%"
msgstr "-15%"
#: rc.cpp:48
msgid "-20%"
msgstr "-20%"
#: rc.cpp:49
msgid "-30%"
msgstr "-30%"
#: rc.cpp:50
msgid "-40%"
msgstr "-40%"
#: rc.cpp:51
msgid "-50%"
msgstr "-50%"
#: rc.cpp:52
msgid "Panel"
msgstr "Panel"
#: rc.cpp:54
#: rc.cpp:58
#: rc.cpp:90
msgid "Visible"
msgstr "Synlig"
#: rc.cpp:56
msgid "Dock"
msgstr "Systemkurvfesting"
#: rc.cpp:60
msgid "Alarm"
msgstr "Alarm"
#: rc.cpp:63
msgid "Normal"
msgstr "Normal"
#: rc.cpp:64
msgid "Alarms"
msgstr "Alarmer"
#: rc.cpp:65
msgid "On reach alarm value:"
msgstr "Ved oppnådd alarmverdi:"
#: rc.cpp:66
msgid "Apply to all sensors"
msgstr "Bruk for sensorer"
#: rc.cpp:67
msgid "Do nothing"
msgstr "Gjør ingenting"
#: rc.cpp:68
msgid "Test"
msgstr "Test"
#: rc.cpp:69
msgid "Play alarm sound"
msgstr "Spill alarmlyd"
#: rc.cpp:70
msgid "Run command"
msgstr "Kjør kommando"
#: rc.cpp:71
#: rc.cpp:92
msgid "Preferences"
msgstr "Egenskaper"
#: rc.cpp:72
msgid "Temperatures scale"
msgstr "Temperaturskala"
#: rc.cpp:73
msgid "Fahrenheit"
msgstr "Fahrenheit"
#: rc.cpp:74
msgid "Celsius"
msgstr "Celsius"
#: rc.cpp:75
msgid "Kelvin"
msgstr "Kelvin"
#: rc.cpp:76
#: rc.cpp:93
msgid "Update interval"
msgstr "Oppdateringsintervall"
#: rc.cpp:77
#: rc.cpp:94
msgid "s"
msgstr "s"
#: rc.cpp:78
msgid "PaletteCfg"
msgstr "PaletteCfg"
#: rc.cpp:79
#: rc.cpp:84
msgid "Title"
msgstr "Tittel"
#: rc.cpp:80
msgid "+3.5V"
msgstr "+3.5V"
#: rc.cpp:81
msgid "Default colors"
msgstr "Standardfarger"
#: rc.cpp:82
msgid "Background"
msgstr "Bakgrunn"
#: rc.cpp:85
msgid "Value"
msgstr "Verdi"
#: rc.cpp:87
msgid "SystemCfgDesign"
msgstr "SystemCfgDesign"
#: rc.cpp:88
msgid "System Panels"
msgstr "Systempaneler"
#: systemcfg.cpp:47
msgid "CPU Speed"
msgstr "CPU-hastighet"
#: systemcfg.cpp:48
msgid "CPU State"
msgstr "CPU-status"
#: systemcfg.cpp:49
msgid "RAM Used"
msgstr "RAM brukt"
#: systemcfg.cpp:50
msgid "SWAP Used"
msgstr "SWAP brukt"
#: systemcfg.cpp:51
msgid "Up Time"
msgstr "Oppetid"
#: _translatorinfo.cpp:1
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr "Per Øyvind Karlsen"
#: _translatorinfo.cpp:3
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr "pkarlsen@mandriva.com"

@ -0,0 +1,413 @@
# translation of pl.po to
# translation of pl.po to
# translation of ksensors.po to
# This file is distributed under the same license as the PACKAGE package.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER, 2005.
#
msgid ""
msgstr ""
"Project-Id-Version: pl\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-08-18 23:19+0200\n"
"PO-Revision-Date: 2005-03-18 15:42+0100\n"
"Last-Translator: \n"
"Language-Team: <pl@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.9.1\n"
#: hdsensorslist.cpp:36
msgid "Hard Disks"
msgstr "Twarde dyski"
#: i8ksensorslist.cpp:29
msgid "MainBoard"
msgstr "Płyta główna"
#: ksensorscfg.cpp:51
msgid "KSensors Configuration"
msgstr "Konfiguracja KSensors"
#: ksensorscfg.cpp:56
msgid "Global settings"
msgstr "Globalne ustawienia"
#: ksensorscfg.cpp:68
msgid " sensors"
msgstr " czujniki"
#: ksensorscfg.cpp:85
msgid "System Information"
msgstr "Informacja o systemie"
#: lmsensorscfg.cpp:101
msgid "Temperature"
msgstr "Temperatura"
#: lmsensorscfg.cpp:107
msgid "Fan"
msgstr "Wiatrak"
#: lmsensorscfg.cpp:110
msgid "Voltage"
msgstr "Napięcie"
#: lmsensorsdock.cpp:62
msgid "&About KSensors"
msgstr "&O KSensors"
#: lmsensorsdock.cpp:64 lmsensorsdock.cpp:124
msgid "&Minimize"
msgstr "&Minimalizuj"
#: lmsensorsdock.cpp:64 lmsensorsdock.cpp:124
msgid "&Restore"
msgstr "&Przywróć"
#: lmsensorsdock.cpp:65
msgid "&Exit"
msgstr "&Wyjście"
#: main.cpp:27
msgid "KSensors - A nice lmsensors frontend for KDE"
msgstr "KSensors - Ładny frondend lmsensors dla KDE"
#: main.cpp:33
msgid "Don't dock in KDE system tray."
msgstr "Nie dokuj w trayu systemowym KDE."
#: main.cpp:34
msgid "Show splash screen."
msgstr "Pokaż ekran powitalny."
#: main.cpp:43 rc.cpp:5
msgid "KSensors"
msgstr "KSensors"
#: rc.cpp:1
msgid "C&ustom"
msgstr "&Własne"
#: rc.cpp:2
msgid "AboutCfgDesign"
msgstr ""
#: rc.cpp:3
msgid "KSensors configuration"
msgstr "Konfiguracja KSensors"
#: rc.cpp:4
msgid "Monitoring your motherboard"
msgstr "Monitorowanie Twojej płyty głównej"
#: rc.cpp:6
msgid ""
"Welcome to the KSensors configuration window. Click on the left to select a "
"configuration option."
msgstr "Witamy w oknie konfiguracji programu KSensors. Kliknij po lewej aby wybrać opcję do konfiguracji."
#: rc.cpp:7
msgid "GeneralCfg"
msgstr ""
#: rc.cpp:8
msgid "Panels size"
msgstr "Rozmiar panelu"
#: rc.cpp:9
msgid "64 x 64"
msgstr ""
#: rc.cpp:10
msgid "56 x 56"
msgstr ""
#: rc.cpp:11
msgid "48 x 48"
msgstr ""
#: rc.cpp:12 rc.cpp:55 rc.cpp:59 rc.cpp:91
msgid "Colors"
msgstr "Kolory"
#: rc.cpp:13
msgid "Startup"
msgstr ""
#: rc.cpp:14
msgid "Autostart KSensors on KDE startup"
msgstr "Uruchom KSensors przy starcie KDE"
#: rc.cpp:15
msgid "LMSensorsCfgDesign"
msgstr ""
#: rc.cpp:16
msgid "Sensors"
msgstr "Czujniki"
#: rc.cpp:17
msgid "General"
msgstr "Ogólne"
#: rc.cpp:19
msgid "Description"
msgstr "Opis"
#: rc.cpp:21
msgid "Values"
msgstr "Wartość"
#: rc.cpp:23
msgid "Current"
msgstr "Bieżaca"
#: rc.cpp:24
msgid "Maximum"
msgstr "Maksymalna"
#: rc.cpp:25
msgid "+1%"
msgstr ""
#: rc.cpp:26
msgid "+2%"
msgstr ""
#: rc.cpp:27
msgid "+3%"
msgstr ""
#: rc.cpp:28
msgid "+4%"
msgstr ""
#: rc.cpp:29
msgid "+5%"
msgstr ""
#: rc.cpp:30
msgid "+10%"
msgstr ""
#: rc.cpp:31
msgid "+15%"
msgstr ""
#: rc.cpp:32
msgid "+20%"
msgstr ""
#: rc.cpp:33
msgid "+30%"
msgstr ""
#: rc.cpp:34
msgid "+40%"
msgstr ""
#: rc.cpp:35
msgid "+50%"
msgstr ""
#: rc.cpp:36
msgid "Multiplier"
msgstr "Mnożnik"
#: rc.cpp:37
msgid "Ideal"
msgstr "Idealna"
#: rc.cpp:38
msgid "Minimum"
msgstr "Minimalna"
#: rc.cpp:39
msgid "Addition"
msgstr "Dodanie"
#: rc.cpp:41
msgid "-1%"
msgstr ""
#: rc.cpp:42
msgid "-2%"
msgstr ""
#: rc.cpp:43
msgid "-3%"
msgstr ""
#: rc.cpp:44
msgid "-4%"
msgstr ""
#: rc.cpp:45
msgid "-5%"
msgstr ""
#: rc.cpp:46
msgid "-10%"
msgstr ""
#: rc.cpp:47
msgid "-15%"
msgstr ""
#: rc.cpp:48
msgid "-20%"
msgstr ""
#: rc.cpp:49
msgid "-30%"
msgstr ""
#: rc.cpp:50
msgid "-40%"
msgstr ""
#: rc.cpp:51
msgid "-50%"
msgstr ""
#: rc.cpp:52
msgid "Panel"
msgstr ""
#: rc.cpp:54 rc.cpp:58 rc.cpp:90
msgid "Visible"
msgstr "Widoczne"
#: rc.cpp:56
msgid "Dock"
msgstr "Dokowanie"
#: rc.cpp:60
msgid "Alarm"
msgstr ""
#: rc.cpp:63
msgid "Normal"
msgstr "Normalne"
#: rc.cpp:64
msgid "Alarms"
msgstr "Alarmy"
#: rc.cpp:65
msgid "On reach alarm value:"
msgstr "Przy osiągnięciu wartości alarmowej:"
#: rc.cpp:66
msgid "Apply to all sensors"
msgstr "Zatwierdź do wszystkich czujników"
#: rc.cpp:67
msgid "Do nothing"
msgstr "Nie rób nic"
#: rc.cpp:68
msgid "Test"
msgstr ""
#: rc.cpp:69
msgid "Play alarm sound"
msgstr "Odtwarzaj dźwięk"
#: rc.cpp:70
msgid "Run command"
msgstr "Wykonaj polecenie"
#: rc.cpp:71 rc.cpp:92
msgid "Preferences"
msgstr "Właściwości"
#: rc.cpp:72
msgid "Temperatures scale"
msgstr "Skala temperatur"
#: rc.cpp:73
msgid "Fahrenheit"
msgstr ""
#: rc.cpp:74
msgid "Celsius"
msgstr "Celciusz"
#: rc.cpp:75
msgid "Kelvin"
msgstr "Kelwin"
#: rc.cpp:76 rc.cpp:93
msgid "Update interval"
msgstr "Interwał aktualizacji"
#: rc.cpp:77 rc.cpp:94
msgid "s"
msgstr ""
#: rc.cpp:78
msgid "PaletteCfg"
msgstr ""
#: rc.cpp:79 rc.cpp:84
msgid "Title"
msgstr "Tytuł"
#: rc.cpp:80
msgid "+3.5V"
msgstr ""
#: rc.cpp:81
msgid "Default colors"
msgstr "Domyślne kolory"
#: rc.cpp:82
msgid "Background"
msgstr "Tło"
#: rc.cpp:85
msgid "Value"
msgstr "Wartość"
#: rc.cpp:87
msgid "SystemCfgDesign"
msgstr ""
#: rc.cpp:88
msgid "System Panels"
msgstr "Panele systemowe"
#: systemcfg.cpp:47
msgid "CPU Speed"
msgstr "Zegar CPU"
#: systemcfg.cpp:48
msgid "CPU State"
msgstr "Status CPU"
#: systemcfg.cpp:49
msgid "RAM Used"
msgstr "Użycie RAM"
#: systemcfg.cpp:50
msgid "SWAP Used"
msgstr "Użycie SWAP"
#: systemcfg.cpp:51
msgid "Up Time"
msgstr ""
#: _translatorinfo.cpp:1
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr "Tomasz Waleńczak"
#: _translatorinfo.cpp:3
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr "tom@w.pl"

@ -0,0 +1,423 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: ksensors 0.7.3-7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-08-18 23:19+0200\n"
"PO-Revision-Date: 2005-11-02 22:34+0100\n"
"Last-Translator: Daniel Nylander <po@danielnylander.se>\n"
"Language-Team: Swedish <sv@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=iso-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-Language: swe\n"
"X-Poedit-Country: swe\n"
#: hdsensorslist.cpp:36
msgid "Hard Disks"
msgstr "Hårddiskar"
#: i8ksensorslist.cpp:29
msgid "MainBoard"
msgstr "Moderkort"
#: ksensorscfg.cpp:51
msgid "KSensors Configuration"
msgstr "Konfiguration av KSensors"
#: ksensorscfg.cpp:56
msgid "Global settings"
msgstr "Globala inställningar"
#: ksensorscfg.cpp:68
msgid " sensors"
msgstr " sensorer"
#: ksensorscfg.cpp:85
msgid "System Information"
msgstr "Systeminformation"
#: lmsensorscfg.cpp:101
msgid "Temperature"
msgstr "Temperatur"
#: lmsensorscfg.cpp:107
msgid "Fan"
msgstr "Fläkt"
#: lmsensorscfg.cpp:110
msgid "Voltage"
msgstr "Volttal"
#: lmsensorsdock.cpp:62
msgid "&About KSensors"
msgstr "&Om KSensors"
#: lmsensorsdock.cpp:64
#: lmsensorsdock.cpp:124
msgid "&Minimize"
msgstr "&Minimera"
#: lmsensorsdock.cpp:64
#: lmsensorsdock.cpp:124
msgid "&Restore"
msgstr "&Återställ"
#: lmsensorsdock.cpp:65
msgid "&Exit"
msgstr "&Avsluta"
#: main.cpp:27
msgid "KSensors - A nice lmsensors frontend for KDE"
msgstr "KSensors - Ett trevligt gränssnitt mot lmsensors för KDE"
#: main.cpp:33
msgid "Don't dock in KDE system tray."
msgstr "Docka inte till KDE's systemraden."
#: main.cpp:34
msgid "Show splash screen."
msgstr "Visa startbild."
#: main.cpp:43
#: rc.cpp:5
msgid "KSensors"
msgstr "KSensors"
#: rc.cpp:1
msgid "C&ustom"
msgstr "Egendefinerad"
#: rc.cpp:2
msgid "AboutCfgDesign"
msgstr "AboutCfgDesign"
#: rc.cpp:3
msgid "KSensors configuration"
msgstr "KSensors konfiguration"
#: rc.cpp:4
msgid "Monitoring your motherboard"
msgstr "Övervaka ditt moderkort"
#: rc.cpp:6
msgid "Welcome to the KSensors configuration window. Click on the left to select a configuration option."
msgstr "Välkommen till KSenors konfigurationsfönster. Klicka på vänster sida för att välja en inställning."
#: rc.cpp:7
msgid "GeneralCfg"
msgstr "GeneralCfg"
#: rc.cpp:8
msgid "Panels size"
msgstr "Panelstorlek"
#: rc.cpp:9
msgid "64 x 64"
msgstr "64 x 64"
#: rc.cpp:10
msgid "56 x 56"
msgstr "56 x 56"
#: rc.cpp:11
msgid "48 x 48"
msgstr "48 x 48"
#: rc.cpp:12
#: rc.cpp:55
#: rc.cpp:59
#: rc.cpp:91
msgid "Colors"
msgstr "Färger"
#: rc.cpp:13
msgid "Startup"
msgstr "Starta upp"
#: rc.cpp:14
msgid "Autostart KSensors on KDE startup"
msgstr "Autostarta KSensors vid uppstart av KDE"
#: rc.cpp:15
msgid "LMSensorsCfgDesign"
msgstr "LMSensorsCfgDesign"
#: rc.cpp:16
msgid "Sensors"
msgstr "Sensorer"
#: rc.cpp:17
msgid "General"
msgstr "Allmänt"
#: rc.cpp:19
msgid "Description"
msgstr "Beskrivning"
#: rc.cpp:21
msgid "Values"
msgstr "Värden"
#: rc.cpp:23
msgid "Current"
msgstr "Nuvarande"
#: rc.cpp:24
msgid "Maximum"
msgstr "Maximum"
#: rc.cpp:25
msgid "+1%"
msgstr "+1%"
#: rc.cpp:26
msgid "+2%"
msgstr "+2%"
#: rc.cpp:27
msgid "+3%"
msgstr "+3%"
#: rc.cpp:28
msgid "+4%"
msgstr "+4%"
#: rc.cpp:29
msgid "+5%"
msgstr "+5%"
#: rc.cpp:30
msgid "+10%"
msgstr "+10%"
#: rc.cpp:31
msgid "+15%"
msgstr "+15%"
#: rc.cpp:32
msgid "+20%"
msgstr "+20%"
#: rc.cpp:33
msgid "+30%"
msgstr "+30%"
#: rc.cpp:34
msgid "+40%"
msgstr "+40%"
#: rc.cpp:35
msgid "+50%"
msgstr "+50%"
#: rc.cpp:36
msgid "Multiplier"
msgstr "Multiplikator"
#: rc.cpp:37
msgid "Ideal"
msgstr "Ideal"
#: rc.cpp:38
msgid "Minimum"
msgstr "Minimum"
#: rc.cpp:39
msgid "Addition"
msgstr "Tillägg"
#: rc.cpp:41
msgid "-1%"
msgstr "-1%"
#: rc.cpp:42
msgid "-2%"
msgstr "-2%"
#: rc.cpp:43
msgid "-3%"
msgstr "-3%"
#: rc.cpp:44
msgid "-4%"
msgstr "-4%"
#: rc.cpp:45
msgid "-5%"
msgstr "-5%"
#: rc.cpp:46
msgid "-10%"
msgstr "-10%"
#: rc.cpp:47
msgid "-15%"
msgstr "-15%"
#: rc.cpp:48
msgid "-20%"
msgstr "-20%"
#: rc.cpp:49
msgid "-30%"
msgstr "-30%"
#: rc.cpp:50
msgid "-40%"
msgstr "-40%"
#: rc.cpp:51
msgid "-50%"
msgstr "-50%"
#: rc.cpp:52
msgid "Panel"
msgstr "Panel"
#: rc.cpp:54
#: rc.cpp:58
#: rc.cpp:90
msgid "Visible"
msgstr "Synlig"
#: rc.cpp:56
msgid "Dock"
msgstr "Dockning"
#: rc.cpp:60
msgid "Alarm"
msgstr "Alarm"
#: rc.cpp:63
msgid "Normal"
msgstr "Normal"
#: rc.cpp:64
msgid "Alarms"
msgstr "Larm"
#: rc.cpp:65
msgid "On reach alarm value:"
msgstr "När larmvärdet uppnås:"
#: rc.cpp:66
msgid "Apply to all sensors"
msgstr "Tillämpa på alla sensorer"
#: rc.cpp:67
msgid "Do nothing"
msgstr "Gör inget"
#: rc.cpp:68
msgid "Test"
msgstr "Test"
#: rc.cpp:69
msgid "Play alarm sound"
msgstr "Spela upp larmljud"
#: rc.cpp:70
msgid "Run command"
msgstr "Kör kommando"
#: rc.cpp:71
#: rc.cpp:92
msgid "Preferences"
msgstr "Egenskaper"
#: rc.cpp:72
msgid "Temperatures scale"
msgstr "Temperaturskala"
#: rc.cpp:73
msgid "Fahrenheit"
msgstr "Fahrenheit"
#: rc.cpp:74
msgid "Celsius"
msgstr "Celsius"
#: rc.cpp:75
msgid "Kelvin"
msgstr "Kelvin"
#: rc.cpp:76
#: rc.cpp:93
msgid "Update interval"
msgstr "Uppdateringsintervall"
#: rc.cpp:77
#: rc.cpp:94
msgid "s"
msgstr "s"
#: rc.cpp:78
msgid "PaletteCfg"
msgstr "PaletteCfg"
#: rc.cpp:79
#: rc.cpp:84
msgid "Title"
msgstr "Titel"
#: rc.cpp:80
msgid "+3.5V"
msgstr "+3.5V"
#: rc.cpp:81
msgid "Default colors"
msgstr "Standardfärger"
#: rc.cpp:82
msgid "Background"
msgstr "Bakgrund"
#: rc.cpp:85
msgid "Value"
msgstr "Värde"
#: rc.cpp:87
msgid "SystemCfgDesign"
msgstr "SystemCfgDesign"
#: rc.cpp:88
msgid "System Panels"
msgstr "Systempaneler"
#: systemcfg.cpp:47
msgid "CPU Speed"
msgstr "CPU-hastighet"
#: systemcfg.cpp:48
msgid "CPU State"
msgstr "CPU Status"
#: systemcfg.cpp:49
msgid "RAM Used"
msgstr "RAM använt"
#: systemcfg.cpp:50
msgid "SWAP Used"
msgstr "SWAP använt"
#: systemcfg.cpp:51
msgid "Up Time"
msgstr "Uppetid"
#: _translatorinfo.cpp:1
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr "Daniel Nylander"
#: _translatorinfo.cpp:3
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr "po@danielnylander.se"

@ -42,8 +42,8 @@ ksensors_SOURCES = main.cpp ksensors.cpp aboutcfgdesign.ui \
rampanel.cpp sensor.cpp sensorslist.cpp \ rampanel.cpp sensor.cpp sensorslist.cpp \
systemcfg.cpp systemcfgdesign.ui uptimepanel.cpp systemcfg.cpp systemcfgdesign.ui uptimepanel.cpp
ksensors_LDFLAGS = $(KDE_RPATH) $(all_libraries) ksensors_LDFLAGS = $(TDE_RPATH) $(all_libraries)
ksensors_LDADD = $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT) -lsensors -lm ksensors_LDADD = $(LIB_TDEUI) $(LIB_TDECORE) $(LIB_TQT) -lsensors -lm
# this is where the desktop file will go # this is where the desktop file will go
shelldesktopdir = $(kde_appsdir)/Utilities shelldesktopdir = $(kde_appsdir)/Utilities

@ -1,4 +1,4 @@
#include <klocale.h> #include <tdelocale.h>
/**************************************************************************** /****************************************************************************
** Form implementation generated from reading ui file './aboutcfgdesign.ui' ** Form implementation generated from reading ui file './aboutcfgdesign.ui'
** **
@ -10,19 +10,19 @@
#include "aboutcfgdesign.h" #include "aboutcfgdesign.h"
#include <qvariant.h> #include <ntqvariant.h>
#include <kcolorbutton.h> #include <kcolorbutton.h>
#include <qframe.h> #include <ntqframe.h>
#include <qlabel.h> #include <ntqlabel.h>
#include <qlayout.h> #include <ntqlayout.h>
#include <qtooltip.h> #include <ntqtooltip.h>
#include <qwhatsthis.h> #include <ntqwhatsthis.h>
#include <qimage.h> #include <ntqimage.h>
#include <qpixmap.h> #include <ntqpixmap.h>
static const char* const img0_aboutcfgdesign[] = { static const char* const img0_aboutcfgdesign[] = {
"32 32 76 2", "32 32 76 2",
"Qt c None", "TQt c None",
".# c #000000", ".# c #000000",
".R c #292429", ".R c #292429",
".P c #292829", ".P c #292829",
@ -98,339 +98,339 @@ static const char* const img0_aboutcfgdesign[] = {
".1 c #e66918", ".1 c #e66918",
"#h c #ee4820", "#h c #ee4820",
"#f c #ee4c20", "#f c #ee4c20",
"QtQtQtQt.#.#.#.#.#.#.#.#.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.#.#.#.#.#.#.#.#.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.#.a.b.a.b.a.b.a.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.#.a.b.a.b.a.b.a.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.#.a.a.a.a.a.a.a.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.#.a.a.a.a.a.a.a.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.#.#.#.#.#.#.#.#.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.#.#.#.#.#.#.#.#.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.#.c.d.c.d.c.e.c.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.#.c.d.c.d.c.e.c.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.#.f.f.f.f.f.f.f.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.#.f.f.f.f.f.f.f.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.#.#.#.#.#.#.#.#.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.#.#.#.#.#.#.#.#.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.#.g.h.i.h.g.h.i.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.#.g.h.i.h.g.h.i.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.#.j.j.k.j.j.j.l.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.#.j.j.k.j.j.j.l.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.#.#.#.#.#.#.#.#.#Qt.#.#.#.#QtQtQtQtQtQtQtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.#.#.#.#.#.#.#.#.#TQt.#.#.#.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.#.m.m.m.m.m.n.m.#.#.o.o.p.q.#.#QtQtQtQtQtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.#.m.m.m.m.m.n.m.#.#.o.o.p.q.#.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.#.r.r.r.s.r.#.#.t.u.u.o.v.q.q.w.#.#QtQtQtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.#.r.r.r.s.r.#.#.t.u.u.o.v.q.q.w.#.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.#.#.#.#.#.#.t.t.u.u.o.x.p.p.y.y.w.y.#.#QtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.#.#.#.#.#.#.t.t.u.u.o.x.p.p.y.y.w.y.#.#TQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.#.z.#.#.A.B.B.t.t.C.D.E.v.q.q.w.F.w.q.w.#.#QtQtQtQtQtQt", "TQtTQtTQtTQt.#.z.#.#.A.B.B.t.t.C.D.E.v.q.q.w.F.w.q.w.#.#TQtTQtTQtTQtTQtTQt",
"QtQtQtQt.#.#.G.G.H.H.I.t.u.u.o.o.J.E.K.y.w.y.w.y.w.y.#.#QtQtQtQt", "TQtTQtTQtTQt.#.#.G.G.H.H.I.t.u.u.o.o.J.E.K.y.w.y.w.y.w.y.#.#TQtTQtTQtTQt",
"QtQt.#.#.L.G.M.G.A.B.B.I.D.E.u.o.x.q.D.J.q.w.F.w.q.w.F.w.#.#QtQt", "TQtTQt.#.#.L.G.M.G.A.B.B.I.D.E.u.o.x.q.D.J.q.w.F.w.q.w.F.w.#.#TQtTQt",
"Qt.#.G.G.G.G.G.G.H.H.N.O.u.u.J.E.p.p.F.F.J.E.w.y.w.y.w.y.w.y.#Qt", "TQt.#.G.G.G.G.G.G.H.H.N.O.u.u.J.E.p.p.F.F.J.E.w.y.w.y.w.y.w.y.#TQt",
"Qt.#.L.G.M.G.L.G.G.B.B.t.t.u.u.o.D.J.q.y.F.w.q.w.F.w.q.w.F.w.#Qt", "TQt.#.L.G.M.G.L.G.G.B.B.t.t.u.u.o.D.J.q.y.F.w.q.w.F.w.q.w.F.w.#TQt",
"Qt.#.P.P.G.G.G.G.H.Q.N.B.u.u.o.x.p.v.F.F.w.y.w.y.w.y.w.y.G.G.#Qt", "TQt.#.P.P.G.G.G.G.H.Q.N.B.u.u.o.x.p.v.F.F.w.y.w.y.w.y.w.y.G.G.#TQt",
"Qt.#.R.P.P.S.M.G.G.H.B.t.O.u.u.o.x.p.p.w.q.w.F.w.q.w.M.G.L.G.#Qt", "TQt.#.R.P.P.S.M.G.G.H.B.t.O.u.u.o.x.p.p.w.q.w.F.w.q.w.M.G.L.G.#TQt",
"Qt.#.P.P.T.S.U.T.H.H.B.B.I.u.x.x.p.p.F.F.w.y.w.y.G.G.G.G.G.G.#Qt", "TQt.#.P.P.T.S.U.T.H.H.B.B.I.u.x.x.p.p.F.F.w.y.w.y.G.G.G.G.G.G.#TQt",
"QtQt.#.#.P.T.S.U.U.U.Q.t.O.u.u.o.x.p.v.F.F.w.V.W.W.G.L.G.#.#QtQt", "TQtTQt.#.#.P.T.S.U.U.U.Q.t.O.u.u.o.x.p.v.F.F.w.V.W.W.G.L.G.#.#TQtTQt",
"QtQt.UQt.#.#.U.U.X.U.Y.Y.I.u.o.x.v.v.F.F.Z.Z.0.W.M.L.#.#Qt.#QtQt", "TQtTQt.UTQt.#.#.U.U.X.U.Y.Y.I.u.o.x.v.v.F.F.Z.Z.0.W.M.L.#.#TQt.#TQtTQt",
"QtQt.UQt.U.1.#.#.U.X.X.Y.X.2.u.o.x.p.3.4.4.Z.Z.0.#.#Qt.#Qt.#QtQt", "TQtTQt.UTQt.U.1.#.#.U.X.X.Y.X.2.u.o.x.p.3.4.4.Z.Z.0.#.#TQt.#TQt.#TQtTQt",
"QtQtQtQt.U.#.U.#.#.#.2.Y.2.2.5.6.7.7.8.4.9.9.#.UQt.UQt.#QtQtQtQt", "TQtTQtTQtTQt.U.#.U.#.#.#.2.Y.2.2.5.6.7.7.8.4.9.9.#.UTQt.UTQt.#TQtTQtTQtTQt",
"QtQtQtQt.##..U##.U#..#.#.2.2.2.6#a.7.7.4.#.#Qt.UQt.UQtQtQtQtQtQt", "TQtTQtTQtTQt.##..U##.U#..#.#.2.2.2.6#a.7.7.4.#.#TQt.UTQt.UTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.##b#c#b.U#b.U#b.#.#.5.6#d#d.#.#Qt.UQt.UQtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.##b#c#b.U#b.U#b.#.#.5.6#d#d.#.#TQt.UTQt.UTQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.#.#.#.#.#.#.U.#.UQt.#.#.#.#Qt.UQt.UQtQtQtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.#.#.#.#.#.#.U.#.UTQt.#.#.#.#TQt.UTQt.UTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.##e#f#e#f#e#f#g.UQt.UQtQt.UQt.UQtQtQtQtQtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.##e#f#e#f#e#f#g.UTQt.UTQtTQt.UTQt.UTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.##h#i#j#i#h#i#j.#Qt.UQtQt.UQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.##h#i#j#i#h#i#j.#TQt.UTQtTQt.UTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQt.#.#.#.#.#.#.#.#.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "TQtTQtTQtTQt.#.#.#.#.#.#.#.#.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt",
"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt"}; "TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt"};
/* /*
* Constructs a AboutCfgDesign as a child of 'parent', with the * Constructs a AboutCfgDesign as a child of 'parent', with the
* name 'name' and widget flags set to 'f'. * name 'name' and widget flags set to 'f'.
*/ */
AboutCfgDesign::AboutCfgDesign( QWidget* parent, const char* name, WFlags fl ) AboutCfgDesign::AboutCfgDesign( TQWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl ), : TQWidget( parent, name, fl ),
image0( (const char **) img0_aboutcfgdesign ) image0( (const char **) img0_aboutcfgdesign )
{ {
if ( !name ) if ( !name )
setName( "AboutCfgDesign" ); setName( "AboutCfgDesign" );
AboutCfgDesignLayout = new QVBoxLayout( this, 0, 0, "AboutCfgDesignLayout"); AboutCfgDesignLayout = new TQVBoxLayout( this, 0, 0, "AboutCfgDesignLayout");
Frame3 = new QFrame( this, "Frame3" ); Frame3 = new TQFrame( this, "Frame3" );
Frame3->setMinimumSize( QSize( 0, 47 ) ); Frame3->setMinimumSize( TQSize( 0, 47 ) );
Frame3->setMaximumSize( QSize( 32767, 47 ) ); Frame3->setMaximumSize( TQSize( 32767, 47 ) );
QPalette pal; TQPalette pal;
QColorGroup cg; TQColorGroup cg;
cg.setColor( QColorGroup::Foreground, black ); cg.setColor( TQColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 241, 241, 241) ); cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black ); cg.setColor( TQColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 222, 226, 246) ); cg.setColor( TQColorGroup::Background, TQColor( 222, 226, 246) );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
pal.setActive( cg ); pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black ); cg.setColor( TQColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, white ); cg.setColor( TQColorGroup::Midlight, white );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black ); cg.setColor( TQColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 222, 226, 246) ); cg.setColor( TQColorGroup::Background, TQColor( 222, 226, 246) );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
pal.setInactive( cg ); pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, white ); cg.setColor( TQColorGroup::Midlight, white );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 222, 226, 246) ); cg.setColor( TQColorGroup::Background, TQColor( 222, 226, 246) );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
pal.setDisabled( cg ); pal.setDisabled( cg );
Frame3->setPalette( pal ); Frame3->setPalette( pal );
Frame3->setFrameShape( QFrame::NoFrame ); Frame3->setFrameShape( TQFrame::NoFrame );
Frame3->setFrameShadow( QFrame::Plain ); Frame3->setFrameShadow( TQFrame::Plain );
PixmapLabel1 = new QLabel( Frame3, "PixmapLabel1" ); PixmapLabel1 = new TQLabel( Frame3, "PixmapLabel1" );
PixmapLabel1->setGeometry( QRect( 10, 5, 38, 38 ) ); PixmapLabel1->setGeometry( TQRect( 10, 5, 38, 38 ) );
PixmapLabel1->setPixmap( image0 ); PixmapLabel1->setPixmap( image0 );
PixmapLabel1->setScaledContents( TRUE ); PixmapLabel1->setScaledContents( TRUE );
TextLabel2 = new QLabel( Frame3, "TextLabel2" ); TextLabel2 = new TQLabel( Frame3, "TextLabel2" );
TextLabel2->setGeometry( QRect( 61, 12, 326, 24 ) ); TextLabel2->setGeometry( TQRect( 61, 12, 326, 24 ) );
QFont TextLabel2_font( TextLabel2->font() ); TQFont TextLabel2_font( TextLabel2->font() );
TextLabel2_font.setPointSize( 14 ); TextLabel2_font.setPointSize( 14 );
TextLabel2_font.setBold( TRUE ); TextLabel2_font.setBold( TRUE );
TextLabel2->setFont( TextLabel2_font ); TextLabel2->setFont( TextLabel2_font );
AboutCfgDesignLayout->addWidget( Frame3 ); AboutCfgDesignLayout->addWidget( Frame3 );
Frame4 = new QFrame( this, "Frame4" ); Frame4 = new TQFrame( this, "Frame4" );
Frame4->setMinimumSize( QSize( 0, 22 ) ); Frame4->setMinimumSize( TQSize( 0, 22 ) );
Frame4->setMaximumSize( QSize( 32767, 22 ) ); Frame4->setMaximumSize( TQSize( 32767, 22 ) );
cg.setColor( QColorGroup::Foreground, black ); cg.setColor( TQColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 241, 241, 241) ); cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black ); cg.setColor( TQColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 97, 97, 97) ); cg.setColor( TQColorGroup::Background, TQColor( 97, 97, 97) );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
pal.setActive( cg ); pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black ); cg.setColor( TQColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, white ); cg.setColor( TQColorGroup::Midlight, white );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black ); cg.setColor( TQColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 97, 97, 97) ); cg.setColor( TQColorGroup::Background, TQColor( 97, 97, 97) );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
pal.setInactive( cg ); pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, white ); cg.setColor( TQColorGroup::Midlight, white );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 97, 97, 97) ); cg.setColor( TQColorGroup::Background, TQColor( 97, 97, 97) );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
pal.setDisabled( cg ); pal.setDisabled( cg );
Frame4->setPalette( pal ); Frame4->setPalette( pal );
Frame4->setFrameShape( QFrame::NoFrame ); Frame4->setFrameShape( TQFrame::NoFrame );
Frame4->setFrameShadow( QFrame::Plain ); Frame4->setFrameShadow( TQFrame::Plain );
TextLabel1 = new QLabel( Frame4, "TextLabel1" ); TextLabel1 = new TQLabel( Frame4, "TextLabel1" );
TextLabel1->setGeometry( QRect( 7, 2, 305, 16 ) ); TextLabel1->setGeometry( TQRect( 7, 2, 305, 16 ) );
cg.setColor( QColorGroup::Foreground, white ); cg.setColor( TQColorGroup::Foreground, white );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 241, 241, 241) ); cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black ); cg.setColor( TQColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 97, 97, 97) ); cg.setColor( TQColorGroup::Background, TQColor( 97, 97, 97) );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
pal.setActive( cg ); pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, white ); cg.setColor( TQColorGroup::Foreground, white );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, white ); cg.setColor( TQColorGroup::Midlight, white );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black ); cg.setColor( TQColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 97, 97, 97) ); cg.setColor( TQColorGroup::Background, TQColor( 97, 97, 97) );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
pal.setInactive( cg ); pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, white ); cg.setColor( TQColorGroup::Midlight, white );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 97, 97, 97) ); cg.setColor( TQColorGroup::Background, TQColor( 97, 97, 97) );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
pal.setDisabled( cg ); pal.setDisabled( cg );
TextLabel1->setPalette( pal ); TextLabel1->setPalette( pal );
AboutCfgDesignLayout->addWidget( Frame4 ); AboutCfgDesignLayout->addWidget( Frame4 );
Frame5 = new QFrame( this, "Frame5" ); Frame5 = new TQFrame( this, "Frame5" );
cg.setColor( QColorGroup::Foreground, black ); cg.setColor( TQColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 241, 241, 241) ); cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black ); cg.setColor( TQColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 49, 121, 172) ); cg.setColor( TQColorGroup::Background, TQColor( 49, 121, 172) );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
pal.setActive( cg ); pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black ); cg.setColor( TQColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, white ); cg.setColor( TQColorGroup::Midlight, white );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black ); cg.setColor( TQColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 49, 121, 172) ); cg.setColor( TQColorGroup::Background, TQColor( 49, 121, 172) );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
pal.setInactive( cg ); pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, white ); cg.setColor( TQColorGroup::Midlight, white );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 49, 121, 172) ); cg.setColor( TQColorGroup::Background, TQColor( 49, 121, 172) );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
pal.setDisabled( cg ); pal.setDisabled( cg );
Frame5->setPalette( pal ); Frame5->setPalette( pal );
Frame5->setFrameShape( QFrame::NoFrame ); Frame5->setFrameShape( TQFrame::NoFrame );
Frame5->setFrameShadow( QFrame::Plain ); Frame5->setFrameShadow( TQFrame::Plain );
Frame5Layout = new QHBoxLayout( Frame5, 22, 6, "Frame5Layout"); Frame5Layout = new TQHBoxLayout( Frame5, 22, 6, "Frame5Layout");
Frame6 = new QFrame( Frame5, "Frame6" ); Frame6 = new TQFrame( Frame5, "Frame6" );
Frame6->setMinimumSize( QSize( 300, 200 ) ); Frame6->setMinimumSize( TQSize( 300, 200 ) );
cg.setColor( QColorGroup::Foreground, black ); cg.setColor( TQColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 241, 241, 241) ); cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black ); cg.setColor( TQColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 222, 226, 246) ); cg.setColor( TQColorGroup::Background, TQColor( 222, 226, 246) );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
pal.setActive( cg ); pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black ); cg.setColor( TQColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, white ); cg.setColor( TQColorGroup::Midlight, white );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black ); cg.setColor( TQColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 222, 226, 246) ); cg.setColor( TQColorGroup::Background, TQColor( 222, 226, 246) );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
pal.setInactive( cg ); pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, white ); cg.setColor( TQColorGroup::Midlight, white );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 222, 226, 246) ); cg.setColor( TQColorGroup::Background, TQColor( 222, 226, 246) );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
pal.setDisabled( cg ); pal.setDisabled( cg );
Frame6->setPalette( pal ); Frame6->setPalette( pal );
Frame6->setFrameShape( QFrame::NoFrame ); Frame6->setFrameShape( TQFrame::NoFrame );
Frame6->setFrameShadow( QFrame::Plain ); Frame6->setFrameShadow( TQFrame::Plain );
labelTitle = new QLabel( Frame6, "labelTitle" ); labelTitle = new TQLabel( Frame6, "labelTitle" );
labelTitle->setGeometry( QRect( 19, 19, 221, 16 ) ); labelTitle->setGeometry( TQRect( 19, 19, 221, 16 ) );
QFont labelTitle_font( labelTitle->font() ); TQFont labelTitle_font( labelTitle->font() );
labelTitle_font.setPointSize( 10 ); labelTitle_font.setPointSize( 10 );
labelTitle_font.setBold( TRUE ); labelTitle_font.setBold( TRUE );
labelTitle->setFont( labelTitle_font ); labelTitle->setFont( labelTitle_font );
TextLabel3_2 = new QLabel( Frame6, "TextLabel3_2" ); TextLabel3_2 = new TQLabel( Frame6, "TextLabel3_2" );
TextLabel3_2->setGeometry( QRect( 20, 49, 248, 147 ) ); TextLabel3_2->setGeometry( TQRect( 20, 49, 248, 147 ) );
TextLabel3_2->setAlignment( int( QLabel::WordBreak | QLabel::AlignTop | QLabel::AlignLeft ) ); TextLabel3_2->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignTop | TQLabel::AlignLeft ) );
Frame5Layout->addWidget( Frame6 ); Frame5Layout->addWidget( Frame6 );
Spacer1 = new QSpacerItem( 61, 20, QSizePolicy::Fixed, QSizePolicy::Minimum ); Spacer1 = new TQSpacerItem( 61, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
Frame5Layout->addItem( Spacer1 ); Frame5Layout->addItem( Spacer1 );
AboutCfgDesignLayout->addWidget( Frame5 ); AboutCfgDesignLayout->addWidget( Frame5 );
languageChange(); languageChange();
resize( QSize(413, 353).expandedTo(minimumSizeHint()) ); resize( TQSize(413, 353).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished ); clearWState( WState_Polished );
} }
@ -439,7 +439,7 @@ AboutCfgDesign::AboutCfgDesign( QWidget* parent, const char* name, WFlags fl )
*/ */
AboutCfgDesign::~AboutCfgDesign() AboutCfgDesign::~AboutCfgDesign()
{ {
// no need to delete child widgets, Qt does it all for us // no need to delete child widgets, TQt does it all for us
} }
/* /*

@ -10,45 +10,45 @@
#ifndef ABOUTCFGDESIGN_H #ifndef ABOUTCFGDESIGN_H
#define ABOUTCFGDESIGN_H #define ABOUTCFGDESIGN_H
#include <qvariant.h> #include <ntqvariant.h>
#include <qpixmap.h> #include <ntqpixmap.h>
#include <qwidget.h> #include <ntqwidget.h>
class QVBoxLayout; class TQVBoxLayout;
class QHBoxLayout; class TQHBoxLayout;
class QGridLayout; class TQGridLayout;
class QSpacerItem; class TQSpacerItem;
class QFrame; class TQFrame;
class QLabel; class TQLabel;
class AboutCfgDesign : public QWidget class AboutCfgDesign : public TQWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
AboutCfgDesign( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); AboutCfgDesign( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~AboutCfgDesign(); ~AboutCfgDesign();
QFrame* Frame3; TQFrame* Frame3;
QLabel* PixmapLabel1; TQLabel* PixmapLabel1;
QLabel* TextLabel2; TQLabel* TextLabel2;
QFrame* Frame4; TQFrame* Frame4;
QLabel* TextLabel1; TQLabel* TextLabel1;
QFrame* Frame5; TQFrame* Frame5;
QFrame* Frame6; TQFrame* Frame6;
QLabel* labelTitle; TQLabel* labelTitle;
QLabel* TextLabel3_2; TQLabel* TextLabel3_2;
protected: protected:
QVBoxLayout* AboutCfgDesignLayout; TQVBoxLayout* AboutCfgDesignLayout;
QHBoxLayout* Frame5Layout; TQHBoxLayout* Frame5Layout;
QSpacerItem* Spacer1; TQSpacerItem* Spacer1;
protected slots: protected slots:
virtual void languageChange(); virtual void languageChange();
private: private:
QPixmap image0; TQPixmap image0;
}; };

@ -2,7 +2,7 @@
<class>AboutCfgDesign</class> <class>AboutCfgDesign</class>
<include location="global">kcolorbutton.h</include> <include location="global">kcolorbutton.h</include>
<widget> <widget>
<class>QWidget</class> <class>TQWidget</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>AboutCfgDesign</cstring> <cstring>AboutCfgDesign</cstring>
@ -36,7 +36,7 @@
<number>0</number> <number>0</number>
</property> </property>
<widget> <widget>
<class>QFrame</class> <class>TQFrame</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Frame3</cstring> <cstring>Frame3</cstring>
@ -285,7 +285,7 @@
<enum>Plain</enum> <enum>Plain</enum>
</property> </property>
<widget> <widget>
<class>QLabel</class> <class>TQLabel</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>PixmapLabel1</cstring> <cstring>PixmapLabel1</cstring>
@ -309,7 +309,7 @@
</property> </property>
</widget> </widget>
<widget> <widget>
<class>QLabel</class> <class>TQLabel</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>TextLabel2</cstring> <cstring>TextLabel2</cstring>
@ -337,7 +337,7 @@
</widget> </widget>
</widget> </widget>
<widget> <widget>
<class>QFrame</class> <class>TQFrame</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Frame4</cstring> <cstring>Frame4</cstring>
@ -586,7 +586,7 @@
<enum>Plain</enum> <enum>Plain</enum>
</property> </property>
<widget> <widget>
<class>QLabel</class> <class>TQLabel</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>TextLabel1</cstring> <cstring>TextLabel1</cstring>
@ -828,7 +828,7 @@
</widget> </widget>
</widget> </widget>
<widget> <widget>
<class>QFrame</class> <class>TQFrame</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Frame5</cstring> <cstring>Frame5</cstring>
@ -1075,7 +1075,7 @@
<number>6</number> <number>6</number>
</property> </property>
<widget> <widget>
<class>QFrame</class> <class>TQFrame</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Frame6</cstring> <cstring>Frame6</cstring>
@ -1317,7 +1317,7 @@
<enum>Plain</enum> <enum>Plain</enum>
</property> </property>
<widget> <widget>
<class>QLabel</class> <class>TQLabel</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>labelTitle</cstring> <cstring>labelTitle</cstring>
@ -1344,7 +1344,7 @@
</property> </property>
</widget> </widget>
<widget> <widget>
<class>QLabel</class> <class>TQLabel</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>TextLabel3_2</cstring> <cstring>TextLabel3_2</cstring>

@ -18,13 +18,13 @@
#include "cpupanel.h" #include "cpupanel.h"
#include "qlcddraw.h" #include "qlcddraw.h"
#include <qcolor.h> #include <ntqcolor.h>
#include <qpainter.h> #include <ntqpainter.h>
#include <qlcdnumber.h> #include <ntqlcdnumber.h>
#include <string.h> #include <string.h>
bool getCpuInfoValue(const char *name,QString &value) bool getCpuInfoValue(const char *name,TQString &value)
{ {
char buffer[128]; char buffer[128];
char *ptr; char *ptr;
@ -49,7 +49,7 @@ bool result;
return result; return result;
} }
void adjustString(QString &str,int maxlen) void adjustString(TQString &str,int maxlen)
{ {
int i= str.find('('); int i= str.find('(');
@ -58,7 +58,7 @@ int i= str.find('(');
str= str.stripWhiteSpace(); str= str.stripWhiteSpace();
} }
CpuPanel::CpuPanel(QWidget *parent, const char *name) : Panel(parent,name) CpuPanel::CpuPanel(TQWidget *parent, const char *name) : Panel(parent,name)
{ {
sCpu= "Unknown"; sCpu= "Unknown";
getCpuInfoValue("model name",sCpu); getCpuInfoValue("model name",sCpu);
@ -72,22 +72,22 @@ CpuPanel::CpuPanel(QWidget *parent, const char *name) : Panel(parent,name)
getCpuInfoValue("bogomips",sBogomips); getCpuInfoValue("bogomips",sBogomips);
sBogomips.sprintf("%.0f BMPS",sBogomips.toDouble()); sBogomips.sprintf("%.0f BMPS",sBogomips.toDouble());
QString sSpeed= "0"; TQString sSpeed= "0";
getCpuInfoValue("cpu MHz",sSpeed); getCpuInfoValue("cpu MHz",sSpeed);
sSpeed.sprintf("%.0f",sSpeed.toDouble()); sSpeed.sprintf("%.0f",sSpeed.toDouble());
speed= new QLCDNumber(this); speed= new TQLCDNumber(this);
speed->setGeometry(6,20,52,26); speed->setGeometry(6,20,52,26);
speed->setNumDigits(sSpeed.length()); speed->setNumDigits(sSpeed.length());
speed->setSegmentStyle(QLCDNumber::Filled); speed->setSegmentStyle(TQLCDNumber::Filled);
speed->setFrameShape(QFrame::NoFrame); speed->setFrameShape(TQFrame::NoFrame);
speed->display(sSpeed); speed->display(sSpeed);
QPalette cg= speed->palette(); TQPalette cg= speed->palette();
cg.setColor( QColorGroup::Foreground, QColor( 255, 0, 0) ); cg.setColor( TQColorGroup::Foreground, TQColor( 255, 0, 0) );
cg.setColor( QColorGroup::Light, QColor( 255, 0, 0) ); cg.setColor( TQColorGroup::Light, TQColor( 255, 0, 0) );
cg.setColor( QColorGroup::Midlight, QColor( 231, 232, 246) ); cg.setColor( TQColorGroup::Midlight, TQColor( 231, 232, 246) );
cg.setColor( QColorGroup::Dark, QColor( 104, 105, 118) ); cg.setColor( TQColorGroup::Dark, TQColor( 104, 105, 118) );
cg.setColor( QColorGroup::Mid, QColor( 139, 140, 158) ); cg.setColor( TQColorGroup::Mid, TQColor( 139, 140, 158) );
cg.setColor( QColorGroup::Background, palette().active().background() ); cg.setColor( TQColorGroup::Background, palette().active().background() );
speed->setPalette(cg); speed->setPalette(cg);
speed->installEventFilter(this); speed->installEventFilter(this);
} }
@ -108,7 +108,7 @@ void CpuPanel::updateInfo()
update(); update();
} }
void CpuPanel::drawContents(QPainter *p) void CpuPanel::drawContents(TQPainter *p)
{ {
int w= width(); int w= width();
int h= height(); int h= height();
@ -116,20 +116,20 @@ void CpuPanel::drawContents(QPainter *p)
int i2= (h * 4) / 5; int i2= (h * 4) / 5;
int th= h-i2-h/11; int th= h-i2-h/11;
QLcd::draw(p, 2,h/10,w-4,th,sCpu.latin1(),QLcd::alignJustify, &getColorTitle()); TQLcd::draw(p, 2,h/10,w-4,th,sCpu.latin1(),TQLcd::alignJustify, &getColorTitle());
QLcd::draw(p, 2,i2+1,w-4,th,sBogomips.latin1(),QLcd::alignCenter,&getColorTitle()); TQLcd::draw(p, 2,i2+1,w-4,th,sBogomips.latin1(),TQLcd::alignCenter,&getColorTitle());
} }
void CpuPanel::paletteChange( const QPalette &oldPalette) void CpuPanel::paletteChange( const TQPalette &oldPalette)
{ {
QPalette cg= speed->palette(); TQPalette cg= speed->palette();
cg.setColor(QColorGroup::Background,palette().active().background()); cg.setColor(TQColorGroup::Background,palette().active().background());
speed->setPalette(cg); speed->setPalette(cg);
} }
void CpuPanel::resizeEvent ( QResizeEvent *e ) void CpuPanel::resizeEvent ( TQResizeEvent *e )
{ {
int w= width(); int w= width();
int h= height(); int h= height();

@ -20,7 +20,7 @@
#include "panel.h" #include "panel.h"
#include <qlcdnumber.h> #include <ntqlcdnumber.h>
#include "qlcdstring.h" #include "qlcdstring.h"
/** /**
@ -32,23 +32,23 @@
class CpuPanel : public Panel { class CpuPanel : public Panel {
Q_OBJECT Q_OBJECT
public: public:
CpuPanel(QWidget *parent=0, const char *name=0); CpuPanel(TQWidget *parent=0, const char *name=0);
~CpuPanel(); ~CpuPanel();
protected: protected:
void drawContents ( QPainter *p ); void drawContents ( TQPainter *p );
void paletteChange( const QPalette &oldPalette); void paletteChange( const TQPalette &oldPalette);
private: private:
void updateInfo(); void updateInfo();
QLCDNumber *speed; TQLCDNumber *speed;
QString sCpu,sVendor,sSpeed,sBogomips; TQString sCpu,sVendor,sSpeed,sBogomips;
void resizeEvent ( QResizeEvent *e ); void resizeEvent ( TQResizeEvent *e );
}; };
#endif #endif

@ -19,49 +19,49 @@
#include "procinfo.h" #include "procinfo.h"
CpuTimePanel::CpuTimePanel(QWidget *parent, const char *name): Panel(parent,name) CpuTimePanel::CpuTimePanel(TQWidget *parent, const char *name): Panel(parent,name)
{ {
lcd1= new QLCDString(this); lcd1= new TQLCDString(this);
lcd1->setGeometry(16,38,46,8); lcd1->setGeometry(16,38,46,8);
lcd1->setForeColor(red); lcd1->setForeColor(red);
lcd1->setAlign(QLCDString::alignLeft); lcd1->setAlign(TQLCDString::alignLeft);
lcd1->setNumberDisplay(true); lcd1->setNumberDisplay(true);
lcd1->installEventFilter(this); lcd1->installEventFilter(this);
QColor color2( 200, 0, 0); TQColor color2( 200, 0, 0);
lcd2= new QLCDString(this); lcd2= new TQLCDString(this);
lcd2->setGeometry(16,28,46,8); lcd2->setGeometry(16,28,46,8);
lcd2->setForeColor(color2); lcd2->setForeColor(color2);
lcd2->setAlign(QLCDString::alignLeft); lcd2->setAlign(TQLCDString::alignLeft);
lcd2->setNumberDisplay(true); lcd2->setNumberDisplay(true);
lcd2->installEventFilter(this); lcd2->installEventFilter(this);
QColor color3( 128,32,0 ); TQColor color3( 128,32,0 );
lcd3= new QLCDString(this); lcd3= new TQLCDString(this);
lcd3->setGeometry(16,18,46,8); lcd3->setGeometry(16,18,46,8);
lcd3->setForeColor(color3); lcd3->setForeColor(color3);
lcd3->setAlign(QLCDString::alignLeft); lcd3->setAlign(TQLCDString::alignLeft);
lcd3->setNumberDisplay(true); lcd3->setNumberDisplay(true);
lcd3->installEventFilter(this); lcd3->installEventFilter(this);
lcd4= new QLCDString(this); lcd4= new TQLCDString(this);
lcd4->setGeometry(16,8,46,8); lcd4->setGeometry(16,8,46,8);
lcd4->setForeColor(darkGreen); lcd4->setForeColor(darkGreen);
lcd4->setAlign(QLCDString::alignLeft); lcd4->setAlign(TQLCDString::alignLeft);
lcd4->setNumberDisplay(true); lcd4->setNumberDisplay(true);
lcd4->installEventFilter(this); lcd4->installEventFilter(this);
barMeter= new QBarMeter(this); barMeter= new TQBarMeter(this);
barMeter->setGeometry(6,6,6,40); barMeter->setGeometry(6,6,6,40);
barMeter->setDirection(QBarMeter::dirUp); barMeter->setDirection(TQBarMeter::dirUp);
barMeter->setSteps(20); barMeter->setSteps(20);
barMeter->useValueMax(false); barMeter->useValueMax(false);
barMeter->setValueColor( 0, red ); barMeter->setValueColor( 0, red );
barMeter->setValueColor( 1, color2 ); barMeter->setValueColor( 1, color2 );
barMeter->setValueColor( 2, color3 ); barMeter->setValueColor( 2, color3 );
barMeter->setValueColor( 3, QColor(0,220,0) ); barMeter->setValueColor( 3, TQColor(0,220,0) );
barMeter->setValueCount(4); barMeter->setValueCount(4);
barMeter->installEventFilter(this); barMeter->installEventFilter(this);
@ -72,13 +72,13 @@ CpuTimePanel::CpuTimePanel(QWidget *parent, const char *name): Panel(parent,name
CpuTimePanel::~CpuTimePanel(){ CpuTimePanel::~CpuTimePanel(){
} }
void CpuTimePanel::drawContents(QPainter *p) void CpuTimePanel::drawContents(TQPainter *p)
{ {
int w= width(); int w= width();
int h= height(); int h= height();
int i2= (h * 4) / 5; int i2= (h * 4) / 5;
int th= h-i2-h/11; int th= h-i2-h/11;
QLcd::draw(p, 2,i2+1,w-4,th, "CPU STATE",QLcd::alignCenter,&getColorTitle()); TQLcd::draw(p, 2,i2+1,w-4,th, "CPU STATE",TQLcd::alignCenter,&getColorTitle());
} }
@ -97,7 +97,7 @@ void CpuTimePanel::updateInfo()
if (ptotal==0) ptotal=1; if (ptotal==0) ptotal=1;
QString str; TQString str;
str.sprintf ("USER%5.1f" , (float)puser /ptotal * 100 ); str.sprintf ("USER%5.1f" , (float)puser /ptotal * 100 );
lcd1->display(str); lcd1->display(str);
str.sprintf ("NICE%5.1f" , (float)pnice /ptotal * 100 ); str.sprintf ("NICE%5.1f" , (float)pnice /ptotal * 100 );
@ -118,7 +118,7 @@ void CpuTimePanel::updateInfo()
old_idle = idle; old_idle = idle;
} }
void CpuTimePanel::resizeEvent ( QResizeEvent *e ) void CpuTimePanel::resizeEvent ( TQResizeEvent *e )
{ {
int w= width(); int w= width();
int h= height(); int h= height();

@ -18,7 +18,7 @@
#ifndef CPUTIMEPANEL_H #ifndef CPUTIMEPANEL_H
#define CPUTIMEPANEL_H #define CPUTIMEPANEL_H
#include <qpainter.h> #include <ntqpainter.h>
#include <panel.h> #include <panel.h>
#include "qlcdstring.h" #include "qlcdstring.h"
@ -30,18 +30,18 @@
class CpuTimePanel : public Panel { class CpuTimePanel : public Panel {
public: public:
CpuTimePanel(QWidget *parent=0, const char *name=0); CpuTimePanel(TQWidget *parent=0, const char *name=0);
~CpuTimePanel(); ~CpuTimePanel();
protected: protected:
int old_user,old_nice,old_system,old_idle; int old_user,old_nice,old_system,old_idle;
QLCDString *lcd1,*lcd2,*lcd3,*lcd4; TQLCDString *lcd1,*lcd2,*lcd3,*lcd4;
QBarMeter *barMeter; TQBarMeter *barMeter;
void updateInfo(); void updateInfo();
void drawContents(QPainter *p); void drawContents(TQPainter *p);
void resizeEvent ( QResizeEvent *e ); void resizeEvent ( TQResizeEvent *e );
}; };
#endif #endif

@ -17,25 +17,25 @@
#include "generalcfg.h" #include "generalcfg.h"
#include <qgroupbox.h> #include <ntqgroupbox.h>
#include <qlayout.h> #include <ntqlayout.h>
#include <qpushbutton.h> #include <ntqpushbutton.h>
#include <qradiobutton.h> #include <ntqradiobutton.h>
#include <qcheckbox.h> #include <ntqcheckbox.h>
#include "lmsensorswidget.h" #include "lmsensorswidget.h"
#include "lmsensorsdock.h" #include "lmsensorsdock.h"
GeneralCfg::GeneralCfg(LMSensors *lsensors, QWidget *parent, const char *name) : GeneralCfgDesign(parent,name) GeneralCfg::GeneralCfg(LMSensors *lsensors, TQWidget *parent, const char *name) : GeneralCfgDesign(parent,name)
{ {
sensors= lsensors; sensors= lsensors;
palPanelCfg= new PaletteCfg( boxGeneralPalette ); palPanelCfg= new PaletteCfg( boxGeneralPalette );
boxGeneralPalette->setColumnLayout(0, Qt::Vertical ); boxGeneralPalette->setColumnLayout(0, TQt::Vertical );
boxGeneralPalette->layout()->setSpacing( 6 ); boxGeneralPalette->layout()->setSpacing( 6 );
boxGeneralPalette->layout()->setMargin( 12 ); boxGeneralPalette->layout()->setMargin( 12 );
QGridLayout *boxGeneralPaletteLayout = new QGridLayout( boxGeneralPalette->layout() ); TQGridLayout *boxGeneralPaletteLayout = new TQGridLayout( boxGeneralPalette->layout() );
boxGeneralPaletteLayout->setAlignment( Qt::AlignTop ); boxGeneralPaletteLayout->setAlignment( TQt::AlignTop );
boxGeneralPaletteLayout->addWidget( palPanelCfg, 0, 0 ); boxGeneralPaletteLayout->addWidget( palPanelCfg, 0, 0 );
palPanelCfg->readPalette(0); palPanelCfg->readPalette(0);
@ -47,7 +47,7 @@ GeneralCfg::GeneralCfg(LMSensors *lsensors, QWidget *parent, const char *name) :
case 48: Radio48->setChecked(true); break; case 48: Radio48->setChecked(true); break;
} }
KConfig *cfg= KGlobal::config(); TDEConfig *cfg= TDEGlobal::config();
cfg->setGroup( "General" ); cfg->setGroup( "General" );
CheckBoxAutoStart->setChecked(cfg->readBoolEntry("AutoStart",true)); CheckBoxAutoStart->setChecked(cfg->readBoolEntry("AutoStart",true));
//connect( buttonApply ,SIGNAL(clicked()),this, SLOT(slotApplyChanges())); //connect( buttonApply ,SIGNAL(clicked()),this, SLOT(slotApplyChanges()));
@ -69,7 +69,7 @@ void GeneralCfg::slotApplyChanges()
else if(Radio48->isChecked()) panelSize= 48; else if(Radio48->isChecked()) panelSize= 48;
LMSensorsWidget::cfgWritePanelSize(panelSize); LMSensorsWidget::cfgWritePanelSize(panelSize);
KConfig *cfg= KGlobal::config(); TDEConfig *cfg= TDEGlobal::config();
cfg->setGroup( "General" ); cfg->setGroup( "General" );
cfg->writeEntry("AutoStart", CheckBoxAutoStart->isChecked()); cfg->writeEntry("AutoStart", CheckBoxAutoStart->isChecked());

@ -29,7 +29,7 @@
class GeneralCfg : public GeneralCfgDesign { class GeneralCfg : public GeneralCfgDesign {
Q_OBJECT Q_OBJECT
public: public:
GeneralCfg(LMSensors *lsensors, QWidget *parent=0, const char *name=0); GeneralCfg(LMSensors *lsensors, TQWidget *parent=0, const char *name=0);
~GeneralCfg(); ~GeneralCfg();
public slots: public slots:

@ -1,4 +1,4 @@
#include <klocale.h> #include <tdelocale.h>
/**************************************************************************** /****************************************************************************
** Form implementation generated from reading ui file './generalcfgdesign.ui' ** Form implementation generated from reading ui file './generalcfgdesign.ui'
** **
@ -10,69 +10,69 @@
#include "generalcfgdesign.h" #include "generalcfgdesign.h"
#include <qvariant.h> #include <ntqvariant.h>
#include <qpushbutton.h> #include <ntqpushbutton.h>
#include <qbuttongroup.h> #include <ntqbuttongroup.h>
#include <qradiobutton.h> #include <ntqradiobutton.h>
#include <qgroupbox.h> #include <ntqgroupbox.h>
#include <qcheckbox.h> #include <ntqcheckbox.h>
#include <qlayout.h> #include <ntqlayout.h>
#include <qtooltip.h> #include <ntqtooltip.h>
#include <qwhatsthis.h> #include <ntqwhatsthis.h>
/* /*
* Constructs a GeneralCfgDesign as a child of 'parent', with the * Constructs a GeneralCfgDesign as a child of 'parent', with the
* name 'name' and widget flags set to 'f'. * name 'name' and widget flags set to 'f'.
*/ */
GeneralCfgDesign::GeneralCfgDesign( QWidget* parent, const char* name, WFlags fl ) GeneralCfgDesign::GeneralCfgDesign( TQWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl ) : TQWidget( parent, name, fl )
{ {
if ( !name ) if ( !name )
setName( "GeneralCfgDesign" ); setName( "GeneralCfgDesign" );
GeneralCfgDesignLayout = new QGridLayout( this, 1, 1, 8, 6, "GeneralCfgDesignLayout"); GeneralCfgDesignLayout = new TQGridLayout( this, 1, 1, 8, 6, "GeneralCfgDesignLayout");
ButtonGroup5 = new QButtonGroup( this, "ButtonGroup5" ); ButtonGroup5 = new TQButtonGroup( this, "ButtonGroup5" );
ButtonGroup5->setColumnLayout(0, Qt::Vertical ); ButtonGroup5->setColumnLayout(0, TQt::Vertical );
ButtonGroup5->layout()->setSpacing( 6 ); ButtonGroup5->layout()->setSpacing( 6 );
ButtonGroup5->layout()->setMargin( 11 ); ButtonGroup5->layout()->setMargin( 11 );
ButtonGroup5Layout = new QGridLayout( ButtonGroup5->layout() ); ButtonGroup5Layout = new TQGridLayout( ButtonGroup5->layout() );
ButtonGroup5Layout->setAlignment( Qt::AlignTop ); ButtonGroup5Layout->setAlignment( TQt::AlignTop );
Radio64 = new QRadioButton( ButtonGroup5, "Radio64" ); Radio64 = new TQRadioButton( ButtonGroup5, "Radio64" );
Radio64->setChecked( TRUE ); Radio64->setChecked( TRUE );
ButtonGroup5Layout->addWidget( Radio64, 0, 0 ); ButtonGroup5Layout->addWidget( Radio64, 0, 0 );
Radio56 = new QRadioButton( ButtonGroup5, "Radio56" ); Radio56 = new TQRadioButton( ButtonGroup5, "Radio56" );
ButtonGroup5Layout->addWidget( Radio56, 0, 1 ); ButtonGroup5Layout->addWidget( Radio56, 0, 1 );
Radio48 = new QRadioButton( ButtonGroup5, "Radio48" ); Radio48 = new TQRadioButton( ButtonGroup5, "Radio48" );
ButtonGroup5Layout->addWidget( Radio48, 0, 2 ); ButtonGroup5Layout->addWidget( Radio48, 0, 2 );
GeneralCfgDesignLayout->addWidget( ButtonGroup5, 0, 0 ); GeneralCfgDesignLayout->addWidget( ButtonGroup5, 0, 0 );
boxGeneralPalette = new QGroupBox( this, "boxGeneralPalette" ); boxGeneralPalette = new TQGroupBox( this, "boxGeneralPalette" );
boxGeneralPalette->setMinimumSize( QSize( 0, 65 ) ); boxGeneralPalette->setMinimumSize( TQSize( 0, 65 ) );
GeneralCfgDesignLayout->addWidget( boxGeneralPalette, 1, 0 ); GeneralCfgDesignLayout->addWidget( boxGeneralPalette, 1, 0 );
GroupBox2 = new QGroupBox( this, "GroupBox2" ); GroupBox2 = new TQGroupBox( this, "GroupBox2" );
GroupBox2->setColumnLayout(0, Qt::Vertical ); GroupBox2->setColumnLayout(0, TQt::Vertical );
GroupBox2->layout()->setSpacing( 6 ); GroupBox2->layout()->setSpacing( 6 );
GroupBox2->layout()->setMargin( 11 ); GroupBox2->layout()->setMargin( 11 );
GroupBox2Layout = new QVBoxLayout( GroupBox2->layout() ); GroupBox2Layout = new TQVBoxLayout( GroupBox2->layout() );
GroupBox2Layout->setAlignment( Qt::AlignTop ); GroupBox2Layout->setAlignment( TQt::AlignTop );
CheckBoxAutoStart = new QCheckBox( GroupBox2, "CheckBoxAutoStart" ); CheckBoxAutoStart = new TQCheckBox( GroupBox2, "CheckBoxAutoStart" );
GroupBox2Layout->addWidget( CheckBoxAutoStart ); GroupBox2Layout->addWidget( CheckBoxAutoStart );
GeneralCfgDesignLayout->addWidget( GroupBox2, 2, 0 ); GeneralCfgDesignLayout->addWidget( GroupBox2, 2, 0 );
Spacer28 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Spacer28 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
GeneralCfgDesignLayout->addItem( Spacer28, 3, 0 ); GeneralCfgDesignLayout->addItem( Spacer28, 3, 0 );
languageChange(); languageChange();
resize( QSize(343, 239).expandedTo(minimumSizeHint()) ); resize( TQSize(343, 239).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished ); clearWState( WState_Polished );
} }
@ -81,7 +81,7 @@ GeneralCfgDesign::GeneralCfgDesign( QWidget* parent, const char* name, WFlags fl
*/ */
GeneralCfgDesign::~GeneralCfgDesign() GeneralCfgDesign::~GeneralCfgDesign()
{ {
// no need to delete child widgets, Qt does it all for us // no need to delete child widgets, TQt does it all for us
} }
/* /*

@ -10,39 +10,39 @@
#ifndef GENERALCFGDESIGN_H #ifndef GENERALCFGDESIGN_H
#define GENERALCFGDESIGN_H #define GENERALCFGDESIGN_H
#include <qvariant.h> #include <ntqvariant.h>
#include <qwidget.h> #include <ntqwidget.h>
class QVBoxLayout; class TQVBoxLayout;
class QHBoxLayout; class TQHBoxLayout;
class QGridLayout; class TQGridLayout;
class QSpacerItem; class TQSpacerItem;
class QButtonGroup; class TQButtonGroup;
class QRadioButton; class TQRadioButton;
class QGroupBox; class TQGroupBox;
class QCheckBox; class TQCheckBox;
class GeneralCfgDesign : public QWidget class GeneralCfgDesign : public TQWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
GeneralCfgDesign( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); GeneralCfgDesign( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~GeneralCfgDesign(); ~GeneralCfgDesign();
QButtonGroup* ButtonGroup5; TQButtonGroup* ButtonGroup5;
QRadioButton* Radio64; TQRadioButton* Radio64;
QRadioButton* Radio56; TQRadioButton* Radio56;
QRadioButton* Radio48; TQRadioButton* Radio48;
QGroupBox* boxGeneralPalette; TQGroupBox* boxGeneralPalette;
QGroupBox* GroupBox2; TQGroupBox* GroupBox2;
QCheckBox* CheckBoxAutoStart; TQCheckBox* CheckBoxAutoStart;
protected: protected:
QGridLayout* GeneralCfgDesignLayout; TQGridLayout* GeneralCfgDesignLayout;
QSpacerItem* Spacer28; TQSpacerItem* Spacer28;
QGridLayout* ButtonGroup5Layout; TQGridLayout* ButtonGroup5Layout;
QVBoxLayout* GroupBox2Layout; TQVBoxLayout* GroupBox2Layout;
protected slots: protected slots:
virtual void languageChange(); virtual void languageChange();

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>GeneralCfgDesign</class> <class>GeneralCfgDesign</class>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>GeneralCfgDesign</cstring> <cstring>GeneralCfgDesign</cstring>
</property> </property>
@ -29,7 +29,7 @@
<property name="spacing"> <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>
<widget class="QButtonGroup" row="0" column="0"> <widget class="TQButtonGroup" row="0" column="0">
<property name="name"> <property name="name">
<cstring>ButtonGroup5</cstring> <cstring>ButtonGroup5</cstring>
</property> </property>
@ -46,7 +46,7 @@
<property name="spacing"> <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>
<widget class="QRadioButton" row="0" column="0"> <widget class="TQRadioButton" row="0" column="0">
<property name="name"> <property name="name">
<cstring>Radio64</cstring> <cstring>Radio64</cstring>
</property> </property>
@ -57,7 +57,7 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QRadioButton" row="0" column="1"> <widget class="TQRadioButton" row="0" column="1">
<property name="name"> <property name="name">
<cstring>Radio56</cstring> <cstring>Radio56</cstring>
</property> </property>
@ -65,7 +65,7 @@
<string>56 x 56</string> <string>56 x 56</string>
</property> </property>
</widget> </widget>
<widget class="QRadioButton" row="0" column="2"> <widget class="TQRadioButton" row="0" column="2">
<property name="name"> <property name="name">
<cstring>Radio48</cstring> <cstring>Radio48</cstring>
</property> </property>
@ -75,7 +75,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QGroupBox" row="1" column="0"> <widget class="TQGroupBox" row="1" column="0">
<property name="name"> <property name="name">
<cstring>boxGeneralPalette</cstring> <cstring>boxGeneralPalette</cstring>
</property> </property>
@ -93,7 +93,7 @@
<property name="layoutSpacing" stdset="0"> <property name="layoutSpacing" stdset="0">
</property> </property>
</widget> </widget>
<widget class="QGroupBox" row="2" column="0"> <widget class="TQGroupBox" row="2" column="0">
<property name="name"> <property name="name">
<cstring>GroupBox2</cstring> <cstring>GroupBox2</cstring>
</property> </property>
@ -110,7 +110,7 @@
<property name="spacing"> <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>
<widget class="QCheckBox"> <widget class="TQCheckBox">
<property name="name"> <property name="name">
<cstring>CheckBoxAutoStart</cstring> <cstring>CheckBoxAutoStart</cstring>
</property> </property>

@ -21,19 +21,19 @@
#include <dirent.h> #include <dirent.h>
#include <sys/types.h> #include <sys/types.h>
#include <stdlib.h> #include <stdlib.h>
#include <qstringlist.h> #include <ntqstringlist.h>
#include <klocale.h> #include <tdelocale.h>
#include <qregexp.h> #include <ntqregexp.h>
#include "sensor.h" #include "sensor.h"
#include "hdsensorslist.h" #include "hdsensorslist.h"
HDSensorsList::HDSensorsList(QObject *parent, const char * name): SensorsList(parent,name) HDSensorsList::HDSensorsList(TQObject *parent, const char * name): SensorsList(parent,name)
{ {
process= 0; process= 0;
setDescription( QString(i18n("Hard Disks")) ); setDescription( TQString(i18n("Hard Disks")) );
setClass(Sensor::hdSensor); setClass(Sensor::hdSensor);
@ -41,16 +41,16 @@ HDSensorsList::HDSensorsList(QObject *parent, const char * name): SensorsList(pa
if(!isHddTempInstalled()) return; if(!isHddTempInstalled()) return;
QStringList disks; TQStringList disks;
if(!getDisks(disks)) return; if(!getDisks(disks)) return;
for(QStringList::Iterator it = disks.begin(); it != disks.end(); ++it ) { for(TQStringList::Iterator it = disks.begin(); it != disks.end(); ++it ) {
ProcessExec proc; ProcessExec proc;
proc << "hddtemp" << "-q"; proc << "hddtemp" << "-q";
proc << *it; proc << *it;
if(proc.runAndWait()) { if(proc.runAndWait()) {
double value; double value;
QString str; TQString str;
if(getDiskInfo(proc.getStdoutData(),str,value)) { if(getDiskInfo(proc.getStdoutData(),str,value)) {
Sensor *sensor= new Sensor(this); Sensor *sensor= new Sensor(this);
sensor->setType(Sensor::lmTemp); sensor->setType(Sensor::lmTemp);
@ -77,10 +77,10 @@ void HDSensorsList::updateSensors()
{ {
if(process) return; if(process) return;
QObjectList *list= (QObjectList *)children(); TQObjectList *list= (TQObjectList *)children();
if(!list) return; if(!list) return;
QStringList params; TQStringList params;
for(Sensor *obj= (Sensor *)list->first(); obj!=0; obj= (Sensor *)list->next()) for(Sensor *obj= (Sensor *)list->first(); obj!=0; obj= (Sensor *)list->next())
if(obj->monitorized()) if(obj->monitorized())
params << obj->name(); params << obj->name();
@ -88,24 +88,24 @@ void HDSensorsList::updateSensors()
if(params.count()>0) { if(params.count()>0) {
process= new ProcessExec; process= new ProcessExec;
*process << "hddtemp" << "-q" << params; *process << "hddtemp" << "-q" << params;
connect( process, SIGNAL(processExited(KProcess *)), this, SLOT(slotProcessExited(KProcess *)) ); connect( process, SIGNAL(processExited(TDEProcess *)), this, SLOT(slotProcessExited(TDEProcess *)) );
process->run(); process->run();
} }
} }
void HDSensorsList::slotProcessExited(KProcess *) void HDSensorsList::slotProcessExited(TDEProcess *)
{ {
QObjectList *list= (QObjectList *)children(); TQObjectList *list= (TQObjectList *)children();
if (!list) return; if (!list) return;
if (process->outputErrors()) if (process->outputErrors())
qWarning("HddTemp Error:\n%s", process->getStdoutData().ascii()); tqWarning("HddTemp Error:\n%s", process->getStdoutData().ascii());
QStringList buf = QStringList::split(QChar('\n'), process->getStdoutData()); TQStringList buf = TQStringList::split(TQChar('\n'), process->getStdoutData());
for(QStringList::Iterator it = buf.begin(); it != buf.end(); ++it ) { for(TQStringList::Iterator it = buf.begin(); it != buf.end(); ++it ) {
for(Sensor *obj= (Sensor *)list->first(); obj!=0; obj= (Sensor *)list->next()) { for(Sensor *obj= (Sensor *)list->first(); obj!=0; obj= (Sensor *)list->next()) {
QRegExp rx(QString(obj->name()) + QString(":\\s+.+:\\s+(\\d+).*C")); TQRegExp rx(TQString(obj->name()) + TQString(":\\s+.+:\\s+(\\d+).*C"));
if (rx.search((*it)) > -1) if (rx.search((*it)) > -1)
obj->setValue(rx.cap(1).toDouble(), Sensor::dgCelsius); obj->setValue(rx.cap(1).toDouble(), Sensor::dgCelsius);
} }
@ -117,9 +117,9 @@ void HDSensorsList::slotProcessExited(KProcess *)
// *************** Static methods // *************** Static methods
bool HDSensorsList::getDiskInfo(const QString buf, QString &name, double &value) bool HDSensorsList::getDiskInfo(const TQString buf, TQString &name, double &value)
{ {
QRegExp rx(":\\s+(.+):\\s+(\\d+).*C"); TQRegExp rx(":\\s+(.+):\\s+(\\d+).*C");
if (rx.search(buf) > -1) { if (rx.search(buf) > -1) {
bool ok; bool ok;
@ -142,12 +142,12 @@ bool HDSensorsList::isHddTempInstalled()
proc << "hddtemp" << "-v" ; proc << "hddtemp" << "-v" ;
if(proc.runAndWait()) { if(proc.runAndWait()) {
if(proc.getStdoutData().contains("ERROR")==0) return true; if(proc.getStdoutData().contains("ERROR")==0) return true;
qWarning("HddTemp Error:\n%s", proc.getStdoutData().ascii()); tqWarning("HddTemp Error:\n%s", proc.getStdoutData().ascii());
} }
return false; return false;
} }
bool HDSensorsList::getDisks(QStringList &disks ) bool HDSensorsList::getDisks(TQStringList &disks )
{ {
DIR *dir; DIR *dir;
@ -155,7 +155,7 @@ bool HDSensorsList::getDisks(QStringList &disks )
if((dir = opendir ("/sys/block")) == NULL) if((dir = opendir ("/sys/block")) == NULL)
if ((dir = opendir ("/proc/ide")) == NULL) if ((dir = opendir ("/proc/ide")) == NULL)
return false; return false;
QString str; TQString str;
struct dirent *ptr; struct dirent *ptr;
while((ptr= readdir(dir))) { while((ptr= readdir(dir))) {
if((ptr->d_name[0]=='h' || ptr->d_name[0]=='s') && ptr->d_name[1]=='d') { if((ptr->d_name[0]=='h' || ptr->d_name[0]=='s') && ptr->d_name[1]=='d') {

@ -30,7 +30,7 @@
class HDSensorsList : public SensorsList { class HDSensorsList : public SensorsList {
Q_OBJECT Q_OBJECT
public: public:
HDSensorsList(QObject *parent, const char * name); HDSensorsList(TQObject *parent, const char * name);
~HDSensorsList(); ~HDSensorsList();
public slots: public slots:
@ -39,15 +39,15 @@ public slots:
protected slots: protected slots:
void slotProcessExited(KProcess *proc); void slotProcessExited(TDEProcess *proc);
private: private:
ProcessExec *process; ProcessExec *process;
static bool isHddTempInstalled(); static bool isHddTempInstalled();
static bool getDisks(QStringList &disks); static bool getDisks(TQStringList &disks);
static bool getDiskInfo(const QString buf, QString &name, double &value); static bool getDiskInfo(const TQString buf, TQString &name, double &value);
}; };
#endif #endif

@ -15,7 +15,7 @@
* * * *
***************************************************************************/ ***************************************************************************/
#include <klocale.h> #include <tdelocale.h>
#include "i8ksensorslist.h" #include "i8ksensorslist.h"
@ -24,9 +24,9 @@
I8KSensorsList::I8KSensorsList(QObject *parent, const char *name): SensorsList(parent,name) I8KSensorsList::I8KSensorsList(TQObject *parent, const char *name): SensorsList(parent,name)
{ {
setDescription(QString(i18n("MainBoard")) ); setDescription(TQString(i18n("MainBoard")) );
setClass(Sensor::lmSensor); setClass(Sensor::lmSensor);
@ -118,8 +118,8 @@ bool I8KSensorsList::I8KAvailable()
int result; int result;
switch(result= I8KOnlyAvailable()) { switch(result= I8KOnlyAvailable()) {
case -2: qWarning("I18K Warning: /proc/i8k format not valid or not supported. Inform the author."); break; case -2: tqWarning("I18K Warning: /proc/i8k format not valid or not supported. Inform the author."); break;
case -3: qWarning("I18K Warning: Only format version 1.0 is supported. Inform the author."); break; case -3: tqWarning("I18K Warning: Only format version 1.0 is supported. Inform the author."); break;
} }
return (result==0 || AcpiAvailable()==0); return (result==0 || AcpiAvailable()==0);

@ -28,7 +28,7 @@ class I8KSensorsList : public SensorsList {
Q_OBJECT Q_OBJECT
public: public:
I8KSensorsList(QObject *parent, const char * name); I8KSensorsList(TQObject *parent, const char * name);
~I8KSensorsList(); ~I8KSensorsList();

@ -19,11 +19,11 @@
InfoPanels::InfoPanels(QWidget *panelsWidget, QObject *parent, const char *name): PanelsGroup(widget,parent,name) InfoPanels::InfoPanels(TQWidget *panelsWidget, TQObject *parent, const char *name): PanelsGroup(widget,parent,name)
{ {
widget= panelsWidget; widget= panelsWidget;
timerPanelCount=0; timerPanelCount=0;
timer = new QTimer(this); timer = new TQTimer(this);
configChanged("proc.CPUINFO"); configChanged("proc.CPUINFO");
configChanged("proc.RAMINFO"); configChanged("proc.RAMINFO");
configChanged("proc.SWAPINFO"); configChanged("proc.SWAPINFO");
@ -72,14 +72,14 @@ void InfoPanels::infoPanelDestroyed()
void InfoPanels::cfgWriteUpdateInterval(int interval) void InfoPanels::cfgWriteUpdateInterval(int interval)
{ {
KGlobal::config()->setGroup("ShowWidget"); TDEGlobal::config()->setGroup("ShowWidget");
KGlobal::config()->writeEntry("UpdateInterval" , interval ); TDEGlobal::config()->writeEntry("UpdateInterval" , interval );
} }
int InfoPanels::cfgReadUpdateInterval() int InfoPanels::cfgReadUpdateInterval()
{ {
KGlobal::config()->setGroup("ShowWidget"); TDEGlobal::config()->setGroup("ShowWidget");
return KGlobal::config()->readNumEntry("UpdateInterval" , 5 ); return TDEGlobal::config()->readNumEntry("UpdateInterval" , 5 );
} }
void InfoPanels::readUpdateInterval() void InfoPanels::readUpdateInterval()

@ -18,8 +18,8 @@
#ifndef INFOPANELS_H #ifndef INFOPANELS_H
#define INFOPANELS_H #define INFOPANELS_H
#include <qtimer.h> #include <ntqtimer.h>
#include <kglobal.h> #include <tdeglobal.h>
#include "panelsgroup.h" #include "panelsgroup.h"
#include "cpupanel.h" #include "cpupanel.h"
@ -36,7 +36,7 @@ class InfoPanels : public PanelsGroup {
Q_OBJECT Q_OBJECT
public: public:
InfoPanels(QWidget *panelsWidget, QObject *parent=0, const char *name=0); InfoPanels(TQWidget *panelsWidget, TQObject *parent=0, const char *name=0);
~InfoPanels(); ~InfoPanels();
static int cfgReadUpdateInterval(); static int cfgReadUpdateInterval();
@ -53,8 +53,8 @@ protected slots:
private: private:
int timerPanelCount; int timerPanelCount;
QTimer *timer; TQTimer *timer;
QWidget *widget; TQWidget *widget;
void readUpdateInterval(); void readUpdateInterval();
void timerConnect(Panel *display); void timerConnect(Panel *display);

@ -4,18 +4,18 @@
#include "ksensors.h" #include "ksensors.h"
#include <qlabel.h> #include <ntqlabel.h>
#include <kmainwindow.h> #include <tdemainwindow.h>
#include <klocale.h> #include <tdelocale.h>
ksensors::ksensors() ksensors::ksensors()
: KMainWindow( 0, "ksensors" ) : TDEMainWindow( 0, "ksensors" )
{ {
// set the shell's ui resource file // set the shell's ui resource file
setXMLFile("ksensorsui.rc"); setXMLFile("ksensorsui.rc");
new QLabel( "Hello World", this, "hello label" ); new TQLabel( "Hello World", this, "hello label" );
} }
ksensors::~ksensors() ksensors::~ksensors()

@ -9,14 +9,14 @@
#include <config.h> #include <config.h>
#endif #endif
#include <kmainwindow.h> #include <tdemainwindow.h>
/** /**
* @short Application Main Window * @short Application Main Window
* @author noname <s@s.org> * @author noname <s@s.org>
* @version 0.1 * @version 0.1
*/ */
class ksensors : public KMainWindow class ksensors : public TDEMainWindow
{ {
Q_OBJECT Q_OBJECT
public: public:

@ -17,18 +17,18 @@
#include "ksensorscfg.h" #include "ksensorscfg.h"
#include <qvariant.h> #include <ntqvariant.h>
#include <qframe.h> #include <ntqframe.h>
#include <qlayout.h> #include <ntqlayout.h>
#include <qlabel.h> #include <ntqlabel.h>
#include <qtooltip.h> #include <ntqtooltip.h>
#include <qwhatsthis.h> #include <ntqwhatsthis.h>
#include <qimage.h> #include <ntqimage.h>
#include <qpixmap.h> #include <ntqpixmap.h>
#include <kiconloader.h> #include <kiconloader.h>
#include <klocale.h> #include <tdelocale.h>
#include <kaboutdata.h> #include <tdeaboutdata.h>
#include <kdialogbase.h> #include <kdialogbase.h>
#include <kuniqueapp.h> #include <kuniqueapp.h>
@ -39,7 +39,7 @@
#include "lmsensorscfg.h" #include "lmsensorscfg.h"
#include "aboutcfgdesign.h" #include "aboutcfgdesign.h"
#define Icon(x) KGlobal::instance()->iconLoader()->loadIcon( x, KIcon::NoGroup, KIcon::SizeMedium ) #define Icon(x) TDEGlobal::instance()->iconLoader()->loadIcon( x, TDEIcon::NoGroup, TDEIcon::SizeMedium )
KSensorsCfg::KSensorsCfg(LMSensors *lsensors, const char *name) KSensorsCfg::KSensorsCfg(LMSensors *lsensors, const char *name)
: KDialogBase(IconList, name, Apply|Close, Close ) : KDialogBase(IconList, name, Apply|Close, Close )
@ -47,27 +47,27 @@ KSensorsCfg::KSensorsCfg(LMSensors *lsensors, const char *name)
sensors= lsensors; sensors= lsensors;
//resize( 558, 370 ); //resize( 558, 370 );
setSizePolicy(QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum)); setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum));
setCaption( i18n("KSensors Configuration") ); setCaption( i18n("KSensors Configuration") );
QFrame *page; TQFrame *page;
QVBoxLayout *lay; TQVBoxLayout *lay;
page = addPage( i18n("Global settings"), i18n("Global settings"), Icon("earth.png") ); page = addPage( i18n("Global settings"), i18n("Global settings"), Icon("earth.png") );
m_generalcfg = new GeneralCfg(sensors, page); m_generalcfg = new GeneralCfg(sensors, page);
lay = new QVBoxLayout( page ); lay = new TQVBoxLayout( page );
lay->addWidget(m_generalcfg); lay->addWidget(m_generalcfg);
connect(this, SIGNAL(applyClicked()), m_generalcfg, SLOT(slotApplyChanges()) ); connect(this, SIGNAL(applyClicked()), m_generalcfg, SLOT(slotApplyChanges()) );
QObjectList *list= sensors->getSensorsChips(); TQObjectList *list= sensors->getSensorsChips();
if(list) { if(list) {
for(SensorsList *chip= (SensorsList *)list->first(); chip!=0; chip= (SensorsList *)list->next()) for(SensorsList *chip= (SensorsList *)list->first(); chip!=0; chip= (SensorsList *)list->next())
{ {
if(chip->getClass()==Sensor::lmSensor) if(chip->getClass()==Sensor::lmSensor)
{ {
page = addPage( chip->getDescription()+QString(i18n(" sensors")), chip->getDescription()+QString(i18n(" sensors")), Icon("motherboard.png") ); page = addPage( chip->getDescription()+TQString(i18n(" sensors")), chip->getDescription()+TQString(i18n(" sensors")), Icon("motherboard.png") );
cfgWidget = new LMSensorsCfg(chip, page); cfgWidget = new LMSensorsCfg(chip, page);
lay = new QVBoxLayout( page ); lay = new TQVBoxLayout( page );
lay->addWidget(cfgWidget); lay->addWidget(cfgWidget);
connect(this, SIGNAL(applyClicked()), cfgWidget, SLOT(slotApplyChanges()) ); connect(this, SIGNAL(applyClicked()), cfgWidget, SLOT(slotApplyChanges()) );
} }
@ -75,7 +75,7 @@ KSensorsCfg::KSensorsCfg(LMSensors *lsensors, const char *name)
{ {
page = addPage( chip->getDescription(), chip->getDescription(), Icon("harddisk.png") ); page = addPage( chip->getDescription(), chip->getDescription(), Icon("harddisk.png") );
cfgWidget = new LMSensorsCfg(chip, page); cfgWidget = new LMSensorsCfg(chip, page);
lay = new QVBoxLayout( page ); lay = new TQVBoxLayout( page );
lay->addWidget(cfgWidget); lay->addWidget(cfgWidget);
connect(this, SIGNAL(applyClicked()), cfgWidget, SLOT(slotApplyChanges()) ); connect(this, SIGNAL(applyClicked()), cfgWidget, SLOT(slotApplyChanges()) );
} }
@ -84,7 +84,7 @@ KSensorsCfg::KSensorsCfg(LMSensors *lsensors, const char *name)
page = addPage( i18n( "System Information" ), i18n( "System Information" ), Icon("computers.png") ); page = addPage( i18n( "System Information" ), i18n( "System Information" ), Icon("computers.png") );
m_systemcfg = new SystemCfg(sensors, page); m_systemcfg = new SystemCfg(sensors, page);
lay = new QVBoxLayout( page ); lay = new TQVBoxLayout( page );
lay->addWidget(m_systemcfg); lay->addWidget(m_systemcfg);
connect(this, SIGNAL(applyClicked()), m_systemcfg, SLOT(slotApplyChanges()) ); connect(this, SIGNAL(applyClicked()), m_systemcfg, SLOT(slotApplyChanges()) );

@ -18,15 +18,15 @@
#ifndef KSENSORSCFG_H #ifndef KSENSORSCFG_H
#define KSENSORSCFG_H #define KSENSORSCFG_H
#include <qwidget.h> #include <ntqwidget.h>
#include <kdialogbase.h> #include <kdialogbase.h>
//class QVBoxLayout; //class TQVBoxLayout;
//class QHBoxLayout; //class TQHBoxLayout;
//class QGridLayout; //class TQGridLayout;
//class QFrame; //class TQFrame;
//class QIconView; //class TQIconView;
//class QIconViewItem; //class TQIconViewItem;
class KDialogBase; class KDialogBase;
class GeneralCfg; class GeneralCfg;
class LMSensorsCfg; class LMSensorsCfg;
@ -56,12 +56,12 @@ private:
LMSensorsCfg *m_lmsensorscfg; LMSensorsCfg *m_lmsensorscfg;
SystemCfg *m_systemcfg; SystemCfg *m_systemcfg;
QWidget *cfgWidget; TQWidget *cfgWidget;
/* /*
QIconView *IconView; TQIconView *IconView;
QWidget *cfgWidget; TQWidget *cfgWidget;
QHBoxLayout *FormLayout;*/ TQHBoxLayout *FormLayout;*/
}; };
#endif #endif

@ -20,14 +20,14 @@
#include <kapp.h> #include <kapp.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
KSensorsSplash::KSensorsSplash(QWidget *parent, const char *name ) : KSensorsSplash::KSensorsSplash(TQWidget *parent, const char *name ) :
QWidget(parent,name, WStyle_NoBorder | WStyle_Customize | WDestructiveClose | WStyle_StaysOnTop ) TQWidget(parent,name, WStyle_NoBorder | WStyle_Customize | WDestructiveClose | WStyle_StaysOnTop )
{ {
QPixmap pm; TQPixmap pm;
pm.load( locate("appdata", "pics/ksensorssplash.png") ); pm.load( locate("appdata", "pics/ksensorssplash.png") );
setBackgroundPixmap(pm); setBackgroundPixmap(pm);
setGeometry( QApplication::desktop()->width ()/2-pm.width()/2, setGeometry( TQApplication::desktop()->width ()/2-pm.width()/2,
QApplication::desktop()->height()/2-pm.height()/2, TQApplication::desktop()->height()/2-pm.height()/2,
pm.width(),pm.height() pm.width(),pm.height()
); );
show(); show();
@ -37,7 +37,7 @@ KSensorsSplash::KSensorsSplash(QWidget *parent, const char *name ) :
KSensorsSplash::~KSensorsSplash(){ KSensorsSplash::~KSensorsSplash(){
} }
void KSensorsSplash::timerEvent( QTimerEvent * ) void KSensorsSplash::timerEvent( TQTimerEvent * )
{ {
close(); close();
} }

@ -18,24 +18,24 @@
#ifndef KSENSORSSPLASH_H #ifndef KSENSORSSPLASH_H
#define KSENSORSSPLASH_H #define KSENSORSSPLASH_H
#include <qwidget.h> #include <ntqwidget.h>
//#include <qwidget.h> //#include <ntqwidget.h>
/** /**
*@author Miguel Novas *@author Miguel Novas
*/ */
class KSensorsSplash : public QWidget { class KSensorsSplash : public TQWidget {
Q_OBJECT Q_OBJECT
public: public:
KSensorsSplash(QWidget *parent=0, const char *name=0 ); KSensorsSplash(TQWidget *parent=0, const char *name=0 );
~KSensorsSplash(); ~KSensorsSplash();
protected: protected:
void timerEvent( QTimerEvent * ); void timerEvent( TQTimerEvent * );
}; };
#endif #endif

@ -41,7 +41,7 @@ bool LMSensor::init(const sensors_feature **data, int *nr1, int *nr2)
const char* main_name = (*data)->name; const char* main_name = (*data)->name;
feature= (*data)->number; feature= (*data)->number;
char *label = NULL; char *label = NULL;
QString uniqueSensorName; TQString uniqueSensorName;
#if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */ #if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */
uniqueSensorName.sprintf("%s_%d_%d.%s", chip_name->prefix, chip_name->bus, chip_name->addr, main_name); uniqueSensorName.sprintf("%s_%d_%d.%s", chip_name->prefix, chip_name->bus, chip_name->addr, main_name);
@ -108,7 +108,7 @@ bool LMSensor::init(const sensors_feature **data, int *nr1, int *nr2)
sensors_get_label(*chip_name,feature,&label); sensors_get_label(*chip_name,feature,&label);
if (label) if (label)
{ {
setDescription(QString(label)); setDescription(TQString(label));
delete label; delete label;
label = NULL; label = NULL;
} }
@ -205,7 +205,7 @@ bool LMSensor::init(const sensors_feature **data, int *nr1, int *nr2)
label = sensors_get_label(chip_name, feature_data); label = sensors_get_label(chip_name, feature_data);
if (label) if (label)
{ {
setDescription(QString(label)); setDescription(TQString(label));
delete label; delete label;
label = NULL; label = NULL;
} }

@ -18,10 +18,10 @@
#ifndef LMSENSOR_H #ifndef LMSENSOR_H
#define LMSENSOR_H #define LMSENSOR_H
#include <qobject.h> #include <ntqobject.h>
#include <kconfig.h> #include <tdeconfig.h>
#include <qstring.h> #include <ntqstring.h>
#include <qcstring.h> #include <ntqcstring.h>
#include <sensors/sensors.h> #include <sensors/sensors.h>
#include "sensor.h" #include "sensor.h"
@ -62,7 +62,7 @@ private:
int feature; int feature;
SensorType type; SensorType type;
QString description; TQString description;
double val; double val;
double valPrevious; double valPrevious;
double compensation; double compensation;

@ -16,11 +16,11 @@
***************************************************************************/ ***************************************************************************/
#include <qpixmap.h> #include <ntqpixmap.h>
#include <kstddirs.h> #include <kstddirs.h>
#include <klocale.h> #include <tdelocale.h>
#include <kconfig.h> #include <tdeconfig.h>
#include <kiconloader.h> #include <kiconloader.h>
#include "lmsensordockpanel.h" #include "lmsensordockpanel.h"
@ -70,14 +70,14 @@ void LMSensorDockPanel::updateConfig()
setValue(sensor->getValue()); setValue(sensor->getValue());
} }
void LMSensorDockPanel::paintEvent ( QPaintEvent *e ) void LMSensorDockPanel::paintEvent ( TQPaintEvent *e )
{ {
if(sensor) { if(sensor) {
int w= width(); int w= width();
int h= height(); int h= height();
QPainter painter(this); TQPainter painter(this);
QColor color= sensor->getAlarm() ? colorAlarm : colorNormal; TQColor color= sensor->getAlarm() ? colorAlarm : colorNormal;
QColor colorShadow= color.dark(200); TQColor colorShadow= color.dark(200);
painter.setPen(color); painter.setPen(color);
painter.drawLine(2, 2 , w-2,2 ); painter.drawLine(2, 2 , w-2,2 );
painter.drawLine(2, h-3, w-2,h-3); painter.drawLine(2, h-3, w-2,h-3);
@ -85,21 +85,21 @@ void LMSensorDockPanel::paintEvent ( QPaintEvent *e )
painter.drawLine(3, 3 , w-3,3 ); painter.drawLine(3, 3 , w-3,3 );
painter.drawLine(3, h-4, w-3,h-4); painter.drawLine(3, h-4, w-3,h-4);
if(sensor->getType()==Sensor::lmTemp) { if(sensor->getType()==Sensor::lmTemp) {
QLcd::draw(&painter,4,6,w-6, h-12,strValue.latin1(),QLcd::drawShadow,&color,&colorShadow); TQLcd::draw(&painter,4,6,w-6, h-12,strValue.latin1(),TQLcd::drawShadow,&color,&colorShadow);
} else { } else {
QLcd::draw(&painter,1,7,w-1, h-14,strValue.latin1(),QLcd::drawNumber|QLcd::alignCenter|QLcd::drawShadow,&color,&colorShadow); TQLcd::draw(&painter,1,7,w-1, h-14,strValue.latin1(),TQLcd::drawNumber|TQLcd::alignCenter|TQLcd::drawShadow,&color,&colorShadow);
} }
} else { } else {
KSystemTray::paintEvent(e); KSystemTray::paintEvent(e);
} }
} }
void LMSensorDockPanel::mousePressEvent ( QMouseEvent *e ) void LMSensorDockPanel::mousePressEvent ( TQMouseEvent *e )
{ {
emit mouseEvent(e); emit mouseEvent(e);
} }
void LMSensorDockPanel::mouseReleaseEvent ( QMouseEvent *e ) void LMSensorDockPanel::mouseReleaseEvent ( TQMouseEvent *e )
{ {
emit mouseEvent(e); emit mouseEvent(e);
} }
@ -107,39 +107,39 @@ void LMSensorDockPanel::mouseReleaseEvent ( QMouseEvent *e )
//*****************************************************************+ //*****************************************************************+
void LMSensorDockPanel::writeColorAlarm(const char *name, const QColor &color) void LMSensorDockPanel::writeColorAlarm(const char *name, const TQColor &color)
{ {
KGlobal::config()->setGroup(name); TDEGlobal::config()->setGroup(name);
KGlobal::config()->writeEntry("colorAlarm",color); TDEGlobal::config()->writeEntry("colorAlarm",color);
} }
void LMSensorDockPanel::writeColorNormal(const char *name,const QColor &color) void LMSensorDockPanel::writeColorNormal(const char *name,const TQColor &color)
{ {
KGlobal::config()->setGroup(name); TDEGlobal::config()->setGroup(name);
KGlobal::config()->writeEntry("colorNormal",color); TDEGlobal::config()->writeEntry("colorNormal",color);
} }
QColor LMSensorDockPanel::readColorAlarm(const char *name) TQColor LMSensorDockPanel::readColorAlarm(const char *name)
{ {
KGlobal::config()->setGroup(name); TDEGlobal::config()->setGroup(name);
return KGlobal::config()->readColorEntry("colorAlarm" , &red ); return TDEGlobal::config()->readColorEntry("colorAlarm" , &red );
} }
QColor LMSensorDockPanel::readColorNormal(const char *name) TQColor LMSensorDockPanel::readColorNormal(const char *name)
{ {
KGlobal::config()->setGroup(name); TDEGlobal::config()->setGroup(name);
return KGlobal::config()->readColorEntry("colorNormal", &darkGreen); return TDEGlobal::config()->readColorEntry("colorNormal", &darkGreen);
} }
void LMSensorDockPanel::writeShowInDock(const char *name, bool fShow) void LMSensorDockPanel::writeShowInDock(const char *name, bool fShow)
{ {
KGlobal::config()->setGroup(name); TDEGlobal::config()->setGroup(name);
KGlobal::config()->writeEntry("showInDock",fShow); TDEGlobal::config()->writeEntry("showInDock",fShow);
} }
bool LMSensorDockPanel::readShowInDock(const char *name) bool LMSensorDockPanel::readShowInDock(const char *name)
{ {
KGlobal::config()->setGroup(name); TDEGlobal::config()->setGroup(name);
return KGlobal::config()->readBoolEntry("showInDock", false); return TDEGlobal::config()->readBoolEntry("showInDock", false);
} }

@ -20,8 +20,8 @@
#include <ksystemtray.h> #include <ksystemtray.h>
#include <kpopupmenu.h> #include <tdepopupmenu.h>
#include <qcolor.h> #include <ntqcolor.h>
#include "qlcddraw.h" #include "qlcddraw.h"
@ -38,12 +38,12 @@ public:
LMSensorDockPanel(Sensor *newSensor=0, const char *name=0); LMSensorDockPanel(Sensor *newSensor=0, const char *name=0);
~LMSensorDockPanel(); ~LMSensorDockPanel();
static void writeColorAlarm (const char *name, const QColor &color); static void writeColorAlarm (const char *name, const TQColor &color);
static void writeColorNormal(const char *name, const QColor &color); static void writeColorNormal(const char *name, const TQColor &color);
static void writeShowInDock (const char *name, bool fShow); static void writeShowInDock (const char *name, bool fShow);
static QColor readColorAlarm (const char *name); static TQColor readColorAlarm (const char *name);
static QColor readColorNormal(const char *name); static TQColor readColorNormal(const char *name);
static bool readShowInDock (const char *name); static bool readShowInDock (const char *name);
public slots: public slots:
@ -53,19 +53,19 @@ public slots:
signals: signals:
void mouseEvent(QMouseEvent *e); void mouseEvent(TQMouseEvent *e);
protected: protected:
void paintEvent ( QPaintEvent * ); void paintEvent ( TQPaintEvent * );
void mousePressEvent ( QMouseEvent * ); void mousePressEvent ( TQMouseEvent * );
void mouseReleaseEvent ( QMouseEvent * ); void mouseReleaseEvent ( TQMouseEvent * );
private: private:
Sensor *sensor; Sensor *sensor;
QString strValue; TQString strValue;
QColor colorNormal,colorAlarm; TQColor colorNormal,colorAlarm;
}; };

@ -17,7 +17,7 @@
#include "lmsensorpanel.h" #include "lmsensorpanel.h"
LMSensorPanel::LMSensorPanel(Sensor *newSensor, QWidget *parent, const char *name ) : Panel(parent,name) LMSensorPanel::LMSensorPanel(Sensor *newSensor, TQWidget *parent, const char *name ) : Panel(parent,name)
{ {
alarm= false; alarm= false;
// //
@ -73,7 +73,7 @@ void LMSensorPanel::updateConfig()
arc->setValueRanges( min - (max-min)/3, max + (max-min)/3 ); arc->setValueRanges( min - (max-min)/3, max + (max-min)/3 );
arc->setValueMinLimit( min,10); arc->setValueMinLimit( min,10);
arc->setValueMaxLimit( max,10); arc->setValueMaxLimit( max,10);
arc->setColorRanges(blue,QColor(0,200,150),blue); arc->setColorRanges(blue,TQColor(0,200,150),blue);
arc->setArrowColor(darkBlue); arc->setArrowColor(darkBlue);
} }
valMask= "%.2fv"; valMask= "%.2fv";
@ -89,7 +89,7 @@ void LMSensorPanel::updateConfig()
void LMSensorPanel::setValue(double value) void LMSensorPanel::setValue(double value)
{ {
QString str; TQString str;
str.sprintf(valMask.latin1(),value); str.sprintf(valMask.latin1(),value);
lcdVal->display(str); lcdVal->display(str);
@ -114,7 +114,7 @@ QString str;
void LMSensorPanel::createTitleWidget() void LMSensorPanel::createTitleWidget()
{ {
lcdDes = new QLCDString(this); lcdDes = new TQLCDString(this);
lcdDes->setNumberDisplay(true); lcdDes->setNumberDisplay(true);
lcdDes->installEventFilter(this); lcdDes->installEventFilter(this);
} }
@ -122,7 +122,7 @@ void LMSensorPanel::createTitleWidget()
void LMSensorPanel::createGraphicWidget() void LMSensorPanel::createGraphicWidget()
{ {
arc = new QDialArc(this); arc = new TQDialArc(this);
arc->installEventFilter(this); arc->installEventFilter(this);
arc->setAngles(180,-180); arc->setAngles(180,-180);
} }
@ -130,14 +130,14 @@ void LMSensorPanel::createGraphicWidget()
void LMSensorPanel::createValueWidget() void LMSensorPanel::createValueWidget()
{ {
lcdVal = new QLCDString(this); lcdVal = new TQLCDString(this);
lcdVal->installEventFilter(this); lcdVal->installEventFilter(this);
lcdVal->setShadow(true); lcdVal->setShadow(true);
lcdVal->setNumberDisplay(sensor->getType()==Sensor::lmVoltage); lcdVal->setNumberDisplay(sensor->getType()==Sensor::lmVoltage);
} }
void LMSensorPanel::resizeEvent ( QResizeEvent *e ) void LMSensorPanel::resizeEvent ( TQResizeEvent *e )
{ {
int w= width(); int w= width();
int h= height(); int h= height();
@ -151,7 +151,7 @@ void LMSensorPanel::resizeEvent ( QResizeEvent *e )
lcdDes->setGeometry( 3 , i2+1, w -6 , h -i2-h/11); lcdDes->setGeometry( 3 , i2+1, w -6 , h -i2-h/11);
} }
void LMSensorPanel::timerEvent( QTimerEvent * ) void LMSensorPanel::timerEvent( TQTimerEvent * )
{ {
if(lcdVal->isVisible()) lcdVal->hide(); if(lcdVal->isVisible()) lcdVal->hide();
else lcdVal->show(); else lcdVal->show();
@ -159,7 +159,7 @@ void LMSensorPanel::timerEvent( QTimerEvent * )
} }
void LMSensorPanel::paletteChange(const QPalette &oldPalette) void LMSensorPanel::paletteChange(const TQPalette &oldPalette)
{ {
lcdDes->setForeColor(getColorTitle()); lcdDes->setForeColor(getColorTitle());
lcdVal->setForeColor(getColorValue()); lcdVal->setForeColor(getColorValue());

@ -18,7 +18,7 @@
#ifndef LMSENSORPANEL_H #ifndef LMSENSORPANEL_H
#define LMSENSORPANEL_H #define LMSENSORPANEL_H
#include <qstring.h> #include <ntqstring.h>
#include "panel.h" #include "panel.h"
#include "sensor.h" #include "sensor.h"
@ -34,7 +34,7 @@ class LMSensorPanel : public Panel {
Q_OBJECT Q_OBJECT
public: public:
LMSensorPanel(Sensor *newSensor, QWidget *parent=0, const char *name=0); LMSensorPanel(Sensor *newSensor, TQWidget *parent=0, const char *name=0);
~LMSensorPanel(); ~LMSensorPanel();
public slots: public slots:
@ -44,22 +44,22 @@ public slots:
protected: protected:
void resizeEvent ( QResizeEvent * ); void resizeEvent ( TQResizeEvent * );
void createTitleWidget(); void createTitleWidget();
void createGraphicWidget(); void createGraphicWidget();
void createValueWidget(); void createValueWidget();
void timerEvent( QTimerEvent * ); void timerEvent( TQTimerEvent * );
void paletteChange(const QPalette &oldPalette); void paletteChange(const TQPalette &oldPalette);
private: private:
Sensor *sensor; Sensor *sensor;
QDialArc *arc; TQDialArc *arc;
QLCDString *lcdDes; TQLCDString *lcdDes;
QLCDString *lcdVal; TQLCDString *lcdVal;
QString valMask; TQString valMask;
bool alarm; bool alarm;
}; };

@ -21,8 +21,8 @@
#include <string.h> #include <string.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <qstrlist.h> #include <ntqstrlist.h>
#include <qobjectlist.h> #include <ntqobjectlist.h>
#include "lmsensors.h" #include "lmsensors.h"
@ -30,8 +30,8 @@
// Public methods // Public methods
//**************************************************************************** //****************************************************************************
LMSensors::LMSensors(QObject *parent, const char * name) LMSensors::LMSensors(TQObject *parent, const char * name)
: QObject(parent,name) : TQObject(parent,name)
{ {
if(initSensors()) createLMSensors(); if(initSensors()) createLMSensors();
createI8KSensors(); createI8KSensors();
@ -48,7 +48,7 @@ bool LMSensors::initSensors()
#if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */ #if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */
FILE *fp=fopen("/etc/sensors.conf","r"); FILE *fp=fopen("/etc/sensors.conf","r");
if(!fp) { if(!fp) {
qWarning("KSensors error: /etc/sensors.conf not found !"); tqWarning("KSensors error: /etc/sensors.conf not found !");
return false; return false;
} }
#else #else
@ -56,7 +56,7 @@ bool LMSensors::initSensors()
#endif #endif
int err= sensors_init(fp); int err= sensors_init(fp);
if(err) { if(err) {
qWarning("KSensors error: sensors_init fail, error code %d",err); tqWarning("KSensors error: sensors_init fail, error code %d",err);
return false; return false;
} }
#if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */ #if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */
@ -115,7 +115,7 @@ const sensors_feature_data *sensor_data;
void LMSensors::setMonitorized(bool enable) void LMSensors::setMonitorized(bool enable)
{ {
QObjectList *list= getSensorsChips(); TQObjectList *list= getSensorsChips();
if(list) if(list)
for(LMSensorsChip *sensor=(LMSensorsChip*)list->first(); sensor!=0; sensor= (LMSensorsChip *)list->next()) for(LMSensorsChip *sensor=(LMSensorsChip*)list->first(); sensor!=0; sensor= (LMSensorsChip *)list->next())
sensor->setMonitorized(enable); sensor->setMonitorized(enable);
@ -132,7 +132,7 @@ Sensor *LMSensors::getSensor(const char *name)
return sensor; return sensor;
} }
void LMSensors::childEvent( QChildEvent *e ) void LMSensors::childEvent( TQChildEvent *e )
{ {
if(e->inserted()) { if(e->inserted()) {
connect((SensorsList *)e->child(),SIGNAL(valueChanged(Sensor *)) ,this,SIGNAL(valueChanged(Sensor *))); connect((SensorsList *)e->child(),SIGNAL(valueChanged(Sensor *)) ,this,SIGNAL(valueChanged(Sensor *)));

@ -18,10 +18,10 @@
#ifndef LMSENSORS_H #ifndef LMSENSORS_H
#define LMSENSORS_H #define LMSENSORS_H
#include <qobject.h> #include <ntqobject.h>
#include <qobjectlist.h> #include <ntqobjectlist.h>
#include <kconfig.h> #include <tdeconfig.h>
#include <qstringlist.h> #include <ntqstringlist.h>
#include <sensors/sensors.h> #include <sensors/sensors.h>
@ -32,7 +32,7 @@
*@author Michael *@author Michael
*/ */
class LMSensors : public QObject class LMSensors : public TQObject
{ {
Q_OBJECT Q_OBJECT
@ -40,12 +40,12 @@ Q_OBJECT
public: public:
LMSensors(QObject *parent=0, const char *name=0); LMSensors(TQObject *parent=0, const char *name=0);
~LMSensors(); ~LMSensors();
void setMonitorized(bool enable); void setMonitorized(bool enable);
QObjectList *getSensorsChips() { return (QObjectList *)children(); }; TQObjectList *getSensorsChips() { return (TQObjectList *)children(); };
SensorsList *getSensorsChip(int index) { return children() ? (SensorsList *)((QObjectList *)children())->at(index) : 0; } SensorsList *getSensorsChip(int index) { return children() ? (SensorsList *)((TQObjectList *)children())->at(index) : 0; }
SensorsList *getSensorsChip(const char *name) { return (SensorsList *)child(name); } SensorsList *getSensorsChip(const char *name) { return (SensorsList *)child(name); }
int count() { return children() ? children()->count() : 0; } int count() { return children() ? children()->count() : 0; }
Sensor *getSensor(const char *name); Sensor *getSensor(const char *name);
@ -63,7 +63,7 @@ private:
void createLMSensors(); void createLMSensors();
void createHDSensors(); void createHDSensors();
void createI8KSensors(); void createI8KSensors();
void childEvent ( QChildEvent *e ); void childEvent ( TQChildEvent *e );
#if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */ #if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */
static int existSensor(const sensors_chip_name *chip_name,const char *sensor_name); static int existSensor(const sensors_chip_name *chip_name,const char *sensor_name);

@ -18,8 +18,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <qstring.h> #include <ntqstring.h>
#include <kglobal.h> #include <tdeglobal.h>
#include <kprocess.h> #include <kprocess.h>
#include <kaudioplayer.h> #include <kaudioplayer.h>
#include "lmsensorsalarms.h" #include "lmsensorsalarms.h"
@ -27,8 +27,8 @@
LMSensorsAlarms::LMSensorsAlarms(LMSensors *sensors, QObject *parent, const char *name) LMSensorsAlarms::LMSensorsAlarms(LMSensors *sensors, TQObject *parent, const char *name)
: QObject(parent,name) : TQObject(parent,name)
{ {
sensorCount= 0; sensorCount= 0;
soundPlay = ""; soundPlay = "";
@ -82,7 +82,7 @@ void LMSensorsAlarms::setValueChanged(Sensor *sensor)
runSensorCommand( runSensorCommand(
(const char *)sensor->getDescription(), (const char *)sensor->getDescription(),
(const char *)QString::number(sensor->getValue()), (const char *)TQString::number(sensor->getValue()),
(const char *)readAlarmCommand(sensor->name()) (const char *)readAlarmCommand(sensor->name())
); );
break; break;
@ -97,7 +97,7 @@ void LMSensorsAlarms::setValueChanged(Sensor *sensor)
} }
} }
void LMSensorsAlarms::timerEvent( QTimerEvent * ) void LMSensorsAlarms::timerEvent( TQTimerEvent * )
{ {
KAudioPlayer::play(soundPlay); KAudioPlayer::play(soundPlay);
} }
@ -106,40 +106,40 @@ void LMSensorsAlarms::timerEvent( QTimerEvent * )
int LMSensorsAlarms::readAlarm(const char *name) int LMSensorsAlarms::readAlarm(const char *name)
{ {
KGlobal::config()->setGroup(name); TDEGlobal::config()->setGroup(name);
return KGlobal::config()->readNumEntry("Alarm",acNothing); return TDEGlobal::config()->readNumEntry("Alarm",acNothing);
} }
void LMSensorsAlarms::writeAlarm(const char *name, int alarm) void LMSensorsAlarms::writeAlarm(const char *name, int alarm)
{ {
KGlobal::config()->setGroup(name); TDEGlobal::config()->setGroup(name);
KGlobal::config()->writeEntry("Alarm",alarm); TDEGlobal::config()->writeEntry("Alarm",alarm);
} }
QString LMSensorsAlarms::readAlarmCommand(const char *name) TQString LMSensorsAlarms::readAlarmCommand(const char *name)
{ {
KGlobal::config()->setGroup(name); TDEGlobal::config()->setGroup(name);
return KGlobal::config()->readEntry("AlarmCommand", ""); return TDEGlobal::config()->readEntry("AlarmCommand", "");
} }
void LMSensorsAlarms::writeAlarmCommand(const char *name, const QString &cmd) void LMSensorsAlarms::writeAlarmCommand(const char *name, const TQString &cmd)
{ {
KGlobal::config()->setGroup(name); TDEGlobal::config()->setGroup(name);
KGlobal::config()->writeEntry("AlarmCommand", cmd); TDEGlobal::config()->writeEntry("AlarmCommand", cmd);
} }
QString LMSensorsAlarms::readAlarmSound(const char *name) TQString LMSensorsAlarms::readAlarmSound(const char *name)
{ {
KGlobal::config()->setGroup(name); TDEGlobal::config()->setGroup(name);
return KGlobal::config()->readEntry("AlarmSound", "ksensors_alert.wav"); return TDEGlobal::config()->readEntry("AlarmSound", "ksensors_alert.wav");
} }
void LMSensorsAlarms::writeAlarmSound(const char *name, const QString &cmd) void LMSensorsAlarms::writeAlarmSound(const char *name, const TQString &cmd)
{ {
KGlobal::config()->setGroup(name); TDEGlobal::config()->setGroup(name);
KGlobal::config()->writeEntry("AlarmSound", cmd); TDEGlobal::config()->writeEntry("AlarmSound", cmd);
} }

@ -18,29 +18,29 @@
#ifndef LMSENSORSALARMS_H #ifndef LMSENSORSALARMS_H
#define LMSENSORSALARMS_H #define LMSENSORSALARMS_H
#include <qobject.h> #include <ntqobject.h>
#include <qstring.h> #include <ntqstring.h>
#include "lmsensors.h" #include "lmsensors.h"
/** /**
*@author Miguel Novas *@author Miguel Novas
*/ */
class LMSensorsAlarms : public QObject { class LMSensorsAlarms : public TQObject {
Q_OBJECT Q_OBJECT
public: public:
enum Actions { acNothing, acSound, acCommand }; enum Actions { acNothing, acSound, acCommand };
LMSensorsAlarms(LMSensors *sensors, QObject *parent=0, const char *name=0); LMSensorsAlarms(LMSensors *sensors, TQObject *parent=0, const char *name=0);
~LMSensorsAlarms(); ~LMSensorsAlarms();
static int readAlarm(const char *name); static int readAlarm(const char *name);
static QString readAlarmSound(const char *name); static TQString readAlarmSound(const char *name);
static void writeAlarm(const char *name, int alarm); static void writeAlarm(const char *name, int alarm);
static QString readAlarmCommand(const char *name); static TQString readAlarmCommand(const char *name);
static void writeAlarmCommand(const char *name, const QString &cmd); static void writeAlarmCommand(const char *name, const TQString &cmd);
static void writeAlarmSound(const char *name, const QString &cmd); static void writeAlarmSound(const char *name, const TQString &cmd);
static void runSensorCommand(const char *name,const char *value, const char *cmd); static void runSensorCommand(const char *name,const char *value, const char *cmd);
static void playSound(const char *sound); static void playSound(const char *sound);
@ -51,11 +51,11 @@ public slots:
private: private:
int sensorCount; int sensorCount;
QString soundPlay; TQString soundPlay;
static void runCommand(const char *str); static void runCommand(const char *str);
void timerEvent( QTimerEvent * ); void timerEvent( TQTimerEvent * );
}; };
#endif #endif

@ -22,40 +22,40 @@
#include "lmsensordockpanel.h" #include "lmsensordockpanel.h"
#include "lmsensorswidget.h" #include "lmsensorswidget.h"
#include <qcolor.h> #include <ntqcolor.h>
#include <qlistbox.h> #include <ntqlistbox.h>
#include <qlineedit.h> #include <ntqlineedit.h>
#include <qcheckbox.h> #include <ntqcheckbox.h>
#include <qgroupbox.h> #include <ntqgroupbox.h>
#include <qradiobutton.h> #include <ntqradiobutton.h>
#include <qpushbutton.h> #include <ntqpushbutton.h>
#include <qobjectlist.h> #include <ntqobjectlist.h>
#include <qtabwidget.h> #include <ntqtabwidget.h>
#include <qcombobox.h> #include <ntqcombobox.h>
#include <qspinbox.h> #include <ntqspinbox.h>
#include <qlayout.h> #include <ntqlayout.h>
#include <kcolorbutton.h> #include <kcolorbutton.h>
#include <kiconloader.h> #include <kiconloader.h>
#include <klocale.h> #include <tdelocale.h>
#include <kaboutapplication.h> #include <tdeaboutapplication.h>
LMSensorsCfg::LMSensorsCfg(SensorsList *lsensors,QWidget *parent, const char *name) : LMSensorsCfgDesign(parent,name,WDestructiveClose) LMSensorsCfg::LMSensorsCfg(SensorsList *lsensors,TQWidget *parent, const char *name) : LMSensorsCfgDesign(parent,name,WDestructiveClose)
{ {
sensors = lsensors; sensors = lsensors;
curSensor= 0; curSensor= 0;
palPanelCfg= new PaletteCfg( boxPanelPalette ); palPanelCfg= new PaletteCfg( boxPanelPalette );
boxPanelPalette->setColumnLayout(0, Qt::Vertical ); boxPanelPalette->setColumnLayout(0, TQt::Vertical );
boxPanelPalette->layout()->setSpacing( 6 ); boxPanelPalette->layout()->setSpacing( 6 );
boxPanelPalette->layout()->setMargin( 12 ); boxPanelPalette->layout()->setMargin( 12 );
QGridLayout *boxPanelPaletteLayout = new QGridLayout( boxPanelPalette->layout() ); TQGridLayout *boxPanelPaletteLayout = new TQGridLayout( boxPanelPalette->layout() );
boxPanelPaletteLayout->setAlignment( Qt::AlignTop ); boxPanelPaletteLayout->setAlignment( TQt::AlignTop );
boxPanelPaletteLayout->addWidget( palPanelCfg, 0, 0 ); boxPanelPaletteLayout->addWidget( palPanelCfg, 0, 0 );
readSensorsList(); readSensorsList();
connect( MainTab ,SIGNAL(currentChanged(QWidget*)), this, SLOT(slotMainTabPageChanged(QWidget *))); connect( MainTab ,SIGNAL(currentChanged(TQWidget*)), this, SLOT(slotMainTabPageChanged(TQWidget *)));
connect( listSensors ,SIGNAL(highlighted(int)),this,SLOT(slotCurrentSensorChanged(int)) ); connect( listSensors ,SIGNAL(highlighted(int)),this,SLOT(slotCurrentSensorChanged(int)) );
//connect( buttonApply ,SIGNAL(clicked()),this,SLOT(slotApplyChanges())); //connect( buttonApply ,SIGNAL(clicked()),this,SLOT(slotApplyChanges()));
connect( buttonTest ,SIGNAL(clicked()),this,SLOT(slotTestAlarm())); connect( buttonTest ,SIGNAL(clicked()),this,SLOT(slotTestAlarm()));
@ -69,10 +69,10 @@ LMSensorsCfg::~LMSensorsCfg()
void LMSensorsCfg::readSensorsList() void LMSensorsCfg::readSensorsList()
{ {
QObjectList *list= sensors->getSensors(); TQObjectList *list= sensors->getSensors();
if(list) { if(list) {
listSensors->clear(); listSensors->clear();
QPixmap pm; TQPixmap pm;
for(LMSensor *sensor=(LMSensor*)list->first(); sensor!=0; sensor= (LMSensor*)list->next()) { for(LMSensor *sensor=(LMSensor*)list->first(); sensor!=0; sensor= (LMSensor*)list->next()) {
switch(sensor->getType()) { switch(sensor->getType()) {
case LMSensor::lmTemp : pm= UserIcon("thermometer18x18.png"); break; case LMSensor::lmTemp : pm= UserIcon("thermometer18x18.png"); break;
@ -114,7 +114,7 @@ void LMSensorsCfg::readSensorInfo(int index)
editDescription ->setText(curSensor->getDescription()); editDescription ->setText(curSensor->getDescription());
QString str; TQString str;
const char *mask= curSensor->getType()==LMSensor::lmVoltage ? "%.2lf":"%.0lf"; const char *mask= curSensor->getType()==LMSensor::lmVoltage ? "%.2lf":"%.0lf";
@ -130,8 +130,8 @@ void LMSensorsCfg::readSensorInfo(int index)
str.sprintf(mask, curSensor->getValueMax()); str.sprintf(mask, curSensor->getValueMax());
editMaxValue->setEditText(str); editMaxValue->setEditText(str);
editSum->setText(QString::number(curSensor->getCompensation())); editSum->setText(TQString::number(curSensor->getCompensation()));
editMul->setText(QString::number(curSensor->getMultiplicator())); editMul->setText(TQString::number(curSensor->getMultiplicator()));
//checkShowInDock->setEnabled( curSensor->getType()==LMSensor::lmTemp ); //checkShowInDock->setEnabled( curSensor->getType()==LMSensor::lmTemp );
//GroupBoxColorDock->setEnabled( curSensor->getType()==LMSensor::lmTemp ); //GroupBoxColorDock->setEnabled( curSensor->getType()==LMSensor::lmTemp );
@ -171,7 +171,7 @@ void LMSensorsCfg::applySensorChanges()
{ {
if(!curSensor) return; if(!curSensor) return;
const QString sName(curSensor->name()); const TQString sName(curSensor->name());
// Apply sensor configuration // Apply sensor configuration
curSensor->setDescription(editDescription->text()); curSensor->setDescription(editDescription->text());
curSensor->setCompensation(editSum->text().toDouble()); curSensor->setCompensation(editSum->text().toDouble());
@ -195,7 +195,7 @@ void LMSensorsCfg::applySensorChanges()
// //
// Apply alarms configuration // Apply alarms configuration
if( CheckAllSensors->isChecked() ) { if( CheckAllSensors->isChecked() ) {
QObjectList *list= sensors->getSensors(); TQObjectList *list= sensors->getSensors();
for(Sensor *sensor=(Sensor*)list->first(); sensor!=0; sensor= (Sensor*)list->next()) { for(Sensor *sensor=(Sensor*)list->first(); sensor!=0; sensor= (Sensor*)list->next()) {
applySensorAlarmConfig(sensor); applySensorAlarmConfig(sensor);
sensor->writeConfig(); sensor->writeConfig();
@ -266,7 +266,7 @@ void LMSensorsCfg::slotTestAlarm()
} }
} }
void LMSensorsCfg::slotMainTabPageChanged(QWidget *) void LMSensorsCfg::slotMainTabPageChanged(TQWidget *)
{ {
switch(MainTab->currentPageIndex()) switch(MainTab->currentPageIndex())
{ {
@ -277,8 +277,8 @@ void LMSensorsCfg::slotMainTabPageChanged(QWidget *)
void LMSensorsCfg::slotComboMinMaxSelected(int index) void LMSensorsCfg::slotComboMinMaxSelected(int index)
{ {
QComboBox *combo = (QComboBox*)sender(); TQComboBox *combo = (TQComboBox*)sender();
QString str = combo->text(index); TQString str = combo->text(index);
double percent= str.left(str.length()-1).toDouble(); double percent= str.left(str.length()-1).toDouble();
double value = editIdealValue->text().toDouble(); double value = editIdealValue->text().toDouble();

@ -18,7 +18,7 @@
#ifndef LMSENSORSCFG_H #ifndef LMSENSORSCFG_H
#define LMSENSORSCFG_H #define LMSENSORSCFG_H
//#include <qobject.h> //#include <ntqobject.h>
#include "sensorslist.h" #include "sensorslist.h"
#include "lmsensorscfgdesign.h" #include "lmsensorscfgdesign.h"
@ -31,7 +31,7 @@
class LMSensorsCfg : public LMSensorsCfgDesign { class LMSensorsCfg : public LMSensorsCfgDesign {
Q_OBJECT Q_OBJECT
public: public:
LMSensorsCfg(SensorsList *lsensors,QWidget *parent=0, const char *name=0); LMSensorsCfg(SensorsList *lsensors,TQWidget *parent=0, const char *name=0);
~LMSensorsCfg(); ~LMSensorsCfg();
protected slots: protected slots:
@ -41,7 +41,7 @@ protected slots:
void slotTestAlarm(); void slotTestAlarm();
void slotCurrentSensorChanged(int index); void slotCurrentSensorChanged(int index);
void slotMainTabPageChanged(QWidget *); void slotMainTabPageChanged(TQWidget *);
void slotComboMinMaxSelected(int index); void slotComboMinMaxSelected(int index);
public slots: public slots:

@ -1,4 +1,4 @@
#include <klocale.h> #include <tdelocale.h>
/**************************************************************************** /****************************************************************************
** Form implementation generated from reading ui file './lmsensorscfgdesign.ui' ** Form implementation generated from reading ui file './lmsensorscfgdesign.ui'
** **
@ -10,71 +10,71 @@
#include "lmsensorscfgdesign.h" #include "lmsensorscfgdesign.h"
#include <qvariant.h> #include <ntqvariant.h>
#include <qpushbutton.h> #include <ntqpushbutton.h>
#include <qtabwidget.h> #include <ntqtabwidget.h>
#include <qgroupbox.h> #include <ntqgroupbox.h>
#include <qlabel.h> #include <ntqlabel.h>
#include <qlineedit.h> #include <ntqlineedit.h>
#include <qcombobox.h> #include <ntqcombobox.h>
#include <qcheckbox.h> #include <ntqcheckbox.h>
#include <kcolorbutton.h> #include <kcolorbutton.h>
#include <qframe.h> #include <ntqframe.h>
#include <qradiobutton.h> #include <ntqradiobutton.h>
#include <qlistbox.h> #include <ntqlistbox.h>
#include <qbuttongroup.h> #include <ntqbuttongroup.h>
#include <qspinbox.h> #include <ntqspinbox.h>
#include <qslider.h> #include <ntqslider.h>
#include <qlayout.h> #include <ntqlayout.h>
#include <qtooltip.h> #include <ntqtooltip.h>
#include <qwhatsthis.h> #include <ntqwhatsthis.h>
/* /*
* Constructs a LMSensorsCfgDesign as a child of 'parent', with the * Constructs a LMSensorsCfgDesign as a child of 'parent', with the
* name 'name' and widget flags set to 'f'. * name 'name' and widget flags set to 'f'.
*/ */
LMSensorsCfgDesign::LMSensorsCfgDesign( QWidget* parent, const char* name, WFlags fl ) LMSensorsCfgDesign::LMSensorsCfgDesign( TQWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl ) : TQWidget( parent, name, fl )
{ {
if ( !name ) if ( !name )
setName( "LMSensorsCfgDesign" ); setName( "LMSensorsCfgDesign" );
setMinimumSize( QSize( 0, 340 ) ); setMinimumSize( TQSize( 0, 340 ) );
LMSensorsCfgDesignLayout = new QGridLayout( this, 1, 1, 8, 4, "LMSensorsCfgDesignLayout"); LMSensorsCfgDesignLayout = new TQGridLayout( this, 1, 1, 8, 4, "LMSensorsCfgDesignLayout");
MainTab = new QTabWidget( this, "MainTab" ); MainTab = new TQTabWidget( this, "MainTab" );
MainTab->setMinimumSize( QSize( 422, 295 ) ); MainTab->setMinimumSize( TQSize( 422, 295 ) );
tab = new QWidget( MainTab, "tab" ); tab = new TQWidget( MainTab, "tab" );
tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout"); tabLayout = new TQGridLayout( tab, 1, 1, 11, 6, "tabLayout");
SensorsTab = new QTabWidget( tab, "SensorsTab" ); SensorsTab = new TQTabWidget( tab, "SensorsTab" );
SensorsTab->setMinimumSize( QSize( 272, 276 ) ); SensorsTab->setMinimumSize( TQSize( 272, 276 ) );
SensorsTab->setTabShape( QTabWidget::Rounded ); SensorsTab->setTabShape( TQTabWidget::Rounded );
SensorsTab->setMargin( 0 ); SensorsTab->setMargin( 0 );
tab_2 = new QWidget( SensorsTab, "tab_2" ); tab_2 = new TQWidget( SensorsTab, "tab_2" );
tabLayout_2 = new QGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2");
GroupBoxDes = new QGroupBox( tab_2, "GroupBoxDes" ); GroupBoxDes = new TQGroupBox( tab_2, "GroupBoxDes" );
GroupBoxDes->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)1, 0, 0, GroupBoxDes->sizePolicy().hasHeightForWidth() ) ); GroupBoxDes->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, GroupBoxDes->sizePolicy().hasHeightForWidth() ) );
GroupBoxDes->setColumnLayout(0, Qt::Vertical ); GroupBoxDes->setColumnLayout(0, TQt::Vertical );
GroupBoxDes->layout()->setSpacing( 6 ); GroupBoxDes->layout()->setSpacing( 6 );
GroupBoxDes->layout()->setMargin( 11 ); GroupBoxDes->layout()->setMargin( 11 );
GroupBoxDesLayout = new QGridLayout( GroupBoxDes->layout() ); GroupBoxDesLayout = new TQGridLayout( GroupBoxDes->layout() );
GroupBoxDesLayout->setAlignment( Qt::AlignTop ); GroupBoxDesLayout->setAlignment( TQt::AlignTop );
layout5 = new QHBoxLayout( 0, 0, 6, "layout5"); layout5 = new TQHBoxLayout( 0, 0, 6, "layout5");
pixmapSensor = new QLabel( GroupBoxDes, "pixmapSensor" ); pixmapSensor = new TQLabel( GroupBoxDes, "pixmapSensor" );
pixmapSensor->setScaledContents( TRUE ); pixmapSensor->setScaledContents( TRUE );
layout5->addWidget( pixmapSensor ); layout5->addWidget( pixmapSensor );
layout4 = new QVBoxLayout( 0, 0, 6, "layout4"); layout4 = new TQVBoxLayout( 0, 0, 6, "layout4");
TextLabel2_2 = new QLabel( GroupBoxDes, "TextLabel2_2" ); TextLabel2_2 = new TQLabel( GroupBoxDes, "TextLabel2_2" );
layout4->addWidget( TextLabel2_2 ); layout4->addWidget( TextLabel2_2 );
editDescription = new QLineEdit( GroupBoxDes, "editDescription" ); editDescription = new TQLineEdit( GroupBoxDes, "editDescription" );
layout4->addWidget( editDescription ); layout4->addWidget( editDescription );
layout5->addLayout( layout4 ); layout5->addLayout( layout4 );
@ -82,144 +82,144 @@ LMSensorsCfgDesign::LMSensorsCfgDesign( QWidget* parent, const char* name, WFlag
tabLayout_2->addWidget( GroupBoxDes, 0, 0 ); tabLayout_2->addWidget( GroupBoxDes, 0, 0 );
GroupBox2_2_2 = new QGroupBox( tab_2, "GroupBox2_2_2" ); GroupBox2_2_2 = new TQGroupBox( tab_2, "GroupBox2_2_2" );
GroupBox2_2_2->setFrameShape( QGroupBox::Box ); GroupBox2_2_2->setFrameShape( TQGroupBox::Box );
GroupBox2_2_2->setFrameShadow( QGroupBox::Sunken ); GroupBox2_2_2->setFrameShadow( TQGroupBox::Sunken );
GroupBox2_2_2->setColumnLayout(0, Qt::Vertical ); GroupBox2_2_2->setColumnLayout(0, TQt::Vertical );
GroupBox2_2_2->layout()->setSpacing( 6 ); GroupBox2_2_2->layout()->setSpacing( 6 );
GroupBox2_2_2->layout()->setMargin( 11 ); GroupBox2_2_2->layout()->setMargin( 11 );
GroupBox2_2_2Layout = new QGridLayout( GroupBox2_2_2->layout() ); GroupBox2_2_2Layout = new TQGridLayout( GroupBox2_2_2->layout() );
GroupBox2_2_2Layout->setAlignment( Qt::AlignTop ); GroupBox2_2_2Layout->setAlignment( TQt::AlignTop );
editValue = new QLineEdit( GroupBox2_2_2, "editValue" ); editValue = new TQLineEdit( GroupBox2_2_2, "editValue" );
editValue->setEnabled( FALSE ); editValue->setEnabled( FALSE );
editValue->setAlignment( int( QLineEdit::AlignLeft ) ); editValue->setAlignment( int( TQLineEdit::AlignLeft ) );
editValue->setEdited( TRUE ); editValue->setEdited( TRUE );
GroupBox2_2_2Layout->addWidget( editValue, 1, 0 ); GroupBox2_2_2Layout->addWidget( editValue, 1, 0 );
TextLabel3_2_2_3_2_2_2 = new QLabel( GroupBox2_2_2, "TextLabel3_2_2_3_2_2_2" ); TextLabel3_2_2_3_2_2_2 = new TQLabel( GroupBox2_2_2, "TextLabel3_2_2_3_2_2_2" );
GroupBox2_2_2Layout->addWidget( TextLabel3_2_2_3_2_2_2, 0, 0 ); GroupBox2_2_2Layout->addWidget( TextLabel3_2_2_3_2_2_2, 0, 0 );
TextLabel3_2_4_2_2_2 = new QLabel( GroupBox2_2_2, "TextLabel3_2_4_2_2_2" ); TextLabel3_2_4_2_2_2 = new TQLabel( GroupBox2_2_2, "TextLabel3_2_4_2_2_2" );
TextLabel3_2_4_2_2_2->setScaledContents( FALSE ); TextLabel3_2_4_2_2_2->setScaledContents( FALSE );
GroupBox2_2_2Layout->addWidget( TextLabel3_2_4_2_2_2, 0, 1 ); GroupBox2_2_2Layout->addWidget( TextLabel3_2_4_2_2_2, 0, 1 );
editMaxValue = new QComboBox( FALSE, GroupBox2_2_2, "editMaxValue" ); editMaxValue = new TQComboBox( FALSE, GroupBox2_2_2, "editMaxValue" );
editMaxValue->setEditable( TRUE ); editMaxValue->setEditable( TRUE );
editMaxValue->setSizeLimit( 12 ); editMaxValue->setSizeLimit( 12 );
GroupBox2_2_2Layout->addWidget( editMaxValue, 1, 1 ); GroupBox2_2_2Layout->addWidget( editMaxValue, 1, 1 );
TextLabel1_2_3_2_2 = new QLabel( GroupBox2_2_2, "TextLabel1_2_3_2_2" ); TextLabel1_2_3_2_2 = new TQLabel( GroupBox2_2_2, "TextLabel1_2_3_2_2" );
GroupBox2_2_2Layout->addWidget( TextLabel1_2_3_2_2, 0, 2 ); GroupBox2_2_2Layout->addWidget( TextLabel1_2_3_2_2, 0, 2 );
editMul = new QLineEdit( GroupBox2_2_2, "editMul" ); editMul = new TQLineEdit( GroupBox2_2_2, "editMul" );
GroupBox2_2_2Layout->addWidget( editMul, 1, 2 ); GroupBox2_2_2Layout->addWidget( editMul, 1, 2 );
TextLabel3_2 = new QLabel( GroupBox2_2_2, "TextLabel3_2" ); TextLabel3_2 = new TQLabel( GroupBox2_2_2, "TextLabel3_2" );
GroupBox2_2_2Layout->addWidget( TextLabel3_2, 3, 0 ); GroupBox2_2_2Layout->addWidget( TextLabel3_2, 3, 0 );
TextLabel3_2_3_2_2_2_2 = new QLabel( GroupBox2_2_2, "TextLabel3_2_3_2_2_2_2" ); TextLabel3_2_3_2_2_2_2 = new TQLabel( GroupBox2_2_2, "TextLabel3_2_3_2_2_2_2" );
GroupBox2_2_2Layout->addWidget( TextLabel3_2_3_2_2_2_2, 3, 1 ); GroupBox2_2_2Layout->addWidget( TextLabel3_2_3_2_2_2_2, 3, 1 );
TextLabel1_3_3_2 = new QLabel( GroupBox2_2_2, "TextLabel1_3_3_2" ); TextLabel1_3_3_2 = new TQLabel( GroupBox2_2_2, "TextLabel1_3_3_2" );
GroupBox2_2_2Layout->addWidget( TextLabel1_3_3_2, 3, 2 ); GroupBox2_2_2Layout->addWidget( TextLabel1_3_3_2, 3, 2 );
editIdealValue = new QLineEdit( GroupBox2_2_2, "editIdealValue" ); editIdealValue = new TQLineEdit( GroupBox2_2_2, "editIdealValue" );
editIdealValue->setAlignment( int( QLineEdit::AlignLeft ) ); editIdealValue->setAlignment( int( TQLineEdit::AlignLeft ) );
GroupBox2_2_2Layout->addWidget( editIdealValue, 4, 0 ); GroupBox2_2_2Layout->addWidget( editIdealValue, 4, 0 );
editMinValue = new QComboBox( FALSE, GroupBox2_2_2, "editMinValue" ); editMinValue = new TQComboBox( FALSE, GroupBox2_2_2, "editMinValue" );
editMinValue->setEditable( TRUE ); editMinValue->setEditable( TRUE );
editMinValue->setSizeLimit( 12 ); editMinValue->setSizeLimit( 12 );
GroupBox2_2_2Layout->addWidget( editMinValue, 4, 1 ); GroupBox2_2_2Layout->addWidget( editMinValue, 4, 1 );
editSum = new QLineEdit( GroupBox2_2_2, "editSum" ); editSum = new TQLineEdit( GroupBox2_2_2, "editSum" );
GroupBox2_2_2Layout->addWidget( editSum, 4, 2 ); GroupBox2_2_2Layout->addWidget( editSum, 4, 2 );
spacer12 = new QSpacerItem( 21, 21, QSizePolicy::Minimum, QSizePolicy::Expanding ); spacer12 = new TQSpacerItem( 21, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
GroupBox2_2_2Layout->addItem( spacer12, 5, 1 ); GroupBox2_2_2Layout->addItem( spacer12, 5, 1 );
spacer10 = new QSpacerItem( 20, 5, QSizePolicy::Minimum, QSizePolicy::Fixed ); spacer10 = new TQSpacerItem( 20, 5, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
GroupBox2_2_2Layout->addItem( spacer10, 2, 1 ); GroupBox2_2_2Layout->addItem( spacer10, 2, 1 );
tabLayout_2->addWidget( GroupBox2_2_2, 1, 0 ); tabLayout_2->addWidget( GroupBox2_2_2, 1, 0 );
SensorsTab->insertTab( tab_2, QString("") ); SensorsTab->insertTab( tab_2, TQString("") );
tab_3 = new QWidget( SensorsTab, "tab_3" ); tab_3 = new TQWidget( SensorsTab, "tab_3" );
tabLayout_3 = new QVBoxLayout( tab_3, 11, 6, "tabLayout_3"); tabLayout_3 = new TQVBoxLayout( tab_3, 11, 6, "tabLayout_3");
GroupBox13 = new QGroupBox( tab_3, "GroupBox13" ); GroupBox13 = new TQGroupBox( tab_3, "GroupBox13" );
GroupBox13->setMinimumSize( QSize( 0, 50 ) ); GroupBox13->setMinimumSize( TQSize( 0, 50 ) );
GroupBox13->setMaximumSize( QSize( 32767, 50 ) ); GroupBox13->setMaximumSize( TQSize( 32767, 50 ) );
GroupBox13->setColumnLayout(0, Qt::Vertical ); GroupBox13->setColumnLayout(0, TQt::Vertical );
GroupBox13->layout()->setSpacing( 6 ); GroupBox13->layout()->setSpacing( 6 );
GroupBox13->layout()->setMargin( 11 ); GroupBox13->layout()->setMargin( 11 );
GroupBox13Layout = new QGridLayout( GroupBox13->layout() ); GroupBox13Layout = new TQGridLayout( GroupBox13->layout() );
GroupBox13Layout->setAlignment( Qt::AlignTop ); GroupBox13Layout->setAlignment( TQt::AlignTop );
checkShow = new QCheckBox( GroupBox13, "checkShow" ); checkShow = new TQCheckBox( GroupBox13, "checkShow" );
checkShow->setCursor( QCursor( 0 ) ); checkShow->setCursor( TQCursor( 0 ) );
GroupBox13Layout->addWidget( checkShow, 0, 0 ); GroupBox13Layout->addWidget( checkShow, 0, 0 );
tabLayout_3->addWidget( GroupBox13 ); tabLayout_3->addWidget( GroupBox13 );
boxPanelPalette = new QGroupBox( tab_3, "boxPanelPalette" ); boxPanelPalette = new TQGroupBox( tab_3, "boxPanelPalette" );
boxPanelPalette->setMinimumSize( QSize( 0, 90 ) ); boxPanelPalette->setMinimumSize( TQSize( 0, 90 ) );
tabLayout_3->addWidget( boxPanelPalette ); tabLayout_3->addWidget( boxPanelPalette );
Spacer4_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Spacer4_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
tabLayout_3->addItem( Spacer4_2 ); tabLayout_3->addItem( Spacer4_2 );
SensorsTab->insertTab( tab_3, QString("") ); SensorsTab->insertTab( tab_3, TQString("") );
tab_4 = new QWidget( SensorsTab, "tab_4" ); tab_4 = new TQWidget( SensorsTab, "tab_4" );
tabLayout_4 = new QGridLayout( tab_4, 1, 1, 11, 6, "tabLayout_4"); tabLayout_4 = new TQGridLayout( tab_4, 1, 1, 11, 6, "tabLayout_4");
GroupBox14 = new QGroupBox( tab_4, "GroupBox14" ); GroupBox14 = new TQGroupBox( tab_4, "GroupBox14" );
GroupBox14->setMinimumSize( QSize( 0, 50 ) ); GroupBox14->setMinimumSize( TQSize( 0, 50 ) );
GroupBox14->setMaximumSize( QSize( 32767, 50 ) ); GroupBox14->setMaximumSize( TQSize( 32767, 50 ) );
GroupBox14->setColumnLayout(0, Qt::Vertical ); GroupBox14->setColumnLayout(0, TQt::Vertical );
GroupBox14->layout()->setSpacing( 6 ); GroupBox14->layout()->setSpacing( 6 );
GroupBox14->layout()->setMargin( 11 ); GroupBox14->layout()->setMargin( 11 );
GroupBox14Layout = new QGridLayout( GroupBox14->layout() ); GroupBox14Layout = new TQGridLayout( GroupBox14->layout() );
GroupBox14Layout->setAlignment( Qt::AlignTop ); GroupBox14Layout->setAlignment( TQt::AlignTop );
checkShowInDock = new QCheckBox( GroupBox14, "checkShowInDock" ); checkShowInDock = new TQCheckBox( GroupBox14, "checkShowInDock" );
checkShowInDock->setCursor( QCursor( 0 ) ); checkShowInDock->setCursor( TQCursor( 0 ) );
GroupBox14Layout->addWidget( checkShowInDock, 0, 0 ); GroupBox14Layout->addWidget( checkShowInDock, 0, 0 );
tabLayout_4->addWidget( GroupBox14, 0, 0 ); tabLayout_4->addWidget( GroupBox14, 0, 0 );
Spacer3_2 = new QSpacerItem( 20, 120, QSizePolicy::Minimum, QSizePolicy::Expanding ); Spacer3_2 = new TQSpacerItem( 20, 120, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
tabLayout_4->addItem( Spacer3_2, 2, 0 ); tabLayout_4->addItem( Spacer3_2, 2, 0 );
GroupBoxColorDock = new QGroupBox( tab_4, "GroupBoxColorDock" ); GroupBoxColorDock = new TQGroupBox( tab_4, "GroupBoxColorDock" );
GroupBoxColorDock->setEnabled( TRUE ); GroupBoxColorDock->setEnabled( TRUE );
GroupBoxColorDock->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, GroupBoxColorDock->sizePolicy().hasHeightForWidth() ) ); GroupBoxColorDock->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, GroupBoxColorDock->sizePolicy().hasHeightForWidth() ) );
GroupBoxColorDock->setFrameShape( QGroupBox::Box ); GroupBoxColorDock->setFrameShape( TQGroupBox::Box );
GroupBoxColorDock->setColumnLayout(0, Qt::Vertical ); GroupBoxColorDock->setColumnLayout(0, TQt::Vertical );
GroupBoxColorDock->layout()->setSpacing( 6 ); GroupBoxColorDock->layout()->setSpacing( 6 );
GroupBoxColorDock->layout()->setMargin( 11 ); GroupBoxColorDock->layout()->setMargin( 11 );
GroupBoxColorDockLayout = new QGridLayout( GroupBoxColorDock->layout() ); GroupBoxColorDockLayout = new TQGridLayout( GroupBoxColorDock->layout() );
GroupBoxColorDockLayout->setAlignment( Qt::AlignTop ); GroupBoxColorDockLayout->setAlignment( TQt::AlignTop );
TextLabel1_2_2_2_2 = new QLabel( GroupBoxColorDock, "TextLabel1_2_2_2_2" ); TextLabel1_2_2_2_2 = new TQLabel( GroupBoxColorDock, "TextLabel1_2_2_2_2" );
TextLabel1_2_2_2_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignLeft ) ); TextLabel1_2_2_2_2->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignLeft ) );
GroupBoxColorDockLayout->addWidget( TextLabel1_2_2_2_2, 1, 0 ); GroupBoxColorDockLayout->addWidget( TextLabel1_2_2_2_2, 1, 0 );
colorAlarm = new KColorButton( GroupBoxColorDock, "colorAlarm" ); colorAlarm = new KColorButton( GroupBoxColorDock, "colorAlarm" );
colorAlarm->setEnabled( TRUE ); colorAlarm->setEnabled( TRUE );
colorAlarm->setToggleButton( FALSE ); colorAlarm->setToggleButton( FALSE );
colorAlarm->setColor( QColor( 255, 85, 0 ) ); colorAlarm->setColor( TQColor( 255, 85, 0 ) );
GroupBoxColorDockLayout->addWidget( colorAlarm, 1, 1 ); GroupBoxColorDockLayout->addWidget( colorAlarm, 1, 1 );
@ -228,155 +228,155 @@ LMSensorsCfgDesign::LMSensorsCfgDesign( QWidget* parent, const char* name, WFlag
colorNormal->setAcceptDrops( TRUE ); colorNormal->setAcceptDrops( TRUE );
colorNormal->setToggleButton( FALSE ); colorNormal->setToggleButton( FALSE );
colorNormal->setOn( FALSE ); colorNormal->setOn( FALSE );
colorNormal->setColor( QColor( 0, 0, 255 ) ); colorNormal->setColor( TQColor( 0, 0, 255 ) );
GroupBoxColorDockLayout->addWidget( colorNormal, 0, 1 ); GroupBoxColorDockLayout->addWidget( colorNormal, 0, 1 );
spacer5 = new QSpacerItem( 41, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); spacer5 = new TQSpacerItem( 41, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
GroupBoxColorDockLayout->addItem( spacer5, 0, 2 ); GroupBoxColorDockLayout->addItem( spacer5, 0, 2 );
spacer6 = new QSpacerItem( 41, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); spacer6 = new TQSpacerItem( 41, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
GroupBoxColorDockLayout->addItem( spacer6, 1, 2 ); GroupBoxColorDockLayout->addItem( spacer6, 1, 2 );
TextLabel1_4_2_2 = new QLabel( GroupBoxColorDock, "TextLabel1_4_2_2" ); TextLabel1_4_2_2 = new TQLabel( GroupBoxColorDock, "TextLabel1_4_2_2" );
TextLabel1_4_2_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignLeft ) ); TextLabel1_4_2_2->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignLeft ) );
GroupBoxColorDockLayout->addWidget( TextLabel1_4_2_2, 0, 0 ); GroupBoxColorDockLayout->addWidget( TextLabel1_4_2_2, 0, 0 );
tabLayout_4->addWidget( GroupBoxColorDock, 1, 0 ); tabLayout_4->addWidget( GroupBoxColorDock, 1, 0 );
SensorsTab->insertTab( tab_4, QString("") ); SensorsTab->insertTab( tab_4, TQString("") );
tab_5 = new QWidget( SensorsTab, "tab_5" ); tab_5 = new TQWidget( SensorsTab, "tab_5" );
tabLayout_5 = new QVBoxLayout( tab_5, 11, 6, "tabLayout_5"); tabLayout_5 = new TQVBoxLayout( tab_5, 11, 6, "tabLayout_5");
TextLabel1_3_2_2_2_2 = new QLabel( tab_5, "TextLabel1_3_2_2_2_2" ); TextLabel1_3_2_2_2_2 = new TQLabel( tab_5, "TextLabel1_3_2_2_2_2" );
tabLayout_5->addWidget( TextLabel1_3_2_2_2_2 ); tabLayout_5->addWidget( TextLabel1_3_2_2_2_2 );
Frame11_2_2_2 = new QFrame( tab_5, "Frame11_2_2_2" ); Frame11_2_2_2 = new TQFrame( tab_5, "Frame11_2_2_2" );
Frame11_2_2_2->setFrameShape( QFrame::HLine ); Frame11_2_2_2->setFrameShape( TQFrame::HLine );
Frame11_2_2_2->setFrameShadow( QFrame::Sunken ); Frame11_2_2_2->setFrameShadow( TQFrame::Sunken );
tabLayout_5->addWidget( Frame11_2_2_2 ); tabLayout_5->addWidget( Frame11_2_2_2 );
layout9 = new QGridLayout( 0, 1, 1, 0, 6, "layout9"); layout9 = new TQGridLayout( 0, 1, 1, 0, 6, "layout9");
CheckAllSensors = new QCheckBox( tab_5, "CheckAllSensors" ); CheckAllSensors = new TQCheckBox( tab_5, "CheckAllSensors" );
CheckAllSensors->setAutoResize( TRUE ); CheckAllSensors->setAutoResize( TRUE );
layout9->addWidget( CheckAllSensors, 6, 0 ); layout9->addWidget( CheckAllSensors, 6, 0 );
spacer9 = new QSpacerItem( 20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding ); spacer9 = new TQSpacerItem( 20, 31, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
layout9->addItem( spacer9, 7, 0 ); layout9->addItem( spacer9, 7, 0 );
radioAlarm1 = new QRadioButton( tab_5, "radioAlarm1" ); radioAlarm1 = new TQRadioButton( tab_5, "radioAlarm1" );
radioAlarm1->setCursor( QCursor( 0 ) ); radioAlarm1->setCursor( TQCursor( 0 ) );
radioAlarm1->setChecked( TRUE ); radioAlarm1->setChecked( TRUE );
layout9->addWidget( radioAlarm1, 4, 0 ); layout9->addWidget( radioAlarm1, 4, 0 );
buttonTest = new QPushButton( tab_5, "buttonTest" ); buttonTest = new TQPushButton( tab_5, "buttonTest" );
buttonTest->setEnabled( FALSE ); buttonTest->setEnabled( FALSE );
layout9->addWidget( buttonTest, 5, 1 ); layout9->addWidget( buttonTest, 5, 1 );
radioAlarm2 = new QRadioButton( tab_5, "radioAlarm2" ); radioAlarm2 = new TQRadioButton( tab_5, "radioAlarm2" );
radioAlarm2->setCursor( QCursor( 0 ) ); radioAlarm2->setCursor( TQCursor( 0 ) );
radioAlarm2->setChecked( FALSE ); radioAlarm2->setChecked( FALSE );
layout9->addWidget( radioAlarm2, 2, 0 ); layout9->addWidget( radioAlarm2, 2, 0 );
radioAlarm3 = new QRadioButton( tab_5, "radioAlarm3" ); radioAlarm3 = new TQRadioButton( tab_5, "radioAlarm3" );
radioAlarm3->setCursor( QCursor( 0 ) ); radioAlarm3->setCursor( TQCursor( 0 ) );
layout9->addWidget( radioAlarm3, 0, 0 ); layout9->addWidget( radioAlarm3, 0, 0 );
layout6 = new QHBoxLayout( 0, 0, 6, "layout6"); layout6 = new TQHBoxLayout( 0, 0, 6, "layout6");
spacer7 = new QSpacerItem( 31, 20, QSizePolicy::Fixed, QSizePolicy::Minimum ); spacer7 = new TQSpacerItem( 31, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
layout6->addItem( spacer7 ); layout6->addItem( spacer7 );
editLaunch = new QLineEdit( tab_5, "editLaunch" ); editLaunch = new TQLineEdit( tab_5, "editLaunch" );
editLaunch->setEnabled( FALSE ); editLaunch->setEnabled( FALSE );
layout6->addWidget( editLaunch ); layout6->addWidget( editLaunch );
layout9->addLayout( layout6, 1, 0 ); layout9->addLayout( layout6, 1, 0 );
layout7 = new QHBoxLayout( 0, 0, 6, "layout7"); layout7 = new TQHBoxLayout( 0, 0, 6, "layout7");
spacer8 = new QSpacerItem( 31, 21, QSizePolicy::Fixed, QSizePolicy::Minimum ); spacer8 = new TQSpacerItem( 31, 21, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
layout7->addItem( spacer8 ); layout7->addItem( spacer8 );
editPlay = new QLineEdit( tab_5, "editPlay" ); editPlay = new TQLineEdit( tab_5, "editPlay" );
editPlay->setEnabled( FALSE ); editPlay->setEnabled( FALSE );
layout7->addWidget( editPlay ); layout7->addWidget( editPlay );
layout9->addLayout( layout7, 3, 0 ); layout9->addLayout( layout7, 3, 0 );
tabLayout_5->addLayout( layout9 ); tabLayout_5->addLayout( layout9 );
SensorsTab->insertTab( tab_5, QString("") ); SensorsTab->insertTab( tab_5, TQString("") );
tabLayout->addWidget( SensorsTab, 0, 1 ); tabLayout->addWidget( SensorsTab, 0, 1 );
listSensors = new QListBox( tab, "listSensors" ); listSensors = new TQListBox( tab, "listSensors" );
listSensors->setMinimumSize( QSize( 120, 0 ) ); listSensors->setMinimumSize( TQSize( 120, 0 ) );
listSensors->setMaximumSize( QSize( 120, 32767 ) ); listSensors->setMaximumSize( TQSize( 120, 32767 ) );
listSensors->setFrameShape( QListBox::StyledPanel ); listSensors->setFrameShape( TQListBox::StyledPanel );
listSensors->setFrameShadow( QListBox::Sunken ); listSensors->setFrameShadow( TQListBox::Sunken );
listSensors->setLineWidth( 2 ); listSensors->setLineWidth( 2 );
listSensors->setColumnMode( QListBox::FixedNumber ); listSensors->setColumnMode( TQListBox::FixedNumber );
tabLayout->addWidget( listSensors, 0, 0 ); tabLayout->addWidget( listSensors, 0, 0 );
MainTab->insertTab( tab, QString("") ); MainTab->insertTab( tab, TQString("") );
tab_6 = new QWidget( MainTab, "tab_6" ); tab_6 = new TQWidget( MainTab, "tab_6" );
tabLayout_6 = new QGridLayout( tab_6, 1, 1, 11, 6, "tabLayout_6"); tabLayout_6 = new TQGridLayout( tab_6, 1, 1, 11, 6, "tabLayout_6");
ButtonGroup5 = new QButtonGroup( tab_6, "ButtonGroup5" ); ButtonGroup5 = new TQButtonGroup( tab_6, "ButtonGroup5" );
ButtonGroup5->setColumnLayout(0, Qt::Vertical ); ButtonGroup5->setColumnLayout(0, TQt::Vertical );
ButtonGroup5->layout()->setSpacing( 6 ); ButtonGroup5->layout()->setSpacing( 6 );
ButtonGroup5->layout()->setMargin( 11 ); ButtonGroup5->layout()->setMargin( 11 );
ButtonGroup5Layout = new QGridLayout( ButtonGroup5->layout() ); ButtonGroup5Layout = new TQGridLayout( ButtonGroup5->layout() );
ButtonGroup5Layout->setAlignment( Qt::AlignTop ); ButtonGroup5Layout->setAlignment( TQt::AlignTop );
RadioF = new QRadioButton( ButtonGroup5, "RadioF" ); RadioF = new TQRadioButton( ButtonGroup5, "RadioF" );
RadioF->setMinimumSize( QSize( 0, 0 ) ); RadioF->setMinimumSize( TQSize( 0, 0 ) );
ButtonGroup5Layout->addWidget( RadioF, 1, 0 ); ButtonGroup5Layout->addWidget( RadioF, 1, 0 );
RadioC = new QRadioButton( ButtonGroup5, "RadioC" ); RadioC = new TQRadioButton( ButtonGroup5, "RadioC" );
RadioC->setChecked( TRUE ); RadioC->setChecked( TRUE );
ButtonGroup5Layout->addWidget( RadioC, 0, 0 ); ButtonGroup5Layout->addWidget( RadioC, 0, 0 );
RadioK = new QRadioButton( ButtonGroup5, "RadioK" ); RadioK = new TQRadioButton( ButtonGroup5, "RadioK" );
ButtonGroup5Layout->addWidget( RadioK, 2, 0 ); ButtonGroup5Layout->addWidget( RadioK, 2, 0 );
tabLayout_6->addWidget( ButtonGroup5, 0, 0 ); tabLayout_6->addWidget( ButtonGroup5, 0, 0 );
spacer12_2 = new QSpacerItem( 5, 5, QSizePolicy::Minimum, QSizePolicy::Expanding ); spacer12_2 = new TQSpacerItem( 5, 5, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
tabLayout_6->addItem( spacer12_2, 2, 0 ); tabLayout_6->addItem( spacer12_2, 2, 0 );
groupBox79 = new QGroupBox( tab_6, "groupBox79" ); groupBox79 = new TQGroupBox( tab_6, "groupBox79" );
groupBox79->setColumnLayout(0, Qt::Vertical ); groupBox79->setColumnLayout(0, TQt::Vertical );
groupBox79->layout()->setSpacing( 6 ); groupBox79->layout()->setSpacing( 6 );
groupBox79->layout()->setMargin( 18 ); groupBox79->layout()->setMargin( 18 );
groupBox79Layout = new QGridLayout( groupBox79->layout() ); groupBox79Layout = new TQGridLayout( groupBox79->layout() );
groupBox79Layout->setAlignment( Qt::AlignTop ); groupBox79Layout->setAlignment( TQt::AlignTop );
SpinUpdateTime = new QSpinBox( groupBox79, "SpinUpdateTime" ); SpinUpdateTime = new TQSpinBox( groupBox79, "SpinUpdateTime" );
SpinUpdateTime->setMinValue( 1 ); SpinUpdateTime->setMinValue( 1 );
SpinUpdateTime->setValue( 5 ); SpinUpdateTime->setValue( 5 );
groupBox79Layout->addWidget( SpinUpdateTime, 0, 0 ); groupBox79Layout->addWidget( SpinUpdateTime, 0, 0 );
SliderUpdateTime = new QSlider( groupBox79, "SliderUpdateTime" ); SliderUpdateTime = new TQSlider( groupBox79, "SliderUpdateTime" );
SliderUpdateTime->setMaxValue( 60 ); SliderUpdateTime->setMaxValue( 60 );
SliderUpdateTime->setValue( 5 ); SliderUpdateTime->setValue( 5 );
SliderUpdateTime->setOrientation( QSlider::Horizontal ); SliderUpdateTime->setOrientation( TQSlider::Horizontal );
SliderUpdateTime->setTickmarks( QSlider::Below ); SliderUpdateTime->setTickmarks( TQSlider::Below );
SliderUpdateTime->setTickInterval( 1 ); SliderUpdateTime->setTickInterval( 1 );
groupBox79Layout->addWidget( SliderUpdateTime, 0, 1 ); groupBox79Layout->addWidget( SliderUpdateTime, 0, 1 );
tabLayout_6->addWidget( groupBox79, 1, 0 ); tabLayout_6->addWidget( groupBox79, 1, 0 );
MainTab->insertTab( tab_6, QString("") ); MainTab->insertTab( tab_6, TQString("") );
LMSensorsCfgDesignLayout->addWidget( MainTab, 0, 0 ); LMSensorsCfgDesignLayout->addWidget( MainTab, 0, 0 );
languageChange(); languageChange();
resize( QSize(438, 344).expandedTo(minimumSizeHint()) ); resize( TQSize(438, 344).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished ); clearWState( WState_Polished );
// signals and slots connections // signals and slots connections
@ -392,7 +392,7 @@ LMSensorsCfgDesign::LMSensorsCfgDesign( QWidget* parent, const char* name, WFlag
*/ */
LMSensorsCfgDesign::~LMSensorsCfgDesign() LMSensorsCfgDesign::~LMSensorsCfgDesign()
{ {
// no need to delete child widgets, Qt does it all for us // no need to delete child widgets, TQt does it all for us
} }
/* /*
@ -402,11 +402,11 @@ LMSensorsCfgDesign::~LMSensorsCfgDesign()
void LMSensorsCfgDesign::languageChange() void LMSensorsCfgDesign::languageChange()
{ {
setCaption( tr2i18n( "LMSensorsCfgDesign" ) ); setCaption( tr2i18n( "LMSensorsCfgDesign" ) );
GroupBoxDes->setTitle( QString::null ); GroupBoxDes->setTitle( TQString::null );
TextLabel2_2->setText( tr2i18n( "Description" ) ); TextLabel2_2->setText( tr2i18n( "Description" ) );
editDescription->setText( QString::null ); editDescription->setText( TQString::null );
GroupBox2_2_2->setTitle( tr2i18n( "Values" ) ); GroupBox2_2_2->setTitle( tr2i18n( "Values" ) );
editValue->setText( QString::null ); editValue->setText( TQString::null );
TextLabel3_2_2_3_2_2_2->setText( tr2i18n( "Current" ) ); TextLabel3_2_2_3_2_2_2->setText( tr2i18n( "Current" ) );
TextLabel3_2_4_2_2_2->setText( tr2i18n( "Maximum" ) ); TextLabel3_2_4_2_2_2->setText( tr2i18n( "Maximum" ) );
editMaxValue->clear(); editMaxValue->clear();
@ -425,7 +425,7 @@ void LMSensorsCfgDesign::languageChange()
TextLabel3_2->setText( tr2i18n( "Ideal" ) ); TextLabel3_2->setText( tr2i18n( "Ideal" ) );
TextLabel3_2_3_2_2_2_2->setText( tr2i18n( "Minimum" ) ); TextLabel3_2_3_2_2_2_2->setText( tr2i18n( "Minimum" ) );
TextLabel1_3_3_2->setText( tr2i18n( "Addition" ) ); TextLabel1_3_3_2->setText( tr2i18n( "Addition" ) );
editIdealValue->setText( QString::null ); editIdealValue->setText( TQString::null );
editMinValue->clear(); editMinValue->clear();
editMinValue->insertItem( tr2i18n( "-1%" ) ); editMinValue->insertItem( tr2i18n( "-1%" ) );
editMinValue->insertItem( tr2i18n( "-2%" ) ); editMinValue->insertItem( tr2i18n( "-2%" ) );
@ -439,16 +439,16 @@ void LMSensorsCfgDesign::languageChange()
editMinValue->insertItem( tr2i18n( "-40%" ) ); editMinValue->insertItem( tr2i18n( "-40%" ) );
editMinValue->insertItem( tr2i18n( "-50%" ) ); editMinValue->insertItem( tr2i18n( "-50%" ) );
SensorsTab->changeTab( tab_2, tr2i18n( "General" ) ); SensorsTab->changeTab( tab_2, tr2i18n( "General" ) );
GroupBox13->setTitle( QString::null ); GroupBox13->setTitle( TQString::null );
checkShow->setText( tr2i18n( "Visible" ) ); checkShow->setText( tr2i18n( "Visible" ) );
boxPanelPalette->setTitle( tr2i18n( "Colors" ) ); boxPanelPalette->setTitle( tr2i18n( "Colors" ) );
SensorsTab->changeTab( tab_3, tr2i18n( "Panel" ) ); SensorsTab->changeTab( tab_3, tr2i18n( "Panel" ) );
GroupBox14->setTitle( QString::null ); GroupBox14->setTitle( TQString::null );
checkShowInDock->setText( tr2i18n( "Visible" ) ); checkShowInDock->setText( tr2i18n( "Visible" ) );
GroupBoxColorDock->setTitle( tr2i18n( "Colors" ) ); GroupBoxColorDock->setTitle( tr2i18n( "Colors" ) );
TextLabel1_2_2_2_2->setText( tr2i18n( "Alarm" ) ); TextLabel1_2_2_2_2->setText( tr2i18n( "Alarm" ) );
colorAlarm->setText( QString::null ); colorAlarm->setText( TQString::null );
colorNormal->setText( QString::null ); colorNormal->setText( TQString::null );
TextLabel1_4_2_2->setText( tr2i18n( "Normal" ) ); TextLabel1_4_2_2->setText( tr2i18n( "Normal" ) );
SensorsTab->changeTab( tab_4, tr2i18n( "Dock" ) ); SensorsTab->changeTab( tab_4, tr2i18n( "Dock" ) );
TextLabel1_3_2_2_2_2->setText( tr2i18n( "On reach alarm value:" ) ); TextLabel1_3_2_2_2_2->setText( tr2i18n( "On reach alarm value:" ) );

@ -10,121 +10,121 @@
#ifndef LMSENSORSCFGDESIGN_H #ifndef LMSENSORSCFGDESIGN_H
#define LMSENSORSCFGDESIGN_H #define LMSENSORSCFGDESIGN_H
#include <qvariant.h> #include <ntqvariant.h>
#include <qwidget.h> #include <ntqwidget.h>
#include <kcolorbutton.h> #include <kcolorbutton.h>
class QVBoxLayout; class TQVBoxLayout;
class QHBoxLayout; class TQHBoxLayout;
class QGridLayout; class TQGridLayout;
class QSpacerItem; class TQSpacerItem;
class QTabWidget; class TQTabWidget;
class QGroupBox; class TQGroupBox;
class QLabel; class TQLabel;
class QLineEdit; class TQLineEdit;
class QComboBox; class TQComboBox;
class QCheckBox; class TQCheckBox;
class KColorButton; class KColorButton;
class QFrame; class TQFrame;
class QRadioButton; class TQRadioButton;
class QPushButton; class TQPushButton;
class QListBox; class TQListBox;
class QListBoxItem; class TQListBoxItem;
class QButtonGroup; class TQButtonGroup;
class QSpinBox; class TQSpinBox;
class QSlider; class TQSlider;
class LMSensorsCfgDesign : public QWidget class LMSensorsCfgDesign : public TQWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
LMSensorsCfgDesign( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); LMSensorsCfgDesign( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~LMSensorsCfgDesign(); ~LMSensorsCfgDesign();
QTabWidget* MainTab; TQTabWidget* MainTab;
QWidget* tab; TQWidget* tab;
QTabWidget* SensorsTab; TQTabWidget* SensorsTab;
QWidget* tab_2; TQWidget* tab_2;
QGroupBox* GroupBoxDes; TQGroupBox* GroupBoxDes;
QLabel* pixmapSensor; TQLabel* pixmapSensor;
QLabel* TextLabel2_2; TQLabel* TextLabel2_2;
QLineEdit* editDescription; TQLineEdit* editDescription;
QGroupBox* GroupBox2_2_2; TQGroupBox* GroupBox2_2_2;
QLineEdit* editValue; TQLineEdit* editValue;
QLabel* TextLabel3_2_2_3_2_2_2; TQLabel* TextLabel3_2_2_3_2_2_2;
QLabel* TextLabel3_2_4_2_2_2; TQLabel* TextLabel3_2_4_2_2_2;
QComboBox* editMaxValue; TQComboBox* editMaxValue;
QLabel* TextLabel1_2_3_2_2; TQLabel* TextLabel1_2_3_2_2;
QLineEdit* editMul; TQLineEdit* editMul;
QLabel* TextLabel3_2; TQLabel* TextLabel3_2;
QLabel* TextLabel3_2_3_2_2_2_2; TQLabel* TextLabel3_2_3_2_2_2_2;
QLabel* TextLabel1_3_3_2; TQLabel* TextLabel1_3_3_2;
QLineEdit* editIdealValue; TQLineEdit* editIdealValue;
QComboBox* editMinValue; TQComboBox* editMinValue;
QLineEdit* editSum; TQLineEdit* editSum;
QWidget* tab_3; TQWidget* tab_3;
QGroupBox* GroupBox13; TQGroupBox* GroupBox13;
QCheckBox* checkShow; TQCheckBox* checkShow;
QGroupBox* boxPanelPalette; TQGroupBox* boxPanelPalette;
QWidget* tab_4; TQWidget* tab_4;
QGroupBox* GroupBox14; TQGroupBox* GroupBox14;
QCheckBox* checkShowInDock; TQCheckBox* checkShowInDock;
QGroupBox* GroupBoxColorDock; TQGroupBox* GroupBoxColorDock;
QLabel* TextLabel1_2_2_2_2; TQLabel* TextLabel1_2_2_2_2;
KColorButton* colorAlarm; KColorButton* colorAlarm;
KColorButton* colorNormal; KColorButton* colorNormal;
QLabel* TextLabel1_4_2_2; TQLabel* TextLabel1_4_2_2;
QWidget* tab_5; TQWidget* tab_5;
QLabel* TextLabel1_3_2_2_2_2; TQLabel* TextLabel1_3_2_2_2_2;
QFrame* Frame11_2_2_2; TQFrame* Frame11_2_2_2;
QCheckBox* CheckAllSensors; TQCheckBox* CheckAllSensors;
QRadioButton* radioAlarm1; TQRadioButton* radioAlarm1;
QPushButton* buttonTest; TQPushButton* buttonTest;
QRadioButton* radioAlarm2; TQRadioButton* radioAlarm2;
QRadioButton* radioAlarm3; TQRadioButton* radioAlarm3;
QLineEdit* editLaunch; TQLineEdit* editLaunch;
QLineEdit* editPlay; TQLineEdit* editPlay;
QListBox* listSensors; TQListBox* listSensors;
QWidget* tab_6; TQWidget* tab_6;
QButtonGroup* ButtonGroup5; TQButtonGroup* ButtonGroup5;
QRadioButton* RadioF; TQRadioButton* RadioF;
QRadioButton* RadioC; TQRadioButton* RadioC;
QRadioButton* RadioK; TQRadioButton* RadioK;
QGroupBox* groupBox79; TQGroupBox* groupBox79;
QSpinBox* SpinUpdateTime; TQSpinBox* SpinUpdateTime;
QSlider* SliderUpdateTime; TQSlider* SliderUpdateTime;
protected: protected:
QGridLayout* LMSensorsCfgDesignLayout; TQGridLayout* LMSensorsCfgDesignLayout;
QGridLayout* tabLayout; TQGridLayout* tabLayout;
QGridLayout* tabLayout_2; TQGridLayout* tabLayout_2;
QGridLayout* GroupBoxDesLayout; TQGridLayout* GroupBoxDesLayout;
QHBoxLayout* layout5; TQHBoxLayout* layout5;
QVBoxLayout* layout4; TQVBoxLayout* layout4;
QGridLayout* GroupBox2_2_2Layout; TQGridLayout* GroupBox2_2_2Layout;
QSpacerItem* spacer12; TQSpacerItem* spacer12;
QSpacerItem* spacer10; TQSpacerItem* spacer10;
QVBoxLayout* tabLayout_3; TQVBoxLayout* tabLayout_3;
QSpacerItem* Spacer4_2; TQSpacerItem* Spacer4_2;
QGridLayout* GroupBox13Layout; TQGridLayout* GroupBox13Layout;
QGridLayout* tabLayout_4; TQGridLayout* tabLayout_4;
QSpacerItem* Spacer3_2; TQSpacerItem* Spacer3_2;
QGridLayout* GroupBox14Layout; TQGridLayout* GroupBox14Layout;
QGridLayout* GroupBoxColorDockLayout; TQGridLayout* GroupBoxColorDockLayout;
QSpacerItem* spacer5; TQSpacerItem* spacer5;
QSpacerItem* spacer6; TQSpacerItem* spacer6;
QVBoxLayout* tabLayout_5; TQVBoxLayout* tabLayout_5;
QGridLayout* layout9; TQGridLayout* layout9;
QSpacerItem* spacer9; TQSpacerItem* spacer9;
QHBoxLayout* layout6; TQHBoxLayout* layout6;
QSpacerItem* spacer7; TQSpacerItem* spacer7;
QHBoxLayout* layout7; TQHBoxLayout* layout7;
QSpacerItem* spacer8; TQSpacerItem* spacer8;
QGridLayout* tabLayout_6; TQGridLayout* tabLayout_6;
QSpacerItem* spacer12_2; TQSpacerItem* spacer12_2;
QGridLayout* ButtonGroup5Layout; TQGridLayout* ButtonGroup5Layout;
QGridLayout* groupBox79Layout; TQGridLayout* groupBox79Layout;
protected slots: protected slots:
virtual void languageChange(); virtual void languageChange();

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1"> <!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>LMSensorsCfgDesign</class> <class>LMSensorsCfgDesign</class>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>LMSensorsCfgDesign</cstring> <cstring>LMSensorsCfgDesign</cstring>
</property> </property>
@ -35,7 +35,7 @@
<property name="spacing"> <property name="spacing">
<number>4</number> <number>4</number>
</property> </property>
<widget class="QTabWidget" row="0" column="0"> <widget class="TQTabWidget" row="0" column="0">
<property name="name"> <property name="name">
<cstring>MainTab</cstring> <cstring>MainTab</cstring>
</property> </property>
@ -49,7 +49,7 @@
</property> </property>
<property name="layoutSpacing" stdset="0"> <property name="layoutSpacing" stdset="0">
</property> </property>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>tab</cstring> <cstring>tab</cstring>
</property> </property>
@ -60,7 +60,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QTabWidget" row="0" column="1"> <widget class="TQTabWidget" row="0" column="1">
<property name="name"> <property name="name">
<cstring>SensorsTab</cstring> <cstring>SensorsTab</cstring>
</property> </property>
@ -78,7 +78,7 @@
</property> </property>
<property name="layoutMargin" stdset="0"> <property name="layoutMargin" stdset="0">
</property> </property>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>tab</cstring> <cstring>tab</cstring>
</property> </property>
@ -89,7 +89,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QGroupBox" row="0" column="0"> <widget class="TQGroupBox" row="0" column="0">
<property name="name"> <property name="name">
<cstring>GroupBoxDes</cstring> <cstring>GroupBoxDes</cstring>
</property> </property>
@ -108,7 +108,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLayoutWidget" row="0" column="0"> <widget class="TQLayoutWidget" row="0" column="0">
<property name="name"> <property name="name">
<cstring>layout5</cstring> <cstring>layout5</cstring>
</property> </property>
@ -116,7 +116,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>pixmapSensor</cstring> <cstring>pixmapSensor</cstring>
</property> </property>
@ -124,7 +124,7 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout4</cstring> <cstring>layout4</cstring>
</property> </property>
@ -132,7 +132,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>TextLabel2_2</cstring> <cstring>TextLabel2_2</cstring>
</property> </property>
@ -140,7 +140,7 @@
<string>Description</string> <string>Description</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit"> <widget class="TQLineEdit">
<property name="name"> <property name="name">
<cstring>editDescription</cstring> <cstring>editDescription</cstring>
</property> </property>
@ -154,7 +154,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QGroupBox" row="1" column="0"> <widget class="TQGroupBox" row="1" column="0">
<property name="name"> <property name="name">
<cstring>GroupBox2_2_2</cstring> <cstring>GroupBox2_2_2</cstring>
</property> </property>
@ -171,7 +171,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLineEdit" row="1" column="0"> <widget class="TQLineEdit" row="1" column="0">
<property name="name"> <property name="name">
<cstring>editValue</cstring> <cstring>editValue</cstring>
</property> </property>
@ -190,7 +190,7 @@
<property name="hAlign" stdset="0"> <property name="hAlign" stdset="0">
</property> </property>
</widget> </widget>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>TextLabel3_2_2_3_2_2_2</cstring> <cstring>TextLabel3_2_2_3_2_2_2</cstring>
</property> </property>
@ -201,7 +201,7 @@
<cstring></cstring> <cstring></cstring>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="0" column="1"> <widget class="TQLabel" row="0" column="1">
<property name="name"> <property name="name">
<cstring>TextLabel3_2_4_2_2_2</cstring> <cstring>TextLabel3_2_4_2_2_2</cstring>
</property> </property>
@ -215,7 +215,7 @@
<cstring></cstring> <cstring></cstring>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="1" column="1"> <widget class="TQComboBox" row="1" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>+1%</string> <string>+1%</string>
@ -281,7 +281,7 @@
<number>12</number> <number>12</number>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="0" column="2"> <widget class="TQLabel" row="0" column="2">
<property name="name"> <property name="name">
<cstring>TextLabel1_2_3_2_2</cstring> <cstring>TextLabel1_2_3_2_2</cstring>
</property> </property>
@ -289,12 +289,12 @@
<string>Multiplier</string> <string>Multiplier</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="1" column="2"> <widget class="TQLineEdit" row="1" column="2">
<property name="name"> <property name="name">
<cstring>editMul</cstring> <cstring>editMul</cstring>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="3" column="0"> <widget class="TQLabel" row="3" column="0">
<property name="name"> <property name="name">
<cstring>TextLabel3_2</cstring> <cstring>TextLabel3_2</cstring>
</property> </property>
@ -302,7 +302,7 @@
<string>Ideal</string> <string>Ideal</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="3" column="1"> <widget class="TQLabel" row="3" column="1">
<property name="name"> <property name="name">
<cstring>TextLabel3_2_3_2_2_2_2</cstring> <cstring>TextLabel3_2_3_2_2_2_2</cstring>
</property> </property>
@ -313,7 +313,7 @@
<cstring></cstring> <cstring></cstring>
</property> </property>
</widget> </widget>
<widget class="QLabel" row="3" column="2"> <widget class="TQLabel" row="3" column="2">
<property name="name"> <property name="name">
<cstring>TextLabel1_3_3_2</cstring> <cstring>TextLabel1_3_3_2</cstring>
</property> </property>
@ -321,7 +321,7 @@
<string>Addition</string> <string>Addition</string>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="4" column="0"> <widget class="TQLineEdit" row="4" column="0">
<property name="name"> <property name="name">
<cstring>editIdealValue</cstring> <cstring>editIdealValue</cstring>
</property> </property>
@ -334,7 +334,7 @@
<property name="hAlign" stdset="0"> <property name="hAlign" stdset="0">
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="4" column="1"> <widget class="TQComboBox" row="4" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>-1%</string> <string>-1%</string>
@ -400,7 +400,7 @@
<number>12</number> <number>12</number>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" row="4" column="2"> <widget class="TQLineEdit" row="4" column="2">
<property name="name"> <property name="name">
<cstring>editSum</cstring> <cstring>editSum</cstring>
</property> </property>
@ -443,7 +443,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>tab</cstring> <cstring>tab</cstring>
</property> </property>
@ -460,7 +460,7 @@
<property name="spacing"> <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>
<widget class="QGroupBox"> <widget class="TQGroupBox">
<property name="name"> <property name="name">
<cstring>GroupBox13</cstring> <cstring>GroupBox13</cstring>
</property> </property>
@ -483,7 +483,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QCheckBox" row="0" column="0"> <widget class="TQCheckBox" row="0" column="0">
<property name="name"> <property name="name">
<cstring>checkShow</cstring> <cstring>checkShow</cstring>
</property> </property>
@ -498,7 +498,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QGroupBox"> <widget class="TQGroupBox">
<property name="name"> <property name="name">
<cstring>boxPanelPalette</cstring> <cstring>boxPanelPalette</cstring>
</property> </property>
@ -531,7 +531,7 @@
</spacer> </spacer>
</vbox> </vbox>
</widget> </widget>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>tab</cstring> <cstring>tab</cstring>
</property> </property>
@ -542,7 +542,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QGroupBox" row="0" column="0"> <widget class="TQGroupBox" row="0" column="0">
<property name="name"> <property name="name">
<cstring>GroupBox14</cstring> <cstring>GroupBox14</cstring>
</property> </property>
@ -565,7 +565,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QCheckBox" row="0" column="0"> <widget class="TQCheckBox" row="0" column="0">
<property name="name"> <property name="name">
<cstring>checkShowInDock</cstring> <cstring>checkShowInDock</cstring>
</property> </property>
@ -597,7 +597,7 @@
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QGroupBox" row="1" column="0"> <widget class="TQGroupBox" row="1" column="0">
<property name="name"> <property name="name">
<cstring>GroupBoxColorDock</cstring> <cstring>GroupBoxColorDock</cstring>
</property> </property>
@ -622,7 +622,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QLabel" row="1" column="0"> <widget class="TQLabel" row="1" column="0">
<property name="name"> <property name="name">
<cstring>TextLabel1_2_2_2_2</cstring> <cstring>TextLabel1_2_2_2_2</cstring>
</property> </property>
@ -720,7 +720,7 @@
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QLabel" row="0" column="0"> <widget class="TQLabel" row="0" column="0">
<property name="name"> <property name="name">
<cstring>TextLabel1_4_2_2</cstring> <cstring>TextLabel1_4_2_2</cstring>
</property> </property>
@ -737,7 +737,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>tab</cstring> <cstring>tab</cstring>
</property> </property>
@ -748,7 +748,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QButtonGroup"> <widget class="TQButtonGroup">
<property name="name"> <property name="name">
<cstring>ButtonGroup9</cstring> <cstring>ButtonGroup9</cstring>
</property> </property>
@ -759,7 +759,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QCheckBox" row="6" column="0"> <widget class="TQCheckBox" row="6" column="0">
<property name="name"> <property name="name">
<cstring>CheckAllSensors</cstring> <cstring>CheckAllSensors</cstring>
</property> </property>
@ -787,7 +787,7 @@
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QRadioButton" row="4" column="0"> <widget class="TQRadioButton" row="4" column="0">
<property name="name"> <property name="name">
<cstring>radioAlarm1</cstring> <cstring>radioAlarm1</cstring>
</property> </property>
@ -801,7 +801,7 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QPushButton" row="5" column="1"> <widget class="TQPushButton" row="5" column="1">
<property name="name"> <property name="name">
<cstring>buttonTest</cstring> <cstring>buttonTest</cstring>
</property> </property>
@ -812,7 +812,7 @@
<string>Test</string> <string>Test</string>
</property> </property>
</widget> </widget>
<widget class="QRadioButton" row="2" column="0"> <widget class="TQRadioButton" row="2" column="0">
<property name="name"> <property name="name">
<cstring>radioAlarm2</cstring> <cstring>radioAlarm2</cstring>
</property> </property>
@ -826,7 +826,7 @@
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
<widget class="QRadioButton" row="0" column="0"> <widget class="TQRadioButton" row="0" column="0">
<property name="name"> <property name="name">
<cstring>radioAlarm3</cstring> <cstring>radioAlarm3</cstring>
</property> </property>
@ -837,7 +837,7 @@
<string>Run command</string> <string>Run command</string>
</property> </property>
</widget> </widget>
<widget class="QLayoutWidget" row="1" column="0"> <widget class="TQLayoutWidget" row="1" column="0">
<property name="name"> <property name="name">
<cstring>layout6</cstring> <cstring>layout6</cstring>
</property> </property>
@ -862,7 +862,7 @@
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QLineEdit"> <widget class="TQLineEdit">
<property name="name"> <property name="name">
<cstring>editLaunch</cstring> <cstring>editLaunch</cstring>
</property> </property>
@ -872,7 +872,7 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QLayoutWidget" row="3" column="0"> <widget class="TQLayoutWidget" row="3" column="0">
<property name="name"> <property name="name">
<cstring>layout7</cstring> <cstring>layout7</cstring>
</property> </property>
@ -897,7 +897,7 @@
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QLineEdit"> <widget class="TQLineEdit">
<property name="name"> <property name="name">
<cstring>editPlay</cstring> <cstring>editPlay</cstring>
</property> </property>
@ -912,7 +912,7 @@
</vbox> </vbox>
</widget> </widget>
</widget> </widget>
<widget class="QListBox" row="0" column="0"> <widget class="TQListBox" row="0" column="0">
<property name="name"> <property name="name">
<cstring>listSensors</cstring> <cstring>listSensors</cstring>
</property> </property>
@ -943,7 +943,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>tab</cstring> <cstring>tab</cstring>
</property> </property>
@ -954,7 +954,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QButtonGroup" row="0" column="0"> <widget class="TQButtonGroup" row="0" column="0">
<property name="name"> <property name="name">
<cstring>ButtonGroup5</cstring> <cstring>ButtonGroup5</cstring>
</property> </property>
@ -965,7 +965,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QRadioButton" row="1" column="0"> <widget class="TQRadioButton" row="1" column="0">
<property name="name"> <property name="name">
<cstring>RadioF</cstring> <cstring>RadioF</cstring>
</property> </property>
@ -981,7 +981,7 @@
<property name="toolTip" stdset="0"> <property name="toolTip" stdset="0">
</property> </property>
</widget> </widget>
<widget class="QRadioButton" row="0" column="0"> <widget class="TQRadioButton" row="0" column="0">
<property name="name"> <property name="name">
<cstring>RadioC</cstring> <cstring>RadioC</cstring>
</property> </property>
@ -992,7 +992,7 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QRadioButton" row="2" column="0"> <widget class="TQRadioButton" row="2" column="0">
<property name="name"> <property name="name">
<cstring>RadioK</cstring> <cstring>RadioK</cstring>
</property> </property>
@ -1019,7 +1019,7 @@
</size> </size>
</property> </property>
</spacer> </spacer>
<widget class="QGroupBox" row="1" column="0"> <widget class="TQGroupBox" row="1" column="0">
<property name="name"> <property name="name">
<cstring>groupBox79</cstring> <cstring>groupBox79</cstring>
</property> </property>
@ -1033,7 +1033,7 @@
<property name="margin"> <property name="margin">
<number>18</number> <number>18</number>
</property> </property>
<widget class="QSpinBox" row="0" column="0"> <widget class="TQSpinBox" row="0" column="0">
<property name="name"> <property name="name">
<cstring>SpinUpdateTime</cstring> <cstring>SpinUpdateTime</cstring>
</property> </property>
@ -1047,7 +1047,7 @@
<number>5</number> <number>5</number>
</property> </property>
</widget> </widget>
<widget class="QSlider" row="0" column="1"> <widget class="TQSlider" row="0" column="1">
<property name="name"> <property name="name">
<cstring>SliderUpdateTime</cstring> <cstring>SliderUpdateTime</cstring>
</property> </property>

@ -26,7 +26,7 @@
// Public methods // Public methods
//**************************************************************************** //****************************************************************************
LMSensorsChip::LMSensorsChip(const sensors_chip_name *chip, QObject *parent, const char * name) LMSensorsChip::LMSensorsChip(const sensors_chip_name *chip, TQObject *parent, const char * name)
: SensorsList(parent,name) : SensorsList(parent,name)
{ {
setClass(Sensor::lmSensor); setClass(Sensor::lmSensor);
@ -68,7 +68,7 @@ void LMSensorsChip::createSensors()
void LMSensorsChip::updateSensors() void LMSensorsChip::updateSensors()
{ {
QObjectList *sensors= (QObjectList *)children(); TQObjectList *sensors= (TQObjectList *)children();
if(sensors) if(sensors)
for(LMSensor *sensor= (LMSensor *)sensors->first(); sensor!=0; sensor= (LMSensor *)sensors->next()) for(LMSensor *sensor= (LMSensor *)sensors->first(); sensor!=0; sensor= (LMSensor *)sensors->next())

@ -33,7 +33,7 @@ Q_OBJECT
public: public:
LMSensorsChip(const sensors_chip_name *chip=0, QObject *parent=0, const char *name=0); LMSensorsChip(const sensors_chip_name *chip=0, TQObject *parent=0, const char *name=0);
~LMSensorsChip(); ~LMSensorsChip();
public slots: public slots:

@ -17,16 +17,16 @@
#include "lmsensorsdock.h" #include "lmsensorsdock.h"
#include <qobjectlist.h> #include <ntqobjectlist.h>
#include <klocale.h> #include <tdelocale.h>
#include <kiconloader.h> #include <kiconloader.h>
#include <kapp.h> #include <kapp.h>
#include <kaboutapplication.h> #include <tdeaboutapplication.h>
#include <kwin.h> #include <twin.h>
#include <netwm.h> #include <netwm.h>
LMSensorsDock::LMSensorsDock(bool fNoDock, QObject *parent, const char *name): QObject(parent,name) LMSensorsDock::LMSensorsDock(bool fNoDock, TQObject *parent, const char *name): TQObject(parent,name)
{ {
noDock= fNoDock; noDock= fNoDock;
@ -55,7 +55,7 @@ LMSensorsDock::~LMSensorsDock()
void LMSensorsDock::createMenu() void LMSensorsDock::createMenu()
{ {
menu= new KPopupMenu; menu= new TDEPopupMenu;
menu->insertTitle(kapp->miniIcon(),"KSensors"); menu->insertTitle(kapp->miniIcon(),"KSensors");
menu->insertItem(SmallIcon("configure"),i18n("&Configure"), this, SLOT(createConfigWidget() ) ,0,101 ); menu->insertItem(SmallIcon("configure"),i18n("&Configure"), this, SLOT(createConfigWidget() ) ,0,101 );
menu->insertSeparator(); menu->insertSeparator();
@ -67,32 +67,32 @@ void LMSensorsDock::createMenu()
void LMSensorsDock::createWidgets() void LMSensorsDock::createWidgets()
{ {
KGlobal::config()->setGroup("General"); TDEGlobal::config()->setGroup("General");
if(noDock) createShowWidget(); if(noDock) createShowWidget();
else if(KGlobal::config()->readBoolEntry("showWidget",false)) { else if(TDEGlobal::config()->readBoolEntry("showWidget",false)) {
int desktop = KGlobal::config()->readNumEntry("desktop", 0); int desktop = TDEGlobal::config()->readNumEntry("desktop", 0);
createShowWidget(desktop); createShowWidget(desktop);
} }
} }
void LMSensorsDock::saveConfig() void LMSensorsDock::saveConfig()
{ {
KGlobal::config()->setGroup("General"); TDEGlobal::config()->setGroup("General");
KGlobal::config()->writeEntry("showWidget",(bool)sensorsWidget); TDEGlobal::config()->writeEntry("showWidget",(bool)sensorsWidget);
if(sensorsWidget) { if(sensorsWidget) {
NETWinInfo wm_client(qt_xdisplay(), sensorsWidget->winId(), qt_xrootwin(), NET::WMDesktop); NETWinInfo wm_client(tqt_xdisplay(), sensorsWidget->winId(), tqt_xrootwin(), NET::WMDesktop);
KGlobal::config()->writeEntry("desktop", wm_client.desktop()); TDEGlobal::config()->writeEntry("desktop", wm_client.desktop());
} }
} }
void LMSensorsDock::createDockWidgets() void LMSensorsDock::createDockWidgets()
{ {
QObjectList *chips= sensors->getSensorsChips(); TQObjectList *chips= sensors->getSensorsChips();
countSensors= 0; countSensors= 0;
if(chips) if(chips)
for(LMSensorsChip *chip= (LMSensorsChip *)chips->first(); chip!=0; chip= (LMSensorsChip *)chips->next()) { for(LMSensorsChip *chip= (LMSensorsChip *)chips->first(); chip!=0; chip= (LMSensorsChip *)chips->next()) {
QObjectList *list= (QObjectList *)chip->getSensors(); TQObjectList *list= (TQObjectList *)chip->getSensors();
if(list) { if(list) {
for(LMSensor *sensor= (LMSensor *)list->first(); sensor!=0; sensor= (LMSensor *)list->next()) { for(LMSensor *sensor= (LMSensor *)list->first(); sensor!=0; sensor= (LMSensor *)list->next()) {
if( LMSensorDockPanel::readShowInDock(sensor->name()) ) if( LMSensorDockPanel::readShowInDock(sensor->name()) )
@ -128,7 +128,7 @@ void LMSensorsDock::createShowWidget(int desktop)
{ {
if(!sensorsWidget) { if(!sensorsWidget) {
sensorsWidget= new LMSensorsWidget(sensors); sensorsWidget= new LMSensorsWidget(sensors);
connect( sensorsWidget, SIGNAL(rightMouseClicked(QMouseEvent *)), this, SLOT(mouseEventReceived(QMouseEvent *)) ); connect( sensorsWidget, SIGNAL(rightMouseClicked(TQMouseEvent *)), this, SLOT(mouseEventReceived(TQMouseEvent *)) );
connect( sensorsWidget, SIGNAL(destroyed()), this, SLOT(updateMenu()) ); connect( sensorsWidget, SIGNAL(destroyed()), this, SLOT(updateMenu()) );
} }
if ((desktop != 0) && (desktop <= KWin::numberOfDesktops())) KWin::setOnDesktop(sensorsWidget->winId(), desktop); if ((desktop != 0) && (desktop <= KWin::numberOfDesktops())) KWin::setOnDesktop(sensorsWidget->winId(), desktop);
@ -150,9 +150,9 @@ void LMSensorsDock::close()
delete this; delete this;
} }
void LMSensorsDock::mouseEventReceived(QMouseEvent *e) void LMSensorsDock::mouseEventReceived(TQMouseEvent *e)
{ {
if(e->type()==QEvent::MouseButtonRelease) { if(e->type()==TQEvent::MouseButtonRelease) {
if( e->button()==LeftButton ) minimizeRestoreWidget(); if( e->button()==LeftButton ) minimizeRestoreWidget();
if( e->button()==RightButton ) menu->popup(e->globalPos()); if( e->button()==RightButton ) menu->popup(e->globalPos());
} }
@ -161,14 +161,14 @@ void LMSensorsDock::mouseEventReceived(QMouseEvent *e)
void LMSensorsDock::createDockSensor(Sensor *sensor) void LMSensorsDock::createDockSensor(Sensor *sensor)
{ {
if(countSensors==0) { if(countSensors==0) {
QObjectList *list= (QObjectList *)children(); TQObjectList *list= (TQObjectList *)children();
if(list) if(list)
for(LMSensorDockPanel *sensor= (LMSensorDockPanel *)list->first(); sensor!=0; sensor= (LMSensorDockPanel *)list->next()) for(LMSensorDockPanel *sensor= (LMSensorDockPanel *)list->first(); sensor!=0; sensor= (LMSensorDockPanel *)list->next())
delete sensor; delete sensor;
} }
const char *name= sensor ? sensor->name() : 0; const char *name= sensor ? sensor->name() : 0;
LMSensorDockPanel *dock= new LMSensorDockPanel(sensor,name); LMSensorDockPanel *dock= new LMSensorDockPanel(sensor,name);
connect( dock, SIGNAL(mouseEvent(QMouseEvent *)), this, SLOT(mouseEventReceived(QMouseEvent *)) ); connect( dock, SIGNAL(mouseEvent(TQMouseEvent *)), this, SLOT(mouseEventReceived(TQMouseEvent *)) );
insertChild(dock); insertChild(dock);
dock->show(); dock->show();
if(name) countSensors++; if(name) countSensors++;
@ -202,9 +202,9 @@ void LMSensorsDock::updateItemDock(const char *name)
void LMSensorsDock::showAbout() void LMSensorsDock::showAbout()
{ {
KAboutApplication *dialog; TDEAboutApplication *dialog;
dialog= new KAboutApplication; dialog= new TDEAboutApplication;
dialog->exec(); dialog->exec();
delete dialog; delete dialog;
} }

@ -24,11 +24,11 @@
#endif #endif
#include <qobject.h> #include <ntqobject.h>
#include <qguardedptr.h> #include <ntqguardedptr.h>
#include <kconfig.h> #include <tdeconfig.h>
#include <kpopupmenu.h> #include <tdepopupmenu.h>
#include <kdialogbase.h> #include <kdialogbase.h>
#include "lmsensors.h" #include "lmsensors.h"
@ -42,13 +42,13 @@
*@author Miguel Novas *@author Miguel Novas
*/ */
class LMSensorsDock : public QObject class LMSensorsDock : public TQObject
{ {
Q_OBJECT Q_OBJECT
public: public:
LMSensorsDock(bool fNoDock=false, QObject *parent=0, const char *name=0); LMSensorsDock(bool fNoDock=false, TQObject *parent=0, const char *name=0);
~LMSensorsDock(); ~LMSensorsDock();
public slots: public slots:
@ -57,7 +57,7 @@ public slots:
protected slots: protected slots:
void updateItemDock(const char *name); void updateItemDock(const char *name);
void mouseEventReceived(QMouseEvent *e); void mouseEventReceived(TQMouseEvent *e);
void minimizeRestoreWidget(); void minimizeRestoreWidget();
void createConfigWidget(); void createConfigWidget();
void updateMenu(); void updateMenu();
@ -71,11 +71,11 @@ private:
int countSensors; int countSensors;
LMSensors *sensors; LMSensors *sensors;
QGuardedPtr<KSensorsCfg> sensorsCfg; TQGuardedPtr<KSensorsCfg> sensorsCfg;
QGuardedPtr<LMSensorsWidget> sensorsWidget; TQGuardedPtr<LMSensorsWidget> sensorsWidget;
QGuardedPtr<LMSensorsAlarms> sensorsAlarm; TQGuardedPtr<LMSensorsAlarms> sensorsAlarm;
KPopupMenu *menu; TDEPopupMenu *menu;
void createMenu(); void createMenu();
void createWidgets(); void createWidgets();

@ -15,10 +15,10 @@
* * * *
***************************************************************************/ ***************************************************************************/
#include <qobject.h> #include <ntqobject.h>
#include <qobjectlist.h> #include <ntqobjectlist.h>
#include <qpixmap.h> #include <ntqpixmap.h>
#include <qtimer.h> #include <ntqtimer.h>
#include <kiconloader.h> #include <kiconloader.h>
#include <kstddirs.h> #include <kstddirs.h>
@ -30,8 +30,8 @@
* Public methods * * Public methods *
***************************************************************************/ ***************************************************************************/
LMSensorsWidget::LMSensorsWidget(LMSensors *lsensors,QWidget *parent, const char *name ) LMSensorsWidget::LMSensorsWidget(LMSensors *lsensors,TQWidget *parent, const char *name )
: QWidget(parent,name, : TQWidget(parent,name,
WStyle_Customize | WStyle_Customize |
WType_TopLevel | WType_TopLevel |
WStyle_StaysOnTop | WStyle_StaysOnTop |
@ -55,9 +55,9 @@ LMSensorsWidget::LMSensorsWidget(LMSensors *lsensors,QWidget *parent, const char
// //
setBackgroundPixmap( UserIcon("ksensorsbackground.png") ); setBackgroundPixmap( UserIcon("ksensorsbackground.png") );
// //
KConfig *cfg= KGlobal::config(); TDEConfig *cfg= TDEGlobal::config();
cfg->setGroup("ShowWidget"); cfg->setGroup("ShowWidget");
QRect rect(32,32,64*4,64*3); TQRect rect(32,32,64*4,64*3);
rect= cfg->readRectEntry ("geometry", &rect); rect= cfg->readRectEntry ("geometry", &rect);
move( rect.topLeft() ); move( rect.topLeft() );
resize( rect.size() ); resize( rect.size() );
@ -73,10 +73,10 @@ LMSensorsWidget::LMSensorsWidget(LMSensors *lsensors,QWidget *parent, const char
LMSensorsWidget::~LMSensorsWidget() LMSensorsWidget::~LMSensorsWidget()
{ {
if(x()>=0 && y()>=0) { if(x()>=0 && y()>=0) {
KConfig *cfg= KGlobal::config(); TDEConfig *cfg= TDEGlobal::config();
cfg->setGroup("ShowWidget"); cfg->setGroup("ShowWidget");
//cfg->writeEntry("geometry" , geometry() ); //cfg->writeEntry("geometry" , geometry() );
cfg->writeEntry( "geometry" , QRect(pos(), size()) ); cfg->writeEntry( "geometry" , TQRect(pos(), size()) );
} }
delete infoPanels; delete infoPanels;
} }
@ -107,7 +107,7 @@ void LMSensorsWidget::slotConfigChanged(const char *name)
* Private methods * * Private methods *
***************************************************************************/ ***************************************************************************/
void LMSensorsWidget::childEvent(QChildEvent *e) void LMSensorsWidget::childEvent(TQChildEvent *e)
{ {
if(e->inserted()) { if(e->inserted()) {
loadDisplayConfig((Panel *)e->child()); loadDisplayConfig((Panel *)e->child());
@ -116,17 +116,17 @@ void LMSensorsWidget::childEvent(QChildEvent *e)
// ************* Draging panels and show menu ************************ // ************* Draging panels and show menu ************************
void LMSensorsWidget::childEventReceived(QEvent *e) void LMSensorsWidget::childEventReceived(TQEvent *e)
{ {
QMouseEvent *m = (QMouseEvent*)e; TQMouseEvent *m = (TQMouseEvent*)e;
switch(e->type()) { switch(e->type()) {
case QEvent::MouseButtonPress: case TQEvent::MouseButtonPress:
if( m->button()==LeftButton ) startDragChild(m,(QWidget *)sender()); if( m->button()==LeftButton ) startDragChild(m,(TQWidget *)sender());
break; break;
case QEvent::MouseButtonRelease: case TQEvent::MouseButtonRelease:
if( m->button()==RightButton ) emit rightMouseClicked(m); if( m->button()==RightButton ) emit rightMouseClicked(m);
break; break;
@ -134,14 +134,14 @@ QMouseEvent *m = (QMouseEvent*)e;
} }
void LMSensorsWidget::startDragChild(QMouseEvent *m, QWidget *w) void LMSensorsWidget::startDragChild(TQMouseEvent *m, TQWidget *w)
{ {
if(childDraging==0) if(childDraging==0)
{ {
childDraging= w; childDraging= w;
grabMouse(sizeAllCursor); grabMouse(sizeAllCursor);
origMousePt = w->mapFromGlobal(m->globalPos()); origMousePt = w->mapFromGlobal(m->globalPos());
//w->move( m->globalPos()-mapToGlobal(QPoint(0,0))-origMousePt); //w->move( m->globalPos()-mapToGlobal(TQPoint(0,0))-origMousePt);
w->raise(); w->raise();
w->update(); w->update();
} }
@ -163,7 +163,7 @@ int y= childDraging->y();
childDraging= 0; childDraging= 0;
} }
void LMSensorsWidget::mouseMoveEvent ( QMouseEvent *m ) void LMSensorsWidget::mouseMoveEvent ( TQMouseEvent *m )
{ {
if(childDraging) if(childDraging)
{ {
@ -173,7 +173,7 @@ void LMSensorsWidget::mouseMoveEvent ( QMouseEvent *m )
} }
void LMSensorsWidget::mouseReleaseEvent ( QMouseEvent *m ) void LMSensorsWidget::mouseReleaseEvent ( TQMouseEvent *m )
{ {
if(childDraging && m->button()==LeftButton) endDragChild(); if(childDraging && m->button()==LeftButton) endDragChild();
else else
@ -186,12 +186,12 @@ void LMSensorsWidget::findUnusedPosition(int *px,int *py)
{ {
bool found; bool found;
uint mx,my,x,y,a[32]; uint mx,my,x,y,a[32];
QObjectList *list= (QObjectList *)children(); TQObjectList *list= (TQObjectList *)children();
for(y=0; y<32; y++) a[y]= 0; for(y=0; y<32; y++) a[y]= 0;
mx= 0; my= 0; mx= 0; my= 0;
if(list) if(list)
for(QWidget *obj= (QWidget *)list->first(); obj!=0; obj= (QWidget *)list->next()) for(TQWidget *obj= (TQWidget *)list->first(); obj!=0; obj= (TQWidget *)list->next())
{ {
y=obj->y()/panelsSize; y=obj->y()/panelsSize;
x=obj->x()/panelsSize; x=obj->x()/panelsSize;
@ -223,8 +223,8 @@ void LMSensorsWidget::loadDisplayConfig(Panel *display)
loadPalette(display); loadPalette(display);
bool fNoCfg; bool fNoCfg;
QPoint p(-1,-1); TQPoint p(-1,-1);
KConfig *cfg= KGlobal::config(); TDEConfig *cfg= TDEGlobal::config();
cfg->setGroup(display->name()); cfg->setGroup(display->name());
p= cfg->readPointEntry("showPos", &p ); p= cfg->readPointEntry("showPos", &p );
fNoCfg= (p.x()<0 || p.y()<0); fNoCfg= (p.x()<0 || p.y()<0);
@ -237,26 +237,26 @@ void LMSensorsWidget::loadDisplayConfig(Panel *display)
adjustSize(); adjustSize();
} }
display->installEventFilter(this); display->installEventFilter(this);
connect(display, SIGNAL(eventReceived(QEvent *)), this, SLOT(childEventReceived(QEvent *)) ); connect(display, SIGNAL(eventReceived(TQEvent *)), this, SLOT(childEventReceived(TQEvent *)) );
} }
void LMSensorsWidget::saveDisplayConfig(Panel *display) void LMSensorsWidget::saveDisplayConfig(Panel *display)
{ {
KConfig *cfg= KGlobal::config(); TDEConfig *cfg= TDEGlobal::config();
cfg->setGroup(display->name()); cfg->setGroup(display->name());
cfg->writeEntry("show",true); cfg->writeEntry("show",true);
QPoint p= display->pos()/panelsSize; TQPoint p= display->pos()/panelsSize;
cfg->writeEntry("showPos",p); cfg->writeEntry("showPos",p);
} }
void LMSensorsWidget::createSensorPanels() void LMSensorsWidget::createSensorPanels()
{ {
QObjectList *chips= sensors->getSensorsChips(); TQObjectList *chips= sensors->getSensorsChips();
if(chips) if(chips)
for(LMSensorsChip *chip= (LMSensorsChip *)chips->first(); chip!=0; chip= (LMSensorsChip *)chips->next()) { for(LMSensorsChip *chip= (LMSensorsChip *)chips->first(); chip!=0; chip= (LMSensorsChip *)chips->next()) {
QObjectList *list= (QObjectList *)chip->getSensors(); TQObjectList *list= (TQObjectList *)chip->getSensors();
if(list) { if(list) {
for(LMSensor *sensor= (LMSensor *)list->first(); sensor!=0; sensor= (LMSensor *)list->next()) { for(LMSensor *sensor= (LMSensor *)list->first(); sensor!=0; sensor= (LMSensor *)list->next()) {
if( Panel::readShow(sensor->name()) ) if( Panel::readShow(sensor->name()) )
@ -268,10 +268,10 @@ void LMSensorsWidget::createSensorPanels()
void LMSensorsWidget::resizePanels(int newSize) void LMSensorsWidget::resizePanels(int newSize)
{ {
QObjectList *panels= (QObjectList *)children(); TQObjectList *panels= (TQObjectList *)children();
if(panels) if(panels)
for(QWidget *panel= (QWidget *)panels->first(); panel!=0; panel= (QWidget *)panels->next()) { for(TQWidget *panel= (TQWidget *)panels->first(); panel!=0; panel= (TQWidget *)panels->next()) {
panel->move( (panel->x()/panelsSize)*newSize, (panel->y()/panelsSize)*newSize); panel->move( (panel->x()/panelsSize)*newSize, (panel->y()/panelsSize)*newSize);
panel->resize(newSize,newSize); panel->resize(newSize,newSize);
} }
@ -281,14 +281,14 @@ QObjectList *panels= (QObjectList *)children();
int LMSensorsWidget::cfgReadPanelSize() int LMSensorsWidget::cfgReadPanelSize()
{ {
KConfig *cfg= KGlobal::config(); TDEConfig *cfg= TDEGlobal::config();
cfg->setGroup( "ShowWidget" ); cfg->setGroup( "ShowWidget" );
return cfg->readNumEntry("PanelsSize",64); return cfg->readNumEntry("PanelsSize",64);
} }
void LMSensorsWidget::cfgWritePanelSize(int newSize) void LMSensorsWidget::cfgWritePanelSize(int newSize)
{ {
KConfig *cfg= KGlobal::config(); TDEConfig *cfg= TDEGlobal::config();
cfg->setGroup( "ShowWidget" ); cfg->setGroup( "ShowWidget" );
cfg->writeEntry("PanelsSize",newSize); cfg->writeEntry("PanelsSize",newSize);
} }
@ -308,7 +308,7 @@ void LMSensorsWidget::loadGeneralOptions()
void LMSensorsWidget::loadPalette(Panel *panel) void LMSensorsWidget::loadPalette(Panel *panel)
{ {
QPalette pal= palette(); TQPalette pal= palette();
if(panel) { if(panel) {
if(cfgReadPalette(pal,panel->name(),false)) panel->setPalette(pal); if(cfgReadPalette(pal,panel->name(),false)) panel->setPalette(pal);
else panel->unsetPalette(); else panel->unsetPalette();
@ -319,26 +319,26 @@ void LMSensorsWidget::loadPalette(Panel *panel)
} }
void LMSensorsWidget::getDefaultPalette(QPalette &pal) void LMSensorsWidget::getDefaultPalette(TQPalette &pal)
{ {
pal.setColor(QColorGroup::Background, Qt::white ); pal.setColor(TQColorGroup::Background, TQt::white );
pal.setColor(QColorGroup::Light , Qt::white ); pal.setColor(TQColorGroup::Light , TQt::white );
pal.setColor(QColorGroup::Dark, Qt::black ); pal.setColor(TQColorGroup::Dark, TQt::black );
pal.setColor(QColorGroup::Foreground, Qt::black ); pal.setColor(TQColorGroup::Foreground, TQt::black );
pal.setColor(QColorGroup::Text, Qt::black ); pal.setColor(TQColorGroup::Text, TQt::black );
} }
bool LMSensorsWidget::cfgReadPalette(QPalette &pal,const char *name, bool returnDefault) bool LMSensorsWidget::cfgReadPalette(TQPalette &pal,const char *name, bool returnDefault)
{ {
KConfig *cfg= KGlobal::config(); TDEConfig *cfg= TDEGlobal::config();
cfg->setGroup( name ? name : "General" ); cfg->setGroup( name ? name : "General" );
if (cfg->readBoolEntry("PaletteActive",false)) { if (cfg->readBoolEntry("PaletteActive",false)) {
pal.setColor(QColorGroup::Background, cfg->readColorEntry("ColorBackground",&Qt::white) ); pal.setColor(TQColorGroup::Background, cfg->readColorEntry("ColorBackground",&TQt::white) );
pal.setColor(QColorGroup::Light , cfg->readColorEntry("ColorBackground",&Qt::white) ); pal.setColor(TQColorGroup::Light , cfg->readColorEntry("ColorBackground",&TQt::white) );
pal.setColor(QColorGroup::Dark, cfg->readColorEntry("ColorShadow" ,&Qt::black) ); pal.setColor(TQColorGroup::Dark, cfg->readColorEntry("ColorShadow" ,&TQt::black) );
pal.setColor(QColorGroup::Foreground, cfg->readColorEntry("ColorValue" ,&Qt::black) ); pal.setColor(TQColorGroup::Foreground, cfg->readColorEntry("ColorValue" ,&TQt::black) );
pal.setColor(QColorGroup::Text, cfg->readColorEntry("ColorTitle" ,&Qt::black) ); pal.setColor(TQColorGroup::Text, cfg->readColorEntry("ColorTitle" ,&TQt::black) );
return true; return true;
} else { } else {
if(returnDefault) { if(returnDefault) {
@ -349,10 +349,10 @@ bool LMSensorsWidget::cfgReadPalette(QPalette &pal,const char *name, bool return
return false; return false;
} }
void LMSensorsWidget::cfgWritePalette(const QPalette &pal,const char *name) void LMSensorsWidget::cfgWritePalette(const TQPalette &pal,const char *name)
{ {
KConfig *cfg= KGlobal::config(); TDEConfig *cfg= TDEGlobal::config();
QColorGroup colors= pal.active(); TQColorGroup colors= pal.active();
cfg->setGroup( name ? name : "General" ); cfg->setGroup( name ? name : "General" );
cfg->writeEntry("PaletteActive",true); cfg->writeEntry("PaletteActive",true);
cfg->writeEntry("ColorBackground",colors.background() ); cfg->writeEntry("ColorBackground",colors.background() );
@ -363,8 +363,8 @@ void LMSensorsWidget::cfgWritePalette(const QPalette &pal,const char *name)
void LMSensorsWidget::cfgUnsetPalette(const char *name) void LMSensorsWidget::cfgUnsetPalette(const char *name)
{ {
KGlobal::config()->setGroup( name ? name : "General" ); TDEGlobal::config()->setGroup( name ? name : "General" );
KGlobal::config()->writeEntry("PaletteActive",false); TDEGlobal::config()->writeEntry("PaletteActive",false);
} }
// *********************************** End ************************************* // *********************************** End *************************************

@ -18,8 +18,8 @@
#ifndef LMSENSORSWIDGET_H #ifndef LMSENSORSWIDGET_H
#define LMSENSORSWIDGET_H #define LMSENSORSWIDGET_H
#include <qwidget.h> #include <ntqwidget.h>
#include <qpixmap.h> #include <ntqpixmap.h>
#include "lmsensors.h" #include "lmsensors.h"
#include "lmsensorpanel.h" #include "lmsensorpanel.h"
@ -29,17 +29,17 @@
*@author Miguel Novas *@author Miguel Novas
*/ */
class LMSensorsWidget : public QWidget { class LMSensorsWidget : public TQWidget {
Q_OBJECT Q_OBJECT
public: public:
LMSensorsWidget(LMSensors *lsensors,QWidget *parent=0, const char *name=0); LMSensorsWidget(LMSensors *lsensors,TQWidget *parent=0, const char *name=0);
~LMSensorsWidget(); ~LMSensorsWidget();
static bool cfgReadPalette(QPalette &pal,const char *name=0, bool returnDefault= false); static bool cfgReadPalette(TQPalette &pal,const char *name=0, bool returnDefault= false);
static void cfgWritePalette(const QPalette &pal,const char *name=0); static void cfgWritePalette(const TQPalette &pal,const char *name=0);
static void cfgUnsetPalette(const char *name=0); static void cfgUnsetPalette(const char *name=0);
static void getDefaultPalette(QPalette &pal); static void getDefaultPalette(TQPalette &pal);
static void cfgWritePanelSize(int newSize); static void cfgWritePanelSize(int newSize);
static int cfgReadPanelSize(); static int cfgReadPanelSize();
@ -49,33 +49,33 @@ protected slots:
signals: signals:
void rightMouseClicked(QMouseEvent *); void rightMouseClicked(TQMouseEvent *);
private: private:
LMSensors *sensors; LMSensors *sensors;
InfoPanels *infoPanels; InfoPanels *infoPanels;
QWidget *childDraging; TQWidget *childDraging;
int panelsSize; int panelsSize;
QPoint origMousePt; TQPoint origMousePt;
void loadPalette(Panel *panel=0); void loadPalette(Panel *panel=0);
void loadDisplayConfig(Panel *display); void loadDisplayConfig(Panel *display);
void saveDisplayConfig(Panel *display); void saveDisplayConfig(Panel *display);
void mouseReleaseEvent ( QMouseEvent *m ); void mouseReleaseEvent ( TQMouseEvent *m );
void mouseMoveEvent ( QMouseEvent *m ); void mouseMoveEvent ( TQMouseEvent *m );
void createSensorPanels(); void createSensorPanels();
void findUnusedPosition(int *px,int *py); void findUnusedPosition(int *px,int *py);
void startDragChild(QMouseEvent *m, QWidget *w); void startDragChild(TQMouseEvent *m, TQWidget *w);
void endDragChild(); void endDragChild();
void resizePanels(int newSize); void resizePanels(int newSize);
void loadGeneralOptions(); void loadGeneralOptions();
private slots: private slots:
void childEvent(QChildEvent *); void childEvent(TQChildEvent *);
void childEventReceived(QEvent *); void childEventReceived(TQEvent *);
}; };

@ -15,9 +15,9 @@
* * * *
***************************************************************************/ ***************************************************************************/
#include <kcmdlineargs.h> #include <tdecmdlineargs.h>
#include <kaboutdata.h> #include <tdeaboutdata.h>
#include <klocale.h> #include <tdelocale.h>
#include <kuniqueapp.h> #include <kuniqueapp.h>
#include "ksensorssplash.h" #include "ksensorssplash.h"
@ -28,7 +28,7 @@ static const char *description =
// INSERT A DESCRIPTION FOR YOUR APPLICATION HERE // INSERT A DESCRIPTION FOR YOUR APPLICATION HERE
static KCmdLineOptions options[] = static TDECmdLineOptions options[] =
{ {
{ "nodock", I18N_NOOP("Don't dock in KDE system tray."), 0 }, { "nodock", I18N_NOOP("Don't dock in KDE system tray."), 0 },
{ "splash", I18N_NOOP("Show splash screen."), 0 }, { "splash", I18N_NOOP("Show splash screen."), 0 },
@ -40,16 +40,16 @@ static KCmdLineOptions options[] =
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
KAboutData aboutData( "ksensors", I18N_NOOP("KSensors"), TDEAboutData aboutData( "ksensors", I18N_NOOP("KSensors"),
VERSION, description, KAboutData::License_GPL, VERSION, description, TDEAboutData::License_GPL,
"(c) 2001, Miguel Novas", 0, 0, "michaell@teleline.es"); "(c) 2001, Miguel Novas", 0, 0, "michaell@teleline.es");
aboutData.addAuthor("Miguel Novas",0, "michaell@teleline.es"); aboutData.addAuthor("Miguel Novas",0, "michaell@teleline.es");
KCmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); TDECmdLineArgs::addCmdLineOptions( options );
KUniqueApplication::addCmdLineOptions(); KUniqueApplication::addCmdLineOptions();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
bool noDock= !args->isSet("dock"); bool noDock= !args->isSet("dock");
bool showSplash= args->isSet("splash"); bool showSplash= args->isSet("splash");
args->clear(); args->clear();
@ -57,7 +57,7 @@ int main(int argc, char *argv[])
if(!KUniqueApplication::start()) return 0; if(!KUniqueApplication::start()) return 0;
KUniqueApplication a; KUniqueApplication a;
KConfig *cfg= kapp->config(); TDEConfig *cfg= kapp->config();
cfg->setGroup("General"); cfg->setGroup("General");
if( cfg->readEntry("Version")!=aboutData.version() ) { if( cfg->readEntry("Version")!=aboutData.version() ) {
cfg->writeEntry("Version",aboutData.version()); cfg->writeEntry("Version",aboutData.version());
@ -67,8 +67,8 @@ int main(int argc, char *argv[])
if(showSplash) (void)new KSensorsSplash(); if(showSplash) (void)new KSensorsSplash();
LMSensorsDock *ksensors= new LMSensorsDock(noDock); LMSensorsDock *ksensors= new LMSensorsDock(noDock);
QObject::connect( ksensors, SIGNAL(destroyed()), kapp, SLOT(quit()) ); TQObject::connect( ksensors, SIGNAL(destroyed()), kapp, SLOT(quit()) );
QObject::connect( kapp, SIGNAL(saveYourself()), ksensors, SLOT(saveConfig()) ); TQObject::connect( kapp, SIGNAL(saveYourself()), ksensors, SLOT(saveConfig()) );
return a.exec(); return a.exec();
} }

@ -18,17 +18,17 @@
#include "palettecfg.h" #include "palettecfg.h"
#include "lmsensorswidget.h" #include "lmsensorswidget.h"
#include <qlabel.h> #include <ntqlabel.h>
#include <qpalette.h> #include <ntqpalette.h>
#include <qcombobox.h> #include <ntqcombobox.h>
#include <kcolorbutton.h> #include <kcolorbutton.h>
PaletteCfg::PaletteCfg(QWidget *parent, const char *name): PaletteCfgDesign(parent,name) PaletteCfg::PaletteCfg(TQWidget *parent, const char *name): PaletteCfgDesign(parent,name)
{ {
groupName= 0; groupName= 0;
slotComboSelected(0); slotComboSelected(0);
connect( comboSelect,SIGNAL(activated(int)),this,SLOT(slotComboSelected(int)) ); connect( comboSelect,SIGNAL(activated(int)),this,SLOT(slotComboSelected(int)) );
connect( buttonColor,SIGNAL(changed(const QColor &)),this,SLOT(slotColorChanged(const QColor &)) ); connect( buttonColor,SIGNAL(changed(const TQColor &)),this,SLOT(slotColorChanged(const TQColor &)) );
connect( buttonDefaultPalette, SIGNAL(clicked()),this,SLOT(slotPaletteDefault()) ); connect( buttonDefaultPalette, SIGNAL(clicked()),this,SLOT(slotPaletteDefault()) );
} }
@ -38,8 +38,8 @@ PaletteCfg::~PaletteCfg()
void PaletteCfg::slotComboSelected(int index) void PaletteCfg::slotComboSelected(int index)
{ {
QColorGroup colors= framePanel->palette().active(); TQColorGroup colors= framePanel->palette().active();
QColor color; TQColor color;
switch(index) { switch(index) {
case 0: color= colors.background(); break; case 0: color= colors.background(); break;
case 1: color= colors.dark(); break; case 1: color= colors.dark(); break;
@ -51,15 +51,15 @@ void PaletteCfg::slotComboSelected(int index)
buttonColor->blockSignals(false); buttonColor->blockSignals(false);
} }
void PaletteCfg::slotColorChanged(const QColor &newColor) void PaletteCfg::slotColorChanged(const TQColor &newColor)
{ {
QPalette pal= framePanel->palette(); TQPalette pal= framePanel->palette();
switch(comboSelect->currentItem()) { switch(comboSelect->currentItem()) {
case 0: pal.setColor(QColorGroup::Background,newColor); case 0: pal.setColor(TQColorGroup::Background,newColor);
pal.setColor(QColorGroup::Light ,newColor); break; pal.setColor(TQColorGroup::Light ,newColor); break;
case 1: pal.setColor(QColorGroup::Dark ,newColor); break; case 1: pal.setColor(TQColorGroup::Dark ,newColor); break;
case 2: pal.setColor(QColorGroup::Text ,newColor); break; case 2: pal.setColor(TQColorGroup::Text ,newColor); break;
case 3: pal.setColor(QColorGroup::Foreground,newColor); break; case 3: pal.setColor(TQColorGroup::Foreground,newColor); break;
default: return; default: return;
} }
setPanelPalette(pal,false); setPanelPalette(pal,false);
@ -69,7 +69,7 @@ void PaletteCfg::slotColorChanged(const QColor &newColor)
void PaletteCfg::slotPaletteDefault() void PaletteCfg::slotPaletteDefault()
{ {
palDefault= true; palDefault= true;
QPalette pal; TQPalette pal;
if(groupName) { if(groupName) {
LMSensorsWidget::cfgReadPalette(pal,"General",true); LMSensorsWidget::cfgReadPalette(pal,"General",true);
} else { } else {
@ -78,7 +78,7 @@ void PaletteCfg::slotPaletteDefault()
setPanelPalette(pal,true); setPanelPalette(pal,true);
} }
void PaletteCfg::setPanelPalette(const QPalette &pal, bool updateColorButton) void PaletteCfg::setPanelPalette(const TQPalette &pal, bool updateColorButton)
{ {
labelTitle->unsetPalette(); labelTitle->unsetPalette();
framePanel->setPalette(pal); framePanel->setPalette(pal);
@ -89,7 +89,7 @@ void PaletteCfg::setPanelPalette(const QPalette &pal, bool updateColorButton)
void PaletteCfg::readPalette(const char *name) void PaletteCfg::readPalette(const char *name)
{ {
groupName= name; groupName= name;
QPalette pal; TQPalette pal;
palDefault= !LMSensorsWidget::cfgReadPalette(pal,name,false); palDefault= !LMSensorsWidget::cfgReadPalette(pal,name,false);
if(palDefault) LMSensorsWidget::cfgReadPalette(pal,"General",true); if(palDefault) LMSensorsWidget::cfgReadPalette(pal,"General",true);
setPanelPalette(pal,true); setPanelPalette(pal,true);

@ -20,7 +20,7 @@
#include <palettecfgdesign.h> #include <palettecfgdesign.h>
#include <kconfig.h> #include <tdeconfig.h>
/** /**
*@author Miguel Novas *@author Miguel Novas
@ -29,7 +29,7 @@
class PaletteCfg : public PaletteCfgDesign { class PaletteCfg : public PaletteCfgDesign {
Q_OBJECT Q_OBJECT
public: public:
PaletteCfg(QWidget *parent=0, const char *name=0); PaletteCfg(TQWidget *parent=0, const char *name=0);
~PaletteCfg(); ~PaletteCfg();
void readPalette(const char *name); void readPalette(const char *name);
@ -38,7 +38,7 @@ public:
protected slots: protected slots:
void slotComboSelected(int index); void slotComboSelected(int index);
void slotColorChanged(const QColor &newColor); void slotColorChanged(const TQColor &newColor);
void slotPaletteDefault(); void slotPaletteDefault();
private: private:
@ -46,7 +46,7 @@ private:
bool palDefault; bool palDefault;
const char *groupName; const char *groupName;
void setPanelPalette(const QPalette &pal, bool updateColorButton=false); void setPanelPalette(const TQPalette &pal, bool updateColorButton=false);
}; };
#endif #endif

@ -1,4 +1,4 @@
#include <klocale.h> #include <tdelocale.h>
/**************************************************************************** /****************************************************************************
** Form implementation generated from reading ui file './palettecfgdesign.ui' ** Form implementation generated from reading ui file './palettecfgdesign.ui'
** **
@ -10,117 +10,117 @@
#include "palettecfgdesign.h" #include "palettecfgdesign.h"
#include <qvariant.h> #include <ntqvariant.h>
#include <qframe.h> #include <ntqframe.h>
#include <qlabel.h> #include <ntqlabel.h>
#include <qpushbutton.h> #include <ntqpushbutton.h>
#include <qcombobox.h> #include <ntqcombobox.h>
#include <kcolorbutton.h> #include <kcolorbutton.h>
#include <qlayout.h> #include <ntqlayout.h>
#include <qtooltip.h> #include <ntqtooltip.h>
#include <qwhatsthis.h> #include <ntqwhatsthis.h>
/* /*
* Constructs a PaletteCfgDesign as a child of 'parent', with the * Constructs a PaletteCfgDesign as a child of 'parent', with the
* name 'name' and widget flags set to 'f'. * name 'name' and widget flags set to 'f'.
*/ */
PaletteCfgDesign::PaletteCfgDesign( QWidget* parent, const char* name, WFlags fl ) PaletteCfgDesign::PaletteCfgDesign( TQWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl ) : TQWidget( parent, name, fl )
{ {
if ( !name ) if ( !name )
setName( "PaletteCfgDesign" ); setName( "PaletteCfgDesign" );
setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) ); setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
PaletteCfgDesignLayout = new QGridLayout( this, 1, 1, 0, 6, "PaletteCfgDesignLayout"); PaletteCfgDesignLayout = new TQGridLayout( this, 1, 1, 0, 6, "PaletteCfgDesignLayout");
framePanel = new QFrame( this, "framePanel" ); framePanel = new TQFrame( this, "framePanel" );
framePanel->setMinimumSize( QSize( 64, 64 ) ); framePanel->setMinimumSize( TQSize( 64, 64 ) );
framePanel->setMaximumSize( QSize( 64, 64 ) ); framePanel->setMaximumSize( TQSize( 64, 64 ) );
QPalette pal; TQPalette pal;
QColorGroup cg; TQColorGroup cg;
cg.setColor( QColorGroup::Foreground, black ); cg.setColor( TQColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 241, 241, 241) ); cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black ); cg.setColor( TQColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, white ); cg.setColor( TQColorGroup::Background, white );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
cg.setColor( QColorGroup::Link, black ); cg.setColor( TQColorGroup::Link, black );
cg.setColor( QColorGroup::LinkVisited, black ); cg.setColor( TQColorGroup::LinkVisited, black );
pal.setActive( cg ); pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black ); cg.setColor( TQColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, white ); cg.setColor( TQColorGroup::Midlight, white );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black ); cg.setColor( TQColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, white ); cg.setColor( TQColorGroup::Background, white );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
cg.setColor( QColorGroup::Link, black ); cg.setColor( TQColorGroup::Link, black );
cg.setColor( QColorGroup::LinkVisited, black ); cg.setColor( TQColorGroup::LinkVisited, black );
pal.setInactive( cg ); pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
cg.setColor( QColorGroup::Light, white ); cg.setColor( TQColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, white ); cg.setColor( TQColorGroup::Midlight, white );
cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
cg.setColor( QColorGroup::Text, black ); cg.setColor( TQColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white ); cg.setColor( TQColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) );
cg.setColor( QColorGroup::Base, white ); cg.setColor( TQColorGroup::Base, white );
cg.setColor( QColorGroup::Background, white ); cg.setColor( TQColorGroup::Background, white );
cg.setColor( QColorGroup::Shadow, black ); cg.setColor( TQColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( TQColorGroup::HighlightedText, white );
cg.setColor( QColorGroup::Link, black ); cg.setColor( TQColorGroup::Link, black );
cg.setColor( QColorGroup::LinkVisited, black ); cg.setColor( TQColorGroup::LinkVisited, black );
pal.setDisabled( cg ); pal.setDisabled( cg );
framePanel->setPalette( pal ); framePanel->setPalette( pal );
framePanel->setFrameShape( QFrame::Panel ); framePanel->setFrameShape( TQFrame::Panel );
framePanel->setFrameShadow( QFrame::Raised ); framePanel->setFrameShadow( TQFrame::Raised );
labelTitle = new QLabel( framePanel, "labelTitle" ); labelTitle = new TQLabel( framePanel, "labelTitle" );
labelTitle->setGeometry( QRect( 8, 40, 50, 20 ) ); labelTitle->setGeometry( TQRect( 8, 40, 50, 20 ) );
QFont labelTitle_font( labelTitle->font() ); TQFont labelTitle_font( labelTitle->font() );
labelTitle_font.setPointSize( 7 ); labelTitle_font.setPointSize( 7 );
labelTitle->setFont( labelTitle_font ); labelTitle->setFont( labelTitle_font );
labelTitle->setAlignment( int( QLabel::AlignCenter ) ); labelTitle->setAlignment( int( TQLabel::AlignCenter ) );
labelValue = new QLabel( framePanel, "labelValue" ); labelValue = new TQLabel( framePanel, "labelValue" );
labelValue->setGeometry( QRect( 7, 16, 50, 20 ) ); labelValue->setGeometry( TQRect( 7, 16, 50, 20 ) );
labelValue->setAlignment( int( QLabel::AlignCenter ) ); labelValue->setAlignment( int( TQLabel::AlignCenter ) );
PaletteCfgDesignLayout->addMultiCellWidget( framePanel, 0, 1, 0, 0 ); PaletteCfgDesignLayout->addMultiCellWidget( framePanel, 0, 1, 0, 0 );
buttonDefaultPalette = new QPushButton( this, "buttonDefaultPalette" ); buttonDefaultPalette = new TQPushButton( this, "buttonDefaultPalette" );
buttonDefaultPalette->setMinimumSize( QSize( 0, 22 ) ); buttonDefaultPalette->setMinimumSize( TQSize( 0, 22 ) );
PaletteCfgDesignLayout->addMultiCellWidget( buttonDefaultPalette, 1, 1, 1, 2 ); PaletteCfgDesignLayout->addMultiCellWidget( buttonDefaultPalette, 1, 1, 1, 2 );
comboSelect = new QComboBox( FALSE, this, "comboSelect" ); comboSelect = new TQComboBox( FALSE, this, "comboSelect" );
comboSelect->setMinimumSize( QSize( 0, 22 ) ); comboSelect->setMinimumSize( TQSize( 0, 22 ) );
PaletteCfgDesignLayout->addWidget( comboSelect, 0, 1 ); PaletteCfgDesignLayout->addWidget( comboSelect, 0, 1 );
buttonColor = new KColorButton( this, "buttonColor" ); buttonColor = new KColorButton( this, "buttonColor" );
buttonColor->setMinimumSize( QSize( 0, 22 ) ); buttonColor->setMinimumSize( TQSize( 0, 22 ) );
PaletteCfgDesignLayout->addWidget( buttonColor, 0, 2 ); PaletteCfgDesignLayout->addWidget( buttonColor, 0, 2 );
languageChange(); languageChange();
resize( QSize(287, 74).expandedTo(minimumSizeHint()) ); resize( TQSize(287, 74).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished ); clearWState( WState_Polished );
} }
@ -129,7 +129,7 @@ PaletteCfgDesign::PaletteCfgDesign( QWidget* parent, const char* name, WFlags fl
*/ */
PaletteCfgDesign::~PaletteCfgDesign() PaletteCfgDesign::~PaletteCfgDesign()
{ {
// no need to delete child widgets, Qt does it all for us // no need to delete child widgets, TQt does it all for us
} }
/* /*
@ -147,7 +147,7 @@ void PaletteCfgDesign::languageChange()
comboSelect->insertItem( tr2i18n( "Border" ) ); comboSelect->insertItem( tr2i18n( "Border" ) );
comboSelect->insertItem( tr2i18n( "Title" ) ); comboSelect->insertItem( tr2i18n( "Title" ) );
comboSelect->insertItem( tr2i18n( "Value" ) ); comboSelect->insertItem( tr2i18n( "Value" ) );
buttonColor->setText( QString::null ); buttonColor->setText( TQString::null );
} }
#include "palettecfgdesign.moc" #include "palettecfgdesign.moc"

@ -10,37 +10,37 @@
#ifndef PALETTECFGDESIGN_H #ifndef PALETTECFGDESIGN_H
#define PALETTECFGDESIGN_H #define PALETTECFGDESIGN_H
#include <qvariant.h> #include <ntqvariant.h>
#include <qwidget.h> #include <ntqwidget.h>
#include <kcolorbutton.h> #include <kcolorbutton.h>
class QVBoxLayout; class TQVBoxLayout;
class QHBoxLayout; class TQHBoxLayout;
class QGridLayout; class TQGridLayout;
class QSpacerItem; class TQSpacerItem;
class QFrame; class TQFrame;
class QLabel; class TQLabel;
class QPushButton; class TQPushButton;
class QComboBox; class TQComboBox;
class KColorButton; class KColorButton;
class PaletteCfgDesign : public QWidget class PaletteCfgDesign : public TQWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
PaletteCfgDesign( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); PaletteCfgDesign( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~PaletteCfgDesign(); ~PaletteCfgDesign();
QFrame* framePanel; TQFrame* framePanel;
QLabel* labelTitle; TQLabel* labelTitle;
QLabel* labelValue; TQLabel* labelValue;
QPushButton* buttonDefaultPalette; TQPushButton* buttonDefaultPalette;
QComboBox* comboSelect; TQComboBox* comboSelect;
KColorButton* buttonColor; KColorButton* buttonColor;
protected: protected:
QGridLayout* PaletteCfgDesignLayout; TQGridLayout* PaletteCfgDesignLayout;
protected slots: protected slots:
virtual void languageChange(); virtual void languageChange();

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>PaletteCfgDesign</class> <class>PaletteCfgDesign</class>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>PaletteCfgDesign</cstring> <cstring>PaletteCfgDesign</cstring>
</property> </property>
@ -35,7 +35,7 @@
<property name="spacing"> <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>
<widget class="QFrame" row="0" column="0" rowspan="2" colspan="1"> <widget class="TQFrame" row="0" column="0" rowspan="2" colspan="1">
<property name="name"> <property name="name">
<cstring>framePanel</cstring> <cstring>framePanel</cstring>
</property> </property>
@ -307,7 +307,7 @@
<property name="frameShadow"> <property name="frameShadow">
<enum>Raised</enum> <enum>Raised</enum>
</property> </property>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>labelTitle</cstring> <cstring>labelTitle</cstring>
</property> </property>
@ -333,7 +333,7 @@
<property name="hAlign" stdset="0"> <property name="hAlign" stdset="0">
</property> </property>
</widget> </widget>
<widget class="QLabel"> <widget class="TQLabel">
<property name="name"> <property name="name">
<cstring>labelValue</cstring> <cstring>labelValue</cstring>
</property> </property>
@ -355,7 +355,7 @@
</property> </property>
</widget> </widget>
</widget> </widget>
<widget class="QPushButton" row="1" column="1" rowspan="1" colspan="2"> <widget class="TQPushButton" row="1" column="1" rowspan="1" colspan="2">
<property name="name"> <property name="name">
<cstring>buttonDefaultPalette</cstring> <cstring>buttonDefaultPalette</cstring>
</property> </property>
@ -369,7 +369,7 @@
<string>Default colors</string> <string>Default colors</string>
</property> </property>
</widget> </widget>
<widget class="QComboBox" row="0" column="1"> <widget class="TQComboBox" row="0" column="1">
<item> <item>
<property name="text"> <property name="text">
<string>Background</string> <string>Background</string>

@ -17,11 +17,11 @@
#include "panel.h" #include "panel.h"
#include <kglobal.h> #include <tdeglobal.h>
Panel::Panel(QWidget *parent, const char *name) : QFrame(parent,name) Panel::Panel(TQWidget *parent, const char *name) : TQFrame(parent,name)
{ {
setFrameStyle(QFrame::Panel|QFrame::Raised); setFrameStyle(TQFrame::Panel|TQFrame::Raised);
resize(64,64); resize(64,64);
installEventFilter(this); installEventFilter(this);
} }
@ -32,7 +32,7 @@ Panel::~Panel(){
// Maybe another better solution to capture childs of child widgets events ??? // Maybe another better solution to capture childs of child widgets events ???
bool Panel::eventFilter( QObject *o , QEvent *e) bool Panel::eventFilter( TQObject *o , TQEvent *e)
{ {
emit eventReceived(e); emit eventReceived(e);
return false; return false;
@ -43,14 +43,14 @@ bool Panel::eventFilter( QObject *o , QEvent *e)
bool Panel::readShow(const char *name) bool Panel::readShow(const char *name)
{ {
KGlobal::config()->setGroup(name); TDEGlobal::config()->setGroup(name);
return KGlobal::config()->readBoolEntry("show",false); return TDEGlobal::config()->readBoolEntry("show",false);
} }
void Panel::writeShow(const char *name, bool fShow) void Panel::writeShow(const char *name, bool fShow)
{ {
KGlobal::config()->setGroup(name); TDEGlobal::config()->setGroup(name);
KGlobal::config()->writeEntry("show",fShow); TDEGlobal::config()->writeEntry("show",fShow);
} }

@ -18,23 +18,23 @@
#ifndef PANEL_H #ifndef PANEL_H
#define PANEL_H #define PANEL_H
#include <qframe.h> #include <ntqframe.h>
#include <kconfig.h> #include <tdeconfig.h>
#include <qpalette.h> #include <ntqpalette.h>
/** /**
*@author Miguel Novas *@author Miguel Novas
*/ */
class Panel : public QFrame { class Panel : public TQFrame {
Q_OBJECT Q_OBJECT
public: public:
Panel(QWidget *parent, const char *name); Panel(TQWidget *parent, const char *name);
~Panel(); ~Panel();
inline const QColor &getColorTitle() { return colorGroup().text(); }; inline const TQColor &getColorTitle() { return colorGroup().text(); };
inline const QColor &getColorValue() { return colorGroup().foreground(); }; inline const TQColor &getColorValue() { return colorGroup().foreground(); };
static bool readShow (const char *name); static bool readShow (const char *name);
static void writeShow(const char *name, bool fShow); static void writeShow(const char *name, bool fShow);
@ -45,11 +45,11 @@ public slots:
signals: signals:
void eventReceived(QEvent *); void eventReceived(TQEvent *);
private: private:
bool eventFilter( QObject *o , QEvent *e); bool eventFilter( TQObject *o , TQEvent *e);
}; };
#endif #endif

@ -18,18 +18,18 @@
#ifndef PANELSGROUP_H #ifndef PANELSGROUP_H
#define PANELSGROUP_H #define PANELSGROUP_H
#include <qobject.h> #include <ntqobject.h>
#include <panel.h> #include <panel.h>
/** /**
*@author Miguel Novas *@author Miguel Novas
*/ */
class PanelsGroup : public QObject { class PanelsGroup : public TQObject {
Q_OBJECT Q_OBJECT
public: public:
PanelsGroup(QWidget *widget, QObject *parent=0, const char *name=0) {}; PanelsGroup(TQWidget *widget, TQObject *parent=0, const char *name=0) {};
~PanelsGroup() {}; ~PanelsGroup() {};

@ -18,11 +18,11 @@
#include <string.h> #include <string.h>
#include "processexec.h" #include "processexec.h"
ProcessExec::ProcessExec(): KProcess() ProcessExec::ProcessExec(): TDEProcess()
{ {
clearData(); clearData();
connect( this, SIGNAL(receivedStdout(KProcess *, char *, int)),this, SLOT(slotReceivedStdout(KProcess *, char *, int)) ); connect( this, SIGNAL(receivedStdout(TDEProcess *, char *, int)),this, SLOT(slotReceivedStdout(TDEProcess *, char *, int)) );
connect( this, SIGNAL(receivedStderr(KProcess *, char *, int)),this, SLOT(slotReceivedStderr(KProcess *, char *, int)) ); connect( this, SIGNAL(receivedStderr(TDEProcess *, char *, int)),this, SLOT(slotReceivedStderr(TDEProcess *, char *, int)) );
} }
ProcessExec::~ProcessExec(){ ProcessExec::~ProcessExec(){
@ -40,12 +40,12 @@ bool ProcessExec::runAndWait()
return start(Block,Communication(Stdout | Stderr)); return start(Block,Communication(Stdout | Stderr));
} }
void ProcessExec::slotReceivedStdout(KProcess *proc, char *buf, int len) void ProcessExec::slotReceivedStdout(TDEProcess *proc, char *buf, int len)
{ {
buffer = QString(buf); buffer = TQString(buf);
} }
void ProcessExec::slotReceivedStderr(KProcess *proc, char *buf, int len) void ProcessExec::slotReceivedStderr(TDEProcess *proc, char *buf, int len)
{ {
fErrors= true; fErrors= true;
slotReceivedStdout(proc,buf,len); slotReceivedStdout(proc,buf,len);

@ -25,7 +25,7 @@
*@author asdf *@author asdf
*/ */
class ProcessExec : public KProcess { class ProcessExec : public TDEProcess {
Q_OBJECT Q_OBJECT
public: public:
ProcessExec(); ProcessExec();
@ -35,19 +35,19 @@ public:
bool runAndWait(); bool runAndWait();
bool outputErrors() { return fErrors; }; bool outputErrors() { return fErrors; };
inline QString getStdoutData() { return buffer; }; inline TQString getStdoutData() { return buffer; };
inline unsigned int getStdoutDataLen() { return buffer.length(); } inline unsigned int getStdoutDataLen() { return buffer.length(); }
inline void clearData() { buffer.truncate(0); fErrors= false; }; inline void clearData() { buffer.truncate(0); fErrors= false; };
protected slots: protected slots:
void slotReceivedStdout(KProcess *proc, char *buf, int len); void slotReceivedStdout(TDEProcess *proc, char *buf, int len);
void slotReceivedStderr(KProcess *proc, char *buf, int len); void slotReceivedStderr(TDEProcess *proc, char *buf, int len);
private: private:
static const int bufMax= 1023; static const int bufMax= 1023;
QString buffer; TQString buffer;
bool fErrors; bool fErrors;
}; };

@ -17,7 +17,7 @@
#include "qbarmeter.h" #include "qbarmeter.h"
QBarMeter::QBarMeter(QWidget *parent, const char *name): QWidget(parent,name) TQBarMeter::TQBarMeter(TQWidget *parent, const char *name): TQWidget(parent,name)
{ {
count = 1; count = 1;
val[0] = 0; val[0] = 0;
@ -30,17 +30,17 @@ QBarMeter::QBarMeter(QWidget *parent, const char *name): QWidget(parent,name)
} }
QBarMeter::~QBarMeter() TQBarMeter::~TQBarMeter()
{ {
} }
void QBarMeter::setDirection(Direction newDir) void TQBarMeter::setDirection(Direction newDir)
{ {
dir= newDir; dir= newDir;
update(); update();
} }
void QBarMeter::useValueMax(bool flag) void TQBarMeter::useValueMax(bool flag)
{ {
if(useValMax!=flag) { if(useValMax!=flag) {
useValMax= flag; useValMax= flag;
@ -48,7 +48,7 @@ void QBarMeter::useValueMax(bool flag)
} }
} }
void QBarMeter::setValueMax(double newVal) void TQBarMeter::setValueMax(double newVal)
{ {
if(valMax!=newVal) { if(valMax!=newVal) {
valMax= newVal; valMax= newVal;
@ -56,14 +56,14 @@ void QBarMeter::setValueMax(double newVal)
} }
} }
void QBarMeter::setValueMaxColor(const QColor &newColor) void TQBarMeter::setValueMaxColor(const TQColor &newColor)
{ {
maxColor= newColor; maxColor= newColor;
update(); update();
} }
void QBarMeter::setValue(double newVal) void TQBarMeter::setValue(double newVal)
{ {
if(val[0]!=newVal) { if(val[0]!=newVal) {
val[0]= newVal; val[0]= newVal;
@ -71,13 +71,13 @@ void QBarMeter::setValue(double newVal)
} }
} }
void QBarMeter::setValueColor(const QColor &newColor) void TQBarMeter::setValueColor(const TQColor &newColor)
{ {
color[0]= newColor; color[0]= newColor;
update(); update();
} }
void QBarMeter::setValue(int index, double newVal) void TQBarMeter::setValue(int index, double newVal)
{ {
if(val[index]!=newVal) { if(val[index]!=newVal) {
val[index]= newVal; val[index]= newVal;
@ -85,7 +85,7 @@ void QBarMeter::setValue(int index, double newVal)
} }
} }
void QBarMeter::setValueColor(int index, const QColor &newColor) void TQBarMeter::setValueColor(int index, const TQColor &newColor)
{ {
if(color[index]!=newColor) { if(color[index]!=newColor) {
color[index]= newColor; color[index]= newColor;
@ -94,7 +94,7 @@ void QBarMeter::setValueColor(int index, const QColor &newColor)
} }
void QBarMeter::setValueCount(int newCount) void TQBarMeter::setValueCount(int newCount)
{ {
if(count!=newCount) { if(count!=newCount) {
count= newCount; count= newCount;
@ -102,13 +102,13 @@ void QBarMeter::setValueCount(int newCount)
} }
} }
void QBarMeter::setSteps(int newSteps) void TQBarMeter::setSteps(int newSteps)
{ {
steps= newSteps; steps= newSteps;
update(); update();
} }
void QBarMeter::paintEvent( QPaintEvent *) void TQBarMeter::paintEvent( TQPaintEvent *)
{ {
int x,y,lx,ly,sx,sy; int x,y,lx,ly,sx,sy;
switch(dir) { switch(dir) {
@ -151,7 +151,7 @@ void QBarMeter::paintEvent( QPaintEvent *)
} }
int csteps= steps; int csteps= steps;
QPainter p(this); TQPainter p(this);
for(int i= 0; i<count; i++) { for(int i= 0; i<count; i++) {
int v= (int) ( ((double)steps * val[i]) / valMax +0.5); int v= (int) ( ((double)steps * val[i]) / valMax +0.5);

@ -15,49 +15,49 @@
* * * *
***************************************************************************/ ***************************************************************************/
#ifndef QBARMETER_H #ifndef TQBARMETER_H
#define QBARMETER_H #define TQBARMETER_H
#include <qpainter.h> #include <ntqpainter.h>
#include <qwidget.h> #include <ntqwidget.h>
#include <qcolor.h> #include <ntqcolor.h>
/** /**
*@author Miguel Novas *@author Miguel Novas
*/ */
class QBarMeter: public QWidget { class TQBarMeter: public TQWidget {
Q_OBJECT Q_OBJECT
public: public:
enum Direction { dirLeft, dirRight ,dirUp, dirDown }; enum Direction { dirLeft, dirRight ,dirUp, dirDown };
QBarMeter(QWidget *parent=0, const char *name=0); TQBarMeter(TQWidget *parent=0, const char *name=0);
~QBarMeter(); ~TQBarMeter();
void setDirection(Direction dir); void setDirection(Direction dir);
void setValueMax(double newVal); void setValueMax(double newVal);
void setValue(double newVal); void setValue(double newVal);
void setValueColor(const QColor &newColor); void setValueColor(const TQColor &newColor);
void setValueMaxColor(const QColor &newColor); void setValueMaxColor(const TQColor &newColor);
void setSteps(int newSteps); void setSteps(int newSteps);
void setValue(int index, double newVal); void setValue(int index, double newVal);
void setValueColor(int index, const QColor &newColor); void setValueColor(int index, const TQColor &newColor);
void setValueCount(int count); void setValueCount(int count);
void useValueMax(bool flag); void useValueMax(bool flag);
protected: protected:
double val[8]; double val[8];
QColor color[8]; TQColor color[8];
bool useValMax; bool useValMax;
double valMax; double valMax;
QColor maxColor; TQColor maxColor;
int count; int count;
int steps; int steps;
Direction dir; Direction dir;
void paintEvent( QPaintEvent *); void paintEvent( TQPaintEvent *);
}; };
#endif #endif

@ -18,16 +18,16 @@
#include "qdialarc.h" #include "qdialarc.h"
#include <qpainter.h> #include <ntqpainter.h>
#include <math.h> #include <math.h>
#include <stdlib.h> #include <stdlib.h>
#define qdegreesToRadians(n) ((-(n))*M_PI*2/(360*16)) #define qdegreesToRadians(n) ((-(n))*M_PI*2/(360*16))
#define valToQDegrees(n) (int)(((n)-valMin)*angleLen/(valMax-valMin)+angleStart+0.5) #define valToTQDegrees(n) (int)(((n)-valMin)*angleLen/(valMax-valMin)+angleStart+0.5)
QDialArc::QDialArc(QWidget *parent, const char *name ) : QWidget(parent,name) TQDialArc::TQDialArc(TQWidget *parent, const char *name ) : TQWidget(parent,name)
{ {
val = 0; val = 0;
valMin = 0; valMin = 0;
@ -40,20 +40,20 @@ QDialArc::QDialArc(QWidget *parent, const char *name ) : QWidget(parent,name)
angleLen = 360*16; angleLen = 360*16;
fShowMarks = false; fShowMarks = false;
fCalcParams = true; fCalcParams = true;
colorMin = Qt::green; colorMin = TQt::green;
colorMax = Qt::red; colorMax = TQt::red;
arrowColor = foregroundColor(); arrowColor = foregroundColor();
} }
QDialArc::~QDialArc(){ TQDialArc::~TQDialArc(){
} }
void QDialArc::setValue(double value) void TQDialArc::setValue(double value)
{ {
if(value>valMax) value= valMax; if(value>valMax) value= valMax;
else if(value<valMin) value= valMin; else if(value<valMin) value= valMin;
if(val!=value) { if(val!=value) {
QPainter p(this); TQPainter p(this);
p.setPen(backgroundColor()); p.setPen(backgroundColor());
drawArrow(&p,val); drawArrow(&p,val);
val= value; val= value;
@ -63,21 +63,21 @@ void QDialArc::setValue(double value)
} }
void QDialArc::setValueMin(double value) void TQDialArc::setValueMin(double value)
{ {
valMin= value; valMin= value;
paramsChanged(); paramsChanged();
} }
void QDialArc::setValueMax(double value) void TQDialArc::setValueMax(double value)
{ {
valMax= value; valMax= value;
paramsChanged(); paramsChanged();
} }
void QDialArc::setValueRanges(double min,double max) void TQDialArc::setValueRanges(double min,double max)
{ {
valMin= min; valMin= min;
valMax= max; valMax= max;
@ -85,53 +85,53 @@ void QDialArc::setValueRanges(double min,double max)
} }
void QDialArc::setValueLimitRanges (double min,double max) void TQDialArc::setValueLimitRanges (double min,double max)
{ {
valMinLimit= min; valMinLimit= min;
valMaxLimit= max; valMaxLimit= max;
update(); update();
} }
void QDialArc::setAngle(int value) void TQDialArc::setAngle(int value)
{ {
angleStart= value*16; angleStart= value*16;
paramsChanged(); paramsChanged();
} }
void QDialArc::setAngleLen(int value) void TQDialArc::setAngleLen(int value)
{ {
angleLen= value*16; angleLen= value*16;
paramsChanged(); paramsChanged();
} }
void QDialArc::setAngles(int angle,int len) void TQDialArc::setAngles(int angle,int len)
{ {
angleStart= angle*16; angleStart= angle*16;
angleLen = len*16; angleLen = len*16;
paramsChanged(); paramsChanged();
} }
void QDialArc::setColorMin(const QColor &color) void TQDialArc::setColorMin(const TQColor &color)
{ {
colorMin= color; colorMin= color;
update(); update();
} }
void QDialArc::setColorMid(const QColor &color) void TQDialArc::setColorMid(const TQColor &color)
{ {
colorMid= color; colorMid= color;
update(); update();
} }
void QDialArc::setColorMax(const QColor &color) void TQDialArc::setColorMax(const TQColor &color)
{ {
colorMax= color; colorMax= color;
update(); update();
} }
void QDialArc::setColorRanges(const QColor &min,const QColor &mid,const QColor &max) void TQDialArc::setColorRanges(const TQColor &min,const TQColor &mid,const TQColor &max)
{ {
colorMin= min; colorMin= min;
colorMid= mid; colorMid= mid;
@ -139,40 +139,40 @@ void QDialArc::setColorRanges(const QColor &min,const QColor &mid,const QColor &
update(); update();
} }
void QDialArc::setValueMinLimit(double value, int percent) void TQDialArc::setValueMinLimit(double value, int percent)
{ {
valMinLimit= value; valMinLimit= value;
valMinLimitPercent= percent; valMinLimitPercent= percent;
update(); update();
} }
void QDialArc::setValueMaxLimit(double value, int percent) void TQDialArc::setValueMaxLimit(double value, int percent)
{ {
valMaxLimit= value; valMaxLimit= value;
valMaxLimitPercent= percent; valMaxLimitPercent= percent;
update(); update();
} }
void QDialArc::setValueMinLimitPercent(int value) void TQDialArc::setValueMinLimitPercent(int value)
{ {
valMinLimitPercent=value; valMinLimitPercent=value;
update(); update();
} }
void QDialArc::setValueMaxLimitPercent(int value) void TQDialArc::setValueMaxLimitPercent(int value)
{ {
valMaxLimitPercent=value; valMaxLimitPercent=value;
update(); update();
} }
void QDialArc::setShowMarks (bool flag) void TQDialArc::setShowMarks (bool flag)
{ {
fShowMarks= flag; fShowMarks= flag;
update(); update();
} }
void QDialArc::setArrowColor(const QColor &color) void TQDialArc::setArrowColor(const TQColor &color)
{ {
arrowColor= color; arrowColor= color;
} }
@ -180,7 +180,7 @@ void QDialArc::setArrowColor(const QColor &color)
//***************************************************************** //*****************************************************************
void QDialArc::resizeEvent( QResizeEvent *) void TQDialArc::resizeEvent( TQResizeEvent *)
{ {
paramsChanged(); paramsChanged();
} }
@ -188,7 +188,7 @@ void QDialArc::resizeEvent( QResizeEvent *)
//***************************************************************** //*****************************************************************
void QDialArc::drawMarks(QPainter *p,int l1,int l2) void TQDialArc::drawMarks(TQPainter *p,int l1,int l2)
{ {
int a; int a;
double r,co,se; double r,co,se;
@ -211,7 +211,7 @@ double r,co,se;
} }
void QDialArc::drawArc(QPainter *p,int l1,int l2,const QColor &color) void TQDialArc::drawArc(TQPainter *p,int l1,int l2,const TQColor &color)
{ {
p->setPen(color); p->setPen(color);
p->drawArc(centerx-radius,centery-radius,radius*2,radius*2, l1, l2-l1+1); p->drawArc(centerx-radius,centery-radius,radius*2,radius*2, l1, l2-l1+1);
@ -219,9 +219,9 @@ void QDialArc::drawArc(QPainter *p,int l1,int l2,const QColor &color)
} }
void QDialArc::drawArrow(QPainter *p, double value) void TQDialArc::drawArrow(TQPainter *p, double value)
{ {
double r= qdegreesToRadians(valToQDegrees(value)); double r= qdegreesToRadians(valToTQDegrees(value));
p->drawLine(centerx, p->drawLine(centerx,
centery, centery,
@ -230,29 +230,29 @@ double r= qdegreesToRadians(valToQDegrees(value));
); );
} }
void QDialArc::paintEvent ( QPaintEvent *) void TQDialArc::paintEvent ( TQPaintEvent *)
{ {
int l0,l1,l2,l3,l4,l5; int l0,l1,l2,l3,l4,l5;
QPainter p(this); TQPainter p(this);
if(fCalcParams) calcParams(); if(fCalcParams) calcParams();
l0= angleStart; l0= angleStart;
l1= valToQDegrees(valMinLimit); l1= valToTQDegrees(valMinLimit);
l2= valToQDegrees(valMinLimit+(valMaxLimit-valMinLimit)*valMinLimitPercent/100); l2= valToTQDegrees(valMinLimit+(valMaxLimit-valMinLimit)*valMinLimitPercent/100);
l3= valToQDegrees(valMaxLimit-(valMaxLimit-valMinLimit)*valMaxLimitPercent/100); l3= valToTQDegrees(valMaxLimit-(valMaxLimit-valMinLimit)*valMaxLimitPercent/100);
l4= valToQDegrees(valMaxLimit); l4= valToTQDegrees(valMaxLimit);
l5= angleStart+angleLen; l5= angleStart+angleLen;
drawArc(&p,l0,l1,colorMin); drawArc(&p,l0,l1,colorMin);
drawArc(&p,l1,l2, QColor( (colorMin.red() +colorMid.red() )/2, drawArc(&p,l1,l2, TQColor( (colorMin.red() +colorMid.red() )/2,
(colorMin.green()+colorMid.green())/2, (colorMin.green()+colorMid.green())/2,
(colorMin.blue() +colorMid.blue() )/2 ) ); (colorMin.blue() +colorMid.blue() )/2 ) );
drawArc(&p,l2,l3,colorMid); drawArc(&p,l2,l3,colorMid);
drawArc(&p,l3,l4, QColor( (colorMax.red() +colorMid.red() )/2, drawArc(&p,l3,l4, TQColor( (colorMax.red() +colorMid.red() )/2,
(colorMax.green()+colorMid.green())/2, (colorMax.green()+colorMid.green())/2,
(colorMax.blue() +colorMid.blue() )/2 ) ); (colorMax.blue() +colorMid.blue() )/2 ) );
drawArc(&p,l4,l5,colorMax); drawArc(&p,l4,l5,colorMax);
@ -300,7 +300,7 @@ int a2=a1+len;
} }
void QDialArc::calcParams() void TQDialArc::calcParams()
{ {
double m,w,h; double m,w,h;
POINT2D p1,p2,d,a; POINT2D p1,p2,d,a;
@ -343,7 +343,7 @@ POINT2D p1,p2,d,a;
void QDialArc::paramsChanged() void TQDialArc::paramsChanged()
{ {
fCalcParams= true; fCalcParams= true;
update(); update();

@ -15,20 +15,20 @@
* * * *
***************************************************************************/ ***************************************************************************/
#ifndef QDIALARC_H #ifndef TQDIALARC_H
#define QDIALARC_H #define TQDIALARC_H
#include <qwidget.h> #include <ntqwidget.h>
/** /**
*@author Miguel Novas *@author Miguel Novas
*/ */
class QDialArc : public QWidget { class TQDialArc : public TQWidget {
Q_OBJECT Q_OBJECT
public: public:
QDialArc(QWidget *parent=0, const char *name=0); TQDialArc(TQWidget *parent=0, const char *name=0);
~QDialArc(); ~TQDialArc();
void setValue (double value); void setValue (double value);
void setValueMin (double value); void setValueMin (double value);
@ -46,19 +46,19 @@ public:
void setShowMarks (bool flag); void setShowMarks (bool flag);
void setColorMax(const QColor &color); void setColorMax(const TQColor &color);
void setColorMid(const QColor &color); void setColorMid(const TQColor &color);
void setColorMin(const QColor &color); void setColorMin(const TQColor &color);
void setColorRanges(const QColor &min,const QColor &mid, const QColor &max); void setColorRanges(const TQColor &min,const TQColor &mid, const TQColor &max);
void setArrowColor(const QColor &color); void setArrowColor(const TQColor &color);
inline double getValue() { return val; } inline double getValue() { return val; }
protected: protected:
void resizeEvent( QResizeEvent *); void resizeEvent( TQResizeEvent *);
void paintEvent ( QPaintEvent *); void paintEvent ( TQPaintEvent *);
private: private:
@ -73,17 +73,17 @@ private:
int centerx,centery; int centerx,centery;
bool fCalcParams; bool fCalcParams;
QColor arrowColor; TQColor arrowColor;
QColor colorMin; TQColor colorMin;
QColor colorMid; TQColor colorMid;
QColor colorMax; TQColor colorMax;
bool fShowMarks; bool fShowMarks;
void calcParams(); void calcParams();
void paramsChanged(); void paramsChanged();
void drawMarks(QPainter *p,int l1,int l2); void drawMarks(TQPainter *p,int l1,int l2);
void drawArc(QPainter *p,int l1,int l2,const QColor &color); void drawArc(TQPainter *p,int l1,int l2,const TQColor &color);
void drawArrow(QPainter *p, double value); void drawArrow(TQPainter *p, double value);
}; };
#endif #endif

@ -16,14 +16,14 @@
***************************************************************************/ ***************************************************************************/
#ifndef QLCDDRAW_H #ifndef TQLCDDRAW_H
#define QLCDDRAW_H #define TQLCDDRAW_H
#include <qpainter.h> #include <ntqpainter.h>
#include <qcolor.h> #include <ntqcolor.h>
class QLcd { class TQLcd {
public: public:
@ -41,15 +41,15 @@ public:
}; };
static int draw(QPainter *painter, static int draw(TQPainter *painter,
int x, int y, int x, int y,
int w, int h, int w, int h,
const char *str, const char *str,
int options=0, int options=0,
const QColor *color=0, const TQColor *color=0,
const QColor *colorShadow=0); const TQColor *colorShadow=0);
static void draw(QPainter *p,int x,int y,int w,int h, char c); static void draw(TQPainter *p,int x,int y,int w,int h, char c);
static inline int charWidth(int height) { return (height * 3) / 4; }; static inline int charWidth(int height) { return (height * 3) / 4; };
static inline int strWidth(const char *str,int height) { return strlen(str)*charWidth(height); }; static inline int strWidth(const char *str,int height) { return strlen(str)*charWidth(height); };
@ -59,7 +59,7 @@ private:
static const uint asciiSegments[128]; static const uint asciiSegments[128];
static const int segmentsCoords[32][8]; static const int segmentsCoords[32][8];
static void drawSegment(QPainter *p,const int *c, int x, int y, int w, int h); static void drawSegment(TQPainter *p,const int *c, int x, int y, int w, int h);
}; };

@ -18,7 +18,7 @@
#include "qlcddraw.h" #include "qlcddraw.h"
const uint QLcd::asciiSegments[128]= const uint TQLcd::asciiSegments[128]=
{ {
0x00000000, // 0 0x00000000, // 0
0x00000000, // 1 // From 1-31 maybe for future use (to draw symbols) 0x00000000, // 1 // From 1-31 maybe for future use (to draw symbols)
@ -151,7 +151,7 @@ const uint QLcd::asciiSegments[128]=
}; };
const int QLcd::segmentsCoords[32][8]= const int TQLcd::segmentsCoords[32][8]=
{ {
{ 0,0, 1,0, -1 }, // 00 { 0,0, 1,0, -1 }, // 00
{ 1,0, 2,0, -1 }, { 1,0, 2,0, -1 },
@ -189,7 +189,7 @@ const int QLcd::segmentsCoords[32][8]=
void QLcd::drawSegment(QPainter *p,const int *c, int x, int y, int w, int h) void TQLcd::drawSegment(TQPainter *p,const int *c, int x, int y, int w, int h)
{ {
h--; h--;
p->moveTo( x+(c[0]*w)/2 , y+(c[1]*h)/4 ); p->moveTo( x+(c[0]*w)/2 , y+(c[1]*h)/4 );
@ -201,7 +201,7 @@ void QLcd::drawSegment(QPainter *p,const int *c, int x, int y, int w, int h)
} }
void QLcd::draw(QPainter *p,int x,int y,int w,int h, char c) void TQLcd::draw(TQPainter *p,int x,int y,int w,int h, char c)
{ {
uint mask= asciiSegments[(uint)c&0x007F]; uint mask= asciiSegments[(uint)c&0x007F];
@ -217,7 +217,7 @@ uint mask= asciiSegments[(uint)c&0x007F];
int QLcd::draw(QPainter *painter,int x, int y, int w, int h,const char *str, int options, const QColor *color, const QColor *colorShadow) int TQLcd::draw(TQPainter *painter,int x, int y, int w, int h,const char *str, int options, const TQColor *color, const TQColor *colorShadow)
{ {
int len= strlen(str)<<1; int len= strlen(str)<<1;

@ -18,91 +18,91 @@
#include "qlcdstring.h" #include "qlcdstring.h"
#include <qpalette.h> #include <ntqpalette.h>
QLCDString::QLCDString( QWidget *parent, const char *name ): QWidget( parent, name ) TQLCDString::TQLCDString( TQWidget *parent, const char *name ): TQWidget( parent, name )
{ {
digitStr= ""; digitStr= "";
options= QLcd::alignCenter; options= TQLcd::alignCenter;
QColorGroup g= colorGroup(); TQColorGroup g= colorGroup();
forColor= g.foreground(); forColor= g.foreground();
shaColor= g.shadow(); shaColor= g.shadow();
} }
QLCDString::~QLCDString(){ TQLCDString::~TQLCDString(){
} }
void QLCDString::display( const QString &str ) void TQLCDString::display( const TQString &str )
{ {
digitStr= str; digitStr= str;
update(); update();
} }
void QLCDString::setAlign(Align newAlign) void TQLCDString::setAlign(Align newAlign)
{ {
if( (options & QLcd::alignMask)!=newAlign ) { if( (options & TQLcd::alignMask)!=newAlign ) {
options= (options & ~QLcd::alignMask ) | newAlign; options= (options & ~TQLcd::alignMask ) | newAlign;
update(); update();
} }
} }
const QColor& QLCDString::foreColor() const TQColor& TQLCDString::foreColor()
{ {
return forColor; return forColor;
} }
const QColor& QLCDString::shadowColor() const TQColor& TQLCDString::shadowColor()
{ {
return shaColor; return shaColor;
} }
void QLCDString::setForeColor(const QColor &fore) void TQLCDString::setForeColor(const TQColor &fore)
{ {
forColor= fore; forColor= fore;
update(); update();
} }
void QLCDString::setShadowColor(const QColor &sha) void TQLCDString::setShadowColor(const TQColor &sha)
{ {
shaColor= sha; shaColor= sha;
update(); update();
} }
void QLCDString::resizeEvent ( QResizeEvent *) void TQLCDString::resizeEvent ( TQResizeEvent *)
{ {
update(); update();
} }
void QLCDString::setShadow(bool enable) void TQLCDString::setShadow(bool enable)
{ {
if( (bool)(options & QLcd::drawShadow) != enable ) { if( (bool)(options & TQLcd::drawShadow) != enable ) {
options^= QLcd::drawShadow; options^= TQLcd::drawShadow;
update(); update();
} }
} }
void QLCDString::setNumberDisplay(bool enable) void TQLCDString::setNumberDisplay(bool enable)
{ {
if( (bool)(options & QLcd::drawNumber) != enable ) { if( (bool)(options & TQLcd::drawNumber) != enable ) {
options^= QLcd::drawNumber; options^= TQLcd::drawNumber;
update(); update();
} }
} }
void QLCDString::paintEvent( QPaintEvent *e ) void TQLCDString::paintEvent( TQPaintEvent *e )
{ {
QPainter p(this); TQPainter p(this);
QLcd::draw(&p,0,0,width(),height(),digitStr.latin1(),options,&forColor,&shaColor); TQLcd::draw(&p,0,0,width(),height(),digitStr.latin1(),options,&forColor,&shaColor);
} }

@ -15,13 +15,13 @@
* * * *
***************************************************************************/ ***************************************************************************/
#ifndef QLCDSTRING_H #ifndef TQLCDSTRING_H
#define QLCDSTRING_H #define TQLCDSTRING_H
#include <qframe.h> #include <ntqframe.h>
#include <qpainter.h> #include <ntqpainter.h>
#include <qcolor.h> #include <ntqcolor.h>
#include <qstring.h> #include <ntqstring.h>
#include "qlcddraw.h" #include "qlcddraw.h"
@ -29,9 +29,9 @@
*@author Miguel Novas *@author Miguel Novas
*/ */
#include <qpalette.h> #include <ntqpalette.h>
class QLCDString : public QWidget { class TQLCDString : public TQWidget {
Q_OBJECT Q_OBJECT
public: public:
@ -42,35 +42,35 @@ public:
alignJustify= 0x0003 alignJustify= 0x0003
}; };
QLCDString( QWidget *parent=0, const char *name=0 ); TQLCDString( TQWidget *parent=0, const char *name=0 );
~QLCDString(); ~TQLCDString();
void display( const QString &str ); void display( const TQString &str );
void setShadow(bool enable); void setShadow(bool enable);
bool getShadow() { return (bool)(options & QLcd::drawShadow); }; bool getShadow() { return (bool)(options & TQLcd::drawShadow); };
void setAlign(Align newAlign); void setAlign(Align newAlign);
void setForeColor(const QColor &fore); void setForeColor(const TQColor &fore);
void setShadowColor(const QColor &sha); void setShadowColor(const TQColor &sha);
void setNumberDisplay(bool enable); void setNumberDisplay(bool enable);
const QColor& foreColor(); const TQColor& foreColor();
const QColor& shadowColor(); const TQColor& shadowColor();
protected: protected:
void resizeEvent( QResizeEvent *); void resizeEvent( TQResizeEvent *);
void paintEvent ( QPaintEvent *); void paintEvent ( TQPaintEvent *);
private: private:
QString digitStr; TQString digitStr;
int options; int options;
QColor forColor,shaColor; TQColor forColor,shaColor;
}; };
#endif #endif

@ -19,29 +19,29 @@
#include "procinfo.h" #include "procinfo.h"
RamPanel::RamPanel(QWidget *parent, const char *name, RamType type): Panel(parent,name) RamPanel::RamPanel(TQWidget *parent, const char *name, RamType type): Panel(parent,name)
{ {
ramType= type; ramType= type;
memTotal= -1; memTotal= -1;
memUsed = -1; memUsed = -1;
arc = new QDialArc(this); arc = new TQDialArc(this);
arc->installEventFilter(this); arc->installEventFilter(this);
arc->setAngles(180,-180); arc->setAngles(180,-180);
arc->setGeometry( 6 , 64/4+9, 64-10, 64/2-8); arc->setGeometry( 6 , 64/4+9, 64-10, 64/2-8);
arc->setColorRanges(red,red,QColor(0,200,150)); // QColor(0,200,0)); arc->setColorRanges(red,red,TQColor(0,200,150)); // TQColor(0,200,0));
lcd1= new QLCDString(this); lcd1= new TQLCDString(this);
lcd1->setGeometry(6, 8,54,11); lcd1->setGeometry(6, 8,54,11);
lcd1->setShadow(true); lcd1->setShadow(true);
lcd1->setForeColor(getColorValue()); lcd1->setForeColor(getColorValue());
lcd1->setAlign(QLCDString::alignCenter); lcd1->setAlign(TQLCDString::alignCenter);
lcd1->installEventFilter(this); lcd1->installEventFilter(this);
lcd2= new QLCDString(this); lcd2= new TQLCDString(this);
lcd2->setGeometry(4, 52,58,8); lcd2->setGeometry(4, 52,58,8);
lcd2->setForeColor(getColorTitle()); lcd2->setForeColor(getColorTitle());
lcd2->setAlign(QLCDString::alignCenter); lcd2->setAlign(TQLCDString::alignCenter);
lcd2->installEventFilter(this); lcd2->installEventFilter(this);
updateInfo(); updateInfo();
@ -67,14 +67,14 @@ void RamPanel::updateInfo()
if(memTotal!=newMemTotal) { if(memTotal!=newMemTotal) {
arc->setValueRanges(0,newMemTotal); arc->setValueRanges(0,newMemTotal);
QString str; TQString str;
str.sprintf ( ramType==memSWAP ? "SWP %dM" : "RAM %dM", newMemTotal); str.sprintf ( ramType==memSWAP ? "SWP %dM" : "RAM %dM", newMemTotal);
lcd2->display(str); lcd2->display(str);
memTotal= newMemTotal; memTotal= newMemTotal;
} }
if(memUsed!=newMemUsed) { if(memUsed!=newMemUsed) {
QString str; TQString str;
str.sprintf ("%dM" , newMemUsed ); str.sprintf ("%dM" , newMemUsed );
lcd1->display(str); lcd1->display(str);
arc->setValue(newMemUsed); arc->setValue(newMemUsed);
@ -85,14 +85,14 @@ void RamPanel::updateInfo()
} }
void RamPanel::paletteChange(const QPalette &oldPalette) void RamPanel::paletteChange(const TQPalette &oldPalette)
{ {
lcd2->setForeColor(getColorTitle()); lcd2->setForeColor(getColorTitle());
lcd1->setForeColor(getColorValue()); lcd1->setForeColor(getColorValue());
arc->setArrowColor(getColorValue()); arc->setArrowColor(getColorValue());
} }
void RamPanel::resizeEvent ( QResizeEvent *e ) void RamPanel::resizeEvent ( TQResizeEvent *e )
{ {
int w= width(); int w= width();
int h= height(); int h= height();

@ -31,18 +31,18 @@ public:
enum RamType { memRAM, memSWAP }; enum RamType { memRAM, memSWAP };
RamPanel(QWidget *parent=0, const char *name=0, RamType type= memRAM); RamPanel(TQWidget *parent=0, const char *name=0, RamType type= memRAM);
~RamPanel(); ~RamPanel();
protected: protected:
RamType ramType; RamType ramType;
int memTotal,memUsed; int memTotal,memUsed;
QDialArc *arc; TQDialArc *arc;
QLCDString *lcd1,*lcd2; TQLCDString *lcd1,*lcd2;
void updateInfo(); void updateInfo();
void paletteChange(const QPalette &oldPalette); void paletteChange(const TQPalette &oldPalette);
void resizeEvent ( QResizeEvent *e ); void resizeEvent ( TQResizeEvent *e );
}; };
#endif #endif

@ -15,14 +15,14 @@
* * * *
***************************************************************************/ ***************************************************************************/
#include <kglobal.h> #include <tdeglobal.h>
#include "sensor.h" #include "sensor.h"
#include "sensorslist.h" #include "sensorslist.h"
Sensor::Sensor(SensorsList *parent,const char *name): QObject(parent,name) Sensor::Sensor(SensorsList *parent,const char *name): TQObject(parent,name)
{ {
description = ""; description = "";
compensation = 0; compensation = 0;
@ -39,7 +39,7 @@ Sensor::SensorClass Sensor::getClass()
return ((SensorsList *)parent())->getClass(); return ((SensorsList *)parent())->getClass();
} }
QString Sensor::getPrintMask(bool addSufix) TQString Sensor::getPrintMask(bool addSufix)
{ {
return getSensorPrintMask(type, addSufix, ((SensorsList*)parent())->getTempScale() ); return getSensorPrintMask(type, addSufix, ((SensorsList*)parent())->getTempScale() );
} }
@ -97,7 +97,7 @@ void Sensor::setMultiplicator(double value)
multiplicator= value; multiplicator= value;
} }
void Sensor::setDescription(const QString &str) void Sensor::setDescription(const TQString &str)
{ {
description= str; description= str;
} }
@ -118,10 +118,10 @@ void Sensor::setValue(double newVal, TempScale scale, bool ajust)
void Sensor::writeConfig() void Sensor::writeConfig()
{ {
KConfig *ksConfig= KGlobal::config(); TDEConfig *ksConfig= TDEGlobal::config();
if(ksConfig) { if(ksConfig) {
ksConfig->setGroup( QString(name()) ); ksConfig->setGroup( TQString(name()) );
ksConfig->writeEntry("description" ,description); ksConfig->writeEntry("description" ,description);
ksConfig->writeEntry("valueIdeal" ,valIdeal); ksConfig->writeEntry("valueIdeal" ,valIdeal);
ksConfig->writeEntry("valueMax" ,valMax); ksConfig->writeEntry("valueMax" ,valMax);
@ -135,10 +135,10 @@ KConfig *ksConfig= KGlobal::config();
void Sensor::readConfig() void Sensor::readConfig()
{ {
KConfig *ksConfig= KGlobal::config(); TDEConfig *ksConfig= TDEGlobal::config();
if(ksConfig) { if(ksConfig) {
ksConfig->setGroup( QString(name()) ); ksConfig->setGroup( TQString(name()) );
valMax = ksConfig->readDoubleNumEntry("valueMax" ,valMax); valMax = ksConfig->readDoubleNumEntry("valueMax" ,valMax);
valMin = ksConfig->readDoubleNumEntry("valueMin" ,valMin); valMin = ksConfig->readDoubleNumEntry("valueMin" ,valMin);
compensation = ksConfig->readDoubleNumEntry("compensation" ,compensation); compensation = ksConfig->readDoubleNumEntry("compensation" ,compensation);

@ -18,10 +18,10 @@
#ifndef SENSOR_H #ifndef SENSOR_H
#define SENSOR_H #define SENSOR_H
#include <qobject.h> #include <ntqobject.h>
#include <kconfig.h> #include <tdeconfig.h>
#include <qstring.h> #include <ntqstring.h>
#include <qcstring.h> #include <ntqcstring.h>
/** /**
*@author Miguel Novas *@author Miguel Novas
@ -31,7 +31,7 @@
class SensorsList; class SensorsList;
class Sensor : public QObject { class Sensor : public TQObject {
Q_OBJECT Q_OBJECT
friend class SensorsList; friend class SensorsList;
@ -51,7 +51,7 @@ public:
void setValue(double newVal, TempScale scale= dgDefault, bool ajust=true); void setValue(double newVal, TempScale scale= dgDefault, bool ajust=true);
inline SensorType getType() { return type; }; inline SensorType getType() { return type; };
inline const QString &getDescription() { return description; }; inline const TQString &getDescription() { return description; };
inline double getValue() { return celsiusTo(val); }; inline double getValue() { return celsiusTo(val); };
inline double getValuePrevious() { return celsiusTo(valPrevious); }; inline double getValuePrevious() { return celsiusTo(valPrevious); };
inline double getValueIdeal() { return celsiusTo(valIdeal); }; inline double getValueIdeal() { return celsiusTo(valIdeal); };
@ -66,7 +66,7 @@ public:
bool monitorized(); bool monitorized();
void setMonitorized (bool enable); void setMonitorized (bool enable);
void setDescription (const QString &str); void setDescription (const TQString &str);
void setValueIdeal (double value, TempScale scale= dgDefault); void setValueIdeal (double value, TempScale scale= dgDefault);
void setValueMax (double value, TempScale scale= dgDefault); void setValueMax (double value, TempScale scale= dgDefault);
void setValueMin (double value, TempScale scale= dgDefault); void setValueMin (double value, TempScale scale= dgDefault);
@ -80,7 +80,7 @@ public:
double toCelsiusDiff(double val, TempScale scale= dgDefault); double toCelsiusDiff(double val, TempScale scale= dgDefault);
double celsiusToDiff(double val, TempScale scale= dgDefault); double celsiusToDiff(double val, TempScale scale= dgDefault);
QString getPrintMask(bool addSufix); TQString getPrintMask(bool addSufix);
public slots: public slots:
@ -95,7 +95,7 @@ signals:
private: private:
SensorType type; SensorType type;
QString description; TQString description;
double val; double val;
double valPrevious; double valPrevious;
double compensation; double compensation;

@ -17,10 +17,10 @@
#include "sensorslist.h" #include "sensorslist.h"
#include <kglobal.h> #include <tdeglobal.h>
SensorsList::SensorsList(QObject *parent, const char * name) SensorsList::SensorsList(TQObject *parent, const char * name)
: QObject(parent,name) : TQObject(parent,name)
{ {
tempScale= Sensor::dgCelsius; tempScale= Sensor::dgCelsius;
updateInterval= 5000; updateInterval= 5000;
@ -56,7 +56,7 @@ void SensorsList::setTempScale(Sensor::TempScale scale)
{ {
if(tempScale!=scale) { if(tempScale!=scale) {
tempScale= scale; tempScale= scale;
QObjectList *list= getSensors(); TQObjectList *list= getSensors();
if(list) if(list)
for(Sensor *sensor=(Sensor*)list->first(); sensor!=0; sensor= (Sensor*)list->next()) for(Sensor *sensor=(Sensor*)list->first(); sensor!=0; sensor= (Sensor*)list->next())
if(sensor->getType()==Sensor::lmTemp) if(sensor->getType()==Sensor::lmTemp)
@ -67,10 +67,10 @@ void SensorsList::setTempScale(Sensor::TempScale scale)
void SensorsList::readConfig() void SensorsList::readConfig()
{ {
KConfig *ksConfig= KGlobal::config(); TDEConfig *ksConfig= TDEGlobal::config();
ksConfig->setGroup( name() ); ksConfig->setGroup( name() );
setUpdateInterval(ksConfig->readNumEntry("UpdateInterval",5)); setUpdateInterval(ksConfig->readNumEntry("UpdateInterval",5));
QString str= ksConfig->readEntry("Scale" ,"C"); TQString str= ksConfig->readEntry("Scale" ,"C");
Sensor::TempScale tempScale; Sensor::TempScale tempScale;
if(str=="F") tempScale= Sensor::dgFahrenheit; if(str=="F") tempScale= Sensor::dgFahrenheit;
else if(str=="K") tempScale= Sensor::dgKelvin; else if(str=="K") tempScale= Sensor::dgKelvin;
@ -81,10 +81,10 @@ void SensorsList::readConfig()
void SensorsList::writeConfig() void SensorsList::writeConfig()
{ {
KConfig *ksConfig= KGlobal::config(); TDEConfig *ksConfig= TDEGlobal::config();
ksConfig->setGroup( name() ); ksConfig->setGroup( name() );
ksConfig->writeEntry("UpdateInterval",updateInterval/1000); ksConfig->writeEntry("UpdateInterval",updateInterval/1000);
QString str; TQString str;
switch(tempScale) { switch(tempScale) {
case Sensor::dgCelsius : str='C'; break; case Sensor::dgCelsius : str='C'; break;
case Sensor::dgKelvin : str='K'; break; case Sensor::dgKelvin : str='K'; break;
@ -98,14 +98,14 @@ void SensorsList::writeConfig()
// Protected methods // Protected methods
//**************************************************************************** //****************************************************************************
void SensorsList::timerEvent( QTimerEvent * ) void SensorsList::timerEvent( TQTimerEvent * )
{ {
updateSensors(); updateSensors();
} }
//*************** //***************
void SensorsList::childEvent ( QChildEvent *e ) void SensorsList::childEvent ( TQChildEvent *e )
{ {
if(e->inserted()) { if(e->inserted()) {
connect((Sensor *)e->child(),SIGNAL(configChanged()),this,SLOT(slotConfigChanged())); connect((Sensor *)e->child(),SIGNAL(configChanged()),this,SLOT(slotConfigChanged()));

@ -18,10 +18,10 @@
#ifndef SENSORSLIST_H #ifndef SENSORSLIST_H
#define SENSORSLIST_H #define SENSORSLIST_H
#include <qobject.h> #include <ntqobject.h>
#include <qobjectlist.h> #include <ntqobjectlist.h>
#include <kconfig.h> #include <tdeconfig.h>
#include <qstringlist.h> #include <ntqstringlist.h>
#include <sensor.h> #include <sensor.h>
@ -29,21 +29,21 @@
*@author Miguel Novas *@author Miguel Novas
*/ */
class SensorsList : public QObject { class SensorsList : public TQObject {
Q_OBJECT Q_OBJECT
friend class Sensor; friend class Sensor;
public: public:
SensorsList(QObject *parent=0, const char *name=0); SensorsList(TQObject *parent=0, const char *name=0);
~SensorsList(); ~SensorsList();
void setMonitorized(bool enable); void setMonitorized(bool enable);
const QString &getDescription() { return description; }; const TQString &getDescription() { return description; };
QObjectList *getSensors() { return (QObjectList *)children(); }; TQObjectList *getSensors() { return (TQObjectList *)children(); };
Sensor *getSensor(int index) { return children() ? (Sensor *)((QObjectList *)children())->at(index) : 0; } Sensor *getSensor(int index) { return children() ? (Sensor *)((TQObjectList *)children())->at(index) : 0; }
Sensor *getSensor(const char *name) { return (Sensor *)child(name); } Sensor *getSensor(const char *name) { return (Sensor *)child(name); }
int count() { return children() ? children()->count() : 0; } int count() { return children() ? children()->count() : 0; }
@ -73,20 +73,20 @@ protected slots:
protected: protected:
void setDescription(const QString &name) { description= name; }; void setDescription(const TQString &name) { description= name; };
void setClass(Sensor::SensorClass newClass) { clas= newClass; } void setClass(Sensor::SensorClass newClass) { clas= newClass; }
void childEvent ( QChildEvent *e ); void childEvent ( TQChildEvent *e );
private: private:
QString description; TQString description;
Sensor::SensorClass clas; Sensor::SensorClass clas;
bool monitorized; bool monitorized;
int updateInterval; int updateInterval;
KConfig *ksConfig; TDEConfig *ksConfig;
Sensor::TempScale tempScale; Sensor::TempScale tempScale;
void timerEvent( QTimerEvent * ); void timerEvent( TQTimerEvent * );
}; };
#endif #endif

@ -400,16 +400,16 @@ uninstall-am: uninstall-info-am uninstall-local
install-data-local: install-data-local:
#>- $(mkinstalldirs) $(kde_datadir)/sounds #>- $(mkinstalldirs) $(kde_sounddir)
#>+ 1 #>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/sounds $(mkinstalldirs) $(DESTDIR)$(kde_sounddir)
#>- $(INSTALL_DATA) $(srcdir)/ksensors_alert.wav $(kde_datadir)/sounds/ksensors_alert.wav #>- $(INSTALL_DATA) $(srcdir)/ksensors_alert.wav $(kde_sounddir)/ksensors_alert.wav
#>+ 1 #>+ 1
$(INSTALL_DATA) $(srcdir)/ksensors_alert.wav $(DESTDIR)$(kde_datadir)/sounds/ksensors_alert.wav $(INSTALL_DATA) $(srcdir)/ksensors_alert.wav $(DESTDIR)$(kde_sounddir)/ksensors_alert.wav
uninstall-local: uninstall-local:
#>- -rm -f $(kde_datadir)/sounds/ksensors_alert.wav #>- -rm -f $(kde_sounddir)/ksensors_alert.wav
#>+ 1 #>+ 1
-rm -f $(DESTDIR)$(kde_datadir)/sounds/ksensors_alert.wav -rm -f $(DESTDIR)$(kde_sounddir)/ksensors_alert.wav
####### kdevelop will overwrite this part!!! (end)############ ####### kdevelop will overwrite this part!!! (end)############
# Tell versions [3.59,3.63) of GNU make to not export all variables. # Tell versions [3.59,3.63) of GNU make to not export all variables.

@ -15,32 +15,32 @@
* * * *
***************************************************************************/ ***************************************************************************/
#include <qlistbox.h> #include <ntqlistbox.h>
#include <qspinbox.h> #include <ntqspinbox.h>
#include <qpushbutton.h> #include <ntqpushbutton.h>
#include <qgroupbox.h> #include <ntqgroupbox.h>
#include <qcheckbox.h> #include <ntqcheckbox.h>
#include <qlayout.h> #include <ntqlayout.h>
#include <qtabwidget.h> #include <ntqtabwidget.h>
#include <klocale.h> #include <tdelocale.h>
#include "systemcfg.h" #include "systemcfg.h"
#include "infopanels.h" #include "infopanels.h"
SystemCfg::SystemCfg(LMSensors *lsensors, QWidget *parent, const char *name): SystemCfgDesign(parent,name) SystemCfg::SystemCfg(LMSensors *lsensors, TQWidget *parent, const char *name): SystemCfgDesign(parent,name)
{ {
sensors= lsensors; sensors= lsensors;
palPanelCfg= new PaletteCfg( boxPanelPalette ); palPanelCfg= new PaletteCfg( boxPanelPalette );
boxPanelPalette->setColumnLayout(0, Qt::Vertical ); boxPanelPalette->setColumnLayout(0, TQt::Vertical );
boxPanelPalette->layout()->setSpacing( 6 ); boxPanelPalette->layout()->setSpacing( 6 );
boxPanelPalette->layout()->setMargin( 12 ); boxPanelPalette->layout()->setMargin( 12 );
QGridLayout *boxPanelPaletteLayout = new QGridLayout( boxPanelPalette->layout() ); TQGridLayout *boxPanelPaletteLayout = new TQGridLayout( boxPanelPalette->layout() );
boxPanelPaletteLayout->setAlignment( Qt::AlignTop ); boxPanelPaletteLayout->setAlignment( TQt::AlignTop );
boxPanelPaletteLayout->addWidget( palPanelCfg, 0, 0 ); boxPanelPaletteLayout->addWidget( palPanelCfg, 0, 0 );
connect( TabWidget ,SIGNAL(currentChanged(QWidget*)), this, SLOT(slotTabWidgetChanged(QWidget *))); connect( TabWidget ,SIGNAL(currentChanged(TQWidget*)), this, SLOT(slotTabWidgetChanged(TQWidget *)));
//connect( buttonApply ,SIGNAL(clicked()),this, SLOT(slotApplyChanges())); //connect( buttonApply ,SIGNAL(clicked()),this, SLOT(slotApplyChanges()));
listSensors->clear(); listSensors->clear();
@ -58,7 +58,7 @@ SystemCfg::SystemCfg(LMSensors *lsensors, QWidget *parent, const char *name): Sy
SystemCfg::~SystemCfg(){ SystemCfg::~SystemCfg(){
} }
void SystemCfg::slotTabWidgetChanged(QWidget *) void SystemCfg::slotTabWidgetChanged(TQWidget *)
{ {
switch(TabWidget->currentPageIndex()) switch(TabWidget->currentPageIndex())
{ {

@ -29,12 +29,12 @@
class SystemCfg : public SystemCfgDesign { class SystemCfg : public SystemCfgDesign {
Q_OBJECT Q_OBJECT
public: public:
SystemCfg(LMSensors *lsensors, QWidget *parent=0, const char *name=0); SystemCfg(LMSensors *lsensors, TQWidget *parent=0, const char *name=0);
~SystemCfg(); ~SystemCfg();
protected slots: protected slots:
void slotCurrentSensorChanged(int index); void slotCurrentSensorChanged(int index);
void slotTabWidgetChanged(QWidget *); void slotTabWidgetChanged(TQWidget *);
void readSensorInfo(int index); void readSensorInfo(int index);
void readPreferencesInfo(); void readPreferencesInfo();

@ -1,4 +1,4 @@
#include <klocale.h> #include <tdelocale.h>
/**************************************************************************** /****************************************************************************
** Form implementation generated from reading ui file './systemcfgdesign.ui' ** Form implementation generated from reading ui file './systemcfgdesign.ui'
** **
@ -10,105 +10,105 @@
#include "systemcfgdesign.h" #include "systemcfgdesign.h"
#include <qvariant.h> #include <ntqvariant.h>
#include <qpushbutton.h> #include <ntqpushbutton.h>
#include <qtabwidget.h> #include <ntqtabwidget.h>
#include <qlistbox.h> #include <ntqlistbox.h>
#include <qframe.h> #include <ntqframe.h>
#include <qgroupbox.h> #include <ntqgroupbox.h>
#include <qcheckbox.h> #include <ntqcheckbox.h>
#include <qspinbox.h> #include <ntqspinbox.h>
#include <qslider.h> #include <ntqslider.h>
#include <qlayout.h> #include <ntqlayout.h>
#include <qtooltip.h> #include <ntqtooltip.h>
#include <qwhatsthis.h> #include <ntqwhatsthis.h>
/* /*
* Constructs a SystemCfgDesign as a child of 'parent', with the * Constructs a SystemCfgDesign as a child of 'parent', with the
* name 'name' and widget flags set to 'f'. * name 'name' and widget flags set to 'f'.
*/ */
SystemCfgDesign::SystemCfgDesign( QWidget* parent, const char* name, WFlags fl ) SystemCfgDesign::SystemCfgDesign( TQWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl ) : TQWidget( parent, name, fl )
{ {
if ( !name ) if ( !name )
setName( "SystemCfgDesign" ); setName( "SystemCfgDesign" );
SystemCfgDesignLayout = new QGridLayout( this, 1, 1, 8, 4, "SystemCfgDesignLayout"); SystemCfgDesignLayout = new TQGridLayout( this, 1, 1, 8, 4, "SystemCfgDesignLayout");
TabWidget = new QTabWidget( this, "TabWidget" ); TabWidget = new TQTabWidget( this, "TabWidget" );
tab = new QWidget( TabWidget, "tab" ); tab = new TQWidget( TabWidget, "tab" );
tabLayout = new QHBoxLayout( tab, 8, 8, "tabLayout"); tabLayout = new TQHBoxLayout( tab, 8, 8, "tabLayout");
listSensors = new QListBox( tab, "listSensors" ); listSensors = new TQListBox( tab, "listSensors" );
listSensors->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, listSensors->sizePolicy().hasHeightForWidth() ) ); listSensors->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, listSensors->sizePolicy().hasHeightForWidth() ) );
listSensors->setMinimumSize( QSize( 160, 0 ) ); listSensors->setMinimumSize( TQSize( 160, 0 ) );
listSensors->setMaximumSize( QSize( 160, 32767 ) ); listSensors->setMaximumSize( TQSize( 160, 32767 ) );
listSensors->setFrameShape( QListBox::StyledPanel ); listSensors->setFrameShape( TQListBox::StyledPanel );
listSensors->setFrameShadow( QListBox::Sunken ); listSensors->setFrameShadow( TQListBox::Sunken );
listSensors->setLineWidth( 2 ); listSensors->setLineWidth( 2 );
listSensors->setColumnMode( QListBox::FixedNumber ); listSensors->setColumnMode( TQListBox::FixedNumber );
tabLayout->addWidget( listSensors ); tabLayout->addWidget( listSensors );
framePanelCfg = new QFrame( tab, "framePanelCfg" ); framePanelCfg = new TQFrame( tab, "framePanelCfg" );
framePanelCfg->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, framePanelCfg->sizePolicy().hasHeightForWidth() ) ); framePanelCfg->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, framePanelCfg->sizePolicy().hasHeightForWidth() ) );
framePanelCfg->setFrameShape( QFrame::NoFrame ); framePanelCfg->setFrameShape( TQFrame::NoFrame );
framePanelCfg->setFrameShadow( QFrame::Raised ); framePanelCfg->setFrameShadow( TQFrame::Raised );
framePanelCfgLayout = new QVBoxLayout( framePanelCfg, 0, 4, "framePanelCfgLayout"); framePanelCfgLayout = new TQVBoxLayout( framePanelCfg, 0, 4, "framePanelCfgLayout");
GroupBox13 = new QGroupBox( framePanelCfg, "GroupBox13" ); GroupBox13 = new TQGroupBox( framePanelCfg, "GroupBox13" );
GroupBox13->setMinimumSize( QSize( 0, 50 ) ); GroupBox13->setMinimumSize( TQSize( 0, 50 ) );
GroupBox13->setMaximumSize( QSize( 32767, 50 ) ); GroupBox13->setMaximumSize( TQSize( 32767, 50 ) );
GroupBox13->setColumnLayout(0, Qt::Vertical ); GroupBox13->setColumnLayout(0, TQt::Vertical );
GroupBox13->layout()->setSpacing( 6 ); GroupBox13->layout()->setSpacing( 6 );
GroupBox13->layout()->setMargin( 11 ); GroupBox13->layout()->setMargin( 11 );
GroupBox13Layout = new QGridLayout( GroupBox13->layout() ); GroupBox13Layout = new TQGridLayout( GroupBox13->layout() );
GroupBox13Layout->setAlignment( Qt::AlignTop ); GroupBox13Layout->setAlignment( TQt::AlignTop );
checkShow = new QCheckBox( GroupBox13, "checkShow" ); checkShow = new TQCheckBox( GroupBox13, "checkShow" );
checkShow->setCursor( QCursor( 0 ) ); checkShow->setCursor( TQCursor( 0 ) );
GroupBox13Layout->addWidget( checkShow, 0, 0 ); GroupBox13Layout->addWidget( checkShow, 0, 0 );
framePanelCfgLayout->addWidget( GroupBox13 ); framePanelCfgLayout->addWidget( GroupBox13 );
boxPanelPalette = new QGroupBox( framePanelCfg, "boxPanelPalette" ); boxPanelPalette = new TQGroupBox( framePanelCfg, "boxPanelPalette" );
boxPanelPalette->setMinimumSize( QSize( 0, 90 ) ); boxPanelPalette->setMinimumSize( TQSize( 0, 90 ) );
framePanelCfgLayout->addWidget( boxPanelPalette ); framePanelCfgLayout->addWidget( boxPanelPalette );
Spacer4_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Spacer4_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
framePanelCfgLayout->addItem( Spacer4_2 ); framePanelCfgLayout->addItem( Spacer4_2 );
tabLayout->addWidget( framePanelCfg ); tabLayout->addWidget( framePanelCfg );
TabWidget->insertTab( tab, QString("") ); TabWidget->insertTab( tab, TQString("") );
tab_2 = new QWidget( TabWidget, "tab_2" ); tab_2 = new TQWidget( TabWidget, "tab_2" );
tabLayout_2 = new QVBoxLayout( tab_2, 11, 6, "tabLayout_2"); tabLayout_2 = new TQVBoxLayout( tab_2, 11, 6, "tabLayout_2");
GroupBox7 = new QGroupBox( tab_2, "GroupBox7" ); GroupBox7 = new TQGroupBox( tab_2, "GroupBox7" );
GroupBox7->setMinimumSize( QSize( 0, 0 ) ); GroupBox7->setMinimumSize( TQSize( 0, 0 ) );
GroupBox7->setColumnLayout(0, Qt::Vertical ); GroupBox7->setColumnLayout(0, TQt::Vertical );
GroupBox7->layout()->setSpacing( 12 ); GroupBox7->layout()->setSpacing( 12 );
GroupBox7->layout()->setMargin( 12 ); GroupBox7->layout()->setMargin( 12 );
GroupBox7Layout = new QHBoxLayout( GroupBox7->layout() ); GroupBox7Layout = new TQHBoxLayout( GroupBox7->layout() );
GroupBox7Layout->setAlignment( Qt::AlignTop ); GroupBox7Layout->setAlignment( TQt::AlignTop );
SpinUpdateTime = new QSpinBox( GroupBox7, "SpinUpdateTime" ); SpinUpdateTime = new TQSpinBox( GroupBox7, "SpinUpdateTime" );
SpinUpdateTime->setMinValue( 1 ); SpinUpdateTime->setMinValue( 1 );
SpinUpdateTime->setValue( 5 ); SpinUpdateTime->setValue( 5 );
GroupBox7Layout->addWidget( SpinUpdateTime ); GroupBox7Layout->addWidget( SpinUpdateTime );
SliderUpdateTime = new QSlider( GroupBox7, "SliderUpdateTime" ); SliderUpdateTime = new TQSlider( GroupBox7, "SliderUpdateTime" );
SliderUpdateTime->setMaxValue( 60 ); SliderUpdateTime->setMaxValue( 60 );
SliderUpdateTime->setValue( 5 ); SliderUpdateTime->setValue( 5 );
SliderUpdateTime->setOrientation( QSlider::Horizontal ); SliderUpdateTime->setOrientation( TQSlider::Horizontal );
SliderUpdateTime->setTickmarks( QSlider::Right ); SliderUpdateTime->setTickmarks( TQSlider::Right );
SliderUpdateTime->setTickInterval( 1 ); SliderUpdateTime->setTickInterval( 1 );
GroupBox7Layout->addWidget( SliderUpdateTime ); GroupBox7Layout->addWidget( SliderUpdateTime );
tabLayout_2->addWidget( GroupBox7 ); tabLayout_2->addWidget( GroupBox7 );
Spacer18 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Spacer18 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
tabLayout_2->addItem( Spacer18 ); tabLayout_2->addItem( Spacer18 );
TabWidget->insertTab( tab_2, QString("") ); TabWidget->insertTab( tab_2, TQString("") );
SystemCfgDesignLayout->addWidget( TabWidget, 0, 0 ); SystemCfgDesignLayout->addWidget( TabWidget, 0, 0 );
languageChange(); languageChange();
resize( QSize(334, 240).expandedTo(minimumSizeHint()) ); resize( TQSize(334, 240).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished ); clearWState( WState_Polished );
// signals and slots connections // signals and slots connections
@ -121,7 +121,7 @@ SystemCfgDesign::SystemCfgDesign( QWidget* parent, const char* name, WFlags fl )
*/ */
SystemCfgDesign::~SystemCfgDesign() SystemCfgDesign::~SystemCfgDesign()
{ {
// no need to delete child widgets, Qt does it all for us // no need to delete child widgets, TQt does it all for us
} }
/* /*
@ -131,7 +131,7 @@ SystemCfgDesign::~SystemCfgDesign()
void SystemCfgDesign::languageChange() void SystemCfgDesign::languageChange()
{ {
setCaption( tr2i18n( "SystemCfgDesign" ) ); setCaption( tr2i18n( "SystemCfgDesign" ) );
GroupBox13->setTitle( QString::null ); GroupBox13->setTitle( TQString::null );
checkShow->setText( tr2i18n( "Visible" ) ); checkShow->setText( tr2i18n( "Visible" ) );
boxPanelPalette->setTitle( tr2i18n( "Colors" ) ); boxPanelPalette->setTitle( tr2i18n( "Colors" ) );
TabWidget->changeTab( tab, tr2i18n( "System Panels" ) ); TabWidget->changeTab( tab, tr2i18n( "System Panels" ) );

@ -10,51 +10,51 @@
#ifndef SYSTEMCFGDESIGN_H #ifndef SYSTEMCFGDESIGN_H
#define SYSTEMCFGDESIGN_H #define SYSTEMCFGDESIGN_H
#include <qvariant.h> #include <ntqvariant.h>
#include <qwidget.h> #include <ntqwidget.h>
class QVBoxLayout; class TQVBoxLayout;
class QHBoxLayout; class TQHBoxLayout;
class QGridLayout; class TQGridLayout;
class QSpacerItem; class TQSpacerItem;
class QTabWidget; class TQTabWidget;
class QListBox; class TQListBox;
class QListBoxItem; class TQListBoxItem;
class QFrame; class TQFrame;
class QGroupBox; class TQGroupBox;
class QCheckBox; class TQCheckBox;
class QSpinBox; class TQSpinBox;
class QSlider; class TQSlider;
class SystemCfgDesign : public QWidget class SystemCfgDesign : public TQWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
SystemCfgDesign( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); SystemCfgDesign( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~SystemCfgDesign(); ~SystemCfgDesign();
QTabWidget* TabWidget; TQTabWidget* TabWidget;
QWidget* tab; TQWidget* tab;
QListBox* listSensors; TQListBox* listSensors;
QFrame* framePanelCfg; TQFrame* framePanelCfg;
QGroupBox* GroupBox13; TQGroupBox* GroupBox13;
QCheckBox* checkShow; TQCheckBox* checkShow;
QGroupBox* boxPanelPalette; TQGroupBox* boxPanelPalette;
QWidget* tab_2; TQWidget* tab_2;
QGroupBox* GroupBox7; TQGroupBox* GroupBox7;
QSpinBox* SpinUpdateTime; TQSpinBox* SpinUpdateTime;
QSlider* SliderUpdateTime; TQSlider* SliderUpdateTime;
protected: protected:
QGridLayout* SystemCfgDesignLayout; TQGridLayout* SystemCfgDesignLayout;
QHBoxLayout* tabLayout; TQHBoxLayout* tabLayout;
QVBoxLayout* framePanelCfgLayout; TQVBoxLayout* framePanelCfgLayout;
QSpacerItem* Spacer4_2; TQSpacerItem* Spacer4_2;
QGridLayout* GroupBox13Layout; TQGridLayout* GroupBox13Layout;
QVBoxLayout* tabLayout_2; TQVBoxLayout* tabLayout_2;
QSpacerItem* Spacer18; TQSpacerItem* Spacer18;
QHBoxLayout* GroupBox7Layout; TQHBoxLayout* GroupBox7Layout;
protected slots: protected slots:
virtual void languageChange(); virtual void languageChange();

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> <!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>SystemCfgDesign</class> <class>SystemCfgDesign</class>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>SystemCfgDesign</cstring> <cstring>SystemCfgDesign</cstring>
</property> </property>
@ -29,7 +29,7 @@
<property name="spacing"> <property name="spacing">
<number>4</number> <number>4</number>
</property> </property>
<widget class="QTabWidget" row="0" column="0"> <widget class="TQTabWidget" row="0" column="0">
<property name="name"> <property name="name">
<cstring>TabWidget</cstring> <cstring>TabWidget</cstring>
</property> </property>
@ -37,7 +37,7 @@
</property> </property>
<property name="layoutSpacing" stdset="0"> <property name="layoutSpacing" stdset="0">
</property> </property>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>tab</cstring> <cstring>tab</cstring>
</property> </property>
@ -54,7 +54,7 @@
<property name="spacing"> <property name="spacing">
<number>8</number> <number>8</number>
</property> </property>
<widget class="QListBox"> <widget class="TQListBox">
<property name="name"> <property name="name">
<cstring>listSensors</cstring> <cstring>listSensors</cstring>
</property> </property>
@ -91,7 +91,7 @@
<enum>FixedNumber</enum> <enum>FixedNumber</enum>
</property> </property>
</widget> </widget>
<widget class="QFrame"> <widget class="TQFrame">
<property name="name"> <property name="name">
<cstring>framePanelCfg</cstring> <cstring>framePanelCfg</cstring>
</property> </property>
@ -123,7 +123,7 @@
<property name="spacing"> <property name="spacing">
<number>4</number> <number>4</number>
</property> </property>
<widget class="QGroupBox"> <widget class="TQGroupBox">
<property name="name"> <property name="name">
<cstring>GroupBox13</cstring> <cstring>GroupBox13</cstring>
</property> </property>
@ -146,7 +146,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="QCheckBox" row="0" column="0"> <widget class="TQCheckBox" row="0" column="0">
<property name="name"> <property name="name">
<cstring>checkShow</cstring> <cstring>checkShow</cstring>
</property> </property>
@ -161,7 +161,7 @@
</widget> </widget>
</grid> </grid>
</widget> </widget>
<widget class="QGroupBox"> <widget class="TQGroupBox">
<property name="name"> <property name="name">
<cstring>boxPanelPalette</cstring> <cstring>boxPanelPalette</cstring>
</property> </property>
@ -196,7 +196,7 @@
</widget> </widget>
</hbox> </hbox>
</widget> </widget>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>tab</cstring> <cstring>tab</cstring>
</property> </property>
@ -213,7 +213,7 @@
<property name="spacing"> <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>
<widget class="QGroupBox"> <widget class="TQGroupBox">
<property name="name"> <property name="name">
<cstring>GroupBox7</cstring> <cstring>GroupBox7</cstring>
</property> </property>
@ -240,7 +240,7 @@
<property name="spacing"> <property name="spacing">
<number>12</number> <number>12</number>
</property> </property>
<widget class="QSpinBox"> <widget class="TQSpinBox">
<property name="name"> <property name="name">
<cstring>SpinUpdateTime</cstring> <cstring>SpinUpdateTime</cstring>
</property> </property>
@ -254,7 +254,7 @@
<number>5</number> <number>5</number>
</property> </property>
</widget> </widget>
<widget class="QSlider"> <widget class="TQSlider">
<property name="name"> <property name="name">
<cstring>SliderUpdateTime</cstring> <cstring>SliderUpdateTime</cstring>
</property> </property>

@ -19,14 +19,14 @@
#include "procinfo.h" #include "procinfo.h"
#include "qlcddraw.h" #include "qlcddraw.h"
#include <qcolor.h> #include <ntqcolor.h>
#include <qpainter.h> #include <ntqpainter.h>
UpTimePanel::UpTimePanel(QWidget *parent, const char *name) : Panel(parent,name) UpTimePanel::UpTimePanel(TQWidget *parent, const char *name) : Panel(parent,name)
{ {
lcd= new QLCDString(this); lcd= new TQLCDString(this);
lcd->setGeometry(6,25,52,15); lcd->setGeometry(6,25,52,15);
lcd->setShadow(true); lcd->setShadow(true);
lcd->setForeColor(red); lcd->setForeColor(red);
@ -46,13 +46,13 @@ void UpTimePanel::updateInfo()
int hours = uptime/ (60*60); int hours = uptime/ (60*60);
int minutes= (uptime % (60*60)) / 60; int minutes= (uptime % (60*60)) / 60;
QString str; TQString str;
str.sprintf("%02d:%02d",hours,minutes); str.sprintf("%02d:%02d",hours,minutes);
lcd->display(str); lcd->display(str);
update(); update();
} }
void UpTimePanel::drawContents(QPainter *p) void UpTimePanel::drawContents(TQPainter *p)
{ {
int w= width(); int w= width();
int h= height(); int h= height();
@ -60,11 +60,11 @@ void UpTimePanel::drawContents(QPainter *p)
int i2= (h * 4) / 5; int i2= (h * 4) / 5;
int th= h-i2-h/11; int th= h-i2-h/11;
QLcd::draw(p, 2,h/10,w-4,th,"hh:mm",QLcd::alignCenter, &getColorTitle()); TQLcd::draw(p, 2,h/10,w-4,th,"hh:mm",TQLcd::alignCenter, &getColorTitle());
QLcd::draw(p, 2,i2+1,w-4,th,"Up Time",QLcd::alignCenter,&getColorTitle()); TQLcd::draw(p, 2,i2+1,w-4,th,"Up Time",TQLcd::alignCenter,&getColorTitle());
} }
void UpTimePanel::resizeEvent ( QResizeEvent *e ) void UpTimePanel::resizeEvent ( TQResizeEvent *e )
{ {
int w= width(); int w= width();
int h= height(); int h= height();

@ -21,7 +21,7 @@
#include "panel.h" #include "panel.h"
#include "qlcdstring.h" #include "qlcdstring.h"
#include <qstring.h> #include <ntqstring.h>
/** /**
*@author Miguel Novas *@author Miguel Novas
@ -30,18 +30,18 @@
class UpTimePanel : public Panel { class UpTimePanel : public Panel {
Q_OBJECT Q_OBJECT
public: public:
UpTimePanel(QWidget *parent=0, const char *name=0); UpTimePanel(TQWidget *parent=0, const char *name=0);
~UpTimePanel(); ~UpTimePanel();
protected: protected:
void updateInfo(); void updateInfo();
void drawContents ( QPainter *p ); void drawContents ( TQPainter *p );
private: private:
QLCDString *lcd; TQLCDString *lcd;
void resizeEvent ( QResizeEvent *e ); void resizeEvent ( TQResizeEvent *e );
}; };
#endif #endif

Loading…
Cancel
Save