#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './soundconfigbase.ui' ** ** Created: Вск Мар 4 15:41:00 2007 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.7 edited Aug 31 2005 $) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "soundconfigbase.h" #include #include #include #include #include #include #include #include #include "editfile.h" /* * 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 ) { 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 ); Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Form1Layout->addItem( Spacer2, 7, 1 ); TextLabel1 = new QLabel( this, "TextLabel1" ); TextLabel1->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); Form1Layout->addWidget( TextLabel1, 6, 0 ); TextLabel1_2 = new QLabel( this, "TextLabel1_2" ); TextLabel1_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); Form1Layout->addWidget( TextLabel1_2, 5, 0 ); TextLabel2 = new QLabel( this, "TextLabel2" ); TextLabel2->setAlignment( 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(409, 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() { setCaption( i18n( "Form1" ) ); chkArts->setText( i18n( "&Use KDE sound settings" ) ); QToolTip::add( chkArts, i18n( "Use player defined in system notify settings in kcontrol" ) ); lblPlayer->setText( i18n( "Player:" ) ); TextLabel1->setText( i18n( "File transfer done:" ) ); TextLabel1_2->setText( i18n( "Message sent:" ) ); TextLabel2->setText( i18n( "Sound on startup:" ) ); } #include "soundconfigbase.moc"