Convert to TDE R14 API

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

@ -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 <aurel32@debian.org>)
* Updated code for using new version of hddtemp (v0.3b) (patch from Aurelien Jarno <aurel32@debian.org>)

@ -4,7 +4,7 @@ KSensors (ksensors.sourceforge.net) michaell@teleline.es
Allgemeine Informationen
------------------------
Dies ist ein lmsensors Frontend, Sie müssen zuerst die lmsensors Treiber
Dies ist ein lmsensors Frontend, Sie müssen zuerst die lmsensors Treiber
installieren, um es zu benutzen (http://www.netroedge.com/~lm78/):
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 für Ihr Motherboard installieren müssen.
es listet die Module auf, die Sie für Ihr Motherboard installieren müssen.
Diese Software wurde nur auf meinem Motherboard (PII866 Asus CUBX-L)
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 standardmäßig in /usr/local/kde installiert.
Dieses Programm wird standardmäßig in /usr/local/kde installiert.
In den neuesten Distributionen (Debian woody, Mandrake, usw.)
liegt das KDE Verzeichnis in /usr. In diesem Fall müssen Sie das
liegt das KDE Verzeichnis in /usr. In diesem Fall müssen Sie das
Verzeichnis mit dem --prefix Argument konfigurieren.
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,
Rückmeldungen zu geben usw.
Rückmeldungen zu geben usw.
-------------------------
ksensors.sourceforge.net

@ -2,7 +2,7 @@
KSensors (ksensors.sourceforge.net) michaell@teleline.es
==================================================================
Information Générales
Information Générales
---------------------
Ce programme est un front-end pour lmsensors, vous devez installer les drivers
@ -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-mère.
votre carte-mère.
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.
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 température des disques durs
NOUVEAU : Surveillance de la température des disques durs
---------------------------------------------------------
KSensors peut maintenant afficher les températures de vos disques durs
(uniquement les disques durs récents).
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 télécharger 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 créer un trou de sécurité.
ATTENTION: Activer un bit SUID peut créer un trou de sécurité.
Compilation et installation de KSensors avec KDE 3.x
@ -44,10 +44,10 @@ cd ksensors-0.7.3
make
make install
* Remplacez /opt/kde3 et /usr/lib/qt3 par vos répertoires KDE3 et QT3.
* Remplacez /opt/kde3 et /usr/lib/qt3 par vos répertoires KDE3 et QT3.
Comment désinstaller
Comment désinstaller
--------------------
cd ksensors-0.7.3
make uninstall
@ -55,7 +55,7 @@ make uninstall
Contact
-------
Contactez moi (en anglais ou en espagnol) si vous avez des problèmes pour
Contactez moi (en anglais ou en espagnol) si vous avez des problèmes pour
executer ce programme ou pour m'indiquer des bugs, pour me poser des
questions, faire des demandes, etc.

@ -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 <<EOF
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <ntqglobal.h>
#include <ntqapplication.h>
EOF
if test "$kde_qtver" = "2"; then
cat >> conftest.$ac_ext <<EOF
#include <qevent.h>
#include <qstring.h>
#include <qstyle.h>
#include <ntqevent.h>
#include <ntqstring.h>
#include <ntqstyle.h>
EOF
if test $kde_qtsubver -gt 0; then
cat >> conftest.$ac_ext <<EOF
#if QT_VERSION < 210
#if TQT_VERSION < 210
#error 1
#endif
EOF
@ -1053,8 +1053,8 @@ fi
if test "$kde_qtver" = "3"; then
cat >> conftest.$ac_ext <<EOF
#include <qcursor.h>
#include <qstylefactory.h>
#include <ntqcursor.h>
#include <ntqstylefactory.h>
#include <private/qucomextra_p.h>
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 <qdom.h>
#include <ntqdom.h>
],
[
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 <qapplication.h>],
[#include <ntqapplication.h>],
[
int argc;
char** argv;
@ -4358,7 +4358,7 @@ CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
AC_TRY_RUN(dnl
[
#include <qimageio.h>
#include <qstring.h>
#include <ntqstring.h>
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)

46
aclocal.m4 vendored

@ -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 <<EOF
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <ntqglobal.h>
#include <ntqapplication.h>
EOF
if test "$kde_qtver" = "2"; then
cat >> conftest.$ac_ext <<EOF
#include <qevent.h>
#include <qstring.h>
#include <qstyle.h>
#include <ntqevent.h>
#include <ntqstring.h>
#include <ntqstyle.h>
EOF
if test $kde_qtsubver -gt 0; then
cat >> conftest.$ac_ext <<EOF
#if QT_VERSION < 210
#if TQT_VERSION < 210
#error 1
#endif
EOF
@ -1065,8 +1065,8 @@ fi
if test "$kde_qtver" = "3"; then
cat >> conftest.$ac_ext <<EOF
#include <qcursor.h>
#include <qstylefactory.h>
#include <ntqcursor.h>
#include <ntqstylefactory.h>
#include <private/qucomextra_p.h>
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 <qdom.h>
#include <ntqdom.h>
],
[
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 <qapplication.h>],
[#include <ntqapplication.h>],
[
int argc;
char** argv;
@ -4370,7 +4370,7 @@ CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
AC_TRY_RUN(dnl
[
#include <qimageio.h>
#include <qstring.h>
#include <ntqstring.h>
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)

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

Binary file not shown.

@ -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

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

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

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

@ -42,8 +42,8 @@ ksensors_SOURCES = main.cpp ksensors.cpp aboutcfgdesign.ui \
rampanel.cpp sensor.cpp sensorslist.cpp \
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

@ -1,4 +1,4 @@
#include <klocale.h>
#include <tdelocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './aboutcfgdesign.ui'
**
@ -10,19 +10,19 @@
#include "aboutcfgdesign.h"
#include <qvariant.h>
#include <ntqvariant.h>
#include <kcolorbutton.h>
#include <qframe.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
#include <ntqframe.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>
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
}
/*

@ -10,45 +10,45 @@
#ifndef ABOUTCFGDESIGN_H
#define ABOUTCFGDESIGN_H
#include <qvariant.h>
#include <qpixmap.h>
#include <qwidget.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QFrame;
class QLabel;
class AboutCfgDesign : public QWidget
#include <ntqvariant.h>
#include <ntqpixmap.h>
#include <ntqwidget.h>
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;
};

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

@ -18,13 +18,13 @@
#include "cpupanel.h"
#include "qlcddraw.h"
#include <qcolor.h>
#include <qpainter.h>
#include <qlcdnumber.h>
#include <ntqcolor.h>
#include <ntqpainter.h>
#include <ntqlcdnumber.h>
#include <string.h>
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();

@ -20,7 +20,7 @@
#include "panel.h"
#include <qlcdnumber.h>
#include <ntqlcdnumber.h>
#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

@ -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();

@ -18,7 +18,7 @@
#ifndef CPUTIMEPANEL_H
#define CPUTIMEPANEL_H
#include <qpainter.h>
#include <ntqpainter.h>
#include <panel.h>
#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

@ -17,25 +17,25 @@
#include "generalcfg.h"
#include <qgroupbox.h>
#include <qlayout.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
#include <qcheckbox.h>
#include <ntqgroupbox.h>
#include <ntqlayout.h>
#include <ntqpushbutton.h>
#include <ntqradiobutton.h>
#include <ntqcheckbox.h>
#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());

@ -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:

@ -1,4 +1,4 @@
#include <klocale.h>
#include <tdelocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './generalcfgdesign.ui'
**
@ -10,69 +10,69 @@
#include "generalcfgdesign.h"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qbuttongroup.h>
#include <qradiobutton.h>
#include <qgroupbox.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqgroupbox.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
/*
* 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
}
/*

@ -10,39 +10,39 @@
#ifndef GENERALCFGDESIGN_H
#define GENERALCFGDESIGN_H
#include <qvariant.h>
#include <qwidget.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QButtonGroup;
class QRadioButton;
class QGroupBox;
class QCheckBox;
class GeneralCfgDesign : public QWidget
#include <ntqvariant.h>
#include <ntqwidget.h>
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();

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

@ -21,19 +21,19 @@
#include <dirent.h>
#include <sys/types.h>
#include <stdlib.h>
#include <qstringlist.h>
#include <klocale.h>
#include <qregexp.h>
#include <ntqstringlist.h>
#include <tdelocale.h>
#include <ntqregexp.h>
#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') {

@ -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

@ -15,7 +15,7 @@
* *
***************************************************************************/
#include <klocale.h>
#include <tdelocale.h>
#include "i8ksensorslist.h"
@ -24,9 +24,9 @@
I8KSensorsList::I8KSensorsList(QObject *parent, const char *name): SensorsList(parent,name)
I8KSensorsList::I8KSensorsList(TQObject *parent, const char *name): SensorsList(parent,name)
{
setDescription(QString(i18n("MainBoard")) );
setDescription(TQString(i18n("MainBoard")) );
setClass(Sensor::lmSensor);
@ -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);

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

@ -19,11 +19,11 @@
InfoPanels::InfoPanels(QWidget *panelsWidget, QObject *parent, const char *name): PanelsGroup(widget,parent,name)
InfoPanels::InfoPanels(TQWidget *panelsWidget, TQObject *parent, const char *name): PanelsGroup(widget,parent,name)
{
widget= panelsWidget;
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()

@ -18,8 +18,8 @@
#ifndef INFOPANELS_H
#define INFOPANELS_H
#include <qtimer.h>
#include <kglobal.h>
#include <ntqtimer.h>
#include <tdeglobal.h>
#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);

@ -4,18 +4,18 @@
#include "ksensors.h"
#include <qlabel.h>
#include <ntqlabel.h>
#include <kmainwindow.h>
#include <klocale.h>
#include <tdemainwindow.h>
#include <tdelocale.h>
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()

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

@ -17,18 +17,18 @@
#include "ksensorscfg.h"
#include <qvariant.h>
#include <qframe.h>
#include <qlayout.h>
#include <qlabel.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
#include <ntqvariant.h>
#include <ntqframe.h>
#include <ntqlayout.h>
#include <ntqlabel.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>
#include <kiconloader.h>
#include <klocale.h>
#include <kaboutdata.h>
#include <tdelocale.h>
#include <tdeaboutdata.h>
#include <kdialogbase.h>
#include <kuniqueapp.h>
@ -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()) );

@ -18,15 +18,15 @@
#ifndef KSENSORSCFG_H
#define KSENSORSCFG_H
#include <qwidget.h>
#include <ntqwidget.h>
#include <kdialogbase.h>
//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

@ -20,14 +20,14 @@
#include <kapp.h>
#include <kstandarddirs.h>
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();
}

@ -18,24 +18,24 @@
#ifndef KSENSORSSPLASH_H
#define KSENSORSSPLASH_H
#include <qwidget.h>
//#include <qwidget.h>
#include <ntqwidget.h>
//#include <ntqwidget.h>
/**
*@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

@ -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;
}

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

@ -16,11 +16,11 @@
***************************************************************************/
#include <qpixmap.h>
#include <ntqpixmap.h>
#include <kstddirs.h>
#include <klocale.h>
#include <kconfig.h>
#include <tdelocale.h>
#include <tdeconfig.h>
#include <kiconloader.h>
#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);
}

@ -20,8 +20,8 @@
#include <ksystemtray.h>
#include <kpopupmenu.h>
#include <qcolor.h>
#include <tdepopupmenu.h>
#include <ntqcolor.h>
#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;
};

@ -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());

@ -18,7 +18,7 @@
#ifndef LMSENSORPANEL_H
#define LMSENSORPANEL_H
#include <qstring.h>
#include <ntqstring.h>
#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;
};

@ -21,8 +21,8 @@
#include <string.h>
#include <sys/stat.h>
#include <qstrlist.h>
#include <qobjectlist.h>
#include <ntqstrlist.h>
#include <ntqobjectlist.h>
#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 *)));

@ -18,10 +18,10 @@
#ifndef LMSENSORS_H
#define LMSENSORS_H
#include <qobject.h>
#include <qobjectlist.h>
#include <kconfig.h>
#include <qstringlist.h>
#include <ntqobject.h>
#include <ntqobjectlist.h>
#include <tdeconfig.h>
#include <ntqstringlist.h>
#include <sensors/sensors.h>
@ -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);

@ -18,8 +18,8 @@
#include <stdlib.h>
#include <qstring.h>
#include <kglobal.h>
#include <ntqstring.h>
#include <tdeglobal.h>
#include <kprocess.h>
#include <kaudioplayer.h>
#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);
}

@ -18,29 +18,29 @@
#ifndef LMSENSORSALARMS_H
#define LMSENSORSALARMS_H
#include <qobject.h>
#include <qstring.h>
#include <ntqobject.h>
#include <ntqstring.h>
#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

@ -22,40 +22,40 @@
#include "lmsensordockpanel.h"
#include "lmsensorswidget.h"
#include <qcolor.h>
#include <qlistbox.h>
#include <qlineedit.h>
#include <qcheckbox.h>
#include <qgroupbox.h>
#include <qradiobutton.h>
#include <qpushbutton.h>
#include <qobjectlist.h>
#include <qtabwidget.h>
#include <qcombobox.h>
#include <qspinbox.h>
#include <qlayout.h>
#include <ntqcolor.h>
#include <ntqlistbox.h>
#include <ntqlineedit.h>
#include <ntqcheckbox.h>
#include <ntqgroupbox.h>
#include <ntqradiobutton.h>
#include <ntqpushbutton.h>
#include <ntqobjectlist.h>
#include <ntqtabwidget.h>
#include <ntqcombobox.h>
#include <ntqspinbox.h>
#include <ntqlayout.h>
#include <kcolorbutton.h>
#include <kiconloader.h>
#include <klocale.h>
#include <kaboutapplication.h>
#include <tdelocale.h>
#include <tdeaboutapplication.h>
LMSensorsCfg::LMSensorsCfg(SensorsList *lsensors,QWidget *parent, const char *name) : LMSensorsCfgDesign(parent,name,WDestructiveClose)
LMSensorsCfg::LMSensorsCfg(SensorsList *lsensors,TQWidget *parent, const char *name) : LMSensorsCfgDesign(parent,name,WDestructiveClose)
{
sensors = lsensors;
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();

@ -18,7 +18,7 @@
#ifndef LMSENSORSCFG_H
#define LMSENSORSCFG_H
//#include <qobject.h>
//#include <ntqobject.h>
#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:

@ -1,4 +1,4 @@
#include <klocale.h>
#include <tdelocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './lmsensorscfgdesign.ui'
**
@ -10,71 +10,71 @@
#include "lmsensorscfgdesign.h"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qtabwidget.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qcombobox.h>
#include <qcheckbox.h>
#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>
#include <ntqcombobox.h>
#include <ntqcheckbox.h>
#include <kcolorbutton.h>
#include <qframe.h>
#include <qradiobutton.h>
#include <qlistbox.h>
#include <qbuttongroup.h>
#include <qspinbox.h>
#include <qslider.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <ntqframe.h>
#include <ntqradiobutton.h>
#include <ntqlistbox.h>
#include <ntqbuttongroup.h>
#include <ntqspinbox.h>
#include <ntqslider.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
/*
* 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:" ) );

@ -10,121 +10,121 @@
#ifndef LMSENSORSCFGDESIGN_H
#define LMSENSORSCFGDESIGN_H
#include <qvariant.h>
#include <qwidget.h>
#include <ntqvariant.h>
#include <ntqwidget.h>
#include <kcolorbutton.h>
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();

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

@ -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())

@ -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:

@ -17,16 +17,16 @@
#include "lmsensorsdock.h"
#include <qobjectlist.h>
#include <klocale.h>
#include <ntqobjectlist.h>
#include <tdelocale.h>
#include <kiconloader.h>
#include <kapp.h>
#include <kaboutapplication.h>
#include <tdeaboutapplication.h>
#include <kwin.h>
#include <twin.h>
#include <netwm.h>
LMSensorsDock::LMSensorsDock(bool fNoDock, QObject *parent, const char *name): QObject(parent,name)
LMSensorsDock::LMSensorsDock(bool fNoDock, TQObject *parent, const char *name): TQObject(parent,name)
{
noDock= fNoDock;
@ -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;
}

@ -24,11 +24,11 @@
#endif
#include <qobject.h>
#include <qguardedptr.h>
#include <ntqobject.h>
#include <ntqguardedptr.h>
#include <kconfig.h>
#include <kpopupmenu.h>
#include <tdeconfig.h>
#include <tdepopupmenu.h>
#include <kdialogbase.h>
#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<KSensorsCfg> sensorsCfg;
QGuardedPtr<LMSensorsWidget> sensorsWidget;
QGuardedPtr<LMSensorsAlarms> sensorsAlarm;
TQGuardedPtr<KSensorsCfg> sensorsCfg;
TQGuardedPtr<LMSensorsWidget> sensorsWidget;
TQGuardedPtr<LMSensorsAlarms> sensorsAlarm;
KPopupMenu *menu;
TDEPopupMenu *menu;
void createMenu();
void createWidgets();

@ -15,10 +15,10 @@
* *
***************************************************************************/
#include <qobject.h>
#include <qobjectlist.h>
#include <qpixmap.h>
#include <qtimer.h>
#include <ntqobject.h>
#include <ntqobjectlist.h>
#include <ntqpixmap.h>
#include <ntqtimer.h>
#include <kiconloader.h>
#include <kstddirs.h>
@ -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 *************************************

@ -18,8 +18,8 @@
#ifndef LMSENSORSWIDGET_H
#define LMSENSORSWIDGET_H
#include <qwidget.h>
#include <qpixmap.h>
#include <ntqwidget.h>
#include <ntqpixmap.h>
#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 *);
};

@ -15,9 +15,9 @@
* *
***************************************************************************/
#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <klocale.h>
#include <tdecmdlineargs.h>
#include <tdeaboutdata.h>
#include <tdelocale.h>
#include <kuniqueapp.h>
#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();
}

@ -18,17 +18,17 @@
#include "palettecfg.h"
#include "lmsensorswidget.h"
#include <qlabel.h>
#include <qpalette.h>
#include <qcombobox.h>
#include <ntqlabel.h>
#include <ntqpalette.h>
#include <ntqcombobox.h>
#include <kcolorbutton.h>
PaletteCfg::PaletteCfg(QWidget *parent, const char *name): PaletteCfgDesign(parent,name)
PaletteCfg::PaletteCfg(TQWidget *parent, const char *name): PaletteCfgDesign(parent,name)
{
groupName= 0;
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);

@ -20,7 +20,7 @@
#include <palettecfgdesign.h>
#include <kconfig.h>
#include <tdeconfig.h>
/**
*@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

@ -1,4 +1,4 @@
#include <klocale.h>
#include <tdelocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './palettecfgdesign.ui'
**
@ -10,117 +10,117 @@
#include "palettecfgdesign.h"
#include <qvariant.h>
#include <qframe.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qcombobox.h>
#include <ntqvariant.h>
#include <ntqframe.h>
#include <ntqlabel.h>
#include <ntqpushbutton.h>
#include <ntqcombobox.h>
#include <kcolorbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
/*
* 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"

@ -10,37 +10,37 @@
#ifndef PALETTECFGDESIGN_H
#define PALETTECFGDESIGN_H
#include <qvariant.h>
#include <qwidget.h>
#include <ntqvariant.h>
#include <ntqwidget.h>
#include <kcolorbutton.h>
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();

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

@ -17,11 +17,11 @@
#include "panel.h"
#include <kglobal.h>
#include <tdeglobal.h>
Panel::Panel(QWidget *parent, const char *name) : QFrame(parent,name)
Panel::Panel(TQWidget *parent, const char *name) : TQFrame(parent,name)
{
setFrameStyle(QFrame::Panel|QFrame::Raised);
setFrameStyle(TQFrame::Panel|TQFrame::Raised);
resize(64,64);
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);
}

@ -18,23 +18,23 @@
#ifndef PANEL_H
#define PANEL_H
#include <qframe.h>
#include <kconfig.h>
#include <qpalette.h>
#include <ntqframe.h>
#include <tdeconfig.h>
#include <ntqpalette.h>
/**
*@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

@ -18,18 +18,18 @@
#ifndef PANELSGROUP_H
#define PANELSGROUP_H
#include <qobject.h>
#include <ntqobject.h>
#include <panel.h>
/**
*@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() {};

@ -18,11 +18,11 @@
#include <string.h>
#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);

@ -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;
};

@ -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<count; i++) {
int v= (int) ( ((double)steps * val[i]) / valMax +0.5);

@ -15,49 +15,49 @@
* *
***************************************************************************/
#ifndef QBARMETER_H
#define QBARMETER_H
#ifndef TQBARMETER_H
#define TQBARMETER_H
#include <qpainter.h>
#include <qwidget.h>
#include <qcolor.h>
#include <ntqpainter.h>
#include <ntqwidget.h>
#include <ntqcolor.h>
/**
*@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

@ -18,16 +18,16 @@
#include "qdialarc.h"
#include <qpainter.h>
#include <ntqpainter.h>
#include <math.h>
#include <stdlib.h>
#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(value<valMin) value= valMin;
if(val!=value) {
QPainter p(this);
TQPainter p(this);
p.setPen(backgroundColor());
drawArrow(&p,val);
val= value;
@ -63,21 +63,21 @@ void QDialArc::setValue(double value)
}
void QDialArc::setValueMin(double value)
void TQDialArc::setValueMin(double value)
{
valMin= value;
paramsChanged();
}
void QDialArc::setValueMax(double value)
void TQDialArc::setValueMax(double value)
{
valMax= value;
paramsChanged();
}
void QDialArc::setValueRanges(double min,double max)
void TQDialArc::setValueRanges(double min,double max)
{
valMin= min;
valMax= max;
@ -85,53 +85,53 @@ void QDialArc::setValueRanges(double min,double max)
}
void QDialArc::setValueLimitRanges (double min,double max)
void TQDialArc::setValueLimitRanges (double min,double max)
{
valMinLimit= min;
valMaxLimit= max;
update();
}
void QDialArc::setAngle(int value)
void TQDialArc::setAngle(int value)
{
angleStart= value*16;
paramsChanged();
}
void QDialArc::setAngleLen(int value)
void TQDialArc::setAngleLen(int value)
{
angleLen= value*16;
paramsChanged();
}
void QDialArc::setAngles(int angle,int len)
void TQDialArc::setAngles(int angle,int len)
{
angleStart= angle*16;
angleLen = len*16;
paramsChanged();
}
void QDialArc::setColorMin(const QColor &color)
void TQDialArc::setColorMin(const TQColor &color)
{
colorMin= color;
update();
}
void QDialArc::setColorMid(const QColor &color)
void TQDialArc::setColorMid(const TQColor &color)
{
colorMid= color;
update();
}
void QDialArc::setColorMax(const QColor &color)
void TQDialArc::setColorMax(const TQColor &color)
{
colorMax= color;
update();
}
void QDialArc::setColorRanges(const QColor &min,const QColor &mid,const QColor &max)
void TQDialArc::setColorRanges(const TQColor &min,const TQColor &mid,const TQColor &max)
{
colorMin= min;
colorMid= mid;
@ -139,40 +139,40 @@ void QDialArc::setColorRanges(const QColor &min,const QColor &mid,const QColor &
update();
}
void QDialArc::setValueMinLimit(double value, int percent)
void TQDialArc::setValueMinLimit(double value, int percent)
{
valMinLimit= value;
valMinLimitPercent= percent;
update();
}
void QDialArc::setValueMaxLimit(double value, int percent)
void TQDialArc::setValueMaxLimit(double value, int percent)
{
valMaxLimit= value;
valMaxLimitPercent= percent;
update();
}
void QDialArc::setValueMinLimitPercent(int value)
void TQDialArc::setValueMinLimitPercent(int value)
{
valMinLimitPercent=value;
update();
}
void QDialArc::setValueMaxLimitPercent(int value)
void TQDialArc::setValueMaxLimitPercent(int value)
{
valMaxLimitPercent=value;
update();
}
void QDialArc::setShowMarks (bool flag)
void TQDialArc::setShowMarks (bool flag)
{
fShowMarks= flag;
update();
}
void QDialArc::setArrowColor(const QColor &color)
void TQDialArc::setArrowColor(const TQColor &color)
{
arrowColor= color;
}
@ -180,7 +180,7 @@ void QDialArc::setArrowColor(const QColor &color)
//*****************************************************************
void QDialArc::resizeEvent( QResizeEvent *)
void TQDialArc::resizeEvent( TQResizeEvent *)
{
paramsChanged();
}
@ -188,7 +188,7 @@ void QDialArc::resizeEvent( QResizeEvent *)
//*****************************************************************
void QDialArc::drawMarks(QPainter *p,int l1,int l2)
void TQDialArc::drawMarks(TQPainter *p,int l1,int l2)
{
int a;
double r,co,se;
@ -211,7 +211,7 @@ double r,co,se;
}
void QDialArc::drawArc(QPainter *p,int l1,int l2,const QColor &color)
void TQDialArc::drawArc(TQPainter *p,int l1,int l2,const TQColor &color)
{
p->setPen(color);
p->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();

@ -15,20 +15,20 @@
* *
***************************************************************************/
#ifndef QDIALARC_H
#define QDIALARC_H
#ifndef TQDIALARC_H
#define TQDIALARC_H
#include <qwidget.h>
#include <ntqwidget.h>
/**
*@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

@ -16,14 +16,14 @@
***************************************************************************/
#ifndef QLCDDRAW_H
#define QLCDDRAW_H
#ifndef TQLCDDRAW_H
#define TQLCDDRAW_H
#include <qpainter.h>
#include <qcolor.h>
#include <ntqpainter.h>
#include <ntqcolor.h>
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);
};

@ -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;

@ -18,91 +18,91 @@
#include "qlcdstring.h"
#include <qpalette.h>
#include <ntqpalette.h>
QLCDString::QLCDString( QWidget *parent, const char *name ): QWidget( parent, name )
TQLCDString::TQLCDString( TQWidget *parent, const char *name ): TQWidget( parent, name )
{
digitStr= "";
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);
}

@ -15,13 +15,13 @@
* *
***************************************************************************/
#ifndef QLCDSTRING_H
#define QLCDSTRING_H
#ifndef TQLCDSTRING_H
#define TQLCDSTRING_H
#include <qframe.h>
#include <qpainter.h>
#include <qcolor.h>
#include <qstring.h>
#include <ntqframe.h>
#include <ntqpainter.h>
#include <ntqcolor.h>
#include <ntqstring.h>
#include "qlcddraw.h"
@ -29,9 +29,9 @@
*@author Miguel Novas
*/
#include <qpalette.h>
#include <ntqpalette.h>
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

@ -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();

@ -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

@ -15,14 +15,14 @@
* *
***************************************************************************/
#include <kglobal.h>
#include <tdeglobal.h>
#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);

@ -18,10 +18,10 @@
#ifndef SENSOR_H
#define SENSOR_H
#include <qobject.h>
#include <kconfig.h>
#include <qstring.h>
#include <qcstring.h>
#include <ntqobject.h>
#include <tdeconfig.h>
#include <ntqstring.h>
#include <ntqcstring.h>
/**
*@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;

@ -17,10 +17,10 @@
#include "sensorslist.h"
#include <kglobal.h>
#include <tdeglobal.h>
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()));

@ -18,10 +18,10 @@
#ifndef SENSORSLIST_H
#define SENSORSLIST_H
#include <qobject.h>
#include <qobjectlist.h>
#include <kconfig.h>
#include <qstringlist.h>
#include <ntqobject.h>
#include <ntqobjectlist.h>
#include <tdeconfig.h>
#include <ntqstringlist.h>
#include <sensor.h>
@ -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

@ -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.

@ -15,32 +15,32 @@
* *
***************************************************************************/
#include <qlistbox.h>
#include <qspinbox.h>
#include <qpushbutton.h>
#include <qgroupbox.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtabwidget.h>
#include <klocale.h>
#include <ntqlistbox.h>
#include <ntqspinbox.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtabwidget.h>
#include <tdelocale.h>
#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())
{

@ -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();

@ -1,4 +1,4 @@
#include <klocale.h>
#include <tdelocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './systemcfgdesign.ui'
**
@ -10,105 +10,105 @@
#include "systemcfgdesign.h"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qtabwidget.h>
#include <qlistbox.h>
#include <qframe.h>
#include <qgroupbox.h>
#include <qcheckbox.h>
#include <qspinbox.h>
#include <qslider.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqlistbox.h>
#include <ntqframe.h>
#include <ntqgroupbox.h>
#include <ntqcheckbox.h>
#include <ntqspinbox.h>
#include <ntqslider.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
/*
* 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" ) );

@ -10,51 +10,51 @@
#ifndef SYSTEMCFGDESIGN_H
#define SYSTEMCFGDESIGN_H
#include <qvariant.h>
#include <qwidget.h>
#include <ntqvariant.h>
#include <ntqwidget.h>
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();

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

@ -19,14 +19,14 @@
#include "procinfo.h"
#include "qlcddraw.h"
#include <qcolor.h>
#include <qpainter.h>
#include <ntqcolor.h>
#include <ntqpainter.h>
UpTimePanel::UpTimePanel(QWidget *parent, const char *name) : Panel(parent,name)
UpTimePanel::UpTimePanel(TQWidget *parent, const char *name) : Panel(parent,name)
{
lcd= new QLCDString(this);
lcd= new TQLCDString(this);
lcd->setGeometry(6,25,52,15);
lcd->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();

@ -21,7 +21,7 @@
#include "panel.h"
#include "qlcdstring.h"
#include <qstring.h>
#include <ntqstring.h>
/**
*@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

Loading…
Cancel
Save