#include "simapi.h"
/****************************************************************************
** Form implementation generated from reading ui file './mousecfgbase.ui'
**
** Created: вт мар 30 17:54:48 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 "mousecfgbase.h"

#include <qvariant.h>
#include <qwidget.h>
#include <qheader.h>
#include <qlistview.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>

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


/* 
 *  Constructs a MouseConfigBase as a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 */
MouseConfigBase::MouseConfigBase( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl ),
      image0( (const char **) img0_mousecfgbase )
{
    if ( !name )
	setName( "MouseCfg" );
    MouseCfgLayout = new QVBoxLayout( this, 11, 6, "MouseCfgLayout"); 

    lstCmd = new QListView( this, "lstCmd" );
    lstCmd->addColumn( i18n( "Command" ) );
    lstCmd->addColumn( i18n( "Button" ) );
    MouseCfgLayout->addWidget( lstCmd );

    lblCmd = new QLabel( this, "lblCmd" );
    MouseCfgLayout->addWidget( lblCmd );

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

    cmbButton = new QComboBox( FALSE, this, "cmbButton" );
    cmbButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, cmbButton->sizePolicy().hasHeightForWidth() ) );
    Layout2->addWidget( cmbButton );

    chkAlt = new QCheckBox( this, "chkAlt" );
    Layout2->addWidget( chkAlt );

    chkCtrl = new QCheckBox( this, "chkCtrl" );
    Layout2->addWidget( chkCtrl );

    chkShift = new QCheckBox( this, "chkShift" );
    Layout2->addWidget( chkShift );
    MouseCfgLayout->addLayout( Layout2 );
    languageChange();
    resize( QSize(354, 265).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

/*
 *  Destroys the object and frees any allocated resources
 */
MouseConfigBase::~MouseConfigBase()
{
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void MouseConfigBase::languageChange()
{
    setCaption( i18n( "Form1" ) );
    lstCmd->header()->setLabel( 0, i18n( "Command" ) );
    lstCmd->header()->setLabel( 1, i18n( "Button" ) );
    lblCmd->setText( QString::null );
    chkAlt->setText( i18n( "Alt" ) );
    chkCtrl->setText( i18n( "Ctrl" ) );
    chkShift->setText( i18n( "Shift" ) );
}

#include "mousecfgbase.moc"
