Release 0.6.1

This commit is contained in:
Matthias Toussaint 2014-04-12 09:56:41 +01:00 committed by Joel Holdsworth
parent 533b79184b
commit 90487bc4bc
103 changed files with 2788 additions and 7270 deletions

View File

@ -1,3 +1,5 @@
24/11/2001 Chromified display
Shows lines at triggers in graph
27/10/2001 Added Metex M-3660D
Added some online help chrome
05/09/2001 Can start external commands at reached thresholds now

View File

@ -1,14 +1,14 @@
/.cvsignore/1.1/Tue Sep 4 14:41:46 2001//Tv0_5_1
/AUTHORS/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/CHANGELOG/1.3/Sat Oct 27 16:25:25 2001//Tv0_5_1
/COPYING/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/INSTALL/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/README/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/configure/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/qtdmm-0.5.spec/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/qtdmm-16x16.xpm/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/qtdmm-32x32.xpm/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/qtdmm-48x48.xpm/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/qtdmm.pro/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/.cvsignore/1.1/Tue Sep 4 14:41:46 2001//
/AUTHORS/1.1/Tue Sep 4 14:38:13 2001//
/CHANGELOG/1.4/Sat Nov 24 17:10:42 2001//
/COPYING/1.1/Tue Sep 4 14:38:13 2001//
/INSTALL/1.2/Sat Nov 24 17:09:34 2001//
/QtDMM.pro/1.1/Sat Nov 24 17:27:48 2001//
/README/1.1/Tue Sep 4 14:38:13 2001//
/configure/1.4/Sat Nov 24 17:23:24 2001//
/qtdmm-0.5.spec/1.1/Tue Sep 4 14:38:13 2001//
/qtdmm-16x16.xpm/1.1/Tue Sep 4 14:38:13 2001//
/qtdmm-32x32.xpm/1.1/Tue Sep 4 14:38:13 2001//
/qtdmm-48x48.xpm/1.1/Tue Sep 4 14:38:13 2001//
D/bin////
D/src////

View File

@ -1 +0,0 @@
Tv0_5_1

View File

@ -13,15 +13,12 @@ Make shure QTDIR is set correctly and tmake, moc and eventually uic are installe
- untar the tarball you've downloaded
- enter the qtdmm directory
- type ./configure [--help|--no-uic]
- type ./configure [--help]
- type make
That's it. You should have the executable qtdmm now.
If you encounter any problems don't hesitate to contact me <qtdmm@mtoussaint.de>
The build process has been tested until now only with Linux and Qt 2.2.0. It would be
nice to hear if QtDMM compiles and works with different system configurations.
-- Matthias Toussaint

View File

@ -1 +0,0 @@
Tv0_5_1

24
configure vendored
View File

@ -21,20 +21,14 @@ fi
if [ ! -f "$QTDIR/bin/uic" ]
then
echo " uic seems not to be installed (part of Qt-Designer package)"
echo " going to create Makefiles without uic support"
HAS_UIC=no
fi
for ac_option
do
case "$ac_option" in
--no-uic)
HAS_UIC=no
;;
--help)
echo "Usage: ./configure [--help|--no-uic]"
echo "Usage: ./configure [--help]"
echo " --help: Print this message"
echo " --no-uic: Create Makefile without uic usage"
exit 0
;;
esac
@ -44,19 +38,11 @@ echo "Creating Makefiles..."
cd src
if [ x"$HAS_UIC" = xno ]
then
echo "Creating regular Makefile without uic"
cp qtdmm_nouic.pro src.pro
cp ui_cpp/* .
else
echo "Creating regular Makefile"
cp qtdmm.pro src.pro
fi
echo "Creating regular Makefile"
cd ..
$TMAKEPATH/../../bin/tmake -o Makefile qtdmm.pro
$TMAKEPATH/../../bin/tmake -o Makefile QtDMM.pro
echo "Testing libraries & tools ..."
@ -72,7 +58,7 @@ fi
echo "#include <qglobal.h>" > qttest.cpp
echo "#include <stdio.h>" >> qttest.cpp
echo "int main(int argc, char **argv) { fprintf( stderr, \"Found QT Version %s: \", QT_VERSION_STR );" >> qttest.cpp
echo "if (QT_VERSION >= 210) return 0; else return -1; }" >> qttest.cpp
echo "if (QT_VERSION >= 210 && QT_VERSION < 300) return 0; else return -1; }" >> qttest.cpp
gcc -I$QTDIR/include qttest.cpp
if ./a.out
then
@ -80,7 +66,7 @@ echo "OK"
rm qttest.cpp 2>/dev/null
rm a.out 2>/dev/null
else
echo "Please upgrade your Qt installation"
echo "QtDMM needs Qt 2.x"
rm qttest.cpp 2>/dev/null
rm a.out 2>/dev/null
exit -1

View File

@ -1,10 +1,10 @@
Summary: Digital multimeter readout software.
Name: QtDMM
Version: 0.5.1
Release: 2
Version: 0.5
Release: 1
Copyright: GPL
Group: Applications/Engineering
Source: http://www.mtoussaint.de/qtdmm-0.5.1.tgz
Source: http://www.mtoussaint.de/qtdmm-0.5.tgz
URL: http://www.mtoussaint.de/qtdmm.html
Packager: Radek Liboska <liboska@uochb.cas.cz>
Buildroot: /tmp/%{name}-root

View File

@ -1,48 +1,35 @@
/.cvsignore/1.1/Tue Sep 4 14:41:46 2001//Tv0_5_1
/clear.xpm/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/colorbutton.cpp/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/colorbutton.h/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/conf.xpm/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/config.xpm/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/configdlg.cpp/1.6/Sat Oct 27 16:25:25 2001//Tv0_5_1
/configdlg.h/1.3/Sat Oct 27 16:25:25 2001//Tv0_5_1
/connect_off.xpm/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/connect_on.xpm/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/dmm.cpp/1.2/Wed Sep 5 09:56:49 2001//Tv0_5_1
/dmm.h/1.2/Wed Sep 5 09:56:49 2001//Tv0_5_1
/dmmbar.cpp/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/dmmbar.h/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/dmmgraph.cpp/1.4/Sat Oct 27 16:25:25 2001//Tv0_5_1
/dmmgraph.h/1.4/Sat Oct 27 16:25:25 2001//Tv0_5_1
/export.xpm/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/help.xpm/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/icon.xpm/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/import.xpm/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/main.cpp/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/mainwid.cpp/1.3/Wed Sep 5 09:56:49 2001//Tv0_5_1
/mainwid.h/1.2/Tue Sep 4 22:01:27 2001//Tv0_5_1
/mainwin.cpp/1.3/Wed Sep 5 09:56:32 2001//Tv0_5_1
/mainwin.h/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/print.xpm/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/printdlg.cpp/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/printdlg.h/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/qcleanuphandler.h/1.1/Wed Sep 5 09:19:54 2001//Tv0_5_1
/qprocess.cpp/1.1/Wed Sep 5 09:19:54 2001//Tv0_5_1
/qprocess.h/1.1/Wed Sep 5 09:19:54 2001//Tv0_5_1
/qprocess_unix.cpp/1.1/Wed Sep 5 09:19:54 2001//Tv0_5_1
/qprocess_unix.h/1.1/Wed Sep 5 09:19:54 2001//Tv0_5_1
/qtdmm.pro/1.2/Wed Sep 5 10:01:14 2001//Tv0_5_1
/qtdmm_nouic.pro/1.2/Wed Sep 5 10:01:14 2001//Tv0_5_1
/quit.xpm/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/readerthread.cpp/1.2/Wed Sep 5 09:56:49 2001//Tv0_5_1
/readerthread.h/1.2/Wed Sep 5 09:56:49 2001//Tv0_5_1
/readevent.h/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/reset.xpm/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/simplecfg.cpp/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/simplecfg.h/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/start.xpm/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/stop.xpm/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/uiconfigdlg.ui/1.5/Sat Oct 27 16:25:25 2001//Tv0_5_1
/uimainwid.ui/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
/uiprintdlg.ui/1.1/Tue Sep 4 14:38:13 2001//Tv0_5_1
D
/.cvsignore/1.1/Tue Sep 4 14:41:46 2001//
/colorbutton.cpp/1.1/Tue Sep 4 14:38:13 2001//
/colorbutton.h/1.1/Tue Sep 4 14:38:13 2001//
/configdlg.cpp/1.8/Sat Nov 24 17:00:14 2001//
/configdlg.h/1.4/Sat Nov 17 20:00:12 2001//
/displaywid.cpp/1.4/Sun Nov 25 13:00:01 2001//
/displaywid.h/1.3/Sun Nov 25 13:00:01 2001//
/dmm.cpp/1.3/Sat Nov 24 16:54:35 2001//
/dmm.h/1.3/Sat Nov 24 16:55:03 2001//
/dmmbar.cpp/1.1/Tue Sep 4 14:38:13 2001//
/dmmbar.h/1.1/Tue Sep 4 14:38:13 2001//
/dmmgraph.cpp/1.7/Sat Nov 24 17:24:43 2001//
/dmmgraph.h/1.5/Sat Nov 17 20:00:30 2001//
/main.cpp/1.1/Tue Sep 4 14:38:13 2001//
/mainwid.cpp/1.6/Sat Nov 24 18:38:33 2001//
/mainwid.h/1.2/Tue Sep 4 22:01:27 2001//
/mainwin.cpp/1.7/Sun Nov 25 14:20:09 2001//
/mainwin.h/1.1/Tue Sep 4 14:38:13 2001//
/printdlg.cpp/1.1/Tue Sep 4 14:38:13 2001//
/printdlg.h/1.1/Tue Sep 4 14:38:13 2001//
/qcleanuphandler.h/1.1/Wed Sep 5 09:19:54 2001//
/qprocess.cpp/1.1/Wed Sep 5 09:19:54 2001//
/qprocess.h/1.1/Wed Sep 5 09:19:54 2001//
/qprocess_unix.cpp/1.1/Wed Sep 5 09:19:54 2001//
/qprocess_unix.h/1.1/Wed Sep 5 09:19:54 2001//
/readerthread.cpp/1.3/Sat Nov 24 16:58:17 2001//
/readerthread.h/1.3/Sat Nov 24 16:58:17 2001//
/readevent.h/1.2/Sat Nov 24 16:58:17 2001//
/simplecfg.cpp/1.1/Tue Sep 4 14:38:13 2001//
/simplecfg.h/1.1/Tue Sep 4 14:38:13 2001//
/src.pro/1.2/Sun Nov 25 14:20:38 2001//
/uiconfigdlg.ui/1.7/Sun Nov 25 14:20:19 2001//
/uimainwid.ui/1.3/Sun Nov 25 14:20:19 2001//
/uiprintdlg.ui/1.1/Tue Sep 4 14:38:13 2001//
D/xpm////

View File

@ -1 +0,0 @@
Nv0_5_1

View File

@ -1,287 +0,0 @@
#############################################################################
# Makefile for building ../bin/qtdmm
# Generated by tmake at 20:06, 2001/04/15
# Project: src
# Template: app
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
CFLAGS = -pipe -Wall -W -O2 -D_REENTRANT -DQT_THREAD_SUPPORT -DNO_DEBUG
CXXFLAGS= -pipe -Wall -W -O2 -D_REENTRANT -DQT_THREAD_SUPPORT -DNO_DEBUG
INCPATH = -I. -Imoc -I$(QTDIR)/include
LINK = g++
LFLAGS =
LIBS = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -lpthread -lqt-mt -lXext -lX11 -lm
MOC = $(QTDIR)/bin/moc
UIC = $(QTDIR)/bin/uic
TAR = tar -cf
GZIP = gzip -9f
####### Files
HEADERS = configdlg.h \
dmm.h \
dmmbar.h \
dmmgraph.h \
mainwid.h \
simplecfg.h \
printdlg.h \
readerthread.h \
readevent.h \
uiconfigdlg.h \
uimainwid.h \
uiprintdlg.h
SOURCES = main.cpp \
configdlg.cpp \
dmm.cpp \
dmmbar.cpp \
dmmgraph.cpp \
mainwid.cpp \
simplecfg.cpp \
printdlg.cpp \
readerthread.cpp \
uiconfigdlg.cpp \
uimainwid.cpp \
uiprintdlg.cpp
OBJECTS = tmp/main.o \
tmp/configdlg.o \
tmp/dmm.o \
tmp/dmmbar.o \
tmp/dmmgraph.o \
tmp/mainwid.o \
tmp/simplecfg.o \
tmp/printdlg.o \
tmp/readerthread.o \
tmp/uiconfigdlg.o \
tmp/uimainwid.o \
tmp/uiprintdlg.o
INTERFACES =
UICDECLS =
UICIMPLS =
SRCMOC = moc/moc_configdlg.cpp \
moc/moc_dmm.cpp \
moc/moc_dmmbar.cpp \
moc/moc_dmmgraph.cpp \
moc/moc_mainwid.cpp \
moc/moc_printdlg.cpp \
moc/moc_uiconfigdlg.cpp \
moc/moc_uimainwid.cpp \
moc/moc_uiprintdlg.cpp
OBJMOC = tmp/moc_configdlg.o \
tmp/moc_dmm.o \
tmp/moc_dmmbar.o \
tmp/moc_dmmgraph.o \
tmp/moc_mainwid.o \
tmp/moc_printdlg.o \
tmp/moc_uiconfigdlg.o \
tmp/moc_uimainwid.o \
tmp/moc_uiprintdlg.o
DIST =
TARGET = ../bin/qtdmm
INTERFACE_DECL_PATH = .
####### Implicit rules
.SUFFIXES: .cpp .cxx .cc .C .c
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: $(TARGET)
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
moc: $(SRCMOC)
tmake: Makefile
Makefile: src.pro
tmake src.pro -o Makefile
dist:
$(TAR) src.tar src.pro $(SOURCES) $(HEADERS) $(INTERFACES) $(DIST)
$(GZIP) src.tar
clean:
-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET)
-rm -f *~ core
####### Sub-libraries
###### Combined headers
####### Compile
tmp/main.o: main.cpp \
mainwid.h \
uimainwid.h \
dmm.h \
readerthread.h \
configdlg.h \
uiconfigdlg.h \
simplecfg.h \
dmmgraph.h \
printdlg.h \
uiprintdlg.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/main.o main.cpp
tmp/configdlg.o: configdlg.cpp \
configdlg.h \
uiconfigdlg.h \
simplecfg.h \
dmmgraph.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/configdlg.o configdlg.cpp
tmp/dmm.o: dmm.cpp \
dmm.h \
readerthread.h \
readevent.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/dmm.o dmm.cpp
tmp/dmmbar.o: dmmbar.cpp \
dmmbar.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/dmmbar.o dmmbar.cpp
tmp/dmmgraph.o: dmmgraph.cpp \
dmmgraph.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/dmmgraph.o dmmgraph.cpp
tmp/mainwid.o: mainwid.cpp \
mainwid.h \
uimainwid.h \
dmm.h \
readerthread.h \
configdlg.h \
uiconfigdlg.h \
simplecfg.h \
dmmgraph.h \
printdlg.h \
uiprintdlg.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/mainwid.o mainwid.cpp
tmp/simplecfg.o: simplecfg.cpp \
simplecfg.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/simplecfg.o simplecfg.cpp
tmp/printdlg.o: printdlg.cpp \
printdlg.h \
uiprintdlg.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/printdlg.o printdlg.cpp
tmp/readerthread.o: readerthread.cpp \
readerthread.h \
readevent.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/readerthread.o readerthread.cpp
tmp/uiconfigdlg.o: uiconfigdlg.cpp \
uiconfigdlg.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/uiconfigdlg.o uiconfigdlg.cpp
tmp/uimainwid.o: uimainwid.cpp \
uimainwid.h \
dmmgraph.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/uimainwid.o uimainwid.cpp
tmp/uiprintdlg.o: uiprintdlg.cpp \
uiprintdlg.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/uiprintdlg.o uiprintdlg.cpp
tmp/moc_configdlg.o: moc/moc_configdlg.cpp \
configdlg.h \
uiconfigdlg.h \
simplecfg.h \
dmmgraph.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_configdlg.o moc/moc_configdlg.cpp
tmp/moc_dmm.o: moc/moc_dmm.cpp \
dmm.h \
readerthread.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_dmm.o moc/moc_dmm.cpp
tmp/moc_dmmbar.o: moc/moc_dmmbar.cpp \
dmmbar.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_dmmbar.o moc/moc_dmmbar.cpp
tmp/moc_dmmgraph.o: moc/moc_dmmgraph.cpp \
dmmgraph.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_dmmgraph.o moc/moc_dmmgraph.cpp
tmp/moc_mainwid.o: moc/moc_mainwid.cpp \
mainwid.h \
uimainwid.h \
dmm.h \
readerthread.h \
configdlg.h \
uiconfigdlg.h \
simplecfg.h \
dmmgraph.h \
printdlg.h \
uiprintdlg.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_mainwid.o moc/moc_mainwid.cpp
tmp/moc_printdlg.o: moc/moc_printdlg.cpp \
printdlg.h \
uiprintdlg.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_printdlg.o moc/moc_printdlg.cpp
tmp/moc_uiconfigdlg.o: moc/moc_uiconfigdlg.cpp \
uiconfigdlg.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_uiconfigdlg.o moc/moc_uiconfigdlg.cpp
tmp/moc_uimainwid.o: moc/moc_uimainwid.cpp \
uimainwid.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_uimainwid.o moc/moc_uimainwid.cpp
tmp/moc_uiprintdlg.o: moc/moc_uiprintdlg.cpp \
uiprintdlg.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_uiprintdlg.o moc/moc_uiprintdlg.cpp
moc/moc_configdlg.cpp: configdlg.h
$(MOC) configdlg.h -o moc/moc_configdlg.cpp
moc/moc_dmm.cpp: dmm.h
$(MOC) dmm.h -o moc/moc_dmm.cpp
moc/moc_dmmbar.cpp: dmmbar.h
$(MOC) dmmbar.h -o moc/moc_dmmbar.cpp
moc/moc_dmmgraph.cpp: dmmgraph.h
$(MOC) dmmgraph.h -o moc/moc_dmmgraph.cpp
moc/moc_mainwid.cpp: mainwid.h
$(MOC) mainwid.h -o moc/moc_mainwid.cpp
moc/moc_printdlg.cpp: printdlg.h
$(MOC) printdlg.h -o moc/moc_printdlg.cpp
moc/moc_uiconfigdlg.cpp: uiconfigdlg.h
$(MOC) uiconfigdlg.h -o moc/moc_uiconfigdlg.cpp
moc/moc_uimainwid.cpp: uimainwid.h
$(MOC) uimainwid.h -o moc/moc_uimainwid.cpp
moc/moc_uiprintdlg.cpp: uiprintdlg.h
$(MOC) uiprintdlg.h -o moc/moc_uiprintdlg.cpp

View File

@ -35,10 +35,11 @@
#include <qprinter.h>
#include <qfiledialog.h>
#include <qtabwidget.h>
#include <qvalidator.h>
#include <iostream.h>
#include <icon.xpm>
#include <xpm/icon.xpm>
#define MINUTE_SECS 60
#define HOUR_SECS 60*60
@ -48,21 +49,31 @@
// be replaced by a file
struct DMMInfo dmm_info[] = {
{"Metex M-3660D", 1, 0, 7, 2, 0},
{"Metex M-3850D/3830D", 1, 0, 7, 2, 3},
{"Metex M-3830D", 1, 0, 7, 2, 3},
{"Metex M-3850D", 1, 0, 7, 2, 3},
{"Metex ME-11", 0, 0, 7, 2, 0},
{"Metex ME-32", 0, 0, 7, 2, 0},
{"Metex universal system 9160", 1, 0, 7, 2, 3},
{"Metex/Voltcraft ME-11", 0, 0, 7, 2, 0},
{"Metex/Voltcraft ME-32", 0, 0, 7, 2, 0},
{"PeakTech-4010", 5, 0, 7, 2, 0},
{"PeakTech-451", 0, 1, 7, 2, 0},
{"Radioshack 22-805 DMM", 0, 0, 7, 2, 0},
{"Voltcraft M-4660", 1, 0, 7, 2, 3},
{"Voltcraft ME-11", 0, 0, 7, 2, 0},
{"Voltcraft ME-22T", 3, 0, 7, 2, 0},
{"Voltcraft ME-32", 0, 0, 7, 2, 0},
{"",0,0,0,0,0}
};
ConfigDlg::ConfigDlg( QWidget *parent, const char *name ) :
UIConfigDlg( parent, name, false )
{
QDoubleValidator *validator = new QDoubleValidator( this );
raisingThresholdEdit->setValidator( validator );
fallingThresholdEdit->setValidator( validator );
ui_execRaisingThreshold->setValidator( validator );
ui_execFallingThreshold->setValidator( validator );
QString path = QDir::homeDirPath();
path += "/.qtdmmrc";
@ -185,6 +196,7 @@ ConfigDlg::ConfigDlg( QWidget *parent, const char *name ) :
ui_description->setBackgroundColor( colorGroup().light() );
ui_pixmap->setBackgroundColor( colorGroup().light() );
ui_spacer->setBackgroundColor( colorGroup().light() );
}
ConfigDlg::~ConfigDlg()
@ -260,7 +272,10 @@ ConfigDlg::applySLOT()
m_cfg->setRGB( "Graph", "grid", ui_gridColor->color().rgb() );
m_cfg->setRGB( "Graph", "data", ui_dataColor->color().rgb() );
m_cfg->setRGB( "Graph", "cursor", ui_cursorColor->color().rgb() );
m_cfg->setRGB( "Graph", "start-trigger", ui_startColor->color().rgb() );
m_cfg->setRGB( "Graph", "external-trigger", ui_extColor->color().rgb() );
m_cfg->setInt( "Graph", "line-width", ui_lineWidth->value() );
m_cfg->setBool( "Graph", "crosshair-cursor", ui_crosshair->isChecked() );
m_cfg->setRGB( "Graph", "display-background", ui_bgColorDisplay->color().rgb() );
m_cfg->setRGB( "Graph", "display-text", ui_textColor->color().rgb() );
@ -475,6 +490,8 @@ ConfigDlg::preferencesDefaultSLOT()
ui_gridColor->setColor( QColor( m_cfg->getRGB( "Graph", "grid", Qt::gray.rgb() )));
ui_dataColor->setColor( QColor( m_cfg->getRGB( "Graph", "data", Qt::blue.rgb() )));
ui_cursorColor->setColor( QColor( m_cfg->getRGB( "Graph", "cursor", Qt::black.rgb() )));
ui_startColor->setColor( QColor( m_cfg->getRGB( "Graph", "start-trigger", Qt::magenta.rgb() )));
ui_extColor->setColor( QColor( m_cfg->getRGB( "Graph", "external-trigger", Qt::cyan.rgb() )));
ui_bgColorDisplay->setColor( QColor( m_cfg->getRGB( "Graph", "display-background", QColor( 212,220,207 ).rgb() )));
ui_textColor->setColor( QColor( m_cfg->getRGB( "Graph", "display-text", Qt::black.rgb() )));
@ -483,6 +500,7 @@ ConfigDlg::preferencesDefaultSLOT()
ui_alertUnsavedData->setChecked( m_cfg->getBool( "Alert", "unsaved-file", true ));
ui_textLabel->setChecked( m_cfg->getBool( "Icons", "text-label", true ));
ui_crosshair->setChecked( m_cfg->getBool( "Graph", "crosshair-cursor", true ));
}
void
@ -725,12 +743,7 @@ ConfigDlg::automaticScale() const
ReadEvent::DataFormat
ConfigDlg::format() const
{
if (1 == protocolCombo->currentItem())
{
return ReadEvent::PeakTech10;
}
return ReadEvent::Metex14;
return (ReadEvent::DataFormat)protocolCombo->currentItem();
}
int
@ -805,6 +818,18 @@ ConfigDlg::dataColor() const
return ui_dataColor->color();
}
QColor
ConfigDlg::startColor() const
{
return ui_startColor->color();
}
QColor
ConfigDlg::externalColor() const
{
return ui_extColor->color();
}
QColor
ConfigDlg::cursorColor() const
{
@ -841,6 +866,12 @@ ConfigDlg::startExternal() const
return ui_executeCommand->isChecked();
}
bool
ConfigDlg::crosshair() const
{
return ui_crosshair->isChecked();
}
bool
ConfigDlg::disconnectExternal() const
{
@ -930,5 +961,11 @@ ConfigDlg::descriptionSLOT( QWidget * )
ui_description->setText( tr("Here you can configure if an external"
" command is to be started and when." ));
break;
case 5:
ui_description->setText( tr("I would like to thank these people for "
"providing bug reports, patches and suggestions"
" that helped improve QtDMM." ));
break;
}
}

View File

@ -69,6 +69,8 @@ public:
QColor cursorColor() const;
QColor displayBgColor() const;
QColor displayTextColor() const;
QColor startColor() const;
QColor externalColor() const;
int lineWidth() const;
void writePrinter( QPrinter * );
void readPrinter( QPrinter * );
@ -82,6 +84,7 @@ public:
double externalThreshold() const;
QString externalCommand() const;
bool disconnectExternal() const;
bool crosshair() const;
public slots:
void connectSLOT( bool );

463
src/displaywid.cpp Normal file
View File

@ -0,0 +1,463 @@
//======================================================================
// File: displaywid.cpp
// Author: Matthias Toussaint
// Created: Fri Nov 23 22:34:30 CET 2001
//----------------------------------------------------------------------
// Permission to use, copy, modify, and distribute this software and its
// documentation for any purpose and without fee is hereby granted,
// provided that below copyright notice appear in all copies and that
// both that copyright notice and this permission notice appear in
// supporting documentation.
//
// This file is provided AS IS with no warranties of any kind. The
// author shall have no liability with respect to the infringement of
// copyrights, trade secrets or any patents by this file or any part
// thereof. In no event will the author be liable for any lost revenue
// or profits or other special, indirect and consequential damages.
//----------------------------------------------------------------------
// (c) 2001 Matthias Toussaint
//======================================================================
#include <displaywid.h>
#include <qpixmap.h>
#include <qbitmap.h>
#include <qimage.h>
#include <qpainter.h>
// less than elegant use of single pixmaps for everything.
// But hey, it works!
//
#include <xpm/numbers.xpm>
#include <xpm/decimal.xpm>
#include <xpm/minus.xpm>
#include <xpm/l.xpm>
#include <xpm/G.xpm>
#include <xpm/M.xpm>
#include <xpm/k.xpm>
#include <xpm/m.xpm>
#include <xpm/u.xpm>
#include <xpm/n.xpm>
#include <xpm/p.xpm>
#include <xpm/Hz.xpm>
#include <xpm/F.xpm>
#include <xpm/V.xpm>
#include <xpm/A.xpm>
#include <xpm/Ohm.xpm>
#include <xpm/deg.xpm>
#include <xpm/numbers_small.xpm>
#include <xpm/decimal_small.xpm>
#include <xpm/minus_small.xpm>
#include <xpm/l_small.xpm>
#include <xpm/G_small.xpm>
#include <xpm/M_small.xpm>
#include <xpm/k_small.xpm>
#include <xpm/m_small.xpm>
#include <xpm/u_small.xpm>
#include <xpm/n_small.xpm>
#include <xpm/p_small.xpm>
#include <xpm/Hz_small.xpm>
#include <xpm/F_small.xpm>
#include <xpm/V_small.xpm>
#include <xpm/A_small.xpm>
#include <xpm/Ohm_small.xpm>
#include <xpm/deg_small.xpm>
#include <xpm/min_str.xpm>
#include <xpm/max_str.xpm>
#include <xpm/diode.xpm>
#include <xpm/ac.xpm>
#include <xpm/dc.xpm>
DisplayWid::DisplayWid( QWidget *parent, const char *name ) :
QWidget( parent, name )
{
// HACK: My GIMP doesn't save XBM !!!!
//
m_bigDigit = createBitmap((const char **)numbers_xpm);
m_bigDecimal = createBitmap((const char **)decimal_xpm);
m_bigMinus = createBitmap((const char **)minus_xpm);
m_bigL = createBitmap((const char **)l_xpm);
m_bigG = createBitmap((const char **)G_xpm);
m_bigM = createBitmap((const char **)M_xpm);
m_bigk = createBitmap((const char **)k_xpm);
m_bigm = createBitmap((const char **)m_xpm);
m_bigu = createBitmap((const char **)u_xpm);
m_bign = createBitmap((const char **)n_xpm);
m_bigp = createBitmap((const char **)p_xpm);
m_bigHz = createBitmap((const char **)Hz_xpm);
m_bigF = createBitmap((const char **)F_xpm);
m_bigV = createBitmap((const char **)V_xpm);
m_bigA = createBitmap((const char **)A_xpm);
m_bigOhm = createBitmap((const char **)Ohm_xpm);
m_bigDeg = createBitmap((const char **)deg_xpm);
m_smallDigit = createBitmap((const char **)numbers_small_xpm);
m_smallDecimal = createBitmap((const char **)decimal_small_xpm);
m_smallMinus = createBitmap((const char **)minus_small_xpm);
m_smallL = createBitmap((const char **)l_small_xpm);
m_smallG = createBitmap((const char **)G_small_xpm);
m_smallM = createBitmap((const char **)M_small_xpm);
m_smallk = createBitmap((const char **)k_small_xpm);
m_smallm = createBitmap((const char **)m_small_xpm);
m_smallu = createBitmap((const char **)u_small_xpm);
m_smalln = createBitmap((const char **)n_small_xpm);
m_smallp = createBitmap((const char **)p_small_xpm);
m_smallHz = createBitmap((const char **)Hz_small_xpm);
m_smallF = createBitmap((const char **)F_small_xpm);
m_smallV = createBitmap((const char **)V_small_xpm);
m_smallA = createBitmap((const char **)A_small_xpm);
m_smallOhm = createBitmap((const char **)Ohm_small_xpm);
m_smallDeg = createBitmap((const char **)deg_small_xpm);
m_minStr = createBitmap((const char **)min_str_xpm);
m_maxStr = createBitmap((const char **)max_str_xpm);
m_diode = createBitmap((const char **)diode_xpm);
m_ac = createBitmap((const char **)ac_xpm);
m_dc = createBitmap((const char **)dc_xpm);
setBackgroundMode( QWidget::NoBackground );
}
QBitmap *
DisplayWid::createBitmap( const char **data )
{
QBitmap *bm = new QBitmap;
*bm = QImage(data).convertDepth( 1, ThresholdDither );
bm->setMask( *bm );
return bm;
}
DisplayWid::~DisplayWid()
{
delete m_bigDigit;
delete m_smallDigit;
delete m_bigDecimal;
delete m_smallDecimal;
}
void
DisplayWid::setValue( const QString & value )
{
m_value = value;
}
void
DisplayWid::setMinValue( const QString & value )
{
m_minValue = value;
}
void
DisplayWid::setMaxValue( const QString & value )
{
m_maxValue = value;
}
void
DisplayWid::setUnit( const QString & value )
{
m_unit = value;
}
void
DisplayWid::setMinUnit( const QString & value )
{
m_minUnit = value;
}
void
DisplayWid::setMaxUnit( const QString & value )
{
m_maxUnit = value;
}
void
DisplayWid::setMode( const QString & value )
{
m_mode = value;
}
void
DisplayWid::paintEvent( QPaintEvent * )
{
QPixmap pix( width(), height() );
pix.fill( colorGroup().background() );
QPainter p;
if (!m_value.isEmpty())
{
p.begin(&pix);
p.setPen( colorGroup().foreground() );
p.translate( 3+12+12, 8 );
p.drawPixmap( -22, 2, *m_minStr );
drawSmallNumber( &p, m_minValue );
p.translate( 5*16+2, 12 );
drawSmallUnit( &p, m_minUnit );
p.translate( -5*16-2, 1+32-12 );
p.drawPixmap( -22, 2, *m_maxStr );
drawSmallNumber( &p, m_maxValue );
p.translate( 5*16+2, 12 );
drawSmallUnit( &p, m_maxUnit );
p.translate( 40, -38-12 );
drawBigNumber( &p, m_value );
p.translate( 5*43+2, 42 );
drawBigUnit( &p, m_unit );
if (m_mode == "DI")
{
p.drawPixmap( 0, -36, *m_diode );
}
else if (m_mode == "AC")
{
p.drawPixmap( 0, -36, *m_ac );
}
else if (m_mode == "DC")
{
p.drawPixmap( 0, -36, *m_dc );
}
p.end();
}
p.begin(this);
p.drawPixmap(0,0,pix);
p.end();
}
void
DisplayWid::drawSmallNumber( QPainter *p, const QString & num )
{
int x = 0;
int start = 0;
if (num[0] == ' ' || num[0] == '-')
{
if (num[0] == '-')
{
p->drawPixmap( 0, 9, *m_smallMinus );
}
x += 12;
start = 1;
}
for (unsigned i=1; i<num.length(); i++)
{
if (num[i] == '.')
{
p->drawPixmap( x-5, 0, *m_smallDecimal );
}
else if (num[i] == 'O')
{
p->drawPixmap( x, 0, *m_smallDigit, 0, 0, 12, 21 );
x += 18;
}
else if (num[i] == 'L')
{
p->drawPixmap( x, 0, *m_smallL );
x += 18;
}
else
{
int digit = num[i].latin1()-'0';
if (digit >= 0 && digit <= 9)
{
p->drawPixmap( x, 0, *m_smallDigit, 12*digit, 0, 12, 21 );
}
x += 18;
}
}
}
void
DisplayWid::drawBigUnit( QPainter *p, const QString & str )
{
int index = 0;
int x = 0;
if (str[0] == 'G')
{
p->drawPixmap( x, 0, *m_bigG );
x += m_bigG->width()+2;
index++;
}
else if (str[0] == 'M')
{
p->drawPixmap( x, 0, *m_bigM );
x += m_bigM->width()+2;
index++;
}
else if (str[0] == 'k')
{
p->drawPixmap( x, 0, *m_bigk );
x += m_bigk->width()+2;
index++;
}
else if (str[0] == 'm')
{
p->drawPixmap( x, 0, *m_bigm );
x += m_bigm->width()+2;
index++;
}
else if (str[0] == 'u')
{
p->drawPixmap( x, 3, *m_bigu );
x += m_bigu->width()+2;
index++;
}
else if (str[0] == 'n')
{
p->drawPixmap( x, 0, *m_bign );
x += m_bign->width()+2;
index++;
}
if (str.mid(index) == "Ohm")
{
p->drawPixmap( x, 0, *m_bigOhm );
}
else if (str.mid(index) == "C")
{
p->drawPixmap( x, 0, *m_bigDeg );
}
else if (str.mid(index) == "Hz")
{
p->drawPixmap( x, 0, *m_bigHz );
}
else if (str.mid(index) == "F")
{
p->drawPixmap( x, 0, *m_bigF );
}
else if (str.mid(index) == "A")
{
p->drawPixmap( x, 0, *m_bigA );
}
else if (str.mid(index) == "V")
{
p->drawPixmap( x, 0, *m_bigV );
}
}
void
DisplayWid::drawSmallUnit( QPainter *p, const QString & str )
{
int index = 0;
int x = 0;
if (str[0] == 'G')
{
p->drawPixmap( x, 0, *m_smallG );
x += m_smallG->width()+1;
index++;
}
else if (str[0] == 'M')
{
p->drawPixmap( x, 0, *m_smallM );
x += m_smallM->width()+1;
index++;
}
else if (str[0] == 'k')
{
p->drawPixmap( x, 0, *m_smallk );
x += m_smallk->width()+1;
index++;
}
else if (str[0] == 'm')
{
p->drawPixmap( x, 0, *m_smallm );
x += m_smallm->width()+1;
index++;
}
else if (str[0] == 'u')
{
p->drawPixmap( x, 3, *m_smallu );
x += m_smallu->width()+1;
index++;
}
else if (str[0] == 'n')
{
p->drawPixmap( x, 0, *m_smalln );
x += m_smalln->width()+1;
index++;
}
if (str.mid(index) == "Ohm")
{
p->drawPixmap( x, 0, *m_smallOhm );
}
else if (str.mid(index) == "C")
{
p->drawPixmap( x, 0, *m_smallDeg );
}
else if (str.mid(index) == "Hz")
{
p->drawPixmap( x, 0, *m_smallHz );
}
else if (str.mid(index) == "F")
{
p->drawPixmap( x, 0, *m_smallF );
}
else if (str.mid(index) == "A")
{
p->drawPixmap( x, 0, *m_smallA );
}
else if (str.mid(index) == "V")
{
p->drawPixmap( x, 0, *m_smallV );
}
}
void
DisplayWid::drawBigNumber( QPainter *p, const QString & num )
{
int x = 0;
int start = 0;
if (num[0] == ' ' || num[0] == '-')
{
if (num[0] == '-')
{
p->drawPixmap( 0, 0, *m_bigMinus );
}
x += 28;
start = 1;
}
for (unsigned i=start; i<num.length(); i++)
{
if (num[i] == '.')
{
p->drawPixmap( x-11, 0, *m_bigDecimal );
}
else if (num[i] == 'O')
{
p->drawPixmap( x+2, 2, *m_bigDigit, 0, 0, 34, 60 );
x += 49;
}
else if (num[i] == 'L')
{
p->drawPixmap( x, 0, *m_bigL );
x += 49;
}
else
{
int digit = num[i].latin1()-'0';
if (digit >= 0 && digit <= 9)
{
p->drawPixmap( x+2, 2, *m_bigDigit, 34*digit, 0, 34, 60 );
}
x += 49;
}
}
}

103
src/displaywid.h Normal file
View File

@ -0,0 +1,103 @@
//======================================================================
// File: displaywid.h
// Author: Matthias Toussaint
// Created: Fri Nov 23 22:28:36 CET 2001
//----------------------------------------------------------------------
// Permission to use, copy, modify, and distribute this software and its
// documentation for any purpose and without fee is hereby granted,
// provided that below copyright notice appear in all copies and that
// both that copyright notice and this permission notice appear in
// supporting documentation.
//
// This file is provided AS IS with no warranties of any kind. The
// author shall have no liability with respect to the infringement of
// copyrights, trade secrets or any patents by this file or any part
// thereof. In no event will the author be liable for any lost revenue
// or profits or other special, indirect and consequential damages.
//----------------------------------------------------------------------
// (c) 2001 Matthias Toussaint
//======================================================================
#ifndef DISPLAYWID_HH
#define DISPLAYWID_HH
#include <qwidget.h>
class QPixmap;
class QPainter;
class DisplayWid : public QWidget
{
Q_OBJECT
public:
DisplayWid( QWidget *parent=0, const char *name=0 );
virtual ~DisplayWid();
void setValue( const QString & );
void setUnit( const QString & );
void setMinValue( const QString & );
void setMaxValue( const QString & );
void setMinUnit( const QString & );
void setMaxUnit( const QString & );
void setMode( const QString & );
protected:
QBitmap *m_bigDigit;
QBitmap *m_bigDecimal;
QBitmap *m_bigMinus;
QBitmap *m_bigL;
QBitmap *m_bigG;
QBitmap *m_bigM;
QBitmap *m_bigk;
QBitmap *m_bigm;
QBitmap *m_bigu;
QBitmap *m_bign;
QBitmap *m_bigp;
QBitmap *m_bigHz;
QBitmap *m_bigF;
QBitmap *m_bigV;
QBitmap *m_bigA;
QBitmap *m_bigOhm;
QBitmap *m_bigDeg;
QBitmap *m_smallDigit;
QPixmap *m_smallDecimal;
QPixmap *m_smallMinus;
QPixmap *m_smallL;
QPixmap *m_smallG;
QPixmap *m_smallM;
QPixmap *m_smallk;
QPixmap *m_smallm;
QPixmap *m_smallu;
QPixmap *m_smalln;
QPixmap *m_smallp;
QPixmap *m_smallHz;
QPixmap *m_smallF;
QPixmap *m_smallV;
QPixmap *m_smallA;
QPixmap *m_smallOhm;
QPixmap *m_smallDeg;
QBitmap *m_minStr;
QBitmap *m_maxStr;
QBitmap *m_diode;
QBitmap *m_ac;
QBitmap *m_dc;
QString m_value;
QString m_minValue;
QString m_maxValue;
QString m_unit;
QString m_minUnit;
QString m_maxUnit;
QString m_mode;
void paintEvent( QPaintEvent *ev );
void drawSmallNumber( QPainter *, const QString & str );
void drawSmallUnit( QPainter *, const QString & str );
void drawBigNumber( QPainter *, const QString & str );
void drawBigUnit( QPainter *, const QString & str );
private:
QBitmap *createBitmap( const char ** );
};
#endif // DISPLAYWID_HH

View File

@ -22,6 +22,7 @@
#include <unistd.h>
#include <errno.h>
#include <qapplication.h>
#include <iostream.h>
DMM::DMM( QObject *parent, const char *name ) :
QObject( parent, name ),
@ -30,8 +31,6 @@ DMM::DMM( QObject *parent, const char *name ) :
m_device( "/dev/ttyS1" ),
m_oldStatus( ReaderThread::NotConnected )
{
m_buffer[14] = '\0';
m_readerThread = new ReaderThread( this );
m_readerThread->start();
@ -274,13 +273,13 @@ DMM::event( QEvent *ev )
if (re->format() == ReadEvent::Metex14)
{
val = tmp.mid( 3, 6 ).stripWhiteSpace();
val = tmp.mid( 3, 6 ); //.stripWhiteSpace();
unit = tmp.mid( 9, 4 ).stripWhiteSpace();
special = tmp.left( 3 ).stripWhiteSpace();
}
else if (re->format() == ReadEvent::PeakTech10)
{
val = tmp.mid( 1, 6 ).stripWhiteSpace();
val = tmp.mid( 1, 6 ); //.stripWhiteSpace();
unit = tmp.mid( 7, 4 ).stripWhiteSpace();
}

View File

@ -58,7 +58,6 @@ protected:
int m_speed;
QString m_device;
QString m_error;
char m_buffer[15];
ReaderThread *m_readerThread;
tcflag_t m_c_cflag;
ReaderThread::ReadStatus m_oldStatus;

View File

@ -32,7 +32,7 @@
#include <qmessagebox.h>
#include <qregexp.h>
#include <icon.xpm>
#include <xpm/icon.xpm>
#include <iostream.h>
@ -53,7 +53,8 @@ DMMGraph::DMMGraph( QWidget *parent, const char *name ) :
m_lastValValid( false ),
m_dirty( false ),
m_alertUnsaved( true ),
m_externalStarted( false )
m_externalStarted( false ),
m_crosshair( true )
{
m_array = new QArray<double> (m_length);
@ -319,31 +320,40 @@ DMMGraph::paintData( QPainter *p, int w, int h, double xfactor,
}
void
DMMGraph::paintThresholds( QPainter *p, int w, int h, double xfactor,
DMMGraph::paintThresholds( QPainter *p, int w, int /* h */, double /* xfactor */,
double yfactor, bool color, bool printer )
{
if (!m_externalThreshold) return;
if (printer && !color)
if (m_startExternal)
{
p->setPen( Qt::gray );
}
else
{
p->setPen( Qt::magenta );
if (printer && !color)
{
p->setPen( Qt::gray );
}
else
{
p->setPen( m_externalColor );
}
p->drawLine( 50, (int)qRound( 1+(m_scaleMax-m_externalThreshold)/yfactor ),
w, (int)qRound( 1+(m_scaleMax-m_externalThreshold)/yfactor) );
}
if (m_externalFalling)
if (m_mode == Raising || m_mode == Falling)
{
p->drawLine( 50, (int)qRound( 1+(m_scaleMax-m_fallingThreshold)/yfactor ),
w, (int)qRound( 1+(m_scaleMax-m_fallingThreshold)/yfactor) );
if (printer && !color)
{
p->setPen( Qt::gray );
}
else
{
p->setPen( m_startColor );
}
double val = m_mode == Raising ? m_raisingThreshold : m_fallingThreshold;
p->drawLine( 50, (int)qRound( 1+(m_scaleMax-val)/yfactor ),
w, (int)qRound( 1+(m_scaleMax-val)/yfactor) );
}
else
{
p->drawLine( 50, (int)qRound( 1+(m_scaleMax-m_raisingThreshold)/yfactor ),
w, (int)qRound( 1+(m_scaleMax-m_raisingThreshold)/yfactor) );
}
}
void
@ -851,6 +861,19 @@ DMMGraph::drawCursor( const QPoint & pos )
p.setRasterOp( Qt::XorROP );
p.setPen( Qt::white );
p.drawLine( pos.x(), 1, pos.x(), height()-20-17 );
if (m_crosshair)
{
int x = (int)qRound( (pos.x()-51)*m_xfactor + scrollbar->value() );
if (x < 0) x = 0;
if (x < m_pointer)
{
double y = (*m_array)[x];
p.drawLine( 50, (int)qRound( 1+(m_scaleMax-y)/m_yfactor ),
width(), (int)qRound( 1+(m_scaleMax-y)/m_yfactor) );
}
}
}
void
@ -1083,13 +1106,16 @@ DMMGraph::setScale( bool autoScale, double min, double max )
void
DMMGraph::setColors( const QColor & bg, const QColor & grid,
const QColor & data, const QColor & cursor )
const QColor & data, const QColor & cursor,
const QColor & start, const QColor & external )
{
m_bgColor = bg;
m_gridColor = grid;
m_dataColor = data;
m_cursorColor = cursor;
m_bgColor = bg;
m_gridColor = grid;
m_dataColor = data;
m_cursorColor = cursor;
m_startColor = start;
m_externalColor = external;
update();
}

View File

@ -54,11 +54,13 @@ public:
void setThresholds( double falling, double raising );
void setScale( bool autoScale, double min, double max );
void setColors( const QColor & bg, const QColor & grid,
const QColor & data, const QColor & cursor );
const QColor & data, const QColor & cursor,
const QColor & start, const QColor & external );
void setLine( int w );
void setExternal( bool on, bool falling=false, double threshold=0 );
bool dirty() const { return m_dirty; }
void setAlertUnsaved( bool on ) { m_alertUnsaved = on; }
void setCrosshair( bool on ) { m_crosshair = on; }
signals:
void info( const QString & );
@ -113,6 +115,8 @@ protected:
QColor m_gridColor;
QColor m_dataColor;
QColor m_cursorColor;
QColor m_startColor;
QColor m_externalColor;
int m_lineWidth;
bool m_dirty;
bool m_alertUnsaved;
@ -120,6 +124,7 @@ protected:
bool m_externalFalling;
double m_externalThreshold;
bool m_externalStarted;
bool m_crosshair;
void paintEvent( QPaintEvent * );
void resizeEvent( QResizeEvent * );

View File

@ -30,8 +30,9 @@
#include <qprocess.h>
#include <printdlg.h>
#include <dmm.h>
#include <displaywid.h>
#include <icon.xpm>
#include <xpm/icon.xpm>
MainWid::MainWid( QWidget *parent, const char *name ) :
UIMainWid( parent, name )
@ -146,7 +147,7 @@ void
MainWid::valueSLOT( double dval,
const QString & val, const QString & u, const QString & s )
{
ui_value->setText( val );
ui_display->setValue( val );
if (m_lastUnit != s)
{
@ -155,6 +156,8 @@ MainWid::valueSLOT( double dval,
}
m_lastUnit = s;
ui_display->setMode( s );
QString tmpUnit = u;
if (s == "AC ")
@ -165,20 +168,22 @@ MainWid::valueSLOT( double dval,
if (dval > m_max)
{
m_max = dval;
ui_maxValue->setText( val );
ui_maxUnit->setText( u );
ui_display->setMaxUnit( u );
ui_display->setMaxValue( val );
}
if (dval < m_min)
{
m_min = dval;
ui_minValue->setText( val );
ui_minUnit->setText( u );
ui_display->setMinUnit( u );
ui_display->setMinValue( val );
}
ui_unit->setText( tmpUnit );
ui_display->setUnit( tmpUnit );
ui_graph->addValue( dval );
ui_display->update();
}
void
@ -187,10 +192,10 @@ MainWid::resetSLOT()
m_min = 1.0E9;
m_max = -1.0E9;
ui_minValue->setText( "" );
ui_maxValue->setText( "" );
ui_minUnit->setText( "" );
ui_maxUnit->setText( "" );
ui_display->setMinValue( "" );
ui_display->setMaxValue( "" );
ui_display->setMinUnit( "" );
ui_display->setMaxUnit( "" );
}
void
@ -294,6 +299,7 @@ MainWid::readConfig()
ui_graph->setSampleTime( m_configDlg->sampleStep() );
ui_graph->setSampleLength( m_configDlg->sampleLength() );
ui_graph->setCrosshair( m_configDlg->crosshair() );
ui_graph->setThresholds( m_configDlg->fallingThreshold(),
m_configDlg->raisingThreshold() );
@ -305,7 +311,9 @@ MainWid::readConfig()
ui_graph->setColors( m_configDlg->bgColor(),
m_configDlg->gridColor(),
m_configDlg->dataColor(),
m_configDlg->cursorColor() );
m_configDlg->cursorColor(),
m_configDlg->startColor(),
m_configDlg->externalColor() );
ui_graph->setExternal( m_configDlg->startExternal(),
m_configDlg->externalFalling(),
@ -315,16 +323,7 @@ MainWid::readConfig()
cg.setColor( QColorGroup::Background, m_configDlg->displayBgColor() );
cg.setColor( QColorGroup::Foreground, m_configDlg->displayTextColor() );
ui_displayFrame->setPalette( QPalette( cg, cg, cg ) );
ui_minValue->setPalette( QPalette( cg, cg, cg ) );
ui_minUnit->setPalette( QPalette( cg, cg, cg ) );
ui_maxUnit->setPalette( QPalette( cg, cg, cg ) );
ui_label1->setPalette( QPalette( cg, cg, cg ) );
ui_label2->setPalette( QPalette( cg, cg, cg ) );
ui_value->setPalette( QPalette( cg, cg, cg ) );
ui_unit->setPalette( QPalette( cg, cg, cg ) );
ui_label2->setPalette( QPalette( cg, cg, cg ) );
ui_maxValue->setPalette( QPalette( cg, cg, cg ) );
ui_display->setPalette( QPalette( cg, cg, cg ) );
ui_graph->setLine( m_configDlg->lineWidth() );

View File

@ -30,20 +30,20 @@
#include <qlabel.h>
#include <qstatusbar.h>
#include <connect_on.xpm>
#include <reset.xpm>
#include <start.xpm>
#include <stop.xpm>
#include <clear.xpm>
#include <print.xpm>
#include <export.xpm>
#include <import.xpm>
#include <config.xpm>
#include <quit.xpm>
#include <help.xpm>
#include <icon.xpm>
#include <xpm/connect_on.xpm>
#include <xpm/reset.xpm>
#include <xpm/start.xpm>
#include <xpm/stop.xpm>
#include <xpm/clear.xpm>
#include <xpm/print.xpm>
#include <xpm/export.xpm>
#include <xpm/import.xpm>
#include <xpm/config.xpm>
#include <xpm/quit.xpm>
#include <xpm/help.xpm>
#include <xpm/icon.xpm>
#define VERSION_STRING "0.5.1"
#define VERSION_STRING "0.6.1"
MainWin::MainWin( QWidget *parent, const char *name ) :
QMainWindow( parent, name ),
@ -114,60 +114,90 @@ MainWin::createActions()
tr("Connect"),
CTRL+Key_C,
this, 0, true );
m_connectAction->setWhatsThis( tr("<b>Connect to the Multimeter</b><p>This will establish"
" the serial connection to the dmm. If not connected the serial port is free"
" and can be used by other software." ));
m_resetAction = new QAction ( tr("Reset"),
QIconSet(QPixmap((const char **)reset_xpm)),
tr("Reset"),
CTRL+Key_R,
this );
m_resetAction->setWhatsThis( tr("<b>Reset min/max values</b><p>The min/max values in the"
" display will be reset. You can activate this option at any time." ));
m_startAction = new QAction ( tr("Start"),
QIconSet(QPixmap((const char **)start_xpm)),
tr("Start"),
CTRL+Key_S,
this );
m_startAction->setWhatsThis( tr("<b>Start the recorder</b><p>If you are in manual mode"
" this will start the recorder. Press F2 to set the recorder options" ));
m_stopAction = new QAction ( tr("Stop"),
QIconSet(QPixmap((const char **)stop_xpm)),
tr("Stop"),
CTRL+Key_X,
this );
m_stopAction->setWhatsThis( tr("<b>Stop the recorder</b><p>The recorder will be stopped."
" This is independent from the start mode of the recorder" ));
m_clearAction = new QAction ( tr("Clear"),
QIconSet(QPixmap((const char **)clear_xpm)),
tr("Clear"),
Key_Delete,
this );
m_clearAction->setWhatsThis( tr("<b>Clear the recorder graph</b><p>If the recorder is already"
" started it will clear the graph and continue recording." ));
m_printAction = new QAction ( tr("Print"),
QIconSet(QPixmap((const char **)print_xpm)),
tr("Print ..."),
CTRL+Key_P,
this );
m_printAction->setWhatsThis( tr("<b>Print recorder graph</b><p>A dialog will open where you can"
" define a title and a comment for your printout. The printer itself can also be configured here."
" To be able to print you need at least one working postscript printer configured in your"
" system. Printing into a file is also supported." ));
m_exportAction = new QAction ( tr("Export"),
QIconSet(QPixmap((const char **)export_xpm)),
tr("Export ..."),
CTRL+Key_E,
this );
m_exportAction->setWhatsThis( tr("<b>Export recorder graph</b><p>Here you can export the recorded"
" data as tab separated list. Each line contains the following values (separated by a tab "
"character): date (dd.mm.yyyy) time (hh:mm:ss) value (float) unit." ));
m_importAction = new QAction ( tr("Import"),
QIconSet(QPixmap((const char **)import_xpm)),
tr("Import ..."),
CTRL+Key_I,
this );
m_importAction->setWhatsThis( tr("<b>Import data into recorder</b><p>Here you can import previously"
" exported data files. QtDMM tries to do an educated guess if the file format is correct and"
" rejects import of files which to not match." ));
m_configAction = new QAction ( tr("Configure"),
QIconSet(QPixmap((const char **)config_xpm)),
tr("Configure ..."),
Key_F2,
this );
m_configAction->setWhatsThis( tr("<b>Configure QtDMM</b><p>This will open QtDMM's configuration"
" dialog. Here you can configure it's visual appearance and all options regarding the "
"multimeter hardware and the recorder." ));
m_quitAction = new QAction ( tr("Quit"),
QIconSet(QPixmap((const char **)quit_xpm)),
tr("Quit"),
CTRL+Key_Q,
this );
m_quitAction->setWhatsThis( tr("<b>Quit QtDMM</b><p>If the recorder contains unsaved data QtDMM"
" will give you the option to savve your data first." ));
m_helpAction = new QAction ( tr("Help"),
QIconSet(QPixmap((const char **)help_xpm)),
tr("Direct Help"),
SHIFT+Key_F1,
this );
m_helpAction->setWhatsThis( tr("<b>Direct Help</b><p>Enter the direct help mode. You have done this"
" already when reading this text :)" ));
m_versionAction = new QAction ( this );
m_versionAction->setText( tr("On version") );
m_versionAction->setMenuText( tr("On version...") );
m_versionAction->setWhatsThis( tr("<b>Copyright information</b><p>Show copyright information and some"
" blurb about QtDMM." ));
connect( m_connectAction, SIGNAL( toggled(bool) ),
m_wid, SLOT( connectSLOT(bool) ));
connect( m_connectAction, SIGNAL( toggled(bool) ),
@ -233,13 +263,16 @@ MainWin::versionSLOT()
msg += ver;
msg += "</h1><hr>"
"<div align=right><i>A simple recorder for DMM's</i></div><p><br>"
"A simple display software for <b>Metex</b> and compatible hand held"
"<div align=justify>A simple display software for <b>Metex</b> and compatible hand held"
" digital multimeter including min/max memory and a configurable "
"recorder with import/export and printing function. Sampling may"
" be started manually, at a given time or triggered by a measured threshold<p>"
"<b>QtDMM</b> uses the platform independent toolkit "
"<b>Qt</b> from Trolltech AS Norway <font color=blue><u>www.trolltech.com</u></font>"
" and is licensed under <b>GPL</b>.<p><br>"
" be started manually, at a given time or triggered by a measured threshold. "
"Additionally an external program may be started when given thresholds are reached.</div><p><br>"
"<div align=justify><b>QtDMM</b> uses the platform independent toolkit "
"<b>Qt</b> version ";
msg += qVersion();
msg += " from Trolltech AS Norway <font color=blue><u>www.trolltech.com</u></font>"
" and is licensed under <b>GPL</b>.</div><br>"
"&copy; 2001 Matthias Toussaint<br><font color=blue><u>qtdmm@mtoussaint.de</u></font>"
"<p><br>The icons (except the DMM icon) are taken from the KDE project.<p>";

View File

@ -1,45 +0,0 @@
TEMPLATE = app
CONFIG = qt release warn_on thread
INCLUDEPATH = . moc
MOC_DIR = moc
OBJECTS_DIR = tmp
DEPENDPATH = .
HEADERS = configdlg.h \
dmm.h \
dmmbar.h \
dmmgraph.h \
mainwid.h \
mainwin.h \
simplecfg.h \
printdlg.h \
readerthread.h \
readevent.h \
colorbutton.h \
qprocess.h \
qprocess_unix.h \
qcleanuphandler.h
INTERFACES = uiconfigdlg.ui \
uimainwid.ui \
uiprintdlg.ui
SOURCES = main.cpp \
configdlg.cpp \
dmm.cpp \
dmmbar.cpp \
dmmgraph.cpp \
mainwid.cpp \
mainwin.cpp \
simplecfg.cpp \
printdlg.cpp \
readerthread.cpp \
colorbutton.cpp \
qprocess.cpp \
qprocess_unix.cpp
LIBS =
TARGET = qtdmm
VERSION = 0.5
DESTDIR = ../bin

View File

@ -1,46 +0,0 @@
TEMPLATE = app
CONFIG = qt release warn_on thread
INCLUDEPATH = . moc
MOC_DIR = moc
OBJECTS_DIR = tmp
DEPENDPATH = .
HEADERS = configdlg.h \
dmm.h \
dmmbar.h \
dmmgraph.h \
mainwid.h \
mainwin.h \
simplecfg.h \
printdlg.h \
readerthread.h \
readevent.h \
colorbutton.h \
qprocess.h \
qprocess_unix.h \
qcleanuphandler.h \
uiconfigdlg.h \
uimainwid.h \
uiprintdlg.h
SOURCES = main.cpp \
configdlg.cpp \
dmm.cpp \
dmmbar.cpp \
dmmgraph.cpp \
mainwid.cpp \
mainwin.cpp \
simplecfg.cpp \
printdlg.cpp \
readerthread.cpp \
colorbutton.cpp \
qprocess.cpp \
qprocess_unix.cpp \
uiconfigdlg.cpp \
uimainwid.cpp \
uiprintdlg.cpp
LIBS =
TARGET = qtdmm
VERSION = 0.5
DESTDIR = ../bin

View File

@ -20,6 +20,8 @@
#include <readerthread.h>
#include <unistd.h>
#include <iostream.h>
#include <stdio.h>
ReaderThread::ReaderThread( QObject *receiver ) :
QThread(),
@ -103,7 +105,7 @@ ReaderThread::readDMM()
}
retval = ::read( m_handle, &byte, 1);
if (-1 == retval)
{
m_status = ReaderThread::Error;
@ -148,6 +150,43 @@ ReaderThread::readDMM()
while ('\r' != byte);
}
}
else if (m_format == ReadEvent::M9803R)
{
do
{
if (-1 == m_handle)
{
m_status = ReaderThread::NotConnected;
return;
}
retval = ::read( m_handle, &byte, 1);
if (-1 == retval)
{
m_status = ReaderThread::Error;
return;
}
else if (0 == retval)
{
m_status = ReaderThread::Timeout;
return;
}
else
{
m_buffer[(++i)%100] = byte;
}
}
while (0x0d != byte);
for (int j=0; j<i; j++)
{
fprintf( stderr, "%02x ", m_buffer[j] );
}
fprintf( stderr, "\n");
}
else if (m_format == ReadEvent::PeakTech10)
{
while(false == flag)

View File

@ -52,7 +52,7 @@ protected:
int m_handle;
ReadStatus m_status;
bool m_readValue;
char m_buffer[15];
char m_buffer[100];
ReadEvent::DataFormat m_format;
int m_ignoreLines;

View File

@ -26,8 +26,9 @@ class ReadEvent : public QCustomEvent
public:
enum DataFormat
{
Metex14,
PeakTech10
Metex14 = 0,
PeakTech10,
M9803R
};
ReadEvent( QString str, DataFormat df ) :

5
src/src.pro Executable file → Normal file
View File

@ -16,10 +16,10 @@ HEADERS = configdlg.h \
readerthread.h \
readevent.h \
colorbutton.h \
displaywid.h \
qprocess.h \
qprocess_unix.h \
qcleanuphandler.h
INTERFACES = uiconfigdlg.ui \
uimainwid.ui \
uiprintdlg.ui
@ -35,11 +35,12 @@ SOURCES = main.cpp \
printdlg.cpp \
readerthread.cpp \
colorbutton.cpp \
displaywid.cpp \
qprocess.cpp \
qprocess_unix.cpp
LIBS =
TARGET = qtdmm
VERSION = 0.5
VERSION = 0.6.1
DESTDIR = ../bin

File diff suppressed because it is too large Load Diff

View File

@ -1,177 +0,0 @@
/****************************************************************************
** Form interface generated from reading ui file 'uiconfigdlg.ui'
**
** Created: Tue Sep 4 11:07:28 2001
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef UICONFIGDLG_H
#define UICONFIGDLG_H
#include <qvariant.h>
#include <qdialog.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class ColorButton;
class QButtonGroup;
class QCheckBox;
class QComboBox;
class QGroupBox;
class QLabel;
class QLineEdit;
class QPushButton;
class QRadioButton;
class QSpinBox;
class QTabWidget;
class QWidget;
class UIConfigDlg : public QDialog
{
Q_OBJECT
public:
UIConfigDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~UIConfigDlg();
QTabWidget* tabWidget;
QWidget* recorderPage;
QButtonGroup* ButtonGroup1;
QLabel* sampLabel;
QComboBox* sampleUnit;
QLabel* sampLabel_2;
QComboBox* timeUnit;
QSpinBox* sampleEvery;
QSpinBox* sampleTime;
QGroupBox* GroupBox1;
QButtonGroup* ButtonGroup32;
QRadioButton* manualBut;
QRadioButton* predefinedBut;
QLabel* TextLabel5;
QSpinBox* hour;
QLabel* TextLabel3;
QSpinBox* minute;
QLabel* TextLabel4;
QSpinBox* second;
QRadioButton* triggerBut;
QButtonGroup* ButtonGroup13;
QLineEdit* fallingThresholdEdit;
QLineEdit* raisingThresholdEdit;
QLabel* TextLabel7;
QLabel* TextLabel8;
QLabel* TextLabel6;
QRadioButton* raisingBut;
QLabel* TextLabel6_2;
QRadioButton* fallingBut;
QPushButton* ui_defaultRecorder;
QPushButton* ui_factoryRecorder;
QWidget* scalePage;
QButtonGroup* ButtonGroup36;
QRadioButton* autoScaleBut;
QRadioButton* manualScaleBut;
QLabel* TextLabel9;
QLabel* TextLabel10;
QLineEdit* scaleMinEd;
QLabel* TextLabel10_2;
QLineEdit* scaleMaxEd;
QButtonGroup* ButtonGroup37;
QLabel* TextLabel11;
QLabel* TextLabel12;
QComboBox* sizeUnit;
QComboBox* lengthUnit;
QSpinBox* winSize;
QSpinBox* winLength;
QPushButton* ui_defaultScale;
QPushButton* ui_factoryScale;
QWidget* dmmPage;
QLabel* TextLabel1_2;
QComboBox* modelCombo;
QButtonGroup* ButtonGroup11;
QLabel* ui_bitsLabel;
QComboBox* bitsCombo;
QLabel* ui_stopLabel;
QComboBox* baudRate;
QLabel* ui_baudLabel;
QComboBox* port;
QLabel* TextLabel2;
QComboBox* stopBitsCombo;
QButtonGroup* ui_protocol;
QComboBox* protocolCombo;
QLabel* TextLabel1_4;
QSpinBox* ignoreSpin;
QLabel* message;
QPushButton* ui_defaultDMM;
QPushButton* ui_factoryDMM;
QWidget* qtdmmTab;
QGroupBox* GroupBox7;
ColorButton* ui_bgColor;
QLabel* TextLabel2_2;
ColorButton* ui_gridColor;
QLabel* TextLabel3_2;
ColorButton* ui_dataColor;
QLabel* label;
ColorButton* ui_cursorColor;
QLabel* label2;
QLabel* TextLabel2_3;
QLabel* TextLabel1;
QSpinBox* ui_lineWidth;
QGroupBox* GroupBox4;
ColorButton* ui_bgColorDisplay;
QLabel* TextLabel2_2_2;
ColorButton* ui_textColor;
QLabel* TextLabel2_2_3;
QCheckBox* ui_alertUnsavedData;
QCheckBox* ui_saveWindowCheck;
QCheckBox* ui_textLabel;
QPushButton* ui_defaultPreferences;
QPushButton* ui_factoryPreferences;
QPushButton* helpBut;
QPushButton* ui_applyBut;
QPushButton* okBut;
QPushButton* cancelBut;
protected:
QVBoxLayout* UIConfigDlgLayout;
QVBoxLayout* recorderPageLayout;
QGridLayout* ButtonGroup1Layout;
QVBoxLayout* GroupBox1Layout;
QVBoxLayout* ButtonGroup32Layout;
QHBoxLayout* Layout23;
QHBoxLayout* Layout24;
QHBoxLayout* Layout8;
QHBoxLayout* Layout7;
QHBoxLayout* Layout6;
QHBoxLayout* Layout25;
QVBoxLayout* ButtonGroup13Layout;
QGridLayout* Layout14;
QHBoxLayout* Layout9;
QHBoxLayout* Layout10;
QHBoxLayout* Layout52;
QVBoxLayout* scalePageLayout;
QVBoxLayout* ButtonGroup36Layout;
QHBoxLayout* Layout15_2;
QGridLayout* ButtonGroup37Layout;
QHBoxLayout* Layout51;
QVBoxLayout* dmmPageLayout;
QGridLayout* ButtonGroup11Layout;
QGridLayout* ui_protocolLayout;
QHBoxLayout* Layout50;
QVBoxLayout* qtdmmTabLayout;
QVBoxLayout* GroupBox7Layout;
QHBoxLayout* Layout24_2;
QHBoxLayout* Layout19;
QHBoxLayout* Layout20;
QHBoxLayout* Layout23_2;
QHBoxLayout* Layout17;
QHBoxLayout* Layout18;
QHBoxLayout* Layout48;
QHBoxLayout* GroupBox4Layout;
QHBoxLayout* Layout19_2;
QHBoxLayout* Layout19_3;
QHBoxLayout* Layout49;
QHBoxLayout* Layout105;
bool event( QEvent* );
};
#endif // UICONFIGDLG_H

View File

@ -1,679 +0,0 @@
/****************************************************************************
** Form implementation generated from reading ui file 'uimainwid.ui'
**
** Created: Tue Sep 4 11:08:06 2001
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "uimainwid.h"
#include <qframe.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include "dmmgraph.h"
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
static const char* const image0_data[] = {
"32 32 14 1",
". c None",
"# c #000000",
"i c #0018ff",
"k c #0020ff",
"l c #101010",
"c c #393939",
"b c #5a5a5a",
"a c #7b7b7b",
"e c #949494",
"j c #c5c5c5",
"d c #c5dec5",
"f c #ff0000",
"h c #ffee00",
"g c #ffffff",
"................................",
"......#####################.....",
".....#aaaaaaaaaaaaaaaaaaaaa#....",
"....#abbbbbbbbbbbbbbbbbbbbbc#...",
"....#ab###################bc#...",
"....#ab#ddddddddddddddddd#bc#...",
"....#ab#d###ddd#d#d###d#d#bc#...",
"....#ab#ddd#ddd#d#ddd#d#d#bc#...",
"....#ab#d###ddd###d###d#d#bc#...",
"....#ab#ddd#ddddd#d#ddd#d#bc#...",
"....#ab#d###d#ddd#d###d#d#bc#...",
"....#ab#ddddddddddddddddd#bc#...",
"....#ab#d#e#e#e#ddddddddd#bc#...",
"....#ab#d#e#e#e#ddddddddd#bc#...",
"....#ab#ddddddddddddddddd#bc#...",
"....#ab###################bc#...",
"....#abbbbbbbbbbbbbbbbbbbbbc#...",
"....#abffbbbbbbbbbbbbbbbbbbb#...",
"....#afgffbbbbbbb##########c#...",
"....#afggfbbbb###eeeeeeeeeec#...",
"....#abffbb###eeeeeeheeeiiec#...",
"....#bbbb##eeeeeeeehhheiiiic#...",
"....#a###eeeeejjeejeeeeiiiic#...",
"....#aeeeeejeeeeeeeeeejeiiec#...",
"....#aheeeeeehhhjjjjeejeeeec#...",
"....#ahejeejjhhhjjjjjjeeeeec#...",
"....#ahjeejjj#######jjkeejec#...",
"....#aheejjj#########kkkejec#...",
"....#aheejj#g#ccccc###kkeeec#...",
"....#aheff##cglccccc###kkeec#...",
"....#aheff##clllccccc##kkeec#...",
"....ccccccccccccccccccccccccc..."};
/*
* Constructs a UIMainWid which is a child of 'parent', with the
* name 'name'.'
*/
UIMainWid::UIMainWid( QWidget* parent, const char* name )
: QFrame( parent, name )
{
QPixmap image0( ( const char** ) image0_data );
if ( !name )
setName( "UIMainWid" );
resize( 641, 451 );
setCaption( tr( "QtDMM 0.4.1" ) );
setIcon( image0 );
setIconText( tr( "QtDMM 0.4" ) );
setFrameShape( QFrame::StyledPanel );
setFrameShadow( QFrame::Raised );
UIMainWidLayout = new QGridLayout( this );
UIMainWidLayout->setSpacing( 5 );
UIMainWidLayout->setMargin( 5 );
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
UIMainWidLayout->addItem( spacer, 0, 2 );
TextLabel7 = new QLabel( this, "TextLabel7" );
TextLabel7->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, TextLabel7->sizePolicy().hasHeightForWidth() ) );
TextLabel7->setText( tr( "<center><b>QtDMM</b><br>&copy; 2001<br>M.Toussaint</center>" ) );
TextLabel7->setTextFormat( QLabel::RichText );
TextLabel7->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
UIMainWidLayout->addMultiCellWidget( TextLabel7, 0, 1, 3, 3 );
ui_displayFrame = new QFrame( this, "ui_displayFrame" );
QPalette pal;
QColorGroup cg;
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
ui_displayFrame->setPalette( pal );
ui_displayFrame->setFrameShape( QFrame::StyledPanel );
ui_displayFrame->setFrameShadow( QFrame::Sunken );
ui_displayFrameLayout = new QGridLayout( ui_displayFrame );
ui_displayFrameLayout->setSpacing( 2 );
ui_displayFrameLayout->setMargin( 4 );
ui_minValue = new QLabel( ui_displayFrame, "ui_minValue" );
ui_minValue->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, ui_minValue->sizePolicy().hasHeightForWidth() ) );
ui_minValue->setMinimumSize( QSize( 70, 0 ) );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
ui_minValue->setPalette( pal );
QFont ui_minValue_font( ui_minValue->font() );
ui_minValue_font.setFamily( "adobe-courier" );
ui_minValue_font.setPointSize( 16 );
ui_minValue_font.setBold( TRUE );
ui_minValue->setFont( ui_minValue_font );
ui_minValue->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
QWhatsThis::add( ui_minValue, tr( "Here you see the smallest measured value. You can clear this memory by clicking the <b>Reset</b> button to the right." ) );
ui_displayFrameLayout->addWidget( ui_minValue, 0, 1 );
ui_minUnit = new QLabel( ui_displayFrame, "ui_minUnit" );
ui_minUnit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, ui_minUnit->sizePolicy().hasHeightForWidth() ) );
ui_minUnit->setMinimumSize( QSize( 40, 0 ) );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
ui_minUnit->setPalette( pal );
QFont ui_minUnit_font( ui_minUnit->font() );
ui_minUnit_font.setBold( TRUE );
ui_minUnit->setFont( ui_minUnit_font );
ui_minUnit->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignLeft ) );
ui_displayFrameLayout->addWidget( ui_minUnit, 0, 2 );
ui_maxUnit = new QLabel( ui_displayFrame, "ui_maxUnit" );
ui_maxUnit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, ui_maxUnit->sizePolicy().hasHeightForWidth() ) );
ui_maxUnit->setMinimumSize( QSize( 40, 0 ) );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
ui_maxUnit->setPalette( pal );
QFont ui_maxUnit_font( ui_maxUnit->font() );
ui_maxUnit_font.setBold( TRUE );
ui_maxUnit->setFont( ui_maxUnit_font );
ui_maxUnit->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignLeft ) );
ui_displayFrameLayout->addWidget( ui_maxUnit, 1, 2 );
ui_label1 = new QLabel( ui_displayFrame, "ui_label1" );
ui_label1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, ui_label1->sizePolicy().hasHeightForWidth() ) );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
ui_label1->setPalette( pal );
ui_label1->setText( tr( "Max:" ) );
ui_displayFrameLayout->addWidget( ui_label1, 1, 0 );
ui_maxValue = new QLabel( ui_displayFrame, "ui_maxValue" );
ui_maxValue->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, ui_maxValue->sizePolicy().hasHeightForWidth() ) );
ui_maxValue->setMinimumSize( QSize( 70, 0 ) );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
ui_maxValue->setPalette( pal );
QFont ui_maxValue_font( ui_maxValue->font() );
ui_maxValue_font.setFamily( "adobe-courier" );
ui_maxValue_font.setPointSize( 16 );
ui_maxValue_font.setBold( TRUE );
ui_maxValue->setFont( ui_maxValue_font );
ui_maxValue->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
QWhatsThis::add( ui_maxValue, tr( "Here you see the largest measured value. You can clear this memory by clicking the <b>Reset</b> button to the right." ) );
ui_displayFrameLayout->addWidget( ui_maxValue, 1, 1 );
ui_label2 = new QLabel( ui_displayFrame, "ui_label2" );
ui_label2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, ui_label2->sizePolicy().hasHeightForWidth() ) );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
ui_label2->setPalette( pal );
ui_label2->setText( tr( "Min:" ) );
ui_displayFrameLayout->addWidget( ui_label2, 0, 0 );
Layout17 = new QGridLayout;
Layout17->setSpacing( 6 );
Layout17->setMargin( 0 );
ui_value = new QLabel( ui_displayFrame, "ui_value" );
ui_value->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, ui_value->sizePolicy().hasHeightForWidth() ) );
ui_value->setMinimumSize( QSize( 120, 0 ) );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 212, 220, 207) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 212, 220, 207) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 212, 220, 207) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
ui_value->setPalette( pal );
QFont ui_value_font( ui_value->font() );
ui_value_font.setFamily( "adobe-courier" );
ui_value_font.setPointSize( 28 );
ui_value_font.setBold( TRUE );
ui_value->setFont( ui_value_font );
ui_value->setText( tr( "0.000" ) );
ui_value->setAlignment( int( QLabel::AlignCenter ) );
QWhatsThis::add( ui_value, tr( "Here you see the current measured value. The display is updated once per second." ) );
Layout17->addWidget( ui_value, 0, 0 );
ui_unit = new QLabel( ui_displayFrame, "ui_unit" );
ui_unit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, ui_unit->sizePolicy().hasHeightForWidth() ) );
ui_unit->setMinimumSize( QSize( 50, 0 ) );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
ui_unit->setPalette( pal );
QFont ui_unit_font( ui_unit->font() );
ui_unit_font.setPointSize( 12 );
ui_unit_font.setBold( TRUE );
ui_unit->setFont( ui_unit_font );
QWhatsThis::add( ui_unit, tr( "Here you see the unit of the measured value." ) );
Layout17->addWidget( ui_unit, 0, 1 );
ui_displayFrameLayout->addMultiCellLayout( Layout17, 0, 1, 3, 3 );
UIMainWidLayout->addMultiCellWidget( ui_displayFrame, 0, 1, 0, 0 );
Line3 = new QFrame( this, "Line3" );
Line3->setFrameStyle( QFrame::HLine | QFrame::Sunken );
UIMainWidLayout->addMultiCellWidget( Line3, 2, 2, 0, 3 );
Layout5 = new QHBoxLayout;
Layout5->setSpacing( 5 );
Layout5->setMargin( 0 );
ui_graph = new DMMGraph( this, "ui_graph" );
ui_graph->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, ui_graph->sizePolicy().hasHeightForWidth() ) );
ui_graph->setMinimumSize( QSize( 0, 60 ) );
ui_graph->setCursor( QCursor( 0 ) );
QWhatsThis::add( ui_graph, tr( "This is the plotting area for the transient recorder. It is widely configurable by clicking the <b>config ...</b> button to the right. Data aquisition may be started by hand, at a specific time or automatically triggered by the measured value itself <i>(See configuration dialog)</i><p>\nThe maximum resolution for data aquisition is one second, but may also be configured to sample once a week or what ever you want.\n<p>\n<b>Note:</b> Connecting to the DMM as well as a change of the measuring unit automatically clears the graph." ) );
Layout5->addWidget( ui_graph );
UIMainWidLayout->addMultiCellLayout( Layout5, 3, 3, 0, 3 );
}
/*
* Destroys the object and frees any allocated resources
*/
UIMainWid::~UIMainWid()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Main event handler. Reimplemented to handle application
* font changes
*/
bool UIMainWid::event( QEvent* ev )
{
bool ret = QFrame::event( ev );
if ( ev->type() == QEvent::ApplicationFontChange ) {
QFont ui_minValue_font( ui_minValue->font() );
ui_minValue_font.setFamily( "adobe-courier" );
ui_minValue_font.setPointSize( 16 );
ui_minValue_font.setBold( TRUE );
ui_minValue->setFont( ui_minValue_font );
QFont ui_minUnit_font( ui_minUnit->font() );
ui_minUnit_font.setBold( TRUE );
ui_minUnit->setFont( ui_minUnit_font );
QFont ui_maxUnit_font( ui_maxUnit->font() );
ui_maxUnit_font.setBold( TRUE );
ui_maxUnit->setFont( ui_maxUnit_font );
QFont ui_maxValue_font( ui_maxValue->font() );
ui_maxValue_font.setFamily( "adobe-courier" );
ui_maxValue_font.setPointSize( 16 );
ui_maxValue_font.setBold( TRUE );
ui_maxValue->setFont( ui_maxValue_font );
QFont ui_value_font( ui_value->font() );
ui_value_font.setFamily( "adobe-courier" );
ui_value_font.setPointSize( 28 );
ui_value_font.setBold( TRUE );
ui_value->setFont( ui_value_font );
QFont ui_unit_font( ui_unit->font() );
ui_unit_font.setPointSize( 12 );
ui_unit_font.setBold( TRUE );
ui_unit->setFont( ui_unit_font );
}
return ret;
}

View File

@ -1,49 +0,0 @@
/****************************************************************************
** Form interface generated from reading ui file 'uimainwid.ui'
**
** Created: Tue Sep 4 11:07:29 2001
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef UIMAINWID_H
#define UIMAINWID_H
#include <qvariant.h>
#include <qframe.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class DMMGraph;
class QLabel;
class UIMainWid : public QFrame
{
Q_OBJECT
public:
UIMainWid( QWidget* parent = 0, const char* name = 0 );
~UIMainWid();
QLabel* TextLabel7;
QFrame* ui_displayFrame;
QLabel* ui_minValue;
QLabel* ui_minUnit;
QLabel* ui_maxUnit;
QLabel* ui_label1;
QLabel* ui_maxValue;
QLabel* ui_label2;
QLabel* ui_value;
QLabel* ui_unit;
QFrame* Line3;
DMMGraph* ui_graph;
protected:
QGridLayout* UIMainWidLayout;
QGridLayout* ui_displayFrameLayout;
QGridLayout* Layout17;
QHBoxLayout* Layout5;
bool event( QEvent* );
};
#endif // UIMAINWID_H

View File

@ -1,239 +0,0 @@
/****************************************************************************
** Form implementation generated from reading ui file 'uiprintdlg.ui'
**
** Created: Tue Sep 4 11:08:10 2001
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "uiprintdlg.h"
#include <qframe.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qmultilineedit.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
static const char* const image0_data[] = {
"32 32 14 1",
". c None",
"# c #000000",
"i c #0018ff",
"k c #0020ff",
"l c #101010",
"c c #393939",
"b c #5a5a5a",
"a c #7b7b7b",
"e c #949494",
"j c #c5c5c5",
"d c #c5dec5",
"f c #ff0000",
"h c #ffee00",
"g c #ffffff",
"................................",
"......#####################.....",
".....#aaaaaaaaaaaaaaaaaaaaa#....",
"....#abbbbbbbbbbbbbbbbbbbbbc#...",
"....#ab###################bc#...",
"....#ab#ddddddddddddddddd#bc#...",
"....#ab#d###ddd#d#d###d#d#bc#...",
"....#ab#ddd#ddd#d#ddd#d#d#bc#...",
"....#ab#d###ddd###d###d#d#bc#...",
"....#ab#ddd#ddddd#d#ddd#d#bc#...",
"....#ab#d###d#ddd#d###d#d#bc#...",
"....#ab#ddddddddddddddddd#bc#...",
"....#ab#d#e#e#e#ddddddddd#bc#...",
"....#ab#d#e#e#e#ddddddddd#bc#...",
"....#ab#ddddddddddddddddd#bc#...",
"....#ab###################bc#...",
"....#abbbbbbbbbbbbbbbbbbbbbc#...",
"....#abffbbbbbbbbbbbbbbbbbbb#...",
"....#afgffbbbbbbb##########c#...",
"....#afggfbbbb###eeeeeeeeeec#...",
"....#abffbb###eeeeeeheeeiiec#...",
"....#bbbb##eeeeeeeehhheiiiic#...",
"....#a###eeeeejjeejeeeeiiiic#...",
"....#aeeeeejeeeeeeeeeejeiiec#...",
"....#aheeeeeehhhjjjjeejeeeec#...",
"....#ahejeejjhhhjjjjjjeeeeec#...",
"....#ahjeejjj#######jjkeejec#...",
"....#aheejjj#########kkkejec#...",
"....#aheejj#g#ccccc###kkeeec#...",
"....#aheff##cglccccc###kkeec#...",
"....#aheff##clllccccc##kkeec#...",
"....ccccccccccccccccccccccccc..."};
static const char* const image1_data[] = {
"22 22 4 1",
". c None",
"# c #000000",
"a c #000083",
"b c #4a4a4a",
"......................",
"......................",
"......................",
"...#........aaaaa.....",
"...##......aaabaaa....",
"...###....aaabb.aaa...",
"...####...aabb...aab..",
"...#####..aab....aab..",
"...######..ab...aaab..",
"...#######..b..aaabb..",
"...########...aaabb...",
"...#########.aaabb....",
"...#####bbbbbaaab.....",
"...##b###.....bbb.....",
"...#bb###b...aaa......",
"....b..###...aaab.....",
".......###b...bbb.....",
"........###...........",
"........###b..........",
".........bbb..........",
"......................",
"......................"};
/*
* Constructs a UIPrintDlg which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
UIPrintDlg::UIPrintDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
QPixmap image0( ( const char** ) image0_data );
QPixmap image1( ( const char** ) image1_data );
if ( !name )
setName( "UIPrintDlg" );
resize( 531, 311 );
setCaption( tr( "QtDMM: Print graph ..." ) );
setIcon( image0 );
setIconText( tr( "Print ..." ) );
setSizeGripEnabled( TRUE );
UIPrintDlgLayout = new QVBoxLayout( this );
UIPrintDlgLayout->setSpacing( 6 );
UIPrintDlgLayout->setMargin( 11 );
Layout2 = new QHBoxLayout;
Layout2->setSpacing( 5 );
Layout2->setMargin( 0 );
TextLabel3 = new QLabel( this, "TextLabel3" );
TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, TextLabel3->sizePolicy().hasHeightForWidth() ) );
QFont TextLabel3_font( TextLabel3->font() );
TextLabel3_font.setPointSize( 12 );
TextLabel3_font.setBold( TRUE );
TextLabel3->setFont( TextLabel3_font );
TextLabel3->setText( tr( "Printer:" ) );
Layout2->addWidget( TextLabel3 );
printerLabel = new QLabel( this, "printerLabel" );
printerLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, printerLabel->sizePolicy().hasHeightForWidth() ) );
printerLabel->setFrameShape( QLabel::NoFrame );
printerLabel->setFrameShadow( QLabel::Sunken );
printerLabel->setMargin( 0 );
printerLabel->setText( tr( "Please select printer ->" ) );
printerLabel->setIndent( 8 );
QWhatsThis::add( printerLabel, tr( "This label shows the currently selected printer. Click the button to the right to configure the printer. <i>(You have to select a printer in order to be able to print)</i>" ) );
Layout2->addWidget( printerLabel );
configBut = new QPushButton( this, "configBut" );
configBut->setText( tr( "Configure ..." ) );
configBut->setAutoDefault( FALSE );
QWhatsThis::add( configBut, tr( "Click here to configure the printer." ) );
Layout2->addWidget( configBut );
UIPrintDlgLayout->addLayout( Layout2 );
Frame5 = new QFrame( this, "Frame5" );
Frame5->setFrameShape( QFrame::WinPanel );
Frame5->setFrameShadow( QFrame::Raised );
Frame5Layout = new QVBoxLayout( Frame5 );
Frame5Layout->setSpacing( 5 );
Frame5Layout->setMargin( 10 );
TextLabel1 = new QLabel( Frame5, "TextLabel1" );
TextLabel1->setText( tr( "Title" ) );
Frame5Layout->addWidget( TextLabel1 );
printTitle = new QLineEdit( Frame5, "printTitle" );
printTitle->setFrame( TRUE );
QWhatsThis::add( printTitle, tr( "Enter a title for the document <i>(Optional)</i>" ) );
Frame5Layout->addWidget( printTitle );
TextLabel2 = new QLabel( Frame5, "TextLabel2" );
TextLabel2->setText( tr( "Comment" ) );
Frame5Layout->addWidget( TextLabel2 );
printComment = new QMultiLineEdit( Frame5, "printComment" );
printComment->setFrameShape( QMultiLineEdit::WinPanel );
printComment->setFrameShadow( QMultiLineEdit::Sunken );
printComment->setLineWidth( 1 );
printComment->setWordWrap( QMultiLineEdit::WidgetWidth );
QWhatsThis::add( printComment, tr( "Here you may enter an comment which will be printed on top of the page <i>(Optional)</i>" ) );
Frame5Layout->addWidget( printComment );
UIPrintDlgLayout->addWidget( Frame5 );
Layout28 = new QHBoxLayout;
Layout28->setSpacing( 4 );
Layout28->setMargin( 0 );
helpBut = new QPushButton( this, "helpBut" );
helpBut->setMinimumSize( QSize( 26, 26 ) );
helpBut->setText( tr( "" ) );
helpBut->setPixmap( image1 );
helpBut->setAutoDefault( FALSE );
QToolTip::add( helpBut, tr( "Direct help (SHIFT+F1)" ) );
Layout28->addWidget( helpBut );
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout28->addItem( spacer );
printBut = new QPushButton( this, "printBut" );
printBut->setEnabled( FALSE );
printBut->setText( tr( "&Print" ) );
printBut->setDefault( TRUE );
QWhatsThis::add( printBut, tr( "Click here to print." ) );
Layout28->addWidget( printBut );
cancelBut = new QPushButton( this, "cancelBut" );
cancelBut->setText( tr( "&Cancel" ) );
QWhatsThis::add( cancelBut, tr( "Click here to abort printing." ) );
Layout28->addWidget( cancelBut );
UIPrintDlgLayout->addLayout( Layout28 );
// signals and slots connections
connect( printBut, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( cancelBut, SIGNAL( clicked() ), this, SLOT( reject() ) );
}
/*
* Destroys the object and frees any allocated resources
*/
UIPrintDlg::~UIPrintDlg()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Main event handler. Reimplemented to handle application
* font changes
*/
bool UIPrintDlg::event( QEvent* ev )
{
bool ret = QDialog::event( ev );
if ( ev->type() == QEvent::ApplicationFontChange ) {
QFont TextLabel3_font( TextLabel3->font() );
TextLabel3_font.setPointSize( 12 );
TextLabel3_font.setBold( TRUE );
TextLabel3->setFont( TextLabel3_font );
}
return ret;
}

View File

@ -1,51 +0,0 @@
/****************************************************************************
** Form interface generated from reading ui file 'uiprintdlg.ui'
**
** Created: Tue Sep 4 11:07:29 2001
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef UIPRINTDLG_H
#define UIPRINTDLG_H
#include <qvariant.h>
#include <qdialog.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QFrame;
class QLabel;
class QLineEdit;
class QMultiLineEdit;
class QPushButton;
class UIPrintDlg : public QDialog
{
Q_OBJECT
public:
UIPrintDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~UIPrintDlg();
QLabel* TextLabel3;
QLabel* printerLabel;
QPushButton* configBut;
QFrame* Frame5;
QLabel* TextLabel1;
QLineEdit* printTitle;
QLabel* TextLabel2;
QMultiLineEdit* printComment;
QPushButton* helpBut;
QPushButton* printBut;
QPushButton* cancelBut;
protected:
QVBoxLayout* UIPrintDlgLayout;
QHBoxLayout* Layout2;
QVBoxLayout* Frame5Layout;
QHBoxLayout* Layout28;
bool event( QEvent* );
};
#endif // UIPRINTDLG_H

View File

@ -1,655 +0,0 @@
/****************************************************************************
** Form implementation generated from reading ui file 'uiconfigdlg.ui'
**
** Created: Sun Apr 15 20:03:05 2001
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "uiconfigdlg.h"
#include <qbuttongroup.h>
#include <qcombobox.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
#include <qspinbox.h>
#include <qtabwidget.h>
#include <qtextview.h>
#include <qwidget.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
static const char* const image0_data[] = {
"22 22 4 1",
". c None",
"# c #000000",
"a c #000083",
"b c #4a484a",
"......................",
"......................",
"......................",
"...#........aaaaa.....",
"...##......aaabaaa....",
"...###....aaabb.aaa...",
"...####...aabb...aab..",
"...#####..aab....aab..",
"...######..ab...aaab..",
"...#######..b..aaabb..",
"...########...aaabb...",
"...#########.aaabb....",
"...#####bbbbbaaab.....",
"...##b###.....bbb.....",
"...#bb###b...aaa......",
"....b..###...aaab.....",
".......###b...bbb.....",
"........###...........",
"........###b..........",
".........bbb..........",
"......................",
"......................"};
/*
* Constructs a UIConfigDlg which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
UIConfigDlg::UIConfigDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
QPixmap image0( ( const char** ) image0_data );
if ( !name )
setName( "UIConfigDlg" );
resize( 339, 407 );
setCaption( tr( "QtDMM: Configuration" ) );
setSizeGripEnabled( TRUE );
UIConfigDlgLayout = new QGridLayout( this );
UIConfigDlgLayout->setSpacing( 5 );
UIConfigDlgLayout->setMargin( 10 );
Layout15 = new QHBoxLayout;
Layout15->setSpacing( 5 );
Layout15->setMargin( 0 );
helpBut = new QPushButton( this, "helpBut" );
helpBut->setText( tr( "" ) );
helpBut->setMinimumSize( QSize( 26, 26 ) );
helpBut->setPixmap( image0 );
helpBut->setAutoDefault( FALSE );
QToolTip::add( helpBut, tr( "Direct help" ) );
Layout15->addWidget( helpBut );
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout15->addItem( spacer );
okBut = new QPushButton( this, "okBut" );
okBut->setText( tr( "&OK" ) );
okBut->setAutoDefault( TRUE );
okBut->setDefault( TRUE );
QWhatsThis::add( okBut, tr( "Apply changes and close dialog." ) );
Layout15->addWidget( okBut );
cancelBut = new QPushButton( this, "cancelBut" );
cancelBut->setText( tr( "&Cancel" ) );
cancelBut->setAutoDefault( TRUE );
QWhatsThis::add( cancelBut, tr( "Discard changes and close dialog." ) );
Layout15->addWidget( cancelBut );
UIConfigDlgLayout->addLayout( Layout15, 1, 0 );
tabWidget = new QTabWidget( this, "tabWidget" );
samplePage = new QWidget( tabWidget, "samplePage" );
samplePageLayout = new QVBoxLayout( samplePage );
samplePageLayout->setSpacing( 5 );
samplePageLayout->setMargin( 10 );
ButtonGroup1 = new QButtonGroup( samplePage, "ButtonGroup1" );
ButtonGroup1->setTitle( tr( "Sample" ) );
ButtonGroup1->setExclusive( FALSE );
ButtonGroup1->setColumnLayout(0, Qt::Vertical );
ButtonGroup1->layout()->setSpacing( 0 );
ButtonGroup1->layout()->setMargin( 0 );
ButtonGroup1Layout = new QGridLayout( ButtonGroup1->layout() );
ButtonGroup1Layout->setAlignment( Qt::AlignTop );
ButtonGroup1Layout->setSpacing( 5 );
ButtonGroup1Layout->setMargin( 10 );
sampLabel = new QLabel( ButtonGroup1, "sampLabel" );
sampLabel->setText( tr( "Sample every:" ) );
ButtonGroup1Layout->addWidget( sampLabel, 0, 0 );
sampleEvery = new QLineEdit( ButtonGroup1, "sampleEvery" );
sampleEvery->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, sampleEvery->sizePolicy().hasHeightForWidth() ) );
sampleEvery->setMaximumSize( QSize( 60, 32767 ) );
sampleEvery->setText( tr( "1" ) );
sampleEvery->setMaxLength( 10 );
QWhatsThis::add( sampleEvery, tr( "Enter a integer value for the sampling period. Choose the unit to the right." ) );
ButtonGroup1Layout->addWidget( sampleEvery, 0, 1 );
sampleUnit = new QComboBox( FALSE, ButtonGroup1, "sampleUnit" );
sampleUnit->insertItem( tr( "Seconds" ) );
sampleUnit->insertItem( tr( "Minutes" ) );
sampleUnit->insertItem( tr( "Hours" ) );
sampleUnit->insertItem( tr( "Days" ) );
ButtonGroup1Layout->addWidget( sampleUnit, 0, 2 );
QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
ButtonGroup1Layout->addItem( spacer_2, 0, 3 );
sampLabel_2 = new QLabel( ButtonGroup1, "sampLabel_2" );
sampLabel_2->setText( tr( "Sample time:" ) );
ButtonGroup1Layout->addWidget( sampLabel_2, 1, 0 );
sampleTime = new QLineEdit( ButtonGroup1, "sampleTime" );
sampleTime->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, sampleTime->sizePolicy().hasHeightForWidth() ) );
sampleTime->setMaximumSize( QSize( 60, 32767 ) );
sampleTime->setText( tr( "500" ) );
sampleTime->setMaxLength( 10 );
QWhatsThis::add( sampleTime, tr( "Enter a integer value for the sampling interval. Choose the unit to the right." ) );
ButtonGroup1Layout->addWidget( sampleTime, 1, 1 );
timeUnit = new QComboBox( FALSE, ButtonGroup1, "timeUnit" );
timeUnit->insertItem( tr( "Seconds" ) );
timeUnit->insertItem( tr( "Minutes" ) );
timeUnit->insertItem( tr( "Hours" ) );
timeUnit->insertItem( tr( "Days" ) );
ButtonGroup1Layout->addWidget( timeUnit, 1, 2 );
samplePageLayout->addWidget( ButtonGroup1 );
GroupBox1 = new QGroupBox( samplePage, "GroupBox1" );
GroupBox1->setTitle( tr( "Start" ) );
GroupBox1->setColumnLayout(0, Qt::Vertical );
GroupBox1->layout()->setSpacing( 0 );
GroupBox1->layout()->setMargin( 0 );
GroupBox1Layout = new QVBoxLayout( GroupBox1->layout() );
GroupBox1Layout->setAlignment( Qt::AlignTop );
GroupBox1Layout->setSpacing( 5 );
GroupBox1Layout->setMargin( 10 );
ButtonGroup32 = new QButtonGroup( GroupBox1, "ButtonGroup32" );
ButtonGroup32->setTitle( tr( "" ) );
ButtonGroup32->setFrameShape( QButtonGroup::NoFrame );
ButtonGroup32->setExclusive( FALSE );
ButtonGroup32->setColumnLayout(0, Qt::Vertical );
ButtonGroup32->layout()->setSpacing( 0 );
ButtonGroup32->layout()->setMargin( 0 );
ButtonGroup32Layout = new QVBoxLayout( ButtonGroup32->layout() );
ButtonGroup32Layout->setAlignment( Qt::AlignTop );
ButtonGroup32Layout->setSpacing( 5 );
ButtonGroup32Layout->setMargin( 0 );
Layout23 = new QHBoxLayout;
Layout23->setSpacing( 5 );
Layout23->setMargin( 0 );
manualBut = new QRadioButton( ButtonGroup32, "manualBut" );
manualBut->setText( tr( "Manual" ) );
manualBut->setChecked( TRUE );
QWhatsThis::add( manualBut, tr( "Select this entry if you want to manually start the transient recorder. Use the <b>Start</b> and <b>Stop</b> buttons in the main window to start/stop sampling." ) );
Layout23->addWidget( manualBut );
QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout23->addItem( spacer_3 );
ButtonGroup32Layout->addLayout( Layout23 );
Layout24 = new QHBoxLayout;
Layout24->setSpacing( 5 );
Layout24->setMargin( 0 );
predefinedBut = new QRadioButton( ButtonGroup32, "predefinedBut" );
predefinedBut->setText( tr( "Predefined time" ) );
QWhatsThis::add( predefinedBut, tr( "Select this entry if you want the transient recorder to be started at a predefined time." ) );
Layout24->addWidget( predefinedBut );
QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout24->addItem( spacer_4 );
ButtonGroup32Layout->addLayout( Layout24 );
Layout8 = new QHBoxLayout;
Layout8->setSpacing( 5 );
Layout8->setMargin( 0 );
Layout7 = new QHBoxLayout;
Layout7->setSpacing( 6 );
Layout7->setMargin( 0 );
TextLabel5 = new QLabel( ButtonGroup32, "TextLabel5" );
TextLabel5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, TextLabel5->sizePolicy().hasHeightForWidth() ) );
TextLabel5->setMinimumSize( QSize( 20, 0 ) );
Layout7->addWidget( TextLabel5 );
Layout6 = new QHBoxLayout;
Layout6->setSpacing( 6 );
Layout6->setMargin( 0 );
hour = new QSpinBox( ButtonGroup32, "hour" );
hour->setEnabled( FALSE );
hour->setMaxValue( 23 );
hour->setWrapping( TRUE );
QWhatsThis::add( hour, tr( "Hour of start time." ) );
Layout6->addWidget( hour );
TextLabel3 = new QLabel( ButtonGroup32, "TextLabel3" );
TextLabel3->setEnabled( FALSE );
QFont TextLabel3_font( TextLabel3->font() );
TextLabel3_font.setBold( TRUE );
TextLabel3->setFont( TextLabel3_font );
TextLabel3->setText( tr( ":" ) );
TextLabel3->setAlignment( int( QLabel::AlignCenter ) );
Layout6->addWidget( TextLabel3 );
minute = new QSpinBox( ButtonGroup32, "minute" );
minute->setEnabled( FALSE );
minute->setMaxValue( 59 );
minute->setWrapping( TRUE );
QWhatsThis::add( minute, tr( "Minutes of start time." ) );
Layout6->addWidget( minute );
TextLabel4 = new QLabel( ButtonGroup32, "TextLabel4" );
TextLabel4->setEnabled( FALSE );
QFont TextLabel4_font( TextLabel4->font() );
TextLabel4_font.setBold( TRUE );
TextLabel4->setFont( TextLabel4_font );
TextLabel4->setText( tr( ":" ) );
TextLabel4->setAlignment( int( QLabel::AlignCenter ) );
Layout6->addWidget( TextLabel4 );
second = new QSpinBox( ButtonGroup32, "second" );
second->setEnabled( FALSE );
second->setMaxValue( 59 );
second->setWrapping( TRUE );
QWhatsThis::add( second, tr( "Seconds of start time." ) );
Layout6->addWidget( second );
Layout7->addLayout( Layout6 );
Layout8->addLayout( Layout7 );
QSpacerItem* spacer_5 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout8->addItem( spacer_5 );
ButtonGroup32Layout->addLayout( Layout8 );
Layout25 = new QHBoxLayout;
Layout25->setSpacing( 5 );
Layout25->setMargin( 0 );
triggerBut = new QRadioButton( ButtonGroup32, "triggerBut" );
triggerBut->setText( tr( "Trigger" ) );
QWhatsThis::add( triggerBut, tr( "Select this entry if you want to automatically trigger the sampling. <p>\nYou have two choices:\n<ul>\n<li><b>Raising edge:</b> Sampling is started when the measured value gets bigger than the given threshold.</li>\n<li><b>Falling edge:</b> Sampling is started when the measured value gets lower than the given threshold.</li>\n</ul>" ) );
Layout25->addWidget( triggerBut );
QSpacerItem* spacer_6 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout25->addItem( spacer_6 );
ButtonGroup32Layout->addLayout( Layout25 );
GroupBox1Layout->addWidget( ButtonGroup32 );
ButtonGroup13 = new QButtonGroup( GroupBox1, "ButtonGroup13" );
ButtonGroup13->setTitle( tr( "" ) );
ButtonGroup13->setFrameShape( QButtonGroup::NoFrame );
ButtonGroup13->setExclusive( FALSE );
ButtonGroup13->setColumnLayout(0, Qt::Vertical );
ButtonGroup13->layout()->setSpacing( 0 );
ButtonGroup13->layout()->setMargin( 0 );
ButtonGroup13Layout = new QVBoxLayout( ButtonGroup13->layout() );
ButtonGroup13Layout->setAlignment( Qt::AlignTop );
ButtonGroup13Layout->setSpacing( 0 );
ButtonGroup13Layout->setMargin( 0 );
Layout14 = new QGridLayout;
Layout14->setSpacing( 5 );
Layout14->setMargin( 0 );
QSpacerItem* spacer_7 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout14->addItem( spacer_7, 0, 3 );
fallingThresholdEdit = new QLineEdit( ButtonGroup13, "fallingThresholdEdit" );
fallingThresholdEdit->setEnabled( FALSE );
fallingThresholdEdit->setMaximumSize( QSize( 80, 32767 ) );
fallingThresholdEdit->setText( tr( "0.0" ) );
QWhatsThis::add( fallingThresholdEdit, tr( "Threshold for falling edge." ) );
Layout14->addWidget( fallingThresholdEdit, 1, 2 );
QSpacerItem* spacer_8 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout14->addItem( spacer_8, 1, 3 );
raisingThresholdEdit = new QLineEdit( ButtonGroup13, "raisingThresholdEdit" );
raisingThresholdEdit->setEnabled( FALSE );
raisingThresholdEdit->setMaximumSize( QSize( 80, 32767 ) );
raisingThresholdEdit->setText( tr( "0.0" ) );
QWhatsThis::add( raisingThresholdEdit, tr( "Threshold for raising edge." ) );
Layout14->addWidget( raisingThresholdEdit, 0, 2 );
TextLabel7 = new QLabel( ButtonGroup13, "TextLabel7" );
TextLabel7->setEnabled( FALSE );
TextLabel7->setText( tr( "Threshold:" ) );
Layout14->addWidget( TextLabel7, 0, 1 );
TextLabel8 = new QLabel( ButtonGroup13, "TextLabel8" );
TextLabel8->setEnabled( FALSE );
TextLabel8->setText( tr( "Threshold:" ) );
Layout14->addWidget( TextLabel8, 1, 1 );
Layout9 = new QHBoxLayout;
Layout9->setSpacing( 5 );
Layout9->setMargin( 0 );
TextLabel6 = new QLabel( ButtonGroup13, "TextLabel6" );
TextLabel6->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, TextLabel6->sizePolicy().hasHeightForWidth() ) );
TextLabel6->setMinimumSize( QSize( 20, 0 ) );
Layout9->addWidget( TextLabel6 );
raisingBut = new QRadioButton( ButtonGroup13, "raisingBut" );
raisingBut->setText( tr( "Raising edge" ) );
raisingBut->setEnabled( FALSE );
raisingBut->setChecked( TRUE );
QWhatsThis::add( raisingBut, tr( "Trigger sampling on raising edge." ) );
Layout9->addWidget( raisingBut );
Layout14->addLayout( Layout9, 0, 0 );
Layout10 = new QHBoxLayout;
Layout10->setSpacing( 5 );
Layout10->setMargin( 0 );
TextLabel6_2 = new QLabel( ButtonGroup13, "TextLabel6_2" );
TextLabel6_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, TextLabel6_2->sizePolicy().hasHeightForWidth() ) );
TextLabel6_2->setMinimumSize( QSize( 20, 0 ) );
Layout10->addWidget( TextLabel6_2 );
fallingBut = new QRadioButton( ButtonGroup13, "fallingBut" );
fallingBut->setText( tr( "Falling edge" ) );
fallingBut->setEnabled( FALSE );
QWhatsThis::add( fallingBut, tr( "Trigger sampling on falling edge." ) );
Layout10->addWidget( fallingBut );
Layout14->addLayout( Layout10, 1, 0 );
ButtonGroup13Layout->addLayout( Layout14 );
GroupBox1Layout->addWidget( ButtonGroup13 );
samplePageLayout->addWidget( GroupBox1 );
QSpacerItem* spacer_9 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
samplePageLayout->addItem( spacer_9 );
tabWidget->insertTab( samplePage, tr( "Recorder" ) );
scalePage = new QWidget( tabWidget, "scalePage" );
scalePageLayout = new QVBoxLayout( scalePage );
scalePageLayout->setSpacing( 5 );
scalePageLayout->setMargin( 10 );
ButtonGroup36 = new QButtonGroup( scalePage, "ButtonGroup36" );
ButtonGroup36->setTitle( tr( "Scale" ) );
ButtonGroup36->setColumnLayout(0, Qt::Vertical );
ButtonGroup36->layout()->setSpacing( 0 );
ButtonGroup36->layout()->setMargin( 0 );
ButtonGroup36Layout = new QVBoxLayout( ButtonGroup36->layout() );
ButtonGroup36Layout->setAlignment( Qt::AlignTop );
ButtonGroup36Layout->setSpacing( 5 );
ButtonGroup36Layout->setMargin( 10 );
autoScaleBut = new QRadioButton( ButtonGroup36, "autoScaleBut" );
autoScaleBut->setText( tr( "Automatic" ) );
autoScaleBut->setChecked( TRUE );
QWhatsThis::add( autoScaleBut, tr( "Select this entry if you want automatic scaling of the vertical scale in the transient recorder." ) );
ButtonGroup36Layout->addWidget( autoScaleBut );
manualScaleBut = new QRadioButton( ButtonGroup36, "manualScaleBut" );
manualScaleBut->setText( tr( "Manual" ) );
QWhatsThis::add( manualScaleBut, tr( "Select this entry if you want to set the minimum and maximum value for the scale manually. If selected enter the minimum and maximum values below." ) );
ButtonGroup36Layout->addWidget( manualScaleBut );
Layout15_2 = new QHBoxLayout;
Layout15_2->setSpacing( 5 );
Layout15_2->setMargin( 0 );
TextLabel9 = new QLabel( ButtonGroup36, "TextLabel9" );
TextLabel9->setMinimumSize( QSize( 20, 0 ) );
Layout15_2->addWidget( TextLabel9 );
TextLabel10 = new QLabel( ButtonGroup36, "TextLabel10" );
TextLabel10->setEnabled( FALSE );
TextLabel10->setText( tr( "Minimum:" ) );
Layout15_2->addWidget( TextLabel10 );
scaleMinEd = new QLineEdit( ButtonGroup36, "scaleMinEd" );
scaleMinEd->setEnabled( FALSE );
scaleMinEd->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, scaleMinEd->sizePolicy().hasHeightForWidth() ) );
scaleMinEd->setMinimumSize( QSize( 60, 0 ) );
scaleMinEd->setMaximumSize( QSize( 60, 32767 ) );
scaleMinEd->setMaxLength( 9 );
scaleMinEd->setText( tr( "-3.999" ) );
QWhatsThis::add( scaleMinEd, tr( "Enter the minimum scale value here." ) );
Layout15_2->addWidget( scaleMinEd );
TextLabel10_2 = new QLabel( ButtonGroup36, "TextLabel10_2" );
TextLabel10_2->setEnabled( FALSE );
TextLabel10_2->setText( tr( "Maximum:" ) );
Layout15_2->addWidget( TextLabel10_2 );
scaleMaxEd = new QLineEdit( ButtonGroup36, "scaleMaxEd" );
scaleMaxEd->setEnabled( FALSE );
scaleMaxEd->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, scaleMaxEd->sizePolicy().hasHeightForWidth() ) );
scaleMaxEd->setMinimumSize( QSize( 60, 0 ) );
scaleMaxEd->setMaximumSize( QSize( 60, 32767 ) );
scaleMaxEd->setMaxLength( 9 );
scaleMaxEd->setText( tr( "3.999" ) );
QWhatsThis::add( scaleMaxEd, tr( "Enter the maximum scale value here." ) );
Layout15_2->addWidget( scaleMaxEd );
QSpacerItem* spacer_10 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout15_2->addItem( spacer_10 );
ButtonGroup36Layout->addLayout( Layout15_2 );
scalePageLayout->addWidget( ButtonGroup36 );
ButtonGroup37 = new QButtonGroup( scalePage, "ButtonGroup37" );
ButtonGroup37->setTitle( tr( "Window" ) );
ButtonGroup37->setColumnLayout(0, Qt::Vertical );
ButtonGroup37->layout()->setSpacing( 0 );
ButtonGroup37->layout()->setMargin( 0 );
ButtonGroup37Layout = new QGridLayout( ButtonGroup37->layout() );
ButtonGroup37Layout->setAlignment( Qt::AlignTop );
ButtonGroup37Layout->setSpacing( 5 );
ButtonGroup37Layout->setMargin( 10 );
TextLabel11 = new QLabel( ButtonGroup37, "TextLabel11" );
TextLabel11->setText( tr( "Size:" ) );
ButtonGroup37Layout->addWidget( TextLabel11, 0, 0 );
TextLabel12 = new QLabel( ButtonGroup37, "TextLabel12" );
TextLabel12->setText( tr( "Max. length:" ) );
ButtonGroup37Layout->addWidget( TextLabel12, 1, 0 );
QSpacerItem* spacer_11 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
ButtonGroup37Layout->addItem( spacer_11, 0, 3 );
sizeUnit = new QComboBox( FALSE, ButtonGroup37, "sizeUnit" );
sizeUnit->insertItem( tr( "Seconds" ) );
sizeUnit->insertItem( tr( "Minutes" ) );
sizeUnit->insertItem( tr( "Hours" ) );
sizeUnit->insertItem( tr( "Days" ) );
ButtonGroup37Layout->addWidget( sizeUnit, 0, 2 );
winSize = new QLineEdit( ButtonGroup37, "winSize" );
winSize->setMinimumSize( QSize( 60, 0 ) );
winSize->setMaximumSize( QSize( 60, 32767 ) );
winSize->setText( tr( "600" ) );
winSize->setMaxLength( 10 );
QWhatsThis::add( winSize, tr( "Enter the size (length in time) of the visual part of the transient recorder here. Choose the unit to the right." ) );
ButtonGroup37Layout->addWidget( winSize, 0, 1 );
winLength = new QLineEdit( ButtonGroup37, "winLength" );
winLength->setMinimumSize( QSize( 60, 0 ) );
winLength->setMaximumSize( QSize( 60, 32767 ) );
winLength->setText( tr( "3600" ) );
winLength->setMaxLength( 10 );
QWhatsThis::add( winLength, tr( "Maximum time for sampling. If this value is reached sampling is not stopped but the first values are discarded." ) );
ButtonGroup37Layout->addWidget( winLength, 1, 1 );
lengthUnit = new QComboBox( FALSE, ButtonGroup37, "lengthUnit" );
lengthUnit->insertItem( tr( "Seconds" ) );
lengthUnit->insertItem( tr( "Minutes" ) );
lengthUnit->insertItem( tr( "Hours" ) );
lengthUnit->insertItem( tr( "Days" ) );
ButtonGroup37Layout->addWidget( lengthUnit, 1, 2 );
scalePageLayout->addWidget( ButtonGroup37 );
QSpacerItem* spacer_12 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
scalePageLayout->addItem( spacer_12 );
tabWidget->insertTab( scalePage, tr( "Scale" ) );
dmmPage = new QWidget( tabWidget, "dmmPage" );
dmmPageLayout = new QVBoxLayout( dmmPage );
dmmPageLayout->setSpacing( 5 );
dmmPageLayout->setMargin( 10 );
ButtonGroup11 = new QButtonGroup( dmmPage, "ButtonGroup11" );
ButtonGroup11->setTitle( tr( "Port settings" ) );
ButtonGroup11->setColumnLayout(0, Qt::Vertical );
ButtonGroup11->layout()->setSpacing( 0 );
ButtonGroup11->layout()->setMargin( 0 );
ButtonGroup11Layout = new QGridLayout( ButtonGroup11->layout() );
ButtonGroup11Layout->setAlignment( Qt::AlignTop );
ButtonGroup11Layout->setSpacing( 5 );
ButtonGroup11Layout->setMargin( 10 );
TextLabel1 = new QLabel( ButtonGroup11, "TextLabel1" );
TextLabel1->setText( tr( "Baud rate:" ) );
ButtonGroup11Layout->addWidget( TextLabel1, 0, 0 );
baudRate = new QComboBox( FALSE, ButtonGroup11, "baudRate" );
baudRate->insertItem( tr( "600 baud" ) );
baudRate->insertItem( tr( "1200 baud" ) );
baudRate->insertItem( tr( "1800 baud" ) );
baudRate->insertItem( tr( "2400 baud" ) );
baudRate->insertItem( tr( "4800 baud" ) );
baudRate->insertItem( tr( "9600 baud" ) );
baudRate->setCurrentItem( 0 );
QWhatsThis::add( baudRate, tr( "Select the baud rate for the DMM here. If you encounter problems connecting to your DMM try lowering the baud rate. I had some problems with my <b>Metex ME-32</b>. The Documentation said 1200 baud but it only worked at 600." ) );
ButtonGroup11Layout->addWidget( baudRate, 0, 1 );
port = new QComboBox( FALSE, ButtonGroup11, "port" );
port->insertItem( tr( "/dev/ttyS0" ) );
port->insertItem( tr( "/dev/ttyS1" ) );
port->insertItem( tr( "/dev/ttyS2" ) );
port->insertItem( tr( "/dev/ttyS3" ) );
port->setCurrentItem( 0 );
QWhatsThis::add( port, tr( "Choose the serial device here. <i>(Hint for DOS people: /dev/ttyS0 corresponds to COM1. /dev/ttyS1 to COM2 ...)</i>" ) );
ButtonGroup11Layout->addWidget( port, 1, 1 );
QSpacerItem* spacer_13 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
ButtonGroup11Layout->addItem( spacer_13, 0, 2 );
QSpacerItem* spacer_14 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
ButtonGroup11Layout->addItem( spacer_14, 1, 2 );
TextLabel2 = new QLabel( ButtonGroup11, "TextLabel2" );
TextLabel2->setText( tr( "Port:" ) );
ButtonGroup11Layout->addWidget( TextLabel2, 1, 0 );
dmmPageLayout->addWidget( ButtonGroup11 );
QSpacerItem* spacer_15 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
dmmPageLayout->addItem( spacer_15 );
tabWidget->insertTab( dmmPage, tr( "DMM" ) );
copyTab = new QWidget( tabWidget, "copyTab" );
copyTabLayout = new QGridLayout( copyTab );
copyTabLayout->setSpacing( 5 );
copyTabLayout->setMargin( 10 );
TextView1 = new QTextView( copyTab, "TextView1" );
TextView1->setText( tr( "<center><h1>QtDMM</h1>\nA simple display software for <b>Metex</b> and compatible hand held digital multimeter including min/max memory and a configurable transient recorder with export and printing function.<p>\n&copy; 2001 Matthias Toussaint<br><font color=blue>&lt;qtdmm@mtoussaint.de&gt;</font><p>\n<b>QtDMM</b> uses the platform independent toolkit <b>Qt</b> from Trolltech AS Norway <font color=blue>&lt;www.trolltech.com&gt;</font> and is licensed under <b>GPL</b>." ) );
QWhatsThis::add( TextView1, tr( "Just some blurb." ) );
copyTabLayout->addWidget( TextView1, 0, 0 );
tabWidget->insertTab( copyTab, tr( "Copyright" ) );
UIConfigDlgLayout->addWidget( tabWidget, 0, 0 );
// signals and slots connections
connect( okBut, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( cancelBut, SIGNAL( clicked() ), this, SLOT( reject() ) );
connect( predefinedBut, SIGNAL( toggled(bool) ), hour, SLOT( setEnabled(bool) ) );
connect( predefinedBut, SIGNAL( toggled(bool) ), TextLabel3, SLOT( setEnabled(bool) ) );
connect( predefinedBut, SIGNAL( toggled(bool) ), minute, SLOT( setEnabled(bool) ) );
connect( predefinedBut, SIGNAL( toggled(bool) ), TextLabel4, SLOT( setEnabled(bool) ) );
connect( predefinedBut, SIGNAL( toggled(bool) ), second, SLOT( setEnabled(bool) ) );
connect( triggerBut, SIGNAL( toggled(bool) ), raisingBut, SLOT( setEnabled(bool) ) );
connect( triggerBut, SIGNAL( toggled(bool) ), fallingBut, SLOT( setEnabled(bool) ) );
connect( triggerBut, SIGNAL( toggled(bool) ), TextLabel7, SLOT( setEnabled(bool) ) );
connect( triggerBut, SIGNAL( toggled(bool) ), TextLabel8, SLOT( setEnabled(bool) ) );
connect( triggerBut, SIGNAL( toggled(bool) ), raisingThresholdEdit, SLOT( setEnabled(bool) ) );
connect( triggerBut, SIGNAL( toggled(bool) ), fallingThresholdEdit, SLOT( setEnabled(bool) ) );
connect( manualScaleBut, SIGNAL( toggled(bool) ), scaleMinEd, SLOT( setEnabled(bool) ) );
connect( manualScaleBut, SIGNAL( toggled(bool) ), TextLabel10, SLOT( setEnabled(bool) ) );
connect( manualScaleBut, SIGNAL( toggled(bool) ), TextLabel10_2, SLOT( setEnabled(bool) ) );
connect( manualScaleBut, SIGNAL( toggled(bool) ), scaleMaxEd, SLOT( setEnabled(bool) ) );
// tab order
setTabOrder( sampleEvery, sampleUnit );
setTabOrder( sampleUnit, sampleTime );
setTabOrder( sampleTime, timeUnit );
setTabOrder( timeUnit, manualBut );
setTabOrder( manualBut, predefinedBut );
setTabOrder( predefinedBut, hour );
setTabOrder( hour, minute );
setTabOrder( minute, second );
setTabOrder( second, triggerBut );
setTabOrder( triggerBut, raisingBut );
setTabOrder( raisingBut, raisingThresholdEdit );
setTabOrder( raisingThresholdEdit, fallingBut );
setTabOrder( fallingBut, fallingThresholdEdit );
setTabOrder( fallingThresholdEdit, autoScaleBut );
setTabOrder( autoScaleBut, manualScaleBut );
setTabOrder( manualScaleBut, scaleMinEd );
setTabOrder( scaleMinEd, scaleMaxEd );
setTabOrder( scaleMaxEd, winSize );
setTabOrder( winSize, sizeUnit );
setTabOrder( sizeUnit, winLength );
setTabOrder( winLength, lengthUnit );
setTabOrder( lengthUnit, baudRate );
setTabOrder( baudRate, port );
setTabOrder( port, helpBut );
setTabOrder( helpBut, okBut );
setTabOrder( okBut, cancelBut );
setTabOrder( cancelBut, tabWidget );
setTabOrder( tabWidget, TextView1 );
}
/*
* Destroys the object and frees any allocated resources
*/
UIConfigDlg::~UIConfigDlg()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Main event handler. Reimplemented to handle application
* font changes
*/
bool UIConfigDlg::event( QEvent* ev )
{
bool ret = QDialog::event( ev );
if ( ev->type() == QEvent::ApplicationFontChange ) {
QFont TextLabel3_font( TextLabel3->font() );
TextLabel3_font.setBold( TRUE );
TextLabel3->setFont( TextLabel3_font );
QFont TextLabel4_font( TextLabel4->font() );
TextLabel4_font.setBold( TRUE );
TextLabel4->setFont( TextLabel4_font );
}
return ret;
}

View File

@ -1,121 +0,0 @@
/****************************************************************************
** Form interface generated from reading ui file 'uiconfigdlg.ui'
**
** Created: Sun Apr 15 20:02:38 2001
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef UICONFIGDLG_H
#define UICONFIGDLG_H
#include <qvariant.h>
#include <qdialog.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QButtonGroup;
class QComboBox;
class QGroupBox;
class QLabel;
class QLineEdit;
class QPushButton;
class QRadioButton;
class QSpinBox;
class QTabWidget;
class QTextView;
class QWidget;
class UIConfigDlg : public QDialog
{
Q_OBJECT
public:
UIConfigDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~UIConfigDlg();
QPushButton* helpBut;
QPushButton* okBut;
QPushButton* cancelBut;
QTabWidget* tabWidget;
QWidget* samplePage;
QButtonGroup* ButtonGroup1;
QLabel* sampLabel;
QLineEdit* sampleEvery;
QComboBox* sampleUnit;
QLabel* sampLabel_2;
QLineEdit* sampleTime;
QComboBox* timeUnit;
QGroupBox* GroupBox1;
QButtonGroup* ButtonGroup32;
QRadioButton* manualBut;
QRadioButton* predefinedBut;
QLabel* TextLabel5;
QSpinBox* hour;
QLabel* TextLabel3;
QSpinBox* minute;
QLabel* TextLabel4;
QSpinBox* second;
QRadioButton* triggerBut;
QButtonGroup* ButtonGroup13;
QLineEdit* fallingThresholdEdit;
QLineEdit* raisingThresholdEdit;
QLabel* TextLabel7;
QLabel* TextLabel8;
QLabel* TextLabel6;
QRadioButton* raisingBut;
QLabel* TextLabel6_2;
QRadioButton* fallingBut;
QWidget* scalePage;
QButtonGroup* ButtonGroup36;
QRadioButton* autoScaleBut;
QRadioButton* manualScaleBut;
QLabel* TextLabel9;
QLabel* TextLabel10;
QLineEdit* scaleMinEd;
QLabel* TextLabel10_2;
QLineEdit* scaleMaxEd;
QButtonGroup* ButtonGroup37;
QLabel* TextLabel11;
QLabel* TextLabel12;
QComboBox* sizeUnit;
QLineEdit* winSize;
QLineEdit* winLength;
QComboBox* lengthUnit;
QWidget* dmmPage;
QButtonGroup* ButtonGroup11;
QLabel* TextLabel1;
QComboBox* baudRate;
QComboBox* port;
QLabel* TextLabel2;
QWidget* copyTab;
QTextView* TextView1;
protected:
QGridLayout* UIConfigDlgLayout;
QHBoxLayout* Layout15;
QVBoxLayout* samplePageLayout;
QGridLayout* ButtonGroup1Layout;
QVBoxLayout* GroupBox1Layout;
QVBoxLayout* ButtonGroup32Layout;
QHBoxLayout* Layout23;
QHBoxLayout* Layout24;
QHBoxLayout* Layout8;
QHBoxLayout* Layout7;
QHBoxLayout* Layout6;
QHBoxLayout* Layout25;
QVBoxLayout* ButtonGroup13Layout;
QGridLayout* Layout14;
QHBoxLayout* Layout9;
QHBoxLayout* Layout10;
QVBoxLayout* scalePageLayout;
QVBoxLayout* ButtonGroup36Layout;
QHBoxLayout* Layout15_2;
QGridLayout* ButtonGroup37Layout;
QVBoxLayout* dmmPageLayout;
QGridLayout* ButtonGroup11Layout;
QGridLayout* copyTabLayout;
bool event( QEvent* );
};
#endif // UICONFIGDLG_H

File diff suppressed because it is too large Load Diff

View File

@ -1,766 +0,0 @@
/****************************************************************************
** Form implementation generated from reading ui file 'uimainwid.ui'
**
** Created: Sun Apr 15 20:03:11 2001
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "uimainwid.h"
#include <qframe.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include "dmmgraph.h"
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
static const char* const image0_data[] = {
"22 22 4 1",
". c None",
"# c #000000",
"a c #000083",
"b c #4a484a",
"......................",
"......................",
"......................",
"...#........aaaaa.....",
"...##......aaabaaa....",
"...###....aaabb.aaa...",
"...####...aabb...aab..",
"...#####..aab....aab..",
"...######..ab...aaab..",
"...#######..b..aaabb..",
"...########...aaabb...",
"...#########.aaabb....",
"...#####bbbbbaaab.....",
"...##b###.....bbb.....",
"...#bb###b...aaa......",
"....b..###...aaab.....",
".......###b...bbb.....",
"........###...........",
"........###b..........",
".........bbb..........",
"......................",
"......................"};
/*
* Constructs a UIMainWid which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
UIMainWid::UIMainWid( QWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl )
{
QPixmap image0( ( const char** ) image0_data );
if ( !name )
setName( "UIMainWid" );
resize( 570, 360 );
setCaption( tr( "QtDMM: (c) 2001 M. Toussaint" ) );
UIMainWidLayout = new QGridLayout( this );
UIMainWidLayout->setSpacing( 4 );
UIMainWidLayout->setMargin( 8 );
Line1 = new QFrame( this, "Line1" );
Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken );
UIMainWidLayout->addMultiCellWidget( Line1, 4, 4, 0, 3 );
connectBut = new QPushButton( this, "connectBut" );
connectBut->setText( tr( "Connect" ) );
connectBut->setAutoDefault( FALSE );
connectBut->setToggleButton( TRUE );
QWhatsThis::add( connectBut, tr( "Click here to connect to your multi meter." ) );
UIMainWidLayout->addWidget( connectBut, 0, 1 );
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
UIMainWidLayout->addItem( spacer, 0, 2 );
TextLabel7 = new QLabel( this, "TextLabel7" );
TextLabel7->setText( tr( "<center><b>QtDMM</b><br>&copy; 2001<br>M.Toussaint</center>" ) );
TextLabel7->setTextFormat( QLabel::RichText );
TextLabel7->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, TextLabel7->sizePolicy().hasHeightForWidth() ) );
TextLabel7->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
UIMainWidLayout->addMultiCellWidget( TextLabel7, 0, 1, 3, 3 );
resetBut = new QPushButton( this, "resetBut" );
resetBut->setText( tr( "Reset" ) );
resetBut->setToggleButton( FALSE );
resetBut->setAutoDefault( FALSE );
QWhatsThis::add( resetBut, tr( "Click this button to reset the memory for the min/max values to the left of the main display." ) );
UIMainWidLayout->addWidget( resetBut, 1, 1 );
Frame3 = new QFrame( this, "Frame3" );
Frame3->setFrameShadow( QFrame::Sunken );
Frame3->setFrameShape( QFrame::StyledPanel );
QPalette pal;
QColorGroup cg;
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
Frame3->setPalette( pal );
Frame3Layout = new QGridLayout( Frame3 );
Frame3Layout->setSpacing( 2 );
Frame3Layout->setMargin( 4 );
minValue = new QLabel( Frame3, "minValue" );
minValue->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, minValue->sizePolicy().hasHeightForWidth() ) );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
minValue->setPalette( pal );
QFont minValue_font( minValue->font() );
minValue_font.setFamily( "adobe-courier" );
minValue_font.setPointSize( 18 );
minValue_font.setBold( TRUE );
minValue->setFont( minValue_font );
minValue->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
minValue->setMinimumSize( QSize( 70, 0 ) );
QWhatsThis::add( minValue, tr( "Here you see the smallest measured value. You can clear this memory by clicking the <b>Reset</b> button to the right." ) );
Frame3Layout->addWidget( minValue, 0, 1 );
minUnit = new QLabel( Frame3, "minUnit" );
minUnit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, minUnit->sizePolicy().hasHeightForWidth() ) );
minUnit->setMinimumSize( QSize( 40, 0 ) );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
minUnit->setPalette( pal );
QFont minUnit_font( minUnit->font() );
minUnit_font.setBold( TRUE );
minUnit->setFont( minUnit_font );
minUnit->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignLeft ) );
Frame3Layout->addWidget( minUnit, 0, 2 );
maxUnit = new QLabel( Frame3, "maxUnit" );
maxUnit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, maxUnit->sizePolicy().hasHeightForWidth() ) );
maxUnit->setMinimumSize( QSize( 40, 0 ) );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
maxUnit->setPalette( pal );
QFont maxUnit_font( maxUnit->font() );
maxUnit_font.setBold( TRUE );
maxUnit->setFont( maxUnit_font );
maxUnit->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignLeft ) );
Frame3Layout->addWidget( maxUnit, 1, 2 );
TextLabel2 = new QLabel( Frame3, "TextLabel2" );
TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, TextLabel2->sizePolicy().hasHeightForWidth() ) );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
TextLabel2->setPalette( pal );
TextLabel2->setText( tr( "Max:" ) );
Frame3Layout->addWidget( TextLabel2, 1, 0 );
maxValue = new QLabel( Frame3, "maxValue" );
maxValue->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, maxValue->sizePolicy().hasHeightForWidth() ) );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
maxValue->setPalette( pal );
QFont maxValue_font( maxValue->font() );
maxValue_font.setFamily( "adobe-courier" );
maxValue_font.setPointSize( 18 );
maxValue_font.setBold( TRUE );
maxValue->setFont( maxValue_font );
maxValue->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
maxValue->setMinimumSize( QSize( 70, 0 ) );
QWhatsThis::add( maxValue, tr( "Here you see the largest measured value. You can clear this memory by clicking the <b>Reset</b> button to the right." ) );
Frame3Layout->addWidget( maxValue, 1, 1 );
TextLabel1 = new QLabel( Frame3, "TextLabel1" );
TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, TextLabel1->sizePolicy().hasHeightForWidth() ) );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
TextLabel1->setPalette( pal );
TextLabel1->setText( tr( "Min:" ) );
Frame3Layout->addWidget( TextLabel1, 0, 0 );
Layout17 = new QGridLayout;
Layout17->setSpacing( 6 );
Layout17->setMargin( 0 );
value = new QLabel( Frame3, "value" );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
value->setPalette( pal );
QFont value_font( value->font() );
value_font.setFamily( "adobe-courier" );
value_font.setPointSize( 28 );
value_font.setBold( TRUE );
value->setFont( value_font );
value->setText( tr( "0.000" ) );
value->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, value->sizePolicy().hasHeightForWidth() ) );
value->setMinimumSize( QSize( 120, 0 ) );
value->setAlignment( int( QLabel::AlignCenter ) );
QWhatsThis::add( value, tr( "Here you see the current measured value. The display is updated once per second." ) );
Layout17->addWidget( value, 0, 0 );
unit = new QLabel( Frame3, "unit" );
unit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, unit->sizePolicy().hasHeightForWidth() ) );
unit->setMinimumSize( QSize( 50, 0 ) );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 237, 237, 237) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 220, 220, 220) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 253, 253, 253) );
cg.setColor( QColorGroup::Dark, QColor( 110, 110, 110) );
cg.setColor( QColorGroup::Mid, QColor( 146, 146, 146) );
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( 214, 220, 201) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 100, 100, 145) );
cg.setColor( QColorGroup::HighlightedText, white );
pal.setDisabled( cg );
unit->setPalette( pal );
QFont unit_font( unit->font() );
unit_font.setPointSize( 12 );
unit_font.setBold( TRUE );
unit->setFont( unit_font );
QWhatsThis::add( unit, tr( "Here you see the unit of the measured value." ) );
Layout17->addWidget( unit, 0, 1 );
Frame3Layout->addMultiCellLayout( Layout17, 0, 1, 3, 3 );
UIMainWidLayout->addMultiCellWidget( Frame3, 0, 1, 0, 0 );
Line3 = new QFrame( this, "Line3" );
Line3->setFrameStyle( QFrame::HLine | QFrame::Sunken );
UIMainWidLayout->addMultiCellWidget( Line3, 2, 2, 0, 3 );
Layout5 = new QHBoxLayout;
Layout5->setSpacing( 5 );
Layout5->setMargin( 0 );
graph = new DMMGraph( this, "graph" );
graph->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, graph->sizePolicy().hasHeightForWidth() ) );
graph->setCursor( QCursor( 2 ) );
QWhatsThis::add( graph, tr( "This is the plotting area for the transient recorder. It is widely configurable by clicking the <b>config ...</b> button to the right. Data aquisition may be started by hand, at a specific time or automatically triggered by the measured value itself <i>(See configuration dialog)</i><p>\nThe maximum resolution for data aquisition is one second, but may also be configured to sample once a week or what ever you want.\n<p>\n<b>Note:</b> Connecting to the DMM as well as a change of the measuring unit automatically clears the graph." ) );
Layout5->addWidget( graph );
Layout4 = new QVBoxLayout;
Layout4->setSpacing( 4 );
Layout4->setMargin( 0 );
startBut = new QPushButton( this, "startBut" );
startBut->setText( tr( "&Start" ) );
startBut->setAutoDefault( FALSE );
startBut->setEnabled( FALSE );
QWhatsThis::add( startBut, tr( "Click here to start the transient recorder <i>(Only in manual mode. See configuration dialog)</i>" ) );
Layout4->addWidget( startBut );
stopBut = new QPushButton( this, "stopBut" );
stopBut->setText( tr( "Sto&p" ) );
stopBut->setAutoDefault( FALSE );
stopBut->setEnabled( FALSE );
QWhatsThis::add( stopBut, tr( "Click here to stop the transient recorder." ) );
Layout4->addWidget( stopBut );
clearBut = new QPushButton( this, "clearBut" );
clearBut->setText( tr( "&Clear" ) );
clearBut->setAutoDefault( FALSE );
QWhatsThis::add( clearBut, tr( "Click here to clear the graph <i>(Warning: You can't undo that)</i>" ) );
Layout4->addWidget( clearBut );
QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
Layout4->addItem( spacer_2 );
configBut = new QPushButton( this, "configBut" );
configBut->setText( tr( "Config ..." ) );
configBut->setAutoDefault( FALSE );
QWhatsThis::add( configBut, tr( "Click here to call the configuration dialog. In this dialog you can configure the sampling rate, scaling of the graph, port settings etc. <i>(Note: You have to be disconnected in order to be able to call the configuration dialog)</i>" ) );
Layout4->addWidget( configBut );
Layout5->addLayout( Layout4 );
UIMainWidLayout->addMultiCellLayout( Layout5, 3, 3, 0, 3 );
Layout27 = new QHBoxLayout;
Layout27->setSpacing( 4 );
Layout27->setMargin( 0 );
helpBut = new QPushButton( this, "helpBut" );
helpBut->setText( tr( "" ) );
helpBut->setPixmap( image0 );
helpBut->setMinimumSize( QSize( 26, 26 ) );
helpBut->setAutoDefault( FALSE );
QToolTip::add( helpBut, tr( "Direct help" ) );
Layout27->addWidget( helpBut );
quitBut = new QPushButton( this, "quitBut" );
quitBut->setText( tr( "&Quit" ) );
quitBut->setAutoDefault( FALSE );
QWhatsThis::add( quitBut, tr( "You guessed it :) Click here to quit the program. All settings are saved in the file <tt>\".qtdmmrc\"</tt>" ) );
Layout27->addWidget( quitBut );
QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout27->addItem( spacer_3 );
printBut = new QPushButton( this, "printBut" );
printBut->setText( tr( "&Print ..." ) );
printBut->setAutoDefault( FALSE );
QWhatsThis::add( printBut, tr( "Click here to print the graph. <i>(Note: This will always print the visible portion of your window)</i>" ) );
Layout27->addWidget( printBut );
exportBut = new QPushButton( this, "exportBut" );
exportBut->setText( tr( "&Export ..." ) );
exportBut->setAutoDefault( FALSE );
QWhatsThis::add( exportBut, tr( "Click here to export the sampled data as tab separated list. The data format is:<br>\n<b>DD.MM.YYYY</b> TAB <b>HH:MM:SS</b> TAB <b>value</b> TAB <b>unit</b><p>\n<i>(Note: This will always export all your data. Depending the way you configured the recorder this may result in huge files!)</i>" ) );
Layout27->addWidget( exportBut );
UIMainWidLayout->addMultiCellLayout( Layout27, 5, 5, 0, 3 );
Layout27_2 = new QHBoxLayout;
Layout27_2->setSpacing( 1 );
Layout27_2->setMargin( 0 );
statusBar = new QLabel( this, "statusBar" );
statusBar->setFrameShape( QLabel::Panel );
statusBar->setFrameShadow( QLabel::Sunken );
statusBar->setText( tr( "Not connected" ) );
statusBar->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, statusBar->sizePolicy().hasHeightForWidth() ) );
QWhatsThis::add( statusBar, tr( "Here you find some status information and error messages that may occur, when you have problems connecting to your DMM." ) );
Layout27_2->addWidget( statusBar );
infoLabel = new QLabel( this, "infoLabel" );
infoLabel->setText( tr( "1/10000" ) );
infoLabel->setFrameShape( QLabel::Panel );
infoLabel->setFrameShadow( QLabel::Sunken );
infoLabel->setMinimumSize( QSize( 200, 0 ) );
Layout27_2->addWidget( infoLabel );
UIMainWidLayout->addMultiCellLayout( Layout27_2, 6, 6, 0, 3 );
// signals and slots connections
connect( connectBut, SIGNAL( toggled(bool) ), configBut, SLOT( setDisabled(bool) ) );
}
/*
* Destroys the object and frees any allocated resources
*/
UIMainWid::~UIMainWid()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Main event handler. Reimplemented to handle application
* font changes
*/
bool UIMainWid::event( QEvent* ev )
{
bool ret = QWidget::event( ev );
if ( ev->type() == QEvent::ApplicationFontChange ) {
QFont minValue_font( minValue->font() );
minValue_font.setFamily( "adobe-courier" );
minValue_font.setPointSize( 18 );
minValue_font.setBold( TRUE );
minValue->setFont( minValue_font );
QFont minUnit_font( minUnit->font() );
minUnit_font.setBold( TRUE );
minUnit->setFont( minUnit_font );
QFont maxUnit_font( maxUnit->font() );
maxUnit_font.setBold( TRUE );
maxUnit->setFont( maxUnit_font );
QFont maxValue_font( maxValue->font() );
maxValue_font.setFamily( "adobe-courier" );
maxValue_font.setPointSize( 18 );
maxValue_font.setBold( TRUE );
maxValue->setFont( maxValue_font );
QFont value_font( value->font() );
value_font.setFamily( "adobe-courier" );
value_font.setPointSize( 28 );
value_font.setBold( TRUE );
value->setFont( value_font );
QFont unit_font( unit->font() );
unit_font.setPointSize( 12 );
unit_font.setBold( TRUE );
unit->setFont( unit_font );
}
return ret;
}

View File

@ -1,67 +0,0 @@
/****************************************************************************
** Form interface generated from reading ui file 'uimainwid.ui'
**
** Created: Sun Apr 15 20:02:39 2001
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef UIMAINWID_H
#define UIMAINWID_H
#include <qvariant.h>
#include <qwidget.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class DMMGraph;
class QFrame;
class QLabel;
class QPushButton;
class UIMainWid : public QWidget
{
Q_OBJECT
public:
UIMainWid( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~UIMainWid();
QFrame* Line1;
QPushButton* connectBut;
QLabel* TextLabel7;
QPushButton* resetBut;
QFrame* Frame3;
QLabel* minValue;
QLabel* minUnit;
QLabel* maxUnit;
QLabel* TextLabel2;
QLabel* maxValue;
QLabel* TextLabel1;
QLabel* value;
QLabel* unit;
QFrame* Line3;
DMMGraph* graph;
QPushButton* startBut;
QPushButton* stopBut;
QPushButton* clearBut;
QPushButton* configBut;
QPushButton* helpBut;
QPushButton* quitBut;
QPushButton* printBut;
QPushButton* exportBut;
QLabel* statusBar;
QLabel* infoLabel;
protected:
QGridLayout* UIMainWidLayout;
QGridLayout* Frame3Layout;
QGridLayout* Layout17;
QHBoxLayout* Layout5;
QVBoxLayout* Layout4;
QHBoxLayout* Layout27;
QHBoxLayout* Layout27_2;
bool event( QEvent* );
};
#endif // UIMAINWID_H

File diff suppressed because it is too large Load Diff

View File

@ -1,185 +0,0 @@
/****************************************************************************
** Form implementation generated from reading ui file 'uiprintdlg.ui'
**
** Created: Sun Apr 15 20:03:16 2001
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "uiprintdlg.h"
#include <qframe.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qmultilineedit.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
static const char* const image0_data[] = {
"22 22 4 1",
". c None",
"# c #000000",
"a c #000083",
"b c #4a484a",
"......................",
"......................",
"......................",
"...#........aaaaa.....",
"...##......aaabaaa....",
"...###....aaabb.aaa...",
"...####...aabb...aab..",
"...#####..aab....aab..",
"...######..ab...aaab..",
"...#######..b..aaabb..",
"...########...aaabb...",
"...#########.aaabb....",
"...#####bbbbbaaab.....",
"...##b###.....bbb.....",
"...#bb###b...aaa......",
"....b..###...aaab.....",
".......###b...bbb.....",
"........###...........",
"........###b..........",
".........bbb..........",
"......................",
"......................"};
/*
* Constructs a UIPrintDlg which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
UIPrintDlg::UIPrintDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
QPixmap image0( ( const char** ) image0_data );
if ( !name )
setName( "UIPrintDlg" );
resize( 592, 362 );
setCaption( tr( "QtDMM: Print graph ..." ) );
UIPrintDlgLayout = new QGridLayout( this );
UIPrintDlgLayout->setSpacing( 4 );
UIPrintDlgLayout->setMargin( 8 );
Line4 = new QFrame( this, "Line4" );
Line4->setFrameStyle( QFrame::HLine | QFrame::Sunken );
UIPrintDlgLayout->addMultiCellWidget( Line4, 1, 1, 0, 2 );
configBut = new QPushButton( this, "configBut" );
configBut->setText( tr( "Configure ..." ) );
configBut->setAutoDefault( FALSE );
QWhatsThis::add( configBut, tr( "Click here to configure the printer." ) );
UIPrintDlgLayout->addWidget( configBut, 0, 2 );
TextLabel2 = new QLabel( this, "TextLabel2" );
TextLabel2->setText( tr( "Comment:" ) );
TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
UIPrintDlgLayout->addWidget( TextLabel2, 3, 0 );
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
UIPrintDlgLayout->addItem( spacer, 4, 0 );
TextLabel1 = new QLabel( this, "TextLabel1" );
TextLabel1->setText( tr( "Title:" ) );
TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
UIPrintDlgLayout->addWidget( TextLabel1, 2, 0 );
TextLabel3 = new QLabel( this, "TextLabel3" );
TextLabel3->setText( tr( "Printer:" ) );
TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
UIPrintDlgLayout->addWidget( TextLabel3, 0, 0 );
printerLabel = new QLabel( this, "printerLabel" );
printerLabel->setText( tr( "Please select printer ->" ) );
printerLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, printerLabel->sizePolicy().hasHeightForWidth() ) );
QFont printerLabel_font( printerLabel->font() );
printerLabel_font.setBold( TRUE );
printerLabel->setFont( printerLabel_font );
QWhatsThis::add( printerLabel, tr( "This label shows the currently selected printer. Click the button to the right to configure the printer. <i>(You have to select a printer in order to be able to print)</i>" ) );
UIPrintDlgLayout->addWidget( printerLabel, 0, 1 );
printTitle = new QLineEdit( this, "printTitle" );
QWhatsThis::add( printTitle, tr( "Enter a title for the document <i>(Optional)</i>" ) );
UIPrintDlgLayout->addMultiCellWidget( printTitle, 2, 2, 1, 2 );
printComment = new QMultiLineEdit( this, "printComment" );
printComment->setWordWrap( QMultiLineEdit::WidgetWidth );
QWhatsThis::add( printComment, tr( "Here you may enter an comment which will be printed on top of the page <i>(Optional)</i>" ) );
UIPrintDlgLayout->addMultiCellWidget( printComment, 3, 4, 1, 2 );
Line3 = new QFrame( this, "Line3" );
Line3->setFrameStyle( QFrame::HLine | QFrame::Sunken );
UIPrintDlgLayout->addMultiCellWidget( Line3, 5, 5, 0, 2 );
Layout28 = new QHBoxLayout;
Layout28->setSpacing( 4 );
Layout28->setMargin( 0 );
helpBut = new QPushButton( this, "helpBut" );
helpBut->setText( tr( "" ) );
helpBut->setPixmap( image0 );
helpBut->setAutoDefault( FALSE );
helpBut->setMinimumSize( QSize( 26, 26 ) );
QToolTip::add( helpBut, tr( "Direct help" ) );
Layout28->addWidget( helpBut );
QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout28->addItem( spacer_2 );
printBut = new QPushButton( this, "printBut" );
printBut->setText( tr( "&Print" ) );
printBut->setDefault( TRUE );
printBut->setEnabled( FALSE );
QWhatsThis::add( printBut, tr( "Click here to print." ) );
Layout28->addWidget( printBut );
cancelBut = new QPushButton( this, "cancelBut" );
cancelBut->setText( tr( "&Cancel" ) );
QWhatsThis::add( cancelBut, tr( "Click here to abort printing." ) );
Layout28->addWidget( cancelBut );
UIPrintDlgLayout->addMultiCellLayout( Layout28, 6, 6, 0, 2 );
// signals and slots connections
connect( printBut, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( cancelBut, SIGNAL( clicked() ), this, SLOT( reject() ) );
}
/*
* Destroys the object and frees any allocated resources
*/
UIPrintDlg::~UIPrintDlg()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Main event handler. Reimplemented to handle application
* font changes
*/
bool UIPrintDlg::event( QEvent* ev )
{
bool ret = QDialog::event( ev );
if ( ev->type() == QEvent::ApplicationFontChange ) {
QFont printerLabel_font( printerLabel->font() );
printerLabel_font.setBold( TRUE );
printerLabel->setFont( printerLabel_font );
}
return ret;
}

View File

@ -1,50 +0,0 @@
/****************************************************************************
** Form interface generated from reading ui file 'uiprintdlg.ui'
**
** Created: Sun Apr 15 20:02:39 2001
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef UIPRINTDLG_H
#define UIPRINTDLG_H
#include <qvariant.h>
#include <qdialog.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QFrame;
class QLabel;
class QLineEdit;
class QMultiLineEdit;
class QPushButton;
class UIPrintDlg : public QDialog
{
Q_OBJECT
public:
UIPrintDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~UIPrintDlg();
QFrame* Line4;
QPushButton* configBut;
QLabel* TextLabel2;
QLabel* TextLabel1;
QLabel* TextLabel3;
QLabel* printerLabel;
QLineEdit* printTitle;
QMultiLineEdit* printComment;
QFrame* Line3;
QPushButton* helpBut;
QPushButton* printBut;
QPushButton* cancelBut;
protected:
QGridLayout* UIPrintDlgLayout;
QHBoxLayout* Layout28;
bool event( QEvent* );
};
#endif // UIPRINTDLG_H

21
src/xpm/A.xpm Normal file
View File

@ -0,0 +1,21 @@
/* XPM */
static char * A_xpm[] = {
"10 16 2 1",
" c None",
". c #000000",
" .. ",
" .... ",
" .. .. ",
" .. .. ",
" .. .. ",
" .. .. ",
".. ..",
".. ..",
"..........",
"..........",
".. ..",
".. ..",
".. ..",
".. ..",
".. ..",
".. .."};

13
src/xpm/A_small.xpm Normal file
View File

@ -0,0 +1,13 @@
/* XPM */
static char * A_small_xpm[] = {
"6 8 2 1",
" c None",
". c #000000",
" .. ",
" . . ",
". .",
". .",
"......",
". .",
". .",
". ."};

60
src/xpm/CVS/Entries Normal file
View File

@ -0,0 +1,60 @@
/A.xpm/1.1/Sat Nov 24 17:05:03 2001//
/A_small.xpm/1.1/Sat Nov 24 17:05:03 2001//
/F.xpm/1.1/Sat Nov 24 17:05:03 2001//
/F_small.xpm/1.1/Sat Nov 24 17:05:03 2001//
/G.xpm/1.1/Sat Nov 24 17:05:03 2001//
/G_small.xpm/1.1/Sat Nov 24 17:05:03 2001//
/Hz.xpm/1.1/Sat Nov 24 17:05:03 2001//
/Hz_small.xpm/1.1/Sat Nov 24 17:05:03 2001//
/M.xpm/1.1/Sat Nov 24 17:05:03 2001//
/M_small.xpm/1.1/Sat Nov 24 17:05:03 2001//
/Ohm.xpm/1.1/Sat Nov 24 17:05:03 2001//
/Ohm_small.xpm/1.1/Sat Nov 24 17:05:03 2001//
/V.xpm/1.1/Sat Nov 24 17:05:03 2001//
/V_small.xpm/1.1/Sat Nov 24 17:05:03 2001//
/ac.xpm/1.1/Sat Nov 24 17:05:03 2001//
/all_digits.xpm/1.1/Sat Nov 24 17:05:03 2001//
/bar.xpm/1.1/Sat Nov 24 17:05:03 2001//
/clear.xpm/1.1/Sat Nov 24 17:05:03 2001//
/conf.xpm/1.1/Sat Nov 24 17:05:03 2001//
/config.xpm/1.1/Sat Nov 24 17:05:03 2001//
/connect_off.xpm/1.1/Sat Nov 24 17:05:03 2001//
/connect_on.xpm/1.1/Sat Nov 24 17:05:03 2001//
/dc.xpm/1.1/Sat Nov 24 17:05:03 2001//
/decimal.xpm/1.1/Sat Nov 24 17:05:03 2001//
/decimal_small.xpm/1.1/Sat Nov 24 17:05:03 2001//
/deg.xpm/1.1/Sat Nov 24 17:05:03 2001//
/deg_small.xpm/1.1/Sat Nov 24 17:05:03 2001//
/diode.xpm/1.1/Sat Nov 24 17:05:03 2001//
/ee.xpm/1.1/Sat Nov 24 17:05:03 2001//
/export.xpm/1.1/Sat Nov 24 17:05:03 2001//
/help.xpm/1.1/Sat Nov 24 17:05:03 2001//
/hi.xpm/1.1/Sat Nov 24 17:05:03 2001//
/icon.xpm/1.1/Sat Nov 24 17:05:03 2001//
/icon_gray.xpm/1.1/Sat Nov 24 17:05:03 2001//
/import.xpm/1.1/Sat Nov 24 17:05:03 2001//
/k.xpm/1.1/Sat Nov 24 17:05:03 2001//
/k_small.xpm/1.1/Sat Nov 24 17:05:03 2001//
/l.xpm/1.1/Sat Nov 24 17:05:03 2001//
/l_small.xpm/1.1/Sat Nov 24 17:05:03 2001//
/m.xpm/1.1/Sat Nov 24 17:05:03 2001//
/m_small.xpm/1.1/Sat Nov 24 17:05:03 2001//
/max_str.xpm/1.1/Sat Nov 24 17:05:03 2001//
/min_str.xpm/1.1/Sat Nov 24 17:05:03 2001//
/minus.xpm/1.1/Sat Nov 24 17:05:03 2001//
/minus_small.xpm/1.1/Sat Nov 24 17:05:03 2001//
/n.xpm/1.1/Sat Nov 24 17:05:03 2001//
/n_small.xpm/1.1/Sat Nov 24 17:05:03 2001//
/numbers.xpm/1.1/Sun Nov 25 13:00:49 2001//
/numbers_small.xpm/1.1/Sun Nov 25 13:00:49 2001//
/numers_tiny.xpm/1.1/Sun Nov 25 13:00:49 2001//
/p.xpm/1.1/Sat Nov 24 17:05:03 2001//
/p_small.xpm/1.1/Sat Nov 24 17:05:03 2001//
/print.xpm/1.1/Sat Nov 24 17:05:03 2001//
/quit.xpm/1.1/Sat Nov 24 17:05:03 2001//
/reset.xpm/1.1/Sat Nov 24 17:05:03 2001//
/start.xpm/1.1/Sat Nov 24 17:05:03 2001//
/stop.xpm/1.1/Sat Nov 24 17:05:03 2001//
/u.xpm/1.1/Sat Nov 24 17:05:03 2001//
/u_small.xpm/1.1/Sat Nov 24 17:05:03 2001//
D

1
src/xpm/CVS/Repository Normal file
View File

@ -0,0 +1 @@
QtDMM/src/xpm

1
src/xpm/CVS/Root Normal file
View File

@ -0,0 +1 @@
/home/cvs

21
src/xpm/F.xpm Normal file
View File

@ -0,0 +1,21 @@
/* XPM */
static char * F_xpm[] = {
"12 16 2 1",
" c None",
". c #000000",
"......... ",
"......... ",
".. ",
".. ",
".. ",
".. ",
".. ",
".. ",
"..... ",
"..... ",
".. ",
".. ",
".. ",
".. ",
".. ",
".. "};

13
src/xpm/F_small.xpm Normal file
View File

@ -0,0 +1,13 @@
/* XPM */
static char * F_small_xpm[] = {
"5 8 2 1",
" c None",
". c #000000",
".....",
". ",
". ",
"... ",
". ",
". ",
". ",
". "};

21
src/xpm/G.xpm Normal file
View File

@ -0,0 +1,21 @@
/* XPM */
static char * G_xpm[] = {
"11 16 2 1",
" c None",
". c #000000",
" ...... ",
" ........ ",
" .... ...",
".... ..",
".... ",
"... ",
"... ",
"... ",
"... ....",
"... ....",
"... ..",
"... ..",
".... ..",
" .... ..",
" .........",
" ..... .."};

13
src/xpm/G_small.xpm Normal file
View File

@ -0,0 +1,13 @@
/* XPM */
static char * G_small_xpm[] = {
"5 8 2 1",
" c None",
". c #000000",
" ... ",
". .",
". ",
". ",
". ...",
". .",
". .",
" ...."};

21
src/xpm/Hz.xpm Normal file
View File

@ -0,0 +1,21 @@
/* XPM */
static char * Hz_xpm[] = {
"18 16 2 1",
" c None",
". c #000000",
".. .. ",
".. .. ",
".. .. ",
".. .. ",
".. .. ",
".. .. ........",
".. .. ........",
"......... ..",
"......... ...",
".. .. ... ",
".. .. ... ",
".. .. ... ",
".. .. ... ",
".. .. ... ",
".. .. ........",
".. .. ........"};

13
src/xpm/Hz_small.xpm Normal file
View File

@ -0,0 +1,13 @@
/* XPM */
static char * Hz_small_xpm[] = {
"10 8 2 1",
" c None",
". c #000000",
". . ",
". . ",
". . ....",
". . .",
"..... . ",
". . . ",
". . . ",
". . ...."};

21
src/xpm/M.xpm Normal file
View File

@ -0,0 +1,21 @@
/* XPM */
static char * M_xpm[] = {
"12 16 2 1",
" c None",
". c #000000",
".. ..",
"... ...",
".... ....",
"..... .....",
".. ...... ..",
".. .... ..",
".. .. ..",
".. .. ..",
".. ..",
".. ..",
".. ..",
".. ..",
".. ..",
".. ..",
".. ..",
".. .."};

13
src/xpm/M_small.xpm Normal file
View File

@ -0,0 +1,13 @@
/* XPM */
static char * M_small_xpm[] = {
"7 8 2 1",
" c None",
". c #000000",
". .",
".. ..",
"... ...",
". ... .",
". . .",
". .",
". .",
". ."};

21
src/xpm/Ohm.xpm Normal file
View File

@ -0,0 +1,21 @@
/* XPM */
static char * Ohm_xpm[] = {
"12 16 2 1",
" c None",
". c #000000",
" .... ",
" ........ ",
" .......... ",
" ... ... ",
"... ...",
"... ...",
".. ..",
".. ..",
".. ..",
".. ..",
"... ...",
" .. .. ",
" .. .. ",
" .. .. ",
"..... .....",
"..... ....."};

13
src/xpm/Ohm_small.xpm Normal file
View File

@ -0,0 +1,13 @@
/* XPM */
static char * Ohm_small_xpm[] = {
"6 8 2 1",
" c None",
". c #000000",
" .... ",
". .",
". .",
". .",
". .",
". .",
" . . ",
".. .."};

21
src/xpm/V.xpm Normal file
View File

@ -0,0 +1,21 @@
/* XPM */
static char * V_xpm[] = {
"10 16 2 1",
" c None",
". c #000000",
".. ..",
".. ..",
".. ..",
".. ..",
".. ..",
".. ..",
"... ...",
"... .. ",
" .. .. ",
" ... ... ",
" .. .. ",
" .. .. ",
" .. .. ",
" .... ",
" .... ",
" .. "};

13
src/xpm/V_small.xpm Normal file
View File

@ -0,0 +1,13 @@
/* XPM */
static char * V_small_xpm[] = {
"6 8 2 1",
" c None",
". c #000000",
". .",
". .",
". .",
" . . ",
" . . ",
" . . ",
" .. ",
" .. "};

19
src/xpm/ac.xpm Normal file
View File

@ -0,0 +1,19 @@
/* XPM */
static char * ac_xpm[] = {
"18 14 2 1",
" c None",
". c #000000",
" .. .... ",
" .... ...... ",
" ...... ... ...",
" .. .. .. ..",
"... ... .. ",
".. .. .. ",
".. .. .. ",
".. .. .. ",
"........ .. ",
"........ .. ",
".. .. .. ..",
".. .. ... ...",
".. .. ...... ",
".. .. .... "};

69
src/xpm/all_digits.xpm Normal file
View File

@ -0,0 +1,69 @@
/* XPM */
static char * all_digits_xpm[] = {
"38 64 2 1",
" c None",
". c #000000",
" ",
" ",
" ...................... ... ",
" ........................ ..... ",
" ........................ ...... ",
" . ....................... ...... ",
" ... ..................... ........ ",
" .... .................... ........ ",
" ..... ................... ........ ",
" ...... .................. ........ ",
" ....... ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ....... .................. ....... ",
" ...... .................... ...... ",
" ..... ...................... ..... ",
" .... ........................ .... ",
" .......................... ",
" .... ........................ .... ",
" ..... ...................... ..... ",
" ...... .................... ...... ",
" ....... .................. ....... ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ........ ",
" ........ ................ ........ ",
" ....... ................. ........ ",
" ...... ................... ....... ",
" ..... .................... ....... ",
" ... ...................... ..... ",
" .. ....................... ..... ",
" ......................... ... ",
" ........................ . ",
" ",
" "};

14
src/xpm/bar.xpm Normal file
View File

@ -0,0 +1,14 @@
/* XPM */
static char * bar_xpm[] = {
"5 9 2 1",
" c None",
". c #000000",
" . ",
" ... ",
".....",
".....",
".....",
".....",
".....",
".....",
"....."};

19
src/xpm/dc.xpm Normal file
View File

@ -0,0 +1,19 @@
/* XPM */
static char * dc_xpm[] = {
"18 14 2 1",
" c None",
". c #000000",
"...... .... ",
"....... ...... ",
".. ... ... ...",
".. .. .. ..",
".. .. .. ",
".. .. .. ",
".. .. .. ",
".. .. .. ",
".. .. .. ",
".. .. .. ",
".. .. .. ..",
".. ... ... ...",
"....... ...... ",
"...... .... "};

69
src/xpm/decimal.xpm Normal file
View File

@ -0,0 +1,69 @@
/* XPM */
static char * decimal_xpm[] = {
"11 64 2 1",
" c None",
". c #000000",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ....... ",
" ....... ",
" ....... ",
" ....... ",
" ....... ",
" ....... ",
" ....... ",
" ....... ",
" ",
" "};

26
src/xpm/decimal_small.xpm Normal file
View File

@ -0,0 +1,26 @@
/* XPM */
static char * decimal_small_xpm[] = {
"4 21 2 1",
" c None",
". c #000000",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" .. ",
" .. ",
" .. "};

21
src/xpm/deg.xpm Normal file
View File

@ -0,0 +1,21 @@
/* XPM */
static char * deg_xpm[] = {
"18 16 2 1",
" c None",
". c #000000",
" .... ....... ",
".. .. ......... ",
".. .. ... ...",
".. .. ... ..",
".. .. ... ",
".. .. ... ",
" .... ... ",
" ... ",
" ... ",
" ... ",
" ... ",
" ... ",
" ... ..",
" ... ...",
" ......... ",
" ....... "};

13
src/xpm/deg_small.xpm Normal file
View File

@ -0,0 +1,13 @@
/* XPM */
static char * deg_small_xpm[] = {
"10 8 2 1",
" c None",
". c #000000",
" .. ... ",
". . . .",
". . . ",
" .. . ",
" . ",
" . ",
" . .",
" ... "};

19
src/xpm/diode.xpm Normal file
View File

@ -0,0 +1,19 @@
/* XPM */
static char * diode_xpm[] = {
"17 14 2 1",
" c None",
". c #000000",
" ",
" ",
" .. .. ",
" .. .... ",
" .. ...... ",
" .. ........ ",
".................",
".................",
" .. ........ ",
" .. ...... ",
" .. .... ",
" .. .. ",
" ",
" "};

69
src/xpm/ee.xpm Normal file
View File

@ -0,0 +1,69 @@
/* XPM */
static char * ee_xpm[] = {
"38 64 2 1",
" c None",
". c #000000",
" ",
" ",
" ...................... ",
" ........................ ",
" ........................ ",
" . ....................... ",
" ... ..................... ",
" .... .................... ",
" ..... ................... ",
" ...... .................. ",
" ....... ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ....... .................. ",
" ...... .................... ",
" ..... ...................... ",
" ... ........................ ",
" .......................... ",
" ... ........................ ",
" ..... ...................... ",
" ...... .................... ",
" ....... .................. ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ................ ",
" ....... ................. ",
" ...... ................... ",
" ..... .................... ",
" ... ...................... ",
" .. ....................... ",
" ......................... ",
" ........................ ",
" ",
" "};

14
src/xpm/hi.xpm Normal file
View File

@ -0,0 +1,14 @@
/* XPM */
static char * hi_xpm[] = {
"18 9 2 1",
" c None",
". c #000000",
".............. ",
"............... ",
".. ... .. .... ",
".. ... ... ...... ",
".. ... .......",
".. ... ... ...... ",
".. ... .. .... ",
"............... ",
".............. "};

50
src/xpm/icon_gray.xpm Normal file
View File

@ -0,0 +1,50 @@
/* XPM */
static char * icon_gray_xpm[] = {
"32 32 15 1",
" c None",
". c #000000",
"+ c #7F7F7F",
"@ c #595959",
"# c #3A3A3A",
"$ c #C8CFC8",
"% c #919191",
"& c #A95454",
"* c #FFFFFF",
"= c #969696",
"- c #A9A254",
"; c #545EA9",
"> c #C4C4C4",
", c #5460A9",
"' c #141414",
" ",
" ..................... ",
" .+++++++++++++++++++++. ",
" .+@@@@@@@@@@@@@@@@@@@@@#. ",
" .+@...................@#. ",
" .+@.$$$$$$$$$$$$$$$$$.@#. ",
" .+@.$...$$$.$.$...$.$.@#. ",
" .+@.$$$.$$$.$.$$$.$.$.@#. ",
" .+@.$...$$$...$...$.$.@#. ",
" .+@.$$$.$$$$$.$.$$$.$.@#. ",
" .+@.$...$.$$$.$...$.$.@#. ",
" .+@.$$$$$$$$$$$$$$$$$.@#. ",
" .+@.$.%.%.%.$$$$$$$$$.@#. ",
" .+@.$.%.%.%.$$$$$$$$$.@#. ",
" .+@.$$$$$$$$$$$$$$$$$.@#. ",
" .+@...................@#. ",
" .+@@@@@@@@@@@@@@@@@@@@@#. ",
" .+@&&@@@@@@@@@@@@@@@@@@@. ",
" .+&*&&@@@@@@@..........#. ",
" .+&**&@@@@...==========#. ",
" .+@&&@@...======-===;;=#. ",
" .@@@@..========---=;;;;#. ",
" .+...=====>>==>====;;;;#. ",
" .+=====>==========>=;;=#. ",
" .+-======--->>>>==>====#. ",
" .+-=>==>>--->>>>>>=====#. ",
" .+->==>>>.......>>,==>=#. ",
" .+-==>>>.........,,,=>=#. ",
" .+-==>>.*.#####...,,===#. ",
" .+-=&&..#*'#####...,,==#. ",
" .+-=&&..#'''#####..,,==#. ",
" ######################### "};

21
src/xpm/k.xpm Normal file
View File

@ -0,0 +1,21 @@
/* XPM */
static char * k_xpm[] = {
"7 16 2 1",
" c None",
". c #000000",
".. ",
".. ",
".. ",
".. ",
".. ..",
".. ...",
".. ... ",
"..... ",
".... ",
"..... ",
".. .. ",
".. ... ",
".. .. ",
".. ...",
".. ..",
".. .."};

13
src/xpm/k_small.xpm Normal file
View File

@ -0,0 +1,13 @@
/* XPM */
static char * k_small_xpm[] = {
"5 8 2 1",
" c None",
". c #000000",
". ",
". ",
". . ",
". . ",
".. ",
". . ",
". . ",
". ."};

69
src/xpm/l.xpm Normal file
View File

@ -0,0 +1,69 @@
/* XPM */
static char * l_xpm[] = {
"38 64 2 1",
" c None",
". c #000000",
" ",
" ",
" ",
" ",
" ",
" . ",
" ... ",
" .... ",
" ..... ",
" ...... ",
" ....... ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ....... ",
" ...... ",
" ..... ",
" ... ",
" ",
" ... ",
" ..... ",
" ...... ",
" ....... ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ",
" ........ ................ ",
" ....... ................. ",
" ...... ................... ",
" ..... .................... ",
" ... ...................... ",
" .. ....................... ",
" ......................... ",
" ........................ ",
" ",
" "};

26
src/xpm/l_small.xpm Normal file
View File

@ -0,0 +1,26 @@
/* XPM */
static char * l_small_xpm[] = {
"12 21 2 1",
" c None",
". c #000000",
" ",
". ",
".. ",
"... ",
"... ",
"... ",
"... ",
"... ",
"... ",
".. ",
" ",
".. ",
"... ",
"... ",
"... ",
"... ",
"... ",
"... ",
".. ...... ",
". ........ ",
" .......... "};

21
src/xpm/m.xpm Normal file
View File

@ -0,0 +1,21 @@
/* XPM */
static char * m_xpm[] = {
"11 16 2 1",
" c None",
". c #000000",
" ",
" ",
" ",
" ",
" ",
"...... ... ",
"...........",
" .. .. ..",
" .. .. ..",
" .. .. ..",
" .. .. ..",
" .. .. ..",
" .. .. ..",
" .. .. ..",
" .. .. ..",
" .. .. .."};

13
src/xpm/m_small.xpm Normal file
View File

@ -0,0 +1,13 @@
/* XPM */
static char * m_small_xpm[] = {
"7 8 2 1",
" c None",
". c #000000",
" ",
" ",
"... .. ",
". . .",
". . .",
". . .",
". . .",
". . ."};

13
src/xpm/max_str.xpm Normal file
View File

@ -0,0 +1,13 @@
/* XPM */
static char * max_str_xpm[] = {
"19 8 2 1",
" c None",
". c #000000",
". . ",
".. .. ",
"... ... ... . .",
". ... . . . . ",
". . . .... . ",
". . . . . ",
". . . .. . . ",
". . .. . . ."};

13
src/xpm/min_str.xpm Normal file
View File

@ -0,0 +1,13 @@
/* XPM */
static char * min_str_xpm[] = {
"15 8 2 1",
" c None",
". c #000000",
". . . ",
".. .. . ",
"... ... . .. ",
". ... . . .. .",
". . . . . .",
". . . . .",
". . . . .",
". . . . ."};

68
src/xpm/minus.xpm Normal file
View File

@ -0,0 +1,68 @@
/* XPM */
static char * minus_xpm[] = {
"22 63 2 1",
" c None",
". c #000000",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ................ ",
" ................ ",
" ................ ",
" ................ ",
" ................ ",
" ................ ",
" ................ ",
" ................ ",
" ................ ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" "};

8
src/xpm/minus_small.xpm Normal file
View File

@ -0,0 +1,8 @@
/* XPM */
static char * minus_small_xpm[] = {
"8 3 2 1",
" c None",
". c #000000",
" ......",
" ...... ",
"...... "};

21
src/xpm/n.xpm Normal file
View File

@ -0,0 +1,21 @@
/* XPM */
static char * n_xpm[] = {
"7 16 2 1",
" c None",
". c #000000",
" ",
" ",
" ",
" ",
" ",
".. ... ",
".......",
"... ..",
".. ..",
".. ..",
".. ..",
".. ..",
".. ..",
".. ..",
".. ..",
".. .."};

13
src/xpm/n_small.xpm Normal file
View File

@ -0,0 +1,13 @@
/* XPM */
static char * n_small_xpm[] = {
"5 8 2 1",
" c None",
". c #000000",
" ",
" ",
". .. ",
".. .",
". .",
". .",
". .",
". ."};

65
src/xpm/numbers.xpm Normal file
View File

@ -0,0 +1,65 @@
/* XPM */
static char * numbers_xpm[] = {
"340 60 2 1",
" c None",
". c #000000",
" ...................... ... ... ...................... ... ...................... ... ... ...................... ...................... ...................... ... ...................... ... ...................... ... ",
" ........................ ..... ..... ........................ ..... ........................ ..... ..... ........................ ........................ ........................ ..... ........................ ..... ........................ ..... ",
" ........................ ...... ...... ........................ ...... ........................ ...... ...... ........................ ........................ ........................ ...... ........................ ...... ........................ ...... ",
" . ....................... ...... ...... ....................... ...... ....................... ...... . ...... . ....................... . ....................... ....................... ...... . ....................... ...... . ....................... ...... ",
"... ..................... ........ ........ ..................... ........ ..................... ........... ........... ..................... ... ..................... ..................... ........... ..................... ........... ..................... ........",
".... .................... ........ ........ .................... ........ .................... ............ ............ .................... .... .................... .................... ............ .................... ............ .................... ........",
"..... ................... ........ ........ ................... ........ ................... ............. ............. ................... ..... ................... ................... ............. ................... ............. ................... ........",
"...... .................. ........ ........ .................. ........ .................. .............. .............. .................. ...... .................. .................. .............. .................. .............. .................. ........",
"....... ........ ........ ........ ............... ............... ....... ............... ............... ........",
"........ ........ ........ ........ ................ ................ ........ ................ ................ ........",
"........ ........ ........ ........ ................ ................ ........ ................ ................ ........",
"........ ........ ........ ........ ................ ................ ........ ................ ................ ........",
"........ ........ ........ ........ ................ ................ ........ ................ ................ ........",
"........ ........ ........ ........ ................ ................ ........ ................ ................ ........",
"........ ........ ........ ........ ................ ................ ........ ................ ................ ........",
"........ ........ ........ ........ ................ ................ ........ ................ ................ ........",
"........ ........ ........ ........ ................ ................ ........ ................ ................ ........",
"........ ........ ........ ........ ................ ................ ........ ................ ................ ........",
"........ ........ ........ ........ ................ ................ ........ ................ ................ ........",
"........ ........ ........ ........ ................ ................ ........ ................ ................ ........",
"........ ........ ........ ........ ................ ................ ........ ................ ................ ........",
"........ ........ ........ ........ ................ ................ ........ ................ ................ ........",
"........ ........ ........ ........ ................ ................ ........ ................ ................ ........",
"........ ........ ........ ........ ................ ................ ........ ................ ................ ........",
"........ ........ ........ ........ ................ ................ ........ ................ ................ ........",
"........ ........ ........ ........ ................ ................ ........ ................ ................ ........",
"....... ....... ....... .................. ....... .................. .............. .................. .............. .................. ....... .................. .............. .................. .............. .................. .......",
"...... ...... ...... .................... ...... .................... ............ .................... ............ .................... ...... .................... ............ .................... ............ .................... ......",
"..... ..... ..... ...................... ..... ...................... .......... ...................... .......... ...................... ..... ...................... .......... ...................... .......... ...................... .....",
" ... ... ... ........................ ... ........................ ... ... ........................ ... ... ........................ ... ........................ ... ... ........................ ... ... ........................ ... ",
" .......................... .......................... .......................... .......................... .......................... .......................... .......................... ",
" ... ... ... ... ........................ ........................ ... ........................ ... ........................ ... ... ........................ ... ... ... ........................ ... ........................ ... ",
"..... ..... .......... ...................... ...................... ..... ...................... ..... ...................... .......... ...................... ..... .......... ...................... ..... ...................... .....",
"...... ...... ............ .................... .................... ...... .................... ...... .................... ............ .................... ...... ............ .................... ...... .................... ......",
"....... ....... .............. .................. .................. ....... .................. ....... .................. .............. .................. ....... .............. .................. ....... .................. .......",
"........ ........ ................ ........ ........ ................ ........ ................ ........ ........",
"........ ........ ................ ........ ........ ................ ........ ................ ........ ........",
"........ ........ ................ ........ ........ ................ ........ ................ ........ ........",
"........ ........ ................ ........ ........ ................ ........ ................ ........ ........",
"........ ........ ................ ........ ........ ................ ........ ................ ........ ........",
"........ ........ ................ ........ ........ ................ ........ ................ ........ ........",
"........ ........ ................ ........ ........ ................ ........ ................ ........ ........",
"........ ........ ................ ........ ........ ................ ........ ................ ........ ........",
"........ ........ ................ ........ ........ ................ ........ ................ ........ ........",
"........ ........ ................ ........ ........ ................ ........ ................ ........ ........",
"........ ........ ................ ........ ........ ................ ........ ................ ........ ........",
"........ ........ ................ ........ ........ ................ ........ ................ ........ ........",
"........ ........ ................ ........ ........ ................ ........ ................ ........ ........",
"........ ........ ................ ........ ........ ................ ........ ................ ........ ........",
"........ ........ ................ ........ ........ ................ ........ ................ ........ ........",
"........ ........ ................ ........ ........ ................ ........ ................ ........ ........",
"........ ........ ................ ........ ........ ................ ........ ................ ........ ........",
"........ ................ ........ ................ ................ ................ ........ ........ ................ ................ ................ ........ ................ ................ ........ ................ ........",
"....... ................. ........ ............... ................. ................. ........ ........ ................. ............... ................. ........ ............... ................. ........ ................. ........",
"...... ................... ....... ............. ................... ................... ....... ....... ................... ............. ................... ....... ............. ................... ....... ................... .......",
"..... .................... ....... ............ .................... .................... ....... ....... .................... ............ .................... ....... ............ .................... ....... .................... .......",
" ... ...................... ..... ..... ... ...................... ...................... ..... ..... ...................... ..... ... ...................... ..... ..... ... ...................... ..... ...................... ..... ",
" .. ....................... ..... ..... .. ....................... ....................... ..... ..... ....................... ..... .. ....................... ..... ..... .. ....................... ..... ....................... ..... ",
" ......................... ... ... ......................... ......................... ... ... ......................... ... ......................... ... ... ......................... ... ......................... ... ",
" ........................ . . ........................ ........................ . . ........................ . ........................ . . ........................ . ........................ . "};

26
src/xpm/numbers_small.xpm Normal file
View File

@ -0,0 +1,26 @@
/* XPM */
static char * numbers_small_xpm[] = {
"120 21 2 1",
" c None",
". c #000000",
" .......... .......... .......... .......... .......... .......... .......... .......... ",
". ........ . . ........ . ........ .. .. ........ . ........ ........ .. ........ .. ........ .",
".. ...... .. .. ...... .. ...... .... .... ...... .. ...... ...... .... ...... .... ...... ..",
"... ... ... ... ...... ...... ... ...... ...... ...",
"... ... ... ... ...... ...... ... ...... ...... ...",
"... ... ... ... ...... ...... ... ...... ...... ...",
"... ... ... ... ...... ...... ... ...... ...... ...",
"... ... ... ... ...... ...... ... ...... ...... ...",
"... ... ... ... ...... ...... ... ...... ...... ...",
".. .. .. ...... .. ...... .... ...... .... ...... .. ...... .... ...... .... ...... ..",
" ........ ........ ........ ........ ........ ........ ........ ",
".. .. .... ...... ...... .. ...... .. ...... .... ...... .. .... ...... .. ...... ..",
"... ... ...... ... ... ...... ... ...... ... ...",
"... ... ...... ... ... ...... ... ...... ... ...",
"... ... ...... ... ... ...... ... ...... ... ...",
"... ... ...... ... ... ...... ... ...... ... ...",
"... ... ...... ... ... ...... ... ...... ... ...",
"... ... ...... ... ... ...... ... ...... ... ...",
".. ...... .. .... ...... ...... .. .. ...... .... ...... .. .... ...... .. ...... ..",
". ........ . .. ........ ........ . . ........ .. ........ . .. ........ . ........ .",
" .......... .......... .......... .......... .......... .......... .......... "};

19
src/xpm/numers_tiny.xpm Normal file
View File

@ -0,0 +1,19 @@
/* XPM */
static char * numers_tiny_xpm[] = {
"80 14 2 1",
" c None",
". c #000000",
" ...... ...... ...... ...... ...... ...... ...... ...... ",
". .... . . .... . .... .. .. .... . .... .... .. .... .. .... .",
".. .. .. .. .... .... .. .... .... ..",
".. .. .. .. .... .... .. .... .... ..",
".. .. .. .. .... .... .. .... .... ..",
".. .. .. .. .... .... .. .... .... ..",
". . . .... . .... .. .... .. .... . .... .. .... .. .... .",
". . .. .... .... . .... . .... .. .... . .. .... . .... .",
".. .. .... .. .. .... .. .... .. ..",
".. .. .... .. .. .... .. .... .. ..",
".. .. .... .. .. .... .. .... .. ..",
".. .. .... .. .. .... .. .... .. ..",
". .... . .. .... .... . . .... .. .... . .. .... . .... .",
" ...... ...... ...... ...... ...... ...... ...... "};

21
src/xpm/p.xpm Normal file
View File

@ -0,0 +1,21 @@
/* XPM */
static char * p_xpm[] = {
"10 16 2 1",
" c None",
". c #000000",
"......... ",
"..........",
".. ...",
".. ..",
".. ..",
".. ..",
".. ..",
"... ..",
".... ...",
"......... ",
".. ..... ",
".. ",
".. ",
".. ",
".. ",
".. "};

13
src/xpm/p_small.xpm Normal file
View File

@ -0,0 +1,13 @@
/* XPM */
static char * p_small_xpm[] = {
"5 8 2 1",
" c None",
". c #000000",
".... ",
". .",
". .",
". .",
". .",
".... ",
". ",
". "};

Some files were not shown because too many files have changed in this diff Show More