#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './dockcfgbase.ui' ** ** Created: Вск Мар 4 15:40:44 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 "dockcfgbase.h" #include #include #include #include #include #include #include #include #include /* * Constructs a DockCfgBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ DockCfgBase::DockCfgBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setProperty( "name", "Form1" ); Form1Layout = new QVBoxLayout( this, 11, 6, "Form1Layout"); Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); chkAutoHide = new QCheckBox( this, "chkAutoHide" ); Layout1->addWidget( chkAutoHide ); spnAutoHide = new QSpinBox( this, "spnAutoHide" ); spnAutoHide->setProperty( "maxValue", 999 ); Layout1->addWidget( spnAutoHide ); TextLabel1 = new QLabel( this, "TextLabel1" ); Layout1->addWidget( TextLabel1 ); Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout1->addItem( Spacer2 ); Form1Layout->addLayout( Layout1 ); Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); TextLabel1_2 = new QLabel( this, "TextLabel1_2" ); Layout2->addWidget( TextLabel1_2 ); spn_desk = new QSpinBox( this, "spn_desk" ); spn_desk->setProperty( "maxValue", 999 ); spn_desk->setProperty( "minValue", 0 ); spn_desk->setProperty( "value", 0 ); Layout2->addWidget( spn_desk ); Spacer3_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout2->addItem( Spacer3_2 ); Form1Layout->addLayout( Layout2 ); Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout3->addItem( Spacer3 ); btnCustomize = new QPushButton( this, "btnCustomize" ); Layout3->addWidget( btnCustomize ); Form1Layout->addLayout( Layout3 ); Spacer11 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Form1Layout->addItem( Spacer11 ); languageChange(); resize( QSize(313, 138).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ DockCfgBase::~DockCfgBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void DockCfgBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); chkAutoHide->setProperty( "text", i18n( "Hide main window after" ) ); TextLabel1->setProperty( "text", i18n( "seconds inactive" ) ); TextLabel1_2->setProperty( "text", i18n( "Show Mainwin on desktop" ) ); spn_desk->setProperty( "specialValueText", i18n( "current" ) ); btnCustomize->setProperty( "text", i18n( "&Customize dock menu" ) ); } #include "dockcfgbase.moc"