#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './mousecfgbase.ui' ** ** Created: Вск Мар 4 15:40:59 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 "mousecfgbase.h" #include #include #include #include #include #include #include #include #include #include /* * 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 ) { 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"