#include "simapi.h"
/****************************************************************************
** Form implementation generated from reading ui file './soundconfigbase.ui'
**
** Created: вт мар 30 18:15:34 2004
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.2   edited Dec 19 11:45 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "soundconfigbase.h"

#include <qvariant.h>
#include <qwidget.h>
#include <qcheckbox.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

#include "editfile.h"
static const char* const img0_soundconfigbase[] = { 
"22 22 2 1",
". c None",
"# c #a4c610",
"........######........",
".....###########......",
"....##############....",
"...################...",
"..######......######..",
"..#####........#####..",
".#####.......#..#####.",
".####.......###..####.",
"####.......#####..####",
"####......#####...####",
"####....#######...####",
"####....######....####",
"####...########...####",
".####.##########..####",
".####..####.#########.",
".#####..##...########.",
"..#####.......#######.",
"..######......######..",
"...###################",
"....##################",
"......###########.###.",
"........######.....#.."};

static const char* const img1_soundconfigbase[] = { 
"22 22 2 1",
". c None",
"# c #a1c410",
"........######........",
".....###########......",
"....##############....",
"...################...",
"..######......######..",
"..#####........#####..",
".#####.......#..#####.",
".####.......###..####.",
"####.......#####..####",
"####......#####...####",
"####....#######...####",
"####....######....####",
"####...########...####",
".####.##########..####",
".####..####.#########.",
".#####..##...########.",
"..#####.......#######.",
"..######......######..",
"...###################",
"....##################",
"......###########.###.",
"........######.....#.."};


/* 
 *  Constructs a SoundConfigBase as a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 */
SoundConfigBase::SoundConfigBase( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl ),
      image0( (const char **) img0_soundconfigbase ),
      image1( (const char **) img1_soundconfigbase )
{
    if ( !name )
	setName( "Form1" );
    Form1Layout = new QGridLayout( this, 1, 1, 11, 6, "Form1Layout"); 

    chkArts = new QCheckBox( this, "chkArts" );

    Form1Layout->addMultiCellWidget( chkArts, 0, 0, 0, 1 );

    lblPlayer = new QLabel( this, "lblPlayer" );

    Form1Layout->addMultiCellWidget( lblPlayer, 1, 1, 0, 1 );

    edtPlayer = new QLineEdit( this, "edtPlayer" );

    Form1Layout->addMultiCellWidget( edtPlayer, 2, 2, 0, 1 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    Form1Layout->addItem( spacer, 7, 1 );

    TextLabel1 = new QLabel( this, "TextLabel1" );
    TextLabel1->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    Form1Layout->addWidget( TextLabel1, 6, 0 );

    TextLabel1_2 = new QLabel( this, "TextLabel1_2" );
    TextLabel1_2->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    Form1Layout->addWidget( TextLabel1_2, 5, 0 );

    TextLabel2 = new QLabel( this, "TextLabel2" );
    TextLabel2->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    Form1Layout->addWidget( TextLabel2, 4, 0 );

    edtFileDone = new EditSound( this, "edtFileDone" );

    Form1Layout->addWidget( edtFileDone, 6, 1 );

    edtSent = new EditSound( this, "edtSent" );

    Form1Layout->addWidget( edtSent, 5, 1 );

    edtStartup = new EditSound( this, "edtStartup" );

    Form1Layout->addWidget( edtStartup, 4, 1 );
    languageChange();
    resize( QSize(413, 204).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( chkArts, edtPlayer );
}

/*
 *  Destroys the object and frees any allocated resources
 */
SoundConfigBase::~SoundConfigBase()
{
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void SoundConfigBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    chkArts->setProperty( "text", i18n( "&Use artsd" ) );
    lblPlayer->setProperty( "text", i18n( "Player:" ) );
    TextLabel1->setProperty( "text", i18n( "File transfer done:" ) );
    TextLabel1_2->setProperty( "text", i18n( "Message sent:" ) );
    TextLabel2->setProperty( "text", i18n( "Sound on startup:" ) );
}

#include "soundconfigbase.moc"
