#include <VisFramework/VisFrameworkBase/interface/VisSkipEventDialog.h>
Public Slots | |
virtual void | skip () |
virtual void | skipBackwards () |
virtual void | skipForward () |
Public Member Functions | |
VisSkipEventDialog (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0) | |
~VisSkipEventDialog () | |
Public Attributes | |
QPushButton * | backPushButton |
QPushButton * | forwardPushButton |
QLineEdit * | skipNumberLineEdit |
Protected Slots | |
virtual void | languageChange () |
Protected Attributes | |
QGridLayout * | topLayout |
QGridLayout * | VisSkipEventDialogLayout |
Definition at line 23 of file VisSkipEventDialog.h.
VisSkipEventDialog::VisSkipEventDialog | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 , |
|||
bool | modal = FALSE , |
|||
WFlags | fl = 0 | |||
) |
Definition at line 26 of file VisSkipEventDialog.cc.
References backPushButton, HLT_VtxMuL3::connect, forwardPushButton, languageChange(), skip(), skipBackwards(), skipForward(), skipNumberLineEdit, topLayout, and VisSkipEventDialogLayout.
00027 : QDialog( parent, name, modal, fl ) 00028 { 00029 if ( !name ) 00030 setName( "VisSkipEventDialog" ); 00031 VisSkipEventDialogLayout = new QGridLayout( this, 1, 1, 11, 6, "VisSkipEventDialogLayout"); 00032 00033 topLayout = new QGridLayout( 0, 1, 1, 0, 6, "topLayout"); 00034 00035 forwardPushButton = new QPushButton( this, "forwardPushButton" ); 00036 00037 topLayout->addWidget( forwardPushButton, 0, 2 ); 00038 00039 skipNumberLineEdit = new QLineEdit( this, "skipNumberLineEdit" ); 00040 00041 topLayout->addWidget( skipNumberLineEdit, 0, 1 ); 00042 00043 backPushButton = new QPushButton( this, "backPushButton" ); 00044 00045 topLayout->addWidget( backPushButton, 0, 0 ); 00046 00047 VisSkipEventDialogLayout->addLayout( topLayout, 0, 0 ); 00048 languageChange(); 00049 resize( QSize(310, 52).expandedTo(minimumSizeHint()) ); 00050 clearWState( WState_Polished ); 00051 00052 // signals and slots connections 00053 connect( backPushButton, SIGNAL( clicked() ), this, SLOT( skipBackwards() ) ); 00054 connect( forwardPushButton, SIGNAL( clicked() ), this, SLOT( skipForward() ) ); 00055 connect( skipNumberLineEdit, SIGNAL( returnPressed() ), this, SLOT( skip() ) ); 00056 }
VisSkipEventDialog::~VisSkipEventDialog | ( | ) |
void VisSkipEventDialog::languageChange | ( | ) | [protected, virtual, slot] |
Definition at line 70 of file VisSkipEventDialog.cc.
References reco::fitHelper::add(), backPushButton, and forwardPushButton.
Referenced by VisSkipEventDialog().
00071 { 00072 setCaption( tr( "Skip Events" ) ); 00073 forwardPushButton->setText( tr( "Forward" ) ); 00074 QToolTip::add( forwardPushButton, tr( "Go forward" ) ); 00075 QWhatsThis::add( forwardPushButton, tr( "Skip specified number of events forward." ) ); 00076 backPushButton->setText( tr( "Back" ) ); 00077 QToolTip::add( backPushButton, tr( "Go back" ) ); 00078 QWhatsThis::add( backPushButton, tr( "Skip specified number of events backwards." ) ); 00079 }
void VisSkipEventDialog::skip | ( | ) | [virtual, slot] |
void VisSkipEventDialog::skipBackwards | ( | ) | [virtual, slot] |
Definition at line 81 of file VisSkipEventDialog.cc.
References funct::num(), and skipNumberLineEdit.
Referenced by VisSkipEventDialog().
00082 { 00083 long num = skipNumberLineEdit->text ().toULong (); 00084 QString text; 00085 text = text.setNum (-num); 00086 skipNumberLineEdit->setText (text); 00087 accept (); 00088 }
void VisSkipEventDialog::skipForward | ( | ) | [virtual, slot] |
Definition at line 90 of file VisSkipEventDialog.cc.
References funct::abs(), funct::num(), and skipNumberLineEdit.
Referenced by VisSkipEventDialog().
00091 { 00092 long num = skipNumberLineEdit->text ().toULong (); 00093 QString text; 00094 text = text.setNum (abs (num)); 00095 skipNumberLineEdit->setText (text); 00096 accept (); 00097 }
QPushButton* VisSkipEventDialog::backPushButton |
Definition at line 33 of file VisSkipEventDialog.h.
Referenced by languageChange(), and VisSkipEventDialog().
QPushButton* VisSkipEventDialog::forwardPushButton |
Definition at line 31 of file VisSkipEventDialog.h.
Referenced by languageChange(), and VisSkipEventDialog().
QLineEdit* VisSkipEventDialog::skipNumberLineEdit |
Definition at line 32 of file VisSkipEventDialog.h.
Referenced by skipBackwards(), skipForward(), and VisSkipEventDialog().
QGridLayout* VisSkipEventDialog::topLayout [protected] |
QGridLayout* VisSkipEventDialog::VisSkipEventDialogLayout [protected] |