/****************************************************************************
** Form implementation generated from reading ui file 'HVSC_Dialog.ui'
**
** Created: Wed Oct 11 01:31:51 2000
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "HVSC_DialogData.h"

#include <qbuttongroup.h>
#include <qcheckbox.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  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( 409, 218 ); 
    setCaption( tr( "HVSC settings"  ) );

    browseBtn = new QPushButton( this, "browseBtn" );
    browseBtn->setGeometry( QRect( 320, 30, 70, 32 ) ); 
    browseBtn->setText( tr( "Browse"  ) );
    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 );
    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 );
    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 );
    pal.setDisabled( cg );
    browseBtn->setPalette( pal );

    TextLabel1 = new QLabel( this, "TextLabel1" );
    TextLabel1->setGeometry( QRect( 10, 10, 290, 20 ) ); 
    TextLabel1->setText( tr( "High Voltage SID Collection root directory:"  ) );

    hvscPathLineEdit = new QLineEdit( this, "hvscPathLineEdit" );
    hvscPathLineEdit->setGeometry( QRect( 10, 32, 290, 30 ) ); 
    hvscPathLineEdit->setMaxLength( 4096 );

    TextLabel2 = new QLabel( this, "TextLabel2" );
    TextLabel2->setGeometry( QRect( 10, 190, 160, 20 ) ); 
    TextLabel2->setText( tr( "Maximum STIL View height:"  ) );

    maxHeightLineEdit = new QLineEdit( this, "maxHeightLineEdit" );
    maxHeightLineEdit->setGeometry( QRect( 180, 190, 40, 20 ) ); 
    maxHeightLineEdit->setMaxLength( 16 );
    maxHeightLineEdit->setAcceptDrops( FALSE );

    ButtonGroup1 = new QButtonGroup( this, "ButtonGroup1" );
    ButtonGroup1->setGeometry( QRect( 260, 84, 140, 70 ) ); 
    ButtonGroup1->setTitle( tr( "Show STIL entries for"  ) );
    ButtonGroup1->setExclusive( TRUE );

    showFileBtn = new QRadioButton( ButtonGroup1, "showFileBtn" );
    showFileBtn->setGeometry( QRect( 10, 40, 100, 21 ) ); 
    showFileBtn->setText( tr( "current file"  ) );

    showCurrentSongBtn = new QRadioButton( ButtonGroup1, "showCurrentSongBtn" );
    showCurrentSongBtn->setGeometry( QRect( 10, 21, 100, 21 ) ); 
    showCurrentSongBtn->setText( tr( "current song"  ) );

    autoResizeBtn = new QCheckBox( this, "autoResizeBtn" );
    autoResizeBtn->setGeometry( QRect( 20, 160, 211, 21 ) ); 
    autoResizeBtn->setText( tr( "Autoresize STIL View window"  ) );

    bugListEntryBox = new QCheckBox( this, "bugListEntryBox" );
    bugListEntryBox->setGeometry( QRect( 20, 120, 230, 21 ) ); 
    bugListEntryBox->setText( tr( "Show BUGlist entries"  ) );

    stilEntryBox = new QCheckBox( this, "stilEntryBox" );
    stilEntryBox->setGeometry( QRect( 20, 100, 230, 21 ) ); 
    stilEntryBox->setText( tr( "Show STIL file-specific entries"  ) );

    globalCommentBox = new QCheckBox( this, "globalCommentBox" );
    globalCommentBox->setGeometry( QRect( 20, 80, 230, 21 ) ); 
    globalCommentBox->setText( tr( "Show STIL section-global comment"  ) );

    cancelButton = new QPushButton( this, "cancelButton" );
    cancelButton->setGeometry( QRect( 310, 180, 90, 30 ) ); 
    cancelButton->setText( tr( "Cancel"  ) );
    cancelButton->setAutoDefault( FALSE );

    okButton = new QPushButton( this, "okButton" );
    okButton->setGeometry( QRect( 250, 180, 50, 30 ) ); 
    okButton->setText( tr( "OK"  ) );
    okButton->setDefault( TRUE );

    // 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!" );
}

