/**************************************************************************** ** Form implementation generated from reading ui file 'HVSC_Dialog.ui' ** ** Created: Wed Oct 2 21:14:45 2002 ** by: The User Interface Compiler (uic) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "HVSC_DialogData.h" #include #include #include #include #include #include #include #include #include #include /* * Constructs a HVSC_DialogData which is a child of 'parent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ HVSC_DialogData::HVSC_DialogData( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "HVSC_DialogData" ); resize( 463, 217 ); setCaption( trUtf8( "HVSC settings" ) ); HVSC_DialogDataLayout = new QGridLayout( this, 1, 1, 6, 6, "HVSC_DialogDataLayout"); browseBtn = new QPushButton( this, "browseBtn" ); QPalette pal; QColorGroup cg; cg.setColor( QColorGroup::Foreground, black ); cg.setColor( QColorGroup::Button, QColor( 255, 255, 160) ); cg.setColor( QColorGroup::Light, white ); cg.setColor( QColorGroup::Midlight, QColor( 255, 255, 207) ); cg.setColor( QColorGroup::Dark, QColor( 127, 127, 80) ); cg.setColor( QColorGroup::Mid, QColor( 170, 170, 107) ); cg.setColor( QColorGroup::Text, black ); cg.setColor( QColorGroup::BrightText, white ); cg.setColor( QColorGroup::ButtonText, black ); cg.setColor( QColorGroup::Base, white ); cg.setColor( QColorGroup::Background, QColor( 192, 192, 192) ); cg.setColor( QColorGroup::Shadow, black ); cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) ); cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( QColorGroup::Link, black ); cg.setColor( QColorGroup::LinkVisited, black ); pal.setActive( cg ); cg.setColor( QColorGroup::Foreground, black ); cg.setColor( QColorGroup::Button, QColor( 255, 255, 160) ); cg.setColor( QColorGroup::Light, white ); cg.setColor( QColorGroup::Midlight, QColor( 255, 255, 198) ); cg.setColor( QColorGroup::Dark, QColor( 127, 127, 80) ); cg.setColor( QColorGroup::Mid, QColor( 170, 170, 107) ); cg.setColor( QColorGroup::Text, black ); cg.setColor( QColorGroup::BrightText, white ); cg.setColor( QColorGroup::ButtonText, black ); cg.setColor( QColorGroup::Base, white ); cg.setColor( QColorGroup::Background, QColor( 192, 192, 192) ); cg.setColor( QColorGroup::Shadow, black ); cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) ); cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( QColorGroup::Link, black ); cg.setColor( QColorGroup::LinkVisited, black ); pal.setInactive( cg ); cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); cg.setColor( QColorGroup::Button, QColor( 255, 255, 160) ); cg.setColor( QColorGroup::Light, white ); cg.setColor( QColorGroup::Midlight, QColor( 255, 255, 198) ); cg.setColor( QColorGroup::Dark, QColor( 127, 127, 80) ); cg.setColor( QColorGroup::Mid, QColor( 170, 170, 107) ); cg.setColor( QColorGroup::Text, black ); cg.setColor( QColorGroup::BrightText, white ); cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); cg.setColor( QColorGroup::Base, white ); cg.setColor( QColorGroup::Background, QColor( 192, 192, 192) ); cg.setColor( QColorGroup::Shadow, black ); cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) ); cg.setColor( QColorGroup::HighlightedText, white ); cg.setColor( QColorGroup::Link, black ); cg.setColor( QColorGroup::LinkVisited, black ); pal.setDisabled( cg ); browseBtn->setPalette( pal ); browseBtn->setText( trUtf8( "Browse" ) ); HVSC_DialogDataLayout->addWidget( browseBtn, 1, 3 ); TextLabel1 = new QLabel( this, "TextLabel1" ); TextLabel1->setText( trUtf8( "High Voltage SID Collection root directory:" ) ); HVSC_DialogDataLayout->addMultiCellWidget( TextLabel1, 0, 0, 0, 2 ); hvscPathLineEdit = new QLineEdit( this, "hvscPathLineEdit" ); hvscPathLineEdit->setMaxLength( 4096 ); HVSC_DialogDataLayout->addMultiCellWidget( hvscPathLineEdit, 1, 1, 0, 2 ); TextLabel2 = new QLabel( this, "TextLabel2" ); TextLabel2->setText( trUtf8( "Maximum STIL View height:" ) ); HVSC_DialogDataLayout->addWidget( TextLabel2, 6, 0 ); maxHeightLineEdit = new QLineEdit( this, "maxHeightLineEdit" ); maxHeightLineEdit->setAcceptDrops( FALSE ); maxHeightLineEdit->setMaxLength( 16 ); HVSC_DialogDataLayout->addWidget( maxHeightLineEdit, 6, 1 ); ButtonGroup1 = new QButtonGroup( this, "ButtonGroup1" ); ButtonGroup1->setTitle( trUtf8( "Show STIL entries for" ) ); ButtonGroup1->setExclusive( TRUE ); showCurrentSongBtn = new QRadioButton( ButtonGroup1, "showCurrentSongBtn" ); showCurrentSongBtn->setGeometry( QRect( 10, 21, 130, 21 ) ); showCurrentSongBtn->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, 0, 0, showCurrentSongBtn->sizePolicy().hasHeightForWidth() ) ); showCurrentSongBtn->setText( trUtf8( "current song" ) ); showFileBtn = new QRadioButton( ButtonGroup1, "showFileBtn" ); showFileBtn->setGeometry( QRect( 10, 45, 130, 21 ) ); showFileBtn->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, 0, 0, showFileBtn->sizePolicy().hasHeightForWidth() ) ); showFileBtn->setText( trUtf8( "current file" ) ); HVSC_DialogDataLayout->addMultiCellWidget( ButtonGroup1, 2, 4, 2, 3 ); autoResizeBtn = new QCheckBox( this, "autoResizeBtn" ); autoResizeBtn->setText( trUtf8( "Autoresize STIL View window" ) ); HVSC_DialogDataLayout->addMultiCellWidget( autoResizeBtn, 5, 5, 0, 1 ); bugListEntryBox = new QCheckBox( this, "bugListEntryBox" ); bugListEntryBox->setText( trUtf8( "Show BUGlist entries" ) ); HVSC_DialogDataLayout->addMultiCellWidget( bugListEntryBox, 4, 4, 0, 1 ); stilEntryBox = new QCheckBox( this, "stilEntryBox" ); stilEntryBox->setText( trUtf8( "Show STIL file-specific entries" ) ); HVSC_DialogDataLayout->addMultiCellWidget( stilEntryBox, 3, 3, 0, 1 ); globalCommentBox = new QCheckBox( this, "globalCommentBox" ); globalCommentBox->setText( trUtf8( "Show STIL section-global comment" ) ); HVSC_DialogDataLayout->addMultiCellWidget( globalCommentBox, 2, 2, 0, 1 ); cancelButton = new QPushButton( this, "cancelButton" ); cancelButton->setText( trUtf8( "Cancel" ) ); cancelButton->setAutoDefault( FALSE ); HVSC_DialogDataLayout->addWidget( cancelButton, 6, 3 ); okButton = new QPushButton( this, "okButton" ); okButton->setText( trUtf8( "OK" ) ); okButton->setDefault( TRUE ); HVSC_DialogDataLayout->addWidget( okButton, 6, 2 ); // signals and slots connections connect( okButton, SIGNAL( clicked() ), this, SLOT( okButtonClicked() ) ); connect( cancelButton, SIGNAL( clicked() ), this, SLOT( cancelButtonClicked() ) ); connect( browseBtn, SIGNAL( clicked() ), this, SLOT( browseButtonClicked() ) ); // tab order setTabOrder( hvscPathLineEdit, browseBtn ); setTabOrder( browseBtn, globalCommentBox ); setTabOrder( globalCommentBox, stilEntryBox ); setTabOrder( stilEntryBox, bugListEntryBox ); setTabOrder( bugListEntryBox, showCurrentSongBtn ); setTabOrder( showCurrentSongBtn, showFileBtn ); setTabOrder( showFileBtn, autoResizeBtn ); setTabOrder( autoResizeBtn, maxHeightLineEdit ); setTabOrder( maxHeightLineEdit, cancelButton ); setTabOrder( cancelButton, okButton ); } /* * Destroys the object and frees any allocated resources */ HVSC_DialogData::~HVSC_DialogData() { // no need to delete child widgets, Qt does it all for us } void HVSC_DialogData::browseButtonClicked() { qWarning( "HVSC_DialogData::browseButtonClicked(): Not implemented yet!" ); } void HVSC_DialogData::cancelButtonClicked() { qWarning( "HVSC_DialogData::cancelButtonClicked(): Not implemented yet!" ); } void HVSC_DialogData::okButtonClicked() { qWarning( "HVSC_DialogData::okButtonClicked(): Not implemented yet!" ); }