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

#include "UiGuiInfoDialogBase.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqwidget.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a UiGuiInfoDialogBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
UiGuiInfoDialogBase::UiGuiInfoDialogBase( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "UiGuiInfoDialogBase" );
    UiGuiInfoDialogBaseLayout = new TQVBoxLayout( this, 11, 6, "UiGuiInfoDialogBaseLayout"); 

    tabWidget = new TQTabWidget( this, "tabWidget" );
    tabWidget->setCurrentPage( 0 );

    tabFile = new TQWidget( tabWidget, "tabFile" );
    tabFileLayout = new TQVBoxLayout( tabFile, 11, 6, "tabFileLayout"); 
    grid = new TQGridLayout( 0, 1, 1, 11, 6, "grid"); 

    filenameLabel = new TQLabel( tabFile, "filenameLabel" );

    grid->addWidget( filenameLabel, 0, 0 );

    leFilename = new TQLineEdit( tabFile, "leFilename" );
    leFilename->setReadOnly( true );

    grid->addWidget( leFilename, 0, 1 );

    configFilenameLabel = new TQLabel( tabFile, "configFilenameLabel" );

    grid->addWidget( configFilenameLabel, 1, 0 );

    leConfigFilename = new TQLineEdit( tabFile, "leConfigFilename" );
    leConfigFilename->setReadOnly( true );

    grid->addWidget( leConfigFilename, 1, 1 );

    indenterLabel = new TQLabel( tabFile, "indenterLabel" );

    grid->addWidget( indenterLabel, 2, 0 );

    leIndenter = new TQLineEdit( tabFile, "leIndenter" );
    leIndenter->setReadOnly( true );

    grid->addWidget( leIndenter, 2, 1 );
    tabFileLayout->addLayout( grid );
    spacer2 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabFileLayout->addItem( spacer2 );
    tabWidget->insertTab( tabFile, TQString::fromLatin1("") );

    tabPaths = new TQWidget( tabWidget, "tabPaths" );
    tabPathsLayout = new TQVBoxLayout( tabPaths, 11, 6, "tabPathsLayout"); 
    grid_2 = new TQGridLayout( 0, 1, 1, 11, 6, "grid_2"); 

    applicationPathLabel = new TQLabel( tabPaths, "applicationPathLabel" );

    grid_2->addWidget( applicationPathLabel, 0, 0 );

    leApplicationPath = new TQLineEdit( tabPaths, "leApplicationPath" );
    leApplicationPath->setReadOnly( true );

    grid_2->addWidget( leApplicationPath, 0, 1 );

    settingsPathLabel = new TQLabel( tabPaths, "settingsPathLabel" );

    grid_2->addWidget( settingsPathLabel, 1, 0 );

    leSettingsPath = new TQLineEdit( tabPaths, "leSettingsPath" );
    leSettingsPath->setReadOnly( true );

    grid_2->addWidget( leSettingsPath, 1, 1 );

    globalFilesPathLabel = new TQLabel( tabPaths, "globalFilesPathLabel" );

    grid_2->addWidget( globalFilesPathLabel, 2, 0 );

    leGlobalFilesPath = new TQLineEdit( tabPaths, "leGlobalFilesPath" );
    leGlobalFilesPath->setReadOnly( true );

    grid_2->addWidget( leGlobalFilesPath, 2, 1 );

    indentersPathLabel = new TQLabel( tabPaths, "indentersPathLabel" );

    grid_2->addWidget( indentersPathLabel, 3, 0 );

    leIndentersPath = new TQLineEdit( tabPaths, "leIndentersPath" );
    leIndentersPath->setReadOnly( true );

    grid_2->addWidget( leIndentersPath, 3, 1 );

    tempPathLabel = new TQLabel( tabPaths, "tempPathLabel" );

    grid_2->addWidget( tempPathLabel, 4, 0 );

    leTempPath = new TQLineEdit( tabPaths, "leTempPath" );
    leTempPath->setReadOnly( true );

    grid_2->addWidget( leTempPath, 4, 1 );
    tabPathsLayout->addLayout( grid_2 );
    spacer2_2 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabPathsLayout->addItem( spacer2_2 );
    tabWidget->insertTab( tabPaths, TQString::fromLatin1("") );
    UiGuiInfoDialogBaseLayout->addWidget( tabWidget );
    hbox = new TQHBoxLayout( 0, 0, 6, "hbox"); 
    spacer1 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    hbox->addItem( spacer1 );

    okButton = new TQPushButton( this, "okButton" );
    okButton->setDefault( true );
    hbox->addWidget( okButton );
    UiGuiInfoDialogBaseLayout->addLayout( hbox );
    languageChange();
    resize( TQSize(1100, 300).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( okButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void UiGuiInfoDialogBase::languageChange()
{
    setCaption( tr( "Info" ) );
    filenameLabel->setText( tr( "Open file" ) );
    TQWhatsThis::add( filenameLabel, tr( "Name of the open file" ) );
    TQWhatsThis::add( leFilename, tr( "Name of the open file" ) );
    configFilenameLabel->setText( tr( "Config file" ) );
    TQWhatsThis::add( configFilenameLabel, tr( "Name of the config file" ) );
    TQWhatsThis::add( leConfigFilename, tr( "Name of the config file" ) );
    indenterLabel->setText( tr( "Indender" ) );
    TQWhatsThis::add( indenterLabel, tr( "Name of the indenter" ) );
    TQWhatsThis::add( leIndenter, tr( "Name of the indenter" ) );
    tabWidget->changeTab( tabFile, tr( "File" ) );
    applicationPathLabel->setText( tr( "Application" ) );
    TQWhatsThis::add( applicationPathLabel, tr( "Name of the folder containing the application binary" ) );
    TQWhatsThis::add( leApplicationPath, tr( "Name of the folder containing the application binary" ) );
    settingsPathLabel->setText( tr( "Settings" ) );
    TQWhatsThis::add( settingsPathLabel, tr( "Name of the folder containing the application settings" ) );
    TQWhatsThis::add( leSettingsPath, tr( "Name of the folder containing the application settings" ) );
    globalFilesPathLabel->setText( tr( "Global files" ) );
    TQWhatsThis::add( globalFilesPathLabel, tr( "Name of the folder containing the global files" ) );
    TQWhatsThis::add( leGlobalFilesPath, tr( "Name of the folder containing the global files" ) );
    indentersPathLabel->setText( tr( "Indenters" ) );
    TQWhatsThis::add( indentersPathLabel, tr( "Name of the folder containing the indenter files" ) );
    TQWhatsThis::add( leIndentersPath, tr( "Name of the folder containing the indenter files" ) );
    tempPathLabel->setText( tr( "Temp files" ) );
    TQWhatsThis::add( tempPathLabel, tr( "Name of the folder containing the temporary files" ) );
    TQWhatsThis::add( leTempPath, tr( "Name of the folder containing the temporary files" ) );
    tabWidget->changeTab( tabPaths, tr( "Paths" ) );
    okButton->setText( tr( "&Ok" ) );
}

/****************************************************************************
** UiGuiInfoDialogBase meta object code from reading C++ file 'UiGuiInfoDialogBase.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 "UiGuiInfoDialogBase.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 *UiGuiInfoDialogBase::className() const
{
    return "UiGuiInfoDialogBase";
}

TQMetaObject *UiGuiInfoDialogBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_UiGuiInfoDialogBase( "UiGuiInfoDialogBase", &UiGuiInfoDialogBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* UiGuiInfoDialogBase::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 = TQDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"UiGuiInfoDialogBase", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_UiGuiInfoDialogBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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