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

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

#include "targetoptionsdlgbase.h"

#include <ntqvariant.h>
#include <kdialog.h>
#include <klineedit.h>
#include <kurlrequester.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqwidget.h>
#include <ntqlabel.h>
#include <ntqcheckbox.h>
#include <ntqheader.h>
#include <ntqlistview.h>
#include <ntqgroupbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a TargetOptionsDialogBase 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.
 */
TargetOptionsDialogBase::TargetOptionsDialogBase( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "target_options_dialog" );
    setSizeGripEnabled( false );
    target_options_dialogLayout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "target_options_dialogLayout"); 

    tabWidget = new TQTabWidget( this, "tabWidget" );

    Widget5 = new TQWidget( tabWidget, "Widget5" );
    Widget5Layout = new TQGridLayout( Widget5, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "Widget5Layout"); 

    TextLabel1 = new TQLabel( Widget5, "TextLabel1" );
    TQFont TextLabel1_font(  TextLabel1->font() );
    TextLabel1->setFont( TextLabel1_font ); 

    Widget5Layout->addMultiCellWidget( TextLabel1, 0, 0, 0, 1 );

    Layout12 = new TQVBoxLayout( 0, 0, KDialog::spacingHint(), "Layout12"); 

    allstatic_box = new TQCheckBox( Widget5, "allstatic_box" );
    Layout12->addWidget( allstatic_box );

    avoidversion_box = new TQCheckBox( Widget5, "avoidversion_box" );
    Layout12->addWidget( avoidversion_box );

    module_box = new TQCheckBox( Widget5, "module_box" );
    Layout12->addWidget( module_box );

    noundefined_box = new TQCheckBox( Widget5, "noundefined_box" );
    Layout12->addWidget( noundefined_box );

    Layout11 = new TQHBoxLayout( 0, 0, KDialog::spacingHint(), "Layout11"); 

    ldflagsother_label = new TQLabel( Widget5, "ldflagsother_label" );
    TQFont ldflagsother_label_font(  ldflagsother_label->font() );
    ldflagsother_label->setFont( ldflagsother_label_font ); 
    Layout11->addWidget( ldflagsother_label );

    ldflagsother_edit = new KLineEdit( Widget5, "ldflagsother_edit" );
    Layout11->addWidget( ldflagsother_edit );
    Layout12->addLayout( Layout11 );

    Widget5Layout->addMultiCellLayout( Layout12, 1, 1, 1, 2 );
    Spacer1 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Preferred );
    Widget5Layout->addItem( Spacer1, 2, 2 );
    Spacer2 = new TQSpacerItem( 20, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    Widget5Layout->addItem( Spacer2, 1, 0 );

    dependencies_edit = new KLineEdit( Widget5, "dependencies_edit" );

    Widget5Layout->addMultiCellWidget( dependencies_edit, 4, 4, 1, 2 );

    dependencies_label = new TQLabel( Widget5, "dependencies_label" );
    TQFont dependencies_label_font(  dependencies_label->font() );
    dependencies_label->setFont( dependencies_label_font ); 

    Widget5Layout->addMultiCellWidget( dependencies_label, 3, 3, 0, 1 );
    Spacer3 = new TQSpacerItem( 20, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    Widget5Layout->addItem( Spacer3, 4, 0 );
    Spacer4 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Widget5Layout->addItem( Spacer4, 5, 2 );
    tabWidget->insertTab( Widget5, TQString::fromLatin1("") );

    Widget6 = new TQWidget( tabWidget, "Widget6" );
    Widget6Layout = new TQGridLayout( Widget6, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "Widget6Layout"); 

    insidelib_label = new TQLabel( Widget6, "insidelib_label" );
    TQFont insidelib_label_font(  insidelib_label->font() );
    insidelib_label->setFont( insidelib_label_font ); 

    Widget6Layout->addWidget( insidelib_label, 0, 0 );
    Spacer9 = new TQSpacerItem( 20, 7, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    Widget6Layout->addItem( Spacer9, 2, 0 );

    outsidelib_listview = new TQListView( Widget6, "outsidelib_listview" );
    outsidelib_listview->addColumn( TQString::null );
    outsidelib_listview->setResizeMode( TQListView::LastColumn );

    Widget6Layout->addWidget( outsidelib_listview, 4, 0 );

    outsidelib_label = new TQLabel( Widget6, "outsidelib_label" );
    TQFont outsidelib_label_font(  outsidelib_label->font() );
    outsidelib_label->setFont( outsidelib_label_font ); 

    Widget6Layout->addWidget( outsidelib_label, 3, 0 );

    Layout9_3 = new TQVBoxLayout( 0, 0, KDialog::spacingHint(), "Layout9_3"); 
    Spacer5 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout9_3->addItem( Spacer5 );

    insidemoveup_button = new TQPushButton( Widget6, "insidemoveup_button" );
    Layout9_3->addWidget( insidemoveup_button );

    insidemovedown_button = new TQPushButton( Widget6, "insidemovedown_button" );
    Layout9_3->addWidget( insidemovedown_button );
    Spacer6 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout9_3->addItem( Spacer6 );

    Widget6Layout->addLayout( Layout9_3, 1, 1 );

    insidelib_listview = new TQListView( Widget6, "insidelib_listview" );
    insidelib_listview->addColumn( TQString::null );
    insidelib_listview->setResizeMode( TQListView::LastColumn );

    Widget6Layout->addWidget( insidelib_listview, 1, 0 );

    Layout10_4 = new TQVBoxLayout( 0, 0, KDialog::spacingHint(), "Layout10_4"); 
    Spacer7 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout10_4->addItem( Spacer7 );

    outsideadd_button = new TQPushButton( Widget6, "outsideadd_button" );
    Layout10_4->addWidget( outsideadd_button );

    outsideedit_button = new TQPushButton( Widget6, "outsideedit_button" );
    Layout10_4->addWidget( outsideedit_button );

    outsideremove_button = new TQPushButton( Widget6, "outsideremove_button" );
    Layout10_4->addWidget( outsideremove_button );

    outsidemoveup_button = new TQPushButton( Widget6, "outsidemoveup_button" );
    Layout10_4->addWidget( outsidemoveup_button );

    outsidemovedown_button = new TQPushButton( Widget6, "outsidemovedown_button" );
    Layout10_4->addWidget( outsidemovedown_button );
    Spacer8 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout10_4->addItem( Spacer8 );

    Widget6Layout->addLayout( Layout10_4, 4, 1 );
    tabWidget->insertTab( Widget6, TQString::fromLatin1("") );

    arguments_page = new TQWidget( tabWidget, "arguments_page" );
    arguments_pageLayout = new TQGridLayout( arguments_page, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "arguments_pageLayout"); 

    argumentBox = new TQGroupBox( arguments_page, "argumentBox" );
    argumentBox->setColumnLayout(0, TQt::Vertical );
    argumentBox->layout()->setSpacing( KDialog::spacingHint() );
    argumentBox->layout()->setMargin( KDialog::marginHint() );
    argumentBoxLayout = new TQGridLayout( argumentBox->layout() );
    argumentBoxLayout->setAlignment( TQt::AlignTop );

    run_arguments_edit = new KLineEdit( argumentBox, "run_arguments_edit" );

    argumentBoxLayout->addWidget( run_arguments_edit, 0, 1 );

    arguments_label_1 = new TQLabel( argumentBox, "arguments_label_1" );
    TQFont arguments_label_1_font(  arguments_label_1->font() );
    arguments_label_1->setFont( arguments_label_1_font ); 

    argumentBoxLayout->addWidget( arguments_label_1, 0, 0 );

    m_cwdEdit = new KURLRequester( argumentBox, "m_cwdEdit" );

    argumentBoxLayout->addWidget( m_cwdEdit, 3, 1 );

    textLabel1 = new TQLabel( argumentBox, "textLabel1" );

    argumentBoxLayout->addMultiCellWidget( textLabel1, 2, 3, 0, 0 );

    arguments_label_2 = new TQLabel( argumentBox, "arguments_label_2" );
    TQFont arguments_label_2_font(  arguments_label_2->font() );
    arguments_label_2->setFont( arguments_label_2_font ); 

    argumentBoxLayout->addWidget( arguments_label_2, 1, 0 );

    debug_arguments_edit = new KLineEdit( argumentBox, "debug_arguments_edit" );

    argumentBoxLayout->addMultiCellWidget( debug_arguments_edit, 1, 2, 1, 1 );

    arguments_pageLayout->addWidget( argumentBox, 0, 0 );
    Spacer4_2 = new TQSpacerItem( 20, 120, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    arguments_pageLayout->addItem( Spacer4_2, 1, 0 );
    tabWidget->insertTab( arguments_page, TQString::fromLatin1("") );
    target_options_dialogLayout->addWidget( tabWidget );

    Layout1 = new TQHBoxLayout( 0, 0, KDialog::spacingHint(), "Layout1"); 
    Spacer10 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout1->addItem( Spacer10 );

    okbutton = new TQPushButton( this, "okbutton" );
    okbutton->setAutoDefault( true );
    okbutton->setDefault( true );
    Layout1->addWidget( okbutton );

    cancelbutton = new TQPushButton( this, "cancelbutton" );
    cancelbutton->setAutoDefault( true );
    Layout1->addWidget( cancelbutton );
    target_options_dialogLayout->addLayout( Layout1 );
    languageChange();
    resize( TQSize(627, 474).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( okbutton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
    connect( cancelbutton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
    connect( insidemoveup_button, TQ_SIGNAL( clicked() ), this, TQ_SLOT( insideMoveUpClicked() ) );
    connect( outsidemoveup_button, TQ_SIGNAL( clicked() ), this, TQ_SLOT( outsideMoveUpClicked() ) );
    connect( outsidemovedown_button, TQ_SIGNAL( clicked() ), this, TQ_SLOT( outsideMoveDownClicked() ) );
    connect( outsideadd_button, TQ_SIGNAL( clicked() ), this, TQ_SLOT( outsideAddClicked() ) );
    connect( outsideedit_button, TQ_SIGNAL( clicked() ), this, TQ_SLOT( outsideEditClicked() ) );
    connect( outsideremove_button, TQ_SIGNAL( clicked() ), this, TQ_SLOT( outsideRemoveClicked() ) );
    connect( insidemovedown_button, TQ_SIGNAL( clicked() ), this, TQ_SLOT( insideMoveDownClicked() ) );

    // tab order
    setTabOrder( allstatic_box, avoidversion_box );
    setTabOrder( avoidversion_box, module_box );
    setTabOrder( module_box, noundefined_box );
    setTabOrder( noundefined_box, ldflagsother_edit );
    setTabOrder( ldflagsother_edit, dependencies_edit );
    setTabOrder( dependencies_edit, tabWidget );
    setTabOrder( tabWidget, insidelib_listview );
    setTabOrder( insidelib_listview, insidemoveup_button );
    setTabOrder( insidemoveup_button, insidemovedown_button );
    setTabOrder( insidemovedown_button, outsidelib_listview );
    setTabOrder( outsidelib_listview, outsideadd_button );
    setTabOrder( outsideadd_button, outsideedit_button );
    setTabOrder( outsideedit_button, outsideremove_button );
    setTabOrder( outsideremove_button, outsidemoveup_button );
    setTabOrder( outsidemoveup_button, outsidemovedown_button );
    setTabOrder( outsidemovedown_button, okbutton );
    setTabOrder( okbutton, cancelbutton );

    // buddies
    TextLabel1->setBuddy( allstatic_box );
    ldflagsother_label->setBuddy( ldflagsother_edit );
    dependencies_label->setBuddy( dependencies_edit );
    insidelib_label->setBuddy( insidelib_listview );
    outsidelib_label->setBuddy( outsidelib_listview );
    arguments_label_1->setBuddy( run_arguments_edit );
    arguments_label_2->setBuddy( run_arguments_edit );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void TargetOptionsDialogBase::languageChange()
{
    setCaption( tr2i18n( "Target Options" ) );
    TextLabel1->setText( tr2i18n( "Li&nker flags (LDFLAGS):" ) );
    allstatic_box->setText( tr2i18n( "&Do not link against shared libraries (-all-static)" ) );
    avoidversion_box->setText( tr2i18n( "Do not &assign version numbers to libraries (-avoid-version)" ) );
    module_box->setText( tr2i18n( "Create a library that can &be dynamically loaded (-module)" ) );
    noundefined_box->setText( tr2i18n( "Library does not depend on external symbols (-no-&undefined)" ) );
    ldflagsother_label->setText( tr2i18n( "O&ther:" ) );
    dependencies_label->setText( tr2i18n( "E&xplicit dependencies (DEPENDENCIES):" ) );
    tabWidget->changeTab( Widget5, tr2i18n( "Fl&ags" ) );
    insidelib_label->setText( tr2i18n( "Lin&k convenience libraries inside project (LIBADD):" ) );
    outsidelib_listview->header()->setLabel( 0, TQString::null );
    outsidelib_label->setText( tr2i18n( "Link libraries ou&tside project (LIBADD):" ) );
    insidemoveup_button->setText( tr2i18n( "Move &Up" ) );
    insidemovedown_button->setText( tr2i18n( "Move &Down" ) );
    insidelib_listview->header()->setLabel( 0, TQString::null );
    outsideadd_button->setText( tr2i18n( "&Add..." ) );
    outsideedit_button->setText( tr2i18n( "&Edit..." ) );
    outsideremove_button->setText( tr2i18n( "&Remove" ) );
    outsidemoveup_button->setText( tr2i18n( "Mo&ve Up" ) );
    outsidemovedown_button->setText( tr2i18n( "Move Dow&n" ) );
    tabWidget->changeTab( Widget6, tr2i18n( "Li&braries" ) );
    argumentBox->setTitle( tr2i18n( "Program Arguments (only valid for executable targets)" ) );
    arguments_label_1->setText( tr2i18n( "&Run arguments:" ) );
    textLabel1->setText( tr2i18n( "Working Directory:" ) );
    arguments_label_2->setText( tr2i18n( "&Debug arguments:" ) );
    tabWidget->changeTab( arguments_page, tr2i18n( "Ar&guments" ) );
    okbutton->setText( tr2i18n( "&OK" ) );
    cancelbutton->setText( tr2i18n( "&Cancel" ) );
}

void TargetOptionsDialogBase::insideMoveDownClicked()
{
    tqWarning( "TargetOptionsDialogBase::insideMoveDownClicked(): Not implemented yet" );
}

void TargetOptionsDialogBase::insideMoveUpClicked()
{
    tqWarning( "TargetOptionsDialogBase::insideMoveUpClicked(): Not implemented yet" );
}

void TargetOptionsDialogBase::outsideAddClicked()
{
    tqWarning( "TargetOptionsDialogBase::outsideAddClicked(): Not implemented yet" );
}

void TargetOptionsDialogBase::outsideEditClicked()
{
    tqWarning( "TargetOptionsDialogBase::outsideEditClicked(): Not implemented yet" );
}

void TargetOptionsDialogBase::outsideMoveDownClicked()
{
    tqWarning( "TargetOptionsDialogBase::outsideMoveDownClicked(): Not implemented yet" );
}

void TargetOptionsDialogBase::outsideMoveUpClicked()
{
    tqWarning( "TargetOptionsDialogBase::outsideMoveUpClicked(): Not implemented yet" );
}

void TargetOptionsDialogBase::outsideRemoveClicked()
{
    tqWarning( "TargetOptionsDialogBase::outsideRemoveClicked(): Not implemented yet" );
}

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

TQMetaObject *TargetOptionsDialogBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TargetOptionsDialogBase( "TargetOptionsDialogBase", &TargetOptionsDialogBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TargetOptionsDialogBase::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 TQUMethod slot_1 = {"insideMoveDownClicked", 0, 0 };
    static const TQUMethod slot_2 = {"insideMoveUpClicked", 0, 0 };
    static const TQUMethod slot_3 = {"outsideAddClicked", 0, 0 };
    static const TQUMethod slot_4 = {"outsideEditClicked", 0, 0 };
    static const TQUMethod slot_5 = {"outsideMoveDownClicked", 0, 0 };
    static const TQUMethod slot_6 = {"outsideMoveUpClicked", 0, 0 };
    static const TQUMethod slot_7 = {"outsideRemoveClicked", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected },
	{ "insideMoveDownClicked()", &slot_1, TQMetaData::Protected },
	{ "insideMoveUpClicked()", &slot_2, TQMetaData::Protected },
	{ "outsideAddClicked()", &slot_3, TQMetaData::Protected },
	{ "outsideEditClicked()", &slot_4, TQMetaData::Protected },
	{ "outsideMoveDownClicked()", &slot_5, TQMetaData::Protected },
	{ "outsideMoveUpClicked()", &slot_6, TQMetaData::Protected },
	{ "outsideRemoveClicked()", &slot_7, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"TargetOptionsDialogBase", parentObject,
	slot_tbl, 8,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TargetOptionsDialogBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TargetOptionsDialogBase::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    case 1: insideMoveDownClicked(); break;
    case 2: insideMoveUpClicked(); break;
    case 3: outsideAddClicked(); break;
    case 4: outsideEditClicked(); break;
    case 5: outsideMoveDownClicked(); break;
    case 6: outsideMoveUpClicked(); break;
    case 7: outsideRemoveClicked(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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