diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
commit | b0e912c8b3d02a518fedda28c3180eb4794a7520 (patch) | |
tree | 07d344862562fab58cbe2df39d13d16f2e4d2bea /src | |
parent | 4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff) | |
download | k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip |
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src')
65 files changed, 1859 insertions, 1837 deletions
diff --git a/src/configDlg.cpp b/src/configDlg.cpp index b4a6fb7..0df4a87 100644 --- a/src/configDlg.cpp +++ b/src/configDlg.cpp @@ -9,33 +9,33 @@ #include "configDlg.h" -#include <qvariant.h> -#include <qtable.h> +#include <tqvariant.h> +#include <tqtable.h> #include <kpushbutton.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> #include "kpushbutton.h" /* - * Constructs a configDlg as a child of 'parent', with the + * Constructs a configDlg as a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. */ -configDlg::configDlg( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +configDlg::configDlg( TQWidget* tqparent, const char* name, WFlags fl ) + : TQWidget( tqparent, name, fl ) { if ( !name ) setName( "configDlg" ); - setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) ); - configDlgLayout = new QGridLayout( this, 1, 1, 11, 6, "configDlgLayout"); + tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) ); + configDlgLayout = new TQGridLayout( this, 1, 1, 11, 6, "configDlgLayout"); - Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); + Layout1 = new TQHBoxLayout( 0, 0, 6, "Layout1"); configDlgLayout->addMultiCellLayout( Layout1, 3, 3, 0, 1 ); - spacer4 = new QSpacerItem( 20, 190, QSizePolicy::Minimum, QSizePolicy::Expanding ); + spacer4 = new TQSpacerItem( 20, 190, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); configDlgLayout->addItem( spacer4, 2, 1 ); - tblDevices = new QTable( this, "tblDevices" ); + tblDevices = new TQTable( this, "tblDevices" ); tblDevices->setNumCols( tblDevices->numCols() + 1 ); tblDevices->horizontalHeader()->setLabel( tblDevices->numCols() - 1, tr2i18n( "device" ) ); tblDevices->setNumCols( tblDevices->numCols() + 1 ); @@ -44,36 +44,36 @@ configDlg::configDlg( QWidget* parent, const char* name, WFlags fl ) tblDevices->horizontalHeader()->setLabel( tblDevices->numCols() - 1, tr2i18n( "Input" ) ); tblDevices->setNumCols( tblDevices->numCols() + 1 ); tblDevices->horizontalHeader()->setLabel( tblDevices->numCols() - 1, tr2i18n( "Output" ) ); - tblDevices->setResizePolicy( QTable::Default ); - tblDevices->setVScrollBarMode( QTable::Auto ); + tblDevices->setResizePolicy( TQTable::Default ); + tblDevices->setVScrollBarMode( TQTable::Auto ); tblDevices->setNumRows( 0 ); tblDevices->setNumCols( 4 ); tblDevices->setShowGrid( TRUE ); - tblDevices->setSelectionMode( QTable::Single ); - tblDevices->setFocusStyle( QTable::SpreadSheet ); + tblDevices->setSelectionMode( TQTable::Single ); + tblDevices->setFocusStyle( TQTable::SpreadSheet ); configDlgLayout->addMultiCellWidget( tblDevices, 1, 2, 0, 0 ); - layout4 = new QVBoxLayout( 0, 0, 6, "layout4"); + tqlayout4 = new TQVBoxLayout( 0, 0, 6, "tqlayout4"); bAdd = new KPushButton( this, "bAdd" ); - bAdd->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, bAdd->sizePolicy().hasHeightForWidth() ) ); + bAdd->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, bAdd->sizePolicy().hasHeightForWidth() ) ); bAdd->setProperty( "stdItem", 27 ); - layout4->addWidget( bAdd ); + tqlayout4->addWidget( bAdd ); bRemove = new KPushButton( this, "bRemove" ); - bRemove->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, bRemove->sizePolicy().hasHeightForWidth() ) ); + bRemove->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, bRemove->sizePolicy().hasHeightForWidth() ) ); bRemove->setProperty( "stdItem", 28 ); - layout4->addWidget( bRemove ); + tqlayout4->addWidget( bRemove ); - configDlgLayout->addLayout( layout4, 1, 1 ); + configDlgLayout->addLayout( tqlayout4, 1, 1 ); languageChange(); - resize( QSize(578, 342).expandedTo(minimumSizeHint()) ); + resize( TQSize(578, 342).expandedTo(tqminimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections - connect( bRemove, SIGNAL( clicked() ), this, SLOT( bRemoveClick() ) ); - connect( bAdd, SIGNAL( clicked() ), this, SLOT( bAddClick() ) ); + connect( bRemove, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bRemoveClick() ) ); + connect( bAdd, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bAddClick() ) ); } /* @@ -81,7 +81,7 @@ configDlg::configDlg( QWidget* parent, const char* name, WFlags fl ) */ configDlg::~configDlg() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -96,9 +96,9 @@ void configDlg::languageChange() tblDevices->horizontalHeader()->setLabel( 2, tr2i18n( "Input" ) ); tblDevices->horizontalHeader()->setLabel( 3, tr2i18n( "Output" ) ); bAdd->setText( tr2i18n( "Add" ) ); - bAdd->setAccel( QKeySequence( QString::null ) ); + bAdd->setAccel( TQKeySequence( TQString() ) ); bRemove->setText( tr2i18n( "Remove" ) ); - bRemove->setAccel( QKeySequence( QString::null ) ); + bRemove->setAccel( TQKeySequence( TQString() ) ); } void configDlg::bRemoveClick() diff --git a/src/configDlg.ui b/src/configDlg.ui index 2bc3c78..4000b6b 100644 --- a/src/configDlg.ui +++ b/src/configDlg.ui @@ -1,10 +1,10 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>configDlg</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>configDlg</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -33,7 +33,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QLayoutWidget" row="3" column="0" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -59,14 +59,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>190</height> </size> </property> </spacer> - <widget class="QTable" row="1" column="0" rowspan="2" colspan="1"> + <widget class="TQTable" row="1" column="0" rowspan="2" colspan="1"> <column> <property name="text"> <string>device</string> @@ -112,9 +112,9 @@ <enum>SpreadSheet</enum> </property> </widget> - <widget class="QLayoutWidget" row="1" column="1"> + <widget class="TQLayoutWidget" row="1" column="1"> <property name="name"> - <cstring>layout4</cstring> + <cstring>tqlayout4</cstring> </property> <vbox> <property name="name"> @@ -183,12 +183,12 @@ </connection> </connections> -<slots> +<Q_SLOTS> <slot>bRemoveClick()</slot> <slot>bAddClick()</slot> <slot>bOkClick()</slot> -</slots> -<layoutdefaults spacing="6" margin="11"/> +</Q_SLOTS> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>kpushbutton.h</includehint> <includehint>kpushbutton.h</includehint> diff --git a/src/images.h b/src/images.h index a3c9198..a4b5e1c 100755 --- a/src/images.h +++ b/src/images.h @@ -60,7 +60,7 @@ static const char* const img_sound[] = "30 29 230 2", ".a c None", ".# c None", - "Qt c None", + "TQt c None", "aA c #101820", "aM c #181820", "aL c #181829", @@ -288,35 +288,35 @@ static const char* const img_sound[] = "a0 c #e6dee6", "b. c #e6e2e6", "bJ c #eee2ee", - "Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#", - ".aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt", - "Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#.b.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#", - ".aQt.aQt.aQt.aQt.c.d.e.f.fQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt", - "Qt.#Qt.#Qt.#Qt.#Qt.g.h.i.j.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#", - ".aQt.aQt.aQt.aQt.a.k.aQt.lQt.aQt.aQt.m.n.o.p.qQt.aQt.aQt.aQt", - "Qt.#Qt.#Qt.#Qt.#.r.sQt.#.t.#Qt.#Qt.u.v.w.x.y.z.AQt.#Qt.#Qt.#", - ".aQt.aQt.B.C.a.D.E.F.a.r.G.H.aQt.I.J.K.L.M.M.N.O.PQt.aQt.aQt", - "Qt.#Qt.#.s.Q.R.c.S.#Qt.k.F.#Qt.T.U.V.W.W.X.Y.Z.0.u.#Qt.#Qt.#", - ".aQt.aQt.1.2.3.f.aQt.aQt.aQt.4.5.V.W.6.W.7.Y.8.y.9Qt.aQt.aQt", - "Qt.#Qt.#Qt.t#.##Qt.#Qt.#Qt#a#b#c.W#d.W.W.M.Y#e.N#f.#Qt.#Qt.#", - ".aQt.aQt#g#h#iQt.aQt.aQt.a#j.V.K.V.W#d#k#l.Y#m#n#oQt.aQt.aQt", - "Qt.#Qt.#.c#pQt.#Qt.#Qt.#Qt.x#q.V.W#d#r#s#t#u#v#w#x.#Qt.#Qt.#", - ".aQt.a#y#z#A.aQt.aQt.aQt#B#C.V.W.6.U#D#E#F#G#u#H#IQt.aQt.aQt", - "Qt.#Qt.##J.#Qt.##K#LQt.##M#q.7#N#N#O#P#Q#R#S#T#U#V.#Qt.#Qt.#", - ".aQt.aQt.aQt.aQt#W#X.a#Y#Z#0#1#0#0#2#3#4#T#5#6#U#G#7.aQt.aQt", - "Qt.#Qt.#Qt.#Qt#8#9a.Qta##Saa#Saa#Gabac#Saaadae.Naf.vQt.#Qt.#", - ".aQt.aQtagagahai.aQt.aaj#S#w#wakal#5#l.w#Vaman#N#lao.aQt.aQt", - "Qt.#Qt.#.DapaqahQt.#Qtarak#Tasatauavaw.AaxayazaA.ZaBQt.#Qt.#", - ".aQt.aQt.aQt.aQt.aQt.aaCakaDaEaFaGaHaIaJaK#waLaMaNQt.aQt.aQt", - "Qt.#Qt.#Qt.#Qt.#Qt.#Qt.uaOaDaPaQaRaSaTaU.5aVaWaXaYaZa0.#Qt.#", - ".aQt.aQt.aQt.aQt.aQt.aa1aja2a3a4a4aJaj.Ua5a6a7a.a8a9#yb..aQt", - "Qt.#Qt.#Qt.#Qt.#Qt.#Qtb#.9babbbcbdbebfbgbh#AbibjbkblbmbnQt.#", - ".aQt.aQt.aQt.aQt.aQt.abnbobp.Ubfbqbrbsbsbt#Aa5bjbua8bmbv.aQt", - "Qt.#Qt.#Qt.#Qt.#Qt.#Qtbvbw.Dbxa.bybza7a6a7bzbAbx.DbBbC.#Qt.#", - ".aQt.aQt.aQt.aQt.aQt.aQtbvbD#ybEbmbBbF.bbGbmbHbIaZbv.aQt.aQt", - "Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#bJ.#Qt.#Qt.#Qt.#Qt.#Qt.#", - ".aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt", - "Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#" + "TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#", + ".aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt", + "TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#.b.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#", + ".aTQt.aTQt.aTQt.aTQt.c.d.e.f.fTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt", + "TQt.#TQt.#TQt.#TQt.#TQt.g.h.i.j.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#", + ".aTQt.aTQt.aTQt.aTQt.a.k.aTQt.lTQt.aTQt.aTQt.m.n.o.p.qTQt.aTQt.aTQt.aTQt", + "TQt.#TQt.#TQt.#TQt.#.r.sTQt.#.t.#TQt.#TQt.u.v.w.x.y.z.ATQt.#TQt.#TQt.#", + ".aTQt.aTQt.B.C.a.D.E.F.a.r.G.H.aTQt.I.J.K.L.M.M.N.O.PTQt.aTQt.aTQt", + "TQt.#TQt.#.s.Q.R.c.S.#TQt.k.F.#TQt.T.U.V.W.W.X.Y.Z.0.u.#TQt.#TQt.#", + ".aTQt.aTQt.1.2.3.f.aTQt.aTQt.aTQt.4.5.V.W.6.W.7.Y.8.y.9TQt.aTQt.aTQt", + "TQt.#TQt.#TQt.t#.##TQt.#TQt.#TQt#a#b#c.W#d.W.W.M.Y#e.N#f.#TQt.#TQt.#", + ".aTQt.aTQt#g#h#iTQt.aTQt.aTQt.a#j.V.K.V.W#d#k#l.Y#m#n#oTQt.aTQt.aTQt", + "TQt.#TQt.#.c#pTQt.#TQt.#TQt.#TQt.x#q.V.W#d#r#s#t#u#v#w#x.#TQt.#TQt.#", + ".aTQt.a#y#z#A.aTQt.aTQt.aTQt#B#C.V.W.6.U#D#E#F#G#u#H#ITQt.aTQt.aTQt", + "TQt.#TQt.##J.#TQt.##K#LTQt.##M#q.7#N#N#O#P#Q#R#S#T#U#V.#TQt.#TQt.#", + ".aTQt.aTQt.aTQt.aTQt#W#X.a#Y#Z#0#1#0#0#2#3#4#T#5#6#U#G#7.aTQt.aTQt", + "TQt.#TQt.#TQt.#TQt#8#9a.TQta##Saa#Saa#Gabac#Saaadae.Naf.vTQt.#TQt.#", + ".aTQt.aTQtagagahai.aTQt.aaj#S#w#wakal#5#l.w#Vaman#N#lao.aTQt.aTQt", + "TQt.#TQt.#.DapaqahTQt.#TQtarak#Tasatauavaw.AaxayazaA.ZaBTQt.#TQt.#", + ".aTQt.aTQt.aTQt.aTQt.aTQt.aaCakaDaEaFaGaHaIaJaK#waLaMaNTQt.aTQt.aTQt", + "TQt.#TQt.#TQt.#TQt.#TQt.#TQt.uaOaDaPaQaRaSaTaU.5aVaWaXaYaZa0.#TQt.#", + ".aTQt.aTQt.aTQt.aTQt.aTQt.aa1aja2a3a4a4aJaj.Ua5a6a7a.a8a9#yb..aTQt", + "TQt.#TQt.#TQt.#TQt.#TQt.#TQtb#.9babbbcbdbebfbgbh#AbibjbkblbmbnTQt.#", + ".aTQt.aTQt.aTQt.aTQt.aTQt.abnbobp.Ubfbqbrbsbsbt#Aa5bjbua8bmbv.aTQt", + "TQt.#TQt.#TQt.#TQt.#TQt.#TQtbvbw.Dbxa.bybza7a6a7bzbAbx.DbBbC.#TQt.#", + ".aTQt.aTQt.aTQt.aTQt.aTQt.aTQtbvbD#ybEbmbBbF.bbGbmbHbIaZbv.aTQt.aTQt", + "TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#bJ.#TQt.#TQt.#TQt.#TQt.#TQt.#", + ".aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt", + "TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#" }; @@ -353,7 +353,7 @@ static const char* const img_video[] = "30 30 205 2", ".a c None", ".# c None", - "Qt c None", + "TQt c None", ".j c #292452", ".q c #292852", ".i c #39305a", @@ -556,36 +556,36 @@ static const char* const img_video[] = "ao c #fff6ff", "ac c #fffaff", "#F c #ffffff", - "Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#", - ".aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt", - "Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#", - ".aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt", - "Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.bQt.#Qt.#Qt.#Qt.#Qt.#", - ".aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.a.c.d.e.f.g.aQt.aQt.aQt", - "Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#.h.i.j.k.l.mQt.#Qt.#Qt.#", - ".aQt.aQt.aQt.aQt.aQt.aQt.aQt.nQt.a.o.p.q.r.s.t.u.vQt.aQt.aQt", - "Qt.#Qt.#Qt.#Qt.#Qt.#Qt.w.x.y.z.A.B.C.D.E.F.t.G.H.A.#Qt.#Qt.#", - ".aQt.aQt.aQt.aQt.a.I.J.K.L.M.A.N.O.D.P.Q.R.S.T.L.U.V.aQt.aQt", - "Qt.#Qt.#Qt.#Qt.#Qt.#.W.y.X.Y.Z.0.1.2.3.4.5.6.7.8Qt.#Qt.#Qt.#", - ".aQt.aQt.aQt.aQt.9#..2##.D###a#b.z.z#c#d#e.h#fQt.aQt.aQt.aQt", - "Qt.#Qt.#Qt.##d#g#h#i#j#k#l.A.3#m#n.n.w.h.B#o#p.#Qt.#Qt.#Qt.#", - ".aQt.aQt.a.g#q#r#s#t#u#v.Q#w.4#x#y#z#A#B#C.V.aQt.aQt.aQt.aQt", - "Qt.#Qt.#Qt#D#E#F#G#H#I#J#c#K#L.z.X#M#N#O#P.#Qt.#Qt.#Qt.#Qt.#", - ".aQt.aQt.g#Q#R#S#S#T#U#V#W.A#X#Y#Z#0#1#2#h.B.aQt.aQt.aQt.aQt", - "Qt.#Qt.##3#4#5#6#7#8#9a..O.D###ka#aaabac#p.AQt.#Qt.#Qt.#Qt.#", - ".aQt.aad#waeafagahaiajakal##am#9anaoapapaq.o.aQt.aQt.aQt.aQt", - "Qt.#Qt.##warasatauavaw.Eax#eay#4abaqaqaz#J#CQt.#Qt.#Qt.#Qt.#", - ".aQt.aQt#taAaBaCawaDaE#zaF.zaGaHaIataJaJaKaL.aQt.aQt.aQt.aQt", - "Qt.#Qt.#aM.L.zaNaOaNaPaQ#e.6aNaJaRaSaTaUaVaWQt.#Qt.#Qt.#Qt.#", - ".aQt.aQtaXaYaZaZ#baZaVa0.AaZa1a2a3a4a5a6a7Qt.aQt.aQt.aQt.aQt", - "Qt.#Qt.#Qt.ha8a9.Xb.aM.o.o.7aOb#babbbc.#Qt.#Qt.#Qt.#Qt.#Qt.#", - ".aQt.aQt.abdaY#Cb.aNbebfbg#ebh#pabQt.aQt.aQt.aQt.aQt.aQt.aQt", - "Qt.#Qt.#Qt.#Qtbi.LbjaF.L#tbkQt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#", - ".aQt.aQt.aQt.aQt.aQt.8Qt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt", - "Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#", - ".aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt", - "Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#Qt.#", - ".aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt.aQt" + "TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#", + ".aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt", + "TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#", + ".aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt", + "TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.bTQt.#TQt.#TQt.#TQt.#TQt.#", + ".aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.a.c.d.e.f.g.aTQt.aTQt.aTQt", + "TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#.h.i.j.k.l.mTQt.#TQt.#TQt.#", + ".aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.nTQt.a.o.p.q.r.s.t.u.vTQt.aTQt.aTQt", + "TQt.#TQt.#TQt.#TQt.#TQt.#TQt.w.x.y.z.A.B.C.D.E.F.t.G.H.A.#TQt.#TQt.#", + ".aTQt.aTQt.aTQt.aTQt.a.I.J.K.L.M.A.N.O.D.P.Q.R.S.T.L.U.V.aTQt.aTQt", + "TQt.#TQt.#TQt.#TQt.#TQt.#.W.y.X.Y.Z.0.1.2.3.4.5.6.7.8TQt.#TQt.#TQt.#", + ".aTQt.aTQt.aTQt.aTQt.9#..2##.D###a#b.z.z#c#d#e.h#fTQt.aTQt.aTQt.aTQt", + "TQt.#TQt.#TQt.##d#g#h#i#j#k#l.A.3#m#n.n.w.h.B#o#p.#TQt.#TQt.#TQt.#", + ".aTQt.aTQt.a.g#q#r#s#t#u#v.Q#w.4#x#y#z#A#B#C.V.aTQt.aTQt.aTQt.aTQt", + "TQt.#TQt.#TQt#D#E#F#G#H#I#J#c#K#L.z.X#M#N#O#P.#TQt.#TQt.#TQt.#TQt.#", + ".aTQt.aTQt.g#Q#R#S#S#T#U#V#W.A#X#Y#Z#0#1#2#h.B.aTQt.aTQt.aTQt.aTQt", + "TQt.#TQt.##3#4#5#6#7#8#9a..O.D###ka#aaabac#p.ATQt.#TQt.#TQt.#TQt.#", + ".aTQt.aad#waeafagahaiajakal##am#9anaoapapaq.o.aTQt.aTQt.aTQt.aTQt", + "TQt.#TQt.##warasatauavaw.Eax#eay#4abaqaqaz#J#CTQt.#TQt.#TQt.#TQt.#", + ".aTQt.aTQt#taAaBaCawaDaE#zaF.zaGaHaIataJaJaKaL.aTQt.aTQt.aTQt.aTQt", + "TQt.#TQt.#aM.L.zaNaOaNaPaQ#e.6aNaJaRaSaTaUaVaWTQt.#TQt.#TQt.#TQt.#", + ".aTQt.aTQtaXaYaZaZ#baZaVa0.AaZa1a2a3a4a5a6a7TQt.aTQt.aTQt.aTQt.aTQt", + "TQt.#TQt.#TQt.ha8a9.Xb.aM.o.o.7aOb#babbbc.#TQt.#TQt.#TQt.#TQt.#TQt.#", + ".aTQt.aTQt.abdaY#Cb.aNbebfbg#ebh#pabTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt", + "TQt.#TQt.#TQt.#TQtbi.LbjaF.L#tbkTQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#", + ".aTQt.aTQt.aTQt.aTQt.aTQt.8TQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt", + "TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#", + ".aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt", + "TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#TQt.#", + ".aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt.aTQt" }; static const unsigned char img_chapter[] = { diff --git a/src/k9copy.cpp b/src/k9copy.cpp index a65fdf5..ba0275e 100644 --- a/src/k9copy.cpp +++ b/src/k9copy.cpp @@ -23,13 +23,13 @@ #include <kdockwidget.h> #include <kmdidefines.h> #include <kmdichildarea.h> -#include <qframe.h> +#include <tqframe.h> #include <kkeydialog.h> #include <kedittoolbar.h> #include <klibloader.h> #include "kviewmpeg2.h" #include "k9titlefactor.h" -#include <qdom.h> +#include <tqdom.h> #include <ksimpleconfig.h> #include "k9mp4title.h" #include "k9tools.h" @@ -65,7 +65,7 @@ k9Copy::k9Copy() // automatically save settings if changed: window size, toolbar // position, icon size, etc. Also to add actions for the statusbar // toolbar, and keybindings if necessary. - resize(QSize(800,600)); + resize(TQSize(800,600)); setToolviewStyle(KMdi::TextAndIcon); createCopyWindows(); @@ -121,15 +121,15 @@ void k9Copy::createCopyWindows() { m_ToolViews.append(acc); if (m_useXine) { - m_mp2=new K9Mplayer(this); + m_mp2=new K9Mplayer(TQT_TQOBJECT(this)); } else m_mp2=new kViewMPEG2(); m_previewAcc=addToolWindow(m_mp2,KDockWidget::DockRight,getMainDockWidget(),0,i18n("Preview"),i18n("Preview")); m_ToolViews.append(m_previewAcc); - connect(m_k9Main,SIGNAL(showPreview( k9DVD*, k9DVDTitle*,int )),m_mp2,SLOT(open( k9DVD*, k9DVDTitle*,int ))); - connect(m_k9Main,SIGNAL(stopPreview()),m_mp2,SLOT(bStopClick())); + connect(m_k9Main,TQT_SIGNAL(showPreview( k9DVD*, k9DVDTitle*,int )),m_mp2,TQT_SLOT(open( k9DVD*, k9DVDTitle*,int ))); + connect(m_k9Main,TQT_SIGNAL(stopPreview()),m_mp2,TQT_SLOT(bStopClick())); m_factors =new k9TitleFactor( this); m_factors->setUseDvdAuthor(m_useDvdAuthor); @@ -137,8 +137,8 @@ void k9Copy::createCopyWindows() { acc=addToolWindow(m_factors,KDockWidget::DockBottom,getMainDockWidget(),10,i18n("Shrink Factor"),i18n("Shrink Factor")); m_ToolViews.append(acc); - connect(m_k9Main,SIGNAL(SelectionChanged( k9DVD*,bool )),m_factors,SLOT(SelectionChanged( k9DVD*,bool ))); - connect(m_k9Main,SIGNAL(changedTitle( k9DVDTitle* )),m_factors,SLOT(changedTitle( k9DVDTitle* ))); + connect(m_k9Main,TQT_SIGNAL(SelectionChanged( k9DVD*,bool )),m_factors,TQT_SLOT(SelectionChanged( k9DVD*,bool ))); + connect(m_k9Main,TQT_SIGNAL(changedTitle( k9DVDTitle* )),m_factors,TQT_SLOT(changedTitle( k9DVDTitle* ))); KDockWidget *dw=dockManager->findWidgetParentDock (m_factors); dw->setForcedFixedHeight(h); @@ -147,10 +147,10 @@ void k9Copy::createCopyWindows() { // allow the view to change the statusbar and caption - connect(m_k9Main, SIGNAL(changeStatusbar(const QString&,int )), - this, SLOT(changeStatusbar(const QString&,int))); - connect(m_k9Main, SIGNAL(changeCaption(const QString&)), - this, SLOT(changeCaption(const QString&))); + connect(m_k9Main, TQT_SIGNAL(changeStatusbar(const TQString&,int )), + this, TQT_SLOT(changeStatusbar(const TQString&,int))); + connect(m_k9Main, TQT_SIGNAL(changeCaption(const TQString&)), + this, TQT_SLOT(changeCaption(const TQString&))); setAutoSaveSettings(); KSimpleConfig settings("K9Copy"); @@ -194,8 +194,8 @@ void k9Copy::createImportWindows() { acc=addToolWindow(m_menuEdit, KDockWidget::DockRight, getMainDockWidget(),20,i18n("Edit menu"),i18n("Edit Menu")); m_ToolViews.append(acc); - connect (m_k9Import,SIGNAL(titleSelected(k9Title*)),m_menuEdit,SLOT(titleSelected(k9Title*))); - connect (m_k9Import,SIGNAL(rootSelected(k9NewDVD*)),m_menuEdit,SLOT(rootSelected(k9NewDVD*))); + connect (m_k9Import,TQT_SIGNAL(titleSelected(k9Title*)),m_menuEdit,TQT_SLOT(titleSelected(k9Title*))); + connect (m_k9Import,TQT_SIGNAL(rootSelected(k9NewDVD*)),m_menuEdit,TQT_SLOT(rootSelected(k9NewDVD*))); m_k9Import->setMenuEdit(m_menuEdit); m_newTitle=new k9NewTitle(this); @@ -210,16 +210,16 @@ void k9Copy::createImportWindows() { m_chapterEdit->setIcon(SmallIcon("title")); acc=addToolWindow(m_chapterEdit, KDockWidget::DockBottom, getMainDockWidget(),20,i18n("Chapter properties"),i18n("Chapter properties")); m_ToolViews.append(acc); - connect(m_k9Import,SIGNAL(aviFileSelected(k9AviFile*)),m_chapterEdit,SLOT(setAviFile(k9AviFile*))); + connect(m_k9Import,TQT_SIGNAL(aviFileSelected(k9AviFile*)),m_chapterEdit,TQT_SLOT(setAviFile(k9AviFile*))); // allow the view to change the statusbar and caption /* - connect(m_k9Main, SIGNAL(changeStatusbar(const QString&,int )), - this, SLOT(changeStatusbar(const QString&,int))); - connect(m_k9Main, SIGNAL(changeCaption(const QString&)), - this, SLOT(changeCaption(const QString&))); + connect(m_k9Main, TQT_SIGNAL(changeStatusbar(const TQString&,int )), + this, TQT_SLOT(changeStatusbar(const TQString&,int))); + connect(m_k9Main, TQT_SIGNAL(changeCaption(const TQString&)), + this, TQT_SLOT(changeCaption(const TQString&))); */ setAutoSaveSettings(); KSimpleConfig settings("K9Copy"); @@ -250,48 +250,48 @@ bool k9Copy::queryClose ( ) { void k9Copy::setupActions() { - m_actions["open"]=KStdAction::open(this, SLOT(fileOpen()), actionCollection()); - m_actions["quit"]=KStdAction::quit(this, SLOT(quit()), actionCollection()); - m_actions["preferences"]=KStdAction::preferences(this,SLOT(preferences()),actionCollection()); - KStdAction::keyBindings(this, SLOT(optionsConfigureKeys()), actionCollection()); - KStdAction::configureToolbars(this, SLOT(optionsConfigureToolbars()), actionCollection()); + m_actions["open"]=KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(fileOpen()), actionCollection()); + m_actions["quit"]=KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(quit()), actionCollection()); + m_actions["preferences"]=KStdAction::preferences(TQT_TQOBJECT(this),TQT_SLOT(preferences()),actionCollection()); + KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(optionsConfigureKeys()), actionCollection()); + KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(optionsConfigureToolbars()), actionCollection()); setStandardToolBarMenuEnabled(TRUE); createStandardStatusBarAction(); PlayTitleAction = new KAction(i18n("Play title"), 0, - this, SLOT(ActionPlayTitle()), + TQT_TQOBJECT(this), TQT_SLOT(ActionPlayTitle()), actionCollection(), "PlayTitle"); m_actions["playtitle"]=PlayTitleAction; - QImage img; + TQImage img; img.loadFromData( img_preview, sizeof( img_preview ), "PNG" ); - PlayTitleAction->setIconSet(QIconSet(img)); + PlayTitleAction->setIconSet(TQIconSet(img)); CopyAction = new KAction(i18n("Copy"), 0, - this, SLOT(ActionCopy()), + TQT_TQOBJECT(this), TQT_SLOT(ActionCopy()), actionCollection(), "Copy"); m_actions["copy"]=CopyAction; CopyAction->setIcon("dvdcopy"); mkMpeg2Action = new KAction(i18n("Extract MPEG2"),0, - this, SLOT(ActionMpeg2()), + TQT_TQOBJECT(this), TQT_SLOT(ActionMpeg2()), actionCollection(),"MakeMPEG2"); m_actions["mp2"]=mkMpeg2Action; mkMpeg2Action->setIcon("mpeg"); mkMP4Action = new KAction(i18n("Create MPEG-4"),0, - this, SLOT(ActionMP4()), + TQT_TQOBJECT(this), TQT_SLOT(ActionMP4()), actionCollection(),"MakeMPEG4"); m_actions["mp4"]=mkMP4Action; mkMP4Action->setIcon("mp4"); ejectAction = new KAction(i18n("Eject"),0, - this, SLOT(ActionEject()), + TQT_TQOBJECT(this), TQT_SLOT(ActionEject()), actionCollection() , "Eject"); ejectAction->setIcon("player_eject"); @@ -299,19 +299,19 @@ void k9Copy::setupActions() { backupAction= new KRadioAction(i18n("DVD Backup"),0, - this, SLOT(ActionBackup()), + TQT_TQOBJECT(this), TQT_SLOT(ActionBackup()), actionCollection(), "backup"); backupAction->setExclusiveGroup("mode"); m_actions["backup"]=backupAction; authorAction= new KRadioAction(i18n("DVD Author"),0, - this, SLOT(ActionAuthor()), + TQT_TQOBJECT(this), TQT_SLOT(ActionAuthor()), actionCollection(), "author"); authorAction->setExclusiveGroup("mode"); m_actions["author"]=authorAction; m_actions["create"]= new KAction(i18n("Create DVD"),0, - this, SLOT(ActionCreate()), + TQT_TQOBJECT(this), TQT_SLOT(ActionCreate()), actionCollection(), "Create"); m_actions["create"]->setIcon("author"); @@ -353,7 +353,7 @@ void k9Copy::optionsConfigureToolbars() { // use the standard toolbar editor saveMainWindowSettings(KGlobal::config(), autoSaveGroup()); KEditToolbar dlg(factory()); - connect(&dlg,SIGNAL(newToolbarConfig()),this,SLOT(newToolbarConfig())); + connect(&dlg,TQT_SIGNAL(newToolbarConfig()),this,TQT_SLOT(newToolbarConfig())); dlg.exec(); } @@ -374,8 +374,8 @@ void k9Copy::fileOpen() { void k9Copy::addMp4TitleOptions() { m_mp4=new k9MP4Title(this); m_ToolViews.append(addToolWindow(m_mp4,KDockWidget::DockBottom,getMainDockWidget(),10,i18n("MPEG4 Encoding options"),i18n("MPEG4 Encoding Options"))); - connect(m_k9Main,SIGNAL(changedTitle( k9DVDTitle* )),m_mp4,SLOT(titleChanged( k9DVDTitle* ))); - connect(m_k9Main,SIGNAL(SelectionChanged( k9DVD*,bool )),m_mp4,SLOT(selectionChanged( k9DVD*,bool ))); + connect(m_k9Main,TQT_SIGNAL(changedTitle( k9DVDTitle* )),m_mp4,TQT_SLOT(titleChanged( k9DVDTitle* ))); + connect(m_k9Main,TQT_SIGNAL(SelectionChanged( k9DVD*,bool )),m_mp4,TQT_SLOT(selectionChanged( k9DVD*,bool ))); } @@ -392,14 +392,14 @@ void k9Copy::preferences() { m_ToolViews.removeRef(m_previewAcc); if (m_useXine) - m_mp2=new K9Mplayer(this); + m_mp2=new K9Mplayer(TQT_TQOBJECT(this)); else m_mp2=new kViewMPEG2(); m_previewAcc=addToolWindow(m_mp2,KDockWidget::DockRight,getMainDockWidget(),0,i18n("Preview"),i18n("Preview")); m_ToolViews.append(m_previewAcc); //kViewMPEG2 * v=(kViewMPEG2*) m_mp2; - connect(m_k9Main,SIGNAL(showPreview( k9DVD*, k9DVDTitle*,int )),m_mp2,SLOT(open( k9DVD*, k9DVDTitle*,int ))); - connect(m_k9Main,SIGNAL(stopPreview()),m_mp2,SLOT(bStopClick())); + connect(m_k9Main,TQT_SIGNAL(showPreview( k9DVD*, k9DVDTitle*,int )),m_mp2,TQT_SLOT(open( k9DVD*, k9DVDTitle*,int ))); + connect(m_k9Main,TQT_SIGNAL(stopPreview()),m_mp2,TQT_SLOT(bStopClick())); m_mp4->load(); } @@ -444,7 +444,7 @@ void k9Copy::ActionCreate() { m_k9Import->execute(); } -KMdiToolViewAccessor * k9Copy::setToolWindow(QWidget *_widget,KDockWidget::DockPosition _pos,const QString &tabToolTip,const QString &tabCaption) { +KMdiToolViewAccessor * k9Copy::setToolWindow(TQWidget *_widget,KDockWidget::DockPosition _pos,const TQString &tabToolTip,const TQString &tabCaption) { KMdiToolViewAccessor *acc=addToolWindow(_widget, _pos, getMainDockWidget(),0,tabToolTip,tabCaption); m_ToolViews.append(acc); return acc; @@ -456,26 +456,26 @@ void k9Copy::removeToolWindow(KMdiToolViewAccessor *toolWin) { } -void k9Copy::changeStatusbar(const QString& text,int id) { +void k9Copy::changeStatusbar(const TQString& text,int id) { // display the text on the statusbar statusBar()->changeItem(text,id); } -void k9Copy::changeCaption(const QString& text) { +void k9Copy::changeCaption(const TQString& text) { // display the text on the caption setCaption(text); } -void k9Copy::clone( QString _input,QString _output) { +void k9Copy::clone( TQString _input,TQString _output) { show(); m_k9Main->Clone( _input,_output); } -void k9Copy::setInput(QString _input) { +void k9Copy::setInput(TQString _input) { m_k9Main->setInput(_input); } -void k9Copy::setOutput(QString _output) { +void k9Copy::setOutput(TQString _output) { m_k9Main->setOutput(_output); } @@ -494,7 +494,7 @@ void k9Copy::saveDock() { } } -void k9Copy::closeEvent( QCloseEvent* ce ) { +void k9Copy::closeEvent( TQCloseEvent* ce ) { saveDock(); ce->accept(); kapp->quit(); diff --git a/src/k9copy.h b/src/k9copy.h index 2fb43f4..6406a62 100644 --- a/src/k9copy.h +++ b/src/k9copy.h @@ -37,18 +37,19 @@ class k9NewTitle; class k9ChapterEdit; class k9Copy : public KMdiMainFrm { Q_OBJECT + TQ_OBJECT public: /** * Default Constructor */ k9Copy(); - void clone(QString _input,QString _output); - void setInput(QString _input); - void setOutput(QString _output); + void clone(TQString _input,TQString _output); + void setInput(TQString _input); + void setOutput(TQString _output); KDockWidget* getVisibleDock(); - KMdiToolViewAccessor * setToolWindow(QWidget *_widget,KDockWidget::DockPosition _pos,const QString &tabToolTip,const QString &tabCaption) ; + KMdiToolViewAccessor * setToolWindow(TQWidget *_widget,KDockWidget::DockPosition _pos,const TQString &tabToolTip,const TQString &tabCaption) ; void removeToolWindow(KMdiToolViewAccessor *toolWin); /** @@ -58,7 +59,7 @@ public: protected: bool queryClose( ); - void closeEvent( QCloseEvent* ce ); + void closeEvent( TQCloseEvent* ce ); private slots: void ActionCopy(); @@ -69,8 +70,8 @@ private slots: void ActionAuthor(); void ActionPlayTitle(); void ActionCreate(); - void changeStatusbar(const QString& text,int id); - void changeCaption(const QString& text); + void changeStatusbar(const TQString& text,int id); + void changeCaption(const TQString& text); void optionsConfigureKeys(); void optionsConfigureToolbars(); void newToolbarConfig(); @@ -104,15 +105,15 @@ private: k9TitleFactor *m_factors; k9LangSelect *m_lang; k9MP4Title *m_mp4; - QWidget *m_mp2; + TQWidget *m_mp2; k9MenuEdit *m_menuEdit; k9NewTitle *m_newTitle; k9ChapterEdit *m_chapterEdit; k9Import *m_k9Import; bool m_useXine; bool m_useDvdAuthor; - QMap <QString,KAction*> m_actions; - QPtrList <KMdiToolViewAccessor> m_ToolViews; + TQMap <TQString,KAction*> m_actions; + TQPtrList <KMdiToolViewAccessor> m_ToolViews; k9CdDrives m_drives; }; diff --git a/src/k9glwidget.cpp b/src/k9glwidget.cpp index 444d823..9594e62 100644 --- a/src/k9glwidget.cpp +++ b/src/k9glwidget.cpp @@ -13,20 +13,20 @@ #include "k9glwidget.h" #ifdef HAVE_OPENGL -#include <qsize.h> -#include <qapplication.h> -#include <qdatetime.h> +#include <tqsize.h> +#include <tqapplication.h> +#include <tqdatetime.h> #include <cstdlib> #include "ac.h" #include <X11/Xlib.h> -k9GLWidget::k9GLWidget(QWidget *parent, const char *name):QGLWidget(parent, name) { +k9GLWidget::k9GLWidget(TQWidget *tqparent, const char *name):TQGLWidget(tqparent, name) { XMapRaised(x11Display(),winId()); m_buffer=NULL; m_height=0; m_width=0; - library=new QLibrary("GL.so.1"); + library=new TQLibrary("GL.so.1"); glClear = (glClear_t) library->resolve( "glClear" ); glRasterPos2i= (glRasterPos2i_t)library->resolve("glRasterPos2i"); @@ -45,9 +45,9 @@ k9GLWidget::k9GLWidget(QWidget *parent, const char *name):QGLWidget(parent, name glGetString=(glGetString_t)library->resolve("glGetString"); } -k9GLWidget* k9GLWidget::createWidget(QWidget *parent , const char *name ) { +k9GLWidget* k9GLWidget::createWidget(TQWidget *tqparent , const char *name ) { //XInitThreads(); - return new k9GLWidget(parent,name); + return new k9GLWidget(tqparent,name); } k9GLWidget::~k9GLWidget() { @@ -61,9 +61,9 @@ void k9GLWidget::paintGL() { } void k9GLWidget::setImage(uchar *_buffer,int _width,int _height,int _len) { - if (qApp==NULL) + if (tqApp==NULL) return; - if (qApp->tryLock() ) { + if (tqApp->tryLock() ) { uchar *buffer=_buffer; m_width=_width; m_height=_height; @@ -74,8 +74,8 @@ void k9GLWidget::setImage(uchar *_buffer,int _width,int _height,int _len) { //m_stack.push(buffer); m_mutex.unlock(); update(); - if (qApp !=NULL) - qApp->unlock(); + if (tqApp !=NULL) + tqApp->unlock(); } else { free(_buffer); } diff --git a/src/k9glwidget.h b/src/k9glwidget.h index c26237c..e032ed8 100644 --- a/src/k9glwidget.h +++ b/src/k9glwidget.h @@ -14,12 +14,16 @@ #include "k9common.h" +#ifdef Q_MOC_RUN +#define HAVE_OPENGL +#endif // Q_MOC_RUN + #ifdef HAVE_OPENGL -#include <qimage.h> -#include <qlibrary.h> -#include <qgl.h> -#include <qmutex.h> +#include <tqimage.h> +#include <tqlibrary.h> +#include <tqgl.h> +#include <tqmutex.h> typedef void (*glClear_t) (GLbitfield); typedef void (*glRasterPos2i_t) ( GLint , GLint ); @@ -39,12 +43,13 @@ typedef const GLubyte * (*glGetString_t)( GLenum ); /** @author Jean-Michel PETIT <[email protected]> */ -class k9GLWidget : public QGLWidget +class k9GLWidget : public TQGLWidget { Q_OBJECT + TQ_OBJECT public: void setImage(uchar *_buffer,int _width,int _height,int _len); - static k9GLWidget * createWidget(QWidget *parent = 0, const char *name = 0); + static k9GLWidget * createWidget(TQWidget *tqparent = 0, const char *name = 0); ~k9GLWidget(); protected: void draw(); @@ -52,12 +57,12 @@ protected: void initializeGL(); void paintGL(); private: - k9GLWidget(QWidget *parent = 0, const char *name = 0); - QImage m_image; - QMutex m_mutex; + k9GLWidget(TQWidget *tqparent = 0, const char *name = 0); + TQImage m_image; + TQMutex m_mutex; int m_width,m_height; uchar *m_buffer; - QLibrary * library; + TQLibrary * library; glClear_t glClear; glRasterPos2i_t glRasterPos2i; @@ -78,18 +83,18 @@ private: #else -#include <qwidget.h> -#include <qimage.h> +#include <tqwidget.h> +#include <tqimage.h> -class k9GLWidget:public QWidget +class k9GLWidget:public TQWidget { public: - static k9GLWidget * createWidget(QWidget *parent = 0, const char *name = 0) { - return new k9GLWidget(parent,name); + static k9GLWidget * createWidget(TQWidget *tqparent = 0, const char *name = 0) { + return new k9GLWidget(tqparent,name); } void setImage(uchar *_buffer,int _width,int _height,int _len){}; private: - k9GLWidget(QWidget *parent = 0, const char *name = 0){}; + k9GLWidget(TQWidget *tqparent = 0, const char *name = 0){}; }; diff --git a/src/k9langselect.cpp b/src/k9langselect.cpp index 997d514..2700e56 100644 --- a/src/k9langselect.cpp +++ b/src/k9langselect.cpp @@ -16,8 +16,8 @@ #include "k9dvdtitle.h" #include "k9main.h" #include <kstandarddirs.h> -k9LangSelect::k9LangSelect(k9Main *mainWindow,QWidget* parent, const char* name, WFlags fl) -: langSelect(parent,name,fl) +k9LangSelect::k9LangSelect(k9Main *mainWindow,TQWidget* tqparent, const char* name, WFlags fl) +: langSelect(tqparent,name,fl) { setMain( mainWindow); m_main->setLangSelect( this); @@ -49,23 +49,23 @@ void k9LangSelect::fillLvLanguages() { lvLanguages->clear(); langAudItems.clear(); langSubItems.clear(); - QStringList slAudLang,slSubLang; + TQStringList slAudLang,slSubLang; if (m_dvd->getopened()) { k9DVDSubtitle *l_sub; k9DVDAudioStream *l_auds; - QObjectList *items=m_main->getItems(); + TQObjectList *items=m_main->getItems(); for (uint i=0;i<items->count();i++) { k9DVDListItem *litem=(k9DVDListItem*)items->at(i); switch (litem->streamType) { case SUB: { l_sub=litem->subtitle; - if (slSubLang.contains(l_sub->getlanguage())==0) + if (slSubLang.tqcontains(l_sub->getlanguage())==0) slSubLang.append(l_sub->getlanguage()); break; } case AUD: { l_auds=litem->audioStream; - if (slAudLang.contains(l_auds->getlanguage())==0) + if (slAudLang.tqcontains(l_auds->getlanguage())==0) slAudLang.append(l_auds->getlanguage()); break; } @@ -74,10 +74,10 @@ void k9LangSelect::fillLvLanguages() { } } } - QListViewItem *audioRoot = new QListViewItem(lvLanguages); + TQListViewItem *audioRoot = new TQListViewItem(lvLanguages); audioRoot->setOpen( TRUE ); audioRoot->setText(0, i18n("Audio")); - for ( QStringList::Iterator it = slAudLang.begin(); it != slAudLang.end(); ++it ) { + for ( TQStringList::Iterator it = slAudLang.begin(); it != slAudLang.end(); ++it ) { ckLvLangItem *lvitem=new ckLvLangItem(audioRoot,m_main); lvitem->setText(0,*it); lvitem->streamType=AUD; @@ -85,10 +85,10 @@ void k9LangSelect::fillLvLanguages() { langAudItems.append(lvitem); } - QListViewItem *subRoot = new QListViewItem(lvLanguages); + TQListViewItem *subRoot = new TQListViewItem(lvLanguages); subRoot->setOpen( TRUE ); subRoot->setText(0, i18n("Subtitles")); - for ( QStringList::Iterator it = slSubLang.begin(); it != slSubLang.end(); ++it ) { + for ( TQStringList::Iterator it = slSubLang.begin(); it != slSubLang.end(); ++it ) { ckLvLangItem *lvitem=new ckLvLangItem(subRoot,m_main); lvitem->setText(0,*it); lvitem->streamType=SUB; @@ -108,10 +108,10 @@ void k9LangSelect::update() { } -void k9LangSelect::updateLvLang(const eStreamType streamType,const QString & lang ) { +void k9LangSelect::updateLvLang(const eStreamType streamType,const TQString & lang ) { uint Total=0,Selected=0; - QString lg; - QObjectList *items = m_main->getItems(); + TQString lg; + TQObjectList *items = m_main->getItems(); for (uint i=0;i<items->count();i++) { k9DVDListItem *litem=(k9DVDListItem*)items->at(i); if (litem->streamType==streamType ) { diff --git a/src/k9langselect.h b/src/k9langselect.h index e54ea5c..71697bb 100644 --- a/src/k9langselect.h +++ b/src/k9langselect.h @@ -17,21 +17,21 @@ #include "langselectw.h" #include "k9main.h" -#include <qlistview.h> +#include <tqlistview.h> class k9Main; class k9DVD; -class ckLvLangItem : public QCheckListItem { +class ckLvLangItem : public TQCheckListItem { public: - ckLvLangItem( QListViewItem *parent,k9Main *dlg) - : QCheckListItem( parent,"",QCheckListItem::CheckBox) { + ckLvLangItem( TQListViewItem *tqparent,k9Main *dlg) + : TQCheckListItem( tqparent,"",TQCheckListItem::CheckBox) { mainDlg=dlg; streamType=NONE; } eStreamType streamType; k9Main *mainDlg; - QString language; + TQString language; protected: void stateChange(bool state); }; @@ -41,9 +41,10 @@ protected: class k9LangSelect : public langSelect { Q_OBJECT + TQ_OBJECT public: - k9LangSelect(k9Main *mainWindow,QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + k9LangSelect(k9Main *mainWindow,TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); ~k9LangSelect(); void setMain(k9Main* _value); @@ -60,9 +61,9 @@ protected: /*$PROTECTED_FUNCTIONS$*/ k9Main * m_main; k9DVD *m_dvd; - QPtrList <ckLvLangItem> langAudItems; - QPtrList <ckLvLangItem> langSubItems; - void updateLvLang(const eStreamType streamType,const QString & lang ); + TQPtrList <ckLvLangItem> langAudItems; + TQPtrList <ckLvLangItem> langSubItems; + void updateLvLang(const eStreamType streamType,const TQString & lang ); protected slots: /*$PROTECTED_SLOTS$*/ diff --git a/src/k9main.cpp b/src/k9main.cpp index 0daf516..055fe17 100644 --- a/src/k9main.cpp +++ b/src/k9main.cpp @@ -35,34 +35,34 @@ #include "k9titleencopt.h" #include <kselect.h> #include <kcombobox.h> -#include <qtextbrowser.h> -#include <qapplication.h> -#include <qlistview.h> +#include <tqtextbrowser.h> +#include <tqapplication.h> +#include <tqlistview.h> #include <kurlrequester.h> #include <kurl.h> -#include <qdir.h> +#include <tqdir.h> #include <kstandarddirs.h> -#include <qspinbox.h> -#include <qstatusbar.h> +#include <tqspinbox.h> +#include <tqstatusbar.h> #include <kpushbutton.h> #include <kiconloader.h> -#include <qcheckbox.h> -#include <qmenubar.h> -#include <qlabel.h> -#include <qpixmap.h> -#include <qspinbox.h> -#include <qpainter.h> +#include <tqcheckbox.h> +#include <tqmenubar.h> +#include <tqlabel.h> +#include <tqpixmap.h> +#include <tqspinbox.h> +#include <tqpainter.h> #include <kdirselectdialog.h> #include <kio/global.h> #include <kio/job.h> #include <kio/netaccess.h> #include <kdiskfreesp.h> -#include <qvaluelist.h> +#include <tqvaluelist.h> #include <kdeversion.h> -#include <qbitmap.h> +#include <tqbitmap.h> -k9DVDListItem::k9DVDListItem(QObject *DVD,ckLvItem *List,eStreamType type) +k9DVDListItem::k9DVDListItem(TQObject *DVD,ckLvItem *List,eStreamType type) { switch(type) { @@ -88,13 +88,13 @@ k9DVDListItem::k9DVDListItem(QObject *DVD,ckLvItem *List,eStreamType type) streamType=type; } -k9Main::k9Main(QWidget* parent, const char* name, k9CdDrives *_drives) - : MainDlg(parent,name),pxVideo((const char **) img_video), pxSound((const char **) img_sound), +k9Main::k9Main(TQWidget* tqparent, const char* name, k9CdDrives *_drives) + : MainDlg(tqparent,name),pxVideo((const char **) img_video), pxSound((const char **) img_sound), pxText((const char **) img_text) { drives=_drives; - m_parent=(k9Copy*)parent; - QImage img; + m_parent=(k9Copy*)tqparent; + TQImage img; img.loadFromData( img_chapter, sizeof( img_chapter ), "PNG" ); pxChapter.convertFromImage( img); /* m_factory = KLibLoader::self()->factory("libk9copy"); @@ -103,27 +103,27 @@ k9Main::k9Main(QWidget* parent, const char* name, k9CdDrives *_drives) } */ - dvd=new k9DVD(this); + dvd=new k9DVD(TQT_TQOBJECT(this)); updating=false; items.setAutoDelete(true); - listView1->setDefaultRenameAction(QListView::Accept); + listView1->setDefaultRenameAction(TQListView::Accept); // KStandardDirs kd; m_prefOutput=locateLocal("tmp","k9copy/",true); //kd.findResource("tmp",""); - connect(drives,SIGNAL(deviceAdded( k9CdDrive*)),this,SLOT(deviceAdded( k9CdDrive* ))); - connect(drives,SIGNAL(deviceRemoved( k9CdDrive*)),this,SLOT(deviceRemoved( k9CdDrive* ))); + connect(drives,TQT_SIGNAL(deviceAdded( k9CdDrive*)),this,TQT_SLOT(deviceAdded( k9CdDrive* ))); + connect(drives,TQT_SIGNAL(deviceRemoved( k9CdDrive*)),this,TQT_SLOT(deviceRemoved( k9CdDrive* ))); readSettings(); bInputOpen->setPixmap(SmallIcon("fileopen")); bInputOpenDir->setPixmap(SmallIcon("folder_open")); emit SelectionChanged(NULL,true); - m_update=new k9UpdateFactor(this,""); - connect(m_update,SIGNAL(updateFactor_internal()),this,SLOT(updateFactor_internal())); + m_update=new k9UpdateFactor(TQT_TQOBJECT(this),""); + connect(m_update,TQT_SIGNAL(updateFactor_internal()),this,TQT_SLOT(updateFactor_internal())); } -k9DVDListItem *k9Main::addListItem(QObject *DVD,ckLvItem *List,eStreamType type) +k9DVDListItem *k9Main::addListItem(TQObject *DVD,ckLvItem *List,eStreamType type) { k9DVDListItem *litem; litem=new k9DVDListItem(DVD,List,type); @@ -142,7 +142,7 @@ int ckLvItem::rtti() const return(1001); } -int ckLvItem::compare ( QListViewItem * i, int col, bool ascending ) const +int ckLvItem::compare ( TQListViewItem * i, int col, bool ascending ) const { if (i->rtti() !=1001) return 1; @@ -216,7 +216,7 @@ int ckLvItem::compare ( QListViewItem * i, int col, bool ascending ) const return k9Main::compare(ch1->getsectors(),ch2->getsectors()); } } - return QCheckListItem::compare(i,col,ascending); + return TQCheckListItem::compare(i,col,ascending); } double ckLvItem::getstreamSize() @@ -251,7 +251,7 @@ double ckLvItem::getstreamSize() } -int LvItem::compare ( QListViewItem * i, int col, bool ascending ) const +int LvItem::compare ( TQListViewItem * i, int col, bool ascending ) const { if(i->rtti()==1001) return -1; @@ -270,15 +270,15 @@ int LvItem::compare ( QListViewItem * i, int col, bool ascending ) const return k9Main::compare(title1->getpgc(),title2->getpgc()); } - return QListViewItem::compare(i,col,ascending); + return TQListViewItem::compare(i,col,ascending); } -void ckLvItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align ) +void ckLvItem::paintCell ( TQPainter * p, const TQColorGroup & cg, int column, int width, int align ) { if (column==1) { p->eraseRect(0,0,width,height()); - QFont f(p->font()); + TQFont f(p->font()); switch (objectType) { @@ -287,7 +287,7 @@ void ckLvItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int k9DVDTitleset *titleset=(k9DVDTitleset*)obj; f.setBold(true); p->setFont(f); - p->drawText(0,0,width,height(),Qt::AlignRight | Qt::AlignVCenter ,titleset->getsize_mb()+" " +i18n("MB")); + p->drawText(0,0,width,height(),TQt::AlignRight | TQt::AlignVCenter ,titleset->getsize_mb()+" " +i18n("MB")); break; } case STREAM: @@ -295,9 +295,9 @@ void ckLvItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int if ( ! mainDlg->getquickScan()) { double size=getstreamSize(); - QString c; + TQString c; c.sprintf("%.2f ",size); - p->drawText(0,0,width,height(),Qt::AlignRight | Qt::AlignVCenter ,c+i18n("MB")); + p->drawText(0,0,width,height(),TQt::AlignRight | TQt::AlignVCenter ,c+i18n("MB")); } break; } @@ -305,32 +305,32 @@ void ckLvItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int { k9DVDChapter *chapter=(k9DVDChapter*) obj; double size=(double)chapter->getsectors()/512; - QString c; + TQString c; c.sprintf("%.2f ",size); - p->drawText(0,0,width,height(),Qt::AlignRight | Qt::AlignVCenter ,c+i18n("MB")); + p->drawText(0,0,width,height(),TQt::AlignRight | TQt::AlignVCenter ,c+i18n("MB")); } break; default: - QCheckListItem::paintCell(p,cg,column,width,align); + TQCheckListItem::paintCell(p,cg,column,width,align); } } else - QCheckListItem::paintCell(p,cg,column,width,align); + TQCheckListItem::paintCell(p,cg,column,width,align); } -void LvItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align ) +void LvItem::paintCell ( TQPainter * p, const TQColorGroup & cg, int column, int width, int align ) { if (column==1 && objectType==TITLE) { p->eraseRect(0,0,width,height()); k9DVDTitle * title=(k9DVDTitle*)obj; - QString c; + TQString c; c.sprintf("%.2f ",title->gettotalsize_mb()); - p->drawText(0,0,width,height(),Qt::AlignRight | Qt::AlignVCenter ,c+i18n("MB")); + p->drawText(0,0,width,height(),TQt::AlignRight | TQt::AlignVCenter ,c+i18n("MB")); } else - QListViewItem::paintCell(p,cg,column,width,align); + TQListViewItem::paintCell(p,cg,column,width,align); } void ckLvItem::stateChange(bool state) @@ -367,7 +367,7 @@ bool k9Main::getupdating() void k9Main::Copy() { - QString c,filename; + TQString c,filename; if (!dvd->getopened()) { KMessageBox::error( this, i18n("DVD is not opened"), i18n("DVD Copy")); @@ -376,23 +376,23 @@ void k9Main::Copy() setDVDSize(); updateSelection(); - QString outputDir=m_prefOutput; + TQString outputDir=m_prefOutput; bool burn=false; if (cbOutputDev->currentItem() ==0) { - filename=KFileDialog::getSaveFileName (QDir::homeDirPath(),"*.iso", 0,i18n("Save image to disk")); + filename=KFileDialog::getSaveFileName (TQDir::homeDirPath(),"*.iso", 0,i18n("Save image to disk")); if (filename =="") return; } else if (cbOutputDev->currentItem()==1) { - outputDir= KFileDialog::getExistingDirectory(QDir::homeDirPath()); + outputDir= KFileDialog::getExistingDirectory(TQDir::homeDirPath()); if (outputDir=="") return; } if (getFreeSpace( m_prefOutput) < m_prefSize) { - if (KMessageBox::warningContinueCancel (this, i18n("Insufficient disk space on %1\n%2 mb expected.").arg(m_prefOutput).arg(m_prefSize),i18n("DVD Copy"))==KMessageBox::Cancel) + if (KMessageBox::warningContinueCancel (this, i18n("Insufficient disk space on %1\n%2 mb expected.").tqarg(m_prefOutput).tqarg(m_prefSize),i18n("DVD Copy"))==KMessageBox::Cancel) return; } stopPreview(); @@ -460,7 +460,7 @@ void k9Main::Copy() } -void k9Main::setProgressWindow(QWidget *_widget) { +void k9Main::setProgressWindow(TQWidget *_widget) { m_toolView=m_parent->setToolWindow(_widget,KDockWidget::DockRight,i18n("processing"),i18n("processing")); m_dockWidget = m_parent->getVisibleDock(); m_parent->setActions( false); @@ -486,16 +486,16 @@ void k9Main::eject() -QString k9Main::getDevice(QComboBox *_combo) +TQString k9Main::getDevice(TQComboBox *_combo) { int index=-1; for (int i=0; i<_combo->count();i++) { - QString t =_combo->text(i); + TQString t =_combo->text(i); if (_combo->text(i) == _combo->currentText()) index=i; } - QString res=""; + TQString res=""; if ((index==-1) || (_combo->currentText() ==i18n("ISO Image"))) { res=_combo->currentText(); @@ -531,16 +531,16 @@ void k9Main::Open() { int i; k9DVDTitle * l_track; - QString t; - QTime h; - connect(listView1,SIGNAL(itemRenamed(QListViewItem*,int)),this,SLOT(itemRenamed(QListViewItem *,int))); - connect(listView1,SIGNAL(expanded( QListViewItem*)),this,SLOT(expanded( QListViewItem* ))); - connect(listView1,SIGNAL(collapsed( QListViewItem*)),this,SLOT(collapsed( QListViewItem* ))); + TQString t; + TQTime h; + connect(listView1,TQT_SIGNAL(itemRenamed(TQListViewItem*,int)),this,TQT_SLOT(itemRenamed(TQListViewItem *,int))); + connect(listView1,TQT_SIGNAL(expanded( TQListViewItem*)),this,TQT_SLOT(expanded( TQListViewItem* ))); + connect(listView1,TQT_SIGNAL(collapsed( TQListViewItem*)),this,TQT_SLOT(collapsed( TQListViewItem* ))); closeDVD(); - QString sDevice=getDevice(cbInputDev); + TQString sDevice=getDevice(cbInputDev); - QString sVolName=""; + TQString sVolName=""; //if no dvd label, try to get it from hal for (k9CdDrive *drive=driveList.first();drive;drive=driveList.next()) { #ifdef HAVE_HAL @@ -582,8 +582,8 @@ void k9Main::Open() { ckLvItem *tsItem = new ckLvItem(root,this,TITLESET); tsItem->setOpen(TRUE); - QString c; - c=i18n("Titleset %1").arg(i+1); + TQString c; + c=i18n("Titleset %1").tqarg(i+1); tsItem->setText(0,c); tsItem->setText(1," "+dvd->gettitleset(i)->getsize_mb() +" " +i18n("MB")); tsItem->obj=dvd->gettitleset(i) ; @@ -612,7 +612,7 @@ void k9Main::Open() void k9Main::setDVDSize() { //k9DVDSize *dvdsize=static_cast<k9DVDSize *>(m_factory->create(this,"dvd", "k9DVDSize")); - k9DVDSize *dvdsize=new k9DVDSize(this); + k9DVDSize *dvdsize=new k9DVDSize(TQT_TQOBJECT(this)); dvdsize->setMaxSizeDyn(m_prefSize); delete dvdsize; } @@ -623,14 +623,14 @@ k9Main::~k9Main() delete dvd; } -void k9Main::closeEvent( QCloseEvent* ce ) +void k9Main::closeEvent( TQCloseEvent* ce ) { saveSettings(); ce->accept(); } -void k9Main::addChapters(QListViewItem *_parent,k9DVDTitle *_title) +void k9Main::addChapters(TQListViewItem *_parent,k9DVDTitle *_title) { LvItem *chapter = new LvItem(_parent,CHAPTER); chapter->setText(0, i18n("chapters")); @@ -641,8 +641,8 @@ void k9Main::addChapters(QListViewItem *_parent,k9DVDTitle *_title) for (int i=0;i< _title->getchapterCount();i++) { ckLvItem *it =new ckLvItem(chapter,this,CHAPTER); - it->setText(0,i18n("chapter %1").arg(++ch)); - it->setText(1,i18n("%1 MB").arg((double)(_title->getChapter(i)->getsectors()) /512)); + it->setText(0,i18n("chapter %1").tqarg(++ch)); + it->setText(1,i18n("%1 MB").tqarg((double)(_title->getChapter(i)->getsectors()) /512)); it->streamType=CHAP; it->obj=_title->getChapter(i); chItems.append( it); @@ -654,10 +654,10 @@ void k9Main::addChapters(QListViewItem *_parent,k9DVDTitle *_title) for (int i=0;i< title2->getchapterCount();i++) { ckLvItem *it =new ckLvItem(chapter,this,CHAPTER); - it->setText(0,i18n("chapter %1").arg(++ch)); + it->setText(0,i18n("chapter %1").tqarg(++ch)); it->streamType=CHAP; it->obj=title2->getChapter(i); - it->setText(1,i18n("%1 MB").arg((double)(title2->getChapter(i)->getsectors()) /512)); + it->setText(1,i18n("%1 MB").tqarg((double)(title2->getChapter(i)->getsectors()) /512)); chItems.append( it); it->mainTitle=_title; } @@ -674,7 +674,7 @@ void k9Main::addTitle(k9DVDTitle *track) k9DVDAudioStream *l_auds; k9DVDSubtitle *l_sub; int i; - QString c,ch; + TQString c,ch; listView1->setRootIsDecorated(true); @@ -696,7 +696,7 @@ void k9Main::addTitle(k9DVDTitle *track) video->streamType=VID; addListItem(track,video,VID); video->setOpen( false ); - c=i18n("video %1 ").arg(track->getformat()); + c=i18n("video %1 ").tqarg(track->getformat()); c.append (" - " + track->gettotallength().toString("h:mm:ss")); video->setText(col1, c); c.sprintf("%.2f ", track->gettotalvideosize_mb()); @@ -707,7 +707,7 @@ void k9Main::addTitle(k9DVDTitle *track) for (i=0;i< track->getaudioStreamCount();i++) { l_auds=track->getaudioStream(i); - c=i18n("audio %1 ").arg(i+1); + c=i18n("audio %1 ").tqarg(i+1); c.append( l_auds->getlanguage() + " " +l_auds->getformat()+" " ); ch.sprintf("%dch ",l_auds->getchannels()); c.append(ch+l_auds->getfrequency()+" "+l_auds->getquantization()); @@ -716,7 +716,7 @@ void k9Main::addTitle(k9DVDTitle *track) item->language=l_auds->getlanguage(); addListItem(l_auds,item,AUD); item->setText( col1, c ); - c=i18n("%1 MB").arg(l_auds->getsize_mb()); + c=i18n("%1 MB").tqarg(l_auds->getsize_mb()); item->setText( col2,c); item->setText( col3,l_auds->getcontent()); item->setPixmap(col1,pxSound); @@ -727,14 +727,14 @@ void k9Main::addTitle(k9DVDTitle *track) for (i=0;i< track->getsubPictureCount();i++) { l_sub=track->getsubtitle(i); - c=i18n("subpicture %1 ").arg(i+1); + c=i18n("subpicture %1 ").tqarg(i+1); c.append( l_sub->getlanguage()); ckLvItem * item = new ckLvItem( itemTrack,this,STREAM); item->streamType=SUB; item->language=l_sub->getlanguage(); addListItem(l_sub,item,SUB); item->setText( col1, c ); - c=i18n("%1 MB").arg(l_sub->getsize_mb()); + c=i18n("%1 MB").tqarg(l_sub->getsize_mb()); item->setText( col2,c); item->setText( col3, l_sub->getcontent()); item->setPixmap(col1,pxText); @@ -791,7 +791,7 @@ void k9Main::updateSelection() updating=supdating; } -void k9Main::checkLang(QString lang,eStreamType streamType,bool state) +void k9Main::checkLang(TQString lang,eStreamType streamType,bool state) { updating =true; for (uint i=0;i<items.count();i++) @@ -812,7 +812,7 @@ void k9Main::checkLang(QString lang,eStreamType streamType,bool state) checked=state; k9DVDTitle *title=(k9DVDTitle*)litem->listItem->obj; - ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->parent()->parent(); + ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->tqparent()->tqparent(); itemtitleset->setOn(title->gettitleset()->getselected()); } break; @@ -826,7 +826,7 @@ void k9Main::checkLang(QString lang,eStreamType streamType,bool state) checked=state; k9DVDTitle *title=(k9DVDTitle*)litem->listItem->obj; - ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->parent()->parent(); + ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->tqparent()->tqparent(); itemtitleset->setOn(title->gettitleset()->getselected()); } break; @@ -839,7 +839,7 @@ void k9Main::checkLang(QString lang,eStreamType streamType,bool state) for (uint j=0; j<items.count();j++) { k9DVDListItem *litem2=(k9DVDListItem*)items.at(j); - if (litem2->listItem->parent()==litem->listItem->parent() && litem2->streamType==VID ) + if (litem2->listItem->tqparent()==litem->listItem->tqparent() && litem2->streamType==VID ) { litem2->title->setforceSelection(state); litem2->listItem->setOn(state); @@ -883,7 +883,7 @@ void k9Main::checkTitle(bool state, ckLvItem *_item) for (uint i=0;i<items.count();i++) { litem=(k9DVDListItem*)items.at(i); - if (litem->listItem->parent() == _item->parent()) + if (litem->listItem->tqparent() == _item->tqparent()) { //if current item is video and is unchecked, uncheck audio and subtitles if (!state && _item->streamType==VID) @@ -928,9 +928,9 @@ void k9Main::checkTitle(bool state, ckLvItem *_item) { ckLvItem * itemtitleset; if (_item->streamType==CHAP) - itemtitleset=(ckLvItem*)_item->parent()->parent()->parent(); + itemtitleset=(ckLvItem*)_item->tqparent()->tqparent()->tqparent(); else - itemtitleset=(ckLvItem*)_item->parent()->parent(); + itemtitleset=(ckLvItem*)_item->tqparent()->tqparent(); itemtitleset->setOn(titleset->getselected()); } @@ -964,7 +964,7 @@ void k9Main::checkAll(bool state) litem->listItem->setOn(state); // k9DVDTitle *title=(k9DVDTitle*)litem->listItem->obj; - ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->parent()->parent(); + ckLvItem * itemtitleset=(ckLvItem*)litem -> listItem->tqparent()->tqparent(); l_title->gettitleset()->setselected(state); itemtitleset->setOn(l_title->gettitleset()->getselected()); } @@ -992,7 +992,7 @@ void k9Main::checkTS( bool _state,ckLvItem *_item ) for (uint i=0;i<items.count();i++) { litem=(k9DVDListItem*)items.at(i); - if (litem->listItem->parent ()->parent() == _item) + if (litem->listItem->tqparent ()->tqparent() == _item) { litem->listItem->setOn(_state); } @@ -1007,7 +1007,7 @@ void k9Main::checkTS( bool _state,ckLvItem *_item ) emit SelectionChanged(dvd,withMenus()); } -void k9Main::expanded( QListViewItem *item) { +void k9Main::expanded( TQListViewItem *item) { if (item->rtti()==1001) { ckLvItem *ckit = (ckLvItem*) item; @@ -1016,7 +1016,7 @@ if (item->rtti()==1001) } } -void k9Main::collapsed( QListViewItem *item) { +void k9Main::collapsed( TQListViewItem *item) { if (item->rtti()==1001) { ckLvItem *ckit = (ckLvItem*) item; @@ -1027,10 +1027,10 @@ if (item->rtti()==1001) /** No descriptions */ -void k9Main::itemRenamed(QListViewItem * item,int ) +void k9Main::itemRenamed(TQListViewItem * item,int ) { k9DVDTitle *t=NULL; - QString newText; + TQString newText; if (item->rtti()==1000) { LvItem *it = (LvItem*) item; @@ -1044,10 +1044,10 @@ void k9Main::itemRenamed(QListViewItem * item,int ) newText=ckit->text(0); } - QString c; + TQString c; if (t !=NULL) { - //QMessageBox::critical( this, "test", c.sprintf("%d",it->tag)); + //TQMessageBox::critical( this, "test", c.sprintf("%d",it->tag)); t->setname(newText); m_playbackOptions->titleRenamed( t,newText); } @@ -1103,7 +1103,7 @@ void k9Main::PreviewTitle() if (listView1->selectedItem()->depth() <2) return; int rtti=listView1->selectedItem()->rtti(); - QObject *obj; + TQObject *obj; if (rtti==1000) { LvItem *it=(LvItem*)listView1->selectedItem(); @@ -1141,29 +1141,29 @@ void k9Main::CreateMP4() KMessageBox::error( this, i18n("DVD is not opened"), i18n("MPEG-4 Encoding")); return; } - QString filename=""; + TQString filename=""; int cpt=0; for (int i=0; i < dvd->gettitleCount();i++) { k9DVDTitle *t=dvd->gettitle(i); - changeStatusbar( i18n("Transcoding title : %1").arg(t->getname()) ,sbMessage); + changeStatusbar( i18n("Transcoding title : %1").tqarg(t->getname()) ,sbMessage); if (t->isSelected() && t->getIndexed() ) { - QString name; + TQString name; if (filename=="") - filename=KFileDialog::getSaveFileName (QDir::homeDirPath(),"*.avi|Audio Video Interleave (*.avi)\n*.mpg|MPEG-1 and MPEG-2 systems (*.mpg)\n*.mp4|MPEG-4 format (*.mp4)\n*.asf|Advanced Streaming Format (*.asf)\n*.swf|Adobe Flash (*.swf)\n*.flv|Adobe Flash video files (*.flv)\n*.rm|RealVideo (*.rm)\n*.mov|QuickTime (*.mov)", 0,i18n("Save file to disk")); + filename=KFileDialog::getSaveFileName (TQDir::homeDirPath(),"*.avi|Audio Video Interleave (*.avi)\n*.mpg|MPEG-1 and MPEG-2 systems (*.mpg)\n*.mp4|MPEG-4 format (*.mp4)\n*.asf|Advanced Streaming Format (*.asf)\n*.swf|Adobe Flash (*.swf)\n*.flv|Adobe Flash video files (*.flv)\n*.rm|RealVideo (*.rm)\n*.mov|QuickTime (*.mov)", 0,i18n("Save file to disk")); if (filename=="") break; k9MP4Enc *mp4=new k9MP4Enc(); setProgressWindow( mp4->getDialog()); if (cpt >0) { - QString ext=filename.section(".",-1); + TQString ext=filename.section(".",-1); if (ext!="") ext="."+ext; - QString path=filename.left(filename.length()-ext.length()); - path=path+QString::number(cpt)+ext; + TQString path=filename.left(filename.length()-ext.length()); + path=path+TQString::number(cpt)+ext; mp4->setFilename(path); } else @@ -1176,9 +1176,9 @@ void k9Main::CreateMP4() mp4->setVideoBitrate(opt->getVideoBr()); mp4->setCodec( opt->getCodec()); mp4->setAudioCodec(opt->getAudioCodec()); - mp4->setSize(QString::number(opt->getMaxSize())); - mp4->setAudioGain(QString::number(opt->getAudioGain())); - mp4->setNumberCD(QString::number(opt->getNumParts())); + mp4->setSize(TQString::number(opt->getMaxSize())); + mp4->setAudioGain(TQString::number(opt->getAudioGain())); + mp4->setNumberCD(TQString::number(opt->getNumParts())); mp4->setWidth(opt->getWidth() ); mp4->setHeight(opt->getHeight()); mp4->set2Passes( opt->get2Passes()); @@ -1202,7 +1202,7 @@ void k9Main::extractMPEG2() { KMessageBox::error( this, i18n("DVD is not opened"), i18n("Extract Mpeg2")); return; } - QString filename=""; + TQString filename=""; int cpt=0; @@ -1211,9 +1211,9 @@ void k9Main::extractMPEG2() { changeStatusbar( i18n("Extracting title : %1",t->getname()) ,sbMessage); if (t->isSelected() && t->getIndexed() ) { - QString name; + TQString name; if (filename=="") - filename=KFileDialog::getSaveFileName (QDir::homeDirPath(),"*.mpg|MPEG-1 and MPEG-2 systems (*.mpg)", 0,i18n("Save file to disk")); + filename=KFileDialog::getSaveFileName (TQDir::homeDirPath(),"*.mpg|MPEG-1 and MPEG-2 systems (*.mpg)", 0,i18n("Save file to disk")); if (filename=="") { break; } @@ -1224,11 +1224,11 @@ void k9Main::extractMPEG2() { mp4->setUseCache(false); if (cpt >0) { - QString ext=filename.section(".",-1); + TQString ext=filename.section(".",-1); if (ext!="") ext="."+ext; - QString path=filename.left(filename.length()-ext.length()); - path=path+QString::number(cpt)+ext; + TQString path=filename.left(filename.length()-ext.length()); + path=path+TQString::number(cpt)+ext; mp4->setFilename(path); } else mp4->setFilename(filename); @@ -1254,11 +1254,11 @@ void k9Main::deviceRemoved(k9CdDrive *_drive) { if (_drive->device == dvd->getDevice()) closeDVD(); - int i=driveList.find(_drive); + int i=driveList.tqfind(_drive); driveList.remove(i); cbInputDev->removeItem(i); - i=recorderList.find(_drive); + i=recorderList.tqfind(_drive); recorderList.remove( i); cbOutputDev->removeItem(i+2); @@ -1268,12 +1268,12 @@ void k9Main::addDrive(k9CdDrive *drive) { #ifdef HAVE_HAL if (drive->getDevice()!=NULL) { k9HalDevice *dev=drive->getDevice(); - connect(dev,SIGNAL(volumeChanged( const QString &,const QString &)),this,SLOT(volumeChanged(const QString&,const QString&))); + connect(dev,TQT_SIGNAL(volumeChanged( const TQString &,const TQString &)),this,TQT_SLOT(volumeChanged(const TQString&,const TQString&))); } #endif if (drive->canReadDVD) { - QString c(drive->name + " ("+drive->device+")"); + TQString c(drive->name + " ("+drive->device+")"); cbInputDev->insertItem(c,-1); driveList.append(drive); } @@ -1302,7 +1302,7 @@ void k9Main::readDrives() } -void k9Main::volumeChanged(const QString &device,const QString &volumeName) { +void k9Main::volumeChanged(const TQString &device,const TQString &volumeName) { if (device==dvd->getDevice() && dvd->getopened() && volumeName=="") closeDVD(); else if (!dvd->getopened() && volumeName !="" && getDevice(cbInputDev)==device) { @@ -1311,9 +1311,9 @@ void k9Main::volumeChanged(const QString &device,const QString &volumeName) { } /*! - \fn k9Main::listView1CurrentChanged( QListViewItem *newItem ) + \fn k9Main::listView1CurrentChanged( TQListViewItem *newItem ) */ -void k9Main::listView1CurrentChanged( QListViewItem *newItem ) +void k9Main::listView1CurrentChanged( TQListViewItem *newItem ) { if (newItem == NULL) { @@ -1339,8 +1339,8 @@ void k9Main::listView1CurrentChanged( QListViewItem *newItem ) ckLvItem *ckit = (ckLvItem*) newItem; if (((ckLvItem*)newItem)->streamType==CHAP) { - LvItem *parent=(LvItem*)(ckit->parent()->parent()); - title=(k9DVDTitle*)parent->obj; + LvItem *tqparent=(LvItem*)(ckit->tqparent()->tqparent()); + title=(k9DVDTitle*)tqparent->obj; } else title=(k9DVDTitle*)ckit->obj; @@ -1387,14 +1387,14 @@ void k9Main::cbOutputDevActivated(int _index) k9CdDrive * drive=(k9CdDrive*)recorderList.at(_index-1); if (drive !=NULL) { - QValueList <int>list=drive->getWriteSpeeds(); - QValueList<int>::iterator it=list.begin(); + TQValueList <int>list=drive->getWriteSpeeds(); + TQValueList<int>::iterator it=list.begin(); cbBurnSpeed->clear(); cbBurnSpeed->insertItem(i18n("default")); while( it !=list.end()) { - cbBurnSpeed->insertItem(QString::number((double)(*it))); + cbBurnSpeed->insertItem(TQString::number((double)(*it))); it++; } } @@ -1402,7 +1402,7 @@ void k9Main::cbOutputDevActivated(int _index) void k9Main::bInputOpenClick() { - QString result=KFileDialog::getOpenFileName (QDir::homeDirPath(),"*.iso", 0,i18n("Open ISO Image")); + TQString result=KFileDialog::getOpenFileName (TQDir::homeDirPath(),"*.iso", 0,i18n("Open ISO Image")); if (result!="") { cbInputDev->setCurrentText(result); @@ -1413,7 +1413,7 @@ void k9Main::bInputOpenClick() void k9Main::bInputOpenDirClick() { - QString result= KDirSelectDialog::selectDirectory (QDir::homeDirPath(), false, this,i18n("Open DVD folder")).path(); + TQString result= KDirSelectDialog::selectDirectory (TQDir::homeDirPath(), false, this,i18n("Open DVD folder")).path(); if (result!="") { cbInputDev->setCurrentText(result); @@ -1426,25 +1426,25 @@ void k9Main::fspDone() fspFinish=true; } -void k9Main::foundMountPoint( const QString &, unsigned long , unsigned long , unsigned long kBAvail) +void k9Main::foundMountPoint( const TQString &, unsigned long , unsigned long , unsigned long kBAvail) { fspAvail=kBAvail; } -long k9Main::getFreeSpace(const QString & _path) +long k9Main::getFreeSpace(const TQString & _path) { fspFinish=false; fspAvail=0; KDiskFreeSp *FreeSp=new KDiskFreeSp(); ; - connect(FreeSp,SIGNAL(foundMountPoint (const QString &, unsigned long , unsigned long , unsigned long )),this,SLOT(foundMountPoint (const QString &, unsigned long , unsigned long , unsigned long ))); - connect(FreeSp,SIGNAL(done ( )),this,SLOT(fspDone ())); - QString mountPoint = KIO::findPathMountPoint( _path ); + connect(FreeSp,TQT_SIGNAL(foundMountPoint (const TQString &, unsigned long , unsigned long , unsigned long )),this,TQT_SLOT(foundMountPoint (const TQString &, unsigned long , unsigned long , unsigned long ))); + connect(FreeSp,TQT_SIGNAL(done ( )),this,TQT_SLOT(fspDone ())); + TQString mountPoint = KIO::findPathMountPoint( _path ); FreeSp->readDF(mountPoint); do { - qApp->processEvents(); + tqApp->processEvents(); } while (!fspFinish); fspAvail/=1024; @@ -1453,7 +1453,7 @@ long k9Main::getFreeSpace(const QString & _path) } -void k9Main::setInput(QString _input) +void k9Main::setInput(TQString _input) { bool found=false; for (uint i=0;i< driveList.count();i++) { @@ -1467,13 +1467,13 @@ void k9Main::setInput(QString _input) cbInputDev->setCurrentText(_input); } -void k9Main::setOutput(QString _output) +void k9Main::setOutput(TQString _output) { cbOutputDev->setCurrentItem(0); for (uint i=0 ;i <recorderList.count();i++) { k9CdDrive * drive=(k9CdDrive*)recorderList.at(i); - QString c(drive->device); + TQString c(drive->device); // qDebug ("output=" +c); if (c==_output) { @@ -1483,7 +1483,7 @@ void k9Main::setOutput(QString _output) } } -void k9Main::Clone(QString _input,QString _output) +void k9Main::Clone(TQString _input,TQString _output) { setInput(_input); setOutput(_output); @@ -1513,7 +1513,7 @@ void k9Main::updateFactor_internal() if (dvd->getsizeSelected(FALSE)==0) changeStatusbar("",sbFactor); else - changeStatusbar( QString::number(dbfactor,'f',2),sbFactor); + changeStatusbar( TQString::number(dbfactor,'f',2),sbFactor); emit SelectionChanged( dvd,withMenus()); m_mutex.unlock(); } diff --git a/src/k9main.h b/src/k9main.h index 6e9c348..547cbdf 100644 --- a/src/k9main.h +++ b/src/k9main.h @@ -18,35 +18,35 @@ #include "k9mainw.h" #include "kconfigdlg.h" #include "k9playbackoptions.h" -#include <qstring.h> +#include <tqstring.h> #include <kmessagebox.h> -#include <qlistview.h> +#include <tqlistview.h> #include <kmainwindow.h> #include <kaboutdata.h> -#include <qevent.h> +#include <tqevent.h> #include <kfiledialog.h> -#include <qlistbox.h> +#include <tqlistbox.h> #include "k9copy.h" -#include <qmutex.h> +#include <tqmutex.h> enum eStreamType {SUB,AUD,VID,NONE,CHAP} ; enum eObjectType {TITLE,CHAPTER,TITLESET,STREAM,ROOT}; -class LvItem : public QListViewItem { +class LvItem : public TQListViewItem { public: - LvItem( QListViewItem *parent,eObjectType _objectType) - : QListViewItem( parent), obj( NULL ) { + LvItem( TQListViewItem *tqparent,eObjectType _objectType) + : TQListViewItem( tqparent), obj( NULL ) { objectType=_objectType; } - LvItem( QListView *parent,eObjectType _objectType) - : QListViewItem( parent), obj( NULL ) { + LvItem( TQListView *tqparent,eObjectType _objectType) + : TQListViewItem( tqparent), obj( NULL ) { objectType=_objectType; } eObjectType objectType; - QObject *obj; + TQObject *obj; virtual int rtti () const; - int compare ( QListViewItem * i, int col, bool ascending ) const; - void paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align ); + int compare ( TQListViewItem * i, int col, bool ascending ) const; + void paintCell ( TQPainter * p, const TQColorGroup & cg, int column, int width, int align ); }; class k9Main; @@ -59,10 +59,10 @@ class k9PlaybackOptions; class k9LangSelect; class k9UpdateFactor; -class ckLvItem : public QCheckListItem { +class ckLvItem : public TQCheckListItem { public: - ckLvItem( QListViewItem *parent,k9Main *dlg,eObjectType _objectType) - : QCheckListItem( parent,"",QCheckListItem::CheckBox) { + ckLvItem( TQListViewItem *tqparent,k9Main *dlg,eObjectType _objectType) + : TQCheckListItem( tqparent,"",TQCheckListItem::CheckBox) { mainDlg=dlg; obj=NULL; stream=NULL; @@ -70,8 +70,8 @@ public: language=""; objectType=_objectType; } - ckLvItem( QListView *parent,k9Main *dlg,eObjectType _objectType) - : QCheckListItem( parent,"",QCheckListItem::CheckBox) { + ckLvItem( TQListView *tqparent,k9Main *dlg,eObjectType _objectType) + : TQCheckListItem( tqparent,"",TQCheckListItem::CheckBox) { mainDlg=dlg; obj=NULL; stream=NULL; @@ -84,12 +84,12 @@ public: k9Main *mainDlg; k9DVDTitle *mainTitle; - QObject *obj; - QObject *stream; - QString language; + TQObject *obj; + TQObject *stream; + TQString language; virtual int rtti () const; - void paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align ); - int compare ( QListViewItem * i, int col, bool ascending ) const; + void paintCell ( TQPainter * p, const TQColorGroup & cg, int column, int width, int align ); + int compare ( TQListViewItem * i, int col, bool ascending ) const; double getstreamSize(); protected: @@ -98,8 +98,9 @@ protected: }; -class k9DVDListItem : public QObject { +class k9DVDListItem : public TQObject { Q_OBJECT + TQ_OBJECT public: k9DVDAudioStream *audioStream; k9DVDSubtitle *subtitle; @@ -107,25 +108,26 @@ public: ckLvItem *listItem; eStreamType streamType; public: - k9DVDListItem(QObject *DVD,ckLvItem *List,eStreamType type); + k9DVDListItem(TQObject *DVD,ckLvItem *List,eStreamType type); }; class k9Main : public MainDlg { Q_OBJECT + TQ_OBJECT public: - k9Main(QWidget* parent = 0, const char* name = 0, k9CdDrives *_drives=0 ); + k9Main(TQWidget* tqparent = 0, const char* name = 0, k9CdDrives *_drives=0 ); ~k9Main(); /*$PUBLIC_FUNCTIONS$*/ void addTitle(k9DVDTitle *track); - void addChapters(QListViewItem *_parent,k9DVDTitle *_title); + void addChapters(TQListViewItem *_parent,k9DVDTitle *_title); void updateSelection(); void checkAll(bool state); void checkTS( bool _state,ckLvItem *_item ); void checkTitle(bool state, ckLvItem *_item); - void checkLang(QString lang, eStreamType streamType,bool state); + void checkLang(TQString lang, eStreamType streamType,bool state); bool getupdating(); void saveSettings(); void setDVDSize(); @@ -140,7 +142,7 @@ public: void setLangSelect(k9LangSelect *_value) { m_langSelect=_value; }; - QObjectList *getItems() { + TQObjectList *getItems() { return &items; }; void updateFactor(); @@ -148,18 +150,18 @@ public: k9DVD *dvd; void eject(); private slots: - virtual void listView1CurrentChanged( QListViewItem * ); + virtual void listView1CurrentChanged( TQListViewItem * ); virtual void bSaveClick(); virtual void cbOutputDevActivated(int); virtual void bInputOpenClick(); virtual void bInputOpenDirClick(); - virtual void foundMountPoint (const QString &mountPoint, unsigned long kBSize, unsigned long kBUsed, unsigned long kBAvail); + virtual void foundMountPoint (const TQString &mountPoint, unsigned long kBSize, unsigned long kBUsed, unsigned long kBAvail); virtual void fspDone(); virtual void updateFactor_internal(); virtual void deviceAdded(k9CdDrive *_drive); virtual void deviceRemoved(k9CdDrive *_drive); - virtual void expanded(QListViewItem*); - virtual void collapsed (QListViewItem*); + virtual void expanded(TQListViewItem*); + virtual void collapsed (TQListViewItem*); public slots: /*$PUBLIC_SLOTS$*/ virtual void PreviewTitle(); @@ -167,42 +169,42 @@ public slots: virtual void extractMPEG2(); virtual void Copy(); virtual void Open(); - virtual void Clone(QString _input,QString _output); - virtual void setInput(QString _input); - virtual void setOutput(QString _output); - virtual void volumeChanged(const QString &device,const QString &volumeName); + virtual void Clone(TQString _input,TQString _output); + virtual void setInput(TQString _input); + virtual void setOutput(TQString _output); + virtual void volumeChanged(const TQString &device,const TQString &volumeName); void setDrives(k9CdDrives* _value); protected: /*$PROTECTED_FUNCTIONS$*/ - QObjectList items; - k9DVDListItem *addListItem(QObject *DVD,ckLvItem *List,eStreamType type); + TQObjectList items; + k9DVDListItem *addListItem(TQObject *DVD,ckLvItem *List,eStreamType type); void readDrives(); void addDrive (k9CdDrive *_drive); k9Copy *m_parent; - QPtrList<ckLvItem> tsItems; - QPtrList<ckLvItem> chItems; + TQPtrList<ckLvItem> tsItems; + TQPtrList<ckLvItem> chItems; ckLvItem * root; - QPtrList <k9CdDrive> driveList; - QPtrList <k9CdDrive> recorderList; + TQPtrList <k9CdDrive> driveList; + TQPtrList <k9CdDrive> recorderList; k9CdDrives *drives; - QPixmap pxVideo; - QPixmap pxSound; - QPixmap pxText; - QPixmap pxChapter; - QMutex m_mutex; + TQPixmap pxVideo; + TQPixmap pxSound; + TQPixmap pxText; + TQPixmap pxChapter; + TQMutex m_mutex; bool updating; bool fspFinish; long fspAvail; - void closeEvent( QCloseEvent* ce ); + void closeEvent( TQCloseEvent* ce ); void closeDVD(); KLibFactory *m_factory; - QString getDevice(QComboBox *_combo); + TQString getDevice(TQComboBox *_combo); k9UpdateFactor *m_update; //PREFERENCES - QString m_prefOutput; + TQString m_prefOutput; bool m_useDvdAuthor; bool m_quickScan; int m_prefSize; @@ -216,21 +218,21 @@ protected: KDockWidget *m_dockWidget; protected slots: /*$PROTECTED_SLOTS$*/ - void itemRenamed ( QListViewItem *item, int col ); + void itemRenamed ( TQListViewItem *item, int col ); signals: // Signals /** No descriptions */ - void sig_progress(QString str); - void changeStatusbar(const QString& str,int id); - void changeCaption(const QString& str); + void sig_progress(TQString str); + void changeStatusbar(const TQString& str,int id); + void changeCaption(const TQString& str); void showPreview(k9DVD *_dvd,k9DVDTitle * title,int chapter); void stopPreview(); void SelectionChanged(k9DVD *_dvd,bool _withMenus); void changedTitle(k9DVDTitle *_title); private: void fillLvLanguages(); - void updateLvLang(const eStreamType streamType,const QString & lang) ; - long getFreeSpace(const QString & _path); - void setProgressWindow(QWidget *_widget); + void updateLvLang(const eStreamType streamType,const TQString & lang) ; + long getFreeSpace(const TQString & _path); + void setProgressWindow(TQWidget *_widget); void removeProgressWindow(); diff --git a/src/k9mainw.cpp b/src/k9mainw.cpp index 27eb9ac..f2e685c 100644 --- a/src/k9mainw.cpp +++ b/src/k9mainw.cpp @@ -9,131 +9,131 @@ #include "k9mainw.h" -#include <qvariant.h> -#include <qpushbutton.h> -#include <qlabel.h> +#include <tqvariant.h> +#include <tqpushbutton.h> +#include <tqlabel.h> #include <kselect.h> -#include <qheader.h> -#include <qlistview.h> +#include <tqheader.h> +#include <tqlistview.h> #include <kcombobox.h> -#include <qcombobox.h> +#include <tqcombobox.h> #include <kpushbutton.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> #include "kselect.h" #include "kcombobox.h" #include "klineedit.h" #include "kpushbutton.h" /* - * Constructs a MainDlg as a child of 'parent', with the + * Constructs a MainDlg as a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. */ -MainDlg::MainDlg( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +MainDlg::MainDlg( TQWidget* tqparent, const char* name, WFlags fl ) + : TQWidget( tqparent, name, fl ) { if ( !name ) setName( "MainDlg" ); - setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) ); - setMinimumSize( QSize( 0, 200 ) ); - MainDlgLayout = new QGridLayout( this, 1, 1, 2, 6, "MainDlgLayout"); + tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) ); + setMinimumSize( TQSize( 0, 200 ) ); + MainDlgLayout = new TQGridLayout( this, 1, 1, 2, 6, "MainDlgLayout"); - lblInput_2 = new QLabel( this, "lblInput_2" ); - lblInput_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, lblInput_2->sizePolicy().hasHeightForWidth() ) ); + lblInput_2 = new TQLabel( this, "lblInput_2" ); + lblInput_2->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, lblInput_2->sizePolicy().hasHeightForWidth() ) ); MainDlgLayout->addWidget( lblInput_2, 1, 0 ); - lblInput = new QLabel( this, "lblInput" ); - lblInput->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, lblInput->sizePolicy().hasHeightForWidth() ) ); + lblInput = new TQLabel( this, "lblInput" ); + lblInput->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, lblInput->sizePolicy().hasHeightForWidth() ) ); MainDlgLayout->addWidget( lblInput, 0, 0 ); - tab = new QWidget( this, "tab" ); - tabLayout = new QGridLayout( tab, 1, 1, 1, 0, "tabLayout"); + tab = new TQWidget( this, "tab" ); + tabLayout = new TQGridLayout( tab, 1, 1, 1, 0, "tabLayout"); factor = new KGradientSelector( tab, "factor" ); factor->setEnabled( FALSE ); - factor->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)4, 0, 0, factor->sizePolicy().hasHeightForWidth() ) ); - factor->setMinimumSize( QSize( 0, 15 ) ); + factor->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)4, 0, 0, factor->sizePolicy().hasHeightForWidth() ) ); + factor->setMinimumSize( TQSize( 0, 15 ) ); factor->setValue( 0 ); factor->setMinValue( 0 ); factor->setMaxValue( 100 ); - factor->setFirstColor( QColor( 170, 0, 0 ) ); - factor->setSecondColor( QColor( 0, 255, 0 ) ); + factor->setFirstColor( TQColor( 170, 0, 0 ) ); + factor->setSecondColor( TQColor( 0, 255, 0 ) ); tabLayout->addWidget( factor, 1, 0 ); - listView1 = new QListView( tab, "listView1" ); + listView1 = new TQListView( tab, "listView1" ); listView1->addColumn( tr2i18n( "Title" ) ); listView1->addColumn( tr2i18n( "Size" ) ); listView1->header()->setResizeEnabled( FALSE, listView1->header()->count() - 1 ); listView1->addColumn( tr2i18n( "Content" ) ); - listView1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, listView1->sizePolicy().hasHeightForWidth() ) ); - listView1->setMinimumSize( QSize( 0, 200 ) ); + listView1->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, listView1->sizePolicy().hasHeightForWidth() ) ); + listView1->setMinimumSize( TQSize( 0, 200 ) ); listView1->setShowSortIndicator( TRUE ); tabLayout->addWidget( listView1, 0, 0 ); MainDlgLayout->addMultiCellWidget( tab, 2, 2, 0, 4 ); - textLabel2_2 = new QLabel( this, "textLabel2_2" ); - textLabel2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, textLabel2_2->sizePolicy().hasHeightForWidth() ) ); + textLabel2_2 = new TQLabel( this, "textLabel2_2" ); + textLabel2_2->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, textLabel2_2->sizePolicy().hasHeightForWidth() ) ); MainDlgLayout->addWidget( textLabel2_2, 1, 4 ); cbBurnSpeed = new KComboBox( FALSE, this, "cbBurnSpeed" ); - cbBurnSpeed->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, cbBurnSpeed->sizePolicy().hasHeightForWidth() ) ); + cbBurnSpeed->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, cbBurnSpeed->sizePolicy().hasHeightForWidth() ) ); cbBurnSpeed->setEditable( TRUE ); MainDlgLayout->addWidget( cbBurnSpeed, 1, 3 ); - textLabel1_3 = new QLabel( this, "textLabel1_3" ); - textLabel1_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, textLabel1_3->sizePolicy().hasHeightForWidth() ) ); + textLabel1_3 = new TQLabel( this, "textLabel1_3" ); + textLabel1_3->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, textLabel1_3->sizePolicy().hasHeightForWidth() ) ); MainDlgLayout->addWidget( textLabel1_3, 1, 2 ); - cbInputDev = new QComboBox( FALSE, this, "cbInputDev" ); - cbInputDev->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, cbInputDev->sizePolicy().hasHeightForWidth() ) ); + cbInputDev = new TQComboBox( FALSE, this, "cbInputDev" ); + cbInputDev->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, cbInputDev->sizePolicy().hasHeightForWidth() ) ); cbInputDev->setEditable( TRUE ); cbInputDev->setAutoCompletion( TRUE ); MainDlgLayout->addWidget( cbInputDev, 0, 1 ); - layout2 = new QHBoxLayout( 0, 0, 6, "layout2"); + tqlayout2 = new TQHBoxLayout( 0, 0, 6, "tqlayout2"); bInputOpenDir = new KPushButton( this, "bInputOpenDir" ); - bInputOpenDir->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, bInputOpenDir->sizePolicy().hasHeightForWidth() ) ); - bInputOpenDir->setMinimumSize( QSize( 22, 22 ) ); - bInputOpenDir->setMaximumSize( QSize( 22, 22 ) ); - layout2->addWidget( bInputOpenDir ); + bInputOpenDir->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, bInputOpenDir->sizePolicy().hasHeightForWidth() ) ); + bInputOpenDir->setMinimumSize( TQSize( 22, 22 ) ); + bInputOpenDir->setMaximumSize( TQSize( 22, 22 ) ); + tqlayout2->addWidget( bInputOpenDir ); bInputOpen = new KPushButton( this, "bInputOpen" ); - bInputOpen->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, bInputOpen->sizePolicy().hasHeightForWidth() ) ); - bInputOpen->setMinimumSize( QSize( 22, 22 ) ); - bInputOpen->setMaximumSize( QSize( 22, 22 ) ); - layout2->addWidget( bInputOpen ); - spacer5_2 = new QSpacerItem( 50, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); - layout2->addItem( spacer5_2 ); + bInputOpen->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, bInputOpen->sizePolicy().hasHeightForWidth() ) ); + bInputOpen->setMinimumSize( TQSize( 22, 22 ) ); + bInputOpen->setMaximumSize( TQSize( 22, 22 ) ); + tqlayout2->addWidget( bInputOpen ); + spacer5_2 = new TQSpacerItem( 50, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); + tqlayout2->addItem( spacer5_2 ); - MainDlgLayout->addMultiCellLayout( layout2, 0, 0, 2, 4 ); + MainDlgLayout->addMultiCellLayout( tqlayout2, 0, 0, 2, 4 ); - cbOutputDev = new QComboBox( FALSE, this, "cbOutputDev" ); - cbOutputDev->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, cbOutputDev->sizePolicy().hasHeightForWidth() ) ); + cbOutputDev = new TQComboBox( FALSE, this, "cbOutputDev" ); + cbOutputDev->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, cbOutputDev->sizePolicy().hasHeightForWidth() ) ); cbOutputDev->setEditable( FALSE ); cbOutputDev->setAutoCompletion( TRUE ); MainDlgLayout->addWidget( cbOutputDev, 1, 1 ); languageChange(); - resize( QSize(743, 585).expandedTo(minimumSizeHint()) ); + resize( TQSize(743, 585).expandedTo(tqminimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections - connect( listView1, SIGNAL( currentChanged(QListViewItem*) ), this, SLOT( listView1CurrentChanged(QListViewItem*) ) ); - connect( cbOutputDev, SIGNAL( activated(int) ), this, SLOT( cbOutputDevActivated(int) ) ); - connect( bInputOpen, SIGNAL( clicked() ), this, SLOT( bInputOpenClick() ) ); - connect( bInputOpenDir, SIGNAL( clicked() ), this, SLOT( bInputOpenDirClick() ) ); - connect( listView1, SIGNAL( itemRenamed(QListViewItem*,int) ), this, SLOT( itemRenamed(QListViewItem*,int) ) ); + connect( listView1, TQT_SIGNAL( currentChanged(TQListViewItem*) ), this, TQT_SLOT( listView1CurrentChanged(TQListViewItem*) ) ); + connect( cbOutputDev, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( cbOutputDevActivated(int) ) ); + connect( bInputOpen, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bInputOpenClick() ) ); + connect( bInputOpenDir, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bInputOpenDirClick() ) ); + connect( listView1, TQT_SIGNAL( itemRenamed(TQListViewItem*,int) ), this, TQT_SLOT( itemRenamed(TQListViewItem*,int) ) ); // tab order setTabOrder( cbInputDev, cbOutputDev ); @@ -148,7 +148,7 @@ MainDlg::MainDlg( QWidget* parent, const char* name, WFlags fl ) */ MainDlg::~MainDlg() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -167,10 +167,10 @@ void MainDlg::languageChange() cbBurnSpeed->clear(); cbBurnSpeed->insertItem( tr2i18n( "default" ) ); textLabel1_3->setText( tr2i18n( "@" ) ); - bInputOpenDir->setText( QString::null ); - QToolTip::add( bInputOpenDir, tr2i18n( "Open a folder" ) ); - bInputOpen->setText( QString::null ); - QToolTip::add( bInputOpen, tr2i18n( "Open an iso image" ) ); + bInputOpenDir->setText( TQString() ); + TQToolTip::add( bInputOpenDir, tr2i18n( "Open a folder" ) ); + bInputOpen->setText( TQString() ); + TQToolTip::add( bInputOpen, tr2i18n( "Open an iso image" ) ); } void MainDlg::bSaveClick() @@ -183,9 +183,9 @@ void MainDlg::bDevicesClick() qWarning( "MainDlg::bDevicesClick(): Not implemented yet" ); } -void MainDlg::listView1CurrentChanged(QListViewItem*) +void MainDlg::listView1CurrentChanged(TQListViewItem*) { - qWarning( "MainDlg::listView1CurrentChanged(QListViewItem*): Not implemented yet" ); + qWarning( "MainDlg::listView1CurrentChanged(TQListViewItem*): Not implemented yet" ); } void MainDlg::cbOutputDevActivated(int) @@ -208,9 +208,9 @@ void MainDlg::ckMp4AspectRatioClick() qWarning( "MainDlg::ckMp4AspectRatioClick(): Not implemented yet" ); } -void MainDlg::itemRenamed(QListViewItem*,int) +void MainDlg::itemRenamed(TQListViewItem*,int) { - qWarning( "MainDlg::itemRenamed(QListViewItem*,int): Not implemented yet" ); + qWarning( "MainDlg::itemRenamed(TQListViewItem*,int): Not implemented yet" ); } #include "k9mainw.moc" diff --git a/src/k9mainw.ui b/src/k9mainw.ui index 5598e0b..15a4648 100644 --- a/src/k9mainw.ui +++ b/src/k9mainw.ui @@ -1,10 +1,10 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>MainDlg</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>MainDlg</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -20,7 +20,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>0</width> <height>200</height> @@ -36,7 +36,7 @@ <property name="margin"> <number>2</number> </property> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>lblInput_2</cstring> </property> @@ -52,7 +52,7 @@ <string>Output device </string> </property> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>lblInput</cstring> </property> @@ -68,7 +68,7 @@ <string>input device</string> </property> </widget> - <widget class="QWidget" row="2" column="0" rowspan="1" colspan="5"> + <widget class="TQWidget" row="2" column="0" rowspan="1" colspan="5"> <property name="name"> <cstring>tab</cstring> </property> @@ -97,7 +97,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>0</width> <height>15</height> @@ -127,7 +127,7 @@ </color> </property> </widget> - <widget class="QListView" row="0" column="0"> + <widget class="TQListView" row="0" column="0"> <column> <property name="text"> <string>Title</string> @@ -172,7 +172,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>0</width> <height>200</height> @@ -184,7 +184,7 @@ </widget> </grid> </widget> - <widget class="QLabel" row="1" column="4"> + <widget class="TQLabel" row="1" column="4"> <property name="name"> <cstring>textLabel2_2</cstring> </property> @@ -221,7 +221,7 @@ <bool>true</bool> </property> </widget> - <widget class="QLabel" row="1" column="2"> + <widget class="TQLabel" row="1" column="2"> <property name="name"> <cstring>textLabel1_3</cstring> </property> @@ -237,7 +237,7 @@ <string>@</string> </property> </widget> - <widget class="QComboBox" row="0" column="1"> + <widget class="TQComboBox" row="0" column="1"> <property name="name"> <cstring>cbInputDev</cstring> </property> @@ -256,9 +256,9 @@ <bool>true</bool> </property> </widget> - <widget class="QLayoutWidget" row="0" column="2" rowspan="1" colspan="3"> + <widget class="TQLayoutWidget" row="0" column="2" rowspan="1" colspan="3"> <property name="name"> - <cstring>layout2</cstring> + <cstring>tqlayout2</cstring> </property> <hbox> <property name="name"> @@ -276,13 +276,13 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>22</width> <height>22</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>22</width> <height>22</height> @@ -307,13 +307,13 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>22</width> <height>22</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>22</width> <height>22</height> @@ -336,7 +336,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>50</width> <height>21</height> @@ -345,7 +345,7 @@ </spacer> </hbox> </widget> - <widget class="QComboBox" row="1" column="1"> + <widget class="TQComboBox" row="1" column="1"> <property name="name"> <cstring>cbOutputDev</cstring> </property> @@ -369,9 +369,9 @@ <connections> <connection> <sender>listView1</sender> - <signal>currentChanged(QListViewItem*)</signal> + <signal>currentChanged(TQListViewItem*)</signal> <receiver>MainDlg</receiver> - <slot>listView1CurrentChanged(QListViewItem*)</slot> + <slot>listView1CurrentChanged(TQListViewItem*)</slot> </connection> <connection> <sender>cbOutputDev</sender> @@ -393,9 +393,9 @@ </connection> <connection> <sender>listView1</sender> - <signal>itemRenamed(QListViewItem*,int)</signal> + <signal>itemRenamed(TQListViewItem*,int)</signal> <receiver>MainDlg</receiver> - <slot>itemRenamed(QListViewItem*,int)</slot> + <slot>itemRenamed(TQListViewItem*,int)</slot> </connection> </connections> <tabstops> @@ -406,17 +406,17 @@ <tabstop>cbBurnSpeed</tabstop> <tabstop>listView1</tabstop> </tabstops> -<slots> +<Q_SLOTS> <slot>bSaveClick()</slot> <slot>bDevicesClick()</slot> - <slot>listView1CurrentChanged( QListViewItem * )</slot> + <slot>listView1CurrentChanged( TQListViewItem * )</slot> <slot>cbOutputDevActivated(int)</slot> <slot>bInputOpenClick()</slot> <slot>bInputOpenDirClick()</slot> <slot>ckMp4AspectRatioClick()</slot> - <slot>itemRenamed(QListViewItem*,int)</slot> -</slots> -<layoutdefaults spacing="6" margin="11"/> + <slot>itemRenamed(TQListViewItem*,int)</slot> +</Q_SLOTS> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>kselect.h</includehint> <includehint>kcombobox.h</includehint> diff --git a/src/k9mainwsov.ui b/src/k9mainwsov.ui index e798ad8..9ba7d5e 100644 --- a/src/k9mainwsov.ui +++ b/src/k9mainwsov.ui @@ -1,10 +1,10 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>MainDlg</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>MainDlg</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -22,7 +22,7 @@ <property name="margin"> <number>2</number> </property> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>lblInput_2</cstring> </property> @@ -38,7 +38,7 @@ <string>Output device </string> </property> </widget> - <widget class="QLabel" row="1" column="2"> + <widget class="TQLabel" row="1" column="2"> <property name="name"> <cstring>textLabel1_3</cstring> </property> @@ -54,7 +54,7 @@ <string>@</string> </property> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>lblInput</cstring> </property> @@ -91,7 +91,7 @@ <bool>true</bool> </property> </widget> - <widget class="QComboBox" row="0" column="1"> + <widget class="TQComboBox" row="0" column="1"> <property name="name"> <cstring>cbInputDev</cstring> </property> @@ -110,7 +110,7 @@ <bool>true</bool> </property> </widget> - <widget class="QComboBox" row="1" column="1"> + <widget class="TQComboBox" row="1" column="1"> <property name="name"> <cstring>cbOutputDev</cstring> </property> @@ -129,7 +129,7 @@ <bool>true</bool> </property> </widget> - <widget class="QLabel" row="1" column="4"> + <widget class="TQLabel" row="1" column="4"> <property name="name"> <cstring>textLabel2_2</cstring> </property> @@ -145,7 +145,7 @@ <string>X</string> </property> </widget> - <widget class="QTabWidget" row="2" column="0" rowspan="1" colspan="5"> + <widget class="TQTabWidget" row="2" column="0" rowspan="1" colspan="5"> <property name="name"> <cstring>tabWidget2</cstring> </property> @@ -157,7 +157,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -189,7 +189,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>0</width> <height>15</height> @@ -219,14 +219,14 @@ </color> </property> </widget> - <widget class="QSplitter" row="0" column="0"> + <widget class="TQSplitter" row="0" column="0"> <property name="name"> <cstring>splitter1</cstring> </property> <property name="orientation"> <enum>Horizontal</enum> </property> - <widget class="QListView"> + <widget class="TQListView"> <column> <property name="text"> <string>Title</string> @@ -260,7 +260,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>0</width> <height>0</height> @@ -277,9 +277,9 @@ </grid> </widget> </widget> - <widget class="QLayoutWidget" row="0" column="2" rowspan="1" colspan="3"> + <widget class="TQLayoutWidget" row="0" column="2" rowspan="1" colspan="3"> <property name="name"> - <cstring>layout2</cstring> + <cstring>tqlayout2</cstring> </property> <hbox> <property name="name"> @@ -297,13 +297,13 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>22</width> <height>22</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>22</width> <height>22</height> @@ -325,13 +325,13 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>22</width> <height>22</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>22</width> <height>22</height> @@ -351,7 +351,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>50</width> <height>21</height> @@ -403,7 +403,7 @@ <tabstop>tabWidget2</tabstop> <tabstop>listView1</tabstop> </tabstops> -<slots> +<Q_SLOTS> <slot>bSaveClick()</slot> <slot>bDevicesClick()</slot> <slot>listView1CurrentChanged( QListViewItem * )</slot> @@ -412,8 +412,8 @@ <slot>bInputOpenDirClick()</slot> <slot>ckMp4AspectRatioClick()</slot> <slot>itemRenamed(QListViewItem*,int)</slot> -</slots> -<layoutdefaults spacing="6" margin="11"/> +</Q_SLOTS> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>kcombobox.h</includehint> <includehint>klineedit.h</includehint> diff --git a/src/k9mencodercmdgen.cpp b/src/k9mencodercmdgen.cpp index 2681b82..6af03af 100644 --- a/src/k9mencodercmdgen.cpp +++ b/src/k9mencodercmdgen.cpp @@ -12,45 +12,45 @@ #include "k9mencodercmdgen.h" -#include <qscrollview.h> -#include <qtabwidget.h> -#include <qfile.h> -#include <qdom.h> -#include <qlabel.h> +#include <tqscrollview.h> +#include <tqtabwidget.h> +#include <tqfile.h> +#include <tqdom.h> +#include <tqlabel.h> #include <knuminput.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qframe.h> -#include <qwidgetstack.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqframe.h> +#include <tqwidgetstack.h> #include <klocale.h> -#include <qheader.h> -#include <qlayout.h> -#include <qvbox.h> -#include <qtooltip.h> -#include <qwhatsthis.h> +#include <tqheader.h> +#include <tqlayout.h> +#include <tqvbox.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> #include <kstandarddirs.h> #include <kapplication.h> -class _k9CheckListItem: public QCheckListItem { +class _k9CheckListItem: public TQCheckListItem { public: - _k9CheckListItem(QListViewItem *_item):QCheckListItem(_item,"",QCheckListItem::CheckBox) {}; - QString root; - QDomDocument doc; + _k9CheckListItem(TQListViewItem *_item):TQCheckListItem(_item,"",TQCheckListItem::CheckBox) {}; + TQString root; + TQDomDocument doc; int page; - QFrame *frame; + TQFrame *frame; int rtti () const {return 1001;} protected: void stateChange(bool _state); }; void _k9CheckListItem::stateChange(bool _state) { - QDomElement eRoot=doc.documentElement().elementsByTagName(root).item(0).toElement(); - QDomElement eCodec=eRoot.elementsByTagName(text()).item(0).toElement(); + TQDomElement eRoot=doc.documentElement().elementsByTagName(root).item(0).toElement(); + TQDomElement eCodec=eRoot.elementsByTagName(text()).item(0).toElement(); eCodec.setAttribute("selected",_state?"true":"false"); } -k9MencoderCmdGen::k9MencoderCmdGen(QWidget* parent, const QString &_cmd, bool modal, WFlags fl) -: MyDialog1(parent,"", modal,fl) +k9MencoderCmdGen::k9MencoderCmdGen(TQWidget* tqparent, const TQString &_cmd, bool modal, WFlags fl) +: MyDialog1(tqparent,"", modal,fl) { setCaption(kapp->makeStdCaption(i18n("MEncoder options"))); m_row=0; m_page=1; @@ -63,34 +63,34 @@ k9MencoderCmdGen::k9MencoderCmdGen(QWidget* parent, const QString &_cmd, bool mo void k9MencoderCmdGen::fillListView() { listView->clear(); listView->header()->hide(); - QListViewItem *item=new QListViewItem(listView); + TQListViewItem *item=new TQListViewItem(listView); item->setOpen(true); item->setText(0,i18n("Audio Codec")); - QDomElement root=m_doc.documentElement().elementsByTagName("AUDIO").item(0).toElement(); + TQDomElement root=m_doc.documentElement().elementsByTagName("AUDIO").item(0).toElement(); for (int i=0; i< root.childNodes().count();i++) { - QDomElement eChild=root.childNodes().item(i).toElement(); + TQDomElement eChild=root.childNodes().item(i).toElement(); _k9CheckListItem *child=new _k9CheckListItem(item); child->setText(0,eChild.nodeName()); child->root="AUDIO"; child->doc=m_doc; - QDomAttr attr=eChild.attributeNode("selected"); + TQDomAttr attr=eChild.attributeNode("selected"); if (!attr.isNull()) child->setOn(attr.value()=="true"); addWidgets(child, "AUDIO",eChild.nodeName()); } - item=new QListViewItem(listView); + item=new TQListViewItem(listView); item->setText(0,i18n("Video Codec")); item->setOpen(true); root=m_doc.documentElement().elementsByTagName("VIDEO").item(0).toElement(); for (int i=0; i< root.childNodes().count();i++) { - QDomElement eChild=root.childNodes().item(i).toElement(); + TQDomElement eChild=root.childNodes().item(i).toElement(); _k9CheckListItem *child=new _k9CheckListItem(item); child->setText(0,eChild.nodeName()); child->root="VIDEO"; child->doc=m_doc; - QDomAttr attr=eChild.attributeNode("selected"); + TQDomAttr attr=eChild.attributeNode("selected"); if (!attr.isNull()) child->setOn(attr.value()=="true"); @@ -99,17 +99,17 @@ void k9MencoderCmdGen::fillListView() { } - item=new QListViewItem(listView); + item=new TQListViewItem(listView); item->setText(0,i18n("Filters")); item->setOpen(true); root=m_doc.documentElement().elementsByTagName("FILTERS").item(0).toElement(); for (int i=0; i< root.childNodes().count();i++) { - QDomElement eChild=root.childNodes().item(i).toElement(); + TQDomElement eChild=root.childNodes().item(i).toElement(); _k9CheckListItem *child=new _k9CheckListItem(item); child->setText(0,eChild.nodeName()); child->root="FILTERS"; child->doc=m_doc; - QDomAttr attr=eChild.attributeNode("selected"); + TQDomAttr attr=eChild.attributeNode("selected"); if (!attr.isNull()) child->setOn(attr.value()=="true"); @@ -124,8 +124,8 @@ k9MencoderCmdGen::~k9MencoderCmdGen() /*$SPECIALIZATION$*/ -void k9MencoderCmdGen::listViewCurrentChanged(QListViewItem *_item) { - if (_item->parent() == NULL) +void k9MencoderCmdGen::listViewCurrentChanged(TQListViewItem *_item) { + if (_item->tqparent() == NULL) wsOptions->raiseWidget(0); else if (_item->rtti()==1001) { _k9CheckListItem *item=(_k9CheckListItem*) _item; @@ -136,7 +136,7 @@ void k9MencoderCmdGen::listViewCurrentChanged(QListViewItem *_item) { } void k9MencoderCmdGen::loadXml() { - QFile file(KGlobal::dirs()->findResource( "data", "k9copy/mencoder.xml")); + TQFile file(KGlobal::dirs()->findResource( "data", "k9copy/mencoder.xml")); if ( !file.open( IO_ReadOnly ) ) return; if ( !m_doc.setContent( &file ) ) { @@ -148,39 +148,39 @@ void k9MencoderCmdGen::loadXml() { } -void k9MencoderCmdGen::addWidgets(_k9CheckListItem *_listItem,QString _root,QString _cat) { +void k9MencoderCmdGen::addWidgets(_k9CheckListItem *_listItem,TQString _root,TQString _cat) { m_cpt=0; - QVBox *vbox=new QVBox(wsOptions); + TQVBox *vbox=new TQVBox(wsOptions); wsOptions->addWidget(vbox,m_page); _listItem->page=m_page; m_page++; - QFrame *fr=new QFrame(vbox); + TQFrame *fr=new TQFrame(vbox); _listItem->frame=fr; - QGridLayout *m_grid1=new QGridLayout(fr,1,1,0,0); - m_scrollView=new QScrollView(fr,0); + TQGridLayout *m_grid1=new TQGridLayout(fr,1,1,0,0); + m_scrollView=new TQScrollView(fr,0); m_scrollView->viewport()->setPaletteBackgroundColor(this->paletteBackgroundColor()); - m_scrollView->setVScrollBarMode(QScrollView::AlwaysOn); + m_scrollView->setVScrollBarMode(TQScrollView::AlwaysOn); m_grid1->addWidget(m_scrollView,0,0); - m_grid=new QGrid(2,m_scrollView->viewport()); + m_grid=new TQGrid(2,m_scrollView->viewport()); m_grid->setSpacing(2); m_scrollView->addChild(m_grid); //finds the VIDEO node - QDomElement eVideo=m_doc.documentElement().elementsByTagName(_root).item(0).toElement(); + TQDomElement eVideo=m_doc.documentElement().elementsByTagName(_root).item(0).toElement(); //gets the codec list - QDomNodeList lCodecs=eVideo.elementsByTagName(_cat); + TQDomNodeList lCodecs=eVideo.elementsByTagName(_cat); for (int i=0; i<lCodecs.count();i++) { - QDomElement eCodec=lCodecs.item(i).toElement(); + TQDomElement eCodec=lCodecs.item(i).toElement(); //gets codec options - QDomNodeList lOptions=eCodec.elementsByTagName("opt"); + TQDomNodeList lOptions=eCodec.elementsByTagName("opt"); for (int j=0;j<lOptions.count();j++) { - QDomElement eOpt=lOptions.item(j).toElement(); - QDomAttr aType=eOpt.attributeNode("type"); + TQDomElement eOpt=lOptions.item(j).toElement(); + TQDomAttr aType=eOpt.attributeNode("type"); if (aType.value() == "int") addInt(eOpt); else if(aType.value()=="float") @@ -195,30 +195,30 @@ void k9MencoderCmdGen::addWidgets(_k9CheckListItem *_listItem,QString _root,QStr } } -void k9MencoderCmdGen::addList(QDomElement _eOpt) { - QString sName=_eOpt.attributeNode("name").value(); +void k9MencoderCmdGen::addList(TQDomElement _eOpt) { + TQString sName=_eOpt.attributeNode("name").value(); bool bSel=false; - QDomAttr aSel=_eOpt.attributeNode("selected"); + TQDomAttr aSel=_eOpt.attributeNode("selected"); if (!aSel.isNull()) bSel=aSel.value()=="true"; - QCheckBox *ckLabel=new QCheckBox(sName,m_grid,QString("ck%1").arg(m_row++) ); + TQCheckBox *ckLabel=new TQCheckBox(sName,m_grid,TQString("ck%1").tqarg(m_row++) ); ckLabel->setChecked(bSel); - m_hbox=new QGrid(2,m_grid); - m_hbox->setFrameShape(QFrame::StyledPanel); - m_hbox->setFrameShadow(QFrame::Raised); + m_hbox=new TQGrid(2,m_grid); + m_hbox->setFrameShape(TQFrame::StyledPanel); + m_hbox->setFrameShadow(TQFrame::Raised); if ( !_eOpt.attributeNode("description").isNull()) { - QToolTip::add(ckLabel,_eOpt.attributeNode("description").value()); - QWhatsThis::add(ckLabel,_eOpt.attributeNode("description").value()); + TQToolTip::add(ckLabel,_eOpt.attributeNode("description").value()); + TQWhatsThis::add(ckLabel,_eOpt.attributeNode("description").value()); } - QDomNodeList lOption=_eOpt.elementsByTagName("subopt"); + TQDomNodeList lOption=_eOpt.elementsByTagName("subopt"); for (int i=0; i<lOption.count();i++) { - QDomElement eSubOpt=lOption.item(i).toElement(); - QDomAttr aType=eSubOpt.attributeNode("type"); + TQDomElement eSubOpt=lOption.item(i).toElement(); + TQDomAttr aType=eSubOpt.attributeNode("type"); if (aType.value() == "int") addInt(eSubOpt); else if(aType.value()=="float") @@ -234,8 +234,8 @@ void k9MencoderCmdGen::addList(QDomElement _eOpt) { } -void k9MencoderCmdGen::addInt(QDomElement _eOpt) { - QString sName=_eOpt.attributeNode("name").value(); +void k9MencoderCmdGen::addInt(TQDomElement _eOpt) { + TQString sName=_eOpt.attributeNode("name").value(); bool blist=false; if (_eOpt.nodeName()=="subopt") blist=true; @@ -244,29 +244,29 @@ void k9MencoderCmdGen::addInt(QDomElement _eOpt) { int iMax=_eOpt.attributeNode("max").value().toInt(); int iDefault=_eOpt.attributeNode("default").value().toInt(); - QWidget *parent; + TQWidget *tqparent; if (!blist) { - parent=m_grid; + tqparent=m_grid; } else - parent=m_hbox; + tqparent=m_hbox; bool bSel=false; - QDomAttr aSel=_eOpt.attributeNode("selected"); + TQDomAttr aSel=_eOpt.attributeNode("selected"); if (!aSel.isNull()) bSel=aSel.value()=="true"; - QCheckBox *ckLabel=new QCheckBox(sName,parent,QString("ck%1").arg(m_row++) ); + TQCheckBox *ckLabel=new TQCheckBox(sName,tqparent,TQString("ck%1").tqarg(m_row++) ); ckLabel->setChecked(bSel); - ckLabel->setBackgroundColor(parent->backgroundColor()); + ckLabel->setBackgroundColor(tqparent->backgroundColor()); if ( !_eOpt.attributeNode("description").isNull()) { - QToolTip::add(ckLabel,_eOpt.attributeNode("description").value()); - QWhatsThis::add(ckLabel,_eOpt.attributeNode("description").value()); + TQToolTip::add(ckLabel,_eOpt.attributeNode("description").value()); + TQWhatsThis::add(ckLabel,_eOpt.attributeNode("description").value()); } _eOpt.setAttribute("checkbox",ckLabel->name()); - KIntSpinBox *sb= new KIntSpinBox(iMin,iMax,1,iDefault,10,parent,QString("int%1").arg(m_row++)); + KIntSpinBox *sb= new KIntSpinBox(iMin,iMax,1,iDefault,10,tqparent,TQString("int%1").tqarg(m_row++)); if (iMax <1000) sb->setFixedWidth(50); else @@ -282,8 +282,8 @@ void k9MencoderCmdGen::addInt(QDomElement _eOpt) { //m_grid->addWidget(label,m_row++,0); } -void k9MencoderCmdGen::addFloat(QDomElement _eOpt) { - QString sName=_eOpt.attributeNode("name").value(); +void k9MencoderCmdGen::addFloat(TQDomElement _eOpt) { + TQString sName=_eOpt.attributeNode("name").value(); double dMin=_eOpt.attributeNode("min").value().toDouble(); double dMax=_eOpt.attributeNode("max").value().toDouble(); double dDefault=_eOpt.attributeNode("default").value().toDouble(); @@ -292,20 +292,20 @@ void k9MencoderCmdGen::addFloat(QDomElement _eOpt) { if (_eOpt.nodeName()=="subopt") blist=true; - QWidget *parent; + TQWidget *tqparent; if (!blist) { - parent=m_grid; + tqparent=m_grid; } else - parent=m_hbox; - QDomAttr aSel=_eOpt.attributeNode("selected"); + tqparent=m_hbox; + TQDomAttr aSel=_eOpt.attributeNode("selected"); if (!aSel.isNull()) bSel=aSel.value()=="true"; - QCheckBox *ckLabel=new QCheckBox(sName,parent,QString("ck%1").arg(m_row++)); + TQCheckBox *ckLabel=new TQCheckBox(sName,tqparent,TQString("ck%1").tqarg(m_row++)); ckLabel->setChecked(bSel); if ( !_eOpt.attributeNode("description").isNull()) { - QToolTip::add(ckLabel,_eOpt.attributeNode("description").value()); - QWhatsThis::add(ckLabel,_eOpt.attributeNode("description").value()); + TQToolTip::add(ckLabel,_eOpt.attributeNode("description").value()); + TQWhatsThis::add(ckLabel,_eOpt.attributeNode("description").value()); } _eOpt.setAttribute("checkbox",ckLabel->name()); @@ -317,7 +317,7 @@ void k9MencoderCmdGen::addFloat(QDomElement _eOpt) { if (!_eOpt.attributeNode("precision").isNull()) { iPrecision=_eOpt.attributeNode("precision").value().toInt(); } - KDoubleSpinBox *sb= new KDoubleSpinBox(dMin,dMax,dStep,dDefault,iPrecision,parent,QString("float%1").arg(m_row++)); + KDoubleSpinBox *sb= new KDoubleSpinBox(dMin,dMax,dStep,dDefault,iPrecision,tqparent,TQString("float%1").tqarg(m_row++)); if (dMax <1000) sb->setFixedWidth(80); else @@ -329,30 +329,30 @@ void k9MencoderCmdGen::addFloat(QDomElement _eOpt) { _eOpt.setAttribute("widget",sb->name()); } -void k9MencoderCmdGen::addBool(QDomElement _eOpt) { - QString sName=_eOpt.attributeNode("name").value(); +void k9MencoderCmdGen::addBool(TQDomElement _eOpt) { + TQString sName=_eOpt.attributeNode("name").value(); bool blist=false; if (_eOpt.nodeName()=="subopt") blist=true; bool bSel=false; - QWidget *parent; + TQWidget *tqparent; if (!blist) { - parent = m_grid; + tqparent = m_grid; } else - parent = m_hbox; + tqparent = m_hbox; - QDomAttr aSel=_eOpt.attributeNode("selected"); + TQDomAttr aSel=_eOpt.attributeNode("selected"); if (!aSel.isNull()) bSel=aSel.value()=="true"; - QCheckBox *ckLabel=new QCheckBox(sName,parent,QString("ck%1").arg(m_row++)); + TQCheckBox *ckLabel=new TQCheckBox(sName,tqparent,TQString("ck%1").tqarg(m_row++)); if ( !_eOpt.attributeNode("description").isNull()) { - QToolTip::add(ckLabel,_eOpt.attributeNode("description").value()); - QWhatsThis::add(ckLabel,_eOpt.attributeNode("description").value()); + TQToolTip::add(ckLabel,_eOpt.attributeNode("description").value()); + TQWhatsThis::add(ckLabel,_eOpt.attributeNode("description").value()); } - QWidget *w=new QWidget(parent); + TQWidget *w=new TQWidget(tqparent); if ((_eOpt.attributeNode("default").value()=="true") && bSel) ckLabel->setChecked(true); @@ -361,42 +361,42 @@ void k9MencoderCmdGen::addBool(QDomElement _eOpt) { } -void k9MencoderCmdGen::addString(QDomElement _eOpt) { - QString sName=_eOpt.attributeNode("name").value(); +void k9MencoderCmdGen::addString(TQDomElement _eOpt) { + TQString sName=_eOpt.attributeNode("name").value(); bool blist=false; if (_eOpt.nodeName()=="subopt") blist=true; - QString sDefault=_eOpt.attributeNode("default").value(); - QWidget *parent; + TQString sDefault=_eOpt.attributeNode("default").value(); + TQWidget *tqparent; if( !blist) { - parent=m_grid; + tqparent=m_grid; } else - parent=m_hbox; + tqparent=m_hbox; bool bSel=false; - QDomAttr aSel=_eOpt.attributeNode("selected"); + TQDomAttr aSel=_eOpt.attributeNode("selected"); if (!aSel.isNull()) bSel=aSel.value()=="true"; - QCheckBox *ckLabel=new QCheckBox(sName,parent,QString("ck%1").arg(m_row++)); + TQCheckBox *ckLabel=new TQCheckBox(sName,tqparent,TQString("ck%1").tqarg(m_row++)); ckLabel->setChecked(bSel); if ( !_eOpt.attributeNode("description").isNull()) { - QToolTip::add(ckLabel,_eOpt.attributeNode("description").value()); - QWhatsThis::add(ckLabel,_eOpt.attributeNode("description").value()); + TQToolTip::add(ckLabel,_eOpt.attributeNode("description").value()); + TQWhatsThis::add(ckLabel,_eOpt.attributeNode("description").value()); } _eOpt.setAttribute("checkbox",ckLabel->name()); - QComboBox *cb=new QComboBox(parent,QString("string%1").arg(m_row++)); + TQComboBox *cb=new TQComboBox(tqparent,TQString("string%1").tqarg(m_row++)); - QDomNodeList values=_eOpt.elementsByTagName("value"); + TQDomNodeList values=_eOpt.elementsByTagName("value"); int def=0; if (values.count()==0) { cb->setEditable(true); cb->setCurrentText(sDefault); } else { for (int i=0;i<values.count();i++) { - QDomElement e=values.item(i).toElement(); + TQDomElement e=values.item(i).toElement(); cb->insertItem(e.attributeNode("name").value()); if (e.attributeNode("name").value() ==sDefault) def=cb->count()-1; @@ -407,44 +407,44 @@ void k9MencoderCmdGen::addString(QDomElement _eOpt) { } -const QString & k9MencoderCmdGen::getCmd(const QString &_root) { - /* QString str; - QTextStream ts(&str,IO_WriteOnly); +const TQString & k9MencoderCmdGen::getCmd(const TQString &_root) { + /* TQString str; + TQTextStream ts(&str,IO_WriteOnly); m_doc.save(ts,4); - QFile f ("/home/jmp/doc.xml"); + TQFile f ("/home/jmp/doc.xml"); f.open(IO_WriteOnly); f.writeBlock(str.latin1(),str.length()); f.close(); */ m_cmd=""; - QString m_sepOpt=":"; - QString m_sepValues=","; + TQString m_sepOpt=":"; + TQString m_sepValues=","; //finds the VIDEO node - QDomElement eRoot=m_doc.documentElement().elementsByTagName(_root).item(0).toElement(); + TQDomElement eRoot=m_doc.documentElement().elementsByTagName(_root).item(0).toElement(); //gets the codec list - QDomNodeList lCodecs=eRoot.childNodes(); + TQDomNodeList lCodecs=eRoot.childNodes(); for (int i=0; i<lCodecs.count();i++) { - QString sCmd="",sCmd1=""; - QDomElement eCodec=lCodecs.item(i).toElement(); - QDomAttr eSep=eCodec.attributeNode("separator"); + TQString sCmd="",sCmd1=""; + TQDomElement eCodec=lCodecs.item(i).toElement(); + TQDomAttr eSep=eCodec.attributeNode("separator"); if (!eSep.isNull()) m_sepOpt=eSep.value(); - QDomAttr eAttr=eCodec.attributeNode("selected"); + TQDomAttr eAttr=eCodec.attributeNode("selected"); if (eAttr.isNull()) continue; if (eAttr.value()=="false") continue; //gets codec options - QDomNodeList lOptions=eCodec.elementsByTagName("opt"); + TQDomNodeList lOptions=eCodec.elementsByTagName("opt"); for (int j=0;j<lOptions.count();j++) { - QDomElement eOpt=lOptions.item(j).toElement(); - QDomAttr aType=eOpt.attributeNode("type"); - QDomAttr aCheckBox=eOpt.attributeNode("checkbox"); - QDomAttr aWidget=eOpt.attributeNode("widget"); - QCheckBox *ck=(QCheckBox*)this->child(aCheckBox.value().latin1()); + TQDomElement eOpt=lOptions.item(j).toElement(); + TQDomAttr aType=eOpt.attributeNode("type"); + TQDomAttr aCheckBox=eOpt.attributeNode("checkbox"); + TQDomAttr aWidget=eOpt.attributeNode("widget"); + TQCheckBox *ck=(TQCheckBox*)this->child(aCheckBox.value().latin1()); if (ck->isChecked()) { if (sCmd1.isEmpty()){ if (eCodec.attributeNode("options").isNull()) @@ -458,17 +458,17 @@ const QString & k9MencoderCmdGen::getCmd(const QString &_root) { eSep=eOpt.attributeNode("separator"); if (!eSep.isNull()) m_sepValues=eSep.value(); - QDomNodeList lSubOpt=eOpt.elementsByTagName("subopt"); - QString sCmd2=""; - QString sTmp=""; + TQDomNodeList lSubOpt=eOpt.elementsByTagName("subopt"); + TQString sCmd2=""; + TQString sTmp=""; for (int k=0;k<lSubOpt.count();k++) { - QDomElement eSOpt=lSubOpt.item(k).toElement(); - QDomAttr aSType=eSOpt.attributeNode("type"); - QDomAttr aSWidget=eSOpt.attributeNode("widget"); - QString sPrefix=""; + TQDomElement eSOpt=lSubOpt.item(k).toElement(); + TQDomAttr aSType=eSOpt.attributeNode("type"); + TQDomAttr aSWidget=eSOpt.attributeNode("widget"); + TQString sPrefix=""; if (!eSOpt.attributeNode("prefix").isNull()) sPrefix=eSOpt.attributeNode("prefix").value(); - QCheckBox *Sck=(QCheckBox*)this->child(eSOpt.attributeNode("checkbox").value().latin1()); + TQCheckBox *Sck=(TQCheckBox*)this->child(eSOpt.attributeNode("checkbox").value().latin1()); if(aSType.value()=="int" && Sck->isChecked()) { KIntSpinBox *isb=(KIntSpinBox*) this->child(aSWidget.value().latin1(),"KIntSpinBox"); if (!sCmd2.isEmpty()) @@ -479,10 +479,10 @@ const QString & k9MencoderCmdGen::getCmd(const QString &_root) { KDoubleSpinBox *isb=(KDoubleSpinBox*) this->child(aSWidget.value().latin1(),"KDoubleSpinBox"); if (!sCmd2.isEmpty()) sCmd2 +=m_sepValues; - sCmd2+=sTmp+sPrefix+isb->text().replace(",",".").stripWhiteSpace(); + sCmd2+=sTmp+sPrefix+isb->text().tqreplace(",",".").stripWhiteSpace(); sTmp=""; } else if(aSType.value()=="string" && Sck->isChecked()) { - QComboBox *cb=(QComboBox*) this->child(aSWidget.value().latin1(),"QComboBox"); + TQComboBox *cb=(TQComboBox*) this->child(aSWidget.value().latin1(),TQCOMBOBOX_OBJECT_NAME_STRING); if (!sCmd2.isEmpty() ) sCmd2 +=m_sepValues; // sCmd2+= cb->text(cb->currentItem()); @@ -509,9 +509,9 @@ const QString & k9MencoderCmdGen::getCmd(const QString &_root) { KDoubleSpinBox *isb=(KDoubleSpinBox*) this->child(aWidget.value().latin1(),"KDoubleSpinBox"); if (!sCmd.isEmpty()) sCmd +=m_sepOpt; - sCmd+= eOpt.attributeNode("name").value() + "=" + isb->text().replace(",","."); + sCmd+= eOpt.attributeNode("name").value() + "=" + isb->text().tqreplace(",","."); } else if(aType.value()=="string") { - QComboBox *cb=(QComboBox*) this->child(aWidget.value().latin1(),"QComboBox"); + TQComboBox *cb=(TQComboBox*) this->child(aWidget.value().latin1(),TQCOMBOBOX_OBJECT_NAME_STRING); if (!sCmd.isEmpty()) sCmd +=m_sepOpt; sCmd+= eOpt.attributeNode("name").value() + "=" + cb->currentText(); @@ -529,14 +529,14 @@ const QString & k9MencoderCmdGen::getCmd(const QString &_root) { return m_cmd; } -bool k9MencoderCmdGen::getMencoderOptions(QString &_cmd) { +bool k9MencoderCmdGen::getMencoderOptions(TQString &_cmd) { k9MencoderCmdGen * m_cmdGen=new k9MencoderCmdGen(NULL,_cmd); m_cmdGen->m_cmd=_cmd; bool res=m_cmdGen->exec(); if (res) { - QString m_video=m_cmdGen->getCmd("VIDEO").stripWhiteSpace(); - QString m_audio=m_cmdGen->getCmd("AUDIO").stripWhiteSpace(); - QString m_filters=m_cmdGen->getCmd("FILTERS").stripWhiteSpace(); + TQString m_video=m_cmdGen->getCmd("VIDEO").stripWhiteSpace(); + TQString m_audio=m_cmdGen->getCmd("AUDIO").stripWhiteSpace(); + TQString m_filters=m_cmdGen->getCmd("FILTERS").stripWhiteSpace(); if (!m_video.isEmpty()) m_video="-ovc "+m_video; if (!m_audio.isEmpty()) @@ -547,11 +547,11 @@ bool k9MencoderCmdGen::getMencoderOptions(QString &_cmd) { return res; } -void k9MencoderCmdGen::parseCmd(const QString &_cmd){ - QString cmd(_cmd); - cmd=cmd.replace("\n"," ").simplifyWhiteSpace(); - QStringList cmdList=QStringList::split(" ",cmd); - for (QStringList::iterator it=cmdList.begin();it!=cmdList.end();++it) { +void k9MencoderCmdGen::parseCmd(const TQString &_cmd){ + TQString cmd(_cmd); + cmd=cmd.tqreplace("\n"," ").simplifyWhiteSpace(); + TQStringList cmdList=TQStringList::split(" ",cmd); + for (TQStringList::iterator it=cmdList.begin();it!=cmdList.end();++it) { if (*it=="-ovc") { ++it; selectCodec("VIDEO",*it); @@ -563,15 +563,15 @@ void k9MencoderCmdGen::parseCmd(const QString &_cmd){ selectCodec("FILTERS","vf"); else if (*it=="-af") selectCodec("FILTERS","af"); - QDomNodeList lRoot=m_doc.documentElement().childNodes(); + TQDomNodeList lRoot=m_doc.documentElement().childNodes(); bool bFound=false; - QString sCodec=*it; + TQString sCodec=*it; for (int i=0;i<lRoot.count();i++) { - QDomElement eRoot=lRoot.item(i).toElement(); - QDomNodeList lCodec=eRoot.childNodes(); + TQDomElement eRoot=lRoot.item(i).toElement(); + TQDomNodeList lCodec=eRoot.childNodes(); for (int j=0;j<lCodec.count();j++) { - QDomElement eCodec=lCodec.item(j).toElement(); - QString sOptName=""; + TQDomElement eCodec=lCodec.item(j).toElement(); + TQString sOptName=""; if (eCodec.attributeNode("options").isNull()) sOptName="-"+eCodec.nodeName(); else @@ -589,60 +589,60 @@ void k9MencoderCmdGen::parseCmd(const QString &_cmd){ } } -void k9MencoderCmdGen::parseCodecOptions(const QString &_root,const QString &_codec,const QString & _options) { +void k9MencoderCmdGen::parseCodecOptions(const TQString &_root,const TQString &_codec,const TQString & _options) { - QString m_sepOpt=":"; - QString m_sepValues=","; + TQString m_sepOpt=":"; + TQString m_sepValues=","; - QDomElement eRoot=m_doc.documentElement().elementsByTagName(_root).item(0).toElement(); - QDomElement eCodec=eRoot.elementsByTagName(_codec).item(0).toElement(); + TQDomElement eRoot=m_doc.documentElement().elementsByTagName(_root).item(0).toElement(); + TQDomElement eCodec=eRoot.elementsByTagName(_codec).item(0).toElement(); if (! eCodec.attributeNode("separator").isNull()) m_sepOpt=eCodec.attributeNode("separator").value(); - QStringList slOptions=QStringList::split(m_sepOpt,_options); - QDomNodeList lOpt=eCodec.elementsByTagName("opt"); + TQStringList slOptions=TQStringList::split(m_sepOpt,_options); + TQDomNodeList lOpt=eCodec.elementsByTagName("opt"); for (int i=0;i <lOpt.count();i++) { - QDomElement eOpt=lOpt.item(i).toElement(); - QString sName=eOpt.attributeNode("name").value(); + TQDomElement eOpt=lOpt.item(i).toElement(); + TQString sName=eOpt.attributeNode("name").value(); if (! eOpt.attributeNode("separator").isNull()) m_sepValues=eOpt.attributeNode("separator").value(); //extract the option (optname=value) - QStringList sl=slOptions.grep(sName,false); - QString sOpt=""; - for (QStringList::iterator it=slOptions.begin();it !=slOptions.end();++it) + TQStringList sl=slOptions.grep(sName,false); + TQString sOpt=""; + for (TQStringList::iterator it=slOptions.begin();it !=slOptions.end();++it) if (*it==sName || (*it).startsWith(sName+"=")) sOpt=*it; if (sOpt!="") { - //QString sOpt=*(sl.at(0)); - QString value; + //TQString sOpt=*(sl.at(0)); + TQString value; if (eOpt.attributeNode("type").isNull()) { //it's a list of values - QString sValues=sOpt.replace("="+m_sepValues,"= "+m_sepValues).replace(m_sepValues+m_sepValues,m_sepValues+" "+m_sepValues).replace(m_sepValues+m_sepValues,m_sepValues+" "+m_sepValues).section("=",1); - QStringList slValues=QStringList::split(m_sepValues,sValues); + TQString sValues=sOpt.tqreplace("="+m_sepValues,"= "+m_sepValues).tqreplace(m_sepValues+m_sepValues,m_sepValues+" "+m_sepValues).tqreplace(m_sepValues+m_sepValues,m_sepValues+" "+m_sepValues).section("=",1); + TQStringList slValues=TQStringList::split(m_sepValues,sValues); //loop on values nodes - QDomNodeList lSOpt=eOpt.elementsByTagName("subopt"); + TQDomNodeList lSOpt=eOpt.elementsByTagName("subopt"); for (int j=0;j<lSOpt.count();j++) { - QDomElement eSOpt=lSOpt.item(j).toElement(); + TQDomElement eSOpt=lSOpt.item(j).toElement(); //if (eSOpt.attributeNode("type").value()=="int") { if (eSOpt.attributeNode("prefix").isNull()) { if (j< slValues.count() && *(slValues.at(j)) !=" " ) { - QString sVal=*(slValues.at(j)); + TQString sVal=*(slValues.at(j)); if (eSOpt.attributeNode("type").value()=="bool") sVal="true"; eSOpt.setAttribute("default",sVal); eSOpt.setAttribute("selected","true"); } } else { - QString sPrefix=eSOpt.attributeNode("prefix").value(); + TQString sPrefix=eSOpt.attributeNode("prefix").value(); for (int k=0;k<slValues.count();k++) { - QString s=*(slValues.at(k)); + TQString s=*(slValues.at(k)); if (s.startsWith(sPrefix)) { - eSOpt.setAttribute("default",s.replace(sPrefix,"")); + eSOpt.setAttribute("default",s.tqreplace(sPrefix,"")); eSOpt.setAttribute("selected","true"); } } @@ -658,9 +658,9 @@ void k9MencoderCmdGen::parseCodecOptions(const QString &_root,const QString &_co } } -void k9MencoderCmdGen::selectCodec(const QString &_root,const QString &_codec) { - QDomElement root=m_doc.documentElement().elementsByTagName(_root).item(0).toElement(); - QDomElement codec=root.elementsByTagName(_codec).item(0).toElement(); +void k9MencoderCmdGen::selectCodec(const TQString &_root,const TQString &_codec) { + TQDomElement root=m_doc.documentElement().elementsByTagName(_root).item(0).toElement(); + TQDomElement codec=root.elementsByTagName(_codec).item(0).toElement(); if (!codec.isNull()) codec.setAttribute("selected","true"); } diff --git a/src/k9mencodercmdgen.h b/src/k9mencodercmdgen.h index c0b617a..f13e3a0 100644 --- a/src/k9mencodercmdgen.h +++ b/src/k9mencodercmdgen.h @@ -14,53 +14,54 @@ #define K9MENCODERCMDGEN_H #include "mencoderCmdGen.h" -#include <qscrollview.h> -#include <qgrid.h> -#include <qdom.h> -#include <qlayout.h> -#include <qlistview.h> -#include <qhbox.h> +#include <tqscrollview.h> +#include <tqgrid.h> +#include <tqdom.h> +#include <tqlayout.h> +#include <tqlistview.h> +#include <tqhbox.h> class _k9CheckListItem; class k9MencoderCmdGen : public MyDialog1 { Q_OBJECT + TQ_OBJECT public: - k9MencoderCmdGen(QWidget* parent, const QString &_cmd, bool modal = FALSE, WFlags fl = 0 ); + k9MencoderCmdGen(TQWidget* tqparent, const TQString &_cmd, bool modal = FALSE, WFlags fl = 0 ); ~k9MencoderCmdGen(); /*$PUBLIC_FUNCTIONS$*/ - static bool getMencoderOptions(QString &_cmd); + static bool getMencoderOptions(TQString &_cmd); public slots: /*$PUBLIC_SLOTS$*/ private: - QScrollView *m_scrollView; - QGrid *m_grid; - QGrid *m_hbox; + TQScrollView *m_scrollView; + TQGrid *m_grid; + TQGrid *m_hbox; int m_row,m_page,m_cpt; - QDomDocument m_doc; - QString m_cmd; + TQDomDocument m_doc; + TQString m_cmd; - void addWidgets(_k9CheckListItem *_item,QString _root,QString _cat); + void addWidgets(_k9CheckListItem *_item,TQString _root,TQString _cat); void loadXml(); void fillListView(); - void addInt(QDomElement _eOpt); - void addFloat(QDomElement _eOpt); - void addBool(QDomElement _eOpt); - void addString(QDomElement _eOpt); - void addList(QDomElement _eOpt); + void addInt(TQDomElement _eOpt); + void addFloat(TQDomElement _eOpt); + void addBool(TQDomElement _eOpt); + void addString(TQDomElement _eOpt); + void addList(TQDomElement _eOpt); - const QString & getCmd(const QString &_root); - void selectCodec(const QString &_root,const QString &_codec); - void parseCodecOptions(const QString &_root,const QString &_codec,const QString & _options); - void parseCmd(const QString &_cmd); + const TQString & getCmd(const TQString &_root); + void selectCodec(const TQString &_root,const TQString &_codec); + void parseCodecOptions(const TQString &_root,const TQString &_codec,const TQString & _options); + void parseCmd(const TQString &_cmd); protected: /*$PROTECTED_FUNCTIONS$*/ protected slots: /*$PROTECTED_SLOTS$*/ - void listViewCurrentChanged(QListViewItem*); + void listViewCurrentChanged(TQListViewItem*); }; #endif diff --git a/src/k9mp4title.cpp b/src/k9mp4title.cpp index 00bf426..e4cf7d6 100644 --- a/src/k9mp4title.cpp +++ b/src/k9mp4title.cpp @@ -15,19 +15,19 @@ #include "k9config.h" #include "k9titleencopt.h" #include "k9dvdtitle.h" -#include <qcombobox.h> -#include <qspinbox.h> -#include <qcheckbox.h> -#include <qlineedit.h> -#include <qstringlist.h> +#include <tqcombobox.h> +#include <tqspinbox.h> +#include <tqcheckbox.h> +#include <tqlineedit.h> +#include <tqstringlist.h> #include <klocale.h> -#include <qlabel.h> -#include <qframe.h> -#include <qtabwidget.h> -#include <qradiobutton.h> +#include <tqlabel.h> +#include <tqframe.h> +#include <tqtabwidget.h> +#include <tqradiobutton.h> -k9MP4Title::k9MP4Title(QWidget* parent, const char* name, WFlags fl) -: prefMPEG4(parent,name,fl) +k9MP4Title::k9MP4Title(TQWidget* tqparent, const char* name, WFlags fl) +: prefMPEG4(tqparent,name,fl) { m_titleEncOpt=NULL; load(); @@ -63,8 +63,8 @@ void k9MP4Title::load() { leMp4AudioBitrate->setText(config.getPrefMp4AudioBitrate()); leMp4VideoBitrate->setText(config.getPrefMp4VideoBitrate()); - QStringList m_codecLabels=config.getCodecLabels(); - QStringList m_codecLabelsAudio=config.getCodecLabelsAudio(); + TQStringList m_codecLabels=config.getCodecLabels(); + TQStringList m_codecLabelsAudio=config.getCodecLabelsAudio(); cbMp4Codec->clear(); @@ -177,23 +177,23 @@ void k9MP4Title::sbAudioGainValueChanged( int _value ) { m_titleEncOpt->setAudioGain(_value); } -void k9MP4Title::leMp4WidthTextChanged( const QString & _value) { +void k9MP4Title::leMp4WidthTextChanged( const TQString & _value) { if (m_titleEncOpt) m_titleEncOpt->setWidth(_value); } -void k9MP4Title::leMp4HeightTextChanged( const QString & _value) { +void k9MP4Title::leMp4HeightTextChanged( const TQString & _value) { if (m_titleEncOpt) m_titleEncOpt->setHeight(_value); } -void k9MP4Title::leMp4AudioBitrateTextChanged( const QString & _value) { +void k9MP4Title::leMp4AudioBitrateTextChanged( const TQString & _value) { if (m_titleEncOpt) m_titleEncOpt->setAudioBr(_value); } -void k9MP4Title::leMp4VideoBitrateTextChanged( const QString & _value) { +void k9MP4Title::leMp4VideoBitrateTextChanged( const TQString & _value) { if (m_titleEncOpt) m_titleEncOpt->setVideoBr(_value); } diff --git a/src/k9mp4title.h b/src/k9mp4title.h index da020f4..63bda0f 100644 --- a/src/k9mp4title.h +++ b/src/k9mp4title.h @@ -22,9 +22,10 @@ class k9DVD; class k9MP4Title : public prefMPEG4 { Q_OBJECT + TQ_OBJECT public: - k9MP4Title(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + k9MP4Title(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); ~k9MP4Title(); /*$PUBLIC_FUNCTIONS$*/ private: @@ -45,10 +46,10 @@ protected slots: virtual void sbAudioGainValueChanged( int ); virtual void sbMp4NumberCDValueChanged( int ); - virtual void leMp4WidthTextChanged( const QString & ); - virtual void leMp4HeightTextChanged( const QString & ); - virtual void leMp4AudioBitrateTextChanged( const QString & ); - virtual void leMp4VideoBitrateTextChanged( const QString & ); + virtual void leMp4WidthTextChanged( const TQString & ); + virtual void leMp4HeightTextChanged( const TQString & ); + virtual void leMp4AudioBitrateTextChanged( const TQString & ); + virtual void leMp4VideoBitrateTextChanged( const TQString & ); virtual void rgVideoSizeChanged(); diff --git a/src/k9play.cpp b/src/k9play.cpp index c772a1d..e2c3550 100644 --- a/src/k9play.cpp +++ b/src/k9play.cpp @@ -27,23 +27,23 @@ #include <ktempfile.h> #include <kstandarddirs.h> -void k9play::saveStatus(k9play_st _status) { - QFile fstatus(m_inject); +void k9play::savetqStatus(k9play_st _status) { + TQFile fstatus(m_inject); fstatus.open(IO_WriteOnly); fstatus.writeBlock((const char*)&_status,sizeof(k9play_st)); fstatus.close(); - kdebug (QString("saving status : %1 %2 %3 %4 %5 %6 %7\n").arg(_status.title).arg(_status.chapter).arg(_status.cell).arg(_status.sector).arg(_status.bytesWritten).arg(_status.bytesRead).arg(_status.bytesSkipped)); + kdebug (TQString("saving status : %1 %2 %3 %4 %5 %6 %7\n").tqarg(_status.title).tqarg(_status.chapter).tqarg(_status.cell).tqarg(_status.sector).tqarg(_status.bytesWritten).tqarg(_status.bytesRead).tqarg(_status.bytesSkipped)); } -void k9play::readStatus(k9play_st &_status) { - QFile fstatus(m_inject); +void k9play::readtqStatus(k9play_st &_status) { + TQFile fstatus(m_inject); if (fstatus.open(IO_ReadOnly)) { fstatus.readBlock((char*)&_status,sizeof(k9play_st)); fstatus.close(); } else memset(&_status,0,sizeof(k9play_st)); - kdebug (QString("reading status : title:%1 chapter:%2 cell:%3 sector:%4 written:%5 readen:%6 skipped:%7 chapters:%8 \n").arg(_status.title).arg(_status.chapter).arg(_status.cell).arg(_status.sector).arg(_status.bytesWritten).arg(_status.bytesRead).arg(_status.bytesSkipped).arg(_status.bytesChapters)); + kdebug (TQString("reading status : title:%1 chapter:%2 cell:%3 sector:%4 written:%5 readen:%6 skipped:%7 chapters:%8 \n").tqarg(_status.title).tqarg(_status.chapter).tqarg(_status.cell).tqarg(_status.sector).tqarg(_status.bytesWritten).tqarg(_status.bytesRead).tqarg(_status.bytesSkipped).tqarg(_status.bytesChapters)); } @@ -63,13 +63,13 @@ k9play::k9play() { m_useCache=false; } -void k9play::kdebug(QString const & _msg) { +void k9play::kdebug(TQString const & _msg) { #ifdef debug m_stderr.writeBlock(_msg.latin1(),_msg.length()); #endif } -void k9play::writeOutput(QString const & _msg) { +void k9play::writeOutput(TQString const & _msg) { m_stderr.writeBlock(_msg.latin1(),_msg.length()); } @@ -78,72 +78,72 @@ k9play::~k9play() { m_stderr.close(); } -void k9play::setstartSector(QString _value) { +void k9play::setstartSector(TQString _value) { if (_value !="") m_startSector=_value.toUInt(); } -void k9play::setinject(QString _value) { +void k9play::setinject(TQString _value) { m_inject=_value; } -void k9play::setendSector(QString _value) { +void k9play::setendSector(TQString _value) { if (_value!="") m_endSector=_value.toUInt(); } -void k9play::setaudioFilter( QString _value) { +void k9play::setaudioFilter( TQString _value) { if (_value!="") - m_audioFilter=QStringList::split(",",_value); + m_audioFilter=TQStringList::split(",",_value); } -void k9play::setsubpictureFilter( QString _value) { +void k9play::setsubpictureFilter( TQString _value) { if (_value!="") - m_subpictureFilter=QStringList::split(",",_value); + m_subpictureFilter=TQStringList::split(",",_value); } -void k9play::setchapterList( QString _value) { +void k9play::setchapterList( TQString _value) { if (_value!="") - m_chapterList=QStringList::split(",",_value); + m_chapterList=TQStringList::split(",",_value); } -void k9play::setvampsFactor(QString _value) { +void k9play::setvampsFactor(TQString _value) { if (_value!="") m_vampsFactor=_value.toDouble(); } -void k9play::setinputSize( QString _value) { +void k9play::setinputSize( TQString _value) { if (_value!="") m_inputSize=_value.toULongLong(); } -void k9play::settotalSize( QString _value) { +void k9play::settotalSize( TQString _value) { if (_value!="") m_totalSize=_value.toULongLong(); } -void k9play::setdvdSize( QString _value) { +void k9play::setdvdSize( TQString _value) { if (_value!="") m_dvdSize=_value.toULongLong(); } -void k9play::setchapterSize( QString _value) { +void k9play::setchapterSize( TQString _value) { if (_value!="") m_chapterSize=_value.toULongLong(); } -void k9play::setchapter( QString _value) { +void k9play::setchapter( TQString _value) { if (_value!="") m_chapter=_value.toUInt(); } -void k9play::setcell(QString _value) { +void k9play::setcell(TQString _value) { if (_value !="") m_cell=_value.toUInt(); } -void k9play::setinitStatus(bool _value) { +void k9play::setinittqStatus(bool _value) { m_initstatus=_value; } @@ -234,7 +234,7 @@ void k9play::play() { if (m_initstatus) memset(&status,0,sizeof(k9play_st)); else { - readStatus( status); + readtqStatus( status); if (m_continue) m_startSector=status.sector; } @@ -246,7 +246,7 @@ void k9play::play() { bufferFile=new KTempFile(locateLocal("tmp", "k9copy/k9p"), ""); m_output=bufferFile->file(); } else { - m_output=new QFile(); + m_output=new TQFile(); m_output->open(IO_WriteOnly,stdout); } k9vamps vamps(NULL); @@ -277,20 +277,20 @@ void k9play::play() { double factor; factor = (double) (m_totalSize - (status.bytesRead +status.bytesSkipped)) / (double) (m_dvdSize-status.bytesWritten) ; if (factor <1) factor =1; - kdebug(QString("shrink factor %1 totalSize:%2 (status.bytesRead +status.bytesSkipped):%3 m_dvdSize:%4 status.bytesWritten:%5").arg(factor).arg(m_totalSize).arg(status.bytesRead +status.bytesSkipped).arg(m_dvdSize).arg(status.bytesWritten) ); + kdebug(TQString("shrink factor %1 totalSize:%2 (status.bytesRead +status.bytesSkipped):%3 m_dvdSize:%4 status.bytesWritten:%5").tqarg(factor).tqarg(m_totalSize).tqarg(status.bytesRead +status.bytesSkipped).tqarg(m_dvdSize).tqarg(status.bytesWritten) ); vamps.setVapFactor(factor); } else { vamps.setVapFactor(m_vampsFactor); - kdebug(QString("vamps factor %1\n").arg(m_vampsFactor)); + kdebug(TQString("vamps factor %1\n").tqarg(m_vampsFactor)); } vamps.setInputSize(m_inputSize); - for ( QStringList::Iterator it = m_audioFilter.begin(); it != m_audioFilter.end(); ++it ) { + for ( TQStringList::Iterator it = m_audioFilter.begin(); it != m_audioFilter.end(); ++it ) { vamps.addAudio((*it).toInt()); } - for ( QStringList::Iterator it = m_subpictureFilter.begin(); it != m_subpictureFilter.end(); ++it ) { + for ( TQStringList::Iterator it = m_subpictureFilter.begin(); it != m_subpictureFilter.end(); ++it ) { vamps.addSubpicture((*it).toInt()); } @@ -302,7 +302,7 @@ void k9play::play() { /* set read ahead cache usage */ if (dvdnav_set_readahead_flag(dvdnav, DVD_READ_CACHE) != DVDNAV_STATUS_OK) { - writeOutput( QString("ERR:Error on dvdnav_set_readahead_flag: %1\n").arg(dvdnav_err_to_string(dvdnav))); + writeOutput( TQString("ERR:Error on dvdnav_set_readahead_flag: %1\n").tqarg(dvdnav_err_to_string(dvdnav))); return; } @@ -310,14 +310,14 @@ void k9play::play() { if (dvdnav_menu_language_select(dvdnav, DVD_LANGUAGE) != DVDNAV_STATUS_OK || dvdnav_audio_language_select(dvdnav, DVD_LANGUAGE) != DVDNAV_STATUS_OK || dvdnav_spu_language_select(dvdnav, DVD_LANGUAGE) != DVDNAV_STATUS_OK) { - writeOutput( QString("ERR:Error on setting languages: %1\n").arg(dvdnav_err_to_string(dvdnav))); + writeOutput( TQString("ERR:Error on setting languages: %1\n").tqarg(dvdnav_err_to_string(dvdnav))); return ; } /* set the PGC positioning flag to have position information relatively to the * whole feature instead of just relatively to the current chapter */ if (dvdnav_set_PGC_positioning_flag(dvdnav, 1) != DVDNAV_STATUS_OK) { - writeOutput(QString("ERR:Error on dvdnav_set_PGC_positioning_flag: %1\n").arg(dvdnav_err_to_string(dvdnav))); + writeOutput(TQString("ERR:Error on dvdnav_set_PGC_positioning_flag: %1\n").tqarg(dvdnav_err_to_string(dvdnav))); return ; } @@ -351,7 +351,7 @@ void k9play::play() { if (result == DVDNAV_STATUS_ERR) { - writeOutput(QString("ERR:Error getting next block: %1\n").arg(dvdnav_err_to_string(dvdnav))); + writeOutput(TQString("ERR:Error getting next block: %1\n").tqarg(dvdnav_err_to_string(dvdnav))); return; } switch (event) { @@ -367,7 +367,7 @@ void k9play::play() { if ((m_endSector !=0xFFFFFFFF) && (((status.bytesRead+status.bytesSkipped)/2048) >m_endSector)) { finished=1; - kdebug(QString("pos >m_endSector %1 %2").arg((status.bytesRead+status.bytesSkipped)/2048).arg(m_endSector)); + kdebug(TQString("pos >m_endSector %1 %2").tqarg((status.bytesRead+status.bytesSkipped)/2048).tqarg(m_endSector)); } if ((m_chapter !=0 && ptt !=m_chapter) || (tt != m_title)) finished=1; @@ -375,9 +375,9 @@ void k9play::play() { finished=1; if (!finished && m_chapterList.count() >0) { - if (m_chapterList.findIndex( QString::number(ptt)) == -1) { + if (m_chapterList.tqfindIndex( TQString::number(ptt)) == -1) { dvdnav_part_play(dvdnav,tt, ptt+1); - kdebug( QString("skipping chapter %1").arg(ptt)); + kdebug( TQString("skipping chapter %1").tqarg(ptt)); continue; //dvdnav_part_play(dvdnav_t *self, int32_t title, int32_t part); } @@ -386,19 +386,19 @@ void k9play::play() { if (m_continue) { dvdnav_sector_search(dvdnav,m_startSector , SEEK_SET); - kdebug (QString("repositionning on %1").arg(m_startSector)); + kdebug (TQString("repositionning on %1").tqarg(m_startSector)); m_continue=false; finished=0; bcell=true; } else { if ((m_cell==0 || (m_cell!=0 && currCell==m_cell)) && finished==0) { if (!vamps.running()) - vamps.start(QThread::NormalPriority); + vamps.start(TQThread::NormalPriority); bcopy=true; vamps.addData( buf,len); status.bytesRead +=len; if (!m_useCache) - writeOutput(QString("\rINFOPOS: %1 %2").arg((status.bytesRead+status.bytesSkipped) / DVD_VIDEO_LB_LEN).arg(lgr)); + writeOutput(TQString("\rINFOPOS: %1 %2").tqarg((status.bytesRead+status.bytesSkipped) / DVD_VIDEO_LB_LEN).tqarg(lgr)); if (m_pos==0xFFFFFFFF) m_pos=(status.bytesRead+status.bytesSkipped) / DVD_VIDEO_LB_LEN; } @@ -412,7 +412,7 @@ void k9play::play() { /* We have received a regular block of the currently playing MPEG stream.*/ if (m_cell==0 || (m_cell!=0 && currCell==m_cell)) { if (!vamps.running()) - vamps.start(QThread::NormalPriority); + vamps.start(TQThread::NormalPriority); vamps.addData( buf,len); status.bytesRead +=len; bcopy=true; @@ -521,17 +521,17 @@ void k9play::play() { status.bytesWritten +=vamps.getOutputBytes(); if (!m_firstPass) - saveStatus( status); + savetqStatus( status); delete bufferFile; } void k9play::flush(k9SaveImage &_saveImage ) { char buffer[20*DVD_VIDEO_LB_LEN]; m_output->reset(); - QFile out; + TQFile out; out.open(IO_WriteOnly,stdout); while(!m_output->atEnd()) { - writeOutput(QString("\rINFOPOS: %1 %2").arg(m_pos).arg(m_length)); + writeOutput(TQString("\rINFOPOS: %1 %2").tqarg(m_pos).tqarg(m_length)); m_pos+=20; int l=m_output->readBlock(buffer,20*DVD_VIDEO_LB_LEN); if (l>0) { diff --git a/src/k9play.h b/src/k9play.h index 8a9232a..c291151 100644 --- a/src/k9play.h +++ b/src/k9play.h @@ -14,7 +14,7 @@ #include "k9common.h" #include "k9dvdtitle.h" -#include <qfile.h> +#include <tqfile.h> /** @author Jean-Michel PETIT <[email protected]> */ @@ -37,9 +37,9 @@ private: int m_title; k9DVD *m_dvd; k9DVDTitle *m_dvdTitle; - QString m_device; - QFile *m_output; - QFile m_stderr; + TQString m_device; + TQFile *m_output; + TQFile m_stderr; uint32_t m_totalBytes; uint32_t m_startSector,m_endSector; uint32_t m_pos,m_length; @@ -55,16 +55,16 @@ private: bool m_firstPass; bool m_forcedFactor; bool m_useCache; - QString m_inject; - QStringList m_audioFilter; - QStringList m_subpictureFilter; - QStringList m_chapterList; - void kdebug(QString const & _msg); + TQString m_inject; + TQStringList m_audioFilter; + TQStringList m_subpictureFilter; + TQStringList m_chapterList; + void kdebug(TQString const & _msg); bool readNavPack (k9DVDFile *fh, dsi_t *dsi,int sector, uchar *_buffer); void insert_dummy_pack (int8_t *buf); void insert_nav_pack (int8_t *buf); - void saveStatus(k9play_st _status); - void readStatus(k9play_st &_status); + void savetqStatus(k9play_st _status); + void readtqStatus(k9play_st &_status); void flush(k9SaveImage &_saveImage); public: k9play(); @@ -72,26 +72,26 @@ public: ~k9play(); void execute(); void play(); - void writeOutput(QString const & _msg); + void writeOutput(TQString const & _msg); void setTitle(int _value) {m_title = _value;}; - void setDevice(const QString& _value) {m_device = _value;}; + void setDevice(const TQString& _value) {m_device = _value;}; - void setstartSector(QString _value); - void setendSector(QString _value); - void setaudioFilter(QString _value); - void setsubpictureFilter(QString _value); - void setchapterList(QString _value); - void setvampsFactor(QString _value); - void setinputSize(QString _value); - void settotalSize(QString _value); - void setchapter(QString _value); - void setcell(QString _value); - void setinject(QString _value); - void setdvdSize(QString _value); - void setchapterSize(QString _value); - void setinitStatus(bool _value); + void setstartSector(TQString _value); + void setendSector(TQString _value); + void setaudioFilter(TQString _value); + void setsubpictureFilter(TQString _value); + void setchapterList(TQString _value); + void setvampsFactor(TQString _value); + void setinputSize(TQString _value); + void settotalSize(TQString _value); + void setchapter(TQString _value); + void setcell(TQString _value); + void setinject(TQString _value); + void setdvdSize(TQString _value); + void setchapterSize(TQString _value); + void setinittqStatus(bool _value); void setcontinue (bool _value); void setfirstPass (bool _value); void setforcedFactor(bool _value); diff --git a/src/k9playbackoptions.cpp b/src/k9playbackoptions.cpp index 3bf9715..846daba 100644 --- a/src/k9playbackoptions.cpp +++ b/src/k9playbackoptions.cpp @@ -16,8 +16,8 @@ #include <kpushbutton.h> #include <kiconloader.h> -k9PlaybackOptions::k9PlaybackOptions(k9Main *mainWindow, QWidget* parent, const char* name, WFlags fl) -: PlaybackOptionsw(parent,name,fl) +k9PlaybackOptions::k9PlaybackOptions(k9Main *mainWindow, TQWidget* tqparent, const char* name, WFlags fl) +: PlaybackOptionsw(tqparent,name,fl) { setMain( mainWindow); @@ -42,7 +42,7 @@ k9PlaybackOptions::~k9PlaybackOptions() void k9PlaybackOptions::fillTitleList() { - QString txt=lbSequence->currentText(); + TQString txt=lbSequence->currentText(); lbSequence->clear(); k9DVDTitle *title=m_dvd->getstart(); @@ -64,7 +64,7 @@ void k9PlaybackOptions::fillTitleList() { for (int i=0;i<m_dvd->gettitleCount();i++) { k9DVDTitle* l_track=m_dvd->gettitle(i); if (l_track->getIndexed()) { - QString sTitle=l_track->getname(); + TQString sTitle=l_track->getname(); if(l_track->isSelected()) { bool foundtitle=false; for (uint j=0; j<lbSequence->count();j++) { @@ -135,7 +135,7 @@ void k9PlaybackOptions::setSequence() { } } -void k9PlaybackOptions::lbSequenceChanged(QListBoxItem *_item) { +void k9PlaybackOptions::lbSequenceChanged(TQListBoxItem *_item) { if (_item == NULL) return; lbItem *lbi=(lbItem*) _item; @@ -153,7 +153,7 @@ void k9PlaybackOptions::lbSequenceChanged(QListBoxItem *_item) { if (title->getaudioStream(i)->getselected()) { // if ( !title->getDefAudioSet()) // title->setDefAudio(title->getaudioStream(i)); - cbDefAudio->insertItem( QString("%1 - %2").arg(title->getaudioStream(i)->getID()).arg(title->getaudioStream(i)->getlanguage())); + cbDefAudio->insertItem( TQString("%1 - %2").tqarg(title->getaudioStream(i)->getID()).tqarg(title->getaudioStream(i)->getlanguage())); if (title->getaudioStream(i)==title->getDefAudio()) { cbDefAudio->setCurrentItem(cbDefAudio->count()-1); } @@ -163,8 +163,8 @@ void k9PlaybackOptions::lbSequenceChanged(QListBoxItem *_item) { for (int i=0;i < title->getsubPictureCount();i++) { if (title->getsubtitle(i)->getselected()) { - QPixmap icon; - cbDefSub->insertItem(QString("%1 - %2").arg(title->getsubtitle(i)->getID().first()).arg(title->getsubtitle(i)->getlanguage())); + TQPixmap icon; + cbDefSub->insertItem(TQString("%1 - %2").tqarg(title->getsubtitle(i)->getID().first()).tqarg(title->getsubtitle(i)->getlanguage())); if (title->getsubtitle(i)==title->getDefSubtitle()) { cbDefSub->setCurrentItem(cbDefSub->count()-1); } @@ -186,7 +186,7 @@ void k9PlaybackOptions::cbDefSubActivated(int _index) { lbi->getTitle()->setDefSubtitle(lstSubDef.at(_index)); } -void k9PlaybackOptions::titleRenamed (k9DVDTitle *_title, QString _newName) { +void k9PlaybackOptions::titleRenamed (k9DVDTitle *_title, TQString _newName) { for (uint j=0; j<lbSequence->count();j++) { lbItem *tmp=(lbItem*)lbSequence->item(j); if (tmp->getTitle() == _title) { diff --git a/src/k9playbackoptions.h b/src/k9playbackoptions.h index 55ee39d..2d5dba5 100644 --- a/src/k9playbackoptions.h +++ b/src/k9playbackoptions.h @@ -17,16 +17,16 @@ #include "k9dvd.h" #include "k9main.h" #include "k9dvdtitle.h" -#include <qcheckbox.h> -#include <qlistbox.h> +#include <tqcheckbox.h> +#include <tqlistbox.h> -class lbItem : public QListBoxText { +class lbItem : public TQListBoxText { protected: k9DVDTitle *m_title; public: - lbItem(QListBox * listbox, const QString & text = QString::null ): - QListBoxText(listbox,text) {} + lbItem(TQListBox * listbox, const TQString & text = TQString() ): + TQListBoxText(listbox,text) {} ; void setTitle(k9DVDTitle *_value) { m_title = _value; @@ -41,9 +41,10 @@ class k9Main; class k9PlaybackOptions : public PlaybackOptionsw { Q_OBJECT + TQ_OBJECT public: - k9PlaybackOptions(k9Main *mainWindow,QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + k9PlaybackOptions(k9Main *mainWindow,TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); ~k9PlaybackOptions(); /*$PUBLIC_FUNCTIONS$*/ void fillTitleList(); @@ -52,7 +53,7 @@ public: void setDvd(k9DVD* _value) {m_dvd = _value;} void setMain(k9Main* _value); void setSequence(); - void titleRenamed (k9DVDTitle *_title, QString _newName); + void titleRenamed (k9DVDTitle *_title, TQString _newName); bool withMenus() ; void setwithMenus(bool _value); void enable(bool _value); @@ -63,8 +64,8 @@ public slots: protected: /*$PROTECTED_FUNCTIONS$*/ - QPtrList <k9DVDAudioStream> lstAudioDef; - QPtrList <k9DVDSubtitle> lstSubDef; + TQPtrList <k9DVDAudioStream> lstAudioDef; + TQPtrList <k9DVDSubtitle> lstSubDef; protected slots: /*$PROTECTED_SLOTS$*/ @@ -72,7 +73,7 @@ protected slots: virtual void bSeqDownClick(); virtual void cbDefAudioActivated(int _index); virtual void cbDefSubActivated(int _index); - virtual void lbSequenceChanged (QListBoxItem * _item); + virtual void lbSequenceChanged (TQListBoxItem * _item); }; #endif diff --git a/src/k9prefauthor.cpp b/src/k9prefauthor.cpp index 6717bce..9dd14ea 100644 --- a/src/k9prefauthor.cpp +++ b/src/k9prefauthor.cpp @@ -12,13 +12,13 @@ #include "k9prefauthor.h" #include "k9config.h" -#include <qcombobox.h> +#include <tqcombobox.h> #include <knuminput.h> #include <kcolorbutton.h> #include <kfontdialog.h> -k9prefAuthor::k9prefAuthor(QWidget* parent, const char* name, WFlags fl) -: prefAuthor(parent,name,fl) +k9prefAuthor::k9prefAuthor(TQWidget* tqparent, const char* name, WFlags fl) +: prefAuthor(tqparent,name,fl) { load(); } @@ -26,7 +26,7 @@ k9prefAuthor::k9prefAuthor(QWidget* parent, const char* name, WFlags fl) void k9prefAuthor::load() { k9Config config; cbAudioFormat->setCurrentText(config.getPrefAudioFormat()); - cbAudioBitrate->setCurrentText(QString::number(config.getPrefAudioBitrate())); + cbAudioBitrate->setCurrentText(TQString::number(config.getPrefAudioBitrate())); inButtonWidth->setValue(config.getPrefButtonWidth()); inButtonHeight->setValue(config.getPrefButtonHeight()); cbHiliteColor->setColor(config.getPrefButtonHiliteColor()); diff --git a/src/k9prefauthor.h b/src/k9prefauthor.h index be59c40..7581bf3 100644 --- a/src/k9prefauthor.h +++ b/src/k9prefauthor.h @@ -14,14 +14,15 @@ #define K9PREFAUTHOR_H #include "k9common.h" #include "prefAuthor.h" -#include <qfont.h> +#include <tqfont.h> class k9prefAuthor : public prefAuthor { Q_OBJECT + TQ_OBJECT public: - k9prefAuthor(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + k9prefAuthor(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); ~k9prefAuthor(); /*$PUBLIC_FUNCTIONS$*/ void load(); @@ -31,7 +32,7 @@ public slots: virtual void save(); protected: /*$PROTECTED_FUNCTIONS$*/ - QFont m_font; + TQFont m_font; protected slots: /*$PROTECTED_SLOTS$*/ diff --git a/src/k9prefdvd.cpp b/src/k9prefdvd.cpp index 8238b1c..889a83f 100644 --- a/src/k9prefdvd.cpp +++ b/src/k9prefdvd.cpp @@ -15,12 +15,12 @@ #include "k9config.h" #include <kstandarddirs.h> #include <kurlrequester.h> -#include <qcheckbox.h> -#include <qspinbox.h> +#include <tqcheckbox.h> +#include <tqspinbox.h> #include <klocale.h> -k9prefDVD::k9prefDVD(QWidget* parent, const char* name, WFlags fl) -: prefDVD(parent,name,fl) +k9prefDVD::k9prefDVD(TQWidget* tqparent, const char* name, WFlags fl) +: prefDVD(tqparent,name,fl) { k9Config config; urOutput->setMode(2); diff --git a/src/k9prefdvd.h b/src/k9prefdvd.h index f0479c8..3668d79 100644 --- a/src/k9prefdvd.h +++ b/src/k9prefdvd.h @@ -18,9 +18,10 @@ class k9prefDVD : public prefDVD { Q_OBJECT + TQ_OBJECT public: - k9prefDVD(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + k9prefDVD(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); ~k9prefDVD(); /*$PUBLIC_FUNCTIONS$*/ void save(); diff --git a/src/k9prefmencoder.cpp b/src/k9prefmencoder.cpp index b8d92d8..d4594fe 100644 --- a/src/k9prefmencoder.cpp +++ b/src/k9prefmencoder.cpp @@ -12,15 +12,15 @@ #include "k9prefmencoder.h" -#include <qlistbox.h> -#include <qtextedit.h> +#include <tqlistbox.h> +#include <tqtextedit.h> #include "k9mencodercmdgen.h" #include <kpushbutton.h> #include <kiconloader.h> #include <klocale.h> -k9prefMencoder::k9prefMencoder(QWidget* parent, const char* name, WFlags fl) -: prefMencoder(parent,name,fl) +k9prefMencoder::k9prefMencoder(TQWidget* tqparent, const char* name, WFlags fl) +: prefMencoder(tqparent,name,fl) { m_update=false; load(); @@ -46,7 +46,7 @@ void k9prefMencoder::load() { } -void k9prefMencoder::lbvCodecsCurrentChanged(QListBoxItem *_item) { +void k9prefMencoder::lbvCodecsCurrentChanged(TQListBoxItem *_item) { if (_item) { int i=lbvCodecs->currentItem(); m_update=true; @@ -59,7 +59,7 @@ void k9prefMencoder::lbvCodecsCurrentChanged(QListBoxItem *_item) { } } -void k9prefMencoder::lbaCodecsCurrentChanged(QListBoxItem *_item) { +void k9prefMencoder::lbaCodecsCurrentChanged(TQListBoxItem *_item) { if (_item) { int i=lbaCodecs->currentItem(); m_update=true; @@ -77,25 +77,25 @@ void k9prefMencoder::save() } void k9prefMencoder::btnOpt1Clicked() { - QString s=teOpt1->text(); + TQString s=teOpt1->text(); if( k9MencoderCmdGen::getMencoderOptions(s)) teOpt1->setText(s); } void k9prefMencoder::btnOpt2Clicked() { - QString s=teOpt2->text(); + TQString s=teOpt2->text(); if( k9MencoderCmdGen::getMencoderOptions(s)) teOpt2->setText(s); } void k9prefMencoder::btnOpt3Clicked() { - QString s=teOpt3->text(); + TQString s=teOpt3->text(); if( k9MencoderCmdGen::getMencoderOptions(s)) teOpt3->setText(s); } void k9prefMencoder::btnOptAClicked() { - QString s=teOptA->text(); + TQString s=teOptA->text(); if( k9MencoderCmdGen::getMencoderOptions(s)) teOptA->setText(s); @@ -165,20 +165,20 @@ void k9prefMencoder::teOpt3TextChanged() { } -void k9prefMencoder::leVLabelTextChanged(const QString &_value) { +void k9prefMencoder::leVLabelTextChanged(const TQString &_value) { if (!m_update) { lbvCodecs->changeItem(_value,lbvCodecs->currentItem()); m_codecs.setCodecName(lbvCodecs->currentItem(),_value); } } -void k9prefMencoder::leALabelTextChanged(const QString &_value) { +void k9prefMencoder::leALabelTextChanged(const TQString &_value) { if (!m_update) { lbaCodecs->changeItem(_value,lbaCodecs->currentItem()); m_audioCodecs.setCodecName(lbaCodecs->currentItem(),_value); } } -void k9prefMencoder::leFourccTextChanged(const QString &_value) { +void k9prefMencoder::leFourccTextChanged(const TQString &_value) { if (!m_update) { m_codecs.setFourcc(lbvCodecs->currentItem(),_value); } diff --git a/src/k9prefmencoder.h b/src/k9prefmencoder.h index 54ab311..308ecf5 100644 --- a/src/k9prefmencoder.h +++ b/src/k9prefmencoder.h @@ -17,16 +17,17 @@ #include "prefMencoder.h" #include "k9videocodecs.h" #include "k9audiocodecs.h" -#include <qstringlist.h> -#include <qstring.h> -#include <qlineedit.h> +#include <tqstringlist.h> +#include <tqstring.h> +#include <tqlineedit.h> class k9prefMencoder : public prefMencoder { Q_OBJECT + TQ_OBJECT public: - k9prefMencoder(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + k9prefMencoder(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); ~k9prefMencoder(); /*$PUBLIC_FUNCTIONS$*/ void save(void); @@ -38,17 +39,17 @@ public slots: void teOpt1TextChanged(); void teOpt3TextChanged(); void teOpt2TextChanged(); - void leVLabelTextChanged(const QString &); - void leALabelTextChanged(const QString &); - void leFourccTextChanged(const QString &); + void leVLabelTextChanged(const TQString &); + void leALabelTextChanged(const TQString &); + void leFourccTextChanged(const TQString &); private: k9VideoCodecs m_codecs; k9AudioCodecs m_audioCodecs; bool m_update; protected slots: /*$PROTECTED_SLOTS$*/ - void lbvCodecsCurrentChanged(QListBoxItem *_item); - void lbaCodecsCurrentChanged(QListBoxItem *_item); + void lbvCodecsCurrentChanged(TQListBoxItem *_item); + void lbaCodecsCurrentChanged(TQListBoxItem *_item); void btnOpt1Clicked(); void btnOpt2Clicked(); void btnOpt3Clicked(); diff --git a/src/k9prefmpeg4.cpp b/src/k9prefmpeg4.cpp index db752bb..b61d40d 100644 --- a/src/k9prefmpeg4.cpp +++ b/src/k9prefmpeg4.cpp @@ -13,16 +13,16 @@ #include "k9common.h" #include "k9prefmpeg4.h" #include "k9config.h" -#include <qcombobox.h> -#include <qspinbox.h> -#include <qcheckbox.h> -#include <qlineedit.h> -#include <qstringlist.h> +#include <tqcombobox.h> +#include <tqspinbox.h> +#include <tqcheckbox.h> +#include <tqlineedit.h> +#include <tqstringlist.h> #include <klocale.h> -#include <qradiobutton.h> +#include <tqradiobutton.h> -k9prefMPEG4::k9prefMPEG4(QWidget* parent, const char* name, WFlags fl) -: prefMPEG4(parent,name,fl) +k9prefMPEG4::k9prefMPEG4(TQWidget* tqparent, const char* name, WFlags fl) +: prefMPEG4(tqparent,name,fl) { load(); } @@ -46,8 +46,8 @@ void k9prefMPEG4::load() { leMp4AudioBitrate->setText(config.getPrefMp4AudioBitrate()); leMp4VideoBitrate->setText(config.getPrefMp4VideoBitrate()); - QStringList m_codecLabels=config.getCodecLabels(); - QStringList m_codecLabelsAudio=config.getCodecLabelsAudio(); + TQStringList m_codecLabels=config.getCodecLabels(); + TQStringList m_codecLabelsAudio=config.getCodecLabelsAudio(); cbMp4Codec->clear(); cbMp4Codec->insertStringList(m_codecLabels); diff --git a/src/k9prefmpeg4.h b/src/k9prefmpeg4.h index b8f692d..5ac285f 100644 --- a/src/k9prefmpeg4.h +++ b/src/k9prefmpeg4.h @@ -18,9 +18,10 @@ class k9prefMPEG4 : public prefMPEG4 { Q_OBJECT + TQ_OBJECT public: - k9prefMPEG4(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + k9prefMPEG4(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); ~k9prefMPEG4(); /*$PUBLIC_FUNCTIONS$*/ void save(); @@ -44,10 +45,10 @@ protected slots: virtual void sbAudioGainValueChanged( int ){}; virtual void sbMp4NumberCDValueChanged( int ) {}; - virtual void leMp4WidthTextChanged( const QString & ) {}; - virtual void leMp4HeightTextChanged( const QString & ) {}; - virtual void leMp4AudioBitrateTextChanged( const QString & ) {}; - virtual void leMp4VideoBitrateTextChanged( const QString & ) {}; + virtual void leMp4WidthTextChanged( const TQString & ) {}; + virtual void leMp4HeightTextChanged( const TQString & ) {}; + virtual void leMp4AudioBitrateTextChanged( const TQString & ) {}; + virtual void leMp4VideoBitrateTextChanged( const TQString & ) {}; virtual void ckUseCacheClick() {}; diff --git a/src/k9prefpreview.cpp b/src/k9prefpreview.cpp index e1c4fbf..19bff88 100644 --- a/src/k9prefpreview.cpp +++ b/src/k9prefpreview.cpp @@ -13,14 +13,14 @@ #include "k9prefpreview.h" #include "k9config.h" -#include <qwidgetstack.h> -#include <qradiobutton.h> -#include <qcombobox.h> -#include <qcheckbox.h> +#include <tqwidgetstack.h> +#include <tqradiobutton.h> +#include <tqcombobox.h> +#include <tqcheckbox.h> #include <klocale.h> -k9prefPreview::k9prefPreview(QWidget* parent, const char* name, WFlags fl) -: prefPreview(parent,name,fl) +k9prefPreview::k9prefPreview(TQWidget* tqparent, const char* name, WFlags fl) +: prefPreview(tqparent,name,fl) { load(); } diff --git a/src/k9prefpreview.h b/src/k9prefpreview.h index b5e661f..264b5a6 100644 --- a/src/k9prefpreview.h +++ b/src/k9prefpreview.h @@ -19,9 +19,10 @@ class k9prefPreview : public prefPreview { Q_OBJECT + TQ_OBJECT public: - k9prefPreview(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + k9prefPreview(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); ~k9prefPreview(); /*$PUBLIC_FUNCTIONS$*/ void save(); diff --git a/src/k9redirect.cpp b/src/k9redirect.cpp index f5d2066..3076556 100644 --- a/src/k9redirect.cpp +++ b/src/k9redirect.cpp @@ -29,8 +29,8 @@ void k9Redirect::execute() { p->wait(); - QFile f("/tmp/kde-jmp/k9copy/tmp.mpeg"); - QFile fout; + TQFile f("/tmp/kde-jmp/k9copy/tmp.mpeg"); + TQFile fout; f.open(IO_ReadOnly ); fout.open(IO_WriteOnly,stdout); while ( ! f.atEnd()) { diff --git a/src/k9redirect.h b/src/k9redirect.h index 24b3cd5..6eaeb81 100644 --- a/src/k9redirect.h +++ b/src/k9redirect.h @@ -13,7 +13,7 @@ #define K9REDIRECT_H #include "k9common.h" -#include <qfile.h> +#include <tqfile.h> /** @author Jean-Michel PETIT <[email protected]> */ diff --git a/src/k9settings.cpp b/src/k9settings.cpp index 3bdad1e..bbbb7bc 100644 --- a/src/k9settings.cpp +++ b/src/k9settings.cpp @@ -12,62 +12,62 @@ #include "k9settings.h" -#include <qframe.h> +#include <tqframe.h> #include <kglobal.h> #include <kiconloader.h> #include <klocale.h> -#include <qlayout.h> +#include <tqlayout.h> -k9settings::k9settings(QWidget *parent,const QString &caption): KDialogBase (IconList,caption, +k9settings::k9settings(TQWidget *tqparent,const TQString &caption): KDialogBase (IconList,caption, Ok|Apply|Cancel, Ok) { - setInitialSize(QSize(750,350), false); + setInitialSize(TQSize(750,350), false); - QFrame *frDevices; + TQFrame *frDevices; frDevices=addPage (i18n("Devices"),i18n("Devices not detected by k9copy"),KGlobal::iconLoader()->loadIcon("blockdevice", KIcon::Panel, KIcon::SizeMedium)); - QGridLayout *grid = new QGridLayout(frDevices, 0, 0, 10 ); + TQGridLayout *grid = new TQGridLayout(frDevices, 0, 0, 10 ); m_configDlg=new kConfigDlg(frDevices); grid->addWidget(m_configDlg,0,0); - QFrame *frDVD; + TQFrame *frDVD; frDVD=addPage (i18n("DVD"),i18n("DVD Backup"),KGlobal::iconLoader()->loadIcon("dvdcopy", KIcon::Panel, KIcon::SizeMedium)); - grid = new QGridLayout(frDVD, 0, 0, 10 ); + grid = new TQGridLayout(frDVD, 0, 0, 10 ); m_prefDVD =new k9prefDVD(frDVD); grid->addWidget(m_prefDVD,0,0); //TODO afficher uniquement si mencoder et mplayer installés - QFrame *frMencoder; + TQFrame *frMencoder; frMencoder=addPage (i18n("MEncoder"),i18n("MPEG-4 Codecs"),KGlobal::iconLoader()->loadIcon("mencoder", KIcon::Panel, KIcon::SizeMedium)); m_prefMencoder =new k9prefMencoder(frMencoder); - QFrame *frMPEG4; + TQFrame *frMPEG4; frMPEG4=addPage (i18n("MPEG-4"),i18n("MPEG-4 Encoding"),KGlobal::iconLoader()->loadIcon("mp4", KIcon::Panel, KIcon::SizeMedium)); - grid = new QGridLayout(frMPEG4, 0, 0, 10 ); + grid = new TQGridLayout(frMPEG4, 0, 0, 10 ); m_prefMPEG4 =new k9prefMPEG4(frMPEG4); grid->addWidget(m_prefMPEG4,0,0); - grid = new QGridLayout(frMencoder, 0, 0, 10 ); + grid = new TQGridLayout(frMencoder, 0, 0, 10 ); grid->addWidget(m_prefMencoder,0,0); - QFrame *frPreview; + TQFrame *frPreview; frPreview=addPage (i18n("Preview"),i18n("Title preview"),KGlobal::iconLoader()->loadIcon("mplayer", KIcon::Panel, KIcon::SizeMedium)); - grid = new QGridLayout(frPreview, 0, 0, 10 ); + grid = new TQGridLayout(frPreview, 0, 0, 10 ); m_prefPreview =new k9prefPreview(frPreview); grid->addWidget(m_prefPreview,0,0); - QFrame *frAuthor; + TQFrame *frAuthor; frAuthor=addPage(i18n("Authoring"),i18n("Authoring"),KGlobal::iconLoader()->loadIcon("author",KIcon::Panel,KIcon::SizeMedium)); - grid = new QGridLayout(frAuthor, 0, 0, 10 ); + grid = new TQGridLayout(frAuthor, 0, 0, 10 ); m_prefAuthor =new k9prefAuthor(frAuthor); grid->addWidget(m_prefAuthor,0,0); - connect(this, SIGNAL(okClicked()), SLOT(slotOkClicked())); - connect(this, SIGNAL(applyClicked()), SLOT(slotApplyClicked())); + connect(this, TQT_SIGNAL(okClicked()), TQT_SLOT(slotOkClicked())); + connect(this, TQT_SIGNAL(applyClicked()), TQT_SLOT(slotApplyClicked())); } void k9settings::slotOkClicked() { diff --git a/src/k9settings.h b/src/k9settings.h index d1cc237..e86ae3c 100644 --- a/src/k9settings.h +++ b/src/k9settings.h @@ -26,8 +26,9 @@ */ class k9settings:public KDialogBase{ Q_OBJECT + TQ_OBJECT public: - k9settings(QWidget *parent,const QString &caption); + k9settings(TQWidget *tqparent,const TQString &caption); virtual ~k9settings(); diff --git a/src/k9titlefactor.cpp b/src/k9titlefactor.cpp index d020e52..ffb4add 100644 --- a/src/k9titlefactor.cpp +++ b/src/k9titlefactor.cpp @@ -14,16 +14,16 @@ #include "k9titlefactor.h" #include "k9cellcopylist.h" #include "k9dvdsize.h" -#include <qgroupbox.h> -#include <qslider.h> -#include <qlabel.h> -#include <qcheckbox.h> +#include <tqgroupbox.h> +#include <tqslider.h> +#include <tqlabel.h> +#include <tqcheckbox.h> #include <klocale.h> -k9TitleFactor::k9TitleFactor(QWidget* parent, const char* name, WFlags fl) - : titleFactor(parent,name,fl) { +k9TitleFactor::k9TitleFactor(TQWidget* tqparent, const char* name, WFlags fl) + : titleFactor(tqparent,name,fl) { m_current=NULL; m_slFactorPressed=false; m_factor=-1; @@ -86,9 +86,9 @@ void k9TitleFactor::slFactor_valueChanged( int ) { m_factor=-1; } if (m_current->getforceFactor()) - tFactor->setText(QString("%1").arg(m_current->getfactor(),4,'f',2)); + tFactor->setText(TQString("%1").tqarg(m_current->getfactor(),4,'f',2)); else - tFactor->setText(QString("%1").arg(getFactor(),4,'f',2)); + tFactor->setText(TQString("%1").tqarg(getFactor(),4,'f',2)); } } @@ -107,14 +107,14 @@ void k9TitleFactor::changedTitle(k9DVDTitle *_title) { gbTitle->setChecked(m_current->getforceFactor()); m_updating=false; - lbTitle->setText(QString(i18n("Shrink Factor for %1")).arg(m_current->getname())); + lbTitle->setText(TQString(i18n("Shrink Factor for %1")).tqarg(m_current->getname())); if (m_current->getforceFactor()) { slFactor->setValue(m_current->getfactor()*100.0); - tFactor->setText(QString("%1").arg(m_current->getfactor(),4,'f',2)); + tFactor->setText(TQString("%1").tqarg(m_current->getfactor(),4,'f',2)); setMinFactor(); } else { slFactor->setValue(getFactor()*100.0); - tFactor->setText(QString("%1").arg(getFactor(),4,'f',2)); + tFactor->setText(TQString("%1").tqarg(getFactor(),4,'f',2)); slFactor->setMinValue(100); } diff --git a/src/k9titlefactor.h b/src/k9titlefactor.h index 65a02f9..2c2e961 100644 --- a/src/k9titlefactor.h +++ b/src/k9titlefactor.h @@ -22,9 +22,10 @@ class k9TitleFactor : public titleFactor { Q_OBJECT + TQ_OBJECT public: - k9TitleFactor(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + k9TitleFactor(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); ~k9TitleFactor(); /*$PUBLIC_FUNCTIONS$*/ private : diff --git a/src/k9updatefactor.cpp b/src/k9updatefactor.cpp index 76a99c5..74dba8a 100644 --- a/src/k9updatefactor.cpp +++ b/src/k9updatefactor.cpp @@ -11,8 +11,8 @@ // #include "k9updatefactor.h" -k9UpdateFactor::k9UpdateFactor(QObject *parent, const char *name) - : QObject(parent, name), QThread() +k9UpdateFactor::k9UpdateFactor(TQObject *tqparent, const char *name) + : TQObject(tqparent, name), TQThread() { } diff --git a/src/k9updatefactor.h b/src/k9updatefactor.h index 8ca98e2..6cec823 100644 --- a/src/k9updatefactor.h +++ b/src/k9updatefactor.h @@ -13,24 +13,25 @@ #define K9UPDATEFACTOR_H #include "k9common.h" -#include <qobject.h> -#include <qthread.h> -#include <qmutex.h> +#include <tqobject.h> +#include <tqthread.h> +#include <tqmutex.h> /** @author Jean-Michel PETIT <[email protected]> */ class k9Main; -class k9UpdateFactor : public QObject, public QThread +class k9UpdateFactor : public TQObject, public TQThread { Q_OBJECT + TQ_OBJECT private: - QMutex m_mutex; + TQMutex m_mutex; bool m_restart; protected: void run(); public: - k9UpdateFactor(QObject *parent = 0, const char *name = 0); + k9UpdateFactor(TQObject *tqparent = 0, const char *name = 0); ~k9UpdateFactor(); void updateFactor(); diff --git a/src/kconfigdlg.cpp b/src/kconfigdlg.cpp index 1507939..c5527e5 100644 --- a/src/kconfigdlg.cpp +++ b/src/kconfigdlg.cpp @@ -28,12 +28,12 @@ #include <kguiitem.h> #include "k9config.h" -kConfigDlg::kConfigDlg(QWidget *parent) - : configDlg(parent) +kConfigDlg::kConfigDlg(TQWidget *tqparent) + : configDlg(tqparent) { - QStringList ldev; - QStringList llabels; - QStringList lIO; + TQStringList ldev; + TQStringList llabels; + TQStringList lIO; tblDevices->setColumnWidth(0,150); tblDevices->setColumnWidth(1,210); tblDevices->setColumnWidth(2,40); @@ -45,11 +45,11 @@ kConfigDlg::kConfigDlg(QWidget *parent) llabels=config.getDevicesLabels(); lIO=config.getDevicesIO(); int row=0; - for ( QStringList::Iterator it = ldev.begin(); it != ldev.end(); ++it ) + for ( TQStringList::Iterator it = ldev.begin(); it != ldev.end(); ++it ) { tblDevices->setNumRows(row+1); tblDevices->setText(row,0,(*it)); - QStringList::Iterator it2=llabels.at(row); + TQStringList::Iterator it2=llabels.at(row); tblDevices->setText(row,1,(*it2)); row++; @@ -57,10 +57,10 @@ kConfigDlg::kConfigDlg(QWidget *parent) } for ( int j = 0; j < tblDevices->numRows(); ++j ) { - QCheckTableItem *I = new QCheckTableItem( tblDevices, "" ); - QCheckTableItem *O = new QCheckTableItem( tblDevices, "" ) ; - QStringList::Iterator it=lIO.at(j); - QString c=(*it); + TQCheckTableItem *I = new TQCheckTableItem( tblDevices, "" ); + TQCheckTableItem *O = new TQCheckTableItem( tblDevices, "" ) ; + TQStringList::Iterator it=lIO.at(j); + TQString c=(*it); if((c =="I") || (c =="IO")) I->setChecked(true); if((c =="O") || (c =="IO")) O->setChecked(true); tblDevices->setItem( j, 2, I ); @@ -85,8 +85,8 @@ kConfigDlg::~kConfigDlg() void kConfigDlg::bAddClick() { tblDevices->setNumRows(tblDevices->numRows()+1); - QCheckTableItem *I = new QCheckTableItem( tblDevices, "" ); - QCheckTableItem *O = new QCheckTableItem( tblDevices, "" ) ; + TQCheckTableItem *I = new TQCheckTableItem( tblDevices, "" ); + TQCheckTableItem *O = new TQCheckTableItem( tblDevices, "" ) ; tblDevices->setItem( tblDevices->numRows()-1, 2, I ); tblDevices->setItem( tblDevices->numRows()-1, 3, O); } @@ -103,26 +103,26 @@ void kConfigDlg::bRemoveClick() void kConfigDlg::save() { - QStringList ldev; - QStringList llabels; - QStringList lIO; + TQStringList ldev; + TQStringList llabels; + TQStringList lIO; //KSimpleConfig settings("K9Copy"); k9Config config; ldev.clear(); llabels.clear(); for (int i=0;i<tblDevices->numRows();i++) { - QString c=tblDevices->text(i,0); + TQString c=tblDevices->text(i,0); if (!c.isEmpty()) { - if (QFile::exists(c)) + if (TQFile::exists(c)) { ldev.append(tblDevices->text(i,0)); c=tblDevices->text(i,1); if (c.isEmpty()) c=tblDevices->text(i,0); llabels.append(c); - QCheckTableItem *I = (QCheckTableItem*)tblDevices->item(i,2); - QCheckTableItem *O = (QCheckTableItem*)tblDevices->item(i,3); + TQCheckTableItem *I = (TQCheckTableItem*)tblDevices->item(i,2); + TQCheckTableItem *O = (TQCheckTableItem*)tblDevices->item(i,3); if (O->isChecked() && I->isChecked()) { lIO.append("IO"); diff --git a/src/kconfigdlg.h b/src/kconfigdlg.h index 7dbc016..ce58a0f 100644 --- a/src/kconfigdlg.h +++ b/src/kconfigdlg.h @@ -22,9 +22,9 @@ #include "k9common.h" #include <configDlg.h> -#include <qtable.h> -#include <qstringlist.h> -#include <qfile.h> +#include <tqtable.h> +#include <tqstringlist.h> +#include <tqfile.h> /** @author Jean-Michel PETIT @@ -32,7 +32,7 @@ class kConfigDlg : public configDlg { public: - kConfigDlg(QWidget *parent); + kConfigDlg(TQWidget *tqparent); ~kConfigDlg(); void bAddClick(); diff --git a/src/kviewmpeg2.cpp b/src/kviewmpeg2.cpp index 899f31d..84008e4 100755 --- a/src/kviewmpeg2.cpp +++ b/src/kviewmpeg2.cpp @@ -18,15 +18,15 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include "k9common.h" -#include <qpixmap.h> -#include <qpainter.h> -#include <qlabel.h> -#include <qimage.h> -#include <qpaintdevice.h> -#include <qslider.h> -#include <qapplication.h> -#include <qtoolbutton.h> -#include <qlayout.h> +#include <tqpixmap.h> +#include <tqpainter.h> +#include <tqlabel.h> +#include <tqimage.h> +#include <tqpaintdevice.h> +#include <tqslider.h> +#include <tqapplication.h> +#include <tqtoolbutton.h> +#include <tqlayout.h> #include <string.h> #include <sys/stat.h> @@ -41,21 +41,21 @@ -k9Widget::k9Widget(QWidget *parent):QWidget(parent) { +k9Widget::k9Widget(TQWidget *tqparent):TQWidget(tqparent) { m_image=NULL; } -void k9Widget::setImage(QImage *_image) { +void k9Widget::setImage(TQImage *_image) { m_image=_image; //paintEvent( NULL); - repaint(FALSE); + tqrepaint(FALSE); } -void k9Widget::paintEvent( QPaintEvent *_event) { - setPaletteBackgroundColor(Qt::black); +void k9Widget::paintEvent( TQPaintEvent *_event) { + setPaletteBackgroundColor(TQt::black); int top,left; if (m_image !=NULL) { - QPainter p(this); + TQPainter p(this); double wratio=(double)width()/(double)m_image->width(); double hratio=(double)height()/(double)m_image->height(); double ratio= wratio < hratio ? wratio:hratio; @@ -77,13 +77,13 @@ kViewMPEG2::kViewMPEG2() { m_layout=NULL; bPlay->setPixmap(SmallIcon("player_play")); bStop->setPixmap(SmallIcon("player_stop")); - connect(&m_player , SIGNAL(setPosition(uint32_t)), this, SLOT(setPosition(uint32_t))); - connect(&m_player , SIGNAL(setMax(uint32_t)), this, SLOT(setMax(uint32_t))); - connect(&m_player , SIGNAL(setMin(uint32_t)), this, SLOT(setMin(uint32_t))); + connect(&m_player , TQT_SIGNAL(setPosition(uint32_t)), this, TQT_SLOT(setPosition(uint32_t))); + connect(&m_player , TQT_SIGNAL(setMax(uint32_t)), this, TQT_SLOT(setMax(uint32_t))); + connect(&m_player , TQT_SIGNAL(setMin(uint32_t)), this, TQT_SLOT(setMin(uint32_t))); lockSlider=false; stopped=true; - m_layout=new QGridLayout(label,1,1); + m_layout=new TQGridLayout(label,1,1); #ifdef HAVE_OPENGL @@ -100,7 +100,7 @@ kViewMPEG2::kViewMPEG2() { } m_player.getDecoder()->setUseGL(m_prefUseGL); if (m_prefUseGL) { - connect(m_player.getDecoder() , SIGNAL(ppmReady(uchar *,int,int,int)), this, SLOT(drawppm(uchar *,int,int,int))); + connect(m_player.getDecoder() , TQT_SIGNAL(ppmReady(uchar *,int,int,int)), this, TQT_SLOT(drawppm(uchar *,int,int,int))); m_GLwidget= k9GLWidget::createWidget(label); m_widget=NULL; @@ -112,7 +112,7 @@ kViewMPEG2::kViewMPEG2() { config.save(); } else { - connect(m_player.getDecoder() , SIGNAL(pixmapReady(QImage *)), this, SLOT(drawPixmap(QImage *))); + connect(m_player.getDecoder() , TQT_SIGNAL(pixmapReady(TQImage *)), this, TQT_SLOT(drawPixmap(TQImage *))); m_widget=new k9Widget(label); m_layout->addWidget(m_widget,0,0); @@ -162,24 +162,24 @@ void kViewMPEG2::setMin(uint32_t _position) { /** No descriptions */ -void kViewMPEG2::drawPixmap(QImage *image) { - if (qApp==NULL) +void kViewMPEG2::drawPixmap(TQImage *image) { + if (tqApp==NULL) return; - if (qApp->tryLock()) { + if (tqApp->tryLock()) { m_widget->setImage( image); - if (qApp!=NULL) - qApp->unlock(); + if (tqApp!=NULL) + tqApp->unlock(); } } /** No descriptions */ void kViewMPEG2::drawppm(uchar *_buf,int _width,int _height,int _len) { - if (qApp==NULL) + if (tqApp==NULL) return; -// if (qApp->tryLock()) { +// if (tqApp->tryLock()) { m_GLwidget->setImage(_buf,_width,_height,_len); - // if (qApp !=NULL) - // qApp->unlock(); + // if (tqApp !=NULL) + // tqApp->unlock(); // } else // free(_buf); } @@ -196,13 +196,13 @@ int kViewMPEG2::open (k9DVD *_dvd,k9DVDTitle * title,int chapter) { /** No descriptions */ -void kViewMPEG2::setError(const QString & err) { +void kViewMPEG2::setError(const TQString & err) { error=true; errMsg=err; } -void kViewMPEG2::resizeEvent(QResizeEvent *_event) {} +void kViewMPEG2::resizeEvent(TQResizeEvent *_event) {} void kViewMPEG2::bStopClick() { m_player.stop(); @@ -217,7 +217,7 @@ void kViewMPEG2::sliderReleased() { } -void kViewMPEG2::closeEvent( QCloseEvent* ce ) { +void kViewMPEG2::closeEvent( TQCloseEvent* ce ) { stopped=true; ce->accept(); return; diff --git a/src/kviewmpeg2.h b/src/kviewmpeg2.h index bd21253..1c0b58b 100755 --- a/src/kviewmpeg2.h +++ b/src/kviewmpeg2.h @@ -23,13 +23,13 @@ #include "k9dvdtitle.h" -#include <qthread.h> +#include <tqthread.h> #include <viewmpeg2.h> -#include <qwidget.h> -#include <qstring.h> -#include <qevent.h> -#include <qmutex.h> -#include <qgl.h> +#include <tqwidget.h> +#include <tqstring.h> +#include <tqevent.h> +#include <tqmutex.h> +#include <tqgl.h> #include "k9plaympeg2.h" #include "k9glwidget.h" #include "k9mplayer.h" @@ -38,57 +38,59 @@ *@author */ -class k9Widget : public QWidget { +class k9Widget : public TQWidget { Q_OBJECT + TQ_OBJECT protected: - QImage *m_image; - void paintEvent ( QPaintEvent * _event); + TQImage *m_image; + void paintEvent ( TQPaintEvent * _event); public: - k9Widget (QWidget *_parent); - void setImage(QImage *_image); + k9Widget (TQWidget *_parent); + void setImage(TQImage *_image); }; class kViewMPEG2 : public ViewMPEG2 { Q_OBJECT + TQ_OBJECT public: kViewMPEG2(); ~kViewMPEG2(); private: - QMutex mutex; + TQMutex mutex; k9DVDTitle *m_title; - QString dev; + TQString dev; int selTitle; unsigned long idxLect; bool pause; bool lockSlider; - QImage img; + TQImage img; bool stopped; void sliderReleased(); /** No descriptions */ void sliderPressed(); void lock(); void unlock(); - QString file; - QString errMsg; + TQString file; + TQString errMsg; bool error; - QString length; + TQString length; uint startSector; uint lastSector; k9PlayMPEG2 m_player; - QGridLayout *m_layout; + TQGridLayout *m_layout; bool m_prefUseGL; k9GLWidget *m_GLwidget; k9Widget *m_widget; protected: - void closeEvent( QCloseEvent* ); - void resizeEvent ( QResizeEvent * ); + void closeEvent( TQCloseEvent* ); + void resizeEvent ( TQResizeEvent * ); public slots: // Public slots /** No descriptions */ int open (k9DVD *_dvd,k9DVDTitle * title,int chapter); - void drawPixmap( QImage *image); + void drawPixmap( TQImage *image); void drawppm(uchar *_buf,int _width,int _height,int _len); - void setError(const QString & err); + void setError(const TQString & err); void setPosition(uint32_t _position); void setMax(uint32_t _position); void setMin(uint32_t _position); diff --git a/src/langselectw.cpp b/src/langselectw.cpp index 357acfd..8faa67d 100644 --- a/src/langselectw.cpp +++ b/src/langselectw.cpp @@ -9,14 +9,14 @@ #include "langselectw.h" -#include <qvariant.h> -#include <qheader.h> -#include <qlistview.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qimage.h> -#include <qpixmap.h> +#include <tqvariant.h> +#include <tqheader.h> +#include <tqlistview.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> +#include <tqimage.h> +#include <tqpixmap.h> static const unsigned char img0_langselectw[] = { 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, @@ -74,31 +74,31 @@ static const unsigned char img0_langselectw[] = { /* - * Constructs a langSelect as a child of 'parent', with the + * Constructs a langSelect as a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. */ -langSelect::langSelect( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +langSelect::langSelect( TQWidget* tqparent, const char* name, WFlags fl ) + : TQWidget( tqparent, name, fl ) { - QImage img; + TQImage img; img.loadFromData( img0_langselectw, sizeof( img0_langselectw ), "PNG" ); image0 = img; if ( !name ) setName( "langSelect" ); setIcon( image0 ); - langSelectLayout = new QGridLayout( this, 1, 1, 2, 6, "langSelectLayout"); + langSelectLayout = new TQGridLayout( this, 1, 1, 2, 6, "langSelectLayout"); - lvLanguages = new QListView( this, "lvLanguages" ); + lvLanguages = new TQListView( this, "lvLanguages" ); lvLanguages->addColumn( tr2i18n( "Languages" ) ); lvLanguages->header()->setClickEnabled( FALSE, lvLanguages->header()->count() - 1 ); - lvLanguages->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)7, 0, 0, lvLanguages->sizePolicy().hasHeightForWidth() ) ); - lvLanguages->setMinimumSize( QSize( 208, 0 ) ); - lvLanguages->setHScrollBarMode( QListView::AlwaysOff ); - lvLanguages->setResizeMode( QListView::LastColumn ); + lvLanguages->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)7, 0, 0, lvLanguages->sizePolicy().hasHeightForWidth() ) ); + lvLanguages->setMinimumSize( TQSize( 208, 0 ) ); + lvLanguages->setHScrollBarMode( TQListView::AlwaysOff ); + lvLanguages->setResizeMode( TQListView::LastColumn ); langSelectLayout->addWidget( lvLanguages, 0, 0 ); languageChange(); - resize( QSize(600, 480).expandedTo(minimumSizeHint()) ); + resize( TQSize(600, 480).expandedTo(tqminimumSizeHint()) ); clearWState( WState_Polished ); } @@ -107,7 +107,7 @@ langSelect::langSelect( QWidget* parent, const char* name, WFlags fl ) */ langSelect::~langSelect() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* diff --git a/src/langselectw.ui b/src/langselectw.ui index 943d72a..fda7cb3 100644 --- a/src/langselectw.ui +++ b/src/langselectw.ui @@ -1,10 +1,10 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>langSelect</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>langSelect</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -25,7 +25,7 @@ <property name="margin"> <number>2</number> </property> - <widget class="QListView" row="0" column="0"> + <widget class="TQListView" row="0" column="0"> <column> <property name="text"> <string>Languages</string> @@ -48,7 +48,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>208</width> <height>0</height> @@ -68,5 +68,5 @@ <data format="PNG" length="608">89504e470d0a1a0a0000000d4948445200000011000000120806000000bdf935540000022749444154388d9dd24f48d36118c0f1efef97ca0affe582220c9a825966ed20251d86512081c1829da2c33a64070fa5d0a50e5b5d0a42727508ba48073b49185114441b24b59ce5241029643041f1b77fbfaded37759b6f87e5dc3f5df4c203efe1793eefc3f33e9210024992283e1e30d7180cb63a93c928d7d7b301f8c6c65ce7c2e1b39b394288a24b21605c309984f07884989ecec5c2d09078093df9881002b94400d260ded7d707a15041b4f4f6a26b6e7e549cbf1de24ab9dd100c96c4718bc5f81cac159114340a4dcb16060205c8218381fdededb6a7d0b8995f05f075fc61a4e6db0b57fcfecc6c0a1aea743a6b536b6bb610a068f09d5d5d877fcdcfdf04ec39e460621cddc50be65d33c25cabd553d5d282944e67bbf80bacb8dd78bd5e35035ea1d723c18d02448b461d0d72d216e839c0dea93d108b6d3d2b4924fd7e3e78bd131a5ced079550088081fc99ac67e411e5c7a4babbfb24d1cc72b683bc58541412e0e807b5dc0c6580cec139351c4a3874f26fc2a7f4254854d3b80eae7240c1ef6c6418599efdacd69e3f4db83aba85280ac9d5d5edea0b91ee3b73aa12581f94630b2c5d3a0191084422c4e271e6d7d62676548ad7fefbf031dfd2a44dbc3136f9de82f3198c0ee7ed4471ad10a214797deba8d5ffeab2703eb6f8767c7d2704e0a3bdc3179e792046afb55bff0529bbf64a3033a8fefc42db1993ad523739addc797fbbcd1998ba279e5c3962ffaf4e001657e4bbee779f08567734546ae40f517b2c24c5d9542e0000000049454e44ae426082</data> </image> </images> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/src/main.cpp b/src/main.cpp index 2158608..ee375b4 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -84,28 +84,28 @@ int main(int argc, char **argv) { // no session.. just start up normally KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); - QString TitleNumber(args->getOption("dvdtitle")); - QString InputOptionArg( args->getOption("input")); - QString OutputOptionArg( args->getOption("output")); - QString startSectorArg(args->getOption("startsector")); - QString endSectorArg(args->getOption("endsector")); - QString audioFilterArg(args->getOption("audiofilter")); - QString subpictureFilterArg(args->getOption("subpicturefilter")); - QString vampsFactorArg(args->getOption("vampsfactor")); - QString inputSizeArg(args->getOption("inputsize")); - QString chapterArg(args->getOption("chapter")); - QString cellArg(args->getOption("cell")); - QString injectArg(args->getOption("inject")); - QString totalSizeArg(args->getOption("totalsize")); - QString dvdSizeArg(args->getOption("dvdsize")); - QString chapterSizeArg(args->getOption("chaptersize")); - QString chapterListArg(args->getOption("chapterlist")); + TQString TitleNumber(args->getOption("dvdtitle")); + TQString InputOptionArg( args->getOption("input")); + TQString OutputOptionArg( args->getOption("output")); + TQString startSectorArg(args->getOption("startsector")); + TQString endSectorArg(args->getOption("endsector")); + TQString audioFilterArg(args->getOption("audiofilter")); + TQString subpictureFilterArg(args->getOption("subpicturefilter")); + TQString vampsFactorArg(args->getOption("vampsfactor")); + TQString inputSizeArg(args->getOption("inputsize")); + TQString chapterArg(args->getOption("chapter")); + TQString cellArg(args->getOption("cell")); + TQString injectArg(args->getOption("inject")); + TQString totalSizeArg(args->getOption("totalsize")); + TQString dvdSizeArg(args->getOption("dvdsize")); + TQString chapterSizeArg(args->getOption("chaptersize")); + TQString chapterListArg(args->getOption("chapterlist")); bool ffactor=args->isSet("ffactor"); bool play= args->isSet("play"); bool redirect = args->isSet("redirect"); if (play) { k9play player; - player.setinitStatus( args->isSet("initstatus")); + player.setinittqStatus( args->isSet("initstatus")); player.setcontinue( args->isSet("continue")); player.setfirstPass(args->isSet("firstpass")); player.setuseCache(args->isSet("usecache")); diff --git a/src/mencoderCmdGen.cpp b/src/mencoderCmdGen.cpp index 93701c5..744e527 100644 --- a/src/mencoderCmdGen.cpp +++ b/src/mencoderCmdGen.cpp @@ -9,38 +9,38 @@ #include "mencoderCmdGen.h" -#include <qvariant.h> +#include <tqvariant.h> #include <kpushbutton.h> -#include <qheader.h> -#include <qlistview.h> -#include <qwidgetstack.h> -#include <qwidget.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qimage.h> -#include <qpixmap.h> +#include <tqheader.h> +#include <tqlistview.h> +#include <tqwidgetstack.h> +#include <tqwidget.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> +#include <tqimage.h> +#include <tqpixmap.h> #include "kpushbutton.h" /* - * Constructs a MyDialog1 as a child of 'parent', with the + * Constructs a MyDialog1 as a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ -MyDialog1::MyDialog1( QWidget* parent, const char* name, bool modal, WFlags fl ) - : QDialog( parent, name, modal, fl ) +MyDialog1::MyDialog1( TQWidget* tqparent, const char* name, bool modal, WFlags fl ) + : TQDialog( tqparent, name, modal, fl ) { if ( !name ) setName( "MyDialog1" ); setSizeGripEnabled( TRUE ); - MyDialog1Layout = new QGridLayout( this, 1, 1, 11, 6, "MyDialog1Layout"); + MyDialog1Layout = new TQGridLayout( this, 1, 1, 11, 6, "MyDialog1Layout"); - Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); - Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); - Layout1->addItem( Horizontal_Spacing2 ); + Layout1 = new TQHBoxLayout( 0, 0, 6, "Layout1"); + Horizontal_Spacing2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); + Layout1->addItem(Horizontal_Spacing2 ); buttonOk = new KPushButton( this, "buttonOk" ); buttonOk->setAutoDefault( TRUE ); @@ -55,30 +55,30 @@ MyDialog1::MyDialog1( QWidget* parent, const char* name, bool modal, WFlags fl ) MyDialog1Layout->addMultiCellLayout( Layout1, 1, 1, 0, 1 ); - listView = new QListView( this, "listView" ); - listView->addColumn( QString::null ); + listView = new TQListView( this, "listView" ); + listView->addColumn( TQString() ); listView->header()->setClickEnabled( FALSE, listView->header()->count() - 1 ); listView->header()->setResizeEnabled( FALSE, listView->header()->count() - 1 ); - listView->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)7, 0, 0, listView->sizePolicy().hasHeightForWidth() ) ); - listView->setMinimumSize( QSize( 200, 0 ) ); - listView->setResizeMode( QListView::LastColumn ); + listView->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, listView->sizePolicy().hasHeightForWidth() ) ); + listView->setMinimumSize( TQSize( 200, 0 ) ); + listView->setResizeMode( TQListView::LastColumn ); MyDialog1Layout->addWidget( listView, 0, 0 ); - wsOptions = new QWidgetStack( this, "wsOptions" ); + wsOptions = new TQWidgetStack( this, "wsOptions" ); - WStackPage = new QWidget( wsOptions, "WStackPage" ); + WStackPage = new TQWidget( wsOptions, "WStackPage" ); wsOptions->addWidget( WStackPage, 0 ); MyDialog1Layout->addWidget( wsOptions, 0, 1 ); languageChange(); - resize( QSize(655, 498).expandedTo(minimumSizeHint()) ); + resize( TQSize(655, 498).expandedTo(tqminimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections - connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); - connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); - connect( listView, SIGNAL( currentChanged(QListViewItem*) ), this, SLOT( listViewCurrentChanged(QListViewItem*) ) ); + connect( buttonOk, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) ); + connect( buttonCancel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( reject() ) ); + connect( listView, TQT_SIGNAL( currentChanged(TQListViewItem*) ), this, TQT_SLOT( listViewCurrentChanged(TQListViewItem*) ) ); } /* @@ -86,7 +86,7 @@ MyDialog1::MyDialog1( QWidget* parent, const char* name, bool modal, WFlags fl ) */ MyDialog1::~MyDialog1() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -96,34 +96,34 @@ MyDialog1::~MyDialog1() void MyDialog1::languageChange() { setCaption( tr2i18n( "MEncoder options" ) ); - listView->header()->setLabel( 0, QString::null ); + listView->header()->setLabel( 0, TQString() ); listView->clear(); - QListViewItem * item_2 = new QListViewItem( listView, 0 ); + TQListViewItem * item_2 = new TQListViewItem( listView, 0 ); item_2->setOpen( TRUE ); - QListViewItem * item = new QListViewItem( item_2, 0 ); + TQListViewItem * item = new TQListViewItem( item_2, 0 ); item->setText( 0, tr2i18n( "faac" ) ); item_2->setOpen( TRUE ); - item = new QListViewItem( item_2, item ); + item = new TQListViewItem( item_2, item ); item->setText( 0, tr2i18n( "lavc" ) ); item_2->setText( 0, tr2i18n( "Audio Codec" ) ); - QListViewItem * item_3 = new QListViewItem( listView, item_2 ); + TQListViewItem * item_3 = new TQListViewItem( listView, item_2 ); item_3->setOpen( TRUE ); - item = new QListViewItem( item_3, item_2 ); + item = new TQListViewItem( item_3, item_2 ); item->setText( 0, tr2i18n( "x264" ) ); item_3->setOpen( TRUE ); - item = new QListViewItem( item_3, item ); + item = new TQListViewItem( item_3, item ); item->setText( 0, tr2i18n( "xvid" ) ); item_3->setOpen( TRUE ); - item = new QListViewItem( item_3, item ); + item = new TQListViewItem( item_3, item ); item->setText( 0, tr2i18n( "lavc" ) ); item_3->setText( 0, tr2i18n( "Video Codec" ) ); } -void MyDialog1::listViewCurrentChanged(QListViewItem*) +void MyDialog1::listViewCurrentChanged(TQListViewItem*) { - qWarning( "MyDialog1::listViewCurrentChanged(QListViewItem*): Not implemented yet" ); + qWarning( "MyDialog1::listViewCurrentChanged(TQListViewItem*): Not implemented yet" ); } #include "mencoderCmdGen.moc" diff --git a/src/mencoderCmdGen.ui b/src/mencoderCmdGen.ui index 219764e..bf1e6f8 100644 --- a/src/mencoderCmdGen.ui +++ b/src/mencoderCmdGen.ui @@ -1,10 +1,10 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>MyDialog1</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>MyDialog1</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -22,7 +22,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -46,7 +46,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>20</height> @@ -80,7 +80,7 @@ </widget> </hbox> </widget> - <widget class="QListView" row="0" column="0"> + <widget class="TQListView" row="0" column="0"> <column> <property name="text"> <string></string> @@ -159,7 +159,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>200</width> <height>0</height> @@ -169,11 +169,11 @@ <enum>LastColumn</enum> </property> </widget> - <widget class="QWidgetStack" row="0" column="1"> + <widget class="TQWidgetStack" row="0" column="1"> <property name="name"> <cstring>wsOptions</cstring> </property> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>WStackPage</cstring> </property> @@ -199,15 +199,15 @@ </connection> <connection> <sender>listView</sender> - <signal>currentChanged(QListViewItem*)</signal> + <signal>currentChanged(TQListViewItem*)</signal> <receiver>MyDialog1</receiver> - <slot>listViewCurrentChanged(QListViewItem*)</slot> + <slot>listViewCurrentChanged(TQListViewItem*)</slot> </connection> </connections> -<slots> - <slot>listViewCurrentChanged(QListViewItem*)</slot> -</slots> -<layoutdefaults spacing="6" margin="11"/> +<Q_SLOTS> + <slot>listViewCurrentChanged(TQListViewItem*)</slot> +</Q_SLOTS> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>kpushbutton.h</includehint> <includehint>kpushbutton.h</includehint> diff --git a/src/playbackoptionsw.cpp b/src/playbackoptionsw.cpp index a6a4860..66de7d4 100644 --- a/src/playbackoptionsw.cpp +++ b/src/playbackoptionsw.cpp @@ -9,19 +9,19 @@ #include "playbackoptionsw.h" -#include <qvariant.h> -#include <qpushbutton.h> -#include <qcheckbox.h> -#include <qframe.h> -#include <qlistbox.h> +#include <tqvariant.h> +#include <tqpushbutton.h> +#include <tqcheckbox.h> +#include <tqframe.h> +#include <tqlistbox.h> #include <kpushbutton.h> -#include <qlabel.h> -#include <qcombobox.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qimage.h> -#include <qpixmap.h> +#include <tqlabel.h> +#include <tqcombobox.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> +#include <tqimage.h> +#include <tqpixmap.h> #include "kpushbutton.h" static const unsigned char img0_playbackoptionsw[] = { @@ -100,115 +100,115 @@ static const unsigned char img0_playbackoptionsw[] = { /* - * Constructs a PlaybackOptionsw as a child of 'parent', with the + * Constructs a PlaybackOptionsw as a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. */ -PlaybackOptionsw::PlaybackOptionsw( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +PlaybackOptionsw::PlaybackOptionsw( TQWidget* tqparent, const char* name, WFlags fl ) + : TQWidget( tqparent, name, fl ) { - QImage img; + TQImage img; img.loadFromData( img0_playbackoptionsw, sizeof( img0_playbackoptionsw ), "PNG" ); image0 = img; if ( !name ) setName( "PlaybackOptionsw" ); setIcon( image0 ); - PlaybackOptionswLayout = new QGridLayout( this, 1, 1, 2, 6, "PlaybackOptionswLayout"); + PlaybackOptionswLayout = new TQGridLayout( this, 1, 1, 2, 6, "PlaybackOptionswLayout"); - ckMenu = new QCheckBox( this, "ckMenu" ); + ckMenu = new TQCheckBox( this, "ckMenu" ); PlaybackOptionswLayout->addWidget( ckMenu, 1, 0 ); - frPlayback = new QFrame( this, "frPlayback" ); + frPlayback = new TQFrame( this, "frPlayback" ); frPlayback->setEnabled( FALSE ); - frPlayback->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, frPlayback->sizePolicy().hasHeightForWidth() ) ); - frPlayback->setFrameShape( QFrame::NoFrame ); - frPlayback->setFrameShadow( QFrame::Sunken ); - frPlaybackLayout = new QGridLayout( frPlayback, 1, 1, 0, 2, "frPlaybackLayout"); + frPlayback->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, frPlayback->sizePolicy().hasHeightForWidth() ) ); + frPlayback->setFrameShape( TQFrame::NoFrame ); + frPlayback->setFrameShadow( TQFrame::Sunken ); + frPlaybackLayout = new TQGridLayout( frPlayback, 1, 1, 0, 2, "frPlaybackLayout"); - lbSequence = new QListBox( frPlayback, "lbSequence" ); - lbSequence->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, lbSequence->sizePolicy().hasHeightForWidth() ) ); + lbSequence = new TQListBox( frPlayback, "lbSequence" ); + lbSequence->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, lbSequence->sizePolicy().hasHeightForWidth() ) ); frPlaybackLayout->addMultiCellWidget( lbSequence, 1, 5, 0, 0 ); - spacer5 = new QSpacerItem( 20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding ); + spacer5 = new TQSpacerItem( 20, 31, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); frPlaybackLayout->addMultiCell( spacer5, 0, 1, 1, 1 ); bSeqUp = new KPushButton( frPlayback, "bSeqUp" ); - bSeqUp->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, bSeqUp->sizePolicy().hasHeightForWidth() ) ); - bSeqUp->setMinimumSize( QSize( 21, 21 ) ); - bSeqUp->setMaximumSize( QSize( 21, 21 ) ); + bSeqUp->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bSeqUp->sizePolicy().hasHeightForWidth() ) ); + bSeqUp->setMinimumSize( TQSize( 21, 21 ) ); + bSeqUp->setMaximumSize( TQSize( 21, 21 ) ); frPlaybackLayout->addMultiCellWidget( bSeqUp, 2, 2, 1, 2 ); bSeqDown = new KPushButton( frPlayback, "bSeqDown" ); - bSeqDown->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, bSeqDown->sizePolicy().hasHeightForWidth() ) ); - bSeqDown->setMinimumSize( QSize( 21, 21 ) ); - bSeqDown->setMaximumSize( QSize( 21, 21 ) ); + bSeqDown->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bSeqDown->sizePolicy().hasHeightForWidth() ) ); + bSeqDown->setMinimumSize( TQSize( 21, 21 ) ); + bSeqDown->setMaximumSize( TQSize( 21, 21 ) ); frPlaybackLayout->addMultiCellWidget( bSeqDown, 4, 4, 1, 2 ); - spacer7 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Fixed ); + spacer7 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Fixed ); frPlaybackLayout->addItem( spacer7, 3, 1 ); - textLabel4 = new QLabel( frPlayback, "textLabel4" ); - textLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, textLabel4->sizePolicy().hasHeightForWidth() ) ); - QFont textLabel4_font( textLabel4->font() ); + textLabel4 = new TQLabel( frPlayback, "textLabel4" ); + textLabel4->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, textLabel4->sizePolicy().hasHeightForWidth() ) ); + TQFont textLabel4_font( textLabel4->font() ); textLabel4_font.setBold( TRUE ); textLabel4->setFont( textLabel4_font ); frPlaybackLayout->addWidget( textLabel4, 0, 0 ); - frame4 = new QFrame( frPlayback, "frame4" ); - frame4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, frame4->sizePolicy().hasHeightForWidth() ) ); - frame4->setMinimumSize( QSize( 211, 100 ) ); - frame4->setFrameShape( QFrame::NoFrame ); - frame4->setFrameShadow( QFrame::Raised ); - frame4Layout = new QGridLayout( frame4, 1, 1, 0, 0, "frame4Layout"); + frame4 = new TQFrame( frPlayback, "frame4" ); + frame4->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, frame4->sizePolicy().hasHeightForWidth() ) ); + frame4->setMinimumSize( TQSize( 211, 100 ) ); + frame4->setFrameShape( TQFrame::NoFrame ); + frame4->setFrameShadow( TQFrame::Raised ); + frame4Layout = new TQGridLayout( frame4, 1, 1, 0, 0, "frame4Layout"); - textLabel1 = new QLabel( frame4, "textLabel1" ); - textLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) ); - QFont textLabel1_font( textLabel1->font() ); + textLabel1 = new TQLabel( frame4, "textLabel1" ); + textLabel1->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) ); + TQFont textLabel1_font( textLabel1->font() ); textLabel1_font.setBold( TRUE ); textLabel1->setFont( textLabel1_font ); frame4Layout->addMultiCellWidget( textLabel1, 0, 0, 0, 2 ); - cbDefSub = new QComboBox( FALSE, frame4, "cbDefSub" ); - cbDefSub->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, cbDefSub->sizePolicy().hasHeightForWidth() ) ); + cbDefSub = new TQComboBox( FALSE, frame4, "cbDefSub" ); + cbDefSub->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, cbDefSub->sizePolicy().hasHeightForWidth() ) ); frame4Layout->addWidget( cbDefSub, 2, 2 ); - textLabel3 = new QLabel( frame4, "textLabel3" ); - textLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, textLabel3->sizePolicy().hasHeightForWidth() ) ); + textLabel3 = new TQLabel( frame4, "textLabel3" ); + textLabel3->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, textLabel3->sizePolicy().hasHeightForWidth() ) ); frame4Layout->addWidget( textLabel3, 2, 0 ); - cbDefAudio = new QComboBox( FALSE, frame4, "cbDefAudio" ); - cbDefAudio->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, cbDefAudio->sizePolicy().hasHeightForWidth() ) ); + cbDefAudio = new TQComboBox( FALSE, frame4, "cbDefAudio" ); + cbDefAudio->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, cbDefAudio->sizePolicy().hasHeightForWidth() ) ); frame4Layout->addWidget( cbDefAudio, 1, 2 ); - textLabel2_3 = new QLabel( frame4, "textLabel2_3" ); - textLabel2_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, textLabel2_3->sizePolicy().hasHeightForWidth() ) ); + textLabel2_3 = new TQLabel( frame4, "textLabel2_3" ); + textLabel2_3->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, textLabel2_3->sizePolicy().hasHeightForWidth() ) ); frame4Layout->addWidget( textLabel2_3, 1, 0 ); - spacer4 = new QSpacerItem( 16, 21, QSizePolicy::Fixed, QSizePolicy::Minimum ); + spacer4 = new TQSpacerItem( 16, 21, TQSizePolicy::Fixed, TQSizePolicy::Minimum ); frame4Layout->addMultiCell( spacer4, 1, 2, 1, 1 ); frPlaybackLayout->addWidget( frame4, 6, 0 ); - spacer6 = new QSpacerItem( 20, 280, QSizePolicy::Minimum, QSizePolicy::Expanding ); + spacer6 = new TQSpacerItem( 20, 280, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); frPlaybackLayout->addMultiCell( spacer6, 5, 6, 1, 1 ); PlaybackOptionswLayout->addWidget( frPlayback, 0, 0 ); languageChange(); - resize( QSize(328, 491).expandedTo(minimumSizeHint()) ); + resize( TQSize(328, 491).expandedTo(tqminimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections - connect( bSeqDown, SIGNAL( clicked() ), this, SLOT( bSeqDownClick() ) ); - connect( bSeqUp, SIGNAL( clicked() ), this, SLOT( bSeqUpClick() ) ); - connect( ckMenu, SIGNAL( clicked() ), this, SLOT( ckMenuClick() ) ); - connect( cbDefAudio, SIGNAL( activated(int) ), this, SLOT( cbDefAudioActivated(int) ) ); - connect( cbDefSub, SIGNAL( activated(int) ), this, SLOT( cbDefSubActivated(int) ) ); - connect( lbSequence, SIGNAL( currentChanged(QListBoxItem*) ), this, SLOT( lbSequenceChanged(QListBoxItem*) ) ); + connect( bSeqDown, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bSeqDownClick() ) ); + connect( bSeqUp, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bSeqUpClick() ) ); + connect( ckMenu, TQT_SIGNAL( clicked() ), this, TQT_SLOT( ckMenuClick() ) ); + connect( cbDefAudio, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( cbDefAudioActivated(int) ) ); + connect( cbDefSub, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( cbDefSubActivated(int) ) ); + connect( lbSequence, TQT_SIGNAL( currentChanged(TQListBoxItem*) ), this, TQT_SLOT( lbSequenceChanged(TQListBoxItem*) ) ); } /* @@ -216,7 +216,7 @@ PlaybackOptionsw::PlaybackOptionsw( QWidget* parent, const char* name, WFlags fl */ PlaybackOptionsw::~PlaybackOptionsw() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -227,9 +227,9 @@ void PlaybackOptionsw::languageChange() { setCaption( tr2i18n( "DVD playback options" ) ); ckMenu->setText( tr2i18n( "&Keep original menus" ) ); - ckMenu->setAccel( QKeySequence( tr2i18n( "Alt+K" ) ) ); - bSeqUp->setText( QString::null ); - bSeqDown->setText( QString::null ); + ckMenu->setAccel( TQKeySequence( tr2i18n( "Alt+K" ) ) ); + bSeqUp->setText( TQString() ); + bSeqDown->setText( TQString() ); textLabel4->setText( tr2i18n( "Selected Titles" ) ); textLabel1->setText( tr2i18n( "Default language" ) ); textLabel3->setText( tr2i18n( "Subtitle" ) ); @@ -261,9 +261,9 @@ void PlaybackOptionsw::bSeqDownClick() qWarning( "PlaybackOptionsw::bSeqDownClick(): Not implemented yet" ); } -void PlaybackOptionsw::lbSequenceChanged(QListBoxItem*) +void PlaybackOptionsw::lbSequenceChanged(TQListBoxItem*) { - qWarning( "PlaybackOptionsw::lbSequenceChanged(QListBoxItem*): Not implemented yet" ); + qWarning( "PlaybackOptionsw::lbSequenceChanged(TQListBoxItem*): Not implemented yet" ); } void PlaybackOptionsw::cbDefAudioActivated(int) diff --git a/src/playbackoptionsw.ui b/src/playbackoptionsw.ui index 8f3105e..9d0864a 100644 --- a/src/playbackoptionsw.ui +++ b/src/playbackoptionsw.ui @@ -1,10 +1,10 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>PlaybackOptionsw</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>PlaybackOptionsw</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -25,7 +25,7 @@ <property name="margin"> <number>2</number> </property> - <widget class="QCheckBox" row="1" column="0"> + <widget class="TQCheckBox" row="1" column="0"> <property name="name"> <cstring>ckMenu</cstring> </property> @@ -36,7 +36,7 @@ <string>Alt+K</string> </property> </widget> - <widget class="QFrame" row="0" column="0"> + <widget class="TQFrame" row="0" column="0"> <property name="name"> <cstring>frPlayback</cstring> </property> @@ -67,7 +67,7 @@ <property name="spacing"> <number>2</number> </property> - <widget class="QListBox" row="1" column="0" rowspan="5" colspan="1"> + <widget class="TQListBox" row="1" column="0" rowspan="5" colspan="1"> <property name="name"> <cstring>lbSequence</cstring> </property> @@ -90,7 +90,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>31</height> @@ -109,13 +109,13 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>21</width> <height>21</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>21</width> <height>21</height> @@ -137,13 +137,13 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>21</width> <height>21</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>21</width> <height>21</height> @@ -163,14 +163,14 @@ <property name="sizeType"> <enum>Fixed</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>16</height> </size> </property> </spacer> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel4</cstring> </property> @@ -191,7 +191,7 @@ <string>Selected Titles</string> </property> </widget> - <widget class="QFrame" row="6" column="0"> + <widget class="TQFrame" row="6" column="0"> <property name="name"> <cstring>frame4</cstring> </property> @@ -203,7 +203,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>211</width> <height>100</height> @@ -225,7 +225,7 @@ <property name="spacing"> <number>0</number> </property> - <widget class="QLabel" row="0" column="0" rowspan="1" colspan="3"> + <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -246,7 +246,7 @@ <string>Default language</string> </property> </widget> - <widget class="QComboBox" row="2" column="2"> + <widget class="TQComboBox" row="2" column="2"> <property name="name"> <cstring>cbDefSub</cstring> </property> @@ -259,7 +259,7 @@ </sizepolicy> </property> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>textLabel3</cstring> </property> @@ -275,7 +275,7 @@ <string>Subtitle</string> </property> </widget> - <widget class="QComboBox" row="1" column="2"> + <widget class="TQComboBox" row="1" column="2"> <property name="name"> <cstring>cbDefAudio</cstring> </property> @@ -288,7 +288,7 @@ </sizepolicy> </property> </widget> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>textLabel2_3</cstring> </property> @@ -314,7 +314,7 @@ <property name="sizeType"> <enum>Fixed</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>16</width> <height>21</height> @@ -333,7 +333,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>280</height> @@ -382,22 +382,22 @@ </connection> <connection> <sender>lbSequence</sender> - <signal>currentChanged(QListBoxItem*)</signal> + <signal>currentChanged(TQListBoxItem*)</signal> <receiver>PlaybackOptionsw</receiver> - <slot>lbSequenceChanged(QListBoxItem*)</slot> + <slot>lbSequenceChanged(TQListBoxItem*)</slot> </connection> </connections> -<slots> +<Q_SLOTS> <slot>cbStartActivated( int )</slot> <slot>cbTitleActivated( int )</slot> <slot>ckMenuClick()</slot> <slot>bSeqUpClick()</slot> <slot>bSeqDownClick()</slot> - <slot>lbSequenceChanged(QListBoxItem*)</slot> + <slot>lbSequenceChanged(TQListBoxItem*)</slot> <slot>cbDefAudioActivated(int)</slot> <slot>cbDefSubActivated(int)</slot> -</slots> -<layoutdefaults spacing="6" margin="11"/> +</Q_SLOTS> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>kpushbutton.h</includehint> <includehint>kpushbutton.h</includehint> diff --git a/src/prefAuthor.cpp b/src/prefAuthor.cpp index f43d619..98d3d36 100644 --- a/src/prefAuthor.cpp +++ b/src/prefAuthor.cpp @@ -9,75 +9,75 @@ #include "prefAuthor.h" -#include <qvariant.h> -#include <qpushbutton.h> -#include <qgroupbox.h> -#include <qcombobox.h> -#include <qlabel.h> +#include <tqvariant.h> +#include <tqpushbutton.h> +#include <tqgroupbox.h> +#include <tqcombobox.h> +#include <tqlabel.h> #include <knuminput.h> #include <kpushbutton.h> #include <kcolorbutton.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> #include "knuminput.h" #include "kpushbutton.h" #include "kcolorbutton.h" /* - * Constructs a prefAuthor as a child of 'parent', with the + * Constructs a prefAuthor as a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. */ -prefAuthor::prefAuthor( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +prefAuthor::prefAuthor( TQWidget* tqparent, const char* name, WFlags fl ) + : TQWidget( tqparent, name, fl ) { if ( !name ) setName( "prefAuthor" ); - prefAuthorLayout = new QGridLayout( this, 1, 1, 11, 6, "prefAuthorLayout"); + prefAuthorLayout = new TQGridLayout( this, 1, 1, 11, 6, "prefAuthorLayout"); - groupBox1 = new QGroupBox( this, "groupBox1" ); + groupBox1 = new TQGroupBox( this, "groupBox1" ); groupBox1->setColumnLayout(0, Qt::Vertical ); - groupBox1->layout()->setSpacing( 6 ); - groupBox1->layout()->setMargin( 11 ); - groupBox1Layout = new QGridLayout( groupBox1->layout() ); - groupBox1Layout->setAlignment( Qt::AlignTop ); + groupBox1->tqlayout()->setSpacing( 6 ); + groupBox1->tqlayout()->setMargin( 11 ); + groupBox1Layout = new TQGridLayout( groupBox1->tqlayout() ); + groupBox1Layout->tqsetAlignment( TQt::AlignTop ); - cbAudioFormat = new QComboBox( FALSE, groupBox1, "cbAudioFormat" ); + cbAudioFormat = new TQComboBox( FALSE, groupBox1, "cbAudioFormat" ); groupBox1Layout->addWidget( cbAudioFormat, 0, 1 ); - cbAudioBitrate = new QComboBox( FALSE, groupBox1, "cbAudioBitrate" ); + cbAudioBitrate = new TQComboBox( FALSE, groupBox1, "cbAudioBitrate" ); groupBox1Layout->addWidget( cbAudioBitrate, 1, 1 ); - textLabel1 = new QLabel( groupBox1, "textLabel1" ); + textLabel1 = new TQLabel( groupBox1, "textLabel1" ); groupBox1Layout->addWidget( textLabel1, 0, 0 ); - textLabel2 = new QLabel( groupBox1, "textLabel2" ); + textLabel2 = new TQLabel( groupBox1, "textLabel2" ); groupBox1Layout->addWidget( textLabel2, 1, 0 ); - spacer1 = new QSpacerItem( 151, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer1 = new TQSpacerItem( 151, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); groupBox1Layout->addMultiCell( spacer1, 0, 1, 2, 2 ); prefAuthorLayout->addWidget( groupBox1, 0, 0 ); - spacer3 = new QSpacerItem( 20, 60, QSizePolicy::Minimum, QSizePolicy::Expanding ); + spacer3 = new TQSpacerItem( 20, 60, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); prefAuthorLayout->addItem( spacer3, 2, 0 ); - groupBox2 = new QGroupBox( this, "groupBox2" ); + groupBox2 = new TQGroupBox( this, "groupBox2" ); groupBox2->setColumnLayout(0, Qt::Vertical ); - groupBox2->layout()->setSpacing( 6 ); - groupBox2->layout()->setMargin( 11 ); - groupBox2Layout = new QGridLayout( groupBox2->layout() ); - groupBox2Layout->setAlignment( Qt::AlignTop ); + groupBox2->tqlayout()->setSpacing( 6 ); + groupBox2->tqlayout()->setMargin( 11 ); + groupBox2Layout = new TQGridLayout( groupBox2->tqlayout() ); + groupBox2Layout->tqsetAlignment( TQt::AlignTop ); - textLabel3 = new QLabel( groupBox2, "textLabel3" ); + textLabel3 = new TQLabel( groupBox2, "textLabel3" ); groupBox2Layout->addWidget( textLabel3, 0, 0 ); - spacer2 = new QSpacerItem( 121, 31, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer2 = new TQSpacerItem( 121, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); groupBox2Layout->addItem( spacer2, 0, 2 ); - textLabel5 = new QLabel( groupBox2, "textLabel5" ); + textLabel5 = new TQLabel( groupBox2, "textLabel5" ); groupBox2Layout->addWidget( textLabel5, 1, 0 ); @@ -97,7 +97,7 @@ prefAuthor::prefAuthor( QWidget* parent, const char* name, WFlags fl ) groupBox2Layout->addWidget( bButtonFont, 4, 1 ); - textLabel6 = new QLabel( groupBox2, "textLabel6" ); + textLabel6 = new TQLabel( groupBox2, "textLabel6" ); groupBox2Layout->addWidget( textLabel6, 2, 0 ); @@ -105,7 +105,7 @@ prefAuthor::prefAuthor( QWidget* parent, const char* name, WFlags fl ) groupBox2Layout->addWidget( cbHiliteColor, 2, 1 ); - textLabel6_2 = new QLabel( groupBox2, "textLabel6_2" ); + textLabel6_2 = new TQLabel( groupBox2, "textLabel6_2" ); groupBox2Layout->addWidget( textLabel6_2, 3, 0 ); @@ -115,11 +115,11 @@ prefAuthor::prefAuthor( QWidget* parent, const char* name, WFlags fl ) prefAuthorLayout->addWidget( groupBox2, 1, 0 ); languageChange(); - resize( QSize(600, 480).expandedTo(minimumSizeHint()) ); + resize( TQSize(600, 480).expandedTo(tqminimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections - connect( bButtonFont, SIGNAL( clicked() ), this, SLOT( bButtonFontClicked() ) ); + connect( bButtonFont, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bButtonFontClicked() ) ); } /* @@ -127,7 +127,7 @@ prefAuthor::prefAuthor( QWidget* parent, const char* name, WFlags fl ) */ prefAuthor::~prefAuthor() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -152,9 +152,9 @@ void prefAuthor::languageChange() textLabel5->setText( tr2i18n( "Height" ) ); bButtonFont->setText( tr2i18n( "Font" ) ); textLabel6->setText( tr2i18n( "Hilite color" ) ); - cbHiliteColor->setText( QString::null ); + cbHiliteColor->setText( TQString() ); textLabel6_2->setText( tr2i18n( "Text color" ) ); - cbTextColor->setText( QString::null ); + cbTextColor->setText( TQString() ); } void prefAuthor::bButtonFontClicked() diff --git a/src/prefAuthor.ui b/src/prefAuthor.ui index 0f3db9a..7b3ca9c 100644 --- a/src/prefAuthor.ui +++ b/src/prefAuthor.ui @@ -1,10 +1,10 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>prefAuthor</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>prefAuthor</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -19,7 +19,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QGroupBox" row="0" column="0"> + <widget class="TQGroupBox" row="0" column="0"> <property name="name"> <cstring>groupBox1</cstring> </property> @@ -30,7 +30,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QComboBox" row="0" column="1"> + <widget class="TQComboBox" row="0" column="1"> <item> <property name="text"> <string>AC3</string> @@ -45,7 +45,7 @@ <cstring>cbAudioFormat</cstring> </property> </widget> - <widget class="QComboBox" row="1" column="1"> + <widget class="TQComboBox" row="1" column="1"> <item> <property name="text"> <string>128</string> @@ -65,7 +65,7 @@ <cstring>cbAudioBitrate</cstring> </property> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -73,7 +73,7 @@ <string>Format</string> </property> </widget> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -91,7 +91,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>151</width> <height>21</height> @@ -110,14 +110,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>60</height> </size> </property> </spacer> - <widget class="QGroupBox" row="1" column="0"> + <widget class="TQGroupBox" row="1" column="0"> <property name="name"> <cstring>groupBox2</cstring> </property> @@ -128,7 +128,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel3</cstring> </property> @@ -146,14 +146,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>121</width> <height>31</height> </size> </property> </spacer> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>textLabel5</cstring> </property> @@ -191,7 +191,7 @@ <string>Font</string> </property> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>textLabel6</cstring> </property> @@ -207,7 +207,7 @@ <string></string> </property> </widget> - <widget class="QLabel" row="3" column="0"> + <widget class="TQLabel" row="3" column="0"> <property name="name"> <cstring>textLabel6_2</cstring> </property> @@ -235,10 +235,10 @@ <slot>bButtonFontClicked()</slot> </connection> </connections> -<slots> +<Q_SLOTS> <slot>bButtonFontClicked()</slot> -</slots> -<layoutdefaults spacing="6" margin="11"/> +</Q_SLOTS> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>knuminput.h</includehint> <includehint>knuminput.h</includehint> diff --git a/src/prefDVD.cpp b/src/prefDVD.cpp index d0aef30..03c81dd 100644 --- a/src/prefDVD.cpp +++ b/src/prefDVD.cpp @@ -9,76 +9,76 @@ #include "prefDVD.h" -#include <qvariant.h> -#include <qlabel.h> +#include <tqvariant.h> +#include <tqlabel.h> #include <kurlrequester.h> -#include <qcheckbox.h> -#include <qspinbox.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> +#include <tqcheckbox.h> +#include <tqspinbox.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> #include "kurlrequester.h" #include "klineedit.h" #include "kpushbutton.h" /* - * Constructs a prefDVD as a child of 'parent', with the + * Constructs a prefDVD as a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. */ -prefDVD::prefDVD( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +prefDVD::prefDVD( TQWidget* tqparent, const char* name, WFlags fl ) + : TQWidget( tqparent, name, fl ) { if ( !name ) setName( "prefDVD" ); - prefDVDLayout = new QGridLayout( this, 1, 1, 11, 6, "prefDVDLayout"); + prefDVDLayout = new TQGridLayout( this, 1, 1, 11, 6, "prefDVDLayout"); - lblworkDir = new QLabel( this, "lblworkDir" ); - lblworkDir->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, lblworkDir->sizePolicy().hasHeightForWidth() ) ); + lblworkDir = new TQLabel( this, "lblworkDir" ); + lblworkDir->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, lblworkDir->sizePolicy().hasHeightForWidth() ) ); prefDVDLayout->addWidget( lblworkDir, 0, 0 ); urOutput = new KURLRequester( this, "urOutput" ); - urOutput->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, urOutput->sizePolicy().hasHeightForWidth() ) ); + urOutput->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, urOutput->sizePolicy().hasHeightForWidth() ) ); prefDVDLayout->addMultiCellWidget( urOutput, 0, 0, 1, 2 ); - ckK3b = new QCheckBox( this, "ckK3b" ); + ckK3b = new TQCheckBox( this, "ckK3b" ); prefDVDLayout->addMultiCellWidget( ckK3b, 2, 2, 0, 2 ); - ckAutoBurn = new QCheckBox( this, "ckAutoBurn" ); - ckAutoBurn->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, ckAutoBurn->sizePolicy().hasHeightForWidth() ) ); + ckAutoBurn = new TQCheckBox( this, "ckAutoBurn" ); + ckAutoBurn->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ckAutoBurn->sizePolicy().hasHeightForWidth() ) ); prefDVDLayout->addMultiCellWidget( ckAutoBurn, 3, 3, 0, 2 ); - textLabel1_2 = new QLabel( this, "textLabel1_2" ); + textLabel1_2 = new TQLabel( this, "textLabel1_2" ); prefDVDLayout->addWidget( textLabel1_2, 1, 0 ); - sbSize = new QSpinBox( this, "sbSize" ); - sbSize->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, sbSize->sizePolicy().hasHeightForWidth() ) ); - sbSize->setMinimumSize( QSize( 80, 0 ) ); + sbSize = new TQSpinBox( this, "sbSize" ); + sbSize->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, sbSize->sizePolicy().hasHeightForWidth() ) ); + sbSize->setMinimumSize( TQSize( 80, 0 ) ); sbSize->setMaxValue( 9000 ); sbSize->setLineStep( 100 ); sbSize->setValue( 4400 ); prefDVDLayout->addWidget( sbSize, 1, 1 ); - ckQuickScan = new QCheckBox( this, "ckQuickScan" ); + ckQuickScan = new TQCheckBox( this, "ckQuickScan" ); prefDVDLayout->addMultiCellWidget( ckQuickScan, 4, 4, 0, 2 ); - spacer1 = new QSpacerItem( 21, 110, QSizePolicy::Minimum, QSizePolicy::Expanding ); + spacer1 = new TQSpacerItem( 21, 110, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); prefDVDLayout->addItem( spacer1, 7, 2 ); - ckDvdAuthor = new QCheckBox( this, "ckDvdAuthor" ); + ckDvdAuthor = new TQCheckBox( this, "ckDvdAuthor" ); prefDVDLayout->addMultiCellWidget( ckDvdAuthor, 5, 5, 0, 2 ); - ckDelTmpFiles = new QCheckBox( this, "ckDelTmpFiles" ); + ckDelTmpFiles = new TQCheckBox( this, "ckDelTmpFiles" ); prefDVDLayout->addMultiCellWidget( ckDelTmpFiles, 6, 6, 0, 2 ); languageChange(); - resize( QSize(600, 347).expandedTo(minimumSizeHint()) ); + resize( TQSize(600, 347).expandedTo(tqminimumSizeHint()) ); clearWState( WState_Polished ); } @@ -87,7 +87,7 @@ prefDVD::prefDVD( QWidget* parent, const char* name, WFlags fl ) */ prefDVD::~prefDVD() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -99,16 +99,16 @@ void prefDVD::languageChange() setCaption( tr2i18n( "prefDVD" ) ); lblworkDir->setText( tr2i18n( "Output directory" ) ); ckK3b->setText( tr2i18n( "Burn with k3b" ) ); - ckK3b->setAccel( QKeySequence( tr2i18n( "Alt+B" ) ) ); + ckK3b->setAccel( TQKeySequence( tr2i18n( "Alt+B" ) ) ); ckAutoBurn->setText( tr2i18n( "Auto burn" ) ); - ckAutoBurn->setAccel( QKeySequence( tr2i18n( "Alt+T" ) ) ); + ckAutoBurn->setAccel( TQKeySequence( tr2i18n( "Alt+T" ) ) ); textLabel1_2->setText( tr2i18n( "DVD size" ) ); ckQuickScan->setText( tr2i18n( "Quick scan" ) ); - ckQuickScan->setAccel( QKeySequence( tr2i18n( "Alt+Q" ) ) ); + ckQuickScan->setAccel( TQKeySequence( tr2i18n( "Alt+Q" ) ) ); ckDvdAuthor->setText( tr2i18n( "use dvdAuthor for copy without menus" ) ); - ckDvdAuthor->setAccel( QKeySequence( tr2i18n( "Alt+D" ) ) ); + ckDvdAuthor->setAccel( TQKeySequence( tr2i18n( "Alt+D" ) ) ); ckDelTmpFiles->setText( tr2i18n( "Clear output directory on exit" ) ); - ckDelTmpFiles->setAccel( QKeySequence( tr2i18n( "Alt+Y" ) ) ); + ckDelTmpFiles->setAccel( TQKeySequence( tr2i18n( "Alt+Y" ) ) ); } #include "prefDVD.moc" diff --git a/src/prefDVD.ui b/src/prefDVD.ui index d610ee8..e07b932 100644 --- a/src/prefDVD.ui +++ b/src/prefDVD.ui @@ -1,10 +1,10 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>prefDVD</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>prefDVD</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -19,7 +19,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>lblworkDir</cstring> </property> @@ -48,7 +48,7 @@ </sizepolicy> </property> </widget> - <widget class="QCheckBox" row="2" column="0" rowspan="1" colspan="3"> + <widget class="TQCheckBox" row="2" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>ckK3b</cstring> </property> @@ -59,7 +59,7 @@ <string>Alt+B</string> </property> </widget> - <widget class="QCheckBox" row="3" column="0" rowspan="1" colspan="3"> + <widget class="TQCheckBox" row="3" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>ckAutoBurn</cstring> </property> @@ -78,7 +78,7 @@ <string>Alt+T</string> </property> </widget> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>textLabel1_2</cstring> </property> @@ -86,7 +86,7 @@ <string>DVD size</string> </property> </widget> - <widget class="QSpinBox" row="1" column="1"> + <widget class="TQSpinBox" row="1" column="1"> <property name="name"> <cstring>sbSize</cstring> </property> @@ -98,7 +98,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>80</width> <height>0</height> @@ -114,7 +114,7 @@ <number>4400</number> </property> </widget> - <widget class="QCheckBox" row="4" column="0" rowspan="1" colspan="3"> + <widget class="TQCheckBox" row="4" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>ckQuickScan</cstring> </property> @@ -135,14 +135,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>21</width> <height>110</height> </size> </property> </spacer> - <widget class="QCheckBox" row="5" column="0" rowspan="1" colspan="3"> + <widget class="TQCheckBox" row="5" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>ckDvdAuthor</cstring> </property> @@ -153,7 +153,7 @@ <string>Alt+D</string> </property> </widget> - <widget class="QCheckBox" row="6" column="0" rowspan="1" colspan="3"> + <widget class="TQCheckBox" row="6" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>ckDelTmpFiles</cstring> </property> @@ -166,7 +166,7 @@ </widget> </grid> </widget> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>kurlrequester.h</includehint> <includehint>klineedit.h</includehint> diff --git a/src/prefMPEG4.cpp b/src/prefMPEG4.cpp index 9787413..05540d3 100644 --- a/src/prefMPEG4.cpp +++ b/src/prefMPEG4.cpp @@ -9,21 +9,21 @@ #include "prefMPEG4.h" -#include <qvariant.h> -#include <qpushbutton.h> -#include <qlabel.h> -#include <qtabwidget.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qlineedit.h> -#include <qspinbox.h> -#include <qbuttongroup.h> -#include <qradiobutton.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qimage.h> -#include <qpixmap.h> +#include <tqvariant.h> +#include <tqpushbutton.h> +#include <tqlabel.h> +#include <tqtabwidget.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqlineedit.h> +#include <tqspinbox.h> +#include <tqbuttongroup.h> +#include <tqradiobutton.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> +#include <tqimage.h> +#include <tqpixmap.h> static const unsigned char img0_prefMPEG4[] = { 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, @@ -89,110 +89,110 @@ static const unsigned char img0_prefMPEG4[] = { /* - * Constructs a prefMPEG4 as a child of 'parent', with the + * Constructs a prefMPEG4 as a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. */ -prefMPEG4::prefMPEG4( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +prefMPEG4::prefMPEG4( TQWidget* tqparent, const char* name, WFlags fl ) + : TQWidget( tqparent, name, fl ) { - QImage img; + TQImage img; img.loadFromData( img0_prefMPEG4, sizeof( img0_prefMPEG4 ), "PNG" ); image0 = img; if ( !name ) setName( "prefMPEG4" ); setIcon( image0 ); - prefMPEG4Layout = new QGridLayout( this, 1, 1, 5, 2, "prefMPEG4Layout"); + prefMPEG4Layout = new TQGridLayout( this, 1, 1, 5, 2, "prefMPEG4Layout"); - lTitle = new QLabel( this, "lTitle" ); - QFont lTitle_font( lTitle->font() ); + lTitle = new TQLabel( this, "lTitle" ); + TQFont lTitle_font( lTitle->font() ); lTitle_font.setBold( TRUE ); lTitle->setFont( lTitle_font ); prefMPEG4Layout->addWidget( lTitle, 0, 0 ); - tabWidget = new QTabWidget( this, "tabWidget" ); + tabWidget = new TQTabWidget( this, "tabWidget" ); - tabVideo = new QWidget( tabWidget, "tabVideo" ); - tabVideoLayout = new QGridLayout( tabVideo, 1, 1, 11, 6, "tabVideoLayout"); + tabVideo = new TQWidget( tabWidget, "tabVideo" ); + tabVideoLayout = new TQGridLayout( tabVideo, 1, 1, 11, 6, "tabVideoLayout"); - ck2passes = new QCheckBox( tabVideo, "ck2passes" ); + ck2passes = new TQCheckBox( tabVideo, "ck2passes" ); tabVideoLayout->addMultiCellWidget( ck2passes, 0, 0, 3, 6 ); - textLabel1_4 = new QLabel( tabVideo, "textLabel1_4" ); + textLabel1_4 = new TQLabel( tabVideo, "textLabel1_4" ); tabVideoLayout->addWidget( textLabel1_4, 0, 0 ); - cbMp4Codec = new QComboBox( FALSE, tabVideo, "cbMp4Codec" ); - cbMp4Codec->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, cbMp4Codec->sizePolicy().hasHeightForWidth() ) ); + cbMp4Codec = new TQComboBox( FALSE, tabVideo, "cbMp4Codec" ); + cbMp4Codec->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, cbMp4Codec->sizePolicy().hasHeightForWidth() ) ); tabVideoLayout->addMultiCellWidget( cbMp4Codec, 0, 0, 1, 2 ); - textLabel3_2 = new QLabel( tabVideo, "textLabel3_2" ); + textLabel3_2 = new TQLabel( tabVideo, "textLabel3_2" ); tabVideoLayout->addWidget( textLabel3_2, 1, 0 ); - textLabel3_2_2 = new QLabel( tabVideo, "textLabel3_2_2" ); + textLabel3_2_2 = new TQLabel( tabVideo, "textLabel3_2_2" ); tabVideoLayout->addWidget( textLabel3_2_2, 2, 0 ); - leMp4Width = new QLineEdit( tabVideo, "leMp4Width" ); - leMp4Width->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, leMp4Width->sizePolicy().hasHeightForWidth() ) ); - leMp4Width->setMinimumSize( QSize( 0, 0 ) ); - leMp4Width->setMaximumSize( QSize( 70, 32767 ) ); + leMp4Width = new TQLineEdit( tabVideo, "leMp4Width" ); + leMp4Width->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, leMp4Width->sizePolicy().hasHeightForWidth() ) ); + leMp4Width->setMinimumSize( TQSize( 0, 0 ) ); + leMp4Width->setMaximumSize( TQSize( 70, 32767 ) ); leMp4Width->setMaxLength( 4 ); - leMp4Width->setAlignment( int( QLineEdit::AlignAuto ) ); + leMp4Width->tqsetAlignment( int( TQLineEdit::AlignAuto ) ); tabVideoLayout->addWidget( leMp4Width, 1, 1 ); - ckMp4AspectRatio = new QCheckBox( tabVideo, "ckMp4AspectRatio" ); - ckMp4AspectRatio->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, ckMp4AspectRatio->sizePolicy().hasHeightForWidth() ) ); + ckMp4AspectRatio = new TQCheckBox( tabVideo, "ckMp4AspectRatio" ); + ckMp4AspectRatio->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, ckMp4AspectRatio->sizePolicy().hasHeightForWidth() ) ); ckMp4AspectRatio->setChecked( TRUE ); tabVideoLayout->addMultiCellWidget( ckMp4AspectRatio, 1, 1, 3, 6 ); - spacer9 = new QSpacerItem( 380, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer9 = new TQSpacerItem( 380, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); tabVideoLayout->addMultiCell( spacer9, 2, 2, 2, 6 ); - leMp4Height = new QLineEdit( tabVideo, "leMp4Height" ); + leMp4Height = new TQLineEdit( tabVideo, "leMp4Height" ); leMp4Height->setEnabled( FALSE ); - leMp4Height->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, leMp4Height->sizePolicy().hasHeightForWidth() ) ); - leMp4Height->setMinimumSize( QSize( 0, 0 ) ); - leMp4Height->setMaximumSize( QSize( 70, 32767 ) ); + leMp4Height->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, leMp4Height->sizePolicy().hasHeightForWidth() ) ); + leMp4Height->setMinimumSize( TQSize( 0, 0 ) ); + leMp4Height->setMaximumSize( TQSize( 70, 32767 ) ); leMp4Height->setMaxLength( 4 ); - leMp4Height->setAlignment( int( QLineEdit::AlignAuto ) ); + leMp4Height->tqsetAlignment( int( TQLineEdit::AlignAuto ) ); tabVideoLayout->addWidget( leMp4Height, 2, 1 ); - spacer8 = new QSpacerItem( 21, 110, QSizePolicy::Minimum, QSizePolicy::Expanding ); + spacer8 = new TQSpacerItem( 21, 110, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); tabVideoLayout->addItem( spacer8, 4, 5 ); - sbMp4NumberCD = new QSpinBox( tabVideo, "sbMp4NumberCD" ); - sbMp4NumberCD->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, sbMp4NumberCD->sizePolicy().hasHeightForWidth() ) ); + sbMp4NumberCD = new TQSpinBox( tabVideo, "sbMp4NumberCD" ); + sbMp4NumberCD->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, sbMp4NumberCD->sizePolicy().hasHeightForWidth() ) ); sbMp4NumberCD->setMaxValue( 9 ); sbMp4NumberCD->setMinValue( 1 ); tabVideoLayout->addWidget( sbMp4NumberCD, 3, 5 ); - textLabel1 = new QLabel( tabVideo, "textLabel1" ); - textLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) ); + textLabel1 = new TQLabel( tabVideo, "textLabel1" ); + textLabel1->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) ); tabVideoLayout->addWidget( textLabel1, 3, 4 ); - buttonGroup1 = new QButtonGroup( tabVideo, "buttonGroup1" ); - buttonGroup1->setFrameShape( QButtonGroup::NoFrame ); + buttonGroup1 = new TQButtonGroup( tabVideo, "buttonGroup1" ); + buttonGroup1->setFrameShape( TQButtonGroup::NoFrame ); buttonGroup1->setColumnLayout(0, Qt::Vertical ); - buttonGroup1->layout()->setSpacing( 6 ); - buttonGroup1->layout()->setMargin( 2 ); - buttonGroup1Layout = new QGridLayout( buttonGroup1->layout() ); - buttonGroup1Layout->setAlignment( Qt::AlignTop ); + buttonGroup1->tqlayout()->setSpacing( 6 ); + buttonGroup1->tqlayout()->setMargin( 2 ); + buttonGroup1Layout = new TQGridLayout( buttonGroup1->tqlayout() ); + buttonGroup1Layout->tqsetAlignment( TQt::AlignTop ); - rbSize = new QRadioButton( buttonGroup1, "rbSize" ); + rbSize = new TQRadioButton( buttonGroup1, "rbSize" ); buttonGroup1Layout->addWidget( rbSize, 0, 0 ); - sbMp4Size = new QSpinBox( buttonGroup1, "sbMp4Size" ); - sbMp4Size->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, sbMp4Size->sizePolicy().hasHeightForWidth() ) ); - sbMp4Size->setMinimumSize( QSize( 80, 0 ) ); - sbMp4Size->setButtonSymbols( QSpinBox::UpDownArrows ); + sbMp4Size = new TQSpinBox( buttonGroup1, "sbMp4Size" ); + sbMp4Size->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, sbMp4Size->sizePolicy().hasHeightForWidth() ) ); + sbMp4Size->setMinimumSize( TQSize( 80, 0 ) ); + sbMp4Size->setButtonSymbols( TQSpinBox::UpDownArrows ); sbMp4Size->setMaxValue( 9999 ); sbMp4Size->setMinValue( 1 ); sbMp4Size->setLineStep( 10 ); @@ -200,86 +200,86 @@ prefMPEG4::prefMPEG4( QWidget* parent, const char* name, WFlags fl ) buttonGroup1Layout->addWidget( sbMp4Size, 0, 1 ); - rbBitrate = new QRadioButton( buttonGroup1, "rbBitrate" ); + rbBitrate = new TQRadioButton( buttonGroup1, "rbBitrate" ); buttonGroup1Layout->addWidget( rbBitrate, 1, 0 ); - spacer6 = new QSpacerItem( 51, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer6 = new TQSpacerItem( 51, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); buttonGroup1Layout->addMultiCell( spacer6, 0, 1, 2, 2 ); - leMp4VideoBitrate = new QLineEdit( buttonGroup1, "leMp4VideoBitrate" ); - leMp4VideoBitrate->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, leMp4VideoBitrate->sizePolicy().hasHeightForWidth() ) ); + leMp4VideoBitrate = new TQLineEdit( buttonGroup1, "leMp4VideoBitrate" ); + leMp4VideoBitrate->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, leMp4VideoBitrate->sizePolicy().hasHeightForWidth() ) ); buttonGroup1Layout->addWidget( leMp4VideoBitrate, 1, 1 ); tabVideoLayout->addMultiCellWidget( buttonGroup1, 3, 3, 0, 3 ); - spacer3 = new QSpacerItem( 130, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer3 = new TQSpacerItem( 130, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); tabVideoLayout->addItem( spacer3, 3, 6 ); - tabWidget->insertTab( tabVideo, QString::fromLatin1("") ); + tabWidget->insertTab( tabVideo, TQString::tqfromLatin1("") ); - tabAudio = new QWidget( tabWidget, "tabAudio" ); - tabAudioLayout = new QGridLayout( tabAudio, 1, 1, 11, 6, "tabAudioLayout"); + tabAudio = new TQWidget( tabWidget, "tabAudio" ); + tabAudioLayout = new TQGridLayout( tabAudio, 1, 1, 11, 6, "tabAudioLayout"); - textLabel1_4_2 = new QLabel( tabAudio, "textLabel1_4_2" ); + textLabel1_4_2 = new TQLabel( tabAudio, "textLabel1_4_2" ); tabAudioLayout->addWidget( textLabel1_4_2, 0, 0 ); - cbMp4AudioCodec = new QComboBox( FALSE, tabAudio, "cbMp4AudioCodec" ); - cbMp4AudioCodec->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, cbMp4AudioCodec->sizePolicy().hasHeightForWidth() ) ); + cbMp4AudioCodec = new TQComboBox( FALSE, tabAudio, "cbMp4AudioCodec" ); + cbMp4AudioCodec->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, cbMp4AudioCodec->sizePolicy().hasHeightForWidth() ) ); tabAudioLayout->addMultiCellWidget( cbMp4AudioCodec, 0, 0, 1, 2 ); - textLabel1_5 = new QLabel( tabAudio, "textLabel1_5" ); + textLabel1_5 = new TQLabel( tabAudio, "textLabel1_5" ); tabAudioLayout->addWidget( textLabel1_5, 1, 0 ); - leMp4AudioBitrate = new QLineEdit( tabAudio, "leMp4AudioBitrate" ); - leMp4AudioBitrate->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, leMp4AudioBitrate->sizePolicy().hasHeightForWidth() ) ); - leMp4AudioBitrate->setMinimumSize( QSize( 0, 0 ) ); - leMp4AudioBitrate->setMaximumSize( QSize( 70, 32767 ) ); + leMp4AudioBitrate = new TQLineEdit( tabAudio, "leMp4AudioBitrate" ); + leMp4AudioBitrate->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, leMp4AudioBitrate->sizePolicy().hasHeightForWidth() ) ); + leMp4AudioBitrate->setMinimumSize( TQSize( 0, 0 ) ); + leMp4AudioBitrate->setMaximumSize( TQSize( 70, 32767 ) ); leMp4AudioBitrate->setMaxLength( 3 ); - leMp4AudioBitrate->setAlignment( int( QLineEdit::AlignAuto ) ); + leMp4AudioBitrate->tqsetAlignment( int( TQLineEdit::AlignAuto ) ); tabAudioLayout->addWidget( leMp4AudioBitrate, 1, 1 ); - spacer4 = new QSpacerItem( 376, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer4 = new TQSpacerItem( 376, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); tabAudioLayout->addMultiCell( spacer4, 1, 1, 2, 3 ); - sbAudioGain = new QSpinBox( tabAudio, "sbAudioGain" ); + sbAudioGain = new TQSpinBox( tabAudio, "sbAudioGain" ); sbAudioGain->setMaxValue( 10 ); sbAudioGain->setMinValue( 1 ); tabAudioLayout->addWidget( sbAudioGain, 2, 1 ); - textLabel1_2 = new QLabel( tabAudio, "textLabel1_2" ); + textLabel1_2 = new TQLabel( tabAudio, "textLabel1_2" ); tabAudioLayout->addWidget( textLabel1_2, 2, 0 ); - spacer14 = new QSpacerItem( 20, 61, QSizePolicy::Minimum, QSizePolicy::Expanding ); + spacer14 = new TQSpacerItem( 20, 61, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); tabAudioLayout->addItem( spacer14, 3, 3 ); - tabWidget->insertTab( tabAudio, QString::fromLatin1("") ); + tabWidget->insertTab( tabAudio, TQString::tqfromLatin1("") ); prefMPEG4Layout->addWidget( tabWidget, 1, 0 ); - ckUseCache = new QCheckBox( this, "ckUseCache" ); + ckUseCache = new TQCheckBox( this, "ckUseCache" ); prefMPEG4Layout->addWidget( ckUseCache, 2, 0 ); languageChange(); - resize( QSize(582, 460).expandedTo(minimumSizeHint()) ); + resize( TQSize(582, 460).expandedTo(tqminimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections - connect( cbMp4AudioCodec, SIGNAL( activated(int) ), this, SLOT( cbMp4AudioCodecActivated(int) ) ); - connect( cbMp4Codec, SIGNAL( activated(int) ), this, SLOT( cbMp4CodecActivated(int) ) ); - connect( ck2passes, SIGNAL( clicked() ), this, SLOT( ck2passesClicked() ) ); - connect( ckMp4AspectRatio, SIGNAL( clicked() ), this, SLOT( ckMp4AspectRatioClick() ) ); - connect( rbBitrate, SIGNAL( clicked() ), this, SLOT( rgVideoSizeChanged() ) ); - connect( rbSize, SIGNAL( clicked() ), this, SLOT( rgVideoSizeChanged() ) ); - connect( leMp4Width, SIGNAL( textChanged(const QString&) ), this, SLOT( leMp4WidthTextChanged(const QString&) ) ); - connect( leMp4Height, SIGNAL( textChanged(const QString&) ), this, SLOT( leMp4HeightTextChanged(const QString&) ) ); - connect( sbMp4Size, SIGNAL( valueChanged(int) ), this, SLOT( sbMp4SizeValueChanged(int) ) ); - connect( sbMp4NumberCD, SIGNAL( valueChanged(int) ), this, SLOT( sbMp4NumberCDValueChanged(int) ) ); - connect( leMp4VideoBitrate, SIGNAL( textChanged(const QString&) ), this, SLOT( leMp4VideoBitrateTextChanged(const QString&) ) ); - connect( sbAudioGain, SIGNAL( valueChanged(int) ), this, SLOT( sbAudioGainValueChanged(int) ) ); - connect( leMp4AudioBitrate, SIGNAL( textChanged(const QString&) ), this, SLOT( leMp4AudioBitrateTextChanged(const QString&) ) ); - connect( ckUseCache, SIGNAL( clicked() ), this, SLOT( ckUseCacheClick() ) ); + connect( cbMp4AudioCodec, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( cbMp4AudioCodecActivated(int) ) ); + connect( cbMp4Codec, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( cbMp4CodecActivated(int) ) ); + connect( ck2passes, TQT_SIGNAL( clicked() ), this, TQT_SLOT( ck2passesClicked() ) ); + connect( ckMp4AspectRatio, TQT_SIGNAL( clicked() ), this, TQT_SLOT( ckMp4AspectRatioClick() ) ); + connect( rbBitrate, TQT_SIGNAL( clicked() ), this, TQT_SLOT( rgVideoSizeChanged() ) ); + connect( rbSize, TQT_SIGNAL( clicked() ), this, TQT_SLOT( rgVideoSizeChanged() ) ); + connect( leMp4Width, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( leMp4WidthTextChanged(const TQString&) ) ); + connect( leMp4Height, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( leMp4HeightTextChanged(const TQString&) ) ); + connect( sbMp4Size, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( sbMp4SizeValueChanged(int) ) ); + connect( sbMp4NumberCD, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( sbMp4NumberCDValueChanged(int) ) ); + connect( leMp4VideoBitrate, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( leMp4VideoBitrateTextChanged(const TQString&) ) ); + connect( sbAudioGain, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( sbAudioGainValueChanged(int) ) ); + connect( leMp4AudioBitrate, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( leMp4AudioBitrateTextChanged(const TQString&) ) ); + connect( ckUseCache, TQT_SIGNAL( clicked() ), this, TQT_SLOT( ckUseCacheClick() ) ); // tab order setTabOrder( tabWidget, cbMp4Codec ); @@ -302,7 +302,7 @@ prefMPEG4::prefMPEG4( QWidget* parent, const char* name, WFlags fl ) */ prefMPEG4::~prefMPEG4() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -312,9 +312,9 @@ prefMPEG4::~prefMPEG4() void prefMPEG4::languageChange() { setCaption( tr2i18n( "Form1" ) ); - lTitle->setText( QString::null ); + lTitle->setText( TQString() ); ck2passes->setText( tr2i18n( "2 pass" ) ); - ck2passes->setAccel( QKeySequence( tr2i18n( "Alt+2" ) ) ); + ck2passes->setAccel( TQKeySequence( tr2i18n( "Alt+2" ) ) ); textLabel1_4->setText( tr2i18n( "Codec" ) ); cbMp4Codec->clear(); cbMp4Codec->insertItem( tr2i18n( "XviD" ) ); @@ -324,17 +324,17 @@ void prefMPEG4::languageChange() textLabel3_2->setText( tr2i18n( "Width" ) ); textLabel3_2_2->setText( tr2i18n( "Height" ) ); leMp4Width->setText( tr2i18n( "640" ) ); - leMp4Width->setInputMask( QString::null ); + leMp4Width->setInputMask( TQString() ); ckMp4AspectRatio->setText( tr2i18n( "&keep aspect ratio" ) ); - ckMp4AspectRatio->setAccel( QKeySequence( tr2i18n( "Alt+K" ) ) ); - leMp4Height->setInputMask( QString::null ); + ckMp4AspectRatio->setAccel( TQKeySequence( tr2i18n( "Alt+K" ) ) ); + leMp4Height->setInputMask( TQString() ); textLabel1->setText( tr2i18n( "X" ) ); - buttonGroup1->setTitle( QString::null ); + buttonGroup1->setTitle( TQString() ); rbSize->setText( tr2i18n( "File size" ) ); - rbSize->setAccel( QKeySequence( tr2i18n( "Alt+S" ) ) ); + rbSize->setAccel( TQKeySequence( tr2i18n( "Alt+S" ) ) ); sbMp4Size->setSuffix( tr2i18n( " MB" ) ); rbBitrate->setText( tr2i18n( "Bitrate" ) ); - rbBitrate->setAccel( QKeySequence( tr2i18n( "Alt+B" ) ) ); + rbBitrate->setAccel( TQKeySequence( tr2i18n( "Alt+B" ) ) ); tabWidget->changeTab( tabVideo, tr2i18n( "Video" ) ); textLabel1_4_2->setText( tr2i18n( "Codec" ) ); cbMp4AudioCodec->clear(); @@ -344,7 +344,7 @@ void prefMPEG4::languageChange() cbMp4AudioCodec->insertItem( tr2i18n( "ac3" ) ); cbMp4AudioCodec->insertItem( tr2i18n( "adpcm ima" ) ); textLabel1_5->setText( tr2i18n( "Bitrate" ) ); - leMp4AudioBitrate->setText( QString::null ); + leMp4AudioBitrate->setText( TQString() ); textLabel1_2->setText( tr2i18n( "Gain" ) ); tabWidget->changeTab( tabAudio, tr2i18n( "Audio" ) ); ckUseCache->setText( tr2i18n( "use cell cache" ) ); @@ -380,19 +380,19 @@ void prefMPEG4::sbMp4NumberCDValueChanged(int) qWarning( "prefMPEG4::sbMp4NumberCDValueChanged(int): Not implemented yet" ); } -void prefMPEG4::leMp4WidthTextChanged(const QString&) +void prefMPEG4::leMp4WidthTextChanged(const TQString&) { - qWarning( "prefMPEG4::leMp4WidthTextChanged(const QString&): Not implemented yet" ); + qWarning( "prefMPEG4::leMp4WidthTextChanged(const TQString&): Not implemented yet" ); } -void prefMPEG4::leMp4HeightTextChanged(const QString&) +void prefMPEG4::leMp4HeightTextChanged(const TQString&) { - qWarning( "prefMPEG4::leMp4HeightTextChanged(const QString&): Not implemented yet" ); + qWarning( "prefMPEG4::leMp4HeightTextChanged(const TQString&): Not implemented yet" ); } -void prefMPEG4::leMp4AudioBitrateTextChanged(const QString&) +void prefMPEG4::leMp4AudioBitrateTextChanged(const TQString&) { - qWarning( "prefMPEG4::leMp4AudioBitrateTextChanged(const QString&): Not implemented yet" ); + qWarning( "prefMPEG4::leMp4AudioBitrateTextChanged(const TQString&): Not implemented yet" ); } void prefMPEG4::rgVideoSizeChanged() @@ -400,9 +400,9 @@ void prefMPEG4::rgVideoSizeChanged() qWarning( "prefMPEG4::rgVideoSizeChanged(): Not implemented yet" ); } -void prefMPEG4::leMp4VideoBitrateTextChanged(const QString&) +void prefMPEG4::leMp4VideoBitrateTextChanged(const TQString&) { - qWarning( "prefMPEG4::leMp4VideoBitrateTextChanged(const QString&): Not implemented yet" ); + qWarning( "prefMPEG4::leMp4VideoBitrateTextChanged(const TQString&): Not implemented yet" ); } void prefMPEG4::sbAudioGainValueChanged(int) diff --git a/src/prefMPEG4.ui b/src/prefMPEG4.ui index fc21017..0789409 100644 --- a/src/prefMPEG4.ui +++ b/src/prefMPEG4.ui @@ -1,10 +1,10 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>prefMPEG4</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>prefMPEG4</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -28,7 +28,7 @@ <property name="spacing"> <number>2</number> </property> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>lTitle</cstring> </property> @@ -41,11 +41,11 @@ <string></string> </property> </widget> - <widget class="QTabWidget" row="1" column="0"> + <widget class="TQTabWidget" row="1" column="0"> <property name="name"> <cstring>tabWidget</cstring> </property> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tabVideo</cstring> </property> @@ -56,7 +56,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox" row="0" column="3" rowspan="1" colspan="4"> + <widget class="TQCheckBox" row="0" column="3" rowspan="1" colspan="4"> <property name="name"> <cstring>ck2passes</cstring> </property> @@ -67,7 +67,7 @@ <string>Alt+2</string> </property> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel1_4</cstring> </property> @@ -75,7 +75,7 @@ <string>Codec</string> </property> </widget> - <widget class="QComboBox" row="0" column="1" rowspan="1" colspan="2"> + <widget class="TQComboBox" row="0" column="1" rowspan="1" colspan="2"> <item> <property name="text"> <string>XviD</string> @@ -106,7 +106,7 @@ <number>1</number> </property> </widget> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>textLabel3_2</cstring> </property> @@ -114,7 +114,7 @@ <string>Width</string> </property> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>textLabel3_2_2</cstring> </property> @@ -122,7 +122,7 @@ <string>Height</string> </property> </widget> - <widget class="QLineEdit" row="1" column="1"> + <widget class="TQLineEdit" row="1" column="1"> <property name="name"> <cstring>leMp4Width</cstring> </property> @@ -134,13 +134,13 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>0</width> <height>0</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>70</width> <height>32767</height> @@ -152,14 +152,14 @@ <property name="maxLength"> <number>4</number> </property> - <property name="alignment"> + <property name="tqalignment"> <set>AlignAuto</set> </property> <property name="inputMask"> <string></string> </property> </widget> - <widget class="QCheckBox" row="1" column="3" rowspan="1" colspan="4"> + <widget class="TQCheckBox" row="1" column="3" rowspan="1" colspan="4"> <property name="name"> <cstring>ckMp4AspectRatio</cstring> </property> @@ -191,14 +191,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>380</width> <height>21</height> </size> </property> </spacer> - <widget class="QLineEdit" row="2" column="1"> + <widget class="TQLineEdit" row="2" column="1"> <property name="name"> <cstring>leMp4Height</cstring> </property> @@ -213,13 +213,13 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>0</width> <height>0</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>70</width> <height>32767</height> @@ -228,7 +228,7 @@ <property name="maxLength"> <number>4</number> </property> - <property name="alignment"> + <property name="tqalignment"> <set>AlignAuto</set> </property> <property name="inputMask"> @@ -245,14 +245,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>21</width> <height>110</height> </size> </property> </spacer> - <widget class="QSpinBox" row="3" column="5"> + <widget class="TQSpinBox" row="3" column="5"> <property name="name"> <cstring>sbMp4NumberCD</cstring> </property> @@ -271,7 +271,7 @@ <number>1</number> </property> </widget> - <widget class="QLabel" row="3" column="4"> + <widget class="TQLabel" row="3" column="4"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -287,7 +287,7 @@ <string>X</string> </property> </widget> - <widget class="QButtonGroup" row="3" column="0" rowspan="1" colspan="4"> + <widget class="TQButtonGroup" row="3" column="0" rowspan="1" colspan="4"> <property name="name"> <cstring>buttonGroup1</cstring> </property> @@ -304,7 +304,7 @@ <property name="margin"> <number>2</number> </property> - <widget class="QRadioButton" row="0" column="0"> + <widget class="TQRadioButton" row="0" column="0"> <property name="name"> <cstring>rbSize</cstring> </property> @@ -315,7 +315,7 @@ <string>Alt+S</string> </property> </widget> - <widget class="QSpinBox" row="0" column="1"> + <widget class="TQSpinBox" row="0" column="1"> <property name="name"> <cstring>sbMp4Size</cstring> </property> @@ -327,7 +327,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>80</width> <height>0</height> @@ -352,7 +352,7 @@ <number>700</number> </property> </widget> - <widget class="QRadioButton" row="1" column="0"> + <widget class="TQRadioButton" row="1" column="0"> <property name="name"> <cstring>rbBitrate</cstring> </property> @@ -373,14 +373,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>51</width> <height>20</height> </size> </property> </spacer> - <widget class="QLineEdit" row="1" column="1"> + <widget class="TQLineEdit" row="1" column="1"> <property name="name"> <cstring>leMp4VideoBitrate</cstring> </property> @@ -405,7 +405,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>130</width> <height>21</height> @@ -414,7 +414,7 @@ </spacer> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tabAudio</cstring> </property> @@ -425,7 +425,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel1_4_2</cstring> </property> @@ -433,7 +433,7 @@ <string>Codec</string> </property> </widget> - <widget class="QComboBox" row="0" column="1" rowspan="1" colspan="2"> + <widget class="TQComboBox" row="0" column="1" rowspan="1" colspan="2"> <item> <property name="text"> <string>mp3</string> @@ -471,7 +471,7 @@ </sizepolicy> </property> </widget> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>textLabel1_5</cstring> </property> @@ -479,7 +479,7 @@ <string>Bitrate</string> </property> </widget> - <widget class="QLineEdit" row="1" column="1"> + <widget class="TQLineEdit" row="1" column="1"> <property name="name"> <cstring>leMp4AudioBitrate</cstring> </property> @@ -491,13 +491,13 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>0</width> <height>0</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>70</width> <height>32767</height> @@ -509,7 +509,7 @@ <property name="maxLength"> <number>3</number> </property> - <property name="alignment"> + <property name="tqalignment"> <set>AlignAuto</set> </property> </widget> @@ -523,14 +523,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>376</width> <height>20</height> </size> </property> </spacer> - <widget class="QSpinBox" row="2" column="1"> + <widget class="TQSpinBox" row="2" column="1"> <property name="name"> <cstring>sbAudioGain</cstring> </property> @@ -541,7 +541,7 @@ <number>1</number> </property> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>textLabel1_2</cstring> </property> @@ -559,7 +559,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>61</height> @@ -569,7 +569,7 @@ </grid> </widget> </widget> - <widget class="QCheckBox" row="2" column="0"> + <widget class="TQCheckBox" row="2" column="0"> <property name="name"> <cstring>ckUseCache</cstring> </property> @@ -623,15 +623,15 @@ </connection> <connection> <sender>leMp4Width</sender> - <signal>textChanged(const QString&)</signal> + <signal>textChanged(const TQString&)</signal> <receiver>prefMPEG4</receiver> - <slot>leMp4WidthTextChanged(const QString&)</slot> + <slot>leMp4WidthTextChanged(const TQString&)</slot> </connection> <connection> <sender>leMp4Height</sender> - <signal>textChanged(const QString&)</signal> + <signal>textChanged(const TQString&)</signal> <receiver>prefMPEG4</receiver> - <slot>leMp4HeightTextChanged(const QString&)</slot> + <slot>leMp4HeightTextChanged(const TQString&)</slot> </connection> <connection> <sender>sbMp4Size</sender> @@ -647,9 +647,9 @@ </connection> <connection> <sender>leMp4VideoBitrate</sender> - <signal>textChanged(const QString&)</signal> + <signal>textChanged(const TQString&)</signal> <receiver>prefMPEG4</receiver> - <slot>leMp4VideoBitrateTextChanged(const QString&)</slot> + <slot>leMp4VideoBitrateTextChanged(const TQString&)</slot> </connection> <connection> <sender>sbAudioGain</sender> @@ -659,9 +659,9 @@ </connection> <connection> <sender>leMp4AudioBitrate</sender> - <signal>textChanged(const QString&)</signal> + <signal>textChanged(const TQString&)</signal> <receiver>prefMPEG4</receiver> - <slot>leMp4AudioBitrateTextChanged(const QString&)</slot> + <slot>leMp4AudioBitrateTextChanged(const TQString&)</slot> </connection> <connection> <sender>ckUseCache</sender> @@ -686,20 +686,20 @@ <tabstop>leMp4AudioBitrate</tabstop> <tabstop>sbAudioGain</tabstop> </tabstops> -<slots> +<Q_SLOTS> <slot>ckMp4AspectRatioClick()</slot> <slot>cbMp4CodecActivated( int )</slot> <slot>cbMp4AudioCodecActivated( int )</slot> <slot>ck2passesClicked()</slot> <slot>sbMp4SizeValueChanged( int )</slot> <slot>sbMp4NumberCDValueChanged( int )</slot> - <slot>leMp4WidthTextChanged( const QString & )</slot> - <slot>leMp4HeightTextChanged( const QString & )</slot> - <slot>leMp4AudioBitrateTextChanged( const QString & )</slot> + <slot>leMp4WidthTextChanged( const TQString & )</slot> + <slot>leMp4HeightTextChanged( const TQString & )</slot> + <slot>leMp4AudioBitrateTextChanged( const TQString & )</slot> <slot>rgVideoSizeChanged()</slot> - <slot>leMp4VideoBitrateTextChanged(const QString &)</slot> + <slot>leMp4VideoBitrateTextChanged(const TQString &)</slot> <slot>sbAudioGainValueChanged(int)</slot> <slot>ckUseCacheClick()</slot> -</slots> -<layoutdefaults spacing="6" margin="11"/> +</Q_SLOTS> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/src/prefMencoder.cpp b/src/prefMencoder.cpp index 98a56ca..63de9a1 100644 --- a/src/prefMencoder.cpp +++ b/src/prefMencoder.cpp @@ -9,241 +9,241 @@ #include "prefMencoder.h" -#include <qvariant.h> -#include <qpushbutton.h> -#include <qlabel.h> -#include <qtabwidget.h> -#include <qlistbox.h> +#include <tqvariant.h> +#include <tqpushbutton.h> +#include <tqlabel.h> +#include <tqtabwidget.h> +#include <tqlistbox.h> #include <kpushbutton.h> -#include <qtextedit.h> -#include <qlineedit.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> +#include <tqtextedit.h> +#include <tqlineedit.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> #include "kpushbutton.h" /* - * Constructs a prefMencoder as a child of 'parent', with the + * Constructs a prefMencoder as a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. */ -prefMencoder::prefMencoder( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +prefMencoder::prefMencoder( TQWidget* tqparent, const char* name, WFlags fl ) + : TQWidget( tqparent, name, fl ) { if ( !name ) setName( "prefMencoder" ); - prefMencoderLayout = new QGridLayout( this, 1, 1, 11, 6, "prefMencoderLayout"); + prefMencoderLayout = new TQGridLayout( this, 1, 1, 11, 6, "prefMencoderLayout"); - layout2 = new QGridLayout( 0, 1, 1, 0, 6, "layout2"); + tqlayout2 = new TQGridLayout( 0, 1, 1, 0, 6, "tqlayout2"); - textLabel2 = new QLabel( this, "textLabel2" ); - textLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, textLabel2->sizePolicy().hasHeightForWidth() ) ); - QFont textLabel2_font( textLabel2->font() ); + textLabel2 = new TQLabel( this, "textLabel2" ); + textLabel2->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, textLabel2->sizePolicy().hasHeightForWidth() ) ); + TQFont textLabel2_font( textLabel2->font() ); textLabel2_font.setBold( TRUE ); textLabel2->setFont( textLabel2_font ); - layout2->addWidget( textLabel2, 0, 0 ); + tqlayout2->addWidget( textLabel2, 0, 0 ); - textLabel2_2 = new QLabel( this, "textLabel2_2" ); - textLabel2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, textLabel2_2->sizePolicy().hasHeightForWidth() ) ); + textLabel2_2 = new TQLabel( this, "textLabel2_2" ); + textLabel2_2->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, textLabel2_2->sizePolicy().hasHeightForWidth() ) ); - layout2->addWidget( textLabel2_2, 0, 1 ); + tqlayout2->addWidget( textLabel2_2, 0, 1 ); - prefMencoderLayout->addLayout( layout2, 2, 0 ); + prefMencoderLayout->addLayout( tqlayout2, 2, 0 ); - tabWidget2 = new QTabWidget( this, "tabWidget2" ); + tabWidget2 = new TQTabWidget( this, "tabWidget2" ); - tab = new QWidget( tabWidget2, "tab" ); - tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout"); + tab = new TQWidget( tabWidget2, "tab" ); + tabLayout = new TQGridLayout( tab, 1, 1, 11, 6, "tabLayout"); - lbvCodecs = new QListBox( tab, "lbvCodecs" ); + lbvCodecs = new TQListBox( tab, "lbvCodecs" ); tabLayout->addMultiCellWidget( lbvCodecs, 0, 4, 0, 1 ); btnDeleteV = new KPushButton( tab, "btnDeleteV" ); - btnDeleteV->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, btnDeleteV->sizePolicy().hasHeightForWidth() ) ); + btnDeleteV->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, btnDeleteV->sizePolicy().hasHeightForWidth() ) ); btnDeleteV->setProperty( "stdItem", 28 ); tabLayout->addWidget( btnDeleteV, 5, 1 ); btnAddV = new KPushButton( tab, "btnAddV" ); - btnAddV->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, btnAddV->sizePolicy().hasHeightForWidth() ) ); + btnAddV->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, btnAddV->sizePolicy().hasHeightForWidth() ) ); btnAddV->setProperty( "stdItem", 27 ); tabLayout->addWidget( btnAddV, 5, 0 ); - textLabel1_3 = new QLabel( tab, "textLabel1_3" ); + textLabel1_3 = new TQLabel( tab, "textLabel1_3" ); tabLayout->addWidget( textLabel1_3, 0, 2 ); - textLabel2_3 = new QLabel( tab, "textLabel2_3" ); + textLabel2_3 = new TQLabel( tab, "textLabel2_3" ); tabLayout->addWidget( textLabel2_3, 1, 2 ); - textLabel1_2_3 = new QLabel( tab, "textLabel1_2_3" ); + textLabel1_2_3 = new TQLabel( tab, "textLabel1_2_3" ); tabLayout->addWidget( textLabel1_2_3, 3, 2 ); - layout9 = new QGridLayout( 0, 1, 1, 0, 6, "layout9"); + tqlayout9 = new TQGridLayout( 0, 1, 1, 0, 6, "tqlayout9"); - teOpt2 = new QTextEdit( tab, "teOpt2" ); + teOpt2 = new TQTextEdit( tab, "teOpt2" ); teOpt2->setEnabled( TRUE ); - layout9->addMultiCellWidget( teOpt2, 0, 1, 0, 0 ); - spacer5 = new QSpacerItem( 20, 81, QSizePolicy::Minimum, QSizePolicy::Expanding ); - layout9->addItem( spacer5, 1, 1 ); + tqlayout9->addMultiCellWidget( teOpt2, 0, 1, 0, 0 ); + spacer5 = new TQSpacerItem( 20, 81, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); + tqlayout9->addItem( spacer5, 1, 1 ); btnOpt2 = new KPushButton( tab, "btnOpt2" ); - btnOpt2->setMinimumSize( QSize( 22, 22 ) ); - btnOpt2->setMaximumSize( QSize( 22, 22 ) ); + btnOpt2->setMinimumSize( TQSize( 22, 22 ) ); + btnOpt2->setMaximumSize( TQSize( 22, 22 ) ); - layout9->addWidget( btnOpt2, 0, 1 ); + tqlayout9->addWidget( btnOpt2, 0, 1 ); - tabLayout->addLayout( layout9, 3, 3 ); + tabLayout->addLayout( tqlayout9, 3, 3 ); - layout10 = new QGridLayout( 0, 1, 1, 0, 6, "layout10"); + tqlayout10 = new TQGridLayout( 0, 1, 1, 0, 6, "tqlayout10"); - teOpt3 = new QTextEdit( tab, "teOpt3" ); + teOpt3 = new TQTextEdit( tab, "teOpt3" ); teOpt3->setEnabled( TRUE ); - layout10->addMultiCellWidget( teOpt3, 0, 1, 0, 0 ); + tqlayout10->addMultiCellWidget( teOpt3, 0, 1, 0, 0 ); btnOpt3 = new KPushButton( tab, "btnOpt3" ); - btnOpt3->setMinimumSize( QSize( 22, 22 ) ); - btnOpt3->setMaximumSize( QSize( 22, 22 ) ); + btnOpt3->setMinimumSize( TQSize( 22, 22 ) ); + btnOpt3->setMaximumSize( TQSize( 22, 22 ) ); - layout10->addWidget( btnOpt3, 0, 1 ); - spacer6 = new QSpacerItem( 20, 60, QSizePolicy::Minimum, QSizePolicy::Expanding ); - layout10->addItem( spacer6, 1, 1 ); + tqlayout10->addWidget( btnOpt3, 0, 1 ); + spacer6 = new TQSpacerItem( 20, 60, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); + tqlayout10->addItem( spacer6, 1, 1 ); - tabLayout->addMultiCellLayout( layout10, 4, 5, 3, 3 ); + tabLayout->addMultiCellLayout( tqlayout10, 4, 5, 3, 3 ); - textLabel1_2 = new QLabel( tab, "textLabel1_2" ); + textLabel1_2 = new TQLabel( tab, "textLabel1_2" ); tabLayout->addWidget( textLabel1_2, 2, 2 ); - layout8 = new QGridLayout( 0, 1, 1, 0, 6, "layout8"); - spacer4 = new QSpacerItem( 20, 90, QSizePolicy::Minimum, QSizePolicy::Expanding ); - layout8->addItem( spacer4, 1, 1 ); + tqlayout8 = new TQGridLayout( 0, 1, 1, 0, 6, "tqlayout8"); + spacer4 = new TQSpacerItem( 20, 90, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); + tqlayout8->addItem( spacer4, 1, 1 ); - teOpt1 = new QTextEdit( tab, "teOpt1" ); + teOpt1 = new TQTextEdit( tab, "teOpt1" ); teOpt1->setEnabled( TRUE ); - teOpt1->setWordWrap( QTextEdit::WidgetWidth ); + teOpt1->setWordWrap( TQTextEdit::WidgetWidth ); - layout8->addMultiCellWidget( teOpt1, 0, 1, 0, 0 ); + tqlayout8->addMultiCellWidget( teOpt1, 0, 1, 0, 0 ); btnOpt1 = new KPushButton( tab, "btnOpt1" ); - btnOpt1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, btnOpt1->sizePolicy().hasHeightForWidth() ) ); - btnOpt1->setMinimumSize( QSize( 22, 22 ) ); - btnOpt1->setMaximumSize( QSize( 22, 22 ) ); + btnOpt1->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, btnOpt1->sizePolicy().hasHeightForWidth() ) ); + btnOpt1->setMinimumSize( TQSize( 22, 22 ) ); + btnOpt1->setMaximumSize( TQSize( 22, 22 ) ); - layout8->addWidget( btnOpt1, 0, 1 ); + tqlayout8->addWidget( btnOpt1, 0, 1 ); - tabLayout->addLayout( layout8, 2, 3 ); + tabLayout->addLayout( tqlayout8, 2, 3 ); - textLabel1_2_3_2 = new QLabel( tab, "textLabel1_2_3_2" ); + textLabel1_2_3_2 = new TQLabel( tab, "textLabel1_2_3_2" ); tabLayout->addMultiCellWidget( textLabel1_2_3_2, 4, 5, 2, 2 ); - leFourcc = new QLineEdit( tab, "leFourcc" ); + leFourcc = new TQLineEdit( tab, "leFourcc" ); tabLayout->addWidget( leFourcc, 1, 3 ); - leVLabel = new QLineEdit( tab, "leVLabel" ); + leVLabel = new TQLineEdit( tab, "leVLabel" ); leVLabel->setEnabled( TRUE ); tabLayout->addWidget( leVLabel, 0, 3 ); - tabWidget2->insertTab( tab, QString::fromLatin1("") ); + tabWidget2->insertTab( tab, TQString::tqfromLatin1("") ); - tab_2 = new QWidget( tabWidget2, "tab_2" ); - tabLayout_2 = new QGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); + tab_2 = new TQWidget( tabWidget2, "tab_2" ); + tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); btnDeleteA = new KPushButton( tab_2, "btnDeleteA" ); - btnDeleteA->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, btnDeleteA->sizePolicy().hasHeightForWidth() ) ); + btnDeleteA->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, btnDeleteA->sizePolicy().hasHeightForWidth() ) ); btnDeleteA->setProperty( "stdItem", 28 ); tabLayout_2->addWidget( btnDeleteA, 2, 1 ); btnAddA = new KPushButton( tab_2, "btnAddA" ); - btnAddA->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, btnAddA->sizePolicy().hasHeightForWidth() ) ); + btnAddA->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, btnAddA->sizePolicy().hasHeightForWidth() ) ); btnAddA->setProperty( "stdItem", 27 ); tabLayout_2->addWidget( btnAddA, 2, 0 ); - lbaCodecs = new QListBox( tab_2, "lbaCodecs" ); + lbaCodecs = new TQListBox( tab_2, "lbaCodecs" ); tabLayout_2->addMultiCellWidget( lbaCodecs, 0, 1, 0, 1 ); - leALabel = new QLineEdit( tab_2, "leALabel" ); + leALabel = new TQLineEdit( tab_2, "leALabel" ); tabLayout_2->addWidget( leALabel, 0, 3 ); - textLabel3 = new QLabel( tab_2, "textLabel3" ); + textLabel3 = new TQLabel( tab_2, "textLabel3" ); tabLayout_2->addWidget( textLabel3, 0, 2 ); - layout11 = new QGridLayout( 0, 1, 1, 0, 6, "layout11"); + tqlayout11 = new TQGridLayout( 0, 1, 1, 0, 6, "tqlayout11"); - teOptA = new QTextEdit( tab_2, "teOptA" ); + teOptA = new TQTextEdit( tab_2, "teOptA" ); - layout11->addMultiCellWidget( teOptA, 0, 1, 0, 0 ); - spacer4_2 = new QSpacerItem( 20, 78, QSizePolicy::Minimum, QSizePolicy::Expanding ); - layout11->addItem( spacer4_2, 1, 1 ); + tqlayout11->addMultiCellWidget( teOptA, 0, 1, 0, 0 ); + spacer4_2 = new TQSpacerItem( 20, 78, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); + tqlayout11->addItem( spacer4_2, 1, 1 ); btnOptA = new KPushButton( tab_2, "btnOptA" ); - btnOptA->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, btnOptA->sizePolicy().hasHeightForWidth() ) ); - btnOptA->setMinimumSize( QSize( 22, 22 ) ); - btnOptA->setMaximumSize( QSize( 22, 22 ) ); + btnOptA->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, btnOptA->sizePolicy().hasHeightForWidth() ) ); + btnOptA->setMinimumSize( TQSize( 22, 22 ) ); + btnOptA->setMaximumSize( TQSize( 22, 22 ) ); - layout11->addWidget( btnOptA, 0, 1 ); + tqlayout11->addWidget( btnOptA, 0, 1 ); - tabLayout_2->addMultiCellLayout( layout11, 1, 2, 3, 3 ); + tabLayout_2->addMultiCellLayout( tqlayout11, 1, 2, 3, 3 ); - textLabel1_2_2_2 = new QLabel( tab_2, "textLabel1_2_2_2" ); - textLabel1_2_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, textLabel1_2_2_2->sizePolicy().hasHeightForWidth() ) ); + textLabel1_2_2_2 = new TQLabel( tab_2, "textLabel1_2_2_2" ); + textLabel1_2_2_2->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, textLabel1_2_2_2->sizePolicy().hasHeightForWidth() ) ); tabLayout_2->addMultiCellWidget( textLabel1_2_2_2, 1, 2, 2, 2 ); - tabWidget2->insertTab( tab_2, QString::fromLatin1("") ); + tabWidget2->insertTab( tab_2, TQString::tqfromLatin1("") ); prefMencoderLayout->addMultiCellWidget( tabWidget2, 0, 0, 0, 2 ); - textLabel1 = new QLabel( this, "textLabel1" ); - textLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) ); - QFont textLabel1_font( textLabel1->font() ); + textLabel1 = new TQLabel( this, "textLabel1" ); + textLabel1->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) ); + TQFont textLabel1_font( textLabel1->font() ); textLabel1_font.setBold( TRUE ); textLabel1->setFont( textLabel1_font ); prefMencoderLayout->addWidget( textLabel1, 1, 0 ); bReset = new KPushButton( this, "bReset" ); - bReset->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, bReset->sizePolicy().hasHeightForWidth() ) ); + bReset->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bReset->sizePolicy().hasHeightForWidth() ) ); bReset->setProperty( "stdItem", 21 ); prefMencoderLayout->addMultiCellWidget( bReset, 1, 2, 2, 2 ); - spacer5_2 = new QSpacerItem( 121, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer5_2 = new TQSpacerItem( 121, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); prefMencoderLayout->addItem( spacer5_2, 1, 1 ); languageChange(); - resize( QSize(672, 587).expandedTo(minimumSizeHint()) ); + resize( TQSize(672, 587).expandedTo(tqminimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections - connect( lbvCodecs, SIGNAL( currentChanged(QListBoxItem*) ), this, SLOT( lbvCodecsCurrentChanged(QListBoxItem*) ) ); - connect( teOpt1, SIGNAL( textChanged() ), this, SLOT( teOpt1TextChanged() ) ); - connect( teOpt2, SIGNAL( textChanged() ), this, SLOT( teOpt2TextChanged() ) ); - connect( leVLabel, SIGNAL( textChanged(const QString&) ), this, SLOT( leVLabelTextChanged(const QString&) ) ); - connect( teOpt3, SIGNAL( textChanged() ), this, SLOT( teOpt3TextChanged() ) ); - connect( lbaCodecs, SIGNAL( currentChanged(QListBoxItem*) ), this, SLOT( lbaCodecsCurrentChanged(QListBoxItem*) ) ); - connect( teOptA, SIGNAL( textChanged() ), this, SLOT( teOptATextChanged() ) ); - connect( leALabel, SIGNAL( textChanged(const QString&) ), this, SLOT( leALabelTextChanged(const QString&) ) ); - connect( btnOpt1, SIGNAL( clicked() ), this, SLOT( btnOpt1Clicked() ) ); - connect( btnOpt2, SIGNAL( clicked() ), this, SLOT( btnOpt2Clicked() ) ); - connect( btnOpt3, SIGNAL( clicked() ), this, SLOT( btnOpt3Clicked() ) ); - connect( btnOptA, SIGNAL( clicked() ), this, SLOT( btnOptAClicked() ) ); - connect( btnAddA, SIGNAL( clicked() ), this, SLOT( btnAddAClicked() ) ); - connect( btnAddV, SIGNAL( clicked() ), this, SLOT( btnAddVClicked() ) ); - connect( btnDeleteA, SIGNAL( clicked() ), this, SLOT( btnDeleteAClicked() ) ); - connect( btnDeleteV, SIGNAL( clicked() ), this, SLOT( btnDeleteVClicked() ) ); - connect( leFourcc, SIGNAL( textChanged(const QString&) ), this, SLOT( leFourccTextChanged(const QString&) ) ); - connect( bReset, SIGNAL( clicked() ), this, SLOT( bResetClicked() ) ); + connect( lbvCodecs, TQT_SIGNAL( currentChanged(TQListBoxItem*) ), this, TQT_SLOT( lbvCodecsCurrentChanged(TQListBoxItem*) ) ); + connect( teOpt1, TQT_SIGNAL( textChanged() ), this, TQT_SLOT( teOpt1TextChanged() ) ); + connect( teOpt2, TQT_SIGNAL( textChanged() ), this, TQT_SLOT( teOpt2TextChanged() ) ); + connect( leVLabel, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( leVLabelTextChanged(const TQString&) ) ); + connect( teOpt3, TQT_SIGNAL( textChanged() ), this, TQT_SLOT( teOpt3TextChanged() ) ); + connect( lbaCodecs, TQT_SIGNAL( currentChanged(TQListBoxItem*) ), this, TQT_SLOT( lbaCodecsCurrentChanged(TQListBoxItem*) ) ); + connect( teOptA, TQT_SIGNAL( textChanged() ), this, TQT_SLOT( teOptATextChanged() ) ); + connect( leALabel, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( leALabelTextChanged(const TQString&) ) ); + connect( btnOpt1, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnOpt1Clicked() ) ); + connect( btnOpt2, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnOpt2Clicked() ) ); + connect( btnOpt3, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnOpt3Clicked() ) ); + connect( btnOptA, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnOptAClicked() ) ); + connect( btnAddA, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnAddAClicked() ) ); + connect( btnAddV, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnAddVClicked() ) ); + connect( btnDeleteA, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnDeleteAClicked() ) ); + connect( btnDeleteV, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnDeleteVClicked() ) ); + connect( leFourcc, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( leFourccTextChanged(const TQString&) ) ); + connect( bReset, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bResetClicked() ) ); // tab order setTabOrder( lbvCodecs, leVLabel ); @@ -274,7 +274,7 @@ prefMencoder::prefMencoder( QWidget* parent, const char* name, WFlags fl ) */ prefMencoder::~prefMencoder() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -313,29 +313,29 @@ void prefMencoder::languageChange() lbvCodecs->insertItem( tr2i18n( "ffvHuff" ) ); lbvCodecs->insertItem( tr2i18n( "ASUS v1" ) ); lbvCodecs->insertItem( tr2i18n( "ASUS v2" ) ); - btnDeleteV->setAccel( QKeySequence( QString::null ) ); + btnDeleteV->setAccel( TQKeySequence( TQString() ) ); textLabel1_3->setText( tr2i18n( "label" ) ); textLabel2_3->setText( tr2i18n( "fourcc" ) ); textLabel1_2_3->setText( tr2i18n( "first pass" ) ); - btnOpt2->setText( QString::null ); - btnOpt3->setText( QString::null ); + btnOpt2->setText( TQString() ); + btnOpt3->setText( TQString() ); textLabel1_2->setText( tr2i18n( "one pass" ) ); - teOpt1->setText( QString::null ); - btnOpt1->setText( QString::null ); + teOpt1->setText( TQString() ); + btnOpt1->setText( TQString() ); textLabel1_2_3_2->setText( tr2i18n( "second pass" ) ); tabWidget2->changeTab( tab, tr2i18n( "Video codecs" ) ); lbaCodecs->clear(); lbaCodecs->insertItem( tr2i18n( "New Item" ) ); textLabel3->setText( tr2i18n( "label" ) ); - btnOptA->setText( QString::null ); + btnOptA->setText( TQString() ); textLabel1_2_2_2->setText( tr2i18n( "options" ) ); tabWidget2->changeTab( tab_2, tr2i18n( "Audio codecs" ) ); textLabel1->setText( tr2i18n( "Available variables" ) ); } -void prefMencoder::lbvCodecsCurrentChanged(QListBoxItem*) +void prefMencoder::lbvCodecsCurrentChanged(TQListBoxItem*) { - qWarning( "prefMencoder::lbvCodecsCurrentChanged(QListBoxItem*): Not implemented yet" ); + qWarning( "prefMencoder::lbvCodecsCurrentChanged(TQListBoxItem*): Not implemented yet" ); } void prefMencoder::teOpt1TextChanged() @@ -348,9 +348,9 @@ void prefMencoder::teOpt2TextChanged() qWarning( "prefMencoder::teOpt2TextChanged(): Not implemented yet" ); } -void prefMencoder::leVLabelTextChanged(const QString&) +void prefMencoder::leVLabelTextChanged(const TQString&) { - qWarning( "prefMencoder::leVLabelTextChanged(const QString&): Not implemented yet" ); + qWarning( "prefMencoder::leVLabelTextChanged(const TQString&): Not implemented yet" ); } void prefMencoder::teOpt3TextChanged() @@ -358,9 +358,9 @@ void prefMencoder::teOpt3TextChanged() qWarning( "prefMencoder::teOpt3TextChanged(): Not implemented yet" ); } -void prefMencoder::lbaCodecsCurrentChanged(QListBoxItem*) +void prefMencoder::lbaCodecsCurrentChanged(TQListBoxItem*) { - qWarning( "prefMencoder::lbaCodecsCurrentChanged(QListBoxItem*): Not implemented yet" ); + qWarning( "prefMencoder::lbaCodecsCurrentChanged(TQListBoxItem*): Not implemented yet" ); } void prefMencoder::teOptATextChanged() @@ -368,9 +368,9 @@ void prefMencoder::teOptATextChanged() qWarning( "prefMencoder::teOptATextChanged(): Not implemented yet" ); } -void prefMencoder::leALabelTextChanged(const QString&) +void prefMencoder::leALabelTextChanged(const TQString&) { - qWarning( "prefMencoder::leALabelTextChanged(const QString&): Not implemented yet" ); + qWarning( "prefMencoder::leALabelTextChanged(const TQString&): Not implemented yet" ); } void prefMencoder::btnOpt1Clicked() @@ -413,9 +413,9 @@ void prefMencoder::btnDeleteAClicked() qWarning( "prefMencoder::btnDeleteAClicked(): Not implemented yet" ); } -void prefMencoder::leFourccTextChanged(const QString&) +void prefMencoder::leFourccTextChanged(const TQString&) { - qWarning( "prefMencoder::leFourccTextChanged(const QString&): Not implemented yet" ); + qWarning( "prefMencoder::leFourccTextChanged(const TQString&): Not implemented yet" ); } void prefMencoder::bResetClicked() diff --git a/src/prefMencoder.ui b/src/prefMencoder.ui index e12aec6..a22a519 100644 --- a/src/prefMencoder.ui +++ b/src/prefMencoder.ui @@ -1,10 +1,10 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>prefMencoder</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>prefMencoder</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -19,15 +19,15 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget" row="2" column="0"> + <widget class="TQLayoutWidget" row="2" column="0"> <property name="name"> - <cstring>layout2</cstring> + <cstring>tqlayout2</cstring> </property> <grid> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -52,7 +52,7 @@ $VIDBR $AUDBR</string> </property> </widget> - <widget class="QLabel" row="0" column="1"> + <widget class="TQLabel" row="0" column="1"> <property name="name"> <cstring>textLabel2_2</cstring> </property> @@ -74,11 +74,11 @@ audio bitrate</string> </widget> </grid> </widget> - <widget class="QTabWidget" row="0" column="0" rowspan="1" colspan="3"> + <widget class="TQTabWidget" row="0" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>tabWidget2</cstring> </property> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -89,7 +89,7 @@ audio bitrate</string> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QListBox" row="0" column="0" rowspan="5" colspan="2"> + <widget class="TQListBox" row="0" column="0" rowspan="5" colspan="2"> <item> <property name="text"> <string>XviD</string> @@ -219,7 +219,7 @@ audio bitrate</string> <number>27</number> </property> </widget> - <widget class="QLabel" row="0" column="2"> + <widget class="TQLabel" row="0" column="2"> <property name="name"> <cstring>textLabel1_3</cstring> </property> @@ -230,7 +230,7 @@ audio bitrate</string> <cstring>leVLabel</cstring> </property> </widget> - <widget class="QLabel" row="1" column="2"> + <widget class="TQLabel" row="1" column="2"> <property name="name"> <cstring>textLabel2_3</cstring> </property> @@ -238,7 +238,7 @@ audio bitrate</string> <string>fourcc</string> </property> </widget> - <widget class="QLabel" row="3" column="2"> + <widget class="TQLabel" row="3" column="2"> <property name="name"> <cstring>textLabel1_2_3</cstring> </property> @@ -246,15 +246,15 @@ audio bitrate</string> <string>first pass</string> </property> </widget> - <widget class="QLayoutWidget" row="3" column="3"> + <widget class="TQLayoutWidget" row="3" column="3"> <property name="name"> - <cstring>layout9</cstring> + <cstring>tqlayout9</cstring> </property> <grid> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QTextEdit" row="0" column="0" rowspan="2" colspan="1"> + <widget class="TQTextEdit" row="0" column="0" rowspan="2" colspan="1"> <property name="name"> <cstring>teOpt2</cstring> </property> @@ -272,7 +272,7 @@ audio bitrate</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>81</height> @@ -283,13 +283,13 @@ audio bitrate</string> <property name="name"> <cstring>btnOpt2</cstring> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>22</width> <height>22</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>22</width> <height>22</height> @@ -301,15 +301,15 @@ audio bitrate</string> </widget> </grid> </widget> - <widget class="QLayoutWidget" row="4" column="3" rowspan="2" colspan="1"> + <widget class="TQLayoutWidget" row="4" column="3" rowspan="2" colspan="1"> <property name="name"> - <cstring>layout10</cstring> + <cstring>tqlayout10</cstring> </property> <grid> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QTextEdit" row="0" column="0" rowspan="2" colspan="1"> + <widget class="TQTextEdit" row="0" column="0" rowspan="2" colspan="1"> <property name="name"> <cstring>teOpt3</cstring> </property> @@ -321,13 +321,13 @@ audio bitrate</string> <property name="name"> <cstring>btnOpt3</cstring> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>22</width> <height>22</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>22</width> <height>22</height> @@ -347,7 +347,7 @@ audio bitrate</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>60</height> @@ -356,7 +356,7 @@ audio bitrate</string> </spacer> </grid> </widget> - <widget class="QLabel" row="2" column="2"> + <widget class="TQLabel" row="2" column="2"> <property name="name"> <cstring>textLabel1_2</cstring> </property> @@ -364,9 +364,9 @@ audio bitrate</string> <string>one pass</string> </property> </widget> - <widget class="QLayoutWidget" row="2" column="3"> + <widget class="TQLayoutWidget" row="2" column="3"> <property name="name"> - <cstring>layout8</cstring> + <cstring>tqlayout8</cstring> </property> <grid> <property name="name"> @@ -382,14 +382,14 @@ audio bitrate</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>90</height> </size> </property> </spacer> - <widget class="QTextEdit" row="0" column="0" rowspan="2" colspan="1"> + <widget class="TQTextEdit" row="0" column="0" rowspan="2" colspan="1"> <property name="name"> <cstring>teOpt1</cstring> </property> @@ -415,13 +415,13 @@ audio bitrate</string> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>22</width> <height>22</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>22</width> <height>22</height> @@ -433,7 +433,7 @@ audio bitrate</string> </widget> </grid> </widget> - <widget class="QLabel" row="4" column="2" rowspan="2" colspan="1"> + <widget class="TQLabel" row="4" column="2" rowspan="2" colspan="1"> <property name="name"> <cstring>textLabel1_2_3_2</cstring> </property> @@ -441,12 +441,12 @@ audio bitrate</string> <string>second pass</string> </property> </widget> - <widget class="QLineEdit" row="1" column="3"> + <widget class="TQLineEdit" row="1" column="3"> <property name="name"> <cstring>leFourcc</cstring> </property> </widget> - <widget class="QLineEdit" row="0" column="3"> + <widget class="TQLineEdit" row="0" column="3"> <property name="name"> <cstring>leVLabel</cstring> </property> @@ -456,7 +456,7 @@ audio bitrate</string> </widget> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>tab</cstring> </property> @@ -499,7 +499,7 @@ audio bitrate</string> <number>27</number> </property> </widget> - <widget class="QListBox" row="0" column="0" rowspan="2" colspan="2"> + <widget class="TQListBox" row="0" column="0" rowspan="2" colspan="2"> <item> <property name="text"> <string>New Item</string> @@ -509,12 +509,12 @@ audio bitrate</string> <cstring>lbaCodecs</cstring> </property> </widget> - <widget class="QLineEdit" row="0" column="3"> + <widget class="TQLineEdit" row="0" column="3"> <property name="name"> <cstring>leALabel</cstring> </property> </widget> - <widget class="QLabel" row="0" column="2"> + <widget class="TQLabel" row="0" column="2"> <property name="name"> <cstring>textLabel3</cstring> </property> @@ -525,15 +525,15 @@ audio bitrate</string> <cstring>leALabel</cstring> </property> </widget> - <widget class="QLayoutWidget" row="1" column="3" rowspan="2" colspan="1"> + <widget class="TQLayoutWidget" row="1" column="3" rowspan="2" colspan="1"> <property name="name"> - <cstring>layout11</cstring> + <cstring>tqlayout11</cstring> </property> <grid> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QTextEdit" row="0" column="0" rowspan="2" colspan="1"> + <widget class="TQTextEdit" row="0" column="0" rowspan="2" colspan="1"> <property name="name"> <cstring>teOptA</cstring> </property> @@ -548,7 +548,7 @@ audio bitrate</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>78</height> @@ -567,13 +567,13 @@ audio bitrate</string> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>22</width> <height>22</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>22</width> <height>22</height> @@ -585,7 +585,7 @@ audio bitrate</string> </widget> </grid> </widget> - <widget class="QLabel" row="1" column="2" rowspan="2" colspan="1"> + <widget class="TQLabel" row="1" column="2" rowspan="2" colspan="1"> <property name="name"> <cstring>textLabel1_2_2_2</cstring> </property> @@ -604,7 +604,7 @@ audio bitrate</string> </grid> </widget> </widget> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -651,7 +651,7 @@ audio bitrate</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>121</width> <height>21</height> @@ -663,9 +663,9 @@ audio bitrate</string> <connections> <connection> <sender>lbvCodecs</sender> - <signal>currentChanged(QListBoxItem*)</signal> + <signal>currentChanged(TQListBoxItem*)</signal> <receiver>prefMencoder</receiver> - <slot>lbvCodecsCurrentChanged(QListBoxItem*)</slot> + <slot>lbvCodecsCurrentChanged(TQListBoxItem*)</slot> </connection> <connection> <sender>teOpt1</sender> @@ -681,9 +681,9 @@ audio bitrate</string> </connection> <connection> <sender>leVLabel</sender> - <signal>textChanged(const QString&)</signal> + <signal>textChanged(const TQString&)</signal> <receiver>prefMencoder</receiver> - <slot>leVLabelTextChanged(const QString&)</slot> + <slot>leVLabelTextChanged(const TQString&)</slot> </connection> <connection> <sender>teOpt3</sender> @@ -693,9 +693,9 @@ audio bitrate</string> </connection> <connection> <sender>lbaCodecs</sender> - <signal>currentChanged(QListBoxItem*)</signal> + <signal>currentChanged(TQListBoxItem*)</signal> <receiver>prefMencoder</receiver> - <slot>lbaCodecsCurrentChanged(QListBoxItem*)</slot> + <slot>lbaCodecsCurrentChanged(TQListBoxItem*)</slot> </connection> <connection> <sender>teOptA</sender> @@ -705,9 +705,9 @@ audio bitrate</string> </connection> <connection> <sender>leALabel</sender> - <signal>textChanged(const QString&)</signal> + <signal>textChanged(const TQString&)</signal> <receiver>prefMencoder</receiver> - <slot>leALabelTextChanged(const QString&)</slot> + <slot>leALabelTextChanged(const TQString&)</slot> </connection> <connection> <sender>btnOpt1</sender> @@ -759,9 +759,9 @@ audio bitrate</string> </connection> <connection> <sender>leFourcc</sender> - <signal>textChanged(const QString&)</signal> + <signal>textChanged(const TQString&)</signal> <receiver>prefMencoder</receiver> - <slot>leFourccTextChanged(const QString&)</slot> + <slot>leFourccTextChanged(const TQString&)</slot> </connection> <connection> <sender>bReset</sender> @@ -790,15 +790,15 @@ audio bitrate</string> <tabstop>btnDeleteA</tabstop> <tabstop>tabWidget2</tabstop> </tabstops> -<slots> - <slot>lbvCodecsCurrentChanged(QListBoxItem*)</slot> +<Q_SLOTS> + <slot>lbvCodecsCurrentChanged(TQListBoxItem*)</slot> <slot>teOpt1TextChanged()</slot> <slot>teOpt2TextChanged()</slot> - <slot>leVLabelTextChanged(const QString &)</slot> + <slot>leVLabelTextChanged(const TQString &)</slot> <slot>teOpt3TextChanged()</slot> - <slot>lbaCodecsCurrentChanged(QListBoxItem*)</slot> + <slot>lbaCodecsCurrentChanged(TQListBoxItem*)</slot> <slot>teOptATextChanged()</slot> - <slot>leALabelTextChanged(const QString&)</slot> + <slot>leALabelTextChanged(const TQString&)</slot> <slot>btnOpt1Clicked()</slot> <slot>btnOpt2Clicked()</slot> <slot>btnOpt3Clicked()</slot> @@ -807,10 +807,10 @@ audio bitrate</string> <slot>btnDeleteVClicked()</slot> <slot>btnAddAClicked()</slot> <slot>btnDeleteAClicked()</slot> - <slot>leFourccTextChanged(const QString&)</slot> + <slot>leFourccTextChanged(const TQString&)</slot> <slot>bResetClicked()</slot> -</slots> -<layoutdefaults spacing="6" margin="11"/> +</Q_SLOTS> +<tqlayoutdefaults spacing="6" margin="11"/> <includehints> <includehint>kpushbutton.h</includehint> <includehint>kpushbutton.h</includehint> diff --git a/src/prefpreview.cpp b/src/prefpreview.cpp index 54a959e..cb2fad6 100644 --- a/src/prefpreview.cpp +++ b/src/prefpreview.cpp @@ -9,101 +9,101 @@ #include "prefpreview.h" -#include <qvariant.h> -#include <qpushbutton.h> -#include <qbuttongroup.h> -#include <qradiobutton.h> -#include <qwidgetstack.h> -#include <qlabel.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> +#include <tqvariant.h> +#include <tqpushbutton.h> +#include <tqbuttongroup.h> +#include <tqradiobutton.h> +#include <tqwidgetstack.h> +#include <tqlabel.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> /* - * Constructs a prefPreview as a child of 'parent', with the + * Constructs a prefPreview as a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. */ -prefPreview::prefPreview( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +prefPreview::prefPreview( TQWidget* tqparent, const char* name, WFlags fl ) + : TQWidget( tqparent, name, fl ) { if ( !name ) setName( "prefPreview" ); - prefPreviewLayout = new QGridLayout( this, 1, 1, 11, 6, "prefPreviewLayout"); + prefPreviewLayout = new TQGridLayout( this, 1, 1, 11, 6, "prefPreviewLayout"); - buttonGroup1 = new QButtonGroup( this, "buttonGroup1" ); - buttonGroup1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, buttonGroup1->sizePolicy().hasHeightForWidth() ) ); - buttonGroup1->setFrameShape( QButtonGroup::NoFrame ); + buttonGroup1 = new TQButtonGroup( this, "buttonGroup1" ); + buttonGroup1->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, buttonGroup1->sizePolicy().hasHeightForWidth() ) ); + buttonGroup1->setFrameShape( TQButtonGroup::NoFrame ); buttonGroup1->setColumnLayout(0, Qt::Vertical ); - buttonGroup1->layout()->setSpacing( 6 ); - buttonGroup1->layout()->setMargin( 11 ); - buttonGroup1Layout = new QGridLayout( buttonGroup1->layout() ); - buttonGroup1Layout->setAlignment( Qt::AlignTop ); + buttonGroup1->tqlayout()->setSpacing( 6 ); + buttonGroup1->tqlayout()->setMargin( 11 ); + buttonGroup1Layout = new TQGridLayout( buttonGroup1->tqlayout() ); + buttonGroup1Layout->tqsetAlignment( TQt::AlignTop ); - rbInternal = new QRadioButton( buttonGroup1, "rbInternal" ); + rbInternal = new TQRadioButton( buttonGroup1, "rbInternal" ); buttonGroup1Layout->addWidget( rbInternal, 0, 0 ); - rbMplayer = new QRadioButton( buttonGroup1, "rbMplayer" ); + rbMplayer = new TQRadioButton( buttonGroup1, "rbMplayer" ); buttonGroup1Layout->addWidget( rbMplayer, 1, 0 ); prefPreviewLayout->addWidget( buttonGroup1, 0, 0 ); - spacer5 = new QSpacerItem( 21, 210, QSizePolicy::Minimum, QSizePolicy::Expanding ); + spacer5 = new TQSpacerItem( 21, 210, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); prefPreviewLayout->addItem( spacer5, 2, 0 ); - wsOptions = new QWidgetStack( this, "wsOptions" ); - wsOptions->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, wsOptions->sizePolicy().hasHeightForWidth() ) ); - wsOptions->setFrameShape( QWidgetStack::NoFrame ); - wsOptions->setFrameShadow( QWidgetStack::Sunken ); + wsOptions = new TQWidgetStack( this, "wsOptions" ); + wsOptions->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, wsOptions->sizePolicy().hasHeightForWidth() ) ); + wsOptions->setFrameShape( TQWidgetStack::NoFrame ); + wsOptions->setFrameShadow( TQWidgetStack::Sunken ); wsOptions->setLineWidth( 1 ); wsOptions->setMidLineWidth( 0 ); - wspInternal = new QWidget( wsOptions, "wspInternal" ); - wspInternalLayout = new QGridLayout( wspInternal, 1, 1, 11, 6, "wspInternalLayout"); + wspInternal = new TQWidget( wsOptions, "wspInternal" ); + wspInternalLayout = new TQGridLayout( wspInternal, 1, 1, 11, 6, "wspInternalLayout"); - textLabel1 = new QLabel( wspInternal, "textLabel1" ); - QFont textLabel1_font( textLabel1->font() ); + textLabel1 = new TQLabel( wspInternal, "textLabel1" ); + TQFont textLabel1_font( textLabel1->font() ); textLabel1_font.setBold( TRUE ); textLabel1->setFont( textLabel1_font ); wspInternalLayout->addWidget( textLabel1, 0, 0 ); - ckUseGL = new QCheckBox( wspInternal, "ckUseGL" ); + ckUseGL = new TQCheckBox( wspInternal, "ckUseGL" ); wspInternalLayout->addWidget( ckUseGL, 1, 0 ); - spacer1 = new QSpacerItem( 21, 30, QSizePolicy::Minimum, QSizePolicy::Expanding ); + spacer1 = new TQSpacerItem( 21, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); wspInternalLayout->addItem( spacer1, 2, 0 ); wsOptions->addWidget( wspInternal, 0 ); - wspMplayer = new QWidget( wsOptions, "wspMplayer" ); - wspMplayerLayout = new QGridLayout( wspMplayer, 1, 1, 11, 6, "wspMplayerLayout"); + wspMplayer = new TQWidget( wsOptions, "wspMplayer" ); + wspMplayerLayout = new TQGridLayout( wspMplayer, 1, 1, 11, 6, "wspMplayerLayout"); - textLabel3 = new QLabel( wspMplayer, "textLabel3" ); + textLabel3 = new TQLabel( wspMplayer, "textLabel3" ); wspMplayerLayout->addWidget( textLabel3, 1, 0 ); - textLabel4 = new QLabel( wspMplayer, "textLabel4" ); - textLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, textLabel4->sizePolicy().hasHeightForWidth() ) ); + textLabel4 = new TQLabel( wspMplayer, "textLabel4" ); + textLabel4->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, textLabel4->sizePolicy().hasHeightForWidth() ) ); wspMplayerLayout->addWidget( textLabel4, 2, 0 ); - cbVout = new QComboBox( FALSE, wspMplayer, "cbVout" ); + cbVout = new TQComboBox( FALSE, wspMplayer, "cbVout" ); wspMplayerLayout->addWidget( cbVout, 1, 1 ); - cbAout = new QComboBox( FALSE, wspMplayer, "cbAout" ); - cbAout->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, cbAout->sizePolicy().hasHeightForWidth() ) ); + cbAout = new TQComboBox( FALSE, wspMplayer, "cbAout" ); + cbAout->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, cbAout->sizePolicy().hasHeightForWidth() ) ); wspMplayerLayout->addWidget( cbAout, 2, 1 ); - spacer3 = new QSpacerItem( 81, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer3 = new TQSpacerItem( 81, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); wspMplayerLayout->addItem( spacer3, 1, 2 ); - spacer6 = new QSpacerItem( 20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding ); + spacer6 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); wspMplayerLayout->addItem( spacer6, 3, 1 ); - textLabel2 = new QLabel( wspMplayer, "textLabel2" ); - QFont textLabel2_font( textLabel2->font() ); + textLabel2 = new TQLabel( wspMplayer, "textLabel2" ); + TQFont textLabel2_font( textLabel2->font() ); textLabel2_font.setBold( TRUE ); textLabel2->setFont( textLabel2_font ); @@ -111,15 +111,15 @@ prefPreview::prefPreview( QWidget* parent, const char* name, WFlags fl ) wsOptions->addWidget( wspMplayer, 1 ); prefPreviewLayout->addWidget( wsOptions, 1, 0 ); - spacer4 = new QSpacerItem( 230, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer4 = new TQSpacerItem( 230, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); prefPreviewLayout->addItem( spacer4, 0, 1 ); languageChange(); - resize( QSize(536, 470).expandedTo(minimumSizeHint()) ); + resize( TQSize(536, 470).expandedTo(tqminimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections - connect( rbInternal, SIGNAL( clicked() ), this, SLOT( rbInternalClick() ) ); - connect( rbMplayer, SIGNAL( clicked() ), this, SLOT( rbMplayerClick() ) ); + connect( rbInternal, TQT_SIGNAL( clicked() ), this, TQT_SLOT( rbInternalClick() ) ); + connect( rbMplayer, TQT_SIGNAL( clicked() ), this, TQT_SLOT( rbMplayerClick() ) ); } /* @@ -127,7 +127,7 @@ prefPreview::prefPreview( QWidget* parent, const char* name, WFlags fl ) */ prefPreview::~prefPreview() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -137,11 +137,11 @@ prefPreview::~prefPreview() void prefPreview::languageChange() { setCaption( tr2i18n( "Form1" ) ); - buttonGroup1->setTitle( QString::null ); + buttonGroup1->setTitle( TQString() ); rbInternal->setText( tr2i18n( "&Internal Player" ) ); - rbInternal->setAccel( QKeySequence( tr2i18n( "Alt+I" ) ) ); + rbInternal->setAccel( TQKeySequence( tr2i18n( "Alt+I" ) ) ); rbMplayer->setText( tr2i18n( "MPlayer" ) ); - rbMplayer->setAccel( QKeySequence( tr2i18n( "Alt+M" ) ) ); + rbMplayer->setAccel( TQKeySequence( tr2i18n( "Alt+M" ) ) ); textLabel1->setText( tr2i18n( "Internal viewer options" ) ); ckUseGL->setText( tr2i18n( "use OpenGL" ) ); textLabel3->setText( tr2i18n( "Video output" ) ); diff --git a/src/prefpreview.ui b/src/prefpreview.ui index 901b1ce..97ea4df 100644 --- a/src/prefpreview.ui +++ b/src/prefpreview.ui @@ -1,10 +1,10 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>prefPreview</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>prefPreview</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -19,7 +19,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QButtonGroup" row="0" column="0"> + <widget class="TQButtonGroup" row="0" column="0"> <property name="name"> <cstring>buttonGroup1</cstring> </property> @@ -41,7 +41,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QRadioButton" row="0" column="0"> + <widget class="TQRadioButton" row="0" column="0"> <property name="name"> <cstring>rbInternal</cstring> </property> @@ -52,7 +52,7 @@ <string>Alt+I</string> </property> </widget> - <widget class="QRadioButton" row="1" column="0"> + <widget class="TQRadioButton" row="1" column="0"> <property name="name"> <cstring>rbMplayer</cstring> </property> @@ -75,14 +75,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>21</width> <height>210</height> </size> </property> </spacer> - <widget class="QWidgetStack" row="1" column="0"> + <widget class="TQWidgetStack" row="1" column="0"> <property name="name"> <cstring>wsOptions</cstring> </property> @@ -106,7 +106,7 @@ <property name="midLineWidth"> <number>0</number> </property> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>wspInternal</cstring> </property> @@ -117,7 +117,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -130,7 +130,7 @@ <string>Internal viewer options</string> </property> </widget> - <widget class="QCheckBox" row="1" column="0"> + <widget class="TQCheckBox" row="1" column="0"> <property name="name"> <cstring>ckUseGL</cstring> </property> @@ -148,7 +148,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>21</width> <height>30</height> @@ -157,7 +157,7 @@ </spacer> </grid> </widget> - <widget class="QWidget"> + <widget class="TQWidget"> <property name="name"> <cstring>wspMplayer</cstring> </property> @@ -168,7 +168,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>textLabel3</cstring> </property> @@ -176,7 +176,7 @@ <string>Video output</string> </property> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>textLabel4</cstring> </property> @@ -192,7 +192,7 @@ <string>Audio output</string> </property> </widget> - <widget class="QComboBox" row="1" column="1"> + <widget class="TQComboBox" row="1" column="1"> <item> <property name="text"> <string>X11</string> @@ -217,7 +217,7 @@ <cstring>cbVout</cstring> </property> </widget> - <widget class="QComboBox" row="2" column="1"> + <widget class="TQComboBox" row="2" column="1"> <item> <property name="text"> <string>ALSA</string> @@ -255,7 +255,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>81</width> <height>21</height> @@ -272,14 +272,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>21</height> </size> </property> </spacer> - <widget class="QLabel" row="0" column="0" rowspan="1" colspan="3"> + <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -305,7 +305,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>230</width> <height>21</height> @@ -328,9 +328,9 @@ <slot>rbMplayerClick()</slot> </connection> </connections> -<slots> +<Q_SLOTS> <slot>rbInternalClick()</slot> <slot>rbMplayerClick()</slot> -</slots> -<layoutdefaults spacing="6" margin="11"/> +</Q_SLOTS> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/src/titlefactor.cpp b/src/titlefactor.cpp index e09fe73..0d48c28 100644 --- a/src/titlefactor.cpp +++ b/src/titlefactor.cpp @@ -9,16 +9,16 @@ #include "titlefactor.h" -#include <qvariant.h> -#include <qpushbutton.h> -#include <qlabel.h> -#include <qgroupbox.h> -#include <qslider.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qimage.h> -#include <qpixmap.h> +#include <tqvariant.h> +#include <tqpushbutton.h> +#include <tqlabel.h> +#include <tqgroupbox.h> +#include <tqslider.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> +#include <tqimage.h> +#include <tqpixmap.h> static const unsigned char img0_titlefactor[] = { 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, @@ -243,64 +243,64 @@ static const unsigned char img0_titlefactor[] = { /* - * Constructs a titleFactor as a child of 'parent', with the + * Constructs a titleFactor as a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. */ -titleFactor::titleFactor( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +titleFactor::titleFactor( TQWidget* tqparent, const char* name, WFlags fl ) + : TQWidget( tqparent, name, fl ) { - QImage img; + TQImage img; img.loadFromData( img0_titlefactor, sizeof( img0_titlefactor ), "PNG" ); image0 = img; if ( !name ) setName( "titleFactor" ); setIcon( image0 ); - titleFactorLayout = new QGridLayout( this, 1, 1, 5, 6, "titleFactorLayout"); + titleFactorLayout = new TQGridLayout( this, 1, 1, 5, 6, "titleFactorLayout"); - lbTitle = new QLabel( this, "lbTitle" ); - QFont lbTitle_font( lbTitle->font() ); + lbTitle = new TQLabel( this, "lbTitle" ); + TQFont lbTitle_font( lbTitle->font() ); lbTitle_font.setBold( TRUE ); lbTitle->setFont( lbTitle_font ); titleFactorLayout->addWidget( lbTitle, 0, 0 ); - gbTitle = new QGroupBox( this, "gbTitle" ); - gbTitle->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, gbTitle->sizePolicy().hasHeightForWidth() ) ); - gbTitle->setAlignment( int( QGroupBox::AlignVCenter ) ); + gbTitle = new TQGroupBox( this, "gbTitle" ); + gbTitle->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, gbTitle->sizePolicy().hasHeightForWidth() ) ); + gbTitle->tqsetAlignment( int( TQGroupBox::AlignVCenter ) ); gbTitle->setFlat( FALSE ); gbTitle->setCheckable( TRUE ); gbTitle->setChecked( FALSE ); gbTitle->setColumnLayout(0, Qt::Vertical ); - gbTitle->layout()->setSpacing( 1 ); - gbTitle->layout()->setMargin( 6 ); - gbTitleLayout = new QGridLayout( gbTitle->layout() ); - gbTitleLayout->setAlignment( Qt::AlignTop ); + gbTitle->tqlayout()->setSpacing( 1 ); + gbTitle->tqlayout()->setMargin( 6 ); + gbTitleLayout = new TQGridLayout( gbTitle->tqlayout() ); + gbTitleLayout->tqsetAlignment( TQt::AlignTop ); - tFactor = new QLabel( gbTitle, "tFactor" ); + tFactor = new TQLabel( gbTitle, "tFactor" ); gbTitleLayout->addWidget( tFactor, 1, 1 ); - slFactor = new QSlider( gbTitle, "slFactor" ); + slFactor = new TQSlider( gbTitle, "slFactor" ); slFactor->setMinValue( 100 ); slFactor->setMaxValue( 250 ); - slFactor->setOrientation( QSlider::Horizontal ); - slFactor->setTickmarks( QSlider::Below ); + slFactor->setOrientation( Qt::Horizontal ); + slFactor->setTickmarks( TQSlider::Below ); slFactor->setTickInterval( 10 ); gbTitleLayout->addWidget( slFactor, 1, 0 ); titleFactorLayout->addWidget( gbTitle, 1, 0 ); - spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); + spacer1 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); titleFactorLayout->addItem( spacer1, 2, 0 ); languageChange(); - resize( QSize(551, 115).expandedTo(minimumSizeHint()) ); + resize( TQSize(551, 115).expandedTo(tqminimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections - connect( slFactor, SIGNAL( sliderPressed() ), this, SLOT( slFactorPressed() ) ); - connect( slFactor, SIGNAL( sliderReleased() ), this, SLOT( slFactorReleased() ) ); - connect( slFactor, SIGNAL( valueChanged(int) ), this, SLOT( slFactor_valueChanged(int) ) ); - connect( gbTitle, SIGNAL( toggled(bool) ), this, SLOT( ckAutoClicked(bool) ) ); + connect( slFactor, TQT_SIGNAL( sliderPressed() ), this, TQT_SLOT( slFactorPressed() ) ); + connect( slFactor, TQT_SIGNAL( sliderReleased() ), this, TQT_SLOT( slFactorReleased() ) ); + connect( slFactor, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( slFactor_valueChanged(int) ) ); + connect( gbTitle, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( ckAutoClicked(bool) ) ); } /* @@ -308,7 +308,7 @@ titleFactor::titleFactor( QWidget* parent, const char* name, WFlags fl ) */ titleFactor::~titleFactor() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* diff --git a/src/titlefactor.ui b/src/titlefactor.ui index 4c0f145..fdda003 100644 --- a/src/titlefactor.ui +++ b/src/titlefactor.ui @@ -1,10 +1,10 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>titleFactor</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>titleFactor</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -25,7 +25,7 @@ <property name="margin"> <number>5</number> </property> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>lbTitle</cstring> </property> @@ -38,7 +38,7 @@ <string>Shrink Factor for Title %1</string> </property> </widget> - <widget class="QGroupBox" row="1" column="0"> + <widget class="TQGroupBox" row="1" column="0"> <property name="name"> <cstring>gbTitle</cstring> </property> @@ -53,7 +53,7 @@ <property name="title"> <string>Change Factor</string> </property> - <property name="alignment"> + <property name="tqalignment"> <set>AlignVCenter</set> </property> <property name="flat"> @@ -75,7 +75,7 @@ <property name="spacing"> <number>1</number> </property> - <widget class="QLabel" row="1" column="1"> + <widget class="TQLabel" row="1" column="1"> <property name="name"> <cstring>tFactor</cstring> </property> @@ -83,7 +83,7 @@ <string>0.00</string> </property> </widget> - <widget class="QSlider" row="1" column="0"> + <widget class="TQSlider" row="1" column="0"> <property name="name"> <cstring>slFactor</cstring> </property> @@ -115,7 +115,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>20</height> @@ -155,11 +155,11 @@ <slot>ckAutoClicked(bool)</slot> </connection> </connections> -<slots> +<Q_SLOTS> <slot>slFactor_valueChanged( int )</slot> <slot>slFactorPressed()</slot> <slot>slFactorReleased()</slot> <slot>ckAutoClicked(bool)</slot> -</slots> -<layoutdefaults spacing="6" margin="11"/> +</Q_SLOTS> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/src/viewmpeg2.cpp b/src/viewmpeg2.cpp index 66a966a..ae8c0f7 100644 --- a/src/viewmpeg2.cpp +++ b/src/viewmpeg2.cpp @@ -9,17 +9,17 @@ #include "viewmpeg2.h" -#include <qvariant.h> -#include <qpushbutton.h> -#include <qframe.h> -#include <qtoolbutton.h> -#include <qslider.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qimage.h> -#include <qpixmap.h> +#include <tqvariant.h> +#include <tqpushbutton.h> +#include <tqframe.h> +#include <tqtoolbutton.h> +#include <tqslider.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> +#include <tqimage.h> +#include <tqpixmap.h> static const unsigned char img0_viewmpeg2[] = { 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, @@ -125,13 +125,13 @@ static const unsigned char img2_viewmpeg2[] = { /* - * Constructs a ViewMPEG2 as a child of 'parent', with the + * Constructs a ViewMPEG2 as a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. */ -ViewMPEG2::ViewMPEG2( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +ViewMPEG2::ViewMPEG2( TQWidget* tqparent, const char* name, WFlags fl ) + : TQWidget( tqparent, name, fl ) { - QImage img; + TQImage img; img.loadFromData( img0_viewmpeg2, sizeof( img0_viewmpeg2 ), "PNG" ); image0 = img; img.loadFromData( img1_viewmpeg2, sizeof( img1_viewmpeg2 ), "PNG" ); @@ -140,51 +140,51 @@ ViewMPEG2::ViewMPEG2( QWidget* parent, const char* name, WFlags fl ) image2 = img; if ( !name ) setName( "ViewMPEG2" ); - setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) ); - setSizeIncrement( QSize( 0, 0 ) ); - setBaseSize( QSize( 0, 0 ) ); + tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) ); + setSizeIncrement( TQSize( 0, 0 ) ); + setBaseSize( TQSize( 0, 0 ) ); setIcon( image0 ); - ViewMPEG2Layout = new QGridLayout( this, 1, 1, 2, 6, "ViewMPEG2Layout"); + ViewMPEG2Layout = new TQGridLayout( this, 1, 1, 2, 6, "ViewMPEG2Layout"); - frame7 = new QFrame( this, "frame7" ); - frame7->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, frame7->sizePolicy().hasHeightForWidth() ) ); - frame7->setMaximumSize( QSize( 32767, 50 ) ); - frame7->setFrameShape( QFrame::StyledPanel ); - frame7->setFrameShadow( QFrame::Raised ); - frame7Layout = new QGridLayout( frame7, 1, 1, 11, 6, "frame7Layout"); + frame7 = new TQFrame( this, "frame7" ); + frame7->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, frame7->sizePolicy().hasHeightForWidth() ) ); + frame7->setMaximumSize( TQSize( 32767, 50 ) ); + frame7->setFrameShape( TQFrame::StyledPanel ); + frame7->setFrameShadow( TQFrame::Raised ); + frame7Layout = new TQGridLayout( frame7, 1, 1, 11, 6, "frame7Layout"); - bStop = new QToolButton( frame7, "bStop" ); - bStop->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, bStop->sizePolicy().hasHeightForWidth() ) ); - bStop->setIconSet( QIconSet( image1 ) ); + bStop = new TQToolButton( frame7, "bStop" ); + bStop->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)1, 0, 0, bStop->sizePolicy().hasHeightForWidth() ) ); + bStop->setIconSet( TQIconSet( image1 ) ); frame7Layout->addWidget( bStop, 0, 0 ); - bPlay = new QToolButton( frame7, "bPlay" ); - bPlay->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, bPlay->sizePolicy().hasHeightForWidth() ) ); - bPlay->setIconSet( QIconSet( image2 ) ); + bPlay = new TQToolButton( frame7, "bPlay" ); + bPlay->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)1, 0, 0, bPlay->sizePolicy().hasHeightForWidth() ) ); + bPlay->setIconSet( TQIconSet( image2 ) ); frame7Layout->addWidget( bPlay, 0, 1 ); - slider = new QSlider( frame7, "slider" ); - slider->setOrientation( QSlider::Horizontal ); + slider = new TQSlider( frame7, "slider" ); + slider->setOrientation( Qt::Horizontal ); frame7Layout->addWidget( slider, 0, 2 ); ViewMPEG2Layout->addWidget( frame7, 1, 0 ); - label = new QLabel( this, "label" ); - label->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)2, (QSizePolicy::SizeType)2, 0, 0, label->sizePolicy().hasHeightForWidth() ) ); + label = new TQLabel( this, "label" ); + label->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)2, (TQSizePolicy::SizeType)2, 0, 0, label->sizePolicy().hasHeightForWidth() ) ); ViewMPEG2Layout->addWidget( label, 0, 0 ); languageChange(); - resize( QSize(320, 320).expandedTo(minimumSizeHint()) ); + resize( TQSize(320, 320).expandedTo(tqminimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections - connect( bStop, SIGNAL( clicked() ), this, SLOT( bStopClick() ) ); - connect( bPlay, SIGNAL( clicked() ), this, SLOT( bPlayClick() ) ); - connect( slider, SIGNAL( sliderReleased() ), this, SLOT( sliderReleased() ) ); - connect( slider, SIGNAL( sliderPressed() ), this, SLOT( sliderPressed() ) ); + connect( bStop, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bStopClick() ) ); + connect( bPlay, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bPlayClick() ) ); + connect( slider, TQT_SIGNAL( sliderReleased() ), this, TQT_SLOT( sliderReleased() ) ); + connect( slider, TQT_SIGNAL( sliderPressed() ), this, TQT_SLOT( sliderPressed() ) ); } /* @@ -192,7 +192,7 @@ ViewMPEG2::ViewMPEG2( QWidget* parent, const char* name, WFlags fl ) */ ViewMPEG2::~ViewMPEG2() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -202,8 +202,8 @@ ViewMPEG2::~ViewMPEG2() void ViewMPEG2::languageChange() { setCaption( tr2i18n( "k9Copy - Title Preview" ) ); - bStop->setText( QString::null ); - bPlay->setText( QString::null ); + bStop->setText( TQString() ); + bPlay->setText( TQString() ); } void ViewMPEG2::sliderReleased() diff --git a/src/viewmpeg2.ui b/src/viewmpeg2.ui index e327884..1ec06b9 100755 --- a/src/viewmpeg2.ui +++ b/src/viewmpeg2.ui @@ -1,10 +1,10 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>ViewMPEG2</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>ViewMPEG2</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -45,7 +45,7 @@ <property name="margin"> <number>2</number> </property> - <widget class="QFrame" row="1" column="0"> + <widget class="TQFrame" row="1" column="0"> <property name="name"> <cstring>frame7</cstring> </property> @@ -57,7 +57,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>32767</width> <height>50</height> @@ -73,7 +73,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QToolButton" row="0" column="0"> + <widget class="TQToolButton" row="0" column="0"> <property name="name"> <cstring>bStop</cstring> </property> @@ -92,7 +92,7 @@ <iconset>image1</iconset> </property> </widget> - <widget class="QToolButton" row="0" column="1"> + <widget class="TQToolButton" row="0" column="1"> <property name="name"> <cstring>bPlay</cstring> </property> @@ -111,7 +111,7 @@ <iconset>image2</iconset> </property> </widget> - <widget class="QSlider" row="0" column="2"> + <widget class="TQSlider" row="0" column="2"> <property name="name"> <cstring>slider</cstring> </property> @@ -121,7 +121,7 @@ </widget> </grid> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>label</cstring> </property> @@ -173,11 +173,11 @@ <slot>sliderPressed()</slot> </connection> </connections> -<slots> +<Q_SLOTS> <slot>sliderReleased()</slot> <slot>bStopClick()</slot> <slot>bPlayClick()</slot> <slot>sliderPressed()</slot> -</slots> -<layoutdefaults spacing="6" margin="11"/> +</Q_SLOTS> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> |