#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './userviewcfgbase.ui' ** ** Created: Вск Мар 4 15:40:35 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 "userviewcfgbase.h" #include #include #include #include #include #include #include #include #include #include #include "qcolorbutton.h" /* * Constructs a UserViewConfigBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ UserViewConfigBase::UserViewConfigBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "ContactList" ); ContactListLayout = new QGridLayout( this, 1, 1, 11, 6, "ContactListLayout"); Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); ContactListLayout->addItem( Spacer1, 0, 0 ); Layout9 = new QGridLayout( 0, 1, 1, 0, 6, "Layout9"); btnGroup = new QColorButton( this, "btnGroup" ); Layout9->addWidget( btnGroup, 3, 3 ); lblGroup = new QLabel( this, "lblGroup" ); lblGroup->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); Layout9->addWidget( lblGroup, 3, 2 ); lblDND = new QLabel( this, "lblDND" ); lblDND->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); Layout9->addWidget( lblDND, 2, 2 ); btnOffline = new QColorButton( this, "btnOffline" ); Layout9->addWidget( btnOffline, 2, 1 ); btnNA = new QColorButton( this, "btnNA" ); Layout9->addWidget( btnNA, 1, 3 ); lblOffline = new QLabel( this, "lblOffline" ); lblOffline->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); Layout9->addWidget( lblOffline, 2, 0 ); lblOnline = new QLabel( this, "lblOnline" ); lblOnline->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); Layout9->addWidget( lblOnline, 1, 0 ); btnAway = new QColorButton( this, "btnAway" ); Layout9->addWidget( btnAway, 3, 1 ); lblAway = new QLabel( this, "lblAway" ); lblAway->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); Layout9->addWidget( lblAway, 3, 0 ); btnDND = new QColorButton( this, "btnDND" ); Layout9->addWidget( btnDND, 2, 3 ); lblNA = new QLabel( this, "lblNA" ); lblNA->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); Layout9->addWidget( lblNA, 1, 2 ); lblColors = new QLabel( this, "lblColors" ); Layout9->addMultiCellWidget( lblColors, 0, 0, 0, 3 ); btnOnline = new QColorButton( this, "btnOnline" ); Layout9->addWidget( btnOnline, 1, 1 ); ContactListLayout->addMultiCellLayout( Layout9, 1, 1, 0, 1 ); chkDblClick = new QCheckBox( this, "chkDblClick" ); ContactListLayout->addWidget( chkDblClick, 0, 0 ); chkSysColors = new QCheckBox( this, "chkSysColors" ); ContactListLayout->addWidget( chkSysColors, 0, 1 ); chkSmallFont = new QCheckBox( this, "chkSmallFont" ); ContactListLayout->addWidget( chkSmallFont, 2, 0 ); chkGroupSeparator = new QCheckBox( this, "chkGroupSeparator" ); ContactListLayout->addWidget( chkGroupSeparator, 2, 1 ); GroupBox1 = new QGroupBox( this, "GroupBox1" ); GroupBox1->setColumnLayout(0, Qt::Vertical ); GroupBox1->layout()->setSpacing( 6 ); GroupBox1->layout()->setMargin( 11 ); GroupBox1Layout = new QGridLayout( GroupBox1->layout() ); GroupBox1Layout->setAlignment( Qt::AlignTop ); TextLabel1 = new QLabel( GroupBox1, "TextLabel1" ); GroupBox1Layout->addWidget( TextLabel1, 0, 0 ); cmbSort1 = new QComboBox( FALSE, GroupBox1, "cmbSort1" ); cmbSort1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, cmbSort1->sizePolicy().hasHeightForWidth() ) ); GroupBox1Layout->addWidget( cmbSort1, 0, 1 ); TextLabel2 = new QLabel( GroupBox1, "TextLabel2" ); GroupBox1Layout->addWidget( TextLabel2, 1, 0 ); cmbSort2 = new QComboBox( FALSE, GroupBox1, "cmbSort2" ); cmbSort2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, cmbSort2->sizePolicy().hasHeightForWidth() ) ); GroupBox1Layout->addWidget( cmbSort2, 1, 1 ); cmbSort3 = new QComboBox( FALSE, GroupBox1, "cmbSort3" ); cmbSort3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, cmbSort3->sizePolicy().hasHeightForWidth() ) ); GroupBox1Layout->addWidget( cmbSort3, 2, 1 ); TextLabel3 = new QLabel( GroupBox1, "TextLabel3" ); GroupBox1Layout->addWidget( TextLabel3, 2, 0 ); ContactListLayout->addMultiCellWidget( GroupBox1, 7, 7, 0, 1 ); Layout10 = new QHBoxLayout( 0, 0, 6, "Layout10"); Layout9_2 = new QHBoxLayout( 0, 0, 0, "Layout9_2"); btnInvisible1 = new QPushButton( this, "btnInvisible1" ); Layout9_2->addWidget( btnInvisible1 ); btnInvisible2 = new QPushButton( this, "btnInvisible2" ); Layout9_2->addWidget( btnInvisible2 ); btnInvisible3 = new QPushButton( this, "btnInvisible3" ); Layout9_2->addWidget( btnInvisible3 ); Layout10->addLayout( Layout9_2 ); lblInvisible = new QLabel( this, "lblInvisible" ); lblInvisible->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, lblInvisible->sizePolicy().hasHeightForWidth() ) ); Layout10->addWidget( lblInvisible ); ContactListLayout->addMultiCellLayout( Layout10, 6, 6, 0, 1 ); Layout8 = new QHBoxLayout( 0, 0, 6, "Layout8"); Layout7 = new QHBoxLayout( 0, 0, 0, "Layout7"); btnVisible1 = new QPushButton( this, "btnVisible1" ); Layout7->addWidget( btnVisible1 ); btnVisible2 = new QPushButton( this, "btnVisible2" ); Layout7->addWidget( btnVisible2 ); btnVisible3 = new QPushButton( this, "btnVisible3" ); Layout7->addWidget( btnVisible3 ); Layout8->addLayout( Layout7 ); lblVisible = new QLabel( this, "lblVisible" ); lblVisible->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, lblVisible->sizePolicy().hasHeightForWidth() ) ); Layout8->addWidget( lblVisible ); ContactListLayout->addMultiCellLayout( Layout8, 5, 5, 0, 1 ); Layout6 = new QHBoxLayout( 0, 0, 6, "Layout6"); Layout5 = new QHBoxLayout( 0, 0, 0, "Layout5"); btnAuth1 = new QPushButton( this, "btnAuth1" ); Layout5->addWidget( btnAuth1 ); btnAuth2 = new QPushButton( this, "btnAuth2" ); Layout5->addWidget( btnAuth2 ); btnAuth3 = new QPushButton( this, "btnAuth3" ); Layout5->addWidget( btnAuth3 ); Layout6->addLayout( Layout5 ); lblAuth = new QLabel( this, "lblAuth" ); lblAuth->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, lblAuth->sizePolicy().hasHeightForWidth() ) ); Layout6->addWidget( lblAuth ); ContactListLayout->addMultiCellLayout( Layout6, 4, 4, 0, 1 ); chkScroll = new QCheckBox( this, "chkScroll" ); ContactListLayout->addMultiCellWidget( chkScroll, 3, 3, 0, 1 ); languageChange(); resize( QSize(427, 395).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // tab order setTabOrder( chkDblClick, chkSysColors ); setTabOrder( chkSysColors, chkSmallFont ); setTabOrder( chkSmallFont, chkGroupSeparator ); setTabOrder( chkGroupSeparator, chkScroll ); setTabOrder( chkScroll, btnAuth1 ); setTabOrder( btnAuth1, btnAuth2 ); setTabOrder( btnAuth2, btnAuth3 ); setTabOrder( btnAuth3, btnVisible1 ); setTabOrder( btnVisible1, btnVisible2 ); setTabOrder( btnVisible2, btnVisible3 ); setTabOrder( btnVisible3, btnInvisible1 ); setTabOrder( btnInvisible1, btnInvisible2 ); setTabOrder( btnInvisible2, btnInvisible3 ); setTabOrder( btnInvisible3, cmbSort1 ); setTabOrder( cmbSort1, cmbSort2 ); setTabOrder( cmbSort2, cmbSort3 ); } /* * Destroys the object and frees any allocated resources */ UserViewConfigBase::~UserViewConfigBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void UserViewConfigBase::languageChange() { setCaption( i18n( "Form2" ) ); lblGroup->setText( i18n( "Groups" ) ); lblDND->setText( i18n( "Do not distrub" ) ); lblOffline->setText( i18n( "Offline" ) ); lblOnline->setText( i18n( "Online:" ) ); lblAway->setText( i18n( "Away" ) ); lblNA->setText( i18n( "N/A" ) ); lblColors->setText( i18n( "Colors:" ) ); chkDblClick->setText( i18n( "Use &double click" ) ); chkSysColors->setText( i18n( "Use system &colors" ) ); chkSmallFont->setText( i18n( "Use small &font for group" ) ); chkGroupSeparator->setText( i18n( "Show group &separator" ) ); GroupBox1->setTitle( i18n( "Sorting" ) ); TextLabel1->setText( i18n( "1st:" ) ); TextLabel2->setText( i18n( "2nd:" ) ); TextLabel3->setText( i18n( "3rd:" ) ); btnInvisible1->setText( QString::null ); btnInvisible2->setText( QString::null ); btnInvisible3->setText( QString::null ); lblInvisible->setText( i18n( "Invisible" ) ); btnVisible1->setText( QString::null ); btnVisible2->setText( QString::null ); btnVisible3->setText( QString::null ); lblVisible->setText( i18n( "Visible" ) ); btnAuth1->setText( QString::null ); btnAuth2->setText( QString::null ); btnAuth3->setText( QString::null ); lblAuth->setText( i18n( "Awaiting authorization" ) ); chkScroll->setText( i18n( "No show scroller" ) ); } #include "userviewcfgbase.moc"