#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './msgjournalbase.ui' ** ** Created: Вск Мар 4 15:40:56 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 "msgjournalbase.h" #include #include #include #include #include #include #include #include #include /* * Constructs a MsgJournalBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ MsgJournalBase::MsgJournalBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "MsgJournalBase" ); setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)1, 0, 0, sizePolicy().hasHeightForWidth() ) ); MsgJournalBaseLayout = new QVBoxLayout( this, 11, 6, "MsgJournalBaseLayout"); Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); TextLabel1 = new QLabel( this, "TextLabel1" ); Layout1->addWidget( TextLabel1 ); edtSubj = new QLineEdit( this, "edtSubj" ); Layout1->addWidget( edtSubj ); MsgJournalBaseLayout->addLayout( Layout1 ); Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); TextLabel2 = new QLabel( this, "TextLabel2" ); Layout3->addWidget( TextLabel2 ); cmbSecurity = new QComboBox( FALSE, this, "cmbSecurity" ); Layout3->addWidget( cmbSecurity ); TextLabel3 = new QLabel( this, "TextLabel3" ); Layout3->addWidget( TextLabel3 ); cmbMood = new QComboBox( FALSE, this, "cmbMood" ); cmbMood->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, cmbMood->sizePolicy().hasHeightForWidth() ) ); Layout3->addWidget( cmbMood ); cmbComment = new QComboBox( FALSE, this, "cmbComment" ); Layout3->addWidget( cmbComment ); MsgJournalBaseLayout->addLayout( Layout3 ); languageChange(); resize( QSize(412, 81).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ MsgJournalBase::~MsgJournalBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void MsgJournalBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); TextLabel1->setProperty( "text", i18n( "Subject:" ) ); TextLabel2->setProperty( "text", i18n( "Security:" ) ); cmbSecurity->clear(); cmbSecurity->insertItem( i18n( "Public" ) ); cmbSecurity->insertItem( i18n( "Friends-Only" ) ); cmbSecurity->insertItem( i18n( "Private" ) ); TextLabel3->setProperty( "text", i18n( "Mood:" ) ); cmbMood->clear(); cmbMood->insertItem( QString::null ); cmbComment->clear(); cmbComment->insertItem( i18n( "Enable comments" ) ); cmbComment->insertItem( i18n( "No email comments" ) ); cmbComment->insertItem( i18n( "Disable comments" ) ); } #include "msgjournalbase.moc"