Release 0.8.12

This commit is contained in:
Matthias Toussaint 2014-04-12 09:56:48 +01:00 committed by Joel Holdsworth
parent 82d6766dc3
commit dbbbe04b20
34 changed files with 4076 additions and 18 deletions

View File

@ -2,3 +2,9 @@ Matthias Toussaint
Dr. Ralf Wieland (PeakTech-451)
Michael Petruzelka (Voltcraft M-4660)
Hubert Mayer (PeakTech-4390, Metex M3850M)
Jochen Puchalla (PeakTech 4015A)
Laurent Perez (Tenma 72-7745)
Erik Hobel (McVoice M-980T)
Peter Halasz (Digitech QM1462)
Leif Sandahl (Digitek INO2513)
Bruce Lilly (RS-22-812)

View File

@ -1,21 +1,30 @@
25/12/2007 0.8.12
- Added PeakTech 4015A (Jochen Puchalla)
- Added Tenma 72-7745 (Laurent Perez)
- Bugfix McVoice M-980T (Erik Hobel)
- Added Digitech QM1462 (Peter Halasz)
- Added Digitek INO2513
- Added Raio Shack 22-812 (Peter Halasz)
- Corrected typo in dmmgraph (Erik Hobel)
20/11/2007 0.8.11
- GCC 4.3 compilation issues
- Make it compile on OSX
30/09/2007 0.8.10
- Added Sinometer MAS-343
- Adedd PeakTech 3330
- Adedd PeakTech 3330 (Jonny Bijlsma)
- Bugfix in VC820 protocoll
- Added Voltrcaft VC940
- Added Digitech QM1537
- Added Digitech QM1537 (Rob Brown)
- Added Uni-Trend UT30A and UT30E
- Added Digitek DT-9062
- Confirmation Voltcraft M-3860
- Added PeakTech 4360
- Added PeakTech 4360 (Klaus Kaiser)
19/08/2007 0.8.9
- Added Voltcraft M-3610D
- Added Iso-Tech IDM 73
- Added Iso-Tech IDM 73 (Paolo Bernardelli)
19/11/2006 0.8.8
- Make it compile with gcc 4.1
@ -41,6 +50,7 @@
- Import/Export issue (Hubert Mayer)
- Configuration problem for large port numbers
(Hubert Mayer)
12/05/2005 0.8.5
- Fixed window save behaviour (nobody noticed yet?)
- Fixed sampling counter

View File

@ -319,7 +319,7 @@ DMM::customEvent( QCustomEvent *ev )
{
for (int i=0; i<re->length(); ++i)
{
fprintf( stdout, "%02X ", re->string()[i] );
fprintf( stdout, "%02X ", re->string()[i] & 0x0ff );
}
fprintf( stdout, "\n" );
}
@ -347,6 +347,9 @@ DMM::customEvent( QCustomEvent *ev )
case ReadEvent::QM1537Continuous:
readQM1537Continuous( re );
break;
case ReadEvent::RS22812Continuous:
readRS22812Continuous( re );
break;
}
}
else
@ -574,6 +577,165 @@ void DMM::readVC940Continuous( ReadEvent *re )
m_error = tr( "Connected" ) + " (" + m_name + " @ " + m_device + ")";
}
void DMM::readRS22812Continuous( ReadEvent *re )
{
QString val;
QString special;
QString unit;
const char *in = re->string();
if (m_consoleLogging)
{
for (int i=0; i<re->length(); ++i)
{
fprintf( stdout, "%02X ", in[i] & 0x0ff );
}
fprintf( stdout, "\n" );
}
// check for overflow else find sign and fill in digits
//
if (((in[3] & 0x0f7) == 0x000) &&
((in[4] & 0x0f7) == 0x027) &&
((in[5] & 0x0f7) == 0x0d7))
{
val = " 0L ";
}
else
{
if(in[7] & 0x08)
{
val = " -"; // negative;
}
else
{
val = " ";
}
// create string;
//
for (int i=0; i<4; ++i)
{
val += RS22812Digit( in[6-i] );
}
}
// find comma (really decimal point) [germans use commas instead of decimal points] position
//
if (in[3] & 0x08)
{
val = insertComma( val, 3 );
}
else if (in[4] & 0x08)
{
val = insertComma( val, 2 );
}
else if(in[5] & 0x08)
{
val = insertComma( val, 1 );
}
double d_val = val.toDouble();
// try to find some special modes
//
if (in[7] & 0x40)
{
special = "DI";
}
if (in[7] & 0x04)
{
special = "AC";
}
else
{
special = "DC";
}
// try to find mode
//
if (in[1] & 0x08)
{
unit = "F";
special = "CA";
}
else if (in[1] & 0x40)
{
unit = "Ohm";
special = "OH";
}
else if (in[1] & 0x04)
{
unit = "A";
}
else if (in[1] & 0x80)
{
unit = "Hz";
special = "HZ";
}
else if (in[1] & 0x02)
{
unit = "V";
}
else if (in[2] & 0x80)
{
unit = "%";
special = "PC";
}
else
{
std::cerr << "Unknown unit!" << std::endl;
}
// try to find prefix
//
if (in[2] & 0x40)
{
d_val /= 1e9;
unit.prepend( "n" );
}
else if (in[2] & 0x80)
{
d_val /= 1e6;
unit.prepend( "u" );
}
else if (in[1] & 0x01)
{
d_val /= 1e3;
unit.prepend( "m" );
}
else if (in[1] & 0x20)
{
d_val *= 1e3;
unit.prepend( "k" );
}
else if (in[1] & 0x10)
{
d_val *= 1e6;
unit.prepend( "M" );
}
emit value( d_val, val, unit, special, true, re->id() );
m_error = tr( "Connected" ) + " (" + m_name + " @ " + m_device + ")";
}
char *DMM::RS22812Digit( int byte )
{
int digit[10] = { 0xd7, 0x50, 0xb5, 0xf1, 0x72, 0xe3, 0xe7, 0x51, 0xf7, 0xf3 };
char *c_digit[10] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" };
byte &= 0x0f7;
for (int n=0; n<10; n++)
{
if (byte == digit[n]) return c_digit[n];
}
return 0;
}
void DMM::readASCII( ReadEvent *re )
{
QString val;

View File

@ -81,7 +81,9 @@ protected:
void readIsoTechContinuous( ReadEvent * );
void readVC940Continuous( ReadEvent * );
void readQM1537Continuous( ReadEvent * );
void readRS22812Continuous( ReadEvent * );
char *vc820Digit( int );
char *RS22812Digit( int );
};

View File

@ -1008,7 +1008,7 @@ DMMGraph::mousePressEvent( QMouseEvent *ev )
if (m_connected)
{
m_popup->insertItem( tr("Diconnect"), IDDisconnect );
m_popup->insertItem( tr("Disconnect"), IDDisconnect );
}
else
{

View File

@ -47,6 +47,7 @@
// 6: IsoTech
// 7: VC940
// 8: QM1537
// 9: 9 binary bytes continuous (22-812)
// bits
// stopBits
// number of values (For DMM's that send several lines at once)
@ -54,11 +55,13 @@
// [don't ask for any logic behind the digits, changing would break configs]
// display digits (0,1,2,3 - 2000, 4000, 20000, 50000, 100000, 200000, 400000,
// 1000000, 6000, 40000)
//
//- Added
struct DMMInfo dmm_info[] = {
{"Digitek DT-9062", 3, 5, 8, 1, 1, 0, 1},
{"Digitek INO2513", 3, 5, 8, 1, 1, 0, 1}, // no image
{"Digitech QM1350", 0, 0, 7, 2, 1, 0, 1}, // no image
{"Digitech QM1462", 3, 5, 8, 1, 1, 0, 1}, // no image
{"Digitech QM1538", 3, 5, 8, 1, 1, 0, 1}, // no image
{"Digitech QM1537", 3, 8, 8, 1, 1, 0, 1}, // no image
@ -71,7 +74,7 @@ struct DMMInfo dmm_info[] = {
{"MASTECH M9803R", 5, 4, 7, 1, 1, 1, 1},
{"McVoice M-345pro", 0, 0, 7, 2, 1, 0, 1},
{"McVoice M-980T", 5, 4, 7, 1, 1, 1, 1},
{"McVoice M-980T", 5, 4, 7, 1, 1, 0, 1},
{"Metex M-3660D", 1, 0, 7, 2, 1, 0, 1},
{"Metex M-3830D", 1, 0, 7, 2, 4, 0, 1}, // no image
@ -85,12 +88,16 @@ struct DMMInfo dmm_info[] = {
{"PeakTech 3330", 3, 5, 8, 1, 1, 0, 1},
{"PeakTech 4010", 5, 0, 7, 2, 1, 0, 1},
{"PeakTech 4015A", 5, 0, 7, 2, 4, 0, 4},
{"PeakTech 4360", 0, 0, 7, 2, 1, 0, 1},
{"PeakTech 4390", 5, 0, 7, 2, 4, 0, 1},
{"PeakTech 451", 0, 1, 7, 2, 1, 0, 1}, // no image
{"Radioshack 22-805 DMM", 0, 0, 7, 2, 1, 0, 1},
{"Radioshack RS22-168A", 1, 0, 7, 2, 1, 0, 1}, // no image
{"Radioshack 22-812", 4, 9, 8, 1, 1, 0, 1},
{"Tenma 72-7745", 3, 5, 8, 1, 1, 0, 1},
{"Sinometer MAS-343", 0, 0, 7, 2, 1, 0, 1},

View File

@ -44,7 +44,7 @@
#include <help.xpm>
#include <icon.xpm>
#define VERSION_STRING "0.8.11"
#define VERSION_STRING "0.8.12"
#include <iostream>

View File

@ -185,6 +185,8 @@ ReaderThread::formatLength() const
return 12;
case ReadEvent::QM1537Continuous:
return 14;
case ReadEvent::RS22812Continuous:
return 9;
}
return 0;
@ -228,6 +230,10 @@ ReaderThread::readDMM()
{
readVC940();
}
else if (m_format == ReadEvent::RS22812Continuous)
{
readRS22812Continuous();
}
}
bool
@ -288,7 +294,202 @@ ReaderThread::checkFormat()
{
if (m_fifo[m_length] == 0x0d) return true;
}
else if (m_format == ReadEvent::RS22812Continuous)
{
unsigned int checksum = 0x00;
unsigned char byte;
char mode, unit, multiplier, dp, minmax, rs232;
int offset = 0;
if (m_length > 9)
offset = m_length - 9;
// mode
byte = (unsigned char)(m_fifo[offset]);
mode = byte;
if (mode > 25) {
(void)fprintf(stderr, "bad mode %#x\n", mode);
return false;
}
// units and multipliers
unit = 0;
multiplier = 0;
minmax = 0;
if (m_length >= 1) {
byte = (unsigned char)(m_fifo[offset + 1]);
if (byte & 0x01) // m
multiplier++;
if (byte & 0x02) { // V
unit++;
if ((mode != 0) && (mode != 1) && (mode != 19) && (mode != 22)) {
(void)fprintf(stderr, "mode vs. units mismatch: mode %#x, units %#x\n", mode, byte);
return false;
}
}
if (byte & 0x04) { // A
unit++;
if ((mode < 2) && (mode > 7)) {
(void)fprintf(stderr, "mode vs. units mismatch: mode %#x, units %#x\n", mode, byte);
return false;
}
}
if (byte & 0x08) { // F
unit++;
if (mode != 9) {
(void)fprintf(stderr, "mode vs. units mismatch: mode %#x, units %#x\n", mode, byte);
return false;
}
}
if (byte & 0x10) // M
multiplier++;
if (byte & 0x20) // k
multiplier++;
if (byte & 0x40) { // ohms
unit++;
if (mode != 8) {
(void)fprintf(stderr, "mode vs. units mismatch: mode %#x, units %#x\n", mode, byte);
return false;
}
}
if (byte & 0x80) { // Hz
unit++;
if ((mode < 10) && (mode > 12)) {
(void)fprintf(stderr, "mode vs. units mismatch: mode %#x, units %#x\n", mode, byte);
return false;
}
}
if (unit > 1) {
(void)fprintf(stderr, "too many units in 2nd byte %#x\n", byte);
return false;
}
if (multiplier > 1) {
(void)fprintf(stderr, "too many multipliers in 2nd byte %#x\n", byte);
return false;
}
if (mode < 2) {
if (!(byte & 0x02)) {
(void)fprintf(stderr, "mode vs. units mismatch: mode %#x, units %#x\n", mode, byte);
return false;
}
} else if (mode < 8) {
if (!(byte & 0x04)) {
(void)fprintf(stderr, "mode vs. units mismatch: mode %#x, units %#x\n", mode, byte);
return false;
}
} else if (mode < 9) {
if (!(byte & 0x40)) {
(void)fprintf(stderr, "mode vs. units mismatch: mode %#x, units %#x\n", mode, byte);
return false;
}
} else if (mode < 10) {
if (!(byte & 0x08)) {
(void)fprintf(stderr, "mode vs. units mismatch: mode %#x, units %#x\n", mode, byte);
return false;
}
} else if (mode < 13) {
if (!(byte & 0x80)) {
(void)fprintf(stderr, "mode vs. units mismatch: mode %#x, units %#x\n", mode, byte);
return false;
}
}
}
if (m_length >= 2) {
byte = (unsigned char)(m_fifo[offset + 2]);
if (byte & 0x01) // MIN
minmax++;
if (byte & 0x02) // REL
minmax++;
if (byte & 0x04) { // hFE
unit++;
if (mode != 21) {
(void)fprintf(stderr, "mode vs. units mismatch: mode %#x, units %#x\n", mode, byte);
return false;
}
}
if (byte & 0x10) { // S
unit++;
if ((mode < 16) && (mode > 18)) {
(void)fprintf(stderr, "mode vs. units mismatch: mode %#x, units %#x\n", mode, byte);
return false;
}
}
if (byte & 0x20) { // dBm
unit++;
if (mode != 23) {
(void)fprintf(stderr, "mode vs. units mismatch: mode %#x, units %#x\n", mode, byte);
return false;
}
}
if (byte & 0x40) // n
multiplier++;
if (byte & 0x80) // micro
multiplier++;
if (unit > 1) {
(void)fprintf(stderr, "too many units in 3rd byte %#x\n", byte);
return false;
}
if (multiplier > 1) {
(void)fprintf(stderr, "too many multipliers in 3rd byte %#x\n", byte);
return false;
}
if (minmax > 1) {
(void)fprintf(stderr, "too many min/max/rel indications in 3rd byte %#x\n", byte);
return false;
}
}
dp = 0;
if (m_length >= 3) {
byte = (unsigned char)(m_fifo[offset + 3]);
if (byte & 0x08)
dp++;
if (m_length >= 4) {
byte = (unsigned char)(m_fifo[offset + 4]);
if (byte & 0x08)
dp++;
if (m_length >= 5) {
byte = (unsigned char)(m_fifo[offset + 5]);
if (byte & 0x08)
dp++;
}
}
}
if (dp > 1) {
return false;
}
if (m_length >= 6) {
byte = (unsigned char)(m_fifo[offset + 6]);
if (byte & 0x08) // MAX
minmax++;
if (minmax > 1) {
(void)fprintf(stderr, "too many min/max/rel indications in 7th byte %#x\n", byte);
return false;
}
}
if (m_length >= 7) {
rs232 = 0;
byte = (unsigned char)(m_fifo[offset + 7]);
if (byte & 0x02) // RS232
rs232++;
if (rs232 != 1) {
(void)fprintf(stderr, "rs232 flag not set in 8th byte %#x\n", byte);
return false;
}
}
if (m_length >= offset + 8) {
// XXX compute and validate checksum
for (int i=0; i<8; ++i)
{
byte = (unsigned char)(m_fifo[offset + i] & 0x0ff);
checksum += byte;
}
byte = (unsigned char)(m_fifo[offset + 8] & 0x0ff);
if (((checksum + 57) & 0x0ff) == byte) {
return true;
} else {
(void)fprintf(stderr, "bad checksum byte %#x should be %#x\n", byte, (checksum + 57) & 0x0ff);
return false;
}
}
}
return false;
}
@ -340,4 +541,8 @@ void ReaderThread::readVC940()
void
ReaderThread::readPeakTech10()
{
}
}
void ReaderThread::readRS22812Continuous()
{
}

View File

@ -77,6 +77,7 @@ protected:
void readQM1537Continuous();
void readVC820();
void readVC940();
void readRS22812Continuous();
int formatLength() const;
bool checkFormat();

View File

@ -36,7 +36,8 @@ public:
VC820Continuous,
IsoTech,
VC940Continuous,
QM1537Continuous
QM1537Continuous,
RS22812Continuous
};
ReadEvent( char *str, int len, int id, DataFormat df );

View File

@ -78,6 +78,6 @@ macx {
RC_FILE = QtDMMIcon.icns
}
TARGET = qtdmm
VERSION = 0.8.11
VERSION = 0.8.12
DESTDIR = ../bin

143
src/uiconfigdlg.cpp Normal file
View File

@ -0,0 +1,143 @@
/****************************************************************************
** Form implementation generated from reading ui file 'uiconfigdlg.ui'
**
** Created: Tue Dec 25 12:41:07 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "uiconfigdlg.h"
#include <qvariant.h>
#include <qwidgetstack.h>
#include <qpushbutton.h>
#include <qheader.h>
#include <qlistview.h>
#include <qlabel.h>
#include <qframe.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a UIConfigDlg as 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 )
{
if ( !name )
setName( "UIConfigDlg" );
setSizeGripEnabled( TRUE );
UIConfigDlgLayout = new QVBoxLayout( this, 10, 5, "UIConfigDlgLayout");
Layout48 = new QHBoxLayout( 0, 0, 10, "Layout48");
ui_list = new QListView( this, "ui_list" );
ui_list->addColumn( tr( "Column 1" ) );
ui_list->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, ui_list->sizePolicy().hasHeightForWidth() ) );
ui_list->setHScrollBarMode( QListView::AlwaysOff );
ui_list->setAllColumnsShowFocus( TRUE );
Layout48->addWidget( ui_list );
Layout47 = new QVBoxLayout( 0, 0, 5, "Layout47");
Layout16 = new QHBoxLayout( 0, 0, 5, "Layout16");
ui_helpPixmap = new QLabel( this, "ui_helpPixmap" );
ui_helpPixmap->setFrameShape( QLabel::MShape );
ui_helpPixmap->setFrameShadow( QLabel::MShadow );
ui_helpPixmap->setAlignment( int( QLabel::AlignTop | QLabel::AlignHCenter ) );
Layout16->addWidget( ui_helpPixmap );
ui_helpText = new QLabel( this, "ui_helpText" );
ui_helpText->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, 0, 0, ui_helpText->sizePolicy().hasHeightForWidth() ) );
ui_helpText->setTextFormat( QLabel::RichText );
ui_helpText->setAlignment( int( QLabel::AlignTop | QLabel::AlignLeft ) );
Layout16->addWidget( ui_helpText );
Layout47->addLayout( Layout16 );
TextLabel1 = new QLabel( this, "TextLabel1" );
TextLabel1->setMinimumSize( QSize( 0, 5 ) );
TextLabel1->setMaximumSize( QSize( 32767, 5 ) );
Layout47->addWidget( TextLabel1 );
ui_stack = new QWidgetStack( this, "ui_stack" );
ui_stack->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, ui_stack->sizePolicy().hasHeightForWidth() ) );
Layout47->addWidget( ui_stack );
Layout46 = new QHBoxLayout( 0, 0, 5, "Layout46");
ui_undo = new QPushButton( this, "ui_undo" );
ui_undo->setAutoDefault( FALSE );
Layout46->addWidget( ui_undo );
Spacer45 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout46->addItem( Spacer45 );
ui_factoryDefaults = new QPushButton( this, "ui_factoryDefaults" );
ui_factoryDefaults->setAutoDefault( FALSE );
Layout46->addWidget( ui_factoryDefaults );
Layout47->addLayout( Layout46 );
Layout48->addLayout( Layout47 );
UIConfigDlgLayout->addLayout( Layout48 );
Line7 = new QFrame( this, "Line7" );
Line7->setFrameStyle( QFrame::HLine | QFrame::Sunken );
UIConfigDlgLayout->addWidget( Line7 );
Layout17 = new QHBoxLayout( 0, 0, 5, "Layout17");
Spacer61 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout17->addItem( Spacer61 );
ui_apply = new QPushButton( this, "ui_apply" );
ui_apply->setMinimumSize( QSize( 0, 0 ) );
ui_apply->setMaximumSize( QSize( 32767, 32767 ) );
Layout17->addWidget( ui_apply );
ui_ok = new QPushButton( this, "ui_ok" );
ui_ok->setDefault( TRUE );
Layout17->addWidget( ui_ok );
ui_cancel = new QPushButton( this, "ui_cancel" );
Layout17->addWidget( ui_cancel );
UIConfigDlgLayout->addLayout( Layout17 );
languageChange();
resize( QSize(334, 260).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// tab order
setTabOrder( ui_list, ui_undo );
setTabOrder( ui_undo, ui_factoryDefaults );
setTabOrder( ui_factoryDefaults, ui_apply );
setTabOrder( ui_apply, ui_ok );
setTabOrder( ui_ok, ui_cancel );
}
/*
* Destroys the object and frees any allocated resources
*/
UIConfigDlg::~UIConfigDlg()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void UIConfigDlg::languageChange()
{
setCaption( tr( "QtDMM: Preferences" ) );
ui_list->header()->setLabel( 0, tr( "Column 1" ) );
ui_undo->setText( tr( "&Undo" ) );
ui_factoryDefaults->setText( tr( "&Factory defaults" ) );
ui_apply->setText( tr( "&Apply" ) );
QWhatsThis::add( ui_apply, tr( "Click this button so change the color of the data graph in the recorder." ) );
ui_ok->setText( tr( "&Ok" ) );
ui_cancel->setText( tr( "&Cancel" ) );
}

66
src/uiconfigdlg.h Normal file
View File

@ -0,0 +1,66 @@
/****************************************************************************
** Form interface generated from reading ui file 'uiconfigdlg.ui'
**
** Created: Tue Dec 25 12:40:33 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef UICONFIGDLG_H
#define UICONFIGDLG_H
#include <qvariant.h>
#include <qpixmap.h>
#include <qdialog.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QWidgetStack;
class QListView;
class QListViewItem;
class QLabel;
class QPushButton;
class QFrame;
class UIConfigDlg : public QDialog
{
Q_OBJECT
public:
UIConfigDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~UIConfigDlg();
QListView* ui_list;
QLabel* ui_helpPixmap;
QLabel* ui_helpText;
QLabel* TextLabel1;
QWidgetStack* ui_stack;
QPushButton* ui_undo;
QPushButton* ui_factoryDefaults;
QFrame* Line7;
QPushButton* ui_apply;
QPushButton* ui_ok;
QPushButton* ui_cancel;
protected:
QVBoxLayout* UIConfigDlgLayout;
QHBoxLayout* Layout48;
QVBoxLayout* Layout47;
QHBoxLayout* Layout16;
QHBoxLayout* Layout46;
QSpacerItem* Spacer45;
QHBoxLayout* Layout17;
QSpacerItem* Spacer61;
protected slots:
virtual void languageChange();
private:
QPixmap image0;
};
#endif // UICONFIGDLG_H

454
src/uidmmprefs.cpp Normal file
View File

@ -0,0 +1,454 @@
/****************************************************************************
** Form implementation generated from reading ui file 'uidmmprefs.ui'
**
** Created: Tue Dec 25 12:41:09 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "uidmmprefs.h"
#include <qvariant.h>
#include <prefwidget.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <qcombobox.h>
#include <qlineedit.h>
#include <qtoolbutton.h>
#include <qbuttongroup.h>
#include <qspinbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
#include "prefwidget.h"
static const unsigned char image0_data[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x16,
0x08, 0x06, 0x00, 0x00, 0x00, 0xc4, 0xb4, 0x6c, 0x3b, 0x00, 0x00, 0x03,
0xa7, 0x49, 0x44, 0x41, 0x54, 0x38, 0x8d, 0xb5, 0x95, 0xdb, 0x6b, 0xdc,
0x45, 0x14, 0xc7, 0x3f, 0xbf, 0xdf, 0xfe, 0xe2, 0x6e, 0x9a, 0xdb, 0x36,
0x31, 0x49, 0x63, 0x6d, 0x13, 0x2a, 0xb6, 0x22, 0x49, 0xa4, 0x60, 0xa9,
0x54, 0x2b, 0x22, 0xf1, 0x41, 0x14, 0xd4, 0x10, 0xa8, 0x48, 0xfb, 0x60,
0x41, 0x04, 0x09, 0x3e, 0xfa, 0xe0, 0xdd, 0x17, 0xdf, 0x7c, 0xa8, 0x7f,
0x80, 0x14, 0xec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0x79,
0x7d, 0x23, 0x11, 0xfc, 0x72, 0x68, 0x98, 0x98, 0x5c, 0xe1, 0xa9, 0x83,
0xd5, 0x97, 0xc2, 0xf7, 0x21, 0x08, 0x7c, 0x52, 0x29, 0x0f, 0xdf, 0xf7,
0xd7, 0x6c, 0x7f, 0xdd, 0xf6, 0xfd, 0xca, 0xd8, 0x1f, 0xf6, 0xd7, 0x57,
0x23, 0x72, 0x1f, 0x65, 0xd7, 0xdf, 0x8b, 0x60, 0x61, 0xa6, 0xcc, 0x4b,
0xcf, 0x75, 0xde, 0x72, 0xbb, 0x52, 0xa9, 0x4a, 0x75, 0x38, 0x44, 0x0c,
0x89, 0xd2, 0x44, 0x71, 0x42, 0x14, 0x69, 0xc2, 0x50, 0x11, 0x27, 0x09,
0x71, 0xa4, 0xd1, 0x5a, 0x48, 0xb4, 0x61, 0xfc, 0xd7, 0x10, 0x68, 0xda,
0x90, 0x02, 0xdf, 0x63, 0xf8, 0x72, 0x91, 0x07, 0x06, 0x97, 0x70, 0xe2,
0x10, 0x01, 0xc4, 0x21, 0x22, 0x58, 0x2b, 0x58, 0x2d, 0x18, 0x63, 0xb0,
0x46, 0xb0, 0xc6, 0x60, 0x8c, 0xc5, 0x68, 0x8b, 0x18, 0xa9, 0xb4, 0x62,
0x29, 0x87, 0x0e, 0xc2, 0xea, 0xc7, 0xcc, 0xdb, 0xaa, 0xcf, 0xf4, 0x77,
0x97, 0x72, 0x1a, 0x4f, 0x2e, 0xf8, 0x08, 0x4a, 0x00, 0x00, 0x00, 0x00,
0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
};
static const unsigned char image1_data[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x16,
0x08, 0x06, 0x00, 0x00, 0x00, 0xc4, 0xb4, 0x6c, 0x3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xcc,
0x4b, 0x97, 0x9e, 0x5f, 0x50, 0xfb, 0xf7, 0x74, 0xe0, 0xcf, 0xfd, 0x29,
0xeb, 0x67, 0x92, 0x8d, 0x4e, 0x0c, 0xa5, 0xda, 0x23, 0xd7, 0xc4, 0x4f,
0x00, 0x33, 0xf6, 0xa1, 0x6d, 0xee, 0xec, 0xec, 0x51, 0x4a, 0x72, 0x74,
0x1c, 0xf4, 0x7d, 0xd2, 0x97, 0xa4, 0x84, 0xe9, 0x4b, 0x50, 0x4a, 0xf3,
0xba, 0x0d, 0xd1, 0x85, 0xf3, 0xe7, 0x9f, 0x0c, 0xce, 0xa8, 0x5d, 0xf1,
0xc3, 0x8f, 0xbf, 0x37, 0xe5, 0x55, 0xcd, 0x4c, 0x79, 0x66, 0x55, 0x9f,
0xe1, 0xb1, 0xb0, 0x16, 0xfc, 0x7a, 0xf8, 0x17, 0x6a, 0xf5, 0x59, 0x5f,
0x5f, 0x5d, 0x00, 0x77, 0x93, 0xc9, 0x84, 0x6b, 0xd7, 0xbf, 0x5e, 0xec,
0x97, 0xd3, 0xdd, 0xf3, 0xd4, 0xd8, 0xfe, 0xe8, 0xca, 0xc2, 0xe7, 0xb0,
0x9b, 0x4c, 0x26, 0xff, 0x9f, 0xf2, 0x1f, 0x62, 0xe5, 0x99, 0x50, 0x9f,
0x25, 0xf8, 0x1f, 0xed, 0xcc, 0xa6, 0x20, 0x70, 0xce, 0x49, 0x8c, 0x00,
0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
};
/*
* Constructs a UIDmmPrefs which is a child of 'parent', with the
* name 'name'.'
*/
UIDmmPrefs::UIDmmPrefs( QWidget* parent, const char* name )
: PrefWidget( parent, name )
{
QImage img;
img.loadFromData( image0_data, sizeof( image0_data ), "PNG" );
image0 = img;
img.loadFromData( image1_data, sizeof( image1_data ), "PNG" );
image1 = img;
if ( !name )
setName( "UIDmmPrefs" );
UIDmmPrefsLayout = new QVBoxLayout( this, 10, 5, "UIDmmPrefsLayout");
ui_hint = new QLabel( this, "ui_hint" );
ui_hint->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, ui_hint->sizePolicy().hasHeightForWidth() ) );
ui_hint->setFrameShape( QLabel::MShape );
ui_hint->setFrameShadow( QLabel::MShadow );
UIDmmPrefsLayout->addWidget( ui_hint );
layout2 = new QHBoxLayout( 0, 0, 5, "layout2");
ui_model = new QComboBox( FALSE, this, "ui_model" );
ui_model->setSizeLimit( 20 );
ui_model->setAutoCompletion( TRUE );
layout2->addWidget( ui_model );
ui_filename = new QLineEdit( this, "ui_filename" );
ui_filename->setEnabled( FALSE );
ui_filename->setFrameShape( QLineEdit::StyledPanel );
ui_filename->setReadOnly( TRUE );
layout2->addWidget( ui_filename );
ui_load = new QToolButton( this, "ui_load" );
ui_load->setEnabled( FALSE );
ui_load->setIconSet( QIconSet( image0 ) );
layout2->addWidget( ui_load );
ui_save = new QToolButton( this, "ui_save" );
ui_save->setEnabled( FALSE );
ui_save->setIconSet( QIconSet( image1 ) );
layout2->addWidget( ui_save );
UIDmmPrefsLayout->addLayout( layout2 );
ButtonGroup11 = new QButtonGroup( this, "ButtonGroup11" );
ButtonGroup11->setColumnLayout(0, Qt::Vertical );
ButtonGroup11->layout()->setSpacing( 5 );
ButtonGroup11->layout()->setMargin( 10 );
ButtonGroup11Layout = new QGridLayout( ButtonGroup11->layout() );
ButtonGroup11Layout->setAlignment( Qt::AlignTop );
layout2_2 = new QHBoxLayout( 0, 0, 2, "layout2_2");
port = new QComboBox( FALSE, ButtonGroup11, "port" );
port->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, 0, 0, port->sizePolicy().hasHeightForWidth() ) );
layout2_2->addWidget( port );
portNumber = new QSpinBox( ButtonGroup11, "portNumber" );
layout2_2->addWidget( portNumber );
ui_scanPorts = new QPushButton( ButtonGroup11, "ui_scanPorts" );
layout2_2->addWidget( ui_scanPorts );
ButtonGroup11Layout->addMultiCellLayout( layout2_2, 0, 1, 1, 1 );
ui_bitsLabel = new QLabel( ButtonGroup11, "ui_bitsLabel" );
ui_bitsLabel->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup11Layout->addWidget( ui_bitsLabel, 2, 0 );
ui_parityLabel = new QLabel( ButtonGroup11, "ui_parityLabel" );
ui_parityLabel->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup11Layout->addWidget( ui_parityLabel, 3, 0 );
stopBitsCombo = new QComboBox( FALSE, ButtonGroup11, "stopBitsCombo" );
ButtonGroup11Layout->addMultiCellWidget( stopBitsCombo, 1, 2, 3, 3 );
displayCombo = new QComboBox( FALSE, ButtonGroup11, "displayCombo" );
ButtonGroup11Layout->addWidget( displayCombo, 3, 3 );
ui_stopLabel = new QLabel( ButtonGroup11, "ui_stopLabel" );
ui_stopLabel->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup11Layout->addMultiCellWidget( ui_stopLabel, 1, 2, 2, 2 );
baudRate = new QComboBox( FALSE, ButtonGroup11, "baudRate" );
ButtonGroup11Layout->addWidget( baudRate, 0, 3 );
ui_displayLabel = new QLabel( ButtonGroup11, "ui_displayLabel" );
ui_displayLabel->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup11Layout->addWidget( ui_displayLabel, 3, 2 );
ui_baudLabel = new QLabel( ButtonGroup11, "ui_baudLabel" );
ui_baudLabel->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup11Layout->addWidget( ui_baudLabel, 0, 2 );
TextLabel2 = new QLabel( ButtonGroup11, "TextLabel2" );
TextLabel2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup11Layout->addWidget( TextLabel2, 0, 0 );
bitsCombo = new QComboBox( FALSE, ButtonGroup11, "bitsCombo" );
ButtonGroup11Layout->addWidget( bitsCombo, 2, 1 );
parityCombo = new QComboBox( FALSE, ButtonGroup11, "parityCombo" );
ButtonGroup11Layout->addWidget( parityCombo, 3, 1 );
UIDmmPrefsLayout->addWidget( ButtonGroup11 );
ui_protocol = new QButtonGroup( this, "ui_protocol" );
ui_protocol->setColumnLayout(0, Qt::Vertical );
ui_protocol->layout()->setSpacing( 5 );
ui_protocol->layout()->setMargin( 10 );
ui_protocolLayout = new QGridLayout( ui_protocol->layout() );
ui_protocolLayout->setAlignment( Qt::AlignTop );
protocolCombo = new QComboBox( FALSE, ui_protocol, "protocolCombo" );
ui_protocolLayout->addMultiCellWidget( protocolCombo, 0, 0, 0, 2 );
TextLabel1_4 = new QLabel( ui_protocol, "TextLabel1_4" );
ui_protocolLayout->addWidget( TextLabel1_4, 1, 0 );
ui_numValues = new QSpinBox( ui_protocol, "ui_numValues" );
ui_numValues->setMaxValue( 4 );
ui_numValues->setMinValue( 1 );
ui_protocolLayout->addWidget( ui_numValues, 1, 1 );
Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
ui_protocolLayout->addItem( Spacer1, 1, 2 );
UIDmmPrefsLayout->addWidget( ui_protocol );
Spacer1_3 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
UIDmmPrefsLayout->addItem( Spacer1_3 );
message2 = new QLabel( this, "message2" );
message2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)3, 0, 0, message2->sizePolicy().hasHeightForWidth() ) );
message2->setAlignment( int( QLabel::WordBreak | QLabel::AlignBottom | QLabel::AlignLeft ) );
UIDmmPrefsLayout->addWidget( message2 );
message = new QLabel( this, "message" );
message->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)3, 0, 0, message->sizePolicy().hasHeightForWidth() ) );
message->setAlignment( int( QLabel::WordBreak | QLabel::AlignBottom | QLabel::AlignLeft ) );
UIDmmPrefsLayout->addWidget( message );
languageChange();
resize( QSize(610, 640).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// tab order
setTabOrder( ui_model, port );
setTabOrder( port, baudRate );
setTabOrder( baudRate, bitsCombo );
setTabOrder( bitsCombo, stopBitsCombo );
setTabOrder( stopBitsCombo, parityCombo );
setTabOrder( parityCombo, displayCombo );
setTabOrder( displayCombo, protocolCombo );
setTabOrder( protocolCombo, ui_numValues );
// buddies
ui_bitsLabel->setBuddy( bitsCombo );
ui_parityLabel->setBuddy( stopBitsCombo );
ui_stopLabel->setBuddy( stopBitsCombo );
ui_displayLabel->setBuddy( stopBitsCombo );
ui_baudLabel->setBuddy( baudRate );
TextLabel2->setBuddy( port );
TextLabel1_4->setBuddy( ui_numValues );
}
/*
* Destroys the object and frees any allocated resources
*/
UIDmmPrefs::~UIDmmPrefs()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void UIDmmPrefs::languageChange()
{
setCaption( tr( "QFrameForm" ) );
ui_hint->setText( tr( "<b>Select yor DMM or set parameter manually</b>" ) );
QWhatsThis::add( ui_model, tr( "Here you may select your DMM model. If your DMM is not in the list, try to find working settings and mail them to me (<font color=blue><u>qtdmm@mtoussaint.de</u></font>). So I can add them to the list in the next release." ) );
ui_load->setText( QString::null );
QToolTip::add( ui_load, tr( "Load Settings" ) );
ui_save->setText( QString::null );
QToolTip::add( ui_save, tr( "Save Settings" ) );
ButtonGroup11->setTitle( tr( "Port settings" ) );
port->clear();
port->insertItem( tr( "/dev/ttyS" ) );
port->insertItem( tr( "/dev/usb/ttyUSB" ) );
port->insertItem( tr( "/dev/ttyUSB" ) );
port->insertItem( tr( "/dev/tty.usbserial" ) );
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>" ) );
QWhatsThis::add( portNumber, tr( "Enter the number of the port." ) );
ui_scanPorts->setText( tr( "Scan" ) );
QWhatsThis::add( ui_scanPorts, tr( "Clicke here to scan for new devices." ) );
ui_bitsLabel->setText( tr( "&Bits:" ) );
ui_parityLabel->setText( tr( "Parit&y" ) );
stopBitsCombo->clear();
stopBitsCombo->insertItem( tr( "1 Stop bit" ) );
stopBitsCombo->insertItem( tr( "2 Stop bits" ) );
QWhatsThis::add( stopBitsCombo, tr( "Number of stop bits for serial communication." ) );
displayCombo->clear();
displayCombo->insertItem( tr( "2000" ) );
displayCombo->insertItem( tr( "4000" ) );
displayCombo->insertItem( tr( "20000" ) );
displayCombo->insertItem( tr( "50000" ) );
displayCombo->insertItem( tr( "100000" ) );
displayCombo->insertItem( tr( "200000" ) );
displayCombo->insertItem( tr( "400000" ) );
displayCombo->insertItem( tr( "1000000" ) );
displayCombo->insertItem( tr( "6000" ) );
displayCombo->insertItem( tr( "40000" ) );
QWhatsThis::add( displayCombo, tr( "Number of display digits.\n"
"<ul><li>3 1/2 - 2000 Counts</li>\n"
"<li>3 3/4 - 4000 Counts</li>\n"
"<li>4 1/2 - 20000 Counts</li>\n"
"<li>4 3/4 - 40000 Counts</li>\n"
"</ul>" ) );
ui_stopLabel->setText( tr( "&Stop bits:" ) );
baudRate->clear();
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->insertItem( tr( "19200 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." ) );
ui_displayLabel->setText( tr( "&Digits" ) );
ui_baudLabel->setText( tr( "Baud &rate:" ) );
TextLabel2->setText( tr( "&Port:" ) );
bitsCombo->clear();
bitsCombo->insertItem( tr( "5 bits" ) );
bitsCombo->insertItem( tr( "6 bits" ) );
bitsCombo->insertItem( tr( "7 bits" ) );
bitsCombo->insertItem( tr( "8 bits" ) );
QWhatsThis::add( bitsCombo, tr( "Number of bits for serial communication." ) );
parityCombo->clear();
parityCombo->insertItem( tr( "None" ) );
parityCombo->insertItem( tr( "Even" ) );
parityCombo->insertItem( tr( "Odd" ) );
QWhatsThis::add( parityCombo, tr( "Parity for serial communication. May be None, Odd or Even." ) );
ui_protocol->setTitle( tr( "Protocol" ) );
protocolCombo->clear();
protocolCombo->insertItem( tr( "14 bytes ASCII, polling (Metex/Voltcraft)" ) );
protocolCombo->insertItem( tr( "11 bytes ASCII, continuous (PeakTech 451)" ) );
protocolCombo->insertItem( tr( "14 bytes ASCII, continuous (Voltcraft)" ) );
protocolCombo->insertItem( tr( "15 bytes ASCII, continuous (Voltcraft)" ) );
protocolCombo->insertItem( tr( "11 bytes binary, continuous (M9803R)" ) );
protocolCombo->insertItem( tr( "14 bytes binary, continuous (VC820)" ) );
protocolCombo->insertItem( tr( "22 bytes ASCII, continuous (IsoTech)" ) );
protocolCombo->insertItem( tr( "12 bytes binary, continuous (VC940)" ) );
protocolCombo->insertItem( tr( "14 bytes ASCII/binary, continuous (QM1537)" ) );
protocolCombo->insertItem( tr( "9 bytes binary, continuous (RS 22-812)" ) );
QWhatsThis::add( protocolCombo, tr( "Here you may select the Communication type. If you have a not \"officially\" supported multimeter, just try out the existing protocols. If you are lucky it may work. If you find working settings, send the to me." ) );
TextLabel1_4->setText( tr( "&Number of values:" ) );
QWhatsThis::add( ui_numValues, tr( "Some multimeter send several lines of data containing different measured values. As QtDMM only shows one variable here you can set the number of lines to be ignored for each measurement (That means that QtDMM only uses the first line)." ) );
message2->setText( tr( "These protocoll settings have not been confirmed by a user yet. If you own this model and can confirm that it works. Please give me a note. <u><font color=blue>qtdmm@mtoussaint.de</font></u>" ) );
message->setText( tr( "If you have a DMM not listed above and find manual settings that work, please report to <font color=blue><u>qtdmm@mtoussaint.de</u></font>. This way future users of this DMM can benefit from your help." ) );
}

83
src/uidmmprefs.h Normal file
View File

@ -0,0 +1,83 @@
/****************************************************************************
** Form interface generated from reading ui file 'uidmmprefs.ui'
**
** Created: Tue Dec 25 12:40:33 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef UIDMMPREFS_H
#define UIDMMPREFS_H
#include <qvariant.h>
#include <qpixmap.h>
#include <prefwidget.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QLabel;
class QComboBox;
class QLineEdit;
class QToolButton;
class QButtonGroup;
class QSpinBox;
class QPushButton;
class UIDmmPrefs : public PrefWidget
{
Q_OBJECT
public:
UIDmmPrefs( QWidget* parent = 0, const char* name = 0 );
~UIDmmPrefs();
QLabel* ui_hint;
QComboBox* ui_model;
QLineEdit* ui_filename;
QToolButton* ui_load;
QToolButton* ui_save;
QButtonGroup* ButtonGroup11;
QComboBox* port;
QSpinBox* portNumber;
QPushButton* ui_scanPorts;
QLabel* ui_bitsLabel;
QLabel* ui_parityLabel;
QComboBox* stopBitsCombo;
QComboBox* displayCombo;
QLabel* ui_stopLabel;
QComboBox* baudRate;
QLabel* ui_displayLabel;
QLabel* ui_baudLabel;
QLabel* TextLabel2;
QComboBox* bitsCombo;
QComboBox* parityCombo;
QButtonGroup* ui_protocol;
QComboBox* protocolCombo;
QLabel* TextLabel1_4;
QSpinBox* ui_numValues;
QLabel* message2;
QLabel* message;
protected:
QVBoxLayout* UIDmmPrefsLayout;
QSpacerItem* Spacer1_3;
QHBoxLayout* layout2;
QGridLayout* ButtonGroup11Layout;
QHBoxLayout* layout2_2;
QGridLayout* ui_protocolLayout;
QSpacerItem* Spacer1;
protected slots:
virtual void languageChange();
private:
QPixmap image0;
QPixmap image1;
QPixmap image2;
};
#endif // UIDMMPREFS_H

View File

@ -8,8 +8,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>598</width>
<height>635</height>
<width>610</width>
<height>640</height>
</rect>
</property>
<property name="caption">
@ -560,6 +560,11 @@
<string>14 bytes ASCII/binary, continuous (QM1537)</string>
</property>
</item>
<item>
<property name="text">
<string>9 bytes binary, continuous (RS 22-812)</string>
</property>
</item>
<property name="name">
<cstring>protocolCombo</cstring>
</property>
@ -696,13 +701,13 @@
</customwidgets>
<images>
<image name="image0">
<data format="PNG" length="992">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b000003a749444154789cb595db6bdc4514c73fbfdffee26e9adb363149636d132ab62249a460a9542b22f14114d410a848fb604104093efae0dd17df7ca87f8014ec830fd22a548a90a86d646b83a5de5a2506499a264db29bcde6b2bfcb5ccef8b03171ad41113330cc6166ce67ce7ce7cc8c97cbe5d88ae26f09f5bf82cf9cf3ddd9e1c0fdafe091d13a77fc5837c78f7673eab4dd14feafc167870317a93d6ef0855e5ab2695ab2697aee6ddf74bed7f9fccfeee947da100165411b4119f8f8dc345fbc167a9f5fa8715d776679ecd14e9a1a6a30c6a1b5c518472693e2f5772f71b41fefafe060776b9a6303cd2803b1056520d170a8a78e4f2f8cb9febe5ddcbfbf19ad41a96ae728323c3bb08fb7deffc1bd3398ae8207ce55cb6414cc8c4ed36062de7cf93eb6d582b57fbf5d1147f7de2c87f73703e5ea88ad6c804bd723a62f4ff0645f175dbb6b37d50f6071d570e29339700eadeb38f2f6a29b9af340049c23f87334cbb3cb1c3ad0f18fd0525978e28d31fa1eba833dbbea1181ae7d3b58295bb48113ef7d4b6065c3c1dfd9c6ab1ffcc4c10382b360c562ad20c621d661d6eccfbe2932f07827b7b566393f5909329d81efaf2c31353c7eab146786f274dddd4aefce80edb76f231447a41c91823076845a88637871ef0e929a80d1df2a50cf8785c988f98b1320abe44ed67a55e0a19179c64e75b330af696a09907ac8af406105266fc2ea22141228cc43b16429e413c285556e5e9da7345386d883868ab6813115e897a311877b1aa9cd404d5b0d57c69669ddddc8d80d189f84d9bc215fb0cc150cf982212c4544a532a599459c7210028105d6c0b2966ee72f15e97fb099b2c05c02f37e23bf7c671197228c1d4a41ac844439e24428e44374a8a1ae0e6c02249052e02a87e68b1596cbf0e3b51247faea192bc28d22c4407145585a1512ed88954369282d696667436c90c6cfa4abd32565c87dd8e8ad1d1e0c5d5ce1e1de266657a13e808e0cd45b68ec08582a2a4ce0d12c86461dd3d0aeb82b9b42920409134ca28942437e41989cd2eb6b04c63abeca2df0ca33eddcd3b0d6bb1db486387668ed93248624b128e5a354401c1bb40e88e35a94aa41a90ca7479638797d2311fc726898985ce1a983d597c2f721087c52290fdff7d76c7fddf6fdcad81ff6d75723721f65d7df8b6061a6cc4bcf75de72bb52a94a7538440c89d24471421469c25011270971a4d15a48b461fcd71068da9002df63f8729107069770e21001c42122582b582d1863b046b0c6608cc5688b18a9b46229870ec2eac7ccdbaacff47797721a4fc40f4d680000000049454e44ae426082</data>
<data format="PNG" length="992">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b000003a749444154388db595db6bdc4514c73fbfdffee26e9adb363149636d132ab62249a460a9542b22f14114d410a848fb604104093efae0dd17df7ca87f8014ec830fd22a548a90a86d646b83a5de5a2506499a264db29bcde6b2bfcb5ccef8b03171ad41113330cc6166ce67ce7ce7cc8c97cbe5d88ae26f09f5bf82cf9cf3ddd9e1c0fdafe091d13a77fc5837c78f7673eab4dd14feafc167870317a93d6ef0855e5ab2695ab2697aee6ddf74bed7f9fccfeee947da100165411b4119f8f8dc345fbc167a9f5fa8715d776679ecd14e9a1a6a30c6a1b5c518472693e2f5772f71b41fefafe060776b9a6303cd2803b1056520d170a8a78e4f2f8cb9febe5ddcbfbf19ad41a96ae728323c3bb08fb7deffc1bd3398ae8207ce55cb6414cc8c4ed36062de7cf93eb6d582b57fbf5d1147f7de2c87f73703e5ea88ad6c804bd723a62f4ff0645f175dbb6b37d50f6071d570e29339700eadeb38f2f6a29b9af340049c23f87334cbb3cb1c3ad0f18fd0525978e28d31fa1eba833dbbea1181ae7d3b58295bb48113ef7d4b6065c3c1dfd9c6ab1ffcc4c10382b360c562ad20c621d661d6eccfbe2932f07827b7b566393f5909329d81efaf2c31353c7eab146786f274dddd4aefce80edb76f231447a41c91823076845a88637871ef0e929a80d1df2a50cf8785c988f98b1320abe44ed67a55e0a19179c64e75b330af696a09907ac8af406105266fc2ea22141228cc43b16429e413c285556e5e9da7345386d883868ab6813115e897a311877b1aa9cd404d5b0d57c69669ddddc8d80d189f84d9bc215fb0cc150cf982212c4544a532a599459c7210028105d6c0b2966ee72f15e97fb099b2c05c02f37e23bf7c671197228c1d4a41ac844439e24428e44374a8a1ae0e6c02249052e02a87e68b1596cbf0e3b51247faea192bc28d22c4407145585a1512ed88954369282d696667436c90c6cfa4abd32565c87dd8e8ad1d1e0c5d5ce1e1de266657a13e808e0cd45b68ec08582a2a4ce0d12c86461dd3d0aeb82b9b42920409134ca28942437e41989cd2eb6b04c63abeca2df0ca33eddcd3b0d6bb1db486387668ed93248624b128e5a354401c1bb40e88e35a94aa41a90ca7479638797d2311fc726898985ce1a983d597c2f721087c52290fdff7d76c7fddf6fdcad81ff6d75723721f65d7df8b6061a6cc4bcf75de72bb52a94a7538440c89d24471421469c25011270971a4d15a48b461fcd71068da9002df63f8729107069770e21001c42122582b582d1863b046b0c6608cc5688b18a9b46229870ec2eac7ccdbaacff47797721a4f2ef8084a0000000049454e44ae426082</data>
</image>
<image name="image1">
<data format="PNG" length="731">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b000002a249444154789cb594bd6f5c5510c57fcf1f496105298e0329a0e25f48414185e811a4a02012121565e853a1502021e18a1a0929050852d0502051b12d428ae8c347b063a3c426ebf8bd3b730ec5bdfbb26b2f091419e9e9adf6defb9b73cfccbc6e329970f3d66d9b1ab6dbd37e0336486aeb00755d6d1f98f7af5eee988bb59bb76efb8d375f4336afbff232fbf77b56573bd6563bce6dacf3b4b8f1d9f748e6daf56fbc7de3ad11be6640aa2a013ef8f0abf1d0179f5e5d0ab34d647dc6ffda8d463086c8c48ff7f0eedbaf128aa550d94498be08c944887bf70e8938013635b3e7c82659e9ba934c4a88a188485322e987e48fbb0f284339b577cd8688aa38c27cfec93b741d745db7708b12a244851ef7413f043ffdb2c750622cec09b0194a02f0e5773f93590fa7448940692292122253a484523c9c0eecec1ea0149ef37ace0aeaa221b21e96bc008d109949ca64d4f7ceee0129e1d4828d23184389c4ccc0493675ca7a7d497350310c59c5c818a325e015034324925bdbb5f683134352df184cc7d6c5e7d8da3a57ebb05431aebe8678efcae5da156daab2792dcd7c3792b87f180c512df878fb5be4a5c583d28a374bfc6fd0081129f61f4c91ccd9b3674865bdc669c59039fb0e98df76f6aa3243665668bb514a1c3e0c8e8e8334bcb0b989314b04cf26af6634f0e2a58ba3da08511a34521c4c071e0d476cacd4a2f625974247c52562b4e2ceddddc7e014a508b92a9d3e8a96c864265b9b179653c7e2b53997cc4b979e5f50fbf774e0cffd29eb67928d4e0ca5da23d7c44f0033f6a16deeecec514a72741cf47dd297a484e94b504af3ba0dd185f3e79f0ccea85df1c38fbf37e555cd4c7966559fe1b1b016fc7af8176af5595f5f5d007793c9846bd7bf5eec97d3ddf3d4d8fee8cac2e7b09b4c26ff9ff21f62e599509f25f81fedcca620b8886cd70000000049454e44ae426082</data>
<data format="PNG" length="731">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b000002a249444154388db594bd6f5c5510c57fcf1f496105298e0329a0e25f48414185e811a4a02012121565e853a1502021e18a1a0929050852d0502051b12d428ae8c347b063a3c426ebf8bd3b730ec5bdfbb26b2f091419e9e9adf6defb9b73cfccbc6e329970f3d66d9b1ab6dbd37e0336486aeb00755d6d1f98f7af5eee988bb59bb76efb8d375f4336afbff232fbf77b56573bd6563bce6dacf3b4b8f1d9f748e6daf56fbc7de3ad11be6640aa2a013ef8f0abf1d0179f5e5d0ab34d647dc6ffda8d463086c8c48ff7f0eedbaf128aa550d94498be08c944887bf70e8938013635b3e7c82659e9ba934c4a88a188485322e987e48fbb0f284339b577cd8688aa38c27cfec93b741d745db7708b12a244851ef7413f043ffdb2c750622cec09b0194a02f0e5773f93590fa7448940692292122253a484523c9c0eecec1ea0149ef37ace0aeaa221b21e96bc008d109949ca64d4f7ceee0129e1d4828d23184389c4ccc0493675ca7a7d497350310c59c5c818a325e015034324925bdbb5f683134352df184cc7d6c5e7d8da3a57ebb05431aebe8678efcae5da156daab2792dcd7c3792b87f180c512df878fb5be4a5c583d28a374bfc6fd0081129f61f4c91ccd9b3674865bdc669c59039fb0e98df76f6aa3243665668bb514a1c3e0c8e8e8334bcb0b989314b04cf26af6634f0e2a58ba3da08511a34521c4c071e0d476cacd4a2f625974247c52562b4e2ceddddc7e014a508b92a9d3e8a96c864265b9b179653c7e2b53997cc4b979e5f50fbf774e0cffd29eb67928d4e0ca5da23d7c44f0033f6a16deeecec514a72741cf47dd297a484e94b504af3ba0dd185f3e79f0ccea85df1c38fbf37e555cd4c7966559fe1b1b016fc7af8176af5595f5f5d007793c9846bd7bf5eec97d3ddf3d4d8fee8cac2e7b09b4c26ff9ff21f62e599509f25f81fedcca62070ce498c0000000049454e44ae426082</data>
</image>
<image name="image2">
<data format="PNG" length="256">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b000000c749444154789cad55db1184200c4c180bb81a28c73aad811228c356f42b3792db3cc0db2fc724bb7901dc7b270f27ed17fa5fa9b117b7cd90211f4ba0ac906a7f1453b4d30ca917bb590681552af23f69bfc4ffa71519d2c8f62546ea5ea03738b1c18c33a4d156f0d13f43b61952e4af6d6e8fb3a408f080448419a433d6486d85052fdba892a295f5d45785cd8c51a9d6de6a814a8d2131da51f98e7a3b64ec9da04a8db53d43be3c3c0b22cacf17e4cdb5a931649ceddf34b190cf0aa019f03f1fd3e7457f03b5a66c9e1f13d0b20000000049454e44ae426082</data>
<data format="PNG" length="256">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b000000c749444154388dad55db1184200c4c180bb81a28c73aad811228c356f42b3792db3cc0db2fc724bb7901dc7b270f27ed17fa5fa9b117b7cd90211f4ba0ac906a7f1453b4d30ca917bb590681552af23f69bfc4ffa71519d2c8f62546ea5ea03738b1c18c33a4d156f0d13f43b61952e4af6d6e8fb3a408f080448419a433d6486d85052fdba892a295f5d45785cd8c51a9d6de6a814a8d2131da51f98e7a3b64ec9da04a8db53d43be3c3c0b22cacf17e4cdb5a931649ceddf34b190cf0aa019f03f1fd3e7457f03b5a66c9ed26e86130000000049454e44ae426082</data>
</image>
</images>
<tabstops>

201
src/uiexecuteprefs.cpp Normal file
View File

@ -0,0 +1,201 @@
/****************************************************************************
** Form implementation generated from reading ui file 'uiexecuteprefs.ui'
**
** Created: Tue Dec 25 12:41:11 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "uiexecuteprefs.h"
#include <qvariant.h>
#include <prefwidget.h>
#include <qpushbutton.h>
#include <qcheckbox.h>
#include <qbuttongroup.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qradiobutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
static const char* const image0_data[] = {
"16 16 7 1",
". c None",
"# c #000000",
"e c #a4a1a4",
"a c #acaaac",
"d c #c5c2c5",
"b c #d5d2d5",
"c c #dedede",
"................",
"................",
"................",
".####...........",
"#abba#######....",
"#bbbbaaaaaaa#...",
"#bb#############",
"#ba#ccccccccccc#",
"#b#cddddededee#.",
"#a#cdddededeee#.",
"##cdddededeee#..",
"##cddededeeee#..",
"#cddededeeee#...",
"#############...",
"................",
"................"};
/*
* Constructs a UIExecutePrefs which is a child of 'parent', with the
* name 'name'.'
*/
UIExecutePrefs::UIExecutePrefs( QWidget* parent, const char* name )
: PrefWidget( parent, name ),
image0( (const char **) image0_data )
{
if ( !name )
setName( "UIExecutePrefs" );
UIExecutePrefsLayout = new QVBoxLayout( this, 10, 5, "UIExecutePrefsLayout");
ui_executeCommand = new QCheckBox( this, "ui_executeCommand" );
UIExecutePrefsLayout->addWidget( ui_executeCommand );
ButtonGroup9 = new QButtonGroup( this, "ButtonGroup9" );
ButtonGroup9->setEnabled( FALSE );
ButtonGroup9->setFrameShape( QButtonGroup::Box );
ButtonGroup9->setFrameShadow( QButtonGroup::Sunken );
ButtonGroup9->setColumnLayout(0, Qt::Vertical );
ButtonGroup9->layout()->setSpacing( 5 );
ButtonGroup9->layout()->setMargin( 10 );
ButtonGroup9Layout = new QGridLayout( ButtonGroup9->layout() );
ButtonGroup9Layout->setAlignment( Qt::AlignTop );
TextLabel8_2_2_2 = new QLabel( ButtonGroup9, "TextLabel8_2_2_2" );
ButtonGroup9Layout->addWidget( TextLabel8_2_2_2, 1, 1 );
ui_execRaisingThreshold = new QLineEdit( ButtonGroup9, "ui_execRaisingThreshold" );
ui_execRaisingThreshold->setMaximumSize( QSize( 80, 32767 ) );
ui_execRaisingThreshold->setMaxLength( 12 );
ButtonGroup9Layout->addWidget( ui_execRaisingThreshold, 0, 2 );
TextLabel7_2_2_2 = new QLabel( ButtonGroup9, "TextLabel7_2_2_2" );
ButtonGroup9Layout->addWidget( TextLabel7_2_2_2, 0, 1 );
ui_execFallingThreshold = new QLineEdit( ButtonGroup9, "ui_execFallingThreshold" );
ui_execFallingThreshold->setMaximumSize( QSize( 80, 32767 ) );
ui_execFallingThreshold->setMaxLength( 12 );
ButtonGroup9Layout->addWidget( ui_execFallingThreshold, 1, 2 );
ui_execRaising = new QRadioButton( ButtonGroup9, "ui_execRaising" );
ui_execRaising->setChecked( TRUE );
ButtonGroup9Layout->addWidget( ui_execRaising, 0, 0 );
ui_execFalling = new QRadioButton( ButtonGroup9, "ui_execFalling" );
ButtonGroup9Layout->addWidget( ui_execFalling, 1, 0 );
Spacer4_2_2_2_2 = new QSpacerItem( 20, 20, QSizePolicy::MinimumExpanding, QSizePolicy::Minimum );
ButtonGroup9Layout->addItem( Spacer4_2_2_2_2, 1, 3 );
Spacer3_3_2_2 = new QSpacerItem( 20, 20, QSizePolicy::MinimumExpanding, QSizePolicy::Minimum );
ButtonGroup9Layout->addItem( Spacer3_3_2_2, 0, 3 );
UIExecutePrefsLayout->addWidget( ButtonGroup9 );
ButtonGroup10 = new QButtonGroup( this, "ButtonGroup10" );
ButtonGroup10->setEnabled( FALSE );
ButtonGroup10->setColumnLayout(0, Qt::Vertical );
ButtonGroup10->layout()->setSpacing( 5 );
ButtonGroup10->layout()->setMargin( 10 );
ButtonGroup10Layout = new QVBoxLayout( ButtonGroup10->layout() );
ButtonGroup10Layout->setAlignment( Qt::AlignTop );
Layout32_2_2 = new QHBoxLayout( 0, 0, 5, "Layout32_2_2");
ui_disconnectExec = new QCheckBox( ButtonGroup10, "ui_disconnectExec" );
ui_disconnectExec->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, 0, 0, ui_disconnectExec->sizePolicy().hasHeightForWidth() ) );
Layout32_2_2->addWidget( ui_disconnectExec );
Spacer1_9_2_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout32_2_2->addItem( Spacer1_9_2_2 );
ButtonGroup10Layout->addLayout( Layout32_2_2 );
Layout30_2_2 = new QHBoxLayout( 0, 0, 5, "Layout30_2_2");
ui_commandExec = new QLineEdit( ButtonGroup10, "ui_commandExec" );
Layout30_2_2->addWidget( ui_commandExec );
ui_browseExec = new QPushButton( ButtonGroup10, "ui_browseExec" );
ui_browseExec->setMinimumSize( QSize( 24, 24 ) );
ui_browseExec->setPixmap( image0 );
ui_browseExec->setAutoDefault( FALSE );
Layout30_2_2->addWidget( ui_browseExec );
ButtonGroup10Layout->addLayout( Layout30_2_2 );
UIExecutePrefsLayout->addWidget( ButtonGroup10 );
Spacer1_8 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
UIExecutePrefsLayout->addItem( Spacer1_8 );
languageChange();
resize( QSize(297, 221).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
connect( ui_executeCommand, SIGNAL( toggled(bool) ), ButtonGroup9, SLOT( setEnabled(bool) ) );
connect( ui_executeCommand, SIGNAL( toggled(bool) ), ButtonGroup10, SLOT( setEnabled(bool) ) );
// tab order
setTabOrder( ui_executeCommand, ui_execRaising );
setTabOrder( ui_execRaising, ui_execRaisingThreshold );
setTabOrder( ui_execRaisingThreshold, ui_execFalling );
setTabOrder( ui_execFalling, ui_execFallingThreshold );
setTabOrder( ui_execFallingThreshold, ui_disconnectExec );
setTabOrder( ui_disconnectExec, ui_commandExec );
setTabOrder( ui_commandExec, ui_browseExec );
}
/*
* Destroys the object and frees any allocated resources
*/
UIExecutePrefs::~UIExecutePrefs()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void UIExecutePrefs::languageChange()
{
setCaption( tr( "QFrameForm" ) );
ui_executeCommand->setText( tr( "Execute external command at given threshold" ) );
QWhatsThis::add( ui_executeCommand, tr( "Check this if you want QtDMM to execute an external command when given thresholds are reached (Falling or raising edge)." ) );
ButtonGroup9->setTitle( tr( "Threshold" ) );
TextLabel8_2_2_2->setText( tr( "Threshold:" ) );
ui_execRaisingThreshold->setText( tr( "0" ) );
QWhatsThis::add( ui_execRaisingThreshold, tr( "Threshold for raising edge.<p>\n"
"You can enter your values with a suffix like m, u, n, p, k, M, G, T<br>Example:<br>\n"
"10k - 10000<br>100m - 0.1" ) );
TextLabel7_2_2_2->setText( tr( "Threshold:" ) );
ui_execFallingThreshold->setText( tr( "0.0" ) );
QWhatsThis::add( ui_execFallingThreshold, tr( "Threshold for falling edge.<p>\n"
"You can enter your values with a suffix like m, u, n, p, k, M, G, T<br>Example:<br>\n"
"10k - 10000<br>100m - 0.1" ) );
ui_execRaising->setText( tr( "&Raising edge" ) );
QWhatsThis::add( ui_execRaising, tr( "Call command on raising edge." ) );
ui_execFalling->setText( tr( "&Falling edge" ) );
QWhatsThis::add( ui_execFalling, tr( "Call command on falling edge." ) );
ButtonGroup10->setTitle( tr( "Command" ) );
ui_disconnectExec->setText( tr( "Disconnect before executing command" ) );
QWhatsThis::add( ui_disconnectExec, tr( "Check this if you want QtDMM to disconnect (close the serial port) before executing the external command." ) );
QWhatsThis::add( ui_commandExec, tr( "Enter here the external command to be executed." ) );
ui_browseExec->setText( QString::null );
QToolTip::add( ui_browseExec, tr( "Browse" ) );
QWhatsThis::add( ui_browseExec, tr( "Here you can browse your harddisk for the external command (Altenative to directly typing it into the field to the left)." ) );
}

69
src/uiexecuteprefs.h Normal file
View File

@ -0,0 +1,69 @@
/****************************************************************************
** Form interface generated from reading ui file 'uiexecuteprefs.ui'
**
** Created: Tue Dec 25 12:40:33 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef UIEXECUTEPREFS_H
#define UIEXECUTEPREFS_H
#include <qvariant.h>
#include <qpixmap.h>
#include <prefwidget.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QCheckBox;
class QButtonGroup;
class QLabel;
class QLineEdit;
class QRadioButton;
class QPushButton;
class UIExecutePrefs : public PrefWidget
{
Q_OBJECT
public:
UIExecutePrefs( QWidget* parent = 0, const char* name = 0 );
~UIExecutePrefs();
QCheckBox* ui_executeCommand;
QButtonGroup* ButtonGroup9;
QLabel* TextLabel8_2_2_2;
QLineEdit* ui_execRaisingThreshold;
QLabel* TextLabel7_2_2_2;
QLineEdit* ui_execFallingThreshold;
QRadioButton* ui_execRaising;
QRadioButton* ui_execFalling;
QButtonGroup* ButtonGroup10;
QCheckBox* ui_disconnectExec;
QLineEdit* ui_commandExec;
QPushButton* ui_browseExec;
protected:
QVBoxLayout* UIExecutePrefsLayout;
QSpacerItem* Spacer1_8;
QGridLayout* ButtonGroup9Layout;
QSpacerItem* Spacer4_2_2_2_2;
QSpacerItem* Spacer3_3_2_2;
QVBoxLayout* ButtonGroup10Layout;
QHBoxLayout* Layout32_2_2;
QSpacerItem* Spacer1_9_2_2;
QHBoxLayout* Layout30_2_2;
protected slots:
virtual void languageChange();
private:
QPixmap image0;
QPixmap image1;
};
#endif // UIEXECUTEPREFS_H

242
src/uigraphprefs.cpp Normal file
View File

@ -0,0 +1,242 @@
/****************************************************************************
** Form implementation generated from reading ui file 'uigraphprefs.ui'
**
** Created: Tue Dec 25 12:41:13 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "uigraphprefs.h"
#include <qvariant.h>
#include <prefwidget.h>
#include <qpushbutton.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qbuttongroup.h>
#include <qcombobox.h>
#include <qspinbox.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "colorbutton.h"
/*
* Constructs a UIGraphPrefs which is a child of 'parent', with the
* name 'name'.'
*/
UIGraphPrefs::UIGraphPrefs( QWidget* parent, const char* name )
: PrefWidget( parent, name )
{
if ( !name )
setName( "UIGraphPrefs" );
UIGraphPrefsLayout = new QVBoxLayout( this, 10, 5, "UIGraphPrefsLayout");
GroupBox7 = new QGroupBox( this, "GroupBox7" );
GroupBox7->setFrameShape( QGroupBox::Box );
GroupBox7->setFrameShadow( QGroupBox::Sunken );
GroupBox7->setColumnLayout(0, Qt::Vertical );
GroupBox7->layout()->setSpacing( 5 );
GroupBox7->layout()->setMargin( 10 );
GroupBox7Layout = new QGridLayout( GroupBox7->layout() );
GroupBox7Layout->setAlignment( Qt::AlignTop );
Layout17_2 = new QHBoxLayout( 0, 0, 5, "Layout17_2");
ui_dataColor = new ColorButton( GroupBox7, "ui_dataColor" );
ui_dataColor->setMinimumSize( QSize( 50, 0 ) );
ui_dataColor->setMaximumSize( QSize( 50, 32767 ) );
Layout17_2->addWidget( ui_dataColor );
label_2 = new QLabel( GroupBox7, "label_2" );
label_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, 0, 0, label_2->sizePolicy().hasHeightForWidth() ) );
Layout17_2->addWidget( label_2 );
GroupBox7Layout->addLayout( Layout17_2, 1, 0 );
Layout19_4 = new QHBoxLayout( 0, 0, 5, "Layout19_4");
ui_bgColor = new ColorButton( GroupBox7, "ui_bgColor" );
ui_bgColor->setMinimumSize( QSize( 50, 0 ) );
ui_bgColor->setMaximumSize( QSize( 50, 32767 ) );
Layout19_4->addWidget( ui_bgColor );
TextLabel2_2_4 = new QLabel( GroupBox7, "TextLabel2_2_4" );
TextLabel2_2_4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, 0, 0, TextLabel2_2_4->sizePolicy().hasHeightForWidth() ) );
Layout19_4->addWidget( TextLabel2_2_4 );
GroupBox7Layout->addLayout( Layout19_4, 0, 0 );
Layout20_2 = new QHBoxLayout( 0, 0, 5, "Layout20_2");
ui_gridColor = new ColorButton( GroupBox7, "ui_gridColor" );
ui_gridColor->setMinimumSize( QSize( 50, 0 ) );
ui_gridColor->setMaximumSize( QSize( 50, 32767 ) );
Layout20_2->addWidget( ui_gridColor );
TextLabel3_2_2 = new QLabel( GroupBox7, "TextLabel3_2_2" );
TextLabel3_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, 0, 0, TextLabel3_2_2->sizePolicy().hasHeightForWidth() ) );
Layout20_2->addWidget( TextLabel3_2_2 );
GroupBox7Layout->addLayout( Layout20_2, 0, 1 );
Layout18_4 = new QHBoxLayout( 0, 0, 5, "Layout18_4");
ui_cursorColor = new ColorButton( GroupBox7, "ui_cursorColor" );
ui_cursorColor->setMinimumSize( QSize( 50, 0 ) );
ui_cursorColor->setMaximumSize( QSize( 50, 32767 ) );
Layout18_4->addWidget( ui_cursorColor );
label2_4 = new QLabel( GroupBox7, "label2_4" );
label2_4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, 0, 0, label2_4->sizePolicy().hasHeightForWidth() ) );
Layout18_4->addWidget( label2_4 );
GroupBox7Layout->addLayout( Layout18_4, 1, 1 );
Layout18_2_2 = new QHBoxLayout( 0, 0, 5, "Layout18_2_2");
ui_startColor = new ColorButton( GroupBox7, "ui_startColor" );
ui_startColor->setMinimumSize( QSize( 50, 0 ) );
ui_startColor->setMaximumSize( QSize( 50, 32767 ) );
Layout18_2_2->addWidget( ui_startColor );
label2_2_2 = new QLabel( GroupBox7, "label2_2_2" );
label2_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, 0, 0, label2_2_2->sizePolicy().hasHeightForWidth() ) );
Layout18_2_2->addWidget( label2_2_2 );
GroupBox7Layout->addLayout( Layout18_2_2, 2, 0 );
Layout18_3_2 = new QHBoxLayout( 0, 0, 5, "Layout18_3_2");
ui_extColor = new ColorButton( GroupBox7, "ui_extColor" );
ui_extColor->setMinimumSize( QSize( 50, 0 ) );
ui_extColor->setMaximumSize( QSize( 50, 32767 ) );
Layout18_3_2->addWidget( ui_extColor );
label2_3_2 = new QLabel( GroupBox7, "label2_3_2" );
label2_3_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, 0, 0, label2_3_2->sizePolicy().hasHeightForWidth() ) );
Layout18_3_2->addWidget( label2_3_2 );
GroupBox7Layout->addLayout( Layout18_3_2, 2, 1 );
UIGraphPrefsLayout->addWidget( GroupBox7 );
ButtonGroup11_2 = new QButtonGroup( this, "ButtonGroup11_2" );
ButtonGroup11_2->setColumnLayout(0, Qt::Vertical );
ButtonGroup11_2->layout()->setSpacing( 5 );
ButtonGroup11_2->layout()->setMargin( 10 );
ButtonGroup11_2Layout = new QGridLayout( ButtonGroup11_2->layout() );
ButtonGroup11_2Layout->setAlignment( Qt::AlignTop );
TextLabel1_3_3_2 = new QLabel( ButtonGroup11_2, "TextLabel1_3_3_2" );
TextLabel1_3_3_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup11_2Layout->addWidget( TextLabel1_3_3_2, 1, 0 );
ui_lineMode = new QComboBox( FALSE, ButtonGroup11_2, "ui_lineMode" );
ButtonGroup11_2Layout->addWidget( ui_lineMode, 0, 1 );
TextLabel1_6_2 = new QLabel( ButtonGroup11_2, "TextLabel1_6_2" );
TextLabel1_6_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, TextLabel1_6_2->sizePolicy().hasHeightForWidth() ) );
TextLabel1_6_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup11_2Layout->addWidget( TextLabel1_6_2, 0, 0 );
Spacer3_2_2_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
ButtonGroup11_2Layout->addItem( Spacer3_2_2_2, 0, 4 );
ui_lineWidth = new QSpinBox( ButtonGroup11_2, "ui_lineWidth" );
ui_lineWidth->setMaximumSize( QSize( 50, 32767 ) );
ui_lineWidth->setMaxValue( 5 );
ui_lineWidth->setMinValue( 1 );
ui_lineWidth->setValue( 2 );
ButtonGroup11_2Layout->addWidget( ui_lineWidth, 0, 3 );
TextLabel1 = new QLabel( ButtonGroup11_2, "TextLabel1" );
TextLabel1->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup11_2Layout->addWidget( TextLabel1, 0, 2 );
ui_pointMode = new QComboBox( FALSE, ButtonGroup11_2, "ui_pointMode" );
ButtonGroup11_2Layout->addWidget( ui_pointMode, 1, 1 );
Spacer233 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
ButtonGroup11_2Layout->addMultiCell( Spacer233, 1, 1, 2, 4 );
UIGraphPrefsLayout->addWidget( ButtonGroup11_2 );
ui_crosshair = new QCheckBox( this, "ui_crosshair" );
ui_crosshair->setChecked( TRUE );
UIGraphPrefsLayout->addWidget( ui_crosshair );
Spacer41 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
UIGraphPrefsLayout->addItem( Spacer41 );
languageChange();
resize( QSize(339, 225).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// tab order
setTabOrder( ui_lineMode, ui_lineWidth );
setTabOrder( ui_lineWidth, ui_pointMode );
setTabOrder( ui_pointMode, ui_crosshair );
// buddies
label_2->setBuddy( ui_dataColor );
TextLabel2_2_4->setBuddy( ui_bgColor );
TextLabel3_2_2->setBuddy( ui_gridColor );
label2_4->setBuddy( ui_cursorColor );
label2_2_2->setBuddy( ui_startColor );
label2_3_2->setBuddy( ui_extColor );
}
/*
* Destroys the object and frees any allocated resources
*/
UIGraphPrefs::~UIGraphPrefs()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void UIGraphPrefs::languageChange()
{
setCaption( tr( "QFrameForm" ) );
GroupBox7->setTitle( tr( "Colors" ) );
QWhatsThis::add( ui_dataColor, tr( "Click this button so change the color of the data graph in the recorder." ) );
label_2->setText( tr( "&Data" ) );
QWhatsThis::add( ui_bgColor, tr( "Click this button to change the background color of the recorder graph." ) );
TextLabel2_2_4->setText( tr( "&Background" ) );
QWhatsThis::add( ui_gridColor, tr( "Click this button to change the color of the grid and grid text in the recorder." ) );
TextLabel3_2_2->setText( tr( "&Grid" ) );
QWhatsThis::add( ui_cursorColor, tr( "Click this button to change the color of the cursor at the current sampling position in the recorder." ) );
label2_4->setText( tr( "Cu&rsor" ) );
QWhatsThis::add( ui_startColor, tr( "Click this button to change the color of the cursor at the current sampling position in the recorder." ) );
label2_2_2->setText( tr( "Start threshold" ) );
QWhatsThis::add( ui_extColor, tr( "Click this button to change the color of the cursor at the current sampling position in the recorder." ) );
label2_3_2->setText( tr( "E&xternal threshold" ) );
ButtonGroup11_2->setTitle( tr( "Drawing style" ) );
TextLabel1_3_3_2->setText( tr( "Data points:" ) );
ui_lineMode->clear();
ui_lineMode->insertItem( tr( "No line" ) );
ui_lineMode->insertItem( tr( "Solid line" ) );
ui_lineMode->insertItem( tr( "Dotted line" ) );
ui_lineMode->setCurrentItem( 1 );
TextLabel1_6_2->setText( tr( "Data:" ) );
QWhatsThis::add( ui_lineWidth, tr( "Here you can choose the line width of the data graph in the recorder." ) );
TextLabel1->setText( tr( "Width:" ) );
ui_pointMode->clear();
ui_pointMode->insertItem( tr( "No points" ) );
ui_pointMode->insertItem( tr( "Circle" ) );
ui_pointMode->insertItem( tr( "Square" ) );
ui_pointMode->insertItem( tr( "Diamond" ) );
ui_pointMode->insertItem( tr( "X" ) );
ui_pointMode->insertItem( tr( "Large Circle" ) );
ui_pointMode->insertItem( tr( "Large Square" ) );
ui_pointMode->insertItem( tr( "Large Diamond" ) );
ui_pointMode->insertItem( tr( "Large X" ) );
ui_crosshair->setText( tr( "Crosshair cursor" ) );
}

81
src/uigraphprefs.h Normal file
View File

@ -0,0 +1,81 @@
/****************************************************************************
** Form interface generated from reading ui file 'uigraphprefs.ui'
**
** Created: Tue Dec 25 12:40:33 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef UIGRAPHPREFS_H
#define UIGRAPHPREFS_H
#include <qvariant.h>
#include <qpixmap.h>
#include <prefwidget.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class ColorButton;
class QGroupBox;
class QLabel;
class QButtonGroup;
class QComboBox;
class QSpinBox;
class QCheckBox;
class UIGraphPrefs : public PrefWidget
{
Q_OBJECT
public:
UIGraphPrefs( QWidget* parent = 0, const char* name = 0 );
~UIGraphPrefs();
QGroupBox* GroupBox7;
ColorButton* ui_dataColor;
QLabel* label_2;
ColorButton* ui_bgColor;
QLabel* TextLabel2_2_4;
ColorButton* ui_gridColor;
QLabel* TextLabel3_2_2;
ColorButton* ui_cursorColor;
QLabel* label2_4;
ColorButton* ui_startColor;
QLabel* label2_2_2;
ColorButton* ui_extColor;
QLabel* label2_3_2;
QButtonGroup* ButtonGroup11_2;
QLabel* TextLabel1_3_3_2;
QComboBox* ui_lineMode;
QLabel* TextLabel1_6_2;
QSpinBox* ui_lineWidth;
QLabel* TextLabel1;
QComboBox* ui_pointMode;
QCheckBox* ui_crosshair;
protected:
QVBoxLayout* UIGraphPrefsLayout;
QSpacerItem* Spacer41;
QGridLayout* GroupBox7Layout;
QHBoxLayout* Layout17_2;
QHBoxLayout* Layout19_4;
QHBoxLayout* Layout20_2;
QHBoxLayout* Layout18_4;
QHBoxLayout* Layout18_2_2;
QHBoxLayout* Layout18_3_2;
QGridLayout* ButtonGroup11_2Layout;
QSpacerItem* Spacer3_2_2_2;
QSpacerItem* Spacer233;
protected slots:
virtual void languageChange();
private:
QPixmap image0;
};
#endif // UIGRAPHPREFS_H

262
src/uiguiprefs.cpp Normal file
View File

@ -0,0 +1,262 @@
/****************************************************************************
** Form implementation generated from reading ui file 'uiguiprefs.ui'
**
** Created: Tue Dec 25 12:41:15 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "uiguiprefs.h"
#include <qvariant.h>
#include <prefwidget.h>
#include <qpushbutton.h>
#include <qgroupbox.h>
#include <qcheckbox.h>
#include <qlabel.h>
#include <qbuttongroup.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "prefwidget.h"
#include "colorbutton.h"
/*
* Constructs a UIGuiPrefs which is a child of 'parent', with the
* name 'name'.'
*/
UIGuiPrefs::UIGuiPrefs( QWidget* parent, const char* name )
: PrefWidget( parent, name )
{
if ( !name )
setName( "UIGuiPrefs" );
UIGuiPrefsLayout = new QVBoxLayout( this, 10, 5, "UIGuiPrefsLayout");
GroupBox4 = new QGroupBox( this, "GroupBox4" );
GroupBox4->setColumnLayout(0, Qt::Vertical );
GroupBox4->layout()->setSpacing( 5 );
GroupBox4->layout()->setMargin( 10 );
GroupBox4Layout = new QGridLayout( GroupBox4->layout() );
GroupBox4Layout->setAlignment( Qt::AlignTop );
Layout37 = new QHBoxLayout( 0, 0, 0, "Layout37");
ui_showBar = new QCheckBox( GroupBox4, "ui_showBar" );
ui_showBar->setChecked( TRUE );
Layout37->addWidget( ui_showBar );
Spacer34 = new QSpacerItem( 20, 20, QSizePolicy::MinimumExpanding, QSizePolicy::Minimum );
Layout37->addItem( Spacer34 );
GroupBox4Layout->addMultiCellLayout( Layout37, 1, 1, 0, 1 );
Layout37_2 = new QHBoxLayout( 0, 0, 0, "Layout37_2");
ui_showMinMax = new QCheckBox( GroupBox4, "ui_showMinMax" );
ui_showMinMax->setChecked( TRUE );
Layout37_2->addWidget( ui_showMinMax );
Spacer34_2 = new QSpacerItem( 20, 20, QSizePolicy::MinimumExpanding, QSizePolicy::Minimum );
Layout37_2->addItem( Spacer34_2 );
GroupBox4Layout->addMultiCellLayout( Layout37_2, 1, 1, 2, 3 );
ui_showDisplay = new QCheckBox( GroupBox4, "ui_showDisplay" );
ui_showDisplay->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, 0, 0, ui_showDisplay->sizePolicy().hasHeightForWidth() ) );
ui_showDisplay->setChecked( TRUE );
GroupBox4Layout->addWidget( ui_showDisplay, 0, 0 );
Layout19_2 = new QHBoxLayout( 0, 0, 5, "Layout19_2");
ui_bgColorDisplay = new ColorButton( GroupBox4, "ui_bgColorDisplay" );
ui_bgColorDisplay->setMinimumSize( QSize( 50, 0 ) );
ui_bgColorDisplay->setMaximumSize( QSize( 50, 32767 ) );
Layout19_2->addWidget( ui_bgColorDisplay );
TextLabel2_2_2 = new QLabel( GroupBox4, "TextLabel2_2_2" );
TextLabel2_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, 0, 0, TextLabel2_2_2->sizePolicy().hasHeightForWidth() ) );
TextLabel2_2_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignLeft ) );
Layout19_2->addWidget( TextLabel2_2_2 );
GroupBox4Layout->addMultiCellLayout( Layout19_2, 0, 0, 1, 2 );
Layout19_3 = new QHBoxLayout( 0, 0, 5, "Layout19_3");
ui_textColor = new ColorButton( GroupBox4, "ui_textColor" );
ui_textColor->setMinimumSize( QSize( 50, 0 ) );
ui_textColor->setMaximumSize( QSize( 50, 32767 ) );
Layout19_3->addWidget( ui_textColor );
TextLabel2_2_3 = new QLabel( GroupBox4, "TextLabel2_2_3" );
TextLabel2_2_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, 0, 0, TextLabel2_2_3->sizePolicy().hasHeightForWidth() ) );
Layout19_3->addWidget( TextLabel2_2_3 );
GroupBox4Layout->addLayout( Layout19_3, 0, 3 );
UIGuiPrefsLayout->addWidget( GroupBox4 );
GroupBox4_2 = new QGroupBox( this, "GroupBox4_2" );
GroupBox4_2->setColumnLayout(0, Qt::Vertical );
GroupBox4_2->layout()->setSpacing( 5 );
GroupBox4_2->layout()->setMargin( 10 );
GroupBox4_2Layout = new QGridLayout( GroupBox4_2->layout() );
GroupBox4_2Layout->setAlignment( Qt::AlignTop );
Layout28 = new QHBoxLayout( 0, 0, 0, "Layout28");
ui_alertUnsavedData = new QCheckBox( GroupBox4_2, "ui_alertUnsavedData" );
ui_alertUnsavedData->setChecked( TRUE );
Layout28->addWidget( ui_alertUnsavedData );
Spacer1_10 = new QSpacerItem( 20, 20, QSizePolicy::MinimumExpanding, QSizePolicy::Minimum );
Layout28->addItem( Spacer1_10 );
GroupBox4_2Layout->addMultiCellLayout( Layout28, 0, 0, 0, 1 );
Layout29 = new QHBoxLayout( 0, 0, 0, "Layout29");
ui_saveWindowPos = new QCheckBox( GroupBox4_2, "ui_saveWindowPos" );
ui_saveWindowPos->setChecked( TRUE );
Layout29->addWidget( ui_saveWindowPos );
Spacer2_3 = new QSpacerItem( 20, 20, QSizePolicy::MinimumExpanding, QSizePolicy::Minimum );
Layout29->addItem( Spacer2_3 );
GroupBox4_2Layout->addLayout( Layout29, 1, 0 );
Layout29_2 = new QHBoxLayout( 0, 0, 0, "Layout29_2");
ui_saveWindowSize = new QCheckBox( GroupBox4_2, "ui_saveWindowSize" );
ui_saveWindowSize->setChecked( TRUE );
Layout29_2->addWidget( ui_saveWindowSize );
Spacer2_3_2 = new QSpacerItem( 20, 20, QSizePolicy::MinimumExpanding, QSizePolicy::Minimum );
Layout29_2->addItem( Spacer2_3_2 );
GroupBox4_2Layout->addLayout( Layout29_2, 1, 1 );
UIGuiPrefsLayout->addWidget( GroupBox4_2 );
ButtonGroup12_2 = new QButtonGroup( this, "ButtonGroup12_2" );
ButtonGroup12_2->setColumnLayout(0, Qt::Vertical );
ButtonGroup12_2->layout()->setSpacing( 5 );
ButtonGroup12_2->layout()->setMargin( 10 );
ButtonGroup12_2Layout = new QGridLayout( ButtonGroup12_2->layout() );
ButtonGroup12_2Layout->setAlignment( Qt::AlignTop );
Layout30 = new QHBoxLayout( 0, 0, 0, "Layout30");
ui_textLabel = new QCheckBox( ButtonGroup12_2, "ui_textLabel" );
ui_textLabel->setChecked( TRUE );
Layout30->addWidget( ui_textLabel );
Spacer3_4_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout30->addItem( Spacer3_4_2 );
ButtonGroup12_2Layout->addMultiCellLayout( Layout30, 0, 0, 0, 1 );
Layout30_3 = new QHBoxLayout( 0, 0, 0, "Layout30_3");
ui_dmmToolBar = new QCheckBox( ButtonGroup12_2, "ui_dmmToolBar" );
ui_dmmToolBar->setChecked( TRUE );
Layout30_3->addWidget( ui_dmmToolBar );
Spacer3_4_2_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout30_3->addItem( Spacer3_4_2_2 );
ButtonGroup12_2Layout->addLayout( Layout30_3, 1, 0 );
Layout30_4 = new QHBoxLayout( 0, 0, 0, "Layout30_4");
ui_fileToolBar = new QCheckBox( ButtonGroup12_2, "ui_fileToolBar" );
ui_fileToolBar->setChecked( TRUE );
Layout30_4->addWidget( ui_fileToolBar );
Spacer3_4_2_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout30_4->addItem( Spacer3_4_2_3 );
ButtonGroup12_2Layout->addLayout( Layout30_4, 2, 0 );
Layout30_5 = new QHBoxLayout( 0, 0, 0, "Layout30_5");
ui_helpToolBar = new QCheckBox( ButtonGroup12_2, "ui_helpToolBar" );
ui_helpToolBar->setChecked( TRUE );
Layout30_5->addWidget( ui_helpToolBar );
Spacer3_4_2_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout30_5->addItem( Spacer3_4_2_4 );
ButtonGroup12_2Layout->addLayout( Layout30_5, 2, 1 );
Layout30_5_2 = new QHBoxLayout( 0, 0, 0, "Layout30_5_2");
ui_graphToolBar = new QCheckBox( ButtonGroup12_2, "ui_graphToolBar" );
ui_graphToolBar->setChecked( TRUE );
Layout30_5_2->addWidget( ui_graphToolBar );
Spacer3_4_2_4_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout30_5_2->addItem( Spacer3_4_2_4_2 );
ButtonGroup12_2Layout->addLayout( Layout30_5_2, 1, 1 );
UIGuiPrefsLayout->addWidget( ButtonGroup12_2 );
ui_tipOfTheDay = new QCheckBox( this, "ui_tipOfTheDay" );
ui_tipOfTheDay->setChecked( TRUE );
UIGuiPrefsLayout->addWidget( ui_tipOfTheDay );
Spacer1_5 = new QSpacerItem( 20, 70, QSizePolicy::Minimum, QSizePolicy::Expanding );
UIGuiPrefsLayout->addItem( Spacer1_5 );
languageChange();
resize( QSize(559, 360).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// tab order
setTabOrder( ui_showBar, ui_showMinMax );
setTabOrder( ui_showMinMax, ui_alertUnsavedData );
setTabOrder( ui_alertUnsavedData, ui_saveWindowPos );
setTabOrder( ui_saveWindowPos, ui_saveWindowSize );
setTabOrder( ui_saveWindowSize, ui_textLabel );
setTabOrder( ui_textLabel, ui_dmmToolBar );
setTabOrder( ui_dmmToolBar, ui_graphToolBar );
setTabOrder( ui_graphToolBar, ui_fileToolBar );
setTabOrder( ui_fileToolBar, ui_helpToolBar );
setTabOrder( ui_helpToolBar, ui_tipOfTheDay );
// buddies
TextLabel2_2_2->setBuddy( ui_bgColorDisplay );
TextLabel2_2_3->setBuddy( ui_textColor );
}
/*
* Destroys the object and frees any allocated resources
*/
UIGuiPrefs::~UIGuiPrefs()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void UIGuiPrefs::languageChange()
{
setCaption( tr( "QFrameForm" ) );
GroupBox4->setTitle( tr( "Display" ) );
ui_showBar->setText( tr( "Show bargraph" ) );
ui_showMinMax->setText( tr( "Show Min/Max" ) );
ui_showDisplay->setText( tr( "Show" ) );
QWhatsThis::add( ui_bgColorDisplay, tr( "Click this button to change the color of the numerical display for the dmm." ) );
TextLabel2_2_2->setText( tr( "Back&ground" ) );
QWhatsThis::add( ui_textColor, tr( "Click this button to change the color of the text in the numerical display." ) );
TextLabel2_2_3->setText( tr( "&Text" ) );
GroupBox4_2->setTitle( tr( "At program exit" ) );
ui_alertUnsavedData->setText( tr( "Alert unsaved data" ) );
QWhatsThis::add( ui_alertUnsavedData, tr( "When this option is checked QtDMM will alert you if you are going to overwrite or loose unsaved data (import, quit)." ) );
ui_saveWindowPos->setText( tr( "Save window position" ) );
QWhatsThis::add( ui_saveWindowPos, tr( "When this option is checked the window position and size saved and restored in the next session." ) );
ui_saveWindowSize->setText( tr( "Save window size" ) );
QWhatsThis::add( ui_saveWindowSize, tr( "When this option is checked the window position and size saved and restored in the next session." ) );
ButtonGroup12_2->setTitle( tr( "Toolbar" ) );
ui_textLabel->setText( tr( "Icons with text label" ) );
QWhatsThis::add( ui_textLabel, tr( "Check this if you want text labels in the toolbar." ) );
ui_dmmToolBar->setText( tr( "DMM toolbar" ) );
QWhatsThis::add( ui_dmmToolBar, tr( "Check this if you want text labels in the toolbar." ) );
ui_fileToolBar->setText( tr( "File toolbar" ) );
QWhatsThis::add( ui_fileToolBar, tr( "Check this if you want text labels in the toolbar." ) );
ui_helpToolBar->setText( tr( "Help toolbar" ) );
QWhatsThis::add( ui_helpToolBar, tr( "Check this if you want text labels in the toolbar." ) );
ui_graphToolBar->setText( tr( "Graph toolbar" ) );
QWhatsThis::add( ui_graphToolBar, tr( "Check this if you want text labels in the toolbar." ) );
ui_tipOfTheDay->setText( tr( "Show tip of the day" ) );
}

92
src/uiguiprefs.h Normal file
View File

@ -0,0 +1,92 @@
/****************************************************************************
** Form interface generated from reading ui file 'uiguiprefs.ui'
**
** Created: Tue Dec 25 12:40:33 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef UIGUIPREFS_H
#define UIGUIPREFS_H
#include <qvariant.h>
#include <qpixmap.h>
#include <prefwidget.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class ColorButton;
class QGroupBox;
class QCheckBox;
class QLabel;
class QButtonGroup;
class UIGuiPrefs : public PrefWidget
{
Q_OBJECT
public:
UIGuiPrefs( QWidget* parent = 0, const char* name = 0 );
~UIGuiPrefs();
QGroupBox* GroupBox4;
QCheckBox* ui_showBar;
QCheckBox* ui_showMinMax;
QCheckBox* ui_showDisplay;
ColorButton* ui_bgColorDisplay;
QLabel* TextLabel2_2_2;
ColorButton* ui_textColor;
QLabel* TextLabel2_2_3;
QGroupBox* GroupBox4_2;
QCheckBox* ui_alertUnsavedData;
QCheckBox* ui_saveWindowPos;
QCheckBox* ui_saveWindowSize;
QButtonGroup* ButtonGroup12_2;
QCheckBox* ui_textLabel;
QCheckBox* ui_dmmToolBar;
QCheckBox* ui_fileToolBar;
QCheckBox* ui_helpToolBar;
QCheckBox* ui_graphToolBar;
QCheckBox* ui_tipOfTheDay;
protected:
QVBoxLayout* UIGuiPrefsLayout;
QSpacerItem* Spacer1_5;
QGridLayout* GroupBox4Layout;
QHBoxLayout* Layout37;
QSpacerItem* Spacer34;
QHBoxLayout* Layout37_2;
QSpacerItem* Spacer34_2;
QHBoxLayout* Layout19_2;
QHBoxLayout* Layout19_3;
QGridLayout* GroupBox4_2Layout;
QHBoxLayout* Layout28;
QSpacerItem* Spacer1_10;
QHBoxLayout* Layout29;
QSpacerItem* Spacer2_3;
QHBoxLayout* Layout29_2;
QSpacerItem* Spacer2_3_2;
QGridLayout* ButtonGroup12_2Layout;
QHBoxLayout* Layout30;
QSpacerItem* Spacer3_4_2;
QHBoxLayout* Layout30_3;
QSpacerItem* Spacer3_4_2_2;
QHBoxLayout* Layout30_4;
QSpacerItem* Spacer3_4_2_3;
QHBoxLayout* Layout30_5;
QSpacerItem* Spacer3_4_2_4;
QHBoxLayout* Layout30_5_2;
QSpacerItem* Spacer3_4_2_4_2;
protected slots:
virtual void languageChange();
private:
QPixmap image0;
};
#endif // UIGUIPREFS_H

241
src/uiintegrationprefs.cpp Normal file
View File

@ -0,0 +1,241 @@
/****************************************************************************
** Form implementation generated from reading ui file 'uiintegrationprefs.ui'
**
** Created: Tue Dec 25 12:41:17 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "uiintegrationprefs.h"
#include <qvariant.h>
#include <prefwidget.h>
#include <qpushbutton.h>
#include <qcheckbox.h>
#include <qbuttongroup.h>
#include <qlabel.h>
#include <qcombobox.h>
#include <qspinbox.h>
#include <qlineedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "colorbutton.h"
/*
* Constructs a UIIntegrationPrefs which is a child of 'parent', with the
* name 'name'.'
*/
UIIntegrationPrefs::UIIntegrationPrefs( QWidget* parent, const char* name )
: PrefWidget( parent, name )
{
if ( !name )
setName( "UIIntegrationPrefs" );
UIIntegrationPrefsLayout = new QVBoxLayout( this, 10, 5, "UIIntegrationPrefsLayout");
Layout53_2 = new QHBoxLayout( 0, 0, 5, "Layout53_2");
ui_showInt = new QCheckBox( this, "ui_showInt" );
Layout53_2->addWidget( ui_showInt );
Spacer40_2_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout53_2->addItem( Spacer40_2_2 );
UIIntegrationPrefsLayout->addLayout( Layout53_2 );
ButtonGroup15 = new QButtonGroup( this, "ButtonGroup15" );
ButtonGroup15->setEnabled( FALSE );
ButtonGroup15->setColumnLayout(0, Qt::Vertical );
ButtonGroup15->layout()->setSpacing( 5 );
ButtonGroup15->layout()->setMargin( 10 );
ButtonGroup15Layout = new QGridLayout( ButtonGroup15->layout() );
ButtonGroup15Layout->setAlignment( Qt::AlignTop );
Layout17_2_2 = new QHBoxLayout( 0, 0, 5, "Layout17_2_2");
ui_intColor = new ColorButton( ButtonGroup15, "ui_intColor" );
ui_intColor->setMinimumSize( QSize( 50, 0 ) );
ui_intColor->setMaximumSize( QSize( 50, 32767 ) );
Layout17_2_2->addWidget( ui_intColor );
label_2_2_2_3 = new QLabel( ButtonGroup15, "label_2_2_2_3" );
label_2_2_2_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, 0, 0, label_2_2_2_3->sizePolicy().hasHeightForWidth() ) );
Layout17_2_2->addWidget( label_2_2_2_3 );
ButtonGroup15Layout->addLayout( Layout17_2_2, 0, 0 );
Layout17_2_2_2 = new QHBoxLayout( 0, 0, 5, "Layout17_2_2_2");
ui_intThresholdColor = new ColorButton( ButtonGroup15, "ui_intThresholdColor" );
ui_intThresholdColor->setMinimumSize( QSize( 50, 0 ) );
ui_intThresholdColor->setMaximumSize( QSize( 50, 32767 ) );
Layout17_2_2_2->addWidget( ui_intThresholdColor );
label_2_2_2_2_2 = new QLabel( ButtonGroup15, "label_2_2_2_2_2" );
label_2_2_2_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, 0, 0, label_2_2_2_2_2->sizePolicy().hasHeightForWidth() ) );
Layout17_2_2_2->addWidget( label_2_2_2_2_2 );
ButtonGroup15Layout->addLayout( Layout17_2_2_2, 0, 1 );
UIIntegrationPrefsLayout->addWidget( ButtonGroup15 );
ButtonGroup16 = new QButtonGroup( this, "ButtonGroup16" );
ButtonGroup16->setEnabled( FALSE );
ButtonGroup16->setColumnLayout(0, Qt::Vertical );
ButtonGroup16->layout()->setSpacing( 5 );
ButtonGroup16->layout()->setMargin( 10 );
ButtonGroup16Layout = new QGridLayout( ButtonGroup16->layout() );
ButtonGroup16Layout->setAlignment( Qt::AlignTop );
TextLabel1_3_2_2 = new QLabel( ButtonGroup16, "TextLabel1_3_2_2" );
TextLabel1_3_2_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup16Layout->addWidget( TextLabel1_3_2_2, 1, 0 );
TextLabel1_5_2 = new QLabel( ButtonGroup16, "TextLabel1_5_2" );
TextLabel1_5_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, TextLabel1_5_2->sizePolicy().hasHeightForWidth() ) );
TextLabel1_5_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup16Layout->addWidget( TextLabel1_5_2, 0, 0 );
ui_intPointMode = new QComboBox( FALSE, ButtonGroup16, "ui_intPointMode" );
ButtonGroup16Layout->addWidget( ui_intPointMode, 1, 1 );
ui_intLineMode = new QComboBox( FALSE, ButtonGroup16, "ui_intLineMode" );
ButtonGroup16Layout->addWidget( ui_intLineMode, 0, 1 );
TextLabel1_3 = new QLabel( ButtonGroup16, "TextLabel1_3" );
TextLabel1_3->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup16Layout->addWidget( TextLabel1_3, 0, 2 );
ui_intLineWidth = new QSpinBox( ButtonGroup16, "ui_intLineWidth" );
ui_intLineWidth->setMaximumSize( QSize( 50, 32767 ) );
ui_intLineWidth->setMaxValue( 5 );
ui_intLineWidth->setMinValue( 1 );
ui_intLineWidth->setValue( 1 );
ButtonGroup16Layout->addWidget( ui_intLineWidth, 0, 3 );
Spacer3_2_3_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
ButtonGroup16Layout->addMultiCell( Spacer3_2_3_2, 1, 1, 2, 4 );
Spacer234 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
ButtonGroup16Layout->addItem( Spacer234, 0, 4 );
UIIntegrationPrefsLayout->addWidget( ButtonGroup16 );
ButtonGroup12 = new QButtonGroup( this, "ButtonGroup12" );
ButtonGroup12->setEnabled( FALSE );
ButtonGroup12->setColumnLayout(0, Qt::Vertical );
ButtonGroup12->layout()->setSpacing( 5 );
ButtonGroup12->layout()->setMargin( 10 );
ButtonGroup12Layout = new QGridLayout( ButtonGroup12->layout() );
ButtonGroup12Layout->setAlignment( Qt::AlignTop );
TextLabel2_4_2_2 = new QLabel( ButtonGroup12, "TextLabel2_4_2_2" );
TextLabel2_4_2_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup12Layout->addWidget( TextLabel2_4_2_2, 1, 0 );
TextLabel3_3_2_2_2 = new QLabel( ButtonGroup12, "TextLabel3_3_2_2_2" );
TextLabel3_3_2_2_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup12Layout->addWidget( TextLabel3_3_2_2_2, 2, 0 );
ui_intScale = new QLineEdit( ButtonGroup12, "ui_intScale" );
ui_intScale->setMaxLength( 12 );
ButtonGroup12Layout->addWidget( ui_intScale, 1, 1 );
ui_intOffset = new QLineEdit( ButtonGroup12, "ui_intOffset" );
ui_intOffset->setMaxLength( 12 );
ButtonGroup12Layout->addWidget( ui_intOffset, 1, 3 );
TextLabel3_3_2_3 = new QLabel( ButtonGroup12, "TextLabel3_3_2_3" );
TextLabel3_3_2_3->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup12Layout->addWidget( TextLabel3_3_2_3, 1, 2 );
ui_intThreshold = new QLineEdit( ButtonGroup12, "ui_intThreshold" );
ui_intThreshold->setMaxLength( 12 );
ButtonGroup12Layout->addWidget( ui_intThreshold, 2, 1 );
UIIntegrationPrefsLayout->addWidget( ButtonGroup12 );
Spacer47 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
UIIntegrationPrefsLayout->addItem( Spacer47 );
languageChange();
resize( QSize(366, 267).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
connect( ui_showInt, SIGNAL( toggled(bool) ), ButtonGroup15, SLOT( setEnabled(bool) ) );
connect( ui_showInt, SIGNAL( toggled(bool) ), ButtonGroup16, SLOT( setEnabled(bool) ) );
connect( ui_showInt, SIGNAL( toggled(bool) ), ButtonGroup12, SLOT( setEnabled(bool) ) );
// tab order
setTabOrder( ui_showInt, ui_intLineMode );
setTabOrder( ui_intLineMode, ui_intLineWidth );
setTabOrder( ui_intLineWidth, ui_intPointMode );
setTabOrder( ui_intPointMode, ui_intScale );
setTabOrder( ui_intScale, ui_intOffset );
setTabOrder( ui_intOffset, ui_intThreshold );
}
/*
* Destroys the object and frees any allocated resources
*/
UIIntegrationPrefs::~UIIntegrationPrefs()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void UIIntegrationPrefs::languageChange()
{
setCaption( tr( "QFrameForm" ) );
ui_showInt->setText( tr( "Show integration" ) );
ButtonGroup15->setTitle( tr( "Colors" ) );
QWhatsThis::add( ui_intColor, tr( "Click this button so change the color of the data graph in the recorder." ) );
label_2_2_2_3->setText( tr( "Integration graph" ) );
QWhatsThis::add( ui_intThresholdColor, tr( "Click this button so change the color of the data graph in the recorder." ) );
label_2_2_2_2_2->setText( tr( "Integration threshold" ) );
ButtonGroup16->setTitle( tr( "Drawing style" ) );
TextLabel1_3_2_2->setText( tr( "Point style:" ) );
TextLabel1_5_2->setText( tr( "Line style:" ) );
ui_intPointMode->clear();
ui_intPointMode->insertItem( tr( "No points" ) );
ui_intPointMode->insertItem( tr( "Circle" ) );
ui_intPointMode->insertItem( tr( "Square" ) );
ui_intPointMode->insertItem( tr( "Diamond" ) );
ui_intPointMode->insertItem( tr( "X" ) );
ui_intPointMode->insertItem( tr( "Large Circle" ) );
ui_intPointMode->insertItem( tr( "Large Square" ) );
ui_intPointMode->insertItem( tr( "Large Diamond" ) );
ui_intPointMode->insertItem( tr( "Large X" ) );
ui_intPointMode->setCurrentItem( 1 );
ui_intLineMode->clear();
ui_intLineMode->insertItem( tr( "No line" ) );
ui_intLineMode->insertItem( tr( "Solid line" ) );
ui_intLineMode->insertItem( tr( "Dotted line" ) );
TextLabel1_3->setText( tr( "Width:" ) );
QWhatsThis::add( ui_intLineWidth, tr( "Here you can choose the line width of the data graph in the recorder." ) );
ButtonGroup12->setTitle( tr( "Graph" ) );
TextLabel2_4_2_2->setText( tr( "Scale:" ) );
TextLabel3_3_2_2_2->setText( tr( "Threshold:" ) );
ui_intScale->setText( tr( "1.0" ) );
QWhatsThis::add( ui_intScale, tr( "Scaling factor for integration curve.<p>\n"
"You can enter your values with a suffix like m, u, n, p, k, M, G, T<br>Example:<br>\n"
"10k - 10000<br>100m - 0.1" ) );
ui_intOffset->setText( tr( "0.0" ) );
QWhatsThis::add( ui_intOffset, tr( "Amplitude offset for integration curve.<p>\n"
"You can enter your values with a suffix like m, u, n, p, k, M, G, T<br>Example:<br>\n"
"10k - 10000<br>100m - 0.1" ) );
TextLabel3_3_2_3->setText( tr( "Offset:" ) );
ui_intThreshold->setText( tr( "0.0" ) );
QWhatsThis::add( ui_intThreshold, tr( "If sampled value gets below this offset the integration curve is reset to zero.<p>\n"
"You can enter your values with a suffix like m, u, n, p, k, M, G, T<br>Example:<br>\n"
"10k - 10000<br>100m - 0.1" ) );
}

79
src/uiintegrationprefs.h Normal file
View File

@ -0,0 +1,79 @@
/****************************************************************************
** Form interface generated from reading ui file 'uiintegrationprefs.ui'
**
** Created: Tue Dec 25 12:40:33 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef UIINTEGRATIONPREFS_H
#define UIINTEGRATIONPREFS_H
#include <qvariant.h>
#include <qpixmap.h>
#include <prefwidget.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class ColorButton;
class QCheckBox;
class QButtonGroup;
class QLabel;
class QComboBox;
class QSpinBox;
class QLineEdit;
class UIIntegrationPrefs : public PrefWidget
{
Q_OBJECT
public:
UIIntegrationPrefs( QWidget* parent = 0, const char* name = 0 );
~UIIntegrationPrefs();
QCheckBox* ui_showInt;
QButtonGroup* ButtonGroup15;
ColorButton* ui_intColor;
QLabel* label_2_2_2_3;
ColorButton* ui_intThresholdColor;
QLabel* label_2_2_2_2_2;
QButtonGroup* ButtonGroup16;
QLabel* TextLabel1_3_2_2;
QLabel* TextLabel1_5_2;
QComboBox* ui_intPointMode;
QComboBox* ui_intLineMode;
QLabel* TextLabel1_3;
QSpinBox* ui_intLineWidth;
QButtonGroup* ButtonGroup12;
QLabel* TextLabel2_4_2_2;
QLabel* TextLabel3_3_2_2_2;
QLineEdit* ui_intScale;
QLineEdit* ui_intOffset;
QLabel* TextLabel3_3_2_3;
QLineEdit* ui_intThreshold;
protected:
QVBoxLayout* UIIntegrationPrefsLayout;
QSpacerItem* Spacer47;
QHBoxLayout* Layout53_2;
QSpacerItem* Spacer40_2_2;
QGridLayout* ButtonGroup15Layout;
QHBoxLayout* Layout17_2_2;
QHBoxLayout* Layout17_2_2_2;
QGridLayout* ButtonGroup16Layout;
QSpacerItem* Spacer3_2_3_2;
QSpacerItem* Spacer234;
QGridLayout* ButtonGroup12Layout;
protected slots:
virtual void languageChange();
private:
QPixmap image0;
};
#endif // UIINTEGRATIONPREFS_H

119
src/uimainwid.cpp Normal file
View File

@ -0,0 +1,119 @@
/****************************************************************************
** Form implementation generated from reading ui file 'uimainwid.ui'
**
** Created: Tue Dec 25 12:41:19 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "uimainwid.h"
#include <qvariant.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
#include "dmmgraph.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 #393839",
"b c #5a595a",
"a c #7b797b",
"e c #949594",
"j c #c5c6c5",
"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 ),
image0( (const char **) image0_data )
{
if ( !name )
setName( "UIMainWid" );
setIcon( image0 );
setFrameShape( QFrame::StyledPanel );
setFrameShadow( QFrame::Raised );
UIMainWidLayout = new QVBoxLayout( this, 0, 5, "UIMainWidLayout");
Layout5 = new QHBoxLayout( 0, 0, 5, "Layout5");
ui_graph = new DMMGraph( this, "ui_graph" );
ui_graph->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, ui_graph->sizePolicy().hasHeightForWidth() ) );
ui_graph->setMinimumSize( QSize( 0, 60 ) );
ui_graph->setCursor( QCursor( 0 ) );
Layout5->addWidget( ui_graph );
UIMainWidLayout->addLayout( Layout5 );
languageChange();
resize( QSize(605, 496).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
/*
* Destroys the object and frees any allocated resources
*/
UIMainWid::~UIMainWid()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void UIMainWid::languageChange()
{
setCaption( tr( "QtDMM 0.4.1" ) );
setIconText( tr( "QtDMM 0.4" ) );
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>\n"
"The maximum resolution for data aquisition is 1/10th of a 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." ) );
}

46
src/uimainwid.h Normal file
View File

@ -0,0 +1,46 @@
/****************************************************************************
** Form interface generated from reading ui file 'uimainwid.ui'
**
** Created: Tue Dec 25 12:40:33 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef UIMAINWID_H
#define UIMAINWID_H
#include <qvariant.h>
#include <qpixmap.h>
#include <qframe.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class DMMGraph;
class UIMainWid : public QFrame
{
Q_OBJECT
public:
UIMainWid( QWidget* parent = 0, const char* name = 0 );
~UIMainWid();
DMMGraph* ui_graph;
protected:
QVBoxLayout* UIMainWidLayout;
QHBoxLayout* Layout5;
protected slots:
virtual void languageChange();
private:
QPixmap image0;
QPixmap image1;
};
#endif // UIMAINWID_H

226
src/uiprintdlg.cpp Normal file
View File

@ -0,0 +1,226 @@
/****************************************************************************
** Form implementation generated from reading ui file 'uiprintdlg.ui'
**
** Created: Tue Dec 25 12:41:20 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "uiprintdlg.h"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <qframe.h>
#include <qlineedit.h>
#include <qmultilineedit.h>
#include <qlayout.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 as 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 ),
image0( (const char **) image0_data ),
image1( (const char **) image1_data )
{
if ( !name )
setName( "UIPrintDlg" );
setIcon( image0 );
setSizeGripEnabled( TRUE );
UIPrintDlgLayout = new QVBoxLayout( this, 11, 6, "UIPrintDlgLayout");
Layout2 = new QHBoxLayout( 0, 0, 5, "Layout2");
TextLabel3 = new QLabel( this, "TextLabel3" );
TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
QFont TextLabel3_font( TextLabel3->font() );
TextLabel3_font.setPointSize( 12 );
TextLabel3_font.setBold( TRUE );
TextLabel3->setFont( TextLabel3_font );
Layout2->addWidget( TextLabel3 );
printerLabel = new QLabel( this, "printerLabel" );
printerLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, printerLabel->sizePolicy().hasHeightForWidth() ) );
printerLabel->setFrameShape( QLabel::NoFrame );
printerLabel->setFrameShadow( QLabel::Sunken );
printerLabel->setMargin( 0 );
printerLabel->setIndent( 8 );
Layout2->addWidget( printerLabel );
configBut = new QPushButton( this, "configBut" );
configBut->setAutoDefault( FALSE );
Layout2->addWidget( configBut );
UIPrintDlgLayout->addLayout( Layout2 );
Frame5 = new QFrame( this, "Frame5" );
Frame5->setFrameShape( QFrame::WinPanel );
Frame5->setFrameShadow( QFrame::Raised );
Frame5Layout = new QVBoxLayout( Frame5, 10, 5, "Frame5Layout");
TextLabel1 = new QLabel( Frame5, "TextLabel1" );
Frame5Layout->addWidget( TextLabel1 );
printTitle = new QLineEdit( Frame5, "printTitle" );
printTitle->setFrame( TRUE );
Frame5Layout->addWidget( printTitle );
TextLabel2 = new QLabel( Frame5, "TextLabel2" );
Frame5Layout->addWidget( TextLabel2 );
printComment = new QMultiLineEdit( Frame5, "printComment" );
printComment->setFrameShape( QMultiLineEdit::WinPanel );
printComment->setFrameShadow( QMultiLineEdit::Sunken );
printComment->setLineWidth( 1 );
printComment->setWordWrap( QMultiLineEdit::WidgetWidth );
Frame5Layout->addWidget( printComment );
UIPrintDlgLayout->addWidget( Frame5 );
Layout28 = new QHBoxLayout( 0, 0, 4, "Layout28");
helpBut = new QPushButton( this, "helpBut" );
helpBut->setMinimumSize( QSize( 26, 26 ) );
helpBut->setPixmap( image1 );
helpBut->setAutoDefault( FALSE );
Layout28->addWidget( helpBut );
Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout28->addItem( Spacer2 );
printBut = new QPushButton( this, "printBut" );
printBut->setEnabled( FALSE );
printBut->setDefault( TRUE );
Layout28->addWidget( printBut );
cancelBut = new QPushButton( this, "cancelBut" );
Layout28->addWidget( cancelBut );
UIPrintDlgLayout->addLayout( Layout28 );
languageChange();
resize( QSize(531, 311).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// 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
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void UIPrintDlg::languageChange()
{
setCaption( tr( "QtDMM: Print graph ..." ) );
setIconText( tr( "Print ..." ) );
TextLabel3->setText( tr( "Printer:" ) );
printerLabel->setText( tr( "Please select printer ->" ) );
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>" ) );
configBut->setText( tr( "Configure ..." ) );
QWhatsThis::add( configBut, tr( "Click here to configure the printer." ) );
TextLabel1->setText( tr( "Title" ) );
QWhatsThis::add( printTitle, tr( "Enter a title for the document <i>(Optional)</i>" ) );
TextLabel2->setText( tr( "Comment" ) );
QWhatsThis::add( printComment, tr( "Here you may enter an comment which will be printed on top of the page <i>(Optional)</i>" ) );
helpBut->setText( QString::null );
QToolTip::add( helpBut, tr( "Direct help (SHIFT+F1)" ) );
printBut->setText( tr( "&Print" ) );
QWhatsThis::add( printBut, tr( "Click here to print." ) );
cancelBut->setText( tr( "&Cancel" ) );
QWhatsThis::add( cancelBut, tr( "Click here to abort printing." ) );
}

63
src/uiprintdlg.h Normal file
View File

@ -0,0 +1,63 @@
/****************************************************************************
** Form interface generated from reading ui file 'uiprintdlg.ui'
**
** Created: Tue Dec 25 12:40:33 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef UIPRINTDLG_H
#define UIPRINTDLG_H
#include <qvariant.h>
#include <qpixmap.h>
#include <qdialog.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QLabel;
class QPushButton;
class QFrame;
class QLineEdit;
class QMultiLineEdit;
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;
QSpacerItem* Spacer2;
protected slots:
virtual void languageChange();
private:
QPixmap image0;
QPixmap image1;
};
#endif // UIPRINTDLG_H

405
src/uirecorderprefs.cpp Normal file
View File

@ -0,0 +1,405 @@
/****************************************************************************
** Form implementation generated from reading ui file 'uirecorderprefs.ui'
**
** Created: Tue Dec 25 12:41:22 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "uirecorderprefs.h"
#include <qvariant.h>
#include <prefwidget.h>
#include <qpushbutton.h>
#include <qbuttongroup.h>
#include <qlabel.h>
#include <qcombobox.h>
#include <qspinbox.h>
#include <qgroupbox.h>
#include <qradiobutton.h>
#include <qlineedit.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a UIRecorderPrefs which is a child of 'parent', with the
* name 'name'.'
*/
UIRecorderPrefs::UIRecorderPrefs( QWidget* parent, const char* name )
: PrefWidget( parent, name )
{
if ( !name )
setName( "UIRecorderPrefs" );
UIRecorderPrefsLayout = new QVBoxLayout( this, 10, 5, "UIRecorderPrefsLayout");
ButtonGroup1 = new QButtonGroup( this, "ButtonGroup1" );
ButtonGroup1->setExclusive( FALSE );
ButtonGroup1->setColumnLayout(0, Qt::Vertical );
ButtonGroup1->layout()->setSpacing( 5 );
ButtonGroup1->layout()->setMargin( 10 );
ButtonGroup1Layout = new QGridLayout( ButtonGroup1->layout() );
ButtonGroup1Layout->setAlignment( Qt::AlignTop );
sampLabel = new QLabel( ButtonGroup1, "sampLabel" );
sampLabel->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup1Layout->addWidget( sampLabel, 0, 0 );
ui_sampleUnit = new QComboBox( FALSE, ButtonGroup1, "ui_sampleUnit" );
ButtonGroup1Layout->addWidget( ui_sampleUnit, 0, 2 );
Spacer9 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
ButtonGroup1Layout->addItem( Spacer9, 0, 3 );
sampLabel_2 = new QLabel( ButtonGroup1, "sampLabel_2" );
sampLabel_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup1Layout->addWidget( sampLabel_2, 1, 0 );
timeUnit = new QComboBox( FALSE, ButtonGroup1, "timeUnit" );
ButtonGroup1Layout->addWidget( timeUnit, 1, 2 );
sampleEvery = new QSpinBox( ButtonGroup1, "sampleEvery" );
sampleEvery->setMaxValue( 99999 );
sampleEvery->setMinValue( 1 );
sampleEvery->setValue( 1 );
ButtonGroup1Layout->addWidget( sampleEvery, 0, 1 );
sampleTime = new QSpinBox( ButtonGroup1, "sampleTime" );
sampleTime->setMaxValue( 99999 );
sampleTime->setMinValue( 0 );
sampleTime->setValue( 0 );
ButtonGroup1Layout->addWidget( sampleTime, 1, 1 );
UIRecorderPrefsLayout->addWidget( ButtonGroup1 );
GroupBox1 = new QGroupBox( this, "GroupBox1" );
GroupBox1->setColumnLayout(0, Qt::Vertical );
GroupBox1->layout()->setSpacing( 5 );
GroupBox1->layout()->setMargin( 10 );
GroupBox1Layout = new QVBoxLayout( GroupBox1->layout() );
GroupBox1Layout->setAlignment( Qt::AlignTop );
ButtonGroup32 = new QButtonGroup( GroupBox1, "ButtonGroup32" );
ButtonGroup32->setFrameShape( QButtonGroup::NoFrame );
ButtonGroup32->setExclusive( FALSE );
ButtonGroup32->setColumnLayout(0, Qt::Vertical );
ButtonGroup32->layout()->setSpacing( 5 );
ButtonGroup32->layout()->setMargin( 0 );
ButtonGroup32Layout = new QVBoxLayout( ButtonGroup32->layout() );
ButtonGroup32Layout->setAlignment( Qt::AlignTop );
Layout23 = new QHBoxLayout( 0, 0, 5, "Layout23");
manualBut = new QRadioButton( ButtonGroup32, "manualBut" );
manualBut->setChecked( TRUE );
Layout23->addWidget( manualBut );
Spacer7_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout23->addItem( Spacer7_2 );
ButtonGroup32Layout->addLayout( Layout23 );
Layout24 = new QHBoxLayout( 0, 0, 5, "Layout24");
predefinedBut = new QRadioButton( ButtonGroup32, "predefinedBut" );
Layout24->addWidget( predefinedBut );
Spacer8_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout24->addItem( Spacer8_2 );
ButtonGroup32Layout->addLayout( Layout24 );
Layout8 = new QHBoxLayout( 0, 0, 5, "Layout8");
Layout7 = new QHBoxLayout( 0, 0, 6, "Layout7");
TextLabel5 = new QLabel( ButtonGroup32, "TextLabel5" );
TextLabel5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, TextLabel5->sizePolicy().hasHeightForWidth() ) );
TextLabel5->setMinimumSize( QSize( 20, 0 ) );
Layout7->addWidget( TextLabel5 );
Layout6 = new QHBoxLayout( 0, 0, 6, "Layout6");
hour = new QSpinBox( ButtonGroup32, "hour" );
hour->setEnabled( FALSE );
hour->setWrapping( TRUE );
hour->setMaxValue( 23 );
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->setAlignment( int( QLabel::AlignCenter ) );
Layout6->addWidget( TextLabel3 );
minute = new QSpinBox( ButtonGroup32, "minute" );
minute->setEnabled( FALSE );
minute->setWrapping( TRUE );
minute->setMaxValue( 59 );
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->setAlignment( int( QLabel::AlignCenter ) );
Layout6->addWidget( TextLabel4 );
second = new QSpinBox( ButtonGroup32, "second" );
second->setEnabled( FALSE );
second->setWrapping( TRUE );
second->setMaxValue( 59 );
Layout6->addWidget( second );
Layout7->addLayout( Layout6 );
Layout8->addLayout( Layout7 );
Spacer2_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout8->addItem( Spacer2_2 );
ButtonGroup32Layout->addLayout( Layout8 );
Layout25 = new QHBoxLayout( 0, 0, 5, "Layout25");
triggerBut = new QRadioButton( ButtonGroup32, "triggerBut" );
Layout25->addWidget( triggerBut );
Spacer9_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout25->addItem( Spacer9_2 );
ButtonGroup32Layout->addLayout( Layout25 );
GroupBox1Layout->addWidget( ButtonGroup32 );
ButtonGroup13 = new QButtonGroup( GroupBox1, "ButtonGroup13" );
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 );
Layout14 = new QGridLayout( 0, 1, 1, 0, 5, "Layout14");
Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout14->addItem( Spacer3, 0, 3 );
ui_fallingThreshold = new QLineEdit( ButtonGroup13, "ui_fallingThreshold" );
ui_fallingThreshold->setEnabled( FALSE );
ui_fallingThreshold->setMaximumSize( QSize( 80, 32767 ) );
ui_fallingThreshold->setMaxLength( 12 );
Layout14->addWidget( ui_fallingThreshold, 1, 2 );
Spacer4_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout14->addItem( Spacer4_2, 1, 3 );
ui_raisingThreshold = new QLineEdit( ButtonGroup13, "ui_raisingThreshold" );
ui_raisingThreshold->setEnabled( FALSE );
ui_raisingThreshold->setMaximumSize( QSize( 80, 32767 ) );
ui_raisingThreshold->setMaxLength( 12 );
Layout14->addWidget( ui_raisingThreshold, 0, 2 );
TextLabel7 = new QLabel( ButtonGroup13, "TextLabel7" );
TextLabel7->setEnabled( FALSE );
Layout14->addWidget( TextLabel7, 0, 1 );
TextLabel8 = new QLabel( ButtonGroup13, "TextLabel8" );
TextLabel8->setEnabled( FALSE );
Layout14->addWidget( TextLabel8, 1, 1 );
Layout9 = new QHBoxLayout( 0, 0, 5, "Layout9");
TextLabel6 = new QLabel( ButtonGroup13, "TextLabel6" );
TextLabel6->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, TextLabel6->sizePolicy().hasHeightForWidth() ) );
TextLabel6->setMinimumSize( QSize( 20, 0 ) );
Layout9->addWidget( TextLabel6 );
raisingBut = new QRadioButton( ButtonGroup13, "raisingBut" );
raisingBut->setEnabled( FALSE );
raisingBut->setChecked( TRUE );
Layout9->addWidget( raisingBut );
Layout14->addLayout( Layout9, 0, 0 );
Layout10 = new QHBoxLayout( 0, 0, 5, "Layout10");
TextLabel6_2 = new QLabel( ButtonGroup13, "TextLabel6_2" );
TextLabel6_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, TextLabel6_2->sizePolicy().hasHeightForWidth() ) );
TextLabel6_2->setMinimumSize( QSize( 20, 0 ) );
Layout10->addWidget( TextLabel6_2 );
fallingBut = new QRadioButton( ButtonGroup13, "fallingBut" );
fallingBut->setEnabled( FALSE );
Layout10->addWidget( fallingBut );
Layout14->addLayout( Layout10, 1, 0 );
ButtonGroup13Layout->addLayout( Layout14 );
GroupBox1Layout->addWidget( ButtonGroup13 );
Layout11 = new QGridLayout( 0, 1, 1, 0, 5, "Layout11");
ui_preTrigger = new QCheckBox( GroupBox1, "ui_preTrigger" );
ui_preTrigger->setEnabled( FALSE );
Layout11->addWidget( ui_preTrigger, 0, 1 );
Spacer9_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout11->addItem( Spacer9_3, 1, 4 );
ui_preTriggerTime = new QSpinBox( GroupBox1, "ui_preTriggerTime" );
ui_preTriggerTime->setEnabled( FALSE );
ui_preTriggerTime->setMaxValue( 99999 );
ui_preTriggerTime->setMinValue( 1 );
ui_preTriggerTime->setValue( 1 );
Layout11->addWidget( ui_preTriggerTime, 1, 2 );
ui_preTriggerUnit = new QComboBox( FALSE, GroupBox1, "ui_preTriggerUnit" );
ui_preTriggerUnit->setEnabled( FALSE );
Layout11->addWidget( ui_preTriggerUnit, 1, 3 );
TextLabel6_2_2_2 = new QLabel( GroupBox1, "TextLabel6_2_2_2" );
TextLabel6_2_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, TextLabel6_2_2_2->sizePolicy().hasHeightForWidth() ) );
TextLabel6_2_2_2->setMinimumSize( QSize( 20, 0 ) );
Layout11->addWidget( TextLabel6_2_2_2, 1, 0 );
TextLabel6_2_2 = new QLabel( GroupBox1, "TextLabel6_2_2" );
TextLabel6_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, TextLabel6_2_2->sizePolicy().hasHeightForWidth() ) );
TextLabel6_2_2->setMinimumSize( QSize( 20, 0 ) );
Layout11->addWidget( TextLabel6_2_2, 0, 0 );
Spacer10 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout11->addMultiCell( Spacer10, 0, 0, 2, 4 );
sampLabel_2_2 = new QLabel( GroupBox1, "sampLabel_2_2" );
sampLabel_2_2->setEnabled( FALSE );
sampLabel_2_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
Layout11->addWidget( sampLabel_2_2, 1, 1 );
GroupBox1Layout->addLayout( Layout11 );
UIRecorderPrefsLayout->addWidget( GroupBox1 );
Spacer1_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
UIRecorderPrefsLayout->addItem( Spacer1_2 );
languageChange();
resize( QSize(317, 366).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
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) ), second, SLOT( setEnabled(bool) ) );
connect( predefinedBut, SIGNAL( toggled(bool) ), TextLabel4, 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) ), ui_raisingThreshold, SLOT( setEnabled(bool) ) );
connect( triggerBut, SIGNAL( toggled(bool) ), ui_fallingThreshold, SLOT( setEnabled(bool) ) );
connect( raisingBut, SIGNAL( toggled(bool) ), TextLabel7, SLOT( setEnabled(bool) ) );
connect( raisingBut, SIGNAL( toggled(bool) ), ui_raisingThreshold, SLOT( setEnabled(bool) ) );
connect( raisingBut, SIGNAL( toggled(bool) ), TextLabel8, SLOT( setDisabled(bool) ) );
connect( raisingBut, SIGNAL( toggled(bool) ), ui_fallingThreshold, SLOT( setDisabled(bool) ) );
// tab order
setTabOrder( sampleEvery, ui_sampleUnit );
setTabOrder( ui_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, ui_raisingThreshold );
setTabOrder( ui_raisingThreshold, fallingBut );
setTabOrder( fallingBut, ui_fallingThreshold );
// buddies
sampLabel->setBuddy( sampleEvery );
sampLabel_2->setBuddy( sampleTime );
sampLabel_2_2->setBuddy( sampleTime );
}
/*
* Destroys the object and frees any allocated resources
*/
UIRecorderPrefs::~UIRecorderPrefs()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void UIRecorderPrefs::languageChange()
{
setCaption( tr( "QFrameForm" ) );
ButtonGroup1->setTitle( tr( "Sampling" ) );
sampLabel->setText( tr( "Sample &every:" ) );
ui_sampleUnit->clear();
ui_sampleUnit->insertItem( tr( "1/10 Seconds" ) );
ui_sampleUnit->insertItem( tr( "Seconds" ) );
ui_sampleUnit->insertItem( tr( "Minutes" ) );
ui_sampleUnit->insertItem( tr( "Hours" ) );
ui_sampleUnit->insertItem( tr( "Days" ) );
QWhatsThis::add( ui_sampleUnit, tr( "Unit for sampling period." ) );
sampLabel_2->setText( tr( "Sample t&ime:" ) );
timeUnit->clear();
timeUnit->insertItem( tr( "Seconds" ) );
timeUnit->insertItem( tr( "Minutes" ) );
timeUnit->insertItem( tr( "Hours" ) );
timeUnit->insertItem( tr( "Days" ) );
QWhatsThis::add( timeUnit, tr( "Unit for maximum sampling time." ) );
QWhatsThis::add( sampleEvery, tr( "Specify the sampling period. See unit to the right." ) );
sampleTime->setSpecialValueText( tr( "Infinite" ) );
QWhatsThis::add( sampleTime, tr( "Maximum sampling time. When this time expires, the recorder is stopped automatically." ) );
GroupBox1->setTitle( tr( "Start" ) );
ButtonGroup32->setTitle( QString::null );
manualBut->setText( tr( "&Manual" ) );
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." ) );
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." ) );
QWhatsThis::add( hour, tr( "Hour of start time." ) );
TextLabel3->setText( tr( ":" ) );
QWhatsThis::add( minute, tr( "Minutes of start time." ) );
TextLabel4->setText( tr( ":" ) );
QWhatsThis::add( second, tr( "Seconds of start time." ) );
triggerBut->setText( tr( "&Trigger" ) );
QWhatsThis::add( triggerBut, tr( "Select this entry if you want to automatically trigger the sampling. <p>\n"
"You 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>" ) );
ButtonGroup13->setTitle( QString::null );
ui_fallingThreshold->setText( tr( "0.0" ) );
QWhatsThis::add( ui_fallingThreshold, tr( "Threshold for falling edge.<p>\n"
"You can enter your values with a suffix like m, u, n, p, k, M, G, T<br>Example:<br>\n"
"10k - 10000<br>100m - 0.1" ) );
ui_raisingThreshold->setText( tr( "0.0" ) );
QWhatsThis::add( ui_raisingThreshold, tr( "Threshold for raising edge.<p>\n"
"You can enter your values with a suffix like m, u, n, p, k, M, G, T<br>Example:<br>\n"
"10k - 10000<br>100m - 0.1" ) );
TextLabel7->setText( tr( "Threshold:" ) );
TextLabel8->setText( tr( "Threshold:" ) );
raisingBut->setText( tr( "&Raising edge" ) );
QWhatsThis::add( raisingBut, tr( "Trigger sampling on raising edge." ) );
fallingBut->setText( tr( "&Falling edge" ) );
QWhatsThis::add( fallingBut, tr( "Trigger sampling on falling edge." ) );
ui_preTrigger->setText( tr( "Pre trigger" ) );
QWhatsThis::add( ui_preTriggerTime, tr( "Maximum sampling time. When this time expires, the recorder is stopped automatically." ) );
ui_preTriggerUnit->clear();
ui_preTriggerUnit->insertItem( tr( "Seconds" ) );
ui_preTriggerUnit->insertItem( tr( "Minutes" ) );
ui_preTriggerUnit->insertItem( tr( "Hours" ) );
ui_preTriggerUnit->insertItem( tr( "Days" ) );
QWhatsThis::add( ui_preTriggerUnit, tr( "Unit for maximum sampling time." ) );
sampLabel_2_2->setText( tr( "Pre trigger time:" ) );
}

107
src/uirecorderprefs.h Normal file
View File

@ -0,0 +1,107 @@
/****************************************************************************
** Form interface generated from reading ui file 'uirecorderprefs.ui'
**
** Created: Tue Dec 25 12:40:33 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef UIRECORDERPREFS_H
#define UIRECORDERPREFS_H
#include <qvariant.h>
#include <qpixmap.h>
#include <prefwidget.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QButtonGroup;
class QLabel;
class QComboBox;
class QSpinBox;
class QGroupBox;
class QRadioButton;
class QLineEdit;
class QCheckBox;
class UIRecorderPrefs : public PrefWidget
{
Q_OBJECT
public:
UIRecorderPrefs( QWidget* parent = 0, const char* name = 0 );
~UIRecorderPrefs();
QButtonGroup* ButtonGroup1;
QLabel* sampLabel;
QComboBox* ui_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* ui_fallingThreshold;
QLineEdit* ui_raisingThreshold;
QLabel* TextLabel7;
QLabel* TextLabel8;
QLabel* TextLabel6;
QRadioButton* raisingBut;
QLabel* TextLabel6_2;
QRadioButton* fallingBut;
QCheckBox* ui_preTrigger;
QSpinBox* ui_preTriggerTime;
QComboBox* ui_preTriggerUnit;
QLabel* TextLabel6_2_2_2;
QLabel* TextLabel6_2_2;
QLabel* sampLabel_2_2;
protected:
QVBoxLayout* UIRecorderPrefsLayout;
QSpacerItem* Spacer1_2;
QGridLayout* ButtonGroup1Layout;
QSpacerItem* Spacer9;
QVBoxLayout* GroupBox1Layout;
QVBoxLayout* ButtonGroup32Layout;
QHBoxLayout* Layout23;
QSpacerItem* Spacer7_2;
QHBoxLayout* Layout24;
QSpacerItem* Spacer8_2;
QHBoxLayout* Layout8;
QSpacerItem* Spacer2_2;
QHBoxLayout* Layout7;
QHBoxLayout* Layout6;
QHBoxLayout* Layout25;
QSpacerItem* Spacer9_2;
QVBoxLayout* ButtonGroup13Layout;
QGridLayout* Layout14;
QSpacerItem* Spacer3;
QSpacerItem* Spacer4_2;
QHBoxLayout* Layout9;
QHBoxLayout* Layout10;
QGridLayout* Layout11;
QSpacerItem* Spacer9_3;
QSpacerItem* Spacer10;
protected slots:
virtual void languageChange();
private:
QPixmap image0;
};
#endif // UIRECORDERPREFS_H

222
src/uiscaleprefs.cpp Normal file
View File

@ -0,0 +1,222 @@
/****************************************************************************
** Form implementation generated from reading ui file 'uiscaleprefs.ui'
**
** Created: Tue Dec 25 12:41:25 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "uiscaleprefs.h"
#include <qvariant.h>
#include <prefwidget.h>
#include <qpushbutton.h>
#include <qbuttongroup.h>
#include <qradiobutton.h>
#include <qlabel.h>
#include <qcheckbox.h>
#include <qlineedit.h>
#include <qcombobox.h>
#include <qspinbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a UIScalePrefs which is a child of 'parent', with the
* name 'name'.'
*/
UIScalePrefs::UIScalePrefs( QWidget* parent, const char* name )
: PrefWidget( parent, name )
{
if ( !name )
setName( "UIScalePrefs" );
setMaximumSize( QSize( 32767, 32767 ) );
UIScalePrefsLayout = new QVBoxLayout( this, 10, 5, "UIScalePrefsLayout");
ButtonGroup36 = new QButtonGroup( this, "ButtonGroup36" );
ButtonGroup36->setFrameShape( QButtonGroup::Box );
ButtonGroup36->setFrameShadow( QButtonGroup::Sunken );
ButtonGroup36->setColumnLayout(0, Qt::Vertical );
ButtonGroup36->layout()->setSpacing( 5 );
ButtonGroup36->layout()->setMargin( 10 );
ButtonGroup36Layout = new QVBoxLayout( ButtonGroup36->layout() );
ButtonGroup36Layout->setAlignment( Qt::AlignTop );
autoScaleBut = new QRadioButton( ButtonGroup36, "autoScaleBut" );
autoScaleBut->setChecked( TRUE );
ButtonGroup36Layout->addWidget( autoScaleBut );
Layout12 = new QHBoxLayout( 0, 0, 5, "Layout12");
TextLabel9_2 = new QLabel( ButtonGroup36, "TextLabel9_2" );
TextLabel9_2->setMinimumSize( QSize( 20, 0 ) );
Layout12->addWidget( TextLabel9_2 );
ui_includeZero = new QCheckBox( ButtonGroup36, "ui_includeZero" );
ui_includeZero->setChecked( TRUE );
Layout12->addWidget( ui_includeZero );
Spacer14 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout12->addItem( Spacer14 );
ButtonGroup36Layout->addLayout( Layout12 );
manualScaleBut = new QRadioButton( ButtonGroup36, "manualScaleBut" );
ButtonGroup36Layout->addWidget( manualScaleBut );
Layout15_2 = new QHBoxLayout( 0, 0, 5, "Layout15_2");
TextLabel9 = new QLabel( ButtonGroup36, "TextLabel9" );
TextLabel9->setMinimumSize( QSize( 20, 0 ) );
Layout15_2->addWidget( TextLabel9 );
TextLabel10 = new QLabel( ButtonGroup36, "TextLabel10" );
TextLabel10->setEnabled( FALSE );
Layout15_2->addWidget( TextLabel10 );
ui_scaleMin = new QLineEdit( ButtonGroup36, "ui_scaleMin" );
ui_scaleMin->setEnabled( FALSE );
ui_scaleMin->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, ui_scaleMin->sizePolicy().hasHeightForWidth() ) );
ui_scaleMin->setMinimumSize( QSize( 60, 0 ) );
ui_scaleMin->setMaximumSize( QSize( 60, 32767 ) );
ui_scaleMin->setMaxLength( 12 );
Layout15_2->addWidget( ui_scaleMin );
TextLabel10_2 = new QLabel( ButtonGroup36, "TextLabel10_2" );
TextLabel10_2->setEnabled( FALSE );
Layout15_2->addWidget( TextLabel10_2 );
ui_scaleMax = new QLineEdit( ButtonGroup36, "ui_scaleMax" );
ui_scaleMax->setEnabled( FALSE );
ui_scaleMax->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, ui_scaleMax->sizePolicy().hasHeightForWidth() ) );
ui_scaleMax->setMinimumSize( QSize( 60, 0 ) );
ui_scaleMax->setMaximumSize( QSize( 60, 32767 ) );
ui_scaleMax->setMaxLength( 12 );
Layout15_2->addWidget( ui_scaleMax );
Spacer7 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout15_2->addItem( Spacer7 );
ButtonGroup36Layout->addLayout( Layout15_2 );
UIScalePrefsLayout->addWidget( ButtonGroup36 );
ButtonGroup37 = new QButtonGroup( this, "ButtonGroup37" );
ButtonGroup37->setColumnLayout(0, Qt::Vertical );
ButtonGroup37->layout()->setSpacing( 5 );
ButtonGroup37->layout()->setMargin( 10 );
ButtonGroup37Layout = new QGridLayout( ButtonGroup37->layout() );
ButtonGroup37Layout->setAlignment( Qt::AlignTop );
TextLabel11 = new QLabel( ButtonGroup37, "TextLabel11" );
TextLabel11->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup37Layout->addWidget( TextLabel11, 0, 0 );
TextLabel12 = new QLabel( ButtonGroup37, "TextLabel12" );
TextLabel12->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
ButtonGroup37Layout->addWidget( TextLabel12, 1, 0 );
Spacer8 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
ButtonGroup37Layout->addItem( Spacer8, 0, 3 );
sizeUnit = new QComboBox( FALSE, ButtonGroup37, "sizeUnit" );
ButtonGroup37Layout->addWidget( sizeUnit, 0, 2 );
lengthUnit = new QComboBox( FALSE, ButtonGroup37, "lengthUnit" );
ButtonGroup37Layout->addWidget( lengthUnit, 1, 2 );
ui_winSize = new QSpinBox( ButtonGroup37, "ui_winSize" );
ui_winSize->setMaxValue( 99999 );
ui_winSize->setMinValue( 1 );
ui_winSize->setValue( 600 );
ButtonGroup37Layout->addWidget( ui_winSize, 0, 1 );
winLength = new QSpinBox( ButtonGroup37, "winLength" );
winLength->setMaxValue( 99999 );
winLength->setMinValue( 1 );
winLength->setValue( 3600 );
ButtonGroup37Layout->addWidget( winLength, 1, 1 );
UIScalePrefsLayout->addWidget( ButtonGroup37 );
Spacer5 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
UIScalePrefsLayout->addItem( Spacer5 );
languageChange();
resize( QSize(315, 240).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
connect( manualScaleBut, SIGNAL( toggled(bool) ), TextLabel10, SLOT( setEnabled(bool) ) );
connect( manualScaleBut, SIGNAL( toggled(bool) ), ui_scaleMin, SLOT( setEnabled(bool) ) );
connect( manualScaleBut, SIGNAL( toggled(bool) ), TextLabel10_2, SLOT( setEnabled(bool) ) );
connect( manualScaleBut, SIGNAL( toggled(bool) ), ui_scaleMax, SLOT( setEnabled(bool) ) );
connect( autoScaleBut, SIGNAL( toggled(bool) ), ui_includeZero, SLOT( setEnabled(bool) ) );
// tab order
setTabOrder( autoScaleBut, manualScaleBut );
setTabOrder( manualScaleBut, ui_scaleMin );
setTabOrder( ui_scaleMin, ui_scaleMax );
setTabOrder( ui_scaleMax, ui_winSize );
setTabOrder( ui_winSize, sizeUnit );
setTabOrder( sizeUnit, winLength );
setTabOrder( winLength, lengthUnit );
// buddies
TextLabel10->setBuddy( ui_scaleMin );
TextLabel10_2->setBuddy( ui_scaleMax );
TextLabel11->setBuddy( ui_winSize );
TextLabel12->setBuddy( winLength );
}
/*
* Destroys the object and frees any allocated resources
*/
UIScalePrefs::~UIScalePrefs()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void UIScalePrefs::languageChange()
{
setCaption( tr( "QFrameForm" ) );
QWhatsThis::add( this, tr( "Threshold for raising edge.<p>\n"
"You can enter your values with a suffix like m, u, n, p, k, M, G, T<br>Example:<br>\n"
"10k - 10000<br>100m - 0.1" ) );
ButtonGroup36->setTitle( tr( "Scale" ) );
autoScaleBut->setText( tr( "Au&tomatic" ) );
QWhatsThis::add( autoScaleBut, tr( "Select this entry if you want automatic scaling of the vertical scale in the transient recorder." ) );
ui_includeZero->setText( tr( "Include zero line" ) );
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." ) );
TextLabel10->setText( tr( "M&inimum:" ) );
ui_scaleMin->setText( tr( "-3.999" ) );
QWhatsThis::add( ui_scaleMin, tr( "Enter the minimum scale value here.<p>\n"
"You can enter your values with a suffix like m, u, n, p, k, M, G, T<br>Example:<br>\n"
"10k - 10000<br>100m - 0.1" ) );
TextLabel10_2->setText( tr( "Ma&ximum:" ) );
ui_scaleMax->setText( tr( "3.999" ) );
QWhatsThis::add( ui_scaleMax, tr( "Enter the maximum scale value here.<p>\n"
"You can enter your values with a suffix like m, u, n, p, k, M, G, T<br>Example:<br>\n"
"10k - 10000<br>100m - 0.1" ) );
ButtonGroup37->setTitle( tr( "Window" ) );
TextLabel11->setText( tr( "&Size:" ) );
TextLabel12->setText( tr( "Max. &length:" ) );
sizeUnit->clear();
sizeUnit->insertItem( tr( "Seconds" ) );
sizeUnit->insertItem( tr( "Minutes" ) );
sizeUnit->insertItem( tr( "Hours" ) );
sizeUnit->insertItem( tr( "Days" ) );
QWhatsThis::add( sizeUnit, tr( "Unit for visible window width." ) );
lengthUnit->clear();
lengthUnit->insertItem( tr( "Seconds" ) );
lengthUnit->insertItem( tr( "Minutes" ) );
lengthUnit->insertItem( tr( "Hours" ) );
lengthUnit->insertItem( tr( "Days" ) );
QWhatsThis::add( ui_winSize, tr( "Size (in time) of the visible part of the recorder graph. See unit to the right." ) );
QWhatsThis::add( winLength, tr( "Maximum length (in time) of the recorder graph. If this time is reached the first recorded values will be discarded. It will not stop recording." ) );
}

74
src/uiscaleprefs.h Normal file
View File

@ -0,0 +1,74 @@
/****************************************************************************
** Form interface generated from reading ui file 'uiscaleprefs.ui'
**
** Created: Tue Dec 25 12:40:33 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef UISCALEPREFS_H
#define UISCALEPREFS_H
#include <qvariant.h>
#include <qpixmap.h>
#include <prefwidget.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QButtonGroup;
class QRadioButton;
class QLabel;
class QCheckBox;
class QLineEdit;
class QComboBox;
class QSpinBox;
class UIScalePrefs : public PrefWidget
{
Q_OBJECT
public:
UIScalePrefs( QWidget* parent = 0, const char* name = 0 );
~UIScalePrefs();
QButtonGroup* ButtonGroup36;
QRadioButton* autoScaleBut;
QLabel* TextLabel9_2;
QCheckBox* ui_includeZero;
QRadioButton* manualScaleBut;
QLabel* TextLabel9;
QLabel* TextLabel10;
QLineEdit* ui_scaleMin;
QLabel* TextLabel10_2;
QLineEdit* ui_scaleMax;
QButtonGroup* ButtonGroup37;
QLabel* TextLabel11;
QLabel* TextLabel12;
QComboBox* sizeUnit;
QComboBox* lengthUnit;
QSpinBox* ui_winSize;
QSpinBox* winLength;
protected:
QVBoxLayout* UIScalePrefsLayout;
QSpacerItem* Spacer5;
QVBoxLayout* ButtonGroup36Layout;
QHBoxLayout* Layout12;
QSpacerItem* Spacer14;
QHBoxLayout* Layout15_2;
QSpacerItem* Spacer7;
QGridLayout* ButtonGroup37Layout;
QSpacerItem* Spacer8;
protected slots:
virtual void languageChange();
private:
QPixmap image0;
};
#endif // UISCALEPREFS_H

326
src/uitipdlg.cpp Normal file
View File

@ -0,0 +1,326 @@
/****************************************************************************
** Form implementation generated from reading ui file 'uitipdlg.ui'
**
** Created: Tue Dec 25 12:41:26 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "uitipdlg.h"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qtextview.h>
#include <qlabel.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
static const unsigned char image0_data[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20,
0x08, 0x06, 0x00, 0x00, 0x00, 0x73, 0x7a, 0x7a, 0xf4, 0x00, 0x00, 0x01,
0xff, 0x49, 0x44, 0x41, 0x54, 0x78, 0x9c, 0xc5, 0x57, 0x3d, 0x4e, 0xc3,
0x30, 0x18, 0x7d, 0x46, 0x5c, 0xa0, 0x48, 0xec, 0x44, 0x42, 0xec, 0xd9,
0xc8, 0x97, 0x13, 0x70, 0x84, 0x96, 0x23, 0x24, 0x13, 0x15, 0x13, 0xea,
0x84, 0x98, 0x10, 0x4c, 0xc9, 0x09, 0x50, 0x92, 0x23, 0x70, 0x82, 0xa4,
0x6c, 0x19, 0x41, 0x15, 0x12, 0xbd, 0x89, 0x19, 0x8a, 0x8d, 0x71, 0xfc,
0x97, 0x12, 0xc4, 0x93, 0x2a, 0xc7, 0xf6, 0x27, 0xbf, 0xf7, 0xbd, 0x2f,
0xb5, 0x1d, 0xd6, 0x75, 0x1d, 0xfe, 0x13, 0x87, 0xb6, 0x09, 0x22, 0xe2,
0x53, 0x93, 0x75, 0x5d, 0xc7, 0x82, 0x04, 0x10, 0x11, 0xbf, 0x59, 0xdd,
0x4c, 0xcd, 0x0f, 0x22, 0xe2, 0xba, 0x88, 0x81, 0x00, 0x41, 0xfe, 0xf1,
0xfe, 0x31, 0xb9, 0x80, 0xe4, 0x3c, 0x19, 0x88, 0xb0, 0x96, 0x00, 0x00,
0xea, 0xa6, 0x9e, 0x8c, 0x7c, 0x31, 0x5f, 0x18, 0xc7, 0x9d, 0x02, 0x00,
0xa0, 0xdd, 0xb4, 0xbf, 0x26, 0x4f, 0xcf, 0x52, 0x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, 0xc0, 0x01, 0xed, 0xdc,
0x05, 0x2a, 0x55, 0xeb, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44,
0xae, 0x42, 0x60, 0x82
};
static const unsigned char image1_data[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30,
0x08, 0x06, 0x00, 0x00, 0x00, 0x57, 0x02, 0xf9, 0x87, 0x00, 0x00, 0x06,
0xe9, 0x49, 0x44, 0x41, 0x54, 0x78, 0x9c, 0xd5, 0x99, 0x6d, 0x6c, 0x53,
0xd7, 0x19, 0xc7, 0x7f, 0xa9, 0x0a, 0x24, 0x8e, 0xad, 0x24, 0xbe, 0xd7,
0x2f, 0x59, 0xad, 0x14, 0x02, 0x26, 0xa4, 0xa4, 0x05, 0xb5, 0xac, 0xd4,
0x8b, 0xd6, 0x04, 0xcf, 0x95, 0x98, 0x48, 0x61, 0x74, 0xa8, 0x1d, 0x53,
0xa5, 0xb6, 0x6a, 0x36, 0xb6, 0xf1, 0x6d, 0x9a, 0xb4, 0x09, 0x8d, 0x55,
0x53, 0xd7, 0xaa, 0x93, 0x86, 0xc4, 0x87, 0x6d, 0x88, 0x35, 0x12, 0xa1,
0xb4, 0x42, 0x53, 0x4b, 0x8b, 0x42, 0x90, 0x3a, 0x0d, 0x41, 0x42, 0x47,
0xc6, 0xeb, 0xc0, 0x2c, 0xa4, 0x49, 0x93, 0x36, 0x64, 0x9a, 0x14, 0x3b,
0x7e, 0x4b, 0xe4, 0x37, 0x20, 0x51, 0xbd, 0x0f, 0x97, 0x7b, 0xb9, 0xd7,
0xb9, 0xd7, 0x6f, 0x71, 0x3a, 0xfa, 0x97, 0x2c, 0x1d, 0x9d, 0xf3, 0xdc,
0xc7, 0xff, 0xff, 0x39, 0xcf, 0x79, 0xce, 0x5b, 0xc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0xae, 0x42,
0x60, 0x82
};
/*
* Constructs a UITipDlg as 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.
*/
UITipDlg::UITipDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
QImage img;
img.loadFromData( image0_data, sizeof( image0_data ), "PNG" );
image0 = img;
img.loadFromData( image1_data, sizeof( image1_data ), "PNG" );
image1 = img;
if ( !name )
setName( "UITipDlg" );
setIcon( image0 );
UITipDlgLayout = new QVBoxLayout( this, 10, 5, "UITipDlgLayout");
Layout8 = new QHBoxLayout( 0, 0, 5, "Layout8");
ui_tip = new QTextView( this, "ui_tip" );
ui_tip->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, ui_tip->sizePolicy().hasHeightForWidth() ) );
ui_tip->setMinimumSize( QSize( 400, 50 ) );
ui_tip->setMaximumSize( QSize( 32767, 32767 ) );
ui_tip->setFrameShape( QTextView::NoFrame );
ui_tip->setResizePolicy( QTextView::Manual );
ui_tip->setVScrollBarMode( QTextView::AlwaysOff );
ui_tip->setHScrollBarMode( QTextView::AlwaysOff );
Layout8->addWidget( ui_tip );
Layout8_2 = new QVBoxLayout( 0, 0, 0, "Layout8_2");
ui_logo = new QLabel( this, "ui_logo" );
ui_logo->setMargin( 3 );
ui_logo->setPixmap( image1 );
ui_logo->setScaledContents( TRUE );
Layout8_2->addWidget( ui_logo );
Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
Layout8_2->addItem( Spacer2 );
Layout8->addLayout( Layout8_2 );
UITipDlgLayout->addLayout( Layout8 );
Layout7 = new QHBoxLayout( 0, 0, 5, "Layout7");
ui_showTip = new QCheckBox( this, "ui_showTip" );
Layout7->addWidget( ui_showTip );
ui_previousBut = new QPushButton( this, "ui_previousBut" );
ui_previousBut->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, ui_previousBut->sizePolicy().hasHeightForWidth() ) );
ui_previousBut->setAutoDefault( FALSE );
Layout7->addWidget( ui_previousBut );
ui_nextBut = new QPushButton( this, "ui_nextBut" );
ui_nextBut->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, ui_nextBut->sizePolicy().hasHeightForWidth() ) );
ui_nextBut->setAutoDefault( FALSE );
Layout7->addWidget( ui_nextBut );
Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
Layout7->addItem( Spacer1 );
ui_closeBut = new QPushButton( this, "ui_closeBut" );
ui_closeBut->setDefault( TRUE );
Layout7->addWidget( ui_closeBut );
UITipDlgLayout->addLayout( Layout7 );
languageChange();
resize( QSize(510, 246).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
/*
* Destroys the object and frees any allocated resources
*/
UITipDlg::~UITipDlg()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void UITipDlg::languageChange()
{
setCaption( tr( "QtDMM: Tip of the day" ) );
QWhatsThis::add( ui_logo, tr( "Calvin :)" ) );
ui_showTip->setText( tr( "Don't show tips again" ) );
QWhatsThis::add( ui_showTip, tr( "<font size=+1><b>Don't show tips again</b></font><p>Check this if you don't want to see the tip of the day at startup. You can activate the tips at any time in the preferences again." ) );
ui_previousBut->setText( tr( "&Previous" ) );
QWhatsThis::add( ui_previousBut, tr( "<font size=+1><b>Previous</b></font><p>Go to previous tip." ) );
ui_nextBut->setText( tr( "&Next" ) );
QWhatsThis::add( ui_nextBut, tr( "<font size=+1><b>Next</b></font><p>Go to next tip." ) );
ui_closeBut->setText( tr( "&Close" ) );
QWhatsThis::add( ui_closeBut, tr( "<font size=+1><b>Close</b></font><p>Close this dialog." ) );
}

58
src/uitipdlg.h Normal file
View File

@ -0,0 +1,58 @@
/****************************************************************************
** Form interface generated from reading ui file 'uitipdlg.ui'
**
** Created: Tue Dec 25 12:40:33 2007
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#ifndef UITIPDLG_H
#define UITIPDLG_H
#include <qvariant.h>
#include <qpixmap.h>
#include <qdialog.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QTextView;
class QLabel;
class QCheckBox;
class QPushButton;
class UITipDlg : public QDialog
{
Q_OBJECT
public:
UITipDlg( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~UITipDlg();
QTextView* ui_tip;
QLabel* ui_logo;
QCheckBox* ui_showTip;
QPushButton* ui_previousBut;
QPushButton* ui_nextBut;
QPushButton* ui_closeBut;
protected:
QVBoxLayout* UITipDlgLayout;
QHBoxLayout* Layout8;
QVBoxLayout* Layout8_2;
QSpacerItem* Spacer2;
QHBoxLayout* Layout7;
QSpacerItem* Spacer1;
protected slots:
virtual void languageChange();
private:
QPixmap image0;
QPixmap image1;
};
#endif // UITIPDLG_H