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

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

#include "addtargetdlgbase.h"

#include <ntqvariant.h>
#include <kdialog.h>
#include <klineedit.h>
#include <ksqueezedtextlabel.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqcombobox.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>

static const char* const image0_data[] = { 
"16 16 2 1",
". c None",
"# c #000000",
"................",
"................",
".....#..........",
".....##.........",
".....###........",
".....####.......",
".....#####......",
".....######.....",
".....######.....",
".....#####......",
".....####.......",
".....###........",
".....##.........",
".....#..........",
"................",
"................"};


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

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

    primary_label = new TQLabel( groupBox2, "primary_label" );
    TQFont primary_label_font(  primary_label->font() );
    primary_label->setFont( primary_label_font ); 
    primary_label->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    groupBox2Layout->addWidget( primary_label, 0, 0 );

    primary_combo = new TQComboBox( false, groupBox2, "primary_combo" );

    groupBox2Layout->addWidget( primary_combo, 0, 1 );

    prefix_label = new TQLabel( groupBox2, "prefix_label" );
    TQFont prefix_label_font(  prefix_label->font() );
    prefix_label->setFont( prefix_label_font ); 
    prefix_label->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    groupBox2Layout->addWidget( prefix_label, 1, 0 );

    prefix_combo = new TQComboBox( false, groupBox2, "prefix_combo" );

    groupBox2Layout->addWidget( prefix_combo, 1, 1 );

    filename_label = new TQLabel( groupBox2, "filename_label" );
    TQFont filename_label_font(  filename_label->font() );
    filename_label->setFont( filename_label_font ); 
    filename_label->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    groupBox2Layout->addWidget( filename_label, 2, 0 );

    filename_edit = new KLineEdit( groupBox2, "filename_edit" );

    groupBox2Layout->addWidget( filename_edit, 2, 1 );
    Spacer21 = new TQSpacerItem( 246, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox2Layout->addMultiCell( Spacer21, 1, 1, 2, 3 );

    canonicalLabel = new KSqueezedTextLabel( groupBox2, "canonicalLabel" );

    groupBox2Layout->addWidget( canonicalLabel, 2, 3 );

    textLabel1 = new TQLabel( groupBox2, "textLabel1" );
    TQFont textLabel1_font(  textLabel1->font() );
    textLabel1_font.setBold( true );
    textLabel1->setFont( textLabel1_font ); 
    textLabel1->setPixmap( image0 );

    groupBox2Layout->addWidget( textLabel1, 2, 2 );
    add_target_dialogLayout->addWidget( groupBox2 );
    Spacer22 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    add_target_dialogLayout->addItem( Spacer22 );

    ldflags_group = new TQGroupBox( this, "ldflags_group" );
    ldflags_group->setColumnLayout(0, TQt::Vertical );
    ldflags_group->layout()->setSpacing( KDialog::spacingHint() );
    ldflags_group->layout()->setMargin( KDialog::marginHint() );
    ldflags_groupLayout = new TQVBoxLayout( ldflags_group->layout() );
    ldflags_groupLayout->setAlignment( TQt::AlignTop );

    allstatic_box = new TQCheckBox( ldflags_group, "allstatic_box" );
    ldflags_groupLayout->addWidget( allstatic_box );

    avoidversion_box = new TQCheckBox( ldflags_group, "avoidversion_box" );
    ldflags_groupLayout->addWidget( avoidversion_box );

    module_box = new TQCheckBox( ldflags_group, "module_box" );
    ldflags_groupLayout->addWidget( module_box );

    noundefined_box = new TQCheckBox( ldflags_group, "noundefined_box" );
    ldflags_groupLayout->addWidget( noundefined_box );

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

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

    ldflagsother_edit = new KLineEdit( ldflags_group, "ldflagsother_edit" );
    Layout11_2->addWidget( ldflagsother_edit );
    ldflags_groupLayout->addLayout( Layout11_2 );
    add_target_dialogLayout->addWidget( ldflags_group );

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

    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 );
    add_target_dialogLayout->addLayout( Layout1 );
    languageChange();
    resize( TQSize(585, 356).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( primary_combo, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( primaryChanged() ) );

    // tab order
    setTabOrder( primary_combo, prefix_combo );
    setTabOrder( prefix_combo, filename_edit );
    setTabOrder( filename_edit, allstatic_box );
    setTabOrder( allstatic_box, avoidversion_box );
    setTabOrder( avoidversion_box, module_box );
    setTabOrder( module_box, noundefined_box );
    setTabOrder( noundefined_box, ldflagsother_edit );
    setTabOrder( ldflagsother_edit, okbutton );
    setTabOrder( okbutton, cancelbutton );

    // buddies
    primary_label->setBuddy( primary_combo );
    prefix_label->setBuddy( prefix_combo );
    filename_label->setBuddy( filename_edit );
    ldflagsother_label->setBuddy( ldflagsother_edit );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void AddTargetDialogBase::languageChange()
{
    setCaption( tr2i18n( "Add New Target" ) );
    groupBox2->setTitle( tr2i18n( "&Target" ) );
    primary_label->setText( tr2i18n( "&Primary:" ) );
    prefix_label->setText( tr2i18n( "Pre&fix:" ) );
    filename_label->setText( tr2i18n( "File &name:" ) );
    canonicalLabel->setText( tr2i18n( "[CANONICALIZED NAME]" ) );
    textLabel1->setText( TQString::null );
    ldflags_group->setTitle( tr2i18n( "Linker 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( "Ot&her:" ) );
    okbutton->setText( tr2i18n( "&OK" ) );
    cancelbutton->setText( tr2i18n( "&Cancel" ) );
}

void AddTargetDialogBase::primaryChanged()
{
    tqWarning( "AddTargetDialogBase::primaryChanged(): Not implemented yet" );
}

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

TQMetaObject *AddTargetDialogBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_AddTargetDialogBase( "AddTargetDialogBase", &AddTargetDialogBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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