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

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

#include "telescopepropui.h"

#include <ntqvariant.h>
#include <kpushbutton.h>
#include <tdelistbox.h>
#include <kcombobox.h>
#include <klineedit.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

    scopePropLayout->addMultiCellWidget( textLabel1, 0, 0, 0, 2 );

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

    newB = new KPushButton( this, "newB" );
    layout12->addWidget( newB );

    saveB = new KPushButton( this, "saveB" );
    layout12->addWidget( saveB );

    removeB = new KPushButton( this, "removeB" );
    layout12->addWidget( removeB );
    spacer3 = new TQSpacerItem( 236, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout12->addItem( spacer3 );

    closeB = new KPushButton( this, "closeB" );
    layout12->addWidget( closeB );

    scopePropLayout->addMultiCellLayout( layout12, 3, 3, 0, 2 );

    telescopeListBox = new TDEListBox( this, "telescopeListBox" );
    telescopeListBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, telescopeListBox->sizePolicy().hasHeightForWidth() ) );
    telescopeListBox->setMinimumSize( TQSize( 130, 0 ) );

    scopePropLayout->addMultiCellWidget( telescopeListBox, 1, 2, 0, 0 );

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

    textLabel2 = new TQLabel( this, "textLabel2" );
    layout8->addWidget( textLabel2 );

    textLabel2_2_6 = new TQLabel( this, "textLabel2_2_6" );
    layout8->addWidget( textLabel2_2_6 );

    textLabel2_2 = new TQLabel( this, "textLabel2_2" );
    layout8->addWidget( textLabel2_2 );

    textLabel2_2_2 = new TQLabel( this, "textLabel2_2_2" );
    layout8->addWidget( textLabel2_2_2 );

    textLabel2_2_3 = new TQLabel( this, "textLabel2_2_3" );
    layout8->addWidget( textLabel2_2_3 );

    scopePropLayout->addLayout( layout8, 1, 1 );

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

    driverCombo = new KComboBox( false, this, "driverCombo" );
    driverCombo->setEditable( true );
    layout9->addWidget( driverCombo );

    versionEdit = new KLineEdit( this, "versionEdit" );
    layout9->addWidget( versionEdit );

    labelEdit = new KLineEdit( this, "labelEdit" );
    layout9->addWidget( labelEdit );

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

    focalEdit = new KLineEdit( this, "focalEdit" );
    layout5->addWidget( focalEdit );

    textLabel2_2_4 = new TQLabel( this, "textLabel2_2_4" );
    layout5->addWidget( textLabel2_2_4 );
    layout9->addLayout( layout5 );

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

    apertureEdit = new KLineEdit( this, "apertureEdit" );
    layout6->addWidget( apertureEdit );

    textLabel2_2_5 = new TQLabel( this, "textLabel2_2_5" );
    layout6->addWidget( textLabel2_2_5 );
    layout9->addLayout( layout6 );

    scopePropLayout->addLayout( layout9, 1, 2 );
    spacer4 = new TQSpacerItem( 21, 190, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    scopePropLayout->addMultiCell( spacer4, 2, 2, 1, 2 );
    languageChange();
    resize( TQSize(435, 452).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void scopeProp::languageChange()
{
    setCaption( tr2i18n( "Telescope Properties" ) );
    textLabel1->setText( tr2i18n( "Telescopes:" ) );
    newB->setText( tr2i18n( "&New" ) );
    saveB->setText( tr2i18n( "S&ave" ) );
    removeB->setText( tr2i18n( "Remo&ve" ) );
    closeB->setText( tr2i18n( "&Close" ) );
    textLabel2->setText( tr2i18n( "Driver:" ) );
    textLabel2_2_6->setText( tr2i18n( "Version:" ) );
    textLabel2_2->setText( tr2i18n( "Label:" ) );
    textLabel2_2_2->setText( tr2i18n( "Focal length:" ) );
    textLabel2_2_3->setText( tr2i18n( "Aperture:" ) );
    textLabel2_2_4->setText( tr2i18n( "mm" ) );
    textLabel2_2_5->setText( tr2i18n( "mm" ) );
}

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

TQMetaObject *scopeProp::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_scopeProp( "scopeProp", &scopeProp::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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