/**************************************************************************** ** Form implementation generated from reading ui file 'tochartsetupui.ui' ** ** Created: Mon Feb 20 12:46:38 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 "tochartsetupui.h" #include #include #include #include #include #include #include #include #include #include #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" ); }