#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './shortcutcfgbase.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 "shortcutcfgbase.h" #include #include #include #include #include #include #include #include #include #include #include "qkeybutton.h" /* * Constructs a ShortcutsConfigBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ ShortcutsConfigBase::ShortcutsConfigBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "Form1" ); Form1Layout = new QVBoxLayout( this, 11, 6, "Form1Layout"); lstKeys = new QListView( this, "lstKeys" ); lstKeys->addColumn( i18n( "Command" ) ); lstKeys->addColumn( i18n( "Key" ) ); lstKeys->header()->setResizeEnabled( FALSE, lstKeys->header()->count() - 1 ); lstKeys->addColumn( i18n( "Global" ) ); lstKeys->header()->setResizeEnabled( FALSE, lstKeys->header()->count() - 1 ); Form1Layout->addWidget( lstKeys ); lblKey = new QLabel( this, "lblKey" ); Form1Layout->addWidget( lblKey ); Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); edtKey = new QKeyButton( this, "edtKey" ); Layout1->addWidget( edtKey ); btnClear = new QPushButton( this, "btnClear" ); Layout1->addWidget( btnClear ); chkGlobal = new QCheckBox( this, "chkGlobal" ); Layout1->addWidget( chkGlobal ); Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout1->addItem( Spacer2 ); Form1Layout->addLayout( Layout1 ); languageChange(); resize( QSize(309, 180).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ ShortcutsConfigBase::~ShortcutsConfigBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void ShortcutsConfigBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); lstKeys->header()->setLabel( 0, i18n( "Command" ) ); lstKeys->header()->setLabel( 1, i18n( "Key" ) ); lstKeys->header()->setLabel( 2, i18n( "Global" ) ); lblKey->setProperty( "text", QString::null ); btnClear->setProperty( "text", i18n( "&Clear" ) ); chkGlobal->setProperty( "text", i18n( "Global" ) ); } #include "shortcutcfgbase.moc"