#include <VisFramework/VisFrameworkBase/interface/VisEventNavigationDialog.h>
Public Slots | |
virtual void | skip () |
virtual void | skipBackwards () |
virtual void | skipForward () |
Public Member Functions | |
VisEventNavigationDialog (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0) | |
~VisEventNavigationDialog () | |
Public Attributes | |
QRadioButton * | backRadioButton |
QButtonGroup * | buttonGroup |
QPushButton * | closePushButton |
QRadioButton * | forwardRadioButton |
QPushButton * | okPushButton |
QLineEdit * | skipNumberLineEdit |
Protected Slots | |
virtual void | languageChange () |
Protected Attributes | |
QGridLayout * | buttonGroupLayout |
QVBoxLayout * | buttonLayout |
QGridLayout * | VisEventNavigationDialogLayout |
Definition at line 25 of file VisEventNavigationDialog.h.
VisEventNavigationDialog::VisEventNavigationDialog | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 , |
|||
bool | modal = FALSE , |
|||
WFlags | fl = 0 | |||
) |
Definition at line 28 of file VisEventNavigationDialog.cc.
References backRadioButton, buttonGroup, buttonGroupLayout, buttonLayout, closePushButton, HLT_VtxMuL3::connect, forwardRadioButton, languageChange(), okPushButton, skip(), skipNumberLineEdit, TRUE, and VisEventNavigationDialogLayout.
00029 : QDialog( parent, name, modal, fl ) 00030 { 00031 if ( !name ) 00032 setName( "VisEventNavigationDialog" ); 00033 VisEventNavigationDialogLayout = new QGridLayout( this, 1, 1, 11, 6, "VisEventNavigationDialogLayout"); 00034 00035 skipNumberLineEdit = new QLineEdit( this, "skipNumberLineEdit" ); 00036 00037 VisEventNavigationDialogLayout->addWidget( skipNumberLineEdit, 0, 1 ); 00038 00039 buttonLayout = new QVBoxLayout( 0, 0, 6, "buttonLayout"); 00040 00041 okPushButton = new QPushButton( this, "okPushButton" ); 00042 buttonLayout->addWidget( okPushButton ); 00043 00044 closePushButton = new QPushButton( this, "closePushButton" ); 00045 buttonLayout->addWidget( closePushButton ); 00046 00047 VisEventNavigationDialogLayout->addLayout( buttonLayout, 0, 2 ); 00048 00049 buttonGroup = new QButtonGroup( this, "buttonGroup" ); 00050 buttonGroup->setExclusive( TRUE ); 00051 buttonGroup->setColumnLayout(0, Qt::Vertical ); 00052 buttonGroup->layout()->setSpacing( 6 ); 00053 buttonGroup->layout()->setMargin( 11 ); 00054 buttonGroupLayout = new QGridLayout( buttonGroup->layout() ); 00055 buttonGroupLayout->setAlignment( Qt::AlignTop ); 00056 00057 forwardRadioButton = new QRadioButton( buttonGroup, "forwardRadioButton" ); 00058 forwardRadioButton->setChecked( TRUE ); 00059 00060 buttonGroupLayout->addWidget( forwardRadioButton, 0, 0 ); 00061 00062 backRadioButton = new QRadioButton( buttonGroup, "backRadioButton" ); 00063 00064 buttonGroupLayout->addWidget( backRadioButton, 1, 0 ); 00065 00066 VisEventNavigationDialogLayout->addWidget( buttonGroup, 0, 0 ); 00067 languageChange(); 00068 resize( QSize(369, 103).expandedTo(minimumSizeHint()) ); 00069 clearWState( WState_Polished ); 00070 00071 // signals and slots connections 00072 connect( okPushButton, SIGNAL( clicked() ), this, SLOT( skip() ) ); 00073 connect( closePushButton, SIGNAL( clicked() ), this, SLOT( close() ) ); 00074 connect( skipNumberLineEdit, SIGNAL( returnPressed() ), this, SLOT( skip() ) ); 00075 }
VisEventNavigationDialog::~VisEventNavigationDialog | ( | ) |
void VisEventNavigationDialog::languageChange | ( | ) | [protected, virtual, slot] |
Definition at line 89 of file VisEventNavigationDialog.cc.
References reco::fitHelper::add(), backRadioButton, buttonGroup, closePushButton, forwardRadioButton, and okPushButton.
Referenced by VisEventNavigationDialog().
00090 { 00091 setCaption( tr( "Event Navigation" ) ); 00092 okPushButton->setText( tr( "Go" ) ); 00093 QToolTip::add( okPushButton, tr( "Skip events" ) ); 00094 QWhatsThis::add( okPushButton, tr( "Skip specified number of events forward." ) ); 00095 closePushButton->setText( tr( "Close" ) ); 00096 QToolTip::add( closePushButton, tr( "Close the dialog" ) ); 00097 QWhatsThis::add( closePushButton, tr( "Close the dialog." ) ); 00098 buttonGroup->setTitle( tr( "Skip" ) ); 00099 forwardRadioButton->setText( tr( "Forward" ) ); 00100 backRadioButton->setText( tr( "Back" ) ); 00101 }
void VisEventNavigationDialog::skip | ( | ) | [virtual, slot] |
Definition at line 113 of file VisEventNavigationDialog.cc.
Referenced by VisEventNavigationDialog().
void VisEventNavigationDialog::skipBackwards | ( | ) | [virtual, slot] |
void VisEventNavigationDialog::skipForward | ( | ) | [virtual, slot] |
QRadioButton* VisEventNavigationDialog::backRadioButton |
Definition at line 38 of file VisEventNavigationDialog.h.
Referenced by languageChange(), and VisEventNavigationDialog().
QButtonGroup* VisEventNavigationDialog::buttonGroup |
Definition at line 36 of file VisEventNavigationDialog.h.
Referenced by languageChange(), VisEventMenu::skipEventDialog(), and VisEventNavigationDialog().
QGridLayout* VisEventNavigationDialog::buttonGroupLayout [protected] |
QVBoxLayout* VisEventNavigationDialog::buttonLayout [protected] |
QPushButton* VisEventNavigationDialog::closePushButton |
Definition at line 35 of file VisEventNavigationDialog.h.
Referenced by languageChange(), and VisEventNavigationDialog().
QRadioButton* VisEventNavigationDialog::forwardRadioButton |
Definition at line 37 of file VisEventNavigationDialog.h.
Referenced by languageChange(), and VisEventNavigationDialog().
QPushButton* VisEventNavigationDialog::okPushButton |
Definition at line 34 of file VisEventNavigationDialog.h.
Referenced by languageChange(), and VisEventNavigationDialog().
QLineEdit* VisEventNavigationDialog::skipNumberLineEdit |
Definition at line 33 of file VisEventNavigationDialog.h.
Referenced by VisEventMenu::skipEventDialog(), and VisEventNavigationDialog().
QGridLayout* VisEventNavigationDialog::VisEventNavigationDialogLayout [protected] |