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

#include "mainwindowbase.h"

#include <ntqvariant.h>
#include <colorbutton.h>
#include <previewframe.h>
#include <ntqpushbutton.h>
#include <ntqtextview.h>
#include <ntqtabwidget.h>
#include <ntqwidget.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqcombobox.h>
#include <ntqlineedit.h>
#include <ntqframe.h>
#include <ntqlistbox.h>
#include <ntqspinbox.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqaction.h>
#include <ntqmenubar.h>
#include <ntqpopupmenu.h>
#include <ntqtoolbar.h>
#include <ntqimage.h>
#include <ntqpixmap.h>

#include "colorbutton.h"
#include "previewframe.h"
/*
 *  Constructs a MainWindowBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 */
MainWindowBase::MainWindowBase( TQWidget* parent, const char* name, WFlags fl )
    : TQMainWindow( parent, name, fl )
{
    (void)statusBar();
    if ( !name )
	setName( "MainWindowBase" );
    setIcon( TQPixmap::fromMimeSource( "appicon.png" ) );
    setCentralWidget( new TQWidget( this, "qt_central_widget" ) );
    MainWindowBaseLayout = new TQHBoxLayout( centralWidget(), 8, 4, "MainWindowBaseLayout"); 

    helpview = new TQTextView( centralWidget(), "helpview" );
    helpview->setMinimumSize( TQSize( 200, 0 ) );
    MainWindowBaseLayout->addWidget( helpview );

    TabWidget3 = new TQTabWidget( centralWidget(), "TabWidget3" );

    tab = new TQWidget( TabWidget3, "tab" );
    tabLayout = new TQVBoxLayout( tab, 4, 4, "tabLayout"); 

    GroupBox40 = new TQGroupBox( tab, "GroupBox40" );
    GroupBox40->setColumnLayout(0, TQt::Vertical );
    GroupBox40->layout()->setSpacing( 4 );
    GroupBox40->layout()->setMargin( 8 );
    GroupBox40Layout = new TQHBoxLayout( GroupBox40->layout() );
    GroupBox40Layout->setAlignment( TQt::AlignTop );

    gstylebuddy = new TQLabel( GroupBox40, "gstylebuddy" );
    GroupBox40Layout->addWidget( gstylebuddy );

    gstylecombo = new TQComboBox( false, GroupBox40, "gstylecombo" );
    GroupBox40Layout->addWidget( gstylecombo );
    tabLayout->addWidget( GroupBox40 );

    groupAutoPalette = new TQGroupBox( tab, "groupAutoPalette" );
    groupAutoPalette->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)4, 0, 0, groupAutoPalette->sizePolicy().hasHeightForWidth() ) );
    groupAutoPalette->setAlignment( int( TQGroupBox::AlignAuto ) );
    groupAutoPalette->setColumnLayout(0, TQt::Vertical );
    groupAutoPalette->layout()->setSpacing( 4 );
    groupAutoPalette->layout()->setMargin( 8 );
    groupAutoPaletteLayout = new TQHBoxLayout( groupAutoPalette->layout() );
    groupAutoPaletteLayout->setAlignment( TQt::AlignTop );

    labelMainColor = new TQLabel( groupAutoPalette, "labelMainColor" );
    groupAutoPaletteLayout->addWidget( labelMainColor );

    buttonMainColor = new ColorButton( groupAutoPalette, "buttonMainColor" );
    groupAutoPaletteLayout->addWidget( buttonMainColor );

    labelMainColor2 = new TQLabel( groupAutoPalette, "labelMainColor2" );
    labelMainColor2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, labelMainColor2->sizePolicy().hasHeightForWidth() ) );
    labelMainColor2->setMinimumSize( TQSize( 50, 0 ) );
    labelMainColor2->setLineWidth( 1 );
    labelMainColor2->setMargin( 0 );
    labelMainColor2->setMidLineWidth( 0 );
    labelMainColor2->setAlignment( int( TQLabel::AlignVCenter ) );
    groupAutoPaletteLayout->addWidget( labelMainColor2 );

    buttonMainColor2 = new ColorButton( groupAutoPalette, "buttonMainColor2" );
    groupAutoPaletteLayout->addWidget( buttonMainColor2 );
    Spacer1 = new TQSpacerItem( 70, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupAutoPaletteLayout->addItem( Spacer1 );

    btnAdvanced = new TQPushButton( groupAutoPalette, "btnAdvanced" );
    groupAutoPaletteLayout->addWidget( btnAdvanced );
    tabLayout->addWidget( groupAutoPalette );

    GroupBox126 = new TQGroupBox( tab, "GroupBox126" );
    GroupBox126->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, GroupBox126->sizePolicy().hasHeightForWidth() ) );
    GroupBox126->setColumnLayout(0, TQt::Vertical );
    GroupBox126->layout()->setSpacing( 4 );
    GroupBox126->layout()->setMargin( 8 );
    GroupBox126Layout = new TQGridLayout( GroupBox126->layout() );
    GroupBox126Layout->setAlignment( TQt::AlignTop );

    TextLabel1 = new TQLabel( GroupBox126, "TextLabel1" );

    GroupBox126Layout->addWidget( TextLabel1, 0, 0 );

    paletteCombo = new TQComboBox( false, GroupBox126, "paletteCombo" );

    GroupBox126Layout->addWidget( paletteCombo, 0, 1 );

    previewFrame = new PreviewFrame( GroupBox126, "previewFrame" );
    previewFrame->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, previewFrame->sizePolicy().hasHeightForWidth() ) );
    previewFrame->setMinimumSize( TQSize( 410, 260 ) );

    GroupBox126Layout->addMultiCellWidget( previewFrame, 1, 1, 0, 1 );
    tabLayout->addWidget( GroupBox126 );
    TabWidget3->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( TabWidget3, "tab_2" );
    tabLayout_2 = new TQVBoxLayout( tab_2, 8, 4, "tabLayout_2"); 

    GroupBox1 = new TQGroupBox( tab_2, "GroupBox1" );
    GroupBox1->setColumnLayout(0, TQt::Vertical );
    GroupBox1->layout()->setSpacing( 4 );
    GroupBox1->layout()->setMargin( 8 );
    GroupBox1Layout = new TQGridLayout( GroupBox1->layout() );
    GroupBox1Layout->setAlignment( TQt::AlignTop );

    stylecombo = new TQComboBox( false, GroupBox1, "stylecombo" );
    stylecombo->setAutoCompletion( true );
    stylecombo->setDuplicatesEnabled( false );

    GroupBox1Layout->addWidget( stylecombo, 1, 1 );

    familycombo = new TQComboBox( false, GroupBox1, "familycombo" );
    familycombo->setAutoCompletion( true );
    familycombo->setDuplicatesEnabled( false );

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

    psizecombo = new TQComboBox( false, GroupBox1, "psizecombo" );
    psizecombo->setEditable( true );
    psizecombo->setAutoCompletion( true );
    psizecombo->setDuplicatesEnabled( false );

    GroupBox1Layout->addWidget( psizecombo, 2, 1 );

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

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

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

    GroupBox1Layout->addWidget( psizebuddy, 2, 0 );

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

    GroupBox1Layout->addWidget( familybuddy, 0, 0 );

    samplelineedit = new TQLineEdit( GroupBox1, "samplelineedit" );
    samplelineedit->setAlignment( int( TQLineEdit::AlignHCenter ) );

    GroupBox1Layout->addMultiCellWidget( samplelineedit, 3, 3, 0, 1 );
    tabLayout_2->addWidget( GroupBox1 );

    GroupBox2 = new TQGroupBox( tab_2, "GroupBox2" );
    GroupBox2->setFrameShape( TQGroupBox::Box );
    GroupBox2->setFrameShadow( TQGroupBox::Sunken );
    GroupBox2->setColumnLayout(0, TQt::Vertical );
    GroupBox2->layout()->setSpacing( 4 );
    GroupBox2->layout()->setMargin( 8 );
    GroupBox2Layout = new TQVBoxLayout( GroupBox2->layout() );
    GroupBox2Layout->setAlignment( TQt::AlignTop );

    Layout2 = new TQHBoxLayout( 0, 0, 4, "Layout2"); 

    famsubbuddy = new TQLabel( GroupBox2, "famsubbuddy" );
    Layout2->addWidget( famsubbuddy );

    familysubcombo = new TQComboBox( false, GroupBox2, "familysubcombo" );
    familysubcombo->setEditable( true );
    familysubcombo->setAutoCompletion( true );
    familysubcombo->setDuplicatesEnabled( false );
    Layout2->addWidget( familysubcombo );
    GroupBox2Layout->addLayout( Layout2 );

    Line1 = new TQFrame( GroupBox2, "Line1" );
    Line1->setFrameShape( TQFrame::HLine );
    Line1->setFrameShadow( TQFrame::Sunken );
    Line1->setFrameShape( TQFrame::HLine );
    GroupBox2Layout->addWidget( Line1 );

    TextLabel5 = new TQLabel( GroupBox2, "TextLabel5" );
    GroupBox2Layout->addWidget( TextLabel5 );

    sublistbox = new TQListBox( GroupBox2, "sublistbox" );
    GroupBox2Layout->addWidget( sublistbox );

    Layout3 = new TQHBoxLayout( 0, 0, 4, "Layout3"); 

    PushButton2 = new TQPushButton( GroupBox2, "PushButton2" );
    Layout3->addWidget( PushButton2 );

    PushButton3 = new TQPushButton( GroupBox2, "PushButton3" );
    Layout3->addWidget( PushButton3 );

    PushButton4 = new TQPushButton( GroupBox2, "PushButton4" );
    Layout3->addWidget( PushButton4 );
    GroupBox2Layout->addLayout( Layout3 );

    Line2 = new TQFrame( GroupBox2, "Line2" );
    Line2->setFrameShape( TQFrame::HLine );
    Line2->setFrameShadow( TQFrame::Sunken );
    Line2->setFrameShape( TQFrame::HLine );
    GroupBox2Layout->addWidget( Line2 );

    Layout11 = new TQHBoxLayout( 0, 0, 4, "Layout11"); 

    choosebuddy = new TQLabel( GroupBox2, "choosebuddy" );
    Layout11->addWidget( choosebuddy );

    choosesubcombo = new TQComboBox( false, GroupBox2, "choosesubcombo" );
    choosesubcombo->setAutoCompletion( true );
    choosesubcombo->setDuplicatesEnabled( false );
    Layout11->addWidget( choosesubcombo );

    PushButton1 = new TQPushButton( GroupBox2, "PushButton1" );
    Layout11->addWidget( PushButton1 );
    GroupBox2Layout->addLayout( Layout11 );
    tabLayout_2->addWidget( GroupBox2 );
    TabWidget3->insertTab( tab_2, TQString::fromLatin1("") );

    tab_3 = new TQWidget( TabWidget3, "tab_3" );
    tabLayout_3 = new TQVBoxLayout( tab_3, 8, 4, "tabLayout_3"); 

    GroupBox4 = new TQGroupBox( tab_3, "GroupBox4" );
    GroupBox4->setColumnLayout(0, TQt::Vertical );
    GroupBox4->layout()->setSpacing( 4 );
    GroupBox4->layout()->setMargin( 8 );
    GroupBox4Layout = new TQGridLayout( GroupBox4->layout() );
    GroupBox4Layout->setAlignment( TQt::AlignTop );

    dcispin = new TQSpinBox( GroupBox4, "dcispin" );
    dcispin->setMaxValue( 10000 );
    dcispin->setMinValue( 10 );

    GroupBox4Layout->addWidget( dcispin, 0, 1 );

    dcibuddy = new TQLabel( GroupBox4, "dcibuddy" );

    GroupBox4Layout->addWidget( dcibuddy, 0, 0 );

    cfispin = new TQSpinBox( GroupBox4, "cfispin" );
    cfispin->setMaxValue( 10000 );
    cfispin->setMinValue( 9 );

    GroupBox4Layout->addWidget( cfispin, 1, 1 );

    cfibuddy = new TQLabel( GroupBox4, "cfibuddy" );

    GroupBox4Layout->addWidget( cfibuddy, 1, 0 );

    wslspin = new TQSpinBox( GroupBox4, "wslspin" );
    wslspin->setMaxValue( 20 );
    wslspin->setMinValue( 1 );

    GroupBox4Layout->addWidget( wslspin, 2, 1 );

    wslbuddy = new TQLabel( GroupBox4, "wslbuddy" );

    GroupBox4Layout->addWidget( wslbuddy, 2, 0 );

    resolvelinks = new TQCheckBox( GroupBox4, "resolvelinks" );

    GroupBox4Layout->addMultiCellWidget( resolvelinks, 3, 3, 0, 1 );
    tabLayout_3->addWidget( GroupBox4 );

    GroupBox3 = new TQGroupBox( tab_3, "GroupBox3" );
    GroupBox3->setColumnLayout(0, TQt::Vertical );
    GroupBox3->layout()->setSpacing( 4 );
    GroupBox3->layout()->setMargin( 8 );
    GroupBox3Layout = new TQVBoxLayout( GroupBox3->layout() );
    GroupBox3Layout->setAlignment( TQt::AlignTop );

    effectcheckbox = new TQCheckBox( GroupBox3, "effectcheckbox" );
    GroupBox3Layout->addWidget( effectcheckbox );

    effectbase = new TQFrame( GroupBox3, "effectbase" );
    effectbase->setFrameShape( TQFrame::NoFrame );
    effectbase->setFrameShadow( TQFrame::Plain );
    effectbaseLayout = new TQGridLayout( effectbase, 1, 1, 0, 4, "effectbaseLayout"); 

    meffectbuddy = new TQLabel( effectbase, "meffectbuddy" );

    effectbaseLayout->addWidget( meffectbuddy, 0, 0 );

    ceffectbuddy = new TQLabel( effectbase, "ceffectbuddy" );

    effectbaseLayout->addWidget( ceffectbuddy, 1, 0 );

    teffectbuddy = new TQLabel( effectbase, "teffectbuddy" );

    effectbaseLayout->addWidget( teffectbuddy, 2, 0 );

    beffectbuddy = new TQLabel( effectbase, "beffectbuddy" );

    effectbaseLayout->addWidget( beffectbuddy, 3, 0 );

    menueffect = new TQComboBox( false, effectbase, "menueffect" );
    menueffect->setAutoCompletion( true );

    effectbaseLayout->addWidget( menueffect, 0, 1 );

    comboeffect = new TQComboBox( false, effectbase, "comboeffect" );

    effectbaseLayout->addWidget( comboeffect, 1, 1 );

    tooltipeffect = new TQComboBox( false, effectbase, "tooltipeffect" );

    effectbaseLayout->addWidget( tooltipeffect, 2, 1 );

    toolboxeffect = new TQComboBox( false, effectbase, "toolboxeffect" );

    effectbaseLayout->addWidget( toolboxeffect, 3, 1 );
    GroupBox3Layout->addWidget( effectbase );
    tabLayout_3->addWidget( GroupBox3 );

    GroupBox5 = new TQGroupBox( tab_3, "GroupBox5" );
    GroupBox5->setColumnLayout(0, TQt::Vertical );
    GroupBox5->layout()->setSpacing( 4 );
    GroupBox5->layout()->setMargin( 8 );
    GroupBox5Layout = new TQGridLayout( GroupBox5->layout() );
    GroupBox5Layout->setAlignment( TQt::AlignTop );

    swbuddy = new TQLabel( GroupBox5, "swbuddy" );

    GroupBox5Layout->addWidget( swbuddy, 0, 0 );

    shbuddy = new TQLabel( GroupBox5, "shbuddy" );

    GroupBox5Layout->addWidget( shbuddy, 1, 0 );

    strutwidth = new TQSpinBox( GroupBox5, "strutwidth" );
    strutwidth->setMaxValue( 1000 );

    GroupBox5Layout->addWidget( strutwidth, 0, 1 );

    strutheight = new TQSpinBox( GroupBox5, "strutheight" );
    strutheight->setMaxValue( 1000 );

    GroupBox5Layout->addWidget( strutheight, 1, 1 );
    tabLayout_3->addWidget( GroupBox5 );

    rtlExtensions = new TQCheckBox( tab_3, "rtlExtensions" );
    tabLayout_3->addWidget( rtlExtensions );

    inputStyleLabel = new TQLabel( tab_3, "inputStyleLabel" );
    tabLayout_3->addWidget( inputStyleLabel );

    inputStyle = new TQComboBox( false, tab_3, "inputStyle" );
    tabLayout_3->addWidget( inputStyle );

    inputMethodLabel = new TQLabel( tab_3, "inputMethodLabel" );
    tabLayout_3->addWidget( inputMethodLabel );

    inputMethodCombo = new TQComboBox( false, tab_3, "inputMethodCombo" );
    tabLayout_3->addWidget( inputMethodCombo );
    spacer5 = new TQSpacerItem( 20, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_3->addItem( spacer5 );
    TabWidget3->insertTab( tab_3, TQString::fromLatin1("") );

    tab_4 = new TQWidget( TabWidget3, "tab_4" );
    tabLayout_4 = new TQVBoxLayout( tab_4, 4, 4, "tabLayout_4"); 

    GroupBox39 = new TQGroupBox( tab_4, "GroupBox39" );
    GroupBox39->setColumnLayout(0, TQt::Vertical );
    GroupBox39->layout()->setSpacing( 4 );
    GroupBox39->layout()->setMargin( 8 );
    GroupBox39Layout = new TQVBoxLayout( GroupBox39->layout() );
    GroupBox39Layout->setAlignment( TQt::AlignTop );

    Layout68 = new TQGridLayout( 0, 1, 1, 0, 4, "Layout68"); 

    libpathlistbox = new TQListBox( GroupBox39, "libpathlistbox" );
    libpathlistbox->setFrameShape( TQListBox::StyledPanel );
    libpathlistbox->setFrameShadow( TQListBox::Sunken );

    Layout68->addMultiCellWidget( libpathlistbox, 0, 0, 0, 2 );

    PushButton8 = new TQPushButton( GroupBox39, "PushButton8" );

    Layout68->addWidget( PushButton8, 1, 1 );

    PushButton9 = new TQPushButton( GroupBox39, "PushButton9" );

    Layout68->addWidget( PushButton9, 1, 2 );

    PushButton7 = new TQPushButton( GroupBox39, "PushButton7" );

    Layout68->addWidget( PushButton7, 1, 0 );
    GroupBox39Layout->addLayout( Layout68 );

    Layout71 = new TQGridLayout( 0, 1, 1, 0, 4, "Layout71"); 
    Spacer1_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    Layout71->addItem( Spacer1_2, 2, 0 );

    TextLabel15 = new TQLabel( GroupBox39, "TextLabel15" );

    Layout71->addMultiCellWidget( TextLabel15, 0, 0, 0, 2 );

    libpathlineedit = new TQLineEdit( GroupBox39, "libpathlineedit" );

    Layout71->addMultiCellWidget( libpathlineedit, 1, 1, 0, 2 );

    PushButton5 = new TQPushButton( GroupBox39, "PushButton5" );

    Layout71->addWidget( PushButton5, 2, 1 );

    PushButton6 = new TQPushButton( GroupBox39, "PushButton6" );

    Layout71->addWidget( PushButton6, 2, 2 );
    GroupBox39Layout->addLayout( Layout71 );
    tabLayout_4->addWidget( GroupBox39 );
    TabWidget3->insertTab( tab_4, TQString::fromLatin1("") );

    tab_5 = new TQWidget( TabWidget3, "tab_5" );
    tabLayout_5 = new TQVBoxLayout( tab_5, 8, 4, "tabLayout_5"); 

    fontembeddingcheckbox = new TQCheckBox( tab_5, "fontembeddingcheckbox" );
    fontembeddingcheckbox->setChecked( true );
    tabLayout_5->addWidget( fontembeddingcheckbox );

    GroupBox10 = new TQGroupBox( tab_5, "GroupBox10" );
    GroupBox10->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, GroupBox10->sizePolicy().hasHeightForWidth() ) );
    GroupBox10->setColumnLayout(0, TQt::Vertical );
    GroupBox10->layout()->setSpacing( 4 );
    GroupBox10->layout()->setMargin( 8 );
    GroupBox10Layout = new TQVBoxLayout( GroupBox10->layout() );
    GroupBox10Layout->setAlignment( TQt::AlignTop );

    Layout9 = new TQGridLayout( 0, 1, 1, 0, 4, "Layout9"); 

    PushButton11 = new TQPushButton( GroupBox10, "PushButton11" );

    Layout9->addWidget( PushButton11, 1, 0 );

    PushButton13 = new TQPushButton( GroupBox10, "PushButton13" );

    Layout9->addWidget( PushButton13, 1, 2 );

    fontpathlistbox = new TQListBox( GroupBox10, "fontpathlistbox" );

    Layout9->addMultiCellWidget( fontpathlistbox, 0, 0, 0, 2 );

    PushButton12 = new TQPushButton( GroupBox10, "PushButton12" );

    Layout9->addWidget( PushButton12, 1, 1 );
    GroupBox10Layout->addLayout( Layout9 );

    Layout10 = new TQGridLayout( 0, 1, 1, 0, 4, "Layout10"); 
    Spacer4 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    Layout10->addItem( Spacer4, 2, 0 );

    TextLabel15_2 = new TQLabel( GroupBox10, "TextLabel15_2" );

    Layout10->addMultiCellWidget( TextLabel15_2, 0, 0, 0, 2 );

    PushButton15 = new TQPushButton( GroupBox10, "PushButton15" );

    Layout10->addWidget( PushButton15, 2, 2 );

    fontpathlineedit = new TQLineEdit( GroupBox10, "fontpathlineedit" );

    Layout10->addMultiCellWidget( fontpathlineedit, 1, 1, 0, 2 );

    PushButton14 = new TQPushButton( GroupBox10, "PushButton14" );

    Layout10->addWidget( PushButton14, 2, 1 );
    GroupBox10Layout->addLayout( Layout10 );
    tabLayout_5->addWidget( GroupBox10 );
    TabWidget3->insertTab( tab_5, TQString::fromLatin1("") );
    MainWindowBaseLayout->addWidget( TabWidget3 );

    // actions
    fileSaveAction = new TQAction( this, "fileSaveAction" );
    fileSaveAction->setIconSet( TQIconSet( TQPixmap::fromMimeSource( "" ) ) );
    fileExitAction = new TQAction( this, "fileExitAction" );
    helpAboutAction = new TQAction( this, "helpAboutAction" );
    helpAboutTQtAction = new TQAction( this, "helpAboutTQtAction" );


    // toolbars


    // menubar
    menubar = new TQMenuBar( this, "menubar" );


    PopupMenu = new TQPopupMenu( this );
    fileSaveAction->addTo( PopupMenu );
    PopupMenu->insertSeparator();
    fileExitAction->addTo( PopupMenu );
    menubar->insertItem( TQString(""), PopupMenu, 1 );

    PopupMenu_2 = new TQPopupMenu( this );
    helpAboutAction->addTo( PopupMenu_2 );
    helpAboutTQtAction->addTo( PopupMenu_2 );
    menubar->insertItem( TQString(""), PopupMenu_2, 2 );

    languageChange();
    resize( TQSize(700, 600).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( fontpathlineedit, TQ_SIGNAL( returnPressed() ), this, TQ_SLOT( addFontpath() ) );
    connect( PushButton15, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addFontpath() ) );
    connect( PushButton6, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addLibpath() ) );
    connect( libpathlineedit, TQ_SIGNAL( returnPressed() ), this, TQ_SLOT( addLibpath() ) );
    connect( PushButton1, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addSubstitute() ) );
    connect( PushButton14, TQ_SIGNAL( clicked() ), this, TQ_SLOT( browseFontpath() ) );
    connect( PushButton5, TQ_SIGNAL( clicked() ), this, TQ_SLOT( browseLibpath() ) );
    connect( stylecombo, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( buildFont() ) );
    connect( psizecombo, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( buildFont() ) );
    connect( PushButton12, TQ_SIGNAL( clicked() ), this, TQ_SLOT( downFontpath() ) );
    connect( PushButton8, TQ_SIGNAL( clicked() ), this, TQ_SLOT( downLibpath() ) );
    connect( PushButton3, TQ_SIGNAL( clicked() ), this, TQ_SLOT( downSubstitute() ) );
    connect( familycombo, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( familySelected(const TQString&) ) );
    connect( fileExitAction, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileExit() ) );
    connect( fileSaveAction, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileSave() ) );
    connect( helpAboutAction, TQ_SIGNAL( activated() ), this, TQ_SLOT( helpAbout() ) );
    connect( helpAboutTQtAction, TQ_SIGNAL( activated() ), this, TQ_SLOT( helpAboutTQt() ) );
    connect( TabWidget3, TQ_SIGNAL( currentChanged(TQWidget*) ), this, TQ_SLOT( pageChanged(TQWidget*) ) );
    connect( paletteCombo, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( paletteSelected(int) ) );
    connect( PushButton13, TQ_SIGNAL( clicked() ), this, TQ_SLOT( removeFontpath() ) );
    connect( PushButton9, TQ_SIGNAL( clicked() ), this, TQ_SLOT( removeLibpath() ) );
    connect( PushButton4, TQ_SIGNAL( clicked() ), this, TQ_SLOT( removeSubstitute() ) );
    connect( effectcheckbox, TQ_SIGNAL( toggled(bool) ), effectbase, TQ_SLOT( setEnabled(bool) ) );
    connect( fontembeddingcheckbox, TQ_SIGNAL( toggled(bool) ), GroupBox10, TQ_SLOT( setEnabled(bool) ) );
    connect( toolboxeffect, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( somethingModified() ) );
    connect( dcispin, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( somethingModified() ) );
    connect( cfispin, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( somethingModified() ) );
    connect( wslspin, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( somethingModified() ) );
    connect( menueffect, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( somethingModified() ) );
    connect( comboeffect, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( somethingModified() ) );
    connect( tooltipeffect, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( somethingModified() ) );
    connect( strutwidth, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( somethingModified() ) );
    connect( strutheight, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( somethingModified() ) );
    connect( effectcheckbox, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( somethingModified() ) );
    connect( resolvelinks, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( somethingModified() ) );
    connect( fontembeddingcheckbox, TQ_SIGNAL( clicked() ), this, TQ_SLOT( somethingModified() ) );
    connect( rtlExtensions, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( somethingModified() ) );
    connect( inputStyle, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( somethingModified() ) );
    connect( inputMethodCombo, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( somethingModified() ) );
    connect( gstylecombo, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( styleSelected(const TQString&) ) );
    connect( familysubcombo, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( substituteSelected(const TQString&) ) );
    connect( btnAdvanced, TQ_SIGNAL( clicked() ), this, TQ_SLOT( tunePalette() ) );
    connect( PushButton11, TQ_SIGNAL( clicked() ), this, TQ_SLOT( upFontpath() ) );
    connect( PushButton7, TQ_SIGNAL( clicked() ), this, TQ_SLOT( upLibpath() ) );
    connect( PushButton2, TQ_SIGNAL( clicked() ), this, TQ_SLOT( upSubstitute() ) );

    // tab order
    setTabOrder( helpview, TabWidget3 );
    setTabOrder( TabWidget3, familycombo );
    setTabOrder( familycombo, stylecombo );
    setTabOrder( stylecombo, psizecombo );
    setTabOrder( psizecombo, samplelineedit );
    setTabOrder( samplelineedit, familysubcombo );
    setTabOrder( familysubcombo, PushButton2 );
    setTabOrder( PushButton2, PushButton3 );
    setTabOrder( PushButton3, PushButton4 );
    setTabOrder( PushButton4, choosesubcombo );
    setTabOrder( choosesubcombo, PushButton1 );
    setTabOrder( PushButton1, dcispin );
    setTabOrder( dcispin, cfispin );
    setTabOrder( cfispin, wslspin );
    setTabOrder( wslspin, effectcheckbox );
    setTabOrder( effectcheckbox, menueffect );
    setTabOrder( menueffect, comboeffect );
    setTabOrder( comboeffect, tooltipeffect );
    setTabOrder( tooltipeffect, strutwidth );
    setTabOrder( strutwidth, strutheight );
    setTabOrder( strutheight, libpathlineedit );
    setTabOrder( libpathlineedit, PushButton5 );
    setTabOrder( PushButton5, PushButton6 );
    setTabOrder( PushButton6, PushButton7 );
    setTabOrder( PushButton7, PushButton8 );
    setTabOrder( PushButton8, PushButton9 );
    setTabOrder( PushButton9, sublistbox );
    setTabOrder( sublistbox, libpathlistbox );

    // buddies
    gstylebuddy->setBuddy( gstylecombo );
    labelMainColor->setBuddy( buttonMainColor );
    labelMainColor2->setBuddy( buttonMainColor2 );
    TextLabel1->setBuddy( paletteCombo );
    stylebuddy->setBuddy( stylecombo );
    psizebuddy->setBuddy( psizecombo );
    familybuddy->setBuddy( familycombo );
    famsubbuddy->setBuddy( familysubcombo );
    choosebuddy->setBuddy( choosesubcombo );
    dcibuddy->setBuddy( dcispin );
    cfibuddy->setBuddy( cfispin );
    wslbuddy->setBuddy( wslspin );
    meffectbuddy->setBuddy( menueffect );
    ceffectbuddy->setBuddy( comboeffect );
    teffectbuddy->setBuddy( tooltipeffect );
    beffectbuddy->setBuddy( toolboxeffect );
    swbuddy->setBuddy( strutwidth );
    shbuddy->setBuddy( strutheight );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void MainWindowBase::languageChange()
{
    setCaption( tr( "TQt Configuration" ) );
    helpview->setText( tr( "<p align=center><b>Documentation</b></p>\n"
"<p>This TQTextView will display a brief explanation about the current page, so that the user isn't confused about the settings he/she is twiddling.</p>" ) );
    GroupBox40->setTitle( tr( "GUI Style" ) );
    gstylebuddy->setText( tr( "Select GUI &Style:" ) );
    groupAutoPalette->setTitle( tr( "Build Palette" ) );
    labelMainColor->setText( tr( "&3-D Effects:" ) );
    labelMainColor2->setText( tr( "Back&ground:" ) );
    btnAdvanced->setText( tr( "&Tune Palette..." ) );
    GroupBox126->setTitle( tr( "Preview" ) );
    TextLabel1->setText( tr( "Select &Palette:" ) );
    paletteCombo->clear();
    paletteCombo->insertItem( tr( "Active Palette" ) );
    paletteCombo->insertItem( tr( "Inactive Palette" ) );
    paletteCombo->insertItem( tr( "Disabled Palette" ) );
    TabWidget3->changeTab( tab, tr( "Appearance" ) );
    GroupBox1->setTitle( tr( "Default Font" ) );
    stylebuddy->setText( tr( "&Style:" ) );
    psizebuddy->setText( tr( "&Point Size:" ) );
    familybuddy->setText( tr( "F&amily:" ) );
    samplelineedit->setText( tr( "Sample Text" ) );
    GroupBox2->setTitle( tr( "Font Substitution" ) );
    famsubbuddy->setText( tr( "S&elect or Enter a Family:" ) );
    TextLabel5->setText( tr( "Current Substitutions:" ) );
    PushButton2->setText( tr( "Up" ) );
    PushButton3->setText( tr( "Down" ) );
    PushButton4->setText( tr( "Remove" ) );
    choosebuddy->setText( tr( "Select s&ubstitute Family:" ) );
    PushButton1->setText( tr( "Add" ) );
    TabWidget3->changeTab( tab_2, tr( "Fonts" ) );
    GroupBox4->setTitle( tr( "Feel Settings" ) );
    dcispin->setSuffix( tr( " ms" ) );
    dcibuddy->setText( tr( "&Double Click Interval:" ) );
    cfispin->setSuffix( tr( " ms" ) );
    cfispin->setSpecialValueText( tr( "No blinking" ) );
    cfibuddy->setText( tr( "&Cursor Flash Time:" ) );
    wslspin->setSuffix( tr( " lines" ) );
    wslbuddy->setText( tr( "Wheel &Scroll Lines:" ) );
    resolvelinks->setText( tr( "Resolve symlinks in URLs" ) );
    GroupBox3->setTitle( tr( "GUI Effects" ) );
    effectcheckbox->setText( tr( "&Enable" ) );
    meffectbuddy->setText( tr( "&Menu Effect:" ) );
    ceffectbuddy->setText( tr( "C&omboBox Effect:" ) );
    teffectbuddy->setText( tr( "&ToolTip Effect:" ) );
    beffectbuddy->setText( tr( "Tool&Box Effect:" ) );
    menueffect->clear();
    menueffect->insertItem( tr( "Disable" ) );
    menueffect->insertItem( tr( "Animate" ) );
    menueffect->insertItem( tr( "Fade" ) );
    menueffect->setCurrentItem( 0 );
    comboeffect->clear();
    comboeffect->insertItem( tr( "Disable" ) );
    comboeffect->insertItem( tr( "Animate" ) );
    tooltipeffect->clear();
    tooltipeffect->insertItem( tr( "Disable" ) );
    tooltipeffect->insertItem( tr( "Animate" ) );
    tooltipeffect->insertItem( tr( "Fade" ) );
    toolboxeffect->clear();
    toolboxeffect->insertItem( tr( "Disable" ) );
    toolboxeffect->insertItem( tr( "Animate" ) );
    GroupBox5->setTitle( tr( "Global Strut" ) );
    swbuddy->setText( tr( "Minimum &Width:" ) );
    shbuddy->setText( tr( "Minimum Hei&ght:" ) );
    strutwidth->setSuffix( tr( " pixels" ) );
    strutheight->setSuffix( tr( " pixels" ) );
    rtlExtensions->setText( tr( "Enhanced support for languages written right-to-left" ) );
    inputStyleLabel->setText( tr( "XIM Input Style:" ) );
    inputStyle->clear();
    inputStyle->insertItem( tr( "On The Spot" ) );
    inputStyle->insertItem( tr( "Over The Spot" ) );
    inputStyle->insertItem( tr( "Off The Spot" ) );
    inputStyle->insertItem( tr( "Root" ) );
    inputStyle->setCurrentItem( 0 );
    inputMethodLabel->setText( tr( "Default Input Method:" ) );
    TabWidget3->changeTab( tab_3, tr( "Interface" ) );
    GroupBox39->setTitle( tr( "Library Paths" ) );
    PushButton8->setText( tr( "Down" ) );
    PushButton9->setText( tr( "Remove" ) );
    PushButton7->setText( tr( "Up" ) );
    TextLabel15->setText( tr( "Press the <b>Browse</b> button or enter a directory and press Enter to add them to the list." ) );
    PushButton5->setText( tr( "Browse..." ) );
    PushButton6->setText( tr( "Add" ) );
    TabWidget3->changeTab( tab_4, tr( "Library Paths" ) );
    fontembeddingcheckbox->setText( tr( "Enable Font embedding" ) );
    GroupBox10->setTitle( tr( "Font Paths" ) );
    PushButton11->setText( tr( "Up" ) );
    PushButton13->setText( tr( "Remove" ) );
    PushButton12->setText( tr( "Down" ) );
    TextLabel15_2->setText( tr( "Press the <b>Browse</b> button or enter a directory and press Enter to add them to the list." ) );
    PushButton15->setText( tr( "Add" ) );
    PushButton14->setText( tr( "Browse..." ) );
    TabWidget3->changeTab( tab_5, tr( "Printer" ) );
    fileSaveAction->setText( tr( "Save" ) );
    fileSaveAction->setMenuText( tr( "&Save" ) );
    fileSaveAction->setAccel( tr( "Ctrl+S" ) );
    fileExitAction->setText( tr( "Exit" ) );
    fileExitAction->setMenuText( tr( "E&xit" ) );
    helpAboutAction->setText( tr( "About" ) );
    helpAboutAction->setMenuText( tr( "&About" ) );
    helpAboutTQtAction->setText( tr( "About TQt" ) );
    helpAboutTQtAction->setMenuText( tr( "About &TQt" ) );
    if (menubar->findItem(1))
        menubar->findItem(1)->setText( tr( "&File" ) );
    if (menubar->findItem(2))
        menubar->findItem(2)->setText( tr( "&Help" ) );
}

void MainWindowBase::init()
{
}

void MainWindowBase::destroy()
{
}

void MainWindowBase::addFontpath()
{
    tqWarning( "MainWindowBase::addFontpath(): Not implemented yet" );
}

void MainWindowBase::addLibpath()
{
    tqWarning( "MainWindowBase::addLibpath(): Not implemented yet" );
}

void MainWindowBase::addSubstitute()
{
    tqWarning( "MainWindowBase::addSubstitute(): Not implemented yet" );
}

void MainWindowBase::browseFontpath()
{
    tqWarning( "MainWindowBase::browseFontpath(): Not implemented yet" );
}

void MainWindowBase::browseLibpath()
{
    tqWarning( "MainWindowBase::browseLibpath(): Not implemented yet" );
}

void MainWindowBase::buildFont()
{
    tqWarning( "MainWindowBase::buildFont(): Not implemented yet" );
}

void MainWindowBase::buildPalette()
{
    tqWarning( "MainWindowBase::buildPalette(): Not implemented yet" );
}

void MainWindowBase::downFontpath()
{
    tqWarning( "MainWindowBase::downFontpath(): Not implemented yet" );
}

void MainWindowBase::downLibpath()
{
    tqWarning( "MainWindowBase::downLibpath(): Not implemented yet" );
}

void MainWindowBase::downSubstitute()
{
    tqWarning( "MainWindowBase::downSubstitute(): Not implemented yet" );
}

void MainWindowBase::familySelected(const TQString&)
{
    tqWarning( "MainWindowBase::familySelected(const TQString&): Not implemented yet" );
}

void MainWindowBase::fileExit()
{
    tqWarning( "MainWindowBase::fileExit(): Not implemented yet" );
}

void MainWindowBase::fileSave()
{
    tqWarning( "MainWindowBase::fileSave(): Not implemented yet" );
}

void MainWindowBase::helpAbout()
{
    tqWarning( "MainWindowBase::helpAbout(): Not implemented yet" );
}

void MainWindowBase::helpAboutTQt()
{
    tqWarning( "MainWindowBase::helpAboutTQt(): Not implemented yet" );
}

void MainWindowBase::new_slot()
{
    tqWarning( "MainWindowBase::new_slot(): Not implemented yet" );
}

void MainWindowBase::pageChanged(TQWidget*)
{
    tqWarning( "MainWindowBase::pageChanged(TQWidget*): Not implemented yet" );
}

void MainWindowBase::paletteSelected(int)
{
    tqWarning( "MainWindowBase::paletteSelected(int): Not implemented yet" );
}

void MainWindowBase::removeFontpath()
{
    tqWarning( "MainWindowBase::removeFontpath(): Not implemented yet" );
}

void MainWindowBase::removeLibpath()
{
    tqWarning( "MainWindowBase::removeLibpath(): Not implemented yet" );
}

void MainWindowBase::removeSubstitute()
{
    tqWarning( "MainWindowBase::removeSubstitute(): Not implemented yet" );
}

void MainWindowBase::somethingModified()
{
    tqWarning( "MainWindowBase::somethingModified(): Not implemented yet" );
}

void MainWindowBase::styleSelected(const TQString&)
{
    tqWarning( "MainWindowBase::styleSelected(const TQString&): Not implemented yet" );
}

void MainWindowBase::substituteSelected(const TQString&)
{
    tqWarning( "MainWindowBase::substituteSelected(const TQString&): Not implemented yet" );
}

void MainWindowBase::tunePalette()
{
    tqWarning( "MainWindowBase::tunePalette(): Not implemented yet" );
}

void MainWindowBase::upFontpath()
{
    tqWarning( "MainWindowBase::upFontpath(): Not implemented yet" );
}

void MainWindowBase::upLibpath()
{
    tqWarning( "MainWindowBase::upLibpath(): Not implemented yet" );
}

void MainWindowBase::upSubstitute()
{
    tqWarning( "MainWindowBase::upSubstitute(): Not implemented yet" );
}

