#include <kdialog.h>
#include <tdelocale.h>

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

#include "configdialog.h"

#include <ntqvariant.h>
#include <kcolorbutton.h>
#include <knuminput.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqcheckbox.h>
#include <ntqlabel.h>
#include <ntqcombobox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a ConfigDialog as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
ConfigDialog::ConfigDialog( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "ConfigDialog" );
    ConfigDialogLayout = new TQGridLayout( this, 1, 1, 0, 6, "ConfigDialogLayout"); 

    tabWidget2 = new TQTabWidget( this, "tabWidget2" );

    tab = new TQWidget( tabWidget2, "tab" );
    tabLayout = new TQGridLayout( tab, 1, 1, 11, 6, "tabLayout"); 

    titleAlign = new TQButtonGroup( tab, "titleAlign" );
    titleAlign->setColumnLayout(0, TQt::Vertical );
    titleAlign->layout()->setSpacing( 6 );
    titleAlign->layout()->setMargin( 11 );
    titleAlignLayout = new TQHBoxLayout( titleAlign->layout() );
    titleAlignLayout->setAlignment( TQt::AlignTop );

    AlignLeft = new TQRadioButton( titleAlign, "AlignLeft" );
    titleAlignLayout->addWidget( AlignLeft );

    AlignHCenter = new TQRadioButton( titleAlign, "AlignHCenter" );
    titleAlignLayout->addWidget( AlignHCenter );

    AlignRight = new TQRadioButton( titleAlign, "AlignRight" );
    titleAlignLayout->addWidget( AlignRight );

    tabLayout->addWidget( titleAlign, 0, 0 );

    roundCorners = new TQButtonGroup( tab, "roundCorners" );
    roundCorners->setColumnLayout(0, TQt::Vertical );
    roundCorners->layout()->setSpacing( 6 );
    roundCorners->layout()->setMargin( 11 );
    roundCornersLayout = new TQHBoxLayout( roundCorners->layout() );
    roundCornersLayout->setAlignment( TQt::AlignTop );

    RoundAlways = new TQRadioButton( roundCorners, "RoundAlways" );
    roundCornersLayout->addWidget( RoundAlways );

    NotMaximized = new TQRadioButton( roundCorners, "NotMaximized" );
    roundCornersLayout->addWidget( NotMaximized );

    RoundNever = new TQRadioButton( roundCorners, "RoundNever" );
    roundCornersLayout->addWidget( RoundNever );

    tabLayout->addWidget( roundCorners, 1, 0 );

    menuClose = new TQCheckBox( tab, "menuClose" );

    tabLayout->addWidget( menuClose, 2, 0 );

    titleShadow = new TQCheckBox( tab, "titleShadow" );

    tabLayout->addWidget( titleShadow, 3, 0 );

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

    addSpace = new KIntSpinBox( tab, "addSpace" );
    addSpace->setMaxValue( 20 );
    layout6->addWidget( addSpace );

    textLabel1_4 = new TQLabel( tab, "textLabel1_4" );
    textLabel1_4->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, textLabel1_4->sizePolicy().hasHeightForWidth() ) );
    layout6->addWidget( textLabel1_4 );
    spacer8 = new TQSpacerItem( 71, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout6->addItem( spacer8 );

    tabLayout->addLayout( layout6, 4, 0 );

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

    textLabel1_5 = new TQLabel( tab, "textLabel1_5" );
    textLabel1_5->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, textLabel1_5->sizePolicy().hasHeightForWidth() ) );
    layout7->addWidget( textLabel1_5 );

    titlebarStyle = new TQComboBox( false, tab, "titlebarStyle" );
    layout7->addWidget( titlebarStyle );
    spacer9 = new TQSpacerItem( 301, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout7->addItem( spacer9 );

    tabLayout->addLayout( layout7, 5, 0 );
    tabWidget2->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( tabWidget2, "tab_2" );
    tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); 

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

    textLabel1_2 = new TQLabel( tab_2, "textLabel1_2" );
    textLabel1_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, textLabel1_2->sizePolicy().hasHeightForWidth() ) );
    layout5->addWidget( textLabel1_2 );

    buttonType = new TQComboBox( false, tab_2, "buttonType" );
    layout5->addWidget( buttonType );
    spacer5 = new TQSpacerItem( 41, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout5->addItem( spacer5 );

    tabLayout_2->addLayout( layout5, 0, 0 );
    spacer12 = new TQSpacerItem( 350, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_2->addMultiCell( spacer12, 6, 6, 0, 1 );

    customColors = new TQCheckBox( tab_2, "customColors" );

    tabLayout_2->addWidget( customColors, 1, 0 );

    useTitleProps = new TQCheckBox( tab_2, "useTitleProps" );

    tabLayout_2->addWidget( useTitleProps, 2, 0 );

    animateButtons = new TQCheckBox( tab_2, "animateButtons" );

    tabLayout_2->addWidget( animateButtons, 3, 0 );

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

    textLabel1_3 = new TQLabel( tab_2, "textLabel1_3" );
    textLabel1_3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, textLabel1_3->sizePolicy().hasHeightForWidth() ) );
    layout5_2->addWidget( textLabel1_3 );

    iconSize = new KIntSpinBox( tab_2, "iconSize" );
    iconSize->setMaxValue( 80 );
    iconSize->setMinValue( 20 );
    layout5_2->addWidget( iconSize );
    spacer7 = new TQSpacerItem( 171, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout5_2->addItem( spacer7 );

    tabLayout_2->addLayout( layout5_2, 5, 0 );

    redCloseButton = new TQCheckBox( tab_2, "redCloseButton" );

    tabLayout_2->addWidget( redCloseButton, 4, 0 );

    customIconColors = new TQCheckBox( tab_2, "customIconColors" );

    tabLayout_2->addWidget( customIconColors, 0, 1 );
    spacer11_2 = new TQSpacerItem( 16, 120, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout_2->addMultiCell( spacer11_2, 1, 4, 2, 2 );

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

    layout11 = new TQVBoxLayout( 0, 0, 6, "layout11"); 

    activeLbl = new TQLabel( tab_2, "activeLbl" );
    layout11->addWidget( activeLbl );

    activeDownLbl = new TQLabel( tab_2, "activeDownLbl" );
    layout11->addWidget( activeDownLbl );

    inactiveLbl = new TQLabel( tab_2, "inactiveLbl" );
    layout11->addWidget( inactiveLbl );

    inactiveDownLbl = new TQLabel( tab_2, "inactiveDownLbl" );
    layout11->addWidget( inactiveDownLbl );
    layout13->addLayout( layout11 );

    layout12 = new TQVBoxLayout( 0, 0, 6, "layout12"); 

    activeFgColor = new KColorButton( tab_2, "activeFgColor" );
    layout12->addWidget( activeFgColor );

    activeBgColor = new KColorButton( tab_2, "activeBgColor" );
    layout12->addWidget( activeBgColor );

    inactiveFgColor = new KColorButton( tab_2, "inactiveFgColor" );
    layout12->addWidget( inactiveFgColor );

    inactiveBgColor = new KColorButton( tab_2, "inactiveBgColor" );
    layout12->addWidget( inactiveBgColor );
    layout13->addLayout( layout12 );

    tabLayout_2->addMultiCellLayout( layout13, 1, 4, 1, 1 );

    iconShadow = new TQCheckBox( tab_2, "iconShadow" );

    tabLayout_2->addWidget( iconShadow, 5, 1 );
    tabWidget2->insertTab( tab_2, TQString::fromLatin1("") );

    TabPage = new TQWidget( tabWidget2, "TabPage" );
    TabPageLayout = new TQGridLayout( TabPage, 1, 1, 11, 6, "TabPageLayout"); 
    spacer13 = new TQSpacerItem( 330, 41, TQSizePolicy::Minimum, TQSizePolicy::MinimumExpanding );
    TabPageLayout->addMultiCell( spacer13, 3, 3, 1, 4 );

    textLabel1 = new TQLabel( TabPage, "textLabel1" );
    textLabel1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );

    TabPageLayout->addWidget( textLabel1, 2, 0 );

    logoImage = new TQLabel( TabPage, "logoImage" );
    logoImage->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, logoImage->sizePolicy().hasHeightForWidth() ) );
    logoImage->setMinimumSize( TQSize( 20, 20 ) );
    logoImage->setMaximumSize( TQSize( 120, 20 ) );
    logoImage->setFrameShape( TQLabel::GroupBoxPanel );
    logoImage->setFrameShadow( TQLabel::Plain );

    TabPageLayout->addMultiCellWidget( logoImage, 2, 2, 1, 2 );

    textLabel2 = new TQLabel( TabPage, "textLabel2" );
    textLabel2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, textLabel2->sizePolicy().hasHeightForWidth() ) );

    TabPageLayout->addMultiCellWidget( textLabel2, 1, 1, 0, 1 );

    titleBarLogoOffset = new KIntSpinBox( TabPage, "titleBarLogoOffset" );
    titleBarLogoOffset->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, titleBarLogoOffset->sizePolicy().hasHeightForWidth() ) );
    titleBarLogoOffset->setMinValue( 0 );

    TabPageLayout->addWidget( titleBarLogoOffset, 1, 2 );
    spacer6 = new TQSpacerItem( 336, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    TabPageLayout->addMultiCell( spacer6, 1, 1, 3, 4 );

    selectButton = new TQPushButton( TabPage, "selectButton" );

    TabPageLayout->addWidget( selectButton, 2, 3 );
    spacer3_2 = new TQSpacerItem( 220, 20, TQSizePolicy::MinimumExpanding, TQSizePolicy::Minimum );
    TabPageLayout->addItem( spacer3_2, 2, 4 );

    titleBarLogo = new TQCheckBox( TabPage, "titleBarLogo" );

    TabPageLayout->addMultiCellWidget( titleBarLogo, 0, 0, 0, 4 );
    tabWidget2->insertTab( TabPage, TQString::fromLatin1("") );

    ConfigDialogLayout->addWidget( tabWidget2, 0, 0 );
    languageChange();
    resize( TQSize(538, 277).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( AlignLeft, AlignHCenter );
    setTabOrder( AlignHCenter, AlignRight );
    setTabOrder( AlignRight, RoundAlways );
    setTabOrder( RoundAlways, NotMaximized );
    setTabOrder( NotMaximized, RoundNever );
    setTabOrder( RoundNever, titleShadow );
    setTabOrder( titleShadow, animateButtons );
    setTabOrder( animateButtons, buttonType );
    setTabOrder( buttonType, menuClose );
    setTabOrder( menuClose, titleBarLogo );
    setTabOrder( titleBarLogo, titleBarLogoOffset );
    setTabOrder( titleBarLogoOffset, selectButton );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ConfigDialog::languageChange()
{
    setCaption( tr2i18n( "Config Dialog" ) );
    titleAlign->setTitle( tr2i18n( "Title Alignment" ) );
    AlignLeft->setText( tr2i18n( "&Left" ) );
    TQWhatsThis::add( AlignLeft, tr2i18n( "Align the title left." ) );
    AlignHCenter->setText( tr2i18n( "&Center" ) );
    TQWhatsThis::add( AlignHCenter, tr2i18n( "Center the title." ) );
    AlignRight->setText( tr2i18n( "&Right" ) );
    TQWhatsThis::add( AlignRight, tr2i18n( "Align the title right." ) );
    roundCorners->setTitle( tr2i18n( "Rounded Top Corners" ) );
    RoundAlways->setText( tr2i18n( "Alwa&ys" ) );
    TQWhatsThis::add( RoundAlways, tr2i18n( "Always draw rounded window top corners." ) );
    NotMaximized->setText( tr2i18n( "Not maximi&zed" ) );
    TQWhatsThis::add( NotMaximized, tr2i18n( "Draw rounded top corners if the window is not maximized." ) );
    RoundNever->setText( tr2i18n( "Ne&ver" ) );
    TQWhatsThis::add( RoundNever, tr2i18n( "Never draw rounded window top corners." ) );
    menuClose->setText( tr2i18n( "Close &windows by double clicking the menu button" ) );
    TQWhatsThis::add( menuClose, tr2i18n( "Check this option if you want windows to be closed when you double click the menu button, similar to Microsoft Windows." ) );
    titleShadow->setText( tr2i18n( "Use shadowed &text" ) );
    TQWhatsThis::add( titleShadow, tr2i18n( "Check this option if you want the titlebar text to have a 3D look with a shadow behind it." ) );
    addSpace->setSuffix( tr2i18n( " px" ) );
    TQWhatsThis::add( addSpace, tr2i18n( "Here you can set some additional space for the titlebar height." ) );
    textLabel1_4->setText( tr2i18n( "additional space for title height" ) );
    textLabel1_5->setText( tr2i18n( "Titlebarstyle:" ) );
    titlebarStyle->clear();
    titlebarStyle->insertItem( tr2i18n( "Toplight" ) );
    titlebarStyle->insertItem( tr2i18n( "Balanced" ) );
    TQWhatsThis::add( titlebarStyle, tr2i18n( "Select the titlebar style." ) );
    tabWidget2->changeTab( tab, tr2i18n( "Ge&neral" ) );
    textLabel1_2->setText( tr2i18n( "Buttontype:" ) );
    buttonType->clear();
    buttonType->insertItem( tr2i18n( "Plastik flat" ) );
    buttonType->insertItem( tr2i18n( "Lipstik flat" ) );
    buttonType->insertItem( tr2i18n( "Plastik 3D" ) );
    buttonType->insertItem( tr2i18n( "Lipstik 3D" ) );
    buttonType->insertItem( tr2i18n( "Lipstik bright" ) );
    TQWhatsThis::add( buttonType, tr2i18n( "Select the buttontype." ) );
    customColors->setText( tr2i18n( "Custom colors for button bac&kground" ) );
    TQWhatsThis::add( customColors, tr2i18n( "Allow custom colors for the button background. The colors for the buttonbackground from the colorscheme are used then." ) );
    useTitleProps->setText( tr2i18n( "&Use titlefont settings for button icons" ) );
    TQWhatsThis::add( useTitleProps, tr2i18n( "Use the titlefont settings (color, shadow) for the button icons. Overrides the custom color settings." ) );
    animateButtons->setText( tr2i18n( "A&nimate buttons" ) );
    TQWhatsThis::add( animateButtons, tr2i18n( "Check this option if you want the buttons to fade in when the mouse pointer hovers over them and fade out again when it moves away." ) );
    textLabel1_3->setText( tr2i18n( "Iconsize:" ) );
    iconSize->setSuffix( tr2i18n( " %" ) );
    TQWhatsThis::add( iconSize, tr2i18n( "Here you can set the size of the button icons relative to the button size." ) );
    redCloseButton->setText( tr2i18n( "&Red closebutton icon" ) );
    TQWhatsThis::add( redCloseButton, tr2i18n( "Paint the icon of the closebutton in red (this overrides all other colorsettings)." ) );
    customIconColors->setText( tr2i18n( "&Custom icon colors" ) );
    TQWhatsThis::add( customIconColors, tr2i18n( "Allow custom colors for the button icons." ) );
    activeLbl->setText( tr2i18n( "Active:" ) );
    activeDownLbl->setText( tr2i18n( "Active down:" ) );
    inactiveLbl->setText( tr2i18n( "Inactive:" ) );
    inactiveDownLbl->setText( tr2i18n( "Inactive down:" ) );
    activeFgColor->setText( TQString::null );
    TQWhatsThis::add( activeFgColor, tr2i18n( "Color for the icon of the active button." ) );
    activeBgColor->setText( TQString::null );
    TQWhatsThis::add( activeBgColor, tr2i18n( "Color for the icon of the active button when pressed." ) );
    inactiveFgColor->setText( TQString::null );
    TQWhatsThis::add( inactiveFgColor, tr2i18n( "Color for the icon of the inactive button." ) );
    inactiveBgColor->setText( TQString::null );
    TQWhatsThis::add( inactiveBgColor, tr2i18n( "Color for the icon of the inactive button when pressed." ) );
    iconShadow->setText( tr2i18n( "Shado&w for icons" ) );
    TQWhatsThis::add( iconShadow, tr2i18n( "Check this if you want to have shadows for the button icons on active windows." ) );
    tabWidget2->changeTab( tab_2, tr2i18n( "Bu&ttons" ) );
    textLabel1->setText( tr2i18n( "Logo preview:" ) );
    logoImage->setText( TQString::null );
    textLabel2->setText( tr2i18n( "Offset from title:" ) );
    titleBarLogoOffset->setSuffix( tr2i18n( " px" ) );
    TQWhatsThis::add( titleBarLogoOffset, tr2i18n( "Set the offset of the logo from the titletext." ) );
    selectButton->setText( tr2i18n( "Sele&ct Image" ) );
    TQWhatsThis::add( selectButton, tr2i18n( "Select the titlebar logo image." ) );
    titleBarLogo->setText( tr2i18n( "Show &titlebar logo" ) );
    TQWhatsThis::add( titleBarLogo, tr2i18n( "Check this if you want to see the titlebar logo in the titlebar." ) );
    tabWidget2->changeTab( TabPage, tr2i18n( "&Logo" ) );
}

/****************************************************************************
** ConfigDialog meta object code from reading C++ file 'configdialog.h'
**
** Created by: The TQt Meta Object Compiler version 26 (TQt 3.5.0)
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef TQT_NO_COMPAT
#include "configdialog.h"
#include <ntqmetaobject.h>
#include <ntqapplication.h>

#include <private/qucomextra_p.h>
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
#error "This file was generated using the moc from 3.5.0. It"
#error "cannot be used with the include files from this version of TQt."
#error "(The moc has changed too much.)"
#endif

const char *ConfigDialog::className() const
{
    return "ConfigDialog";
}

TQMetaObject *ConfigDialog::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ConfigDialog( "ConfigDialog", &ConfigDialog::staticMetaObject );

#ifndef TQT_NO_TRANSLATION
TQString ConfigDialog::tr( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "ConfigDialog", s, c, TQApplication::DefaultCodec );
    else
	return TQString::fromLatin1( s );
}
#ifndef TQT_NO_TRANSLATION_UTF8
TQString ConfigDialog::trUtf8( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "ConfigDialog", s, c, TQApplication::UnicodeUTF8 );
    else
	return TQString::fromUtf8( s );
}
#endif // TQT_NO_TRANSLATION_UTF8

#endif // TQT_NO_TRANSLATION

TQMetaObject* ConfigDialog::staticMetaObject()
{
    if ( metaObj ) {
	return metaObj;
}
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->lock();
    if ( metaObj ) {
	if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
	return metaObj;
    }
#endif // TQT_THREAD_SUPPORT
    TQMetaObject* parentObject = TQWidget::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"ConfigDialog", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_ConfigDialog.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

void* ConfigDialog::tqt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "ConfigDialog" ) )
	return this;
    return TQWidget::tqt_cast( clname );
}

bool ConfigDialog::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

bool ConfigDialog::tqt_emit( int _id, TQUObject* _o )
{
    return TQWidget::tqt_emit(_id,_o);
}
#ifndef TQT_NO_PROPERTIES

bool ConfigDialog::tqt_property( int id, int f, TQVariant* v)
{
    return TQWidget::tqt_property( id, f, v);
}

bool ConfigDialog::tqt_static_property( TQObject* , int , int , TQVariant* ){ return false; }
#endif // TQT_NO_PROPERTIES
