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

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

#include "mediawidget_skel.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqframe.h>
#include <ntqlabel.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",
"................",
"................",
".....#..........",
".....##.........",
".....###........",
".....####.......",
".....#####......",
".....######.....",
".....######.....",
".....#####......",
".....####.......",
".....###........",
".....##.........",
".....#..........",
"................",
"................"};

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

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


/*
 *  Constructs a KSB_MediaWidget_skel as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
KSB_MediaWidget_skel::KSB_MediaWidget_skel( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl ),
      image0( (const char **) image0_data ),
      image1( (const char **) image1_data ),
      image2( (const char **) image2_data )
{
    if ( !name )
	setName( "KSB_MediaWidget_skel" );
    KSB_MediaWidget_skelLayout = new TQVBoxLayout( this, 0, 0, "KSB_MediaWidget_skelLayout"); 

    Layout6 = new TQHBoxLayout( 0, 0, 1, "Layout6"); 
    Spacer5_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout6->addItem( Spacer5_2 );

    Play = new TQPushButton( this, "Play" );
    Play->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, Play->sizePolicy().hasHeightForWidth() ) );
    Play->setMaximumSize( TQSize( 20, 20 ) );
    Play->setPixmap( image0 );
    Layout6->addWidget( Play );

    Pause = new TQPushButton( this, "Pause" );
    Pause->setMaximumSize( TQSize( 20, 20 ) );
    Pause->setPixmap( image1 );
    Layout6->addWidget( Pause );

    Stop = new TQPushButton( this, "Stop" );
    Stop->setMaximumSize( TQSize( 20, 20 ) );
    Stop->setPixmap( image2 );
    Layout6->addWidget( Stop );
    Spacer5 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout6->addItem( Spacer5 );
    KSB_MediaWidget_skelLayout->addLayout( Layout6 );

    Position = new L33tSlider( this, "Position" );
    Position->setMaxValue( 1000 );
    Position->setOrientation( L33tSlider::Horizontal );
    KSB_MediaWidget_skelLayout->addWidget( Position );

    Frame3 = new TQFrame( this, "Frame3" );
    Frame3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, Frame3->sizePolicy().hasHeightForWidth() ) );
    Frame3->setFrameShape( TQFrame::NoFrame );
    Frame3->setFrameShadow( TQFrame::Raised );
    Frame3Layout = new TQHBoxLayout( Frame3, 0, 0, "Frame3Layout"); 
    Spacer6 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Frame3Layout->addItem( Spacer6 );

    time = new TQLabel( Frame3, "time" );
    time->setText( "00:00/00:00" );
    Frame3Layout->addWidget( time );
    Spacer6_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Frame3Layout->addItem( Spacer6_2 );
    KSB_MediaWidget_skelLayout->addWidget( Frame3 );

    Frame4 = new TQFrame( this, "Frame4" );
    Frame4->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, Frame4->sizePolicy().hasHeightForWidth() ) );
    Frame4->setFrameShape( TQFrame::NoFrame );
    Frame4->setFrameShadow( TQFrame::Raised );
    Frame4Layout = new TQHBoxLayout( Frame4, 0, 0, "Frame4Layout"); 
    Spacer7 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Frame4Layout->addItem( Spacer7 );

    currentFile = new TQLabel( Frame4, "currentFile" );
    currentFile->setText( "Drag sound files here" );
    Frame4Layout->addWidget( currentFile );
    Spacer6_3 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Frame4Layout->addItem( Spacer6_3 );
    KSB_MediaWidget_skelLayout->addWidget( Frame4 );
    Spacer17 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    KSB_MediaWidget_skelLayout->addItem( Spacer17 );
    languageChange();
    resize( TQSize(277, 151).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KSB_MediaWidget_skel::languageChange()
{
    Play->setText( TQString::null );
    Pause->setText( TQString::null );
    Stop->setText( TQString::null );
}

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

TQMetaObject *KSB_MediaWidget_skel::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KSB_MediaWidget_skel( "KSB_MediaWidget_skel", &KSB_MediaWidget_skel::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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