/**************************************************************************** ** Form implementation generated from reading ui file 'PlaylistUpdateDialog.ui' ** ** Created: Fri Aug 9 09:45:57 2002 ** by: The User Interface Compiler (uic) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "PlaylistUpdateDialog.h" #include #include #include #include #include #include #include #include /* * Constructs a PlaylistUpdateDialog 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. */ PlaylistUpdateDialog::PlaylistUpdateDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "PlaylistUpdateDialog" ); resize( 350, 244 ); setCaption( trUtf8( "Playlist update" ) ); QWidget* privateLayoutWidget = new QWidget( this, "Layout3" ); privateLayoutWidget->setGeometry( QRect( 10, 16, 331, 217 ) ); Layout3 = new QVBoxLayout( privateLayoutWidget, 0, 6, "Layout3"); DescriptionLabel = new QLabel( privateLayoutWidget, "DescriptionLabel" ); DescriptionLabel->setText( trUtf8( "You are about to update your playlist with possibly\n" "changed credits and parameters from the actual\n" "sidtune files on disk.\n" "What other items would you like to update?" ) ); DescriptionLabel->setTextFormat( QLabel::PlainText ); Layout3->addWidget( DescriptionLabel ); QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Layout3->addItem( spacer ); itemsGroup = new QButtonGroup( privateLayoutWidget, "itemsGroup" ); itemsGroup->setFrameShape( QButtonGroup::NoFrame ); itemsGroup->setTitle( trUtf8( "" ) ); playtimeCheckBox = new QCheckBox( itemsGroup, "playtimeCheckBox" ); playtimeCheckBox->setGeometry( QRect( 10, 0, 305, 20 ) ); playtimeCheckBox->setText( trUtf8( "Playtime from songlength database" ) ); startsongCheckBox = new QCheckBox( itemsGroup, "startsongCheckBox" ); startsongCheckBox->setGeometry( QRect( 10, 25, 309, 21 ) ); startsongCheckBox->setText( trUtf8( "Default starting song" ) ); Layout3->addWidget( itemsGroup ); QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Layout3->addItem( spacer_2 ); Layout13 = new QHBoxLayout( 0, 0, 6, "Layout13"); QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout13->addItem( spacer_3 ); okButton = new QPushButton( privateLayoutWidget, "okButton" ); okButton->setText( trUtf8( "&OK" ) ); okButton->setDefault( TRUE ); Layout13->addWidget( okButton ); QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout13->addItem( spacer_4 ); cancelButton = new QPushButton( privateLayoutWidget, "cancelButton" ); cancelButton->setText( trUtf8( "&Cancel" ) ); Layout13->addWidget( cancelButton ); QSpacerItem* spacer_5 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout13->addItem( spacer_5 ); Layout3->addLayout( Layout13 ); // signals and slots connections connect( okButton, SIGNAL( released() ), this, SLOT( accept() ) ); connect( cancelButton, SIGNAL( released() ), this, SLOT( reject() ) ); // tab order setTabOrder( okButton, cancelButton ); setTabOrder( cancelButton, playtimeCheckBox ); setTabOrder( playtimeCheckBox, startsongCheckBox ); } /* * Destroys the object and frees any allocated resources */ PlaylistUpdateDialog::~PlaylistUpdateDialog() { // no need to delete child widgets, Qt does it all for us } void PlaylistUpdateDialog::newCLKsetting(int) { qWarning( "PlaylistUpdateDialog::newCLKsetting(int): Not implemented yet!" ); } void PlaylistUpdateDialog::newEMUsetting(int) { qWarning( "PlaylistUpdateDialog::newEMUsetting(int): Not implemented yet!" ); } void PlaylistUpdateDialog::newMPUsetting(int) { qWarning( "PlaylistUpdateDialog::newMPUsetting(int): Not implemented yet!" ); }