1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
|
/****************************************************************************
** Form implementation generated from reading ui file 'tolinechartsetupui.ui'
**
** Created: Mon Feb 20 12:46:39 2006
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.4 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "tolinechartsetupui.h"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qspinbox.h>
#include <qlabel.h>
#include <qgroupbox.h>
#include <qlineedit.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "toresultview.h"
/*
* Constructs a toLineChartSetupUI 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.
*/
toLineChartSetupUI::toLineChartSetupUI( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "toLineChartSetupUI" );
toLineChartSetupUILayout = new QGridLayout( this, 1, 1, 11, 6, "toLineChartSetupUILayout");
Samples = new QSpinBox( this, "Samples" );
Samples->setMaxValue( 1000 );
toLineChartSetupUILayout->addWidget( Samples, 5, 1 );
TextLabel1_2 = new QLabel( this, "TextLabel1_2" );
toLineChartSetupUILayout->addWidget( TextLabel1_2, 5, 0 );
GroupBox1 = new QGroupBox( this, "GroupBox1" );
GroupBox1->setColumnLayout(0, Qt::Vertical );
GroupBox1->layout()->setSpacing( 6 );
GroupBox1->layout()->setMargin( 11 );
GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
GroupBox1Layout->setAlignment( Qt::AlignTop );
TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
GroupBox1Layout->addWidget( TextLabel1, 0, 0 );
TextLabel4 = new QLabel( GroupBox1, "TextLabel4" );
GroupBox1Layout->addWidget( TextLabel4, 3, 0 );
MinValue = new QLineEdit( GroupBox1, "MinValue" );
GroupBox1Layout->addWidget( MinValue, 5, 0 );
MaxValue = new QLineEdit( GroupBox1, "MaxValue" );
GroupBox1Layout->addWidget( MaxValue, 2, 0 );
AutoMax = new QCheckBox( GroupBox1, "AutoMax" );
GroupBox1Layout->addWidget( AutoMax, 1, 0 );
AutoMin = new QCheckBox( GroupBox1, "AutoMin" );
GroupBox1Layout->addWidget( AutoMin, 4, 0 );
toLineChartSetupUILayout->addMultiCellWidget( GroupBox1, 0, 0, 0, 2 );
Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
toLineChartSetupUILayout->addItem( Spacer2, 7, 1 );
ShowLast = new QCheckBox( this, "ShowLast" );
toLineChartSetupUILayout->addMultiCellWidget( ShowLast, 1, 1, 0, 2 );
ShowAxis = new QCheckBox( this, "ShowAxis" );
toLineChartSetupUILayout->addMultiCellWidget( ShowAxis, 2, 2, 0, 2 );
ShowLegend = new QCheckBox( this, "ShowLegend" );
toLineChartSetupUILayout->addMultiCellWidget( ShowLegend, 3, 3, 0, 2 );
OkButton = new QPushButton( this, "OkButton" );
OkButton->setDefault( TRUE );
toLineChartSetupUILayout->addWidget( OkButton, 8, 3 );
CancelButton = new QPushButton( this, "CancelButton" );
toLineChartSetupUILayout->addWidget( CancelButton, 8, 4 );
Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
toLineChartSetupUILayout->addMultiCell( Spacer1, 8, 8, 0, 2 );
Enabled = new toListView( this, "Enabled" );
toLineChartSetupUILayout->addMultiCellWidget( Enabled, 0, 7, 3, 4 );
DisplaySamples = new QSpinBox( this, "DisplaySamples" );
DisplaySamples->setMaxValue( 1000 );
toLineChartSetupUILayout->addWidget( DisplaySamples, 6, 1 );
AllSamples = new QCheckBox( this, "AllSamples" );
toLineChartSetupUILayout->addWidget( AllSamples, 6, 2 );
TextLabel1_2_2 = new QLabel( this, "TextLabel1_2_2" );
toLineChartSetupUILayout->addWidget( TextLabel1_2_2, 6, 0 );
UnlimitedSamples = new QCheckBox( this, "UnlimitedSamples" );
toLineChartSetupUILayout->addWidget( UnlimitedSamples, 5, 2 );
TextLabel5 = new QLabel( this, "TextLabel5" );
TextLabel5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, TextLabel5->sizePolicy().hasHeightForWidth() ) );
toLineChartSetupUILayout->addWidget( TextLabel5, 4, 0 );
Grids = new QSpinBox( this, "Grids" );
toLineChartSetupUILayout->addWidget( Grids, 4, 1 );
languageChange();
resize( QSize(596, 483).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
connect( AutoMax, SIGNAL( toggled(bool) ), MaxValue, SLOT( setDisabled(bool) ) );
connect( AutoMin, SIGNAL( toggled(bool) ), MinValue, SLOT( setDisabled(bool) ) );
connect( OkButton, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( CancelButton, SIGNAL( clicked() ), this, SLOT( reject() ) );
connect( UnlimitedSamples, SIGNAL( toggled(bool) ), Samples, SLOT( setDisabled(bool) ) );
connect( AllSamples, SIGNAL( toggled(bool) ), DisplaySamples, SLOT( setDisabled(bool) ) );
// tab order
setTabOrder( AutoMax, MaxValue );
setTabOrder( MaxValue, AutoMin );
setTabOrder( AutoMin, MinValue );
setTabOrder( MinValue, ShowLast );
setTabOrder( ShowLast, ShowAxis );
setTabOrder( ShowAxis, ShowLegend );
setTabOrder( ShowLegend, Grids );
setTabOrder( Grids, Samples );
setTabOrder( Samples, UnlimitedSamples );
setTabOrder( UnlimitedSamples, DisplaySamples );
setTabOrder( DisplaySamples, AllSamples );
setTabOrder( AllSamples, OkButton );
setTabOrder( OkButton, CancelButton );
// buddies
TextLabel5->setBuddy( Grids );
}
/*
* Destroys the object and frees any allocated resources
*/
toLineChartSetupUI::~toLineChartSetupUI()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void toLineChartSetupUI::languageChange()
{
setCaption( tr( "Chart setup" ) );
TextLabel1_2->setText( tr( "Number of samples to keep" ) );
GroupBox1->setTitle( tr( "Y-axis" ) );
TextLabel1->setText( tr( "Max value" ) );
TextLabel4->setText( tr( "Min value" ) );
AutoMax->setText( tr( "Auto detect" ) );
AutoMin->setText( tr( "Auto detect" ) );
ShowLast->setText( tr( "Show last value" ) );
ShowAxis->setText( tr( "Show axis legend" ) );
ShowLegend->setText( tr( "Show chart legend" ) );
OkButton->setText( tr( "&Ok" ) );
CancelButton->setText( tr( "Cancel" ) );
AllSamples->setText( tr( "All" ) );
TextLabel1_2_2->setText( tr( "Maximum number of samples to display" ) );
UnlimitedSamples->setText( tr( "Unlimited" ) );
TextLabel5->setText( tr( "Divide chart in grids?" ) );
}
|