CMS 3D CMS Logo

VisL1TriggerMenu Class Reference

#include <VisFramework/VisFrameworkBase/interface/VisL1TriggerFilterMenu.h>

List of all members.

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


Detailed Description

Definition at line 26 of file VisL1TriggerFilterMenu.h.


Constructor & Destructor Documentation

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 (  ) 

Definition at line 108 of file VisL1TriggerFilterMenu.cc.

00109 {
00110     // no need to delete child widgets, Qt does it all for us
00111 }


Member Function Documentation

void VisL1TriggerMenu::andAlgo (  )  [virtual, slot]

Definition at line 148 of file VisL1TriggerFilterMenu.cc.

Referenced by VisL1TriggerMenu().

00149 {
00150     qWarning( "VisL1TriggerMenu::andAlgo(): Not implemented yet" );
00151 }

void VisL1TriggerMenu::enableFilter ( bool   )  [virtual, slot]

Definition at line 138 of file VisL1TriggerFilterMenu.cc.

Referenced by VisL1TriggerMenu().

00139 {
00140     qWarning( "VisL1TriggerMenu::enableFilter(bool): Not implemented yet" );
00141 }

void VisL1TriggerMenu::help ( void   )  [virtual, slot]

Definition at line 143 of file VisL1TriggerFilterMenu.cc.

Referenced by VisL1TriggerMenu().

00144 {
00145     qWarning( "VisL1TriggerMenu::help(): Not implemented yet" );
00146 }

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]

Definition at line 153 of file VisL1TriggerFilterMenu.cc.

Referenced by VisL1TriggerMenu().

00154 {
00155     qWarning( "VisL1TriggerMenu::orAlgo(): Not implemented yet" );
00156 }

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 }


Member Data Documentation

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]

Definition at line 54 of file VisL1TriggerFilterMenu.h.

Referenced by VisL1TriggerMenu().

QRadioButton* VisL1TriggerMenu::l1EventFilter

Definition at line 34 of file VisL1TriggerFilterMenu.h.

Referenced by languageChange(), and VisL1TriggerMenu().

QLineEdit* VisL1TriggerMenu::l1EventFilterExpression

Definition at line 35 of file VisL1TriggerFilterMenu.h.

Referenced by VisL1TriggerMenu().

QHBoxLayout* VisL1TriggerMenu::Layout1 [protected]

Definition at line 53 of file VisL1TriggerFilterMenu.h.

Referenced by VisL1TriggerMenu().

QVBoxLayout* VisL1TriggerMenu::layout15 [protected]

Definition at line 56 of file VisL1TriggerFilterMenu.h.

Referenced by VisL1TriggerMenu().

QHBoxLayout* VisL1TriggerMenu::layout16 [protected]

Definition at line 55 of file VisL1TriggerFilterMenu.h.

Referenced by VisL1TriggerMenu().

QHBoxLayout* VisL1TriggerMenu::layout8 [protected]

Definition at line 52 of file VisL1TriggerFilterMenu.h.

Referenced by VisL1TriggerMenu().

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]

Definition at line 57 of file VisL1TriggerFilterMenu.h.

Referenced by VisL1TriggerMenu().

QSpacerItem* VisL1TriggerMenu::spacer3 [protected]

Definition at line 58 of file VisL1TriggerFilterMenu.h.

Referenced by VisL1TriggerMenu().

QGridLayout* VisL1TriggerMenu::VisL1TriggerMenuLayout [protected]

Definition at line 51 of file VisL1TriggerFilterMenu.h.

Referenced by VisL1TriggerMenu().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:35:31 2009 for CMSSW by  doxygen 1.5.4