/**************************************************************************** ** Form implementation generated from reading ui file 'Mpl3.ui' ** ** Created: Fri Aug 13 00:02:49 2004 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.2 edited Nov 24 13:47 $) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "Prefs.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /* * Constructs a Preferences 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. */ Preferences::Preferences( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "Preferences" ); Ok_2 = new QPushButton( this, "Ok_2" ); Ok_2->setGeometry( QRect( 418, 21, 80, 23 ) ); ButtonGroup2 = new QButtonGroup( this, "ButtonGroup2" ); ButtonGroup2->setGeometry( QRect( 10, 540, 590, 48 ) ); ButtonGroup2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)1, 0, 0, ButtonGroup2->sizePolicy().hasHeightForWidth() ) ); ButtonGroup2->setLineWidth( 0 ); QWidget* privateLayoutWidget = new QWidget( ButtonGroup2, "Layout5" ); privateLayoutWidget->setGeometry( QRect( 270, 10, 310, 25 ) ); Layout5 = new QHBoxLayout( privateLayoutWidget, 0, 6, "Layout5"); Ok = new QPushButton( privateLayoutWidget, "Ok" ); Layout5->addWidget( Ok ); Default = new QPushButton( privateLayoutWidget, "Default" ); Layout5->addWidget( Default ); Close = new QPushButton( privateLayoutWidget, "Close" ); Layout5->addWidget( Close ); TabWidget = new QTabWidget( this, "TabWidget" ); TabWidget->setGeometry( QRect( 10, 10, 585, 521 ) ); TabWidget->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)3, 0, 0, TabWidget->sizePolicy().hasHeightForWidth() ) ); TabWidget->setTabPosition( QTabWidget::Top ); TabWidget->setTabShape( QTabWidget::Rounded ); TabWidget->setMargin( 0 ); tab = new QWidget( TabWidget, "tab" ); FontSetup = new QGroupBox( tab, "FontSetup" ); FontSetup->setGeometry( QRect( 10, 10, 559, 470 ) ); FontSetup->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)3, 0, 0, FontSetup->sizePolicy().hasHeightForWidth() ) ); TextLabel19 = new QLabel( FontSetup, "TextLabel19" ); TextLabel19->setGeometry( QRect( 190, 370, 174, 23 ) ); CenterLine = new QSpinBox( FontSetup, "CenterLine" ); CenterLine->setGeometry( QRect( 110, 370, 62, 23 ) ); CenterLine->setMaxValue( 100 ); CenterLine->setValue( 50 ); QWidget* privateLayoutWidget_2 = new QWidget( FontSetup, "Layout4" ); privateLayoutWidget_2->setGeometry( QRect( 10, 240, 200, 110 ) ); Layout4 = new QGridLayout( privateLayoutWidget_2, 1, 1, 4, 6, "Layout4"); TextLabel3_4_2_3 = new QLabel( privateLayoutWidget_2, "TextLabel3_4_2_3" ); TextLabel3_4_2_3->setEnabled( TRUE ); Layout4->addWidget( TextLabel3_4_2_3, 3, 0 ); Size_N = new QSpinBox( privateLayoutWidget_2, "Size_N" ); Layout4->addWidget( Size_N, 1, 1 ); TextLabel1_3 = new QLabel( privateLayoutWidget_2, "TextLabel1_3" ); Layout4->addWidget( TextLabel1_3, 0, 0 ); Size_S = new QSpinBox( privateLayoutWidget_2, "Size_S" ); Layout4->addWidget( Size_S, 3, 1 ); TextLabel2_3 = new QLabel( privateLayoutWidget_2, "TextLabel2_3" ); TextLabel2_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, TextLabel2_3->sizePolicy().hasHeightForWidth() ) ); Layout4->addWidget( TextLabel2_3, 0, 1 ); Size_M = new QSpinBox( privateLayoutWidget_2, "Size_M" ); Layout4->addWidget( Size_M, 2, 1 ); TextLabel3_4_2_2 = new QLabel( privateLayoutWidget_2, "TextLabel3_4_2_2" ); TextLabel3_4_2_2->setEnabled( TRUE ); Layout4->addWidget( TextLabel3_4_2_2, 1, 0 ); TextLabel3_4_2 = new QLabel( privateLayoutWidget_2, "TextLabel3_4_2" ); TextLabel3_4_2->setEnabled( TRUE ); Layout4->addWidget( TextLabel3_4_2, 2, 0 ); QWidget* privateLayoutWidget_3 = new QWidget( FontSetup, "Layout3" ); privateLayoutWidget_3->setGeometry( QRect( 10, 20, 540, 200 ) ); Layout3 = new QGridLayout( privateLayoutWidget_3, 1, 1, 4, 6, "Layout3"); TextLabel1 = new QLabel( privateLayoutWidget_3, "TextLabel1" ); TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)1, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) ); Layout3->addMultiCellWidget( TextLabel1, 0, 0, 0, 1 ); Family_O = new QLineEdit( privateLayoutWidget_3, "Family_O" ); Layout3->addMultiCellWidget( Family_O, 4, 4, 3, 4 ); TextLabel3 = new QLabel( privateLayoutWidget_3, "TextLabel3" ); Layout3->addWidget( TextLabel3, 1, 0 ); Family_F = new QLineEdit( privateLayoutWidget_3, "Family_F" ); Layout3->addMultiCellWidget( Family_F, 3, 3, 3, 4 ); Color_O = new QPushButton( privateLayoutWidget_3, "Color_O" ); Color_O->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, Color_O->sizePolicy().hasHeightForWidth() ) ); Color_O->setMinimumSize( QSize( 0, 24 ) ); Color_O->setMaximumSize( QSize( 40, 32767 ) ); Layout3->addWidget( Color_O, 4, 2 ); TextLabel3_4 = new QLabel( privateLayoutWidget_3, "TextLabel3_4" ); Layout3->addWidget( TextLabel3_4, 4, 0 ); Set_B = new QPushButton( privateLayoutWidget_3, "Set_B" ); Set_B->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, Set_B->sizePolicy().hasHeightForWidth() ) ); Layout3->addWidget( Set_B, 1, 1 ); Set_F = new QPushButton( privateLayoutWidget_3, "Set_F" ); Set_F->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, Set_F->sizePolicy().hasHeightForWidth() ) ); Layout3->addWidget( Set_F, 3, 1 ); TextLabel3_4_3 = new QLabel( privateLayoutWidget_3, "TextLabel3_4_3" ); Layout3->addWidget( TextLabel3_4_3, 5, 0 ); Family_I = new QLineEdit( privateLayoutWidget_3, "Family_I" ); Layout3->addMultiCellWidget( Family_I, 2, 2, 3, 4 ); Color_B = new QPushButton( privateLayoutWidget_3, "Color_B" ); Color_B->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, 0, 0, Color_B->sizePolicy().hasHeightForWidth() ) ); Color_B->setMinimumSize( QSize( 0, 24 ) ); Color_B->setMaximumSize( QSize( 40, 32767 ) ); Layout3->addWidget( Color_B, 1, 2 ); Color_I = new QPushButton( privateLayoutWidget_3, "Color_I" ); Color_I->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, Color_I->sizePolicy().hasHeightForWidth() ) ); Color_I->setMinimumSize( QSize( 0, 24 ) ); Color_I->setMaximumSize( QSize( 40, 32767 ) ); Layout3->addWidget( Color_I, 2, 2 ); Set_O = new QPushButton( privateLayoutWidget_3, "Set_O" ); Set_O->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, Set_O->sizePolicy().hasHeightForWidth() ) ); Layout3->addWidget( Set_O, 4, 1 ); TextLabel2 = new QLabel( privateLayoutWidget_3, "TextLabel2" ); TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) ); Layout3->addWidget( TextLabel2, 0, 4 ); Family_B = new QLineEdit( privateLayoutWidget_3, "Family_B" ); Layout3->addMultiCellWidget( Family_B, 1, 1, 3, 4 ); Color_F = new QPushButton( privateLayoutWidget_3, "Color_F" ); Color_F->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, Color_F->sizePolicy().hasHeightForWidth() ) ); Color_F->setMinimumSize( QSize( 0, 24 ) ); Color_F->setMaximumSize( QSize( 40, 32767 ) ); Layout3->addWidget( Color_F, 3, 2 ); Color_S = new QPushButton( privateLayoutWidget_3, "Color_S" ); Color_S->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, Color_S->sizePolicy().hasHeightForWidth() ) ); Color_S->setMinimumSize( QSize( 0, 24 ) ); Color_S->setMaximumSize( QSize( 40, 32767 ) ); Layout3->addWidget( Color_S, 5, 2 ); TextLabel6 = new QLabel( privateLayoutWidget_3, "TextLabel6" ); TextLabel6->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)1, 0, 0, TextLabel6->sizePolicy().hasHeightForWidth() ) ); Layout3->addMultiCellWidget( TextLabel6, 0, 0, 2, 3 ); Set_I = new QPushButton( privateLayoutWidget_3, "Set_I" ); Set_I->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, Set_I->sizePolicy().hasHeightForWidth() ) ); Layout3->addWidget( Set_I, 2, 1 ); TextLabel3_3 = new QLabel( privateLayoutWidget_3, "TextLabel3_3" ); Layout3->addWidget( TextLabel3_3, 3, 0 ); TextLabel3_2 = new QLabel( privateLayoutWidget_3, "TextLabel3_2" ); Layout3->addWidget( TextLabel3_2, 2, 0 ); TabWidget->insertTab( tab, QString("") ); tab_2 = new QWidget( TabWidget, "tab_2" ); GroupBox38 = new QGroupBox( tab_2, "GroupBox38" ); GroupBox38->setEnabled( FALSE ); GroupBox38->setGeometry( QRect( 205, 169, 365, 149 ) ); GroupBox38->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, GroupBox38->sizePolicy().hasHeightForWidth() ) ); GroupBox38->setColumnLayout(0, Qt::Vertical ); GroupBox38->layout()->setSpacing( 6 ); GroupBox38->layout()->setMargin( 11 ); GroupBox38Layout = new QGridLayout( GroupBox38->layout() ); GroupBox38Layout->setAlignment( Qt::AlignTop ); TextLabel14 = new QLabel( GroupBox38, "TextLabel14" ); GroupBox38Layout->addMultiCellWidget( TextLabel14, 3, 3, 0, 2 ); Vertical = new QSpinBox( GroupBox38, "Vertical" ); Vertical->setMinValue( 1 ); Vertical->setValue( 1 ); GroupBox38Layout->addWidget( Vertical, 2, 0 ); Direction = new QComboBox( FALSE, GroupBox38, "Direction" ); Direction->setMinimumSize( QSize( 0, 24 ) ); GroupBox38Layout->addMultiCellWidget( Direction, 4, 4, 0, 1 ); TextLabel13 = new QLabel( GroupBox38, "TextLabel13" ); GroupBox38Layout->addMultiCellWidget( TextLabel13, 1, 1, 0, 2 ); Spacer10 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed ); GroupBox38Layout->addItem( Spacer10, 0, 1 ); Spacer7 = new QSpacerItem( 20, 0, QSizePolicy::Expanding, QSizePolicy::Minimum ); GroupBox38Layout->addItem( Spacer7, 4, 2 ); Spacer6_2 = new QSpacerItem( 20, 0, QSizePolicy::Expanding, QSizePolicy::Minimum ); GroupBox38Layout->addMultiCell( Spacer6_2, 2, 2, 1, 2 ); PageMargins = new QGroupBox( tab_2, "PageMargins" ); PageMargins->setEnabled( TRUE ); PageMargins->setGeometry( QRect( 10, 170, 188, 150 ) ); PageMargins->setColumnLayout(0, Qt::Vertical ); PageMargins->layout()->setSpacing( 6 ); PageMargins->layout()->setMargin( 11 ); PageMarginsLayout = new QGridLayout( PageMargins->layout() ); PageMarginsLayout->setAlignment( Qt::AlignTop ); Top = new QSpinBox( PageMargins, "Top" ); Top->setValue( 10 ); PageMarginsLayout->addWidget( Top, 4, 0 ); TextLabel12_2 = new QLabel( PageMargins, "TextLabel12_2" ); PageMarginsLayout->addWidget( TextLabel12_2, 3, 0 ); Bottom = new QSpinBox( PageMargins, "Bottom" ); Bottom->setMinimumSize( QSize( 0, 24 ) ); Bottom->setValue( 10 ); PageMarginsLayout->addWidget( Bottom, 4, 1 ); TextLabel12_4 = new QLabel( PageMargins, "TextLabel12_4" ); PageMarginsLayout->addWidget( TextLabel12_4, 3, 1 ); Right = new QSpinBox( PageMargins, "Right" ); Right->setMinimumSize( QSize( 0, 24 ) ); Right->setValue( 10 ); PageMarginsLayout->addWidget( Right, 2, 1 ); Left = new QSpinBox( PageMargins, "Left" ); Left->setMinimumSize( QSize( 0, 0 ) ); Left->setValue( 10 ); PageMarginsLayout->addWidget( Left, 2, 0 ); TextLabel12 = new QLabel( PageMargins, "TextLabel12" ); TextLabel12->setMinimumSize( QSize( 80, 0 ) ); PageMarginsLayout->addWidget( TextLabel12, 1, 0 ); Spacer8 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed ); PageMarginsLayout->addItem( Spacer8, 0, 0 ); TextLabel12_3 = new QLabel( PageMargins, "TextLabel12_3" ); TextLabel12_3->setMinimumSize( QSize( 80, 0 ) ); PageMarginsLayout->addWidget( TextLabel12_3, 1, 1 ); PageSetup = new QGroupBox( tab_2, "PageSetup" ); PageSetup->setEnabled( TRUE ); PageSetup->setGeometry( QRect( 10, 10, 559, 152 ) ); PageSetup->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, PageSetup->sizePolicy().hasHeightForWidth() ) ); TextLabel5_2 = new QLabel( PageSetup, "TextLabel5_2" ); TextLabel5_2->setGeometry( QRect( 11, 94, 120, 16 ) ); QWidget* privateLayoutWidget_4 = new QWidget( PageSetup, "Layout6" ); privateLayoutWidget_4->setGeometry( QRect( 10, 23, 530, 60 ) ); Layout6 = new QGridLayout( privateLayoutWidget_4, 1, 1, 4, 6, "Layout6"); Orientation = new QComboBox( FALSE, privateLayoutWidget_4, "Orientation" ); Orientation->setMinimumSize( QSize( 120, 24 ) ); Layout6->addWidget( Orientation, 1, 3 ); Width = new QSpinBox( privateLayoutWidget_4, "Width" ); Width->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)4, 0, 0, Width->sizePolicy().hasHeightForWidth() ) ); Width->setMinimumSize( QSize( 0, 0 ) ); Width->setMaximumSize( QSize( 80, 32767 ) ); Width->setValue( 10 ); Layout6->addWidget( Width, 1, 1 ); TextLabel12_3_2 = new QLabel( privateLayoutWidget_4, "TextLabel12_3_2" ); TextLabel12_3_2->setMinimumSize( QSize( 80, 0 ) ); Layout6->addWidget( TextLabel12_3_2, 0, 2 ); Height = new QSpinBox( privateLayoutWidget_4, "Height" ); Height->setMaximumSize( QSize( 80, 32767 ) ); Height->setValue( 10 ); Layout6->addWidget( Height, 1, 2 ); TextLabel4_2 = new QLabel( privateLayoutWidget_4, "TextLabel4_2" ); Layout6->addWidget( TextLabel4_2, 0, 3 ); TextLabel12_5 = new QLabel( privateLayoutWidget_4, "TextLabel12_5" ); TextLabel12_5->setMinimumSize( QSize( 80, 0 ) ); Layout6->addWidget( TextLabel12_5, 0, 1 ); TextLabel3_5 = new QLabel( privateLayoutWidget_4, "TextLabel3_5" ); Layout6->addWidget( TextLabel3_5, 0, 0 ); Pagesize = new QComboBox( FALSE, privateLayoutWidget_4, "Pagesize" ); Pagesize->setMinimumSize( QSize( 0, 24 ) ); Pagesize->setMaximumSize( QSize( 160, 32767 ) ); Layout6->addWidget( Pagesize, 1, 0 ); Grid = new QComboBox( FALSE, PageSetup, "Grid" ); Grid->setGeometry( QRect( 11, 117, 160, 24 ) ); Grid->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, Grid->sizePolicy().hasHeightForWidth() ) ); Grid->setMinimumSize( QSize( 160, 24 ) ); Grid->setMaximumSize( QSize( 150, 32767 ) ); TabWidget->insertTab( tab_2, QString("") ); tab_3 = new QWidget( TabWidget, "tab_3" ); GroupBox48 = new QGroupBox( tab_3, "GroupBox48" ); GroupBox48->setEnabled( FALSE ); GroupBox48->setGeometry( QRect( 10, 10, 559, 470 ) ); TextLabel18 = new QLabel( GroupBox48, "TextLabel18" ); TextLabel18->setGeometry( QRect( 78, 50, 113, 16 ) ); TextLabel17 = new QLabel( GroupBox48, "TextLabel17" ); TextLabel17->setGeometry( QRect( 11, 50, 56, 16 ) ); TextLabel18_2 = new QLabel( GroupBox48, "TextLabel18_2" ); TextLabel18_2->setGeometry( QRect( 202, 50, 108, 16 ) ); Line1 = new QFrame( GroupBox48, "Line1" ); Line1->setGeometry( QRect( 11, 114, 538, 16 ) ); Line1->setFrameShape( QFrame::HLine ); Line1->setFrameShadow( QFrame::Sunken ); Line1->setFrameShape( QFrame::HLine ); Explelevlow = new QComboBox( FALSE, GroupBox48, "Explelevlow" ); Explelevlow->setGeometry( QRect( 80, 80, 113, 20 ) ); Explevelhigh = new QComboBox( FALSE, GroupBox48, "Explevelhigh" ); Explevelhigh->setGeometry( QRect( 200, 80, 108, 20 ) ); Digits = new QSpinBox( GroupBox48, "Digits" ); Digits->setGeometry( QRect( 11, 78, 56, 23 ) ); Digits->setValue( 6 ); LineEdit14_4 = new QLineEdit( GroupBox48, "LineEdit14_4" ); LineEdit14_4->setGeometry( QRect( 188, 251, 34, 22 ) ); LineEdit14_4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, LineEdit14_4->sizePolicy().hasHeightForWidth() ) ); TextLabel18_2_3_2 = new QLabel( GroupBox48, "TextLabel18_2_3_2" ); TextLabel18_2_3_2->setGeometry( QRect( 11, 212, 78, 30 ) ); TextLabel18_2_3_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, TextLabel18_2_3_2->sizePolicy().hasHeightForWidth() ) ); TextLabel18_2_3_2_2 = new QLabel( GroupBox48, "TextLabel18_2_3_2_2" ); TextLabel18_2_3_2_2->setGeometry( QRect( 28, 249, 44, 27 ) ); TextLabel18_2_3_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, TextLabel18_2_3_2_2->sizePolicy().hasHeightForWidth() ) ); TextLabel18_2_3_2_3 = new QLabel( GroupBox48, "TextLabel18_2_3_2_3" ); TextLabel18_2_3_2_3->setGeometry( QRect( 136, 212, 44, 30 ) ); TextLabel18_2_3_2_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, TextLabel18_2_3_2_3->sizePolicy().hasHeightForWidth() ) ); LineEdit14 = new QLineEdit( GroupBox48, "LineEdit14" ); LineEdit14->setGeometry( QRect( 95, 216, 34, 22 ) ); LineEdit14->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, LineEdit14->sizePolicy().hasHeightForWidth() ) ); LineEdit14_3 = new QLineEdit( GroupBox48, "LineEdit14_3" ); LineEdit14_3->setGeometry( QRect( 188, 216, 34, 22 ) ); LineEdit14_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, LineEdit14_3->sizePolicy().hasHeightForWidth() ) ); LineEdit14_2 = new QLineEdit( GroupBox48, "LineEdit14_2" ); LineEdit14_2->setGeometry( QRect( 95, 251, 34, 22 ) ); LineEdit14_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, LineEdit14_2->sizePolicy().hasHeightForWidth() ) ); TextLabel18_2_3_2_4 = new QLabel( GroupBox48, "TextLabel18_2_3_2_4" ); TextLabel18_2_3_2_4->setGeometry( QRect( 135, 249, 47, 27 ) ); TextLabel18_2_3_2_4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, TextLabel18_2_3_2_4->sizePolicy().hasHeightForWidth() ) ); Line2 = new QFrame( GroupBox48, "Line2" ); Line2->setGeometry( QRect( 10, 190, 538, 16 ) ); Line2->setFrameShape( QFrame::HLine ); Line2->setFrameShadow( QFrame::Sunken ); Line2->setFrameShape( QFrame::HLine ); Line2_2 = new QFrame( GroupBox48, "Line2_2" ); Line2_2->setGeometry( QRect( 10, 280, 538, 16 ) ); Line2_2->setFrameShape( QFrame::HLine ); Line2_2->setFrameShadow( QFrame::Sunken ); Line2_2->setFrameShape( QFrame::HLine ); QWidget* privateLayoutWidget_5 = new QWidget( GroupBox48, "Layout8" ); privateLayoutWidget_5->setGeometry( QRect( 10, 131, 540, 60 ) ); Layout8 = new QGridLayout( privateLayoutWidget_5, 1, 1, 4, 6, "Layout8"); Complexmode = new QComboBox( FALSE, privateLayoutWidget_5, "Complexmode" ); Layout8->addWidget( Complexmode, 1, 2 ); TextLabel18_2_4 = new QLabel( privateLayoutWidget_5, "TextLabel18_2_4" ); Layout8->addWidget( TextLabel18_2_4, 0, 2 ); Rationaluse = new QCheckBox( privateLayoutWidget_5, "Rationaluse" ); Layout8->addWidget( Rationaluse, 1, 4 ); TextLabel18_2_3 = new QLabel( privateLayoutWidget_5, "TextLabel18_2_3" ); Layout8->addWidget( TextLabel18_2_3, 0, 0 ); Angles = new QComboBox( FALSE, privateLayoutWidget_5, "Angles" ); Layout8->addWidget( Angles, 1, 0 ); Line6 = new QFrame( privateLayoutWidget_5, "Line6" ); Line6->setFrameShape( QFrame::VLine ); Line6->setFrameShadow( QFrame::Sunken ); Line6->setFrameShape( QFrame::VLine ); Layout8->addMultiCellWidget( Line6, 0, 1, 1, 1 ); Line6_2 = new QFrame( privateLayoutWidget_5, "Line6_2" ); Line6_2->setFrameShape( QFrame::VLine ); Line6_2->setFrameShadow( QFrame::Sunken ); Line6_2->setFrameShape( QFrame::VLine ); Layout8->addMultiCellWidget( Line6_2, 0, 1, 3, 3 ); TextLabel9_3 = new QLabel( privateLayoutWidget_5, "TextLabel9_3" ); Layout8->addWidget( TextLabel9_3, 0, 4 ); TabWidget->insertTab( tab_3, QString("") ); tab_4 = new QWidget( TabWidget, "tab_4" ); tabLayout = new QVBoxLayout( tab_4, 11, 6, "tabLayout"); GroupBox11 = new QGroupBox( tab_4, "GroupBox11" ); GroupBox11->setEnabled( FALSE ); GroupBox11->setColumnLayout(0, Qt::Vertical ); GroupBox11->layout()->setSpacing( 6 ); GroupBox11->layout()->setMargin( 11 ); GroupBox11Layout = new QVBoxLayout( GroupBox11->layout() ); GroupBox11Layout->setAlignment( Qt::AlignTop ); ListView3 = new QListView( GroupBox11, "ListView3" ); ListView3->addColumn( tr( "Accelerator" ) ); ListView3->header()->setClickEnabled( FALSE, ListView3->header()->count() - 1 ); ListView3->addColumn( tr( "Function" ) ); ListView3->header()->setClickEnabled( FALSE, ListView3->header()->count() - 1 ); GroupBox11Layout->addWidget( ListView3 ); tabLayout->addWidget( GroupBox11 ); GroupBox12 = new QGroupBox( tab_4, "GroupBox12" ); GroupBox12->setEnabled( FALSE ); GroupBox12->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)3, 0, 0, GroupBox12->sizePolicy().hasHeightForWidth() ) ); GroupBox12->setColumnLayout(0, Qt::Vertical ); GroupBox12->layout()->setSpacing( 6 ); GroupBox12->layout()->setMargin( 11 ); GroupBox12Layout = new QGridLayout( GroupBox12->layout() ); GroupBox12Layout->setAlignment( Qt::AlignTop ); ComboBox23 = new QComboBox( FALSE, GroupBox12, "ComboBox23" ); ComboBox23->setMinimumSize( QSize( 150, 0 ) ); GroupBox12Layout->addWidget( ComboBox23, 2, 1 ); LineEdit61 = new QLineEdit( GroupBox12, "LineEdit61" ); GroupBox12Layout->addWidget( LineEdit61, 2, 0 ); TextLabel10 = new QLabel( GroupBox12, "TextLabel10" ); GroupBox12Layout->addWidget( TextLabel10, 1, 1 ); PushButton71 = new QPushButton( GroupBox12, "PushButton71" ); GroupBox12Layout->addWidget( PushButton71, 2, 4 ); PushButton70 = new QPushButton( GroupBox12, "PushButton70" ); GroupBox12Layout->addWidget( PushButton70, 2, 3 ); TextLabel9 = new QLabel( GroupBox12, "TextLabel9" ); GroupBox12Layout->addWidget( TextLabel9, 1, 0 ); Spacer4 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Fixed ); GroupBox12Layout->addItem( Spacer4, 0, 0 ); tabLayout->addWidget( GroupBox12 ); TabWidget->insertTab( tab_4, QString("") ); tab_5 = new QWidget( TabWidget, "tab_5" ); tabLayout_2 = new QVBoxLayout( tab_5, 11, 6, "tabLayout_2"); GroupBox11_3 = new QGroupBox( tab_5, "GroupBox11_3" ); GroupBox11_3->setEnabled( FALSE ); GroupBox11_3->setColumnLayout(0, Qt::Vertical ); GroupBox11_3->layout()->setSpacing( 6 ); GroupBox11_3->layout()->setMargin( 11 ); GroupBox11_3Layout = new QVBoxLayout( GroupBox11_3->layout() ); GroupBox11_3Layout->setAlignment( Qt::AlignTop ); ListView3_2 = new QListView( GroupBox11_3, "ListView3_2" ); ListView3_2->addColumn( tr( "Integer" ) ); ListView3_2->header()->setClickEnabled( FALSE, ListView3_2->header()->count() - 1 ); ListView3_2->addColumn( tr( "Value" ) ); ListView3_2->header()->setClickEnabled( FALSE, ListView3_2->header()->count() - 1 ); ListView3_2->addColumn( tr( "Unit" ) ); ListView3_2->header()->setClickEnabled( FALSE, ListView3_2->header()->count() - 1 ); ListView3_2->addColumn( tr( "Description" ) ); ListView3_2->header()->setClickEnabled( FALSE, ListView3_2->header()->count() - 1 ); GroupBox11_3Layout->addWidget( ListView3_2 ); tabLayout_2->addWidget( GroupBox11_3 ); GroupBox12_3 = new QGroupBox( tab_5, "GroupBox12_3" ); GroupBox12_3->setEnabled( FALSE ); GroupBox12_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)3, 0, 0, GroupBox12_3->sizePolicy().hasHeightForWidth() ) ); GroupBox12_3->setColumnLayout(0, Qt::Vertical ); GroupBox12_3->layout()->setSpacing( 6 ); GroupBox12_3->layout()->setMargin( 11 ); GroupBox12_3Layout = new QGridLayout( GroupBox12_3->layout() ); GroupBox12_3Layout->setAlignment( Qt::AlignTop ); PushButton71_2 = new QPushButton( GroupBox12_3, "PushButton71_2" ); PushButton71_2->setMaximumSize( QSize( 50, 32767 ) ); GroupBox12_3Layout->addWidget( PushButton71_2, 2, 7 ); TextLabel9_2 = new QLabel( GroupBox12_3, "TextLabel9_2" ); GroupBox12_3Layout->addWidget( TextLabel9_2, 1, 0 ); PushButton70_2 = new QPushButton( GroupBox12_3, "PushButton70_2" ); PushButton70_2->setMaximumSize( QSize( 50, 32767 ) ); GroupBox12_3Layout->addWidget( PushButton70_2, 2, 6 ); LineEdit21 = new QLineEdit( GroupBox12_3, "LineEdit21" ); GroupBox12_3Layout->addMultiCellWidget( LineEdit21, 0, 0, 3, 7 ); Spacer8_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed ); GroupBox12_3Layout->addItem( Spacer8_2, 0, 1 ); TextLabel4_3 = new QLabel( GroupBox12_3, "TextLabel4_3" ); TextLabel4_3->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); GroupBox12_3Layout->addWidget( TextLabel4_3, 0, 2 ); LineEdit61_2_3 = new QLineEdit( GroupBox12_3, "LineEdit61_2_3" ); LineEdit61_2_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, LineEdit61_2_3->sizePolicy().hasHeightForWidth() ) ); LineEdit61_2_3->setMaximumSize( QSize( 100, 32767 ) ); GroupBox12_3Layout->addWidget( LineEdit61_2_3, 2, 4 ); TextLabel5_3 = new QLabel( GroupBox12_3, "TextLabel5_3" ); GroupBox12_3Layout->addWidget( TextLabel5_3, 1, 4 ); LineEdit61_2_2 = new QLineEdit( GroupBox12_3, "LineEdit61_2_2" ); LineEdit61_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, LineEdit61_2_2->sizePolicy().hasHeightForWidth() ) ); GroupBox12_3Layout->addMultiCellWidget( LineEdit61_2_2, 2, 2, 1, 3 ); LineEdit61_2 = new QLineEdit( GroupBox12_3, "LineEdit61_2" ); LineEdit61_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, LineEdit61_2->sizePolicy().hasHeightForWidth() ) ); LineEdit61_2->setMaximumSize( QSize( 100, 32767 ) ); GroupBox12_3Layout->addWidget( LineEdit61_2, 2, 0 ); TextLabel9_2_2 = new QLabel( GroupBox12_3, "TextLabel9_2_2" ); TextLabel9_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, TextLabel9_2_2->sizePolicy().hasHeightForWidth() ) ); GroupBox12_3Layout->addMultiCellWidget( TextLabel9_2_2, 1, 1, 1, 2 ); tabLayout_2->addWidget( GroupBox12_3 ); TabWidget->insertTab( tab_5, QString("") ); languageChange(); resize( QSize(605, 589).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( Close, SIGNAL( clicked() ), this, SLOT( accept() ) ); // tab order setTabOrder( TabWidget, Set_B ); setTabOrder( Set_B, Set_I ); setTabOrder( Set_I, Set_F ); setTabOrder( Set_F, Set_O ); setTabOrder( Set_O, Color_B ); setTabOrder( Color_B, Color_I ); setTabOrder( Color_I, Color_F ); setTabOrder( Color_F, Color_O ); setTabOrder( Color_O, Family_B ); setTabOrder( Family_B, Family_I ); setTabOrder( Family_I, Family_F ); setTabOrder( Family_F, Family_O ); setTabOrder( Family_O, Color_F ); setTabOrder( Color_F, Default ); setTabOrder( Default, Close ); setTabOrder( Close, CenterLine ); setTabOrder( CenterLine, Top ); setTabOrder( Top, Bottom ); setTabOrder( Bottom, Right ); setTabOrder( Right, Left ); setTabOrder( Left, Vertical ); setTabOrder( Vertical, Direction ); setTabOrder( Direction, Orientation ); setTabOrder( Orientation, Pagesize ); setTabOrder( Pagesize, Grid ); setTabOrder( Grid, Digits ); setTabOrder( Digits, Explelevlow ); setTabOrder( Explelevlow, Explevelhigh ); setTabOrder( Explevelhigh, Angles ); setTabOrder( Angles, Complexmode ); setTabOrder( Complexmode, ListView3 ); setTabOrder( ListView3, ComboBox23 ); setTabOrder( ComboBox23, LineEdit61 ); setTabOrder( LineEdit61, PushButton71 ); setTabOrder( PushButton71, PushButton70 ); setTabOrder( PushButton70, ListView3_2 ); setTabOrder( ListView3_2, PushButton71_2 ); setTabOrder( PushButton71_2, PushButton70_2 ); setTabOrder( PushButton70_2, LineEdit21 ); setTabOrder( LineEdit21, LineEdit61_2_3 ); setTabOrder( LineEdit61_2_3, LineEdit61_2_2 ); setTabOrder( LineEdit61_2_2, LineEdit61_2 ); } /* * Destroys the object and frees any allocated resources */ Preferences::~Preferences() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void Preferences::languageChange() { setCaption( tr( "Preferences" ) ); Ok_2->setText( tr( "Ok" ) ); ButtonGroup2->setTitle( QString::null ); Ok->setText( tr( "Ok" ) ); Default->setText( tr( "Save as default" ) ); Close->setText( tr( "Close" ) ); FontSetup->setTitle( tr( "Default fonts" ) ); TextLabel19->setText( tr( "Base font center line alignment" ) ); CenterLine->setSuffix( tr( "%" ) ); CenterLine->setSpecialValueText( QString::null ); TextLabel3_4_2_3->setText( tr( "Small" ) ); TextLabel1_3->setText( tr( "Type" ) ); TextLabel2_3->setText( tr( "Size" ) ); TextLabel3_4_2_2->setText( tr( "Normal" ) ); TextLabel3_4_2->setText( tr( "Medimum" ) ); TextLabel1->setText( tr( "Font name" ) ); TextLabel3->setText( tr( "Base" ) ); Color_O->setText( QString::null ); TextLabel3_4->setText( tr( "Operator" ) ); Set_B->setText( tr( "Set" ) ); Set_F->setText( tr( "Set" ) ); TextLabel3_4_3->setText( tr( "Symbol" ) ); Color_B->setText( QString::null ); Color_I->setText( QString::null ); Set_O->setText( tr( "Set" ) ); TextLabel2->setText( tr( "Family" ) ); Color_F->setText( QString::null ); Color_S->setText( QString::null ); TextLabel6->setText( tr( "Color" ) ); Set_I->setText( tr( "Set" ) ); TextLabel3_3->setText( tr( "Function" ) ); TextLabel3_2->setText( tr( "Index" ) ); TabWidget->changeTab( tab, tr( "Fonts" ) ); GroupBox38->setTitle( tr( "Multible Page Layout" ) ); TextLabel14->setText( tr( "Direction" ) ); Direction->clear(); Direction->insertItem( tr( "Horizontal" ) ); Direction->insertItem( tr( "Vertical" ) ); TextLabel13->setText( tr( "Number of pages in vertical direction" ) ); PageMargins->setTitle( tr( "Page Margins" ) ); Top->setSuffix( tr( "mm" ) ); TextLabel12_2->setText( tr( "Top" ) ); Bottom->setSuffix( tr( "mm" ) ); TextLabel12_4->setText( tr( "Bottom" ) ); Right->setSuffix( tr( "mm" ) ); Left->setSuffix( tr( "mm" ) ); TextLabel12->setText( tr( "Left" ) ); TextLabel12_3->setText( tr( "Right" ) ); PageSetup->setTitle( tr( "Page setup" ) ); TextLabel5_2->setText( tr( "Grid" ) ); Orientation->clear(); Orientation->insertItem( tr( "Portrait" ) ); Orientation->insertItem( tr( "Landscape" ) ); Width->setSuffix( tr( "mm" ) ); TextLabel12_3_2->setText( tr( "Height" ) ); Height->setSuffix( tr( "mm" ) ); TextLabel4_2->setText( tr( "Orientation" ) ); TextLabel12_5->setText( tr( "Width" ) ); TextLabel3_5->setText( tr( "Page size" ) ); Grid->clear(); Grid->insertItem( tr( "None" ) ); Grid->insertItem( tr( "5 x 5" ) ); Grid->insertItem( tr( "10 x 10" ) ); Grid->insertItem( tr( "15 x 15" ) ); Grid->insertItem( tr( "20 x 20" ) ); TabWidget->changeTab( tab_2, tr( "Page" ) ); GroupBox48->setTitle( tr( "Mathematical setups" ) ); TextLabel18->setText( tr( "Exp-level Low" ) ); TextLabel17->setText( tr( "Digits" ) ); TextLabel18_2->setText( tr( "Exp-level High" ) ); TextLabel18_2_3_2->setText( tr( "Imaginary unit" ) ); TextLabel18_2_3_2_2->setText( tr( "Vector i" ) ); TextLabel18_2_3_2_3->setText( tr( "Vector j" ) ); TextLabel18_2_3_2_4->setText( tr( "Vector k" ) ); Complexmode->clear(); Complexmode->insertItem( tr( "Component" ) ); Complexmode->insertItem( tr( "Angle (deg)" ) ); Complexmode->insertItem( tr( "Angle (rad)" ) ); TextLabel18_2_4->setText( tr( "Complex mode" ) ); Rationaluse->setText( tr( "Use by default" ) ); TextLabel18_2_3->setText( tr( "Angle mode" ) ); Angles->clear(); Angles->insertItem( tr( "Deg" ) ); Angles->insertItem( tr( "Rad" ) ); TextLabel9_3->setText( tr( "Rational" ) ); TabWidget->changeTab( tab_3, tr( "Math" ) ); GroupBox11->setTitle( tr( "List Of Accelerators" ) ); ListView3->header()->setLabel( 0, tr( "Accelerator" ) ); ListView3->header()->setLabel( 1, tr( "Function" ) ); ListView3->clear(); QListViewItem * item = new QListViewItem( ListView3, 0 ); item->setText( 0, tr( "Not Operational" ) ); GroupBox12->setTitle( tr( "Accelerator Setup" ) ); TextLabel10->setText( tr( "Function" ) ); PushButton71->setText( tr( "Delete" ) ); PushButton70->setText( tr( "Add" ) ); TextLabel9->setText( tr( "Accelerator" ) ); TabWidget->changeTab( tab_4, tr( "Accel" ) ); GroupBox11_3->setTitle( tr( "List Of Constants" ) ); ListView3_2->header()->setLabel( 0, tr( "Integer" ) ); ListView3_2->header()->setLabel( 1, tr( "Value" ) ); ListView3_2->header()->setLabel( 2, tr( "Unit" ) ); ListView3_2->header()->setLabel( 3, tr( "Description" ) ); ListView3_2->clear(); item = new QListViewItem( ListView3_2, 0 ); item->setText( 0, tr( "Not Operational" ) ); GroupBox12_3->setTitle( tr( "Data input" ) ); PushButton71_2->setText( tr( "Delete" ) ); TextLabel9_2->setText( tr( "Integer" ) ); PushButton70_2->setText( tr( "Add" ) ); TextLabel4_3->setText( tr( "Description" ) ); TextLabel5_3->setText( tr( "Unit" ) ); TextLabel9_2_2->setText( tr( "Value" ) ); TabWidget->changeTab( tab_5, tr( "Constants" ) ); }