00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "VisReco/VisMuonCSC/interface/VisCSCChamberSelector.h"
00011
00012 #include <qvariant.h>
00013 #include <qpushbutton.h>
00014 #include <qgroupbox.h>
00015 #include <qlabel.h>
00016 #include <qspinbox.h>
00017 #include <qradiobutton.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021
00022
00023
00024
00025
00026 VisCSCChamberSelector::VisCSCChamberSelector( QWidget* parent, const char* name, WFlags fl )
00027 : QWidget( parent, name, fl )
00028 {
00029 if ( !name )
00030 setName( "VisCSCChamberSelector" );
00031 VisCSCChamberSelectorLayout = new QVBoxLayout( this, 11, 6, "VisCSCChamberSelectorLayout");
00032
00033 CSC_Chamber_Selector = new QGroupBox( this, "CSC_Chamber_Selector" );
00034 CSC_Chamber_Selector->setColumnLayout(0, Qt::Vertical );
00035 CSC_Chamber_Selector->layout()->setSpacing( 6 );
00036 CSC_Chamber_Selector->layout()->setMargin( 11 );
00037 CSC_Chamber_SelectorLayout = new QVBoxLayout( CSC_Chamber_Selector->layout() );
00038 CSC_Chamber_SelectorLayout->setAlignment( Qt::AlignTop );
00039
00040 layout2 = new QHBoxLayout( 0, 0, 6, "layout2");
00041
00042 textLabel1_4 = new QLabel( CSC_Chamber_Selector, "textLabel1_4" );
00043 layout2->addWidget( textLabel1_4 );
00044
00045 ChamberSpin = new QSpinBox( CSC_Chamber_Selector, "ChamberSpin" );
00046 ChamberSpin->setMaxValue( 36 );
00047 ChamberSpin->setMinValue( 0 );
00048 ChamberSpin->setLineStep( 1 );
00049 layout2->addWidget( ChamberSpin );
00050 CSC_Chamber_SelectorLayout->addLayout( layout2 );
00051 spacer22 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
00052 CSC_Chamber_SelectorLayout->addItem( spacer22 );
00053
00054 layout2_2 = new QHBoxLayout( 0, 0, 6, "layout2_2");
00055
00056 textLabel1_4_2 = new QLabel( CSC_Chamber_Selector, "textLabel1_4_2" );
00057 layout2_2->addWidget( textLabel1_4_2 );
00058
00059 RingSpin = new QSpinBox( CSC_Chamber_Selector, "RingSpin" );
00060 RingSpin->setMaxValue( 4 );
00061 RingSpin->setMinValue( 0 );
00062 layout2_2->addWidget( RingSpin );
00063 CSC_Chamber_SelectorLayout->addLayout( layout2_2 );
00064 spacer23 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
00065 CSC_Chamber_SelectorLayout->addItem( spacer23 );
00066
00067 layout2_3 = new QHBoxLayout( 0, 0, 6, "layout2_3");
00068
00069 textLabel1_4_3 = new QLabel( CSC_Chamber_Selector, "textLabel1_4_3" );
00070 layout2_3->addWidget( textLabel1_4_3 );
00071
00072 StationSpin = new QSpinBox( CSC_Chamber_Selector, "StationSpin" );
00073 StationSpin->setMaxValue( 4 );
00074 StationSpin->setMinValue( 0 );
00075 layout2_3->addWidget( StationSpin );
00076 CSC_Chamber_SelectorLayout->addLayout( layout2_3 );
00077 spacer24 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
00078 CSC_Chamber_SelectorLayout->addItem( spacer24 );
00079
00080 layout2_4 = new QHBoxLayout( 0, 0, 6, "layout2_4");
00081
00082 textLabel1_4_4 = new QLabel( CSC_Chamber_Selector, "textLabel1_4_4" );
00083 layout2_4->addWidget( textLabel1_4_4 );
00084
00085 EndcapSpin = new QSpinBox( CSC_Chamber_Selector, "EndcapSpin" );
00086 EndcapSpin->setMaxValue( 2 );
00087 EndcapSpin->setMinValue( 0 );
00088 layout2_4->addWidget( EndcapSpin );
00089 CSC_Chamber_SelectorLayout->addLayout( layout2_4 );
00090 spacer8 = new QSpacerItem( 16, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
00091 CSC_Chamber_SelectorLayout->addItem( spacer8 );
00092
00093 layout9 = new QHBoxLayout( 0, 0, 6, "layout9");
00094
00095 ApplyFilter = new QRadioButton( CSC_Chamber_Selector, "ApplyFilter" );
00096 layout9->addWidget( ApplyFilter );
00097 spacer7 = new QSpacerItem( 51, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00098 layout9->addItem( spacer7 );
00099 CSC_Chamber_SelectorLayout->addLayout( layout9 );
00100 VisCSCChamberSelectorLayout->addWidget( CSC_Chamber_Selector );
00101 languageChange();
00102 resize( QSize(183, 275).expandedTo(minimumSizeHint()) );
00103 clearWState( WState_Polished );
00104 }
00105
00106
00107
00108
00109 VisCSCChamberSelector::~VisCSCChamberSelector()
00110 {
00111
00112 }
00113
00114
00115
00116
00117
00118 void VisCSCChamberSelector::languageChange()
00119 {
00120 setCaption( tr( "Selector" ) );
00121 CSC_Chamber_Selector->setTitle( tr( "CSC Chamber Selector" ) );
00122 textLabel1_4->setText( tr( "Chamber" ) );
00123 textLabel1_4_2->setText( tr( "Ring" ) );
00124 textLabel1_4_3->setText( tr( "Station" ) );
00125 textLabel1_4_4->setText( tr( "Endcap" ) );
00126 ApplyFilter->setText( tr( "Selector On" ) );
00127 }
00128