#include "simapi.h"
/****************************************************************************
** Form implementation generated from reading ui file './toolsetupbase.ui'
**
** Created: вт мар 30 16:40:39 2004
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.2   edited Dec 19 11:45 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "toolsetupbase.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <qlistbox.h>
#include <qframe.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  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"); 
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    Layout5->addItem( spacer );

    btnAdd = new QPushButton( this, "btnAdd" );
    Layout5->addWidget( btnAdd );

    btnRemove = new QPushButton( this, "btnRemove" );
    Layout5->addWidget( btnRemove );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    Layout5->addItem( spacer_2 );
    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"); 
    QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    Layout8->addItem( spacer_3 );

    btnUp = new QPushButton( this, "btnUp" );
    Layout8->addWidget( btnUp );

    btnDown = new QPushButton( this, "btnDown" );
    Layout8->addWidget( btnDown );
    QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    Layout8->addItem( spacer_4 );
    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"); 
    QSpacerItem* spacer_5 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout9_2->addItem( spacer_5 );

    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"
