#include <Iguana/Studio/interface/IgWizardBase.h>
Public Slots | |
virtual void | back () |
virtual void | help () |
virtual void | next () |
Public Member Functions | |
IgWizardBase (QWidget *parent=0, const char *name=0, bool modal=FALSE, WFlags fl=0) | |
~IgWizardBase () | |
Public Attributes | |
QPushButton * | m_backButton |
QFrame * | m_bottomSeparator |
QPushButton * | m_cancelButton |
QLabel * | m_category |
QFrame * | m_content |
QPushButton * | m_finishButton |
QPushButton * | m_helpButton |
QPushButton * | m_nextButton |
QLabel * | m_title |
QLabel * | m_titlePixmap |
QFrame * | m_titleSeparator |
Protected Attributes | |
QVBoxLayout * | IgWizardBaseLayout |
QVBoxLayout * | m_bottomLayout |
QHBoxLayout * | m_buttonLayout |
QVBoxLayout * | m_titleAreaLayout |
QHBoxLayout * | m_titleLayout |
QVBoxLayout * | m_titleTextLayout |
Definition at line 21 of file IgWizardBase.h.
IgWizardBase::IgWizardBase | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 , |
|||
bool | modal = FALSE , |
|||
WFlags | fl = 0 | |||
) |
Definition at line 135 of file IgWizardBase.cc.
References back(), HLT_VtxMuL3::connect, FALSE, help(), IgWizardBaseLayout, image0_data, m_backButton, m_bottomLayout, m_bottomSeparator, m_buttonLayout, m_cancelButton, m_category, m_content, m_finishButton, m_helpButton, m_nextButton, m_title, m_titleAreaLayout, m_titleLayout, m_titlePixmap, m_titleSeparator, m_titleTextLayout, next(), and TRUE.
00136 : QDialog( parent, name, modal, fl ) 00137 { 00138 QPixmap image0( ( const char** ) image0_data ); 00139 if ( !name ) 00140 setName( "IgWizardBase" ); 00141 resize( 464, 330 ); 00142 setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, sizePolicy().hasHeightForWidth() ) ); 00143 setCaption( trUtf8( "IGUANA Wizard" ) ); 00144 IgWizardBaseLayout = new QVBoxLayout( this, 0, 0, "IgWizardBaseLayout"); 00145 00146 m_titleAreaLayout = new QVBoxLayout( 0, 0, 0, "m_titleAreaLayout"); 00147 00148 m_titleLayout = new QHBoxLayout( 0, 0, 0, "m_titleLayout"); 00149 00150 m_titlePixmap = new QLabel( this, "m_titlePixmap" ); 00151 m_titlePixmap->setPixmap( image0 ); 00152 m_titlePixmap->setScaledContents( FALSE ); 00153 m_titleLayout->addWidget( m_titlePixmap ); 00154 00155 m_titleTextLayout = new QVBoxLayout( 0, 0, 0, "m_titleTextLayout"); 00156 00157 m_title = new QLabel( this, "m_title" ); 00158 m_title->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, 0, 0, m_title->sizePolicy().hasHeightForWidth() ) ); 00159 m_title->setMinimumSize( QSize( 220, 20 ) ); 00160 QPalette pal; 00161 QColorGroup cg; 00162 cg.setColor( QColorGroup::Foreground, black ); 00163 cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) ); 00164 cg.setColor( QColorGroup::Light, white ); 00165 cg.setColor( QColorGroup::Midlight, QColor( 223, 223, 223) ); 00166 cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) ); 00167 cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) ); 00168 cg.setColor( QColorGroup::Text, black ); 00169 cg.setColor( QColorGroup::BrightText, white ); 00170 cg.setColor( QColorGroup::ButtonText, black ); 00171 cg.setColor( QColorGroup::Base, white ); 00172 cg.setColor( QColorGroup::Background, white ); 00173 cg.setColor( QColorGroup::Shadow, black ); 00174 cg.setColor( QColorGroup::Highlight, black ); 00175 cg.setColor( QColorGroup::HighlightedText, white ); 00176 cg.setColor( QColorGroup::Link, black ); 00177 cg.setColor( QColorGroup::LinkVisited, black ); 00178 pal.setActive( cg ); 00179 cg.setColor( QColorGroup::Foreground, black ); 00180 cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) ); 00181 cg.setColor( QColorGroup::Light, white ); 00182 cg.setColor( QColorGroup::Midlight, QColor( 220, 220, 220) ); 00183 cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) ); 00184 cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) ); 00185 cg.setColor( QColorGroup::Text, black ); 00186 cg.setColor( QColorGroup::BrightText, white ); 00187 cg.setColor( QColorGroup::ButtonText, black ); 00188 cg.setColor( QColorGroup::Base, white ); 00189 cg.setColor( QColorGroup::Background, white ); 00190 cg.setColor( QColorGroup::Shadow, black ); 00191 cg.setColor( QColorGroup::Highlight, black ); 00192 cg.setColor( QColorGroup::HighlightedText, white ); 00193 cg.setColor( QColorGroup::Link, black ); 00194 cg.setColor( QColorGroup::LinkVisited, black ); 00195 pal.setInactive( cg ); 00196 cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); 00197 cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) ); 00198 cg.setColor( QColorGroup::Light, white ); 00199 cg.setColor( QColorGroup::Midlight, QColor( 220, 220, 220) ); 00200 cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) ); 00201 cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) ); 00202 cg.setColor( QColorGroup::Text, black ); 00203 cg.setColor( QColorGroup::BrightText, white ); 00204 cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); 00205 cg.setColor( QColorGroup::Base, white ); 00206 cg.setColor( QColorGroup::Background, white ); 00207 cg.setColor( QColorGroup::Shadow, black ); 00208 cg.setColor( QColorGroup::Highlight, black ); 00209 cg.setColor( QColorGroup::HighlightedText, white ); 00210 cg.setColor( QColorGroup::Link, black ); 00211 cg.setColor( QColorGroup::LinkVisited, black ); 00212 pal.setDisabled( cg ); 00213 m_title->setPalette( pal ); 00214 QFont m_title_font( m_title->font() ); 00215 m_title_font.setFamily( "tahoma" ); 00216 m_title_font.setPointSize( 18 ); 00217 m_title_font.setBold( TRUE ); 00218 m_title->setFont( m_title_font ); 00219 m_title->setText( trUtf8( "IGUANA Wizard" ) ); 00220 m_title->setTextFormat( QLabel::PlainText ); 00221 m_title->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignLeft ) ); 00222 m_title->setIndent( -1 ); 00223 m_titleTextLayout->addWidget( m_title ); 00224 00225 m_category = new QLabel( this, "m_category" ); 00226 m_category->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, 0, 0, m_category->sizePolicy().hasHeightForWidth() ) ); 00227 m_category->setMinimumSize( QSize( 220, 40 ) ); 00228 cg.setColor( QColorGroup::Foreground, QColor( 0, 0, 127) ); 00229 cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) ); 00230 cg.setColor( QColorGroup::Light, white ); 00231 cg.setColor( QColorGroup::Midlight, QColor( 223, 223, 223) ); 00232 cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) ); 00233 cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) ); 00234 cg.setColor( QColorGroup::Text, QColor( 0, 0, 127) ); 00235 cg.setColor( QColorGroup::BrightText, white ); 00236 cg.setColor( QColorGroup::ButtonText, QColor( 0, 0, 127) ); 00237 cg.setColor( QColorGroup::Base, white ); 00238 cg.setColor( QColorGroup::Background, white ); 00239 cg.setColor( QColorGroup::Shadow, black ); 00240 cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 127) ); 00241 cg.setColor( QColorGroup::HighlightedText, white ); 00242 cg.setColor( QColorGroup::Link, black ); 00243 cg.setColor( QColorGroup::LinkVisited, black ); 00244 pal.setActive( cg ); 00245 cg.setColor( QColorGroup::Foreground, QColor( 0, 0, 127) ); 00246 cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) ); 00247 cg.setColor( QColorGroup::Light, white ); 00248 cg.setColor( QColorGroup::Midlight, QColor( 220, 220, 220) ); 00249 cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) ); 00250 cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) ); 00251 cg.setColor( QColorGroup::Text, QColor( 0, 0, 127) ); 00252 cg.setColor( QColorGroup::BrightText, white ); 00253 cg.setColor( QColorGroup::ButtonText, QColor( 0, 0, 127) ); 00254 cg.setColor( QColorGroup::Base, white ); 00255 cg.setColor( QColorGroup::Background, white ); 00256 cg.setColor( QColorGroup::Shadow, black ); 00257 cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 127) ); 00258 cg.setColor( QColorGroup::HighlightedText, white ); 00259 cg.setColor( QColorGroup::Link, black ); 00260 cg.setColor( QColorGroup::LinkVisited, black ); 00261 pal.setInactive( cg ); 00262 cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); 00263 cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) ); 00264 cg.setColor( QColorGroup::Light, white ); 00265 cg.setColor( QColorGroup::Midlight, QColor( 220, 220, 220) ); 00266 cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) ); 00267 cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) ); 00268 cg.setColor( QColorGroup::Text, QColor( 0, 0, 127) ); 00269 cg.setColor( QColorGroup::BrightText, white ); 00270 cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); 00271 cg.setColor( QColorGroup::Base, white ); 00272 cg.setColor( QColorGroup::Background, white ); 00273 cg.setColor( QColorGroup::Shadow, black ); 00274 cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 127) ); 00275 cg.setColor( QColorGroup::HighlightedText, white ); 00276 cg.setColor( QColorGroup::Link, black ); 00277 cg.setColor( QColorGroup::LinkVisited, black ); 00278 pal.setDisabled( cg ); 00279 m_category->setPalette( pal ); 00280 QFont m_category_font( m_category->font() ); 00281 m_category_font.setFamily( "tahoma" ); 00282 m_category_font.setPointSize( 14 ); 00283 m_category->setFont( m_category_font ); 00284 m_category->setText( trUtf8( "Geometry" ) ); 00285 m_category->setTextFormat( QLabel::PlainText ); 00286 m_category->setAlignment( int( QLabel::AlignTop | QLabel::AlignLeft ) ); 00287 m_category->setIndent( 2 ); 00288 m_titleTextLayout->addWidget( m_category ); 00289 m_titleLayout->addLayout( m_titleTextLayout ); 00290 m_titleAreaLayout->addLayout( m_titleLayout ); 00291 00292 m_titleSeparator = new QFrame( this, "m_titleSeparator" ); 00293 m_titleSeparator->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, m_titleSeparator->sizePolicy().hasHeightForWidth() ) ); 00294 m_titleSeparator->setMinimumSize( QSize( 460, 2 ) ); 00295 cg.setColor( QColorGroup::Foreground, black ); 00296 cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) ); 00297 cg.setColor( QColorGroup::Light, black ); 00298 cg.setColor( QColorGroup::Midlight, QColor( 223, 223, 223) ); 00299 cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) ); 00300 cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) ); 00301 cg.setColor( QColorGroup::Text, black ); 00302 cg.setColor( QColorGroup::BrightText, white ); 00303 cg.setColor( QColorGroup::ButtonText, black ); 00304 cg.setColor( QColorGroup::Base, white ); 00305 cg.setColor( QColorGroup::Background, white ); 00306 cg.setColor( QColorGroup::Shadow, black ); 00307 cg.setColor( QColorGroup::Highlight, black ); 00308 cg.setColor( QColorGroup::HighlightedText, white ); 00309 cg.setColor( QColorGroup::Link, black ); 00310 cg.setColor( QColorGroup::LinkVisited, black ); 00311 pal.setActive( cg ); 00312 cg.setColor( QColorGroup::Foreground, black ); 00313 cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) ); 00314 cg.setColor( QColorGroup::Light, white ); 00315 cg.setColor( QColorGroup::Midlight, QColor( 220, 220, 220) ); 00316 cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) ); 00317 cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) ); 00318 cg.setColor( QColorGroup::Text, black ); 00319 cg.setColor( QColorGroup::BrightText, white ); 00320 cg.setColor( QColorGroup::ButtonText, black ); 00321 cg.setColor( QColorGroup::Base, white ); 00322 cg.setColor( QColorGroup::Background, white ); 00323 cg.setColor( QColorGroup::Shadow, black ); 00324 cg.setColor( QColorGroup::Highlight, black ); 00325 cg.setColor( QColorGroup::HighlightedText, white ); 00326 cg.setColor( QColorGroup::Link, black ); 00327 cg.setColor( QColorGroup::LinkVisited, black ); 00328 pal.setInactive( cg ); 00329 cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); 00330 cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) ); 00331 cg.setColor( QColorGroup::Light, white ); 00332 cg.setColor( QColorGroup::Midlight, QColor( 220, 220, 220) ); 00333 cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) ); 00334 cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) ); 00335 cg.setColor( QColorGroup::Text, black ); 00336 cg.setColor( QColorGroup::BrightText, white ); 00337 cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); 00338 cg.setColor( QColorGroup::Base, white ); 00339 cg.setColor( QColorGroup::Background, white ); 00340 cg.setColor( QColorGroup::Shadow, black ); 00341 cg.setColor( QColorGroup::Highlight, black ); 00342 cg.setColor( QColorGroup::HighlightedText, white ); 00343 cg.setColor( QColorGroup::Link, black ); 00344 cg.setColor( QColorGroup::LinkVisited, black ); 00345 pal.setDisabled( cg ); 00346 m_titleSeparator->setPalette( pal ); 00347 m_titleSeparator->setProperty( "frameShape", (int)QFrame::HLine ); 00348 m_titleSeparator->setFrameShadow( QFrame::Sunken ); 00349 m_titleSeparator->setFrameShape( QFrame::HLine ); 00350 m_titleAreaLayout->addWidget( m_titleSeparator ); 00351 IgWizardBaseLayout->addLayout( m_titleAreaLayout ); 00352 00353 m_content = new QFrame( this, "m_content" ); 00354 m_content->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)3, 0, 0, m_content->sizePolicy().hasHeightForWidth() ) ); 00355 m_content->setMinimumSize( QSize( 0, 220 ) ); 00356 m_content->setFrameShape( QFrame::StyledPanel ); 00357 m_content->setFrameShadow( QFrame::Raised ); 00358 m_content->setLineWidth( 0 ); 00359 IgWizardBaseLayout->addWidget( m_content ); 00360 00361 m_bottomLayout = new QVBoxLayout( 0, 0, 0, "m_bottomLayout"); 00362 00363 m_bottomSeparator = new QFrame( this, "m_bottomSeparator" ); 00364 m_bottomSeparator->setProperty( "frameShape", (int)QFrame::HLine ); 00365 m_bottomSeparator->setFrameShadow( QFrame::Sunken ); 00366 m_bottomSeparator->setFrameShape( QFrame::HLine ); 00367 m_bottomLayout->addWidget( m_bottomSeparator ); 00368 00369 m_buttonLayout = new QHBoxLayout( 0, 0, 0, "m_buttonLayout"); 00370 00371 m_cancelButton = new QPushButton( this, "m_cancelButton" ); 00372 m_cancelButton->setText( trUtf8( "Cancel" ) ); 00373 m_buttonLayout->addWidget( m_cancelButton ); 00374 QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00375 m_buttonLayout->addItem( spacer ); 00376 00377 m_backButton = new QPushButton( this, "m_backButton" ); 00378 m_backButton->setEnabled( FALSE ); 00379 m_backButton->setText( trUtf8( "< Back" ) ); 00380 m_buttonLayout->addWidget( m_backButton ); 00381 00382 m_nextButton = new QPushButton( this, "m_nextButton" ); 00383 m_nextButton->setEnabled( FALSE ); 00384 m_nextButton->setText( trUtf8( "Next >" ) ); 00385 m_buttonLayout->addWidget( m_nextButton ); 00386 00387 m_finishButton = new QPushButton( this, "m_finishButton" ); 00388 m_finishButton->setEnabled( FALSE ); 00389 m_finishButton->setText( trUtf8( "Finish" ) ); 00390 m_buttonLayout->addWidget( m_finishButton ); 00391 00392 m_helpButton = new QPushButton( this, "m_helpButton" ); 00393 m_helpButton->setEnabled( FALSE ); 00394 m_helpButton->setText( trUtf8( "Help" ) ); 00395 m_buttonLayout->addWidget( m_helpButton ); 00396 m_bottomLayout->addLayout( m_buttonLayout ); 00397 IgWizardBaseLayout->addLayout( m_bottomLayout ); 00398 00399 // signals and slots connections 00400 connect( m_cancelButton, SIGNAL( clicked() ), this, SLOT( reject() ) ); 00401 connect( m_backButton, SIGNAL( clicked() ), this, SLOT( back() ) ); 00402 connect( m_nextButton, SIGNAL( clicked() ), this, SLOT( next() ) ); 00403 connect( m_helpButton, SIGNAL( clicked() ), this, SLOT( help() ) ); 00404 connect( m_finishButton, SIGNAL( clicked() ), this, SLOT( accept() ) ); 00405 }
IgWizardBase::~IgWizardBase | ( | ) |
Reimplemented in IgWizard.
Definition at line 415 of file IgWizardBase.cc.
Referenced by IgWizardBase().
Reimplemented in IgWizard.
Definition at line 420 of file IgWizardBase.cc.
Referenced by IgWizardBase().
Reimplemented in IgWizard.
Definition at line 425 of file IgWizardBase.cc.
Referenced by IgWizardBase().
QVBoxLayout* IgWizardBase::IgWizardBaseLayout [protected] |
QPushButton* IgWizardBase::m_backButton |
Definition at line 36 of file IgWizardBase.h.
Referenced by IgWizardBase(), and IgWizard::updateBack().
QVBoxLayout* IgWizardBase::m_bottomLayout [protected] |
QFrame* IgWizardBase::m_bottomSeparator |
QHBoxLayout* IgWizardBase::m_buttonLayout [protected] |
QPushButton* IgWizardBase::m_cancelButton |
QLabel* IgWizardBase::m_category |
Definition at line 31 of file IgWizardBase.h.
Referenced by IgWizardBase(), and IgWizard::showPage().
QFrame* IgWizardBase::m_content |
Definition at line 33 of file IgWizardBase.h.
Referenced by IgWizardBase(), and IgWizard::showPage().
QPushButton* IgWizardBase::m_finishButton |
Definition at line 38 of file IgWizardBase.h.
Referenced by IgWizardBase(), and IgWizard::updateFinish().
QPushButton* IgWizardBase::m_helpButton |
Definition at line 39 of file IgWizardBase.h.
Referenced by IgWizard::IgWizard(), IgWizardBase(), and IgWizard::updateHelp().
QPushButton* IgWizardBase::m_nextButton |
Definition at line 37 of file IgWizardBase.h.
Referenced by IgWizardBase(), and IgWizard::updateNext().
QLabel* IgWizardBase::m_title |
Definition at line 30 of file IgWizardBase.h.
Referenced by IgWizardBase(), IgWizard::setTitle(), and IgWizard::title().
QVBoxLayout* IgWizardBase::m_titleAreaLayout [protected] |
QHBoxLayout* IgWizardBase::m_titleLayout [protected] |
QLabel* IgWizardBase::m_titlePixmap |
QFrame* IgWizardBase::m_titleSeparator |
QVBoxLayout* IgWizardBase::m_titleTextLayout [protected] |