#include <Iguana/Studio/interface/IgStudioSetup.h>
Public Slots | |
virtual void | helpSlot () |
Public Member Functions | |
IgStudioSetup (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0) | |
~IgStudioSetup () | |
Public Attributes | |
QPushButton * | m_cancel |
QListBox * | m_configs |
QPushButton * | m_help |
QLabel * | m_label |
QPushButton * | m_ok |
Protected Slots | |
virtual void | languageChange () |
Protected Attributes | |
QGridLayout * | IgStudioSetupLayout |
QGridLayout * | m_layout1 |
QGridLayout * | m_layout2 |
Definition at line 24 of file IgStudioSetup.h.
IgStudioSetup::IgStudioSetup | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 , |
|||
bool | modal = FALSE , |
|||
WFlags | fl = 0 | |||
) |
Definition at line 27 of file IgStudioSetup.cc.
References HLT_VtxMuL3::connect, helpSlot(), IgStudioSetupLayout, languageChange(), m_cancel, m_configs, m_help, m_label, m_layout1, m_layout2, m_ok, and TRUE.
00028 : QDialog( parent, name, modal, fl ) 00029 { 00030 if ( !name ) 00031 setName( "IgStudioSetup" ); 00032 IgStudioSetupLayout = new QGridLayout( this, 1, 1, 11, 6, "IgStudioSetupLayout"); 00033 00034 m_label = new QLabel( this, "m_label" ); 00035 m_label->setAlignment( int( QLabel::AlignVCenter ) ); 00036 00037 IgStudioSetupLayout->addWidget( m_label, 0, 0 ); 00038 00039 m_layout2 = new QGridLayout( 0, 1, 1, 0, 6, "m_layout2"); 00040 00041 m_layout1 = new QGridLayout( 0, 1, 1, 0, 6, "m_layout1"); 00042 QSpacerItem* spacer = new QSpacerItem( 20, 60, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00043 m_layout1->addItem( spacer, 2, 0 ); 00044 00045 m_cancel = new QPushButton( this, "m_cancel" ); 00046 00047 m_layout1->addWidget( m_cancel, 1, 0 ); 00048 00049 m_help = new QPushButton( this, "m_help" ); 00050 00051 m_layout1->addWidget( m_help, 3, 0 ); 00052 00053 m_ok = new QPushButton( this, "m_ok" ); 00054 m_ok->setDefault( TRUE ); 00055 00056 m_layout1->addWidget( m_ok, 0, 0 ); 00057 00058 m_layout2->addLayout( m_layout1, 0, 1 ); 00059 00060 m_configs = new QListBox( this, "m_configs" ); 00061 00062 m_layout2->addWidget( m_configs, 0, 0 ); 00063 00064 IgStudioSetupLayout->addLayout( m_layout2, 1, 0 ); 00065 languageChange(); 00066 resize( QSize(350, 200).expandedTo(minimumSizeHint()) ); 00067 clearWState( WState_Polished ); 00068 00069 // signals and slots connections 00070 connect( m_configs, SIGNAL( returnPressed(QListBoxItem*) ), this, SLOT( accept() ) ); 00071 connect( m_configs, SIGNAL( doubleClicked(QListBoxItem*) ), this, SLOT( accept() ) ); 00072 connect( m_cancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); 00073 connect( m_ok, SIGNAL( clicked() ), this, SLOT( accept() ) ); 00074 connect( m_help, SIGNAL( clicked() ), this, SLOT( helpSlot() ) ); 00075 }
IgStudioSetup::~IgStudioSetup | ( | ) |
void IgStudioSetup::helpSlot | ( | ) | [virtual, slot] |
void IgStudioSetup::languageChange | ( | ) | [protected, virtual, slot] |
Definition at line 89 of file IgStudioSetup.cc.
References reco::fitHelper::add(), m_cancel, m_configs, m_help, m_label, and m_ok.
Referenced by IgStudioSetup().
00090 { 00091 setCaption( tr( "IGUANA Setup" ) ); 00092 m_label->setText( tr( "Please select configuration" ) ); 00093 m_cancel->setText( tr( "&Cancel" ) ); 00094 QToolTip::add( m_cancel, tr( "Terminate setup" ) ); 00095 QWhatsThis::add( m_cancel, tr( "<p><b>Cancel Button:</b></p><p>Canceling setup will cause termination of the IGUANA application.</p>" ) ); 00096 m_help->setText( tr( "&Help" ) ); 00097 QToolTip::add( m_help, tr( "Enter \"What's This\" mode" ) ); 00098 QWhatsThis::add( m_help, tr( "<p><b>Help Button:</b></p><p>Clicking on the button will change cursor in the <b><i>what's this</i></b> mode.</p>" ) ); 00099 m_ok->setText( tr( "&OK" ) ); 00100 QToolTip::add( m_ok, tr( "Load selected extension" ) ); 00101 QWhatsThis::add( m_ok, tr( "<p><b>OK Button:</b></p><p>Accept <i><b>selected</b></i> extension from the configuration list to be loaded.<p></p>The extension can be loaded by left mouse button <b>double-click</b> on the selected item.</p>" ) ); 00102 QToolTip::add( m_configs, tr( "List of all available extensions" ) ); 00103 QWhatsThis::add( m_configs, tr( "<p>The list of currently available extensions is collected from plugin databases defined by <b>$IGUANA_PLUGINS</b> environment variable.</p>" ) ); 00104 }
QGridLayout* IgStudioSetup::IgStudioSetupLayout [protected] |
QPushButton* IgStudioSetup::m_cancel |
QListBox* IgStudioSetup::m_configs |
Definition at line 36 of file IgStudioSetup.h.
Referenced by IgStudioSetup(), languageChange(), and IgStudioDriver::setupSession().
QPushButton* IgStudioSetup::m_help |
QLabel* IgStudioSetup::m_label |
QGridLayout* IgStudioSetup::m_layout1 [protected] |
QGridLayout* IgStudioSetup::m_layout2 [protected] |
QPushButton* IgStudioSetup::m_ok |