#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './autoawaycfgbase.ui' ** ** Created: Вск Мар 4 15:40:43 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 "autoawaycfgbase.h" #include #include #include #include #include #include #include #include /* * Constructs a AutoAwayConfigBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ AutoAwayConfigBase::AutoAwayConfigBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "Auto_away" ); Auto_awayLayout = new QGridLayout( this, 1, 1, 11, 6, "Auto_awayLayout"); chkAway = new QCheckBox( this, "chkAway" ); Auto_awayLayout->addWidget( chkAway, 0, 0 ); spnAway = new QSpinBox( this, "spnAway" ); spnAway->setProperty( "minValue", 1 ); Auto_awayLayout->addWidget( spnAway, 0, 1 ); TextLabel1 = new QLabel( this, "TextLabel1" ); Auto_awayLayout->addWidget( TextLabel1, 0, 2 ); TextLabel2 = new QLabel( this, "TextLabel2" ); Auto_awayLayout->addWidget( TextLabel2, 1, 2 ); TextLabel3 = new QLabel( this, "TextLabel3" ); Auto_awayLayout->addWidget( TextLabel3, 2, 2 ); spnNA = new QSpinBox( this, "spnNA" ); spnNA->setProperty( "minValue", 1 ); Auto_awayLayout->addWidget( spnNA, 1, 1 ); chkNA = new QCheckBox( this, "chkNA" ); Auto_awayLayout->addWidget( chkNA, 1, 0 ); spnOff = new QSpinBox( this, "spnOff" ); spnOff->setProperty( "minValue", 1 ); Auto_awayLayout->addWidget( spnOff, 2, 1 ); chkOff = new QCheckBox( this, "chkOff" ); Auto_awayLayout->addWidget( chkOff, 2, 0 ); chkAlert = new QCheckBox( this, "chkAlert" ); Auto_awayLayout->addMultiCellWidget( chkAlert, 3, 3, 0, 2 ); Spacer14 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Auto_awayLayout->addItem( Spacer14, 3, 0 ); languageChange(); resize( QSize(378, 158).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // tab order setTabOrder( chkAway, spnAway ); setTabOrder( spnAway, chkNA ); setTabOrder( chkNA, spnNA ); setTabOrder( spnNA, chkAlert ); } /* * Destroys the object and frees any allocated resources */ AutoAwayConfigBase::~AutoAwayConfigBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void AutoAwayConfigBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); chkAway->setProperty( "text", i18n( "Set \"Away\" status after" ) ); TextLabel1->setProperty( "text", i18n( "minutes not using computer" ) ); TextLabel2->setProperty( "text", i18n( "minutes of \"Away\"" ) ); TextLabel3->setProperty( "text", i18n( "minutes of \"N/A\"" ) ); chkNA->setProperty( "text", i18n( "Set \"N/A\" status after" ) ); chkOff->setProperty( "text", i18n( "Set \"Offline\" status after" ) ); chkAlert->setProperty( "text", i18n( "Disable online alert in \"Away\", \"N/A\", \"DND\" and \"Occupied\" List" ) ); } #include "autoawaycfgbase.moc"