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

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

#include "AlsaPlayer.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqframe.h>
#include <ntqlabel.h>
#include <ntqtoolbutton.h>
#include <ntqslider.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>

#include "seeker.h"
static const char* const image0_data[] = { 
"19 19 117 2",
"Qt c None",
"#Y c #000000",
".# c #000400",
".n c #001410",
"#m c #001818",
".W c #002000",
".6 c #002018",
".P c #002020",
"#E c #002408",
".Q c #002420",
"#U c #002800",
".0 c #002829",
".o c #002c20",
".w c #002c29",
"#M c #003029",
"#l c #003031",
".x c #003c10",
".2 c #003c20",
".8 c #003c39",
".X c #004039",
"#n c #004041",
"#W c #004441",
"#w c #00484a",
"#. c #004c4a",
".R c #005031",
".1 c #005052",
"#k c #005552",
"#X c #006162",
"#a c #006562",
"## c #00696a",
"#V c #008d8b",
"#o c #009194",
".Z c #00999c",
".E c #00a1a4",
".O c #00a5a4",
".Y c #00aeac",
"#j c #00b2b4",
".9 c #00b6b4",
".N c #00bebd",
".m c #082420",
"#P c #086141",
"#p c #086152",
".c c #102c29",
".i c #103031",
".7 c #103410",
".z c #103818",
"#b c #103820",
"#L c #182c20",
".I c #183c20",
".d c #184441",
".p c #184841",
".y c #184c20",
".M c #18cacd",
".J c #20484a",
".j c #204c4a",
"#x c #20a1a4",
"#v c #293829",
"#T c #295529",
".L c #29cecd",
"#i c #313831",
"#g c #313839",
"#f c #314041",
".a c #314c4a",
".C c #31d2d5",
"#Q c #415d5a",
".F c #416141",
".v c #41bebd",
".D c #41d6d5",
".b c #4a6562",
".V c #525052",
".S c #527152",
"#y c #528162",
".K c #52cecd",
".u c #52dade",
".B c #5adede",
"#D c #627162",
"#S c #627562",
"#F c #627573",
"#R c #627962",
".A c #62cecd",
".s c #62e2e6",
"#h c #6a756a",
"#q c #6a856a",
".t c #6ae2e6",
".5 c #737173",
".H c #737973",
"#u c #7b797b",
".G c #7b7d7b",
"#H c #7b817b",
".l c #7beaee",
"#C c #838183",
"#N c #838583",
"#O c #8bbebd",
"#I c #949994",
".h c #94d6d5",
".r c #94f2f6",
".U c #9c8d8b",
"#t c #9c9194",
".3 c #9ca59c",
".q c #9ce2e6",
"#B c #a49194",
"#c c #a4aaa4",
".e c #aceaee",
".k c #aceeee",
"#K c #bdb2ac",
"#J c #bdbabd",
"#d c #bdbebd",
"#A c #bdc2bd",
".f c #bdffff",
"#e c #c5b2ac",
"#z c #c5b6ac",
".4 c #c5bebd",
"#s c #c5d6bd",
".g c #c5ffff",
".T c #d5bebd",
"#G c #d5dad5",
"#r c #decebd",
"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
"QtQtQtQt.#.a.b.b.b.b.b.cQtQtQtQtQtQtQt",
"QtQtQtQtQt.d.e.f.f.g.g.h.iQtQtQtQtQtQt",
"QtQtQtQtQtQt.j.k.f.f.f.l.h.mQtQtQtQtQt",
"QtQtQtQtQt.n.o.p.q.r.s.t.u.v.wQtQtQtQt",
"QtQtQtQt.n.x.y.z.p.A.B.t.C.D.E.wQtQtQt",
"QtQtQt.n.x.F.G.H.I.J.K.L.M.N.N.O.PQtQt",
"QtQt.Q.R.S.T.U.G.V.W.X.Y.N.N.N.N.Z.nQt",
"Qt.0.1.2.3.4.T.5.0.6.7.8.Y.N.N.9#..0Qt",
"Qt###a#b#c#d.4#e#f#g#h#i.8#j#j#k#l#mQt",
"Qt#n#o#p#q.4#r#s#d#t.G#u#v.X#w#l.nQtQt",
"QtQt.8#x#y#z#s#A.4.T#B#C#D#E.w.nQtQtQt",
"QtQtQt#F#G#H#I#J#d#d#K.H#L#M#mQtQtQtQt",
"QtQtQtQt#N#O#P#Q#R#S#T#U#l.nQtQtQtQtQt",
"QtQtQtQtQt.8#o#a.8.8.Q#M.nQtQtQtQtQtQt",
"QtQtQtQtQtQt#n#V#a#l.w#mQtQtQtQtQtQtQt",
"QtQtQtQtQtQtQt#W#o#X.nQtQtQtQtQtQtQtQt",
"QtQtQtQtQtQtQtQt.##YQtQtQtQtQtQtQtQtQt",
"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt"};

static const char* const image1_data[] = { 
"15 15 8 1",
". c None",
"# c #000000",
"d c #5a595a",
"a c #949194",
"e c #acaaac",
"c c #acaeac",
"f c #bdbebd",
"b c #ffffff",
".####......###.",
".#ab#.....#cc#.",
".#de#....#abb#.",
".#de#...#acff#.",
".#de#..#aabee#.",
".#de#.#aacfee#.",
".#de##aaabeee#.",
".#de#aeeeeeee#.",
".#de##dddaeee#.",
".#de#.#dddeee#.",
".#de#..#ddaee#.",
".#de#...#ddee#.",
".#de#....#daa#.",
".##a#.....#dd#.",
".####......###."};

static const char* const image2_data[] = { 
"18 18 10 1",
". c None",
"a c #000000",
"h c #5a595a",
"g c #737173",
"d c #949194",
"# c #a4a1a4",
"b c #acaaac",
"e c #acaeac",
"f c #bdbebd",
"c c #ffffff",
"..................",
".#................",
".aa#..............",
".abaa.............",
".acdbaa...........",
".aedddbaa.........",
".abcddddbaa.......",
".abeddddddbaa.....",
".abbcdddddddbaa...",
".abbbfffffffffbaa.",
".abbbggggggghaa...",
".abbgggggghaa.....",
".abbgggghaa.......",
".abggghaa.........",
".abghaa...........",
".ahaa.............",
".aa...............",
".................."};

static const char* const image3_data[] = { 
"15 15 7 1",
". c None",
"# c #000000",
"d c #5a595a",
"c c #949194",
"a c #acaaac",
"e c #bdbebd",
"b c #ffffff",
".###......####.",
".#aa#.....#bc#.",
".#bbc#....#ad#.",
".#eeac#...#ad#.",
".#aabcc#..#ad#.",
".#aaeacc#.#ad#.",
".#aaabccc##ad#.",
".#aaaaaaac#ad#.",
".#aaacddd##ad#.",
".#aaaddd#.#ad#.",
".#aacdd#..#ad#.",
".#aadd#...#ad#.",
".#ccd#....#ad#.",
".#dd#.....#c##.",
".###......####."};

static const char* const image4_data[] = { 
"15 15 6 1",
". c None",
"# c #000000",
"c c #737173",
"d c #acaaac",
"b c #bdbebd",
"a c #ffffff",
"...............",
".#############.",
".#abbbbbbbbbc#.",
".#babbbbbbbcc#.",
".#bbdddddddcc#.",
".#bbdddddddcc#.",
".#bbdddddddcc#.",
".#bbdddddddcc#.",
".#bbdddddddcc#.",
".#bbdddddddcc#.",
".#bbdddddddcc#.",
".#bcccccccc#c#.",
".#cccccccccc##.",
".#############.",
"..............."};

static const char* const image5_data[] = { 
"18 18 12 1",
". c None",
"# c #000000",
"b c #9c009c",
"j c #a4a1a4",
"c c #cd99ff",
"a c #cdcaff",
"h c #e68500",
"e c #ff3000",
"f c #ff9900",
"d c #ff999c",
"i c #ffca00",
"g c #ffca62",
"..................",
"........#.........",
".......#ab#.......",
"......#acacb#.....",
".....#aaacaccb#...",
"....#aaacacccccb#.",
"...#aaaaacaccccc#.",
"..#baaaacaccccc#..",
"..###baaacaccc#...",
"..##de#bcaccc#f#..",
"..#g#dde#bac#fe##.",
"...hg#ddfe##e##...",
"...#gg#ddfe#hii#..",
"....hgg#f#hiiih##.",
"....#ggi#iih##....",
".....hggh##j......",
".....###..........",
".................."};

static const char* const image6_data[] = { 
"14 12 3 1",
". c None",
"# c #000000",
"a c #949194",
"..............",
"..............",
"..####..####..",
"..#aa#..#aa#..",
"..#aa#..#aa#..",
"..#aa#..#aa#..",
"..#aa#..#aa#..",
"..#aa#..#aa#..",
"..#aa#..#aa#..",
"..####..####..",
"..............",
".............."};

static const char* const image7_data[] = { 
"14 12 3 1",
". c None",
"# c #000000",
"a c #949194",
"..............",
"..............",
"...##.........",
"...#a##.......",
"...#aaa##.....",
"...#aaaaa##...",
"...#aaaaa##...",
"...#aaa##.....",
"...#a##.......",
"...##.........",
"..............",
".............."};

static const char* const image8_data[] = { 
"26 9 3 1",
". c None",
"# c #838183",
"a c #eeeaee",
"...#..................#...",
"..#......#########.....#..",
"..#..#...#aaaaaaa#..#..#..",
".#..#.....#aaaaa#....#..#.",
".#..#.#....#aaa#...#.#..#.",
".#..#.....#######....#..#.",
"..#..#....#aaaaa#...#..#..",
"..#.......#######......#..",
"...#..................#..."};

static const char* const image9_data[] = { 
"16 11 3 1",
". c None",
"# c #838183",
"a c #eeeaee",
"................",
"......##....#...",
".###.#a#.....#..",
".#a##aa#..#..#..",
".#a#aaa#...#..#.",
".#a#aaa#.#.#..#.",
".#a#aaa#...#..#.",
".#a##aa#..#..#..",
".###.#a#.....#..",
"......##....#...",
"................"};


/*
 *  Constructs a APMainWindow as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
APMainWindow::APMainWindow( 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 ),
      image3( (const char **) image3_data ),
      image4( (const char **) image4_data ),
      image5( (const char **) image5_data ),
      image6( (const char **) image6_data ),
      image7( (const char **) image7_data ),
      image8( (const char **) image8_data ),
      image9( (const char **) image9_data )
{
    if ( !name )
	setName( "APMainWindow" );
    setAcceptDrops( true );
    APMainWindowLayout = new TQVBoxLayout( this, 4, 2, "APMainWindowLayout"); 

    Frame3 = new TQFrame( this, "Frame3" );
    TQPalette pal;
    TQColorGroup cg;
    cg.setColor( TQColorGroup::Foreground, black );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, black );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setActive( cg );
    cg.setColor( TQColorGroup::Foreground, black );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, white );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, black );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setInactive( cg );
    cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, white );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 10, 95, 137) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setDisabled( cg );
    Frame3->setPalette( pal );
    Frame3->setFrameShape( TQFrame::NoFrame );
    Frame3->setFrameShadow( TQFrame::Plain );
    Frame3Layout = new TQGridLayout( Frame3, 1, 1, 2, 4, "Frame3Layout"); 

    speedLabelLeft = new TQLabel( Frame3, "speedLabelLeft" );
    speedLabelLeft->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, speedLabelLeft->sizePolicy().hasHeightForWidth() ) );
    cg.setColor( TQColorGroup::Foreground, white );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, black );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setActive( cg );
    cg.setColor( TQColorGroup::Foreground, white );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, white );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, black );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setInactive( cg );
    cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, white );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setDisabled( cg );
    speedLabelLeft->setPalette( pal );
    speedLabelLeft->setMargin( 0 );
    speedLabelLeft->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    Frame3Layout->addWidget( speedLabelLeft, 0, 0 );

    timeLabel = new TQLabel( Frame3, "timeLabel" );
    timeLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, timeLabel->sizePolicy().hasHeightForWidth() ) );
    cg.setColor( TQColorGroup::Foreground, white );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, black );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setActive( cg );
    cg.setColor( TQColorGroup::Foreground, white );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, white );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, black );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setInactive( cg );
    cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, white );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setDisabled( cg );
    timeLabel->setPalette( pal );
    timeLabel->setMargin( 0 );

    Frame3Layout->addWidget( timeLabel, 1, 3 );

    speedLabel = new TQLabel( Frame3, "speedLabel" );
    speedLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, speedLabel->sizePolicy().hasHeightForWidth() ) );
    cg.setColor( TQColorGroup::Foreground, white );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, black );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setActive( cg );
    cg.setColor( TQColorGroup::Foreground, white );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, white );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, black );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setInactive( cg );
    cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, white );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setDisabled( cg );
    speedLabel->setPalette( pal );
    speedLabel->setMargin( 0 );

    Frame3Layout->addWidget( speedLabel, 0, 1 );

    titleLabel = new TQLabel( Frame3, "titleLabel" );
    titleLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, titleLabel->sizePolicy().hasHeightForWidth() ) );
    cg.setColor( TQColorGroup::Foreground, white );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, white );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, black );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setActive( cg );
    cg.setColor( TQColorGroup::Foreground, white );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, white );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, white );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, black );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setInactive( cg );
    cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, white );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, white );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setDisabled( cg );
    titleLabel->setPalette( pal );
    titleLabel->setMargin( 0 );

    Frame3Layout->addMultiCellWidget( titleLabel, 0, 0, 2, 3 );

    volumeLabel = new TQLabel( Frame3, "volumeLabel" );
    volumeLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, volumeLabel->sizePolicy().hasHeightForWidth() ) );
    cg.setColor( TQColorGroup::Foreground, white );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, black );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setActive( cg );
    cg.setColor( TQColorGroup::Foreground, white );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, white );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, black );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setInactive( cg );
    cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, white );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setDisabled( cg );
    volumeLabel->setPalette( pal );
    volumeLabel->setMargin( 0 );

    Frame3Layout->addWidget( volumeLabel, 1, 1 );

    volumeLabelLeft = new TQLabel( Frame3, "volumeLabelLeft" );
    volumeLabelLeft->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, volumeLabelLeft->sizePolicy().hasHeightForWidth() ) );
    cg.setColor( TQColorGroup::Foreground, white );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, black );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setActive( cg );
    cg.setColor( TQColorGroup::Foreground, white );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, white );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, black );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setInactive( cg );
    cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, white );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setDisabled( cg );
    volumeLabelLeft->setPalette( pal );
    volumeLabelLeft->setMargin( 0 );
    volumeLabelLeft->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    Frame3Layout->addWidget( volumeLabelLeft, 1, 0 );

    infoLabel = new TQLabel( Frame3, "infoLabel" );
    infoLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, infoLabel->sizePolicy().hasHeightForWidth() ) );
    cg.setColor( TQColorGroup::Foreground, white );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, TQColor( 241, 241, 241) );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, black );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setActive( cg );
    cg.setColor( TQColorGroup::Foreground, white );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, white );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, black );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setInactive( cg );
    cg.setColor( TQColorGroup::Foreground, TQColor( 128, 128, 128) );
    cg.setColor( TQColorGroup::Button, TQColor( 228, 228, 228) );
    cg.setColor( TQColorGroup::Light, white );
    cg.setColor( TQColorGroup::Midlight, white );
    cg.setColor( TQColorGroup::Dark, TQColor( 114, 114, 114) );
    cg.setColor( TQColorGroup::Mid, TQColor( 152, 152, 152) );
    cg.setColor( TQColorGroup::Text, black );
    cg.setColor( TQColorGroup::BrightText, white );
    cg.setColor( TQColorGroup::ButtonText, TQColor( 128, 128, 128) );
    cg.setColor( TQColorGroup::Base, white );
    cg.setColor( TQColorGroup::Background, black );
    cg.setColor( TQColorGroup::Shadow, black );
    cg.setColor( TQColorGroup::Highlight, TQColor( 8, 93, 139) );
    cg.setColor( TQColorGroup::HighlightedText, white );
    cg.setColor( TQColorGroup::Link, black );
    cg.setColor( TQColorGroup::LinkVisited, black );
    pal.setDisabled( cg );
    infoLabel->setPalette( pal );
    infoLabel->setMargin( 0 );

    Frame3Layout->addWidget( infoLabel, 1, 2 );
    APMainWindowLayout->addWidget( Frame3 );

    seeker = new Seeker( this, "seeker" );
    seeker->setMinimumSize( TQSize( 32, 16 ) );
    APMainWindowLayout->addWidget( seeker );

    Layout10 = new TQHBoxLayout( 0, 0, 4, "Layout10"); 

    Layout9 = new TQVBoxLayout( 0, 0, 0, "Layout9"); 
    Spacer1 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout9->addItem( Spacer1 );

    Layout8 = new TQHBoxLayout( 0, 0, 2, "Layout8"); 

    menuButton = new TQToolButton( this, "menuButton" );
    menuButton->setPixmap( image0 );
    menuButton->setPopupDelay( 0 );
    menuButton->setAutoRaise( true );
    Layout8->addWidget( menuButton );

    previousButton = new TQToolButton( this, "previousButton" );
    previousButton->setPixmap( image1 );
    previousButton->setAutoRaise( true );
    Layout8->addWidget( previousButton );

    playButton = new TQToolButton( this, "playButton" );
    playButton->setPixmap( image2 );
    playButton->setAutoRaise( true );
    Layout8->addWidget( playButton );

    nextButton = new TQToolButton( this, "nextButton" );
    nextButton->setPixmap( image3 );
    nextButton->setAutoRaise( true );
    Layout8->addWidget( nextButton );

    stopButton = new TQToolButton( this, "stopButton" );
    stopButton->setPixmap( image4 );
    stopButton->setAutoRaise( true );
    Layout8->addWidget( stopButton );

    playlistButton = new TQToolButton( this, "playlistButton" );
    playlistButton->setPixmap( image5 );
    playlistButton->setAutoRaise( true );
    Layout8->addWidget( playlistButton );
    Layout9->addLayout( Layout8 );
    Spacer2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout9->addItem( Spacer2 );
    Layout10->addLayout( Layout9 );

    Layout5 = new TQVBoxLayout( 0, 0, 2, "Layout5"); 

    Layout3 = new TQHBoxLayout( 0, 0, 2, "Layout3"); 

    pauseButton = new TQToolButton( this, "pauseButton" );
    pauseButton->setEnabled( true );
    pauseButton->setPixmap( image6 );
    pauseButton->setAutoRaise( true );
    Layout3->addWidget( pauseButton );

    forwardButton = new TQToolButton( this, "forwardButton" );
    forwardButton->setEnabled( true );
    forwardButton->setPixmap( image7 );
    forwardButton->setAutoRaise( true );
    Layout3->addWidget( forwardButton );

    speedSlider = new TQSlider( this, "speedSlider" );
    speedSlider->setEnabled( true );
    speedSlider->setMaxValue( 233 );
    speedSlider->setValue( 66 );
    speedSlider->setOrientation( TQSlider::Horizontal );
    Layout3->addWidget( speedSlider );
    Layout5->addLayout( Layout3 );

    Layout4 = new TQHBoxLayout( 0, 0, 2, "Layout4"); 

    PixmapLabel2 = new TQLabel( this, "PixmapLabel2" );
    PixmapLabel2->setEnabled( false );
    PixmapLabel2->setPixmap( image8 );
    PixmapLabel2->setScaledContents( false );
    Layout4->addWidget( PixmapLabel2 );

    balanceSlider = new TQSlider( this, "balanceSlider" );
    balanceSlider->setEnabled( false );
    balanceSlider->setValue( 50 );
    balanceSlider->setOrientation( TQSlider::Horizontal );
    Layout4->addWidget( balanceSlider );

    PixmapLabel1 = new TQLabel( this, "PixmapLabel1" );
    PixmapLabel1->setPixmap( image9 );
    PixmapLabel1->setScaledContents( false );
    Layout4->addWidget( PixmapLabel1 );

    volumeSlider = new TQSlider( this, "volumeSlider" );
    volumeSlider->setMaxValue( 100 );
    volumeSlider->setOrientation( TQSlider::Horizontal );
    Layout4->addWidget( volumeSlider );
    Layout5->addLayout( Layout4 );
    Layout10->addLayout( Layout5 );
    APMainWindowLayout->addLayout( Layout10 );
    languageChange();
    resize( TQSize(385, 118).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void APMainWindow::languageChange()
{
    setCaption( tr2i18n( "Noaplayer" ) );
    speedLabelLeft->setText( tr2i18n( "Speed:" ) );
    timeLabel->setText( tr2i18n( "No time data" ) );
    speedLabel->setText( tr2i18n( "100%" ) );
    titleLabel->setText( tr2i18n( "No stream" ) );
    volumeLabel->setText( tr2i18n( "100%" ) );
    volumeLabelLeft->setText( tr2i18n( "Volume:" ) );
    infoLabel->setText( tr2i18n( "..." ) );
    menuButton->setText( TQString::null );
    TQToolTip::add( menuButton, tr2i18n( "Menu" ) );
    previousButton->setText( TQString::null );
    TQToolTip::add( previousButton, tr2i18n( "Skip to previous track" ) );
    playButton->setText( TQString::null );
    TQToolTip::add( playButton, tr2i18n( "Play" ) );
    nextButton->setText( TQString::null );
    TQToolTip::add( nextButton, tr2i18n( "Skip to next track" ) );
    stopButton->setText( TQString::null );
    TQToolTip::add( stopButton, tr2i18n( "Stop" ) );
    playlistButton->setText( TQString::null );
    TQToolTip::add( playlistButton, tr2i18n( "Show playlist" ) );
    pauseButton->setText( TQString::null );
    TQToolTip::add( pauseButton, tr2i18n( "Pause" ) );
    forwardButton->setText( TQString::null );
    TQToolTip::add( forwardButton, tr2i18n( "Forwards, normal speed" ) );
    TQToolTip::add( speedSlider, tr2i18n( "Playback speed and direction" ) );
    TQToolTip::add( PixmapLabel2, tr2i18n( "Balance" ) );
    TQToolTip::add( balanceSlider, tr2i18n( "Balance" ) );
    TQToolTip::add( PixmapLabel1, tr2i18n( "Volume" ) );
    TQToolTip::add( volumeSlider, tr2i18n( "Volume" ) );
}

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

TQMetaObject *APMainWindow::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_APMainWindow( "APMainWindow", &APMainWindow::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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