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
|
/****************************************************************************
** Form implementation generated from reading ui file 'tochartsetupui.ui'
**
** Created by: The User Interface Compiler ($Id: qt/main.cpp 3.3.6 edited Aug 31 2005 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "tochartsetupui.h"
#include <qvariant.h>
#include <qvbox.h>
#include <qpushbutton.h>
#include <qgroupbox.h>
#include <qlineedit.h>
#include <qcheckbox.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "toresultview.h"
/*
* Constructs a toChartSetupUI 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.
*/
toChartSetupUI::toChartSetupUI( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "toChartSetupUI" );
toChartSetupUILayout = new QGridLayout( this, 1, 1, 11, 6, "toChartSetupUILayout");
Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1");
GroupBox1 = new QGroupBox( this, "GroupBox1" );
GroupBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)4, 0, 0, GroupBox1->sizePolicy().hasHeightForWidth() ) );
GroupBox1->setColumnLayout(0, Qt::Vertical );
GroupBox1->layout()->setSpacing( 6 );
GroupBox1->layout()->setMargin( 11 );
GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
GroupBox1Layout->setAlignment( Qt::AlignTop );
Filename = new QLineEdit( GroupBox1, "Filename" );
Filename->setEnabled( FALSE );
GroupBox1Layout->addWidget( Filename, 2, 0 );
PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
PushButton1->setEnabled( FALSE );
GroupBox1Layout->addWidget( PushButton1, 2, 1 );
Persistent = new QCheckBox( GroupBox1, "Persistent" );
Persistent->setEnabled( FALSE );
GroupBox1Layout->addMultiCellWidget( Persistent, 3, 3, 0, 1 );
Enabled = new QCheckBox( GroupBox1, "Enabled" );
GroupBox1Layout->addMultiCellWidget( Enabled, 0, 0, 0, 1 );
TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
GroupBox1Layout->addMultiCellWidget( TextLabel2, 1, 1, 0, 1 );
Layout1->addWidget( GroupBox1 );
ChartFrame = new QVBox( this, "ChartFrame" );
ChartFrame->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)4, 0, 0, ChartFrame->sizePolicy().hasHeightForWidth() ) );
Layout1->addWidget( ChartFrame );
toChartSetupUILayout->addMultiCellLayout( Layout1, 0, 0, 0, 2 );
AlarmGroup = new QGroupBox( this, "AlarmGroup" );
AlarmGroup->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, AlarmGroup->sizePolicy().hasHeightForWidth() ) );
AlarmGroup->setColumnLayout(0, Qt::Vertical );
AlarmGroup->layout()->setSpacing( 6 );
AlarmGroup->layout()->setMargin( 11 );
AlarmGroupLayout = new QGridLayout( AlarmGroup->layout() );
AlarmGroupLayout->setAlignment( Qt::AlignTop );
AddButton = new QPushButton( AlarmGroup, "AddButton" );
AlarmGroupLayout->addWidget( AddButton, 0, 1 );
Alarms = new toListView( AlarmGroup, "Alarms" );
Alarms->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, Alarms->sizePolicy().hasHeightForWidth() ) );
Alarms->setFocusPolicy( toListView::StrongFocus );
AlarmGroupLayout->addMultiCellWidget( Alarms, 0, 3, 0, 0 );
Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
AlarmGroupLayout->addItem( Spacer3, 3, 1 );
PushButton3 = new QPushButton( AlarmGroup, "PushButton3" );
AlarmGroupLayout->addWidget( PushButton3, 2, 1 );
PushButton3_3 = new QPushButton( AlarmGroup, "PushButton3_3" );
AlarmGroupLayout->addWidget( PushButton3_3, 1, 1 );
toChartSetupUILayout->addMultiCellWidget( AlarmGroup, 1, 1, 0, 2 );
PushButton3_2 = new QPushButton( this, "PushButton3_2" );
toChartSetupUILayout->addWidget( PushButton3_2, 2, 2 );
OkButton = new QPushButton( this, "OkButton" );
OkButton->setDefault( TRUE );
toChartSetupUILayout->addWidget( OkButton, 2, 1 );
Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
toChartSetupUILayout->addItem( Spacer1, 2, 0 );
languageChange();
resize( QSize(588, 480).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
connect( PushButton1, SIGNAL( clicked() ), this, SLOT( browseFile() ) );
connect( AddButton, SIGNAL( clicked() ), this, SLOT( addAlarm() ) );
connect( PushButton3, SIGNAL( clicked() ), this, SLOT( removeAlarm() ) );
connect( OkButton, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( PushButton3_2, SIGNAL( clicked() ), this, SLOT( reject() ) );
connect( PushButton3_3, SIGNAL( clicked() ), this, SLOT( modifyAlarm() ) );
connect( Enabled, SIGNAL( toggled(bool) ), Filename, SLOT( setEnabled(bool) ) );
connect( Enabled, SIGNAL( toggled(bool) ), PushButton1, SLOT( setEnabled(bool) ) );
connect( Enabled, SIGNAL( toggled(bool) ), Persistent, SLOT( setEnabled(bool) ) );
// tab order
setTabOrder( Filename, PushButton1 );
setTabOrder( PushButton1, Persistent );
setTabOrder( Persistent, Alarms );
setTabOrder( Alarms, AddButton );
setTabOrder( AddButton, PushButton3 );
setTabOrder( PushButton3, OkButton );
setTabOrder( OkButton, PushButton3_2 );
}
/*
* Destroys the object and frees any allocated resources
*/
toChartSetupUI::~toChartSetupUI()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void toChartSetupUI::languageChange()
{
setCaption( tr( "Chart manager setup" ) );
GroupBox1->setTitle( tr( "Track chart to file" ) );
PushButton1->setText( tr( "Browse" ) );
Persistent->setText( tr( "Persistent" ) );
QToolTip::add( Persistent, tr( "Remember to track this chart to this file always when starting." ) );
Enabled->setText( tr( "Enable tracking" ) );
TextLabel2->setText( tr( "Filename" ) );
AlarmGroup->setTitle( tr( "Alarms" ) );
AddButton->setText( tr( "&Add" ) );
PushButton3->setText( tr( "Remove" ) );
PushButton3_3->setText( tr( "Modify" ) );
PushButton3_2->setText( tr( "Cancel" ) );
OkButton->setText( tr( "&Ok" ) );
}
void toChartSetupUI::addAlarm()
{
qWarning( "toChartSetupUI::addAlarm(): Not implemented yet" );
}
void toChartSetupUI::browseFile()
{
qWarning( "toChartSetupUI::browseFile(): Not implemented yet" );
}
void toChartSetupUI::modifyAlarm()
{
qWarning( "toChartSetupUI::modifyAlarm(): Not implemented yet" );
}
void toChartSetupUI::removeAlarm()
{
qWarning( "toChartSetupUI::removeAlarm(): Not implemented yet" );
}
|