/****************************************************************************
** Form implementation generated from reading ui file 'toresultlistformatui.ui'
**
** Created: Tue Sep 18 08:21:29 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 "toresultlistformatui.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qcombobox.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/*
 *  Constructs a toResultListFormatUI as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
toResultListFormatUI::toResultListFormatUI( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "toResultListFormatUI" );
    toResultListFormatUILayout = new QGridLayout( this, 1, 1, 11, 6, "toResultListFormatUILayout"); 

    PushButton2 = new QPushButton( this, "PushButton2" );

    toResultListFormatUILayout->addWidget( PushButton2, 5, 2 );

    PushButton1 = new QPushButton( this, "PushButton1" );
    PushButton1->setDefault( TRUE );

    toResultListFormatUILayout->addWidget( PushButton1, 5, 1 );

    Format = new QComboBox( FALSE, this, "Format" );

    toResultListFormatUILayout->addMultiCellWidget( Format, 1, 1, 0, 2 );

    TextLabel1 = new QLabel( this, "TextLabel1" );
    TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );

    toResultListFormatUILayout->addMultiCellWidget( TextLabel1, 0, 0, 0, 2 );

    Separator = new QLineEdit( this, "Separator" );

    toResultListFormatUILayout->addWidget( Separator, 3, 0 );

    TextLabel1_2 = new QLabel( this, "TextLabel1_2" );

    toResultListFormatUILayout->addWidget( TextLabel1_2, 2, 0 );

    TextLabel2 = new QLabel( this, "TextLabel2" );

    toResultListFormatUILayout->addMultiCellWidget( TextLabel2, 2, 2, 1, 2 );

    Delimiter = new QLineEdit( this, "Delimiter" );

    toResultListFormatUILayout->addMultiCellWidget( Delimiter, 3, 3, 1, 2 );
    Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    toResultListFormatUILayout->addItem( Spacer2, 4, 0 );
    Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    toResultListFormatUILayout->addItem( Spacer1, 5, 0 );
    languageChange();
    resize( QSize(356, 199).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( PushButton1, SIGNAL( clicked() ), this, SLOT( accept() ) );
    connect( PushButton2, SIGNAL( clicked() ), this, SLOT( reject() ) );
    connect( Format, SIGNAL( activated(int) ), this, SLOT( formatChanged(int) ) );

    // tab order
    setTabOrder( Format, Separator );
    setTabOrder( Separator, Delimiter );
    setTabOrder( Delimiter, PushButton1 );
    setTabOrder( PushButton1, PushButton2 );

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

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void toResultListFormatUI::languageChange()
{
    setCaption( tr( "Choose format" ) );
    PushButton2->setText( tr( "Cancel" ) );
    PushButton1->setText( tr( "&Ok" ) );
    TextLabel1->setText( tr( "&Choose format of exported file." ) );
    TextLabel1_2->setText( tr( "Separator" ) );
    TextLabel2->setText( tr( "Delimiter" ) );
}

void toResultListFormatUI::formatChanged(int)
{
    qWarning( "toResultListFormatUI::formatChanged(int): Not implemented yet" );
}

