Initial import of ksensors 0.7.3 sources

pull/1/head
Timothy Pearson 11 years ago
commit 191c434271

@ -0,0 +1 @@
Miguel Novas <michaell@teleline.es>

@ -0,0 +1,340 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

@ -0,0 +1,143 @@
KSensors-0.7.3
--------------
* Fixed too much decimal digits in sensor values
* Fixed lock and 100% cpu usage when using hddtemp sensor
* Ported to kdevelop 3 project and improved config dialog appearance (by Thomas Nagy <>)
* Fix to support adm1025 chip (patch from Jose Luis Martin) <josel.m@terra.com>)
* CPU speed panel updated in realtime, usefull in mobile processors ( code from Stefan Gunkler <stegun@yahoo.com> )
* Added support for reading cpu temperature from /proc/acpi/thermal_zone/THRM/temperature
* Added a alarm sound (by Aurelien Jarno <aurel32@debian.org>)
* Fixed a crash when removing info panels (by Aurelien Jarno <aurel32@debian.org>)
* Correctly remove white space before processor information (by Aurelien Jarno <aurel32@debian.org>)
KSensors-0.7.2
--------------
* Fixed crash in kde 3.1 when docking sensors
* 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>)
* Restore ksensors main window in correct desktop number (patch from Aurelien Jarno <aurel32@debian.org>)
* Correctly save the configuration when exiting KDE (patch from Aurelien Jarno <aurel32@debian.org>)
* Added Autostart option in general configuration tab (patch from Aurelien Jarno <aurel32@debian.org>)
* Better panel dragging and main window position fix (patch from Terry Mohan <tmohan@users.sourceforge.net>)
KSensors-0.7.1
--------------
* Added support for Dell Inspiron and Latitude laptops SMM BIOS Fan/Temp sensors
(using i8k kernel module: http://www.debian.org/~dz/i8k/)
KSensors-0.7
-------------
* Allow docking fan and voltage sensors
* Configuration dialog redesign (more modular).
* Several panel sizes
* Fixed crash at startup in some kde binaries, fixed kcolorbutton compilation problem.
KSensors-0.6.1
--------------
* Bug Fix release:
Fixed a problem executing hddtemp to monitor harddisks temperatures.
(After 1000 executions KProcess object don't emit Exited signal and cpu usage jumps to 100%,
resolved creating and destroying kprocess every time is need)
KSensors-0.6
------------
* New Hardisks Temperatures sensor panels (need to install HDDtemp program: http://coredump.free.fr)
* Changed cpu state, swap and ram panels appearance
* Added splash screen (only on first execution or using --splash parameter).
* Added --nodock option (don't dock in KDE System tray, useful to execute ksensors without KDE environment).
* Configurable Panels colors
* Support for multiple lm-sensors chips.
* Fixed About Dialog problem in KDE 3.0 (dialog did not show).
* KSensors works in KDE 2.2.x and 3.0
KSensors-0.5
-------------------------
15/01/2001
* Now sensors panels blinks on alarm values.
14/01/2001
* Added Czech translation (thanks to Michal Cihar)
* Applied patch to procinfo.cpp (thanks to Aurelien Jarno), now works better the swap info panel ;)
13/01/2001
* Added Voltage Sensors panels
* Added Cpu state and Uptime panels
* Temperatures in celsius, farenheit or kelvin scales
* Configurable update intervals for sensors and system info panels
* English, spanish, french, german and dutch translations
* Configuration dialog redesign
* Dial arcs in clockwise direction.
KSensors-0.4
-------------------------
18/12/2001
Bug #492495 Fixed: no sensors listed when only one temp sensor exists.
17/12/2001
Added Swap Memory info panel.
16/12/2001
Added German translation (thanks to Michael v.Ostheim )
13/12/2001
Added French translation (thanks to Aurelien Jarno)
KSensors-0.3
-------------------------
04/12/2001
Added CPU Speed and Used memory info widgets.
Recoded QLCDString class.
KSensors-0.2
-------------------------
17/11/2001
Aesthetic changes in configuration widget.
Now works alarms configuration:
Run command or play sound when reached alarm value.
Possibility to pass $SENSOR_NAME and $SENSOR_VALUE environment variables
to the command, for example:
echo "Sensor: $SENSOR_NAME value: $SENSOR_VALUE warning." | mail admin@foo.com"
Possibility to adjust sensor value (Value= Value_Read * multiplier + addition )
14/11/2001
Changed configure dialog, new alarm configuration.
10/11/2001
Changed sensors reading method, now use libsensors instead of get
values directly from /proc/sys/dev/sensors/*
(Need install libsensors-devel to compile)
Added new Abstract class Display to allow easy programing diferent
widgets in main window.

@ -0,0 +1,248 @@
# Doxyfile 1.3.5-KDevelop
#---------------------------------------------------------------------------
# Project related configuration options
#---------------------------------------------------------------------------
PROJECT_NAME = ksensors.kdevelop
PROJECT_NUMBER = 0.7.3
OUTPUT_DIRECTORY =
OUTPUT_LANGUAGE = English
USE_WINDOWS_ENCODING = NO
BRIEF_MEMBER_DESC = YES
REPEAT_BRIEF = YES
ABBREVIATE_BRIEF = "The $name class" \
"The $name widget" \
"The $name file" \
is \
provides \
specifies \
contains \
represents \
a \
an \
the
ALWAYS_DETAILED_SEC = NO
INLINE_INHERITED_MEMB = NO
FULL_PATH_NAMES = NO
STRIP_FROM_PATH = /home/michael/develop/ksensors-0.7.3/
SHORT_NAMES = NO
JAVADOC_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
DETAILS_AT_TOP = NO
INHERIT_DOCS = YES
DISTRIBUTE_GROUP_DOC = NO
TAB_SIZE = 8
ALIASES =
OPTIMIZE_OUTPUT_FOR_C = NO
OPTIMIZE_OUTPUT_JAVA = NO
SUBGROUPING = YES
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
EXTRACT_ALL = NO
EXTRACT_PRIVATE = NO
EXTRACT_STATIC = NO
EXTRACT_LOCAL_CLASSES = YES
HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
HIDE_FRIEND_COMPOUNDS = NO
HIDE_IN_BODY_DOCS = NO
INTERNAL_DOCS = NO
CASE_SENSE_NAMES = YES
HIDE_SCOPE_NAMES = NO
SHOW_INCLUDE_FILES = YES
INLINE_INFO = YES
SORT_MEMBER_DOCS = YES
SORT_BRIEF_DOCS = NO
SORT_BY_SCOPE_NAME = NO
GENERATE_TODOLIST = YES
GENERATE_TESTLIST = YES
GENERATE_BUGLIST = YES
GENERATE_DEPRECATEDLIST= YES
ENABLED_SECTIONS =
MAX_INITIALIZER_LINES = 30
SHOW_USED_FILES = YES
#---------------------------------------------------------------------------
# configuration options related to warning and progress messages
#---------------------------------------------------------------------------
QUIET = NO
WARNINGS = YES
WARN_IF_UNDOCUMENTED = YES
WARN_IF_DOC_ERROR = YES
WARN_FORMAT = "$file:$line: $text"
WARN_LOGFILE =
#---------------------------------------------------------------------------
# configuration options related to the input files
#---------------------------------------------------------------------------
INPUT = /home/michael/develop/ksensors-0.7.3
FILE_PATTERNS = *.c \
*.cc \
*.cxx \
*.cpp \
*.c++ \
*.java \
*.ii \
*.ixx \
*.ipp \
*.i++ \
*.inl \
*.h \
*.hh \
*.hxx \
*.hpp \
*.h++ \
*.idl \
*.odl \
*.cs \
*.php \
*.php3 \
*.inc \
*.C \
*.H \
*.tlh \
*.diff \
*.patch \
*.moc \
*.xpm \
*.dox
RECURSIVE = YES
EXCLUDE =
EXCLUDE_SYMLINKS = NO
EXCLUDE_PATTERNS =
EXAMPLE_PATH =
EXAMPLE_PATTERNS = *
EXAMPLE_RECURSIVE = NO
IMAGE_PATH =
INPUT_FILTER =
FILTER_SOURCE_FILES = NO
#---------------------------------------------------------------------------
# configuration options related to source browsing
#---------------------------------------------------------------------------
SOURCE_BROWSER = NO
INLINE_SOURCES = NO
STRIP_CODE_COMMENTS = YES
REFERENCED_BY_RELATION = YES
REFERENCES_RELATION = YES
VERBATIM_HEADERS = YES
#---------------------------------------------------------------------------
# configuration options related to the alphabetical class index
#---------------------------------------------------------------------------
ALPHABETICAL_INDEX = NO
COLS_IN_ALPHA_INDEX = 5
IGNORE_PREFIX =
#---------------------------------------------------------------------------
# configuration options related to the HTML output
#---------------------------------------------------------------------------
GENERATE_HTML = YES
HTML_OUTPUT = html
HTML_FILE_EXTENSION = .html
HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
GENERATE_HTMLHELP = NO
CHM_FILE =
HHC_LOCATION =
GENERATE_CHI = NO
BINARY_TOC = NO
TOC_EXPAND = NO
DISABLE_INDEX = NO
ENUM_VALUES_PER_LINE = 4
GENERATE_TREEVIEW = NO
TREEVIEW_WIDTH = 250
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
#---------------------------------------------------------------------------
GENERATE_LATEX = YES
LATEX_OUTPUT = latex
LATEX_CMD_NAME = latex
MAKEINDEX_CMD_NAME = makeindex
COMPACT_LATEX = NO
PAPER_TYPE = a4wide
EXTRA_PACKAGES =
LATEX_HEADER =
PDF_HYPERLINKS = NO
USE_PDFLATEX = NO
LATEX_BATCHMODE = NO
LATEX_HIDE_INDICES = NO
#---------------------------------------------------------------------------
# configuration options related to the RTF output
#---------------------------------------------------------------------------
GENERATE_RTF = NO
RTF_OUTPUT = rtf
COMPACT_RTF = NO
RTF_HYPERLINKS = NO
RTF_STYLESHEET_FILE =
RTF_EXTENSIONS_FILE =
#---------------------------------------------------------------------------
# configuration options related to the man page output
#---------------------------------------------------------------------------
GENERATE_MAN = NO
MAN_OUTPUT = man
MAN_EXTENSION = .3
MAN_LINKS = NO
#---------------------------------------------------------------------------
# configuration options related to the XML output
#---------------------------------------------------------------------------
GENERATE_XML = YES
XML_OUTPUT = xml
XML_SCHEMA =
XML_DTD =
XML_PROGRAMLISTING = YES
#---------------------------------------------------------------------------
# configuration options for the AutoGen Definitions output
#---------------------------------------------------------------------------
GENERATE_AUTOGEN_DEF = NO
#---------------------------------------------------------------------------
# configuration options related to the Perl module output
#---------------------------------------------------------------------------
GENERATE_PERLMOD = NO
PERLMOD_LATEX = NO
PERLMOD_PRETTY = YES
PERLMOD_MAKEVAR_PREFIX =
#---------------------------------------------------------------------------
# Configuration options related to the preprocessor
#---------------------------------------------------------------------------
ENABLE_PREPROCESSING = YES
MACRO_EXPANSION = NO
EXPAND_ONLY_PREDEF = NO
SEARCH_INCLUDES = YES
INCLUDE_PATH =
INCLUDE_FILE_PATTERNS =
PREDEFINED =
EXPAND_AS_DEFINED =
SKIP_FUNCTION_MACROS = YES
#---------------------------------------------------------------------------
# Configuration::additions related to external references
#---------------------------------------------------------------------------
TAGFILES =
GENERATE_TAGFILE =
ALLEXTERNALS = NO
EXTERNAL_GROUPS = YES
PERL_PATH = /usr/bin/perl
#---------------------------------------------------------------------------
# Configuration options related to the dot tool
#---------------------------------------------------------------------------
CLASS_DIAGRAMS = YES
HIDE_UNDOC_RELATIONS = YES
HAVE_DOT = NO
CLASS_GRAPH = YES
COLLABORATION_GRAPH = YES
UML_LOOK = NO
TEMPLATE_RELATIONS = NO
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
CALL_GRAPH = NO
GRAPHICAL_HIERARCHY = YES
DOT_IMAGE_FORMAT = png
DOT_PATH =
DOTFILE_DIRS =
MAX_DOT_GRAPH_WIDTH = 1024
MAX_DOT_GRAPH_HEIGHT = 1024
MAX_DOT_GRAPH_DEPTH = 1000
GENERATE_LEGEND = YES
DOT_CLEANUP = YES
#---------------------------------------------------------------------------
# Configuration::additions related to the search engine
#---------------------------------------------------------------------------
SEARCHENGINE = NO

17
FAQ

@ -0,0 +1,17 @@
--------------------------------------------------------------------------------
KSensors Frequent Asked Questions
--------------------------------------------------------------------------------
1. When I try to run KSensors nothing is displayed, no window and
no error message. But a ps or pstree shows a ksensors process.
Enable KDE System Tray applet before execute ksensors.
Menu KDE -> Panel Configuration -> Add -> Applet -> System Tray
2. I'm compiling KSensors in KDE 3.x, and configure does not find qt3 libraries.
Add qt3 dir path to ./configure, for example:
./configure --prefix=/opt/kde3 --with-qt-dir=/usr/lib/qt3

@ -0,0 +1,167 @@
Basic Installation
==================
These are generic installation instructions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, a file
`config.cache' that saves the results of its tests to speed up
reconfiguring, and a file `config.log' containing compiler output
(useful mainly for debugging `configure').
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If at some point `config.cache'
contains results you don't want to keep, you may remove or edit it.
The file `configure.in' is used to create `configure' by a program
called `autoconf'. You only need `configure.in' if you want to change
it or regenerate `configure' using a newer version of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.
Running `configure' takes a while. While running, it prints some
messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Type `make install' to install the programs and any data files and
documentation.
4. You can remove the program binaries and object files from the
source code directory by typing `make clean'.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that
the `configure' script does not know about. You can give `configure'
initial values for variables by setting them in the environment. Using
a Bourne-compatible shell, you can do that on the command line like
this:
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
Or on systems that have the `env' program, you can do it like this:
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.
If you have to use a `make' that does not supports the `VPATH'
variable, you have to compile the package for one architecture at a time
in the source code directory. After you have installed the package for
one architecture, use `make distclean' before reconfiguring for another
architecture.
Installation Names
==================
By default, `make install' will install the package's files in
`/usr/local/bin', `/usr/local/man', etc. You can specify an
installation prefix other than `/usr/local' by giving `configure' the
option `--prefix=PATH'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
give `configure' the option `--exec-prefix=PATH', the package will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Optional Features
=================
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Specifying the System Type
==========================
There may be some features `configure' can not figure out
automatically, but needs to determine by the type of host the package
will run on. Usually `configure' can figure that out, but if it prints
a message saying it can not guess the host type, give it the
`--host=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name with three fields:
CPU-COMPANY-SYSTEM
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the host type.
If you are building compiler tools for cross-compiling, you can also
use the `--target=TYPE' option to select the type of system they will
produce code for and the `--build=TYPE' option to select the type of
system on which you are compiling the package.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share,
you can create a site shell script called `config.site' that gives
default values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Operation Controls
==================
`configure' recognizes the following options to control how it
operates.
`--cache-file=FILE'
Use and save the results of the tests in FILE instead of
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
debugging `configure'.
`--help'
Print a summary of the options to `configure', and exit.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made.
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`--version'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`configure' also accepts some other, not widely useful, options.

64
LEEME

@ -0,0 +1,64 @@
==================================================================
KSensors (ksensors.sourceforge.net) michaell@teleline.es
==================================================================
Informacion General
---------------------
KSensors es un LMSensors Frontend para KDE.
Debes instalar los drivers LMSensors para poder
usarlo (http://www.netroedge.com/~lm78/):
En Mandrake 8.1:
urpmi lm_utils lm_utils-devel
Luego ejecuta el script:
sensors-detect
Que indicara los modulos necesarios que hay que instalar para
poder leer los sensores de temperatura, etc de la placa base.
Nuevo Soporte para monitorizar la temperatura de discos duros
-------------------------------------------------------------
KSensors puede monitorizar la temperatura de los discos
duros, gracias al programa HDDTemp de Emmanuel Varagnat.
Puedes bajarte HDDTemp de: http://coredump.free.fr
HDDTemp debe estar en PATH para que KSensors lo pueda utilizar.
Para que hddtemp funcione correctamente es necesario
activar el bit SUID, para ello teclear:
chmod +s hddtemp
ATENCION: Activar el bit suid de un programa puede suponer
un problema de seguridad.
Compilar e instalar KSensors en KDE 3.x
---------------------------------------
tar -zxvf ksensors-0.7.3.tar.gz
cd ksensors-0.7.3
./configure --prefix=/opt/kde3 --with-qt-dir=/usr/lib/qt3
make
make install
* Reemplaza /opt/kde3 y /usr/lib/qt3 con los directorios de tu KDE3 y qt3
Como desinstalar
---------------
cd ksensors-0.7.3
make uninstall
Informacion de contacto
-----------------------
No dudes en contactar conmigo si tienes problemas para hacer
funcionar el programa o para notificar fallos, questiones,
peticiones, etc.
-------------------------
ksensors.sourceforge.net
<michaell@teleline.es>
(C) Miguel Novas
-------------------------

@ -0,0 +1,56 @@
==================================================================
KSensors (ksensors.sourceforge.net) michaell@teleline.es
==================================================================
Allgemeine Informationen
------------------------
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:
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.
Diese Software wurde nur auf meinem Motherboard (PII866 Asus CUBX-L)
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.
In den neuesten Distributionen (Debian woody, Mandrake, usw.)
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
cd ksensors-0.7.3
./configure --prefix=/usr
make
make install
Deinstallieren
--------------
cd ksensors-0.7.3
make uninstall
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.
-------------------------
ksensors.sourceforge.net
<michaell@teleline.es>
(C) Miguel Novas
-------------------------

@ -0,0 +1,69 @@
==================================================================
KSensors (ksensors.sourceforge.net) michaell@teleline.es
==================================================================
Information Générales
---------------------
Ce programme est un front-end pour lmsensors, vous devez installer les drivers
lmsensors avant de l'utiliser (http://www.netroedge.com/~lm78/):
Avec une Mandrake 8.1, essayez:
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.
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
---------------------------------------------------------
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:
chmod +s hddtemp
ATTENTION: Activer un bit SUID peut créer un trou de sécurité.
Compilation et installation de KSensors avec KDE 3.x
----------------------------------------------------
tar -zxvf ksensors-0.7.3.tar.gz
cd ksensors-0.7.3
./configure --prefix=/opt/kde3 --with-qt-dir=/usr/lib/qt3
make
make install
* Remplacez /opt/kde3 et /usr/lib/qt3 par vos répertoires KDE3 et QT3.
Comment désinstaller
--------------------
cd ksensors-0.7.3
make uninstall
Contact
-------
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.
-------------------------
ksensors.sourceforge.net
<michaell@teleline.es>
(C) Miguel Novas
-------------------------

@ -0,0 +1,22 @@
SUBDIRS = $(TOPSUBDIRS)
$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in ;
$(top_srcdir)/subdirs:
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files
package-messages:
$(MAKE) -f admin/Makefile.common package-messages
$(MAKE) -C po merge
EXTRA_DIST = admin COPYING configure.in.in
dist-hook:
cd $(top_distdir) && perl admin/am_edit -padmin
cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs

@ -0,0 +1,716 @@
# Makefile.in generated by automake 1.6.3 from Makefile.am.
# KDE tags expanded automatically by am_edit - $Revision: 1.5 $
# @configure_input@
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = .
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = @build_alias@
build_triplet = @build@
host_alias = @host_alias@
host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@
EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
PATH_SEPARATOR = @PATH_SEPARATOR@
AMTAR = @AMTAR@
ARTSCCONFIG = @ARTSCCONFIG@
AS = @AS@
AUTODIRS = @AUTODIRS@
AWK = @AWK@
BROCKENBORING = @BROCKENBORING@
CC = @CC@
CONF_FILES = @CONF_FILES@
CPP = @CPP@
CXX = @CXX@
CXXCPP = @CXXCPP@
DCOPIDL = @DCOPIDL@
DCOPIDL2CPP = @DCOPIDL2CPP@
DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN = @DOXYGEN@
DOXYGEN_PROJECT_NAME = @DOXYGEN_PROJECT_NAME@
DOXYGEN_PROJECT_NUMBER = @DOXYGEN_PROJECT_NUMBER@
DPMSINC = @DPMSINC@
DPMSLIB = @DPMSLIB@
ECHO = @ECHO@
FRAMEWORK_COREAUDIO = @FRAMEWORK_COREAUDIO@
GCJ = @GCJ@
GCJFLAGS = @GCJFLAGS@
GLINC = @GLINC@
GLLIB = @GLLIB@
GMSGFMT = @GMSGFMT@
IDL = @IDL@
IDL_DEPENDENCIES = @IDL_DEPENDENCIES@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
JAR = @JAR@
JAVAC = @JAVAC@
JAVAH = @JAVAH@
JVMLIBS = @JVMLIBS@
KDECONFIG = @KDECONFIG@
KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
KDE_HAS_DOXYGEN = @KDE_HAS_DOXYGEN@
KDE_HAVE_DOT = @KDE_HAVE_DOT@
KDE_INCLUDES = @KDE_INCLUDES@
KDE_LDFLAGS = @KDE_LDFLAGS@
KDE_MT_LDFLAGS = @KDE_MT_LDFLAGS@
KDE_MT_LIBS = @KDE_MT_LIBS@
KDE_NO_UNDEFINED = @KDE_NO_UNDEFINED@
KDE_PLUGIN = @KDE_PLUGIN@
KDE_RPATH = @KDE_RPATH@
KDE_USE_CLOSURE_FALSE = @KDE_USE_CLOSURE_FALSE@
KDE_USE_CLOSURE_TRUE = @KDE_USE_CLOSURE_TRUE@
KDE_USE_FINAL_FALSE = @KDE_USE_FINAL_FALSE@
KDE_USE_FINAL_TRUE = @KDE_USE_FINAL_TRUE@
KDE_USE_NMCHECK_FALSE = @KDE_USE_NMCHECK_FALSE@
KDE_USE_NMCHECK_TRUE = @KDE_USE_NMCHECK_TRUE@
KDE_XSL_STYLESHEET = @KDE_XSL_STYLESHEET@
LEX = @LEX@
LEXLIB = @LEXLIB@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LIBBZ2 = @LIBBZ2@
LIBCOMPAT = @LIBCOMPAT@
LIBCRYPT = @LIBCRYPT@
LIBDL = @LIBDL@
LIBGEN = @LIBGEN@
LIBJPEG = @LIBJPEG@
LIBMICO = @LIBMICO@
LIBOBJS = @LIBOBJS@
LIBPNG = @LIBPNG@
LIBPTHREAD = @LIBPTHREAD@
LIBPYTHON = @LIBPYTHON@
LIBQIMGIO = @LIBQIMGIO@
LIBRESOLV = @LIBRESOLV@
LIBSHADOW = @LIBSHADOW@
LIBSM = @LIBSM@
LIBSOCKET = @LIBSOCKET@
LIBSSL = @LIBSSL@
LIBTIFF = @LIBTIFF@
LIBTOOL = @LIBTOOL@
LIBUCB = @LIBUCB@
LIBUTIL = @LIBUTIL@
LIBZ = @LIBZ@
LIB_JASPER = @LIB_JASPER@
LIB_KAB = @LIB_KAB@
LIB_KABC = @LIB_KABC@
LIB_KDECORE = @LIB_KDECORE@
LIB_KDEPRINT = @LIB_KDEPRINT@
LIB_KDEUI = @LIB_KDEUI@
LIB_KFILE = @LIB_KFILE@
LIB_KFM = @LIB_KFM@
LIB_KHTML = @LIB_KHTML@
LIB_KIMGIO = @LIB_KIMGIO@
LIB_KIO = @LIB_KIO@
LIB_KPARTS = @LIB_KPARTS@
LIB_KSPELL = @LIB_KSPELL@
LIB_KSYCOCA = @LIB_KSYCOCA@
LIB_POLL = @LIB_POLL@
LIB_QPE = @LIB_QPE@
LIB_QT = @LIB_QT@
LIB_QTOPIA = @LIB_QTOPIA@
LIB_SMB = @LIB_SMB@
LIB_X11 = @LIB_X11@
LIB_XEXT = @LIB_XEXT@
LIB_XRENDER = @LIB_XRENDER@
LN_S = @LN_S@
MCOPIDL = @MCOPIDL@
MEINPROC = @MEINPROC@
MICO_INCLUDES = @MICO_INCLUDES@
MICO_LDFLAGS = @MICO_LDFLAGS@
MOC = @MOC@
MSGFMT = @MSGFMT@
NOOPT_CFLAGS = @NOOPT_CFLAGS@
NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
OBJC = @OBJC@
OBJCFLAGS = @OBJCFLAGS@
OBJDUMP = @OBJDUMP@
PACKAGE = @PACKAGE@
PAMLIBS = @PAMLIBS@
PASSWDLIBS = @PASSWDLIBS@
PYTHONINC = @PYTHONINC@
PYTHONLIB = @PYTHONLIB@
PYTHONMODDIR = @PYTHONMODDIR@
QTDOCDIR = @QTDOCDIR@
QTE_NORTTI = @QTE_NORTTI@
QTOPIA_INCLUDES = @QTOPIA_INCLUDES@
QT_INCLUDES = @QT_INCLUDES@
QT_LDFLAGS = @QT_LDFLAGS@
RANLIB = @RANLIB@
RC = @RC@
SETUIDFLAGS = @SETUIDFLAGS@
SSL_INCLUDES = @SSL_INCLUDES@
SSL_LDFLAGS = @SSL_LDFLAGS@
STRIP = @STRIP@
TOPSUBDIRS = @TOPSUBDIRS@
UIC = @UIC@
UIC_TR = @UIC_TR@
USER_INCLUDES = @USER_INCLUDES@
USER_LDFLAGS = @USER_LDFLAGS@
USE_EXCEPTIONS = @USE_EXCEPTIONS@
USE_RTTI = @USE_RTTI@
USE_THREADS = @USE_THREADS@
VERSION = @VERSION@
WOVERLOADED_VIRTUAL = @WOVERLOADED_VIRTUAL@
XGETTEXT = @XGETTEXT@
XPMINC = @XPMINC@
XPMLIB = @XPMLIB@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_INCLUDES = @X_INCLUDES@
X_LDFLAGS = @X_LDFLAGS@
X_PRE_LIBS = @X_PRE_LIBS@
X_RPATH = @X_RPATH@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__quote = @am__quote@
idldir = @idldir@
install_sh = @install_sh@
jni_includes = @jni_includes@
kde_appsdir = @kde_appsdir@
kde_bindir = @kde_bindir@
kde_confdir = @kde_confdir@
kde_datadir = @kde_datadir@
kde_htmldir = @kde_htmldir@
kde_icondir = @kde_icondir@
kde_includes = @kde_includes@
kde_libraries = @kde_libraries@
kde_libs_htmldir = @kde_libs_htmldir@
kde_libs_prefix = @kde_libs_prefix@
kde_locale = @kde_locale@
kde_mimedir = @kde_mimedir@
kde_moduledir = @kde_moduledir@
kde_qtver = @kde_qtver@
kde_servicesdir = @kde_servicesdir@
kde_servicetypesdir = @kde_servicetypesdir@
kde_sounddir = @kde_sounddir@
kde_styledir = @kde_styledir@
kde_templatesdir = @kde_templatesdir@
kde_wallpaperdir = @kde_wallpaperdir@
kde_widgetdir = @kde_widgetdir@
kdeinitdir = @kdeinitdir@
micodir = @micodir@
qt_includes = @qt_includes@
qt_libraries = @qt_libraries@
x_includes = @x_includes@
x_libraries = @x_libraries@
xdg_appsdir = @xdg_appsdir@
xdg_directorydir = @xdg_directorydir@
SUBDIRS = $(TOPSUBDIRS)
MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files
EXTRA_DIST = admin COPYING configure.in.in
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =
DIST_SOURCES =
#>- RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
#>- uninstall-info-recursive all-recursive install-data-recursive \
#>- install-exec-recursive installdirs-recursive install-recursive \
#>- uninstall-recursive check-recursive installcheck-recursive
#>+ 4
RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
uninstall-info-recursive all-recursive install-data-recursive \
install-exec-recursive installdirs-recursive install-recursive \
uninstall-recursive check-recursive installcheck-recursive nmcheck-recursive bcheck-recursive
DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \
Makefile.in NEWS TODO acinclude.m4 aclocal.m4 admin/ChangeLog \
admin/compile admin/config.guess admin/config.sub admin/depcomp \
admin/install-sh admin/ltmain.sh admin/missing \
admin/mkinstalldirs admin/ylwrap config.h.in configure \
configure.in
DIST_SUBDIRS = $(SUBDIRS)
#>- all: config.h
#>+ 1
all: docs-am config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive
.SUFFIXES:
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
#>- cd $(top_srcdir) && \
#>- $(AUTOMAKE) --gnu Makefile
#>+ 3
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu Makefile
cd $(top_srcdir) && perl admin/am_edit ksensors-0.7.3/Makefile.in
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)
$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
#>- cd $(srcdir) && $(AUTOCONF)
#>+ 1
cd $(srcdir) && rm -f configure && $(MAKE) -f admin/Makefile.common configure
$(ACLOCAL_M4): configure.in acinclude.m4
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
config.h: stamp-h1
@if test ! -f $@; then \
rm -f stamp-h1; \
$(MAKE) stamp-h1; \
else :; fi
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
@rm -f stamp-h1
cd $(top_builddir) && $(SHELL) ./config.status config.h
$(srcdir)/config.h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOHEADER)
touch $(srcdir)/config.h.in
distclean-hdr:
-rm -f config.h stamp-h1
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
@set fnord $$MAKEFLAGS; amf=$$2; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
@set fnord $$MAKEFLAGS; amf=$$2; \
dot_seen=no; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
rev=''; for subdir in $$list; do \
if test "$$subdir" = "."; then :; else \
rev="$$subdir $$rev"; \
fi; \
done; \
rev="$$rev ."; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
ETAGS = etags
ETAGSFLAGS =
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
mkid -fID $$unique
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
fi; \
done; \
list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$tags$$unique" \
|| $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$tags $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& cd $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
#>+ 1
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
top_distdir = .
distdir = $(PACKAGE)-$(VERSION)
am__remove_distdir = \
{ test ! -d $(distdir) \
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
&& rm -fr $(distdir); }; }
GZIP_ENV = --best
distcleancheck_listfiles = find . -type f -print
distdir: $(DISTFILES)
$(am__remove_distdir)
mkdir $(distdir)
$(mkinstalldirs) $(distdir)/admin
@list='$(DISTFILES)'; for file in $$list; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkinstalldirs) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -d $(distdir)/$$subdir \
|| mkdir $(distdir)/$$subdir \
|| exit 1; \
(cd $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$(top_distdir)" \
distdir=../$(distdir)/$$subdir \
distdir) \
|| exit 1; \
fi; \
done
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="${top_distdir}" distdir="$(distdir)" \
dist-hook
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|| chmod -R a+r $(distdir)
dist-gzip: distdir
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
$(am__remove_distdir)
dist dist-all: distdir
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
$(am__remove_distdir)
# This target untars the dist file and tries a VPATH configuration. Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
$(am__remove_distdir)
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
chmod -R a-w $(distdir); chmod a+w $(distdir)
mkdir $(distdir)/=build
mkdir $(distdir)/=inst
chmod a-w $(distdir)
dc_install_base=`$(am__cd) $(distdir)/=inst && pwd` \
&& cd $(distdir)/=build \
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
$(DISTCHECK_CONFIGURE_FLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) install \
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
&& (test `find $$dc_install_base -type f -print | wc -l` -le 1 \
|| { echo "ERROR: files left after uninstall:" ; \
find $$dc_install_base -type f -print ; \
exit 1; } >&2 ) \
&& $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
&& rm -f $(distdir).tar.gz \
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck
$(am__remove_distdir)
@echo "$(distdir).tar.gz is ready for distribution" | \
sed 'h;s/./=/g;p;x;p;x'
distcleancheck: distclean
if test '$(srcdir)' = . ; then \
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
exit 1 ; \
fi
test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|| { echo "ERROR: files left after distclean:" ; \
$(distcleancheck_listfiles) ; \
exit 1; } >&2
check-am: all-am
check: check-recursive
all-am: Makefile config.h
installdirs: installdirs-recursive
installdirs-am:
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
#>- clean: clean-recursive
#>+ 1
clean: kde-rpo-clean clean-recursive
#>- clean-am: clean-generic clean-libtool mostlyclean-am
#>+ 1
clean-am: clean-bcheck clean-generic clean-libtool mostlyclean-am
distclean: distclean-recursive
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
distclean-am: clean-am distclean-generic distclean-hdr distclean-libtool \
distclean-tags
dvi: dvi-recursive
dvi-am:
info: info-recursive
info-am:
install-data-am:
install-exec-am:
install-info: install-info-recursive
install-man:
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -rf autom4te.cache
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
uninstall-am: uninstall-info-am
uninstall-info: uninstall-info-recursive
.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \
clean-generic clean-libtool clean-recursive dist dist-all \
dist-gzip distcheck distclean distclean-generic distclean-hdr \
distclean-libtool distclean-recursive distclean-tags \
distcleancheck distdir dvi dvi-am dvi-recursive info info-am \
info-recursive install install-am install-data install-data-am \
install-data-recursive install-exec install-exec-am \
install-exec-recursive install-info install-info-am \
install-info-recursive install-man install-recursive \
install-strip installcheck installcheck-am installdirs \
installdirs-am installdirs-recursive maintainer-clean \
maintainer-clean-generic maintainer-clean-recursive mostlyclean \
mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \
tags tags-recursive uninstall uninstall-am uninstall-info-am \
uninstall-info-recursive uninstall-recursive
$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in ;
$(top_srcdir)/subdirs:
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
package-messages:
$(MAKE) -f admin/Makefile.common package-messages
$(MAKE) -C po merge
dist-hook:
cd $(top_distdir) && perl admin/am_edit -padmin
cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
#>+ 2
KDE_DIST=stamp-h.in LIESMICH subdirs ksensors.kdevelop FAQ LISEZMOI ksensors.kdevelop.pcs configure.files ksensors.kdevses build-stamp LEEME Doxyfile
#>+ 2
docs-am:
#>+ 6
force-reedit:
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu Makefile
cd $(top_srcdir) && perl admin/am_edit ksensors-0.7.3/Makefile.in
#>+ 21
clean-bcheck:
rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
bcheck: bcheck-recursive
bcheck-am:
@for i in ; do \
if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
echo "$$i"; \
if ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(KDE_CXXFLAGS) --dump-class-hierarchy $$i.bchecktest.cc; then \
rm -f $$i.bchecktest.cc; exit 1; \
fi ; \
echo "" >> $$i.bchecktest.cc.class; \
perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
rm -f a.out; \
fi ; \
done
#>+ 3
final:
$(MAKE) all-am
#>+ 3
final-install:
$(MAKE) install-am
#>+ 3
no-final:
$(MAKE) all-am
#>+ 3
no-final-install:
$(MAKE) install-am
#>+ 3
cvs-clean:
$(MAKE) admindir=$(top_srcdir)/admin -f $(top_srcdir)/admin/Makefile.common cvs-clean
#>+ 3
kde-rpo-clean:
-rm -f *.rpo
#>+ 3
nmcheck:
nmcheck-am: nmcheck

@ -0,0 +1 @@

@ -0,0 +1,65 @@
==================================================================
KSensors (ksensors.sourceforge.net) michaell@teleline.es
==================================================================
General Information
---------------------
This is a lmsensors frontend, you must install lmsensors
drivers before using it (http://www.netroedge.com/~lm78/):
In Mandrake 8.1 try:
urpmi lm_utils lm_utils-devel
Then run the script:
sensors-detect
it will show the lm-sensors modules you must install for your motherboard.
This software is only tested in my motherboard (PII866 Asus CUBX-L).
I don't know if works well with others motherboards, try it.
New Harddisk temperature monitoring support
------------------------------------------
Now KSensors can show harddisk temperatures (only in modern harddisks).
You must install HDDtemp program from Emmanuel Varagnat.
HDDTemp must be in PATH to allow KSensors use it.
You can download HDDTemp from http://coredump.free.fr.
SUID bit of hddtemp file must by set, type:
chmod +s hddtemp
WARNING: Setting suid bit can be a security flaw.
Compile and install KSensors in KDE 3.x
---------------------------------------
tar -zxvf ksensors-0.7.3.tar.gz
cd ksensors-0.7.3
./configure --prefix=/opt/kde3 --with-qt-dir=/usr/lib/qt3
make
make install
* Replace /opt/kde3 and /usr/lib/qt3 with your KDE3 and QT3 directories.
Howto Uninstall
---------------
cd ksensors-0.7.3
make uninstall
Contact info
-------------
Contact me if you have problems to run this software or to
notify bugs, questions, requests, etc.
-------------------------
ksensors.sourceforge.net
<michaell@teleline.es>
(C) Miguel Novas
-------------------------

@ -0,0 +1,3 @@
A second look for panels showing values variations over time (x-y graphical x=value y=time)
Show CPU information for multiple CPUs if exists.
Some system panels in dock (memory usage for example)

File diff suppressed because it is too large Load Diff

11753
aclocal.m4 vendored

File diff suppressed because it is too large Load Diff

@ -0,0 +1,211 @@
/* config.h.in. Generated from configure.in by autoheader. */
/* Define if you have the CoreAudio API */
#undef HAVE_COREAUDIO
/* Define to 1 if you have the <crt_externs.h> header file. */
#undef HAVE_CRT_EXTERNS_H
/* Defines if your system has the crypt function */
#undef HAVE_CRYPT
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define if you have libjpeg */
#undef HAVE_LIBJPEG
/* Define if you have libpng */
#undef HAVE_LIBPNG
/* Define if you have a working libpthread (will enable threaded code) */
#undef HAVE_LIBPTHREAD
/* Define if you have libz */
#undef HAVE_LIBZ
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define if your system needs _NSGetEnviron to set up the environment */
#undef HAVE_NSGETENVIRON
/* Define to 1 if you have the <pthread/linuxthreads/pthread.h> header file.
*/
#undef HAVE_PTHREAD_LINUXTHREADS_PTHREAD_H
/* Define if you have the res_init function */
#undef HAVE_RES_INIT
/* Define to 1 if you have the `snprintf' function. */
#undef HAVE_SNPRINTF
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define if you have strlcat */
#undef HAVE_STRLCAT
/* Define if you have the strlcat prototype */
#undef HAVE_STRLCAT_PROTO
/* Define if you have strlcpy */
#undef HAVE_STRLCPY
/* Define if you have the strlcpy prototype */
#undef HAVE_STRLCPY_PROTO
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to 1 if you have the `vsnprintf' function. */
#undef HAVE_VSNPRINTF
/* Suffix for lib directories */
#undef KDELIBSUFF
/* Define a safe value for MAXPATHLEN */
#undef KDEMAXPATHLEN
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* The size of a `char *', as computed by sizeof. */
#undef SIZEOF_CHAR_P
/* The size of a `int', as computed by sizeof. */
#undef SIZEOF_INT
/* The size of a `long', as computed by sizeof. */
#undef SIZEOF_LONG
/* The size of a `size_t', as computed by sizeof. */
#undef SIZEOF_SIZE_T
/* The size of a `unsigned long', as computed by sizeof. */
#undef SIZEOF_UNSIGNED_LONG
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN
/*
* jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
* headers and I'm too lazy to write a configure test as long as only
* unixware is related
*/
#ifdef _UNIXWARE
#define HAVE_BOOLEAN
#endif
/*
* AIX defines FD_SET in terms of bzero, but fails to include <strings.h>
* that defines bzero.
*/
#if defined(_AIX)
#include <strings.h>
#endif
#if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H)
# include <sys/time.h>
# include <crt_externs.h>
# define environ (*_NSGetEnviron())
#endif
#if !defined(HAVE_STRLCAT_PROTO)
#ifdef __cplusplus
extern "C"
#endif
unsigned long strlcat(char*, const char*, unsigned long);
#endif
#if !defined(HAVE_STRLCPY_PROTO)
#ifdef __cplusplus
extern "C"
#endif
unsigned long strlcpy(char*, const char*, unsigned long);
#endif
/*
* On HP-UX, the declaration of vsnprintf() is needed every time !
*/
#if !defined(HAVE_VSNPRINTF) || defined(hpux)
#if __STDC__
#include <stdarg.h>
#include <stdlib.h>
#else
#include <varargs.h>
#endif
#ifdef __cplusplus
extern "C"
#endif
int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
#ifdef __cplusplus
extern "C"
#endif
int snprintf(char *str, size_t n, char const *fmt, ...);
#endif
#if defined(__SVR4) && !defined(__svr4__)
#define __svr4__ 1
#endif
/* Compatibility define */
#undef ksize_t
/* Define the real type of socklen_t */
#undef socklen_t

@ -0,0 +1,2 @@
./admin/configure.in.min
configure.in.in

@ -0,0 +1,84 @@
dnl This file is part of the KDE libraries/packages
dnl Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
dnl This file is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Library General Public
dnl License as published by the Free Software Foundation; either
dnl version 2 of the License, or (at your option) any later version.
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Library General Public License for more details.
dnl You should have received a copy of the GNU Library General Public License
dnl along with this library; see the file COPYING.LIB. If not, write to
dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
dnl Boston, MA 02111-1307, USA.
# Original Author was Kalle@kde.org
# I lifted it in some mater. (Stephan Kulow)
# I used much code from Janos Farkas
dnl Process this file with autoconf to produce a configure script.
AC_INIT(acinclude.m4) dnl a source file from your sub dir
dnl This is so we can use kde-common
AC_CONFIG_AUX_DIR(admin)
dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
unset CDPATH
dnl Checking host/target/build systems, for make, install etc.
AC_CANONICAL_SYSTEM
dnl Perform program name transformation
AC_ARG_PROGRAM
dnl Automake doc recommends to do this only here. (Janos)
AM_INIT_AUTOMAKE(ksensors, 0.7.3) dnl searches for some needed programs
KDE_SET_PREFIX
dnl generate the config header
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
dnl Checks for programs.
AC_CHECK_COMPILERS
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
KDE_PROG_LIBTOOL
dnl for NLS support. Call them in this order!
dnl WITH_NLS is for the po files
AM_KDE_WITH_NLS
KDE_USE_QT(3.0.0)
AC_PATH_KDE
#MIN_CONFIG(3.0.0)
dnl PACKAGE set before
AC_C_BIGENDIAN
AC_CHECK_KDEMAXPATHLEN
KDE_CREATE_SUBDIRSLIST
AC_CONFIG_FILES([ Makefile ])
AC_CONFIG_FILES([ doc/Makefile ])
AC_CONFIG_FILES([ doc/en/Makefile ])
AC_CONFIG_FILES([ po/Makefile ])
AC_CONFIG_FILES([ src/Makefile ])
AC_CONFIG_FILES([ src/pics/Makefile ])
AC_CONFIG_FILES([ src/sounds/Makefile ])
AC_OUTPUT
if test "$all_tests" = "bad"; then
if test ! "$cache_file" = "/dev/null"; then
echo ""
echo "Please remove the file $cache_file after changing your setup"
echo "so that configure will find the changes next time."
echo ""
fi
else
echo ""
echo "Good - your configure finished. Start make now"
echo ""
fi

@ -0,0 +1,6 @@
#MIN_CONFIG(3.0.0)
AM_INIT_AUTOMAKE(ksensors, 0.7.3)
AC_C_BIGENDIAN
AC_CHECK_KDEMAXPATHLEN

@ -0,0 +1,6 @@
# the SUBDIRS is filled automatically by am_edit. If files are
# in this directory they are installed into the english dir
KDE_LANG = en
KDE_DOCS = ksensors
SUBDIRS = $(AUTODIRS)

@ -0,0 +1,592 @@
# Makefile.in generated by automake 1.6.3 from Makefile.am.
# KDE tags expanded automatically by am_edit - $Revision: 1.5 $
# @configure_input@
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
# the SUBDIRS is filled automatically by am_edit. If files are
# in this directory they are installed into the english dir
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = @build_alias@
build_triplet = @build@
host_alias = @host_alias@
host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@
EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
PATH_SEPARATOR = @PATH_SEPARATOR@
AMTAR = @AMTAR@
ARTSCCONFIG = @ARTSCCONFIG@
AS = @AS@
AUTODIRS = @AUTODIRS@
AWK = @AWK@
BROCKENBORING = @BROCKENBORING@
CC = @CC@
CONF_FILES = @CONF_FILES@
CPP = @CPP@
CXX = @CXX@
CXXCPP = @CXXCPP@
DCOPIDL = @DCOPIDL@
DCOPIDL2CPP = @DCOPIDL2CPP@
DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN = @DOXYGEN@
DOXYGEN_PROJECT_NAME = @DOXYGEN_PROJECT_NAME@
DOXYGEN_PROJECT_NUMBER = @DOXYGEN_PROJECT_NUMBER@
DPMSINC = @DPMSINC@
DPMSLIB = @DPMSLIB@
ECHO = @ECHO@
FRAMEWORK_COREAUDIO = @FRAMEWORK_COREAUDIO@
GCJ = @GCJ@
GCJFLAGS = @GCJFLAGS@
GLINC = @GLINC@
GLLIB = @GLLIB@
GMSGFMT = @GMSGFMT@
IDL = @IDL@
IDL_DEPENDENCIES = @IDL_DEPENDENCIES@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
JAR = @JAR@
JAVAC = @JAVAC@
JAVAH = @JAVAH@
JVMLIBS = @JVMLIBS@
KDECONFIG = @KDECONFIG@
KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
KDE_HAS_DOXYGEN = @KDE_HAS_DOXYGEN@
KDE_HAVE_DOT = @KDE_HAVE_DOT@
KDE_INCLUDES = @KDE_INCLUDES@
KDE_LDFLAGS = @KDE_LDFLAGS@
KDE_MT_LDFLAGS = @KDE_MT_LDFLAGS@
KDE_MT_LIBS = @KDE_MT_LIBS@
KDE_NO_UNDEFINED = @KDE_NO_UNDEFINED@
KDE_PLUGIN = @KDE_PLUGIN@
KDE_RPATH = @KDE_RPATH@
KDE_USE_CLOSURE_FALSE = @KDE_USE_CLOSURE_FALSE@
KDE_USE_CLOSURE_TRUE = @KDE_USE_CLOSURE_TRUE@
KDE_USE_FINAL_FALSE = @KDE_USE_FINAL_FALSE@
KDE_USE_FINAL_TRUE = @KDE_USE_FINAL_TRUE@
KDE_USE_NMCHECK_FALSE = @KDE_USE_NMCHECK_FALSE@
KDE_USE_NMCHECK_TRUE = @KDE_USE_NMCHECK_TRUE@
KDE_XSL_STYLESHEET = @KDE_XSL_STYLESHEET@
LEX = @LEX@
LEXLIB = @LEXLIB@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LIBBZ2 = @LIBBZ2@
LIBCOMPAT = @LIBCOMPAT@
LIBCRYPT = @LIBCRYPT@
LIBDL = @LIBDL@
LIBGEN = @LIBGEN@
LIBJPEG = @LIBJPEG@
LIBMICO = @LIBMICO@
LIBOBJS = @LIBOBJS@
LIBPNG = @LIBPNG@
LIBPTHREAD = @LIBPTHREAD@
LIBPYTHON = @LIBPYTHON@
LIBQIMGIO = @LIBQIMGIO@
LIBRESOLV = @LIBRESOLV@
LIBSHADOW = @LIBSHADOW@
LIBSM = @LIBSM@
LIBSOCKET = @LIBSOCKET@
LIBSSL = @LIBSSL@
LIBTIFF = @LIBTIFF@
LIBTOOL = @LIBTOOL@
LIBUCB = @LIBUCB@
LIBUTIL = @LIBUTIL@
LIBZ = @LIBZ@
LIB_JASPER = @LIB_JASPER@
LIB_KAB = @LIB_KAB@
LIB_KABC = @LIB_KABC@
LIB_KDECORE = @LIB_KDECORE@
LIB_KDEPRINT = @LIB_KDEPRINT@
LIB_KDEUI = @LIB_KDEUI@
LIB_KFILE = @LIB_KFILE@
LIB_KFM = @LIB_KFM@
LIB_KHTML = @LIB_KHTML@
LIB_KIMGIO = @LIB_KIMGIO@
LIB_KIO = @LIB_KIO@
LIB_KPARTS = @LIB_KPARTS@
LIB_KSPELL = @LIB_KSPELL@
LIB_KSYCOCA = @LIB_KSYCOCA@
LIB_POLL = @LIB_POLL@
LIB_QPE = @LIB_QPE@
LIB_QT = @LIB_QT@
LIB_QTOPIA = @LIB_QTOPIA@
LIB_SMB = @LIB_SMB@
LIB_X11 = @LIB_X11@
LIB_XEXT = @LIB_XEXT@
LIB_XRENDER = @LIB_XRENDER@
LN_S = @LN_S@
MCOPIDL = @MCOPIDL@
MEINPROC = @MEINPROC@
MICO_INCLUDES = @MICO_INCLUDES@
MICO_LDFLAGS = @MICO_LDFLAGS@
MOC = @MOC@
MSGFMT = @MSGFMT@
NOOPT_CFLAGS = @NOOPT_CFLAGS@
NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
OBJC = @OBJC@
OBJCFLAGS = @OBJCFLAGS@
OBJDUMP = @OBJDUMP@
PACKAGE = @PACKAGE@
PAMLIBS = @PAMLIBS@
PASSWDLIBS = @PASSWDLIBS@
PYTHONINC = @PYTHONINC@
PYTHONLIB = @PYTHONLIB@
PYTHONMODDIR = @PYTHONMODDIR@
QTDOCDIR = @QTDOCDIR@
QTE_NORTTI = @QTE_NORTTI@
QTOPIA_INCLUDES = @QTOPIA_INCLUDES@
QT_INCLUDES = @QT_INCLUDES@
QT_LDFLAGS = @QT_LDFLAGS@
RANLIB = @RANLIB@
RC = @RC@
SETUIDFLAGS = @SETUIDFLAGS@
SSL_INCLUDES = @SSL_INCLUDES@
SSL_LDFLAGS = @SSL_LDFLAGS@
STRIP = @STRIP@
TOPSUBDIRS = @TOPSUBDIRS@
UIC = @UIC@
UIC_TR = @UIC_TR@
USER_INCLUDES = @USER_INCLUDES@
USER_LDFLAGS = @USER_LDFLAGS@
USE_EXCEPTIONS = @USE_EXCEPTIONS@
USE_RTTI = @USE_RTTI@
USE_THREADS = @USE_THREADS@
VERSION = @VERSION@
WOVERLOADED_VIRTUAL = @WOVERLOADED_VIRTUAL@
XGETTEXT = @XGETTEXT@
XPMINC = @XPMINC@
XPMLIB = @XPMLIB@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_INCLUDES = @X_INCLUDES@
X_LDFLAGS = @X_LDFLAGS@
X_PRE_LIBS = @X_PRE_LIBS@
X_RPATH = @X_RPATH@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__quote = @am__quote@
idldir = @idldir@
install_sh = @install_sh@
jni_includes = @jni_includes@
kde_appsdir = @kde_appsdir@
kde_bindir = @kde_bindir@
kde_confdir = @kde_confdir@
kde_datadir = @kde_datadir@
kde_htmldir = @kde_htmldir@
kde_icondir = @kde_icondir@
kde_includes = @kde_includes@
kde_libraries = @kde_libraries@
kde_libs_htmldir = @kde_libs_htmldir@
kde_libs_prefix = @kde_libs_prefix@
kde_locale = @kde_locale@
kde_mimedir = @kde_mimedir@
kde_moduledir = @kde_moduledir@
kde_qtver = @kde_qtver@
kde_servicesdir = @kde_servicesdir@
kde_servicetypesdir = @kde_servicetypesdir@
kde_sounddir = @kde_sounddir@
kde_styledir = @kde_styledir@
kde_templatesdir = @kde_templatesdir@
kde_wallpaperdir = @kde_wallpaperdir@
kde_widgetdir = @kde_widgetdir@
kdeinitdir = @kdeinitdir@
micodir = @micodir@
qt_includes = @qt_includes@
qt_libraries = @qt_libraries@
x_includes = @x_includes@
x_libraries = @x_libraries@
xdg_appsdir = @xdg_appsdir@
xdg_directorydir = @xdg_directorydir@
KDE_LANG = en
KDE_DOCS = ksensors
#>- SUBDIRS = $(AUTODIRS)
#>+ 1
SUBDIRS =. en
subdir = doc
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
DIST_SOURCES =
#>- RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
#>- uninstall-info-recursive all-recursive install-data-recursive \
#>- install-exec-recursive installdirs-recursive install-recursive \
#>- uninstall-recursive check-recursive installcheck-recursive
#>+ 4
RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
uninstall-info-recursive all-recursive install-data-recursive \
install-exec-recursive installdirs-recursive install-recursive \
uninstall-recursive check-recursive installcheck-recursive nmcheck-recursive bcheck-recursive
DIST_COMMON = Makefile.am Makefile.in
DIST_SUBDIRS = $(SUBDIRS)
#>- all: all-recursive
#>+ 1
all: docs-am all-recursive
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
#>- cd $(top_srcdir) && \
#>- $(AUTOMAKE) --gnu doc/Makefile
#>+ 3
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu doc/Makefile
cd $(top_srcdir) && perl admin/am_edit ksensors-0.7.3/doc/Makefile.in
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
@set fnord $$MAKEFLAGS; amf=$$2; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
@set fnord $$MAKEFLAGS; amf=$$2; \
dot_seen=no; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
rev=''; for subdir in $$list; do \
if test "$$subdir" = "."; then :; else \
rev="$$subdir $$rev"; \
fi; \
done; \
rev="$$rev ."; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
ETAGS = etags
ETAGSFLAGS =
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
mkid -fID $$unique
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
fi; \
done; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$tags$$unique" \
|| $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$tags $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& cd $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
top_distdir = ..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
@list='$(DISTFILES)'; for file in $$list; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkinstalldirs) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -d $(distdir)/$$subdir \
|| mkdir $(distdir)/$$subdir \
|| exit 1; \
(cd $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$(top_distdir)" \
distdir=../$(distdir)/$$subdir \
distdir) \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-recursive
all-am: Makefile
installdirs: installdirs-recursive
installdirs-am:
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
#>- clean: clean-recursive
#>+ 1
clean: kde-rpo-clean clean-recursive
#>- clean-am: clean-generic clean-libtool mostlyclean-am
#>+ 1
clean-am: clean-bcheck clean-generic clean-libtool mostlyclean-am
distclean: distclean-recursive
distclean-am: clean-am distclean-generic distclean-libtool \
distclean-tags
dvi: dvi-recursive
dvi-am:
info: info-recursive
info-am:
install-data-am:
install-exec-am:
install-info: install-info-recursive
install-man:
installcheck-am:
maintainer-clean: maintainer-clean-recursive
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
uninstall-am: uninstall-info-am
uninstall-info: uninstall-info-recursive
.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \
clean-generic clean-libtool clean-recursive distclean \
distclean-generic distclean-libtool distclean-recursive \
distclean-tags distdir dvi dvi-am dvi-recursive info info-am \
info-recursive install install-am install-data install-data-am \
install-data-recursive install-exec install-exec-am \
install-exec-recursive install-info install-info-am \
install-info-recursive install-man install-recursive \
install-strip installcheck installcheck-am installdirs \
installdirs-am installdirs-recursive maintainer-clean \
maintainer-clean-generic maintainer-clean-recursive mostlyclean \
mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \
tags tags-recursive uninstall uninstall-am uninstall-info-am \
uninstall-info-recursive uninstall-recursive
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
#>+ 2
docs-am:
#>+ 6
force-reedit:
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu doc/Makefile
cd $(top_srcdir) && perl admin/am_edit ksensors-0.7.3/doc/Makefile.in
#>+ 21
clean-bcheck:
rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
bcheck: bcheck-recursive
bcheck-am:
@for i in ; do \
if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
echo "$$i"; \
if ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(KDE_CXXFLAGS) --dump-class-hierarchy $$i.bchecktest.cc; then \
rm -f $$i.bchecktest.cc; exit 1; \
fi ; \
echo "" >> $$i.bchecktest.cc.class; \
perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
rm -f a.out; \
fi ; \
done
#>+ 3
final:
$(MAKE) all-am
#>+ 3
final-install:
$(MAKE) install-am
#>+ 3
no-final:
$(MAKE) all-am
#>+ 3
no-final-install:
$(MAKE) install-am
#>+ 3
cvs-clean:
$(MAKE) admindir=$(top_srcdir)/admin -f $(top_srcdir)/admin/Makefile.common cvs-clean
#>+ 3
kde-rpo-clean:
-rm -f *.rpo
#>+ 3
nmcheck:
nmcheck-am: nmcheck

@ -0,0 +1,2 @@
KDE_DOCS = ksensors
KDE_LANG = en

@ -0,0 +1,512 @@
# Makefile.in generated by automake 1.6.3 from Makefile.am.
# KDE tags expanded automatically by am_edit - $Revision: 1.5 $
# @configure_input@
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ../..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = @build_alias@
build_triplet = @build@
host_alias = @host_alias@
host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@
EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
PATH_SEPARATOR = @PATH_SEPARATOR@
AMTAR = @AMTAR@
ARTSCCONFIG = @ARTSCCONFIG@
AS = @AS@
AUTODIRS = @AUTODIRS@
AWK = @AWK@
BROCKENBORING = @BROCKENBORING@
CC = @CC@
CONF_FILES = @CONF_FILES@
CPP = @CPP@
CXX = @CXX@
CXXCPP = @CXXCPP@
DCOPIDL = @DCOPIDL@
DCOPIDL2CPP = @DCOPIDL2CPP@
DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN = @DOXYGEN@
DOXYGEN_PROJECT_NAME = @DOXYGEN_PROJECT_NAME@
DOXYGEN_PROJECT_NUMBER = @DOXYGEN_PROJECT_NUMBER@
DPMSINC = @DPMSINC@
DPMSLIB = @DPMSLIB@
ECHO = @ECHO@
FRAMEWORK_COREAUDIO = @FRAMEWORK_COREAUDIO@
GCJ = @GCJ@
GCJFLAGS = @GCJFLAGS@
GLINC = @GLINC@
GLLIB = @GLLIB@
GMSGFMT = @GMSGFMT@
IDL = @IDL@
IDL_DEPENDENCIES = @IDL_DEPENDENCIES@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
JAR = @JAR@
JAVAC = @JAVAC@
JAVAH = @JAVAH@
JVMLIBS = @JVMLIBS@
KDECONFIG = @KDECONFIG@
KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
KDE_HAS_DOXYGEN = @KDE_HAS_DOXYGEN@
KDE_HAVE_DOT = @KDE_HAVE_DOT@
KDE_INCLUDES = @KDE_INCLUDES@
KDE_LDFLAGS = @KDE_LDFLAGS@
KDE_MT_LDFLAGS = @KDE_MT_LDFLAGS@
KDE_MT_LIBS = @KDE_MT_LIBS@
KDE_NO_UNDEFINED = @KDE_NO_UNDEFINED@
KDE_PLUGIN = @KDE_PLUGIN@
KDE_RPATH = @KDE_RPATH@
KDE_USE_CLOSURE_FALSE = @KDE_USE_CLOSURE_FALSE@
KDE_USE_CLOSURE_TRUE = @KDE_USE_CLOSURE_TRUE@
KDE_USE_FINAL_FALSE = @KDE_USE_FINAL_FALSE@
KDE_USE_FINAL_TRUE = @KDE_USE_FINAL_TRUE@
KDE_USE_NMCHECK_FALSE = @KDE_USE_NMCHECK_FALSE@
KDE_USE_NMCHECK_TRUE = @KDE_USE_NMCHECK_TRUE@
KDE_XSL_STYLESHEET = @KDE_XSL_STYLESHEET@
LEX = @LEX@
LEXLIB = @LEXLIB@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LIBBZ2 = @LIBBZ2@
LIBCOMPAT = @LIBCOMPAT@
LIBCRYPT = @LIBCRYPT@
LIBDL = @LIBDL@
LIBGEN = @LIBGEN@
LIBJPEG = @LIBJPEG@
LIBMICO = @LIBMICO@
LIBOBJS = @LIBOBJS@
LIBPNG = @LIBPNG@
LIBPTHREAD = @LIBPTHREAD@
LIBPYTHON = @LIBPYTHON@
LIBQIMGIO = @LIBQIMGIO@
LIBRESOLV = @LIBRESOLV@
LIBSHADOW = @LIBSHADOW@
LIBSM = @LIBSM@
LIBSOCKET = @LIBSOCKET@
LIBSSL = @LIBSSL@
LIBTIFF = @LIBTIFF@
LIBTOOL = @LIBTOOL@
LIBUCB = @LIBUCB@
LIBUTIL = @LIBUTIL@
LIBZ = @LIBZ@
LIB_JASPER = @LIB_JASPER@
LIB_KAB = @LIB_KAB@
LIB_KABC = @LIB_KABC@
LIB_KDECORE = @LIB_KDECORE@
LIB_KDEPRINT = @LIB_KDEPRINT@
LIB_KDEUI = @LIB_KDEUI@
LIB_KFILE = @LIB_KFILE@
LIB_KFM = @LIB_KFM@
LIB_KHTML = @LIB_KHTML@
LIB_KIMGIO = @LIB_KIMGIO@
LIB_KIO = @LIB_KIO@
LIB_KPARTS = @LIB_KPARTS@
LIB_KSPELL = @LIB_KSPELL@
LIB_KSYCOCA = @LIB_KSYCOCA@
LIB_POLL = @LIB_POLL@
LIB_QPE = @LIB_QPE@
LIB_QT = @LIB_QT@
LIB_QTOPIA = @LIB_QTOPIA@
LIB_SMB = @LIB_SMB@
LIB_X11 = @LIB_X11@
LIB_XEXT = @LIB_XEXT@
LIB_XRENDER = @LIB_XRENDER@
LN_S = @LN_S@
MCOPIDL = @MCOPIDL@
MEINPROC = @MEINPROC@
MICO_INCLUDES = @MICO_INCLUDES@
MICO_LDFLAGS = @MICO_LDFLAGS@
MOC = @MOC@
MSGFMT = @MSGFMT@
NOOPT_CFLAGS = @NOOPT_CFLAGS@
NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
OBJC = @OBJC@
OBJCFLAGS = @OBJCFLAGS@
OBJDUMP = @OBJDUMP@
PACKAGE = @PACKAGE@
PAMLIBS = @PAMLIBS@
PASSWDLIBS = @PASSWDLIBS@
PYTHONINC = @PYTHONINC@
PYTHONLIB = @PYTHONLIB@
PYTHONMODDIR = @PYTHONMODDIR@
QTDOCDIR = @QTDOCDIR@
QTE_NORTTI = @QTE_NORTTI@
QTOPIA_INCLUDES = @QTOPIA_INCLUDES@
QT_INCLUDES = @QT_INCLUDES@
QT_LDFLAGS = @QT_LDFLAGS@
RANLIB = @RANLIB@
RC = @RC@
SETUIDFLAGS = @SETUIDFLAGS@
SSL_INCLUDES = @SSL_INCLUDES@
SSL_LDFLAGS = @SSL_LDFLAGS@
STRIP = @STRIP@
TOPSUBDIRS = @TOPSUBDIRS@
UIC = @UIC@
UIC_TR = @UIC_TR@
USER_INCLUDES = @USER_INCLUDES@
USER_LDFLAGS = @USER_LDFLAGS@
USE_EXCEPTIONS = @USE_EXCEPTIONS@
USE_RTTI = @USE_RTTI@
USE_THREADS = @USE_THREADS@
VERSION = @VERSION@
WOVERLOADED_VIRTUAL = @WOVERLOADED_VIRTUAL@
XGETTEXT = @XGETTEXT@
XPMINC = @XPMINC@
XPMLIB = @XPMLIB@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_INCLUDES = @X_INCLUDES@
X_LDFLAGS = @X_LDFLAGS@
X_PRE_LIBS = @X_PRE_LIBS@
X_RPATH = @X_RPATH@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__quote = @am__quote@
idldir = @idldir@
install_sh = @install_sh@
jni_includes = @jni_includes@
kde_appsdir = @kde_appsdir@
kde_bindir = @kde_bindir@
kde_confdir = @kde_confdir@
kde_datadir = @kde_datadir@
kde_htmldir = @kde_htmldir@
kde_icondir = @kde_icondir@
kde_includes = @kde_includes@
kde_libraries = @kde_libraries@
kde_libs_htmldir = @kde_libs_htmldir@
kde_libs_prefix = @kde_libs_prefix@
kde_locale = @kde_locale@
kde_mimedir = @kde_mimedir@
kde_moduledir = @kde_moduledir@
kde_qtver = @kde_qtver@
kde_servicesdir = @kde_servicesdir@
kde_servicetypesdir = @kde_servicetypesdir@
kde_sounddir = @kde_sounddir@
kde_styledir = @kde_styledir@
kde_templatesdir = @kde_templatesdir@
kde_wallpaperdir = @kde_wallpaperdir@
kde_widgetdir = @kde_widgetdir@
kdeinitdir = @kdeinitdir@
micodir = @micodir@
qt_includes = @qt_includes@
qt_libraries = @qt_libraries@
x_includes = @x_includes@
x_libraries = @x_libraries@
xdg_appsdir = @xdg_appsdir@
xdg_directorydir = @xdg_directorydir@
KDE_DOCS = ksensors
KDE_LANG = en
subdir = doc/en
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
DIST_SOURCES =
DIST_COMMON = Makefile.am Makefile.in
#>- all: all-am
#>+ 1
all: docs-am all-am
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
#>- cd $(top_srcdir) && \
#>- $(AUTOMAKE) --gnu doc/en/Makefile
#>+ 3
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu doc/en/Makefile
cd $(top_srcdir) && perl admin/am_edit ksensors-0.7.3/doc/en/Makefile.in
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
tags: TAGS
TAGS:
#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
#>+ 1
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
top_distdir = ../..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
#>- distdir: $(DISTFILES)
#>+ 1
distdir: distdir-nls $(DISTFILES)
@list='$(DISTFILES)'; for file in $$list; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkinstalldirs) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
#>- uninstall: uninstall-am
#>+ 1
uninstall: uninstall-docs uninstall-nls uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
#>- clean: clean-am
#>+ 1
clean: kde-rpo-clean clean-am
#>- clean-am: clean-generic clean-libtool mostlyclean-am
#>+ 1
clean-am: clean-docs clean-bcheck clean-generic clean-libtool mostlyclean-am
distclean: distclean-am
distclean-am: clean-am distclean-generic distclean-libtool
dvi: dvi-am
dvi-am:
info: info-am
info-am:
#>- install-data-am:
#>+ 1
install-data-am: install-docs install-nls
install-exec-am:
install-info: install-info-am
install-man:
installcheck-am:
maintainer-clean: maintainer-clean-am
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
uninstall-am: uninstall-info-am
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
distclean distclean-generic distclean-libtool distdir dvi \
dvi-am info info-am install install-am install-data \
install-data-am install-exec install-exec-am install-info \
install-info-am install-man install-strip installcheck \
installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-generic \
mostlyclean-libtool uninstall uninstall-am uninstall-info-am
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
#>+ 2
KDE_DIST=index.docbook index.cache.bz2
#>+ 24
index.cache.bz2: $(srcdir)/index.docbook $(KDE_XSL_STYLESHEET) index.docbook
@if test -n "$(MEINPROC)"; then echo $(MEINPROC) --check --cache index.cache.bz2 $(srcdir)/index.docbook; $(MEINPROC) --check --cache index.cache.bz2 $(srcdir)/index.docbook; fi
docs-am: index.cache.bz2
install-docs: docs-am install-nls
$(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksensors
@if test -f index.cache.bz2; then \
echo $(INSTALL_DATA) index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksensors/; \
$(INSTALL_DATA) index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksensors/; \
elif test -f $(srcdir)/index.cache.bz2; then \
echo $(INSTALL_DATA) $(srcdir)/index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksensors/; \
$(INSTALL_DATA) $(srcdir)/index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksensors/; \
fi
-rm -f $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksensors/common
$(LN_S) $(kde_libs_htmldir)/$(KDE_LANG)/common $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksensors/common
uninstall-docs:
-rm -rf $(kde_htmldir)/$(KDE_LANG)/ksensors
clean-docs:
-rm -f index.cache.bz2
#>+ 13
install-nls:
$(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksensors
@for base in index.docbook ; do \
echo $(INSTALL_DATA) $$base $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksensors/$$base ;\
$(INSTALL_DATA) $(srcdir)/$$base $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksensors/$$base ;\
done
uninstall-nls:
for base in index.docbook ; do \
rm -f $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksensors/$$base ;\
done
#>+ 5
distdir-nls:
for file in index.docbook ; do \
cp $(srcdir)/$$file $(distdir); \
done
#>+ 6
force-reedit:
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu doc/en/Makefile
cd $(top_srcdir) && perl admin/am_edit ksensors-0.7.3/doc/en/Makefile.in
#>+ 21
clean-bcheck:
rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
bcheck: bcheck-am
bcheck-am:
@for i in ; do \
if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
echo "$$i"; \
if ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(KDE_CXXFLAGS) --dump-class-hierarchy $$i.bchecktest.cc; then \
rm -f $$i.bchecktest.cc; exit 1; \
fi ; \
echo "" >> $$i.bchecktest.cc.class; \
perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
rm -f a.out; \
fi ; \
done
#>+ 3
final:
$(MAKE) all-am
#>+ 3
final-install:
$(MAKE) install-am
#>+ 3
no-final:
$(MAKE) all-am
#>+ 3
no-final-install:
$(MAKE) install-am
#>+ 3
cvs-clean:
$(MAKE) admindir=$(top_srcdir)/admin -f $(top_srcdir)/admin/Makefile.common cvs-clean
#>+ 3
kde-rpo-clean:
-rm -f *.rpo
#>+ 3
nmcheck:
nmcheck-am: nmcheck

Binary file not shown.

@ -0,0 +1,555 @@
<?xml version="1.0" ?>
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
<!ENTITY ksensors "<application>ksensors 0&#46;1</application>">
<!ENTITY kappname "&ksensors;"><!-- Do *not* replace kappname-->
<!ENTITY package "kde-module"><!-- kdebase, kdeadmin, etc -->
<!ENTITY % addindex "IGNORE">
<!ENTITY % English "INCLUDE"><!-- change language only here -->
<!-- Do not define any other entities; instead, use the entities
from kde-genent.entities and $LANG/user.entities. -->
]>
<!-- kdoctemplate v0.8 October 1 1999
Minor update to "Credits and Licenses" section on August 24, 2000
Removed "Revision history" section on 22 January 2001
Changed to Installation/Help menu entities 18 October 2001
Other minor cleanup and changes 18 October 2001 -->
<!--
This template was designed by: David Rugge davidrugge@mindspring.com
with lots of help from: Eric Bischoff ebisch@cybercable.tm.fr
and Frederik Fouvry fouvry@sfs.nphil.uni-tuebingen.de
of the KDE DocBook team.
You may freely use this template for writing any sort of KDE documentation.
If you have any changes or improvements, please let us know.
Remember:
- in XML, the case of the <tags> and attributes is relevant ;
- also, quote all attributes.
Please don't forget to remove all these comments in your final documentation,
thanks ;-).
-->
<!-- ................................................................ -->
<!-- The language must NOT be changed here. -->
<book lang="&language;">
<!-- This header contains all of the meta-information for the document such
as Authors, publish date, the abstract, and Keywords -->
<bookinfo>
<title>The &ksensors; Handbook</title>
<authorgroup>
<author>
<firstname></firstname>
<othername></othername>
<surname>noname</surname>
<affiliation>
<address><email>s&#64;s&#46;org</email></address>
</affiliation>
</author>
</authorgroup>
<!-- TRANS:ROLES_OF_TRANSLATORS -->
<copyright>
<year>1999</year>
<year>2003</year>
<holder>noname</holder>
</copyright>
<!-- Translators: put here the copyright notice of the translation -->
<!-- Put here the FDL notice. Read the explanation in fdl-notice.docbook
and in the FDL itself on how to use it. -->
<legalnotice>&FDLNotice;</legalnotice>
<!-- Date and version information of the documentation
Don't forget to include this last date and this last revision number, we
need them for translation coordination !
Please respect the format of the date (YYYY-MM-DD) and of the version
(V.MM.LL), it could be used by automation scripts.
Do NOT change these in the translation. -->
<date>2001-10-18</date>
<releaseinfo>0&#46;1</releaseinfo>
<!-- Abstract about this handbook -->
<abstract>
<para>
&ksensors; is an application specially designed to do nothing you would
ever want.
</para>
</abstract>
<!-- This is a set of Keywords for indexing by search engines.
Please at least include KDE, the KDE package it is in, the name
of your application, and a few relevant keywords. -->
<keywordset>
<keyword>KDE</keyword>
<keyword>ksensors</keyword>
<keyword>nothing</keyword>
<keyword>nothing else</keyword>
</keywordset>
</bookinfo>
<!-- The contents of the documentation begin here. Label
each chapter so with the id attribute. This is necessary for two reasons: it
allows you to easily reference the chapter from other chapters of your
document, and if there is no ID, the name of the generated HTML files will vary
from time to time making it hard to manage for maintainers and for the CVS
system. Any chapter labelled (OPTIONAL) may be left out at the author's
discretion. Other chapters should not be left out in order to maintain a
consistent documentation style across all KDE apps. -->
<chapter id="introduction">
<title>Introduction</title>
<!-- The introduction chapter contains a brief introduction for the
application that explains what it does and where to report
problems. Basically a long version of the abstract. Don't include a
revision history. (see installation appendix comment) -->
<para>
&ksensors; is a program that lets you do absolutely nothing. Please report
any problems or feature requests to the &kde; mailing lists.
</para>
</chapter>
<chapter id="using-ksensors">
<title>Using &ksensors;</title>
<!-- This chapter should tell the user how to use your app. You should use as
many sections (Chapter, Sect1, Sect3, etc...) as is necessary to fully document
your application. -->
<para>
<!-- Note that all graphics should be in .png format. Use no gifs because of
patent issues. -->
<screenshot>
<screeninfo>Here's a screenshot of &ksensors;</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="screenshot.png" format="PNG"/>
</imageobject>
<imageobject>
<imagedata fileref="screenshot.eps" format="EPS"/>
</imageobject>
<textobject>
<phrase>Screenshot</phrase>
</textobject>
</mediaobject>
</screenshot>
</para>
<sect1 id="ksensors-features">
<title>More &ksensors; features</title>
<para>It slices! It dices! and it comes with a free toaster!</para>
<para>
The Squiggle Tool <guiicon><inlinemediaobject>
<imageobject>
<imagedata fileref="squiggle.png" format="PNG"/>
</imageobject>
<imageobject>
<imagedata fileref="squiggle.eps" format="EPS"/>
</imageobject>
<textobject>
<phrase>Squiggle</phrase>
</textobject>
</inlinemediaobject></guiicon> is used to draw squiggly lines all over
the &ksensors; main window. It's not a bug, it's a feature!
</para>
</sect1>
</chapter>
<chapter id="commands">
<title>Command Reference</title>
<!-- (OPTIONAL, BUT RECOMMENDED) This chapter should list all of the
application windows and their menubar and toolbar commands for easy reference.
Also include any keys that have a special function but have no equivalent in the
menus or toolbars. This may not be necessary for small apps or apps with no tool
or menu bars. -->
<sect1 id="ksensors-mainwindow">
<title>The main &ksensors; window</title>
<sect2>
<title>The File Menu</title>
<para>
<variablelist>
<varlistentry>
<term><menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>N</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>New</guimenuitem>
</menuchoice></term>
<listitem><para><action>Creates a new document</action></para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>S</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Save</guimenuitem>
</menuchoice></term>
<listitem><para><action>Saves the document</action></para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>Q</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Quit</guimenuitem>
</menuchoice></term>
<listitem><para><action>Quits</action> &ksensors;</para></listitem>
</varlistentry>
</variablelist>
</para>
</sect2>
<sect2>
<title>The <guimenu>Help</guimenu> Menu</title>
<!-- Assuming you have a standard help menu (help, what's this, about -->
<!-- &ksensors;, about KDE) then the documentation is already written. -->
<!-- The following entity is valid anywhere that a variablelist is -->
<!-- valid. -->
&help.menu.documentation;
</sect2>
</sect1>
</chapter>
<chapter id="developers">
<title>Developer's Guide to &ksensors;</title>
<!-- (OPTIONAL) A Programming/Scripting reference chapter should be
used for apps that use plugins or that provide their own scripting hooks
and/or development libraries. -->
<para>
Programming &ksensors; plugins is a joy to behold. Just read through the next
66 pages of API's to learn how!
</para>
<!-- Use refentries to describe APIs. Refentries are fairly complicated and you
should consult the docbook reference for further details. The example below was
taken from that reference and shortened a bit for readability. -->
<refentry id="re-1007-unmanagechildren-1">
<refmeta>
<refentrytitle>XtUnmanageChildren</refentrytitle>
<refmiscinfo>Xt - Geometry Management</refmiscinfo>
</refmeta>
<refnamediv>
<refname>XtUnmanageChildren
</refname>
<refpurpose>remove a list of children from a parent widget's managed
list.
<indexterm id="ix-1007-unmanagechildren-1"><primary>widgets</primary><secondary>removing</secondary></indexterm>
<indexterm id="ix-1007-unmanagechildren-2"><primary>XtUnmanageChildren</primary></indexterm>
</refpurpose>
</refnamediv>
<refsynopsisdiv>
<refsynopsisdivinfo>
<date>4 March 1996</date>
</refsynopsisdivinfo>
<synopsis>
void XtUnmanageChildren(<replaceable class="parameter">children</replaceable>, <replaceable class="parameter">num_children</replaceable>)
WidgetList <replaceable class="parameter">children</replaceable>;
Cardinal <replaceable class="parameter">num_children</replaceable>;
</synopsis>
<refsect2 id="r2-1007-unmanagechildren-1">
<title>Inputs</title>
<variablelist>
<varlistentry>
<term><replaceable class="parameter">children</replaceable>
</term>
<listitem>
<para>Specifies an array of child widgets. Each child must be of
class RectObj or any subclass thereof.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><replaceable class="parameter">num_children</replaceable>
</term>
<listitem>
<para>Specifies the number of elements in <replaceable class="parameter">children</replaceable>.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect2></refsynopsisdiv>
<refsect1 id="r1-1007-unmanagechildren-1">
<title>Description
</title>
<para><function>XtUnmanageChildren()</function> unmaps the specified widgets
and removes them from their parent's geometry management.
The widgets will disappear from the screen, and (depending
on its parent) may no longer have screen space allocated for
them.
</para>
<para>Each of the widgets in the <replaceable class="parameter">children</replaceable> array must have
the same parent.
</para>
<para>See the &ldquo;Algorithm&rdquo; section below for full details of the
widget unmanagement procedure.
</para>
</refsect1>
<refsect1 id="r1-1007-unmanagechildren-2">
<title>Usage</title>
<para>Unmanaging widgets is the usual method for temporarily
making them invisible. They can be re-managed with
<function>XtManageChildren()</function>.
</para>
<para>You can unmap a widget, but leave it under geometry
management by calling <function>XtUnmapWidget()</function>. You can
destroy a widget's window without destroying the widget by
calling <function>XtUnrealizeWidget()</function>. You can destroy a
widget completely with <function>XtDestroyWidget()</function>.
</para>
<para>If you are only going to unmanage a single widget, it is
more convenient to call <function>XtUnmanageChild()</function>. It is
often more convenient to call <function>XtUnmanageChild()</function>
several times than it is to declare and initialize an array
of widgets to pass to <function>XtUnmanageChildren()</function>. Calling
<function>XtUnmanageChildren()</function> is more efficient, however,
because it only calls the parent's <function>change_managed()</function>
method once.
</para>
</refsect1>
<refsect1 id="r1-1007-unmanagechildren-3">
<title>Algorithm
</title>
<para><function>XtUnmanageChildren()</function> performs the following:
</para>
<variablelist>
<varlistentry>
<term>-
</term>
<listitem>
<para>Ignores the child if it already is unmanaged or is being
destroyed.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-
</term>
<listitem>
<para>Otherwise, if the child is realized, it makes it nonvisible
by unmapping it.
</para>
</listitem>
</varlistentry>
</variablelist>
<para>
</para>
</refsect1>
<refsect1 id="r1-1007-unmanagechildren-4">
<title>Structures</title>
<para>The <type>WidgetList</type> type is simply an array of widgets:
</para>
<screen id="sc-1007-unmanagechildren-1">typedef Widget *WidgetList;
</screen>
</refsect1>
</refentry>
</chapter>
<chapter id="faq">
<title>Questions and Answers</title>
<!-- (OPTIONAL but recommended) This chapter should include all of the silly
(and not-so-silly) newbie questions that fill up your mailbox. This chapter
should be reserved for BRIEF questions and answers! If one question uses more
than a page or so then it should probably be part of the
"Using this Application" chapter instead. You should use links to
cross-reference questions to the parts of your documentation that answer them.
This is also a great place to provide pointers to other FAQ's if your users
must do some complicated configuration on other programs in order for your
application work. -->
&reporting.bugs;
&updating.documentation;
<qandaset id="faqlist">
<qandaentry>
<question>
<para>My Mouse doesn't work. How do I quit &ksensors;?</para>
</question>
<answer>
<para>You silly goose! Check out the <link linkend="commands">Commands
Section</link> for the answer.</para>
</answer>
</qandaentry>
<qandaentry>
<question>
<para>Why can't I twiddle my documents?</para>
</question>
<answer>
<para>You can only twiddle your documents if you have the foobar.lib
installed.</para>
</answer>
</qandaentry>
</qandaset>
</chapter>
<chapter id="credits">
<!-- Include credits for the programmers, documentation writers, and
contributors here. The license for your software should then be included below
the credits with a reference to the appropriate license file included in the KDE
distribution. -->
<title>Credits and License</title>
<para>
&ksensors;
</para>
<para>
Program copyright 2003 noname <email>s&#64;s&#46;org</email>
</para>
<para>
Contributors:
<itemizedlist>
<listitem><para>Konqui the KDE Dragon <email>konqui@kde.org</email></para>
</listitem>
<listitem><para>Tux the Linux Penguin <email>tux@linux.org</email></para>
</listitem>
</itemizedlist>
</para>
<para>
Documentation copyright 2003 noname <email>s&#64;s&#46;org</email>
</para>
<!-- TRANS:CREDIT_FOR_TRANSLATORS -->
&underFDL; <!-- FDL: do not remove -->
<!-- Determine which license your application is licensed under,
and delete all the remaining licenses below:
(NOTE: All documentation are licensed under the FDL,
regardless of what license the application uses) -->
&underGPL; <!-- GPL License -->
&underBSDLicense; <!-- BSD License -->
&underArtisticLicense; <!-- BSD Artistic License -->
&underX11License; <!-- X11 License -->
</chapter>
<appendix id="installation">
<title>Installation</title>
<sect1 id="getting-ksensors">
<title>How to obtain &ksensors;</title>
<!-- This first entity contains boiler plate for applications that are
part of KDE CVS. You should remove it if you are releasing your
application -->
&install.intro.documentation;
</sect1>
<sect1 id="requirements">
<title>Requirements</title>
<!--
List any special requirements for your application here. This should include:
.Libraries or other software that is not included in kdesupport,
kdelibs, or kdebase.
.Hardware requirements like amount of RAM, disk space, graphics card
capabilities, screen resolution, special expansion cards, etc.
.Operating systems the app will run on. If your app is designed only for a
specific OS, (you wrote a graphical LILO configurator for example) put this
information here.
-->
<para>
In order to successfully use &ksensors;, you need &kde; 1.1. Foobar.lib is
required in order to support the advanced &ksensors; features. &ksensors; uses
about 5 megs of memory to run, but this may vary depending on your
platform and configuration.
</para>
<para>
All required libraries as well as &ksensors; itself can be found
on <ulink url="ftp://ftp.ksensors.org">The &ksensors; home page</ulink>.
</para>
<!-- For a list of updates, you may refer to the application web site
or the ChangeLog file, or ... -->
<para>
You can find a list of changes at <ulink
url="http://apps.kde.org/ksensors">http://apps.kde.org/ksensors</ulink>.
</para>
</sect1>
<sect1 id="compilation">
<title>Compilation and Installation</title>
<!-- This entity contains the boilerplate text for standard -->
<!-- compilation instructions. If your application requires any -->
<!-- special handling, remove it, and replace with your own text. -->
&install.compile.documentation;
</sect1>
<sect1 id="configuration">
<title>Configuration</title>
<para>Don't forget to tell your system to start the <filename>dtd</filename>
dicer-toaster daemon first, or &ksensors; won't work !</para>
</sect1>
</appendix>
&documentation.index;
</book>
<!--
Local Variables:
mode: sgml
sgml-minimize-attributes:nil
sgml-general-insert-case:lower
sgml-indent-step:0
sgml-indent-data:nil
End:
vim:tabstop=2:shiftwidth=2:expandtab
-->

@ -0,0 +1,149 @@
<?xml version = '1.0'?>
<kdevelop>
<general>
<author>Miguel Novas</author>
<email>migueln@users.sourceforge.net</email>
<version>0.7.3</version>
<projectmanagement>KDevKDEAutoProject</projectmanagement>
<primarylanguage>C++</primarylanguage>
<keywords>
<keyword>C++</keyword>
<keyword>Code</keyword>
<keyword>Qt</keyword>
<keyword>KDE</keyword>
</keywords>
<projectdirectory>.</projectdirectory>
<absoluteprojectpath>false</absoluteprojectpath>
<description/>
<ignoreparts/>
<secondaryLanguages/>
</general>
<kdevautoproject>
<general>
<activetarget>src/ksensors</activetarget>
<useconfiguration>default</useconfiguration>
</general>
<run>
<mainprogram>src/ksensors</mainprogram>
<directoryradio>executable</directoryradio>
</run>
<configurations>
<optimized>
<builddir>optimized</builddir>
<ccompiler>GccOptions</ccompiler>
<cxxcompiler>GppOptions</cxxcompiler>
<f77compiler>G77Options</f77compiler>
<cxxflags>-O2 -g0</cxxflags>
</optimized>
<debug>
<configargs>--enable-debug=full</configargs>
<builddir>debug</builddir>
<ccompiler>GccOptions</ccompiler>
<cxxcompiler>GppOptions</cxxcompiler>
<f77compiler>G77Options</f77compiler>
<cxxflags>-O0 -g3</cxxflags>
</debug>
<default>
<configargs>--prefix=/usr</configargs>
<builddir/>
<topsourcedir/>
<cppflags/>
<ldflags/>
<ccompiler>kdevgccoptions</ccompiler>
<cxxcompiler>kdevgppoptions</cxxcompiler>
<f77compiler>kdevpgf77options</f77compiler>
<ccompilerbinary/>
<cxxcompilerbinary/>
<f77compilerbinary/>
<cflags/>
<cxxflags/>
<f77flags/>
</default>
</configurations>
<make>
<envvars>
<envvar value="1" name="WANT_AUTOCONF_2_5" />
<envvar value="1" name="WANT_AUTOMAKE_1_6" />
</envvars>
</make>
</kdevautoproject>
<kdevfileview>
<groups>
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
<group pattern="*.ui" name="User Interface" />
<group pattern="*.png" name="Icons" />
<group pattern="*.wav" name="Sounds" />
<group pattern="*.po;*.ts" name="Translations" />
<group pattern="*" name="Others" />
<hidenonprojectfiles>false</hidenonprojectfiles>
<hidenonlocation>false</hidenonlocation>
</groups>
<tree>
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
<hidenonprojectfiles>false</hidenonprojectfiles>
</tree>
</kdevfileview>
<kdevdoctreeview>
<ignoretocs>
<toc>gtk</toc>
<toc>gnustep</toc>
<toc>python</toc>
<toc>php</toc>
<toc>perl</toc>
</ignoretocs>
<projectdoc>
<userdocDir>html/</userdocDir>
<apidocDir>html/</apidocDir>
</projectdoc>
<ignoreqt_xml/>
<ignoredoxygen/>
<ignorekdocs/>
<ignoredevhelp/>
</kdevdoctreeview>
<kdevdebugger>
<general>
<dbgshell>libtool</dbgshell>
<programargs/>
<gdbpath/>
<configGdbScript/>
<runShellScript/>
<runGdbScript/>
<breakonloadinglibs>true</breakonloadinglibs>
<separatetty>false</separatetty>
<floatingtoolbar>false</floatingtoolbar>
</general>
<display>
<staticmembers>false</staticmembers>
<demanglenames>true</demanglenames>
</display>
</kdevdebugger>
<kdevfilecreate>
<filetypes/>
<useglobaltypes>
<type ext="ui" />
<type ext="cpp" />
<type ext="h" />
</useglobaltypes>
</kdevfilecreate>
<kdevcppsupport>
<references/>
<codecompletion>
<includeGlobalFunctions>true</includeGlobalFunctions>
<includeTypes>true</includeTypes>
<includeEnums>true</includeEnums>
<includeTypedefs>false</includeTypedefs>
<automaticCodeCompletion>true</automaticCodeCompletion>
<automaticArgumentsHint>true</automaticArgumentsHint>
<automaticHeaderCompletion>true</automaticHeaderCompletion>
<codeCompletionDelay>250</codeCompletionDelay>
<argumentsHintDelay>400</argumentsHintDelay>
<headerCompletionDelay>250</headerCompletionDelay>
</codecompletion>
</kdevcppsupport>
<cppsupportpart>
<filetemplates>
<interfacesuffix>.h</interfacesuffix>
<implementationsuffix>.cpp</implementationsuffix>
</filetemplates>
</cppsupportpart>
</kdevelop>

Binary file not shown.

@ -0,0 +1,26 @@
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE KDevPrjSession>
<KDevPrjSession>
<DocsAndViews NumberOfDocuments="1" >
<Doc0 NumberOfViews="1" URL="file:/tmp/ksensors-0.7.3/ksensors.kdevelop" >
<View0 line="0" Type="???" >
<AdditionalSettings Top="1" Width="1087" Attach="1" Height="647" Left="1" MinMaxMode="0" />
</View0>
</Doc0>
</DocsAndViews>
<pluginList>
<kdevbookmarks>
<bookmarks/>
</kdevbookmarks>
<kdevsubversion>
<subversion recurseresolve="1" recurserelocate="1" recursemerge="1" recursecommit="1" base="" recursepropget="1" recurseswitch="1" recurseupdate="1" recursepropset="1" recursediff="1" recurserevert="1" forcemove="1" recursecheckout="1" forceremove="1" recurseadd="1" recurseproplist="1" forcemerge="1" />
</kdevsubversion>
<kdevvalgrind>
<executable path="" params="" />
<valgrind path="" params="" />
</kdevvalgrind>
<kdevdebugger>
<breakpointList/>
</kdevdebugger>
</pluginList>
</KDevPrjSession>

@ -0,0 +1 @@
POFILES = AUTO

@ -0,0 +1,533 @@
# Makefile.in generated by automake 1.6.3 from Makefile.am.
# KDE tags expanded automatically by am_edit - $Revision: 1.5 $
# @configure_input@
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = @build_alias@
build_triplet = @build@
host_alias = @host_alias@
host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@
EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
PATH_SEPARATOR = @PATH_SEPARATOR@
AMTAR = @AMTAR@
ARTSCCONFIG = @ARTSCCONFIG@
AS = @AS@
AUTODIRS = @AUTODIRS@
AWK = @AWK@
BROCKENBORING = @BROCKENBORING@
CC = @CC@
CONF_FILES = @CONF_FILES@
CPP = @CPP@
CXX = @CXX@
CXXCPP = @CXXCPP@
DCOPIDL = @DCOPIDL@
DCOPIDL2CPP = @DCOPIDL2CPP@
DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN = @DOXYGEN@
DOXYGEN_PROJECT_NAME = @DOXYGEN_PROJECT_NAME@
DOXYGEN_PROJECT_NUMBER = @DOXYGEN_PROJECT_NUMBER@
DPMSINC = @DPMSINC@
DPMSLIB = @DPMSLIB@
ECHO = @ECHO@
FRAMEWORK_COREAUDIO = @FRAMEWORK_COREAUDIO@
GCJ = @GCJ@
GCJFLAGS = @GCJFLAGS@
GLINC = @GLINC@
GLLIB = @GLLIB@
GMSGFMT = @GMSGFMT@
IDL = @IDL@
IDL_DEPENDENCIES = @IDL_DEPENDENCIES@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
JAR = @JAR@
JAVAC = @JAVAC@
JAVAH = @JAVAH@
JVMLIBS = @JVMLIBS@
KDECONFIG = @KDECONFIG@
KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
KDE_HAS_DOXYGEN = @KDE_HAS_DOXYGEN@
KDE_HAVE_DOT = @KDE_HAVE_DOT@
KDE_INCLUDES = @KDE_INCLUDES@
KDE_LDFLAGS = @KDE_LDFLAGS@
KDE_MT_LDFLAGS = @KDE_MT_LDFLAGS@
KDE_MT_LIBS = @KDE_MT_LIBS@
KDE_NO_UNDEFINED = @KDE_NO_UNDEFINED@
KDE_PLUGIN = @KDE_PLUGIN@
KDE_RPATH = @KDE_RPATH@
KDE_USE_CLOSURE_FALSE = @KDE_USE_CLOSURE_FALSE@
KDE_USE_CLOSURE_TRUE = @KDE_USE_CLOSURE_TRUE@
KDE_USE_FINAL_FALSE = @KDE_USE_FINAL_FALSE@
KDE_USE_FINAL_TRUE = @KDE_USE_FINAL_TRUE@
KDE_USE_NMCHECK_FALSE = @KDE_USE_NMCHECK_FALSE@
KDE_USE_NMCHECK_TRUE = @KDE_USE_NMCHECK_TRUE@
KDE_XSL_STYLESHEET = @KDE_XSL_STYLESHEET@
LEX = @LEX@
LEXLIB = @LEXLIB@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LIBBZ2 = @LIBBZ2@
LIBCOMPAT = @LIBCOMPAT@
LIBCRYPT = @LIBCRYPT@
LIBDL = @LIBDL@
LIBGEN = @LIBGEN@
LIBJPEG = @LIBJPEG@
LIBMICO = @LIBMICO@
LIBOBJS = @LIBOBJS@
LIBPNG = @LIBPNG@
LIBPTHREAD = @LIBPTHREAD@
LIBPYTHON = @LIBPYTHON@
LIBQIMGIO = @LIBQIMGIO@
LIBRESOLV = @LIBRESOLV@
LIBSHADOW = @LIBSHADOW@
LIBSM = @LIBSM@
LIBSOCKET = @LIBSOCKET@
LIBSSL = @LIBSSL@
LIBTIFF = @LIBTIFF@
LIBTOOL = @LIBTOOL@
LIBUCB = @LIBUCB@
LIBUTIL = @LIBUTIL@
LIBZ = @LIBZ@
LIB_JASPER = @LIB_JASPER@
LIB_KAB = @LIB_KAB@
LIB_KABC = @LIB_KABC@
LIB_KDECORE = @LIB_KDECORE@
LIB_KDEPRINT = @LIB_KDEPRINT@
LIB_KDEUI = @LIB_KDEUI@
LIB_KFILE = @LIB_KFILE@
LIB_KFM = @LIB_KFM@
LIB_KHTML = @LIB_KHTML@
LIB_KIMGIO = @LIB_KIMGIO@
LIB_KIO = @LIB_KIO@
LIB_KPARTS = @LIB_KPARTS@
LIB_KSPELL = @LIB_KSPELL@
LIB_KSYCOCA = @LIB_KSYCOCA@
LIB_POLL = @LIB_POLL@
LIB_QPE = @LIB_QPE@
LIB_QT = @LIB_QT@
LIB_QTOPIA = @LIB_QTOPIA@
LIB_SMB = @LIB_SMB@
LIB_X11 = @LIB_X11@
LIB_XEXT = @LIB_XEXT@
LIB_XRENDER = @LIB_XRENDER@
LN_S = @LN_S@
MCOPIDL = @MCOPIDL@
MEINPROC = @MEINPROC@
MICO_INCLUDES = @MICO_INCLUDES@
MICO_LDFLAGS = @MICO_LDFLAGS@
MOC = @MOC@
MSGFMT = @MSGFMT@
NOOPT_CFLAGS = @NOOPT_CFLAGS@
NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
OBJC = @OBJC@
OBJCFLAGS = @OBJCFLAGS@
OBJDUMP = @OBJDUMP@
PACKAGE = @PACKAGE@
PAMLIBS = @PAMLIBS@
PASSWDLIBS = @PASSWDLIBS@
PYTHONINC = @PYTHONINC@
PYTHONLIB = @PYTHONLIB@
PYTHONMODDIR = @PYTHONMODDIR@
QTDOCDIR = @QTDOCDIR@
QTE_NORTTI = @QTE_NORTTI@
QTOPIA_INCLUDES = @QTOPIA_INCLUDES@
QT_INCLUDES = @QT_INCLUDES@
QT_LDFLAGS = @QT_LDFLAGS@
RANLIB = @RANLIB@
RC = @RC@
SETUIDFLAGS = @SETUIDFLAGS@
SSL_INCLUDES = @SSL_INCLUDES@
SSL_LDFLAGS = @SSL_LDFLAGS@
STRIP = @STRIP@
TOPSUBDIRS = @TOPSUBDIRS@
UIC = @UIC@
UIC_TR = @UIC_TR@
USER_INCLUDES = @USER_INCLUDES@
USER_LDFLAGS = @USER_LDFLAGS@
USE_EXCEPTIONS = @USE_EXCEPTIONS@
USE_RTTI = @USE_RTTI@
USE_THREADS = @USE_THREADS@
VERSION = @VERSION@
WOVERLOADED_VIRTUAL = @WOVERLOADED_VIRTUAL@
XGETTEXT = @XGETTEXT@
XPMINC = @XPMINC@
XPMLIB = @XPMLIB@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_INCLUDES = @X_INCLUDES@
X_LDFLAGS = @X_LDFLAGS@
X_PRE_LIBS = @X_PRE_LIBS@
X_RPATH = @X_RPATH@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__quote = @am__quote@
idldir = @idldir@
install_sh = @install_sh@
jni_includes = @jni_includes@
kde_appsdir = @kde_appsdir@
kde_bindir = @kde_bindir@
kde_confdir = @kde_confdir@
kde_datadir = @kde_datadir@
kde_htmldir = @kde_htmldir@
kde_icondir = @kde_icondir@
kde_includes = @kde_includes@
kde_libraries = @kde_libraries@
kde_libs_htmldir = @kde_libs_htmldir@
kde_libs_prefix = @kde_libs_prefix@
kde_locale = @kde_locale@
kde_mimedir = @kde_mimedir@
kde_moduledir = @kde_moduledir@
kde_qtver = @kde_qtver@
kde_servicesdir = @kde_servicesdir@
kde_servicetypesdir = @kde_servicetypesdir@
kde_sounddir = @kde_sounddir@
kde_styledir = @kde_styledir@
kde_templatesdir = @kde_templatesdir@
kde_wallpaperdir = @kde_wallpaperdir@
kde_widgetdir = @kde_widgetdir@
kdeinitdir = @kdeinitdir@
micodir = @micodir@
qt_includes = @qt_includes@
qt_libraries = @qt_libraries@
x_includes = @x_includes@
x_libraries = @x_libraries@
xdg_appsdir = @xdg_appsdir@
xdg_directorydir = @xdg_directorydir@
#>- POFILES = AUTO
#>+ 2
POFILES = nl.po fr.po es.po de.po cs.po
GMOFILES = nl.gmo fr.gmo es.gmo de.gmo cs.gmo
subdir = po
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
DIST_SOURCES =
DIST_COMMON = Makefile.am Makefile.in
#>- all: all-am
#>+ 1
all: all-nls docs-am all-am
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
#>- cd $(top_srcdir) && \
#>- $(AUTOMAKE) --gnu po/Makefile
#>+ 3
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu po/Makefile
cd $(top_srcdir) && perl admin/am_edit ksensors-0.7.3/po/Makefile.in
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
tags: TAGS
TAGS:
#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
#>+ 1
#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
#>+ 1
DISTFILES = $(GMOFILES) $(POFILES) $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
top_distdir = ..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
#>- distdir: $(DISTFILES)
#>+ 1
distdir: distdir-nls $(DISTFILES)
@list='$(DISTFILES)'; for file in $$list; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkinstalldirs) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
#>- uninstall: uninstall-am
#>+ 1
uninstall: uninstall-nls uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
#>- clean: clean-am
#>+ 1
clean: kde-rpo-clean clean-am
#>- clean-am: clean-generic clean-libtool mostlyclean-am
#>+ 1
clean-am: clean-bcheck clean-generic clean-libtool mostlyclean-am
distclean: distclean-am
distclean-am: clean-am distclean-generic distclean-libtool
dvi: dvi-am
dvi-am:
info: info-am
info-am:
#>- install-data-am:
#>+ 1
install-data-am: install-nls
install-exec-am:
install-info: install-info-am
install-man:
installcheck-am:
#>- maintainer-clean: maintainer-clean-am
#>+ 1
maintainer-clean: clean-nls maintainer-clean-am
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
uninstall-am: uninstall-info-am
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
distclean distclean-generic distclean-libtool distdir dvi \
dvi-am info info-am install install-am install-data \
install-data-am install-exec install-exec-am install-info \
install-info-am install-man install-strip installcheck \
installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-generic \
mostlyclean-libtool uninstall uninstall-am uninstall-info-am
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
#>+ 2
KDE_DIST=nl.po cs.gmo ksensors.pot de.po de.gmo es.po fr.gmo es.gmo fr.po nl.gmo cs.po
#>+ 16
nl.gmo: nl.po
rm -f nl.gmo; $(GMSGFMT) -o nl.gmo $(srcdir)/nl.po
test ! -f nl.gmo || touch nl.gmo
fr.gmo: fr.po
rm -f fr.gmo; $(GMSGFMT) -o fr.gmo $(srcdir)/fr.po
test ! -f fr.gmo || touch fr.gmo
es.gmo: es.po
rm -f es.gmo; $(GMSGFMT) -o es.gmo $(srcdir)/es.po
test ! -f es.gmo || touch es.gmo
de.gmo: de.po
rm -f de.gmo; $(GMSGFMT) -o de.gmo $(srcdir)/de.po
test ! -f de.gmo || touch de.gmo
cs.gmo: cs.po
rm -f cs.gmo; $(GMSGFMT) -o cs.gmo $(srcdir)/cs.po
test ! -f cs.gmo || touch cs.gmo
#>+ 3
clean-nls:
-rm -f nl.gmo fr.gmo es.gmo de.gmo cs.gmo
#>+ 10
install-nls:
@for base in nl fr es de cs ; do \
echo $(INSTALL_DATA) $$base.gmo $(DESTDIR)$(kde_locale)/$$base/LC_MESSAGES/$(PACKAGE).mo ;\
$(mkinstalldirs) $(DESTDIR)$(kde_locale)/$$base/LC_MESSAGES ; \
if test -f $$base.gmo; then $(INSTALL_DATA) $$base.gmo $(DESTDIR)$(kde_locale)/$$base/LC_MESSAGES/$(PACKAGE).mo ;\
elif test -f $(srcdir)/$$base.gmo; then $(INSTALL_DATA) $(srcdir)/$$base.gmo $(DESTDIR)$(kde_locale)/$$base/LC_MESSAGES/$(PACKAGE).mo ;\
fi ;\
done
#>+ 7
uninstall-nls:
rm -f $(DESTDIR)$(kde_locale)/nl/LC_MESSAGES/$(PACKAGE).mo
rm -f $(DESTDIR)$(kde_locale)/fr/LC_MESSAGES/$(PACKAGE).mo
rm -f $(DESTDIR)$(kde_locale)/es/LC_MESSAGES/$(PACKAGE).mo
rm -f $(DESTDIR)$(kde_locale)/de/LC_MESSAGES/$(PACKAGE).mo
rm -f $(DESTDIR)$(kde_locale)/cs/LC_MESSAGES/$(PACKAGE).mo
#>+ 2
all-nls: $(GMOFILES)
#>+ 8
distdir-nls:$(GMOFILES)
for file in $(POFILES); do \
cp $(srcdir)/$$file $(distdir); \
done
for file in $(GMOFILES); do \
cp $(srcdir)/$$file $(distdir); \
done
#>+ 4
merge:
$(MAKE) -f $(top_srcdir)/admin/Makefile.common package-merge POFILES="${POFILES}" PACKAGE=${PACKAGE}
#>+ 2
docs-am:
#>+ 6
force-reedit:
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu po/Makefile
cd $(top_srcdir) && perl admin/am_edit ksensors-0.7.3/po/Makefile.in
#>+ 21
clean-bcheck:
rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
bcheck: bcheck-am
bcheck-am:
@for i in ; do \
if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
echo "$$i"; \
if ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(KDE_CXXFLAGS) --dump-class-hierarchy $$i.bchecktest.cc; then \
rm -f $$i.bchecktest.cc; exit 1; \
fi ; \
echo "" >> $$i.bchecktest.cc.class; \
perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
rm -f a.out; \
fi ; \
done
#>+ 3
final:
$(MAKE) all-am
#>+ 3
final-install:
$(MAKE) install-am
#>+ 3
no-final:
$(MAKE) all-am
#>+ 3
no-final-install:
$(MAKE) install-am
#>+ 3
cvs-clean:
$(MAKE) admindir=$(top_srcdir)/admin -f $(top_srcdir)/admin/Makefile.common cvs-clean
#>+ 3
kde-rpo-clean:
-rm -f *.rpo
#>+ 3
nmcheck:
nmcheck-am: nmcheck

Binary file not shown.

@ -0,0 +1,522 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-08-18 23:19+0200\n"
"PO-Revision-Date: 2002-01-14 18:20GMT\n"
"Last-Translator: Michal Čihař <cihar@email.cz>\n"
"Language-Team: Czech <C@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 0.9.5\n"
#: hdsensorslist.cpp:36
msgid "Hard Disks"
msgstr ""
#: i8ksensorslist.cpp:29
msgid "MainBoard"
msgstr ""
#: ksensorscfg.cpp:51
#, fuzzy
msgid "KSensors Configuration"
msgstr "Nastavení KSensors"
#: ksensorscfg.cpp:56
msgid "Global settings"
msgstr ""
#: ksensorscfg.cpp:68
#, fuzzy
msgid " sensors"
msgstr "O &aplikaci KSensors"
#: ksensorscfg.cpp:85
#, fuzzy
msgid "System Information"
msgstr "&Systémové informace"
#: lmsensorscfg.cpp:101
msgid "Temperature"
msgstr "Teplota"
#: lmsensorscfg.cpp:107
msgid "Fan"
msgstr "Ventilátor"
#: lmsensorscfg.cpp:110
msgid "Voltage"
msgstr "Napětí"
#: lmsensorsdock.cpp:62
msgid "&About KSensors"
msgstr "O &aplikaci KSensors"
#: lmsensorsdock.cpp:64 lmsensorsdock.cpp:124
msgid "&Minimize"
msgstr "Mi&nimalizovat"
#: lmsensorsdock.cpp:64 lmsensorsdock.cpp:124
msgid "&Restore"
msgstr "Obno&vit"
#: lmsensorsdock.cpp:65
msgid "&Exit"
msgstr "&Ukončit"
#: main.cpp:27
msgid "KSensors - A nice lmsensors frontend for KDE"
msgstr "KSensors - Pěkné rozhraní pro lmsemsors v KDE"
#: main.cpp:33
msgid "Don't dock in KDE system tray."
msgstr ""
#: main.cpp:34
msgid "Show splash screen."
msgstr ""
#: main.cpp:43 rc.cpp:5
msgid "KSensors"
msgstr ""
#: rc.cpp:1
msgid "C&ustom"
msgstr ""
#: rc.cpp:2
#, fuzzy
msgid "AboutCfgDesign"
msgstr "O &aplikaci KSensors"
#: rc.cpp:3
msgid "KSensors configuration"
msgstr "Nastavení KSensors"
#: rc.cpp:4
msgid "Monitoring your motherboard"
msgstr ""
#: rc.cpp:6
msgid ""
"Welcome to the KSensors configuration window. Click on the left to select a "
"configuration option."
msgstr ""
#: rc.cpp:7
#, fuzzy
msgid "GeneralCfg"
msgstr "Obecné"
#: rc.cpp:8
msgid "Panels size"
msgstr ""
#: 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 "Barvy"
#: rc.cpp:13
msgid "Startup"
msgstr ""
#: rc.cpp:14
msgid "Autostart KSensors on KDE startup"
msgstr ""
#: rc.cpp:15
#, fuzzy
msgid "LMSensorsCfgDesign"
msgstr "O &aplikaci KSensors"
#: rc.cpp:16
#, fuzzy
msgid "Sensors"
msgstr "O &aplikaci KSensors"
#: rc.cpp:17
msgid "General"
msgstr "Obecné"
#: rc.cpp:19
msgid "Description"
msgstr "Popis"
#: rc.cpp:21
msgid "Values"
msgstr "Hodnoty"
#: rc.cpp:23
msgid "Current"
msgstr "Současná"
#: rc.cpp:24
msgid "Maximum"
msgstr "Maximální"
#: 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 "Násobitel"
#: rc.cpp:37
msgid "Ideal"
msgstr "Ideální"
#: rc.cpp:38
#, fuzzy
msgid "Minimum"
msgstr "Minimální"
#: rc.cpp:39
msgid "Addition"
msgstr "Přičtení"
#: 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
#, fuzzy
msgid "Panel"
msgstr "Čas běhu systému"
#: rc.cpp:54 rc.cpp:58 rc.cpp:90
msgid "Visible"
msgstr ""
#: rc.cpp:56
msgid "Dock"
msgstr ""
#: rc.cpp:60
msgid "Alarm"
msgstr "Varování"
#: rc.cpp:63
msgid "Normal"
msgstr "Normální"
#: rc.cpp:64
msgid "Alarms"
msgstr "Varování"
#: rc.cpp:65
msgid "On reach alarm value:"
msgstr "Při dosažení hodnoty varování:"
#: rc.cpp:66
msgid "Apply to all sensors"
msgstr "Nastavit u všech čidel"
#: rc.cpp:67
msgid "Do nothing"
msgstr "Nedělat nic"
#: rc.cpp:68
msgid "Test"
msgstr "Vyzkoušet"
#: rc.cpp:69
msgid "Play alarm sound"
msgstr "Přehrát zvuk"
#: rc.cpp:70
msgid "Run command"
msgstr "Spustit příkaz"
#: rc.cpp:71 rc.cpp:92
#, fuzzy
msgid "Preferences"
msgstr "&Obecné nastavení"
#: rc.cpp:72
msgid "Temperatures scale"
msgstr "Jednotka teploty"
#: rc.cpp:73
msgid "Fahrenheit"
msgstr ""
#: rc.cpp:74
msgid "Celsius"
msgstr ""
#: rc.cpp:75
msgid "Kelvin"
msgstr ""
#: rc.cpp:76 rc.cpp:93
msgid "Update interval"
msgstr ""
#: rc.cpp:77 rc.cpp:94
msgid "s"
msgstr ""
#: rc.cpp:78
msgid "PaletteCfg"
msgstr ""
#: rc.cpp:79 rc.cpp:84
msgid "Title"
msgstr ""
#: rc.cpp:80
msgid "+3.5V"
msgstr ""
#: rc.cpp:81
msgid "Default colors"
msgstr ""
#: rc.cpp:82
msgid "Background"
msgstr ""
#: rc.cpp:85
#, fuzzy
msgid "Value"
msgstr "Hodnoty"
#: rc.cpp:87
#, fuzzy
msgid "SystemCfgDesign"
msgstr "O &aplikaci KSensors"
#: rc.cpp:88
msgid "System Panels"
msgstr ""
#: systemcfg.cpp:47
msgid "CPU Speed"
msgstr "Rychlost procesoru"
#: systemcfg.cpp:48
msgid "CPU State"
msgstr "Stav procesoru"
#: systemcfg.cpp:49
#, fuzzy
msgid "RAM Used"
msgstr "Použití RAM paměti"
#: systemcfg.cpp:50
#, fuzzy
msgid "SWAP Used"
msgstr "Použití swapu"
#: systemcfg.cpp:51
msgid "Up Time"
msgstr "Čas běhu systému"
#: _translatorinfo.cpp:1
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr "Michal Čihař"
#: _translatorinfo.cpp:3
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr "cihar@email.cz"
#, fuzzy
#~ msgid "LMSensorsDock"
#~ msgstr "O &aplikaci KSensors"
#, fuzzy
#~ msgid "Sensor"
#~ msgstr "O &aplikaci KSensors"
#, fuzzy
#~ msgid "LMSensors"
#~ msgstr "O &aplikaci KSensors"
#, fuzzy
#~ msgid "LMSensorsCfg"
#~ msgstr "O &aplikaci KSensors"
#, fuzzy
#~ msgid "KSensorsCfg"
#~ msgstr "O &aplikaci KSensors"
#, fuzzy
#~ msgid "LMSensorsChip"
#~ msgstr "O &aplikaci KSensors"
#, fuzzy
#~ msgid "SensorsList"
#~ msgstr "O &aplikaci KSensors"
#, fuzzy
#~ msgid "LMSensorsAlarms"
#~ msgstr "O &aplikaci KSensors"
#, fuzzy
#~ msgid "CpuPanel"
#~ msgstr "Čas běhu systému"
#~ msgid "A&pply"
#~ msgstr "&Použít"
#, fuzzy
#~ msgid "LMSensorPanel"
#~ msgstr "O &aplikaci KSensors"
#, fuzzy
#~ msgid "LMSensorsWidget"
#~ msgstr "O &aplikaci KSensors"
#, fuzzy
#~ msgid "InfoPanels"
#~ msgstr "O &aplikaci KSensors"
#, fuzzy
#~ msgid "HDSensorsList"
#~ msgstr "O &aplikaci KSensors"
#, fuzzy
#~ msgid "LMSensor"
#~ msgstr "O &aplikaci KSensors"
#, fuzzy
#~ msgid "UpTimePanel"
#~ msgstr "Čas běhu systému"
#, fuzzy
#~ msgid "LMSensorDockPanel"
#~ msgstr "O &aplikaci KSensors"
#, fuzzy
#~ msgid "KSensorsSplash"
#~ msgstr "O &aplikaci KSensors"
#~ msgid "&Accept"
#~ msgstr "&OK"
#~ msgid "Show"
#~ msgstr "Zobrazovat"
#~ msgid "In main window"
#~ msgstr "V hlavním okně"
#~ msgid "In dock"
#~ msgstr "V panelu"
#~ msgid "Correction factor "
#~ msgstr "Opravný faktor"
#~ msgid "Adjusts"
#~ msgstr "Úpravy"
#~ msgid "&Mainboard Sensors"
#~ msgstr "Čidla základní &desky"
#~ msgid "Mainboard sensors update interval"
#~ msgstr "Interval aktualizace čidel základní desky"
#~ msgid "System information update interval"
#~ msgstr "Interval aktualizace systémových informací"

Binary file not shown.

@ -0,0 +1,412 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
# FIRST AUTHOR <MvOstheim@web.de>, 2001.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-08-18 23:19+0200\n"
"PO-Revision-Date: 2002-05-23 20:13+0200\n"
"Last-Translator: Michael v.Ostheim <MvOstheim@web.de>\n"
"Language-Team: - <C@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 0.9.6\n"
#: hdsensorslist.cpp:36
msgid "Hard Disks"
msgstr "Festplatten"
#: i8ksensorslist.cpp:29
msgid "MainBoard"
msgstr ""
#: ksensorscfg.cpp:51
msgid "KSensors Configuration"
msgstr "KSensors Konfiguration"
#: ksensorscfg.cpp:56
msgid "Global settings"
msgstr "Globale Einstellungen"
#: ksensorscfg.cpp:68
msgid " sensors"
msgstr " Sensoren"
#: ksensorscfg.cpp:85
msgid "System Information"
msgstr "System-Informationen"
#: lmsensorscfg.cpp:101
msgid "Temperature"
msgstr "Temperatur"
#: lmsensorscfg.cpp:107
msgid "Fan"
msgstr "Lüfter"
#: lmsensorscfg.cpp:110
msgid "Voltage"
msgstr "Spannung"
#: lmsensorsdock.cpp:62
msgid "&About KSensors"
msgstr "Ü&ber KSensors"
#: lmsensorsdock.cpp:64 lmsensorsdock.cpp:124
msgid "&Minimize"
msgstr "&Minimiere"
#: lmsensorsdock.cpp:64 lmsensorsdock.cpp:124
msgid "&Restore"
msgstr "&Restauriere"
#: lmsensorsdock.cpp:65
msgid "&Exit"
msgstr "Bee&nde"
#: main.cpp:27
msgid "KSensors - A nice lmsensors frontend for KDE"
msgstr "KSensors - Ein benutzerfreundliches lmsensors Frontend für KDE"
#: main.cpp:33
msgid "Don't dock in KDE system tray."
msgstr "Nicht in der KDE Kontrollleiste andocken"
#: main.cpp:34
msgid "Show splash screen."
msgstr "Zeige Splashscreen"
#: main.cpp:43 rc.cpp:5
msgid "KSensors"
msgstr "KSensors"
#: rc.cpp:1
msgid "C&ustom"
msgstr ""
#: rc.cpp:2
msgid "AboutCfgDesign"
msgstr "AboutCfgDesign"
#: rc.cpp:3
msgid "KSensors configuration"
msgstr "KSensors Konfiguration"
#: rc.cpp:4
msgid "Monitoring your motherboard"
msgstr "Überwachung Ihrer Systemplatine"
#: rc.cpp:6
msgid ""
"Welcome to the KSensors configuration window. Click on the left to select a "
"configuration option."
msgstr ""
"Wilkommen zum KSensors Konfigurationsfenster. Klicken Sie links, um eine "
"Konfigurations-Option zu wählen."
#: rc.cpp:7
msgid "GeneralCfg"
msgstr "GeneralCfg"
#: rc.cpp:8
msgid "Panels size"
msgstr "Tafelgröße"
#: 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 "Farben"
#: rc.cpp:13
msgid "Startup"
msgstr ""
#: rc.cpp:14
msgid "Autostart KSensors on KDE startup"
msgstr ""
#: rc.cpp:15
msgid "LMSensorsCfgDesign"
msgstr "LMSensorsCfgDesign"
#: rc.cpp:16
msgid "Sensors"
msgstr "Sensoren"
#: rc.cpp:17
msgid "General"
msgstr "Allgemein"
#: rc.cpp:19
msgid "Description"
msgstr "Beschreibung"
#: rc.cpp:21
msgid "Values"
msgstr "Werte"
#: rc.cpp:23
msgid "Current"
msgstr "Aktuell"
#: 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 "Multiplizierer"
#: rc.cpp:37
msgid "Ideal"
msgstr "Ideal"
#: rc.cpp:38
msgid "Minimum"
msgstr "Minimum"
#: rc.cpp:39
msgid "Addition"
msgstr "Addition"
#: 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 "Tafel"
#: rc.cpp:54 rc.cpp:58 rc.cpp:90
msgid "Visible"
msgstr "Sichtbar"
#: rc.cpp:56
msgid "Dock"
msgstr "Andocken"
#: rc.cpp:60
msgid "Alarm"
msgstr "Alarm"
#: rc.cpp:63
msgid "Normal"
msgstr "Normal"
#: rc.cpp:64
msgid "Alarms"
msgstr "Alarme"
#: rc.cpp:65
msgid "On reach alarm value:"
msgstr "Beim Erreichen der Alarmschwelle:"
#: rc.cpp:66
msgid "Apply to all sensors"
msgstr "Auf alle Sensoren anwenden"
#: rc.cpp:67
msgid "Do nothing"
msgstr "Nichts tun"
#: rc.cpp:68
msgid "Test"
msgstr "Test"
#: rc.cpp:69
msgid "Play alarm sound"
msgstr "Alarmton abspielen"
#: rc.cpp:70
msgid "Run command"
msgstr "Kommando ausführen"
#: rc.cpp:71 rc.cpp:92
msgid "Preferences"
msgstr "&Allgemeine Einstellungen"
#: 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 "Auffrischungs-Intervall"
#: rc.cpp:77 rc.cpp:94
msgid "s"
msgstr "s"
#: rc.cpp:78
msgid "PaletteCfg"
msgstr ""
#: rc.cpp:79 rc.cpp:84
msgid "Title"
msgstr "Überschrift"
#: rc.cpp:80
msgid "+3.5V"
msgstr "+3.5V"
#: rc.cpp:81
msgid "Default colors"
msgstr "Voreingestellte Farben"
#: rc.cpp:82
msgid "Background"
msgstr "Hintergrund"
#: rc.cpp:85
msgid "Value"
msgstr "Wert"
#: rc.cpp:87
msgid "SystemCfgDesign"
msgstr "SystemCfgDesign"
#: rc.cpp:88
msgid "System Panels"
msgstr "Systemtafeln"
#: systemcfg.cpp:47
msgid "CPU Speed"
msgstr "CPU Geschwindigkeit"
#: systemcfg.cpp:48
msgid "CPU State"
msgstr "CPU Status"
#: systemcfg.cpp:49
msgid "RAM Used"
msgstr "Belegter RAM Speicher"
#: systemcfg.cpp:50
msgid "SWAP Used"
msgstr "Belegter SWAP Speicher"
#: systemcfg.cpp:51
msgid "Up Time"
msgstr "Up Time"
#: _translatorinfo.cpp:1
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr "Michael v.Ostheim"
#: _translatorinfo.cpp:3
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr "MvOstheim@web.de"

Binary file not shown.

@ -0,0 +1,412 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
# FIRST AUTHOR <michaell@teleline.es>, 2001.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-08-18 23:19+0200\n"
"PO-Revision-Date: 2002-05-21 00:45+0200\n"
"Last-Translator: \n"
"Language-Team: <es@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 0.9.6\n"
#: hdsensorslist.cpp:36
msgid "Hard Disks"
msgstr "Discos duros"
#: i8ksensorslist.cpp:29
msgid "MainBoard"
msgstr ""
#: ksensorscfg.cpp:51
msgid "KSensors Configuration"
msgstr "Configuración de KSensors"
#: ksensorscfg.cpp:56
msgid "Global settings"
msgstr "Opciones generales"
#: ksensorscfg.cpp:68
msgid " sensors"
msgstr " sensores"
#: ksensorscfg.cpp:85
msgid "System Information"
msgstr "Información del sistema"
#: lmsensorscfg.cpp:101
msgid "Temperature"
msgstr "Temperatura"
#: lmsensorscfg.cpp:107
msgid "Fan"
msgstr "Ventilador"
#: lmsensorscfg.cpp:110
msgid "Voltage"
msgstr "Tensión"
#: lmsensorsdock.cpp:62
msgid "&About KSensors"
msgstr "&Acerca de KSensors"
#: lmsensorsdock.cpp:64 lmsensorsdock.cpp:124
msgid "&Minimize"
msgstr "&Minimizar"
#: lmsensorsdock.cpp:64 lmsensorsdock.cpp:124
msgid "&Restore"
msgstr "&Restaurar"
#: lmsensorsdock.cpp:65
msgid "&Exit"
msgstr "&Finalizar"
#: main.cpp:27
msgid "KSensors - A nice lmsensors frontend for KDE"
msgstr "KSensors - Un agradable lmsensors frontend para KDE"
#: main.cpp:33
msgid "Don't dock in KDE system tray."
msgstr "No empotrar en la barra de tareas de KDE."
#: main.cpp:34
msgid "Show splash screen."
msgstr "Mostrar ventana de presentación."
#: main.cpp:43 rc.cpp:5
msgid "KSensors"
msgstr ""
#: rc.cpp:1
msgid "C&ustom"
msgstr ""
#: rc.cpp:2
msgid "AboutCfgDesign"
msgstr "AboutCfgDesign"
#: rc.cpp:3
msgid "KSensors configuration"
msgstr "Configuración de KSensors"
#: rc.cpp:4
msgid "Monitoring your motherboard"
msgstr "Monitorizando su placa base"
#: rc.cpp:6
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 "
"para seleccionar una opción de configuración."
#: rc.cpp:7
msgid "GeneralCfg"
msgstr "GeneralCfg"
#: rc.cpp:8
msgid "Panels size"
msgstr "Tamaño de los paneles"
#: 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 "Colores"
#: rc.cpp:13
msgid "Startup"
msgstr "Inicio"
#: rc.cpp:14
msgid "Autostart KSensors on KDE startup"
msgstr "Ejecutar KSensors al iniciar KDE"
#: rc.cpp:15
msgid "LMSensorsCfgDesign"
msgstr "LMSensorsCfgDesign"
#: rc.cpp:16
msgid "Sensors"
msgstr "Sensores"
#: rc.cpp:17
msgid "General"
msgstr "General"
#: rc.cpp:19
msgid "Description"
msgstr "Descripción"
#: rc.cpp:21
msgid "Values"
msgstr "Valores"
#: rc.cpp:23
msgid "Current"
msgstr "Actual"
#: rc.cpp:24
msgid "Maximum"
msgstr "Máximo"
#: 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 "Multiplicar"
#: rc.cpp:37
msgid "Ideal"
msgstr "Ideal"
#: rc.cpp:38
msgid "Minimum"
msgstr "Mínimo"
#: rc.cpp:39
msgid "Addition"
msgstr "Sumar"
#: 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 "Panel"
#: rc.cpp:54 rc.cpp:58 rc.cpp:90
msgid "Visible"
msgstr "Visible"
#: rc.cpp:56
msgid "Dock"
msgstr "Dock"
#: rc.cpp:60
msgid "Alarm"
msgstr "Alarma"
#: rc.cpp:63
msgid "Normal"
msgstr "Normal"
#: rc.cpp:64
msgid "Alarms"
msgstr "Alarmas"
#: rc.cpp:65
msgid "On reach alarm value:"
msgstr "En caso de alarma"
#: rc.cpp:66
msgid "Apply to all sensors"
msgstr "Aplicar a todos los sensores"
#: rc.cpp:67
msgid "Do nothing"
msgstr "No hacer nada"
#: rc.cpp:68
msgid "Test"
msgstr "Probar"
#: rc.cpp:69
msgid "Play alarm sound"
msgstr "Sonido de aviso"
#: rc.cpp:70
msgid "Run command"
msgstr "Ejecutar orden"
#: rc.cpp:71 rc.cpp:92
msgid "Preferences"
msgstr "Preferencias"
#: rc.cpp:72
msgid "Temperatures scale"
msgstr "Escala de las temperaturas"
#: 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 "Intervalo de actualización"
#: rc.cpp:77 rc.cpp:94
msgid "s"
msgstr ""
#: rc.cpp:78
msgid "PaletteCfg"
msgstr ""
#: rc.cpp:79 rc.cpp:84
msgid "Title"
msgstr ""
#: rc.cpp:80
msgid "+3.5V"
msgstr ""
#: rc.cpp:81
msgid "Default colors"
msgstr "Colores por defecto"
#: rc.cpp:82
msgid "Background"
msgstr "Fondo"
#: rc.cpp:85
msgid "Value"
msgstr "Valor"
#: rc.cpp:87
msgid "SystemCfgDesign"
msgstr "SystemCfgDesign"
#: rc.cpp:88
msgid "System Panels"
msgstr "Paneles del sistema"
#: systemcfg.cpp:47
msgid "CPU Speed"
msgstr "Velocidad del procesador"
#: systemcfg.cpp:48
msgid "CPU State"
msgstr "Estado del procesador"
#: systemcfg.cpp:49
msgid "RAM Used"
msgstr "Memoria RAM usada"
#: systemcfg.cpp:50
msgid "SWAP Used"
msgstr "Memoria SWAP usada"
#: systemcfg.cpp:51
msgid "Up Time"
msgstr "Tiempo encendido"
#: _translatorinfo.cpp:1
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr "Miguel Novas"
#: _translatorinfo.cpp:3
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr "michaell@teleline.es"

Binary file not shown.

@ -0,0 +1,414 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
# FIRST AUTHOR <michaell@teleline.es>, 2001.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-08-18 23:19+0200\n"
"PO-Revision-Date: 2002-05-25 21:46GMT+1\n"
"Last-Translator: Aurelien Jarno <aurelien@aurel32.net>\n"
"Language-Team: Français <de@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 0.9.5\n"
#: hdsensorslist.cpp:36
msgid "Hard Disks"
msgstr "Disques durs"
#: i8ksensorslist.cpp:29
msgid "MainBoard"
msgstr ""
#: ksensorscfg.cpp:51
msgid "KSensors Configuration"
msgstr "Configuration de KSensors"
#: ksensorscfg.cpp:56
msgid "Global settings"
msgstr "Paramètres globaux"
#: ksensorscfg.cpp:68
msgid " sensors"
msgstr " capteurs"
#: ksensorscfg.cpp:85
msgid "System Information"
msgstr "Informations système"
#: lmsensorscfg.cpp:101
msgid "Temperature"
msgstr "Température"
#: lmsensorscfg.cpp:107
msgid "Fan"
msgstr "Ventilateur"
#: lmsensorscfg.cpp:110
msgid "Voltage"
msgstr "Tension"
#: lmsensorsdock.cpp:62
msgid "&About KSensors"
msgstr "&A propos de KSensors"
#: lmsensorsdock.cpp:64 lmsensorsdock.cpp:124
msgid "&Minimize"
msgstr "&Minimiser"
#: lmsensorsdock.cpp:64 lmsensorsdock.cpp:124
msgid "&Restore"
msgstr "&Restaurer"
#: lmsensorsdock.cpp:65
msgid "&Exit"
msgstr "&Quitter"
#: main.cpp:27
msgid "KSensors - A nice lmsensors frontend for KDE"
msgstr "KSensors - Un frontend sympatique pour lm-sensors et KDE"
#: main.cpp:33
msgid "Don't dock in KDE system tray."
msgstr "Ne pas intégrer dans le tableau de bord de KDE"
#: main.cpp:34
msgid "Show splash screen."
msgstr "Afficher l'écran de démarrage"
#: main.cpp:43 rc.cpp:5
msgid "KSensors"
msgstr ""
#: rc.cpp:1
msgid "C&ustom"
msgstr ""
#: rc.cpp:2
msgid "AboutCfgDesign"
msgstr ""
#: rc.cpp:3
msgid "KSensors configuration"
msgstr "Configuration de KSensors"
#: rc.cpp:4
msgid "Monitoring your motherboard"
msgstr "Surveillance de votre carte-mère"
#: rc.cpp:6
msgid ""
"Welcome to the KSensors configuration window. Click on the left to select a "
"configuration option."
msgstr ""
"Bienvenue dans la fenêtre de configuration de KSensors. Cliquez à gauche "
"pour sélectionner une option de configuration."
#: rc.cpp:7
msgid "GeneralCfg"
msgstr "GeneralCfg"
#: rc.cpp:8
msgid "Panels size"
msgstr "Taille des panneaux"
#: 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 "Couleurs"
#: rc.cpp:13
msgid "Startup"
msgstr "Démarrage"
#: rc.cpp:14
msgid "Autostart KSensors on KDE startup"
msgstr "Lancer automatiquement KSensors au démarrage de KDE"
#: rc.cpp:15
msgid "LMSensorsCfgDesign"
msgstr "LMSensorsCfgDesign"
#: rc.cpp:16
msgid "Sensors"
msgstr "Capteurs"
#: rc.cpp:17
msgid "General"
msgstr "Général"
#: rc.cpp:19
msgid "Description"
msgstr "Description"
#: rc.cpp:21
msgid "Values"
msgstr "Valeurs"
#: rc.cpp:23
msgid "Current"
msgstr "Actuelle"
#: 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 "Multiplicateur"
#: rc.cpp:37
msgid "Ideal"
msgstr "Idéale"
#: rc.cpp:38
msgid "Minimum"
msgstr "Minimum"
#: rc.cpp:39
msgid "Addition"
msgstr "Ajouter"
#: 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 "Panneau"
#: rc.cpp:54 rc.cpp:58 rc.cpp:90
msgid "Visible"
msgstr "Visible"
#: rc.cpp:56
msgid "Dock"
msgstr "Incrustation"
#: rc.cpp:60
msgid "Alarm"
msgstr "Alarme"
#: rc.cpp:63
msgid "Normal"
msgstr "Normal"
#: rc.cpp:64
msgid "Alarms"
msgstr "Alarmes"
#: rc.cpp:65
msgid "On reach alarm value:"
msgstr "En cas d'alarme :"
#: rc.cpp:66
msgid "Apply to all sensors"
msgstr "Appliquer à tous les capteurs"
#: rc.cpp:67
msgid "Do nothing"
msgstr "Ne rien faire"
#: rc.cpp:68
msgid "Test"
msgstr "Tester"
#: rc.cpp:69
msgid "Play alarm sound"
msgstr "Jouer un fichier son"
#: rc.cpp:70
msgid "Run command"
msgstr "Exécuter la commande"
#: rc.cpp:71 rc.cpp:92
msgid "Preferences"
msgstr "Préférences"
#: rc.cpp:72
msgid "Temperatures scale"
msgstr "Echelles de température"
#: 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 "Intervalle de rafraichissement"
#: rc.cpp:77 rc.cpp:94
msgid "s"
msgstr "s"
#: rc.cpp:78
msgid "PaletteCfg"
msgstr ""
#: rc.cpp:79 rc.cpp:84
msgid "Title"
msgstr "Titre"
#: rc.cpp:80
msgid "+3.5V"
msgstr "+3.5V"
#: rc.cpp:81
msgid "Default colors"
msgstr "Couleurs par défaut"
#: rc.cpp:82
msgid "Background"
msgstr "Arrière plan"
#: rc.cpp:85
msgid "Value"
msgstr "Valeur"
#: rc.cpp:87
msgid "SystemCfgDesign"
msgstr ""
#: rc.cpp:88
msgid "System Panels"
msgstr "Panneaux système"
#: systemcfg.cpp:47
msgid "CPU Speed"
msgstr "Vitesse du processeur"
#: systemcfg.cpp:48
msgid "CPU State"
msgstr "État du processeur"
#: systemcfg.cpp:49
msgid "RAM Used"
msgstr "RAM utilisée"
#: systemcfg.cpp:50
msgid "SWAP Used"
msgstr "SWAP utilisé"
#: systemcfg.cpp:51
msgid "Up Time"
msgstr "Up Time"
#: _translatorinfo.cpp:1
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr "Aurélien Jarno"
#: _translatorinfo.cpp:3
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr "aurelien@aurel32.net"

@ -0,0 +1,411 @@
# 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.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-08-18 23:19+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: hdsensorslist.cpp:36
msgid "Hard Disks"
msgstr ""
#: i8ksensorslist.cpp:29
msgid "MainBoard"
msgstr ""
#: ksensorscfg.cpp:51
msgid "KSensors Configuration"
msgstr ""
#: ksensorscfg.cpp:56
msgid "Global settings"
msgstr ""
#: ksensorscfg.cpp:68
msgid " sensors"
msgstr ""
#: ksensorscfg.cpp:85
msgid "System Information"
msgstr ""
#: lmsensorscfg.cpp:101
msgid "Temperature"
msgstr ""
#: lmsensorscfg.cpp:107
msgid "Fan"
msgstr ""
#: lmsensorscfg.cpp:110
msgid "Voltage"
msgstr ""
#: lmsensorsdock.cpp:62
msgid "&About KSensors"
msgstr ""
#: lmsensorsdock.cpp:64 lmsensorsdock.cpp:124
msgid "&Minimize"
msgstr ""
#: lmsensorsdock.cpp:64 lmsensorsdock.cpp:124
msgid "&Restore"
msgstr ""
#: lmsensorsdock.cpp:65
msgid "&Exit"
msgstr ""
#: main.cpp:27
msgid "KSensors - A nice lmsensors frontend for KDE"
msgstr ""
#: main.cpp:33
msgid "Don't dock in KDE system tray."
msgstr ""
#: main.cpp:34
msgid "Show splash screen."
msgstr ""
#: main.cpp:43 rc.cpp:5
msgid "KSensors"
msgstr ""
#: rc.cpp:1
msgid "C&ustom"
msgstr ""
#: rc.cpp:2
msgid "AboutCfgDesign"
msgstr ""
#: rc.cpp:3
msgid "KSensors configuration"
msgstr ""
#: rc.cpp:4
msgid "Monitoring your motherboard"
msgstr ""
#: rc.cpp:6
msgid ""
"Welcome to the KSensors configuration window. Click on the left to select a "
"configuration option."
msgstr ""
#: rc.cpp:7
msgid "GeneralCfg"
msgstr ""
#: rc.cpp:8
msgid "Panels size"
msgstr ""
#: 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 ""
#: rc.cpp:13
msgid "Startup"
msgstr ""
#: rc.cpp:14
msgid "Autostart KSensors on KDE startup"
msgstr ""
#: rc.cpp:15
msgid "LMSensorsCfgDesign"
msgstr ""
#: rc.cpp:16
msgid "Sensors"
msgstr ""
#: rc.cpp:17
msgid "General"
msgstr ""
#: rc.cpp:19
msgid "Description"
msgstr ""
#: rc.cpp:21
msgid "Values"
msgstr ""
#: rc.cpp:23
msgid "Current"
msgstr ""
#: rc.cpp:24
msgid "Maximum"
msgstr ""
#: 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 ""
#: rc.cpp:37
msgid "Ideal"
msgstr ""
#: rc.cpp:38
msgid "Minimum"
msgstr ""
#: rc.cpp:39
msgid "Addition"
msgstr ""
#: 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 ""
#: rc.cpp:56
msgid "Dock"
msgstr ""
#: rc.cpp:60
msgid "Alarm"
msgstr ""
#: rc.cpp:63
msgid "Normal"
msgstr ""
#: rc.cpp:64
msgid "Alarms"
msgstr ""
#: rc.cpp:65
msgid "On reach alarm value:"
msgstr ""
#: rc.cpp:66
msgid "Apply to all sensors"
msgstr ""
#: rc.cpp:67
msgid "Do nothing"
msgstr ""
#: rc.cpp:68
msgid "Test"
msgstr ""
#: rc.cpp:69
msgid "Play alarm sound"
msgstr ""
#: rc.cpp:70
msgid "Run command"
msgstr ""
#: rc.cpp:71 rc.cpp:92
msgid "Preferences"
msgstr ""
#: rc.cpp:72
msgid "Temperatures scale"
msgstr ""
#: rc.cpp:73
msgid "Fahrenheit"
msgstr ""
#: rc.cpp:74
msgid "Celsius"
msgstr ""
#: rc.cpp:75
msgid "Kelvin"
msgstr ""
#: rc.cpp:76 rc.cpp:93
msgid "Update interval"
msgstr ""
#: rc.cpp:77 rc.cpp:94
msgid "s"
msgstr ""
#: rc.cpp:78
msgid "PaletteCfg"
msgstr ""
#: rc.cpp:79 rc.cpp:84
msgid "Title"
msgstr ""
#: rc.cpp:80
msgid "+3.5V"
msgstr ""
#: rc.cpp:81
msgid "Default colors"
msgstr ""
#: rc.cpp:82
msgid "Background"
msgstr ""
#: rc.cpp:85
msgid "Value"
msgstr ""
#: rc.cpp:87
msgid "SystemCfgDesign"
msgstr ""
#: rc.cpp:88
msgid "System Panels"
msgstr ""
#: systemcfg.cpp:47
msgid "CPU Speed"
msgstr ""
#: systemcfg.cpp:48
msgid "CPU State"
msgstr ""
#: systemcfg.cpp:49
msgid "RAM Used"
msgstr ""
#: systemcfg.cpp:50
msgid "SWAP Used"
msgstr ""
#: systemcfg.cpp:51
msgid "Up Time"
msgstr ""
#: _translatorinfo.cpp:1
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr ""
#: _translatorinfo.cpp:3
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr ""

Binary file not shown.

@ -0,0 +1,413 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
# FIRST AUTHOR <MvOstheim@web.de>, 2001.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-08-18 23:19+0200\n"
"PO-Revision-Date: 2002-01-13 23:12CET\n"
"Last-Translator: Jacco van Koll <jko@haringstad.com>\n"
"Language-Team: Nederlands <i18n@kde.nl>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 0.9.5\n"
#: hdsensorslist.cpp:36
msgid "Hard Disks"
msgstr ""
#: i8ksensorslist.cpp:29
msgid "MainBoard"
msgstr ""
#: ksensorscfg.cpp:51
msgid "KSensors Configuration"
msgstr "KSensors Configuratie"
#: ksensorscfg.cpp:56
msgid "Global settings"
msgstr ""
#: ksensorscfg.cpp:68
msgid " sensors"
msgstr ""
#: ksensorscfg.cpp:85
msgid "System Information"
msgstr "Systeem Informatie"
#: lmsensorscfg.cpp:101
msgid "Temperature"
msgstr "Temperatuur"
#: lmsensorscfg.cpp:107
msgid "Fan"
msgstr "Ventilator"
#: lmsensorscfg.cpp:110
msgid "Voltage"
msgstr "Voltage"
#: lmsensorsdock.cpp:62
msgid "&About KSensors"
msgstr "O&ver KSensors"
#: lmsensorsdock.cpp:64 lmsensorsdock.cpp:124
msgid "&Minimize"
msgstr "&Minimaliseren"
#: lmsensorsdock.cpp:64 lmsensorsdock.cpp:124
msgid "&Restore"
msgstr "&Terug plaatsen"
#: lmsensorsdock.cpp:65
msgid "&Exit"
msgstr "Beë&indigen"
#: main.cpp:27
msgid "KSensors - A nice lmsensors frontend for KDE"
msgstr "KSensors - Een gebruiksvriendelijke interface voor KDE"
#: main.cpp:33
msgid "Don't dock in KDE system tray."
msgstr ""
#: main.cpp:34
msgid "Show splash screen."
msgstr ""
#: main.cpp:43 rc.cpp:5
msgid "KSensors"
msgstr "KSensors"
#: rc.cpp:1
msgid "C&ustom"
msgstr ""
#: rc.cpp:2
msgid "AboutCfgDesign"
msgstr "AboutCfgDesign"
#: rc.cpp:3
msgid "KSensors configuration"
msgstr "KSensors Configuratie"
#: rc.cpp:4
msgid "Monitoring your motherboard"
msgstr ""
#: rc.cpp:6
msgid ""
"Welcome to the KSensors configuration window. Click on the left to select a "
"configuration option."
msgstr ""
#: rc.cpp:7
msgid "GeneralCfg"
msgstr "GeneralCfg"
#: rc.cpp:8
msgid "Panels size"
msgstr ""
#: 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 "Kleuren"
#: rc.cpp:13
msgid "Startup"
msgstr ""
#: rc.cpp:14
msgid "Autostart KSensors on KDE startup"
msgstr ""
#: rc.cpp:15
msgid "LMSensorsCfgDesign"
msgstr "LMSensorsCfgDesign"
#: rc.cpp:16
msgid "Sensors"
msgstr ""
#: rc.cpp:17
msgid "General"
msgstr "Algemeen"
#: rc.cpp:19
msgid "Description"
msgstr "Beschrijving"
#: rc.cpp:21
msgid "Values"
msgstr "Waarden"
#: rc.cpp:23
msgid "Current"
msgstr "Huidig"
#: 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 "Vermenigvuldiger"
#: rc.cpp:37
msgid "Ideal"
msgstr "Ideaal"
#: rc.cpp:38
msgid "Minimum"
msgstr "Minimum"
#: rc.cpp:39
msgid "Addition"
msgstr "Toevoeging"
#: 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 "Paneel"
#: rc.cpp:54 rc.cpp:58 rc.cpp:90
msgid "Visible"
msgstr ""
#: rc.cpp:56
msgid "Dock"
msgstr ""
#: rc.cpp:60
msgid "Alarm"
msgstr "Alarm"
#: rc.cpp:63
msgid "Normal"
msgstr "Normaal"
#: rc.cpp:64
msgid "Alarms"
msgstr "Alarmen"
#: rc.cpp:65
msgid "On reach alarm value:"
msgstr "Bij bereiken alarm waarde:"
#: rc.cpp:66
msgid "Apply to all sensors"
msgstr "Toekennen aan alle sensors"
#: rc.cpp:67
msgid "Do nothing"
msgstr "Doe niets"
#: rc.cpp:68
msgid "Test"
msgstr "Test"
#: rc.cpp:69
msgid "Play alarm sound"
msgstr "Speel alarmtoon af"
#: rc.cpp:70
msgid "Run command"
msgstr "Commando uitvoeren"
#: rc.cpp:71 rc.cpp:92
msgid "Preferences"
msgstr ""
#: rc.cpp:72
msgid "Temperatures scale"
msgstr "Temperatuur Schaal"
#: 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 ""
#: rc.cpp:77 rc.cpp:94
msgid "s"
msgstr "s"
#: rc.cpp:78
msgid "PaletteCfg"
msgstr ""
#: rc.cpp:79 rc.cpp:84
msgid "Title"
msgstr ""
#: rc.cpp:80
msgid "+3.5V"
msgstr ""
#: rc.cpp:81
msgid "Default colors"
msgstr ""
#: rc.cpp:82
msgid "Background"
msgstr ""
#: rc.cpp:85
msgid "Value"
msgstr "Waarden"
#: rc.cpp:87
msgid "SystemCfgDesign"
msgstr "SystemCfgDesign"
#: rc.cpp:88
msgid "System Panels"
msgstr ""
#: systemcfg.cpp:47
msgid "CPU Speed"
msgstr "Processor Snelheid"
#: systemcfg.cpp:48
msgid "CPU State"
msgstr "Processor Status"
#: systemcfg.cpp:49
#, fuzzy
msgid "RAM Used"
msgstr ""
#: systemcfg.cpp:50
#, fuzzy
msgid "SWAP Used"
msgstr ""
#: systemcfg.cpp:51
msgid "Up Time"
msgstr "Looptijd"
#: _translatorinfo.cpp:1
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr "Jacco van Koll"
#: _translatorinfo.cpp:3
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr "jko@haringstad.com jko@interans.com"

@ -0,0 +1,57 @@
# set the include path for X, qt and KDE
INCLUDES = $(all_includes)
# these are the headers for your project
noinst_HEADERS = ksensors.h aboutcfgdesign.h \
cpupanel.h cputimepanel.h generalcfgdesign.h generalcfg.h \
hdsensorslist.h i8ksensorslist.h infopanels.h ksensorscfg.h \
ksensors.h ksensorssplash.h lmsensordockpanel.h lmsensor.h \
lmsensorpanel.h lmsensorsalarms.h lmsensorscfgdesign.h \
lmsensorscfg.h lmsensorschip.h lmsensorsdock.h lmsensors.h \
lmsensorswidget.h palettecfgdesign.h palettecfg.h panel.h \
panelsgroup.h processexec.h procinfo.h qbarmeter.h \
qdialarc.h qlcddraw.h qlcdstring.h rampanel.h sensor.h \
sensorslist.h systemcfgdesign.h systemcfg.h uptimepanel.h
# let automoc handle all of the meta source files (moc)
METASOURCES = AUTO
messages: rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/ksensors.pot
#########################################################################
# APPLICATION SECTION
#########################################################################
# this is the program that gets installed. it's name is used for all
# of the other Makefile.am variables
bin_PROGRAMS = ksensors
# the application source, library search path, and link libraries
ksensors_SOURCES = main.cpp ksensors.cpp aboutcfgdesign.ui \
cpupanel.cpp cputimepanel.cpp generalcfg.cpp \
generalcfgdesign.ui hdsensorslist.cpp i8ksensorslist.cpp \
infopanels.cpp ksensorscfg.cpp \
ksensorssplash.cpp lmsensor.cpp lmsensordockpanel.cpp \
lmsensorpanel.cpp lmsensorsalarms.cpp lmsensorscfg.cpp \
lmsensorscfgdesign.ui lmsensorschip.cpp lmsensors.cpp \
lmsensorsdock.cpp lmsensorswidget.cpp palettecfg.cpp \
palettecfgdesign.ui panel.cpp panelsgroup.cpp \
processexec.cpp procinfo.cpp qbarmeter.cpp \
qdialarc.cpp qlcdraw.cpp qlcdstring.cpp \
rampanel.cpp sensor.cpp sensorslist.cpp \
systemcfg.cpp systemcfgdesign.ui uptimepanel.cpp
ksensors_LDFLAGS = $(KDE_RPATH) $(all_libraries)
ksensors_LDADD = $(LIB_KDEUI) $(LIB_KDECORE) -lsensors -lm
# this is where the desktop file will go
shelldesktopdir = $(kde_appsdir)/Utilities
shelldesktop_DATA = ksensors.desktop
# this is where the shell's XML-GUI resource file goes
shellrcdir = $(kde_datadir)/ksensors
shellrc_DATA = ksensorsui.rc
SUBDIRS = pics sounds

File diff suppressed because it is too large Load Diff

@ -0,0 +1,458 @@
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './aboutcfgdesign.ui'
**
** Created: mer aoû 18 23:39:01 2004
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "aboutcfgdesign.h"
#include <qvariant.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>
static const char* const img0_aboutcfgdesign[] = {
"32 32 76 2",
"Qt c None",
".# c #000000",
".R c #292429",
".P c #292829",
".S c #292c29",
".T c #312c31",
".U c #313031",
".X c #313431",
".Y c #393439",
".2 c #393839",
".6 c #393c39",
".5 c #413c41",
"#a c #5a5d5a",
"#d c #625d62",
".7 c #626162",
".3 c #626562",
".8 c #6a656a",
".4 c #6a696a",
".9 c #736d73",
".Z c #737173",
".V c #737573",
".0 c #7b757b",
".W c #7b797b",
".L c #7b7d7b",
".M c #837d83",
".G c #838183",
".A c #838583",
".Q c #83858b",
".H c #8b858b",
".B c #8b898b",
".N c #8b8994",
".O c #8b8d8b",
".t c #8b8d94",
".I c #948d94",
".u c #949194",
".C c #94919c",
".x c #94959c",
".o c #9c959c",
".v c #9c999c",
".p c #9c99a4",
".q c #9c9da4",
".F c #a49da4",
".K c #a49dac",
".y c #a4a1a4",
".w c #a4a1ac",
".b c #bdf600",
".l c #c5d600",
".k c #c5d608",
".h c #c5da00",
".g c #c5de08",
".f c #c5ea00",
".c c #c5ee00",
".e c #c5f200",
".d c #c5f208",
".a c #c5f600",
".s c #cdba08",
".r c #cdbe08",
".m c #cdc608",
".n c #cdc610",
".j c #cdd608",
".i c #cdde08",
".z c #d5ae10",
".D c #d5d2d5",
".E c #d5d6d5",
".J c #ded6de",
"#i c #e64418",
"#j c #e64820",
"#g c #e64c18",
"#e c #e64c20",
"#b c #e65518",
"#c c #e65520",
"#. c #e65918",
"## c #e65d18",
".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"};
/*
* 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 ),
image0( (const char **) img0_aboutcfgdesign )
{
if ( !name )
setName( "AboutCfgDesign" );
AboutCfgDesignLayout = new QVBoxLayout( 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 );
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 );
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 );
pal.setDisabled( cg );
Frame3->setPalette( pal );
Frame3->setFrameShape( QFrame::NoFrame );
Frame3->setFrameShadow( QFrame::Plain );
PixmapLabel1 = new QLabel( Frame3, "PixmapLabel1" );
PixmapLabel1->setGeometry( QRect( 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_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 );
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 );
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 );
pal.setDisabled( cg );
Frame4->setPalette( pal );
Frame4->setFrameShape( QFrame::NoFrame );
Frame4->setFrameShadow( QFrame::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 );
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 );
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 );
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 );
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 );
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 );
pal.setDisabled( cg );
Frame5->setPalette( pal );
Frame5->setFrameShape( QFrame::NoFrame );
Frame5->setFrameShadow( QFrame::Plain );
Frame5Layout = new QHBoxLayout( 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 );
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 );
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 );
pal.setDisabled( cg );
Frame6->setPalette( pal );
Frame6->setFrameShape( QFrame::NoFrame );
Frame6->setFrameShadow( QFrame::Plain );
labelTitle = new QLabel( Frame6, "labelTitle" );
labelTitle->setGeometry( QRect( 19, 19, 221, 16 ) );
QFont 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 ) );
Frame5Layout->addWidget( Frame6 );
Spacer1 = new QSpacerItem( 61, 20, QSizePolicy::Fixed, QSizePolicy::Minimum );
Frame5Layout->addItem( Spacer1 );
AboutCfgDesignLayout->addWidget( Frame5 );
languageChange();
resize( QSize(413, 353).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
/*
* Destroys the object and frees any allocated resources
*/
AboutCfgDesign::~AboutCfgDesign()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void AboutCfgDesign::languageChange()
{
setCaption( tr2i18n( "AboutCfgDesign" ) );
TextLabel2->setText( tr2i18n( "KSensors configuration" ) );
TextLabel1->setText( tr2i18n( "Monitoring your motherboard" ) );
labelTitle->setText( tr2i18n( "KSensors" ) );
TextLabel3_2->setText( tr2i18n( "Welcome to the KSensors configuration window. Click on the left to select a configuration option." ) );
}
#include "aboutcfgdesign.moc"

@ -0,0 +1,55 @@
/****************************************************************************
** Form interface generated from reading ui file './aboutcfgdesign.ui'
**
** Created: mer aoû 18 23:39:01 2004
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#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
{
Q_OBJECT
public:
AboutCfgDesign( QWidget* 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;
protected:
QVBoxLayout* AboutCfgDesignLayout;
QHBoxLayout* Frame5Layout;
QSpacerItem* Spacer1;
protected slots:
virtual void languageChange();
private:
QPixmap image0;
};
#endif // ABOUTCFGDESIGN_H

File diff suppressed because it is too large Load Diff

@ -0,0 +1,140 @@
/***************************************************************************
cpudisplay.cpp - description
-------------------
begin : Sun Nov 25 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "cpupanel.h"
#include "qlcddraw.h"
#include <qcolor.h>
#include <qpainter.h>
#include <qlcdnumber.h>
#include <string.h>
bool getCpuInfoValue(const char *name,QString &value)
{
char buffer[128];
char *ptr;
FILE *fp;
bool result;
result= false;
if( (fp= fopen("/proc/cpuinfo","r")) ) {
while( fgets(buffer, 127, fp) ) {
if(!strncmp(name,buffer,strlen(name))) {
ptr= strchr(buffer,':');
if(ptr) {
value= (const char *)(ptr+2);
value = value.stripWhiteSpace();
}
result= true;
break;
}
}
fclose(fp);
}
return result;
}
void adjustString(QString &str,int maxlen)
{
int i= str.find('(');
str.truncate(maxlen);
if(i>=0) str.truncate(i);
str= str.stripWhiteSpace();
}
CpuPanel::CpuPanel(QWidget *parent, const char *name) : Panel(parent,name)
{
sCpu= "Unknow";
getCpuInfoValue("model name",sCpu);
adjustString(sCpu,16);
sVendor= "Unknow";
getCpuInfoValue("vendor_id",sVendor);
adjustString(sVendor,16);
sBogomips= "0";
getCpuInfoValue("bogomips",sBogomips);
sBogomips.sprintf("%.0f BMPS",sBogomips.toDouble());
QString sSpeed= "0";
getCpuInfoValue("cpu MHz",sSpeed);
sSpeed.sprintf("%.0f",sSpeed.toDouble());
speed= new QLCDNumber(this);
speed->setGeometry(6,20,52,26);
speed->setNumDigits(sSpeed.length());
speed->setSegmentStyle(QLCDNumber::Filled);
speed->setFrameShape(QFrame::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() );
speed->setPalette(cg);
speed->installEventFilter(this);
}
CpuPanel::~CpuPanel()
{
}
void CpuPanel::updateInfo()
{
getCpuInfoValue("bogomips",sBogomips);
sBogomips.sprintf("%.0f BMPS",sBogomips.toDouble());
getCpuInfoValue("cpu MHz",sSpeed);
sSpeed.sprintf("%.0f",sSpeed.toDouble());
speed->setNumDigits(sSpeed.length());
speed->display(sSpeed);
update();
}
void CpuPanel::drawContents(QPainter *p)
{
int w= width();
int h= height();
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());
}
void CpuPanel::paletteChange( const QPalette &oldPalette)
{
QPalette cg= speed->palette();
cg.setColor(QColorGroup::Background,palette().active().background());
speed->setPalette(cg);
}
void CpuPanel::resizeEvent ( QResizeEvent *e )
{
int w= width();
int h= height();
int mw= w/10;
speed->setGeometry(mw,h/3,w-mw*2,(h*2)/5);
}

@ -0,0 +1,54 @@
/***************************************************************************
cpudisplay.h - description
-------------------
begin : Sun Nov 25 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef CPUPANEL_H
#define CPUPANEL_H
#include "panel.h"
#include <qlcdnumber.h>
#include "qlcdstring.h"
/**
*@author Miguel Novas
*/
#include <stdio.h>
class CpuPanel : public Panel {
Q_OBJECT
public:
CpuPanel(QWidget *parent=0, const char *name=0);
~CpuPanel();
protected:
void drawContents ( QPainter *p );
void paletteChange( const QPalette &oldPalette);
private:
void updateInfo();
QLCDNumber *speed;
QString sCpu,sVendor,sSpeed,sBogomips;
void resizeEvent ( QResizeEvent *e );
};
#endif

@ -0,0 +1,142 @@
/***************************************************************************
rampanel.cpp - description
-------------------
begin : Fri Jan 11 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "cputimepanel.h"
#include "procinfo.h"
CpuTimePanel::CpuTimePanel(QWidget *parent, const char *name): Panel(parent,name)
{
lcd1= new QLCDString(this);
lcd1->setGeometry(16,38,46,8);
lcd1->setForeColor(red);
lcd1->setAlign(QLCDString::alignLeft);
lcd1->setNumberDisplay(true);
lcd1->installEventFilter(this);
QColor color2( 200, 0, 0);
lcd2= new QLCDString(this);
lcd2->setGeometry(16,28,46,8);
lcd2->setForeColor(color2);
lcd2->setAlign(QLCDString::alignLeft);
lcd2->setNumberDisplay(true);
lcd2->installEventFilter(this);
QColor color3( 128,32,0 );
lcd3= new QLCDString(this);
lcd3->setGeometry(16,18,46,8);
lcd3->setForeColor(color3);
lcd3->setAlign(QLCDString::alignLeft);
lcd3->setNumberDisplay(true);
lcd3->installEventFilter(this);
lcd4= new QLCDString(this);
lcd4->setGeometry(16,8,46,8);
lcd4->setForeColor(darkGreen);
lcd4->setAlign(QLCDString::alignLeft);
lcd4->setNumberDisplay(true);
lcd4->installEventFilter(this);
barMeter= new QBarMeter(this);
barMeter->setGeometry(6,6,6,40);
barMeter->setDirection(QBarMeter::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->setValueCount(4);
barMeter->installEventFilter(this);
getCpuTime(&old_user,&old_nice,&old_system,&old_idle);
updateInfo();
}
CpuTimePanel::~CpuTimePanel(){
}
void CpuTimePanel::drawContents(QPainter *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());
}
void CpuTimePanel::updateInfo()
{
int user,nice,system,idle;
getCpuTime(&user,&nice,&system,&idle);
int puser = user - old_user;
int pnice = nice - old_nice;
int psystem= system - old_system;
int pidle = idle - old_idle;
int ptotal= puser+pnice+psystem+pidle;
if (ptotal==0) ptotal=1;
QString str;
str.sprintf ("USER%5.1f" , (float)puser /ptotal * 100 );
lcd1->display(str);
str.sprintf ("NICE%5.1f" , (float)pnice /ptotal * 100 );
lcd2->display(str);
str.sprintf ("SYS %5.1f" , (float)psystem/ptotal * 100 );
lcd3->display(str);
str.sprintf ("IDLE%5.1f" , (float)pidle /ptotal * 100 );
lcd4->display(str);
barMeter->setValue(0,(double)puser);
barMeter->setValue(1,(double)pnice);
barMeter->setValue(2,(double)psystem);
barMeter->setValue(3,(double)pidle);
old_user = user;
old_nice = nice;
old_system= system;
old_idle = idle;
}
void CpuTimePanel::resizeEvent ( QResizeEvent *e )
{
int w= width();
int h= height();
int lw= (w*10)/14;
int lh= h/8;
int sh= (h*10)/64;
int i= h/8;
int i0= i-1;
lcd4 ->setGeometry(w/4 ,i ,lw,lh);
i+= sh;
lcd3 ->setGeometry(w/4 ,i ,lw,lh);
i+= sh;
lcd2 ->setGeometry(w/4 ,i ,lw,lh);
i+= sh;
lcd1 ->setGeometry(w/4 ,i ,lw,lh);
int bl= i+lh-i0;
barMeter->setGeometry(w/10,i0,w/10,bl);
barMeter->setSteps(bl/2);
}

@ -0,0 +1,47 @@
/***************************************************************************
rampanel.h - description
-------------------
begin : Fri Jan 11 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef CPUTIMEPANEL_H
#define CPUTIMEPANEL_H
#include <qpainter.h>
#include <panel.h>
#include "qlcdstring.h"
#include "qbarmeter.h"
/**
*@author Miguel Novas
*/
class CpuTimePanel : public Panel {
public:
CpuTimePanel(QWidget *parent=0, const char *name=0);
~CpuTimePanel();
protected:
int old_user,old_nice,old_system,old_idle;
QLCDString *lcd1,*lcd2,*lcd3,*lcd4;
QBarMeter *barMeter;
void updateInfo();
void drawContents(QPainter *p);
void resizeEvent ( QResizeEvent *e );
};
#endif

@ -0,0 +1,78 @@
/***************************************************************************
generalcfg.cpp - description
-------------------
begin : mar may 14 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "generalcfg.h"
#include <qgroupbox.h>
#include <qlayout.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
#include <qcheckbox.h>
#include "lmsensorswidget.h"
#include "lmsensorsdock.h"
GeneralCfg::GeneralCfg(LMSensors *lsensors, QWidget *parent, const char *name) : GeneralCfgDesign(parent,name)
{
sensors= lsensors;
palPanelCfg= new PaletteCfg( boxGeneralPalette );
boxGeneralPalette->setColumnLayout(0, Qt::Vertical );
boxGeneralPalette->layout()->setSpacing( 6 );
boxGeneralPalette->layout()->setMargin( 12 );
QGridLayout *boxGeneralPaletteLayout = new QGridLayout( boxGeneralPalette->layout() );
boxGeneralPaletteLayout->setAlignment( Qt::AlignTop );
boxGeneralPaletteLayout->addWidget( palPanelCfg, 0, 0 );
palPanelCfg->readPalette(0);
int panelSize= LMSensorsWidget::cfgReadPanelSize();
switch(panelSize) {
case 64: Radio64->setChecked(true); break;
case 56: Radio56->setChecked(true); break;
case 48: Radio48->setChecked(true); break;
}
KConfig *cfg= KGlobal::config();
cfg->setGroup( "General" );
CheckBoxAutoStart->setChecked(cfg->readBoolEntry("AutoStart",true));
//connect( buttonApply ,SIGNAL(clicked()),this, SLOT(slotApplyChanges()));
}
GeneralCfg::~GeneralCfg(){
}
void GeneralCfg::slotApplyChanges()
{
if (!isVisible())
return;
palPanelCfg->savePalette();
//
int panelSize= 64;
if(Radio56->isChecked()) panelSize= 56;
else if(Radio48->isChecked()) panelSize= 48;
LMSensorsWidget::cfgWritePanelSize(panelSize);
KConfig *cfg= KGlobal::config();
cfg->setGroup( "General" );
cfg->writeEntry("AutoStart", CheckBoxAutoStart->isChecked());
//
sensors->emitConfigChanged();
}

@ -0,0 +1,44 @@
/***************************************************************************
generalcfg.h - description
-------------------
begin : mar may 14 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef GENERALCFG_H
#define GENERALCFG_H
#include "lmsensors.h"
#include "generalcfgdesign.h"
#include "palettecfg.h"
/**
*@author Miguel Novas
*/
class GeneralCfg : public GeneralCfgDesign {
Q_OBJECT
public:
GeneralCfg(LMSensors *lsensors, QWidget *parent=0, const char *name=0);
~GeneralCfg();
public slots:
void slotApplyChanges();
private:
PaletteCfg *palPanelCfg;
LMSensors *sensors;
};
#endif

@ -0,0 +1,103 @@
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './generalcfgdesign.ui'
**
** Created: mer aoû 18 23:39:02 2004
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#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>
/*
* 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 )
{
if ( !name )
setName( "GeneralCfgDesign" );
GeneralCfgDesignLayout = new QGridLayout( this, 1, 1, 8, 6, "GeneralCfgDesignLayout");
ButtonGroup5 = new QButtonGroup( this, "ButtonGroup5" );
ButtonGroup5->setColumnLayout(0, Qt::Vertical );
ButtonGroup5->layout()->setSpacing( 6 );
ButtonGroup5->layout()->setMargin( 11 );
ButtonGroup5Layout = new QGridLayout( ButtonGroup5->layout() );
ButtonGroup5Layout->setAlignment( Qt::AlignTop );
Radio64 = new QRadioButton( ButtonGroup5, "Radio64" );
Radio64->setChecked( TRUE );
ButtonGroup5Layout->addWidget( Radio64, 0, 0 );
Radio56 = new QRadioButton( ButtonGroup5, "Radio56" );
ButtonGroup5Layout->addWidget( Radio56, 0, 1 );
Radio48 = new QRadioButton( ButtonGroup5, "Radio48" );
ButtonGroup5Layout->addWidget( Radio48, 0, 2 );
GeneralCfgDesignLayout->addWidget( ButtonGroup5, 0, 0 );
boxGeneralPalette = new QGroupBox( this, "boxGeneralPalette" );
boxGeneralPalette->setMinimumSize( QSize( 0, 65 ) );
GeneralCfgDesignLayout->addWidget( boxGeneralPalette, 1, 0 );
GroupBox2 = new QGroupBox( this, "GroupBox2" );
GroupBox2->setColumnLayout(0, Qt::Vertical );
GroupBox2->layout()->setSpacing( 6 );
GroupBox2->layout()->setMargin( 11 );
GroupBox2Layout = new QVBoxLayout( GroupBox2->layout() );
GroupBox2Layout->setAlignment( Qt::AlignTop );
CheckBoxAutoStart = new QCheckBox( GroupBox2, "CheckBoxAutoStart" );
GroupBox2Layout->addWidget( CheckBoxAutoStart );
GeneralCfgDesignLayout->addWidget( GroupBox2, 2, 0 );
Spacer28 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
GeneralCfgDesignLayout->addItem( Spacer28, 3, 0 );
languageChange();
resize( QSize(343, 239).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
/*
* Destroys the object and frees any allocated resources
*/
GeneralCfgDesign::~GeneralCfgDesign()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void GeneralCfgDesign::languageChange()
{
setCaption( tr2i18n( "GeneralCfg" ) );
ButtonGroup5->setTitle( tr2i18n( "Panels size" ) );
Radio64->setText( tr2i18n( "64 x 64" ) );
Radio56->setText( tr2i18n( "56 x 56" ) );
Radio48->setText( tr2i18n( "48 x 48" ) );
boxGeneralPalette->setTitle( tr2i18n( "Colors" ) );
GroupBox2->setTitle( tr2i18n( "Startup" ) );
CheckBoxAutoStart->setText( tr2i18n( "Autostart KSensors on KDE startup" ) );
}
#include "generalcfgdesign.moc"

@ -0,0 +1,52 @@
/****************************************************************************
** Form interface generated from reading ui file './generalcfgdesign.ui'
**
** Created: mer aoû 18 23:39:01 2004
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#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
{
Q_OBJECT
public:
GeneralCfgDesign( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~GeneralCfgDesign();
QButtonGroup* ButtonGroup5;
QRadioButton* Radio64;
QRadioButton* Radio56;
QRadioButton* Radio48;
QGroupBox* boxGeneralPalette;
QGroupBox* GroupBox2;
QCheckBox* CheckBoxAutoStart;
protected:
QGridLayout* GeneralCfgDesignLayout;
QSpacerItem* Spacer28;
QGridLayout* ButtonGroup5Layout;
QVBoxLayout* GroupBox2Layout;
protected slots:
virtual void languageChange();
};
#endif // GENERALCFGDESIGN_H

@ -0,0 +1,143 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>GeneralCfgDesign</class>
<widget class="QWidget">
<property name="name">
<cstring>GeneralCfgDesign</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>343</width>
<height>239</height>
</rect>
</property>
<property name="caption">
<string>GeneralCfg</string>
</property>
<property name="layoutMargin" stdset="0">
</property>
<property name="layoutSpacing" stdset="0">
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>8</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="QButtonGroup" row="0" column="0">
<property name="name">
<cstring>ButtonGroup5</cstring>
</property>
<property name="title">
<string>Panels size</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="QRadioButton" row="0" column="0">
<property name="name">
<cstring>Radio64</cstring>
</property>
<property name="text">
<string>64 x 64</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
<widget class="QRadioButton" row="0" column="1">
<property name="name">
<cstring>Radio56</cstring>
</property>
<property name="text">
<string>56 x 56</string>
</property>
</widget>
<widget class="QRadioButton" row="0" column="2">
<property name="name">
<cstring>Radio48</cstring>
</property>
<property name="text">
<string>48 x 48</string>
</property>
</widget>
</grid>
</widget>
<widget class="QGroupBox" row="1" column="0">
<property name="name">
<cstring>boxGeneralPalette</cstring>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>65</height>
</size>
</property>
<property name="title">
<string>Colors</string>
</property>
<property name="layoutMargin" stdset="0">
</property>
<property name="layoutSpacing" stdset="0">
</property>
</widget>
<widget class="QGroupBox" row="2" column="0">
<property name="name">
<cstring>GroupBox2</cstring>
</property>
<property name="title">
<string>Startup</string>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="QCheckBox">
<property name="name">
<cstring>CheckBoxAutoStart</cstring>
</property>
<property name="text">
<string>Autostart KSensors on KDE startup</string>
</property>
</widget>
</vbox>
</widget>
<spacer row="3" column="0">
<property name="name">
<cstring>Spacer28</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,224 @@
/***************************************************************************
hdsensorslist.cpp - description
-------------------
begin : vie abr 26 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <dirent.h>
#include <sys/types.h>
#include <stdlib.h>
#include <qstringlist.h>
#include <klocale.h>
#include <regex.h>
#include "sensor.h"
#include "hdsensorslist.h"
HDSensorsList::HDSensorsList(QObject *parent, const char * name): SensorsList(parent,name)
{
process= 0;
setDescription( QString(i18n("Hard Disks")) );
setClass(Sensor::hdSensor);
readConfig();
if(!isHddTempInstalled()) return;
QStringList disks;
if(!getDisks(disks)) return;
ProcessExec proc;
proc << "hddtemp" << "-q";
for(QStringList::Iterator it = disks.begin(); it != disks.end(); ++it ) {
proc << *it;
}
if(proc.runAndWait()) {
double value;
QString str;
for(QStringList::Iterator it = disks.begin(); it != disks.end(); ++it ) {
if(getDiskInfo(proc.getStdoutData(),*it,str,value)) {
Sensor *sensor= new Sensor(this);
sensor->setType(Sensor::lmTemp);
sensor->setName(*it);
sensor->setDescription(str);
sensor->setValueMax (40 , Sensor::dgCelsius);
sensor->setValueMin ( 0 , Sensor::dgCelsius);
sensor->setValueIdeal(value, Sensor::dgCelsius);
sensor->setValue (value, Sensor::dgCelsius);
sensor->readConfig();
}
}
}
}
HDSensorsList::~HDSensorsList()
{
delete process;
}
//*************
void HDSensorsList::updateSensors()
{
if(process) return;
QObjectList *list= (QObjectList *)children();
if(!list) return;
QStringList params;
for(Sensor *obj= (Sensor *)list->first(); obj!=0; obj= (Sensor *)list->next())
if(obj->monitorized())
params << obj->name();
if(params.count()>0) {
process= new ProcessExec;
#if ( KDE_VERSION_MAJOR >= 3 )
*process << "hddtemp" << "-q" << params;
#else
*process << "hddtemp" << "-q";
for (QStringList::Iterator it= params.begin(); it!=params.end(); ++it)
*process << *it;
#endif
connect( process, SIGNAL(processExited(KProcess *)), this, SLOT(slotProcessExited(KProcess *)) );
process->run();
}
}
void HDSensorsList::slotProcessExited(KProcess *)
{
QObjectList *list= (QObjectList *)children();
if(!list) return;
char *buf= process->getStdoutData();
if( process->outputErrors() ) {
qWarning("HddTemp Error:\n%s", buf);
}
char *ptr;
regex_t *preg;
regmatch_t pmatch[1];
preg = (regex_t*) malloc(sizeof(regex_t));
regcomp(preg, ": [0-9]\\+.*C$", REG_NEWLINE);
for(Sensor *obj= (Sensor *)list->first(); obj!=0; obj= (Sensor *)list->next()) {
buf= strstr(buf,obj->name());
if(!buf) break;
if (regexec(preg, buf, 1, pmatch, 0) == 0)
{
ptr = buf + pmatch[0].rm_so + 2;
buf += pmatch[0].rm_eo;
obj->setValue(atof(ptr), Sensor::dgCelsius);
}
}
regfree(preg);
free(preg);
delete process;
process= 0;
}
// *************** Static methods
bool HDSensorsList::getDiskInfo(const char *buf, QString disk, QString &name, double &value)
{
regex_t *preg;
regmatch_t pmatch[1];
preg = (regex_t*) malloc(sizeof(regex_t));
// Take disk model
char reg_string[30];
snprintf(reg_string, sizeof(reg_string), "%s: .*: [0-9]", disk.latin1());
regcomp(preg, reg_string, REG_NEWLINE);
if (regexec(preg, buf, 1, pmatch, 0) == 0)
{
name="";
pmatch[0].rm_eo -= 3;
pmatch[0].rm_so += 10;
buf += pmatch[0].rm_so;
while (pmatch[0].rm_so < pmatch[0].rm_eo)
{
name += *buf;
buf++;
pmatch[0].rm_so++;
}
regfree(preg);
name= name.stripWhiteSpace();
if( name.length()>40 ) name= disk;
}
else
{
regfree(preg);
free(preg);
return false;
}
// Take disk temperature
regcomp(preg, ": [0-9]\\+.*C$", REG_NEWLINE);
if (regexec(preg, buf, 1, pmatch, 0) == 0)
{
value= atof(buf + pmatch[0].rm_so + 2);
regfree(preg);
free(preg);
}
else
{
regfree(preg);
free(preg);
return false;
}
return true;
}
bool HDSensorsList::isHddTempInstalled()
{
ProcessExec proc;
proc << "hddtemp" ;
if(proc.runAndWait()) {
if(strstr(proc.getStdoutData(),"ERROR")==0) return true;
qWarning("HddTemp Error:\n%s", proc.getStdoutData());
}
return false;
}
bool HDSensorsList::getDisks(QStringList &disks )
{
DIR *dir= opendir("/proc/ide");
if(!dir) return false;
QString str;
struct dirent *ptr;
while((ptr= readdir(dir))) {
if(ptr->d_name[0]=='h' && ptr->d_name[1]=='d') {
str.sprintf("/dev/hd%c",ptr->d_name[2]);
disks << str;
}
}
closedir(dir);
return true;
}
// ***************

@ -0,0 +1,53 @@
/***************************************************************************
hdsensorslist.h - description
-------------------
begin : vie abr 26 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef HDSENSORSLIST_H
#define HDSENSORSLIST_H
#include <sensorslist.h>
#include "sensor.h"
#include "processexec.h"
/**
*@author Miguel Novas
*/
class HDSensorsList : public SensorsList {
Q_OBJECT
public:
HDSensorsList(QObject *parent, const char * name);
~HDSensorsList();
public slots:
void updateSensors();
protected slots:
void slotProcessExited(KProcess *proc);
private:
ProcessExec *process;
static bool isHddTempInstalled();
static bool getDisks(QStringList &disks);
static bool getDiskInfo(const char *buf, QString disk, QString &name, double &value);
};
#endif

@ -0,0 +1,129 @@
/***************************************************************************
i8ksensorslist.cpp - description
-------------------
begin : jue jun 20 2002
copyright : (C) 2002 by Miguel Novas
email : migueln@users.sourceforge.net
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <klocale.h>
#include "i8ksensorslist.h"
#include "procinfo.h"
I8KSensorsList::I8KSensorsList(QObject *parent, const char *name): SensorsList(parent,name)
{
setDescription(QString(i18n("MainBoard")) );
setClass(Sensor::lmSensor);
readConfig();
if ( (i8kAvail = (I8KOnlyAvailable()==0)) )
{
cpuTemp= new Sensor(this);
cpuTemp->setType(Sensor::lmTemp);
cpuTemp->setName("cputemp");
cpuTemp->setDescription("CPU Temp");
cpuTemp->setValueMax (40 , Sensor::dgCelsius);
cpuTemp->setValueMin ( 0 , Sensor::dgCelsius);
cpuTemp->setValueIdeal(30 , Sensor::dgCelsius);
cpuTemp->setValue (30 , Sensor::dgCelsius);
cpuTemp->readConfig();
leftFan= new Sensor(this);
leftFan->setType(Sensor::lmFan);
leftFan->setName("fan1");
leftFan->setDescription("Left Fan");
leftFan->setValueMax (10000);
leftFan->setValueMin ( 0);
leftFan->setValueIdeal( 4500);
leftFan->setValue ( 4500);
leftFan->readConfig();
rightFan= new Sensor(this);
rightFan->setType(Sensor::lmFan);
rightFan->setName("fan2");
rightFan->setDescription("Right Fan");
rightFan->setValueMax (10000);
rightFan->setValueMin ( 0);
rightFan->setValueIdeal( 4500);
rightFan->setValue ( 4500);
rightFan->readConfig();
}
if ( (acpiAvail=(AcpiAvailable()==0)) )
{
cpuTempAcpi= new Sensor(this);
cpuTempAcpi->setType(Sensor::lmTemp);
cpuTempAcpi->setName("cputemp");
cpuTempAcpi->setDescription("CPU Temp");
cpuTempAcpi->setValueMax (40 , Sensor::dgCelsius);
cpuTempAcpi->setValueMin ( 0 , Sensor::dgCelsius);
cpuTempAcpi->setValueIdeal(30 , Sensor::dgCelsius);
cpuTempAcpi->setValue (30 , Sensor::dgCelsius);
cpuTempAcpi->readConfig();
}
updateSensors();
}
I8KSensorsList::~I8KSensorsList(){
}
void I8KSensorsList::updateSensors()
{
double t,f1,f2;
if(i8kAvail && !getI8KInfo(&t,&f1,&f2)) {
cpuTemp->setValue(t,Sensor::dgCelsius);
leftFan->setValue(f1);
rightFan->setValue(f2);
}
if(acpiAvail && !getAcpiTemperature(&t)) {
cpuTempAcpi->setValue(t,Sensor::dgCelsius);
}
}
int I8KSensorsList::AcpiAvailable()
{
double t;
return getAcpiTemperature(&t);
}
int I8KSensorsList::I8KOnlyAvailable()
{
double d1,d2,d3;
return getI8KInfo(&d1,&d2,&d3);
}
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;
}
return (result==0 || AcpiAvailable()==0);
}

@ -0,0 +1,55 @@
/***************************************************************************
i8ksensorslist.h - description
-------------------
begin : jue jun 20 2002
copyright : (C) 2002 by Miguel Novas
email : migueln@users.sourceforge.net
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef I8KSENSORSLIST_H
#define I8KSENSORSLIST_H
#include <sensorslist.h>
/**
*@author Miguel Novas
*/
class I8KSensorsList : public SensorsList {
Q_OBJECT
public:
I8KSensorsList(QObject *parent, const char * name);
~I8KSensorsList();
static bool I8KAvailable();
public slots:
void updateSensors();
private:
bool i8kAvail;
bool acpiAvail;
Sensor *cpuTempAcpi;
Sensor *cpuTemp;
Sensor *leftFan;
Sensor *rightFan;
static int AcpiAvailable();
static int I8KOnlyAvailable();
};
#endif

@ -0,0 +1,91 @@
/***************************************************************************
infopanels.cpp - description
-------------------
begin : vie may 10 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "infopanels.h"
InfoPanels::InfoPanels(QWidget *panelsWidget, QObject *parent, const char *name): PanelsGroup(widget,parent,name)
{
widget= panelsWidget;
timerPanelCount=0;
timer = new QTimer(this);
configChanged("proc.CPUINFO");
configChanged("proc.RAMINFO");
configChanged("proc.SWAPINFO");
configChanged("proc.CPULOAD");
configChanged("proc.UPTIME");
}
InfoPanels::~InfoPanels(){
}
void InfoPanels::configChanged(const char *name)
{
if(!strcmp(name,"proc")) readUpdateInterval();
else {
Panel *panel= (Panel *)widget->child(name);
if( Panel::readShow(name)!= (bool)panel ) {
if(panel) delete panel;
else {
if(!strcmp(name,"proc.CPUINFO" )) panel= new CpuPanel(widget,name);
else
if(!strcmp(name,"proc.RAMINFO" )) panel= new RamPanel(widget,name,RamPanel::memRAM);
else
if(!strcmp(name,"proc.SWAPINFO")) panel= new RamPanel(widget,name,RamPanel::memSWAP);
else
if(!strcmp(name,"proc.CPULOAD" )) panel= new CpuTimePanel(widget,name);
else
if(!strcmp(name,"proc.UPTIME" )) panel= new UpTimePanel(widget,name);
if(panel) timerConnect(panel);
}
}
}
}
void InfoPanels::timerConnect(Panel *display)
{
if(timerPanelCount==0) timer->start( cfgReadUpdateInterval()*1000 );
connect( timer , SIGNAL(timeout() ), display, SLOT(updateInfo()) );
connect( display, SIGNAL(destroyed()), this , SLOT(infoPanelDestroyed()) );
timerPanelCount++;
}
void InfoPanels::infoPanelDestroyed()
{
if(--timerPanelCount<=0) timer->stop();
}
void InfoPanels::cfgWriteUpdateInterval(int interval)
{
KGlobal::config()->setGroup("ShowWidget");
KGlobal::config()->writeEntry("UpdateInterval" , interval );
}
int InfoPanels::cfgReadUpdateInterval()
{
KGlobal::config()->setGroup("ShowWidget");
return KGlobal::config()->readNumEntry("UpdateInterval" , 5 );
}
void InfoPanels::readUpdateInterval()
{
timer->changeInterval(cfgReadUpdateInterval()*1000);
}
// ******************* Public static methods **********************

@ -0,0 +1,63 @@
/***************************************************************************
infopanels.h - description
-------------------
begin : vie may 10 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef INFOPANELS_H
#define INFOPANELS_H
#include <qtimer.h>
#include <kglobal.h>
#include "panelsgroup.h"
#include "cpupanel.h"
#include "rampanel.h"
#include "cputimepanel.h"
#include "uptimepanel.h"
/**
*@author Miguel Novas
*/
class InfoPanels : public PanelsGroup {
Q_OBJECT
public:
InfoPanels(QWidget *panelsWidget, QObject *parent=0, const char *name=0);
~InfoPanels();
static int cfgReadUpdateInterval();
static void cfgWriteUpdateInterval(int interval);
public slots:
void configChanged(const char *name);
protected slots:
void infoPanelDestroyed();
private:
int timerPanelCount;
QTimer *timer;
QWidget *widget;
void readUpdateInterval();
void timerConnect(Panel *display);
};
#endif

@ -0,0 +1,25 @@
/*
* Copyright (C) 2003 noname <s@s.org>
*/
#include "ksensors.h"
#include <qlabel.h>
#include <kmainwindow.h>
#include <klocale.h>
ksensors::ksensors()
: KMainWindow( 0, "ksensors" )
{
// set the shell's ui resource file
setXMLFile("ksensorsui.rc");
new QLabel( "Hello World", this, "hello label" );
}
ksensors::~ksensors()
{
}
#include "ksensors.moc"

@ -0,0 +1,24 @@
[Desktop Entry]
Encoding=UTF-8
Name=ksensors
Name[xx]=xxksensorsxx
Exec=ksensors
Icon=ksensors
Type=Application
Comment=A simple KDE Application
Comment[ca]=Una simple aplicació KDE
Comment[da]=Et simpelt KDE program
Comment[de]=Eine einfache KDE-Anwendung
Comment[el]=Μια απλή εφαρμογή του KDE
Comment[es]=Una aplicación de KDE sencilla
Comment[et]=Lihtne KDE rakendus
Comment[fr]=Une application simple pour KDE.
Comment[hu]=Egyszerű KDE-alkalmazás
Comment[it]=Una semplice applicazione KDE
Comment[pt]=Uma aplicação KDE simples
Comment[pt_BR]=Um simples Aplicativo do KDE
Comment[ru]=Простое приложение KDE
Comment[sl]=Preprost program za KDE
Comment[sr]=Проста KDE-ова апликација
Comment[sv]=Ett enkelt KDE-program
Comment[xx]=xxA simple KDE Applicationxx

@ -0,0 +1,34 @@
/*
* Copyright (C) 2003 noname <s@s.org>
*/
#ifndef _KSENSORS_H_
#define _KSENSORS_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <kmainwindow.h>
/**
* @short Application Main Window
* @author noname <s@s.org>
* @version 0.1
*/
class ksensors : public KMainWindow
{
Q_OBJECT
public:
/**
* Default Constructor
*/
ksensors();
/**
* Default Destructor
*/
virtual ~ksensors();
};
#endif // _KSENSORS_H_

@ -0,0 +1,16 @@
Begin3
Title: ksensors -- Some description
Version: 0.1
Entered-date:
Description:
Keywords: KDE Qt
Author: noname <s@s.org>
Maintained-by: noname <s@s.org>
Home-page:
Alternate-site:
Primary-site: ftp://ftp.kde.org/pub/kde/unstable/apps/utils
xxxxxx ksensors-0.1.tar.gz
xxx ksensors-0.1.lsm
Platform: Linux. Needs KDE
Copying-policy: GPL
End

@ -0,0 +1,98 @@
/***************************************************************************
ksensorscfg.cpp - description
-------------------
begin : mié may 8 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#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 <kiconloader.h>
#include <klocale.h>
#include <kaboutdata.h>
#include <kdialogbase.h>
#include <kuniqueapp.h>
#include "lmsensors.h"
#include "sensorslist.h"
#include "generalcfg.h"
#include "systemcfg.h"
#include "lmsensorscfg.h"
#include "aboutcfgdesign.h"
#define Icon(x) KGlobal::instance()->iconLoader()->loadIcon( x, KIcon::NoGroup, KIcon::SizeMedium )
KSensorsCfg::KSensorsCfg(LMSensors *lsensors, const char *name)
: KDialogBase(IconList, name, Apply|Close, Close )
{
sensors= lsensors;
//resize( 558, 370 );
setSizePolicy(QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum));
setCaption( i18n("KSensors Configuration") );
QFrame *page;
QVBoxLayout *lay;
page = addPage( i18n("Global settings"), i18n("Global settings"), Icon("earth.png") );
m_generalcfg = new GeneralCfg(sensors, page);
lay = new QVBoxLayout( page );
lay->addWidget(m_generalcfg);
connect(this, SIGNAL(applyClicked()), m_generalcfg, SLOT(slotApplyChanges()) );
QObjectList *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") );
cfgWidget = new LMSensorsCfg(chip, page);
lay = new QVBoxLayout( page );
lay->addWidget(cfgWidget);
connect(this, SIGNAL(applyClicked()), cfgWidget, SLOT(slotApplyChanges()) );
}
else
{
page = addPage( chip->getDescription(), chip->getDescription(), Icon("harddisk.png") );
cfgWidget = new LMSensorsCfg(chip, page);
lay = new QVBoxLayout( page );
lay->addWidget(cfgWidget);
connect(this, SIGNAL(applyClicked()), cfgWidget, SLOT(slotApplyChanges()) );
}
}
}
page = addPage( i18n( "System Information" ), i18n( "System Information" ), Icon("computers.png") );
m_systemcfg = new SystemCfg(sensors, page);
lay = new QVBoxLayout( page );
lay->addWidget(m_systemcfg);
connect(this, SIGNAL(applyClicked()), m_systemcfg, SLOT(slotApplyChanges()) );
adjustSize();
}
KSensorsCfg::~KSensorsCfg()
{
}

@ -0,0 +1,67 @@
/***************************************************************************
ksensorscfg.h - description
-------------------
begin : mié may 8 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef KSENSORSCFG_H
#define KSENSORSCFG_H
#include <qwidget.h>
#include <kdialogbase.h>
//class QVBoxLayout;
//class QHBoxLayout;
//class QGridLayout;
//class QFrame;
//class QIconView;
//class QIconViewItem;
class KDialogBase;
class GeneralCfg;
class LMSensorsCfg;
class SystemCfg;
class LMSensors;
/**
*@author Miguel Novas
*/
class KSensorsCfg : public KDialogBase
{
Q_OBJECT
public:
KSensorsCfg(LMSensors *lsensors, const char *name=0);
~KSensorsCfg();
/*protected slots:
void slotSelectionChanged();
*/
private:
LMSensors *sensors;
GeneralCfg *m_generalcfg;
LMSensorsCfg *m_lmsensorscfg;
SystemCfg *m_systemcfg;
QWidget *cfgWidget;
/*
QIconView *IconView;
QWidget *cfgWidget;
QHBoxLayout *FormLayout;*/
};
#endif

@ -0,0 +1,43 @@
/***************************************************************************
ksensorssplash.cpp - description
-------------------
begin : sáb abr 20 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "ksensorssplash.h"
#include <kapp.h>
#include <kstandarddirs.h>
KSensorsSplash::KSensorsSplash(QWidget *parent, const char *name ) :
QWidget(parent,name, WStyle_NoBorder | WStyle_Customize | WDestructiveClose | WStyle_StaysOnTop )
{
QPixmap 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,
pm.width(),pm.height()
);
show();
startTimer( 4000 );
}
KSensorsSplash::~KSensorsSplash(){
}
void KSensorsSplash::timerEvent( QTimerEvent * )
{
close();
}

@ -0,0 +1,41 @@
/***************************************************************************
ksensorssplash.h - description
-------------------
begin : sáb abr 20 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef KSENSORSSPLASH_H
#define KSENSORSSPLASH_H
#include <qwidget.h>
//#include <qwidget.h>
/**
*@author Miguel Novas
*/
class KSensorsSplash : public QWidget {
Q_OBJECT
public:
KSensorsSplash(QWidget *parent=0, const char *name=0 );
~KSensorsSplash();
protected:
void timerEvent( QTimerEvent * );
};
#endif

@ -0,0 +1,8 @@
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="ksensors" version="1">
<MenuBar>
<Menu name="custom"><text>C&amp;ustom</text>
<Action name="custom_action" />
</Menu>
</MenuBar>
</kpartgui>

@ -0,0 +1,143 @@
/***************************************************************************
lmsensor.cpp - description
-------------------
begin : Mon Aug 6 2001
copyright : (C) 2001 by
email :
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "lmsensor.h"
#include "lmsensorschip.h"
#include "stdio.h"
LMSensor::LMSensor(SensorsList *parent): Sensor(parent)
{
feature= -1;
}
LMSensor::~LMSensor(){
}
bool LMSensor::init(const sensors_feature_data **data, int *nr1,int *nr2)
{
double min,max;
const sensors_chip_name *chip_name= getChipName();
if (strstr((*data)->name, "temp"))
{
setType(lmTemp);
max= 65;
min= 0;
}
else if (strstr((*data)->name, "fan"))
{
setType(lmFan);
max= 10000;
min= 3000;
}
else
{
setType(lmVoltage);
max= 16;
min= -16;
}
feature= (*data)->number;
QString str;
str.sprintf("%s.%s", chip_name->prefix, (*data)->name );
setName( str.latin1() );
char *label;
sensors_get_label(*chip_name,feature,&label);
setDescription(QString(label));
bool valid= false;
while( (*data= sensors_get_all_features(*chip_name, nr1, nr2)) && (*data)->mapping!=SENSORS_NO_MAPPING) {
str= (*data)->name;
if(str.find("_min")>=0 || str.find("_low")>=0) {
sensors_get_feature(*chip_name, (*data)->number, &valMin);
valid= true;
} else
if(str.find("_max")>=0 || str.find("_over")>=0 || str.find("_high")>=0) {
sensors_get_feature(*chip_name, (*data)->number, &valMax);
valid= true;
}
}
if(valid) {
double newVal;
valid= (sensors_get_feature(*chip_name, feature, &newVal)==0);
if(valid) {
if(min>max) {
double pivot= valMin;
min= max;
max= pivot;
}
setValueMax(max,dgCelsius);
setValueMin(min,dgCelsius);
setValue((max+min)/2,dgCelsius);
readConfig();
updateValue();
setValueIdeal(getValue());
}
}
return valid;
}
void LMSensor::updateValue()
{
setValue( readSensorValue(), dgCelsius );
}
double LMSensor::readSensorValue()
{
double newVal;
const sensors_chip_name *chip_name= getChipName();
sensors_get_feature(*chip_name, feature, &newVal);
return newVal;
}
#define ABSOLUTE_VALUE(n) ( (n)>=0 ? (n) : -(n) )
#define TRUNCATE_VALUE(n) ( (double)(int)(n) )
double LMSensor::calculateIdealValue()
{
double value= readSensorValue();
if(getType()==lmVoltage) {
double decimals= 10;
double module = ABSOLUTE_VALUE(value);
if(module>3.0) {
if( ABSOLUTE_VALUE( 12.0-value)<2.0 ) return 12.0;
if( ABSOLUTE_VALUE(-12.0-value)<2.0 ) return -12.0;
if( ABSOLUTE_VALUE( 5.0-value)<1.0 ) return 5.0;
if( ABSOLUTE_VALUE( -5.0-value)<1.0 ) return -5.0;
if( ABSOLUTE_VALUE( 3.3-value)<0.3 ) return 3.3;
if( ABSOLUTE_VALUE( -3.3-value)<0.3 ) return -3.3;
if(module>4.0) decimals= 1;
}
return TRUNCATE_VALUE((value * decimals)) / decimals;
} else {
return value;
}
}
const sensors_chip_name *LMSensor::getChipName()
{
return ((LMSensorsChip *)parent())->getChipName();
}

@ -0,0 +1,73 @@
/***************************************************************************
lmsensor.h - description
-------------------
begin : Mon Aug 6 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef LMSENSOR_H
#define LMSENSOR_H
#include <qobject.h>
#include <kconfig.h>
#include <qstring.h>
#include <qcstring.h>
#include <sensors/sensors.h>
#include "sensor.h"
class LMSensorsList;
/**
*@author Miguel Novas
*/
class LMSensor : public Sensor {
Q_OBJECT
friend class LMSensorsChip;
public:
LMSensor(SensorsList *parent=0);
~LMSensor();
public slots:
void updateValue();
protected:
double calculateIdealValue();
bool init(const sensors_feature_data **data, int *nr1,int *nr2);
const sensors_chip_name *getChipName();
private:
int feature;
SensorType type;
QString description;
double val;
double valPrevious;
double compensation;
double multiplicator;
double valMax;
double valMin;
double valIdeal;
bool monitorize;
double readSensorValue();
};
#endif

@ -0,0 +1,145 @@
/***************************************************************************
lmsensordockpanel.cpp - description
-------------------
begin : Tue Sep 18 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <qpixmap.h>
#include <kstddirs.h>
#include <klocale.h>
#include <kconfig.h>
#include <kiconloader.h>
#include "lmsensordockpanel.h"
LMSensorDockPanel::LMSensorDockPanel(Sensor *newSensor, const char *name) : KSystemTray( 0, name )
{
strValue = "";
if(newSensor) {
sensor= newSensor;
updateConfig();
connect( newSensor, SIGNAL(valueChanged(double)) , this, SLOT(setValue(double)) );
connect( newSensor, SIGNAL(configChanged()) , this, SLOT(updateConfig()) );
setPixmap(0);
} else {
sensor= 0;
setPixmap(BarIcon("ksensorsdocked"));
}
}
LMSensorDockPanel::~LMSensorDockPanel()
{
}
void LMSensorDockPanel::setValue(double value)
{
if(sensor) {
switch(sensor->getType()) {
case Sensor::lmTemp:
strValue.sprintf("%2.0f",value);
break;
case Sensor::lmFan:
strValue.sprintf("%1.1f",value/1000);
break;
case Sensor::lmVoltage:
strValue.sprintf("%2.1f",value);
break;
}
update();
}
}
void LMSensorDockPanel::updateConfig()
{
colorAlarm = readColorAlarm (name());
colorNormal= readColorNormal(name());
setValue(sensor->getValue());
}
void LMSensorDockPanel::paintEvent ( QPaintEvent *e )
{
if(sensor) {
int w= width();
int h= height();
QPainter painter(this);
QColor color= sensor->getAlarm() ? colorAlarm : colorNormal;
QColor colorShadow= color.dark(200);
painter.setPen(color);
painter.drawLine(2, 2 , w-2,2 );
painter.drawLine(2, h-3, w-2,h-3);
painter.setPen(colorShadow);
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);
} else {
QLcd::draw(&painter,1,7,w-1, h-14,strValue.latin1(),QLcd::drawNumber|QLcd::alignCenter|QLcd::drawShadow,&color,&colorShadow);
}
} else {
KSystemTray::paintEvent(e);
}
}
void LMSensorDockPanel::mousePressEvent ( QMouseEvent *e )
{
emit mouseEvent(e);
}
void LMSensorDockPanel::mouseReleaseEvent ( QMouseEvent *e )
{
emit mouseEvent(e);
}
//*****************************************************************+
void LMSensorDockPanel::writeColorAlarm(const char *name, const QColor &color)
{
KGlobal::config()->setGroup(name);
KGlobal::config()->writeEntry("colorAlarm",color);
}
void LMSensorDockPanel::writeColorNormal(const char *name,const QColor &color)
{
KGlobal::config()->setGroup(name);
KGlobal::config()->writeEntry("colorNormal",color);
}
QColor LMSensorDockPanel::readColorAlarm(const char *name)
{
KGlobal::config()->setGroup(name);
return KGlobal::config()->readColorEntry("colorAlarm" , &red );
}
QColor LMSensorDockPanel::readColorNormal(const char *name)
{
KGlobal::config()->setGroup(name);
return KGlobal::config()->readColorEntry("colorNormal", &darkGreen);
}
void LMSensorDockPanel::writeShowInDock(const char *name, bool fShow)
{
KGlobal::config()->setGroup(name);
KGlobal::config()->writeEntry("showInDock",fShow);
}
bool LMSensorDockPanel::readShowInDock(const char *name)
{
KGlobal::config()->setGroup(name);
return KGlobal::config()->readBoolEntry("showInDock", false);
}

@ -0,0 +1,72 @@
/***************************************************************************
lmsensordockpanel.h - description
-------------------
begin : Tue Sep 18 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef LMSENSORDOCKPANEL_H
#define LMSENSORDOCKPANEL_H
#include <ksystemtray.h>
#include <kpopupmenu.h>
#include <qcolor.h>
#include "qlcddraw.h"
#include "sensor.h"
/**
*@author Miguel Novas
*/
class LMSensorDockPanel : public KSystemTray {
Q_OBJECT
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 writeShowInDock (const char *name, bool fShow);
static QColor readColorAlarm (const char *name);
static QColor readColorNormal(const char *name);
static bool readShowInDock (const char *name);
public slots:
void setValue(double value);
void updateConfig();
signals:
void mouseEvent(QMouseEvent *e);
protected:
void paintEvent ( QPaintEvent * );
void mousePressEvent ( QMouseEvent * );
void mouseReleaseEvent ( QMouseEvent * );
private:
Sensor *sensor;
QString strValue;
QColor colorNormal,colorAlarm;
};
#endif

@ -0,0 +1,168 @@
/***************************************************************************
lmsensordisplay.cpp - description
-------------------
begin : Sat Aug 11 2001
copyright : (C) 2001 by
email :
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "lmsensorpanel.h"
LMSensorPanel::LMSensorPanel(Sensor *newSensor, QWidget *parent, const char *name ) : Panel(parent,name)
{
alarm= false;
//
sensor= newSensor;
//
createTitleWidget();
createGraphicWidget();
createValueWidget();
//
updateConfig();
//
connect( sensor, SIGNAL(valueChanged(double)) , this, SLOT(setValue(double)) );
connect( sensor, SIGNAL(configChanged()) , this, SLOT(updateConfig()) );
//
}
LMSensorPanel::~LMSensorPanel()
{
}
void LMSensorPanel::updateConfig()
{
switch(sensor->getType())
{
case Sensor::lmTemp:
if(arc) {
arc->setValueRanges(sensor->celsiusTo(0),sensor->celsiusTo(100));
arc->setValueMinLimit( sensor->getValueMin(),0);
arc->setValueMaxLimit( sensor->getValueMax(),15);
arc->setColorRanges(red,green,red);
}
switch( sensor->getTempScale() )
{
case Sensor::dgKelvin: valMask= "%.0fK"; break;
default : valMask= "%.0f^"; break;
}
break;
case Sensor::lmFan :
if(arc) {
arc->setValueRanges(0,10000);
arc->setValueMinLimit( sensor->getValueMin(),15);
arc->setValueMaxLimit( sensor->getValueMax(),0);
arc->setColorRanges(red,green,green);
}
valMask= "%.0f RPM";
break;
case Sensor::lmVoltage :
if(arc) {
double min= sensor->getValueMin();
double max= sensor->getValueMax();
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->setArrowColor(darkBlue);
}
valMask= "%.2fv";
break;
}
setValue(sensor->getValue());
arc->update();
lcdVal->update();
lcdDes->display(sensor->getDescription());
}
void LMSensorPanel::setValue(double value)
{
QString str;
str.sprintf(valMask.latin1(),value);
lcdVal->display(str);
arc->setValue(value);
//
bool newAlarm= sensor->getAlarm();
if(newAlarm!=alarm) {
alarm= newAlarm;
if(newAlarm) {
startTimer(500);
lcdVal->setForeColor(red);
} else {
killTimers();
lcdVal->setForeColor(black);
if(lcdVal->isHidden()) lcdVal->show();
}
}
}
//**********************************************************************
void LMSensorPanel::createTitleWidget()
{
lcdDes = new QLCDString(this);
lcdDes->setNumberDisplay(true);
lcdDes->installEventFilter(this);
}
void LMSensorPanel::createGraphicWidget()
{
arc = new QDialArc(this);
arc->installEventFilter(this);
arc->setAngles(180,-180);
}
void LMSensorPanel::createValueWidget()
{
lcdVal = new QLCDString(this);
lcdVal->installEventFilter(this);
lcdVal->setShadow(true);
lcdVal->setNumberDisplay(sensor->getType()==Sensor::lmVoltage);
}
void LMSensorPanel::resizeEvent ( QResizeEvent *e )
{
int w= width();
int h= height();
int i1= (h * 2) / 5;
int i2= (h * 4) / 5;
if(sensor->getType()==Sensor::lmVoltage) lcdVal->setGeometry( 3 , h/8 , w -4 , h/5-h/32);
else lcdVal->setGeometry( 3 , h/8 , w -4 , h/4-h/16);
arc->setGeometry ( 3 , i1 , w -6 , i2-i1-2);
lcdDes->setGeometry( 3 , i2+1, w -6 , h -i2-h/11);
}
void LMSensorPanel::timerEvent( QTimerEvent * )
{
if(lcdVal->isVisible()) lcdVal->hide();
else lcdVal->show();
repaint();
}
void LMSensorPanel::paletteChange(const QPalette &oldPalette)
{
lcdDes->setForeColor(getColorTitle());
lcdVal->setForeColor(getColorValue());
lcdVal->setShadowColor(getColorValue());
arc->setArrowColor(getColorValue());
}

@ -0,0 +1,66 @@
/***************************************************************************
lmsensorpanel.h - description
-------------------
begin : Sat Aug 11 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef LMSENSORPANEL_H
#define LMSENSORPANEL_H
#include <qstring.h>
#include "panel.h"
#include "sensor.h"
#include "qdialarc.h"
#include "qlcdstring.h"
/**
*@author
*/
class LMSensorPanel : public Panel {
Q_OBJECT
public:
LMSensorPanel(Sensor *newSensor, QWidget *parent=0, const char *name=0);
~LMSensorPanel();
public slots:
void setValue(double value);
void updateConfig();
protected:
void resizeEvent ( QResizeEvent * );
void createTitleWidget();
void createGraphicWidget();
void createValueWidget();
void timerEvent( QTimerEvent * );
void paletteChange(const QPalette &oldPalette);
private:
Sensor *sensor;
QDialArc *arc;
QLCDString *lcdDes;
QLCDString *lcdVal;
QString valMask;
bool alarm;
};
#endif

@ -0,0 +1,127 @@
/***************************************************************************
LMSensors.cpp - description
-------------------
begin : Mon Aug 6 2001
copyright : (C) 2001 by
email :
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/stat.h>
#include <qstrlist.h>
#include <qobjectlist.h>
#include "lmsensors.h"
//****************************************************************************
// Public methods
//****************************************************************************
LMSensors::LMSensors(QObject *parent, const char * name)
: QObject(parent,name)
{
if(initSensors()) createLMSensors();
createI8KSensors();
createHDSensors();
}
LMSensors::~LMSensors()
{
if(count()) sensors_cleanup();
}
bool LMSensors::initSensors()
{
FILE *fp=fopen("/etc/sensors.conf","r");
if(!fp) {
qWarning("KSensors error: /etc/sensors.conf not found !");
return false;
}
int err= sensors_init(fp);
if(err) {
qWarning("KSensors error: sensors_init fail, error code %d",err);
return false;
}
fclose(fp);
return true;
}
void LMSensors::createLMSensors()
{
const sensors_chip_name *chip_name;
int err= 0;
while( (chip_name= sensors_get_detected_chips(&err)) )
if( existSensor(chip_name,"temp") ||
existSensor(chip_name,"fan") )
{
(void)new LMSensorsChip(chip_name,this);
}
}
void LMSensors::createHDSensors()
{
HDSensorsList *disks= new HDSensorsList(this,"Disks");
if(disks->count()==0) delete disks;
}
void LMSensors::createI8KSensors()
{
if(I8KSensorsList::I8KAvailable())
(void) new I8KSensorsList(this,"I8KSensors");
}
int LMSensors::existSensor(const sensors_chip_name *chip_name,const char *sensor_name)
{
int nr1,nr2;
const sensors_feature_data *sensor_data;
nr1=nr2= 0;
while( (sensor_data= sensors_get_all_features(*chip_name, &nr1, &nr2)) )
if( strstr(sensor_data->name,sensor_name) )
return sensor_data->number;
return 0;
}
void LMSensors::setMonitorized(bool enable)
{
QObjectList *list= getSensorsChips();
if(list)
for(LMSensorsChip *sensor=(LMSensorsChip*)list->first(); sensor!=0; sensor= (LMSensorsChip *)list->next())
sensor->setMonitorized(enable);
}
Sensor *LMSensors::getSensor(const char *name)
{
int index= count();
Sensor *sensor= 0;
while(--index>=0 && !sensor) {
sensor= getSensorsChip(index)->getSensor(name);
}
return sensor;
}
void LMSensors::childEvent( QChildEvent *e )
{
if(e->inserted()) {
connect((SensorsList *)e->child(),SIGNAL(valueChanged(Sensor *)) ,this,SIGNAL(valueChanged(Sensor *)));
connect((SensorsList *)e->child(),SIGNAL(configChanged(const char *)),this,SIGNAL(configChanged(const char *)));
}
}
/*********************************************************************************/

@ -0,0 +1,71 @@
/***************************************************************************
LMSensors.h - description
-------------------
begin : Mon Aug 6 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef LMSENSORS_H
#define LMSENSORS_H
#include <qobject.h>
#include <qobjcoll.h>
#include <kconfig.h>
#include <qstringlist.h>
#include <sensors/sensors.h>
#include "lmsensorschip.h"
#include "hdsensorslist.h"
#include "i8ksensorslist.h"
/**
*@author Michael
*/
class LMSensors : public QObject
{
Q_OBJECT
friend class LMSensor;
public:
LMSensors(QObject *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; }
SensorsList *getSensorsChip(const char *name) { return (SensorsList *)child(name); }
int count() { return children() ? children()->count() : 0; }
Sensor *getSensor(const char *name);
void emitConfigChanged(const char *name=0) { emit configChanged(name); }
signals:
void valueChanged(Sensor *);
void configChanged(const char *name);
private:
bool initSensors();
void createLMSensors();
void createHDSensors();
void createI8KSensors();
void childEvent ( QChildEvent *e );
static int existSensor(const sensors_chip_name *chip_name,const char *sensor_name);
};
#endif

@ -0,0 +1,145 @@
/***************************************************************************
lmsensorsalarms.cpp - description
-------------------
begin : Wed Nov 14 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <stdlib.h>
#include <qstring.h>
#include <kglobal.h>
#include <kprocess.h>
#include <kaudioplayer.h>
#include "lmsensorsalarms.h"
LMSensorsAlarms::LMSensorsAlarms(LMSensors *sensors, QObject *parent, const char *name)
: QObject(parent,name)
{
sensorCount= 0;
soundPlay = "";
connect( sensors, SIGNAL(valueChanged(Sensor *)) , this, SLOT(setValueChanged(Sensor *)) );
}
LMSensorsAlarms::~LMSensorsAlarms()
{
}
//###########################################################################################
void LMSensorsAlarms::runSensorCommand(const char *name,const char *value, const char *cmd)
{
setenv("SENSOR_NAME" , name , 1);
setenv("SENSOR_VALUE", value, 1);
runCommand( cmd );
}
void LMSensorsAlarms::runCommand(const char *str)
{
KShellProcess p;
p << str;
p.start(KShellProcess::DontCare);
p.detach();
}
void LMSensorsAlarms::playSound(const char *sound)
{
KAudioPlayer::play(sound);
}
//###########################################################################################
void LMSensorsAlarms::setValueChanged(Sensor *sensor)
{
if(sensor->getAlarm()) {
if(!sensor->getAlarmPrevious()) {
switch ( readAlarm(sensor->name()) )
{
case acSound:
sensorCount++;
soundPlay= readAlarmSound(sensor->name());
if(sensorCount==1) startTimer(3000);
break;
case acCommand:
runSensorCommand(
(const char *)sensor->getDescription(),
(const char *)QString::number(sensor->getValue()),
(const char *)readAlarmCommand(sensor->name())
);
break;
}
}
} else {
if(sensor->getAlarmPrevious()) {
if( readAlarm(sensor->name())==acSound ) {
if(--sensorCount==0) killTimers();
}
}
}
}
void LMSensorsAlarms::timerEvent( QTimerEvent * )
{
KAudioPlayer::play(soundPlay);
}
//##########################################################################
int LMSensorsAlarms::readAlarm(const char *name)
{
KGlobal::config()->setGroup(name);
return KGlobal::config()->readNumEntry("Alarm",acNothing);
}
void LMSensorsAlarms::writeAlarm(const char *name, int alarm)
{
KGlobal::config()->setGroup(name);
KGlobal::config()->writeEntry("Alarm",alarm);
}
QString LMSensorsAlarms::readAlarmCommand(const char *name)
{
KGlobal::config()->setGroup(name);
return KGlobal::config()->readEntry("AlarmCommand", "");
}
void LMSensorsAlarms::writeAlarmCommand(const char *name, const QString &cmd)
{
KGlobal::config()->setGroup(name);
KGlobal::config()->writeEntry("AlarmCommand", cmd);
}
QString LMSensorsAlarms::readAlarmSound(const char *name)
{
KGlobal::config()->setGroup(name);
return KGlobal::config()->readEntry("AlarmSound", "ksensors_alert.wav");
}
void LMSensorsAlarms::writeAlarmSound(const char *name, const QString &cmd)
{
KGlobal::config()->setGroup(name);
KGlobal::config()->writeEntry("AlarmSound", cmd);
}

@ -0,0 +1,61 @@
/***************************************************************************
lmsensorsalarms.h - description
-------------------
begin : Wed Nov 14 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef LMSENSORSALARMS_H
#define LMSENSORSALARMS_H
#include <qobject.h>
#include <qstring.h>
#include "lmsensors.h"
/**
*@author Miguel Novas
*/
class LMSensorsAlarms : public QObject {
Q_OBJECT
public:
enum Actions { acNothing, acSound, acCommand };
LMSensorsAlarms(LMSensors *sensors, QObject *parent=0, const char *name=0);
~LMSensorsAlarms();
static int readAlarm(const char *name);
static QString 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 void runSensorCommand(const char *name,const char *value, const char *cmd);
static void playSound(const char *sound);
public slots:
void setValueChanged(Sensor *);
private:
int sensorCount;
QString soundPlay;
static void runCommand(const char *str);
void timerEvent( QTimerEvent * );
};
#endif

@ -0,0 +1,292 @@
/***************************************************************************
lmsensorscfg.cpp - description
-------------------
begin : Mon Aug 13 2001
copyright : (C) 2001 by
email :
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "lmsensorscfg.h"
#include "lmsensorsalarms.h"
#include "lmsensorpanel.h"
#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 <qobjcoll.h>
#include <qtabwidget.h>
#include <qcombobox.h>
#include <qspinbox.h>
#include <qlayout.h>
#include <kcolorbutton.h>
#include <kiconloader.h>
#include <klocale.h>
#include <kaboutapplication.h>
LMSensorsCfg::LMSensorsCfg(SensorsList *lsensors,QWidget *parent, const char *name) : LMSensorsCfgDesign(parent,name,WDestructiveClose)
{
sensors = lsensors;
curSensor= 0;
palPanelCfg= new PaletteCfg( boxPanelPalette );
boxPanelPalette->setColumnLayout(0, Qt::Vertical );
boxPanelPalette->layout()->setSpacing( 6 );
boxPanelPalette->layout()->setMargin( 12 );
QGridLayout *boxPanelPaletteLayout = new QGridLayout( boxPanelPalette->layout() );
boxPanelPaletteLayout->setAlignment( Qt::AlignTop );
boxPanelPaletteLayout->addWidget( palPanelCfg, 0, 0 );
readSensorsList();
connect( MainTab ,SIGNAL(currentChanged(QWidget*)), this, SLOT(slotMainTabPageChanged(QWidget *)));
connect( listSensors ,SIGNAL(highlighted(int)),this,SLOT(slotCurrentSensorChanged(int)) );
//connect( buttonApply ,SIGNAL(clicked()),this,SLOT(slotApplyChanges()));
connect( buttonTest ,SIGNAL(clicked()),this,SLOT(slotTestAlarm()));
connect( editMinValue ,SIGNAL(activated(int)),this,SLOT(slotComboMinMaxSelected(int)));
connect( editMaxValue ,SIGNAL(activated(int)),this,SLOT(slotComboMinMaxSelected(int)));
}
LMSensorsCfg::~LMSensorsCfg()
{
}
void LMSensorsCfg::readSensorsList()
{
QObjectList *list= sensors->getSensors();
if(list) {
listSensors->clear();
QPixmap pm;
for(LMSensor *sensor=(LMSensor*)list->first(); sensor!=0; sensor= (LMSensor*)list->next()) {
switch(sensor->getType()) {
case LMSensor::lmTemp : pm= UserIcon("thermometer18x18.png"); break;
case LMSensor::lmFan : pm= UserIcon("cooler18x18.png"); break;
case LMSensor::lmVoltage: pm= UserIcon("battery18x18.png"); break;
}
listSensors->insertItem(pm,sensor->getDescription());
}
listSensors->setCurrentItem(0);
}
}
void LMSensorsCfg::readSensorInfo(int index)
{
if(index<0) return;
Sensor *oldSensor= curSensor;
curSensor= sensors->getSensor(index);
if(!curSensor) return;
if( oldSensor==0 || curSensor->getType()!=oldSensor->getType() || curSensor->getClass()!=oldSensor->getClass() )
switch(curSensor->getType()) {
case LMSensor::lmTemp : GroupBoxDes->setTitle(i18n("Temperature"));
pixmapSensor->setPixmap( UserIcon(
curSensor->getClass()==Sensor::lmSensor ?
"thermometer.png":"harddisk.png"
) );
break;
case LMSensor::lmFan : GroupBoxDes->setTitle(i18n("Fan"));
pixmapSensor->setPixmap(UserIcon("cooler.png"));
break;
case LMSensor::lmVoltage: GroupBoxDes->setTitle(i18n("Voltage"));
pixmapSensor->setPixmap(UserIcon("battery.png"));
break;
}
editDescription ->setText(curSensor->getDescription());
QString str;
const char *mask= curSensor->getType()==LMSensor::lmVoltage ? "%.2lf":"%.0lf";
str.sprintf(curSensor->getPrintMask(true), curSensor->getValue());
editValue->setText(str);
str.sprintf(mask, curSensor->getValueIdeal());
editIdealValue->setText(str);
str.sprintf(mask, curSensor->getValueMin());
editMinValue->setEditText(str);
str.sprintf(mask, curSensor->getValueMax());
editMaxValue->setEditText(str);
editSum->setText(QString::number(curSensor->getCompensation()));
editMul->setText(QString::number(curSensor->getMultiplicator()));
//checkShowInDock->setEnabled( curSensor->getType()==LMSensor::lmTemp );
//GroupBoxColorDock->setEnabled( curSensor->getType()==LMSensor::lmTemp );
CheckAllSensors->setChecked(false);
colorAlarm ->setColor ( LMSensorDockPanel::readColorAlarm(curSensor->name()) );
colorNormal ->setColor ( LMSensorDockPanel::readColorNormal(curSensor->name()) );
checkShow ->setChecked( LMSensorPanel::readShow(curSensor->name()) );
checkShowInDock->setChecked( checkShowInDock->isEnabled() && LMSensorDockPanel::readShowInDock(curSensor->name()) );
editLaunch->setText( LMSensorsAlarms::readAlarmCommand(curSensor->name()) );
editPlay ->setText( LMSensorsAlarms::readAlarmSound (curSensor->name()) );
switch( LMSensorsAlarms::readAlarm(curSensor->name()) )
{
case LMSensorsAlarms::acNothing : radioAlarm1->setChecked(true); break;
case LMSensorsAlarms::acSound : radioAlarm2->setChecked(true); break;
case LMSensorsAlarms::acCommand : radioAlarm3->setChecked(true); break;
}
palPanelCfg->readPalette(curSensor->name());
}
void LMSensorsCfg::readPreferencesInfo()
{
switch(sensors->getTempScale()) {
case LMSensor::dgCelsius : RadioC->setChecked(true); break;
case LMSensor::dgFahrenheit: RadioF->setChecked(true); break;
case LMSensor::dgKelvin : RadioK->setChecked(true); break;
}
SpinUpdateTime->setValue(sensors->getUpdateInterval());
}
void LMSensorsCfg::applySensorChanges()
{
if(!curSensor) return;
const QString sName(curSensor->name());
// Apply sensor configuration
curSensor->setDescription(editDescription->text());
curSensor->setCompensation(editSum->text().toDouble());
curSensor->setMultiplicator(editMul->text().toDouble());
curSensor->setValueIdeal(editIdealValue->text().toDouble());
curSensor->setValueMax(editMaxValue->currentText().toDouble());
curSensor->setValueMin(editMinValue->currentText().toDouble());
curSensor->setMonitorized(
checkShow->isChecked() ||
checkShowInDock->isChecked() ||
!radioAlarm1->isChecked()
);
// Apply show in main window configuration
LMSensorPanel::writeShow(sName,checkShow->isChecked() );
// Apply dock configuration
LMSensorDockPanel::writeShowInDock(sName,checkShowInDock->isChecked());
LMSensorDockPanel::writeColorNormal(sName,colorNormal->color());
LMSensorDockPanel::writeColorAlarm(sName,colorAlarm->color());
//
palPanelCfg->savePalette();
//
// Apply alarms configuration
if( CheckAllSensors->isChecked() ) {
QObjectList *list= sensors->getSensors();
for(Sensor *sensor=(Sensor*)list->first(); sensor!=0; sensor= (Sensor*)list->next()) {
applySensorAlarmConfig(sensor);
sensor->writeConfig();
}
} else {
applySensorAlarmConfig(curSensor);
curSensor->writeConfig();
}
// This line must always be at the end of the method
listSensors->changeItem( *listSensors->pixmap(listSensors->currentItem()),editDescription->text(), listSensors->currentItem() );
}
void LMSensorsCfg::applySensorAlarmConfig(Sensor *sensor)
{
const char *name= sensor->name();
LMSensorsAlarms::writeAlarmCommand(name,editLaunch->text());
LMSensorsAlarms::writeAlarmSound (name,editPlay ->text());
int code= LMSensorsAlarms::acNothing;
if(radioAlarm1->isChecked()) code= LMSensorsAlarms::acNothing;
else if(radioAlarm2->isChecked()) code= LMSensorsAlarms::acSound;
else if(radioAlarm3->isChecked()) code= LMSensorsAlarms::acCommand;
LMSensorsAlarms::writeAlarm(name,code);
}
void LMSensorsCfg::applyPreferencesChanges()
{
LMSensor::TempScale scale= LMSensor::dgCelsius;
if(RadioK->isChecked()) scale= LMSensor::dgKelvin;
else if(RadioF->isChecked()) scale= LMSensor::dgFahrenheit;
sensors->setTempScale(scale);
sensors->setUpdateInterval(SpinUpdateTime->value());
sensors->writeConfig();
}
void LMSensorsCfg::slotCurrentSensorChanged(int index)
{
readSensorInfo(index);
}
void LMSensorsCfg::slotApplyChanges()
{
if (!isVisible())
return;
switch(MainTab->currentPageIndex())
{
case 0: applySensorChanges(); break;
case 1: applyPreferencesChanges(); break;
}
}
void LMSensorsCfg::slotAccept()
{
slotApplyChanges();
close();
}
void LMSensorsCfg::slotTestAlarm()
{
if( radioAlarm2->isChecked() ) {
LMSensorsAlarms::playSound(editPlay->text());
} else
if( radioAlarm3->isChecked() ) {
LMSensorsAlarms::runSensorCommand("TEST","100",editLaunch->text());
}
}
void LMSensorsCfg::slotMainTabPageChanged(QWidget *)
{
switch(MainTab->currentPageIndex())
{
case 0: readSensorInfo(listSensors->currentItem()); break;
case 1: readPreferencesInfo(); break;
}
}
void LMSensorsCfg::slotComboMinMaxSelected(int index)
{
QComboBox *combo = (QComboBox*)sender();
QString str = combo->text(index);
double percent= str.left(str.length()-1).toDouble();
double value = editIdealValue->text().toDouble();
if(value<0) percent= -percent;
value= value + value * percent / 100;
const char *mask= curSensor->getType()==LMSensor::lmVoltage ? "%.2lf":"%.0lf";
str.sprintf(mask,value);
combo->setEditText(str);
}

@ -0,0 +1,68 @@
/***************************************************************************
lmsensorscfg.h - description
-------------------
begin : Mon Aug 13 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef LMSENSORSCFG_H
#define LMSENSORSCFG_H
//#include <qobject.h>
#include "sensorslist.h"
#include "lmsensorscfgdesign.h"
#include "palettecfg.h"
/**
*@author
*/
class LMSensorsCfg : public LMSensorsCfgDesign {
Q_OBJECT
public:
LMSensorsCfg(SensorsList *lsensors,QWidget *parent=0, const char *name=0);
~LMSensorsCfg();
protected slots:
void slotAccept();
void slotTestAlarm();
void slotCurrentSensorChanged(int index);
void slotMainTabPageChanged(QWidget *);
void slotComboMinMaxSelected(int index);
public slots:
void slotApplyChanges();
protected:
void applySensorChanges();
void applyPreferencesChanges();
void applySensorAlarmConfig(Sensor *sensor);
void readSensorInfo(int index);
void readPreferencesInfo();
void readSensorsList();
private:
PaletteCfg *palPanelCfg;
SensorsList *sensors;
Sensor *curSensor;
};
#endif

@ -0,0 +1,471 @@
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './lmsensorscfgdesign.ui'
**
** Created: mer aoû 18 23:39:03 2004
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#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 <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>
/*
* 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 )
{
if ( !name )
setName( "LMSensorsCfgDesign" );
setMinimumSize( QSize( 0, 340 ) );
LMSensorsCfgDesignLayout = new QGridLayout( this, 1, 1, 8, 4, "LMSensorsCfgDesignLayout");
MainTab = new QTabWidget( this, "MainTab" );
MainTab->setMinimumSize( QSize( 422, 295 ) );
tab = new QWidget( MainTab, "tab" );
tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout");
SensorsTab = new QTabWidget( tab, "SensorsTab" );
SensorsTab->setMinimumSize( QSize( 272, 276 ) );
SensorsTab->setTabShape( QTabWidget::Rounded );
SensorsTab->setMargin( 0 );
tab_2 = new QWidget( SensorsTab, "tab_2" );
tabLayout_2 = new QGridLayout( 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->layout()->setSpacing( 6 );
GroupBoxDes->layout()->setMargin( 11 );
GroupBoxDesLayout = new QGridLayout( GroupBoxDes->layout() );
GroupBoxDesLayout->setAlignment( Qt::AlignTop );
layout5 = new QHBoxLayout( 0, 0, 6, "layout5");
pixmapSensor = new QLabel( GroupBoxDes, "pixmapSensor" );
pixmapSensor->setScaledContents( TRUE );
layout5->addWidget( pixmapSensor );
layout4 = new QVBoxLayout( 0, 0, 6, "layout4");
TextLabel2_2 = new QLabel( GroupBoxDes, "TextLabel2_2" );
layout4->addWidget( TextLabel2_2 );
editDescription = new QLineEdit( GroupBoxDes, "editDescription" );
layout4->addWidget( editDescription );
layout5->addLayout( layout4 );
GroupBoxDesLayout->addLayout( layout5, 0, 0 );
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->layout()->setSpacing( 6 );
GroupBox2_2_2->layout()->setMargin( 11 );
GroupBox2_2_2Layout = new QGridLayout( GroupBox2_2_2->layout() );
GroupBox2_2_2Layout->setAlignment( Qt::AlignTop );
editValue = new QLineEdit( GroupBox2_2_2, "editValue" );
editValue->setEnabled( FALSE );
editValue->setAlignment( int( QLineEdit::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" );
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->setScaledContents( FALSE );
GroupBox2_2_2Layout->addWidget( TextLabel3_2_4_2_2_2, 0, 1 );
editMaxValue = new QComboBox( 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" );
GroupBox2_2_2Layout->addWidget( TextLabel1_2_3_2_2, 0, 2 );
editMul = new QLineEdit( GroupBox2_2_2, "editMul" );
GroupBox2_2_2Layout->addWidget( editMul, 1, 2 );
TextLabel3_2 = new QLabel( 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" );
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" );
GroupBox2_2_2Layout->addWidget( TextLabel1_3_3_2, 3, 2 );
editIdealValue = new QLineEdit( GroupBox2_2_2, "editIdealValue" );
editIdealValue->setAlignment( int( QLineEdit::AlignLeft ) );
GroupBox2_2_2Layout->addWidget( editIdealValue, 4, 0 );
editMinValue = new QComboBox( 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" );
GroupBox2_2_2Layout->addWidget( editSum, 4, 2 );
spacer12 = new QSpacerItem( 21, 21, QSizePolicy::Minimum, QSizePolicy::Expanding );
GroupBox2_2_2Layout->addItem( spacer12, 5, 1 );
spacer10 = new QSpacerItem( 20, 5, QSizePolicy::Minimum, QSizePolicy::Fixed );
GroupBox2_2_2Layout->addItem( spacer10, 2, 1 );
tabLayout_2->addWidget( GroupBox2_2_2, 1, 0 );
SensorsTab->insertTab( tab_2, QString("") );
tab_3 = new QWidget( SensorsTab, "tab_3" );
tabLayout_3 = new QVBoxLayout( 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->layout()->setSpacing( 6 );
GroupBox13->layout()->setMargin( 11 );
GroupBox13Layout = new QGridLayout( GroupBox13->layout() );
GroupBox13Layout->setAlignment( Qt::AlignTop );
checkShow = new QCheckBox( GroupBox13, "checkShow" );
checkShow->setCursor( QCursor( 0 ) );
GroupBox13Layout->addWidget( checkShow, 0, 0 );
tabLayout_3->addWidget( GroupBox13 );
boxPanelPalette = new QGroupBox( tab_3, "boxPanelPalette" );
boxPanelPalette->setMinimumSize( QSize( 0, 90 ) );
tabLayout_3->addWidget( boxPanelPalette );
Spacer4_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
tabLayout_3->addItem( Spacer4_2 );
SensorsTab->insertTab( tab_3, QString("") );
tab_4 = new QWidget( SensorsTab, "tab_4" );
tabLayout_4 = new QGridLayout( 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->layout()->setSpacing( 6 );
GroupBox14->layout()->setMargin( 11 );
GroupBox14Layout = new QGridLayout( GroupBox14->layout() );
GroupBox14Layout->setAlignment( Qt::AlignTop );
checkShowInDock = new QCheckBox( GroupBox14, "checkShowInDock" );
checkShowInDock->setCursor( QCursor( 0 ) );
GroupBox14Layout->addWidget( checkShowInDock, 0, 0 );
tabLayout_4->addWidget( GroupBox14, 0, 0 );
Spacer3_2 = new QSpacerItem( 20, 120, QSizePolicy::Minimum, QSizePolicy::Expanding );
tabLayout_4->addItem( Spacer3_2, 2, 0 );
GroupBoxColorDock = new QGroupBox( 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->layout()->setSpacing( 6 );
GroupBoxColorDock->layout()->setMargin( 11 );
GroupBoxColorDockLayout = new QGridLayout( GroupBoxColorDock->layout() );
GroupBoxColorDockLayout->setAlignment( Qt::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 ) );
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 ) );
GroupBoxColorDockLayout->addWidget( colorAlarm, 1, 1 );
colorNormal = new KColorButton( GroupBoxColorDock, "colorNormal" );
colorNormal->setEnabled( TRUE );
colorNormal->setAcceptDrops( TRUE );
colorNormal->setToggleButton( FALSE );
colorNormal->setOn( FALSE );
colorNormal->setColor( QColor( 0, 0, 255 ) );
GroupBoxColorDockLayout->addWidget( colorNormal, 0, 1 );
spacer5 = new QSpacerItem( 41, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
GroupBoxColorDockLayout->addItem( spacer5, 0, 2 );
spacer6 = new QSpacerItem( 41, 20, QSizePolicy::Expanding, QSizePolicy::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 ) );
GroupBoxColorDockLayout->addWidget( TextLabel1_4_2_2, 0, 0 );
tabLayout_4->addWidget( GroupBoxColorDock, 1, 0 );
SensorsTab->insertTab( tab_4, QString("") );
tab_5 = new QWidget( SensorsTab, "tab_5" );
tabLayout_5 = new QVBoxLayout( tab_5, 11, 6, "tabLayout_5");
TextLabel1_3_2_2_2_2 = new QLabel( 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 );
tabLayout_5->addWidget( Frame11_2_2_2 );
layout9 = new QGridLayout( 0, 1, 1, 0, 6, "layout9");
CheckAllSensors = new QCheckBox( tab_5, "CheckAllSensors" );
CheckAllSensors->setAutoResize( TRUE );
layout9->addWidget( CheckAllSensors, 6, 0 );
spacer9 = new QSpacerItem( 20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding );
layout9->addItem( spacer9, 7, 0 );
radioAlarm1 = new QRadioButton( tab_5, "radioAlarm1" );
radioAlarm1->setCursor( QCursor( 0 ) );
radioAlarm1->setChecked( TRUE );
layout9->addWidget( radioAlarm1, 4, 0 );
buttonTest = new QPushButton( tab_5, "buttonTest" );
buttonTest->setEnabled( FALSE );
layout9->addWidget( buttonTest, 5, 1 );
radioAlarm2 = new QRadioButton( tab_5, "radioAlarm2" );
radioAlarm2->setCursor( QCursor( 0 ) );
radioAlarm2->setChecked( FALSE );
layout9->addWidget( radioAlarm2, 2, 0 );
radioAlarm3 = new QRadioButton( tab_5, "radioAlarm3" );
radioAlarm3->setCursor( QCursor( 0 ) );
layout9->addWidget( radioAlarm3, 0, 0 );
layout6 = new QHBoxLayout( 0, 0, 6, "layout6");
spacer7 = new QSpacerItem( 31, 20, QSizePolicy::Fixed, QSizePolicy::Minimum );
layout6->addItem( spacer7 );
editLaunch = new QLineEdit( 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->addItem( spacer8 );
editPlay = new QLineEdit( tab_5, "editPlay" );
editPlay->setEnabled( FALSE );
layout7->addWidget( editPlay );
layout9->addLayout( layout7, 3, 0 );
tabLayout_5->addLayout( layout9 );
SensorsTab->insertTab( tab_5, QString("") );
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->setLineWidth( 2 );
listSensors->setColumnMode( QListBox::FixedNumber );
tabLayout->addWidget( listSensors, 0, 0 );
MainTab->insertTab( tab, QString("") );
tab_6 = new QWidget( MainTab, "tab_6" );
tabLayout_6 = new QGridLayout( tab_6, 1, 1, 11, 6, "tabLayout_6");
ButtonGroup5 = new QButtonGroup( tab_6, "ButtonGroup5" );
ButtonGroup5->setColumnLayout(0, Qt::Vertical );
ButtonGroup5->layout()->setSpacing( 6 );
ButtonGroup5->layout()->setMargin( 11 );
ButtonGroup5Layout = new QGridLayout( ButtonGroup5->layout() );
ButtonGroup5Layout->setAlignment( Qt::AlignTop );
RadioF = new QRadioButton( ButtonGroup5, "RadioF" );
RadioF->setMinimumSize( QSize( 0, 0 ) );
ButtonGroup5Layout->addWidget( RadioF, 1, 0 );
RadioC = new QRadioButton( ButtonGroup5, "RadioC" );
RadioC->setChecked( TRUE );
ButtonGroup5Layout->addWidget( RadioC, 0, 0 );
RadioK = new QRadioButton( ButtonGroup5, "RadioK" );
ButtonGroup5Layout->addWidget( RadioK, 2, 0 );
tabLayout_6->addWidget( ButtonGroup5, 0, 0 );
spacer12_2 = new QSpacerItem( 5, 5, QSizePolicy::Minimum, QSizePolicy::Expanding );
tabLayout_6->addItem( spacer12_2, 2, 0 );
groupBox79 = new QGroupBox( tab_6, "groupBox79" );
groupBox79->setColumnLayout(0, Qt::Vertical );
groupBox79->layout()->setSpacing( 6 );
groupBox79->layout()->setMargin( 18 );
groupBox79Layout = new QGridLayout( groupBox79->layout() );
groupBox79Layout->setAlignment( Qt::AlignTop );
SpinUpdateTime = new QSpinBox( groupBox79, "SpinUpdateTime" );
SpinUpdateTime->setMinValue( 1 );
SpinUpdateTime->setValue( 5 );
groupBox79Layout->addWidget( SpinUpdateTime, 0, 0 );
SliderUpdateTime = new QSlider( groupBox79, "SliderUpdateTime" );
SliderUpdateTime->setMaxValue( 60 );
SliderUpdateTime->setValue( 5 );
SliderUpdateTime->setOrientation( QSlider::Horizontal );
SliderUpdateTime->setTickmarks( QSlider::Below );
SliderUpdateTime->setTickInterval( 1 );
groupBox79Layout->addWidget( SliderUpdateTime, 0, 1 );
tabLayout_6->addWidget( groupBox79, 1, 0 );
MainTab->insertTab( tab_6, QString("") );
LMSensorsCfgDesignLayout->addWidget( MainTab, 0, 0 );
languageChange();
resize( QSize(438, 344).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
connect( radioAlarm3, SIGNAL( toggled(bool) ), editLaunch, SLOT( setEnabled(bool) ) );
connect( radioAlarm2, SIGNAL( toggled(bool) ), editPlay, SLOT( setEnabled(bool) ) );
connect( radioAlarm1, SIGNAL( toggled(bool) ), buttonTest, SLOT( setDisabled(bool) ) );
connect( SliderUpdateTime, SIGNAL( valueChanged(int) ), SpinUpdateTime, SLOT( setValue(int) ) );
connect( SpinUpdateTime, SIGNAL( valueChanged(int) ), SliderUpdateTime, SLOT( setValue(int) ) );
}
/*
* Destroys the object and frees any allocated resources
*/
LMSensorsCfgDesign::~LMSensorsCfgDesign()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void LMSensorsCfgDesign::languageChange()
{
setCaption( tr2i18n( "LMSensorsCfgDesign" ) );
GroupBoxDes->setTitle( QString::null );
TextLabel2_2->setText( tr2i18n( "Description" ) );
editDescription->setText( QString::null );
GroupBox2_2_2->setTitle( tr2i18n( "Values" ) );
editValue->setText( QString::null );
TextLabel3_2_2_3_2_2_2->setText( tr2i18n( "Current" ) );
TextLabel3_2_4_2_2_2->setText( tr2i18n( "Maximum" ) );
editMaxValue->clear();
editMaxValue->insertItem( tr2i18n( "+1%" ) );
editMaxValue->insertItem( tr2i18n( "+2%" ) );
editMaxValue->insertItem( tr2i18n( "+3%" ) );
editMaxValue->insertItem( tr2i18n( "+4%" ) );
editMaxValue->insertItem( tr2i18n( "+5%" ) );
editMaxValue->insertItem( tr2i18n( "+10%" ) );
editMaxValue->insertItem( tr2i18n( "+15%" ) );
editMaxValue->insertItem( tr2i18n( "+20%" ) );
editMaxValue->insertItem( tr2i18n( "+30%" ) );
editMaxValue->insertItem( tr2i18n( "+40%" ) );
editMaxValue->insertItem( tr2i18n( "+50%" ) );
TextLabel1_2_3_2_2->setText( tr2i18n( "Multiplier" ) );
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 );
editMinValue->clear();
editMinValue->insertItem( tr2i18n( "-1%" ) );
editMinValue->insertItem( tr2i18n( "-2%" ) );
editMinValue->insertItem( tr2i18n( "-3%" ) );
editMinValue->insertItem( tr2i18n( "-4%" ) );
editMinValue->insertItem( tr2i18n( "-5%" ) );
editMinValue->insertItem( tr2i18n( "-10%" ) );
editMinValue->insertItem( tr2i18n( "-15%" ) );
editMinValue->insertItem( tr2i18n( "-20%" ) );
editMinValue->insertItem( tr2i18n( "-30%" ) );
editMinValue->insertItem( tr2i18n( "-40%" ) );
editMinValue->insertItem( tr2i18n( "-50%" ) );
SensorsTab->changeTab( tab_2, tr2i18n( "General" ) );
GroupBox13->setTitle( QString::null );
checkShow->setText( tr2i18n( "Visible" ) );
boxPanelPalette->setTitle( tr2i18n( "Colors" ) );
SensorsTab->changeTab( tab_3, tr2i18n( "Panel" ) );
GroupBox14->setTitle( QString::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 );
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:" ) );
CheckAllSensors->setText( tr2i18n( "Apply to all sensors" ) );
radioAlarm1->setText( tr2i18n( "Do nothing" ) );
buttonTest->setText( tr2i18n( "Test" ) );
radioAlarm2->setText( tr2i18n( "Play alarm sound" ) );
radioAlarm3->setText( tr2i18n( "Run command" ) );
SensorsTab->changeTab( tab_5, tr2i18n( "Alarms" ) );
MainTab->changeTab( tab, tr2i18n( "Sensors" ) );
ButtonGroup5->setTitle( tr2i18n( "Temperatures scale" ) );
RadioF->setText( tr2i18n( "Fahrenheit" ) );
RadioC->setText( tr2i18n( "Celsius" ) );
RadioK->setText( tr2i18n( "Kelvin" ) );
groupBox79->setTitle( tr2i18n( "Update interval" ) );
SpinUpdateTime->setSuffix( tr2i18n( "s" ) );
MainTab->changeTab( tab_6, tr2i18n( "Preferences" ) );
}
#include "lmsensorscfgdesign.moc"

@ -0,0 +1,134 @@
/****************************************************************************
** Form interface generated from reading ui file './lmsensorscfgdesign.ui'
**
** Created: mer aoû 18 23:39:01 2004
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef LMSENSORSCFGDESIGN_H
#define LMSENSORSCFGDESIGN_H
#include <qvariant.h>
#include <qwidget.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 KColorButton;
class QFrame;
class QRadioButton;
class QPushButton;
class QListBox;
class QListBoxItem;
class QButtonGroup;
class QSpinBox;
class QSlider;
class LMSensorsCfgDesign : public QWidget
{
Q_OBJECT
public:
LMSensorsCfgDesign( QWidget* 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;
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;
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;
protected slots:
virtual void languageChange();
};
#endif // LMSENSORSCFGDESIGN_H

File diff suppressed because it is too large Load Diff

@ -0,0 +1,72 @@
/***************************************************************************
lmsensorschip.cpp - description
-------------------
begin : Wed Feb 20 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <unistd.h>
#include <string.h>
#include <sys/stat.h>
#include <sensors/sensors.h>
#include "lmsensorschip.h"
//****************************************************************************
// Public methods
//****************************************************************************
LMSensorsChip::LMSensorsChip(const sensors_chip_name *chip, QObject *parent, const char * name)
: SensorsList(parent,name)
{
setClass(Sensor::lmSensor);
chip_name= chip;
setName( chip_name->prefix );
setDescription( chip_name->prefix );
readConfig();
createSensors();
}
LMSensorsChip::~LMSensorsChip()
{
}
const sensors_chip_name *LMSensorsChip::getChipName()
{
return chip_name;
}
void LMSensorsChip::createSensors()
{
if(!chip_name) return;
const sensors_feature_data *data;
int nr1= 0;
int nr2= 0;
data= sensors_get_all_features(*chip_name, &nr1, &nr2);
while(data) {
LMSensor *sensor= new LMSensor(this);
if( !sensor->init(&data,&nr1,&nr2) )
delete sensor;
}
}
void LMSensorsChip::updateSensors()
{
QObjectList *sensors= (QObjectList *)children();
if(sensors)
for(LMSensor *sensor= (LMSensor *)sensors->first(); sensor!=0; sensor= (LMSensor *)sensors->next())
if(sensor->monitorized()) sensor->updateValue();
}

@ -0,0 +1,55 @@
/***************************************************************************
lmsensorschip.h - description
-------------------
begin : Wed Feb 20 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef LMSENSORSCHIP_H
#define LMSENSORSCHIP_H
#include "lmsensor.h"
#include "sensorslist.h"
/**
*@author Miguel Novas
*/
class LMSensorsChip : public SensorsList
{
Q_OBJECT
friend class LMSensor;
public:
LMSensorsChip(const sensors_chip_name *chip=0, QObject *parent=0, const char *name=0);
~LMSensorsChip();
public slots:
void updateSensors();
protected:
const sensors_chip_name *getChipName();
private:
const sensors_chip_name *chip_name;
bool initSensorsChip();
void createSensors();
};
#endif

@ -0,0 +1,211 @@
/***************************************************************************
lmsensorsdock.cpp - description
-------------------
begin : Sun Sep 23 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "lmsensorsdock.h"
#include <qobjectlist.h>
#include <klocale.h>
#include <kiconloader.h>
#include <kapp.h>
#include <kaboutapplication.h>
#include <kwin.h>
#include <netwm.h>
LMSensorsDock::LMSensorsDock(bool fNoDock, QObject *parent, const char *name): QObject(parent,name)
{
noDock= fNoDock;
sensors= new LMSensors;
sensors->setMonitorized(true);
connect(sensors,SIGNAL(configChanged(const char *)),this,SLOT(updateItemDock(const char *)));
createAlarmControl();
createWidgets();
if(!noDock) createDockWidgets();
createMenu();
}
LMSensorsDock::~LMSensorsDock()
{
saveConfig();
if(sensorsWidget) delete sensorsWidget;
if(sensorsCfg) delete sensorsCfg;
if(sensorsAlarm) delete sensorsAlarm;
delete menu;
if(sensors) delete sensors;
}
void LMSensorsDock::createMenu()
{
menu= new KPopupMenu;
menu->insertTitle(kapp->miniIcon(),"KSensors");
menu->insertItem(SmallIcon("configure"),i18n("&Configure"), this, SLOT(createConfigWidget() ) ,0,101 );
menu->insertSeparator();
menu->insertItem(kapp->miniIcon() ,i18n("&About KSensors"), this, SLOT(showAbout() ) ,0,103 );
menu->insertSeparator();
if(!noDock) menu->insertItem(sensorsWidget ? i18n("&Minimize"):i18n("&Restore"), this, SLOT(minimizeRestoreWidget() ) ,0,100 );
menu->insertItem(SmallIcon("exit"),i18n("&Exit"), this, SLOT(close()),0,102);
}
void LMSensorsDock::createWidgets()
{
KGlobal::config()->setGroup("General");
if(noDock) createShowWidget();
else if(KGlobal::config()->readBoolEntry("showWidget",false)) {
int desktop = KGlobal::config()->readNumEntry("desktop", 0);
createShowWidget(desktop);
}
}
void LMSensorsDock::saveConfig()
{
KGlobal::config()->setGroup("General");
KGlobal::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());
}
}
void LMSensorsDock::createDockWidgets()
{
QObjectList *chips= sensors->getSensorsChips();
countSensors= 0;
if(chips)
for(LMSensorsChip *chip= (LMSensorsChip *)chips->first(); chip!=0; chip= (LMSensorsChip *)chips->next()) {
QObjectList *list= (QObjectList *)chip->getSensors();
if(list) {
for(LMSensor *sensor= (LMSensor *)list->first(); sensor!=0; sensor= (LMSensor *)list->next()) {
if( LMSensorDockPanel::readShowInDock(sensor->name()) )
createDockSensor(sensor);
}
}
}
if(countSensors==0) createDockSensor(0);
}
void LMSensorsDock::createAlarmControl()
{
sensorsAlarm= new LMSensorsAlarms(sensors);
}
void LMSensorsDock::minimizeRestoreWidget()
{
if(sensorsWidget) delete sensorsWidget;
else createShowWidget();
updateMenu();
}
void LMSensorsDock::updateMenu()
{
if(noDock && !sensorsWidget)
close();
else
menu->changeItem(100, sensorsWidget ? i18n("&Minimize") : i18n("&Restore"));
}
void LMSensorsDock::createShowWidget(int desktop)
{
if(!sensorsWidget) {
sensorsWidget= new LMSensorsWidget(sensors);
connect( sensorsWidget, SIGNAL(rightMouseClicked(QMouseEvent *)), this, SLOT(mouseEventReceived(QMouseEvent *)) );
connect( sensorsWidget, SIGNAL(destroyed()), this, SLOT(updateMenu()) );
}
if ((desktop != 0) && (desktop <= KWin::numberOfDesktops())) KWin::setOnDesktop(sensorsWidget->winId(), desktop);
sensorsWidget->show();
}
void LMSensorsDock::createConfigWidget()
{
if(!sensorsCfg) {
sensorsCfg= new KSensorsCfg(sensors);
}
sensorsCfg->show();
}
void LMSensorsDock::close()
{
delete this;
}
void LMSensorsDock::mouseEventReceived(QMouseEvent *e)
{
if(e->type()==QEvent::MouseButtonRelease) {
if( e->button()==LeftButton ) minimizeRestoreWidget();
if( e->button()==RightButton ) menu->popup(e->globalPos());
}
}
void LMSensorsDock::createDockSensor(Sensor *sensor)
{
if(countSensors==0) {
QObjectList *list= (QObjectList *)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 *)) );
insertChild(dock);
dock->show();
if(name) countSensors++;
}
void LMSensorsDock::deleteDockSensor(LMSensorDockPanel *sensor)
{
delete sensor;
if(--countSensors==0) createDockSensor(0);
}
void LMSensorsDock::updateItemDock(const char *name)
{
if(!name) return;
Sensor *sensor= sensors->getSensor(name);
// if((bool)sensor && sensor->getType()==LMSensor::lmTemp) {
bool fShow= LMSensorDockPanel::readShowInDock(name);
LMSensorDockPanel *dockSensor= (LMSensorDockPanel *)child(name);
if( fShow!=(bool)dockSensor ) {
if(dockSensor) deleteDockSensor(dockSensor);
else createDockSensor(sensor);
} else {
if(dockSensor!=0)
dockSensor->updateConfig();
}
// }
}
void LMSensorsDock::showAbout()
{
KAboutApplication *dialog;
dialog= new KAboutApplication;
dialog->exec();
delete dialog;
}

@ -0,0 +1,89 @@
/***************************************************************************
lmsensorsdock.h - description
-------------------
begin : Sun Sep 23 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef LMSENSORSDOCK_H
#define LMSENSORSDOCK_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <qobject.h>
#include <qguardedptr.h>
#include <kconfig.h>
#include <kpopupmenu.h>
#include <kdialogbase.h>
#include "lmsensors.h"
#include "lmsensorpanel.h"
#include "lmsensorswidget.h"
#include "lmsensordockpanel.h"
#include "lmsensorsalarms.h"
#include "ksensorscfg.h"
/**
*@author Miguel Novas
*/
class LMSensorsDock : public QObject
{
Q_OBJECT
public:
LMSensorsDock(bool fNoDock=false, QObject *parent=0, const char *name=0);
~LMSensorsDock();
public slots:
void saveConfig();
protected slots:
void updateItemDock(const char *name);
void mouseEventReceived(QMouseEvent *e);
void minimizeRestoreWidget();
void createConfigWidget();
void updateMenu();
void showAbout();
void close();
private:
bool noDock;
int countSensors;
LMSensors *sensors;
QGuardedPtr<KSensorsCfg> sensorsCfg;
QGuardedPtr<LMSensorsWidget> sensorsWidget;
QGuardedPtr<LMSensorsAlarms> sensorsAlarm;
KPopupMenu *menu;
void createMenu();
void createWidgets();
void createDockWidgets();
void createDockSensor(Sensor *sensor);
void deleteDockSensor(LMSensorDockPanel *sensor);
void createShowWidget(int desktop=0);
void createAlarmControl();
};
#endif

@ -0,0 +1,371 @@
/***************************************************************************
lmsensorswidget.cpp - description
-------------------
begin : Mon Aug 6 2001
copyright : (C) 2001 by
email :
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <qobject.h>
#include <qobjectlist.h>
#include <qpixmap.h>
#include <qtimer.h>
#include <kiconloader.h>
#include <kstddirs.h>
#include "lmsensorswidget.h"
/***************************************************************************
* Public methods *
***************************************************************************/
LMSensorsWidget::LMSensorsWidget(LMSensors *lsensors,QWidget *parent, const char *name )
: QWidget(parent,name,
WStyle_Customize |
WType_TopLevel |
WStyle_StaysOnTop |
WStyle_NormalBorder |
WDestructiveClose )
{
panelsSize= 64;
setMinimumSize(0,0);
setSizeIncrement(64,64);
setBaseSize(64,64);
//
sensors= lsensors;
//
childDraging = 0;
//
setCaption("KSensors");
//
loadPalette();
//
loadGeneralOptions();
//
setBackgroundPixmap( UserIcon("ksensorsbackground.png") );
//
KConfig *cfg= KGlobal::config();
cfg->setGroup("ShowWidget");
QRect rect(32,32,64*4,64*3);
rect= cfg->readRectEntry ("geometry", &rect);
move( rect.topLeft() );
resize( rect.size() );
//
createSensorPanels();
//
infoPanels= new InfoPanels(this);
//
connect(sensors, SIGNAL(configChanged(const char *)), this, SLOT(slotConfigChanged(const char *)) );
}
LMSensorsWidget::~LMSensorsWidget()
{
if(x()>=0 && y()>=0) {
KConfig *cfg= KGlobal::config();
cfg->setGroup("ShowWidget");
//cfg->writeEntry("geometry" , geometry() );
cfg->writeEntry( "geometry" , QRect(pos(), size()) );
}
delete infoPanels;
}
// ******************* Protected slots ******************************
void LMSensorsWidget::slotConfigChanged(const char *name)
{
if(name) {
Panel *panel= (Panel *)child(name);
Sensor *sensor= sensors->getSensor(name);
if(sensor) {
if(Panel::readShow(name)!= (bool)panel ) {
if(panel) { delete panel; }
else (void)new LMSensorPanel(sensor, this, sensor->name() );
}
} else infoPanels->configChanged(name);
panel= (Panel *)child(name);
if(panel) loadPalette(panel);
} else {
loadPalette();
loadGeneralOptions();
}
}
/***************************************************************************
* Private methods *
***************************************************************************/
void LMSensorsWidget::childEvent(QChildEvent *e)
{
if(e->inserted()) {
loadDisplayConfig((Panel *)e->child());
}
}
// ************* Draging panels and show menu ************************
void LMSensorsWidget::childEventReceived(QEvent *e)
{
QMouseEvent *m = (QMouseEvent*)e;
switch(e->type()) {
case QEvent::MouseButtonPress:
if( m->button()==LeftButton ) startDragChild(m,(QWidget *)sender());
break;
case QEvent::MouseButtonRelease:
if( m->button()==RightButton ) emit rightMouseClicked(m);
break;
}
}
void LMSensorsWidget::startDragChild(QMouseEvent *m, QWidget *w)
{
if(childDraging==0)
{
childDraging= w;
grabMouse(sizeAllCursor);
origMousePt = w->mapFromGlobal(m->globalPos());
//w->move( m->globalPos()-mapToGlobal(QPoint(0,0))-origMousePt);
w->raise();
w->update();
}
}
void LMSensorsWidget::endDragChild()
{
int x= childDraging->x();
int y= childDraging->y();
if(x<0) x=0;
if(y<0) y=0;
releaseMouse();
childDraging->move(
((x+childDraging->width() /2) / panelsSize) * panelsSize ,
((y+childDraging->height()/2) / panelsSize) * panelsSize
);
saveDisplayConfig((Panel *)childDraging);
childDraging= 0;
}
void LMSensorsWidget::mouseMoveEvent ( QMouseEvent *m )
{
if(childDraging)
{
childDraging->move(m->pos()-origMousePt);
childDraging->update();
}
}
void LMSensorsWidget::mouseReleaseEvent ( QMouseEvent *m )
{
if(childDraging && m->button()==LeftButton) endDragChild();
else
if(m->button()==RightButton) emit rightMouseClicked(m);
}
// ********************** Panels creation ************************
void LMSensorsWidget::findUnusedPosition(int *px,int *py)
{
bool found;
uint mx,my,x,y,a[32];
QObjectList *list= (QObjectList *)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())
{
y=obj->y()/panelsSize;
x=obj->x()/panelsSize;
if(x<32 && y<32) a[y]|= (1 << x);
if(x>mx) mx= x;
if(y>my) my= y;
}
//
for(x=0,y=0,found=false;y<=my && !found;) {
found= ((a[y] & (1 << x))==0);
if(!found)
if(++x>mx) { x= 0; y++; }
}
if(!found) {
x= (width()-1) / panelsSize;
if(x>mx) { x= mx+1; y= 0; }
else { x= 0; y= my+1; }
}
//
*px= x;
*py= y;
}
void LMSensorsWidget::loadDisplayConfig(Panel *display)
{
if(display==0) return;
loadPalette(display);
bool fNoCfg;
QPoint p(-1,-1);
KConfig *cfg= KGlobal::config();
cfg->setGroup(display->name());
p= cfg->readPointEntry("showPos", &p );
fNoCfg= (p.x()<0 || p.y()<0);
if(fNoCfg) findUnusedPosition(&p.rx(),&p.ry());
display->move(p.x()*panelsSize,p.y()*panelsSize);
display->resize(panelsSize,panelsSize);
display->show();
if(fNoCfg) {
saveDisplayConfig(display);
adjustSize();
}
display->installEventFilter(this);
connect(display, SIGNAL(eventReceived(QEvent *)), this, SLOT(childEventReceived(QEvent *)) );
}
void LMSensorsWidget::saveDisplayConfig(Panel *display)
{
KConfig *cfg= KGlobal::config();
cfg->setGroup(display->name());
cfg->writeEntry("show",true);
QPoint p= display->pos()/panelsSize;
cfg->writeEntry("showPos",p);
}
void LMSensorsWidget::createSensorPanels()
{
QObjectList *chips= sensors->getSensorsChips();
if(chips)
for(LMSensorsChip *chip= (LMSensorsChip *)chips->first(); chip!=0; chip= (LMSensorsChip *)chips->next()) {
QObjectList *list= (QObjectList *)chip->getSensors();
if(list) {
for(LMSensor *sensor= (LMSensor *)list->first(); sensor!=0; sensor= (LMSensor *)list->next()) {
if( Panel::readShow(sensor->name()) )
(void) new LMSensorPanel(sensor, this, sensor->name() );
}
}
}
}
void LMSensorsWidget::resizePanels(int newSize)
{
QObjectList *panels= (QObjectList *)children();
if(panels)
for(QWidget *panel= (QWidget *)panels->first(); panel!=0; panel= (QWidget *)panels->next()) {
panel->move( (panel->x()/panelsSize)*newSize, (panel->y()/panelsSize)*newSize);
panel->resize(newSize,newSize);
}
panelsSize= newSize;
adjustSize();
}
int LMSensorsWidget::cfgReadPanelSize()
{
KConfig *cfg= KGlobal::config();
cfg->setGroup( "ShowWidget" );
return cfg->readNumEntry("PanelsSize",64);
}
void LMSensorsWidget::cfgWritePanelSize(int newSize)
{
KConfig *cfg= KGlobal::config();
cfg->setGroup( "ShowWidget" );
cfg->writeEntry("PanelsSize",newSize);
}
void LMSensorsWidget::loadGeneralOptions()
{
int newSize= cfgReadPanelSize();
if(panelsSize!=newSize) {
setSizeIncrement(newSize,newSize);
setBaseSize(newSize,newSize);
resizePanels(newSize);
}
}
// ************************+******** Palettes stuff ****************************
void LMSensorsWidget::loadPalette(Panel *panel)
{
QPalette pal= palette();
if(panel) {
if(cfgReadPalette(pal,panel->name(),false)) panel->setPalette(pal);
else panel->unsetPalette();
} else {
cfgReadPalette(pal,0,true);
setPalette(pal);
}
}
void LMSensorsWidget::getDefaultPalette(QPalette &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 );
}
bool LMSensorsWidget::cfgReadPalette(QPalette &pal,const char *name, bool returnDefault)
{
KConfig *cfg= KGlobal::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) );
return true;
} else {
if(returnDefault) {
getDefaultPalette(pal);
return true;
}
}
return false;
}
void LMSensorsWidget::cfgWritePalette(const QPalette &pal,const char *name)
{
KConfig *cfg= KGlobal::config();
QColorGroup colors= pal.active();
cfg->setGroup( name ? name : "General" );
cfg->writeEntry("PaletteActive",true);
cfg->writeEntry("ColorBackground",colors.background() );
cfg->writeEntry("ColorShadow" ,colors.dark() );
cfg->writeEntry("ColorValue" ,colors.foreground() );
cfg->writeEntry("ColorTitle" ,colors.text() );
}
void LMSensorsWidget::cfgUnsetPalette(const char *name)
{
KGlobal::config()->setGroup( name ? name : "General" );
KGlobal::config()->writeEntry("PaletteActive",false);
}
// *********************************** End *************************************

@ -0,0 +1,82 @@
/***************************************************************************
lmsensorswidget.h - description
-------------------
begin : Mon Aug 6 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef LMSENSORSWIDGET_H
#define LMSENSORSWIDGET_H
#include <qwidget.h>
#include <qpixmap.h>
#include "lmsensors.h"
#include "lmsensorpanel.h"
#include "infopanels.h"
/**
*@author Miguel Novas
*/
class LMSensorsWidget : public QWidget {
Q_OBJECT
public:
LMSensorsWidget(LMSensors *lsensors,QWidget *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 void cfgUnsetPalette(const char *name=0);
static void getDefaultPalette(QPalette &pal);
static void cfgWritePanelSize(int newSize);
static int cfgReadPanelSize();
protected slots:
void slotConfigChanged(const char *name);
signals:
void rightMouseClicked(QMouseEvent *);
private:
LMSensors *sensors;
InfoPanels *infoPanels;
QWidget *childDraging;
int panelsSize;
QPoint origMousePt;
void loadPalette(Panel *panel=0);
void loadDisplayConfig(Panel *display);
void saveDisplayConfig(Panel *display);
void mouseReleaseEvent ( QMouseEvent *m );
void mouseMoveEvent ( QMouseEvent *m );
void createSensorPanels();
void findUnusedPosition(int *px,int *py);
void startDragChild(QMouseEvent *m, QWidget *w);
void endDragChild();
void resizePanels(int newSize);
void loadGeneralOptions();
private slots:
void childEvent(QChildEvent *);
void childEventReceived(QEvent *);
};
#endif

@ -0,0 +1,74 @@
/***************************************************************************
main.cpp - description
-------------------
begin : dom ago 19 02:10:35 EDT 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <klocale.h>
#include <kuniqueapp.h>
#include "ksensorssplash.h"
#include "lmsensorsdock.h"
static const char *description =
I18N_NOOP("KSensors - A nice lmsensors frontend for KDE");
// INSERT A DESCRIPTION FOR YOUR APPLICATION HERE
static KCmdLineOptions options[] =
{
{ "nodock", I18N_NOOP("Don't dock in KDE system tray."), 0 },
{ "splash", I18N_NOOP("Show splash screen."), 0 },
{ 0, 0, 0 }
// INSERT YOUR COMMANDLINE OPTIONS HERE
};
int main(int argc, char *argv[])
{
KAboutData aboutData( "ksensors", I18N_NOOP("KSensors"),
VERSION, description, KAboutData::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 );
KUniqueApplication::addCmdLineOptions();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
bool noDock= !args->isSet("dock");
bool showSplash= args->isSet("splash");
args->clear();
if(!KUniqueApplication::start()) return 0;
KUniqueApplication a;
KConfig *cfg= kapp->config();
cfg->setGroup("General");
if( cfg->readEntry("Version")!=aboutData.version() ) {
cfg->writeEntry("Version",aboutData.version());
showSplash= true;
}
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()) );
return a.exec();
}

@ -0,0 +1,110 @@
/***************************************************************************
palettecfg.cpp - description
-------------------
begin : lun abr 15 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "palettecfg.h"
#include "lmsensorswidget.h"
#include <qlabel.h>
#include <qpalette.h>
#include <qcombobox.h>
#include <kcolorbutton.h>
PaletteCfg::PaletteCfg(QWidget *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( buttonDefaultPalette, SIGNAL(clicked()),this,SLOT(slotPaletteDefault()) );
}
PaletteCfg::~PaletteCfg()
{
}
void PaletteCfg::slotComboSelected(int index)
{
QColorGroup colors= framePanel->palette().active();
QColor color;
switch(index) {
case 0: color= colors.background(); break;
case 1: color= colors.dark(); break;
case 2: color= colors.text(); break;
case 3: color= colors.foreground(); break;
}
buttonColor->blockSignals(true);
buttonColor->setColor(color);
buttonColor->blockSignals(false);
}
void PaletteCfg::slotColorChanged(const QColor &newColor)
{
QPalette 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;
default: return;
}
setPanelPalette(pal,false);
palDefault= false;
}
void PaletteCfg::slotPaletteDefault()
{
palDefault= true;
QPalette pal;
if(groupName) {
LMSensorsWidget::cfgReadPalette(pal,"General",true);
} else {
LMSensorsWidget::getDefaultPalette(pal);
}
setPanelPalette(pal,true);
}
void PaletteCfg::setPanelPalette(const QPalette &pal, bool updateColorButton)
{
labelTitle->unsetPalette();
framePanel->setPalette(pal);
#if ( KDE_VERSION_MAJOR >= 3 )
labelTitle->setPaletteForegroundColor(pal.active().text());
#else
QPalette p= labelTitle->palette();
p.setColor(QColorGroup::Foreground,pal.active().text());
labelTitle->setPalette(p);
#endif
if(updateColorButton) slotComboSelected(comboSelect->currentItem());
}
void PaletteCfg::readPalette(const char *name)
{
groupName= name;
QPalette pal;
palDefault= !LMSensorsWidget::cfgReadPalette(pal,name,false);
if(palDefault) LMSensorsWidget::cfgReadPalette(pal,"General",true);
setPanelPalette(pal,true);
}
void PaletteCfg::savePalette()
{
if(palDefault) LMSensorsWidget::cfgUnsetPalette(groupName);
else LMSensorsWidget::cfgWritePalette(framePanel->palette(),groupName);
}

@ -0,0 +1,52 @@
/***************************************************************************
palettecfg.h - description
-------------------
begin : lun abr 15 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef PALETTECFG_H
#define PALETTECFG_H
#include <palettecfgdesign.h>
#include <kconfig.h>
/**
*@author Miguel Novas
*/
class PaletteCfg : public PaletteCfgDesign {
Q_OBJECT
public:
PaletteCfg(QWidget *parent=0, const char *name=0);
~PaletteCfg();
void readPalette(const char *name);
void savePalette();
protected slots:
void slotComboSelected(int index);
void slotColorChanged(const QColor &newColor);
void slotPaletteDefault();
private:
bool palDefault;
const char *groupName;
void setPanelPalette(const QPalette &pal, bool updateColorButton=false);
};
#endif

@ -0,0 +1,153 @@
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './palettecfgdesign.ui'
**
** Created: mer aoû 18 23:39:05 2004
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "palettecfgdesign.h"
#include <qvariant.h>
#include <qframe.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qcombobox.h>
#include <kcolorbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.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 )
{
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 );
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 );
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 );
pal.setDisabled( cg );
framePanel->setPalette( pal );
framePanel->setFrameShape( QFrame::Panel );
framePanel->setFrameShadow( QFrame::Raised );
labelTitle = new QLabel( framePanel, "labelTitle" );
labelTitle->setGeometry( QRect( 8, 40, 50, 20 ) );
QFont labelTitle_font( labelTitle->font() );
labelTitle_font.setPointSize( 7 );
labelTitle->setFont( labelTitle_font );
labelTitle->setAlignment( int( QLabel::AlignCenter ) );
labelValue = new QLabel( framePanel, "labelValue" );
labelValue->setGeometry( QRect( 7, 16, 50, 20 ) );
labelValue->setAlignment( int( QLabel::AlignCenter ) );
PaletteCfgDesignLayout->addMultiCellWidget( framePanel, 0, 1, 0, 0 );
buttonDefaultPalette = new QPushButton( this, "buttonDefaultPalette" );
buttonDefaultPalette->setMinimumSize( QSize( 0, 22 ) );
PaletteCfgDesignLayout->addMultiCellWidget( buttonDefaultPalette, 1, 1, 1, 2 );
comboSelect = new QComboBox( FALSE, this, "comboSelect" );
comboSelect->setMinimumSize( QSize( 0, 22 ) );
PaletteCfgDesignLayout->addWidget( comboSelect, 0, 1 );
buttonColor = new KColorButton( this, "buttonColor" );
buttonColor->setMinimumSize( QSize( 0, 22 ) );
PaletteCfgDesignLayout->addWidget( buttonColor, 0, 2 );
languageChange();
resize( QSize(287, 74).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
/*
* Destroys the object and frees any allocated resources
*/
PaletteCfgDesign::~PaletteCfgDesign()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void PaletteCfgDesign::languageChange()
{
setCaption( tr2i18n( "PaletteCfg" ) );
labelTitle->setText( tr2i18n( "Title" ) );
labelValue->setText( tr2i18n( "+3.5V" ) );
buttonDefaultPalette->setText( tr2i18n( "Default colors" ) );
comboSelect->clear();
comboSelect->insertItem( tr2i18n( "Background" ) );
comboSelect->insertItem( tr2i18n( "Border" ) );
comboSelect->insertItem( tr2i18n( "Title" ) );
comboSelect->insertItem( tr2i18n( "Value" ) );
buttonColor->setText( QString::null );
}
#include "palettecfgdesign.moc"

@ -0,0 +1,50 @@
/****************************************************************************
** Form interface generated from reading ui file './palettecfgdesign.ui'
**
** Created: mer aoû 18 23:39:01 2004
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef PALETTECFGDESIGN_H
#define PALETTECFGDESIGN_H
#include <qvariant.h>
#include <qwidget.h>
#include <kcolorbutton.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QFrame;
class QLabel;
class QPushButton;
class QComboBox;
class KColorButton;
class PaletteCfgDesign : public QWidget
{
Q_OBJECT
public:
PaletteCfgDesign( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~PaletteCfgDesign();
QFrame* framePanel;
QLabel* labelTitle;
QLabel* labelValue;
QPushButton* buttonDefaultPalette;
QComboBox* comboSelect;
KColorButton* buttonColor;
protected:
QGridLayout* PaletteCfgDesignLayout;
protected slots:
virtual void languageChange();
};
#endif // PALETTECFGDESIGN_H

@ -0,0 +1,426 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>PaletteCfgDesign</class>
<widget class="QWidget">
<property name="name">
<cstring>PaletteCfgDesign</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>287</width>
<height>74</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="caption">
<string>PaletteCfg</string>
</property>
<property name="layoutMargin" stdset="0">
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="QFrame" row="0" column="0" rowspan="2" colspan="1">
<property name="name">
<cstring>framePanel</cstring>
</property>
<property name="minimumSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
<property name="palette">
<palette>
<active>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>228</red>
<green>228</green>
<blue>228</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>241</red>
<green>241</green>
<blue>241</blue>
</color>
<color>
<red>114</red>
<green>114</green>
<blue>114</blue>
</color>
<color>
<red>152</red>
<green>152</green>
<blue>152</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>10</red>
<green>95</green>
<blue>137</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</active>
<disabled>
<color>
<red>128</red>
<green>128</green>
<blue>128</blue>
</color>
<color>
<red>228</red>
<green>228</green>
<blue>228</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>114</red>
<green>114</green>
<blue>114</blue>
</color>
<color>
<red>152</red>
<green>152</green>
<blue>152</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>128</red>
<green>128</green>
<blue>128</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>10</red>
<green>95</green>
<blue>137</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</disabled>
<inactive>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>228</red>
<green>228</green>
<blue>228</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>114</red>
<green>114</green>
<blue>114</blue>
</color>
<color>
<red>152</red>
<green>152</green>
<blue>152</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>10</red>
<green>95</green>
<blue>137</blue>
</color>
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</inactive>
</palette>
</property>
<property name="frameShape">
<enum>Panel</enum>
</property>
<property name="frameShadow">
<enum>Raised</enum>
</property>
<widget class="QLabel">
<property name="name">
<cstring>labelTitle</cstring>
</property>
<property name="geometry">
<rect>
<x>8</x>
<y>40</y>
<width>50</width>
<height>20</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>7</pointsize>
</font>
</property>
<property name="text">
<string>Title</string>
</property>
<property name="alignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
</property>
</widget>
<widget class="QLabel">
<property name="name">
<cstring>labelValue</cstring>
</property>
<property name="geometry">
<rect>
<x>7</x>
<y>16</y>
<width>50</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>+3.5V</string>
</property>
<property name="alignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
</property>
</widget>
</widget>
<widget class="QPushButton" row="1" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>buttonDefaultPalette</cstring>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>22</height>
</size>
</property>
<property name="text">
<string>Default colors</string>
</property>
</widget>
<widget class="QComboBox" row="0" column="1">
<item>
<property name="text">
<string>Background</string>
</property>
</item>
<item>
<property name="text">
<string>Border</string>
</property>
</item>
<item>
<property name="text">
<string>Title</string>
</property>
</item>
<item>
<property name="text">
<string>Value</string>
</property>
</item>
<property name="name">
<cstring>comboSelect</cstring>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>22</height>
</size>
</property>
</widget>
<widget class="KColorButton" row="0" column="2">
<property name="name">
<cstring>buttonColor</cstring>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>22</height>
</size>
</property>
<property name="text">
<string></string>
</property>
</widget>
</grid>
</widget>
<includes>
<include location="global" impldecl="in declaration">kcolorbutton.h</include>
</includes>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kcolorbutton.h</includehint>
</includehints>
</UI>

@ -0,0 +1,57 @@
/***************************************************************************
display.cpp - description
-------------------
begin : Sun Nov 11 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "panel.h"
#include <kglobal.h>
Panel::Panel(QWidget *parent, const char *name) : QFrame(parent,name)
{
setFrameStyle(QFrame::Panel|QFrame::Raised);
resize(64,64);
installEventFilter(this);
}
Panel::~Panel(){
}
// Maybe another better solution to capture childs of child widgets events ???
bool Panel::eventFilter( QObject *o , QEvent *e)
{
emit eventReceived(e);
return false;
}
//*****************************************************************************
bool Panel::readShow(const char *name)
{
KGlobal::config()->setGroup(name);
return KGlobal::config()->readBoolEntry("show",false);
}
void Panel::writeShow(const char *name, bool fShow)
{
KGlobal::config()->setGroup(name);
KGlobal::config()->writeEntry("show",fShow);
}
//*****************************************************************************

@ -0,0 +1,55 @@
/***************************************************************************
display.h - description
-------------------
begin : Sun Nov 11 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef PANEL_H
#define PANEL_H
#include <qframe.h>
#include <kconfig.h>
#include <qpalette.h>
/**
*@author Miguel Novas
*/
class Panel : public QFrame {
Q_OBJECT
public:
Panel(QWidget *parent, const char *name);
~Panel();
inline const QColor &getColorTitle() { return colorGroup().text(); };
inline const QColor &getColorValue() { return colorGroup().foreground(); };
static bool readShow (const char *name);
static void writeShow(const char *name, bool fShow);
public slots:
virtual void updateInfo(){};
signals:
void eventReceived(QEvent *);
private:
bool eventFilter( QObject *o , QEvent *e);
};
#endif

@ -0,0 +1,19 @@
/***************************************************************************
panelsfactory.cpp - description
-------------------
begin : vie may 10 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "panelsgroup.h"

@ -0,0 +1,42 @@
/***************************************************************************
panelsfactory.h - description
-------------------
begin : vie may 10 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef PANELSGROUP_H
#define PANELSGROUP_H
#include <qobject.h>
#include <panel.h>
/**
*@author Miguel Novas
*/
class PanelsGroup : public QObject {
Q_OBJECT
public:
PanelsGroup(QWidget *widget, QObject *parent=0, const char *name=0) {};
~PanelsGroup() {};
public slots:
virtual void configChanged(const char *name)= 0;
};
#endif

@ -0,0 +1,62 @@
####### kdevelop will overwrite this part!!! (begin)##########
INCLUDES = $(all_includes)
EXTRA_DIST = thermometer.png thermometer18x18.png motherboard.png ksensorssplash.png ksensorsdocked.png ksensorsbackground.png harddisk.png earth.png cooler.png cooler18x18.png computers.png battery.png battery18x18.png lo32-app-ksensors.png lo16-app-ksensors.png hi32-app-ksensors.png hi16-app-ksensors.png
install-data-local:
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/thermometer.png $(kde_datadir)/ksensors/pics/thermometer.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/thermometer18x18.png $(kde_datadir)/ksensors/pics/thermometer18x18.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/motherboard.png $(kde_datadir)/ksensors/pics/motherboard.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/ksensorssplash.png $(kde_datadir)/ksensors/pics/ksensorssplash.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/ksensorsdocked.png $(kde_datadir)/ksensors/pics/ksensorsdocked.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/ksensorsbackground.png $(kde_datadir)/ksensors/pics/ksensorsbackground.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/harddisk.png $(kde_datadir)/ksensors/pics/harddisk.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/earth.png $(kde_datadir)/ksensors/pics/earth.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/cooler.png $(kde_datadir)/ksensors/pics/cooler.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/cooler18x18.png $(kde_datadir)/ksensors/pics/cooler18x18.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/computers.png $(kde_datadir)/ksensors/pics/computers.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/battery.png $(kde_datadir)/ksensors/pics/battery.png
$(mkinstalldirs) $(kde_datadir)/ksensors/pics/
$(INSTALL_DATA) $(srcdir)/battery18x18.png $(kde_datadir)/ksensors/pics/battery18x18.png
$(mkinstalldirs) $(kde_icondir)/locolor/32x32/apps/
$(INSTALL_DATA) $(srcdir)/lo32-app-ksensors.png $(kde_icondir)/locolor/32x32/apps/ksensors.png
$(mkinstalldirs) $(kde_icondir)/locolor/16x16/apps/
$(INSTALL_DATA) $(srcdir)/lo16-app-ksensors.png $(kde_icondir)/locolor/16x16/apps/ksensors.png
$(mkinstalldirs) $(kde_icondir)/hicolor/32x32/apps/
$(INSTALL_DATA) $(srcdir)/hi32-app-ksensors.png $(kde_icondir)/hicolor/32x32/apps/ksensors.png
$(mkinstalldirs) $(kde_icondir)/hicolor/16x16/apps/
$(INSTALL_DATA) $(srcdir)/hi16-app-ksensors.png $(kde_icondir)/hicolor/16x16/apps/ksensors.png
uninstall-local:
-rm -f $(kde_datadir)/ksensors/pics/thermometer.png
-rm -f $(kde_datadir)/ksensors/pics/thermometer18x18.png
-rm -f $(kde_datadir)/ksensors/pics/motherboard.png
-rm -f $(kde_datadir)/ksensors/pics/ksensorssplash.png
-rm -f $(kde_datadir)/ksensors/pics/ksensorsdocked.png
-rm -f $(kde_datadir)/ksensors/pics/ksensorsbackground.png
-rm -f $(kde_datadir)/ksensors/pics/harddisk.png
-rm -f $(kde_datadir)/ksensors/pics/earth.png
-rm -f $(kde_datadir)/ksensors/pics/cooler.png
-rm -f $(kde_datadir)/ksensors/pics/cooler18x18.png
-rm -f $(kde_datadir)/ksensors/pics/computers.png
-rm -f $(kde_datadir)/ksensors/pics/battery.png
-rm -f $(kde_datadir)/ksensors/pics/battery18x18.png
-rm -f $(kde_icondir)/locolor/32x32/apps/ksensors.png
-rm -f $(kde_icondir)/locolor/16x16/apps/ksensors.png
-rm -f $(kde_icondir)/hicolor/32x32/apps/ksensors.png
-rm -f $(kde_icondir)/hicolor/16x16/apps/ksensors.png
####### kdevelop will overwrite this part!!! (end)############

@ -0,0 +1,623 @@
# Makefile.in generated by automake 1.6.3 from Makefile.am.
# KDE tags expanded automatically by am_edit - $Revision: 1.5 $
# @configure_input@
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
####### kdevelop will overwrite this part!!! (begin)##########
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ../..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = @build_alias@
build_triplet = @build@
host_alias = @host_alias@
host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@
EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
PATH_SEPARATOR = @PATH_SEPARATOR@
AMTAR = @AMTAR@
ARTSCCONFIG = @ARTSCCONFIG@
AS = @AS@
AUTODIRS = @AUTODIRS@
AWK = @AWK@
BROCKENBORING = @BROCKENBORING@
CC = @CC@
CONF_FILES = @CONF_FILES@
CPP = @CPP@
CXX = @CXX@
CXXCPP = @CXXCPP@
DCOPIDL = @DCOPIDL@
DCOPIDL2CPP = @DCOPIDL2CPP@
DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN = @DOXYGEN@
DOXYGEN_PROJECT_NAME = @DOXYGEN_PROJECT_NAME@
DOXYGEN_PROJECT_NUMBER = @DOXYGEN_PROJECT_NUMBER@
DPMSINC = @DPMSINC@
DPMSLIB = @DPMSLIB@
ECHO = @ECHO@
FRAMEWORK_COREAUDIO = @FRAMEWORK_COREAUDIO@
GCJ = @GCJ@
GCJFLAGS = @GCJFLAGS@
GLINC = @GLINC@
GLLIB = @GLLIB@
GMSGFMT = @GMSGFMT@
IDL = @IDL@
IDL_DEPENDENCIES = @IDL_DEPENDENCIES@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
JAR = @JAR@
JAVAC = @JAVAC@
JAVAH = @JAVAH@
JVMLIBS = @JVMLIBS@
KDECONFIG = @KDECONFIG@
KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
KDE_HAS_DOXYGEN = @KDE_HAS_DOXYGEN@
KDE_HAVE_DOT = @KDE_HAVE_DOT@
KDE_INCLUDES = @KDE_INCLUDES@
KDE_LDFLAGS = @KDE_LDFLAGS@
KDE_MT_LDFLAGS = @KDE_MT_LDFLAGS@
KDE_MT_LIBS = @KDE_MT_LIBS@
KDE_NO_UNDEFINED = @KDE_NO_UNDEFINED@
KDE_PLUGIN = @KDE_PLUGIN@
KDE_RPATH = @KDE_RPATH@
KDE_USE_CLOSURE_FALSE = @KDE_USE_CLOSURE_FALSE@
KDE_USE_CLOSURE_TRUE = @KDE_USE_CLOSURE_TRUE@
KDE_USE_FINAL_FALSE = @KDE_USE_FINAL_FALSE@
KDE_USE_FINAL_TRUE = @KDE_USE_FINAL_TRUE@
KDE_USE_NMCHECK_FALSE = @KDE_USE_NMCHECK_FALSE@
KDE_USE_NMCHECK_TRUE = @KDE_USE_NMCHECK_TRUE@
KDE_XSL_STYLESHEET = @KDE_XSL_STYLESHEET@
LEX = @LEX@
LEXLIB = @LEXLIB@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LIBBZ2 = @LIBBZ2@
LIBCOMPAT = @LIBCOMPAT@
LIBCRYPT = @LIBCRYPT@
LIBDL = @LIBDL@
LIBGEN = @LIBGEN@
LIBJPEG = @LIBJPEG@
LIBMICO = @LIBMICO@
LIBOBJS = @LIBOBJS@
LIBPNG = @LIBPNG@
LIBPTHREAD = @LIBPTHREAD@
LIBPYTHON = @LIBPYTHON@
LIBQIMGIO = @LIBQIMGIO@
LIBRESOLV = @LIBRESOLV@
LIBSHADOW = @LIBSHADOW@
LIBSM = @LIBSM@
LIBSOCKET = @LIBSOCKET@
LIBSSL = @LIBSSL@
LIBTIFF = @LIBTIFF@
LIBTOOL = @LIBTOOL@
LIBUCB = @LIBUCB@
LIBUTIL = @LIBUTIL@
LIBZ = @LIBZ@
LIB_JASPER = @LIB_JASPER@
LIB_KAB = @LIB_KAB@
LIB_KABC = @LIB_KABC@
LIB_KDECORE = @LIB_KDECORE@
LIB_KDEPRINT = @LIB_KDEPRINT@
LIB_KDEUI = @LIB_KDEUI@
LIB_KFILE = @LIB_KFILE@
LIB_KFM = @LIB_KFM@
LIB_KHTML = @LIB_KHTML@
LIB_KIMGIO = @LIB_KIMGIO@
LIB_KIO = @LIB_KIO@
LIB_KPARTS = @LIB_KPARTS@
LIB_KSPELL = @LIB_KSPELL@
LIB_KSYCOCA = @LIB_KSYCOCA@
LIB_POLL = @LIB_POLL@
LIB_QPE = @LIB_QPE@
LIB_QT = @LIB_QT@
LIB_QTOPIA = @LIB_QTOPIA@
LIB_SMB = @LIB_SMB@
LIB_X11 = @LIB_X11@
LIB_XEXT = @LIB_XEXT@
LIB_XRENDER = @LIB_XRENDER@
LN_S = @LN_S@
MCOPIDL = @MCOPIDL@
MEINPROC = @MEINPROC@
MICO_INCLUDES = @MICO_INCLUDES@
MICO_LDFLAGS = @MICO_LDFLAGS@
MOC = @MOC@
MSGFMT = @MSGFMT@
NOOPT_CFLAGS = @NOOPT_CFLAGS@
NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
OBJC = @OBJC@
OBJCFLAGS = @OBJCFLAGS@
OBJDUMP = @OBJDUMP@
PACKAGE = @PACKAGE@
PAMLIBS = @PAMLIBS@
PASSWDLIBS = @PASSWDLIBS@
PYTHONINC = @PYTHONINC@
PYTHONLIB = @PYTHONLIB@
PYTHONMODDIR = @PYTHONMODDIR@
QTDOCDIR = @QTDOCDIR@
QTE_NORTTI = @QTE_NORTTI@
QTOPIA_INCLUDES = @QTOPIA_INCLUDES@
QT_INCLUDES = @QT_INCLUDES@
QT_LDFLAGS = @QT_LDFLAGS@
RANLIB = @RANLIB@
RC = @RC@
SETUIDFLAGS = @SETUIDFLAGS@
SSL_INCLUDES = @SSL_INCLUDES@
SSL_LDFLAGS = @SSL_LDFLAGS@
STRIP = @STRIP@
TOPSUBDIRS = @TOPSUBDIRS@
UIC = @UIC@
UIC_TR = @UIC_TR@
USER_INCLUDES = @USER_INCLUDES@
USER_LDFLAGS = @USER_LDFLAGS@
USE_EXCEPTIONS = @USE_EXCEPTIONS@
USE_RTTI = @USE_RTTI@
USE_THREADS = @USE_THREADS@
VERSION = @VERSION@
WOVERLOADED_VIRTUAL = @WOVERLOADED_VIRTUAL@
XGETTEXT = @XGETTEXT@
XPMINC = @XPMINC@
XPMLIB = @XPMLIB@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_INCLUDES = @X_INCLUDES@
X_LDFLAGS = @X_LDFLAGS@
X_PRE_LIBS = @X_PRE_LIBS@
X_RPATH = @X_RPATH@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__quote = @am__quote@
idldir = @idldir@
install_sh = @install_sh@
jni_includes = @jni_includes@
kde_appsdir = @kde_appsdir@
kde_bindir = @kde_bindir@
kde_confdir = @kde_confdir@
kde_datadir = @kde_datadir@
kde_htmldir = @kde_htmldir@
kde_icondir = @kde_icondir@
kde_includes = @kde_includes@
kde_libraries = @kde_libraries@
kde_libs_htmldir = @kde_libs_htmldir@
kde_libs_prefix = @kde_libs_prefix@
kde_locale = @kde_locale@
kde_mimedir = @kde_mimedir@
kde_moduledir = @kde_moduledir@
kde_qtver = @kde_qtver@
kde_servicesdir = @kde_servicesdir@
kde_servicetypesdir = @kde_servicetypesdir@
kde_sounddir = @kde_sounddir@
kde_styledir = @kde_styledir@
kde_templatesdir = @kde_templatesdir@
kde_wallpaperdir = @kde_wallpaperdir@
kde_widgetdir = @kde_widgetdir@
kdeinitdir = @kdeinitdir@
micodir = @micodir@
qt_includes = @qt_includes@
qt_libraries = @qt_libraries@
x_includes = @x_includes@
x_libraries = @x_libraries@
xdg_appsdir = @xdg_appsdir@
xdg_directorydir = @xdg_directorydir@
INCLUDES = $(all_includes)
EXTRA_DIST = thermometer.png thermometer18x18.png motherboard.png ksensorssplash.png ksensorsdocked.png ksensorsbackground.png harddisk.png earth.png cooler.png cooler18x18.png computers.png battery.png battery18x18.png lo32-app-ksensors.png lo16-app-ksensors.png hi32-app-ksensors.png hi16-app-ksensors.png
subdir = src/pics
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
DIST_SOURCES =
DIST_COMMON = Makefile.am Makefile.in
#>- all: all-am
#>+ 1
all: docs-am all-am
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
#>- cd $(top_srcdir) && \
#>- $(AUTOMAKE) --gnu src/pics/Makefile
#>+ 3
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu src/pics/Makefile
cd $(top_srcdir) && perl admin/am_edit ksensors-0.7.3/src/pics/Makefile.in
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
tags: TAGS
TAGS:
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
top_distdir = ../..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
@list='$(DISTFILES)'; for file in $$list; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkinstalldirs) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
#>- clean: clean-am
#>+ 1
clean: kde-rpo-clean clean-am
#>- clean-am: clean-generic clean-libtool mostlyclean-am
#>+ 1
clean-am: clean-bcheck clean-generic clean-libtool mostlyclean-am
distclean: distclean-am
distclean-am: clean-am distclean-generic distclean-libtool
dvi: dvi-am
dvi-am:
info: info-am
info-am:
install-data-am: install-data-local
install-exec-am:
install-info: install-info-am
install-man:
installcheck-am:
maintainer-clean: maintainer-clean-am
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
uninstall-am: uninstall-info-am uninstall-local
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
distclean distclean-generic distclean-libtool distdir dvi \
dvi-am info info-am install install-am install-data \
install-data-am install-data-local install-exec install-exec-am \
install-info install-info-am install-man install-strip \
installcheck installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-generic \
mostlyclean-libtool uninstall uninstall-am uninstall-info-am \
uninstall-local
install-data-local:
#>- $(mkinstalldirs) $(kde_datadir)/ksensors/pics/
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/ksensors/pics/
#>- $(INSTALL_DATA) $(srcdir)/thermometer.png $(kde_datadir)/ksensors/pics/thermometer.png
#>+ 1
$(INSTALL_DATA) $(srcdir)/thermometer.png $(DESTDIR)$(kde_datadir)/ksensors/pics/thermometer.png
#>- $(mkinstalldirs) $(kde_datadir)/ksensors/pics/
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/ksensors/pics/
#>- $(INSTALL_DATA) $(srcdir)/thermometer18x18.png $(kde_datadir)/ksensors/pics/thermometer18x18.png
#>+ 1
$(INSTALL_DATA) $(srcdir)/thermometer18x18.png $(DESTDIR)$(kde_datadir)/ksensors/pics/thermometer18x18.png
#>- $(mkinstalldirs) $(kde_datadir)/ksensors/pics/
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/ksensors/pics/
#>- $(INSTALL_DATA) $(srcdir)/motherboard.png $(kde_datadir)/ksensors/pics/motherboard.png
#>+ 1
$(INSTALL_DATA) $(srcdir)/motherboard.png $(DESTDIR)$(kde_datadir)/ksensors/pics/motherboard.png
#>- $(mkinstalldirs) $(kde_datadir)/ksensors/pics/
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/ksensors/pics/
#>- $(INSTALL_DATA) $(srcdir)/ksensorssplash.png $(kde_datadir)/ksensors/pics/ksensorssplash.png
#>+ 1
$(INSTALL_DATA) $(srcdir)/ksensorssplash.png $(DESTDIR)$(kde_datadir)/ksensors/pics/ksensorssplash.png
#>- $(mkinstalldirs) $(kde_datadir)/ksensors/pics/
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/ksensors/pics/
#>- $(INSTALL_DATA) $(srcdir)/ksensorsdocked.png $(kde_datadir)/ksensors/pics/ksensorsdocked.png
#>+ 1
$(INSTALL_DATA) $(srcdir)/ksensorsdocked.png $(DESTDIR)$(kde_datadir)/ksensors/pics/ksensorsdocked.png
#>- $(mkinstalldirs) $(kde_datadir)/ksensors/pics/
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/ksensors/pics/
#>- $(INSTALL_DATA) $(srcdir)/ksensorsbackground.png $(kde_datadir)/ksensors/pics/ksensorsbackground.png
#>+ 1
$(INSTALL_DATA) $(srcdir)/ksensorsbackground.png $(DESTDIR)$(kde_datadir)/ksensors/pics/ksensorsbackground.png
#>- $(mkinstalldirs) $(kde_datadir)/ksensors/pics/
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/ksensors/pics/
#>- $(INSTALL_DATA) $(srcdir)/harddisk.png $(kde_datadir)/ksensors/pics/harddisk.png
#>+ 1
$(INSTALL_DATA) $(srcdir)/harddisk.png $(DESTDIR)$(kde_datadir)/ksensors/pics/harddisk.png
#>- $(mkinstalldirs) $(kde_datadir)/ksensors/pics/
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/ksensors/pics/
#>- $(INSTALL_DATA) $(srcdir)/earth.png $(kde_datadir)/ksensors/pics/earth.png
#>+ 1
$(INSTALL_DATA) $(srcdir)/earth.png $(DESTDIR)$(kde_datadir)/ksensors/pics/earth.png
#>- $(mkinstalldirs) $(kde_datadir)/ksensors/pics/
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/ksensors/pics/
#>- $(INSTALL_DATA) $(srcdir)/cooler.png $(kde_datadir)/ksensors/pics/cooler.png
#>+ 1
$(INSTALL_DATA) $(srcdir)/cooler.png $(DESTDIR)$(kde_datadir)/ksensors/pics/cooler.png
#>- $(mkinstalldirs) $(kde_datadir)/ksensors/pics/
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/ksensors/pics/
#>- $(INSTALL_DATA) $(srcdir)/cooler18x18.png $(kde_datadir)/ksensors/pics/cooler18x18.png
#>+ 1
$(INSTALL_DATA) $(srcdir)/cooler18x18.png $(DESTDIR)$(kde_datadir)/ksensors/pics/cooler18x18.png
#>- $(mkinstalldirs) $(kde_datadir)/ksensors/pics/
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/ksensors/pics/
#>- $(INSTALL_DATA) $(srcdir)/computers.png $(kde_datadir)/ksensors/pics/computers.png
#>+ 1
$(INSTALL_DATA) $(srcdir)/computers.png $(DESTDIR)$(kde_datadir)/ksensors/pics/computers.png
#>- $(mkinstalldirs) $(kde_datadir)/ksensors/pics/
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/ksensors/pics/
#>- $(INSTALL_DATA) $(srcdir)/battery.png $(kde_datadir)/ksensors/pics/battery.png
#>+ 1
$(INSTALL_DATA) $(srcdir)/battery.png $(DESTDIR)$(kde_datadir)/ksensors/pics/battery.png
#>- $(mkinstalldirs) $(kde_datadir)/ksensors/pics/
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/ksensors/pics/
#>- $(INSTALL_DATA) $(srcdir)/battery18x18.png $(kde_datadir)/ksensors/pics/battery18x18.png
#>+ 1
$(INSTALL_DATA) $(srcdir)/battery18x18.png $(DESTDIR)$(kde_datadir)/ksensors/pics/battery18x18.png
#>- $(mkinstalldirs) $(kde_icondir)/locolor/32x32/apps/
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/locolor/32x32/apps/
#>- $(INSTALL_DATA) $(srcdir)/lo32-app-ksensors.png $(kde_icondir)/locolor/32x32/apps/ksensors.png
#>+ 1
$(INSTALL_DATA) $(srcdir)/lo32-app-ksensors.png $(DESTDIR)$(kde_icondir)/locolor/32x32/apps/ksensors.png
#>- $(mkinstalldirs) $(kde_icondir)/locolor/16x16/apps/
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/locolor/16x16/apps/
#>- $(INSTALL_DATA) $(srcdir)/lo16-app-ksensors.png $(kde_icondir)/locolor/16x16/apps/ksensors.png
#>+ 1
$(INSTALL_DATA) $(srcdir)/lo16-app-ksensors.png $(DESTDIR)$(kde_icondir)/locolor/16x16/apps/ksensors.png
#>- $(mkinstalldirs) $(kde_icondir)/hicolor/32x32/apps/
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/hicolor/32x32/apps/
#>- $(INSTALL_DATA) $(srcdir)/hi32-app-ksensors.png $(kde_icondir)/hicolor/32x32/apps/ksensors.png
#>+ 1
$(INSTALL_DATA) $(srcdir)/hi32-app-ksensors.png $(DESTDIR)$(kde_icondir)/hicolor/32x32/apps/ksensors.png
#>- $(mkinstalldirs) $(kde_icondir)/hicolor/16x16/apps/
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/
#>- $(INSTALL_DATA) $(srcdir)/hi16-app-ksensors.png $(kde_icondir)/hicolor/16x16/apps/ksensors.png
#>+ 1
$(INSTALL_DATA) $(srcdir)/hi16-app-ksensors.png $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/ksensors.png
uninstall-local:
#>- -rm -f $(kde_datadir)/ksensors/pics/thermometer.png
#>+ 1
-rm -f $(DESTDIR)$(kde_datadir)/ksensors/pics/thermometer.png
#>- -rm -f $(kde_datadir)/ksensors/pics/thermometer18x18.png
#>+ 1
-rm -f $(DESTDIR)$(kde_datadir)/ksensors/pics/thermometer18x18.png
#>- -rm -f $(kde_datadir)/ksensors/pics/motherboard.png
#>+ 1
-rm -f $(DESTDIR)$(kde_datadir)/ksensors/pics/motherboard.png
#>- -rm -f $(kde_datadir)/ksensors/pics/ksensorssplash.png
#>+ 1
-rm -f $(DESTDIR)$(kde_datadir)/ksensors/pics/ksensorssplash.png
#>- -rm -f $(kde_datadir)/ksensors/pics/ksensorsdocked.png
#>+ 1
-rm -f $(DESTDIR)$(kde_datadir)/ksensors/pics/ksensorsdocked.png
#>- -rm -f $(kde_datadir)/ksensors/pics/ksensorsbackground.png
#>+ 1
-rm -f $(DESTDIR)$(kde_datadir)/ksensors/pics/ksensorsbackground.png
#>- -rm -f $(kde_datadir)/ksensors/pics/harddisk.png
#>+ 1
-rm -f $(DESTDIR)$(kde_datadir)/ksensors/pics/harddisk.png
#>- -rm -f $(kde_datadir)/ksensors/pics/earth.png
#>+ 1
-rm -f $(DESTDIR)$(kde_datadir)/ksensors/pics/earth.png
#>- -rm -f $(kde_datadir)/ksensors/pics/cooler.png
#>+ 1
-rm -f $(DESTDIR)$(kde_datadir)/ksensors/pics/cooler.png
#>- -rm -f $(kde_datadir)/ksensors/pics/cooler18x18.png
#>+ 1
-rm -f $(DESTDIR)$(kde_datadir)/ksensors/pics/cooler18x18.png
#>- -rm -f $(kde_datadir)/ksensors/pics/computers.png
#>+ 1
-rm -f $(DESTDIR)$(kde_datadir)/ksensors/pics/computers.png
#>- -rm -f $(kde_datadir)/ksensors/pics/battery.png
#>+ 1
-rm -f $(DESTDIR)$(kde_datadir)/ksensors/pics/battery.png
#>- -rm -f $(kde_datadir)/ksensors/pics/battery18x18.png
#>+ 1
-rm -f $(DESTDIR)$(kde_datadir)/ksensors/pics/battery18x18.png
#>- -rm -f $(kde_icondir)/locolor/32x32/apps/ksensors.png
#>+ 1
-rm -f $(DESTDIR)$(kde_icondir)/locolor/32x32/apps/ksensors.png
#>- -rm -f $(kde_icondir)/locolor/16x16/apps/ksensors.png
#>+ 1
-rm -f $(DESTDIR)$(kde_icondir)/locolor/16x16/apps/ksensors.png
#>- -rm -f $(kde_icondir)/hicolor/32x32/apps/ksensors.png
#>+ 1
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/32x32/apps/ksensors.png
#>- -rm -f $(kde_icondir)/hicolor/16x16/apps/ksensors.png
#>+ 1
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/ksensors.png
####### kdevelop will overwrite this part!!! (end)############
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
#>+ 2
docs-am:
#>+ 6
force-reedit:
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu src/pics/Makefile
cd $(top_srcdir) && perl admin/am_edit ksensors-0.7.3/src/pics/Makefile.in
#>+ 21
clean-bcheck:
rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
bcheck: bcheck-am
bcheck-am:
@for i in ; do \
if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
echo "$$i"; \
if ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(KDE_CXXFLAGS) --dump-class-hierarchy $$i.bchecktest.cc; then \
rm -f $$i.bchecktest.cc; exit 1; \
fi ; \
echo "" >> $$i.bchecktest.cc.class; \
perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
rm -f a.out; \
fi ; \
done
#>+ 3
final:
$(MAKE) all-am
#>+ 3
final-install:
$(MAKE) install-am
#>+ 3
no-final:
$(MAKE) all-am
#>+ 3
no-final-install:
$(MAKE) install-am
#>+ 3
cvs-clean:
$(MAKE) admindir=$(top_srcdir)/admin -f $(top_srcdir)/admin/Makefile.common cvs-clean
#>+ 3
kde-rpo-clean:
-rm -f *.rpo
#>+ 3
nmcheck:
nmcheck-am: nmcheck

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 729 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 996 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1014 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 630 B

@ -0,0 +1,58 @@
/***************************************************************************
processexec.cpp - description
-------------------
begin : sáb abr 27 2002
copyright : (C) 2002 by asdf
email : dsf
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <string.h>
#include "processexec.h"
ProcessExec::ProcessExec(): KProcess()
{
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)) );
}
ProcessExec::~ProcessExec(){
}
bool ProcessExec::run()
{
clearData();
return start( NotifyOnExit, Communication(Stdout | Stderr )); // | NoRead));
}
bool ProcessExec::runAndWait()
{
clearData();
return start(Block,Communication(Stdout|Stderr));
}
void ProcessExec::slotReceivedStdout(KProcess *proc, char *buf, int len)
{
if(bufLen+len>=bufMax) len= bufMax-bufLen;
if(len) {
memcpy(buffer+bufLen,buf,len);
bufLen+= len;
buffer[bufLen]=0;
}
}
void ProcessExec::slotReceivedStderr(KProcess *proc, char *buf, int len)
{
fErrors= true;
slotReceivedStdout(proc,buf,len);
}

@ -0,0 +1,55 @@
/***************************************************************************
processexec.h - description
-------------------
begin : sáb abr 27 2002
copyright : (C) 2002 by asdf
email : dsf
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef PROCESSEXEC_H
#define PROCESSEXEC_H
#include <unistd.h>
#include <kprocess.h>
/**
*@author asdf
*/
class ProcessExec : public KProcess {
Q_OBJECT
public:
ProcessExec();
~ProcessExec();
bool run();
bool runAndWait();
bool outputErrors() { return fErrors; };
inline char *getStdoutData() { return buffer; };
inline int getStdoutDataLen() { return bufLen; }
inline void clearData() { bufLen= 0; buffer[0]= 0; fErrors= false; };
protected slots:
void slotReceivedStdout(KProcess *proc, char *buf, int len);
void slotReceivedStderr(KProcess *proc, char *buf, int len);
private:
static const int bufMax= 1023;
char buffer[bufMax+1];
int bufLen;
bool fErrors;
};
#endif

@ -0,0 +1,156 @@
/***************************************************************************
procinfo.c - description
-------------------
begin : Wed Jan 9 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "procinfo.h"
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
bool existsFile(const char *file)
{
struct stat buf;
return (stat((const char *)file,&buf)==0);
}
int read_file(const char *name, char *buf, int max)
{
int fd = open(name, O_RDONLY);
if(fd >= 0) {
int r = read(fd, buf, max);
close(fd);
return r;
}
return -1;
}
// ***** Dell i8k sensors info *****
//
// $ cat /proc/i8k
// 1.0 A17 2J59L02 52 2 1 8040 6420 1 2
//
//The fields read from /proc/18k are:
//
// 1.0 A17 2J59L02 52 2 1 8040 6420 1 2
// | | | | | | | | | |
// | | | | | | | | | +------- 10. buttons status
// | | | | | | | | +--------- 9. ac status
// | | | | | | | +-------------- 8. right fan rpm
// | | | | | | +------------------- 7. left fan rpm
// | | | | | +--------------------- 6. right fan status
// | | | | +----------------------- 5. left fan status
// | | | +-------------------------- 4. CPU temperature (Celsius)
// | | +---------------------------------- 3. serial number
// | +-------------------------------------- 2. BIOS version
// +------------------------------------------ 1. /proc/i8k format version
int getI8KInfo(double *cpuTemp, double *leftFan, double *rightFan)
{
double version;
char buf[256];
if(read_file("/proc/i8k", buf, sizeof(buf)) <= 0) return -1;
if(sscanf(buf, "%lf %*s %*s %lf %*d %*d %lf %lf", &version, cpuTemp,leftFan,rightFan)!=4) return -2;
if(version!=1.0) return -3;
return 0;
}
// ************* Acpi temperature ************
// cat /proc/acpi/thermal_zone/THRM/temperature
// temperature:             61 C
int getAcpiTemperature(double *cpuTemp)
{
char buf[128];
if(read_file("/proc/acpi/thermal_zone/THRM/temperature", buf, sizeof(buf))<= 0) return -1;
sscanf(buf, "temperature: %lf C", cpuTemp);
return 0;
}
int getMemInfo(int *RamTotal,int *RamUsed,int *SwapTotal, int *SwapUsed)
{
char buf[4096];
int mem_free,mem_buffers,mem_cached;
char *p;
// read memory info
if(read_file("/proc/meminfo", buf, sizeof(buf)) <= 0) return -1;
p = strstr(buf, "MemTotal:");
if(p) sscanf(p, "MemTotal: %d kB", RamTotal);
else *RamTotal= 0;
p = strstr(buf, "MemFree:");
if(p) sscanf(p, "MemFree: %d kB", &mem_free);
else mem_free= 0;
p = strstr(buf, "Buffers:");
if(p) sscanf(p, "Buffers: %d kB", &mem_buffers);
else mem_buffers= 0;
p = strstr(buf, "Cached:");
if(p) sscanf(p, "Cached: %d kB", &mem_cached);
else mem_cached= 0;
p = strstr(buf, "SwapTotal:");
if(p) sscanf(p, "SwapTotal: %d kB", SwapTotal);
else *SwapTotal= 0;
p = strstr(buf, "SwapFree:");
if(p) sscanf(p, "SwapFree: %d kB", SwapUsed);
else *SwapUsed= 0;
*SwapUsed= *SwapTotal - *SwapUsed;
*RamUsed = *RamTotal - mem_free - mem_buffers - mem_cached;
return 0;
}
bool getCpuTime(int *user,int *nice,int *system,int *idle)
{
char buf[512];
if(read_file("/proc/stat", buf, sizeof(buf)) <= 0) return false;
sscanf(buf, "cpu %u %u %u %u",user,nice,system,idle);
return true;
}
int getUpTime()
{
char buf[256];
if(read_file("/proc/uptime", buf, sizeof(buf)) < 0) return 0;
float uptime;
sscanf(buf, "%f", &uptime);
return (int)uptime;
}

@ -0,0 +1,23 @@
/***************************************************************************
procinfo.h - description
-------------------
begin : Wed Jan 9 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
int getMemInfo(int *RamTotal,int *RamUsed,int *SwapTotal, int *SwapUsed);
bool getCpuTime(int *user,int *nice,int *system,int *idle);
int getUpTime();
int getI8KInfo(double *cpuTemp, double *leftFan, double *rightFan);
int getAcpiTemperature(double *cpuTemp);

@ -0,0 +1,179 @@
/***************************************************************************
qbarmeter.cpp - description
-------------------
begin : Mon Dec 3 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "qbarmeter.h"
QBarMeter::QBarMeter(QWidget *parent, const char *name): QWidget(parent,name)
{
count = 1;
val[0] = 0;
valMax = 100;
color[0] = red;
maxColor = green;
useValMax= true;
dir = dirUp;
steps = 10;
}
QBarMeter::~QBarMeter()
{
}
void QBarMeter::setDirection(Direction newDir)
{
dir= newDir;
update();
}
void QBarMeter::useValueMax(bool flag)
{
if(useValMax!=flag) {
useValMax= flag;
update();
}
}
void QBarMeter::setValueMax(double newVal)
{
if(valMax!=newVal) {
valMax= newVal;
update();
}
}
void QBarMeter::setValueMaxColor(const QColor &newColor)
{
maxColor= newColor;
update();
}
void QBarMeter::setValue(double newVal)
{
if(val[0]!=newVal) {
val[0]= newVal;
update();
}
}
void QBarMeter::setValueColor(const QColor &newColor)
{
color[0]= newColor;
update();
}
void QBarMeter::setValue(int index, double newVal)
{
if(val[index]!=newVal) {
val[index]= newVal;
update();
}
}
void QBarMeter::setValueColor(int index, const QColor &newColor)
{
if(color[index]!=newColor) {
color[index]= newColor;
update();
}
}
void QBarMeter::setValueCount(int newCount)
{
if(count!=newCount) {
count= newCount;
update();
}
}
void QBarMeter::setSteps(int newSteps)
{
steps= newSteps;
update();
}
void QBarMeter::paintEvent( QPaintEvent *)
{
int x,y,lx,ly,sx,sy;
switch(dir) {
case dirUp : sx= 0;
sy= - height() / steps;
lx= width();
ly= - (sy * 3) / 4;
x = 0;
y = height() - ly;
break;
case dirDown : sx= 0;
sy= height() / steps;
lx= width();
ly= (sy * 3) / 4;
x = 0;
y = 0;
break;
case dirLeft : sx= - width() / steps;
sy= 0;
lx= - (sx * 3) / 4;
ly= height();
x = width() - lx;
y = 0;
break;
case dirRight: sx= width() / steps;
sy= 0;
lx= (sx * 3) / 4;
ly= height();
x = 0;
y = 0;
break;
default: return;
}
if(!useValMax) {
maxColor= color[count-1];
valMax= 0;
for(int i=0; i<count; i++)
valMax+= val[i];
}
int csteps= steps;
QPainter p(this);
for(int i= 0; i<count; i++) {
int v= (int) ( ((double)steps * val[i]) / valMax +0.5);
if(v==0 && csteps>0 && val[i]>0) v++;
csteps-= v;
while(v-->0) {
p.fillRect(x,y,lx,ly,color[i]);
x+= sx;
y+= sy;
}
}
if(csteps>0) {
do {
p.fillRect(x,y,lx,ly,maxColor);
x+= sx;
y+= sy;
} while(--csteps>0);
}
}

@ -0,0 +1,63 @@
/***************************************************************************
qbarmeter.h - description
-------------------
begin : Mon Dec 3 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QBARMETER_H
#define QBARMETER_H
#include <qpainter.h>
#include <qwidget.h>
#include <qcolor.h>
/**
*@author Miguel Novas
*/
class QBarMeter: public QWidget {
Q_OBJECT
public:
enum Direction { dirLeft, dirRight ,dirUp, dirDown };
QBarMeter(QWidget *parent=0, const char *name=0);
~QBarMeter();
void setDirection(Direction dir);
void setValueMax(double newVal);
void setValue(double newVal);
void setValueColor(const QColor &newColor);
void setValueMaxColor(const QColor &newColor);
void setSteps(int newSteps);
void setValue(int index, double newVal);
void setValueColor(int index, const QColor &newColor);
void setValueCount(int count);
void useValueMax(bool flag);
protected:
double val[8];
QColor color[8];
bool useValMax;
double valMax;
QColor maxColor;
int count;
int steps;
Direction dir;
void paintEvent( QPaintEvent *);
};
#endif

@ -0,0 +1,352 @@
/***************************************************************************
qdialarc.cpp - description
-------------------
begin : Wed Aug 1 2001
copyright : (C) 2001 by
email :
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "qdialarc.h"
#include <qpainter.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)
QDialArc::QDialArc(QWidget *parent, const char *name ) : QWidget(parent,name)
{
val = 0;
valMin = 0;
valMax = 100;
valMinLimit = (valMax+valMin)/2;
valMaxLimit = (valMax+valMin)/2;
valMinLimitPercent= 0;
valMaxLimitPercent= 0;
angleStart = 0;
angleLen = 360*16;
fShowMarks = false;
fCalcParams = true;
colorMin = Qt::green;
colorMax = Qt::red;
arrowColor = foregroundColor();
}
QDialArc::~QDialArc(){
}
void QDialArc::setValue(double value)
{
if(value>valMax) value= valMax;
else if(value<valMin) value= valMin;
if(val!=value) {
QPainter p(this);
p.setPen(backgroundColor());
drawArrow(&p,val);
val= value;
p.setPen(arrowColor);
drawArrow(&p,val);
}
}
void QDialArc::setValueMin(double value)
{
valMin= value;
paramsChanged();
}
void QDialArc::setValueMax(double value)
{
valMax= value;
paramsChanged();
}
void QDialArc::setValueRanges(double min,double max)
{
valMin= min;
valMax= max;
paramsChanged();
}
void QDialArc::setValueLimitRanges (double min,double max)
{
valMinLimit= min;
valMaxLimit= max;
update();
}
void QDialArc::setAngle(int value)
{
angleStart= value*16;
paramsChanged();
}
void QDialArc::setAngleLen(int value)
{
angleLen= value*16;
paramsChanged();
}
void QDialArc::setAngles(int angle,int len)
{
angleStart= angle*16;
angleLen = len*16;
paramsChanged();
}
void QDialArc::setColorMin(const QColor &color)
{
colorMin= color;
update();
}
void QDialArc::setColorMid(const QColor &color)
{
colorMid= color;
update();
}
void QDialArc::setColorMax(const QColor &color)
{
colorMax= color;
update();
}
void QDialArc::setColorRanges(const QColor &min,const QColor &mid,const QColor &max)
{
colorMin= min;
colorMid= mid;
colorMax= max;
update();
}
void QDialArc::setValueMinLimit(double value, int percent)
{
valMinLimit= value;
valMinLimitPercent= percent;
update();
}
void QDialArc::setValueMaxLimit(double value, int percent)
{
valMaxLimit= value;
valMaxLimitPercent= percent;
update();
}
void QDialArc::setValueMinLimitPercent(int value)
{
valMinLimitPercent=value;
update();
}
void QDialArc::setValueMaxLimitPercent(int value)
{
valMaxLimitPercent=value;
update();
}
void QDialArc::setShowMarks (bool flag)
{
fShowMarks= flag;
update();
}
void QDialArc::setArrowColor(const QColor &color)
{
arrowColor= color;
}
//*****************************************************************
void QDialArc::resizeEvent( QResizeEvent *)
{
paramsChanged();
}
//*****************************************************************
void QDialArc::drawMarks(QPainter *p,int l1,int l2)
{
int a;
double r,co,se;
if(l1>l2) { a= l1; l1= l2; l2= a; } // swap(l1,l2)
a= (l1 / (360*16/32)) * (360*16/32);
while(a<l1) a+= 360*16/32;
while(a<=l2) {
r = qdegreesToRadians(a);
co= cos(r);
se= sin(r);
p->drawLine((int)(centerx+ co*(radius-1-radius/10)+0.5),
(int)(centery+ se*(radius-1-radius/10)+0.5),
(int)(centerx+ co*(radius-1) +0.5),
(int)(centery+ se*(radius-1) +0.5) );
a+= 360*16/32;
}
}
void QDialArc::drawArc(QPainter *p,int l1,int l2,const QColor &color)
{
p->setPen(color);
p->drawArc(centerx-radius,centery-radius,radius*2,radius*2, l1, l2-l1+1);
if (fShowMarks) drawMarks(p,l1,l2);
}
void QDialArc::drawArrow(QPainter *p, double value)
{
double r= qdegreesToRadians(valToQDegrees(value));
p->drawLine(centerx,
centery,
(int)(centerx+ cos(r)*(radius-1-radius/4) +0.5),
(int)(centery+ sin(r)*(radius-1-radius/4) +0.5)
);
}
void QDialArc::paintEvent ( QPaintEvent *)
{
int l0,l1,l2,l3,l4,l5;
QPainter 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);
l5= angleStart+angleLen;
drawArc(&p,l0,l1,colorMin);
drawArc(&p,l1,l2, QColor( (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,
(colorMax.green()+colorMid.green())/2,
(colorMax.blue() +colorMid.blue() )/2 ) );
drawArc(&p,l4,l5,colorMax);
p.setPen(arrowColor);
drawArrow(&p,val);
}
//*****************************************************************
struct POINT2D { double x,y; };
static void calcAngleMin(double a, POINT2D &m)
{
double x= cos(a);
double y= sin(a);
if(x<m.x) m.x= x;
if(y<m.y) m.y= y;
}
static void calcAngleMax(double a, POINT2D &m)
{
double x= cos(a);
double y= sin(a);
if(x>m.x) m.x= x;
if(y>m.y) m.y= y;
}
static bool angleIsInRange(int a,int a1,int len)
{
int a2=a1+len;
if(len>0) {
if(a2>360*16) return a>=a1 || a<=(a2-360*16);
else return a>=a1 && a<=a2;
} else {
if(a2<0) return a<=a1 || a>=(360*16+a2);
else return a>=a2 && a<=a1;
}
}
void QDialArc::calcParams()
{
double m,w,h;
POINT2D p1,p2,d,a;
p1.x= p1.y= p2.x= p2.y= 0;
//
m= qdegreesToRadians(angleStart);
calcAngleMin( m, p1);
calcAngleMax( m, p2);
m= qdegreesToRadians(angleStart+angleLen);
calcAngleMin( m, p1);
calcAngleMax( m, p2);
//
if(angleIsInRange(0 ,angleStart,angleLen)) calcAngleMax( 0 , p2);
if(angleIsInRange(90*16 ,angleStart,angleLen)) calcAngleMin(-M_PI/2 , p1);
if(angleIsInRange(180*16,angleStart,angleLen)) calcAngleMin(-M_PI , p1);
if(angleIsInRange(270*16,angleStart,angleLen)) calcAngleMax(-M_PI*3/2, p2);
//
d.x= p2.x - p1.x;
d.y= p2.y - p1.y;
//
w= (double)width() -1;
h= (double)height()-1;
//
if( d.x/d.y > w/h ) {
m = w / d.x;
a.x= 0;
a.y= (h - d.y * m)/2;
} else {
m = h / d.y;
a.x= (w - d.x * m)/2;
a.y= 0;
}
radius = (int) (m);
centerx= (int) ((-p1.x) * m + a.x);
centery= (int) ((-p1.y) * m + a.y);
//
fCalcParams= false;
}
void QDialArc::paramsChanged()
{
fCalcParams= true;
update();
}
//*****************************************************************

@ -0,0 +1,89 @@
/***************************************************************************
qdialarc.h - description
-------------------
begin : Wed Aug 1 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QDIALARC_H
#define QDIALARC_H
#include <qwidget.h>
/**
*@author Miguel Novas
*/
class QDialArc : public QWidget {
Q_OBJECT
public:
QDialArc(QWidget *parent=0, const char *name=0);
~QDialArc();
void setValue (double value);
void setValueMin (double value);
void setValueMax (double value);
void setValueRanges (double min,double max);
void setValueLimitRanges (double min,double max);
void setValueMinLimit (double value, int percent= 15);
void setValueMaxLimit (double value, int percent= 15);
void setValueMaxLimitPercent(int value);
void setValueMinLimitPercent(int value);
void setAngle (int value);
void setAngleLen (int value);
void setAngles (int angle,int len);
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 setArrowColor(const QColor &color);
inline double getValue() { return val; }
protected:
void resizeEvent( QResizeEvent *);
void paintEvent ( QPaintEvent *);
private:
double val;
double valMin;
double valMax;
double valMaxLimit,valMinLimit;
int valMaxLimitPercent,valMinLimitPercent;
int angleStart,angleLen;
//
int radius;
int centerx,centery;
bool fCalcParams;
QColor arrowColor;
QColor colorMin;
QColor colorMid;
QColor 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);
};
#endif

@ -0,0 +1,66 @@
/***************************************************************************
lcddraw.h - description
-------------------
begin : Tue Nov 27 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QLCDDRAW_H
#define QLCDDRAW_H
#include <qpainter.h>
#include <qcolor.h>
class QLcd {
public:
enum Options {
alignLeft = 0x0000,
alignCenter = 0x0001,
alignRight = 0x0002,
alignJustify= 0x0003,
drawShadow = 0x0008,
drawNumber = 0x0010,
alignMask = 0x0007
};
static int draw(QPainter *painter,
int x, int y,
int w, int h,
const char *str,
int options=0,
const QColor *color=0,
const QColor *colorShadow=0);
static void draw(QPainter *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); };
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);
};
#endif

@ -0,0 +1,275 @@
/***************************************************************************
lcddraw.cpp - description
-------------------
begin : Tue Nov 27 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "qlcddraw.h"
const uint QLcd::asciiSegments[128]=
{
0x00000000, // 0
0x00000000, // 1 // From 1-31 maybe for future use (to draw symbols)
0x00000000, // 2
0x00000000, // 3
0x00000000, // 4
0x00000000, // 5
0x00000000, // 6
0x00000000, // 7
0x00000000, // 8
0x00000000, // 9
0x00000000, // 10
0x00000000, // 11
0x00000000, // 12
0x00000000, // 13
0x00000000, // 14
0x00000000, // 15
0x00000000, // 16
0x00000000, // 17
0x00000000, // 18
0x00000000, // 19
0x00000000, // 20
0x00000000, // 21
0x00000000, // 22
0x00000000, // 23
0x00000000, // 24
0x00000000, // 25
0x00000000, // 26
0x00000000, // 27
0x00000000, // 28
0x00000000, // 29
0x00000000, // 30
0x00000000, // 31
0x00000000, // 32
0x21C00000, // 33 !
0x00400800, // 34 "
0x01BC3618, // 35 #
0x03C03CF3, // 36 $
0x18028000, // 37 %
0x00440801, // 38 &
0x00400000, // 39 '
0x03C00042, // 40 (
0x03C00081, // 41 )
0x03C3C000, // 42 *
0x01803000, // 43 +
0x00010000, // 44 ,
0x00003000, // 45 -
0x20000000, // 46 .
0x00028000, // 47 /
0x00000FFF, // 48 0
0x0000003C, // 49 1
0x000033CF, // 50 2
0x000030FF, // 51 3
0x00003C3C, // 52 4
0x00003CF3, // 53 5
0x00003FF3, // 54 6
0x0000003F, // 55 7
0x00003FFF, // 56 8
0x00003CFF, // 57 9
0x18000000, // 58 :
0x18000000, // 59 ;
0x00028000, // 60 <
0x003C0000, // 61 =
0x00024000, // 62 >
0x2100200F, // 63 ?
0x00882FCF, // 64 @
0x00003F3F, // 65 A
0x00003FFF, // 66 B
0x00000FC3, // 67 C
0x00000FFF, // 68 D
0x00003FC3, // 69 E
0x00001F03, // 70 F
0x00002FF3, // 71 G
0x00003F3C, // 72 H
0x03C00000, // 73 I
0x000001FC, // 74 J
0x40000F00, // 75 K Especial segment bit 30 to draw <
0x00000FC0, // 76 L
0x0000CF3C, // 77 M
0x00014F3C, // 78 N
0x00000FFF, // 79 O
0x00003F0F, // 80 P
0x00010FFF, // 81 Q
0x00013F0F, // 82 R
0x00003CF3, // 83 S
0x03C00003, // 84 T
0x00000FFC, // 85 U
0x80000000, // 86 V Especial segment bit 31 to draw this letter
0x00030F3C, // 87 W
0x0003C000, // 88 X
0x0300C000, // 89 Y
0x000280C3, // 90 Z
0x03C00042, // 91 [
0x00014000, // 92
0x03C00081, // 93 ]
0x00003C0F, // 94 ^
0x000000C0, // 95 _
0x00004000, // 96 `
0x00003F3F, // 97 A
0x00003FFF, // 98 B
0x00000FC3, // 99 C
0x00000FFF, //100 D
0x00003FC3, //101 E
0x00001F03, //102 F
0x00002FF3, //103 G
0x00003F3C, //104 H
0x03C00000, //105 I
0x000001FC, //106 J
0x40000F00, //107 K Especial segment bit 30 to draw <
0x00000FC0, //108 L
0x0000CF3C, //109 M
0x00014F3C, //110 N
0x00000FFF, //111 O
0x00003F0F, //112 P
0x00010FFF, //113 Q
0x00013F0F, //114 R
0x00003CF3, //115 S
0x03C00003, //116 T
0x00000FFC, //117 U
0x80000000, //118 V Especial segment bit 31 to draw this letter
0x00030F3C, //119 W
0x0003C000, //120 X
0x0300C000, //121 Y
0x000280C3, //122 Z
0x03C00042, //123 {
0x03C00000, //124 |
0x03C00081, //125 }
0x00000003, //126 ~
0x003C0518 //127
};
const int QLcd::segmentsCoords[32][8]=
{
{ 0,0, 1,0, -1 }, // 00
{ 1,0, 2,0, -1 },
{ 2,0, 2,1, -1 },
{ 2,1, 2,2, -1 },
{ 2,2, 2,3, -1 },
{ 2,3, 2,4, -1 },
{ 2,4, 1,4, -1 },
{ 1,4, 0,4, -1 },
{ 0,4, 0,3, -1 },
{ 0,3, 0,2, -1 },
{ 0,2, 0,1, -1 },
{ 0,1, 0,0, -1 },
{ 0,2, 1,2, -1 },
{ 1,2, 2,2, -1 },
{ 0,0, 1,2, -1 },
{ 2,0, 1,2, -1 },
{ 2,4, 1,2, -1 }, // 16
{ 0,4, 1,2, -1 },
{ 0,1, 1,1, -1 },
{ 1,1, 2,1, -1 },
{ 0,3, 1,3, -1 },
{ 1,3, 2,3, -1 },
{ 1,0, 1,1, -1 },
{ 1,1, 1,2, -1 },
{ 1,2, 1,3, -1 },
{ 1,3, 1,4, -1 },
{ 1,0, 1,0, -1 },
{ 1,1, 1,1, -1 },
{ 1,3, 1,3, -1 },
{ 2,4, 2,4, -1 },
{ 2,0, 0,2, 2,4, -1 }, // 30 -> <
{ 0,0, 1,4, 2,0, -1 } // 31 -> V
};
void QLcd::drawSegment(QPainter *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 );
c+= 2;
do {
p->lineTo( x+(c[0]*w)/2 , y+(c[1]*h)/4 );
c+= 2;
} while(*c>=0);
}
void QLcd::draw(QPainter *p,int x,int y,int w,int h, char c)
{
uint mask= asciiSegments[(uint)c&0x007F];
if (mask) {
int i= 0;
do {
if(mask&1) drawSegment(p, segmentsCoords[i & 0x001F], x,y,w,h);
mask>>= 1;
i++;
} while(mask);
}
}
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 len= strlen(str)<<1;
bool point= false;
if(options & drawNumber)
for(const char *ptr=str; *ptr!=0; ptr++)
if(*ptr=='.') { point= true; len--; break; }
int cww= charWidth(h);
int tww= cww*len;
if((options & alignMask)==alignJustify || tww>(w<<1)) {
cww= (w<<1)/len;
tww= cww*len;
}
len>>= 1;
tww>>= 1;
int sep= (cww+4)/4;
if(options & drawShadow) {
h--;
if(sep<=2) sep= 3;
}
int cw= cww - sep;
switch( options & alignMask ) {
case alignLeft : break;
case alignRight : x+= w - tww; break;
default : x+= (w - tww) / 2; break;
}
if(options & drawShadow) {
if(colorShadow) painter->setPen( *colorShadow );
int px = x+1;
int py = y+1;
const char *ptr= str;
while(*ptr) {
draw(painter,px,py,cw,h,*ptr++);
px+= (point && *ptr=='.') ? cww/2 : cww;
}
}
if(color) painter->setPen( *color );
while(*str) {
draw(painter,x,y,cw,h,*str++);
x+= (point && *str=='.') ? cww/2 : cww;
}
return x;
}

@ -0,0 +1,114 @@
/***************************************************************************
qlcdstring.cpp - description
-------------------
begin : Sat Jul 21 2001
copyright : (C) 2001 by Michael
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "qlcdstring.h"
#include <qpalette.h>
QLCDString::QLCDString( QWidget *parent, const char *name ): QWidget( parent, name )
{
digitStr= "";
options= QLcd::alignCenter;
QColorGroup g= colorGroup();
forColor= g.foreground();
shaColor= g.shadow();
}
QLCDString::~QLCDString(){
}
void QLCDString::display( const QString &str )
{
digitStr= str;
update();
}
void QLCDString::setAlign(Align newAlign)
{
if( (options & QLcd::alignMask)!=newAlign ) {
options= (options & ~QLcd::alignMask ) | newAlign;
update();
}
}
const QColor& QLCDString::foreColor()
{
return forColor;
}
const QColor& QLCDString::shadowColor()
{
return shaColor;
}
void QLCDString::setForeColor(const QColor &fore)
{
forColor= fore;
update();
}
void QLCDString::setShadowColor(const QColor &sha)
{
shaColor= sha;
update();
}
void QLCDString::resizeEvent ( QResizeEvent *)
{
update();
}
void QLCDString::setShadow(bool enable)
{
if( (bool)(options & QLcd::drawShadow) != enable ) {
options^= QLcd::drawShadow;
update();
}
}
void QLCDString::setNumberDisplay(bool enable)
{
if( (bool)(options & QLcd::drawNumber) != enable ) {
options^= QLcd::drawNumber;
update();
}
}
void QLCDString::paintEvent( QPaintEvent *e )
{
QPainter p(this);
QLcd::draw(&p,0,0,width(),height(),digitStr.latin1(),options,&forColor,&shaColor);
}

@ -0,0 +1,76 @@
/***************************************************************************
qlcdstring.h - description
-------------------
begin : Sat Jul 21 2001
copyright : (C) 2001 by Michael
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QLCDSTRING_H
#define QLCDSTRING_H
#include <qframe.h>
#include <qpainter.h>
#include <qcolor.h>
#include <qstring.h>
#include "qlcddraw.h"
/**
*@author Miguel Novas
*/
#include <qpalette.h>
class QLCDString : public QWidget {
Q_OBJECT
public:
enum Align {
alignLeft = 0x0000,
alignCenter = 0x0001,
alignRight = 0x0002,
alignJustify= 0x0003
};
QLCDString( QWidget *parent=0, const char *name=0 );
~QLCDString();
void display( const QString &str );
void setShadow(bool enable);
bool getShadow() { return (bool)(options & QLcd::drawShadow); };
void setAlign(Align newAlign);
void setForeColor(const QColor &fore);
void setShadowColor(const QColor &sha);
void setNumberDisplay(bool enable);
const QColor& foreColor();
const QColor& shadowColor();
protected:
void resizeEvent( QResizeEvent *);
void paintEvent ( QPaintEvent *);
private:
QString digitStr;
int options;
QColor forColor,shaColor;
};
#endif

@ -0,0 +1,106 @@
/***************************************************************************
rampanel.cpp - description
-------------------
begin : Fri Jan 11 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "rampanel.h"
#include "procinfo.h"
RamPanel::RamPanel(QWidget *parent, const char *name, RamType type): Panel(parent,name)
{
ramType= type;
memTotal= -1;
memUsed = -1;
arc = new QDialArc(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));
lcd1= new QLCDString(this);
lcd1->setGeometry(6, 8,54,11);
lcd1->setShadow(true);
lcd1->setForeColor(getColorValue());
lcd1->setAlign(QLCDString::alignCenter);
lcd1->installEventFilter(this);
lcd2= new QLCDString(this);
lcd2->setGeometry(4, 52,58,8);
lcd2->setForeColor(getColorTitle());
lcd2->setAlign(QLCDString::alignCenter);
lcd2->installEventFilter(this);
updateInfo();
}
RamPanel::~RamPanel(){
}
void RamPanel::updateInfo()
{
int newMemTotal,newMemUsed,newSwapTotal,newSwapUsed;
getMemInfo(&newMemTotal,&newMemUsed,&newSwapTotal,&newSwapUsed);
if(ramType==memSWAP) {
newMemTotal= newSwapTotal;
newMemUsed = newSwapUsed;
}
newMemUsed /=1024;
newMemTotal/=1024;
if(memTotal!=newMemTotal) {
arc->setValueRanges(0,newMemTotal);
QString str;
str.sprintf ( ramType==memSWAP ? "SWP %dM" : "RAM %dM", newMemTotal);
lcd2->display(str);
memTotal= newMemTotal;
}
if(memUsed!=newMemUsed) {
QString str;
str.sprintf ("%dM" , newMemUsed );
lcd1->display(str);
arc->setValue(newMemUsed);
arc->setValueLimitRanges(newMemUsed,newMemUsed);
memUsed = newMemUsed;
}
}
void RamPanel::paletteChange(const QPalette &oldPalette)
{
lcd2->setForeColor(getColorTitle());
lcd1->setForeColor(getColorValue());
arc->setArrowColor(getColorValue());
}
void RamPanel::resizeEvent ( QResizeEvent *e )
{
int w= width();
int h= height();
int i1= (h * 2) / 5;
int i2= (h * 4) / 5;
lcd1->setGeometry( 3 , h/8 , w -4 , h/4-h/16);
arc ->setGeometry( 3 , i1 , w -6 , i2-i1-2 );
lcd2->setGeometry( 3 , i2+1, w -6 , h-i2-h/11);
}

@ -0,0 +1,48 @@
/***************************************************************************
rampanel.h - description
-------------------
begin : Fri Jan 11 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef RAMPANEL_H
#define RAMPANEL_H
#include <panel.h>
#include <qdialarc.h>
#include <qlcdstring.h>
/**
*@author Miguel Novas
*/
class RamPanel : public Panel {
public:
enum RamType { memRAM, memSWAP };
RamPanel(QWidget *parent=0, const char *name=0, RamType type= memRAM);
~RamPanel();
protected:
RamType ramType;
int memTotal,memUsed;
QDialArc *arc;
QLCDString *lcd1,*lcd2;
void updateInfo();
void paletteChange(const QPalette &oldPalette);
void resizeEvent ( QResizeEvent *e );
};
#endif

@ -0,0 +1,189 @@
/***************************************************************************
sensor.cpp - description
-------------------
begin : mié abr 24 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <kglobal.h>
#include "sensor.h"
#include "sensorslist.h"
Sensor::Sensor(SensorsList *parent,const char *name): QObject(parent,name)
{
description = "";
compensation = 0;
multiplicator= 1;
monitorize = false;
}
Sensor::~Sensor(){
}
Sensor::SensorClass Sensor::getClass()
{
return ((SensorsList *)parent())->getClass();
}
QString Sensor::getPrintMask(bool addSufix)
{
return getSensorPrintMask(type, addSufix, ((SensorsList*)parent())->getTempScale() );
}
const char *Sensor::getSensorPrintMask(int sensorType, bool addSufix, TempScale temp)
{
if(addSufix) {
switch(sensorType) {
case Sensor::lmTemp:
switch(temp) {
case dgCelsius : return "%.0lf C";
case dgFahrenheit: return "%.0lf F";
case dgKelvin : return "%.0lf K";
}
break;
case Sensor::lmFan: return "%.0lf rpm";
case Sensor::lmVoltage: return "%.2lfV";
}
}
return sensorType==Sensor::lmVoltage ? ".2lf" : ".0lf";
}
bool Sensor::monitorized()
{
return monitorize;
}
void Sensor::setMonitorized(bool enable)
{
if( monitorize!=enable ) monitorize= enable;
}
void Sensor::setValueIdeal(double value, TempScale scale)
{
valIdeal= toCelsius(value, scale);
}
void Sensor::setValueMax(double value, TempScale scale)
{
valMax= toCelsius(value,scale);
}
void Sensor::setValueMin(double value, TempScale scale)
{
valMin= toCelsius(value,scale);
}
void Sensor::setCompensation(double value, TempScale scale)
{
compensation= toCelsiusDiff(value,scale);
}
void Sensor::setMultiplicator(double value)
{
multiplicator= value;
}
void Sensor::setDescription(const QString &str)
{
description= str;
}
void Sensor::setValue(double newVal, TempScale scale, bool ajust)
{
newVal= toCelsius(newVal,scale);
if (ajust) newVal= adjustValue(newVal);
if(val!=newVal) {
valPrevious= val;
val = newVal;
emit valueChanged( celsiusTo(val) );
}
}
void Sensor::writeConfig()
{
KConfig *ksConfig= KGlobal::config();
if(ksConfig) {
ksConfig->setGroup( QString(name()) );
ksConfig->writeEntry("description" ,description);
ksConfig->writeEntry("valueIdeal" ,valIdeal);
ksConfig->writeEntry("valueMax" ,valMax);
ksConfig->writeEntry("valueMin" ,valMin);
ksConfig->writeEntry("compensation" ,compensation);
ksConfig->writeEntry("multiplicator",multiplicator);
ksConfig->writeEntry("monitorize" ,monitorize);
emit configChanged();
}
}
void Sensor::readConfig()
{
KConfig *ksConfig= KGlobal::config();
if(ksConfig) {
ksConfig->setGroup( QString(name()) );
valMax = ksConfig->readDoubleNumEntry("valueMax" ,valMax);
valMin = ksConfig->readDoubleNumEntry("valueMin" ,valMin);
compensation = ksConfig->readDoubleNumEntry("compensation" ,compensation);
multiplicator= ksConfig->readDoubleNumEntry("multiplicator",multiplicator);
description = ksConfig->readEntry ("description" ,description);
valIdeal = ksConfig->readDoubleNumEntry("valueIdeal" ,valIdeal);
setMonitorized( ksConfig->readBoolEntry ("monitorize" ,monitorize) );
}
}
double Sensor::toCelsius(double val, TempScale scale)
{
if(type!=lmTemp) return val;
switch( scale == dgDefault ? getTempScale(): scale ) {
case dgCelsius : return val;
case dgFahrenheit: return (5.0/9.0)*(val-32.0);
}
return val - 273.16; // Kelvin to Celsius
}
double Sensor::celsiusTo(double val, TempScale scale)
{
if(type!=lmTemp) return val;
switch( scale==dgDefault ? getTempScale() : scale ) {
case dgCelsius : return val;
case dgFahrenheit: return (9.0/5.0)*val+32.0;
}
return val + 273.16; // Celsius to Kelvin
}
double Sensor::toCelsiusDiff(double val, TempScale scale)
{
if(scale==dgDefault) scale= getTempScale();
if(type!=lmTemp || scale!=dgFahrenheit ) return val;
return val*(5.0/9.0);
}
double Sensor::celsiusToDiff(double val, TempScale scale)
{
if(scale==dgDefault) scale= getTempScale();
if(type!=lmTemp || scale!=dgFahrenheit ) return val;
return val*(9.0/5.0);
}
Sensor::TempScale Sensor::getTempScale()
{
return ((SensorsList *)parent())->getTempScale();
}

@ -0,0 +1,113 @@
/***************************************************************************
sensor.h - description
-------------------
begin : mié abr 24 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef SENSOR_H
#define SENSOR_H
#include <qobject.h>
#include <kconfig.h>
#include <qstring.h>
#include <qcstring.h>
/**
*@author Miguel Novas
*/
//
class SensorsList;
class Sensor : public QObject {
Q_OBJECT
friend class SensorsList;
public:
enum SensorClass { lmSensor, hdSensor };
enum TempScale { dgCelsius, dgFahrenheit, dgKelvin, dgDefault };
enum SensorType { lmTemp, lmFan, lmVoltage };
Sensor(SensorsList *parent=0, const char *name=0);
~Sensor();
inline void setType(SensorType newType) { type= newType; };
void setValue(double newVal, TempScale scale= dgDefault, bool ajust=true);
inline SensorType getType() { return type; };
inline const QString &getDescription() { return description; };
inline double getValue() { return celsiusTo(val); };
inline double getValuePrevious() { return celsiusTo(valPrevious); };
inline double getValueIdeal() { return celsiusTo(valIdeal); };
inline double getValueMax() { return celsiusTo(valMax); };
inline double getValueMin() { return celsiusTo(valMin); };
inline double getCompensation() { return celsiusToDiff(compensation); };
inline double getMultiplicator() { return multiplicator; };
inline bool getAlarm() { return (val<valMin || val>valMax); };
inline bool getAlarmPrevious() { return (valPrevious<valMin || valPrevious>valMax); };
inline bool getMonitorize() { return monitorize; };
inline bool isAlarmValue(double value) { value= toCelsius(value); return (value<valMin || value>valMax); };
bool monitorized();
void setMonitorized (bool enable);
void setDescription (const QString &str);
void setValueIdeal (double value, TempScale scale= dgDefault);
void setValueMax (double value, TempScale scale= dgDefault);
void setValueMin (double value, TempScale scale= dgDefault);
void setCompensation (double value, TempScale scale= dgDefault);
void setMultiplicator(double value);
SensorClass getClass();
TempScale getTempScale();
double toCelsius(double val, TempScale scale= dgDefault);
double celsiusTo(double val, TempScale scale= dgDefault);
double toCelsiusDiff(double val, TempScale scale= dgDefault);
double celsiusToDiff(double val, TempScale scale= dgDefault);
QString getPrintMask(bool addSufix);
public slots:
void readConfig();
void writeConfig();
signals:
void valueChanged(double);
void configChanged();
private:
SensorType type;
QString description;
double val;
double valPrevious;
double compensation;
double multiplicator;
double valMax;
double valMin;
double valIdeal;
bool monitorize;
inline double adjustValue(double value) { return value * multiplicator + compensation; };
const char *getSensorPrintMask(int sensorType, bool addSufix, TempScale temp);
};
#endif

@ -0,0 +1,132 @@
/***************************************************************************
sensorslist.cpp - description
-------------------
begin : mié abr 24 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "sensorslist.h"
#include <kglobal.h>
SensorsList::SensorsList(QObject *parent, const char * name)
: QObject(parent,name)
{
tempScale= Sensor::dgCelsius;
updateInterval= 5000;
}
SensorsList::~SensorsList()
{
}
void SensorsList::setMonitorized(bool enable)
{
if(monitorized!=enable) {
monitorized= enable;
if(enable) startTimer( updateInterval );
else killTimers();
}
}
void SensorsList::setUpdateInterval(int seconds)
{
seconds= seconds*1000;
if(updateInterval!=seconds) {
updateInterval= seconds;
if(monitorized) {
setMonitorized(false);
setMonitorized(true);
}
}
}
void SensorsList::setTempScale(Sensor::TempScale scale)
{
if(tempScale!=scale) {
tempScale= scale;
QObjectList *list= getSensors();
if(list)
for(Sensor *sensor=(Sensor*)list->first(); sensor!=0; sensor= (Sensor*)list->next())
if(sensor->getType()==Sensor::lmTemp)
emit sensor->configChanged();
}
}
void SensorsList::readConfig()
{
KConfig *ksConfig= KGlobal::config();
ksConfig->setGroup( name() );
setUpdateInterval(ksConfig->readNumEntry("UpdateInterval",5));
QString str= ksConfig->readEntry("Scale" ,"C");
Sensor::TempScale tempScale;
if(str=="F") tempScale= Sensor::dgFahrenheit;
else if(str=="K") tempScale= Sensor::dgKelvin;
else tempScale= Sensor::dgCelsius;
setTempScale(tempScale);
}
void SensorsList::writeConfig()
{
KConfig *ksConfig= KGlobal::config();
ksConfig->setGroup( name() );
ksConfig->writeEntry("UpdateInterval",updateInterval/1000);
QString str;
switch(tempScale) {
case Sensor::dgCelsius : str='C'; break;
case Sensor::dgKelvin : str='K'; break;
case Sensor::dgFahrenheit: str='F'; break;
}
ksConfig->writeEntry("Scale" ,str);
}
//****************************************************************************
// Protected methods
//****************************************************************************
void SensorsList::timerEvent( QTimerEvent * )
{
updateSensors();
}
//***************
void SensorsList::childEvent ( QChildEvent *e )
{
if(e->inserted()) {
connect((Sensor *)e->child(),SIGNAL(configChanged()),this,SLOT(slotConfigChanged()));
connect((Sensor *)e->child(),SIGNAL(valueChanged(double)) ,this,SLOT(slotValueChanged()));
}
}
//****************************************************************************
// Protected slots
//****************************************************************************
void SensorsList::slotConfigChanged()
{
emit configChanged( sender()->name() );
}
void SensorsList::slotValueChanged()
{
emit valueChanged( (Sensor *)sender() );
}
/*********************************************************************************/

@ -0,0 +1,92 @@
/***************************************************************************
sensorslist.h - description
-------------------
begin : mié abr 24 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef SENSORSLIST_H
#define SENSORSLIST_H
#include <qobject.h>
#include <qobjcoll.h>
#include <kconfig.h>
#include <qstringlist.h>
#include <sensor.h>
/**
*@author Miguel Novas
*/
class SensorsList : public QObject {
Q_OBJECT
friend class Sensor;
public:
SensorsList(QObject *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; }
Sensor *getSensor(const char *name) { return (Sensor *)child(name); }
int count() { return children() ? children()->count() : 0; }
void setTempScale(Sensor::TempScale scale);
Sensor::TempScale getTempScale() { return tempScale; }
void setUpdateInterval(int seconds);
int getUpdateInterval() { return updateInterval/1000; }
Sensor::SensorClass getClass() { return clas; };
public slots:
virtual void updateSensors()= 0;
virtual void readConfig();
virtual void writeConfig();
signals:
void valueChanged(Sensor *);
void configChanged(const char *name);
protected slots:
void slotConfigChanged();
void slotValueChanged();
protected:
void setDescription(const QString &name) { description= name; };
void setClass(Sensor::SensorClass newClass) { clas= newClass; }
void childEvent ( QChildEvent *e );
private:
QString description;
Sensor::SensorClass clas;
bool monitorized;
int updateInterval;
KConfig *ksConfig;
Sensor::TempScale tempScale;
void timerEvent( QTimerEvent * );
};
#endif

@ -0,0 +1,13 @@
####### kdevelop will overwrite this part!!! (begin)##########
INCLUDES = $(all_includes)
EXTRA_DIST = ksensors_alert.wav
install-data-local:
$(mkinstalldirs) $(kde_datadir)/sounds
$(INSTALL_DATA) $(srcdir)/ksensors_alert.wav $(kde_datadir)/sounds/ksensors_alert.wav
uninstall-local:
-rm -f $(kde_datadir)/sounds/ksensors_alert.wav
####### kdevelop will overwrite this part!!! (end)############

@ -0,0 +1,478 @@
# Makefile.in generated by automake 1.6.3 from Makefile.am.
# KDE tags expanded automatically by am_edit - $Revision: 1.5 $
# @configure_input@
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
####### kdevelop will overwrite this part!!! (begin)##########
SHELL = @SHELL@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ../..
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = @build_alias@
build_triplet = @build@
host_alias = @host_alias@
host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@
EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
PATH_SEPARATOR = @PATH_SEPARATOR@
AMTAR = @AMTAR@
ARTSCCONFIG = @ARTSCCONFIG@
AS = @AS@
AUTODIRS = @AUTODIRS@
AWK = @AWK@
BROCKENBORING = @BROCKENBORING@
CC = @CC@
CONF_FILES = @CONF_FILES@
CPP = @CPP@
CXX = @CXX@
CXXCPP = @CXXCPP@
DCOPIDL = @DCOPIDL@
DCOPIDL2CPP = @DCOPIDL2CPP@
DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN = @DOXYGEN@
DOXYGEN_PROJECT_NAME = @DOXYGEN_PROJECT_NAME@
DOXYGEN_PROJECT_NUMBER = @DOXYGEN_PROJECT_NUMBER@
DPMSINC = @DPMSINC@
DPMSLIB = @DPMSLIB@
ECHO = @ECHO@
FRAMEWORK_COREAUDIO = @FRAMEWORK_COREAUDIO@
GCJ = @GCJ@
GCJFLAGS = @GCJFLAGS@
GLINC = @GLINC@
GLLIB = @GLLIB@
GMSGFMT = @GMSGFMT@
IDL = @IDL@
IDL_DEPENDENCIES = @IDL_DEPENDENCIES@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
JAR = @JAR@
JAVAC = @JAVAC@
JAVAH = @JAVAH@
JVMLIBS = @JVMLIBS@
KDECONFIG = @KDECONFIG@
KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@
KDE_HAS_DOXYGEN = @KDE_HAS_DOXYGEN@
KDE_HAVE_DOT = @KDE_HAVE_DOT@
KDE_INCLUDES = @KDE_INCLUDES@
KDE_LDFLAGS = @KDE_LDFLAGS@
KDE_MT_LDFLAGS = @KDE_MT_LDFLAGS@
KDE_MT_LIBS = @KDE_MT_LIBS@
KDE_NO_UNDEFINED = @KDE_NO_UNDEFINED@
KDE_PLUGIN = @KDE_PLUGIN@
KDE_RPATH = @KDE_RPATH@
KDE_USE_CLOSURE_FALSE = @KDE_USE_CLOSURE_FALSE@
KDE_USE_CLOSURE_TRUE = @KDE_USE_CLOSURE_TRUE@
KDE_USE_FINAL_FALSE = @KDE_USE_FINAL_FALSE@
KDE_USE_FINAL_TRUE = @KDE_USE_FINAL_TRUE@
KDE_USE_NMCHECK_FALSE = @KDE_USE_NMCHECK_FALSE@
KDE_USE_NMCHECK_TRUE = @KDE_USE_NMCHECK_TRUE@
KDE_XSL_STYLESHEET = @KDE_XSL_STYLESHEET@
LEX = @LEX@
LEXLIB = @LEXLIB@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LIBBZ2 = @LIBBZ2@
LIBCOMPAT = @LIBCOMPAT@
LIBCRYPT = @LIBCRYPT@
LIBDL = @LIBDL@
LIBGEN = @LIBGEN@
LIBJPEG = @LIBJPEG@
LIBMICO = @LIBMICO@
LIBOBJS = @LIBOBJS@
LIBPNG = @LIBPNG@
LIBPTHREAD = @LIBPTHREAD@
LIBPYTHON = @LIBPYTHON@
LIBQIMGIO = @LIBQIMGIO@
LIBRESOLV = @LIBRESOLV@
LIBSHADOW = @LIBSHADOW@
LIBSM = @LIBSM@
LIBSOCKET = @LIBSOCKET@
LIBSSL = @LIBSSL@
LIBTIFF = @LIBTIFF@
LIBTOOL = @LIBTOOL@
LIBUCB = @LIBUCB@
LIBUTIL = @LIBUTIL@
LIBZ = @LIBZ@
LIB_JASPER = @LIB_JASPER@
LIB_KAB = @LIB_KAB@
LIB_KABC = @LIB_KABC@
LIB_KDECORE = @LIB_KDECORE@
LIB_KDEPRINT = @LIB_KDEPRINT@
LIB_KDEUI = @LIB_KDEUI@
LIB_KFILE = @LIB_KFILE@
LIB_KFM = @LIB_KFM@
LIB_KHTML = @LIB_KHTML@
LIB_KIMGIO = @LIB_KIMGIO@
LIB_KIO = @LIB_KIO@
LIB_KPARTS = @LIB_KPARTS@
LIB_KSPELL = @LIB_KSPELL@
LIB_KSYCOCA = @LIB_KSYCOCA@
LIB_POLL = @LIB_POLL@
LIB_QPE = @LIB_QPE@
LIB_QT = @LIB_QT@
LIB_QTOPIA = @LIB_QTOPIA@
LIB_SMB = @LIB_SMB@
LIB_X11 = @LIB_X11@
LIB_XEXT = @LIB_XEXT@
LIB_XRENDER = @LIB_XRENDER@
LN_S = @LN_S@
MCOPIDL = @MCOPIDL@
MEINPROC = @MEINPROC@
MICO_INCLUDES = @MICO_INCLUDES@
MICO_LDFLAGS = @MICO_LDFLAGS@
MOC = @MOC@
MSGFMT = @MSGFMT@
NOOPT_CFLAGS = @NOOPT_CFLAGS@
NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@
OBJC = @OBJC@
OBJCFLAGS = @OBJCFLAGS@
OBJDUMP = @OBJDUMP@
PACKAGE = @PACKAGE@
PAMLIBS = @PAMLIBS@
PASSWDLIBS = @PASSWDLIBS@
PYTHONINC = @PYTHONINC@
PYTHONLIB = @PYTHONLIB@
PYTHONMODDIR = @PYTHONMODDIR@
QTDOCDIR = @QTDOCDIR@
QTE_NORTTI = @QTE_NORTTI@
QTOPIA_INCLUDES = @QTOPIA_INCLUDES@
QT_INCLUDES = @QT_INCLUDES@
QT_LDFLAGS = @QT_LDFLAGS@
RANLIB = @RANLIB@
RC = @RC@
SETUIDFLAGS = @SETUIDFLAGS@
SSL_INCLUDES = @SSL_INCLUDES@
SSL_LDFLAGS = @SSL_LDFLAGS@
STRIP = @STRIP@
TOPSUBDIRS = @TOPSUBDIRS@
UIC = @UIC@
UIC_TR = @UIC_TR@
USER_INCLUDES = @USER_INCLUDES@
USER_LDFLAGS = @USER_LDFLAGS@
USE_EXCEPTIONS = @USE_EXCEPTIONS@
USE_RTTI = @USE_RTTI@
USE_THREADS = @USE_THREADS@
VERSION = @VERSION@
WOVERLOADED_VIRTUAL = @WOVERLOADED_VIRTUAL@
XGETTEXT = @XGETTEXT@
XPMINC = @XPMINC@
XPMLIB = @XPMLIB@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_INCLUDES = @X_INCLUDES@
X_LDFLAGS = @X_LDFLAGS@
X_PRE_LIBS = @X_PRE_LIBS@
X_RPATH = @X_RPATH@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__quote = @am__quote@
idldir = @idldir@
install_sh = @install_sh@
jni_includes = @jni_includes@
kde_appsdir = @kde_appsdir@
kde_bindir = @kde_bindir@
kde_confdir = @kde_confdir@
kde_datadir = @kde_datadir@
kde_htmldir = @kde_htmldir@
kde_icondir = @kde_icondir@
kde_includes = @kde_includes@
kde_libraries = @kde_libraries@
kde_libs_htmldir = @kde_libs_htmldir@
kde_libs_prefix = @kde_libs_prefix@
kde_locale = @kde_locale@
kde_mimedir = @kde_mimedir@
kde_moduledir = @kde_moduledir@
kde_qtver = @kde_qtver@
kde_servicesdir = @kde_servicesdir@
kde_servicetypesdir = @kde_servicetypesdir@
kde_sounddir = @kde_sounddir@
kde_styledir = @kde_styledir@
kde_templatesdir = @kde_templatesdir@
kde_wallpaperdir = @kde_wallpaperdir@
kde_widgetdir = @kde_widgetdir@
kdeinitdir = @kdeinitdir@
micodir = @micodir@
qt_includes = @qt_includes@
qt_libraries = @qt_libraries@
x_includes = @x_includes@
x_libraries = @x_libraries@
xdg_appsdir = @xdg_appsdir@
xdg_directorydir = @xdg_directorydir@
INCLUDES = $(all_includes)
EXTRA_DIST = ksensors_alert.wav
subdir = src/sounds
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
DIST_SOURCES =
DIST_COMMON = Makefile.am Makefile.in
#>- all: all-am
#>+ 1
all: docs-am all-am
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
#>- cd $(top_srcdir) && \
#>- $(AUTOMAKE) --gnu src/sounds/Makefile
#>+ 3
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu src/sounds/Makefile
cd $(top_srcdir) && perl admin/am_edit ksensors-0.7.3/src/sounds/Makefile.in
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
tags: TAGS
TAGS:
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
top_distdir = ../..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
@list='$(DISTFILES)'; for file in $$list; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkinstalldirs) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
#>- clean: clean-am
#>+ 1
clean: kde-rpo-clean clean-am
#>- clean-am: clean-generic clean-libtool mostlyclean-am
#>+ 1
clean-am: clean-bcheck clean-generic clean-libtool mostlyclean-am
distclean: distclean-am
distclean-am: clean-am distclean-generic distclean-libtool
dvi: dvi-am
dvi-am:
info: info-am
info-am:
install-data-am: install-data-local
install-exec-am:
install-info: install-info-am
install-man:
installcheck-am:
maintainer-clean: maintainer-clean-am
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
uninstall-am: uninstall-info-am uninstall-local
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
distclean distclean-generic distclean-libtool distdir dvi \
dvi-am info info-am install install-am install-data \
install-data-am install-data-local install-exec install-exec-am \
install-info install-info-am install-man install-strip \
installcheck installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-generic \
mostlyclean-libtool uninstall uninstall-am uninstall-info-am \
uninstall-local
install-data-local:
#>- $(mkinstalldirs) $(kde_datadir)/sounds
#>+ 1
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/sounds
#>- $(INSTALL_DATA) $(srcdir)/ksensors_alert.wav $(kde_datadir)/sounds/ksensors_alert.wav
#>+ 1
$(INSTALL_DATA) $(srcdir)/ksensors_alert.wav $(DESTDIR)$(kde_datadir)/sounds/ksensors_alert.wav
uninstall-local:
#>- -rm -f $(kde_datadir)/sounds/ksensors_alert.wav
#>+ 1
-rm -f $(DESTDIR)$(kde_datadir)/sounds/ksensors_alert.wav
####### kdevelop will overwrite this part!!! (end)############
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
#>+ 2
docs-am:
#>+ 6
force-reedit:
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu src/sounds/Makefile
cd $(top_srcdir) && perl admin/am_edit ksensors-0.7.3/src/sounds/Makefile.in
#>+ 21
clean-bcheck:
rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
bcheck: bcheck-am
bcheck-am:
@for i in ; do \
if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
echo "$$i"; \
if ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(KDE_CXXFLAGS) --dump-class-hierarchy $$i.bchecktest.cc; then \
rm -f $$i.bchecktest.cc; exit 1; \
fi ; \
echo "" >> $$i.bchecktest.cc.class; \
perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
rm -f a.out; \
fi ; \
done
#>+ 3
final:
$(MAKE) all-am
#>+ 3
final-install:
$(MAKE) install-am
#>+ 3
no-final:
$(MAKE) all-am
#>+ 3
no-final-install:
$(MAKE) install-am
#>+ 3
cvs-clean:
$(MAKE) admindir=$(top_srcdir)/admin -f $(top_srcdir)/admin/Makefile.common cvs-clean
#>+ 3
kde-rpo-clean:
-rm -f *.rpo
#>+ 3
nmcheck:
nmcheck-am: nmcheck

Binary file not shown.

@ -0,0 +1,126 @@
/***************************************************************************
systemcfg.cpp - description
-------------------
begin : vie may 17 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#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 "systemcfg.h"
#include "infopanels.h"
SystemCfg::SystemCfg(LMSensors *lsensors, QWidget *parent, const char *name): SystemCfgDesign(parent,name)
{
sensors= lsensors;
palPanelCfg= new PaletteCfg( boxPanelPalette );
boxPanelPalette->setColumnLayout(0, Qt::Vertical );
boxPanelPalette->layout()->setSpacing( 6 );
boxPanelPalette->layout()->setMargin( 12 );
QGridLayout *boxPanelPaletteLayout = new QGridLayout( boxPanelPalette->layout() );
boxPanelPaletteLayout->setAlignment( Qt::AlignTop );
boxPanelPaletteLayout->addWidget( palPanelCfg, 0, 0 );
connect( TabWidget ,SIGNAL(currentChanged(QWidget*)), this, SLOT(slotTabWidgetChanged(QWidget *)));
//connect( buttonApply ,SIGNAL(clicked()),this, SLOT(slotApplyChanges()));
listSensors->clear();
listSensors->insertItem( i18n("CPU Speed"));
listSensors->insertItem( i18n("CPU State"));
listSensors->insertItem( i18n("RAM Used"));
listSensors->insertItem( i18n("SWAP Used"));
listSensors->insertItem( i18n("Up Time"));
listSensors->setCurrentItem(0);
readSensorInfo(0);
connect( listSensors,SIGNAL(highlighted(int)),this,SLOT(slotCurrentSensorChanged(int)) );
}
SystemCfg::~SystemCfg(){
}
void SystemCfg::slotTabWidgetChanged(QWidget *)
{
switch(TabWidget->currentPageIndex())
{
case 0: readSensorInfo(listSensors->currentItem()); break;
case 1: readPreferencesInfo(); break;
}
}
const char *SystemCfg::getPanelName(int index)
{
switch(index) {
case 0: return "proc.CPUINFO";
case 1: return "proc.CPULOAD";
case 2: return "proc.RAMINFO";
case 3: return "proc.SWAPINFO";
case 4: return "proc.UPTIME";
}
return 0;
}
void SystemCfg::slotCurrentSensorChanged(int index)
{
readSensorInfo(index);
}
void SystemCfg::readSensorInfo(int index)
{
const char *panelName= getPanelName(index);
checkShow->setChecked( Panel::readShow(panelName) );
palPanelCfg->readPalette(panelName);
}
void SystemCfg::readPreferencesInfo()
{
SpinUpdateTime->setValue(InfoPanels::cfgReadUpdateInterval());
}
void SystemCfg::writeSensorInfo(int index)
{
const char *panelName= getPanelName(index);
Panel::writeShow(panelName,checkShow->isChecked());
palPanelCfg->savePalette();
sensors->emitConfigChanged(panelName);
}
void SystemCfg::writePreferencesInfo()
{
InfoPanels::cfgWriteUpdateInterval(SpinUpdateTime->value());
sensors->emitConfigChanged("proc");
}
void SystemCfg::slotApplyChanges()
{
if (!isVisible())
return;
switch(TabWidget->currentPageIndex())
{
case 0: writeSensorInfo(listSensors->currentItem()); break;
case 1: writePreferencesInfo(); break;
}
}

@ -0,0 +1,56 @@
/***************************************************************************
systemcfg.h - description
-------------------
begin : vie may 17 2002
copyright : (C) 2002 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef SYSTEMCFG_H
#define SYSTEMCFG_H
#include <systemcfgdesign.h>
#include <lmsensors.h>
#include <palettecfg.h>
/**
*@author Miguel Novas
*/
class SystemCfg : public SystemCfgDesign {
Q_OBJECT
public:
SystemCfg(LMSensors *lsensors, QWidget *parent=0, const char *name=0);
~SystemCfg();
protected slots:
void slotCurrentSensorChanged(int index);
void slotTabWidgetChanged(QWidget *);
void readSensorInfo(int index);
void readPreferencesInfo();
void writeSensorInfo(int index);
void writePreferencesInfo();
public slots:
void slotApplyChanges();
private:
// int indexCurSensor;
LMSensors *sensors;
PaletteCfg *palPanelCfg;
const char *getPanelName(int index);
};
#endif

@ -0,0 +1,143 @@
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './systemcfgdesign.ui'
**
** Created: mer aoû 18 23:39:06 2004
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#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>
/*
* 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 )
{
if ( !name )
setName( "SystemCfgDesign" );
SystemCfgDesignLayout = new QGridLayout( this, 1, 1, 8, 4, "SystemCfgDesignLayout");
TabWidget = new QTabWidget( this, "TabWidget" );
tab = new QWidget( TabWidget, "tab" );
tabLayout = new QHBoxLayout( 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->setLineWidth( 2 );
listSensors->setColumnMode( QListBox::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");
GroupBox13 = new QGroupBox( framePanelCfg, "GroupBox13" );
GroupBox13->setMinimumSize( QSize( 0, 50 ) );
GroupBox13->setMaximumSize( QSize( 32767, 50 ) );
GroupBox13->setColumnLayout(0, Qt::Vertical );
GroupBox13->layout()->setSpacing( 6 );
GroupBox13->layout()->setMargin( 11 );
GroupBox13Layout = new QGridLayout( GroupBox13->layout() );
GroupBox13Layout->setAlignment( Qt::AlignTop );
checkShow = new QCheckBox( GroupBox13, "checkShow" );
checkShow->setCursor( QCursor( 0 ) );
GroupBox13Layout->addWidget( checkShow, 0, 0 );
framePanelCfgLayout->addWidget( GroupBox13 );
boxPanelPalette = new QGroupBox( framePanelCfg, "boxPanelPalette" );
boxPanelPalette->setMinimumSize( QSize( 0, 90 ) );
framePanelCfgLayout->addWidget( boxPanelPalette );
Spacer4_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
framePanelCfgLayout->addItem( Spacer4_2 );
tabLayout->addWidget( framePanelCfg );
TabWidget->insertTab( tab, QString("") );
tab_2 = new QWidget( TabWidget, "tab_2" );
tabLayout_2 = new QVBoxLayout( tab_2, 11, 6, "tabLayout_2");
GroupBox7 = new QGroupBox( tab_2, "GroupBox7" );
GroupBox7->setMinimumSize( QSize( 0, 0 ) );
GroupBox7->setColumnLayout(0, Qt::Vertical );
GroupBox7->layout()->setSpacing( 12 );
GroupBox7->layout()->setMargin( 12 );
GroupBox7Layout = new QHBoxLayout( GroupBox7->layout() );
GroupBox7Layout->setAlignment( Qt::AlignTop );
SpinUpdateTime = new QSpinBox( GroupBox7, "SpinUpdateTime" );
SpinUpdateTime->setMinValue( 1 );
SpinUpdateTime->setValue( 5 );
GroupBox7Layout->addWidget( SpinUpdateTime );
SliderUpdateTime = new QSlider( GroupBox7, "SliderUpdateTime" );
SliderUpdateTime->setMaxValue( 60 );
SliderUpdateTime->setValue( 5 );
SliderUpdateTime->setOrientation( QSlider::Horizontal );
SliderUpdateTime->setTickmarks( QSlider::Right );
SliderUpdateTime->setTickInterval( 1 );
GroupBox7Layout->addWidget( SliderUpdateTime );
tabLayout_2->addWidget( GroupBox7 );
Spacer18 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
tabLayout_2->addItem( Spacer18 );
TabWidget->insertTab( tab_2, QString("") );
SystemCfgDesignLayout->addWidget( TabWidget, 0, 0 );
languageChange();
resize( QSize(334, 240).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
connect( SliderUpdateTime, SIGNAL( valueChanged(int) ), SpinUpdateTime, SLOT( setValue(int) ) );
connect( SpinUpdateTime, SIGNAL( valueChanged(int) ), SliderUpdateTime, SLOT( setValue(int) ) );
}
/*
* Destroys the object and frees any allocated resources
*/
SystemCfgDesign::~SystemCfgDesign()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void SystemCfgDesign::languageChange()
{
setCaption( tr2i18n( "SystemCfgDesign" ) );
GroupBox13->setTitle( QString::null );
checkShow->setText( tr2i18n( "Visible" ) );
boxPanelPalette->setTitle( tr2i18n( "Colors" ) );
TabWidget->changeTab( tab, tr2i18n( "System Panels" ) );
GroupBox7->setTitle( tr2i18n( "Update interval" ) );
SpinUpdateTime->setSuffix( tr2i18n( "s" ) );
TabWidget->changeTab( tab_2, tr2i18n( "Preferences" ) );
}
#include "systemcfgdesign.moc"

@ -0,0 +1,64 @@
/****************************************************************************
** Form interface generated from reading ui file './systemcfgdesign.ui'
**
** Created: mer aoû 18 23:39:01 2004
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef SYSTEMCFGDESIGN_H
#define SYSTEMCFGDESIGN_H
#include <qvariant.h>
#include <qwidget.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 SystemCfgDesign : public QWidget
{
Q_OBJECT
public:
SystemCfgDesign( QWidget* 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;
protected:
QGridLayout* SystemCfgDesignLayout;
QHBoxLayout* tabLayout;
QVBoxLayout* framePanelCfgLayout;
QSpacerItem* Spacer4_2;
QGridLayout* GroupBox13Layout;
QVBoxLayout* tabLayout_2;
QSpacerItem* Spacer18;
QHBoxLayout* GroupBox7Layout;
protected slots:
virtual void languageChange();
};
#endif // SYSTEMCFGDESIGN_H

@ -0,0 +1,316 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>SystemCfgDesign</class>
<widget class="QWidget">
<property name="name">
<cstring>SystemCfgDesign</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>334</width>
<height>240</height>
</rect>
</property>
<property name="caption">
<string>SystemCfgDesign</string>
</property>
<property name="layoutMargin" stdset="0">
</property>
<property name="layoutSpacing" stdset="0">
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>8</number>
</property>
<property name="spacing">
<number>4</number>
</property>
<widget class="QTabWidget" row="0" column="0">
<property name="name">
<cstring>TabWidget</cstring>
</property>
<property name="layoutMargin" stdset="0">
</property>
<property name="layoutSpacing" stdset="0">
</property>
<widget class="QWidget">
<property name="name">
<cstring>tab</cstring>
</property>
<attribute name="title">
<string>System Panels</string>
</attribute>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>8</number>
</property>
<property name="spacing">
<number>8</number>
</property>
<widget class="QListBox">
<property name="name">
<cstring>listSensors</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>160</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>160</width>
<height>32767</height>
</size>
</property>
<property name="frameShape">
<enum>StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>Sunken</enum>
</property>
<property name="lineWidth">
<number>2</number>
</property>
<property name="columnMode">
<enum>FixedNumber</enum>
</property>
</widget>
<widget class="QFrame">
<property name="name">
<cstring>framePanelCfg</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="frameShape">
<enum>NoFrame</enum>
</property>
<property name="frameShadow">
<enum>Raised</enum>
</property>
<property name="layoutMargin" stdset="0">
</property>
<property name="layoutSpacing" stdset="0">
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>4</number>
</property>
<widget class="QGroupBox">
<property name="name">
<cstring>GroupBox13</cstring>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>32767</width>
<height>50</height>
</size>
</property>
<property name="title">
<string></string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QCheckBox" row="0" column="0">
<property name="name">
<cstring>checkShow</cstring>
</property>
<property name="cursor">
<cursor>0</cursor>
</property>
<property name="text">
<string>Visible</string>
</property>
<property name="toolTip" stdset="0">
</property>
</widget>
</grid>
</widget>
<widget class="QGroupBox">
<property name="name">
<cstring>boxPanelPalette</cstring>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>90</height>
</size>
</property>
<property name="title">
<string>Colors</string>
</property>
</widget>
<spacer>
<property name="name">
<cstring>Spacer4_2</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</vbox>
</widget>
</hbox>
</widget>
<widget class="QWidget">
<property name="name">
<cstring>tab</cstring>
</property>
<attribute name="title">
<string>Preferences</string>
</attribute>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>11</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="QGroupBox">
<property name="name">
<cstring>GroupBox7</cstring>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="title">
<string>Update interval</string>
</property>
<property name="layoutMargin" stdset="0">
</property>
<property name="layoutSpacing" stdset="0">
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>12</number>
</property>
<property name="spacing">
<number>12</number>
</property>
<widget class="QSpinBox">
<property name="name">
<cstring>SpinUpdateTime</cstring>
</property>
<property name="suffix">
<string>s</string>
</property>
<property name="minValue">
<number>1</number>
</property>
<property name="value">
<number>5</number>
</property>
</widget>
<widget class="QSlider">
<property name="name">
<cstring>SliderUpdateTime</cstring>
</property>
<property name="maxValue">
<number>60</number>
</property>
<property name="value">
<number>5</number>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="tickmarks">
<enum>Right</enum>
</property>
<property name="tickInterval">
<number>1</number>
</property>
</widget>
</hbox>
</widget>
<spacer>
<property name="name">
<cstring>Spacer18</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</vbox>
</widget>
</widget>
</grid>
</widget>
<connections>
<connection>
<sender>SliderUpdateTime</sender>
<signal>valueChanged(int)</signal>
<receiver>SpinUpdateTime</receiver>
<slot>setValue(int)</slot>
</connection>
<connection>
<sender>SpinUpdateTime</sender>
<signal>valueChanged(int)</signal>
<receiver>SliderUpdateTime</receiver>
<slot>setValue(int)</slot>
</connection>
</connections>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,75 @@
/***************************************************************************
cpudisplay.cpp - description
-------------------
begin : Sun Nov 25 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "uptimepanel.h"
#include "procinfo.h"
#include "qlcddraw.h"
#include <qcolor.h>
#include <qpainter.h>
UpTimePanel::UpTimePanel(QWidget *parent, const char *name) : Panel(parent,name)
{
lcd= new QLCDString(this);
lcd->setGeometry(6,25,52,15);
lcd->setShadow(true);
lcd->setForeColor(red);
lcd->setShadowColor(darkRed);
lcd->installEventFilter(this);
updateInfo();
}
UpTimePanel::~UpTimePanel()
{
}
void UpTimePanel::updateInfo()
{
int uptime= getUpTime();
int hours = uptime/ (60*60);
int minutes= (uptime % (60*60)) / 60;
QString str;
str.sprintf("%02d:%02d",hours,minutes);
lcd->display(str);
update();
}
void UpTimePanel::drawContents(QPainter *p)
{
int w= width();
int h= height();
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());
}
void UpTimePanel::resizeEvent ( QResizeEvent *e )
{
int w= width();
int h= height();
int mw= w/10;
lcd->setGeometry(mw,h/3,w-mw*2,(h*2)/5);
}

@ -0,0 +1,47 @@
/***************************************************************************
cpudisplay.h - description
-------------------
begin : Sun Nov 25 2001
copyright : (C) 2001 by Miguel Novas
email : michaell@teleline.es
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef UPTIMEPANEL_H
#define UPTIMEPANEL_H
#include "panel.h"
#include "qlcdstring.h"
#include <qstring.h>
/**
*@author Miguel Novas
*/
class UpTimePanel : public Panel {
Q_OBJECT
public:
UpTimePanel(QWidget *parent=0, const char *name=0);
~UpTimePanel();
protected:
void updateInfo();
void drawContents ( QPainter *p );
private:
QLCDString *lcd;
void resizeEvent ( QResizeEvent *e );
};
#endif

@ -0,0 +1,3 @@
doc
po
src
Loading…
Cancel
Save