#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './transparentcfgbase.ui' ** ** Created: Вск Мар 4 15:41:07 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 "transparentcfgbase.h" #include #include #include #include #include #include #include #include /* * Constructs a TransparentCfgBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ TransparentCfgBase::TransparentCfgBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "Form1" ); Form1Layout = new QVBoxLayout( this, 11, 6, "Form1Layout"); TextLabel1 = new QLabel( this, "TextLabel1" ); TextLabel1->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) ); TextLabel1->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignLeft ) ); Form1Layout->addWidget( TextLabel1 ); sldTransparency = new QSlider( this, "sldTransparency" ); sldTransparency->setProperty( "maxValue", 100 ); sldTransparency->setProperty( "lineStep", 5 ); sldTransparency->setProperty( "pageStep", 20 ); sldTransparency->setProperty( "orientation", "Horizontal" ); sldTransparency->setProperty( "tickmarks", "Right" ); sldTransparency->setProperty( "tickInterval", 0 ); Form1Layout->addWidget( sldTransparency ); chkInactive = new QCheckBox( this, "chkInactive" ); Form1Layout->addWidget( chkInactive ); Spacer9 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Form1Layout->addItem( Spacer9 ); languageChange(); resize( QSize(304, 167).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ TransparentCfgBase::~TransparentCfgBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void TransparentCfgBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); TextLabel1->setProperty( "text", i18n( "Transparency of main window:" ) ); chkInactive->setProperty( "text", i18n( "Transparent only if inactive" ) ); } #include "transparentcfgbase.moc"