/****************************************************************************
** Form implementation generated from reading ui file 'totuningsettingui.ui'
**
** Created: Tue Sep 18 08:21:27 2007
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.8   edited Jan 11 14:47 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "totuningsettingui.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qgroupbox.h>
#include <qheader.h>
#include <qlistview.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

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

    ServerTuning = new QGroupBox( this, "ServerTuning" );
    ServerTuning->setColumnLayout(0, Qt::Vertical );
    ServerTuning->layout()->setSpacing( 6 );
    ServerTuning->layout()->setMargin( 11 );
    ServerTuningLayout = new QGridLayout( ServerTuning->layout() );
    ServerTuningLayout->setAlignment( Qt::AlignTop );

    EnabledTabs = new QListView( ServerTuning, "EnabledTabs" );
    EnabledTabs->addColumn( tr( "Available tabs" ) );
    EnabledTabs->setSelectionMode( QListView::Multi );

    ServerTuningLayout->addWidget( EnabledTabs, 1, 0 );

    TextLabel1 = new QLabel( ServerTuning, "TextLabel1" );

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

    toTuningSettingUILayout->addWidget( ServerTuning, 0, 0 );
    languageChange();
    resize( QSize(588, 480).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // buddies
    TextLabel1->setBuddy( EnabledTabs );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void toTuningSettingUI::languageChange()
{
    setCaption( tr( "Form1" ) );
    ServerTuning->setTitle( tr( "Server tuning" ) );
    EnabledTabs->header()->setLabel( 0, tr( "Available tabs" ) );
    TextLabel1->setText( tr( "&Enabled background views" ) );
    QToolTip::add( TextLabel1, tr( "Select which views collect data in the background that should be run." ) );
}

