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

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

#include "sq_slideshowlisting.h"

#include <ntqvariant.h>
#include <ksqueezedtextlabel.h>
#include <ntqpushbutton.h>
#include <ntqframe.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include "sq_slideshowlisting.ui.h"

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

    frame3 = new TQFrame( this, "frame3" );
    frame3->setFrameShape( TQFrame::StyledPanel );
    frame3->setFrameShadow( TQFrame::Raised );
    frame3Layout = new TQGridLayout( frame3, 1, 1, 2, 6, "frame3Layout"); 

    textLabel1 = new TQLabel( frame3, "textLabel1" );
    textLabel1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );

    frame3Layout->addWidget( textLabel1, 0, 0 );

    pushCancel = new TQPushButton( frame3, "pushCancel" );

    frame3Layout->addWidget( pushCancel, 0, 3 );

    textFile = new KSqueezedTextLabel( frame3, "textFile" );
    textFile->setTextFormat( KSqueezedTextLabel::RichText );
    textFile->setAlignment( int( KSqueezedTextLabel::AlignVCenter ) );

    frame3Layout->addWidget( textFile, 0, 2 );

    textCount = new TQLabel( frame3, "textCount" );
    TQFont textCount_font(  textCount->font() );
    textCount_font.setBold( true );
    textCount->setFont( textCount_font ); 

    frame3Layout->addWidget( textCount, 0, 1 );

    SQ_SlideShowListingLayout->addWidget( frame3, 0, 0 );
    languageChange();
    resize( TQSize(490, 31).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void SQ_SlideShowListing::languageChange()
{
    setCaption( tr2i18n( "Form1" ) );
    textLabel1->setText( tr2i18n( "Listing" ) );
    pushCancel->setText( tr2i18n( "Cancel" ) );
    textFile->setText( TQString::null );
    textCount->setText( TQString::null );
}

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

TQMetaObject *SQ_SlideShowListing::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_SQ_SlideShowListing( "SQ_SlideShowListing", &SQ_SlideShowListing::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* SQ_SlideShowListing::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 }
    };
    static const TQUMethod signal_0 = {"kill", 0, 0 };
    static const TQMetaData signal_tbl[] = {
	{ "kill()", &signal_0, TQMetaData::Public }
    };
    metaObj = TQMetaObject::new_metaobject(
	"SQ_SlideShowListing", parentObject,
	slot_tbl, 1,
	signal_tbl, 1,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_SQ_SlideShowListing.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL kill
void SQ_SlideShowListing::kill()
{
    activate_signal( staticMetaObject()->signalOffset() + 0 );
}

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

bool SQ_SlideShowListing::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: kill(); break;
    default:
	return TQDialog::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

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

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