/****************************************************************************
** Form implementation generated from reading ui file 'mainwindowwizard.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "mainwindowwizard.h"

#include <ntqvariant.h>
#include <designerinterface.h>
#include <ntqiconset.h>
#include <ntqaction.h>
#include <ntqpixmap.h>
#include <ntqdict.h>
#include <ntqpushbutton.h>
#include <ntqwidget.h>
#include <ntqlabel.h>
#include <ntqgroupbox.h>
#include <ntqcheckbox.h>
#include <ntqlistbox.h>
#include <ntqcombobox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>

#include "mainwindowwizard.ui.h"
/*
 *  Constructs a MainWindowWizardBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qwizard will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qwizard.
 */
MainWindowWizardBase::MainWindowWizardBase( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQWizard( parent, name, modal, fl )
{
    if ( !name )
	setName( "MainWindowWizardBase" );

    menuToolbarPage = new TQWidget( this, "menuToolbarPage" );
    menuToolbarPageLayout = new TQGridLayout( menuToolbarPage, 1, 1, 0, 6, "menuToolbarPageLayout"); 
    Spacer7 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    menuToolbarPageLayout->addItem( Spacer7, 4, 1 );

    TextLabel4_2 = new TQLabel( menuToolbarPage, "TextLabel4_2" );
    TextLabel4_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, TextLabel4_2->sizePolicy().hasHeightForWidth() ) );
    TextLabel4_2->setPixmap( TQPixmap::fromMimeSource( "qtwizards_menu_1.png" ) );

    menuToolbarPageLayout->addMultiCellWidget( TextLabel4_2, 0, 4, 0, 0 );

    GroupBox1 = new TQGroupBox( menuToolbarPage, "GroupBox1" );
    GroupBox1->setColumnLayout(0, TQt::Vertical );
    GroupBox1->layout()->setSpacing( 6 );
    GroupBox1->layout()->setMargin( 11 );
    GroupBox1Layout = new TQGridLayout( GroupBox1->layout() );
    GroupBox1Layout->setAlignment( TQt::AlignTop );

    checkFileMenu = new TQCheckBox( GroupBox1, "checkFileMenu" );
    checkFileMenu->setChecked( true );

    GroupBox1Layout->addWidget( checkFileMenu, 1, 0 );

    checkFileToolbar = new TQCheckBox( GroupBox1, "checkFileToolbar" );
    checkFileToolbar->setChecked( true );

    GroupBox1Layout->addWidget( checkFileToolbar, 1, 1 );
    Spacer4 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    GroupBox1Layout->addItem( Spacer4, 1, 2 );

    checkCreateConnectionsFile = new TQCheckBox( GroupBox1, "checkCreateConnectionsFile" );
    checkCreateConnectionsFile->setChecked( true );

    GroupBox1Layout->addWidget( checkCreateConnectionsFile, 1, 3 );

    TextLabel2 = new TQLabel( GroupBox1, "TextLabel2" );

    GroupBox1Layout->addMultiCellWidget( TextLabel2, 0, 0, 0, 3 );

    menuToolbarPageLayout->addWidget( GroupBox1, 1, 1 );

    GroupBox2 = new TQGroupBox( menuToolbarPage, "GroupBox2" );
    GroupBox2->setColumnLayout(0, TQt::Vertical );
    GroupBox2->layout()->setSpacing( 6 );
    GroupBox2->layout()->setMargin( 11 );
    GroupBox2Layout = new TQGridLayout( GroupBox2->layout() );
    GroupBox2Layout->setAlignment( TQt::AlignTop );

    checkEditToolbar = new TQCheckBox( GroupBox2, "checkEditToolbar" );
    checkEditToolbar->setChecked( true );

    GroupBox2Layout->addWidget( checkEditToolbar, 1, 1 );

    checkEditMenu = new TQCheckBox( GroupBox2, "checkEditMenu" );
    checkEditMenu->setChecked( true );

    GroupBox2Layout->addWidget( checkEditMenu, 1, 0 );
    Spacer5 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    GroupBox2Layout->addItem( Spacer5, 1, 2 );

    checkCreateConnectionsEdit = new TQCheckBox( GroupBox2, "checkCreateConnectionsEdit" );
    checkCreateConnectionsEdit->setChecked( true );

    GroupBox2Layout->addWidget( checkCreateConnectionsEdit, 1, 3 );

    TextLabel2_2 = new TQLabel( GroupBox2, "TextLabel2_2" );
    TextLabel2_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)5, 0, 0, TextLabel2_2->sizePolicy().hasHeightForWidth() ) );

    GroupBox2Layout->addMultiCellWidget( TextLabel2_2, 0, 0, 0, 3 );

    menuToolbarPageLayout->addWidget( GroupBox2, 2, 1 );

    GroupBox3 = new TQGroupBox( menuToolbarPage, "GroupBox3" );
    GroupBox3->setColumnLayout(0, TQt::Vertical );
    GroupBox3->layout()->setSpacing( 6 );
    GroupBox3->layout()->setMargin( 11 );
    GroupBox3Layout = new TQGridLayout( GroupBox3->layout() );
    GroupBox3Layout->setAlignment( TQt::AlignTop );

    TextLabel2_2_2 = new TQLabel( GroupBox3, "TextLabel2_2_2" );
    TextLabel2_2_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)5, 0, 0, TextLabel2_2_2->sizePolicy().hasHeightForWidth() ) );

    GroupBox3Layout->addMultiCellWidget( TextLabel2_2_2, 0, 0, 0, 3 );

    checkHelpMenu = new TQCheckBox( GroupBox3, "checkHelpMenu" );
    checkHelpMenu->setChecked( true );

    GroupBox3Layout->addWidget( checkHelpMenu, 1, 0 );

    checkHelpToolbar = new TQCheckBox( GroupBox3, "checkHelpToolbar" );
    checkHelpToolbar->setChecked( true );

    GroupBox3Layout->addWidget( checkHelpToolbar, 1, 1 );
    Spacer6 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    GroupBox3Layout->addItem( Spacer6, 1, 2 );

    checkCreateConnectionsHelp = new TQCheckBox( GroupBox3, "checkCreateConnectionsHelp" );
    checkCreateConnectionsHelp->setChecked( true );

    GroupBox3Layout->addWidget( checkCreateConnectionsHelp, 1, 3 );

    menuToolbarPageLayout->addWidget( GroupBox3, 3, 1 );
    addPage( menuToolbarPage, TQString("") );

    toolbarsPage = new TQWidget( this, "toolbarsPage" );
    toolbarsPageLayout = new TQGridLayout( toolbarsPage, 1, 1, 0, 6, "toolbarsPageLayout"); 

    buttonToolbarActionUp = new TQPushButton( toolbarsPage, "buttonToolbarActionUp" );
    buttonToolbarActionUp->setPixmap( TQPixmap::fromMimeSource( "designer_up.png" ) );

    toolbarsPageLayout->addWidget( buttonToolbarActionUp, 7, 2 );

    TextLabel4_3_2 = new TQLabel( toolbarsPage, "TextLabel4_3_2" );

    toolbarsPageLayout->addWidget( TextLabel4_3_2, 2, 3 );

    buttonToolbarActionDown = new TQPushButton( toolbarsPage, "buttonToolbarActionDown" );
    buttonToolbarActionDown->setPixmap( TQPixmap::fromMimeSource( "designer_down.png" ) );

    toolbarsPageLayout->addWidget( buttonToolbarActionDown, 8, 2 );

    listToolbarActions = new TQListBox( toolbarsPage, "listToolbarActions" );

    toolbarsPageLayout->addMultiCellWidget( listToolbarActions, 3, 9, 1, 1 );

    listToolbar = new TQListBox( toolbarsPage, "listToolbar" );

    toolbarsPageLayout->addMultiCellWidget( listToolbar, 3, 9, 3, 3 );

    Layout20_2 = new TQHBoxLayout( 0, 0, 6, "Layout20_2"); 

    TextLabel5_2 = new TQLabel( toolbarsPage, "TextLabel5_2" );
    Layout20_2->addWidget( TextLabel5_2 );

    comboToolbar = new TQComboBox( false, toolbarsPage, "comboToolbar" );
    comboToolbar->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, comboToolbar->sizePolicy().hasHeightForWidth() ) );
    Layout20_2->addWidget( comboToolbar );

    toolbarsPageLayout->addMultiCellLayout( Layout20_2, 1, 1, 1, 2 );

    TextLabel4_4 = new TQLabel( toolbarsPage, "TextLabel4_4" );

    toolbarsPageLayout->addWidget( TextLabel4_4, 2, 1 );

    buttonToolbarRemoveAction = new TQPushButton( toolbarsPage, "buttonToolbarRemoveAction" );
    buttonToolbarRemoveAction->setPixmap( TQPixmap::fromMimeSource( "designer_left.png" ) );

    toolbarsPageLayout->addWidget( buttonToolbarRemoveAction, 5, 2 );

    TextLabel4_2_2_2 = new TQLabel( toolbarsPage, "TextLabel4_2_2_2" );
    TextLabel4_2_2_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, TextLabel4_2_2_2->sizePolicy().hasHeightForWidth() ) );
    TextLabel4_2_2_2->setPixmap( TQPixmap::fromMimeSource( "qtwizards_menu_2.png" ) );

    toolbarsPageLayout->addMultiCellWidget( TextLabel4_2_2_2, 0, 9, 0, 0 );

    buttonToolbarAddAction = new TQPushButton( toolbarsPage, "buttonToolbarAddAction" );
    buttonToolbarAddAction->setPixmap( TQPixmap::fromMimeSource( "designer_right.png" ) );

    toolbarsPageLayout->addWidget( buttonToolbarAddAction, 4, 2 );
    Spacer11 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    toolbarsPageLayout->addItem( Spacer11, 3, 2 );
    Spacer12 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    toolbarsPageLayout->addItem( Spacer12, 6, 2 );
    Spacer13 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    toolbarsPageLayout->addItem( Spacer13, 9, 2 );
    addPage( toolbarsPage, TQString("") );

    finishPage = new TQWidget( this, "finishPage" );
    finishPageLayout = new TQGridLayout( finishPage, 1, 1, 0, 6, "finishPageLayout"); 

    TextLabel4_2_2_2_2 = new TQLabel( finishPage, "TextLabel4_2_2_2_2" );
    TextLabel4_2_2_2_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, TextLabel4_2_2_2_2->sizePolicy().hasHeightForWidth() ) );
    TextLabel4_2_2_2_2->setPixmap( TQPixmap::fromMimeSource( "qtwizards_menu_3.png" ) );

    finishPageLayout->addMultiCellWidget( TextLabel4_2_2_2_2, 0, 2, 0, 0 );

    TextLabel1_5 = new TQLabel( finishPage, "TextLabel1_5" );

    finishPageLayout->addWidget( TextLabel1_5, 1, 1 );
    Spacer1 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    finishPageLayout->addItem( Spacer1, 0, 1 );
    Spacer1_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    finishPageLayout->addItem( Spacer1_2, 2, 1 );
    addPage( finishPage, TQString("") );
    languageChange();
    resize( TQSize(604, 392).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( comboToolbar, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( currentToolbarChanged(const TQString&) ) );
    connect( buttonToolbarAddAction, TQ_SIGNAL( clicked() ), this, TQ_SLOT( toolbarAddAction() ) );
    connect( buttonToolbarRemoveAction, TQ_SIGNAL( clicked() ), this, TQ_SLOT( toolbarRemoveAction() ) );
    connect( buttonToolbarActionUp, TQ_SIGNAL( clicked() ), this, TQ_SLOT( toolbarActionUp() ) );
    connect( buttonToolbarActionDown, TQ_SIGNAL( clicked() ), this, TQ_SLOT( toolbarActionDown() ) );
    connect( this, TQ_SIGNAL( selected(const TQString&) ), this, TQ_SLOT( pageSelected(const TQString&) ) );
    connect( checkHelpMenu, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( currentSettingChanged() ) );
    connect( checkHelpToolbar, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( currentSettingChanged() ) );
    connect( checkEditMenu, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( currentSettingChanged() ) );
    connect( checkEditToolbar, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( currentSettingChanged() ) );
    connect( checkFileMenu, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( currentSettingChanged() ) );
    connect( checkFileToolbar, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( currentSettingChanged() ) );

    // tab order
    setTabOrder( checkFileMenu, checkFileToolbar );
    setTabOrder( checkFileToolbar, checkEditMenu );
    setTabOrder( checkEditMenu, checkEditToolbar );
    setTabOrder( checkEditToolbar, checkHelpMenu );
    setTabOrder( checkHelpMenu, checkHelpToolbar );
    setTabOrder( checkHelpToolbar, comboToolbar );
    setTabOrder( comboToolbar, listToolbarActions );
    setTabOrder( listToolbarActions, buttonToolbarAddAction );
    setTabOrder( buttonToolbarAddAction, buttonToolbarRemoveAction );
    setTabOrder( buttonToolbarRemoveAction, buttonToolbarActionUp );
    setTabOrder( buttonToolbarActionUp, buttonToolbarActionDown );
    setTabOrder( buttonToolbarActionDown, listToolbar );

    // buddies
    TextLabel4_3_2->setBuddy( listToolbar );
    TextLabel5_2->setBuddy( comboToolbar );
    TextLabel4_4->setBuddy( listToolbarActions );
    init();
}

/*
 *  Destroys the object and frees any allocated resources
 */
MainWindowWizardBase::~MainWindowWizardBase()
{
    destroy();
    // no need to delete child widgets, TQt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void MainWindowWizardBase::languageChange()
{
    setCaption( tr( "Main Window Wizard" ) );
    TextLabel4_2->setText( TQString::null );
    GroupBox1->setTitle( tr( "File Actions" ) );
    checkFileMenu->setText( tr( "Menu" ) );
    checkFileToolbar->setText( tr( "Toolbar" ) );
    checkCreateConnectionsFile->setText( tr( "Create Slots and Connections for the actions" ) );
    TextLabel2->setText( tr( "like New, Open File, Save, Print, etc." ) );
    GroupBox2->setTitle( tr( "Edit Actions" ) );
    checkEditToolbar->setText( tr( "Toolbar" ) );
    checkEditMenu->setText( tr( "Menu" ) );
    checkCreateConnectionsEdit->setText( tr( "Create Slots and Connections for the actions" ) );
    TextLabel2_2->setText( tr( "like Cut, Copy, Paste, Undo and Redo, etc." ) );
    GroupBox3->setTitle( tr( "Help Actions" ) );
    TextLabel2_2_2->setText( tr( "like Contents and About, etc." ) );
    checkHelpMenu->setText( tr( "Menu" ) );
    checkHelpToolbar->setText( tr( "Toolbar" ) );
    checkCreateConnectionsHelp->setText( tr( "Create Slots and Connections for the actions" ) );
    setTitle( menuToolbarPage, tr( "Choose available menus and toolbars" ) );
    buttonToolbarActionUp->setText( TQString::null );
    TextLabel4_3_2->setText( tr( "&Toolbar" ) );
    buttonToolbarActionDown->setText( TQString::null );
    TextLabel5_2->setText( tr( "&Category" ) );
    TextLabel4_4->setText( tr( "&Actions" ) );
    buttonToolbarRemoveAction->setText( TQString::null );
    TextLabel4_2_2_2->setText( TQString::null );
    buttonToolbarAddAction->setText( TQString::null );
    setTitle( toolbarsPage, tr( "Setup Toolbar" ) );
    TextLabel4_2_2_2_2->setText( TQString::null );
    TextLabel1_5->setText( tr( "Press Finish to populate the main window." ) );
    setTitle( finishPage, tr( "Finish" ) );
}

