#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './toolsetupbase.ui' ** ** Created: Вск Мар 4 15:40:34 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 "toolsetupbase.h" #include #include #include #include #include #include #include #include /* * Constructs a ToolBarSetupBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ ToolBarSetupBase::ToolBarSetupBase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "ToolBarSetup" ); ToolBarSetupLayout = new QVBoxLayout( this, 11, 6, "ToolBarSetupLayout"); Layout9 = new QHBoxLayout( 0, 0, 6, "Layout9"); Layout3 = new QVBoxLayout( 0, 0, 6, "Layout3"); TextLabel1 = new QLabel( this, "TextLabel1" ); Layout3->addWidget( TextLabel1 ); lstButtons = new QListBox( this, "lstButtons" ); Layout3->addWidget( lstButtons ); Layout9->addLayout( Layout3 ); Layout5 = new QVBoxLayout( 0, 0, 6, "Layout5"); Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Layout5->addItem( Spacer2 ); btnAdd = new QPushButton( this, "btnAdd" ); Layout5->addWidget( btnAdd ); btnRemove = new QPushButton( this, "btnRemove" ); Layout5->addWidget( btnRemove ); Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Layout5->addItem( Spacer3 ); Layout9->addLayout( Layout5 ); Layout4 = new QVBoxLayout( 0, 0, 6, "Layout4"); TextLabel2 = new QLabel( this, "TextLabel2" ); Layout4->addWidget( TextLabel2 ); lstActive = new QListBox( this, "lstActive" ); Layout4->addWidget( lstActive ); Layout9->addLayout( Layout4 ); Layout8 = new QVBoxLayout( 0, 0, 6, "Layout8"); Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Layout8->addItem( Spacer4 ); btnUp = new QPushButton( this, "btnUp" ); Layout8->addWidget( btnUp ); btnDown = new QPushButton( this, "btnDown" ); Layout8->addWidget( btnDown ); Spacer5 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Layout8->addItem( Spacer5 ); Layout9->addLayout( Layout8 ); ToolBarSetupLayout->addLayout( Layout9 ); Line1 = new QFrame( this, "Line1" ); Line1->setProperty( "frameShape", "HLine" ); Line1->setProperty( "frameShadow", "Sunken" ); Line1->setProperty( "frameShape", QFrame::VLine ); Line1->setProperty( "frameShape", "HLine" ); ToolBarSetupLayout->addWidget( Line1 ); Layout9_2 = new QHBoxLayout( 0, 0, 6, "Layout9_2"); Spacer4_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout9_2->addItem( Spacer4_2 ); btnApply = new QPushButton( this, "btnApply" ); Layout9_2->addWidget( btnApply ); btnOk = new QPushButton( this, "btnOk" ); btnOk->setProperty( "default", QVariant( TRUE, 0 ) ); Layout9_2->addWidget( btnOk ); btnClose = new QPushButton( this, "btnClose" ); Layout9_2->addWidget( btnClose ); ToolBarSetupLayout->addLayout( Layout9_2 ); languageChange(); resize( QSize(404, 252).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ ToolBarSetupBase::~ToolBarSetupBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void ToolBarSetupBase::languageChange() { setProperty( "caption", i18n( "Toolbar setup" ) ); TextLabel1->setProperty( "text", i18n( "All buttons:" ) ); lstButtons->clear(); lstButtons->insertItem( i18n( "New Item" ) ); btnAdd->setProperty( "text", i18n( "&Add ->" ) ); btnRemove->setProperty( "text", i18n( "<- &Remove" ) ); TextLabel2->setProperty( "text", i18n( "Active:" ) ); lstActive->clear(); lstActive->insertItem( i18n( "New Item" ) ); btnUp->setProperty( "text", i18n( "&Up" ) ); btnDown->setProperty( "text", i18n( "&Down" ) ); btnApply->setProperty( "text", i18n( "&Apply" ) ); btnOk->setProperty( "text", i18n( "&OK" ) ); btnClose->setProperty( "text", i18n( "&Close" ) ); } #include "toolsetupbase.moc"