#include <VisFramework/VisFrameworkBase/interface/VisL1TriggerFilterMenu.h>
Public Slots | |
virtual void | andAlgo () |
virtual void | enableFilter (bool) |
virtual void | help () |
virtual void | orAlgo () |
virtual void | selectAlgo (QListViewItem *) |
Public Member Functions | |
VisL1TriggerMenu (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0) | |
~VisL1TriggerMenu () | |
Public Attributes | |
QPushButton * | buttonCancel |
QPushButton * | buttonHelp |
QPushButton * | buttonOk |
QRadioButton * | l1EventFilter |
QLineEdit * | l1EventFilterExpression |
QListView * | listView |
QPushButton * | pushButtonAnd |
QPushButton * | pushButtonOr |
Protected Slots | |
virtual void | languageChange () |
Protected Attributes | |
QSpacerItem * | Horizontal_Spacing2 |
QHBoxLayout * | Layout1 |
QVBoxLayout * | layout15 |
QHBoxLayout * | layout16 |
QHBoxLayout * | layout8 |
QSpacerItem * | spacer2 |
QSpacerItem * | spacer3 |
QGridLayout * | VisL1TriggerMenuLayout |
Definition at line 26 of file VisL1TriggerFilterMenu.h.
VisL1TriggerMenu::VisL1TriggerMenu | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 , |
|||
bool | modal = FALSE , |
|||
WFlags | fl = 0 | |||
) |
Definition at line 29 of file VisL1TriggerFilterMenu.cc.
References andAlgo(), buttonCancel, buttonHelp, buttonOk, HLT_VtxMuL3::connect, enableFilter(), FALSE, help(), Horizontal_Spacing2, l1EventFilter, l1EventFilterExpression, languageChange(), Layout1, layout15, layout16, layout8, listView, orAlgo(), pushButtonAnd, pushButtonOr, selectAlgo(), spacer2, spacer3, TRUE, and VisL1TriggerMenuLayout.
00030 : QDialog( parent, name, modal, fl ) 00031 { 00032 if ( !name ) 00033 setName( "VisL1TriggerMenu" ); 00034 setSizeGripEnabled( TRUE ); 00035 VisL1TriggerMenuLayout = new QGridLayout( this, 1, 1, 11, 6, "VisL1TriggerMenuLayout"); 00036 00037 layout8 = new QHBoxLayout( 0, 0, 6, "layout8"); 00038 00039 l1EventFilter = new QRadioButton( this, "l1EventFilter" ); 00040 layout8->addWidget( l1EventFilter ); 00041 00042 l1EventFilterExpression = new QLineEdit( this, "l1EventFilterExpression" ); 00043 l1EventFilterExpression->setEnabled( FALSE ); 00044 l1EventFilterExpression->setReadOnly( TRUE ); 00045 layout8->addWidget( l1EventFilterExpression ); 00046 00047 VisL1TriggerMenuLayout->addLayout( layout8, 1, 0 ); 00048 00049 Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); 00050 00051 buttonHelp = new QPushButton( this, "buttonHelp" ); 00052 buttonHelp->setAutoDefault( TRUE ); 00053 Layout1->addWidget( buttonHelp ); 00054 Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00055 Layout1->addItem( Horizontal_Spacing2 ); 00056 00057 buttonOk = new QPushButton( this, "buttonOk" ); 00058 buttonOk->setAutoDefault( TRUE ); 00059 buttonOk->setDefault( TRUE ); 00060 Layout1->addWidget( buttonOk ); 00061 00062 buttonCancel = new QPushButton( this, "buttonCancel" ); 00063 buttonCancel->setAutoDefault( TRUE ); 00064 Layout1->addWidget( buttonCancel ); 00065 00066 VisL1TriggerMenuLayout->addLayout( Layout1, 2, 0 ); 00067 00068 layout16 = new QHBoxLayout( 0, 0, 6, "layout16"); 00069 00070 listView = new QListView( this, "listView" ); 00071 listView->addColumn( tr( "L1 Algorithm" ) ); 00072 listView->addColumn( tr( "Bit" ) ); 00073 listView->setSelectionMode( QListView::Multi ); 00074 listView->setAllColumnsShowFocus( TRUE ); 00075 layout16->addWidget( listView ); 00076 00077 layout15 = new QVBoxLayout( 0, 0, 6, "layout15"); 00078 spacer2 = new QSpacerItem( 20, 71, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00079 layout15->addItem( spacer2 ); 00080 00081 pushButtonAnd = new QPushButton( this, "pushButtonAnd" ); 00082 layout15->addWidget( pushButtonAnd ); 00083 00084 pushButtonOr = new QPushButton( this, "pushButtonOr" ); 00085 layout15->addWidget( pushButtonOr ); 00086 spacer3 = new QSpacerItem( 20, 61, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00087 layout15->addItem( spacer3 ); 00088 layout16->addLayout( layout15 ); 00089 00090 VisL1TriggerMenuLayout->addLayout( layout16, 0, 0 ); 00091 languageChange(); 00092 resize( QSize(499, 329).expandedTo(minimumSizeHint()) ); 00093 clearWState( WState_Polished ); 00094 00095 // signals and slots connections 00096 connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); 00097 connect( listView, SIGNAL( clicked(QListViewItem*) ), this, SLOT( selectAlgo(QListViewItem*) ) ); 00098 connect( l1EventFilter, SIGNAL( toggled(bool) ), this, SLOT( enableFilter(bool) ) ); 00099 connect( buttonHelp, SIGNAL( clicked() ), this, SLOT( help() ) ); 00100 connect( l1EventFilter, SIGNAL( toggled(bool) ), l1EventFilterExpression, SLOT( setEnabled(bool) ) ); 00101 connect( pushButtonAnd, SIGNAL( clicked() ), this, SLOT( andAlgo() ) ); 00102 connect( pushButtonOr, SIGNAL( clicked() ), this, SLOT( orAlgo() ) ); 00103 }
VisL1TriggerMenu::~VisL1TriggerMenu | ( | ) |
void VisL1TriggerMenu::andAlgo | ( | ) | [virtual, slot] |
void VisL1TriggerMenu::languageChange | ( | ) | [protected, virtual, slot] |
Definition at line 117 of file VisL1TriggerFilterMenu.cc.
References buttonCancel, buttonHelp, buttonOk, l1EventFilter, listView, pushButtonAnd, and pushButtonOr.
Referenced by VisL1TriggerMenu().
00118 { 00119 setCaption( tr( "L1 Trigger Filter" ) ); 00120 l1EventFilter->setText( QString::null ); 00121 buttonHelp->setText( tr( "&Help" ) ); 00122 buttonHelp->setAccel( QKeySequence( tr( "F1" ) ) ); 00123 buttonOk->setText( tr( "&OK" ) ); 00124 buttonOk->setAccel( QKeySequence( QString::null ) ); 00125 buttonCancel->setText( tr( "&Cancel" ) ); 00126 buttonCancel->setAccel( QKeySequence( QString::null ) ); 00127 listView->header()->setLabel( 0, tr( "L1 Algorithm" ) ); 00128 listView->header()->setLabel( 1, tr( "Bit" ) ); 00129 pushButtonAnd->setText( tr( "AND" ) ); 00130 pushButtonOr->setText( tr( "OR" ) ); 00131 }
void VisL1TriggerMenu::orAlgo | ( | ) | [virtual, slot] |
void VisL1TriggerMenu::selectAlgo | ( | QListViewItem * | ) | [virtual, slot] |
Definition at line 133 of file VisL1TriggerFilterMenu.cc.
Referenced by VisL1TriggerMenu().
00134 { 00135 qWarning( "VisL1TriggerMenu::selectAlgo(QListViewItem*): Not implemented yet" ); 00136 }
QPushButton* VisL1TriggerMenu::buttonCancel |
Definition at line 38 of file VisL1TriggerFilterMenu.h.
Referenced by languageChange(), and VisL1TriggerMenu().
QPushButton* VisL1TriggerMenu::buttonHelp |
Definition at line 36 of file VisL1TriggerFilterMenu.h.
Referenced by languageChange(), and VisL1TriggerMenu().
QPushButton* VisL1TriggerMenu::buttonOk |
Definition at line 37 of file VisL1TriggerFilterMenu.h.
Referenced by languageChange(), and VisL1TriggerMenu().
QSpacerItem* VisL1TriggerMenu::Horizontal_Spacing2 [protected] |
QRadioButton* VisL1TriggerMenu::l1EventFilter |
Definition at line 34 of file VisL1TriggerFilterMenu.h.
Referenced by languageChange(), and VisL1TriggerMenu().
QLineEdit* VisL1TriggerMenu::l1EventFilterExpression |
QHBoxLayout* VisL1TriggerMenu::Layout1 [protected] |
QVBoxLayout* VisL1TriggerMenu::layout15 [protected] |
QHBoxLayout* VisL1TriggerMenu::layout16 [protected] |
QHBoxLayout* VisL1TriggerMenu::layout8 [protected] |
QListView* VisL1TriggerMenu::listView |
Definition at line 39 of file VisL1TriggerFilterMenu.h.
Referenced by VisEventMenu::l1TriggerDialog(), languageChange(), and VisL1TriggerMenu().
QPushButton* VisL1TriggerMenu::pushButtonAnd |
Definition at line 40 of file VisL1TriggerFilterMenu.h.
Referenced by languageChange(), and VisL1TriggerMenu().
QPushButton* VisL1TriggerMenu::pushButtonOr |
Definition at line 41 of file VisL1TriggerFilterMenu.h.
Referenced by languageChange(), and VisL1TriggerMenu().
QSpacerItem* VisL1TriggerMenu::spacer2 [protected] |
QSpacerItem* VisL1TriggerMenu::spacer3 [protected] |
QGridLayout* VisL1TriggerMenu::VisL1TriggerMenuLayout [protected] |