CMS 3D CMS Logo

VisProcessEventDialog Class Reference

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

List of all members.

Public Member Functions

 VisProcessEventDialog (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0)
 ~VisProcessEventDialog ()

Public Attributes

QPushButton * cancelButton
QLabel * eventNumberLabel
QLineEdit * eventNumberText
QPushButton * okButton
QLabel * runNumberLabel
QLineEdit * runNumberText

Protected Slots

virtual void languageChange ()

Protected Attributes

QVBoxLayout * buttonsLayout
QHBoxLayout * labelsAndTextLayout
QVBoxLayout * labelsLayout
QVBoxLayout * textLayout
QHBoxLayout * topLayout
QGridLayout * VisProcessEventDialogLayout


Detailed Description

Definition at line 24 of file VisProcessEventDialog.h.


Constructor & Destructor Documentation

VisProcessEventDialog::VisProcessEventDialog ( QWidget *  parent = 0,
const char *  name = 0,
bool  modal = FALSE,
WFlags  fl = 0 
)

Definition at line 27 of file VisProcessEventDialog.cc.

References buttonsLayout, cancelButton, HLT_VtxMuL3::connect, eventNumberLabel, eventNumberText, labelsAndTextLayout, labelsLayout, languageChange(), okButton, runNumberLabel, runNumberText, textLayout, topLayout, TRUE, and VisProcessEventDialogLayout.

00028     : QDialog( parent, name, modal, fl )
00029 {
00030     if ( !name )
00031         setName( "VisProcessEventDialog" );
00032     VisProcessEventDialogLayout = new QGridLayout( this, 1, 1, 11, 6, "VisProcessEventDialogLayout"); 
00033 
00034     topLayout = new QHBoxLayout( 0, 0, 6, "topLayout"); 
00035 
00036     labelsAndTextLayout = new QHBoxLayout( 0, 0, 6, "labelsAndTextLayout"); 
00037 
00038     labelsLayout = new QVBoxLayout( 0, 0, 6, "labelsLayout"); 
00039 
00040     runNumberLabel = new QLabel( this, "runNumberLabel" );
00041     labelsLayout->addWidget( runNumberLabel );
00042 
00043     eventNumberLabel = new QLabel( this, "eventNumberLabel" );
00044     labelsLayout->addWidget( eventNumberLabel );
00045     labelsAndTextLayout->addLayout( labelsLayout );
00046 
00047     textLayout = new QVBoxLayout( 0, 0, 6, "textLayout"); 
00048 
00049     runNumberText = new QLineEdit( this, "runNumberText" );
00050     textLayout->addWidget( runNumberText );
00051 
00052     eventNumberText = new QLineEdit( this, "eventNumberText" );
00053     textLayout->addWidget( eventNumberText );
00054     labelsAndTextLayout->addLayout( textLayout );
00055     topLayout->addLayout( labelsAndTextLayout );
00056 
00057     buttonsLayout = new QVBoxLayout( 0, 0, 6, "buttonsLayout"); 
00058 
00059     okButton = new QPushButton( this, "okButton" );
00060     okButton->setFocusPolicy( QPushButton::TabFocus );
00061     okButton->setDefault( TRUE );
00062     buttonsLayout->addWidget( okButton );
00063 
00064     cancelButton = new QPushButton( this, "cancelButton" );
00065     buttonsLayout->addWidget( cancelButton );
00066     topLayout->addLayout( buttonsLayout );
00067 
00068     VisProcessEventDialogLayout->addLayout( topLayout, 0, 0 );
00069     languageChange();
00070     resize( QSize(366, 88).expandedTo(minimumSizeHint()) );
00071     clearWState( WState_Polished );
00072 
00073     // signals and slots connections
00074     connect( cancelButton, SIGNAL( clicked() ), this, SLOT( close() ) );
00075     connect( okButton, SIGNAL( clicked() ), this, SLOT( accept() ) );
00076 }

VisProcessEventDialog::~VisProcessEventDialog (  ) 

Definition at line 81 of file VisProcessEventDialog.cc.

00082 {
00083     // no need to delete child widgets, Qt does it all for us
00084 }


Member Function Documentation

void VisProcessEventDialog::languageChange (  )  [protected, virtual, slot]

Definition at line 90 of file VisProcessEventDialog.cc.

References reco::fitHelper::add(), cancelButton, eventNumberLabel, okButton, and runNumberLabel.

Referenced by VisProcessEventDialog().

00091 {
00092     setCaption( tr( "Goto Event" ) );
00093     runNumberLabel->setText( tr( "Run number" ) );
00094     eventNumberLabel->setText( tr( "Event number" ) );
00095     okButton->setText( tr( "Go" ) );
00096     QToolTip::add( okButton, tr( "Go to the event specified by the run number and the event number." ) );
00097     QWhatsThis::add( okButton, tr( "Go to the event specified by the event number and the run number." ) );
00098     cancelButton->setText( tr( "Cancel" ) );
00099     QToolTip::add( cancelButton, tr( "Cancel the request and close the dialog." ) );
00100     QWhatsThis::add( cancelButton, tr( "Cancel the request and close the dialog." ) );
00101 }


Member Data Documentation

QVBoxLayout* VisProcessEventDialog::buttonsLayout [protected]

Definition at line 45 of file VisProcessEventDialog.h.

Referenced by VisProcessEventDialog().

QPushButton* VisProcessEventDialog::cancelButton

Definition at line 37 of file VisProcessEventDialog.h.

Referenced by languageChange(), and VisProcessEventDialog().

QLabel* VisProcessEventDialog::eventNumberLabel

Definition at line 33 of file VisProcessEventDialog.h.

Referenced by languageChange(), and VisProcessEventDialog().

QLineEdit* VisProcessEventDialog::eventNumberText

Definition at line 35 of file VisProcessEventDialog.h.

Referenced by VisEventMenu::processEventDialog(), and VisProcessEventDialog().

QHBoxLayout* VisProcessEventDialog::labelsAndTextLayout [protected]

Definition at line 42 of file VisProcessEventDialog.h.

Referenced by VisProcessEventDialog().

QVBoxLayout* VisProcessEventDialog::labelsLayout [protected]

Definition at line 43 of file VisProcessEventDialog.h.

Referenced by VisProcessEventDialog().

QPushButton* VisProcessEventDialog::okButton

Definition at line 36 of file VisProcessEventDialog.h.

Referenced by languageChange(), and VisProcessEventDialog().

QLabel* VisProcessEventDialog::runNumberLabel

Definition at line 32 of file VisProcessEventDialog.h.

Referenced by languageChange(), and VisProcessEventDialog().

QLineEdit* VisProcessEventDialog::runNumberText

Definition at line 34 of file VisProcessEventDialog.h.

Referenced by VisEventMenu::processEventDialog(), and VisProcessEventDialog().

QVBoxLayout* VisProcessEventDialog::textLayout [protected]

Definition at line 44 of file VisProcessEventDialog.h.

Referenced by VisProcessEventDialog().

QHBoxLayout* VisProcessEventDialog::topLayout [protected]

Definition at line 41 of file VisProcessEventDialog.h.

Referenced by VisProcessEventDialog().

QGridLayout* VisProcessEventDialog::VisProcessEventDialogLayout [protected]

Definition at line 40 of file VisProcessEventDialog.h.

Referenced by VisProcessEventDialog().


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