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

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

/*
 *  Constructs a toHelpAddFileUI 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.
 */
toHelpAddFileUI::toHelpAddFileUI( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "toHelpAddFileUI" );
    toHelpAddFileUILayout = new QGridLayout( this, 1, 1, 11, 6, "toHelpAddFileUILayout"); 

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

    toHelpAddFileUILayout->addMultiCellWidget( Filename, 3, 3, 0, 1 );

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

    toHelpAddFileUILayout->addWidget( Browse, 3, 2 );

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

    toHelpAddFileUILayout->addMultiCellWidget( Root, 1, 1, 0, 2 );

    Line1 = new QFrame( this, "Line1" );
    Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken );

    toHelpAddFileUILayout->addMultiCellWidget( Line1, 4, 4, 0, 2 );
    Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    toHelpAddFileUILayout->addItem( Spacer1, 5, 0 );

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

    toHelpAddFileUILayout->addWidget( PushButton2_2, 5, 2 );

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

    toHelpAddFileUILayout->addWidget( OkButton, 5, 1 );

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

    toHelpAddFileUILayout->addMultiCellWidget( TextLabel1_2, 2, 2, 0, 2 );

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

    toHelpAddFileUILayout->addMultiCellWidget( TextLabel1, 0, 0, 0, 2 );
    languageChange();
    resize( QSize(434, 164).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( OkButton, SIGNAL( clicked() ), this, SLOT( accept() ) );
    connect( PushButton2_2, SIGNAL( clicked() ), this, SLOT( reject() ) );
    connect( Browse, SIGNAL( clicked() ), this, SLOT( browse() ) );
    connect( Root, SIGNAL( textChanged(const QString&) ), this, SLOT( valid() ) );
    connect( Filename, SIGNAL( textChanged(const QString&) ), this, SLOT( valid() ) );

    // tab order
    setTabOrder( Root, Filename );
    setTabOrder( Filename, Browse );
    setTabOrder( Browse, OkButton );
    setTabOrder( OkButton, PushButton2_2 );

    // buddies
    TextLabel1_2->setBuddy( Root );
    TextLabel1->setBuddy( Root );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void toHelpAddFileUI::languageChange()
{
    setCaption( tr( "Add help directory" ) );
    Browse->setText( tr( "&Browse" ) );
    PushButton2_2->setText( tr( "Canel" ) );
    OkButton->setText( tr( "&Ok" ) );
    TextLabel1_2->setText( tr( "&Table of contents file" ) );
    TextLabel1->setText( tr( "&Title" ) );
}

void toHelpAddFileUI::browse()
{
    qWarning( "toHelpAddFileUI::browse(): Not implemented yet" );
}

void toHelpAddFileUI::valid()
{
    qWarning( "toHelpAddFileUI::valid(): Not implemented yet" );
}

