#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './osdconfigbase.ui' ** ** Created: Вск Мар 4 15:40:58 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 "osdconfigbase.h" #include #include #include #include #include #include #include #include /* * Constructs a OSDConfigBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ OSDConfigBase::OSDConfigBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "OSDConfig" ); OSDConfigLayout = new QGridLayout( this, 1, 1, 11, 6, "OSDConfigLayout"); chkMessage = new QCheckBox( this, "chkMessage" ); OSDConfigLayout->addWidget( chkMessage, 0, 0 ); chkStatus = new QCheckBox( this, "chkStatus" ); OSDConfigLayout->addWidget( chkStatus, 1, 0 ); chkStatusOnline = new QCheckBox( this, "chkStatusOnline" ); OSDConfigLayout->addWidget( chkStatusOnline, 1, 1 ); chkStatusAway = new QCheckBox( this, "chkStatusAway" ); OSDConfigLayout->addWidget( chkStatusAway, 2, 1 ); chkStatusNA = new QCheckBox( this, "chkStatusNA" ); OSDConfigLayout->addWidget( chkStatusNA, 3, 1 ); chkStatusDND = new QCheckBox( this, "chkStatusDND" ); OSDConfigLayout->addWidget( chkStatusDND, 4, 1 ); chkStatusOccupied = new QCheckBox( this, "chkStatusOccupied" ); OSDConfigLayout->addWidget( chkStatusOccupied, 5, 1 ); chkStatusFFC = new QCheckBox( this, "chkStatusFFC" ); OSDConfigLayout->addWidget( chkStatusFFC, 6, 1 ); chkStatusOffline = new QCheckBox( this, "chkStatusOffline" ); OSDConfigLayout->addWidget( chkStatusOffline, 7, 1 ); chkTyping = new QCheckBox( this, "chkTyping" ); OSDConfigLayout->addWidget( chkTyping, 8, 0 ); chkMessageContent = new QCheckBox( this, "chkMessageContent" ); OSDConfigLayout->addWidget( chkMessageContent, 9, 0 ); lblLines = new QLabel( this, "lblLines" ); OSDConfigLayout->addWidget( lblLines, 9, 1 ); edtLines = new QSpinBox( this, "edtLines" ); edtLines->setProperty( "minValue", 0 ); OSDConfigLayout->addWidget( edtLines, 9, 2 ); Spacer29 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); OSDConfigLayout->addItem( Spacer29, 9, 2 ); Spacer5 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); OSDConfigLayout->addItem( Spacer5, 10, 0 ); languageChange(); resize( QSize(289, 188).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ OSDConfigBase::~OSDConfigBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void OSDConfigBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); chkMessage->setProperty( "text", i18n( "Enable &messages notification" ) ); chkStatus->setProperty( "text", i18n( "Enable &status notification" ) ); chkStatusOnline->setProperty( "text", i18n( "Online" ) ); chkStatusAway->setProperty( "text", i18n( "Away" ) ); chkStatusNA->setProperty( "text", i18n( "N/A" ) ); chkStatusDND->setProperty( "text", i18n( "Do not Disturb" ) ); chkStatusOccupied->setProperty( "text", i18n( "Occupied" ) ); chkStatusFFC->setProperty( "text", i18n( "Free for chat" ) ); chkStatusOffline->setProperty( "text", i18n( "Offline" ) ); chkTyping->setProperty( "text", i18n( "Enable &typing notification" ) ); chkMessageContent->setProperty( "text", i18n( "Show message &content" ) ); lblLines->setProperty( "text", i18n( "Show lines of content:" ) ); edtLines->setProperty( "specialValueText", i18n( "All" ) ); } #include "osdconfigbase.moc"