#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './prefthemelayout.ui'
**
** Created: Mon Sep 6 01:24:08 2004
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.2.1   edited May 19 14:22 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "prefthemelayout.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qgroupbox.h>
#include <klistbox.h>
#include <qlabel.h>
#include <klineedit.h>
#include <ktextbrowser.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/*
 *  Constructs a PrefThemeLayout as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
PrefThemeLayout::PrefThemeLayout( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "PrefThemeLayout" );
    PrefThemeLayoutLayout = new QGridLayout( this, 1, 1, 11, 6, "PrefThemeLayoutLayout"); 

    groupBox1 = new QGroupBox( this, "groupBox1" );
    QFont groupBox1_font(  groupBox1->font() );
    groupBox1_font.setPointSize( 14 );
    groupBox1->setFont( groupBox1_font ); 
    groupBox1->setAlignment( int( QGroupBox::AlignHCenter ) );
    groupBox1->setColumnLayout(0, Qt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new QGridLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( Qt::AlignTop );

    layout39 = new QVBoxLayout( 0, 0, 6, "layout39"); 

    themeListBox = new KListBox( groupBox1, "themeListBox" );
    themeListBox->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, themeListBox->sizePolicy().hasHeightForWidth() ) );
    themeListBox->setMinimumSize( QSize( 0, 120 ) );
    themeListBox->setPaletteForegroundColor( QColor( 0, 0, 0 ) );
    themeListBox->setPaletteBackgroundColor( QColor( 255, 255, 255 ) );
    QFont themeListBox_font(  themeListBox->font() );
    themeListBox_font.setPointSize( 12 );
    themeListBox_font.setBold( TRUE );
    themeListBox->setFont( themeListBox_font ); 
    themeListBox->setFrameShape( KListBox::Panel );
    themeListBox->setFrameShadow( KListBox::Sunken );
    layout39->addWidget( themeListBox );

    textLabel2 = new QLabel( groupBox1, "textLabel2" );
    QFont textLabel2_font(  textLabel2->font() );
    textLabel2_font.setPointSize( 10 );
    textLabel2_font.setBold( TRUE );
    textLabel2->setFont( textLabel2_font ); 
    layout39->addWidget( textLabel2 );

    currentThemeTextLabel = new QLabel( groupBox1, "currentThemeTextLabel" );
    currentThemeTextLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, currentThemeTextLabel->sizePolicy().hasHeightForWidth() ) );
    currentThemeTextLabel->setMinimumSize( QSize( 0, 0 ) );
    QFont currentThemeTextLabel_font(  currentThemeTextLabel->font() );
    currentThemeTextLabel_font.setPointSize( 10 );
    currentThemeTextLabel_font.setBold( TRUE );
    currentThemeTextLabel->setFont( currentThemeTextLabel_font ); 
    currentThemeTextLabel->setTextFormat( QLabel::AutoText );
    currentThemeTextLabel->setAlignment( int( QLabel::AlignCenter ) );
    layout39->addWidget( currentThemeTextLabel );

    newThemeButton = new QPushButton( groupBox1, "newThemeButton" );
    newThemeButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, newThemeButton->sizePolicy().hasHeightForWidth() ) );
    QFont newThemeButton_font(  newThemeButton->font() );
    newThemeButton_font.setPointSize( 10 );
    newThemeButton->setFont( newThemeButton_font ); 
    layout39->addWidget( newThemeButton );

    deleteThemeButton = new QPushButton( groupBox1, "deleteThemeButton" );
    deleteThemeButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, deleteThemeButton->sizePolicy().hasHeightForWidth() ) );
    QFont deleteThemeButton_font(  deleteThemeButton->font() );
    deleteThemeButton_font.setPointSize( 10 );
    deleteThemeButton->setFont( deleteThemeButton_font ); 
    layout39->addWidget( deleteThemeButton );

    themeLineEdit = new KLineEdit( groupBox1, "themeLineEdit" );
    themeLineEdit->setEnabled( FALSE );
    themeLineEdit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, themeLineEdit->sizePolicy().hasHeightForWidth() ) );
    themeLineEdit->setFrameShape( KLineEdit::NoFrame );
    themeLineEdit->setFrameShadow( KLineEdit::Plain );
    layout39->addWidget( themeLineEdit );

    groupBox1Layout->addLayout( layout39, 0, 2 );

    kTextBrowser3 = new KTextBrowser( groupBox1, "kTextBrowser3" );
    QFont kTextBrowser3_font(  kTextBrowser3->font() );
    kTextBrowser3_font.setPointSize( 10 );
    kTextBrowser3->setFont( kTextBrowser3_font ); 
    kTextBrowser3->setFrameShape( KTextBrowser::Box );
    kTextBrowser3->setFrameShadow( KTextBrowser::Sunken );
    kTextBrowser3->setResizePolicy( KTextBrowser::AutoOne );
    kTextBrowser3->setTabStopWidth( 80 );

    groupBox1Layout->addWidget( kTextBrowser3, 0, 0 );
    QSpacerItem* spacer = new QSpacerItem( 90, 21, QSizePolicy::Fixed, QSizePolicy::Minimum );
    groupBox1Layout->addItem( spacer, 0, 1 );

    PrefThemeLayoutLayout->addWidget( groupBox1, 1, 0 );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding );
    PrefThemeLayoutLayout->addItem( spacer_2, 0, 0 );
    QSpacerItem* spacer_3 = new QSpacerItem( 20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding );
    PrefThemeLayoutLayout->addItem( spacer_3, 2, 0 );
    languageChange();
    resize( QSize(587, 402).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void PrefThemeLayout::languageChange()
{
    setCaption( tr2i18n( "Form1" ) );
    groupBox1->setTitle( tr2i18n( "Icon Themes" ) );
    textLabel2->setText( tr2i18n( "<p align=\"center\">Your Current Theme is</p>" ) );
    newThemeButton->setText( tr2i18n( "Install New Theme" ) );
    QToolTip::add( newThemeButton, tr2i18n( "<qt>you only need to point<br>to the directory your theme is installed in.</qt> " ) );
    deleteThemeButton->setText( tr2i18n( "Delete Theme" ) );
    QToolTip::add( deleteThemeButton, tr2i18n( "Deletes the current selected Theme" ) );
    kTextBrowser3->setText( tr2i18n( "<b><qt><p align=\"center\"><br><br>Download Dock Icon Themes from<br><br>\n"
"<a href=\"http://kdslbroadband.sourceforge.net/downloads.html\">kdslbroadband.sourceforge.net</a><br><br>\n"
"\n"
"To install your Dock Icon Themes, just\n"
"press the install button and select the \n"
"file you downloaded.  Dock Icon Themes \n"
"will be installed automatically.</p></qt></b>" ) );
}

#include "prefthemelayout.moc"
