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

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

#include "queuedlg.h"

#include <ntqvariant.h>
#include <kpushbutton.h>
#include <ksqueezedtextlabel.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqwidget.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqheader.h>
#include <ntqlistview.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>

static const char* const image0_data[] = { 
"22 22 233 2",
".I c #000103",
"#V c #010002",
"a4 c #010102",
"br c #010103",
"#Z c #010105",
"ai c #010202",
"a# c #010203",
".H c #010204",
"#D c #020104",
"aB c #020105",
"#J c #020106",
"#5 c #020107",
"aM c #020202",
"bq c #020203",
".G c #020204",
"b. c #020205",
"## c #020206",
"aW c #020207",
".J c #020209",
".K c #02020a",
"bs c #020304",
"#Q c #020305",
".V c #020306",
".W c #020307",
"aG c #020407",
".U c #020408",
"bt c #030103",
".F c #030203",
"bj c #030205",
".P c #030209",
"#u c #030303",
".2 c #030304",
"aj c #030306",
"a9 c #030307",
"#6 c #030308",
"#a c #030403",
"av c #030406",
"bk c #030602",
"a3 c #030604",
"aN c #030606",
"bv c #030800",
"aQ c #040205",
"aP c #040302",
"ax c #040405",
"aw c #040407",
"aL c #040505",
"#P c #040506",
"#R c #040605",
"ah c #040608",
"#z c #04060a",
"#4 c #040703",
"au c #04070b",
".3 c #050203",
"aI c #050706",
"bu c #080c03",
".L c #080e0a",
"#q c #090b05",
"bp c #090b06",
"#i c #090c06",
"a5 c #090d04",
".E c #0a0b09",
"aV c #0b0c0a",
"#U c #111705",
"#K c #12150b",
"bi c #12170a",
"#p c #12180a",
"b# c #121909",
".T c #12190a",
".Q c #131608",
"#j c #131709",
"aA c #13170a",
"as c #13180a",
"bh c #131906",
".4 c #14170b",
"#. c #14180b",
"#Y c #151b06",
".s c #151b07",
"bB c #161a08",
"bA c #161a0a",
"ao c #161b08",
"aa c #161b09",
".t c #161c07",
"ar c #283210",
".r c #29320f",
"#I c #29330f",
".u c #293310",
"bz c #2b330e",
"#W c #2b330f",
"aC c #2b3411",
"bC c #2c3411",
".R c #2c3512",
"#0 c #2c3514",
"ae c #2c3612",
".S c #2c3613",
"a. c #2d3611",
"an c #2d3711",
"#A c #323f11",
"aO c #373f1b",
"bd c #374114",
"bc c #383f1c",
".O c #3f4c12",
".X c #414e14",
"bg c #424c15",
"aF c #566816",
".M c #56691a",
"#t c #57661c",
".q c #57671c",
".v c #576814",
"by c #58651d",
"#E c #58651e",
"aR c #586817",
".D c #58681b",
"a8 c #59671a",
"bD c #596817",
"#b c #59681a",
".1 c #596919",
"a2 c #5a6d1d",
"ay c #5a6e1a",
"bw c #5a6f19",
"ag c #5b6c1f",
"#y c #5b6d1f",
"#O c #5c6e1b",
"#3 c #5c6e1d",
"bE c #5c701b",
"bl c #5c711b",
"#7 c #5d6b1d",
"aJ c #5e6b1e",
"ak c #5e6b20",
"aK c #5f6c21",
".9 c #6c8220",
"ba c #6d821d",
"#C c #6d821e",
".5 c #6e8018",
"#S c #6e871b",
"aZ c #6e871c",
"#m c #6e8815",
"at c #6e8916",
"#v c #6f8119",
"aX c #8ba823",
"#o c #8ca823",
"#k c #8da824",
"a6 c #90ae19",
".w c #90ae1f",
".p c #92ad1b",
"#h c #92ad1c",
"bx c #93ab20",
"#r c #93ab21",
"aU c #93ad20",
"#B c #9aba1b",
"aY c #9abb1a",
"#n c #9bbc22",
"aH c #9cbc22",
".8 c #9ebf1e",
"az c #9fbc21",
"#T c #9fbd20",
"bb c #9fbe1d",
"a1 c #9fc315",
"a0 c #9fc318",
"al c #9fc412",
".C c #a0c117",
".N c #a0c119",
"#N c #a0c311",
"am c #a0c317",
"#8 c #a0c319",
".B c #a0c610",
".Y c #a1c115",
"ad c #a1c11d",
"#c c #a1c11f",
".i c #a1c218",
".j c #a1c21e",
".g c #a1c412",
".l c #a1c413",
"bM c #a1c414",
"aT c #a1c416",
".n c #a1c511",
".x c #a1c512",
"aE c #a1c513",
".z c #a1c514",
".y c #a1c517",
".m c #a1c60f",
".A c #a1c611",
".6 c #a2bc1e",
"ab c #a2c01d",
"#X c #a2c312",
".k c #a2c320",
".o c #a2c411",
".0 c #a2c412",
"#G c #a2c413",
"#f c #a2c414",
"#2 c #a2c415",
"bK c #a2c416",
"#H c #a2c417",
"af c #a2c41b",
"#w c #a2c50d",
"bL c #a2c50e",
".e c #a2c50f",
".# c #a2c510",
"Qt c #a2c511",
".a c #a2c512",
".b c #a2c513",
".c c #a2c514",
".d c #a2c515",
"#9 c #a2c516",
"#l c #a2c51b",
"#L c #a2c60c",
"#M c #a2c60e",
"#e c #a2c60f",
".f c #a2c610",
".Z c #a2c611",
"ac c #a2c612",
"#x c #a2c70c",
"bf c #a3be1a",
"bo c #a3c117",
"#F c #a3c312",
"bI c #a3c313",
"#1 c #a3c316",
"aq c #a3c31d",
"bm c #a3c412",
".h c #a3c417",
"bF c #a3c41c",
"#d c #a3c517",
"#g c #a3c610",
"bG c #a3c611",
"ap c #a4c220",
".7 c #a4c316",
"bJ c #a4c31a",
"aD c #a4c31b",
"bn c #a4c410",
"a7 c #a4c412",
"bH c #a4c511",
"#s c #a4c512",
"aS c #a4c513",
"be c #a5c418",
"QtQtQtQtQtQtQt.#Qt.a.b.c.b.#QtQtQtQtQtQtQtQt",
"QtQtQtQtQtQtQt.d.c.a.aQt.e.aQtQtQtQtQtQtQtQt",
"QtQtQtQtQtQtQt.f.g.h.i.j.k.lQtQtQtQtQtQtQtQt",
"QtQtQt.m.n.c.o.p.q.r.s.t.u.v.w.x.y.z.b.aQtQt",
"QtQtQt.A.B.C.D.E.F.G.H.I.J.K.L.M.N.c.#.#QtQt",
"QtQtQt.c.C.O.F.P.K.Q.R.S.T.U.V.W.X.Y.ZQtQtQt",
"QtQtQt.0.1.2.3.4.5.6.7.d.8.9#.###a#b#c#d#e.#",
".e#f#g#h#i.F#j#kQt.e.f#l#m#n#o#p.H#q#r#s.zQt",
"Qt.b.0#t#u.J#v#w.l#x.a#y#z#A#B#C.V#D#E#F.z.a",
"#G.0#H#I#J#K.6#L#M#N#O#P#Q#R#S#T#U#V#W#X.x.a",
".b.a.i#Y#Z#0#1.##2#3#4#5#6#7#8#9a.a#aaab.nQt",
".bacad.t.Iae.zafagah#Jaiajakalaman.Haoap.nQt",
".b.aaqar.Kas.8atauavawaj#5axayazaAaBaCaDaE.a",
"#e#2.eaF.KaG.9aH#AaIaJaKaLaMaNaOaPaQaRaSaTQt",
".#.a.#aUaVaW.4aXaYaZa0a1a2a3a4a4a4a5a6.a.#.a",
"QtQtQta7a8a9b.b#babb.baEazbca4aM#ubd#H#G#MQt",
"QtQtQtbebfbgaL.H.Wbha.a.bibja4#uaMbkbl.d.#.#",
"QtQtQtbmbnbo.Dbpbqbrbs.H.Gbtbubdbkbvbw#f.#Qt",
"QtQtQt.a.##fadbxbybzbAbBbCbDa6#HbEbwbF#GQtQt",
"QtQtQt.b#2.bbGbHbI#FabapbJbm.a#G#2bK#2.bQtQt",
"QtQtQtbL.##f.ebM.z.x.n.n.xaT.#.e.#.a#2.b.#.e",
"QtQtQtQtQt.aQtQt.a.aQtQt.aQtQtQt.#Qt.aQt.e.#"};


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

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

    tab = new TQWidget( m_tabs, "tab" );
    tabLayout = new TQGridLayout( tab, 1, 1, 11, 6, "tabLayout"); 

    InfoDownload = new TQGroupBox( tab, "InfoDownload" );
    InfoDownload->setColumnLayout(0, TQt::Vertical );
    InfoDownload->layout()->setSpacing( 6 );
    InfoDownload->layout()->setMargin( 11 );
    InfoDownloadLayout = new TQGridLayout( InfoDownload->layout() );
    InfoDownloadLayout->setAlignment( TQt::AlignTop );

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

    textLabel3 = new TQLabel( InfoDownload, "textLabel3" );
    textLabel3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)5, 0, 0, textLabel3->sizePolicy().hasHeightForWidth() ) );
    layout25->addWidget( textLabel3 );

    textLabel1 = new TQLabel( InfoDownload, "textLabel1" );
    textLabel1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)5, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );
    layout25->addWidget( textLabel1 );

    textLabel1_4 = new TQLabel( InfoDownload, "textLabel1_4" );
    layout25->addWidget( textLabel1_4 );

    textLabel4 = new TQLabel( InfoDownload, "textLabel4" );
    textLabel4->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)5, 0, 0, textLabel4->sizePolicy().hasHeightForWidth() ) );
    layout25->addWidget( textLabel4 );

    textLabel2 = new TQLabel( InfoDownload, "textLabel2" );
    layout25->addWidget( textLabel2 );

    InfoDownloadLayout->addLayout( layout25, 0, 0 );

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

    dlStatus = new TQLabel( InfoDownload, "dlStatus" );
    layout26->addWidget( dlStatus );

    dlTracker = new KSqueezedTextLabel( InfoDownload, "dlTracker" );
    layout26->addWidget( dlTracker );

    dlDHT = new TQLabel( InfoDownload, "dlDHT" );
    layout26->addWidget( dlDHT );

    dlRatio = new TQLabel( InfoDownload, "dlRatio" );
    layout26->addWidget( dlRatio );

    dlBytes = new TQLabel( InfoDownload, "dlBytes" );
    layout26->addWidget( dlBytes );

    InfoDownloadLayout->addLayout( layout26, 0, 1 );

    tabLayout->addWidget( InfoDownload, 1, 0 );

    downloadList = new TQListView( tab, "downloadList" );
    downloadList->addColumn( tr2i18n( "Torrent" ) );
    downloadList->header()->setClickEnabled( false, downloadList->header()->count() - 1 );
    downloadList->addColumn( tr2i18n( "Controlled by" ) );
    downloadList->header()->setClickEnabled( false, downloadList->header()->count() - 1 );
    downloadList->setAllColumnsShowFocus( true );
    downloadList->setResizeMode( TQListView::AllColumns );

    tabLayout->addWidget( downloadList, 0, 0 );
    m_tabs->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( m_tabs, "tab_2" );
    tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); 

    seedList = new TQListView( tab_2, "seedList" );
    seedList->addColumn( tr2i18n( "Torrent" ) );
    seedList->header()->setClickEnabled( false, seedList->header()->count() - 1 );
    seedList->addColumn( tr2i18n( "Controlled by" ) );
    seedList->header()->setClickEnabled( false, seedList->header()->count() - 1 );
    seedList->setAllColumnsShowFocus( true );
    seedList->setResizeMode( TQListView::AllColumns );

    tabLayout_2->addWidget( seedList, 0, 0 );

    InfoSeed = new TQGroupBox( tab_2, "InfoSeed" );
    InfoSeed->setColumnLayout(0, TQt::Vertical );
    InfoSeed->layout()->setSpacing( 6 );
    InfoSeed->layout()->setMargin( 11 );
    InfoSeedLayout = new TQGridLayout( InfoSeed->layout() );
    InfoSeedLayout->setAlignment( TQt::AlignTop );

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

    textLabel3_2 = new TQLabel( InfoSeed, "textLabel3_2" );
    textLabel3_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)5, 0, 0, textLabel3_2->sizePolicy().hasHeightForWidth() ) );
    layout15->addWidget( textLabel3_2 );

    textLabel1_2 = new TQLabel( InfoSeed, "textLabel1_2" );
    textLabel1_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)5, 0, 0, textLabel1_2->sizePolicy().hasHeightForWidth() ) );
    layout15->addWidget( textLabel1_2 );

    textLabel1_4_2 = new TQLabel( InfoSeed, "textLabel1_4_2" );
    layout15->addWidget( textLabel1_4_2 );

    textLabel4_2 = new TQLabel( InfoSeed, "textLabel4_2" );
    textLabel4_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)5, 0, 0, textLabel4_2->sizePolicy().hasHeightForWidth() ) );
    layout15->addWidget( textLabel4_2 );

    textLabel1_3 = new TQLabel( InfoSeed, "textLabel1_3" );
    layout15->addWidget( textLabel1_3 );

    InfoSeedLayout->addLayout( layout15, 0, 0 );

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

    ulStatus = new TQLabel( InfoSeed, "ulStatus" );
    layout27->addWidget( ulStatus );

    ulTracker = new KSqueezedTextLabel( InfoSeed, "ulTracker" );
    layout27->addWidget( ulTracker );

    ulDHT = new TQLabel( InfoSeed, "ulDHT" );
    layout27->addWidget( ulDHT );

    ulRatio = new TQLabel( InfoSeed, "ulRatio" );
    layout27->addWidget( ulRatio );

    ulBytes = new TQLabel( InfoSeed, "ulBytes" );
    layout27->addWidget( ulBytes );

    InfoSeedLayout->addLayout( layout27, 0, 1 );

    tabLayout_2->addWidget( InfoSeed, 1, 0 );
    m_tabs->insertTab( tab_2, TQString::fromLatin1("") );

    QueueDlgLayout->addWidget( m_tabs, 0, 0 );

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

    layout49 = new TQHBoxLayout( 0, 0, 6, "layout49"); 
    spacer28 = new TQSpacerItem( 20, 20, TQSizePolicy::Preferred, TQSizePolicy::Minimum );
    layout49->addItem( spacer28 );

    logo = new TQLabel( this, "logo" );
    logo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, logo->sizePolicy().hasHeightForWidth() ) );
    logo->setPixmap( image0 );
    logo->setScaledContents( false );
    layout49->addWidget( logo );
    spacer29 = new TQSpacerItem( 40, 20, TQSizePolicy::Preferred, TQSizePolicy::Minimum );
    layout49->addItem( spacer29 );
    layout7->addLayout( layout49 );
    spacer2_2 = new TQSpacerItem( 20, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout7->addItem( spacer2_2 );

    btnMoveUp = new TQPushButton( this, "btnMoveUp" );
    layout7->addWidget( btnMoveUp );

    btnMoveDown = new TQPushButton( this, "btnMoveDown" );
    layout7->addWidget( btnMoveDown );
    spacer6 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout7->addItem( spacer6 );

    btnMoveTop = new TQPushButton( this, "btnMoveTop" );
    layout7->addWidget( btnMoveTop );

    btnMoveBottom = new TQPushButton( this, "btnMoveBottom" );
    layout7->addWidget( btnMoveBottom );
    spacer2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Preferred );
    layout7->addItem( spacer2 );

    btnEnqueue = new TQPushButton( this, "btnEnqueue" );
    layout7->addWidget( btnEnqueue );

    btnDequeue = new TQPushButton( this, "btnDequeue" );
    layout7->addWidget( btnDequeue );
    spacer1 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout7->addItem( spacer1 );

    btnOk = new KPushButton( this, "btnOk" );
    btnOk->setProperty( "stdItem", 1 );
    layout7->addWidget( btnOk );

    btnApply = new KPushButton( this, "btnApply" );
    btnApply->setProperty( "stdItem", 9 );
    layout7->addWidget( btnApply );

    btnClose = new KPushButton( this, "btnClose" );
    btnClose->setProperty( "stdItem", 2 );
    layout7->addWidget( btnClose );

    QueueDlgLayout->addLayout( layout7, 0, 1 );
    languageChange();
    resize( TQSize(631, 482).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( btnMoveUp, TQ_SIGNAL( clicked() ), this, TQ_SLOT( btnMoveUp_clicked() ) );
    connect( btnMoveDown, TQ_SIGNAL( clicked() ), this, TQ_SLOT( btnMoveDown_clicked() ) );
    connect( btnEnqueue, TQ_SIGNAL( clicked() ), this, TQ_SLOT( btnEnqueue_clicked() ) );
    connect( btnDequeue, TQ_SIGNAL( clicked() ), this, TQ_SLOT( btnDequeue_clicked() ) );
    connect( downloadList, TQ_SIGNAL( currentChanged(TQListViewItem*) ), this, TQ_SLOT( downloadList_currentChanged(TQListViewItem*) ) );
    connect( seedList, TQ_SIGNAL( currentChanged(TQListViewItem*) ), this, TQ_SLOT( seedList_currentChanged(TQListViewItem*) ) );
    connect( btnOk, TQ_SIGNAL( clicked() ), this, TQ_SLOT( btnOk_clicked() ) );
    connect( btnApply, TQ_SIGNAL( clicked() ), this, TQ_SLOT( btnApply_clicked() ) );
    connect( btnClose, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
    connect( btnMoveTop, TQ_SIGNAL( clicked() ), this, TQ_SLOT( btnMoveTop_clicked() ) );
    connect( btnMoveBottom, TQ_SIGNAL( clicked() ), this, TQ_SLOT( btnMoveBottom_clicked() ) );

    // tab order
    setTabOrder( btnOk, btnApply );
    setTabOrder( btnApply, btnClose );
    setTabOrder( btnClose, m_tabs );
    setTabOrder( m_tabs, downloadList );
    setTabOrder( downloadList, btnMoveUp );
    setTabOrder( btnMoveUp, btnMoveDown );
    setTabOrder( btnMoveDown, btnEnqueue );
    setTabOrder( btnEnqueue, btnDequeue );
    setTabOrder( btnDequeue, seedList );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void QueueDlg::languageChange()
{
    setCaption( tr2i18n( "KT Queue Dialog" ) );
    InfoDownload->setTitle( tr2i18n( "Info" ) );
    textLabel3->setText( tr2i18n( "Status:" ) );
    textLabel1->setText( tr2i18n( "Tracker:" ) );
    textLabel1_4->setText( tr2i18n( "DHT:" ) );
    textLabel4->setText( tr2i18n( "Share ratio:" ) );
    textLabel2->setText( tr2i18n( "Bytes left:" ) );
    dlStatus->setText( TQString::null );
    dlTracker->setText( TQString::null );
    dlDHT->setText( TQString::null );
    dlRatio->setText( TQString::null );
    dlBytes->setText( TQString::null );
    downloadList->header()->setLabel( 0, tr2i18n( "Torrent" ) );
    downloadList->header()->setLabel( 1, tr2i18n( "Controlled by" ) );
    m_tabs->changeTab( tab, tr2i18n( "Downloads" ) );
    seedList->header()->setLabel( 0, tr2i18n( "Torrent" ) );
    seedList->header()->setLabel( 1, tr2i18n( "Controlled by" ) );
    InfoSeed->setTitle( tr2i18n( "Info" ) );
    textLabel3_2->setText( tr2i18n( "Status:" ) );
    textLabel1_2->setText( tr2i18n( "Tracker:" ) );
    textLabel1_4_2->setText( tr2i18n( "DHT:" ) );
    textLabel4_2->setText( tr2i18n( "Share ratio:" ) );
    textLabel1_3->setText( tr2i18n( "Uploaded:" ) );
    ulStatus->setText( TQString::null );
    ulTracker->setText( TQString::null );
    ulDHT->setText( TQString::null );
    ulRatio->setText( TQString::null );
    ulBytes->setText( TQString::null );
    m_tabs->changeTab( tab_2, tr2i18n( "Upload&s" ) );
    btnMoveUp->setText( tr2i18n( "M&ove up" ) );
    btnMoveDown->setText( tr2i18n( "Move dow&n" ) );
    btnMoveTop->setText( tr2i18n( "Move to top" ) );
    btnMoveBottom->setText( tr2i18n( "Move to &bottom" ) );
    btnEnqueue->setText( tr2i18n( "&QM Controlled" ) );
    btnDequeue->setText( tr2i18n( "&User Controlled" ) );
    btnOk->setText( tr2i18n( "&OK" ) );
    btnApply->setText( tr2i18n( "&Apply" ) );
    btnClose->setText( tr2i18n( "&Cancel" ) );
}

void QueueDlg::btnMoveUp_clicked()
{
    tqWarning( "QueueDlg::btnMoveUp_clicked(): Not implemented yet" );
}

void QueueDlg::btnMoveDown_clicked()
{
    tqWarning( "QueueDlg::btnMoveDown_clicked(): Not implemented yet" );
}

void QueueDlg::btnEnqueue_clicked()
{
    tqWarning( "QueueDlg::btnEnqueue_clicked(): Not implemented yet" );
}

void QueueDlg::btnDequeue_clicked()
{
    tqWarning( "QueueDlg::btnDequeue_clicked(): Not implemented yet" );
}

void QueueDlg::downloadList_currentChanged(TQListViewItem*)
{
    tqWarning( "QueueDlg::downloadList_currentChanged(TQListViewItem*): Not implemented yet" );
}

void QueueDlg::seedList_currentChanged(TQListViewItem*)
{
    tqWarning( "QueueDlg::seedList_currentChanged(TQListViewItem*): Not implemented yet" );
}

void QueueDlg::btnOk_clicked()
{
    tqWarning( "QueueDlg::btnOk_clicked(): Not implemented yet" );
}

void QueueDlg::btnApply_clicked()
{
    tqWarning( "QueueDlg::btnApply_clicked(): Not implemented yet" );
}

void QueueDlg::btnClose_clicked()
{
    tqWarning( "QueueDlg::btnClose_clicked(): Not implemented yet" );
}

void QueueDlg::btnMoveTop_clicked()
{
    tqWarning( "QueueDlg::btnMoveTop_clicked(): Not implemented yet" );
}

void QueueDlg::btnMoveBottom_clicked()
{
    tqWarning( "QueueDlg::btnMoveBottom_clicked(): Not implemented yet" );
}

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

TQMetaObject *QueueDlg::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_QueueDlg( "QueueDlg", &QueueDlg::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* QueueDlg::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 = {"btnMoveUp_clicked", 0, 0 };
    static const TQUMethod slot_1 = {"btnMoveDown_clicked", 0, 0 };
    static const TQUMethod slot_2 = {"btnEnqueue_clicked", 0, 0 };
    static const TQUMethod slot_3 = {"btnDequeue_clicked", 0, 0 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_ptr, "TQListViewItem", TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"downloadList_currentChanged", 1, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_ptr, "TQListViewItem", TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"seedList_currentChanged", 1, param_slot_5 };
    static const TQUMethod slot_6 = {"btnOk_clicked", 0, 0 };
    static const TQUMethod slot_7 = {"btnApply_clicked", 0, 0 };
    static const TQUMethod slot_8 = {"btnClose_clicked", 0, 0 };
    static const TQUMethod slot_9 = {"btnMoveTop_clicked", 0, 0 };
    static const TQUMethod slot_10 = {"btnMoveBottom_clicked", 0, 0 };
    static const TQUMethod slot_11 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "btnMoveUp_clicked()", &slot_0, TQMetaData::Public },
	{ "btnMoveDown_clicked()", &slot_1, TQMetaData::Public },
	{ "btnEnqueue_clicked()", &slot_2, TQMetaData::Public },
	{ "btnDequeue_clicked()", &slot_3, TQMetaData::Public },
	{ "downloadList_currentChanged(TQListViewItem*)", &slot_4, TQMetaData::Public },
	{ "seedList_currentChanged(TQListViewItem*)", &slot_5, TQMetaData::Public },
	{ "btnOk_clicked()", &slot_6, TQMetaData::Public },
	{ "btnApply_clicked()", &slot_7, TQMetaData::Public },
	{ "btnClose_clicked()", &slot_8, TQMetaData::Public },
	{ "btnMoveTop_clicked()", &slot_9, TQMetaData::Public },
	{ "btnMoveBottom_clicked()", &slot_10, TQMetaData::Public },
	{ "languageChange()", &slot_11, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"QueueDlg", parentObject,
	slot_tbl, 12,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_QueueDlg.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool QueueDlg::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: btnMoveUp_clicked(); break;
    case 1: btnMoveDown_clicked(); break;
    case 2: btnEnqueue_clicked(); break;
    case 3: btnDequeue_clicked(); break;
    case 4: downloadList_currentChanged((TQListViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 5: seedList_currentChanged((TQListViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 6: btnOk_clicked(); break;
    case 7: btnApply_clicked(); break;
    case 8: btnClose_clicked(); break;
    case 9: btnMoveTop_clicked(); break;
    case 10: btnMoveBottom_clicked(); break;
    case 11: languageChange(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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