From 24857cad8e92c27bc7d7377549ae887adbeccc58 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 09:59:06 -0500 Subject: [PATCH] Convert to TDE R14 API --- ChangeLog | 2 +- LIESMICH | 12 +- LISEZMOI | 28 +- acinclude.m4 | 46 +-- aclocal.m4 | 46 +-- doc/en/index.docbook | 12 +- po/es.gmo | Bin 3827 -> 3828 bytes po/es.po | 2 +- po/nb.po | 422 +++++++++++++++++++++++++++ po/pl.po | 413 ++++++++++++++++++++++++++ po/sv.po | 423 +++++++++++++++++++++++++++ src/Makefile.am | 4 +- src/aboutcfgdesign.cpp | 582 ++++++++++++++++++------------------- src/aboutcfgdesign.h | 52 ++-- src/aboutcfgdesign.ui | 20 +- src/cpupanel.cpp | 48 +-- src/cpupanel.h | 14 +- src/cputimepanel.cpp | 36 +-- src/cputimepanel.h | 12 +- src/generalcfg.cpp | 22 +- src/generalcfg.h | 2 +- src/generalcfgdesign.cpp | 60 ++-- src/generalcfgdesign.h | 50 ++-- src/generalcfgdesign.ui | 16 +- src/hdsensorslist.cpp | 44 +-- src/hdsensorslist.h | 8 +- src/i8ksensorslist.cpp | 10 +- src/i8ksensorslist.h | 2 +- src/infopanels.cpp | 12 +- src/infopanels.h | 10 +- src/ksensors.cpp | 10 +- src/ksensors.h | 4 +- src/ksensorscfg.cpp | 40 +-- src/ksensorscfg.h | 22 +- src/ksensorssplash.cpp | 12 +- src/ksensorssplash.h | 10 +- src/lmsensor.cpp | 6 +- src/lmsensor.h | 10 +- src/lmsensordockpanel.cpp | 54 ++-- src/lmsensordockpanel.h | 24 +- src/lmsensorpanel.cpp | 18 +- src/lmsensorpanel.h | 18 +- src/lmsensors.cpp | 16 +- src/lmsensors.h | 18 +- src/lmsensorsalarms.cpp | 44 +-- src/lmsensorsalarms.h | 20 +- src/lmsensorscfg.cpp | 58 ++-- src/lmsensorscfg.h | 6 +- src/lmsensorscfgdesign.cpp | 328 ++++++++++----------- src/lmsensorscfgdesign.h | 202 ++++++------- src/lmsensorscfgdesign.ui | 108 +++---- src/lmsensorschip.cpp | 4 +- src/lmsensorschip.h | 2 +- src/lmsensorsdock.cpp | 44 +-- src/lmsensorsdock.h | 22 +- src/lmsensorswidget.cpp | 104 +++---- src/lmsensorswidget.h | 30 +- src/main.cpp | 24 +- src/palettecfg.cpp | 34 +-- src/palettecfg.h | 8 +- src/palettecfgdesign.cpp | 168 +++++------ src/palettecfgdesign.h | 36 +-- src/palettecfgdesign.ui | 12 +- src/panel.cpp | 16 +- src/panel.h | 18 +- src/panelsgroup.h | 6 +- src/processexec.cpp | 12 +- src/processexec.h | 10 +- src/qbarmeter.cpp | 28 +- src/qbarmeter.h | 28 +- src/qdialarc.cpp | 80 ++--- src/qdialarc.h | 40 +-- src/qlcddraw.h | 20 +- src/qlcdraw.cpp | 10 +- src/qlcdstring.cpp | 46 +-- src/qlcdstring.h | 40 +-- src/rampanel.cpp | 22 +- src/rampanel.h | 10 +- src/sensor.cpp | 16 +- src/sensor.h | 18 +- src/sensorslist.cpp | 20 +- src/sensorslist.h | 28 +- src/sounds/Makefile.in | 12 +- src/systemcfg.cpp | 28 +- src/systemcfg.h | 4 +- src/systemcfgdesign.cpp | 118 ++++---- src/systemcfgdesign.h | 70 ++--- src/systemcfgdesign.ui | 24 +- src/uptimepanel.cpp | 18 +- src/uptimepanel.h | 10 +- 90 files changed, 2968 insertions(+), 1710 deletions(-) create mode 100644 po/nb.po create mode 100644 po/pl.po create mode 100644 po/sv.po diff --git a/ChangeLog b/ChangeLog index dde8a1d..f0bb394 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,7 +15,7 @@ KSensors-0.7.2 -------------- * 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 max1617 bug (patch from Aurelien Jarno ) * Updated code for using new version of hddtemp (v0.3b) (patch from Aurelien Jarno ) diff --git a/LIESMICH b/LIESMICH index 36369e3..494907a 100644 --- a/LIESMICH +++ b/LIESMICH @@ -4,7 +4,7 @@ KSensors (ksensors.sourceforge.net) michaell@teleline.es Allgemeine Informationen ------------------------ -Dies ist ein lmsensors Frontend, Sie mssen 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/): In Mandrake versuchen Sie: @@ -12,19 +12,19 @@ urpmi lm_utils lm_utils-devel Dann starten Sie das Script: sensors-detect -es listet die Module auf, die Sie fr Ihr Motherboard installieren mssen. +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) -getestet. Ich wei nicht, ob es mit anderen Motherboards problemlos +getestet. Ich weiß nicht, ob es mit anderen Motherboards problemlos funktioniert. Versuchen Sie es. KSensors kompilieren und installieren ------------------------------------- -Dieses Programm wird standardmig in /usr/local/kde installiert. +Dieses Programm wird standardmäßig in /usr/local/kde installiert. In den neuesten Distributionen (Debian woody, Mandrake, usw.) -liegt das KDE Verzeichnis in /usr. In diesem Fall mssen Sie das +liegt das KDE Verzeichnis in /usr. In diesem Fall müssen Sie das Verzeichnis mit dem --prefix Argument konfigurieren. tar -zxvf ksensors-0.7.3.tar.gz @@ -44,7 +44,7 @@ Kontakt Information ------------------- Kontakten Sie mich, wenn Sie Probleme haben, diese Software zu benutzen, oder um Fehler zu melden, Fragen zu stellen, -Rckmeldungen zu geben usw. +Rückmeldungen zu geben usw. ------------------------- ksensors.sourceforge.net diff --git a/LISEZMOI b/LISEZMOI index b6c6cfe..1b379f2 100644 --- a/LISEZMOI +++ b/LISEZMOI @@ -2,7 +2,7 @@ KSensors (ksensors.sourceforge.net) michaell@teleline.es ================================================================== -Information Gnrales +Information Générales --------------------- 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: sensors-detect il vous montrera les modules de lm-sensors que vous devez installer pour -votre carte-mre. +votre carte-mère. -Ce programme a t test uniquement sur ma carte-mre (PII866 Asus CUBX-L). -Je ne sais pas s'il marche correctement avec d'autres carte-mres, essayez. +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. -NOUVEAU : Surveillance de la temprature des disques durs +NOUVEAU : Surveillance de la température des disques durs --------------------------------------------------------- -KSensors peut maintenant afficher les tempratures de vos disques durs -(uniquement les disques durs rcents). -Vous devez pour cela installer le programme HDDtemp crit par Emmanuel +KSensors peut maintenant afficher les températures de vos disques durs +(uniquement les disques durs récents). +Vous devez pour cela installer le programme HDDtemp écrit par Emmanuel Varagnat. HDDTemp doit se trouver dans la variable PATH pour que KSensors puisse l'utiliser. -Vous pouvez tlcharger HDDTemp l'adresse http://coredump.free.fr. -Le bit SUID bit doit tre activ, tapez: +Vous pouvez télécharger HDDTemp à l'adresse http://coredump.free.fr. +Le bit SUID bit doit être activé, tapez: chmod +s hddtemp -ATTENTION: Activer un bit SUID peut crer un trou de scurit. +ATTENTION: Activer un bit SUID peut créer un trou de sécurité. Compilation et installation de KSensors avec KDE 3.x @@ -44,10 +44,10 @@ cd ksensors-0.7.3 make make install -* Remplacez /opt/kde3 et /usr/lib/qt3 par vos rpertoires KDE3 et QT3. +* Remplacez /opt/kde3 et /usr/lib/qt3 par vos répertoires KDE3 et QT3. -Comment dsinstaller +Comment désinstaller -------------------- cd ksensors-0.7.3 make uninstall @@ -55,7 +55,7 @@ make uninstall Contact ------- -Contactez moi (en anglais ou en espagnol) si vous avez des problmes 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 questions, faire des demandes, etc. diff --git a/acinclude.m4 b/acinclude.m4 index 6c2f70c..0e4a705 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -998,7 +998,7 @@ elif test "$kde_use_qt_emb" = "yes"; then x_includes="" x_libraries="" 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 CXXFLAGS="$CXXFLAGS -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]) cat > conftest.$ac_ext < -#include +#include +#include EOF if test "$kde_qtver" = "2"; then cat >> conftest.$ac_ext < -#include -#include +#include +#include +#include EOF if test $kde_qtsubver -gt 0; then cat >> conftest.$ac_ext <> conftest.$ac_ext < -#include +#include +#include #include EOF fi @@ -1133,20 +1133,20 @@ fi if test -z "$3"; then if test $kde_qtver = 3; then if test $kde_qtsubver -gt 0; then - kde_qt_verstring="QT_VERSION >= 0x030100" + kde_qt_verstring="TQT_VERSION >= 0x030100" else - kde_qt_verstring="QT_VERSION >= 300" + kde_qt_verstring="TQT_VERSION >= 300" fi fi if test $kde_qtver = 2; then if test $kde_qtsubver -gt 0; then - kde_qt_verstring="QT_VERSION >= 222" + kde_qt_verstring="TQT_VERSION >= 222" else - kde_qt_verstring="QT_VERSION >= 200" + kde_qt_verstring="TQT_VERSION >= 200" fi fi 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 else kde_qt_verstring=$3 @@ -1252,7 +1252,7 @@ AC_ARG_ENABLE( USING_QT_MT="" 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 ------------------------------------------------------------------------ KDE_MT_LDFLAGS= @@ -1315,7 +1315,7 @@ dnl ------------------------------------------------------------ fi 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 ------------------------------------------------------------------------ if test "x$kde_use_qt_mt" = "xyes"; then @@ -1386,9 +1386,9 @@ if test ! "$ac_qt_includes" = "NO"; then fi if test "$kde_qtver" != "1"; then - kde_qt_header=qstyle.h + kde_qt_header=ntqstyle.h else - kde_qt_header=qglobal.h + kde_qt_header=ntqglobal.h fi 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" AC_TRY_LINK([ - #include + #include ], [ QDomDocument doc; @@ -2470,7 +2470,7 @@ LIBS=`echo $LIBS | sed "s/$LIBJPEG//"` ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES" AC_TRY_LINK( -[#include ], +[#include ], [ int argc; char** argv; @@ -4358,7 +4358,7 @@ CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes" AC_TRY_RUN(dnl [ #include -#include +#include int main() { QString t = "hallo"; t.fill('t'); @@ -5137,7 +5137,7 @@ if test "${with_qt_dir+set}" = set; then kde_qtdir="$with_qt_dir" 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_SUBST(QTDOCDIR) @@ -5158,7 +5158,7 @@ AC_SUBST(DOXYGEN_PROJECT_NAME) AC_SUBST(DOXYGEN_PROJECT_NUMBER) 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 fi AC_SUBST(KDE_HAS_DOXYGEN) diff --git a/aclocal.m4 b/aclocal.m4 index 9410270..9fd0553 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1010,7 +1010,7 @@ elif test "$kde_use_qt_emb" = "yes"; then x_includes="" x_libraries="" 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 CXXFLAGS="$CXXFLAGS -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]) cat > conftest.$ac_ext < -#include +#include +#include EOF if test "$kde_qtver" = "2"; then cat >> conftest.$ac_ext < -#include -#include +#include +#include +#include EOF if test $kde_qtsubver -gt 0; then cat >> conftest.$ac_ext <> conftest.$ac_ext < -#include +#include +#include #include EOF fi @@ -1145,20 +1145,20 @@ fi if test -z "$3"; then if test $kde_qtver = 3; then if test $kde_qtsubver -gt 0; then - kde_qt_verstring="QT_VERSION >= 0x030100" + kde_qt_verstring="TQT_VERSION >= 0x030100" else - kde_qt_verstring="QT_VERSION >= 300" + kde_qt_verstring="TQT_VERSION >= 300" fi fi if test $kde_qtver = 2; then if test $kde_qtsubver -gt 0; then - kde_qt_verstring="QT_VERSION >= 222" + kde_qt_verstring="TQT_VERSION >= 222" else - kde_qt_verstring="QT_VERSION >= 200" + kde_qt_verstring="TQT_VERSION >= 200" fi fi 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 else kde_qt_verstring=$3 @@ -1264,7 +1264,7 @@ AC_ARG_ENABLE( USING_QT_MT="" 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 ------------------------------------------------------------------------ KDE_MT_LDFLAGS= @@ -1327,7 +1327,7 @@ dnl ------------------------------------------------------------ fi 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 ------------------------------------------------------------------------ if test "x$kde_use_qt_mt" = "xyes"; then @@ -1398,9 +1398,9 @@ if test ! "$ac_qt_includes" = "NO"; then fi if test "$kde_qtver" != "1"; then - kde_qt_header=qstyle.h + kde_qt_header=ntqstyle.h else - kde_qt_header=qglobal.h + kde_qt_header=ntqglobal.h fi 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" AC_TRY_LINK([ - #include + #include ], [ QDomDocument doc; @@ -2482,7 +2482,7 @@ LIBS=`echo $LIBS | sed "s/$LIBJPEG//"` ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES" AC_TRY_LINK( -[#include ], +[#include ], [ int argc; char** argv; @@ -4370,7 +4370,7 @@ CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes" AC_TRY_RUN(dnl [ #include -#include +#include int main() { QString t = "hallo"; t.fill('t'); @@ -5149,7 +5149,7 @@ if test "${with_qt_dir+set}" = set; then kde_qtdir="$with_qt_dir" 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_SUBST(QTDOCDIR) @@ -5170,7 +5170,7 @@ AC_SUBST(DOXYGEN_PROJECT_NAME) AC_SUBST(DOXYGEN_PROJECT_NUMBER) 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 fi AC_SUBST(KDE_HAS_DOXYGEN) diff --git a/doc/en/index.docbook b/doc/en/index.docbook index f560227..481870d 100644 --- a/doc/en/index.docbook +++ b/doc/en/index.docbook @@ -158,17 +158,17 @@ patent issues. --> It slices! It dices! and it comes with a free toaster! -The Squiggle Tool +The Stquiggle Tool - + - + - Squiggle + Stquiggle - is used to draw squiggly lines all over + is used to draw stquiggly lines all over the &ksensors; main window. It's not a bug, it's a feature! @@ -441,7 +441,7 @@ Program copyright 2003 noname s@s.org Contributors: -Konqui the KDE Dragon konqui@kde.org +Kontqui the KDE Dragon kontqui@kde.org Tux the Linux Penguin tux@linux.org diff --git a/po/es.gmo b/po/es.gmo index d1be628211bea92214830a04c80ff701bf0872e8..03a2c6b41d54cd1f09d989976b8543daa465641d 100644 GIT binary patch delta 13 Ucmew?`$cxcOg_ev$us$)04t9Lf&c&j delta 11 Scmew&`&o9wOuosp_@V$JSOpFM diff --git a/po/es.po b/po/es.po index 7a32d97..edfbb2d 100644 --- a/po/es.po +++ b/po/es.po @@ -104,7 +104,7 @@ msgid "" "Welcome to the KSensors configuration window. Click on the left to select a " "configuration option." 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." #: rc.cpp:7 diff --git a/po/nb.po b/po/nb.po new file mode 100644 index 0000000..6de2240 --- /dev/null +++ b/po/nb.po @@ -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 , 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 \n" +"Language-Team: Norwegian Bokmål \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" + diff --git a/po/pl.po b/po/pl.po new file mode 100644 index 0000000..49f5bfa --- /dev/null +++ b/po/pl.po @@ -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: \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" + diff --git a/po/sv.po b/po/sv.po new file mode 100644 index 0000000..e4c16a3 --- /dev/null +++ b/po/sv.po @@ -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 , 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 \n" +"Language-Team: Swedish \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 "Hrddiskar" + +#: 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 instllningar" + +#: 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 "Flkt" + +#: 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 "&terstll" + +#: lmsensorsdock.cpp:65 +msgid "&Exit" +msgstr "&Avsluta" + +#: main.cpp:27 +msgid "KSensors - A nice lmsensors frontend for KDE" +msgstr "KSensors - Ett trevligt grnssnitt mot lmsensors fr 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 "Vlkommen till KSenors konfigurationsfnster. Klicka p vnster sida fr att vlja en instllning." + +#: 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 "Frger" + +#: 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 "Allmnt" + +#: rc.cpp:19 +msgid "Description" +msgstr "Beskrivning" + +#: rc.cpp:21 +msgid "Values" +msgstr "Vrden" + +#: 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 "Tillgg" + +#: 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 "Nr larmvrdet uppns:" + +#: rc.cpp:66 +msgid "Apply to all sensors" +msgstr "Tillmpa p alla sensorer" + +#: rc.cpp:67 +msgid "Do nothing" +msgstr "Gr 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 "Kr 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 "Standardfrger" + +#: rc.cpp:82 +msgid "Background" +msgstr "Bakgrund" + +#: rc.cpp:85 +msgid "Value" +msgstr "Vrde" + +#: 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 anvnt" + +#: systemcfg.cpp:50 +msgid "SWAP Used" +msgstr "SWAP anvnt" + +#: 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" + diff --git a/src/Makefile.am b/src/Makefile.am index 85896d5..7b82db2 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -42,8 +42,8 @@ ksensors_SOURCES = main.cpp ksensors.cpp aboutcfgdesign.ui \ rampanel.cpp sensor.cpp sensorslist.cpp \ systemcfg.cpp systemcfgdesign.ui uptimepanel.cpp -ksensors_LDFLAGS = $(KDE_RPATH) $(all_libraries) -ksensors_LDADD = $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT) -lsensors -lm +ksensors_LDFLAGS = $(TDE_RPATH) $(all_libraries) +ksensors_LDADD = $(LIB_TDEUI) $(LIB_TDECORE) $(LIB_TQT) -lsensors -lm # this is where the desktop file will go shelldesktopdir = $(kde_appsdir)/Utilities diff --git a/src/aboutcfgdesign.cpp b/src/aboutcfgdesign.cpp index b72c70a..dbaf79c 100644 --- a/src/aboutcfgdesign.cpp +++ b/src/aboutcfgdesign.cpp @@ -1,4 +1,4 @@ -#include +#include /**************************************************************************** ** Form implementation generated from reading ui file './aboutcfgdesign.ui' ** @@ -10,19 +10,19 @@ #include "aboutcfgdesign.h" -#include +#include #include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include static const char* const img0_aboutcfgdesign[] = { "32 32 76 2", -"Qt c None", +"TQt c None", ".# c #000000", ".R c #292429", ".P c #292829", @@ -98,339 +98,339 @@ static const char* const img0_aboutcfgdesign[] = { ".1 c #e66918", "#h c #ee4820", "#f c #ee4c20", -"QtQtQtQt.#.#.#.#.#.#.#.#.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQt.#.a.b.a.b.a.b.a.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQt.#.a.a.a.a.a.a.a.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQt.#.#.#.#.#.#.#.#.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQt.#.c.d.c.d.c.e.c.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQt.#.f.f.f.f.f.f.f.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQt.#.#.#.#.#.#.#.#.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQt.#.g.h.i.h.g.h.i.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQt.#.j.j.k.j.j.j.l.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQt.#.#.#.#.#.#.#.#.#Qt.#.#.#.#QtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQt.#.m.m.m.m.m.n.m.#.#.o.o.p.q.#.#QtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQt.#.r.r.r.s.r.#.#.t.u.u.o.v.q.q.w.#.#QtQtQtQtQtQtQtQtQtQt", -"QtQtQtQt.#.#.#.#.#.#.t.t.u.u.o.x.p.p.y.y.w.y.#.#QtQtQtQtQtQtQtQt", -"QtQtQtQt.#.z.#.#.A.B.B.t.t.C.D.E.v.q.q.w.F.w.q.w.#.#QtQtQtQtQtQt", -"QtQtQtQt.#.#.G.G.H.H.I.t.u.u.o.o.J.E.K.y.w.y.w.y.w.y.#.#QtQtQtQt", -"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", -"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", -"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", -"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", -"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", -"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", -"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", -"QtQt.UQt.#.#.U.U.X.U.Y.Y.I.u.o.x.v.v.F.F.Z.Z.0.W.M.L.#.#Qt.#QtQt", -"QtQt.UQt.U.1.#.#.U.X.X.Y.X.2.u.o.x.p.3.4.4.Z.Z.0.#.#Qt.#Qt.#QtQt", -"QtQtQtQt.U.#.U.#.#.#.2.Y.2.2.5.6.7.7.8.4.9.9.#.UQt.UQt.#QtQtQtQt", -"QtQtQtQt.##..U##.U#..#.#.2.2.2.6#a.7.7.4.#.#Qt.UQt.UQtQtQtQtQtQt", -"QtQtQtQt.##b#c#b.U#b.U#b.#.#.5.6#d#d.#.#Qt.UQt.UQtQtQtQtQtQtQtQt", -"QtQtQtQt.#.#.#.#.#.#.U.#.UQt.#.#.#.#Qt.UQt.UQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQt.##e#f#e#f#e#f#g.UQt.UQtQt.UQt.UQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQt.##h#i#j#i#h#i#j.#Qt.UQtQt.UQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQt.#.#.#.#.#.#.#.#.#QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", -"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt"}; +"TQtTQtTQtTQt.#.#.#.#.#.#.#.#.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.#.a.b.a.b.a.b.a.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.#.a.a.a.a.a.a.a.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.#.#.#.#.#.#.#.#.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.#.c.d.c.d.c.e.c.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.#.f.f.f.f.f.f.f.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.#.#.#.#.#.#.#.#.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.#.g.h.i.h.g.h.i.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.#.j.j.k.j.j.j.l.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.#.#.#.#.#.#.#.#.#TQt.#.#.#.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.#.m.m.m.m.m.n.m.#.#.o.o.p.q.#.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.#.r.r.r.s.r.#.#.t.u.u.o.v.q.q.w.#.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.#.#.#.#.#.#.t.t.u.u.o.x.p.p.y.y.w.y.#.#TQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.#.z.#.#.A.B.B.t.t.C.D.E.v.q.q.w.F.w.q.w.#.#TQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.#.#.G.G.H.H.I.t.u.u.o.o.J.E.K.y.w.y.w.y.w.y.#.#TQtTQtTQtTQt", +"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", +"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", +"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", +"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", +"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", +"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", +"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", +"TQtTQt.UTQt.#.#.U.U.X.U.Y.Y.I.u.o.x.v.v.F.F.Z.Z.0.W.M.L.#.#TQt.#TQtTQt", +"TQtTQt.UTQt.U.1.#.#.U.X.X.Y.X.2.u.o.x.p.3.4.4.Z.Z.0.#.#TQt.#TQt.#TQtTQt", +"TQtTQtTQtTQt.U.#.U.#.#.#.2.Y.2.2.5.6.7.7.8.4.9.9.#.UTQt.UTQt.#TQtTQtTQtTQt", +"TQtTQtTQtTQt.##..U##.U#..#.#.2.2.2.6#a.7.7.4.#.#TQt.UTQt.UTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.##b#c#b.U#b.U#b.#.#.5.6#d#d.#.#TQt.UTQt.UTQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.#.#.#.#.#.#.U.#.UTQt.#.#.#.#TQt.UTQt.UTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.##e#f#e#f#e#f#g.UTQt.UTQtTQt.UTQt.UTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.##h#i#j#i#h#i#j.#TQt.UTQtTQt.UTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQt.#.#.#.#.#.#.#.#.#TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt", +"TQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQtTQt"}; /* * Constructs a AboutCfgDesign as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ -AboutCfgDesign::AboutCfgDesign( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ), +AboutCfgDesign::AboutCfgDesign( TQWidget* parent, const char* name, WFlags fl ) + : TQWidget( parent, name, fl ), image0( (const char **) img0_aboutcfgdesign ) { if ( !name ) setName( "AboutCfgDesign" ); - AboutCfgDesignLayout = new QVBoxLayout( this, 0, 0, "AboutCfgDesignLayout"); + AboutCfgDesignLayout = new TQVBoxLayout( this, 0, 0, "AboutCfgDesignLayout"); - Frame3 = new QFrame( this, "Frame3" ); - Frame3->setMinimumSize( QSize( 0, 47 ) ); - Frame3->setMaximumSize( QSize( 32767, 47 ) ); - QPalette pal; - QColorGroup cg; - cg.setColor( QColorGroup::Foreground, black ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, QColor( 241, 241, 241) ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, black ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, QColor( 222, 226, 246) ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); + Frame3 = new TQFrame( this, "Frame3" ); + Frame3->setMinimumSize( TQSize( 0, 47 ) ); + Frame3->setMaximumSize( TQSize( 32767, 47 ) ); + TQPalette pal; + TQColorGroup cg; + cg.setColor( TQColorGroup::Foreground, black ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, black ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, TQColor( 222, 226, 246) ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); pal.setActive( cg ); - cg.setColor( QColorGroup::Foreground, black ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, white ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, black ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, QColor( 222, 226, 246) ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); + cg.setColor( TQColorGroup::Foreground, black ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, white ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, black ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, TQColor( 222, 226, 246) ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); pal.setInactive( cg ); - cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, white ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, QColor( 222, 226, 246) ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); + cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, white ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, TQColor( 222, 226, 246) ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); pal.setDisabled( cg ); Frame3->setPalette( pal ); - Frame3->setFrameShape( QFrame::NoFrame ); - Frame3->setFrameShadow( QFrame::Plain ); + Frame3->setFrameShape( TQFrame::NoFrame ); + Frame3->setFrameShadow( TQFrame::Plain ); - PixmapLabel1 = new QLabel( Frame3, "PixmapLabel1" ); - PixmapLabel1->setGeometry( QRect( 10, 5, 38, 38 ) ); + PixmapLabel1 = new TQLabel( Frame3, "PixmapLabel1" ); + PixmapLabel1->setGeometry( TQRect( 10, 5, 38, 38 ) ); PixmapLabel1->setPixmap( image0 ); PixmapLabel1->setScaledContents( TRUE ); - TextLabel2 = new QLabel( Frame3, "TextLabel2" ); - TextLabel2->setGeometry( QRect( 61, 12, 326, 24 ) ); - QFont TextLabel2_font( TextLabel2->font() ); + TextLabel2 = new TQLabel( Frame3, "TextLabel2" ); + TextLabel2->setGeometry( TQRect( 61, 12, 326, 24 ) ); + TQFont TextLabel2_font( TextLabel2->font() ); TextLabel2_font.setPointSize( 14 ); TextLabel2_font.setBold( TRUE ); TextLabel2->setFont( TextLabel2_font ); AboutCfgDesignLayout->addWidget( Frame3 ); - Frame4 = new QFrame( this, "Frame4" ); - Frame4->setMinimumSize( QSize( 0, 22 ) ); - Frame4->setMaximumSize( QSize( 32767, 22 ) ); - cg.setColor( QColorGroup::Foreground, black ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, QColor( 241, 241, 241) ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, black ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, QColor( 97, 97, 97) ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); + Frame4 = new TQFrame( this, "Frame4" ); + Frame4->setMinimumSize( TQSize( 0, 22 ) ); + Frame4->setMaximumSize( TQSize( 32767, 22 ) ); + cg.setColor( TQColorGroup::Foreground, black ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, black ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, TQColor( 97, 97, 97) ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); pal.setActive( cg ); - cg.setColor( QColorGroup::Foreground, black ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, white ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, black ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, QColor( 97, 97, 97) ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); + cg.setColor( TQColorGroup::Foreground, black ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, white ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, black ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, TQColor( 97, 97, 97) ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); pal.setInactive( cg ); - cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, white ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, QColor( 97, 97, 97) ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); + cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, white ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, TQColor( 97, 97, 97) ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); pal.setDisabled( cg ); Frame4->setPalette( pal ); - Frame4->setFrameShape( QFrame::NoFrame ); - Frame4->setFrameShadow( QFrame::Plain ); + Frame4->setFrameShape( TQFrame::NoFrame ); + Frame4->setFrameShadow( TQFrame::Plain ); - TextLabel1 = new QLabel( Frame4, "TextLabel1" ); - TextLabel1->setGeometry( QRect( 7, 2, 305, 16 ) ); - cg.setColor( QColorGroup::Foreground, white ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, QColor( 241, 241, 241) ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, black ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, QColor( 97, 97, 97) ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); + TextLabel1 = new TQLabel( Frame4, "TextLabel1" ); + TextLabel1->setGeometry( TQRect( 7, 2, 305, 16 ) ); + cg.setColor( TQColorGroup::Foreground, white ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, black ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, TQColor( 97, 97, 97) ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); pal.setActive( cg ); - cg.setColor( QColorGroup::Foreground, white ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, white ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, black ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, QColor( 97, 97, 97) ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); + cg.setColor( TQColorGroup::Foreground, white ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, white ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, black ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, TQColor( 97, 97, 97) ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); pal.setInactive( cg ); - cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, white ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, QColor( 97, 97, 97) ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); + cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, white ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, TQColor( 97, 97, 97) ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); pal.setDisabled( cg ); TextLabel1->setPalette( pal ); AboutCfgDesignLayout->addWidget( Frame4 ); - Frame5 = new QFrame( this, "Frame5" ); - cg.setColor( QColorGroup::Foreground, black ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, QColor( 241, 241, 241) ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, black ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, QColor( 49, 121, 172) ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); + Frame5 = new TQFrame( this, "Frame5" ); + cg.setColor( TQColorGroup::Foreground, black ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, black ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, TQColor( 49, 121, 172) ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); pal.setActive( cg ); - cg.setColor( QColorGroup::Foreground, black ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, white ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, black ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, QColor( 49, 121, 172) ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); + cg.setColor( TQColorGroup::Foreground, black ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, white ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, black ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, TQColor( 49, 121, 172) ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); pal.setInactive( cg ); - cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, white ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, QColor( 49, 121, 172) ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); + cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, white ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, TQColor( 49, 121, 172) ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); pal.setDisabled( cg ); Frame5->setPalette( pal ); - Frame5->setFrameShape( QFrame::NoFrame ); - Frame5->setFrameShadow( QFrame::Plain ); - Frame5Layout = new QHBoxLayout( Frame5, 22, 6, "Frame5Layout"); + Frame5->setFrameShape( TQFrame::NoFrame ); + Frame5->setFrameShadow( TQFrame::Plain ); + Frame5Layout = new TQHBoxLayout( Frame5, 22, 6, "Frame5Layout"); - Frame6 = new QFrame( Frame5, "Frame6" ); - Frame6->setMinimumSize( QSize( 300, 200 ) ); - cg.setColor( QColorGroup::Foreground, black ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, QColor( 241, 241, 241) ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, black ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, QColor( 222, 226, 246) ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); + Frame6 = new TQFrame( Frame5, "Frame6" ); + Frame6->setMinimumSize( TQSize( 300, 200 ) ); + cg.setColor( TQColorGroup::Foreground, black ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, black ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, TQColor( 222, 226, 246) ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); pal.setActive( cg ); - cg.setColor( QColorGroup::Foreground, black ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, white ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, black ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, QColor( 222, 226, 246) ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); + cg.setColor( TQColorGroup::Foreground, black ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, white ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, black ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, TQColor( 222, 226, 246) ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); pal.setInactive( cg ); - cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, white ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, QColor( 222, 226, 246) ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); + cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, white ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, TQColor( 222, 226, 246) ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); pal.setDisabled( cg ); Frame6->setPalette( pal ); - Frame6->setFrameShape( QFrame::NoFrame ); - Frame6->setFrameShadow( QFrame::Plain ); + Frame6->setFrameShape( TQFrame::NoFrame ); + Frame6->setFrameShadow( TQFrame::Plain ); - labelTitle = new QLabel( Frame6, "labelTitle" ); - labelTitle->setGeometry( QRect( 19, 19, 221, 16 ) ); - QFont labelTitle_font( labelTitle->font() ); + labelTitle = new TQLabel( Frame6, "labelTitle" ); + labelTitle->setGeometry( TQRect( 19, 19, 221, 16 ) ); + TQFont labelTitle_font( labelTitle->font() ); labelTitle_font.setPointSize( 10 ); labelTitle_font.setBold( TRUE ); labelTitle->setFont( labelTitle_font ); - TextLabel3_2 = new QLabel( Frame6, "TextLabel3_2" ); - TextLabel3_2->setGeometry( QRect( 20, 49, 248, 147 ) ); - TextLabel3_2->setAlignment( int( QLabel::WordBreak | QLabel::AlignTop | QLabel::AlignLeft ) ); + TextLabel3_2 = new TQLabel( Frame6, "TextLabel3_2" ); + TextLabel3_2->setGeometry( TQRect( 20, 49, 248, 147 ) ); + TextLabel3_2->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignTop | TQLabel::AlignLeft ) ); Frame5Layout->addWidget( Frame6 ); - Spacer1 = new QSpacerItem( 61, 20, QSizePolicy::Fixed, QSizePolicy::Minimum ); + Spacer1 = new TQSpacerItem( 61, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum ); Frame5Layout->addItem( Spacer1 ); AboutCfgDesignLayout->addWidget( Frame5 ); languageChange(); - resize( QSize(413, 353).expandedTo(minimumSizeHint()) ); + resize( TQSize(413, 353).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } @@ -439,7 +439,7 @@ AboutCfgDesign::AboutCfgDesign( QWidget* parent, const char* name, WFlags fl ) */ 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 } /* diff --git a/src/aboutcfgdesign.h b/src/aboutcfgdesign.h index 0f3dc00..2ffe75d 100644 --- a/src/aboutcfgdesign.h +++ b/src/aboutcfgdesign.h @@ -10,45 +10,45 @@ #ifndef ABOUTCFGDESIGN_H #define ABOUTCFGDESIGN_H -#include -#include -#include - -class QVBoxLayout; -class QHBoxLayout; -class QGridLayout; -class QSpacerItem; -class QFrame; -class QLabel; - -class AboutCfgDesign : public QWidget +#include +#include +#include + +class TQVBoxLayout; +class TQHBoxLayout; +class TQGridLayout; +class TQSpacerItem; +class TQFrame; +class TQLabel; + +class AboutCfgDesign : public TQWidget { Q_OBJECT public: - AboutCfgDesign( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + AboutCfgDesign( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~AboutCfgDesign(); - QFrame* Frame3; - QLabel* PixmapLabel1; - QLabel* TextLabel2; - QFrame* Frame4; - QLabel* TextLabel1; - QFrame* Frame5; - QFrame* Frame6; - QLabel* labelTitle; - QLabel* TextLabel3_2; + TQFrame* Frame3; + TQLabel* PixmapLabel1; + TQLabel* TextLabel2; + TQFrame* Frame4; + TQLabel* TextLabel1; + TQFrame* Frame5; + TQFrame* Frame6; + TQLabel* labelTitle; + TQLabel* TextLabel3_2; protected: - QVBoxLayout* AboutCfgDesignLayout; - QHBoxLayout* Frame5Layout; - QSpacerItem* Spacer1; + TQVBoxLayout* AboutCfgDesignLayout; + TQHBoxLayout* Frame5Layout; + TQSpacerItem* Spacer1; protected slots: virtual void languageChange(); private: - QPixmap image0; + TQPixmap image0; }; diff --git a/src/aboutcfgdesign.ui b/src/aboutcfgdesign.ui index 9f7bdcb..b9b75e7 100644 --- a/src/aboutcfgdesign.ui +++ b/src/aboutcfgdesign.ui @@ -2,7 +2,7 @@ AboutCfgDesign kcolorbutton.h - QWidget + TQWidget name AboutCfgDesign @@ -36,7 +36,7 @@ 0 - QFrame + TQFrame name Frame3 @@ -285,7 +285,7 @@ Plain - QLabel + TQLabel name PixmapLabel1 @@ -309,7 +309,7 @@ - QLabel + TQLabel name TextLabel2 @@ -337,7 +337,7 @@ - QFrame + TQFrame name Frame4 @@ -586,7 +586,7 @@ Plain - QLabel + TQLabel name TextLabel1 @@ -828,7 +828,7 @@ - QFrame + TQFrame name Frame5 @@ -1075,7 +1075,7 @@ 6 - QFrame + TQFrame name Frame6 @@ -1317,7 +1317,7 @@ Plain - QLabel + TQLabel name labelTitle @@ -1344,7 +1344,7 @@ - QLabel + TQLabel name TextLabel3_2 diff --git a/src/cpupanel.cpp b/src/cpupanel.cpp index 2eca1e5..74d9a9a 100644 --- a/src/cpupanel.cpp +++ b/src/cpupanel.cpp @@ -18,13 +18,13 @@ #include "cpupanel.h" #include "qlcddraw.h" -#include -#include -#include +#include +#include +#include #include -bool getCpuInfoValue(const char *name,QString &value) +bool getCpuInfoValue(const char *name,TQString &value) { char buffer[128]; char *ptr; @@ -49,7 +49,7 @@ bool result; return result; } -void adjustString(QString &str,int maxlen) +void adjustString(TQString &str,int maxlen) { int i= str.find('('); @@ -58,7 +58,7 @@ int i= str.find('('); 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"; getCpuInfoValue("model name",sCpu); @@ -72,22 +72,22 @@ CpuPanel::CpuPanel(QWidget *parent, const char *name) : Panel(parent,name) getCpuInfoValue("bogomips",sBogomips); sBogomips.sprintf("%.0f BMPS",sBogomips.toDouble()); - QString sSpeed= "0"; + TQString sSpeed= "0"; getCpuInfoValue("cpu MHz",sSpeed); sSpeed.sprintf("%.0f",sSpeed.toDouble()); - speed= new QLCDNumber(this); + speed= new TQLCDNumber(this); speed->setGeometry(6,20,52,26); speed->setNumDigits(sSpeed.length()); - speed->setSegmentStyle(QLCDNumber::Filled); - speed->setFrameShape(QFrame::NoFrame); + speed->setSegmentStyle(TQLCDNumber::Filled); + speed->setFrameShape(TQFrame::NoFrame); speed->display(sSpeed); - QPalette cg= speed->palette(); - cg.setColor( QColorGroup::Foreground, QColor( 255, 0, 0) ); - cg.setColor( QColorGroup::Light, QColor( 255, 0, 0) ); - cg.setColor( QColorGroup::Midlight, QColor( 231, 232, 246) ); - cg.setColor( QColorGroup::Dark, QColor( 104, 105, 118) ); - cg.setColor( QColorGroup::Mid, QColor( 139, 140, 158) ); - cg.setColor( QColorGroup::Background, palette().active().background() ); + TQPalette cg= speed->palette(); + cg.setColor( TQColorGroup::Foreground, TQColor( 255, 0, 0) ); + cg.setColor( TQColorGroup::Light, TQColor( 255, 0, 0) ); + cg.setColor( TQColorGroup::Midlight, TQColor( 231, 232, 246) ); + cg.setColor( TQColorGroup::Dark, TQColor( 104, 105, 118) ); + cg.setColor( TQColorGroup::Mid, TQColor( 139, 140, 158) ); + cg.setColor( TQColorGroup::Background, palette().active().background() ); speed->setPalette(cg); speed->installEventFilter(this); } @@ -108,7 +108,7 @@ void CpuPanel::updateInfo() update(); } -void CpuPanel::drawContents(QPainter *p) +void CpuPanel::drawContents(TQPainter *p) { int w= width(); int h= height(); @@ -116,20 +116,20 @@ void CpuPanel::drawContents(QPainter *p) int i2= (h * 4) / 5; int th= h-i2-h/11; - QLcd::draw(p, 2,h/10,w-4,th,sCpu.latin1(),QLcd::alignJustify, &getColorTitle()); - QLcd::draw(p, 2,i2+1,w-4,th,sBogomips.latin1(),QLcd::alignCenter,&getColorTitle()); + TQLcd::draw(p, 2,h/10,w-4,th,sCpu.latin1(),TQLcd::alignJustify, &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); } -void CpuPanel::resizeEvent ( QResizeEvent *e ) +void CpuPanel::resizeEvent ( TQResizeEvent *e ) { int w= width(); int h= height(); diff --git a/src/cpupanel.h b/src/cpupanel.h index 29d9a55..77aff3c 100644 --- a/src/cpupanel.h +++ b/src/cpupanel.h @@ -20,7 +20,7 @@ #include "panel.h" -#include +#include #include "qlcdstring.h" /** @@ -32,23 +32,23 @@ class CpuPanel : public Panel { Q_OBJECT public: - CpuPanel(QWidget *parent=0, const char *name=0); + CpuPanel(TQWidget *parent=0, const char *name=0); ~CpuPanel(); protected: - void drawContents ( QPainter *p ); - void paletteChange( const QPalette &oldPalette); + void drawContents ( TQPainter *p ); + void paletteChange( const TQPalette &oldPalette); private: 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 diff --git a/src/cputimepanel.cpp b/src/cputimepanel.cpp index 5581dc2..6b6612a 100644 --- a/src/cputimepanel.cpp +++ b/src/cputimepanel.cpp @@ -19,49 +19,49 @@ #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->setForeColor(red); - lcd1->setAlign(QLCDString::alignLeft); + lcd1->setAlign(TQLCDString::alignLeft); lcd1->setNumberDisplay(true); 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->setForeColor(color2); - lcd2->setAlign(QLCDString::alignLeft); + lcd2->setAlign(TQLCDString::alignLeft); lcd2->setNumberDisplay(true); 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->setForeColor(color3); - lcd3->setAlign(QLCDString::alignLeft); + lcd3->setAlign(TQLCDString::alignLeft); lcd3->setNumberDisplay(true); lcd3->installEventFilter(this); - lcd4= new QLCDString(this); + lcd4= new TQLCDString(this); lcd4->setGeometry(16,8,46,8); lcd4->setForeColor(darkGreen); - lcd4->setAlign(QLCDString::alignLeft); + lcd4->setAlign(TQLCDString::alignLeft); lcd4->setNumberDisplay(true); lcd4->installEventFilter(this); - barMeter= new QBarMeter(this); + barMeter= new TQBarMeter(this); barMeter->setGeometry(6,6,6,40); - barMeter->setDirection(QBarMeter::dirUp); + barMeter->setDirection(TQBarMeter::dirUp); barMeter->setSteps(20); barMeter->useValueMax(false); barMeter->setValueColor( 0, red ); barMeter->setValueColor( 1, color2 ); barMeter->setValueColor( 2, color3 ); - barMeter->setValueColor( 3, QColor(0,220,0) ); + barMeter->setValueColor( 3, TQColor(0,220,0) ); barMeter->setValueCount(4); barMeter->installEventFilter(this); @@ -72,13 +72,13 @@ CpuTimePanel::CpuTimePanel(QWidget *parent, const char *name): Panel(parent,name CpuTimePanel::~CpuTimePanel(){ } -void CpuTimePanel::drawContents(QPainter *p) +void CpuTimePanel::drawContents(TQPainter *p) { int w= width(); int h= height(); int i2= (h * 4) / 5; 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; - QString str; + TQString str; str.sprintf ("USER%5.1f" , (float)puser /ptotal * 100 ); lcd1->display(str); str.sprintf ("NICE%5.1f" , (float)pnice /ptotal * 100 ); @@ -118,7 +118,7 @@ void CpuTimePanel::updateInfo() old_idle = idle; } -void CpuTimePanel::resizeEvent ( QResizeEvent *e ) +void CpuTimePanel::resizeEvent ( TQResizeEvent *e ) { int w= width(); int h= height(); diff --git a/src/cputimepanel.h b/src/cputimepanel.h index efc1326..d2b5f42 100644 --- a/src/cputimepanel.h +++ b/src/cputimepanel.h @@ -18,7 +18,7 @@ #ifndef CPUTIMEPANEL_H #define CPUTIMEPANEL_H -#include +#include #include #include "qlcdstring.h" @@ -30,18 +30,18 @@ class CpuTimePanel : public Panel { public: - CpuTimePanel(QWidget *parent=0, const char *name=0); + CpuTimePanel(TQWidget *parent=0, const char *name=0); ~CpuTimePanel(); protected: int old_user,old_nice,old_system,old_idle; - QLCDString *lcd1,*lcd2,*lcd3,*lcd4; - QBarMeter *barMeter; + TQLCDString *lcd1,*lcd2,*lcd3,*lcd4; + TQBarMeter *barMeter; void updateInfo(); - void drawContents(QPainter *p); - void resizeEvent ( QResizeEvent *e ); + void drawContents(TQPainter *p); + void resizeEvent ( TQResizeEvent *e ); }; #endif diff --git a/src/generalcfg.cpp b/src/generalcfg.cpp index 52ab597..ed35589 100644 --- a/src/generalcfg.cpp +++ b/src/generalcfg.cpp @@ -17,25 +17,25 @@ #include "generalcfg.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include "lmsensorswidget.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; palPanelCfg= new PaletteCfg( boxGeneralPalette ); - boxGeneralPalette->setColumnLayout(0, Qt::Vertical ); + boxGeneralPalette->setColumnLayout(0, TQt::Vertical ); boxGeneralPalette->layout()->setSpacing( 6 ); boxGeneralPalette->layout()->setMargin( 12 ); - QGridLayout *boxGeneralPaletteLayout = new QGridLayout( boxGeneralPalette->layout() ); - boxGeneralPaletteLayout->setAlignment( Qt::AlignTop ); + TQGridLayout *boxGeneralPaletteLayout = new TQGridLayout( boxGeneralPalette->layout() ); + boxGeneralPaletteLayout->setAlignment( TQt::AlignTop ); boxGeneralPaletteLayout->addWidget( palPanelCfg, 0, 0 ); palPanelCfg->readPalette(0); @@ -47,7 +47,7 @@ GeneralCfg::GeneralCfg(LMSensors *lsensors, QWidget *parent, const char *name) : case 48: Radio48->setChecked(true); break; } - KConfig *cfg= KGlobal::config(); + TDEConfig *cfg= TDEGlobal::config(); cfg->setGroup( "General" ); CheckBoxAutoStart->setChecked(cfg->readBoolEntry("AutoStart",true)); //connect( buttonApply ,SIGNAL(clicked()),this, SLOT(slotApplyChanges())); @@ -69,7 +69,7 @@ void GeneralCfg::slotApplyChanges() else if(Radio48->isChecked()) panelSize= 48; LMSensorsWidget::cfgWritePanelSize(panelSize); - KConfig *cfg= KGlobal::config(); + TDEConfig *cfg= TDEGlobal::config(); cfg->setGroup( "General" ); cfg->writeEntry("AutoStart", CheckBoxAutoStart->isChecked()); diff --git a/src/generalcfg.h b/src/generalcfg.h index 7bcb32f..bb60a22 100644 --- a/src/generalcfg.h +++ b/src/generalcfg.h @@ -29,7 +29,7 @@ class GeneralCfg : public GeneralCfgDesign { Q_OBJECT public: - GeneralCfg(LMSensors *lsensors, QWidget *parent=0, const char *name=0); + GeneralCfg(LMSensors *lsensors, TQWidget *parent=0, const char *name=0); ~GeneralCfg(); public slots: diff --git a/src/generalcfgdesign.cpp b/src/generalcfgdesign.cpp index 692c693..a70211d 100644 --- a/src/generalcfgdesign.cpp +++ b/src/generalcfgdesign.cpp @@ -1,4 +1,4 @@ -#include +#include /**************************************************************************** ** Form implementation generated from reading ui file './generalcfgdesign.ui' ** @@ -10,69 +10,69 @@ #include "generalcfgdesign.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include /* * Constructs a GeneralCfgDesign as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ -GeneralCfgDesign::GeneralCfgDesign( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +GeneralCfgDesign::GeneralCfgDesign( TQWidget* parent, const char* name, WFlags fl ) + : TQWidget( parent, name, fl ) { if ( !name ) 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->setColumnLayout(0, Qt::Vertical ); + ButtonGroup5 = new TQButtonGroup( this, "ButtonGroup5" ); + ButtonGroup5->setColumnLayout(0, TQt::Vertical ); ButtonGroup5->layout()->setSpacing( 6 ); ButtonGroup5->layout()->setMargin( 11 ); - ButtonGroup5Layout = new QGridLayout( ButtonGroup5->layout() ); - ButtonGroup5Layout->setAlignment( Qt::AlignTop ); + ButtonGroup5Layout = new TQGridLayout( ButtonGroup5->layout() ); + ButtonGroup5Layout->setAlignment( TQt::AlignTop ); - Radio64 = new QRadioButton( ButtonGroup5, "Radio64" ); + Radio64 = new TQRadioButton( ButtonGroup5, "Radio64" ); Radio64->setChecked( TRUE ); ButtonGroup5Layout->addWidget( Radio64, 0, 0 ); - Radio56 = new QRadioButton( ButtonGroup5, "Radio56" ); + Radio56 = new TQRadioButton( ButtonGroup5, "Radio56" ); ButtonGroup5Layout->addWidget( Radio56, 0, 1 ); - Radio48 = new QRadioButton( ButtonGroup5, "Radio48" ); + Radio48 = new TQRadioButton( ButtonGroup5, "Radio48" ); ButtonGroup5Layout->addWidget( Radio48, 0, 2 ); GeneralCfgDesignLayout->addWidget( ButtonGroup5, 0, 0 ); - boxGeneralPalette = new QGroupBox( this, "boxGeneralPalette" ); - boxGeneralPalette->setMinimumSize( QSize( 0, 65 ) ); + boxGeneralPalette = new TQGroupBox( this, "boxGeneralPalette" ); + boxGeneralPalette->setMinimumSize( TQSize( 0, 65 ) ); GeneralCfgDesignLayout->addWidget( boxGeneralPalette, 1, 0 ); - GroupBox2 = new QGroupBox( this, "GroupBox2" ); - GroupBox2->setColumnLayout(0, Qt::Vertical ); + GroupBox2 = new TQGroupBox( this, "GroupBox2" ); + GroupBox2->setColumnLayout(0, TQt::Vertical ); GroupBox2->layout()->setSpacing( 6 ); GroupBox2->layout()->setMargin( 11 ); - GroupBox2Layout = new QVBoxLayout( GroupBox2->layout() ); - GroupBox2Layout->setAlignment( Qt::AlignTop ); + GroupBox2Layout = new TQVBoxLayout( GroupBox2->layout() ); + GroupBox2Layout->setAlignment( TQt::AlignTop ); - CheckBoxAutoStart = new QCheckBox( GroupBox2, "CheckBoxAutoStart" ); + CheckBoxAutoStart = new TQCheckBox( GroupBox2, "CheckBoxAutoStart" ); GroupBox2Layout->addWidget( CheckBoxAutoStart ); 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 ); languageChange(); - resize( QSize(343, 239).expandedTo(minimumSizeHint()) ); + resize( TQSize(343, 239).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } @@ -81,7 +81,7 @@ GeneralCfgDesign::GeneralCfgDesign( QWidget* parent, const char* name, WFlags fl */ 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 } /* diff --git a/src/generalcfgdesign.h b/src/generalcfgdesign.h index 94735ab..2df78b8 100644 --- a/src/generalcfgdesign.h +++ b/src/generalcfgdesign.h @@ -10,39 +10,39 @@ #ifndef GENERALCFGDESIGN_H #define GENERALCFGDESIGN_H -#include -#include - -class QVBoxLayout; -class QHBoxLayout; -class QGridLayout; -class QSpacerItem; -class QButtonGroup; -class QRadioButton; -class QGroupBox; -class QCheckBox; - -class GeneralCfgDesign : public QWidget +#include +#include + +class TQVBoxLayout; +class TQHBoxLayout; +class TQGridLayout; +class TQSpacerItem; +class TQButtonGroup; +class TQRadioButton; +class TQGroupBox; +class TQCheckBox; + +class GeneralCfgDesign : public TQWidget { Q_OBJECT public: - GeneralCfgDesign( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + GeneralCfgDesign( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~GeneralCfgDesign(); - QButtonGroup* ButtonGroup5; - QRadioButton* Radio64; - QRadioButton* Radio56; - QRadioButton* Radio48; - QGroupBox* boxGeneralPalette; - QGroupBox* GroupBox2; - QCheckBox* CheckBoxAutoStart; + TQButtonGroup* ButtonGroup5; + TQRadioButton* Radio64; + TQRadioButton* Radio56; + TQRadioButton* Radio48; + TQGroupBox* boxGeneralPalette; + TQGroupBox* GroupBox2; + TQCheckBox* CheckBoxAutoStart; protected: - QGridLayout* GeneralCfgDesignLayout; - QSpacerItem* Spacer28; - QGridLayout* ButtonGroup5Layout; - QVBoxLayout* GroupBox2Layout; + TQGridLayout* GeneralCfgDesignLayout; + TQSpacerItem* Spacer28; + TQGridLayout* ButtonGroup5Layout; + TQVBoxLayout* GroupBox2Layout; protected slots: virtual void languageChange(); diff --git a/src/generalcfgdesign.ui b/src/generalcfgdesign.ui index fa060e8..cd7c024 100644 --- a/src/generalcfgdesign.ui +++ b/src/generalcfgdesign.ui @@ -1,6 +1,6 @@ GeneralCfgDesign - + GeneralCfgDesign @@ -29,7 +29,7 @@ 6 - + ButtonGroup5 @@ -46,7 +46,7 @@ 6 - + Radio64 @@ -57,7 +57,7 @@ true - + Radio56 @@ -65,7 +65,7 @@ 56 x 56 - + Radio48 @@ -75,7 +75,7 @@ - + boxGeneralPalette @@ -93,7 +93,7 @@ - + GroupBox2 @@ -110,7 +110,7 @@ 6 - + CheckBoxAutoStart diff --git a/src/hdsensorslist.cpp b/src/hdsensorslist.cpp index 8cbfa13..aaec441 100644 --- a/src/hdsensorslist.cpp +++ b/src/hdsensorslist.cpp @@ -21,19 +21,19 @@ #include #include #include -#include -#include -#include +#include +#include +#include #include "sensor.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; - setDescription( QString(i18n("Hard Disks")) ); + setDescription( TQString(i18n("Hard Disks")) ); setClass(Sensor::hdSensor); @@ -41,16 +41,16 @@ HDSensorsList::HDSensorsList(QObject *parent, const char * name): SensorsList(pa if(!isHddTempInstalled()) return; - QStringList disks; + TQStringList disks; 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; proc << "hddtemp" << "-q"; proc << *it; if(proc.runAndWait()) { double value; - QString str; + TQString str; if(getDiskInfo(proc.getStdoutData(),str,value)) { Sensor *sensor= new Sensor(this); sensor->setType(Sensor::lmTemp); @@ -77,10 +77,10 @@ void HDSensorsList::updateSensors() { if(process) return; - QObjectList *list= (QObjectList *)children(); + TQObjectList *list= (TQObjectList *)children(); if(!list) return; - QStringList params; + TQStringList params; for(Sensor *obj= (Sensor *)list->first(); obj!=0; obj= (Sensor *)list->next()) if(obj->monitorized()) params << obj->name(); @@ -88,24 +88,24 @@ void HDSensorsList::updateSensors() if(params.count()>0) { process= new ProcessExec; *process << "hddtemp" << "-q" << params; - connect( process, SIGNAL(processExited(KProcess *)), this, SLOT(slotProcessExited(KProcess *)) ); + connect( process, SIGNAL(processExited(TDEProcess *)), this, SLOT(slotProcessExited(TDEProcess *)) ); process->run(); } } -void HDSensorsList::slotProcessExited(KProcess *) +void HDSensorsList::slotProcessExited(TDEProcess *) { - QObjectList *list= (QObjectList *)children(); + TQObjectList *list= (TQObjectList *)children(); if (!list) return; 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()); - for(QStringList::Iterator it = buf.begin(); it != buf.end(); ++it ) { + TQStringList buf = TQStringList::split(TQChar('\n'), process->getStdoutData()); + for(TQStringList::Iterator it = buf.begin(); it != buf.end(); ++it ) { 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) obj->setValue(rx.cap(1).toDouble(), Sensor::dgCelsius); } @@ -117,9 +117,9 @@ void HDSensorsList::slotProcessExited(KProcess *) // *************** 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) { bool ok; @@ -142,12 +142,12 @@ bool HDSensorsList::isHddTempInstalled() proc << "hddtemp" << "-v" ; if(proc.runAndWait()) { 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; } -bool HDSensorsList::getDisks(QStringList &disks ) +bool HDSensorsList::getDisks(TQStringList &disks ) { DIR *dir; @@ -155,7 +155,7 @@ bool HDSensorsList::getDisks(QStringList &disks ) if((dir = opendir ("/sys/block")) == NULL) if ((dir = opendir ("/proc/ide")) == NULL) return false; - QString str; + TQString str; struct dirent *ptr; while((ptr= readdir(dir))) { if((ptr->d_name[0]=='h' || ptr->d_name[0]=='s') && ptr->d_name[1]=='d') { diff --git a/src/hdsensorslist.h b/src/hdsensorslist.h index fff3015..8ab53a1 100644 --- a/src/hdsensorslist.h +++ b/src/hdsensorslist.h @@ -30,7 +30,7 @@ class HDSensorsList : public SensorsList { Q_OBJECT public: - HDSensorsList(QObject *parent, const char * name); + HDSensorsList(TQObject *parent, const char * name); ~HDSensorsList(); public slots: @@ -39,15 +39,15 @@ public slots: protected slots: - void slotProcessExited(KProcess *proc); + void slotProcessExited(TDEProcess *proc); private: ProcessExec *process; static bool isHddTempInstalled(); - static bool getDisks(QStringList &disks); - static bool getDiskInfo(const QString buf, QString &name, double &value); + static bool getDisks(TQStringList &disks); + static bool getDiskInfo(const TQString buf, TQString &name, double &value); }; #endif diff --git a/src/i8ksensorslist.cpp b/src/i8ksensorslist.cpp index 06d12c9..178d223 100644 --- a/src/i8ksensorslist.cpp +++ b/src/i8ksensorslist.cpp @@ -15,7 +15,7 @@ * * ***************************************************************************/ -#include +#include #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); @@ -118,8 +118,8 @@ bool I8KSensorsList::I8KAvailable() int result; switch(result= I8KOnlyAvailable()) { - case -2: qWarning("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 -2: tqWarning("I18K Warning: /proc/i8k format not valid or not 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); diff --git a/src/i8ksensorslist.h b/src/i8ksensorslist.h index 39a355e..7310388 100644 --- a/src/i8ksensorslist.h +++ b/src/i8ksensorslist.h @@ -28,7 +28,7 @@ class I8KSensorsList : public SensorsList { Q_OBJECT public: - I8KSensorsList(QObject *parent, const char * name); + I8KSensorsList(TQObject *parent, const char * name); ~I8KSensorsList(); diff --git a/src/infopanels.cpp b/src/infopanels.cpp index 18d4736..a5f4132 100644 --- a/src/infopanels.cpp +++ b/src/infopanels.cpp @@ -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; timerPanelCount=0; - timer = new QTimer(this); + timer = new TQTimer(this); configChanged("proc.CPUINFO"); configChanged("proc.RAMINFO"); configChanged("proc.SWAPINFO"); @@ -72,14 +72,14 @@ void InfoPanels::infoPanelDestroyed() void InfoPanels::cfgWriteUpdateInterval(int interval) { - KGlobal::config()->setGroup("ShowWidget"); - KGlobal::config()->writeEntry("UpdateInterval" , interval ); + TDEGlobal::config()->setGroup("ShowWidget"); + TDEGlobal::config()->writeEntry("UpdateInterval" , interval ); } int InfoPanels::cfgReadUpdateInterval() { - KGlobal::config()->setGroup("ShowWidget"); - return KGlobal::config()->readNumEntry("UpdateInterval" , 5 ); + TDEGlobal::config()->setGroup("ShowWidget"); + return TDEGlobal::config()->readNumEntry("UpdateInterval" , 5 ); } void InfoPanels::readUpdateInterval() diff --git a/src/infopanels.h b/src/infopanels.h index 9dff7a5..6e86a28 100644 --- a/src/infopanels.h +++ b/src/infopanels.h @@ -18,8 +18,8 @@ #ifndef INFOPANELS_H #define INFOPANELS_H -#include -#include +#include +#include #include "panelsgroup.h" #include "cpupanel.h" @@ -36,7 +36,7 @@ class InfoPanels : public PanelsGroup { Q_OBJECT public: - InfoPanels(QWidget *panelsWidget, QObject *parent=0, const char *name=0); + InfoPanels(TQWidget *panelsWidget, TQObject *parent=0, const char *name=0); ~InfoPanels(); static int cfgReadUpdateInterval(); @@ -53,8 +53,8 @@ protected slots: private: int timerPanelCount; - QTimer *timer; - QWidget *widget; + TQTimer *timer; + TQWidget *widget; void readUpdateInterval(); void timerConnect(Panel *display); diff --git a/src/ksensors.cpp b/src/ksensors.cpp index 2447fcb..c99ada1 100644 --- a/src/ksensors.cpp +++ b/src/ksensors.cpp @@ -4,18 +4,18 @@ #include "ksensors.h" -#include +#include -#include -#include +#include +#include ksensors::ksensors() - : KMainWindow( 0, "ksensors" ) + : TDEMainWindow( 0, "ksensors" ) { // set the shell's ui resource file setXMLFile("ksensorsui.rc"); - new QLabel( "Hello World", this, "hello label" ); + new TQLabel( "Hello World", this, "hello label" ); } ksensors::~ksensors() diff --git a/src/ksensors.h b/src/ksensors.h index 16dbc7f..bbe85aa 100644 --- a/src/ksensors.h +++ b/src/ksensors.h @@ -9,14 +9,14 @@ #include #endif -#include +#include /** * @short Application Main Window * @author noname * @version 0.1 */ -class ksensors : public KMainWindow +class ksensors : public TDEMainWindow { Q_OBJECT public: diff --git a/src/ksensorscfg.cpp b/src/ksensorscfg.cpp index 1b9e603..26f27c0 100644 --- a/src/ksensorscfg.cpp +++ b/src/ksensorscfg.cpp @@ -17,18 +17,18 @@ #include "ksensorscfg.h" -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include +#include +#include #include #include @@ -39,7 +39,7 @@ #include "lmsensorscfg.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) : KDialogBase(IconList, name, Apply|Close, Close ) @@ -47,27 +47,27 @@ KSensorsCfg::KSensorsCfg(LMSensors *lsensors, const char *name) sensors= lsensors; //resize( 558, 370 ); - setSizePolicy(QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum)); + setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum)); setCaption( i18n("KSensors Configuration") ); - QFrame *page; - QVBoxLayout *lay; + TQFrame *page; + TQVBoxLayout *lay; page = addPage( i18n("Global settings"), i18n("Global settings"), Icon("earth.png") ); m_generalcfg = new GeneralCfg(sensors, page); - lay = new QVBoxLayout( page ); + lay = new TQVBoxLayout( page ); lay->addWidget(m_generalcfg); connect(this, SIGNAL(applyClicked()), m_generalcfg, SLOT(slotApplyChanges()) ); - QObjectList *list= sensors->getSensorsChips(); + TQObjectList *list= sensors->getSensorsChips(); if(list) { for(SensorsList *chip= (SensorsList *)list->first(); chip!=0; chip= (SensorsList *)list->next()) { 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); - lay = new QVBoxLayout( page ); + lay = new TQVBoxLayout( page ); lay->addWidget(cfgWidget); 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") ); cfgWidget = new LMSensorsCfg(chip, page); - lay = new QVBoxLayout( page ); + lay = new TQVBoxLayout( page ); lay->addWidget(cfgWidget); 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") ); m_systemcfg = new SystemCfg(sensors, page); - lay = new QVBoxLayout( page ); + lay = new TQVBoxLayout( page ); lay->addWidget(m_systemcfg); connect(this, SIGNAL(applyClicked()), m_systemcfg, SLOT(slotApplyChanges()) ); diff --git a/src/ksensorscfg.h b/src/ksensorscfg.h index 764e7fc..33b41d0 100644 --- a/src/ksensorscfg.h +++ b/src/ksensorscfg.h @@ -18,15 +18,15 @@ #ifndef KSENSORSCFG_H #define KSENSORSCFG_H -#include +#include #include -//class QVBoxLayout; -//class QHBoxLayout; -//class QGridLayout; -//class QFrame; -//class QIconView; -//class QIconViewItem; +//class TQVBoxLayout; +//class TQHBoxLayout; +//class TQGridLayout; +//class TQFrame; +//class TQIconView; +//class TQIconViewItem; class KDialogBase; class GeneralCfg; class LMSensorsCfg; @@ -56,12 +56,12 @@ private: LMSensorsCfg *m_lmsensorscfg; SystemCfg *m_systemcfg; - QWidget *cfgWidget; + TQWidget *cfgWidget; /* - QIconView *IconView; - QWidget *cfgWidget; - QHBoxLayout *FormLayout;*/ + TQIconView *IconView; + TQWidget *cfgWidget; + TQHBoxLayout *FormLayout;*/ }; #endif diff --git a/src/ksensorssplash.cpp b/src/ksensorssplash.cpp index 0c65203..7736d2d 100644 --- a/src/ksensorssplash.cpp +++ b/src/ksensorssplash.cpp @@ -20,14 +20,14 @@ #include #include -KSensorsSplash::KSensorsSplash(QWidget *parent, const char *name ) : - QWidget(parent,name, WStyle_NoBorder | WStyle_Customize | WDestructiveClose | WStyle_StaysOnTop ) +KSensorsSplash::KSensorsSplash(TQWidget *parent, const char *name ) : + TQWidget(parent,name, WStyle_NoBorder | WStyle_Customize | WDestructiveClose | WStyle_StaysOnTop ) { - QPixmap pm; + TQPixmap pm; pm.load( locate("appdata", "pics/ksensorssplash.png") ); setBackgroundPixmap(pm); - setGeometry( QApplication::desktop()->width ()/2-pm.width()/2, - QApplication::desktop()->height()/2-pm.height()/2, + setGeometry( TQApplication::desktop()->width ()/2-pm.width()/2, + TQApplication::desktop()->height()/2-pm.height()/2, pm.width(),pm.height() ); show(); @@ -37,7 +37,7 @@ KSensorsSplash::KSensorsSplash(QWidget *parent, const char *name ) : KSensorsSplash::~KSensorsSplash(){ } -void KSensorsSplash::timerEvent( QTimerEvent * ) +void KSensorsSplash::timerEvent( TQTimerEvent * ) { close(); } diff --git a/src/ksensorssplash.h b/src/ksensorssplash.h index 3330b64..6d88a69 100644 --- a/src/ksensorssplash.h +++ b/src/ksensorssplash.h @@ -18,24 +18,24 @@ #ifndef KSENSORSSPLASH_H #define KSENSORSSPLASH_H -#include -//#include +#include +//#include /** *@author Miguel Novas */ -class KSensorsSplash : public QWidget { +class KSensorsSplash : public TQWidget { Q_OBJECT public: - KSensorsSplash(QWidget *parent=0, const char *name=0 ); + KSensorsSplash(TQWidget *parent=0, const char *name=0 ); ~KSensorsSplash(); protected: - void timerEvent( QTimerEvent * ); + void timerEvent( TQTimerEvent * ); }; #endif diff --git a/src/lmsensor.cpp b/src/lmsensor.cpp index 6214eb2..82a67f2 100644 --- a/src/lmsensor.cpp +++ b/src/lmsensor.cpp @@ -41,7 +41,7 @@ bool LMSensor::init(const sensors_feature **data, int *nr1, int *nr2) const char* main_name = (*data)->name; feature= (*data)->number; char *label = NULL; - QString uniqueSensorName; + TQString uniqueSensorName; #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); @@ -108,7 +108,7 @@ bool LMSensor::init(const sensors_feature **data, int *nr1, int *nr2) sensors_get_label(*chip_name,feature,&label); if (label) { - setDescription(QString(label)); + setDescription(TQString(label)); delete label; 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); if (label) { - setDescription(QString(label)); + setDescription(TQString(label)); delete label; label = NULL; } diff --git a/src/lmsensor.h b/src/lmsensor.h index 87250e0..79e8aaf 100644 --- a/src/lmsensor.h +++ b/src/lmsensor.h @@ -18,10 +18,10 @@ #ifndef LMSENSOR_H #define LMSENSOR_H -#include -#include -#include -#include +#include +#include +#include +#include #include #include "sensor.h" @@ -62,7 +62,7 @@ private: int feature; SensorType type; - QString description; + TQString description; double val; double valPrevious; double compensation; diff --git a/src/lmsensordockpanel.cpp b/src/lmsensordockpanel.cpp index 143007e..b0b9361 100644 --- a/src/lmsensordockpanel.cpp +++ b/src/lmsensordockpanel.cpp @@ -16,11 +16,11 @@ ***************************************************************************/ -#include +#include #include -#include -#include +#include +#include #include #include "lmsensordockpanel.h" @@ -70,14 +70,14 @@ void LMSensorDockPanel::updateConfig() setValue(sensor->getValue()); } -void LMSensorDockPanel::paintEvent ( QPaintEvent *e ) +void LMSensorDockPanel::paintEvent ( TQPaintEvent *e ) { if(sensor) { int w= width(); int h= height(); - QPainter painter(this); - QColor color= sensor->getAlarm() ? colorAlarm : colorNormal; - QColor colorShadow= color.dark(200); + TQPainter painter(this); + TQColor color= sensor->getAlarm() ? colorAlarm : colorNormal; + TQColor colorShadow= color.dark(200); painter.setPen(color); painter.drawLine(2, 2 , w-2,2 ); 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, h-4, w-3,h-4); 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 { - 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 { KSystemTray::paintEvent(e); } } -void LMSensorDockPanel::mousePressEvent ( QMouseEvent *e ) +void LMSensorDockPanel::mousePressEvent ( TQMouseEvent *e ) { emit mouseEvent(e); } -void LMSensorDockPanel::mouseReleaseEvent ( QMouseEvent *e ) +void LMSensorDockPanel::mouseReleaseEvent ( TQMouseEvent *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); - KGlobal::config()->writeEntry("colorAlarm",color); + TDEGlobal::config()->setGroup(name); + 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); - KGlobal::config()->writeEntry("colorNormal",color); + TDEGlobal::config()->setGroup(name); + TDEGlobal::config()->writeEntry("colorNormal",color); } -QColor LMSensorDockPanel::readColorAlarm(const char *name) +TQColor LMSensorDockPanel::readColorAlarm(const char *name) { - KGlobal::config()->setGroup(name); - return KGlobal::config()->readColorEntry("colorAlarm" , &red ); + TDEGlobal::config()->setGroup(name); + return TDEGlobal::config()->readColorEntry("colorAlarm" , &red ); } -QColor LMSensorDockPanel::readColorNormal(const char *name) +TQColor LMSensorDockPanel::readColorNormal(const char *name) { - KGlobal::config()->setGroup(name); - return KGlobal::config()->readColorEntry("colorNormal", &darkGreen); + TDEGlobal::config()->setGroup(name); + return TDEGlobal::config()->readColorEntry("colorNormal", &darkGreen); } void LMSensorDockPanel::writeShowInDock(const char *name, bool fShow) { - KGlobal::config()->setGroup(name); - KGlobal::config()->writeEntry("showInDock",fShow); + TDEGlobal::config()->setGroup(name); + TDEGlobal::config()->writeEntry("showInDock",fShow); } bool LMSensorDockPanel::readShowInDock(const char *name) { - KGlobal::config()->setGroup(name); - return KGlobal::config()->readBoolEntry("showInDock", false); + TDEGlobal::config()->setGroup(name); + return TDEGlobal::config()->readBoolEntry("showInDock", false); } diff --git a/src/lmsensordockpanel.h b/src/lmsensordockpanel.h index e8cb9fe..f55815c 100644 --- a/src/lmsensordockpanel.h +++ b/src/lmsensordockpanel.h @@ -20,8 +20,8 @@ #include -#include -#include +#include +#include #include "qlcddraw.h" @@ -38,12 +38,12 @@ public: LMSensorDockPanel(Sensor *newSensor=0, const char *name=0); ~LMSensorDockPanel(); - static void writeColorAlarm (const char *name, const QColor &color); - static void writeColorNormal(const char *name, const QColor &color); + static void writeColorAlarm (const char *name, const TQColor &color); + static void writeColorNormal(const char *name, const TQColor &color); static void writeShowInDock (const char *name, bool fShow); - static QColor readColorAlarm (const char *name); - static QColor readColorNormal(const char *name); + static TQColor readColorAlarm (const char *name); + static TQColor readColorNormal(const char *name); static bool readShowInDock (const char *name); public slots: @@ -53,19 +53,19 @@ public slots: signals: - void mouseEvent(QMouseEvent *e); + void mouseEvent(TQMouseEvent *e); protected: - void paintEvent ( QPaintEvent * ); - void mousePressEvent ( QMouseEvent * ); - void mouseReleaseEvent ( QMouseEvent * ); + void paintEvent ( TQPaintEvent * ); + void mousePressEvent ( TQMouseEvent * ); + void mouseReleaseEvent ( TQMouseEvent * ); private: Sensor *sensor; - QString strValue; - QColor colorNormal,colorAlarm; + TQString strValue; + TQColor colorNormal,colorAlarm; }; diff --git a/src/lmsensorpanel.cpp b/src/lmsensorpanel.cpp index 5a73fde..7097321 100644 --- a/src/lmsensorpanel.cpp +++ b/src/lmsensorpanel.cpp @@ -17,7 +17,7 @@ #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; // @@ -73,7 +73,7 @@ void LMSensorPanel::updateConfig() arc->setValueRanges( min - (max-min)/3, max + (max-min)/3 ); arc->setValueMinLimit( min,10); arc->setValueMaxLimit( max,10); - arc->setColorRanges(blue,QColor(0,200,150),blue); + arc->setColorRanges(blue,TQColor(0,200,150),blue); arc->setArrowColor(darkBlue); } valMask= "%.2fv"; @@ -89,7 +89,7 @@ void LMSensorPanel::updateConfig() void LMSensorPanel::setValue(double value) { -QString str; +TQString str; str.sprintf(valMask.latin1(),value); lcdVal->display(str); @@ -114,7 +114,7 @@ QString str; void LMSensorPanel::createTitleWidget() { - lcdDes = new QLCDString(this); + lcdDes = new TQLCDString(this); lcdDes->setNumberDisplay(true); lcdDes->installEventFilter(this); } @@ -122,7 +122,7 @@ void LMSensorPanel::createTitleWidget() void LMSensorPanel::createGraphicWidget() { - arc = new QDialArc(this); + arc = new TQDialArc(this); arc->installEventFilter(this); arc->setAngles(180,-180); } @@ -130,14 +130,14 @@ void LMSensorPanel::createGraphicWidget() void LMSensorPanel::createValueWidget() { - lcdVal = new QLCDString(this); + lcdVal = new TQLCDString(this); lcdVal->installEventFilter(this); lcdVal->setShadow(true); lcdVal->setNumberDisplay(sensor->getType()==Sensor::lmVoltage); } -void LMSensorPanel::resizeEvent ( QResizeEvent *e ) +void LMSensorPanel::resizeEvent ( TQResizeEvent *e ) { int w= width(); int h= height(); @@ -151,7 +151,7 @@ void LMSensorPanel::resizeEvent ( QResizeEvent *e ) lcdDes->setGeometry( 3 , i2+1, w -6 , h -i2-h/11); } -void LMSensorPanel::timerEvent( QTimerEvent * ) +void LMSensorPanel::timerEvent( TQTimerEvent * ) { if(lcdVal->isVisible()) lcdVal->hide(); 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()); lcdVal->setForeColor(getColorValue()); diff --git a/src/lmsensorpanel.h b/src/lmsensorpanel.h index 8d0bad4..366aa43 100644 --- a/src/lmsensorpanel.h +++ b/src/lmsensorpanel.h @@ -18,7 +18,7 @@ #ifndef LMSENSORPANEL_H #define LMSENSORPANEL_H -#include +#include #include "panel.h" #include "sensor.h" @@ -34,7 +34,7 @@ class LMSensorPanel : public Panel { Q_OBJECT public: - LMSensorPanel(Sensor *newSensor, QWidget *parent=0, const char *name=0); + LMSensorPanel(Sensor *newSensor, TQWidget *parent=0, const char *name=0); ~LMSensorPanel(); public slots: @@ -44,22 +44,22 @@ public slots: protected: - void resizeEvent ( QResizeEvent * ); + void resizeEvent ( TQResizeEvent * ); void createTitleWidget(); void createGraphicWidget(); void createValueWidget(); - void timerEvent( QTimerEvent * ); - void paletteChange(const QPalette &oldPalette); + void timerEvent( TQTimerEvent * ); + void paletteChange(const TQPalette &oldPalette); private: Sensor *sensor; - QDialArc *arc; - QLCDString *lcdDes; - QLCDString *lcdVal; - QString valMask; + TQDialArc *arc; + TQLCDString *lcdDes; + TQLCDString *lcdVal; + TQString valMask; bool alarm; }; diff --git a/src/lmsensors.cpp b/src/lmsensors.cpp index 073d172..fb44e78 100644 --- a/src/lmsensors.cpp +++ b/src/lmsensors.cpp @@ -21,8 +21,8 @@ #include #include -#include -#include +#include +#include #include "lmsensors.h" @@ -30,8 +30,8 @@ // Public methods //**************************************************************************** -LMSensors::LMSensors(QObject *parent, const char * name) - : QObject(parent,name) +LMSensors::LMSensors(TQObject *parent, const char * name) + : TQObject(parent,name) { if(initSensors()) createLMSensors(); createI8KSensors(); @@ -48,7 +48,7 @@ bool LMSensors::initSensors() #if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */ FILE *fp=fopen("/etc/sensors.conf","r"); if(!fp) { - qWarning("KSensors error: /etc/sensors.conf not found !"); + tqWarning("KSensors error: /etc/sensors.conf not found !"); return false; } #else @@ -56,7 +56,7 @@ bool LMSensors::initSensors() #endif int err= sensors_init(fp); if(err) { - qWarning("KSensors error: sensors_init fail, error code %d",err); + tqWarning("KSensors error: sensors_init fail, error code %d",err); return false; } #if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */ @@ -115,7 +115,7 @@ const sensors_feature_data *sensor_data; void LMSensors::setMonitorized(bool enable) { - QObjectList *list= getSensorsChips(); + TQObjectList *list= getSensorsChips(); if(list) for(LMSensorsChip *sensor=(LMSensorsChip*)list->first(); sensor!=0; sensor= (LMSensorsChip *)list->next()) sensor->setMonitorized(enable); @@ -132,7 +132,7 @@ Sensor *LMSensors::getSensor(const char *name) return sensor; } -void LMSensors::childEvent( QChildEvent *e ) +void LMSensors::childEvent( TQChildEvent *e ) { if(e->inserted()) { connect((SensorsList *)e->child(),SIGNAL(valueChanged(Sensor *)) ,this,SIGNAL(valueChanged(Sensor *))); diff --git a/src/lmsensors.h b/src/lmsensors.h index 50c20ea..8a0b6ef 100644 --- a/src/lmsensors.h +++ b/src/lmsensors.h @@ -18,10 +18,10 @@ #ifndef LMSENSORS_H #define LMSENSORS_H -#include -#include -#include -#include +#include +#include +#include +#include #include @@ -32,7 +32,7 @@ *@author Michael */ -class LMSensors : public QObject +class LMSensors : public TQObject { Q_OBJECT @@ -40,12 +40,12 @@ Q_OBJECT public: - LMSensors(QObject *parent=0, const char *name=0); + LMSensors(TQObject *parent=0, const char *name=0); ~LMSensors(); void setMonitorized(bool enable); - QObjectList *getSensorsChips() { return (QObjectList *)children(); }; - SensorsList *getSensorsChip(int index) { return children() ? (SensorsList *)((QObjectList *)children())->at(index) : 0; } + TQObjectList *getSensorsChips() { return (TQObjectList *)children(); }; + SensorsList *getSensorsChip(int index) { return children() ? (SensorsList *)((TQObjectList *)children())->at(index) : 0; } SensorsList *getSensorsChip(const char *name) { return (SensorsList *)child(name); } int count() { return children() ? children()->count() : 0; } Sensor *getSensor(const char *name); @@ -63,7 +63,7 @@ private: void createLMSensors(); void createHDSensors(); void createI8KSensors(); - void childEvent ( QChildEvent *e ); + void childEvent ( TQChildEvent *e ); #if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */ static int existSensor(const sensors_chip_name *chip_name,const char *sensor_name); diff --git a/src/lmsensorsalarms.cpp b/src/lmsensorsalarms.cpp index 895e223..f05962f 100644 --- a/src/lmsensorsalarms.cpp +++ b/src/lmsensorsalarms.cpp @@ -18,8 +18,8 @@ #include -#include -#include +#include +#include #include #include #include "lmsensorsalarms.h" @@ -27,8 +27,8 @@ -LMSensorsAlarms::LMSensorsAlarms(LMSensors *sensors, QObject *parent, const char *name) - : QObject(parent,name) +LMSensorsAlarms::LMSensorsAlarms(LMSensors *sensors, TQObject *parent, const char *name) + : TQObject(parent,name) { sensorCount= 0; soundPlay = ""; @@ -82,7 +82,7 @@ void LMSensorsAlarms::setValueChanged(Sensor *sensor) runSensorCommand( (const char *)sensor->getDescription(), - (const char *)QString::number(sensor->getValue()), + (const char *)TQString::number(sensor->getValue()), (const char *)readAlarmCommand(sensor->name()) ); break; @@ -97,7 +97,7 @@ void LMSensorsAlarms::setValueChanged(Sensor *sensor) } } -void LMSensorsAlarms::timerEvent( QTimerEvent * ) +void LMSensorsAlarms::timerEvent( TQTimerEvent * ) { KAudioPlayer::play(soundPlay); } @@ -106,40 +106,40 @@ void LMSensorsAlarms::timerEvent( QTimerEvent * ) int LMSensorsAlarms::readAlarm(const char *name) { - KGlobal::config()->setGroup(name); - return KGlobal::config()->readNumEntry("Alarm",acNothing); + TDEGlobal::config()->setGroup(name); + return TDEGlobal::config()->readNumEntry("Alarm",acNothing); } void LMSensorsAlarms::writeAlarm(const char *name, int alarm) { - KGlobal::config()->setGroup(name); - KGlobal::config()->writeEntry("Alarm",alarm); + TDEGlobal::config()->setGroup(name); + TDEGlobal::config()->writeEntry("Alarm",alarm); } -QString LMSensorsAlarms::readAlarmCommand(const char *name) +TQString LMSensorsAlarms::readAlarmCommand(const char *name) { - KGlobal::config()->setGroup(name); - return KGlobal::config()->readEntry("AlarmCommand", ""); + TDEGlobal::config()->setGroup(name); + 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); - KGlobal::config()->writeEntry("AlarmCommand", cmd); + TDEGlobal::config()->setGroup(name); + TDEGlobal::config()->writeEntry("AlarmCommand", cmd); } -QString LMSensorsAlarms::readAlarmSound(const char *name) +TQString LMSensorsAlarms::readAlarmSound(const char *name) { - KGlobal::config()->setGroup(name); - return KGlobal::config()->readEntry("AlarmSound", "ksensors_alert.wav"); + TDEGlobal::config()->setGroup(name); + 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); - KGlobal::config()->writeEntry("AlarmSound", cmd); + TDEGlobal::config()->setGroup(name); + TDEGlobal::config()->writeEntry("AlarmSound", cmd); } diff --git a/src/lmsensorsalarms.h b/src/lmsensorsalarms.h index 4c811bb..179d478 100644 --- a/src/lmsensorsalarms.h +++ b/src/lmsensorsalarms.h @@ -18,29 +18,29 @@ #ifndef LMSENSORSALARMS_H #define LMSENSORSALARMS_H -#include -#include +#include +#include #include "lmsensors.h" /** *@author Miguel Novas */ -class LMSensorsAlarms : public QObject { +class LMSensorsAlarms : public TQObject { Q_OBJECT public: 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(); 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 QString readAlarmCommand(const char *name); - static void writeAlarmCommand(const char *name, const QString &cmd); - static void writeAlarmSound(const char *name, const QString &cmd); + static TQString readAlarmCommand(const char *name); + static void writeAlarmCommand(const char *name, const TQString &cmd); + static void writeAlarmSound(const char *name, const TQString &cmd); static void runSensorCommand(const char *name,const char *value, const char *cmd); static void playSound(const char *sound); @@ -51,11 +51,11 @@ public slots: private: int sensorCount; - QString soundPlay; + TQString soundPlay; static void runCommand(const char *str); - void timerEvent( QTimerEvent * ); + void timerEvent( TQTimerEvent * ); }; #endif diff --git a/src/lmsensorscfg.cpp b/src/lmsensorscfg.cpp index 0aab99c..bc2e1ca 100644 --- a/src/lmsensorscfg.cpp +++ b/src/lmsensorscfg.cpp @@ -22,40 +22,40 @@ #include "lmsensordockpanel.h" #include "lmsensorswidget.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include -#include -#include +#include +#include -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; curSensor= 0; palPanelCfg= new PaletteCfg( boxPanelPalette ); - boxPanelPalette->setColumnLayout(0, Qt::Vertical ); + boxPanelPalette->setColumnLayout(0, TQt::Vertical ); boxPanelPalette->layout()->setSpacing( 6 ); boxPanelPalette->layout()->setMargin( 12 ); - QGridLayout *boxPanelPaletteLayout = new QGridLayout( boxPanelPalette->layout() ); - boxPanelPaletteLayout->setAlignment( Qt::AlignTop ); + TQGridLayout *boxPanelPaletteLayout = new TQGridLayout( boxPanelPalette->layout() ); + boxPanelPaletteLayout->setAlignment( TQt::AlignTop ); boxPanelPaletteLayout->addWidget( palPanelCfg, 0, 0 ); 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( buttonApply ,SIGNAL(clicked()),this,SLOT(slotApplyChanges())); connect( buttonTest ,SIGNAL(clicked()),this,SLOT(slotTestAlarm())); @@ -69,10 +69,10 @@ LMSensorsCfg::~LMSensorsCfg() void LMSensorsCfg::readSensorsList() { - QObjectList *list= sensors->getSensors(); + TQObjectList *list= sensors->getSensors(); if(list) { listSensors->clear(); - QPixmap pm; + TQPixmap pm; for(LMSensor *sensor=(LMSensor*)list->first(); sensor!=0; sensor= (LMSensor*)list->next()) { switch(sensor->getType()) { case LMSensor::lmTemp : pm= UserIcon("thermometer18x18.png"); break; @@ -114,7 +114,7 @@ void LMSensorsCfg::readSensorInfo(int index) editDescription ->setText(curSensor->getDescription()); - QString str; + TQString str; const char *mask= curSensor->getType()==LMSensor::lmVoltage ? "%.2lf":"%.0lf"; @@ -130,8 +130,8 @@ void LMSensorsCfg::readSensorInfo(int index) str.sprintf(mask, curSensor->getValueMax()); editMaxValue->setEditText(str); - editSum->setText(QString::number(curSensor->getCompensation())); - editMul->setText(QString::number(curSensor->getMultiplicator())); + editSum->setText(TQString::number(curSensor->getCompensation())); + editMul->setText(TQString::number(curSensor->getMultiplicator())); //checkShowInDock->setEnabled( curSensor->getType()==LMSensor::lmTemp ); //GroupBoxColorDock->setEnabled( curSensor->getType()==LMSensor::lmTemp ); @@ -171,7 +171,7 @@ void LMSensorsCfg::applySensorChanges() { if(!curSensor) return; - const QString sName(curSensor->name()); + const TQString sName(curSensor->name()); // Apply sensor configuration curSensor->setDescription(editDescription->text()); curSensor->setCompensation(editSum->text().toDouble()); @@ -195,7 +195,7 @@ void LMSensorsCfg::applySensorChanges() // // Apply alarms configuration if( CheckAllSensors->isChecked() ) { - QObjectList *list= sensors->getSensors(); + TQObjectList *list= sensors->getSensors(); for(Sensor *sensor=(Sensor*)list->first(); sensor!=0; sensor= (Sensor*)list->next()) { applySensorAlarmConfig(sensor); sensor->writeConfig(); @@ -266,7 +266,7 @@ void LMSensorsCfg::slotTestAlarm() } } -void LMSensorsCfg::slotMainTabPageChanged(QWidget *) +void LMSensorsCfg::slotMainTabPageChanged(TQWidget *) { switch(MainTab->currentPageIndex()) { @@ -277,8 +277,8 @@ void LMSensorsCfg::slotMainTabPageChanged(QWidget *) void LMSensorsCfg::slotComboMinMaxSelected(int index) { - QComboBox *combo = (QComboBox*)sender(); - QString str = combo->text(index); + TQComboBox *combo = (TQComboBox*)sender(); + TQString str = combo->text(index); double percent= str.left(str.length()-1).toDouble(); double value = editIdealValue->text().toDouble(); diff --git a/src/lmsensorscfg.h b/src/lmsensorscfg.h index 00300ca..bca1410 100644 --- a/src/lmsensorscfg.h +++ b/src/lmsensorscfg.h @@ -18,7 +18,7 @@ #ifndef LMSENSORSCFG_H #define LMSENSORSCFG_H -//#include +//#include #include "sensorslist.h" #include "lmsensorscfgdesign.h" @@ -31,7 +31,7 @@ class LMSensorsCfg : public LMSensorsCfgDesign { Q_OBJECT public: - LMSensorsCfg(SensorsList *lsensors,QWidget *parent=0, const char *name=0); + LMSensorsCfg(SensorsList *lsensors,TQWidget *parent=0, const char *name=0); ~LMSensorsCfg(); protected slots: @@ -41,7 +41,7 @@ protected slots: void slotTestAlarm(); void slotCurrentSensorChanged(int index); - void slotMainTabPageChanged(QWidget *); + void slotMainTabPageChanged(TQWidget *); void slotComboMinMaxSelected(int index); public slots: diff --git a/src/lmsensorscfgdesign.cpp b/src/lmsensorscfgdesign.cpp index 2f9f3c6..8c0eeeb 100644 --- a/src/lmsensorscfgdesign.cpp +++ b/src/lmsensorscfgdesign.cpp @@ -1,4 +1,4 @@ -#include +#include /**************************************************************************** ** Form implementation generated from reading ui file './lmsensorscfgdesign.ui' ** @@ -10,71 +10,71 @@ #include "lmsensorscfgdesign.h" -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include /* * Constructs a LMSensorsCfgDesign as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ -LMSensorsCfgDesign::LMSensorsCfgDesign( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +LMSensorsCfgDesign::LMSensorsCfgDesign( TQWidget* parent, const char* name, WFlags fl ) + : TQWidget( parent, name, fl ) { if ( !name ) setName( "LMSensorsCfgDesign" ); - setMinimumSize( QSize( 0, 340 ) ); - LMSensorsCfgDesignLayout = new QGridLayout( this, 1, 1, 8, 4, "LMSensorsCfgDesignLayout"); + setMinimumSize( TQSize( 0, 340 ) ); + LMSensorsCfgDesignLayout = new TQGridLayout( this, 1, 1, 8, 4, "LMSensorsCfgDesignLayout"); - MainTab = new QTabWidget( this, "MainTab" ); - MainTab->setMinimumSize( QSize( 422, 295 ) ); + MainTab = new TQTabWidget( this, "MainTab" ); + MainTab->setMinimumSize( TQSize( 422, 295 ) ); - tab = new QWidget( MainTab, "tab" ); - tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout"); + tab = new TQWidget( MainTab, "tab" ); + tabLayout = new TQGridLayout( tab, 1, 1, 11, 6, "tabLayout"); - SensorsTab = new QTabWidget( tab, "SensorsTab" ); - SensorsTab->setMinimumSize( QSize( 272, 276 ) ); - SensorsTab->setTabShape( QTabWidget::Rounded ); + SensorsTab = new TQTabWidget( tab, "SensorsTab" ); + SensorsTab->setMinimumSize( TQSize( 272, 276 ) ); + SensorsTab->setTabShape( TQTabWidget::Rounded ); SensorsTab->setMargin( 0 ); - tab_2 = new QWidget( SensorsTab, "tab_2" ); - tabLayout_2 = new QGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); + tab_2 = new TQWidget( SensorsTab, "tab_2" ); + tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); - GroupBoxDes = new QGroupBox( tab_2, "GroupBoxDes" ); - GroupBoxDes->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)1, 0, 0, GroupBoxDes->sizePolicy().hasHeightForWidth() ) ); - GroupBoxDes->setColumnLayout(0, Qt::Vertical ); + GroupBoxDes = new TQGroupBox( tab_2, "GroupBoxDes" ); + GroupBoxDes->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, GroupBoxDes->sizePolicy().hasHeightForWidth() ) ); + GroupBoxDes->setColumnLayout(0, TQt::Vertical ); GroupBoxDes->layout()->setSpacing( 6 ); GroupBoxDes->layout()->setMargin( 11 ); - GroupBoxDesLayout = new QGridLayout( GroupBoxDes->layout() ); - GroupBoxDesLayout->setAlignment( Qt::AlignTop ); + GroupBoxDesLayout = new TQGridLayout( GroupBoxDes->layout() ); + 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 ); 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 ); - editDescription = new QLineEdit( GroupBoxDes, "editDescription" ); + editDescription = new TQLineEdit( GroupBoxDes, "editDescription" ); layout4->addWidget( editDescription ); layout5->addLayout( layout4 ); @@ -82,144 +82,144 @@ LMSensorsCfgDesign::LMSensorsCfgDesign( QWidget* parent, const char* name, WFlag tabLayout_2->addWidget( GroupBoxDes, 0, 0 ); - GroupBox2_2_2 = new QGroupBox( tab_2, "GroupBox2_2_2" ); - GroupBox2_2_2->setFrameShape( QGroupBox::Box ); - GroupBox2_2_2->setFrameShadow( QGroupBox::Sunken ); - GroupBox2_2_2->setColumnLayout(0, Qt::Vertical ); + GroupBox2_2_2 = new TQGroupBox( tab_2, "GroupBox2_2_2" ); + GroupBox2_2_2->setFrameShape( TQGroupBox::Box ); + GroupBox2_2_2->setFrameShadow( TQGroupBox::Sunken ); + GroupBox2_2_2->setColumnLayout(0, TQt::Vertical ); GroupBox2_2_2->layout()->setSpacing( 6 ); GroupBox2_2_2->layout()->setMargin( 11 ); - GroupBox2_2_2Layout = new QGridLayout( GroupBox2_2_2->layout() ); - GroupBox2_2_2Layout->setAlignment( Qt::AlignTop ); + GroupBox2_2_2Layout = new TQGridLayout( GroupBox2_2_2->layout() ); + GroupBox2_2_2Layout->setAlignment( TQt::AlignTop ); - editValue = new QLineEdit( GroupBox2_2_2, "editValue" ); + editValue = new TQLineEdit( GroupBox2_2_2, "editValue" ); editValue->setEnabled( FALSE ); - editValue->setAlignment( int( QLineEdit::AlignLeft ) ); + editValue->setAlignment( int( TQLineEdit::AlignLeft ) ); editValue->setEdited( TRUE ); 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 ); - 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 ); 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->setSizeLimit( 12 ); 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 ); - editMul = new QLineEdit( GroupBox2_2_2, "editMul" ); + editMul = new TQLineEdit( GroupBox2_2_2, "editMul" ); 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 ); - 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 ); - 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 ); - editIdealValue = new QLineEdit( GroupBox2_2_2, "editIdealValue" ); - editIdealValue->setAlignment( int( QLineEdit::AlignLeft ) ); + editIdealValue = new TQLineEdit( GroupBox2_2_2, "editIdealValue" ); + editIdealValue->setAlignment( int( TQLineEdit::AlignLeft ) ); 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->setSizeLimit( 12 ); 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 ); - 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 ); - 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 ); 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" ); - tabLayout_3 = new QVBoxLayout( tab_3, 11, 6, "tabLayout_3"); + tab_3 = new TQWidget( SensorsTab, "tab_3" ); + tabLayout_3 = new TQVBoxLayout( tab_3, 11, 6, "tabLayout_3"); - GroupBox13 = new QGroupBox( tab_3, "GroupBox13" ); - GroupBox13->setMinimumSize( QSize( 0, 50 ) ); - GroupBox13->setMaximumSize( QSize( 32767, 50 ) ); - GroupBox13->setColumnLayout(0, Qt::Vertical ); + GroupBox13 = new TQGroupBox( tab_3, "GroupBox13" ); + GroupBox13->setMinimumSize( TQSize( 0, 50 ) ); + GroupBox13->setMaximumSize( TQSize( 32767, 50 ) ); + GroupBox13->setColumnLayout(0, TQt::Vertical ); GroupBox13->layout()->setSpacing( 6 ); GroupBox13->layout()->setMargin( 11 ); - GroupBox13Layout = new QGridLayout( GroupBox13->layout() ); - GroupBox13Layout->setAlignment( Qt::AlignTop ); + GroupBox13Layout = new TQGridLayout( GroupBox13->layout() ); + GroupBox13Layout->setAlignment( TQt::AlignTop ); - checkShow = new QCheckBox( GroupBox13, "checkShow" ); - checkShow->setCursor( QCursor( 0 ) ); + checkShow = new TQCheckBox( GroupBox13, "checkShow" ); + checkShow->setCursor( TQCursor( 0 ) ); GroupBox13Layout->addWidget( checkShow, 0, 0 ); tabLayout_3->addWidget( GroupBox13 ); - boxPanelPalette = new QGroupBox( tab_3, "boxPanelPalette" ); - boxPanelPalette->setMinimumSize( QSize( 0, 90 ) ); + boxPanelPalette = new TQGroupBox( tab_3, "boxPanelPalette" ); + boxPanelPalette->setMinimumSize( TQSize( 0, 90 ) ); 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 ); - SensorsTab->insertTab( tab_3, QString("") ); + SensorsTab->insertTab( tab_3, TQString("") ); - tab_4 = new QWidget( SensorsTab, "tab_4" ); - tabLayout_4 = new QGridLayout( tab_4, 1, 1, 11, 6, "tabLayout_4"); + tab_4 = new TQWidget( SensorsTab, "tab_4" ); + tabLayout_4 = new TQGridLayout( tab_4, 1, 1, 11, 6, "tabLayout_4"); - GroupBox14 = new QGroupBox( tab_4, "GroupBox14" ); - GroupBox14->setMinimumSize( QSize( 0, 50 ) ); - GroupBox14->setMaximumSize( QSize( 32767, 50 ) ); - GroupBox14->setColumnLayout(0, Qt::Vertical ); + GroupBox14 = new TQGroupBox( tab_4, "GroupBox14" ); + GroupBox14->setMinimumSize( TQSize( 0, 50 ) ); + GroupBox14->setMaximumSize( TQSize( 32767, 50 ) ); + GroupBox14->setColumnLayout(0, TQt::Vertical ); GroupBox14->layout()->setSpacing( 6 ); GroupBox14->layout()->setMargin( 11 ); - GroupBox14Layout = new QGridLayout( GroupBox14->layout() ); - GroupBox14Layout->setAlignment( Qt::AlignTop ); + GroupBox14Layout = new TQGridLayout( GroupBox14->layout() ); + GroupBox14Layout->setAlignment( TQt::AlignTop ); - checkShowInDock = new QCheckBox( GroupBox14, "checkShowInDock" ); - checkShowInDock->setCursor( QCursor( 0 ) ); + checkShowInDock = new TQCheckBox( GroupBox14, "checkShowInDock" ); + checkShowInDock->setCursor( TQCursor( 0 ) ); GroupBox14Layout->addWidget( checkShowInDock, 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 ); - GroupBoxColorDock = new QGroupBox( tab_4, "GroupBoxColorDock" ); + GroupBoxColorDock = new TQGroupBox( tab_4, "GroupBoxColorDock" ); GroupBoxColorDock->setEnabled( TRUE ); - GroupBoxColorDock->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, GroupBoxColorDock->sizePolicy().hasHeightForWidth() ) ); - GroupBoxColorDock->setFrameShape( QGroupBox::Box ); - GroupBoxColorDock->setColumnLayout(0, Qt::Vertical ); + GroupBoxColorDock->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, GroupBoxColorDock->sizePolicy().hasHeightForWidth() ) ); + GroupBoxColorDock->setFrameShape( TQGroupBox::Box ); + GroupBoxColorDock->setColumnLayout(0, TQt::Vertical ); GroupBoxColorDock->layout()->setSpacing( 6 ); GroupBoxColorDock->layout()->setMargin( 11 ); - GroupBoxColorDockLayout = new QGridLayout( GroupBoxColorDock->layout() ); - GroupBoxColorDockLayout->setAlignment( Qt::AlignTop ); + GroupBoxColorDockLayout = new TQGridLayout( GroupBoxColorDock->layout() ); + GroupBoxColorDockLayout->setAlignment( TQt::AlignTop ); - TextLabel1_2_2_2_2 = new QLabel( GroupBoxColorDock, "TextLabel1_2_2_2_2" ); - TextLabel1_2_2_2_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignLeft ) ); + TextLabel1_2_2_2_2 = new TQLabel( GroupBoxColorDock, "TextLabel1_2_2_2_2" ); + TextLabel1_2_2_2_2->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignLeft ) ); GroupBoxColorDockLayout->addWidget( TextLabel1_2_2_2_2, 1, 0 ); colorAlarm = new KColorButton( GroupBoxColorDock, "colorAlarm" ); colorAlarm->setEnabled( TRUE ); colorAlarm->setToggleButton( FALSE ); - colorAlarm->setColor( QColor( 255, 85, 0 ) ); + colorAlarm->setColor( TQColor( 255, 85, 0 ) ); GroupBoxColorDockLayout->addWidget( colorAlarm, 1, 1 ); @@ -228,155 +228,155 @@ LMSensorsCfgDesign::LMSensorsCfgDesign( QWidget* parent, const char* name, WFlag colorNormal->setAcceptDrops( TRUE ); colorNormal->setToggleButton( FALSE ); colorNormal->setOn( FALSE ); - colorNormal->setColor( QColor( 0, 0, 255 ) ); + colorNormal->setColor( TQColor( 0, 0, 255 ) ); 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 ); - spacer6 = new QSpacerItem( 41, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer6 = new TQSpacerItem( 41, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); GroupBoxColorDockLayout->addItem( spacer6, 1, 2 ); - TextLabel1_4_2_2 = new QLabel( GroupBoxColorDock, "TextLabel1_4_2_2" ); - TextLabel1_4_2_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignLeft ) ); + TextLabel1_4_2_2 = new TQLabel( GroupBoxColorDock, "TextLabel1_4_2_2" ); + TextLabel1_4_2_2->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignLeft ) ); GroupBoxColorDockLayout->addWidget( TextLabel1_4_2_2, 0, 0 ); tabLayout_4->addWidget( GroupBoxColorDock, 1, 0 ); - SensorsTab->insertTab( tab_4, QString("") ); + SensorsTab->insertTab( tab_4, TQString("") ); - tab_5 = new QWidget( SensorsTab, "tab_5" ); - tabLayout_5 = new QVBoxLayout( tab_5, 11, 6, "tabLayout_5"); + tab_5 = new TQWidget( SensorsTab, "tab_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 ); - Frame11_2_2_2 = new QFrame( tab_5, "Frame11_2_2_2" ); - Frame11_2_2_2->setFrameShape( QFrame::HLine ); - Frame11_2_2_2->setFrameShadow( QFrame::Sunken ); + Frame11_2_2_2 = new TQFrame( tab_5, "Frame11_2_2_2" ); + Frame11_2_2_2->setFrameShape( TQFrame::HLine ); + Frame11_2_2_2->setFrameShadow( TQFrame::Sunken ); 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 ); 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 ); - radioAlarm1 = new QRadioButton( tab_5, "radioAlarm1" ); - radioAlarm1->setCursor( QCursor( 0 ) ); + radioAlarm1 = new TQRadioButton( tab_5, "radioAlarm1" ); + radioAlarm1->setCursor( TQCursor( 0 ) ); radioAlarm1->setChecked( TRUE ); layout9->addWidget( radioAlarm1, 4, 0 ); - buttonTest = new QPushButton( tab_5, "buttonTest" ); + buttonTest = new TQPushButton( tab_5, "buttonTest" ); buttonTest->setEnabled( FALSE ); layout9->addWidget( buttonTest, 5, 1 ); - radioAlarm2 = new QRadioButton( tab_5, "radioAlarm2" ); - radioAlarm2->setCursor( QCursor( 0 ) ); + radioAlarm2 = new TQRadioButton( tab_5, "radioAlarm2" ); + radioAlarm2->setCursor( TQCursor( 0 ) ); radioAlarm2->setChecked( FALSE ); layout9->addWidget( radioAlarm2, 2, 0 ); - radioAlarm3 = new QRadioButton( tab_5, "radioAlarm3" ); - radioAlarm3->setCursor( QCursor( 0 ) ); + radioAlarm3 = new TQRadioButton( tab_5, "radioAlarm3" ); + radioAlarm3->setCursor( TQCursor( 0 ) ); layout9->addWidget( radioAlarm3, 0, 0 ); - layout6 = new QHBoxLayout( 0, 0, 6, "layout6"); - spacer7 = new QSpacerItem( 31, 20, QSizePolicy::Fixed, QSizePolicy::Minimum ); + layout6 = new TQHBoxLayout( 0, 0, 6, "layout6"); + spacer7 = new TQSpacerItem( 31, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum ); layout6->addItem( spacer7 ); - editLaunch = new QLineEdit( tab_5, "editLaunch" ); + editLaunch = new TQLineEdit( tab_5, "editLaunch" ); editLaunch->setEnabled( FALSE ); layout6->addWidget( editLaunch ); layout9->addLayout( layout6, 1, 0 ); - layout7 = new QHBoxLayout( 0, 0, 6, "layout7"); - spacer8 = new QSpacerItem( 31, 21, QSizePolicy::Fixed, QSizePolicy::Minimum ); + layout7 = new TQHBoxLayout( 0, 0, 6, "layout7"); + spacer8 = new TQSpacerItem( 31, 21, TQSizePolicy::Fixed, TQSizePolicy::Minimum ); layout7->addItem( spacer8 ); - editPlay = new QLineEdit( tab_5, "editPlay" ); + editPlay = new TQLineEdit( tab_5, "editPlay" ); editPlay->setEnabled( FALSE ); layout7->addWidget( editPlay ); layout9->addLayout( layout7, 3, 0 ); tabLayout_5->addLayout( layout9 ); - SensorsTab->insertTab( tab_5, QString("") ); + SensorsTab->insertTab( tab_5, TQString("") ); tabLayout->addWidget( SensorsTab, 0, 1 ); - listSensors = new QListBox( tab, "listSensors" ); - listSensors->setMinimumSize( QSize( 120, 0 ) ); - listSensors->setMaximumSize( QSize( 120, 32767 ) ); - listSensors->setFrameShape( QListBox::StyledPanel ); - listSensors->setFrameShadow( QListBox::Sunken ); + listSensors = new TQListBox( tab, "listSensors" ); + listSensors->setMinimumSize( TQSize( 120, 0 ) ); + listSensors->setMaximumSize( TQSize( 120, 32767 ) ); + listSensors->setFrameShape( TQListBox::StyledPanel ); + listSensors->setFrameShadow( TQListBox::Sunken ); listSensors->setLineWidth( 2 ); - listSensors->setColumnMode( QListBox::FixedNumber ); + listSensors->setColumnMode( TQListBox::FixedNumber ); tabLayout->addWidget( listSensors, 0, 0 ); - MainTab->insertTab( tab, QString("") ); + MainTab->insertTab( tab, TQString("") ); - tab_6 = new QWidget( MainTab, "tab_6" ); - tabLayout_6 = new QGridLayout( tab_6, 1, 1, 11, 6, "tabLayout_6"); + tab_6 = new TQWidget( MainTab, "tab_6" ); + tabLayout_6 = new TQGridLayout( tab_6, 1, 1, 11, 6, "tabLayout_6"); - ButtonGroup5 = new QButtonGroup( tab_6, "ButtonGroup5" ); - ButtonGroup5->setColumnLayout(0, Qt::Vertical ); + ButtonGroup5 = new TQButtonGroup( tab_6, "ButtonGroup5" ); + ButtonGroup5->setColumnLayout(0, TQt::Vertical ); ButtonGroup5->layout()->setSpacing( 6 ); ButtonGroup5->layout()->setMargin( 11 ); - ButtonGroup5Layout = new QGridLayout( ButtonGroup5->layout() ); - ButtonGroup5Layout->setAlignment( Qt::AlignTop ); + ButtonGroup5Layout = new TQGridLayout( ButtonGroup5->layout() ); + ButtonGroup5Layout->setAlignment( TQt::AlignTop ); - RadioF = new QRadioButton( ButtonGroup5, "RadioF" ); - RadioF->setMinimumSize( QSize( 0, 0 ) ); + RadioF = new TQRadioButton( ButtonGroup5, "RadioF" ); + RadioF->setMinimumSize( TQSize( 0, 0 ) ); ButtonGroup5Layout->addWidget( RadioF, 1, 0 ); - RadioC = new QRadioButton( ButtonGroup5, "RadioC" ); + RadioC = new TQRadioButton( ButtonGroup5, "RadioC" ); RadioC->setChecked( TRUE ); ButtonGroup5Layout->addWidget( RadioC, 0, 0 ); - RadioK = new QRadioButton( ButtonGroup5, "RadioK" ); + RadioK = new TQRadioButton( ButtonGroup5, "RadioK" ); ButtonGroup5Layout->addWidget( RadioK, 2, 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 ); - groupBox79 = new QGroupBox( tab_6, "groupBox79" ); - groupBox79->setColumnLayout(0, Qt::Vertical ); + groupBox79 = new TQGroupBox( tab_6, "groupBox79" ); + groupBox79->setColumnLayout(0, TQt::Vertical ); groupBox79->layout()->setSpacing( 6 ); groupBox79->layout()->setMargin( 18 ); - groupBox79Layout = new QGridLayout( groupBox79->layout() ); - groupBox79Layout->setAlignment( Qt::AlignTop ); + groupBox79Layout = new TQGridLayout( groupBox79->layout() ); + groupBox79Layout->setAlignment( TQt::AlignTop ); - SpinUpdateTime = new QSpinBox( groupBox79, "SpinUpdateTime" ); + SpinUpdateTime = new TQSpinBox( groupBox79, "SpinUpdateTime" ); SpinUpdateTime->setMinValue( 1 ); SpinUpdateTime->setValue( 5 ); groupBox79Layout->addWidget( SpinUpdateTime, 0, 0 ); - SliderUpdateTime = new QSlider( groupBox79, "SliderUpdateTime" ); + SliderUpdateTime = new TQSlider( groupBox79, "SliderUpdateTime" ); SliderUpdateTime->setMaxValue( 60 ); SliderUpdateTime->setValue( 5 ); - SliderUpdateTime->setOrientation( QSlider::Horizontal ); - SliderUpdateTime->setTickmarks( QSlider::Below ); + SliderUpdateTime->setOrientation( TQSlider::Horizontal ); + SliderUpdateTime->setTickmarks( TQSlider::Below ); SliderUpdateTime->setTickInterval( 1 ); groupBox79Layout->addWidget( SliderUpdateTime, 0, 1 ); tabLayout_6->addWidget( groupBox79, 1, 0 ); - MainTab->insertTab( tab_6, QString("") ); + MainTab->insertTab( tab_6, TQString("") ); LMSensorsCfgDesignLayout->addWidget( MainTab, 0, 0 ); languageChange(); - resize( QSize(438, 344).expandedTo(minimumSizeHint()) ); + resize( TQSize(438, 344).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections @@ -392,7 +392,7 @@ LMSensorsCfgDesign::LMSensorsCfgDesign( QWidget* parent, const char* name, WFlag */ 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() { setCaption( tr2i18n( "LMSensorsCfgDesign" ) ); - GroupBoxDes->setTitle( QString::null ); + GroupBoxDes->setTitle( TQString::null ); TextLabel2_2->setText( tr2i18n( "Description" ) ); - editDescription->setText( QString::null ); + editDescription->setText( TQString::null ); 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_4_2_2_2->setText( tr2i18n( "Maximum" ) ); editMaxValue->clear(); @@ -425,7 +425,7 @@ void LMSensorsCfgDesign::languageChange() TextLabel3_2->setText( tr2i18n( "Ideal" ) ); TextLabel3_2_3_2_2_2_2->setText( tr2i18n( "Minimum" ) ); TextLabel1_3_3_2->setText( tr2i18n( "Addition" ) ); - editIdealValue->setText( QString::null ); + editIdealValue->setText( TQString::null ); editMinValue->clear(); editMinValue->insertItem( tr2i18n( "-1%" ) ); editMinValue->insertItem( tr2i18n( "-2%" ) ); @@ -439,16 +439,16 @@ void LMSensorsCfgDesign::languageChange() editMinValue->insertItem( tr2i18n( "-40%" ) ); editMinValue->insertItem( tr2i18n( "-50%" ) ); SensorsTab->changeTab( tab_2, tr2i18n( "General" ) ); - GroupBox13->setTitle( QString::null ); + GroupBox13->setTitle( TQString::null ); checkShow->setText( tr2i18n( "Visible" ) ); boxPanelPalette->setTitle( tr2i18n( "Colors" ) ); SensorsTab->changeTab( tab_3, tr2i18n( "Panel" ) ); - GroupBox14->setTitle( QString::null ); + GroupBox14->setTitle( TQString::null ); checkShowInDock->setText( tr2i18n( "Visible" ) ); GroupBoxColorDock->setTitle( tr2i18n( "Colors" ) ); TextLabel1_2_2_2_2->setText( tr2i18n( "Alarm" ) ); - colorAlarm->setText( QString::null ); - colorNormal->setText( QString::null ); + colorAlarm->setText( TQString::null ); + colorNormal->setText( TQString::null ); TextLabel1_4_2_2->setText( tr2i18n( "Normal" ) ); SensorsTab->changeTab( tab_4, tr2i18n( "Dock" ) ); TextLabel1_3_2_2_2_2->setText( tr2i18n( "On reach alarm value:" ) ); diff --git a/src/lmsensorscfgdesign.h b/src/lmsensorscfgdesign.h index 78db656..2db5b83 100644 --- a/src/lmsensorscfgdesign.h +++ b/src/lmsensorscfgdesign.h @@ -10,121 +10,121 @@ #ifndef LMSENSORSCFGDESIGN_H #define LMSENSORSCFGDESIGN_H -#include -#include +#include +#include #include -class QVBoxLayout; -class QHBoxLayout; -class QGridLayout; -class QSpacerItem; -class QTabWidget; -class QGroupBox; -class QLabel; -class QLineEdit; -class QComboBox; -class QCheckBox; +class TQVBoxLayout; +class TQHBoxLayout; +class TQGridLayout; +class TQSpacerItem; +class TQTabWidget; +class TQGroupBox; +class TQLabel; +class TQLineEdit; +class TQComboBox; +class TQCheckBox; class KColorButton; -class QFrame; -class QRadioButton; -class QPushButton; -class QListBox; -class QListBoxItem; -class QButtonGroup; -class QSpinBox; -class QSlider; +class TQFrame; +class TQRadioButton; +class TQPushButton; +class TQListBox; +class TQListBoxItem; +class TQButtonGroup; +class TQSpinBox; +class TQSlider; -class LMSensorsCfgDesign : public QWidget +class LMSensorsCfgDesign : public TQWidget { Q_OBJECT public: - LMSensorsCfgDesign( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + LMSensorsCfgDesign( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~LMSensorsCfgDesign(); - QTabWidget* MainTab; - QWidget* tab; - QTabWidget* SensorsTab; - QWidget* tab_2; - QGroupBox* GroupBoxDes; - QLabel* pixmapSensor; - QLabel* TextLabel2_2; - QLineEdit* editDescription; - QGroupBox* GroupBox2_2_2; - QLineEdit* editValue; - QLabel* TextLabel3_2_2_3_2_2_2; - QLabel* TextLabel3_2_4_2_2_2; - QComboBox* editMaxValue; - QLabel* TextLabel1_2_3_2_2; - QLineEdit* editMul; - QLabel* TextLabel3_2; - QLabel* TextLabel3_2_3_2_2_2_2; - QLabel* TextLabel1_3_3_2; - QLineEdit* editIdealValue; - QComboBox* editMinValue; - QLineEdit* editSum; - QWidget* tab_3; - QGroupBox* GroupBox13; - QCheckBox* checkShow; - QGroupBox* boxPanelPalette; - QWidget* tab_4; - QGroupBox* GroupBox14; - QCheckBox* checkShowInDock; - QGroupBox* GroupBoxColorDock; - QLabel* TextLabel1_2_2_2_2; + TQTabWidget* MainTab; + TQWidget* tab; + TQTabWidget* SensorsTab; + TQWidget* tab_2; + TQGroupBox* GroupBoxDes; + TQLabel* pixmapSensor; + TQLabel* TextLabel2_2; + TQLineEdit* editDescription; + TQGroupBox* GroupBox2_2_2; + TQLineEdit* editValue; + TQLabel* TextLabel3_2_2_3_2_2_2; + TQLabel* TextLabel3_2_4_2_2_2; + TQComboBox* editMaxValue; + TQLabel* TextLabel1_2_3_2_2; + TQLineEdit* editMul; + TQLabel* TextLabel3_2; + TQLabel* TextLabel3_2_3_2_2_2_2; + TQLabel* TextLabel1_3_3_2; + TQLineEdit* editIdealValue; + TQComboBox* editMinValue; + TQLineEdit* editSum; + TQWidget* tab_3; + TQGroupBox* GroupBox13; + TQCheckBox* checkShow; + TQGroupBox* boxPanelPalette; + TQWidget* tab_4; + TQGroupBox* GroupBox14; + TQCheckBox* checkShowInDock; + TQGroupBox* GroupBoxColorDock; + TQLabel* TextLabel1_2_2_2_2; KColorButton* colorAlarm; KColorButton* colorNormal; - QLabel* TextLabel1_4_2_2; - QWidget* tab_5; - QLabel* TextLabel1_3_2_2_2_2; - QFrame* Frame11_2_2_2; - QCheckBox* CheckAllSensors; - QRadioButton* radioAlarm1; - QPushButton* buttonTest; - QRadioButton* radioAlarm2; - QRadioButton* radioAlarm3; - QLineEdit* editLaunch; - QLineEdit* editPlay; - QListBox* listSensors; - QWidget* tab_6; - QButtonGroup* ButtonGroup5; - QRadioButton* RadioF; - QRadioButton* RadioC; - QRadioButton* RadioK; - QGroupBox* groupBox79; - QSpinBox* SpinUpdateTime; - QSlider* SliderUpdateTime; + TQLabel* TextLabel1_4_2_2; + TQWidget* tab_5; + TQLabel* TextLabel1_3_2_2_2_2; + TQFrame* Frame11_2_2_2; + TQCheckBox* CheckAllSensors; + TQRadioButton* radioAlarm1; + TQPushButton* buttonTest; + TQRadioButton* radioAlarm2; + TQRadioButton* radioAlarm3; + TQLineEdit* editLaunch; + TQLineEdit* editPlay; + TQListBox* listSensors; + TQWidget* tab_6; + TQButtonGroup* ButtonGroup5; + TQRadioButton* RadioF; + TQRadioButton* RadioC; + TQRadioButton* RadioK; + TQGroupBox* groupBox79; + TQSpinBox* SpinUpdateTime; + TQSlider* SliderUpdateTime; protected: - QGridLayout* LMSensorsCfgDesignLayout; - QGridLayout* tabLayout; - QGridLayout* tabLayout_2; - QGridLayout* GroupBoxDesLayout; - QHBoxLayout* layout5; - QVBoxLayout* layout4; - QGridLayout* GroupBox2_2_2Layout; - QSpacerItem* spacer12; - QSpacerItem* spacer10; - QVBoxLayout* tabLayout_3; - QSpacerItem* Spacer4_2; - QGridLayout* GroupBox13Layout; - QGridLayout* tabLayout_4; - QSpacerItem* Spacer3_2; - QGridLayout* GroupBox14Layout; - QGridLayout* GroupBoxColorDockLayout; - QSpacerItem* spacer5; - QSpacerItem* spacer6; - QVBoxLayout* tabLayout_5; - QGridLayout* layout9; - QSpacerItem* spacer9; - QHBoxLayout* layout6; - QSpacerItem* spacer7; - QHBoxLayout* layout7; - QSpacerItem* spacer8; - QGridLayout* tabLayout_6; - QSpacerItem* spacer12_2; - QGridLayout* ButtonGroup5Layout; - QGridLayout* groupBox79Layout; + TQGridLayout* LMSensorsCfgDesignLayout; + TQGridLayout* tabLayout; + TQGridLayout* tabLayout_2; + TQGridLayout* GroupBoxDesLayout; + TQHBoxLayout* layout5; + TQVBoxLayout* layout4; + TQGridLayout* GroupBox2_2_2Layout; + TQSpacerItem* spacer12; + TQSpacerItem* spacer10; + TQVBoxLayout* tabLayout_3; + TQSpacerItem* Spacer4_2; + TQGridLayout* GroupBox13Layout; + TQGridLayout* tabLayout_4; + TQSpacerItem* Spacer3_2; + TQGridLayout* GroupBox14Layout; + TQGridLayout* GroupBoxColorDockLayout; + TQSpacerItem* spacer5; + TQSpacerItem* spacer6; + TQVBoxLayout* tabLayout_5; + TQGridLayout* layout9; + TQSpacerItem* spacer9; + TQHBoxLayout* layout6; + TQSpacerItem* spacer7; + TQHBoxLayout* layout7; + TQSpacerItem* spacer8; + TQGridLayout* tabLayout_6; + TQSpacerItem* spacer12_2; + TQGridLayout* ButtonGroup5Layout; + TQGridLayout* groupBox79Layout; protected slots: virtual void languageChange(); diff --git a/src/lmsensorscfgdesign.ui b/src/lmsensorscfgdesign.ui index d452b78..45fd904 100644 --- a/src/lmsensorscfgdesign.ui +++ b/src/lmsensorscfgdesign.ui @@ -1,6 +1,6 @@ LMSensorsCfgDesign - + LMSensorsCfgDesign @@ -35,7 +35,7 @@ 4 - + MainTab @@ -49,7 +49,7 @@ - + tab @@ -60,7 +60,7 @@ unnamed - + SensorsTab @@ -78,7 +78,7 @@ - + tab @@ -89,7 +89,7 @@ unnamed - + GroupBoxDes @@ -108,7 +108,7 @@ unnamed - + layout5 @@ -116,7 +116,7 @@ unnamed - + pixmapSensor @@ -124,7 +124,7 @@ true - + layout4 @@ -132,7 +132,7 @@ unnamed - + TextLabel2_2 @@ -140,7 +140,7 @@ Description - + editDescription @@ -154,7 +154,7 @@ - + GroupBox2_2_2 @@ -171,7 +171,7 @@ unnamed - + editValue @@ -190,7 +190,7 @@ - + TextLabel3_2_2_3_2_2_2 @@ -201,7 +201,7 @@ - + TextLabel3_2_4_2_2_2 @@ -215,7 +215,7 @@ - + +1% @@ -281,7 +281,7 @@ 12 - + TextLabel1_2_3_2_2 @@ -289,12 +289,12 @@ Multiplier - + editMul - + TextLabel3_2 @@ -302,7 +302,7 @@ Ideal - + TextLabel3_2_3_2_2_2_2 @@ -313,7 +313,7 @@ - + TextLabel1_3_3_2 @@ -321,7 +321,7 @@ Addition - + editIdealValue @@ -334,7 +334,7 @@ - + -1% @@ -400,7 +400,7 @@ 12 - + editSum @@ -443,7 +443,7 @@ - + tab @@ -460,7 +460,7 @@ 6 - + GroupBox13 @@ -483,7 +483,7 @@ unnamed - + checkShow @@ -498,7 +498,7 @@ - + boxPanelPalette @@ -531,7 +531,7 @@ - + tab @@ -542,7 +542,7 @@ unnamed - + GroupBox14 @@ -565,7 +565,7 @@ unnamed - + checkShowInDock @@ -597,7 +597,7 @@ - + GroupBoxColorDock @@ -622,7 +622,7 @@ unnamed - + TextLabel1_2_2_2_2 @@ -720,7 +720,7 @@ - + TextLabel1_4_2_2 @@ -737,7 +737,7 @@ - + tab @@ -748,7 +748,7 @@ unnamed - + ButtonGroup9 @@ -759,7 +759,7 @@ unnamed - + CheckAllSensors @@ -787,7 +787,7 @@ - + radioAlarm1 @@ -801,7 +801,7 @@ true - + buttonTest @@ -812,7 +812,7 @@ Test - + radioAlarm2 @@ -826,7 +826,7 @@ false - + radioAlarm3 @@ -837,7 +837,7 @@ Run command - + layout6 @@ -862,7 +862,7 @@ - + editLaunch @@ -872,7 +872,7 @@ - + layout7 @@ -897,7 +897,7 @@ - + editPlay @@ -912,7 +912,7 @@ - + listSensors @@ -943,7 +943,7 @@ - + tab @@ -954,7 +954,7 @@ unnamed - + ButtonGroup5 @@ -965,7 +965,7 @@ unnamed - + RadioF @@ -981,7 +981,7 @@ - + RadioC @@ -992,7 +992,7 @@ true - + RadioK @@ -1019,7 +1019,7 @@ - + groupBox79 @@ -1033,7 +1033,7 @@ 18 - + SpinUpdateTime @@ -1047,7 +1047,7 @@ 5 - + SliderUpdateTime diff --git a/src/lmsensorschip.cpp b/src/lmsensorschip.cpp index d78a0a9..a03cd33 100644 --- a/src/lmsensorschip.cpp +++ b/src/lmsensorschip.cpp @@ -26,7 +26,7 @@ // 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) { setClass(Sensor::lmSensor); @@ -68,7 +68,7 @@ void LMSensorsChip::createSensors() void LMSensorsChip::updateSensors() { -QObjectList *sensors= (QObjectList *)children(); +TQObjectList *sensors= (TQObjectList *)children(); if(sensors) for(LMSensor *sensor= (LMSensor *)sensors->first(); sensor!=0; sensor= (LMSensor *)sensors->next()) diff --git a/src/lmsensorschip.h b/src/lmsensorschip.h index 90972a1..6365c4a 100644 --- a/src/lmsensorschip.h +++ b/src/lmsensorschip.h @@ -33,7 +33,7 @@ Q_OBJECT 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(); public slots: diff --git a/src/lmsensorsdock.cpp b/src/lmsensorsdock.cpp index 5429883..b5321ab 100644 --- a/src/lmsensorsdock.cpp +++ b/src/lmsensorsdock.cpp @@ -17,16 +17,16 @@ #include "lmsensorsdock.h" -#include -#include +#include +#include #include #include -#include +#include -#include +#include #include -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; @@ -55,7 +55,7 @@ LMSensorsDock::~LMSensorsDock() void LMSensorsDock::createMenu() { - menu= new KPopupMenu; + menu= new TDEPopupMenu; menu->insertTitle(kapp->miniIcon(),"KSensors"); menu->insertItem(SmallIcon("configure"),i18n("&Configure"), this, SLOT(createConfigWidget() ) ,0,101 ); menu->insertSeparator(); @@ -67,32 +67,32 @@ void LMSensorsDock::createMenu() void LMSensorsDock::createWidgets() { - KGlobal::config()->setGroup("General"); + TDEGlobal::config()->setGroup("General"); if(noDock) createShowWidget(); - else if(KGlobal::config()->readBoolEntry("showWidget",false)) { - int desktop = KGlobal::config()->readNumEntry("desktop", 0); + else if(TDEGlobal::config()->readBoolEntry("showWidget",false)) { + int desktop = TDEGlobal::config()->readNumEntry("desktop", 0); createShowWidget(desktop); } } void LMSensorsDock::saveConfig() { - KGlobal::config()->setGroup("General"); - KGlobal::config()->writeEntry("showWidget",(bool)sensorsWidget); + TDEGlobal::config()->setGroup("General"); + TDEGlobal::config()->writeEntry("showWidget",(bool)sensorsWidget); if(sensorsWidget) { - NETWinInfo wm_client(qt_xdisplay(), sensorsWidget->winId(), qt_xrootwin(), NET::WMDesktop); - KGlobal::config()->writeEntry("desktop", wm_client.desktop()); + NETWinInfo wm_client(tqt_xdisplay(), sensorsWidget->winId(), tqt_xrootwin(), NET::WMDesktop); + TDEGlobal::config()->writeEntry("desktop", wm_client.desktop()); } } void LMSensorsDock::createDockWidgets() { -QObjectList *chips= sensors->getSensorsChips(); +TQObjectList *chips= sensors->getSensorsChips(); countSensors= 0; if(chips) for(LMSensorsChip *chip= (LMSensorsChip *)chips->first(); chip!=0; chip= (LMSensorsChip *)chips->next()) { - QObjectList *list= (QObjectList *)chip->getSensors(); + TQObjectList *list= (TQObjectList *)chip->getSensors(); if(list) { for(LMSensor *sensor= (LMSensor *)list->first(); sensor!=0; sensor= (LMSensor *)list->next()) { if( LMSensorDockPanel::readShowInDock(sensor->name()) ) @@ -128,7 +128,7 @@ void LMSensorsDock::createShowWidget(int desktop) { if(!sensorsWidget) { 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()) ); } if ((desktop != 0) && (desktop <= KWin::numberOfDesktops())) KWin::setOnDesktop(sensorsWidget->winId(), desktop); @@ -150,9 +150,9 @@ void LMSensorsDock::close() 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()==RightButton ) menu->popup(e->globalPos()); } @@ -161,14 +161,14 @@ void LMSensorsDock::mouseEventReceived(QMouseEvent *e) void LMSensorsDock::createDockSensor(Sensor *sensor) { if(countSensors==0) { - QObjectList *list= (QObjectList *)children(); + TQObjectList *list= (TQObjectList *)children(); if(list) for(LMSensorDockPanel *sensor= (LMSensorDockPanel *)list->first(); sensor!=0; sensor= (LMSensorDockPanel *)list->next()) delete sensor; } const char *name= sensor ? sensor->name() : 0; 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); dock->show(); if(name) countSensors++; @@ -202,9 +202,9 @@ void LMSensorsDock::updateItemDock(const char *name) void LMSensorsDock::showAbout() { -KAboutApplication *dialog; +TDEAboutApplication *dialog; - dialog= new KAboutApplication; + dialog= new TDEAboutApplication; dialog->exec(); delete dialog; } diff --git a/src/lmsensorsdock.h b/src/lmsensorsdock.h index ce52441..a350ef7 100644 --- a/src/lmsensorsdock.h +++ b/src/lmsensorsdock.h @@ -24,11 +24,11 @@ #endif -#include -#include +#include +#include -#include -#include +#include +#include #include #include "lmsensors.h" @@ -42,13 +42,13 @@ *@author Miguel Novas */ -class LMSensorsDock : public QObject +class LMSensorsDock : public TQObject { Q_OBJECT public: - LMSensorsDock(bool fNoDock=false, QObject *parent=0, const char *name=0); + LMSensorsDock(bool fNoDock=false, TQObject *parent=0, const char *name=0); ~LMSensorsDock(); public slots: @@ -57,7 +57,7 @@ public slots: protected slots: void updateItemDock(const char *name); - void mouseEventReceived(QMouseEvent *e); + void mouseEventReceived(TQMouseEvent *e); void minimizeRestoreWidget(); void createConfigWidget(); void updateMenu(); @@ -71,11 +71,11 @@ private: int countSensors; LMSensors *sensors; - QGuardedPtr sensorsCfg; - QGuardedPtr sensorsWidget; - QGuardedPtr sensorsAlarm; + TQGuardedPtr sensorsCfg; + TQGuardedPtr sensorsWidget; + TQGuardedPtr sensorsAlarm; - KPopupMenu *menu; + TDEPopupMenu *menu; void createMenu(); void createWidgets(); diff --git a/src/lmsensorswidget.cpp b/src/lmsensorswidget.cpp index ab6a8b9..727fdc8 100644 --- a/src/lmsensorswidget.cpp +++ b/src/lmsensorswidget.cpp @@ -15,10 +15,10 @@ * * ***************************************************************************/ -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -30,8 +30,8 @@ * Public methods * ***************************************************************************/ -LMSensorsWidget::LMSensorsWidget(LMSensors *lsensors,QWidget *parent, const char *name ) - : QWidget(parent,name, +LMSensorsWidget::LMSensorsWidget(LMSensors *lsensors,TQWidget *parent, const char *name ) + : TQWidget(parent,name, WStyle_Customize | WType_TopLevel | WStyle_StaysOnTop | @@ -55,9 +55,9 @@ LMSensorsWidget::LMSensorsWidget(LMSensors *lsensors,QWidget *parent, const char // setBackgroundPixmap( UserIcon("ksensorsbackground.png") ); // - KConfig *cfg= KGlobal::config(); + TDEConfig *cfg= TDEGlobal::config(); cfg->setGroup("ShowWidget"); - QRect rect(32,32,64*4,64*3); + TQRect rect(32,32,64*4,64*3); rect= cfg->readRectEntry ("geometry", &rect); move( rect.topLeft() ); resize( rect.size() ); @@ -73,10 +73,10 @@ LMSensorsWidget::LMSensorsWidget(LMSensors *lsensors,QWidget *parent, const char LMSensorsWidget::~LMSensorsWidget() { if(x()>=0 && y()>=0) { - KConfig *cfg= KGlobal::config(); + TDEConfig *cfg= TDEGlobal::config(); cfg->setGroup("ShowWidget"); //cfg->writeEntry("geometry" , geometry() ); - cfg->writeEntry( "geometry" , QRect(pos(), size()) ); + cfg->writeEntry( "geometry" , TQRect(pos(), size()) ); } delete infoPanels; } @@ -107,7 +107,7 @@ void LMSensorsWidget::slotConfigChanged(const char *name) * Private methods * ***************************************************************************/ -void LMSensorsWidget::childEvent(QChildEvent *e) +void LMSensorsWidget::childEvent(TQChildEvent *e) { if(e->inserted()) { loadDisplayConfig((Panel *)e->child()); @@ -116,17 +116,17 @@ void LMSensorsWidget::childEvent(QChildEvent *e) // ************* 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()) { - case QEvent::MouseButtonPress: + case TQEvent::MouseButtonPress: - if( m->button()==LeftButton ) startDragChild(m,(QWidget *)sender()); + if( m->button()==LeftButton ) startDragChild(m,(TQWidget *)sender()); break; - case QEvent::MouseButtonRelease: + case TQEvent::MouseButtonRelease: if( m->button()==RightButton ) emit rightMouseClicked(m); 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) { childDraging= w; grabMouse(sizeAllCursor); 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->update(); } @@ -163,7 +163,7 @@ int y= childDraging->y(); childDraging= 0; } -void LMSensorsWidget::mouseMoveEvent ( QMouseEvent *m ) +void LMSensorsWidget::mouseMoveEvent ( TQMouseEvent *m ) { 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(); else @@ -186,12 +186,12 @@ void LMSensorsWidget::findUnusedPosition(int *px,int *py) { bool found; uint mx,my,x,y,a[32]; -QObjectList *list= (QObjectList *)children(); +TQObjectList *list= (TQObjectList *)children(); for(y=0; y<32; y++) a[y]= 0; mx= 0; my= 0; 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; x=obj->x()/panelsSize; @@ -223,8 +223,8 @@ void LMSensorsWidget::loadDisplayConfig(Panel *display) loadPalette(display); bool fNoCfg; - QPoint p(-1,-1); - KConfig *cfg= KGlobal::config(); + TQPoint p(-1,-1); + TDEConfig *cfg= TDEGlobal::config(); cfg->setGroup(display->name()); p= cfg->readPointEntry("showPos", &p ); fNoCfg= (p.x()<0 || p.y()<0); @@ -237,26 +237,26 @@ void LMSensorsWidget::loadDisplayConfig(Panel *display) adjustSize(); } 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) { -KConfig *cfg= KGlobal::config(); +TDEConfig *cfg= TDEGlobal::config(); cfg->setGroup(display->name()); cfg->writeEntry("show",true); - QPoint p= display->pos()/panelsSize; + TQPoint p= display->pos()/panelsSize; cfg->writeEntry("showPos",p); } void LMSensorsWidget::createSensorPanels() { - QObjectList *chips= sensors->getSensorsChips(); + TQObjectList *chips= sensors->getSensorsChips(); if(chips) for(LMSensorsChip *chip= (LMSensorsChip *)chips->first(); chip!=0; chip= (LMSensorsChip *)chips->next()) { - QObjectList *list= (QObjectList *)chip->getSensors(); + TQObjectList *list= (TQObjectList *)chip->getSensors(); if(list) { for(LMSensor *sensor= (LMSensor *)list->first(); sensor!=0; sensor= (LMSensor *)list->next()) { if( Panel::readShow(sensor->name()) ) @@ -268,10 +268,10 @@ void LMSensorsWidget::createSensorPanels() void LMSensorsWidget::resizePanels(int newSize) { -QObjectList *panels= (QObjectList *)children(); +TQObjectList *panels= (TQObjectList *)children(); 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->resize(newSize,newSize); } @@ -281,14 +281,14 @@ QObjectList *panels= (QObjectList *)children(); int LMSensorsWidget::cfgReadPanelSize() { -KConfig *cfg= KGlobal::config(); +TDEConfig *cfg= TDEGlobal::config(); cfg->setGroup( "ShowWidget" ); return cfg->readNumEntry("PanelsSize",64); } void LMSensorsWidget::cfgWritePanelSize(int newSize) { -KConfig *cfg= KGlobal::config(); +TDEConfig *cfg= TDEGlobal::config(); cfg->setGroup( "ShowWidget" ); cfg->writeEntry("PanelsSize",newSize); } @@ -308,7 +308,7 @@ void LMSensorsWidget::loadGeneralOptions() void LMSensorsWidget::loadPalette(Panel *panel) { - QPalette pal= palette(); + TQPalette pal= palette(); if(panel) { if(cfgReadPalette(pal,panel->name(),false)) panel->setPalette(pal); 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(QColorGroup::Light , Qt::white ); - pal.setColor(QColorGroup::Dark, Qt::black ); - pal.setColor(QColorGroup::Foreground, Qt::black ); - pal.setColor(QColorGroup::Text, Qt::black ); + pal.setColor(TQColorGroup::Background, TQt::white ); + pal.setColor(TQColorGroup::Light , TQt::white ); + pal.setColor(TQColorGroup::Dark, TQt::black ); + pal.setColor(TQColorGroup::Foreground, TQt::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" ); if (cfg->readBoolEntry("PaletteActive",false)) { - pal.setColor(QColorGroup::Background, cfg->readColorEntry("ColorBackground",&Qt::white) ); - pal.setColor(QColorGroup::Light , cfg->readColorEntry("ColorBackground",&Qt::white) ); - pal.setColor(QColorGroup::Dark, cfg->readColorEntry("ColorShadow" ,&Qt::black) ); - pal.setColor(QColorGroup::Foreground, cfg->readColorEntry("ColorValue" ,&Qt::black) ); - pal.setColor(QColorGroup::Text, cfg->readColorEntry("ColorTitle" ,&Qt::black) ); + pal.setColor(TQColorGroup::Background, cfg->readColorEntry("ColorBackground",&TQt::white) ); + pal.setColor(TQColorGroup::Light , cfg->readColorEntry("ColorBackground",&TQt::white) ); + pal.setColor(TQColorGroup::Dark, cfg->readColorEntry("ColorShadow" ,&TQt::black) ); + pal.setColor(TQColorGroup::Foreground, cfg->readColorEntry("ColorValue" ,&TQt::black) ); + pal.setColor(TQColorGroup::Text, cfg->readColorEntry("ColorTitle" ,&TQt::black) ); return true; } else { if(returnDefault) { @@ -349,10 +349,10 @@ bool LMSensorsWidget::cfgReadPalette(QPalette &pal,const char *name, bool return return false; } -void LMSensorsWidget::cfgWritePalette(const QPalette &pal,const char *name) +void LMSensorsWidget::cfgWritePalette(const TQPalette &pal,const char *name) { - KConfig *cfg= KGlobal::config(); - QColorGroup colors= pal.active(); + TDEConfig *cfg= TDEGlobal::config(); + TQColorGroup colors= pal.active(); cfg->setGroup( name ? name : "General" ); cfg->writeEntry("PaletteActive",true); cfg->writeEntry("ColorBackground",colors.background() ); @@ -363,8 +363,8 @@ void LMSensorsWidget::cfgWritePalette(const QPalette &pal,const char *name) void LMSensorsWidget::cfgUnsetPalette(const char *name) { - KGlobal::config()->setGroup( name ? name : "General" ); - KGlobal::config()->writeEntry("PaletteActive",false); + TDEGlobal::config()->setGroup( name ? name : "General" ); + TDEGlobal::config()->writeEntry("PaletteActive",false); } // *********************************** End ************************************* diff --git a/src/lmsensorswidget.h b/src/lmsensorswidget.h index c331ad0..d65018a 100644 --- a/src/lmsensorswidget.h +++ b/src/lmsensorswidget.h @@ -18,8 +18,8 @@ #ifndef LMSENSORSWIDGET_H #define LMSENSORSWIDGET_H -#include -#include +#include +#include #include "lmsensors.h" #include "lmsensorpanel.h" @@ -29,17 +29,17 @@ *@author Miguel Novas */ -class LMSensorsWidget : public QWidget { +class LMSensorsWidget : public TQWidget { Q_OBJECT public: - LMSensorsWidget(LMSensors *lsensors,QWidget *parent=0, const char *name=0); + LMSensorsWidget(LMSensors *lsensors,TQWidget *parent=0, const char *name=0); ~LMSensorsWidget(); - static bool cfgReadPalette(QPalette &pal,const char *name=0, bool returnDefault= false); - static void cfgWritePalette(const QPalette &pal,const char *name=0); + static bool cfgReadPalette(TQPalette &pal,const char *name=0, bool returnDefault= false); + static void cfgWritePalette(const TQPalette &pal,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 int cfgReadPanelSize(); @@ -49,33 +49,33 @@ protected slots: signals: - void rightMouseClicked(QMouseEvent *); + void rightMouseClicked(TQMouseEvent *); private: LMSensors *sensors; InfoPanels *infoPanels; - QWidget *childDraging; + TQWidget *childDraging; int panelsSize; - QPoint origMousePt; + TQPoint origMousePt; void loadPalette(Panel *panel=0); void loadDisplayConfig(Panel *display); void saveDisplayConfig(Panel *display); - void mouseReleaseEvent ( QMouseEvent *m ); - void mouseMoveEvent ( QMouseEvent *m ); + void mouseReleaseEvent ( TQMouseEvent *m ); + void mouseMoveEvent ( TQMouseEvent *m ); void createSensorPanels(); void findUnusedPosition(int *px,int *py); - void startDragChild(QMouseEvent *m, QWidget *w); + void startDragChild(TQMouseEvent *m, TQWidget *w); void endDragChild(); void resizePanels(int newSize); void loadGeneralOptions(); private slots: - void childEvent(QChildEvent *); - void childEventReceived(QEvent *); + void childEvent(TQChildEvent *); + void childEventReceived(TQEvent *); }; diff --git a/src/main.cpp b/src/main.cpp index ac442cf..e670705 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,9 +15,9 @@ * * ***************************************************************************/ -#include -#include -#include +#include +#include +#include #include #include "ksensorssplash.h" @@ -28,7 +28,7 @@ static const char *description = // INSERT A DESCRIPTION FOR YOUR APPLICATION HERE -static KCmdLineOptions options[] = +static TDECmdLineOptions options[] = { { "nodock", I18N_NOOP("Don't dock in KDE system tray."), 0 }, { "splash", I18N_NOOP("Show splash screen."), 0 }, @@ -40,16 +40,16 @@ static KCmdLineOptions options[] = int main(int argc, char *argv[]) { - KAboutData aboutData( "ksensors", I18N_NOOP("KSensors"), - VERSION, description, KAboutData::License_GPL, + TDEAboutData aboutData( "ksensors", I18N_NOOP("KSensors"), + VERSION, description, TDEAboutData::License_GPL, "(c) 2001, Miguel Novas", 0, 0, "michaell@teleline.es"); aboutData.addAuthor("Miguel Novas",0, "michaell@teleline.es"); - KCmdLineArgs::init( argc, argv, &aboutData ); - KCmdLineArgs::addCmdLineOptions( options ); + TDECmdLineArgs::init( argc, argv, &aboutData ); + TDECmdLineArgs::addCmdLineOptions( options ); KUniqueApplication::addCmdLineOptions(); - KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); + TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); bool noDock= !args->isSet("dock"); bool showSplash= args->isSet("splash"); args->clear(); @@ -57,7 +57,7 @@ int main(int argc, char *argv[]) if(!KUniqueApplication::start()) return 0; KUniqueApplication a; - KConfig *cfg= kapp->config(); + TDEConfig *cfg= kapp->config(); cfg->setGroup("General"); if( cfg->readEntry("Version")!=aboutData.version() ) { cfg->writeEntry("Version",aboutData.version()); @@ -67,8 +67,8 @@ int main(int argc, char *argv[]) if(showSplash) (void)new KSensorsSplash(); LMSensorsDock *ksensors= new LMSensorsDock(noDock); - QObject::connect( ksensors, SIGNAL(destroyed()), kapp, SLOT(quit()) ); - QObject::connect( kapp, SIGNAL(saveYourself()), ksensors, SLOT(saveConfig()) ); + TQObject::connect( ksensors, SIGNAL(destroyed()), kapp, SLOT(quit()) ); + TQObject::connect( kapp, SIGNAL(saveYourself()), ksensors, SLOT(saveConfig()) ); return a.exec(); } diff --git a/src/palettecfg.cpp b/src/palettecfg.cpp index 18e9d34..64fddd8 100644 --- a/src/palettecfg.cpp +++ b/src/palettecfg.cpp @@ -18,17 +18,17 @@ #include "palettecfg.h" #include "lmsensorswidget.h" -#include -#include -#include +#include +#include +#include #include -PaletteCfg::PaletteCfg(QWidget *parent, const char *name): PaletteCfgDesign(parent,name) +PaletteCfg::PaletteCfg(TQWidget *parent, const char *name): PaletteCfgDesign(parent,name) { groupName= 0; slotComboSelected(0); 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()) ); } @@ -38,8 +38,8 @@ PaletteCfg::~PaletteCfg() void PaletteCfg::slotComboSelected(int index) { - QColorGroup colors= framePanel->palette().active(); - QColor color; + TQColorGroup colors= framePanel->palette().active(); + TQColor color; switch(index) { case 0: color= colors.background(); break; case 1: color= colors.dark(); break; @@ -51,15 +51,15 @@ void PaletteCfg::slotComboSelected(int index) 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()) { - case 0: pal.setColor(QColorGroup::Background,newColor); - pal.setColor(QColorGroup::Light ,newColor); break; - case 1: pal.setColor(QColorGroup::Dark ,newColor); break; - case 2: pal.setColor(QColorGroup::Text ,newColor); break; - case 3: pal.setColor(QColorGroup::Foreground,newColor); break; + case 0: pal.setColor(TQColorGroup::Background,newColor); + pal.setColor(TQColorGroup::Light ,newColor); break; + case 1: pal.setColor(TQColorGroup::Dark ,newColor); break; + case 2: pal.setColor(TQColorGroup::Text ,newColor); break; + case 3: pal.setColor(TQColorGroup::Foreground,newColor); break; default: return; } setPanelPalette(pal,false); @@ -69,7 +69,7 @@ void PaletteCfg::slotColorChanged(const QColor &newColor) void PaletteCfg::slotPaletteDefault() { palDefault= true; - QPalette pal; + TQPalette pal; if(groupName) { LMSensorsWidget::cfgReadPalette(pal,"General",true); } else { @@ -78,7 +78,7 @@ void PaletteCfg::slotPaletteDefault() setPanelPalette(pal,true); } -void PaletteCfg::setPanelPalette(const QPalette &pal, bool updateColorButton) +void PaletteCfg::setPanelPalette(const TQPalette &pal, bool updateColorButton) { labelTitle->unsetPalette(); framePanel->setPalette(pal); @@ -89,7 +89,7 @@ void PaletteCfg::setPanelPalette(const QPalette &pal, bool updateColorButton) void PaletteCfg::readPalette(const char *name) { groupName= name; - QPalette pal; + TQPalette pal; palDefault= !LMSensorsWidget::cfgReadPalette(pal,name,false); if(palDefault) LMSensorsWidget::cfgReadPalette(pal,"General",true); setPanelPalette(pal,true); diff --git a/src/palettecfg.h b/src/palettecfg.h index 497be69..12cf4e5 100644 --- a/src/palettecfg.h +++ b/src/palettecfg.h @@ -20,7 +20,7 @@ #include -#include +#include /** *@author Miguel Novas @@ -29,7 +29,7 @@ class PaletteCfg : public PaletteCfgDesign { Q_OBJECT public: - PaletteCfg(QWidget *parent=0, const char *name=0); + PaletteCfg(TQWidget *parent=0, const char *name=0); ~PaletteCfg(); void readPalette(const char *name); @@ -38,7 +38,7 @@ public: protected slots: void slotComboSelected(int index); - void slotColorChanged(const QColor &newColor); + void slotColorChanged(const TQColor &newColor); void slotPaletteDefault(); private: @@ -46,7 +46,7 @@ private: bool palDefault; const char *groupName; - void setPanelPalette(const QPalette &pal, bool updateColorButton=false); + void setPanelPalette(const TQPalette &pal, bool updateColorButton=false); }; #endif diff --git a/src/palettecfgdesign.cpp b/src/palettecfgdesign.cpp index 4e9034f..43415e2 100644 --- a/src/palettecfgdesign.cpp +++ b/src/palettecfgdesign.cpp @@ -1,4 +1,4 @@ -#include +#include /**************************************************************************** ** Form implementation generated from reading ui file './palettecfgdesign.ui' ** @@ -10,117 +10,117 @@ #include "palettecfgdesign.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include -#include -#include -#include +#include +#include +#include /* * Constructs a PaletteCfgDesign as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ -PaletteCfgDesign::PaletteCfgDesign( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +PaletteCfgDesign::PaletteCfgDesign( TQWidget* parent, const char* name, WFlags fl ) + : TQWidget( parent, name, fl ) { if ( !name ) setName( "PaletteCfgDesign" ); - setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) ); - PaletteCfgDesignLayout = new QGridLayout( this, 1, 1, 0, 6, "PaletteCfgDesignLayout"); - - framePanel = new QFrame( this, "framePanel" ); - framePanel->setMinimumSize( QSize( 64, 64 ) ); - framePanel->setMaximumSize( QSize( 64, 64 ) ); - QPalette pal; - QColorGroup cg; - cg.setColor( QColorGroup::Foreground, black ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, QColor( 241, 241, 241) ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, black ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, white ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); - cg.setColor( QColorGroup::Link, black ); - cg.setColor( QColorGroup::LinkVisited, black ); + setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) ); + PaletteCfgDesignLayout = new TQGridLayout( this, 1, 1, 0, 6, "PaletteCfgDesignLayout"); + + framePanel = new TQFrame( this, "framePanel" ); + framePanel->setMinimumSize( TQSize( 64, 64 ) ); + framePanel->setMaximumSize( TQSize( 64, 64 ) ); + TQPalette pal; + TQColorGroup cg; + cg.setColor( TQColorGroup::Foreground, black ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, black ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, white ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); + cg.setColor( TQColorGroup::Link, black ); + cg.setColor( TQColorGroup::LinkVisited, black ); pal.setActive( cg ); - cg.setColor( QColorGroup::Foreground, black ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, white ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, black ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, white ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); - cg.setColor( QColorGroup::Link, black ); - cg.setColor( QColorGroup::LinkVisited, black ); + cg.setColor( TQColorGroup::Foreground, black ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, white ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, black ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, white ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); + cg.setColor( TQColorGroup::Link, black ); + cg.setColor( TQColorGroup::LinkVisited, black ); pal.setInactive( cg ); - cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); - cg.setColor( QColorGroup::Button, QColor( 228, 228, 228) ); - cg.setColor( QColorGroup::Light, white ); - cg.setColor( QColorGroup::Midlight, white ); - cg.setColor( QColorGroup::Dark, QColor( 114, 114, 114) ); - cg.setColor( QColorGroup::Mid, QColor( 152, 152, 152) ); - cg.setColor( QColorGroup::Text, black ); - cg.setColor( QColorGroup::BrightText, white ); - cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); - cg.setColor( QColorGroup::Base, white ); - cg.setColor( QColorGroup::Background, white ); - cg.setColor( QColorGroup::Shadow, black ); - cg.setColor( QColorGroup::Highlight, QColor( 10, 95, 137) ); - cg.setColor( QColorGroup::HighlightedText, white ); - cg.setColor( QColorGroup::Link, black ); - cg.setColor( QColorGroup::LinkVisited, black ); + cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) ); + cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) ); + cg.setColor( TQColorGroup::Light, white ); + cg.setColor( TQColorGroup::Midlight, white ); + cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) ); + cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) ); + cg.setColor( TQColorGroup::Text, black ); + cg.setColor( TQColorGroup::BrightText, white ); + cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) ); + cg.setColor( TQColorGroup::Base, white ); + cg.setColor( TQColorGroup::Background, white ); + cg.setColor( TQColorGroup::Shadow, black ); + cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) ); + cg.setColor( TQColorGroup::HighlightedText, white ); + cg.setColor( TQColorGroup::Link, black ); + cg.setColor( TQColorGroup::LinkVisited, black ); pal.setDisabled( cg ); framePanel->setPalette( pal ); - framePanel->setFrameShape( QFrame::Panel ); - framePanel->setFrameShadow( QFrame::Raised ); + framePanel->setFrameShape( TQFrame::Panel ); + framePanel->setFrameShadow( TQFrame::Raised ); - labelTitle = new QLabel( framePanel, "labelTitle" ); - labelTitle->setGeometry( QRect( 8, 40, 50, 20 ) ); - QFont labelTitle_font( labelTitle->font() ); + labelTitle = new TQLabel( framePanel, "labelTitle" ); + labelTitle->setGeometry( TQRect( 8, 40, 50, 20 ) ); + TQFont labelTitle_font( labelTitle->font() ); labelTitle_font.setPointSize( 7 ); labelTitle->setFont( labelTitle_font ); - labelTitle->setAlignment( int( QLabel::AlignCenter ) ); + labelTitle->setAlignment( int( TQLabel::AlignCenter ) ); - labelValue = new QLabel( framePanel, "labelValue" ); - labelValue->setGeometry( QRect( 7, 16, 50, 20 ) ); - labelValue->setAlignment( int( QLabel::AlignCenter ) ); + labelValue = new TQLabel( framePanel, "labelValue" ); + labelValue->setGeometry( TQRect( 7, 16, 50, 20 ) ); + labelValue->setAlignment( int( TQLabel::AlignCenter ) ); PaletteCfgDesignLayout->addMultiCellWidget( framePanel, 0, 1, 0, 0 ); - buttonDefaultPalette = new QPushButton( this, "buttonDefaultPalette" ); - buttonDefaultPalette->setMinimumSize( QSize( 0, 22 ) ); + buttonDefaultPalette = new TQPushButton( this, "buttonDefaultPalette" ); + buttonDefaultPalette->setMinimumSize( TQSize( 0, 22 ) ); PaletteCfgDesignLayout->addMultiCellWidget( buttonDefaultPalette, 1, 1, 1, 2 ); - comboSelect = new QComboBox( FALSE, this, "comboSelect" ); - comboSelect->setMinimumSize( QSize( 0, 22 ) ); + comboSelect = new TQComboBox( FALSE, this, "comboSelect" ); + comboSelect->setMinimumSize( TQSize( 0, 22 ) ); PaletteCfgDesignLayout->addWidget( comboSelect, 0, 1 ); buttonColor = new KColorButton( this, "buttonColor" ); - buttonColor->setMinimumSize( QSize( 0, 22 ) ); + buttonColor->setMinimumSize( TQSize( 0, 22 ) ); PaletteCfgDesignLayout->addWidget( buttonColor, 0, 2 ); languageChange(); - resize( QSize(287, 74).expandedTo(minimumSizeHint()) ); + resize( TQSize(287, 74).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } @@ -129,7 +129,7 @@ PaletteCfgDesign::PaletteCfgDesign( QWidget* parent, const char* name, WFlags fl */ 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( "Title" ) ); comboSelect->insertItem( tr2i18n( "Value" ) ); - buttonColor->setText( QString::null ); + buttonColor->setText( TQString::null ); } #include "palettecfgdesign.moc" diff --git a/src/palettecfgdesign.h b/src/palettecfgdesign.h index 466b6ac..4a0676b 100644 --- a/src/palettecfgdesign.h +++ b/src/palettecfgdesign.h @@ -10,37 +10,37 @@ #ifndef PALETTECFGDESIGN_H #define PALETTECFGDESIGN_H -#include -#include +#include +#include #include -class QVBoxLayout; -class QHBoxLayout; -class QGridLayout; -class QSpacerItem; -class QFrame; -class QLabel; -class QPushButton; -class QComboBox; +class TQVBoxLayout; +class TQHBoxLayout; +class TQGridLayout; +class TQSpacerItem; +class TQFrame; +class TQLabel; +class TQPushButton; +class TQComboBox; class KColorButton; -class PaletteCfgDesign : public QWidget +class PaletteCfgDesign : public TQWidget { Q_OBJECT public: - PaletteCfgDesign( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + PaletteCfgDesign( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~PaletteCfgDesign(); - QFrame* framePanel; - QLabel* labelTitle; - QLabel* labelValue; - QPushButton* buttonDefaultPalette; - QComboBox* comboSelect; + TQFrame* framePanel; + TQLabel* labelTitle; + TQLabel* labelValue; + TQPushButton* buttonDefaultPalette; + TQComboBox* comboSelect; KColorButton* buttonColor; protected: - QGridLayout* PaletteCfgDesignLayout; + TQGridLayout* PaletteCfgDesignLayout; protected slots: virtual void languageChange(); diff --git a/src/palettecfgdesign.ui b/src/palettecfgdesign.ui index 879edd4..d958e8c 100644 --- a/src/palettecfgdesign.ui +++ b/src/palettecfgdesign.ui @@ -1,6 +1,6 @@ PaletteCfgDesign - + PaletteCfgDesign @@ -35,7 +35,7 @@ 6 - + framePanel @@ -307,7 +307,7 @@ Raised - + labelTitle @@ -333,7 +333,7 @@ - + labelValue @@ -355,7 +355,7 @@ - + buttonDefaultPalette @@ -369,7 +369,7 @@ Default colors - + Background diff --git a/src/panel.cpp b/src/panel.cpp index 96c7763..4ac2f51 100644 --- a/src/panel.cpp +++ b/src/panel.cpp @@ -17,11 +17,11 @@ #include "panel.h" -#include +#include -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); installEventFilter(this); } @@ -32,7 +32,7 @@ Panel::~Panel(){ // 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); return false; @@ -43,14 +43,14 @@ bool Panel::eventFilter( QObject *o , QEvent *e) bool Panel::readShow(const char *name) { - KGlobal::config()->setGroup(name); - return KGlobal::config()->readBoolEntry("show",false); + TDEGlobal::config()->setGroup(name); + return TDEGlobal::config()->readBoolEntry("show",false); } void Panel::writeShow(const char *name, bool fShow) { - KGlobal::config()->setGroup(name); - KGlobal::config()->writeEntry("show",fShow); + TDEGlobal::config()->setGroup(name); + TDEGlobal::config()->writeEntry("show",fShow); } diff --git a/src/panel.h b/src/panel.h index 51e5181..3214dfc 100644 --- a/src/panel.h +++ b/src/panel.h @@ -18,23 +18,23 @@ #ifndef PANEL_H #define PANEL_H -#include -#include -#include +#include +#include +#include /** *@author Miguel Novas */ -class Panel : public QFrame { +class Panel : public TQFrame { Q_OBJECT public: - Panel(QWidget *parent, const char *name); + Panel(TQWidget *parent, const char *name); ~Panel(); - inline const QColor &getColorTitle() { return colorGroup().text(); }; - inline const QColor &getColorValue() { return colorGroup().foreground(); }; + inline const TQColor &getColorTitle() { return colorGroup().text(); }; + inline const TQColor &getColorValue() { return colorGroup().foreground(); }; static bool readShow (const char *name); static void writeShow(const char *name, bool fShow); @@ -45,11 +45,11 @@ public slots: signals: - void eventReceived(QEvent *); + void eventReceived(TQEvent *); private: - bool eventFilter( QObject *o , QEvent *e); + bool eventFilter( TQObject *o , TQEvent *e); }; #endif diff --git a/src/panelsgroup.h b/src/panelsgroup.h index b1187a6..cd34697 100644 --- a/src/panelsgroup.h +++ b/src/panelsgroup.h @@ -18,18 +18,18 @@ #ifndef PANELSGROUP_H #define PANELSGROUP_H -#include +#include #include /** *@author Miguel Novas */ -class PanelsGroup : public QObject { +class PanelsGroup : public TQObject { Q_OBJECT public: - PanelsGroup(QWidget *widget, QObject *parent=0, const char *name=0) {}; + PanelsGroup(TQWidget *widget, TQObject *parent=0, const char *name=0) {}; ~PanelsGroup() {}; diff --git a/src/processexec.cpp b/src/processexec.cpp index ac2825c..6856ed3 100644 --- a/src/processexec.cpp +++ b/src/processexec.cpp @@ -18,11 +18,11 @@ #include #include "processexec.h" -ProcessExec::ProcessExec(): KProcess() +ProcessExec::ProcessExec(): TDEProcess() { clearData(); - connect( this, SIGNAL(receivedStdout(KProcess *, char *, int)),this, SLOT(slotReceivedStdout(KProcess *, char *, int)) ); - connect( this, SIGNAL(receivedStderr(KProcess *, char *, int)),this, SLOT(slotReceivedStderr(KProcess *, char *, int)) ); + connect( this, SIGNAL(receivedStdout(TDEProcess *, char *, int)),this, SLOT(slotReceivedStdout(TDEProcess *, char *, int)) ); + connect( this, SIGNAL(receivedStderr(TDEProcess *, char *, int)),this, SLOT(slotReceivedStderr(TDEProcess *, char *, int)) ); } ProcessExec::~ProcessExec(){ @@ -40,12 +40,12 @@ bool ProcessExec::runAndWait() 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; slotReceivedStdout(proc,buf,len); diff --git a/src/processexec.h b/src/processexec.h index e259ca5..56672fc 100644 --- a/src/processexec.h +++ b/src/processexec.h @@ -25,7 +25,7 @@ *@author asdf */ -class ProcessExec : public KProcess { +class ProcessExec : public TDEProcess { Q_OBJECT public: ProcessExec(); @@ -35,19 +35,19 @@ public: bool runAndWait(); bool outputErrors() { return fErrors; }; - inline QString getStdoutData() { return buffer; }; + inline TQString getStdoutData() { return buffer; }; inline unsigned int getStdoutDataLen() { return buffer.length(); } inline void clearData() { buffer.truncate(0); fErrors= false; }; protected slots: - void slotReceivedStdout(KProcess *proc, char *buf, int len); - void slotReceivedStderr(KProcess *proc, char *buf, int len); + void slotReceivedStdout(TDEProcess *proc, char *buf, int len); + void slotReceivedStderr(TDEProcess *proc, char *buf, int len); private: static const int bufMax= 1023; - QString buffer; + TQString buffer; bool fErrors; }; diff --git a/src/qbarmeter.cpp b/src/qbarmeter.cpp index bb0d400..472618b 100644 --- a/src/qbarmeter.cpp +++ b/src/qbarmeter.cpp @@ -17,7 +17,7 @@ #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; 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; update(); } -void QBarMeter::useValueMax(bool flag) +void TQBarMeter::useValueMax(bool flag) { if(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) { 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; update(); } -void QBarMeter::setValue(double newVal) +void TQBarMeter::setValue(double newVal) { if(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; update(); } -void QBarMeter::setValue(int index, double newVal) +void TQBarMeter::setValue(int index, double newVal) { if(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) { 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) { count= newCount; @@ -102,13 +102,13 @@ void QBarMeter::setValueCount(int newCount) } } -void QBarMeter::setSteps(int newSteps) +void TQBarMeter::setSteps(int newSteps) { steps= newSteps; update(); } -void QBarMeter::paintEvent( QPaintEvent *) +void TQBarMeter::paintEvent( TQPaintEvent *) { int x,y,lx,ly,sx,sy; switch(dir) { @@ -151,7 +151,7 @@ void QBarMeter::paintEvent( QPaintEvent *) } int csteps= steps; - QPainter p(this); + TQPainter p(this); for(int i= 0; i -#include -#include +#include +#include +#include /** *@author Miguel Novas */ -class QBarMeter: public QWidget { +class TQBarMeter: public TQWidget { Q_OBJECT public: enum Direction { dirLeft, dirRight ,dirUp, dirDown }; - QBarMeter(QWidget *parent=0, const char *name=0); - ~QBarMeter(); + TQBarMeter(TQWidget *parent=0, const char *name=0); + ~TQBarMeter(); void setDirection(Direction dir); void setValueMax(double newVal); void setValue(double newVal); - void setValueColor(const QColor &newColor); - void setValueMaxColor(const QColor &newColor); + void setValueColor(const TQColor &newColor); + void setValueMaxColor(const TQColor &newColor); void setSteps(int newSteps); 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 useValueMax(bool flag); protected: double val[8]; - QColor color[8]; + TQColor color[8]; bool useValMax; double valMax; - QColor maxColor; + TQColor maxColor; int count; int steps; Direction dir; - void paintEvent( QPaintEvent *); + void paintEvent( TQPaintEvent *); }; #endif diff --git a/src/qdialarc.cpp b/src/qdialarc.cpp index 418d13b..5ce84d7 100644 --- a/src/qdialarc.cpp +++ b/src/qdialarc.cpp @@ -18,16 +18,16 @@ #include "qdialarc.h" -#include +#include #include #include #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; valMin = 0; @@ -40,20 +40,20 @@ QDialArc::QDialArc(QWidget *parent, const char *name ) : QWidget(parent,name) angleLen = 360*16; fShowMarks = false; fCalcParams = true; - colorMin = Qt::green; - colorMax = Qt::red; + colorMin = TQt::green; + colorMax = TQt::red; arrowColor = foregroundColor(); } -QDialArc::~QDialArc(){ +TQDialArc::~TQDialArc(){ } -void QDialArc::setValue(double value) +void TQDialArc::setValue(double value) { if(value>valMax) value= valMax; else if(valuesetPen(color); 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, 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; -QPainter p(this); +TQPainter p(this); if(fCalcParams) calcParams(); l0= angleStart; - l1= valToQDegrees(valMinLimit); - l2= valToQDegrees(valMinLimit+(valMaxLimit-valMinLimit)*valMinLimitPercent/100); - l3= valToQDegrees(valMaxLimit-(valMaxLimit-valMinLimit)*valMaxLimitPercent/100); - l4= valToQDegrees(valMaxLimit); + l1= valToTQDegrees(valMinLimit); + l2= valToTQDegrees(valMinLimit+(valMaxLimit-valMinLimit)*valMinLimitPercent/100); + l3= valToTQDegrees(valMaxLimit-(valMaxLimit-valMinLimit)*valMaxLimitPercent/100); + l4= valToTQDegrees(valMaxLimit); l5= angleStart+angleLen; 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.blue() +colorMid.blue() )/2 ) ); 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.blue() +colorMid.blue() )/2 ) ); drawArc(&p,l4,l5,colorMax); @@ -300,7 +300,7 @@ int a2=a1+len; } -void QDialArc::calcParams() +void TQDialArc::calcParams() { double m,w,h; POINT2D p1,p2,d,a; @@ -343,7 +343,7 @@ POINT2D p1,p2,d,a; -void QDialArc::paramsChanged() +void TQDialArc::paramsChanged() { fCalcParams= true; update(); diff --git a/src/qdialarc.h b/src/qdialarc.h index a5db935..42c254e 100644 --- a/src/qdialarc.h +++ b/src/qdialarc.h @@ -15,20 +15,20 @@ * * ***************************************************************************/ -#ifndef QDIALARC_H -#define QDIALARC_H +#ifndef TQDIALARC_H +#define TQDIALARC_H -#include +#include /** *@author Miguel Novas */ -class QDialArc : public QWidget { +class TQDialArc : public TQWidget { Q_OBJECT public: - QDialArc(QWidget *parent=0, const char *name=0); - ~QDialArc(); + TQDialArc(TQWidget *parent=0, const char *name=0); + ~TQDialArc(); void setValue (double value); void setValueMin (double value); @@ -46,19 +46,19 @@ public: void setShowMarks (bool flag); - void setColorMax(const QColor &color); - void setColorMid(const QColor &color); - void setColorMin(const QColor &color); - void setColorRanges(const QColor &min,const QColor &mid, const QColor &max); + void setColorMax(const TQColor &color); + void setColorMid(const TQColor &color); + void setColorMin(const TQColor &color); + 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; } protected: - void resizeEvent( QResizeEvent *); - void paintEvent ( QPaintEvent *); + void resizeEvent( TQResizeEvent *); + void paintEvent ( TQPaintEvent *); private: @@ -73,17 +73,17 @@ private: int centerx,centery; bool fCalcParams; - QColor arrowColor; - QColor colorMin; - QColor colorMid; - QColor colorMax; + TQColor arrowColor; + TQColor colorMin; + TQColor colorMid; + TQColor colorMax; bool fShowMarks; void calcParams(); void paramsChanged(); - void drawMarks(QPainter *p,int l1,int l2); - void drawArc(QPainter *p,int l1,int l2,const QColor &color); - void drawArrow(QPainter *p, double value); + void drawMarks(TQPainter *p,int l1,int l2); + void drawArc(TQPainter *p,int l1,int l2,const TQColor &color); + void drawArrow(TQPainter *p, double value); }; #endif diff --git a/src/qlcddraw.h b/src/qlcddraw.h index c830066..a02a340 100644 --- a/src/qlcddraw.h +++ b/src/qlcddraw.h @@ -16,14 +16,14 @@ ***************************************************************************/ -#ifndef QLCDDRAW_H -#define QLCDDRAW_H +#ifndef TQLCDDRAW_H +#define TQLCDDRAW_H -#include -#include +#include +#include -class QLcd { +class TQLcd { public: @@ -41,15 +41,15 @@ public: }; - static int draw(QPainter *painter, + static int draw(TQPainter *painter, int x, int y, int w, int h, const char *str, int options=0, - const QColor *color=0, - const QColor *colorShadow=0); + const TQColor *color=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 strWidth(const char *str,int height) { return strlen(str)*charWidth(height); }; @@ -59,7 +59,7 @@ private: static const uint asciiSegments[128]; 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); }; diff --git a/src/qlcdraw.cpp b/src/qlcdraw.cpp index 26c68d4..97c16a3 100644 --- a/src/qlcdraw.cpp +++ b/src/qlcdraw.cpp @@ -18,7 +18,7 @@ #include "qlcddraw.h" -const uint QLcd::asciiSegments[128]= +const uint TQLcd::asciiSegments[128]= { 0x00000000, // 0 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 { 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--; 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]; @@ -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; diff --git a/src/qlcdstring.cpp b/src/qlcdstring.cpp index 114c9dd..8426c76 100644 --- a/src/qlcdstring.cpp +++ b/src/qlcdstring.cpp @@ -18,91 +18,91 @@ #include "qlcdstring.h" -#include +#include -QLCDString::QLCDString( QWidget *parent, const char *name ): QWidget( parent, name ) +TQLCDString::TQLCDString( TQWidget *parent, const char *name ): TQWidget( parent, name ) { digitStr= ""; - options= QLcd::alignCenter; + options= TQLcd::alignCenter; - QColorGroup g= colorGroup(); + TQColorGroup g= colorGroup(); forColor= g.foreground(); shaColor= g.shadow(); } -QLCDString::~QLCDString(){ +TQLCDString::~TQLCDString(){ } -void QLCDString::display( const QString &str ) +void TQLCDString::display( const TQString &str ) { digitStr= str; update(); } -void QLCDString::setAlign(Align newAlign) +void TQLCDString::setAlign(Align newAlign) { - if( (options & QLcd::alignMask)!=newAlign ) { - options= (options & ~QLcd::alignMask ) | newAlign; + if( (options & TQLcd::alignMask)!=newAlign ) { + options= (options & ~TQLcd::alignMask ) | newAlign; update(); } } -const QColor& QLCDString::foreColor() +const TQColor& TQLCDString::foreColor() { return forColor; } -const QColor& QLCDString::shadowColor() +const TQColor& TQLCDString::shadowColor() { return shaColor; } -void QLCDString::setForeColor(const QColor &fore) +void TQLCDString::setForeColor(const TQColor &fore) { forColor= fore; update(); } -void QLCDString::setShadowColor(const QColor &sha) +void TQLCDString::setShadowColor(const TQColor &sha) { shaColor= sha; update(); } -void QLCDString::resizeEvent ( QResizeEvent *) +void TQLCDString::resizeEvent ( TQResizeEvent *) { update(); } -void QLCDString::setShadow(bool enable) +void TQLCDString::setShadow(bool enable) { - if( (bool)(options & QLcd::drawShadow) != enable ) { - options^= QLcd::drawShadow; + if( (bool)(options & TQLcd::drawShadow) != enable ) { + options^= TQLcd::drawShadow; update(); } } -void QLCDString::setNumberDisplay(bool enable) +void TQLCDString::setNumberDisplay(bool enable) { - if( (bool)(options & QLcd::drawNumber) != enable ) { - options^= QLcd::drawNumber; + if( (bool)(options & TQLcd::drawNumber) != enable ) { + options^= TQLcd::drawNumber; 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); } diff --git a/src/qlcdstring.h b/src/qlcdstring.h index 9db6b98..d0a517a 100644 --- a/src/qlcdstring.h +++ b/src/qlcdstring.h @@ -15,13 +15,13 @@ * * ***************************************************************************/ -#ifndef QLCDSTRING_H -#define QLCDSTRING_H +#ifndef TQLCDSTRING_H +#define TQLCDSTRING_H -#include -#include -#include -#include +#include +#include +#include +#include #include "qlcddraw.h" @@ -29,9 +29,9 @@ *@author Miguel Novas */ -#include +#include -class QLCDString : public QWidget { +class TQLCDString : public TQWidget { Q_OBJECT public: @@ -42,35 +42,35 @@ public: alignJustify= 0x0003 }; - QLCDString( QWidget *parent=0, const char *name=0 ); - ~QLCDString(); + TQLCDString( TQWidget *parent=0, const char *name=0 ); + ~TQLCDString(); - void display( const QString &str ); + void display( const TQString &str ); void setShadow(bool enable); - bool getShadow() { return (bool)(options & QLcd::drawShadow); }; + bool getShadow() { return (bool)(options & TQLcd::drawShadow); }; void setAlign(Align newAlign); - void setForeColor(const QColor &fore); - void setShadowColor(const QColor &sha); + void setForeColor(const TQColor &fore); + void setShadowColor(const TQColor &sha); void setNumberDisplay(bool enable); - const QColor& foreColor(); - const QColor& shadowColor(); + const TQColor& foreColor(); + const TQColor& shadowColor(); protected: - void resizeEvent( QResizeEvent *); - void paintEvent ( QPaintEvent *); + void resizeEvent( TQResizeEvent *); + void paintEvent ( TQPaintEvent *); private: - QString digitStr; + TQString digitStr; int options; - QColor forColor,shaColor; + TQColor forColor,shaColor; }; #endif diff --git a/src/rampanel.cpp b/src/rampanel.cpp index b927ffb..17b72ab 100644 --- a/src/rampanel.cpp +++ b/src/rampanel.cpp @@ -19,29 +19,29 @@ #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; memTotal= -1; memUsed = -1; - arc = new QDialArc(this); + arc = new TQDialArc(this); arc->installEventFilter(this); arc->setAngles(180,-180); 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->setShadow(true); lcd1->setForeColor(getColorValue()); - lcd1->setAlign(QLCDString::alignCenter); + lcd1->setAlign(TQLCDString::alignCenter); lcd1->installEventFilter(this); - lcd2= new QLCDString(this); + lcd2= new TQLCDString(this); lcd2->setGeometry(4, 52,58,8); lcd2->setForeColor(getColorTitle()); - lcd2->setAlign(QLCDString::alignCenter); + lcd2->setAlign(TQLCDString::alignCenter); lcd2->installEventFilter(this); updateInfo(); @@ -67,14 +67,14 @@ void RamPanel::updateInfo() if(memTotal!=newMemTotal) { arc->setValueRanges(0,newMemTotal); - QString str; + TQString str; str.sprintf ( ramType==memSWAP ? "SWP %dM" : "RAM %dM", newMemTotal); lcd2->display(str); memTotal= newMemTotal; } if(memUsed!=newMemUsed) { - QString str; + TQString str; str.sprintf ("%dM" , newMemUsed ); lcd1->display(str); 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()); lcd1->setForeColor(getColorValue()); arc->setArrowColor(getColorValue()); } -void RamPanel::resizeEvent ( QResizeEvent *e ) +void RamPanel::resizeEvent ( TQResizeEvent *e ) { int w= width(); int h= height(); diff --git a/src/rampanel.h b/src/rampanel.h index 62edf45..a52dc06 100644 --- a/src/rampanel.h +++ b/src/rampanel.h @@ -31,18 +31,18 @@ public: 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(); protected: RamType ramType; int memTotal,memUsed; - QDialArc *arc; - QLCDString *lcd1,*lcd2; + TQDialArc *arc; + TQLCDString *lcd1,*lcd2; void updateInfo(); - void paletteChange(const QPalette &oldPalette); - void resizeEvent ( QResizeEvent *e ); + void paletteChange(const TQPalette &oldPalette); + void resizeEvent ( TQResizeEvent *e ); }; #endif diff --git a/src/sensor.cpp b/src/sensor.cpp index 9ada02a..73c0829 100644 --- a/src/sensor.cpp +++ b/src/sensor.cpp @@ -15,14 +15,14 @@ * * ***************************************************************************/ -#include +#include #include "sensor.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 = ""; compensation = 0; @@ -39,7 +39,7 @@ Sensor::SensorClass Sensor::getClass() return ((SensorsList *)parent())->getClass(); } -QString Sensor::getPrintMask(bool addSufix) +TQString Sensor::getPrintMask(bool addSufix) { return getSensorPrintMask(type, addSufix, ((SensorsList*)parent())->getTempScale() ); } @@ -97,7 +97,7 @@ void Sensor::setMultiplicator(double value) multiplicator= value; } -void Sensor::setDescription(const QString &str) +void Sensor::setDescription(const TQString &str) { description= str; } @@ -118,10 +118,10 @@ void Sensor::setValue(double newVal, TempScale scale, bool ajust) void Sensor::writeConfig() { -KConfig *ksConfig= KGlobal::config(); +TDEConfig *ksConfig= TDEGlobal::config(); if(ksConfig) { - ksConfig->setGroup( QString(name()) ); + ksConfig->setGroup( TQString(name()) ); ksConfig->writeEntry("description" ,description); ksConfig->writeEntry("valueIdeal" ,valIdeal); ksConfig->writeEntry("valueMax" ,valMax); @@ -135,10 +135,10 @@ KConfig *ksConfig= KGlobal::config(); void Sensor::readConfig() { -KConfig *ksConfig= KGlobal::config(); +TDEConfig *ksConfig= TDEGlobal::config(); if(ksConfig) { - ksConfig->setGroup( QString(name()) ); + ksConfig->setGroup( TQString(name()) ); valMax = ksConfig->readDoubleNumEntry("valueMax" ,valMax); valMin = ksConfig->readDoubleNumEntry("valueMin" ,valMin); compensation = ksConfig->readDoubleNumEntry("compensation" ,compensation); diff --git a/src/sensor.h b/src/sensor.h index 6af1c79..c79237c 100644 --- a/src/sensor.h +++ b/src/sensor.h @@ -18,10 +18,10 @@ #ifndef SENSOR_H #define SENSOR_H -#include -#include -#include -#include +#include +#include +#include +#include /** *@author Miguel Novas @@ -31,7 +31,7 @@ class SensorsList; -class Sensor : public QObject { +class Sensor : public TQObject { Q_OBJECT friend class SensorsList; @@ -51,7 +51,7 @@ public: void setValue(double newVal, TempScale scale= dgDefault, bool ajust=true); 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 getValuePrevious() { return celsiusTo(valPrevious); }; inline double getValueIdeal() { return celsiusTo(valIdeal); }; @@ -66,7 +66,7 @@ public: bool monitorized(); void setMonitorized (bool enable); - void setDescription (const QString &str); + void setDescription (const TQString &str); void setValueIdeal (double value, TempScale scale= dgDefault); void setValueMax (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 celsiusToDiff(double val, TempScale scale= dgDefault); - QString getPrintMask(bool addSufix); + TQString getPrintMask(bool addSufix); public slots: @@ -95,7 +95,7 @@ signals: private: SensorType type; - QString description; + TQString description; double val; double valPrevious; double compensation; diff --git a/src/sensorslist.cpp b/src/sensorslist.cpp index 57e6951..d5921b3 100644 --- a/src/sensorslist.cpp +++ b/src/sensorslist.cpp @@ -17,10 +17,10 @@ #include "sensorslist.h" -#include +#include -SensorsList::SensorsList(QObject *parent, const char * name) - : QObject(parent,name) +SensorsList::SensorsList(TQObject *parent, const char * name) + : TQObject(parent,name) { tempScale= Sensor::dgCelsius; updateInterval= 5000; @@ -56,7 +56,7 @@ void SensorsList::setTempScale(Sensor::TempScale scale) { if(tempScale!=scale) { tempScale= scale; - QObjectList *list= getSensors(); + TQObjectList *list= getSensors(); if(list) for(Sensor *sensor=(Sensor*)list->first(); sensor!=0; sensor= (Sensor*)list->next()) if(sensor->getType()==Sensor::lmTemp) @@ -67,10 +67,10 @@ void SensorsList::setTempScale(Sensor::TempScale scale) void SensorsList::readConfig() { - KConfig *ksConfig= KGlobal::config(); + TDEConfig *ksConfig= TDEGlobal::config(); ksConfig->setGroup( name() ); setUpdateInterval(ksConfig->readNumEntry("UpdateInterval",5)); - QString str= ksConfig->readEntry("Scale" ,"C"); + TQString str= ksConfig->readEntry("Scale" ,"C"); Sensor::TempScale tempScale; if(str=="F") tempScale= Sensor::dgFahrenheit; else if(str=="K") tempScale= Sensor::dgKelvin; @@ -81,10 +81,10 @@ void SensorsList::readConfig() void SensorsList::writeConfig() { - KConfig *ksConfig= KGlobal::config(); + TDEConfig *ksConfig= TDEGlobal::config(); ksConfig->setGroup( name() ); ksConfig->writeEntry("UpdateInterval",updateInterval/1000); - QString str; + TQString str; switch(tempScale) { case Sensor::dgCelsius : str='C'; break; case Sensor::dgKelvin : str='K'; break; @@ -98,14 +98,14 @@ void SensorsList::writeConfig() // Protected methods //**************************************************************************** -void SensorsList::timerEvent( QTimerEvent * ) +void SensorsList::timerEvent( TQTimerEvent * ) { updateSensors(); } //*************** -void SensorsList::childEvent ( QChildEvent *e ) +void SensorsList::childEvent ( TQChildEvent *e ) { if(e->inserted()) { connect((Sensor *)e->child(),SIGNAL(configChanged()),this,SLOT(slotConfigChanged())); diff --git a/src/sensorslist.h b/src/sensorslist.h index a2dc7ec..49a0871 100644 --- a/src/sensorslist.h +++ b/src/sensorslist.h @@ -18,10 +18,10 @@ #ifndef SENSORSLIST_H #define SENSORSLIST_H -#include -#include -#include -#include +#include +#include +#include +#include #include @@ -29,21 +29,21 @@ *@author Miguel Novas */ -class SensorsList : public QObject { +class SensorsList : public TQObject { Q_OBJECT friend class Sensor; public: - SensorsList(QObject *parent=0, const char *name=0); + SensorsList(TQObject *parent=0, const char *name=0); ~SensorsList(); void setMonitorized(bool enable); - const QString &getDescription() { return description; }; - QObjectList *getSensors() { return (QObjectList *)children(); }; - Sensor *getSensor(int index) { return children() ? (Sensor *)((QObjectList *)children())->at(index) : 0; } + const TQString &getDescription() { return description; }; + TQObjectList *getSensors() { return (TQObjectList *)children(); }; + Sensor *getSensor(int index) { return children() ? (Sensor *)((TQObjectList *)children())->at(index) : 0; } Sensor *getSensor(const char *name) { return (Sensor *)child(name); } int count() { return children() ? children()->count() : 0; } @@ -73,20 +73,20 @@ protected slots: protected: - void setDescription(const QString &name) { description= name; }; + void setDescription(const TQString &name) { description= name; }; void setClass(Sensor::SensorClass newClass) { clas= newClass; } - void childEvent ( QChildEvent *e ); + void childEvent ( TQChildEvent *e ); private: - QString description; + TQString description; Sensor::SensorClass clas; bool monitorized; int updateInterval; - KConfig *ksConfig; + TDEConfig *ksConfig; Sensor::TempScale tempScale; - void timerEvent( QTimerEvent * ); + void timerEvent( TQTimerEvent * ); }; #endif diff --git a/src/sounds/Makefile.in b/src/sounds/Makefile.in index ea88b3c..b5521a8 100644 --- a/src/sounds/Makefile.in +++ b/src/sounds/Makefile.in @@ -400,16 +400,16 @@ uninstall-am: uninstall-info-am uninstall-local install-data-local: -#>- $(mkinstalldirs) $(kde_datadir)/sounds +#>- $(mkinstalldirs) $(kde_sounddir) #>+ 1 - $(mkinstalldirs) $(DESTDIR)$(kde_datadir)/sounds -#>- $(INSTALL_DATA) $(srcdir)/ksensors_alert.wav $(kde_datadir)/sounds/ksensors_alert.wav + $(mkinstalldirs) $(DESTDIR)$(kde_sounddir) +#>- $(INSTALL_DATA) $(srcdir)/ksensors_alert.wav $(kde_sounddir)/ksensors_alert.wav #>+ 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: -#>- -rm -f $(kde_datadir)/sounds/ksensors_alert.wav +#>- -rm -f $(kde_sounddir)/ksensors_alert.wav #>+ 1 - -rm -f $(DESTDIR)$(kde_datadir)/sounds/ksensors_alert.wav + -rm -f $(DESTDIR)$(kde_sounddir)/ksensors_alert.wav ####### kdevelop will overwrite this part!!! (end)############ # Tell versions [3.59,3.63) of GNU make to not export all variables. diff --git a/src/systemcfg.cpp b/src/systemcfg.cpp index 69a1053..3138970 100644 --- a/src/systemcfg.cpp +++ b/src/systemcfg.cpp @@ -15,32 +15,32 @@ * * ***************************************************************************/ -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include "systemcfg.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; palPanelCfg= new PaletteCfg( boxPanelPalette ); - boxPanelPalette->setColumnLayout(0, Qt::Vertical ); + boxPanelPalette->setColumnLayout(0, TQt::Vertical ); boxPanelPalette->layout()->setSpacing( 6 ); boxPanelPalette->layout()->setMargin( 12 ); - QGridLayout *boxPanelPaletteLayout = new QGridLayout( boxPanelPalette->layout() ); - boxPanelPaletteLayout->setAlignment( Qt::AlignTop ); + TQGridLayout *boxPanelPaletteLayout = new TQGridLayout( boxPanelPalette->layout() ); + boxPanelPaletteLayout->setAlignment( TQt::AlignTop ); 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())); listSensors->clear(); @@ -58,7 +58,7 @@ SystemCfg::SystemCfg(LMSensors *lsensors, QWidget *parent, const char *name): Sy SystemCfg::~SystemCfg(){ } -void SystemCfg::slotTabWidgetChanged(QWidget *) +void SystemCfg::slotTabWidgetChanged(TQWidget *) { switch(TabWidget->currentPageIndex()) { diff --git a/src/systemcfg.h b/src/systemcfg.h index ab5f0d1..4eacf0a 100644 --- a/src/systemcfg.h +++ b/src/systemcfg.h @@ -29,12 +29,12 @@ class SystemCfg : public SystemCfgDesign { Q_OBJECT public: - SystemCfg(LMSensors *lsensors, QWidget *parent=0, const char *name=0); + SystemCfg(LMSensors *lsensors, TQWidget *parent=0, const char *name=0); ~SystemCfg(); protected slots: void slotCurrentSensorChanged(int index); - void slotTabWidgetChanged(QWidget *); + void slotTabWidgetChanged(TQWidget *); void readSensorInfo(int index); void readPreferencesInfo(); diff --git a/src/systemcfgdesign.cpp b/src/systemcfgdesign.cpp index 2695218..f07956e 100644 --- a/src/systemcfgdesign.cpp +++ b/src/systemcfgdesign.cpp @@ -1,4 +1,4 @@ -#include +#include /**************************************************************************** ** Form implementation generated from reading ui file './systemcfgdesign.ui' ** @@ -10,105 +10,105 @@ #include "systemcfgdesign.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include /* * Constructs a SystemCfgDesign as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ -SystemCfgDesign::SystemCfgDesign( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +SystemCfgDesign::SystemCfgDesign( TQWidget* parent, const char* name, WFlags fl ) + : TQWidget( parent, name, fl ) { if ( !name ) 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" ); - tabLayout = new QHBoxLayout( tab, 8, 8, "tabLayout"); + tab = new TQWidget( TabWidget, "tab" ); + tabLayout = new TQHBoxLayout( tab, 8, 8, "tabLayout"); - listSensors = new QListBox( tab, "listSensors" ); - listSensors->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, listSensors->sizePolicy().hasHeightForWidth() ) ); - listSensors->setMinimumSize( QSize( 160, 0 ) ); - listSensors->setMaximumSize( QSize( 160, 32767 ) ); - listSensors->setFrameShape( QListBox::StyledPanel ); - listSensors->setFrameShadow( QListBox::Sunken ); + listSensors = new TQListBox( tab, "listSensors" ); + listSensors->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, listSensors->sizePolicy().hasHeightForWidth() ) ); + listSensors->setMinimumSize( TQSize( 160, 0 ) ); + listSensors->setMaximumSize( TQSize( 160, 32767 ) ); + listSensors->setFrameShape( TQListBox::StyledPanel ); + listSensors->setFrameShadow( TQListBox::Sunken ); listSensors->setLineWidth( 2 ); - listSensors->setColumnMode( QListBox::FixedNumber ); + listSensors->setColumnMode( TQListBox::FixedNumber ); tabLayout->addWidget( listSensors ); - framePanelCfg = new QFrame( tab, "framePanelCfg" ); - framePanelCfg->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, framePanelCfg->sizePolicy().hasHeightForWidth() ) ); - framePanelCfg->setFrameShape( QFrame::NoFrame ); - framePanelCfg->setFrameShadow( QFrame::Raised ); - framePanelCfgLayout = new QVBoxLayout( framePanelCfg, 0, 4, "framePanelCfgLayout"); + framePanelCfg = new TQFrame( tab, "framePanelCfg" ); + framePanelCfg->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, framePanelCfg->sizePolicy().hasHeightForWidth() ) ); + framePanelCfg->setFrameShape( TQFrame::NoFrame ); + framePanelCfg->setFrameShadow( TQFrame::Raised ); + framePanelCfgLayout = new TQVBoxLayout( framePanelCfg, 0, 4, "framePanelCfgLayout"); - GroupBox13 = new QGroupBox( framePanelCfg, "GroupBox13" ); - GroupBox13->setMinimumSize( QSize( 0, 50 ) ); - GroupBox13->setMaximumSize( QSize( 32767, 50 ) ); - GroupBox13->setColumnLayout(0, Qt::Vertical ); + GroupBox13 = new TQGroupBox( framePanelCfg, "GroupBox13" ); + GroupBox13->setMinimumSize( TQSize( 0, 50 ) ); + GroupBox13->setMaximumSize( TQSize( 32767, 50 ) ); + GroupBox13->setColumnLayout(0, TQt::Vertical ); GroupBox13->layout()->setSpacing( 6 ); GroupBox13->layout()->setMargin( 11 ); - GroupBox13Layout = new QGridLayout( GroupBox13->layout() ); - GroupBox13Layout->setAlignment( Qt::AlignTop ); + GroupBox13Layout = new TQGridLayout( GroupBox13->layout() ); + GroupBox13Layout->setAlignment( TQt::AlignTop ); - checkShow = new QCheckBox( GroupBox13, "checkShow" ); - checkShow->setCursor( QCursor( 0 ) ); + checkShow = new TQCheckBox( GroupBox13, "checkShow" ); + checkShow->setCursor( TQCursor( 0 ) ); GroupBox13Layout->addWidget( checkShow, 0, 0 ); framePanelCfgLayout->addWidget( GroupBox13 ); - boxPanelPalette = new QGroupBox( framePanelCfg, "boxPanelPalette" ); - boxPanelPalette->setMinimumSize( QSize( 0, 90 ) ); + boxPanelPalette = new TQGroupBox( framePanelCfg, "boxPanelPalette" ); + boxPanelPalette->setMinimumSize( TQSize( 0, 90 ) ); 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 ); tabLayout->addWidget( framePanelCfg ); - TabWidget->insertTab( tab, QString("") ); + TabWidget->insertTab( tab, TQString("") ); - tab_2 = new QWidget( TabWidget, "tab_2" ); - tabLayout_2 = new QVBoxLayout( tab_2, 11, 6, "tabLayout_2"); + tab_2 = new TQWidget( TabWidget, "tab_2" ); + tabLayout_2 = new TQVBoxLayout( tab_2, 11, 6, "tabLayout_2"); - GroupBox7 = new QGroupBox( tab_2, "GroupBox7" ); - GroupBox7->setMinimumSize( QSize( 0, 0 ) ); - GroupBox7->setColumnLayout(0, Qt::Vertical ); + GroupBox7 = new TQGroupBox( tab_2, "GroupBox7" ); + GroupBox7->setMinimumSize( TQSize( 0, 0 ) ); + GroupBox7->setColumnLayout(0, TQt::Vertical ); GroupBox7->layout()->setSpacing( 12 ); GroupBox7->layout()->setMargin( 12 ); - GroupBox7Layout = new QHBoxLayout( GroupBox7->layout() ); - GroupBox7Layout->setAlignment( Qt::AlignTop ); + GroupBox7Layout = new TQHBoxLayout( GroupBox7->layout() ); + GroupBox7Layout->setAlignment( TQt::AlignTop ); - SpinUpdateTime = new QSpinBox( GroupBox7, "SpinUpdateTime" ); + SpinUpdateTime = new TQSpinBox( GroupBox7, "SpinUpdateTime" ); SpinUpdateTime->setMinValue( 1 ); SpinUpdateTime->setValue( 5 ); GroupBox7Layout->addWidget( SpinUpdateTime ); - SliderUpdateTime = new QSlider( GroupBox7, "SliderUpdateTime" ); + SliderUpdateTime = new TQSlider( GroupBox7, "SliderUpdateTime" ); SliderUpdateTime->setMaxValue( 60 ); SliderUpdateTime->setValue( 5 ); - SliderUpdateTime->setOrientation( QSlider::Horizontal ); - SliderUpdateTime->setTickmarks( QSlider::Right ); + SliderUpdateTime->setOrientation( TQSlider::Horizontal ); + SliderUpdateTime->setTickmarks( TQSlider::Right ); SliderUpdateTime->setTickInterval( 1 ); GroupBox7Layout->addWidget( SliderUpdateTime ); 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 ); - TabWidget->insertTab( tab_2, QString("") ); + TabWidget->insertTab( tab_2, TQString("") ); SystemCfgDesignLayout->addWidget( TabWidget, 0, 0 ); languageChange(); - resize( QSize(334, 240).expandedTo(minimumSizeHint()) ); + resize( TQSize(334, 240).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections @@ -121,7 +121,7 @@ SystemCfgDesign::SystemCfgDesign( QWidget* parent, const char* name, WFlags fl ) */ 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() { setCaption( tr2i18n( "SystemCfgDesign" ) ); - GroupBox13->setTitle( QString::null ); + GroupBox13->setTitle( TQString::null ); checkShow->setText( tr2i18n( "Visible" ) ); boxPanelPalette->setTitle( tr2i18n( "Colors" ) ); TabWidget->changeTab( tab, tr2i18n( "System Panels" ) ); diff --git a/src/systemcfgdesign.h b/src/systemcfgdesign.h index 07c776e..5993305 100644 --- a/src/systemcfgdesign.h +++ b/src/systemcfgdesign.h @@ -10,51 +10,51 @@ #ifndef SYSTEMCFGDESIGN_H #define SYSTEMCFGDESIGN_H -#include -#include +#include +#include -class QVBoxLayout; -class QHBoxLayout; -class QGridLayout; -class QSpacerItem; -class QTabWidget; -class QListBox; -class QListBoxItem; -class QFrame; -class QGroupBox; -class QCheckBox; -class QSpinBox; -class QSlider; +class TQVBoxLayout; +class TQHBoxLayout; +class TQGridLayout; +class TQSpacerItem; +class TQTabWidget; +class TQListBox; +class TQListBoxItem; +class TQFrame; +class TQGroupBox; +class TQCheckBox; +class TQSpinBox; +class TQSlider; -class SystemCfgDesign : public QWidget +class SystemCfgDesign : public TQWidget { Q_OBJECT public: - SystemCfgDesign( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + SystemCfgDesign( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~SystemCfgDesign(); - QTabWidget* TabWidget; - QWidget* tab; - QListBox* listSensors; - QFrame* framePanelCfg; - QGroupBox* GroupBox13; - QCheckBox* checkShow; - QGroupBox* boxPanelPalette; - QWidget* tab_2; - QGroupBox* GroupBox7; - QSpinBox* SpinUpdateTime; - QSlider* SliderUpdateTime; + TQTabWidget* TabWidget; + TQWidget* tab; + TQListBox* listSensors; + TQFrame* framePanelCfg; + TQGroupBox* GroupBox13; + TQCheckBox* checkShow; + TQGroupBox* boxPanelPalette; + TQWidget* tab_2; + TQGroupBox* GroupBox7; + TQSpinBox* SpinUpdateTime; + TQSlider* SliderUpdateTime; protected: - QGridLayout* SystemCfgDesignLayout; - QHBoxLayout* tabLayout; - QVBoxLayout* framePanelCfgLayout; - QSpacerItem* Spacer4_2; - QGridLayout* GroupBox13Layout; - QVBoxLayout* tabLayout_2; - QSpacerItem* Spacer18; - QHBoxLayout* GroupBox7Layout; + TQGridLayout* SystemCfgDesignLayout; + TQHBoxLayout* tabLayout; + TQVBoxLayout* framePanelCfgLayout; + TQSpacerItem* Spacer4_2; + TQGridLayout* GroupBox13Layout; + TQVBoxLayout* tabLayout_2; + TQSpacerItem* Spacer18; + TQHBoxLayout* GroupBox7Layout; protected slots: virtual void languageChange(); diff --git a/src/systemcfgdesign.ui b/src/systemcfgdesign.ui index 3fe1e3a..b491a71 100644 --- a/src/systemcfgdesign.ui +++ b/src/systemcfgdesign.ui @@ -1,6 +1,6 @@ SystemCfgDesign - + SystemCfgDesign @@ -29,7 +29,7 @@ 4 - + TabWidget @@ -37,7 +37,7 @@ - + tab @@ -54,7 +54,7 @@ 8 - + listSensors @@ -91,7 +91,7 @@ FixedNumber - + framePanelCfg @@ -123,7 +123,7 @@ 4 - + GroupBox13 @@ -146,7 +146,7 @@ unnamed - + checkShow @@ -161,7 +161,7 @@ - + boxPanelPalette @@ -196,7 +196,7 @@ - + tab @@ -213,7 +213,7 @@ 6 - + GroupBox7 @@ -240,7 +240,7 @@ 12 - + SpinUpdateTime @@ -254,7 +254,7 @@ 5 - + SliderUpdateTime diff --git a/src/uptimepanel.cpp b/src/uptimepanel.cpp index 6852ff4..36a1f54 100644 --- a/src/uptimepanel.cpp +++ b/src/uptimepanel.cpp @@ -19,14 +19,14 @@ #include "procinfo.h" #include "qlcddraw.h" -#include -#include +#include +#include -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->setShadow(true); lcd->setForeColor(red); @@ -46,13 +46,13 @@ void UpTimePanel::updateInfo() int hours = uptime/ (60*60); int minutes= (uptime % (60*60)) / 60; - QString str; + TQString str; str.sprintf("%02d:%02d",hours,minutes); lcd->display(str); update(); } -void UpTimePanel::drawContents(QPainter *p) +void UpTimePanel::drawContents(TQPainter *p) { int w= width(); int h= height(); @@ -60,11 +60,11 @@ void UpTimePanel::drawContents(QPainter *p) int i2= (h * 4) / 5; int th= h-i2-h/11; - QLcd::draw(p, 2,h/10,w-4,th,"hh:mm",QLcd::alignCenter, &getColorTitle()); - QLcd::draw(p, 2,i2+1,w-4,th,"Up Time",QLcd::alignCenter,&getColorTitle()); + TQLcd::draw(p, 2,h/10,w-4,th,"hh:mm",TQLcd::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 h= height(); diff --git a/src/uptimepanel.h b/src/uptimepanel.h index b990312..b00cc0d 100644 --- a/src/uptimepanel.h +++ b/src/uptimepanel.h @@ -21,7 +21,7 @@ #include "panel.h" #include "qlcdstring.h" -#include +#include /** *@author Miguel Novas @@ -30,18 +30,18 @@ class UpTimePanel : public Panel { Q_OBJECT public: - UpTimePanel(QWidget *parent=0, const char *name=0); + UpTimePanel(TQWidget *parent=0, const char *name=0); ~UpTimePanel(); protected: void updateInfo(); - void drawContents ( QPainter *p ); + void drawContents ( TQPainter *p ); private: - QLCDString *lcd; - void resizeEvent ( QResizeEvent *e ); + TQLCDString *lcd; + void resizeEvent ( TQResizeEvent *e ); }; #endif