#include <kdialog.h>
#include <tdelocale.h>

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

#include "projectfileslayout.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqlineedit.h>
#include <ntqheader.h>
#include <ntqlistview.h>
#include <ntqgroupbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a ProjectFilesLayout 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.
 */
ProjectFilesLayout::ProjectFilesLayout( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "ProjectFilesLayout" );
    ProjectFilesLayoutLayout = new TQHBoxLayout( this, 11, 6, "ProjectFilesLayoutLayout"); 

    layout5 = new TQVBoxLayout( 0, 0, 6, "layout5"); 

    layout4 = new TQHBoxLayout( 0, 0, 6, "layout4"); 

    m_pFilterEdit = new TQLineEdit( this, "m_pFilterEdit" );
    layout4->addWidget( m_pFilterEdit );

    m_pFilterButton = new TQPushButton( this, "m_pFilterButton" );
    layout4->addWidget( m_pFilterButton );

    m_pShowAllButton = new TQPushButton( this, "m_pShowAllButton" );
    layout4->addWidget( m_pShowAllButton );
    layout5->addLayout( layout4 );

    m_pFileList = new TQListView( this, "m_pFileList" );
    layout5->addWidget( m_pFileList );
    ProjectFilesLayoutLayout->addLayout( layout5 );

    layout5_2 = new TQVBoxLayout( 0, 0, 6, "layout5_2"); 

    groupBox1 = new TQGroupBox( this, "groupBox1" );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new TQVBoxLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );

    m_pAddFilesButton = new TQPushButton( groupBox1, "m_pAddFilesButton" );
    groupBox1Layout->addWidget( m_pAddFilesButton );

    m_pAddDirButton = new TQPushButton( groupBox1, "m_pAddDirButton" );
    groupBox1Layout->addWidget( m_pAddDirButton );

    m_pAddTreeButton = new TQPushButton( groupBox1, "m_pAddTreeButton" );
    groupBox1Layout->addWidget( m_pAddTreeButton );
    layout5_2->addWidget( groupBox1 );

    groupBox2 = new TQGroupBox( this, "groupBox2" );
    groupBox2->setColumnLayout(0, TQt::Vertical );
    groupBox2->layout()->setSpacing( 6 );
    groupBox2->layout()->setMargin( 11 );
    groupBox2Layout = new TQVBoxLayout( groupBox2->layout() );
    groupBox2Layout->setAlignment( TQt::AlignTop );

    m_pRemSelButton = new TQPushButton( groupBox2, "m_pRemSelButton" );
    groupBox2Layout->addWidget( m_pRemSelButton );

    m_pRemDirButton = new TQPushButton( groupBox2, "m_pRemDirButton" );
    groupBox2Layout->addWidget( m_pRemDirButton );

    m_pRemTreeButton = new TQPushButton( groupBox2, "m_pRemTreeButton" );
    groupBox2Layout->addWidget( m_pRemTreeButton );
    layout5_2->addWidget( groupBox2 );
    spacer3 = new TQSpacerItem( 21, 118, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout5_2->addItem( spacer3 );

    groupBox3 = new TQGroupBox( this, "groupBox3" );
    groupBox3->setColumnLayout(0, TQt::Vertical );
    groupBox3->layout()->setSpacing( 6 );
    groupBox3->layout()->setMargin( 11 );
    groupBox3Layout = new TQVBoxLayout( groupBox3->layout() );
    groupBox3Layout->setAlignment( TQt::AlignTop );

    m_pOKButton = new TQPushButton( groupBox3, "m_pOKButton" );
    groupBox3Layout->addWidget( m_pOKButton );

    m_pCancelButton = new TQPushButton( groupBox3, "m_pCancelButton" );
    groupBox3Layout->addWidget( m_pCancelButton );
    layout5_2->addWidget( groupBox3 );
    ProjectFilesLayoutLayout->addLayout( layout5_2 );
    languageChange();
    resize( TQSize(585, 480).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ProjectFilesLayout::languageChange()
{
    setCaption( tr2i18n( "Project Files" ) );
    m_pFilterButton->setText( tr2i18n( "Filter" ) );
    m_pShowAllButton->setText( tr2i18n( "Show All" ) );
    groupBox1->setTitle( tr2i18n( "Add" ) );
    m_pAddFilesButton->setText( tr2i18n( "Files..." ) );
    m_pAddDirButton->setText( tr2i18n( "Directory..." ) );
    m_pAddTreeButton->setText( tr2i18n( "Tree..." ) );
    groupBox2->setTitle( tr2i18n( "Remove" ) );
    m_pRemSelButton->setText( tr2i18n( "Selected" ) );
    m_pRemDirButton->setText( tr2i18n( "Directory..." ) );
    m_pRemTreeButton->setText( tr2i18n( "Tree..." ) );
    groupBox3->setTitle( TQString::null );
    m_pOKButton->setText( tr2i18n( "OK" ) );
    m_pCancelButton->setText( tr2i18n( "Cancel" ) );
}

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

TQMetaObject *ProjectFilesLayout::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ProjectFilesLayout( "ProjectFilesLayout", &ProjectFilesLayout::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* ProjectFilesLayout::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(
	"ProjectFilesLayout", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_ProjectFilesLayout.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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