#include "simapi.h"
/****************************************************************************
** Form implementation generated from reading ui file './userviewcfgbase.ui'
**
** Created: вт мар 30 16:41:05 2004
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.2   edited Dec 19 11:45 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "userviewcfgbase.h"

#include <qvariant.h>
#include <qwidget.h>
#include <qpushbutton.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qcombobox.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

#include "qcolorbutton.h"
static const char* const img0_userviewcfgbase[] = { 
"22 22 2 1",
". c None",
"# c #a4c610",
"........######........",
".....###########......",
"....##############....",
"...################...",
"..######......######..",
"..#####........#####..",
".#####.......#..#####.",
".####.......###..####.",
"####.......#####..####",
"####......#####...####",
"####....#######...####",
"####....######....####",
"####...########...####",
".####.##########..####",
".####..####.#########.",
".#####..##...########.",
"..#####.......#######.",
"..######......######..",
"...###################",
"....##################",
"......###########.###.",
"........######.....#.."};

static const char* const img1_userviewcfgbase[] = { 
"22 22 2 1",
". c None",
"# c #a1c410",
"........######........",
".....###########......",
"....##############....",
"...################...",
"..######......######..",
"..#####........#####..",
".#####.......#..#####.",
".####.......###..####.",
"####.......#####..####",
"####......#####...####",
"####....#######...####",
"####....######....####",
"####...########...####",
".####.##########..####",
".####..####.#########.",
".#####..##...########.",
"..#####.......#######.",
"..######......######..",
"...###################",
"....##################",
"......###########.###.",
"........######.....#.."};


/* 
 *  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 ),
      image0( (const char **) img0_userviewcfgbase ),
      image1( (const char **) img1_userviewcfgbase )
{
    if ( !name )
	setName( "ContactList" );
    ContactListLayout = new QGridLayout( this, 1, 1, 11, 6, "ContactListLayout"); 
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    ContactListLayout->addItem( spacer, 7, 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->setProperty( "sizePolicy", 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->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, cmbSort2->sizePolicy().hasHeightForWidth() ) );

    GroupBox1Layout->addWidget( cmbSort2, 1, 1 );

    cmbSort3 = new QComboBox( FALSE, GroupBox1, "cmbSort3" );
    cmbSort3->setProperty( "sizePolicy", 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, 6, 6, 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->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, lblAuth->sizePolicy().hasHeightForWidth() ) );
    Layout6->addWidget( lblAuth );

    ContactListLayout->addMultiCellLayout( Layout6, 3, 3, 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->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, lblVisible->sizePolicy().hasHeightForWidth() ) );
    Layout8->addWidget( lblVisible );

    ContactListLayout->addMultiCellLayout( Layout8, 4, 4, 0, 1 );

    Layout10 = new QHBoxLayout( 0, 0, 6, "Layout10"); 

    Layout9 = new QHBoxLayout( 0, 0, 0, "Layout9"); 

    btnInvisible1 = new QPushButton( this, "btnInvisible1" );
    Layout9->addWidget( btnInvisible1 );

    btnInvisible2 = new QPushButton( this, "btnInvisible2" );
    Layout9->addWidget( btnInvisible2 );

    btnInvisible3 = new QPushButton( this, "btnInvisible3" );
    Layout9->addWidget( btnInvisible3 );
    Layout10->addLayout( Layout9 );

    lblInvisible = new QLabel( this, "lblInvisible" );
    lblInvisible->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, lblInvisible->sizePolicy().hasHeightForWidth() ) );
    Layout10->addWidget( lblInvisible );

    ContactListLayout->addMultiCellLayout( Layout10, 5, 5, 0, 1 );

    Layout9_2 = new QGridLayout( 0, 1, 1, 0, 6, "Layout9_2"); 

    btnGroup = new QColorButton( this, "btnGroup" );

    Layout9_2->addWidget( btnGroup, 3, 3 );

    lblGroup = new QLabel( this, "lblGroup" );
    lblGroup->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    Layout9_2->addWidget( lblGroup, 3, 2 );

    lblDND = new QLabel( this, "lblDND" );
    lblDND->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    Layout9_2->addWidget( lblDND, 2, 2 );

    btnOffline = new QColorButton( this, "btnOffline" );

    Layout9_2->addWidget( btnOffline, 2, 1 );

    btnNA = new QColorButton( this, "btnNA" );

    Layout9_2->addWidget( btnNA, 1, 3 );

    lblOffline = new QLabel( this, "lblOffline" );
    lblOffline->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    Layout9_2->addWidget( lblOffline, 2, 0 );

    lblOnline = new QLabel( this, "lblOnline" );
    lblOnline->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    Layout9_2->addWidget( lblOnline, 1, 0 );

    btnAway = new QColorButton( this, "btnAway" );

    Layout9_2->addWidget( btnAway, 3, 1 );

    lblAway = new QLabel( this, "lblAway" );
    lblAway->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    Layout9_2->addWidget( lblAway, 3, 0 );

    btnDND = new QColorButton( this, "btnDND" );

    Layout9_2->addWidget( btnDND, 2, 3 );

    lblNA = new QLabel( this, "lblNA" );
    lblNA->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    Layout9_2->addWidget( lblNA, 1, 2 );

    lblColors = new QLabel( this, "lblColors" );

    Layout9_2->addMultiCellWidget( lblColors, 0, 0, 0, 3 );

    btnOnline = new QColorButton( this, "btnOnline" );

    Layout9_2->addWidget( btnOnline, 1, 1 );

    ContactListLayout->addMultiCellLayout( Layout9_2, 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 );
    languageChange();
    resize( QSize(411, 368).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( chkDblClick, chkSysColors );
    setTabOrder( chkSysColors, chkSmallFont );
    setTabOrder( chkSmallFont, chkGroupSeparator );
    setTabOrder( chkGroupSeparator, 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()
{
    setProperty( "caption", i18n( "Form2" ) );
    GroupBox1->setProperty( "title", i18n( "Sorting" ) );
    TextLabel1->setProperty( "text", i18n( "1st:" ) );
    TextLabel2->setProperty( "text", i18n( "2nd:" ) );
    TextLabel3->setProperty( "text", i18n( "3rd:" ) );
    btnAuth1->setProperty( "text", QString::null );
    btnAuth2->setProperty( "text", QString::null );
    btnAuth3->setProperty( "text", QString::null );
    lblAuth->setProperty( "text", i18n( "Awaiting authorization" ) );
    btnVisible1->setProperty( "text", QString::null );
    btnVisible2->setProperty( "text", QString::null );
    btnVisible3->setProperty( "text", QString::null );
    lblVisible->setProperty( "text", i18n( "Visible" ) );
    btnInvisible1->setProperty( "text", QString::null );
    btnInvisible2->setProperty( "text", QString::null );
    btnInvisible3->setProperty( "text", QString::null );
    lblInvisible->setProperty( "text", i18n( "Invisible" ) );
    lblGroup->setProperty( "text", i18n( "Groups" ) );
    lblDND->setProperty( "text", i18n( "Do not distrub" ) );
    lblOffline->setProperty( "text", i18n( "Offline" ) );
    lblOnline->setProperty( "text", i18n( "Online:" ) );
    lblAway->setProperty( "text", i18n( "Away" ) );
    lblNA->setProperty( "text", i18n( "N/A" ) );
    lblColors->setProperty( "text", i18n( "Colors:" ) );
    chkDblClick->setProperty( "text", i18n( "Use &double click" ) );
    chkSysColors->setProperty( "text", i18n( "Use system &colors" ) );
    chkSmallFont->setProperty( "text", i18n( "Use small &font for group" ) );
    chkGroupSeparator->setProperty( "text", i18n( "Show group &separator" ) );
}

#include "userviewcfgbase.moc"
