summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fastscale/scale.cpp124
-rw-r--r--src/fastscale/scale.h10
-rw-r--r--src/k3b.cpp262
-rw-r--r--src/k3b.h31
-rw-r--r--src/k3bappdevicemanager.cpp28
-rw-r--r--src/k3bappdevicemanager.h7
-rw-r--r--src/k3bapplication.cpp62
-rw-r--r--src/k3bapplication.h14
-rw-r--r--src/k3baudioplayer.cpp188
-rw-r--r--src/k3baudioplayer.h88
-rw-r--r--src/k3baudioprojectinterface.cpp20
-rw-r--r--src/k3baudioprojectinterface.h16
-rw-r--r--src/k3bburnprogressdialog.cpp46
-rw-r--r--src/k3bburnprogressdialog.h11
-rw-r--r--src/k3bcontentsview.cpp22
-rw-r--r--src/k3bcontentsview.h15
-rw-r--r--src/k3bdatamodewidget.cpp16
-rw-r--r--src/k3bdatamodewidget.h7
-rw-r--r--src/k3bdataprojectinterface.cpp34
-rw-r--r--src/k3bdataprojectinterface.h26
-rw-r--r--src/k3bdebuggingoutputdialog.cpp72
-rw-r--r--src/k3bdebuggingoutputdialog.h15
-rw-r--r--src/k3bdebuggingoutputfile.cpp30
-rw-r--r--src/k3bdebuggingoutputfile.h23
-rw-r--r--src/k3bdiroperator.cpp36
-rw-r--r--src/k3bdiroperator.h19
-rw-r--r--src/k3bdirview.cpp110
-rw-r--r--src/k3bdirview.h27
-rw-r--r--src/k3bdiskinfoview.cpp180
-rw-r--r--src/k3bdiskinfoview.h5
-rw-r--r--src/k3bemptydiscwaiter.cpp198
-rw-r--r--src/k3bemptydiscwaiter.h29
-rw-r--r--src/k3bfiletreecombobox.cpp168
-rw-r--r--src/k3bfiletreecombobox.h23
-rw-r--r--src/k3bfiletreeview.cpp220
-rw-r--r--src/k3bfiletreeview.h32
-rw-r--r--src/k3bfileview.cpp48
-rw-r--r--src/k3bfileview.h7
-rw-r--r--src/k3bfirstrun.cpp24
-rw-r--r--src/k3bfirstrun.h5
-rw-r--r--src/k3bflatbutton.cpp74
-rw-r--r--src/k3bflatbutton.h47
-rw-r--r--src/k3binteractiondialog.cpp202
-rw-r--r--src/k3binteractiondialog.h65
-rw-r--r--src/k3binterface.cpp20
-rw-r--r--src/k3binterface.h4
-rw-r--r--src/k3bjobinterface.cpp92
-rw-r--r--src/k3bjobinterface.h23
-rw-r--r--src/k3bjobprogressdialog.cpp284
-rw-r--r--src/k3bjobprogressdialog.h85
-rw-r--r--src/k3bjobprogressosd.cpp70
-rw-r--r--src/k3bjobprogressosd.h39
-rw-r--r--src/k3blsofwrapper.cpp18
-rw-r--r--src/k3blsofwrapper.h6
-rw-r--r--src/k3blsofwrapperdialog.cpp32
-rw-r--r--src/k3blsofwrapperdialog.h5
-rw-r--r--src/k3bmediacache.cpp54
-rw-r--r--src/k3bmediacache.h19
-rw-r--r--src/k3bmediacontentsview.cpp20
-rw-r--r--src/k3bmediacontentsview.h3
-rw-r--r--src/k3bmediaselectioncombobox.cpp98
-rw-r--r--src/k3bmediaselectioncombobox.h11
-rw-r--r--src/k3bmediaselectiondialog.cpp32
-rw-r--r--src/k3bmediaselectiondialog.h19
-rw-r--r--src/k3bmedium.cpp70
-rw-r--r--src/k3bmedium.h10
-rw-r--r--src/k3bminibutton.cpp24
-rw-r--r--src/k3bminibutton.h17
-rw-r--r--src/k3bmusicbrainz.cpp16
-rw-r--r--src/k3bmusicbrainz.h10
-rw-r--r--src/k3bpassivepopup.cpp96
-rw-r--r--src/k3bpassivepopup.h17
-rw-r--r--src/k3bprojectinterface.cpp20
-rw-r--r--src/k3bprojectinterface.h14
-rw-r--r--src/k3bprojectmanager.cpp104
-rw-r--r--src/k3bprojectmanager.h11
-rw-r--r--src/k3bprojecttabwidget.cpp72
-rw-r--r--src/k3bprojecttabwidget.h27
-rw-r--r--src/k3bservicemenuinstaller.cpp28
-rw-r--r--src/k3bservicemenuinstaller.h14
-rw-r--r--src/k3bsidepanel.cpp36
-rw-r--r--src/k3bsidepanel.h13
-rw-r--r--src/k3bsplash.cpp72
-rw-r--r--src/k3bsplash.h23
-rw-r--r--src/k3bstatusbarmanager.cpp104
-rw-r--r--src/k3bstatusbarmanager.h31
-rw-r--r--src/k3bsystemproblemdialog.cpp186
-rw-r--r--src/k3bsystemproblemdialog.h39
-rw-r--r--src/k3btempdirselectionwidget.cpp88
-rw-r--r--src/k3btempdirselectionwidget.h29
-rw-r--r--src/k3bthemedheader.cpp50
-rw-r--r--src/k3bthemedheader.h21
-rw-r--r--src/k3bthemedlabel.cpp36
-rw-r--r--src/k3bthemedlabel.h7
-rw-r--r--src/k3bthememanager.cpp76
-rw-r--r--src/k3bthememanager.h63
-rw-r--r--src/k3btimeoutwidget.cpp42
-rw-r--r--src/k3btimeoutwidget.h19
-rw-r--r--src/k3btooltip.cpp68
-rw-r--r--src/k3btooltip.h37
-rw-r--r--src/k3btrm.cpp8
-rw-r--r--src/k3btrm.h4
-rw-r--r--src/k3bwelcomewidget.cpp140
-rw-r--r--src/k3bwelcomewidget.h68
-rw-r--r--src/k3bwidgetshoweffect.cpp44
-rw-r--r--src/k3bwidgetshoweffect.h31
-rw-r--r--src/k3bwriterselectionwidget.cpp114
-rw-r--r--src/k3bwriterselectionwidget.h15
-rw-r--r--src/k3bwritingmodewidget.cpp30
-rw-r--r--src/k3bwritingmodewidget.h5
-rw-r--r--src/main.cpp10
-rw-r--r--src/misc/k3bblankingdialog.cpp102
-rw-r--r--src/misc/k3bblankingdialog.h25
-rw-r--r--src/misc/k3bcdcopydialog.cpp168
-rw-r--r--src/misc/k3bcdcopydialog.h45
-rw-r--r--src/misc/k3bcdimagewritingdialog.cpp282
-rw-r--r--src/misc/k3bcdimagewritingdialog.h47
-rw-r--r--src/misc/k3bdvdcopydialog.cpp96
-rw-r--r--src/misc/k3bdvdcopydialog.h23
-rw-r--r--src/misc/k3bdvdformattingdialog.cpp56
-rw-r--r--src/misc/k3bdvdformattingdialog.h9
-rw-r--r--src/misc/k3bisoimagewritingdialog.cpp170
-rw-r--r--src/misc/k3bisoimagewritingdialog.h35
-rw-r--r--src/option/base_k3bcddboptiontab.ui58
-rw-r--r--src/option/base_k3bmiscoptiontab.ui46
-rw-r--r--src/option/base_k3bpluginoptiontab.ui12
-rw-r--r--src/option/base_k3bthemeoptiontab.ui32
-rw-r--r--src/option/k3bburningoptiontab.cpp84
-rw-r--r--src/option/k3bburningoptiontab.h37
-rw-r--r--src/option/k3bcddboptiontab.cpp134
-rw-r--r--src/option/k3bcddboptiontab.h3
-rw-r--r--src/option/k3bdeviceoptiontab.cpp26
-rw-r--r--src/option/k3bdeviceoptiontab.h11
-rw-r--r--src/option/k3bdevicewidget.cpp118
-rw-r--r--src/option/k3bdevicewidget.h39
-rw-r--r--src/option/k3bexternalbinoptiontab.cpp28
-rw-r--r--src/option/k3bexternalbinoptiontab.h11
-rw-r--r--src/option/k3bexternalbinwidget.cpp116
-rw-r--r--src/option/k3bexternalbinwidget.h29
-rw-r--r--src/option/k3bmiscoptiontab.cpp34
-rw-r--r--src/option/k3bmiscoptiontab.h5
-rw-r--r--src/option/k3bnotifyoptiontab.cpp8
-rw-r--r--src/option/k3bnotifyoptiontab.h7
-rw-r--r--src/option/k3boptiondialog.cpp58
-rw-r--r--src/option/k3boptiondialog.h11
-rw-r--r--src/option/k3bpluginoptiontab.cpp34
-rw-r--r--src/option/k3bpluginoptiontab.h3
-rw-r--r--src/option/k3bthemeoptiontab.cpp56
-rw-r--r--src/option/k3bthemeoptiontab.h3
-rw-r--r--src/projects/base_k3badvanceddataimagesettings.ui24
-rw-r--r--src/projects/base_k3baudiocdtextallfieldswidget.ui50
-rw-r--r--src/projects/base_k3baudiocdtextwidget.ui38
-rw-r--r--src/projects/base_k3baudiotrackwidget.ui46
-rw-r--r--src/projects/base_k3bbootimageview.ui60
-rw-r--r--src/projects/base_k3bdataimagesettings.ui32
-rw-r--r--src/projects/base_k3bdatavolumedescwidget.ui74
-rw-r--r--src/projects/base_k3bmovixoptionswidget.ui50
-rw-r--r--src/projects/k3baudioburndialog.cpp86
-rw-r--r--src/projects/k3baudioburndialog.h35
-rw-r--r--src/projects/k3baudiocdtextwidget.cpp66
-rw-r--r--src/projects/k3baudiocdtextwidget.h3
-rw-r--r--src/projects/k3baudiodatasourceeditwidget.cpp34
-rw-r--r--src/projects/k3baudiodatasourceeditwidget.h7
-rw-r--r--src/projects/k3baudiodatasourceviewitem.cpp18
-rw-r--r--src/projects/k3baudiodatasourceviewitem.h8
-rw-r--r--src/projects/k3baudioeditorwidget.cpp210
-rw-r--r--src/projects/k3baudioeditorwidget.h53
-rw-r--r--src/projects/k3baudiotrackaddingdialog.cpp82
-rw-r--r--src/projects/k3baudiotrackaddingdialog.h37
-rw-r--r--src/projects/k3baudiotrackdialog.cpp26
-rw-r--r--src/projects/k3baudiotrackdialog.h7
-rw-r--r--src/projects/k3baudiotrackplayer.cpp64
-rw-r--r--src/projects/k3baudiotrackplayer.h7
-rw-r--r--src/projects/k3baudiotracksplitdialog.cpp76
-rw-r--r--src/projects/k3baudiotracksplitdialog.h11
-rw-r--r--src/projects/k3baudiotracktrmlookupdialog.cpp44
-rw-r--r--src/projects/k3baudiotracktrmlookupdialog.h13
-rw-r--r--src/projects/k3baudiotrackview.cpp250
-rw-r--r--src/projects/k3baudiotrackview.h55
-rw-r--r--src/projects/k3baudiotrackviewitem.cpp40
-rw-r--r--src/projects/k3baudiotrackviewitem.h12
-rw-r--r--src/projects/k3baudiotrackwidget.cpp46
-rw-r--r--src/projects/k3baudiotrackwidget.h10
-rw-r--r--src/projects/k3baudioview.cpp14
-rw-r--r--src/projects/k3baudioview.h7
-rw-r--r--src/projects/k3bbootimagedialog.cpp4
-rw-r--r--src/projects/k3bbootimagedialog.h3
-rw-r--r--src/projects/k3bbootimageview.cpp72
-rw-r--r--src/projects/k3bbootimageview.h3
-rw-r--r--src/projects/k3bdataadvancedimagesettingswidget.cpp130
-rw-r--r--src/projects/k3bdataadvancedimagesettingswidget.h43
-rw-r--r--src/projects/k3bdataburndialog.cpp70
-rw-r--r--src/projects/k3bdataburndialog.h19
-rw-r--r--src/projects/k3bdatadirtreeview.cpp130
-rw-r--r--src/projects/k3bdatadirtreeview.h25
-rw-r--r--src/projects/k3bdatafileview.cpp120
-rw-r--r--src/projects/k3bdatafileview.h31
-rw-r--r--src/projects/k3bdataimagesettingswidget.cpp60
-rw-r--r--src/projects/k3bdataimagesettingswidget.h3
-rw-r--r--src/projects/k3bdatamultisessioncombobox.cpp16
-rw-r--r--src/projects/k3bdatamultisessioncombobox.h7
-rw-r--r--src/projects/k3bdatapropertiesdialog.cpp118
-rw-r--r--src/projects/k3bdatapropertiesdialog.h25
-rw-r--r--src/projects/k3bdatasessionimportdialog.cpp22
-rw-r--r--src/projects/k3bdatasessionimportdialog.h11
-rw-r--r--src/projects/k3bdataurladdingdialog.cpp230
-rw-r--r--src/projects/k3bdataurladdingdialog.h53
-rw-r--r--src/projects/k3bdataview.cpp52
-rw-r--r--src/projects/k3bdataview.h9
-rw-r--r--src/projects/k3bdataviewitem.cpp106
-rw-r--r--src/projects/k3bdataviewitem.h44
-rw-r--r--src/projects/k3bdatavolumedescwidget.cpp18
-rw-r--r--src/projects/k3bdatavolumedescwidget.h3
-rw-r--r--src/projects/k3bdvdburndialog.cpp54
-rw-r--r--src/projects/k3bdvdburndialog.h13
-rw-r--r--src/projects/k3bdvdview.cpp8
-rw-r--r--src/projects/k3bdvdview.h5
-rw-r--r--src/projects/k3bencodingconverter.cpp24
-rw-r--r--src/projects/k3bencodingconverter.h14
-rw-r--r--src/projects/k3bfillstatusdisplay.cpp220
-rw-r--r--src/projects/k3bfillstatusdisplay.h32
-rw-r--r--src/projects/k3bmixedburndialog.cpp62
-rw-r--r--src/projects/k3bmixedburndialog.h17
-rw-r--r--src/projects/k3bmixeddirtreeview.cpp32
-rw-r--r--src/projects/k3bmixeddirtreeview.h11
-rw-r--r--src/projects/k3bmixedview.cpp30
-rw-r--r--src/projects/k3bmixedview.h11
-rw-r--r--src/projects/k3bmovixburndialog.cpp36
-rw-r--r--src/projects/k3bmovixburndialog.h9
-rw-r--r--src/projects/k3bmovixdvdburndialog.cpp28
-rw-r--r--src/projects/k3bmovixdvdburndialog.h7
-rw-r--r--src/projects/k3bmovixdvdview.cpp8
-rw-r--r--src/projects/k3bmovixdvdview.h5
-rw-r--r--src/projects/k3bmovixlistview.cpp82
-rw-r--r--src/projects/k3bmovixlistview.h29
-rw-r--r--src/projects/k3bmovixoptionswidget.cpp44
-rw-r--r--src/projects/k3bmovixoptionswidget.h3
-rw-r--r--src/projects/k3bmovixview.cpp46
-rw-r--r--src/projects/k3bmovixview.h15
-rw-r--r--src/projects/k3bmusicbrainzjob.cpp44
-rw-r--r--src/projects/k3bmusicbrainzjob.h13
-rw-r--r--src/projects/k3bprojectburndialog.cpp84
-rw-r--r--src/projects/k3bprojectburndialog.h31
-rw-r--r--src/projects/k3bprojectplugindialog.cpp10
-rw-r--r--src/projects/k3bprojectplugindialog.h3
-rw-r--r--src/projects/k3bvcdburndialog.cpp332
-rw-r--r--src/projects/k3bvcdburndialog.h107
-rw-r--r--src/projects/k3bvcdlistview.cpp80
-rw-r--r--src/projects/k3bvcdlistview.h29
-rw-r--r--src/projects/k3bvcdlistviewitem.cpp20
-rw-r--r--src/projects/k3bvcdlistviewitem.h16
-rw-r--r--src/projects/k3bvcdtrackdialog.cpp366
-rw-r--r--src/projects/k3bvcdtrackdialog.h91
-rw-r--r--src/projects/k3bvcdview.cpp16
-rw-r--r--src/projects/k3bvcdview.h13
-rw-r--r--src/projects/k3bvideodvdburndialog.cpp30
-rw-r--r--src/projects/k3bvideodvdburndialog.h7
-rw-r--r--src/projects/k3bvideodvdview.cpp14
-rw-r--r--src/projects/k3bvideodvdview.h5
-rw-r--r--src/projects/k3bview.cpp42
-rw-r--r--src/projects/k3bview.h17
-rw-r--r--src/projects/kostore/koStore.cc132
-rw-r--r--src/projects/kostore/koStore.h86
-rw-r--r--src/projects/kostore/koStoreBase.h4
-rw-r--r--src/projects/kostore/koStoreDevice.h25
-rw-r--r--src/projects/kostore/koZipStore.cc32
-rw-r--r--src/projects/kostore/koZipStore.h20
-rw-r--r--src/rip/base_k3baudiorippingoptionwidget.ui46
-rw-r--r--src/rip/base_k3bcddbpatternwidget.ui26
-rw-r--r--src/rip/k3baudiocdlistview.cpp16
-rw-r--r--src/rip/k3baudiocdlistview.h7
-rw-r--r--src/rip/k3baudiocdview.cpp194
-rw-r--r--src/rip/k3baudiocdview.h23
-rw-r--r--src/rip/k3baudioconvertingoptionwidget.cpp80
-rw-r--r--src/rip/k3baudioconvertingoptionwidget.h11
-rw-r--r--src/rip/k3baudioprojectconvertingdialog.cpp70
-rw-r--r--src/rip/k3baudioprojectconvertingdialog.h15
-rw-r--r--src/rip/k3baudioprojectconvertingthread.cpp102
-rw-r--r--src/rip/k3baudioprojectconvertingthread.h26
-rw-r--r--src/rip/k3baudioripjob.cpp18
-rw-r--r--src/rip/k3baudioripjob.h15
-rw-r--r--src/rip/k3baudiorippingdialog.cpp132
-rw-r--r--src/rip/k3baudiorippingdialog.h27
-rw-r--r--src/rip/k3baudioripthread.cpp118
-rw-r--r--src/rip/k3baudioripthread.h29
-rw-r--r--src/rip/k3bcddbpatternwidget.cpp54
-rw-r--r--src/rip/k3bcddbpatternwidget.h9
-rw-r--r--src/rip/k3bcuefilewriter.cpp18
-rw-r--r--src/rip/k3bcuefilewriter.h14
-rw-r--r--src/rip/k3bpatternparser.cpp94
-rw-r--r--src/rip/k3bpatternparser.h10
-rw-r--r--src/rip/k3bvideocdinfo.cpp72
-rw-r--r--src/rip/k3bvideocdinfo.h35
-rw-r--r--src/rip/k3bvideocdrip.cpp138
-rw-r--r--src/rip/k3bvideocdrip.h15
-rw-r--r--src/rip/k3bvideocdrippingdialog.cpp118
-rw-r--r--src/rip/k3bvideocdrippingdialog.h27
-rw-r--r--src/rip/k3bvideocdrippingoptions.h20
-rw-r--r--src/rip/k3bvideocdview.cpp178
-rw-r--r--src/rip/k3bvideocdview.h23
-rw-r--r--src/rip/videodvd/base_k3bvideodvdrippingwidget.ui122
-rw-r--r--src/rip/videodvd/k3bvideodvdrippingdialog.cpp162
-rw-r--r--src/rip/videodvd/k3bvideodvdrippingdialog.h19
-rw-r--r--src/rip/videodvd/k3bvideodvdrippingjob.cpp50
-rw-r--r--src/rip/videodvd/k3bvideodvdrippingjob.h17
-rw-r--r--src/rip/videodvd/k3bvideodvdrippingpreview.cpp20
-rw-r--r--src/rip/videodvd/k3bvideodvdrippingpreview.h13
-rw-r--r--src/rip/videodvd/k3bvideodvdrippingtitlelistview.cpp144
-rw-r--r--src/rip/videodvd/k3bvideodvdrippingtitlelistview.h11
-rw-r--r--src/rip/videodvd/k3bvideodvdrippingview.cpp60
-rw-r--r--src/rip/videodvd/k3bvideodvdrippingview.h11
-rw-r--r--src/rip/videodvd/k3bvideodvdrippingwidget.cpp124
-rw-r--r--src/rip/videodvd/k3bvideodvdrippingwidget.h17
313 files changed, 8040 insertions, 7886 deletions
diff --git a/src/fastscale/scale.cpp b/src/fastscale/scale.cpp
index e2332fe..35928de 100644
--- a/src/fastscale/scale.cpp
+++ b/src/fastscale/scale.cpp
@@ -6,7 +6,7 @@
// ImageMagick code begin
// ----------------------
-// This code is ImageMagick's resize code, adapted for QImage, with
+// This code is ImageMagick's resize code, adapted for TQImage, with
// fastfloat class added as an optimization.
// The original license text follows.
@@ -69,9 +69,9 @@
#endif
#endif
-// Qt
-#include <qimage.h>
-#include <qcolor.h>
+// TQt
+#include <tqimage.h>
+#include <tqcolor.h>
#include <kdeversion.h>
#include <kcpuinfo.h>
@@ -86,8 +86,8 @@
namespace ImageUtils {
-#define Max QMAX
-#define Min QMIN
+#define Max TQMAX
+#define Min TQMIN
// mustn't be less than used precision (i.e. 1/fastfloat::RATIO)
#define MagickEpsilon 0.0002
@@ -423,7 +423,7 @@ static fastfloat Triangle(const fastfloat x,const fastfloat)
return(0.0);
}
-static void HorizontalFilter(const QImage& source,QImage& destination,
+static void HorizontalFilter(const TQImage& source,TQImage& destination,
const fastfloat x_factor,const fastfloat blur,
ContributionInfo *contribution, Filter filter, fastfloat filtersupport)
{
@@ -492,23 +492,23 @@ static void HorizontalFilter(const QImage& source,QImage& destination,
{
int px = contribution[i].pixel;
int py = y;
- QRgb p = reinterpret_cast< QRgb* >( source.jumpTable()[ py ])[ px ];
- red+=contribution[i].weight*qRed(p);
- green+=contribution[i].weight*qGreen(p);
- blue+=contribution[i].weight*qBlue(p);
- alpha+=contribution[i].weight*qAlpha(p);
+ TQRgb p = reinterpret_cast< TQRgb* >( const_cast<TQImage&>(source).jumpTable()[ py ])[ px ];
+ red+=contribution[i].weight*tqRed(p);
+ green+=contribution[i].weight*tqGreen(p);
+ blue+=contribution[i].weight*tqBlue(p);
+ alpha+=contribution[i].weight*tqAlpha(p);
}
- QRgb pix = qRgba(
+ TQRgb pix = tqRgba(
fasttolong( red < 0 ? 0 : red > 255 ? 255 : red + 0.5 ),
fasttolong( green < 0 ? 0 : green > 255 ? 255 : green + 0.5 ),
fasttolong( blue < 0 ? 0 : blue > 255 ? 255 : blue + 0.5 ),
fasttolong( alpha < 0 ? 0 : alpha > 255 ? 255 : alpha + 0.5 ));
- reinterpret_cast< QRgb* >( destination.jumpTable()[ y ])[ x ] = pix;
+ reinterpret_cast< TQRgb* >( destination.jumpTable()[ y ])[ x ] = pix;
}
}
}
-static void VerticalFilter(const QImage& source,QImage& destination,
+static void VerticalFilter(const TQImage& source,TQImage& destination,
const fastfloat y_factor,const fastfloat blur,
ContributionInfo *contribution, Filter filter, fastfloat filtersupport )
{
@@ -577,23 +577,23 @@ static void VerticalFilter(const QImage& source,QImage& destination,
{
int px = x;
int py = contribution[i].pixel;
- QRgb p = reinterpret_cast< QRgb* >( source.jumpTable()[ py ])[ px ];
- red+=contribution[i].weight*qRed(p);
- green+=contribution[i].weight*qGreen(p);
- blue+=contribution[i].weight*qBlue(p);
- alpha+=contribution[i].weight*qAlpha(p);
+ TQRgb p = reinterpret_cast< TQRgb* >( const_cast<TQImage&>(source).jumpTable()[ py ])[ px ];
+ red+=contribution[i].weight*tqRed(p);
+ green+=contribution[i].weight*tqGreen(p);
+ blue+=contribution[i].weight*tqBlue(p);
+ alpha+=contribution[i].weight*tqAlpha(p);
}
- QRgb pix = qRgba(
+ TQRgb pix = tqRgba(
fasttolong( red < 0 ? 0 : red > 255 ? 255 : red + 0.5 ),
fasttolong( green < 0 ? 0 : green > 255 ? 255 : green + 0.5 ),
fasttolong( blue < 0 ? 0 : blue > 255 ? 255 : blue + 0.5 ),
fasttolong( alpha < 0 ? 0 : alpha > 255 ? 255 : alpha + 0.5 ));
- reinterpret_cast< QRgb* >( destination.jumpTable()[ y ])[ x ] = pix;
+ reinterpret_cast< TQRgb* >( destination.jumpTable()[ y ])[ x ] = pix;
}
}
}
-static QImage ResizeImage(const QImage& image,const int columns,
+static TQImage ResizeImage(const TQImage& image,const int columns,
const int rows, Filter filter, fastfloat filtersupport, double blur)
{
ContributionInfo
@@ -611,7 +611,7 @@ static QImage ResizeImage(const QImage& image,const int columns,
*/
if ((columns == image.width()) && (rows == image.height()) && (blur == 1.0))
return image.copy();
- QImage resize_image( columns, rows, 32 );
+ TQImage resize_image( columns, rows, 32 );
resize_image.setAlphaBuffer( image.hasAlphaBuffer());
/*
Allocate filter contribution info.
@@ -638,20 +638,20 @@ static QImage ResizeImage(const QImage& image,const int columns,
if (((fastfloat) columns*(image.height()+rows)) >
((fastfloat) rows*(image.width()+columns)))
{
- QImage source_image( columns, image.height(), 32 );
+ TQImage source_image( columns, image.height(), 32 );
source_image.setAlphaBuffer( image.hasAlphaBuffer());
- HorizontalFilter(image,source_image,x_factor,blur,
+ HorizontalFilter(image,source_image,x_factor,blur,
contribution,filter,filtersupport);
- VerticalFilter(source_image,resize_image,y_factor,
+ VerticalFilter(source_image,resize_image,y_factor,
blur,contribution,filter,filtersupport);
}
else
{
- QImage source_image( image.width(), rows, 32 );
+ TQImage source_image( image.width(), rows, 32 );
source_image.setAlphaBuffer( image.hasAlphaBuffer());
- VerticalFilter(image,source_image,y_factor,blur,
+ VerticalFilter(image,source_image,y_factor,blur,
contribution,filter,filtersupport);
- HorizontalFilter(source_image,resize_image,x_factor,
+ HorizontalFilter(source_image,resize_image,x_factor,
blur,contribution,filter,filtersupport);
}
/*
@@ -724,7 +724,7 @@ static QImage ResizeImage(const QImage& image,const int columns,
%
%
*/
-QImage SampleImage(const QImage& image,const int columns,
+TQImage SampleImage(const TQImage& image,const int columns,
const int rows)
{
int
@@ -756,7 +756,7 @@ QImage SampleImage(const QImage& image,const int columns,
// 32bit like the ImageMagick original. This avoids the relatively
// expensive conversion.
const int d = image.depth() / 8;
- QImage sample_image( columns, rows, image.depth());
+ TQImage sample_image( columns, rows, image.depth());
sample_image.setAlphaBuffer( image.hasAlphaBuffer());
/*
Allocate scan line buffer and column offset buffers.
@@ -769,7 +769,7 @@ QImage SampleImage(const QImage& image,const int columns,
*/
// In the following several code 0.5 needs to be added, otherwise the image
// would be moved by half a pixel to bottom-right, just like
-// with Qt's QImage::scale()
+// with TQt's TQImage::scale()
for (x=0; x < (long) sample_image.width(); x++)
{
x_offset[x]=int((x+0.5)*image.width()/sample_image.width());
@@ -808,7 +808,7 @@ QImage SampleImage(const QImage& image,const int columns,
case 4: // 32bit
for (x=0; x < (long) sample_image.width(); x++)
{
- *(QRgb*)q=((QRgb*)pixels)[ x_offset[x] ];
+ *(TQRgb*)q=((TQRgb*)pixels)[ x_offset[x] ];
q += d;
}
break;
@@ -848,11 +848,11 @@ QImage SampleImage(const QImage& image,const int columns,
/**
* This is the normal smoothscale method, based on Imlib2's smoothscale.
*
- * Originally I took the algorithm used in NetPBM and Qt and added MMX/3dnow
- * optimizations. It ran in about 1/2 the time as Qt. Then I ported Imlib's
+ * Originally I took the algorithm used in NetPBM and TQt and added MMX/3dnow
+ * optimizations. It ran in about 1/2 the time as TQt. Then I ported Imlib's
* C algorithm and it ran at about the same speed as my MMX optimized one...
* Finally I ported Imlib's MMX version and it ran in less than half the
- * time as my MMX algorithm, (taking only a quarter of the time Qt does).
+ * time as my MMX algorithm, (taking only a quarter of the time TQt does).
*
* Changes include formatting, namespaces and other C++'ings, removal of old
* #ifdef'ed code, and removal of unneeded border calculation code.
@@ -933,7 +933,7 @@ namespace MImageScale{
int* mimageCalcXPoints(int sw, int dw);
int* mimageCalcApoints(int s, int d, int up);
MImageScaleInfo* mimageFreeScaleInfo(MImageScaleInfo *isi);
- MImageScaleInfo *mimageCalcScaleInfo(QImage &img, int sw, int sh,
+ MImageScaleInfo *mimageCalcScaleInfo(TQImage &img, int sw, int sh,
int dw, int dh, char aa, int sow);
void mimageSampleRGBA(MImageScaleInfo *isi, unsigned int *dest, int dxx,
int dyy, int dx, int dy, int dw, int dh, int dow);
@@ -943,7 +943,7 @@ namespace MImageScale{
void mimageScaleAARGB(MImageScaleInfo *isi, unsigned int *dest, int dxx,
int dyy, int dx, int dy, int dw, int dh, int dow, int
sow);
- QImage smoothScale(const QImage& img, int dw, int dh);
+ TQImage smoothScale(const TQImage& img, int dw, int dh);
}
#ifdef HAVE_X86_MMX
@@ -957,14 +957,14 @@ extern "C" {
using namespace MImageScale;
-QImage MImageScale::smoothScale(const QImage& image, int dw, int dh)
+TQImage MImageScale::smoothScale(const TQImage& image, int dw, int dh)
{
- QImage img = image.depth() < 32 ? image.convertDepth( 32 ) : image;
+ TQImage img = image.depth() < 32 ? image.convertDepth( 32 ) : image;
int w = img.width();
int h = img.height();
int sow = img.bytesPerLine();
- // handle CroppedQImage
+ // handle CroppedTQImage
if( img.height() > 1 && sow != img.scanLine( 1 ) - img.scanLine( 0 ))
sow = img.scanLine( 1 ) - img.scanLine( 0 );
sow = sow / ( img.depth() / 8 );
@@ -972,9 +972,9 @@ QImage MImageScale::smoothScale(const QImage& image, int dw, int dh)
MImageScaleInfo *scaleinfo =
mimageCalcScaleInfo(img, w, h, dw, dh, true, sow);
if(!scaleinfo)
- return QImage();
+ return TQImage();
- QImage buffer(dw, dh, 32);
+ TQImage buffer(dw, dh, 32);
buffer.setAlphaBuffer(img.hasAlphaBuffer());
#ifdef HAVE_X86_MMX
@@ -1139,7 +1139,7 @@ MImageScaleInfo* MImageScale::mimageFreeScaleInfo(MImageScaleInfo *isi)
return(NULL);
}
-MImageScaleInfo* MImageScale::mimageCalcScaleInfo(QImage &img, int sw, int sh,
+MImageScaleInfo* MImageScale::mimageCalcScaleInfo(TQImage &img, int sw, int sh,
int dw, int dh, char aa, int sow)
{
MImageScaleInfo *isi;
@@ -1250,7 +1250,7 @@ void MImageScale::mimageScaleAARGBA(MImageScaleInfo *isi, unsigned int *dest,
g = ((gg * YAP) + (g * INV_YAP)) >> 16;
b = ((bb * YAP) + (b * INV_YAP)) >> 16;
a = ((aa * YAP) + (a * INV_YAP)) >> 16;
- *dptr++ = qRgba(r, g, b, a);
+ *dptr++ = tqRgba(r, g, b, a);
}
else{
pix = ypoints[dyy + y] + xpoints[x];
@@ -1267,7 +1267,7 @@ void MImageScale::mimageScaleAARGBA(MImageScaleInfo *isi, unsigned int *dest,
g >>= 8;
b >>= 8;
a >>= 8;
- *dptr++ = qRgba(r, g, b, a);
+ *dptr++ = tqRgba(r, g, b, a);
}
}
}
@@ -1291,7 +1291,7 @@ void MImageScale::mimageScaleAARGBA(MImageScaleInfo *isi, unsigned int *dest,
g >>= 8;
b >>= 8;
a >>= 8;
- *dptr++ = qRgba(r, g, b, a);
+ *dptr++ = tqRgba(r, g, b, a);
}
else
*dptr++ = sptr[xpoints[x] ];
@@ -1368,7 +1368,7 @@ void MImageScale::mimageScaleAARGBA(MImageScaleInfo *isi, unsigned int *dest,
b >>= 4;
a >>= 4;
}
- *dptr = qRgba(r, g, b, a);
+ *dptr = tqRgba(r, g, b, a);
dptr++;
}
}
@@ -1442,7 +1442,7 @@ void MImageScale::mimageScaleAARGBA(MImageScaleInfo *isi, unsigned int *dest,
b >>= 4;
a >>= 4;
}
- *dptr = qRgba(r, g, b, a);
+ *dptr = tqRgba(r, g, b, a);
dptr++;
}
}
@@ -1606,7 +1606,7 @@ void MImageScale::mimageScaleAARGB(MImageScaleInfo *isi, unsigned int *dest,
r = ((rr * YAP) + (r * INV_YAP)) >> 16;
g = ((gg * YAP) + (g * INV_YAP)) >> 16;
b = ((bb * YAP) + (b * INV_YAP)) >> 16;
- *dptr++ = qRgba(r, g, b, 0xff);
+ *dptr++ = tqRgba(r, g, b, 0xff);
}
else{
pix = ypoints[dyy + y] + xpoints[x];
@@ -1620,7 +1620,7 @@ void MImageScale::mimageScaleAARGB(MImageScaleInfo *isi, unsigned int *dest,
r >>= 8;
g >>= 8;
b >>= 8;
- *dptr++ = qRgba(r, g, b, 0xff);
+ *dptr++ = tqRgba(r, g, b, 0xff);
}
}
}
@@ -1641,7 +1641,7 @@ void MImageScale::mimageScaleAARGB(MImageScaleInfo *isi, unsigned int *dest,
r >>= 8;
g >>= 8;
b >>= 8;
- *dptr++ = qRgba(r, g, b, 0xff);
+ *dptr++ = tqRgba(r, g, b, 0xff);
}
else
*dptr++ = sptr[xpoints[x] ];
@@ -1709,7 +1709,7 @@ void MImageScale::mimageScaleAARGB(MImageScaleInfo *isi, unsigned int *dest,
g >>= 4;
b >>= 4;
}
- *dptr = qRgba(r, g, b, 0xff);
+ *dptr = tqRgba(r, g, b, 0xff);
dptr++;
}
}
@@ -1774,7 +1774,7 @@ void MImageScale::mimageScaleAARGB(MImageScaleInfo *isi, unsigned int *dest,
g >>= 4;
b >>= 4;
}
- *dptr = qRgba(r, g, b, 0xff);
+ *dptr = tqRgba(r, g, b, 0xff);
dptr++;
}
}
@@ -1913,20 +1913,20 @@ void MImageScale::mimageScaleAARGB(MImageScaleInfo *isi, unsigned int *dest,
// // Imlib2/Mosfet scale - I have really no idea how many pixels it needs
// if( filter == Box && blur == 1.0 ) return int( 3 / zoom + 1 );
// // This is support size for ImageMagick's scaling.
-// double scale=blur*QMAX(1.0/zoom,1.0);
+// double scale=blur*TQMAX(1.0/zoom,1.0);
// double support=scale* filtersupport;
// if (support <= 0.5) support=0.5+0.000001;
// return int( support + 1 );
// }
-QImage scale(const QImage& image, int width, int height,
- SmoothAlgorithm alg, QImage::ScaleMode mode, double blur )
+TQImage scale(const TQImage& image, int width, int height,
+ SmoothAlgorithm alg, TQ_ScaleMode mode, double blur )
{
if( image.isNull()) return image.copy();
- QSize newSize( image.size() );
- newSize.scale( QSize( width, height ), (QSize::ScaleMode)mode ); // ### remove cast in Qt 4.0
- newSize = newSize.expandedTo( QSize( 1, 1 )); // make sure it doesn't become null
+ TQSize newSize( image.size() );
+ newSize.tqscale( TQSize( width, height ), (TQSize::ScaleMode)mode ); // ### remove cast in TQt 4.0
+ newSize = newSize.expandedTo( TQSize( 1, 1 )); // make sure it doesn't become null
if ( newSize == image.size() ) return image.copy();
@@ -1968,7 +1968,7 @@ QImage scale(const QImage& image, int width, int height,
}
return ResizeImage( image.convertDepth( 32 ), width, height, filter, filtersupport, blur );
- // unlike Qt's smoothScale() this function introduces new colors to grayscale images ... oh well
+ // unlike TQt's smoothScale() this function introduces new colors to grayscale images ... oh well
}
diff --git a/src/fastscale/scale.h b/src/fastscale/scale.h
index 299ac16..f2e17e0 100644
--- a/src/fastscale/scale.h
+++ b/src/fastscale/scale.h
@@ -1,7 +1,7 @@
// vim: set tabstop=4 shiftwidth=4 noexpandtab
/*
Gwenview - A simple image viewer for KDE
-Copyright 2000-2004 Aurélien Gâteau
+Copyright 2000-2004 Aur�lien G�teau
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -21,14 +21,14 @@ Copyright 2000-2004 Aurélien Gâteau
#ifndef FAST_SCALE_H
#define FAST_SCALE_H
-// Qt
-#include <qimage.h>
+// TQt
+#include <tqimage.h>
namespace ImageUtils {
enum SmoothAlgorithm { SMOOTH_NONE, SMOOTH_FAST, SMOOTH_NORMAL, SMOOTH_BEST };
- QImage scale(const QImage& image, int width, int height,
- SmoothAlgorithm alg, QImage::ScaleMode mode = QImage::ScaleFree, double blur = 1.0);
+ TQImage scale(const TQImage& image, int width, int height,
+ SmoothAlgorithm alg, TQ_ScaleMode mode = TQ_ScaleFree, double blur = 1.0);
}
#endif
diff --git a/src/k3b.cpp b/src/k3b.cpp
index 23a5cd6..f11780b 100644
--- a/src/k3b.cpp
+++ b/src/k3b.cpp
@@ -17,21 +17,21 @@
// include files for QT
-#include <qdir.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qlayout.h>
-#include <qwhatsthis.h>
-#include <qtooltip.h>
-#include <qtoolbutton.h>
-#include <qstring.h>
-#include <qsplitter.h>
-#include <qevent.h>
-#include <qvaluelist.h>
-#include <qfont.h>
-#include <qpalette.h>
-#include <qwidgetstack.h>
-#include <qtimer.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
+#include <tqtooltip.h>
+#include <tqtoolbutton.h>
+#include <tqstring.h>
+#include <tqsplitter.h>
+#include <tqevent.h>
+#include <tqvaluelist.h>
+#include <tqfont.h>
+#include <tqpalette.h>
+#include <tqwidgetstack.h>
+#include <tqtimer.h>
#include <kdockwidget.h>
#include <kkeydialog.h>
@@ -131,13 +131,13 @@ class K3bMainWindow::Private
public:
K3bDoc* lastDoc;
- QWidgetStack* documentStack;
+ TQWidgetStack* documentStack;
K3bWelcomeWidget* welcomeWidget;
- QWidget* documentHull;
+ TQWidget* documentHull;
- QLabel* leftDocPicLabel;
- QLabel* centerDocLabel;
- QLabel* rightDocPicLabel;
+ TQLabel* leftDocPicLabel;
+ TQLabel* centerDocLabel;
+ TQLabel* rightDocPicLabel;
};
@@ -175,14 +175,14 @@ K3bMainWindow::K3bMainWindow()
// disable actions at startup
slotStateChanged( "state_project_active", KXMLGUIClient::StateReverse );
- connect( k3bappcore->projectManager(), SIGNAL(newProject(K3bDoc*)), this, SLOT(createClient(K3bDoc*)) );
- connect( k3bcore->deviceManager(), SIGNAL(changed()), this, SLOT(slotCheckSystemTimed()) );
- connect( K3bAudioServer::instance(), SIGNAL(error(const QString&)), this, SLOT(slotAudioServerError(const QString&)) );
+ connect( k3bappcore->projectManager(), TQT_SIGNAL(newProject(K3bDoc*)), TQT_TQOBJECT(this), TQT_SLOT(createClient(K3bDoc*)) );
+ connect( k3bcore->deviceManager(), TQT_SIGNAL(changed()), TQT_TQOBJECT(this), TQT_SLOT(slotCheckSystemTimed()) );
+ connect( K3bAudioServer::instance(), TQT_SIGNAL(error(const TQString&)), TQT_TQOBJECT(this), TQT_SLOT(slotAudioServerError(const TQString&)) );
// FIXME: now make sure the welcome screen is displayed completely
resize( 780, 550 );
-// getMainDockWidget()->resize( getMainDockWidget()->size().expandedTo( d->welcomeWidget->sizeHint() ) );
-// m_dirTreeDock->resize( QSize( m_dirTreeDock->sizeHint().width(), m_dirTreeDock->height() ) );
+// getMainDockWidget()->resize( getMainDockWidget()->size().expandedTo( d->welcomeWidget->tqsizeHint() ) );
+// m_dirTreeDock->resize( TQSize( m_dirTreeDock->tqsizeHint().width(), m_dirTreeDock->height() ) );
readOptions();
}
@@ -196,9 +196,9 @@ K3bMainWindow::~K3bMainWindow()
}
-void K3bMainWindow::showEvent( QShowEvent* e )
+void K3bMainWindow::showEvent( TQShowEvent* e )
{
- slotCheckDockWidgetStatus();
+ slotCheckDockWidgettqStatus();
KDockMainWindow::showEvent( e );
}
@@ -211,59 +211,59 @@ void K3bMainWindow::initActions()
// see the correct solution?)
*actionCollection() += *k3bappcore->appDeviceManager()->actionCollection();
- actionFileOpen = KStdAction::open(this, SLOT(slotFileOpen()), actionCollection());
- actionFileOpenRecent = KStdAction::openRecent(this, SLOT(slotFileOpenRecent(const KURL&)), actionCollection());
- actionFileSave = KStdAction::save(this, SLOT(slotFileSave()), actionCollection());
- actionFileSaveAs = KStdAction::saveAs(this, SLOT(slotFileSaveAs()), actionCollection());
- actionFileSaveAll = new KAction( i18n("Save All"), "save_all", 0, this, SLOT(slotFileSaveAll()),
+ actionFileOpen = KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(slotFileOpen()), actionCollection());
+ actionFileOpenRecent = KStdAction::openRecent(TQT_TQOBJECT(this), TQT_SLOT(slotFileOpenRecent(const KURL&)), actionCollection());
+ actionFileSave = KStdAction::save(TQT_TQOBJECT(this), TQT_SLOT(slotFileSave()), actionCollection());
+ actionFileSaveAs = KStdAction::saveAs(TQT_TQOBJECT(this), TQT_SLOT(slotFileSaveAs()), actionCollection());
+ actionFileSaveAll = new KAction( i18n("Save All"), "save_all", 0, TQT_TQOBJECT(this), TQT_SLOT(slotFileSaveAll()),
actionCollection(), "file_save_all" );
- actionFileClose = KStdAction::close(this, SLOT(slotFileClose()), actionCollection());
- actionFileCloseAll = new KAction( i18n("Close All"), 0, 0, this, SLOT(slotFileCloseAll()),
+ actionFileClose = KStdAction::close(TQT_TQOBJECT(this), TQT_SLOT(slotFileClose()), actionCollection());
+ actionFileCloseAll = new KAction( i18n("Close All"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotFileCloseAll()),
actionCollection(), "file_close_all" );
- actionFileQuit = KStdAction::quit(this, SLOT(slotFileQuit()), actionCollection());
- actionViewStatusBar = KStdAction::showStatusbar(this, SLOT(slotViewStatusBar()), actionCollection());
- actionSettingsConfigure = KStdAction::preferences(this, SLOT(slotSettingsConfigure()), actionCollection() );
+ actionFileQuit = KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(slotFileQuit()), actionCollection());
+ actionViewStatusBar = KStdAction::showStatusbar(TQT_TQOBJECT(this), TQT_SLOT(slotViewStatusBar()), actionCollection());
+ actionSettingsConfigure = KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(slotSettingsConfigure()), actionCollection() );
// the tip action
- (void)KStdAction::tipOfDay(this, SLOT(slotShowTips()), actionCollection() );
- (void)KStdAction::keyBindings( this, SLOT( slotConfigureKeys() ), actionCollection() );
+ (void)KStdAction::tipOfDay(TQT_TQOBJECT(this), TQT_SLOT(slotShowTips()), actionCollection() );
+ (void)KStdAction::keyBindings( TQT_TQOBJECT(this), TQT_SLOT( slotConfigureKeys() ), actionCollection() );
- KStdAction::configureToolbars(this, SLOT(slotEditToolbars()), actionCollection());
+ KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(slotEditToolbars()), actionCollection());
setStandardToolBarMenuEnabled(true);
- KStdAction::showMenubar( this, SLOT(slotShowMenuBar()), actionCollection() );
+ KStdAction::showMenubar( TQT_TQOBJECT(this), TQT_SLOT(slotShowMenuBar()), actionCollection() );
actionFileNewMenu = new KActionMenu( i18n("&New Project"), "filenew", actionCollection(), "file_new" );
- actionFileNewAudio = new KAction(i18n("New &Audio CD Project"), "audiocd", 0, this, SLOT(slotNewAudioDoc()),
+ actionFileNewAudio = new KAction(i18n("New &Audio CD Project"), "audiocd", 0, TQT_TQOBJECT(this), TQT_SLOT(slotNewAudioDoc()),
actionCollection(), "file_new_audio");
- actionFileNewData = new KAction(i18n("New Data &CD Project"), "datacd", 0, this, SLOT(slotNewDataDoc()),
+ actionFileNewData = new KAction(i18n("New Data &CD Project"), "datacd", 0, TQT_TQOBJECT(this), TQT_SLOT(slotNewDataDoc()),
actionCollection(), "file_new_data");
- actionFileNewMixed = new KAction(i18n("New &Mixed Mode CD Project"), "mixedcd", 0, this, SLOT(slotNewMixedDoc()),
+ actionFileNewMixed = new KAction(i18n("New &Mixed Mode CD Project"), "mixedcd", 0, TQT_TQOBJECT(this), TQT_SLOT(slotNewMixedDoc()),
actionCollection(), "file_new_mixed");
- actionFileNewVcd = new KAction(i18n("New &Video CD Project"), "videocd", 0, this, SLOT(slotNewVcdDoc()),
+ actionFileNewVcd = new KAction(i18n("New &Video CD Project"), "videocd", 0, TQT_TQOBJECT(this), TQT_SLOT(slotNewVcdDoc()),
actionCollection(), "file_new_vcd");
- actionFileNewMovix = new KAction(i18n("New &eMovix CD Project"), "emovix", 0, this, SLOT(slotNewMovixDoc()),
+ actionFileNewMovix = new KAction(i18n("New &eMovix CD Project"), "emovix", 0, TQT_TQOBJECT(this), TQT_SLOT(slotNewMovixDoc()),
actionCollection(), "file_new_movix");
- actionFileNewMovixDvd = new KAction(i18n("New &eMovix DVD Project"), "emovix", 0, this, SLOT(slotNewMovixDvdDoc()),
+ actionFileNewMovixDvd = new KAction(i18n("New &eMovix DVD Project"), "emovix", 0, TQT_TQOBJECT(this), TQT_SLOT(slotNewMovixDvdDoc()),
actionCollection(), "file_new_movix_dvd");
- actionFileNewDvd = new KAction(i18n("New Data &DVD Project"), "datadvd", 0, this, SLOT(slotNewDvdDoc()),
+ actionFileNewDvd = new KAction(i18n("New Data &DVD Project"), "datadvd", 0, TQT_TQOBJECT(this), TQT_SLOT(slotNewDvdDoc()),
actionCollection(), "file_new_dvd");
- actionFileNewVideoDvd = new KAction(i18n("New V&ideo DVD Project"), "videodvd", 0, this, SLOT(slotNewVideoDvdDoc()),
+ actionFileNewVideoDvd = new KAction(i18n("New V&ideo DVD Project"), "videodvd", 0, TQT_TQOBJECT(this), TQT_SLOT(slotNewVideoDvdDoc()),
actionCollection(), "file_new_video_dvd");
- actionFileContinueMultisession = new KAction( i18n("Continue Multisession Project"), "datacd", 0, this, SLOT(slotContinueMultisession()),
+ actionFileContinueMultisession = new KAction( i18n("Continue Multisession Project"), "datacd", 0, TQT_TQOBJECT(this), TQT_SLOT(slotContinueMultisession()),
actionCollection(), "file_continue_multisession" );
actionFileNewMenu->setDelayed( false );
actionFileNewMenu->insert( actionFileNewData );
actionFileNewMenu->insert( actionFileNewDvd );
actionFileNewMenu->insert( actionFileContinueMultisession );
- actionFileNewMenu->insert( new KActionSeparator( this ) );
+ actionFileNewMenu->insert( new KActionSeparator( TQT_TQOBJECT(this) ) );
actionFileNewMenu->insert( actionFileNewAudio );
- actionFileNewMenu->insert( new KActionSeparator( this ) );
+ actionFileNewMenu->insert( new KActionSeparator( TQT_TQOBJECT(this) ) );
actionFileNewMenu->insert( actionFileNewMixed );
- actionFileNewMenu->insert( new KActionSeparator( this ) );
+ actionFileNewMenu->insert( new KActionSeparator( TQT_TQOBJECT(this) ) );
actionFileNewMenu->insert( actionFileNewVcd );
actionFileNewMenu->insert( actionFileNewVideoDvd );
- actionFileNewMenu->insert( new KActionSeparator( this ) );
+ actionFileNewMenu->insert( new KActionSeparator( TQT_TQOBJECT(this) ) );
actionFileNewMenu->insert( actionFileNewMovix );
actionFileNewMenu->insert( actionFileNewMovixDvd );
@@ -271,54 +271,54 @@ void K3bMainWindow::initActions()
- actionProjectAddFiles = new KAction( i18n("&Add Files..."), "filenew", 0, this, SLOT(slotProjectAddFiles()),
+ actionProjectAddFiles = new KAction( i18n("&Add Files..."), "filenew", 0, TQT_TQOBJECT(this), TQT_SLOT(slotProjectAddFiles()),
actionCollection(), "project_add_files");
- KAction* actionClearProject = new KAction( i18n("&Clear Project"), QApplication::reverseLayout() ? "clear_left" : "locationbar_erase", 0,
- this, SLOT(slotClearProject()), actionCollection(), "project_clear_project" );
+ KAction* actionClearProject = new KAction( i18n("&Clear Project"), TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase", 0,
+ TQT_TQOBJECT(this), TQT_SLOT(slotClearProject()), actionCollection(), "project_clear_project" );
- actionViewDirTreeView = new KToggleAction(i18n("Show Directories"), 0, this, SLOT(slotShowDirTreeView()),
+ actionViewDirTreeView = new KToggleAction(i18n("Show Directories"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotShowDirTreeView()),
actionCollection(), "view_dir_tree");
- actionViewContentsView = new KToggleAction(i18n("Show Contents"), 0, this, SLOT(slotShowContentsView()),
+ actionViewContentsView = new KToggleAction(i18n("Show Contents"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotShowContentsView()),
actionCollection(), "view_contents");
- actionViewDocumentHeader = new KToggleAction(i18n("Show Document Header"), 0, this, SLOT(slotViewDocumentHeader()),
+ actionViewDocumentHeader = new KToggleAction(i18n("Show Document Header"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewDocumentHeader()),
actionCollection(), "view_document_header");
- actionToolsBlankCdrw = new KAction( i18n("&Erase CD-RW..."), "erasecd", 0, this, SLOT(slotBlankCdrw()),
+ actionToolsBlankCdrw = new KAction( i18n("&Erase CD-RW..."), "erasecd", 0, TQT_TQOBJECT(this), TQT_SLOT(slotBlankCdrw()),
actionCollection(), "tools_blank_cdrw" );
- KAction* actionToolsFormatDVD = new KAction( i18n("&Format DVD%1RW...").arg("±"), "formatdvd", 0, this,
- SLOT(slotFormatDvd()), actionCollection(), "tools_format_dvd" );
- actionToolsWriteCdImage = new KAction(i18n("&Burn CD Image..."), "burn_cdimage", 0, this, SLOT(slotWriteCdImage()),
+ KAction* actionToolsFormatDVD = new KAction( i18n("&Format DVD%1RW...").tqarg("�"), "formatdvd", 0, TQT_TQOBJECT(this),
+ TQT_SLOT(slotFormatDvd()), actionCollection(), "tools_format_dvd" );
+ actionToolsWriteCdImage = new KAction(i18n("&Burn CD Image..."), "burn_cdimage", 0, TQT_TQOBJECT(this), TQT_SLOT(slotWriteCdImage()),
actionCollection(), "tools_write_cd_image" );
- KAction* actionToolsWriteDvdImage = new KAction(i18n("&Burn DVD ISO Image..."), "burn_dvdimage", 0, this, SLOT(slotWriteDvdIsoImage()),
+ KAction* actionToolsWriteDvdImage = new KAction(i18n("&Burn DVD ISO Image..."), "burn_dvdimage", 0, TQT_TQOBJECT(this), TQT_SLOT(slotWriteDvdIsoImage()),
actionCollection(), "tools_write_dvd_iso" );
- actionCdCopy = new KAction(i18n("&Copy CD..."), "cdcopy", 0, this, SLOT(slotCdCopy()),
+ actionCdCopy = new KAction(i18n("&Copy CD..."), "cdcopy", 0, TQT_TQOBJECT(this), TQT_SLOT(slotCdCopy()),
actionCollection(), "tools_copy_cd" );
- KAction* actionToolsDvdCopy = new KAction(i18n("Copy &DVD..."), "dvdcopy", 0, this, SLOT(slotDvdCopy()),
+ KAction* actionToolsDvdCopy = new KAction(i18n("Copy &DVD..."), "dvdcopy", 0, TQT_TQOBJECT(this), TQT_SLOT(slotDvdCopy()),
actionCollection(), "tools_copy_dvd" );
- actionToolsCddaRip = new KAction( i18n("Rip Audio CD..."), "cddarip", 0, this, SLOT(slotCddaRip()),
+ actionToolsCddaRip = new KAction( i18n("Rip Audio CD..."), "cddarip", 0, TQT_TQOBJECT(this), TQT_SLOT(slotCddaRip()),
actionCollection(), "tools_cdda_rip" );
- actionToolsVideoDvdRip = new KAction( i18n("Rip Video DVD..."), "videodvd", 0, this, SLOT(slotVideoDvdRip()),
+ actionToolsVideoDvdRip = new KAction( i18n("Rip Video DVD..."), "videodvd", 0, TQT_TQOBJECT(this), TQT_SLOT(slotVideoDvdRip()),
actionCollection(), "tools_videodvd_rip" );
- actionToolsVideoCdRip = new KAction( i18n("Rip Video CD..."), "videocd", 0, this, SLOT(slotVideoCdRip()),
+ actionToolsVideoCdRip = new KAction( i18n("Rip Video CD..."), "videocd", 0, TQT_TQOBJECT(this), TQT_SLOT(slotVideoCdRip()),
actionCollection(), "tools_videocd_rip" );
- (void)new KAction( i18n("System Check"), 0, 0, this, SLOT(slotCheckSystem()),
+ (void)new KAction( i18n("System Check"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotCheckSystem()),
actionCollection(), "help_check_system" );
#ifdef HAVE_K3BSETUP
- actionSettingsK3bSetup = new KAction(i18n("&Setup System Permissions..."), "configure", 0, this, SLOT(slotK3bSetup()),
+ actionSettingsK3bSetup = new KAction(i18n("&Setup System Permissions..."), "configure", 0, TQT_TQOBJECT(this), TQT_SLOT(slotK3bSetup()),
actionCollection(), "settings_k3bsetup" );
#endif
#ifdef K3B_DEBUG
- (void)new KAction( "Test Media Selection ComboBox", 0, 0, this,
- SLOT(slotMediaSelectionTester()), actionCollection(),
+ (void)new KAction( "Test Media Selection ComboBox", 0, 0, TQT_TQOBJECT(this),
+ TQT_SLOT(slotMediaSelectionTester()), actionCollection(),
"test_media_selection" );
#endif
@@ -330,7 +330,7 @@ void K3bMainWindow::initActions()
actionFileNewMovix->setToolTip( i18n("Creates a new eMovix CD project") );
actionFileNewVcd->setToolTip( i18n("Creates a new Video CD project") );
actionToolsBlankCdrw->setToolTip( i18n("Open the CD-RW erasing dialog") );
- actionToolsFormatDVD->setToolTip( i18n("Open the DVD%1RW formatting dialog").arg("±") );
+ actionToolsFormatDVD->setToolTip( i18n("Open the DVD%1RW formatting dialog").tqarg("�") );
actionCdCopy->setToolTip( i18n("Open the CD copy dialog") );
actionToolsWriteCdImage->setToolTip( i18n("Write an Iso9660, cue/bin, or cdrecord clone image to CD") );
actionToolsWriteDvdImage->setToolTip( i18n("Write an Iso9660 image to DVD") );
@@ -359,7 +359,7 @@ void K3bMainWindow::initActions()
-const QPtrList<K3bDoc>& K3bMainWindow::projects() const
+const TQPtrList<K3bDoc>& K3bMainWindow::projects() const
{
return k3bappcore->projectManager()->projects();
}
@@ -387,18 +387,18 @@ void K3bMainWindow::initView()
setMainDockWidget( mainDock );
// --- Document Dock ----------------------------------------------------------------------------
- d->documentStack = new QWidgetStack( mainDock );
+ d->documentStack = new TQWidgetStack( mainDock );
mainDock->setWidget( d->documentStack );
- d->documentHull = new QWidget( d->documentStack );
+ d->documentHull = new TQWidget( d->documentStack );
d->documentStack->addWidget( d->documentHull );
- QGridLayout* documentHullLayout = new QGridLayout( d->documentHull );
+ TQGridLayout* documentHullLayout = new TQGridLayout( d->documentHull );
documentHullLayout->setMargin( 2 );
documentHullLayout->setSpacing( 0 );
m_documentHeader = new K3bThemedHeader( d->documentHull );
m_documentHeader->setTitle( i18n("Current Projects") );
- m_documentHeader->setAlignment( Qt::AlignHCenter | Qt::AlignVCenter );
+ m_documentHeader->tqsetAlignment( TQt::AlignHCenter | TQt::AlignVCenter );
m_documentHeader->setLeftPixmap( K3bTheme::PROJECT_LEFT );
m_documentHeader->setRightPixmap( K3bTheme::PROJECT_RIGHT );
@@ -408,7 +408,7 @@ void K3bMainWindow::initView()
documentHullLayout->addWidget( m_documentHeader, 0, 0 );
documentHullLayout->addWidget( m_documentTab, 1, 0 );
- connect( m_documentTab, SIGNAL(currentChanged(QWidget*)), this, SLOT(slotCurrentDocChanged()) );
+ connect( m_documentTab, TQT_SIGNAL(currentChanged(TQWidget*)), TQT_TQOBJECT(this), TQT_SLOT(slotCurrentDocChanged()) );
d->welcomeWidget = new K3bWelcomeWidget( this, m_documentTab );
m_documentTab->addTab( d->welcomeWidget, i18n("Quickstart") );
@@ -427,8 +427,8 @@ void K3bMainWindow::initView()
m_dirTreeDock->setWidget( sidePanel );
m_dirTreeDock->manualDock( mainDock, KDockWidget::DockTop, 4000 );
- connect( m_dirTreeDock, SIGNAL(iMBeingClosed()), this, SLOT(slotDirTreeDockHidden()) );
- connect( m_dirTreeDock, SIGNAL(hasUndocked()), this, SLOT(slotDirTreeDockHidden()) );
+ connect( m_dirTreeDock, TQT_SIGNAL(iMBeingClosed()), TQT_TQOBJECT(this), TQT_SLOT(slotDirTreeDockHidden()) );
+ connect( m_dirTreeDock, TQT_SIGNAL(hasUndocked()), TQT_TQOBJECT(this), TQT_SLOT(slotDirTreeDockHidden()) );
// ---------------------------------------------------------------------------------------------
// --- Contents Dock ---------------------------------------------------------------------------
@@ -439,24 +439,24 @@ void K3bMainWindow::initView()
m_contentsDock->setWidget( m_dirView );
m_contentsDock->manualDock( m_dirTreeDock, KDockWidget::DockRight, 2000 );
- connect( m_contentsDock, SIGNAL(iMBeingClosed()), this, SLOT(slotContentsDockHidden()) );
- connect( m_contentsDock, SIGNAL(hasUndocked()), this, SLOT(slotContentsDockHidden()) );
+ connect( m_contentsDock, TQT_SIGNAL(iMBeingClosed()), TQT_TQOBJECT(this), TQT_SLOT(slotContentsDockHidden()) );
+ connect( m_contentsDock, TQT_SIGNAL(hasUndocked()), TQT_TQOBJECT(this), TQT_SLOT(slotContentsDockHidden()) );
// ---------------------------------------------------------------------------------------------
// --- filetreecombobox-toolbar ----------------------------------------------------------------
K3bFileTreeComboBox* m_fileTreeComboBox = new K3bFileTreeComboBox( 0 );
- connect( m_fileTreeComboBox, SIGNAL(urlExecuted(const KURL&)), m_dirView, SLOT(showUrl(const KURL& )) );
- connect( m_fileTreeComboBox, SIGNAL(deviceExecuted(K3bDevice::Device*)), m_dirView,
- SLOT(showDevice(K3bDevice::Device* )) );
- connect( m_dirView, SIGNAL(urlEntered(const KURL&)), m_fileTreeComboBox, SLOT(setUrl(const KURL&)) );
- connect( m_dirView, SIGNAL(deviceSelected(K3bDevice::Device*)), m_fileTreeComboBox, SLOT(setDevice(K3bDevice::Device*)) );
+ connect( m_fileTreeComboBox, TQT_SIGNAL(urlExecuted(const KURL&)), m_dirView, TQT_SLOT(showUrl(const KURL& )) );
+ connect( m_fileTreeComboBox, TQT_SIGNAL(deviceExecuted(K3bDevice::Device*)), m_dirView,
+ TQT_SLOT(showDevice(K3bDevice::Device* )) );
+ connect( m_dirView, TQT_SIGNAL(urlEntered(const KURL&)), m_fileTreeComboBox, TQT_SLOT(setUrl(const KURL&)) );
+ connect( m_dirView, TQT_SIGNAL(deviceSelected(K3bDevice::Device*)), m_fileTreeComboBox, TQT_SLOT(setDevice(K3bDevice::Device*)) );
KWidgetAction* fileTreeComboAction = new KWidgetAction( m_fileTreeComboBox,
i18n("&Quick Dir Selector"),
0, 0, 0,
actionCollection(), "quick_dir_selector" );
fileTreeComboAction->setAutoSized(true);
- (void)new KAction( i18n("Go"), "key_enter", 0, m_fileTreeComboBox, SLOT(slotGoUrl()), actionCollection(), "go_url" );
+ (void)new KAction( i18n("Go"), "key_enter", 0, TQT_TQOBJECT(m_fileTreeComboBox), TQT_SLOT(slotGoUrl()), actionCollection(), "go_url" );
// ---------------------------------------------------------------------------------------------
}
@@ -509,7 +509,7 @@ void K3bMainWindow::createClient( K3bDoc* doc )
K3bView* K3bMainWindow::activeView() const
{
- QWidget* w = m_documentTab->currentPage();
+ TQWidget* w = m_documentTab->currentPage();
if( K3bView* view = dynamic_cast<K3bView*>(w) )
return view;
else
@@ -609,7 +609,7 @@ void K3bMainWindow::readOptions()
m_dirView->readConfig( config() );
slotViewDocumentHeader();
- slotCheckDockWidgetStatus();
+ slotCheckDockWidgettqStatus();
}
@@ -620,7 +620,7 @@ void K3bMainWindow::saveProperties( KConfig* c )
// 3. save the url of the project (might be something like "AudioCD1") in the config
// 4. save the status of every project (modified/saved)
- QString saveDir = KGlobal::dirs()->saveLocation( "appdata", "sessions/" + qApp->sessionId() + "/", true );
+ TQString saveDir = KGlobal::dirs()->saveLocation( "appdata", "sessions/" + tqApp->sessionId() + "/", true );
// FIXME: for some reason the config entries are not properly stored when using the default
// KMainWindow session config. Since I was not able to find the bug I use another config object
@@ -629,26 +629,26 @@ void K3bMainWindow::saveProperties( KConfig* c )
c->setGroup( "Saved Session" );
// ----------------------------------------------------------
- const QPtrList<K3bDoc>& docs = k3bappcore->projectManager()->projects();
+ const TQPtrList<K3bDoc>& docs = k3bappcore->projectManager()->projects();
c->writeEntry( "Number of projects", docs.count() );
int cnt = 1;
- for( QPtrListIterator<K3bDoc> it( docs ); *it; ++it ) {
+ for( TQPtrListIterator<K3bDoc> it( docs ); *it; ++it ) {
// the "name" of the project (or the original url if isSaved())
- c->writePathEntry( QString("%1 url").arg(cnt), (*it)->URL().url() );
+ c->writePathEntry( TQString("%1 url").tqarg(cnt), (*it)->URL().url() );
// is the doc modified
- c->writeEntry( QString("%1 modified").arg(cnt), (*it)->isModified() );
+ c->writeEntry( TQString("%1 modified").tqarg(cnt), (*it)->isModified() );
// has the doc already been saved?
- c->writeEntry( QString("%1 saved").arg(cnt), (*it)->isSaved() );
+ c->writeEntry( TQString("%1 saved").tqarg(cnt), (*it)->isSaved() );
// where does the session management save it? If it's not modified and saved this is
// the same as the url
KURL saveUrl = (*it)->URL();
if( !(*it)->isSaved() || (*it)->isModified() )
- saveUrl = KURL::fromPathOrURL( saveDir + QString::number(cnt) );
- c->writePathEntry( QString("%1 saveurl").arg(cnt), saveUrl.url() );
+ saveUrl = KURL::fromPathOrURL( saveDir + TQString::number(cnt) );
+ c->writePathEntry( TQString("%1 saveurl").tqarg(cnt), saveUrl.url() );
// finally save it
k3bappcore->projectManager()->saveProject( *it, saveUrl );
@@ -675,7 +675,7 @@ void K3bMainWindow::readProperties( KConfig* c )
// 3. reset the saved urls and the modified state
// 4. delete "~/.kde/share/apps/k3b/sessions/" + KApp->sessionId()
- QString saveDir = KGlobal::dirs()->saveLocation( "appdata", "sessions/" + qApp->sessionId() + "/", true );
+ TQString saveDir = KGlobal::dirs()->saveLocation( "appdata", "sessions/" + tqApp->sessionId() + "/", true );
// FIXME: for some reason the config entries are not properly stored when using the default
// KMainWindow session config. Since I was not able to find the bug I use another config object
@@ -690,13 +690,13 @@ void K3bMainWindow::readProperties( KConfig* c )
for( int i = 1; i <= cnt; ++i ) {
// in this case the constructor works since we saved as url()
- KURL url = c->readPathEntry( QString("%1 url").arg(i) );
+ KURL url = c->readPathEntry( TQString("%1 url").tqarg(i) );
- bool modified = c->readBoolEntry( QString("%1 modified").arg(i) );
+ bool modified = c->readBoolEntry( TQString("%1 modified").tqarg(i) );
- bool saved = c->readBoolEntry( QString("%1 saved").arg(i) );
+ bool saved = c->readBoolEntry( TQString("%1 saved").tqarg(i) );
- KURL saveUrl = c->readPathEntry( QString("%1 saveurl").arg(i) );
+ KURL saveUrl = c->readPathEntry( TQString("%1 saveurl").tqarg(i) );
// now load the project
if( K3bDoc* doc = k3bappcore->projectManager()->openProject( saveUrl ) ) {
@@ -711,7 +711,7 @@ void K3bMainWindow::readProperties( KConfig* c )
// remove the temp file
if( !saved || modified )
- QFile::remove( saveUrl.path() );
+ TQFile::remove( saveUrl.path() );
}
// and now remove the temp dir
@@ -752,7 +752,7 @@ bool K3bMainWindow::queryClose()
// kdDebug() << "(K3bMainWindow::queryClose) main job found: " << job->jobDescription() << endl;
// // now job is the major job and jh should be a widget
-// QWidget* progressDialog = dynamic_cast<QWidget*>( jh );
+// TQWidget* progressDialog = dynamic_cast<TQWidget*>( jh );
// kdDebug() << "(K3bMainWindow::queryClose) job active: " << job->active() << endl;
@@ -774,14 +774,14 @@ bool K3bMainWindow::queryClose()
// kdDebug() << "(K3bMainWindow::queryClose) closing progress dialog." << endl;
// progressDialog->close();
// //
-// // now here we have the problem that due to the whole Qt event thing the exec call (or
+// // now here we have the problem that due to the whole TQt event thing the exec call (or
// // in this case most likely the startJob call) does not return until we leave this method.
-// // That means that the progress dialog might be deleted by it's parent below (when we
+// // That means that the progress dialog might be deleted by it's tqparent below (when we
// // close docs) before it is deleted by the creator (most likely a projectburndialog).
// // That would result in a double deletion and thus a crash.
-// // So we just reparent the dialog to 0 here so it's (former) parent won't delete it.
+// // So we just reparent the dialog to 0 here so it's (former) tqparent won't delete it.
// //
-// progressDialog->reparent( 0, QPoint(0,0) );
+// progressDialog->reparent( 0, TQPoint(0,0) );
// }
// kdDebug() << "(K3bMainWindow::queryClose) job cleanup done." << endl;
@@ -826,7 +826,7 @@ bool K3bMainWindow::canCloseDocument( K3bDoc* doc )
return true;
switch ( KMessageBox::warningYesNoCancel( this,
- i18n("%1 has unsaved data.").arg( doc->URL().fileName() ),
+ i18n("%1 has unsaved data.").tqarg( doc->URL().fileName() ),
i18n("Closing Project"),
KStdGuiItem::save(),
KGuiItem( i18n("&Discard"), "editshred" ) ) )
@@ -851,7 +851,7 @@ bool K3bMainWindow::queryExit()
/////////////////////////////////////////////////////////////////////
-// SLOT IMPLEMENTATION
+// TQT_SLOT IMPLEMENTATION
/////////////////////////////////////////////////////////////////////
@@ -879,7 +879,7 @@ void K3bMainWindow::slotFileOpenRecent(const KURL& url)
void K3bMainWindow::slotFileSaveAll()
{
- for( QPtrListIterator<K3bDoc> it( k3bappcore->projectManager()->projects() );
+ for( TQPtrListIterator<K3bDoc> it( k3bappcore->projectManager()->projects() );
*it; ++it ) {
fileSave( *it );
}
@@ -940,7 +940,7 @@ void K3bMainWindow::fileSaveAs( K3bDoc* doc )
bool exists = KIO::NetAccess::exists( url, false, 0 );
if( !exists ||
( exists &&
- KMessageBox::warningContinueCancel( this, i18n("Do you want to overwrite %1?").arg( url.prettyURL() ),
+ KMessageBox::warningContinueCancel( this, i18n("Do you want to overwrite %1?").tqarg( url.prettyURL() ),
i18n("File Exists"), i18n("Overwrite") )
== KMessageBox::Continue ) ) {
@@ -1030,7 +1030,7 @@ void K3bMainWindow::slotViewStatusBar()
}
-void K3bMainWindow::slotStatusMsg(const QString &text)
+void K3bMainWindow::slotStatusMsg(const TQString &text)
{
///////////////////////////////////////////////////////////////////
// change status message permanently
@@ -1202,7 +1202,7 @@ void K3bMainWindow::slotEditToolbars()
{
saveMainWindowSettings( m_config, "main_window_settings" );
KEditToolbar dlg( factory() );
- connect(&dlg, SIGNAL(newToolbarConfig()), SLOT(slotNewToolBarConfig()));
+ connect(&dlg, TQT_SIGNAL(newToolbarConfig()), TQT_SLOT(slotNewToolBarConfig()));
dlg.exec();
}
@@ -1220,13 +1220,13 @@ bool K3bMainWindow::eject()
}
-void K3bMainWindow::slotErrorMessage(const QString& message)
+void K3bMainWindow::slotErrorMessage(const TQString& message)
{
KMessageBox::error( this, message );
}
-void K3bMainWindow::slotWarningMessage(const QString& message)
+void K3bMainWindow::slotWarningMessage(const TQString& message)
{
KMessageBox::sorry( this, message );
}
@@ -1267,13 +1267,13 @@ void K3bMainWindow::slotProjectAddFiles()
K3bView* view = activeView();
if( view ) {
- QStringList files = KFileDialog::getOpenFileNames( ":k3b-project-add-files",
+ TQStringList files = KFileDialog::getOpenFileNames( ":k3b-project-add-files",
i18n("*|All Files"),
this,
i18n("Select Files to Add to Project") );
KURL::List urls;
- for( QStringList::ConstIterator it = files.begin();
+ for( TQStringList::ConstIterator it = files.begin();
it != files.end(); it++ ) {
KURL url;
url.setPath(*it);
@@ -1364,14 +1364,14 @@ void K3bMainWindow::slotDvdCopy()
void K3bMainWindow::slotShowDirTreeView()
{
m_dirTreeDock->changeHideShowState();
- slotCheckDockWidgetStatus();
+ slotCheckDockWidgettqStatus();
}
void K3bMainWindow::slotShowContentsView()
{
m_contentsDock->changeHideShowState();
- slotCheckDockWidgetStatus();
+ slotCheckDockWidgettqStatus();
}
@@ -1386,7 +1386,7 @@ void K3bMainWindow::slotShowMenuBar()
void K3bMainWindow::slotShowTips()
{
- KTipDialog::showTip( this, QString::null, true );
+ KTipDialog::showTip( this, TQString(), true );
}
@@ -1402,7 +1402,7 @@ void K3bMainWindow::slotContentsDockHidden()
}
-void K3bMainWindow::slotCheckDockWidgetStatus()
+void K3bMainWindow::slotCheckDockWidgettqStatus()
{
actionViewContentsView->setChecked( m_contentsDock->isVisible() );
actionViewDirTreeView->setChecked( m_dirTreeDock->isVisible() );
@@ -1468,7 +1468,7 @@ void K3bMainWindow::slotCheckSystemTimed()
// run the system check from the event queue so we do not
// mess with the device state resetting throughout the app
// when called from K3bDeviceManager::changed
- QTimer::singleShot( 0, this, SLOT(slotCheckSystem()) );
+ TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT(slotCheckSystem()) );
}
@@ -1486,17 +1486,17 @@ void K3bMainWindow::addUrls( const KURL::List& urls )
else {
// check if the files are all audio we can handle. If so create an audio project
bool audio = true;
- QPtrList<K3bPlugin> fl = k3bcore->pluginManager()->plugins( "AudioDecoder" );
+ TQPtrList<K3bPlugin> fl = k3bcore->pluginManager()->plugins( "AudioDecoder" );
for( KURL::List::const_iterator it = urls.begin(); it != urls.end(); ++it ) {
const KURL& url = *it;
- if( QFileInfo(url.path()).isDir() ) {
+ if( TQFileInfo(url.path()).isDir() ) {
audio = false;
break;
}
bool a = false;
- for( QPtrListIterator<K3bPlugin> it( fl ); it.current(); ++it ) {
+ for( TQPtrListIterator<K3bPlugin> it( fl ); it.current(); ++it ) {
if( static_cast<K3bAudioDecoderFactory*>(it.current())->canDecode( url ) ) {
a = true;
break;
@@ -1621,7 +1621,7 @@ void K3bMainWindow::slotVideoCdRip()
}
-void K3bMainWindow::slotAudioServerError( const QString& error )
+void K3bMainWindow::slotAudioServerError( const TQString& error )
{
K3bPassivePopup::showPopup( error, i18n("Audio Output Problem") );
}
diff --git a/src/k3b.h b/src/k3b.h
index 37532b0..1562e57 100644
--- a/src/k3b.h
+++ b/src/k3b.h
@@ -23,10 +23,10 @@
#include <config.h>
#endif
-// include files for Qt
-#include <qstrlist.h>
-#include <qworkspace.h>
-#include <qptrlist.h>
+// include files for TQt
+#include <tqstrlist.h>
+#include <tqworkspace.h>
+#include <tqptrlist.h>
// include files for KDE
#include <kapplication.h>
@@ -35,7 +35,7 @@
#include <kaction.h>
#include <kurl.h>
-class QVBox;
+class TQVBox;
// forward declaration of the K3b classes
@@ -62,6 +62,7 @@ namespace K3bDevice {
class K3bMainWindow : public KParts::DockMainWindow
{
Q_OBJECT
+ TQ_OBJECT
public:
/** construtor of K3bMainWindow, calls all init functions to create the application.
@@ -87,7 +88,7 @@ class K3bMainWindow : public KParts::DockMainWindow
*/
K3bDoc* activeDoc() const;
- const QPtrList<K3bDoc>& projects() const;
+ const TQPtrList<K3bDoc>& projects() const;
bool eject();
void showOptionDialog( int = 0 );
@@ -133,8 +134,8 @@ class K3bMainWindow : public KParts::DockMainWindow
void slotVideoCdRip();
void slotK3bSetup();
- void slotErrorMessage(const QString&);
- void slotWarningMessage(const QString&);
+ void slotErrorMessage(const TQString&);
+ void slotWarningMessage(const TQString&);
void slotConfigureKeys();
void slotShowTips();
@@ -143,7 +144,7 @@ class K3bMainWindow : public KParts::DockMainWindow
void addUrls( const KURL::List& urls );
signals:
- void initializationInfo( const QString& );
+ void initializationInfo( const TQString& );
void configChanged( KConfig* c );
protected:
@@ -181,7 +182,7 @@ class K3bMainWindow : public KParts::DockMainWindow
*/
bool canCloseDocument( K3bDoc* );
- virtual void showEvent( QShowEvent* e );
+ virtual void showEvent( TQShowEvent* e );
private slots:
/** open a file and load it into the document*/
@@ -214,12 +215,12 @@ class K3bMainWindow : public KParts::DockMainWindow
void slotViewDocumentHeader();
- void slotCheckDockWidgetStatus();
+ void slotCheckDockWidgettqStatus();
/** changes the statusbar contents for the standard label permanently, used to indicate current actions.
* @param text the text that is displayed in the statusbar
*/
- void slotStatusMsg(const QString &text);
+ void slotStatusMsg(const TQString &text);
void slotShowDirTreeView();
void slotShowContentsView();
@@ -234,7 +235,7 @@ class K3bMainWindow : public KParts::DockMainWindow
void slotDataClearImportedSession();
void slotEditBootImages();
- void slotAudioServerError( const QString& error );
+ void slotAudioServerError( const TQString& error );
void createClient(K3bDoc* doc);
@@ -248,7 +249,7 @@ class K3bMainWindow : public KParts::DockMainWindow
void fileSaveAs( K3bDoc* doc = 0 );
void closeProject( K3bDoc* );
- /** save general Options like all bar positions and status as well as the geometry and the recent file list to the configuration
+ /** save general Options like all bar positions and status as well as the tqgeometry and the recent file list to the configuration
* file
*/
void saveOptions();
@@ -304,7 +305,7 @@ class K3bMainWindow : public KParts::DockMainWindow
KToggleAction* actionViewDocumentHeader;
// project actions
- QPtrList<KAction> m_dataProjectActions;
+ TQPtrList<KAction> m_dataProjectActions;
KDockWidget* mainDock;
KDockWidget* m_contentsDock;
diff --git a/src/k3bappdevicemanager.cpp b/src/k3bappdevicemanager.cpp
index c21f746..1cf13ae 100644
--- a/src/k3bappdevicemanager.cpp
+++ b/src/k3bappdevicemanager.cpp
@@ -31,8 +31,8 @@
#include <kpopupmenu.h>
-K3bAppDeviceManager::K3bAppDeviceManager( QObject* parent, const char* name )
- : K3bDevice::DeviceManager( parent, name ),
+K3bAppDeviceManager::K3bAppDeviceManager( TQObject* tqparent, const char* name )
+ : K3bDevice::DeviceManager( tqparent, name ),
m_currentDevice(0),
m_ejectRequested(false)
{
@@ -42,21 +42,21 @@ K3bAppDeviceManager::K3bAppDeviceManager( QObject* parent, const char* name )
// setup actions
KActionMenu* devicePopupMenu = new KActionMenu( m_actionCollection, "device_popup" );
- m_actionDiskInfo = new KAction( i18n("Media &Info"), "info", 0, this, SLOT(diskInfo()),
+ m_actionDiskInfo = new KAction( i18n("Media &Info"), "info", 0, this, TQT_SLOT(diskInfo()),
m_actionCollection, "device_diskinfo");
- m_actionUnmount = new KAction( i18n("&Unmount"), "cdrom_unmount", 0, this, SLOT(unmountDisk()),
+ m_actionUnmount = new KAction( i18n("&Unmount"), "cdrom_unmount", 0, this, TQT_SLOT(unmountDisk()),
m_actionCollection, "device_unmount");
- m_actionMount = new KAction( i18n("&Mount"), "cdrom_mount", 0, this, SLOT(mountDisk()),
+ m_actionMount = new KAction( i18n("&Mount"), "cdrom_mount", 0, this, TQT_SLOT(mountDisk()),
m_actionCollection, "device_mount");
- m_actionEject = new KAction( i18n("&Eject"), "", 0, this, SLOT(ejectDisk()),
+ m_actionEject = new KAction( i18n("&Eject"), "", 0, this, TQT_SLOT(ejectDisk()),
m_actionCollection, "device_eject");
- m_actionLoad = new KAction( i18n("L&oad"), "", 0, this, SLOT(loadDisk()),
+ m_actionLoad = new KAction( i18n("L&oad"), "", 0, this, TQT_SLOT(loadDisk()),
m_actionCollection, "device_load");
-// KAction* actionUnlock = new KAction( i18n("Un&lock"), "", 0, this, SLOT(unlockDevice()),
+// KAction* actionUnlock = new KAction( i18n("Un&lock"), "", 0, this, TQT_SLOT(unlockDevice()),
// m_actionCollection, "device_unlock" );
-// KAction* actionlock = new KAction( i18n("Loc&k"), "", 0, this, SLOT(lockDevice()),
+// KAction* actionlock = new KAction( i18n("Loc&k"), "", 0, this, TQT_SLOT(lockDevice()),
// m_actionCollection, "device_lock" );
- m_actionSetReadSpeed = new KAction( i18n("Set Read Speed..."), "", 0, this, SLOT(setReadSpeed()),
+ m_actionSetReadSpeed = new KAction( i18n("Set Read Speed..."), "", 0, this, TQT_SLOT(setReadSpeed()),
m_actionCollection, "device_set_read_speed" );
m_actionDiskInfo->setToolTip( i18n("Display generic medium information") );
@@ -85,8 +85,8 @@ K3bAppDeviceManager::K3bAppDeviceManager( QObject* parent, const char* name )
void K3bAppDeviceManager::setMediaCache( K3bMediaCache* c )
{
- connect( c, SIGNAL(mediumChanged(K3bDevice::Device*)),
- this, SLOT(slotMediumChanged(K3bDevice::Device*)) );
+ connect( c, TQT_SIGNAL(mediumChanged(K3bDevice::Device*)),
+ this, TQT_SLOT(slotMediumChanged(K3bDevice::Device*)) );
}
@@ -110,7 +110,7 @@ void K3bAppDeviceManager::clear()
}
-void K3bAppDeviceManager::removeDevice( const QString& dev )
+void K3bAppDeviceManager::removeDevice( const TQString& dev )
{
if( m_currentDevice == findDevice(dev) )
m_currentDevice = 0;
@@ -230,7 +230,7 @@ void K3bAppDeviceManager::setReadSpeed()
"and the spinning noise is intrusive."
"<p>Be aware that this has no influence on K3b since it will "
"change the reading speed again when copying CDs or DVDs.")
- .arg(currentDevice()->vendor() + " " + currentDevice()->description()),
+ .tqarg(currentDevice()->vendor() + " " + currentDevice()->description()),
12,
1,
currentDevice()->maxReadSpeed(),
diff --git a/src/k3bappdevicemanager.h b/src/k3bappdevicemanager.h
index 419a8b3..2fe7925 100644
--- a/src/k3bappdevicemanager.h
+++ b/src/k3bappdevicemanager.h
@@ -40,9 +40,10 @@ namespace KIO {
class K3bAppDeviceManager : public K3bDevice::DeviceManager
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAppDeviceManager( QObject* parent = 0, const char* name = 0 );
+ K3bAppDeviceManager( TQObject* tqparent = 0, const char* name = 0 );
~K3bAppDeviceManager();
K3bDevice::Device* currentDevice() const;
@@ -59,7 +60,7 @@ class K3bAppDeviceManager : public K3bDevice::DeviceManager
void detectingDiskInfo( K3bDevice::Device* );
void diskInfoReady( K3bDevice::DiskInfoDetector* );
- void mountFinished( const QString& mountPoint );
+ void mountFinished( const TQString& mountPoint );
void unmountFinished( bool success );
public slots:
@@ -71,7 +72,7 @@ class K3bAppDeviceManager : public K3bDevice::DeviceManager
/**
* \reimplemeted for internal reasons. The API is unaffected.
*/
- void removeDevice( const QString& );
+ void removeDevice( const TQString& );
/**
* \reimplemeted for internal reasons. The API is unaffected.
diff --git a/src/k3bapplication.cpp b/src/k3bapplication.cpp
index 4b517ea..73fd5fb 100644
--- a/src/k3bapplication.cpp
+++ b/src/k3bapplication.cpp
@@ -54,10 +54,10 @@
#include <kstartupinfo.h>
#include <kmessagebox.h>
-#include <qguardedptr.h>
-#include <qtimer.h>
-#include <qvaluelist.h>
-#include <qcstring.h>
+#include <tqguardedptr.h>
+#include <tqtimer.h>
+#include <tqvaluelist.h>
+#include <tqcstring.h>
K3bApplication::Core* K3bApplication::Core::s_k3bAppCore = 0;
@@ -72,22 +72,22 @@ K3bApplication::K3bApplication()
KGlobal::locale()->insertCatalogue( "libk3bdevice" );
KGlobal::locale()->insertCatalogue( "libk3b" );
- m_core = new Core( this );
+ m_core = new Core( TQT_TQOBJECT(this) );
// TODO: move to K3bCore?
// from this point on available through K3bAudioServer::instance()
- m_audioServer = new K3bAudioServer( this, "K3bAudioServer" );
+ m_audioServer = new K3bAudioServer( TQT_TQOBJECT(this), "K3bAudioServer" );
- connect( m_core, SIGNAL(initializationInfo(const QString&)),
- SIGNAL(initializationInfo(const QString&)) );
+ connect( m_core, TQT_SIGNAL(initializationInfo(const TQString&)),
+ TQT_SIGNAL(initializationInfo(const TQString&)) );
- connect( this, SIGNAL(shutDown()), SLOT(slotShutDown()) );
+ connect( this, TQT_SIGNAL(shutDown()), TQT_SLOT(slotShutDown()) );
}
K3bApplication::~K3bApplication()
{
- // we must not delete m_mainWindow here, QApplication takes care of it
+ // we must not delete m_mainWindow here, TQApplication takes care of it
}
@@ -95,7 +95,7 @@ void K3bApplication::init()
{
KConfigGroup generalOptions( config(), "General Options" );
- QGuardedPtr<K3bSplash> splash;
+ TQGuardedPtr<K3bSplash> splash;
if( !isRestored() ) {
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
@@ -104,13 +104,13 @@ void K3bApplication::init()
m_core->m_themeManager->readConfig( config() );
splash = new K3bSplash( 0 );
- splash->connect( this, SIGNAL(initializationInfo(const QString&)), SLOT(addInfo(const QString&)) );
+ splash->connect( this, TQT_SIGNAL(initializationInfo(const TQString&)), TQT_SLOT(addInfo(const TQString&)) );
// kill the splash after 5 seconds
- QTimer::singleShot( 5000, splash, SLOT(close()) );
+ TQTimer::singleShot( 5000, splash, TQT_SLOT(close()) );
splash->show();
- qApp->processEvents();
+ tqApp->processEvents();
}
}
@@ -232,20 +232,20 @@ bool K3bApplication::processCmdLineArgs()
showTips = false;
dialogOpen = true;
if( k3bcore->jobsRunning() == 0 ) {
- m_mainWindow->slotWriteCdImage( KURL::fromPathOrURL( QFile::decodeName( args->getOption( "cdimage" ) ) ) );
+ m_mainWindow->slotWriteCdImage( KURL::fromPathOrURL( TQFile::decodeName( args->getOption( "cdimage" ) ) ) );
}
}
else if( args->isSet( "dvdimage" ) ) {
showTips = false;
dialogOpen = true;
if( k3bcore->jobsRunning() == 0 ) {
- m_mainWindow->slotWriteDvdIsoImage( KURL::fromPathOrURL( QFile::decodeName( args->getOption( "dvdimage" ) ) ) );
+ m_mainWindow->slotWriteDvdIsoImage( KURL::fromPathOrURL( TQFile::decodeName( args->getOption( "dvdimage" ) ) ) );
}
}
else if( args->isSet( "image" ) ) {
showTips = false;
dialogOpen = true;
- KURL url = KURL::fromPathOrURL( QFile::decodeName( args->getOption( "image" ) ) );
+ KURL url = KURL::fromPathOrURL( TQFile::decodeName( args->getOption( "image" ) ) );
if( k3bcore->jobsRunning() == 0 ) {
if( K3b::filesize( url ) > 1000*1024*1024 )
m_mainWindow->slotWriteDvdIsoImage( url );
@@ -256,34 +256,34 @@ bool K3bApplication::processCmdLineArgs()
else if( args->isSet("copycd") ) {
showTips = false;
dialogOpen = true;
- qApp->processEvents();
- m_mainWindow->cdCopy( K3b::urlToDevice( KURL::fromPathOrURL( QFile::decodeName( args->getOption( "copycd" ) ) ) ) );
+ tqApp->processEvents();
+ m_mainWindow->cdCopy( K3b::urlToDevice( KURL::fromPathOrURL( TQFile::decodeName( args->getOption( "copycd" ) ) ) ) );
}
else if( args->isSet("copydvd") ) {
showTips = false;
dialogOpen = true;
- m_mainWindow->dvdCopy( K3b::urlToDevice( KURL::fromPathOrURL( QFile::decodeName( args->getOption( "copydvd" ) ) ) ) );
+ m_mainWindow->dvdCopy( K3b::urlToDevice( KURL::fromPathOrURL( TQFile::decodeName( args->getOption( "copydvd" ) ) ) ) );
}
else if( args->isSet("erasecd") ) {
showTips = false;
dialogOpen = true;
- m_mainWindow->blankCdrw( K3b::urlToDevice( KURL::fromPathOrURL( QFile::decodeName( args->getOption( "erasecd" ) ) ) ) );
+ m_mainWindow->blankCdrw( K3b::urlToDevice( KURL::fromPathOrURL( TQFile::decodeName( args->getOption( "erasecd" ) ) ) ) );
}
else if( args->isSet("formatdvd") ) {
showTips = false;
dialogOpen = true;
- m_mainWindow->formatDvd( K3b::urlToDevice( KURL::fromPathOrURL( QFile::decodeName( args->getOption( "formatdvd" ) ) ) ) );
+ m_mainWindow->formatDvd( K3b::urlToDevice( KURL::fromPathOrURL( TQFile::decodeName( args->getOption( "formatdvd" ) ) ) ) );
}
// no dialog used here
if( args->isSet( "cddarip" ) ) {
- m_mainWindow->cddaRip( K3b::urlToDevice( KURL::fromPathOrURL( QFile::decodeName( args->getOption( "cddarip" ) ) ) ) );
+ m_mainWindow->cddaRip( K3b::urlToDevice( KURL::fromPathOrURL( TQFile::decodeName( args->getOption( "cddarip" ) ) ) ) );
}
else if( args->isSet( "videodvdrip" ) ) {
- m_mainWindow->videoDvdRip( K3b::urlToDevice( KURL::fromPathOrURL( QFile::decodeName( args->getOption( "videodvdrip" ) ) ) ) );
+ m_mainWindow->videoDvdRip( K3b::urlToDevice( KURL::fromPathOrURL( TQFile::decodeName( args->getOption( "videodvdrip" ) ) ) ) );
}
else if( args->isSet( "videocdrip" ) ) {
- m_mainWindow->videoCdRip( K3b::urlToDevice( KURL::fromPathOrURL( QFile::decodeName( args->getOption( "videocdrip" ) ) ) ) );
+ m_mainWindow->videoCdRip( K3b::urlToDevice( KURL::fromPathOrURL( TQFile::decodeName( args->getOption( "videocdrip" ) ) ) ) );
}
if( !dialogOpen && args->isSet( "burn" ) ) {
@@ -297,7 +297,7 @@ bool K3bApplication::processCmdLineArgs()
// FIXME: seems not like the right place...
if( args->isSet( "ao" ) )
if( !m_audioServer->setOutputMethod( args->getOption( "ao" ) ) )
- K3bPassivePopup::showPopup( i18n("Could not find Audio Output plugin '%1'").arg( args->getOption("ao") ),
+ K3bPassivePopup::showPopup( i18n("Could not find Audio Output plugin '%1'").tqarg( args->getOption("ao").data() ),
i18n("Initialization Problem"),
K3bPassivePopup::Warning );
@@ -315,8 +315,8 @@ void K3bApplication::slotShutDown()
-K3bApplication::Core::Core( QObject* parent )
- : K3bCore( parent ),
+K3bApplication::Core::Core( TQObject* tqparent )
+ : K3bCore( tqparent ),
m_appDeviceManager(0),
m_mediaCache(0)
{
@@ -382,8 +382,8 @@ void K3bApplication::Core::init()
mediaCache()->buildDeviceList( deviceManager() );
- connect( deviceManager(), SIGNAL(changed(K3bDevice::DeviceManager*)),
- mediaCache(), SLOT(buildDeviceList(K3bDevice::DeviceManager*)) );
+ connect( deviceManager(), TQT_SIGNAL(changed(K3bDevice::DeviceManager*)),
+ mediaCache(), TQT_SLOT(buildDeviceList(K3bDevice::DeviceManager*)) );
}
@@ -424,7 +424,7 @@ bool K3bApplication::Core::internalBlockDevice( K3bDevice::Device* dev )
//
// Check if the device is in use
//
- // FIXME: Use the top level widget as parent
+ // FIXME: Use the top level widget as tqparent
K3bLsofWrapperDialog::checkDevice( dev );
return true;
diff --git a/src/k3bapplication.h b/src/k3bapplication.h
index 8dafac1..0f64201 100644
--- a/src/k3bapplication.h
+++ b/src/k3bapplication.h
@@ -20,7 +20,7 @@
#include <kuniqueapplication.h>
#include <k3bcore.h>
-#include <qmap.h>
+#include <tqmap.h>
#define k3bappcore K3bApplication::Core::k3bAppCore()
@@ -38,6 +38,7 @@ class K3bMediaCache;
class K3bApplication : public KUniqueApplication
{
Q_OBJECT
+ TQ_OBJECT
public:
K3bApplication();
@@ -51,7 +52,7 @@ class K3bApplication : public KUniqueApplication
void init();
signals:
- void initializationInfo( const QString& );
+ void initializationInfo( const TQString& );
void initializationDone();
private slots:
@@ -75,9 +76,10 @@ class K3bApplication : public KUniqueApplication
class K3bApplication::Core : public K3bCore
{
Q_OBJECT
+ TQ_OBJECT
public:
- Core( QObject* parent );
+ Core( TQObject* tqparent );
~Core();
void init();
@@ -115,7 +117,7 @@ class K3bApplication::Core : public K3bCore
/**
* This is used for showing info in the K3b splashscreen
*/
- void initializationInfo( const QString& );
+ void initializationInfo( const TQString& );
/**
* Any component may request busy info
@@ -124,7 +126,7 @@ class K3bApplication::Core : public K3bCore
*
* FIXME: this is bad design
*/
- void busyInfoRequested( const QString& );
+ void busyInfoRequested( const TQString& );
/**
* FIXME: this is bad design
@@ -146,7 +148,7 @@ class K3bApplication::Core : public K3bCore
K3bAppDeviceManager* m_appDeviceManager;
K3bMediaCache* m_mediaCache;
- QMap<K3bDevice::Device*, int> m_deviceBlockMap;
+ TQMap<K3bDevice::Device*, int> m_deviceBlockMap;
static Core* s_k3bAppCore;
diff --git a/src/k3baudioplayer.cpp b/src/k3baudioplayer.cpp
index 645b3cf..522fc19 100644
--- a/src/k3baudioplayer.cpp
+++ b/src/k3baudioplayer.cpp
@@ -18,20 +18,20 @@
#include <k3bmsf.h>
#include "kcutlabel.h"
-#include <qlabel.h>
-#include <qtoolbutton.h>
-#include <qlayout.h>
-#include <qtimer.h>
-#include <qdatetime.h>
-#include <qfont.h>
-#include <qslider.h>
-#include <qlistview.h>
-#include <qfile.h>
-#include <qpalette.h>
-#include <qheader.h>
-#include <qevent.h>
-#include <qdragobject.h>
-#include <qptrlist.h>
+#include <tqlabel.h>
+#include <tqtoolbutton.h>
+#include <tqlayout.h>
+#include <tqtimer.h>
+#include <tqdatetime.h>
+#include <tqfont.h>
+#include <tqslider.h>
+#include <tqlistview.h>
+#include <tqfile.h>
+#include <tqpalette.h>
+#include <tqheader.h>
+#include <tqevent.h>
+#include <tqdragobject.h>
+#include <tqptrlist.h>
#include <kurldrag.h>
#include <kiconloader.h>
@@ -49,16 +49,16 @@
using namespace std;
-K3bPlayListViewItem::K3bPlayListViewItem( const QString& filename, QListView* parent )
- : KListViewItem( parent ), m_filename( filename )
+K3bPlayListViewItem::K3bPlayListViewItem( const TQString& filename, TQListView* tqparent )
+ : KListViewItem( tqparent ), m_filename( filename )
{
m_length = 0;
m_bActive = false;
}
-K3bPlayListViewItem::K3bPlayListViewItem( const QString& filename, QListView* parent, QListViewItem* after )
- : KListViewItem( parent, after ), m_filename( filename )
+K3bPlayListViewItem::K3bPlayListViewItem( const TQString& filename, TQListView* tqparent, TQListViewItem* after )
+ : KListViewItem( tqparent, after ), m_filename( filename )
{
m_length = 0;
m_bActive = false;
@@ -70,12 +70,12 @@ K3bPlayListViewItem::~K3bPlayListViewItem()
}
-QString K3bPlayListViewItem::text( int c ) const
+TQString K3bPlayListViewItem::text( int c ) const
{
switch( c ) {
case 0:
{
- int pos = m_filename.findRev("/");
+ int pos = m_filename.tqfindRev("/");
if( pos >= 0 )
return m_filename.mid(pos+1);
return m_filename;
@@ -91,17 +91,17 @@ QString K3bPlayListViewItem::text( int c ) const
}
-void K3bPlayListViewItem::paintCell( QPainter* p, const QColorGroup& cg, int c, int w, int a )
+void K3bPlayListViewItem::paintCell( TQPainter* p, const TQColorGroup& cg, int c, int w, int a )
{
if( m_bActive ) {
// change the color of the text:
// change roles: Text, HighlightedText, HighLight
- QColorGroup newCg( cg );
+ TQColorGroup newCg( cg );
// we assume the user has not configured a very dark color as base color
- newCg.setColor( QColorGroup::Text, red );
- newCg.setColor( QColorGroup::Highlight, red );
- newCg.setColor( QColorGroup::HighlightedText, white );
+ newCg.setColor( TQColorGroup::Text, red );
+ newCg.setColor( TQColorGroup::Highlight, red );
+ newCg.setColor( TQColorGroup::HighlightedText, white );
KListViewItem::paintCell( p, newCg, c, w, a );
}
@@ -110,8 +110,8 @@ void K3bPlayListViewItem::paintCell( QPainter* p, const QColorGroup& cg, int c,
}
-K3bPlayListView::K3bPlayListView( QWidget* parent, const char* name )
- : KListView( parent, name )
+K3bPlayListView::K3bPlayListView( TQWidget* tqparent, const char* name )
+ : KListView( tqparent, name )
{
addColumn( i18n("Filename") );
addColumn( i18n("Length") );
@@ -130,21 +130,21 @@ K3bPlayListView::~K3bPlayListView()
}
-bool K3bPlayListView::acceptDrag( QDropEvent* e ) const
+bool K3bPlayListView::acceptDrag( TQDropEvent* e ) const
{
// we accept textdrag (urls) and moved items (supported by KListView)
return KURLDrag::canDecode(e) || KListView::acceptDrag(e);
}
-QDragObject* K3bPlayListView::dragObject()
+TQDragObject* K3bPlayListView::dragObject()
{
- QPtrList<QListViewItem> list = selectedItems();
+ TQPtrList<TQListViewItem> list = selectedItems();
if( list.isEmpty() )
return 0;
- QPtrListIterator<QListViewItem> it(list);
+ TQPtrListIterator<TQListViewItem> it(list);
KURL::List urls;
for( ; it.current(); ++it )
@@ -154,8 +154,8 @@ QDragObject* K3bPlayListView::dragObject()
}
-K3bAudioPlayer::K3bAudioPlayer( QWidget* parent, const char* name )
- : QWidget( parent, name )
+K3bAudioPlayer::K3bAudioPlayer( TQWidget* tqparent, const char* name )
+ : TQWidget( tqparent, name )
#ifdef WITH_ARTS
, m_playObject( Arts::PlayObject::null() )
#endif
@@ -164,39 +164,39 @@ K3bAudioPlayer::K3bAudioPlayer( QWidget* parent, const char* name )
// initialize
// ------------------------------------------------------------------------
m_labelFilename = new KCutLabel( i18n("no file"), this );
- m_labelOverallTime = new QLabel( "00:00", this );
- m_labelCurrentTime = new QLabel( "00:00", this );
+ m_labelOverallTime = new TQLabel( "00:00", this );
+ m_labelCurrentTime = new TQLabel( "00:00", this );
m_viewPlayList = new K3bPlayListView( this );
- m_labelOverallTime->setAlignment( AlignHCenter | AlignVCenter );
- m_labelCurrentTime->setAlignment( AlignHCenter | AlignVCenter );
- m_labelOverallTime->setFrameStyle( QFrame::StyledPanel | QFrame::Plain );
- m_labelCurrentTime->setFrameStyle( QFrame::StyledPanel | QFrame::Plain );
- m_labelFilename->setFrameStyle( QFrame::StyledPanel | QFrame::Plain );
- m_labelOverallTime->setPalette( QPalette( QColor(238, 238, 205) ) );
- m_labelCurrentTime->setPalette( QPalette( QColor(238, 238, 205) ) );
- m_labelFilename->setPalette( QPalette( QColor(238, 238, 205) ) );
-
- m_buttonPlay = new QToolButton( this );
- m_buttonPause = new QToolButton( this );
- m_buttonStop = new QToolButton( this );
+ m_labelOverallTime->tqsetAlignment( AlignHCenter | AlignVCenter );
+ m_labelCurrentTime->tqsetAlignment( AlignHCenter | AlignVCenter );
+ m_labelOverallTime->setFrameStyle( TQFrame::StyledPanel | TQFrame::Plain );
+ m_labelCurrentTime->setFrameStyle( TQFrame::StyledPanel | TQFrame::Plain );
+ m_labelFilename->setFrameStyle( TQFrame::StyledPanel | TQFrame::Plain );
+ m_labelOverallTime->setPalette( TQPalette( TQColor(238, 238, 205) ) );
+ m_labelCurrentTime->setPalette( TQPalette( TQColor(238, 238, 205) ) );
+ m_labelFilename->setPalette( TQPalette( TQColor(238, 238, 205) ) );
+
+ m_buttonPlay = new TQToolButton( this );
+ m_buttonPause = new TQToolButton( this );
+ m_buttonStop = new TQToolButton( this );
m_buttonPlay->setIconSet( SmallIconSet("player_play") );
m_buttonPause->setIconSet( SmallIconSet("player_pause") );
m_buttonStop->setIconSet( SmallIconSet("player_stop") );
- m_buttonForward = new QToolButton( this );
- m_buttonBack = new QToolButton( this );
+ m_buttonForward = new TQToolButton( this );
+ m_buttonBack = new TQToolButton( this );
m_buttonForward->setIconSet( SmallIconSet("player_end") );
m_buttonBack->setIconSet( SmallIconSet("player_start") );
- m_seekSlider = new QSlider( QSlider::Horizontal, this );
+ m_seekSlider = new TQSlider( TQSlider::Horizontal, this );
- m_updateTimer = new QTimer( this );
+ m_updateTimer = new TQTimer( this );
// ------------------------------------------------------------------------
- // layout
+ // tqlayout
// ------------------------------------------------------------------------
- QGridLayout* grid = new QGridLayout( this );
+ TQGridLayout* grid = new TQGridLayout( this );
grid->setSpacing( 2 );
grid->setMargin( 0 );
@@ -223,10 +223,10 @@ K3bAudioPlayer::K3bAudioPlayer( QWidget* parent, const char* name )
// actions
// ------------------------------------------------------------------------
m_actionRemove = new KAction( i18n( "Remove" ), "editdelete",
- Key_Delete, this, SLOT(slotRemoveSelected()),
+ Key_Delete, this, TQT_SLOT(slotRemoveSelected()),
this, "audioplayer_remove" );
m_actionClear = new KAction( i18n( "Clear List" ), "editclear",
- 0, this, SLOT(clear()),
+ 0, this, TQT_SLOT(clear()),
this, "audioplayer_clear" );
m_contextMenu = new KActionMenu( this, "audio_player_menu" );
@@ -237,26 +237,26 @@ K3bAudioPlayer::K3bAudioPlayer( QWidget* parent, const char* name )
// connections
// ------------------------------------------------------------------------
- connect( m_viewPlayList, SIGNAL(contextMenu(KListView*, QListViewItem*, const QPoint&)),
- this, SLOT(slotShowContextMenu(KListView*, QListViewItem*, const QPoint&)) );
+ connect( m_viewPlayList, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
+ this, TQT_SLOT(slotShowContextMenu(KListView*, TQListViewItem*, const TQPoint&)) );
- connect( m_buttonPlay, SIGNAL(clicked()), this, SLOT(play()) );
- connect( m_buttonStop, SIGNAL(clicked()), this, SLOT(stop()) );
- connect( m_buttonPause, SIGNAL(clicked()), this, SLOT(pause()) );
+ connect( m_buttonPlay, TQT_SIGNAL(clicked()), this, TQT_SLOT(play()) );
+ connect( m_buttonStop, TQT_SIGNAL(clicked()), this, TQT_SLOT(stop()) );
+ connect( m_buttonPause, TQT_SIGNAL(clicked()), this, TQT_SLOT(pause()) );
- connect( m_buttonForward, SIGNAL(clicked()), this, SLOT(forward()) );
- connect( m_buttonBack, SIGNAL(clicked()), this, SLOT(back()) );
+ connect( m_buttonForward, TQT_SIGNAL(clicked()), this, TQT_SLOT(forward()) );
+ connect( m_buttonBack, TQT_SIGNAL(clicked()), this, TQT_SLOT(back()) );
- connect( m_seekSlider, SIGNAL(sliderMoved(int)), this, SLOT(seek(int)) );
- connect( m_seekSlider, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateCurrentTime(int)) );
+ connect( m_seekSlider, TQT_SIGNAL(sliderMoved(int)), this, TQT_SLOT(seek(int)) );
+ connect( m_seekSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotUpdateCurrentTime(int)) );
- connect( m_updateTimer, SIGNAL(timeout()), this, SLOT(slotUpdateDisplay()) );
- connect( m_updateTimer, SIGNAL(timeout()), this, SLOT(slotCheckEnd()) );
+ connect( m_updateTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotUpdateDisplay()) );
+ connect( m_updateTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotCheckEnd()) );
- connect( m_viewPlayList, SIGNAL(doubleClicked(QListViewItem*)),
- this, SLOT(slotPlayItem(QListViewItem*)) );
- connect( m_viewPlayList, SIGNAL(dropped(QDropEvent*,QListViewItem*)),
- this, SLOT(slotDropped(QDropEvent*,QListViewItem*)) );
+ connect( m_viewPlayList, TQT_SIGNAL(doubleClicked(TQListViewItem*)),
+ this, TQT_SLOT(slotPlayItem(TQListViewItem*)) );
+ connect( m_viewPlayList, TQT_SIGNAL(dropped(TQDropEvent*,TQListViewItem*)),
+ this, TQT_SLOT(slotDropped(TQDropEvent*,TQListViewItem*)) );
// ------------------------------------------------------------------------
@@ -295,10 +295,10 @@ int K3bAudioPlayer::state()
}
-void K3bAudioPlayer::playFile( const QString& filename )
+void K3bAudioPlayer::playFile( const TQString& filename )
{
clear();
- if( QFile::exists( filename ) ) {
+ if( TQFile::exists( filename ) ) {
K3bPlayListViewItem* item = new K3bPlayListViewItem( filename, m_viewPlayList );
setCurrentItem( item );
play();
@@ -307,10 +307,10 @@ void K3bAudioPlayer::playFile( const QString& filename )
}
-void K3bAudioPlayer::playFiles( const QStringList& files )
+void K3bAudioPlayer::playFiles( const TQStringList& files )
{
clear();
- QStringList::ConstIterator it = files.begin();
+ TQStringList::ConstIterator it = files.begin();
playFile( *it );
++it;
@@ -319,16 +319,16 @@ void K3bAudioPlayer::playFiles( const QStringList& files )
}
-void K3bAudioPlayer::enqueueFile( const QString& filename )
+void K3bAudioPlayer::enqueueFile( const TQString& filename )
{
- if( QFile::exists( filename ) )
+ if( TQFile::exists( filename ) )
(void)new K3bPlayListViewItem( filename, m_viewPlayList, m_viewPlayList->lastChild() );
}
-void K3bAudioPlayer::enqueueFiles( const QStringList& files )
+void K3bAudioPlayer::enqueueFiles( const TQStringList& files )
{
- for( QStringList::ConstIterator it = files.begin(); it != files.end(); ++it )
+ for( TQStringList::ConstIterator it = files.begin(); it != files.end(); ++it )
enqueueFile( *it );
}
@@ -349,7 +349,7 @@ void K3bAudioPlayer::play()
return;
}
- m_playObject = factory.createPlayObject( string(QFile::encodeName(m_currentItem->filename()) ) );
+ m_playObject = factory.createPlayObject( string(TQFile::encodeName(m_currentItem->filename()) ) );
if( m_playObject.isNull() ) {
kdDebug() << "(K3bAudioPlayer) no aRts module available for: " << m_currentItem->filename() << endl;
m_labelFilename->setText( i18n("Unknown file format") );
@@ -374,7 +374,7 @@ void K3bAudioPlayer::play()
}
-void K3bAudioPlayer::slotPlayItem( QListViewItem* item )
+void K3bAudioPlayer::slotPlayItem( TQListViewItem* item )
{
setCurrentItem( item );
play();
@@ -511,9 +511,9 @@ long K3bAudioPlayer::position()
// FIXME: let my do some useful stuff!
-bool K3bAudioPlayer::supportsMimetype( const QString& mimetype )
+bool K3bAudioPlayer::supportsMimetype( const TQString& mimetype )
{
- if( mimetype.contains("audio") || mimetype.contains("ogg") )
+ if( mimetype.tqcontains("audio") || mimetype.tqcontains("ogg") )
return true;
else
return false;
@@ -539,7 +539,7 @@ void K3bAudioPlayer::slotCheckEnd()
}
-void K3bAudioPlayer::setCurrentItem( QListViewItem* item )
+void K3bAudioPlayer::setCurrentItem( TQListViewItem* item )
{
if( item == 0 ) {
stop();
@@ -579,20 +579,20 @@ void K3bAudioPlayer::slotUpdateLength( long time )
void K3bAudioPlayer::slotUpdateFilename()
{
if( m_currentItem ) {
- QString display = m_currentItem->filename();
- int pos = display.findRev("/");
+ TQString display = m_currentItem->filename();
+ int pos = display.tqfindRev("/");
if( pos >= 0 )
display = display.mid(pos+1);
switch( state() ) {
case PLAYING:
- display.prepend( QString("(%1) ").arg(i18n("playing")) );
+ display.prepend( TQString("(%1) ").tqarg(i18n("playing")) );
break;
case PAUSED:
- display.prepend( QString("(%1) ").arg(i18n("paused")) );
+ display.prepend( TQString("(%1) ").tqarg(i18n("paused")) );
break;
case STOPPED:
- display.prepend( QString("(%1) ").arg(i18n("stopped")) );
+ display.prepend( TQString("(%1) ").tqarg(i18n("stopped")) );
break;
default:
break;
@@ -621,7 +621,7 @@ void K3bAudioPlayer::slotUpdateDisplay()
}
-void K3bAudioPlayer::slotDropped( QDropEvent* e, QListViewItem* after )
+void K3bAudioPlayer::slotDropped( TQDropEvent* e, TQListViewItem* after )
{
if( !after )
after = m_viewPlayList->lastChild();
@@ -630,8 +630,8 @@ void K3bAudioPlayer::slotDropped( QDropEvent* e, QListViewItem* after )
KURLDrag::decode( e, urls );
for( KURL::List::ConstIterator it = urls.begin(); it != urls.end(); ++it ) {
- if( QFile::exists( (*it).path() ) ) {
- QListViewItem* newItem = new K3bPlayListViewItem( (*it).path(), m_viewPlayList, after );
+ if( TQFile::exists( (*it).path() ) ) {
+ TQListViewItem* newItem = new K3bPlayListViewItem( (*it).path(), m_viewPlayList, after );
after = newItem;
}
}
@@ -640,8 +640,8 @@ void K3bAudioPlayer::slotDropped( QDropEvent* e, QListViewItem* after )
void K3bAudioPlayer::slotRemoveSelected()
{
- QPtrList<QListViewItem> selected = m_viewPlayList->selectedItems();
- for( QListViewItem* item = selected.first(); item; item = selected.next() ) {
+ TQPtrList<TQListViewItem> selected = m_viewPlayList->selectedItems();
+ for( TQListViewItem* item = selected.first(); item; item = selected.next() ) {
if( item == m_currentItem )
setCurrentItem(0);
delete item;
@@ -649,7 +649,7 @@ void K3bAudioPlayer::slotRemoveSelected()
}
-void K3bAudioPlayer::slotShowContextMenu( KListView*, QListViewItem* item, const QPoint& p )
+void K3bAudioPlayer::slotShowContextMenu( KListView*, TQListViewItem* item, const TQPoint& p )
{
if( item )
m_actionRemove->setEnabled( true );
diff --git a/src/k3baudioplayer.h b/src/k3baudioplayer.h
index 1bc28a9..9a4f0f0 100644
--- a/src/k3baudioplayer.h
+++ b/src/k3baudioplayer.h
@@ -26,14 +26,14 @@
#include <arts/kartsdispatcher.h>
#endif
-class QTimer;
-class QLabel;
-class QToolButton;
-class QSlider;
-class QPainter;
-class QColorGroup;
-class QDropEvent;
-class QDragObject;
+class TQTimer;
+class TQLabel;
+class TQToolButton;
+class TQSlider;
+class TQPainter;
+class TQColorGroup;
+class TQDropEvent;
+class TQDragObject;
class KAction;
class KActionMenu;
@@ -45,30 +45,30 @@ class KActionMenu;
class K3bPlayListViewItem : public KListViewItem
{
public:
- K3bPlayListViewItem( const QString&, QListView* parent );
- K3bPlayListViewItem( const QString&, QListView* parent, QListViewItem* after );
+ K3bPlayListViewItem( const TQString&, TQListView* tqparent );
+ K3bPlayListViewItem( const TQString&, TQListView* tqparent, TQListViewItem* after );
~K3bPlayListViewItem();
/** @returns the filename for the first column and the
* length in format 00:00.00 for the second column
*/
- virtual QString text( int c ) const;
+ virtual TQString text( int c ) const;
void setLength( unsigned long l ) { m_length = l; }
unsigned long length() const { return m_length; }
- const QString& filename() const { return m_filename; }
+ const TQString& filename() const { return m_filename; }
/**
- * reimplemented from QListViewItem
+ * reimplemented from TQListViewItem
* takes the m_bActive flag into account.
*/
- virtual void paintCell( QPainter*, const QColorGroup&, int, int, int );
+ virtual void paintCell( TQPainter*, const TQColorGroup&, int, int, int );
void setActive( bool a ) { m_bActive = a; }
protected:
/** path to the associated file */
- QString m_filename;
+ TQString m_filename;
/** length in frames (1/75 second) */
unsigned long m_length;
@@ -85,14 +85,15 @@ class K3bPlayListViewItem : public KListViewItem
class K3bPlayListView : public KListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bPlayListView( QWidget* parent = 0, const char* name = 0 );
+ K3bPlayListView( TQWidget* tqparent = 0, const char* name = 0 );
~K3bPlayListView();
protected:
- bool acceptDrag( QDropEvent* e ) const;
- QDragObject* dragObject();
+ bool acceptDrag( TQDropEvent* e ) const;
+ TQDragObject* dragObject();
};
@@ -101,15 +102,16 @@ Q_OBJECT
/**
* @author Sebastian Trueg
*/
-class K3bAudioPlayer : public QWidget
+class K3bAudioPlayer : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioPlayer( QWidget* parent = 0, const char* name = 0 );
+ K3bAudioPlayer( TQWidget* tqparent = 0, const char* name = 0 );
~K3bAudioPlayer();
- bool supportsMimetype( const QString& mimetype );
+ bool supportsMimetype( const TQString& mimetype );
/**
* length of current playing in seconds
@@ -129,17 +131,17 @@ Q_OBJECT
int state();
signals:
- void started( const QString& filename );
+ void started( const TQString& filename );
void started();
void stopped();
void paused();
void ended();
public slots:
- void playFile( const QString& filename );
- void playFiles( const QStringList& files );
- void enqueueFile( const QString& filename );
- void enqueueFiles( const QStringList& files );
+ void playFile( const TQString& filename );
+ void playFiles( const TQStringList& files );
+ void enqueueFile( const TQString& filename );
+ void enqueueFiles( const TQStringList& files );
/** clears the playlist */
void clear();
@@ -152,8 +154,8 @@ Q_OBJECT
void seek( int pos );
/* protected: */
-/* void dragEnterEvent( QDragEnterEvent* e ); */
-/* void dropEvent( QDropEvent* e ); */
+/* void dragEnterEvent( TQDragEnterEvent* e ); */
+/* void dropEvent( TQDropEvent* e ); */
private slots:
void slotCheckEnd();
@@ -161,39 +163,39 @@ Q_OBJECT
void slotUpdateCurrentTime( int time );
void slotUpdateLength( long time );
void slotUpdateFilename();
- void slotPlayItem( QListViewItem* item );
- void slotDropped( QDropEvent* e, QListViewItem* after );
+ void slotPlayItem( TQListViewItem* item );
+ void slotDropped( TQDropEvent* e, TQListViewItem* after );
/**
* set the actual item. Will set m_currentItem and
* handle highlighting of the current item
*/
- void setCurrentItem( QListViewItem* item );
+ void setCurrentItem( TQListViewItem* item );
void slotRemoveSelected();
- void slotShowContextMenu( KListView*, QListViewItem* item, const QPoint& p );
+ void slotShowContextMenu( KListView*, TQListViewItem* item, const TQPoint& p );
private:
#ifdef WITH_ARTS
Arts::PlayObject m_playObject;
KArtsDispatcher m_dispatcher;
#endif
- QString m_filename;
+ TQString m_filename;
- QLabel* m_labelFilename;
- QLabel* m_labelCurrentTime;
- QLabel* m_labelOverallTime;
+ TQLabel* m_labelFilename;
+ TQLabel* m_labelCurrentTime;
+ TQLabel* m_labelOverallTime;
- QToolButton* m_buttonPlay;
- QToolButton* m_buttonPause;
- QToolButton* m_buttonStop;
- QToolButton* m_buttonForward;
- QToolButton* m_buttonBack;
+ TQToolButton* m_buttonPlay;
+ TQToolButton* m_buttonPause;
+ TQToolButton* m_buttonStop;
+ TQToolButton* m_buttonForward;
+ TQToolButton* m_buttonBack;
K3bPlayListView* m_viewPlayList;
- QSlider* m_seekSlider;
+ TQSlider* m_seekSlider;
- QTimer* m_updateTimer;
+ TQTimer* m_updateTimer;
K3bPlayListViewItem* m_currentItem;
diff --git a/src/k3baudioprojectinterface.cpp b/src/k3baudioprojectinterface.cpp
index 1d06d5a..231e968 100644
--- a/src/k3baudioprojectinterface.cpp
+++ b/src/k3baudioprojectinterface.cpp
@@ -32,51 +32,51 @@ int K3bAudioProjectInterface::trackCount() const
}
-QString K3bAudioProjectInterface::title() const
+TQString K3bAudioProjectInterface::title() const
{
return m_audioDoc->title();
}
-QString K3bAudioProjectInterface::artist() const
+TQString K3bAudioProjectInterface::artist() const
{
return m_audioDoc->artist();
}
-QString K3bAudioProjectInterface::trackTitle( int trackNum ) const
+TQString K3bAudioProjectInterface::trackTitle( int trackNum ) const
{
K3bAudioTrack* track = m_audioDoc->getTrack( trackNum );
if( track )
return track->title();
else
- return QString::null;
+ return TQString();
}
-QString K3bAudioProjectInterface::trackArtist( int trackNum ) const
+TQString K3bAudioProjectInterface::trackArtist( int trackNum ) const
{
K3bAudioTrack* track = m_audioDoc->getTrack( trackNum );
if( track )
return track->artist();
else
- return QString::null;
+ return TQString();
}
-void K3bAudioProjectInterface::setTitle( const QString& title )
+void K3bAudioProjectInterface::setTitle( const TQString& title )
{
m_audioDoc->setTitle( title );
}
-void K3bAudioProjectInterface::setArtist( const QString& artist )
+void K3bAudioProjectInterface::setArtist( const TQString& artist )
{
m_audioDoc->setArtist( artist );
}
-void K3bAudioProjectInterface::setTrackTitle( int trackNum, const QString& title )
+void K3bAudioProjectInterface::setTrackTitle( int trackNum, const TQString& title )
{
K3bAudioTrack* track = m_audioDoc->getTrack( trackNum );
if( track )
@@ -84,7 +84,7 @@ void K3bAudioProjectInterface::setTrackTitle( int trackNum, const QString& title
}
-void K3bAudioProjectInterface::setTrackArtist( int trackNum, const QString& artist )
+void K3bAudioProjectInterface::setTrackArtist( int trackNum, const TQString& artist )
{
K3bAudioTrack* track = m_audioDoc->getTrack( trackNum );
if( track )
diff --git a/src/k3baudioprojectinterface.h b/src/k3baudioprojectinterface.h
index e7d649e..9607e56 100644
--- a/src/k3baudioprojectinterface.h
+++ b/src/k3baudioprojectinterface.h
@@ -31,30 +31,30 @@ class K3bAudioProjectInterface : public K3bProjectInterface
k_dcop:
int trackCount() const;
- QString title() const;
- QString artist() const;
- QString trackTitle( int trackNum ) const;
- QString trackArtist( int trackNum ) const;
+ TQString title() const;
+ TQString artist() const;
+ TQString trackTitle( int trackNum ) const;
+ TQString trackArtist( int trackNum ) const;
/**
* Set the global CD-Text title field.
*/
- void setTitle( const QString& title );
+ void setTitle( const TQString& title );
/**
* Set the global CD-Text artist field.
*/
- void setArtist( const QString& artist );
+ void setArtist( const TQString& artist );
/**
* Set the track CD-Text title field.
*/
- void setTrackTitle( int trackNum, const QString& title );
+ void setTrackTitle( int trackNum, const TQString& title );
/**
* Set the track CD-Text artist field.
*/
- void setTrackArtist( int trackNum, const QString& artist );
+ void setTrackArtist( int trackNum, const TQString& artist );
private:
K3bAudioDoc* m_audioDoc;
diff --git a/src/k3bburnprogressdialog.cpp b/src/k3bburnprogressdialog.cpp
index a5ad3a4..32be32c 100644
--- a/src/k3bburnprogressdialog.cpp
+++ b/src/k3bburnprogressdialog.cpp
@@ -27,34 +27,34 @@
#include <kprogress.h>
#include <klocale.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qframe.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqframe.h>
-K3bBurnProgressDialog::K3bBurnProgressDialog( QWidget *parent, const char *name, bool showSubProgress,
+K3bBurnProgressDialog::K3bBurnProgressDialog( TQWidget *tqparent, const char *name, bool showSubProgress,
bool modal, WFlags wf )
- : K3bJobProgressDialog(parent,name, showSubProgress, modal, wf)
+ : K3bJobProgressDialog(tqparent,name, showSubProgress, modal, wf)
{
- m_labelWritingSpeed = new QLabel( m_frameExtraInfo, "m_labelWritingSpeed" );
- // m_labelWritingSpeed->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
+ m_labelWritingSpeed = new TQLabel( m_frameExtraInfo, "m_labelWritingSpeed" );
+ // m_labelWritingSpeed->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
m_frameExtraInfoLayout->addWidget( m_labelWritingSpeed, 2, 0 );
- m_frameExtraInfoLayout->addWidget( new QLabel( i18n("Estimated writing speed:"), m_frameExtraInfo ), 1, 0 );
+ m_frameExtraInfoLayout->addWidget( new TQLabel( i18n("Estimated writing speed:"), m_frameExtraInfo ), 1, 0 );
m_labelWriter = new K3bThemedLabel( m_frameExtraInfo );
- m_labelWriter->setFrameShape( QFrame::StyledPanel );
- m_labelWriter->setFrameShadow( QFrame::Sunken );
+ m_labelWriter->setFrameShape( TQFrame::StyledPanel );
+ m_labelWriter->setFrameShadow( TQFrame::Sunken );
m_labelWriter->setLineWidth( 1 );
m_labelWriter->setMargin( 5 );
- QFont textLabel14_font( m_labelWriter->font() );
+ TQFont textLabel14_font( m_labelWriter->font() );
textLabel14_font.setBold( true );
m_labelWriter->setFont( textLabel14_font );
m_frameExtraInfoLayout->addMultiCellWidget( m_labelWriter, 0, 0, 0, 3 );
- m_frameExtraInfoLayout->addWidget( new QLabel( i18n("Software buffer:"), m_frameExtraInfo ), 1, 2 );
- m_frameExtraInfoLayout->addWidget( new QLabel( i18n("Device buffer:"), m_frameExtraInfo ), 2, 2 );
+ m_frameExtraInfoLayout->addWidget( new TQLabel( i18n("Software buffer:"), m_frameExtraInfo ), 1, 2 );
+ m_frameExtraInfoLayout->addWidget( new TQLabel( i18n("Device buffer:"), m_frameExtraInfo ), 2, 2 );
m_progressWritingBuffer = new KProgress( m_frameExtraInfo, "m_progressWritingBuffer" );
m_frameExtraInfoLayout->addWidget( m_progressWritingBuffer, 1, 3 );
@@ -83,15 +83,15 @@ void K3bBurnProgressDialog::setBurnJob( K3bBurnJob* burnJob )
K3bJobProgressDialog::setJob(burnJob);
if( burnJob ) {
- connect( burnJob, SIGNAL(bufferStatus(int)), this, SLOT(slotBufferStatus(int)) );
- connect( burnJob, SIGNAL(deviceBuffer(int)), this, SLOT(slotDeviceBuffer(int)) );
- connect( burnJob, SIGNAL(writeSpeed(int, int)), this, SLOT(slotWriteSpeed(int, int)) );
- connect( burnJob, SIGNAL(burning(bool)), m_progressWritingBuffer, SLOT(setEnabled(bool)) );
- connect( burnJob, SIGNAL(burning(bool)), m_progressDeviceBuffer, SLOT(setEnabled(bool)) );
- connect( burnJob, SIGNAL(burning(bool)), m_labelWritingSpeed, SLOT(setEnabled(bool)) );
+ connect( burnJob, TQT_SIGNAL(buffertqStatus(int)), this, TQT_SLOT(slotBuffertqStatus(int)) );
+ connect( burnJob, TQT_SIGNAL(deviceBuffer(int)), this, TQT_SLOT(slotDeviceBuffer(int)) );
+ connect( burnJob, TQT_SIGNAL(writeSpeed(int, int)), this, TQT_SLOT(slotWriteSpeed(int, int)) );
+ connect( burnJob, TQT_SIGNAL(burning(bool)), m_progressWritingBuffer, TQT_SLOT(setEnabled(bool)) );
+ connect( burnJob, TQT_SIGNAL(burning(bool)), m_progressDeviceBuffer, TQT_SLOT(setEnabled(bool)) );
+ connect( burnJob, TQT_SIGNAL(burning(bool)), m_labelWritingSpeed, TQT_SLOT(setEnabled(bool)) );
if( burnJob->writer() )
- m_labelWriter->setText( i18n("Writer: %1 %2").arg(burnJob->writer()->vendor()).
+ m_labelWriter->setText( i18n("Writer: %1 %2").tqarg(burnJob->writer()->vendor()).
arg(burnJob->writer()->description()) );
m_labelWritingSpeed->setText( i18n("no info") );
@@ -112,7 +112,7 @@ void K3bBurnProgressDialog::slotFinished( bool success )
}
-void K3bBurnProgressDialog::slotBufferStatus( int b )
+void K3bBurnProgressDialog::slotBuffertqStatus( int b )
{
m_progressWritingBuffer->setFormat( "%p%" );
m_progressWritingBuffer->setValue( b );
@@ -128,7 +128,7 @@ void K3bBurnProgressDialog::slotDeviceBuffer( int b )
void K3bBurnProgressDialog::slotWriteSpeed( int s, int multiplicator )
{
- m_labelWritingSpeed->setText( QString("%1 KB/s (%2x)").arg(s).arg(KGlobal::locale()->formatNumber((double)s/(double)multiplicator,2)) );
+ m_labelWritingSpeed->setText( TQString("%1 KB/s (%2x)").tqarg(s).tqarg(KGlobal::locale()->formatNumber((double)s/(double)multiplicator,2)) );
}
#include "k3bburnprogressdialog.moc"
diff --git a/src/k3bburnprogressdialog.h b/src/k3bburnprogressdialog.h
index db27ddb..11a0afb 100644
--- a/src/k3bburnprogressdialog.h
+++ b/src/k3bburnprogressdialog.h
@@ -21,7 +21,7 @@
class K3bBurnJob;
class KProgress;
-class QLabel;
+class TQLabel;
/**
@@ -30,9 +30,10 @@ class QLabel;
class K3bBurnProgressDialog : public K3bJobProgressDialog {
Q_OBJECT
+ TQ_OBJECT
public:
- K3bBurnProgressDialog( QWidget* parent = 0, const char* name = 0, bool showSubProgress = true,
+ K3bBurnProgressDialog( TQWidget* tqparent = 0, const char* name = 0, bool showSubProgress = true,
bool modal = true, WFlags = 0 );
~K3bBurnProgressDialog();
@@ -41,15 +42,15 @@ class K3bBurnProgressDialog : public K3bJobProgressDialog {
protected slots:
void slotWriteSpeed( int, int );
- void slotBufferStatus( int );
+ void slotBuffertqStatus( int );
void slotDeviceBuffer( int );
void slotFinished(bool);
protected:
- QLabel* m_labelWriter;
+ TQLabel* m_labelWriter;
KProgress* m_progressWritingBuffer;
KProgress* m_progressDeviceBuffer;
- QLabel* m_labelWritingSpeed;
+ TQLabel* m_labelWritingSpeed;
};
#endif
diff --git a/src/k3bcontentsview.cpp b/src/k3bcontentsview.cpp
index 304ae0d..536fa53 100644
--- a/src/k3bcontentsview.cpp
+++ b/src/k3bcontentsview.cpp
@@ -17,20 +17,20 @@
#include <k3bthemedheader.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpixmap.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpixmap.h>
K3bContentsView::K3bContentsView( bool withHeader,
- QWidget* parent,
+ TQWidget* tqparent,
const char* name )
- : QWidget( parent, name ),
+ : TQWidget( tqparent, name ),
m_header(0),
m_centerWidget(0)
{
if( withHeader ) {
- QVBoxLayout* lay = new QVBoxLayout( this );
+ TQVBoxLayout* lay = new TQVBoxLayout( this );
lay->setMargin( 2 );
lay->setSpacing( 0 );
@@ -48,22 +48,22 @@ K3bContentsView::~K3bContentsView()
}
-void K3bContentsView::setMainWidget( QWidget* w )
+void K3bContentsView::setMainWidget( TQWidget* w )
{
m_centerWidget = w;
- ((QVBoxLayout*)layout())->addWidget( w );
+ ((TQVBoxLayout*)tqlayout())->addWidget( w );
}
-QWidget* K3bContentsView::mainWidget()
+TQWidget* K3bContentsView::mainWidget()
{
if( !m_centerWidget )
- setMainWidget( new QWidget( this ) );
+ setMainWidget( new TQWidget( this ) );
return m_centerWidget;
}
-void K3bContentsView::setTitle( const QString& s )
+void K3bContentsView::setTitle( const TQString& s )
{
if( m_header )
m_header->setTitle( s );
diff --git a/src/k3bcontentsview.h b/src/k3bcontentsview.h
index a3b6f45..48c4751 100644
--- a/src/k3bcontentsview.h
+++ b/src/k3bcontentsview.h
@@ -17,33 +17,34 @@
#ifndef _K3B_CONTENTS_VIEW_H_
#define _K3B_CONTENTS_VIEW_H_
-#include <qwidget.h>
+#include <tqwidget.h>
#include <k3bthememanager.h>
class K3bThemedHeader;
-class K3bContentsView : public QWidget
+class K3bContentsView : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
virtual ~K3bContentsView();
protected:
K3bContentsView( bool withHeader,
- QWidget* parent = 0,
+ TQWidget* tqparent = 0,
const char* name = 0 );
- QWidget* mainWidget();
- void setMainWidget( QWidget* );
- void setTitle( const QString& );
+ TQWidget* mainWidget();
+ void setMainWidget( TQWidget* );
+ void setTitle( const TQString& );
void setLeftPixmap( K3bTheme::PixmapType );
void setRightPixmap( K3bTheme::PixmapType );
private:
K3bThemedHeader* m_header;
- QWidget* m_centerWidget;
+ TQWidget* m_centerWidget;
};
#endif
diff --git a/src/k3bdatamodewidget.cpp b/src/k3bdatamodewidget.cpp
index 669da59..6072ebd 100644
--- a/src/k3bdatamodewidget.cpp
+++ b/src/k3bdatamodewidget.cpp
@@ -20,23 +20,23 @@
#include <klocale.h>
#include <kconfig.h>
-#include <qwhatsthis.h>
-#include <qtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqtooltip.h>
static const int s_autoIndex = 0;
static const int s_mode1Index = 1;
static const int s_mode2Index = 2;
-K3bDataModeWidget::K3bDataModeWidget( QWidget* parent, const char* name )
- : QComboBox( false, parent, name )
+K3bDataModeWidget::K3bDataModeWidget( TQWidget* tqparent, const char* name )
+ : TQComboBox( false, tqparent, name )
{
insertItem( i18n("Auto"), s_autoIndex );
insertItem( i18n("Mode1"), s_mode1Index );
insertItem( i18n("Mode2"), s_mode2Index );
- QToolTip::add( this,i18n("Select the mode for the data-track") );
- QWhatsThis::add( this, i18n("<p><b>Data Mode</b>"
+ TQToolTip::add( this,i18n("Select the mode for the data-track") );
+ TQWhatsThis::add( this, i18n("<p><b>Data Mode</b>"
"<p>Data tracks may be written in two different modes:</p>"
"<p><b>Auto</b><br>"
"Let K3b select the best suited data mode.</p>"
@@ -81,7 +81,7 @@ void K3bDataModeWidget::setDataMode( int mode )
void K3bDataModeWidget::saveConfig( KConfigBase* c )
{
- QString datamode;
+ TQString datamode;
if( dataMode() == K3b::MODE1 )
datamode = "mode1";
else if( dataMode() == K3b::MODE2 )
@@ -94,7 +94,7 @@ void K3bDataModeWidget::saveConfig( KConfigBase* c )
void K3bDataModeWidget::loadConfig( KConfigBase* c )
{
- QString datamode = c->readEntry( "data_track_mode" );
+ TQString datamode = c->readEntry( "data_track_mode" );
if( datamode == "mode1" )
setDataMode( K3b::MODE1 );
else if( datamode == "mode2" )
diff --git a/src/k3bdatamodewidget.h b/src/k3bdatamodewidget.h
index 647225f..e5277c9 100644
--- a/src/k3bdatamodewidget.h
+++ b/src/k3bdatamodewidget.h
@@ -17,18 +17,19 @@
#ifndef _K3B_DATAMODE_WIDGET_H_
#define _K3B_DATAMODE_WIDGET_H_
-#include <qcombobox.h>
+#include <tqcombobox.h>
class KConfigBase;
-class K3bDataModeWidget : public QComboBox
+class K3bDataModeWidget : public TQComboBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDataModeWidget( QWidget* parent = 0, const char* name = 0 );
+ K3bDataModeWidget( TQWidget* tqparent = 0, const char* name = 0 );
~K3bDataModeWidget();
/**
diff --git a/src/k3bdataprojectinterface.cpp b/src/k3bdataprojectinterface.cpp
index 6adf07d..bbb2701 100644
--- a/src/k3bdataprojectinterface.cpp
+++ b/src/k3bdataprojectinterface.cpp
@@ -32,16 +32,16 @@ K3bDataProjectInterface::~K3bDataProjectInterface()
}
-bool K3bDataProjectInterface::createFolder( const QString& name )
+bool K3bDataProjectInterface::createFolder( const TQString& name )
{
return createFolder( name, "/" );
}
-bool K3bDataProjectInterface::createFolder( const QString& name, const QString& parent )
+bool K3bDataProjectInterface::createFolder( const TQString& name, const TQString& tqparent )
{
- K3bDataItem* p = m_dataDoc->root()->findByPath( parent );
- if( p && p->isDir() && !static_cast<K3bDirItem*>(p)->find( name ) ) {
+ K3bDataItem* p = m_dataDoc->root()->findByPath( tqparent );
+ if( p && p->isDir() && !static_cast<K3bDirItem*>(p)->tqfind( name ) ) {
m_dataDoc->addEmptyDir( name, static_cast<K3bDirItem*>(p) );
return true;
}
@@ -49,21 +49,21 @@ bool K3bDataProjectInterface::createFolder( const QString& name, const QString&
}
-void K3bDataProjectInterface::addUrl( const QString& url, const QString& parent )
+void K3bDataProjectInterface::addUrl( const TQString& url, const TQString& tqparent )
{
- addUrls( QStringList(url), parent );
+ addUrls( TQStringList(url), tqparent );
}
-void K3bDataProjectInterface::addUrls( const QStringList& urls, const QString& parent )
+void K3bDataProjectInterface::addUrls( const TQStringList& urls, const TQString& tqparent )
{
- K3bDataItem* p = m_dataDoc->root()->findByPath( parent );
+ K3bDataItem* p = m_dataDoc->root()->findByPath( tqparent );
if( p && p->isDir() )
m_dataDoc->addUrls( KURL::List(urls), static_cast<K3bDirItem*>(p) );
}
-bool K3bDataProjectInterface::removeItem( const QString& path )
+bool K3bDataProjectInterface::removeItem( const TQString& path )
{
K3bDataItem* p = m_dataDoc->root()->findByPath( path );
if( p && p->isRemoveable() ) {
@@ -75,7 +75,7 @@ bool K3bDataProjectInterface::removeItem( const QString& path )
}
-bool K3bDataProjectInterface::renameItem( const QString& path, const QString& newName )
+bool K3bDataProjectInterface::renameItem( const TQString& path, const TQString& newName )
{
K3bDataItem* p = m_dataDoc->root()->findByPath( path );
if( p && p->isRenameable() && !newName.isEmpty() ) {
@@ -87,12 +87,12 @@ bool K3bDataProjectInterface::renameItem( const QString& path, const QString& ne
}
-void K3bDataProjectInterface::setVolumeID( const QString& id )
+void K3bDataProjectInterface::setVolumeID( const TQString& id )
{
m_dataDoc->setVolumeID( id );
}
-bool K3bDataProjectInterface::isFolder( const QString& path ) const
+bool K3bDataProjectInterface::isFolder( const TQString& path ) const
{
K3bDataItem* p = m_dataDoc->root()->findByPath( path );
if( p )
@@ -102,13 +102,13 @@ bool K3bDataProjectInterface::isFolder( const QString& path ) const
}
-QStringList K3bDataProjectInterface::children( const QString& path ) const
+TQStringList K3bDataProjectInterface::tqchildren( const TQString& path ) const
{
- QStringList l;
+ TQStringList l;
K3bDataItem* item = m_dataDoc->root()->findByPath( path );
if( item && item->isDir() ) {
- const QPtrList<K3bDataItem>& cl = static_cast<K3bDirItem*>(item)->children();
- for( QPtrListIterator<K3bDataItem> it( cl ); *it; ++it )
+ const TQPtrList<K3bDataItem>& cl = static_cast<K3bDirItem*>(item)->tqchildren();
+ for( TQPtrListIterator<K3bDataItem> it( cl ); *it; ++it )
l.append( it.current()->k3bName() );
}
@@ -116,7 +116,7 @@ QStringList K3bDataProjectInterface::children( const QString& path ) const
}
-bool K3bDataProjectInterface::setSortWeight( const QString& path, long weight ) const
+bool K3bDataProjectInterface::setSortWeight( const TQString& path, long weight ) const
{
K3bDataItem* item = m_dataDoc->root()->findByPath( path );
if( item ) {
diff --git a/src/k3bdataprojectinterface.h b/src/k3bdataprojectinterface.h
index 689455b..c4edfd8 100644
--- a/src/k3bdataprojectinterface.h
+++ b/src/k3bdataprojectinterface.h
@@ -19,7 +19,7 @@
#include "k3bprojectinterface.h"
-#include <qstringlist.h>
+#include <tqstringlist.h>
class K3bDataDoc;
@@ -37,20 +37,20 @@ class K3bDataProjectInterface : public K3bProjectInterface
* Create a new folder in the root of the doc.
* This is the same as calling createFolder( name, "/" )
*/
- bool createFolder( const QString& name );
+ bool createFolder( const TQString& name );
/**
* Create a new folder with name @p name in the folder with the
- * absolute path @p parent.
+ * absolute path @p tqparent.
*
* \return true if the folder was created successfully, false if
- * an item with the same name already exists or the parent
+ * an item with the same name already exists or the tqparent
* directory could not be found.
*
* Example: createFolder( "test", "/foo/bar" ) will create the
* folder /foo/bar/test.
*/
- bool createFolder( const QString& name, const QString& parent );
+ bool createFolder( const TQString& name, const TQString& tqparent );
/**
* Add urls to a specific folder in the project.
@@ -58,15 +58,15 @@ class K3bDataProjectInterface : public K3bProjectInterface
* Example: addUrl( "test.txt", "/foo/bar" ) will add the file test.txt
* to folder /foo/bar.
*/
- void addUrl( const QString& url, const QString& parent );
+ void addUrl( const TQString& url, const TQString& tqparent );
- void addUrls( const QStringList& urls, const QString& parent );
+ void addUrls( const TQStringList& urls, const TQString& tqparent );
/**
* Remove an item
* \return true if the item was successfully removed.
*/
- bool removeItem( const QString& path );
+ bool removeItem( const TQString& path );
/**
* Rename an item
@@ -74,29 +74,29 @@ class K3bDataProjectInterface : public K3bProjectInterface
* no item could be found at \p path, \p newName is empty,
* or the item cannot be renamed for some reason.
*/
- bool renameItem( const QString& path, const QString& newName );
+ bool renameItem( const TQString& path, const TQString& newName );
/**
* Set the volume ID of the data project. This is the name shown by Windows
* when the CD is inserted.
*/
- void setVolumeID( const QString& id );
+ void setVolumeID( const TQString& id );
/**
* \return true if the specified path exists in the project and it is a folder.
*/
- bool isFolder( const QString& path ) const;
+ bool isFolder( const TQString& path ) const;
/**
* \return the names of the child elements of the item determined by path.
*/
- QStringList children( const QString& path ) const;
+ TQStringList tqchildren( const TQString& path ) const;
/**
* Set the sort weight of an item
* \return false if the item at \p could not be found.
*/
- bool setSortWeight( const QString& path, long weight ) const;
+ bool setSortWeight( const TQString& path, long weight ) const;
private:
K3bDataDoc* m_dataDoc;
diff --git a/src/k3bdebuggingoutputdialog.cpp b/src/k3bdebuggingoutputdialog.cpp
index 7ffe84c..7e02aed 100644
--- a/src/k3bdebuggingoutputdialog.cpp
+++ b/src/k3bdebuggingoutputdialog.cpp
@@ -22,10 +22,10 @@
#include <k3bversion.h>
#include <k3bglobals.h>
-#include <qtextedit.h>
-#include <qcursor.h>
-#include <qfile.h>
-#include <qclipboard.h>
+#include <tqtextedit.h>
+#include <tqcursor.h>
+#include <tqfile.h>
+#include <tqclipboard.h>
#include <klocale.h>
#include <kstdguiitem.h>
@@ -35,8 +35,8 @@
#include <kmessagebox.h>
-K3bDebuggingOutputDialog::K3bDebuggingOutputDialog( QWidget* parent )
- : KDialogBase( parent, "debugViewDialog", true, i18n("Debugging Output"), Close|User1|User2, Close,
+K3bDebuggingOutputDialog::K3bDebuggingOutputDialog( TQWidget* tqparent )
+ : KDialogBase( tqparent, "debugViewDialog", true, i18n("Debugging Output"), Close|User1|User2, Close,
false,
KStdGuiItem::saveAs(),
KGuiItem( i18n("Copy"), "editcopy" ) )
@@ -44,11 +44,11 @@ K3bDebuggingOutputDialog::K3bDebuggingOutputDialog( QWidget* parent )
setButtonTip( User1, i18n("Save to file") );
setButtonTip( User2, i18n("Copy to clipboard") );
- debugView = new QTextEdit( this );
+ debugView = new TQTextEdit( this );
debugView->setReadOnly(true);
- debugView->setTextFormat( QTextEdit::PlainText );
+ debugView->setTextFormat( TQTextEdit::PlainText );
debugView->setCurrentFont( KGlobalSettings::fixedFont() );
- debugView->setWordWrap( QTextEdit::NoWrap );
+ debugView->setWordWrap( TQTextEdit::NoWrap );
setMainWidget( debugView );
@@ -56,36 +56,36 @@ K3bDebuggingOutputDialog::K3bDebuggingOutputDialog( QWidget* parent )
}
-void K3bDebuggingOutputDialog::setOutput( const QMap<QString, QStringList>& map )
+void K3bDebuggingOutputDialog::setOutput( const TQMap<TQString, TQStringList>& map )
{
// the following may take some time
- QApplication::setOverrideCursor( QCursor(Qt::WaitCursor) );
+ TQApplication::setOverrideCursor( TQCursor(TQt::WaitCursor) );
clear();
// add the debugging output
- for( QMap<QString, QStringList>::ConstIterator itMap = map.begin(); itMap != map.end(); ++itMap ) {
- const QStringList& list = itMap.data();
+ for( TQMap<TQString, TQStringList>::ConstIterator itMap = map.begin(); itMap != map.end(); ++itMap ) {
+ const TQStringList& list = itMap.data();
debugView->append( itMap.key() + "\n" );
debugView->append( "-----------------------\n" );
- for( QStringList::ConstIterator it = list.begin(); it != list.end(); ++it ) {
- QStringList lines = QStringList::split( "\n", *it );
+ for( TQStringList::ConstIterator it = list.begin(); it != list.end(); ++it ) {
+ TQStringList lines = TQStringList::split( "\n", *it );
// do every line
- QStringList::ConstIterator end( lines.end() );
- for( QStringList::ConstIterator str = lines.begin(); str != end; ++str )
+ TQStringList::ConstIterator end( lines.end() );
+ for( TQStringList::ConstIterator str = lines.begin(); str != end; ++str )
debugView->append( *str + "\n" );
}
m_paragraphMap[itMap.key()] = debugView->paragraphs();
debugView->append( "\n" );
}
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
}
-void K3bDebuggingOutputDialog::addOutput( const QString& app, const QString& msg )
+void K3bDebuggingOutputDialog::addOutput( const TQString& app, const TQString& msg )
{
- QMap<QString, int>::Iterator it = m_paragraphMap.find( app );
+ TQMap<TQString, int>::Iterator it = m_paragraphMap.tqfind( app );
if( it == m_paragraphMap.end() ) {
// create new section
@@ -113,41 +113,41 @@ void K3bDebuggingOutputDialog::clear()
m_paragraphMap.clear();
addOutput( "System", "K3b Version: " + k3bcore->version() );
- addOutput( "System", "KDE Version: " + QString(KDE::versionString()) );
- addOutput( "System", "QT Version: " + QString(qVersion()) );
+ addOutput( "System", "KDE Version: " + TQString(KDE::versionString()) );
+ addOutput( "System", "QT Version: " + TQString(qVersion()) );
addOutput( "System", "Kernel: " + K3b::kernelVersion() );
// devices in the logfile
- for( QPtrListIterator<K3bDevice::Device> it( k3bcore->deviceManager()->allDevices() ); *it; ++it ) {
+ for( TQPtrListIterator<K3bDevice::Device> it( k3bcore->deviceManager()->allDevices() ); *it; ++it ) {
K3bDevice::Device* dev = *it;
addOutput( "Devices",
- QString( "%1 (%2, %3) [%5] [%6] [%7]" )
- .arg( dev->vendor() + " " + dev->description() + " " + dev->version() )
- .arg( dev->blockDeviceName() )
- .arg( dev->genericDevice() )
- .arg( K3bDevice::deviceTypeString( dev->type() ) )
- .arg( K3bDevice::mediaTypeString( dev->supportedProfiles() ) )
- .arg( K3bDevice::writingModeString( dev->writingModes() ) ) );
+ TQString( "%1 (%2, %3) [%5] [%6] [%7]" )
+ .tqarg( dev->vendor() + " " + dev->description() + " " + dev->version() )
+ .tqarg( dev->blockDeviceName() )
+ .tqarg( dev->genericDevice() )
+ .tqarg( K3bDevice::deviceTypeString( dev->type() ) )
+ .tqarg( K3bDevice::mediaTypeString( dev->supportedProfiles() ) )
+ .tqarg( K3bDevice::writingModeString( dev->writingModes() ) ) );
}
}
void K3bDebuggingOutputDialog::slotUser1()
{
- QString filename = KFileDialog::getSaveFileName();
+ TQString filename = KFileDialog::getSaveFileName();
if( !filename.isEmpty() ) {
- QFile f( filename );
+ TQFile f( filename );
if( !f.exists() || KMessageBox::warningContinueCancel( this,
- i18n("Do you want to overwrite %1?").arg(filename),
+ i18n("Do you want to overwrite %1?").tqarg(filename),
i18n("File Exists"), i18n("Overwrite") )
== KMessageBox::Continue ) {
if( f.open( IO_WriteOnly ) ) {
- QTextStream t( &f );
+ TQTextStream t( &f );
t << debugView->text();
}
else {
- KMessageBox::error( this, i18n("Could not open file %1").arg(filename) );
+ KMessageBox::error( this, i18n("Could not open file %1").tqarg(filename) );
}
}
}
@@ -156,7 +156,7 @@ void K3bDebuggingOutputDialog::slotUser1()
void K3bDebuggingOutputDialog::slotUser2()
{
- QApplication::clipboard()->setText( debugView->text(), QClipboard::Clipboard );
+ TQApplication::tqclipboard()->setText( debugView->text(), TQClipboard::Clipboard );
}
#include "k3bdebuggingoutputdialog.moc"
diff --git a/src/k3bdebuggingoutputdialog.h b/src/k3bdebuggingoutputdialog.h
index 0e74b71..6f335a6 100644
--- a/src/k3bdebuggingoutputdialog.h
+++ b/src/k3bdebuggingoutputdialog.h
@@ -17,28 +17,29 @@
#define _K3B_DEBUGGING_OUTPUT_DIALOG_H_
#include <kdialogbase.h>
-#include <qmap.h>
+#include <tqmap.h>
-class QTextEdit;
+class TQTextEdit;
class K3bDebuggingOutputDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDebuggingOutputDialog( QWidget* parent );
+ K3bDebuggingOutputDialog( TQWidget* tqparent );
public slots:
- void setOutput( const QMap<QString, QStringList>& );
- void addOutput( const QString&, const QString& );
+ void setOutput( const TQMap<TQString, TQStringList>& );
+ void addOutput( const TQString&, const TQString& );
void clear();
private:
void slotUser1();
void slotUser2();
- QTextEdit* debugView;
- QMap<QString, int> m_paragraphMap;
+ TQTextEdit* debugView;
+ TQMap<TQString, int> m_paragraphMap;
};
diff --git a/src/k3bdebuggingoutputfile.cpp b/src/k3bdebuggingoutputfile.cpp
index 2f99e96..f1ce1dc 100644
--- a/src/k3bdebuggingoutputfile.cpp
+++ b/src/k3bdebuggingoutputfile.cpp
@@ -26,48 +26,48 @@
#include <kglobalsettings.h>
#include <kapplication.h>
-#include <qtextstream.h>
+#include <tqtextstream.h>
K3bDebuggingOutputFile::K3bDebuggingOutputFile()
- : QFile( locateLocal( "appdata", "lastlog.log", true ) )
+ : TQFile( locateLocal( "appdata", "lastlog.log", true ) )
{
}
bool K3bDebuggingOutputFile::open()
{
- if( !QFile::open( IO_WriteOnly ) )
+ if( !TQFile::open( IO_WriteOnly ) )
return false;
addOutput( "System", "K3b Version: " + k3bcore->version() );
- addOutput( "System", "KDE Version: " + QString(KDE::versionString()) );
- addOutput( "System", "QT Version: " + QString(qVersion()) );
+ addOutput( "System", "KDE Version: " + TQString(KDE::versionString()) );
+ addOutput( "System", "QT Version: " + TQString(qVersion()) );
addOutput( "System", "Kernel: " + K3b::kernelVersion() );
// devices in the logfile
- for( QPtrListIterator<K3bDevice::Device> it( k3bcore->deviceManager()->allDevices() ); *it; ++it ) {
+ for( TQPtrListIterator<K3bDevice::Device> it( k3bcore->deviceManager()->allDevices() ); *it; ++it ) {
K3bDevice::Device* dev = *it;
addOutput( "Devices",
- QString( "%1 (%2, %3) [%5] [%6] [%7]" )
- .arg( dev->vendor() + " " + dev->description() + " " + dev->version() )
- .arg( dev->blockDeviceName() )
- .arg( dev->genericDevice() )
- .arg( K3bDevice::deviceTypeString( dev->type() ) )
- .arg( K3bDevice::mediaTypeString( dev->supportedProfiles() ) )
- .arg( K3bDevice::writingModeString( dev->writingModes() ) ) );
+ TQString( "%1 (%2, %3) [%5] [%6] [%7]" )
+ .tqarg( dev->vendor() + " " + dev->description() + " " + dev->version() )
+ .tqarg( dev->blockDeviceName() )
+ .tqarg( dev->genericDevice() )
+ .tqarg( K3bDevice::deviceTypeString( dev->type() ) )
+ .tqarg( K3bDevice::mediaTypeString( dev->supportedProfiles() ) )
+ .tqarg( K3bDevice::writingModeString( dev->writingModes() ) ) );
}
return true;
}
-void K3bDebuggingOutputFile::addOutput( const QString& app, const QString& msg )
+void K3bDebuggingOutputFile::addOutput( const TQString& app, const TQString& msg )
{
if( !isOpen() )
open();
- QTextStream s( this );
+ TQTextStream s( this );
s << "[" << app << "] " << msg << endl;
flush();
}
diff --git a/src/k3bdebuggingoutputfile.h b/src/k3bdebuggingoutputfile.h
index c0af0e5..df9b0a7 100644
--- a/src/k3bdebuggingoutputfile.h
+++ b/src/k3bdebuggingoutputfile.h
@@ -16,12 +16,25 @@
#ifndef _K3B_DEBUGGING_OUTPUT_FILE_H_
#define _K3B_DEBUGGING_OUTPUT_FILE_H_
-#include <qfile.h>
-#include <qobject.h>
-
-class K3bDebuggingOutputFile : public QObject, public QFile
+#include <tqfile.h>
+#include <tqobject.h>
+
+#ifdef Q_MOC_RUN
+#define USE_QT4
+#endif // Q_MOC_RUN
+
+// MOC_SKIP_BEGIN
+#ifdef USE_QT4
+class K3bDebuggingOutputFile : public TQFile
+#else // USE_QT4
+// MOC_SKIP_END
+class K3bDebuggingOutputFile : public TQObject, public TQFile
+// MOC_SKIP_BEGIN
+#endif // USE_QT4
+// MOC_SKIP_END
{
Q_OBJECT
+ TQ_OBJECT
public:
K3bDebuggingOutputFile();
@@ -32,7 +45,7 @@ class K3bDebuggingOutputFile : public QObject, public QFile
bool open();
public slots:
- void addOutput( const QString&, const QString& );
+ void addOutput( const TQString&, const TQString& );
};
diff --git a/src/k3bdiroperator.cpp b/src/k3bdiroperator.cpp
index 12c6ba4..0f0b739 100644
--- a/src/k3bdiroperator.cpp
+++ b/src/k3bdiroperator.cpp
@@ -28,11 +28,11 @@
#include <kstandarddirs.h>
#include <kpopupmenu.h>
-#include <qdir.h>
+#include <tqdir.h>
-K3bDirOperator::K3bDirOperator(const KURL& url, QWidget* parent, const char* name )
- : KDirOperator( url, parent, name )
+K3bDirOperator::K3bDirOperator(const KURL& url, TQWidget* tqparent, const char* name )
+ : KDirOperator( url, tqparent, name )
{
setViewConfig( k3bcore->config(), "file view" );
setMode( KFile::Files );
@@ -49,11 +49,11 @@ K3bDirOperator::K3bDirOperator(const KURL& url, QWidget* parent, const char* nam
bmMan->setUpdate( true );
bmMan->setShowNSBookmarks( false );
- m_bmPopup = new KActionMenu( i18n("Bookmarks"), "bookmark", this, "bookmarks" );
+ m_bmPopup = new KActionMenu( i18n("Bookmarks"), "bookmark", TQT_TQOBJECT(this), "bookmarks" );
m_bmMenu = new KBookmarkMenu( bmMan, this, m_bmPopup->popupMenu(), actionCollection(), true );
(void)new KAction( i18n("&Add to Project"), SHIFT+Key_Return,
- this, SLOT(slotAddFilesToProject()),
+ TQT_TQOBJECT(this), TQT_SLOT(slotAddFilesToProject()),
actionCollection(), "add_file_to_project");
}
@@ -64,9 +64,9 @@ K3bDirOperator::~K3bDirOperator()
}
-void K3bDirOperator::readConfig( KConfig* cfg, const QString& group )
+void K3bDirOperator::readConfig( KConfig* cfg, const TQString& group )
{
- QString oldGroup = cfg->group();
+ TQString oldGroup = cfg->group();
cfg->setGroup( group );
KDirOperator::readConfig( cfg, group );
@@ -76,11 +76,11 @@ void K3bDirOperator::readConfig( KConfig* cfg, const QString& group )
// There seems to be a bug in the KDELibs which makes setURL crash on
// some systems when used with a non-existing url
//
- QString lastUrl = cfg->readPathEntry( "last url", QDir::home().absPath() );
- while( !QFile::exists(lastUrl) ) {
- QString urlUp = lastUrl.section( '/', 0, -2 );
+ TQString lastUrl = cfg->readPathEntry( "last url", TQDir::home().absPath() );
+ while( !TQFile::exists(lastUrl) ) {
+ TQString urlUp = lastUrl.section( '/', 0, -2 );
if( urlUp == lastUrl )
- lastUrl = QDir::home().absPath();
+ lastUrl = TQDir::home().absPath();
else
lastUrl = urlUp;
}
@@ -93,9 +93,9 @@ void K3bDirOperator::readConfig( KConfig* cfg, const QString& group )
}
-void K3bDirOperator::writeConfig( KConfig* cfg, const QString& group )
+void K3bDirOperator::writeConfig( KConfig* cfg, const TQString& group )
{
- QString oldGroup = cfg->group();
+ TQString oldGroup = cfg->group();
cfg->setGroup( group );
KDirOperator::writeConfig( cfg, group );
@@ -105,25 +105,25 @@ void K3bDirOperator::writeConfig( KConfig* cfg, const QString& group )
}
-void K3bDirOperator::openBookmarkURL( const QString& url )
+void K3bDirOperator::openBookmarkURL( const TQString& url )
{
setURL( KURL::fromPathOrURL( url ), true );
}
-QString K3bDirOperator::currentTitle() const
+TQString K3bDirOperator::currentTitle() const
{
return url().path(-1);
}
-QString K3bDirOperator::currentURL() const
+TQString K3bDirOperator::currentURL() const
{
return url().path(-1);
}
-void K3bDirOperator::activatedMenu( const KFileItem*, const QPoint& pos )
+void K3bDirOperator::activatedMenu( const KFileItem*, const TQPoint& pos )
{
// both from KDirOperator
setupMenu();
@@ -148,7 +148,7 @@ void K3bDirOperator::activatedMenu( const KFileItem*, const QPoint& pos )
void K3bDirOperator::slotAddFilesToProject()
{
KURL::List files;
- for( QPtrListIterator<KFileItem> it( *(selectedItems()) ); it.current(); ++it ) {
+ for( TQPtrListIterator<KFileItem> it( *(selectedItems()) ); it.current(); ++it ) {
files.append( it.current()->url() );
}
if( !files.isEmpty() )
diff --git a/src/k3bdiroperator.h b/src/k3bdiroperator.h
index b231a8d..eb695d7 100644
--- a/src/k3bdiroperator.h
+++ b/src/k3bdiroperator.h
@@ -20,8 +20,8 @@
#include <kdiroperator.h>
#include <kbookmarkmanager.h>
-class QIconViewItem;
-class QListViewItem;
+class TQIconViewItem;
+class TQListViewItem;
class KBookmarkMenu;
class KActionMenu;
@@ -33,35 +33,36 @@ class KActionMenu;
class K3bDirOperator : public KDirOperator, public KBookmarkOwner
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDirOperator( const KURL& urlName = KURL(), QWidget* parent = 0, const char* name = 0 );
+ K3bDirOperator( const KURL& urlName = KURL(), TQWidget* tqparent = 0, const char* name = 0 );
~K3bDirOperator();
/**
* reimplemented from KDirOperator
*/
- void readConfig( KConfig* cfg, const QString& group );
+ void readConfig( KConfig* cfg, const TQString& group );
/**
* reimplemented from KDirOperator
*/
- void writeConfig( KConfig* cfg, const QString& group );
+ void writeConfig( KConfig* cfg, const TQString& group );
/**
* reimplemented from KBookmarkOwner
*/
- void openBookmarkURL( const QString& url );
+ void openBookmarkURL( const TQString& url );
/**
* reimplemented from KBookmarkOwner
*/
- QString currentTitle() const;
+ TQString currentTitle() const;
/**
* reimplemented from KBookmarkOwner
*/
- QString currentURL() const;
+ TQString currentURL() const;
KActionMenu* bookmarkMenu() const { return m_bmPopup; }
@@ -72,7 +73,7 @@ class K3bDirOperator : public KDirOperator, public KBookmarkOwner
/**
* reimplemented from KDirOperator
*/
- void activatedMenu( const KFileItem*, const QPoint& );
+ void activatedMenu( const KFileItem*, const TQPoint& );
private:
KBookmarkMenu* m_bmMenu;
diff --git a/src/k3bdirview.cpp b/src/k3bdirview.cpp
index d711300..d2ab1e4 100644
--- a/src/k3bdirview.cpp
+++ b/src/k3bdirview.cpp
@@ -37,25 +37,25 @@
#include <unistd.h>
// QT-includes
-#include <qdir.h>
-#include <qlistview.h>
-#include <qstring.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qpixmap.h>
-#include <qstringlist.h>
-#include <qstrlist.h>
-#include <qheader.h>
-#include <qsplitter.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qiconset.h>
-#include <qvaluelist.h>
-#include <qlabel.h>
-#include <qwidgetstack.h>
-#include <qscrollview.h>
-#include <qpainter.h>
-#include <qsimplerichtext.h>
+#include <tqdir.h>
+#include <tqlistview.h>
+#include <tqstring.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqpixmap.h>
+#include <tqstringlist.h>
+#include <tqstrlist.h>
+#include <tqheader.h>
+#include <tqsplitter.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqiconset.h>
+#include <tqvaluelist.h>
+#include <tqlabel.h>
+#include <tqwidgetstack.h>
+#include <tqscrollview.h>
+#include <tqpainter.h>
+#include <tqsimplerichtext.h>
// KDE-includes
#include <kmimetype.h>
@@ -90,8 +90,8 @@ public:
-K3bDirView::K3bDirView(K3bFileTreeView* treeView, QWidget *parent, const char *name )
- : QVBox(parent, name),
+K3bDirView::K3bDirView(K3bFileTreeView* treeView, TQWidget *tqparent, const char *name )
+ : TQVBox(tqparent, name),
m_fileTreeView(treeView),
m_bViewDiskInfo(false)
{
@@ -99,12 +99,12 @@ K3bDirView::K3bDirView(K3bFileTreeView* treeView, QWidget *parent, const char *n
d->contextMediaInfoRequested = false;
if( !m_fileTreeView ) {
- m_mainSplitter = new QSplitter( this );
+ m_mainSplitter = new TQSplitter( this );
m_fileTreeView = new K3bFileTreeView( m_mainSplitter );
- m_viewStack = new QWidgetStack( m_mainSplitter );
+ m_viewStack = new TQWidgetStack( m_mainSplitter );
}
else {
- m_viewStack = new QWidgetStack( this );
+ m_viewStack = new TQWidgetStack( this );
m_mainSplitter = 0;
}
@@ -128,31 +128,31 @@ K3bDirView::K3bDirView(K3bFileTreeView* treeView, QWidget *parent, const char *n
if( m_mainSplitter ) {
// split
- QValueList<int> sizes = m_mainSplitter->sizes();
+ TQValueList<int> sizes = m_mainSplitter->sizes();
int all = sizes[0] + sizes[1];
sizes[1] = all*2/3;
sizes[0] = all - sizes[1];
m_mainSplitter->setSizes( sizes );
}
- connect( m_fileTreeView, SIGNAL(urlExecuted(const KURL&)),
- this, SLOT(slotDirActivated(const KURL&)) );
- connect( m_fileTreeView, SIGNAL(deviceExecuted(K3bDevice::Device*)),
- this, SLOT(showDevice(K3bDevice::Device*)) );
- connect( m_fileTreeView, SIGNAL(deviceExecuted(K3bDevice::Device*)),
- this, SIGNAL(deviceSelected(K3bDevice::Device*)) );
- connect( m_fileTreeView, SIGNAL(contextMenu(K3bDevice::Device*, const QPoint&)),
- this, SLOT(slotFileTreeContextMenu(K3bDevice::Device*, const QPoint&)) );
-
- connect( m_fileView, SIGNAL(urlEntered(const KURL&)), m_fileTreeView, SLOT(followUrl(const KURL&)) );
- connect( m_fileView, SIGNAL(urlEntered(const KURL&)), this, SIGNAL(urlEntered(const KURL&)) );
-
- connect( k3bappcore->appDeviceManager(), SIGNAL(mountFinished(const QString&)),
- this, SLOT(slotMountFinished(const QString&)) );
- connect( k3bappcore->appDeviceManager(), SIGNAL(unmountFinished(bool)),
- this, SLOT(slotUnmountFinished(bool)) );
- connect( k3bappcore->appDeviceManager(), SIGNAL(detectingDiskInfo(K3bDevice::Device*)),
- this, SLOT(slotDetectingDiskInfo(K3bDevice::Device*)) );
+ connect( m_fileTreeView, TQT_SIGNAL(urlExecuted(const KURL&)),
+ this, TQT_SLOT(slotDirActivated(const KURL&)) );
+ connect( m_fileTreeView, TQT_SIGNAL(deviceExecuted(K3bDevice::Device*)),
+ this, TQT_SLOT(showDevice(K3bDevice::Device*)) );
+ connect( m_fileTreeView, TQT_SIGNAL(deviceExecuted(K3bDevice::Device*)),
+ this, TQT_SIGNAL(deviceSelected(K3bDevice::Device*)) );
+ connect( m_fileTreeView, TQT_SIGNAL(contextMenu(K3bDevice::Device*, const TQPoint&)),
+ this, TQT_SLOT(slotFileTreeContextMenu(K3bDevice::Device*, const TQPoint&)) );
+
+ connect( m_fileView, TQT_SIGNAL(urlEntered(const KURL&)), m_fileTreeView, TQT_SLOT(followUrl(const KURL&)) );
+ connect( m_fileView, TQT_SIGNAL(urlEntered(const KURL&)), this, TQT_SIGNAL(urlEntered(const KURL&)) );
+
+ connect( k3bappcore->appDeviceManager(), TQT_SIGNAL(mountFinished(const TQString&)),
+ this, TQT_SLOT(slotMountFinished(const TQString&)) );
+ connect( k3bappcore->appDeviceManager(), TQT_SIGNAL(unmountFinished(bool)),
+ this, TQT_SLOT(slotUnmountFinished(bool)) );
+ connect( k3bappcore->appDeviceManager(), TQT_SIGNAL(detectingDiskInfo(K3bDevice::Device*)),
+ this, TQT_SLOT(slotDetectingDiskInfo(K3bDevice::Device*)) );
}
K3bDirView::~K3bDirView()
@@ -247,7 +247,7 @@ void K3bDirView::showMediumInfo( const K3bMedium& medium )
else {
if( KMessageBox::questionYesNo( this,
i18n("Found %1. Do you want K3b to mount the data part "
- "or show all the tracks?").arg( i18n("Video CD") ),
+ "or show all the tracks?").tqarg( i18n("Video CD") ),
i18n("Video CD"),
i18n("Mount CD"),
i18n("Show Video Tracks") ) == KMessageBox::No ) {
@@ -260,7 +260,7 @@ void K3bDirView::showMediumInfo( const K3bMedium& medium )
else if( medium.content() & K3bMedium::CONTENT_AUDIO ) {
if( KMessageBox::questionYesNo( this,
i18n("Found %1. Do you want K3b to mount the data part "
- "or show all the tracks?").arg( i18n("Audio CD") ),
+ "or show all the tracks?").tqarg( i18n("Audio CD") ),
i18n("Audio CD"),
i18n("Mount CD"),
i18n("Show Audio Tracks") ) == KMessageBox::No ) {
@@ -289,7 +289,7 @@ void K3bDirView::showMediumInfo( const K3bMedium& medium )
}
-void K3bDirView::slotMountFinished( const QString& mp )
+void K3bDirView::slotMountFinished( const TQString& mp )
{
if( !mp.isEmpty() ) {
slotDirActivated( mp );
@@ -298,9 +298,9 @@ void K3bDirView::slotMountFinished( const QString& mp )
else {
m_viewStack->raiseWidget( m_fileView );
K3bPassivePopup::showPopup( i18n("<p>K3b was unable to mount medium <b>%1</b> in device <em>%2 - %3</em>")
- .arg( k3bappcore->mediaCache()->medium( k3bappcore->appDeviceManager()->currentDevice() ).shortString() )
- .arg( k3bappcore->appDeviceManager()->currentDevice()->vendor() )
- .arg( k3bappcore->appDeviceManager()->currentDevice()->description() ),
+ .tqarg( k3bappcore->mediaCache()->medium( k3bappcore->appDeviceManager()->currentDevice() ).shortString() )
+ .tqarg( k3bappcore->appDeviceManager()->currentDevice()->vendor() )
+ .tqarg( k3bappcore->appDeviceManager()->currentDevice()->description() ),
i18n("Mount Failed"),
K3bPassivePopup::Warning );
}
@@ -314,16 +314,16 @@ void K3bDirView::slotUnmountFinished( bool success )
}
else {
K3bPassivePopup::showPopup( i18n("<p>K3b was unable to unmount medium <b>%1</b> in device <em>%2 - %3</em>")
- .arg( k3bappcore->mediaCache()->medium( k3bappcore->appDeviceManager()->currentDevice() ).shortString() )
- .arg( k3bappcore->appDeviceManager()->currentDevice()->vendor() )
- .arg( k3bappcore->appDeviceManager()->currentDevice()->description() ),
+ .tqarg( k3bappcore->mediaCache()->medium( k3bappcore->appDeviceManager()->currentDevice() ).shortString() )
+ .tqarg( k3bappcore->appDeviceManager()->currentDevice()->vendor() )
+ .tqarg( k3bappcore->appDeviceManager()->currentDevice()->description() ),
i18n("Unmount Failed"),
K3bPassivePopup::Warning );
}
}
-void K3bDirView::slotFileTreeContextMenu( K3bDevice::Device* /*dev*/, const QPoint& p )
+void K3bDirView::slotFileTreeContextMenu( K3bDevice::Device* /*dev*/, const TQPoint& p )
{
KAction* a = k3bappcore->appDeviceManager()->actionCollection()->action( "device_popup" );
if( KActionMenu* m = dynamic_cast<KActionMenu*>(a) )
@@ -331,7 +331,7 @@ void K3bDirView::slotFileTreeContextMenu( K3bDevice::Device* /*dev*/, const QPoi
}
-void K3bDirView::slotDirActivated( const QString& url )
+void K3bDirView::slotDirActivated( const TQString& url )
{
// m_urlCombo->insertItem( url, 0 );
slotDirActivated( KURL::fromPathOrURL(url) );
@@ -349,7 +349,7 @@ void K3bDirView::slotDirActivated( const KURL& url )
void K3bDirView::home()
{
- slotDirActivated( QDir::homeDirPath() );
+ slotDirActivated( TQDir::homeDirPath() );
}
diff --git a/src/k3bdirview.h b/src/k3bdirview.h
index 7d4cdf0..e13899c 100644
--- a/src/k3bdirview.h
+++ b/src/k3bdirview.h
@@ -17,11 +17,11 @@
#ifndef K3BDIRVIEW_H
#define K3BDIRVIEW_H
-#include <qvbox.h>
+#include <tqvbox.h>
#include <k3bmedium.h>
-class QSplitter;
+class TQSplitter;
class KURL;
class K3bAudioCdView;
class K3bVideoCdView;
@@ -29,10 +29,10 @@ class K3bFileView;
class K3bVideoDVDRippingView;
class KComboBox;
class K3bFileTreeView;
-class QWidgetStack;
+class TQWidgetStack;
class K3bDiskInfoView;
-class QScrollView;
-class QLabel;
+class TQScrollView;
+class TQLabel;
class KConfig;
class K3bDeviceBranch;
@@ -49,12 +49,13 @@ namespace KIO {
/**
*@author Sebastian Trueg
*/
-class K3bDirView : public QVBox
+class K3bDirView : public TQVBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDirView(K3bFileTreeView* tree, QWidget *parent=0, const char *name=0);
+ K3bDirView(K3bFileTreeView* tree, TQWidget *tqparent=0, const char *name=0);
~K3bDirView();
public slots:
@@ -65,21 +66,21 @@ class K3bDirView : public QVBox
protected slots:
void slotDirActivated( const KURL& );
- void slotDirActivated( const QString& );
- void slotMountFinished( const QString& );
+ void slotDirActivated( const TQString& );
+ void slotMountFinished( const TQString& );
void slotUnmountFinished( bool );
void showMediumInfo( const K3bMedium& );
void slotDetectingDiskInfo( K3bDevice::Device* dev );
void home();
- void slotFileTreeContextMenu( K3bDevice::Device* dev, const QPoint& p );
+ void slotFileTreeContextMenu( K3bDevice::Device* dev, const TQPoint& p );
signals:
void urlEntered( const KURL& );
void deviceSelected( K3bDevice::Device* );
private:
- QWidgetStack* m_viewStack;
- QScrollView* m_scroll;
+ TQWidgetStack* m_viewStack;
+ TQScrollView* m_scroll;
K3bAudioCdView* m_cdView;
K3bVideoCdView* m_videoView;
@@ -88,7 +89,7 @@ class K3bDirView : public QVBox
K3bDiskInfoView* m_infoView;
KComboBox* m_urlCombo;
- QSplitter* m_mainSplitter;
+ TQSplitter* m_mainSplitter;
K3bFileTreeView* m_fileTreeView;
bool m_bViewDiskInfo;
diff --git a/src/k3bdiskinfoview.cpp b/src/k3bdiskinfoview.cpp
index 4a1208f..bb32911 100644
--- a/src/k3bdiskinfoview.cpp
+++ b/src/k3bdiskinfoview.cpp
@@ -26,17 +26,17 @@
#include <k3blistview.h>
#include <k3biso9660.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qfont.h>
-#include <qcolor.h>
-#include <qheader.h>
-#include <qstring.h>
-#include <qpainter.h>
-#include <qpalette.h>
-#include <qpixmap.h>
-#include <qregion.h>
-#include <qframe.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqfont.h>
+#include <tqcolor.h>
+#include <tqheader.h>
+#include <tqstring.h>
+#include <tqpainter.h>
+#include <tqpalette.h>
+#include <tqpixmap.h>
+#include <tqregion.h>
+#include <tqframe.h>
#include <kdialog.h>
#include <klocale.h>
@@ -51,26 +51,26 @@
class K3bDiskInfoView::HeaderViewItem : public KListViewItem
{
public:
- HeaderViewItem( QListView* parent )
- : KListViewItem( parent ) {}
- HeaderViewItem( QListViewItem* parent )
- : KListViewItem( parent ) {}
- HeaderViewItem( QListView* parent, QListViewItem* after )
- : KListViewItem( parent, after ) {}
- HeaderViewItem( QListViewItem* parent, QListViewItem* after )
- : KListViewItem( parent, after ) {}
- HeaderViewItem( QListView* parent, const QString& t1 )
- : KListViewItem( parent, t1 ) {}
- HeaderViewItem( QListViewItem* parent, const QString& t1 )
- : KListViewItem( parent, t1 ) {}
- HeaderViewItem( QListView* parent, QListViewItem* after, const QString& t1 )
- : KListViewItem( parent, after, t1 ) {}
- HeaderViewItem( QListViewItem* parent, QListViewItem* after, const QString& t1 )
- : KListViewItem( parent, after, t1 ) {}
-
- void paintCell( QPainter* p, const QColorGroup & cg, int column, int width, int align )
+ HeaderViewItem( TQListView* tqparent )
+ : KListViewItem( tqparent ) {}
+ HeaderViewItem( TQListViewItem* tqparent )
+ : KListViewItem( tqparent ) {}
+ HeaderViewItem( TQListView* tqparent, TQListViewItem* after )
+ : KListViewItem( tqparent, after ) {}
+ HeaderViewItem( TQListViewItem* tqparent, TQListViewItem* after )
+ : KListViewItem( tqparent, after ) {}
+ HeaderViewItem( TQListView* tqparent, const TQString& t1 )
+ : KListViewItem( tqparent, t1 ) {}
+ HeaderViewItem( TQListViewItem* tqparent, const TQString& t1 )
+ : KListViewItem( tqparent, t1 ) {}
+ HeaderViewItem( TQListView* tqparent, TQListViewItem* after, const TQString& t1 )
+ : KListViewItem( tqparent, after, t1 ) {}
+ HeaderViewItem( TQListViewItem* tqparent, TQListViewItem* after, const TQString& t1 )
+ : KListViewItem( tqparent, after, t1 ) {}
+
+ void paintCell( TQPainter* p, const TQColorGroup & cg, int column, int width, int align )
{
- QFont f ( p->font() );
+ TQFont f ( p->font() );
f.setBold( true );
p->setFont( f );
KListViewItem::paintCell( p, cg, column, width, align );
@@ -81,24 +81,24 @@ public:
class K3bDiskInfoView::TwoColumnViewItem : public KListViewItem
{
public:
- TwoColumnViewItem( QListView* parent )
- : KListViewItem( parent ) {}
- TwoColumnViewItem( QListViewItem* parent )
- : KListViewItem( parent ) {}
- TwoColumnViewItem( QListView* parent, QListViewItem* after )
- : KListViewItem( parent, after ) {}
- TwoColumnViewItem( QListViewItem* parent, QListViewItem* after )
- : KListViewItem( parent, after ) {}
- TwoColumnViewItem( QListView* parent, const QString& t1 )
- : KListViewItem( parent, t1 ) {}
- TwoColumnViewItem( QListViewItem* parent, const QString& t1 )
- : KListViewItem( parent, t1 ) {}
- TwoColumnViewItem( QListView* parent, QListViewItem* after, const QString& t1 )
- : KListViewItem( parent, after, t1 ) {}
- TwoColumnViewItem( QListViewItem* parent, QListViewItem* after, const QString& t1 )
- : KListViewItem( parent, after, t1 ) {}
-
- void paintCell( QPainter* p, const QColorGroup & cg, int column, int width, int align )
+ TwoColumnViewItem( TQListView* tqparent )
+ : KListViewItem( tqparent ) {}
+ TwoColumnViewItem( TQListViewItem* tqparent )
+ : KListViewItem( tqparent ) {}
+ TwoColumnViewItem( TQListView* tqparent, TQListViewItem* after )
+ : KListViewItem( tqparent, after ) {}
+ TwoColumnViewItem( TQListViewItem* tqparent, TQListViewItem* after )
+ : KListViewItem( tqparent, after ) {}
+ TwoColumnViewItem( TQListView* tqparent, const TQString& t1 )
+ : KListViewItem( tqparent, t1 ) {}
+ TwoColumnViewItem( TQListViewItem* tqparent, const TQString& t1 )
+ : KListViewItem( tqparent, t1 ) {}
+ TwoColumnViewItem( TQListView* tqparent, TQListViewItem* after, const TQString& t1 )
+ : KListViewItem( tqparent, after, t1 ) {}
+ TwoColumnViewItem( TQListViewItem* tqparent, TQListViewItem* after, const TQString& t1 )
+ : KListViewItem( tqparent, after, t1 ) {}
+
+ void paintCell( TQPainter* p, const TQColorGroup & cg, int column, int width, int align )
{
if( column == 1 ) {
@@ -111,7 +111,7 @@ public:
// TODO: find a way to get the TRUE new width after resizing
- // QRect r = p->clipRegion().boundingRect();
+ // TQRect r = p->clipRegion().boundingRect();
// r.setWidth( newWidth );
// p->setClipRect( r );
p->setClipping( false );
@@ -124,21 +124,21 @@ public:
-K3bDiskInfoView::K3bDiskInfoView( QWidget* parent, const char* name )
+K3bDiskInfoView::K3bDiskInfoView( TQWidget* tqparent, const char* name )
: K3bMediaContentsView( true,
K3bMedium::CONTENT_ALL,
K3bDevice::MEDIA_ALL|K3bDevice::MEDIA_UNKNOWN,
K3bDevice::STATE_EMPTY|K3bDevice::STATE_INCOMPLETE|K3bDevice::STATE_COMPLETE|K3bDevice::STATE_UNKNOWN,
- parent, name )
+ tqparent, name )
{
m_infoView = new KListView( this );
setMainWidget( m_infoView );
m_infoView->setSorting( -1 );
m_infoView->setAllColumnsShowFocus( true );
- m_infoView->setSelectionMode( QListView::NoSelection );
+ m_infoView->setSelectionMode( TQListView::NoSelection );
m_infoView->setResizeMode( KListView::AllColumns );
- m_infoView->setAlternateBackground( QColor() );
+ m_infoView->setAlternateBackground( TQColor() );
m_infoView->addColumn( "1" );
m_infoView->addColumn( "2" );
@@ -166,7 +166,7 @@ void K3bDiskInfoView::reloadMedium()
setTitle( medium().shortString( true ) );
if( medium().diskInfo().diskState() == K3bDevice::STATE_NO_MEDIA ) {
- (void)new QListViewItem( m_infoView, i18n("No medium present") );
+ (void)new TQListViewItem( m_infoView, i18n("No medium present") );
setRightPixmap( K3bTheme::MEDIA_NONE );
}
else {
@@ -231,7 +231,7 @@ void K3bDiskInfoView::reloadMedium()
// if we have multiple sessions we create a header item for every session
KListViewItem* trackItem = 0;
if( medium().diskInfo().numSessions() > 1 && medium().toc()[0].session() > 0 ) {
- trackItem = new HeaderViewItem( trackHeaderItem, item, i18n("Session %1").arg(1) );
+ trackItem = new HeaderViewItem( trackHeaderItem, item, i18n("Session %1").tqarg(1) );
lastSession = 1;
}
else
@@ -247,12 +247,12 @@ void K3bDiskInfoView::reloadMedium()
lastSession = track.session();
trackItem->setOpen(true);
trackItem = new HeaderViewItem( trackHeaderItem,
- m_infoView->lastItem()->parent(),
- i18n("Session %1").arg(lastSession) );
+ m_infoView->lastItem()->tqparent(),
+ i18n("Session %1").tqarg(lastSession) );
}
item = new KListViewItem( trackItem, item );
- QString text;
+ TQString text;
if( track.type() == K3bTrack::AUDIO ) {
item->setPixmap( 0, SmallIcon( "sound" ) );
text = i18n("Audio");
@@ -269,21 +269,21 @@ void K3bDiskInfoView::reloadMedium()
else
text = i18n("Data");
}
- item->setText( 0, i18n("%1 (%2)").arg( QString::number(index).rightJustify( 2, ' ' )).arg(text) );
- item->setText( 1, QString( "%1/%2" )
- .arg( track.copyPermitted() ? i18n("copy") : i18n("no copy") )
- .arg( track.type() == K3bTrack::AUDIO
+ item->setText( 0, i18n("%1 (%2)").tqarg( TQString::number(index).rightJustify( 2, ' ' )).tqarg(text) );
+ item->setText( 1, TQString( "%1/%2" )
+ .tqarg( track.copyPermitted() ? i18n("copy") : i18n("no copy") )
+ .tqarg( track.type() == K3bTrack::AUDIO
? ( track.preEmphasis() ? i18n("preemp") : i18n("no preemp") )
: ( track.recordedIncremental() ? i18n("incremental") : i18n("uninterrupted") ) ) );
item->setText( 2,
- QString("%1 - %2")
- .arg(track.firstSector().lba())
- .arg(track.lastSector().lba()) );
- item->setText( 3, QString::number( track.length().lba() ) + " (" + track.length().toString() + ")" );
+ TQString("%1 - %2")
+ .tqarg(track.firstSector().lba())
+ .tqarg(track.lastSector().lba()) );
+ item->setText( 3, TQString::number( track.length().lba() ) + " (" + track.length().toString() + ")" );
#ifdef K3B_DEBUG
if( track.type() == K3bTrack::AUDIO )
- item->setText( 4, QString( "%1 (%2)" ).arg(track.index0().toString()).arg(track.index0().lba()) );
+ item->setText( 4, TQString( "%1 (%2)" ).tqarg(track.index0().toString()).tqarg(track.index0().lba()) );
#endif
++index;
}
@@ -320,7 +320,7 @@ void K3bDiskInfoView::reloadMedium()
int index = 1;
for( unsigned int i = 0; i < medium().cdText().count(); ++i ) {
item = new KListViewItem( cdTextHeaderItem, item );
- item->setText( 0, QString::number(index).rightJustify( 2, ' ' ) + " " +
+ item->setText( 0, TQString::number(index).rightJustify( 2, ' ' ) + " " +
medium().cdText().at(i).performer() );
item->setText( 1, medium().cdText().at(i).title() );
item->setText( 2, medium().cdText().at(i).songwriter() );
@@ -339,7 +339,7 @@ void K3bDiskInfoView::createMediaInfoItems( const K3bMedium& medium )
const K3bDevice::DiskInfo& info = medium.diskInfo();
KListViewItem* atipItem = new HeaderViewItem( m_infoView, m_infoView->lastItem(), i18n("Medium") );
- QString typeStr;
+ TQString typeStr;
if( info.mediaType() != K3bDevice::MEDIA_UNKNOWN )
typeStr = K3bDevice::mediaTypeString( info.mediaType() );
else
@@ -350,24 +350,24 @@ void K3bDiskInfoView::createMediaInfoItems( const K3bMedium& medium )
if( info.isDvdMedia() )
atipChild = new KListViewItem( atipItem, atipChild,
i18n("Media ID:"),
- !info.mediaId().isEmpty() ? QString::fromLatin1( info.mediaId() ) : i18n("unknown") );
+ !info.mediaId().isEmpty() ? TQString::tqfromLatin1( info.mediaId() ) : i18n("unknown") );
atipChild = new KListViewItem( atipItem, atipChild,
i18n("Capacity:"),
- i18n("%1 min").arg(info.capacity().toString()),
+ i18n("%1 min").tqarg(info.capacity().toString()),
KIO::convertSize(info.capacity().mode1Bytes()) );
if( !info.empty() )
atipChild = new KListViewItem( atipItem, atipChild,
i18n("Used Capacity:"),
- i18n("%1 min").arg(info.size().toString()),
+ i18n("%1 min").tqarg(info.size().toString()),
KIO::convertSize(info.size().mode1Bytes()) );
if( info.appendable() )
atipChild = new KListViewItem( atipItem, atipChild,
i18n("Remaining:"),
- i18n("%1 min").arg( info.remainingSize().toString() ),
+ i18n("%1 min").tqarg( info.remainingSize().toString() ),
KIO::convertSize(info.remainingSize().mode1Bytes()) );
atipChild = new KListViewItem( atipItem, atipChild,
@@ -385,7 +385,7 @@ void K3bDiskInfoView::createMediaInfoItems( const K3bMedium& medium )
if( info.isDvdMedia() )
atipChild = new KListViewItem( atipItem, atipChild,
i18n("Layers:"),
- QString::number( info.numLayers() ) );
+ TQString::number( info.numLayers() ) );
if( info.mediaType() == K3bDevice::MEDIA_DVD_PLUS_RW ) {
atipChild = new KListViewItem( atipItem, atipChild,
@@ -408,16 +408,16 @@ void K3bDiskInfoView::createMediaInfoItems( const K3bMedium& medium )
atipChild = new KListViewItem( atipItem, atipChild,
i18n("Sessions:"),
- QString::number( info.numSessions() ) );
+ TQString::number( info.numSessions() ) );
if( info.mediaType() & K3bDevice::MEDIA_WRITABLE ) {
atipChild = new KListViewItem( atipItem, atipChild,
i18n("Supported writing speeds:") );
- QString s;
+ TQString s;
if( medium.writingSpeeds().isEmpty() )
s = "-";
else
- for( QValueList<int>::const_iterator it = medium.writingSpeeds().begin();
+ for( TQValueList<int>::const_iterator it = medium.writingSpeeds().begin();
it != medium.writingSpeeds().end(); ++it ) {
if( !s.isEmpty() ) {
s.append( "\n" );
@@ -425,9 +425,9 @@ void K3bDiskInfoView::createMediaInfoItems( const K3bMedium& medium )
}
if( info.isDvdMedia() )
- s.append( QString().sprintf( "%.1fx (%d KB/s)", (double)*it / 1385.0, *it ) );
+ s.append( TQString().sprintf( "%.1fx (%d KB/s)", (double)*it / 1385.0, *it ) );
else
- s.append( QString( "%1x (%2 KB/s)" ).arg( *it/175 ).arg( *it ) );
+ s.append( TQString( "%1x (%2 KB/s)" ).tqarg( *it/175 ).tqarg( *it ) );
}
atipChild->setText( 1, s );
@@ -446,40 +446,40 @@ void K3bDiskInfoView::createIso9660InfoItems( const K3bIso9660SimplePrimaryDescr
iso9660Child = new KListViewItem( iso9660Item, iso9660Child,
i18n("System Id:"),
iso.systemId.isEmpty()
- ? QString("-")
+ ? TQString("-")
: iso.systemId );
iso9660Child = new KListViewItem( iso9660Item, iso9660Child,
i18n("Volume Id:"),
iso.volumeId.isEmpty()
- ? QString("-")
+ ? TQString("-")
: iso.volumeId );
iso9660Child = new KListViewItem( iso9660Item, iso9660Child,
i18n("Volume Set Id:"),
iso.volumeSetId.isEmpty()
- ? QString("-")
+ ? TQString("-")
: iso.volumeSetId );
iso9660Child = new KListViewItem( iso9660Item, iso9660Child,
i18n("Publisher Id:"),
iso.publisherId.isEmpty()
- ? QString("-")
+ ? TQString("-")
: iso.publisherId );
iso9660Child = new KListViewItem( iso9660Item, iso9660Child,
i18n("Preparer Id:"),
iso.preparerId.isEmpty()
- ? QString("-")
+ ? TQString("-")
: iso.preparerId );
iso9660Child = new KListViewItem( iso9660Item, iso9660Child,
i18n("Application Id:"),
iso.applicationId.isEmpty()
- ? QString("-")
+ ? TQString("-")
: iso.applicationId );
// iso9660Child = new KListViewItem( iso9660Item, iso9660Child,
// i18n("Volume Size:"),
-// QString( "%1 (%2*%3)" )
-// .arg(iso.logicalBlockSize
+// TQString( "%1 (%2*%3)" )
+// .tqarg(iso.logicalBlockSize
// *iso.volumeSpaceSize)
-// .arg(iso.logicalBlockSize)
-// .arg(iso.volumeSpaceSize),
+// .tqarg(iso.logicalBlockSize)
+// .tqarg(iso.volumeSpaceSize),
// KIO::convertSize(iso.logicalBlockSize
// *iso.volumeSpaceSize) );
@@ -489,7 +489,7 @@ void K3bDiskInfoView::createIso9660InfoItems( const K3bIso9660SimplePrimaryDescr
void K3bDiskInfoView::enableInteraction( bool enable )
{
- QListViewItemIterator it( m_infoView );
+ TQListViewItemIterator it( m_infoView );
while( it.current() ) {
it.current()->setEnabled( enable );
++it;
diff --git a/src/k3bdiskinfoview.h b/src/k3bdiskinfoview.h
index 7c817a7..d5cf3a8 100644
--- a/src/k3bdiskinfoview.h
+++ b/src/k3bdiskinfoview.h
@@ -21,7 +21,7 @@
#include "k3bmediacontentsview.h"
#include "k3bmedium.h"
-class QLabel;
+class TQLabel;
class KListView;
class K3bIso9660;
@@ -33,9 +33,10 @@ namespace K3bDevice {
class K3bDiskInfoView : public K3bMediaContentsView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDiskInfoView( QWidget* parent = 0, const char* name = 0 );
+ K3bDiskInfoView( TQWidget* tqparent = 0, const char* name = 0 );
~K3bDiskInfoView();
void enableInteraction( bool enable );
diff --git a/src/k3bemptydiscwaiter.cpp b/src/k3bemptydiscwaiter.cpp
index 7e11198..9fc0f06 100644
--- a/src/k3bemptydiscwaiter.cpp
+++ b/src/k3bemptydiscwaiter.cpp
@@ -28,14 +28,14 @@
#include <k3bprogressdialog.h>
#include <k3bdvdformattingjob.h>
-#include <qtimer.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qpushbutton.h>
-#include <qapplication.h>
-#include <qeventloop.h>
-#include <qfont.h>
+#include <tqtimer.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqpushbutton.h>
+#include <tqapplication.h>
+#include <tqeventloop.h>
+#include <tqfont.h>
#include <klocale.h>
#include <kconfig.h>
@@ -61,7 +61,7 @@ public:
int wantedMediaType;
int wantedMediaState;
- QString wantedMediaTypeString;
+ TQString wantedMediaTypeString;
int result;
int dialogVisible;
@@ -75,52 +75,52 @@ public:
bool waitingDone;
- QLabel* labelRequest;
- QLabel* labelFoundMedia;
- QLabel* pixLabel;
+ TQLabel* labelRequest;
+ TQLabel* labelFoundMedia;
+ TQLabel* pixLabel;
K3bProgressDialog* erasingInfoDialog;
};
-K3bEmptyDiscWaiter::K3bEmptyDiscWaiter( K3bDevice::Device* device, QWidget* parent, const char* name )
+K3bEmptyDiscWaiter::K3bEmptyDiscWaiter( K3bDevice::Device* device, TQWidget* tqparent, const char* name )
: KDialogBase( KDialogBase::Plain, i18n("Waiting for Disk"),
KDialogBase::Cancel|KDialogBase::User1|KDialogBase::User2|KDialogBase::User3,
- KDialogBase::User3, parent, name, true, true, i18n("Force"), i18n("Eject"), i18n("Load") )
+ KDialogBase::User3, tqparent, name, true, true, i18n("Force"), i18n("Eject"), i18n("Load") )
{
d = new Private();
d->device = device;
// setup the gui
// -----------------------------
- d->labelRequest = new QLabel( plainPage() );
- d->labelRequest->setAlignment( Qt::AlignLeft | Qt::AlignVCenter );
- d->labelFoundMedia = new QLabel( plainPage() );
- d->pixLabel = new QLabel( plainPage() );
- d->pixLabel->setAlignment( Qt::AlignHCenter | Qt::AlignTop );
+ d->labelRequest = new TQLabel( plainPage() );
+ d->labelRequest->tqsetAlignment( TQt::AlignLeft | TQt::AlignVCenter );
+ d->labelFoundMedia = new TQLabel( plainPage() );
+ d->pixLabel = new TQLabel( plainPage() );
+ d->pixLabel->tqsetAlignment( TQt::AlignHCenter | TQt::AlignTop );
- QFont f( d->labelFoundMedia->font() );
+ TQFont f( d->labelFoundMedia->font() );
f.setBold(true);
d->labelFoundMedia->setFont( f );
- QGridLayout* grid = new QGridLayout( plainPage() );
+ TQGridLayout* grid = new TQGridLayout( plainPage() );
grid->setMargin( marginHint() );
grid->setSpacing( spacingHint() );
grid->addMultiCellWidget( d->pixLabel, 0, 2, 0, 0 );
grid->addColSpacing( 1, 20 );
- grid->addWidget( new QLabel( i18n("Found media:"), plainPage() ), 0, 2 );
+ grid->addWidget( new TQLabel( i18n("Found media:"), plainPage() ), 0, 2 );
grid->addWidget( d->labelFoundMedia, 0, 3 );
grid->addMultiCellWidget( d->labelRequest, 1, 1, 2, 3 );
grid->setRowStretch( 2, 1 );
grid->setColStretch( 3, 1 );
// -----------------------------
- connect( k3bappcore->mediaCache(), SIGNAL(mediumChanged(K3bDevice::Device*)),
- this, SLOT(slotMediumChanged(K3bDevice::Device*)) );
+ connect( k3bappcore->mediaCache(), TQT_SIGNAL(mediumChanged(K3bDevice::Device*)),
+ this, TQT_SLOT(slotMediumChanged(K3bDevice::Device*)) );
- QToolTip::add( actionButton(KDialogBase::User1),
+ TQToolTip::add( actionButton(KDialogBase::User1),
i18n("Force K3b to continue if it seems not to detect your empty CD/DVD.") );
}
@@ -131,7 +131,7 @@ K3bEmptyDiscWaiter::~K3bEmptyDiscWaiter()
}
-int K3bEmptyDiscWaiter::waitForDisc( int mediaState, int mediaType, const QString& message )
+int K3bEmptyDiscWaiter::waitForDisc( int mediaState, int mediaType, const TQString& message )
{
if ( d->inLoop ) {
kdError() << "(K3bEmptyDiscWaiter) Recursive call detected." << endl;
@@ -152,11 +152,11 @@ int K3bEmptyDiscWaiter::waitForDisc( int mediaState, int mediaType, const QStrin
//
if( (d->wantedMediaType & K3bDevice::MEDIA_WRITABLE_DVD) &&
(d->wantedMediaType & K3bDevice::MEDIA_WRITABLE_CD) )
- d->wantedMediaTypeString = i18n("CD-R(W) or DVD%1R(W)").arg("±");
+ d->wantedMediaTypeString = i18n("CD-R(W) or DVD%1R(W)").tqarg("�");
else if( d->wantedMediaType & K3bDevice::MEDIA_WRITABLE_DVD_SL )
- d->wantedMediaTypeString = i18n("DVD%1R(W)").arg("±");
+ d->wantedMediaTypeString = i18n("DVD%1R(W)").tqarg("�");
else if( d->wantedMediaType & K3bDevice::MEDIA_WRITABLE_DVD_DL )
- d->wantedMediaTypeString = i18n("Double Layer DVD%1R").arg("±");
+ d->wantedMediaTypeString = i18n("Double Layer DVD%1R").tqarg("�");
else
d->wantedMediaTypeString = i18n("CD-R(W)");
@@ -164,44 +164,44 @@ int K3bEmptyDiscWaiter::waitForDisc( int mediaState, int mediaType, const QStrin
if( (d->wantedMediaState & K3bDevice::STATE_COMPLETE) && (d->wantedMediaState & K3bDevice::STATE_INCOMPLETE) )
d->labelRequest->setText( i18n("Please insert a complete or appendable %4 medium "
"into drive<p><b>%1 %2 (%3)</b>.")
- .arg(d->device->vendor())
- .arg(d->device->description())
- .arg(d->device->devicename())
- .arg( d->wantedMediaTypeString ) );
+ .tqarg(d->device->vendor())
+ .tqarg(d->device->description())
+ .tqarg(d->device->devicename())
+ .tqarg( d->wantedMediaTypeString ) );
else if( d->wantedMediaState & K3bDevice::STATE_COMPLETE )
d->labelRequest->setText( i18n("Please insert a complete %4 medium "
"into drive<p><b>%1 %2 (%3)</b>.")
- .arg(d->device->vendor())
- .arg(d->device->description())
- .arg(d->device->devicename())
- .arg( d->wantedMediaTypeString ) );
+ .tqarg(d->device->vendor())
+ .tqarg(d->device->description())
+ .tqarg(d->device->devicename())
+ .tqarg( d->wantedMediaTypeString ) );
else if( (d->wantedMediaState & K3bDevice::STATE_INCOMPLETE) && (d->wantedMediaState & K3bDevice::STATE_EMPTY) )
d->labelRequest->setText( i18n("Please insert an empty or appendable %4 medium "
"into drive<p><b>%1 %2 (%3)</b>.")
- .arg(d->device->vendor())
- .arg(d->device->description())
- .arg(d->device->devicename())
- .arg( d->wantedMediaTypeString ) );
+ .tqarg(d->device->vendor())
+ .tqarg(d->device->description())
+ .tqarg(d->device->devicename())
+ .tqarg( d->wantedMediaTypeString ) );
else if( d->wantedMediaState & K3bDevice::STATE_INCOMPLETE )
d->labelRequest->setText( i18n("Please insert an appendable %4 medium "
"into drive<p><b>%1 %2 (%3)</b>.")
- .arg(d->device->vendor())
- .arg(d->device->description())
- .arg(d->device->devicename())
- .arg( d->wantedMediaTypeString ) );
+ .tqarg(d->device->vendor())
+ .tqarg(d->device->description())
+ .tqarg(d->device->devicename())
+ .tqarg( d->wantedMediaTypeString ) );
else if( d->wantedMediaState & K3bDevice::STATE_EMPTY )
d->labelRequest->setText( i18n("Please insert an empty %4 medium "
"into drive<p><b>%1 %2 (%3)</b>.")
- .arg(d->device->vendor())
- .arg(d->device->description())
- .arg(d->device->devicename())
- .arg( d->wantedMediaTypeString ) );
+ .tqarg(d->device->vendor())
+ .tqarg(d->device->description())
+ .tqarg(d->device->devicename())
+ .tqarg( d->wantedMediaTypeString ) );
else // fallback case (this should not happen in K3b)
d->labelRequest->setText( i18n("Please insert a suitable medium "
"into drive<p><b>%1 %2 (%3)</b>.")
- .arg(d->device->vendor())
- .arg(d->device->description())
- .arg(d->device->devicename()) );
+ .tqarg(d->device->vendor())
+ .tqarg(d->device->description())
+ .tqarg(d->device->devicename()) );
}
else
@@ -225,7 +225,7 @@ int K3bEmptyDiscWaiter::waitForDisc( int mediaState, int mediaType, const QStrin
//
if( !d->waitingDone ) {
d->inLoop = true;
- QApplication::eventLoop()->enterLoop();
+ TQApplication::eventLoop()->enterLoop();
}
return d->result;
@@ -269,7 +269,7 @@ void K3bEmptyDiscWaiter::slotMediumChanged( K3bDevice::Device* dev )
return;
}
-// QString mediaState;
+// TQString mediaState;
// if( medium.diskInfo().diskState() == K3bDevice::STATE_COMPLETE )
// mediaState = i18n("complete");
// else if( medium.diskInfo().diskState() == K3bDevice::STATE_INCOMPLETE )
@@ -314,9 +314,9 @@ void K3bEmptyDiscWaiter::slotMediumChanged( K3bDevice::Device* dev )
job.setForceNoEject( true );
d->erasingInfoDialog->setText( i18n("Preformatting DVD+RW") );
- connect( &job, SIGNAL(finished(bool)), this, SLOT(slotErasingFinished(bool)) );
- connect( &job, SIGNAL(percent(int)), d->erasingInfoDialog, SLOT(setProgress(int)) );
- connect( d->erasingInfoDialog, SIGNAL(cancelClicked()), &job, SLOT(cancel()) );
+ connect( &job, TQT_SIGNAL(finished(bool)), this, TQT_SLOT(slotErasingFinished(bool)) );
+ connect( &job, TQT_SIGNAL(percent(int)), d->erasingInfoDialog, TQT_SLOT(setProgress(int)) );
+ connect( d->erasingInfoDialog, TQT_SIGNAL(cancelClicked()), &job, TQT_SLOT(cancel()) );
job.start( medium.diskInfo() );
d->erasingInfoDialog->exec( true );
}
@@ -337,13 +337,13 @@ void K3bEmptyDiscWaiter::slotMediumChanged( K3bDevice::Device* dev )
if( formatWithoutAsking ||
!hasIso ||
- KMessageBox::warningContinueCancel( parentWidgetToUse(),
+ KMessageBox::warningContinueCancel( tqparentWidgetToUse(),
i18n("Found %1 media in %2 - %3. "
"Should it be overwritten?")
- .arg("DVD+RW")
- .arg(d->device->vendor())
- .arg(d->device->description()),
- i18n("Found %1").arg("DVD+RW"),i18n("Overwrite") ) == KMessageBox::Continue ) {
+ .tqarg("DVD+RW")
+ .tqarg(d->device->vendor())
+ .tqarg(d->device->description()),
+ i18n("Found %1").tqarg("DVD+RW"),i18n("Overwrite") ) == KMessageBox::Continue ) {
finishWaiting( K3bDevice::MEDIA_DVD_PLUS_RW );
}
else {
@@ -407,13 +407,13 @@ void K3bEmptyDiscWaiter::slotMediumChanged( K3bDevice::Device* dev )
if( formatWithoutAsking ||
!hasIso ||
- KMessageBox::warningContinueCancel( parentWidgetToUse(),
+ KMessageBox::warningContinueCancel( tqparentWidgetToUse(),
i18n("Found %1 media in %2 - %3. "
"Should it be overwritten?")
- .arg(K3bDevice::mediaTypeString(medium.diskInfo().mediaType()))
- .arg(d->device->vendor())
- .arg(d->device->description()),
- i18n("Found %1").arg("DVD-RW"),i18n("Overwrite") ) == KMessageBox::Continue ) {
+ .tqarg(K3bDevice::mediaTypeString(medium.diskInfo().mediaType()))
+ .tqarg(d->device->vendor())
+ .tqarg(d->device->description()),
+ i18n("Found %1").tqarg("DVD-RW"),i18n("Overwrite") ) == KMessageBox::Continue ) {
finishWaiting( K3bDevice::MEDIA_DVD_RW_OVWR );
}
else {
@@ -464,13 +464,13 @@ void K3bEmptyDiscWaiter::slotMediumChanged( K3bDevice::Device* dev )
kdDebug() << "(K3bEmptyDiscWaiter) ------ DVD-RW needs to be formated." << endl;
if( formatWithoutAsking ||
- KMessageBox::warningContinueCancel( parentWidgetToUse(),
+ KMessageBox::warningContinueCancel( tqparentWidgetToUse(),
i18n("Found %1 media in %2 - %3. "
"Should it be formatted?")
- .arg( K3bDevice::mediaTypeString(medium.diskInfo().mediaType()) )
- .arg(d->device->vendor())
- .arg(d->device->description()),
- i18n("Found %1").arg("DVD-RW"), i18n("Format") ) == KMessageBox::Continue ) {
+ .tqarg( K3bDevice::mediaTypeString(medium.diskInfo().mediaType()) )
+ .tqarg(d->device->vendor())
+ .tqarg(d->device->description()),
+ i18n("Found %1").tqarg("DVD-RW"), i18n("Format") ) == KMessageBox::Continue ) {
kdDebug() << "(K3bEmptyDiscWaiter) ------ formatting DVD-RW." << endl;
@@ -492,9 +492,9 @@ void K3bEmptyDiscWaiter::slotMediumChanged( K3bDevice::Device* dev )
job.setForceNoEject(true);
d->erasingInfoDialog->setText( i18n("Formatting DVD-RW") );
- connect( &job, SIGNAL(finished(bool)), this, SLOT(slotErasingFinished(bool)) );
- connect( &job, SIGNAL(percent(int)), d->erasingInfoDialog, SLOT(setProgress(int)) );
- connect( d->erasingInfoDialog, SIGNAL(cancelClicked()), &job, SLOT(cancel()) );
+ connect( &job, TQT_SIGNAL(finished(bool)), this, TQT_SLOT(slotErasingFinished(bool)) );
+ connect( &job, TQT_SIGNAL(percent(int)), d->erasingInfoDialog, TQT_SLOT(setProgress(int)) );
+ connect( d->erasingInfoDialog, TQT_SIGNAL(cancelClicked()), &job, TQT_SLOT(cancel()) );
job.start( medium.diskInfo() );
d->erasingInfoDialog->exec( true );
}
@@ -540,9 +540,9 @@ void K3bEmptyDiscWaiter::slotMediumChanged( K3bDevice::Device* dev )
medium.diskInfo().rewritable() ) {
if( formatWithoutAsking ||
- KMessageBox::questionYesNo( parentWidgetToUse(),
+ KMessageBox::questionYesNo( tqparentWidgetToUse(),
i18n("Found rewritable media in %1 - %2. "
- "Should it be erased?").arg(d->device->vendor()).arg(d->device->description()),
+ "Should it be erased?").tqarg(d->device->vendor()).tqarg(d->device->description()),
i18n("Found Rewritable Disk"),
KGuiItem(i18n("&Erase"), "cdrwblank"),
KGuiItem(i18n("E&ject")) ) == KMessageBox::Yes ) {
@@ -566,8 +566,8 @@ void K3bEmptyDiscWaiter::slotMediumChanged( K3bDevice::Device* dev )
job.setForceNoEject(true);
job.setSpeed( 0 ); // Auto
job.setWritingApp( erasingApp );
- connect( &job, SIGNAL(finished(bool)), this, SLOT(slotErasingFinished(bool)) );
- connect( d->erasingInfoDialog, SIGNAL(cancelClicked()), &job, SLOT(cancel()) );
+ connect( &job, TQT_SIGNAL(finished(bool)), this, TQT_SLOT(slotErasingFinished(bool)) );
+ connect( d->erasingInfoDialog, TQT_SIGNAL(cancelClicked()), &job, TQT_SLOT(cancel()) );
job.start();
d->erasingInfoDialog->exec( false );
}
@@ -655,7 +655,7 @@ void K3bEmptyDiscWaiter::finishWaiting( int code )
if( d->inLoop ) {
d->inLoop = false;
kdDebug() << "(K3bEmptyDiscWaiter) exitLoop " << endl;
- QApplication::eventLoop()->exitLoop();
+ TQApplication::eventLoop()->exitLoop();
}
}
@@ -664,9 +664,9 @@ void K3bEmptyDiscWaiter::slotErasingFinished( bool success )
{
if( success ) {
connect( K3bDevice::reload( d->device ),
- SIGNAL(finished(K3bDevice::DeviceHandler*)),
+ TQT_SIGNAL(finished(K3bDevice::DeviceHandler*)),
this,
- SLOT(slotReloadingAfterErasingFinished(K3bDevice::DeviceHandler*)) );
+ TQT_SLOT(slotReloadingAfterErasingFinished(K3bDevice::DeviceHandler*)) );
}
else {
K3bDevice::eject( d->device );
@@ -683,9 +683,9 @@ void K3bEmptyDiscWaiter::slotReloadingAfterErasingFinished( K3bDevice::DeviceHan
}
-int K3bEmptyDiscWaiter::wait( K3bDevice::Device* device, bool appendable, int mediaType, QWidget* parent )
+int K3bEmptyDiscWaiter::wait( K3bDevice::Device* device, bool appendable, int mediaType, TQWidget* tqparent )
{
- K3bEmptyDiscWaiter d( device, parent ? parent : qApp->activeWindow() );
+ K3bEmptyDiscWaiter d( device, tqparent ? tqparent : TQT_TQWIDGET(tqApp->activeWindow()) );
int mediaState = K3bDevice::STATE_EMPTY;
if( appendable ) mediaState |= K3bDevice::STATE_INCOMPLETE;
return d.waitForDisc( mediaState, mediaType );
@@ -695,19 +695,19 @@ int K3bEmptyDiscWaiter::wait( K3bDevice::Device* device, bool appendable, int me
int K3bEmptyDiscWaiter::wait( K3bDevice::Device* device,
int mediaState,
int mediaType,
- const QString& message,
- QWidget* parent )
+ const TQString& message,
+ TQWidget* tqparent )
{
- K3bEmptyDiscWaiter d( device, parent ? parent : qApp->activeWindow() );
+ K3bEmptyDiscWaiter d( device, tqparent ? tqparent : TQT_TQWIDGET(tqApp->activeWindow()) );
return d.waitForDisc( mediaState, mediaType, message );
}
void K3bEmptyDiscWaiter::prepareErasingDialog()
{
- // we hide the emptydiskwaiter so the info dialog needs to have the same parent
+ // we hide the emptydiskwaiter so the info dialog needs to have the same tqparent
if( !d->erasingInfoDialog )
- d->erasingInfoDialog = new K3bProgressDialog( QString::null, parentWidget() );
+ d->erasingInfoDialog = new K3bProgressDialog( TQString(), tqparentWidget() );
//
// hide the dialog
@@ -719,32 +719,32 @@ void K3bEmptyDiscWaiter::prepareErasingDialog()
}
-QWidget* K3bEmptyDiscWaiter::parentWidgetToUse()
+TQWidget* K3bEmptyDiscWaiter::tqparentWidgetToUse()
{
// we might also show dialogs if the discwaiter widget is not visible yet
if( d->dialogVisible )
return this;
else
- return parentWidget();
+ return tqparentWidget();
}
int K3bEmptyDiscWaiter::waitForMedia( K3bDevice::Device* device,
int mediaState,
int mediaType,
- const QString& message )
+ const TQString& message )
{
// this is only needed for the formatting
return wait( device, mediaState, mediaType, message, d->erasingInfoDialog );
}
-bool K3bEmptyDiscWaiter::questionYesNo( const QString& text,
- const QString& caption,
- const QString& yesText,
- const QString& noText )
+bool K3bEmptyDiscWaiter::questionYesNo( const TQString& text,
+ const TQString& caption,
+ const TQString& yesText,
+ const TQString& noText )
{
- return ( KMessageBox::questionYesNo( parentWidgetToUse(),
+ return ( KMessageBox::questionYesNo( tqparentWidgetToUse(),
text,
caption,
yesText.isEmpty() ? KStdGuiItem::yes() : KGuiItem(yesText),
@@ -752,8 +752,8 @@ bool K3bEmptyDiscWaiter::questionYesNo( const QString& text,
}
-void K3bEmptyDiscWaiter::blockingInformation( const QString& text,
- const QString& caption )
+void K3bEmptyDiscWaiter::blockingInformation( const TQString& text,
+ const TQString& caption )
{
KMessageBox::information( this, text, caption );
}
diff --git a/src/k3bemptydiscwaiter.h b/src/k3bemptydiscwaiter.h
index ce3bced..79a8674 100644
--- a/src/k3bemptydiscwaiter.h
+++ b/src/k3bemptydiscwaiter.h
@@ -38,6 +38,7 @@ namespace K3bDevice {
class K3bEmptyDiscWaiter : public KDialogBase, public K3bJobHandler
{
Q_OBJECT
+ TQ_OBJECT
public:
~K3bEmptyDiscWaiter();
@@ -61,21 +62,21 @@ class K3bEmptyDiscWaiter : public KDialogBase, public K3bJobHandler
int waitForMedia( K3bDevice::Device*,
int mediaState = K3bDevice::STATE_EMPTY,
int mediaType = K3bDevice::MEDIA_WRITABLE_CD,
- const QString& message = QString::null );
+ const TQString& message = TQString() );
/**
* @reimplemented from K3bJobHandler
*/
- bool questionYesNo( const QString& text,
- const QString& caption = QString::null,
- const QString& yesText = QString::null,
- const QString& noText = QString::null );
+ bool questionYesNo( const TQString& text,
+ const TQString& caption = TQString(),
+ const TQString& yesText = TQString(),
+ const TQString& noText = TQString() );
/**
* reimplemented from K3bJobHandler
*/
- void blockingInformation( const QString& text,
- const QString& caption = QString::null );
+ void blockingInformation( const TQString& text,
+ const TQString& caption = TQString() );
/**
* This only openes a dialog if the first check failed.
@@ -83,7 +84,7 @@ class K3bEmptyDiscWaiter : public KDialogBase, public K3bJobHandler
static int wait( K3bDevice::Device* device,
bool appendable = false,
int mediaType = K3bDevice::MEDIA_WRITABLE_CD,
- QWidget* parent = 0 );
+ TQWidget* tqparent = 0 );
/**
* Starts the emptydiskwaiter.
@@ -95,8 +96,8 @@ class K3bEmptyDiscWaiter : public KDialogBase, public K3bJobHandler
static int wait( K3bDevice::Device*,
int mediaState,
int mediaType = K3bDevice::MEDIA_WRITABLE_CD,
- const QString& message = QString::null,
- QWidget* parent = 0 );
+ const TQString& message = TQString(),
+ TQWidget* tqparent = 0 );
protected slots:
void slotCancel();
@@ -113,23 +114,23 @@ class K3bEmptyDiscWaiter : public KDialogBase, public K3bJobHandler
/**
* Use the static wait methods.
*/
- explicit K3bEmptyDiscWaiter( K3bDevice::Device* device, QWidget* parent = 0, const char* name = 0 );
+ explicit K3bEmptyDiscWaiter( K3bDevice::Device* device, TQWidget* tqparent = 0, const char* name = 0 );
int waitForDisc( int mediaState = K3bDevice::STATE_EMPTY,
int mediaType = K3bDevice::MEDIA_WRITABLE_CD,
- const QString& message = QString::null );
+ const TQString& message = TQString() );
/**
* Nobody closes this dialog but itself!
*/
- void closeEvent( QCloseEvent* ) {}
+ void closeEvent( TQCloseEvent* ) {}
private:
void finishWaiting( int );
void prepareErasingDialog();
- QWidget* parentWidgetToUse();
+ TQWidget* tqparentWidgetToUse();
class Private;
Private* d;
diff --git a/src/k3bfiletreecombobox.cpp b/src/k3bfiletreecombobox.cpp
index ce9b6b7..3710d25 100644
--- a/src/k3bfiletreecombobox.cpp
+++ b/src/k3bfiletreecombobox.cpp
@@ -22,16 +22,16 @@
#include <k3bcore.h>
#include <k3bglobals.h>
-#include <qrect.h>
-#include <qapplication.h>
-#include <qstyle.h>
-#include <qlistbox.h>
-#include <qheader.h>
-#include <qevent.h>
-#include <qpainter.h>
-#include <qpalette.h>
-#include <qdrawutil.h>
-#include <qdir.h>
+#include <tqrect.h>
+#include <tqapplication.h>
+#include <tqstyle.h>
+#include <tqlistbox.h>
+#include <tqheader.h>
+#include <tqevent.h>
+#include <tqpainter.h>
+#include <tqpalette.h>
+#include <tqdrawutil.h>
+#include <tqdir.h>
#include <kdebug.h>
#include <kiconloader.h>
@@ -53,8 +53,8 @@ public:
};
-K3bFileTreeComboBox::K3bFileTreeComboBox( QWidget* parent, const char* name )
- : KComboBox( true, parent, name )
+K3bFileTreeComboBox::K3bFileTreeComboBox( TQWidget* tqparent, const char* name )
+ : KComboBox( true, tqparent, name )
{
d = new Private;
@@ -63,23 +63,23 @@ K3bFileTreeComboBox::K3bFileTreeComboBox( QWidget* parent, const char* name )
m_fileTreeView = new K3bFileTreeView( this );
m_fileTreeView->hide();
- m_fileTreeView->reparent( this, WType_Popup, QPoint(0,0), false );
+ m_fileTreeView->reparent( this, WType_Popup, TQPoint(0,0), false );
m_fileTreeView->header()->hide();
m_fileTreeView->installEventFilter(this);
m_fileTreeView->addDefaultBranches();
m_fileTreeView->addCdDeviceBranches( k3bcore->deviceManager() );
- // HACK! Why the hell is QComboBox that closed???
+ // HACK! Why the hell is TQComboBox that closed???
listBox()->insertItem( "HACK" );
- connect( m_fileTreeView, SIGNAL(deviceExecuted(K3bDevice::Device*)),
- this, SLOT(slotDeviceExecuted(K3bDevice::Device*)) );
- connect( m_fileTreeView, SIGNAL(urlExecuted(const KURL&)),
- this, SLOT(slotUrlExecuted(const KURL&)) );
+ connect( m_fileTreeView, TQT_SIGNAL(deviceExecuted(K3bDevice::Device*)),
+ this, TQT_SLOT(slotDeviceExecuted(K3bDevice::Device*)) );
+ connect( m_fileTreeView, TQT_SIGNAL(urlExecuted(const KURL&)),
+ this, TQT_SLOT(slotUrlExecuted(const KURL&)) );
- connect( lineEdit(), SIGNAL(returnPressed()),
- this, SLOT(slotGoUrl()) );
+ connect( lineEdit(), TQT_SIGNAL(returnPressed()),
+ this, TQT_SLOT(slotGoUrl()) );
// TODO: subclass KURLCompletition to support the dev:/ stuff and block any non-local urls
}
@@ -120,9 +120,9 @@ void K3bFileTreeComboBox::setDevice( K3bDevice::Device* dev )
}
-void K3bFileTreeComboBox::setEditText( const QPixmap& pix, const QString& t )
+void K3bFileTreeComboBox::setEditText( const TQPixmap& pix, const TQString& t )
{
- // QComboBox::changeItem() doesn't honor the pixmap when
+ // TQComboBox::changeItem() doesn't honor the pixmap when
// using an editable combobox, so we just remove and insert
setUpdatesEnabled( false );
@@ -144,7 +144,7 @@ void K3bFileTreeComboBox::setCurrentItem( int )
}
-void K3bFileTreeComboBox::setCurrentText( const QString& )
+void K3bFileTreeComboBox::setCurrentText( const TQString& )
{
}
@@ -154,15 +154,15 @@ void K3bFileTreeComboBox::popup()
// code mainly from qcombobox.cpp
m_fileTreeView->triggerUpdate();
- int w = QMAX( m_fileTreeView->sizeHint().width(), width() );
- int h = m_fileTreeView->sizeHint().height();
- QRect screen = QApplication::desktop()->availableGeometry( this );
+ int w = TQMAX( m_fileTreeView->tqsizeHint().width(), width() );
+ int h = m_fileTreeView->tqsizeHint().height();
+ TQRect screen = TQApplication::desktop()->availableGeometry( this );
int sx = screen.x(); // screen pos
int sy = screen.y();
int sw = screen.width(); // screen width
int sh = screen.height(); // screen height
- QPoint pos = mapToGlobal( QPoint(0,height()) );
- // ## Similar code is in QPopupMenu
+ TQPoint pos = mapToGlobal( TQPoint(0,height()) );
+ // ## Similar code is in TQPopupMenu
int x = pos.x();
int y = pos.y();
@@ -174,10 +174,10 @@ void K3bFileTreeComboBox::popup()
if (y + h > sy+sh && y - h - height() >= 0 )
y = y - h - height();
- QRect rect =
- style().querySubControlMetrics( QStyle::CC_ComboBox, this,
- QStyle::SC_ComboBoxListBoxPopup,
- QStyleOption( x, y, w, h ) );
+ TQRect rect =
+ tqstyle().querySubControlMetrics( TQStyle::CC_ComboBox, this,
+ TQStyle::SC_ComboBoxListBoxPopup,
+ TQStyleOption( x, y, w, h ) );
// work around older styles that don't implement the combobox
// listbox popup subcontrol
if ( rect.isNull() )
@@ -198,13 +198,13 @@ void K3bFileTreeComboBox::popdown()
{
m_fileTreeView->hide();
d->poppedUp = false;
- repaint(); // repaint the arrow
+ tqrepaint(); // tqrepaint the arrow
}
void K3bFileTreeComboBox::slotGoUrl()
{
- QString p = currentText();
+ TQString p = currentText();
// check for a media url or a device string
if( K3bDevice::Device* dev = K3b::urlToDevice( p ) ) {
@@ -213,10 +213,10 @@ void K3bFileTreeComboBox::slotGoUrl()
}
// check for our own internal format
- else if( p.contains("/dev/") ) {
- int pos1 = p.findRev('(');
- int pos2 = p.findRev(')');
- QString devStr = p.mid( pos1+1, pos2-pos1-1 );
+ else if( p.tqcontains("/dev/") ) {
+ int pos1 = p.tqfindRev('(');
+ int pos2 = p.tqfindRev(')');
+ TQString devStr = p.mid( pos1+1, pos2-pos1-1 );
if( K3bDevice::Device* dev = k3bcore->deviceManager()->findDevice( devStr ) ) {
emit deviceExecuted( dev );
return;
@@ -234,18 +234,18 @@ void K3bFileTreeComboBox::slotGoUrl()
// TODO: move this to k3bglobals
// to expand another user's home dir we need a tilde followed by a user name
- static QRegExp someUsersHomeDir( "\\~([^/]+)" );
+ static TQRegExp someUsersHomeDir( "\\~([^/]+)" );
int pos = 0;
while( ( pos = someUsersHomeDir.search( p, pos ) ) != -1 ) {
KUser user( someUsersHomeDir.cap(1) );
if( user.isValid() )
- p.replace( pos, someUsersHomeDir.cap(1).length() + 1, user.homeDir() );
+ p.tqreplace( pos, someUsersHomeDir.cap(1).length() + 1, user.homeDir() );
else
++pos; // skip this ~
}
// now replace the unmatched tildes with our home dir
- p.replace( "~", K3b::prepareDir( QDir::homeDirPath() ) );
+ p.tqreplace( "~", K3b::prepareDir( TQDir::homeDirPath() ) );
lineEdit()->setText( p );
@@ -255,34 +255,34 @@ void K3bFileTreeComboBox::slotGoUrl()
}
-bool K3bFileTreeComboBox::eventFilter( QObject* o, QEvent* e )
+bool K3bFileTreeComboBox::eventFilter( TQObject* o, TQEvent* e )
{
if( dynamic_cast<K3bFileTreeView*>(o) == m_fileTreeView ) {
- if( e->type() == QEvent::DragLeave ) {
+ if( e->type() == TQEvent::DragLeave ) {
// the user dragged a dir from the filetree
// now
popdown();
return true;
}
- else if( e->type() == QEvent::KeyPress ) {
- QKeyEvent *k = (QKeyEvent *)e;
- if( k->key() == Qt::Key_Escape ) {
+ else if( e->type() == TQEvent::KeyPress ) {
+ TQKeyEvent *k = (TQKeyEvent *)e;
+ if( k->key() == TQt::Key_Escape ) {
popdown();
return true;
}
}
- else if( e->type() == QEvent::MouseButtonPress ) {
- QMouseEvent* me = (QMouseEvent*)e;
- if ( !m_fileTreeView->rect().contains( me->pos() ) ) {
- QRect arrowRect = style().querySubControlMetrics( QStyle::CC_ComboBox, this,
- QStyle::SC_ComboBoxArrow);
- arrowRect = QStyle::visualRect(arrowRect, this);
+ else if( e->type() == TQEvent::MouseButtonPress ) {
+ TQMouseEvent* me = (TQMouseEvent*)e;
+ if ( !TQT_TQRECT_OBJECT(m_fileTreeView->rect()).tqcontains( me->pos() ) ) {
+ TQRect arrowRect = tqstyle().querySubControlMetrics( TQStyle::CC_ComboBox, this,
+ TQStyle::SC_ComboBoxArrow);
+ arrowRect = TQStyle::tqvisualRect(arrowRect, this);
// Correction for motif style, where arrow is smaller
// and thus has a rect that doesn't fit the button.
- arrowRect.setHeight( QMAX( height() - (2 * arrowRect.y()), arrowRect.height() ) );
+ arrowRect.setHeight( TQMAX( height() - (2 * arrowRect.y()), arrowRect.height() ) );
- if ( arrowRect.contains( mapFromGlobal(me->globalPos()) ) ) {
+ if ( arrowRect.tqcontains( mapFromGlobal(me->globalPos()) ) ) {
d->ignoreNextMouseClick = true; // in the case we hit the arrow button
}
popdown();
@@ -297,90 +297,90 @@ bool K3bFileTreeComboBox::eventFilter( QObject* o, QEvent* e )
}
-void K3bFileTreeComboBox::mousePressEvent( QMouseEvent* e )
+void K3bFileTreeComboBox::mousePressEvent( TQMouseEvent* e )
{
// mainly from qcombobox.cpp
- if ( e->button() != LeftButton )
+ if ( e->button() != Qt::LeftButton )
return;
if ( d->ignoreNextMouseClick ) {
d->ignoreNextMouseClick = FALSE;
return;
}
- QRect arrowRect = style().querySubControlMetrics( QStyle::CC_ComboBox, this,
- QStyle::SC_ComboBoxArrow);
- arrowRect = QStyle::visualRect(arrowRect, this);
+ TQRect arrowRect = tqstyle().querySubControlMetrics( TQStyle::CC_ComboBox, this,
+ TQStyle::SC_ComboBoxArrow);
+ arrowRect = TQStyle::tqvisualRect(arrowRect, this);
// Correction for motif style, where arrow is smaller
// and thus has a rect that doesn't fit the button.
- arrowRect.setHeight( QMAX( height() - (2 * arrowRect.y()), arrowRect.height() ) );
+ arrowRect.setHeight( TQMAX( height() - (2 * arrowRect.y()), arrowRect.height() ) );
- if ( arrowRect.contains( e->pos() ) ) {
+ if ( arrowRect.tqcontains( e->pos() ) ) {
popup();
- repaint( FALSE );
+ tqrepaint( FALSE );
}
}
-void K3bFileTreeComboBox::keyPressEvent( QKeyEvent* e )
+void K3bFileTreeComboBox::keyPressEvent( TQKeyEvent* e )
{
- if( e->key() == Qt::Key_Escape ) {
+ if( e->key() == TQt::Key_Escape ) {
popdown();
}
KComboBox::keyPressEvent(e);
}
-void K3bFileTreeComboBox::paintEvent( QPaintEvent* )
+void K3bFileTreeComboBox::paintEvent( TQPaintEvent* )
{
// a lot of code from qcombobox.cpp
// we only need this since there is no way to change the status of the arrow-button
- QPainter p( this );
- const QColorGroup & g = colorGroup();
+ TQPainter p( this );
+ const TQColorGroup & g = tqcolorGroup();
p.setPen(g.text());
- QStyle::SFlags flags = QStyle::Style_Default;
+ TQStyle::SFlags flags = TQStyle::Style_Default;
if (isEnabled())
- flags |= QStyle::Style_Enabled;
+ flags |= TQStyle::Style_Enabled;
if (hasFocus())
- flags |= QStyle::Style_HasFocus;
+ flags |= TQStyle::Style_HasFocus;
if ( width() < 5 || height() < 5 ) {
qDrawShadePanel( &p, rect(), g, FALSE, 2,
- &g.brush( QColorGroup::Button ) );
+ &g.brush( TQColorGroup::Button ) );
return;
}
- // bool reverse = QApplication::reverseLayout();
+ // bool reverse = TQApplication::reverseLayout();
- style().drawComplexControl( QStyle::CC_ComboBox, &p, this, rect(), g,
- flags, QStyle::SC_All,
+ tqstyle().tqdrawComplexControl( TQStyle::CC_ComboBox, &p, this, rect(), g,
+ flags, TQStyle::SC_All,
(d->poppedUp ?
- QStyle::SC_ComboBoxArrow :
- QStyle::SC_None ));
+ TQStyle::SC_ComboBoxArrow :
+ TQStyle::SC_None ));
- QRect re = style().querySubControlMetrics( QStyle::CC_ComboBox, this,
- QStyle::SC_ComboBoxEditField );
- re = QStyle::visualRect(re, this);
+ TQRect re = tqstyle().querySubControlMetrics( TQStyle::CC_ComboBox, this,
+ TQStyle::SC_ComboBoxEditField );
+ re = TQStyle::tqvisualRect(re, this);
p.setClipRect( re );
-// QListBoxItem * item = listBox()->item( 0 );
+// TQListBoxItem * item = listBox()->item( 0 );
// if ( item ) {
-// // we calculate the QListBoxTexts height (ignoring strut)
+// // we calculate the TQListBoxTexts height (ignoring strut)
// int itemh = d->listBox()->fontMetrics().lineSpacing() + 2;
// p.translate( re.x(), re.y() + (re.height() - itemh)/2 );
// item->paint( &p );
// }
// } else if ( d->listBox() && d->listBox()->item( 0 ) ) {
p.setClipping( FALSE );
- QListBoxItem * item = listBox()->item( 0 );
- const QPixmap *pix = item->pixmap();
+ TQListBoxItem * item = listBox()->item( 0 );
+ const TQPixmap *pix = item->pixmap();
if ( pix ) {
p.fillRect( re.x(), re.y(), pix->width() + 4, re.height(),
- colorGroup().brush( QColorGroup::Base ) );
+ tqcolorGroup().brush( TQColorGroup::Base ) );
p.drawPixmap( re.x() + 2, re.y() +
( re.height() - pix->height() ) / 2, *pix );
}
diff --git a/src/k3bfiletreecombobox.h b/src/k3bfiletreecombobox.h
index 50bc683..9e4af1f 100644
--- a/src/k3bfiletreecombobox.h
+++ b/src/k3bfiletreecombobox.h
@@ -19,10 +19,10 @@
#include <kcombobox.h>
class K3bFileTreeView;
-class QEvent;
-class QKeyEvent;
-class QMouseEvent;
-class QPaintEvent;
+class TQEvent;
+class TQKeyEvent;
+class TQMouseEvent;
+class TQPaintEvent;
namespace K3bDevice {
class Device;
@@ -31,16 +31,17 @@ namespace K3bDevice {
class K3bFileTreeComboBox : public KComboBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bFileTreeComboBox( QWidget* parent = 0, const char* name = 0 );
+ K3bFileTreeComboBox( TQWidget* tqparent = 0, const char* name = 0 );
~K3bFileTreeComboBox();
void popup();
void popdown();
void setCurrentItem( int );
- void setCurrentText( const QString& );
+ void setCurrentText( const TQString& );
public slots:
void setDevice( K3bDevice::Device* );
@@ -56,13 +57,13 @@ class K3bFileTreeComboBox : public KComboBox
void slotUrlExecuted( const KURL& url );
protected:
- bool eventFilter( QObject*, QEvent* );
- void keyPressEvent( QKeyEvent* );
- void mousePressEvent( QMouseEvent* );
- void paintEvent( QPaintEvent* );
+ bool eventFilter( TQObject*, TQEvent* );
+ void keyPressEvent( TQKeyEvent* );
+ void mousePressEvent( TQMouseEvent* );
+ void paintEvent( TQPaintEvent* );
private:
- void setEditText( const QPixmap& pix, const QString& t );
+ void setEditText( const TQPixmap& pix, const TQString& t );
class Private;
Private* d;
diff --git a/src/k3bfiletreeview.cpp b/src/k3bfiletreeview.cpp
index 36c86c3..ce91619 100644
--- a/src/k3bfiletreeview.cpp
+++ b/src/k3bfiletreeview.cpp
@@ -35,24 +35,24 @@
#include <kapplication.h>
#include <kglobalsettings.h>
-#include <qdir.h>
-#include <qevent.h>
-#include <qdragobject.h>
-#include <qcursor.h>
-#include <qnamespace.h>
-#include <qmap.h>
-#include <qptrdict.h>
-#include <qpainter.h>
-#include <qfont.h>
-#include <qstyle.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqdir.h>
+#include <tqevent.h>
+#include <tqdragobject.h>
+#include <tqcursor.h>
+#include <tqnamespace.h>
+#include <tqmap.h>
+#include <tqptrdict.h>
+#include <tqpainter.h>
+#include <tqfont.h>
+#include <tqstyle.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
K3bDeviceBranch::K3bDeviceBranch( KFileTreeView* view, K3bDevice::Device* dev, KFileTreeViewItem* item )
: KFileTreeBranch( view,
KURL( "media:/" + dev->blockDeviceName() ),
- QString("%1 - %2").arg(dev->vendor()).arg(dev->description()),
+ TQString("%1 - %2").tqarg(dev->vendor()).tqarg(dev->description()),
( dev->burner()
? SmallIcon("cdwriter_unmount")
: SmallIcon("cdrom_unmount") ),
@@ -67,8 +67,8 @@ K3bDeviceBranch::K3bDeviceBranch( KFileTreeView* view, K3bDevice::Device* dev, K
root()->setExpandable(false);
updateLabel();
- connect( k3bappcore->mediaCache(), SIGNAL(mediumChanged(K3bDevice::Device*)),
- this, SLOT(slotMediumChanged(K3bDevice::Device*)) );
+ connect( k3bappcore->mediaCache(), TQT_SIGNAL(mediumChanged(K3bDevice::Device*)),
+ this, TQT_SLOT(slotMediumChanged(K3bDevice::Device*)) );
}
@@ -98,14 +98,14 @@ void K3bDeviceBranch::setCurrent( bool c )
void K3bDeviceBranch::updateLabel()
{
if( m_showBlockDeviceName )
- setName( QString("%1 %2 (%3)")
- .arg(m_device->vendor())
- .arg(m_device->description())
- .arg(m_device->blockDeviceName()) );
+ setName( TQString("%1 %2 (%3)")
+ .tqarg(m_device->vendor())
+ .tqarg(m_device->description())
+ .tqarg(m_device->blockDeviceName()) );
else
- setName( QString("%1 %2")
- .arg(m_device->vendor())
- .arg(m_device->description()) );
+ setName( TQString("%1 %2")
+ .tqarg(m_device->vendor())
+ .tqarg(m_device->description()) );
if( k3bappcore->mediaCache() ) {
root()->setMultiLinesEnabled( true );
@@ -135,8 +135,8 @@ void K3bDeviceBranch::showBlockDeviceName( bool b )
K3bFileTreeBranch::K3bFileTreeBranch( KFileTreeView* view,
const KURL& url,
- const QString& name,
- const QPixmap& pix,
+ const TQString& name,
+ const TQPixmap& pix,
bool showHidden,
KFileTreeViewItem* item )
: KFileTreeBranch( view, url, name, pix, showHidden,
@@ -151,10 +151,10 @@ K3bFileTreeBranch::K3bFileTreeBranch( KFileTreeView* view,
-K3bDeviceBranchViewItem::K3bDeviceBranchViewItem( KFileTreeViewItem* parent,
+K3bDeviceBranchViewItem::K3bDeviceBranchViewItem( KFileTreeViewItem* tqparent,
K3bDevice::Device* dev,
K3bDeviceBranch* branch )
- : KFileTreeViewItem( parent,
+ : KFileTreeViewItem( tqparent,
new KFileItem( KURL( "media:/" + dev->blockDeviceName() ),
"inode/directory",
S_IFDIR ),
@@ -165,10 +165,10 @@ K3bDeviceBranchViewItem::K3bDeviceBranchViewItem( KFileTreeViewItem* parent,
}
-K3bDeviceBranchViewItem::K3bDeviceBranchViewItem( KFileTreeView* parent,
+K3bDeviceBranchViewItem::K3bDeviceBranchViewItem( KFileTreeView* tqparent,
K3bDevice::Device* dev,
K3bDeviceBranch* branch )
- : KFileTreeViewItem( parent,
+ : KFileTreeViewItem( tqparent,
new KFileItem( KURL( "media:/" + dev->blockDeviceName() ),
"inode/directory",
S_IFDIR ),
@@ -182,21 +182,21 @@ K3bDeviceBranchViewItem::K3bDeviceBranchViewItem( KFileTreeView* parent,
void K3bDeviceBranchViewItem::setCurrent( bool c )
{
m_bCurrent = c;
- repaint();
+ tqrepaint();
}
-void K3bDeviceBranchViewItem::paintCell( QPainter* p, const QColorGroup& cg, int /* col */, int width, int align )
+void K3bDeviceBranchViewItem::paintCell( TQPainter* p, const TQColorGroup& cg, int /* col */, int width, int align )
{
p->save();
int xpos = 1;
int ypos = 1;
- QFontMetrics fm( p->fontMetrics() );
+ TQFontMetrics fm( p->fontMetrics() );
if( isSelected() ) {
p->fillRect( 0, 0, width, height(),
- cg.brush( QColorGroup::Highlight ) );
+ cg.brush( TQColorGroup::Highlight ) );
p->setPen( cg.highlightedText() );
}
else {
@@ -210,39 +210,39 @@ void K3bDeviceBranchViewItem::paintCell( QPainter* p, const QColorGroup& cg, int
}
if( m_bCurrent ) {
- QFont f( listView()->font() );
+ TQFont f( listView()->font() );
f.setBold( true );
p->setFont( f );
}
ypos += fm.ascent();
- QString line1 = text(0).left( text(0).find('\n') );
+ TQString line1 = text(0).left( text(0).tqfind('\n') );
p->drawText( xpos, ypos, line1 );
- QFont f( listView()->font() );
+ TQFont f( listView()->font() );
f.setItalic( true );
f.setBold( false );
f.setPointSize( f.pointSize() - 2 );
p->setFont( f );
ypos += p->fontMetrics().height() + 1;
- QString line2 = text(0).mid( text(0).find('\n')+1 );
+ TQString line2 = text(0).mid( text(0).tqfind('\n')+1 );
p->drawText( xpos - p->fontMetrics().leftBearing( line2[0] ), ypos, line2 );
- // from QListViewItem
+ // from TQListViewItem
if( isOpen() && childCount() ) {
int textheight = fm.size( align, text(0) ).height() + 2 * listView()->itemMargin();
- textheight = QMAX( textheight, QApplication::globalStrut().height() );
+ textheight = TQMAX( textheight, TQApplication::globalStrut().height() );
if ( textheight % 2 > 0 )
textheight++;
if ( textheight < height() ) {
int w = listView()->treeStepSize() / 2;
- listView()->style().drawComplexControl( QStyle::CC_ListView, p, listView(),
- QRect( 0, textheight, w + 1, height() - textheight + 1 ), cg,
- QStyle::Style_Enabled,
- QStyle::SC_ListViewExpand,
- (uint)QStyle::SC_All, QStyleOption( this ) );
+ listView()->tqstyle().tqdrawComplexControl( TQStyle::CC_ListView, p, listView(),
+ TQRect( 0, textheight, w + 1, height() - textheight + 1 ), cg,
+ TQStyle::Style_Enabled,
+ TQStyle::SC_ListViewExpand,
+ (uint)TQStyle::SC_All, TQStyleOption( this ) );
}
}
@@ -252,16 +252,16 @@ void K3bDeviceBranchViewItem::paintCell( QPainter* p, const QColorGroup& cg, int
int K3bDeviceBranchViewItem::widthHint() const
{
- QFont f( listView()->font() );
+ TQFont f( listView()->font() );
if ( m_bCurrent ) {
f.setBold( true );
}
- int w = QFontMetrics(f).width( text(0).left( text(0).find('\n') ) );
+ int w = TQFontMetrics(f).width( text(0).left( text(0).tqfind('\n') ) );
f.setItalic( true );
f.setBold( false );
f.setPointSize( f.pointSize() - 2 );
- w = QMAX( w, QFontMetrics(f).width( text(0).mid( text(0).find('\n')+1 ) ) );
+ w = TQMAX( w, TQFontMetrics(f).width( text(0).mid( text(0).tqfind('\n')+1 ) ) );
w++; // see paintCell
@@ -272,26 +272,26 @@ int K3bDeviceBranchViewItem::widthHint() const
}
-QString K3bDeviceBranchViewItem::key( int column, bool ascending ) const
+TQString K3bDeviceBranchViewItem::key( int column, bool ascending ) const
{
return "0" + KFileTreeViewItem::key( column, ascending );
}
-K3bFileTreeViewItem::K3bFileTreeViewItem( KFileTreeViewItem* parent, KFileItem* item, KFileTreeBranch* branch )
- : KFileTreeViewItem( parent, item, branch )
+K3bFileTreeViewItem::K3bFileTreeViewItem( KFileTreeViewItem* tqparent, KFileItem* item, KFileTreeBranch* branch )
+ : KFileTreeViewItem( tqparent, item, branch )
{
}
-K3bFileTreeViewItem::K3bFileTreeViewItem( KFileTreeView* parent, KFileItem* item, KFileTreeBranch* branch )
- : KFileTreeViewItem( parent, item, branch )
+K3bFileTreeViewItem::K3bFileTreeViewItem( KFileTreeView* tqparent, KFileItem* item, KFileTreeBranch* branch )
+ : KFileTreeViewItem( tqparent, item, branch )
{
}
-QString K3bFileTreeViewItem::key( int column, bool ascending ) const
+TQString K3bFileTreeViewItem::key( int column, bool ascending ) const
{
return "1" + KFileTreeViewItem::key( column, ascending );
}
@@ -300,26 +300,26 @@ QString K3bFileTreeViewItem::key( int column, bool ascending ) const
class K3bDeviceTreeToolTip : public K3bToolTip
{
public:
- K3bDeviceTreeToolTip( QWidget* parent, K3bFileTreeView* lv );
+ K3bDeviceTreeToolTip( TQWidget* tqparent, K3bFileTreeView* lv );
- void maybeTip( const QPoint &pos );
+ void maybeTip( const TQPoint &pos );
private:
K3bFileTreeView* m_view;
};
-K3bDeviceTreeToolTip::K3bDeviceTreeToolTip( QWidget* parent, K3bFileTreeView* lv )
- : K3bToolTip( parent ),
+K3bDeviceTreeToolTip::K3bDeviceTreeToolTip( TQWidget* tqparent, K3bFileTreeView* lv )
+ : K3bToolTip( tqparent ),
m_view( lv )
{
setTipTimeout( 500 );
}
-void K3bDeviceTreeToolTip::maybeTip( const QPoint& pos )
+void K3bDeviceTreeToolTip::maybeTip( const TQPoint& pos )
{
- if( !parentWidget() || !m_view )
+ if( !tqparentWidget() || !m_view )
return;
K3bDeviceBranchViewItem* item = dynamic_cast<K3bDeviceBranchViewItem*>( m_view->itemAt( pos ) );
@@ -328,24 +328,24 @@ void K3bDeviceTreeToolTip::maybeTip( const QPoint& pos )
K3bDevice::Device* dev = static_cast<K3bDeviceBranch*>( item->branch() )->device();
- QFrame* tooltip = new QFrame( parentWidget() );
- tooltip->setFrameStyle( QFrame::Panel | QFrame::Raised );
- tooltip->setFrameShape( QFrame::StyledPanel );
- QGridLayout* lay = new QGridLayout( tooltip, 2, 2, tooltip->frameWidth()*2 /*margin*/, 6 /*spacing*/ );
+ TQFrame* tooltip = new TQFrame( tqparentWidget() );
+ tooltip->setFrameStyle( TQFrame::Panel | TQFrame::Raised );
+ tooltip->setFrameShape( TQFrame::StyledPanel );
+ TQGridLayout* lay = new TQGridLayout( tooltip, 2, 2, tooltip->frameWidth()*2 /*margin*/, 6 /*spacing*/ );
- QString text = k3bappcore->mediaCache()->medium( dev ).longString();
- int detailsStart = text.find( "<p>", 3 );
- QString details = text.mid( detailsStart );
+ TQString text = k3bappcore->mediaCache()->medium( dev ).longString();
+ int detailsStart = text.tqfind( "<p>", 3 );
+ TQString details = text.mid( detailsStart );
text.truncate( detailsStart );
- QLabel* label = new QLabel( text, tooltip );
+ TQLabel* label = new TQLabel( text, tooltip );
label->setMargin( 9 );
lay->addMultiCellWidget( label, 0, 0, 0, 1 );
- label = new QLabel( details, tooltip );
+ label = new TQLabel( details, tooltip );
label->setMargin( 9 );
- label->setAlignment( Qt::Vertical );
+ label->tqsetAlignment( Qt::Vertical );
lay->addMultiCellWidget( label, 1, 2, 0, 0 );
- label = new QLabel( tooltip );
+ label = new TQLabel( tooltip );
lay->addWidget( label, 2, 1 );
lay->setColStretch( 0, 1 );
@@ -374,7 +374,7 @@ void K3bDeviceTreeToolTip::maybeTip( const QPoint& pos )
}
// the tooltip will take care of deleting the widget
- tip( m_view->itemRect( item ), tooltip );
+ tip( m_view->tqitemRect( item ), tooltip );
}
@@ -387,8 +387,8 @@ public:
currentDeviceBranch(0) {
}
- QPtrDict<K3bDeviceBranch> deviceBranchDict;
- QMap<KFileTreeBranch*, K3bDevice::Device*> branchDeviceMap;
+ TQPtrDict<K3bDeviceBranch> deviceBranchDict;
+ TQMap<KFileTreeBranch*, K3bDevice::Device*> branchDeviceMap;
K3bDevice::DeviceManager* deviceManager;
K3bDeviceBranch* currentDeviceBranch;
@@ -396,8 +396,8 @@ public:
K3bDeviceTreeToolTip* toolTip;
};
-K3bFileTreeView::K3bFileTreeView( QWidget *parent, const char *name )
- : KFileTreeView( parent, name )
+K3bFileTreeView::K3bFileTreeView( TQWidget *tqparent, const char *name )
+ : KFileTreeView( tqparent, name )
{
d = new Private();
@@ -405,7 +405,7 @@ K3bFileTreeView::K3bFileTreeView( QWidget *parent, const char *name )
addColumn( i18n("Directories") );
setDragEnabled( true );
- setAlternateBackground( QColor() );
+ setAlternateBackground( TQColor() );
setFullWidth(true);
// setRootIsDecorated(true);
setSorting(0);
@@ -413,15 +413,15 @@ K3bFileTreeView::K3bFileTreeView( QWidget *parent, const char *name )
m_dirOnlyMode = true;
m_menuEnabled = false;
- connect( this, SIGNAL(executed(QListViewItem*)), this, SLOT(slotItemExecuted(QListViewItem*)) );
- connect( this, SIGNAL(returnPressed(QListViewItem*)), this, SLOT(slotItemExecuted(QListViewItem*)) );
- connect( this, SIGNAL(contextMenu(KListView*, QListViewItem* , const QPoint& )),
- this, SLOT(slotContextMenu(KListView*, QListViewItem* , const QPoint& )) );
+ connect( this, TQT_SIGNAL(executed(TQListViewItem*)), this, TQT_SLOT(slotItemExecuted(TQListViewItem*)) );
+ connect( this, TQT_SIGNAL(returnPressed(TQListViewItem*)), this, TQT_SLOT(slotItemExecuted(TQListViewItem*)) );
+ connect( this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem* , const TQPoint& )),
+ this, TQT_SLOT(slotContextMenu(KListView*, TQListViewItem* , const TQPoint& )) );
// we always simulate the single click
slotSettingsChangedK3b(KApplication::SETTINGS_MOUSE);
if( kapp )
- connect( kapp, SIGNAL(settingsChanged(int)), SLOT(slotSettingsChangedK3b(int)) );
+ connect( kapp, TQT_SIGNAL(settingsChanged(int)), TQT_SLOT(slotSettingsChangedK3b(int)) );
initActions();
}
@@ -449,11 +449,11 @@ void K3bFileTreeView::initActions()
// m_devicePopupMenu = new KActionMenu( m_actionCollection, "device_popup_menu" );
// m_urlPopupMenu = new KActionMenu( m_actionCollection, "url_popup_menu" );
-// KAction* actionDiskInfo = new KAction( i18n("&Disk Info"), "info", 0, this, SLOT(slotShowDiskInfo()),
+// KAction* actionDiskInfo = new KAction( i18n("&Disk Info"), "info", 0, this, TQT_SLOT(slotShowDiskInfo()),
// m_actionCollection, "disk_info");
-// KAction* actionUnmount = new KAction( i18n("&Unmount"), "cdrom_unmount", 0, this, SLOT(slotUnmountDisk()),
+// KAction* actionUnmount = new KAction( i18n("&Unmount"), "cdrom_unmount", 0, this, TQT_SLOT(slotUnmountDisk()),
// m_actionCollection, "disk_unmount");
-// KAction* actionEject = new KAction( i18n("&Eject"), "", 0, this, SLOT(slotEjectDisk()),
+// KAction* actionEject = new KAction( i18n("&Eject"), "", 0, this, TQT_SLOT(slotEjectDisk()),
// m_actionCollection, "disk_eject");
// m_devicePopupMenu->insert( actionDiskInfo );
@@ -466,7 +466,7 @@ void K3bFileTreeView::initActions()
void K3bFileTreeView::addDefaultBranches()
{
- KURL home = KURL::fromPathOrURL( QDir::homeDirPath() );
+ KURL home = KURL::fromPathOrURL( TQDir::homeDirPath() );
KURL root = KURL( "file:/" );
KFileTreeBranch* treeBranch = addBranch( new K3bFileTreeBranch( this, root, i18n("Root"), SmallIcon("folder_red") ) );
@@ -480,7 +480,7 @@ void K3bFileTreeView::addCdDeviceBranches( K3bDevice::DeviceManager* dm )
kdDebug() << "(K3bFileTreeView::addCdDeviceBranches)" << endl;
// remove all previous added device branches
- for( QMap<KFileTreeBranch*, K3bDevice::Device*>::Iterator it = d->branchDeviceMap.begin();
+ for( TQMap<KFileTreeBranch*, K3bDevice::Device*>::Iterator it = d->branchDeviceMap.begin();
it != d->branchDeviceMap.end(); ++it ) {
removeBranch( it.key() );
}
@@ -489,7 +489,7 @@ void K3bFileTreeView::addCdDeviceBranches( K3bDevice::DeviceManager* dm )
d->branchDeviceMap.clear();
d->deviceBranchDict.clear();
- for( QPtrListIterator<K3bDevice::Device> it( dm->allDevices() ); *it; ++it )
+ for( TQPtrListIterator<K3bDevice::Device> it( dm->allDevices() ); *it; ++it )
addDeviceBranch( *it );
if( dm != d->deviceManager ) {
@@ -498,12 +498,12 @@ void K3bFileTreeView::addCdDeviceBranches( K3bDevice::DeviceManager* dm )
d->deviceManager = dm;
// make sure we get changes to the config
- connect( dm, SIGNAL(changed(K3bDevice::DeviceManager*)),
- this, SLOT(addCdDeviceBranches(K3bDevice::DeviceManager*)) );
+ connect( dm, TQT_SIGNAL(changed(K3bDevice::DeviceManager*)),
+ this, TQT_SLOT(addCdDeviceBranches(K3bDevice::DeviceManager*)) );
if( K3bAppDeviceManager* appDevM = dynamic_cast<K3bAppDeviceManager*>( dm ) )
- connect( appDevM, SIGNAL(currentDeviceChanged(K3bDevice::Device*)),
- this, SLOT(setCurrentDevice(K3bDevice::Device*)) );
+ connect( appDevM, TQT_SIGNAL(currentDeviceChanged(K3bDevice::Device*)),
+ this, TQT_SLOT(setCurrentDevice(K3bDevice::Device*)) );
}
K3bDevice::Device* currentDevice = k3bappcore->appDeviceManager()->currentDevice();
@@ -528,7 +528,7 @@ void K3bFileTreeView::addDeviceBranch( K3bDevice::Device* dev )
// search for an equal device
int equalCnt = 0;
K3bDeviceBranch* equalBranch = 0;
- for( QMap<KFileTreeBranch*, K3bDevice::Device*>::Iterator it = d->branchDeviceMap.begin();
+ for( TQMap<KFileTreeBranch*, K3bDevice::Device*>::Iterator it = d->branchDeviceMap.begin();
it != d->branchDeviceMap.end(); ++it ) {
K3bDevice::Device* itDev = it.data();
K3bDeviceBranch* itBranch = (K3bDeviceBranch*)it.key();
@@ -566,7 +566,7 @@ KFileTreeBranch* K3bFileTreeView::addBranch( KFileTreeBranch* branch )
}
-KFileTreeBranch* K3bFileTreeView::addBranch( const KURL& url, const QString& name, const QPixmap& pix, bool showHidden )
+KFileTreeBranch* K3bFileTreeView::addBranch( const KURL& url, const TQString& name, const TQPixmap& pix, bool showHidden )
{
KFileTreeBranch* newBranch = KFileTreeView::addBranch( url, name, pix, showHidden );
newBranch->setChildRecurse( false );
@@ -576,10 +576,10 @@ KFileTreeBranch* K3bFileTreeView::addBranch( const KURL& url, const QString& nam
}
-void K3bFileTreeView::slotItemExecuted( QListViewItem* item )
+void K3bFileTreeView::slotItemExecuted( TQListViewItem* item )
{
KFileTreeViewItem* treeItem = static_cast<KFileTreeViewItem*>(item);
- if( d->branchDeviceMap.contains( treeItem->branch() ) &&
+ if( d->branchDeviceMap.tqcontains( treeItem->branch() ) &&
treeItem == treeItem->branch()->root() ) {
K3bDevice::Device* dev = d->branchDeviceMap[treeItem->branch()];
k3bappcore->appDeviceManager()->setCurrentDevice( dev );
@@ -601,7 +601,7 @@ void K3bFileTreeView::followUrl( const KURL& url )
// TODO: first try the current branch
KFileTreeBranchIterator it( branches() );
for( ; *it; ++it ) {
- if( !d->branchDeviceMap.contains( *it ) )
+ if( !d->branchDeviceMap.tqcontains( *it ) )
if( KFileTreeViewItem* item = (*it)->findTVIByURL( url ) ) {
setCurrentItem( item );
setSelected(item, true);
@@ -612,13 +612,13 @@ void K3bFileTreeView::followUrl( const KURL& url )
}
-void K3bFileTreeView::slotContextMenu( KListView*, QListViewItem* item, const QPoint& p )
+void K3bFileTreeView::slotContextMenu( KListView*, TQListViewItem* item, const TQPoint& p )
{
KFileTreeViewItem* treeItem = dynamic_cast<KFileTreeViewItem*>(item);
if( treeItem ) {
K3bDevice::Device* device = 0;
- QMap<KFileTreeBranch*, K3bDevice::Device*>::iterator devIt =
- d->branchDeviceMap.find( treeItem->branch() );
+ TQMap<KFileTreeBranch*, K3bDevice::Device*>::iterator devIt =
+ d->branchDeviceMap.tqfind( treeItem->branch() );
if( devIt != d->branchDeviceMap.end() )
device = devIt.data();
@@ -641,7 +641,7 @@ K3bDevice::Device* K3bFileTreeView::selectedDevice() const
{
KFileTreeViewItem* treeItem = dynamic_cast<KFileTreeViewItem*>(selectedItem());
if( treeItem ) {
- if( d->branchDeviceMap.contains( treeItem->branch() ) )
+ if( d->branchDeviceMap.tqcontains( treeItem->branch() ) )
return d->branchDeviceMap[treeItem->branch()];
}
return 0;
@@ -652,7 +652,7 @@ KURL K3bFileTreeView::selectedUrl() const
{
KFileTreeViewItem* treeItem = dynamic_cast<KFileTreeViewItem*>(selectedItem());
if( treeItem ) {
- if( !d->branchDeviceMap.contains( treeItem->branch() ) )
+ if( !d->branchDeviceMap.tqcontains( treeItem->branch() ) )
return treeItem->url();
}
return KURL();
@@ -684,7 +684,7 @@ void K3bFileTreeView::setSelectedDevice( K3bDevice::Device* dev )
K3bDeviceBranch* K3bFileTreeView::branch( K3bDevice::Device* dev )
{
- return d->deviceBranchDict.find( (void*)dev );
+ return d->deviceBranchDict.tqfind( (void*)dev );
}
@@ -693,19 +693,19 @@ void K3bFileTreeView::slotSettingsChangedK3b(int category)
// we force single click like konqueror does. This really should be done in KFileTreeView
if( category == KApplication::SETTINGS_MOUSE ) {
- disconnect(this, SIGNAL(mouseButtonClicked(int, QListViewItem*, const QPoint &, int)),
- this, SLOT(slotMouseButtonClickedK3b(int, QListViewItem*, const QPoint &, int)));
+ disconnect(this, TQT_SIGNAL(mouseButtonClicked(int, TQListViewItem*, const TQPoint &, int)),
+ this, TQT_SLOT(slotMouseButtonClickedK3b(int, TQListViewItem*, const TQPoint &, int)));
if( !KGlobalSettings::singleClick() )
- connect(this, SIGNAL(mouseButtonClicked(int, QListViewItem*, const QPoint &, int)),
- this, SLOT(slotMouseButtonClickedK3b(int, QListViewItem*, const QPoint &, int)));
+ connect(this, TQT_SIGNAL(mouseButtonClicked(int, TQListViewItem*, const TQPoint &, int)),
+ this, TQT_SLOT(slotMouseButtonClickedK3b(int, TQListViewItem*, const TQPoint &, int)));
}
}
-void K3bFileTreeView::slotMouseButtonClickedK3b( int btn, QListViewItem *item, const QPoint &pos, int c )
+void K3bFileTreeView::slotMouseButtonClickedK3b( int btn, TQListViewItem *item, const TQPoint &pos, int c )
{
- if( (btn == LeftButton) && item )
+ if( (btn == Qt::LeftButton) && item )
emitExecute(item, pos, c);
}
@@ -716,13 +716,13 @@ void K3bFileTreeView::updateMinimumWidth()
// only handle the device branches, we don't care about the folders.
//
int w = 0;
- for( QMap<KFileTreeBranch*, K3bDevice::Device*>::Iterator it = d->branchDeviceMap.begin();
+ for( TQMap<KFileTreeBranch*, K3bDevice::Device*>::Iterator it = d->branchDeviceMap.begin();
it != d->branchDeviceMap.end(); ++it ) {
- w = QMAX( w, static_cast<K3bDeviceBranchViewItem*>( it.key()->root() )->widthHint() );
+ w = TQMAX( w, static_cast<K3bDeviceBranchViewItem*>( it.key()->root() )->widthHint() );
}
// width of the items + scrollbar width + the frame + a little eyecandy spacing
- setMinimumWidth( w + verticalScrollBar()->sizeHint().width() + 2*frameWidth() + 2 );
+ setMinimumWidth( w + verticalScrollBar()->tqsizeHint().width() + 2*frameWidth() + 2 );
}
#include "k3bfiletreeview.moc"
diff --git a/src/k3bfiletreeview.h b/src/k3bfiletreeview.h
index 31a25c4..b44af66 100644
--- a/src/k3bfiletreeview.h
+++ b/src/k3bfiletreeview.h
@@ -23,9 +23,9 @@
class KFileTreeBranch;
class KActionCollection;
class KActionMenu;
-class QPoint;
-class QDropEvent;
-class QDragEnterEvent;
+class TQPoint;
+class TQDropEvent;
+class TQDragEnterEvent;
namespace K3bDevice {
class Device;
@@ -40,6 +40,7 @@ namespace KIO {
class K3bDeviceBranch : public KFileTreeBranch
{
Q_OBJECT
+ TQ_OBJECT
public:
K3bDeviceBranch( KFileTreeView*, K3bDevice::Device* dev, KFileTreeViewItem* item = 0 );
@@ -72,8 +73,8 @@ class K3bFileTreeBranch : public KFileTreeBranch
public:
K3bFileTreeBranch( KFileTreeView*,
const KURL& url,
- const QString& name,
- const QPixmap& pix,
+ const TQString& name,
+ const TQPixmap& pix,
bool showHidden = false,
KFileTreeViewItem* item = 0 );
};
@@ -85,11 +86,11 @@ class K3bDeviceBranchViewItem : public KFileTreeViewItem
K3bDeviceBranchViewItem( KFileTreeViewItem*, K3bDevice::Device*, K3bDeviceBranch* );
K3bDeviceBranchViewItem( KFileTreeView*, K3bDevice::Device*, K3bDeviceBranch* );
- QString key( int column, bool ascending ) const;
+ TQString key( int column, bool ascending ) const;
void setCurrent( bool );
- void paintCell( QPainter* p, const QColorGroup& cg, int col, int width, int align );
+ void paintCell( TQPainter* p, const TQColorGroup& cg, int col, int width, int align );
int widthHint() const;
@@ -106,7 +107,7 @@ class K3bFileTreeViewItem : public KFileTreeViewItem
K3bFileTreeViewItem( KFileTreeViewItem*, KFileItem*, KFileTreeBranch* );
K3bFileTreeViewItem( KFileTreeView *, KFileItem*, KFileTreeBranch* );
- QString key( int column, bool ascending ) const;
+ TQString key( int column, bool ascending ) const;
};
@@ -116,14 +117,15 @@ class K3bFileTreeViewItem : public KFileTreeViewItem
class K3bFileTreeView : public KFileTreeView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bFileTreeView( QWidget *parent = 0, const char *name = 0 );
+ K3bFileTreeView( TQWidget *tqparent = 0, const char *name = 0 );
~K3bFileTreeView();
virtual KFileTreeBranch* addBranch( KFileTreeBranch* );
- virtual KFileTreeBranch* addBranch( const KURL& url, const QString& name, const QPixmap& , bool showHidden = false );
+ virtual KFileTreeBranch* addBranch( const KURL& url, const TQString& name, const TQPixmap& , bool showHidden = false );
K3bDeviceBranch* branch( K3bDevice::Device* dev );
@@ -173,15 +175,15 @@ class K3bFileTreeView : public KFileTreeView
void deviceExecuted( K3bDevice::Device* dev );
/** only gets emitted if the menu is disabled */
- void contextMenu( K3bDevice::Device*, const QPoint& );
+ void contextMenu( K3bDevice::Device*, const TQPoint& );
/** only gets emitted if the menu is disabled */
- void contextMenu( const KURL& url, const QPoint& );
+ void contextMenu( const KURL& url, const TQPoint& );
private slots:
- void slotItemExecuted( QListViewItem* item );
- void slotContextMenu( KListView*, QListViewItem*, const QPoint& );
+ void slotItemExecuted( TQListViewItem* item );
+ void slotContextMenu( KListView*, TQListViewItem*, const TQPoint& );
void slotSettingsChangedK3b(int category);
- void slotMouseButtonClickedK3b( int btn, QListViewItem *item, const QPoint &pos, int c );
+ void slotMouseButtonClickedK3b( int btn, TQListViewItem *item, const TQPoint &pos, int c );
private:
void initActions();
diff --git a/src/k3bfileview.cpp b/src/k3bfileview.cpp
index 04ce435..f423b96 100644
--- a/src/k3bfileview.cpp
+++ b/src/k3bfileview.cpp
@@ -20,13 +20,13 @@
#include "k3btoolbox.h"
#include "k3bapplication.h"
-#include <qwidget.h>
-#include <qdragobject.h>
-#include <qlayout.h>
-#include <qdir.h>
-#include <qvbox.h>
-#include <qlabel.h>
-#include <qtoolbutton.h>
+#include <tqwidget.h>
+#include <tqdragobject.h>
+#include <tqlayout.h>
+#include <tqdir.h>
+#include <tqvbox.h>
+#include <tqlabel.h>
+#include <tqtoolbutton.h>
#include <kfiledetailview.h>
#include <klistview.h>
@@ -43,8 +43,8 @@
#include <kprogress.h>
-K3bFileView::K3bFileView(QWidget *parent, const char *name )
- : K3bContentsView( false, parent, name)
+K3bFileView::K3bFileView(TQWidget *tqparent, const char *name )
+ : K3bContentsView( false, tqparent, name)
{
setupGUI();
}
@@ -63,15 +63,15 @@ KActionCollection* K3bFileView::actionCollection() const
void K3bFileView::setupGUI()
{
- QVBoxLayout* layout = new QVBoxLayout( this );
- // layout->setAutoAdd( true );
+ TQVBoxLayout* tqlayout = new TQVBoxLayout( this );
+ // tqlayout->setAutoAdd( true );
- m_dirOp = new K3bDirOperator( KURL::fromPathOrURL(QDir::home().absPath()), this );
+ m_dirOp = new K3bDirOperator( KURL::fromPathOrURL(TQDir::home().absPath()), this );
m_toolBox = new K3bToolBox( this );
- layout->addWidget( m_toolBox );
- layout->addWidget( m_dirOp );
- layout->setStretchFactor( m_dirOp, 1 );
+ tqlayout->addWidget( m_toolBox );
+ tqlayout->addWidget( m_dirOp );
+ tqlayout->setStretchFactor( m_dirOp, 1 );
// setup actions
KAction* actionHome = m_dirOp->actionCollection()->action("home");
@@ -100,7 +100,7 @@ void K3bFileView::setupGUI()
m_toolBox->addWidget( m_dirOp->progressBar() );
m_filterWidget->setEditable( true );
- QString filter = i18n("*|All Files");
+ TQString filter = i18n("*|All Files");
filter += "\n" + i18n("audio/x-mp3 audio/x-wav application/x-ogg |Sound Files");
filter += "\n" + i18n("audio/x-wav |Wave Sound Files");
filter += "\n" + i18n("audio/x-mp3 |MP3 Sound Files");
@@ -108,16 +108,16 @@ void K3bFileView::setupGUI()
filter += "\n" + i18n("video/mpeg |MPEG Video Files");
m_filterWidget->setFilter(filter);
- connect( m_filterWidget, SIGNAL(filterChanged()), SLOT(slotFilterChanged()) );
+ connect( m_filterWidget, TQT_SIGNAL(filterChanged()), TQT_SLOT(slotFilterChanged()) );
- connect( m_dirOp, SIGNAL(fileHighlighted(const KFileItem*)), this, SLOT(slotFileHighlighted(const KFileItem*)) );
- connect( m_dirOp, SIGNAL(urlEntered(const KURL&)), this, SIGNAL(urlEntered(const KURL&)) );
- connect( m_dirOp, SIGNAL(fileSelected(const KFileItem*)), m_dirOp, SLOT(slotAddFilesToProject()) );
+ connect( m_dirOp, TQT_SIGNAL(fileHighlighted(const KFileItem*)), this, TQT_SLOT(slotFileHighlighted(const KFileItem*)) );
+ connect( m_dirOp, TQT_SIGNAL(urlEntered(const KURL&)), this, TQT_SIGNAL(urlEntered(const KURL&)) );
+ connect( m_dirOp, TQT_SIGNAL(fileSelected(const KFileItem*)), m_dirOp, TQT_SLOT(slotAddFilesToProject()) );
slotFileHighlighted(0);
}
-void K3bFileView::setDir( const QString& dir )
+void K3bFileView::setDir( const TQString& dir )
{
KURL url;
url.setPath(dir);
@@ -147,11 +147,11 @@ void K3bFileView::slotFileHighlighted( const KFileItem* )
void K3bFileView::slotFilterChanged()
{
- QString filter = m_filterWidget->currentFilter();
+ TQString filter = m_filterWidget->currentFilter();
m_dirOp->clearFilter();
- if( filter.find( '/' ) > -1 ) {
- QStringList types = QStringList::split( " ", filter );
+ if( filter.tqfind( '/' ) > -1 ) {
+ TQStringList types = TQStringList::split( " ", filter );
types.prepend( "inode/directory" );
m_dirOp->setMimeFilter( types );
}
diff --git a/src/k3bfileview.h b/src/k3bfileview.h
index f89d3b8..923125a 100644
--- a/src/k3bfileview.h
+++ b/src/k3bfileview.h
@@ -22,7 +22,7 @@
class K3bDirOperator;
-class QDragObject;
+class TQDragObject;
class KURL;
class KFileFilterCombo;
class KFileItem;
@@ -37,9 +37,10 @@ class K3bToolBox;
class K3bFileView : public K3bContentsView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bFileView(QWidget *parent=0, const char *name=0);
+ K3bFileView(TQWidget *tqparent=0, const char *name=0);
~K3bFileView();
void setUrl( const KURL &url, bool forward = true );
@@ -53,7 +54,7 @@ class K3bFileView : public K3bContentsView
void urlEntered( const KURL& url );
public slots:
- void setDir( const QString& );
+ void setDir( const TQString& );
void saveConfig( KConfig* c );
void readConfig( KConfig* c );
void setAutoUpdate( bool );
diff --git a/src/k3bfirstrun.cpp b/src/k3bfirstrun.cpp
index 23a285a..37eee7a 100644
--- a/src/k3bfirstrun.cpp
+++ b/src/k3bfirstrun.cpp
@@ -22,11 +22,11 @@
#include <kiconloader.h>
#include <kconfig.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
-void K3bFirstRun::run( QWidget* parent )
+void K3bFirstRun::run( TQWidget* tqparent )
{
if( !k3bcore->config()->readBoolEntry( "First run", true ) )
return;
@@ -41,18 +41,18 @@ void K3bFirstRun::run( QWidget* parent )
if( si.allInstalled() )
return;
- K3bFirstRun dlg( parent );
- if( dlg.exec() == QDialog::Accepted )
- si.install( parent );
+ K3bFirstRun dlg( tqparent );
+ if( dlg.exec() == TQDialog::Accepted )
+ si.install( tqparent );
}
-K3bFirstRun::K3bFirstRun( QWidget* parent )
+K3bFirstRun::K3bFirstRun( TQWidget* tqparent )
: KDialogBase( Plain,
i18n("First Run"),
Ok|Cancel,
Ok,
- parent,
+ tqparent,
0,
true,
true )
@@ -60,15 +60,15 @@ K3bFirstRun::K3bFirstRun( QWidget* parent )
setButtonOK( i18n("Enable Konqueror integration") );
setButtonCancel( i18n("No Konqueror integration") );
- QFrame* plain = plainPage();
- QLabel* label = new QLabel( i18n("<p>K3b can integrate itself into Konqueror. This integration "
+ TQFrame* plain = plainPage();
+ TQLabel* label = new TQLabel( i18n("<p>K3b can integrate itself into Konqueror. This integration "
"allows to start K3b from the context menu in the file manager."
"<p><em>The Konqueror integration can always be disabled and "
"enabled again from the K3b settings.</em>"), plain );
- QLabel* pixLabel = new QLabel( plain );
+ TQLabel* pixLabel = new TQLabel( plain );
pixLabel->setPixmap( DesktopIcon( "konqueror" ) );
- QHBoxLayout* lay = new QHBoxLayout( plain );
+ TQHBoxLayout* lay = new TQHBoxLayout( plain );
lay->setMargin( 0 );
lay->setSpacing( spacingHint() );
lay->addWidget( pixLabel );
diff --git a/src/k3bfirstrun.h b/src/k3bfirstrun.h
index d59c931..d67f688 100644
--- a/src/k3bfirstrun.h
+++ b/src/k3bfirstrun.h
@@ -22,12 +22,13 @@
class K3bFirstRun : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- static void run( QWidget* parent = 0 );
+ static void run( TQWidget* tqparent = 0 );
private:
- K3bFirstRun( QWidget* parent );
+ K3bFirstRun( TQWidget* tqparent );
~K3bFirstRun();
};
diff --git a/src/k3bflatbutton.cpp b/src/k3bflatbutton.cpp
index 808de32..9200114 100644
--- a/src/k3bflatbutton.cpp
+++ b/src/k3bflatbutton.cpp
@@ -21,22 +21,22 @@
#include <kiconloader.h>
#include <kglobal.h>
-#include <qpainter.h>
-#include <qtooltip.h>
-#include <qfontmetrics.h>
-#include <qpixmap.h>
+#include <tqpainter.h>
+#include <tqtooltip.h>
+#include <tqfontmetrics.h>
+#include <tqpixmap.h>
-K3bFlatButton::K3bFlatButton( QWidget *parent, const char *name )
- : QFrame( parent, name/*, WNoAutoErase*/ ),
+K3bFlatButton::K3bFlatButton( TQWidget *tqparent, const char *name )
+ : TQFrame( tqparent, name/*, WNoAutoErase*/ ),
m_pressed(false)
{
init();
}
-K3bFlatButton::K3bFlatButton( const QString& text, QWidget *parent, const char *name )
- : QFrame( parent, name/*, WNoAutoErase*/ ),
+K3bFlatButton::K3bFlatButton( const TQString& text, TQWidget *tqparent, const char *name )
+ : TQFrame( tqparent, name/*, WNoAutoErase*/ ),
m_pressed(false)
{
init();
@@ -44,16 +44,16 @@ K3bFlatButton::K3bFlatButton( const QString& text, QWidget *parent, const char *
}
-K3bFlatButton::K3bFlatButton( KAction* a, QWidget *parent, const char *name )
- : QFrame( parent, name/*, WNoAutoErase*/ ),
+K3bFlatButton::K3bFlatButton( KAction* a, TQWidget *tqparent, const char *name )
+ : TQFrame( tqparent, name/*, WNoAutoErase*/ ),
m_pressed(false)
{
init();
setText( a->text() );
- QToolTip::add( this, a->toolTip() );
+ TQToolTip::add( this, a->toolTip() );
setPixmap( KGlobal::iconLoader()->loadIcon( a->icon(), KIcon::NoGroup, 32 ) );
- connect( this, SIGNAL(clicked()), a, SLOT(activate()) );
+ connect( this, TQT_SIGNAL(clicked()), a, TQT_SLOT(activate()) );
}
@@ -64,15 +64,15 @@ void K3bFlatButton::init()
{
setHover(false);
setMargin(5);
- setFrameStyle( QFrame::Box|QFrame::Plain );
+ setFrameStyle( TQFrame::Box|TQFrame::Plain );
- connect( k3bappcore->themeManager(), SIGNAL(themeChanged()), this, SLOT(slotThemeChanged()) );
- connect( kapp, SIGNAL(appearanceChanged()), this, SLOT(slotThemeChanged()) );
+ connect( k3bappcore->themeManager(), TQT_SIGNAL(themeChanged()), this, TQT_SLOT(slotThemeChanged()) );
+ connect( kapp, TQT_SIGNAL(appearanceChanged()), this, TQT_SLOT(slotThemeChanged()) );
slotThemeChanged();
}
-void K3bFlatButton::setText( const QString& s )
+void K3bFlatButton::setText( const TQString& s )
{
m_text = s;
m_text.remove( '&' );
@@ -81,28 +81,28 @@ void K3bFlatButton::setText( const QString& s )
}
-void K3bFlatButton::setPixmap( const QPixmap& p )
+void K3bFlatButton::setPixmap( const TQPixmap& p )
{
m_pixmap = p;
update();
}
-void K3bFlatButton::enterEvent( QEvent* )
+void K3bFlatButton::enterEvent( TQEvent* )
{
setHover(true);
}
-void K3bFlatButton::leaveEvent( QEvent* )
+void K3bFlatButton::leaveEvent( TQEvent* )
{
setHover(false);
}
-void K3bFlatButton::mousePressEvent( QMouseEvent* e )
+void K3bFlatButton::mousePressEvent( TQMouseEvent* e )
{
- if( e->button() == QMouseEvent::LeftButton ) {
+ if( e->button() == Qt::LeftButton ) {
emit pressed();
m_pressed = true;
}
@@ -111,9 +111,9 @@ void K3bFlatButton::mousePressEvent( QMouseEvent* e )
}
-void K3bFlatButton::mouseReleaseEvent( QMouseEvent* e )
+void K3bFlatButton::mouseReleaseEvent( TQMouseEvent* e )
{
- if( e->button() == QMouseEvent::LeftButton ) {
+ if( e->button() == Qt::LeftButton ) {
if( m_pressed )
emit clicked();
m_pressed = false;
@@ -139,52 +139,52 @@ void K3bFlatButton::setHover( bool b )
}
-QSize K3bFlatButton::sizeHint() const
+TQSize K3bFlatButton::tqsizeHint() const
{
// height: pixmap + 5 spacing + font height + frame width
// width: max( pixmap, text) + frame width
- return QSize( QMAX( m_pixmap.width(), fontMetrics().width( m_text ) ) + frameWidth()*2,
+ return TQSize( TQMAX( m_pixmap.width(), fontMetrics().width( m_text ) ) + frameWidth()*2,
m_pixmap.height() + fontMetrics().height() + 5 + frameWidth()*2 );
}
-void K3bFlatButton::drawContents( QPainter* p )
+void K3bFlatButton::drawContents( TQPainter* p )
{
- QRect rect = contentsRect();
+ TQRect rect = contentsRect();
// if( m_hover )
// p->fillRect( rect, m_foreColor );
-// else if( parentWidget() ) {
-// QRect r( mapToParent( QPoint(lineWidth(), lineWidth()) ),
-// mapToParent( QPoint(width()-2*lineWidth(), height()-2*lineWidth() )) );
+// else if( tqparentWidget() ) {
+// TQRect r( mapToParent( TQPoint(lineWidth(), lineWidth()) ),
+// mapToParent( TQPoint(width()-2*lineWidth(), height()-2*lineWidth() )) );
-// parentWidget()->repaint( r );
+// tqparentWidget()->tqrepaint( r );
// }
p->save();
- QRect textRect = fontMetrics().boundingRect( m_text );
- int textX = QMAX( 0, ( rect.width() - textRect.width() ) / 2 );
+ TQRect textRect = fontMetrics().boundingRect( m_text );
+ int textX = TQMAX( 0, ( rect.width() - textRect.width() ) / 2 );
int textY = textRect.height();
if( !m_pixmap.isNull() ) {
p->translate( rect.left(), rect.top() );
- textX = QMAX( textX, (m_pixmap.width() - textRect.width()) / 2 );
+ textX = TQMAX( textX, (m_pixmap.width() - textRect.width()) / 2 );
textY += 5 + m_pixmap.height();
- int pixX = QMAX( QMAX( 0, (textRect.width() - m_pixmap.width()) / 2 ),
+ int pixX = TQMAX( TQMAX( 0, (textRect.width() - m_pixmap.width()) / 2 ),
( rect.width() - m_pixmap.width() ) / 2 );
p->drawPixmap( pixX, 0, m_pixmap );
p->drawText( textX, textY, m_text );
}
else
- p->drawText( rect, Qt::AlignCenter, m_text );
+ p->drawText( rect, TQt::AlignCenter, m_text );
p->restore();
}
-void K3bFlatButton::setColors( const QColor& fore, const QColor& back )
+void K3bFlatButton::setColors( const TQColor& fore, const TQColor& back )
{
m_foreColor = fore;
m_backColor = back;
diff --git a/src/k3bflatbutton.h b/src/k3bflatbutton.h
index a3dc97e..b3f97cf 100644
--- a/src/k3bflatbutton.h
+++ b/src/k3bflatbutton.h
@@ -16,36 +16,37 @@
#ifndef FLATBUTTON_H
#define FLATBUTTON_H
-#include <qframe.h>
-#include <qcolor.h>
-#include <qpixmap.h>
+#include <tqframe.h>
+#include <tqcolor.h>
+#include <tqpixmap.h>
-class QEvent;
-class QMouseEvent;
-class QPainter;
+class TQEvent;
+class TQMouseEvent;
+class TQPainter;
class KAction;
/**
@author Sebastian Trueg
*/
-class K3bFlatButton : public QFrame
+class K3bFlatButton : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bFlatButton( QWidget *parent = 0, const char *name = 0 );
- K3bFlatButton( const QString& text, QWidget *parent = 0, const char *name = 0 );
- K3bFlatButton( KAction*, QWidget *parent = 0, const char *name = 0 );
+ K3bFlatButton( TQWidget *tqparent = 0, const char *name = 0 );
+ K3bFlatButton( const TQString& text, TQWidget *tqparent = 0, const char *name = 0 );
+ K3bFlatButton( KAction*, TQWidget *tqparent = 0, const char *name = 0 );
~K3bFlatButton();
- QSize sizeHint() const;
+ TQSize tqsizeHint() const;
public slots:
- void setColors( const QColor& fore, const QColor& back );
- void setText( const QString& );
- void setPixmap( const QPixmap& );
+ void setColors( const TQColor& fore, const TQColor& back );
+ void setText( const TQString& );
+ void setPixmap( const TQPixmap& );
signals:
void pressed();
@@ -57,19 +58,19 @@ class K3bFlatButton : public QFrame
private:
void init();
- void mousePressEvent(QMouseEvent* e);
- void mouseReleaseEvent(QMouseEvent* e);
- void enterEvent( QEvent* );
- void leaveEvent( QEvent* );
- void drawContents( QPainter* );
+ void mousePressEvent(TQMouseEvent* e);
+ void mouseReleaseEvent(TQMouseEvent* e);
+ void enterEvent( TQEvent* );
+ void leaveEvent( TQEvent* );
+ void drawContents( TQPainter* );
void setHover( bool );
bool m_pressed;
- QColor m_backColor;
- QColor m_foreColor;
- QString m_text;
- QPixmap m_pixmap;
+ TQColor m_backColor;
+ TQColor m_foreColor;
+ TQString m_text;
+ TQPixmap m_pixmap;
bool m_hover;
};
diff --git a/src/k3binteractiondialog.cpp b/src/k3binteractiondialog.cpp
index 4784c7f..1dc7a0f 100644
--- a/src/k3binteractiondialog.cpp
+++ b/src/k3binteractiondialog.cpp
@@ -25,18 +25,18 @@
#include <k3btoolbutton.h>
#include <k3bmultichoicedialog.h>
-#include <qlabel.h>
-#include <qtoolbutton.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qstring.h>
-#include <qpoint.h>
-#include <qfont.h>
-#include <qpopupmenu.h>
-#include <qeventloop.h>
-#include <qapplication.h>
-#include <qtimer.h>
+#include <tqlabel.h>
+#include <tqtoolbutton.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqstring.h>
+#include <tqpoint.h>
+#include <tqfont.h>
+#include <tqpopupmenu.h>
+#include <tqeventloop.h>
+#include <tqapplication.h>
+#include <tqtimer.h>
#include <klocale.h>
#include <kdebug.h>
@@ -49,16 +49,16 @@
#include <kdeversion.h>
-K3bInteractionDialog::K3bInteractionDialog( QWidget* parent,
+K3bInteractionDialog::K3bInteractionDialog( TQWidget* tqparent,
const char* name,
- const QString& title,
- const QString& subTitle,
+ const TQString& title,
+ const TQString& subTitle,
int buttonMask,
int defaultButton,
- const QString& configGroup,
+ const TQString& configGroup,
bool modal,
WFlags fl )
- : KDialog( parent, name, modal, fl ),
+ : KDialog( tqparent, name, modal, fl ),
m_mainWidget(0),
m_defaultButton(defaultButton),
m_configGroup(configGroup),
@@ -69,7 +69,7 @@ K3bInteractionDialog::K3bInteractionDialog( QWidget* parent,
{
installEventFilter( this );
- mainGrid = new QGridLayout( this );
+ mainGrid = new TQGridLayout( this );
mainGrid->setSpacing( spacingHint() );
mainGrid->setMargin( marginHint() );
@@ -82,31 +82,31 @@ K3bInteractionDialog::K3bInteractionDialog( QWidget* parent,
// settings buttons
// ---------------------------------------------------------------------------------------------------
if( !m_configGroup.isEmpty() ) {
- QHBoxLayout* layout2 = new QHBoxLayout( 0, 0, spacingHint(), "layout2");
+ TQHBoxLayout* tqlayout2 = new TQHBoxLayout( 0, 0, spacingHint(), "tqlayout2");
m_buttonLoadSettings = new K3bToolButton( /*i18n("User Defaults"), */this );
((K3bToolButton*)m_buttonLoadSettings)->setIconSet( SmallIconSet( "revert" ) );
- QPopupMenu* userDefaultsPopup = new QPopupMenu( m_buttonLoadSettings );
- userDefaultsPopup->insertItem( i18n("Load default settings"), this, SLOT(slotLoadK3bDefaults()) );
- userDefaultsPopup->insertItem( i18n("Load saved settings"), this, SLOT(slotLoadUserDefaults()) );
- userDefaultsPopup->insertItem( i18n("Load last used settings"), this, SLOT(slotLoadLastSettings()) );
- ((QToolButton*)m_buttonLoadSettings)->setPopup( userDefaultsPopup );
+ TQPopupMenu* userDefaultsPopup = new TQPopupMenu( m_buttonLoadSettings );
+ userDefaultsPopup->insertItem( i18n("Load default settings"), this, TQT_SLOT(slotLoadK3bDefaults()) );
+ userDefaultsPopup->insertItem( i18n("Load saved settings"), this, TQT_SLOT(slotLoadUserDefaults()) );
+ userDefaultsPopup->insertItem( i18n("Load last used settings"), this, TQT_SLOT(slotLoadLastSettings()) );
+ ((TQToolButton*)m_buttonLoadSettings)->setPopup( userDefaultsPopup );
((K3bToolButton*)m_buttonLoadSettings)->setInstantMenu( true );
- layout2->addWidget( m_buttonLoadSettings );
+ tqlayout2->addWidget( m_buttonLoadSettings );
- m_buttonSaveSettings = new QToolButton( /*i18n("Save User Defaults"), */this, "m_buttonSaveSettings" );
- ((QToolButton*)m_buttonSaveSettings)->setIconSet( SmallIconSet( "filesave" ) );
- layout2->addWidget( m_buttonSaveSettings );
+ m_buttonSaveSettings = new TQToolButton( /*i18n("Save User Defaults"), */this, "m_buttonSaveSettings" );
+ ((TQToolButton*)m_buttonSaveSettings)->setIconSet( SmallIconSet( "filesave" ) );
+ tqlayout2->addWidget( m_buttonSaveSettings );
- mainGrid->addLayout( layout2, 2, 0 );
+ mainGrid->addLayout( tqlayout2, 2, 0 );
}
- QSpacerItem* spacer = new QSpacerItem( 10, 10, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ TQSpacerItem* spacer = new TQSpacerItem( 10, 10, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
mainGrid->addItem( spacer, 2, 1 );
// action buttons
// ---------------------------------------------------------------------------------------------------
- QHBoxLayout* layout5 = new QHBoxLayout( 0, 0, spacingHint(), "layout5");
+ TQHBoxLayout* tqlayout5 = new TQHBoxLayout( 0, 0, spacingHint(), "tqlayout5");
if( buttonMask & START_BUTTON ) {
KGuiItem startItem = KStdGuiItem::ok();
@@ -115,7 +115,7 @@ K3bInteractionDialog::K3bInteractionDialog( QWidget* parent,
setButtonText( START_BUTTON,
i18n("Start"),
i18n("Start the task") );
- QFont fnt( m_buttonStart->font() );
+ TQFont fnt( m_buttonStart->font() );
fnt.setBold(true);
m_buttonStart->setFont( fnt );
}
@@ -149,33 +149,33 @@ K3bInteractionDialog::K3bInteractionDialog( QWidget* parent,
case 0: // KDE default
default:
if ( m_buttonStart )
- layout5->addWidget( m_buttonStart );
+ tqlayout5->addWidget( m_buttonStart );
if ( m_buttonSave )
- layout5->addWidget( m_buttonSave );
+ tqlayout5->addWidget( m_buttonSave );
if ( m_buttonCancel )
- layout5->addWidget( m_buttonCancel );
+ tqlayout5->addWidget( m_buttonCancel );
break;
case 1: // something different
if ( m_buttonCancel )
- layout5->addWidget( m_buttonCancel );
+ tqlayout5->addWidget( m_buttonCancel );
if ( m_buttonSave )
- layout5->addWidget( m_buttonSave );
+ tqlayout5->addWidget( m_buttonSave );
if ( m_buttonStart )
- layout5->addWidget( m_buttonStart );
+ tqlayout5->addWidget( m_buttonStart );
break;
case 2: // GTK-Style
if ( m_buttonSave )
- layout5->addWidget( m_buttonSave );
+ tqlayout5->addWidget( m_buttonSave );
if ( m_buttonCancel )
- layout5->addWidget( m_buttonCancel );
+ tqlayout5->addWidget( m_buttonCancel );
if ( m_buttonStart )
- layout5->addWidget( m_buttonStart );
+ tqlayout5->addWidget( m_buttonStart );
break;
}
- mainGrid->addLayout( layout5, 2, 2 );
+ mainGrid->addLayout( tqlayout5, 2, 2 );
mainGrid->setRowStretch( 1, 1 );
@@ -200,9 +200,9 @@ void K3bInteractionDialog::show()
}
-QSize K3bInteractionDialog::sizeHint() const
+TQSize K3bInteractionDialog::tqsizeHint() const
{
- QSize s = KDialog::sizeHint();
+ TQSize s = KDialog::tqsizeHint();
// I want the dialogs to look good.
// That means their height should never outgrow their width
if( s.height() > s.width() )
@@ -215,22 +215,22 @@ QSize K3bInteractionDialog::sizeHint() const
void K3bInteractionDialog::initConnections()
{
if( m_buttonStart ) {
- connect( m_buttonStart, SIGNAL(clicked()),
- this, SLOT(slotStartClickedInternal()) );
+ connect( m_buttonStart, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotStartClickedInternal()) );
}
if( m_buttonSave ) {
-// connect( m_buttonSave, SIGNAL(clicked()),
-// this, SLOT(slotSaveLastSettings()) );
- connect( m_buttonSave, SIGNAL(clicked()),
- this, SLOT(slotSaveClicked()) );
+// connect( m_buttonSave, TQT_SIGNAL(clicked()),
+// this, TQT_SLOT(slotSaveLastSettings()) );
+ connect( m_buttonSave, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotSaveClicked()) );
}
if( m_buttonCancel )
- connect( m_buttonCancel, SIGNAL(clicked()),
- this, SLOT(slotCancelClicked()) );
+ connect( m_buttonCancel, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotCancelClicked()) );
if( !m_configGroup.isEmpty() ) {
- connect( m_buttonSaveSettings, SIGNAL(clicked()),
- this, SLOT(slotSaveUserDefaults()) );
+ connect( m_buttonSaveSettings, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotSaveUserDefaults()) );
}
}
@@ -240,14 +240,14 @@ void K3bInteractionDialog::initToolTipsAndWhatsThis()
if( !m_configGroup.isEmpty() ) {
// ToolTips
// -------------------------------------------------------------------------
- QToolTip::add( m_buttonLoadSettings, i18n("Load default or saved settings") );
- QToolTip::add( m_buttonSaveSettings, i18n("Save current settings to reuse them later") );
+ TQToolTip::add( m_buttonLoadSettings, i18n("Load default or saved settings") );
+ TQToolTip::add( m_buttonSaveSettings, i18n("Save current settings to reuse them later") );
// What's This info
// -------------------------------------------------------------------------
- QWhatsThis::add( m_buttonLoadSettings, i18n("<p>Load a set of settings either from the default K3b settings, "
+ TQWhatsThis::add( m_buttonLoadSettings, i18n("<p>Load a set of settings either from the default K3b settings, "
"settings saved before, or the last used ones.") );
- QWhatsThis::add( m_buttonSaveSettings, i18n("<p>Saves the current settings of the action dialog."
+ TQWhatsThis::add( m_buttonSaveSettings, i18n("<p>Saves the current settings of the action dialog."
"<p>These settings can be loaded with the <em>Load saved settings</em> "
"button."
"<p><b>The K3b defaults are not overwritten by this.</b>") );
@@ -255,7 +255,7 @@ void K3bInteractionDialog::initToolTipsAndWhatsThis()
}
-void K3bInteractionDialog::setTitle( const QString& title, const QString& subTitle )
+void K3bInteractionDialog::setTitle( const TQString& title, const TQString& subTitle )
{
m_dialogHeader->setTitle( title, subTitle );
@@ -263,17 +263,17 @@ void K3bInteractionDialog::setTitle( const QString& title, const QString& subTit
}
-void K3bInteractionDialog::setMainWidget( QWidget* w )
+void K3bInteractionDialog::setMainWidget( TQWidget* w )
{
- w->reparent( this, QPoint(0,0) );
+ w->reparent( this, TQPoint(0,0) );
mainGrid->addMultiCellWidget( w, 1, 1, 0, 2 );
m_mainWidget = w;
}
-QWidget* K3bInteractionDialog::mainWidget()
+TQWidget* K3bInteractionDialog::mainWidget()
{
if( !m_mainWidget ) {
- setMainWidget( new QWidget( this ) );
+ setMainWidget( new TQWidget( this ) );
}
return m_mainWidget;
}
@@ -324,7 +324,7 @@ void K3bInteractionDialog::slotStartClickedInternal()
"dialog is opened again."
"<p><em>Be aware that this choice can always be changed from the K3b "
"configuration dialog.</em>"),
- QMessageBox::Question,
+ TQMessageBox::Question,
this,
0,
3,
@@ -382,12 +382,12 @@ void K3bInteractionDialog::setDefaultButton( int button )
}
-bool K3bInteractionDialog::eventFilter( QObject* o, QEvent* ev )
+bool K3bInteractionDialog::eventFilter( TQObject* o, TQEvent* ev )
{
if( dynamic_cast<K3bInteractionDialog*>(o) == this &&
- ev->type() == QEvent::KeyPress ) {
+ ev->type() == TQEvent::KeyPress ) {
- QKeyEvent* kev = dynamic_cast<QKeyEvent*>(ev);
+ TQKeyEvent* kev = dynamic_cast<TQKeyEvent*>(ev);
switch ( kev->key() ) {
case Key_Enter:
@@ -445,16 +445,16 @@ void K3bInteractionDialog::setButtonGui( int button,
void K3bInteractionDialog::setButtonText( int button,
- const QString& text,
- const QString& tooltip,
- const QString& whatsthis )
+ const TQString& text,
+ const TQString& tooltip,
+ const TQString& whatsthis )
{
if( KPushButton* b = getButton( button ) ) {
b->setText( text );
- QToolTip::remove( b );
- QWhatsThis::remove( b );
- QToolTip::add( b, tooltip );
- QWhatsThis::add( b, whatsthis );
+ TQToolTip::remove( b );
+ TQWhatsThis::remove( b );
+ TQToolTip::add( b, tooltip );
+ TQWhatsThis::add( b, whatsthis );
}
}
@@ -479,44 +479,44 @@ void K3bInteractionDialog::setButtonShown( int button, bool shown )
}
-void K3bInteractionDialog::setStartButtonText( const QString& text,
- const QString& tooltip,
- const QString& whatsthis )
+void K3bInteractionDialog::setStartButtonText( const TQString& text,
+ const TQString& tooltip,
+ const TQString& whatsthis )
{
if( m_buttonStart ) {
m_buttonStart->setText( text );
- QToolTip::remove( m_buttonStart );
- QWhatsThis::remove( m_buttonStart );
- QToolTip::add( m_buttonStart, tooltip );
- QWhatsThis::add( m_buttonStart, whatsthis );
+ TQToolTip::remove( m_buttonStart );
+ TQWhatsThis::remove( m_buttonStart );
+ TQToolTip::add( m_buttonStart, tooltip );
+ TQWhatsThis::add( m_buttonStart, whatsthis );
}
}
-void K3bInteractionDialog::setCancelButtonText( const QString& text,
- const QString& tooltip,
- const QString& whatsthis )
+void K3bInteractionDialog::setCancelButtonText( const TQString& text,
+ const TQString& tooltip,
+ const TQString& whatsthis )
{
if( m_buttonCancel ) {
m_buttonCancel->setText( text );
- QToolTip::remove( m_buttonCancel );
- QWhatsThis::remove( m_buttonCancel );
- QToolTip::add( m_buttonCancel, tooltip );
- QWhatsThis::add( m_buttonCancel, whatsthis );
+ TQToolTip::remove( m_buttonCancel );
+ TQWhatsThis::remove( m_buttonCancel );
+ TQToolTip::add( m_buttonCancel, tooltip );
+ TQWhatsThis::add( m_buttonCancel, whatsthis );
}
}
-void K3bInteractionDialog::setSaveButtonText( const QString& text,
- const QString& tooltip,
- const QString& whatsthis )
+void K3bInteractionDialog::setSaveButtonText( const TQString& text,
+ const TQString& tooltip,
+ const TQString& whatsthis )
{
if( m_buttonSave ) {
m_buttonSave->setText( text );
- QToolTip::remove( m_buttonSave );
- QWhatsThis::remove( m_buttonSave );
- QToolTip::add( m_buttonSave, tooltip );
- QWhatsThis::add( m_buttonSave, whatsthis );
+ TQToolTip::remove( m_buttonSave );
+ TQWhatsThis::remove( m_buttonSave );
+ TQToolTip::add( m_buttonSave, tooltip );
+ TQWhatsThis::add( m_buttonSave, whatsthis );
}
}
@@ -567,7 +567,7 @@ int K3bInteractionDialog::exec( bool returnOnHide )
{
m_exitLoopOnHide = returnOnHide;
- // the following code is mainly taken from QDialog::exec
+ // the following code is mainly taken from TQDialog::exec
if( m_inLoop ) {
kdError() << "(K3bInteractionDialog::exec) Recursive call detected." << endl;
@@ -584,12 +584,12 @@ int K3bInteractionDialog::exec( bool returnOnHide )
loadStartupSettings();
show();
if( m_delayedInit )
- QTimer::singleShot( 0, this, SLOT(slotDelayedInit()) );
+ TQTimer::singleShot( 0, this, TQT_SLOT(slotDelayedInit()) );
else
init();
m_inLoop = true;
- QApplication::eventLoop()->enterLoop();
+ TQApplication::eventLoop()->enterLoop();
if( !wasShowModal )
clearWFlags( WShowModal );
@@ -612,7 +612,7 @@ void K3bInteractionDialog::hide()
if( m_inLoop && m_exitLoopOnHide ) {
m_inLoop = false;
- QApplication::eventLoop()->exitLoop();
+ TQApplication::eventLoop()->exitLoop();
}
}
@@ -621,7 +621,7 @@ bool K3bInteractionDialog::close( bool alsoDelete )
{
if( m_inLoop && !m_exitLoopOnHide ) {
m_inLoop = false;
- QApplication::eventLoop()->exitLoop();
+ TQApplication::eventLoop()->exitLoop();
}
return KDialog::close( alsoDelete );
@@ -632,7 +632,7 @@ void K3bInteractionDialog::done( int r )
{
if( m_inLoop && !m_exitLoopOnHide ) {
m_inLoop = false;
- QApplication::eventLoop()->exitLoop();
+ TQApplication::eventLoop()->exitLoop();
}
return KDialog::done( r );
diff --git a/src/k3binteractiondialog.h b/src/k3binteractiondialog.h
index 2bdb426..7e06465 100644
--- a/src/k3binteractiondialog.h
+++ b/src/k3binteractiondialog.h
@@ -19,10 +19,10 @@
#include <kdialog.h>
-class QGridLayout;
-class QLabel;
+class TQGridLayout;
+class TQLabel;
class KPushButton;
-class QButton;
+class TQButton;
class K3bThemedHeader;
class KConfigBase;
class KGuiItem;
@@ -38,6 +38,7 @@ class KGuiItem;
class K3bInteractionDialog : public KDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -50,19 +51,19 @@ class K3bInteractionDialog : public KDialog
* @param defaultButton may also be null to deactivate the feature
* @param configgroup The config group used for the loadUserDefaults and saveUserDefaults methods
*/
- K3bInteractionDialog( QWidget* parent = 0,
+ K3bInteractionDialog( TQWidget* tqparent = 0,
const char* name = 0,
- const QString& title = QString::null,
- const QString& subTitle = QString::null,
+ const TQString& title = TQString(),
+ const TQString& subTitle = TQString(),
int buttonMask = START_BUTTON|CANCEL_BUTTON,
int defaultButton = START_BUTTON,
- const QString& configgroup = QString::null,
+ const TQString& configgroup = TQString(),
bool modal = true,
WFlags fl = 0 );
virtual ~K3bInteractionDialog();
- void setMainWidget( QWidget* w );
- void setTitle( const QString& title, const QString& subTitle = QString::null );
+ void setMainWidget( TQWidget* w );
+ void setTitle( const TQString& title, const TQString& subTitle = TQString() );
void setDefaultButton( int b );
/**
@@ -96,7 +97,7 @@ class K3bInteractionDialog : public KDialog
/**
* If no mainWidget has been set a plain page will be created.
*/
- QWidget* mainWidget();
+ TQWidget* mainWidget();
enum Buttons {
START_BUTTON = 1,
@@ -104,9 +105,9 @@ class K3bInteractionDialog : public KDialog
CANCEL_BUTTON = 4
};
- QSize sizeHint() const;
+ TQSize tqsizeHint() const;
- const QString& configGroup() const { return m_configGroup; }
+ const TQString& configGroup() const { return m_configGroup; }
/**
* K3b's dialogs use this method to determine if it is safe to hide when starting
@@ -139,35 +140,35 @@ class K3bInteractionDialog : public KDialog
/**
* \deprecated use setButtonText
*/
- void setStartButtonText( const QString& text,
- const QString& tooltip = QString::null,
- const QString& whatsthis = QString::null );
+ void setStartButtonText( const TQString& text,
+ const TQString& tooltip = TQString(),
+ const TQString& whatsthis = TQString() );
/**
* \deprecated use setButtonText
*/
- void setCancelButtonText( const QString& text,
- const QString& tooltip = QString::null,
- const QString& whatsthis = QString::null );
+ void setCancelButtonText( const TQString& text,
+ const TQString& tooltip = TQString(),
+ const TQString& whatsthis = TQString() );
/**
* \deprecated use setButtonText
*/
- void setSaveButtonText( const QString& text,
- const QString& tooltip = QString::null,
- const QString& whatsthis = QString::null );
+ void setSaveButtonText( const TQString& text,
+ const TQString& tooltip = TQString(),
+ const TQString& whatsthis = TQString() );
void setButtonGui( int button,
const KGuiItem& );
void setButtonText( int button,
- const QString& text,
- const QString& tooltip = QString::null,
- const QString& whatsthis = QString::null );
+ const TQString& text,
+ const TQString& tooltip = TQString(),
+ const TQString& whatsthis = TQString() );
void setButtonEnabled( int button, bool enabled );
void setButtonShown( int button, bool enabled );
/**
- * If set true the init() method will be called via a QTimer to ensure event
+ * If set true the init() method will be called via a TQTimer to ensure event
* handling be done before (default: false).
*/
void setDelayedInitialization( bool b ) { m_delayedInit = b; }
@@ -231,9 +232,9 @@ class K3bInteractionDialog : public KDialog
virtual void init() {}
/**
- * reimplemented from QDialog
+ * reimplemented from TQDialog
*/
- virtual bool eventFilter( QObject*, QEvent* );
+ virtual bool eventFilter( TQObject*, TQEvent* );
protected slots:
/**
@@ -261,14 +262,14 @@ class K3bInteractionDialog : public KDialog
KPushButton* m_buttonStart;
KPushButton* m_buttonSave;
KPushButton* m_buttonCancel;
- QWidget* m_mainWidget;
+ TQWidget* m_mainWidget;
- QButton* m_buttonLoadSettings;
- QButton* m_buttonSaveSettings;
+ TQButton* m_buttonLoadSettings;
+ TQButton* m_buttonSaveSettings;
- QGridLayout* mainGrid;
+ TQGridLayout* mainGrid;
int m_defaultButton;
- QString m_configGroup;
+ TQString m_configGroup;
bool m_exitLoopOnHide;
bool m_inLoop;
diff --git a/src/k3binterface.cpp b/src/k3binterface.cpp
index c95e598..cd6f4d7 100644
--- a/src/k3binterface.cpp
+++ b/src/k3binterface.cpp
@@ -26,8 +26,8 @@
#include <k3bglobals.h>
#include <dcopclient.h>
-#include <qptrlist.h>
-#include <qtimer.h>
+#include <tqptrlist.h>
+#include <tqtimer.h>
@@ -105,11 +105,11 @@ DCOPRef K3bInterface::openProject( const KURL& url )
return DCOPRef();
}
-QValueList<DCOPRef> K3bInterface::projects()
+TQValueList<DCOPRef> K3bInterface::projects()
{
- QValueList<DCOPRef> lst;
- const QPtrList<K3bDoc>& docs = k3bappcore->projectManager()->projects();
- for( QPtrListIterator<K3bDoc> it( docs ); it.current(); ++it )
+ TQValueList<DCOPRef> lst;
+ const TQPtrList<K3bDoc>& docs = k3bappcore->projectManager()->projects();
+ for( TQPtrListIterator<K3bDoc> it( docs ); it.current(); ++it )
lst.append( DCOPRef( kapp->dcopClient()->appId(), k3bappcore->projectManager()->dcopInterface( it.current() )->objId() ) );
return lst;
@@ -143,28 +143,28 @@ void K3bInterface::copyDvd( const KURL& dev )
void K3bInterface::copyCd()
{
// HACK since we want this method to return immediately
- QTimer::singleShot( 0, m_main, SLOT(slotCdCopy()) );
+ TQTimer::singleShot( 0, m_main, TQT_SLOT(slotCdCopy()) );
}
void K3bInterface::copyDvd()
{
// HACK since we want this method to return immediately
- QTimer::singleShot( 0, m_main, SLOT(slotDvdCopy()) );
+ TQTimer::singleShot( 0, m_main, TQT_SLOT(slotDvdCopy()) );
}
void K3bInterface::eraseCdrw()
{
// HACK since we want this method to return immediately
- QTimer::singleShot( 0, m_main, SLOT(slotBlankCdrw()) );
+ TQTimer::singleShot( 0, m_main, TQT_SLOT(slotBlankCdrw()) );
}
void K3bInterface::formatDvd()
{
// HACK since we want this method to return immediately
- QTimer::singleShot( 0, m_main, SLOT(slotFormatDvd()) );
+ TQTimer::singleShot( 0, m_main, TQT_SLOT(slotFormatDvd()) );
}
diff --git a/src/k3binterface.h b/src/k3binterface.h
index b54e2ef..4079a5d 100644
--- a/src/k3binterface.h
+++ b/src/k3binterface.h
@@ -19,7 +19,7 @@
#include <dcopobject.h>
#include <dcopref.h>
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include <kurl.h>
@@ -63,7 +63,7 @@ class K3bInterface : public DCOPObject
DCOPRef openProject( const KURL& url );
- QValueList<DCOPRef> projects();
+ TQValueList<DCOPRef> projects();
void copyCd();
void copyDvd();
diff --git a/src/k3bjobinterface.cpp b/src/k3bjobinterface.cpp
index 60e4436..2f524ac 100644
--- a/src/k3bjobinterface.cpp
+++ b/src/k3bjobinterface.cpp
@@ -17,12 +17,12 @@
#include <k3bjob.h>
-#include <qcstring.h>
-#include <qdatastream.h>
+#include <tqcstring.h>
+#include <tqdatastream.h>
-K3bJobInterface::K3bJobInterface( QObject* parent )
- : QObject( parent ),
+K3bJobInterface::K3bJobInterface( TQObject* tqparent )
+ : TQObject( tqparent ),
DCOPObject( "K3bJobInterface" ),
m_job( 0 )
{
@@ -38,22 +38,22 @@ void K3bJobInterface::setJob( K3bJob* job )
m_lastProgress = m_lastSubProgress = 0;
if( m_job ) {
- connect( m_job, SIGNAL(newTask(const QString&)), this, SLOT(slotNewTask(const QString&)) );
- connect( m_job, SIGNAL(newSubTask(const QString&)), this, SLOT(slotNewSubTask(const QString&)) );
- connect( m_job, SIGNAL(infoMessage(const QString&, int)), this, SLOT(slotInfoMessage(const QString&, int)) );
- connect( m_job, SIGNAL(finished(bool)), this, SLOT(slotFinished(bool)) );
- connect( m_job, SIGNAL(started()), this, SLOT(slotStarted()) );
- connect( m_job, SIGNAL(canceled()), this, SLOT(slotCanceled()) );
- connect( m_job, SIGNAL(percent(int)), this, SLOT(slotProgress(int)) );
- connect( m_job, SIGNAL(subPercent(int)), this, SLOT(slotSubProgress(int)) );
- connect( m_job, SIGNAL(nextTrack(int, int)), this, SLOT(slotNextTrack(int, int)) );
+ connect( m_job, TQT_SIGNAL(newTask(const TQString&)), this, TQT_SLOT(slotNewTask(const TQString&)) );
+ connect( m_job, TQT_SIGNAL(newSubTask(const TQString&)), this, TQT_SLOT(slotNewSubTask(const TQString&)) );
+ connect( m_job, TQT_SIGNAL(infoMessage(const TQString&, int)), this, TQT_SLOT(slotInfoMessage(const TQString&, int)) );
+ connect( m_job, TQT_SIGNAL(finished(bool)), this, TQT_SLOT(slotFinished(bool)) );
+ connect( m_job, TQT_SIGNAL(started()), this, TQT_SLOT(slotStarted()) );
+ connect( m_job, TQT_SIGNAL(canceled()), this, TQT_SLOT(slotCanceled()) );
+ connect( m_job, TQT_SIGNAL(percent(int)), this, TQT_SLOT(slotProgress(int)) );
+ connect( m_job, TQT_SIGNAL(subPercent(int)), this, TQT_SLOT(slotSubProgress(int)) );
+ connect( m_job, TQT_SIGNAL(nextTrack(int, int)), this, TQT_SLOT(slotNextTrack(int, int)) );
if( m_job->inherits( "K3bBurnJob" ) ) {
- connect( m_job, SIGNAL(bufferStatus(int)), this, SLOT(slotBuffer(int)) );
- connect( m_job, SIGNAL(deviceBuffer(int)), this, SLOT(slotDeviceBuffer(int)) );
+ connect( m_job, TQT_SIGNAL(buffertqStatus(int)), this, TQT_SLOT(slotBuffer(int)) );
+ connect( m_job, TQT_SIGNAL(deviceBuffer(int)), this, TQT_SLOT(slotDeviceBuffer(int)) );
}
- connect( m_job, SIGNAL(destroyed()), this, SLOT(slotDestroyed()) );
+ connect( m_job, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotDestroyed()) );
}
}
@@ -64,52 +64,52 @@ bool K3bJobInterface::jobRunning() const
}
-QString K3bJobInterface::jobDescription() const
+TQString K3bJobInterface::jobDescription() const
{
if( m_job )
return m_job->jobDescription();
else
- return QString::null;
+ return TQString();
}
-QString K3bJobInterface::jobDetails() const
+TQString K3bJobInterface::jobDetails() const
{
if( m_job )
return m_job->jobDetails();
else
- return QString::null;
+ return TQString();
}
void K3bJobInterface::slotStarted()
{
m_lastProgress = m_lastSubProgress = 0;
- emitDCOPSignal( "started()", QByteArray() );
+ emitDCOPSignal( "started()", TQByteArray() );
}
void K3bJobInterface::slotCanceled()
{
- emitDCOPSignal( "canceled()", QByteArray() );
+ emitDCOPSignal( "canceled()", TQByteArray() );
}
void K3bJobInterface::slotFinished( bool success )
{
- QByteArray params;
- QDataStream stream(params, IO_WriteOnly);
+ TQByteArray params;
+ TQDataStream stream(params, IO_WriteOnly);
stream << success;
emitDCOPSignal( "finished(bool)", params );
}
-void K3bJobInterface::slotInfoMessage( const QString& message, int type )
+void K3bJobInterface::slotInfoMessage( const TQString& message, int type )
{
- QByteArray params;
- QDataStream stream(params, IO_WriteOnly);
+ TQByteArray params;
+ TQDataStream stream(params, IO_WriteOnly);
stream << message << type;
- emitDCOPSignal( "infoMessage(QString)", params );
+ emitDCOPSignal( "infoMessage(TQString)", params );
}
@@ -117,8 +117,8 @@ void K3bJobInterface::slotProgress( int val )
{
if( m_lastProgress != val ) {
m_lastProgress = val;
- QByteArray params;
- QDataStream stream(params, IO_WriteOnly);
+ TQByteArray params;
+ TQDataStream stream(params, IO_WriteOnly);
stream << val;
emitDCOPSignal( "progress(int)", params );
}
@@ -129,36 +129,36 @@ void K3bJobInterface::slotSubProgress( int val )
{
if( m_lastSubProgress != val ) {
m_lastSubProgress = val;
- QByteArray params;
- QDataStream stream(params, IO_WriteOnly);
+ TQByteArray params;
+ TQDataStream stream(params, IO_WriteOnly);
stream << val;
emitDCOPSignal( "subProgress(int)", params );
}
}
-void K3bJobInterface::slotNewTask( const QString& task )
+void K3bJobInterface::slotNewTask( const TQString& task )
{
- QByteArray params;
- QDataStream stream(params, IO_WriteOnly);
+ TQByteArray params;
+ TQDataStream stream(params, IO_WriteOnly);
stream << task;
- emitDCOPSignal( "newTask(QString)", params );
+ emitDCOPSignal( "newTask(TQString)", params );
}
-void K3bJobInterface::slotNewSubTask( const QString& task )
+void K3bJobInterface::slotNewSubTask( const TQString& task )
{
- QByteArray params;
- QDataStream stream(params, IO_WriteOnly);
+ TQByteArray params;
+ TQDataStream stream(params, IO_WriteOnly);
stream << task;
- emitDCOPSignal( "newSubTask(QString)", params );
+ emitDCOPSignal( "newSubTask(TQString)", params );
}
void K3bJobInterface::slotBuffer( int val )
{
- QByteArray params;
- QDataStream stream(params, IO_WriteOnly);
+ TQByteArray params;
+ TQDataStream stream(params, IO_WriteOnly);
stream << val;
emitDCOPSignal( "buffer(int)", params );
}
@@ -166,8 +166,8 @@ void K3bJobInterface::slotBuffer( int val )
void K3bJobInterface::slotDeviceBuffer( int val )
{
- QByteArray params;
- QDataStream stream(params, IO_WriteOnly);
+ TQByteArray params;
+ TQDataStream stream(params, IO_WriteOnly);
stream << val;
emitDCOPSignal( "deviceBuffer(int)", params );
}
@@ -175,8 +175,8 @@ void K3bJobInterface::slotDeviceBuffer( int val )
void K3bJobInterface::slotNextTrack( int track, int numTracks )
{
- QByteArray params;
- QDataStream stream(params, IO_WriteOnly);
+ TQByteArray params;
+ TQDataStream stream(params, IO_WriteOnly);
stream << track << numTracks;
emitDCOPSignal( "nextTrack(int,int)", params );
}
diff --git a/src/k3bjobinterface.h b/src/k3bjobinterface.h
index 0d27ac2..e62d465 100644
--- a/src/k3bjobinterface.h
+++ b/src/k3bjobinterface.h
@@ -16,7 +16,7 @@
#ifndef _K3B_JOB_INTERFACE_H_
#define _K3B_JOB_INTERFACE_H_
-#include <qobject.h>
+#include <tqobject.h>
#include <dcopobject.h>
class K3bJob;
@@ -28,31 +28,32 @@ class K3bJob;
* This may be used for example in a karamba theme with a non-volitile
* DCOP connection.
*/
-class K3bJobInterface : public QObject, public DCOPObject
+class K3bJobInterface : public TQObject, public DCOPObject
{
Q_OBJECT
+// TQ_OBJECT
K_DCOP
public:
- K3bJobInterface( QObject* parent );
+ K3bJobInterface( TQObject* tqparent );
void setJob( K3bJob* );
k_dcop:
bool jobRunning() const;
- QString jobDescription() const;
- QString jobDetails() const;
+ TQString jobDescription() const;
+ TQString jobDetails() const;
k_dcop_signals:
void started();
void canceled();
void finished( bool );
- void infoMessage( const QString&, int );
+ void infoMessage( const TQString&, int );
void progress( int );
void subProgress( int );
- void newTask( const QString& );
- void newSubTask( const QString& );
+ void newTask( const TQString& );
+ void newSubTask( const TQString& );
void buffer( int );
void deviceBuffer( int );
void nextTrack( int track, int numTracks );
@@ -61,11 +62,11 @@ class K3bJobInterface : public QObject, public DCOPObject
void slotStarted();
void slotCanceled();
void slotFinished( bool );
- void slotInfoMessage( const QString&, int );
+ void slotInfoMessage( const TQString&, int );
void slotProgress( int );
void slotSubProgress( int );
- void slotNewTask( const QString& );
- void slotNewSubTask( const QString& );
+ void slotNewTask( const TQString& );
+ void slotNewSubTask( const TQString& );
void slotBuffer( int );
void slotDeviceBuffer( int );
void slotNextTrack( int track, int numTracks );
diff --git a/src/k3bjobprogressdialog.cpp b/src/k3bjobprogressdialog.cpp
index 351f1d9..e74a0d5 100644
--- a/src/k3bjobprogressdialog.cpp
+++ b/src/k3bjobprogressdialog.cpp
@@ -32,25 +32,25 @@
#include <k3bversion.h>
#include <k3bthememanager.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qvariant.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qdatetime.h>
-#include <qstring.h>
-#include <qhbox.h>
-#include <qheader.h>
-#include <qscrollbar.h>
-#include <qpoint.h>
-#include <qfontmetrics.h>
-#include <qtimer.h>
-#include <qfont.h>
-#include <qeventloop.h>
-#include <qfile.h>
-#include <qapplication.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqvariant.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqdatetime.h>
+#include <tqstring.h>
+#include <tqhbox.h>
+#include <tqheader.h>
+#include <tqscrollbar.h>
+#include <tqpoint.h>
+#include <tqfontmetrics.h>
+#include <tqtimer.h>
+#include <tqfont.h>
+#include <tqeventloop.h>
+#include <tqfile.h>
+#include <tqapplication.h>
#include <kprogress.h>
#include <klocale.h>
@@ -78,11 +78,11 @@ public:
-K3bJobProgressDialog::K3bJobProgressDialog( QWidget* parent,
+K3bJobProgressDialog::K3bJobProgressDialog( TQWidget* tqparent,
const char* name,
bool showSubProgress,
bool modal, WFlags fl )
- : KDialog( parent, name, modal, fl ),
+ : KDialog( tqparent, name, modal, fl ),
in_loop(false),
m_osd(0)
{
@@ -96,9 +96,9 @@ K3bJobProgressDialog::K3bJobProgressDialog( QWidget* parent,
}
m_job = 0;
- m_timer = new QTimer( this );
+ m_timer = new TQTimer( this );
- connect( m_timer, SIGNAL(timeout()), this, SLOT(slotUpdateTime()) );
+ connect( m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotUpdateTime()) );
}
@@ -114,40 +114,40 @@ K3bJobProgressDialog::~K3bJobProgressDialog()
void K3bJobProgressDialog::setupGUI()
{
- QVBoxLayout* mainLayout = new QVBoxLayout( this, 11, 6, "mainLayout");
+ TQVBoxLayout* mainLayout = new TQVBoxLayout( this, 11, 6, "mainLayout");
// header
// ------------------------------------------------------------------------------------------
- QFrame* headerFrame = new QFrame( this, "headerFrame" );
- headerFrame->setFrameShape( QFrame::StyledPanel );
- headerFrame->setFrameShadow( QFrame::Sunken );
+ TQFrame* headerFrame = new TQFrame( this, "headerFrame" );
+ headerFrame->setFrameShape( TQFrame::StyledPanel );
+ headerFrame->setFrameShadow( TQFrame::Sunken );
headerFrame->setLineWidth( 1 );
headerFrame->setMargin( 1 );
- QHBoxLayout* headerLayout = new QHBoxLayout( headerFrame );
+ TQHBoxLayout* headerLayout = new TQHBoxLayout( headerFrame );
headerLayout->setMargin( 2 ); // to make sure the frame gets displayed
headerLayout->setSpacing( 0 );
m_pixLabel = new K3bThemedLabel( headerFrame );
headerLayout->addWidget( m_pixLabel );
- QFrame* frame4 = new QFrame( headerFrame, "frame4" );
- frame4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 1, 0, frame4->sizePolicy().hasHeightForWidth() ) );
- frame4->setFrameShape( QFrame::NoFrame );
- frame4->setFrameShadow( QFrame::Raised );
- QVBoxLayout* frame4Layout = new QVBoxLayout( frame4, 6, 3, "frame4Layout");
+ TQFrame* frame4 = new TQFrame( headerFrame, "frame4" );
+ frame4->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 1, 0, frame4->sizePolicy().hasHeightForWidth() ) );
+ frame4->setFrameShape( TQFrame::NoFrame );
+ frame4->setFrameShadow( TQFrame::Raised );
+ TQVBoxLayout* frame4Layout = new TQVBoxLayout( frame4, 6, 3, "frame4Layout");
m_labelJob = new K3bThemedLabel( frame4 );
m_labelJob->setMinimumVisibleText( 40 );
- QFont m_labelJob_font( m_labelJob->font() );
+ TQFont m_labelJob_font( m_labelJob->font() );
m_labelJob_font.setPointSize( m_labelJob_font.pointSize() + 2 );
m_labelJob_font.setBold( true );
m_labelJob->setFont( m_labelJob_font );
- m_labelJob->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
+ m_labelJob->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
frame4Layout->addWidget( m_labelJob );
m_labelJobDetails = new K3bThemedLabel( frame4 );
- m_labelJobDetails->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 1, m_labelJobDetails->sizePolicy().hasHeightForWidth() ) );
- m_labelJobDetails->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
+ m_labelJobDetails->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 1, m_labelJobDetails->sizePolicy().hasHeightForWidth() ) );
+ m_labelJobDetails->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
frame4Layout->addWidget( m_labelJobDetails );
headerLayout->addWidget( frame4 );
@@ -166,31 +166,31 @@ void K3bJobProgressDialog::setupGUI()
// progress header
// ------------------------------------------------------------------------------------------
- QFrame* progressHeaderFrame = new QFrame( this, "progressHeaderFrame" );
- progressHeaderFrame->setFrameShape( QFrame::StyledPanel );
- progressHeaderFrame->setFrameShadow( QFrame::Sunken );
+ TQFrame* progressHeaderFrame = new TQFrame( this, "progressHeaderFrame" );
+ progressHeaderFrame->setFrameShape( TQFrame::StyledPanel );
+ progressHeaderFrame->setFrameShadow( TQFrame::Sunken );
progressHeaderFrame->setLineWidth( 1 );
progressHeaderFrame->setMargin( 1 );
- QHBoxLayout* progressHeaderLayout = new QHBoxLayout( progressHeaderFrame );
+ TQHBoxLayout* progressHeaderLayout = new TQHBoxLayout( progressHeaderFrame );
progressHeaderLayout->setMargin( 2 );
progressHeaderLayout->setSpacing( 0 );
- QFrame* frame5 = new QFrame( progressHeaderFrame, "frame5" );
- frame5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 1, 0, frame5->sizePolicy().hasHeightForWidth() ) );
- frame5->setFrameShape( QFrame::NoFrame );
- frame5->setFrameShadow( QFrame::Raised );
- QVBoxLayout* frame5Layout = new QVBoxLayout( frame5, 6, 3, "frame5Layout");
+ TQFrame* frame5 = new TQFrame( progressHeaderFrame, "frame5" );
+ frame5->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 1, 0, frame5->sizePolicy().hasHeightForWidth() ) );
+ frame5->setFrameShape( TQFrame::NoFrame );
+ frame5->setFrameShadow( TQFrame::Raised );
+ TQVBoxLayout* frame5Layout = new TQVBoxLayout( frame5, 6, 3, "frame5Layout");
m_labelTask = new K3bThemedLabel( frame5 );
- QFont m_labelTask_font( m_labelTask->font() );
+ TQFont m_labelTask_font( m_labelTask->font() );
m_labelTask_font.setPointSize( m_labelTask_font.pointSize() + 2 );
m_labelTask_font.setBold( true );
m_labelTask->setFont( m_labelTask_font );
frame5Layout->addWidget( m_labelTask );
m_labelElapsedTime = new K3bThemedLabel( frame5 );
- m_labelElapsedTime->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 1, m_labelElapsedTime->sizePolicy().hasHeightForWidth() ) );
+ m_labelElapsedTime->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 1, m_labelElapsedTime->sizePolicy().hasHeightForWidth() ) );
frame5Layout->addWidget( m_labelElapsedTime );
progressHeaderLayout->addWidget( frame5 );
@@ -198,73 +198,73 @@ void K3bJobProgressDialog::setupGUI()
mainLayout->addWidget( progressHeaderFrame );
// ------------------------------------------------------------------------------------------
- QHBoxLayout* layout3 = new QHBoxLayout( 0, 0, 6, "layout3");
+ TQHBoxLayout* tqlayout3 = new TQHBoxLayout( 0, 0, 6, "tqlayout3");
m_labelSubTask = new KCutLabel( this, "m_labelSubTask" );
- layout3->addWidget( m_labelSubTask );
+ tqlayout3->addWidget( m_labelSubTask );
- m_labelSubProcessedSize = new QLabel( this, "m_labelSubProcessedSize" );
- m_labelSubProcessedSize->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
- layout3->addWidget( m_labelSubProcessedSize );
- mainLayout->addLayout( layout3 );
+ m_labelSubProcessedSize = new TQLabel( this, "m_labelSubProcessedSize" );
+ m_labelSubProcessedSize->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
+ tqlayout3->addWidget( m_labelSubProcessedSize );
+ mainLayout->addLayout( tqlayout3 );
m_progressSubPercent = new KProgress( this, "m_progressSubPercent" );
mainLayout->addWidget( m_progressSubPercent );
- QHBoxLayout* layout4 = new QHBoxLayout( 0, 0, 6, "layout4");
+ TQHBoxLayout* tqlayout4 = new TQHBoxLayout( 0, 0, 6, "tqlayout4");
- QLabel* textLabel5 = new QLabel( i18n("Overall progress:"), this, "textLabel5" );
- layout4->addWidget( textLabel5 );
+ TQLabel* textLabel5 = new TQLabel( i18n("Overall progress:"), this, "textLabel5" );
+ tqlayout4->addWidget( textLabel5 );
- m_labelProcessedSize = new QLabel( this, "m_labelProcessedSize" );
- m_labelProcessedSize->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
- layout4->addWidget( m_labelProcessedSize );
- mainLayout->addLayout( layout4 );
+ m_labelProcessedSize = new TQLabel( this, "m_labelProcessedSize" );
+ m_labelProcessedSize->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
+ tqlayout4->addWidget( m_labelProcessedSize );
+ mainLayout->addLayout( tqlayout4 );
m_progressPercent = new KProgress( this, "m_progressPercent" );
mainLayout->addWidget( m_progressPercent );
- m_frameExtraInfo = new QFrame( this, "m_frameExtraInfo" );
- m_frameExtraInfo->setFrameShape( QFrame::NoFrame );
- m_frameExtraInfo->setFrameShadow( QFrame::Raised );
- m_frameExtraInfoLayout = new QGridLayout( m_frameExtraInfo );
+ m_frameExtraInfo = new TQFrame( this, "m_frameExtraInfo" );
+ m_frameExtraInfo->setFrameShape( TQFrame::NoFrame );
+ m_frameExtraInfo->setFrameShadow( TQFrame::Raised );
+ m_frameExtraInfoLayout = new TQGridLayout( m_frameExtraInfo );
m_frameExtraInfoLayout->setMargin(0);
m_frameExtraInfoLayout->setSpacing( spacingHint() );
mainLayout->addWidget( m_frameExtraInfo );
- QFrame* line2 = new QFrame( this, "line2" );
- line2->setFrameShape( QFrame::HLine );
- line2->setFrameShadow( QFrame::Sunken );
+ TQFrame* line2 = new TQFrame( this, "line2" );
+ line2->setFrameShape( TQFrame::HLine );
+ line2->setFrameShadow( TQFrame::Sunken );
mainLayout->addWidget( line2 );
- QHBoxLayout* layout5 = new QHBoxLayout( 0, 0, 6, "layout5");
- QSpacerItem* spacer = new QSpacerItem( 10, 10, QSizePolicy::Expanding, QSizePolicy::Minimum );
- layout5->addItem( spacer );
+ TQHBoxLayout* tqlayout5 = new TQHBoxLayout( 0, 0, 6, "tqlayout5");
+ TQSpacerItem* spacer = new TQSpacerItem( 10, 10, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
+ tqlayout5->addItem( spacer );
m_buttonCancel = new KPushButton( KStdGuiItem::cancel(), this, "m_buttonCancel" );
- layout5->addWidget( m_buttonCancel );
+ tqlayout5->addWidget( m_buttonCancel );
m_buttonClose = new KPushButton( KStdGuiItem::close(), this );
- layout5->addWidget( m_buttonClose );
- m_buttonShowDebug = new QPushButton( i18n("Show Debugging Output"), this );
- layout5->addWidget( m_buttonShowDebug );
+ tqlayout5->addWidget( m_buttonClose );
+ m_buttonShowDebug = new TQPushButton( i18n("Show Debugging Output"), this );
+ tqlayout5->addWidget( m_buttonShowDebug );
- mainLayout->addLayout( layout5 );
+ mainLayout->addLayout( tqlayout5 );
m_pixLabel->setThemePixmap( K3bTheme::PROGRESS_WORKING );
slotThemeChanged();
- connect( k3bappcore->themeManager(), SIGNAL(themeChanged()),
- this, SLOT(slotThemeChanged()) );
- connect( kapp, SIGNAL(appearanceChanged()),
- this, SLOT(slotThemeChanged()) );
+ connect( k3bappcore->themeManager(), TQT_SIGNAL(themeChanged()),
+ this, TQT_SLOT(slotThemeChanged()) );
+ connect( kapp, TQT_SIGNAL(appearanceChanged()),
+ this, TQT_SLOT(slotThemeChanged()) );
}
void K3bJobProgressDialog::show()
{
if( KConfigGroup( k3bcore->config(), "General Options" ).readBoolEntry( "hide main window while writing", false ) )
- if( QWidget* w = kapp->mainWidget() )
+ if( TQWidget* w = kapp->mainWidget() )
w->hide();
if( m_osd ) {
@@ -276,18 +276,18 @@ void K3bJobProgressDialog::show()
}
-void K3bJobProgressDialog::setExtraInfo( QWidget *extra )
+void K3bJobProgressDialog::setExtraInfo( TQWidget *extra )
{
- extra->reparent( m_frameExtraInfo, QPoint(0,0) );
+ extra->reparent( m_frameExtraInfo, TQPoint(0,0) );
m_frameExtraInfoLayout->addWidget( extra, 0, 0 );
}
-void K3bJobProgressDialog::closeEvent( QCloseEvent* e )
+void K3bJobProgressDialog::closeEvent( TQCloseEvent* e )
{
if( m_buttonClose->isVisible() ) {
KDialog::closeEvent( e );
- if( QWidget* w = kapp->mainWidget() )
+ if( TQWidget* w = kapp->mainWidget() )
w->show();
if( !m_plainCaption.isEmpty() )
@@ -306,27 +306,27 @@ void K3bJobProgressDialog::closeEvent( QCloseEvent* e )
void K3bJobProgressDialog::setupConnections()
{
- connect( m_buttonCancel, SIGNAL(clicked()), this, SLOT(slotCancelButtonPressed()) );
- connect( m_buttonClose, SIGNAL(clicked()), this, SLOT(close()) );
- connect( m_buttonShowDebug, SIGNAL(clicked()), this, SLOT(slotShowDebuggingOutput()) );
+ connect( m_buttonCancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCancelButtonPressed()) );
+ connect( m_buttonClose, TQT_SIGNAL(clicked()), this, TQT_SLOT(close()) );
+ connect( m_buttonShowDebug, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotShowDebuggingOutput()) );
}
void K3bJobProgressDialog::slotProcessedSize( int processed, int size )
{
- m_labelProcessedSize->setText( i18n("%1 of %2 MB").arg( processed ).arg( size ) );
+ m_labelProcessedSize->setText( i18n("%1 of %2 MB").tqarg( processed ).tqarg( size ) );
}
void K3bJobProgressDialog::slotProcessedSubSize( int processedTrackSize, int trackSize )
{
- m_labelSubProcessedSize->setText( i18n("%1 of %2 MB").arg(processedTrackSize).arg(trackSize) );
+ m_labelSubProcessedSize->setText( i18n("%1 of %2 MB").tqarg(processedTrackSize).tqarg(trackSize) );
}
-void K3bJobProgressDialog::slotInfoMessage( const QString& infoString, int type )
+void K3bJobProgressDialog::slotInfoMessage( const TQString& infoString, int type )
{
- QListViewItem* currentInfoItem = new QListViewItem( m_viewInfo, m_viewInfo->lastItem(), QString::null, infoString );
+ TQListViewItem* currentInfoItem = new TQListViewItem( m_viewInfo, m_viewInfo->lastItem(), TQString(), infoString );
currentInfoItem->setSelectable( false );
// set the icon
@@ -360,8 +360,8 @@ void K3bJobProgressDialog::slotFinished( bool success )
m_pixLabel->setThemePixmap( K3bTheme::PROGRESS_SUCCESS );
m_labelTask->setText( i18n("Success.") );
- m_labelTask->setPaletteForegroundColor( Qt::darkGreen );
- m_labelSubTask->setText( QString::null );
+ m_labelTask->setPaletteForegroundColor( TQt::darkGreen );
+ m_labelSubTask->setText( TQString() );
m_progressPercent->setValue(100);
m_progressSubPercent->setValue(100);
@@ -378,7 +378,7 @@ void K3bJobProgressDialog::slotFinished( bool success )
else {
m_pixLabel->setThemePixmap( K3bTheme::PROGRESS_FAIL );
- m_labelTask->setPaletteForegroundColor( Qt::red );
+ m_labelTask->setPaletteForegroundColor( TQt::red );
if( m_bCanceled ) {
m_labelTask->setText( i18n("Canceled.") );
@@ -434,23 +434,23 @@ void K3bJobProgressDialog::setJob( K3bJob* job )
if( job ) {
// connect to all the shit
- connect( job, SIGNAL(infoMessage(const QString&,int)), this, SLOT(slotInfoMessage(const QString&,int)) );
+ connect( job, TQT_SIGNAL(infoMessage(const TQString&,int)), this, TQT_SLOT(slotInfoMessage(const TQString&,int)) );
- connect( job, SIGNAL(percent(int)), m_progressPercent, SLOT(setValue(int)) );
- connect( job, SIGNAL(percent(int)), this, SLOT(slotProgress(int)) );
- connect( job, SIGNAL(subPercent(int)), m_progressSubPercent, SLOT(setValue(int)) );
+ connect( job, TQT_SIGNAL(percent(int)), m_progressPercent, TQT_SLOT(setValue(int)) );
+ connect( job, TQT_SIGNAL(percent(int)), this, TQT_SLOT(slotProgress(int)) );
+ connect( job, TQT_SIGNAL(subPercent(int)), m_progressSubPercent, TQT_SLOT(setValue(int)) );
- connect( job, SIGNAL(processedSubSize(int, int)), this, SLOT(slotProcessedSubSize(int, int)) );
- connect( job, SIGNAL(processedSize(int, int)), this, SLOT(slotProcessedSize(int, int)) );
+ connect( job, TQT_SIGNAL(processedSubSize(int, int)), this, TQT_SLOT(slotProcessedSubSize(int, int)) );
+ connect( job, TQT_SIGNAL(processedSize(int, int)), this, TQT_SLOT(slotProcessedSize(int, int)) );
- connect( job, SIGNAL(newTask(const QString&)), this, SLOT(slotNewTask(const QString&)) );
- connect( job, SIGNAL(newSubTask(const QString&)), this, SLOT(slotNewSubTask(const QString&)) );
- connect( job, SIGNAL(started()), this, SLOT(slotStarted()) );
- connect( job, SIGNAL(finished(bool)), this, SLOT(slotFinished(bool)) );
- connect( job, SIGNAL(canceled()), this, SLOT(slotCanceled()) );
+ connect( job, TQT_SIGNAL(newTask(const TQString&)), this, TQT_SLOT(slotNewTask(const TQString&)) );
+ connect( job, TQT_SIGNAL(newSubTask(const TQString&)), this, TQT_SLOT(slotNewSubTask(const TQString&)) );
+ connect( job, TQT_SIGNAL(started()), this, TQT_SLOT(slotStarted()) );
+ connect( job, TQT_SIGNAL(finished(bool)), this, TQT_SLOT(slotFinished(bool)) );
+ connect( job, TQT_SIGNAL(canceled()), this, TQT_SLOT(slotCanceled()) );
- connect( job, SIGNAL(debuggingOutput(const QString&, const QString&)),
- this, SLOT(slotDebuggingOutput(const QString&, const QString&)) );
+ connect( job, TQT_SIGNAL(debuggingOutput(const TQString&, const TQString&)),
+ this, TQT_SLOT(slotDebuggingOutput(const TQString&, const TQString&)) );
m_labelJob->setText( m_job->jobDescription() );
m_labelJobDetails->setText( m_job->jobDetails() );
@@ -467,8 +467,8 @@ void K3bJobProgressDialog::setJob( K3bJob* job )
if( m_osd ) {
m_osd->setText( job->jobDescription() );
// FIXME: use a setJob method and let the osd also change the text color to red/green
- // connect( job, SIGNAL(newTask(const QString&)), m_osd, SLOT(setText(const QString&)) );
- connect( job, SIGNAL(percent(int)), m_osd, SLOT(setProgress(int)) );
+ // connect( job, TQT_SIGNAL(newTask(const TQString&)), m_osd, TQT_SLOT(setText(const TQString&)) );
+ connect( job, TQT_SIGNAL(percent(int)), m_osd, TQT_SLOT(setProgress(int)) );
}
}
}
@@ -486,14 +486,14 @@ void K3bJobProgressDialog::slotCancelButtonPressed()
}
-void K3bJobProgressDialog::slotNewSubTask(const QString& name)
+void K3bJobProgressDialog::slotNewSubTask(const TQString& name)
{
m_labelSubTask->setText(name);
m_labelSubProcessedSize->setText("");
m_progressSubPercent->setValue(0);
}
-void K3bJobProgressDialog::slotNewTask(const QString& name)
+void K3bJobProgressDialog::slotNewTask(const TQString& name)
{
m_labelTask->setText( name );
}
@@ -503,7 +503,7 @@ void K3bJobProgressDialog::slotStarted()
{
d->lastProgress = 0;
m_timer->start( 1000 );
- m_startTime = QTime::currentTime();
+ m_startTime = TQTime::currentTime();
if( KMainWindow* w = dynamic_cast<KMainWindow*>(kapp->mainWidget()) )
m_plainCaption = w->caption();
@@ -513,19 +513,19 @@ void K3bJobProgressDialog::slotStarted()
void K3bJobProgressDialog::slotUpdateTime()
{
- int elapsed = m_startTime.secsTo( QTime::currentTime() );
+ int elapsed = m_startTime.secsTo( TQTime::currentTime() );
- QString s = i18n("Elapsed time: %1 h").arg( QTime().addSecs(elapsed).toString() );
+ TQString s = i18n("Elapsed time: %1 h").tqarg( TQTime().addSecs(elapsed).toString() );
if( d->lastProgress > 0 && d->lastProgress < 100 ) {
int rem = m_startTime.secsTo( m_lastProgressUpdateTime ) * (100-d->lastProgress) / d->lastProgress;
- s += " / " + i18n("Remaining: %1 h").arg( QTime().addSecs(rem).toString() );
+ s += " / " + i18n("Remaining: %1 h").tqarg( TQTime().addSecs(rem).toString() );
}
m_labelElapsedTime->setText( s );
}
-void K3bJobProgressDialog::slotDebuggingOutput( const QString& type, const QString& output )
+void K3bJobProgressDialog::slotDebuggingOutput( const TQString& type, const TQString& output )
{
m_debugOutputMap[type].append(output);
m_logFile.addOutput( type, output );
@@ -544,17 +544,17 @@ void K3bJobProgressDialog::slotProgress( int percent )
{
if( percent > d->lastProgress ) {
d->lastProgress = percent;
- m_lastProgressUpdateTime = QTime::currentTime();
+ m_lastProgressUpdateTime = TQTime::currentTime();
if( KMainWindow* w = dynamic_cast<KMainWindow*>(kapp->mainWidget()) ) {
- w->setPlainCaption( QString( "(%1%) %2" ).arg(percent).arg(m_plainCaption) );
+ w->setPlainCaption( TQString( "(%1%) %2" ).tqarg(percent).tqarg(m_plainCaption) );
}
- setCaption( QString( "(%1%) %2" ).arg(percent).arg(m_job->jobDescription()) );
+ setCaption( TQString( "(%1%) %2" ).tqarg(percent).tqarg(m_job->jobDescription()) );
}
}
-void K3bJobProgressDialog::keyPressEvent( QKeyEvent *e )
+void K3bJobProgressDialog::keyPressEvent( TQKeyEvent *e )
{
e->accept();
@@ -579,9 +579,9 @@ void K3bJobProgressDialog::keyPressEvent( QKeyEvent *e )
}
-QSize K3bJobProgressDialog::sizeHint() const
+TQSize K3bJobProgressDialog::tqsizeHint() const
{
- QSize s = layout()->totalSizeHint();
+ TQSize s = tqlayout()->totalSizeHint();
if( s.width() < s.height() )
s.setWidth( s.height() );
return s;
@@ -599,7 +599,7 @@ int K3bJobProgressDialog::startJob( K3bJob* job )
return -1;
}
- // the following code is mainly taken from QDialog::exec
+ // the following code is mainly taken from TQDialog::exec
if ( in_loop ) {
kdError() << "(K3bJobProgressDialog::startJob) Recursive call detected." << endl;
@@ -619,7 +619,7 @@ int K3bJobProgressDialog::startJob( K3bJob* job )
m_job->start();
in_loop = true;
- QApplication::eventLoop()->enterLoop();
+ TQApplication::eventLoop()->enterLoop();
if ( !wasShowModal )
clearWFlags( WShowModal );
@@ -636,7 +636,7 @@ int K3bJobProgressDialog::startJob( K3bJob* job )
void K3bJobProgressDialog::hide()
{
// we need to reimplement this since
- // QDialog does not know if we are in a loop from startJob
+ // TQDialog does not know if we are in a loop from startJob
if ( isHidden() )
return;
@@ -645,7 +645,7 @@ void K3bJobProgressDialog::hide()
if ( in_loop ) {
in_loop = FALSE;
- QApplication::eventLoop()->exitLoop();
+ TQApplication::eventLoop()->exitLoop();
}
}
@@ -653,16 +653,16 @@ void K3bJobProgressDialog::hide()
int K3bJobProgressDialog::waitForMedia( K3bDevice::Device* device,
int mediaState,
int mediaType,
- const QString& message )
+ const TQString& message )
{
return K3bEmptyDiscWaiter::wait( device, mediaState, mediaType, message, this );
}
-bool K3bJobProgressDialog::questionYesNo( const QString& text,
- const QString& caption,
- const QString& yesText,
- const QString& noText )
+bool K3bJobProgressDialog::questionYesNo( const TQString& text,
+ const TQString& caption,
+ const TQString& yesText,
+ const TQString& noText )
{
return ( KMessageBox::questionYesNo( this,
text,
@@ -672,8 +672,8 @@ bool K3bJobProgressDialog::questionYesNo( const QString& text,
}
-void K3bJobProgressDialog::blockingInformation( const QString& text,
- const QString& caption )
+void K3bJobProgressDialog::blockingInformation( const TQString& text,
+ const TQString& caption )
{
KMessageBox::information( this, text, caption );
}
@@ -682,14 +682,14 @@ void K3bJobProgressDialog::blockingInformation( const QString& text,
void K3bJobProgressDialog::slotThemeChanged()
{
if( K3bTheme* theme = k3bappcore->themeManager()->currentTheme() ) {
- static_cast<QWidget*>(child( "frame4" ))->setPaletteBackgroundColor( theme->backgroundColor() );
- static_cast<QWidget*>(child( "frame4" ))->setPaletteForegroundColor( theme->backgroundColor() );
- static_cast<QWidget*>(child( "frame5" ))->setPaletteBackgroundColor( theme->backgroundColor() );
- static_cast<QWidget*>(child( "frame5" ))->setPaletteForegroundColor( theme->backgroundColor() );
- static_cast<QWidget*>(child( "progressHeaderFrame" ))->setPaletteBackgroundColor( theme->backgroundColor() );
- static_cast<QWidget*>(child( "progressHeaderFrame" ))->setPaletteForegroundColor( theme->backgroundColor() );
- static_cast<QWidget*>(child( "headerFrame" ))->setPaletteBackgroundColor( theme->backgroundColor() );
- static_cast<QWidget*>(child( "headerFrame" ))->setPaletteForegroundColor( theme->backgroundColor() );
+ TQT_TQWIDGET(child( "frame4" ))->setPaletteBackgroundColor( theme->backgroundColor() );
+ TQT_TQWIDGET(child( "frame4" ))->setPaletteForegroundColor( theme->backgroundColor() );
+ TQT_TQWIDGET(child( "frame5" ))->setPaletteBackgroundColor( theme->backgroundColor() );
+ TQT_TQWIDGET(child( "frame5" ))->setPaletteForegroundColor( theme->backgroundColor() );
+ TQT_TQWIDGET(child( "progressHeaderFrame" ))->setPaletteBackgroundColor( theme->backgroundColor() );
+ TQT_TQWIDGET(child( "progressHeaderFrame" ))->setPaletteForegroundColor( theme->backgroundColor() );
+ TQT_TQWIDGET(child( "headerFrame" ))->setPaletteBackgroundColor( theme->backgroundColor() );
+ TQT_TQWIDGET(child( "headerFrame" ))->setPaletteForegroundColor( theme->backgroundColor() );
}
}
diff --git a/src/k3bjobprogressdialog.h b/src/k3bjobprogressdialog.h
index 5bc1af2..dc58501 100644
--- a/src/k3bjobprogressdialog.h
+++ b/src/k3bjobprogressdialog.h
@@ -23,25 +23,25 @@
#include <k3bjobhandler.h>
-#include <qdatetime.h>
-#include <qfile.h>
+#include <tqdatetime.h>
+#include <tqfile.h>
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
+class TQVBoxLayout;
+class TQHBoxLayout;
+class TQGridLayout;
class KListView;
-class QFrame;
-class QGroupBox;
-class QLabel;
-class QListViewItem;
+class TQFrame;
+class TQGroupBox;
+class TQLabel;
+class TQListViewItem;
class KProgress;
-class QPushButton;
-class QTimer;
+class TQPushButton;
+class TQTimer;
class K3bJob;
class KCutLabel;
-class QCloseEvent;
-class QGridLayout;
-class QKeyEvent;
+class TQCloseEvent;
+class TQGridLayout;
+class TQKeyEvent;
class K3bJobProgressOSD;
class K3bThemedLabel;
@@ -49,9 +49,10 @@ class K3bThemedLabel;
class K3bJobProgressDialog : public KDialog, public K3bJobHandler
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bJobProgressDialog( QWidget* parent = 0,
+ K3bJobProgressDialog( TQWidget* tqparent = 0,
const char* name = 0,
bool showSubProgress = true,
bool modal = FALSE,
@@ -59,7 +60,7 @@ class K3bJobProgressDialog : public KDialog, public K3bJobHandler
virtual ~K3bJobProgressDialog();
virtual void setJob( K3bJob* job );
- void setExtraInfo( QWidget *extra );
+ void setExtraInfo( TQWidget *extra );
/**
* reimplemented for internal reasons
@@ -78,7 +79,7 @@ class K3bJobProgressDialog : public KDialog, public K3bJobHandler
*/
int startJob( K3bJob* job = 0 );
- QSize sizeHint() const;
+ TQSize tqsizeHint() const;
/**
* @reimplemented from K3bJobHandler
@@ -86,29 +87,29 @@ class K3bJobProgressDialog : public KDialog, public K3bJobHandler
int waitForMedia( K3bDevice::Device*,
int mediaState = K3bDevice::STATE_EMPTY,
int mediaType = K3bDevice::MEDIA_WRITABLE_CD,
- const QString& message = QString::null );
+ const TQString& message = TQString() );
/**
* @reimplemented from K3bJobHandler
*/
- bool questionYesNo( const QString& text,
- const QString& caption = QString::null,
- const QString& yesText = QString::null,
- const QString& noText = QString::null );
+ bool questionYesNo( const TQString& text,
+ const TQString& caption = TQString(),
+ const TQString& yesText = TQString(),
+ const TQString& noText = TQString() );
/**
* reimplemented from K3bJobHandler
*/
- void blockingInformation( const QString& text,
- const QString& caption = QString::null );
+ void blockingInformation( const TQString& text,
+ const TQString& caption = TQString() );
protected slots:
virtual void slotProcessedSize( int processed, int size );
virtual void slotProcessedSubSize( int processed, int size );
- virtual void slotInfoMessage( const QString& infoString, int type );
- virtual void slotDebuggingOutput( const QString&, const QString& );
- virtual void slotNewSubTask(const QString& name);
- virtual void slotNewTask(const QString& name);
+ virtual void slotInfoMessage( const TQString& infoString, int type );
+ virtual void slotDebuggingOutput( const TQString&, const TQString& );
+ virtual void slotNewSubTask(const TQString& name);
+ virtual void slotNewTask(const TQString& name);
virtual void slotFinished(bool);
virtual void slotCanceled();
virtual void slotStarted();
@@ -123,8 +124,8 @@ class K3bJobProgressDialog : public KDialog, public K3bJobHandler
virtual void slotThemeChanged();
protected:
- void closeEvent( QCloseEvent* );
- void keyPressEvent( QKeyEvent* e );
+ void closeEvent( TQCloseEvent* );
+ void keyPressEvent( TQKeyEvent* e );
void setupGUI();
void setupConnections();
@@ -135,34 +136,34 @@ class K3bJobProgressDialog : public KDialog, public K3bJobHandler
K3bThemedLabel* m_labelTask;
K3bThemedLabel* m_labelElapsedTime;
KCutLabel* m_labelSubTask;
- QLabel* m_labelSubProcessedSize;
+ TQLabel* m_labelSubProcessedSize;
KProgress* m_progressSubPercent;
- QLabel* m_labelProcessedSize;
+ TQLabel* m_labelProcessedSize;
KProgress* m_progressPercent;
- QFrame* m_frameExtraInfo;
- QPushButton* m_buttonCancel;
- QPushButton* m_buttonClose;
- QPushButton* m_buttonShowDebug;
+ TQFrame* m_frameExtraInfo;
+ TQPushButton* m_buttonCancel;
+ TQPushButton* m_buttonClose;
+ TQPushButton* m_buttonShowDebug;
K3bThemedLabel* m_pixLabel;
- QGridLayout* m_frameExtraInfoLayout;
+ TQGridLayout* m_frameExtraInfoLayout;
private:
class Private;
Private* d;
K3bJob* m_job;
- QTimer* m_timer;
- QTime m_startTime;
- QTime m_lastProgressUpdateTime;
+ TQTimer* m_timer;
+ TQTime m_startTime;
+ TQTime m_lastProgressUpdateTime;
K3bDebuggingOutputFile m_logFile;
- QMap<QString, QStringList> m_debugOutputMap;
+ TQMap<TQString, TQStringList> m_debugOutputMap;
bool m_bCanceled;
- QString m_plainCaption;
+ TQString m_plainCaption;
bool in_loop;
diff --git a/src/k3bjobprogressosd.cpp b/src/k3bjobprogressosd.cpp
index 0797c3a..99a8f0b 100644
--- a/src/k3bjobprogressosd.cpp
+++ b/src/k3bjobprogressosd.cpp
@@ -26,22 +26,22 @@
#include <klocale.h>
#include <kpopupmenu.h>
-#include <qpixmap.h>
-#include <qpainter.h>
-#include <qapplication.h>
+#include <tqpixmap.h>
+#include <tqpainter.h>
+#include <tqapplication.h>
#include <X11/Xlib.h>
-K3bJobProgressOSD::K3bJobProgressOSD( QWidget* parent, const char* name )
- : QWidget( parent, name, WType_TopLevel | WNoAutoErase | WStyle_Customize | WX11BypassWM | WStyle_StaysOnTop ),
+K3bJobProgressOSD::K3bJobProgressOSD( TQWidget* tqparent, const char* name )
+ : TQWidget( tqparent, name, WType_TopLevel | WNoAutoErase | WStyle_Customize | WX11BypassWM | WStyle_StaysOnTop ),
m_dirty(true),
m_progress(0),
m_dragging(false),
m_screen(0),
m_position(s_outerMargin, s_outerMargin)
{
- setFocusPolicy( NoFocus );
+ setFocusPolicy( TQ_NoFocus );
setBackgroundMode( NoBackground );
// dummy size
@@ -50,10 +50,10 @@ K3bJobProgressOSD::K3bJobProgressOSD( QWidget* parent, const char* name )
// make sure we are always visible
KWin::setOnAllDesktops( winId(), true );
- connect( k3bappcore->themeManager(), SIGNAL(themeChanged()),
- this, SLOT(refresh()) );
- connect( kapp, SIGNAL(appearanceChanged()),
- this, SLOT(refresh()) );
+ connect( k3bappcore->themeManager(), TQT_SIGNAL(themeChanged()),
+ this, TQT_SLOT(refresh()) );
+ connect( kapp, TQT_SIGNAL(appearanceChanged()),
+ this, TQT_SLOT(refresh()) );
}
@@ -70,11 +70,11 @@ void K3bJobProgressOSD::show()
if( m_dirty )
renderOSD();
- QWidget::show();
+ TQWidget::show();
}
-void K3bJobProgressOSD::setText( const QString& text )
+void K3bJobProgressOSD::setText( const TQString& text )
{
if( m_text != text ) {
m_text = text;
@@ -92,7 +92,7 @@ void K3bJobProgressOSD::setProgress( int p )
}
-void K3bJobProgressOSD::setPosition( const QPoint& p )
+void K3bJobProgressOSD::setPosition( const TQPoint& p )
{
m_position = p;
reposition();
@@ -118,21 +118,21 @@ void K3bJobProgressOSD::renderOSD()
// calculate needed size
if( K3bTheme* theme = k3bappcore->themeManager()->currentTheme() ) {
- QPixmap icon = KGlobal::iconLoader()->loadIcon( "k3b", KIcon::NoGroup, 32 );
+ TQPixmap icon = KGlobal::iconLoader()->loadIcon( "k3b", KIcon::NoGroup, 32 );
int margin = 10;
int textWidth = fontMetrics().width( m_text );
// do not change the size every time the text changes, just in case we are too small
- QSize newSize( QMAX( QMAX( 2*margin + icon.width() + margin + textWidth, 100 ), width() ),
- QMAX( 2*margin + icon.height(), 2*margin + fontMetrics().height()*2 ) );
+ TQSize newSize( TQMAX( TQMAX( 2*margin + icon.width() + margin + textWidth, 100 ), width() ),
+ TQMAX( 2*margin + icon.height(), 2*margin + fontMetrics().height()*2 ) );
m_osdBuffer.resize( newSize );
- QPainter p( &m_osdBuffer );
+ TQPainter p( &m_osdBuffer );
p.setPen( theme->foregroundColor() );
// draw the background and the frame
- QRect thisRect( 0, 0, newSize.width(), newSize.height() );
+ TQRect thisRect( 0, 0, newSize.width(), newSize.height() );
p.fillRect( thisRect, theme->backgroundColor() );
p.drawRect( thisRect );
@@ -140,14 +140,14 @@ void K3bJobProgressOSD::renderOSD()
p.drawPixmap( margin, (newSize.height()-icon.height())/2, icon );
// draw the text
- QSize textSize = fontMetrics().size( 0, m_text );
+ TQSize textSize = fontMetrics().size( 0, m_text );
int textX = 2*margin + icon.width();
int textY = margin + fontMetrics().ascent();
p.drawText( textX, textY, m_text );
// draw the progress
textY += fontMetrics().descent() + 4;
- QRect progressRect( textX, textY, newSize.width()-textX-margin, newSize.height()-textY-margin );
+ TQRect progressRect( textX, textY, newSize.width()-textX-margin, newSize.height()-textY-margin );
p.drawRect( progressRect );
progressRect.setWidth( m_progress > 0 ? m_progress*progressRect.width()/100 : 0 );
p.fillRect( progressRect, theme->foregroundColor() );
@@ -164,19 +164,19 @@ void K3bJobProgressOSD::renderOSD()
void K3bJobProgressOSD::setScreen( int screen )
{
- const int n = QApplication::desktop()->numScreens();
+ const int n = TQApplication::desktop()->numScreens();
m_screen = (screen >= n) ? n-1 : screen;
reposition();
}
-void K3bJobProgressOSD::reposition( QSize newSize )
+void K3bJobProgressOSD::reposition( TQSize newSize )
{
if( !newSize.isValid() )
newSize = size();
- QPoint newPos = m_position;
- const QRect& screen = QApplication::desktop()->screenGeometry( m_screen );
+ TQPoint newPos = m_position;
+ const TQRect& screen = TQApplication::desktop()->screenGeometry( m_screen );
// now to properly resize if put into one of the corners we interpret the position
// depending on the quadrant
@@ -201,21 +201,21 @@ void K3bJobProgressOSD::reposition( QSize newSize )
}
-void K3bJobProgressOSD::paintEvent( QPaintEvent* )
+void K3bJobProgressOSD::paintEvent( TQPaintEvent* )
{
bitBlt( this, 0, 0, &m_osdBuffer );
}
-void K3bJobProgressOSD::mousePressEvent( QMouseEvent* e )
+void K3bJobProgressOSD::mousePressEvent( TQMouseEvent* e )
{
m_dragOffset = e->pos();
- if( e->button() == LeftButton && !m_dragging ) {
+ if( e->button() == Qt::LeftButton && !m_dragging ) {
grabMouse( KCursor::sizeAllCursor() );
m_dragging = true;
}
- else if( e->button() == RightButton ) {
+ else if( e->button() == Qt::RightButton ) {
KPopupMenu m;
if( m.insertItem( i18n("Hide OSD") ) == m.exec( e->globalPos() ) )
hide();
@@ -223,7 +223,7 @@ void K3bJobProgressOSD::mousePressEvent( QMouseEvent* e )
}
-void K3bJobProgressOSD::mouseReleaseEvent( QMouseEvent* )
+void K3bJobProgressOSD::mouseReleaseEvent( TQMouseEvent* )
{
if( m_dragging ) {
m_dragging = false;
@@ -232,16 +232,16 @@ void K3bJobProgressOSD::mouseReleaseEvent( QMouseEvent* )
}
-void K3bJobProgressOSD::mouseMoveEvent( QMouseEvent* e )
+void K3bJobProgressOSD::mouseMoveEvent( TQMouseEvent* e )
{
if( m_dragging && this == mouseGrabber() ) {
// check if the osd has been dragged out of the current screen
- int currentScreen = QApplication::desktop()->screenNumber( e->globalPos() );
+ int currentScreen = TQApplication::desktop()->screenNumber( e->globalPos() );
if( currentScreen != -1 )
m_screen = currentScreen;
- const QRect& screen = QApplication::desktop()->screenGeometry( m_screen );
+ const TQRect& screen = TQApplication::desktop()->screenGeometry( m_screen );
// make sure the position is valid
m_position = fixupPosition( e->globalPos() - m_dragOffset - screen.topLeft() );
@@ -260,10 +260,10 @@ void K3bJobProgressOSD::mouseMoveEvent( QMouseEvent* e )
}
-QPoint K3bJobProgressOSD::fixupPosition( const QPoint& pp )
+TQPoint K3bJobProgressOSD::fixupPosition( const TQPoint& pp )
{
- QPoint p(pp);
- const QRect& screen = QApplication::desktop()->screenGeometry( m_screen );
+ TQPoint p(pp);
+ const TQRect& screen = TQApplication::desktop()->screenGeometry( m_screen );
int maxY = screen.height() - height() - s_outerMargin;
int maxX = screen.width() - width() - s_outerMargin;
diff --git a/src/k3bjobprogressosd.h b/src/k3bjobprogressosd.h
index 1bb9221..8d7d886 100644
--- a/src/k3bjobprogressosd.h
+++ b/src/k3bjobprogressosd.h
@@ -16,11 +16,11 @@
#ifndef _K3B_JOB_PROGRESS_OSD_H_
#define _K3B_JOB_PROGRESS_OSD_H_
-#include <qwidget.h>
-#include <qpixmap.h>
+#include <tqwidget.h>
+#include <tqpixmap.h>
-class QPaintEvent;
-class QMouseEvent;
+class TQPaintEvent;
+class TQMouseEvent;
class KConfigBase;
/**
@@ -28,23 +28,24 @@ class KConfigBase;
*
* Insprired by Amarok's OSD (I also took a bit of their code. :)
*/
-class K3bJobProgressOSD : public QWidget
+class K3bJobProgressOSD : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bJobProgressOSD( QWidget* parent = 0, const char* name = 0 );
+ K3bJobProgressOSD( TQWidget* tqparent = 0, const char* name = 0 );
~K3bJobProgressOSD();
int screen() const { return m_screen; }
- const QPoint& position() const { return m_position; }
+ const TQPoint& position() const { return m_position; }
void readSettings( KConfigBase* );
void saveSettings( KConfigBase* );
public slots:
void setScreen( int );
- void setText( const QString& );
+ void setText( const TQString& );
void setProgress( int );
/**
@@ -53,17 +54,17 @@ class K3bJobProgressOSD : public QWidget
* If for example the x coordinate is bigger than half the screen
* width it refers to the left edge of the widget.
*/
- void setPosition( const QPoint& );
+ void setPosition( const TQPoint& );
void show();
protected:
- void paintEvent( QPaintEvent* );
- void mousePressEvent( QMouseEvent* );
- void mouseReleaseEvent( QMouseEvent* );
- void mouseMoveEvent( QMouseEvent* );
+ void paintEvent( TQPaintEvent* );
+ void mousePressEvent( TQMouseEvent* );
+ void mouseReleaseEvent( TQMouseEvent* );
+ void mouseMoveEvent( TQMouseEvent* );
void renderOSD();
- void reposition( QSize size = QSize() );
+ void reposition( TQSize size = TQSize() );
protected slots:
void refresh();
@@ -72,17 +73,17 @@ class K3bJobProgressOSD : public QWidget
/**
* Ensure that the position is inside m_screen
*/
- QPoint fixupPosition( const QPoint& p );
+ TQPoint fixupPosition( const TQPoint& p );
static const int s_outerMargin = 15;
- QPixmap m_osdBuffer;
+ TQPixmap m_osdBuffer;
bool m_dirty;
- QString m_text;
+ TQString m_text;
int m_progress;
bool m_dragging;
- QPoint m_dragOffset;
+ TQPoint m_dragOffset;
int m_screen;
- QPoint m_position;
+ TQPoint m_position;
};
#endif
diff --git a/src/k3blsofwrapper.cpp b/src/k3blsofwrapper.cpp
index 56d5d5b..0362de6 100644
--- a/src/k3blsofwrapper.cpp
+++ b/src/k3blsofwrapper.cpp
@@ -19,13 +19,13 @@
#include <k3bprocess.h>
#include <k3bglobals.h>
-#include <qfile.h>
-#include <qfileinfo.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
#include <sys/types.h>
#include <unistd.h>
-static K3bLsofWrapper::Process createProcess( const QString& name, int pid )
+static K3bLsofWrapper::Process createProcess( const TQString& name, int pid )
{
K3bLsofWrapper::Process p;
p.name = name;
@@ -37,8 +37,8 @@ static K3bLsofWrapper::Process createProcess( const QString& name, int pid )
class K3bLsofWrapper::Private
{
public:
- QValueList<Process> apps;
- QString lsofBin;
+ TQValueList<Process> apps;
+ TQString lsofBin;
};
@@ -77,10 +77,10 @@ bool K3bLsofWrapper::checkDevice( K3bDevice::Device* dev )
//
// now process its output
- QStringList l = QStringList::split( "\n", out.output() );
- for( QStringList::iterator it = l.begin(); it != l.end(); ++it ) {
+ TQStringList l = TQStringList::split( "\n", out.output() );
+ for( TQStringList::iterator it = l.begin(); it != l.end(); ++it ) {
int pid = (*it).mid(1).toInt();
- QString app = (*(++it)).mid(1);
+ TQString app = (*(++it)).mid(1);
kdDebug() << "(K3bLsofWrapper) matched: app: " << app << " pid: " << pid << endl;
@@ -93,7 +93,7 @@ bool K3bLsofWrapper::checkDevice( K3bDevice::Device* dev )
}
-const QValueList<K3bLsofWrapper::Process>& K3bLsofWrapper::usingApplications() const
+const TQValueList<K3bLsofWrapper::Process>& K3bLsofWrapper::usingApplications() const
{
return d->apps;
}
diff --git a/src/k3blsofwrapper.h b/src/k3blsofwrapper.h
index 8ab11dc..aeaa51c 100644
--- a/src/k3blsofwrapper.h
+++ b/src/k3blsofwrapper.h
@@ -16,7 +16,7 @@
#ifndef _K3B_LSOF_WRAPPER_H_
#define _K3B_LSOF_WRAPPER_H_
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
namespace K3bDevice {
class Device;
@@ -38,7 +38,7 @@ class K3bLsofWrapper
bool checkDevice( K3bDevice::Device* );
struct Process {
- QString name;
+ TQString name;
int pid;
};
@@ -47,7 +47,7 @@ class K3bLsofWrapper
* handle on the device used in the last successful call
* to checkDevice.
*/
- const QValueList<Process>& usingApplications() const;
+ const TQValueList<Process>& usingApplications() const;
private:
bool findLsofExecutable();
diff --git a/src/k3blsofwrapperdialog.cpp b/src/k3blsofwrapperdialog.cpp
index e081e38..280def8 100644
--- a/src/k3blsofwrapperdialog.cpp
+++ b/src/k3blsofwrapperdialog.cpp
@@ -23,28 +23,28 @@
#include <klocale.h>
#include <kmessagebox.h>
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <sys/types.h>
#include <signal.h>
-static QString joinProcessNames( const QValueList<K3bLsofWrapper::Process>& apps )
+static TQString joinProcessNames( const TQValueList<K3bLsofWrapper::Process>& apps )
{
- QStringList l;
- for( QValueList<K3bLsofWrapper::Process>::const_iterator it = apps.begin();
+ TQStringList l;
+ for( TQValueList<K3bLsofWrapper::Process>::const_iterator it = apps.begin();
it != apps.end(); ++it )
l.append( (*it).name );
return l.join( ", " );
}
-K3bLsofWrapperDialog::K3bLsofWrapperDialog( QWidget* parent )
+K3bLsofWrapperDialog::K3bLsofWrapperDialog( TQWidget* tqparent )
: KDialogBase( KDialogBase::Swallow,
i18n("Device in use"),
Close|User1|User2,
Close,
- parent,
+ tqparent,
0,
true,
true,
@@ -56,8 +56,8 @@ K3bLsofWrapperDialog::K3bLsofWrapperDialog( QWidget* parent )
m_label = new K3bRichTextLabel( this );
setMainWidget( m_label );
- connect( this, SIGNAL(user1Clicked()), SLOT(slotQuitOtherApps()) );
- connect( this, SIGNAL(user2Clicked()), SLOT(slotCheckDevice()) );
+ connect( this, TQT_SIGNAL(user1Clicked()), TQT_SLOT(slotQuitOtherApps()) );
+ connect( this, TQT_SIGNAL(user2Clicked()), TQT_SLOT(slotCheckDevice()) );
}
@@ -70,7 +70,7 @@ bool K3bLsofWrapperDialog::slotCheckDevice()
{
K3bLsofWrapper lsof;
if( lsof.checkDevice( m_device ) ) {
- const QValueList<K3bLsofWrapper::Process>& apps = lsof.usingApplications();
+ const TQValueList<K3bLsofWrapper::Process>& apps = lsof.usingApplications();
if( apps.count() > 0 ) {
m_label->setText( i18n("<p>Device <b>'%1'</b> is already in use by other applications "
"(<em>%2</em>)."
@@ -79,9 +79,9 @@ bool K3bLsofWrapperDialog::slotCheckDevice()
"<p><em>Hint: Sometimes shutting down an application does not "
"happen instantly. In that case you might have to use the '%3' "
"button.")
- .arg( m_device->vendor() + " - " + m_device->description() )
- .arg( joinProcessNames(apps) )
- .arg( actionButton( User2 )->text() ) );
+ .tqarg( m_device->vendor() + " - " + m_device->description() )
+ .tqarg( joinProcessNames(apps) )
+ .tqarg( actionButton( User2 )->text() ) );
return true;
}
}
@@ -97,12 +97,12 @@ void K3bLsofWrapperDialog::slotQuitOtherApps()
{
K3bLsofWrapper lsof;
if( lsof.checkDevice( m_device ) ) {
- const QValueList<K3bLsofWrapper::Process>& apps = lsof.usingApplications();
+ const TQValueList<K3bLsofWrapper::Process>& apps = lsof.usingApplications();
if( apps.count() > 0 ) {
if( KMessageBox::warningYesNo( this,
i18n("<p>Do you really want K3b to kill the following processes: <em>")
+ joinProcessNames(apps) ) == KMessageBox::Yes ) {
- for( QValueList<K3bLsofWrapper::Process>::const_iterator it = apps.begin();
+ for( TQValueList<K3bLsofWrapper::Process>::const_iterator it = apps.begin();
it != apps.end(); ++it )
::kill( (*it).pid, SIGTERM );
}
@@ -116,9 +116,9 @@ void K3bLsofWrapperDialog::slotQuitOtherApps()
}
-void K3bLsofWrapperDialog::checkDevice( K3bDevice::Device* dev, QWidget* parent )
+void K3bLsofWrapperDialog::checkDevice( K3bDevice::Device* dev, TQWidget* tqparent )
{
- K3bLsofWrapperDialog dlg( parent );
+ K3bLsofWrapperDialog dlg( tqparent );
dlg.m_device = dev;
if( dlg.slotCheckDevice() )
dlg.exec();
diff --git a/src/k3blsofwrapperdialog.h b/src/k3blsofwrapperdialog.h
index e00da0b..ed08ded 100644
--- a/src/k3blsofwrapperdialog.h
+++ b/src/k3blsofwrapperdialog.h
@@ -26,6 +26,7 @@ namespace K3bDevice {
class K3bLsofWrapperDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
~K3bLsofWrapperDialog();
@@ -37,14 +38,14 @@ class K3bLsofWrapperDialog : public KDialogBase
*
* If the device is not in use this method simply returns.
*/
- static void checkDevice( K3bDevice::Device* dev, QWidget* parent = 0 );
+ static void checkDevice( K3bDevice::Device* dev, TQWidget* tqparent = 0 );
private slots:
bool slotCheckDevice();
void slotQuitOtherApps();
private:
- K3bLsofWrapperDialog( QWidget* parent );
+ K3bLsofWrapperDialog( TQWidget* tqparent );
K3bDevice::Device* m_device;
K3bRichTextLabel* m_label;
diff --git a/src/k3bmediacache.cpp b/src/k3bmediacache.cpp
index fa9f51b..98eac9f 100644
--- a/src/k3bmediacache.cpp
+++ b/src/k3bmediacache.cpp
@@ -25,22 +25,22 @@
#include <kapplication.h>
#include <klocale.h>
-#include <qthread.h>
-#include <qmutex.h>
-#include <qevent.h>
+#include <tqthread.h>
+#include <tqmutex.h>
+#include <tqevent.h>
// ////////////////////////////////////////////////////////////////////////////////
// MEDIA CACHE SUPPORT CLASSES
// ////////////////////////////////////////////////////////////////////////////////
-class K3bMediaCache::MediaChangeEvent : public QCustomEvent
+class K3bMediaCache::MediaChangeEvent : public TQCustomEvent
{
public:
static const int EventCode;
MediaChangeEvent( K3bDevice::Device* dev )
- : QCustomEvent( EventCode ),
+ : TQCustomEvent( EventCode ),
m_device( dev ) {}
K3bDevice::Device* device() const { return m_device; }
@@ -49,7 +49,7 @@ private:
K3bDevice::Device* m_device;
};
-const int K3bMediaCache::MediaChangeEvent::EventCode = QEvent::User + 22;
+const int K3bMediaCache::MediaChangeEvent::EventCode = TQEvent::User + 22;
class K3bMediaCache::DeviceEntry
@@ -62,7 +62,7 @@ public:
int blockedId;
- QMutex mutex;
+ TQMutex mutex;
K3bMediaCache::PollThread* thread;
@@ -74,7 +74,7 @@ public:
};
-class K3bMediaCache::PollThread : public QThread
+class K3bMediaCache::PollThread : public TQThread
{
public:
PollThread( K3bMediaCache::DeviceEntry* de )
@@ -140,7 +140,7 @@ void K3bMediaCache::PollThread::run()
// inform the media cache about the media change
//
if( m_deviceEntry->blockedId == 0 )
- QApplication::postEvent( m_deviceEntry->cache,
+ TQApplication::postEvent( m_deviceEntry->cache,
new K3bMediaCache::MediaChangeEvent( m_deviceEntry->medium.device() ) );
// the information is valid. let the info go.
@@ -148,7 +148,7 @@ void K3bMediaCache::PollThread::run()
}
if( m_deviceEntry->blockedId == 0 )
- QThread::sleep( 2 );
+ TQThread::sleep( 2 );
}
}
@@ -161,8 +161,8 @@ void K3bMediaCache::PollThread::run()
// ////////////////////////////////////////////////////////////////////////////////
-K3bMediaCache::K3bMediaCache( QObject* parent )
- : QObject( parent )
+K3bMediaCache::K3bMediaCache( TQObject* tqparent )
+ : TQObject( tqparent )
{
}
@@ -282,26 +282,26 @@ K3bDevice::CdText K3bMediaCache::cdText( K3bDevice::Device* dev )
}
-QValueList<int> K3bMediaCache::writingSpeeds( K3bDevice::Device* dev )
+TQValueList<int> K3bMediaCache::writingSpeeds( K3bDevice::Device* dev )
{
if( DeviceEntry* e = findDeviceEntry( dev ) ) {
e->mutex.lock();
- QValueList<int> ws = e->medium.writingSpeeds();
+ TQValueList<int> ws = e->medium.writingSpeeds();
e->mutex.unlock();
return ws;
}
else
- return QValueList<int>();
+ return TQValueList<int>();
}
-QString K3bMediaCache::mediumString( K3bDevice::Device* device, bool useContent )
+TQString K3bMediaCache::mediumString( K3bDevice::Device* device, bool useContent )
{
if( DeviceEntry* e = findDeviceEntry( device ) ) {
return e->medium.shortString( useContent );
}
else
- return QString::null;
+ return TQString();
}
@@ -310,13 +310,13 @@ void K3bMediaCache::clearDeviceList()
kdDebug() << k_funcinfo << endl;
// make all the threads stop
- for( QMap<K3bDevice::Device*, DeviceEntry*>::iterator it = m_deviceMap.begin();
+ for( TQMap<K3bDevice::Device*, DeviceEntry*>::iterator it = m_deviceMap.begin();
it != m_deviceMap.end(); ++it ) {
it.data()->blockedId = 1;
}
// and remove them
- for( QMap<K3bDevice::Device*, DeviceEntry*>::iterator it = m_deviceMap.begin();
+ for( TQMap<K3bDevice::Device*, DeviceEntry*>::iterator it = m_deviceMap.begin();
it != m_deviceMap.end(); ++it ) {
kdDebug() << k_funcinfo << " waiting for info thread " << it.key()->blockDeviceName() << " to finish" << endl;
it.data()->thread->wait();
@@ -330,23 +330,23 @@ void K3bMediaCache::clearDeviceList()
void K3bMediaCache::buildDeviceList( K3bDevice::DeviceManager* dm )
{
// remember blocked ids
- QMap<K3bDevice::Device*, int> blockedIds;
- for( QMap<K3bDevice::Device*, DeviceEntry*>::iterator it = m_deviceMap.begin();
+ TQMap<K3bDevice::Device*, int> blockedIds;
+ for( TQMap<K3bDevice::Device*, DeviceEntry*>::iterator it = m_deviceMap.begin();
it != m_deviceMap.end(); ++it )
blockedIds.insert( it.key(), it.data()->blockedId );
clearDeviceList();
- const QPtrList<K3bDevice::Device>& devices = dm->allDevices();
- for( QPtrListIterator<K3bDevice::Device> it( devices ); *it; ++it ) {
+ const TQPtrList<K3bDevice::Device>& devices = dm->allDevices();
+ for( TQPtrListIterator<K3bDevice::Device> it( devices ); *it; ++it ) {
m_deviceMap.insert( *it, new DeviceEntry( this, *it ) );
- QMap<K3bDevice::Device*, int>::const_iterator bi_it = blockedIds.find( *it );
+ TQMap<K3bDevice::Device*, int>::const_iterator bi_it = blockedIds.tqfind( *it );
if( bi_it != blockedIds.end() )
m_deviceMap[*it]->blockedId = bi_it.data();
}
// start all the polling threads
- for( QMap<K3bDevice::Device*, DeviceEntry*>::iterator it = m_deviceMap.begin();
+ for( TQMap<K3bDevice::Device*, DeviceEntry*>::iterator it = m_deviceMap.begin();
it != m_deviceMap.end(); ++it ) {
if( !it.data()->blockedId )
it.data()->thread->start();
@@ -356,7 +356,7 @@ void K3bMediaCache::buildDeviceList( K3bDevice::DeviceManager* dm )
K3bMediaCache::DeviceEntry* K3bMediaCache::findDeviceEntry( K3bDevice::Device* dev )
{
- QMap<K3bDevice::Device*, DeviceEntry*>::iterator it = m_deviceMap.find( dev );
+ TQMap<K3bDevice::Device*, DeviceEntry*>::iterator it = m_deviceMap.tqfind( dev );
if( it != m_deviceMap.end() )
return it.data();
else
@@ -364,7 +364,7 @@ K3bMediaCache::DeviceEntry* K3bMediaCache::findDeviceEntry( K3bDevice::Device* d
}
-void K3bMediaCache::customEvent( QCustomEvent* e )
+void K3bMediaCache::customEvent( TQCustomEvent* e )
{
if( e->type() == MediaChangeEvent::EventCode )
emit mediumChanged( static_cast<MediaChangeEvent*>( e )->device() );
diff --git a/src/k3bmediacache.h b/src/k3bmediacache.h
index dd0dd0d..ad13fdb 100644
--- a/src/k3bmediacache.h
+++ b/src/k3bmediacache.h
@@ -17,9 +17,9 @@
#ifndef _K3B_MEDIA_CACHE_H_
#define _K3B_MEDIA_CACHE_H_
-#include <qobject.h>
+#include <tqobject.h>
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include <k3bdevice.h>
#include <k3btoc.h>
@@ -32,7 +32,7 @@ namespace K3bDevice {
class DeviceManager;
}
-class QCustomEvent;
+class TQCustomEvent;
/**
@@ -48,12 +48,13 @@ class QCustomEvent;
*
* To start the media caching call buildDeviceList().
*/
-class K3bMediaCache : public QObject
+class K3bMediaCache : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bMediaCache( QObject* parent = 0 );
+ K3bMediaCache( TQObject* tqparent = 0 );
~K3bMediaCache();
/**
@@ -101,12 +102,12 @@ class K3bMediaCache : public QObject
/**
* Read cached supported writing speeds.
*/
- QValueList<int> writingSpeeds( K3bDevice::Device* );
+ TQValueList<int> writingSpeeds( K3bDevice::Device* );
/**
* \see K3bMedium::shortString()
*/
- QString mediumString( K3bDevice::Device* device, bool useContent = true );
+ TQString mediumString( K3bDevice::Device* device, bool useContent = true );
signals:
/**
@@ -139,10 +140,10 @@ class K3bMediaCache : public QObject
class DeviceEntry;
class MediaChangeEvent;
- QMap<K3bDevice::Device*, DeviceEntry*> m_deviceMap;
+ TQMap<K3bDevice::Device*, DeviceEntry*> m_deviceMap;
DeviceEntry* findDeviceEntry( K3bDevice::Device* );
- void customEvent( QCustomEvent* );
+ void customEvent( TQCustomEvent* );
};
#endif
diff --git a/src/k3bmediacontentsview.cpp b/src/k3bmediacontentsview.cpp
index 4f42595..2a2671a 100644
--- a/src/k3bmediacontentsview.cpp
+++ b/src/k3bmediacontentsview.cpp
@@ -18,10 +18,10 @@
#include <k3bmediacache.h>
#include <k3bapplication.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpixmap.h>
-#include <qwidgetstack.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpixmap.h>
+#include <tqwidgetstack.h>
class K3bMediaContentsView::Private
@@ -40,9 +40,9 @@ K3bMediaContentsView::K3bMediaContentsView( bool withHeader,
int mediumContent,
int mediumTypes,
int mediumState,
- QWidget* parent,
+ TQWidget* tqparent,
const char* name )
- : K3bContentsView( withHeader, parent, name )
+ : K3bContentsView( withHeader, tqparent, name )
{
d = new Private;
d->supportedMediumContent = mediumContent;
@@ -50,8 +50,8 @@ K3bMediaContentsView::K3bMediaContentsView( bool withHeader,
d->supportedMediumStates = mediumState;
d->autoReload = true;
- connect( k3bappcore->mediaCache(), SIGNAL(mediumChanged(K3bDevice::Device*)),
- this, SLOT(slotMediumChanged(K3bDevice::Device*)) );
+ connect( k3bappcore->mediaCache(), TQT_SIGNAL(mediumChanged(K3bDevice::Device*)),
+ this, TQT_SLOT(slotMediumChanged(K3bDevice::Device*)) );
}
@@ -131,9 +131,9 @@ void K3bMediaContentsView::enableInteraction( bool enable )
void K3bMediaContentsView::slotMediumChanged( K3bDevice::Device* dev )
{
- // FIXME: derive a K3bContentsStack from QWidgetStack and let it set an active flag
+ // FIXME: derive a K3bContentsStack from TQWidgetStack and let it set an active flag
// to replace this hack
- if( QWidgetStack* stack = dynamic_cast<QWidgetStack*>( parentWidget() ) )
+ if( TQWidgetStack* stack = dynamic_cast<TQWidgetStack*>( tqparentWidget() ) )
if( stack->visibleWidget() != this )
return;
diff --git a/src/k3bmediacontentsview.h b/src/k3bmediacontentsview.h
index 7e60838..310e180 100644
--- a/src/k3bmediacontentsview.h
+++ b/src/k3bmediacontentsview.h
@@ -34,6 +34,7 @@ class K3bThemedHeader;
class K3bMediaContentsView : public K3bContentsView
{
Q_OBJECT
+ TQ_OBJECT
public:
virtual ~K3bMediaContentsView();
@@ -90,7 +91,7 @@ class K3bMediaContentsView : public K3bContentsView
int mediumContent,
int mediumTypes,
int mediumState,
- QWidget* parent = 0,
+ TQWidget* tqparent = 0,
const char* name = 0 );
/**
diff --git a/src/k3bmediaselectioncombobox.cpp b/src/k3bmediaselectioncombobox.cpp
index df51566..f9a398f 100644
--- a/src/k3bmediaselectioncombobox.cpp
+++ b/src/k3bmediaselectioncombobox.cpp
@@ -27,19 +27,19 @@
#include <kdebug.h>
#include <klocale.h>
-#include <qfont.h>
-#include <qmap.h>
-#include <qvaluevector.h>
-#include <qtooltip.h>
-#include <qlistbox.h>
+#include <tqfont.h>
+#include <tqmap.h>
+#include <tqvaluevector.h>
+#include <tqtooltip.h>
+#include <tqlistbox.h>
-class K3bMediaSelectionComboBox::ToolTip : public QToolTip
+class K3bMediaSelectionComboBox::ToolTip : public TQToolTip
{
public:
ToolTip( K3bMediaSelectionComboBox* box );
- void maybeTip( const QPoint &pos );
+ void maybeTip( const TQPoint &pos );
private:
K3bMediaSelectionComboBox* m_box;
@@ -47,24 +47,24 @@ private:
K3bMediaSelectionComboBox::ToolTip::ToolTip( K3bMediaSelectionComboBox* box )
- : QToolTip( box->listBox()->viewport() ),
+ : TQToolTip( box->listBox()->viewport() ),
m_box( box )
{
}
-void K3bMediaSelectionComboBox::ToolTip::maybeTip( const QPoint& pos )
+void K3bMediaSelectionComboBox::ToolTip::maybeTip( const TQPoint& pos )
{
- if( !parentWidget() || !m_box )
+ if( !tqparentWidget() || !m_box )
return;
- QListBoxItem* item = m_box->listBox()->itemAt( pos );
+ TQListBoxItem* item = m_box->listBox()->itemAt( pos );
if( !item )
return;
int index = m_box->listBox()->index( item );
if( K3bDevice::Device* dev = m_box->deviceAt( index ) ) {
- tip( m_box->listBox()->itemRect( item ),
+ tip( m_box->listBox()->tqitemRect( item ),
m_box->mediumToolTip( k3bappcore->mediaCache()->medium( dev ) ) );
}
}
@@ -80,24 +80,24 @@ public:
: ignoreDevice( 0 ) {
}
- QMap<K3bDevice::Device*, int> deviceIndexMap;
- QValueVector<K3bDevice::Device*> devices;
+ TQMap<K3bDevice::Device*, int> deviceIndexMap;
+ TQValueVector<K3bDevice::Device*> devices;
K3bDevice::Device* ignoreDevice;
// medium strings for every entry
- QMap<QString, int> mediaStringMap;
+ TQMap<TQString, int> mediaStringMap;
int wantedMediumType;
int wantedMediumState;
int wantedMediumContent;
- QFont font;
+ TQFont font;
};
-K3bMediaSelectionComboBox::K3bMediaSelectionComboBox( QWidget* parent )
- : KComboBox( false, parent )
+K3bMediaSelectionComboBox::K3bMediaSelectionComboBox( TQWidget* tqparent )
+ : KComboBox( false, tqparent )
{
d = new Private();
@@ -108,14 +108,14 @@ K3bMediaSelectionComboBox::K3bMediaSelectionComboBox( QWidget* parent )
d->font = font();
- connect( this, SIGNAL(activated(int)),
- this, SLOT(slotActivated(int)) );
- connect( k3bcore->deviceManager(), SIGNAL(changed(K3bDevice::DeviceManager*)),
- this, SLOT(slotDeviceManagerChanged(K3bDevice::DeviceManager*)) );
- connect( k3bappcore->mediaCache(), SIGNAL(mediumChanged(K3bDevice::Device*)),
- this, SLOT(slotMediumChanged(K3bDevice::Device*)) );
- connect( this, SIGNAL(selectionChanged(K3bDevice::Device*)),
- this, SLOT(slotUpdateToolTip(K3bDevice::Device*)) );
+ connect( this, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotActivated(int)) );
+ connect( k3bcore->deviceManager(), TQT_SIGNAL(changed(K3bDevice::DeviceManager*)),
+ this, TQT_SLOT(slotDeviceManagerChanged(K3bDevice::DeviceManager*)) );
+ connect( k3bappcore->mediaCache(), TQT_SIGNAL(mediumChanged(K3bDevice::Device*)),
+ this, TQT_SLOT(slotMediumChanged(K3bDevice::Device*)) );
+ connect( this, TQT_SIGNAL(selectionChanged(K3bDevice::Device*)),
+ this, TQT_SLOT(slotUpdateToolTip(K3bDevice::Device*)) );
updateMedia();
@@ -146,9 +146,9 @@ K3bDevice::Device* K3bMediaSelectionComboBox::selectedDevice() const
}
-QValueList<K3bDevice::Device*> K3bMediaSelectionComboBox::allDevices() const
+TQValueList<K3bDevice::Device*> K3bMediaSelectionComboBox::allDevices() const
{
- QValueList<K3bDevice::Device*> l;
+ TQValueList<K3bDevice::Device*> l;
for( unsigned int i = 0; i < d->devices.count(); ++i )
l.append( d->devices[i] );
return l;
@@ -157,7 +157,7 @@ QValueList<K3bDevice::Device*> K3bMediaSelectionComboBox::allDevices() const
void K3bMediaSelectionComboBox::setSelectedDevice( K3bDevice::Device* dev )
{
- if( dev && d->deviceIndexMap.contains( dev ) ) {
+ if( dev && d->deviceIndexMap.tqcontains( dev ) ) {
setCurrentItem( d->deviceIndexMap[dev] );
emit selectionChanged( dev );
}
@@ -234,7 +234,7 @@ void K3bMediaSelectionComboBox::clear()
void K3bMediaSelectionComboBox::showNoMediumMessage()
{
// make it italic
- QFont f( d->font );
+ TQFont f( d->font );
f.setItalic( true );
setFont( f );
@@ -248,7 +248,7 @@ void K3bMediaSelectionComboBox::updateMedia()
setFont( d->font );
// remember set of devices
- QValueVector<K3bDevice::Device*> oldDevices = d->devices;
+ TQValueVector<K3bDevice::Device*> oldDevices = d->devices;
// remember last selected medium
K3bDevice::Device* selected = selectedDevice();
@@ -264,7 +264,7 @@ void K3bMediaSelectionComboBox::updateMedia()
bool rwOnly = !( wantedMediumType() & (K3bDevice::MEDIA_CD_ROM|K3bDevice::MEDIA_DVD_ROM) );
bool dvdOnly = !( wantedMediumType() & (K3bDevice::MEDIA_CD_ROM|K3bDevice::MEDIA_WRITABLE_CD) );
- QPtrList<K3bDevice::Device> devices = k3bcore->deviceManager()->allDevices();
+ TQPtrList<K3bDevice::Device> devices = k3bcore->deviceManager()->allDevices();
if( dvdOnly ) {
if( rwOnly )
devices = k3bcore->deviceManager()->dvdWriter();
@@ -276,7 +276,7 @@ void K3bMediaSelectionComboBox::updateMedia()
else
devices = k3bcore->deviceManager()->cdReader();
- for( QPtrListIterator<K3bDevice::Device> it( devices ); *it; ++it ) {
+ for( TQPtrListIterator<K3bDevice::Device> it( devices ); *it; ++it ) {
if ( d->ignoreDevice == *it ) {
continue;
}
@@ -298,7 +298,7 @@ void K3bMediaSelectionComboBox::updateMedia()
emit selectionChanged( 0 );
}
}
- else if( selected && d->deviceIndexMap.contains( selected ) ) {
+ else if( selected && d->deviceIndexMap.tqcontains( selected ) ) {
setCurrentItem( d->deviceIndexMap[selected] );
}
else {
@@ -340,17 +340,17 @@ void K3bMediaSelectionComboBox::addMedium( K3bDevice::Device* dev )
// Otherwise we show the contents type since this might also be used
// for source selection.
//
- QString s = mediumString( k3bappcore->mediaCache()->medium( dev ) );
+ TQString s = mediumString( k3bappcore->mediaCache()->medium( dev ) );
//
// Now let's see if this string is already contained in the list
// and if so add the device name to both
//
- if( d->mediaStringMap.contains( s ) ) {
+ if( d->mediaStringMap.tqcontains( s ) ) {
//
// insert the modified string
//
- insertItem( s + QString(" (%1 - %2)").arg(dev->vendor()).arg(dev->description()) );
+ insertItem( s + TQString(" (%1 - %2)").tqarg(dev->vendor()).tqarg(dev->description()) );
//
// change the already existing string if we did not already do so
@@ -358,7 +358,7 @@ void K3bMediaSelectionComboBox::addMedium( K3bDevice::Device* dev )
//
int prevIndex = d->mediaStringMap[s];
if( prevIndex >= 0 )
- changeItem( text(prevIndex) + QString(" (%1 - %2)").arg(d->devices[prevIndex]->vendor()).arg(d->devices[prevIndex]->description()),
+ changeItem( text(prevIndex) + TQString(" (%1 - %2)").tqarg(d->devices[prevIndex]->vendor()).tqarg(d->devices[prevIndex]->description()),
prevIndex );
//
@@ -419,21 +419,21 @@ bool K3bMediaSelectionComboBox::showMedium( const K3bMedium& m ) const
}
-QString K3bMediaSelectionComboBox::mediumString( const K3bMedium& medium ) const
+TQString K3bMediaSelectionComboBox::mediumString( const K3bMedium& medium ) const
{
return medium.shortString( d->wantedMediumState != K3bDevice::STATE_EMPTY );
}
-QString K3bMediaSelectionComboBox::mediumToolTip( const K3bMedium& m ) const
+TQString K3bMediaSelectionComboBox::mediumToolTip( const K3bMedium& m ) const
{
return m.longString();
}
-QString K3bMediaSelectionComboBox::noMediumMessage() const
+TQString K3bMediaSelectionComboBox::noMediumMessage() const
{
- QString stateString;
+ TQString stateString;
if( d->wantedMediumContent == K3bMedium::CONTENT_ALL ) {
if( d->wantedMediumState == K3bDevice::STATE_EMPTY )
stateString = i18n("an empty %1 medium");
@@ -469,7 +469,7 @@ QString K3bMediaSelectionComboBox::noMediumMessage() const
// this is basically the same as in K3bEmptyDiskWaiter
// FIXME: include things like only rewritable dvd or cd since we will probably need that
- QString mediumString;
+ TQString mediumString;
if( d->wantedMediumType == (K3bDevice::MEDIA_CD_ALL|K3bDevice::MEDIA_DVD_ALL) )
mediumString = i18n("CD or DVD");
else if( d->wantedMediumType == K3bDevice::MEDIA_CD_ALL )
@@ -478,11 +478,11 @@ QString K3bMediaSelectionComboBox::noMediumMessage() const
mediumString = i18n("DVD");
else if( (d->wantedMediumType & K3bDevice::MEDIA_WRITABLE_DVD) &&
(d->wantedMediumType & K3bDevice::MEDIA_WRITABLE_CD) )
- mediumString = i18n("CD-R(W) or DVD%1R(W)").arg("±");
+ mediumString = i18n("CD-R(W) or DVD%1R(W)").tqarg("±");
else if( d->wantedMediumType & K3bDevice::MEDIA_WRITABLE_DVD_SL )
- mediumString = i18n("DVD%1R(W)").arg("±");
+ mediumString = i18n("DVD%1R(W)").tqarg("±");
else if( d->wantedMediumType & K3bDevice::MEDIA_WRITABLE_DVD_DL )
- mediumString = i18n("Double Layer DVD%1R").arg("±");
+ mediumString = i18n("Double Layer DVD%1R").tqarg("±");
else if( d->wantedMediumType & K3bDevice::MEDIA_WRITABLE_CD )
mediumString = i18n("CD-R(W)");
else if( d->wantedMediumType & K3bDevice::MEDIA_DVD_ROM )
@@ -490,16 +490,16 @@ QString K3bMediaSelectionComboBox::noMediumMessage() const
else
mediumString = i18n("CD-ROM");
- return i18n("Please insert %1...").arg( stateString.arg( mediumString ) );
+ return i18n("Please insert %1...").tqarg( stateString.tqarg( mediumString ) );
}
void K3bMediaSelectionComboBox::slotUpdateToolTip( K3bDevice::Device* dev )
{
// update the tooltip for the combobox (the tooltip for the dropdown box is created in the constructor)
- QToolTip::remove( this );
+ TQToolTip::remove( this );
if( dev )
- QToolTip::add( this, mediumToolTip( k3bappcore->mediaCache()->medium( dev ) ) );
+ TQToolTip::add( this, mediumToolTip( k3bappcore->mediaCache()->medium( dev ) ) );
}
#include "k3bmediaselectioncombobox.moc"
diff --git a/src/k3bmediaselectioncombobox.h b/src/k3bmediaselectioncombobox.h
index 8a592c9..b40011f 100644
--- a/src/k3bmediaselectioncombobox.h
+++ b/src/k3bmediaselectioncombobox.h
@@ -34,9 +34,10 @@ namespace K3bDevice {
class K3bMediaSelectionComboBox : public KComboBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bMediaSelectionComboBox( QWidget* parent );
+ K3bMediaSelectionComboBox( TQWidget* tqparent );
virtual ~K3bMediaSelectionComboBox();
/**
@@ -45,7 +46,7 @@ class K3bMediaSelectionComboBox : public KComboBox
*/
K3bDevice::Device* selectedDevice() const;
- QValueList<K3bDevice::Device*> allDevices() const;
+ TQValueList<K3bDevice::Device*> allDevices() const;
int wantedMediumType() const;
int wantedMediumState() const;
@@ -113,9 +114,9 @@ class K3bMediaSelectionComboBox : public KComboBox
protected:
void updateMedia();
virtual bool showMedium( const K3bMedium& ) const;
- virtual QString mediumString( const K3bMedium& ) const;
- virtual QString mediumToolTip( const K3bMedium& ) const;
- virtual QString noMediumMessage() const;
+ virtual TQString mediumString( const K3bMedium& ) const;
+ virtual TQString mediumToolTip( const K3bMedium& ) const;
+ virtual TQString noMediumMessage() const;
private:
void updateMedium( K3bDevice::Device* );
diff --git a/src/k3bmediaselectiondialog.cpp b/src/k3bmediaselectiondialog.cpp
index 3607297..d4aacf5 100644
--- a/src/k3bmediaselectiondialog.cpp
+++ b/src/k3bmediaselectiondialog.cpp
@@ -20,25 +20,25 @@
#include <klocale.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
-K3bMediaSelectionDialog::K3bMediaSelectionDialog( QWidget* parent,
- const QString& title,
- const QString& text,
+K3bMediaSelectionDialog::K3bMediaSelectionDialog( TQWidget* tqparent,
+ const TQString& title,
+ const TQString& text,
bool modal )
: KDialogBase( KDialogBase::Plain,
title.isEmpty() ? i18n("Medium Selection") : title,
Ok|Cancel,
Ok,
- parent,
+ tqparent,
0,
modal )
{
- QGridLayout* lay = new QGridLayout( plainPage() );
+ TQGridLayout* lay = new TQGridLayout( plainPage() );
- QLabel* label = new QLabel( text.isEmpty() ? i18n("Please select a medium:") : text, plainPage() );
+ TQLabel* label = new TQLabel( text.isEmpty() ? i18n("Please select a medium:") : text, plainPage() );
m_combo = new K3bMediaSelectionComboBox( plainPage() );
// lay->setMargin( marginHint() );
@@ -47,8 +47,8 @@ K3bMediaSelectionDialog::K3bMediaSelectionDialog( QWidget* parent,
lay->addWidget( m_combo, 1, 0 );
lay->setRowStretch( 2, 1 );
- connect( m_combo, SIGNAL(selectionChanged(K3bDevice::Device*)),
- this, SLOT(slotSelectionChanged(K3bDevice::Device*)) );
+ connect( m_combo, TQT_SIGNAL(selectionChanged(K3bDevice::Device*)),
+ this, TQT_SLOT(slotSelectionChanged(K3bDevice::Device*)) );
slotSelectionChanged( m_combo->selectedDevice() );
}
@@ -90,11 +90,11 @@ void K3bMediaSelectionDialog::slotSelectionChanged( K3bDevice::Device* dev )
K3bDevice::Device* K3bMediaSelectionDialog::selectMedium( int type, int state, int content,
- QWidget* parent,
- const QString& title, const QString& text,
+ TQWidget* tqparent,
+ const TQString& title, const TQString& text,
bool* canceled )
{
- K3bMediaSelectionDialog dlg( parent, title, text );
+ K3bMediaSelectionDialog dlg( tqparent, title, text );
dlg.setWantedMediumType( type );
dlg.setWantedMediumState( state );
dlg.setWantedMediumContent( content );
@@ -117,11 +117,11 @@ K3bDevice::Device* K3bMediaSelectionDialog::selectMedium( int type, int state, i
K3bDevice::Device* K3bMediaSelectionDialog::selectMedium( int type, int state,
- QWidget* parent,
- const QString& title, const QString& text,
+ TQWidget* tqparent,
+ const TQString& title, const TQString& text,
bool* canceled )
{
- return selectMedium( type, state, K3bMedium::CONTENT_ALL, parent, title, text, canceled );
+ return selectMedium( type, state, K3bMedium::CONTENT_ALL, tqparent, title, text, canceled );
}
#include "k3bmediaselectiondialog.moc"
diff --git a/src/k3bmediaselectiondialog.h b/src/k3bmediaselectiondialog.h
index 317767d..e197ef5 100644
--- a/src/k3bmediaselectiondialog.h
+++ b/src/k3bmediaselectiondialog.h
@@ -27,14 +27,15 @@ namespace K3bDevice {
class K3bMediaSelectionDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Do not use the constructor. Use the static method instead.
*/
- K3bMediaSelectionDialog( QWidget* parent = 0,
- const QString& title = QString::null,
- const QString& text = QString::null,
+ K3bMediaSelectionDialog( TQWidget* tqparent = 0,
+ const TQString& title = TQString(),
+ const TQString& text = TQString(),
bool modal = false );
~K3bMediaSelectionDialog();
@@ -66,15 +67,15 @@ class K3bMediaSelectionDialog : public KDialogBase
* If only one medium of the wanted type is found the method returns immideately
* without showing the dialog.
*/
- static K3bDevice::Device* selectMedium( int type, int state, QWidget* parent = 0,
- const QString& title = QString::null,
- const QString& text = QString::null,
+ static K3bDevice::Device* selectMedium( int type, int state, TQWidget* tqparent = 0,
+ const TQString& title = TQString(),
+ const TQString& text = TQString(),
bool* canceled = 0 );
static K3bDevice::Device* selectMedium( int type, int state, int content = K3bMedium::CONTENT_ALL,
- QWidget* parent = 0,
- const QString& title = QString::null,
- const QString& text = QString::null,
+ TQWidget* tqparent = 0,
+ const TQString& title = TQString(),
+ const TQString& text = TQString(),
bool* canceled = 0 );
private slots:
diff --git a/src/k3bmedium.cpp b/src/k3bmedium.cpp
index 18d6257..9795cfd 100644
--- a/src/k3bmedium.cpp
+++ b/src/k3bmedium.cpp
@@ -38,7 +38,7 @@ public:
K3bDevice::DiskInfo diskInfo;
K3bDevice::Toc toc;
K3bDevice::CdText cdText;
- QValueList<int> writingSpeeds;
+ TQValueList<int> writingSpeeds;
K3bIso9660SimplePrimaryDescriptor isoDesc;
int content;
};
@@ -124,7 +124,7 @@ const K3bDevice::CdText& K3bMedium::cdText() const
}
-const QValueList<int>& K3bMedium::writingSpeeds() const
+const TQValueList<int>& K3bMedium::writingSpeeds() const
{
return d->writingSpeeds;
}
@@ -268,9 +268,9 @@ void K3bMedium::analyseContent()
char buffer[8];
if ( vcdInfoFile->read( 0, buffer, 8 ) == 8 &&
- ( !qstrncmp( buffer, "VIDEO_CD", 8 ) ||
- !qstrncmp( buffer, "SUPERVCD", 8 ) ||
- !qstrncmp( buffer, "HQ-VCD ", 8 ) ) )
+ ( !tqstrncmp( buffer, "VIDEO_CD", 8 ) ||
+ !tqstrncmp( buffer, "SUPERVCD", 8 ) ||
+ !tqstrncmp( buffer, "HQ-VCD ", 8 ) ) )
d->content |= CONTENT_VIDEO_CD;
}
}
@@ -279,9 +279,9 @@ void K3bMedium::analyseContent()
}
-QString K3bMedium::shortString( bool useContent ) const
+TQString K3bMedium::shortString( bool useContent ) const
{
- QString mediaTypeString = K3bDevice::mediaTypeString( diskInfo().mediaType(), true );
+ TQString mediaTypeString = K3bDevice::mediaTypeString( diskInfo().mediaType(), true );
if( diskInfo().diskState() == K3bDevice::STATE_UNKNOWN ) {
return i18n("No medium information");
@@ -292,7 +292,7 @@ QString K3bMedium::shortString( bool useContent ) const
}
else if( diskInfo().diskState() == K3bDevice::STATE_EMPTY ) {
- return i18n("Empty %1 medium").arg( mediaTypeString );
+ return i18n("Empty %1 medium").tqarg( mediaTypeString );
}
else {
@@ -301,40 +301,40 @@ QString K3bMedium::shortString( bool useContent ) const
if( toc().contentType() == K3bDevice::AUDIO ||
toc().contentType() == K3bDevice::MIXED ) {
if( !cdText().performer().isEmpty() || !cdText().title().isEmpty() ) {
- return QString("%1 - %2 (%3)")
- .arg( cdText().performer() )
- .arg( cdText().title() )
- .arg( toc().contentType() == K3bDevice::AUDIO ? i18n("Audio CD") : i18n("Mixed CD") );
+ return TQString("%1 - %2 (%3)")
+ .tqarg( cdText().performer() )
+ .tqarg( cdText().title() )
+ .tqarg( toc().contentType() == K3bDevice::AUDIO ? i18n("Audio CD") : i18n("Mixed CD") );
}
else if( toc().contentType() == K3bDevice::AUDIO ) {
return i18n("Audio CD");
}
else {
- return i18n("%1 (Mixed CD)").arg( beautifiedVolumeId() );
+ return i18n("%1 (Mixed CD)").tqarg( beautifiedVolumeId() );
}
}
// DATA CD and DVD
else if( !volumeId().isEmpty() ) {
if( content() & CONTENT_VIDEO_DVD ) {
- return QString("%1 (%2)").arg( beautifiedVolumeId() ).arg( i18n("Video DVD") );
+ return TQString("%1 (%2)").tqarg( beautifiedVolumeId() ).tqarg( i18n("Video DVD") );
}
else if( content() & CONTENT_VIDEO_CD ) {
- return QString("%1 (%2)").arg( beautifiedVolumeId() ).arg( i18n("Video CD") );
+ return TQString("%1 (%2)").tqarg( beautifiedVolumeId() ).tqarg( i18n("Video CD") );
}
else if( diskInfo().diskState() == K3bDevice::STATE_INCOMPLETE ) {
- return i18n("%1 (Appendable Data %2)").arg( beautifiedVolumeId(), mediaTypeString );
+ return i18n("%1 (Appendable Data %2)").tqarg( beautifiedVolumeId(), mediaTypeString );
}
else {
- return i18n("%1 (Complete Data %2)").arg( beautifiedVolumeId(), mediaTypeString );
+ return i18n("%1 (Complete Data %2)").tqarg( beautifiedVolumeId(), mediaTypeString );
}
}
else {
if( diskInfo().diskState() == K3bDevice::STATE_INCOMPLETE ) {
- return i18n("Appendable Data %1").arg( mediaTypeString );
+ return i18n("Appendable Data %1").tqarg( mediaTypeString );
}
else {
- return i18n("Complete Data %1").arg( mediaTypeString );
+ return i18n("Complete Data %1").tqarg( mediaTypeString );
}
}
}
@@ -342,29 +342,29 @@ QString K3bMedium::shortString( bool useContent ) const
// without content
else {
if( diskInfo().diskState() == K3bDevice::STATE_INCOMPLETE ) {
- return i18n("Appendable %1 medium").arg( mediaTypeString );
+ return i18n("Appendable %1 medium").tqarg( mediaTypeString );
}
else {
- return i18n("Complete %1 medium").arg( mediaTypeString );
+ return i18n("Complete %1 medium").tqarg( mediaTypeString );
}
}
}
}
-QString K3bMedium::longString() const
+TQString K3bMedium::longString() const
{
- QString s = QString("<p><nobr><b>%1 %2</b> (%3)</nobr>"
+ TQString s = TQString("<p><nobr><b>%1 %2</b> (%3)</nobr>"
"<p>")
- .arg( d->device->vendor() )
- .arg( d->device->description() )
- .arg( d->device->blockDeviceName() )
+ .tqarg( d->device->vendor() )
+ .tqarg( d->device->description() )
+ .tqarg( d->device->blockDeviceName() )
+ shortString( true );
if( diskInfo().diskState() == K3bDevice::STATE_COMPLETE ||
diskInfo().diskState() == K3bDevice::STATE_INCOMPLETE ) {
s += "<br>" + i18n("%1 in %n track", "%1 in %n tracks", toc().count() )
- .arg( KIO::convertSize(diskInfo().size().mode1Bytes() ) );
+ .tqarg( KIO::convertSize(diskInfo().size().mode1Bytes() ) );
if( diskInfo().numSessions() > 1 )
s += i18n(" and %n session", " and %n sessions", diskInfo().numSessions() );
}
@@ -372,30 +372,30 @@ QString K3bMedium::longString() const
if( diskInfo().diskState() == K3bDevice::STATE_EMPTY ||
diskInfo().diskState() == K3bDevice::STATE_INCOMPLETE )
s += "<br>" + i18n("Free space: %1")
- .arg( KIO::convertSize( diskInfo().remainingSize().mode1Bytes() ) );
+ .tqarg( KIO::convertSize( diskInfo().remainingSize().mode1Bytes() ) );
if( !diskInfo().empty() && diskInfo().rewritable() )
s += "<br>" + i18n("Capacity: %1")
- .arg( KIO::convertSize( diskInfo().capacity().mode1Bytes() ) );
+ .tqarg( KIO::convertSize( diskInfo().capacity().mode1Bytes() ) );
return s;
}
-const QString& K3bMedium::volumeId() const
+const TQString& K3bMedium::volumeId() const
{
return iso9660Descriptor().volumeId;
}
-QString K3bMedium::beautifiedVolumeId() const
+TQString K3bMedium::beautifiedVolumeId() const
{
- const QString& oldId = volumeId();
- QString newId;
+ const TQString& oldId = volumeId();
+ TQString newId;
bool newWord = true;
for( unsigned int i = 0; i < oldId.length(); ++i ) {
- QChar c = oldId[i];
+ TQChar c = oldId[i];
//
// first let's handle the cases where we do not change
// the id anyway
@@ -411,7 +411,7 @@ QString K3bMedium::beautifiedVolumeId() const
return oldId;
// replace underscore with space
- else if( c.unicode() == 95 ) {
+ else if( c.tqunicode() == 95 ) {
newId.append( ' ' );
newWord = true;
}
diff --git a/src/k3bmedium.h b/src/k3bmedium.h
index 22b8c00..7b649ff 100644
--- a/src/k3bmedium.h
+++ b/src/k3bmedium.h
@@ -67,8 +67,8 @@ class K3bMedium
* media. In that case refer to K3bDevice::Device::maxWriteSpeed
* combined with a manual speed selection.
*/
- const QValueList<int>& writingSpeeds() const;
- const QString& volumeId() const;
+ const TQValueList<int>& writingSpeeds() const;
+ const TQString& volumeId() const;
/**
* This method tries to make a volume identificator witch uses a reduced character set
@@ -77,7 +77,7 @@ class K3bMedium
*
* Volume ids already containing spaces or lower case characters are left unchanged.
*/
- QString beautifiedVolumeId() const;
+ TQString beautifiedVolumeId() const;
/**
* Content type. May be combined by a binary OR.
@@ -109,7 +109,7 @@ class K3bMedium
* \param useContent if true the content of the CD/DVD will be used, otherwise
* the string will simply be something like "empty DVD-R medium".
*/
- QString shortString( bool useContent = true ) const;
+ TQString shortString( bool useContent = true ) const;
/**
* \return A HTML formatted string decribing this medium. This includes the device, the
@@ -117,7 +117,7 @@ class K3bMedium
* tracks.
* This string may be used for tooltips or short descriptions.
*/
- QString longString() const;
+ TQString longString() const;
bool operator==( const K3bMedium& other );
bool operator!=( const K3bMedium& other );
diff --git a/src/k3bminibutton.cpp b/src/k3bminibutton.cpp
index 0d0a1db..9626e47 100644
--- a/src/k3bminibutton.cpp
+++ b/src/k3bminibutton.cpp
@@ -20,14 +20,14 @@
#include "k3bminibutton.h"
-#include <qpainter.h>
+#include <tqpainter.h>
-K3bMiniButton::K3bMiniButton( QWidget *parent, const char * name )
- :QPushButton( parent, name ),
+K3bMiniButton::K3bMiniButton( TQWidget *tqparent, const char * name )
+ :TQPushButton( tqparent, name ),
m_mouseOver( false )
{
- setFocusPolicy( NoFocus );
+ setFocusPolicy( TQ_NoFocus );
}
K3bMiniButton::~K3bMiniButton()
@@ -35,9 +35,9 @@ K3bMiniButton::~K3bMiniButton()
}
-void K3bMiniButton::drawButton( QPainter* p )
+void K3bMiniButton::drawButton( TQPainter* p )
{
- p->fillRect( 0,0, width(), height(), QBrush(colorGroup().brush(QColorGroup::Background)) );
+ p->fillRect( 0,0, width(), height(), TQBrush(tqcolorGroup().brush(TQColorGroup::Background)) );
p->drawPixmap( (width() - pixmap()->width()) / 2, (height() - pixmap()->height()) / 2, *pixmap() );
if( m_mouseOver && !isDown() ){
p->setPen( white );
@@ -45,12 +45,12 @@ void K3bMiniButton::drawButton( QPainter* p )
p->lineTo( 0, 0 );
p->lineTo( width() - 1, 0 );
- p->setPen( colorGroup().dark() );
+ p->setPen( tqcolorGroup().dark() );
p->lineTo( width() - 1, height() - 1 );
p->lineTo( 0, height() - 1 );
}
if( isOn() || isDown() ){
- p->setPen( colorGroup().dark() );
+ p->setPen( tqcolorGroup().dark() );
p->moveTo( 0, height() - 1 );
p->lineTo( 0, 0 );
p->lineTo( width() - 1, 0 );
@@ -61,17 +61,17 @@ void K3bMiniButton::drawButton( QPainter* p )
}
}
-void K3bMiniButton::enterEvent( QEvent * )
+void K3bMiniButton::enterEvent( TQEvent * )
{
m_mouseOver = true;
- repaint();
+ tqrepaint();
}
-void K3bMiniButton::leaveEvent( QEvent * )
+void K3bMiniButton::leaveEvent( TQEvent * )
{
m_mouseOver = false;
- repaint();
+ tqrepaint();
}
#include "k3bminibutton.moc"
diff --git a/src/k3bminibutton.h b/src/k3bminibutton.h
index b3d38a0..c04ab67 100644
--- a/src/k3bminibutton.h
+++ b/src/k3bminibutton.h
@@ -21,28 +21,29 @@
#ifndef _K3B_MINI_BUTTON_H_
#define _K3B_MINI_BUTTON_H_
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
-class QPainter;
-class QEvent;
+class TQPainter;
+class TQEvent;
/**
* K3bMiniButton is a minimalistic button mainly used
* to show a pixmap.
*/
-class K3bMiniButton : public QPushButton
+class K3bMiniButton : public TQPushButton
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bMiniButton( QWidget *parent=0, const char *name=0 );
+ K3bMiniButton( TQWidget *tqparent=0, const char *name=0 );
virtual ~K3bMiniButton();
protected:
- virtual void drawButton( QPainter * );
- virtual void enterEvent( QEvent * );
- virtual void leaveEvent( QEvent * );
+ virtual void drawButton( TQPainter * );
+ virtual void enterEvent( TQEvent * );
+ virtual void leaveEvent( TQEvent * );
private:
bool m_mouseOver;
diff --git a/src/k3bmusicbrainz.cpp b/src/k3bmusicbrainz.cpp
index f0415af..6fd9d9e 100644
--- a/src/k3bmusicbrainz.cpp
+++ b/src/k3bmusicbrainz.cpp
@@ -31,8 +31,8 @@ class K3bMusicBrainz::Private
public:
musicbrainz_t mb;
- QStringList titles;
- QStringList artists;
+ TQStringList titles;
+ TQStringList artists;
};
@@ -51,7 +51,7 @@ K3bMusicBrainz::~K3bMusicBrainz()
}
-int K3bMusicBrainz::query( const QCString& trm )
+int K3bMusicBrainz::query( const TQCString& trm )
{
d->titles.clear();
d->artists.clear();
@@ -69,11 +69,11 @@ int K3bMusicBrainz::query( const QCString& trm )
unsigned int i = 1;
while( mb_Select(d->mb, (char*)MBS_Rewind) && mb_Select1( d->mb, (char*)MBS_SelectTrack, i ) ) {
- QCString data(256);
+ TQCString data(256);
mb_GetResultData( d->mb, (char*)MBE_TrackGetArtistName, data.data(), 256 );
- d->artists.append( QString::fromUtf8( data ).stripWhiteSpace() );
+ d->artists.append( TQString::fromUtf8( data ).stripWhiteSpace() );
mb_GetResultData( d->mb, (char*)MBE_TrackGetTrackName, data.data(), 256 );
- d->titles.append( QString::fromUtf8( data ).stripWhiteSpace() );
+ d->titles.append( TQString::fromUtf8( data ).stripWhiteSpace() );
++i;
}
@@ -89,13 +89,13 @@ int K3bMusicBrainz::query( const QCString& trm )
}
-const QString& K3bMusicBrainz::title( unsigned int i ) const
+const TQString& K3bMusicBrainz::title( unsigned int i ) const
{
return d->titles[i];
}
-const QString& K3bMusicBrainz::artist( unsigned int i ) const
+const TQString& K3bMusicBrainz::artist( unsigned int i ) const
{
return d->artists[i];
}
diff --git a/src/k3bmusicbrainz.h b/src/k3bmusicbrainz.h
index 6cf5d06..bcf629c 100644
--- a/src/k3bmusicbrainz.h
+++ b/src/k3bmusicbrainz.h
@@ -20,8 +20,8 @@
#ifdef HAVE_MUSICBRAINZ
-#include <qcstring.h>
-#include <qstring.h>
+#include <tqcstring.h>
+#include <tqstring.h>
/**
@@ -38,10 +38,10 @@ class K3bMusicBrainz
/**
* \return number of found results.
*/
- int query( const QCString& trm );
+ int query( const TQCString& trm );
- const QString& title( unsigned int i = 0 ) const;
- const QString& artist( unsigned int i = 0 ) const;
+ const TQString& title( unsigned int i = 0 ) const;
+ const TQString& artist( unsigned int i = 0 ) const;
private:
class Private;
diff --git a/src/k3bpassivepopup.cpp b/src/k3bpassivepopup.cpp
index d1865cf..384615a 100644
--- a/src/k3bpassivepopup.cpp
+++ b/src/k3bpassivepopup.cpp
@@ -28,14 +28,14 @@
#include <kpushbutton.h>
#include <kactivelabel.h>
-#include <qtimer.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qmainwindow.h>
-#include <qmessagebox.h>
-#include <qstyle.h>
-#include <qtooltip.h>
-#include <qfont.h>
+#include <tqtimer.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqmainwindow.h>
+#include <tqmessagebox.h>
+#include <tqstyle.h>
+#include <tqtooltip.h>
+#include <tqfont.h>
static const char* const sticky_xpm[] = {
@@ -49,33 +49,33 @@ static const char* const sticky_xpm[] = {
"#####"
};
-static QPixmap themedMessageBoxIcon( K3bPassivePopup::MessageType mt )
+static TQPixmap themedMessageBoxIcon( K3bPassivePopup::MessageType mt )
{
- QString icon_name;
- QMessageBox::Icon qIcon;
+ TQString icon_name;
+ TQMessageBox::Icon qIcon;
switch( mt ) {
case K3bPassivePopup::Information:
- qIcon = QMessageBox::Information;
+ qIcon = TQMessageBox::Information;
icon_name = "messagebox_info";
break;
case K3bPassivePopup::Warning:
- qIcon = QMessageBox::Warning;
+ qIcon = TQMessageBox::Warning;
icon_name = "messagebox_warning";
break;
case K3bPassivePopup::Error:
- qIcon = QMessageBox::Critical;
+ qIcon = TQMessageBox::Critical;
icon_name = "messagebox_critical";
break;
default:
- return QPixmap();
+ return TQPixmap();
break;
}
- QPixmap ret = KApplication::kApplication()->iconLoader()->loadIcon(icon_name, KIcon::NoGroup, KIcon::SizeMedium, KIcon::DefaultState, 0, true);
+ TQPixmap ret = KApplication::kApplication()->iconLoader()->loadIcon(icon_name, KIcon::NoGroup, KIcon::SizeMedium, KIcon::DefaultState, 0, true);
if( ret.isNull() )
- return QMessageBox::standardIcon( qIcon );
+ return TQMessageBox::standardIcon( qIcon );
else
return ret;
}
@@ -88,59 +88,59 @@ public:
int showEffect;
K3bTimeoutWidget* timeoutWidget;
- QLabel* titleLabel;
+ TQLabel* titleLabel;
KActiveLabel* messageLabel;
- QLabel* pixmapLabel;
+ TQLabel* pixmapLabel;
K3bMiniButton* closeButton;
K3bMiniButton* stickyButton;
};
-K3bPassivePopup::K3bPassivePopup( QWidget* parent )
- : QFrame( parent )
+K3bPassivePopup::K3bPassivePopup( TQWidget* tqparent )
+ : TQFrame( tqparent )
{
d = new Private;
d->timeout = 6000;
d->showEffect = 0;
- setFrameStyle( QFrame::StyledPanel | QFrame::Raised );
- // setWFlags( Qt::WX11BypassWM );
+ setFrameStyle( TQFrame::StyledPanel | TQFrame::Raised );
+ // setWFlags( TQt::WX11BypassWM );
- QVBoxLayout* mainLay = new QVBoxLayout( this );
+ TQVBoxLayout* mainLay = new TQVBoxLayout( this );
mainLay->setMargin( frameWidth() );
mainLay->setSpacing( 0 );
- QGridLayout* grid = new QGridLayout;
+ TQGridLayout* grid = new TQGridLayout;
grid->setMargin( 9 );
grid->setSpacing( 6 );
- d->titleLabel = new QLabel( this );
+ d->titleLabel = new TQLabel( this );
d->titleLabel->setMargin( 5 );
- d->titleLabel->setAlignment( Qt::AlignCenter );
- QFont fnt( d->titleLabel->font() );
+ d->titleLabel->tqsetAlignment( TQt::AlignCenter );
+ TQFont fnt( d->titleLabel->font() );
fnt.setBold( true );
d->titleLabel->setFont( fnt );
d->messageLabel = new KActiveLabel( this );
- d->pixmapLabel = new QLabel( this );
- d->pixmapLabel->setAlignment( Qt::AlignTop );
+ d->pixmapLabel = new TQLabel( this );
+ d->pixmapLabel->tqsetAlignment( TQt::AlignTop );
d->timeoutWidget = new K3bTimeoutWidget( this );
- connect( d->timeoutWidget, SIGNAL(timeout()), this, SLOT(slotClose()) );
+ connect( d->timeoutWidget, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotClose()) );
d->closeButton = new K3bMiniButton( d->titleLabel );
- d->closeButton->setPixmap( style().stylePixmap( QStyle::SP_TitleBarCloseButton, this ) );
+ d->closeButton->setPixmap( tqstyle().stylePixmap( TQStyle::SP_TitleBarCloseButton, this ) );
d->closeButton->setFixedSize( d->closeButton->pixmap()->width(), d->closeButton->pixmap()->height() );
- QToolTip::add( d->closeButton, i18n("Close") );
- connect( d->closeButton, SIGNAL(clicked()), this, SLOT(slotClose()) );
+ TQToolTip::add( d->closeButton, i18n("Close") );
+ connect( d->closeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClose()) );
d->stickyButton = new K3bMiniButton( d->titleLabel );
d->stickyButton->setToggleButton( true );
d->stickyButton->setPixmap( const_cast< const char** >( sticky_xpm ) );
d->stickyButton->setFixedSize( d->closeButton->pixmap()->width(), d->closeButton->pixmap()->height() );
- QToolTip::add( d->stickyButton, i18n("Keep Open") );
- connect( d->stickyButton, SIGNAL(toggled(bool)), this, SLOT(slotSticky(bool)) );
+ TQToolTip::add( d->stickyButton, i18n("Keep Open") );
+ connect( d->stickyButton, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotSticky(bool)) );
grid->addWidget( d->pixmapLabel, 0, 0 );
grid->addWidget( d->messageLabel, 0, 1 );
@@ -150,7 +150,7 @@ K3bPassivePopup::K3bPassivePopup( QWidget* parent )
mainLay->addWidget( d->titleLabel );
mainLay->addLayout( grid, 1 );
- QHBoxLayout* titleLay = new QHBoxLayout( d->titleLabel );
+ TQHBoxLayout* titleLay = new TQHBoxLayout( d->titleLabel );
titleLay->setMargin( d->titleLabel->margin() );
titleLay->setSpacing( 2 );
titleLay->addStretch();
@@ -162,7 +162,7 @@ K3bPassivePopup::K3bPassivePopup( QWidget* parent )
d->titleLabel->setPaletteForegroundColor( theme->foregroundColor() );
}
- setTitle( QString::null );
+ setTitle( TQString() );
setMessageType( Information );
}
@@ -187,14 +187,14 @@ void K3bPassivePopup::setShowCountdown( bool b )
}
-void K3bPassivePopup::setMessage( const QString& m )
+void K3bPassivePopup::setMessage( const TQString& m )
{
d->messageLabel->setText( "<qt>" + m );
adjustSize();
}
-void K3bPassivePopup::setTitle( const QString& t )
+void K3bPassivePopup::setTitle( const TQString& t )
{
d->titleLabel->setText( t );
// d->titleLabel->setShown( !t.isEmpty() );
@@ -218,8 +218,8 @@ void K3bPassivePopup::setMessageType( MessageType m )
void K3bPassivePopup::slideIn()
{
d->showEffect = K3bWidgetShowEffect::Slide;
- connect( K3bWidgetShowEffect::showWidget( this, (K3bWidgetShowEffect::Effect)d->showEffect ), SIGNAL(widgetShown(QWidget*)),
- this, SLOT(slotShown()) );
+ connect( K3bWidgetShowEffect::showWidget( this, (K3bWidgetShowEffect::Effect)d->showEffect ), TQT_SIGNAL(widgetShown(TQWidget*)),
+ this, TQT_SLOT(slotShown()) );
}
@@ -230,7 +230,7 @@ void K3bPassivePopup::slotShown()
d->timeoutWidget->start();
}
else
- QTimer::singleShot( d->timeout, this, SLOT(slotClose()) );
+ TQTimer::singleShot( d->timeout, this, TQT_SLOT(slotClose()) );
}
@@ -243,8 +243,8 @@ void K3bPassivePopup::slotHidden()
void K3bPassivePopup::slotClose()
{
if( d->showEffect != 0 ) {
- connect( K3bWidgetShowEffect::hideWidget( this, (K3bWidgetShowEffect::Effect)d->showEffect ), SIGNAL(widgetHidden(QWidget*)),
- this, SLOT(slotHidden()) );
+ connect( K3bWidgetShowEffect::hideWidget( this, (K3bWidgetShowEffect::Effect)d->showEffect ), TQT_SIGNAL(widgetHidden(TQWidget*)),
+ this, TQT_SLOT(slotHidden()) );
}
else
deleteLater();
@@ -262,13 +262,13 @@ void K3bPassivePopup::slotSticky( bool b )
}
-void K3bPassivePopup::showPopup( const QString& message,
- const QString& title,
+void K3bPassivePopup::showPopup( const TQString& message,
+ const TQString& title,
MessageType messageType,
bool countdown,
bool button )
{
- K3bPassivePopup* pop = new K3bPassivePopup( static_cast<QMainWindow*>(qApp->mainWidget())->centralWidget() );
+ K3bPassivePopup* pop = new K3bPassivePopup( static_cast<TQMainWindow*>(tqApp->mainWidget())->centralWidget() );
pop->setMessage( message );
pop->setTitle( title );
pop->setMessageType( messageType );
diff --git a/src/k3bpassivepopup.h b/src/k3bpassivepopup.h
index e567d7e..a2b43c4 100644
--- a/src/k3bpassivepopup.h
+++ b/src/k3bpassivepopup.h
@@ -16,24 +16,25 @@
#ifndef _K3B_PASSIVE_POPUP_H_
#define _K3B_PASSIVE_POPUP_H_
-#include <qframe.h>
+#include <tqframe.h>
class K3bTimeoutWidget;
class KActiveLabel;
class KPushButton;
-class QLabel;
+class TQLabel;
/**
* A message box which is closed using a timer or a close button
* It will delete itself once it has been closed.
*/
-class K3bPassivePopup : public QFrame
+class K3bPassivePopup : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bPassivePopup( QWidget* parent );
+ K3bPassivePopup( TQWidget* tqparent );
~K3bPassivePopup();
enum MessageType {
@@ -48,8 +49,8 @@ class K3bPassivePopup : public QFrame
*/
void slideIn();
- static void showPopup( const QString& message,
- const QString& title = QString::null,
+ static void showPopup( const TQString& message,
+ const TQString& title = TQString(),
MessageType messageType = Information,
bool countdown = true,
bool button = true );
@@ -57,8 +58,8 @@ class K3bPassivePopup : public QFrame
public slots:
void setShowCloseButton( bool b );
void setShowCountdown( bool b );
- void setMessage( const QString& m );
- void setTitle( const QString& t );
+ void setMessage( const TQString& m );
+ void setTitle( const TQString& t );
void setTimeout( int msecs );
void setMessageType( MessageType m );
diff --git a/src/k3bprojectinterface.cpp b/src/k3bprojectinterface.cpp
index 46968fd..9eafe1e 100644
--- a/src/k3bprojectinterface.cpp
+++ b/src/k3bprojectinterface.cpp
@@ -23,14 +23,14 @@
#include <k3bdevicemanager.h>
#include <k3bjob.h>
-#include <qtimer.h>
+#include <tqtimer.h>
//static
-QCString K3bProjectInterface::newIfaceName()
+TQCString K3bProjectInterface::newIfaceName()
{
static int s_docIFNumber = 0;
- QCString name;
+ TQCString name;
name.setNum( s_docIFNumber++ );
name.prepend("K3bProject-");
return name;
@@ -38,7 +38,7 @@ QCString K3bProjectInterface::newIfaceName()
K3bProjectInterface::K3bProjectInterface( K3bDoc* doc, const char* name )
- : DCOPObject( name ? QCString(name) : newIfaceName() ),
+ : DCOPObject( name ? TQCString(name) : newIfaceName() ),
m_doc( doc )
{
}
@@ -48,12 +48,12 @@ K3bProjectInterface::~K3bProjectInterface()
{
}
-void K3bProjectInterface::addUrls( const QStringList& urls )
+void K3bProjectInterface::addUrls( const TQStringList& urls )
{
m_doc->addUrls( KURL::List(urls) );
}
-void K3bProjectInterface::addUrl( const QString& url )
+void K3bProjectInterface::addUrl( const TQString& url )
{
m_doc->addUrl( KURL(url) );
}
@@ -61,7 +61,7 @@ void K3bProjectInterface::addUrl( const QString& url )
void K3bProjectInterface::burn()
{
// we want to return this method immediately
- QTimer::singleShot( 0, m_doc->view(), SLOT(slotBurn()) );
+ TQTimer::singleShot( 0, m_doc->view(), TQT_SLOT(slotBurn()) );
}
@@ -88,7 +88,7 @@ bool K3bProjectInterface::directBurn()
}
-void K3bProjectInterface::setBurnDevice( const QString& name )
+void K3bProjectInterface::setBurnDevice( const TQString& name )
{
if( K3bDevice::Device* dev = k3bcore->deviceManager()->findDevice( name ) )
m_doc->setBurner( dev );
@@ -107,13 +107,13 @@ KIO::filesize_t K3bProjectInterface::size() const
}
-const QString& K3bProjectInterface::imagePath() const
+const TQString& K3bProjectInterface::imagePath() const
{
return m_doc->tempDir();
}
-QString K3bProjectInterface::projectType() const
+TQString K3bProjectInterface::projectType() const
{
switch( m_doc->type() ) {
case K3bDoc::AUDIO:
diff --git a/src/k3bprojectinterface.h b/src/k3bprojectinterface.h
index 8deb848..2a7c38a 100644
--- a/src/k3bprojectinterface.h
+++ b/src/k3bprojectinterface.h
@@ -19,7 +19,7 @@
#include <dcopobject.h>
#include <kio/global.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
class K3bDoc;
@@ -36,11 +36,11 @@ class K3bProjectInterface : public DCOPObject
// Generate a name for this interface. Automatically used if name=0 is
// passed to the constructor
- static QCString newIfaceName();
+ static TQCString newIfaceName();
k_dcop:
- virtual void addUrls( const QStringList& urls );
- virtual void addUrl( const QString& url );
+ virtual void addUrls( const TQStringList& urls );
+ virtual void addUrl( const TQString& url );
/**
* Opens the burn dialog
@@ -55,7 +55,7 @@ class K3bProjectInterface : public DCOPObject
*/
virtual bool directBurn();
- virtual void setBurnDevice( const QString& blockdevicename );
+ virtual void setBurnDevice( const TQString& blockdevicename );
/**
* \return the length of the project in blocks (frames).
@@ -67,7 +67,7 @@ class K3bProjectInterface : public DCOPObject
*/
virtual KIO::filesize_t size() const;
- virtual const QString& imagePath() const;
+ virtual const TQString& imagePath() const;
/**
* \return A string representation of the project type. One of:
@@ -82,7 +82,7 @@ class K3bProjectInterface : public DCOPObject
*
* Be aware that this is not the same as K3bDoc::documentType for historical reasons.
*/
- virtual QString projectType() const;
+ virtual TQString projectType() const;
private:
K3bDoc* m_doc;
diff --git a/src/k3bprojectmanager.cpp b/src/k3bprojectmanager.cpp
index 0c6d65f..05ca446 100644
--- a/src/k3bprojectmanager.cpp
+++ b/src/k3bprojectmanager.cpp
@@ -38,13 +38,13 @@
#include <k3bisooptions.h>
#include <k3bdevicemanager.h>
-#include <qptrlist.h>
-#include <qmap.h>
-#include <qtextstream.h>
-#include <qdom.h>
-#include <qfile.h>
-#include <qapplication.h>
-#include <qcursor.h>
+#include <tqptrlist.h>
+#include <tqmap.h>
+#include <tqtextstream.h>
+#include <tqdom.h>
+#include <tqfile.h>
+#include <tqapplication.h>
+#include <tqcursor.h>
#include <kurl.h>
#include <kdebug.h>
@@ -57,9 +57,9 @@
class K3bProjectManager::Private
{
public:
- QPtrList<K3bDoc> projects;
+ TQPtrList<K3bDoc> projects;
K3bDoc* activeProject;
- QMap<K3bDoc*, K3bProjectInterface*> projectInterfaceMap;
+ TQMap<K3bDoc*, K3bProjectInterface*> projectInterfaceMap;
int audioUntitledCount;
int dataUntitledCount;
@@ -74,8 +74,8 @@ public:
-K3bProjectManager::K3bProjectManager( QObject* parent, const char* name )
- : QObject( parent, name )
+K3bProjectManager::K3bProjectManager( TQObject* tqparent, const char* name )
+ : TQObject( tqparent, name )
{
d = new Private();
d->activeProject = 0;
@@ -96,7 +96,7 @@ K3bProjectManager::~K3bProjectManager()
}
-const QPtrList<K3bDoc>& K3bProjectManager::projects() const
+const TQPtrList<K3bDoc>& K3bProjectManager::projects() const
{
return d->projects;
}
@@ -104,13 +104,13 @@ const QPtrList<K3bDoc>& K3bProjectManager::projects() const
void K3bProjectManager::addProject( K3bDoc* doc )
{
- if( !d->projects.containsRef( doc ) ) {
+ if( !d->projects.tqcontainsRef( doc ) ) {
kdDebug() << "(K3bProjectManager) adding doc " << doc->URL().path() << endl;
d->projects.append(doc);
- connect( doc, SIGNAL(changed(K3bDoc*)),
- this, SLOT(slotProjectChanged(K3bDoc*)) );
+ connect( doc, TQT_SIGNAL(changed(K3bDoc*)),
+ this, TQT_SLOT(slotProjectChanged(K3bDoc*)) );
emit newProject( doc );
}
@@ -120,15 +120,15 @@ void K3bProjectManager::addProject( K3bDoc* doc )
void K3bProjectManager::removeProject( K3bDoc* doc )
{
//
- // QPtrList.findRef seems to be buggy. Everytime we search for the
+ // TQPtrList.tqfindRef seems to be buggy. Everytime we search for the
// first added item it is not found!
//
- for( QPtrListIterator<K3bDoc> it( d->projects );
+ for( TQPtrListIterator<K3bDoc> it( d->projects );
it.current(); ++it ) {
if( it.current() == doc ) {
// remove the DCOP interface
- QMap<K3bDoc*, K3bProjectInterface*>::iterator it = d->projectInterfaceMap.find( doc );
+ TQMap<K3bDoc*, K3bProjectInterface*>::iterator it = d->projectInterfaceMap.tqfind( doc );
if( it != d->projectInterfaceMap.end() ) {
// delete the interface
delete it.data();
@@ -147,7 +147,7 @@ void K3bProjectManager::removeProject( K3bDoc* doc )
K3bDoc* K3bProjectManager::findByUrl( const KURL& url )
{
- for( QPtrListIterator<K3bDoc> it( d->projects );
+ for( TQPtrListIterator<K3bDoc> it( d->projects );
it.current(); ++it ) {
K3bDoc* doc = it.current();
if( doc->URL() == url )
@@ -172,10 +172,10 @@ void K3bProjectManager::setActive( K3bDoc* doc )
}
//
- // QPtrList.findRef seems to be buggy. Everytime we search for the
+ // TQPtrList.tqfindRef seems to be buggy. Everytime we search for the
// first added item it is not found!
//
- for( QPtrListIterator<K3bDoc> it( d->projects );
+ for( TQPtrListIterator<K3bDoc> it( d->projects );
it.current(); ++it ) {
if( it.current() == doc ) {
d->activeProject = doc;
@@ -194,54 +194,54 @@ K3bDoc* K3bProjectManager::activeProject() const
K3bDoc* K3bProjectManager::createEmptyProject( K3bDoc::DocType type )
{
K3bDoc* doc = 0;
- QString fileName;
+ TQString fileName;
switch( type ) {
case K3bDoc::AUDIO: {
doc = new K3bAudioDoc( this );
- fileName = i18n("AudioCD%1").arg(d->audioUntitledCount++);
+ fileName = i18n("AudioCD%1").tqarg(d->audioUntitledCount++);
break;
}
case K3bDoc::DATA: {
doc = new K3bDataDoc( this );
- fileName = i18n("DataCD%1").arg(d->dataUntitledCount++);
+ fileName = i18n("DataCD%1").tqarg(d->dataUntitledCount++);
break;
}
case K3bDoc::MIXED: {
doc = new K3bMixedDoc( this );
- fileName=i18n("MixedCD%1").arg(d->mixedUntitledCount++);
+ fileName=i18n("MixedCD%1").tqarg(d->mixedUntitledCount++);
break;
}
case K3bDoc::VCD: {
doc = new K3bVcdDoc( this );
- fileName=i18n("VideoCD%1").arg(d->vcdUntitledCount++);
+ fileName=i18n("VideoCD%1").tqarg(d->vcdUntitledCount++);
break;
}
case K3bDoc::MOVIX: {
doc = new K3bMovixDoc( this );
- fileName=i18n("eMovixCD%1").arg(d->movixUntitledCount++);
+ fileName=i18n("eMovixCD%1").tqarg(d->movixUntitledCount++);
break;
}
case K3bDoc::MOVIX_DVD: {
doc = new K3bMovixDvdDoc( this );
- fileName=i18n("eMovixDVD%1").arg(d->movixDvdUntitledCount++);
+ fileName=i18n("eMovixDVD%1").tqarg(d->movixDvdUntitledCount++);
break;
}
case K3bDoc::DVD: {
doc = new K3bDvdDoc( this );
- fileName = i18n("DataDVD%1").arg(d->dvdUntitledCount++);
+ fileName = i18n("DataDVD%1").tqarg(d->dvdUntitledCount++);
break;
}
case K3bDoc::VIDEODVD: {
doc = new K3bVideoDvdDoc( this );
- fileName = i18n("VideoDVD%1").arg(d->videoDvdUntitledCount++);
+ fileName = i18n("VideoDVD%1").tqarg(d->videoDvdUntitledCount++);
break;
}
}
@@ -275,9 +275,9 @@ void K3bProjectManager::loadDefaults( K3bDoc* doc )
{
KConfig* c = kapp->config();
- QString oldGroup = c->group();
+ TQString oldGroup = c->group();
- QString cg = "default " + doc->typeString() + " settings";
+ TQString cg = "default " + doc->typeString() + " settings";
// earlier K3b versions loaded the saved settings
// so that is what we do as a default
@@ -290,7 +290,7 @@ void K3bProjectManager::loadDefaults( K3bDoc* doc )
c->setGroup( cg );
- QString mode = c->readEntry( "writing_mode" );
+ TQString mode = c->readEntry( "writing_mode" );
if ( mode == "dao" )
doc->setWritingMode( K3b::DAO );
else if( mode == "tao" )
@@ -352,7 +352,7 @@ void K3bProjectManager::loadDefaults( K3bDoc* doc )
dataDoc->setIsoOptions( K3bIsoOptions::load( c, false ) );
- QString datamode = c->readEntry( "data_track_mode" );
+ TQString datamode = c->readEntry( "data_track_mode" );
if( datamode == "mode1" )
dataDoc->setDataMode( K3b::MODE1 );
else if( datamode == "mode2" )
@@ -362,7 +362,7 @@ void K3bProjectManager::loadDefaults( K3bDoc* doc )
dataDoc->setVerifyData( c->readBoolEntry( "verify data", false ) );
- QString s = c->readEntry( "multisession mode" );
+ TQString s = c->readEntry( "multisession mode" );
if( s == "none" )
dataDoc->setMultiSessionMode( K3bDataDoc::NONE );
else if( s == "start" )
@@ -399,7 +399,7 @@ void K3bProjectManager::loadDefaults( K3bDoc* doc )
else
mixedDoc->setMixedType( K3bMixedDoc::DATA_SECOND_SESSION );
- QString datamode = c->readEntry( "data_track_mode" );
+ TQString datamode = c->readEntry( "data_track_mode" );
if( datamode == "mode1" )
mixedDoc->dataDoc()->setDataMode( K3b::MODE1 );
else if( datamode == "mode2" )
@@ -449,7 +449,7 @@ void K3bProjectManager::loadDefaults( K3bDoc* doc )
K3bProjectInterface* K3bProjectManager::dcopInterface( K3bDoc* doc )
{
- QMap<K3bDoc*, K3bProjectInterface*>::iterator it = d->projectInterfaceMap.find( doc );
+ TQMap<K3bDoc*, K3bProjectInterface*>::iterator it = d->projectInterfaceMap.tqfind( doc );
if( it == d->projectInterfaceMap.end() ) {
K3bProjectInterface* dcopInterface = 0;
if( doc->type() == K3bDoc::DATA || doc->type() == K3bDoc::DVD )
@@ -470,15 +470,15 @@ K3bProjectInterface* K3bProjectManager::dcopInterface( K3bDoc* doc )
K3bDoc* K3bProjectManager::openProject( const KURL& url )
{
- QApplication::setOverrideCursor( QCursor(Qt::WaitCursor) );
+ TQApplication::setOverrideCursor( TQCursor(TQt::WaitCursor) );
- QString tmpfile;
+ TQString tmpfile;
KIO::NetAccess::download( url, tmpfile, 0L );
// ///////////////////////////////////////////////
// first check if it's a store or an old plain xml file
bool success = false;
- QDomDocument xmlDoc;
+ TQDomDocument xmlDoc;
// try opening a store
KoStore* store = KoStore::createStore( tmpfile, KoStore::Read );
@@ -486,7 +486,7 @@ K3bDoc* K3bProjectManager::openProject( const KURL& url )
if( !store->bad() ) {
// try opening the document inside the store
if( store->open( "maindata.xml" ) ) {
- QIODevice* dev = store->device();
+ TQIODevice* dev = store->device();
dev->open( IO_ReadOnly );
if( xmlDoc.setContent( dev ) )
success = true;
@@ -500,7 +500,7 @@ K3bDoc* K3bProjectManager::openProject( const KURL& url )
if( !success ) {
// try reading an old plain document
- QFile f( tmpfile );
+ TQFile f( tmpfile );
if ( f.open( IO_ReadOnly ) ) {
//
// First check if this is really an xml file beacuse if this is a very big file
@@ -510,14 +510,14 @@ K3bDoc* K3bProjectManager::openProject( const KURL& url )
if( f.readBlock( test, 5 ) ) {
if( ::strncmp( test, "<?xml", 5 ) ) {
kdDebug() << "(K3bDoc) " << url.path() << " seems to be no xml file." << endl;
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
return 0;
}
f.reset();
}
else {
kdDebug() << "(K3bDoc) could not read from file." << endl;
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
return 0;
}
if( xmlDoc.setContent( &f ) )
@@ -531,7 +531,7 @@ K3bDoc* K3bProjectManager::openProject( const KURL& url )
if( !success ) {
kdDebug() << "(K3bDoc) could not open file " << url.path() << endl;
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
return 0;
}
@@ -555,7 +555,7 @@ K3bDoc* K3bProjectManager::openProject( const KURL& url )
type = K3bDoc::VIDEODVD;
else {
kdDebug() << "(K3bDoc) unknown doc type: " << xmlDoc.doctype().name() << endl;
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
return 0;
}
@@ -564,7 +564,7 @@ K3bDoc* K3bProjectManager::openProject( const KURL& url )
// ---------
// load the data into the document
- QDomElement root = xmlDoc.documentElement();
+ TQDomElement root = xmlDoc.documentElement();
if( newDoc->loadDocumentData( &root ) ) {
newDoc->setURL( url );
newDoc->setSaved( true );
@@ -585,7 +585,7 @@ K3bDoc* K3bProjectManager::openProject( const KURL& url )
newDoc = 0;
}
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
return newDoc;
}
@@ -593,7 +593,7 @@ K3bDoc* K3bProjectManager::openProject( const KURL& url )
bool K3bProjectManager::saveProject( K3bDoc* doc, const KURL& url )
{
- QString tmpfile;
+ TQString tmpfile;
KIO::NetAccess::download( url, tmpfile, 0L );
bool success = false;
@@ -609,16 +609,16 @@ bool K3bProjectManager::saveProject( K3bDoc* doc, const KURL& url )
store->open( "maindata.xml" );
// save the data in the document
- QDomDocument xmlDoc( "k3b_" + doc->typeString() + "_project" );
+ TQDomDocument xmlDoc( "k3b_" + doc->typeString() + "_project" );
xmlDoc.appendChild( xmlDoc.createProcessingInstruction( "xml", "version=\"1.0\" encoding=\"UTF-8\"" ) );
- QDomElement docElem = xmlDoc.createElement( "k3b_" + doc->typeString() + "_project" );
+ TQDomElement docElem = xmlDoc.createElement( "k3b_" + doc->typeString() + "_project" );
xmlDoc.appendChild( docElem );
success = doc->saveDocumentData( &docElem );
if( success ) {
KoStoreDevice dev(store);
dev.open( IO_WriteOnly );
- QTextStream xmlStream( &dev );
+ TQTextStream xmlStream( &dev );
xmlDoc.save( xmlStream, 0 );
doc->setURL( url );
diff --git a/src/k3bprojectmanager.h b/src/k3bprojectmanager.h
index 60d9c80..15e8fdb 100644
--- a/src/k3bprojectmanager.h
+++ b/src/k3bprojectmanager.h
@@ -16,8 +16,8 @@
#ifndef _K3B_PROJECT_MANAGER_H_
#define _K3B_PROJECT_MANAGER_H_
-#include <qobject.h>
-#include <qptrlist.h>
+#include <tqobject.h>
+#include <tqptrlist.h>
#include <k3bdoc.h>
@@ -25,15 +25,16 @@ class KURL;
class K3bProjectInterface;
-class K3bProjectManager : public QObject
+class K3bProjectManager : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bProjectManager( QObject* parent = 0, const char* name = 0 );
+ K3bProjectManager( TQObject* tqparent = 0, const char* name = 0 );
virtual ~K3bProjectManager();
- const QPtrList<K3bDoc>& projects() const;
+ const TQPtrList<K3bDoc>& projects() const;
/**
* Create a new project including loading user defaults and creating
diff --git a/src/k3bprojecttabwidget.cpp b/src/k3bprojecttabwidget.cpp
index d86fad4..31d0b9c 100644
--- a/src/k3bprojecttabwidget.cpp
+++ b/src/k3bprojecttabwidget.cpp
@@ -28,8 +28,8 @@
#include <kurldrag.h>
#include <klocale.h>
-#include <qevent.h>
-#include <qtabbar.h>
+#include <tqevent.h>
+#include <tqtabbar.h>
class K3bProjectTabWidget::ProjectData
@@ -54,13 +54,13 @@ public:
-K3bProjectTabWidget::K3bProjectTabWidget( QWidget *parent, const char *name, WFlags f )
- : QTabWidget( parent, name, f )
+K3bProjectTabWidget::K3bProjectTabWidget( TQWidget *tqparent, const char *name, WFlags f )
+ : TQTabWidget( tqparent, name, f )
{
tabBar()->setAcceptDrops(true);
tabBar()->installEventFilter( this );
- m_projectActionMenu = new KActionMenu( i18n("Project"), this );
+ m_projectActionMenu = new KActionMenu( i18n("Project"), TQT_TQOBJECT(this) );
}
@@ -69,60 +69,60 @@ K3bProjectTabWidget::~K3bProjectTabWidget()
}
-void K3bProjectTabWidget::addTab( QWidget* child, const QString& label )
+void K3bProjectTabWidget::addTab( TQWidget* child, const TQString& label )
{
- QTabWidget::addTab( child, label );
+ TQTabWidget::addTab( child, label );
tabBar()->setShown( count() != 1 );
}
-void K3bProjectTabWidget::addTab( QWidget* child, const QIconSet& iconset, const QString& label )
+void K3bProjectTabWidget::addTab( TQWidget* child, const TQIconSet& iconset, const TQString& label )
{
- QTabWidget::addTab( child, iconset, label );
+ TQTabWidget::addTab( child, iconset, label );
tabBar()->setShown( count() != 1 );
}
-void K3bProjectTabWidget::addTab( QWidget* child, QTab* tab )
+void K3bProjectTabWidget::addTab( TQWidget* child, TQTab* tab )
{
- QTabWidget::addTab( child, tab );
+ TQTabWidget::addTab( child, tab );
tabBar()->setShown( count() != 1 );
}
-void K3bProjectTabWidget::insertTab( QWidget* child, const QString& label, int index )
+void K3bProjectTabWidget::insertTab( TQWidget* child, const TQString& label, int index )
{
- QTabWidget::insertTab( child, label, index );
+ TQTabWidget::insertTab( child, label, index );
tabBar()->setShown( count() != 1 );
}
-void K3bProjectTabWidget::insertTab( QWidget* child, const QIconSet& iconset, const QString& label, int index )
+void K3bProjectTabWidget::insertTab( TQWidget* child, const TQIconSet& iconset, const TQString& label, int index )
{
- QTabWidget::insertTab( child, iconset, label, index );
+ TQTabWidget::insertTab( child, iconset, label, index );
tabBar()->setShown( count() != 1 );
}
-void K3bProjectTabWidget::insertTab( QWidget* child, QTab* tab, int index )
+void K3bProjectTabWidget::insertTab( TQWidget* child, TQTab* tab, int index )
{
- QTabWidget::insertTab( child, tab, index );
+ TQTabWidget::insertTab( child, tab, index );
tabBar()->setShown( count() != 1 );
}
-void K3bProjectTabWidget::removePage( QWidget* w )
+void K3bProjectTabWidget::removePage( TQWidget* w )
{
- QTabWidget::removePage( w );
+ TQTabWidget::removePage( w );
tabBar()->setShown( count() != 1 );
}
void K3bProjectTabWidget::insertTab( K3bDoc* doc )
{
- QTabWidget::insertTab( doc->view(), doc->URL().fileName() );
- connect( k3bappcore->projectManager(), SIGNAL(projectSaved(K3bDoc*)), this, SLOT(slotDocSaved(K3bDoc*)) );
- connect( doc, SIGNAL(changed(K3bDoc*)), this, SLOT(slotDocChanged(K3bDoc*)) );
+ TQTabWidget::insertTab( doc->view(), doc->URL().fileName() );
+ connect( k3bappcore->projectManager(), TQT_SIGNAL(projectSaved(K3bDoc*)), this, TQT_SLOT(slotDocSaved(K3bDoc*)) );
+ connect( doc, TQT_SIGNAL(changed(K3bDoc*)), this, TQT_SLOT(slotDocChanged(K3bDoc*)) );
m_projectDataMap[doc] = ProjectData( doc );
@@ -154,16 +154,16 @@ void K3bProjectTabWidget::slotDocChanged( K3bDoc* doc )
void K3bProjectTabWidget::slotDocSaved( K3bDoc* doc )
{
- setTabIconSet( doc->view(), QIconSet() );
+ setTabIconSet( doc->view(), TQIconSet() );
changeTab( doc->view(), doc->URL().fileName() );
}
-K3bDoc* K3bProjectTabWidget::projectAt( const QPoint& pos ) const
+K3bDoc* K3bProjectTabWidget::projectAt( const TQPoint& pos ) const
{
- QTab* tab = tabBar()->selectTab( pos );
+ TQTab* tab = tabBar()->selectTab( pos );
if( tab ) {
- QWidget* w = page( tabBar()->indexOf( tab->identifier() ) );
+ TQWidget* w = page( tabBar()->indexOf( tab->identifier() ) );
if( K3bView* view = dynamic_cast<K3bView*>(w) )
return view->doc();
}
@@ -172,15 +172,15 @@ K3bDoc* K3bProjectTabWidget::projectAt( const QPoint& pos ) const
}
-bool K3bProjectTabWidget::eventFilter( QObject* o, QEvent* e )
+bool K3bProjectTabWidget::eventFilter( TQObject* o, TQEvent* e )
{
- if( o == tabBar() ) {
- if( e->type() == QEvent::MouseButtonPress ) {
- QMouseEvent* me = static_cast<QMouseEvent*>(e);
+ if( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(tabBar()) ) {
+ if( e->type() == TQEvent::MouseButtonPress ) {
+ TQMouseEvent* me = TQT_TQMOUSEEVENT(e);
if( me->button() == Qt::RightButton ) {
if( projectAt( me->pos() ) ) {
// we need change the tab because the actions work on the current tab
- QTab* clickedTab = tabBar()->selectTab( me->pos() );
+ TQTab* clickedTab = tabBar()->selectTab( me->pos() );
if( clickedTab ) {
tabBar()->setCurrentTab( clickedTab );
@@ -192,14 +192,14 @@ bool K3bProjectTabWidget::eventFilter( QObject* o, QEvent* e )
}
}
- else if( e->type() == QEvent::DragMove ) {
- QDragMoveEvent* de = static_cast<QDragMoveEvent*>(e);
+ else if( e->type() == TQEvent::DragMove ) {
+ TQDragMoveEvent* de = static_cast<TQDragMoveEvent*>(e);
de->accept( KURLDrag::canDecode(de) && projectAt(de->pos()) );
return true;
}
- else if( e->type() == QEvent::Drop ) {
- QDropEvent* de = static_cast<QDropEvent*>(e);
+ else if( e->type() == TQEvent::Drop ) {
+ TQDropEvent* de = static_cast<TQDropEvent*>(e);
KURL::List l;
if( KURLDrag::decode( de, l ) ) {
if( K3bDoc* doc = projectAt( de->pos() ) )
@@ -209,7 +209,7 @@ bool K3bProjectTabWidget::eventFilter( QObject* o, QEvent* e )
}
}
- return QTabWidget::eventFilter( o, e );
+ return TQTabWidget::eventFilter( o, e );
}
#include "k3bprojecttabwidget.moc"
diff --git a/src/k3bprojecttabwidget.h b/src/k3bprojecttabwidget.h
index 048a8bc..4cadf33 100644
--- a/src/k3bprojecttabwidget.h
+++ b/src/k3bprojecttabwidget.h
@@ -17,7 +17,7 @@
#ifndef K3BPROJECTTABWIDGET_H
#define K3BPROJECTTABWIDGET_H
-#include <qtabwidget.h>
+#include <tqtabwidget.h>
#include <kurl.h>
class KAction;
@@ -31,38 +31,39 @@ class K3bDoc;
*
* @author Sebastian Trueg
*/
-class K3bProjectTabWidget : public QTabWidget
+class K3bProjectTabWidget : public TQTabWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bProjectTabWidget( QWidget *parent = 0, const char *name = 0, WFlags = 0 );
+ K3bProjectTabWidget( TQWidget *tqparent = 0, const char *name = 0, WFlags = 0 );
~K3bProjectTabWidget();
void insertTab( K3bDoc* );
- void addTab( QWidget * child, const QString & label );
- void addTab( QWidget * child, const QIconSet & iconset, const QString & label );
- void addTab( QWidget * child, QTab * tab );
- void insertTab( QWidget * child, const QString & label, int index = -1 );
- void insertTab( QWidget * child, const QIconSet & iconset, const QString & label, int index = -1 );
- void insertTab( QWidget * child, QTab * tab, int index = -1 );
+ void addTab( TQWidget * child, const TQString & label );
+ void addTab( TQWidget * child, const TQIconSet & iconset, const TQString & label );
+ void addTab( TQWidget * child, TQTab * tab );
+ void insertTab( TQWidget * child, const TQString & label, int index = -1 );
+ void insertTab( TQWidget * child, const TQIconSet & iconset, const TQString & label, int index = -1 );
+ void insertTab( TQWidget * child, TQTab * tab, int index = -1 );
/**
* \return the project for the tab at position \p pos or 0 in case the tab is
* not a project tab.
*/
- K3bDoc* projectAt( const QPoint& pos ) const;
+ K3bDoc* projectAt( const TQPoint& pos ) const;
/**
* inserts the given action into the popup menu for the tabs
*/
void insertAction( KAction* );
- bool eventFilter( QObject* o, QEvent* e );
+ bool eventFilter( TQObject* o, TQEvent* e );
public slots:
- void removePage( QWidget* );
+ void removePage( TQWidget* );
private slots:
void slotDocChanged( K3bDoc* );
@@ -72,7 +73,7 @@ class K3bProjectTabWidget : public QTabWidget
KActionMenu* m_projectActionMenu;
class ProjectData;
- QMap<K3bDoc*, ProjectData> m_projectDataMap;
+ TQMap<K3bDoc*, ProjectData> m_projectDataMap;
};
#endif
diff --git a/src/k3bservicemenuinstaller.cpp b/src/k3bservicemenuinstaller.cpp
index 82122e2..dd409e1 100644
--- a/src/k3bservicemenuinstaller.cpp
+++ b/src/k3bservicemenuinstaller.cpp
@@ -26,10 +26,10 @@
class K3bServiceInstaller::Private
{
public:
- QString app;
- QStringList allServiceMenus;
- QStringList allServiceMenuFiles;
- QString konqiServicemenusFolder;
+ TQString app;
+ TQStringList allServiceMenus;
+ TQStringList allServiceMenuFiles;
+ TQString konqiServicemenusFolder;
void update() {
// the list of installable servicemenus the application provides
@@ -49,7 +49,7 @@ public:
};
-K3bServiceInstaller::K3bServiceInstaller( const QString& appname )
+K3bServiceInstaller::K3bServiceInstaller( const TQString& appname )
{
d = new Private;
d->app = appname;
@@ -77,7 +77,7 @@ bool K3bServiceInstaller::allInstalled() const
}
-bool K3bServiceInstaller::install( QWidget* parent )
+bool K3bServiceInstaller::install( TQWidget* tqparent )
{
d->update();
@@ -87,11 +87,11 @@ bool K3bServiceInstaller::install( QWidget* parent )
for( unsigned int i = 0; i < d->allServiceMenus.count(); ++i )
if( !KIO::NetAccess::file_copy( KURL::fromPathOrURL( d->allServiceMenus[i] ),
KURL::fromPathOrURL( d->konqiServicemenusFolder + d->allServiceMenuFiles[i] ), -1,
- true, false, parent ) )
+ true, false, tqparent ) )
success = false;
- if( !success && parent )
- KMessageBox::error( parent,
+ if( !success && tqparent )
+ KMessageBox::error( tqparent,
KIO::NetAccess::lastErrorString(),
i18n("Failed to copy service menu files") );
@@ -99,19 +99,19 @@ bool K3bServiceInstaller::install( QWidget* parent )
}
-bool K3bServiceInstaller::remove( QWidget* parent )
+bool K3bServiceInstaller::remove( TQWidget* tqparent )
{
d->update();
bool success = true;
for( unsigned int i = 0; i < d->allServiceMenuFiles.count(); ++i )
- if( KIO::NetAccess::exists( d->konqiServicemenusFolder + d->allServiceMenuFiles[i], true, parent ) )
- if( !KIO::NetAccess::del( d->konqiServicemenusFolder + d->allServiceMenuFiles[i], parent ) )
+ if( KIO::NetAccess::exists( d->konqiServicemenusFolder + d->allServiceMenuFiles[i], true, tqparent ) )
+ if( !KIO::NetAccess::del( d->konqiServicemenusFolder + d->allServiceMenuFiles[i], tqparent ) )
success = false;
- if( !success && parent )
- KMessageBox::error( parent,
+ if( !success && tqparent )
+ KMessageBox::error( tqparent,
KIO::NetAccess::lastErrorString(),
i18n("Failed to remove service menu files") );
diff --git a/src/k3bservicemenuinstaller.h b/src/k3bservicemenuinstaller.h
index 6e06caf..271d314 100644
--- a/src/k3bservicemenuinstaller.h
+++ b/src/k3bservicemenuinstaller.h
@@ -16,9 +16,9 @@
#ifndef _K3B_SERVICE_MENU_INSTALLER_H_
#define _K3B_SERVICE_MENU_INSTALLER_H_
-#include <qstring.h>
+#include <tqstring.h>
-class QWidget;
+class TQWidget;
/**
@@ -29,7 +29,7 @@ class QWidget;
class K3bServiceInstaller
{
public:
- K3bServiceInstaller( const QString& appname = "k3b" );
+ K3bServiceInstaller( const TQString& appname = "k3b" );
~K3bServiceInstaller();
/**
@@ -38,14 +38,14 @@ class K3bServiceInstaller
bool allInstalled() const;
/**
- * If parent != 0 a messagebox will be shown in case of an error.
+ * If tqparent != 0 a messagebox will be shown in case of an error.
*/
- bool install( QWidget* parent = 0 );
+ bool install( TQWidget* tqparent = 0 );
/**
- * If parent != 0 a messagebox will be shown in case of an error.
+ * If tqparent != 0 a messagebox will be shown in case of an error.
*/
- bool remove( QWidget* parent = 0 );
+ bool remove( TQWidget* tqparent = 0 );
private:
class Private;
diff --git a/src/k3bsidepanel.cpp b/src/k3bsidepanel.cpp
index 8e40352..6a39807 100644
--- a/src/k3bsidepanel.cpp
+++ b/src/k3bsidepanel.cpp
@@ -21,14 +21,14 @@
#include <kiconloader.h>
#include <kdebug.h>
-#include <qtoolbutton.h>
-#include <qframe.h>
-#include <qlayout.h>
+#include <tqtoolbutton.h>
+#include <tqframe.h>
+#include <tqlayout.h>
-K3bSidePanel::K3bSidePanel( K3bMainWindow* m, QWidget* parent, const char* name )
- : QToolBox( parent, name ),
+K3bSidePanel::K3bSidePanel( K3bMainWindow* m, TQWidget* tqparent, const char* name )
+ : TQToolBox( tqparent, name ),
m_mainWindow(m)
{
// our first widget is the tree view
@@ -36,14 +36,14 @@ K3bSidePanel::K3bSidePanel( K3bMainWindow* m, QWidget* parent, const char* name
addItem( m_fileTreeView, SmallIconSet( "folder_open" ), i18n("Folders") );
// CD projects
- QFrame* cdProjectsFrame = createPanel();
+ TQFrame* cdProjectsFrame = createPanel();
addItem( cdProjectsFrame, SmallIconSet( "cdrom_unmount" ), i18n("CD Tasks") );
addButton( cdProjectsFrame, m_mainWindow->action( "file_new_audio" ) );
addButton( cdProjectsFrame, m_mainWindow->action( "file_new_data" ) );
addButton( cdProjectsFrame, m_mainWindow->action( "file_new_mixed" ) );
addButton( cdProjectsFrame, m_mainWindow->action( "file_new_vcd" ) );
addButton( cdProjectsFrame, m_mainWindow->action( "file_new_movix" ) );
- QGridLayout* grid = (QGridLayout*)cdProjectsFrame->layout();
+ TQGridLayout* grid = (TQGridLayout*)cdProjectsFrame->tqlayout();
grid->setRowSpacing( grid->numRows(), 15 );
addButton( cdProjectsFrame, m_mainWindow->action( "tools_copy_cd" ) );
addButton( cdProjectsFrame, m_mainWindow->action( "tools_write_cd_image" ) );
@@ -51,12 +51,12 @@ K3bSidePanel::K3bSidePanel( K3bMainWindow* m, QWidget* parent, const char* name
grid->setRowStretch( grid->numRows()+1, 1 );
// DVD projects
- QFrame* dvdProjectsFrame = createPanel();
+ TQFrame* dvdProjectsFrame = createPanel();
addItem( dvdProjectsFrame, SmallIconSet( "dvd_unmount" ), i18n("DVD Tasks") );
addButton( dvdProjectsFrame, m_mainWindow->action( "file_new_dvd" ) );
addButton( dvdProjectsFrame, m_mainWindow->action( "file_new_video_dvd" ) );
addButton( dvdProjectsFrame, m_mainWindow->action( "file_new_movix_dvd" ) );
- grid = (QGridLayout*)dvdProjectsFrame->layout();
+ grid = (TQGridLayout*)dvdProjectsFrame->tqlayout();
grid->setRowSpacing( grid->numRows(), 15 );
addButton( dvdProjectsFrame, m_mainWindow->action( "tools_copy_dvd" ) );
addButton( dvdProjectsFrame, m_mainWindow->action( "tools_write_dvd_iso" ) );
@@ -74,31 +74,31 @@ K3bSidePanel::~K3bSidePanel()
}
-QFrame* K3bSidePanel::createPanel()
+TQFrame* K3bSidePanel::createPanel()
{
- QFrame* frame = new QFrame( this );
- frame->setPaletteBackgroundColor( Qt::white );
- QGridLayout* grid = new QGridLayout( frame );
+ TQFrame* frame = new TQFrame( this );
+ frame->setPaletteBackgroundColor( TQt::white );
+ TQGridLayout* grid = new TQGridLayout( frame );
grid->setMargin( 5 );
grid->setSpacing( 5 );
return frame;
}
-void K3bSidePanel::addButton( QFrame* frame, KAction* a )
+void K3bSidePanel::addButton( TQFrame* frame, KAction* a )
{
if( a ) {
- QToolButton* b = new QToolButton( frame );
+ TQToolButton* b = new TQToolButton( frame );
b->setTextLabel( a->toolTip(), true );
b->setTextLabel( a->text(), false );
b->setIconSet( a->iconSet(KIcon::Small) );
b->setUsesTextLabel( true );
b->setAutoRaise( true );
- b->setTextPosition( QToolButton::BesideIcon );
+ b->setTextPosition( TQToolButton::BesideIcon );
- connect( b, SIGNAL(clicked()), a, SLOT(activate()) );
+ connect( b, TQT_SIGNAL(clicked()), a, TQT_SLOT(activate()) );
- QGridLayout* grid = (QGridLayout*)(frame->layout());
+ TQGridLayout* grid = (TQGridLayout*)(frame->tqlayout());
grid->addWidget( b, grid->numRows(), 0 );
}
else
diff --git a/src/k3bsidepanel.h b/src/k3bsidepanel.h
index 2be17ff..29b1ebc 100644
--- a/src/k3bsidepanel.h
+++ b/src/k3bsidepanel.h
@@ -16,20 +16,21 @@
#ifndef _K3B_SIDE_PANEL_H_
#define _K3B_SIDE_PANEL_H_
-#include <qtoolbox.h>
+#include <tqtoolbox.h>
class K3bMainWindow;
class K3bFileTreeView;
-class QFrame;
+class TQFrame;
class KAction;
-class K3bSidePanel : public QToolBox
+class K3bSidePanel : public TQToolBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bSidePanel( K3bMainWindow*, QWidget* parent = 0, const char* name = 0 );
+ K3bSidePanel( K3bMainWindow*, TQWidget* tqparent = 0, const char* name = 0 );
~K3bSidePanel();
/**
@@ -42,8 +43,8 @@ class K3bSidePanel : public QToolBox
K3bMainWindow* m_mainWindow;
K3bFileTreeView* m_fileTreeView;
- QFrame* createPanel();
- void addButton( QFrame* frame, KAction* action );
+ TQFrame* createPanel();
+ void addButton( TQFrame* frame, KAction* action );
};
#endif
diff --git a/src/k3bsplash.cpp b/src/k3bsplash.cpp
index dc49bf5..ff39d85 100644
--- a/src/k3bsplash.cpp
+++ b/src/k3bsplash.cpp
@@ -18,21 +18,21 @@
#include <k3bthememanager.h>
#include <k3bapplication.h>
-#include <qapplication.h>
-#include <qlabel.h>
-#include <qpixmap.h>
-#include <qevent.h>
-#include <qstring.h>
-#include <qfontmetrics.h>
-#include <qpainter.h>
+#include <tqapplication.h>
+#include <tqlabel.h>
+#include <tqpixmap.h>
+#include <tqevent.h>
+#include <tqstring.h>
+#include <tqfontmetrics.h>
+#include <tqpainter.h>
#include <kstandarddirs.h>
#include <kapplication.h>
#include <kaboutdata.h>
-K3bSplash::K3bSplash( QWidget* parent, const char* name )
- : QVBox( parent, name,
+K3bSplash::K3bSplash( TQWidget* tqparent, const char* name )
+ : TQVBox( tqparent, name,
WStyle_Customize|
WDestructiveClose|
/* WStyle_Splash|*/
@@ -43,28 +43,28 @@ K3bSplash::K3bSplash( QWidget* parent, const char* name )
setMargin( 0 );
setSpacing( 0 );
- QLabel* copyrightLabel = new QLabel( kapp->aboutData()->copyrightStatement(), this );
+ TQLabel* copyrightLabel = new TQLabel( kapp->aboutData()->copyrightStatement(), this );
copyrightLabel->setMargin( 5 );
copyrightLabel->setPaletteBackgroundColor( black );
copyrightLabel->setPaletteForegroundColor( white );
- copyrightLabel->setAlignment( AlignRight );
+ copyrightLabel->tqsetAlignment( AlignRight );
- QLabel* picLabel = new QLabel( this );
+ TQLabel* picLabel = new TQLabel( this );
if( K3bTheme* theme = k3bappcore->themeManager()->currentTheme() ) {
picLabel->setPaletteBackgroundColor( theme->backgroundColor() );
picLabel->setPixmap( theme->pixmap( K3bTheme::SPLASH ) );
}
- m_infoBox = new QLabel( this );
+ m_infoBox = new TQLabel( this );
m_infoBox->setMargin( 5 );
m_infoBox->setPaletteBackgroundColor( black );
m_infoBox->setPaletteForegroundColor( white );
- // Set geometry, with support for Xinerama systems
- QRect r;
- r.setSize(sizeHint());
- int ps = QApplication::desktop()->primaryScreen();
- r.moveCenter( QApplication::desktop()->screenGeometry(ps).center() );
+ // Set tqgeometry, with support for Xinerama systems
+ TQRect r;
+ r.setSize(tqsizeHint());
+ int ps = TQApplication::desktop()->primaryScreen();
+ r.moveCenter( TQApplication::desktop()->screenGeometry(ps).center() );
setGeometry(r);
}
@@ -74,7 +74,7 @@ K3bSplash::~K3bSplash()
}
-void K3bSplash::mousePressEvent( QMouseEvent* )
+void K3bSplash::mousePressEvent( TQMouseEvent* )
{
close();
}
@@ -82,47 +82,47 @@ void K3bSplash::mousePressEvent( QMouseEvent* )
void K3bSplash::show()
{
- QVBox::show();
+ TQVBox::show();
// make sure the splash screen is shown immediately
- qApp->processEvents();
+ tqApp->processEvents();
}
-void K3bSplash::addInfo( const QString& s )
+void K3bSplash::addInfo( const TQString& s )
{
m_infoBox->setText( s );
- qApp->processEvents();
+ tqApp->processEvents();
}
-// void K3bSplash::paintEvent( QPaintEvent* e )
+// void K3bSplash::paintEvent( TQPaintEvent* e )
// {
// // first let the window paint the background and the child widget
-// QWidget::paintEvent( e );
+// TQWidget::paintEvent( e );
// // now create the text we want to display
// // find the lower left corner and paint it on top of the pixmap
-// QPainter p( this );
-// p.setPen( Qt::blue );
+// TQPainter p( this );
+// p.setPen( TQt::blue );
-// QFontMetrics fm = p.fontMetrics();
+// TQFontMetrics fm = p.fontMetrics();
-// QString line1 = QString( "K3b version %1" ).arg(VERSION);
-// QString line2( "(c) 2001 by Sebastian Trueg" );
-// QString line3( "licenced under the GPL" );
+// TQString line1 = TQString( "K3b version %1" ).tqarg(VERSION);
+// TQString line2( "(c) 2001 by Sebastian Trueg" );
+// TQString line3( "licenced under the GPL" );
-// QRect rect1 = fm.boundingRect( line1 );
-// QRect rect2 = fm.boundingRect( line2 );
-// QRect rect3 = fm.boundingRect( line3 );
+// TQRect rect1 = fm.boundingRect( line1 );
+// TQRect rect2 = fm.boundingRect( line2 );
+// TQRect rect3 = fm.boundingRect( line3 );
// int textH = rect1.height() + rect2.height() + rect3.height() + 2 * fm.leading() + 2 + rect2.height() /*hack because the boundingRect method seems not to work properly! :-(*/;
-// int textW = QMAX( rect1.width(), QMAX( rect2.width(), rect3.width() ) ) + 2;
+// int textW = TQMAX( rect1.width(), TQMAX( rect2.width(), rect3.width() ) ) + 2;
// int startX = 10;
// int startY = height() - 10 - textH;
-// p.drawText( startX, startY, textW, textH, 0, QString("%1\n%2\n%3").arg(line1).arg(line2).arg(line3) );
+// p.drawText( startX, startY, textW, textH, 0, TQString("%1\n%2\n%3").tqarg(line1).tqarg(line2).tqarg(line3) );
// }
diff --git a/src/k3bsplash.h b/src/k3bsplash.h
index c4e6979..a08b421 100644
--- a/src/k3bsplash.h
+++ b/src/k3bsplash.h
@@ -17,32 +17,33 @@
#ifndef K3BSPLASH_H
#define K3BSPLASH_H
-#include <qvbox.h>
+#include <tqvbox.h>
-class QLabel;
-class QMouseEvent;
-class QPaintEvent;
-class QString;
+class TQLabel;
+class TQMouseEvent;
+class TQPaintEvent;
+class TQString;
-class K3bSplash : public QVBox
+class K3bSplash : public TQVBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bSplash( QWidget* parent = 0, const char* name = 0 );
+ K3bSplash( TQWidget* tqparent = 0, const char* name = 0 );
~K3bSplash();
public slots:
void show();
- void addInfo( const QString& );
+ void addInfo( const TQString& );
protected:
- void mousePressEvent( QMouseEvent* );
- // void paintEvent( QPaintEvent* );
+ void mousePressEvent( TQMouseEvent* );
+ // void paintEvent( TQPaintEvent* );
private:
- QLabel* m_infoBox;
+ TQLabel* m_infoBox;
};
#endif
diff --git a/src/k3bstatusbarmanager.cpp b/src/k3bstatusbarmanager.cpp
index b6e603d..9d6bb36 100644
--- a/src/k3bstatusbarmanager.cpp
+++ b/src/k3bstatusbarmanager.cpp
@@ -37,58 +37,58 @@
#include <kaboutdata.h>
#include <kaction.h>
-#include <qlabel.h>
-#include <qhbox.h>
-#include <qfile.h>
-#include <qtimer.h>
-#include <qevent.h>
-#include <qtooltip.h>
+#include <tqlabel.h>
+#include <tqhbox.h>
+#include <tqfile.h>
+#include <tqtimer.h>
+#include <tqevent.h>
+#include <tqtooltip.h>
-K3bStatusBarManager::K3bStatusBarManager( K3bMainWindow* parent )
- : QObject(parent),
- m_mainWindow(parent)
+K3bStatusBarManager::K3bStatusBarManager( K3bMainWindow* tqparent )
+ : TQObject(tqparent),
+ m_mainWindow(tqparent)
{
// setup free temp space box
- QHBox* boxFreeTemp = new QHBox( m_mainWindow->statusBar() );
+ TQHBox* boxFreeTemp = new TQHBox( m_mainWindow->statusBar() );
boxFreeTemp->setSpacing(2);
- m_labelProjectInfo = new QLabel( m_mainWindow->statusBar() );
+ m_labelProjectInfo = new TQLabel( m_mainWindow->statusBar() );
- m_pixFreeTemp = new QLabel( boxFreeTemp );
- (void)new QLabel( i18n("Temp:"), boxFreeTemp );
+ m_pixFreeTemp = new TQLabel( boxFreeTemp );
+ (void)new TQLabel( i18n("Temp:"), boxFreeTemp );
m_pixFreeTemp->setPixmap( SmallIcon("folder_green") );
- m_labelFreeTemp = new QLabel( boxFreeTemp );
+ m_labelFreeTemp = new TQLabel( boxFreeTemp );
boxFreeTemp->installEventFilter( this );
// setup info area
- m_labelInfoMessage = new QLabel( " ", m_mainWindow->statusBar() );
+ m_labelInfoMessage = new TQLabel( " ", m_mainWindow->statusBar() );
// setup version info
- m_versionBox = new QLabel( QString("K3b %1").arg(kapp->aboutData()->version()), m_mainWindow->statusBar() );
+ m_versionBox = new TQLabel( TQString("K3b %1").tqarg(kapp->aboutData()->version()), m_mainWindow->statusBar() );
m_versionBox->installEventFilter( this );
// setup the statusbar
m_mainWindow->statusBar()->addWidget( m_labelInfoMessage, 1 ); // for showing some info
m_mainWindow->statusBar()->addWidget( m_labelProjectInfo, 0, true );
// a spacer item
- m_mainWindow->statusBar()->addWidget( new QLabel( " ", m_mainWindow->statusBar() ), 0, true );
+ m_mainWindow->statusBar()->addWidget( new TQLabel( " ", m_mainWindow->statusBar() ), 0, true );
m_mainWindow->statusBar()->addWidget( boxFreeTemp, 0, true );
// a spacer item
- m_mainWindow->statusBar()->addWidget( new QLabel( " ", m_mainWindow->statusBar() ), 0, true );
+ m_mainWindow->statusBar()->addWidget( new TQLabel( " ", m_mainWindow->statusBar() ), 0, true );
m_mainWindow->statusBar()->addWidget( m_versionBox, 0, true );
- connect( m_mainWindow, SIGNAL(configChanged(KConfig*)), this, SLOT(update()) );
- connect( m_mainWindow->actionCollection(), SIGNAL(actionStatusText(const QString&)),
- this, SLOT(showActionStatusText(const QString&)) );
- connect( m_mainWindow->actionCollection(), SIGNAL(clearStatusText()),
- this, SLOT(clearActionStatusText()) );
- connect( k3bappcore->projectManager(), SIGNAL(activeProjectChanged(K3bDoc*)),
- this, SLOT(slotActiveProjectChanged(K3bDoc*)) );
- connect( k3bappcore->projectManager(), SIGNAL(projectChanged(K3bDoc*)),
- this, SLOT(slotActiveProjectChanged(K3bDoc*)) );
- connect( (m_updateTimer = new QTimer( this )), SIGNAL(timeout()), this, SLOT(slotUpdateProjectStats()) );
+ connect( m_mainWindow, TQT_SIGNAL(configChanged(KConfig*)), this, TQT_SLOT(update()) );
+ connect( m_mainWindow->actionCollection(), TQT_SIGNAL(actionStatusText(const TQString&)),
+ this, TQT_SLOT(showActionStatusText(const TQString&)) );
+ connect( m_mainWindow->actionCollection(), TQT_SIGNAL(clearStatusText()),
+ this, TQT_SLOT(clearActionStatusText()) );
+ connect( k3bappcore->projectManager(), TQT_SIGNAL(activeProjectChanged(K3bDoc*)),
+ this, TQT_SLOT(slotActiveProjectChanged(K3bDoc*)) );
+ connect( k3bappcore->projectManager(), TQT_SIGNAL(projectChanged(K3bDoc*)),
+ this, TQT_SLOT(slotActiveProjectChanged(K3bDoc*)) );
+ connect( (m_updateTimer = new TQTimer( this )), TQT_SIGNAL(timeout()), this, TQT_SLOT(slotUpdateProjectStats()) );
update();
}
@@ -101,10 +101,10 @@ K3bStatusBarManager::~K3bStatusBarManager()
void K3bStatusBarManager::update()
{
- QString path = K3b::defaultTempPath();
+ TQString path = K3b::defaultTempPath();
- if( !QFile::exists( path ) )
- path.truncate( path.findRev('/') );
+ if( !TQFile::exists( path ) )
+ path.truncate( path.tqfindRev('/') );
unsigned long size, avail;
if( K3b::kbFreeOnFs( path, size, avail ) )
@@ -112,14 +112,14 @@ void K3bStatusBarManager::update()
else
m_labelFreeTemp->setText(i18n("No info"));
- if( path != QToolTip::textFor( m_labelFreeTemp->parentWidget() ) ) {
- QToolTip::remove( m_labelFreeTemp->parentWidget() );
- QToolTip::add( m_labelFreeTemp->parentWidget(), path );
+ if( path != TQToolTip::textFor( m_labelFreeTemp->tqparentWidget() ) ) {
+ TQToolTip::remove( m_labelFreeTemp->tqparentWidget() );
+ TQToolTip::add( m_labelFreeTemp->tqparentWidget(), path );
}
}
-void K3bStatusBarManager::slotFreeTempSpace(const QString&,
+void K3bStatusBarManager::slotFreeTempSpace(const TQString&,
unsigned long kbSize,
unsigned long,
unsigned long kbAvail)
@@ -134,11 +134,11 @@ void K3bStatusBarManager::slotFreeTempSpace(const QString&,
m_pixFreeTemp->setPixmap( SmallIcon("folder_green") );
// update the display every second
- QTimer::singleShot( 2000, this, SLOT(update()) );
+ TQTimer::singleShot( 2000, this, TQT_SLOT(update()) );
}
-void K3bStatusBarManager::showActionStatusText( const QString& text )
+void K3bStatusBarManager::showActionStatusText( const TQString& text )
{
m_mainWindow->statusBar()->message( text );
}
@@ -150,24 +150,24 @@ void K3bStatusBarManager::clearActionStatusText()
}
-bool K3bStatusBarManager::eventFilter( QObject* o, QEvent* e )
+bool K3bStatusBarManager::eventFilter( TQObject* o, TQEvent* e )
{
- if( e->type() == QEvent::MouseButtonDblClick ) {
- if( o == m_labelFreeTemp->parentWidget() )
+ if( e->type() == TQEvent::MouseButtonDblClick ) {
+ if( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_labelFreeTemp->tqparentWidget()) )
m_mainWindow->showOptionDialog( 0 ); // FIXME: use an enumeration for the option pages
- else if( o == m_versionBox )
+ else if( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_versionBox) )
if( KAction* a = m_mainWindow->action( "help_about_app" ) )
a->activate();
}
- return QObject::eventFilter( o, e );
+ return TQObject::eventFilter( o, e );
}
-static QString dataDocStats( K3bDataDoc* dataDoc )
+static TQString dataDocStats( K3bDataDoc* dataDoc )
{
return i18n("1 file in %1", "%n files in %1", dataDoc->root()->numFiles() )
- .arg( i18n("1 folder", "%n folders", dataDoc->root()->numDirs()+1 ) );
+ .tqarg( i18n("1 folder", "%n folders", dataDoc->root()->numDirs()+1 ) );
}
@@ -181,7 +181,7 @@ void K3bStatusBarManager::slotActiveProjectChanged( K3bDoc* doc )
}
}
else if( !doc ) {
- m_labelProjectInfo->setText( QString() );
+ m_labelProjectInfo->setText( TQString() );
}
}
@@ -199,7 +199,7 @@ void K3bStatusBarManager::slotUpdateProjectStats()
case K3bDoc::DATA: {
K3bDataDoc* dataDoc = static_cast<K3bDataDoc*>( doc );
- m_labelProjectInfo->setText( i18n("Data CD (%1)").arg(dataDocStats(dataDoc)) );
+ m_labelProjectInfo->setText( i18n("Data CD (%1)").tqarg(dataDocStats(dataDoc)) );
break;
}
@@ -207,7 +207,7 @@ void K3bStatusBarManager::slotUpdateProjectStats()
K3bAudioDoc* audioDoc = static_cast<K3bMixedDoc*>( doc )->audioDoc();
K3bDataDoc* dataDoc = static_cast<K3bMixedDoc*>( doc )->dataDoc();
m_labelProjectInfo->setText( i18n("Mixed CD (1 track and %1)", "Mixed CD (%n tracks and %1)", audioDoc->numOfTracks() )
- .arg( dataDocStats(dataDoc)) );
+ .tqarg( dataDocStats(dataDoc)) );
break;
}
@@ -219,31 +219,31 @@ void K3bStatusBarManager::slotUpdateProjectStats()
case K3bDoc::MOVIX: {
K3bDataDoc* dataDoc = static_cast<K3bDataDoc*>( doc );
- m_labelProjectInfo->setText( i18n("eMovix CD (%1)").arg(dataDocStats(dataDoc)) );
+ m_labelProjectInfo->setText( i18n("eMovix CD (%1)").tqarg(dataDocStats(dataDoc)) );
break;
}
case K3bDoc::MOVIX_DVD: {
K3bDataDoc* dataDoc = static_cast<K3bDataDoc*>( doc );
- m_labelProjectInfo->setText( i18n("eMovix DVD (%1)").arg(dataDocStats(dataDoc)) );
+ m_labelProjectInfo->setText( i18n("eMovix DVD (%1)").tqarg(dataDocStats(dataDoc)) );
break;
}
case K3bDoc::DVD: {
K3bDataDoc* dataDoc = static_cast<K3bDataDoc*>( doc );
- m_labelProjectInfo->setText( i18n("Data DVD (%1)").arg(dataDocStats(dataDoc)) );
+ m_labelProjectInfo->setText( i18n("Data DVD (%1)").tqarg(dataDocStats(dataDoc)) );
break;
}
case K3bDoc::VIDEODVD: {
K3bDataDoc* dataDoc = static_cast<K3bDataDoc*>( doc );
- m_labelProjectInfo->setText( i18n("Video DVD (%1)").arg(dataDocStats(dataDoc)) );
+ m_labelProjectInfo->setText( i18n("Video DVD (%1)").tqarg(dataDocStats(dataDoc)) );
break;
}
}
}
else {
- m_labelProjectInfo->setText( QString() );
+ m_labelProjectInfo->setText( TQString() );
}
}
diff --git a/src/k3bstatusbarmanager.h b/src/k3bstatusbarmanager.h
index d8db737..b73b82b 100644
--- a/src/k3bstatusbarmanager.h
+++ b/src/k3bstatusbarmanager.h
@@ -18,44 +18,45 @@
#ifndef K3B_STATUSBAR_MANAGER_H
#define K3B_STATUSBAR_MANAGER_H
-#include <qobject.h>
+#include <tqobject.h>
-class QLabel;
+class TQLabel;
class K3bMainWindow;
-class QEvent;
+class TQEvent;
class K3bDoc;
-class QTimer;
+class TQTimer;
-class K3bStatusBarManager : public QObject
+class K3bStatusBarManager : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bStatusBarManager( K3bMainWindow* parent );
+ K3bStatusBarManager( K3bMainWindow* tqparent );
~K3bStatusBarManager();
public slots:
void update();
private slots:
- void slotFreeTempSpace( const QString&, unsigned long, unsigned long, unsigned long );
- void showActionStatusText( const QString& text );
+ void slotFreeTempSpace( const TQString&, unsigned long, unsigned long, unsigned long );
+ void showActionStatusText( const TQString& text );
void clearActionStatusText();
void slotActiveProjectChanged( K3bDoc* doc );
void slotUpdateProjectStats();
private:
- bool eventFilter( QObject* o, QEvent* e );
+ bool eventFilter( TQObject* o, TQEvent* e );
- QLabel* m_labelInfoMessage;
- QLabel* m_pixFreeTemp;
- QLabel* m_labelFreeTemp;
- QLabel* m_versionBox;
- QLabel* m_labelProjectInfo;
+ TQLabel* m_labelInfoMessage;
+ TQLabel* m_pixFreeTemp;
+ TQLabel* m_labelFreeTemp;
+ TQLabel* m_versionBox;
+ TQLabel* m_labelProjectInfo;
K3bMainWindow* m_mainWindow;
- QTimer* m_updateTimer;
+ TQTimer* m_updateTimer;
};
#endif
diff --git a/src/k3bsystemproblemdialog.cpp b/src/k3bsystemproblemdialog.cpp
index 17f9376..5f97c7f 100644
--- a/src/k3bsystemproblemdialog.cpp
+++ b/src/k3bsystemproblemdialog.cpp
@@ -34,11 +34,11 @@
#include <k3bthememanager.h>
#include <k3bcore.h>
-#include <qpushbutton.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qfileinfo.h>
+#include <tqpushbutton.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqfileinfo.h>
#include <klocale.h>
#include <kstandarddirs.h>
@@ -56,19 +56,19 @@
#include <fstab.h>
-static QString markupString( const QString& s_ )
+static TQString markupString( const TQString& s_ )
{
- QString s(s_);
- s.replace( '<', "&lt;" );
- s.replace( '>', "&gt;" );
+ TQString s(s_);
+ s.tqreplace( '<', "&lt;" );
+ s.tqreplace( '>', "&gt;" );
return s;
}
K3bSystemProblem::K3bSystemProblem( int t,
- const QString& p,
- const QString& d,
- const QString& s,
+ const TQString& p,
+ const TQString& d,
+ const TQString& s,
bool k )
: type(t),
problem(p),
@@ -79,10 +79,10 @@ K3bSystemProblem::K3bSystemProblem( int t,
}
-K3bSystemProblemDialog::K3bSystemProblemDialog( const QValueList<K3bSystemProblem>& problems,
- QWidget* parent,
+K3bSystemProblemDialog::K3bSystemProblemDialog( const TQValueList<K3bSystemProblem>& problems,
+ TQWidget* tqparent,
const char* name )
- : KDialog( parent, name )
+ : KDialog( tqparent, name )
{
setCaption( i18n("System Configuration Problems") );
@@ -92,13 +92,13 @@ K3bSystemProblemDialog::K3bSystemProblemDialog( const QValueList<K3bSystemProble
titleFrame->setTitle( i18n("System Configuration Problems"),
i18n("1 problem", "%n problems", problems.count() ) );
- m_closeButton = new QPushButton( i18n("Close"), this );
- connect( m_closeButton, SIGNAL(clicked()), this, SLOT(close()) );
- m_checkDontShowAgain = new QCheckBox( i18n("Do not show again"), this );
+ m_closeButton = new TQPushButton( i18n("Close"), this );
+ connect( m_closeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(close()) );
+ m_checkDontShowAgain = new TQCheckBox( i18n("Do not show again"), this );
#ifdef HAVE_K3BSETUP
- m_k3bsetupButton = new QPushButton( i18n("Start K3bSetup2"), this );
- connect( m_k3bsetupButton, SIGNAL(clicked()), this, SLOT(slotK3bSetup()) );
+ m_k3bsetupButton = new TQPushButton( i18n("Start K3bSetup2"), this );
+ connect( m_k3bsetupButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotK3bSetup()) );
#endif
// setup the problem view
@@ -108,14 +108,14 @@ K3bSystemProblemDialog::K3bSystemProblemDialog( const QValueList<K3bSystemProble
view->setTextFormat(RichText);
- // layout everything
- QGridLayout* grid = new QGridLayout( this );
+ // tqlayout everything
+ TQGridLayout* grid = new TQGridLayout( this );
grid->setMargin( marginHint() );
grid->setSpacing( spacingHint() );
grid->addMultiCellWidget( titleFrame, 0, 0, 0, 1 );
grid->addMultiCellWidget( view, 1, 1, 0, 1 );
grid->addWidget( m_checkDontShowAgain, 2, 0 );
- QHBoxLayout* buttonBox = new QHBoxLayout;
+ TQHBoxLayout* buttonBox = new TQHBoxLayout;
buttonBox->setSpacing( spacingHint() );
buttonBox->setMargin( 0 );
#ifdef HAVE_K3BSETUP
@@ -126,9 +126,9 @@ K3bSystemProblemDialog::K3bSystemProblemDialog( const QValueList<K3bSystemProble
grid->setColStretch( 0, 1 );
grid->setRowStretch( 1, 1 );
- QString text = "<html>";
+ TQString text = "<html>";
- for( QValueList<K3bSystemProblem>::const_iterator it = problems.begin();
+ for( TQValueList<K3bSystemProblem>::const_iterator it = problems.begin();
it != problems.end(); ++it ) {
const K3bSystemProblem& p = *it;
@@ -157,7 +157,7 @@ K3bSystemProblemDialog::K3bSystemProblemDialog( const QValueList<K3bSystemProble
}
-void K3bSystemProblemDialog::closeEvent( QCloseEvent* e )
+void K3bSystemProblemDialog::closeEvent( TQCloseEvent* e )
{
if( m_checkDontShowAgain->isChecked() ) {
KConfigGroup grp( kapp->config(), "General Options" );
@@ -168,10 +168,10 @@ void K3bSystemProblemDialog::closeEvent( QCloseEvent* e )
}
-void K3bSystemProblemDialog::checkSystem( QWidget* parent,
+void K3bSystemProblemDialog::checkSystem( TQWidget* tqparent,
const char* name )
{
- QValueList<K3bSystemProblem> problems;
+ TQValueList<K3bSystemProblem> problems;
if( k3bcore->deviceManager()->cdWriter().isEmpty() ) {
problems.append( K3bSystemProblem( K3bSystemProblem::NON_CRITICAL,
@@ -186,16 +186,16 @@ void K3bSystemProblemDialog::checkSystem( QWidget* parent,
// 1. cdrecord, cdrdao
if( !k3bcore->externalBinManager()->foundBin( "cdrecord" ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL,
- i18n("Unable to find %1 executable").arg("cdrecord"),
+ i18n("Unable to tqfind %1 executable").tqarg("cdrecord"),
i18n("K3b uses cdrecord to actually write CDs."),
- i18n("Install the cdrtools package which contains "
+ i18n("Install the cdrtools package which tqcontains "
"cdrecord."),
false ) );
}
else {
if( k3bcore->externalBinManager()->binObject( "cdrecord" )->hasFeature( "outdated" ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::NON_CRITICAL,
- i18n("Used %1 version %2 is outdated").arg("cdrecord").arg(k3bcore->externalBinManager()->binObject( "cdrecord" )->version),
+ i18n("Used %1 version %2 is outdated").tqarg("cdrecord").tqarg(k3bcore->externalBinManager()->binObject( "cdrecord" )->version),
i18n("Although K3b supports all cdrtools versions since "
"1.10 it is highly recommended to at least use "
"version 2.0."),
@@ -210,23 +210,23 @@ void K3bSystemProblemDialog::checkSystem( QWidget* parent,
// Since kernel 2.6.8 older cdrecord versions are not able to use the SCSI subsystem when running suid root anymore
// So far we ignore the suid root issue with kernel >= 2.6.8 and cdrecord < 2.01.01a02
//
- // Kernel 2.6.16.something seems to introduce another problem which was apparently worked around in cdrecord 2.01.01a05
+ // Kernel 2.6.16.something seems to introduce another problem which was aptqparently worked around in cdrecord 2.01.01a05
//
if( K3b::simpleKernelVersion() >= K3bVersion( 2, 6, 8 ) &&
k3bcore->externalBinManager()->binObject( "cdrecord" )->version < K3bVersion( 2, 1, 1, "a05" ) &&
!k3bcore->externalBinManager()->binObject( "cdrecord" )->hasFeature( "wodim" ) ) {
if( k3bcore->externalBinManager()->binObject( "cdrecord" )->hasFeature( "suidroot" ) )
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL,
- i18n("%1 will be run with root privileges on kernel >= 2.6.8").arg("cdrecord <= 2.01.01a05"),
+ i18n("%1 will be run with root privileges on kernel >= 2.6.8").tqarg("cdrecord <= 2.01.01a05"),
i18n("Since Linux kernel 2.6.8 %1 will not work when run suid "
- "root for security reasons anymore.").arg("cdrecord <= 2.01.01a05"),
- QString::null,
+ "root for security reasons anymore.").tqarg("cdrecord <= 2.01.01a05"),
+ TQString(),
true ) );
}
#ifdef CDRECORD_SUID_ROOT_CHECK
else if( !k3bcore->externalBinManager()->binObject( "cdrecord" )->hasFeature( "suidroot" ) && getuid() != 0 ) // not root
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL,
- i18n("%1 will be run without root privileges").arg("cdrecord"),
+ i18n("%1 will be run without root privileges").tqarg("cdrecord"),
i18n("It is highly recommended to configure cdrecord "
"to run with root privileges. Only then cdrecord "
"runs with high priority which increases the overall "
@@ -234,7 +234,7 @@ void K3bSystemProblemDialog::checkSystem( QWidget* parent,
"it allows changing the size of the used burning buffer. "
"A lot of user problems could be solved this way. This is also "
"true when using SuSE's resmgr."),
- QString::null,
+ TQString(),
true ) );
#endif // CDRECORD_SUID_ROOT_CHECK
#endif
@@ -242,7 +242,7 @@ void K3bSystemProblemDialog::checkSystem( QWidget* parent,
}
if( !k3bcore->externalBinManager()->foundBin( "cdrdao" ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL,
- i18n("Unable to find %1 executable").arg("cdrdao"),
+ i18n("Unable to tqfind %1 executable").tqarg("cdrdao"),
i18n("K3b uses cdrdao to actually write CDs."),
i18n("Install the cdrdao package."),
false ) );
@@ -253,11 +253,11 @@ void K3bSystemProblemDialog::checkSystem( QWidget* parent,
#ifdef CDRECORD_SUID_ROOT_CHECK
if( !k3bcore->externalBinManager()->binObject( "cdrdao" )->hasFeature( "suidroot" ) && getuid() != 0 )
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL,
- i18n("%1 will be run without root privileges").arg("cdrdao"),
+ i18n("%1 will be run without root privileges").tqarg("cdrdao"),
i18n("It is highly recommended to configure cdrdao "
"to run with root privileges to increase the "
"overall stability of the burning process."),
- QString::null,
+ TQString(),
true ) );
#endif // CDRECORD_SUID_ROOT_CHECK
#endif
@@ -268,7 +268,7 @@ void K3bSystemProblemDialog::checkSystem( QWidget* parent,
if( !k3bcore->deviceManager()->dvdWriter().isEmpty() ) {
if( !k3bcore->externalBinManager()->foundBin( "growisofs" ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL,
- i18n("Unable to find %1 executable").arg("growisofs"),
+ i18n("Unable to tqfind %1 executable").tqarg("growisofs"),
i18n("K3b uses growisofs to actually write dvds. "
"Without growisofs you will not be able to write dvds. "
"Make sure to install at least version 5.10."),
@@ -278,46 +278,46 @@ void K3bSystemProblemDialog::checkSystem( QWidget* parent,
else {
if( k3bcore->externalBinManager()->binObject( "growisofs" )->version < K3bVersion( 5, 10 ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL,
- i18n("Used %1 version %2 is outdated").arg("growisofs").arg(k3bcore->externalBinManager()->binObject( "growisofs" )->version),
+ i18n("Used %1 version %2 is outdated").tqarg("growisofs").tqarg(k3bcore->externalBinManager()->binObject( "growisofs" )->version),
i18n("K3b needs at least growisofs version 5.10 to write dvds. "
"All older versions will not work and K3b will refuse to use them."),
- i18n("Install a more recent version of %1.").arg("growisofs"),
+ i18n("Install a more recent version of %1.").tqarg("growisofs"),
false ) );
}
else if( k3bcore->externalBinManager()->binObject( "growisofs" )->version < K3bVersion( 5, 12 ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::NON_CRITICAL,
- i18n("Used %1 version %2 is outdated").arg("growisofs").arg(k3bcore->externalBinManager()->binObject( "growisofs" )->version),
+ i18n("Used %1 version %2 is outdated").tqarg("growisofs").tqarg(k3bcore->externalBinManager()->binObject( "growisofs" )->version),
i18n("K3b will not be able to copy DVDs on-the-fly or write a DVD+RW in multiple "
"sessions using a growisofs "
"version older than 5.12."),
- i18n("Install a more recent version of %1.").arg("growisofs"),
+ i18n("Install a more recent version of %1.").tqarg("growisofs"),
false ) );
}
else if( k3bcore->externalBinManager()->binObject( "growisofs" )->version < K3bVersion( 7, 0 ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::NON_CRITICAL,
- i18n("Used %1 version %2 is outdated").arg("growisofs").arg(k3bcore->externalBinManager()->binObject( "growisofs" )->version),
+ i18n("Used %1 version %2 is outdated").tqarg("growisofs").tqarg(k3bcore->externalBinManager()->binObject( "growisofs" )->version),
i18n("It is highly recommended to use growisofs 7.0 or higher. "
"K3b won't be able to write a DVD+RW in multiple "
"sessions using a growisofs version older than 7.0." ),
- i18n("Install a more recent version of %1.").arg("growisofs"),
+ i18n("Install a more recent version of %1.").tqarg("growisofs"),
false ) );
}
// for now we ignore the suid root bit becasue of the memorylocked issue
// else if( !k3bcore->externalBinManager()->binObject( "growisofs" )->hasFeature( "suidroot" ) ) {
// problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL,
-// i18n("%1 will be run without root privileges").arg("growisofs"),
+// i18n("%1 will be run without root privileges").tqarg("growisofs"),
// i18n("It is highly recommended to configure growisofs "
// "to run with root privileges. Only then growisofs "
// "runs with high priority which increases the overall "
// "stability of the burning process."),
-// QString::null,
+// TQString(),
// true ) );
// }
}
if( !k3bcore->externalBinManager()->foundBin( "dvd+rw-format" ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL,
- i18n("Unable to find %1 executable").arg("dvd+rw-format"),
+ i18n("Unable to tqfind %1 executable").tqarg("dvd+rw-format"),
i18n("K3b uses dvd+rw-format to format DVD-RWs and DVD+RWs."),
i18n("Install the dvd+rw-tools package."),
false ) );
@@ -330,11 +330,11 @@ void K3bSystemProblemDialog::checkSystem( QWidget* parent,
else if( k3bcore->externalBinManager()->binObject( "mkisofs" )->hasFeature( "outdated" ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL,
i18n("Used %1 version %2 is outdated")
- .arg("mkisofs")
- .arg(k3bcore->externalBinManager()->binObject( "mkisofs" )->version),
+ .tqarg("mkisofs")
+ .tqarg(k3bcore->externalBinManager()->binObject( "mkisofs" )->version),
i18n("K3b needs at least mkisofs version 1.14. Older versions may introduce problems "
"when creating data projects."),
- i18n("Install a more recent version of %1.").arg("mkisofs"),
+ i18n("Install a more recent version of %1.").tqarg("mkisofs"),
false ) );
}
@@ -342,7 +342,7 @@ void K3bSystemProblemDialog::checkSystem( QWidget* parent,
bool atapiReader = false;
bool atapiWriter = false;
bool dvd_r_dl = false;
- for( QPtrListIterator<K3bDevice::Device> it( k3bcore->deviceManager()->readingDevices() );
+ for( TQPtrListIterator<K3bDevice::Device> it( k3bcore->deviceManager()->readingDevices() );
it.current(); ++it ) {
if( it.current()->interfaceType() == K3bDevice::IDE )
atapiReader = true;
@@ -352,12 +352,12 @@ void K3bSystemProblemDialog::checkSystem( QWidget* parent,
// check automounted devices
- QPtrList<K3bDevice::Device> automountedDevices = checkForAutomounting();
- for( QPtrListIterator<K3bDevice::Device> it( automountedDevices );
+ TQPtrList<K3bDevice::Device> automountedDevices = checkForAutomounting();
+ for( TQPtrListIterator<K3bDevice::Device> it( automountedDevices );
it.current(); ++it ) {
problems.append( K3bSystemProblem( K3bSystemProblem::NON_CRITICAL,
i18n("Device %1 - %2 is automounted.")
- .arg(it.current()->vendor()).arg(it.current()->description()),
+ .tqarg(it.current()->vendor()).tqarg(it.current()->description()),
i18n("K3b is not able to unmount automounted devices. Thus, especially "
"DVD+RW rewriting might fail. There is no need to report this as "
"a bug or feature wish; it is not possible to solve this problem "
@@ -394,16 +394,16 @@ void K3bSystemProblemDialog::checkSystem( QWidget* parent,
!( k3bcore->externalBinManager()->binObject( "cdrecord" )->hasFeature( "plain-atapi" ) &&
K3b::plainAtapiSupport() ) ) {
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL,
- i18n("%1 %2 does not support ATAPI").arg("cdrecord").arg(k3bcore->externalBinManager()->binObject("cdrecord")->version),
+ i18n("%1 %2 does not support ATAPI").tqarg("cdrecord").tqarg(k3bcore->externalBinManager()->binObject("cdrecord")->version),
i18n("The configured version of %1 does not "
"support writing to ATAPI devices without "
"SCSI emulation and there is at least one writer "
"in your system not configured to use "
- "SCSI emulation.").arg("cdrecord"),
+ "SCSI emulation.").tqarg("cdrecord"),
i18n("The best and recommended solution is to enable "
"ide-scsi (SCSI emulation) for all devices. "
"This way you won't have any problems. Or you install "
- "(or select as the default) a more recent version of %1.").arg("cdrtools"),
+ "(or select as the default) a more recent version of %1.").tqarg("cdrtools"),
false ) );
}
}
@@ -412,22 +412,22 @@ void K3bSystemProblemDialog::checkSystem( QWidget* parent,
if( !k3bcore->externalBinManager()->binObject( "cdrdao" )->hasFeature( "hacked-atapi" ) &&
!k3bcore->externalBinManager()->binObject( "cdrdao" )->hasFeature( "plain-atapi") ) {
- // FIXME: replace ">" with "&gt;"
+ // FIXME: tqreplace ">" with "&gt;"
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL,
i18n("%1 %2 does not support ATAPI")
- .arg("cdrdao").arg(k3bcore->externalBinManager()->binObject("cdrdao")->version),
+ .tqarg("cdrdao").tqarg(k3bcore->externalBinManager()->binObject("cdrdao")->version),
i18n("The configured version of %1 does not "
"support writing to ATAPI devices without "
"SCSI emulation and there is at least one writer "
"in your system not configured to use "
- "SCSI emulation.").arg("cdrdao"),
+ "SCSI emulation.").tqarg("cdrdao"),
K3b::simpleKernelVersion() > K3bVersion( 2, 5, 0 )
? i18n("Install cdrdao >= 1.1.8 which supports writing to "
"ATAPI devices directly.")
: i18n("The best, and recommended, solution is to use "
"ide-scsi (SCSI emulation) for all writer devices: "
"this way you will not have any problems; or, you can install "
- "(or select as the default) a more recent version of %1.").arg("cdrdao"),
+ "(or select as the default) a more recent version of %1.").tqarg("cdrdao"),
false ) );
}
}
@@ -437,63 +437,63 @@ void K3bSystemProblemDialog::checkSystem( QWidget* parent,
if( dvd_r_dl && k3bcore->externalBinManager()->foundBin( "growisofs" ) ) {
if( k3bcore->externalBinManager()->binObject( "growisofs" )->version < K3bVersion( 6, 0 ) )
problems.append( K3bSystemProblem( K3bSystemProblem::NON_CRITICAL,
- i18n("Used %1 version %2 is outdated").arg("growisofs").arg(k3bcore->externalBinManager()->binObject( "growisofs" )->version),
+ i18n("Used %1 version %2 is outdated").tqarg("growisofs").tqarg(k3bcore->externalBinManager()->binObject( "growisofs" )->version),
i18n("K3b won't be able to write DVD-R Dual Layer media using a growisofs "
"version older than 6.0."),
i18n("Install a more recent version of growisofs."),
false ) );
}
- for( QPtrListIterator<K3bDevice::Device> it( k3bcore->deviceManager()->allDevices() );
+ for( TQPtrListIterator<K3bDevice::Device> it( k3bcore->deviceManager()->allDevices() );
it.current(); ++it ) {
K3bDevice::Device* dev = it.current();
- if( !QFileInfo( dev->blockDeviceName() ).isWritable() )
+ if( !TQFileInfo( dev->blockDeviceName() ).isWritable() )
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL,
- i18n("No write access to device %1").arg(dev->blockDeviceName()),
+ i18n("No write access to device %1").tqarg(dev->blockDeviceName()),
i18n("K3b needs write access to all the devices to perform certain tasks. "
- "Without it you might encounter problems with %1 - %2").arg(dev->vendor()).arg(dev->description()),
+ "Without it you might encounter problems with %1 - %2").tqarg(dev->vendor()).tqarg(dev->description()),
i18n("Make sure you have write access to %1. In case you are not using "
- "devfs or udev K3bSetup is able to do this for you.").arg(dev->blockDeviceName()),
+ "devfs or udev K3bSetup is able to do this for you.").tqarg(dev->blockDeviceName()),
false ) );
if( !dev->genericDevice().isEmpty() &&
- !QFileInfo( dev->genericDevice() ).isWritable() )
+ !TQFileInfo( dev->genericDevice() ).isWritable() )
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL,
- i18n("No write access to generic SCSI device %1").arg(dev->genericDevice()),
+ i18n("No write access to generic SCSI device %1").tqarg(dev->genericDevice()),
i18n("Without write access to the generic device you might "
- "encounter problems with Audio CD ripping from %1 - %2").arg(dev->vendor()).arg(dev->description()),
+ "encounter problems with Audio CD ripping from %1 - %2").tqarg(dev->vendor()).tqarg(dev->description()),
i18n("Make sure you have write access to %1. In case you are not using "
- "devfs or udev K3bSetup is able to do this for you.").arg(dev->genericDevice()),
+ "devfs or udev K3bSetup is able to do this for you.").tqarg(dev->genericDevice()),
false ) );
if( dev->interfaceType() == K3bDevice::IDE && !dmaActivated( dev ) )
problems.append( K3bSystemProblem( K3bSystemProblem::CRITICAL,
- i18n("DMA disabled on device %1 - %2").arg(dev->vendor()).arg(dev->description()),
+ i18n("DMA disabled on device %1 - %2").tqarg(dev->vendor()).tqarg(dev->description()),
i18n("With most modern CD/DVD devices enabling DMA highly increases "
"read/write performance. If you experience very low writing speeds "
"this is probably the cause."),
- i18n("Enable DMA temporarily as root with 'hdparm -d 1 %1'.").arg(dev->blockDeviceName()) ) );
+ i18n("Enable DMA temporarily as root with 'hdparm -d 1 %1'.").tqarg(dev->blockDeviceName()) ) );
}
//
// Check if the user specified some user parameters and warn about it
//
- const QMap<QString, K3bExternalProgram*>& programMap = k3bcore->externalBinManager()->programs();
- for( QMap<QString, K3bExternalProgram*>::const_iterator it = programMap.constBegin();
+ const TQMap<TQString, K3bExternalProgram*>& programMap = k3bcore->externalBinManager()->programs();
+ for( TQMap<TQString, K3bExternalProgram*>::const_iterator it = programMap.constBegin();
it != programMap.constEnd(); ++it ) {
const K3bExternalProgram* p = it.data();
if( !p->userParameters().isEmpty() ) {
problems.append( K3bSystemProblem( K3bSystemProblem::WARNING,
- i18n("User parameters specified for external program %1").arg(p->name()),
+ i18n("User parameters specified for external program %1").tqarg(p->name()),
i18n("Sometimes it may be nessessary to specify user parameters in addition to "
"the parameters generated by K3b. This is simply a warning to make sure that "
"these parameters are really wanted and won't be part of some bug report."),
i18n("To remove the user parameters for the external program %1 open the "
"K3b settings page 'Programs' and choose the tab 'User Parameters'.")
- .arg(p->name()),
+ .tqarg(p->name()),
false ) );
}
}
@@ -503,9 +503,9 @@ void K3bSystemProblemDialog::checkSystem( QWidget* parent,
// the legal restrictions with many distros
//
/*
- QPtrList<K3bPlugin> plugins = k3bcore->pluginManager()->plugins( "AudioDecoder" );
+ TQPtrList<K3bPlugin> plugins = k3bcore->pluginManager()->plugins( "AudioDecoder" );
bool haveMp3Decoder = false;
- for( QPtrListIterator<K3bPlugin> it( plugins ); *it; ++it ) {
+ for( TQPtrListIterator<K3bPlugin> it( plugins ); *it; ++it ) {
if( it.current()->pluginInfo().name() == "K3b MAD Decoder" ) {
haveMp3Decoder = true;
break;
@@ -566,7 +566,7 @@ void K3bSystemProblemDialog::checkSystem( QWidget* parent,
kdDebug() << "(K3bCore) System problems:" << endl;
- for( QValueList<K3bSystemProblem>::const_iterator it = problems.begin();
+ for( TQValueList<K3bSystemProblem>::const_iterator it = problems.begin();
it != problems.end(); ++it ) {
const K3bSystemProblem& p = *it;
@@ -594,7 +594,7 @@ void K3bSystemProblemDialog::checkSystem( QWidget* parent,
static K3bSystemProblemDialog* s_openDlg = 0;
if( s_openDlg )
s_openDlg->close();
- K3bSystemProblemDialog dlg( problems, parent, name );
+ K3bSystemProblemDialog dlg( problems, tqparent, name );
s_openDlg = &dlg;
dlg.exec();
s_openDlg = 0;
@@ -616,7 +616,7 @@ void K3bSystemProblemDialog::slotK3bSetup()
int K3bSystemProblemDialog::dmaActivated( K3bDevice::Device* dev )
{
- QString hdparm = K3b::findExe( "hdparm" );
+ TQString hdparm = K3b::findExe( "hdparm" );
if( hdparm.isEmpty() )
return -1;
@@ -633,18 +633,18 @@ int K3bSystemProblemDialog::dmaActivated( K3bDevice::Device* dev )
//
// But we ignore the on/off since it might be translated
//
- if( out.output().contains( "1 (" ) )
+ if( out.output().tqcontains( "1 (" ) )
return 1;
- else if( out.output().contains( "0 (" ) )
+ else if( out.output().tqcontains( "0 (" ) )
return 0;
else
return -1;
}
-QPtrList<K3bDevice::Device> K3bSystemProblemDialog::checkForAutomounting()
+TQPtrList<K3bDevice::Device> K3bSystemProblemDialog::checkForAutomounting()
{
- QPtrList<K3bDevice::Device> l;
+ TQPtrList<K3bDevice::Device> l;
::setfsent();
@@ -652,13 +652,13 @@ QPtrList<K3bDevice::Device> K3bSystemProblemDialog::checkForAutomounting()
while( (mountInfo = ::getfsent()) )
{
// check if the entry corresponds to a device
- QString md = K3b::resolveLink( QFile::decodeName( mountInfo->fs_spec ) );
- QString type = QFile::decodeName( mountInfo->fs_vfstype );
+ TQString md = K3b::resolveLink( TQFile::decodeName( mountInfo->fs_spec ) );
+ TQString type = TQFile::decodeName( mountInfo->fs_vfstype );
if( type == "supermount" || type == "subfs" ) {
// parse the device
- QStringList opts = QStringList::split( ",", QString::fromLocal8Bit(mountInfo->fs_mntops) );
- for( QStringList::const_iterator it = opts.begin(); it != opts.end(); ++it ) {
+ TQStringList opts = TQStringList::split( ",", TQString::fromLocal8Bit(mountInfo->fs_mntops) );
+ for( TQStringList::const_iterator it = opts.begin(); it != opts.end(); ++it ) {
if( (*it).startsWith("dev=") ) {
md = (*it).mid( 4 );
break;
diff --git a/src/k3bsystemproblemdialog.h b/src/k3bsystemproblemdialog.h
index ad3e1c3..f884d2a 100644
--- a/src/k3bsystemproblemdialog.h
+++ b/src/k3bsystemproblemdialog.h
@@ -17,14 +17,14 @@
#ifndef _K3B_SYSTEM_DIALOG_H_
#define _K3B_SYSTEM_DIALOG_H_
-#include <qstring.h>
-#include <qvaluelist.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
#include <kdialog.h>
-class QPushButton;
-class QCheckBox;
-class QCloseEvent;
+class TQPushButton;
+class TQCheckBox;
+class TQCloseEvent;
namespace K3bDevice {
class Device;
}
@@ -34,9 +34,9 @@ class K3bSystemProblem
{
public:
K3bSystemProblem( int type = NON_CRITICAL,
- const QString& problem = QString::null,
- const QString& details = QString::null,
- const QString& solution = QString::null,
+ const TQString& problem = TQString(),
+ const TQString& details = TQString(),
+ const TQString& solution = TQString(),
bool k3bsetup = false );
enum {
@@ -46,9 +46,9 @@ class K3bSystemProblem
};
int type;
- QString problem;
- QString details;
- QString solution;
+ TQString problem;
+ TQString details;
+ TQString solution;
bool solvableByK3bSetup;
};
@@ -68,6 +68,7 @@ class K3bSystemProblem
class K3bSystemProblemDialog : public KDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -77,25 +78,25 @@ class K3bSystemProblemDialog : public KDialog
* or K3b is started for the first time.
*/
static bool readCheckSystemConfig();
- static void checkSystem( QWidget* parent = 0,
+ static void checkSystem( TQWidget* tqparent = 0,
const char* name = 0 );
protected:
- void closeEvent( QCloseEvent* );
+ void closeEvent( TQCloseEvent* );
private slots:
void slotK3bSetup();
private:
- K3bSystemProblemDialog( const QValueList<K3bSystemProblem>&,
- QWidget* parent = 0,
+ K3bSystemProblemDialog( const TQValueList<K3bSystemProblem>&,
+ TQWidget* tqparent = 0,
const char* name = 0 );
static int dmaActivated( K3bDevice::Device* );
- static QPtrList<K3bDevice::Device> checkForAutomounting();
+ static TQPtrList<K3bDevice::Device> checkForAutomounting();
- QPushButton* m_closeButton;
- QPushButton* m_k3bsetupButton;
- QCheckBox* m_checkDontShowAgain;
+ TQPushButton* m_closeButton;
+ TQPushButton* m_k3bsetupButton;
+ TQCheckBox* m_checkDontShowAgain;
};
#endif
diff --git a/src/k3btempdirselectionwidget.cpp b/src/k3btempdirselectionwidget.cpp
index ae850e1..b565f21 100644
--- a/src/k3btempdirselectionwidget.cpp
+++ b/src/k3btempdirselectionwidget.cpp
@@ -18,14 +18,14 @@
#include <k3bglobals.h>
#include <k3bcore.h>
-#include <qlabel.h>
-#include <qgroupbox.h>
-#include <qlayout.h>
-#include <qtimer.h>
-#include <qhbox.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qfileinfo.h>
+#include <tqlabel.h>
+#include <tqgroupbox.h>
+#include <tqlayout.h>
+#include <tqtimer.h>
+#include <tqhbox.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqfileinfo.h>
#include <kconfig.h>
#include <klocale.h>
@@ -39,32 +39,32 @@
#include <klineedit.h>
-K3bTempDirSelectionWidget::K3bTempDirSelectionWidget( QWidget *parent, const char *name )
- : QGroupBox( 4, Qt::Vertical, parent, name ),
+K3bTempDirSelectionWidget::K3bTempDirSelectionWidget( TQWidget *tqparent, const char *name )
+ : TQGroupBox( 4, Qt::Vertical, tqparent, name ),
m_labelCdSize(0),
m_defaultImageFileName( "k3b_image.iso" )
{
- layout()->setSpacing( KDialog::spacingHint() );
- layout()->setMargin( KDialog::marginHint() );
+ tqlayout()->setSpacing( KDialog::spacingHint() );
+ tqlayout()->setMargin( KDialog::marginHint() );
- m_imageFileLabel = new QLabel( this );
+ m_imageFileLabel = new TQLabel( this );
m_editDirectory = new KURLRequester( this, "m_editDirectory" );
m_imageFileLabel->setBuddy( m_editDirectory );
- QHBox* freeTempSpaceBox = new QHBox( this );
+ TQHBox* freeTempSpaceBox = new TQHBox( this );
freeTempSpaceBox->setSpacing( KDialog::spacingHint() );
- (void)new QLabel( i18n( "Free space in temporary directory:" ), freeTempSpaceBox, "TextLabel2" );
- m_labelFreeSpace = new QLabel( " ",freeTempSpaceBox, "m_labelFreeSpace" );
- m_labelFreeSpace->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
+ (void)new TQLabel( i18n( "Free space in temporary directory:" ), freeTempSpaceBox, "TextLabel2" );
+ m_labelFreeSpace = new TQLabel( " ",freeTempSpaceBox, "m_labelFreeSpace" );
+ m_labelFreeSpace->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
- connect( m_editDirectory, SIGNAL(openFileDialog(KURLRequester*)),
- this, SLOT(slotTempDirButtonPressed(KURLRequester*)) );
- connect( m_editDirectory, SIGNAL(textChanged(const QString&)),
- this, SLOT(slotUpdateFreeTempSpace()) );
- connect( m_editDirectory->lineEdit(), SIGNAL(lostFocus()),
- this, SLOT(slotFixTempPath()) );
+ connect( m_editDirectory, TQT_SIGNAL(openFileDialog(KURLRequester*)),
+ this, TQT_SLOT(slotTempDirButtonPressed(KURLRequester*)) );
+ connect( m_editDirectory, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(slotUpdateFreeTempSpace()) );
+ connect( m_editDirectory->lineEdit(), TQT_SIGNAL(lostFocus()),
+ this, TQT_SLOT(slotFixTempPath()) );
// choose a default
setSelectionMode( DIR );
@@ -74,11 +74,11 @@ K3bTempDirSelectionWidget::K3bTempDirSelectionWidget( QWidget *parent, const cha
// ToolTips
// --------------------------------------------------------------------------------
- QToolTip::add( m_editDirectory, i18n("The directory in which to save the image files") );
+ TQToolTip::add( m_editDirectory, i18n("The directory in which to save the image files") );
// What's This info
// --------------------------------------------------------------------------------
- QWhatsThis::add( m_editDirectory, i18n("<p>This is the directory in which K3b will save the <em>image files</em>."
+ TQWhatsThis::add( m_editDirectory, i18n("<p>This is the directory in which K3b will save the <em>image files</em>."
"<p>Please make sure that it resides on a partition that has enough free space.") );
}
@@ -90,10 +90,10 @@ K3bTempDirSelectionWidget::~K3bTempDirSelectionWidget()
unsigned long K3bTempDirSelectionWidget::freeTempSpace() const
{
- QString path = m_editDirectory->url();
+ TQString path = m_editDirectory->url();
- if( !QFile::exists( path ) )
- path.truncate( path.findRev('/') );
+ if( !TQFile::exists( path ) )
+ path.truncate( path.tqfindRev('/') );
unsigned long size;
K3b::kbFreeOnFs( path, size, m_freeTempSpace );
@@ -115,7 +115,7 @@ void K3bTempDirSelectionWidget::slotUpdateFreeTempSpace()
else
m_labelCdSize->setPaletteForegroundColor( m_labelFreeSpace->paletteForegroundColor() );
}
- QTimer::singleShot( 1000, this, SLOT(slotUpdateFreeTempSpace()) );
+ TQTimer::singleShot( 1000, this, TQT_SLOT(slotUpdateFreeTempSpace()) );
}
@@ -133,16 +133,16 @@ void K3bTempDirSelectionWidget::slotTempDirButtonPressed( KURLRequester* r )
}
-void K3bTempDirSelectionWidget::setTempPath( const QString& dir )
+void K3bTempDirSelectionWidget::setTempPath( const TQString& dir )
{
m_editDirectory->setURL( dir );
slotUpdateFreeTempSpace();
}
-QString K3bTempDirSelectionWidget::tempPath() const
+TQString K3bTempDirSelectionWidget::tempPath() const
{
- QFileInfo fi( m_editDirectory->url() );
+ TQFileInfo fi( m_editDirectory->url() );
if( fi.exists() ) {
if( m_mode == DIR ) {
@@ -164,27 +164,27 @@ QString K3bTempDirSelectionWidget::tempPath() const
}
-QString K3bTempDirSelectionWidget::plainTempPath() const
+TQString K3bTempDirSelectionWidget::plainTempPath() const
{
return m_editDirectory->url();
}
-QString K3bTempDirSelectionWidget::tempDirectory() const
+TQString K3bTempDirSelectionWidget::tempDirectory() const
{
- QString td( m_editDirectory->url() );
+ TQString td( m_editDirectory->url() );
// remove a trailing slash
while( !td.isEmpty() && td[td.length()-1] == '/' )
td.truncate( td.length()-1 );
- QFileInfo fi( td );
+ TQFileInfo fi( td );
if( fi.exists() && fi.isDir() )
return td + "/";
// now we treat the last section as a filename and return the path
// in front of it
- td.truncate( td.findRev( '/' ) + 1 );
+ td.truncate( td.tqfindRev( '/' ) + 1 );
return td;
}
@@ -208,11 +208,11 @@ void K3bTempDirSelectionWidget::setNeededSize( KIO::filesize_t bytes )
{
m_requestedSize = bytes;
if( !m_labelCdSize ) {
- QHBox* cdSizeBox = new QHBox( this );
+ TQHBox* cdSizeBox = new TQHBox( this );
cdSizeBox->setSpacing( KDialog::spacingHint() );
- (void)new QLabel( i18n( "Size of project:" ), cdSizeBox, "TextLabel4" );
- m_labelCdSize = new QLabel( KIO::convertSize(bytes), cdSizeBox, "m_labelCdSize" );
- m_labelCdSize->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
+ (void)new TQLabel( i18n( "Size of project:" ), cdSizeBox, "TextLabel4" );
+ m_labelCdSize = new TQLabel( KIO::convertSize(bytes), cdSizeBox, "m_labelCdSize" );
+ m_labelCdSize->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
}
m_labelCdSize->setText( KIO::convertSize(bytes) );
}
@@ -237,7 +237,7 @@ void K3bTempDirSelectionWidget::saveConfig( KConfigBase* c )
}
-void K3bTempDirSelectionWidget::setDefaultImageFileName( const QString& name )
+void K3bTempDirSelectionWidget::setDefaultImageFileName( const TQString& name )
{
if ( !name.isEmpty() ) {
bool changeImageName = false;
@@ -248,7 +248,7 @@ void K3bTempDirSelectionWidget::setDefaultImageFileName( const QString& name )
}
m_defaultImageFileName = name;
- if ( !m_defaultImageFileName.contains( '.' ) ) {
+ if ( !m_defaultImageFileName.tqcontains( '.' ) ) {
m_defaultImageFileName += ".iso";
}
fixTempPath( changeImageName );
@@ -268,7 +268,7 @@ void K3bTempDirSelectionWidget::fixTempPath( bool forceNewImageName )
// forceNewImageName is true set the default image file name
if ( selectionMode() == FILE ) {
if ( forceNewImageName ||
- QFileInfo( plainTempPath() ).isDir() ) {
+ TQFileInfo( plainTempPath() ).isDir() ) {
setTempPath( tempDirectory() + m_defaultImageFileName );
}
}
diff --git a/src/k3btempdirselectionwidget.h b/src/k3btempdirselectionwidget.h
index abad230..f456e6b 100644
--- a/src/k3btempdirselectionwidget.h
+++ b/src/k3btempdirselectionwidget.h
@@ -17,11 +17,11 @@
#ifndef K3BTEMPDIRSELECTIONWIDGET_H
#define K3BTEMPDIRSELECTIONWIDGET_H
-#include <qgroupbox.h>
+#include <tqgroupbox.h>
#include <kio/global.h>
-class QTimer;
-class QLabel;
+class TQTimer;
+class TQLabel;
class KURLRequester;
class KConfigBase;
@@ -29,12 +29,13 @@ class KConfigBase;
/**
*@author Sebastian Trueg
*/
-class K3bTempDirSelectionWidget : public QGroupBox
+class K3bTempDirSelectionWidget : public TQGroupBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bTempDirSelectionWidget( QWidget *parent = 0, const char *name = 0 );
+ K3bTempDirSelectionWidget( TQWidget *tqparent = 0, const char *name = 0 );
~K3bTempDirSelectionWidget();
/** determines if the selection dialog should ask for a dir or a file */
@@ -47,17 +48,17 @@ class K3bTempDirSelectionWidget : public QGroupBox
* FIXME: use KIO::filesize_t and return the number of bytes
*/
unsigned long freeTempSpace() const;
- QString tempPath() const;
- QString tempDirectory() const;
+ TQString tempPath() const;
+ TQString tempDirectory() const;
/**
* Use this if you don't want K3bTempDirSelectionWidget to modify the
* user input based on the mode.
*/
- QString plainTempPath() const;
+ TQString plainTempPath() const;
public slots:
- void setTempPath( const QString& );
+ void setTempPath( const TQString& );
void setSelectionMode( int mode );
void setNeededSize( KIO::filesize_t bytes );
@@ -66,7 +67,7 @@ class K3bTempDirSelectionWidget : public QGroupBox
* automatically be expended to this filename.
* Default is k3b_image.iso
*/
- void setDefaultImageFileName( const QString& name );
+ void setDefaultImageFileName( const TQString& name );
/**
* saves the current path as the global default tempd dir.
@@ -84,9 +85,9 @@ class K3bTempDirSelectionWidget : public QGroupBox
private:
void fixTempPath( bool forceNewImageName );
- QLabel* m_imageFileLabel;
- QLabel* m_labelCdSize;
- QLabel* m_labelFreeSpace;
+ TQLabel* m_imageFileLabel;
+ TQLabel* m_labelCdSize;
+ TQLabel* m_labelFreeSpace;
KURLRequester* m_editDirectory;
mutable unsigned long m_freeTempSpace;
@@ -94,7 +95,7 @@ class K3bTempDirSelectionWidget : public QGroupBox
int m_mode;
- QString m_defaultImageFileName;
+ TQString m_defaultImageFileName;
};
#endif
diff --git a/src/k3bthemedheader.cpp b/src/k3bthemedheader.cpp
index 4eb1c28..5808c37 100644
--- a/src/k3bthemedheader.cpp
+++ b/src/k3bthemedheader.cpp
@@ -19,19 +19,19 @@
#include <k3btitlelabel.h>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
-K3bThemedHeader::K3bThemedHeader( QWidget* parent )
- : QFrame( parent )
+K3bThemedHeader::K3bThemedHeader( TQWidget* tqparent )
+ : TQFrame( tqparent )
{
init();
}
-K3bThemedHeader::K3bThemedHeader( const QString& title, const QString& subtitle, QWidget* parent )
- : QFrame( parent )
+K3bThemedHeader::K3bThemedHeader( const TQString& title, const TQString& subtitle, TQWidget* tqparent )
+ : TQFrame( tqparent )
{
setTitle( title );
setSubTitle( subtitle );
@@ -45,13 +45,13 @@ K3bThemedHeader::~K3bThemedHeader()
}
-void K3bThemedHeader::setTitle( const QString& title, const QString& subtitle )
+void K3bThemedHeader::setTitle( const TQString& title, const TQString& subtitle )
{
m_titleLabel->setTitle( title, subtitle );
}
-void K3bThemedHeader::setSubTitle( const QString& subtitle )
+void K3bThemedHeader::setSubTitle( const TQString& subtitle )
{
m_titleLabel->setSubTitle( subtitle );
}
@@ -71,43 +71,43 @@ void K3bThemedHeader::setRightPixmap( K3bTheme::PixmapType p )
}
-void K3bThemedHeader::setAlignment( int align )
+void K3bThemedHeader::tqsetAlignment( int align )
{
- m_titleLabel->setAlignment( align );
+ m_titleLabel->tqsetAlignment( align );
}
void K3bThemedHeader::init()
{
- setFrameShape( QFrame::StyledPanel );
- setFrameShadow( QFrame::Sunken );
+ setFrameShape( TQFrame::StyledPanel );
+ setFrameShadow( TQFrame::Sunken );
setLineWidth( 1 );
setMargin( 1 );
- QHBoxLayout* layout = new QHBoxLayout( this );
- layout->setMargin( 2 ); // to make sure the frame gets displayed
- layout->setSpacing( 0 );
+ TQHBoxLayout* tqlayout = new TQHBoxLayout( this );
+ tqlayout->setMargin( 2 ); // to make sure the frame gets displayed
+ tqlayout->setSpacing( 0 );
- m_leftLabel = new QLabel( this );
+ m_leftLabel = new TQLabel( this );
m_leftLabel->setScaledContents( false );
m_titleLabel = new K3bTitleLabel( this );
- m_rightLabel = new QLabel( this );
+ m_rightLabel = new TQLabel( this );
m_rightLabel->setScaledContents( false );
- layout->addWidget( m_leftLabel );
- layout->addWidget( m_titleLabel );
- layout->setStretchFactor( m_titleLabel, 1 );
- layout->addWidget( m_rightLabel );
+ tqlayout->addWidget( m_leftLabel );
+ tqlayout->addWidget( m_titleLabel );
+ tqlayout->setStretchFactor( m_titleLabel, 1 );
+ tqlayout->addWidget( m_rightLabel );
m_leftPix = K3bTheme::DIALOG_LEFT;
m_rightPix = K3bTheme::DIALOG_RIGHT;
slotThemeChanged();
- connect( k3bappcore->themeManager(), SIGNAL(themeChanged()),
- this, SLOT(slotThemeChanged()) );
- connect( kapp, SIGNAL(appearanceChanged()),
- this, SLOT(slotThemeChanged()) );
+ connect( k3bappcore->themeManager(), TQT_SIGNAL(themeChanged()),
+ this, TQT_SLOT(slotThemeChanged()) );
+ connect( kapp, TQT_SIGNAL(appearanceChanged()),
+ this, TQT_SLOT(slotThemeChanged()) );
}
diff --git a/src/k3bthemedheader.h b/src/k3bthemedheader.h
index 3dda877..62708ee 100644
--- a/src/k3bthemedheader.h
+++ b/src/k3bthemedheader.h
@@ -16,26 +16,27 @@
#ifndef _K3B_THEMED_HEADER_H_
#define _K3B_THEMED_HEADER_H_
-#include <qframe.h>
+#include <tqframe.h>
#include "k3bthememanager.h"
class K3bTitleLabel;
-class QLabel;
+class TQLabel;
-class K3bThemedHeader : public QFrame
+class K3bThemedHeader : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bThemedHeader( QWidget* parent = 0 );
- K3bThemedHeader( const QString& title, const QString& subtitle, QWidget* parent = 0 );
+ K3bThemedHeader( TQWidget* tqparent = 0 );
+ K3bThemedHeader( const TQString& title, const TQString& subtitle, TQWidget* tqparent = 0 );
~K3bThemedHeader();
public slots:
- void setTitle( const QString& title, const QString& subtitle = QString::null );
- void setSubTitle( const QString& subtitle );
- void setAlignment( int );
+ void setTitle( const TQString& title, const TQString& subtitle = TQString() );
+ void setSubTitle( const TQString& subtitle );
+ void tqsetAlignment( int );
void setLeftPixmap( K3bTheme::PixmapType );
void setRightPixmap( K3bTheme::PixmapType );
@@ -46,8 +47,8 @@ class K3bThemedHeader : public QFrame
void init();
K3bTitleLabel* m_titleLabel;
- QLabel* m_leftLabel;
- QLabel* m_rightLabel;
+ TQLabel* m_leftLabel;
+ TQLabel* m_rightLabel;
K3bTheme::PixmapType m_leftPix;
K3bTheme::PixmapType m_rightPix;
};
diff --git a/src/k3bthemedlabel.cpp b/src/k3bthemedlabel.cpp
index d2ea05b..11e5001 100644
--- a/src/k3bthemedlabel.cpp
+++ b/src/k3bthemedlabel.cpp
@@ -16,41 +16,41 @@
#include "k3bthemedlabel.h"
#include "k3bapplication.h"
-K3bThemedLabel::K3bThemedLabel( QWidget* parent )
- : KCutLabel( parent ),
+K3bThemedLabel::K3bThemedLabel( TQWidget* tqparent )
+ : KCutLabel( tqparent ),
m_themePixmapCode( -1 )
{
slotThemeChanged();
- connect( k3bappcore->themeManager(), SIGNAL(themeChanged()),
- this, SLOT(slotThemeChanged()) );
- connect( kapp, SIGNAL(appearanceChanged()),
- this, SLOT(slotThemeChanged()) );
+ connect( k3bappcore->themeManager(), TQT_SIGNAL(themeChanged()),
+ this, TQT_SLOT(slotThemeChanged()) );
+ connect( kapp, TQT_SIGNAL(appearanceChanged()),
+ this, TQT_SLOT(slotThemeChanged()) );
}
-K3bThemedLabel::K3bThemedLabel( const QString& text, QWidget* parent )
- : KCutLabel( text, parent ),
+K3bThemedLabel::K3bThemedLabel( const TQString& text, TQWidget* tqparent )
+ : KCutLabel( text, tqparent ),
m_themePixmapCode( -1 )
{
slotThemeChanged();
- connect( k3bappcore->themeManager(), SIGNAL(themeChanged()),
- this, SLOT(slotThemeChanged()) );
- connect( kapp, SIGNAL(appearanceChanged()),
- this, SLOT(slotThemeChanged()) );
+ connect( k3bappcore->themeManager(), TQT_SIGNAL(themeChanged()),
+ this, TQT_SLOT(slotThemeChanged()) );
+ connect( kapp, TQT_SIGNAL(appearanceChanged()),
+ this, TQT_SLOT(slotThemeChanged()) );
}
-K3bThemedLabel::K3bThemedLabel( K3bTheme::PixmapType pix, QWidget* parent )
- : KCutLabel( parent )
+K3bThemedLabel::K3bThemedLabel( K3bTheme::PixmapType pix, TQWidget* tqparent )
+ : KCutLabel( tqparent )
{
setThemePixmap( pix );
- connect( k3bappcore->themeManager(), SIGNAL(themeChanged()),
- this, SLOT(slotThemeChanged()) );
- connect( kapp, SIGNAL(appearanceChanged()),
- this, SLOT(slotThemeChanged()) );
+ connect( k3bappcore->themeManager(), TQT_SIGNAL(themeChanged()),
+ this, TQT_SLOT(slotThemeChanged()) );
+ connect( kapp, TQT_SIGNAL(appearanceChanged()),
+ this, TQT_SLOT(slotThemeChanged()) );
}
diff --git a/src/k3bthemedlabel.h b/src/k3bthemedlabel.h
index 06d4851..2c6d27f 100644
--- a/src/k3bthemedlabel.h
+++ b/src/k3bthemedlabel.h
@@ -23,11 +23,12 @@
class K3bThemedLabel : public KCutLabel
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bThemedLabel( QWidget* parent = 0 );
- K3bThemedLabel( const QString& text, QWidget* parent = 0 );
- K3bThemedLabel( K3bTheme::PixmapType, QWidget* parent = 0 );
+ K3bThemedLabel( TQWidget* tqparent = 0 );
+ K3bThemedLabel( const TQString& text, TQWidget* tqparent = 0 );
+ K3bThemedLabel( K3bTheme::PixmapType, TQWidget* tqparent = 0 );
public slots:
void setThemePixmap( K3bTheme::PixmapType );
diff --git a/src/k3bthememanager.cpp b/src/k3bthememanager.cpp
index 2d7177f..3268018 100644
--- a/src/k3bthememanager.cpp
+++ b/src/k3bthememanager.cpp
@@ -23,12 +23,12 @@
#include <kdebug.h>
#include <kglobal.h>
-#include <qpixmap.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qdir.h>
-#include <qstringlist.h>
-#include <qvaluelist.h>
+#include <tqpixmap.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqdir.h>
+#include <tqstringlist.h>
+#include <tqvaluelist.h>
K3bTheme::K3bTheme()
@@ -37,7 +37,7 @@ K3bTheme::K3bTheme()
}
-QColor K3bTheme::backgroundColor() const
+TQColor K3bTheme::backgroundColor() const
{
if( m_bgColor.isValid() )
return m_bgColor;
@@ -46,7 +46,7 @@ QColor K3bTheme::backgroundColor() const
}
-QColor K3bTheme::foregroundColor() const
+TQColor K3bTheme::foregroundColor() const
{
if( m_fgColor.isValid() )
return m_fgColor;
@@ -55,15 +55,15 @@ QColor K3bTheme::foregroundColor() const
}
-const QPixmap& K3bTheme::pixmap( const QString& name ) const
+const TQPixmap& K3bTheme::pixmap( const TQString& name ) const
{
- QMap<QString, QPixmap>::const_iterator it = m_pixmapMap.find( name );
+ TQMap<TQString, TQPixmap>::const_iterator it = m_pixmapMap.tqfind( name );
if( it != m_pixmapMap.end() )
return *it;
// try loading the image
- if( QFile::exists( m_path + name ) )
- return *m_pixmapMap.insert( name, QPixmap( m_path + name ) );
+ if( TQFile::exists( m_path + name ) )
+ return *m_pixmapMap.insert( name, TQPixmap( m_path + name ) );
kdDebug() << "(K3bTheme) " << m_name << ": could not load image " << name << endl;
@@ -71,15 +71,15 @@ const QPixmap& K3bTheme::pixmap( const QString& name ) const
}
-const QPixmap& K3bTheme::pixmap( K3bTheme::PixmapType t ) const
+const TQPixmap& K3bTheme::pixmap( K3bTheme::PixmapType t ) const
{
return pixmap( filenameForPixmapType( t ) );
}
-QString K3bTheme::filenameForPixmapType( PixmapType t )
+TQString K3bTheme::filenameForPixmapType( PixmapType t )
{
- QString name;
+ TQString name;
switch( t ) {
case MEDIA_AUDIO:
@@ -157,17 +157,17 @@ public:
: currentTheme(&emptyTheme) {
}
- QValueList<K3bTheme*> themes;
+ TQValueList<K3bTheme*> themes;
K3bTheme* currentTheme;
- QString currentThemeName;
+ TQString currentThemeName;
K3bTheme emptyTheme;
};
-K3bThemeManager::K3bThemeManager( QObject* parent, const char* name )
- : QObject( parent, name )
+K3bThemeManager::K3bThemeManager( TQObject* tqparent, const char* name )
+ : TQObject( tqparent, name )
{
d = new Private();
d->emptyTheme.m_name = "Empty Theme";
@@ -180,7 +180,7 @@ K3bThemeManager::~K3bThemeManager()
}
-const QValueList<K3bTheme*>& K3bThemeManager::themes() const
+const TQValueList<K3bTheme*>& K3bThemeManager::themes() const
{
return d->themes;
}
@@ -197,7 +197,7 @@ void K3bThemeManager::readConfig( KConfigBase* c )
KConfigGroup generalOptions( c, "General Options" );
// allow to override the default theme by packaging a default config file
- QString defaultTheme = generalOptions.readEntry( "default theme", "quant" );
+ TQString defaultTheme = generalOptions.readEntry( "default theme", "quant" );
K3bVersion configVersion( generalOptions.readEntry( "config version", "0.1" ) );
if( configVersion >= K3bVersion("0.98") )
@@ -214,7 +214,7 @@ void K3bThemeManager::saveConfig( KConfigBase* c )
}
-void K3bThemeManager::setCurrentTheme( const QString& name )
+void K3bThemeManager::setCurrentTheme( const TQString& name )
{
if( name != d->currentThemeName ) {
if( K3bTheme* theme = findTheme( name ) )
@@ -240,9 +240,9 @@ void K3bThemeManager::setCurrentTheme( K3bTheme* theme )
}
-K3bTheme* K3bThemeManager::findTheme( const QString& name ) const
+K3bTheme* K3bThemeManager::findTheme( const TQString& name ) const
{
- for( QValueList<K3bTheme*>::iterator it = d->themes.begin(); it != d->themes.end(); ++it )
+ for( TQValueList<K3bTheme*>::iterator it = d->themes.begin(); it != d->themes.end(); ++it )
if( (*it)->name() == name )
return *it;
return 0;
@@ -252,30 +252,30 @@ K3bTheme* K3bThemeManager::findTheme( const QString& name ) const
void K3bThemeManager::loadThemes()
{
// first we cleanup the loaded themes
- for( QValueList<K3bTheme*>::iterator it = d->themes.begin(); it != d->themes.end(); ++it )
+ for( TQValueList<K3bTheme*>::iterator it = d->themes.begin(); it != d->themes.end(); ++it )
delete *it;
d->themes.clear();
- QStringList dirs = KGlobal::dirs()->findDirs( "data", "k3b/pics" );
+ TQStringList dirs = KGlobal::dirs()->findDirs( "data", "k3b/pics" );
// now search for themes. As there may be multiple themes with the same name
// we only use the names from this list and then use findResourceDir to make sure
// the local is preferred over the global stuff (like testing a theme by copying it
// to the .kde dir)
- QStringList themeNames;
- for( QStringList::const_iterator dirIt = dirs.begin(); dirIt != dirs.end(); ++dirIt ) {
- QDir dir( *dirIt );
- QStringList entries = dir.entryList( QDir::Dirs );
+ TQStringList themeNames;
+ for( TQStringList::const_iterator dirIt = dirs.begin(); dirIt != dirs.end(); ++dirIt ) {
+ TQDir dir( *dirIt );
+ TQStringList entries = dir.entryList( TQDir::Dirs );
entries.remove( "." );
entries.remove( ".." );
// every theme dir needs to contain a k3b.theme file
- for( QStringList::const_iterator entryIt = entries.begin(); entryIt != entries.end(); ++entryIt ) {
- QString themeDir = *dirIt + *entryIt + "/";
- if( !themeNames.contains( *entryIt ) && QFile::exists( themeDir + "k3b.theme" ) ) {
+ for( TQStringList::const_iterator entryIt = entries.begin(); entryIt != entries.end(); ++entryIt ) {
+ TQString themeDir = *dirIt + *entryIt + "/";
+ if( !themeNames.tqcontains( *entryIt ) && TQFile::exists( themeDir + "k3b.theme" ) ) {
bool themeValid = true;
// check for all nessessary pixmaps (this is a little evil hacking)
for( int i = 0; i <= K3bTheme::WELCOME_BG; ++i ) {
- if( !QFile::exists( themeDir + K3bTheme::filenameForPixmapType( (K3bTheme::PixmapType)i ) ) ) {
+ if( !TQFile::exists( themeDir + K3bTheme::filenameForPixmapType( (K3bTheme::PixmapType)i ) ) ) {
kdDebug() << "(K3bThemeManager) theme misses pixmap: " << K3bTheme::filenameForPixmapType( (K3bTheme::PixmapType)i ) << endl;
themeValid = false;
break;
@@ -289,7 +289,7 @@ void K3bThemeManager::loadThemes()
}
// now load the themes
- for( QStringList::const_iterator themeIt = themeNames.begin(); themeIt != themeNames.end(); ++themeIt )
+ for( TQStringList::const_iterator themeIt = themeNames.begin(); themeIt != themeNames.end(); ++themeIt )
loadTheme( *themeIt );
// load the current theme
@@ -297,14 +297,14 @@ void K3bThemeManager::loadThemes()
}
-void K3bThemeManager::loadTheme( const QString& name )
+void K3bThemeManager::loadTheme( const TQString& name )
{
- QString path = KGlobal::dirs()->findResource( "data", "k3b/pics/" + name + "/k3b.theme" );
+ TQString path = KGlobal::dirs()->findResource( "data", "k3b/pics/" + name + "/k3b.theme" );
if( !path.isEmpty() ) {
K3bTheme* t = new K3bTheme();
t->m_name = name;
t->m_path = path.left( path.length() - 9 );
- QFileInfo fi( t->m_path );
+ TQFileInfo fi( t->m_path );
t->m_local = fi.isWritable();
// load the stuff
diff --git a/src/k3bthememanager.h b/src/k3bthememanager.h
index f00e62f..618a254 100644
--- a/src/k3bthememanager.h
+++ b/src/k3bthememanager.h
@@ -16,12 +16,12 @@
#ifndef _K3B_THEME_MANAGER_H_
#define _K3B_THEME_MANAGER_H_
-#include <qobject.h>
-#include <qvaluelist.h>
-#include <qstring.h>
-#include <qmap.h>
-#include <qcolor.h>
-#include <qpixmap.h>
+#include <tqobject.h>
+#include <tqvaluelist.h>
+#include <tqstring.h>
+#include <tqmap.h>
+#include <tqcolor.h>
+#include <tqpixmap.h>
@@ -33,8 +33,8 @@ class K3bTheme
public:
K3bTheme();
- QColor backgroundColor() const;
- QColor foregroundColor() const;
+ TQColor backgroundColor() const;
+ TQColor foregroundColor() const;
enum PixmapType {
MEDIA_AUDIO, /**< Media information header, right side when showing an audio CD. */
@@ -61,19 +61,19 @@ class K3bTheme
BG_SCALE /**< Scale the pixmap to fill the welcome widget. */
};
- const QPixmap& pixmap( PixmapType ) const;
+ const TQPixmap& pixmap( PixmapType ) const;
/**
* \deprecated use pixmap( PixmapType )
*/
- const QPixmap& pixmap( const QString& name ) const;
+ const TQPixmap& pixmap( const TQString& name ) const;
BackgroundMode backgroundMode() const;
- const QString& name() const { return m_name; }
- const QString& author() const { return m_author; }
- const QString& comment() const { return m_comment; }
- const QString& version() const { return m_version; }
+ const TQString& name() const { return m_name; }
+ const TQString& author() const { return m_author; }
+ const TQString& comment() const { return m_comment; }
+ const TQString& version() const { return m_version; }
/**
* Global themes are installed for all users and cannot be deleted.
@@ -85,45 +85,46 @@ class K3bTheme
*/
bool local() const { return m_local; }
- const QString& path() const { return m_path; }
+ const TQString& path() const { return m_path; }
- static QString filenameForPixmapType( PixmapType );
+ static TQString filenameForPixmapType( PixmapType );
private:
- QString m_path;
+ TQString m_path;
bool m_local;
- QString m_name;
- QString m_author;
- QString m_comment;
- QString m_version;
- QColor m_bgColor;
- QColor m_fgColor;
+ TQString m_name;
+ TQString m_author;
+ TQString m_comment;
+ TQString m_version;
+ TQColor m_bgColor;
+ TQColor m_fgColor;
BackgroundMode m_bgMode;
- mutable QMap<QString, QPixmap> m_pixmapMap;
+ mutable TQMap<TQString, TQPixmap> m_pixmapMap;
- QPixmap m_emptyPixmap;
+ TQPixmap m_emptyPixmap;
friend class K3bThemeManager;
};
-class K3bThemeManager : public QObject
+class K3bThemeManager : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bThemeManager( QObject* parent = 0, const char* name = 0 );
+ K3bThemeManager( TQObject* tqparent = 0, const char* name = 0 );
~K3bThemeManager();
- const QValueList<K3bTheme*>& themes() const;
+ const TQValueList<K3bTheme*>& themes() const;
/**
* This is never null. If no theme could be found an empty dummy theme
* will be returnes which does not contains any pixmaps.
*/
K3bTheme* currentTheme() const;
- K3bTheme* findTheme( const QString& ) const;
+ K3bTheme* findTheme( const TQString& ) const;
signals:
void themeChanged();
@@ -132,12 +133,12 @@ class K3bThemeManager : public QObject
public slots:
void readConfig( KConfigBase* );
void saveConfig( KConfigBase* );
- void setCurrentTheme( const QString& );
+ void setCurrentTheme( const TQString& );
void setCurrentTheme( K3bTheme* );
void loadThemes();
private:
- void loadTheme( const QString& name );
+ void loadTheme( const TQString& name );
class Private;
Private* d;
diff --git a/src/k3btimeoutwidget.cpp b/src/k3btimeoutwidget.cpp
index 156963f..12453bb 100644
--- a/src/k3btimeoutwidget.cpp
+++ b/src/k3btimeoutwidget.cpp
@@ -19,9 +19,9 @@
#include <kiconloader.h>
-#include <qpainter.h>
-#include <qtimer.h>
-#include <qbitmap.h>
+#include <tqpainter.h>
+#include <tqtimer.h>
+#include <tqbitmap.h>
class K3bTimeoutWidget::Private
@@ -30,18 +30,18 @@ public:
int timeout;
int margin;
- QTimer timer;
+ TQTimer timer;
int currentTime;
};
-K3bTimeoutWidget::K3bTimeoutWidget( QWidget* parent )
- : QWidget( parent )
+K3bTimeoutWidget::K3bTimeoutWidget( TQWidget* tqparent )
+ : TQWidget( tqparent )
{
d = new Private;
d->timeout = 10000;
d->margin = 4;
- connect( &d->timer, SIGNAL(timeout()), this, SLOT(timeStep()) );
+ connect( &d->timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeStep()) );
}
@@ -88,20 +88,20 @@ void K3bTimeoutWidget::timeStep()
}
-QSize K3bTimeoutWidget::sizeHint() const
+TQSize K3bTimeoutWidget::tqsizeHint() const
{
- return minimumSizeHint();
+ return tqminimumSizeHint();
}
-QSize K3bTimeoutWidget::minimumSizeHint() const
+TQSize K3bTimeoutWidget::tqminimumSizeHint() const
{
- int fw = fontMetrics().width( QString::number( d->timeout/1000 ) );
+ int fw = fontMetrics().width( TQString::number( d->timeout/1000 ) );
int fh = fontMetrics().height();
- int diam = QMAX( fw, fh ) + 2*d->margin;
+ int diam = TQMAX( fw, fh ) + 2*d->margin;
- return QSize( diam, diam );
+ return TQSize( diam, diam );
}
@@ -117,32 +117,32 @@ void K3bTimeoutWidget::startTimer()
}
-void K3bTimeoutWidget::paintEvent( QPaintEvent* )
+void K3bTimeoutWidget::paintEvent( TQPaintEvent* )
{
if( d->timer.isActive() ) {
- QPainter p(this);
+ TQPainter p(this);
if( K3bTheme* theme = k3bappcore->themeManager()->currentTheme() ) {
p.setBrush( theme->backgroundColor() );
p.setPen( theme->backgroundColor() );
}
- QRect r;
- r.setSize( minimumSizeHint() );
+ TQRect r;
+ r.setSize( tqminimumSizeHint() );
r.moveCenter( rect().center() );
p.drawArc( r, 0, 360*16 );
p.drawPie( r, 90*16, 360*16*d->currentTime/d->timeout );
- p.setPen( Qt::black );
- p.drawText( rect(), Qt::AlignCenter, QString::number( (d->timeout - d->currentTime + 500)/1000 ) );
+ p.setPen( TQt::black );
+ p.drawText( rect(), TQt::AlignCenter, TQString::number( (d->timeout - d->currentTime + 500)/1000 ) );
}
}
-void K3bTimeoutWidget::resizeEvent( QResizeEvent* e )
+void K3bTimeoutWidget::resizeEvent( TQResizeEvent* e )
{
- QWidget::resizeEvent( e );
+ TQWidget::resizeEvent( e );
}
diff --git a/src/k3btimeoutwidget.h b/src/k3btimeoutwidget.h
index 6f47deb..3775332 100644
--- a/src/k3btimeoutwidget.h
+++ b/src/k3btimeoutwidget.h
@@ -16,22 +16,23 @@
#ifndef _K3B_TIMEOUT_WIDGET_H_
#define _K3B_TIMEOUT_WIDGET_H_
-#include <qwidget.h>
+#include <tqwidget.h>
-class QPaintEvent;
-class QResizeEvent;
+class TQPaintEvent;
+class TQResizeEvent;
-class K3bTimeoutWidget : public QWidget
+class K3bTimeoutWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bTimeoutWidget( QWidget* parent );
+ K3bTimeoutWidget( TQWidget* tqparent );
~K3bTimeoutWidget();
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
+ TQSize tqsizeHint() const;
+ TQSize tqminimumSizeHint() const;
public slots:
void setTimeout( int msecs );
@@ -44,8 +45,8 @@ class K3bTimeoutWidget : public QWidget
void timeout();
protected:
- void paintEvent( QPaintEvent* );
- void resizeEvent( QResizeEvent* );
+ void paintEvent( TQPaintEvent* );
+ void resizeEvent( TQResizeEvent* );
private slots:
void timeStep();
diff --git a/src/k3btooltip.cpp b/src/k3btooltip.cpp
index 570c23b..63ea037 100644
--- a/src/k3btooltip.cpp
+++ b/src/k3btooltip.cpp
@@ -19,24 +19,24 @@
#include <k3bthememanager.h>
#include <k3bapplication.h>
-#include <qtimer.h>
-#include <qapplication.h>
-#include <qlabel.h>
+#include <tqtimer.h>
+#include <tqapplication.h>
+#include <tqlabel.h>
#include <kdebug.h>
#include <fixx11h.h>
-K3bToolTip::K3bToolTip( QWidget* widget )
- : QObject( widget ),
+K3bToolTip::K3bToolTip( TQWidget* widget )
+ : TQObject( widget ),
m_parentWidget( widget ),
m_currentTip( 0 ),
- m_tipTimer( new QTimer( this ) ),
+ m_tipTimer( new TQTimer( this ) ),
m_tipTimeout( 700 )
{
m_parentWidget->installEventFilter( this );
- connect( m_tipTimer, SIGNAL(timeout()),
- this, SLOT(slotCheckShowTip()) );
+ connect( m_tipTimer, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(slotCheckShowTip()) );
}
@@ -45,9 +45,9 @@ K3bToolTip::~K3bToolTip()
}
-void K3bToolTip::tip( const QRect& rect, const QString& text, int effect )
+void K3bToolTip::tip( const TQRect& rect, const TQString& text, int effect )
{
- QLabel* label = new QLabel( text, parentWidget() );
+ TQLabel* label = new TQLabel( text, tqparentWidget() );
label->setMargin( 6 );
if( K3bTheme* theme = k3bappcore->themeManager()->currentTheme() ) {
label->setPaletteBackgroundColor( theme->backgroundColor() );
@@ -57,9 +57,9 @@ void K3bToolTip::tip( const QRect& rect, const QString& text, int effect )
}
-void K3bToolTip::tip( const QRect& rect, const QPixmap& pix, int effect )
+void K3bToolTip::tip( const TQRect& rect, const TQPixmap& pix, int effect )
{
- QLabel* label = new QLabel( parentWidget() );
+ TQLabel* label = new TQLabel( tqparentWidget() );
label->setMargin( 6 );
if( K3bTheme* theme = k3bappcore->themeManager()->currentTheme() ) {
label->setPaletteBackgroundColor( theme->backgroundColor() );
@@ -70,7 +70,7 @@ void K3bToolTip::tip( const QRect& rect, const QPixmap& pix, int effect )
}
-void K3bToolTip::tip( const QRect& rect, QWidget* w, int effect )
+void K3bToolTip::tip( const TQRect& rect, TQWidget* w, int effect )
{
// stop the timer
m_tipTimer->stop();
@@ -80,24 +80,24 @@ void K3bToolTip::tip( const QRect& rect, QWidget* w, int effect )
// which screen are we on?
int scr;
- if( QApplication::desktop()->isVirtualDesktop() )
- scr = QApplication::desktop()->screenNumber( m_parentWidget->mapToGlobal( m_lastMousePos ) );
+ if( TQApplication::desktop()->isVirtualDesktop() )
+ scr = TQApplication::desktop()->screenNumber( m_parentWidget->mapToGlobal( m_lastMousePos ) );
else
- scr = QApplication::desktop()->screenNumber( m_parentWidget );
+ scr = TQApplication::desktop()->screenNumber( m_parentWidget );
// make sure the widget is displayed correcly
- w->reparent( QApplication::desktop()->screen( scr ),
+ w->reparent( TQApplication::desktop()->screen( scr ),
WStyle_StaysOnTop | WStyle_Customize | WStyle_NoBorder | WStyle_Tool | WX11BypassWM,
- QPoint( 0, 0 ), false );
+ TQPoint( 0, 0 ), false );
w->polish();
w->adjustSize();
// positioning code from qtooltip.cpp
- QRect screen = QApplication::desktop()->screenGeometry( scr );
+ TQRect screen = TQApplication::desktop()->screenGeometry( scr );
// FIXME: why (2,16) and (4,24) below? Why not use the cursors' size?
- QPoint p = m_parentWidget->mapToGlobal( m_lastMousePos ) + QPoint( 2, 16 );
+ TQPoint p = m_parentWidget->mapToGlobal( m_lastMousePos ) + TQPoint( 2, 16 );
if( p.x() + w->width() > screen.x() + screen.width() )
p.rx() -= 4 + w->width();
@@ -132,28 +132,28 @@ void K3bToolTip::hideTip()
}
-bool K3bToolTip::eventFilter( QObject* o, QEvent* e )
+bool K3bToolTip::eventFilter( TQObject* o, TQEvent* e )
{
- if( o == parentWidget() ) {
+ if( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(tqparentWidget()) ) {
switch( e->type() ) {
- case QEvent::MouseButtonPress:
- case QEvent::MouseButtonRelease:
- case QEvent::MouseButtonDblClick:
- case QEvent::KeyPress:
- case QEvent::KeyRelease:
+ case TQEvent::MouseButtonPress:
+ case TQEvent::MouseButtonRelease:
+ case TQEvent::MouseButtonDblClick:
+ case TQEvent::KeyPress:
+ case TQEvent::KeyRelease:
// input - turn off tool tip mode
hideTip();
m_tipTimer->stop();
break;
- case QEvent::MouseMove: {
- QMouseEvent* m = (QMouseEvent*)e;
+ case TQEvent::MouseMove: {
+ TQMouseEvent* m = (TQMouseEvent*)e;
m_lastMousePos = m_parentWidget->mapFromGlobal( m->globalPos() );
m_tipTimer->stop();
if( m_currentTip ) {
// see if we have to hide it
- if( !m_currentTipRect.contains( m_lastMousePos ) ) {
+ if( !m_currentTipRect.tqcontains( m_lastMousePos ) ) {
hideTip();
// in case we moved the mouse from one tip area to the next without leaving
@@ -169,10 +169,10 @@ bool K3bToolTip::eventFilter( QObject* o, QEvent* e )
break;
}
- case QEvent::Leave:
- case QEvent::Hide:
- case QEvent::Destroy:
- case QEvent::FocusOut:
+ case TQEvent::Leave:
+ case TQEvent::Hide:
+ case TQEvent::Destroy:
+ case TQEvent::FocusOut:
hideTip();
m_tipTimer->stop();
break;
diff --git a/src/k3btooltip.h b/src/k3btooltip.h
index 878f512..e7b4207 100644
--- a/src/k3btooltip.h
+++ b/src/k3btooltip.h
@@ -16,51 +16,52 @@
#ifndef _K3B_TOOLTIP_H_
#define _K3B_TOOLTIP_H_
-#include <qobject.h>
-#include <qpixmap.h>
+#include <tqobject.h>
+#include <tqpixmap.h>
#include "k3bwidgetshoweffect.h"
-class QTimer;
+class TQTimer;
/**
* More beautiful tooltip
*/
-class K3bToolTip : public QObject
+class K3bToolTip : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bToolTip( QWidget* widget );
+ K3bToolTip( TQWidget* widget );
~K3bToolTip();
- QWidget* parentWidget() const { return m_parentWidget; }
+ TQWidget* tqparentWidget() const { return m_parentWidget; }
public slots:
/**
- * default is 700 mseconds (same as QToolTip)
+ * default is 700 mseconds (same as TQToolTip)
*/
void setTipTimeout( int msec ) { m_tipTimeout = msec; }
protected:
/**
- * \see QToolTip::maybeTip
+ * \see TQToolTip::maybeTip
*/
- virtual void maybeTip( const QPoint& ) = 0;
+ virtual void maybeTip( const TQPoint& ) = 0;
/**
* Show a tooltip.
*/
- void tip( const QRect&, const QString&, int effect = K3bWidgetShowEffect::Dissolve );
- void tip( const QRect& rect, const QPixmap& pix, int effect = K3bWidgetShowEffect::Dissolve );
+ void tip( const TQRect&, const TQString&, int effect = K3bWidgetShowEffect::Dissolve );
+ void tip( const TQRect& rect, const TQPixmap& pix, int effect = K3bWidgetShowEffect::Dissolve );
/**
* Use some arbitrary widget as the tooltip
* \param effect Use 0 for no effect
*/
- void tip( const QRect&, QWidget* w, int effect = K3bWidgetShowEffect::Dissolve );
+ void tip( const TQRect&, TQWidget* w, int effect = K3bWidgetShowEffect::Dissolve );
- bool eventFilter( QObject* o, QEvent* e );
+ bool eventFilter( TQObject* o, TQEvent* e );
private slots:
void slotCheckShowTip();
@@ -68,12 +69,12 @@ class K3bToolTip : public QObject
private:
void hideTip();
- QWidget* m_parentWidget;
- QWidget* m_currentTip;
- QRect m_currentTipRect;
+ TQWidget* m_parentWidget;
+ TQWidget* m_currentTip;
+ TQRect m_currentTipRect;
- QTimer* m_tipTimer;
- QPoint m_lastMousePos;
+ TQTimer* m_tipTimer;
+ TQPoint m_lastMousePos;
int m_tipTimeout;
};
diff --git a/src/k3btrm.cpp b/src/k3btrm.cpp
index 9d4f24d..1843471 100644
--- a/src/k3btrm.cpp
+++ b/src/k3btrm.cpp
@@ -29,8 +29,8 @@ class K3bTRM::Private
{
public:
trm_t trm;
- QCString sig;
- QCString rawSig;
+ TQCString sig;
+ TQCString rawSig;
};
@@ -79,13 +79,13 @@ bool K3bTRM::finalize()
}
-const QCString& K3bTRM::rawSignature() const
+const TQCString& K3bTRM::rawSignature() const
{
return d->rawSig;
}
-const QCString& K3bTRM::signature() const
+const TQCString& K3bTRM::signature() const
{
return d->sig;
}
diff --git a/src/k3btrm.h b/src/k3btrm.h
index 722a769..7474a77 100644
--- a/src/k3btrm.h
+++ b/src/k3btrm.h
@@ -48,8 +48,8 @@ class K3bTRM
*/
bool finalize();
- const QCString& rawSignature() const;
- const QCString& signature() const;
+ const TQCString& rawSignature() const;
+ const TQCString& signature() const;
private:
class Private;
diff --git a/src/k3bwelcomewidget.cpp b/src/k3bwelcomewidget.cpp
index a3915d5..34835de 100644
--- a/src/k3bwelcomewidget.cpp
+++ b/src/k3bwelcomewidget.cpp
@@ -21,16 +21,16 @@
#include <k3bversion.h>
#include "k3bthememanager.h"
-#include <qpixmap.h>
-#include <qtoolbutton.h>
-#include <qlabel.h>
-#include <qpainter.h>
-#include <qsimplerichtext.h>
-#include <qptrlist.h>
-#include <qmap.h>
-#include <qtooltip.h>
-#include <qcursor.h>
-#include <qimage.h>
+#include <tqpixmap.h>
+#include <tqtoolbutton.h>
+#include <tqlabel.h>
+#include <tqpainter.h>
+#include <tqsimplerichtext.h>
+#include <tqptrlist.h>
+#include <tqmap.h>
+#include <tqtooltip.h>
+#include <tqcursor.h>
+#include <tqimage.h>
#include <kurl.h>
#include <kurldrag.h>
@@ -76,17 +76,17 @@ static const char* s_allActions[] = {
0
};
-K3bWelcomeWidget::Display::Display( K3bWelcomeWidget* parent )
- : QWidget( parent->viewport() )
+K3bWelcomeWidget::Display::Display( K3bWelcomeWidget* tqparent )
+ : TQWidget( tqparent->viewport() )
{
- setWFlags( Qt::WNoAutoErase );
+ setWFlags( TQt::WNoAutoErase );
- QFont fnt(font());
+ TQFont fnt(font());
fnt.setBold(true);
fnt.setPointSize( 16 );
- m_header = new QSimpleRichText( i18n("Welcome to K3b - The CD and DVD Kreator"), fnt );
- m_infoText = new QSimpleRichText( QString::fromUtf8("<qt align=\"center\">K3b %1 (c) 1999 - 2007 Sebastian Trüg")
- .arg(kapp->aboutData()->version()), font() );
+ m_header = new TQSimpleRichText( i18n("Welcome to K3b - The CD and DVD Kreator"), fnt );
+ m_infoText = new TQSimpleRichText( TQString::fromUtf8("<qt align=\"center\">K3b %1 (c) 1999 - 2007 Sebastian Trüg")
+ .tqarg(kapp->aboutData()->version()), font() );
// set a large width just to be sure no linebreak occurs
m_header->setWidth( 800 );
@@ -96,9 +96,9 @@ K3bWelcomeWidget::Display::Display( K3bWelcomeWidget* parent )
m_rows = m_cols = 1;
m_buttonMore = new K3bFlatButton( i18n("Further actions..."), this );
- connect( m_buttonMore, SIGNAL(pressed()), parent, SLOT(slotMoreActions()) );
+ connect( m_buttonMore, TQT_SIGNAL(pressed()), tqparent, TQT_SLOT(slotMoreActions()) );
- connect( k3bappcore->themeManager(), SIGNAL(themeChanged()), this, SLOT(slotThemeChanged()) );
+ connect( k3bappcore->themeManager(), TQT_SIGNAL(themeChanged()), this, TQT_SLOT(slotThemeChanged()) );
slotThemeChanged();
}
@@ -135,7 +135,7 @@ void K3bWelcomeWidget::Display::removeButton( K3bFlatButton* b )
}
-void K3bWelcomeWidget::Display::rebuildGui( const QPtrList<KAction>& actions )
+void K3bWelcomeWidget::Display::rebuildGui( const TQPtrList<KAction>& actions )
{
m_actions = actions;
rebuildGui();
@@ -146,7 +146,7 @@ static void calculateButtons( int width, int numActions, int buttonWidth, int& c
{
// always try to avoid horizontal scrollbars
int wa = width - 40;
- cols = QMAX( 1, QMIN( wa / (buttonWidth+4), numActions ) );
+ cols = TQMAX( 1, TQMIN( wa / (buttonWidth+4), numActions ) );
rows = numActions/cols;
int over = numActions%cols;
if( over ) {
@@ -162,7 +162,7 @@ static void calculateButtons( int width, int numActions, int buttonWidth, int& c
void K3bWelcomeWidget::Display::rebuildGui()
{
- // step 1: delete all old buttons in the buttons QPtrList<K3bFlatButton>
+ // step 1: delete all old buttons in the buttons TQPtrList<K3bFlatButton>
m_buttonMap.clear();
m_buttons.setAutoDelete(true);
m_buttons.clear();
@@ -171,7 +171,7 @@ void K3bWelcomeWidget::Display::rebuildGui()
if( numActions > 0 ) {
// create buttons
- for( QPtrListIterator<KAction> it( m_actions ); it.current(); ++it ) {
+ for( TQPtrListIterator<KAction> it( m_actions ); it.current(); ++it ) {
KAction* a = it.current();
K3bFlatButton* b = new K3bFlatButton( a, this );
@@ -182,9 +182,9 @@ void K3bWelcomeWidget::Display::rebuildGui()
// determine the needed button size (since all buttons should be equal in size
// we use the max of all sizes)
- m_buttonSize = m_buttons.first()->sizeHint();
- for( QPtrListIterator<K3bFlatButton> it( m_buttons ); it.current(); ++it ) {
- m_buttonSize = m_buttonSize.expandedTo( it.current()->sizeHint() );
+ m_buttonSize = m_buttons.first()->tqsizeHint();
+ for( TQPtrListIterator<K3bFlatButton> it( m_buttons ); it.current(); ++it ) {
+ m_buttonSize = m_buttonSize.expandedTo( it.current()->tqsizeHint() );
}
repositionButtons();
@@ -206,10 +206,10 @@ void K3bWelcomeWidget::Display::repositionButtons()
int row = 0;
int col = 0;
- for( QPtrListIterator<K3bFlatButton> it( m_buttons ); it.current(); ++it ) {
+ for( TQPtrListIterator<K3bFlatButton> it( m_buttons ); it.current(); ++it ) {
K3bFlatButton* b = it.current();
- b->setGeometry( QRect( QPoint( leftMargin + (col*(m_buttonSize.width()+4) + 2 ),
+ b->setGeometry( TQRect( TQPoint( leftMargin + (col*(m_buttonSize.width()+4) + 2 ),
topOffset + (row*(m_buttonSize.height()+4)) + 2 ),
m_buttonSize ) );
b->show();
@@ -223,15 +223,15 @@ void K3bWelcomeWidget::Display::repositionButtons()
if( col > 0 )
++row;
- m_buttonMore->setGeometry( QRect( QPoint( leftMargin + 2,
+ m_buttonMore->setGeometry( TQRect( TQPoint( leftMargin + 2,
topOffset + (row*(m_buttonSize.height()+4)) + 2 ),
- QSize( m_cols*(m_buttonSize.width()+4) - 4, m_buttonMore->height() ) ) );
+ TQSize( m_cols*(m_buttonSize.width()+4) - 4, m_buttonMore->height() ) ) );
}
-QSizePolicy K3bWelcomeWidget::Display::sizePolicy () const
+TQSizePolicy K3bWelcomeWidget::Display::sizePolicy () const
{
- return QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum, true );
+ return TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum, true );
}
@@ -249,19 +249,19 @@ int K3bWelcomeWidget::Display::heightForWidth( int w ) const
}
-QSize K3bWelcomeWidget::Display::minimumSizeHint() const
+TQSize K3bWelcomeWidget::Display::tqminimumSizeHint() const
{
- QSize size( QMAX(40+m_header->widthUsed(), 40+m_buttonSize.width()),
+ TQSize size( TQMAX(40+m_header->widthUsed(), 40+m_buttonSize.width()),
20 + m_header->height() + 20 + 10 + m_buttonSize.height() + 10 + m_infoText->height() + 20 );
return size;
}
-void K3bWelcomeWidget::Display::resizeEvent( QResizeEvent* e )
+void K3bWelcomeWidget::Display::resizeEvent( TQResizeEvent* e )
{
m_infoText->setWidth( width() - 20 );
- QWidget::resizeEvent(e);
+ TQWidget::resizeEvent(e);
repositionButtons();
if( e->size() != m_bgPixmap.size() )
updateBgPix();
@@ -290,10 +290,10 @@ void K3bWelcomeWidget::Display::updateBgPix()
}
-void K3bWelcomeWidget::Display::paintEvent( QPaintEvent* )
+void K3bWelcomeWidget::Display::paintEvent( TQPaintEvent* )
{
if( K3bTheme* theme = k3bappcore->themeManager()->currentTheme() ) {
- QPainter p( this );
+ TQPainter p( this );
p.setPen( theme->foregroundColor() );
// draw the background including first filling with the bg color for transparent images
@@ -301,7 +301,7 @@ void K3bWelcomeWidget::Display::paintEvent( QPaintEvent* )
p.drawTiledPixmap( rect(), m_bgPixmap );
// rect around the header
- QRect rect( 10, 10, QMAX( m_header->widthUsed() + 20, width() - 20 ), m_header->height() + 20 );
+ TQRect rect( 10, 10, TQMAX( m_header->widthUsed() + 20, width() - 20 ), m_header->height() + 20 );
p.fillRect( rect, theme->backgroundColor() );
p.drawRect( rect );
@@ -309,33 +309,33 @@ void K3bWelcomeWidget::Display::paintEvent( QPaintEvent* )
p.drawRect( 10, 10, width()-20, height()-20 );
// draw the header text
- QColorGroup grp( colorGroup() );
- grp.setColor( QColorGroup::Text, theme->foregroundColor() );
+ TQColorGroup grp( tqcolorGroup() );
+ grp.setColor( TQColorGroup::Text, theme->foregroundColor() );
int pos = 20;
- pos += QMAX( (width()-40-m_header->widthUsed())/2, 0 );
- m_header->draw( &p, pos, 20, QRect(), grp );
+ pos += TQMAX( (width()-40-m_header->widthUsed())/2, 0 );
+ m_header->draw( &p, pos, 20, TQRect(), grp );
// draw the info box
// int boxWidth = 20 + m_infoText->widthUsed();
int boxHeight = 10 + m_infoText->height();
- QRect infoBoxRect( 10/*QMAX( (width()-20-m_infoText->widthUsed())/2, 10 )*/,
+ TQRect infoBoxRect( 10/*TQMAX( (width()-20-m_infoText->widthUsed())/2, 10 )*/,
height()-10-boxHeight,
width()-20/*boxWidth*/,
boxHeight );
p.fillRect( infoBoxRect, theme->backgroundColor() );
p.drawRect( infoBoxRect );
- m_infoText->draw( &p, infoBoxRect.left()+5, infoBoxRect.top()+5, QRect(), grp );
+ m_infoText->draw( &p, infoBoxRect.left()+5, infoBoxRect.top()+5, TQRect(), grp );
}
}
-void K3bWelcomeWidget::Display::dragEnterEvent( QDragEnterEvent* event )
+void K3bWelcomeWidget::Display::dragEnterEvent( TQDragEnterEvent* event )
{
event->accept( KURLDrag::canDecode(event) );
}
-void K3bWelcomeWidget::Display::dropEvent( QDropEvent* e )
+void K3bWelcomeWidget::Display::dropEvent( TQDropEvent* e )
{
KURL::List urls;
KURLDrag::decode( e, urls );
@@ -344,16 +344,16 @@ void K3bWelcomeWidget::Display::dropEvent( QDropEvent* e )
-K3bWelcomeWidget::K3bWelcomeWidget( K3bMainWindow* mw, QWidget* parent, const char* name )
- : QScrollView( parent, name ),
+K3bWelcomeWidget::K3bWelcomeWidget( K3bMainWindow* mw, TQWidget* tqparent, const char* name )
+ : TQScrollView( tqparent, name ),
m_mainWindow( mw )
{
main = new Display( this );
addChild( main );
- connect( main, SIGNAL(dropped(const KURL::List&)), m_mainWindow, SLOT(addUrls(const KURL::List&)) );
+ connect( main, TQT_SIGNAL(dropped(const KURL::List&)), m_mainWindow, TQT_SLOT(addUrls(const KURL::List&)) );
- connect( kapp, SIGNAL(appearanceChanged()), main, SLOT(update()) );
+ connect( kapp, TQT_SIGNAL(appearanceChanged()), main, TQT_SLOT(update()) );
}
@@ -364,7 +364,7 @@ K3bWelcomeWidget::~K3bWelcomeWidget()
void K3bWelcomeWidget::loadConfig( KConfigBase* c )
{
- QStringList sl = KConfigGroup( c, "Welcome Widget" ).readListEntry( "welcome_actions" );
+ TQStringList sl = KConfigGroup( c, "Welcome Widget" ).readListEntry( "welcome_actions" );
if( sl.isEmpty() ) {
sl.append( "file_new_audio" );
@@ -375,8 +375,8 @@ void K3bWelcomeWidget::loadConfig( KConfigBase* c )
sl.append( "tools_write_dvd_iso" );
}
- QPtrList<KAction> actions;
- for( QStringList::const_iterator it = sl.begin(); it != sl.end(); ++it )
+ TQPtrList<KAction> actions;
+ for( TQStringList::const_iterator it = sl.begin(); it != sl.end(); ++it )
if( KAction* a = m_mainWindow->actionCollection()->action( (*it).latin1() ) )
actions.append(a);
@@ -390,49 +390,49 @@ void K3bWelcomeWidget::saveConfig( KConfigBase* c )
{
KConfigGroup grp( c, "Welcome Widget" );
- QStringList sl;
- for( QPtrListIterator<KAction> it( main->m_actions ); it.current(); ++it )
+ TQStringList sl;
+ for( TQPtrListIterator<KAction> it( main->m_actions ); it.current(); ++it )
sl.append( it.current()->name() );
grp.writeEntry( "welcome_actions", sl );
}
-void K3bWelcomeWidget::resizeEvent( QResizeEvent* e )
+void K3bWelcomeWidget::resizeEvent( TQResizeEvent* e )
{
- QScrollView::resizeEvent( e );
+ TQScrollView::resizeEvent( e );
fixSize();
}
-void K3bWelcomeWidget::showEvent( QShowEvent* e )
+void K3bWelcomeWidget::showEvent( TQShowEvent* e )
{
- QScrollView::showEvent( e );
+ TQScrollView::showEvent( e );
fixSize();
}
void K3bWelcomeWidget::fixSize()
{
- QSize s = contentsRect().size();
- s.setWidth( QMAX( main->minimumSizeHint().width(), s.width() ) );
- s.setHeight( QMAX( main->heightForWidth(s.width()), s.height() ) );
+ TQSize s = contentsRect().size();
+ s.setWidth( TQMAX( main->tqminimumSizeHint().width(), s.width() ) );
+ s.setHeight( TQMAX( main->heightForWidth(s.width()), s.height() ) );
main->resize( s );
viewport()->resize( s );
}
-void K3bWelcomeWidget::contentsMousePressEvent( QMouseEvent* e )
+void K3bWelcomeWidget::contentsMousePressEvent( TQMouseEvent* e )
{
- if( e->button() == QMouseEvent::RightButton ) {
- QMap<int, KAction*> map;
+ if( e->button() == Qt::RightButton ) {
+ TQMap<int, KAction*> map;
KPopupMenu addPop;
for ( int i = 0; s_allActions[i]; ++i ) {
if ( s_allActions[i][0] != '_' ) {
KAction* a = m_mainWindow->actionCollection()->action( s_allActions[i] );
- if ( a && !main->m_actions.containsRef(a) ) {
+ if ( a && !main->m_actions.tqcontainsRef(a) ) {
map.insert( addPop.insertItem( a->iconSet(), a->text() ), a );
}
}
@@ -443,7 +443,7 @@ void K3bWelcomeWidget::contentsMousePressEvent( QMouseEvent* e )
int r = 0;
int removeAction = 0;
- QWidget* widgetAtPos = viewport()->childAt(e->pos());
+ TQWidget* widgetAtPos = viewport()->tqchildAt(e->pos());
if( widgetAtPos && widgetAtPos->inherits( "K3bFlatButton" ) ) {
KPopupMenu pop;
removeAction = pop.insertItem( SmallIcon("remove"), i18n("Remove Button") );
@@ -476,14 +476,14 @@ void K3bWelcomeWidget::slotMoreActions()
for ( int i = 0; s_allActions[i]; ++i ) {
if ( s_allActions[i][0] == '_' ) {
- (new KActionSeparator( &popup ))->plug( &popup );
+ (new KActionSeparator( TQT_TQOBJECT(&popup) ))->plug( &popup );
}
else {
m_mainWindow->actionCollection()->action( s_allActions[i] )->plug( &popup );
}
}
- popup.exec( QCursor::pos() );
+ popup.exec( TQCursor::pos() );
}
#include "k3bwelcomewidget.moc"
diff --git a/src/k3bwelcomewidget.h b/src/k3bwelcomewidget.h
index df1945f..41592db 100644
--- a/src/k3bwelcomewidget.h
+++ b/src/k3bwelcomewidget.h
@@ -17,32 +17,33 @@
#ifndef _K3B_WELCOME_WIDGET_H_
#define _K3B_WELCOME_WIDGET_H_
-#include <qscrollview.h>
-#include <qptrlist.h>
-#include <qmap.h>
-#include <qimage.h>
+#include <tqscrollview.h>
+#include <tqptrlist.h>
+#include <tqmap.h>
+#include <tqimage.h>
#include <kurl.h>
#include <kaction.h>
class K3bMainWindow;
-class QDropEvent;
-class QDragEnterEvent;
+class TQDropEvent;
+class TQDragEnterEvent;
class K3bFlatButton;
-class QPaintEvent;
-class QResizeEvent;
-class QSimpleRichText;
+class TQPaintEvent;
+class TQResizeEvent;
+class TQSimpleRichText;
class KConfigBase;
-class QMouseEvent;
-class QShowEvent;
+class TQMouseEvent;
+class TQShowEvent;
-class K3bWelcomeWidget : public QScrollView
+class K3bWelcomeWidget : public TQScrollView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bWelcomeWidget( K3bMainWindow*, QWidget* parent = 0, const char* name = 0 );
+ K3bWelcomeWidget( K3bMainWindow*, TQWidget* tqparent = 0, const char* name = 0 );
~K3bWelcomeWidget();
void loadConfig( KConfigBase* c );
@@ -54,9 +55,9 @@ class K3bWelcomeWidget : public QScrollView
void slotMoreActions();
protected:
- void resizeEvent( QResizeEvent* );
- void showEvent( QShowEvent* );
- void contentsMousePressEvent( QMouseEvent* e );
+ void resizeEvent( TQResizeEvent* );
+ void showEvent( TQShowEvent* );
+ void contentsMousePressEvent( TQMouseEvent* e );
private:
void fixSize();
@@ -66,32 +67,33 @@ class K3bWelcomeWidget : public QScrollView
};
-class K3bWelcomeWidget::Display : public QWidget
+class K3bWelcomeWidget::Display : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- Display( K3bWelcomeWidget* parent );
+ Display( K3bWelcomeWidget* tqparent );
~Display();
- QSize minimumSizeHint() const;
- QSizePolicy sizePolicy () const;
+ TQSize tqminimumSizeHint() const;
+ TQSizePolicy sizePolicy () const;
int heightForWidth ( int w ) const;
void addAction( KAction* );
void removeAction( KAction* );
void removeButton( K3bFlatButton* );
void rebuildGui();
- void rebuildGui( const QPtrList<KAction>& );
+ void rebuildGui( const TQPtrList<KAction>& );
signals:
void dropped( const KURL::List& );
protected:
- void resizeEvent( QResizeEvent* );
- void paintEvent( QPaintEvent* );
- void dropEvent( QDropEvent* event );
- void dragEnterEvent( QDragEnterEvent* event );
+ void resizeEvent( TQResizeEvent* );
+ void paintEvent( TQPaintEvent* );
+ void dropEvent( TQDropEvent* event );
+ void dragEnterEvent( TQDragEnterEvent* event );
private slots:
void slotThemeChanged();
@@ -100,23 +102,23 @@ class K3bWelcomeWidget::Display : public QWidget
void repositionButtons();
void updateBgPix();
- QSimpleRichText* m_header;
- QSimpleRichText* m_infoText;
+ TQSimpleRichText* m_header;
+ TQSimpleRichText* m_infoText;
- QSize m_buttonSize;
+ TQSize m_buttonSize;
int m_cols;
int m_rows;
- QPtrList<KAction> m_actions;
- QPtrList<K3bFlatButton> m_buttons;
- QMap<K3bFlatButton*, KAction*> m_buttonMap;
+ TQPtrList<KAction> m_actions;
+ TQPtrList<K3bFlatButton> m_buttons;
+ TQMap<K3bFlatButton*, KAction*> m_buttonMap;
K3bFlatButton* m_buttonMore;
bool m_infoTextVisible;
- QPixmap m_bgPixmap;
- QImage m_bgImage;
+ TQPixmap m_bgPixmap;
+ TQImage m_bgImage;
friend class K3bWelcomeWidget;
};
diff --git a/src/k3bwidgetshoweffect.cpp b/src/k3bwidgetshoweffect.cpp
index 1caa971..fb4dc62 100644
--- a/src/k3bwidgetshoweffect.cpp
+++ b/src/k3bwidgetshoweffect.cpp
@@ -21,12 +21,12 @@
#include "k3bwidgetshoweffect.h"
-#include <qpainter.h>
-#include <qwidget.h>
+#include <tqpainter.h>
+#include <tqwidget.h>
-K3bWidgetShowEffect::K3bWidgetShowEffect( QWidget* widget, Effect e )
- : QObject( widget ),
+K3bWidgetShowEffect::K3bWidgetShowEffect( TQWidget* widget, Effect e )
+ : TQObject( widget ),
m_effect( e ),
m_widget( widget ),
m_dissolveSize( 0 ),
@@ -63,14 +63,14 @@ void K3bWidgetShowEffect::show( bool effectOnly )
m_widget->polish();
if( m_effect == Dissolve ) {
- // necessary to create the mask
- m_mask.resize( m_widget->width(), m_widget->height() );
- // make the mask empty and hence will not show widget with show() called below
+ // necessary to create the tqmask
+ m_tqmask.resize( m_widget->width(), m_widget->height() );
+ // make the tqmask empty and hence will not show widget with show() called below
dissolveMask();
m_timerId = startTimer( 1000 / 30 );
}
else {
- m_widget->move( 0, m_widget->parentWidget()->height() );
+ m_widget->move( 0, m_widget->tqparentWidget()->height() );
m_timerId = startTimer( 6 );
}
@@ -79,7 +79,7 @@ void K3bWidgetShowEffect::show( bool effectOnly )
}
-void K3bWidgetShowEffect::timerEvent( QTimerEvent* )
+void K3bWidgetShowEffect::timerEvent( TQTimerEvent* )
{
switch( m_effect ) {
case Slide:
@@ -96,19 +96,19 @@ void K3bWidgetShowEffect::timerEvent( QTimerEvent* )
void K3bWidgetShowEffect::dissolveMask()
{
if( m_bShow ) {
- m_widget->repaint( false );
- QPainter maskPainter(&m_mask);
+ m_widget->tqrepaint( false );
+ TQPainter tqmaskPainter(&m_tqmask);
- m_mask.fill(Qt::black);
+ m_tqmask.fill(TQt::black);
- maskPainter.setBrush(Qt::white);
- maskPainter.setPen(Qt::white);
- maskPainter.drawRect( m_mask.rect() );
+ tqmaskPainter.setBrush(TQt::white);
+ tqmaskPainter.setPen(TQt::white);
+ tqmaskPainter.drawRect( m_tqmask.rect() );
m_dissolveSize += m_dissolveDelta;
if( m_dissolveSize > 0 ) {
- maskPainter.setRasterOp( Qt::EraseROP );
+ tqmaskPainter.setRasterOp( TQt::EraseROP );
int x, y, s;
const int size = 16;
@@ -121,7 +121,7 @@ void K3bWidgetShowEffect::dissolveMask()
if( s < 0 )
break;
- maskPainter.drawEllipse(x - s / 2, y - s / 2, s, s);
+ tqmaskPainter.drawEllipse(x - s / 2, y - s / 2, s, s);
}
}
}
@@ -135,7 +135,7 @@ void K3bWidgetShowEffect::dissolveMask()
deleteLater();
}
- m_widget->setMask( m_mask );
+ m_widget->setMask( m_tqmask );
}
else {
@@ -153,7 +153,7 @@ void K3bWidgetShowEffect::dissolveMask()
void K3bWidgetShowEffect::slideMask()
{
if( m_bShow ) {
- m_widget->move( 0, m_widget->parentWidget()->height() - m_offset );
+ m_widget->move( 0, m_widget->tqparentWidget()->height() - m_offset );
m_offset++;
if( m_offset > m_widget->height() ) {
@@ -167,7 +167,7 @@ void K3bWidgetShowEffect::slideMask()
}
else {
m_offset--;
- m_widget->move( 0, m_widget->parentWidget()->height() - m_offset );
+ m_widget->move( 0, m_widget->tqparentWidget()->height() - m_offset );
if( m_offset < 0 ) {
// finally hide the widget
@@ -183,7 +183,7 @@ void K3bWidgetShowEffect::slideMask()
-K3bWidgetShowEffect* K3bWidgetShowEffect::showWidget( QWidget* w, Effect m )
+K3bWidgetShowEffect* K3bWidgetShowEffect::showWidget( TQWidget* w, Effect m )
{
K3bWidgetShowEffect* e = new K3bWidgetShowEffect( w, m );
e->m_deleteSelf = true;
@@ -192,7 +192,7 @@ K3bWidgetShowEffect* K3bWidgetShowEffect::showWidget( QWidget* w, Effect m )
}
-K3bWidgetShowEffect* K3bWidgetShowEffect::hideWidget( QWidget* w, Effect m )
+K3bWidgetShowEffect* K3bWidgetShowEffect::hideWidget( TQWidget* w, Effect m )
{
K3bWidgetShowEffect* e = new K3bWidgetShowEffect( w, m );
e->m_deleteSelf = true;
diff --git a/src/k3bwidgetshoweffect.h b/src/k3bwidgetshoweffect.h
index 9e0de9b..9f6d960 100644
--- a/src/k3bwidgetshoweffect.h
+++ b/src/k3bwidgetshoweffect.h
@@ -22,16 +22,17 @@
#ifndef _K3B_WIDGET_SHOW_EFFECT_H_
#define _K3B_WIDGET_SHOW_EFFECT_H_
-#include <qobject.h>
-#include <qbitmap.h>
+#include <tqobject.h>
+#include <tqbitmap.h>
/**
* Helper class to show and hide a widget in a fancy way.
*/
-class K3bWidgetShowEffect : public QObject
+class K3bWidgetShowEffect : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
// FIXME: add an effect direction
@@ -40,7 +41,7 @@ class K3bWidgetShowEffect : public QObject
Slide
};
- K3bWidgetShowEffect( QWidget* widget, Effect e = Slide );
+ K3bWidgetShowEffect( TQWidget* widget, Effect e = Slide );
~K3bWidgetShowEffect();
void setEffect( Effect e ) { m_effect = e; }
@@ -50,39 +51,39 @@ class K3bWidgetShowEffect : public QObject
* \returns the K3bWidgetShowEffect instance used to show the widget.
* Can be used to connect to signals.
*/
- static K3bWidgetShowEffect* showWidget( QWidget* w, Effect );
+ static K3bWidgetShowEffect* showWidget( TQWidget* w, Effect );
/**
* Using the widget effects the easy way.
* \returns the K3bWidgetShowEffect instance used to hide the widget.
* Can be used to connect to signals.
*/
- static K3bWidgetShowEffect* hideWidget( QWidget* w, Effect );
+ static K3bWidgetShowEffect* hideWidget( TQWidget* w, Effect );
signals:
- void widgetShown( QWidget* );
- void widgetHidden( QWidget* );
+ void widgetShown( TQWidget* );
+ void widgetHidden( TQWidget* );
public slots:
/**
- * \param effectOnly If true K3bWidgetShowEffect will not call QWidget::show().
+ * \param effectOnly If true K3bWidgetShowEffect will not call TQWidget::show().
* This is only useful in case onw uses K3bWidgetShowEffect
- * to reimplement QWidget::show(). In that case the caller
+ * to reimplement TQWidget::show(). In that case the caller
* has to take care of showing the widget.
*/
void show( bool effectOnly = false );
/**
- * \param effectOnly If true K3bWidgetShowEffect will not call QWidget::hide().
+ * \param effectOnly If true K3bWidgetShowEffect will not call TQWidget::hide().
* This is only useful in case onw uses K3bWidgetShowEffect
- * to reimplement QWidget::hide(). In that case the caller
+ * to reimplement TQWidget::hide(). In that case the caller
* has to take care of hiding the widget by connecting to
* K3bWidgetShowEffect::widgetHidden()
*/
void hide( bool effectOnly = false );
private:
- void timerEvent( QTimerEvent* );
+ void timerEvent( TQTimerEvent* );
/**
* @short Gradually show widget by dissolving from background
@@ -95,9 +96,9 @@ class K3bWidgetShowEffect : public QObject
void slideMask();
Effect m_effect;
- QWidget* m_widget;
+ TQWidget* m_widget;
- QBitmap m_mask;
+ TQBitmap m_tqmask;
int m_dissolveSize;
int m_dissolveDelta;
diff --git a/src/k3bwriterselectionwidget.cpp b/src/k3bwriterselectionwidget.cpp
index 29a11f9..41a4f22 100644
--- a/src/k3bwriterselectionwidget.cpp
+++ b/src/k3bwriterselectionwidget.cpp
@@ -32,27 +32,27 @@
#include <kiconloader.h>
#include <kinputdialog.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qgroupbox.h>
-#include <qtooltip.h>
-#include <qtoolbutton.h>
-#include <qwhatsthis.h>
-#include <qmap.h>
-#include <qptrvector.h>
-#include <qcursor.h>
-#include <qapplication.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqgroupbox.h>
+#include <tqtooltip.h>
+#include <tqtoolbutton.h>
+#include <tqwhatsthis.h>
+#include <tqmap.h>
+#include <tqptrvector.h>
+#include <tqcursor.h>
+#include <tqapplication.h>
class K3bWriterSelectionWidget::MediaSelectionComboBox : public K3bMediaSelectionComboBox
{
public:
- MediaSelectionComboBox( QWidget* parent )
- : K3bMediaSelectionComboBox( parent ),
+ MediaSelectionComboBox( TQWidget* tqparent )
+ : K3bMediaSelectionComboBox( tqparent ),
m_overrideDevice( 0 ) {
}
- void setOverrideDevice( K3bDevice::Device* dev, const QString& s, const QString& t ) {
+ void setOverrideDevice( K3bDevice::Device* dev, const TQString& s, const TQString& t ) {
m_overrideDevice = dev;
m_overrideString = s;
m_overrideToolTip = t;
@@ -69,18 +69,18 @@ public:
K3bMediaSelectionComboBox::showMedium( m ) );
}
- QString mediumString( const K3bMedium& m ) const {
+ TQString mediumString( const K3bMedium& m ) const {
if( m.device() == m_overrideDevice )
return m_overrideString;
else
return K3bMediaSelectionComboBox::mediumString( m );
}
- QString mediumToolTip( const K3bMedium& m ) const {
+ TQString mediumToolTip( const K3bMedium& m ) const {
if( m.device() == m_overrideDevice )
return m_overrideToolTip;
else {
- QString s = K3bMediaSelectionComboBox::mediumToolTip( m );
+ TQString s = K3bMediaSelectionComboBox::mediumToolTip( m );
if( !m.diskInfo().empty() && !(wantedMediumState() & m.diskInfo().diskState()) )
s.append( "<p><i>" + i18n("Medium will be overwritten.") + "</i>" );
return s;
@@ -89,8 +89,8 @@ public:
private:
K3bDevice::Device* m_overrideDevice;
- QString m_overrideString;
- QString m_overrideToolTip;
+ TQString m_overrideString;
+ TQString m_overrideToolTip;
};
@@ -105,31 +105,31 @@ public:
int lastSetSpeed;
- QMap<int, int> indexSpeedMap;
- QMap<int, int> speedIndexMap;
+ TQMap<int, int> indexSpeedMap;
+ TQMap<int, int> speedIndexMap;
};
-K3bWriterSelectionWidget::K3bWriterSelectionWidget( QWidget *parent, const char *name )
- : QWidget( parent, name )
+K3bWriterSelectionWidget::K3bWriterSelectionWidget( TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name )
{
d = new Private;
d->forceAutoSpeed = false;
d->supportedWritingApps = K3b::CDRECORD|K3b::CDRDAO|K3b::GROWISOFS;
d->lastSetSpeed = -1;
- QGroupBox* groupWriter = new QGroupBox( this );
+ TQGroupBox* groupWriter = new TQGroupBox( this );
groupWriter->setTitle( i18n( "Burn Medium" ) );
groupWriter->setColumnLayout(0, Qt::Vertical );
- groupWriter->layout()->setSpacing( 0 );
- groupWriter->layout()->setMargin( 0 );
+ groupWriter->tqlayout()->setSpacing( 0 );
+ groupWriter->tqlayout()->setMargin( 0 );
- QGridLayout* groupWriterLayout = new QGridLayout( groupWriter->layout() );
- groupWriterLayout->setAlignment( Qt::AlignTop );
+ TQGridLayout* groupWriterLayout = new TQGridLayout( groupWriter->tqlayout() );
+ groupWriterLayout->tqsetAlignment( TQt::AlignTop );
groupWriterLayout->setSpacing( KDialog::spacingHint() );
groupWriterLayout->setMargin( KDialog::marginHint() );
- QLabel* labelSpeed = new QLabel( groupWriter, "TextLabel1" );
+ TQLabel* labelSpeed = new TQLabel( groupWriter, "TextLabel1" );
labelSpeed->setText( i18n( "Speed:" ) );
m_comboSpeed = new KComboBox( false, groupWriter, "m_comboSpeed" );
@@ -138,7 +138,7 @@ K3bWriterSelectionWidget::K3bWriterSelectionWidget( QWidget *parent, const char
m_comboMedium = new MediaSelectionComboBox( groupWriter );
- m_writingAppLabel = new QLabel( i18n("Writing app:"), groupWriter );
+ m_writingAppLabel = new TQLabel( i18n("Writing app:"), groupWriter );
m_comboWritingApp = new KComboBox( groupWriter );
groupWriterLayout->addWidget( m_comboMedium, 0, 0 );
@@ -149,8 +149,8 @@ K3bWriterSelectionWidget::K3bWriterSelectionWidget( QWidget *parent, const char
groupWriterLayout->setColStretch( 0, 1 );
- QGridLayout* mainLayout = new QGridLayout( this );
- mainLayout->setAlignment( Qt::AlignTop );
+ TQGridLayout* mainLayout = new TQGridLayout( this );
+ mainLayout->tqsetAlignment( TQt::AlignTop );
mainLayout->setSpacing( KDialog::spacingHint() );
mainLayout->setMargin( 0 );
@@ -160,25 +160,25 @@ K3bWriterSelectionWidget::K3bWriterSelectionWidget( QWidget *parent, const char
setTabOrder( m_comboMedium, m_comboSpeed );
setTabOrder( m_comboSpeed, m_comboWritingApp );
- connect( m_comboMedium, SIGNAL(selectionChanged(K3bDevice::Device*)), this, SIGNAL(writerChanged()) );
- connect( m_comboMedium, SIGNAL(selectionChanged(K3bDevice::Device*)),
- this, SIGNAL(writerChanged(K3bDevice::Device*)) );
- connect( m_comboMedium, SIGNAL(newMedia()), this, SIGNAL(newMedia()) );
- connect( m_comboMedium, SIGNAL(newMedium(K3bDevice::Device*)), this, SIGNAL(newMedium(K3bDevice::Device*)) );
- connect( m_comboMedium, SIGNAL(newMedium(K3bDevice::Device*)), this, SLOT(slotNewBurnMedium(K3bDevice::Device*)) );
- connect( m_comboWritingApp, SIGNAL(activated(int)), this, SLOT(slotWritingAppSelected(int)) );
- connect( this, SIGNAL(writerChanged()), SLOT(slotWriterChanged()) );
- connect( m_comboSpeed, SIGNAL(activated(int)), this, SLOT(slotSpeedChanged(int)) );
+ connect( m_comboMedium, TQT_SIGNAL(selectionChanged(K3bDevice::Device*)), this, TQT_SIGNAL(writerChanged()) );
+ connect( m_comboMedium, TQT_SIGNAL(selectionChanged(K3bDevice::Device*)),
+ this, TQT_SIGNAL(writerChanged(K3bDevice::Device*)) );
+ connect( m_comboMedium, TQT_SIGNAL(newMedia()), this, TQT_SIGNAL(newMedia()) );
+ connect( m_comboMedium, TQT_SIGNAL(newMedium(K3bDevice::Device*)), this, TQT_SIGNAL(newMedium(K3bDevice::Device*)) );
+ connect( m_comboMedium, TQT_SIGNAL(newMedium(K3bDevice::Device*)), this, TQT_SLOT(slotNewBurnMedium(K3bDevice::Device*)) );
+ connect( m_comboWritingApp, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotWritingAppSelected(int)) );
+ connect( this, TQT_SIGNAL(writerChanged()), TQT_SLOT(slotWriterChanged()) );
+ connect( m_comboSpeed, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSpeedChanged(int)) );
- QToolTip::add( m_comboMedium, i18n("The medium that will be used for burning") );
- QToolTip::add( m_comboSpeed, i18n("The speed at which to burn the medium") );
- QToolTip::add( m_comboWritingApp, i18n("The external application to actually burn the medium") );
+ TQToolTip::add( m_comboMedium, i18n("The medium that will be used for burning") );
+ TQToolTip::add( m_comboSpeed, i18n("The speed at which to burn the medium") );
+ TQToolTip::add( m_comboWritingApp, i18n("The external application to actually burn the medium") );
- QWhatsThis::add( m_comboMedium, i18n("<p>Select the medium that you want to use for burning."
+ TQWhatsThis::add( m_comboMedium, i18n("<p>Select the medium that you want to use for burning."
"<p>In most cases there will only be one medium available which "
"does not leave much choice.") );
- QWhatsThis::add( m_comboSpeed, i18n("<p>Select the speed with which you want to burn."
+ TQWhatsThis::add( m_comboSpeed, i18n("<p>Select the speed with which you want to burn."
"<p><b>Auto</b><br>"
"This will choose the maximum writing speed possible with the used "
"medium. "
@@ -189,7 +189,7 @@ K3bWriterSelectionWidget::K3bWriterSelectionWidget( QWidget *parent, const char
"<p>1x refers to 1385 KB/s for DVD and 175 KB/s for CD.</p>"
"<p><b>Caution:</b> Make sure your system is able to send the data "
"fast enough to prevent buffer underruns.") );
- QWhatsThis::add( m_comboWritingApp, i18n("<p>K3b uses the command line tools cdrecord, growisofs, and cdrdao "
+ TQWhatsThis::add( m_comboWritingApp, i18n("<p>K3b uses the command line tools cdrecord, growisofs, and cdrdao "
"to actually write a CD or DVD."
"<p>Normally K3b chooses the best "
"suited application for every task automatically but in some cases it "
@@ -251,7 +251,7 @@ void K3bWriterSelectionWidget::slotConfigChanged( KConfigBase* c )
void K3bWriterSelectionWidget::slotRefreshWriterSpeeds()
{
if( writerDevice() ) {
- QValueList<int> speeds = k3bappcore->mediaCache()->writingSpeeds( writerDevice() );
+ TQValueList<int> speeds = k3bappcore->mediaCache()->writingSpeeds( writerDevice() );
int lastSpeed = writerSpeed();
@@ -294,7 +294,7 @@ void K3bWriterSelectionWidget::slotRefreshWriterSpeeds()
d->haveManualSpeed = true;
}
else {
- for( QValueList<int>::iterator it = speeds.begin(); it != speeds.end(); ++it )
+ for( TQValueList<int>::iterator it = speeds.begin(); it != speeds.end(); ++it )
insertSpeedItem( *it );
}
}
@@ -322,17 +322,17 @@ void K3bWriterSelectionWidget::clearSpeedCombo()
void K3bWriterSelectionWidget::insertSpeedItem( int speed )
{
- if( !d->speedIndexMap.contains( speed ) ) {
+ if( !d->speedIndexMap.tqcontains( speed ) ) {
d->indexSpeedMap[m_comboSpeed->count()] = speed;
d->speedIndexMap[speed] = m_comboSpeed->count();
if( k3bappcore->mediaCache()->diskInfo( writerDevice() ).isDvdMedia() )
m_comboSpeed->insertItem( ( speed%1385 > 0
- ? QString::number( (float)speed/1385.0, 'f', 1 ) // example: DVD+R(W): 2.4x
- : QString::number( speed/1385 ) )
+ ? TQString::number( (float)speed/1385.0, 'f', 1 ) // example: DVD+R(W): 2.4x
+ : TQString::number( speed/1385 ) )
+ "x" );
else
- m_comboSpeed->insertItem( QString("%1x").arg(speed/175) );
+ m_comboSpeed->insertItem( TQString("%1x").tqarg(speed/175) );
}
}
@@ -349,7 +349,7 @@ K3bDevice::Device* K3bWriterSelectionWidget::writerDevice() const
}
-QValueList<K3bDevice::Device*> K3bWriterSelectionWidget::allDevices() const
+TQValueList<K3bDevice::Device*> K3bWriterSelectionWidget::allDevices() const
{
return m_comboMedium->allDevices();
}
@@ -367,7 +367,7 @@ void K3bWriterSelectionWidget::setSpeed( int s )
if( d->haveIgnoreSpeed && s < 0 )
m_comboSpeed->setCurrentItem( 1 ); // Ignore
- else if( d->speedIndexMap.contains( s ) )
+ else if( d->speedIndexMap.tqcontains( s ) )
m_comboSpeed->setCurrentItem( d->speedIndexMap[s] );
else {
m_comboSpeed->setCurrentItem( 0 ); // Auto
@@ -511,7 +511,7 @@ void K3bWriterSelectionWidget::loadConfig( KConfigBase* c )
void K3bWriterSelectionWidget::saveConfig( KConfigBase* c )
{
c->writeEntry( "writing_speed", writerSpeed() );
- c->writeEntry( "writer_device", writerDevice() ? writerDevice()->devicename() : QString::null );
+ c->writeEntry( "writer_device", writerDevice() ? writerDevice()->devicename() : TQString() );
c->writeEntry( "writing_app", m_comboWritingApp->currentText() );
}
@@ -530,7 +530,7 @@ void K3bWriterSelectionWidget::setForceAutoSpeed( bool b )
}
-void K3bWriterSelectionWidget::setOverrideDevice( K3bDevice::Device* dev, const QString& overrideString, const QString& tooltip )
+void K3bWriterSelectionWidget::setOverrideDevice( K3bDevice::Device* dev, const TQString& overrideString, const TQString& tooltip )
{
m_comboMedium->setOverrideDevice( dev, overrideString, tooltip );
}
@@ -586,7 +586,7 @@ void K3bWriterSelectionWidget::slotManualSpeed()
&ok,
this ) * speedFactor;
if( ok ) {
- writerDevice()->setMaxWriteSpeed( QMAX( newSpeed, writerDevice()->maxWriteSpeed() ) );
+ writerDevice()->setMaxWriteSpeed( TQMAX( newSpeed, writerDevice()->maxWriteSpeed() ) );
slotRefreshWriterSpeeds();
setSpeed( newSpeed );
}
diff --git a/src/k3bwriterselectionwidget.h b/src/k3bwriterselectionwidget.h
index 8174637..acb989e 100644
--- a/src/k3bwriterselectionwidget.h
+++ b/src/k3bwriterselectionwidget.h
@@ -17,11 +17,11 @@
#ifndef K3BWRITERSELECTIONWIDGET_H
#define K3BWRITERSELECTIONWIDGET_H
-#include <qwidget.h>
+#include <tqwidget.h>
class KComboBox;
class KConfigBase;
-class QLabel;
+class TQLabel;
class K3bMediaSelectionComboBox;
namespace K3bDevice {
class Device;
@@ -32,21 +32,22 @@ namespace K3bDevice {
/**
*@author Sebastian Trueg
*/
-class K3bWriterSelectionWidget : public QWidget
+class K3bWriterSelectionWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Creates a writerselectionwidget
*/
- K3bWriterSelectionWidget( QWidget* parent = 0, const char* name = 0 );
+ K3bWriterSelectionWidget( TQWidget* tqparent = 0, const char* name = 0 );
~K3bWriterSelectionWidget();
int writerSpeed() const;
K3bDevice::Device* writerDevice() const;
- QValueList<K3bDevice::Device*> allDevices() const;
+ TQValueList<K3bDevice::Device*> allDevices() const;
/**
* returns K3b::WritingApp
@@ -99,7 +100,7 @@ class K3bWriterSelectionWidget : public QWidget
* For example: "Burn to the same device". Set it to 0 in order
* to disable the feature.
*/
- void setOverrideDevice( K3bDevice::Device* dev, const QString& overrideString = QString::null, const QString& tooltip = QString::null );
+ void setOverrideDevice( K3bDevice::Device* dev, const TQString& overrideString = TQString(), const TQString& tooltip = TQString() );
/**
* Compare K3bMediaSelectionComboBox::setIgnoreDevice
@@ -137,7 +138,7 @@ class K3bWriterSelectionWidget : public QWidget
KComboBox* m_comboSpeed;
MediaSelectionComboBox* m_comboMedium;
KComboBox* m_comboWritingApp;
- QLabel* m_writingAppLabel;
+ TQLabel* m_writingAppLabel;
class Private;
Private* d;
diff --git a/src/k3bwritingmodewidget.cpp b/src/k3bwritingmodewidget.cpp
index a2bd696..6a8e563 100644
--- a/src/k3bwritingmodewidget.cpp
+++ b/src/k3bwritingmodewidget.cpp
@@ -22,26 +22,26 @@
#include <klocale.h>
#include <kconfig.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
-static const QString s_autoHelp = i18n("Let K3b select the best-suited mode. This is the recommended selection.");
-static const QString s_daoHelp = i18n("<em>Disk At Once</em> or more properly <em>Session At Once</em>. "
+static const TQString s_autoHelp = i18n("Let K3b select the best-suited mode. This is the recommended selection.");
+static const TQString s_daoHelp = i18n("<em>Disk At Once</em> or more properly <em>Session At Once</em>. "
"The laser is never turned off while writing the CD or DVD. "
"This is the preferred mode to write audio CDs since it allows "
"pregaps other than 2 seconds. Not all writers support DAO.<br>"
"DVD-R(W)s written in DAO provide the best DVD-Video compatibility.");
-static const QString s_taoHelp = i18n("<em>Track At Once</em> should be supported by every CD writer. "
+static const TQString s_taoHelp = i18n("<em>Track At Once</em> should be supported by every CD writer. "
"The laser will be turned off after every track.<br>"
"Most CD writers need this mode for writing multisession CDs.");
// TODO: add something like: "No CD-TEXT writing in TAO mode."
-static const QString s_rawHelp = i18n("RAW writing mode. The error correction data is created by the "
+static const TQString s_rawHelp = i18n("RAW writing mode. The error correction data is created by the "
"software instead of the writer device.<br>"
"Try this if your CD writer fails to write in DAO and TAO.");
-static const QString s_seqHelp = i18n("Incremental sequential is the default writing mode for DVD-R(W). "
+static const TQString s_seqHelp = i18n("Incremental sequential is the default writing mode for DVD-R(W). "
"It allows multisession DVD-R(W)s. It only applies to DVD-R(W).");
-static const QString s_ovwHelp = i18n("Restricted Overwrite allows to use a DVD-RW just like a DVD-RAM "
+static const TQString s_ovwHelp = i18n("Restricted Overwrite allows to use a DVD-RW just like a DVD-RAM "
"or a DVD+RW. The media may just be overwritten. It is not possible "
"to write multisession DVD-RWs in this mode but K3b uses growisofs "
"to grow an ISO9660 filesystem within the first session, thus allowing "
@@ -61,16 +61,16 @@ public:
};
-K3bWritingModeWidget::K3bWritingModeWidget( int modes, QWidget* parent, const char* name )
- : K3bIntMapComboBox( parent, name )
+K3bWritingModeWidget::K3bWritingModeWidget( int modes, TQWidget* tqparent, const char* name )
+ : K3bIntMapComboBox( tqparent, name )
{
init();
setSupportedModes( modes );
}
-K3bWritingModeWidget::K3bWritingModeWidget( QWidget* parent, const char* name )
- : K3bIntMapComboBox( parent, name )
+K3bWritingModeWidget::K3bWritingModeWidget( TQWidget* tqparent, const char* name )
+ : K3bIntMapComboBox( tqparent, name )
{
init();
setSupportedModes( K3b::DAO | K3b::TAO | K3b::RAW ); // default: support all CD-R(W) modes
@@ -88,9 +88,9 @@ void K3bWritingModeWidget::init()
d = new Private();
d->device = 0;
- connect( this, SIGNAL(valueChanged(int)), this, SIGNAL(writingModeChanged(int)) );
+ connect( this, TQT_SIGNAL(valueChanged(int)), this, TQT_SIGNAL(writingModeChanged(int)) );
- QToolTip::add( this, i18n("Select the writing mode to use") );
+ TQToolTip::add( this, i18n("Select the writing mode to use") );
initWhatsThisHelp();
}
@@ -192,7 +192,7 @@ void K3bWritingModeWidget::saveConfig( KConfigBase* c )
void K3bWritingModeWidget::loadConfig( KConfigBase* c )
{
- QString mode = c->readEntry( "writing_mode" );
+ TQString mode = c->readEntry( "writing_mode" );
if ( mode == "dao" )
setWritingMode( K3b::DAO );
else if( mode == "tao" )
diff --git a/src/k3bwritingmodewidget.h b/src/k3bwritingmodewidget.h
index f399f14..6b6ed07 100644
--- a/src/k3bwritingmodewidget.h
+++ b/src/k3bwritingmodewidget.h
@@ -30,10 +30,11 @@ class KConfigBase;
class K3bWritingModeWidget : public K3bIntMapComboBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bWritingModeWidget( QWidget* parent = 0, const char* name = 0 );
- K3bWritingModeWidget( int modes, QWidget* parent = 0, const char* name = 0 );
+ K3bWritingModeWidget( TQWidget* tqparent = 0, const char* name = 0 );
+ K3bWritingModeWidget( int modes, TQWidget* tqparent = 0, const char* name = 0 );
~K3bWritingModeWidget();
int writingMode() const;
diff --git a/src/main.cpp b/src/main.cpp
index d595281..c19e714 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -27,10 +27,10 @@
#include <dcopref.h>
#include <kurl.h>
-#include <qfile.h>
-#include <qcstring.h>
-#include <qdatastream.h>
-#include <qtimer.h>
+#include <tqfile.h>
+#include <tqcstring.h>
+#include <tqdatastream.h>
+#include <tqtimer.h>
#include <stdlib.h>
@@ -145,7 +145,7 @@ int main( int argc, char* argv[] )
K3bApplication app;
// we need a running app for the init method
- QTimer::singleShot( 0, &app, SLOT(init()) );
+ TQTimer::singleShot( 0, &app, TQT_SLOT(init()) );
return app.exec();
}
diff --git a/src/misc/k3bblankingdialog.cpp b/src/misc/k3bblankingdialog.cpp
index 5f4b531..b606fd2 100644
--- a/src/misc/k3bblankingdialog.cpp
+++ b/src/misc/k3bblankingdialog.cpp
@@ -34,17 +34,17 @@
#include <kstdguiitem.h>
#include <kconfig.h>
-#include <qgroupbox.h>
-#include <qpushbutton.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qtextview.h>
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qheader.h>
-#include <qmap.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqgroupbox.h>
+#include <tqpushbutton.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqtextview.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqheader.h>
+#include <tqmap.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
@@ -60,17 +60,17 @@ public:
K3bProgressDialog* erasingDlg;
K3bDebuggingOutputDialog* debugDialog;
K3bDebuggingOutputFile debugFile;
- QMap<int, int> comboTypeMap;
- QMap<int, int> typeComboMap;
+ TQMap<int, int> comboTypeMap;
+ TQMap<int, int> typeComboMap;
bool jobRunning;
};
-K3bBlankingDialog::K3bBlankingDialog( QWidget* parent, const char* name )
- : K3bInteractionDialog( parent, name,
+K3bBlankingDialog::K3bBlankingDialog( TQWidget* tqparent, const char* name )
+ : K3bInteractionDialog( tqparent, name,
i18n("Erase CD-RW"),
- QString::null,
+ TQString(),
START_BUTTON|CANCEL_BUTTON,
START_BUTTON,
"CDRW Erasing" )
@@ -80,8 +80,8 @@ K3bBlankingDialog::K3bBlankingDialog( QWidget* parent, const char* name )
setupGui();
- connect( m_writerSelectionWidget, SIGNAL(writerChanged()), this, SLOT(slotWriterChanged()) );
- connect( m_writerSelectionWidget, SIGNAL(writingAppChanged(int)), this, SLOT(slotWritingAppChanged(int)) );
+ connect( m_writerSelectionWidget, TQT_SIGNAL(writerChanged()), this, TQT_SLOT(slotWriterChanged()) );
+ connect( m_writerSelectionWidget, TQT_SIGNAL(writingAppChanged(int)), this, TQT_SLOT(slotWritingAppChanged(int)) );
slotWriterChanged();
slotWritingAppChanged( m_writerSelectionWidget->writingApp() );
}
@@ -101,21 +101,21 @@ void K3bBlankingDialog::setDevice( K3bDevice::Device* dev )
void K3bBlankingDialog::setupGui()
{
- QWidget* frame = mainWidget();
+ TQWidget* frame = mainWidget();
m_writerSelectionWidget = new K3bWriterSelectionWidget( frame );
m_writerSelectionWidget->setWantedMediumType( K3bDevice::MEDIA_CD_RW );
m_writerSelectionWidget->setWantedMediumState( K3bDevice::STATE_COMPLETE|K3bDevice::STATE_INCOMPLETE );
// --- setup the blanking type button group -----------------------------
- QGroupBox* groupBlankType = new QGroupBox( 1, Qt::Vertical, i18n("&Erase Type"), frame );
- groupBlankType->layout()->setSpacing( spacingHint() );
- groupBlankType->layout()->setMargin( marginHint() );
+ TQGroupBox* groupBlankType = new TQGroupBox( 1, Qt::Vertical, i18n("&Erase Type"), frame );
+ groupBlankType->tqlayout()->setSpacing( spacingHint() );
+ groupBlankType->tqlayout()->setMargin( marginHint() );
- m_comboEraseMode = new QComboBox( groupBlankType );
+ m_comboEraseMode = new TQComboBox( groupBlankType );
// ----------------------------------------------------------------------
- QGridLayout* grid = new QGridLayout( frame );
+ TQGridLayout* grid = new TQGridLayout( frame );
grid->setSpacing( spacingHint() );
grid->setMargin( 0 );
grid->addWidget( m_writerSelectionWidget, 0, 0 );
@@ -131,13 +131,13 @@ void K3bBlankingDialog::slotStartClicked()
d->debugFile.open();
if( d->job == 0 ) {
- d->job = new K3bBlankingJob( this, this );
- connect( d->job, SIGNAL(debuggingOutput(const QString&, const QString&)),
- d->debugDialog, SLOT(addOutput(const QString&, const QString&)) );
- connect( d->job, SIGNAL(debuggingOutput(const QString&, const QString&)),
- &d->debugFile, SLOT(addOutput(const QString&, const QString&)) );
- connect( d->job, SIGNAL(finished(bool)),
- this, SLOT(slotJobFinished(bool)) );
+ d->job = new K3bBlankingJob( this, TQT_TQOBJECT(this) );
+ connect( d->job, TQT_SIGNAL(debuggingOutput(const TQString&, const TQString&)),
+ d->debugDialog, TQT_SLOT(addOutput(const TQString&, const TQString&)) );
+ connect( d->job, TQT_SIGNAL(debuggingOutput(const TQString&, const TQString&)),
+ &d->debugFile, TQT_SLOT(addOutput(const TQString&, const TQString&)) );
+ connect( d->job, TQT_SIGNAL(finished(bool)),
+ this, TQT_SLOT(slotJobFinished(bool)) );
}
d->job->setDevice( m_writerSelectionWidget->writerDevice() );
@@ -150,7 +150,7 @@ void K3bBlankingDialog::slotStartClicked()
if( !d->erasingDlg )
d->erasingDlg = new K3bProgressDialog( i18n("Erasing CD-RW"), this );
- connect( d->erasingDlg, SIGNAL(cancelClicked()), d->job, SLOT(cancel()) );
+ connect( d->erasingDlg, TQT_SIGNAL(cancelClicked()), d->job, TQT_SLOT(cancel()) );
if( !exitLoopOnHide() )
hide();
@@ -200,22 +200,22 @@ void K3bBlankingDialog::slotWriterChanged()
setButtonEnabled( START_BUTTON, true );
else {
setButtonEnabled( START_BUTTON, false );
- KMessageBox::sorry( this, i18n("%1 does not support CD-RW writing.").arg(dev->devicename()) );
+ KMessageBox::sorry( this, i18n("%1 does not support CD-RW writing.").tqarg(dev->devicename()) );
}
}
void K3bBlankingDialog::slotWritingAppChanged(int app)
{
- QWhatsThis::remove( m_comboEraseMode );
- QString whatsThisInfo;
+ TQWhatsThis::remove( m_comboEraseMode );
+ TQString whatsThisInfo;
- static QString wsComplete = i18n("Erases the complete disk. This takes as long "
+ static TQString wsComplete = i18n("Erases the complete disk. This takes as long "
"as writing the complete CD.");
- static QString wsFast = i18n("Erases just the TOC, the PMA, and the pregap.");
- static QString wsTrack = i18n("Erases just the last track.");
- static QString wsUnclose = i18n("Reopen the last session to make it possible to append "
+ static TQString wsFast = i18n("Erases just the TOC, the PMA, and the pregap.");
+ static TQString wsTrack = i18n("Erases just the last track.");
+ static TQString wsUnclose = i18n("Reopen the last session to make it possible to append "
"further data.");
- static QString wsSession = i18n("Erases the last session of a multisession CD.");
+ static TQString wsSession = i18n("Erases the last session of a multisession CD.");
int lastMode = d->comboTypeMap[m_comboEraseMode->currentItem()];
@@ -249,10 +249,10 @@ void K3bBlankingDialog::slotWritingAppChanged(int app)
whatsThisInfo += "<p><b>" + i18n("Erase Last Session") + "</b><br>" + wsSession;
}
- QWhatsThis::add( m_comboEraseMode, whatsThisInfo );
+ TQWhatsThis::add( m_comboEraseMode, whatsThisInfo );
// try to reset last mode
- if( d->typeComboMap.contains( lastMode ) )
+ if( d->typeComboMap.tqcontains( lastMode ) )
m_comboEraseMode->setCurrentItem( d->typeComboMap[lastMode] );
else
m_comboEraseMode->setCurrentItem( d->typeComboMap[K3bBlankingJob::Fast] );
@@ -270,7 +270,7 @@ void K3bBlankingDialog::loadUserDefaults( KConfigBase* c )
m_writerSelectionWidget->loadConfig( c );
slotWritingAppChanged( m_writerSelectionWidget->writingApp() );
- QString mode = c->readEntry( "erase_mode" );
+ TQString mode = c->readEntry( "erase_mode" );
kdDebug() << "(K3bBlankingDialog) slotWritingAppChanged mode: " << mode << endl;
m_comboEraseMode->setCurrentItem( d->typeComboMap[K3bBlankingJob::Fast] );
if( mode == "complete" )
@@ -287,7 +287,7 @@ void K3bBlankingDialog::loadUserDefaults( KConfigBase* c )
void K3bBlankingDialog::saveUserDefaults( KConfigBase* c )
{
- QString mode;
+ TQString mode;
switch( d->comboTypeMap[m_comboEraseMode->currentItem()] ) {
case K3bBlankingJob::Complete:
mode = "complete";
@@ -314,17 +314,17 @@ void K3bBlankingDialog::saveUserDefaults( KConfigBase* c )
int K3bBlankingDialog::waitForMedia( K3bDevice::Device* device,
int mediaState,
int mediaType,
- const QString& message )
+ const TQString& message )
{
// this is only needed for the formatting
return K3bEmptyDiscWaiter::wait( device, mediaState, mediaType, message, this );
}
-bool K3bBlankingDialog::questionYesNo( const QString& text,
- const QString& caption,
- const QString& yesText,
- const QString& noText )
+bool K3bBlankingDialog::questionYesNo( const TQString& text,
+ const TQString& caption,
+ const TQString& yesText,
+ const TQString& noText )
{
return ( KMessageBox::questionYesNo( this,
text,
@@ -334,8 +334,8 @@ bool K3bBlankingDialog::questionYesNo( const QString& text,
}
-void K3bBlankingDialog::blockingInformation( const QString& text,
- const QString& caption )
+void K3bBlankingDialog::blockingInformation( const TQString& text,
+ const TQString& caption )
{
KMessageBox::information( this, text, caption );
}
diff --git a/src/misc/k3bblankingdialog.h b/src/misc/k3bblankingdialog.h
index cbd5583..6a0b861 100644
--- a/src/misc/k3bblankingdialog.h
+++ b/src/misc/k3bblankingdialog.h
@@ -20,9 +20,9 @@
#include "k3binteractiondialog.h"
#include <k3bjobhandler.h>
-class QGroupBox;
-class QComboBox;
-class QCloseEvent;
+class TQGroupBox;
+class TQComboBox;
+class TQCloseEvent;
class KListView;
class K3bWriterSelectionWidget;
namespace K3bDevice {
@@ -33,9 +33,10 @@ namespace K3bDevice {
class K3bBlankingDialog : public K3bInteractionDialog, public K3bJobHandler
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bBlankingDialog( QWidget*, const char* );
+ K3bBlankingDialog( TQWidget*, const char* );
~K3bBlankingDialog();
/**
@@ -44,21 +45,21 @@ Q_OBJECT
int waitForMedia( K3bDevice::Device*,
int mediaState = K3bDevice::STATE_EMPTY,
int mediaType = K3bDevice::MEDIA_WRITABLE_CD,
- const QString& message = QString::null );
+ const TQString& message = TQString() );
/**
* @reimplemented from K3bJobHandler
*/
- bool questionYesNo( const QString& text,
- const QString& caption = QString::null,
- const QString& yesText = QString::null,
- const QString& noText = QString::null );
+ bool questionYesNo( const TQString& text,
+ const TQString& caption = TQString(),
+ const TQString& yesText = TQString(),
+ const TQString& noText = TQString() );
/**
* reimplemented from K3bJobHandler
*/
- void blockingInformation( const QString& text,
- const QString& caption = QString::null );
+ void blockingInformation( const TQString& text,
+ const TQString& caption = TQString() );
public slots:
void setDevice( K3bDevice::Device* );
@@ -77,7 +78,7 @@ Q_OBJECT
K3bWriterSelectionWidget* m_writerSelectionWidget;
- QComboBox* m_comboEraseMode;
+ TQComboBox* m_comboEraseMode;
class Private;
Private* d;
diff --git a/src/misc/k3bcdcopydialog.cpp b/src/misc/k3bcdcopydialog.cpp
index 4f1ce3b..66b4171 100644
--- a/src/misc/k3bcdcopydialog.cpp
+++ b/src/misc/k3bcdcopydialog.cpp
@@ -44,39 +44,39 @@
#include <kapplication.h>
#include <kiconloader.h>
-#include <qcheckbox.h>
-#include <qspinbox.h>
-#include <qcombobox.h>
-#include <qlayout.h>
-#include <qgroupbox.h>
-#include <qptrlist.h>
-#include <qlabel.h>
-#include <qtooltip.h>
-#include <qtabwidget.h>
-#include <qwhatsthis.h>
-#include <qhbox.h>
-#include <qpushbutton.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
-#include <qsizepolicy.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-
-
-K3bCdCopyDialog::K3bCdCopyDialog( QWidget *parent, const char *name, bool modal )
- : K3bInteractionDialog( parent, name, i18n("CD Copy"), i18n("and CD Cloning"),
+#include <tqcheckbox.h>
+#include <tqspinbox.h>
+#include <tqcombobox.h>
+#include <tqlayout.h>
+#include <tqgroupbox.h>
+#include <tqptrlist.h>
+#include <tqlabel.h>
+#include <tqtooltip.h>
+#include <tqtabwidget.h>
+#include <tqwhatsthis.h>
+#include <tqhbox.h>
+#include <tqpushbutton.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqsizepolicy.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+
+
+K3bCdCopyDialog::K3bCdCopyDialog( TQWidget *tqparent, const char *name, bool modal )
+ : K3bInteractionDialog( tqparent, name, i18n("CD Copy"), i18n("and CD Cloning"),
START_BUTTON|CANCEL_BUTTON,
START_BUTTON,
"CD Copy",
modal )
{
- QWidget* main = mainWidget();
+ TQWidget* main = mainWidget();
- QGridLayout* mainGrid = new QGridLayout( main );
+ TQGridLayout* mainGrid = new TQGridLayout( main );
mainGrid->setSpacing( spacingHint() );
mainGrid->setMargin( 0 );
- QGroupBox* groupSource = new QGroupBox( 1, Qt::Vertical, i18n("Source Medium"), main );
+ TQGroupBox* groupSource = new TQGroupBox( 1, Qt::Vertical, i18n("Source Medium"), main );
groupSource->setInsideSpacing( spacingHint() );
groupSource->setInsideMargin( marginHint() );
m_comboSourceDevice = new K3bMediaSelectionComboBox( groupSource );
@@ -89,36 +89,36 @@ K3bCdCopyDialog::K3bCdCopyDialog( QWidget *parent, const char *name, bool modal
m_writerSelectionWidget->setSupportedWritingApps( K3b::CDRECORD );
// tab widget --------------------
- QTabWidget* tabWidget = new QTabWidget( main );
+ TQTabWidget* tabWidget = new TQTabWidget( main );
//
// option tab --------------------
//
- QWidget* optionTab = new QWidget( tabWidget );
- QGridLayout* optionTabGrid = new QGridLayout( optionTab );
+ TQWidget* optionTab = new TQWidget( tabWidget );
+ TQGridLayout* optionTabGrid = new TQGridLayout( optionTab );
optionTabGrid->setSpacing( spacingHint() );
optionTabGrid->setMargin( marginHint() );
- QGroupBox* groupCopyMode = new QGroupBox( 1, Qt::Vertical, i18n("Copy Mode"), optionTab );
+ TQGroupBox* groupCopyMode = new TQGroupBox( 1, Qt::Vertical, i18n("Copy Mode"), optionTab );
groupCopyMode->setInsideMargin( marginHint() );
groupCopyMode->setInsideSpacing( spacingHint() );
- m_comboCopyMode = new QComboBox( groupCopyMode );
+ m_comboCopyMode = new TQComboBox( groupCopyMode );
m_comboCopyMode->insertItem( i18n("Normal Copy") );
m_comboCopyMode->insertItem( i18n("Clone Copy") );
- QGroupBox* groupWritingMode = new QGroupBox( 1, Qt::Vertical, i18n("Writing Mode"), optionTab );
+ TQGroupBox* groupWritingMode = new TQGroupBox( 1, Qt::Vertical, i18n("Writing Mode"), optionTab );
groupWritingMode->setInsideMargin( marginHint() );
m_writingModeWidget = new K3bWritingModeWidget( groupWritingMode );
- QGroupBox* groupCopies = new QGroupBox( 2, Qt::Horizontal, i18n("Copies"), optionTab );
+ TQGroupBox* groupCopies = new TQGroupBox( 2, Qt::Horizontal, i18n("Copies"), optionTab );
groupCopies->setInsideSpacing( spacingHint() );
groupCopies->setInsideMargin( marginHint() );
- QLabel* pixLabel = new QLabel( groupCopies );
+ TQLabel* pixLabel = new TQLabel( groupCopies );
pixLabel->setPixmap( SmallIcon( "cdcopy", KIcon::SizeMedium ) );
pixLabel->setScaledContents( false );
- m_spinCopies = new QSpinBox( 1, 999, 1, groupCopies );
+ m_spinCopies = new TQSpinBox( 1, 999, 1, groupCopies );
- QGroupBox* groupOptions = new QGroupBox( 5, Qt::Vertical, i18n("Settings"), optionTab );
+ TQGroupBox* groupOptions = new TQGroupBox( 5, Qt::Vertical, i18n("Settings"), optionTab );
groupOptions->setInsideSpacing( spacingHint() );
groupOptions->setInsideMargin( marginHint() );
m_checkSimulate = K3bStdGuiItems::simulateCheckbox( groupOptions );
@@ -139,8 +139,8 @@ K3bCdCopyDialog::K3bCdCopyDialog( QWidget *parent, const char *name, bool modal
//
// image tab ------------------
//
- QWidget* imageTab = new QWidget( tabWidget );
- QGridLayout* imageTabGrid = new QGridLayout( imageTab );
+ TQWidget* imageTab = new TQWidget( tabWidget );
+ TQGridLayout* imageTabGrid = new TQGridLayout( imageTab );
imageTabGrid->setSpacing( spacingHint() );
imageTabGrid->setMargin( marginHint() );
@@ -154,35 +154,35 @@ K3bCdCopyDialog::K3bCdCopyDialog( QWidget *parent, const char *name, bool modal
//
// advanced tab ------------------
//
- QWidget* advancedTab = new QWidget( tabWidget );
- QGridLayout* advancedTabGrid = new QGridLayout( advancedTab );
+ TQWidget* advancedTab = new TQWidget( tabWidget );
+ TQGridLayout* advancedTabGrid = new TQGridLayout( advancedTab );
advancedTabGrid->setSpacing( spacingHint() );
advancedTabGrid->setMargin( marginHint() );
- m_groupAdvancedDataOptions = new QGroupBox( 3, Qt::Vertical, i18n("Data"), advancedTab, "data_options" );
+ m_groupAdvancedDataOptions = new TQGroupBox( 3, Qt::Vertical, i18n("Data"), advancedTab, "data_options" );
m_groupAdvancedDataOptions->setInsideSpacing( spacingHint() );
m_groupAdvancedDataOptions->setInsideMargin( marginHint() );
- QHBox* box = new QHBox( m_groupAdvancedDataOptions );
+ TQHBox* box = new TQHBox( m_groupAdvancedDataOptions );
box->setSpacing( spacingHint() );
- box->setStretchFactor( new QLabel( i18n("Read retries:"), box ), 1 );
- m_spinDataRetries = new QSpinBox( 1, 128, 1, box );
+ box->setStretchFactor( new TQLabel( i18n("Read retries:"), box ), 1 );
+ m_spinDataRetries = new TQSpinBox( 1, 128, 1, box );
m_checkIgnoreDataReadErrors = K3bStdGuiItems::ignoreAudioReadErrorsCheckBox( m_groupAdvancedDataOptions );
- m_checkNoCorrection = new QCheckBox( i18n("No error correction"), m_groupAdvancedDataOptions );
+ m_checkNoCorrection = new TQCheckBox( i18n("No error correction"), m_groupAdvancedDataOptions );
- m_groupAdvancedAudioOptions = new QGroupBox( 5, Qt::Vertical, i18n("Audio"), advancedTab, "audio_options" );
+ m_groupAdvancedAudioOptions = new TQGroupBox( 5, Qt::Vertical, i18n("Audio"), advancedTab, "audio_options" );
m_groupAdvancedAudioOptions->setInsideSpacing( spacingHint() );
m_groupAdvancedAudioOptions->setInsideMargin( marginHint() );
- box = new QHBox( m_groupAdvancedAudioOptions );
+ box = new TQHBox( m_groupAdvancedAudioOptions );
box->setSpacing( spacingHint() );
- box->setStretchFactor( new QLabel( i18n("Read retries:"), box ), 1 );
- m_spinAudioRetries = new QSpinBox( 1, 128, 1, box );
+ box->setStretchFactor( new TQLabel( i18n("Read retries:"), box ), 1 );
+ m_spinAudioRetries = new TQSpinBox( 1, 128, 1, box );
m_checkIgnoreAudioReadErrors = K3bStdGuiItems::ignoreAudioReadErrorsCheckBox( m_groupAdvancedAudioOptions );
- box = new QHBox( m_groupAdvancedAudioOptions );
+ box = new TQHBox( m_groupAdvancedAudioOptions );
box->setSpacing( spacingHint() );
- box->setStretchFactor(new QLabel( i18n("Paranoia mode:"), box ), 1 );
+ box->setStretchFactor(new TQLabel( i18n("Paranoia mode:"), box ), 1 );
m_comboParanoiaMode = K3bStdGuiItems::paranoiaModeComboBox( box );
- m_checkReadCdText = new QCheckBox( i18n("Copy CD-Text"), m_groupAdvancedAudioOptions );
- m_checkPrefereCdText = new QCheckBox( i18n("Prefer CD-Text"), m_groupAdvancedAudioOptions );
+ m_checkReadCdText = new TQCheckBox( i18n("Copy CD-Text"), m_groupAdvancedAudioOptions );
+ m_checkPrefereCdText = new TQCheckBox( i18n("Prefer CD-Text"), m_groupAdvancedAudioOptions );
advancedTabGrid->addWidget( m_groupAdvancedDataOptions, 0, 1 );
advancedTabGrid->addWidget( m_groupAdvancedAudioOptions, 0, 0 );
@@ -195,38 +195,38 @@ K3bCdCopyDialog::K3bCdCopyDialog( QWidget *parent, const char *name, bool modal
mainGrid->setRowStretch( 2, 1 );
- connect( m_comboSourceDevice, SIGNAL(selectionChanged(K3bDevice::Device*)), this, SLOT(slotToggleAll()) );
- connect( m_comboSourceDevice, SIGNAL(selectionChanged(K3bDevice::Device*)),
- this, SLOT(slotSourceMediumChanged(K3bDevice::Device*)) );
- connect( m_writerSelectionWidget, SIGNAL(writerChanged()), this, SLOT(slotToggleAll()) );
- connect( m_writerSelectionWidget, SIGNAL(writerChanged(K3bDevice::Device*)),
- m_writingModeWidget, SLOT(setDevice(K3bDevice::Device*)) );
- connect( m_writingModeWidget, SIGNAL(writingModeChanged(int)), this, SLOT(slotToggleAll()) );
- connect( m_checkCacheImage, SIGNAL(toggled(bool)), this, SLOT(slotToggleAll()) );
- connect( m_checkSimulate, SIGNAL(toggled(bool)), this, SLOT(slotToggleAll()) );
- connect( m_checkOnlyCreateImage, SIGNAL(toggled(bool)), this, SLOT(slotToggleAll()) );
- connect( m_comboCopyMode, SIGNAL(activated(int)), this, SLOT(slotToggleAll()) );
- connect( m_checkReadCdText, SIGNAL(toggled(bool)), this, SLOT(slotToggleAll()) );
-
- QToolTip::add( m_checkIgnoreDataReadErrors, i18n("Skip unreadable data sectors") );
- QToolTip::add( m_checkNoCorrection, i18n("Disable the source drive's error correction") );
- QToolTip::add( m_checkPrefereCdText, i18n("Use CD-Text instead of cddb if available.") );
- QToolTip::add( m_checkReadCdText, i18n("Copy CD-Text from the source CD if available.") );
-
- QWhatsThis::add( m_checkNoCorrection, i18n("<p>If this option is checked K3b will disable the "
+ connect( m_comboSourceDevice, TQT_SIGNAL(selectionChanged(K3bDevice::Device*)), this, TQT_SLOT(slotToggleAll()) );
+ connect( m_comboSourceDevice, TQT_SIGNAL(selectionChanged(K3bDevice::Device*)),
+ this, TQT_SLOT(slotSourceMediumChanged(K3bDevice::Device*)) );
+ connect( m_writerSelectionWidget, TQT_SIGNAL(writerChanged()), this, TQT_SLOT(slotToggleAll()) );
+ connect( m_writerSelectionWidget, TQT_SIGNAL(writerChanged(K3bDevice::Device*)),
+ m_writingModeWidget, TQT_SLOT(setDevice(K3bDevice::Device*)) );
+ connect( m_writingModeWidget, TQT_SIGNAL(writingModeChanged(int)), this, TQT_SLOT(slotToggleAll()) );
+ connect( m_checkCacheImage, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggleAll()) );
+ connect( m_checkSimulate, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggleAll()) );
+ connect( m_checkOnlyCreateImage, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggleAll()) );
+ connect( m_comboCopyMode, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotToggleAll()) );
+ connect( m_checkReadCdText, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggleAll()) );
+
+ TQToolTip::add( m_checkIgnoreDataReadErrors, i18n("Skip unreadable data sectors") );
+ TQToolTip::add( m_checkNoCorrection, i18n("Disable the source drive's error correction") );
+ TQToolTip::add( m_checkPrefereCdText, i18n("Use CD-Text instead of cddb if available.") );
+ TQToolTip::add( m_checkReadCdText, i18n("Copy CD-Text from the source CD if available.") );
+
+ TQWhatsThis::add( m_checkNoCorrection, i18n("<p>If this option is checked K3b will disable the "
"source drive's ECC/EDC error correction. This way sectors "
"that are unreadable by intention can be read."
"<p>This may be useful for cloning CDs with copy "
"protection based on corrupted sectors.") );
- QWhatsThis::add( m_checkReadCdText, i18n("<p>If this option is checked K3b will search for CD-Text on the source CD. "
+ TQWhatsThis::add( m_checkReadCdText, i18n("<p>If this option is checked K3b will search for CD-Text on the source CD. "
"Disable it if your CD drive has problems with reading CD-Text or you want "
"to stick to Cddb info.") );
- QWhatsThis::add( m_checkPrefereCdText, i18n("<p>If this option is checked and K3b finds CD-Text on the source media it will be "
+ TQWhatsThis::add( m_checkPrefereCdText, i18n("<p>If this option is checked and K3b finds CD-Text on the source media it will be "
"copied to the resulting CD ignoring any potentially existing Cddb entries.") );
- QWhatsThis::add( m_checkIgnoreDataReadErrors, i18n("<p>If this option is checked and K3b is not able to read a data sector from the "
+ TQWhatsThis::add( m_checkIgnoreDataReadErrors, i18n("<p>If this option is checked and K3b is not able to read a data sector from the "
"source CD/DVD it will be replaced with zeros on the resulting copy.") );
- QWhatsThis::add( m_comboCopyMode,
+ TQWhatsThis::add( m_comboCopyMode,
"<p><b>" + i18n("Normal Copy") + "</b>"
+ i18n("<p>This is the normal copy mode recommended for most CD types. "
"It allows copying Audio CDs, multi and single session Data CDs, and "
@@ -293,23 +293,23 @@ void K3bCdCopyDialog::slotStartClicked()
// check for m_tempDirSelectionWidget->tempPath() and
// m_tempDirSelectionWidget-tempPath() + ".toc"
//
- if( QFileInfo( m_tempDirSelectionWidget->tempPath() ).isFile() ) {
+ if( TQFileInfo( m_tempDirSelectionWidget->tempPath() ).isFile() ) {
if( KMessageBox::warningContinueCancel( this,
- i18n("Do you want to overwrite %1?").arg(m_tempDirSelectionWidget->tempPath()),
+ i18n("Do you want to overwrite %1?").tqarg(m_tempDirSelectionWidget->tempPath()),
i18n("File Exists"), i18n("Overwrite") )
!= KMessageBox::Continue )
return;
}
- if( QFileInfo( m_tempDirSelectionWidget->tempPath() + ".toc" ).isFile() ) {
+ if( TQFileInfo( m_tempDirSelectionWidget->tempPath() + ".toc" ).isFile() ) {
if( KMessageBox::warningContinueCancel( this,
- i18n("Do you want to overwrite %1?").arg(m_tempDirSelectionWidget->tempPath() + ".toc"),
+ i18n("Do you want to overwrite %1?").tqarg(m_tempDirSelectionWidget->tempPath() + ".toc"),
i18n("File Exists"), i18n("Overwrite") )
!= KMessageBox::Continue )
return;
}
- K3bCloneJob* job = new K3bCloneJob( dlg, this );
+ K3bCloneJob* job = new K3bCloneJob( dlg, TQT_TQOBJECT(this) );
job->setWriterDevice( m_writerSelectionWidget->writerDevice() );
job->setReaderDevice( m_comboSourceDevice->selectedDevice() );
@@ -325,7 +325,7 @@ void K3bCdCopyDialog::slotStartClicked()
burnJob = job;
}
else {
- K3bCdCopyJob* job = new K3bCdCopyJob( dlg, this );
+ K3bCdCopyJob* job = new K3bCdCopyJob( dlg, TQT_TQOBJECT(this) );
job->setWriterDevice( m_writerSelectionWidget->writerDevice() );
job->setReaderDevice( m_comboSourceDevice->selectedDevice() );
@@ -392,7 +392,7 @@ void K3bCdCopyDialog::toggleAll()
- static_cast<QWidget*>( child( "audio_options" ) )->setDisabled( m_comboCopyMode->currentItem() == 1 );
+ TQT_TQWIDGET( child( "audio_options" ) )->setDisabled( m_comboCopyMode->currentItem() == 1 );
m_checkIgnoreDataReadErrors->setDisabled( m_comboCopyMode->currentItem() == 1 );
@@ -419,7 +419,7 @@ void K3bCdCopyDialog::slotSourceMediumChanged( K3bDevice::Device* dev )
if( k3bappcore->mediaCache()->toc( dev ).contentType() == K3bDevice::DATA ) {
m_tempDirSelectionWidget->setSelectionMode( K3bTempDirSelectionWidget::FILE );
m_tempDirSelectionWidget->setDefaultImageFileName( medium.volumeId().lower()
- + ( medium.toc().count() == 1 ? QString(".iso") : QString::null ) );
+ + ( medium.toc().count() == 1 ? TQString(".iso") : TQString() ) );
}
else {
m_tempDirSelectionWidget->setSelectionMode( K3bTempDirSelectionWidget::DIR );
@@ -502,7 +502,7 @@ void K3bCdCopyDialog::saveUserDefaults( KConfigBase* c )
m_writerSelectionWidget->saveConfig( c );
m_tempDirSelectionWidget->saveConfig( c );
- c->writeEntry( "source_device", m_comboSourceDevice->selectedDevice() ? m_comboSourceDevice->selectedDevice()->devicename() : QString() );
+ c->writeEntry( "source_device", m_comboSourceDevice->selectedDevice() ? m_comboSourceDevice->selectedDevice()->devicename() : TQString() );
c->writeEntry( "copy cdtext", m_checkReadCdText->isChecked() );
c->writeEntry( "prefer cdtext", m_checkPrefereCdText->isChecked() );
@@ -512,7 +512,7 @@ void K3bCdCopyDialog::saveUserDefaults( KConfigBase* c )
c->writeEntry( "data retries", m_spinDataRetries->value() );
c->writeEntry( "audio retries", m_spinAudioRetries->value() );
- QString s;
+ TQString s;
if( m_comboCopyMode->currentItem() == 1 )
s = "clone";
else
diff --git a/src/misc/k3bcdcopydialog.h b/src/misc/k3bcdcopydialog.h
index b7a4bd2..818966c 100644
--- a/src/misc/k3bcdcopydialog.h
+++ b/src/misc/k3bcdcopydialog.h
@@ -31,12 +31,12 @@ namespace K3bDevice {
class K3bWriterSelectionWidget;
class K3bTempDirSelectionWidget;
class K3bMediaSelectionComboBox;
-class QCheckBox;
-class QSpinBox;
-class QComboBox;
+class TQCheckBox;
+class TQSpinBox;
+class TQComboBox;
class K3bWritingModeWidget;
-class QButtonGroup;
-class QGroupBox;
+class TQButtonGroup;
+class TQGroupBox;
/**
@@ -45,9 +45,10 @@ class QGroupBox;
class K3bCdCopyDialog : public K3bInteractionDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bCdCopyDialog(QWidget *parent = 0, const char *name = 0, bool modal = true );
+ K3bCdCopyDialog(TQWidget *tqparent = 0, const char *name = 0, bool modal = true );
~K3bCdCopyDialog();
void setReadingDevice( K3bDevice::Device* );
@@ -72,25 +73,25 @@ class K3bCdCopyDialog : public K3bInteractionDialog
K3bWriterSelectionWidget* m_writerSelectionWidget;
K3bTempDirSelectionWidget* m_tempDirSelectionWidget;
- QCheckBox* m_checkSimulate;
- QCheckBox* m_checkCacheImage;
- QCheckBox* m_checkDeleteImages;
- QCheckBox* m_checkOnlyCreateImage;
- QCheckBox* m_checkReadCdText;
- QCheckBox* m_checkPrefereCdText;
- QCheckBox* m_checkIgnoreDataReadErrors;
- QCheckBox* m_checkIgnoreAudioReadErrors;
- QCheckBox* m_checkNoCorrection;
+ TQCheckBox* m_checkSimulate;
+ TQCheckBox* m_checkCacheImage;
+ TQCheckBox* m_checkDeleteImages;
+ TQCheckBox* m_checkOnlyCreateImage;
+ TQCheckBox* m_checkReadCdText;
+ TQCheckBox* m_checkPrefereCdText;
+ TQCheckBox* m_checkIgnoreDataReadErrors;
+ TQCheckBox* m_checkIgnoreAudioReadErrors;
+ TQCheckBox* m_checkNoCorrection;
K3bMediaSelectionComboBox* m_comboSourceDevice;
- QComboBox* m_comboParanoiaMode;
- QSpinBox* m_spinCopies;
- QSpinBox* m_spinDataRetries;
- QSpinBox* m_spinAudioRetries;
+ TQComboBox* m_comboParanoiaMode;
+ TQSpinBox* m_spinCopies;
+ TQSpinBox* m_spinDataRetries;
+ TQSpinBox* m_spinAudioRetries;
K3bWritingModeWidget* m_writingModeWidget;
- QComboBox* m_comboCopyMode;
+ TQComboBox* m_comboCopyMode;
- QGroupBox* m_groupAdvancedDataOptions;
- QGroupBox* m_groupAdvancedAudioOptions;
+ TQGroupBox* m_groupAdvancedDataOptions;
+ TQGroupBox* m_groupAdvancedAudioOptions;
};
#endif
diff --git a/src/misc/k3bcdimagewritingdialog.cpp b/src/misc/k3bcdimagewritingdialog.cpp
index b071d94..9e3e7e6 100644
--- a/src/misc/k3bcdimagewritingdialog.cpp
+++ b/src/misc/k3bcdimagewritingdialog.cpp
@@ -55,26 +55,26 @@
#include <kinputdialog.h>
#include <kurldrag.h>
-#include <qheader.h>
-#include <qgroupbox.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qcombobox.h>
-#include <qlayout.h>
-#include <qptrlist.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qfont.h>
-#include <qfontmetrics.h>
-#include <qpushbutton.h>
-#include <qtabwidget.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qspinbox.h>
-#include <qmap.h>
-#include <qptrqueue.h>
-#include <qpopupmenu.h>
-#include <qclipboard.h>
+#include <tqheader.h>
+#include <tqgroupbox.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
+#include <tqlayout.h>
+#include <tqptrlist.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqfont.h>
+#include <tqfontmetrics.h>
+#include <tqpushbutton.h>
+#include <tqtabwidget.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqspinbox.h>
+#include <tqmap.h>
+#include <tqptrqueue.h>
+#include <tqpopupmenu.h>
+#include <tqclipboard.h>
class K3bCdImageWritingDialog::Private
@@ -88,22 +88,22 @@ public:
}
K3bListViewItem* md5SumItem;
- QString lastCheckedFile;
+ TQString lastCheckedFile;
K3bMd5Job* md5Job;
bool haveMd5Sum;
int foundImageType;
- QMap<int,int> imageTypeSelectionMap;
- QMap<int,int> imageTypeSelectionMapRev;
- QString imageFile;
- QString tocFile;
+ TQMap<int,int> imageTypeSelectionMap;
+ TQMap<int,int> imageTypeSelectionMapRev;
+ TQString imageFile;
+ TQString tocFile;
- QTabWidget* optionTabbed;
+ TQTabWidget* optionTabbed;
- QWidget* advancedTab;
- QWidget* tempPathTab;
+ TQWidget* advancedTab;
+ TQWidget* tempPathTab;
bool advancedTabVisible;
bool tempPathTabVisible;
@@ -111,8 +111,8 @@ public:
};
-K3bCdImageWritingDialog::K3bCdImageWritingDialog( QWidget* parent, const char* name, bool modal )
- : K3bInteractionDialog( parent, name,
+K3bCdImageWritingDialog::K3bCdImageWritingDialog( TQWidget* tqparent, const char* name, bool modal )
+ : K3bInteractionDialog( tqparent, name,
i18n("Burn CD Image"),
"iso cue toc",
START_BUTTON|CANCEL_BUTTON,
@@ -126,28 +126,28 @@ K3bCdImageWritingDialog::K3bCdImageWritingDialog( QWidget* parent, const char* n
setupGui();
- d->md5Job = new K3bMd5Job( 0, this );
- connect( d->md5Job, SIGNAL(finished(bool)),
- this, SLOT(slotMd5JobFinished(bool)) );
- connect( d->md5Job, SIGNAL(percent(int)),
- this, SLOT(slotMd5JobPercent(int)) );
-
- connect( m_writerSelectionWidget, SIGNAL(writerChanged()),
- this, SLOT(slotToggleAll()) );
- connect( m_writerSelectionWidget, SIGNAL(writingAppChanged(int)),
- this, SLOT(slotToggleAll()) );
- connect( m_writerSelectionWidget, SIGNAL(writerChanged(K3bDevice::Device*)),
- m_writingModeWidget, SLOT(setDevice(K3bDevice::Device*)) );
- connect( m_comboImageType, SIGNAL(activated(int)),
- this, SLOT(slotToggleAll()) );
- connect( m_writingModeWidget, SIGNAL(writingModeChanged(int)),
- this, SLOT(slotToggleAll()) );
- connect( m_editImagePath, SIGNAL(textChanged(const QString&)),
- this, SLOT(slotUpdateImage(const QString&)) );
- connect( m_checkDummy, SIGNAL(toggled(bool)),
- this, SLOT(slotToggleAll()) );
- connect( m_checkCacheImage, SIGNAL(toggled(bool)),
- this, SLOT(slotToggleAll()) );
+ d->md5Job = new K3bMd5Job( 0, TQT_TQOBJECT(this) );
+ connect( d->md5Job, TQT_SIGNAL(finished(bool)),
+ this, TQT_SLOT(slotMd5JobFinished(bool)) );
+ connect( d->md5Job, TQT_SIGNAL(percent(int)),
+ this, TQT_SLOT(slotMd5JobPercent(int)) );
+
+ connect( m_writerSelectionWidget, TQT_SIGNAL(writerChanged()),
+ this, TQT_SLOT(slotToggleAll()) );
+ connect( m_writerSelectionWidget, TQT_SIGNAL(writingAppChanged(int)),
+ this, TQT_SLOT(slotToggleAll()) );
+ connect( m_writerSelectionWidget, TQT_SIGNAL(writerChanged(K3bDevice::Device*)),
+ m_writingModeWidget, TQT_SLOT(setDevice(K3bDevice::Device*)) );
+ connect( m_comboImageType, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotToggleAll()) );
+ connect( m_writingModeWidget, TQT_SIGNAL(writingModeChanged(int)),
+ this, TQT_SLOT(slotToggleAll()) );
+ connect( m_editImagePath, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(slotUpdateImage(const TQString&)) );
+ connect( m_checkDummy, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotToggleAll()) );
+ connect( m_checkCacheImage, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotToggleAll()) );
}
@@ -165,8 +165,8 @@ void K3bCdImageWritingDialog::init()
// last written image because that's what most users want
KConfig* c = k3bcore->config();
c->setGroup( configGroup() );
- QString image = c->readPathEntry( "last written image" );
- if( QFile::exists( image ) )
+ TQString image = c->readPathEntry( "last written image" );
+ if( TQFile::exists( image ) )
m_editImagePath->setURL( image );
}
}
@@ -174,11 +174,11 @@ void K3bCdImageWritingDialog::init()
void K3bCdImageWritingDialog::setupGui()
{
- QWidget* frame = mainWidget();
+ TQWidget* frame = mainWidget();
// image
// -----------------------------------------------------------------------
- QGroupBox* groupImageUrl = new QGroupBox( 1, Qt::Horizontal, i18n("Image to Burn"), frame );
+ TQGroupBox* groupImageUrl = new TQGroupBox( 1, Qt::Horizontal, i18n("Image to Burn"), frame );
m_editImagePath = new KURLRequester( groupImageUrl );
m_editImagePath->setMode( KFile::File|KFile::ExistingOnly );
m_editImagePath->setCaption( i18n("Choose Image File") );
@@ -192,8 +192,8 @@ void K3bCdImageWritingDialog::setupGui()
+ "\n"
+ i18n("*|All Files") );
- QGroupBox* groupImageType = new QGroupBox( 1, Qt::Horizontal, i18n("Image Type"), frame );
- m_comboImageType = new QComboBox( groupImageType );
+ TQGroupBox* groupImageType = new TQGroupBox( 1, Qt::Horizontal, i18n("Image Type"), frame );
+ m_comboImageType = new TQComboBox( groupImageType );
m_comboImageType->insertItem( i18n("Auto Detection") );
m_comboImageType->insertItem( i18n("ISO9660 Image") );
m_comboImageType->insertItem( i18n("Cue/Bin Image") );
@@ -220,12 +220,12 @@ void K3bCdImageWritingDialog::setupGui()
m_infoView->header()->hide();
m_infoView->setNoItemText( i18n("No image file selected") );
m_infoView->setSorting( -1 );
- m_infoView->setAlternateBackground( QColor() );
+ m_infoView->setAlternateBackground( TQColor() );
m_infoView->setFullWidth(true);
- m_infoView->setSelectionMode( QListView::NoSelection );
+ m_infoView->setSelectionMode( TQListView::NoSelection );
- connect( m_infoView, SIGNAL(contextMenu(KListView*, QListViewItem*, const QPoint&)),
- this, SLOT(slotContextMenu(KListView*, QListViewItem*, const QPoint&)) );
+ connect( m_infoView, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
+ this, TQT_SLOT(slotContextMenu(KListView*, TQListViewItem*, const TQPoint&)) );
m_writerSelectionWidget = new K3bWriterSelectionWidget( frame );
@@ -234,32 +234,32 @@ void K3bCdImageWritingDialog::setupGui()
// options
// -----------------------------------------------------------------------
- d->optionTabbed = new QTabWidget( frame );
+ d->optionTabbed = new TQTabWidget( frame );
- QWidget* optionTab = new QWidget( d->optionTabbed );
- QGridLayout* optionTabLayout = new QGridLayout( optionTab );
- optionTabLayout->setAlignment( Qt::AlignTop );
+ TQWidget* optionTab = new TQWidget( d->optionTabbed );
+ TQGridLayout* optionTabLayout = new TQGridLayout( optionTab );
+ optionTabLayout->tqsetAlignment( TQt::AlignTop );
optionTabLayout->setSpacing( spacingHint() );
optionTabLayout->setMargin( marginHint() );
- QGroupBox* writingModeGroup = new QGroupBox( 1, Vertical, i18n("Writing Mode"), optionTab );
+ TQGroupBox* writingModeGroup = new TQGroupBox( 1,Qt::Vertical, i18n("Writing Mode"), optionTab );
writingModeGroup->setInsideMargin( marginHint() );
m_writingModeWidget = new K3bWritingModeWidget( writingModeGroup );
// copies --------
- QGroupBox* groupCopies = new QGroupBox( 2, Qt::Horizontal, i18n("Copies"), optionTab );
+ TQGroupBox* groupCopies = new TQGroupBox( 2, Qt::Horizontal, i18n("Copies"), optionTab );
groupCopies->setInsideSpacing( spacingHint() );
groupCopies->setInsideMargin( marginHint() );
- QLabel* pixLabel = new QLabel( groupCopies );
+ TQLabel* pixLabel = new TQLabel( groupCopies );
pixLabel->setPixmap( SmallIcon( "cdcopy", KIcon::SizeMedium ) );
pixLabel->setScaledContents( false );
- m_spinCopies = new QSpinBox( groupCopies );
+ m_spinCopies = new TQSpinBox( groupCopies );
m_spinCopies->setMinValue( 1 );
m_spinCopies->setMaxValue( 999 );
// -------- copies
- QGroupBox* optionGroup = new QGroupBox( 3, Vertical, i18n("Settings"), optionTab );
+ TQGroupBox* optionGroup = new TQGroupBox( 3,Qt::Vertical, i18n("Settings"), optionTab );
optionGroup->setInsideMargin( marginHint() );
optionGroup->setInsideSpacing( spacingHint() );
m_checkDummy = K3bStdGuiItems::simulateCheckbox( optionGroup );
@@ -276,8 +276,8 @@ void K3bCdImageWritingDialog::setupGui()
// image tab ------------------------------------
- d->tempPathTab = new QWidget( d->optionTabbed );
- QGridLayout* imageTabGrid = new QGridLayout( d->tempPathTab );
+ d->tempPathTab = new TQWidget( d->optionTabbed );
+ TQGridLayout* imageTabGrid = new TQGridLayout( d->tempPathTab );
imageTabGrid->setSpacing( spacingHint() );
imageTabGrid->setMargin( marginHint() );
@@ -291,16 +291,16 @@ void K3bCdImageWritingDialog::setupGui()
// advanced ---------------------------------
- d->advancedTab = new QWidget( d->optionTabbed );
- QGridLayout* advancedTabLayout = new QGridLayout( d->advancedTab );
- advancedTabLayout->setAlignment( Qt::AlignTop );
+ d->advancedTab = new TQWidget( d->optionTabbed );
+ TQGridLayout* advancedTabLayout = new TQGridLayout( d->advancedTab );
+ advancedTabLayout->tqsetAlignment( TQt::AlignTop );
advancedTabLayout->setSpacing( spacingHint() );
advancedTabLayout->setMargin( marginHint() );
m_dataModeWidget = new K3bDataModeWidget( d->advancedTab );
m_checkNoFix = K3bStdGuiItems::startMultisessionCheckBox( d->advancedTab );
- advancedTabLayout->addWidget( new QLabel( i18n("Data mode:"), d->advancedTab ), 0, 0 );
+ advancedTabLayout->addWidget( new TQLabel( i18n("Data mode:"), d->advancedTab ), 0, 0 );
advancedTabLayout->addWidget( m_dataModeWidget, 0, 1 );
advancedTabLayout->addMultiCellWidget( m_checkNoFix, 1, 1, 0, 2 );
advancedTabLayout->setRowStretch( 2, 1 );
@@ -313,7 +313,7 @@ void K3bCdImageWritingDialog::setupGui()
- QGridLayout* grid = new QGridLayout( frame );
+ TQGridLayout* grid = new TQGridLayout( frame );
grid->setSpacing( spacingHint() );
grid->setMargin( 0 );
@@ -354,7 +354,7 @@ void K3bCdImageWritingDialog::slotStartClicked()
switch( currentImageType() ) {
case IMAGE_CDRECORD_CLONE:
{
- K3bCloneJob* _job = new K3bCloneJob( &dlg, this );
+ K3bCloneJob* _job = new K3bCloneJob( &dlg, TQT_TQOBJECT(this) );
_job->setWriterDevice( m_writerSelectionWidget->writerDevice() );
_job->setImagePath( d->imageFile );
_job->setSimulate( m_checkDummy->isChecked() );
@@ -368,7 +368,7 @@ void K3bCdImageWritingDialog::slotStartClicked()
case IMAGE_AUDIO_CUE:
{
- K3bAudioCueFileWritingJob* job_ = new K3bAudioCueFileWritingJob( &dlg, this );
+ K3bAudioCueFileWritingJob* job_ = new K3bAudioCueFileWritingJob( &dlg, TQT_TQOBJECT(this) );
job_->setBurnDevice( m_writerSelectionWidget->writerDevice() );
job_->setSpeed( m_writerSelectionWidget->writerSpeed() );
@@ -387,7 +387,7 @@ void K3bCdImageWritingDialog::slotStartClicked()
// for now the K3bBinImageWritingJob decides if it's a toc or a cue file
case IMAGE_CDRDAO_TOC:
{
- K3bBinImageWritingJob* job_ = new K3bBinImageWritingJob( &dlg, this );
+ K3bBinImageWritingJob* job_ = new K3bBinImageWritingJob( &dlg, TQT_TQOBJECT(this) );
job_->setWriter( m_writerSelectionWidget->writerDevice() );
job_->setSpeed( m_writerSelectionWidget->writerSpeed() );
@@ -456,9 +456,9 @@ void K3bCdImageWritingDialog::slotStartClicked()
}
-void K3bCdImageWritingDialog::slotUpdateImage( const QString& )
+void K3bCdImageWritingDialog::slotUpdateImage( const TQString& )
{
- QString path = imagePath();
+ TQString path = imagePath();
// check the image types
@@ -471,7 +471,7 @@ void K3bCdImageWritingDialog::slotUpdateImage( const QString& )
d->tocFile.truncate(0);
d->imageFile.truncate(0);
- QFileInfo info( path );
+ TQFileInfo info( path );
if( info.isFile() ) {
// ------------------------------------------------
@@ -568,14 +568,14 @@ void K3bCdImageWritingDialog::slotUpdateImage( const QString& )
if( d->foundImageType == IMAGE_UNKNOWN ) {
K3bListViewItem* item = new K3bListViewItem( m_infoView, m_infoView->lastItem(),
i18n("Seems not to be a usable image") );
- item->setForegroundColor( 0, Qt::red );
+ item->setForegroundColor( 0, TQt::red );
item->setPixmap( 0, SmallIcon( "stop") );
}
}
else {
K3bListViewItem* item = new K3bListViewItem( m_infoView, m_infoView->lastItem(),
i18n("File not found") );
- item->setForegroundColor( 0, Qt::red );
+ item->setForegroundColor( 0, TQt::red );
item->setPixmap( 0, SmallIcon( "stop") );
}
@@ -588,117 +588,117 @@ void K3bCdImageWritingDialog::createIso9660InfoItems( K3bIso9660* isoF )
K3bListViewItem* isoRootItem = new K3bListViewItem( m_infoView, m_infoView->lastItem(),
i18n("Detected:"),
i18n("Iso9660 image") );
- isoRootItem->setForegroundColor( 0, palette().disabled().foreground() );
+ isoRootItem->setForegroundColor( 0, tqpalette().disabled().foreground() );
isoRootItem->setPixmap( 0, SmallIcon( "cdimage") );
KIO::filesize_t size = K3b::filesize( KURL::fromPathOrURL(isoF->fileName()) );
K3bListViewItem* item = new K3bListViewItem( isoRootItem, m_infoView->lastItem(),
i18n("Filesize:"),
KIO::convertSize( size ) );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
item = new K3bListViewItem( isoRootItem,
m_infoView->lastItem(),
i18n("System Id:"),
isoF->primaryDescriptor().systemId.isEmpty()
- ? QString("-")
+ ? TQString("-")
: isoF->primaryDescriptor().systemId );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
item = new K3bListViewItem( isoRootItem,
m_infoView->lastItem(),
i18n("Volume Id:"),
isoF->primaryDescriptor().volumeId.isEmpty()
- ? QString("-")
+ ? TQString("-")
: isoF->primaryDescriptor().volumeId );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
item = new K3bListViewItem( isoRootItem,
m_infoView->lastItem(),
i18n("Volume Set Id:"),
isoF->primaryDescriptor().volumeSetId.isEmpty()
- ? QString("-")
+ ? TQString("-")
: isoF->primaryDescriptor().volumeSetId );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
item = new K3bListViewItem( isoRootItem,
m_infoView->lastItem(),
i18n("Publisher Id:"),
isoF->primaryDescriptor().publisherId.isEmpty()
- ? QString("-")
+ ? TQString("-")
: isoF->primaryDescriptor().publisherId );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
item = new K3bListViewItem( isoRootItem,
m_infoView->lastItem(),
i18n("Preparer Id:"),
isoF->primaryDescriptor().preparerId.isEmpty()
- ? QString("-") : isoF->primaryDescriptor().preparerId );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ ? TQString("-") : isoF->primaryDescriptor().preparerId );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
item = new K3bListViewItem( isoRootItem,
m_infoView->lastItem(),
i18n("Application Id:"),
isoF->primaryDescriptor().applicationId.isEmpty()
- ? QString("-")
+ ? TQString("-")
: isoF->primaryDescriptor().applicationId );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
isoRootItem->setOpen( true );
}
-void K3bCdImageWritingDialog::createCdrecordCloneItems( const QString& tocFile, const QString& imageFile )
+void K3bCdImageWritingDialog::createCdrecordCloneItems( const TQString& tocFile, const TQString& imageFile )
{
K3bListViewItem* isoRootItem = new K3bListViewItem( m_infoView, m_infoView->lastItem(),
i18n("Detected:"),
i18n("Cdrecord clone image") );
- isoRootItem->setForegroundColor( 0, palette().disabled().foreground() );
+ isoRootItem->setForegroundColor( 0, tqpalette().disabled().foreground() );
isoRootItem->setPixmap( 0, SmallIcon( "cdimage") );
K3bListViewItem* item = new K3bListViewItem( isoRootItem, m_infoView->lastItem(),
i18n("Filesize:"), KIO::convertSize( K3b::filesize(KURL::fromPathOrURL(imageFile)) ) );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
item = new K3bListViewItem( isoRootItem,
m_infoView->lastItem(),
i18n("Image file:"),
imageFile );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
item = new K3bListViewItem( isoRootItem,
m_infoView->lastItem(),
i18n("TOC file:"),
tocFile );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
isoRootItem->setOpen( true );
}
-void K3bCdImageWritingDialog::createCueBinItems( const QString& cueFile, const QString& imageFile )
+void K3bCdImageWritingDialog::createCueBinItems( const TQString& cueFile, const TQString& imageFile )
{
K3bListViewItem* isoRootItem = new K3bListViewItem( m_infoView, m_infoView->lastItem(),
i18n("Detected:"),
i18n("Cue/bin image") );
- isoRootItem->setForegroundColor( 0, palette().disabled().foreground() );
+ isoRootItem->setForegroundColor( 0, tqpalette().disabled().foreground() );
isoRootItem->setPixmap( 0, SmallIcon( "cdimage") );
K3bListViewItem* item = new K3bListViewItem( isoRootItem, m_infoView->lastItem(),
i18n("Filesize:"), KIO::convertSize( K3b::filesize(KURL::fromPathOrURL(imageFile)) ) );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
item = new K3bListViewItem( isoRootItem,
m_infoView->lastItem(),
i18n("Image file:"),
imageFile );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
item = new K3bListViewItem( isoRootItem,
m_infoView->lastItem(),
i18n("Cue file:"),
cueFile );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
isoRootItem->setOpen( true );
}
@@ -709,7 +709,7 @@ void K3bCdImageWritingDialog::createAudioCueItems( const K3bCueFileParser& cp )
K3bListViewItem* rootItem = new K3bListViewItem( m_infoView, m_infoView->lastItem(),
i18n("Detected:"),
i18n("Audio Cue Image") );
- rootItem->setForegroundColor( 0, palette().disabled().foreground() );
+ rootItem->setForegroundColor( 0, tqpalette().disabled().foreground() );
rootItem->setPixmap( 0, SmallIcon( "sound") );
K3bListViewItem* trackParent = new K3bListViewItem( rootItem,
@@ -717,10 +717,10 @@ void K3bCdImageWritingDialog::createAudioCueItems( const K3bCueFileParser& cp )
cp.toc().length().toString() );
if( !cp.cdText().isEmpty() )
trackParent->setText( 1,
- QString("%1 (%2 - %3)")
- .arg(trackParent->text(1))
- .arg(cp.cdText().performer())
- .arg(cp.cdText().title()) );
+ TQString("%1 (%2 - %3)")
+ .tqarg(trackParent->text(1))
+ .tqarg(cp.cdText().performer())
+ .tqarg(cp.cdText().title()) );
unsigned int i = 1;
for( K3bDevice::Toc::const_iterator it = cp.toc().begin();
@@ -728,17 +728,17 @@ void K3bCdImageWritingDialog::createAudioCueItems( const K3bCueFileParser& cp )
K3bListViewItem* trackItem =
new K3bListViewItem( trackParent, m_infoView->lastItem(),
- i18n("Track") + " " + QString::number(i).rightJustify( 2, '0' ),
+ i18n("Track") + " " + TQString::number(i).rightJustify( 2, '0' ),
" " + ( i < cp.toc().count()
? (*it).length().toString()
- : QString("??:??:??") ) );
+ : TQString("??:??:??") ) );
if( !cp.cdText().isEmpty() && !cp.cdText()[i-1].isEmpty() )
trackItem->setText( 1,
- QString("%1 (%2 - %3)")
- .arg(trackItem->text(1))
- .arg(cp.cdText()[i-1].performer())
- .arg(cp.cdText()[i-1].title()) );
+ TQString("%1 (%2 - %3)")
+ .tqarg(trackItem->text(1))
+ .tqarg(cp.cdText()[i-1].performer())
+ .tqarg(cp.cdText()[i-1].title()) );
++i;
}
@@ -753,7 +753,7 @@ void K3bCdImageWritingDialog::toggleAll()
// enable the Write-Button if we found a valid image or the user forced an image type
setButtonEnabled( START_BUTTON, m_writerSelectionWidget->writerDevice()
&& currentImageType() != IMAGE_UNKNOWN
- && QFile::exists( imagePath() ) );
+ && TQFile::exists( imagePath() ) );
// cdrecord clone and cue both need DAO
if( m_writerSelectionWidget->writingApp() != K3b::CDRDAO
@@ -815,8 +815,8 @@ void K3bCdImageWritingDialog::toggleAll()
if( item )
item->setForegroundColor( 1,
currentImageType() != d->foundImageType
- ? Qt::red
- : m_infoView->colorGroup().foreground() );
+ ? TQt::red
+ : m_infoView->tqcolorGroup().foreground() );
}
@@ -831,7 +831,7 @@ void K3bCdImageWritingDialog::setImage( const KURL& url )
}
-void K3bCdImageWritingDialog::calculateMd5Sum( const QString& file )
+void K3bCdImageWritingDialog::calculateMd5Sum( const TQString& file )
{
d->haveMd5Sum = false;
@@ -839,7 +839,7 @@ void K3bCdImageWritingDialog::calculateMd5Sum( const QString& file )
d->md5SumItem = new K3bListViewItem( m_infoView, m_infoView->firstChild() );
d->md5SumItem->setText( 0, i18n("Md5 Sum:") );
- d->md5SumItem->setForegroundColor( 0, palette().disabled().foreground() );
+ d->md5SumItem->setForegroundColor( 0, tqpalette().disabled().foreground() );
d->md5SumItem->setProgress( 1, 0 );
d->md5SumItem->setPixmap( 0, SmallIcon( "exec") );
@@ -866,7 +866,7 @@ void K3bCdImageWritingDialog::slotMd5JobFinished( bool success )
d->haveMd5Sum = true;
}
else {
- d->md5SumItem->setForegroundColor( 1, Qt::red );
+ d->md5SumItem->setForegroundColor( 1, TQt::red );
if( d->md5Job->hasBeenCanceled() )
d->md5SumItem->setText( 1, i18n("Calculation cancelled") );
else
@@ -879,12 +879,12 @@ void K3bCdImageWritingDialog::slotMd5JobFinished( bool success )
}
-void K3bCdImageWritingDialog::slotContextMenu( KListView*, QListViewItem*, const QPoint& pos )
+void K3bCdImageWritingDialog::slotContextMenu( KListView*, TQListViewItem*, const TQPoint& pos )
{
if( !d->haveMd5Sum )
return;
- QPopupMenu popup;
+ TQPopupMenu popup;
int copyItem = popup.insertItem( i18n("Copy checksum to clipboard") );
int compareItem = popup.insertItem( i18n("Compare checksum...") );
@@ -892,22 +892,22 @@ void K3bCdImageWritingDialog::slotContextMenu( KListView*, QListViewItem*, const
if( r == compareItem ) {
bool ok;
- QString md5sumToCompare = KInputDialog::getText( i18n("MD5 Sum Check"),
+ TQString md5sumToCompare = KInputDialog::getText( i18n("MD5 Sum Check"),
i18n("Please insert the MD5 Sum to compare:"),
- QString::null,
+ TQString(),
&ok,
this );
if( ok ) {
if( md5sumToCompare.lower().utf8() == d->md5Job->hexDigest().lower() )
- KMessageBox::information( this, i18n("The MD5 Sum of %1 equals the specified.").arg(imagePath()),
+ KMessageBox::information( this, i18n("The MD5 Sum of %1 equals the specified.").tqarg(imagePath()),
i18n("MD5 Sums Equal") );
else
- KMessageBox::sorry( this, i18n("The MD5 Sum of %1 differs from the specified.").arg(imagePath()),
+ KMessageBox::sorry( this, i18n("The MD5 Sum of %1 differs from the specified.").tqarg(imagePath()),
i18n("MD5 Sums Differ") );
}
}
else if( r == copyItem ) {
- QApplication::clipboard()->setText( d->md5Job->hexDigest().lower(), QClipboard::Clipboard );
+ TQApplication::tqclipboard()->setText( d->md5Job->hexDigest().lower(), TQClipboard::Clipboard );
}
}
@@ -928,12 +928,12 @@ void K3bCdImageWritingDialog::loadUserDefaults( KConfigBase* c )
m_writerSelectionWidget->loadConfig( c );
if( !d->imageForced ) {
- QString image = c->readPathEntry( "image path", c->readPathEntry( "last written image" ) );
- if( QFile::exists( image ) )
+ TQString image = c->readPathEntry( "image path", c->readPathEntry( "last written image" ) );
+ if( TQFile::exists( image ) )
m_editImagePath->setURL( image );
}
- QString imageType = c->readEntry( "image type", "auto" );
+ TQString imageType = c->readEntry( "image type", "auto" );
int x = 0;
if( imageType == "iso9660" )
x = d->imageTypeSelectionMapRev[IMAGE_ISO];
@@ -970,7 +970,7 @@ void K3bCdImageWritingDialog::saveUserDefaults( KConfigBase* c )
c->writeEntry( "copies", m_spinCopies->value() );
- QString imageType;
+ TQString imageType;
if( m_comboImageType->currentItem() == 0 )
imageType = "auto";
else {
@@ -1023,19 +1023,19 @@ int K3bCdImageWritingDialog::currentImageType()
}
-QString K3bCdImageWritingDialog::imagePath() const
+TQString K3bCdImageWritingDialog::imagePath() const
{
return K3b::convertToLocalUrl( KURL::fromPathOrURL( m_editImagePath->url() ) ).path();
}
-void K3bCdImageWritingDialog::dragEnterEvent( QDragEnterEvent* e )
+void K3bCdImageWritingDialog::dragEnterEvent( TQDragEnterEvent* e )
{
e->accept( KURLDrag::canDecode(e) );
}
-void K3bCdImageWritingDialog::dropEvent( QDropEvent* e )
+void K3bCdImageWritingDialog::dropEvent( TQDropEvent* e )
{
KURL::List urls;
KURLDrag::decode( e, urls );
diff --git a/src/misc/k3bcdimagewritingdialog.h b/src/misc/k3bcdimagewritingdialog.h
index 143f023..773697b 100644
--- a/src/misc/k3bcdimagewritingdialog.h
+++ b/src/misc/k3bcdimagewritingdialog.h
@@ -20,9 +20,9 @@
#include <k3binteractiondialog.h>
-class QCheckBox;
+class TQCheckBox;
class K3bWriterSelectionWidget;
-class QLabel;
+class TQLabel;
class KURL;
class KActiveLabel;
class KProgress;
@@ -31,15 +31,15 @@ class K3bWritingModeWidget;
class K3bTempDirSelectionWidget;
class KURLRequester;
class K3bListView;
-class QSpinBox;
-class QComboBox;
+class TQSpinBox;
+class TQComboBox;
class K3bIso9660;
class K3bCueFileParser;
-class QDragEnterEvent;
-class QDropEvent;
+class TQDragEnterEvent;
+class TQDropEvent;
class KListView;
-class QListViewItem;
-class QPoint;
+class TQListViewItem;
+class TQPoint;
/**
@@ -48,9 +48,10 @@ class QPoint;
class K3bCdImageWritingDialog : public K3bInteractionDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bCdImageWritingDialog( QWidget* = 0, const char* = 0, bool = true );
+ K3bCdImageWritingDialog( TQWidget* = 0, const char* = 0, bool = true );
~K3bCdImageWritingDialog();
void setImage( const KURL& url );
@@ -60,18 +61,18 @@ class K3bCdImageWritingDialog : public K3bInteractionDialog
void slotMd5JobPercent( int );
void slotMd5JobFinished( bool );
- void slotContextMenu( KListView*, QListViewItem*, const QPoint& pos );
+ void slotContextMenu( KListView*, TQListViewItem*, const TQPoint& pos );
- void slotUpdateImage( const QString& );
+ void slotUpdateImage( const TQString& );
protected:
void loadUserDefaults( KConfigBase* );
void saveUserDefaults( KConfigBase* );
void loadK3bDefaults();
- void calculateMd5Sum( const QString& );
- void dragEnterEvent( QDragEnterEvent* );
- void dropEvent( QDropEvent* );
+ void calculateMd5Sum( const TQString& );
+ void dragEnterEvent( TQDragEnterEvent* );
+ void dropEvent( TQDropEvent* );
void init();
@@ -88,23 +89,23 @@ class K3bCdImageWritingDialog : public K3bInteractionDialog
void setupGui();
void createIso9660InfoItems( K3bIso9660* );
- void createCdrecordCloneItems( const QString&, const QString& );
- void createCueBinItems( const QString&, const QString& );
+ void createCdrecordCloneItems( const TQString&, const TQString& );
+ void createCueBinItems( const TQString&, const TQString& );
void createAudioCueItems( const K3bCueFileParser& cp );
int currentImageType();
- QString imagePath() const;
+ TQString imagePath() const;
K3bWriterSelectionWidget* m_writerSelectionWidget;
- QCheckBox* m_checkDummy;
- QCheckBox* m_checkNoFix;
- QCheckBox* m_checkCacheImage;
- QCheckBox* m_checkVerify;
+ TQCheckBox* m_checkDummy;
+ TQCheckBox* m_checkNoFix;
+ TQCheckBox* m_checkCacheImage;
+ TQCheckBox* m_checkVerify;
K3bDataModeWidget* m_dataModeWidget;
K3bWritingModeWidget* m_writingModeWidget;
- QSpinBox* m_spinCopies;
+ TQSpinBox* m_spinCopies;
KURLRequester* m_editImagePath;
- QComboBox* m_comboImageType;
+ TQComboBox* m_comboImageType;
K3bListView* m_infoView;
K3bTempDirSelectionWidget* m_tempDirSelectionWidget;
diff --git a/src/misc/k3bdvdcopydialog.cpp b/src/misc/k3bdvdcopydialog.cpp
index f93abba..999dc3a 100644
--- a/src/misc/k3bdvdcopydialog.cpp
+++ b/src/misc/k3bdvdcopydialog.cpp
@@ -31,18 +31,18 @@
#include <k3bmediacache.h>
#include <k3biso9660.h>
-#include <qlayout.h>
-#include <qgroupbox.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qtabwidget.h>
-#include <qspinbox.h>
-#include <qptrlist.h>
-#include <qfile.h>
-#include <qpushbutton.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qhbox.h>
+#include <tqlayout.h>
+#include <tqgroupbox.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqtabwidget.h>
+#include <tqspinbox.h>
+#include <tqptrlist.h>
+#include <tqfile.h>
+#include <tqpushbutton.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqhbox.h>
#include <kdebug.h>
#include <klocale.h>
@@ -55,8 +55,8 @@
-K3bDvdCopyDialog::K3bDvdCopyDialog( QWidget* parent, const char* name, bool modal )
- : K3bInteractionDialog( parent, name,
+K3bDvdCopyDialog::K3bDvdCopyDialog( TQWidget* tqparent, const char* name, bool modal )
+ : K3bInteractionDialog( tqparent, name,
i18n("DVD Copy"),
i18n("No video transcoding!"),
START_BUTTON|CANCEL_BUTTON,
@@ -64,12 +64,12 @@ K3bDvdCopyDialog::K3bDvdCopyDialog( QWidget* parent, const char* name, bool moda
"default dvd copy settings",
modal )
{
- QWidget* w = mainWidget();
+ TQWidget* w = mainWidget();
//
// Source group
// //////////////////////////////////////////////////////////////////////////
- QGroupBox* groupSource = new QGroupBox( 1, Qt::Vertical, i18n("Source Medium"), w );
+ TQGroupBox* groupSource = new TQGroupBox( 1, Qt::Vertical, i18n("Source Medium"), w );
groupSource->setInsideSpacing( spacingHint() );
groupSource->setInsideMargin( marginHint() );
m_comboSourceDevice = new K3bMediaSelectionComboBox( groupSource );
@@ -89,19 +89,19 @@ K3bDvdCopyDialog::K3bDvdCopyDialog( QWidget* parent, const char* name, bool moda
//
// Option tab
// //////////////////////////////////////////////////////////////////////////
- QTabWidget* tabWidget = new QTabWidget( w );
+ TQTabWidget* tabWidget = new TQTabWidget( w );
// option tab --------------------
- QWidget* optionTab = new QWidget( tabWidget );
- QGridLayout* optionTabGrid = new QGridLayout( optionTab );
+ TQWidget* optionTab = new TQWidget( tabWidget );
+ TQGridLayout* optionTabGrid = new TQGridLayout( optionTab );
optionTabGrid->setSpacing( spacingHint() );
optionTabGrid->setMargin( marginHint() );
- QGroupBox* groupWritingMode = new QGroupBox( 1, Qt::Vertical, i18n("Writing Mode"), optionTab );
+ TQGroupBox* groupWritingMode = new TQGroupBox( 1, Qt::Vertical, i18n("Writing Mode"), optionTab );
groupWritingMode->setInsideMargin( marginHint() );
m_writingModeWidget = new K3bWritingModeWidget( groupWritingMode );
- QGroupBox* groupOptions = new QGroupBox( 5, Qt::Vertical, i18n("Settings"), optionTab );
+ TQGroupBox* groupOptions = new TQGroupBox( 5, Qt::Vertical, i18n("Settings"), optionTab );
groupOptions->setInsideSpacing( spacingHint() );
groupOptions->setInsideMargin( marginHint() );
m_checkSimulate = K3bStdGuiItems::simulateCheckbox( groupOptions );
@@ -110,13 +110,13 @@ K3bDvdCopyDialog::K3bDvdCopyDialog( QWidget* parent, const char* name, bool moda
m_checkDeleteImages = K3bStdGuiItems::removeImagesCheckbox( groupOptions );
m_checkVerifyData = K3bStdGuiItems::verifyCheckBox( groupOptions );
- QGroupBox* groupCopies = new QGroupBox( 2, Qt::Horizontal, i18n("Copies"), optionTab );
+ TQGroupBox* groupCopies = new TQGroupBox( 2, Qt::Horizontal, i18n("Copies"), optionTab );
groupCopies->setInsideSpacing( spacingHint() );
groupCopies->setInsideMargin( marginHint() );
- QLabel* pixLabel = new QLabel( groupCopies );
+ TQLabel* pixLabel = new TQLabel( groupCopies );
pixLabel->setPixmap( SmallIcon( "cdcopy", KIcon::SizeMedium ) );
pixLabel->setScaledContents( false );
- m_spinCopies = new QSpinBox( groupCopies );
+ m_spinCopies = new TQSpinBox( groupCopies );
m_spinCopies->setMinValue( 1 );
m_spinCopies->setMaxValue( 999 );
@@ -132,8 +132,8 @@ K3bDvdCopyDialog::K3bDvdCopyDialog( QWidget* parent, const char* name, bool moda
//
// Image tab
// //////////////////////////////////////////////////////////////////////////
- QWidget* imageTab = new QWidget( tabWidget );
- QGridLayout* imageTabGrid = new QGridLayout( imageTab );
+ TQWidget* imageTab = new TQWidget( tabWidget );
+ TQGridLayout* imageTabGrid = new TQGridLayout( imageTab );
imageTabGrid->setSpacing( spacingHint() );
imageTabGrid->setMargin( marginHint() );
@@ -148,19 +148,19 @@ K3bDvdCopyDialog::K3bDvdCopyDialog( QWidget* parent, const char* name, bool moda
//
// advanced tab ------------------
// //////////////////////////////////////////////////////////////////////////
- QWidget* advancedTab = new QWidget( tabWidget );
- QGridLayout* advancedTabGrid = new QGridLayout( advancedTab );
+ TQWidget* advancedTab = new TQWidget( tabWidget );
+ TQGridLayout* advancedTabGrid = new TQGridLayout( advancedTab );
advancedTabGrid->setSpacing( spacingHint() );
advancedTabGrid->setMargin( marginHint() );
- QGroupBox* groupGeneral = new QGroupBox( 2, Qt::Vertical, i18n("General"), advancedTab );
+ TQGroupBox* groupGeneral = new TQGroupBox( 2, Qt::Vertical, i18n("General"), advancedTab );
groupGeneral->setInsideSpacing( spacingHint() );
groupGeneral->setInsideMargin( marginHint() );
- QHBox* box = new QHBox( groupGeneral );
+ TQHBox* box = new TQHBox( groupGeneral );
box->setSpacing( spacingHint() );
- box->setStretchFactor( new QLabel( i18n("Read retries:"), box ), 1 );
- m_spinRetries = new QSpinBox( 1, 128, 1, box );
- m_checkIgnoreReadErrors = new QCheckBox( i18n("Ignore read errors"), groupGeneral );
+ box->setStretchFactor( new TQLabel( i18n("Read retries:"), box ), 1 );
+ m_spinRetries = new TQSpinBox( 1, 128, 1, box );
+ m_checkIgnoreReadErrors = new TQCheckBox( i18n("Ignore read errors"), groupGeneral );
advancedTabGrid->addWidget( groupGeneral, 0, 0 );
@@ -169,9 +169,9 @@ K3bDvdCopyDialog::K3bDvdCopyDialog( QWidget* parent, const char* name, bool moda
//
- // setup layout
+ // setup tqlayout
// //////////////////////////////////////////////////////////////////////////
- QGridLayout* grid = new QGridLayout( w );
+ TQGridLayout* grid = new TQGridLayout( w );
grid->setMargin( 0 );
grid->setSpacing( spacingHint() );
@@ -190,17 +190,17 @@ K3bDvdCopyDialog::K3bDvdCopyDialog( QWidget* parent, const char* name, bool moda
//
// setup connections
// //////////////////////////////////////////////////////////////////////////
- connect( m_writerSelectionWidget, SIGNAL(writerChanged()), this, SLOT(slotToggleAll()) );
- connect( m_comboSourceDevice, SIGNAL(selectionChanged(K3bDevice::Device*)), this, SLOT(slotToggleAll()) );
- connect( m_comboSourceDevice, SIGNAL(selectionChanged(K3bDevice::Device*)),
- this, SLOT(slotSourceMediumChanged(K3bDevice::Device*)) );
- connect( m_checkSimulate, SIGNAL(toggled(bool)), this, SLOT(slotToggleAll()) );
- connect( m_checkCacheImage, SIGNAL(toggled(bool)), this, SLOT(slotToggleAll()) );
- connect( m_checkOnlyCreateImage, SIGNAL(toggled(bool)), this, SLOT(slotToggleAll()) );
- connect( m_writingModeWidget, SIGNAL(writingModeChanged(int)), this, SLOT(slotToggleAll()) );
-
- QToolTip::add( m_checkIgnoreReadErrors, i18n("Skip unreadable sectors") );
- QWhatsThis::add( m_checkIgnoreReadErrors, i18n("<p>If this option is checked and K3b is not able to read a sector from the "
+ connect( m_writerSelectionWidget, TQT_SIGNAL(writerChanged()), this, TQT_SLOT(slotToggleAll()) );
+ connect( m_comboSourceDevice, TQT_SIGNAL(selectionChanged(K3bDevice::Device*)), this, TQT_SLOT(slotToggleAll()) );
+ connect( m_comboSourceDevice, TQT_SIGNAL(selectionChanged(K3bDevice::Device*)),
+ this, TQT_SLOT(slotSourceMediumChanged(K3bDevice::Device*)) );
+ connect( m_checkSimulate, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggleAll()) );
+ connect( m_checkCacheImage, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggleAll()) );
+ connect( m_checkOnlyCreateImage, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggleAll()) );
+ connect( m_writingModeWidget, TQT_SIGNAL(writingModeChanged(int)), this, TQT_SLOT(slotToggleAll()) );
+
+ TQToolTip::add( m_checkIgnoreReadErrors, i18n("Skip unreadable sectors") );
+ TQWhatsThis::add( m_checkIgnoreReadErrors, i18n("<p>If this option is checked and K3b is not able to read a sector from the "
"source CD/DVD it will be replaced with zeros on the resulting copy.") );
}
@@ -253,7 +253,7 @@ void K3bDvdCopyDialog::slotStartClicked()
dlg = new K3bBurnProgressDialog( kapp->mainWidget() );
}
- K3bDvdCopyJob* job = new K3bDvdCopyJob( dlg, this );
+ K3bDvdCopyJob* job = new K3bDvdCopyJob( dlg, TQT_TQOBJECT(this) );
job->setWriterDevice( m_writerSelectionWidget->writerDevice() );
job->setReaderDevice( m_comboSourceDevice->selectedDevice() );
@@ -315,7 +315,7 @@ void K3bDvdCopyDialog::saveUserDefaults( KConfigBase* c )
m_writingModeWidget->saveConfig( c );
m_tempDirSelectionWidget->saveConfig( c );
- c->writeEntry( "source_device", m_comboSourceDevice->selectedDevice() ? m_comboSourceDevice->selectedDevice()->devicename() : QString() );
+ c->writeEntry( "source_device", m_comboSourceDevice->selectedDevice() ? m_comboSourceDevice->selectedDevice()->devicename() : TQString() );
c->writeEntry( "simulate", m_checkSimulate->isChecked() );
c->writeEntry( "on_the_fly", !m_checkCacheImage->isChecked() );
diff --git a/src/misc/k3bdvdcopydialog.h b/src/misc/k3bdvdcopydialog.h
index be696c4..00436cc 100644
--- a/src/misc/k3bdvdcopydialog.h
+++ b/src/misc/k3bdvdcopydialog.h
@@ -30,17 +30,18 @@ namespace K3bDevice {
class K3bTempDirSelectionWidget;
class K3bWriterSelectionWidget;
class K3bMediaSelectionComboBox;
-class QCheckBox;
-class QSpinBox;
+class TQCheckBox;
+class TQSpinBox;
class K3bWritingModeWidget;
class K3bDvdCopyDialog : public K3bInteractionDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDvdCopyDialog( QWidget* parent = 0, const char* name = 0, bool modal = true );
+ K3bDvdCopyDialog( TQWidget* tqparent = 0, const char* name = 0, bool modal = true );
~K3bDvdCopyDialog();
void setReadingDevice( K3bDevice::Device* );
@@ -65,14 +66,14 @@ class K3bDvdCopyDialog : public K3bInteractionDialog
K3bWriterSelectionWidget* m_writerSelectionWidget;
K3bTempDirSelectionWidget* m_tempDirSelectionWidget;
K3bMediaSelectionComboBox* m_comboSourceDevice;
- QCheckBox* m_checkSimulate;
- QCheckBox* m_checkDeleteImages;
- QCheckBox* m_checkOnlyCreateImage;
- QCheckBox* m_checkCacheImage;
- QCheckBox* m_checkVerifyData;
- QSpinBox* m_spinCopies;
- QSpinBox* m_spinRetries;
- QCheckBox* m_checkIgnoreReadErrors;
+ TQCheckBox* m_checkSimulate;
+ TQCheckBox* m_checkDeleteImages;
+ TQCheckBox* m_checkOnlyCreateImage;
+ TQCheckBox* m_checkCacheImage;
+ TQCheckBox* m_checkVerifyData;
+ TQSpinBox* m_spinCopies;
+ TQSpinBox* m_spinRetries;
+ TQCheckBox* m_checkIgnoreReadErrors;
K3bWritingModeWidget* m_writingModeWidget;
};
diff --git a/src/misc/k3bdvdformattingdialog.cpp b/src/misc/k3bdvdformattingdialog.cpp
index d84c4fc..5289089 100644
--- a/src/misc/k3bdvdformattingdialog.cpp
+++ b/src/misc/k3bdvdformattingdialog.cpp
@@ -29,25 +29,25 @@
#include <kconfig.h>
#include <kapplication.h>
-#include <qgroupbox.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qframe.h>
-#include <qpushbutton.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqgroupbox.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqframe.h>
+#include <tqpushbutton.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
-K3bDvdFormattingDialog::K3bDvdFormattingDialog( QWidget* parent, const char* name, bool modal )
- : K3bInteractionDialog( parent, name,
+K3bDvdFormattingDialog::K3bDvdFormattingDialog( TQWidget* tqparent, const char* name, bool modal )
+ : K3bInteractionDialog( tqparent, name,
i18n("DVD Formatting"),
- i18n("DVD%1RW").arg("±"),
+ i18n("DVD%1RW").tqarg("�"),
START_BUTTON|CANCEL_BUTTON,
START_BUTTON,
"DVD Formatting", // config group
modal )
{
- QWidget* frame = mainWidget();
+ TQWidget* frame = mainWidget();
m_writerSelectionWidget = new K3bWriterSelectionWidget( frame );
m_writerSelectionWidget->setWantedMediumType( K3bDevice::MEDIA_REWRITABLE_DVD );
@@ -58,20 +58,20 @@ K3bDvdFormattingDialog::K3bDvdFormattingDialog( QWidget* parent, const char* nam
m_writerSelectionWidget->setSupportedWritingApps( K3b::DVD_RW_FORMAT );
m_writerSelectionWidget->setForceAutoSpeed(true);
- QGroupBox* groupWritingMode = new QGroupBox( 1, Qt::Vertical, i18n("Writing Mode"), frame );
- groupWritingMode->layout()->setMargin( marginHint() );
- groupWritingMode->layout()->setSpacing( spacingHint() );
+ TQGroupBox* groupWritingMode = new TQGroupBox( 1, Qt::Vertical, i18n("Writing Mode"), frame );
+ groupWritingMode->tqlayout()->setMargin( marginHint() );
+ groupWritingMode->tqlayout()->setSpacing( spacingHint() );
m_writingModeWidget = new K3bWritingModeWidget( K3b::WRITING_MODE_INCR_SEQ|K3b::WRITING_MODE_RES_OVWR,
groupWritingMode );
- QGroupBox* groupOptions = new QGroupBox( 2, Qt::Vertical, i18n("Settings"), frame );
- groupOptions->layout()->setMargin( marginHint() );
- groupOptions->layout()->setSpacing( spacingHint() );
- m_checkForce = new QCheckBox( i18n("Force"), groupOptions );
- m_checkQuickFormat = new QCheckBox( i18n("Quick format"), groupOptions );
+ TQGroupBox* groupOptions = new TQGroupBox( 2, Qt::Vertical, i18n("Settings"), frame );
+ groupOptions->tqlayout()->setMargin( marginHint() );
+ groupOptions->tqlayout()->setSpacing( spacingHint() );
+ m_checkForce = new TQCheckBox( i18n("Force"), groupOptions );
+ m_checkQuickFormat = new TQCheckBox( i18n("Quick format"), groupOptions );
- QGridLayout* grid = new QGridLayout( frame );
+ TQGridLayout* grid = new TQGridLayout( frame );
grid->setMargin( 0 );
grid->setSpacing( spacingHint() );
@@ -81,8 +81,8 @@ K3bDvdFormattingDialog::K3bDvdFormattingDialog( QWidget* parent, const char* nam
grid->setRowStretch( 1, 1 );
- QToolTip::add( m_checkForce, i18n("Force formatting of empty DVDs") );
- QWhatsThis::add( m_checkForce, i18n("<p>If this option is checked K3b will format a "
+ TQToolTip::add( m_checkForce, i18n("Force formatting of empty DVDs") );
+ TQWhatsThis::add( m_checkForce, i18n("<p>If this option is checked K3b will format a "
"DVD-RW even if it is empty. It may also be used to "
"force K3b to format a DVD+RW or a DVD-RW in restricted "
"overwrite mode."
@@ -92,16 +92,16 @@ K3bDvdFormattingDialog::K3bDvdFormattingDialog( QWidget* parent, const char* nam
"just needs to be overwritten. The same applies to DVD-RW in "
"restricted overwrite mode.") );
- QToolTip::add( m_checkQuickFormat, i18n("Try to perform quick formatting") );
- QWhatsThis::add( m_checkQuickFormat, i18n("<p>If this option is checked K3b will tell the writer "
+ TQToolTip::add( m_checkQuickFormat, i18n("Try to perform quick formatting") );
+ TQWhatsThis::add( m_checkQuickFormat, i18n("<p>If this option is checked K3b will tell the writer "
"to perform a quick format."
"<p>Formatting a DVD-RW completely can take a very long "
"time and some DVD writers perform a full format even if "
"quick format is enabled." ) );
- connect( m_writerSelectionWidget, SIGNAL(writerChanged()), this, SLOT(slotWriterChanged()) );
- connect( m_writerSelectionWidget, SIGNAL(writerChanged(K3bDevice::Device*)),
- m_writingModeWidget, SLOT(determineSupportedModesFromMedium(K3bDevice::Device*)) );
+ connect( m_writerSelectionWidget, TQT_SIGNAL(writerChanged()), this, TQT_SLOT(slotWriterChanged()) );
+ connect( m_writerSelectionWidget, TQT_SIGNAL(writerChanged(K3bDevice::Device*)),
+ m_writingModeWidget, TQT_SLOT(determineSupportedModesFromMedium(K3bDevice::Device*)) );
slotWriterChanged();
}
@@ -128,7 +128,7 @@ void K3bDvdFormattingDialog::slotStartClicked()
K3bJobProgressDialog d( kapp->mainWidget(), "formattingProgress", false );
- K3bDvdFormattingJob* job = new K3bDvdFormattingJob( &d, this );
+ K3bDvdFormattingJob* job = new K3bDvdFormattingJob( &d, TQT_TQOBJECT(this) );
job->setDevice( m_writerSelectionWidget->writerDevice() );
job->setMode( m_writingModeWidget->writingMode() );
job->setForce( m_checkForce->isChecked() );
diff --git a/src/misc/k3bdvdformattingdialog.h b/src/misc/k3bdvdformattingdialog.h
index 1314ae1..e5d306c 100644
--- a/src/misc/k3bdvdformattingdialog.h
+++ b/src/misc/k3bdvdformattingdialog.h
@@ -19,7 +19,7 @@
#include <k3binteractiondialog.h>
-class QCheckBox;
+class TQCheckBox;
class K3bWritingModeWidget;
class K3bWriterSelectionWidget;
namespace K3bDevice {
@@ -29,9 +29,10 @@ namespace K3bDevice {
class K3bDvdFormattingDialog : public K3bInteractionDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDvdFormattingDialog( QWidget* = 0, const char* = 0, bool modal = true );
+ K3bDvdFormattingDialog( TQWidget* = 0, const char* = 0, bool modal = true );
~K3bDvdFormattingDialog();
public slots:
@@ -48,8 +49,8 @@ class K3bDvdFormattingDialog : public K3bInteractionDialog
K3bWriterSelectionWidget* m_writerSelectionWidget;
K3bWritingModeWidget* m_writingModeWidget;
- QCheckBox* m_checkForce;
- QCheckBox* m_checkQuickFormat;
+ TQCheckBox* m_checkForce;
+ TQCheckBox* m_checkQuickFormat;
};
#endif
diff --git a/src/misc/k3bisoimagewritingdialog.cpp b/src/misc/k3bisoimagewritingdialog.cpp
index 1832ee5..2c9a2c8 100644
--- a/src/misc/k3bisoimagewritingdialog.cpp
+++ b/src/misc/k3bisoimagewritingdialog.cpp
@@ -47,22 +47,22 @@
#include <kurldrag.h>
#include <klineedit.h>
-#include <qheader.h>
-#include <qgroupbox.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qcombobox.h>
-#include <qlayout.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qpushbutton.h>
-#include <qtabwidget.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qspinbox.h>
-#include <qevent.h>
-#include <qpopupmenu.h>
-#include <qclipboard.h>
+#include <tqheader.h>
+#include <tqgroupbox.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
+#include <tqlayout.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqpushbutton.h>
+#include <tqtabwidget.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqspinbox.h>
+#include <tqevent.h>
+#include <tqpopupmenu.h>
+#include <tqclipboard.h>
class K3bIsoImageWritingDialog::Private
@@ -76,15 +76,15 @@ public:
K3bListViewItem* md5SumItem;
bool haveMd5Sum;
- QString lastCheckedFile;
+ TQString lastCheckedFile;
bool isIsoImage;
bool imageForced;
};
-K3bIsoImageWritingDialog::K3bIsoImageWritingDialog( QWidget* parent, const char* name, bool modal )
- : K3bInteractionDialog( parent, name,
+K3bIsoImageWritingDialog::K3bIsoImageWritingDialog( TQWidget* tqparent, const char* name, bool modal )
+ : K3bInteractionDialog( tqparent, name,
i18n("Burn Iso9660 Image"),
i18n("to DVD"),
START_BUTTON|CANCEL_BUTTON,
@@ -102,24 +102,24 @@ K3bIsoImageWritingDialog::K3bIsoImageWritingDialog( QWidget* parent, const char*
m_writerSelectionWidget->setSupportedWritingApps( K3b::GROWISOFS );
m_writingModeWidget->setSupportedModes( K3b::DAO|K3b::WRITING_MODE_INCR_SEQ|K3b::WRITING_MODE_RES_OVWR );
- m_md5Job = new K3bMd5Job( 0, this );
- connect( m_md5Job, SIGNAL(finished(bool)),
- this, SLOT(slotMd5JobFinished(bool)) );
- connect( m_md5Job, SIGNAL(percent(int)),
- this, SLOT(slotMd5JobPercent(int)) );
+ m_md5Job = new K3bMd5Job( 0, TQT_TQOBJECT(this) );
+ connect( m_md5Job, TQT_SIGNAL(finished(bool)),
+ this, TQT_SLOT(slotMd5JobFinished(bool)) );
+ connect( m_md5Job, TQT_SIGNAL(percent(int)),
+ this, TQT_SLOT(slotMd5JobPercent(int)) );
updateImageSize( imagePath() );
- connect( m_writerSelectionWidget, SIGNAL(writerChanged()),
- this, SLOT(slotWriterChanged()) );
- connect( m_writerSelectionWidget, SIGNAL(writingAppChanged(int)),
- this, SLOT(slotWriterChanged()) );
- connect( m_writingModeWidget, SIGNAL(writingModeChanged(int)),
- this, SLOT(slotWriterChanged()) );
- connect( m_editImagePath, SIGNAL(textChanged(const QString&)),
- this, SLOT(updateImageSize(const QString&)) );
- connect( m_checkDummy, SIGNAL(toggled(bool)),
- this, SLOT(slotWriterChanged()) );
+ connect( m_writerSelectionWidget, TQT_SIGNAL(writerChanged()),
+ this, TQT_SLOT(slotWriterChanged()) );
+ connect( m_writerSelectionWidget, TQT_SIGNAL(writingAppChanged(int)),
+ this, TQT_SLOT(slotWriterChanged()) );
+ connect( m_writingModeWidget, TQT_SIGNAL(writingModeChanged(int)),
+ this, TQT_SLOT(slotWriterChanged()) );
+ connect( m_editImagePath, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(updateImageSize(const TQString&)) );
+ connect( m_checkDummy, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotWriterChanged()) );
}
@@ -136,8 +136,8 @@ void K3bIsoImageWritingDialog::init()
// last written image because that's what most users want
KConfig* c = k3bcore->config();
c->setGroup( configGroup() );
- QString image = c->readPathEntry( "last written image" );
- if( QFile::exists( image ) )
+ TQString image = c->readPathEntry( "last written image" );
+ if( TQFile::exists( image ) )
m_editImagePath->setURL( image );
}
}
@@ -145,18 +145,18 @@ void K3bIsoImageWritingDialog::init()
void K3bIsoImageWritingDialog::setupGui()
{
- QWidget* frame = mainWidget();
+ TQWidget* frame = mainWidget();
// image
// -----------------------------------------------------------------------
- QGroupBox* groupImageUrl = new QGroupBox( 1, Qt::Horizontal, i18n("Image to Burn"), frame );
+ TQGroupBox* groupImageUrl = new TQGroupBox( 1, Qt::Horizontal, i18n("Image to Burn"), frame );
m_editImagePath = new KURLRequester( groupImageUrl );
m_editImagePath->setMode( KFile::File|KFile::ExistingOnly );
m_editImagePath->setCaption( i18n("Choose Image File") );
m_editImagePath->setFilter( i18n("*.iso *.ISO|ISO9660 Image Files") + "\n"
+ i18n("*|All Files") );
- connect( m_editImagePath->lineEdit(), SIGNAL( textChanged ( const QString & ) ), this, SLOT( slotWriterChanged() ) );
+ connect( m_editImagePath->lineEdit(), TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotWriterChanged() ) );
// image info
// -----------------------------------------------------------------------
@@ -166,43 +166,43 @@ void K3bIsoImageWritingDialog::setupGui()
m_infoView->header()->hide();
m_infoView->setNoItemText( i18n("No image file selected") );
m_infoView->setSorting( -1 );
- m_infoView->setAlternateBackground( QColor() );
+ m_infoView->setAlternateBackground( TQColor() );
m_infoView->setFullWidth(true);
- m_infoView->setSelectionMode( QListView::NoSelection );
+ m_infoView->setSelectionMode( TQListView::NoSelection );
- connect( m_infoView, SIGNAL(contextMenu(KListView*, QListViewItem*, const QPoint&)),
- this, SLOT(slotContextMenu(KListView*, QListViewItem*, const QPoint&)) );
+ connect( m_infoView, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
+ this, TQT_SLOT(slotContextMenu(KListView*, TQListViewItem*, const TQPoint&)) );
m_writerSelectionWidget = new K3bWriterSelectionWidget( frame );
// options
// -----------------------------------------------------------------------
- QTabWidget* optionTabbed = new QTabWidget( frame );
+ TQTabWidget* optionTabbed = new TQTabWidget( frame );
- QWidget* optionTab = new QWidget( optionTabbed );
- QGridLayout* optionTabLayout = new QGridLayout( optionTab );
- optionTabLayout->setAlignment( Qt::AlignTop );
+ TQWidget* optionTab = new TQWidget( optionTabbed );
+ TQGridLayout* optionTabLayout = new TQGridLayout( optionTab );
+ optionTabLayout->tqsetAlignment( TQt::AlignTop );
optionTabLayout->setSpacing( spacingHint() );
optionTabLayout->setMargin( marginHint() );
- QGroupBox* writingModeGroup = new QGroupBox( 1, Vertical, i18n("Writing Mode"), optionTab );
+ TQGroupBox* writingModeGroup = new TQGroupBox( 1,Qt::Vertical, i18n("Writing Mode"), optionTab );
writingModeGroup->setInsideMargin( marginHint() );
m_writingModeWidget = new K3bWritingModeWidget( writingModeGroup );
// copies --------
- QGroupBox* groupCopies = new QGroupBox( 2, Qt::Horizontal, i18n("Copies"), optionTab );
+ TQGroupBox* groupCopies = new TQGroupBox( 2, Qt::Horizontal, i18n("Copies"), optionTab );
groupCopies->setInsideSpacing( spacingHint() );
groupCopies->setInsideMargin( marginHint() );
- QLabel* pixLabel = new QLabel( groupCopies );
+ TQLabel* pixLabel = new TQLabel( groupCopies );
pixLabel->setPixmap( SmallIcon( "cdcopy", KIcon::SizeMedium ) );
pixLabel->setScaledContents( false );
- m_spinCopies = new QSpinBox( groupCopies );
+ m_spinCopies = new TQSpinBox( groupCopies );
m_spinCopies->setMinValue( 1 );
m_spinCopies->setMaxValue( 999 );
// -------- copies
- QGroupBox* optionGroup = new QGroupBox( 3, Vertical, i18n("Settings"), optionTab );
+ TQGroupBox* optionGroup = new TQGroupBox( 3,Qt::Vertical, i18n("Settings"), optionTab );
optionGroup->setInsideMargin( marginHint() );
optionGroup->setInsideSpacing( spacingHint() );
m_checkDummy = K3bStdGuiItems::simulateCheckbox( optionGroup );
@@ -218,7 +218,7 @@ void K3bIsoImageWritingDialog::setupGui()
optionTabbed->addTab( optionTab, i18n("Settings") );
- QGridLayout* grid = new QGridLayout( frame );
+ TQGridLayout* grid = new TQGridLayout( frame );
grid->setSpacing( spacingHint() );
grid->setMargin( 0 );
@@ -296,7 +296,7 @@ void K3bIsoImageWritingDialog::slotStartClicked()
}
-void K3bIsoImageWritingDialog::updateImageSize( const QString& path )
+void K3bIsoImageWritingDialog::updateImageSize( const TQString& path )
{
m_md5Job->cancel();
m_infoView->clear();
@@ -304,7 +304,7 @@ void K3bIsoImageWritingDialog::updateImageSize( const QString& path )
d->haveMd5Sum = false;
d->isIsoImage = false;
- QFileInfo info( path );
+ TQFileInfo info( path );
if( info.isFile() ) {
KIO::filesize_t imageSize = K3b::filesize( KURL::fromPathOrURL(path) );
@@ -319,59 +319,59 @@ void K3bIsoImageWritingDialog::updateImageSize( const QString& path )
K3bListViewItem* isoRootItem = new K3bListViewItem( m_infoView, m_infoView->lastItem(),
i18n("Iso9660 image") );
- isoRootItem->setForegroundColor( 0, palette().disabled().foreground() );
+ isoRootItem->setForegroundColor( 0, tqpalette().disabled().foreground() );
isoRootItem->setPixmap( 0, SmallIcon( "cdimage") );
K3bListViewItem* item = new K3bListViewItem( isoRootItem, m_infoView->lastItem(),
i18n("Filesize:"), KIO::convertSize( imageSize ) );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
item = new K3bListViewItem( isoRootItem,
m_infoView->lastItem(),
i18n("System Id:"),
isoF.primaryDescriptor().systemId.isEmpty()
- ? QString("-")
+ ? TQString("-")
: isoF.primaryDescriptor().systemId );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
item = new K3bListViewItem( isoRootItem,
m_infoView->lastItem(),
i18n("Volume Id:"),
isoF.primaryDescriptor().volumeId.isEmpty()
- ? QString("-")
+ ? TQString("-")
: isoF.primaryDescriptor().volumeId );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
item = new K3bListViewItem( isoRootItem,
m_infoView->lastItem(),
i18n("Volume Set Id:"),
isoF.primaryDescriptor().volumeSetId.isEmpty()
- ? QString("-")
+ ? TQString("-")
: isoF.primaryDescriptor().volumeSetId );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
item = new K3bListViewItem( isoRootItem,
m_infoView->lastItem(),
i18n("Publisher Id:"),
isoF.primaryDescriptor().publisherId.isEmpty()
- ? QString("-")
+ ? TQString("-")
: isoF.primaryDescriptor().publisherId );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
item = new K3bListViewItem( isoRootItem,
m_infoView->lastItem(),
i18n("Preparer Id:"),
isoF.primaryDescriptor().preparerId.isEmpty()
- ? QString("-") : isoF.primaryDescriptor().preparerId );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ ? TQString("-") : isoF.primaryDescriptor().preparerId );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
item = new K3bListViewItem( isoRootItem,
m_infoView->lastItem(),
i18n("Application Id:"),
isoF.primaryDescriptor().applicationId.isEmpty()
- ? QString("-")
+ ? TQString("-")
: isoF.primaryDescriptor().applicationId );
- item->setForegroundColor( 0, palette().disabled().foreground() );
+ item->setForegroundColor( 0, tqpalette().disabled().foreground() );
isoRootItem->setOpen( true );
@@ -380,7 +380,7 @@ void K3bIsoImageWritingDialog::updateImageSize( const QString& path )
else {
K3bListViewItem* item = new K3bListViewItem( m_infoView, m_infoView->lastItem(),
i18n("Not an Iso9660 image") );
- item->setForegroundColor( 0, Qt::red );
+ item->setForegroundColor( 0, TQt::red );
item->setPixmap( 0, SmallIcon( "stop") );
}
@@ -433,7 +433,7 @@ void K3bIsoImageWritingDialog::setImage( const KURL& url )
}
-void K3bIsoImageWritingDialog::calculateMd5Sum( const QString& file )
+void K3bIsoImageWritingDialog::calculateMd5Sum( const TQString& file )
{
d->haveMd5Sum = false;
@@ -441,7 +441,7 @@ void K3bIsoImageWritingDialog::calculateMd5Sum( const QString& file )
d->md5SumItem = new K3bListViewItem( m_infoView, m_infoView->firstChild() );
d->md5SumItem->setText( 0, i18n("Md5 Sum:") );
- d->md5SumItem->setForegroundColor( 0, palette().disabled().foreground() );
+ d->md5SumItem->setForegroundColor( 0, tqpalette().disabled().foreground() );
d->md5SumItem->setProgress( 1, 0 );
d->md5SumItem->setPixmap( 0, SmallIcon( "exec") );
@@ -468,7 +468,7 @@ void K3bIsoImageWritingDialog::slotMd5JobFinished( bool success )
d->haveMd5Sum = true;
}
else {
- d->md5SumItem->setForegroundColor( 1, Qt::red );
+ d->md5SumItem->setForegroundColor( 1, TQt::red );
if( m_md5Job->hasBeenCanceled() )
d->md5SumItem->setText( 1, i18n("Calculation cancelled") );
else
@@ -481,12 +481,12 @@ void K3bIsoImageWritingDialog::slotMd5JobFinished( bool success )
}
-void K3bIsoImageWritingDialog::slotContextMenu( KListView*, QListViewItem*, const QPoint& pos )
+void K3bIsoImageWritingDialog::slotContextMenu( KListView*, TQListViewItem*, const TQPoint& pos )
{
if( !d->haveMd5Sum )
return;
- QPopupMenu popup;
+ TQPopupMenu popup;
int copyItem = popup.insertItem( i18n("Copy checksum to clipboard") );
int compareItem = popup.insertItem( i18n("Compare checksum...") );
@@ -494,22 +494,22 @@ void K3bIsoImageWritingDialog::slotContextMenu( KListView*, QListViewItem*, cons
if( r == compareItem ) {
bool ok;
- QString md5sumToCompare = KInputDialog::getText( i18n("MD5 Sum Check"),
+ TQString md5sumToCompare = KInputDialog::getText( i18n("MD5 Sum Check"),
i18n("Please insert the MD5 Sum to compare:"),
- QString::null,
+ TQString(),
&ok,
this );
if( ok ) {
if( md5sumToCompare.lower().utf8() == m_md5Job->hexDigest().lower() )
- KMessageBox::information( this, i18n("The MD5 Sum of %1 equals the specified.").arg(imagePath()),
+ KMessageBox::information( this, i18n("The MD5 Sum of %1 equals the specified.").tqarg(imagePath()),
i18n("MD5 Sums Equal") );
else
- KMessageBox::sorry( this, i18n("The MD5 Sum of %1 differs from the specified.").arg(imagePath()),
+ KMessageBox::sorry( this, i18n("The MD5 Sum of %1 differs from the specified.").tqarg(imagePath()),
i18n("MD5 Sums Differ") );
}
}
else if( r == copyItem ) {
- QApplication::clipboard()->setText( m_md5Job->hexDigest().lower(), QClipboard::Clipboard );
+ TQApplication::tqclipboard()->setText( m_md5Job->hexDigest().lower(), TQClipboard::Clipboard );
}
}
@@ -524,8 +524,8 @@ void K3bIsoImageWritingDialog::loadUserDefaults( KConfigBase* c )
m_writerSelectionWidget->loadConfig( c );
if( !d->imageForced ) {
- QString image = c->readPathEntry( "image path", c->readPathEntry( "last written image" ) );
- if( QFile::exists( image ) )
+ TQString image = c->readPathEntry( "image path", c->readPathEntry( "last written image" ) );
+ if( TQFile::exists( image ) )
m_editImagePath->setURL( image );
}
}
@@ -554,19 +554,19 @@ void K3bIsoImageWritingDialog::loadK3bDefaults()
}
-QString K3bIsoImageWritingDialog::imagePath() const
+TQString K3bIsoImageWritingDialog::imagePath() const
{
return K3b::convertToLocalUrl( KURL::fromPathOrURL( m_editImagePath->url() ) ).path();
}
-void K3bIsoImageWritingDialog::dragEnterEvent( QDragEnterEvent* e )
+void K3bIsoImageWritingDialog::dragEnterEvent( TQDragEnterEvent* e )
{
e->accept( KURLDrag::canDecode(e) );
}
-void K3bIsoImageWritingDialog::dropEvent( QDropEvent* e )
+void K3bIsoImageWritingDialog::dropEvent( TQDropEvent* e )
{
KURL::List urls;
KURLDrag::decode( e, urls );
diff --git a/src/misc/k3bisoimagewritingdialog.h b/src/misc/k3bisoimagewritingdialog.h
index caf0f4f..bf629ad 100644
--- a/src/misc/k3bisoimagewritingdialog.h
+++ b/src/misc/k3bisoimagewritingdialog.h
@@ -20,20 +20,20 @@
#include <k3binteractiondialog.h>
-class QCheckBox;
+class TQCheckBox;
class K3bWriterSelectionWidget;
-class QLabel;
+class TQLabel;
class KURL;
class K3bMd5Job;
class K3bWritingModeWidget;
class KURLRequester;
class K3bListView;
-class QSpinBox;
-class QDragEnterEvent;
-class QDropEvent;
+class TQSpinBox;
+class TQDragEnterEvent;
+class TQDropEvent;
class KListView;
-class QListViewItem;
-class QPoint;
+class TQListViewItem;
+class TQPoint;
/**
@@ -42,42 +42,43 @@ class QPoint;
class K3bIsoImageWritingDialog : public K3bInteractionDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bIsoImageWritingDialog( QWidget* = 0, const char* = 0, bool = true );
+ K3bIsoImageWritingDialog( TQWidget* = 0, const char* = 0, bool = true );
~K3bIsoImageWritingDialog();
void setImage( const KURL& url );
protected slots:
void slotStartClicked();
- void updateImageSize( const QString& );
+ void updateImageSize( const TQString& );
void slotWriterChanged();
void slotMd5JobPercent( int );
void slotMd5JobFinished( bool );
- void slotContextMenu( KListView*, QListViewItem*, const QPoint& pos );
+ void slotContextMenu( KListView*, TQListViewItem*, const TQPoint& pos );
protected:
void loadUserDefaults( KConfigBase* );
void saveUserDefaults( KConfigBase* );
void loadK3bDefaults();
- void calculateMd5Sum( const QString& );
- void dragEnterEvent( QDragEnterEvent* );
- void dropEvent( QDropEvent* );
+ void calculateMd5Sum( const TQString& );
+ void dragEnterEvent( TQDragEnterEvent* );
+ void dropEvent( TQDropEvent* );
void init();
private:
void setupGui();
- QString imagePath() const;
+ TQString imagePath() const;
K3bMd5Job* m_md5Job;
K3bWriterSelectionWidget* m_writerSelectionWidget;
- QCheckBox* m_checkDummy;
- QCheckBox* m_checkVerify;
- QSpinBox* m_spinCopies;
+ TQCheckBox* m_checkDummy;
+ TQCheckBox* m_checkVerify;
+ TQSpinBox* m_spinCopies;
K3bWritingModeWidget* m_writingModeWidget;
KURLRequester* m_editImagePath;
diff --git a/src/option/base_k3bcddboptiontab.ui b/src/option/base_k3bcddboptiontab.ui
index f46e970..cf2257c 100644
--- a/src/option/base_k3bcddboptiontab.ui
+++ b/src/option/base_k3bcddboptiontab.ui
@@ -1,11 +1,11 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>base_K3bCddbOptionTab</class>
<author>Sebastian Trueg</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>base_K3bCddbOptionTab</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -26,7 +26,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QTabWidget">
+ <widget class="TQTabWidget">
<property name="name">
<cstring>m_mainTabbed</cstring>
</property>
@@ -38,7 +38,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -49,7 +49,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox" row="0" column="0">
+ <widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>m_checkUseLocalCddb</cstring>
</property>
@@ -57,7 +57,7 @@
<string>Use local CDDB directory</string>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="0">
+ <widget class="TQCheckBox" row="1" column="0">
<property name="name">
<cstring>m_checkSaveLocalEntries</cstring>
</property>
@@ -68,7 +68,7 @@
<string>Save entries in local directory (the first directory in the list)</string>
</property>
</widget>
- <widget class="QFrame" row="2" column="0">
+ <widget class="TQFrame" row="2" column="0">
<property name="name">
<cstring>m_boxLocalDirectory</cstring>
</property>
@@ -94,7 +94,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel1_4</cstring>
</property>
@@ -121,7 +121,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QToolButton" row="3" column="2">
+ <widget class="TQToolButton" row="3" column="2">
<property name="name">
<cstring>m_buttonLocalDirDown</cstring>
</property>
@@ -135,7 +135,7 @@
<string>Move directory down</string>
</property>
</widget>
- <widget class="QToolButton" row="0" column="2">
+ <widget class="TQToolButton" row="0" column="2">
<property name="name">
<cstring>m_buttonAddLocalDir</cstring>
</property>
@@ -157,7 +157,7 @@
<string></string>
</property>
</widget>
- <widget class="QToolButton" row="1" column="2">
+ <widget class="TQToolButton" row="1" column="2">
<property name="name">
<cstring>m_buttonRemoveLocalDir</cstring>
</property>
@@ -171,7 +171,7 @@
<string>Remove directory</string>
</property>
</widget>
- <widget class="QToolButton" row="2" column="2">
+ <widget class="TQToolButton" row="2" column="2">
<property name="name">
<cstring>m_buttonLocalDirUp</cstring>
</property>
@@ -195,7 +195,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>51</height>
@@ -206,7 +206,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -217,7 +217,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QFrame" row="1" column="0">
+ <widget class="TQFrame" row="1" column="0">
<property name="name">
<cstring>m_boxCddbServer</cstring>
</property>
@@ -243,7 +243,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
@@ -251,7 +251,7 @@
<string>Server:</string>
</property>
</widget>
- <widget class="QComboBox" row="0" column="1">
+ <widget class="TQComboBox" row="0" column="1">
<property name="name">
<cstring>m_comboCddbType</cstring>
</property>
@@ -328,7 +328,7 @@
<string>Port </string>
</property>
</widget>
- <widget class="QToolButton" row="0" column="4">
+ <widget class="TQToolButton" row="0" column="4">
<property name="name">
<cstring>m_buttonAddCddbServer</cstring>
</property>
@@ -342,7 +342,7 @@
<string>Add server</string>
</property>
</widget>
- <widget class="QToolButton" row="1" column="4">
+ <widget class="TQToolButton" row="1" column="4">
<property name="name">
<cstring>m_buttonRemoveCddbServer</cstring>
</property>
@@ -356,7 +356,7 @@
<string>Remove server</string>
</property>
</widget>
- <widget class="QToolButton" row="2" column="4">
+ <widget class="TQToolButton" row="2" column="4">
<property name="name">
<cstring>m_buttonCddbServerUp</cstring>
</property>
@@ -370,7 +370,7 @@
<string>Move server up</string>
</property>
</widget>
- <widget class="QToolButton" row="3" column="4">
+ <widget class="TQToolButton" row="3" column="4">
<property name="name">
<cstring>m_buttonCddbServerDown</cstring>
</property>
@@ -394,7 +394,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>30</height>
@@ -403,7 +403,7 @@
</spacer>
</grid>
</widget>
- <widget class="QCheckBox" row="0" column="0">
+ <widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>m_checkRemoteCddb</cstring>
</property>
@@ -413,7 +413,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -424,7 +424,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>m_groupCgi</cstring>
</property>
@@ -460,7 +460,7 @@
<string>~/cddb/cddb.cgi</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>TextLabel3</cstring>
</property>
@@ -471,7 +471,7 @@
<string>Path:</string>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>m_checkManualCgiPath</cstring>
</property>
@@ -491,7 +491,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>31</width>
<height>151</height>
@@ -551,7 +551,7 @@
<tabstop>m_checkManualCgiPath</tabstop>
<tabstop>m_editManualCgiPath</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klistview.h</includehint>
<includehint>klistview.h</includehint>
diff --git a/src/option/base_k3bmiscoptiontab.ui b/src/option/base_k3bmiscoptiontab.ui
index 364e91f..4c20c88 100644
--- a/src/option/base_k3bmiscoptiontab.ui
+++ b/src/option/base_k3bmiscoptiontab.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>base_K3bMiscOptionTab</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>base_K3bMiscOptionTab</cstring>
</property>
@@ -11,7 +11,7 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@@ -22,7 +22,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkSaveOnExit</cstring>
</property>
@@ -33,15 +33,15 @@
<string>Ask to save modified projects on exit</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -65,7 +65,7 @@
</widget>
</vbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox3</cstring>
</property>
@@ -76,7 +76,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkSystemConfig</cstring>
</property>
@@ -90,15 +90,15 @@
<string>&lt;p&gt;If this option is checked K3b will check the system configuration for any problems on startup and when the the user changes the settings.</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout1</cstring>
+ <cstring>tqlayout1</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -111,7 +111,7 @@
<cstring>m_comboAudioOutputSystem</cstring>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>m_buttonConfigureAudioOutput</cstring>
</property>
@@ -123,7 +123,7 @@
</widget>
</vbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox2</cstring>
</property>
@@ -134,7 +134,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkShowProgressOSD</cstring>
</property>
@@ -145,7 +145,7 @@
<string>&lt;p&gt;If this option is checked K3b will display the progress in an OSD which always stays on top of all other windows.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkHideMainWindowWhileWriting</cstring>
</property>
@@ -159,7 +159,7 @@
<string>&lt;p&gt;If this option is checked K3b will hide the main window while displaying the progress dialog.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkShowSplash</cstring>
</property>
@@ -170,7 +170,7 @@
<string>Show the splash screen when K3b starts</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkKonqiIntegration</cstring>
</property>
@@ -186,7 +186,7 @@
&lt;p&gt;&lt;em&gt;Konqueror integration is not enabled by default to prevent unwanted cluttering of the Konqueror menus.&lt;/em&gt;</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkKeepDialogsOpen</cstring>
</property>
@@ -200,15 +200,15 @@
<string>&lt;p&gt;If this option is checked K3b will not close action dialogs such as the CD Copy dialog after the process has been finished. It will be kept open to start a new process like copying another CD.</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_3</cstring>
</property>
@@ -241,7 +241,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>31</width>
<height>0</height>
@@ -273,7 +273,7 @@
<data format="PNG" length="1125">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b0000042c49444154388db5954f6c14551cc73fefcd7476b65bdaae4bb78bb5502a14d404e4801c88182d1c4c2c693da847400f9c24c68b878684238660e2b1e01f12c19493012ef2478c814412d354a46017a8a564bb6da5bbedccee767776e63d0ffb073751d483bfe49799974c3eeffb7ebf37df9fd05a530b2184040cc0042420aaf9a4d0d554800f045a6b256ae0e1e1e1d6bebebe838ee31c48a7d39b5cd7fd075e251cc7617272f2ded8d8d819cff33e0316819259537aead4a9839d5dd6d1784f91f55b0a94830242088404d304292bef68a89f520802a598fecddaa04f1a876f5c250c7c0a64cdeac686e33807e23d45e6b297c8b877f1831542614550b6599835c83c2a81b6786a75134faf2f1169f12997350881d9021d0903e06de0745d3160a6d3e94dbd5b0a64dcbb94b5831d0e3375ab892b1772dcf9790528543f8dd0d367b36768153b5e31503a0f1aecb004580b44ffac58baae8b1714f0833c7638cc8dab303a320f4822ab4c7a37c69196203de3319d5ce1c4d13c733331dedc67a129a154fd128401ab0616d55a130ac3d42d93d1913940d13fd0c9ee0183685c60da01c5421bd72f7a8c8efccef9afd374267ad93d642365be0636a0d28ec7600941d9e6f23917f0e97f23ce5bef35d19ec863da0ed9059b2be70bec196c66dfa10ec0e49b338f7017258651bf95021035c595429bb0903248fe52a2b5b595dd7b4d945cc2340cdca536be389ee3f67886c5798f773fe8e0dac508c989659277a2180da4ca4ff07821058b8b251445d63d6b13ed1098a6417e39cac85197dbe31962ab9bd9f1f22a226d45366f6d0620fdb08c900d281af6110284b20085b414861d905d88f2e52739ee8cbb8022143259d3dd84691730aa2d52da441a8de0c6958068870022a41e9629ad3473fd3b8fdbe319dadb9b4924da994d2d716c7896fbe35152f78b48245d6b2da4507faf582be8eaf159b721cc837b05ae7debb1f79d08cb8b515edad942a22bc4b1c33eb3d34b1c797f06af90a72d16e2f96d9a74aa11dca8586b222d01af0fb60070f6c402d72f15d97f28c6f6d7027a5f5ce6c3233dc4e2ede496b278be4fff608cee8d3e1add806aeca51094cbb06397c1ecc328e746537c7e3ccdb5cb1136bf60635882d4d41c6ec6836ab37efa214f72208ed9f4d7cdd38ee310280542e38b1c43fb6de26b3672e1ec3cc99bcb246f66a938a3241ab3e91f7c861fbf77710b1e5e49915bae974203ba0e9e9c9cbc373d6d6d305a040a89c2a77f50b27d5782bbbf7acccf28349235dd16cf6dd374f7295e1de8a45c02d37499182b01cc0201a085d61a2144d8b2ac8fb6ed340e77240c4261890e04c250185262546d534a032154b59e0ad394e41c98182bf268ce6721ed9f064e0253356f6da2e24c1f030f783c15fe6da680af8021602bd051532ca9b8521488559f61aa86c29343578fbf0264a94c906c7d3409214c20043457a116ff6de6795578012889ff6b98fe016ea0ce1c6a2573410000000049454e44ae426082</data>
</image>
</images>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kurlrequester.h</includehint>
<includehint>klineedit.h</includehint>
diff --git a/src/option/base_k3bpluginoptiontab.ui b/src/option/base_k3bpluginoptiontab.ui
index 18321ee..2e7a2dd 100644
--- a/src/option/base_k3bpluginoptiontab.ui
+++ b/src/option/base_k3bpluginoptiontab.ui
@@ -1,11 +1,11 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>base_K3bPluginOptionTab</class>
<author>Sebastian Trueg</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>Form1</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -20,7 +20,7 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QPushButton" row="2" column="1">
+ <widget class="TQPushButton" row="2" column="1">
<property name="name">
<cstring>m_buttonConfigure</cstring>
</property>
@@ -38,7 +38,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>411</width>
<height>21</height>
@@ -50,7 +50,7 @@
<cstring>m_viewPlugins</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -83,7 +83,7 @@
<data format="PNG" length="1125">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b0000042c49444154388db5954f6c14551cc73fefcd7476b65bdaae4bb78bb5502a14d404e4801c88182d1c4c2c693da847400f9c24c68b878684238660e2b1e01f12c19493012ef2478c814412d354a46017a8a564bb6da5bbedccee767776e63d0ffb073751d483bfe49799974c3eeffb7ebf37df9fd05a530b2184040cc0042420aaf9a4d0d554800f045a6b256ae0e1e1e1d6bebebe838ee31c48a7d39b5cd7fd075e251cc7617272f2ded8d8d819cff33e0316819259537aead4a9839d5dd6d1784f91f55b0a94830242088404d304292bef68a89f520802a598fecddaa04f1a876f5c250c7c0a64cdeac686e33807e23d45e6b297c8b877f1831542614550b6599835c83c2a81b6786a75134faf2f1169f12997350881d9021d0903e06de0745d3160a6d3e94dbd5b0a64dcbb94b5831d0e3375ab892b1772dcf9790528543f8dd0d367b36768153b5e31503a0f1aecb004580b44ffac58baae8b1714f0833c7638cc8dab303a320f4822ab4c7a37c69196203de3319d5ce1c4d13c733331dedc67a129a154fd128401ab0616d55a130ac3d42d93d1913940d13fd0c9ee0183685c60da01c5421bd72f7a8c8efccef9afd374267ad93d642365be0636a0d28ec7600941d9e6f23917f0e97f23ce5bef35d19ec863da0ed9059b2be70bec196c66dfa10ec0e49b338f7017258651bf95021035c595429bb0903248fe52a2b5b595dd7b4d945cc2340cdca536be389ee3f67886c5798f773fe8e0dac508c989659277a2180da4ca4ff07821058b8b251445d63d6b13ed1098a6417e39cac85197dbe31962ab9bd9f1f22a226d45366f6d0620fdb08c900d281af6110284b20085b414861d905d88f2e52739ee8cbb8022143259d3dd84691730aa2d52da441a8de0c6958068870022a41e9629ad3473fd3b8fdbe319dadb9b4924da994d2d716c7896fbe35152f78b48245d6b2da4507faf582be8eaf159b721cc837b05ae7debb1f79d08cb8b515edad942a22bc4b1c33eb3d34b1c797f06af90a72d16e2f96d9a74aa11dca8586b222d01af0fb60070f6c402d72f15d97f28c6f6d7027a5f5ce6c3233dc4e2ede496b278be4fff608cee8d3e1add806aeca51094cbb06397c1ecc328e746537c7e3ccdb5cb1136bf60635882d4d41c6ec6836ab37efa214f72208ed9f4d7cdd38ee310280542e38b1c43fb6de26b3672e1ec3cc99bcb246f66a938a3241ab3e91f7c861fbf77710b1e5e49915bae974203ba0e9e9c9cbc373d6d6d305a040a89c2a77f50b27d5782bbbf7acccf28349235dd16cf6dd374f7295e1de8a45c02d37499182b01cc0201a085d61a2144d8b2ac8fb6ed340e77240c4261890e04c250185262546d534a032154b59e0ad394e41c98182bf268ce6721ed9f064e0253356f6da2e24c1f030f783c15fe6da680af8021602bd051532ca9b8521488559f61aa86c29343578fbf0264a94c906c7d3409214c20043457a116ff6de6795578012889ff6b98fe016ea0ce1c6a2573410000000049454e44ae426082</data>
</image>
</images>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>k3blistview.h</includehint>
</includehints>
diff --git a/src/option/base_k3bthemeoptiontab.ui b/src/option/base_k3bthemeoptiontab.ui
index 47a48b4..4809f6f 100644
--- a/src/option/base_k3bthemeoptiontab.ui
+++ b/src/option/base_k3bthemeoptiontab.ui
@@ -1,11 +1,11 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>base_K3bThemeOptionTab</class>
<author>Sebastian Trueg</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>base_K3bThemeOptionTab</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -20,7 +20,7 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox4</cstring>
</property>
@@ -85,7 +85,7 @@
</widget>
</vbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox5</cstring>
</property>
@@ -96,9 +96,9 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout1</cstring>
+ <cstring>tqlayout1</cstring>
</property>
<hbox>
<property name="name">
@@ -107,7 +107,7 @@
<property name="spacing">
<number>0</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_leftPreviewLabel</cstring>
</property>
@@ -115,7 +115,7 @@
<string></string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_centerPreviewLabel</cstring>
</property>
@@ -135,11 +135,11 @@
<property name="text">
<string>no Theme selected</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_rightPreviewLabel</cstring>
</property>
@@ -151,9 +151,9 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<hbox>
<property name="name">
@@ -172,14 +172,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>161</width>
<height>2</height>
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>m_buttonInstallTheme</cstring>
</property>
@@ -187,7 +187,7 @@
<string>Install New Theme...</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>m_buttonRemoveTheme</cstring>
</property>
@@ -201,7 +201,7 @@
</widget>
<customwidgets>
</customwidgets>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klistview.h</includehint>
</includehints>
diff --git a/src/option/k3bburningoptiontab.cpp b/src/option/k3bburningoptiontab.cpp
index 21485cb..3238d41 100644
--- a/src/option/k3bburningoptiontab.cpp
+++ b/src/option/k3bburningoptiontab.cpp
@@ -19,18 +19,18 @@
#include <k3bstdguiitems.h>
#include <k3bglobalsettings.h>
-#include <qlabel.h>
-#include <qcombobox.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qgroupbox.h>
-#include <qtabwidget.h>
-#include <qradiobutton.h>
-#include <qvalidator.h>
-#include <qbuttongroup.h>
-#include <qspinbox.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqgroupbox.h>
+#include <tqtabwidget.h>
+#include <tqradiobutton.h>
+#include <tqvalidator.h>
+#include <tqbuttongroup.h>
+#include <tqspinbox.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
#include <knuminput.h>
#include <kconfig.h>
@@ -39,8 +39,8 @@
#include <klineedit.h>
-K3bBurningOptionTab::K3bBurningOptionTab( QWidget* parent, const char* name )
- : QWidget( parent, name )
+K3bBurningOptionTab::K3bBurningOptionTab( TQWidget* tqparent, const char* name )
+ : TQWidget( tqparent, name )
{
setupGui();
}
@@ -53,25 +53,25 @@ K3bBurningOptionTab::~K3bBurningOptionTab()
void K3bBurningOptionTab::setupGui()
{
- QGridLayout* groupAdvancedLayout = new QGridLayout( this );
- groupAdvancedLayout->setAlignment( Qt::AlignTop );
+ TQGridLayout* groupAdvancedLayout = new TQGridLayout( this );
+ groupAdvancedLayout->tqsetAlignment( TQt::AlignTop );
groupAdvancedLayout->setSpacing( KDialog::spacingHint() );
groupAdvancedLayout->setMargin( 0 );
- QGroupBox* groupWritingApp = new QGroupBox( 0, Qt::Vertical, i18n("Burning"), this );
- groupWritingApp->layout()->setMargin( 0 );
- QGridLayout* bufferLayout = new QGridLayout( groupWritingApp->layout() );
+ TQGroupBox* groupWritingApp = new TQGroupBox( 0, Qt::Vertical, i18n("Burning"), this );
+ groupWritingApp->tqlayout()->setMargin( 0 );
+ TQGridLayout* bufferLayout = new TQGridLayout( groupWritingApp->tqlayout() );
bufferLayout->setMargin( KDialog::marginHint() );
bufferLayout->setSpacing( KDialog::spacingHint() );
m_checkBurnfree = K3bStdGuiItems::burnproofCheckbox( groupWritingApp );
- m_checkOverburn = new QCheckBox( i18n("Allow overburning (&not supported by cdrecord <= 1.10)"), groupWritingApp );
- m_checkForceUnsafeOperations = new QCheckBox( i18n("Force unsafe operations"), groupWritingApp );
- m_checkManualWritingBufferSize = new QCheckBox( i18n("&Manual writing buffer size") + ":", groupWritingApp );
+ m_checkOverburn = new TQCheckBox( i18n("Allow overburning (&not supported by cdrecord <= 1.10)"), groupWritingApp );
+ m_checkForceUnsafeOperations = new TQCheckBox( i18n("Force unsafe operations"), groupWritingApp );
+ m_checkManualWritingBufferSize = new TQCheckBox( i18n("&Manual writing buffer size") + ":", groupWritingApp );
m_editWritingBufferSize = new KIntNumInput( 4, groupWritingApp );
m_editWritingBufferSize->setSuffix( " " + i18n("MB") );
- m_checkAllowWritingAppSelection = new QCheckBox( i18n("Manual writing application &selection"), groupWritingApp );
+ m_checkAllowWritingAppSelection = new TQCheckBox( i18n("Manual writing application &selection"), groupWritingApp );
bufferLayout->addMultiCellWidget( m_checkBurnfree, 0, 0, 0, 2 );
bufferLayout->addMultiCellWidget( m_checkOverburn, 1, 1, 0, 2 );
bufferLayout->addMultiCellWidget( m_checkForceUnsafeOperations, 2, 2, 0, 2 );
@@ -80,32 +80,32 @@ void K3bBurningOptionTab::setupGui()
bufferLayout->addMultiCellWidget( m_checkAllowWritingAppSelection, 4, 4, 0, 2 );
bufferLayout->setColStretch( 2, 1 );
- QGroupBox* groupMisc = new QGroupBox( 2, Qt::Vertical, i18n("Miscellaneous"), this );
- m_checkEject = new QCheckBox( i18n("Do not &eject medium after write process"), groupMisc );
- m_checkAutoErasingRewritable = new QCheckBox( i18n("Automatically erase CD-RWs and DVD-RWs"), groupMisc );
+ TQGroupBox* groupMisc = new TQGroupBox( 2, Qt::Vertical, i18n("Miscellaneous"), this );
+ m_checkEject = new TQCheckBox( i18n("Do not &eject medium after write process"), groupMisc );
+ m_checkAutoErasingRewritable = new TQCheckBox( i18n("Automatically erase CD-RWs and DVD-RWs"), groupMisc );
groupAdvancedLayout->addWidget( groupWritingApp, 0, 0 );
groupAdvancedLayout->addWidget( groupMisc, 1, 0 );
groupAdvancedLayout->setRowStretch( 2, 1 );
- connect( m_checkManualWritingBufferSize, SIGNAL(toggled(bool)),
- m_editWritingBufferSize, SLOT(setEnabled(bool)) );
- connect( m_checkManualWritingBufferSize, SIGNAL(toggled(bool)),
- this, SLOT(slotSetDefaultBufferSizes(bool)) );
+ connect( m_checkManualWritingBufferSize, TQT_SIGNAL(toggled(bool)),
+ m_editWritingBufferSize, TQT_SLOT(setEnabled(bool)) );
+ connect( m_checkManualWritingBufferSize, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotSetDefaultBufferSizes(bool)) );
m_editWritingBufferSize->setDisabled( true );
// -----------------------------------------------------------------------
- QToolTip::add( m_checkOverburn, i18n("Allow burning more than the official media capacity") );
- QToolTip::add( m_checkAllowWritingAppSelection, i18n("Allow to choose between cdrecord and cdrdao") );
- QToolTip::add( m_checkAutoErasingRewritable, i18n("Automatically erase CD-RWs and DVD-RWs without asking") );
- QToolTip::add( m_checkEject, i18n("Do not eject the burn medium after a completed burn process") );
- QToolTip::add( m_checkForceUnsafeOperations, i18n("Force K3b to continue some operations otherwise deemed as unsafe") );
+ TQToolTip::add( m_checkOverburn, i18n("Allow burning more than the official media capacity") );
+ TQToolTip::add( m_checkAllowWritingAppSelection, i18n("Allow to choose between cdrecord and cdrdao") );
+ TQToolTip::add( m_checkAutoErasingRewritable, i18n("Automatically erase CD-RWs and DVD-RWs without asking") );
+ TQToolTip::add( m_checkEject, i18n("Do not eject the burn medium after a completed burn process") );
+ TQToolTip::add( m_checkForceUnsafeOperations, i18n("Force K3b to continue some operations otherwise deemed as unsafe") );
- QWhatsThis::add( m_checkAllowWritingAppSelection, i18n("<p>If this option is checked K3b gives "
+ TQWhatsThis::add( m_checkAllowWritingAppSelection, i18n("<p>If this option is checked K3b gives "
"the possibility to choose between cdrecord "
"and cdrdao when writing a cd."
"<p>This may be useful if one of the programs "
@@ -113,7 +113,7 @@ void K3bBurningOptionTab::setupGui()
"<p><b>Be aware that K3b does not support both "
"programs in all project types.</b>") );
- QWhatsThis::add( m_checkOverburn, i18n("<p>Each medium has an official maximum capacity which is stored in a read-only "
+ TQWhatsThis::add( m_checkOverburn, i18n("<p>Each medium has an official maximum capacity which is stored in a read-only "
"area of the medium and is guaranteed by the vendor. However, this official "
"maximum is not always the actual maximum. Many media have an "
"actual total capacity that is slightly larger than the official amount."
@@ -124,23 +124,23 @@ void K3bBurningOptionTab::setupGui()
"makes sense to first determine the actual maximum capacity of the media brand "
"with a simulated burn.") );
- QWhatsThis::add( m_checkAutoErasingRewritable, i18n("<p>If this option is checked K3b will automatically "
+ TQWhatsThis::add( m_checkAutoErasingRewritable, i18n("<p>If this option is checked K3b will automatically "
"erase CD-RWs and format DVD-RWs if one is found instead "
"of an empty media before writing.") );
- QWhatsThis::add( m_checkManualWritingBufferSize, i18n("<p>K3b uses a software buffer during the burning process to "
+ TQWhatsThis::add( m_checkManualWritingBufferSize, i18n("<p>K3b uses a software buffer during the burning process to "
"avoid gaps in the data stream due to high system load. The default "
"sizes used are %1 MB for CD and %2 MB for DVD burning."
"<p>If this option is checked the value specified will be used for both "
- "CD and DVD burning.").arg(4).arg(32) );
+ "CD and DVD burning.").tqarg(4).tqarg(32) );
- QWhatsThis::add( m_checkEject, i18n("<p>If this option is checked K3b will not eject the medium once the burn process "
+ TQWhatsThis::add( m_checkEject, i18n("<p>If this option is checked K3b will not eject the medium once the burn process "
"finishes. This can be helpful in case one leaves the computer after starting the "
"burning and does not want the tray to be open all the time."
"<p>However, on Linux systems a freshly burned medium has to be reloaded. Otherwise "
"the system will not detect the changes and still treat it as an empty medium.") );
- QWhatsThis::add( m_checkForceUnsafeOperations, i18n("<p>If this option is checked K3b will continue in some situations "
+ TQWhatsThis::add( m_checkForceUnsafeOperations, i18n("<p>If this option is checked K3b will continue in some situations "
"which would otherwise be deemed as unsafe."
"<p>This setting for example disables the check for medium speed "
"verification. Thus, one can force K3b to burn a high speed medium on "
diff --git a/src/option/k3bburningoptiontab.h b/src/option/k3bburningoptiontab.h
index 8b71e06..b62274e 100644
--- a/src/option/k3bburningoptiontab.h
+++ b/src/option/k3bburningoptiontab.h
@@ -17,25 +17,26 @@
#ifndef K3B_BURNING_OPTION_TAB_H
#define K3B_BURNING_OPTION_TAB_H
-#include <qwidget.h>
-
-class QCheckBox;
-class QLabel;
-class QGroupBox;
-class QComboBox;
-class QString;
-class QSpinBox;
+#include <tqwidget.h>
+
+class TQCheckBox;
+class TQLabel;
+class TQGroupBox;
+class TQComboBox;
+class TQString;
+class TQSpinBox;
class KIntNumInput;
-class QRadioButton;
+class TQRadioButton;
-class K3bBurningOptionTab : public QWidget
+class K3bBurningOptionTab : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bBurningOptionTab( QWidget* parent = 0, const char* name = 0 );
+ K3bBurningOptionTab( TQWidget* tqparent = 0, const char* name = 0 );
~K3bBurningOptionTab();
void saveSettings();
@@ -47,14 +48,14 @@ Q_OBJECT
private:
void setupGui();
- QCheckBox* m_checkBurnfree;
- QCheckBox* m_checkEject;
- QCheckBox* m_checkAutoErasingRewritable;
- QCheckBox* m_checkOverburn;
- QCheckBox* m_checkManualWritingBufferSize;
+ TQCheckBox* m_checkBurnfree;
+ TQCheckBox* m_checkEject;
+ TQCheckBox* m_checkAutoErasingRewritable;
+ TQCheckBox* m_checkOverburn;
+ TQCheckBox* m_checkManualWritingBufferSize;
KIntNumInput* m_editWritingBufferSize;
- QCheckBox* m_checkAllowWritingAppSelection;
- QCheckBox* m_checkForceUnsafeOperations;
+ TQCheckBox* m_checkAllowWritingAppSelection;
+ TQCheckBox* m_checkForceUnsafeOperations;
};
diff --git a/src/option/k3bcddboptiontab.cpp b/src/option/k3bcddboptiontab.cpp
index 33b2349..1d2f10f 100644
--- a/src/option/k3bcddboptiontab.cpp
+++ b/src/option/k3bcddboptiontab.cpp
@@ -15,19 +15,19 @@
#include "k3bcddboptiontab.h"
-#include <qvariant.h>
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qlistbox.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-#include <qtabwidget.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qstringlist.h>
-#include <qcombobox.h>
-#include <qtoolbutton.h>
+#include <tqvariant.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqlistbox.h>
+#include <tqpushbutton.h>
+#include <tqradiobutton.h>
+#include <tqtabwidget.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqstringlist.h>
+#include <tqcombobox.h>
+#include <tqtoolbutton.h>
#include <kdialog.h>
#include <kiconloader.h>
@@ -41,29 +41,29 @@
#include <kdeversion.h>
-K3bCddbOptionTab::K3bCddbOptionTab( QWidget* parent, const char* name )
- : base_K3bCddbOptionTab( parent, name )
+K3bCddbOptionTab::K3bCddbOptionTab( TQWidget* tqparent, const char* name )
+ : base_K3bCddbOptionTab( tqparent, name )
{
- // fix all the margins and spacings that have been corrupted by QDesigner ;-)
+ // fix all the margins and spacings that have been corrupted by TQDesigner ;-)
// -----------------------------------------------------------------------------
base_K3bCddbOptionTabLayout->setMargin( 0 );
base_K3bCddbOptionTabLayout->setSpacing( KDialog::spacingHint() );
- m_mainTabbed->page(0)->layout()->setMargin( KDialog::marginHint() );
- m_mainTabbed->page(0)->layout()->setSpacing( KDialog::spacingHint() );
- m_mainTabbed->page(1)->layout()->setMargin( KDialog::marginHint() );
- m_mainTabbed->page(1)->layout()->setSpacing( KDialog::spacingHint() );
+ m_mainTabbed->page(0)->tqlayout()->setMargin( KDialog::marginHint() );
+ m_mainTabbed->page(0)->tqlayout()->setSpacing( KDialog::spacingHint() );
+ m_mainTabbed->page(1)->tqlayout()->setMargin( KDialog::marginHint() );
+ m_mainTabbed->page(1)->tqlayout()->setSpacing( KDialog::spacingHint() );
-// m_groupLocalDir->layout()->setMargin( 0 );
+// m_groupLocalDir->tqlayout()->setMargin( 0 );
// m_groupLocalDirLayout->setMargin( KDialog::marginHint() );
// m_groupLocalDirLayout->setSpacing( KDialog::spacingHint() );
-// m_groupCddbServer->layout()->setMargin( 0 );
+// m_groupCddbServer->tqlayout()->setMargin( 0 );
// m_groupCddbServerLayout->setMargin( KDialog::marginHint() );
// m_groupCddbServerLayout->setSpacing( KDialog::spacingHint() );
- m_groupCgi->layout()->setMargin( 0 );
+ m_groupCgi->tqlayout()->setMargin( 0 );
m_groupCgiLayout->setMargin( KDialog::marginHint() );
m_groupCgiLayout->setSpacing( KDialog::spacingHint() );
@@ -99,24 +99,24 @@ K3bCddbOptionTab::K3bCddbOptionTab( QWidget* parent, const char* name )
// setup connections
// -----------------------------------------------------------------------------
- connect( m_buttonAddLocalDir, SIGNAL(clicked()), this, SLOT(slotLocalDirAdd()) );
- connect( m_buttonRemoveLocalDir, SIGNAL(clicked()), this, SLOT(slotLocalDirRemove()) );
- connect( m_buttonLocalDirUp, SIGNAL(clicked()), this, SLOT(slotLocalDirUp()) );
- connect( m_buttonLocalDirDown, SIGNAL(clicked()), this, SLOT(slotLocalDirDown()) );
-
- connect( m_buttonAddCddbServer, SIGNAL(clicked()), this, SLOT(slotCddbServerAdd()) );
- connect( m_buttonRemoveCddbServer, SIGNAL(clicked()), this, SLOT(slotCddbServerRemove()) );
- connect( m_buttonCddbServerUp, SIGNAL(clicked()), this, SLOT(slotCddbServerUp()) );
- connect( m_buttonCddbServerDown, SIGNAL(clicked()), this, SLOT(slotCddbServerDown()) );
-
- connect( m_editLocalDir, SIGNAL(textChanged(const QString&)), this, SLOT(enDisableButtons()) );
- connect( m_editCddbServer, SIGNAL(textChanged(const QString&)), this, SLOT(enDisableButtons()) );
- connect( m_viewLocalDir, SIGNAL(selectionChanged()), this, SLOT(enDisableButtons()) );
- connect( m_viewCddbServer, SIGNAL(selectionChanged()), this, SLOT(enDisableButtons()) );
- connect( m_comboCddbType, SIGNAL(highlighted(int)),
- this, SLOT(slotServerTypeChanged()) );
- connect( m_comboCddbType, SIGNAL(activated(int)),
- this, SLOT(slotServerTypeChanged()) );
+ connect( m_buttonAddLocalDir, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotLocalDirAdd()) );
+ connect( m_buttonRemoveLocalDir, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotLocalDirRemove()) );
+ connect( m_buttonLocalDirUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotLocalDirUp()) );
+ connect( m_buttonLocalDirDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotLocalDirDown()) );
+
+ connect( m_buttonAddCddbServer, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCddbServerAdd()) );
+ connect( m_buttonRemoveCddbServer, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCddbServerRemove()) );
+ connect( m_buttonCddbServerUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCddbServerUp()) );
+ connect( m_buttonCddbServerDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCddbServerDown()) );
+
+ connect( m_editLocalDir, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(enDisableButtons()) );
+ connect( m_editCddbServer, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(enDisableButtons()) );
+ connect( m_viewLocalDir, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(enDisableButtons()) );
+ connect( m_viewCddbServer, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(enDisableButtons()) );
+ connect( m_comboCddbType, TQT_SIGNAL(highlighted(int)),
+ this, TQT_SLOT(slotServerTypeChanged()) );
+ connect( m_comboCddbType, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotServerTypeChanged()) );
// -----------------------------------------------------------------------------
enDisableButtons();
@@ -135,13 +135,13 @@ void K3bCddbOptionTab::readSettings()
c->setGroup( "Cddb" );
// old config <= 0.7.3
- QStringList cddbpServer = c->readListEntry( "cddbp server" );
- QStringList httpServer = c->readListEntry( "http server" );
+ TQStringList cddbpServer = c->readListEntry( "cddbp server" );
+ TQStringList httpServer = c->readListEntry( "http server" );
// new config
- QStringList cddbServer = c->readListEntry( "cddb server" );
+ TQStringList cddbServer = c->readListEntry( "cddb server" );
- QStringList localCddbDirs = c->readPathListEntry( "local cddb dirs" );
+ TQStringList localCddbDirs = c->readPathListEntry( "local cddb dirs" );
m_checkRemoteCddb->setChecked( c->readBoolEntry( "use remote cddb", true ) );
m_checkUseLocalCddb->setChecked( c->readBoolEntry( "use local cddb query", true ) );
@@ -152,18 +152,18 @@ void K3bCddbOptionTab::readSettings()
if( localCddbDirs.isEmpty() )
localCddbDirs.append( "~/.cddb/" );
- for( QStringList::const_iterator it = localCddbDirs.begin(); it != localCddbDirs.end(); ++it )
+ for( TQStringList::const_iterator it = localCddbDirs.begin(); it != localCddbDirs.end(); ++it )
(void)new KListViewItem( m_viewLocalDir, m_viewLocalDir->lastItem(), *it );
// old config <= 0.7.3
if( !httpServer.isEmpty() ) {
- for( QStringList::iterator it = httpServer.begin(); it != httpServer.end(); ++it ) {
+ for( TQStringList::iterator it = httpServer.begin(); it != httpServer.end(); ++it ) {
cddbServer.append( "Http " + *it );
}
}
if( !cddbpServer.isEmpty() ) {
- for( QStringList::iterator it = cddbpServer.begin(); it != cddbpServer.end(); ++it ) {
+ for( TQStringList::iterator it = cddbpServer.begin(); it != cddbpServer.end(); ++it ) {
cddbServer.append( "Cddbp " + *it );
}
}
@@ -171,15 +171,15 @@ void K3bCddbOptionTab::readSettings()
if( cddbServer.isEmpty() )
cddbServer.append( "Http freedb2.org:80" );
- for( QStringList::const_iterator it = cddbServer.begin(); it != cddbServer.end(); ++it ) {
- const QString& s = *it;
- QStringList buf = QStringList::split( ":", s.mid( s.find(" ")+1 ) );
- QString server = buf[0];
+ for( TQStringList::const_iterator it = cddbServer.begin(); it != cddbServer.end(); ++it ) {
+ const TQString& s = *it;
+ TQStringList buf = TQStringList::split( ":", s.mid( s.tqfind(" ")+1 ) );
+ TQString server = buf[0];
int port = buf[1].toInt();
if( s.startsWith("Http") )
- (void)new KListViewItem( m_viewCddbServer, m_viewCddbServer->lastItem(), "Http", server, QString::number(port) );
+ (void)new KListViewItem( m_viewCddbServer, m_viewCddbServer->lastItem(), "Http", server, TQString::number(port) );
else
- (void)new KListViewItem( m_viewCddbServer, m_viewCddbServer->lastItem(), "Cddbp", server, QString::number(port) );
+ (void)new KListViewItem( m_viewCddbServer, m_viewCddbServer->lastItem(), "Cddbp", server, TQString::number(port) );
}
enDisableButtons();
@@ -198,16 +198,16 @@ void K3bCddbOptionTab::apply()
c->writeEntry( "use manual cgi path", m_checkManualCgiPath->isChecked() );
c->writeEntry( "cgi path", m_editManualCgiPath->text() );
- QStringList cddbServer;
- QStringList localCddbDirs;
+ TQStringList cddbServer;
+ TQStringList localCddbDirs;
- QListViewItemIterator it( m_viewLocalDir );
+ TQListViewItemIterator it( m_viewLocalDir );
while( it.current() ) {
localCddbDirs.append( it.current()->text(0) );
++it;
}
- QListViewItemIterator it1( m_viewCddbServer );
+ TQListViewItemIterator it1( m_viewCddbServer );
while( it1.current() ) {
cddbServer.append( it1.current()->text(0) + " " + it1.current()->text(1) + ":" + it1.current()->text(2) );
++it1;
@@ -229,8 +229,8 @@ void K3bCddbOptionTab::apply()
void K3bCddbOptionTab::slotLocalDirAdd()
{
if( !m_editLocalDir->text().isEmpty() ) {
- QString localDir( m_editLocalDir->text() );
- QListViewItemIterator it( m_viewLocalDir );
+ TQString localDir( m_editLocalDir->text() );
+ TQListViewItemIterator it( m_viewLocalDir );
while( it.current() ) {
if ( it.current()->text(0) == localDir )
return;
@@ -246,7 +246,7 @@ void K3bCddbOptionTab::slotLocalDirAdd()
void K3bCddbOptionTab::slotLocalDirRemove()
{
- if( QListViewItem* item = m_viewLocalDir->selectedItem() )
+ if( TQListViewItem* item = m_viewLocalDir->selectedItem() )
delete item;
enDisableButtons();
@@ -259,7 +259,7 @@ void K3bCddbOptionTab::slotCddbServerAdd()
(void)new KListViewItem( m_viewCddbServer, m_viewCddbServer->lastItem(),
m_comboCddbType->currentText(),
m_editCddbServer->text(),
- QString::number( m_editCddbPort->value() ) );
+ TQString::number( m_editCddbPort->value() ) );
enDisableButtons();
}
@@ -268,7 +268,7 @@ void K3bCddbOptionTab::slotCddbServerAdd()
void K3bCddbOptionTab::slotCddbServerRemove()
{
- if( QListViewItem* item = m_viewCddbServer->selectedItem() )
+ if( TQListViewItem* item = m_viewCddbServer->selectedItem() )
delete item;
enDisableButtons();
@@ -306,7 +306,7 @@ void K3bCddbOptionTab::slotServerTypeChanged()
void K3bCddbOptionTab::slotLocalDirDown()
{
- QListViewItem* sel = m_viewLocalDir->selectedItem();
+ TQListViewItem* sel = m_viewLocalDir->selectedItem();
m_viewLocalDir->moveItem( sel, 0, sel->nextSibling() );
m_viewLocalDir->setSelected( sel, true );
}
@@ -314,7 +314,7 @@ void K3bCddbOptionTab::slotLocalDirDown()
void K3bCddbOptionTab::slotLocalDirUp()
{
- QListViewItem* sel = m_viewLocalDir->selectedItem();
+ TQListViewItem* sel = m_viewLocalDir->selectedItem();
m_viewLocalDir->moveItem( sel, 0, sel->itemAbove()->itemAbove() );
m_viewLocalDir->setSelected( sel, true );
}
@@ -322,7 +322,7 @@ void K3bCddbOptionTab::slotLocalDirUp()
void K3bCddbOptionTab::slotCddbServerDown()
{
- QListViewItem* sel = m_viewCddbServer->selectedItem();
+ TQListViewItem* sel = m_viewCddbServer->selectedItem();
m_viewCddbServer->moveItem( sel, 0, sel->nextSibling() );
m_viewCddbServer->setSelected( sel, true );
}
@@ -330,7 +330,7 @@ void K3bCddbOptionTab::slotCddbServerDown()
void K3bCddbOptionTab::slotCddbServerUp()
{
- QListViewItem* sel = m_viewCddbServer->selectedItem();
+ TQListViewItem* sel = m_viewCddbServer->selectedItem();
m_viewCddbServer->moveItem( sel, 0, sel->itemAbove()->itemAbove() );
m_viewCddbServer->setSelected( sel, true );
}
diff --git a/src/option/k3bcddboptiontab.h b/src/option/k3bcddboptiontab.h
index bc89259..2633b0a 100644
--- a/src/option/k3bcddboptiontab.h
+++ b/src/option/k3bcddboptiontab.h
@@ -22,9 +22,10 @@
class K3bCddbOptionTab : public base_K3bCddbOptionTab
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bCddbOptionTab( QWidget* parent = 0, const char* name = 0 );
+ K3bCddbOptionTab( TQWidget* tqparent = 0, const char* name = 0 );
~K3bCddbOptionTab();
public slots:
diff --git a/src/option/k3bdeviceoptiontab.cpp b/src/option/k3bdeviceoptiontab.cpp
index 65607c6..8931fe7 100644
--- a/src/option/k3bdeviceoptiontab.cpp
+++ b/src/option/k3bdeviceoptiontab.cpp
@@ -19,11 +19,11 @@
#include <k3bglobals.h>
#include <k3bcore.h>
-#include <qlabel.h>
-#include <qstring.h>
-#include <qlayout.h>
-#include <qcursor.h>
-#include <qapplication.h>
+#include <tqlabel.h>
+#include <tqstring.h>
+#include <tqlayout.h>
+#include <tqcursor.h>
+#include <tqapplication.h>
#include <kapplication.h>
#include <kdialog.h>
@@ -32,18 +32,18 @@
#include <kstandarddirs.h>
-K3bDeviceOptionTab::K3bDeviceOptionTab( QWidget* parent, const char* name )
- : QWidget( parent, name )
+K3bDeviceOptionTab::K3bDeviceOptionTab( TQWidget* tqparent, const char* name )
+ : TQWidget( tqparent, name )
{
- QGridLayout* frameLayout = new QGridLayout( this );
+ TQGridLayout* frameLayout = new TQGridLayout( this );
frameLayout->setSpacing( KDialog::spacingHint() );
frameLayout->setMargin( 0 );
// Info Label
// ------------------------------------------------
- m_labelDevicesInfo = new QLabel( this, "m_labelDevicesInfo" );
- m_labelDevicesInfo->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
+ m_labelDevicesInfo = new TQLabel( this, "m_labelDevicesInfo" );
+ m_labelDevicesInfo->tqsetAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter | TQLabel::AlignLeft ) );
m_labelDevicesInfo->setText( i18n( "K3b tries to detect all your devices properly. "
"You can add devices that have not been detected and change "
"the black values by clicking in the list. If K3b is unable "
@@ -56,7 +56,7 @@ K3bDeviceOptionTab::K3bDeviceOptionTab( QWidget* parent, const char* name )
frameLayout->addWidget( m_labelDevicesInfo, 0, 0 );
frameLayout->addWidget( m_deviceWidget, 1, 0 );
- connect( m_deviceWidget, SIGNAL(refreshButtonClicked()), this, SLOT(slotRefreshButtonClicked()) );
+ connect( m_deviceWidget, TQT_SIGNAL(refreshButtonClicked()), this, TQT_SLOT(slotRefreshButtonClicked()) );
}
@@ -84,11 +84,11 @@ void K3bDeviceOptionTab::saveDevices()
void K3bDeviceOptionTab::slotRefreshButtonClicked()
{
- QApplication::setOverrideCursor( QCursor(Qt::WaitCursor) );
+ TQApplication::setOverrideCursor( TQCursor(TQt::WaitCursor) );
k3bcore->deviceManager()->clear();
k3bcore->deviceManager()->scanBus();
m_deviceWidget->init();
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
}
#include "k3bdeviceoptiontab.moc"
diff --git a/src/option/k3bdeviceoptiontab.h b/src/option/k3bdeviceoptiontab.h
index 492b421..7e900ba 100644
--- a/src/option/k3bdeviceoptiontab.h
+++ b/src/option/k3bdeviceoptiontab.h
@@ -17,18 +17,19 @@
#ifndef K3B_DEVICE_OPTIONTAB_H
#define K3B_DEVICE_OPTIONTAB_H
-#include <qwidget.h>
+#include <tqwidget.h>
-class QLabel;
+class TQLabel;
class K3bDeviceWidget;
-class K3bDeviceOptionTab : public QWidget
+class K3bDeviceOptionTab : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDeviceOptionTab( QWidget*, const char* name = 0 );
+ K3bDeviceOptionTab( TQWidget*, const char* name = 0 );
~K3bDeviceOptionTab();
void readDevices();
@@ -38,7 +39,7 @@ Q_OBJECT
void slotRefreshButtonClicked();
private:
- QLabel* m_labelDevicesInfo;
+ TQLabel* m_labelDevicesInfo;
K3bDeviceWidget* m_deviceWidget;
};
diff --git a/src/option/k3bdevicewidget.cpp b/src/option/k3bdevicewidget.cpp
index d7d1e36..2be5054 100644
--- a/src/option/k3bdevicewidget.cpp
+++ b/src/option/k3bdevicewidget.cpp
@@ -31,16 +31,16 @@
#include <kstandarddirs.h>
#include <kio/global.h>
-#include <qgroupbox.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qvariant.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qheader.h>
-#include <qstring.h>
-#include <qcolor.h>
-#include <qptrlist.h>
+#include <tqgroupbox.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqvariant.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqheader.h>
+#include <tqstring.h>
+#include <tqcolor.h>
+#include <tqptrlist.h>
class K3bDeviceWidget::PrivateTempDevice
@@ -54,7 +54,7 @@ public:
}
K3bDevice::Device* device;
- QString cdrdaoDriver;
+ TQString cdrdaoDriver;
bool cdTextCapable;
bool writer;
};
@@ -63,21 +63,21 @@ public:
class K3bDeviceWidget::PrivateDeviceViewItem1 : public K3bListViewItem
{
public:
- PrivateDeviceViewItem1( int type, PrivateTempDevice* dev, QListView* view, QListViewItem* after )
+ PrivateDeviceViewItem1( int type, PrivateTempDevice* dev, TQListView* view, TQListViewItem* after )
: K3bListViewItem( view, after ),
m_type(type) {
this->dev = dev;
init();
}
- PrivateDeviceViewItem1( int type, PrivateTempDevice* dev, QListViewItem* item, QListViewItem* after )
+ PrivateDeviceViewItem1( int type, PrivateTempDevice* dev, TQListViewItem* item, TQListViewItem* after )
: K3bListViewItem( item, after ),
m_type(type) {
this->dev = dev;
init();
}
- void setText(int col, const QString& text) {
+ void setText(int col, const TQString& text) {
if( col == 1 ) {
switch(m_type) {
case t_cdrdaoDriver:
@@ -91,7 +91,7 @@ public:
}
}
- QString text( int col ) const {
+ TQString text( int col ) const {
switch(m_type) {
case t_cdrdaoDriver:
return (col == 0 ? i18n("Cdrdao driver:") : dev->cdrdaoDriver );
@@ -114,8 +114,8 @@ public:
private:
void init() {
- static QStringList l;
- static QStringList l2;
+ static TQStringList l;
+ static TQStringList l2;
switch(m_type) {
case t_cdrdaoDriver:
@@ -144,23 +144,23 @@ private:
-K3bDeviceWidget::K3bDeviceWidget( K3bDevice::DeviceManager* manager, QWidget *parent, const char *name )
- : QWidget( parent, name ), m_deviceManager( manager )
+K3bDeviceWidget::K3bDeviceWidget( K3bDevice::DeviceManager* manager, TQWidget *tqparent, const char *name )
+ : TQWidget( tqparent, name ), m_deviceManager( manager )
{
- QGridLayout* frameLayout = new QGridLayout( this );
+ TQGridLayout* frameLayout = new TQGridLayout( this );
frameLayout->setSpacing( KDialog::spacingHint() );
frameLayout->setMargin( 0 );
// buttons
// ------------------------------------------------
- QGridLayout* refreshButtonGrid = new QGridLayout;
+ TQGridLayout* refreshButtonGrid = new TQGridLayout;
refreshButtonGrid->setSpacing( KDialog::spacingHint() );
refreshButtonGrid->setMargin(0);
- m_buttonRefreshDevices = new QPushButton( i18n( "Refresh" ), this, "m_buttonRefreshDevices" );
- m_buttonAddDevice = new QPushButton( i18n( "Add Device..." ), this, "m_buttonAddDevice" );
- QToolTip::add( m_buttonRefreshDevices, i18n( "Rescan the devices" ) );
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ m_buttonRefreshDevices = new TQPushButton( i18n( "Refresh" ), this, "m_buttonRefreshDevices" );
+ m_buttonAddDevice = new TQPushButton( i18n( "Add Device..." ), this, "m_buttonAddDevice" );
+ TQToolTip::add( m_buttonRefreshDevices, i18n( "Rescan the devices" ) );
+ TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
refreshButtonGrid->addItem( spacer, 0, 0 );
refreshButtonGrid->addWidget( m_buttonRefreshDevices, 0, 2 );
refreshButtonGrid->addWidget( m_buttonAddDevice, 0, 1 );
@@ -169,9 +169,9 @@ K3bDeviceWidget::K3bDeviceWidget( K3bDevice::DeviceManager* manager, QWidget *pa
// Devices Box
// ------------------------------------------------
- QGroupBox* groupDevices = new QGroupBox( 1, Qt::Vertical, i18n( "CD/DVD Drives" ), this );
- groupDevices->layout()->setSpacing( KDialog::spacingHint() );
- groupDevices->layout()->setMargin( KDialog::marginHint() );
+ TQGroupBox* groupDevices = new TQGroupBox( 1, Qt::Vertical, i18n( "CD/DVD Drives" ), this );
+ groupDevices->tqlayout()->setSpacing( KDialog::spacingHint() );
+ groupDevices->tqlayout()->setMargin( KDialog::marginHint() );
m_viewDevices = new K3bListView( groupDevices, "m_viewDevicesReader" );
m_viewDevices->addColumn( "V" );
@@ -180,8 +180,8 @@ K3bDeviceWidget::K3bDeviceWidget( K3bDevice::DeviceManager* manager, QWidget *pa
m_viewDevices->header()->hide();
m_viewDevices->setSorting( -1 );
m_viewDevices->setDoubleClickForEdit(false);
- m_viewDevices->setAlternateBackground( QColor() );
- m_viewDevices->setSelectionMode( QListView::NoSelection );
+ m_viewDevices->setAlternateBackground( TQColor() );
+ m_viewDevices->setSelectionMode( TQListView::NoSelection );
m_viewDevices->setFullWidth(true);
// ------------------------------------------------
@@ -198,10 +198,10 @@ K3bDeviceWidget::K3bDeviceWidget( K3bDevice::DeviceManager* manager, QWidget *pa
// connections
// ------------------------------------------------
- // connect( m_buttonRefreshDevices, SIGNAL(clicked()), this, SLOT(slotRefreshDevices()) );
- connect( m_buttonRefreshDevices, SIGNAL(clicked()), this, SIGNAL(refreshButtonClicked()) );
- connect( m_buttonAddDevice, SIGNAL(clicked()), this, SLOT(slotNewDevice()) );
- connect( m_deviceManager, SIGNAL(changed()), this, SLOT(init()) );
+ // connect( m_buttonRefreshDevices, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRefreshDevices()) );
+ connect( m_buttonRefreshDevices, TQT_SIGNAL(clicked()), this, TQT_SIGNAL(refreshButtonClicked()) );
+ connect( m_buttonAddDevice, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewDevice()) );
+ connect( m_deviceManager, TQT_SIGNAL(changed()), this, TQT_SLOT(init()) );
// ------------------------------------------------
}
@@ -218,7 +218,7 @@ void K3bDeviceWidget::init()
m_tempDevices.clear();
// add the reading devices
- for( QPtrListIterator<K3bDevice::Device> it( m_deviceManager->allDevices() ); *it; ++it )
+ for( TQPtrListIterator<K3bDevice::Device> it( m_deviceManager->allDevices() ); *it; ++it )
m_tempDevices.append( new PrivateTempDevice( *it ) );
updateDeviceListViews();
@@ -229,19 +229,19 @@ void K3bDeviceWidget::updateDeviceListViews()
{
m_viewDevices->clear();
- // create the parent view items
+ // create the tqparent view items
// -----------------------------------------
- m_writerParentViewItem = new QListViewItem( m_viewDevices, i18n("Writer Drives") );
+ m_writerParentViewItem = new TQListViewItem( m_viewDevices, i18n("Writer Drives") );
m_writerParentViewItem->setPixmap( 0, SmallIcon( "cdwriter_unmount" ) );
// spacer item
- (void)new QListViewItem( m_viewDevices );
- m_readerParentViewItem = new QListViewItem( m_viewDevices, i18n("Readonly Drives") );
+ (void)new TQListViewItem( m_viewDevices );
+ m_readerParentViewItem = new TQListViewItem( m_viewDevices, i18n("Readonly Drives") );
m_readerParentViewItem->setPixmap( 0, SmallIcon( "cdrom_unmount" ) );
// -----------------------------------------
- QFont fBold( m_viewDevices->font() );
+ TQFont fBold( m_viewDevices->font() );
fBold.setBold(true);
- QFont fItalic( m_viewDevices->font() );
+ TQFont fItalic( m_viewDevices->font() );
fItalic.setItalic(true);
PrivateTempDevice* dev = m_tempDevices.first();
@@ -254,30 +254,30 @@ void K3bDeviceWidget::updateDeviceListViews()
// create the read-only info items
K3bListViewItem* systemDeviceItem = new K3bListViewItem( devRoot, i18n("System device name:") );
if( dev->device->interfaceType() == K3bDevice::SCSI )
- systemDeviceItem->setText( 1, QString("%1 (%2)").arg(dev->device->devicename()).arg(dev->device->busTargetLun()) );
+ systemDeviceItem->setText( 1, TQString("%1 (%2)").tqarg(dev->device->devicename()).tqarg(dev->device->busTargetLun()) );
else
systemDeviceItem->setText( 1, dev->device->devicename() );
- systemDeviceItem->setForegroundColor( 1, palette().disabled().foreground() );
+ systemDeviceItem->setForegroundColor( 1, tqpalette().disabled().foreground() );
K3bListViewItem* interfaceItem = new K3bListViewItem( devRoot, systemDeviceItem,
i18n("Interface type:"),
( dev->device->interfaceType() == K3bDevice::SCSI ?
i18n("Generic SCSI") :
i18n("ATAPI") ) );
- interfaceItem->setForegroundColor( 1, palette().disabled().foreground() );
+ interfaceItem->setForegroundColor( 1, tqpalette().disabled().foreground() );
K3bListViewItem* vendorItem = new K3bListViewItem( devRoot, interfaceItem,
i18n("Vendor:"),
dev->device->vendor() );
- vendorItem->setForegroundColor( 1, palette().disabled().foreground() );
+ vendorItem->setForegroundColor( 1, tqpalette().disabled().foreground() );
K3bListViewItem* modelItem = new K3bListViewItem( devRoot, vendorItem,
i18n("Description:"),
dev->device->description() );
- modelItem->setForegroundColor( 1, palette().disabled().foreground() );
+ modelItem->setForegroundColor( 1, tqpalette().disabled().foreground() );
K3bListViewItem* versionItem = new K3bListViewItem( devRoot, modelItem,
i18n("Firmware:"),
dev->device->version() );
- versionItem->setForegroundColor( 1, palette().disabled().foreground() );
+ versionItem->setForegroundColor( 1, tqpalette().disabled().foreground() );
// drive type
@@ -285,33 +285,33 @@ void K3bDeviceWidget::updateDeviceListViews()
K3bListViewItem* typeItem = new K3bListViewItem( devRoot, versionItem,
i18n("Writes CD-R:"),
dev->device->writesCd() ? i18n("yes") : i18n("no") );
- typeItem->setForegroundColor( 1, palette().disabled().foreground() );
+ typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() );
typeItem = new K3bListViewItem( devRoot, typeItem,
i18n("Writes CD-RW:"),
dev->device->writesCdrw() ? i18n("yes") : i18n("no") );
- typeItem->setForegroundColor( 1, palette().disabled().foreground() );
+ typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() );
typeItem = new K3bListViewItem( devRoot, typeItem,
i18n("Reads DVD:"),
dev->device->readsDvd() ? i18n("yes") : i18n("no") );
- typeItem->setForegroundColor( 1, palette().disabled().foreground() );
+ typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() );
typeItem = new K3bListViewItem( devRoot, typeItem,
i18n("Writes DVD-R(W):"),
dev->device->writesDvdMinus() ? i18n("yes") : i18n("no") );
- typeItem->setForegroundColor( 1, palette().disabled().foreground() );
+ typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() );
typeItem = new K3bListViewItem( devRoot, typeItem,
i18n("Writes DVD-R Dual Layer:"),
(dev->device->type() & K3bDevice::DEVICE_DVD_R_DL)
? i18n("yes") : i18n("no") );
- typeItem->setForegroundColor( 1, palette().disabled().foreground() );
+ typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() );
typeItem = new K3bListViewItem( devRoot, typeItem,
i18n("Writes DVD+R(W):"),
dev->device->writesDvdPlus() ? i18n("yes") : i18n("no") );
- typeItem->setForegroundColor( 1, palette().disabled().foreground() );
+ typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() );
typeItem = new K3bListViewItem( devRoot, typeItem,
i18n("Writes DVD+R Double Layer:"),
(dev->device->type() & K3bDevice::DEVICE_DVD_PLUS_R_DL)
? i18n("yes") : i18n("no") );
- typeItem->setForegroundColor( 1, palette().disabled().foreground() );
+ typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() );
// --------------------------------
@@ -320,7 +320,7 @@ void K3bDeviceWidget::updateDeviceListViews()
typeItem = new K3bListViewItem( devRoot, typeItem,
i18n("Buffer Size:"),
KIO::convertSizeFromKB(dev->device->bufferSize()) );
- typeItem->setForegroundColor( 1, palette().disabled().foreground() );
+ typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() );
}
PrivateDeviceViewItem1* cdrdaoDriverItem = new PrivateDeviceViewItem1( PrivateDeviceViewItem1::t_cdrdaoDriver,
@@ -339,14 +339,14 @@ void K3bDeviceWidget::updateDeviceListViews()
typeItem = new K3bListViewItem( devRoot, cdTextItem,
i18n("Supports Burnfree:"),
dev->device->burnfree() ? i18n("yes") : i18n("no") );
- typeItem->setForegroundColor( 1, palette().disabled().foreground() );
+ typeItem->setForegroundColor( 1, tqpalette().disabled().foreground() );
// and at last the write modes
(new K3bListViewItem( devRoot,
typeItem,
i18n("Write modes:"),
- K3bDevice::writingModeString(dev->device->writingModes()) ))->setForegroundColor( 1, palette().disabled().foreground() );
+ K3bDevice::writingModeString(dev->device->writingModes()) ))->setForegroundColor( 1, tqpalette().disabled().foreground() );
}
devRoot->setOpen(true);
@@ -372,7 +372,7 @@ void K3bDeviceWidget::updateDeviceListViews()
void K3bDeviceWidget::slotNewDevice()
{
bool ok;
- QString newDevicename = KInputDialog::getText( i18n("Location of New Drive"),
+ TQString newDevicename = KInputDialog::getText( i18n("Location of New Drive"),
i18n("Please enter the device name where K3b should search\nfor a new drive (example: /dev/cdrom):"),
"/dev/", &ok, this );
@@ -383,7 +383,7 @@ void K3bDeviceWidget::slotNewDevice()
updateDeviceListViews();
}
else
- KMessageBox::error( this, i18n("Could not find an additional device at\n%1").arg(newDevicename), i18n("Error"), false );
+ KMessageBox::error( this, i18n("Could not find an additional device at\n%1").tqarg(newDevicename), i18n("Error"), false );
}
}
diff --git a/src/option/k3bdevicewidget.h b/src/option/k3bdevicewidget.h
index a874c94..b4e1590 100644
--- a/src/option/k3bdevicewidget.h
+++ b/src/option/k3bdevicewidget.h
@@ -17,34 +17,35 @@
#ifndef K3BDEVICEWIDGET_H
#define K3BDEVICEWIDGET_H
-#include <qwidget.h>
-#include <qptrlist.h>
+#include <tqwidget.h>
+#include <tqptrlist.h>
#include "k3bdevice.h"
#include "k3bdevicemanager.h"
-class QComboBox;
-class QLabel;
-class QGroupBox;
-class QPushButton;
-class QCheckBox;
+class TQComboBox;
+class TQLabel;
+class TQGroupBox;
+class TQPushButton;
+class TQCheckBox;
class K3bListView;
-class QString;
+class TQString;
class KIntNumInput;
-class QFrame;
-class QListViewItem;
-class QString;
-class QLineEdit;
+class TQFrame;
+class TQListViewItem;
+class TQString;
+class TQLineEdit;
/**
*@author Sebastian Trueg
*/
-class K3bDeviceWidget : public QWidget
+class K3bDeviceWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDeviceWidget( K3bDevice::DeviceManager*, QWidget *parent = 0, const char *name = 0 );
+ K3bDeviceWidget( K3bDevice::DeviceManager*, TQWidget *tqparent = 0, const char *name = 0 );
~K3bDeviceWidget();
public slots:
@@ -63,16 +64,16 @@ class K3bDeviceWidget : public QWidget
class PrivateDeviceViewItem1;
/** list to save changes to the devices before applying */
- QPtrList<PrivateTempDevice> m_tempDevices;
+ TQPtrList<PrivateTempDevice> m_tempDevices;
- QListViewItem* m_writerParentViewItem;
- QListViewItem* m_readerParentViewItem;
+ TQListViewItem* m_writerParentViewItem;
+ TQListViewItem* m_readerParentViewItem;
K3bDevice::DeviceManager* m_deviceManager;
K3bListView* m_viewDevices;
- QPushButton* m_buttonRefreshDevices;
- QPushButton* m_buttonAddDevice;
+ TQPushButton* m_buttonRefreshDevices;
+ TQPushButton* m_buttonAddDevice;
};
#endif
diff --git a/src/option/k3bexternalbinoptiontab.cpp b/src/option/k3bexternalbinoptiontab.cpp
index d5c78bc..6be5b19 100644
--- a/src/option/k3bexternalbinoptiontab.cpp
+++ b/src/option/k3bexternalbinoptiontab.cpp
@@ -24,35 +24,35 @@
#include <kiconloader.h>
#include <klistview.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qvariant.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qfile.h>
-#include <qptrlist.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqvariant.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqfile.h>
+#include <tqptrlist.h>
-K3bExternalBinOptionTab::K3bExternalBinOptionTab( K3bExternalBinManager* manager, QWidget* parent, const char* name )
- : QWidget( parent, name )
+K3bExternalBinOptionTab::K3bExternalBinOptionTab( K3bExternalBinManager* manager, TQWidget* tqparent, const char* name )
+ : TQWidget( tqparent, name )
{
m_manager = manager;
- QGridLayout* frameLayout = new QGridLayout( this );
+ TQGridLayout* frameLayout = new TQGridLayout( this );
frameLayout->setSpacing( KDialog::spacingHint() );
frameLayout->setMargin( 0 );
m_externalBinWidget = new K3bExternalBinWidget( manager, this );
frameLayout->addWidget( m_externalBinWidget, 1, 0 );
- QLabel* m_labelInfo = new QLabel( this, "m_labelInfo" );
+ TQLabel* m_labelInfo = new TQLabel( this, "m_labelInfo" );
m_labelInfo->setText( i18n( "Specify the paths to the external programs that K3b needs to work properly, "
"or press \"Search\" to let K3b search for the programs." ) );
m_labelInfo->setScaledContents( false );
- m_labelInfo->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
+ m_labelInfo->tqsetAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter | TQLabel::AlignLeft ) );
frameLayout->addWidget( m_labelInfo, 0, 0 );
}
diff --git a/src/option/k3bexternalbinoptiontab.h b/src/option/k3bexternalbinoptiontab.h
index 8622579..9a1c3d9 100644
--- a/src/option/k3bexternalbinoptiontab.h
+++ b/src/option/k3bexternalbinoptiontab.h
@@ -17,23 +17,24 @@
#ifndef K3B_EXTERNALBIN_OPTIONTAB_H
#define K3B_EXTERNALBIN_OPTIONTAB_H
-#include <qwidget.h>
+#include <tqwidget.h>
-class QPushButton;
-class QListViewItem;
+class TQPushButton;
+class TQListViewItem;
class KListView;
class K3bExternalBinManager;
class K3bExternalBinWidget;
-class K3bExternalBinOptionTab : public QWidget
+class K3bExternalBinOptionTab : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bExternalBinOptionTab( K3bExternalBinManager*, QWidget*, const char* name = 0 );
+ K3bExternalBinOptionTab( K3bExternalBinManager*, TQWidget*, const char* name = 0 );
~K3bExternalBinOptionTab();
void readSettings();
diff --git a/src/option/k3bexternalbinwidget.cpp b/src/option/k3bexternalbinwidget.cpp
index e1c62bb..32b8814 100644
--- a/src/option/k3bexternalbinwidget.cpp
+++ b/src/option/k3bexternalbinwidget.cpp
@@ -16,22 +16,22 @@
#include "k3bexternalbinwidget.h"
#include "k3bexternalbinmanager.h"
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <kdebug.h>
-#include <qtabwidget.h>
-#include <qlayout.h>
-#include <qheader.h>
-#include <qlabel.h>
-#include <qstringlist.h>
-#include <qmap.h>
-#include <qregexp.h>
-#include <qfont.h>
-#include <qpainter.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qcursor.h>
-#include <qapplication.h>
-#include <qbitmap.h>
+#include <tqtabwidget.h>
+#include <tqlayout.h>
+#include <tqheader.h>
+#include <tqlabel.h>
+#include <tqstringlist.h>
+#include <tqmap.h>
+#include <tqregexp.h>
+#include <tqfont.h>
+#include <tqpainter.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqcursor.h>
+#include <tqapplication.h>
+#include <tqbitmap.h>
#include <kdialog.h>
#include <kiconloader.h>
@@ -43,10 +43,10 @@
-K3bExternalBinWidget::K3bExternalProgramViewItem::K3bExternalProgramViewItem( K3bExternalProgram* p, QListView* parent )
- : K3bListViewItem( parent ), m_program(p)
+K3bExternalBinWidget::K3bExternalProgramViewItem::K3bExternalProgramViewItem( K3bExternalProgram* p, TQListView* tqparent )
+ : K3bListViewItem( tqparent ), m_program(p)
{
- QFont f( listView()->font() );
+ TQFont f( listView()->font() );
f.setBold(true);
setFont( 0, f );
setBackgroundColor( 0, KGlobalSettings::alternateBackgroundColor() );
@@ -57,8 +57,8 @@ K3bExternalBinWidget::K3bExternalProgramViewItem::K3bExternalProgramViewItem( K3
}
-K3bExternalBinWidget::K3bExternalBinViewItem::K3bExternalBinViewItem( K3bExternalBin* bin, K3bExternalProgramViewItem* parent )
- : K3bListViewItem( parent ), m_bin( bin ), m_parent( parent )
+K3bExternalBinWidget::K3bExternalBinViewItem::K3bExternalBinViewItem( K3bExternalBin* bin, K3bExternalProgramViewItem* tqparent )
+ : K3bListViewItem( tqparent ), m_bin( bin ), m_parent( tqparent )
{
setText( 0, bin->path );
setText( 1, bin->version );
@@ -70,10 +70,10 @@ K3bExternalBinWidget::K3bExternalBinViewItem::K3bExternalBinViewItem( K3bExterna
void K3bExternalBinWidget::K3bExternalBinViewItem::setDefault( bool b )
{
- static QPixmap s_emptyPix( (int)KIcon::SizeSmall, (int)KIcon::SizeSmall );
+ static TQPixmap s_emptyPix( (int)KIcon::SizeSmall, (int)KIcon::SizeSmall );
static bool s_emptyPixInitialized = false;
if( !s_emptyPixInitialized ) {
- s_emptyPix.setMask( QBitmap( (int)KIcon::SizeSmall, (int)KIcon::SizeSmall, true ) );
+ s_emptyPix.setMask( TQBitmap( (int)KIcon::SizeSmall, (int)KIcon::SizeSmall, true ) );
s_emptyPixInitialized = true;
}
@@ -95,15 +95,15 @@ void K3bExternalBinWidget::K3bExternalBinViewItem::setDefault( bool b )
// //////////////////////////////////////////////////////////
-K3bExternalBinWidget::K3bExternalBinWidget( K3bExternalBinManager* manager, QWidget* parent, const char* name )
- : QWidget( parent, name ), m_manager( manager )
+K3bExternalBinWidget::K3bExternalBinWidget( K3bExternalBinManager* manager, TQWidget* tqparent, const char* name )
+ : TQWidget( tqparent, name ), m_manager( manager )
{
- QGridLayout* mainGrid = new QGridLayout( this );
+ TQGridLayout* mainGrid = new TQGridLayout( this );
mainGrid->setMargin( 0 );
mainGrid->setSpacing( KDialog::spacingHint() );
- m_mainTabWidget = new QTabWidget( this );
- m_rescanButton = new QPushButton( i18n("&Search"), this );
+ m_mainTabWidget = new TQTabWidget( this );
+ m_rescanButton = new TQPushButton( i18n("&Search"), this );
mainGrid->addMultiCellWidget( m_mainTabWidget, 0, 0, 0, 1 );
mainGrid->addWidget( m_rescanButton, 1, 1 );
mainGrid->setColStretch( 0, 1 );
@@ -112,20 +112,20 @@ K3bExternalBinWidget::K3bExternalBinWidget( K3bExternalBinManager* manager, QWid
// setup program tab
// ------------------------------------------------------------
- QWidget* programTab = new QWidget( m_mainTabWidget );
- QGridLayout* programTabLayout = new QGridLayout( programTab );
+ TQWidget* programTab = new TQWidget( m_mainTabWidget );
+ TQGridLayout* programTabLayout = new TQGridLayout( programTab );
programTabLayout->setMargin( KDialog::marginHint() );
programTabLayout->setSpacing( KDialog::spacingHint() );
m_programView = new K3bListView( programTab );
- m_defaultButton = new QPushButton( i18n("Set Default"), programTab );
- QToolTip::add( m_defaultButton, i18n("Change the versions K3b should use.") );
- QWhatsThis::add( m_defaultButton, i18n("<p>If K3b found more than one installed version of a program "
+ m_defaultButton = new TQPushButton( i18n("Set Default"), programTab );
+ TQToolTip::add( m_defaultButton, i18n("Change the versions K3b should use.") );
+ TQWhatsThis::add( m_defaultButton, i18n("<p>If K3b found more than one installed version of a program "
"it will choose one as the <em>default</em> which will be used "
"to do the work. If you want to change the default select the "
"wanted version and press this button.") );
programTabLayout->addMultiCellWidget( m_programView, 1, 1, 0, 1 );
programTabLayout->addWidget( m_defaultButton, 0, 1 );
- programTabLayout->addWidget( new QLabel( i18n("Use the 'Default' button to change the versions K3b should use."),
+ programTabLayout->addWidget( new TQLabel( i18n("Use the 'Default' button to change the versions K3b should use."),
programTab ), 0, 0 );
programTabLayout->setColStretch( 0, 1 );
programTabLayout->setRowStretch( 1, 1 );
@@ -135,7 +135,7 @@ K3bExternalBinWidget::K3bExternalBinWidget( K3bExternalBinManager* manager, QWid
m_programView->addColumn( i18n("Features") );
m_programView->setAllColumnsShowFocus(true);
m_programView->setFullWidth(true);
- m_programView->setAlternateBackground( QColor() );
+ m_programView->setAlternateBackground( TQColor() );
#if KDE_IS_VERSION(3,4,0)
m_programView->setShadeSortColumn( false );
#endif
@@ -144,13 +144,13 @@ K3bExternalBinWidget::K3bExternalBinWidget( K3bExternalBinManager* manager, QWid
// setup parameters tab
// ------------------------------------------------------------
- QWidget* parametersTab = new QWidget( m_mainTabWidget );
- QGridLayout* parametersTabLayout = new QGridLayout( parametersTab );
+ TQWidget* parametersTab = new TQWidget( m_mainTabWidget );
+ TQGridLayout* parametersTabLayout = new TQGridLayout( parametersTab );
parametersTabLayout->setMargin( KDialog::marginHint() );
parametersTabLayout->setSpacing( KDialog::spacingHint() );
m_parameterView = new K3bListView( parametersTab );
parametersTabLayout->addWidget( m_parameterView, 1, 0 );
- parametersTabLayout->addWidget( new QLabel( i18n("User parameters have to be separated by space."), parametersTab ), 0, 0 );
+ parametersTabLayout->addWidget( new TQLabel( i18n("User parameters have to be separated by space."), parametersTab ), 0, 0 );
parametersTabLayout->setRowStretch( 1, 1 );
@@ -158,7 +158,7 @@ K3bExternalBinWidget::K3bExternalBinWidget( K3bExternalBinManager* manager, QWid
m_parameterView->addColumn( i18n("Parameters") );
m_parameterView->setAllColumnsShowFocus(true);
m_parameterView->setFullWidth(true);
- m_parameterView->setDefaultRenameAction( QListView::Accept );
+ m_parameterView->setDefaultRenameAction( TQListView::Accept );
m_parameterView->setDoubleClickForEdit( false );
m_mainTabWidget->addTab( parametersTab, i18n("User Parameters") );
@@ -166,13 +166,13 @@ K3bExternalBinWidget::K3bExternalBinWidget( K3bExternalBinManager* manager, QWid
// setup search path tab
// ------------------------------------------------------------
- QWidget* searchPathTab = new QWidget( m_mainTabWidget );
- QGridLayout* searchPathTabLayout = new QGridLayout( searchPathTab );
+ TQWidget* searchPathTab = new TQWidget( m_mainTabWidget );
+ TQGridLayout* searchPathTabLayout = new TQGridLayout( searchPathTab );
searchPathTabLayout->setMargin( KDialog::marginHint() );
searchPathTabLayout->setSpacing( KDialog::spacingHint() );
m_searchPathBox = new KEditListBox( i18n("Search Path"), searchPathTab, "searchPathBox", true );
searchPathTabLayout->addWidget( m_searchPathBox, 0, 0 );
- searchPathTabLayout->addWidget( new QLabel( i18n("<qt><b>Hint:</b> to force K3b to use another than the "
+ searchPathTabLayout->addWidget( new TQLabel( i18n("<qt><b>Hint:</b> to force K3b to use another than the "
"default name for the executable specify it in the search path.</qt>"),
searchPathTab ), 1, 0 );
@@ -184,9 +184,9 @@ K3bExternalBinWidget::K3bExternalBinWidget( K3bExternalBinManager* manager, QWid
m_programRootItems.setAutoDelete( true );
- connect( m_rescanButton, SIGNAL(clicked()), this, SLOT(rescan()) );
- connect( m_defaultButton, SIGNAL(clicked()), this, SLOT(slotSetDefaultButtonClicked()) );
- connect( m_programView, SIGNAL(selectionChanged(QListViewItem*)), this, SLOT(slotProgramSelectionChanged(QListViewItem*)) );
+ connect( m_rescanButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(rescan()) );
+ connect( m_defaultButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSetDefaultButtonClicked()) );
+ connect( m_programView, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotProgramSelectionChanged(TQListViewItem*)) );
slotProgramSelectionChanged( 0 );
}
@@ -198,11 +198,11 @@ K3bExternalBinWidget::~K3bExternalBinWidget()
void K3bExternalBinWidget::rescan()
{
- QApplication::setOverrideCursor( QCursor(Qt::WaitCursor) );
+ TQApplication::setOverrideCursor( TQCursor(TQt::WaitCursor) );
saveSearchPath();
m_manager->search();
load();
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
}
@@ -212,14 +212,14 @@ void K3bExternalBinWidget::load()
m_parameterView->clear();
// load programs
- const QMap<QString, K3bExternalProgram*>& map = m_manager->programs();
- for( QMap<QString, K3bExternalProgram*>::const_iterator it = map.begin(); it != map.end(); ++it ) {
+ const TQMap<TQString, K3bExternalProgram*>& map = m_manager->programs();
+ for( TQMap<TQString, K3bExternalProgram*>::const_iterator it = map.begin(); it != map.end(); ++it ) {
K3bExternalProgram* p = it.data();
K3bExternalProgramViewItem* pV = new K3bExternalProgramViewItem( p, m_programView );
m_programRootItems.append( pV );
// populate it
- QPtrListIterator<K3bExternalBin> binIt( p->bins() );
+ TQPtrListIterator<K3bExternalBin> binIt( p->bins() );
for( ; binIt.current(); ++binIt ) {
K3bExternalBin* b = *binIt;
@@ -255,11 +255,11 @@ void K3bExternalBinWidget::save()
// save the default programs
- QListViewItemIterator progIt( m_programView );
+ TQListViewItemIterator progIt( m_programView );
while( progIt.current() ) {
if( K3bExternalBinViewItem* bV = dynamic_cast<K3bExternalBinViewItem*>( progIt.current() ) ) {
if( bV->isDefault() )
- bV->parentProgramItem()->program()->setDefault( bV->bin() );
+ bV->tqparentProgramItem()->program()->setDefault( bV->bin() );
}
++progIt;
@@ -267,11 +267,11 @@ void K3bExternalBinWidget::save()
// save the user parameters
- QListViewItemIterator paraIt( m_parameterView );
- QRegExp reSpace( "\\s" );
+ TQListViewItemIterator paraIt( m_parameterView );
+ TQRegExp reSpace( "\\s" );
while( paraIt.current() ) {
K3bExternalProgramViewItem* pV = (K3bExternalProgramViewItem*)paraIt.current();
- pV->program()->setUserParameters( QStringList::split( reSpace, pV->text(1) ) );
+ pV->program()->setUserParameters( TQStringList::split( reSpace, pV->text(1) ) );
++paraIt;
}
@@ -290,9 +290,9 @@ void K3bExternalBinWidget::slotSetDefaultButtonClicked()
K3bExternalBinViewItem* item = dynamic_cast<K3bExternalBinViewItem*>( m_programView->selectedItem() );
if( item ) {
// remove all default flags
- K3bExternalBinViewItem* bi = (K3bExternalBinViewItem*)item->parentProgramItem()->firstChild();
- QListViewItemIterator it( bi );
- while( it.current() && it.current()->parent() == item->parentProgramItem() ) {
+ K3bExternalBinViewItem* bi = (K3bExternalBinViewItem*)item->tqparentProgramItem()->firstChild();
+ TQListViewItemIterator it( bi );
+ while( it.current() && it.current()->tqparent() == item->tqparentProgramItem() ) {
((K3bExternalBinViewItem*)it.current())->setDefault(false);
++it;
}
@@ -302,7 +302,7 @@ void K3bExternalBinWidget::slotSetDefaultButtonClicked()
}
-void K3bExternalBinWidget::slotProgramSelectionChanged( QListViewItem* item )
+void K3bExternalBinWidget::slotProgramSelectionChanged( TQListViewItem* item )
{
K3bExternalBinViewItem* bV = dynamic_cast<K3bExternalBinViewItem*>( item );
if( bV ) {
diff --git a/src/option/k3bexternalbinwidget.h b/src/option/k3bexternalbinwidget.h
index fe2e163..14fab6a 100644
--- a/src/option/k3bexternalbinwidget.h
+++ b/src/option/k3bexternalbinwidget.h
@@ -18,26 +18,27 @@
#define K3B_EXTERNAL_BIN_WIDGET_H
-#include <qwidget.h>
-#include <qptrlist.h>
+#include <tqwidget.h>
+#include <tqptrlist.h>
#include <k3blistview.h>
class K3bExternalBinManager;
-class QPushButton;
-class QTabWidget;
+class TQPushButton;
+class TQTabWidget;
class KEditListBox;
class K3bExternalProgram;
class K3bExternalBin;
-class K3bExternalBinWidget : public QWidget
+class K3bExternalBinWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bExternalBinWidget( K3bExternalBinManager*, QWidget* parent = 0, const char* name = 0 );
+ K3bExternalBinWidget( K3bExternalBinManager*, TQWidget* tqparent = 0, const char* name = 0 );
~K3bExternalBinWidget();
class K3bExternalBinViewItem;
@@ -50,28 +51,28 @@ class K3bExternalBinWidget : public QWidget
private slots:
void slotSetDefaultButtonClicked();
- void slotProgramSelectionChanged( QListViewItem* );
+ void slotProgramSelectionChanged( TQListViewItem* );
void saveSearchPath();
private:
K3bExternalBinManager* m_manager;
- QTabWidget* m_mainTabWidget;
+ TQTabWidget* m_mainTabWidget;
K3bListView* m_programView;
K3bListView* m_parameterView;
KEditListBox* m_searchPathBox;
- QPushButton* m_defaultButton;
- QPushButton* m_rescanButton;
+ TQPushButton* m_defaultButton;
+ TQPushButton* m_rescanButton;
- QPtrList<K3bExternalProgramViewItem> m_programRootItems;
+ TQPtrList<K3bExternalProgramViewItem> m_programRootItems;
};
class K3bExternalBinWidget::K3bExternalProgramViewItem : public K3bListViewItem
{
public:
- K3bExternalProgramViewItem( K3bExternalProgram* p, QListView* parent );
+ K3bExternalProgramViewItem( K3bExternalProgram* p, TQListView* tqparent );
K3bExternalProgram* program() const { return m_program; }
@@ -84,10 +85,10 @@ class K3bExternalBinWidget::K3bExternalProgramViewItem : public K3bListViewItem
class K3bExternalBinWidget::K3bExternalBinViewItem : public K3bListViewItem
{
public:
- K3bExternalBinViewItem( K3bExternalBin* bin, K3bExternalProgramViewItem* parent );
+ K3bExternalBinViewItem( K3bExternalBin* bin, K3bExternalProgramViewItem* tqparent );
K3bExternalBin* bin() const { return m_bin; }
- K3bExternalProgramViewItem* parentProgramItem() const { return m_parent; }
+ K3bExternalProgramViewItem* tqparentProgramItem() const { return m_parent; }
bool isDefault() const { return m_default; }
void setDefault( bool b );
diff --git a/src/option/k3bmiscoptiontab.cpp b/src/option/k3bmiscoptiontab.cpp
index d81e565..d6c7de0 100644
--- a/src/option/k3bmiscoptiontab.cpp
+++ b/src/option/k3bmiscoptiontab.cpp
@@ -24,9 +24,9 @@
#include <k3binteractiondialog.h>
#include <k3bintmapcombobox.h>
-#include <qcheckbox.h>
-#include <qfileinfo.h>
-#include <qradiobutton.h>
+#include <tqcheckbox.h>
+#include <tqfileinfo.h>
+#include <tqradiobutton.h>
#include <kapplication.h>
#include <klocale.h>
@@ -38,12 +38,12 @@
#include <kcombobox.h>
-K3bMiscOptionTab::K3bMiscOptionTab(QWidget *parent, const char *name )
- : base_K3bMiscOptionTab(parent,name)
+K3bMiscOptionTab::K3bMiscOptionTab(TQWidget *tqparent, const char *name )
+ : base_K3bMiscOptionTab(tqparent,name)
{
m_editTempDir->setMode( KFile::Directory );
- connect( m_buttonConfigureAudioOutput, SIGNAL(clicked()),
- this, SLOT(slotConfigureAudioOutput()) );
+ connect( m_buttonConfigureAudioOutput, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotConfigureAudioOutput()) );
m_comboActionDialogSettings->insertItem( K3bInteractionDialog::LOAD_K3B_DEFAULTS,
i18n("Default Settings"),
@@ -80,7 +80,7 @@ void K3bMiscOptionTab::readSettings()
K3bInteractionDialog::LOAD_SAVED_SETTINGS ) );
m_checkSystemConfig->setChecked( c->readBoolEntry( "check system config", true ) );
- QString tempdir = c->readPathEntry( "Temp Dir", KGlobal::dirs()->resourceDirs( "tmp" ).first() );
+ TQString tempdir = c->readPathEntry( "Temp Dir", KGlobal::dirs()->resourceDirs( "tmp" ).first() );
m_editTempDir->setURL( tempdir );
// if( c->readEntry( "Multiple Instances", "smart" ) == "smart" )
@@ -90,10 +90,10 @@ void K3bMiscOptionTab::readSettings()
// Audio Output
m_comboAudioOutputSystem->clear();
- QPtrList<K3bPlugin> fl = k3bcore->pluginManager()->plugins( "AudioOutput" );
- for( QPtrListIterator<K3bPlugin> it( fl ); it.current(); ++it ) {
+ TQPtrList<K3bPlugin> fl = k3bcore->pluginManager()->plugins( "AudioOutput" );
+ for( TQPtrListIterator<K3bPlugin> it( fl ); it.current(); ++it ) {
K3bAudioOutputPlugin* f = static_cast<K3bAudioOutputPlugin*>( it.current() );
- m_comboAudioOutputSystem->insertItem( QString::fromLocal8Bit(f->soundSystem()) );
+ m_comboAudioOutputSystem->insertItem( TQString(TQString::fromLocal8Bit(f->soundSystem())) );
}
m_comboAudioOutputSystem->setCurrentItem( c->readEntry( "Audio Output System", "arts" ), false );
@@ -116,18 +116,18 @@ bool K3bMiscOptionTab::saveSettings()
c->writeEntry( "check system config", m_checkSystemConfig->isChecked() );
c->writeEntry( "action dialog startup settings", m_comboActionDialogSettings->selectedValue() );
- QString tempDir = m_editTempDir->url();
- QFileInfo fi( tempDir );
+ TQString tempDir = m_editTempDir->url();
+ TQFileInfo fi( tempDir );
if( fi.isRelative() ) {
fi.setFile( fi.absFilePath() );
}
if( !fi.exists() ) {
- if( KMessageBox::questionYesNo( this, i18n("Directory (%1) does not exist. Create?").arg(tempDir),
+ if( KMessageBox::questionYesNo( this, i18n("Directory (%1) does not exist. Create?").tqarg(tempDir),
i18n("Create Directory"), i18n("Create"), KStdGuiItem::cancel() ) == KMessageBox::Yes ) {
if( !KStandardDirs::makeDir( fi.absFilePath() ) ) {
- KMessageBox::error( this, i18n("Unable to create directory %1").arg(tempDir) );
+ KMessageBox::error( this, i18n("Unable to create directory %1").tqarg(tempDir) );
return false;
}
}
@@ -147,7 +147,7 @@ bool K3bMiscOptionTab::saveSettings()
// check for writing permission
if( !fi.isWritable() ) {
- KMessageBox::error( this, i18n("You do not have permission to write to %1.").arg(fi.absFilePath()) );
+ KMessageBox::error( this, i18n("You do not have permission to write to %1.").tqarg(fi.absFilePath()) );
return false;
}
@@ -178,7 +178,7 @@ bool K3bMiscOptionTab::saveSettings()
void K3bMiscOptionTab::slotConfigureAudioOutput()
{
- QString system = m_comboAudioOutputSystem->currentText();
+ TQString system = m_comboAudioOutputSystem->currentText();
if( K3bAudioOutputPlugin* plugin = K3bAudioServer::findOutputPlugin( system.local8Bit() ) ) {
k3bcore->pluginManager()->execPluginDialog( plugin, this );
}
diff --git a/src/option/k3bmiscoptiontab.h b/src/option/k3bmiscoptiontab.h
index 6e5ded6..1c5de7e 100644
--- a/src/option/k3bmiscoptiontab.h
+++ b/src/option/k3bmiscoptiontab.h
@@ -19,7 +19,7 @@
#include "base_k3bmiscoptiontab.h"
-class QCheckBox;
+class TQCheckBox;
class KURLRequester;
/**
@@ -28,9 +28,10 @@ class KURLRequester;
class K3bMiscOptionTab : public base_K3bMiscOptionTab
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bMiscOptionTab(QWidget *parent=0, const char *name=0);
+ K3bMiscOptionTab(TQWidget *tqparent=0, const char *name=0);
~K3bMiscOptionTab();
void readSettings();
diff --git a/src/option/k3bnotifyoptiontab.cpp b/src/option/k3bnotifyoptiontab.cpp
index 60ddc7c..0cc6e5d 100644
--- a/src/option/k3bnotifyoptiontab.cpp
+++ b/src/option/k3bnotifyoptiontab.cpp
@@ -21,16 +21,16 @@
#include <knotifydialog.h>
#include <kdebug.h>
-#include <qlayout.h>
+#include <tqlayout.h>
-K3bNotifyOptionTab::K3bNotifyOptionTab( QWidget* parent, const char* name )
- : QWidget( parent, name )
+K3bNotifyOptionTab::K3bNotifyOptionTab( TQWidget* tqparent, const char* name )
+ : TQWidget( tqparent, name )
{
m_notifyWidget = new KNotify::KNotifyWidget( this );
- QHBoxLayout* box = new QHBoxLayout( this );
+ TQHBoxLayout* box = new TQHBoxLayout( this );
box->addWidget( m_notifyWidget );
}
diff --git a/src/option/k3bnotifyoptiontab.h b/src/option/k3bnotifyoptiontab.h
index 03314dc..6eb3fed 100644
--- a/src/option/k3bnotifyoptiontab.h
+++ b/src/option/k3bnotifyoptiontab.h
@@ -18,19 +18,20 @@
#ifndef _K3B_NOTIFY_OPTIONTAB_H_
#define _K3B_NOTIFY_OPTIONTAB_H_
-#include <qwidget.h>
+#include <tqwidget.h>
namespace KNotify {
class KNotifyWidget;
}
-class K3bNotifyOptionTab : public QWidget
+class K3bNotifyOptionTab : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bNotifyOptionTab( QWidget* parent = 0, const char* name = 0 );
+ K3bNotifyOptionTab( TQWidget* tqparent = 0, const char* name = 0 );
~K3bNotifyOptionTab();
void readSettings();
diff --git a/src/option/k3boptiondialog.cpp b/src/option/k3boptiondialog.cpp
index d0ba7ce..91a9fb3 100644
--- a/src/option/k3boptiondialog.cpp
+++ b/src/option/k3boptiondialog.cpp
@@ -26,10 +26,10 @@
#include <k3bsystemproblemdialog.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qtabwidget.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqtabwidget.h>
#include <klocale.h>
#include <kiconloader.h>
@@ -40,8 +40,8 @@
// TODO: handle the default-settings
-K3bOptionDialog::K3bOptionDialog(QWidget *parent, const char *name, bool modal )
- : KDialogBase( IconList, i18n("Settings"), Apply|Ok|Cancel, Ok, parent,name, modal, true)
+K3bOptionDialog::K3bOptionDialog(TQWidget *tqparent, const char *name, bool modal )
+ : KDialogBase( IconList, i18n("Settings"), Apply|Ok|Cancel, Ok, tqparent,name, modal, true)
{
setupMiscPage();
setupDevicePage();
@@ -126,10 +126,10 @@ void K3bOptionDialog::slotDefault()
void K3bOptionDialog::setupBurningPage()
{
- QFrame* frame = addPage( i18n("Advanced"), i18n("Advanced Settings"),
+ TQFrame* frame = addPage( i18n("Advanced"), i18n("Advanced Settings"),
KGlobal::instance()->iconLoader()->loadIcon( "cdwriter_unmount", KIcon::NoGroup, KIcon::SizeMedium ) );
- QGridLayout* _frameLayout = new QGridLayout( frame );
+ TQGridLayout* _frameLayout = new TQGridLayout( frame );
_frameLayout->setSpacing( 0 );
_frameLayout->setMargin( 0 );
@@ -140,10 +140,10 @@ void K3bOptionDialog::setupBurningPage()
void K3bOptionDialog::setupProgramsPage()
{
- QFrame* frame = addPage( i18n("Programs"), i18n("Setup External Programs"),
+ TQFrame* frame = addPage( i18n("Programs"), i18n("Setup External Programs"),
KGlobal::instance()->iconLoader()->loadIcon( "exec", KIcon::NoGroup, KIcon::SizeMedium ) );
- QGridLayout* _frameLayout = new QGridLayout( frame );
+ TQGridLayout* _frameLayout = new TQGridLayout( frame );
_frameLayout->setSpacing( 0 );
_frameLayout->setMargin( 0 );
@@ -154,13 +154,13 @@ void K3bOptionDialog::setupProgramsPage()
void K3bOptionDialog::setupCddbPage()
{
- QFrame* frame = addPage( i18n("CDDB"), i18n("Setup the CDDB Server"),
+ TQFrame* frame = addPage( i18n("CDDB"), i18n("Setup the CDDB Server"),
KGlobal::instance()->iconLoader()->loadIcon( "connect_established", KIcon::NoGroup, KIcon::SizeMedium ) );
- QGridLayout* mainGrid = new QGridLayout( frame );
+ TQGridLayout* mainGrid = new TQGridLayout( frame );
mainGrid->setSpacing(0);
mainGrid->setMargin(0);
- // QTabWidget *_tab = new QTabWidget( frame );
+ // TQTabWidget *_tab = new TQTabWidget( frame );
m_cddbOptionTab = new K3bCddbOptionTab( frame, "cddbremotepage");
// m_cddbLocalTab = new K3bCddbLocalDBTab( frame, "cddblocalpage");
// _tab->addTab( m_cddbOptionTab, i18n("Remote") );
@@ -172,10 +172,10 @@ void K3bOptionDialog::setupCddbPage()
void K3bOptionDialog::setupDevicePage()
{
- QFrame* frame = addPage( i18n("Devices"), i18n("Setup Devices"),
+ TQFrame* frame = addPage( i18n("Devices"), i18n("Setup Devices"),
KGlobal::instance()->iconLoader()->loadIcon( "blockdevice", KIcon::NoGroup, KIcon::SizeMedium ) );
- QHBoxLayout* box = new QHBoxLayout( frame );
+ TQHBoxLayout* box = new TQHBoxLayout( frame );
box->setSpacing(0);
box->setMargin(0);
m_deviceOptionTab = new K3bDeviceOptionTab( frame, "deviceOptionTab" );
@@ -185,10 +185,10 @@ void K3bOptionDialog::setupDevicePage()
void K3bOptionDialog::setupMiscPage()
{
- QFrame* frame = addPage( i18n("Misc"), i18n("Miscellaneous Settings"),
+ TQFrame* frame = addPage( i18n("Misc"), i18n("Miscellaneous Settings"),
KGlobal::instance()->iconLoader()->loadIcon( "misc", KIcon::NoGroup, KIcon::SizeMedium ) );
- QVBoxLayout* box = new QVBoxLayout( frame );
+ TQVBoxLayout* box = new TQVBoxLayout( frame );
box->setSpacing( 0 );
box->setMargin( 0 );
@@ -199,10 +199,10 @@ void K3bOptionDialog::setupMiscPage()
void K3bOptionDialog::setupNotifyPage()
{
- QFrame* frame = addPage( i18n("Notifications"), i18n("System Notifications"),
+ TQFrame* frame = addPage( i18n("Notifications"), i18n("System Notifications"),
KGlobal::instance()->iconLoader()->loadIcon( "knotify",
KIcon::NoGroup, KIcon::SizeMedium ) );
- QVBoxLayout* box = new QVBoxLayout( frame );
+ TQVBoxLayout* box = new TQVBoxLayout( frame );
box->setSpacing( 0 );
box->setMargin( 0 );
@@ -213,10 +213,10 @@ void K3bOptionDialog::setupNotifyPage()
void K3bOptionDialog::setupPluginPage()
{
- QFrame* frame = addPage( i18n("Plugins"), i18n("K3b Plugin Configuration"),
+ TQFrame* frame = addPage( i18n("Plugins"), i18n("K3b Plugin Configuration"),
KGlobal::instance()->iconLoader()->loadIcon( "gear",
KIcon::NoGroup, KIcon::SizeMedium ) );
- QVBoxLayout* box = new QVBoxLayout( frame );
+ TQVBoxLayout* box = new TQVBoxLayout( frame );
box->setSpacing( 0 );
box->setMargin( 0 );
@@ -227,10 +227,10 @@ void K3bOptionDialog::setupPluginPage()
void K3bOptionDialog::setupThemePage()
{
- QFrame* frame = addPage( i18n("Themes"), i18n("K3b GUI Themes"),
+ TQFrame* frame = addPage( i18n("Themes"), i18n("K3b GUI Themes"),
KGlobal::instance()->iconLoader()->loadIcon( "style",
KIcon::NoGroup, KIcon::SizeMedium ) );
- QVBoxLayout* box = new QVBoxLayout( frame );
+ TQVBoxLayout* box = new TQVBoxLayout( frame );
box->setSpacing( 0 );
box->setMargin( 0 );
@@ -239,14 +239,14 @@ void K3bOptionDialog::setupThemePage()
}
-// void K3bOptionDialog::addOptionPage( QWidget* widget,
-// const QString& name,
-// const QString& header,
-// const QPixmap& icon )
+// void K3bOptionDialog::addOptionPage( TQWidget* widget,
+// const TQString& name,
+// const TQString& header,
+// const TQPixmap& icon )
// {
-// QFrame* frame = addPage( name, header, icon );
+// TQFrame* frame = addPage( name, header, icon );
-// QVBoxLayout* box = new QVBoxLayout( frame );
+// TQVBoxLayout* box = new TQVBoxLayout( frame );
// box->setSpacing( 0 );
// box->setMargin( 0 );
diff --git a/src/option/k3boptiondialog.h b/src/option/k3boptiondialog.h
index 1f417b6..c033504 100644
--- a/src/option/k3boptiondialog.h
+++ b/src/option/k3boptiondialog.h
@@ -35,17 +35,18 @@ class K3bThemeOptionTab;
class K3bOptionDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bOptionDialog(QWidget *parent=0, const char *name=0, bool modal = true);
+ K3bOptionDialog(TQWidget *tqparent=0, const char *name=0, bool modal = true);
~K3bOptionDialog();
enum m_configPageIndex { Burning = 0, Devices = 1, Programs = 2, Cddb = 3 };
-/* void addOptionPage( QWidget* widget, */
-/* const QString& name, */
-/* const QString& header, */
-/* const QPixmap& icon ); */
+/* void addOptionPage( TQWidget* widget, */
+/* const TQString& name, */
+/* const TQString& header, */
+/* const TQPixmap& icon ); */
protected slots:
void slotOk();
diff --git a/src/option/k3bpluginoptiontab.cpp b/src/option/k3bpluginoptiontab.cpp
index 59d7b74..2e67ae5 100644
--- a/src/option/k3bpluginoptiontab.cpp
+++ b/src/option/k3bpluginoptiontab.cpp
@@ -30,15 +30,15 @@
#include <kglobalsettings.h>
#include <kdeversion.h>
-#include <qstringlist.h>
-#include <qpushbutton.h>
+#include <tqstringlist.h>
+#include <tqpushbutton.h>
class K3bPluginOptionTab::PluginViewItem : public K3bListViewItem
{
public:
- PluginViewItem( K3bPlugin* p, KListViewItem* parent )
- : K3bListViewItem( parent ),
+ PluginViewItem( K3bPlugin* p, KListViewItem* tqparent )
+ : K3bListViewItem( tqparent ),
plugin(p) {
const K3bPluginInfo& info = p->pluginInfo();
setText( 0, info.name() );
@@ -58,8 +58,8 @@ public:
-K3bPluginOptionTab::K3bPluginOptionTab( QWidget* parent, const char* name )
- : base_K3bPluginOptionTab( parent, name )
+K3bPluginOptionTab::K3bPluginOptionTab( TQWidget* tqparent, const char* name )
+ : base_K3bPluginOptionTab( tqparent, name )
{
#if KDE_IS_VERSION(3,4,0)
m_viewPlugins->setShadeSortColumn( false );
@@ -69,12 +69,12 @@ K3bPluginOptionTab::K3bPluginOptionTab( QWidget* parent, const char* name )
m_viewPlugins->addColumn( i18n("Version") );
m_viewPlugins->addColumn( i18n("Description") );
m_viewPlugins->addColumn( i18n("License") );
- m_viewPlugins->setAlternateBackground( QColor() );
+ m_viewPlugins->setAlternateBackground( TQColor() );
m_viewPlugins->setAllColumnsShowFocus(true);
- connect( m_viewPlugins, SIGNAL(doubleClicked(QListViewItem*, const QPoint&, int)), this, SLOT(slotConfigureButtonClicked()) );
- connect( m_buttonConfigure, SIGNAL(clicked()), this, SLOT(slotConfigureButtonClicked()) );
- connect( m_viewPlugins, SIGNAL(selectionChanged()), this, SLOT(slotSelectionChanged()) );
+ connect( m_viewPlugins, TQT_SIGNAL(doubleClicked(TQListViewItem*, const TQPoint&, int)), this, TQT_SLOT(slotConfigureButtonClicked()) );
+ connect( m_buttonConfigure, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotConfigureButtonClicked()) );
+ connect( m_viewPlugins, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotSelectionChanged()) );
}
@@ -86,15 +86,15 @@ K3bPluginOptionTab::~K3bPluginOptionTab()
void K3bPluginOptionTab::readSettings()
{
m_viewPlugins->clear();
- QStringList groups = k3bcore->pluginManager()->groups();
- for( QStringList::const_iterator it = groups.begin();
+ TQStringList groups = k3bcore->pluginManager()->groups();
+ for( TQStringList::const_iterator it = groups.begin();
it != groups.end(); ++it ) {
- const QString& group = *it;
+ const TQString& group = *it;
K3bListViewItem* groupViewItem = new K3bListViewItem( m_viewPlugins,
m_viewPlugins->lastChild(),
group );
- QFont f( font() );
+ TQFont f( font() );
f.setBold(true);
groupViewItem->setFont( 0, f );
groupViewItem->setBackgroundColor( 0, KGlobalSettings::alternateBackgroundColor() );
@@ -104,8 +104,8 @@ void K3bPluginOptionTab::readSettings()
groupViewItem->setBackgroundColor( 4, KGlobalSettings::alternateBackgroundColor() );
groupViewItem->setSelectable( false );
- QPtrList<K3bPlugin> fl = k3bcore->pluginManager()->plugins( group );
- for( QPtrListIterator<K3bPlugin> fit( fl ); fit.current(); ++fit )
+ TQPtrList<K3bPlugin> fl = k3bcore->pluginManager()->plugins( group );
+ for( TQPtrListIterator<K3bPlugin> fit( fl ); fit.current(); ++fit )
(void)new PluginViewItem( fit.current(), groupViewItem );
groupViewItem->setOpen(true);
@@ -123,7 +123,7 @@ bool K3bPluginOptionTab::saveSettings()
void K3bPluginOptionTab::slotConfigureButtonClicked()
{
- QListViewItem* item = m_viewPlugins->selectedItem();
+ TQListViewItem* item = m_viewPlugins->selectedItem();
if( PluginViewItem* pi = dynamic_cast<PluginViewItem*>( item ) )
k3bcore->pluginManager()->execPluginDialog( pi->plugin, this );
}
diff --git a/src/option/k3bpluginoptiontab.h b/src/option/k3bpluginoptiontab.h
index 1fb1821..c9db5af 100644
--- a/src/option/k3bpluginoptiontab.h
+++ b/src/option/k3bpluginoptiontab.h
@@ -23,9 +23,10 @@
class K3bPluginOptionTab : public base_K3bPluginOptionTab
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bPluginOptionTab( QWidget* parent = 0, const char* name = 0 );
+ K3bPluginOptionTab( TQWidget* tqparent = 0, const char* name = 0 );
~K3bPluginOptionTab();
public slots:
diff --git a/src/option/k3bthemeoptiontab.cpp b/src/option/k3bthemeoptiontab.cpp
index 4fd3f61..005af83 100644
--- a/src/option/k3bthemeoptiontab.cpp
+++ b/src/option/k3bthemeoptiontab.cpp
@@ -32,9 +32,9 @@
#include <kurlrequesterdlg.h>
#include <kdeversion.h>
-#include <qlabel.h>
-#include <qfile.h>
-#include <qfileinfo.h>
+#include <tqlabel.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
class K3bThemeOptionTab::Private
@@ -46,8 +46,8 @@ public:
class ThemeViewItem : public KListViewItem
{
public:
- ThemeViewItem( K3bTheme* theme_, QListView* parent, QListViewItem* after )
- : KListViewItem( parent, after ),
+ ThemeViewItem( K3bTheme* theme_, TQListView* tqparent, TQListViewItem* after )
+ : KListViewItem( tqparent, after ),
theme(theme_) {
setText( 0, theme->name() );
setText( 1, theme->author() );
@@ -58,8 +58,8 @@ public:
K3bTheme* theme;
};
-K3bThemeOptionTab::K3bThemeOptionTab(QWidget *parent, const char *name )
- : base_K3bThemeOptionTab(parent,name)
+K3bThemeOptionTab::K3bThemeOptionTab(TQWidget *tqparent, const char *name )
+ : base_K3bThemeOptionTab(tqparent,name)
{
d = new Private();
@@ -67,14 +67,14 @@ K3bThemeOptionTab::K3bThemeOptionTab(QWidget *parent, const char *name )
m_viewTheme->setShadeSortColumn( false );
#endif
- connect( m_viewTheme, SIGNAL(selectionChanged()),
- this, SLOT(selectionChanged()) );
- connect( kapp, SIGNAL(appearanceChanged()),
- this, SLOT(selectionChanged()) );
- connect( m_buttonInstallTheme, SIGNAL(clicked()),
- this, SLOT(slotInstallTheme()) );
- connect( m_buttonRemoveTheme, SIGNAL(clicked()),
- this, SLOT(slotRemoveTheme()) );
+ connect( m_viewTheme, TQT_SIGNAL(selectionChanged()),
+ this, TQT_SLOT(selectionChanged()) );
+ connect( kapp, TQT_SIGNAL(appearanceChanged()),
+ this, TQT_SLOT(selectionChanged()) );
+ connect( m_buttonInstallTheme, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotInstallTheme()) );
+ connect( m_buttonRemoveTheme, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotRemoveTheme()) );
}
@@ -90,8 +90,8 @@ void K3bThemeOptionTab::readSettings()
k3bappcore->themeManager()->loadThemes();
- QValueList<K3bTheme*> themes = k3bappcore->themeManager()->themes();
- for( QValueList<K3bTheme*>::const_iterator it = themes.constBegin(); it != themes.constEnd(); ++it ) {
+ TQValueList<K3bTheme*> themes = k3bappcore->themeManager()->themes();
+ for( TQValueList<K3bTheme*>::const_iterator it = themes.constBegin(); it != themes.constEnd(); ++it ) {
K3bTheme* theme = *it;
ThemeViewItem* item = new ThemeViewItem( theme, m_viewTheme, m_viewTheme->lastItem() );
if( theme == k3bappcore->themeManager()->currentTheme() )
@@ -131,32 +131,32 @@ void K3bThemeOptionTab::selectionChanged()
void K3bThemeOptionTab::slotInstallTheme()
{
- KURL themeURL = KURLRequesterDlg::getURL( QString::null, this,
+ KURL themeURL = KURLRequesterDlg::getURL( TQString(), this,
i18n("Drag or Type Theme URL") );
if( themeURL.url().isEmpty() )
return;
- QString themeTmpFile;
+ TQString themeTmpFile;
// themeTmpFile contains the name of the downloaded file
if( !KIO::NetAccess::download( themeURL, themeTmpFile, this ) ) {
- QString sorryText;
+ TQString sorryText;
if (themeURL.isLocalFile())
sorryText = i18n("Unable to find the icon theme archive %1.");
else
sorryText = i18n("Unable to download the icon theme archive.\n"
"Please check that address %1 is correct.");
- KMessageBox::sorry( this, sorryText.arg(themeURL.prettyURL()) );
+ KMessageBox::sorry( this, sorryText.tqarg(themeURL.prettyURL()) );
return;
}
// check if the archive contains a dir with a k3b.theme file
- QString themeName;
+ TQString themeName;
KTar archive( themeTmpFile );
archive.open(IO_ReadOnly);
const KArchiveDirectory* themeDir = archive.directory();
- QStringList entries = themeDir->entries();
+ TQStringList entries = themeDir->entries();
bool validThemeArchive = false;
if( entries.count() > 0 ) {
if( themeDir->entry(entries.first())->isDirectory() ) {
@@ -180,10 +180,10 @@ void K3bThemeOptionTab::slotInstallTheme()
KMessageBox::error( this, i18n("The file is not a valid K3b theme archive.") );
}
else {
- QString themeBasePath = locateLocal( "data", "k3b/pics/" );
+ TQString themeBasePath = locateLocal( "data", "k3b/pics/" );
// check if there already is a theme by that name
- if( !QFile::exists( themeBasePath + '/' + themeName ) ||
+ if( !TQFile::exists( themeBasePath + '/' + themeName ) ||
KMessageBox::warningYesNo( this,
i18n("A theme with the name '%1' already exists. Do you want to "
"overwrite it?"),
@@ -206,7 +206,7 @@ void K3bThemeOptionTab::slotRemoveTheme()
{
ThemeViewItem* item = (ThemeViewItem*)m_viewTheme->selectedItem();
if( item ) {
- QString question=i18n("<qt>Are you sure you want to remove the "
+ TQString question=i18n("<qt>Are you sure you want to remove the "
"<strong>%1</strong> icon theme?<br>"
"<br>"
"This will delete the files installed by this theme.</qt>").
@@ -217,10 +217,10 @@ void K3bThemeOptionTab::slotRemoveTheme()
K3bTheme* theme = item->theme;
delete item;
- QString path = theme->path();
+ TQString path = theme->path();
// delete k3b.theme file to avoid it to get loaded
- QFile::remove( path + "/k3b.theme" );
+ TQFile::remove( path + "/k3b.theme" );
// reread the themes (this will also set the default theme in case we delete the
// selected one)
diff --git a/src/option/k3bthemeoptiontab.h b/src/option/k3bthemeoptiontab.h
index bfb1d72..d247f94 100644
--- a/src/option/k3bthemeoptiontab.h
+++ b/src/option/k3bthemeoptiontab.h
@@ -26,9 +26,10 @@
class K3bThemeOptionTab : public base_K3bThemeOptionTab
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bThemeOptionTab( QWidget* parent = 0, const char* name = 0 );
+ K3bThemeOptionTab( TQWidget* tqparent = 0, const char* name = 0 );
~K3bThemeOptionTab();
void readSettings();
diff --git a/src/projects/base_k3badvanceddataimagesettings.ui b/src/projects/base_k3badvanceddataimagesettings.ui
index 593b404..c236ab8 100644
--- a/src/projects/base_k3badvanceddataimagesettings.ui
+++ b/src/projects/base_k3badvanceddataimagesettings.ui
@@ -1,7 +1,7 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>base_K3bAdvancedDataImageSettings</class>
<author>Sebastian Trueg</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>base_K3bDataCustomFilesystemsWidget</cstring>
</property>
@@ -18,7 +18,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QGroupBox" row="1" column="0" rowspan="1" colspan="2">
+ <widget class="TQGroupBox" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>groupIsoSettings</cstring>
</property>
@@ -50,7 +50,7 @@
</widget>
</vbox>
</widget>
- <widget class="QGroupBox" row="0" column="0">
+ <widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>groupBox3</cstring>
</property>
@@ -61,7 +61,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkRockRidge</cstring>
</property>
@@ -81,7 +81,7 @@
&lt;p&gt;&lt;b&gt;It is highly recommended to use Rock Ridge extensions on every data CD or DVD.&lt;/b&gt;</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkJoliet</cstring>
</property>
@@ -99,7 +99,7 @@
&lt;p&gt;&lt;b&gt;Caution:&lt;/b&gt; With the exception of Linux and FreeBSD, there is no POSIX-like OS that supports Joliet. So &lt;b&gt;never create Joliet-only CDs or DVDs&lt;/b&gt; for that reason.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkUdf</cstring>
</property>
@@ -116,7 +116,7 @@
</widget>
</vbox>
</widget>
- <widget class="QGroupBox" row="0" column="1">
+ <widget class="TQGroupBox" row="0" column="1">
<property name="name">
<cstring>groupBox5</cstring>
</property>
@@ -127,15 +127,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout1</cstring>
+ <cstring>tqlayout1</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkForceInputCharset</cstring>
</property>
@@ -156,7 +156,7 @@
</widget>
</hbox>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkPreservePermissions</cstring>
</property>
@@ -184,7 +184,7 @@
<tabstop>m_checkRockRidge</tabstop>
<tabstop>m_checkJoliet</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klistview.h</includehint>
<includehint>kcombobox.h</includehint>
diff --git a/src/projects/base_k3baudiocdtextallfieldswidget.ui b/src/projects/base_k3baudiocdtextallfieldswidget.ui
index e178d1f..c8d647d 100644
--- a/src/projects/base_k3baudiocdtextallfieldswidget.ui
+++ b/src/projects/base_k3baudiocdtextallfieldswidget.ui
@@ -1,7 +1,7 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>base_K3bAudioCdTextAllFieldsWidget</class>
<author>Sebastian Trueg</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>base_K3bAudioCdTextAllFieldsWidget</cstring>
</property>
@@ -12,7 +12,7 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QLabel" row="8" column="0">
+ <widget class="TQLabel" row="8" column="0">
<property name="name">
<cstring>textLabel8</cstring>
</property>
@@ -23,9 +23,9 @@
<cstring>m_editMessage</cstring>
</property>
</widget>
- <widget class="QLayoutWidget" row="4" column="1">
+ <widget class="TQLayoutWidget" row="4" column="1">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<hbox>
<property name="name">
@@ -36,7 +36,7 @@
<cstring>m_editSongwriter</cstring>
</property>
</widget>
- <widget class="QToolButton">
+ <widget class="TQToolButton">
<property name="name">
<cstring>m_buttonCopySongwriter</cstring>
</property>
@@ -49,7 +49,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLabel" row="6" column="0">
+ <widget class="TQLabel" row="6" column="0">
<property name="name">
<cstring>textLabel6</cstring>
</property>
@@ -60,9 +60,9 @@
<cstring>m_editUpc_ean</cstring>
</property>
</widget>
- <widget class="QLayoutWidget" row="5" column="1">
+ <widget class="TQLayoutWidget" row="5" column="1">
<property name="name">
- <cstring>layout1</cstring>
+ <cstring>tqlayout1</cstring>
</property>
<hbox>
<property name="name">
@@ -73,7 +73,7 @@
<cstring>m_editComposer</cstring>
</property>
</widget>
- <widget class="QToolButton">
+ <widget class="TQToolButton">
<property name="name">
<cstring>m_buttonCopyComposer</cstring>
</property>
@@ -86,7 +86,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>textLabel4</cstring>
</property>
@@ -97,7 +97,7 @@
<cstring>m_editSongwriter</cstring>
</property>
</widget>
- <widget class="QLabel" row="5" column="0">
+ <widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>textLabel5</cstring>
</property>
@@ -108,7 +108,7 @@
<cstring>m_editComposer</cstring>
</property>
</widget>
- <widget class="QLabel" row="7" column="0">
+ <widget class="TQLabel" row="7" column="0">
<property name="name">
<cstring>textLabel7</cstring>
</property>
@@ -119,9 +119,9 @@
<cstring>m_editDisc_id</cstring>
</property>
</widget>
- <widget class="QLayoutWidget" row="3" column="1">
+ <widget class="TQLayoutWidget" row="3" column="1">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
@@ -132,7 +132,7 @@
<cstring>m_editArranger</cstring>
</property>
</widget>
- <widget class="QToolButton">
+ <widget class="TQToolButton">
<property name="name">
<cstring>m_buttonCopyArranger</cstring>
</property>
@@ -145,7 +145,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -171,7 +171,7 @@
<cstring>m_editMessage</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -182,9 +182,9 @@
<cstring>m_editPerformer</cstring>
</property>
</widget>
- <widget class="QLayoutWidget" row="0" column="1">
+ <widget class="TQLayoutWidget" row="0" column="1">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<hbox>
<property name="name">
@@ -195,7 +195,7 @@
<cstring>m_editTitle</cstring>
</property>
</widget>
- <widget class="QToolButton">
+ <widget class="TQToolButton">
<property name="name">
<cstring>m_buttonCopyTitle</cstring>
</property>
@@ -208,7 +208,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -233,9 +233,9 @@
<enum>Horizontal</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>
<hbox>
<property name="name">
@@ -246,7 +246,7 @@
<cstring>m_editPerformer</cstring>
</property>
</widget>
- <widget class="QToolButton">
+ <widget class="TQToolButton">
<property name="name">
<cstring>m_buttonCopyPerformer</cstring>
</property>
@@ -261,7 +261,7 @@
</widget>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
<includehint>klineedit.h</includehint>
diff --git a/src/projects/base_k3baudiocdtextwidget.ui b/src/projects/base_k3baudiocdtextwidget.ui
index 50daff2..7478a3e 100644
--- a/src/projects/base_k3baudiocdtextwidget.ui
+++ b/src/projects/base_k3baudiocdtextwidget.ui
@@ -2,7 +2,7 @@
<class>base_K3bAudioCdTextWidget</class>
<comment>Widget to edit the global CD-Text in a K3b audio project.</comment>
<author>Sebastian Trueg</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>K3bAudioCDTextWidget</cstring>
</property>
@@ -13,7 +13,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>m_groupCdText</cstring>
</property>
@@ -40,7 +40,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QFrame">
+ <widget class="TQFrame">
<property name="name">
<cstring>frame3</cstring>
</property>
@@ -57,7 +57,7 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -68,9 +68,9 @@
<cstring>m_editPerformer</cstring>
</property>
</widget>
- <widget class="QLayoutWidget" row="2" column="1">
+ <widget class="TQLayoutWidget" row="2" column="1">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
@@ -81,7 +81,7 @@
<cstring>m_editPerformer</cstring>
</property>
</widget>
- <widget class="QToolButton">
+ <widget class="TQToolButton">
<property name="name">
<cstring>m_buttonCopyPerformer</cstring>
</property>
@@ -94,9 +94,9 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="1" column="1">
+ <widget class="TQLayoutWidget" row="1" column="1">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<hbox>
<property name="name">
@@ -107,7 +107,7 @@
<cstring>m_editTitle</cstring>
</property>
</widget>
- <widget class="QToolButton">
+ <widget class="TQToolButton">
<property name="name">
<cstring>m_buttonCopyTitle</cstring>
</property>
@@ -120,7 +120,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -133,9 +133,9 @@
</widget>
</grid>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout15</cstring>
+ <cstring>tqlayout15</cstring>
</property>
<hbox>
<property name="name">
@@ -151,14 +151,14 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>m_buttonMoreFields</cstring>
</property>
@@ -178,7 +178,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>21</width>
<height>0</height>
@@ -207,14 +207,14 @@
<tabstop>m_editTitle</tabstop>
<tabstop>m_editPerformer</tabstop>
</tabstops>
-<slots>
+<Q_SLOTS>
<slot access="protected" specifier="pure virtual">slotCopyTitle()</slot>
<slot access="protected" specifier="pure virtual">slotCopyPerformer()</slot>
<slot access="protected" specifier="pure virtual">slotCopyArranger()</slot>
<slot access="protected" specifier="pure virtual">slotCopyComposer()</slot>
<slot access="protected" specifier="pure virtual">slotCopySongwriter()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
<includehint>klineedit.h</includehint>
diff --git a/src/projects/base_k3baudiotrackwidget.ui b/src/projects/base_k3baudiotrackwidget.ui
index 813b042..4641369 100644
--- a/src/projects/base_k3baudiotrackwidget.ui
+++ b/src/projects/base_k3baudiotrackwidget.ui
@@ -1,7 +1,7 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>base_K3bAudioTrackWidget</class>
<author>Sebastian Trueg</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>K3bAudioTrackWidget</cstring>
</property>
@@ -15,11 +15,11 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QTabWidget">
+ <widget class="TQTabWidget">
<property name="name">
<cstring>m_mainTab</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -30,9 +30,9 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout9</cstring>
+ <cstring>tqlayout9</cstring>
</property>
<grid>
<property name="name">
@@ -43,7 +43,7 @@
<cstring>m_editSongwriter</cstring>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>textLabel4</cstring>
</property>
@@ -83,7 +83,7 @@
<enum>Horizontal</enum>
</property>
</widget>
- <widget class="QLabel" row="2" column="0" rowspan="2" colspan="1">
+ <widget class="TQLabel" row="2" column="0" rowspan="2" colspan="1">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -94,7 +94,7 @@
<cstring>m_editArranger</cstring>
</property>
</widget>
- <widget class="QLabel" row="2" column="2" rowspan="2" colspan="1">
+ <widget class="TQLabel" row="2" column="2" rowspan="2" colspan="1">
<property name="name">
<cstring>textLabel5</cstring>
</property>
@@ -105,7 +105,7 @@
<cstring>m_editComposer</cstring>
</property>
</widget>
- <widget class="QLabel" row="5" column="0">
+ <widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>textLabel8</cstring>
</property>
@@ -121,7 +121,7 @@
<cstring>m_editTitle</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="2">
+ <widget class="TQLabel" row="0" column="2">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -132,7 +132,7 @@
<cstring>m_editPerformer</cstring>
</property>
</widget>
- <widget class="QLabel" row="4" column="2">
+ <widget class="TQLabel" row="4" column="2">
<property name="name">
<cstring>textLabel6</cstring>
</property>
@@ -143,7 +143,7 @@
<cstring>m_editIsrc</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -176,7 +176,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>350</width>
<height>50</height>
@@ -185,7 +185,7 @@
</spacer>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -196,7 +196,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkPreemphasis</cstring>
</property>
@@ -204,10 +204,10 @@
<string>Preemph&amp;asis</string>
</property>
<property name="whatsThis" stdset="0">
- <string>&lt;p&gt;Preemphasis is mainly used in audio processing. Higher frequencies in audio signals usually have lower amplitudes. This can lead to bad signal quality on noisy transmission because the high frequencies might become too weak. To avoid this effect, high frequencies are amplified before transmission (preemphasis); the receiver will then weaken them accordingly for playback.</string>
+ <string>&lt;p&gt;Preemphasis is mainly used in audio processing. Higher frequencies in audio Q_SIGNALS usually have lower amplitudes. This can lead to bad signal quality on noisy transmission because the high frequencies might become too weak. To avoid this effect, high frequencies are amplified before transmission (preemphasis); the receiver will then weaken them accordingly for playback.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkCopyPermitted</cstring>
</property>
@@ -215,15 +215,15 @@
<string>&amp;Copy permitted</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_labelPostGap</cstring>
</property>
@@ -257,7 +257,7 @@ This does not mean that K3b adds an additional gap of silence to the track. This
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>161</width>
<height>20</height>
@@ -276,7 +276,7 @@ This does not mean that K3b adds an additional gap of silence to the track. This
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>41</width>
<height>80</height>
@@ -322,7 +322,7 @@ This does not mean that K3b adds an additional gap of silence to the track. This
<tabstop>m_checkPreemphasis</tabstop>
<tabstop>m_checkCopyPermitted</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
<includehint>klineedit.h</includehint>
diff --git a/src/projects/base_k3bbootimageview.ui b/src/projects/base_k3bbootimageview.ui
index 6ba21f6..f7fab2e 100644
--- a/src/projects/base_k3bbootimageview.ui
+++ b/src/projects/base_k3bbootimageview.ui
@@ -1,7 +1,7 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>base_K3bBootImageView</class>
<author>Sebastian Trueg</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>base_K3bBootImageView</cstring>
</property>
@@ -12,15 +12,15 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout17</cstring>
+ <cstring>tqlayout17</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>label</cstring>
</property>
@@ -36,7 +36,7 @@
<string>Boot images:</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>m_buttonNew</cstring>
</property>
@@ -47,7 +47,7 @@
<string>Add new boot image</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>m_buttonDelete</cstring>
</property>
@@ -104,7 +104,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>m_groupImageType</cstring>
</property>
@@ -115,7 +115,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>m_radioFloppy</cstring>
</property>
@@ -126,7 +126,7 @@
<string>Emulate a 1440/2880 kb floppy</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>m_radioHarddisk</cstring>
</property>
@@ -137,7 +137,7 @@
<string>Emulate a harddisk</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>m_radioNoEmulation</cstring>
</property>
@@ -150,7 +150,7 @@
</widget>
</hbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>m_groupOptions</cstring>
</property>
@@ -169,7 +169,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkNoBoot</cstring>
</property>
@@ -180,7 +180,7 @@
<string>Do not boot from the emulated floppy/harddisk</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkInfoTable</cstring>
</property>
@@ -188,15 +188,15 @@
<string>Boot-info-table</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout10</cstring>
+ <cstring>tqlayout10</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLineEdit" row="0" column="1">
+ <widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>m_editLoadSegment</cstring>
</property>
@@ -207,7 +207,7 @@
<string>0</string>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="1">
+ <widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>m_editLoadSize</cstring>
</property>
@@ -218,7 +218,7 @@
<string>0</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
@@ -229,7 +229,7 @@
<string>Boot load segment:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -244,15 +244,15 @@
</widget>
</vbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout16</cstring>
+ <cstring>tqlayout16</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>m_buttonToggleOptions</cstring>
</property>
@@ -270,7 +270,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>261</width>
<height>21</height>
@@ -279,15 +279,15 @@
</spacer>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout18</cstring>
+ <cstring>tqlayout18</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -295,7 +295,7 @@
<string>Boot catalog:</string>
</property>
</widget>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>m_editBootCataloge</cstring>
</property>
@@ -384,10 +384,10 @@
<slot>slotOptionsChanged()</slot>
</connection>
</connections>
-<slots>
+<Q_SLOTS>
<slot access="protected">slotOptionsChanged()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klistview.h</includehint>
</includehints>
diff --git a/src/projects/base_k3bdataimagesettings.ui b/src/projects/base_k3bdataimagesettings.ui
index 3427ab7..2b0e7f3 100644
--- a/src/projects/base_k3bdataimagesettings.ui
+++ b/src/projects/base_k3bdataimagesettings.ui
@@ -1,7 +1,7 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>base_K3bDataImageSettings</class>
<author>Sebastian Trueg</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>base_K3bDataImageSetings</cstring>
</property>
@@ -15,7 +15,7 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>m_groupVolumeName</cstring>
</property>
@@ -26,7 +26,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>m_editVolumeName</cstring>
</property>
@@ -34,7 +34,7 @@
<number>32</number>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>m_buttonMoreVolDescFields</cstring>
</property>
@@ -44,7 +44,7 @@
</widget>
</hbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>m_groupFileSystem</cstring>
</property>
@@ -61,7 +61,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QComboBox">
+ <widget class="TQComboBox">
<property name="name">
<cstring>m_comboFilesystems</cstring>
</property>
@@ -77,7 +77,7 @@
<string>File system presets</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>m_buttonCustomFilesystems</cstring>
</property>
@@ -87,15 +87,15 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>m_groupSymlinks</cstring>
</property>
@@ -106,7 +106,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QComboBox">
+ <widget class="TQComboBox">
<item>
<property name="text">
<string>No Change</string>
@@ -162,7 +162,7 @@ Be aware that in case Rock Ridge extensions are disabled (which is not recommend
</widget>
</vbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>m_groupWhitespace</cstring>
</property>
@@ -173,7 +173,7 @@ Be aware that in case Rock Ridge extensions are disabled (which is not recommend
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QComboBox">
+ <widget class="TQComboBox">
<item>
<property name="text">
<string>No Change</string>
@@ -222,7 +222,7 @@ If this option is checked, K3b will replace all spaces in all filenames with the
Example: 'my good file.ext' becomes 'my_good_file.ext'</string>
</property>
</widget>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>m_editReplace</cstring>
</property>
@@ -258,7 +258,7 @@ Example: 'my good file.ext' becomes 'my_good_file.ext'</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>21</width>
<height>0</height>
@@ -270,5 +270,5 @@ Example: 'my good file.ext' becomes 'my_good_file.ext'</string>
<tabstops>
<tabstop>m_editReplace</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/src/projects/base_k3bdatavolumedescwidget.ui b/src/projects/base_k3bdatavolumedescwidget.ui
index ce31be9..74b9681 100644
--- a/src/projects/base_k3bdatavolumedescwidget.ui
+++ b/src/projects/base_k3bdatavolumedescwidget.ui
@@ -1,7 +1,7 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>base_K3bDataVolumeDescWidget</class>
<author>Sebastian Trueg</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>base_K3bDataVolumeDescWidget</cstring>
</property>
@@ -18,7 +18,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLineEdit" row="0" column="1">
+ <widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>m_editVolumeName</cstring>
</property>
@@ -26,7 +26,7 @@
<number>32</number>
</property>
</widget>
- <widget class="QLineEdit" row="1" column="1">
+ <widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>m_editVolumeSetName</cstring>
</property>
@@ -34,7 +34,7 @@
<number>128</number>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel2</cstring>
</property>
@@ -45,7 +45,7 @@
<cstring>m_editVolumeSetName</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
@@ -56,7 +56,7 @@
<cstring>m_editVolumeName</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="3" column="1">
+ <widget class="TQLineEdit" row="3" column="1">
<property name="name">
<cstring>m_editPublisher</cstring>
</property>
@@ -64,7 +64,7 @@
<number>128</number>
</property>
</widget>
- <widget class="QLineEdit" row="4" column="1">
+ <widget class="TQLineEdit" row="4" column="1">
<property name="name">
<cstring>m_editPreparer</cstring>
</property>
@@ -72,7 +72,7 @@
<number>128</number>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>TextLabel4</cstring>
</property>
@@ -83,7 +83,7 @@
<cstring>m_editPreparer</cstring>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>TextLabel3</cstring>
</property>
@@ -94,7 +94,7 @@
<cstring>m_editPublisher</cstring>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -105,15 +105,15 @@
<cstring>m_spinVolumeSetSize</cstring>
</property>
</widget>
- <widget class="QLayoutWidget" row="2" column="1">
+ <widget class="TQLayoutWidget" row="2" column="1">
<property name="name">
- <cstring>layout1</cstring>
+ <cstring>tqlayout1</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QSpinBox">
+ <widget class="TQSpinBox">
<property name="name">
<cstring>m_spinVolumeSetSize</cstring>
</property>
@@ -127,21 +127,21 @@
<number>1</number>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel2</cstring>
</property>
<property name="text">
<string>Volume set &amp;number:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
<cstring>m_spinVolumeSetNumber</cstring>
</property>
</widget>
- <widget class="QSpinBox">
+ <widget class="TQSpinBox">
<property name="name">
<cstring>m_spinVolumeSetNumber</cstring>
</property>
@@ -160,7 +160,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLabel" row="6" column="0">
+ <widget class="TQLabel" row="6" column="0">
<property name="name">
<cstring>TextLabel5</cstring>
</property>
@@ -171,7 +171,7 @@
<cstring>m_editSystem</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="6" column="1">
+ <widget class="TQLineEdit" row="6" column="1">
<property name="name">
<cstring>m_editSystem</cstring>
</property>
@@ -179,7 +179,7 @@
<number>32</number>
</property>
</widget>
- <widget class="QLabel" row="7" column="0">
+ <widget class="TQLabel" row="7" column="0">
<property name="name">
<cstring>TextLabel6</cstring>
</property>
@@ -200,7 +200,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>0</height>
@@ -221,7 +221,7 @@
<enum>Horizontal</enum>
</property>
</widget>
- <widget class="QLineEdit" row="7" column="1">
+ <widget class="TQLineEdit" row="7" column="1">
<property name="name">
<cstring>m_editApplication</cstring>
</property>
@@ -229,15 +229,15 @@
<number>128</number>
</property>
</widget>
- <widget class="QLayoutWidget" row="11" column="1">
+ <widget class="TQLayoutWidget" row="11" column="1">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>m_editBiblio</cstring>
</property>
@@ -245,7 +245,7 @@
<number>37</number>
</property>
</widget>
- <widget class="QToolButton">
+ <widget class="TQToolButton">
<property name="name">
<cstring>m_buttonFindBiblio</cstring>
</property>
@@ -258,15 +258,15 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="9" column="1">
+ <widget class="TQLayoutWidget" row="9" column="1">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>m_editAbstract</cstring>
</property>
@@ -274,7 +274,7 @@
<number>37</number>
</property>
</widget>
- <widget class="QToolButton">
+ <widget class="TQToolButton">
<property name="name">
<cstring>m_buttonFindAbstract</cstring>
</property>
@@ -287,15 +287,15 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="10" column="1">
+ <widget class="TQLayoutWidget" row="10" column="1">
<property name="name">
- <cstring>layout3</cstring>
+ <cstring>tqlayout3</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>m_editCopyright</cstring>
</property>
@@ -303,7 +303,7 @@
<number>37</number>
</property>
</widget>
- <widget class="QToolButton">
+ <widget class="TQToolButton">
<property name="name">
<cstring>m_buttonFindCopyright</cstring>
</property>
@@ -316,7 +316,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLabel" row="9" column="0">
+ <widget class="TQLabel" row="9" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -324,7 +324,7 @@
<string>Abstract file:</string>
</property>
</widget>
- <widget class="QLabel" row="10" column="0">
+ <widget class="TQLabel" row="10" column="0">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
@@ -332,7 +332,7 @@
<string>Copyright file:</string>
</property>
</widget>
- <widget class="QLabel" row="11" column="0">
+ <widget class="TQLabel" row="11" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -366,5 +366,5 @@
<tabstop>m_editSystem</tabstop>
<tabstop>m_editApplication</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/src/projects/base_k3bmovixoptionswidget.ui b/src/projects/base_k3bmovixoptionswidget.ui
index 973dd11..28b093d 100644
--- a/src/projects/base_k3bmovixoptionswidget.ui
+++ b/src/projects/base_k3bmovixoptionswidget.ui
@@ -1,7 +1,7 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>base_K3bMovixOptionsWidget</class>
<author>Sebastian trueg</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>Form1</cstring>
</property>
@@ -9,7 +9,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox2</cstring>
</property>
@@ -26,7 +26,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>textLabel2</cstring>
</property>
@@ -42,7 +42,7 @@
<string>Select the font to be used to render subtitles</string>
</property>
</widget>
- <widget class="QLabel" row="5" column="0">
+ <widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>textLabel7</cstring>
</property>
@@ -53,15 +53,15 @@
<string></string>
</property>
</widget>
- <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>
+ <cstring>tqlayout1</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkRandomPlay</cstring>
</property>
@@ -75,7 +75,7 @@
<string>&lt;p&gt;If this option is checked the order in which the files are played is determined randomly every time it is played.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkNoDma</cstring>
</property>
@@ -91,7 +91,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLineEdit" row="5" column="1">
+ <widget class="TQLineEdit" row="5" column="1">
<property name="name">
<cstring>m_editUnwantedMplayerOptions</cstring>
</property>
@@ -104,7 +104,7 @@
&lt;pre&gt;opt1 opt2 opt3&lt;/pre&gt;</string>
</property>
</widget>
- <widget class="QLineEdit" row="4" column="1">
+ <widget class="TQLineEdit" row="4" column="1">
<property name="name">
<cstring>m_editAdditionalMplayerOptions</cstring>
</property>
@@ -117,7 +117,7 @@
&lt;pre&gt;opt1 opt2 opt3&lt;/pre&gt;</string>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>textLabel6</cstring>
</property>
@@ -125,7 +125,7 @@
<string>Additional MPlayer options:</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -133,7 +133,7 @@
<string>Loop playlist:</string>
</property>
</widget>
- <widget class="QSpinBox" row="2" column="1">
+ <widget class="TQSpinBox" row="2" column="1">
<property name="name">
<cstring>m_spinLoop</cstring>
</property>
@@ -150,7 +150,7 @@
<string>How many times should the playlist be looped</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>m_labelAudioBackground</cstring>
</property>
@@ -173,7 +173,7 @@
</widget>
</grid>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox3</cstring>
</property>
@@ -184,7 +184,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>m_labelKeyboardLayout</cstring>
</property>
@@ -192,7 +192,7 @@
<string>Keyboard Layout:</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -208,7 +208,7 @@
<string>Select the language of the eMovix help screens</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel5</cstring>
</property>
@@ -239,15 +239,15 @@
<cstring>m_comboKeyboardLayout</cstring>
</property>
<property name="toolTip" stdset="0">
- <string>Select the layout of the keyboard</string>
+ <string>Select the tqlayout of the keyboard</string>
</property>
<property name="whatsThis" stdset="0">
- <string>&lt;p&gt;The keyboard layout selected here will be used for the eMovix commands like controlling the media player.</string>
+ <string>&lt;p&gt;The keyboard tqlayout selected here will be used for the eMovix commands like controlling the media player.</string>
</property>
</widget>
</grid>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@@ -266,7 +266,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkEject</cstring>
</property>
@@ -280,7 +280,7 @@
<string>&lt;p&gt;If this option is checked the disk will be ejected after MPlayer has finished.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkShutdown</cstring>
</property>
@@ -294,7 +294,7 @@
<string>&lt;p&gt;If this option is checked the PC will be shut down after MPlayer has finished playing.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkReboot</cstring>
</property>
@@ -326,7 +326,7 @@
<slot>setDisabled(bool)</slot>
</connection>
</connections>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kcombobox.h</includehint>
<includehint>kcombobox.h</includehint>
diff --git a/src/projects/k3baudioburndialog.cpp b/src/projects/k3baudioburndialog.cpp
index 97bf318..4ec9ff3 100644
--- a/src/projects/k3baudioburndialog.cpp
+++ b/src/projects/k3baudioburndialog.cpp
@@ -30,24 +30,24 @@
#include <k3bwritingmodewidget.h>
#include <k3bexternalbinmanager.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qtabwidget.h>
-#include <qlayout.h>
-#include <qvariant.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qgrid.h>
-#include <qtoolbutton.h>
-#include <qptrlist.h>
-#include <qstringlist.h>
-#include <qpoint.h>
-#include <qhbox.h>
-#include <qspinbox.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqtabwidget.h>
+#include <tqlayout.h>
+#include <tqvariant.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqgrid.h>
+#include <tqtoolbutton.h>
+#include <tqptrlist.h>
+#include <tqstringlist.h>
+#include <tqpoint.h>
+#include <tqhbox.h>
+#include <tqspinbox.h>
#include <klocale.h>
#include <kstandarddirs.h>
@@ -55,17 +55,17 @@
#include <kmessagebox.h>
-K3bAudioBurnDialog::K3bAudioBurnDialog(K3bAudioDoc* _doc, QWidget *parent, const char *name, bool modal )
- : K3bProjectBurnDialog( _doc, parent, name, modal ),
+K3bAudioBurnDialog::K3bAudioBurnDialog(K3bAudioDoc* _doc, TQWidget *tqparent, const char *name, bool modal )
+ : K3bProjectBurnDialog( _doc, tqparent, name, modal ),
m_doc(_doc)
{
prepareGui();
setTitle( i18n("Audio Project"),
i18n("1 track (%1 minutes)", "%n tracks (%1 minutes)",
- m_doc->numOfTracks() ).arg(m_doc->length().toString()) );
+ m_doc->numOfTracks() ).tqarg(m_doc->length().toString()) );
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
m_optionGroupLayout->addItem( spacer );
// create cd-text page
@@ -74,27 +74,27 @@ K3bAudioBurnDialog::K3bAudioBurnDialog(K3bAudioDoc* _doc, QWidget *parent, const
// create advanced tab
// ----------------------------------------------------------
- QWidget* advancedTab = new QWidget( this );
- QGridLayout* advancedTabGrid = new QGridLayout( advancedTab );
+ TQWidget* advancedTab = new TQWidget( this );
+ TQGridLayout* advancedTabGrid = new TQGridLayout( advancedTab );
advancedTabGrid->setSpacing( spacingHint() );
advancedTabGrid->setMargin( marginHint() );
- QGroupBox* advancedSettingsGroup = new QGroupBox( 1, Qt::Vertical, i18n("Settings"), advancedTab );
+ TQGroupBox* advancedSettingsGroup = new TQGroupBox( 1, Qt::Vertical, i18n("Settings"), advancedTab );
m_checkNormalize = K3bStdGuiItems::normalizeCheckBox( advancedSettingsGroup );
- QGroupBox* advancedGimmickGroup = new QGroupBox( 1, Qt::Vertical, i18n("Gimmicks"), advancedTab );
- m_checkHideFirstTrack = new QCheckBox( i18n( "Hide first track" ), advancedGimmickGroup, "m_checkHideFirstTrack" );
+ TQGroupBox* advancedGimmickGroup = new TQGroupBox( 1, Qt::Vertical, i18n("Gimmicks"), advancedTab );
+ m_checkHideFirstTrack = new TQCheckBox( i18n( "Hide first track" ), advancedGimmickGroup, "m_checkHideFirstTrack" );
- m_audioRippingGroup = new QGroupBox( 3, Qt::Vertical, i18n("Audio Ripping"), advancedTab );
- QHBox* box = new QHBox( m_audioRippingGroup );
+ m_audioRippingGroup = new TQGroupBox( 3, Qt::Vertical, i18n("Audio Ripping"), advancedTab );
+ TQHBox* box = new TQHBox( m_audioRippingGroup );
box->setSpacing( spacingHint() );
- box->setStretchFactor(new QLabel( i18n("Paranoia mode:"), box ), 1 );
+ box->setStretchFactor(new TQLabel( i18n("Paranoia mode:"), box ), 1 );
m_comboParanoiaMode = K3bStdGuiItems::paranoiaModeComboBox( box );
- box = new QHBox( m_audioRippingGroup );
+ box = new TQHBox( m_audioRippingGroup );
box->setSpacing( spacingHint() );
- box->setStretchFactor( new QLabel( i18n("Read retries:"), box ), 1 );
- m_spinAudioRippingReadRetries = new QSpinBox( 1, 128, 1, box );
- m_checkAudioRippingIgnoreReadErrors = new QCheckBox( i18n("Ignore read errors"), m_audioRippingGroup );
+ box->setStretchFactor( new TQLabel( i18n("Read retries:"), box ), 1 );
+ m_spinAudioRippingReadRetries = new TQSpinBox( 1, 128, 1, box );
+ m_checkAudioRippingIgnoreReadErrors = new TQCheckBox( i18n("Ignore read errors"), m_audioRippingGroup );
advancedTabGrid->addWidget( advancedSettingsGroup, 0, 0 );
advancedTabGrid->addWidget( advancedGimmickGroup, 1, 0 );
@@ -103,18 +103,18 @@ K3bAudioBurnDialog::K3bAudioBurnDialog(K3bAudioDoc* _doc, QWidget *parent, const
addPage( advancedTab, i18n("Advanced") );
- connect( m_writerSelectionWidget, SIGNAL(writingAppChanged(int)), this, SLOT(slotToggleAll()) );
- connect( m_checkNormalize, SIGNAL(toggled(bool)), this, SLOT(slotNormalizeToggled(bool)) );
- connect( m_checkCacheImage, SIGNAL(toggled(bool)), this, SLOT(slotCacheImageToggled(bool)) );
- connect( m_writingModeWidget, SIGNAL(writingModeChanged(int)), this, SLOT(slotToggleAll()) );
+ connect( m_writerSelectionWidget, TQT_SIGNAL(writingAppChanged(int)), this, TQT_SLOT(slotToggleAll()) );
+ connect( m_checkNormalize, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotNormalizeToggled(bool)) );
+ connect( m_checkCacheImage, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotCacheImageToggled(bool)) );
+ connect( m_writingModeWidget, TQT_SIGNAL(writingModeChanged(int)), this, TQT_SLOT(slotToggleAll()) );
// ToolTips
// -------------------------------------------------------------------------
- QToolTip::add( m_checkHideFirstTrack, i18n("Hide the first track in the first pregap") );
+ TQToolTip::add( m_checkHideFirstTrack, i18n("Hide the first track in the first pregap") );
// What's This info
// -------------------------------------------------------------------------
- QWhatsThis::add( m_checkHideFirstTrack,
+ TQWhatsThis::add( m_checkHideFirstTrack,
i18n("<p>If this option is checked K3b will <em>hide</em> the first track."
"<p>The audio CD standard uses pregaps before every track on the CD. "
"By default these last for 2 seconds and are silent. In DAO mode it "
@@ -262,7 +262,7 @@ void K3bAudioBurnDialog::toggleAll()
}
-void K3bAudioBurnDialog::showEvent( QShowEvent* e )
+void K3bAudioBurnDialog::showEvent( TQShowEvent* e )
{
// we only show the audio ripping options when there are audio cd track sources
bool showRipOptions = false;
@@ -308,7 +308,7 @@ void K3bAudioBurnDialog::slotNormalizeToggled( bool on )
if( KMessageBox::warningYesNo( this, i18n("<p>K3b is not able to normalize audio tracks when burning on-the-fly. "
"The external program used for this task only supports normalizing a set "
"of audio files."),
- QString::null,
+ TQString(),
i18n("Disable normalization"),
i18n("Disable on-the-fly burning"),
"audioProjectNormalizeOrOnTheFly" ) == KMessageBox::Yes )
@@ -327,7 +327,7 @@ void K3bAudioBurnDialog::slotCacheImageToggled( bool on )
if( KMessageBox::warningYesNo( this, i18n("<p>K3b is not able to normalize audio tracks when burning on-the-fly. "
"The external program used for this task only supports normalizing a set "
"of audio files."),
- QString::null,
+ TQString(),
i18n("Disable normalization"),
i18n("Disable on-the-fly burning"),
"audioProjectNormalizeOrOnTheFly" ) == KMessageBox::Yes )
diff --git a/src/projects/k3baudioburndialog.h b/src/projects/k3baudioburndialog.h
index 47be09f..64355a2 100644
--- a/src/projects/k3baudioburndialog.h
+++ b/src/projects/k3baudioburndialog.h
@@ -20,20 +20,20 @@
#include "k3bprojectburndialog.h"
-#include <qvariant.h>
-#include <qwidget.h>
+#include <tqvariant.h>
+#include <tqwidget.h>
-class QCheckBox;
-class QComboBox;
-class QGroupBox;
-class QLabel;
-class QLineEdit;
-class QSpinBox;
+class TQCheckBox;
+class TQComboBox;
+class TQGroupBox;
+class TQLabel;
+class TQLineEdit;
+class TQSpinBox;
class K3bWriterSelectionWidget;
class K3bTempDirSelectionWidget;
class K3bAudioDoc;
class K3bAudioCdTextWidget;
-class QShowEvent;
+class TQShowEvent;
/**
@@ -42,9 +42,10 @@ class QShowEvent;
class K3bAudioBurnDialog : public K3bProjectBurnDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioBurnDialog(K3bAudioDoc* doc, QWidget *parent=0, const char *name=0, bool modal = true );
+ K3bAudioBurnDialog(K3bAudioDoc* doc, TQWidget *tqparent=0, const char *name=0, bool modal = true );
~K3bAudioBurnDialog();
protected:
@@ -53,7 +54,7 @@ class K3bAudioBurnDialog : public K3bProjectBurnDialog
void loadK3bDefaults();
void loadUserDefaults( KConfigBase* );
void saveUserDefaults( KConfigBase* );
- void showEvent( QShowEvent* );
+ void showEvent( TQShowEvent* );
void toggleAll();
protected slots:
@@ -68,12 +69,12 @@ class K3bAudioBurnDialog : public K3bProjectBurnDialog
/**
* We need this here to be able to hide/show the group
*/
- QGroupBox* m_audioRippingGroup;
- QCheckBox* m_checkHideFirstTrack;
- QCheckBox* m_checkNormalize;
- QCheckBox* m_checkAudioRippingIgnoreReadErrors;
- QSpinBox* m_spinAudioRippingReadRetries;
- QComboBox* m_comboParanoiaMode;
+ TQGroupBox* m_audioRippingGroup;
+ TQCheckBox* m_checkHideFirstTrack;
+ TQCheckBox* m_checkNormalize;
+ TQCheckBox* m_checkAudioRippingIgnoreReadErrors;
+ TQSpinBox* m_spinAudioRippingReadRetries;
+ TQComboBox* m_comboParanoiaMode;
K3bAudioCdTextWidget* m_cdtextWidget;
K3bAudioDoc* m_doc;
};
diff --git a/src/projects/k3baudiocdtextwidget.cpp b/src/projects/k3baudiocdtextwidget.cpp
index 8ee5543..f6237b9 100644
--- a/src/projects/k3baudiocdtextwidget.cpp
+++ b/src/projects/k3baudiocdtextwidget.cpp
@@ -20,12 +20,12 @@
#include "k3baudiotrack.h"
#include <k3bcdtextvalidator.h>
-#include <qcheckbox.h>
-#include <qtoolbutton.h>
-#include <qpushbutton.h>
-#include <qptrlist.h>
-#include <qlayout.h>
-#include <qgroupbox.h>
+#include <tqcheckbox.h>
+#include <tqtoolbutton.h>
+#include <tqpushbutton.h>
+#include <tqptrlist.h>
+#include <tqlayout.h>
+#include <tqgroupbox.h>
#include <klineedit.h>
#include <klocale.h>
@@ -36,8 +36,8 @@
class K3bAudioCdTextWidget::AllFieldsDialog : public KDialogBase
{
public:
- AllFieldsDialog( QWidget* parent )
- : KDialogBase( parent,
+ AllFieldsDialog( TQWidget* tqparent )
+ : KDialogBase( tqparent,
"cdtext_allfields_dialog",
true,
i18n("CD-Text"),
@@ -52,8 +52,8 @@ public:
};
-K3bAudioCdTextWidget::K3bAudioCdTextWidget( QWidget* parent, const char* name )
- : base_K3bAudioCdTextWidget( parent, name ),
+K3bAudioCdTextWidget::K3bAudioCdTextWidget( TQWidget* tqparent, const char* name )
+ : base_K3bAudioCdTextWidget( tqparent, name ),
m_doc(0)
{
m_allFieldsDlg = new AllFieldsDialog( this );
@@ -67,7 +67,7 @@ K3bAudioCdTextWidget::K3bAudioCdTextWidget( QWidget* parent, const char* name )
m_allFieldsDlg->w->m_buttonCopyComposer->setPixmap( SmallIcon( "editcopy" ) );
m_allFieldsDlg->w->m_buttonCopyArranger->setPixmap( SmallIcon( "editcopy" ) );
- QValidator* cdTextVal = new K3bCdTextValidator( this );
+ TQValidator* cdTextVal = new K3bCdTextValidator( TQT_TQOBJECT(this) );
m_editTitle->setValidator( cdTextVal );
m_editPerformer->setValidator( cdTextVal );
@@ -80,19 +80,19 @@ K3bAudioCdTextWidget::K3bAudioCdTextWidget( QWidget* parent, const char* name )
m_allFieldsDlg->w->m_editSongwriter->setValidator( cdTextVal );
m_allFieldsDlg->w->m_editComposer->setValidator( cdTextVal );
- connect( m_allFieldsDlg->w->m_buttonCopyTitle, SIGNAL(clicked()),
- this, SLOT(slotCopyTitle()) );
- connect( m_allFieldsDlg->w->m_buttonCopyPerformer, SIGNAL(clicked()),
- this, SLOT(slotCopyPerformer()) );
- connect( m_allFieldsDlg->w->m_buttonCopyArranger, SIGNAL(clicked()),
- this, SLOT(slotCopyArranger()) );
- connect( m_allFieldsDlg->w->m_buttonCopySongwriter, SIGNAL(clicked()),
- this, SLOT(slotCopySongwriter()) );
- connect( m_allFieldsDlg->w->m_buttonCopyComposer, SIGNAL(clicked()),
- this, SLOT(slotCopyComposer()) );
-
- connect( m_buttonMoreFields, SIGNAL(clicked()),
- this, SLOT(slotMoreFields()) );
+ connect( m_allFieldsDlg->w->m_buttonCopyTitle, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotCopyTitle()) );
+ connect( m_allFieldsDlg->w->m_buttonCopyPerformer, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotCopyPerformer()) );
+ connect( m_allFieldsDlg->w->m_buttonCopyArranger, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotCopyArranger()) );
+ connect( m_allFieldsDlg->w->m_buttonCopySongwriter, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotCopySongwriter()) );
+ connect( m_allFieldsDlg->w->m_buttonCopyComposer, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotCopyComposer()) );
+
+ connect( m_buttonMoreFields, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotMoreFields()) );
}
@@ -143,17 +143,17 @@ void K3bAudioCdTextWidget::slotMoreFields()
m_allFieldsDlg->w->m_editPerformer->setText( m_editPerformer->text() );
// save old settings
- QString title = m_allFieldsDlg->w->m_editTitle->text();
- QString performer = m_allFieldsDlg->w->m_editPerformer->text();
- QString disc_id = m_allFieldsDlg->w->m_editDisc_id->text();
- QString upc_ean = m_allFieldsDlg->w->m_editUpc_ean->text();
- QString arranger = m_allFieldsDlg->w->m_editArranger->text();
- QString songwriter = m_allFieldsDlg->w->m_editSongwriter->text();
- QString composer = m_allFieldsDlg->w->m_editComposer->text();
- QString message = m_allFieldsDlg->w->m_editMessage->text();
+ TQString title = m_allFieldsDlg->w->m_editTitle->text();
+ TQString performer = m_allFieldsDlg->w->m_editPerformer->text();
+ TQString disc_id = m_allFieldsDlg->w->m_editDisc_id->text();
+ TQString upc_ean = m_allFieldsDlg->w->m_editUpc_ean->text();
+ TQString arranger = m_allFieldsDlg->w->m_editArranger->text();
+ TQString songwriter = m_allFieldsDlg->w->m_editSongwriter->text();
+ TQString composer = m_allFieldsDlg->w->m_editComposer->text();
+ TQString message = m_allFieldsDlg->w->m_editMessage->text();
// exec dlg
- if( m_allFieldsDlg->exec() == QDialog::Accepted ) {
+ if( m_allFieldsDlg->exec() == TQDialog::Accepted ) {
// accept new entries
m_editTitle->setText( m_allFieldsDlg->w->m_editTitle->text() );
m_editPerformer->setText( m_allFieldsDlg->w->m_editPerformer->text() );
diff --git a/src/projects/k3baudiocdtextwidget.h b/src/projects/k3baudiocdtextwidget.h
index 49b579f..88ff568 100644
--- a/src/projects/k3baudiocdtextwidget.h
+++ b/src/projects/k3baudiocdtextwidget.h
@@ -25,9 +25,10 @@ class K3bAudioDoc;
class K3bAudioCdTextWidget : public base_K3bAudioCdTextWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioCdTextWidget( QWidget* parent = 0, const char* name = 0 );
+ K3bAudioCdTextWidget( TQWidget* tqparent = 0, const char* name = 0 );
~K3bAudioCdTextWidget();
bool isChecked() const;
diff --git a/src/projects/k3baudiodatasourceeditwidget.cpp b/src/projects/k3baudiodatasourceeditwidget.cpp
index d54bb5d..541c946 100644
--- a/src/projects/k3baudiodatasourceeditwidget.cpp
+++ b/src/projects/k3baudiodatasourceeditwidget.cpp
@@ -19,27 +19,27 @@
#include <k3baudiodatasource.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qtooltip.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqtooltip.h>
#include <klocale.h>
#include <kdialog.h>
-K3bAudioDataSourceEditWidget::K3bAudioDataSourceEditWidget( QWidget* parent, const char* name )
- : QWidget( parent, name ),
+K3bAudioDataSourceEditWidget::K3bAudioDataSourceEditWidget( TQWidget* tqparent, const char* name )
+ : TQWidget( tqparent, name ),
m_source(0)
{
m_editor = new K3bAudioEditorWidget( this );
m_editStartOffset = new K3bMsfEdit( this );
m_editEndOffset = new K3bMsfEdit( this );
- QLabel* startLabel = new QLabel( i18n("Start Offset") + ":", this );
- QLabel* endLabel = new QLabel( i18n("End Offset") + ":", this );
- endLabel->setAlignment( Qt::AlignRight );
+ TQLabel* startLabel = new TQLabel( i18n("Start Offset") + ":", this );
+ TQLabel* endLabel = new TQLabel( i18n("End Offset") + ":", this );
+ endLabel->tqsetAlignment( TQt::AlignRight );
- QGridLayout* grid = new QGridLayout( this );
+ TQGridLayout* grid = new TQGridLayout( this );
grid->setMargin( 0 );
grid->setSpacing( KDialog::spacingHint() );
@@ -51,16 +51,16 @@ K3bAudioDataSourceEditWidget::K3bAudioDataSourceEditWidget( QWidget* parent, con
grid->setColStretch( 1, 1 );
// setup connections between the msfedits and the editor
- connect( m_editor, SIGNAL(rangeChanged(int, const K3b::Msf&, const K3b::Msf&)),
- this, SLOT(slotRangeModified(int, const K3b::Msf&, const K3b::Msf&)) );
+ connect( m_editor, TQT_SIGNAL(rangeChanged(int, const K3b::Msf&, const K3b::Msf&)),
+ this, TQT_SLOT(slotRangeModified(int, const K3b::Msf&, const K3b::Msf&)) );
- connect( m_editStartOffset, SIGNAL(valueChanged(const K3b::Msf&)),
- this, SLOT(slotStartOffsetEdited(const K3b::Msf&)) );
+ connect( m_editStartOffset, TQT_SIGNAL(valueChanged(const K3b::Msf&)),
+ this, TQT_SLOT(slotStartOffsetEdited(const K3b::Msf&)) );
- connect( m_editEndOffset, SIGNAL(valueChanged(const K3b::Msf&)),
- this, SLOT(slotEndOffsetEdited(const K3b::Msf&)) );
+ connect( m_editEndOffset, TQT_SIGNAL(valueChanged(const K3b::Msf&)),
+ this, TQT_SLOT(slotEndOffsetEdited(const K3b::Msf&)) );
- QToolTip::add( m_editor, i18n("Drag the edges of the highlighted area to define the portion of the "
+ TQToolTip::add( m_editor, i18n("Drag the edges of the highlighted area to define the portion of the "
"audio source you want to include in the Audio CD track. "
"You can also use the input windows to fine-tune your selection.") );
}
@@ -101,7 +101,7 @@ void K3bAudioDataSourceEditWidget::loadSource( K3bAudioDataSource* source )
false,
false,
i18n("Used part of the audio source"),
- colorGroup().highlight() );
+ tqcolorGroup().highlight() );
m_editStartOffset->setMaxValue( source->originalLength().lba() );
m_editEndOffset->setMaxValue( source->originalLength().lba() );
diff --git a/src/projects/k3baudiodatasourceeditwidget.h b/src/projects/k3baudiodatasourceeditwidget.h
index 4c9d1cb..10a7ace 100644
--- a/src/projects/k3baudiodatasourceeditwidget.h
+++ b/src/projects/k3baudiodatasourceeditwidget.h
@@ -16,7 +16,7 @@
#ifndef _K3B_AUDIODATASOURCE_EDITWIDGET_H_
#define _K3B_AUDIODATASOURCE_EDITWIDGET_H_
-#include <qwidget.h>
+#include <tqwidget.h>
#include <k3bmsf.h>
class K3bAudioDataSource;
@@ -27,12 +27,13 @@ class K3bMsfEdit;
* Widget to modify the start and end offset of a source or simply change
* the length of a silence source.
*/
-class K3bAudioDataSourceEditWidget : public QWidget
+class K3bAudioDataSourceEditWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioDataSourceEditWidget( QWidget* parent = 0, const char* name = 0 );
+ K3bAudioDataSourceEditWidget( TQWidget* tqparent = 0, const char* name = 0 );
~K3bAudioDataSourceEditWidget();
K3b::Msf startOffset() const;
diff --git a/src/projects/k3baudiodatasourceviewitem.cpp b/src/projects/k3baudiodatasourceviewitem.cpp
index 6cf3004..eb70a66 100644
--- a/src/projects/k3baudiodatasourceviewitem.cpp
+++ b/src/projects/k3baudiodatasourceviewitem.cpp
@@ -23,23 +23,23 @@
#include <kiconloader.h>
-K3bAudioDataSourceViewItem::K3bAudioDataSourceViewItem( K3bAudioTrackViewItem* parent,
+K3bAudioDataSourceViewItem::K3bAudioDataSourceViewItem( K3bAudioTrackViewItem* tqparent,
K3bAudioDataSourceViewItem* after,
K3bAudioDataSource* source )
- : K3bListViewItem( parent, after ),
- m_trackViewItem( parent ),
+ : K3bListViewItem( tqparent, after ),
+ m_trackViewItem( tqparent ),
m_source( source ),
m_animationCounter(1)
{
// italic type
- QFont f(listView()->font());
+ TQFont f(listView()->font());
f.setItalic( true );
setFont( 3, f );
// setMarginVertical( 2 );
// gray out filename
- setForegroundColor( 5, listView()->palette().disabled().foreground() );
+ setForegroundColor( 5, listView()->tqpalette().disabled().foreground() );
// smaller filename
f = listView()->font();
@@ -52,7 +52,7 @@ K3bAudioDataSourceViewItem::K3bAudioDataSourceViewItem( K3bAudioTrackViewItem* p
}
-QString K3bAudioDataSourceViewItem::text( int i ) const
+TQString K3bAudioDataSourceViewItem::text( int i ) const
{
switch( i ) {
case 3:
@@ -62,12 +62,12 @@ QString K3bAudioDataSourceViewItem::text( int i ) const
case 5:
return m_source->sourceComment();
default:
- return QString::null;
+ return TQString();
}
}
-void K3bAudioDataSourceViewItem::setText( int col, const QString& text )
+void K3bAudioDataSourceViewItem::setText( int col, const TQString& text )
{
//
// See K3bAudioTrackViewItem::setText for an explanation why we have to check if
@@ -89,7 +89,7 @@ void K3bAudioDataSourceViewItem::setText( int col, const QString& text )
bool K3bAudioDataSourceViewItem::animate()
{
if( source()->length() == 0 && source()->isValid() ) {
- QString icon = QString( "kde%1" ).arg( m_animationCounter );
+ TQString icon = TQString( "kde%1" ).tqarg( m_animationCounter );
setPixmap( 4, SmallIcon( icon ) );
m_animationCounter++;
if ( m_animationCounter > 6 )
diff --git a/src/projects/k3baudiodatasourceviewitem.h b/src/projects/k3baudiodatasourceviewitem.h
index 14da1de..7b2fb5a 100644
--- a/src/projects/k3baudiodatasourceviewitem.h
+++ b/src/projects/k3baudiodatasourceviewitem.h
@@ -25,15 +25,15 @@ class K3bAudioTrackViewItem;
class K3bAudioDataSourceViewItem : public K3bListViewItem
{
public:
- K3bAudioDataSourceViewItem( K3bAudioTrackViewItem* parent,
+ K3bAudioDataSourceViewItem( K3bAudioTrackViewItem* tqparent,
K3bAudioDataSourceViewItem* after,
K3bAudioDataSource* );
K3bAudioDataSource* source() const { return m_source; }
K3bAudioTrackViewItem* trackViewItem() const { return m_trackViewItem; }
- QString text( int i ) const;
- void setText( int col, const QString& text );
+ TQString text( int i ) const;
+ void setText( int col, const TQString& text );
bool animate();
@@ -42,7 +42,7 @@ class K3bAudioDataSourceViewItem : public K3bListViewItem
/**
* Does nothing becasue we don't want no branches here.
*/
- void paintBranches( QPainter*, const QColorGroup &,
+ void paintBranches( TQPainter*, const TQColorGroup &,
int, int, int ) {}
private:
diff --git a/src/projects/k3baudioeditorwidget.cpp b/src/projects/k3baudioeditorwidget.cpp
index 453f76f..186fdb5 100644
--- a/src/projects/k3baudioeditorwidget.cpp
+++ b/src/projects/k3baudioeditorwidget.cpp
@@ -15,13 +15,13 @@
#include "k3baudioeditorwidget.h"
-#include <qpainter.h>
-#include <qcolor.h>
-#include <qpixmap.h>
-#include <qcursor.h>
-#include <qapplication.h>
-#include <qdesktopwidget.h>
-#include <qtooltip.h>
+#include <tqpainter.h>
+#include <tqcolor.h>
+#include <tqpixmap.h>
+#include <tqcursor.h>
+#include <tqapplication.h>
+#include <tqdesktopwidget.h>
+#include <tqtooltip.h>
@@ -33,8 +33,8 @@ public:
const K3b::Msf& e,
bool sf,
bool ef,
- const QString& t,
- const QBrush& b )
+ const TQString& t,
+ const TQBrush& b )
: id(i),
start(s),
end(e),
@@ -49,8 +49,8 @@ public:
K3b::Msf end;
bool startFixed;
bool endFixed;
- QBrush brush;
- QString toolTip;
+ TQBrush brush;
+ TQString toolTip;
bool operator<( const K3bAudioEditorWidget::Range& r ) {
return start < r.start;
@@ -70,8 +70,8 @@ public:
Marker( int i,
const K3b::Msf& msf,
bool f,
- const QColor& c,
- const QString& t )
+ const TQColor& c,
+ const TQString& t )
: id(i),
pos(msf),
fixed(f),
@@ -82,25 +82,25 @@ public:
int id;
K3b::Msf pos;
bool fixed;
- QColor color;
- QString toolTip;
+ TQColor color;
+ TQString toolTip;
operator K3b::Msf& () { return pos; }
};
-class K3bAudioEditorWidget::RangeList : public QPtrList<K3bAudioEditorWidget::Range>
+class K3bAudioEditorWidget::RangeList : public TQPtrList<K3bAudioEditorWidget::Range>
{
public:
RangeList()
- : QPtrList<Range>() {
+ : TQPtrList<Range>() {
}
RangeList( const RangeList& l )
- : QPtrList<Range>( l ) {
+ : TQPtrList<Range>( l ) {
}
- int compareItems( QPtrCollection::Item item1, QPtrCollection::Item item2 ) {
+ int compareItems( TQPtrCollection::Item item1, TQPtrCollection::Item item2 ) {
if( *static_cast<Range*>(item1) > *static_cast<Range*>(item2) )
return 1;
else if( *static_cast<Range*>(item1) < *static_cast<Range*>(item2) )
@@ -110,22 +110,22 @@ public:
}
};
-class K3bAudioEditorWidget::ToolTip : public QToolTip
+class K3bAudioEditorWidget::ToolTip : public TQToolTip
{
public:
ToolTip( K3bAudioEditorWidget* w )
- : QToolTip( w ),
+ : TQToolTip( w ),
m_editorWidget( w ) {
}
protected:
- void maybeTip( const QPoint& p ) {
- QRect r = m_editorWidget->contentsRect();
+ void maybeTip( const TQPoint& p ) {
+ TQRect r = m_editorWidget->contentsRect();
Marker* m = m_editorWidget->findMarker( p );
if( m ) {
r.setLeft( p.x() - 1 );
r.setRight( p.x() + 1 );
- tip( r, m->toolTip.isEmpty() ? m->pos.toString() : QString("%1 (%2)").arg(m->toolTip).arg(m->pos.toString()) );
+ tip( r, m->toolTip.isEmpty() ? m->pos.toString() : TQString("%1 (%2)").tqarg(m->toolTip).tqarg(m->pos.toString()) );
}
else {
Range* range = m_editorWidget->findRange( p );
@@ -134,8 +134,8 @@ protected:
r.setRight( m_editorWidget->msfToPos( range->end ) );
tip( r,
range->toolTip.isEmpty()
- ? QString("%1 - %2").arg(range->start.toString()).arg(range->end.toString())
- : QString("%1 (%2 - %3)").arg(range->toolTip).arg(range->start.toString()).arg(range->end.toString()) );
+ ? TQString("%1 - %2").tqarg(range->start.toString()).tqarg(range->end.toString())
+ : TQString("%1 (%2 - %3)").tqarg(range->toolTip).tqarg(range->start.toString()).tqarg(range->end.toString()) );
}
}
}
@@ -155,7 +155,7 @@ public:
movedRange(0) {
}
- QBrush selectedRangeBrush;
+ TQBrush selectedRangeBrush;
bool allowOverlappingRanges;
bool rangeSelectionEnabled;
@@ -168,8 +168,8 @@ public:
};
-K3bAudioEditorWidget::K3bAudioEditorWidget( QWidget* parent, const char* name )
- : QFrame( parent, name, Qt::WNoAutoErase ),
+K3bAudioEditorWidget::K3bAudioEditorWidget( TQWidget* tqparent, const char* name )
+ : TQFrame( tqparent, name, TQt::WNoAutoErase ),
m_maxMarkers(1),
m_idCnt(1),
m_mouseAt(true),
@@ -177,12 +177,12 @@ K3bAudioEditorWidget::K3bAudioEditorWidget( QWidget* parent, const char* name )
m_draggedMarker(0)
{
d = new Private;
- d->selectedRangeBrush = colorGroup().highlight();
+ d->selectedRangeBrush = TQBrush(tqcolorGroup().highlight());
- setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Minimum );
+ tqsetSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Minimum );
setFrameStyle( StyledPanel|Sunken );
setMouseTracking(true);
- setCursor( Qt::PointingHandCursor );
+ setCursor( TQt::PointingHandCursor );
m_margin = 5;
@@ -201,23 +201,23 @@ K3bAudioEditorWidget::~K3bAudioEditorWidget()
}
-QSize K3bAudioEditorWidget::minimumSizeHint() const
+TQSize K3bAudioEditorWidget::tqminimumSizeHint() const
{
constPolish();
// some fixed height minimum and enough space for a tickmark every minute
// But never exceed 2/3 of the the screen width, otherwise it just looks ugly
// FIXME: this is still bad for long sources and there might be 60 minutes sources!
- int maxWidth = QApplication::desktop()->width()*2/3;
+ int maxWidth = TQApplication::desktop()->width()*2/3;
int wantedWidth = 2*m_margin + 2*frameWidth() + (m_length.totalFrames()/75/60 + 1) * fontMetrics().width( "000" );
- return QSize( QMIN( maxWidth, wantedWidth ),
+ return TQSize( TQMIN( maxWidth, wantedWidth ),
2*m_margin + 12 + 6 /*12 for the tickmarks and 6 for the markers */ + fontMetrics().height() + 2*frameWidth() );
}
-QSize K3bAudioEditorWidget::sizeHint() const
+TQSize K3bAudioEditorWidget::tqsizeHint() const
{
- return minimumSizeHint();
+ return tqminimumSizeHint();
}
@@ -236,13 +236,13 @@ const K3b::Msf K3bAudioEditorWidget::length() const
}
-void K3bAudioEditorWidget::setSelectedRangeBrush( const QBrush& b )
+void K3bAudioEditorWidget::setSelectedRangeBrush( const TQBrush& b )
{
d->selectedRangeBrush = b;
}
-const QBrush& K3bAudioEditorWidget::selectedRangeBrush() const
+const TQBrush& K3bAudioEditorWidget::selectedRangeBrush() const
{
return d->selectedRangeBrush;
}
@@ -263,7 +263,7 @@ bool K3bAudioEditorWidget::allowOverlappingRanges() const
void K3bAudioEditorWidget::enableRangeSelection( bool b )
{
d->rangeSelectionEnabled = b;
- repaint( false );
+ tqrepaint( false );
}
@@ -283,7 +283,7 @@ void K3bAudioEditorWidget::setSelectedRange( K3bAudioEditorWidget::Range* r )
{
d->selectedRange = r;
if( rangeSelectedEnabled() ) {
- repaint( false );
+ tqrepaint( false );
emit selectedRangeChanged( d->selectedRange ? d->selectedRange->id : 0 );
}
}
@@ -300,18 +300,18 @@ int K3bAudioEditorWidget::selectedRange() const
int K3bAudioEditorWidget::addRange( const K3b::Msf& start, const K3b::Msf& end,
bool startFixed, bool endFixed,
- const QString& toolTip,
- const QBrush& brush )
+ const TQString& toolTip,
+ const TQBrush& brush )
{
if( start > end || end > m_length-1 )
return -1;
Range* r = new Range( m_idCnt++, start, end, startFixed, endFixed, toolTip,
- brush.style() != QBrush::NoBrush ? brush : QBrush(colorGroup().background()) );
+ brush.style() != TQBrush::NoBrush ? brush : TQBrush(tqcolorGroup().background()) );
d->ranges.inSort( r );
// only update the changed range
- QRect rect = contentsRect();
+ TQRect rect = contentsRect();
rect.setLeft( msfToPos( start ) );
rect.setRight( msfToPos( end ) );
update( rect );
@@ -322,7 +322,7 @@ int K3bAudioEditorWidget::addRange( const K3b::Msf& start, const K3b::Msf& end,
int K3bAudioEditorWidget::findRange( int pos ) const
{
- Range* r = findRange( QPoint( pos, 0 ) );
+ Range* r = findRange( TQPoint( pos, 0 ) );
if( r )
return r->id;
else
@@ -332,7 +332,7 @@ int K3bAudioEditorWidget::findRange( int pos ) const
int K3bAudioEditorWidget::findRangeEdge( int pos, bool* end ) const
{
- Range* r = findRangeEdge( QPoint( pos, 0 ), end );
+ Range* r = findRangeEdge( TQPoint( pos, 0 ), end );
if( r )
return r->id;
else
@@ -356,7 +356,7 @@ bool K3bAudioEditorWidget::modifyRange( int identifier, const K3b::Msf& start, c
if( !d->allowOverlappingRanges )
fixupOverlappingRanges( range );
- repaint( false );
+ tqrepaint( false );
return true;
}
@@ -372,8 +372,8 @@ bool K3bAudioEditorWidget::removeRange( int identifier )
emit rangeRemoved( identifier );
- // repaint only the part of the range
- QRect rect = contentsRect();
+ // tqrepaint only the part of the range
+ TQRect rect = contentsRect();
rect.setLeft( msfToPos( range->start ) );
rect.setRight( msfToPos( range->end ) );
@@ -409,11 +409,11 @@ K3b::Msf K3bAudioEditorWidget::rangeEnd( int identifier ) const
}
-QValueList<int> K3bAudioEditorWidget::allRanges() const
+TQValueList<int> K3bAudioEditorWidget::allRanges() const
{
- QValueList<int> l;
+ TQValueList<int> l;
d->ranges.sort();
- for( QPtrListIterator<Range> it( d->ranges ); *it; ++it )
+ for( TQPtrListIterator<Range> it( d->ranges ); *it; ++it )
l.append( (*it)->id );
return l;
}
@@ -424,16 +424,16 @@ void K3bAudioEditorWidget::setMaxNumberOfMarkers( int i )
m_maxMarkers = i;
// remove last markers
- while( m_markers.count() > QMAX( 1, m_maxMarkers ) ) {
+ while( m_markers.count() > TQMAX( 1, m_maxMarkers ) ) {
removeMarker( m_markers.getLast()->id );
}
}
-int K3bAudioEditorWidget::addMarker( const K3b::Msf& pos, bool fixed, const QString& toolTip, const QColor& color )
+int K3bAudioEditorWidget::addMarker( const K3b::Msf& pos, bool fixed, const TQString& toolTip, const TQColor& color )
{
if( pos < m_length ) {
- Marker* m = new Marker( m_idCnt++, pos, fixed, color.isValid() ? color : colorGroup().foreground(), toolTip );
+ Marker* m = new Marker( m_idCnt++, pos, fixed, color.isValid() ? color : tqcolorGroup().foreground(), toolTip );
m_markers.inSort( m );
return m->id;
}
@@ -450,7 +450,7 @@ bool K3bAudioEditorWidget::removeMarker( int identifier )
emit markerRemoved( identifier );
// TODO: in case a marker is bigger than one pixel this needs to be changed
- QRect rect = contentsRect();
+ TQRect rect = contentsRect();
rect.setLeft( msfToPos( m->pos ) );
rect.setRight( msfToPos( m->pos ) );
delete m;
@@ -468,9 +468,9 @@ bool K3bAudioEditorWidget::moveMarker( int identifier, const K3b::Msf& pos )
{
if( pos < m_length )
if( Marker* m = getMarker( identifier ) ) {
- QRect rect = contentsRect();
- rect.setLeft( QMIN( msfToPos( pos ), msfToPos( m->pos ) ) );
- rect.setRight( QMAX( msfToPos( pos ), msfToPos( m->pos ) ) );
+ TQRect rect = contentsRect();
+ rect.setLeft( TQMIN( msfToPos( pos ), msfToPos( m->pos ) ) );
+ rect.setRight( TQMAX( msfToPos( pos ), msfToPos( m->pos ) ) );
m->pos = pos;
@@ -484,20 +484,20 @@ bool K3bAudioEditorWidget::moveMarker( int identifier, const K3b::Msf& pos )
}
-void K3bAudioEditorWidget::drawContents( QPainter* p )
+void K3bAudioEditorWidget::drawContents( TQPainter* p )
{
// double buffering
- QPixmap pix( contentsRect().size() );
- pix.fill( colorGroup().base() );
+ TQPixmap pix( contentsRect().size() );
+ pix.fill( tqcolorGroup().base() );
- QPainter pixP;
- pixP.begin( &pix, this );
+ TQPainter pixP;
+ pixP.tqbegin( &pix, TQT_TQOBJECT(this) );
- QRect drawRect( contentsRect() );
+ TQRect drawRect( contentsRect() );
drawRect.setLeft( drawRect.left() + m_margin );
drawRect.setRight( drawRect.right() - m_margin );
- // from minimumSizeHint()
+ // from tqminimumSizeHint()
// int neededHeight = fontMetrics().height() + 12 + 6;
// drawRect.setTop( drawRect.top() + (drawRect.height() - neededHeight)/2 );
@@ -510,24 +510,24 @@ void K3bAudioEditorWidget::drawContents( QPainter* p )
pixP.end();
- QRect rect = p->clipRegion().boundingRect();
- QRect pixRect = rect;
+ TQRect rect = p->clipRegion().boundingRect();
+ TQRect pixRect = rect;
pixRect.moveBy( -1*frameWidth(), -1*frameWidth() );
bitBlt( this, rect.topLeft(), &pix, pixRect );
}
-void K3bAudioEditorWidget::drawAll( QPainter* p, const QRect& drawRect )
+void K3bAudioEditorWidget::drawAll( TQPainter* p, const TQRect& drawRect )
{
// we simply draw the ranges one after the other.
- for( QPtrListIterator<Range> it( d->ranges ); *it; ++it )
+ for( TQPtrListIterator<Range> it( d->ranges ); *it; ++it )
drawRange( p, drawRect, *it );
// Hack to make sure the currently selected range is always on top
if( d->selectedRange )
drawRange( p, drawRect, d->selectedRange );
- for( QPtrListIterator<Marker> it( m_markers ); *it; ++it )
+ for( TQPtrListIterator<Marker> it( m_markers ); *it; ++it )
drawMarker( p, drawRect, *it );
@@ -547,7 +547,7 @@ void K3bAudioEditorWidget::drawAll( QPainter* p, const QRect& drawRect )
int minute = 1;
int minuteStep = 1;
int markerVPos = drawRect.bottom();
- int maxMarkerWidth = fontMetrics().width( QString::number(m_length.minutes()) );
+ int maxMarkerWidth = fontMetrics().width( TQString::number(m_length.minutes()) );
int minNeededSpace = maxMarkerWidth + 1;
int x = 0;
while( minute*60*75 < m_length ) {
@@ -556,11 +556,11 @@ void K3bAudioEditorWidget::drawAll( QPainter* p, const QRect& drawRect )
// only draw the mark if we have anough space
if( newX - x >= minNeededSpace ) {
p->drawLine( newX, markerVPos, newX, markerVPos-5 );
- QRect txtRect( newX-(maxMarkerWidth/2),
+ TQRect txtRect( newX-(maxMarkerWidth/2),
markerVPos - 6 - fontMetrics().height(),
maxMarkerWidth,
fontMetrics().height() );
- p->drawText( txtRect, Qt::AlignCenter, QString::number(minute) );
+ p->drawText( txtRect, TQt::AlignCenter, TQString::number(minute) );
// FIXME: draw second markers if we have enough space
@@ -579,7 +579,7 @@ void K3bAudioEditorWidget::drawAll( QPainter* p, const QRect& drawRect )
}
-void K3bAudioEditorWidget::drawRange( QPainter* p, const QRect& drawRect, K3bAudioEditorWidget::Range* r )
+void K3bAudioEditorWidget::drawRange( TQPainter* p, const TQRect& drawRect, K3bAudioEditorWidget::Range* r )
{
p->save();
@@ -597,7 +597,7 @@ void K3bAudioEditorWidget::drawRange( QPainter* p, const QRect& drawRect, K3bAud
}
-void K3bAudioEditorWidget::drawMarker( QPainter* p, const QRect& drawRect, K3bAudioEditorWidget::Marker* m )
+void K3bAudioEditorWidget::drawMarker( TQPainter* p, const TQRect& drawRect, K3bAudioEditorWidget::Marker* m )
{
p->save();
@@ -607,7 +607,7 @@ void K3bAudioEditorWidget::drawMarker( QPainter* p, const QRect& drawRect, K3bAu
int x = msfToPos( m->pos );
p->drawLine( x, drawRect.bottom(), x, drawRect.top() );
- QPointArray points( 3 );
+ TQPointArray points( 3 );
points.setPoint( 0, x, drawRect.top() + 6 );
points.setPoint( 1, x-3, drawRect.top() );
points.setPoint( 2, x+3, drawRect.top() );
@@ -621,7 +621,7 @@ void K3bAudioEditorWidget::fixupOverlappingRanges( Range* r )
{
// copy the list to avoid problems with the iterator
RangeList ranges( d->ranges );
- for( QPtrListIterator<Range> it( ranges ); *it; ++it ) {
+ for( TQPtrListIterator<Range> it( ranges ); *it; ++it ) {
Range* range = *it;
if( range != r ) {
// remove the range if it is covered completely
@@ -659,7 +659,7 @@ void K3bAudioEditorWidget::fixupOverlappingRanges( Range* r )
}
-void K3bAudioEditorWidget::mousePressEvent( QMouseEvent* e )
+void K3bAudioEditorWidget::mousePressEvent( TQMouseEvent* e )
{
m_draggedRange = 0;
m_draggedMarker = 0;
@@ -678,11 +678,11 @@ void K3bAudioEditorWidget::mousePressEvent( QMouseEvent* e )
m_draggedMarker = findMarker( e->pos() );
}
- QFrame::mousePressEvent(e);
+ TQFrame::mousePressEvent(e);
}
-void K3bAudioEditorWidget::mouseReleaseEvent( QMouseEvent* e )
+void K3bAudioEditorWidget::mouseReleaseEvent( TQMouseEvent* e )
{
if( !d->allowOverlappingRanges ) {
//
@@ -690,11 +690,11 @@ void K3bAudioEditorWidget::mouseReleaseEvent( QMouseEvent* e )
//
if( m_draggedRange ) {
fixupOverlappingRanges( m_draggedRange );
- repaint( false );
+ tqrepaint( false );
}
else if( d->movedRange ) {
fixupOverlappingRanges( d->movedRange );
- repaint( false );
+ tqrepaint( false );
}
}
@@ -702,17 +702,17 @@ void K3bAudioEditorWidget::mouseReleaseEvent( QMouseEvent* e )
m_draggedMarker = 0;
d->movedRange = 0;
- QFrame::mouseReleaseEvent(e);
+ TQFrame::mouseReleaseEvent(e);
}
-void K3bAudioEditorWidget::mouseDoubleClickEvent( QMouseEvent* e )
+void K3bAudioEditorWidget::mouseDoubleClickEvent( TQMouseEvent* e )
{
- QFrame::mouseDoubleClickEvent(e);
+ TQFrame::mouseDoubleClickEvent(e);
}
-void K3bAudioEditorWidget::mouseMoveEvent( QMouseEvent* e )
+void K3bAudioEditorWidget::mouseMoveEvent( TQMouseEvent* e )
{
if( m_mouseAt )
emit mouseAt( posToMsf( e->pos().x() ) );
@@ -720,7 +720,7 @@ void K3bAudioEditorWidget::mouseMoveEvent( QMouseEvent* e )
if( e->state() & Qt::LeftButton ) {
if( m_draggedRange ) {
// determine the position the range's end was dragged to and its other end
- K3b::Msf msfPos = QMAX( 0, QMIN( posToMsf( e->pos().x() ), m_length-1 ) );
+ K3b::Msf msfPos = TQMAX( 0, TQMIN( posToMsf( e->pos().x() ), m_length-1 ) );
K3b::Msf otherEnd = ( m_draggingRangeEnd ? m_draggedRange->start : m_draggedRange->end );
// move it to the new pos
@@ -739,13 +739,13 @@ void K3bAudioEditorWidget::mouseMoveEvent( QMouseEvent* e )
emit rangeChanged( m_draggedRange->id, m_draggedRange->start, m_draggedRange->end );
- repaint( false );
+ tqrepaint( false );
}
else if( m_draggedMarker ) {
m_draggedMarker->pos = posToMsf( e->pos().x() );
emit markerMoved( m_draggedMarker->id, m_draggedMarker->pos );
- repaint( false );
+ tqrepaint( false );
}
else if( d->movedRange ) {
int diff = posToMsf( e->pos().x() ).lba() - d->lastMovePosition.lba();
@@ -763,21 +763,21 @@ void K3bAudioEditorWidget::mouseMoveEvent( QMouseEvent* e )
emit rangeChanged( d->movedRange->id, d->movedRange->start, d->movedRange->end );
- repaint( false );
+ tqrepaint( false );
}
}
else if( findRangeEdge( e->pos() ) || findMarker( e->pos() ) )
- setCursor( Qt::SizeHorCursor );
+ setCursor( TQt::SizeHorCursor );
else
- setCursor( Qt::PointingHandCursor );
+ setCursor( TQt::PointingHandCursor );
- QFrame::mouseMoveEvent(e);
+ TQFrame::mouseMoveEvent(e);
}
K3bAudioEditorWidget::Range* K3bAudioEditorWidget::getRange( int i ) const
{
- for( QPtrListIterator<Range> it( d->ranges ); *it; ++it )
+ for( TQPtrListIterator<Range> it( d->ranges ); *it; ++it )
if( (*it)->id == i )
return *it;
@@ -785,11 +785,11 @@ K3bAudioEditorWidget::Range* K3bAudioEditorWidget::getRange( int i ) const
}
-K3bAudioEditorWidget::Range* K3bAudioEditorWidget::findRange( const QPoint& p ) const
+K3bAudioEditorWidget::Range* K3bAudioEditorWidget::findRange( const TQPoint& p ) const
{
// TODO: binary search; maybe store start and end positions in sorted lists for quick searching
// this might be a stupid approach but we do not have many ranges anyway
- for( QPtrListIterator<Range> it( d->ranges ); *it; ++it ) {
+ for( TQPtrListIterator<Range> it( d->ranges ); *it; ++it ) {
Range* range = *it;
int start = msfToPos( range->start );
int end = msfToPos( range->end );
@@ -802,11 +802,11 @@ K3bAudioEditorWidget::Range* K3bAudioEditorWidget::findRange( const QPoint& p )
}
-K3bAudioEditorWidget::Range* K3bAudioEditorWidget::findRangeEdge( const QPoint& p, bool* isEnd ) const
+K3bAudioEditorWidget::Range* K3bAudioEditorWidget::findRangeEdge( const TQPoint& p, bool* isEnd ) const
{
// TODO: binary search
// this might be a stupid approach but we do not have many ranges anyway
- for( QPtrListIterator<Range> it( d->ranges ); *it; ++it ) {
+ for( TQPtrListIterator<Range> it( d->ranges ); *it; ++it ) {
Range* range = *it;
int start = msfToPos( range->start );
int end = msfToPos( range->end );
@@ -833,7 +833,7 @@ K3bAudioEditorWidget::Range* K3bAudioEditorWidget::findRangeEdge( const QPoint&
K3bAudioEditorWidget::Marker* K3bAudioEditorWidget::getMarker( int i ) const
{
- for( QPtrListIterator<Marker> it( m_markers ); *it; ++it )
+ for( TQPtrListIterator<Marker> it( m_markers ); *it; ++it )
if( (*it)->id == i )
return *it;
@@ -841,10 +841,10 @@ K3bAudioEditorWidget::Marker* K3bAudioEditorWidget::getMarker( int i ) const
}
-K3bAudioEditorWidget::Marker* K3bAudioEditorWidget::findMarker( const QPoint& p ) const
+K3bAudioEditorWidget::Marker* K3bAudioEditorWidget::findMarker( const TQPoint& p ) const
{
// TODO: binary search
- for( QPtrListIterator<Marker> it( m_markers ); *it; ++it ) {
+ for( TQPtrListIterator<Marker> it( m_markers ); *it; ++it ) {
Marker* marker = *it;
int start = msfToPos( marker->pos );
@@ -860,7 +860,7 @@ K3bAudioEditorWidget::Marker* K3bAudioEditorWidget::findMarker( const QPoint& p
K3b::Msf K3bAudioEditorWidget::posToMsf( int p ) const
{
int w = contentsRect().width() - 2*m_margin;
- int x = QMIN( p-frameWidth()-m_margin, w );
+ int x = TQMIN( p-frameWidth()-m_margin, w );
return ( (int)((double)(m_length.lba()-1) / (double)w * (double)x) );
}
@@ -870,7 +870,7 @@ int K3bAudioEditorWidget::msfToPos( const K3b::Msf& msf ) const
{
int w = contentsRect().width() - 2*m_margin;
int pos = (int)((double)w / (double)(m_length.lba()-1) * (double)msf.lba());
- return frameWidth() + m_margin + QMIN( pos, w-1 );
+ return frameWidth() + m_margin + TQMIN( pos, w-1 );
}
diff --git a/src/projects/k3baudioeditorwidget.h b/src/projects/k3baudioeditorwidget.h
index 6e939d7..fdb3088 100644
--- a/src/projects/k3baudioeditorwidget.h
+++ b/src/projects/k3baudioeditorwidget.h
@@ -16,25 +16,26 @@
#ifndef _K3B_AUDIO_EDITOR_WIDGET_H_
#define _K3B_AUDIO_EDITOR_WIDGET_H_
-#include <qframe.h>
-#include <qptrlist.h>
+#include <tqframe.h>
+#include <tqptrlist.h>
#include <k3bmsf.h>
-class QPainter;
+class TQPainter;
-class K3bAudioEditorWidget : public QFrame
+class K3bAudioEditorWidget : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioEditorWidget( QWidget* parent = 0, const char* name = 0 );
+ K3bAudioEditorWidget( TQWidget* tqparent = 0, const char* name = 0 );
~K3bAudioEditorWidget();
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
+ TQSize tqsizeHint() const;
+ TQSize tqminimumSizeHint() const;
/**
* For now the Editor has only one parameter: the length data.
@@ -53,8 +54,8 @@ class K3bAudioEditorWidget : public QFrame
*/
int addRange( const K3b::Msf& start, const K3b::Msf& end,
bool startFixed = false, bool endFixed = false,
- const QString& toolTip = QString::null,
- const QBrush& brush = QBrush() );
+ const TQString& toolTip = TQString(),
+ const TQBrush& brush = TQBrush() );
/**
* \returns the identifier of the range which spans over x position \a pos or
@@ -86,7 +87,7 @@ class K3bAudioEditorWidget : public QFrame
* \return A list of all ranges' identifiers sorted ascending by start
* offset
*/
- QValueList<int> allRanges() const;
+ TQValueList<int> allRanges() const;
void setMaxNumberOfMarkers( int );
@@ -95,7 +96,7 @@ class K3bAudioEditorWidget : public QFrame
* @return -1 on error or an identifier on success.
*/
int addMarker( const K3b::Msf& pos, bool fixed = false,
- const QString& toolTip = QString::null, const QColor& color = QColor() );
+ const TQString& toolTip = TQString(), const TQColor& color = TQColor() );
/**
* @return false if the marker does not exist.
@@ -140,10 +141,10 @@ class K3bAudioEditorWidget : public QFrame
int msfToPos( const K3b::Msf& msf ) const;
/**
- * Set the brush to paint the selected range. Default is QColorGroup::Highlight
+ * Set the brush to paint the selected range. Default is TQColorGroup::Highlight
*/
- void setSelectedRangeBrush( const QBrush& );
- const QBrush& selectedRangeBrush() const;
+ void setSelectedRangeBrush( const TQBrush& );
+ const TQBrush& selectedRangeBrush() const;
signals:
/**
@@ -177,14 +178,14 @@ class K3bAudioEditorWidget : public QFrame
class Private;
Private* d;
- void mousePressEvent( QMouseEvent* e );
- void mouseReleaseEvent( QMouseEvent* e );
- void mouseDoubleClickEvent( QMouseEvent* e );
- void mouseMoveEvent( QMouseEvent* e );
- void drawContents( QPainter* );
- void drawAll( QPainter*, const QRect& );
- void drawRange( QPainter* p, const QRect&, Range* r );
- void drawMarker( QPainter* p, const QRect&, Marker* m );
+ void mousePressEvent( TQMouseEvent* e );
+ void mouseReleaseEvent( TQMouseEvent* e );
+ void mouseDoubleClickEvent( TQMouseEvent* e );
+ void mouseMoveEvent( TQMouseEvent* e );
+ void drawContents( TQPainter* );
+ void drawAll( TQPainter*, const TQRect& );
+ void drawRange( TQPainter* p, const TQRect&, Range* r );
+ void drawMarker( TQPainter* p, const TQRect&, Marker* m );
/**
* Makes sure that \a r does not overlap any other range by modifying and
@@ -194,14 +195,14 @@ class K3bAudioEditorWidget : public QFrame
Range* getRange( int i ) const;
Marker* getMarker( int i ) const;
- Range* findRange( const QPoint& p ) const;
- Range* findRangeEdge( const QPoint& p, bool* end = 0 ) const;
- Marker* findMarker( const QPoint& p ) const;
+ Range* findRange( const TQPoint& p ) const;
+ Range* findRangeEdge( const TQPoint& p, bool* end = 0 ) const;
+ Marker* findMarker( const TQPoint& p ) const;
void setSelectedRange( Range* );
int m_maxMarkers;
K3b::Msf m_length;
- QPtrList<Marker> m_markers;
+ TQPtrList<Marker> m_markers;
int m_idCnt;
bool m_mouseAt;
diff --git a/src/projects/k3baudiotrackaddingdialog.cpp b/src/projects/k3baudiotrackaddingdialog.cpp
index dfbcbb9..1e540e2 100644
--- a/src/projects/k3baudiotrackaddingdialog.cpp
+++ b/src/projects/k3baudiotrackaddingdialog.cpp
@@ -29,11 +29,11 @@
#include <kdebug.h>
#include <kmessagebox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qfileinfo.h>
-#include <qtimer.h>
-#include <qdir.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqfileinfo.h>
+#include <tqtimer.h>
+#include <tqdir.h>
class K3bAudioTrackAddingDialog::AnalyserThread : public K3bThread
@@ -54,31 +54,31 @@ public:
};
-K3bAudioTrackAddingDialog::K3bAudioTrackAddingDialog( QWidget* parent, const char* name )
+K3bAudioTrackAddingDialog::K3bAudioTrackAddingDialog( TQWidget* tqparent, const char* name )
: KDialogBase( Plain,
i18n("Please be patient..."),
Cancel,
Cancel,
- parent,
+ tqparent,
name,
true,
true ),
m_bCanceled(false)
{
- QWidget* page = plainPage();
- QGridLayout* grid = new QGridLayout( page );
+ TQWidget* page = plainPage();
+ TQGridLayout* grid = new TQGridLayout( page );
grid->setSpacing( spacingHint() );
grid->setMargin( marginHint() );
- m_infoLabel = new QLabel( page );
+ m_infoLabel = new TQLabel( page );
m_busyWidget = new K3bBusyWidget( page );
grid->addWidget( m_infoLabel, 0, 0 );
grid->addWidget( m_busyWidget, 1, 0 );
m_analyserThread = new AnalyserThread();
- m_analyserJob = new K3bThreadJob( m_analyserThread, this, this );
- connect( m_analyserJob, SIGNAL(finished(bool)), this, SLOT(slotAnalysingFinished(bool)) );
+ m_analyserJob = new K3bThreadJob( m_analyserThread, this, TQT_TQOBJECT(this) );
+ connect( m_analyserJob, TQT_SIGNAL(finished(bool)), this, TQT_SLOT(slotAnalysingFinished(bool)) );
}
@@ -91,48 +91,48 @@ K3bAudioTrackAddingDialog::~K3bAudioTrackAddingDialog()
int K3bAudioTrackAddingDialog::addUrls( const KURL::List& urls,
K3bAudioDoc* doc,
K3bAudioTrack* afterTrack,
- K3bAudioTrack* parentTrack,
+ K3bAudioTrack* tqparentTrack,
K3bAudioDataSource* afterSource,
- QWidget* parent )
+ TQWidget* tqparent )
{
if( urls.isEmpty() )
return 0;
- K3bAudioTrackAddingDialog dlg( parent );
+ K3bAudioTrackAddingDialog dlg( tqparent );
dlg.m_urls = extractUrlList( urls );
dlg.m_doc = doc;
dlg.m_trackAfter = afterTrack;
- dlg.m_parentTrack = parentTrack;
+ dlg.m_parentTrack = tqparentTrack;
dlg.m_sourceAfter = afterSource;
- dlg.m_infoLabel->setText( i18n("Adding files to project \"%1\"...").arg(doc->URL().fileName()) );
+ dlg.m_infoLabel->setText( i18n("Adding files to project \"%1\"...").tqarg(doc->URL().fileName()) );
dlg.m_busyWidget->showBusy(true);
- QTimer::singleShot( 0, &dlg, SLOT(slotAddUrls()) );
+ TQTimer::singleShot( 0, &dlg, TQT_SLOT(slotAddUrls()) );
int ret = dlg.exec();
- QString message;
+ TQString message;
if( !dlg.m_unreadableFiles.isEmpty() )
- message += QString("<p><b>%1:</b><br>%2")
- .arg( i18n("Insufficient permissions to read the following files") )
- .arg( dlg.m_unreadableFiles.join( "<br>" ) );
+ message += TQString("<p><b>%1:</b><br>%2")
+ .tqarg( i18n("Insufficient permissions to read the following files") )
+ .tqarg( dlg.m_unreadableFiles.join( "<br>" ) );
if( !dlg.m_notFoundFiles.isEmpty() )
- message += QString("<p><b>%1:</b><br>%2")
- .arg( i18n("Unable to find the following files") )
- .arg( dlg.m_notFoundFiles.join( "<br>" ) );
+ message += TQString("<p><b>%1:</b><br>%2")
+ .tqarg( i18n("Unable to find the following files") )
+ .tqarg( dlg.m_notFoundFiles.join( "<br>" ) );
if( !dlg.m_nonLocalFiles.isEmpty() )
- message += QString("<p><b>%1:</b><br>%2")
- .arg( i18n("No non-local files supported") )
- .arg( dlg.m_unreadableFiles.join( "<br>" ) );
+ message += TQString("<p><b>%1:</b><br>%2")
+ .tqarg( i18n("No non-local files supported") )
+ .tqarg( dlg.m_unreadableFiles.join( "<br>" ) );
if( !dlg.m_unsupportedFiles.isEmpty() )
- message += QString("<p><b>%1:</b><br><i>%2</i><br>%3")
- .arg( i18n("Unable to handle the following files due to an unsupported format" ) )
- .arg( i18n("You may manually convert these audio files to wave using another "
+ message += TQString("<p><b>%1:</b><br><i>%2</i><br>%3")
+ .tqarg( i18n("Unable to handle the following files due to an unsupported format" ) )
+ .tqarg( i18n("You may manually convert these audio files to wave using another "
"application supporting the audio format and then add the wave files "
"to the K3b project.") )
- .arg( dlg.m_unsupportedFiles.join( "<br>" ) );
+ .tqarg( dlg.m_unsupportedFiles.join( "<br>" ) );
if( !message.isEmpty() )
- KMessageBox::detailedSorry( parent, i18n("Problems while adding files to the project."), message );
+ KMessageBox::detailedSorry( tqparent, i18n("Problems while adding files to the project."), message );
return ret;
}
@@ -162,14 +162,14 @@ void K3bAudioTrackAddingDialog::slotAddUrls()
}
}
- m_infoLabel->setText( i18n("Analysing file '%1'...").arg( url.fileName() ) );
+ m_infoLabel->setText( i18n("Analysing file '%1'...").tqarg( url.fileName() ) );
if( !url.isLocalFile() ) {
valid = false;
m_nonLocalFiles.append( url.path() );
}
else {
- QFileInfo fi( url.path() );
+ TQFileInfo fi( url.path() );
if( !fi.exists() ) {
valid = false;
m_notFoundFiles.append( url.path() );
@@ -199,7 +199,7 @@ void K3bAudioTrackAddingDialog::slotAddUrls()
// invalid file, next url
if( !valid ) {
m_urls.remove( m_urls.begin() );
- QTimer::singleShot( 0, this, SLOT(slotAddUrls()) );
+ TQTimer::singleShot( 0, this, TQT_SLOT(slotAddUrls()) );
}
}
@@ -251,7 +251,7 @@ void K3bAudioTrackAddingDialog::slotAnalysingFinished( bool /*success*/ )
}
}
- QTimer::singleShot( 0, this, SLOT(slotAddUrls()) );
+ TQTimer::singleShot( 0, this, TQT_SLOT(slotAddUrls()) );
}
@@ -271,16 +271,16 @@ KURL::List K3bAudioTrackAddingDialog::extractUrlList( const KURL::List& urls )
while( it != allUrls.end() ) {
const KURL& url = *it;
- QFileInfo fi( url.path() );
+ TQFileInfo fi( url.path() );
if( fi.isDir() ) {
it = allUrls.remove( it );
// add all files in the dir
- QDir dir(fi.filePath());
- QStringList entries = dir.entryList( QDir::Files );
+ TQDir dir(fi.filePath());
+ TQStringList entries = dir.entryList( TQDir::Files );
KURL::List::iterator oldIt = it;
// add all files into the list after the current item
- for( QStringList::iterator dirIt = entries.begin();
+ for( TQStringList::iterator dirIt = entries.begin();
dirIt != entries.end(); ++dirIt )
it = allUrls.insert( oldIt, KURL::fromPathOrURL( dir.absPath() + "/" + *dirIt ) );
}
diff --git a/src/projects/k3baudiotrackaddingdialog.h b/src/projects/k3baudiotrackaddingdialog.h
index 4590e95..3482771 100644
--- a/src/projects/k3baudiotrackaddingdialog.h
+++ b/src/projects/k3baudiotrackaddingdialog.h
@@ -19,11 +19,11 @@
#include <k3bjobhandler.h>
#include <kdialogbase.h>
#include <kurl.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
class K3bBusyWidget;
-class QLabel;
+class TQLabel;
class K3bAudioTrack;
class K3bAudioDataSource;
class K3bThreadJob;
@@ -33,6 +33,7 @@ class K3bAudioDoc;
class K3bAudioTrackAddingDialog : public KDialogBase, public K3bJobHandler
{
Q_OBJECT
+ TQ_OBJECT
public:
~K3bAudioTrackAddingDialog();
@@ -43,31 +44,31 @@ class K3bAudioTrackAddingDialog : public KDialogBase, public K3bJobHandler
int waitForMedia( K3bDevice::Device*,
int = K3bDevice::STATE_EMPTY,
int = K3bDevice::MEDIA_WRITABLE_CD,
- const QString& = QString::null ) { return 0; }
+ const TQString& = TQString() ) { return 0; }
/**
* @reimplemented from K3bJobHandler
*/
- bool questionYesNo( const QString&,
- const QString& = QString::null,
- const QString& = QString::null,
- const QString& = QString::null ) { return false; }
+ bool questionYesNo( const TQString&,
+ const TQString& = TQString(),
+ const TQString& = TQString(),
+ const TQString& = TQString() ) { return false; }
/**
* reimplemented from K3bJobHandler
*/
- void blockingInformation( const QString&,
- const QString& = QString::null ) {}
+ void blockingInformation( const TQString&,
+ const TQString& = TQString() ) {}
/**
- * \return \see QDialog::exec()
+ * \return \see TQDialog::exec()
*/
static int addUrls( const KURL::List& urls,
K3bAudioDoc* doc,
K3bAudioTrack* afterTrack = 0,
- K3bAudioTrack* parentTrack = 0,
+ K3bAudioTrack* tqparentTrack = 0,
K3bAudioDataSource* afterSource = 0,
- QWidget* parent = 0 );
+ TQWidget* tqparent = 0 );
private slots:
void slotAddUrls();
@@ -75,17 +76,17 @@ class K3bAudioTrackAddingDialog : public KDialogBase, public K3bJobHandler
void slotCancel();
private:
- K3bAudioTrackAddingDialog( QWidget* parent = 0, const char* name = 0 );
+ K3bAudioTrackAddingDialog( TQWidget* tqparent = 0, const char* name = 0 );
static KURL::List extractUrlList( const KURL::List& urls );
K3bBusyWidget* m_busyWidget;
- QLabel* m_infoLabel;
+ TQLabel* m_infoLabel;
- QStringList m_unreadableFiles;
- QStringList m_notFoundFiles;
- QStringList m_nonLocalFiles;
- QStringList m_unsupportedFiles;
+ TQStringList m_unreadableFiles;
+ TQStringList m_notFoundFiles;
+ TQStringList m_nonLocalFiles;
+ TQStringList m_unsupportedFiles;
KURL::List m_urls;
diff --git a/src/projects/k3baudiotrackdialog.cpp b/src/projects/k3baudiotrackdialog.cpp
index ecb7796..676e12b 100644
--- a/src/projects/k3baudiotrackdialog.cpp
+++ b/src/projects/k3baudiotrackdialog.cpp
@@ -14,15 +14,15 @@
*/
-#include <qtextedit.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qgroupbox.h>
-#include <qframe.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qhbox.h>
-#include <qwhatsthis.h>
+#include <tqtextedit.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqgroupbox.h>
+#include <tqframe.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqhbox.h>
+#include <tqwhatsthis.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -54,10 +54,10 @@
// do only show cd-text and options (eventuelle index0)
-K3bAudioTrackDialog::K3bAudioTrackDialog( QPtrList<K3bAudioTrack>& tracks, QWidget *parent, const char *name )
+K3bAudioTrackDialog::K3bAudioTrackDialog( TQPtrList<K3bAudioTrack>& tracks, TQWidget *tqparent, const char *name )
: KDialogBase( KDialogBase::Plain, i18n("Audio Track Properties"),
KDialogBase::Ok|KDialogBase::Cancel|KDialogBase::Apply,
- KDialogBase::Ok, parent, name )
+ KDialogBase::Ok, tqparent, name )
{
m_tracks = tracks;
@@ -86,9 +86,9 @@ void K3bAudioTrackDialog::slotApply()
void K3bAudioTrackDialog::setupGui()
{
- QFrame* frame = plainPage();
+ TQFrame* frame = plainPage();
- QGridLayout* mainLayout = new QGridLayout( frame );
+ TQGridLayout* mainLayout = new TQGridLayout( frame );
mainLayout->setSpacing( spacingHint() );
mainLayout->setMargin( 0 );
diff --git a/src/projects/k3baudiotrackdialog.h b/src/projects/k3baudiotrackdialog.h
index 53edc1c..8eb0ce6 100644
--- a/src/projects/k3baudiotrackdialog.h
+++ b/src/projects/k3baudiotrackdialog.h
@@ -22,7 +22,7 @@
#include <k3bmsf.h>
-#include <qptrlist.h>
+#include <tqptrlist.h>
class K3bAudioTrack;
class K3bAudioTrackWidget;
@@ -34,9 +34,10 @@ class K3bAudioTrackWidget;
class K3bAudioTrackDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioTrackDialog( QPtrList<K3bAudioTrack>&, QWidget *parent=0, const char *name=0);
+ K3bAudioTrackDialog( TQPtrList<K3bAudioTrack>&, TQWidget *tqparent=0, const char *name=0);
~K3bAudioTrackDialog();
protected slots:
@@ -46,7 +47,7 @@ class K3bAudioTrackDialog : public KDialogBase
void updateTrackLengthDisplay();
private:
- QPtrList<K3bAudioTrack> m_tracks;
+ TQPtrList<K3bAudioTrack> m_tracks;
K3bAudioTrackWidget* m_audioTrackWidget;
diff --git a/src/projects/k3baudiotrackplayer.cpp b/src/projects/k3baudiotrackplayer.cpp
index cac2e7a..1175de7 100644
--- a/src/projects/k3baudiotrackplayer.cpp
+++ b/src/projects/k3baudiotrackplayer.cpp
@@ -21,10 +21,10 @@
#include <kactionclasses.h>
#include <klocale.h>
-#include <qslider.h>
-#include <qtimer.h>
-#include <qmutex.h>
-#include <qtooltip.h>
+#include <tqslider.h>
+#include <tqtimer.h>
+#include <tqmutex.h>
+#include <tqtooltip.h>
class K3bAudioTrackPlayer::Private
@@ -41,19 +41,19 @@ public:
// just to handle them easily;
KActionCollection* actionCollection;
- QSlider* seekSlider;
- QTimer sliderTimer;
+ TQSlider* seekSlider;
+ TQTimer sliderTimer;
// used to make sure that no seek and read operation occur in parallel
- QMutex mutex;
+ TQMutex mutex;
bool playing;
bool paused;
};
-K3bAudioTrackPlayer::K3bAudioTrackPlayer( K3bAudioDoc* doc, QObject* parent, const char* name )
- : QObject( parent, name ),
+K3bAudioTrackPlayer::K3bAudioTrackPlayer( K3bAudioDoc* doc, TQObject* tqparent, const char* name )
+ : TQObject( tqparent, name ),
K3bAudioClient(),
m_doc( doc ),
m_currentTrack( 0 )
@@ -70,43 +70,43 @@ K3bAudioTrackPlayer::K3bAudioTrackPlayer( K3bAudioDoc* doc, QObject* parent, con
d->actionPlay = new KAction( i18n("Play"),
"player_play",
KShortcut(),
- this, SLOT(playPause()),
+ this, TQT_SLOT(playPause()),
d->actionCollection,
"play" );
d->actionPause = new KAction( i18n("Pause"),
"player_pause",
KShortcut(),
- this, SLOT(playPause()),
+ this, TQT_SLOT(playPause()),
d->actionCollection,
"pause" );
d->actionPlayPause = new KAction( i18n("Play/Pause"),
"player_play",
KShortcut(),
- this, SLOT(playPause()),
+ this, TQT_SLOT(playPause()),
d->actionCollection,
"play_pause" );
d->actionStop = new KAction( i18n("Stop"),
"player_stop",
KShortcut(),
- this, SLOT(stop()),
+ this, TQT_SLOT(stop()),
d->actionCollection,
"stop" );
d->actionNext = new KAction( i18n("Next"),
"player_end",
KShortcut(),
- this, SLOT(next()),
+ this, TQT_SLOT(next()),
d->actionCollection,
"next" );
d->actionPrev = new KAction( i18n("Prev"),
"player_start",
KShortcut(),
- this, SLOT(prev()),
+ this, TQT_SLOT(prev()),
d->actionCollection,
"prev" );
- d->seekSlider = new QSlider( 0, 100, 1, 0, Qt::Horizontal, 0, "audiotrackplayerslider" );
- connect( d->seekSlider, SIGNAL(sliderMoved(int)), this, SLOT(slotSeek(int)) );
+ d->seekSlider = new TQSlider( 0, 100, 1, 0, Qt::Horizontal, 0, "audiotrackplayerslider" );
+ connect( d->seekSlider, TQT_SIGNAL(sliderMoved(int)), this, TQT_SLOT(slotSeek(int)) );
// FIXME: maybe it's not such a good idea to use a KWidgetAction here since this way the player
// can only be used once in one widget. If the action would always create a new slider we could plug
// the action into several toolboxes and also use it in some resizing or track splitting dialogs.
@@ -118,7 +118,7 @@ K3bAudioTrackPlayer::K3bAudioTrackPlayer( K3bAudioDoc* doc, QObject* parent, con
d->actionCollection,
"seek" );
// this should be done in KWidgetAction but is not yet
- connect( d->actionSeek, SIGNAL(enabled(bool)), d->seekSlider, SLOT(setEnabled(bool)) );
+ connect( d->actionSeek, TQT_SIGNAL(enabled(bool)), d->seekSlider, TQT_SLOT(setEnabled(bool)) );
d->actionStop->setEnabled(false);
d->actionPause->setEnabled(false);
@@ -126,18 +126,18 @@ K3bAudioTrackPlayer::K3bAudioTrackPlayer( K3bAudioDoc* doc, QObject* parent, con
d->actionPrev->setEnabled(false);
d->actionSeek->setEnabled(false);
- connect( m_doc, SIGNAL(changed()),
- this, SLOT(slotDocChanged()) );
- connect( m_doc, SIGNAL(trackChanged(K3bAudioTrack*)),
- this, SLOT(slotTrackChanged(K3bAudioTrack*)) );
- connect( m_doc, SIGNAL(trackRemoved(K3bAudioTrack*)),
- this, SLOT(slotTrackRemoved(K3bAudioTrack*)) );
- connect( &d->sliderTimer, SIGNAL(timeout()),
- this, SLOT(slotUpdateSlider()) );
+ connect( m_doc, TQT_SIGNAL(changed()),
+ this, TQT_SLOT(slotDocChanged()) );
+ connect( m_doc, TQT_SIGNAL(trackChanged(K3bAudioTrack*)),
+ this, TQT_SLOT(slotTrackChanged(K3bAudioTrack*)) );
+ connect( m_doc, TQT_SIGNAL(trackRemoved(K3bAudioTrack*)),
+ this, TQT_SLOT(slotTrackRemoved(K3bAudioTrack*)) );
+ connect( &d->sliderTimer, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(slotUpdateSlider()) );
// we just stop the player if the audio server has an error. K3bMainWindow will show the error message
// This is all very hacky and has to be improved for K3b 2.0. But then we will probably use Phonon anyway...
- connect( K3bAudioServer::instance(), SIGNAL(error(const QString&)), this, SLOT(stop()) );
+ connect( K3bAudioServer::instance(), TQT_SIGNAL(error(const TQString&)), this, TQT_SLOT(stop()) );
// tooltips
d->actionPlay->setToolTip( i18n("Play") );
@@ -183,11 +183,11 @@ void K3bAudioTrackPlayer::playTrack( K3bAudioTrack* track )
{
if( track ) {
// we show the currently playing track as a tooltip on the slider
- QToolTip::remove( d->seekSlider );
- QToolTip::add( d->seekSlider, i18n("Playing track %1: %2 - %3")
- .arg(track->trackNumber())
- .arg(track->artist())
- .arg(track->title()) );
+ TQToolTip::remove( d->seekSlider );
+ TQToolTip::add( d->seekSlider, i18n("Playing track %1: %2 - %3")
+ .tqarg(track->trackNumber())
+ .tqarg(track->artist())
+ .tqarg(track->title()) );
d->seekSlider->setMaxValue( track->length().totalFrames() );
m_currentTrack = track;
d->paused = true;
diff --git a/src/projects/k3baudiotrackplayer.h b/src/projects/k3baudiotrackplayer.h
index 92f4f0a..7868500 100644
--- a/src/projects/k3baudiotrackplayer.h
+++ b/src/projects/k3baudiotrackplayer.h
@@ -16,7 +16,7 @@
#ifndef _K3B_AUDIO_TRACK_PLAYER_H_
#define _K3B_AUDIO_TRACK_PLAYER_H_
-#include <qobject.h>
+#include <tqobject.h>
#include <k3baudioclient.h>
@@ -27,12 +27,13 @@ class K3bAudioTrack;
class KAction;
-class K3bAudioTrackPlayer : public QObject, public K3bAudioClient
+class K3bAudioTrackPlayer : public TQObject, public K3bAudioClient
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioTrackPlayer( K3bAudioDoc* doc, QObject* parent = 0, const char* name = 0 );
+ K3bAudioTrackPlayer( K3bAudioDoc* doc, TQObject* tqparent = 0, const char* name = 0 );
~K3bAudioTrackPlayer();
K3bAudioTrack* currentPlayingTrack() const { return m_currentTrack; }
diff --git a/src/projects/k3baudiotracksplitdialog.cpp b/src/projects/k3baudiotracksplitdialog.cpp
index 1acd370..9ec443a 100644
--- a/src/projects/k3baudiotracksplitdialog.cpp
+++ b/src/projects/k3baudiotracksplitdialog.cpp
@@ -25,49 +25,49 @@
#include <kaction.h>
#include <kpopupmenu.h>
-#include <qlabel.h>
-#include <qframe.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqframe.h>
+#include <tqlayout.h>
-K3bAudioTrackSplitDialog::K3bAudioTrackSplitDialog( K3bAudioTrack* track, QWidget* parent, const char* name )
+K3bAudioTrackSplitDialog::K3bAudioTrackSplitDialog( K3bAudioTrack* track, TQWidget* tqparent, const char* name )
: KDialogBase( KDialogBase::Plain, i18n("Split Audio Track"),
KDialogBase::Ok|KDialogBase::Cancel,
- KDialogBase::Ok, parent, name ),
+ KDialogBase::Ok, tqparent, name ),
m_track(track)
{
- QFrame* frame = plainPage();
+ TQFrame* frame = plainPage();
m_editorWidget = new K3bAudioEditorWidget( frame );
m_msfEditStart = new K3bMsfEdit( frame );
m_msfEditEnd = new K3bMsfEdit( frame );
- QGridLayout* layout = new QGridLayout( frame );
- layout->setMargin( 0 );
- layout->setSpacing( spacingHint() );
+ TQGridLayout* tqlayout = new TQGridLayout( frame );
+ tqlayout->setMargin( 0 );
+ tqlayout->setSpacing( spacingHint() );
// FIXME: After the string freeze replace the text with a better one explaning how to use this dialog
- layout->addMultiCellWidget( new QLabel( i18n("Please select the position where the track should be split."),
+ tqlayout->addMultiCellWidget( new TQLabel( i18n("Please select the position where the track should be split."),
frame ), 0, 0, 0, 3 );
- layout->addMultiCellWidget( m_editorWidget, 1, 1, 0, 3 );
- layout->addWidget( m_msfEditStart, 2, 1 );
- layout->addWidget( new QLabel( " - ", frame ), 2, 2 );
- layout->addWidget( m_msfEditEnd, 2, 3 );
- layout->addWidget( new QLabel( i18n("Split track at:"), frame ), 2, 0 );
- layout->setColStretch( 0, 1 );
+ tqlayout->addMultiCellWidget( m_editorWidget, 1, 1, 0, 3 );
+ tqlayout->addWidget( m_msfEditStart, 2, 1 );
+ tqlayout->addWidget( new TQLabel( " - ", frame ), 2, 2 );
+ tqlayout->addWidget( m_msfEditEnd, 2, 3 );
+ tqlayout->addWidget( new TQLabel( i18n("Split track at:"), frame ), 2, 0 );
+ tqlayout->setColStretch( 0, 1 );
m_editorWidget->setAllowOverlappingRanges( false );
m_editorWidget->enableRangeSelection( true );
m_editorWidget->installEventFilter( this );
- connect( m_editorWidget, SIGNAL(rangeChanged(int, const K3b::Msf&, const K3b::Msf&)),
- this, SLOT(slotRangeModified(int, const K3b::Msf&, const K3b::Msf&)) );
- connect( m_editorWidget, SIGNAL(selectedRangeChanged(int)),
- this, SLOT(slotRangeSelectionChanged(int)) );
- connect( m_msfEditStart, SIGNAL(valueChanged(const K3b::Msf&)),
- this, SLOT(slotMsfEditChanged(const K3b::Msf&)) );
- connect( m_msfEditEnd, SIGNAL(valueChanged(const K3b::Msf&)),
- this, SLOT(slotMsfEditChanged(const K3b::Msf&)) );
+ connect( m_editorWidget, TQT_SIGNAL(rangeChanged(int, const K3b::Msf&, const K3b::Msf&)),
+ this, TQT_SLOT(slotRangeModified(int, const K3b::Msf&, const K3b::Msf&)) );
+ connect( m_editorWidget, TQT_SIGNAL(selectedRangeChanged(int)),
+ this, TQT_SLOT(slotRangeSelectionChanged(int)) );
+ connect( m_msfEditStart, TQT_SIGNAL(valueChanged(const K3b::Msf&)),
+ this, TQT_SLOT(slotMsfEditChanged(const K3b::Msf&)) );
+ connect( m_msfEditEnd, TQT_SIGNAL(valueChanged(const K3b::Msf&)),
+ this, TQT_SLOT(slotMsfEditChanged(const K3b::Msf&)) );
setupActions();
@@ -94,11 +94,11 @@ void K3bAudioTrackSplitDialog::setupActions()
m_popupMenu = new KPopupMenu( this );
KAction* actionSplitHere = new KAction( i18n("Split Here"), 0,
- KShortcut(), this, SLOT(slotSplitHere()),
+ KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotSplitHere()),
actionCollection(), "range_split" );
// FIXME: after the message freeze give this action a proper name like "Remove track part"
KAction* actionRemoveRange = new KAction( i18n("Remove this Range"), 0,
- KShortcut(), this, SLOT(slotRemoveRange()),
+ KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotRemoveRange()),
actionCollection(), "range_remove" );
actionSplitHere->plug( m_popupMenu );
@@ -148,7 +148,7 @@ void K3bAudioTrackSplitDialog::slotRangeSelectionChanged( int id )
}
-void K3bAudioTrackSplitDialog::splitAt( const QPoint& p )
+void K3bAudioTrackSplitDialog::splitAt( const TQPoint& p )
{
int id = m_editorWidget->findRange( p.x() );
if( id ) {
@@ -160,15 +160,15 @@ void K3bAudioTrackSplitDialog::splitAt( const QPoint& p )
}
-bool K3bAudioTrackSplitDialog::eventFilter( QObject* o, QEvent* e )
+bool K3bAudioTrackSplitDialog::eventFilter( TQObject* o, TQEvent* e )
{
- if( o == m_editorWidget ) {
- if( e->type() == QEvent::MouseButtonDblClick ) {
- QMouseEvent* me = static_cast<QMouseEvent*>( e );
+ if( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_editorWidget) ) {
+ if( e->type() == TQEvent::MouseButtonDblClick ) {
+ TQMouseEvent* me = TQT_TQMOUSEEVENT( e );
splitAt( me->pos() );
}
- else if( e->type() == QEvent::ContextMenu ) {
- QContextMenuEvent* ce = static_cast<QContextMenuEvent*>( e );
+ else if( e->type() == TQEvent::ContextMenu ) {
+ TQContextMenuEvent* ce = TQT_TQCONTEXTMENUEVENT( e );
ce->consume();
m_lastClickPosition = ce->pos();
if( m_editorWidget->findRange( ce->pos().x() ) > 0 )
@@ -193,15 +193,15 @@ void K3bAudioTrackSplitDialog::slotRemoveRange()
void K3bAudioTrackSplitDialog::splitTrack( K3bAudioTrack* track,
- QWidget* parent,
+ TQWidget* tqparent,
const char* name )
{
- K3bAudioTrackSplitDialog d( track, parent, name );
- if( d.exec() == QDialog::Accepted ) {
- QValueList<int> ranges = d.m_editorWidget->allRanges();
+ K3bAudioTrackSplitDialog d( track, tqparent, name );
+ if( d.exec() == TQDialog::Accepted ) {
+ TQValueList<int> ranges = d.m_editorWidget->allRanges();
// we split the track at all range ends and just delete those that relate to the gaps in between
K3b::Msf pos = 0;
- for( QValueList<int>::const_iterator it = ranges.constBegin();
+ for( TQValueList<int>::const_iterator it = ranges.constBegin();
it != ranges.constEnd(); ++it ) {
// delete the unwanted part
diff --git a/src/projects/k3baudiotracksplitdialog.h b/src/projects/k3baudiotracksplitdialog.h
index c4be91a..ce9b01b 100644
--- a/src/projects/k3baudiotracksplitdialog.h
+++ b/src/projects/k3baudiotracksplitdialog.h
@@ -34,19 +34,20 @@ class KPopupMenu;
class K3bAudioTrackSplitDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioTrackSplitDialog( K3bAudioTrack*, QWidget* parent = 0, const char* name = 0 );
+ K3bAudioTrackSplitDialog( K3bAudioTrack*, TQWidget* tqparent = 0, const char* name = 0 );
~K3bAudioTrackSplitDialog();
- bool eventFilter( QObject* o, QEvent* e );
+ bool eventFilter( TQObject* o, TQEvent* e );
KActionCollection* actionCollection() const { return m_actionCollection; }
/**
* if this method returns true val is filled with the user selected value.
*/
- static void splitTrack( K3bAudioTrack* track, QWidget* parent = 0, const char* name = 0 );
+ static void splitTrack( K3bAudioTrack* track, TQWidget* tqparent = 0, const char* name = 0 );
private slots:
void slotRangeModified( int, const K3b::Msf& start, const K3b::Msf& );
@@ -54,7 +55,7 @@ class K3bAudioTrackSplitDialog : public KDialogBase
void slotRangeSelectionChanged( int );
void slotSplitHere();
void slotRemoveRange();
- void splitAt( const QPoint& p );
+ void splitAt( const TQPoint& p );
private:
void setupActions();
@@ -65,7 +66,7 @@ class K3bAudioTrackSplitDialog : public KDialogBase
K3bAudioTrack* m_track;
KActionCollection* m_actionCollection;
KPopupMenu* m_popupMenu;
- QPoint m_lastClickPosition;
+ TQPoint m_lastClickPosition;
};
#endif
diff --git a/src/projects/k3baudiotracktrmlookupdialog.cpp b/src/projects/k3baudiotracktrmlookupdialog.cpp
index b537583..0187d33 100644
--- a/src/projects/k3baudiotracktrmlookupdialog.cpp
+++ b/src/projects/k3baudiotracktrmlookupdialog.cpp
@@ -32,31 +32,31 @@
#include <kglobal.h>
#include <kdebug.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qtimer.h>
-#include <qframe.h>
-#include <qeventloop.h>
-#include <qpushbutton.h>
-#include <qapplication.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqtimer.h>
+#include <tqframe.h>
+#include <tqeventloop.h>
+#include <tqpushbutton.h>
+#include <tqapplication.h>
-K3bAudioTrackTRMLookupDialog::K3bAudioTrackTRMLookupDialog( QWidget* parent, const char* name )
+K3bAudioTrackTRMLookupDialog::K3bAudioTrackTRMLookupDialog( TQWidget* tqparent, const char* name )
: KDialogBase( KDialogBase::Plain,
i18n("MusicBrainz Query"),
KDialogBase::Cancel,
KDialogBase::Cancel,
- parent,
+ tqparent,
name,
true,
true )
{
- QGridLayout* grid = new QGridLayout( plainPage() );
+ TQGridLayout* grid = new TQGridLayout( plainPage() );
grid->setMargin( marginHint() );
grid->setSpacing( spacingHint() );
- m_infoLabel = new QLabel( plainPage() );
- QLabel* pixLabel = new QLabel( plainPage() );
+ m_infoLabel = new TQLabel( plainPage() );
+ TQLabel* pixLabel = new TQLabel( plainPage() );
pixLabel->setPixmap( KGlobal::iconLoader()->loadIcon( "musicbrainz", KIcon::NoGroup, 64 ) );
pixLabel->setScaledContents( false );
@@ -68,11 +68,11 @@ K3bAudioTrackTRMLookupDialog::K3bAudioTrackTRMLookupDialog( QWidget* parent, con
m_inLoop = false;
m_mbJob = new K3bMusicBrainzJob( this );
- connect( m_mbJob, SIGNAL(infoMessage(const QString&, int)),
- this, SLOT(slotMbJobInfoMessage(const QString&, int)) );
- connect( m_mbJob, SIGNAL(finished(bool)), this, SLOT(slotMbJobFinished(bool)) );
- connect( m_mbJob, SIGNAL(trackFinished(K3bAudioTrack*, bool)),
- this, SLOT(slotTrackFinished(K3bAudioTrack*, bool)) );
+ connect( m_mbJob, TQT_SIGNAL(infoMessage(const TQString&, int)),
+ this, TQT_SLOT(slotMbJobInfoMessage(const TQString&, int)) );
+ connect( m_mbJob, TQT_SIGNAL(finished(bool)), this, TQT_SLOT(slotMbJobFinished(bool)) );
+ connect( m_mbJob, TQT_SIGNAL(trackFinished(K3bAudioTrack*, bool)),
+ this, TQT_SLOT(slotTrackFinished(K3bAudioTrack*, bool)) );
}
@@ -81,7 +81,7 @@ K3bAudioTrackTRMLookupDialog::~K3bAudioTrackTRMLookupDialog()
}
-int K3bAudioTrackTRMLookupDialog::lookup( const QPtrList<K3bAudioTrack>& tracks )
+int K3bAudioTrackTRMLookupDialog::lookup( const TQPtrList<K3bAudioTrack>& tracks )
{
m_mbJob->setTracks( tracks );
m_mbJob->start();
@@ -90,13 +90,13 @@ int K3bAudioTrackTRMLookupDialog::lookup( const QPtrList<K3bAudioTrack>& tracks
setModal( true );
show();
m_inLoop = true;
- QApplication::eventLoop()->enterLoop();
+ TQApplication::eventLoop()->enterLoop();
return 0;
}
-void K3bAudioTrackTRMLookupDialog::slotMbJobInfoMessage( const QString& message, int )
+void K3bAudioTrackTRMLookupDialog::slotMbJobInfoMessage( const TQString& message, int )
{
m_infoLabel->setText( message );
}
@@ -107,7 +107,7 @@ void K3bAudioTrackTRMLookupDialog::slotMbJobFinished( bool )
m_busyWidget->showBusy(false);
hide();
if( m_inLoop )
- QApplication::eventLoop()->exitLoop();
+ TQApplication::eventLoop()->exitLoop();
}
@@ -122,7 +122,7 @@ void K3bAudioTrackTRMLookupDialog::slotTrackFinished( K3bAudioTrack* track, bool
{
if( !success )
K3bPassivePopup::showPopup( i18n("Track %1 was not found in the MusicBrainz database.")
- .arg( track->trackNumber()),
+ .tqarg( track->trackNumber()),
i18n("Audio Project") );
}
diff --git a/src/projects/k3baudiotracktrmlookupdialog.h b/src/projects/k3baudiotracktrmlookupdialog.h
index 10a0f32..f0d6718 100644
--- a/src/projects/k3baudiotracktrmlookupdialog.h
+++ b/src/projects/k3baudiotracktrmlookupdialog.h
@@ -17,9 +17,9 @@
#define _K3B_AUDIOTRACK_TRM_LOOKUP_DIALOG_H_
#include <kdialogbase.h>
-#include <qptrlist.h>
+#include <tqptrlist.h>
-class QLabel;
+class TQLabel;
class K3bAudioTrack;
class K3bMusicBrainzJob;
class K3bBusyWidget;
@@ -28,24 +28,25 @@ class K3bBusyWidget;
class K3bAudioTrackTRMLookupDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioTrackTRMLookupDialog( QWidget* parent = 0, const char* name = 0 );
+ K3bAudioTrackTRMLookupDialog( TQWidget* tqparent = 0, const char* name = 0 );
~K3bAudioTrackTRMLookupDialog();
/**
* This will show the dialog and start the lookup
*/
- int lookup( const QPtrList<K3bAudioTrack>& tracks );
+ int lookup( const TQPtrList<K3bAudioTrack>& tracks );
private slots:
void slotMbJobFinished( bool );
- void slotMbJobInfoMessage( const QString&, int );
+ void slotMbJobInfoMessage( const TQString&, int );
void slotTrackFinished( K3bAudioTrack* track, bool success );
void slotCancel();
private:
- QLabel* m_infoLabel;
+ TQLabel* m_infoLabel;
K3bBusyWidget* m_busyWidget;
K3bMusicBrainzJob* m_mbJob;
bool m_inLoop;
diff --git a/src/projects/k3baudiotrackview.cpp b/src/projects/k3baudiotrackview.cpp
index 1af6a5c..9c15061 100644
--- a/src/projects/k3baudiotrackview.cpp
+++ b/src/projects/k3baudiotrackview.cpp
@@ -37,18 +37,18 @@
#include <k3baudiodecoder.h>
#include <k3bmsfedit.h>
-#include <qheader.h>
-#include <qtimer.h>
-#include <qdragobject.h>
-#include <qpoint.h>
-#include <qptrlist.h>
-#include <qstringlist.h>
-#include <qevent.h>
-#include <qpixmap.h>
-#include <qpainter.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qvaluelist.h>
+#include <tqheader.h>
+#include <tqtimer.h>
+#include <tqdragobject.h>
+#include <tqpoint.h>
+#include <tqptrlist.h>
+#include <tqstringlist.h>
+#include <tqevent.h>
+#include <tqpixmap.h>
+#include <tqpainter.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqvaluelist.h>
#include <kurl.h>
#include <kurldrag.h>
@@ -61,18 +61,18 @@
#include <kdialogbase.h>
-K3bAudioTrackView::K3bAudioTrackView( K3bAudioDoc* doc, QWidget* parent, const char* name )
- : K3bListView( parent, name ),
+K3bAudioTrackView::K3bAudioTrackView( K3bAudioDoc* doc, TQWidget* tqparent, const char* name )
+ : K3bListView( tqparent, name ),
m_doc(doc),
m_updatingColumnWidths(false),
m_currentMouseOverItem(0),
m_currentlyPlayingTrack(0)
{
- m_player = new K3bAudioTrackPlayer( m_doc, this );
- connect( m_player, SIGNAL(playingTrack(K3bAudioTrack*)), this,
- SLOT(showPlayerIndicator(K3bAudioTrack*)) );
- connect( m_player, SIGNAL(paused(bool)), this, SLOT(togglePauseIndicator(bool)) );
- connect( m_player, SIGNAL(stopped()), this, SLOT(removePlayerIndicator()) );
+ m_player = new K3bAudioTrackPlayer( m_doc, TQT_TQOBJECT(this) );
+ connect( m_player, TQT_SIGNAL(playingTrack(K3bAudioTrack*)), TQT_TQOBJECT(this),
+ TQT_SLOT(showPlayerIndicator(K3bAudioTrack*)) );
+ connect( m_player, TQT_SIGNAL(paused(bool)), TQT_TQOBJECT(this), TQT_SLOT(togglePauseIndicator(bool)) );
+ connect( m_player, TQT_SIGNAL(stopped()), TQT_TQOBJECT(this), TQT_SLOT(removePlayerIndicator()) );
setItemMargin( 5 );
setAcceptDrops( true );
@@ -82,7 +82,7 @@ K3bAudioTrackView::K3bAudioTrackView( K3bAudioDoc* doc, QWidget* parent, const c
// setSelectionModeExt( KListView::Konqueror ); // FileManager in KDE3
setSelectionModeExt( KListView::Extended );
setItemsMovable( false );
- setAlternateBackground( QColor() ); // disable alternate colors
+ setAlternateBackground( TQColor() ); // disable alternate colors
setNoItemText( i18n("Use drag'n'drop to add audio files to the project.") + "\n"
+ i18n("After that press the burn button to write the CD." ) );
@@ -90,32 +90,32 @@ K3bAudioTrackView::K3bAudioTrackView( K3bAudioDoc* doc, QWidget* parent, const c
setupColumns();
setupActions();
- m_playerItemAnimator = new K3bListViewItemAnimator( this );
+ m_playerItemAnimator = new K3bListViewItemAnimator( TQT_TQOBJECT(this) );
- m_animationTimer = new QTimer( this );
- connect( m_animationTimer, SIGNAL(timeout()), this, SLOT(slotAnimation()) );
+ m_animationTimer = new TQTimer( this );
+ connect( m_animationTimer, TQT_SIGNAL(timeout()), TQT_TQOBJECT(this), TQT_SLOT(slotAnimation()) );
- m_autoOpenTrackTimer = new QTimer( this );
- connect( m_autoOpenTrackTimer, SIGNAL(timeout()), this, SLOT(slotDragTimeout()) );
+ m_autoOpenTrackTimer = new TQTimer( this );
+ connect( m_autoOpenTrackTimer, TQT_SIGNAL(timeout()), TQT_TQOBJECT(this), TQT_SLOT(slotDragTimeout()) );
- connect( this, SIGNAL(dropped(QDropEvent*, QListViewItem*, QListViewItem*)),
- this, SLOT(slotDropped(QDropEvent*, QListViewItem*, QListViewItem*)) );
- connect( this, SIGNAL(contextMenu(KListView*, QListViewItem*, const QPoint&)),
- this, SLOT(showPopupMenu(KListView*, QListViewItem*, const QPoint&)) );
- connect( this, SIGNAL(doubleClicked(QListViewItem*, const QPoint&, int)),
- this, SLOT(slotProperties()) );
+ connect( this, TQT_SIGNAL(dropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)),
+ this, TQT_SLOT(slotDropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)) );
+ connect( this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
+ this, TQT_SLOT(showPopupMenu(KListView*, TQListViewItem*, const TQPoint&)) );
+ connect( this, TQT_SIGNAL(doubleClicked(TQListViewItem*, const TQPoint&, int)),
+ this, TQT_SLOT(slotProperties()) );
- connect( doc, SIGNAL(changed()),
- this, SLOT(slotChanged()) );
- connect( doc, SIGNAL(trackChanged(K3bAudioTrack*)),
- this, SLOT(slotTrackChanged(K3bAudioTrack*)) );
- connect( doc, SIGNAL(trackRemoved(K3bAudioTrack*)),
- this, SLOT(slotTrackRemoved(K3bAudioTrack*)) );
+ connect( doc, TQT_SIGNAL(changed()),
+ this, TQT_SLOT(slotChanged()) );
+ connect( doc, TQT_SIGNAL(trackChanged(K3bAudioTrack*)),
+ this, TQT_SLOT(slotTrackChanged(K3bAudioTrack*)) );
+ connect( doc, TQT_SIGNAL(trackRemoved(K3bAudioTrack*)),
+ this, TQT_SLOT(slotTrackRemoved(K3bAudioTrack*)) );
slotChanged();
// a little background pix hack because I am simply incapable of doing it another way. :(
-// static QPixmap s_bgPix("/tmp/trueg/audio_bg.png");
+// static TQPixmap s_bgPix("/tmp/trueg/audio_bg.png");
// setK3bBackgroundPixmap( s_bgPix, TOP_LEFT );
}
@@ -134,8 +134,8 @@ void K3bAudioTrackView::setupColumns()
addColumn( i18n("Length") );
addColumn( i18n("Filename") );
- setColumnAlignment( 3, Qt::AlignHCenter );
- setColumnAlignment( 4, Qt::AlignHCenter );
+ setColumnAlignment( 3, TQt::AlignHCenter );
+ setColumnAlignment( 4, TQt::AlignHCenter );
setColumnWidthMode( 1, Manual );
setColumnWidthMode( 2, Manual );
@@ -155,61 +155,61 @@ void K3bAudioTrackView::setupActions()
m_popupMenu = new KPopupMenu( this );
m_actionProperties = new KAction( i18n("Properties"), "misc",
- KShortcut(), this, SLOT(slotProperties()),
+ KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotProperties()),
actionCollection(), "track_properties" );
m_actionRemove = new KAction( i18n( "Remove" ), "editdelete",
- Key_Delete, this, SLOT(slotRemove()),
+ Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(slotRemove()),
actionCollection(), "track_remove" );
m_actionAddSilence = new KAction( i18n("Add Silence") + "...", "misc",
- KShortcut(), this, SLOT(slotAddSilence()),
+ KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotAddSilence()),
actionCollection(), "track_add_silence" );
m_actionMergeTracks = new KAction( i18n("Merge Tracks"), "misc",
- KShortcut(), this, SLOT(slotMergeTracks()),
+ KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotMergeTracks()),
actionCollection(), "track_merge" );
m_actionSplitSource = new KAction( i18n("Source to Track"), "misc",
- KShortcut(), this, SLOT(slotSplitSource()),
+ KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotSplitSource()),
actionCollection(), "source_split" );
m_actionSplitTrack = new KAction( i18n("Split Track..."), 0,
- KShortcut(), this, SLOT(slotSplitTrack()),
+ KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotSplitTrack()),
actionCollection(), "track_split" );
m_actionEditSource = new KAction( i18n("Edit Source..."), 0,
- KShortcut(), this, SLOT(slotEditSource()),
+ KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotEditSource()),
actionCollection(), "source_edit" );
m_actionPlayTrack = new KAction( i18n("Play Track"), "player_play",
- KShortcut(), this, SLOT(slotPlayTrack()),
+ KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotPlayTrack()),
actionCollection(), "track_play" );
#ifdef HAVE_MUSICBRAINZ
- KAction* mbAction = new KAction( i18n("Musicbrainz Lookup"), "musicbrainz", 0, this,
- SLOT(slotQueryMusicBrainz()),
+ KAction* mbAction = new KAction( i18n("Musicbrainz Lookup"), "musicbrainz", 0, TQT_TQOBJECT(this),
+ TQT_SLOT(slotQueryMusicBrainz()),
actionCollection(), "project_audio_musicbrainz" );
mbAction->setToolTip( i18n("Try to determine meta information over the internet") );
#endif
}
-bool K3bAudioTrackView::acceptDrag(QDropEvent* e) const
+bool K3bAudioTrackView::acceptDrag(TQDropEvent* e) const
{
// the first is for built-in item moving, the second for dropping urls, the third for dropping audio tracks
return ( KListView::acceptDrag(e) || KURLDrag::canDecode(e) || K3bAudioCdTrackDrag::canDecode(e) );
}
-QDragObject* K3bAudioTrackView::dragObject()
+TQDragObject* K3bAudioTrackView::dragObject()
{
- QPtrList<QListViewItem> list = selectedItems();
+ TQPtrList<TQListViewItem> list = selectedItems();
if( list.isEmpty() )
return 0;
KURL::List urls;
- for( QPtrListIterator<QListViewItem> it(list); it.current(); ++it ) {
- QListViewItem* item = *it;
+ for( TQPtrListIterator<TQListViewItem> it(list); it.current(); ++it ) {
+ TQListViewItem* item = *it;
// we simply ignore open track items to not include files twice
// we also don't want the invisible source items
- QListViewItem* parentItem = K3bListView::parentItem(item);
- if( !item->isOpen() && ( !parentItem || parentItem->isOpen() ) ) {
+ TQListViewItem* tqparentItem = K3bListView::tqparentItem(item);
+ if( !item->isOpen() && ( !tqparentItem || tqparentItem->isOpen() ) ) {
if( K3bAudioDataSourceViewItem* sourceItem = dynamic_cast<K3bAudioDataSourceViewItem*>( item ) ) {
if( K3bAudioFile* file = dynamic_cast<K3bAudioFile*>( sourceItem->source() ) )
urls.append( KURL::fromPathOrURL(file->filename()) );
@@ -230,7 +230,7 @@ QDragObject* K3bAudioTrackView::dragObject()
}
-void K3bAudioTrackView::slotDropped( QDropEvent* e, QListViewItem* parent, QListViewItem* after )
+void K3bAudioTrackView::slotDropped( TQDropEvent* e, TQListViewItem* tqparent, TQListViewItem* after )
{
m_autoOpenTrackTimer->stop();
@@ -249,7 +249,7 @@ void K3bAudioTrackView::slotDropped( QDropEvent* e, QListViewItem* parent, QList
}
}
- if( K3bAudioTrackViewItem* tv = dynamic_cast<K3bAudioTrackViewItem*>( parent ) ) {
+ if( K3bAudioTrackViewItem* tv = dynamic_cast<K3bAudioTrackViewItem*>( tqparent ) ) {
m_dropTrackParent = tv->track();
}
@@ -265,22 +265,22 @@ void K3bAudioTrackView::slotDropped( QDropEvent* e, QListViewItem* parent, QList
if( e->source() == viewport() ) {
- bool copyItems = (e->action() == QDropEvent::Copy);
+ bool copyItems = (e->action() == TQDropEvent::Copy);
// 1. tracks (with some of their sources) -> move complete tracks around
// 2. sources (multiple sources) -> move the sources to the destination track
// 3. tracks and sources (the latter without their track) -> ignore the latter sources
- QPtrList<K3bAudioTrack> tracks;
- QPtrList<K3bAudioDataSource> sources;
+ TQPtrList<K3bAudioTrack> tracks;
+ TQPtrList<K3bAudioDataSource> sources;
getSelectedItems( tracks, sources );
//
// remove all sources which belong to one of the selected tracks since they will be
// moved along with their tracks
//
- QPtrListIterator<K3bAudioDataSource> srcIt( sources );
+ TQPtrListIterator<K3bAudioDataSource> srcIt( sources );
while( srcIt.current() ) {
- if( tracks.containsRef( srcIt.current()->track() ) )
+ if( tracks.tqcontainsRef( srcIt.current()->track() ) )
sources.removeRef( *srcIt );
else
++srcIt;
@@ -289,7 +289,7 @@ void K3bAudioTrackView::slotDropped( QDropEvent* e, QListViewItem* parent, QList
//
// Now move (or copy) all the tracks
//
- for( QPtrListIterator<K3bAudioTrack> it( tracks ); it.current(); ++it ) {
+ for( TQPtrListIterator<K3bAudioTrack> it( tracks ); it.current(); ++it ) {
K3bAudioTrack* track = *it;
if( m_dropTrackParent ) {
m_dropTrackParent->merge( copyItems ? track->copy() : track, m_dropSourceAfter );
@@ -311,7 +311,7 @@ void K3bAudioTrackView::slotDropped( QDropEvent* e, QListViewItem* parent, QList
//
// now move (or copy) the sources
//
- for( QPtrListIterator<K3bAudioDataSource> it( sources ); it.current(); ++it ) {
+ for( TQPtrListIterator<K3bAudioDataSource> it( sources ); it.current(); ++it ) {
K3bAudioDataSource* source = *it;
if( m_dropTrackParent ) {
if( m_dropSourceAfter ) {
@@ -357,12 +357,12 @@ void K3bAudioTrackView::slotDropped( QDropEvent* e, QListViewItem* parent, QList
K3bDevice::Toc toc;
K3bDevice::Device* dev = 0;
K3bCddbResultEntry cddb;
- QValueList<int> trackNumbers;
+ TQValueList<int> trackNumbers;
K3bAudioCdTrackDrag::decode( e, toc, trackNumbers, cddb, &dev );
// for now we just create one source
- for( QValueList<int>::const_iterator it = trackNumbers.begin();
+ for( TQValueList<int>::const_iterator it = trackNumbers.begin();
it != trackNumbers.end(); ++it ) {
int trackNumber = *it;
@@ -394,7 +394,7 @@ void K3bAudioTrackView::slotDropped( QDropEvent* e, QListViewItem* parent, QList
// event queues: the url adding dialog will be non-modal regardless of
// the settings in case we open it directly.
//
- QTimer::singleShot( 0, this, SLOT(slotAddUrls()) );
+ TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT(slotAddUrls()) );
}
}
@@ -439,11 +439,11 @@ void K3bAudioTrackView::slotChanged()
K3bAudioTrackViewItem* K3bAudioTrackView::getTrackViewItem( K3bAudioTrack* track, bool* isNewItem )
{
- QMap<K3bAudioTrack*, K3bAudioTrackViewItem*>::iterator itemIt = m_trackItemMap.find(track);
+ TQMap<K3bAudioTrack*, K3bAudioTrackViewItem*>::iterator itemIt = m_trackItemMap.tqfind(track);
if( itemIt == m_trackItemMap.end() ) {
kdDebug() << "(K3bAudioTrackView) new track " << track << endl;
K3bAudioTrackViewItem* prevItem = 0;
- if( track->prev() && m_trackItemMap.contains( track->prev() ) )
+ if( track->prev() && m_trackItemMap.tqcontains( track->prev() ) )
prevItem = m_trackItemMap[track->prev()];
K3bAudioTrackViewItem* newItem = new K3bAudioTrackViewItem( this, prevItem, track );
//
@@ -487,11 +487,11 @@ void K3bAudioTrackView::slotTrackChanged( K3bAudioTrack* track )
item->showSources(true);
// the length might have changed
- item->repaint();
+ item->tqrepaint();
// FIXME: only do this if the position really changed
// move the item if the position has changed
- if( track->prev() && m_trackItemMap.contains(track->prev()) )
+ if( track->prev() && m_trackItemMap.tqcontains(track->prev()) )
item->moveItem( m_trackItemMap[track->prev()] );
else if( !track->prev() ) {
takeItem( item );
@@ -522,7 +522,7 @@ void K3bAudioTrackView::showAllSources()
{
// TODO: add an action to show all sources
- QListViewItem* item = firstChild();
+ TQListViewItem* item = firstChild();
while( item ) {
if( K3bAudioTrackViewItem* tv = dynamic_cast<K3bAudioTrackViewItem*>( item ) )
tv->showSources( tv->track()->numberSources() != 1 );
@@ -531,7 +531,7 @@ void K3bAudioTrackView::showAllSources()
}
-void K3bAudioTrackView::keyPressEvent( QKeyEvent* e )
+void K3bAudioTrackView::keyPressEvent( TQKeyEvent* e )
{
// showAllSources();
@@ -539,7 +539,7 @@ void K3bAudioTrackView::keyPressEvent( QKeyEvent* e )
}
-void K3bAudioTrackView::keyReleaseEvent( QKeyEvent* e )
+void K3bAudioTrackView::keyReleaseEvent( TQKeyEvent* e )
{
// showAllSources();
@@ -547,7 +547,7 @@ void K3bAudioTrackView::keyReleaseEvent( QKeyEvent* e )
}
-void K3bAudioTrackView::contentsMouseMoveEvent( QMouseEvent* e )
+void K3bAudioTrackView::contentsMouseMoveEvent( TQMouseEvent* e )
{
// showAllSources();
@@ -555,7 +555,7 @@ void K3bAudioTrackView::contentsMouseMoveEvent( QMouseEvent* e )
}
-void K3bAudioTrackView::focusOutEvent( QFocusEvent* e )
+void K3bAudioTrackView::focusOutEvent( TQFocusEvent* e )
{
// showAllSources();
@@ -563,7 +563,7 @@ void K3bAudioTrackView::focusOutEvent( QFocusEvent* e )
}
-void K3bAudioTrackView::resizeEvent( QResizeEvent* e )
+void K3bAudioTrackView::resizeEvent( TQResizeEvent* e )
{
K3bListView::resizeEvent(e);
@@ -571,7 +571,7 @@ void K3bAudioTrackView::resizeEvent( QResizeEvent* e )
}
-void K3bAudioTrackView::contentsDragMoveEvent( QDragMoveEvent* event )
+void K3bAudioTrackView::contentsDragMoveEvent( TQDragMoveEvent* event )
{
K3bAudioTrackViewItem* item = findTrackItem( event->pos() );
if( m_currentMouseOverItem != item ) {
@@ -585,21 +585,21 @@ void K3bAudioTrackView::contentsDragMoveEvent( QDragMoveEvent* event )
}
-void K3bAudioTrackView::contentsDragLeaveEvent( QDragLeaveEvent* e )
+void K3bAudioTrackView::contentsDragLeaveEvent( TQDragLeaveEvent* e )
{
m_autoOpenTrackTimer->stop();
K3bListView::contentsDragLeaveEvent( e );
}
-K3bAudioTrackViewItem* K3bAudioTrackView::findTrackItem( const QPoint& pos ) const
+K3bAudioTrackViewItem* K3bAudioTrackView::findTrackItem( const TQPoint& pos ) const
{
- QListViewItem* parent = 0;
- QListViewItem* after = 0;
+ TQListViewItem* tqparent = 0;
+ TQListViewItem* after = 0;
K3bAudioTrackView* that = const_cast<K3bAudioTrackView*>(this);
- that->findDrop( pos, parent, after );
- if( parent )
- return static_cast<K3bAudioTrackViewItem*>( parent );
+ that->findDrop( pos, tqparent, after );
+ if( tqparent )
+ return static_cast<K3bAudioTrackViewItem*>( tqparent );
else if( K3bAudioTrackViewItem* tv = dynamic_cast<K3bAudioTrackViewItem*>(after) )
return tv;
else if( K3bAudioDataSourceViewItem* sv = dynamic_cast<K3bAudioDataSourceViewItem*>(after) )
@@ -628,12 +628,12 @@ void K3bAudioTrackView::resizeColumns()
int lengthWidth = header()->fontMetrics().width( header()->label(4) );
int filenameWidth = header()->fontMetrics().width( header()->label(5) );
- for( QListViewItemIterator it( this ); it.current(); ++it ) {
- artistWidth = QMAX( artistWidth, it.current()->width( fontMetrics(), this, 1 ) );
- titleWidth = QMAX( titleWidth, it.current()->width( fontMetrics(), this, 2 ) );
- typeWidth = QMAX( typeWidth, it.current()->width( fontMetrics(), this, 3 ) );
- lengthWidth = QMAX( lengthWidth, it.current()->width( fontMetrics(), this, 4 ) );
- filenameWidth = QMAX( filenameWidth, it.current()->width( fontMetrics(), this, 5 ) );
+ for( TQListViewItemIterator it( this ); it.current(); ++it ) {
+ artistWidth = TQMAX( artistWidth, it.current()->width( fontMetrics(), this, 1 ) );
+ titleWidth = TQMAX( titleWidth, it.current()->width( fontMetrics(), this, 2 ) );
+ typeWidth = TQMAX( typeWidth, it.current()->width( fontMetrics(), this, 3 ) );
+ lengthWidth = TQMAX( lengthWidth, it.current()->width( fontMetrics(), this, 4 ) );
+ filenameWidth = TQMAX( filenameWidth, it.current()->width( fontMetrics(), this, 5 ) );
}
// add a margin
@@ -673,7 +673,7 @@ void K3bAudioTrackView::resizeColumns()
void K3bAudioTrackView::slotAnimation()
{
resizeColumns();
- QListViewItem* item = firstChild();
+ TQListViewItem* item = firstChild();
bool animate = false;
@@ -702,14 +702,14 @@ void K3bAudioTrackView::slotDragTimeout()
}
-void K3bAudioTrackView::getSelectedItems( QPtrList<K3bAudioTrack>& tracks,
- QPtrList<K3bAudioDataSource>& sources )
+void K3bAudioTrackView::getSelectedItems( TQPtrList<K3bAudioTrack>& tracks,
+ TQPtrList<K3bAudioDataSource>& sources )
{
tracks.clear();
sources.clear();
- QPtrList<QListViewItem> items = selectedItems();
- for( QPtrListIterator<QListViewItem> it( items ); it.current(); ++it ) {
+ TQPtrList<TQListViewItem> items = selectedItems();
+ for( TQPtrListIterator<TQListViewItem> it( items ); it.current(); ++it ) {
if( K3bAudioTrackViewItem* tv = dynamic_cast<K3bAudioTrackViewItem*>( *it ) )
tracks.append( tv->track() );
else {
@@ -725,17 +725,17 @@ void K3bAudioTrackView::getSelectedItems( QPtrList<K3bAudioTrack>& tracks,
void K3bAudioTrackView::slotRemove()
{
- QPtrList<K3bAudioTrack> tracks;
- QPtrList<K3bAudioDataSource> sources;
+ TQPtrList<K3bAudioTrack> tracks;
+ TQPtrList<K3bAudioDataSource> sources;
getSelectedItems( tracks, sources );
//
// remove all sources which belong to one of the selected tracks since they will be
// deleted along with their tracks
//
- QPtrListIterator<K3bAudioDataSource> srcIt( sources );
+ TQPtrListIterator<K3bAudioDataSource> srcIt( sources );
while( srcIt.current() ) {
- if( tracks.containsRef( srcIt.current()->track() ) )
+ if( tracks.tqcontainsRef( srcIt.current()->track() ) )
sources.removeRef( *srcIt );
else
++srcIt;
@@ -744,20 +744,20 @@ void K3bAudioTrackView::slotRemove()
//
// Now delete all the tracks
//
- for( QPtrListIterator<K3bAudioTrack> it( tracks ); it.current(); ++it )
+ for( TQPtrListIterator<K3bAudioTrack> it( tracks ); it.current(); ++it )
delete *it;
//
// Now delete all the sources
//
- for( QPtrListIterator<K3bAudioDataSource> it( sources ); it.current(); ++it )
+ for( TQPtrListIterator<K3bAudioDataSource> it( sources ); it.current(); ++it )
delete *it;
}
void K3bAudioTrackView::slotAddSilence()
{
- QListViewItem* item = selectedItems().first();
+ TQListViewItem* item = selectedItems().first();
if( item ) {
//
// create a simple dialog for asking the length of the silence
@@ -767,14 +767,14 @@ void K3bAudioTrackView::slotAddSilence()
KDialogBase::Ok|KDialogBase::Cancel,
KDialogBase::Ok,
this );
- QHBoxLayout* dlgLayout = new QHBoxLayout( dlg.plainPage(), 0, KDialog::spacingHint() );
+ TQHBoxLayout* dlgLayout = new TQHBoxLayout( dlg.plainPage(), 0, KDialog::spacingHint() );
dlgLayout->setAutoAdd( true );
- (void)new QLabel( i18n("Length of silence:"), dlg.plainPage() );
+ (void)new TQLabel( i18n("Length of silence:"), dlg.plainPage() );
K3bMsfEdit* msfEdit = new K3bMsfEdit( dlg.plainPage() );
msfEdit->setValue( 150 ); // 2 seconds default
msfEdit->setFocus();
- if( dlg.exec() == QDialog::Accepted ) {
+ if( dlg.exec() == TQDialog::Accepted ) {
K3bAudioZeroData* zero = new K3bAudioZeroData( msfEdit->value() );
if( K3bAudioTrackViewItem* tv = dynamic_cast<K3bAudioTrackViewItem*>(item) ) {
tv->track()->addSource( zero );
@@ -789,8 +789,8 @@ void K3bAudioTrackView::slotAddSilence()
void K3bAudioTrackView::slotMergeTracks()
{
- QPtrList<K3bAudioTrack> tracks;
- QPtrList<K3bAudioDataSource> sources;
+ TQPtrList<K3bAudioTrack> tracks;
+ TQPtrList<K3bAudioDataSource> sources;
getSelectedItems( tracks, sources );
// we simply merge the selected tracks ignoring any eventually selected sources
@@ -805,7 +805,7 @@ void K3bAudioTrackView::slotMergeTracks()
void K3bAudioTrackView::slotSplitSource()
{
- QListViewItem* item = selectedItems().first();
+ TQListViewItem* item = selectedItems().first();
if( K3bAudioDataSourceViewItem* sv = dynamic_cast<K3bAudioDataSourceViewItem*>(item) ) {
// create a new track
K3bAudioTrack* track = new K3bAudioTrack( m_doc );
@@ -830,7 +830,7 @@ void K3bAudioTrackView::slotSplitSource()
void K3bAudioTrackView::slotSplitTrack()
{
- QListViewItem* item = selectedItems().first();
+ TQListViewItem* item = selectedItems().first();
if( K3bAudioTrackViewItem* tv = dynamic_cast<K3bAudioTrackViewItem*>(item) ) {
K3bAudioTrackSplitDialog::splitTrack( tv->track(), this );
}
@@ -839,7 +839,7 @@ void K3bAudioTrackView::slotSplitTrack()
void K3bAudioTrackView::slotEditSource()
{
- QListViewItem* item = selectedItems().first();
+ TQListViewItem* item = selectedItems().first();
K3bAudioDataSource* source = 0;
if( K3bAudioDataSourceViewItem* sv = dynamic_cast<K3bAudioDataSourceViewItem*>(item) )
@@ -856,22 +856,22 @@ void K3bAudioTrackView::slotEditSource()
0,
true,
true );
- QVBoxLayout* lay = new QVBoxLayout( dlg.plainPage() );
+ TQVBoxLayout* lay = new TQVBoxLayout( dlg.plainPage() );
lay->setMargin( 0 );
lay->setSpacing( KDialog::spacingHint() );
lay->setAutoAdd( true );
K3bAudioDataSourceEditWidget* editW = new K3bAudioDataSourceEditWidget( dlg.plainPage() );
editW->loadSource( source );
- if( dlg.exec() == QDialog::Accepted )
+ if( dlg.exec() == TQDialog::Accepted )
editW->saveSource();
}
}
-void K3bAudioTrackView::showPopupMenu( KListView*, QListViewItem* item, const QPoint& pos )
+void K3bAudioTrackView::showPopupMenu( KListView*, TQListViewItem* item, const TQPoint& pos )
{
- QPtrList<K3bAudioTrack> tracks;
- QPtrList<K3bAudioDataSource> sources;
+ TQPtrList<K3bAudioTrack> tracks;
+ TQPtrList<K3bAudioDataSource> sources;
getSelectedItems( tracks, sources );
int numTracks = tracks.count();
@@ -923,8 +923,8 @@ void K3bAudioTrackView::showPopupMenu( KListView*, QListViewItem* item, const QP
void K3bAudioTrackView::slotProperties()
{
- QPtrList<K3bAudioTrack> tracks;
- QPtrList<K3bAudioDataSource> sources;
+ TQPtrList<K3bAudioTrack> tracks;
+ TQPtrList<K3bAudioDataSource> sources;
getSelectedItems( tracks, sources );
// TODO: add tracks from sources to tracks
@@ -941,8 +941,8 @@ void K3bAudioTrackView::slotProperties()
void K3bAudioTrackView::slotPlayTrack()
{
- QPtrList<K3bAudioTrack> tracks;
- QPtrList<K3bAudioDataSource> sources;
+ TQPtrList<K3bAudioTrack> tracks;
+ TQPtrList<K3bAudioDataSource> sources;
getSelectedItems( tracks, sources );
if( tracks.count() > 0 )
m_player->playTrack( tracks.first() );
@@ -973,7 +973,7 @@ void K3bAudioTrackView::togglePauseIndicator( bool b )
void K3bAudioTrackView::removePlayerIndicator()
{
if( m_currentlyPlayingTrack )
- getTrackViewItem( m_currentlyPlayingTrack )->setPixmap( 1, QPixmap() );
+ getTrackViewItem( m_currentlyPlayingTrack )->setPixmap( 1, TQPixmap() );
m_playerItemAnimator->stop();
m_currentlyPlayingTrack = 0;
}
@@ -982,8 +982,8 @@ void K3bAudioTrackView::removePlayerIndicator()
void K3bAudioTrackView::slotQueryMusicBrainz()
{
#ifdef HAVE_MUSICBRAINZ
- QPtrList<K3bAudioTrack> tracks;
- QPtrList<K3bAudioDataSource> sources;
+ TQPtrList<K3bAudioTrack> tracks;
+ TQPtrList<K3bAudioDataSource> sources;
getSelectedItems( tracks, sources );
if( tracks.isEmpty() ) {
diff --git a/src/projects/k3baudiotrackview.h b/src/projects/k3baudiotrackview.h
index 07415b6..fb52509 100644
--- a/src/projects/k3baudiotrackview.h
+++ b/src/projects/k3baudiotrackview.h
@@ -18,8 +18,8 @@
#include <k3blistview.h>
-#include <qmap.h>
-#include <qptrlist.h>
+#include <tqmap.h>
+#include <tqptrlist.h>
#include <kurl.h>
class K3bAudioTrack;
@@ -28,14 +28,14 @@ class K3bAudioDataSource;
class K3bAudioDoc;
class KActionCollection;
class KAction;
-class QDropEvent;
-class QKeyEvent;
-class QFocusEvent;
-class QMouseEvent;
-class QDragMoveEvent;
-class QTimer;
+class TQDropEvent;
+class TQKeyEvent;
+class TQFocusEvent;
+class TQMouseEvent;
+class TQDragMoveEvent;
+class TQTimer;
class KPopupMenu;
-class QPainter;
+class TQPainter;
class K3bListViewItemAnimator;
class K3bAudioTrackPlayer;
@@ -43,17 +43,18 @@ class K3bAudioTrackPlayer;
class K3bAudioTrackView : public K3bListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioTrackView( K3bAudioDoc*, QWidget* parent, const char* name = 0 );
+ K3bAudioTrackView( K3bAudioDoc*, TQWidget* tqparent, const char* name = 0 );
~K3bAudioTrackView();
KActionCollection* actionCollection() const { return m_actionCollection; }
K3bAudioTrackPlayer* player() const { return m_player; }
- void getSelectedItems( QPtrList<K3bAudioTrack>& tracks,
- QPtrList<K3bAudioDataSource>& sources );
+ void getSelectedItems( TQPtrList<K3bAudioTrack>& tracks,
+ TQPtrList<K3bAudioDataSource>& sources );
public slots:
void showPlayerIndicator( K3bAudioTrack* );
@@ -64,7 +65,7 @@ class K3bAudioTrackView : public K3bListView
void setupColumns();
void setupActions();
void showAllSources();
- K3bAudioTrackViewItem* findTrackItem( const QPoint& pos ) const;
+ K3bAudioTrackViewItem* findTrackItem( const TQPoint& pos ) const;
K3bAudioTrackViewItem* getTrackViewItem( K3bAudioTrack* track, bool* isNew = 0 );
K3bAudioDoc* m_doc;
@@ -81,11 +82,11 @@ class K3bAudioTrackView : public K3bListView
bool m_updatingColumnWidths;
- QMap<K3bAudioTrack*, K3bAudioTrackViewItem*> m_trackItemMap;
+ TQMap<K3bAudioTrack*, K3bAudioTrackViewItem*> m_trackItemMap;
K3bAudioTrackViewItem* m_currentMouseOverItem;
- QTimer* m_autoOpenTrackTimer;
- QTimer* m_animationTimer;
+ TQTimer* m_autoOpenTrackTimer;
+ TQTimer* m_animationTimer;
KPopupMenu* m_popupMenu;
@@ -105,7 +106,7 @@ class K3bAudioTrackView : public K3bListView
private slots:
void slotAnimation();
- void slotDropped( QDropEvent* e, QListViewItem* parent, QListViewItem* after );
+ void slotDropped( TQDropEvent* e, TQListViewItem* tqparent, TQListViewItem* after );
void slotChanged();
void slotTrackChanged( K3bAudioTrack* );
void slotTrackRemoved( K3bAudioTrack* );
@@ -117,7 +118,7 @@ class K3bAudioTrackView : public K3bListView
void slotMergeTracks();
void slotSplitSource();
void slotSplitTrack();
- void showPopupMenu( KListView*, QListViewItem* item, const QPoint& pos );
+ void showPopupMenu( KListView*, TQListViewItem* item, const TQPoint& pos );
void slotProperties();
void slotPlayTrack();
void slotQueryMusicBrainz();
@@ -127,16 +128,16 @@ class K3bAudioTrackView : public K3bListView
void slotAddUrls();
protected:
- void keyPressEvent( QKeyEvent* e );
- void keyReleaseEvent( QKeyEvent* e );
- void focusOutEvent( QFocusEvent* e );
- void contentsMouseMoveEvent( QMouseEvent* e );
- void contentsDragMoveEvent( QDragMoveEvent* e );
- void contentsDragLeaveEvent( QDragLeaveEvent* e );
- void resizeEvent( QResizeEvent* e );
+ void keyPressEvent( TQKeyEvent* e );
+ void keyReleaseEvent( TQKeyEvent* e );
+ void focusOutEvent( TQFocusEvent* e );
+ void contentsMouseMoveEvent( TQMouseEvent* e );
+ void contentsDragMoveEvent( TQDragMoveEvent* e );
+ void contentsDragLeaveEvent( TQDragLeaveEvent* e );
+ void resizeEvent( TQResizeEvent* e );
void resizeColumns();
- bool acceptDrag(QDropEvent* e) const;
- QDragObject* dragObject();
+ bool acceptDrag(TQDropEvent* e) const;
+ TQDragObject* dragObject();
};
#endif
diff --git a/src/projects/k3baudiotrackviewitem.cpp b/src/projects/k3baudiotrackviewitem.cpp
index 6918e2a..6c0418f 100644
--- a/src/projects/k3baudiotrackviewitem.cpp
+++ b/src/projects/k3baudiotrackviewitem.cpp
@@ -22,13 +22,13 @@
#include <kiconloader.h>
-#include <qpainter.h>
+#include <tqpainter.h>
-K3bAudioTrackViewItem::K3bAudioTrackViewItem( K3bAudioTrackView* parent,
+K3bAudioTrackViewItem::K3bAudioTrackViewItem( K3bAudioTrackView* tqparent,
K3bAudioTrackViewItem* after,
K3bAudioTrack* track )
- : K3bListViewItem( parent, after ),
+ : K3bListViewItem( tqparent, after ),
m_track( track ),
m_alreadyRemoved(false),
m_showingSources(false),
@@ -52,12 +52,12 @@ K3bAudioTrackViewItem::K3bAudioTrackViewItem( K3bAudioTrackView* parent,
// setMarginVertical( 5 );
// italic type
- QFont f(listView()->font());
+ TQFont f(listView()->font());
f.setItalic( true );
setFont( 3, f );
// gray out filename
- setForegroundColor( 5, listView()->palette().disabled().foreground() );
+ setForegroundColor( 5, listView()->tqpalette().disabled().foreground() );
// smaller filename
f = listView()->font();
@@ -74,7 +74,7 @@ K3bAudioTrackViewItem::~K3bAudioTrackViewItem()
}
-void K3bAudioTrackViewItem::paintCell( QPainter* p, const QColorGroup& cg, int col, int width, int align )
+void K3bAudioTrackViewItem::paintCell( TQPainter* p, const TQColorGroup& cg, int col, int width, int align )
{
K3bListViewItem::paintCell( p, cg, col, width, align );
@@ -82,25 +82,25 @@ void K3bAudioTrackViewItem::paintCell( QPainter* p, const QColorGroup& cg, int c
if( listView()->firstChild() != this ) {
p->save();
// FIXME: modify the value from palette().disabled().foreground() to be lighter (or darker, depending on the background color )
- p->setPen( Qt::lightGray );
+ p->setPen( TQt::lightGray );
p->drawLine( 0, 0, width, 0 );
p->restore();
}
}
-void K3bAudioTrackViewItem::paintBranches( QPainter* p, const QColorGroup& cg, int w, int, int h )
+void K3bAudioTrackViewItem::paintBranches( TQPainter* p, const TQColorGroup& cg, int w, int, int h )
{
// we just want empty space
- p->fillRect( QRect( 0, 0, w, h ), cg.base() );
+ p->fillRect( TQRect( 0, 0, w, h ), cg.base() );
}
-QString K3bAudioTrackViewItem::text(int i) const
+TQString K3bAudioTrackViewItem::text(int i) const
{
// to avoid crashes when the track has been deleted and this viewitem is still around
if( m_alreadyRemoved )
- return QString::null;
+ return TQString();
//
// We add two spaces after all strings (except the once renameable)
@@ -110,21 +110,21 @@ QString K3bAudioTrackViewItem::text(int i) const
switch( i )
{
case 0:
- return QString::number( m_track->trackNumber() ).rightJustify( 2, ' ' );
+ return TQString::number( m_track->trackNumber() ).rightJustify( 2, ' ' );
case 1:
return m_track->performer();
case 2:
return m_track->title();
case 3:
if( m_showingSources )
- return QString::null;
+ return TQString();
else
return m_track->firstSource()->type();
case 4:
return m_track->length().toString();
case 5:
if( m_showingSources )
- return QString::null;
+ return TQString();
else
return m_track->firstSource()->sourceComment();
default:
@@ -132,10 +132,10 @@ QString K3bAudioTrackViewItem::text(int i) const
}
}
-void K3bAudioTrackViewItem::setText( int col, const QString& text )
+void K3bAudioTrackViewItem::setText( int col, const TQString& text )
{
//
- // Stupid QListViewItem actually calls setText in paintCell. Thus, once a new item
+ // Stupid TQListViewItem actually calls setText in paintCell. Thus, once a new item
// is created setText is called and in turn the doc is marked as modified since
// we call setArtist or setPerformer here! :(
//
@@ -186,7 +186,7 @@ bool K3bAudioTrackViewItem::animate()
//
bool animate = false;
bool valid = true;
- QListViewItem* item = firstChild();
+ TQListViewItem* item = firstChild();
while( item ) {
K3bAudioDataSourceViewItem* sourceItem = dynamic_cast<K3bAudioDataSourceViewItem*>( item );
animate = animate || sourceItem->animate();
@@ -194,7 +194,7 @@ bool K3bAudioTrackViewItem::animate()
item = item->nextSibling();
}
if( animate ) {
- QString icon = QString( "kde%1" ).arg( m_animationCounter );
+ TQString icon = TQString( "kde%1" ).tqarg( m_animationCounter );
setPixmap( 4, SmallIcon( icon ) );
m_animationCounter++;
if ( m_animationCounter > 6 )
@@ -213,7 +213,7 @@ void K3bAudioTrackViewItem::setSelected( bool s )
K3bListViewItem::setSelected(s);
// we also select or unselect all source items
- QListViewItem* item = firstChild();
+ TQListViewItem* item = firstChild();
while( item ) {
item->setSelected(s);
item = item->nextSibling();
@@ -221,7 +221,7 @@ void K3bAudioTrackViewItem::setSelected( bool s )
}
-void K3bAudioTrackViewItem::insertItem( QListViewItem* item )
+void K3bAudioTrackViewItem::insertItem( TQListViewItem* item )
{
K3bListViewItem::insertItem( item );
if( isSelected() )
diff --git a/src/projects/k3baudiotrackviewitem.h b/src/projects/k3baudiotrackviewitem.h
index 9eb6065..c9974ba 100644
--- a/src/projects/k3baudiotrackviewitem.h
+++ b/src/projects/k3baudiotrackviewitem.h
@@ -25,7 +25,7 @@ class K3bAudioTrack;
class K3bAudioTrackViewItem : public K3bListViewItem
{
public:
- K3bAudioTrackViewItem( K3bAudioTrackView* parent,
+ K3bAudioTrackViewItem( K3bAudioTrackView* tqparent,
K3bAudioTrackViewItem* after,
K3bAudioTrack* track );
~K3bAudioTrackViewItem();
@@ -40,8 +40,8 @@ class K3bAudioTrackViewItem : public K3bListViewItem
void updateSourceItems();
bool showingSources() const { return m_showingSources; }
void showSources( bool show );
- void setText( int col, const QString& text );
- QString text( int i ) const;
+ void setText( int col, const TQString& text );
+ TQString text( int i ) const;
/**
* @reimpl
@@ -50,10 +50,10 @@ class K3bAudioTrackViewItem : public K3bListViewItem
/**
* @reimpl
*/
- void insertItem( QListViewItem* item );
+ void insertItem( TQListViewItem* item );
- void paintBranches( QPainter*, const QColorGroup &, int, int, int );
- void paintCell( QPainter* p, const QColorGroup& cg, int col, int width, int align );
+ void paintBranches( TQPainter*, const TQColorGroup &, int, int, int );
+ void paintCell( TQPainter* p, const TQColorGroup& cg, int col, int width, int align );
private:
K3bAudioTrack* m_track;
diff --git a/src/projects/k3baudiotrackwidget.cpp b/src/projects/k3baudiotrackwidget.cpp
index a5a3971..6dc0fe3 100644
--- a/src/projects/k3baudiotrackwidget.cpp
+++ b/src/projects/k3baudiotrackwidget.cpp
@@ -21,13 +21,13 @@
#include <k3bvalidators.h>
#include <k3bcdtextvalidator.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qwidgetstack.h>
-#include <qgroupbox.h>
-#include <qtabwidget.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqwidgetstack.h>
+#include <tqgroupbox.h>
+#include <tqtabwidget.h>
#include <klineedit.h>
#include <klocale.h>
@@ -35,27 +35,27 @@
-K3bAudioTrackWidget::K3bAudioTrackWidget( const QPtrList<K3bAudioTrack>& tracks,
- QWidget* parent, const char* name )
- : base_K3bAudioTrackWidget( parent, name ),
+K3bAudioTrackWidget::K3bAudioTrackWidget( const TQPtrList<K3bAudioTrack>& tracks,
+ TQWidget* tqparent, const char* name )
+ : base_K3bAudioTrackWidget( tqparent, name ),
m_tracks(tracks)
{
m_labelPostGap->setBuddy( m_editPostGap );
- QToolTip::add( m_labelPostGap, QToolTip::textFor( m_editPostGap ) );
- QWhatsThis::add( m_labelPostGap, QWhatsThis::textFor( m_editPostGap ) );
+ TQToolTip::add( m_labelPostGap, TQToolTip::textFor( m_editPostGap ) );
+ TQWhatsThis::add( m_labelPostGap, TQWhatsThis::textFor( m_editPostGap ) );
// no post-gap for the last track
m_editPostGap->setDisabled( tracks.count() == 1 && !tracks.getFirst()->next() );
- K3bCdTextValidator* val = new K3bCdTextValidator( this );
+ K3bCdTextValidator* val = new K3bCdTextValidator( TQT_TQOBJECT(this) );
m_editSongwriter->setValidator( val );
m_editArranger->setValidator( val );
m_editComposer->setValidator( val );
m_editMessage->setValidator( val );
m_editTitle->setValidator( val );
m_editPerformer->setValidator( val );
- m_editIsrc->setValidator( K3bValidators::isrcValidator( this ) );
+ m_editIsrc->setValidator( K3bValidators::isrcValidator( TQT_TQOBJECT(this) ) );
load();
}
@@ -92,25 +92,25 @@ void K3bAudioTrackWidget::load()
// m_editPostGap->setMsfValue( track->postGap() );
if( track->title() != m_editTitle->text() )
- m_editTitle->setText( QString::null );
+ m_editTitle->setText( TQString() );
if( track->artist() != m_editPerformer->text() )
- m_editPerformer->setText( QString::null );
+ m_editPerformer->setText( TQString() );
if( track->arranger() != m_editArranger->text() )
- m_editArranger->setText( QString::null );
+ m_editArranger->setText( TQString() );
if( track->songwriter() != m_editSongwriter->text() )
- m_editSongwriter->setText( QString::null );
+ m_editSongwriter->setText( TQString() );
if( track->composer() != m_editComposer->text() )
- m_editComposer->setText( QString::null );
+ m_editComposer->setText( TQString() );
if( track->isrc() != m_editIsrc->text() )
- m_editIsrc->setText( QString::null );
+ m_editIsrc->setText( TQString() );
if( track->cdTextMessage() != m_editMessage->text() )
- m_editMessage->setText( QString::null );
+ m_editMessage->setText( TQString() );
}
if( m_tracks.count() > 1 ) {
@@ -149,10 +149,10 @@ void K3bAudioTrackWidget::save()
if( m_editMessage->isModified() )
track->setCdTextMessage( m_editMessage->text() );
- if( m_checkCopyPermitted->state() != QButton::NoChange )
+ if( m_checkCopyPermitted->state() != TQButton::NoChange )
track->setCopyProtection( !m_checkCopyPermitted->isChecked() );
- if( m_checkPreemphasis->state() != QButton::NoChange )
+ if( m_checkPreemphasis->state() != TQButton::NoChange )
track->setPreEmp( m_checkPreemphasis->isChecked() );
track->setIndex0( track->length() - m_editPostGap->msfValue() );
diff --git a/src/projects/k3baudiotrackwidget.h b/src/projects/k3baudiotrackwidget.h
index 8f02fbb..bd7124b 100644
--- a/src/projects/k3baudiotrackwidget.h
+++ b/src/projects/k3baudiotrackwidget.h
@@ -20,7 +20,7 @@
#include <k3bmsf.h>
-#include <qptrlist.h>
+#include <tqptrlist.h>
class K3bAudioTrack;
@@ -32,17 +32,19 @@ class K3bAudioTrack;
class K3bAudioTrackWidget : public base_K3bAudioTrackWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioTrackWidget( const QPtrList<K3bAudioTrack>& tracks,
- QWidget* parent = 0, const char* name = 0 );
+ K3bAudioTrackWidget( const TQPtrList<K3bAudioTrack>& tracks,
+ TQWidget* tqparent = 0, const char* name = 0 );
~K3bAudioTrackWidget();
public slots:
void save();
void load();
- QPtrList<K3bAudioTrack> m_tracks;
+ public:
+ TQPtrList<K3bAudioTrack> m_tracks;
};
#endif
diff --git a/src/projects/k3baudioview.cpp b/src/projects/k3baudioview.cpp
index 3cfe0c0..929907e 100644
--- a/src/projects/k3baudioview.cpp
+++ b/src/projects/k3baudioview.cpp
@@ -38,8 +38,8 @@
#include <k3bprojectplugin.h>
// QT-includes
-#include <qlayout.h>
-#include <qstring.h>
+#include <tqlayout.h>
+#include <tqstring.h>
// KDE-includes
#include <klocale.h>
@@ -49,8 +49,8 @@
-K3bAudioView::K3bAudioView( K3bAudioDoc* pDoc, QWidget* parent, const char *name )
- : K3bView( pDoc, parent, name )
+K3bAudioView::K3bAudioView( K3bAudioDoc* pDoc, TQWidget* tqparent, const char *name )
+ : K3bView( pDoc, tqparent, name )
{
m_doc = pDoc;
@@ -59,7 +59,7 @@ K3bAudioView::K3bAudioView( K3bAudioDoc* pDoc, QWidget* parent, const char *name
fillStatusDisplay()->showTime();
// add button for the audio conversion
- KAction* conversionAction = new KAction( i18n("Convert Tracks"), "redo", 0, this, SLOT(slotAudioConversion()),
+ KAction* conversionAction = new KAction( i18n("Convert Tracks"), "redo", 0, TQT_TQOBJECT(this), TQT_SLOT(slotAudioConversion()),
actionCollection(), "project_audio_convert" );
conversionAction->setToolTip( i18n("Convert audio tracks to other audio formats." ) );
@@ -115,9 +115,9 @@ void K3bAudioView::init()
}
-K3bProjectBurnDialog* K3bAudioView::newBurnDialog( QWidget* parent, const char* name )
+K3bProjectBurnDialog* K3bAudioView::newBurnDialog( TQWidget* tqparent, const char* name )
{
- return new K3bAudioBurnDialog( m_doc, parent, name, true );
+ return new K3bAudioBurnDialog( m_doc, tqparent, name, true );
}
diff --git a/src/projects/k3baudioview.h b/src/projects/k3baudioview.h
index 99740a3..006ee14 100644
--- a/src/projects/k3baudioview.h
+++ b/src/projects/k3baudioview.h
@@ -20,7 +20,7 @@
#include <k3bview.h>
#include "k3baudiotrackview.h"
-#include <qstringlist.h>
+#include <tqstringlist.h>
class K3bAudioDoc;
@@ -34,9 +34,10 @@ class K3bAudioTrackView;
class K3bAudioView : public K3bView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioView( K3bAudioDoc* pDoc, QWidget* parent, const char *name = 0 );
+ K3bAudioView( K3bAudioDoc* pDoc, TQWidget* tqparent, const char *name = 0 );
~K3bAudioView();
K3bAudioTrackPlayer* player() const { return m_songlist->player(); }
@@ -45,7 +46,7 @@ class K3bAudioView : public K3bView
void addUrls( const KURL::List& );
protected:
- K3bProjectBurnDialog* newBurnDialog( QWidget* parent = 0, const char* name = 0 );
+ K3bProjectBurnDialog* newBurnDialog( TQWidget* tqparent = 0, const char* name = 0 );
void init();
diff --git a/src/projects/k3bbootimagedialog.cpp b/src/projects/k3bbootimagedialog.cpp
index c311082..2cd1a63 100644
--- a/src/projects/k3bbootimagedialog.cpp
+++ b/src/projects/k3bbootimagedialog.cpp
@@ -21,10 +21,10 @@
K3bBootImageDialog::K3bBootImageDialog( K3bDataDoc* doc,
- QWidget* parent,
+ TQWidget* tqparent,
const char* name,
bool modal )
- : KDialogBase( parent, name, modal, i18n("Boot Images"), Ok )
+ : KDialogBase( tqparent, name, modal, i18n("Boot Images"), Ok )
{
m_bootImageView = new K3bBootImageView( doc, this );
setMainWidget( m_bootImageView );
diff --git a/src/projects/k3bbootimagedialog.h b/src/projects/k3bbootimagedialog.h
index 161c4b5..6f42849 100644
--- a/src/projects/k3bbootimagedialog.h
+++ b/src/projects/k3bbootimagedialog.h
@@ -26,10 +26,11 @@ class K3bDataDoc;
class K3bBootImageDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
K3bBootImageDialog( K3bDataDoc*,
- QWidget* parent = 0,
+ TQWidget* tqparent = 0,
const char* name = 0,
bool modal = true );
~K3bBootImageDialog();
diff --git a/src/projects/k3bbootimageview.cpp b/src/projects/k3bbootimageview.cpp
index 22907df..718bc04 100644
--- a/src/projects/k3bbootimageview.cpp
+++ b/src/projects/k3bbootimageview.cpp
@@ -25,33 +25,33 @@
#include <kdebug.h>
#include <kmessagebox.h>
-#include <qpushbutton.h>
-#include <qstring.h>
-#include <qgroupbox.h>
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qbuttongroup.h>
-#include <qregexp.h>
+#include <tqpushbutton.h>
+#include <tqstring.h>
+#include <tqgroupbox.h>
+#include <tqlineedit.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqbuttongroup.h>
+#include <tqregexp.h>
class K3bBootImageView::PrivateBootImageViewItem : public KListViewItem
{
public:
- PrivateBootImageViewItem( K3bBootItem* image, QListView* parent )
- : KListViewItem( parent ),
+ PrivateBootImageViewItem( K3bBootItem* image, TQListView* tqparent )
+ : KListViewItem( tqparent ),
m_image( image ) {
}
- PrivateBootImageViewItem( K3bBootItem* image, QListView* parent, QListViewItem* after )
- : KListViewItem( parent, after ),
+ PrivateBootImageViewItem( K3bBootItem* image, TQListView* tqparent, TQListViewItem* after )
+ : KListViewItem( tqparent, after ),
m_image( image ) {
}
- QString text( int col ) const {
+ TQString text( int col ) const {
if( col == 0 ) {
if( m_image->imageType() == K3bBootItem::FLOPPY )
return i18n("Floppy");
@@ -61,11 +61,11 @@ public:
return i18n("None");
}
else if( col == 1 )
- return QString( "%1 KB" ).arg( m_image->size()/1024 );
+ return TQString( "%1 KB" ).tqarg( m_image->size()/1024 );
else if( col == 2 )
return m_image->localPath();
else
- return QString::null;
+ return TQString();
}
K3bBootItem* bootImage() const { return m_image; }
@@ -75,20 +75,20 @@ private:
};
-K3bBootImageView::K3bBootImageView( K3bDataDoc* doc, QWidget* parent, const char* name )
- : base_K3bBootImageView( parent, name ),
+K3bBootImageView::K3bBootImageView( K3bDataDoc* doc, TQWidget* tqparent, const char* name )
+ : base_K3bBootImageView( tqparent, name ),
m_doc(doc)
{
- connect( m_buttonNew, SIGNAL(clicked()),
- this, SLOT(slotNewBootImage()) );
- connect( m_buttonDelete, SIGNAL(clicked()),
- this, SLOT(slotDeleteBootImage()) );
- connect( m_buttonToggleOptions, SIGNAL(clicked()),
- this, SLOT(slotToggleOptions()) );
- connect( m_viewImages, SIGNAL(selectionChanged()),
- this, SLOT(slotSelectionChanged()) );
- connect( m_radioNoEmulation, SIGNAL(toggled(bool)),
- this, SLOT(slotNoEmulationToggled(bool)) );
+ connect( m_buttonNew, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotNewBootImage()) );
+ connect( m_buttonDelete, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotDeleteBootImage()) );
+ connect( m_buttonToggleOptions, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotToggleOptions()) );
+ connect( m_viewImages, TQT_SIGNAL(selectionChanged()),
+ this, TQT_SLOT(slotSelectionChanged()) );
+ connect( m_radioNoEmulation, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotNoEmulationToggled(bool)) );
K3bIntValidator* v = new K3bIntValidator( this );
m_editLoadSegment->setValidator( v );
@@ -126,7 +126,7 @@ void K3bBootImageView::showAdvancedOptions( bool show )
void K3bBootImageView::slotNewBootImage()
{
- QString file = KFileDialog::getOpenFileName( QString::null, QString::null, this, i18n("Please Choose Boot Image") );
+ TQString file = KFileDialog::getOpenFileName( TQString(), TQString(), this, i18n("Please Choose Boot Image") );
if( !file.isEmpty() ) {
KIO::filesize_t fsize = K3b::filesize( file );
int boottype = K3bBootItem::FLOPPY;
@@ -146,7 +146,7 @@ void K3bBootImageView::slotNewBootImage()
i18n("No Floppy image selected"),
i18n("Use harddisk emulation"),
i18n("Use no emulation"),
- QString::null,
+ TQString(),
KMessageBox::AllowLink ) ) {
case KMessageBox::Yes:
boottype = K3bBootItem::HARDDISK;
@@ -167,7 +167,7 @@ void K3bBootImageView::slotNewBootImage()
void K3bBootImageView::slotDeleteBootImage()
{
- QListViewItem* item = m_viewImages->selectedItem();
+ TQListViewItem* item = m_viewImages->selectedItem();
if( item ) {
K3bBootItem* i = ((PrivateBootImageViewItem*)item)->bootImage();
delete item;
@@ -178,7 +178,7 @@ void K3bBootImageView::slotDeleteBootImage()
void K3bBootImageView::slotSelectionChanged()
{
- QListViewItem* item = m_viewImages->selectedItem();
+ TQListViewItem* item = m_viewImages->selectedItem();
if( item )
loadBootItemSettings( ((PrivateBootImageViewItem*)item)->bootImage() );
else
@@ -189,7 +189,7 @@ void K3bBootImageView::slotSelectionChanged()
void K3bBootImageView::updateBootImages()
{
m_viewImages->clear();
- for( QPtrListIterator<K3bBootItem> it( m_doc->bootImages() ); it.current(); ++it ) {
+ for( TQPtrListIterator<K3bBootItem> it( m_doc->bootImages() ); it.current(); ++it ) {
(void)new PrivateBootImageViewItem( *it, m_viewImages,
m_viewImages->lastItem() );
}
@@ -207,8 +207,8 @@ void K3bBootImageView::loadBootItemSettings( K3bBootItem* item )
m_checkNoBoot->setChecked( item->noBoot() );
m_checkInfoTable->setChecked( item->bootInfoTable() );
- m_editLoadSegment->setText( "0x" + QString::number( item->loadSegment(), 16 ) );
- m_editLoadSize->setText( "0x" + QString::number( item->loadSize(), 16 ) );
+ m_editLoadSegment->setText( "0x" + TQString::number( item->loadSegment(), 16 ) );
+ m_editLoadSize->setText( "0x" + TQString::number( item->loadSize(), 16 ) );
if( item->imageType() == K3bBootItem::FLOPPY )
m_radioFloppy->setChecked(true);
@@ -235,14 +235,14 @@ void K3bBootImageView::loadBootItemSettings( K3bBootItem* item )
void K3bBootImageView::slotOptionsChanged()
{
if( !m_loadingItem ) {
- QListViewItem* item = m_viewImages->selectedItem();
+ TQListViewItem* item = m_viewImages->selectedItem();
if( item ) {
K3bBootItem* i = ((PrivateBootImageViewItem*)item)->bootImage();
i->setNoBoot( m_checkNoBoot->isChecked() );
i->setBootInfoTable( m_checkInfoTable->isChecked() );
- // TODO: create some class K3bIntEdit : public QLineEdit
+ // TODO: create some class K3bIntEdit : public TQLineEdit
bool ok = true;
i->setLoadSegment( K3bIntValidator::toInt( m_editLoadSegment->text(), &ok ) );
if( !ok )
diff --git a/src/projects/k3bbootimageview.h b/src/projects/k3bbootimageview.h
index cf41de1..102cedd 100644
--- a/src/projects/k3bbootimageview.h
+++ b/src/projects/k3bbootimageview.h
@@ -26,9 +26,10 @@ class K3bBootItem;
class K3bBootImageView : public base_K3bBootImageView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bBootImageView( K3bDataDoc* doc, QWidget* parent = 0, const char* name = 0 );
+ K3bBootImageView( K3bDataDoc* doc, TQWidget* tqparent = 0, const char* name = 0 );
~K3bBootImageView();
private slots:
diff --git a/src/projects/k3bdataadvancedimagesettingswidget.cpp b/src/projects/k3bdataadvancedimagesettingswidget.cpp
index ac24813..7ce1789 100644
--- a/src/projects/k3bdataadvancedimagesettingswidget.cpp
+++ b/src/projects/k3bdataadvancedimagesettingswidget.cpp
@@ -17,16 +17,16 @@
#include "k3bisooptions.h"
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qbuttongroup.h>
-#include <qheader.h>
-#include <qwhatsthis.h>
-#include <qpoint.h>
-#include <qpainter.h>
-#include <qpalette.h>
-#include <qvalidator.h>
-#include <qregexp.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqbuttongroup.h>
+#include <tqheader.h>
+#include <tqwhatsthis.h>
+#include <tqpoint.h>
+#include <tqpainter.h>
+#include <tqpalette.h>
+#include <tqvalidator.h>
+#include <tqregexp.h>
#include <klistview.h>
#include <kcombobox.h>
@@ -75,17 +75,17 @@ static const char * mkisofsCharacterSets[] = { "cp10081",
-class K3bDataAdvancedImageSettingsWidget::PrivateIsoWhatsThis : public QWhatsThis
+class K3bDataAdvancedImageSettingsWidget::PrivateIsoWhatsThis : public TQWhatsThis
{
public:
PrivateIsoWhatsThis( K3bDataAdvancedImageSettingsWidget* w )
- : QWhatsThis( w->m_viewIsoSettings->viewport() ) {
+ : TQWhatsThis( w->m_viewIsoSettings->viewport() ) {
this->w = w;
}
- QString text( const QPoint& p ) {
- QListViewItem* i = w->m_viewIsoSettings->selectedItem(); // dies funktioniert nur bei rechtsklick
- QListViewItem* i2 = w->m_viewIsoSettings->itemAt( p ); // dies funktioniert nur bei action whatsthis
+ TQString text( const TQPoint& p ) {
+ TQListViewItem* i = w->m_viewIsoSettings->selectedItem(); // dies funktioniert nur bei rechtsklick
+ TQListViewItem* i2 = w->m_viewIsoSettings->itemAt( p ); // dies funktioniert nur bei action whatsthis
if( i2 != 0 )
kdDebug() << "at p " << i2->text(0) << endl;
@@ -117,21 +117,21 @@ private:
-class K3bDataAdvancedImageSettingsWidget::PrivateCheckViewItem : public QCheckListItem
+class K3bDataAdvancedImageSettingsWidget::PrivateCheckViewItem : public TQCheckListItem
{
public:
- PrivateCheckViewItem( QListView* parent, const QString& text, Type tt = Controller )
- : QCheckListItem( parent, text, tt ) {
+ PrivateCheckViewItem( TQListView* tqparent, const TQString& text, Type tt = Controller )
+ : TQCheckListItem( tqparent, text, tt ) {
}
- PrivateCheckViewItem( QListViewItem* parent, const QString& text, Type tt = Controller )
- : QCheckListItem( parent, text, tt ) {
+ PrivateCheckViewItem( TQListViewItem* tqparent, const TQString& text, Type tt = Controller )
+ : TQCheckListItem( tqparent, text, tt ) {
}
protected:
void stateChange( bool on ) {
- // enable or disable all children
- QListViewItem* item = firstChild();
+ // enable or disable all tqchildren
+ TQListViewItem* item = firstChild();
while( item ) {
if( PrivateCheckViewItem* pi = dynamic_cast<PrivateCheckViewItem*>(item) )
pi->setEnabled( !on );
@@ -141,8 +141,8 @@ protected:
};
-K3bDataAdvancedImageSettingsWidget::K3bDataAdvancedImageSettingsWidget( QWidget* parent, const char* name )
- : base_K3bAdvancedDataImageSettings( parent, name )
+K3bDataAdvancedImageSettingsWidget::K3bDataAdvancedImageSettingsWidget( TQWidget* tqparent, const char* name )
+ : base_K3bAdvancedDataImageSettings( tqparent, name )
{
m_viewIsoSettings->header()->hide();
m_viewIsoSettings->setSorting( -1 );
@@ -151,92 +151,92 @@ K3bDataAdvancedImageSettingsWidget::K3bDataAdvancedImageSettingsWidget( QWidget*
(void)new PrivateIsoWhatsThis( this );
// create all the view items
- QCheckListItem* iso9660Root = new QCheckListItem( m_viewIsoSettings,
+ TQCheckListItem* iso9660Root = new TQCheckListItem( m_viewIsoSettings,
i18n("IS09660 Settings"),
- QCheckListItem::Controller );
- QCheckListItem* rrRoot = new QCheckListItem( m_viewIsoSettings,
+ TQCheckListItem::Controller );
+ TQCheckListItem* rrRoot = new TQCheckListItem( m_viewIsoSettings,
iso9660Root,
i18n("Rock Ridge Settings"),
- QCheckListItem::Controller );
- QCheckListItem* jolietRoot = new QCheckListItem( m_viewIsoSettings,
+ TQCheckListItem::Controller );
+ TQCheckListItem* jolietRoot = new TQCheckListItem( m_viewIsoSettings,
rrRoot,
i18n("Joliet Settings"),
- QCheckListItem::Controller );
- QCheckListItem* miscRoot = new QCheckListItem( m_viewIsoSettings,
+ TQCheckListItem::Controller );
+ TQCheckListItem* miscRoot = new TQCheckListItem( m_viewIsoSettings,
jolietRoot,
i18n("Misc Settings"),
- QCheckListItem::Controller );
+ TQCheckListItem::Controller );
// ISO9660 settings
m_checkAllowUntranslatedFilenames = new PrivateCheckViewItem( iso9660Root,
i18n( "Allow untranslated ISO9660 filenames" ),
- QCheckListItem::CheckBox );
+ TQCheckListItem::CheckBox );
m_checkAllowMaxLengthFilenames = new PrivateCheckViewItem( m_checkAllowUntranslatedFilenames,
i18n( "Allow max length ISO9660 filenames (37 characters)" ),
- QCheckListItem::CheckBox );
+ TQCheckListItem::CheckBox );
m_checkAllowFullAscii = new PrivateCheckViewItem( m_checkAllowUntranslatedFilenames,
i18n( "Allow full ASCII charset for ISO9660 filenames" ),
- QCheckListItem::CheckBox );
+ TQCheckListItem::CheckBox );
m_checkAllowOther = new PrivateCheckViewItem( m_checkAllowUntranslatedFilenames,
i18n( "Allow ~ and # in ISO9660 filenames" ),
- QCheckListItem::CheckBox );
+ TQCheckListItem::CheckBox );
m_checkAllowLowercaseCharacters = new PrivateCheckViewItem( m_checkAllowUntranslatedFilenames,
i18n( "Allow lowercase characters in ISO9660 filenames" ),
- QCheckListItem::CheckBox );
+ TQCheckListItem::CheckBox );
m_checkAllowMultiDot = new PrivateCheckViewItem( m_checkAllowUntranslatedFilenames,
i18n( "Allow multiple dots in ISO9660 filenames" ),
- QCheckListItem::CheckBox );
+ TQCheckListItem::CheckBox );
m_checkAllow31CharFilenames = new PrivateCheckViewItem( m_checkAllowUntranslatedFilenames,
i18n( "Allow 31 character ISO9660 filenames" ),
- QCheckListItem::CheckBox );
+ TQCheckListItem::CheckBox );
m_checkAllowBeginningPeriod = new PrivateCheckViewItem( m_checkAllowUntranslatedFilenames,
i18n( "Allow leading period in ISO9660 filenames" ),
- QCheckListItem::CheckBox );
+ TQCheckListItem::CheckBox );
m_checkOmitVersionNumbers = new PrivateCheckViewItem( m_checkAllowUntranslatedFilenames,
i18n( "Omit version numbers in ISO9660 filenames" ),
- QCheckListItem::CheckBox );
+ TQCheckListItem::CheckBox );
m_checkOmitTrailingPeriod = new PrivateCheckViewItem( m_checkAllowUntranslatedFilenames,
i18n( "Omit trailing period in ISO9660 filenames" ),
- QCheckListItem::CheckBox );
+ TQCheckListItem::CheckBox );
m_checkAllowUntranslatedFilenames->setOpen(true);
- m_isoLevelController = new QCheckListItem( iso9660Root,
+ m_isoLevelController = new TQCheckListItem( iso9660Root,
m_checkAllowUntranslatedFilenames,
i18n("ISO Level") );
- m_radioIsoLevel3 = new QCheckListItem( m_isoLevelController,
- i18n("Level %1").arg(3),
- QCheckListItem::RadioButton );
- m_radioIsoLevel2 = new QCheckListItem( m_isoLevelController,
- i18n("Level %1").arg(2),
- QCheckListItem::RadioButton );
- m_radioIsoLevel1 = new QCheckListItem( m_isoLevelController,
- i18n("Level %1").arg(1),
- QCheckListItem::RadioButton );
+ m_radioIsoLevel3 = new TQCheckListItem( m_isoLevelController,
+ i18n("Level %1").tqarg(3),
+ TQCheckListItem::RadioButton );
+ m_radioIsoLevel2 = new TQCheckListItem( m_isoLevelController,
+ i18n("Level %1").tqarg(2),
+ TQCheckListItem::RadioButton );
+ m_radioIsoLevel1 = new TQCheckListItem( m_isoLevelController,
+ i18n("Level %1").tqarg(1),
+ TQCheckListItem::RadioButton );
m_isoLevelController->setOpen(true);
// Joliet Settings
- m_checkJolietLong = new QCheckListItem( jolietRoot,
+ m_checkJolietLong = new TQCheckListItem( jolietRoot,
i18n("Allow 103 character Joliet filenames"),
- QCheckListItem::CheckBox );
+ TQCheckListItem::CheckBox );
// Rock Ridge Settings
- m_checkCreateTransTbl = new QCheckListItem( rrRoot,
+ m_checkCreateTransTbl = new TQCheckListItem( rrRoot,
i18n( "Create TRANS.TBL files" ),
- QCheckListItem::CheckBox );
- m_checkHideTransTbl = new QCheckListItem( rrRoot, m_checkCreateTransTbl,
+ TQCheckListItem::CheckBox );
+ m_checkHideTransTbl = new TQCheckListItem( rrRoot, m_checkCreateTransTbl,
i18n( "Hide TRANS.TBL files in Joliet" ),
- QCheckListItem::CheckBox );
+ TQCheckListItem::CheckBox );
// Misc Settings
-// m_checkFollowSymbolicLinks = new QCheckListItem( m_viewIsoSettings,
+// m_checkFollowSymbolicLinks = new TQCheckListItem( m_viewIsoSettings,
// i18n( "Follow symbolic links" ),
-// QCheckListItem::CheckBox );
+// TQCheckListItem::CheckBox );
- m_checkDoNotCacheInodes = new QCheckListItem( miscRoot,
+ m_checkDoNotCacheInodes = new TQCheckListItem( miscRoot,
i18n("Do not cache inodes" ),
- QCheckListItem::CheckBox );
+ TQCheckListItem::CheckBox );
iso9660Root->setOpen( true );
jolietRoot->setOpen( true );
@@ -244,14 +244,14 @@ K3bDataAdvancedImageSettingsWidget::K3bDataAdvancedImageSettingsWidget( QWidget*
miscRoot->setOpen( true );
- m_comboInputCharset->setValidator( new QRegExpValidator( QRegExp("[\\w_-]*"), this ) );
+ m_comboInputCharset->setValidator( new TQRegExpValidator( TQRegExp("[\\w_-]*"), TQT_TQOBJECT(this) ) );
// fill charset combo
for( int i = 0; mkisofsCharacterSets[i]; i++ ) {
- m_comboInputCharset->insertItem( QString( mkisofsCharacterSets[i] ) );
+ m_comboInputCharset->insertItem( TQString( mkisofsCharacterSets[i] ) );
}
- connect( m_checkJoliet, SIGNAL(toggled(bool)), this, SLOT(slotJolietToggled(bool)) );
+ connect( m_checkJoliet, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotJolietToggled(bool)) );
}
diff --git a/src/projects/k3bdataadvancedimagesettingswidget.h b/src/projects/k3bdataadvancedimagesettingswidget.h
index eb442e3..9ea8124 100644
--- a/src/projects/k3bdataadvancedimagesettingswidget.h
+++ b/src/projects/k3bdataadvancedimagesettingswidget.h
@@ -20,15 +20,16 @@
#include "base_k3badvanceddataimagesettings.h"
class K3bIsoOptions;
-class QCheckListItem;
+class TQCheckListItem;
class K3bDataAdvancedImageSettingsWidget : public base_K3bAdvancedDataImageSettings
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDataAdvancedImageSettingsWidget( QWidget* parent = 0, const char* name = 0 );
+ K3bDataAdvancedImageSettingsWidget( TQWidget* tqparent = 0, const char* name = 0 );
~K3bDataAdvancedImageSettingsWidget();
void load( const K3bIsoOptions& );
@@ -38,26 +39,26 @@ class K3bDataAdvancedImageSettingsWidget : public base_K3bAdvancedDataImageSetti
void slotJolietToggled( bool on );
private:
- QCheckListItem* m_checkAllowUntranslatedFilenames;
- QCheckListItem* m_checkAllowMaxLengthFilenames;
- QCheckListItem* m_checkAllowFullAscii;
- QCheckListItem* m_checkAllowOther;
- QCheckListItem* m_checkAllowLowercaseCharacters;
- QCheckListItem* m_checkAllowMultiDot;
- QCheckListItem* m_checkOmitVersionNumbers;
- QCheckListItem* m_checkOmitTrailingPeriod;
- QCheckListItem* m_checkCreateTransTbl;
- QCheckListItem* m_checkHideTransTbl;
- QCheckListItem* m_checkFollowSymbolicLinks;
- QCheckListItem* m_checkAllow31CharFilenames;
- QCheckListItem* m_checkAllowBeginningPeriod;
- QCheckListItem* m_checkJolietLong;
- QCheckListItem* m_checkDoNotCacheInodes;
+ TQCheckListItem* m_checkAllowUntranslatedFilenames;
+ TQCheckListItem* m_checkAllowMaxLengthFilenames;
+ TQCheckListItem* m_checkAllowFullAscii;
+ TQCheckListItem* m_checkAllowOther;
+ TQCheckListItem* m_checkAllowLowercaseCharacters;
+ TQCheckListItem* m_checkAllowMultiDot;
+ TQCheckListItem* m_checkOmitVersionNumbers;
+ TQCheckListItem* m_checkOmitTrailingPeriod;
+ TQCheckListItem* m_checkCreateTransTbl;
+ TQCheckListItem* m_checkHideTransTbl;
+ TQCheckListItem* m_checkFollowSymbolicLinks;
+ TQCheckListItem* m_checkAllow31CharFilenames;
+ TQCheckListItem* m_checkAllowBeginningPeriod;
+ TQCheckListItem* m_checkJolietLong;
+ TQCheckListItem* m_checkDoNotCacheInodes;
- QCheckListItem* m_isoLevelController;
- QCheckListItem* m_radioIsoLevel1;
- QCheckListItem* m_radioIsoLevel2;
- QCheckListItem* m_radioIsoLevel3;
+ TQCheckListItem* m_isoLevelController;
+ TQCheckListItem* m_radioIsoLevel1;
+ TQCheckListItem* m_radioIsoLevel2;
+ TQCheckListItem* m_radioIsoLevel3;
class PrivateCheckViewItem;
class PrivateIsoWhatsThis;
diff --git a/src/projects/k3bdataburndialog.cpp b/src/projects/k3bdataburndialog.cpp
index d920fd4..85f6a7d 100644
--- a/src/projects/k3bdataburndialog.cpp
+++ b/src/projects/k3bdataburndialog.cpp
@@ -32,24 +32,24 @@
#include <k3bglobals.h>
#include <k3bwritingmodewidget.h>
-#include <qcheckbox.h>
-#include <qframe.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qtoolbutton.h>
-#include <qlayout.h>
-#include <qvariant.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qpoint.h>
-#include <qradiobutton.h>
-#include <qbuttongroup.h>
-#include <qfileinfo.h>
-#include <qtabwidget.h>
-#include <qspinbox.h>
-#include <qfile.h>
+#include <tqcheckbox.h>
+#include <tqframe.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqtoolbutton.h>
+#include <tqlayout.h>
+#include <tqvariant.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqpoint.h>
+#include <tqradiobutton.h>
+#include <tqbuttongroup.h>
+#include <tqfileinfo.h>
+#include <tqtabwidget.h>
+#include <tqspinbox.h>
+#include <tqfile.h>
#include <kmessagebox.h>
#include <klineedit.h>
@@ -64,18 +64,18 @@
#include "k3bfilecompilationsizehandler.h"
-K3bDataBurnDialog::K3bDataBurnDialog(K3bDataDoc* _doc, QWidget *parent, const char *name, bool modal )
- : K3bProjectBurnDialog( _doc, parent, name, modal )
+K3bDataBurnDialog::K3bDataBurnDialog(K3bDataDoc* _doc, TQWidget *tqparent, const char *name, bool modal )
+ : K3bProjectBurnDialog( _doc, tqparent, name, modal )
{
prepareGui();
- setTitle( i18n("Data Project"), i18n("Size: %1").arg( KIO::convertSize(_doc->size()) ) );
+ setTitle( i18n("Data Project"), i18n("Size: %1").tqarg( KIO::convertSize(_doc->size()) ) );
// for now we just put the verify checkbox on the main page...
m_checkVerify = K3bStdGuiItems::verifyCheckBox( m_optionGroup );
m_optionGroupLayout->addWidget( m_checkVerify );
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
m_optionGroupLayout->addItem( spacer );
// create image settings tab
@@ -84,13 +84,13 @@ K3bDataBurnDialog::K3bDataBurnDialog(K3bDataDoc* _doc, QWidget *parent, const ch
setupSettingsTab();
- connect( m_comboMultisession, SIGNAL(activated(int)),
- this, SLOT(slotMultiSessionModeChanged()) );
+ connect( m_comboMultisession, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotMultiSessionModeChanged()) );
m_writerSelectionWidget->setWantedMediumState( K3bDevice::STATE_EMPTY|K3bDevice::STATE_INCOMPLETE );
m_tempDirSelectionWidget->setSelectionMode( K3bTempDirSelectionWidget::FILE );
- QString path = _doc->tempDir();
+ TQString path = _doc->tempDir();
if( !path.isEmpty() ) {
m_tempDirSelectionWidget->setTempPath( path );
}
@@ -98,8 +98,8 @@ K3bDataBurnDialog::K3bDataBurnDialog(K3bDataDoc* _doc, QWidget *parent, const ch
m_tempDirSelectionWidget->setDefaultImageFileName( _doc->isoOptions().volumeID() + ".iso" );
}
- connect( m_imageSettingsWidget->m_editVolumeName, SIGNAL(textChanged(const QString&)),
- m_tempDirSelectionWidget, SLOT(setDefaultImageFileName(const QString&)) );
+ connect( m_imageSettingsWidget->m_editVolumeName, TQT_SIGNAL(textChanged(const TQString&)),
+ m_tempDirSelectionWidget, TQT_SLOT(setDefaultImageFileName(const TQString&)) );
}
K3bDataBurnDialog::~K3bDataBurnDialog()
@@ -152,15 +152,15 @@ void K3bDataBurnDialog::readSettings()
void K3bDataBurnDialog::setupSettingsTab()
{
- QWidget* frame = new QWidget( this );
- QGridLayout* frameLayout = new QGridLayout( frame );
+ TQWidget* frame = new TQWidget( this );
+ TQGridLayout* frameLayout = new TQGridLayout( frame );
frameLayout->setSpacing( spacingHint() );
frameLayout->setMargin( marginHint() );
- m_groupDataMode = new QGroupBox( 1, Qt::Vertical, i18n("Datatrack Mode"), frame );
+ m_groupDataMode = new TQGroupBox( 1, Qt::Vertical, i18n("Datatrack Mode"), frame );
m_dataModeWidget = new K3bDataModeWidget( m_groupDataMode );
- QGroupBox* groupMultiSession = new QGroupBox( 1, Qt::Vertical, i18n("Multisession Mode"), frame );
+ TQGroupBox* groupMultiSession = new TQGroupBox( 1, Qt::Vertical, i18n("Multisession Mode"), frame );
m_comboMultisession = new K3bDataMultiSessionCombobox( groupMultiSession );
frameLayout->addWidget( m_groupDataMode, 0, 0 );
@@ -175,17 +175,17 @@ void K3bDataBurnDialog::slotStartClicked()
{
if( m_checkOnlyCreateImage->isChecked() ||
m_checkCacheImage->isChecked() ) {
- QFileInfo fi( m_tempDirSelectionWidget->tempPath() );
+ TQFileInfo fi( m_tempDirSelectionWidget->tempPath() );
if( fi.isDir() )
m_tempDirSelectionWidget->setTempPath( fi.filePath() + "/image.iso" );
- if( QFile::exists( m_tempDirSelectionWidget->tempPath() ) ) {
+ if( TQFile::exists( m_tempDirSelectionWidget->tempPath() ) ) {
if( KMessageBox::warningContinueCancel( this,
- i18n("Do you want to overwrite %1?").arg(m_tempDirSelectionWidget->tempPath()),
+ i18n("Do you want to overwrite %1?").tqarg(m_tempDirSelectionWidget->tempPath()),
i18n("File Exists"), i18n("Overwrite") )
== KMessageBox::Continue ) {
// delete the file here to avoid problems with free space in K3bProjectBurnDialog::slotStartClicked
- QFile::remove( m_tempDirSelectionWidget->tempPath() );
+ TQFile::remove( m_tempDirSelectionWidget->tempPath() );
}
else
return;
diff --git a/src/projects/k3bdataburndialog.h b/src/projects/k3bdataburndialog.h
index 1d1e994..4105884 100644
--- a/src/projects/k3bdataburndialog.h
+++ b/src/projects/k3bdataburndialog.h
@@ -19,13 +19,13 @@
#include "k3bprojectburndialog.h"
-class QCheckBox;
+class TQCheckBox;
class KComboBox;
-class QGroupBox;
-class QLabel;
-class QToolButton;
-class QRadioButton;
-class QButtonGroup;
+class TQGroupBox;
+class TQLabel;
+class TQToolButton;
+class TQRadioButton;
+class TQButtonGroup;
class K3bWriterSelectionWidget;
class K3bTempDirSelectionWidget;
class K3bDataDoc;
@@ -42,9 +42,10 @@ class K3bDataMultiSessionCombobox;
class K3bDataBurnDialog : public K3bProjectBurnDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDataBurnDialog(K3bDataDoc*, QWidget *parent=0, const char *name=0, bool modal = true );
+ K3bDataBurnDialog(K3bDataDoc*, TQWidget *tqparent=0, const char *name=0, bool modal = true );
~K3bDataBurnDialog();
protected:
@@ -58,11 +59,11 @@ class K3bDataBurnDialog : public K3bProjectBurnDialog
K3bDataImageSettingsWidget* m_imageSettingsWidget;
// ----------------------------------------------
- QGroupBox* m_groupDataMode;
+ TQGroupBox* m_groupDataMode;
K3bDataModeWidget* m_dataModeWidget;
K3bDataMultiSessionCombobox* m_comboMultisession;
- QCheckBox* m_checkVerify;
+ TQCheckBox* m_checkVerify;
protected slots:
void slotStartClicked();
diff --git a/src/projects/k3bdatadirtreeview.cpp b/src/projects/k3bdatadirtreeview.cpp
index 4a7ec18..558e0cf 100644
--- a/src/projects/k3bdatadirtreeview.cpp
+++ b/src/projects/k3bdatadirtreeview.cpp
@@ -26,9 +26,9 @@
#include <k3bview.h>
#include <k3bvalidators.h>
-#include <qdragobject.h>
-#include <qheader.h>
-#include <qtimer.h>
+#include <tqdragobject.h>
+#include <tqheader.h>
+#include <tqtimer.h>
#include <klocale.h>
#include <kaction.h>
@@ -51,21 +51,21 @@ public:
K3bDataDirViewItem* animatedDirItem;
K3bDataDirViewItem* dropDirItem;
int animationCounter;
- QPixmap beforeAniPixmap;
+ TQPixmap beforeAniPixmap;
// used for the urladdingdialog hack
KURL::List addUrls;
K3bDirItem* addParentDir;
- QString lastUpdateVolumeId;
+ TQString lastUpdateVolumeId;
- QValidator* iso9660Validator;
- QValidator* asciiValidator;
+ TQValidator* iso9660Validator;
+ TQValidator* asciiValidator;
};
-K3bDataDirTreeView::K3bDataDirTreeView( K3bView* view, K3bDataDoc* doc, QWidget* parent )
- : K3bListView( parent ), m_view(view)
+K3bDataDirTreeView::K3bDataDirTreeView( K3bView* view, K3bDataDoc* doc, TQWidget* tqparent )
+ : K3bListView( tqparent ), m_view(view)
{
d = new Private();
@@ -78,7 +78,7 @@ K3bDataDirTreeView::K3bDataDirTreeView( K3bView* view, K3bDataDoc* doc, QWidget*
setFullWidth( true );
setDragEnabled( true );
setItemsMovable( false );
- setAlternateBackground( QColor() );
+ setAlternateBackground( TQColor() );
// setSorting(-1);
addColumn( i18n("Directory") );
@@ -89,15 +89,15 @@ K3bDataDirTreeView::K3bDataDirTreeView( K3bView* view, K3bDataDoc* doc, QWidget*
m_root = new K3bDataRootViewItem( doc, this );
m_itemMap.insert( doc->root(), m_root );
- connect( m_doc, SIGNAL(changed()), this, SLOT(slotDocChanged()) );
- connect( this, SIGNAL(clicked(QListViewItem*)), this, SLOT(slotExecuted(QListViewItem*)) );
- connect( this, SIGNAL(selectionChanged(QListViewItem*)), this, SLOT(slotExecuted(QListViewItem*)) );
- connect( m_doc, SIGNAL(itemRemoved(K3bDataItem*)), this, SLOT(slotDataItemRemoved(K3bDataItem*)) );
- connect( m_doc, SIGNAL(itemAdded(K3bDataItem*)), this, SLOT(slotItemAdded(K3bDataItem*)) );
- connect( this, SIGNAL(contextMenu(KListView*,QListViewItem*, const QPoint&)),
- this, SLOT(showPopupMenu(KListView*,QListViewItem*, const QPoint&)) );
- connect( this, SIGNAL(dropped(QDropEvent*, QListViewItem*, QListViewItem*)),
- this, SLOT(slotDropped(QDropEvent*, QListViewItem*, QListViewItem*)) );
+ connect( m_doc, TQT_SIGNAL(changed()), TQT_TQOBJECT(this), TQT_SLOT(slotDocChanged()) );
+ connect( this, TQT_SIGNAL(clicked(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotExecuted(TQListViewItem*)) );
+ connect( this, TQT_SIGNAL(selectionChanged(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotExecuted(TQListViewItem*)) );
+ connect( m_doc, TQT_SIGNAL(itemRemoved(K3bDataItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotDataItemRemoved(K3bDataItem*)) );
+ connect( m_doc, TQT_SIGNAL(itemAdded(K3bDataItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotItemAdded(K3bDataItem*)) );
+ connect( this, TQT_SIGNAL(contextMenu(KListView*,TQListViewItem*, const TQPoint&)),
+ this, TQT_SLOT(showPopupMenu(KListView*,TQListViewItem*, const TQPoint&)) );
+ connect( this, TQT_SIGNAL(dropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)),
+ this, TQT_SLOT(slotDropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)) );
setupActions();
}
@@ -109,20 +109,20 @@ K3bDataDirTreeView::~K3bDataDirTreeView()
}
-void K3bDataDirTreeView::slotExecuted( QListViewItem* item )
+void K3bDataDirTreeView::slotExecuted( TQListViewItem* item )
{
if( K3bDataDirViewItem* viewItem = dynamic_cast<K3bDataDirViewItem*>(item) )
emit dirSelected( viewItem->dirItem() );
}
-bool K3bDataDirTreeView::acceptDrag(QDropEvent* e) const{
+bool K3bDataDirTreeView::acceptDrag(TQDropEvent* e) const{
return ( e->source() == viewport() || KURLDrag::canDecode(e) ||
( m_fileView && e->source() == m_fileView->viewport() ) );
}
-void K3bDataDirTreeView::contentsDragMoveEvent( QDragMoveEvent* e )
+void K3bDataDirTreeView::contentsDragMoveEvent( TQDragMoveEvent* e )
{
K3bListView::contentsDragMoveEvent( e );
@@ -138,7 +138,7 @@ void K3bDataDirTreeView::contentsDragMoveEvent( QDragMoveEvent* e )
}
-void K3bDataDirTreeView::contentsDragLeaveEvent( QDragLeaveEvent* e )
+void K3bDataDirTreeView::contentsDragLeaveEvent( TQDragLeaveEvent* e )
{
K3bListView::contentsDragLeaveEvent( e );
@@ -150,7 +150,7 @@ void K3bDataDirTreeView::contentsDragLeaveEvent( QDragLeaveEvent* e )
}
-void K3bDataDirTreeView::slotDropped( QDropEvent* e, QListViewItem*, QListViewItem* )
+void K3bDataDirTreeView::slotDropped( TQDropEvent* e, TQListViewItem*, TQListViewItem* )
{
// remove any highlighting
if( d->dropDirItem ) {
@@ -171,15 +171,15 @@ void K3bDataDirTreeView::slotDropped( QDropEvent* e, QListViewItem*, QListViewIt
if( d->addParentDir ) {
- // startDropAnimation( parent );
+ // startDropAnimation( tqparent );
// check if items have been moved
if( m_fileView &&
e->source() == m_fileView->viewport() ) {
// move all selected items
- QPtrList<QListViewItem> selectedViewItems = m_fileView->selectedItems();
- QValueList<K3bDataItem*> selectedDataItems;
- QPtrListIterator<QListViewItem> it( selectedViewItems );
+ TQPtrList<TQListViewItem> selectedViewItems = m_fileView->selectedItems();
+ TQValueList<K3bDataItem*> selectedDataItems;
+ TQPtrListIterator<TQListViewItem> it( selectedViewItems );
for( ; it.current(); ++it ) {
K3bDataViewItem* dataViewItem = dynamic_cast<K3bDataViewItem*>( it.current() );
if( dataViewItem )
@@ -188,14 +188,14 @@ void K3bDataDirTreeView::slotDropped( QDropEvent* e, QListViewItem*, QListViewIt
kdDebug() << "no dataviewitem" << endl;
}
- K3bDataUrlAddingDialog::copyMoveItems( selectedDataItems, d->addParentDir, this, e->action() == QDropEvent::Copy );
+ K3bDataUrlAddingDialog::copyMoveItems( selectedDataItems, d->addParentDir, this, e->action() == TQDropEvent::Copy );
}
else if( e->source() == viewport() ) {
// move the selected dir
if( K3bDataDirViewItem* dirItem = dynamic_cast<K3bDataDirViewItem*>( selectedItem() ) ) {
- QValueList<K3bDataItem*> selectedDataItems;
+ TQValueList<K3bDataItem*> selectedDataItems;
selectedDataItems.append( dirItem->dirItem() );
- K3bDataUrlAddingDialog::copyMoveItems( selectedDataItems, d->addParentDir, this, e->action() == QDropEvent::Copy );
+ K3bDataUrlAddingDialog::copyMoveItems( selectedDataItems, d->addParentDir, this, e->action() == TQDropEvent::Copy );
}
}
else {
@@ -207,7 +207,7 @@ void K3bDataDirTreeView::slotDropped( QDropEvent* e, QListViewItem*, QListViewIt
// event queues: the url adding dialog will be non-modal regardless of
// the settings in case we open it directly.
//
- QTimer::singleShot( 0, this, SLOT(slotAddUrls()) );
+ TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT(slotAddUrls()) );
}
}
}
@@ -231,8 +231,8 @@ void K3bDataDirTreeView::slotItemAdded( K3bDataItem* item )
// should only be emitted once for every item
//
K3bDirItem* dirItem = static_cast<K3bDirItem*>( item );
- K3bDataDirViewItem* parentViewItem = m_itemMap[dirItem->parent()];
- K3bDataDirViewItem* newDirItem = new K3bDataDirViewItem( dirItem, parentViewItem );
+ K3bDataDirViewItem* tqparentViewItem = m_itemMap[dirItem->tqparent()];
+ K3bDataDirViewItem* newDirItem = new K3bDataDirViewItem( dirItem, tqparentViewItem );
m_itemMap.insert( dirItem, newDirItem );
}
}
@@ -242,14 +242,14 @@ void K3bDataDirTreeView::slotDataItemRemoved( K3bDataItem* item )
{
if( item->isDir() ) {
K3bDirItem* dirItem = static_cast<K3bDirItem*>( item );
- QMapIterator<K3bDirItem*, K3bDataDirViewItem*> it = m_itemMap.find( dirItem );
+ TQMapIterator<K3bDirItem*, K3bDataDirViewItem*> it = m_itemMap.tqfind( dirItem );
if( it != m_itemMap.end() ) {
K3bDataDirViewItem* viewItem = it.data();
m_itemMap.remove( it );
// we don't get removedInfo for the child items
// so we need to remove them here
- QPtrListIterator<K3bDataItem> it( dirItem->children() );
+ TQPtrListIterator<K3bDataItem> it( dirItem->tqchildren() );
for( ; it.current(); ++it ) {
if( it.current()->isDir() )
slotDataItemRemoved( it.current() );
@@ -263,12 +263,12 @@ void K3bDataDirTreeView::slotDataItemRemoved( K3bDataItem* item )
void K3bDataDirTreeView::setCurrentDir( K3bDirItem* dirItem )
{
- QMapIterator<K3bDirItem*, K3bDataDirViewItem*> it = m_itemMap.find( dirItem );
+ TQMapIterator<K3bDirItem*, K3bDataDirViewItem*> it = m_itemMap.tqfind( dirItem );
if( it != m_itemMap.end() ) {
setCurrentItem( it.data() );
it.data()->setOpen(true);
if( it.data() != root() )
- it.data()->parent()->setOpen(true);
+ it.data()->tqparent()->setOpen(true);
}
else {
kdDebug() << "Tried to set unknown dirItem to current" << endl;
@@ -280,29 +280,29 @@ void K3bDataDirTreeView::setupActions()
{
m_actionCollection = new KActionCollection( this );
- m_actionProperties = new KAction( i18n("Properties"), "misc", 0, this, SLOT(slotProperties()),
+ m_actionProperties = new KAction( i18n("Properties"), "misc", 0, TQT_TQOBJECT(this), TQT_SLOT(slotProperties()),
actionCollection(), "properties" );
- m_actionNewDir = new KAction( i18n("New Directory..."), "folder_new", CTRL+Key_N, this, SLOT(slotNewDir()),
+ m_actionNewDir = new KAction( i18n("New Directory..."), "folder_new", CTRL+Key_N, TQT_TQOBJECT(this), TQT_SLOT(slotNewDir()),
actionCollection(), "new_dir" );
- m_actionRemove = new KAction( i18n("Remove"), "editdelete", Key_Delete, this, SLOT(slotRemoveItem()),
+ m_actionRemove = new KAction( i18n("Remove"), "editdelete", Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(slotRemoveItem()),
actionCollection(), "remove" );
KShortcut renameShortCut( Key_F2 );
renameShortCut.append( KShortcut(CTRL+Key_R) ); // backwards compatibility
- m_actionRename = new KAction( i18n("Rename"), "edit", renameShortCut, this, SLOT(slotRenameItem()),
+ m_actionRename = new KAction( i18n("Rename"), "edit", renameShortCut, TQT_TQOBJECT(this), TQT_SLOT(slotRenameItem()),
actionCollection(), "rename" );
m_popupMenu = new KActionMenu( m_actionCollection, "contextMenu" );
m_popupMenu->insert( m_actionRename );
m_popupMenu->insert( m_actionRemove );
m_popupMenu->insert( m_actionNewDir );
- m_popupMenu->insert( new KActionSeparator( this ) );
+ m_popupMenu->insert( new KActionSeparator( TQT_TQOBJECT(this) ) );
m_popupMenu->insert( m_actionProperties );
- m_popupMenu->insert( new KActionSeparator( this ) );
+ m_popupMenu->insert( new KActionSeparator( TQT_TQOBJECT(this) ) );
m_popupMenu->insert( m_view->actionCollection()->action("project_burn") );
}
-void K3bDataDirTreeView::showPopupMenu( KListView*, QListViewItem* item, const QPoint& point )
+void K3bDataDirTreeView::showPopupMenu( KListView*, TQListViewItem* item, const TQPoint& point )
{
if( item ) {
if( K3bDataViewItem* di = dynamic_cast<K3bDataViewItem*>(item) ) {
@@ -328,16 +328,16 @@ void K3bDataDirTreeView::showPopupMenu( KListView*, QListViewItem* item, const Q
void K3bDataDirTreeView::slotNewDir()
{
if( K3bDataDirViewItem* vI = dynamic_cast<K3bDataDirViewItem*>(currentItem()) ) {
- K3bDirItem* parent = vI->dirItem();
+ K3bDirItem* tqparent = vI->dirItem();
- QString name;
+ TQString name;
bool ok;
name = KInputDialog::getText( i18n("New Directory"),
i18n("Please insert the name for the new directory:"),
i18n("New Directory"), &ok, this );
- while( ok && K3bDataDoc::nameAlreadyInDir( name, parent ) ) {
+ while( ok && K3bDataDoc::nameAlreadyInDir( name, tqparent ) ) {
name = KInputDialog::getText( i18n("New Directory"),
i18n("A file with that name already exists. "
"Please insert the name for the new directory:"),
@@ -348,7 +348,7 @@ void K3bDataDirTreeView::slotNewDir()
return;
- m_doc->addEmptyDir( name, parent );
+ m_doc->addEmptyDir( name, tqparent );
}
}
@@ -374,9 +374,9 @@ void K3bDataDirTreeView::slotProperties()
if( viewItem && currentItem() != root() ) {
K3bDataPropertiesDialog d( viewItem->dataItem(), this );
if( d.exec() ) {
- repaint();
+ tqrepaint();
if( m_fileView )
- m_fileView->repaint();
+ m_fileView->tqrepaint();
}
}
else
@@ -392,8 +392,8 @@ void K3bDataDirTreeView::startDropAnimation( K3bDirItem* dir )
if( vI ) {
d->animationCounter = 0;
d->animatedDirItem = vI;
- d->beforeAniPixmap = QPixmap( *vI->pixmap(0) );
- QTimer::singleShot( 0, this, SLOT(slotDropAnimate()) );
+ d->beforeAniPixmap = TQPixmap( *vI->pixmap(0) );
+ TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT(slotDropAnimate()) );
}
}
@@ -426,7 +426,7 @@ void K3bDataDirTreeView::slotDropAnimate()
}
d->animationCounter++;
- QTimer::singleShot( 300, this, SLOT(slotDropAnimate()) );
+ TQTimer::singleShot( 300, TQT_TQOBJECT(this), TQT_SLOT(slotDropAnimate()) );
}
}
}
@@ -448,26 +448,26 @@ void K3bDataDirTreeView::checkForNewItems()
while( item != 0 )
{
// check if we have an entry and if not, create one
- // we can assume that a listViewItem for the parent exists
+ // we can assume that a listViewItem for the tqparent exists
// since we go top to bottom
if( item->isDir() )
{
K3bDirItem* dirItem = dynamic_cast<K3bDirItem*>( item );
- QMapIterator<K3bDirItem*, K3bDataDirViewItem*> itDirItem = m_itemMap.find( dirItem );
+ TQMapIterator<K3bDirItem*, K3bDataDirViewItem*> itDirItem = m_itemMap.tqfind( dirItem );
if( itDirItem == m_itemMap.end() ) {
- K3bDataDirViewItem* parentViewItem = m_itemMap[dirItem->parent()];
- K3bDataDirViewItem* newDirItem = new K3bDataDirViewItem( dirItem, parentViewItem );
+ K3bDataDirViewItem* tqparentViewItem = m_itemMap[dirItem->tqparent()];
+ K3bDataDirViewItem* newDirItem = new K3bDataDirViewItem( dirItem, tqparentViewItem );
m_itemMap.insert( dirItem, newDirItem );
}
else {
- // check if parent still correct (to get moved items)
+ // check if tqparent still correct (to get moved items)
K3bDataDirViewItem* dirViewItem = itDirItem.data();
- K3bDataDirViewItem* parentViewItem = (K3bDataDirViewItem*)dirViewItem->parent();
- K3bDataDirViewItem* dirParentViewItem = m_itemMap[dirItem->parent()];
- if( dirParentViewItem != parentViewItem ) {
+ K3bDataDirViewItem* tqparentViewItem = (K3bDataDirViewItem*)dirViewItem->tqparent();
+ K3bDataDirViewItem* dirParentViewItem = m_itemMap[dirItem->tqparent()];
+ if( dirParentViewItem != tqparentViewItem ) {
// reparent it
- parentViewItem->takeItem( dirViewItem );
+ tqparentViewItem->takeItem( dirViewItem );
dirParentViewItem->insertItem( dirViewItem );
}
}
@@ -478,7 +478,7 @@ void K3bDataDirTreeView::checkForNewItems()
// check the directory depth
- QListViewItemIterator it(root());
+ TQListViewItemIterator it(root());
while( it.current() != 0 ) {
if( K3bDataDirViewItem* dirViewItem = dynamic_cast<K3bDataDirViewItem*>(it.current()) )
if( it.current() != m_root ) {
@@ -499,7 +499,7 @@ void K3bDataDirTreeView::slotDocChanged()
// avoid flicker
if( d->lastUpdateVolumeId != m_doc->isoOptions().volumeID() ) {
d->lastUpdateVolumeId = m_doc->isoOptions().volumeID();
- root()->repaint();
+ root()->tqrepaint();
}
}
diff --git a/src/projects/k3bdatadirtreeview.h b/src/projects/k3bdatadirtreeview.h
index c79a9c6..2ffaaa7 100644
--- a/src/projects/k3bdatadirtreeview.h
+++ b/src/projects/k3bdatadirtreeview.h
@@ -21,7 +21,7 @@
#include <k3blistview.h>
#include <kurl.h>
-#include <qmap.h>
+#include <tqmap.h>
class K3bDataView;
class K3bDataDoc;
@@ -33,8 +33,8 @@ class KActionCollection;
class KActionMenu;
class KAction;
class K3bView;
-class QDragMoveEvent;
-class QDragLeaveEvent;
+class TQDragMoveEvent;
+class TQDragLeaveEvent;
/**
@@ -44,9 +44,10 @@ class QDragLeaveEvent;
class K3bDataDirTreeView : public K3bListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDataDirTreeView( K3bView*, K3bDataDoc*, QWidget* parent );
+ K3bDataDirTreeView( K3bView*, K3bDataDoc*, TQWidget* tqparent );
virtual ~K3bDataDirTreeView();
K3bDataDirViewItem* root() { return m_root; }
@@ -60,13 +61,13 @@ class K3bDataDirTreeView : public K3bListView
void setCurrentDir( K3bDirItem* );
signals:
- // void urlsDropped( const KURL::List&, QListViewItem* parent );
+ // void urlsDropped( const KURL::List&, TQListViewItem* tqparent );
void dirSelected( K3bDirItem* );
protected:
- bool acceptDrag(QDropEvent* e) const;
- void contentsDragMoveEvent( QDragMoveEvent* e );
- void contentsDragLeaveEvent( QDragLeaveEvent* e );
+ bool acceptDrag(TQDropEvent* e) const;
+ void contentsDragMoveEvent( TQDragMoveEvent* e );
+ void contentsDragLeaveEvent( TQDragLeaveEvent* e );
KActionCollection* m_actionCollection;
KActionMenu* m_popupMenu;
@@ -76,7 +77,7 @@ class K3bDataDirTreeView : public K3bListView
KAction* m_actionProperties;
protected slots:
- virtual void slotDropped( QDropEvent* e, QListViewItem* after, QListViewItem* parent );
+ virtual void slotDropped( TQDropEvent* e, TQListViewItem* after, TQListViewItem* tqparent );
private:
void setupActions();
@@ -93,15 +94,15 @@ class K3bDataDirTreeView : public K3bListView
* We save the dirItems in a map to have a fast way
* for checking for new or removed items
*/
- QMap<K3bDirItem*, K3bDataDirViewItem*> m_itemMap;
+ TQMap<K3bDirItem*, K3bDataDirViewItem*> m_itemMap;
class Private;
Private* d;
private slots:
- void slotExecuted( QListViewItem* );
+ void slotExecuted( TQListViewItem* );
void slotDataItemRemoved( K3bDataItem* );
- void showPopupMenu( KListView*, QListViewItem* _item, const QPoint& );
+ void showPopupMenu( KListView*, TQListViewItem* _item, const TQPoint& );
void slotRenameItem();
void slotRemoveItem();
void slotNewDir();
diff --git a/src/projects/k3bdatafileview.cpp b/src/projects/k3bdatafileview.cpp
index 4c06bde..9030759 100644
--- a/src/projects/k3bdatafileview.cpp
+++ b/src/projects/k3bdatafileview.cpp
@@ -30,12 +30,12 @@
#include <k3bview.h>
-#include <qdragobject.h>
-#include <qpainter.h>
-#include <qfontmetrics.h>
-#include <qtimer.h>
-#include <qheader.h>
-#include <qfileinfo.h>
+#include <tqdragobject.h>
+#include <tqpainter.h>
+#include <tqfontmetrics.h>
+#include <tqtimer.h>
+#include <tqheader.h>
+#include <tqfileinfo.h>
#include <klocale.h>
#include <kaction.h>
@@ -47,8 +47,8 @@
#include <kdeversion.h>
-K3bDataFileView::K3bDataFileView( K3bView* view, K3bDataDirTreeView* dirTreeView, K3bDataDoc* doc, QWidget* parent )
- : K3bListView( parent ),
+K3bDataFileView::K3bDataFileView( K3bView* view, K3bDataDirTreeView* dirTreeView, K3bDataDoc* doc, TQWidget* tqparent )
+ : K3bListView( tqparent ),
m_view(view),
m_dropDirItem(0)
{
@@ -79,16 +79,16 @@ K3bDataFileView::K3bDataFileView( K3bView* view, K3bDataDirTreeView* dirTreeView
m_currentDir = doc->root();
checkForNewItems();
- connect( m_treeView, SIGNAL(dirSelected(K3bDirItem*)), this, SLOT(slotSetCurrentDir(K3bDirItem*)) );
- connect( m_doc, SIGNAL(itemRemoved(K3bDataItem*)), this, SLOT(slotDataItemRemoved(K3bDataItem*)) );
- connect( m_doc, SIGNAL(itemAdded(K3bDataItem*)), this, SLOT(slotItemAdded(K3bDataItem*)) );
- connect( this, SIGNAL(executed(QListViewItem*)), this, SLOT(slotExecuted(QListViewItem*)) );
- connect( this, SIGNAL(contextMenu(KListView*, QListViewItem*, const QPoint&)),
- this, SLOT(showPopupMenu(KListView*, QListViewItem*, const QPoint&)) );
- connect( this, SIGNAL(dropped(QDropEvent*, QListViewItem*, QListViewItem*)),
- this, SLOT(slotDropped(QDropEvent*, QListViewItem*, QListViewItem*)) );
- connect( this, SIGNAL(doubleClicked(QListViewItem*, const QPoint&, int)),
- this, SLOT(slotDoubleClicked(QListViewItem*)) );
+ connect( m_treeView, TQT_SIGNAL(dirSelected(K3bDirItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotSetCurrentDir(K3bDirItem*)) );
+ connect( m_doc, TQT_SIGNAL(itemRemoved(K3bDataItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotDataItemRemoved(K3bDataItem*)) );
+ connect( m_doc, TQT_SIGNAL(itemAdded(K3bDataItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotItemAdded(K3bDataItem*)) );
+ connect( this, TQT_SIGNAL(executed(TQListViewItem*)), TQT_TQOBJECT(this), TQT_SLOT(slotExecuted(TQListViewItem*)) );
+ connect( this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
+ this, TQT_SLOT(showPopupMenu(KListView*, TQListViewItem*, const TQPoint&)) );
+ connect( this, TQT_SIGNAL(dropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)),
+ this, TQT_SLOT(slotDropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)) );
+ connect( this, TQT_SIGNAL(doubleClicked(TQListViewItem*, const TQPoint&, int)),
+ this, TQT_SLOT(slotDoubleClicked(TQListViewItem*)) );
setupActions();
}
@@ -126,7 +126,7 @@ void K3bDataFileView::clearItems()
void K3bDataFileView::slotItemAdded( K3bDataItem* item )
{
- if( item->parent() == currentDir() ) {
+ if( item->tqparent() == currentDir() ) {
K3bDataViewItem* vi = 0;
if( item->isDir() )
vi = new K3bDataDirViewItem( static_cast<K3bDirItem*>(item), this );
@@ -153,7 +153,7 @@ void K3bDataFileView::slotDataItemRemoved( K3bDataItem* item )
}
}
- if( m_itemMap.contains( item ) ) {
+ if( m_itemMap.tqcontains( item ) ) {
delete m_itemMap[item];
m_itemMap.remove(item);
}
@@ -165,26 +165,26 @@ void K3bDataFileView::checkForNewItems()
hideEditor();
// add items that are not there yet
- for( QPtrListIterator<K3bDataItem> it( m_currentDir->children() ); it.current(); ++it ) {
- if( !m_itemMap.contains( it.current() ) ) {
+ for( TQPtrListIterator<K3bDataItem> it( m_currentDir->tqchildren() ); it.current(); ++it ) {
+ if( !m_itemMap.tqcontains( it.current() ) ) {
slotItemAdded( it.current() );
}
}
// now check if some of the items have been moved out of the currently showing dir.
- for( QListViewItemIterator it( this ); it.current(); ++it ) {
+ for( TQListViewItemIterator it( this ); it.current(); ++it ) {
K3bDataViewItem* dataViewItem = dynamic_cast<K3bDataViewItem*>( it.current() );
- if( dataViewItem && dataViewItem->dataItem()->parent() != currentDir() )
+ if( dataViewItem && dataViewItem->dataItem()->tqparent() != currentDir() )
delete dataViewItem;
}
}
-QDragObject* K3bDataFileView::dragObject()
+TQDragObject* K3bDataFileView::dragObject()
{
- QPtrList<QListViewItem> selectedViewItems = selectedItems();
+ TQPtrList<TQListViewItem> selectedViewItems = selectedItems();
KURL::List urls;
- for( QPtrListIterator<QListViewItem> it( selectedViewItems ); it.current(); ++it ) {
+ for( TQPtrListIterator<TQListViewItem> it( selectedViewItems ); it.current(); ++it ) {
K3bDataViewItem* dataViewItem = dynamic_cast<K3bDataViewItem*>( it.current() );
if( dataViewItem ) {
urls.append( KURL::fromPathOrURL(dataViewItem->dataItem()->localPath()) );
@@ -200,7 +200,7 @@ QDragObject* K3bDataFileView::dragObject()
}
-bool K3bDataFileView::acceptDrag(QDropEvent* e) const
+bool K3bDataFileView::acceptDrag(TQDropEvent* e) const
{
return ( e->source() == viewport() ||
KURLDrag::canDecode(e) ||
@@ -208,7 +208,7 @@ bool K3bDataFileView::acceptDrag(QDropEvent* e) const
}
-void K3bDataFileView::contentsDragMoveEvent( QDragMoveEvent* e )
+void K3bDataFileView::contentsDragMoveEvent( TQDragMoveEvent* e )
{
K3bListView::contentsDragMoveEvent( e );
@@ -222,7 +222,7 @@ void K3bDataFileView::contentsDragMoveEvent( QDragMoveEvent* e )
}
-void K3bDataFileView::contentsDragLeaveEvent( QDragLeaveEvent* e )
+void K3bDataFileView::contentsDragLeaveEvent( TQDragLeaveEvent* e )
{
K3bListView::contentsDragLeaveEvent( e );
@@ -234,7 +234,7 @@ void K3bDataFileView::contentsDragLeaveEvent( QDragLeaveEvent* e )
}
-void K3bDataFileView::slotDropped( QDropEvent* e, QListViewItem*, QListViewItem* )
+void K3bDataFileView::slotDropped( TQDropEvent* e, TQListViewItem*, TQListViewItem* )
{
// remove any highlighting
if( m_dropDirItem ) {
@@ -259,9 +259,9 @@ void K3bDataFileView::slotDropped( QDropEvent* e, QListViewItem*, QListViewItem*
// check if items have been moved
if( e->source() == viewport() ) {
// move all selected items
- QPtrList<QListViewItem> selectedViewItems = selectedItems();
- QValueList<K3bDataItem*> selectedDataItems;
- QPtrListIterator<QListViewItem> it( selectedViewItems );
+ TQPtrList<TQListViewItem> selectedViewItems = selectedItems();
+ TQValueList<K3bDataItem*> selectedDataItems;
+ TQPtrListIterator<TQListViewItem> it( selectedViewItems );
for( ; it.current(); ++it ) {
K3bDataViewItem* dataViewItem = dynamic_cast<K3bDataViewItem*>( it.current() );
if( dataViewItem )
@@ -270,14 +270,14 @@ void K3bDataFileView::slotDropped( QDropEvent* e, QListViewItem*, QListViewItem*
kdDebug() << "no dataviewitem" << endl;
}
- K3bDataUrlAddingDialog::copyMoveItems( selectedDataItems, m_addParentDir, this, e->action() == QDropEvent::Copy );
+ K3bDataUrlAddingDialog::copyMoveItems( selectedDataItems, m_addParentDir, this, e->action() == TQDropEvent::Copy );
}
else if( e->source() == m_treeView->viewport() ) {
// move the selected dir
if( K3bDataDirViewItem* dirItem = dynamic_cast<K3bDataDirViewItem*>( m_treeView->selectedItem() ) ) {
- QValueList<K3bDataItem*> selectedDataItems;
+ TQValueList<K3bDataItem*> selectedDataItems;
selectedDataItems.append( dirItem->dirItem() );
- K3bDataUrlAddingDialog::copyMoveItems( selectedDataItems, m_addParentDir, this, e->action() == QDropEvent::Copy );
+ K3bDataUrlAddingDialog::copyMoveItems( selectedDataItems, m_addParentDir, this, e->action() == TQDropEvent::Copy );
}
}
else {
@@ -289,7 +289,7 @@ void K3bDataFileView::slotDropped( QDropEvent* e, QListViewItem*, QListViewItem*
// event queues: the url adding dialog will be non-modal regardless of
// the settings in case we open it directly.
//
- QTimer::singleShot( 0, this, SLOT(slotAddUrls()) );
+ TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT(slotAddUrls()) );
}
}
}
@@ -305,7 +305,7 @@ void K3bDataFileView::slotAddUrls()
}
-void K3bDataFileView::slotExecuted( QListViewItem* item )
+void K3bDataFileView::slotExecuted( TQListViewItem* item )
{
if( K3bDataDirViewItem* k = dynamic_cast<K3bDataDirViewItem*>( item ) ) {
hideEditor(); // disable the K3bListView Editor
@@ -319,37 +319,37 @@ void K3bDataFileView::setupActions()
{
m_actionCollection = new KActionCollection( this );
- m_actionProperties = new KAction( i18n("Properties"), "misc", 0, this, SLOT(slotProperties()),
+ m_actionProperties = new KAction( i18n("Properties"), "misc", 0, TQT_TQOBJECT(this), TQT_SLOT(slotProperties()),
actionCollection(), "properties" );
- m_actionNewDir = new KAction( i18n("New Directory..."), "folder_new", CTRL+Key_N, this, SLOT(slotNewDir()),
+ m_actionNewDir = new KAction( i18n("New Directory..."), "folder_new", CTRL+Key_N, TQT_TQOBJECT(this), TQT_SLOT(slotNewDir()),
actionCollection(), "new_dir" );
- m_actionRemove = new KAction( i18n("Remove"), "editdelete", Key_Delete, this, SLOT(slotRemoveItem()),
+ m_actionRemove = new KAction( i18n("Remove"), "editdelete", Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(slotRemoveItem()),
actionCollection(), "remove" );
KShortcut renameShortCut( Key_F2 );
renameShortCut.append( KShortcut(CTRL+Key_R) ); // backwards compatibility
- m_actionRename = new KAction( i18n("Rename"), "edit", renameShortCut, this, SLOT(slotRenameItem()),
+ m_actionRename = new KAction( i18n("Rename"), "edit", renameShortCut, TQT_TQOBJECT(this), TQT_SLOT(slotRenameItem()),
actionCollection(), "rename" );
- m_actionParentDir = new KAction( i18n("Parent Directory"), "up", 0, this, SLOT(slotParentDir()),
- actionCollection(), "parent_dir" );
- m_actionOpen = new KAction( i18n("Open"), "fileopen", 0, this, SLOT(slotOpen()),
+ m_actionParentDir = new KAction( i18n("Parent Directory"), "up", 0, TQT_TQOBJECT(this), TQT_SLOT(slotParentDir()),
+ actionCollection(), "tqparent_dir" );
+ m_actionOpen = new KAction( i18n("Open"), "fileopen", 0, TQT_TQOBJECT(this), TQT_SLOT(slotOpen()),
actionCollection(), "open" );
m_popupMenu = new KActionMenu( m_actionCollection, "contextMenu" );
m_popupMenu->insert( m_actionParentDir );
- m_popupMenu->insert( new KActionSeparator( this ) );
+ m_popupMenu->insert( new KActionSeparator( TQT_TQOBJECT(this) ) );
m_popupMenu->insert( m_actionRename );
m_popupMenu->insert( m_actionRemove );
m_popupMenu->insert( m_actionNewDir );
- m_popupMenu->insert( new KActionSeparator( this ) );
+ m_popupMenu->insert( new KActionSeparator( TQT_TQOBJECT(this) ) );
m_popupMenu->insert( m_actionOpen );
- m_popupMenu->insert( new KActionSeparator( this ) );
+ m_popupMenu->insert( new KActionSeparator( TQT_TQOBJECT(this) ) );
m_popupMenu->insert( m_actionProperties );
- m_popupMenu->insert( new KActionSeparator( this ) );
+ m_popupMenu->insert( new KActionSeparator( TQT_TQOBJECT(this) ) );
m_popupMenu->insert( m_view->actionCollection()->action("project_burn") );
}
-void K3bDataFileView::showPopupMenu( KListView*, QListViewItem* item, const QPoint& point )
+void K3bDataFileView::showPopupMenu( KListView*, TQListViewItem* item, const TQPoint& point )
{
if( item ) {
K3bDataItem* di = static_cast<K3bDataViewItem*>(item)->dataItem();
@@ -373,16 +373,16 @@ void K3bDataFileView::showPopupMenu( KListView*, QListViewItem* item, const QPoi
void K3bDataFileView::slotNewDir()
{
- K3bDirItem* parent = currentDir();
+ K3bDirItem* tqparent = currentDir();
- QString name;
+ TQString name;
bool ok;
name = KInputDialog::getText( i18n("New Directory"),
i18n("Please insert the name for the new directory:"),
i18n("New Directory"), &ok, this );
- while( ok && K3bDataDoc::nameAlreadyInDir( name, parent ) ) {
+ while( ok && K3bDataDoc::nameAlreadyInDir( name, tqparent ) ) {
name = KInputDialog::getText( i18n("New Directory"),
i18n("A file with that name already exists. "
"Please insert the name for the new directory:"),
@@ -393,7 +393,7 @@ void K3bDataFileView::slotNewDir()
return;
- m_doc->addEmptyDir( name, parent );
+ m_doc->addEmptyDir( name, tqparent );
}
@@ -406,8 +406,8 @@ void K3bDataFileView::slotRenameItem()
void K3bDataFileView::slotRemoveItem()
{
- QPtrList<QListViewItem> items = selectedItems();
- QPtrListIterator<QListViewItem> it( items );
+ TQPtrList<TQListViewItem> items = selectedItems();
+ TQPtrListIterator<TQListViewItem> it( items );
for(; it.current(); ++it ) {
if( K3bDataViewItem* d = dynamic_cast<K3bDataViewItem*>( it.current() ) )
m_doc->removeItem( d->dataItem() );
@@ -418,7 +418,7 @@ void K3bDataFileView::slotRemoveItem()
void K3bDataFileView::slotParentDir()
{
if( currentDir() != m_doc->root() ) {
- slotSetCurrentDir( currentDir()->parent() );
+ slotSetCurrentDir( currentDir()->tqparent() );
emit dirSelected( currentDir() );
}
@@ -458,7 +458,7 @@ void K3bDataFileView::slotOpen()
!KRun::isExecutableFile( KURL::fromPathOrURL(item->localPath()),
fvi->mimeType()->name() )
#else
- !QFileInfo( item->localPath() ).isExecutable()
+ !TQFileInfo( item->localPath() ).isExecutable()
#endif
)
KRun::runURL( KURL::fromPathOrURL(item->localPath()),
@@ -470,7 +470,7 @@ void K3bDataFileView::slotOpen()
}
-void K3bDataFileView::slotDoubleClicked( QListViewItem* )
+void K3bDataFileView::slotDoubleClicked( TQListViewItem* )
{
if( K3bDataViewItem* viewItem = dynamic_cast<K3bDataViewItem*>( selectedItems().first() ) ) {
if( !viewItem->dataItem()->isDir() ) {
diff --git a/src/projects/k3bdatafileview.h b/src/projects/k3bdatafileview.h
index 580af96..cd7e2c8 100644
--- a/src/projects/k3bdatafileview.h
+++ b/src/projects/k3bdatafileview.h
@@ -21,7 +21,7 @@
#include <kurl.h>
-#include <qmap.h>
+#include <tqmap.h>
class K3bDataDoc;
@@ -29,16 +29,16 @@ class K3bDirItem;
class K3bDataView;
class K3bDataViewItem;
class K3bDataItem;
-class QDropEvent;
+class TQDropEvent;
class KActionCollection;
class KActionMenu;
class KAction;
class K3bDataDirTreeView;
class K3bDataDirViewItem;
class K3bView;
-class QPainter;
-class QDragMoveEvent;
-class QDragLeaveEvent;
+class TQPainter;
+class TQDragMoveEvent;
+class TQDragLeaveEvent;
/**
*@author Sebastian Trueg
@@ -47,9 +47,10 @@ class QDragLeaveEvent;
class K3bDataFileView : public K3bListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDataFileView( K3bView*, K3bDataDirTreeView*, K3bDataDoc*, QWidget* parent );
+ K3bDataFileView( K3bView*, K3bDataDirTreeView*, K3bDataDoc*, TQWidget* tqparent );
~K3bDataFileView();
K3bDirItem* currentDir() const;
@@ -65,24 +66,24 @@ class K3bDataFileView : public K3bListView
private slots:
void slotDataItemRemoved( K3bDataItem* );
- void slotExecuted( QListViewItem* );
- void slotDropped( QDropEvent* e, QListViewItem* after, QListViewItem* parent );
- void showPopupMenu( KListView*, QListViewItem* _item, const QPoint& );
+ void slotExecuted( TQListViewItem* );
+ void slotDropped( TQDropEvent* e, TQListViewItem* after, TQListViewItem* tqparent );
+ void showPopupMenu( KListView*, TQListViewItem* _item, const TQPoint& );
void slotRenameItem();
void slotRemoveItem();
void slotNewDir();
void slotParentDir();
void slotProperties();
- void slotDoubleClicked( QListViewItem* item );
+ void slotDoubleClicked( TQListViewItem* item );
void slotItemAdded( K3bDataItem* );
void slotAddUrls();
void slotOpen();
protected:
- bool acceptDrag(QDropEvent* e) const;
- void contentsDragMoveEvent( QDragMoveEvent* e );
- void contentsDragLeaveEvent( QDragLeaveEvent* e );
- QDragObject* dragObject();
+ bool acceptDrag(TQDropEvent* e) const;
+ void contentsDragMoveEvent( TQDragMoveEvent* e );
+ void contentsDragLeaveEvent( TQDragLeaveEvent* e );
+ TQDragObject* dragObject();
private:
void clearItems();
@@ -105,7 +106,7 @@ class K3bDataFileView : public K3bListView
K3bDataDirViewItem* m_dropDirItem;
- QMap<K3bDataItem*, K3bDataViewItem*> m_itemMap;
+ TQMap<K3bDataItem*, K3bDataViewItem*> m_itemMap;
// used for the urladdingdialog hack
KURL::List m_addUrls;
diff --git a/src/projects/k3bdataimagesettingswidget.cpp b/src/projects/k3bdataimagesettingswidget.cpp
index 331e1eb..57f1474 100644
--- a/src/projects/k3bdataimagesettingswidget.cpp
+++ b/src/projects/k3bdataimagesettingswidget.cpp
@@ -19,14 +19,14 @@
#include "k3bisooptions.h"
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qbuttongroup.h>
-#include <qlineedit.h>
-#include <qcombobox.h>
-#include <qpushbutton.h>
-#include <qwhatsthis.h>
-#include <qlayout.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqbuttongroup.h>
+#include <tqlineedit.h>
+#include <tqcombobox.h>
+#include <tqpushbutton.h>
+#include <tqwhatsthis.h>
+#include <tqlayout.h>
#include <kmessagebox.h>
#include <klocale.h>
@@ -126,8 +126,8 @@ static void initializePresets()
class K3bDataImageSettingsWidget::CustomFilesystemsDialog : public KDialogBase
{
public:
- CustomFilesystemsDialog( QWidget* parent )
- : KDialogBase( parent,
+ CustomFilesystemsDialog( TQWidget* tqparent )
+ : KDialogBase( tqparent,
"custom_filesystems_dialog",
true,
i18n("Custom Data Project Filesystems"),
@@ -145,8 +145,8 @@ public:
class K3bDataImageSettingsWidget::VolumeDescDialog : public KDialogBase
{
public:
- VolumeDescDialog( QWidget* parent )
- : KDialogBase( parent,
+ VolumeDescDialog( TQWidget* tqparent )
+ : KDialogBase( tqparent,
"voldesc_dialog",
true,
i18n("Volume Descriptor"),
@@ -157,8 +157,8 @@ public:
setMainWidget( w );
// give ourselves a reasonable size
- QSize s = sizeHint();
- s.setWidth( QMAX(s.width(), 300) );
+ TQSize s = tqsizeHint();
+ s.setWidth( TQMAX(s.width(), 300) );
resize( s );
}
@@ -167,21 +167,21 @@ public:
-K3bDataImageSettingsWidget::K3bDataImageSettingsWidget( QWidget* parent, const char* name )
- : base_K3bDataImageSettings( parent, name ),
+K3bDataImageSettingsWidget::K3bDataImageSettingsWidget( TQWidget* tqparent, const char* name )
+ : base_K3bDataImageSettings( tqparent, name ),
m_fileSystemOptionsShown(true)
{
- layout()->setMargin( KDialog::marginHint() );
+ tqlayout()->setMargin( KDialog::marginHint() );
m_customFsDlg = new CustomFilesystemsDialog( this );
m_volDescDlg = new VolumeDescDialog( this );
- connect( m_buttonCustomFilesystems, SIGNAL(clicked()),
- this, SLOT(slotCustomFilesystems()) );
- connect( m_buttonMoreVolDescFields, SIGNAL(clicked()),
- this, SLOT(slotMoreVolDescFields()) );
- connect( m_comboSpaceHandling, SIGNAL(activated(int)),
- this, SLOT(slotSpaceHandlingChanged(int)) );
+ connect( m_buttonCustomFilesystems, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotCustomFilesystems()) );
+ connect( m_buttonMoreVolDescFields, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotMoreVolDescFields()) );
+ connect( m_comboSpaceHandling, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotSpaceHandlingChanged(int)) );
for( int i = 0; i < FS_MAX; ++i )
m_comboFilesystems->insertItem( i18n( s_fsPresetNames[i] ) );
@@ -189,7 +189,7 @@ K3bDataImageSettingsWidget::K3bDataImageSettingsWidget( QWidget* parent, const c
if( !s_fsPresetsInitialized )
initializePresets();
- QWhatsThis::add( m_comboFilesystems,
+ TQWhatsThis::add( m_comboFilesystems,
i18n("<p><b>File System Presets</b>"
"<p>K3b provides the following file system Presets which allow for a quick selection "
"of the most frequently used settings.")
@@ -242,7 +242,7 @@ void K3bDataImageSettingsWidget::slotCustomFilesystems()
K3bIsoOptions o;
m_customFsDlg->w->save( o );
- if( m_customFsDlg->exec() == QDialog::Accepted ) {
+ if( m_customFsDlg->exec() == TQDialog::Accepted ) {
slotFilesystemsChanged();
}
else {
@@ -258,7 +258,7 @@ void K3bDataImageSettingsWidget::slotFilesystemsChanged()
return;
// new custom entry
- QStringList s;
+ TQStringList s;
if( m_customFsDlg->w->m_checkRockRidge->isChecked() )
s += i18n("Rock Ridge");
if( m_customFsDlg->w->m_checkJoliet->isChecked() )
@@ -268,7 +268,7 @@ void K3bDataImageSettingsWidget::slotFilesystemsChanged()
if( s.isEmpty() )
m_comboFilesystems->changeItem( i18n("Custom (ISO9660 only)"), FS_CUSTOM );
else
- m_comboFilesystems->changeItem( i18n("Custom (%1)").arg( s.join(", ") ), FS_CUSTOM );
+ m_comboFilesystems->changeItem( i18n("Custom (%1)").tqarg( s.join(", ") ), FS_CUSTOM );
// see if any of the presets is loaded
m_comboFilesystems->setCurrentItem( FS_CUSTOM );
@@ -318,7 +318,7 @@ void K3bDataImageSettingsWidget::slotMoreVolDescFields()
m_volDescDlg->w->save( o );
// exec dlg
- if( m_volDescDlg->exec() == QDialog::Accepted ) {
+ if( m_volDescDlg->exec() == TQDialog::Accepted ) {
// accept new entries
m_volDescDlg->w->save( o );
m_editVolumeName->setText( o.volumeID() );
@@ -353,7 +353,7 @@ void K3bDataImageSettingsWidget::load( const K3bIsoOptions& o )
case K3bIsoOptions::extended:
m_comboSpaceHandling->setCurrentItem( WS_EXTENDED_STRIP );
break;
- case K3bIsoOptions::replace:
+ case K3bIsoOptions::tqreplace:
m_comboSpaceHandling->setCurrentItem( WS_REPLACE );
break;
default:
@@ -387,7 +387,7 @@ void K3bDataImageSettingsWidget::save( K3bIsoOptions& o )
o.setWhiteSpaceTreatment( K3bIsoOptions::extended );
break;
case WS_REPLACE:
- o.setWhiteSpaceTreatment( K3bIsoOptions::replace );
+ o.setWhiteSpaceTreatment( K3bIsoOptions::tqreplace );
break;
default:
o.setWhiteSpaceTreatment( K3bIsoOptions::noChange );
diff --git a/src/projects/k3bdataimagesettingswidget.h b/src/projects/k3bdataimagesettingswidget.h
index e16226f..13086f3 100644
--- a/src/projects/k3bdataimagesettingswidget.h
+++ b/src/projects/k3bdataimagesettingswidget.h
@@ -25,9 +25,10 @@ class K3bIsoOptions;
class K3bDataImageSettingsWidget : public base_K3bDataImageSettings
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDataImageSettingsWidget( QWidget* parent = 0, const char* name = 0 );
+ K3bDataImageSettingsWidget( TQWidget* tqparent = 0, const char* name = 0 );
~K3bDataImageSettingsWidget();
void load( const K3bIsoOptions& );
diff --git a/src/projects/k3bdatamultisessioncombobox.cpp b/src/projects/k3bdatamultisessioncombobox.cpp
index 57dd818..87e6551 100644
--- a/src/projects/k3bdatamultisessioncombobox.cpp
+++ b/src/projects/k3bdatamultisessioncombobox.cpp
@@ -18,8 +18,8 @@
#include <klocale.h>
#include <kconfig.h>
-#include <qwhatsthis.h>
-#include <qtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqtooltip.h>
static const int s_autoIndex = 0;
@@ -29,14 +29,14 @@ static const int s_continueIndex = 3;
static const int s_finishIndex = 4;
-K3bDataMultiSessionCombobox::K3bDataMultiSessionCombobox( QWidget* parent, const char* name )
- : QComboBox( parent, name ),
+K3bDataMultiSessionCombobox::K3bDataMultiSessionCombobox( TQWidget* tqparent, const char* name )
+ : TQComboBox( tqparent, name ),
m_forceNoMultiSession(false)
{
init( false );
- QToolTip::add( this, i18n("Select the Multisession Mode for the project.") );
- QWhatsThis::add( this, i18n("<p><b>Multisession Mode</b>"
+ TQToolTip::add( this, i18n("Select the Multisession Mode for the project.") );
+ TQWhatsThis::add( this, i18n("<p><b>Multisession Mode</b>"
"<p><b>Auto</b><br>"
"Let K3b decide which mode to use. The decision will be based "
"on the size of the project (does it fill the whole media) and "
@@ -101,7 +101,7 @@ K3bDataDoc::MultiSessionMode K3bDataMultiSessionCombobox::multiSessionMode() con
void K3bDataMultiSessionCombobox::saveConfig( KConfigBase* c )
{
- QString s;
+ TQString s;
switch( currentItem() ) {
case s_autoIndex:
s = "auto";
@@ -126,7 +126,7 @@ void K3bDataMultiSessionCombobox::saveConfig( KConfigBase* c )
void K3bDataMultiSessionCombobox::loadConfig( KConfigBase* c )
{
- QString s = c->readEntry( "multisession mode" );
+ TQString s = c->readEntry( "multisession mode" );
if( s == "none" )
setMultiSessionMode( K3bDataDoc::NONE );
else if( s == "start" )
diff --git a/src/projects/k3bdatamultisessioncombobox.h b/src/projects/k3bdatamultisessioncombobox.h
index cb44989..71ccc02 100644
--- a/src/projects/k3bdatamultisessioncombobox.h
+++ b/src/projects/k3bdatamultisessioncombobox.h
@@ -16,18 +16,19 @@
#ifndef _K3B_DATA_MULTISESSION_COMBOBOX_H_
#define _K3B_DATA_MULTISESSION_COMBOBOX_H_
-#include <qcombobox.h>
+#include <tqcombobox.h>
#include <k3bdatadoc.h>
class KConfigBase;
-class K3bDataMultiSessionCombobox : public QComboBox
+class K3bDataMultiSessionCombobox : public TQComboBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDataMultiSessionCombobox( QWidget* parent = 0, const char* name = 0 );
+ K3bDataMultiSessionCombobox( TQWidget* tqparent = 0, const char* name = 0 );
~K3bDataMultiSessionCombobox();
/**
diff --git a/src/projects/k3bdatapropertiesdialog.cpp b/src/projects/k3bdatapropertiesdialog.cpp
index 39fec61..7cc8549 100644
--- a/src/projects/k3bdatapropertiesdialog.cpp
+++ b/src/projects/k3bdatapropertiesdialog.cpp
@@ -21,15 +21,15 @@
#include <kcutlabel.h>
#include <k3bvalidators.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qframe.h>
-#include <qcheckbox.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qtabwidget.h>
-#include <qvalidator.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqframe.h>
+#include <tqcheckbox.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqtabwidget.h>
+#include <tqvalidator.h>
#include <klineedit.h>
#include <kiconloader.h>
@@ -41,46 +41,46 @@
-K3bDataPropertiesDialog::K3bDataPropertiesDialog( K3bDataItem* dataItem, QWidget* parent, const char* name )
- : KDialogBase( Plain, i18n("File Properties"), Ok|Cancel, Ok, parent, name, true, false )
+K3bDataPropertiesDialog::K3bDataPropertiesDialog( K3bDataItem* dataItem, TQWidget* tqparent, const char* name )
+ : KDialogBase( Plain, i18n("File Properties"), Ok|Cancel, Ok, tqparent, name, true, false )
{
m_dataItem = dataItem;
- QLabel* labelMimeType = new QLabel( plainPage() );
- QLabel* extraInfoLabel = new QLabel( plainPage() );
+ TQLabel* labelMimeType = new TQLabel( plainPage() );
+ TQLabel* extraInfoLabel = new TQLabel( plainPage() );
m_editName = new KLineEdit( plainPage() );
- m_labelType = new QLabel( plainPage() );
+ m_labelType = new TQLabel( plainPage() );
m_labelLocation = new KCutLabel( plainPage() );
- m_labelSize = new QLabel( plainPage() );
- m_labelBlocks = new QLabel( plainPage() );
+ m_labelSize = new TQLabel( plainPage() );
+ m_labelBlocks = new TQLabel( plainPage() );
m_labelLocalName = new KCutLabel( plainPage() );
m_labelLocalLocation = new KCutLabel( plainPage() );
- QGridLayout* grid = new QGridLayout( plainPage() );
+ TQGridLayout* grid = new TQGridLayout( plainPage() );
grid->setSpacing( spacingHint() );
grid->setMargin( marginHint() );
grid->addWidget( labelMimeType, 0, 0 );
grid->addWidget( m_editName, 0, 2 );
- QFrame* line = new QFrame( plainPage() );
- line->setFrameStyle( QFrame::HLine | QFrame::Sunken );
+ TQFrame* line = new TQFrame( plainPage() );
+ line->setFrameStyle( TQFrame::HLine | TQFrame::Sunken );
grid->addMultiCellWidget( line, 1, 1, 0, 2 );
- grid->addWidget( new QLabel( i18n("Type:"), plainPage() ), 2, 0 );
- grid->addWidget( new QLabel( i18n("Location:"), plainPage() ), 4, 0 );
- grid->addWidget( new QLabel( i18n("Size:"), plainPage() ), 5, 0 );
- grid->addWidget( new QLabel( i18n("Used blocks:"), plainPage() ), 6, 0 );
+ grid->addWidget( new TQLabel( i18n("Type:"), plainPage() ), 2, 0 );
+ grid->addWidget( new TQLabel( i18n("Location:"), plainPage() ), 4, 0 );
+ grid->addWidget( new TQLabel( i18n("Size:"), plainPage() ), 5, 0 );
+ grid->addWidget( new TQLabel( i18n("Used blocks:"), plainPage() ), 6, 0 );
grid->addWidget( m_labelType, 2, 2 );
grid->addWidget( extraInfoLabel, 3, 2 );
grid->addWidget( m_labelLocation, 4, 2 );
grid->addWidget( m_labelSize, 5, 2 );
grid->addWidget( m_labelBlocks, 6, 2 );
- line = new QFrame( plainPage() );
- line->setFrameStyle( QFrame::HLine | QFrame::Sunken );
+ line = new TQFrame( plainPage() );
+ line->setFrameStyle( TQFrame::HLine | TQFrame::Sunken );
grid->addMultiCellWidget( line, 7, 7, 0, 2 );
- QLabel* label1 = new QLabel( i18n("Local name:"), plainPage() );
+ TQLabel* label1 = new TQLabel( i18n("Local name:"), plainPage() );
grid->addWidget( label1, 8, 0 );
- QLabel* label2 = new QLabel( i18n("Local location:"), plainPage() );
+ TQLabel* label2 = new TQLabel( i18n("Local location:"), plainPage() );
grid->addWidget( label2, 9, 0 );
grid->addWidget( m_labelLocalName, 8, 2 );
grid->addWidget( m_labelLocalLocation, 9, 2 );
@@ -94,12 +94,12 @@ K3bDataPropertiesDialog::K3bDataPropertiesDialog( K3bDataItem* dataItem, QWidget
KFileItem kFileItem( KFileItem::Unknown, KFileItem::Unknown, KURL::fromPathOrURL(fileItem->localPath()) );
labelMimeType->setPixmap( kFileItem.pixmap(KIcon::SizeLarge) );
if( fileItem->isSymLink() )
- m_labelType->setText( i18n("Link to %1").arg(kFileItem.mimeComment()) );
+ m_labelType->setText( i18n("Link to %1").tqarg(kFileItem.mimeComment()) );
else
m_labelType->setText( kFileItem.mimeComment() );
m_labelLocalName->setText( kFileItem.name() );
- QString localLocation = kFileItem.url().path(-1);
- localLocation.truncate( localLocation.findRev('/') );
+ TQString localLocation = kFileItem.url().path(-1);
+ localLocation.truncate( localLocation.tqfindRev('/') );
m_labelLocalLocation->setText( localLocation );
m_labelSize->setText( KIO::convertSize(dataItem->size()) );
}
@@ -127,49 +127,49 @@ K3bDataPropertiesDialog::K3bDataPropertiesDialog( K3bDataItem* dataItem, QWidget
}
m_editName->setText( dataItem->k3bName() );
- m_labelBlocks->setText( QString::number(dataItem->blocks().lba()) );
+ m_labelBlocks->setText( TQString::number(dataItem->blocks().lba()) );
- QString location = "/" + dataItem->k3bPath();
+ TQString location = "/" + dataItem->k3bPath();
if( location[location.length()-1] == '/' )
location.truncate( location.length()-1 );
- location.truncate( location.findRev('/') );
+ location.truncate( location.tqfindRev('/') );
if( location.isEmpty() )
location = "/";
m_labelLocation->setText( location );
- extraInfoLabel->setText( QString( "(%1)" ).arg(dataItem->extraInfo()) );
+ extraInfoLabel->setText( TQString( "(%1)" ).tqarg(dataItem->extraInfo()) );
if( dataItem->extraInfo().isEmpty() )
extraInfoLabel->hide();
// OPTIONS
// /////////////////////////////////////////////////
- QTabWidget* optionTab = new QTabWidget( plainPage() );
- line = new QFrame( plainPage() );
- line->setFrameStyle( QFrame::HLine | QFrame::Sunken );
+ TQTabWidget* optionTab = new TQTabWidget( plainPage() );
+ line = new TQFrame( plainPage() );
+ line->setFrameStyle( TQFrame::HLine | TQFrame::Sunken );
grid->addMultiCellWidget( line, 10, 10, 0, 2 );
grid->addMultiCellWidget( optionTab, 12, 12, 0, 2 );
grid->setRowStretch( 11, 1 );
- QWidget* hideBox = new QWidget( optionTab );
- QGridLayout* hideBoxGrid = new QGridLayout( hideBox );
+ TQWidget* hideBox = new TQWidget( optionTab );
+ TQGridLayout* hideBoxGrid = new TQGridLayout( hideBox );
hideBoxGrid->setSpacing( spacingHint() );
hideBoxGrid->setMargin( marginHint() );
- m_checkHideOnRockRidge = new QCheckBox( i18n("Hide on Rockridge"), hideBox );
- m_checkHideOnJoliet = new QCheckBox( i18n("Hide on Joliet"), hideBox );
+ m_checkHideOnRockRidge = new TQCheckBox( i18n("Hide on Rockridge"), hideBox );
+ m_checkHideOnJoliet = new TQCheckBox( i18n("Hide on Joliet"), hideBox );
hideBoxGrid->addWidget( m_checkHideOnRockRidge, 0, 0 );
hideBoxGrid->addWidget( m_checkHideOnJoliet, 1, 0 );
hideBoxGrid->setRowStretch( 2, 1 );
// grid->addMultiCellWidget( m_checkHideOnRockRidge, 10, 10, 0, 2 );
// grid->addMultiCellWidget( m_checkHideOnJoliet, 11, 11, 0, 2 );
- QWidget* sortingBox = new QWidget( optionTab );
- QGridLayout* sortingBoxGrid = new QGridLayout( sortingBox );
+ TQWidget* sortingBox = new TQWidget( optionTab );
+ TQGridLayout* sortingBoxGrid = new TQGridLayout( sortingBox );
sortingBoxGrid->setSpacing( spacingHint() );
sortingBoxGrid->setMargin( marginHint() );
m_editSortWeight = new KLineEdit( sortingBox );
- m_editSortWeight->setValidator( new QIntValidator( -2147483647, 2147483647, m_editSortWeight ) );
- m_editSortWeight->setAlignment( Qt::AlignRight );
- sortingBoxGrid->addWidget( new QLabel( i18n("Sort weight:"), sortingBox ), 0, 0 );
+ m_editSortWeight->setValidator( new TQIntValidator( -2147483647, 2147483647, TQT_TQOBJECT(m_editSortWeight) ) );
+ m_editSortWeight->tqsetAlignment( TQt::AlignRight );
+ sortingBoxGrid->addWidget( new TQLabel( i18n("Sort weight:"), sortingBox ), 0, 0 );
sortingBoxGrid->addWidget( m_editSortWeight, 0, 1 );
sortingBoxGrid->setColStretch( 1, 1 );
sortingBoxGrid->setRowStretch( 1, 1 );
@@ -180,12 +180,12 @@ K3bDataPropertiesDialog::K3bDataPropertiesDialog( K3bDataItem* dataItem, QWidget
m_checkHideOnJoliet->setChecked( dataItem->hideOnJoliet() );
m_checkHideOnRockRidge->setChecked( dataItem->hideOnRockRidge() );
- m_editSortWeight->setText( QString::number(dataItem->sortWeight()) );
+ m_editSortWeight->setText( TQString::number(dataItem->sortWeight()) );
- // if the parent is hidden the value cannot be changed (see K3bDataItem::setHide...)
- if( dataItem->parent() ) {
- m_checkHideOnRockRidge->setDisabled( dataItem->parent()->hideOnRockRidge() );
- m_checkHideOnJoliet->setDisabled( dataItem->parent()->hideOnJoliet() );
+ // if the tqparent is hidden the value cannot be changed (see K3bDataItem::setHide...)
+ if( dataItem->tqparent() ) {
+ m_checkHideOnRockRidge->setDisabled( dataItem->tqparent()->hideOnRockRidge() );
+ m_checkHideOnJoliet->setDisabled( dataItem->tqparent()->hideOnJoliet() );
}
if( !dataItem->isHideable() ) {
@@ -194,35 +194,35 @@ K3bDataPropertiesDialog::K3bDataPropertiesDialog( K3bDataItem* dataItem, QWidget
// line->hide();
}
- QToolTip::add( m_checkHideOnRockRidge, i18n("Hide this file in the RockRidge filesystem") );
- QToolTip::add( m_checkHideOnJoliet, i18n("Hide this file in the Joliet filesystem") );
- QToolTip::add( m_editSortWeight, i18n("Modify the physical sorting") );
- QWhatsThis::add( m_checkHideOnRockRidge, i18n("<p>If this option is checked, the file or directory "
+ TQToolTip::add( m_checkHideOnRockRidge, i18n("Hide this file in the RockRidge filesystem") );
+ TQToolTip::add( m_checkHideOnJoliet, i18n("Hide this file in the Joliet filesystem") );
+ TQToolTip::add( m_editSortWeight, i18n("Modify the physical sorting") );
+ TQWhatsThis::add( m_checkHideOnRockRidge, i18n("<p>If this option is checked, the file or directory "
"(and its entire contents) will be hidden on the "
"ISO9660 and RockRidge filesystem.</p>"
"<p>This is useful, for example, for having different README "
"files for RockRidge and Joliet, which can be managed "
"by hiding README.joliet on RockRidge and README.rr "
"on the Joliet filesystem.</p>") );
- QWhatsThis::add( m_checkHideOnJoliet, i18n("<p>If this option is checked, the file or directory "
+ TQWhatsThis::add( m_checkHideOnJoliet, i18n("<p>If this option is checked, the file or directory "
"(and its entire contents) will be hidden on the "
"Joliet filesystem.</p>"
"<p>This is useful, for example, for having different README "
"files for RockRidge and Joliet, which can be managed "
"by hiding README.joliet on RockRidge and README.rr "
"on the Joliet filesystem.</p>") );
- QWhatsThis::add( m_editSortWeight, i18n("<p>This value modifies the physical sort order of the files "
+ TQWhatsThis::add( m_editSortWeight, i18n("<p>This value modifies the physical sort order of the files "
"in the ISO9660 filesystem. A higher weighting means that the "
"file will be located closer to the beginning of the image "
"(and the disk)."
- "<p>This option is useful in order to optimize the data layout "
+ "<p>This option is useful in order to optimize the data tqlayout "
"on a CD/DVD."
"<p><b>Caution:</b> This does not sort the order of the file "
"names that appear in the ISO9660 directory."
"It sorts the order in which the file data is "
"written to the image.") );
- m_editName->setValidator( K3bValidators::iso9660Validator( false, this ) );
+ m_editName->setValidator( K3bValidators::iso9660Validator( false, TQT_TQOBJECT(this) ) );
m_editName->setReadOnly( !dataItem->isRenameable() );
m_editName->setFocus();
}
diff --git a/src/projects/k3bdatapropertiesdialog.h b/src/projects/k3bdatapropertiesdialog.h
index eb585ce..8c79c47 100644
--- a/src/projects/k3bdatapropertiesdialog.h
+++ b/src/projects/k3bdatapropertiesdialog.h
@@ -22,9 +22,9 @@
class K3bDataItem;
class KLineEdit;
-class QPushButton;
-class QLabel;
-class QCheckBox;
+class TQPushButton;
+class TQLabel;
+class TQCheckBox;
/**
@@ -33,9 +33,10 @@ class QCheckBox;
class K3bDataPropertiesDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDataPropertiesDialog( K3bDataItem*, QWidget* parent = 0, const char* name = 0 );
+ K3bDataPropertiesDialog( K3bDataItem*, TQWidget* tqparent = 0, const char* name = 0 );
~K3bDataPropertiesDialog();
protected slots:
@@ -43,16 +44,16 @@ Q_OBJECT
private:
KLineEdit* m_editName;
- QLabel* m_labelType;
- QLabel* m_labelLocation;
- QLabel* m_labelSize;
- QLabel* m_labelBlocks;
+ TQLabel* m_labelType;
+ TQLabel* m_labelLocation;
+ TQLabel* m_labelSize;
+ TQLabel* m_labelBlocks;
- QLabel* m_labelLocalName;
- QLabel* m_labelLocalLocation;
+ TQLabel* m_labelLocalName;
+ TQLabel* m_labelLocalLocation;
- QCheckBox* m_checkHideOnRockRidge;
- QCheckBox* m_checkHideOnJoliet;
+ TQCheckBox* m_checkHideOnRockRidge;
+ TQCheckBox* m_checkHideOnJoliet;
KLineEdit* m_editSortWeight;
K3bDataItem* m_dataItem;
diff --git a/src/projects/k3bdatasessionimportdialog.cpp b/src/projects/k3bdatasessionimportdialog.cpp
index f6f1b85..80e45f1 100644
--- a/src/projects/k3bdatasessionimportdialog.cpp
+++ b/src/projects/k3bdatasessionimportdialog.cpp
@@ -22,16 +22,16 @@
#include <k3bmediacache.h>
#include <k3b.h>
-#include <qpushbutton.h>
-#include <qcursor.h>
-#include <qapplication.h>
+#include <tqpushbutton.h>
+#include <tqcursor.h>
+#include <tqapplication.h>
#include <klocale.h>
#include <kmessagebox.h>
-K3bDataSessionImportDialog::K3bDataSessionImportDialog( QWidget* parent )
- : KDialogBase( parent,
+K3bDataSessionImportDialog::K3bDataSessionImportDialog( TQWidget* tqparent )
+ : KDialogBase( tqparent,
"session_import_dialog",
true,
i18n("Session Import"),
@@ -42,8 +42,8 @@ K3bDataSessionImportDialog::K3bDataSessionImportDialog( QWidget* parent )
m_comboMedia = new K3bMediaSelectionComboBox( this );
setMainWidget( m_comboMedia );
- connect( m_comboMedia, SIGNAL(selectionChanged(K3bDevice::Device*)),
- this, SLOT(slotSelectionChanged(K3bDevice::Device*)) );
+ connect( m_comboMedia, TQT_SIGNAL(selectionChanged(K3bDevice::Device*)),
+ this, TQT_SLOT(slotSelectionChanged(K3bDevice::Device*)) );
}
@@ -74,7 +74,7 @@ void K3bDataSessionImportDialog::slotOk()
{
// find the selected device, show a busy mouse cursor and call K3bDataDoc::importSession
if( K3bDevice::Device* dev = m_comboMedia->selectedDevice() ) {
- QApplication::setOverrideCursor( QCursor(Qt::WaitCursor) );
+ TQApplication::setOverrideCursor( TQCursor(TQt::WaitCursor) );
//
// Mkisofs does not properly import joliet filenames from an old session
@@ -104,7 +104,7 @@ void K3bDataSessionImportDialog::slotOk()
m_doc->setBurner( dev );
m_doc->importSession( dev );
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
done( 0 );
}
@@ -125,9 +125,9 @@ void K3bDataSessionImportDialog::slotSelectionChanged( K3bDevice::Device* dev )
}
-K3bDataDoc* K3bDataSessionImportDialog::importSession( K3bDataDoc* doc, QWidget* parent )
+K3bDataDoc* K3bDataSessionImportDialog::importSession( K3bDataDoc* doc, TQWidget* tqparent )
{
- K3bDataSessionImportDialog dlg( parent );
+ K3bDataSessionImportDialog dlg( tqparent );
dlg.importSession( doc );
dlg.exec();
return dlg.m_doc;
diff --git a/src/projects/k3bdatasessionimportdialog.h b/src/projects/k3bdatasessionimportdialog.h
index 77c074f..7a092db 100644
--- a/src/projects/k3bdatasessionimportdialog.h
+++ b/src/projects/k3bdatasessionimportdialog.h
@@ -18,13 +18,13 @@
#include <kdialogbase.h>
-#include <qptrlist.h>
-#include <qmap.h>
+#include <tqptrlist.h>
+#include <tqmap.h>
#include <k3bdevice.h>
-class QLabel;
+class TQLabel;
class KListBox;
class K3bDataDoc;
class K3bMediaSelectionComboBox;
@@ -33,6 +33,7 @@ class K3bMediaSelectionComboBox;
class K3bDataSessionImportDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -44,7 +45,7 @@ class K3bDataSessionImportDialog : public KDialogBase
*
* \return the project
*/
- static K3bDataDoc* importSession( K3bDataDoc* doc, QWidget* parent );
+ static K3bDataDoc* importSession( K3bDataDoc* doc, TQWidget* tqparent );
private slots:
void slotOk();
@@ -54,7 +55,7 @@ class K3bDataSessionImportDialog : public KDialogBase
void slotSelectionChanged( K3bDevice::Device* );
private:
- K3bDataSessionImportDialog( QWidget* parent = 0 );
+ K3bDataSessionImportDialog( TQWidget* tqparent = 0 );
~K3bDataSessionImportDialog();
K3bDataDoc* m_doc;
diff --git a/src/projects/k3bdataurladdingdialog.cpp b/src/projects/k3bdataurladdingdialog.cpp
index 2edb43b..1a645ff 100644
--- a/src/projects/k3bdataurladdingdialog.cpp
+++ b/src/projects/k3bdataurladdingdialog.cpp
@@ -18,11 +18,11 @@
#include "k3bdataurladdingdialog.h"
#include "k3bencodingconverter.h"
-#include <qtimer.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qdir.h>
-#include <qfileinfo.h>
+#include <tqtimer.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
#include <k3bdatadoc.h>
#include <k3bdiritem.h>
@@ -55,12 +55,12 @@
#include <unistd.h>
-K3bDataUrlAddingDialog::K3bDataUrlAddingDialog( K3bDataDoc* doc, QWidget* parent, const char* name )
+K3bDataUrlAddingDialog::K3bDataUrlAddingDialog( K3bDataDoc* doc, TQWidget* tqparent, const char* name )
: KDialogBase( Plain,
- i18n("Adding files to project '%1'").arg(doc->URL().fileName()),
+ i18n("Adding files to project '%1'").tqarg(doc->URL().fileName()),
Cancel,
Cancel,
- parent,
+ tqparent,
name,
true,
true ),
@@ -77,26 +77,26 @@ K3bDataUrlAddingDialog::K3bDataUrlAddingDialog( K3bDataDoc* doc, QWidget* parent
{
m_encodingConverter = new K3bEncodingConverter();
- QWidget* page = plainPage();
- QGridLayout* grid = new QGridLayout( page );
+ TQWidget* page = plainPage();
+ TQGridLayout* grid = new TQGridLayout( page );
grid->setSpacing( spacingHint() );
grid->setMargin( 0 );
- m_counterLabel = new QLabel( page );
+ m_counterLabel = new TQLabel( page );
m_infoLabel = new KSqueezedTextLabel( i18n("Adding files to project '%1'")
- .arg(doc->URL().fileName()) + "...", page );
+ .tqarg(doc->URL().fileName()) + "...", page );
m_progressWidget = new KProgress( 0, page );
grid->addWidget( m_counterLabel, 0, 1 );
grid->addWidget( m_infoLabel, 0, 0 );
grid->addMultiCellWidget( m_progressWidget, 1, 1, 0, 1 );
- m_dirSizeJob = new K3bDirSizeJob( this );
- connect( m_dirSizeJob, SIGNAL(finished(bool)),
- this, SLOT(slotDirSizeDone(bool)) );
+ m_dirSizeJob = new K3bDirSizeJob( TQT_TQOBJECT(this) );
+ connect( m_dirSizeJob, TQT_SIGNAL(finished(bool)),
+ this, TQT_SLOT(slotDirSizeDone(bool)) );
// try to start with a reasonable size
- resize( (int)( fontMetrics().width( caption() ) * 1.5 ), sizeHint().height() );
+ resize( (int)( fontMetrics().width( caption() ) * 1.5 ), tqsizeHint().height() );
}
@@ -108,7 +108,7 @@ K3bDataUrlAddingDialog::~K3bDataUrlAddingDialog()
int K3bDataUrlAddingDialog::addUrls( const KURL::List& urls,
K3bDirItem* dir,
- QWidget* parent )
+ TQWidget* tqparent )
{
if( urls.isEmpty() )
return 0;
@@ -120,7 +120,7 @@ int K3bDataUrlAddingDialog::addUrls( const KURL::List& urls,
if( urls.count() == 1 ) {
K3bIso9660 isoF( urls.first().path() );
if( isoF.open() ) {
- if( KMessageBox::warningYesNo( parent,
+ if( KMessageBox::warningYesNo( tqparent,
i18n("<p>The file you are about to add to the project is an ISO9660 image. As such "
"it can be burned to a medium directly since it already contains a file "
"system.<br>"
@@ -138,13 +138,13 @@ int K3bDataUrlAddingDialog::addUrls( const KURL::List& urls,
}
}
- K3bDataUrlAddingDialog dlg( dir->doc(), parent );
+ K3bDataUrlAddingDialog dlg( dir->doc(), tqparent );
dlg.m_urls = urls;
for( KURL::List::ConstIterator it = urls.begin(); it != urls.end(); ++it )
- dlg.m_urlQueue.append( qMakePair( K3b::convertToLocalUrl(*it), dir ) );
+ dlg.m_urlQueue.append( tqMakePair( K3b::convertToLocalUrl(*it), dir ) );
dlg.slotAddUrls();
- int ret = QDialog::Accepted;
+ int ret = TQDialog::Accepted;
if( !dlg.m_urlQueue.isEmpty() ) {
dlg.m_dirSizeJob->setUrls( urls );
dlg.m_dirSizeJob->setFollowSymlinks( dir->doc()->isoOptions().followSymbolicLinks() );
@@ -156,77 +156,77 @@ int K3bDataUrlAddingDialog::addUrls( const KURL::List& urls,
dlg.m_dirSizeJob->cancel();
K3bSignalWaiter::waitForJob( dlg.m_dirSizeJob );
- QString message = dlg.resultMessage();
+ TQString message = dlg.resultMessage();
if( !message.isEmpty() )
- KMessageBox::detailedSorry( parent, i18n("Problems while adding files to the project."), message );
+ KMessageBox::detailedSorry( tqparent, i18n("Problems while adding files to the project."), message );
return ret;
}
-QString K3bDataUrlAddingDialog::resultMessage() const
+TQString K3bDataUrlAddingDialog::resultMessage() const
{
- QString message;
+ TQString message;
if( !m_unreadableFiles.isEmpty() )
- message += QString("<p><b>%1:</b><br>%2")
- .arg( i18n("Insufficient permissions to read the following files") )
- .arg( m_unreadableFiles.join( "<br>" ) );
+ message += TQString("<p><b>%1:</b><br>%2")
+ .tqarg( i18n("Insufficient permissions to read the following files") )
+ .tqarg( m_unreadableFiles.join( "<br>" ) );
if( !m_notFoundFiles.isEmpty() )
- message += QString("<p><b>%1:</b><br>%2")
- .arg( i18n("Unable to find the following files") )
- .arg( m_notFoundFiles.join( "<br>" ) );
+ message += TQString("<p><b>%1:</b><br>%2")
+ .tqarg( i18n("Unable to find the following files") )
+ .tqarg( m_notFoundFiles.join( "<br>" ) );
if( !m_nonLocalFiles.isEmpty() )
- message += QString("<p><b>%1:</b><br>%2")
- .arg( i18n("No non-local files supported") )
- .arg( m_unreadableFiles.join( "<br>" ) );
+ message += TQString("<p><b>%1:</b><br>%2")
+ .tqarg( i18n("No non-local files supported") )
+ .tqarg( m_unreadableFiles.join( "<br>" ) );
if( !m_tooBigFiles.isEmpty() )
- message += QString("<p><b>%1:</b><br>%2")
- .arg( i18n("It is not possible to add files bigger than %1").arg(KIO::convertSize(0xFFFFFFFF)) )
- .arg( m_tooBigFiles.join( "<br>" ) );
+ message += TQString("<p><b>%1:</b><br>%2")
+ .tqarg( i18n("It is not possible to add files bigger than %1").tqarg(KIO::convertSize(0xFFFFFFFF)) )
+ .tqarg( m_tooBigFiles.join( "<br>" ) );
if( !m_mkisofsLimitationRenamedFiles.isEmpty() )
- message += QString("<p><b>%1:</b><br>%2")
- .arg( i18n("Some filenames had to be modified due to limitations in mkisofs") )
- .arg( m_mkisofsLimitationRenamedFiles.join( "<br>" ) );
+ message += TQString("<p><b>%1:</b><br>%2")
+ .tqarg( i18n("Some filenames had to be modified due to limitations in mkisofs") )
+ .tqarg( m_mkisofsLimitationRenamedFiles.join( "<br>" ) );
if( !m_invalidFilenameEncodingFiles.isEmpty() )
- message += QString("<p><b>%1:</b><br>%2")
- .arg( i18n("The following filenames have an invalid encoding. You may fix this "
+ message += TQString("<p><b>%1:</b><br>%2")
+ .tqarg( i18n("The following filenames have an invalid encoding. You may fix this "
"with the convmv tool") )
- .arg( m_invalidFilenameEncodingFiles.join( "<br>" ) );
+ .tqarg( m_invalidFilenameEncodingFiles.join( "<br>" ) );
return message;
}
-int K3bDataUrlAddingDialog::moveItems( const QValueList<K3bDataItem*>& items,
+int K3bDataUrlAddingDialog::moveItems( const TQValueList<K3bDataItem*>& items,
K3bDirItem* dir,
- QWidget* parent )
+ TQWidget* tqparent )
{
- return copyMoveItems( items, dir, parent, false );
+ return copyMoveItems( items, dir, tqparent, false );
}
-int K3bDataUrlAddingDialog::copyItems( const QValueList<K3bDataItem*>& items,
+int K3bDataUrlAddingDialog::copyItems( const TQValueList<K3bDataItem*>& items,
K3bDirItem* dir,
- QWidget* parent )
+ TQWidget* tqparent )
{
- return copyMoveItems( items, dir, parent, true );
+ return copyMoveItems( items, dir, tqparent, true );
}
-int K3bDataUrlAddingDialog::copyMoveItems( const QValueList<K3bDataItem*>& items,
+int K3bDataUrlAddingDialog::copyMoveItems( const TQValueList<K3bDataItem*>& items,
K3bDirItem* dir,
- QWidget* parent,
+ TQWidget* tqparent,
bool copy )
{
if( items.isEmpty() )
return 0;
- K3bDataUrlAddingDialog dlg( dir->doc(), parent );
- dlg.m_infoLabel->setText( i18n("Moving files to project \"%1\"...").arg(dir->doc()->URL().fileName()) );
+ K3bDataUrlAddingDialog dlg( dir->doc(), tqparent );
+ dlg.m_infoLabel->setText( i18n("Moving files to project \"%1\"...").tqarg(dir->doc()->URL().fileName()) );
dlg.m_copyItems = copy;
- for( QValueList<K3bDataItem*>::const_iterator it = items.begin(); it != items.end(); ++it ) {
- dlg.m_items.append( qMakePair( *it, dir ) );
+ for( TQValueList<K3bDataItem*>::const_iterator it = items.begin(); it != items.end(); ++it ) {
+ dlg.m_items.append( tqMakePair( *it, dir ) );
++dlg.m_totalFiles;
if( (*it)->isDir() ) {
dlg.m_totalFiles += static_cast<K3bDirItem*>( *it )->numFiles();
@@ -235,7 +235,7 @@ int K3bDataUrlAddingDialog::copyMoveItems( const QValueList<K3bDataItem*>& items
}
dlg.slotCopyMoveItems();
- int ret = QDialog::Accepted;
+ int ret = TQDialog::Accepted;
if( !dlg.m_items.isEmpty() ) {
dlg.m_progressWidget->setTotalSteps( dlg.m_totalFiles );
ret = dlg.exec();
@@ -264,13 +264,13 @@ void K3bDataUrlAddingDialog::slotAddUrls()
m_urlQueue.remove( m_urlQueue.begin() );
//
// HINT:
- // we only use QFileInfo::absFilePath() and QFileInfo::isHidden()
- // both do not cause QFileInfo to stat, thus no speed improvement
- // can come from removing QFileInfo usage here.
+ // we only use TQFileInfo::absFilePath() and TQFileInfo::isHidden()
+ // both do not cause TQFileInfo to stat, thus no speed improvement
+ // can come from removing TQFileInfo usage here.
//
- QFileInfo info(url.path());
- QString absFilePath( info.absFilePath() );
- QString resolved( absFilePath );
+ TQFileInfo info(url.path());
+ TQString absFilePath( info.absFilePath() );
+ TQString resolved( absFilePath );
bool valid = true;
k3b_struct_stat statBuf, resolvedStatBuf;
@@ -283,9 +283,9 @@ void K3bDataUrlAddingDialog::slotAddUrls()
#if 0
m_infoLabel->setText( url.path() );
if( m_totalFiles == 0 )
- m_counterLabel->setText( QString("(%1)").arg(m_filesHandled) );
+ m_counterLabel->setText( TQString("(%1)").tqarg(m_filesHandled) );
else
- m_counterLabel->setText( QString("(%1/%2)").arg(m_filesHandled).arg(m_totalFiles) );
+ m_counterLabel->setText( TQString("(%1/%2)").tqarg(m_filesHandled).tqarg(m_totalFiles) );
#endif
//
@@ -297,12 +297,12 @@ void K3bDataUrlAddingDialog::slotAddUrls()
m_nonLocalFiles.append( url.path() );
}
- else if( k3b_lstat( QFile::encodeName(absFilePath), &statBuf ) != 0 ) {
+ else if( k3b_lstat( TQFile::encodeName(absFilePath), &statBuf ) != 0 ) {
valid = false;
m_notFoundFiles.append( url.path() );
}
- else if( !m_encodingConverter->encodedLocally( QFile::encodeName( url.path() ) ) ) {
+ else if( !m_encodingConverter->encodedLocally( TQFile::encodeName( url.path() ) ) ) {
valid = false;
m_invalidFilenameEncodingFiles.append( url.path() );
}
@@ -316,12 +316,12 @@ void K3bDataUrlAddingDialog::slotAddUrls()
// but we need to know if the symlink points to a directory
if( isSymLink ) {
resolved = K3b::resolveLink( absFilePath );
- k3b_stat( QFile::encodeName(resolved), &resolvedStatBuf );
+ k3b_stat( TQFile::encodeName(resolved), &resolvedStatBuf );
isDir = S_ISDIR(resolvedStatBuf.st_mode);
}
else {
- if( ::access( QFile::encodeName( absFilePath ), R_OK ) != 0 ) {
+ if( ::access( TQFile::encodeName( absFilePath ), R_OK ) != 0 ) {
valid = false;
m_unreadableFiles.append( url.path() );
}
@@ -362,7 +362,7 @@ void K3bDataUrlAddingDialog::slotAddUrls()
// 2. Handle the url
//
- QString newName = url.fileName();
+ TQString newName = url.fileName();
// filenames cannot end in backslashes (mkisofs problem. See comments in k3bisoimager.cpp (escapeGraftPoint()))
bool bsAtEnd = false;
@@ -384,7 +384,7 @@ void K3bDataUrlAddingDialog::slotAddUrls()
// and if so handle it properly
//
if( valid ) {
- if( K3bDataItem* oldItem = dir->find( newName ) ) {
+ if( K3bDataItem* oldItem = dir->tqfind( newName ) ) {
//
// reuse an existing dir
//
@@ -425,32 +425,32 @@ void K3bDataUrlAddingDialog::slotAddUrls()
switch( K3bMultiChoiceDialog::choose( i18n("File already exists"),
i18n("<p>File <em>%1</em> already exists in "
"project folder <em>%2</em>.")
- .arg(newName)
- .arg('/' + dir->k3bPath()),
- QMessageBox::Warning,
+ .tqarg(newName)
+ .tqarg('/' + dir->k3bPath()),
+ TQMessageBox::Warning,
this,
0,
6,
KGuiItem( i18n("Replace"),
- QString::null,
+ TQString(),
i18n("Replace the existing file") ),
KGuiItem( i18n("Replace All"),
- QString::null,
+ TQString(),
i18n("Always replace existing files") ),
KGuiItem( i18n("Ignore"),
- QString::null,
+ TQString(),
i18n("Keep the existing file") ),
KGuiItem( i18n("Ignore All"),
- QString::null,
+ TQString(),
i18n("Always keep the existing file") ),
KGuiItem( i18n("Rename"),
- QString::null,
+ TQString(),
i18n("Rename the new file") ),
KStdGuiItem::cancel() ) ) {
case 2: // replace all
m_bExistingItemsReplaceAll = true;
// fallthrough
- case 1: // replace
+ case 1: // tqreplace
// if we replace an item from an old session the K3bFileItem constructor takes care
// of replacing the item
if( !oldItem->isFromOldSession() )
@@ -493,9 +493,9 @@ void K3bDataUrlAddingDialog::slotAddUrls()
"K3b project cannot be resolved."
"<p><b>If you do not intend to enable the option <em>follow symbolic links</em> you may safely "
"ignore this warning and choose to add the link to the project.</b>")
- .arg(absFilePath)
- .arg(resolved ),
- QMessageBox::Warning,
+ .tqarg(absFilePath)
+ .tqarg(resolved ),
+ TQMessageBox::Warning,
this,
0,
5,
@@ -558,17 +558,17 @@ void K3bDataUrlAddingDialog::slotAddUrls()
newDirItem->setLocalPath( url.path() ); // HACK: see k3bdiritem.h
}
- QDir newDir( absFilePath );
- int dirFilter = QDir::All|QDir::Hidden|QDir::System;
+ TQDir newDir( absFilePath );
+ int dirFilter = TQDir::All|TQDir::Hidden|TQDir::System;
- QStringList dlist = newDir.entryList( dirFilter );
- const QString& dot = KGlobal::staticQString( "." );
- const QString& dotdot = KGlobal::staticQString( ".." );
+ TQStringList dlist = newDir.entryList( dirFilter );
+ const TQString& dot = KGlobal::staticQString( "." );
+ const TQString& dotdot = KGlobal::staticQString( ".." );
dlist.remove( dot );
dlist.remove( dotdot );
- for( QStringList::Iterator it = dlist.begin(); it != dlist.end(); ++it ) {
- m_urlQueue.append( qMakePair( KURL::fromPathOrURL(absFilePath + '/' + *it), newDirItem ) );
+ for( TQStringList::Iterator it = dlist.begin(); it != dlist.end(); ++it ) {
+ m_urlQueue.append( tqMakePair( KURL::fromPathOrURL(absFilePath + '/' + *it), newDirItem ) );
}
}
else {
@@ -583,7 +583,7 @@ void K3bDataUrlAddingDialog::slotAddUrls()
}
else {
updateProgress();
- QTimer::singleShot( 0, this, SLOT(slotAddUrls()) );
+ TQTimer::singleShot( 0, this, TQT_SLOT(slotAddUrls()) );
}
}
@@ -603,13 +603,13 @@ void K3bDataUrlAddingDialog::slotCopyMoveItems()
++m_filesHandled;
m_infoLabel->setText( item->k3bPath() );
if( m_totalFiles == 0 )
- m_counterLabel->setText( QString("(%1)").arg(m_filesHandled) );
+ m_counterLabel->setText( TQString("(%1)").tqarg(m_filesHandled) );
else
- m_counterLabel->setText( QString("(%1/%2)").arg(m_filesHandled).arg(m_totalFiles) );
+ m_counterLabel->setText( TQString("(%1/%2)").tqarg(m_filesHandled).tqarg(m_totalFiles) );
- if( dir == item->parent() ) {
- kdDebug() << "(K3bDataUrlAddingDialog) trying to move an item into its own parent dir." << endl;
+ if( dir == item->tqparent() ) {
+ kdDebug() << "(K3bDataUrlAddingDialog) trying to move an item into its own tqparent dir." << endl;
}
else if( dir == item ) {
kdDebug() << "(K3bDataUrlAddingDialog) trying to move an item into itselft." << endl;
@@ -618,14 +618,14 @@ void K3bDataUrlAddingDialog::slotCopyMoveItems()
//
// Let's see if an item with that name alredy exists
//
- if( K3bDataItem* oldItem = dir->find( item->k3bName() ) ) {
+ if( K3bDataItem* oldItem = dir->tqfind( item->k3bName() ) ) {
//
// reuse an existing dir: move all child items into the old dir
//
if( oldItem->isDir() && item->isDir() ) {
- const QPtrList<K3bDataItem>& cl = dynamic_cast<K3bDirItem*>( item )->children();
- for( QPtrListIterator<K3bDataItem> it( cl ); *it; ++it )
- m_items.append( qMakePair( *it, dynamic_cast<K3bDirItem*>( oldItem ) ) );
+ const TQPtrList<K3bDataItem>& cl = dynamic_cast<K3bDirItem*>( item )->tqchildren();
+ for( TQPtrListIterator<K3bDataItem> it( cl ); *it; ++it )
+ m_items.append( tqMakePair( *it, dynamic_cast<K3bDirItem*>( oldItem ) ) );
// FIXME: we need to remove the old dir item
}
@@ -636,7 +636,7 @@ void K3bDataUrlAddingDialog::slotCopyMoveItems()
//
else if( oldItem->isFromOldSession() &&
item->isDir() != oldItem->isDir() ) {
- QString newName;
+ TQString newName;
if( getNewName( newName, dir, newName ) ) {
if( m_copyItems )
item = item->copy();
@@ -661,32 +661,32 @@ void K3bDataUrlAddingDialog::slotCopyMoveItems()
switch( K3bMultiChoiceDialog::choose( i18n("File already exists"),
i18n("<p>File <em>%1</em> already exists in "
"project folder <em>%2</em>.")
- .arg( item->k3bName() )
- .arg("/" + dir->k3bPath()),
- QMessageBox::Warning,
+ .tqarg( item->k3bName() )
+ .tqarg("/" + dir->k3bPath()),
+ TQMessageBox::Warning,
this,
0,
6,
KGuiItem( i18n("Replace"),
- QString::null,
+ TQString(),
i18n("Replace the existing file") ),
KGuiItem( i18n("Replace All"),
- QString::null,
+ TQString(),
i18n("Always replace existing files") ),
KGuiItem( i18n("Ignore"),
- QString::null,
+ TQString(),
i18n("Keep the existing file") ),
KGuiItem( i18n("Ignore All"),
- QString::null,
+ TQString(),
i18n("Always keep the existing file") ),
KGuiItem( i18n("Rename"),
- QString::null,
+ TQString(),
i18n("Rename the new file") ),
KStdGuiItem::cancel() ) ) {
case 2: // replace all
m_bExistingItemsReplaceAll = true;
// fallthrough
- case 1: // replace
+ case 1: // tqreplace
//
// if we replace an item from an old session K3bDirItem::addDataItem takes care
// of replacing the item
@@ -704,7 +704,7 @@ void K3bDataUrlAddingDialog::slotCopyMoveItems()
// do nothing
break;
case 5: {// rename
- QString newName;
+ TQString newName;
if( getNewName( newName, dir, newName ) ) {
if( m_copyItems )
item = item->copy();
@@ -736,22 +736,22 @@ void K3bDataUrlAddingDialog::slotCopyMoveItems()
}
else {
updateProgress();
- QTimer::singleShot( 0, this, SLOT(slotCopyMoveItems()) );
+ TQTimer::singleShot( 0, this, TQT_SLOT(slotCopyMoveItems()) );
}
}
-bool K3bDataUrlAddingDialog::getNewName( const QString& oldName, K3bDirItem* dir, QString& newName )
+bool K3bDataUrlAddingDialog::getNewName( const TQString& oldName, K3bDirItem* dir, TQString& newName )
{
bool ok = true;
newName = oldName;
- QValidator* validator = K3bValidators::iso9660Validator( false, this );
+ TQValidator* validator = K3bValidators::iso9660Validator( false, TQT_TQOBJECT(this) );
do {
newName = KInputDialog::getText( i18n("Enter New Filename"),
i18n("A file with that name already exists. Please enter a new name:"),
newName, &ok, this, "renamedialog", validator );
- } while( ok && dir->find( newName ) );
+ } while( ok && dir->tqfind( newName ) );
delete validator;
@@ -763,7 +763,7 @@ bool K3bDataUrlAddingDialog::addHiddenFiles()
{
if( m_iAddHiddenFiles == 0 ) {
// FIXME: the isVisible() stuff makes the static addUrls method not return (same below)
- if( KMessageBox::questionYesNo( /*isVisible() ? */this/* : parentWidget()*/,
+ if( KMessageBox::questionYesNo( /*isVisible() ? */this/* : tqparentWidget()*/,
i18n("Do you also want to add hidden files?"),
i18n("Hidden Files"), i18n("Add"), i18n("Do Not Add") ) == KMessageBox::Yes )
m_iAddHiddenFiles = 1;
@@ -778,7 +778,7 @@ bool K3bDataUrlAddingDialog::addHiddenFiles()
bool K3bDataUrlAddingDialog::addSystemFiles()
{
if( m_iAddSystemFiles == 0 ) {
- if( KMessageBox::questionYesNo( /*isVisible() ? */this/* : parentWidget()*/,
+ if( KMessageBox::questionYesNo( /*isVisible() ? */this/* : tqparentWidget()*/,
i18n("Do you also want to add system files "
"(FIFOs, sockets, device files, and broken symlinks)?"),
i18n("System Files"), i18n("Add"), i18n("Do Not Add") ) == KMessageBox::Yes )
diff --git a/src/projects/k3bdataurladdingdialog.h b/src/projects/k3bdataurladdingdialog.h
index cb7c0ac..ca6b4b2 100644
--- a/src/projects/k3bdataurladdingdialog.h
+++ b/src/projects/k3bdataurladdingdialog.h
@@ -18,12 +18,12 @@
#include <kdialogbase.h>
#include <kurl.h>
-#include <qstringlist.h>
-#include <qpair.h>
-#include <qdir.h>
+#include <tqstringlist.h>
+#include <tqpair.h>
+#include <tqdir.h>
class KProgress;
-class QLabel;
+class TQLabel;
class K3bDataItem;
class K3bDirItem;
class K3bEncodingConverter;
@@ -34,24 +34,25 @@ class K3bDataDoc;
class K3bDataUrlAddingDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
~K3bDataUrlAddingDialog();
/**
- * \return \see QDialog::exec()
+ * \return \see TQDialog::exec()
*/
static int addUrls( const KURL::List& urls, K3bDirItem* dir = 0,
- QWidget* parent = 0 );
+ TQWidget* tqparent = 0 );
- static int moveItems( const QValueList<K3bDataItem*>& items, K3bDirItem* dir,
- QWidget* parent = 0 );
+ static int moveItems( const TQValueList<K3bDataItem*>& items, K3bDirItem* dir,
+ TQWidget* tqparent = 0 );
- static int copyItems( const QValueList<K3bDataItem*>& items, K3bDirItem* dir,
- QWidget* parent = 0 );
+ static int copyItems( const TQValueList<K3bDataItem*>& items, K3bDirItem* dir,
+ TQWidget* tqparent = 0 );
- static int copyMoveItems( const QValueList<K3bDataItem*>& items, K3bDirItem* dir,
- QWidget* parent, bool copy );
+ static int copyMoveItems( const TQValueList<K3bDataItem*>& items, K3bDirItem* dir,
+ TQWidget* tqparent, bool copy );
private slots:
void slotAddUrls();
@@ -61,26 +62,26 @@ class K3bDataUrlAddingDialog : public KDialogBase
void updateProgress();
private:
- K3bDataUrlAddingDialog( K3bDataDoc* doc, QWidget* parent = 0, const char* name = 0 );
+ K3bDataUrlAddingDialog( K3bDataDoc* doc, TQWidget* tqparent = 0, const char* name = 0 );
- bool getNewName( const QString& oldName, K3bDirItem* dir, QString& newName );
+ bool getNewName( const TQString& oldName, K3bDirItem* dir, TQString& newName );
bool addHiddenFiles();
bool addSystemFiles();
- QString resultMessage() const;
+ TQString resultMessage() const;
KProgress* m_progressWidget;
- QLabel* m_infoLabel;
- QLabel* m_counterLabel;
+ TQLabel* m_infoLabel;
+ TQLabel* m_counterLabel;
K3bEncodingConverter* m_encodingConverter;
KURL::List m_urls;
- QValueList< QPair<KURL, K3bDirItem*> > m_urlQueue;
+ TQValueList< TQPair<KURL, K3bDirItem*> > m_urlQueue;
- QValueList< QPair<K3bDataItem*, K3bDirItem*> > m_items;
+ TQValueList< TQPair<K3bDataItem*, K3bDirItem*> > m_items;
- QValueList<KURL> m_dirSizeQueue;
+ TQValueList<KURL> m_dirSizeQueue;
bool m_bExistingItemsReplaceAll;
bool m_bExistingItemsIgnoreAll;
@@ -89,12 +90,12 @@ class K3bDataUrlAddingDialog : public KDialogBase
int m_iAddHiddenFiles;
int m_iAddSystemFiles;
- QStringList m_unreadableFiles;
- QStringList m_notFoundFiles;
- QStringList m_nonLocalFiles;
- QStringList m_tooBigFiles;
- QStringList m_mkisofsLimitationRenamedFiles;
- QStringList m_invalidFilenameEncodingFiles;
+ TQStringList m_unreadableFiles;
+ TQStringList m_notFoundFiles;
+ TQStringList m_nonLocalFiles;
+ TQStringList m_tooBigFiles;
+ TQStringList m_mkisofsLimitationRenamedFiles;
+ TQStringList m_invalidFilenameEncodingFiles;
bool m_bCanceled;
diff --git a/src/projects/k3bdataview.cpp b/src/projects/k3bdataview.cpp
index 9539b5c..f4d9749 100644
--- a/src/projects/k3bdataview.cpp
+++ b/src/projects/k3bdataview.cpp
@@ -41,47 +41,47 @@
#include <kio/job.h>
#include <kdialogbase.h>
-#include <qpixmap.h>
-#include <qsplitter.h>
-#include <qlayout.h>
-#include <qdragobject.h>
-#include <qheader.h>
-#include <qptrlist.h>
-#include <qlineedit.h>
+#include <tqpixmap.h>
+#include <tqsplitter.h>
+#include <tqlayout.h>
+#include <tqdragobject.h>
+#include <tqheader.h>
+#include <tqptrlist.h>
+#include <tqlineedit.h>
#include <assert.h>
#include <kdebug.h>
-K3bDataView::K3bDataView(K3bDataDoc* doc, QWidget *parent, const char *name )
- : K3bView(doc, parent,name)
+K3bDataView::K3bDataView(K3bDataDoc* doc, TQWidget *tqparent, const char *name )
+ : K3bView(doc, tqparent,name)
{
m_doc = doc;
// --- setup GUI ---------------------------------------------------
- QSplitter* mainSplitter = new QSplitter( this );
+ TQSplitter* mainSplitter = new TQSplitter( this );
m_dataDirTree = new K3bDataDirTreeView( this, doc, mainSplitter );
m_dataFileView = new K3bDataFileView( this, m_dataDirTree, doc, mainSplitter );
m_dataDirTree->setFileView( m_dataFileView );
setMainWidget( mainSplitter );
- connect( m_dataFileView, SIGNAL(dirSelected(K3bDirItem*)),
- m_dataDirTree, SLOT(setCurrentDir(K3bDirItem*)) );
- connect( m_doc, SIGNAL(changed()), this, SLOT(slotDocChanged()) );
+ connect( m_dataFileView, TQT_SIGNAL(dirSelected(K3bDirItem*)),
+ m_dataDirTree, TQT_SLOT(setCurrentDir(K3bDirItem*)) );
+ connect( m_doc, TQT_SIGNAL(changed()), TQT_TQOBJECT(this), TQT_SLOT(slotDocChanged()) );
m_dataDirTree->checkForNewItems();
m_dataFileView->checkForNewItems();
// the data actions
- KAction* actionImportSession = new KAction(i18n("&Import Session..."), "gear", 0, this, SLOT(importSession()),
+ KAction* actionImportSession = new KAction(i18n("&Import Session..."), "gear", 0, TQT_TQOBJECT(this), TQT_SLOT(importSession()),
actionCollection(), "project_data_import_session" );
- KAction* actionClearSession = new KAction(i18n("&Clear Imported Session"), "gear", 0, this,
- SLOT(clearImportedSession()), actionCollection(),
+ KAction* actionClearSession = new KAction(i18n("&Clear Imported Session"), "gear", 0, TQT_TQOBJECT(this),
+ TQT_SLOT(clearImportedSession()), actionCollection(),
"project_data_clear_imported_session" );
- KAction* actionEditBootImages = new KAction(i18n("&Edit Boot Images..."), "cdtrack", 0, this,
- SLOT(editBootImages()), actionCollection(),
+ KAction* actionEditBootImages = new KAction(i18n("&Edit Boot Images..."), "cdtrack", 0, TQT_TQOBJECT(this),
+ TQT_SLOT(editBootImages()), actionCollection(),
"project_data_edit_boot_images" );
actionImportSession->setToolTip( i18n("Import a previously burned session into the current project") );
@@ -92,21 +92,21 @@ K3bDataView::K3bDataView(K3bDataDoc* doc, QWidget *parent, const char *name )
toolBox()->addButton( actionClearSession );
toolBox()->addButton( actionEditBootImages );
toolBox()->addSeparator();
- toolBox()->addButton( m_dataFileView->actionCollection()->action("parent_dir") );
+ toolBox()->addButton( m_dataFileView->actionCollection()->action("tqparent_dir") );
toolBox()->addSeparator();
addPluginButtons( K3bProjectPlugin::DATA_CD );
toolBox()->addStretch();
- m_volumeIDEdit = new QLineEdit( doc->isoOptions().volumeID(), toolBox() );
- m_volumeIDEdit->setValidator( new K3bLatin1Validator( m_volumeIDEdit ) );
+ m_volumeIDEdit = new TQLineEdit( doc->isoOptions().volumeID(), toolBox() );
+ m_volumeIDEdit->setValidator( new K3bLatin1Validator( TQT_TQOBJECT(m_volumeIDEdit) ) );
toolBox()->addLabel( i18n("Volume Name:") );
toolBox()->addSpacing();
toolBox()->addWidget( m_volumeIDEdit );
- connect( m_volumeIDEdit, SIGNAL(textChanged(const QString&)),
+ connect( m_volumeIDEdit, TQT_SIGNAL(textChanged(const TQString&)),
m_doc,
- SLOT(setVolumeID(const QString&)) );
+ TQT_SLOT(setVolumeID(const TQString&)) );
// this is just for testing (or not?)
// most likely every project type will have it's rc file in the future
@@ -156,9 +156,9 @@ void K3bDataView::editBootImages()
}
-K3bProjectBurnDialog* K3bDataView::newBurnDialog( QWidget* parent, const char* name )
+K3bProjectBurnDialog* K3bDataView::newBurnDialog( TQWidget* tqparent, const char* name )
{
- return new K3bDataBurnDialog( m_doc, parent, name, true );
+ return new K3bDataBurnDialog( m_doc, tqparent, name, true );
}
@@ -170,7 +170,7 @@ void K3bDataView::slotBurn()
if( m_doc->sessionImported() && m_doc->burningSize() == 0 ||
m_doc->root()->numFiles() == 0 ) {
KMessageBox::information( this, i18n("Please add files to your project first."),
- i18n("No Data to Burn"), QString::null, false );
+ i18n("No Data to Burn"), TQString(), false );
}
else {
K3bProjectBurnDialog* dlg = newBurnDialog( this );
diff --git a/src/projects/k3bdataview.h b/src/projects/k3bdataview.h
index bb9154e..ea2a6a1 100644
--- a/src/projects/k3bdataview.h
+++ b/src/projects/k3bdataview.h
@@ -25,7 +25,7 @@ class K3bFileItem;
class K3bDirItem;
class K3bDataDirTreeView;
class K3bDataFileView;
-class QLineEdit;
+class TQLineEdit;
namespace KIO {
@@ -43,9 +43,10 @@ namespace K3bDevice {
class K3bDataView : public K3bView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDataView(K3bDataDoc* doc, QWidget *parent=0, const char *name=0);
+ K3bDataView(K3bDataDoc* doc, TQWidget *tqparent=0, const char *name=0);
virtual ~K3bDataView();
K3bDirItem* currentDir() const;
@@ -63,9 +64,9 @@ class K3bDataView : public K3bView
protected:
K3bDataDirTreeView* m_dataDirTree;
K3bDataFileView* m_dataFileView;
- QLineEdit* m_volumeIDEdit;
+ TQLineEdit* m_volumeIDEdit;
- virtual K3bProjectBurnDialog* newBurnDialog( QWidget* parent = 0, const char* name = 0 );
+ virtual K3bProjectBurnDialog* newBurnDialog( TQWidget* tqparent = 0, const char* name = 0 );
private:
K3bDataDoc* m_doc;
diff --git a/src/projects/k3bdataviewitem.cpp b/src/projects/k3bdataviewitem.cpp
index 78c044d..f200e55 100644
--- a/src/projects/k3bdataviewitem.cpp
+++ b/src/projects/k3bdataviewitem.cpp
@@ -30,20 +30,20 @@
#include <kpixmapeffect.h>
#include <kpixmap.h>
-#include <qpainter.h>
-#include <qpalette.h>
-#include <qfileinfo.h>
+#include <tqpainter.h>
+#include <tqpalette.h>
+#include <tqfileinfo.h>
-K3bDataViewItem::K3bDataViewItem( K3bDataItem* item, QListView* parent )
- : K3bListViewItem( parent ),
+K3bDataViewItem::K3bDataViewItem( K3bDataItem* item, TQListView* tqparent )
+ : K3bListViewItem( tqparent ),
m_dataItem(item)
{
init();
}
-K3bDataViewItem::K3bDataViewItem( K3bDataItem* item, QListViewItem* parent )
- : K3bListViewItem( parent ),
+K3bDataViewItem::K3bDataViewItem( K3bDataItem* item, TQListViewItem* tqparent )
+ : K3bListViewItem( tqparent ),
m_dataItem(item)
{
init();
@@ -56,36 +56,36 @@ K3bDataViewItem::~K3bDataViewItem()
void K3bDataViewItem::init()
{
setEditor( 0, LINE );
- static QValidator* s_validator = K3bValidators::iso9660Validator();
+ static TQValidator* s_validator = K3bValidators::iso9660Validator();
setValidator( 0, s_validator );
}
-void K3bDataViewItem::paintCell( QPainter* p, const QColorGroup& cg, int column, int width, int align )
+void K3bDataViewItem::paintCell( TQPainter* p, const TQColorGroup& cg, int column, int width, int align )
{
- QColorGroup _cg = cg;
+ TQColorGroup _cg = cg;
if( !dataItem()->isRemoveable() && dataItem()->doc()->root() != dataItem() ) {
- _cg.setColor( QColorGroup::Text, listView()->palette().disabled().foreground() );
+ _cg.setColor( TQColorGroup::Text, listView()->tqpalette().disabled().foreground() );
}
if( column == 0 ) {
- QFontMetrics fm = p->fontMetrics();
+ TQFontMetrics fm = p->fontMetrics();
if( dataItem()->hideOnRockRidge() ) {
- int tw = QMAX( fm.width( "rr" ) + 2*listView()->itemMargin(), height() );
- p->fillRect( width-tw, 0, tw, height(), isSelected() ? _cg.highlight() : _cg.brush(QColorGroup::Base) );
+ int tw = TQMAX( fm.width( "rr" ) + 2*listView()->itemMargin(), height() );
+ p->fillRect( width-tw, 0, tw, height(), isSelected() ? _cg.highlight() : _cg.brush(TQColorGroup::Base) );
p->setPen( isSelected() ? _cg.highlightedText() : red );
p->drawEllipse( width-tw, 0, tw, height() );
- p->drawText( width-tw, 0, tw, height(), Qt::AlignCenter, "rr" );
+ p->drawText( width-tw, 0, tw, height(), TQt::AlignCenter, "rr" );
width -= tw;
}
if( dataItem()->hideOnJoliet() ) {
- int tw = QMAX( fm.width( "j" ) + 2*listView()->itemMargin(), height() );
- p->fillRect( width-tw, 0, tw, height(), isSelected() ? _cg.highlight() : _cg.brush(QColorGroup::Base) );
+ int tw = TQMAX( fm.width( "j" ) + 2*listView()->itemMargin(), height() );
+ p->fillRect( width-tw, 0, tw, height(), isSelected() ? _cg.highlight() : _cg.brush(TQColorGroup::Base) );
p->setPen( isSelected() ? _cg.highlightedText() : blue );
p->drawEllipse( width-tw, 0, tw, height() );
- p->drawText( width-tw, 0, tw, height(), Qt::AlignCenter, "j" );
+ p->drawText( width-tw, 0, tw, height(), TQt::AlignCenter, "j" );
width -= tw;
}
}
@@ -95,7 +95,7 @@ void K3bDataViewItem::paintCell( QPainter* p, const QColorGroup& cg, int column,
dataItem()->doc()->isoOptions().createRockRidge() &&
!dataItem()->isValid() ) {
// paint the link in red
- _cg.setColor( QColorGroup::Text, Qt::red );
+ _cg.setColor( TQColorGroup::Text, TQt::red );
}
}
}
@@ -104,7 +104,7 @@ void K3bDataViewItem::paintCell( QPainter* p, const QColorGroup& cg, int column,
}
-void K3bDataViewItem::setText( int col, const QString& text )
+void K3bDataViewItem::setText( int col, const TQString& text )
{
if( col == 0 && dataItem()->isRenameable() ) {
dataItem()->setK3bName( text );
@@ -113,37 +113,37 @@ void K3bDataViewItem::setText( int col, const QString& text )
}
-QString K3bDataViewItem::key( int col, bool a ) const
+TQString K3bDataViewItem::key( int col, bool a ) const
{
if( col == 2 ) {
// to have correct sorting we need to justify the size in bytes
// 100 TB should be enough for the next year... ;-)
if( a )
- return ( dataItem()->isDir() ? QString("0") : QString("1") )
- + QString::number( dataItem()->size() ).rightJustify( 16, '0' );
+ return ( dataItem()->isDir() ? TQString("0") : TQString("1") )
+ + TQString::number( dataItem()->size() ).rightJustify( 16, '0' );
else
- return ( dataItem()->isDir() ? QString("1") : QString("0") )
- + QString::number( dataItem()->size() ).rightJustify( 16, '0' );
+ return ( dataItem()->isDir() ? TQString("1") : TQString("0") )
+ + TQString::number( dataItem()->size() ).rightJustify( 16, '0' );
}
if( a )
- return ( dataItem()->isDir() ? QString("0") : QString("1") ) + text(col);
+ return ( dataItem()->isDir() ? TQString("0") : TQString("1") ) + text(col);
else
- return ( dataItem()->isDir() ? QString("1") : QString("0") ) + text(col);
+ return ( dataItem()->isDir() ? TQString("1") : TQString("0") ) + text(col);
}
-K3bDataDirViewItem::K3bDataDirViewItem( K3bDirItem* dir, QListView* parent )
- : K3bDataViewItem( dir, parent )
+K3bDataDirViewItem::K3bDataDirViewItem( K3bDirItem* dir, TQListView* tqparent )
+ : K3bDataViewItem( dir, tqparent )
{
m_dirItem = dir;
setPixmap( 0, dir->depth() > 7 ? SmallIcon( "folder_red" ) : SmallIcon( "folder" ) );
}
-K3bDataDirViewItem::K3bDataDirViewItem( K3bDirItem* dir, QListViewItem* parent )
- : K3bDataViewItem( dir, parent )
+K3bDataDirViewItem::K3bDataDirViewItem( K3bDirItem* dir, TQListViewItem* tqparent )
+ : K3bDataViewItem( dir, tqparent )
{
m_dirItem = dir;
setPixmap( 0, dir->depth() > 7 ? SmallIcon( "folder_red" ) : SmallIcon( "folder" ) );
@@ -161,7 +161,7 @@ void K3bDataDirViewItem::dragEntered()
}
-QString K3bDataDirViewItem::text( int index ) const
+TQString K3bDataDirViewItem::text( int index ) const
{
switch( index ) {
case 0:
@@ -182,22 +182,22 @@ void K3bDataDirViewItem::highlightIcon( bool b )
m_pixmap = *pixmap(0);
if( b )
- setPixmap( 0, KPixmapEffect::selectedPixmap( m_pixmap, listView()->colorGroup().highlight() ) );
+ setPixmap( 0, KPixmapEffect::selectedPixmap( m_pixmap, listView()->tqcolorGroup().highlight() ) );
else
setPixmap( 0, m_pixmap );
}
-K3bDataFileViewItem::K3bDataFileViewItem( K3bFileItem* file, QListView* parent )
- : K3bDataViewItem( file, parent )
+K3bDataFileViewItem::K3bDataFileViewItem( K3bFileItem* file, TQListView* tqparent )
+ : K3bDataViewItem( file, tqparent )
{
init( file );
}
-K3bDataFileViewItem::K3bDataFileViewItem( K3bFileItem* file, QListViewItem* parent )
- : K3bDataViewItem( file, parent )
+K3bDataFileViewItem::K3bDataFileViewItem( K3bFileItem* file, TQListViewItem* tqparent )
+ : K3bDataViewItem( file, tqparent )
{
init( file );
}
@@ -216,19 +216,19 @@ void K3bDataFileViewItem::init( K3bFileItem* file )
}
-QString K3bDataFileViewItem::text( int index ) const
+TQString K3bDataFileViewItem::text( int index ) const
{
switch( index ) {
case 0:
return m_fileItem->k3bName();
case 1:
{
- QString comment = m_pMimeType->comment( KURL::fromPathOrURL(m_fileItem->localPath()), true );
+ TQString comment = m_pMimeType->comment( KURL::fromPathOrURL(m_fileItem->localPath()), true );
if( comment.isEmpty() )
comment = m_pMimeType->name();
if( m_fileItem->isSymLink() )
- return i18n("Link to %1").arg(comment);
+ return i18n("Link to %1").tqarg(comment);
else
return comment;
}
@@ -238,15 +238,15 @@ QString K3bDataFileViewItem::text( int index ) const
return m_fileItem->localPath();
case 4: {
if( !m_fileItem->isSymLink() ) {
- return QString::null;
+ return TQString();
}
- QString s;
+ TQString s;
if ( m_fileItem->doc()->isoOptions().followSymbolicLinks() ) {
s = K3b::resolveLink( m_fileItem->localPath() );
}
else {
- s = QFileInfo( m_fileItem->localPath() ).readLink();
+ s = TQFileInfo( m_fileItem->localPath() ).readLink();
}
if( !m_fileItem->isValid() ) {
@@ -262,8 +262,8 @@ QString K3bDataFileViewItem::text( int index ) const
-K3bDataRootViewItem::K3bDataRootViewItem( K3bDataDoc* doc, QListView* parent )
- : K3bDataDirViewItem( doc->root(), parent )
+K3bDataRootViewItem::K3bDataRootViewItem( K3bDataDoc* doc, TQListView* tqparent )
+ : K3bDataDirViewItem( doc->root(), tqparent )
{
m_doc = doc;
setPixmap( 0, SmallIcon( "cdrom_unmount" ) );
@@ -277,7 +277,7 @@ K3bDataRootViewItem::~K3bDataRootViewItem()
}
-QString K3bDataRootViewItem::text( int index ) const
+TQString K3bDataRootViewItem::text( int index ) const
{
switch( index ) {
case 0:
@@ -288,7 +288,7 @@ QString K3bDataRootViewItem::text( int index ) const
}
-void K3bDataRootViewItem::setText( int col, const QString& text )
+void K3bDataRootViewItem::setText( int col, const TQString& text )
{
if( col == 0 )
m_doc->setVolumeID( text );
@@ -297,13 +297,13 @@ void K3bDataRootViewItem::setText( int col, const QString& text )
}
-K3bSpecialDataViewItem::K3bSpecialDataViewItem( K3bSpecialDataItem* item, QListView* parent )
- : K3bDataViewItem( item, parent )
+K3bSpecialDataViewItem::K3bSpecialDataViewItem( K3bSpecialDataItem* item, TQListView* tqparent )
+ : K3bDataViewItem( item, tqparent )
{
setPixmap( 0, SmallIcon("unknown") );
}
-QString K3bSpecialDataViewItem::text( int col ) const
+TQString K3bSpecialDataViewItem::text( int col ) const
{
switch( col ) {
case 0:
@@ -319,13 +319,13 @@ QString K3bSpecialDataViewItem::text( int col ) const
-K3bSessionImportViewItem::K3bSessionImportViewItem( K3bSessionImportItem* item, QListView* parent )
- : K3bDataViewItem( item, parent )
+K3bSessionImportViewItem::K3bSessionImportViewItem( K3bSessionImportItem* item, TQListView* tqparent )
+ : K3bDataViewItem( item, tqparent )
{
setPixmap( 0, SmallIcon("unknown") );
}
-QString K3bSessionImportViewItem::text( int col ) const
+TQString K3bSessionImportViewItem::text( int col ) const
{
switch( col ) {
case 0:
diff --git a/src/projects/k3bdataviewitem.h b/src/projects/k3bdataviewitem.h
index 60d68d2..ac95e98 100644
--- a/src/projects/k3bdataviewitem.h
+++ b/src/projects/k3bdataviewitem.h
@@ -26,28 +26,28 @@ class K3bDataDoc;
class K3bSpecialDataItem;
class K3bSessionImportItem;
-class QPainter;
-class QColorGroup;
+class TQPainter;
+class TQColorGroup;
class K3bDataViewItem : public K3bListViewItem
{
public:
- K3bDataViewItem( K3bDataItem*, QListView* parent );
- K3bDataViewItem( K3bDataItem*, QListViewItem* parent );
+ K3bDataViewItem( K3bDataItem*, TQListView* tqparent );
+ K3bDataViewItem( K3bDataItem*, TQListViewItem* tqparent );
virtual ~K3bDataViewItem();
virtual K3bDataItem* dataItem() const { return m_dataItem; }
- void setText( int col, const QString& text );
+ void setText( int col, const TQString& text );
/**
* reimplemented to have directories always sorted before files
*/
- QString key( int, bool ) const;
+ TQString key( int, bool ) const;
- virtual void paintCell( QPainter* p, const QColorGroup& cg, int column, int width, int align );
+ virtual void paintCell( TQPainter* p, const TQColorGroup& cg, int column, int width, int align );
private:
void init();
@@ -59,11 +59,11 @@ class K3bDataViewItem : public K3bListViewItem
class K3bDataDirViewItem : public K3bDataViewItem
{
public:
- K3bDataDirViewItem( K3bDirItem* dir, QListView* parent );
- K3bDataDirViewItem( K3bDirItem* dir, QListViewItem* parent );
+ K3bDataDirViewItem( K3bDirItem* dir, TQListView* tqparent );
+ K3bDataDirViewItem( K3bDirItem* dir, TQListViewItem* tqparent );
~K3bDataDirViewItem();
- virtual QString text( int ) const;
+ virtual TQString text( int ) const;
K3bDirItem* dirItem() const { return m_dirItem; }
@@ -74,18 +74,18 @@ class K3bDataDirViewItem : public K3bDataViewItem
private:
K3bDirItem* m_dirItem;
- QPixmap m_pixmap;
+ TQPixmap m_pixmap;
};
class K3bDataFileViewItem : public K3bDataViewItem
{
public:
- K3bDataFileViewItem( K3bFileItem*, QListView* parent );
- K3bDataFileViewItem( K3bFileItem*, QListViewItem* parent );
+ K3bDataFileViewItem( K3bFileItem*, TQListView* tqparent );
+ K3bDataFileViewItem( K3bFileItem*, TQListViewItem* tqparent );
~K3bDataFileViewItem() {}
- QString text( int ) const;
+ TQString text( int ) const;
K3bFileItem* fileItem() const { return m_fileItem; }
@@ -102,13 +102,13 @@ class K3bDataFileViewItem : public K3bDataViewItem
class K3bDataRootViewItem : public K3bDataDirViewItem
{
public:
- K3bDataRootViewItem( K3bDataDoc*, QListView* parent );
+ K3bDataRootViewItem( K3bDataDoc*, TQListView* tqparent );
~K3bDataRootViewItem();
- QString text( int ) const;
+ TQString text( int ) const;
- /** reimplemented from QListViewItem */
- void setText(int col, const QString& text );
+ /** reimplemented from TQListViewItem */
+ void setText(int col, const TQString& text );
private:
K3bDataDoc* m_doc;
@@ -118,18 +118,18 @@ class K3bDataRootViewItem : public K3bDataDirViewItem
class K3bSpecialDataViewItem : public K3bDataViewItem
{
public:
- K3bSpecialDataViewItem( K3bSpecialDataItem*, QListView* );
+ K3bSpecialDataViewItem( K3bSpecialDataItem*, TQListView* );
- QString text( int ) const;
+ TQString text( int ) const;
};
class K3bSessionImportViewItem : public K3bDataViewItem
{
public:
- K3bSessionImportViewItem( K3bSessionImportItem*, QListView* );
+ K3bSessionImportViewItem( K3bSessionImportItem*, TQListView* );
- QString text( int ) const;
+ TQString text( int ) const;
};
#endif
diff --git a/src/projects/k3bdatavolumedescwidget.cpp b/src/projects/k3bdatavolumedescwidget.cpp
index 1edbc7b..be443a5 100644
--- a/src/projects/k3bdatavolumedescwidget.cpp
+++ b/src/projects/k3bdatavolumedescwidget.cpp
@@ -18,18 +18,18 @@
#include "k3bisooptions.h"
#include <k3bvalidators.h>
-#include <qlineedit.h>
-#include <qspinbox.h>
-#include <qlabel.h>
-#include <qtoolbutton.h>
+#include <tqlineedit.h>
+#include <tqspinbox.h>
+#include <tqlabel.h>
+#include <tqtoolbutton.h>
-K3bDataVolumeDescWidget::K3bDataVolumeDescWidget( QWidget* parent, const char* name )
- : base_K3bDataVolumeDescWidget( parent, name )
+K3bDataVolumeDescWidget::K3bDataVolumeDescWidget( TQWidget* tqparent, const char* name )
+ : base_K3bDataVolumeDescWidget( tqparent, name )
{
// the maximal number of characters that can be inserted are set in the ui file!
- QValidator* isoValidator = new K3bLatin1Validator( this );
+ TQValidator* isoValidator = new K3bLatin1Validator( TQT_TQOBJECT(this) );
m_editVolumeName->setValidator( isoValidator );
m_editVolumeSetName->setValidator( isoValidator );
@@ -38,8 +38,8 @@ K3bDataVolumeDescWidget::K3bDataVolumeDescWidget( QWidget* parent, const char* n
m_editSystem->setValidator( isoValidator );
m_editApplication->setValidator( isoValidator );
- connect( m_spinVolumeSetSize, SIGNAL(valueChanged(int)),
- this, SLOT(slotVolumeSetSizeChanged(int)) );
+ connect( m_spinVolumeSetSize, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(slotVolumeSetSizeChanged(int)) );
// for now we hide the volume set size stuff since it's not working anymore in mkisofs 2.01a34
textLabel1->hide();
diff --git a/src/projects/k3bdatavolumedescwidget.h b/src/projects/k3bdatavolumedescwidget.h
index 8b4a388..27102e2 100644
--- a/src/projects/k3bdatavolumedescwidget.h
+++ b/src/projects/k3bdatavolumedescwidget.h
@@ -25,9 +25,10 @@ class K3bIsoOptions;
class K3bDataVolumeDescWidget : public base_K3bDataVolumeDescWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDataVolumeDescWidget( QWidget* parent = 0, const char* name = 0 );
+ K3bDataVolumeDescWidget( TQWidget* tqparent = 0, const char* name = 0 );
~K3bDataVolumeDescWidget();
void load( const K3bIsoOptions& );
diff --git a/src/projects/k3bdvdburndialog.cpp b/src/projects/k3bdvdburndialog.cpp
index 873afbf..4654bb9 100644
--- a/src/projects/k3bdvdburndialog.cpp
+++ b/src/projects/k3bdvdburndialog.cpp
@@ -33,30 +33,30 @@
#include <kio/global.h>
#include <kmessagebox.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qradiobutton.h>
-#include <qbuttongroup.h>
-#include <qspinbox.h>
-
-
-K3bDvdBurnDialog::K3bDvdBurnDialog( K3bDvdDoc* doc, QWidget *parent, const char *name, bool modal )
- : K3bProjectBurnDialog( doc, parent, name, modal, true ),
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqradiobutton.h>
+#include <tqbuttongroup.h>
+#include <tqspinbox.h>
+
+
+K3bDvdBurnDialog::K3bDvdBurnDialog( K3bDvdDoc* doc, TQWidget *tqparent, const char *name, bool modal )
+ : K3bProjectBurnDialog( doc, tqparent, name, modal, true ),
m_doc( doc )
{
prepareGui();
- setTitle( i18n("DVD Project"), i18n("Size: %1").arg( KIO::convertSize(doc->size()) ) );
+ setTitle( i18n("DVD Project"), i18n("Size: %1").tqarg( KIO::convertSize(doc->size()) ) );
// for now we just put the verify checkbox on the main page...
m_checkVerify = K3bStdGuiItems::verifyCheckBox( m_optionGroup );
m_optionGroupLayout->addWidget( m_checkVerify );
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
m_optionGroupLayout->addItem( spacer );
// create image settings tab
@@ -69,7 +69,7 @@ K3bDvdBurnDialog::K3bDvdBurnDialog( K3bDvdDoc* doc, QWidget *parent, const char
m_writerSelectionWidget->setWantedMediumState( K3bDevice::STATE_EMPTY|K3bDevice::STATE_INCOMPLETE );
- QString path = doc->tempDir();
+ TQString path = doc->tempDir();
if( !path.isEmpty() ) {
m_tempDirSelectionWidget->setTempPath( path );
}
@@ -77,8 +77,8 @@ K3bDvdBurnDialog::K3bDvdBurnDialog( K3bDvdDoc* doc, QWidget *parent, const char
m_tempDirSelectionWidget->setDefaultImageFileName( doc->isoOptions().volumeID() + ".iso" );
}
- connect( m_imageSettingsWidget->m_editVolumeName, SIGNAL(textChanged(const QString&)),
- m_tempDirSelectionWidget, SLOT(setDefaultImageFileName(const QString&)) );
+ connect( m_imageSettingsWidget->m_editVolumeName, TQT_SIGNAL(textChanged(const TQString&)),
+ m_tempDirSelectionWidget, TQT_SLOT(setDefaultImageFileName(const TQString&)) );
}
@@ -89,14 +89,14 @@ K3bDvdBurnDialog::~K3bDvdBurnDialog()
void K3bDvdBurnDialog::setupSettingsTab()
{
- QWidget* frame = new QWidget( this );
- QGridLayout* frameLayout = new QGridLayout( frame );
+ TQWidget* frame = new TQWidget( this );
+ TQGridLayout* frameLayout = new TQGridLayout( frame );
frameLayout->setSpacing( spacingHint() );
frameLayout->setMargin( marginHint() );
// Multisession
// ////////////////////////////////////////////////////////////////////////
- QGroupBox* groupMultiSession = new QGroupBox( 1, Qt::Vertical, i18n("Multisession Mode"), frame );
+ TQGroupBox* groupMultiSession = new TQGroupBox( 1, Qt::Vertical, i18n("Multisession Mode"), frame );
m_comboMultisession = new K3bDataMultiSessionCombobox( groupMultiSession );
frameLayout->addWidget( groupMultiSession, 0, 0 );
@@ -104,8 +104,8 @@ void K3bDvdBurnDialog::setupSettingsTab()
addPage( frame, i18n("Misc") );
- connect( m_comboMultisession, SIGNAL(activated(int)),
- this, SLOT(slotMultiSessionModeChanged()) );
+ connect( m_comboMultisession, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotMultiSessionModeChanged()) );
}
@@ -277,17 +277,17 @@ void K3bDvdBurnDialog::slotStartClicked()
{
if( m_checkOnlyCreateImage->isChecked() ||
m_checkCacheImage->isChecked() ) {
- QFileInfo fi( m_tempDirSelectionWidget->tempPath() );
+ TQFileInfo fi( m_tempDirSelectionWidget->tempPath() );
if( fi.isDir() )
m_tempDirSelectionWidget->setTempPath( fi.filePath() + "/image.iso" );
- if( QFile::exists( m_tempDirSelectionWidget->tempPath() ) ) {
+ if( TQFile::exists( m_tempDirSelectionWidget->tempPath() ) ) {
if( KMessageBox::warningContinueCancel( this,
- i18n("Do you want to overwrite %1?").arg(m_tempDirSelectionWidget->tempPath()),
+ i18n("Do you want to overwrite %1?").tqarg(m_tempDirSelectionWidget->tempPath()),
i18n("File Exists"), i18n("Overwrite") )
== KMessageBox::Continue ) {
// delete the file here to avoid problems with free space in K3bProjectBurnDialog::slotStartClicked
- QFile::remove( m_tempDirSelectionWidget->tempPath() );
+ TQFile::remove( m_tempDirSelectionWidget->tempPath() );
}
else
return;
diff --git a/src/projects/k3bdvdburndialog.h b/src/projects/k3bdvdburndialog.h
index deb9620..3400c7d 100644
--- a/src/projects/k3bdvdburndialog.h
+++ b/src/projects/k3bdvdburndialog.h
@@ -22,19 +22,20 @@
class K3bDvdDoc;
class K3bDataImageSettingsWidget;
-class QGroupBox;
-class QRadioButton;
-class QButtonGroup;
-class QCheckBox;
+class TQGroupBox;
+class TQRadioButton;
+class TQButtonGroup;
+class TQCheckBox;
class K3bDataMultiSessionCombobox;
class K3bDvdBurnDialog : public K3bProjectBurnDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDvdBurnDialog( K3bDvdDoc*, QWidget *parent = 0, const char *name = 0, bool modal = true );
+ K3bDvdBurnDialog( K3bDvdDoc*, TQWidget *tqparent = 0, const char *name = 0, bool modal = true );
~K3bDvdBurnDialog();
protected slots:
@@ -61,7 +62,7 @@ class K3bDvdBurnDialog : public K3bProjectBurnDialog
K3bDataMultiSessionCombobox* m_comboMultisession;
// ---------------------------------------------
- QCheckBox* m_checkVerify;
+ TQCheckBox* m_checkVerify;
K3bDvdDoc* m_doc;
};
diff --git a/src/projects/k3bdvdview.cpp b/src/projects/k3bdvdview.cpp
index 512ec4b..dc5f67a 100644
--- a/src/projects/k3bdvdview.cpp
+++ b/src/projects/k3bdvdview.cpp
@@ -22,8 +22,8 @@
#include <klocale.h>
-K3bDvdView::K3bDvdView( K3bDvdDoc* doc, QWidget *parent, const char *name )
- : K3bDataView( doc, parent, name )
+K3bDvdView::K3bDvdView( K3bDvdDoc* doc, TQWidget *tqparent, const char *name )
+ : K3bDataView( doc, tqparent, name )
{
m_doc = doc;
@@ -40,9 +40,9 @@ K3bDvdView::~K3bDvdView()
}
-K3bProjectBurnDialog* K3bDvdView::newBurnDialog( QWidget* parent, const char* name )
+K3bProjectBurnDialog* K3bDvdView::newBurnDialog( TQWidget* tqparent, const char* name )
{
- return new K3bDvdBurnDialog( m_doc, parent, name, true );
+ return new K3bDvdBurnDialog( m_doc, tqparent, name, true );
}
#include "k3bdvdview.moc"
diff --git a/src/projects/k3bdvdview.h b/src/projects/k3bdvdview.h
index d9f30f3..1072cc2 100644
--- a/src/projects/k3bdvdview.h
+++ b/src/projects/k3bdvdview.h
@@ -25,13 +25,14 @@ class K3bDvdDoc;
class K3bDvdView : public K3bDataView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bDvdView( K3bDvdDoc* doc, QWidget *parent = 0, const char *name = 0 );
+ K3bDvdView( K3bDvdDoc* doc, TQWidget *tqparent = 0, const char *name = 0 );
~K3bDvdView();
protected:
- virtual K3bProjectBurnDialog* newBurnDialog( QWidget* parent = 0, const char* name = 0 );
+ virtual K3bProjectBurnDialog* newBurnDialog( TQWidget* tqparent = 0, const char* name = 0 );
private:
K3bDvdDoc* m_doc;
diff --git a/src/projects/k3bencodingconverter.cpp b/src/projects/k3bencodingconverter.cpp
index 460abbe..38e219e 100644
--- a/src/projects/k3bencodingconverter.cpp
+++ b/src/projects/k3bencodingconverter.cpp
@@ -17,8 +17,8 @@
#include "k3bencodingconverter.h"
-#include <qwidget.h>
-#include <qlayout.h>
+#include <tqwidget.h>
+#include <tqlayout.h>
#include <kdebug.h>
@@ -32,8 +32,8 @@ class K3bEncodingConverter::Private
{
public:
iconv_t ic;
- QString localEncoding;
- QString lastEncoding;
+ TQString localEncoding;
+ TQString lastEncoding;
};
@@ -42,7 +42,7 @@ K3bEncodingConverter::K3bEncodingConverter()
d = new Private;
#ifdef HAVE_ICONV_H
char* codec = nl_langinfo( CODESET );
- d->localEncoding = QString::fromLocal8Bit( codec );
+ d->localEncoding = TQString::fromLocal8Bit( codec );
kdDebug() << "(K3bDataUrlAddingDialog) using locale codec: " << codec << endl;
d->ic = ::iconv_open( "UCS-2BE", codec );
#endif
@@ -58,14 +58,14 @@ K3bEncodingConverter::~K3bEncodingConverter()
}
-bool K3bEncodingConverter::encodedLocally( const QCString& s )
+bool K3bEncodingConverter::encodedLocally( const TQCString& s )
{
#ifdef HAVE_ICONV_H
- QCString utf8Encoded( s.length()*2 );
+ TQCString utf8Encoded( s.length()*2 );
#if defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD)
const char* in = s.data();
#else
- char* in = s.data();
+ char* in = const_cast<char*>(s.data());
#endif
char* out = utf8Encoded.data();
size_t inSize = s.length();
@@ -77,7 +77,7 @@ bool K3bEncodingConverter::encodedLocally( const QCString& s )
}
-bool K3bEncodingConverter::fixEncoding( const QCString& s, QCString& result, QWidget* parent, bool cache )
+bool K3bEncodingConverter::fixEncoding( const TQCString& s, TQCString& result, TQWidget* tqparent, bool cache )
{
#ifdef IMPLEMENT_THIS_METHOD // HAVE_ICONV_H
if( !d->lastEncoding.isEmpty() ) {
@@ -96,14 +96,14 @@ bool K3bEncodingConverter::fixEncoding( const QCString& s, QCString& result, QWi
}
else
- d->lastEncoding = QString::null;
+ d->lastEncoding = TQString();
#else
return false;
#endif
}
-bool K3bEncodingConverter::convert( const QCString& s, QCString& result, const QString& from, const QString& to )
+bool K3bEncodingConverter::convert( const TQCString& s, TQCString& result, const TQString& from, const TQString& to )
{
bool r = false;
@@ -114,7 +114,7 @@ bool K3bEncodingConverter::convert( const QCString& s, QCString& result, const Q
#if defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD)
const char* in = s.data();
#else
- char* in = s.data();
+ char* in = const_cast<char*>(s.data());
#endif
char* out = result.data();
size_t inSize = s.length();
diff --git a/src/projects/k3bencodingconverter.h b/src/projects/k3bencodingconverter.h
index e40003c..c88f5be 100644
--- a/src/projects/k3bencodingconverter.h
+++ b/src/projects/k3bencodingconverter.h
@@ -16,10 +16,10 @@
#ifndef _K3B_ENCODING_CONVERTER_H_
#define _K3B_ENCODING_CONVERTER_H_
-#include <qcstring.h>
-#include <qstring.h>
+#include <tqcstring.h>
+#include <tqstring.h>
-class QWidget;
+class TQWidget;
class K3bEncodingConverter
{
@@ -32,7 +32,7 @@ class K3bEncodingConverter
*
* \return True if the string is encoded in the local encoding.
*/
- bool encodedLocally( const QCString& );
+ bool encodedLocally( const TQCString& );
/**
* Tries to fix the encoding of a string to fit the local
@@ -41,16 +41,16 @@ class K3bEncodingConverter
* the proper encoding based on example conversions.
*
* \param s The string to be fixed.
- * \param parent The parent widget to be used when showing the encoding selection dialog.
+ * \param tqparent The tqparent widget to be used when showing the encoding selection dialog.
* \param cacheEncoding If true the codeset used for successful conversion is cached and
* reused for the next call to fixEncoding.
*
* \return True if the conversion was successful.
*/
- bool fixEncoding( const QCString& s, QCString& result, QWidget* parent = 0, bool cacheEncoding = true );
+ bool fixEncoding( const TQCString& s, TQCString& result, TQWidget* tqparent = 0, bool cacheEncoding = true );
private:
- bool convert( const QCString& s, QCString& result, const QString& from, const QString& to );
+ bool convert( const TQCString& s, TQCString& result, const TQString& from, const TQString& to );
class Private;
Private* d;
diff --git a/src/projects/k3bfillstatusdisplay.cpp b/src/projects/k3bfillstatusdisplay.cpp
index 2d39bc7..b52782c 100644
--- a/src/projects/k3bfillstatusdisplay.cpp
+++ b/src/projects/k3bfillstatusdisplay.cpp
@@ -26,18 +26,18 @@
#include <k3bradioaction.h>
#include <k3bmediacache.h>
-#include <qevent.h>
-#include <qpainter.h>
-#include <qcolor.h>
-#include <qrect.h>
-#include <qfont.h>
-#include <qfontmetrics.h>
-#include <qvalidator.h>
-#include <qtoolbutton.h>
-#include <qtooltip.h>
-#include <qlayout.h>
-#include <qwhatsthis.h>
-#include <qtimer.h>
+#include <tqevent.h>
+#include <tqpainter.h>
+#include <tqcolor.h>
+#include <tqrect.h>
+#include <tqfont.h>
+#include <tqfontmetrics.h>
+#include <tqvalidator.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
+#include <tqtimer.h>
#include <kaction.h>
#include <kpopupmenu.h>
@@ -67,12 +67,12 @@ public:
};
-K3bFillStatusDisplayWidget::K3bFillStatusDisplayWidget( K3bDoc* doc, QWidget* parent )
- : QWidget( parent, 0, WRepaintNoErase )
+K3bFillStatusDisplayWidget::K3bFillStatusDisplayWidget( K3bDoc* doc, TQWidget* tqparent )
+ : TQWidget( tqparent, 0, WRepaintNoErase )
{
d = new Private();
d->doc = doc;
- setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Preferred ) );
+ tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Preferred ) );
}
@@ -102,35 +102,35 @@ void K3bFillStatusDisplayWidget::setCdSize( const K3b::Msf& size )
}
-QSize K3bFillStatusDisplayWidget::sizeHint() const
+TQSize K3bFillStatusDisplayWidget::tqsizeHint() const
{
- return minimumSizeHint();
+ return tqminimumSizeHint();
}
-QSize K3bFillStatusDisplayWidget::minimumSizeHint() const
+TQSize K3bFillStatusDisplayWidget::tqminimumSizeHint() const
{
int margin = 2;
- QFontMetrics fm( font() );
- return QSize( -1, fm.height() + 2 * margin );
+ TQFontMetrics fm( font() );
+ return TQSize( -1, fm.height() + 2 * margin );
}
-void K3bFillStatusDisplayWidget::mousePressEvent( QMouseEvent* e )
+void K3bFillStatusDisplayWidget::mousePressEvent( TQMouseEvent* e )
{
if( e->button() == Qt::RightButton )
emit contextMenu( e->globalPos() );
}
-void K3bFillStatusDisplayWidget::paintEvent( QPaintEvent* )
+void K3bFillStatusDisplayWidget::paintEvent( TQPaintEvent* )
{
// double buffer
- QPixmap buffer( size() );
- buffer.fill( colorGroup().base() );
- QPainter p;
- p.begin( &buffer, this );
- p.setPen( Qt::black ); // we use a fixed bar color (which is not very nice btw, so we also fix the text color)
+ TQPixmap buffer( size() );
+ buffer.fill( tqcolorGroup().base() );
+ TQPainter p;
+ p.tqbegin( &buffer, TQT_TQOBJECT(this) );
+ p.setPen( TQt::black ); // we use a fixed bar color (which is not very nice btw, so we also fix the text color)
long long docSize;
long long cdSize;
@@ -152,19 +152,19 @@ void K3bFillStatusDisplayWidget::paintEvent( QPaintEvent* )
// so split width() in maxValue pieces
double one = (double)rect().width() / (double)maxValue;
- QRect crect( rect() );
+ TQRect crect( rect() );
crect.setWidth( (int)(one*(double)docSize) );
p.setClipping(true);
p.setClipRect(crect);
- p.fillRect( crect, Qt::green );
+ p.fillRect( crect, TQt::green );
- QRect oversizeRect(crect);
+ TQRect oversizeRect(crect);
// draw yellow if cdSize - tolerance < docSize
if( docSize > cdSize - tolerance ) {
oversizeRect.setLeft( oversizeRect.left() + (int)(one * (cdSize - tolerance)) );
- p.fillRect( oversizeRect, Qt::yellow );
+ p.fillRect( oversizeRect, TQt::yellow );
KPixmap pix;
pix.resize( rect().height()*2, rect().height() );
KPixmapEffect::gradient( pix, green, yellow, KPixmapEffect::HorizontalGradient, 0 );
@@ -174,7 +174,7 @@ void K3bFillStatusDisplayWidget::paintEvent( QPaintEvent* )
// draw red if docSize > cdSize + tolerance
if( docSize > cdSize + tolerance ) {
oversizeRect.setLeft( oversizeRect.left() + (int)(one * tolerance*2) );
- p.fillRect( oversizeRect, Qt::red );
+ p.fillRect( oversizeRect, TQt::red );
KPixmap pix;
pix.resize( rect().height()*2, rect().height() );
KPixmapEffect::gradient( pix, yellow, red, KPixmapEffect::HorizontalGradient, 0 );
@@ -190,25 +190,25 @@ void K3bFillStatusDisplayWidget::paintEvent( QPaintEvent* )
// first we determine the text to display
// ====================================================================================
- QString docSizeText;
+ TQString docSizeText;
if( d->showTime )
docSizeText = d->doc->length().toString(false) + " " + i18n("min");
else
docSizeText = KIO::convertSize( d->doc->size() );
- QString overSizeText;
+ TQString overSizeText;
if( d->cdSize.mode1Bytes() >= d->doc->size() )
overSizeText = i18n("Available: %1 of %2")
- .arg( d->showTime
- ? i18n("%1 min").arg((K3b::Msf( cdSize*60*75 ) - d->doc->length()).toString(false))
- : KIO::convertSize( QMAX( (cdSize * 1024LL * 1024LL) - (long long)d->doc->size(), 0LL ) ) )
- .arg( d->showTime
- ? i18n("%1 min").arg(K3b::Msf( cdSize*60*75 ).toString(false))
+ .tqarg( d->showTime
+ ? i18n("%1 min").tqarg((K3b::Msf( cdSize*60*75 ) - d->doc->length()).toString(false))
+ : KIO::convertSize( TQMAX( (cdSize * 1024LL * 1024LL) - (long long)d->doc->size(), 0LL ) ) )
+ .tqarg( d->showTime
+ ? i18n("%1 min").tqarg(K3b::Msf( cdSize*60*75 ).toString(false))
: KIO::convertSizeFromKB( cdSize * 1024 ) );
else
overSizeText = i18n("Capacity exceeded by %1")
- .arg( d->showTime
- ? i18n("%1 min").arg( (d->doc->length() - K3b::Msf( cdSize*60*75 ) ).toString(false))
+ .tqarg( d->showTime
+ ? i18n("%1 min").tqarg( (d->doc->length() - K3b::Msf( cdSize*60*75 ) ).toString(false))
: KIO::convertSize( (long long)d->doc->size() - (cdSize * 1024LL * 1024LL) ) );
// ====================================================================================
@@ -234,18 +234,18 @@ void K3bFillStatusDisplayWidget::paintEvent( QPaintEvent* )
// make sure the text does not cross the medium size marker
if( docSizeTextPos <= mediumSizeMarkerPos && mediumSizeMarkerPos <= docSizeTextPos + docSizeTextLength )
- docSizeTextPos = QMAX( crect.left() + 5, mediumSizeMarkerPos - docSizeTextLength - 5 );
+ docSizeTextPos = TQMAX( crect.left() + 5, mediumSizeMarkerPos - docSizeTextLength - 5 );
}
// ====================================================================================
// draw the over size text
// ====================================================================================
- QFont fnt(font());
- fnt.setPointSize( QMAX( 8, fnt.pointSize()-4 ) );
+ TQFont fnt(font());
+ fnt.setPointSize( TQMAX( 8, fnt.pointSize()-4 ) );
fnt.setBold(false);
- QRect overSizeTextRect( rect() );
- int overSizeTextLength = QFontMetrics(fnt).width(overSizeText);
+ TQRect overSizeTextRect( rect() );
+ int overSizeTextLength = TQFontMetrics(fnt).width(overSizeText);
if( overSizeTextLength + 5 > overSizeTextRect.width() - (int)(one*cdSize) ) {
// we don't have enough space on the right, so we paint to the left of the line
overSizeTextRect.setLeft( (int)(one*cdSize) - overSizeTextLength - 5 );
@@ -256,14 +256,14 @@ void K3bFillStatusDisplayWidget::paintEvent( QPaintEvent* )
// make sure the two text do not overlap (this does not cover all cases though)
if( overSizeTextRect.left() < docSizeTextPos + docSizeTextLength )
- docSizeTextPos = QMAX( crect.left() + 5, QMIN( overSizeTextRect.left() - docSizeTextLength - 5, mediumSizeMarkerPos - docSizeTextLength - 5 ) );
+ docSizeTextPos = TQMAX( crect.left() + 5, TQMIN( overSizeTextRect.left() - docSizeTextLength - 5, mediumSizeMarkerPos - docSizeTextLength - 5 ) );
- QRect docTextRect( rect() );
+ TQRect docTextRect( rect() );
docTextRect.setLeft( docSizeTextPos );
- p.drawText( docTextRect, Qt::AlignLeft | Qt::AlignVCenter, docSizeText );
+ p.drawText( docTextRect, TQt::AlignLeft | TQt::AlignVCenter, docSizeText );
p.setFont(fnt);
- p.drawText( overSizeTextRect, Qt::AlignLeft | Qt::AlignVCenter, overSizeText );
+ p.drawText( overSizeTextRect, TQt::AlignLeft | TQt::AlignVCenter, overSizeText );
// ====================================================================================
p.end();
@@ -276,16 +276,16 @@ void K3bFillStatusDisplayWidget::paintEvent( QPaintEvent* )
// ----------------------------------------------------------------------------------------------------
-class K3bFillStatusDisplay::ToolTip : public QToolTip
+class K3bFillStatusDisplay::ToolTip : public TQToolTip
{
public:
- ToolTip( K3bDoc* doc, QWidget* parent )
- : QToolTip( parent, 0 ),
+ ToolTip( K3bDoc* doc, TQWidget* tqparent )
+ : TQToolTip( tqparent, 0 ),
m_doc(doc) {
}
- void maybeTip( const QPoint& ) {
- tip( parentWidget()->rect(),
+ void maybeTip( const TQPoint& ) {
+ tip( tqparentWidget()->rect(),
KIO::convertSize( m_doc->size() ) +
" (" + KGlobal::locale()->formatNumber( m_doc->size(), 0 ) + "), " +
m_doc->length().toString(false) + " " + i18n("min") +
@@ -316,7 +316,7 @@ public:
KPopupMenu* popup;
KPopupMenu* dvdPopup;
- QToolButton* buttonMenu;
+ TQToolButton* buttonMenu;
K3bFillStatusDisplayWidget* displayWidget;
@@ -325,12 +325,12 @@ public:
K3bDoc* doc;
- QTimer updateTimer;
+ TQTimer updateTimer;
};
-K3bFillStatusDisplay::K3bFillStatusDisplay( K3bDoc* doc, QWidget *parent, const char *name )
- : QFrame(parent,name)
+K3bFillStatusDisplay::K3bFillStatusDisplay( K3bDoc* doc, TQWidget *tqparent, const char *name )
+ : TQFrame(tqparent,name)
{
d = new Private;
d->doc = doc;
@@ -340,27 +340,27 @@ K3bFillStatusDisplay::K3bFillStatusDisplay( K3bDoc* doc, QWidget *parent, const
setFrameStyle( Panel | Sunken );
d->displayWidget = new K3bFillStatusDisplayWidget( doc, this );
-// d->buttonMenu = new QToolButton( this );
+// d->buttonMenu = new TQToolButton( this );
// d->buttonMenu->setIconSet( SmallIconSet("cdrom_unmount") );
// d->buttonMenu->setAutoRaise(true);
-// QToolTip::add( d->buttonMenu, i18n("Fill display properties") );
-// connect( d->buttonMenu, SIGNAL(clicked()), this, SLOT(slotMenuButtonClicked()) );
+// TQToolTip::add( d->buttonMenu, i18n("Fill display properties") );
+// connect( d->buttonMenu, TQT_SIGNAL(clicked()), TQT_TQOBJECT(this), TQT_SLOT(slotMenuButtonClicked()) );
- QGridLayout* layout = new QGridLayout( this );
- layout->setSpacing(5);
- layout->setMargin(frameWidth());
- layout->addWidget( d->displayWidget, 0, 0 );
- // layout->addWidget( d->buttonMenu, 0, 1 );
- layout->setColStretch( 0, 1 );
+ TQGridLayout* tqlayout = new TQGridLayout( this );
+ tqlayout->setSpacing(5);
+ tqlayout->setMargin(frameWidth());
+ tqlayout->addWidget( d->displayWidget, 0, 0 );
+ // tqlayout->addWidget( d->buttonMenu, 0, 1 );
+ tqlayout->setColStretch( 0, 1 );
setupPopupMenu();
showDvdSizes( false );
- connect( d->doc, SIGNAL(changed()), this, SLOT(slotDocChanged()) );
- connect( &d->updateTimer, SIGNAL(timeout()), this, SLOT(slotUpdateDisplay()) );
- connect( k3bappcore->mediaCache(), SIGNAL(mediumChanged(K3bDevice::Device*)),
- this, SLOT(slotMediumChanged(K3bDevice::Device*)) );
+ connect( d->doc, TQT_SIGNAL(changed()), TQT_TQOBJECT(this), TQT_SLOT(slotDocChanged()) );
+ connect( &d->updateTimer, TQT_SIGNAL(timeout()), TQT_TQOBJECT(this), TQT_SLOT(slotUpdateDisplay()) );
+ connect( k3bappcore->mediaCache(), TQT_SIGNAL(mediumChanged(K3bDevice::Device*)),
+ this, TQT_SLOT(slotMediumChanged(K3bDevice::Device*)) );
}
K3bFillStatusDisplay::~K3bFillStatusDisplay()
@@ -378,32 +378,32 @@ void K3bFillStatusDisplay::setupPopupMenu()
d->popup = new KPopupMenu( this, "popup" );
d->dvdPopup = new KPopupMenu( this, "dvdpopup" );
- d->actionShowMinutes = new KRadioAction( i18n("Minutes"), 0, this, SLOT(showTime()),
+ d->actionShowMinutes = new KRadioAction( i18n("Minutes"), 0, TQT_TQOBJECT(this), TQT_SLOT(showTime()),
d->actionCollection, "fillstatus_show_minutes" );
- d->actionShowMegs = new KRadioAction( i18n("Megabytes"), 0, this, SLOT(showSize()),
+ d->actionShowMegs = new KRadioAction( i18n("Megabytes"), 0, TQT_TQOBJECT(this), TQT_SLOT(showSize()),
d->actionCollection, "fillstatus_show_megabytes" );
d->actionShowMegs->setExclusiveGroup( "show_size_in" );
d->actionShowMinutes->setExclusiveGroup( "show_size_in" );
- d->actionAuto = new KRadioAction( i18n("Auto"), 0, this, SLOT(slotAutoSize()),
+ d->actionAuto = new KRadioAction( i18n("Auto"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotAutoSize()),
d->actionCollection, "fillstatus_auto" );
- d->action74Min = new KRadioAction( i18n("%1 MB").arg(650), 0, this, SLOT(slot74Minutes()),
+ d->action74Min = new KRadioAction( i18n("%1 MB").tqarg(650), 0, TQT_TQOBJECT(this), TQT_SLOT(slot74Minutes()),
d->actionCollection, "fillstatus_74minutes" );
- d->action80Min = new KRadioAction( i18n("%1 MB").arg(700), 0, this, SLOT(slot80Minutes()),
+ d->action80Min = new KRadioAction( i18n("%1 MB").tqarg(700), 0, TQT_TQOBJECT(this), TQT_SLOT(slot80Minutes()),
d->actionCollection, "fillstatus_80minutes" );
- d->action100Min = new KRadioAction( i18n("%1 MB").arg(880), 0, this, SLOT(slot100Minutes()),
+ d->action100Min = new KRadioAction( i18n("%1 MB").tqarg(880), 0, TQT_TQOBJECT(this), TQT_SLOT(slot100Minutes()),
d->actionCollection, "fillstatus_100minutes" );
- d->actionDvd4_7GB = new KRadioAction( KIO::convertSizeFromKB((int)(4.4*1024.0*1024.0)), 0, this, SLOT(slotDvd4_7GB()),
+ d->actionDvd4_7GB = new KRadioAction( KIO::convertSizeFromKB((int)(4.4*1024.0*1024.0)), 0, TQT_TQOBJECT(this), TQT_SLOT(slotDvd4_7GB()),
d->actionCollection, "fillstatus_dvd_4_7gb" );
d->actionDvdDoubleLayer = new KRadioAction( KIO::convertSizeFromKB((int)(8.0*1024.0*1024.0)),
- 0, this, SLOT(slotDvdDoubleLayer()),
+ 0, TQT_TQOBJECT(this), TQT_SLOT(slotDvdDoubleLayer()),
d->actionCollection, "fillstatus_dvd_double_layer" );
- d->actionCustomSize = new K3bRadioAction( i18n("Custom..."), 0, this, SLOT(slotCustomSize()),
+ d->actionCustomSize = new K3bRadioAction( i18n("Custom..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotCustomSize()),
d->actionCollection, "fillstatus_custom_size" );
d->actionCustomSize->setAlwaysEmitActivated(true);
d->actionDetermineSize = new K3bRadioAction( i18n("From Medium..."), "cdrom_unmount", 0,
- this, SLOT(slotDetermineSize()),
+ TQT_TQOBJECT(this), TQT_SLOT(slotDetermineSize()),
d->actionCollection, "fillstatus_size_from_disk" );
d->actionDetermineSize->setAlwaysEmitActivated(true);
@@ -417,14 +417,14 @@ void K3bFillStatusDisplay::setupPopupMenu()
d->actionDetermineSize->setExclusiveGroup( "cd_size" );
d->actionLoadUserDefaults = new KAction( i18n("User Defaults"), "", 0,
- this, SLOT(slotLoadUserDefaults()),
+ TQT_TQOBJECT(this), TQT_SLOT(slotLoadUserDefaults()),
d->actionCollection, "load_user_defaults" );
d->actionSaveUserDefaults = new KAction( i18n("Save User Defaults"), "", 0,
- this, SLOT(slotSaveUserDefaults()),
+ TQT_TQOBJECT(this), TQT_SLOT(slotSaveUserDefaults()),
d->actionCollection, "save_user_defaults" );
KAction* dvdSizeInfoAction = new KAction( i18n("Why 4.4 instead of 4.7?"), "", 0,
- this, SLOT(slotWhy44()),
+ TQT_TQOBJECT(this), TQT_SLOT(slotWhy44()),
d->actionCollection, "why_44_gb" );
d->popup->insertTitle( i18n("Show Size In") );
@@ -452,7 +452,7 @@ void K3bFillStatusDisplay::setupPopupMenu()
d->actionLoadUserDefaults->plug( d->dvdPopup );
d->actionSaveUserDefaults->plug( d->dvdPopup );
- connect( d->displayWidget, SIGNAL(contextMenu(const QPoint&)), this, SLOT(slotPopupMenu(const QPoint&)) );
+ connect( d->displayWidget, TQT_SIGNAL(contextMenu(const TQPoint&)), TQT_TQOBJECT(this), TQT_SLOT(slotPopupMenu(const TQPoint&)) );
}
@@ -460,9 +460,9 @@ void K3bFillStatusDisplay::showSize()
{
d->actionShowMegs->setChecked( true );
- d->action74Min->setText( i18n("%1 MB").arg(650) );
- d->action80Min->setText( i18n("%1 MB").arg(700) );
- d->action100Min->setText( i18n("%1 MB").arg(880) );
+ d->action74Min->setText( i18n("%1 MB").tqarg(650) );
+ d->action80Min->setText( i18n("%1 MB").tqarg(700) );
+ d->action100Min->setText( i18n("%1 MB").tqarg(880) );
d->showTime = false;
d->displayWidget->setShowTime(false);
@@ -526,7 +526,7 @@ void K3bFillStatusDisplay::slotDvdDoubleLayer()
void K3bFillStatusDisplay::slotWhy44()
{
- QWhatsThis::display( i18n("<p><b>Why does K3b offer 4.4 GB and 8.0 GB instead of 4.7 and 8.5 like "
+ TQWhatsThis::display( i18n("<p><b>Why does K3b offer 4.4 GB and 8.0 GB instead of 4.7 and 8.5 like "
"it says on the media?</b>"
"<p>A single layer DVD media has a capacity of approximately "
"4.4 GB which equals 4.4*1024<sup>3</sup> bytes. Media producers just "
@@ -538,29 +538,29 @@ void K3bFillStatusDisplay::slotWhy44()
void K3bFillStatusDisplay::slotCustomSize()
{
// allow the units to be translated
- QString gbS = i18n("gb");
- QString mbS = i18n("mb");
- QString minS = i18n("min");
+ TQString gbS = i18n("gb");
+ TQString mbS = i18n("mb");
+ TQString minS = i18n("min");
- QRegExp rx( "(\\d+\\" + KGlobal::locale()->decimalSymbol() + "?\\d*)(" + gbS + "|" + mbS + "|" + minS + ")?" );
+ TQRegExp rx( "(\\d+\\" + KGlobal::locale()->decimalSymbol() + "?\\d*)(" + gbS + "|" + mbS + "|" + minS + ")?" );
bool ok;
- QString size = KInputDialog::getText( i18n("Custom Size"),
+ TQString size = KInputDialog::getText( i18n("Custom Size"),
i18n("<p>Please specify the size of the media. Use suffixes <b>gb</b>,<b>mb</b>, "
"and <b>min</b> for <em>gigabytes</em>, <em>megabytes</em>, and <em>minutes</em>"
" respectively."),
- d->showDvdSizes ? QString("4%14%2").arg(KGlobal::locale()->decimalSymbol()).arg(gbS) :
- (d->showTime ? QString("74")+minS : QString("650")+mbS),
+ d->showDvdSizes ? TQString("4%14%2").tqarg(KGlobal::locale()->decimalSymbol()).tqarg(gbS) :
+ (d->showTime ? TQString("74")+minS : TQString("650")+mbS),
&ok, this, (const char*)0,
- new QRegExpValidator( rx, this ) );
+ new TQRegExpValidator( rx, TQT_TQOBJECT(this) ) );
if( ok ) {
// determine size
if( rx.exactMatch( size ) ) {
- QString valStr = rx.cap(1);
+ TQString valStr = rx.cap(1);
if( valStr.endsWith( KGlobal::locale()->decimalSymbol() ) )
valStr += "0";
double val = KGlobal::locale()->readNumber( valStr, &ok );
if( ok ) {
- QString s = rx.cap(2);
+ TQString s = rx.cap(2);
if( s == gbS || (s.isEmpty() && d->showDvdSizes) )
val *= 1024*512;
else if( s == mbS || (s.isEmpty() && !d->showTime) )
@@ -577,13 +577,13 @@ void K3bFillStatusDisplay::slotCustomSize()
void K3bFillStatusDisplay::slotMenuButtonClicked()
{
- QSize size = d->showDvdSizes ? d->dvdPopup->sizeHint() : d->popup->sizeHint();
- slotPopupMenu( d->buttonMenu->mapToGlobal(QPoint(d->buttonMenu->width(), 0)) +
- QPoint(-1*size.width(), -1*size.height()) );
+ TQSize size = d->showDvdSizes ? d->dvdPopup->tqsizeHint() : d->popup->tqsizeHint();
+ slotPopupMenu( d->buttonMenu->mapToGlobal(TQPoint(d->buttonMenu->width(), 0)) +
+ TQPoint(-1*size.width(), -1*size.height()) );
}
-void K3bFillStatusDisplay::slotPopupMenu( const QPoint& p )
+void K3bFillStatusDisplay::slotPopupMenu( const TQPoint& p )
{
if( d->showDvdSizes )
d->dvdPopup->popup(p);
@@ -597,8 +597,8 @@ void K3bFillStatusDisplay::slotDetermineSize()
bool canceled = false;
K3bDevice::Device* dev = K3bMediaSelectionDialog::selectMedium( d->showDvdSizes ? K3bDevice::MEDIA_WRITABLE_DVD : K3bDevice::MEDIA_WRITABLE_CD,
K3bDevice::STATE_EMPTY|K3bDevice::STATE_INCOMPLETE,
- parentWidget(),
- QString::null, QString::null, &canceled );
+ tqparentWidget(),
+ TQString(), TQString(), &canceled );
if( dev ) {
K3b::Msf size = k3bappcore->mediaCache()->diskInfo( dev ).capacity();
@@ -608,10 +608,10 @@ void K3bFillStatusDisplay::slotDetermineSize()
update();
}
else
- KMessageBox::error( parentWidget(), i18n("Medium is not empty.") );
+ KMessageBox::error( tqparentWidget(), i18n("Medium is not empty.") );
}
else if( !canceled )
- KMessageBox::error( parentWidget(), i18n("No usable medium found.") );
+ KMessageBox::error( tqparentWidget(), i18n("No usable medium found.") );
}
@@ -673,13 +673,13 @@ void K3bFillStatusDisplay::slotMediumChanged( K3bDevice::Device* )
// TODO: once we have only one data project we need to change this to handle both
K3bDevice::Device* dev = 0;
- QPtrList<K3bDevice::Device> devs;
+ TQPtrList<K3bDevice::Device> devs;
if( d->showDvdSizes )
devs = k3bcore->deviceManager()->dvdWriter();
else
devs = k3bcore->deviceManager()->cdWriter();
- for( QPtrListIterator<K3bDevice::Device> it( devs ); *it; ++it ) {
+ for( TQPtrListIterator<K3bDevice::Device> it( devs ); *it; ++it ) {
const K3bMedium& medium = k3bappcore->mediaCache()->medium( *it );
if( ( medium.diskInfo().empty() ||
diff --git a/src/projects/k3bfillstatusdisplay.h b/src/projects/k3bfillstatusdisplay.h
index f477faa..d123426 100644
--- a/src/projects/k3bfillstatusdisplay.h
+++ b/src/projects/k3bfillstatusdisplay.h
@@ -18,18 +18,18 @@
#ifndef K3BFILLSTATUSDISPLAY_H
#define K3BFILLSTATUSDISPLAY_H
-#include <qframe.h>
-#include <qtooltip.h>
+#include <tqframe.h>
+#include <tqtooltip.h>
-class QPaintEvent;
-class QMouseEvent;
+class TQPaintEvent;
+class TQMouseEvent;
class K3bDoc;
class KToggleAction;
class KAction;
class KActionCollection;
class KPopupMenu;
-class QToolButton;
+class TQToolButton;
namespace K3bDevice {
class Device;
@@ -42,16 +42,17 @@ namespace K3b {
/**
*@author Sebastian Trueg
*/
-class K3bFillStatusDisplayWidget : public QWidget
+class K3bFillStatusDisplayWidget : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bFillStatusDisplayWidget( K3bDoc* doc, QWidget* parent );
+ K3bFillStatusDisplayWidget( K3bDoc* doc, TQWidget* tqparent );
~K3bFillStatusDisplayWidget();
- QSize sizeHint() const;
- QSize minimumSizeHint() const;
+ TQSize tqsizeHint() const;
+ TQSize tqminimumSizeHint() const;
const K3b::Msf& cdSize() const;
@@ -60,11 +61,11 @@ class K3bFillStatusDisplayWidget : public QWidget
void setCdSize( const K3b::Msf& );
signals:
- void contextMenu( const QPoint& );
+ void contextMenu( const TQPoint& );
protected:
- void mousePressEvent( QMouseEvent* );
- void paintEvent(QPaintEvent*);
+ void mousePressEvent( TQMouseEvent* );
+ void paintEvent(TQPaintEvent*);
private:
class Private;
@@ -72,12 +73,13 @@ class K3bFillStatusDisplayWidget : public QWidget
};
-class K3bFillStatusDisplay : public QFrame {
+class K3bFillStatusDisplay : public TQFrame {
Q_OBJECT
+ TQ_OBJECT
public:
- K3bFillStatusDisplay(K3bDoc* doc, QWidget *parent=0, const char *name=0);
+ K3bFillStatusDisplay(K3bDoc* doc, TQWidget *tqparent=0, const char *name=0);
~K3bFillStatusDisplay();
public slots:
@@ -98,7 +100,7 @@ class K3bFillStatusDisplay : public QFrame {
void slotWhy44();
void slotCustomSize();
void slotMenuButtonClicked();
- void slotPopupMenu(const QPoint&);
+ void slotPopupMenu(const TQPoint&);
void slotDetermineSize();
void slotDocChanged();
void slotMediumChanged( K3bDevice::Device* dev );
diff --git a/src/projects/k3bmixedburndialog.cpp b/src/projects/k3bmixedburndialog.cpp
index 5d5ad28..791b3d0 100644
--- a/src/projects/k3bmixedburndialog.cpp
+++ b/src/projects/k3bmixedburndialog.cpp
@@ -36,21 +36,21 @@
#include <k3baudiotrackplayer.h>
#include <k3bintmapcombobox.h>
-#include <qtabwidget.h>
-#include <qcheckbox.h>
-#include <qframe.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qtoolbutton.h>
-#include <qlayout.h>
-#include <qvariant.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qvbox.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
+#include <tqtabwidget.h>
+#include <tqcheckbox.h>
+#include <tqframe.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqtoolbutton.h>
+#include <tqlayout.h>
+#include <tqvariant.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqvbox.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
#include <klocale.h>
#include <kconfig.h>
@@ -59,14 +59,14 @@
#include <kmessagebox.h>
-K3bMixedBurnDialog::K3bMixedBurnDialog( K3bMixedDoc* doc, QWidget *parent, const char *name, bool modal )
- : K3bProjectBurnDialog( doc, parent, name, modal ), m_doc(doc)
+K3bMixedBurnDialog::K3bMixedBurnDialog( K3bMixedDoc* doc, TQWidget *tqparent, const char *name, bool modal )
+ : K3bProjectBurnDialog( doc, tqparent, name, modal ), m_doc(doc)
{
prepareGui();
setTitle( i18n("Mixed Project"), i18n("1 track (%1 minutes)",
"%n tracks (%1 minutes)",
- m_doc->numOfTracks()).arg(m_doc->length().toString()) );
+ m_doc->numOfTracks()).tqarg(m_doc->length().toString()) );
m_checkOnlyCreateImage->hide();
@@ -80,27 +80,27 @@ K3bMixedBurnDialog::K3bMixedBurnDialog( K3bMixedDoc* doc, QWidget *parent, const
setupSettingsPage();
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
m_optionGroupLayout->addItem( spacer );
- connect( m_checkNormalize, SIGNAL(toggled(bool)), this, SLOT(slotNormalizeToggled(bool)) );
- connect( m_checkCacheImage, SIGNAL(toggled(bool)), this, SLOT(slotCacheImageToggled(bool)) );
- connect( m_writerSelectionWidget, SIGNAL(writingAppChanged(int)), this, SLOT(slotToggleAll()) );
- connect( m_writingModeWidget, SIGNAL(writingModeChanged(int)), this, SLOT(slotToggleAll()) );
+ connect( m_checkNormalize, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotNormalizeToggled(bool)) );
+ connect( m_checkCacheImage, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotCacheImageToggled(bool)) );
+ connect( m_writerSelectionWidget, TQT_SIGNAL(writingAppChanged(int)), this, TQT_SLOT(slotToggleAll()) );
+ connect( m_writingModeWidget, TQT_SIGNAL(writingModeChanged(int)), this, TQT_SLOT(slotToggleAll()) );
}
void K3bMixedBurnDialog::setupSettingsPage()
{
- QWidget* w = new QWidget( this );
+ TQWidget* w = new TQWidget( this );
- QGroupBox* groupDataMode = new QGroupBox( 1, Qt::Vertical, i18n("Datatrack Mode"), w );
+ TQGroupBox* groupDataMode = new TQGroupBox( 1, Qt::Vertical, i18n("Datatrack Mode"), w );
m_dataModeWidget = new K3bDataModeWidget( groupDataMode );
- QGroupBox* groupNormalize = new QGroupBox( 1, Qt::Vertical, i18n("Misc"), w );
+ TQGroupBox* groupNormalize = new TQGroupBox( 1, Qt::Vertical, i18n("Misc"), w );
m_checkNormalize = K3bStdGuiItems::normalizeCheckBox( groupNormalize );
- QGroupBox* groupMixedType = new QGroupBox( 1, Qt::Vertical, i18n("Mixed Mode Type"), w );
+ TQGroupBox* groupMixedType = new TQGroupBox( 1, Qt::Vertical, i18n("Mixed Mode Type"), w );
m_comboMixedModeType = new K3bIntMapComboBox( groupMixedType );
m_comboMixedModeType->insertItem( K3bMixedDoc::DATA_SECOND_SESSION,
@@ -128,13 +128,13 @@ void K3bMixedBurnDialog::setupSettingsPage()
i18n("Data in last track"),
i18n("K3b will write the data track after all "
"audio tracks.") );
- m_comboMixedModeType->addGlobalWhatsThisText( QString(),
+ m_comboMixedModeType->addGlobalWhatsThisText( TQString(),
i18n("<b>Caution:</b> The last two modes should only be used for CDs that are unlikely to "
"be played on a hifi audio CD player."
"<br>It could lead to problems with some older "
"hifi audio CD players that try to play the data track.") );
- QGridLayout* grid = new QGridLayout( w );
+ TQGridLayout* grid = new TQGridLayout( w );
grid->setMargin( marginHint() );
grid->setSpacing( spacingHint() );
grid->addWidget( groupMixedType, 0, 0 );
@@ -318,7 +318,7 @@ void K3bMixedBurnDialog::slotNormalizeToggled( bool on )
if( KMessageBox::warningYesNo( this, i18n("<p>K3b is not able to normalize audio tracks when burning on-the-fly. "
"The external program used for this task only supports normalizing a set "
"of audio files."),
- QString::null,
+ TQString(),
i18n("Disable normalization"),
i18n("Disable on-the-fly burning"),
"audioProjectNormalizeOrOnTheFly" ) == KMessageBox::Yes )
@@ -337,7 +337,7 @@ void K3bMixedBurnDialog::slotCacheImageToggled( bool on )
if( KMessageBox::warningYesNo( this, i18n("<p>K3b is not able to normalize audio tracks when burning on-the-fly. "
"The external program used for this task only supports normalizing a set "
"of audio files."),
- QString::null,
+ TQString(),
i18n("Disable normalization"),
i18n("Disable on-the-fly burning"),
"audioProjectNormalizeOrOnTheFly" ) == KMessageBox::Yes )
diff --git a/src/projects/k3bmixedburndialog.h b/src/projects/k3bmixedburndialog.h
index 363d26e..94d224e 100644
--- a/src/projects/k3bmixedburndialog.h
+++ b/src/projects/k3bmixedburndialog.h
@@ -19,13 +19,13 @@
#include "k3bprojectburndialog.h"
-class QCheckBox;
+class TQCheckBox;
class K3bWriterSelectionWidget;
class K3bTempDirSelectionWidget;
class K3bMixedDoc;
class K3bDataImageSettingsWidget;
-class QButtonGroup;
-class QRadioButton;
+class TQButtonGroup;
+class TQRadioButton;
class K3bAudioCdTextWidget;
class K3bDataModeWidget;
class K3bIntMapComboBox;
@@ -37,9 +37,10 @@ class K3bIntMapComboBox;
class K3bMixedBurnDialog : public K3bProjectBurnDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bMixedBurnDialog( K3bMixedDoc*, QWidget *parent=0, const char *name=0, bool modal = true );
+ K3bMixedBurnDialog( K3bMixedDoc*, TQWidget *tqparent=0, const char *name=0, bool modal = true );
protected:
void loadK3bDefaults();
@@ -66,11 +67,11 @@ class K3bMixedBurnDialog : public K3bProjectBurnDialog
K3bMixedDoc* m_doc;
K3bIntMapComboBox* m_comboMixedModeType;
- QRadioButton* m_radioMixedTypeFirstTrack;
- QRadioButton* m_radioMixedTypeLastTrack;
- QRadioButton* m_radioMixedTypeSessions;
+ TQRadioButton* m_radioMixedTypeFirstTrack;
+ TQRadioButton* m_radioMixedTypeLastTrack;
+ TQRadioButton* m_radioMixedTypeSessions;
- QCheckBox* m_checkNormalize;
+ TQCheckBox* m_checkNormalize;
K3bDataModeWidget* m_dataModeWidget;
};
diff --git a/src/projects/k3bmixeddirtreeview.cpp b/src/projects/k3bmixeddirtreeview.cpp
index 50d818a..9a014dc 100644
--- a/src/projects/k3bmixeddirtreeview.cpp
+++ b/src/projects/k3bmixeddirtreeview.cpp
@@ -22,7 +22,7 @@
#include <k3baudiodoc.h>
#include <k3bdataviewitem.h>
-#include <qevent.h>
+#include <tqevent.h>
#include <kdebug.h>
#include <kiconloader.h>
@@ -33,18 +33,18 @@
class K3bMixedDirTreeView::PrivateAudioRootViewItem : public K3bListViewItem
{
public:
- PrivateAudioRootViewItem( K3bMixedDoc* doc, QListView* parent, QListViewItem* after )
- : K3bListViewItem( parent, after ),
+ PrivateAudioRootViewItem( K3bMixedDoc* doc, TQListView* tqparent, TQListViewItem* after )
+ : K3bListViewItem( tqparent, after ),
m_doc(doc)
{
setPixmap( 0, SmallIcon("sound") );
}
- QString text( int col ) const {
+ TQString text( int col ) const {
if( col == 0 )
- return i18n("Audio Tracks") + QString(" (%1)").arg(m_doc->audioDoc()->numOfTracks());
+ return i18n("Audio Tracks") + TQString(" (%1)").tqarg(m_doc->audioDoc()->numOfTracks());
else
- return QString::null;
+ return TQString();
}
private:
@@ -52,14 +52,14 @@ public:
};
-K3bMixedDirTreeView::K3bMixedDirTreeView( K3bView* view, K3bMixedDoc* doc, QWidget* parent, const char* )
- : K3bDataDirTreeView( view, doc->dataDoc(), parent ), m_doc(doc)
+K3bMixedDirTreeView::K3bMixedDirTreeView( K3bView* view, K3bMixedDoc* doc, TQWidget* tqparent, const char* )
+ : K3bDataDirTreeView( view, doc->dataDoc(), tqparent ), m_doc(doc)
{
m_audioRootItem = new PrivateAudioRootViewItem( doc, this, root() );
- connect( this, SIGNAL(selectionChanged(QListViewItem*)),
- this, SLOT(slotSelectionChanged(QListViewItem*)) );
- connect( m_doc->audioDoc(), SIGNAL(changed()), this, SLOT(slotNewAudioTracks()) );
+ connect( this, TQT_SIGNAL(selectionChanged(TQListViewItem*)),
+ this, TQT_SLOT(slotSelectionChanged(TQListViewItem*)) );
+ connect( m_doc->audioDoc(), TQT_SIGNAL(changed()), this, TQT_SLOT(slotNewAudioTracks()) );
}
@@ -68,12 +68,12 @@ K3bMixedDirTreeView::~K3bMixedDirTreeView()
}
-void K3bMixedDirTreeView::slotDropped( QDropEvent* e, QListViewItem* parent, QListViewItem* after )
+void K3bMixedDirTreeView::slotDropped( TQDropEvent* e, TQListViewItem* tqparent, TQListViewItem* after )
{
if( !e->isAccepted() )
return;
- QListViewItem* droppedItem = itemAt(e->pos());
+ TQListViewItem* droppedItem = itemAt(e->pos());
if( droppedItem == m_audioRootItem ) {
KURL::List urls;
if( KURLDrag::decode( e, urls ) ) {
@@ -81,11 +81,11 @@ void K3bMixedDirTreeView::slotDropped( QDropEvent* e, QListViewItem* parent, QLi
}
}
else
- K3bDataDirTreeView::slotDropped( e, parent, after );
+ K3bDataDirTreeView::slotDropped( e, tqparent, after );
}
-void K3bMixedDirTreeView::slotSelectionChanged( QListViewItem* i )
+void K3bMixedDirTreeView::slotSelectionChanged( TQListViewItem* i )
{
if( i == m_audioRootItem )
emit audioTreeSelected();
@@ -97,7 +97,7 @@ void K3bMixedDirTreeView::slotSelectionChanged( QListViewItem* i )
void K3bMixedDirTreeView::slotNewAudioTracks()
{
// update the tracknumber
- m_audioRootItem->repaint();
+ m_audioRootItem->tqrepaint();
}
#include "k3bmixeddirtreeview.moc"
diff --git a/src/projects/k3bmixeddirtreeview.h b/src/projects/k3bmixeddirtreeview.h
index 8a8bfe9..a7320fc 100644
--- a/src/projects/k3bmixeddirtreeview.h
+++ b/src/projects/k3bmixeddirtreeview.h
@@ -22,16 +22,17 @@
class K3bView;
class K3bMixedDoc;
-class QDropEvent;
-class QListViewItem;
+class TQDropEvent;
+class TQListViewItem;
class K3bMixedDirTreeView : public K3bDataDirTreeView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bMixedDirTreeView( K3bView* view, K3bMixedDoc* doc, QWidget* parent = 0, const char* name = 0 );
+ K3bMixedDirTreeView( K3bView* view, K3bMixedDoc* doc, TQWidget* tqparent = 0, const char* name = 0 );
~K3bMixedDirTreeView();
signals:
@@ -39,10 +40,10 @@ class K3bMixedDirTreeView : public K3bDataDirTreeView
void dataTreeSelected();
protected slots:
- void slotDropped( QDropEvent* e, QListViewItem* after, QListViewItem* parent );
+ void slotDropped( TQDropEvent* e, TQListViewItem* after, TQListViewItem* tqparent );
private slots:
- void slotSelectionChanged( QListViewItem* i );
+ void slotSelectionChanged( TQListViewItem* i );
void slotNewAudioTracks();
private:
diff --git a/src/projects/k3bmixedview.cpp b/src/projects/k3bmixedview.cpp
index 68900c7..1022d0a 100644
--- a/src/projects/k3bmixedview.cpp
+++ b/src/projects/k3bmixedview.cpp
@@ -31,10 +31,10 @@
#include <k3btoolbox.h>
#include <k3bprojectplugin.h>
-#include <qwidgetstack.h>
-#include <qsplitter.h>
-#include <qlayout.h>
-#include <qvaluelist.h>
+#include <tqwidgetstack.h>
+#include <tqsplitter.h>
+#include <tqlayout.h>
+#include <tqvaluelist.h>
#include <kdialog.h>
#include <klocale.h>
@@ -44,22 +44,22 @@
#include <kactionclasses.h>
-K3bMixedView::K3bMixedView( K3bMixedDoc* doc, QWidget* parent, const char* name )
- : K3bView( doc, parent, name ), m_doc(doc)
+K3bMixedView::K3bMixedView( K3bMixedDoc* doc, TQWidget* tqparent, const char* name )
+ : K3bView( doc, tqparent, name ), m_doc(doc)
{
- QSplitter* splitter = new QSplitter( this );
+ TQSplitter* splitter = new TQSplitter( this );
m_mixedDirTreeView = new K3bMixedDirTreeView( this, doc, splitter );
- m_widgetStack = new QWidgetStack( splitter );
+ m_widgetStack = new TQWidgetStack( splitter );
m_dataFileView = new K3bDataFileView( this, m_mixedDirTreeView, doc->dataDoc(), m_widgetStack );
m_mixedDirTreeView->setFileView( m_dataFileView );
m_audioListView = new K3bAudioTrackView( doc->audioDoc(), m_widgetStack );
setMainWidget( splitter );
- connect( m_mixedDirTreeView, SIGNAL(audioTreeSelected()),
- this, SLOT(slotAudioTreeSelected()) );
- connect( m_mixedDirTreeView, SIGNAL(dataTreeSelected()),
- this, SLOT(slotDataTreeSelected()) );
+ connect( m_mixedDirTreeView, TQT_SIGNAL(audioTreeSelected()),
+ this, TQT_SLOT(slotAudioTreeSelected()) );
+ connect( m_mixedDirTreeView, TQT_SIGNAL(dataTreeSelected()),
+ this, TQT_SLOT(slotDataTreeSelected()) );
m_widgetStack->raiseWidget( m_dataFileView );
@@ -123,7 +123,7 @@ void K3bMixedView::slotBurn()
{
if( m_doc->audioDoc()->numOfTracks() == 0 || m_doc->dataDoc()->size() == 0 ) {
KMessageBox::information( this, i18n("Please add files and audio titles to your project first."),
- i18n("No Data to Burn"), QString::null, false );
+ i18n("No Data to Burn"), TQString(), false );
}
else {
K3bProjectBurnDialog* dlg = newBurnDialog( this );
@@ -138,9 +138,9 @@ void K3bMixedView::slotBurn()
}
-K3bProjectBurnDialog* K3bMixedView::newBurnDialog( QWidget* parent, const char* name )
+K3bProjectBurnDialog* K3bMixedView::newBurnDialog( TQWidget* tqparent, const char* name )
{
- return new K3bMixedBurnDialog( m_doc, parent, name, true );
+ return new K3bMixedBurnDialog( m_doc, tqparent, name, true );
}
diff --git a/src/projects/k3bmixedview.h b/src/projects/k3bmixedview.h
index 8e52df7..1111dd3 100644
--- a/src/projects/k3bmixedview.h
+++ b/src/projects/k3bmixedview.h
@@ -21,11 +21,11 @@
#include <kurl.h>
class K3bMixedDoc;
-class QWidgetStack;
+class TQWidgetStack;
class K3bDataFileView;
class K3bMixedDirTreeView;
class K3bAudioTrackView;
-class QListViewItem;
+class TQListViewItem;
class K3bDirItem;
class K3bAudioTrackPlayer;
@@ -33,9 +33,10 @@ class K3bAudioTrackPlayer;
class K3bMixedView : public K3bView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bMixedView( K3bMixedDoc* doc, QWidget* parent = 0, const char* name = 0 );
+ K3bMixedView( K3bMixedDoc* doc, TQWidget* tqparent = 0, const char* name = 0 );
~K3bMixedView();
K3bDirItem* currentDir() const;
@@ -47,7 +48,7 @@ class K3bMixedView : public K3bView
void addUrls( const KURL::List& );
protected:
- K3bProjectBurnDialog* newBurnDialog( QWidget* parent = 0, const char* name = 0 );
+ K3bProjectBurnDialog* newBurnDialog( TQWidget* tqparent = 0, const char* name = 0 );
private slots:
void slotAudioTreeSelected();
@@ -56,7 +57,7 @@ class K3bMixedView : public K3bView
private:
K3bMixedDoc* m_doc;
- QWidgetStack* m_widgetStack;
+ TQWidgetStack* m_widgetStack;
K3bMixedDirTreeView* m_mixedDirTreeView;
K3bDataFileView* m_dataFileView;
diff --git a/src/projects/k3bmovixburndialog.cpp b/src/projects/k3bmovixburndialog.cpp
index 94238a7..1a785d8 100644
--- a/src/projects/k3bmovixburndialog.cpp
+++ b/src/projects/k3bmovixburndialog.cpp
@@ -37,14 +37,14 @@
#include <kapplication.h>
#include <kconfig.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qgroupbox.h>
-#include <qfileinfo.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqgroupbox.h>
+#include <tqfileinfo.h>
-K3bMovixBurnDialog::K3bMovixBurnDialog( K3bMovixDoc* doc, QWidget* parent, const char* name, bool modal )
- : K3bProjectBurnDialog( doc, parent, name, modal ),
+K3bMovixBurnDialog::K3bMovixBurnDialog( K3bMovixDoc* doc, TQWidget* tqparent, const char* name, bool modal )
+ : K3bProjectBurnDialog( doc, tqparent, name, modal ),
m_doc(doc)
{
prepareGui();
@@ -52,7 +52,7 @@ K3bMovixBurnDialog::K3bMovixBurnDialog( K3bMovixDoc* doc, QWidget* parent, const
m_tempDirSelectionWidget->setSelectionMode( K3bTempDirSelectionWidget::FILE );
setTitle( i18n("eMovix CD Project"),
- i18n("1 file (%1)", "%n files (%1)", m_doc->movixFileItems().count()).arg(KIO::convertSize(m_doc->size())) );
+ i18n("1 file (%1)", "%n files (%1)", m_doc->movixFileItems().count()).tqarg(KIO::convertSize(m_doc->size())) );
m_movixOptionsWidget = new K3bMovixOptionsWidget( this );
addPage( m_movixOptionsWidget, i18n("eMovix") );
@@ -67,11 +67,11 @@ K3bMovixBurnDialog::K3bMovixBurnDialog( K3bMovixDoc* doc, QWidget* parent, const
m_checkVerify = K3bStdGuiItems::verifyCheckBox( m_optionGroup );
m_optionGroupLayout->addWidget( m_checkVerify );
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
m_optionGroupLayout->addItem( spacer );
m_tempDirSelectionWidget->setSelectionMode( K3bTempDirSelectionWidget::FILE );
- QString path = m_doc->tempDir();
+ TQString path = m_doc->tempDir();
if( !path.isEmpty() ) {
m_tempDirSelectionWidget->setTempPath( path );
}
@@ -79,8 +79,8 @@ K3bMovixBurnDialog::K3bMovixBurnDialog( K3bMovixDoc* doc, QWidget* parent, const
m_tempDirSelectionWidget->setDefaultImageFileName( m_doc->isoOptions().volumeID() + ".iso" );
}
- connect( m_imageSettingsWidget->m_editVolumeName, SIGNAL(textChanged(const QString&)),
- m_tempDirSelectionWidget, SLOT(setDefaultImageFileName(const QString&)) );
+ connect( m_imageSettingsWidget->m_editVolumeName, TQT_SIGNAL(textChanged(const TQString&)),
+ m_tempDirSelectionWidget, TQT_SLOT(setDefaultImageFileName(const TQString&)) );
}
@@ -91,15 +91,15 @@ K3bMovixBurnDialog::~K3bMovixBurnDialog()
void K3bMovixBurnDialog::setupSettingsPage()
{
- QWidget* frame = new QWidget( this );
- QGridLayout* frameLayout = new QGridLayout( frame );
+ TQWidget* frame = new TQWidget( this );
+ TQGridLayout* frameLayout = new TQGridLayout( frame );
frameLayout->setSpacing( spacingHint() );
frameLayout->setMargin( marginHint() );
- QGroupBox* groupDataMode = new QGroupBox( 1, Qt::Vertical, i18n("Datatrack Mode"), frame );
+ TQGroupBox* groupDataMode = new TQGroupBox( 1, Qt::Vertical, i18n("Datatrack Mode"), frame );
m_dataModeWidget = new K3bDataModeWidget( groupDataMode );
- QGroupBox* groupMultisession = new QGroupBox( 1, Qt::Vertical, i18n("Multisession"), frame );
+ TQGroupBox* groupMultisession = new TQGroupBox( 1, Qt::Vertical, i18n("Multisession"), frame );
m_checkStartMultiSesssion = K3bStdGuiItems::startMultisessionCheckBox( groupMultisession );
frameLayout->addWidget( groupDataMode, 0, 0 );
@@ -220,13 +220,13 @@ void K3bMovixBurnDialog::slotStartClicked()
{
if( m_checkOnlyCreateImage->isChecked() ||
m_checkCacheImage->isChecked() ) {
- QFileInfo fi( m_tempDirSelectionWidget->tempPath() );
+ TQFileInfo fi( m_tempDirSelectionWidget->tempPath() );
if( fi.isDir() )
m_tempDirSelectionWidget->setTempPath( fi.filePath() + "/image.iso" );
- if( QFile::exists( m_tempDirSelectionWidget->tempPath() ) ) {
+ if( TQFile::exists( m_tempDirSelectionWidget->tempPath() ) ) {
if( KMessageBox::warningContinueCancel( this,
- i18n("Do you want to overwrite %1?").arg(m_tempDirSelectionWidget->tempPath()),
+ i18n("Do you want to overwrite %1?").tqarg(m_tempDirSelectionWidget->tempPath()),
i18n("File Exists"), i18n("Overwrite") )
!= KMessageBox::Continue )
return;
diff --git a/src/projects/k3bmovixburndialog.h b/src/projects/k3bmovixburndialog.h
index ff237c0..326a5b7 100644
--- a/src/projects/k3bmovixburndialog.h
+++ b/src/projects/k3bmovixburndialog.h
@@ -23,16 +23,17 @@
class K3bMovixDoc;
class K3bMovixOptionsWidget;
class K3bDataImageSettingsWidget;
-class QCheckBox;
+class TQCheckBox;
class K3bDataModeWidget;
class K3bMovixBurnDialog : public K3bProjectBurnDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bMovixBurnDialog( K3bMovixDoc* doc, QWidget* parent = 0, const char* name = 0, bool modal = true );
+ K3bMovixBurnDialog( K3bMovixDoc* doc, TQWidget* tqparent = 0, const char* name = 0, bool modal = true );
~K3bMovixBurnDialog();
protected slots:
@@ -53,10 +54,10 @@ class K3bMovixBurnDialog : public K3bProjectBurnDialog
K3bMovixOptionsWidget* m_movixOptionsWidget;
K3bDataImageSettingsWidget* m_imageSettingsWidget;
- QCheckBox* m_checkStartMultiSesssion;
+ TQCheckBox* m_checkStartMultiSesssion;
K3bDataModeWidget* m_dataModeWidget;
- QCheckBox* m_checkVerify;
+ TQCheckBox* m_checkVerify;
};
diff --git a/src/projects/k3bmovixdvdburndialog.cpp b/src/projects/k3bmovixdvdburndialog.cpp
index 3707e3a..fccc3b0 100644
--- a/src/projects/k3bmovixdvdburndialog.cpp
+++ b/src/projects/k3bmovixdvdburndialog.cpp
@@ -39,14 +39,14 @@
#include <kconfig.h>
#include <kdebug.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qgroupbox.h>
-#include <qfileinfo.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqgroupbox.h>
+#include <tqfileinfo.h>
-K3bMovixDvdBurnDialog::K3bMovixDvdBurnDialog( K3bMovixDvdDoc* doc, QWidget* parent, const char* name, bool modal )
- : K3bProjectBurnDialog( doc, parent, name, modal, true ),
+K3bMovixDvdBurnDialog::K3bMovixDvdBurnDialog( K3bMovixDvdDoc* doc, TQWidget* tqparent, const char* name, bool modal )
+ : K3bProjectBurnDialog( doc, tqparent, name, modal, true ),
m_doc(doc)
{
prepareGui();
@@ -54,7 +54,7 @@ K3bMovixDvdBurnDialog::K3bMovixDvdBurnDialog( K3bMovixDvdDoc* doc, QWidget* pare
m_tempDirSelectionWidget->setSelectionMode( K3bTempDirSelectionWidget::FILE );
setTitle( i18n("eMovix DVD Project"),
- i18n("1 file (%1)", "%n files (%1)", m_doc->movixFileItems().count()).arg(KIO::convertSize(m_doc->size())) );
+ i18n("1 file (%1)", "%n files (%1)", m_doc->movixFileItems().count()).tqarg(KIO::convertSize(m_doc->size())) );
m_movixOptionsWidget = new K3bMovixOptionsWidget( this );
addPage( m_movixOptionsWidget, i18n("eMovix") );
@@ -67,11 +67,11 @@ K3bMovixDvdBurnDialog::K3bMovixDvdBurnDialog( K3bMovixDvdDoc* doc, QWidget* pare
m_checkVerify = K3bStdGuiItems::verifyCheckBox( m_optionGroup );
m_optionGroupLayout->addWidget( m_checkVerify );
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
m_optionGroupLayout->addItem( spacer );
m_tempDirSelectionWidget->setSelectionMode( K3bTempDirSelectionWidget::FILE );
- QString path = m_doc->tempDir();
+ TQString path = m_doc->tempDir();
if( !path.isEmpty() ) {
m_tempDirSelectionWidget->setTempPath( path );
}
@@ -79,8 +79,8 @@ K3bMovixDvdBurnDialog::K3bMovixDvdBurnDialog( K3bMovixDvdDoc* doc, QWidget* pare
m_tempDirSelectionWidget->setDefaultImageFileName( m_doc->isoOptions().volumeID() + ".iso" );
}
- connect( m_imageSettingsWidget->m_editVolumeName, SIGNAL(textChanged(const QString&)),
- m_tempDirSelectionWidget, SLOT(setDefaultImageFileName(const QString&)) );
+ connect( m_imageSettingsWidget->m_editVolumeName, TQT_SIGNAL(textChanged(const TQString&)),
+ m_tempDirSelectionWidget, TQT_SLOT(setDefaultImageFileName(const TQString&)) );
}
@@ -187,13 +187,13 @@ void K3bMovixDvdBurnDialog::slotStartClicked()
{
if( m_checkOnlyCreateImage->isChecked() ||
m_checkCacheImage->isChecked() ) {
- QFileInfo fi( m_tempDirSelectionWidget->tempPath() );
+ TQFileInfo fi( m_tempDirSelectionWidget->tempPath() );
if( fi.isDir() )
m_tempDirSelectionWidget->setTempPath( fi.filePath() + "/image.iso" );
- if( QFile::exists( m_tempDirSelectionWidget->tempPath() ) ) {
+ if( TQFile::exists( m_tempDirSelectionWidget->tempPath() ) ) {
if( KMessageBox::warningContinueCancel( this,
- i18n("Do you want to overwrite %1?").arg(m_tempDirSelectionWidget->tempPath()),
+ i18n("Do you want to overwrite %1?").tqarg(m_tempDirSelectionWidget->tempPath()),
i18n("File Exists"), i18n("Overwrite") )
!= KMessageBox::Continue )
return;
diff --git a/src/projects/k3bmovixdvdburndialog.h b/src/projects/k3bmovixdvdburndialog.h
index df7b456..ca0b4d0 100644
--- a/src/projects/k3bmovixdvdburndialog.h
+++ b/src/projects/k3bmovixdvdburndialog.h
@@ -23,15 +23,16 @@
class K3bMovixDvdDoc;
class K3bMovixOptionsWidget;
class K3bDataImageSettingsWidget;
-class QCheckBox;
+class TQCheckBox;
class K3bMovixDvdBurnDialog : public K3bProjectBurnDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bMovixDvdBurnDialog( K3bMovixDvdDoc* doc, QWidget* parent = 0, const char* name = 0, bool modal = true );
+ K3bMovixDvdBurnDialog( K3bMovixDvdDoc* doc, TQWidget* tqparent = 0, const char* name = 0, bool modal = true );
~K3bMovixDvdBurnDialog();
protected slots:
@@ -50,7 +51,7 @@ class K3bMovixDvdBurnDialog : public K3bProjectBurnDialog
K3bMovixOptionsWidget* m_movixOptionsWidget;
K3bDataImageSettingsWidget* m_imageSettingsWidget;
- QCheckBox* m_checkVerify;
+ TQCheckBox* m_checkVerify;
};
#endif
diff --git a/src/projects/k3bmovixdvdview.cpp b/src/projects/k3bmovixdvdview.cpp
index 8173199..42b864d 100644
--- a/src/projects/k3bmovixdvdview.cpp
+++ b/src/projects/k3bmovixdvdview.cpp
@@ -22,8 +22,8 @@
#include <klocale.h>
-K3bMovixDvdView::K3bMovixDvdView( K3bMovixDvdDoc* doc, QWidget *parent, const char *name )
- : K3bMovixView( doc, parent, name )
+K3bMovixDvdView::K3bMovixDvdView( K3bMovixDvdDoc* doc, TQWidget *tqparent, const char *name )
+ : K3bMovixView( doc, tqparent, name )
{
m_doc = doc;
@@ -40,9 +40,9 @@ K3bMovixDvdView::~K3bMovixDvdView()
}
-K3bProjectBurnDialog* K3bMovixDvdView::newBurnDialog( QWidget* parent, const char* name )
+K3bProjectBurnDialog* K3bMovixDvdView::newBurnDialog( TQWidget* tqparent, const char* name )
{
- return new K3bMovixDvdBurnDialog( m_doc, parent, name, true );
+ return new K3bMovixDvdBurnDialog( m_doc, tqparent, name, true );
}
#include "k3bmovixdvdview.moc"
diff --git a/src/projects/k3bmovixdvdview.h b/src/projects/k3bmovixdvdview.h
index 643b259..d6d1977 100644
--- a/src/projects/k3bmovixdvdview.h
+++ b/src/projects/k3bmovixdvdview.h
@@ -25,13 +25,14 @@ class K3bMovixDvdDoc;
class K3bMovixDvdView : public K3bMovixView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bMovixDvdView( K3bMovixDvdDoc* doc, QWidget *parent = 0, const char *name = 0 );
+ K3bMovixDvdView( K3bMovixDvdDoc* doc, TQWidget *tqparent = 0, const char *name = 0 );
~K3bMovixDvdView();
protected:
- K3bProjectBurnDialog* newBurnDialog( QWidget* parent = 0, const char* name = 0 );
+ K3bProjectBurnDialog* newBurnDialog( TQWidget* tqparent = 0, const char* name = 0 );
private:
K3bMovixDvdDoc* m_doc;
diff --git a/src/projects/k3bmovixlistview.cpp b/src/projects/k3bmovixlistview.cpp
index 9b943d3..93b217c 100644
--- a/src/projects/k3bmovixlistview.cpp
+++ b/src/projects/k3bmovixlistview.cpp
@@ -24,17 +24,17 @@
#include <kio/global.h>
#include <kurldrag.h>
-#include <qdragobject.h>
-#include <qptrlist.h>
-#include <qevent.h>
-#include <qheader.h>
+#include <tqdragobject.h>
+#include <tqptrlist.h>
+#include <tqevent.h>
+#include <tqheader.h>
K3bMovixListViewItem::K3bMovixListViewItem( K3bMovixDoc* doc,
K3bMovixFileItem* item,
- QListView* parent,
- QListViewItem* after )
- : K3bListViewItem( parent, after ),
+ TQListView* tqparent,
+ TQListViewItem* after )
+ : K3bListViewItem( tqparent, after ),
m_doc(doc),
m_fileItem(item)
{
@@ -43,8 +43,8 @@ K3bMovixListViewItem::K3bMovixListViewItem( K3bMovixDoc* doc,
K3bMovixListViewItem::K3bMovixListViewItem( K3bMovixDoc* doc,
K3bMovixFileItem* item,
- QListViewItem* parent )
- : K3bListViewItem( parent ),
+ TQListViewItem* tqparent )
+ : K3bListViewItem( tqparent ),
m_doc(doc),
m_fileItem(item)
{
@@ -58,9 +58,9 @@ K3bMovixListViewItem::~K3bMovixListViewItem()
K3bMovixFileViewItem::K3bMovixFileViewItem( K3bMovixDoc* doc,
K3bMovixFileItem* item,
- QListView* parent,
- QListViewItem* after )
- : K3bMovixListViewItem( doc, item, parent, after ),
+ TQListView* tqparent,
+ TQListViewItem* after )
+ : K3bMovixListViewItem( doc, item, tqparent, after ),
KFileItem( 0, 0, KURL::fromPathOrURL(item->localPath()) )
{
setPixmap( 1, KFileItem::pixmap( 16, KIcon::DefaultState ) );
@@ -68,7 +68,7 @@ K3bMovixFileViewItem::K3bMovixFileViewItem( K3bMovixDoc* doc,
}
-QString K3bMovixFileViewItem::text( int col ) const
+TQString K3bMovixFileViewItem::text( int col ) const
{
//
// We add two spaces after all strings (except the once renamable)
@@ -78,13 +78,13 @@ QString K3bMovixFileViewItem::text( int col ) const
switch( col ) {
case 0:
// allowing 999 files to be added.
- return QString::number( doc()->indexOf( fileItem() ) ).rightJustify( 3, ' ' );
+ return TQString::number( doc()->indexOf( fileItem() ) ).rightJustify( 3, ' ' );
case 1:
return fileItem()->k3bName();
case 2:
{
if( fileItem()->isSymLink() )
- return i18n("Link to %1").arg(const_cast<K3bMovixFileViewItem*>(this)->mimeComment()) + " ";
+ return i18n("Link to %1").tqarg(const_cast<K3bMovixFileViewItem*>(this)->mimeComment()) + " ";
else
return const_cast<K3bMovixFileViewItem*>(this)->mimeComment() + " ";
}
@@ -100,7 +100,7 @@ QString K3bMovixFileViewItem::text( int col ) const
}
-void K3bMovixFileViewItem::setText( int col, const QString& text )
+void K3bMovixFileViewItem::setText( int col, const TQString& text )
{
if( col == 1 )
fileItem()->setK3bName( text );
@@ -109,9 +109,9 @@ void K3bMovixFileViewItem::setText( int col, const QString& text )
}
-QString K3bMovixFileViewItem::key( int, bool ) const
+TQString K3bMovixFileViewItem::key( int, bool ) const
{
- return QString::number( doc()->indexOf( fileItem() ) ).rightJustify( 10, '0' );
+ return TQString::number( doc()->indexOf( fileItem() ) ).rightJustify( 10, '0' );
}
@@ -119,8 +119,8 @@ QString K3bMovixFileViewItem::key( int, bool ) const
K3bMovixSubTitleViewItem::K3bMovixSubTitleViewItem( K3bMovixDoc* doc,
K3bMovixFileItem* item,
- K3bMovixListViewItem* parent )
- : K3bMovixListViewItem( doc, item, parent ),
+ K3bMovixListViewItem* tqparent )
+ : K3bMovixListViewItem( doc, item, tqparent ),
KFileItem( 0, 0, KURL::fromPathOrURL(item->subTitleItem()->localPath()) )
{
}
@@ -131,7 +131,7 @@ K3bMovixSubTitleViewItem::~K3bMovixSubTitleViewItem()
}
-QString K3bMovixSubTitleViewItem::text( int c ) const
+TQString K3bMovixSubTitleViewItem::text( int c ) const
{
switch( c ) {
case 1:
@@ -139,7 +139,7 @@ QString K3bMovixSubTitleViewItem::text( int c ) const
case 2:
{
if( fileItem()->subTitleItem()->isSymLink() )
- return i18n("Link to %1").arg(const_cast<K3bMovixSubTitleViewItem*>(this)->mimeComment());
+ return i18n("Link to %1").tqarg(const_cast<K3bMovixSubTitleViewItem*>(this)->mimeComment());
else
return const_cast<K3bMovixSubTitleViewItem*>(this)->mimeComment();
}
@@ -166,8 +166,8 @@ QString K3bMovixSubTitleViewItem::text( int c ) const
-K3bMovixListView::K3bMovixListView( K3bMovixDoc* doc, QWidget* parent, const char* name )
- : K3bListView( parent, name ),
+K3bMovixListView::K3bMovixListView( K3bMovixDoc* doc, TQWidget* tqparent, const char* name )
+ : K3bListView( tqparent, name ),
m_doc(doc)
{
addColumn( i18n("No.") );
@@ -189,12 +189,12 @@ K3bMovixListView::K3bMovixListView( K3bMovixDoc* doc, QWidget* parent, const cha
+ i18n("To remove or rename files use the context menu.") + "\n"
+ i18n("After that press the burn button to write the CD.") );
- connect( m_doc, SIGNAL(changed()), this, SLOT(slotChanged()) );
- connect( m_doc, SIGNAL(newMovixFileItems()), this, SLOT(slotNewFileItems()) );
- connect( m_doc, SIGNAL(movixItemRemoved(K3bMovixFileItem*)), this, SLOT(slotFileItemRemoved(K3bMovixFileItem*)) );
- connect( m_doc, SIGNAL(subTitleItemRemoved(K3bMovixFileItem*)), this, SLOT(slotSubTitleItemRemoved(K3bMovixFileItem*)) );
- connect( this, SIGNAL(dropped(KListView*, QDropEvent*, QListViewItem*)),
- this, SLOT(slotDropped(KListView*, QDropEvent*, QListViewItem*)) );
+ connect( m_doc, TQT_SIGNAL(changed()), this, TQT_SLOT(slotChanged()) );
+ connect( m_doc, TQT_SIGNAL(newMovixFileItems()), this, TQT_SLOT(slotNewFileItems()) );
+ connect( m_doc, TQT_SIGNAL(movixItemRemoved(K3bMovixFileItem*)), this, TQT_SLOT(slotFileItemRemoved(K3bMovixFileItem*)) );
+ connect( m_doc, TQT_SIGNAL(subTitleItemRemoved(K3bMovixFileItem*)), this, TQT_SLOT(slotSubTitleItemRemoved(K3bMovixFileItem*)) );
+ connect( this, TQT_SIGNAL(dropped(KListView*, TQDropEvent*, TQListViewItem*)),
+ this, TQT_SLOT(slotDropped(KListView*, TQDropEvent*, TQListViewItem*)) );
// let's see what the doc already has
slotNewFileItems();
@@ -207,7 +207,7 @@ K3bMovixListView::~K3bMovixListView()
}
-bool K3bMovixListView::acceptDrag(QDropEvent* e) const
+bool K3bMovixListView::acceptDrag(TQDropEvent* e) const
{
// the first is for built-in item moving, the second for dropping urls
return ( K3bListView::acceptDrag(e) || KURLDrag::canDecode(e) );
@@ -217,9 +217,9 @@ bool K3bMovixListView::acceptDrag(QDropEvent* e) const
void K3bMovixListView::slotNewFileItems()
{
K3bMovixFileItem* lastItem = 0;
- for( QPtrListIterator<K3bMovixFileItem> it( m_doc->movixFileItems() ); it.current(); ++it ) {
+ for( TQPtrListIterator<K3bMovixFileItem> it( m_doc->movixFileItems() ); it.current(); ++it ) {
K3bMovixFileItem* item = it.current();
- if( !m_itemMap.contains( item ) )
+ if( !m_itemMap.tqcontains( item ) )
m_itemMap.insert( item, new K3bMovixFileViewItem( m_doc, item, this, lastItem ? m_itemMap[lastItem] : 0L ) );
if( item->subTitleItem() ) {
@@ -240,7 +240,7 @@ void K3bMovixListView::slotNewFileItems()
void K3bMovixListView::slotFileItemRemoved( K3bMovixFileItem* item )
{
- if( m_itemMap.contains( item ) ) {
+ if( m_itemMap.tqcontains( item ) ) {
K3bMovixFileViewItem* vi = m_itemMap[item];
m_itemMap.erase(item);
delete vi;
@@ -250,7 +250,7 @@ void K3bMovixListView::slotFileItemRemoved( K3bMovixFileItem* item )
void K3bMovixListView::slotSubTitleItemRemoved( K3bMovixFileItem* item )
{
- if( m_itemMap.contains( item ) ) {
+ if( m_itemMap.tqcontains( item ) ) {
K3bMovixFileViewItem* vi = m_itemMap[item];
if( vi->childCount() >= 1 )
delete vi->firstChild();
@@ -258,7 +258,7 @@ void K3bMovixListView::slotSubTitleItemRemoved( K3bMovixFileItem* item )
}
-void K3bMovixListView::slotDropped( KListView*, QDropEvent* e, QListViewItem* after )
+void K3bMovixListView::slotDropped( KListView*, TQDropEvent* e, TQListViewItem* after )
{
if( !e->isAccepted() )
return;
@@ -270,8 +270,8 @@ void K3bMovixListView::slotDropped( KListView*, QDropEvent* e, QListViewItem* af
pos = m_doc->indexOf( ((K3bMovixListViewItem*)after)->fileItem() );
if( e->source() == viewport() ) {
- QPtrList<QListViewItem> sel = selectedItems();
- QPtrListIterator<QListViewItem> it(sel);
+ TQPtrList<TQListViewItem> sel = selectedItems();
+ TQPtrListIterator<TQListViewItem> it(sel);
K3bMovixFileItem* itemAfter = ( after ? ((K3bMovixListViewItem*)after)->fileItem() : 0 );
while( it.current() ) {
K3bMovixListViewItem* vi = (K3bMovixListViewItem*)it.current();
@@ -302,14 +302,14 @@ void K3bMovixListView::slotDropped( KListView*, QDropEvent* e, QListViewItem* af
}
-QDragObject* K3bMovixListView::dragObject()
+TQDragObject* K3bMovixListView::dragObject()
{
- QPtrList<QListViewItem> list = selectedItems();
+ TQPtrList<TQListViewItem> list = selectedItems();
if( list.isEmpty() )
return 0;
- QPtrListIterator<QListViewItem> it(list);
+ TQPtrListIterator<TQListViewItem> it(list);
KURL::List urls;
for( ; it.current(); ++it )
diff --git a/src/projects/k3bmovixlistview.h b/src/projects/k3bmovixlistview.h
index 7426ddb..d3b8119 100644
--- a/src/projects/k3bmovixlistview.h
+++ b/src/projects/k3bmovixlistview.h
@@ -21,7 +21,7 @@
#include <k3blistview.h>
#include <kfileitem.h>
-#include <qmap.h>
+#include <tqmap.h>
class K3bMovixDoc;
@@ -32,8 +32,8 @@ class K3bFileItem;
class K3bMovixListViewItem : public K3bListViewItem
{
public:
- K3bMovixListViewItem( K3bMovixDoc* doc, K3bMovixFileItem*, QListView* parent, QListViewItem* after );
- K3bMovixListViewItem( K3bMovixDoc* doc, K3bMovixFileItem*, QListViewItem* parent );
+ K3bMovixListViewItem( K3bMovixDoc* doc, K3bMovixFileItem*, TQListView* tqparent, TQListViewItem* after );
+ K3bMovixListViewItem( K3bMovixDoc* doc, K3bMovixFileItem*, TQListViewItem* tqparent );
~K3bMovixListViewItem();
K3bMovixFileItem* fileItem() const { return m_fileItem; }
@@ -50,22 +50,22 @@ class K3bMovixListViewItem : public K3bListViewItem
class K3bMovixFileViewItem : public K3bMovixListViewItem, public KFileItem
{
public:
- K3bMovixFileViewItem( K3bMovixDoc* doc, K3bMovixFileItem*, QListView* parent, QListViewItem* );
+ K3bMovixFileViewItem( K3bMovixDoc* doc, K3bMovixFileItem*, TQListView* tqparent, TQListViewItem* );
- QString text( int ) const;
- void setText(int col, const QString& text );
+ TQString text( int ) const;
+ void setText(int col, const TQString& text );
/** always sort according to the playlist order */
- QString key( int, bool ) const;
+ TQString key( int, bool ) const;
};
class K3bMovixSubTitleViewItem : public K3bMovixListViewItem, public KFileItem
{
public:
- K3bMovixSubTitleViewItem( K3bMovixDoc*, K3bMovixFileItem* item, K3bMovixListViewItem* parent );
+ K3bMovixSubTitleViewItem( K3bMovixDoc*, K3bMovixFileItem* item, K3bMovixListViewItem* tqparent );
~K3bMovixSubTitleViewItem();
- QString text( int ) const;
+ TQString text( int ) const;
bool isMovixFileItem() const { return false; }
};
@@ -74,27 +74,28 @@ class K3bMovixSubTitleViewItem : public K3bMovixListViewItem, public KFileItem
class K3bMovixListView : public K3bListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bMovixListView( K3bMovixDoc* doc, QWidget* parent = 0, const char* name = 0 );
+ K3bMovixListView( K3bMovixDoc* doc, TQWidget* tqparent = 0, const char* name = 0 );
~K3bMovixListView();
- QDragObject* dragObject();
+ TQDragObject* dragObject();
protected:
- bool acceptDrag(QDropEvent* e) const;
+ bool acceptDrag(TQDropEvent* e) const;
private slots:
void slotNewFileItems();
void slotFileItemRemoved( K3bMovixFileItem* );
void slotSubTitleItemRemoved( K3bMovixFileItem* );
- void slotDropped( KListView*, QDropEvent* e, QListViewItem* after );
+ void slotDropped( KListView*, TQDropEvent* e, TQListViewItem* after );
void slotChanged();
private:
K3bMovixDoc* m_doc;
- QMap<K3bFileItem*, K3bMovixFileViewItem*> m_itemMap;
+ TQMap<K3bFileItem*, K3bMovixFileViewItem*> m_itemMap;
};
#endif
diff --git a/src/projects/k3bmovixoptionswidget.cpp b/src/projects/k3bmovixoptionswidget.cpp
index 131af6b..d1aca71 100644
--- a/src/projects/k3bmovixoptionswidget.cpp
+++ b/src/projects/k3bmovixoptionswidget.cpp
@@ -24,29 +24,29 @@
#include <kglobal.h>
#include <kdebug.h>
-#include <qcheckbox.h>
-#include <qspinbox.h>
-#include <qstringlist.h>
-#include <qmap.h>
-#include <qlabel.h>
+#include <tqcheckbox.h>
+#include <tqspinbox.h>
+#include <tqstringlist.h>
+#include <tqmap.h>
+#include <tqlabel.h>
class K3bMovixOptionsWidget::LanguageSelectionHelper
{
public:
- LanguageSelectionHelper( QComboBox* box )
+ LanguageSelectionHelper( TQComboBox* box )
: m_box(box) {
}
- void insertLanguages( const QStringList& langs ) {
+ void insertLanguages( const TQStringList& langs ) {
m_box->clear();
m_langMap.clear();
- for( QStringList::const_iterator it = langs.begin(); it != langs.end(); ++it ) {
+ for( TQStringList::const_iterator it = langs.begin(); it != langs.end(); ++it ) {
if( *it == i18n("default") )
m_box->insertItem( *it );
else {
- QString lang = KGlobal::locale()->twoAlphaToLanguageName( *it );
+ TQString lang = KGlobal::locale()->twoAlphaToLanguageName( *it );
if( lang.isEmpty() )
lang = *it;
@@ -57,15 +57,15 @@ public:
}
}
- QString selectedLanguage() const {
+ TQString selectedLanguage() const {
if( m_box->currentItem() == 0 )
return i18n("default");
else
return m_langMap[m_box->currentItem()];
}
- void setLanguage( const QString& l ) {
- QMap<QString,int>::const_iterator it = m_indexMap.find(l);
+ void setLanguage( const TQString& l ) {
+ TQMap<TQString,int>::const_iterator it = m_indexMap.tqfind(l);
if( it == m_indexMap.end() )
m_box->setCurrentItem( 0 );
else
@@ -73,14 +73,14 @@ public:
}
private:
- QComboBox* m_box;
- QMap<int,QString> m_langMap;
- QMap<QString,int> m_indexMap;
+ TQComboBox* m_box;
+ TQMap<int,TQString> m_langMap;
+ TQMap<TQString,int> m_indexMap;
};
-K3bMovixOptionsWidget::K3bMovixOptionsWidget( QWidget* parent, const char* name )
- : base_K3bMovixOptionsWidget( parent, name )
+K3bMovixOptionsWidget::K3bMovixOptionsWidget( TQWidget* tqparent, const char* name )
+ : base_K3bMovixOptionsWidget( tqparent, name )
{
m_keyboardLangHelper = new LanguageSelectionHelper( m_comboKeyboardLayout );
m_helpLangHelper = new LanguageSelectionHelper( m_comboBootMessageLanguage );
@@ -151,8 +151,8 @@ void K3bMovixOptionsWidget::loadDefaults()
m_comboAudioBackground->setCurrentItem( 0 ); // default
m_comboKeyboardLayout->setCurrentItem( 0 ); // default
m_spinLoop->setValue( 1 );
- m_editAdditionalMplayerOptions->setText( QString::null );
- m_editUnwantedMplayerOptions->setText( QString::null );
+ m_editAdditionalMplayerOptions->setText( TQString() );
+ m_editUnwantedMplayerOptions->setText( TQString() );
m_comboBootMessageLanguage->setCurrentItem( 0 ); // default
m_comboDefaultBootLabel->setCurrentItem( 0 ); // default
m_checkShutdown->setChecked( false );
@@ -165,7 +165,7 @@ void K3bMovixOptionsWidget::loadDefaults()
void K3bMovixOptionsWidget::loadConfig( KConfigBase* c )
{
- QString s = c->readEntry("subtitle_fontset");
+ TQString s = c->readEntry("subtitle_fontset");
if( !s.isEmpty() && s != "none" && m_comboSubtitleFontset->contains(s) )
m_comboSubtitleFontset->setCurrentItem( s, false );
else
@@ -176,7 +176,7 @@ void K3bMovixOptionsWidget::loadConfig( KConfigBase* c )
m_editUnwantedMplayerOptions->setText( c->readEntry( "unwanted_mplayer_options" ) );
s = c->readEntry("boot_message_language");
- m_helpLangHelper->setLanguage( s == "default" ? QString::null : s );
+ m_helpLangHelper->setLanguage( s == "default" ? TQString() : s );
s = c->readEntry( "default_boot_label" );
if( !s.isEmpty() && s != "default" && m_comboDefaultBootLabel->contains(s) )
@@ -191,7 +191,7 @@ void K3bMovixOptionsWidget::loadConfig( KConfigBase* c )
m_comboAudioBackground->setCurrentItem( 0 ); // default
s = c->readEntry("keyboard_layout");
- m_keyboardLangHelper->setLanguage( s == "default" ? QString::null : s );
+ m_keyboardLangHelper->setLanguage( s == "default" ? TQString() : s );
m_checkShutdown->setChecked( c->readBoolEntry( "shutdown", false) );
m_checkReboot->setChecked( c->readBoolEntry( "reboot", false ) );
diff --git a/src/projects/k3bmovixoptionswidget.h b/src/projects/k3bmovixoptionswidget.h
index 3b9e367..76437f7 100644
--- a/src/projects/k3bmovixoptionswidget.h
+++ b/src/projects/k3bmovixoptionswidget.h
@@ -27,9 +27,10 @@ class KConfigBase;
class K3bMovixOptionsWidget : public base_K3bMovixOptionsWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bMovixOptionsWidget( QWidget* parent = 0, const char* name = 0 );
+ K3bMovixOptionsWidget( TQWidget* tqparent = 0, const char* name = 0 );
~K3bMovixOptionsWidget();
public slots:
diff --git a/src/projects/k3bmovixview.cpp b/src/projects/k3bmovixview.cpp
index 825b10b..45a30ff 100644
--- a/src/projects/k3bmovixview.cpp
+++ b/src/projects/k3bmovixview.cpp
@@ -33,34 +33,34 @@
#include <kmessagebox.h>
#include <kurl.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qlineedit.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
-K3bMovixView::K3bMovixView( K3bMovixDoc* doc, QWidget* parent, const char* name )
- : K3bView( doc, parent, name ),
+K3bMovixView::K3bMovixView( K3bMovixDoc* doc, TQWidget* tqparent, const char* name )
+ : K3bView( doc, tqparent, name ),
m_doc(doc)
{
m_listView = new K3bMovixListView( m_doc, this );
setMainWidget( m_listView );
- connect( m_listView, SIGNAL(contextMenuRequested( QListViewItem*, const QPoint& , int )),
- this, SLOT(slotContextMenuRequested(QListViewItem*, const QPoint& , int )) );
+ connect( m_listView, TQT_SIGNAL(contextMenuRequested( TQListViewItem*, const TQPoint& , int )),
+ this, TQT_SLOT(slotContextMenuRequested(TQListViewItem*, const TQPoint& , int )) );
// setup actions
m_actionProperties = new KAction( i18n("Properties"), "misc",
- 0, this, SLOT(showPropertiesDialog()),
+ 0, TQT_TQOBJECT(this), TQT_SLOT(showPropertiesDialog()),
actionCollection(), "movix_show_props" );
m_actionRemove = new KAction( i18n( "Remove" ), "editdelete",
- Key_Delete, this, SLOT(slotRemoveItems()),
+ Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(slotRemoveItems()),
actionCollection(), "movix_remove_item" );
m_actionRemoveSubTitle = new KAction( i18n( "Remove Subtitle File" ), "editdelete",
- 0, this, SLOT(slotRemoveSubTitleItems()),
+ 0, TQT_TQOBJECT(this), TQT_SLOT(slotRemoveSubTitleItems()),
actionCollection(), "movix_remove_subtitle_item" );
m_actionAddSubTitle = new KAction( i18n("Add Subtitle File..."), "",
- 0, this, SLOT(slotAddSubTitleFile()),
+ 0, TQT_TQOBJECT(this), TQT_SLOT(slotAddSubTitleFile()),
actionCollection(), "movix_add_subtitle" );
m_popupMenu = new KPopupMenu( this );
@@ -77,15 +77,15 @@ K3bMovixView::K3bMovixView( K3bMovixDoc* doc, QWidget* parent, const char* name
toolBox()->addStretch();
- m_volumeIDEdit = new QLineEdit( doc->isoOptions().volumeID(), toolBox() );
+ m_volumeIDEdit = new TQLineEdit( doc->isoOptions().volumeID(), toolBox() );
toolBox()->addLabel( i18n("Volume Name:") );
toolBox()->addSpacing();
toolBox()->addWidget( m_volumeIDEdit );
- connect( m_volumeIDEdit, SIGNAL(textChanged(const QString&)),
+ connect( m_volumeIDEdit, TQT_SIGNAL(textChanged(const TQString&)),
m_doc,
- SLOT(setVolumeID(const QString&)) );
+ TQT_SLOT(setVolumeID(const TQString&)) );
- connect( m_doc, SIGNAL(changed()), this, SLOT(slotDocChanged()) );
+ connect( m_doc, TQT_SIGNAL(changed()), TQT_TQOBJECT(this), TQT_SLOT(slotDocChanged()) );
}
@@ -94,7 +94,7 @@ K3bMovixView::~K3bMovixView()
}
-void K3bMovixView::slotContextMenuRequested(QListViewItem* item, const QPoint& p, int )
+void K3bMovixView::slotContextMenuRequested(TQListViewItem* item, const TQPoint& p, int )
{
if( item ) {
m_actionRemove->setEnabled(true);
@@ -129,8 +129,8 @@ void K3bMovixView::showPropertiesDialog()
void K3bMovixView::slotRemoveItems()
{
- QPtrList<QListViewItem> list = m_listView->selectedItems();
- QPtrListIterator<QListViewItem> it(list);
+ TQPtrList<TQListViewItem> list = m_listView->selectedItems();
+ TQPtrListIterator<TQListViewItem> it(list);
if( list.isEmpty() )
kdDebug() << "nothing to remove" << endl;
@@ -147,8 +147,8 @@ void K3bMovixView::slotRemoveItems()
void K3bMovixView::slotRemoveSubTitleItems()
{
- QPtrList<QListViewItem> list = m_listView->selectedItems();
- QPtrListIterator<QListViewItem> it(list);
+ TQPtrList<TQListViewItem> list = m_listView->selectedItems();
+ TQPtrListIterator<TQListViewItem> it(list);
if( list.isEmpty() )
kdDebug() << "nothing to remove" << endl;
@@ -162,7 +162,7 @@ void K3bMovixView::slotRemoveSubTitleItems()
void K3bMovixView::slotAddSubTitleFile()
{
- QListViewItem* item = m_listView->selectedItems().first();
+ TQListViewItem* item = m_listView->selectedItems().first();
if( K3bMovixListViewItem* vi = dynamic_cast<K3bMovixListViewItem*>(item) ) {
KURL url = KFileDialog::getOpenURL();
@@ -176,9 +176,9 @@ void K3bMovixView::slotAddSubTitleFile()
}
-K3bProjectBurnDialog* K3bMovixView::newBurnDialog( QWidget* parent, const char* name )
+K3bProjectBurnDialog* K3bMovixView::newBurnDialog( TQWidget* tqparent, const char* name )
{
- return new K3bMovixBurnDialog( m_doc, parent, name, true );
+ return new K3bMovixBurnDialog( m_doc, tqparent, name, true );
}
diff --git a/src/projects/k3bmovixview.h b/src/projects/k3bmovixview.h
index e174b64..3f07c68 100644
--- a/src/projects/k3bmovixview.h
+++ b/src/projects/k3bmovixview.h
@@ -24,21 +24,22 @@ class K3bMovixDoc;
class K3bMovixListView;
class KAction;
class KPopupMenu;
-class QListViewItem;
-class QPoint;
-class QLineEdit;
+class TQListViewItem;
+class TQPoint;
+class TQLineEdit;
class K3bMovixView : public K3bView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bMovixView( K3bMovixDoc* doc, QWidget* parent = 0, const char* name = 0 );
+ K3bMovixView( K3bMovixDoc* doc, TQWidget* tqparent = 0, const char* name = 0 );
virtual ~K3bMovixView();
private slots:
- void slotContextMenuRequested(QListViewItem*, const QPoint& , int );
+ void slotContextMenuRequested(TQListViewItem*, const TQPoint& , int );
void slotRemoveItems();
void slotRemoveSubTitleItems();
void showPropertiesDialog();
@@ -46,7 +47,7 @@ class K3bMovixView : public K3bView
void slotDocChanged();
protected:
- virtual K3bProjectBurnDialog* newBurnDialog( QWidget* parent = 0, const char* name = 0 );
+ virtual K3bProjectBurnDialog* newBurnDialog( TQWidget* tqparent = 0, const char* name = 0 );
K3bMovixListView* m_listView;
@@ -59,7 +60,7 @@ class K3bMovixView : public K3bView
KAction* m_actionAddSubTitle;
KPopupMenu* m_popupMenu;
- QLineEdit* m_volumeIDEdit;
+ TQLineEdit* m_volumeIDEdit;
};
#endif
diff --git a/src/projects/k3bmusicbrainzjob.cpp b/src/projects/k3bmusicbrainzjob.cpp
index b52c766..3b1964b 100644
--- a/src/projects/k3bmusicbrainzjob.cpp
+++ b/src/projects/k3bmusicbrainzjob.cpp
@@ -43,7 +43,7 @@ public:
}
void run();
void cancel();
- const QCString& signature() const {
+ const TQCString& signature() const {
return m_trm.signature();
}
@@ -63,7 +63,7 @@ public:
void run();
- void setSignature( const QCString& sig ) {
+ void setSignature( const TQCString& sig ) {
m_sig = sig;
}
@@ -71,18 +71,18 @@ public:
return m_results;
}
- const QString& title( unsigned int i = 0 ) const {
+ const TQString& title( unsigned int i = 0 ) const {
return m_mb.title( i );
}
- const QString& artist( unsigned int i = 0 ) const {
+ const TQString& artist( unsigned int i = 0 ) const {
return m_mb.artist( i );
}
private:
K3bMusicBrainz m_mb;
int m_results;
- QCString m_sig;
+ TQCString m_sig;
};
@@ -152,9 +152,9 @@ void K3bMusicBrainzJob::MusicBrainzThread::run()
-// cannot use this as parent for the K3bSimpleJobHandler since this has not been constructed yet
-K3bMusicBrainzJob::K3bMusicBrainzJob( QWidget* parent, const char* name )
- : K3bJob( new K3bSimpleJobHandler( 0 ), parent, name ),
+// cannot use this as tqparent for the K3bSimpleJobHandler since this has not been constructed yet
+K3bMusicBrainzJob::K3bMusicBrainzJob( TQWidget* tqparent, const char* name )
+ : K3bJob( new K3bSimpleJobHandler( 0 ), tqparent, name ),
m_canceled( false )
{
m_trmThread = new TRMThread();
@@ -162,10 +162,10 @@ K3bMusicBrainzJob::K3bMusicBrainzJob( QWidget* parent, const char* name )
m_trmJob = new K3bThreadJob( m_trmThread, this, this );
m_mbJob = new K3bThreadJob( m_mbThread, this, this );
- connect( m_trmJob, SIGNAL(percent(int)), this, SIGNAL(subPercent(int)) );
- connect( m_trmJob, SIGNAL(percent(int)), this, SLOT(slotTrmPercent(int)) );
- connect( m_trmJob, SIGNAL(finished(bool)), this, SLOT(slotTrmJobFinished(bool)) );
- connect( m_mbJob, SIGNAL(finished(bool)), this, SLOT(slotMbJobFinished(bool)) );
+ connect( m_trmJob, TQT_SIGNAL(percent(int)), this, TQT_SIGNAL(subPercent(int)) );
+ connect( m_trmJob, TQT_SIGNAL(percent(int)), this, TQT_SLOT(slotTrmPercent(int)) );
+ connect( m_trmJob, TQT_SIGNAL(finished(bool)), this, TQT_SLOT(slotTrmJobFinished(bool)) );
+ connect( m_mbJob, TQT_SIGNAL(finished(bool)), this, TQT_SLOT(slotMbJobFinished(bool)) );
}
@@ -188,7 +188,7 @@ void K3bMusicBrainzJob::start()
m_trmThread->track = m_tracks.first();
emit infoMessage( i18n("Generating fingerprint for track %1.")
- .arg(m_tracks.current()->trackNumber()), INFO );
+ .tqarg(m_tracks.current()->trackNumber()), INFO );
m_trmJob->start();
}
@@ -215,7 +215,7 @@ void K3bMusicBrainzJob::slotTrmJobFinished( bool success )
// now query musicbrainz
m_mbThread->setSignature( m_trmThread->signature() );
emit infoMessage( i18n("Querying MusicBrainz for track %1.")
- .arg(m_tracks.current()->trackNumber()), INFO );
+ .tqarg(m_tracks.current()->trackNumber()), INFO );
m_mbJob->start();
}
else {
@@ -237,29 +237,29 @@ void K3bMusicBrainzJob::slotMbJobFinished( bool success )
if( success ) {
// found entries
- QStringList resultStrings, resultStringsUnique;
+ TQStringList resultStrings, resultStringsUnique;
for( unsigned int i = 0; i < m_mbThread->results(); ++i )
resultStrings.append( m_mbThread->artist(i) + " - " + m_mbThread->title(i) );
// since we are only using the title and the artist a lot of entries are alike to us
// so to not let the user have to choose between two equal entries we trim the list down
- for( QStringList::const_iterator it = resultStrings.begin();
+ for( TQStringList::const_iterator it = resultStrings.begin();
it != resultStrings.end(); ++it )
- if( resultStringsUnique.find( *it ) == resultStringsUnique.end() )
+ if( resultStringsUnique.tqfind( *it ) == resultStringsUnique.end() )
resultStringsUnique.append( *it );
- QString s;
+ TQString s;
bool ok = true;
if( resultStringsUnique.count() > 1 )
s = KInputDialog::getItem( i18n("MusicBrainz Query"),
i18n("Found multiple matches for track %1 (%2). Please select one.")
- .arg(m_tracks.current()->trackNumber())
- .arg(m_tracks.current()->firstSource()->sourceComment()),
+ .tqarg(m_tracks.current()->trackNumber())
+ .tqarg(m_tracks.current()->firstSource()->sourceComment()),
resultStringsUnique,
0,
false,
&ok,
- dynamic_cast<QWidget*>(parent()) );
+ dynamic_cast<TQWidget*>(tqparent()) );
else
s = resultStringsUnique.first();
@@ -273,7 +273,7 @@ void K3bMusicBrainzJob::slotMbJobFinished( bool success )
// query next track
if( m_tracks.next() ) {
emit infoMessage( i18n("Generating fingerprint for track %1.")
- .arg(m_tracks.current()->trackNumber()), INFO );
+ .tqarg(m_tracks.current()->trackNumber()), INFO );
m_trmThread->track = m_tracks.current();
m_trmJob->start();
}
diff --git a/src/projects/k3bmusicbrainzjob.h b/src/projects/k3bmusicbrainzjob.h
index 5007a47..4b5a16b 100644
--- a/src/projects/k3bmusicbrainzjob.h
+++ b/src/projects/k3bmusicbrainzjob.h
@@ -27,7 +27,7 @@
class K3bAudioTrack;
class K3bThreadJob;
-class QWidget;
+class TQWidget;
/**
@@ -37,13 +37,14 @@ class QWidget;
class K3bMusicBrainzJob : public K3bJob
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
- * \param parent since we do not use this job with a normal progressdialog we need a widget
- * as parent
+ * \param tqparent since we do not use this job with a normal progressdialog we need a widget
+ * as tqparent
*/
- K3bMusicBrainzJob( QWidget* parent = 0, const char* name = 0 );
+ K3bMusicBrainzJob( TQWidget* tqparent = 0, const char* name = 0 );
~K3bMusicBrainzJob();
bool hasBeenCanceled() const { return m_canceled; }
@@ -62,7 +63,7 @@ class K3bMusicBrainzJob : public K3bJob
void start();
void cancel();
- void setTracks( const QPtrList<K3bAudioTrack>& tracks ) { m_tracks = tracks; }
+ void setTracks( const TQPtrList<K3bAudioTrack>& tracks ) { m_tracks = tracks; }
private slots:
void slotTrmPercent( int p );
@@ -78,7 +79,7 @@ class K3bMusicBrainzJob : public K3bJob
K3bThreadJob* m_trmJob;
K3bThreadJob* m_mbJob;
- QPtrList<K3bAudioTrack> m_tracks;
+ TQPtrList<K3bAudioTrack> m_tracks;
bool m_canceled;
};
diff --git a/src/projects/k3bprojectburndialog.cpp b/src/projects/k3bprojectburndialog.cpp
index 09444b0..419e3a3 100644
--- a/src/projects/k3bprojectburndialog.cpp
+++ b/src/projects/k3bprojectburndialog.cpp
@@ -27,17 +27,17 @@
#include <k3bglobals.h>
#include <k3bcore.h>
-#include <qstring.h>
-#include <qpushbutton.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qlayout.h>
-#include <qvbox.h>
-#include <qcheckbox.h>
-#include <qtabwidget.h>
-#include <qgroupbox.h>
-#include <qspinbox.h>
-#include <qlabel.h>
+#include <tqstring.h>
+#include <tqpushbutton.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqlayout.h>
+#include <tqvbox.h>
+#include <tqcheckbox.h>
+#include <tqtabwidget.h>
+#include <tqgroupbox.h>
+#include <tqspinbox.h>
+#include <tqlabel.h>
#include <klocale.h>
#include <kconfig.h>
@@ -51,8 +51,8 @@
#include <kiconloader.h>
-K3bProjectBurnDialog::K3bProjectBurnDialog( K3bDoc* doc, QWidget *parent, const char *name, bool modal, bool dvd )
- : K3bInteractionDialog( parent, name, i18n("Project"), QString::null,
+K3bProjectBurnDialog::K3bProjectBurnDialog( K3bDoc* doc, TQWidget *tqparent, const char *name, bool modal, bool dvd )
+ : K3bInteractionDialog( tqparent, name, i18n("Project"), TQString(),
START_BUTTON|SAVE_BUTTON|CANCEL_BUTTON, START_BUTTON,
"default " + doc->typeString() + " settings", modal ),
m_writerSelectionWidget(0),
@@ -197,12 +197,12 @@ void K3bProjectBurnDialog::slotStartClicked()
//
// check if the temp dir exists
//
- QString tempDir = m_tempDirSelectionWidget->tempDirectory();
- if( !QFile::exists( tempDir ) ) {
- if( KMessageBox::warningYesNo( this, i18n("Image folder '%1' does not exist. Do you want K3b to create it?").arg( tempDir ) )
+ TQString tempDir = m_tempDirSelectionWidget->tempDirectory();
+ if( !TQFile::exists( tempDir ) ) {
+ if( KMessageBox::warningYesNo( this, i18n("Image folder '%1' does not exist. Do you want K3b to create it?").tqarg( tempDir ) )
== KMessageBox::Yes ) {
if( !KStandardDirs::makeDir( tempDir ) ) {
- KMessageBox::error( this, i18n("Failed to create folder '%1'.").arg( tempDir ) );
+ KMessageBox::error( this, i18n("Failed to create folder '%1'.").tqarg( tempDir ) );
return;
}
}
@@ -223,9 +223,9 @@ void K3bProjectBurnDialog::slotStartClicked()
K3bJobProgressDialog* dlg = 0;
if( m_checkOnlyCreateImage && m_checkOnlyCreateImage->isChecked() )
- dlg = new K3bJobProgressDialog( parentWidget() );
+ dlg = new K3bJobProgressDialog( tqparentWidget() );
else
- dlg = new K3bBurnProgressDialog( parentWidget() );
+ dlg = new K3bBurnProgressDialog( tqparentWidget() );
m_job = m_doc->newBurnJob( dlg );
@@ -250,7 +250,7 @@ void K3bProjectBurnDialog::slotStartClicked()
void K3bProjectBurnDialog::prepareGui()
{
- QVBoxLayout* mainLay = new QVBoxLayout( mainWidget() );
+ TQVBoxLayout* mainLay = new TQVBoxLayout( mainWidget() );
mainLay->setAutoAdd( true );
mainLay->setMargin( 0 );
mainLay->setSpacing( KDialog::spacingHint() );
@@ -259,19 +259,19 @@ void K3bProjectBurnDialog::prepareGui()
m_writerSelectionWidget->setWantedMediumType( m_dvd ? K3bDevice::MEDIA_WRITABLE_DVD : K3bDevice::MEDIA_WRITABLE_CD );
m_writerSelectionWidget->setWantedMediumState( K3bDevice::STATE_EMPTY );
- m_tabWidget = new QTabWidget( mainWidget() );
+ m_tabWidget = new TQTabWidget( mainWidget() );
- QWidget* w = new QWidget( m_tabWidget );
+ TQWidget* w = new TQWidget( m_tabWidget );
m_tabWidget->addTab( w, i18n("Writing") );
- QGroupBox* groupWritingMode = new QGroupBox( 1, Qt::Vertical, i18n("Writing Mode"), w );
+ TQGroupBox* groupWritingMode = new TQGroupBox( 1, Qt::Vertical, i18n("Writing Mode"), w );
groupWritingMode->setInsideMargin( marginHint() );
m_writingModeWidget = new K3bWritingModeWidget( groupWritingMode );
- m_optionGroup = new QGroupBox( 0, Qt::Vertical, i18n("Settings"), w );
- m_optionGroup->layout()->setMargin(0);
- m_optionGroup->layout()->setSpacing(0);
- m_optionGroupLayout = new QVBoxLayout( m_optionGroup->layout() );
+ m_optionGroup = new TQGroupBox( 0, Qt::Vertical, i18n("Settings"), w );
+ m_optionGroup->tqlayout()->setMargin(0);
+ m_optionGroup->tqlayout()->setSpacing(0);
+ m_optionGroupLayout = new TQVBoxLayout( m_optionGroup->tqlayout() );
m_optionGroupLayout->setMargin( KDialog::marginHint() );
m_optionGroupLayout->setSpacing( KDialog::spacingHint() );
@@ -286,16 +286,16 @@ void K3bProjectBurnDialog::prepareGui()
m_optionGroupLayout->addWidget(m_checkOnlyCreateImage);
m_optionGroupLayout->addWidget(m_checkRemoveBufferFiles);
- QGroupBox* groupCopies = new QGroupBox( 2, Qt::Horizontal, i18n("Copies"), w );
+ TQGroupBox* groupCopies = new TQGroupBox( 2, Qt::Horizontal, i18n("Copies"), w );
groupCopies->setInsideSpacing( spacingHint() );
groupCopies->setInsideMargin( marginHint() );
- QLabel* pixLabel = new QLabel( groupCopies );
+ TQLabel* pixLabel = new TQLabel( groupCopies );
pixLabel->setPixmap( SmallIcon( "cdcopy", KIcon::SizeMedium ) );
pixLabel->setScaledContents( false );
- m_spinCopies = new QSpinBox( 1, 999, 1, groupCopies );
+ m_spinCopies = new TQSpinBox( 1, 999, 1, groupCopies );
// arrange it
- QGridLayout* grid = new QGridLayout( w );
+ TQGridLayout* grid = new TQGridLayout( w );
grid->setMargin( KDialog::marginHint() );
grid->setSpacing( KDialog::spacingHint() );
@@ -306,8 +306,8 @@ void K3bProjectBurnDialog::prepareGui()
grid->setRowStretch( 1, 1 );
grid->setColStretch( 1, 1 );
- QWidget* tempW = new QWidget( m_tabWidget );
- grid = new QGridLayout( tempW );
+ TQWidget* tempW = new TQWidget( m_tabWidget );
+ grid = new TQGridLayout( tempW );
grid->setMargin( KDialog::marginHint() );
grid->setSpacing( KDialog::spacingHint() );
m_tabWidget->addTab( tempW, i18n("Image") );
@@ -321,18 +321,18 @@ void K3bProjectBurnDialog::prepareGui()
setTabOrder( groupCopies, m_optionGroup );
// some default connections that should always be useful
- connect( m_writerSelectionWidget, SIGNAL(writerChanged()), this, SLOT(slotWriterChanged()) );
- connect( m_writerSelectionWidget, SIGNAL(writerChanged(K3bDevice::Device*)),
- m_writingModeWidget, SLOT(determineSupportedModesFromMedium(K3bDevice::Device*)) );
- connect( m_writerSelectionWidget, SIGNAL(writingAppChanged(int)), this, SLOT(slotWritingAppChanged(int)) );
- connect( m_checkCacheImage, SIGNAL(toggled(bool)), this, SLOT(slotToggleAll()) );
- connect( m_checkSimulate, SIGNAL(toggled(bool)), this, SLOT(slotToggleAll()) );
- connect( m_checkOnlyCreateImage, SIGNAL(toggled(bool)), this, SLOT(slotToggleAll()) );
- connect( m_writingModeWidget, SIGNAL(writingModeChanged(int)), this, SLOT(slotToggleAll()) );
+ connect( m_writerSelectionWidget, TQT_SIGNAL(writerChanged()), this, TQT_SLOT(slotWriterChanged()) );
+ connect( m_writerSelectionWidget, TQT_SIGNAL(writerChanged(K3bDevice::Device*)),
+ m_writingModeWidget, TQT_SLOT(determineSupportedModesFromMedium(K3bDevice::Device*)) );
+ connect( m_writerSelectionWidget, TQT_SIGNAL(writingAppChanged(int)), this, TQT_SLOT(slotWritingAppChanged(int)) );
+ connect( m_checkCacheImage, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggleAll()) );
+ connect( m_checkSimulate, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggleAll()) );
+ connect( m_checkOnlyCreateImage, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggleAll()) );
+ connect( m_writingModeWidget, TQT_SIGNAL(writingModeChanged(int)), this, TQT_SLOT(slotToggleAll()) );
}
-void K3bProjectBurnDialog::addPage( QWidget* page, const QString& title )
+void K3bProjectBurnDialog::addPage( TQWidget* page, const TQString& title )
{
m_tabWidget->addTab( page, title );
}
diff --git a/src/projects/k3bprojectburndialog.h b/src/projects/k3bprojectburndialog.h
index f011ae8..2e7f32f 100644
--- a/src/projects/k3bprojectburndialog.h
+++ b/src/projects/k3bprojectburndialog.h
@@ -24,11 +24,11 @@ class K3bDoc;
class K3bBurnJob;
class K3bWriterSelectionWidget;
class K3bTempDirSelectionWidget;
-class QGroupBox;
-class QCheckBox;
-class QTabWidget;
-class QSpinBox;
-class QVBoxLayout;
+class TQGroupBox;
+class TQCheckBox;
+class TQTabWidget;
+class TQSpinBox;
+class TQVBoxLayout;
class K3bWritingModeWidget;
class KConfigBase;
@@ -39,9 +39,10 @@ class KConfigBase;
class K3bProjectBurnDialog : public K3bInteractionDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bProjectBurnDialog( K3bDoc* doc, QWidget *parent=0, const char *name=0,
+ K3bProjectBurnDialog( K3bDoc* doc, TQWidget *tqparent=0, const char *name=0,
bool modal = true, bool dvd = false );
~K3bProjectBurnDialog();
@@ -162,7 +163,7 @@ class K3bProjectBurnDialog : public K3bInteractionDialog
void prepareGui();
- void addPage( QWidget*, const QString& title );
+ void addPage( TQWidget*, const TQString& title );
/**
* Call this if you must reimplement it.
@@ -173,18 +174,18 @@ class K3bProjectBurnDialog : public K3bInteractionDialog
K3bWriterSelectionWidget* m_writerSelectionWidget;
K3bTempDirSelectionWidget* m_tempDirSelectionWidget;
K3bWritingModeWidget* m_writingModeWidget;
- QGroupBox* m_optionGroup;
- QVBoxLayout* m_optionGroupLayout;
- QCheckBox* m_checkCacheImage;
- QCheckBox* m_checkSimulate;
- QCheckBox* m_checkRemoveBufferFiles;
- QCheckBox* m_checkOnlyCreateImage;
- QSpinBox* m_spinCopies;
+ TQGroupBox* m_optionGroup;
+ TQVBoxLayout* m_optionGroupLayout;
+ TQCheckBox* m_checkCacheImage;
+ TQCheckBox* m_checkSimulate;
+ TQCheckBox* m_checkRemoveBufferFiles;
+ TQCheckBox* m_checkOnlyCreateImage;
+ TQSpinBox* m_spinCopies;
private:
K3bDoc* m_doc;
K3bBurnJob* m_job;
- QTabWidget* m_tabWidget;
+ TQTabWidget* m_tabWidget;
bool m_dvd;
};
diff --git a/src/projects/k3bprojectplugindialog.cpp b/src/projects/k3bprojectplugindialog.cpp
index a28f563..4a6d1fb 100644
--- a/src/projects/k3bprojectplugindialog.cpp
+++ b/src/projects/k3bprojectplugindialog.cpp
@@ -17,13 +17,13 @@
#include <k3bprojectplugin.h>
-#include <qwidget.h>
+#include <tqwidget.h>
-K3bProjectPluginDialog::K3bProjectPluginDialog( K3bProjectPlugin* plugin, K3bDoc* doc, QWidget* parent, const char* name )
- : K3bInteractionDialog( parent, name,
- QString::null,
- QString::null,
+K3bProjectPluginDialog::K3bProjectPluginDialog( K3bProjectPlugin* plugin, K3bDoc* doc, TQWidget* tqparent, const char* name )
+ : K3bInteractionDialog( tqparent, name,
+ TQString(),
+ TQString(),
START_BUTTON|CANCEL_BUTTON,
START_BUTTON,
plugin->className() ),
diff --git a/src/projects/k3bprojectplugindialog.h b/src/projects/k3bprojectplugindialog.h
index f2250d7..6a213fa 100644
--- a/src/projects/k3bprojectplugindialog.h
+++ b/src/projects/k3bprojectplugindialog.h
@@ -27,9 +27,10 @@ class KConfigBase;
class K3bProjectPluginDialog : public K3bInteractionDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bProjectPluginDialog( K3bProjectPlugin*, K3bDoc*, QWidget*, const char* name = 0 );
+ K3bProjectPluginDialog( K3bProjectPlugin*, K3bDoc*, TQWidget*, const char* name = 0 );
~K3bProjectPluginDialog();
protected slots:
diff --git a/src/projects/k3bvcdburndialog.cpp b/src/projects/k3bvcdburndialog.cpp
index 3c45c14..07c7b85 100644
--- a/src/projects/k3bvcdburndialog.cpp
+++ b/src/projects/k3bvcdburndialog.cpp
@@ -13,19 +13,19 @@
* See the file "COPYING" for the exact licensing terms.
*/
-#include <qcheckbox.h>
-#include <qgroupbox.h>
-#include <qspinbox.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qgrid.h>
-#include <qtoolbutton.h>
-#include <qfileinfo.h>
+#include <tqcheckbox.h>
+#include <tqgroupbox.h>
+#include <tqspinbox.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqgrid.h>
+#include <tqtoolbutton.h>
+#include <tqfileinfo.h>
#include <klocale.h>
#include <kconfig.h>
@@ -47,14 +47,14 @@
#include <k3bexternalbinmanager.h>
#include <k3bvalidators.h>
-K3bVcdBurnDialog::K3bVcdBurnDialog( K3bVcdDoc* _doc, QWidget *parent, const char *name, bool modal )
- : K3bProjectBurnDialog( _doc, parent, name, modal )
+K3bVcdBurnDialog::K3bVcdBurnDialog( K3bVcdDoc* _doc, TQWidget *tqparent, const char *name, bool modal )
+ : K3bProjectBurnDialog( _doc, tqparent, name, modal )
{
m_vcdDoc = _doc;
prepareGui();
- QString vcdType;
+ TQString vcdType;
switch ( m_vcdDoc->vcdType() ) {
case K3bVcdDoc::VCD11:
vcdType = i18n( "Video CD (Version 1.1)" );
@@ -62,14 +62,14 @@ K3bVcdBurnDialog::K3bVcdBurnDialog( K3bVcdDoc* _doc, QWidget *parent, const char
vcdType = i18n( "Video CD (Version 2.0)" );
case K3bVcdDoc::SVCD10:
vcdType = i18n( "Super Video CD" );
- case K3bVcdDoc::HQVCD:
+ case K3bVcdDoc::HTQVCD:
vcdType = i18n( "High-Quality Video CD" );
default:
vcdType = i18n( "Video CD" );
}
setTitle( vcdType, i18n( "1 MPEG (%1)", "%n MPEGs (%1)",
- m_vcdDoc->tracks() ->count() ).arg( KIO::convertSize( m_vcdDoc->size() ) ) );
+ m_vcdDoc->tracks() ->count() ).tqarg( KIO::convertSize( m_vcdDoc->size() ) ) );
const K3bExternalBin* cdrecordBin = k3bcore->externalBinManager() ->binObject( "cdrecord" );
if ( cdrecordBin && cdrecordBin->hasFeature( "cuefile" ) )
@@ -79,77 +79,77 @@ K3bVcdBurnDialog::K3bVcdBurnDialog( K3bVcdDoc* _doc, QWidget *parent, const char
m_checkCacheImage->hide();
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
m_optionGroupLayout->addItem( spacer );
setupVideoCdTab();
setupLabelTab();
setupAdvancedTab();
- connect( m_spinVolumeCount, SIGNAL( valueChanged( int ) ), this, SLOT( slotSpinVolumeCount() ) );
- connect( m_groupVcdFormat, SIGNAL( clicked( int ) ), this, SLOT( slotVcdTypeClicked( int ) ) );
- connect( m_checkCdiSupport, SIGNAL( toggled( bool ) ), this, SLOT( slotCdiSupportChecked( bool ) ) );
- connect( m_checkAutoDetect, SIGNAL( toggled( bool ) ), this, SLOT( slotAutoDetect( bool ) ) );
- connect( m_checkGaps, SIGNAL( toggled( bool ) ), this, SLOT( slotGapsChecked( bool ) ) );
+ connect( m_spinVolumeCount, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( slotSpinVolumeCount() ) );
+ connect( m_groupVcdFormat, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( slotVcdTypeClicked( int ) ) );
+ connect( m_checkCdiSupport, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotCdiSupportChecked( bool ) ) );
+ connect( m_checkAutoDetect, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotAutoDetect( bool ) ) );
+ connect( m_checkGaps, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotGapsChecked( bool ) ) );
// ToolTips
// -------------------------------------------------------------------------
- QToolTip::add
- ( m_radioVcd11, i18n( "Select Video CD type %1" ).arg( "(VCD 1.1)" ) );
- QToolTip::add
- ( m_radioVcd20, i18n( "Select Video CD type %1" ).arg( "(VCD 2.0)" ) );
- QToolTip::add
- ( m_radioSvcd10, i18n( "Select Video CD type %1" ).arg( "(SVCD 1.0)" ) );
- QToolTip::add
- ( m_radioHqVcd10, i18n( "Select Video CD type %1" ).arg( "(HQ-VCD 1.0)" ) );
- QToolTip::add
+ TQToolTip::add
+ ( m_radioVcd11, i18n( "Select Video CD type %1" ).tqarg( "(VCD 1.1)" ) );
+ TQToolTip::add
+ ( m_radioVcd20, i18n( "Select Video CD type %1" ).tqarg( "(VCD 2.0)" ) );
+ TQToolTip::add
+ ( m_radioSvcd10, i18n( "Select Video CD type %1" ).tqarg( "(SVCD 1.0)" ) );
+ TQToolTip::add
+ ( m_radioHqVcd10, i18n( "Select Video CD type %1" ).tqarg( "(HQ-VCD 1.0)" ) );
+ TQToolTip::add
( m_checkAutoDetect, i18n( "Automatic video type recognition." ) );
- QToolTip::add
+ TQToolTip::add
( m_checkNonCompliant, i18n( "Non-compliant compatibility mode for broken devices" ) );
- QToolTip::add
+ TQToolTip::add
( m_checkVCD30interpretation, i18n( "Chinese VCD3.0 track interpretation" ) );
- QToolTip::add
+ TQToolTip::add
( m_check2336, i18n( "Use 2336 byte sectors for output" ) );
- QToolTip::add
+ TQToolTip::add
( m_editVolumeId, i18n( "Specify ISO volume label for Video CD" ) );
- QToolTip::add
+ TQToolTip::add
( m_editAlbumId, i18n( "Specify album id for VideoCD set" ) );
- QToolTip::add
+ TQToolTip::add
( m_spinVolumeNumber, i18n( "Specify album set sequence number ( <= volume-count )" ) );
- QToolTip::add
+ TQToolTip::add
( m_spinVolumeCount, i18n( "Specify number of volumes in album set" ) );
- QToolTip::add
+ TQToolTip::add
( m_checkCdiSupport, i18n( "Enable CD-i Application Support for VideoCD Type 1.1 & 2.0" ) );
- QToolTip::add
+ TQToolTip::add
( m_editCdiCfg, i18n( "Configuration parameters (only for VCD 2.0)" ) );
- QToolTip::add
+ TQToolTip::add
( m_checkPbc, i18n( "Playback control, PBC, is available for Video CD 2.0 and Super Video CD 1.0 disc formats." ) );
- QToolTip::add
+ TQToolTip::add
( m_checkSegmentFolder, i18n( "Add always an empty `/SEGMENT' directory" ) );
- QToolTip::add
+ TQToolTip::add
( m_checkRelaxedAps, i18n( "This controls whether APS constraints are strict or relaxed. " ) );
- QToolTip::add
+ TQToolTip::add
( m_checkUpdateScanOffsets, i18n( "This controls whether to update the scan data information contained in the MPEG-2 video streams." ) );
- QToolTip::add
+ TQToolTip::add
( m_labelRestriction, i18n( "This element allows to set viewing restrictions which may be interpreted by the playing device." ) );
- QToolTip::add
+ TQToolTip::add
( m_checkGaps, i18n( "This option allows customization of Gaps and Margins." ) );
- QToolTip::add
+ TQToolTip::add
( m_labelPreGapLeadout, i18n( "Used to set the number of empty sectors added before the lead-out area begins." ) );
- QToolTip::add
+ TQToolTip::add
( m_labelPreGapTrack, i18n( "Used to set the track pre-gap for all tracks in sectors globally." ) );
- QToolTip::add
+ TQToolTip::add
( m_labelFrontMarginTrack, i18n( "Sets the front margin for sequence items." ) );
- QToolTip::add
+ TQToolTip::add
( m_labelRearMarginTrack, i18n( "Sets the rear margin for sequence items." ) );
// What's This info
// -------------------------------------------------------------------------
- QWhatsThis::add
+ TQWhatsThis::add
( m_radioVcd11, i18n( "<p>This is the most basic <b>Video CD</b> specification dating back to 1993, which has the following characteristics:"
"<ul><li>One mode2 mixed form ISO-9660 track containing file pointers to the information areas.</li>"
"<li>Up to 98 multiplex-ed MPEG-1 audio/video streams or CD-DA audio tracks.</li>"
@@ -161,7 +161,7 @@ K3bVcdBurnDialog::K3bVcdBurnDialog( K3bVcdDoc* _doc, QWidget *parent, const char
"<p>The CBR MPEG-1, layer II audio stream is fixed at 224 kbps with 1 stereo or 2 mono channels."
"<p><b>It is recommended to keep the video bit-rate under 1151929.1 bps.</b>" ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_radioVcd20, i18n( "<p>About two years after the Video CD 1.1 specification came out, an improved <b>Video CD 2.0</b> standard was published in 1995."
"<p>This one added the following items to the features already available in the Video CD 1.1 specification:"
"<ul><li>Support for MPEG segment play items (<b>\"SPI\"</b>), consisting of still pictures, motion pictures and/or audio (only) streams was added.</li>"
@@ -180,7 +180,7 @@ K3bVcdBurnDialog::K3bVcdBurnDialog( K3bVcdDoc* _doc, QWidget *parent, const char
"<p>Also the possibility to have audio only streams and still pictures was provided."
"<p><b>The bit-rate of multiplex-ed streams should be kept under 174300 bytes/sec (except for single still picture items) in order to accommodate single speed drives.</b>" ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_radioSvcd10, i18n( "<p>With the upcoming of the DVD-V media, a new VCD standard had to be published in order to be able to keep up with technology, so the Super Video CD specification was called into life 1999."
"<p>In the midst of 2000 a full subset of this <b>Super Video CD</b> specification was published as <b>IEC-62107</b>."
"<p>As the most notable change over Video CD 2.0 is a switch from MPEG-1 CBR to MPEG-2 VBR encoding for the video stream was performed."
@@ -194,7 +194,7 @@ K3bVcdBurnDialog::K3bVcdBurnDialog( K3bVcdDoc* _doc, QWidget *parent, const char
"<ul><li>480 x 480 @ 29.97 Hz (NTSC 2/3 D-2).</li>"
"<li>480 x 576 @ 25 Hz (PAL 2/3 D-2).</li></ul>" ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_radioHqVcd10, i18n( "<p>This is actually just a minor variation defined in IEC-62107 on the Super Video CD 1.0 format for compatibility with current products in the market."
"<p>It differs from the Super Video CD 1.0 format in the following items:"
"<ul><li>The system profile tag field in <b>/SVCD/INFO.SVD</b> is set to <b>1</b> instead of <b>0</b>.</li>"
@@ -202,59 +202,59 @@ K3bVcdBurnDialog::K3bVcdBurnDialog( K3bVcdDoc* _doc, QWidget *parent, const char
"<li><b>/EXT/SCANDATA.DAT</b> is mandatory instead of being optional.</li>"
"<li><b>/SVCD/SEARCH.DAT</b> is optional instead of being mandatory.</li></ul>" ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_checkAutoDetect, i18n( "<p>If Autodetect is:</p>"
"<ul><li>ON then K3b will set the correct VideoCD type.</li>"
"<li>OFF then the correct VideoCD type needs to be set by the user.</li></ul>"
"<p>If you are not sure about the correct VideoCD type, it is best to turn Autodetect ON.</p>"
"<p>If you want to force the VideoCD type, you must turn Autodetect OFF. This is useful for some standalone DVD players without SVCD support.</p>" ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_checkNonCompliant, i18n( "<ul><li>Rename <b>\"/MPEG2\"</b> folder on SVCDs to (non-compliant) \"/MPEGAV\".</li>"
"<li>Enables the use of the (deprecated) signature <b>\"ENTRYSVD\"</b> instead of <b>\"ENTRYVCD\"</b> for the file <b>\"/SVCD/ENTRY.SVD\"</b>.</li></ul>" ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_checkVCD30interpretation, i18n( "<ul><li>Enables the use of the (deprecated) Chinese <b>\"/SVCD/TRACKS.SVD\"</b> format which differs from the format defined in the <b>IEC-62107</b> specification.</li></ul>"
"<p><b>The differences are most exposed on SVCDs containing more than one video track.</b>" ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_check2336, i18n( "<p>though most devices will have problems with such an out-of-specification media."
"<p><b>You may want use this option for images longer than 80 minutes</b>" ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_checkCdiSupport, i18n( "<p>To allow the play of Video-CDs on a CD-i player, the Video-CD standard requires that a CD-i application program must be present."
"<p>This program is designed to:"
"<ul><li>provide full play back control as defined in the PSD of the standard</l>"
"<li>be extremely simple to use and easy-to-learn for the end-user</li></ul>"
"<p>The program runs on CD-i players equipped with the CDRTOS 1.1(.1) operating system and a Digital Video extension cartridge." ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_editCdiCfg, i18n( "<p>Configuration parameters only available for VideoCD 2.0"
"<p>The engine works perfectly well when used as-is."
"<p>You have the option to configure the VCD application."
- "<p>You can adapt the color and/or the shape of the cursor and lots more." ) );
+ "<p>You can adapt the color and/or the tqshape of the cursor and lots more." ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_checkPbc, i18n( "<p>Playback control, PBC, is available for Video CD 2.0 and Super Video CD 1.0 disc formats."
"<p>PBC allows control of the playback of play items and the possibility of interaction with the user through the remote control or some other input device available." ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_checkSegmentFolder, i18n( "<p>Here you can specify that the folder <b>SEGMENT</b> should always be present."
"<p>Some DVD players need the folder to give a faultless rendition." ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_checkRelaxedAps, i18n( "<p>An Access Point Sector, APS, is an MPEG video sector on the VCD/SVCD which is suitable to be jumped to directly."
"<p>APS are required for entry points and scantables. APS have to fulfil the requirement to precede every I-frame by a GOP header which shall be preceded by a sequence header in its turn."
"<p>The start codes of these 3 items are required to be contained all in the same MPEG pack/sector, thus forming a so-called access point sector."
"<p>This requirement can be relaxed by enabling the relaxed aps option, i.e. every sector containing an I-frame will be regarded as an APS."
"<p><b>Warning:</b> The sequence header is needed for a playing device to figure out display parameters, such as display resolution and frame rate, relaxing the aps requirement may lead to non-working entry points." ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_checkUpdateScanOffsets, i18n( "<p>According to the specification, it is mandatory for Super Video CDs to encode scan information data into user data blocks in the picture layer of all intra coded picture."
"<p>It can be used by playing devices for implementing fast forward & fast reverse scanning."
"<p>The already existing scan information data can be updated by enabling the update scan offsets option." ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_labelRestriction, i18n( "<p>Viewing Restriction may be interpreted by the playing device."
"<p>The allowed range goes from 0 to 3."
"<ul><li>0 = unrestricted, free to view for all</li>"
@@ -262,25 +262,25 @@ K3bVcdBurnDialog::K3bVcdBurnDialog( K3bVcdDoc* _doc, QWidget *parent, const char
"<p>Actually, the exact meaning is not defined and is player dependant."
"<p><b>Most players ignore that value.<b>" ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_checkGaps, i18n( "<p>This option allows customization of Gaps and Margins." ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_labelPreGapLeadout, i18n( "<p>This option allows to set the number of empty sectors added before the lead-out area begins, i.e. the number of post-gap sectors."
"<p>The ECMA-130 specification requires the last data track before the lead-out to carry a post-gap of at least 150 sectors, which is used as default for this parameter."
"<p>Some operating systems may encounter I/O errors due to read-ahead issues when reading the last MPEG track if this parameter is set too low."
"<p>Allowed value content: [0..300]. Default: 150." ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_labelPreGapTrack, i18n( "<p>Used to set the track pre-gap for all tracks in sectors globally."
"<p>The specification requires the pre-gaps to be at least 150 sectors long."
"<p>Allowed value content: [0..300]. Default: 150." ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_labelFrontMarginTrack, i18n( "Margins are used to compensate for inaccurate sector-addressing issues on CD-ROM media. Interestingly, they have been abandoned for Super Video CDs."
"<p>For Video CD 1.0/1.1/2.0 this margin should be at least 15 sectors long."
"<p>Allowed value content: [0..150]. Default: 30 for Video CD 1.0/1.1/2.0, otherwise (i.e. Super Video CD 1.0 and HQ-VCD 1.0) 0." ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_labelRearMarginTrack, i18n( "<p>Margins are used to compensate for inaccurate sector-addressing issues on CD-ROM media. Interestingly, they have been abandoned for Super Video CDs."
"<p>For Video CD 1.0/1.1/2.0 this margin should be at least 15 sectors long."
"<p>Allowed value content: [0..150]. Default: 45 for Video CD 1.0/1.1/2.0, otherwise 0." ) );
@@ -293,52 +293,52 @@ K3bVcdBurnDialog::~K3bVcdBurnDialog()
void K3bVcdBurnDialog::setupAdvancedTab()
{
- QWidget * w = new QWidget( this );
+ TQWidget * w = new TQWidget( this );
// ---------------------------------------------------- generic group ----
- m_groupGeneric = new QGroupBox( 5, Qt::Vertical, i18n( "Generic" ), w );
+ m_groupGeneric = new TQGroupBox( 5, Qt::Vertical, i18n( "Generic" ), w );
- m_checkPbc = new QCheckBox( i18n( "Playback Control (PBC)" ), m_groupGeneric );
- m_checkSegmentFolder = new QCheckBox( i18n( "SEGMENT Folder must always be present" ), m_groupGeneric );
- m_checkRelaxedAps = new QCheckBox( i18n( "Relaxed aps" ), m_groupGeneric );
- m_checkUpdateScanOffsets = new QCheckBox( i18n( "Update scan offsets" ), m_groupGeneric );
+ m_checkPbc = new TQCheckBox( i18n( "Playback Control (PBC)" ), m_groupGeneric );
+ m_checkSegmentFolder = new TQCheckBox( i18n( "SEGMENT Folder must always be present" ), m_groupGeneric );
+ m_checkRelaxedAps = new TQCheckBox( i18n( "Relaxed aps" ), m_groupGeneric );
+ m_checkUpdateScanOffsets = new TQCheckBox( i18n( "Update scan offsets" ), m_groupGeneric );
m_checkUpdateScanOffsets->setEnabled( false );
// -------------------------------------------- gaps & margins group ----
- m_groupGaps = new QGroupBox( 0, Qt::Vertical, i18n( "Gaps" ), w );
- m_groupGaps->layout() ->setSpacing( spacingHint() );
- m_groupGaps->layout() ->setMargin( marginHint() );
+ m_groupGaps = new TQGroupBox( 0, Qt::Vertical, i18n( "Gaps" ), w );
+ m_groupGaps->tqlayout() ->setSpacing( spacingHint() );
+ m_groupGaps->tqlayout() ->setMargin( marginHint() );
- QGridLayout* groupGapsLayout = new QGridLayout( m_groupGaps->layout() );
- groupGapsLayout->setAlignment( Qt::AlignTop );
+ TQGridLayout* groupGapsLayout = new TQGridLayout( m_groupGaps->tqlayout() );
+ groupGapsLayout->tqsetAlignment( TQt::AlignTop );
- m_checkGaps = new QCheckBox( i18n( "Customize gaps and margins" ), m_groupGaps );
+ m_checkGaps = new TQCheckBox( i18n( "Customize gaps and margins" ), m_groupGaps );
- m_labelPreGapLeadout = new QLabel( i18n( "Leadout pre gap (0..300):" ), m_groupGaps, "labelPreGapLeadout" );
- m_spinPreGapLeadout = new QSpinBox( m_groupGaps, "m_spinPreGapLeadout" );
+ m_labelPreGapLeadout = new TQLabel( i18n( "Leadout pre gap (0..300):" ), m_groupGaps, "labelPreGapLeadout" );
+ m_spinPreGapLeadout = new TQSpinBox( m_groupGaps, "m_spinPreGapLeadout" );
m_spinPreGapLeadout->setMinValue( 0 );
m_spinPreGapLeadout->setMaxValue( 300 );
- m_labelPreGapTrack = new QLabel( i18n( "Track pre gap (0..300):" ), m_groupGaps, "labelPreGapTrack" );
- m_spinPreGapTrack = new QSpinBox( m_groupGaps, "m_spinPreGapTrack" );
+ m_labelPreGapTrack = new TQLabel( i18n( "Track pre gap (0..300):" ), m_groupGaps, "labelPreGapTrack" );
+ m_spinPreGapTrack = new TQSpinBox( m_groupGaps, "m_spinPreGapTrack" );
m_spinPreGapTrack->setMinValue( 0 );
m_spinPreGapTrack->setMaxValue( 300 );
- m_labelFrontMarginTrack = new QLabel( i18n( "Track front margin (0..150):" ), m_groupGaps, "labelFrontMarginTrack" );
- m_spinFrontMarginTrack = new QSpinBox( m_groupGaps, "m_spinFrontMarginTrack" );
+ m_labelFrontMarginTrack = new TQLabel( i18n( "Track front margin (0..150):" ), m_groupGaps, "labelFrontMarginTrack" );
+ m_spinFrontMarginTrack = new TQSpinBox( m_groupGaps, "m_spinFrontMarginTrack" );
m_spinFrontMarginTrack->setMinValue( 0 );
m_spinFrontMarginTrack->setMaxValue( 150 );
- m_spinFrontMarginTrackSVCD = new QSpinBox( m_groupGaps, "m_spinFrontMarginTrackSVCD" );
+ m_spinFrontMarginTrackSVCD = new TQSpinBox( m_groupGaps, "m_spinFrontMarginTrackSVCD" );
m_spinFrontMarginTrackSVCD->setMinValue( 0 );
m_spinFrontMarginTrackSVCD->setMaxValue( 150 );
m_spinFrontMarginTrackSVCD->setHidden( true );
- m_labelRearMarginTrack = new QLabel( i18n( "Track rear margin (0..150):" ), m_groupGaps, "labelRearMarginTrack" );
- m_spinRearMarginTrack = new QSpinBox( m_groupGaps, "m_spinRearMarginTrack" );
+ m_labelRearMarginTrack = new TQLabel( i18n( "Track rear margin (0..150):" ), m_groupGaps, "labelRearMarginTrack" );
+ m_spinRearMarginTrack = new TQSpinBox( m_groupGaps, "m_spinRearMarginTrack" );
m_spinRearMarginTrack->setMinValue( 0 );
m_spinRearMarginTrack->setMaxValue( 150 );
- m_spinRearMarginTrackSVCD = new QSpinBox( m_groupGaps, "m_spinRearMarginTrackSVCD" );
+ m_spinRearMarginTrackSVCD = new TQSpinBox( m_groupGaps, "m_spinRearMarginTrackSVCD" );
m_spinRearMarginTrackSVCD->setMinValue( 0 );
m_spinRearMarginTrackSVCD->setMaxValue( 150 );
m_spinRearMarginTrackSVCD->setHidden( true );
@@ -402,15 +402,15 @@ void K3bVcdBurnDialog::setupAdvancedTab()
groupGapsLayout->setRowStretch( 4, 0 );
// ------------------------------------------------------- misc group ----
- m_groupMisc = new QGroupBox( 0, Qt::Vertical, i18n( "Misc" ), w );
- m_groupMisc->layout() ->setSpacing( spacingHint() );
- m_groupMisc->layout() ->setMargin( marginHint() );
+ m_groupMisc = new TQGroupBox( 0, Qt::Vertical, i18n( "Misc" ), w );
+ m_groupMisc->tqlayout() ->setSpacing( spacingHint() );
+ m_groupMisc->tqlayout() ->setMargin( marginHint() );
- QGridLayout* groupMiscLayout = new QGridLayout( m_groupMisc->layout() );
- groupMiscLayout->setAlignment( Qt::AlignTop );
+ TQGridLayout* groupMiscLayout = new TQGridLayout( m_groupMisc->tqlayout() );
+ groupMiscLayout->tqsetAlignment( TQt::AlignTop );
- m_labelRestriction = new QLabel( i18n( "Restriction category (0..3):" ), m_groupMisc, "m_labelRestriction" );
- m_spinRestriction = new QSpinBox( m_groupMisc, "m_spinRestriction" );
+ m_labelRestriction = new TQLabel( i18n( "Restriction category (0..3):" ), m_groupMisc, "m_labelRestriction" );
+ m_spinRestriction = new TQSpinBox( m_groupMisc, "m_spinRestriction" );
m_spinRestriction->setMinValue( 0 );
m_spinRestriction->setMaxValue( 3 );
@@ -419,7 +419,7 @@ void K3bVcdBurnDialog::setupAdvancedTab()
groupMiscLayout->setRowStretch( 2, 0 );
// ----------------------------------------------------------------------
- QGridLayout* grid = new QGridLayout( w );
+ TQGridLayout* grid = new TQGridLayout( w );
grid->setMargin( marginHint() );
grid->setSpacing( spacingHint() );
grid->addWidget( m_groupGeneric, 0, 0 );
@@ -431,42 +431,42 @@ void K3bVcdBurnDialog::setupAdvancedTab()
void K3bVcdBurnDialog::setupVideoCdTab()
{
- QWidget * w = new QWidget( this );
+ TQWidget * w = new TQWidget( this );
// ---------------------------------------------------- Format group ----
- m_groupVcdFormat = new QButtonGroup( 4, Qt::Vertical, i18n( "Type" ), w );
- m_radioVcd11 = new QRadioButton( i18n( "VideoCD 1.1" ), m_groupVcdFormat );
- m_radioVcd20 = new QRadioButton( i18n( "VideoCD 2.0" ), m_groupVcdFormat );
- m_radioSvcd10 = new QRadioButton( i18n( "Super-VideoCD" ), m_groupVcdFormat );
- m_radioHqVcd10 = new QRadioButton( i18n( "HQ-VideoCD" ), m_groupVcdFormat );
+ m_groupVcdFormat = new TQButtonGroup( 4, Qt::Vertical, i18n( "Type" ), w );
+ m_radioVcd11 = new TQRadioButton( i18n( "VideoCD 1.1" ), m_groupVcdFormat );
+ m_radioVcd20 = new TQRadioButton( i18n( "VideoCD 2.0" ), m_groupVcdFormat );
+ m_radioSvcd10 = new TQRadioButton( i18n( "Super-VideoCD" ), m_groupVcdFormat );
+ m_radioHqVcd10 = new TQRadioButton( i18n( "HQ-VideoCD" ), m_groupVcdFormat );
m_groupVcdFormat->setExclusive( true );
// ---------------------------------------------------- Options group ---
- m_groupOptions = new QGroupBox( 5, Qt::Vertical, i18n( "Settings" ), w );
- m_checkAutoDetect = new QCheckBox( i18n( "Autodetect VideoCD type" ), m_groupOptions );
+ m_groupOptions = new TQGroupBox( 5, Qt::Vertical, i18n( "Settings" ), w );
+ m_checkAutoDetect = new TQCheckBox( i18n( "Autodetect VideoCD type" ), m_groupOptions );
- m_checkNonCompliant = new QCheckBox( i18n( "Enable broken SVCD mode" ), m_groupOptions );
+ m_checkNonCompliant = new TQCheckBox( i18n( "Enable broken SVCD mode" ), m_groupOptions );
// Only available on SVCD Type
m_checkNonCompliant->setEnabled( false );
m_checkNonCompliant->setChecked( false );
- m_checkVCD30interpretation = new QCheckBox( i18n( "Enable %1 track interpretation" ).arg( "VCD 3.0" ), m_groupOptions );
+ m_checkVCD30interpretation = new TQCheckBox( i18n( "Enable %1 track interpretation" ).tqarg( "VCD 3.0" ), m_groupOptions );
// Only available on SVCD Type
m_checkVCD30interpretation->setEnabled( false );
m_checkVCD30interpretation->setChecked( false );
- m_check2336 = new QCheckBox( i18n( "Use 2336 byte sectors" ), m_groupOptions );
+ m_check2336 = new TQCheckBox( i18n( "Use 2336 byte sectors" ), m_groupOptions );
- m_checkCdiSupport = new QCheckBox( i18n( "Enable CD-i support" ), m_groupOptions );
+ m_checkCdiSupport = new TQCheckBox( i18n( "Enable CD-i support" ), m_groupOptions );
// ------------------------------------------------- CD-i Application ---
- m_groupCdi = new QGroupBox( 4, Qt::Vertical, i18n( "VideoCD on CD-i" ), w );
- m_editCdiCfg = new QMultiLineEdit( m_groupCdi, "m_editCdiCfg" );
- m_editCdiCfg->setFrameShape( QTextEdit::NoFrame );
+ m_groupCdi = new TQGroupBox( 4, Qt::Vertical, i18n( "VideoCD on CD-i" ), w );
+ m_editCdiCfg = new TQMultiLineEdit( m_groupCdi, "m_editCdiCfg" );
+ m_editCdiCfg->setFrameShape( TQTextEdit::NoFrame );
// ----------------------------------------------------------------------
- QGridLayout* grid = new QGridLayout( w );
+ TQGridLayout* grid = new TQGridLayout( w );
grid->setMargin( marginHint() );
grid->setSpacing( spacingHint() );
grid->addMultiCellWidget( m_groupVcdFormat, 0, 1, 0, 0 );
@@ -478,60 +478,60 @@ void K3bVcdBurnDialog::setupVideoCdTab()
void K3bVcdBurnDialog::setupLabelTab()
{
- QWidget * w = new QWidget( this );
+ TQWidget * w = new TQWidget( this );
// ----------------------------------------------------------------------
// noEdit
- QLabel* labelSystemId = new QLabel( i18n( "System:" ), w, "labelSystemId" );
- QLabel* labelApplicationId = new QLabel( i18n( "Application:" ), w, "labelApplicationId" );
- QLabel* labelInfoSystemId = new QLabel( vcdDoc() ->vcdOptions() ->systemId(), w, "labelInfoSystemId" );
- QLabel* labelInfoApplicationId = new QLabel( vcdDoc() ->vcdOptions() ->applicationId(), w, "labelInfoApplicationId" );
+ TQLabel* labelSystemId = new TQLabel( i18n( "System:" ), w, "labelSystemId" );
+ TQLabel* labelApplicationId = new TQLabel( i18n( "Application:" ), w, "labelApplicationId" );
+ TQLabel* labelInfoSystemId = new TQLabel( vcdDoc() ->vcdOptions() ->systemId(), w, "labelInfoSystemId" );
+ TQLabel* labelInfoApplicationId = new TQLabel( vcdDoc() ->vcdOptions() ->applicationId(), w, "labelInfoApplicationId" );
- labelInfoSystemId->setFrameShape( QLabel::LineEditPanel );
- labelInfoSystemId->setFrameShadow( QLabel::Sunken );
+ labelInfoSystemId->setFrameShape( TQLabel::LineEditPanel );
+ labelInfoSystemId->setFrameShadow( TQLabel::Sunken );
- labelInfoApplicationId->setFrameShape( QLabel::LineEditPanel );
- labelInfoApplicationId->setFrameShadow( QLabel::Sunken );
- QToolTip::add
+ labelInfoApplicationId->setFrameShape( TQLabel::LineEditPanel );
+ labelInfoApplicationId->setFrameShadow( TQLabel::Sunken );
+ TQToolTip::add
( labelInfoApplicationId, i18n( "ISO application id for VideoCD" ) );
// ----------------------------------------------------------------------
- QLabel* labelVolumeId = new QLabel( i18n( "&Volume name:" ), w, "labelVolumeId" );
- QLabel* labelAlbumId = new QLabel( i18n( "Volume &set name:" ), w, "labelAlbumId" );
- QLabel* labelVolumeCount = new QLabel( i18n( "Volume set s&ize:" ), w, "labelVolumeCount" );
- QLabel* labelVolumeNumber = new QLabel( i18n( "Volume set &number:" ), w, "labelVolumeNumber" );
- QLabel* labelPublisher = new QLabel( i18n( "&Publisher:" ), w, "labelPublisher" );
+ TQLabel* labelVolumeId = new TQLabel( i18n( "&Volume name:" ), w, "labelVolumeId" );
+ TQLabel* labelAlbumId = new TQLabel( i18n( "Volume &set name:" ), w, "labelAlbumId" );
+ TQLabel* labelVolumeCount = new TQLabel( i18n( "Volume set s&ize:" ), w, "labelVolumeCount" );
+ TQLabel* labelVolumeNumber = new TQLabel( i18n( "Volume set &number:" ), w, "labelVolumeNumber" );
+ TQLabel* labelPublisher = new TQLabel( i18n( "&Publisher:" ), w, "labelPublisher" );
- m_editVolumeId = new QLineEdit( w, "m_editVolumeId" );
- m_editAlbumId = new QLineEdit( w, "m_editAlbumId" );
- m_spinVolumeNumber = new QSpinBox( w, "m_editVolumeNumber" );
- m_spinVolumeCount = new QSpinBox( w, "m_editVolumeCount" );
- m_editPublisher = new QLineEdit( w, "m_editPublisher" );
+ m_editVolumeId = new TQLineEdit( w, "m_editVolumeId" );
+ m_editAlbumId = new TQLineEdit( w, "m_editAlbumId" );
+ m_spinVolumeNumber = new TQSpinBox( w, "m_editVolumeNumber" );
+ m_spinVolumeCount = new TQSpinBox( w, "m_editVolumeCount" );
+ m_editPublisher = new TQLineEdit( w, "m_editPublisher" );
// only ISO646 d-Characters
- m_editVolumeId->setValidator( K3bValidators::iso646Validator( K3bValidators::Iso646_d, true, m_editVolumeId ) );
- m_editAlbumId->setValidator( K3bValidators::iso646Validator( K3bValidators::Iso646_d, true, m_editVolumeId ) );
+ m_editVolumeId->setValidator( K3bValidators::iso646Validator( K3bValidators::Iso646_d, true, TQT_TQOBJECT(m_editVolumeId) ) );
+ m_editAlbumId->setValidator( K3bValidators::iso646Validator( K3bValidators::Iso646_d, true, TQT_TQOBJECT(m_editVolumeId) ) );
m_editVolumeId->setMaxLength( 32 );
m_editAlbumId->setMaxLength( 16 );
// only ISO646 a-Characters
- m_editPublisher->setValidator( K3bValidators::iso646Validator( K3bValidators::Iso646_a, true, m_editVolumeId ) );
+ m_editPublisher->setValidator( K3bValidators::iso646Validator( K3bValidators::Iso646_a, true, TQT_TQOBJECT(m_editVolumeId) ) );
m_editPublisher->setMaxLength( 128 );
m_spinVolumeNumber->setMinValue( 1 );
m_spinVolumeNumber->setMaxValue( 1 );
m_spinVolumeCount->setMinValue( 1 );
- QFrame* line = new QFrame( w );
- line->setFrameShape( QFrame::HLine );
- line->setFrameShadow( QFrame::Sunken );
- line->setFrameShape( QFrame::HLine );
+ TQFrame* line = new TQFrame( w );
+ line->setFrameShape( TQFrame::HLine );
+ line->setFrameShadow( TQFrame::Sunken );
+ line->setFrameShape( TQFrame::HLine );
// ----------------------------------------------------------------------
- QGridLayout* grid = new QGridLayout( w );
+ TQGridLayout* grid = new TQGridLayout( w );
grid->setMargin( marginHint() );
grid->setSpacing( spacingHint() );
@@ -579,8 +579,8 @@ void K3bVcdBurnDialog::setupLabelTab()
void K3bVcdBurnDialog::slotStartClicked()
{
- if ( QFile::exists( vcdDoc() ->vcdImage() ) ) {
- if ( KMessageBox::warningContinueCancel( this, i18n( "Do you want to overwrite %1" ).arg( vcdDoc() ->vcdImage() ), i18n( "File Exists" ), i18n("Overwrite") )
+ if ( TQFile::exists( vcdDoc() ->vcdImage() ) ) {
+ if ( KMessageBox::warningContinueCancel( this, i18n( "Do you want to overwrite %1" ).tqarg( vcdDoc() ->vcdImage() ), i18n( "File Exists" ), i18n("Overwrite") )
!= KMessageBox::Continue )
return ;
}
@@ -619,7 +619,7 @@ void K3bVcdBurnDialog::loadK3bDefaults()
m_checkCdiSupport->setEnabled( false );
m_checkCdiSupport->setChecked( false );
m_checkUpdateScanOffsets->setEnabled( true );
- m_editVolumeId->setText( "HQ_VIDEOCD" );
+ m_editVolumeId->setText( "HTQ_VIDEOCD" );
} else {
m_checkCdiSupport->setEnabled( true );
m_checkCdiSupport->setChecked( o.CdiSupport() );
@@ -720,7 +720,7 @@ void K3bVcdBurnDialog::readSettings()
m_checkNonCompliant->setEnabled( true );
m_checkVCD30interpretation->setEnabled( true );
break;
- case K3bVcdDoc::HQVCD:
+ case K3bVcdDoc::HTQVCD:
m_radioHqVcd10->setChecked( true );
break;
default:
@@ -882,20 +882,20 @@ void K3bVcdBurnDialog::saveUserDefaults( KConfigBase* c )
void K3bVcdBurnDialog::saveCdiConfig()
{
- QString filename = locateLocal( "appdata", "cdi/cdi_vcd.cfg" );
- if ( QFile::exists( filename ) )
- QFile::remove
+ TQString filename = locateLocal( "appdata", "cdi/cdi_vcd.cfg" );
+ if ( TQFile::exists( filename ) )
+ TQFile::remove
( filename );
- QFile cdi( filename );
+ TQFile cdi( filename );
if ( !cdi.open( IO_WriteOnly ) )
return ;
- QTextStream s( &cdi );
+ TQTextStream s( &cdi );
int i = m_editCdiCfg->numLines();
for ( int j = 0; j < i; j++ )
- s << QString( "%1" ).arg( m_editCdiCfg->textLine( j ) ) << "\n";
+ s << TQString( "%1" ).tqarg( m_editCdiCfg->textLine( j ) ) << "\n";
cdi.close();
@@ -904,15 +904,15 @@ void K3bVcdBurnDialog::saveCdiConfig()
void K3bVcdBurnDialog::loadCdiConfig()
{
- QString filename = locateLocal( "appdata", "cdi/cdi_vcd.cfg" );
- if ( QFile::exists( filename ) ) {
- QFile cdi( filename );
+ TQString filename = locateLocal( "appdata", "cdi/cdi_vcd.cfg" );
+ if ( TQFile::exists( filename ) ) {
+ TQFile cdi( filename );
if ( !cdi.open( IO_ReadOnly ) ) {
loadDefaultCdiConfig();
return ;
}
- QTextStream s( &cdi );
+ TQTextStream s( &cdi );
m_editCdiCfg->clear();
@@ -930,16 +930,16 @@ void K3bVcdBurnDialog::loadCdiConfig()
void K3bVcdBurnDialog::loadDefaultCdiConfig()
{
- QString filename = locate( "data", "k3b/cdi/cdi_vcd.cfg" );
- if ( QFile::exists( filename ) ) {
- QFile cdi( filename );
+ TQString filename = locate( "data", "k3b/cdi/cdi_vcd.cfg" );
+ if ( TQFile::exists( filename ) ) {
+ TQFile cdi( filename );
if ( !cdi.open( IO_ReadOnly ) ) {
m_checkCdiSupport->setChecked( false );
m_checkCdiSupport->setEnabled( false );
return ;
}
- QTextStream s( &cdi );
+ TQTextStream s( &cdi );
m_editCdiCfg->clear();
@@ -959,7 +959,7 @@ void K3bVcdBurnDialog::setVolumeID()
if ( m_radioSvcd10->isChecked() )
m_editVolumeId->setText( "SUPER_VIDEOCD" );
else if ( m_radioHqVcd10->isChecked() )
- m_editVolumeId->setText( "HQ_VIDEOCD" );
+ m_editVolumeId->setText( "HTQ_VIDEOCD" );
else
m_editVolumeId->setText( "VIDEOCD" );
}
diff --git a/src/projects/k3bvcdburndialog.h b/src/projects/k3bvcdburndialog.h
index 6f199a9..322fedf 100644
--- a/src/projects/k3bvcdburndialog.h
+++ b/src/projects/k3bvcdburndialog.h
@@ -17,17 +17,17 @@
#define K3BVCDBURNDIALOG_H
#include "k3bprojectburndialog.h"
-#include <qmultilineedit.h>
-
-class QCheckBox;
-class QGroupBox;
-class QButtonGroup;
-class QSpinBox;
-class QRadioButton;
-class QLabel;
-class QLineEdit;
-class QMultiLineEdit;
-class QToolButton;
+#include <tqmultilineedit.h>
+
+class TQCheckBox;
+class TQGroupBox;
+class TQButtonGroup;
+class TQSpinBox;
+class TQRadioButton;
+class TQLabel;
+class TQLineEdit;
+class TQMultiLineEdit;
+class TQToolButton;
class K3bWriterSelectionWidget;
class K3bTempDirSelectionWidget;
class K3bVcdDoc;
@@ -36,9 +36,10 @@ class K3bVcdOptions;
class K3bVcdBurnDialog : public K3bProjectBurnDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bVcdBurnDialog( K3bVcdDoc* doc, QWidget *parent = 0, const char *name = 0, bool modal = true );
+ K3bVcdBurnDialog( K3bVcdDoc* doc, TQWidget *tqparent = 0, const char *name = 0, bool modal = true );
~K3bVcdBurnDialog();
K3bVcdDoc* vcdDoc() const
@@ -61,62 +62,62 @@ class K3bVcdBurnDialog : public K3bProjectBurnDialog
// the video-cd-tab
// -----------------------------------------------------------
- QButtonGroup* m_groupVcdFormat;
- QRadioButton* m_radioVcd11;
- QRadioButton* m_radioVcd20;
- QRadioButton* m_radioSvcd10;
- QRadioButton* m_radioHqVcd10;
+ TQButtonGroup* m_groupVcdFormat;
+ TQRadioButton* m_radioVcd11;
+ TQRadioButton* m_radioVcd20;
+ TQRadioButton* m_radioSvcd10;
+ TQRadioButton* m_radioHqVcd10;
- QGroupBox* m_groupOptions;
- QCheckBox* m_checkAutoDetect;
- QCheckBox* m_checkNonCompliant;
- QCheckBox* m_checkVCD30interpretation;
- QCheckBox* m_check2336;
+ TQGroupBox* m_groupOptions;
+ TQCheckBox* m_checkAutoDetect;
+ TQCheckBox* m_checkNonCompliant;
+ TQCheckBox* m_checkVCD30interpretation;
+ TQCheckBox* m_check2336;
// CD-i
- QGroupBox* m_groupCdi;
- QCheckBox* m_checkCdiSupport;
- QMultiLineEdit* m_editCdiCfg;
+ TQGroupBox* m_groupCdi;
+ TQCheckBox* m_checkCdiSupport;
+ TQMultiLineEdit* m_editCdiCfg;
// -----------------------------------------------------------
// the video-label-tab
// -----------------------------------------------------------
- QLineEdit* m_editVolumeId;
- QLineEdit* m_editPublisher;
- QLineEdit* m_editAlbumId;
+ TQLineEdit* m_editVolumeId;
+ TQLineEdit* m_editPublisher;
+ TQLineEdit* m_editAlbumId;
- QSpinBox* m_spinVolumeCount;
- QSpinBox* m_spinVolumeNumber;
+ TQSpinBox* m_spinVolumeCount;
+ TQSpinBox* m_spinVolumeNumber;
// -----------------------------------------------------------
// the advanced-tab
// -----------------------------------------------------------
- QGroupBox* m_groupGeneric;
- QGroupBox* m_groupGaps;
- QGroupBox* m_groupMisc;
-
- QCheckBox* m_checkPbc;
- QCheckBox* m_checkSegmentFolder;
- QCheckBox* m_checkRelaxedAps;
- QCheckBox* m_checkUpdateScanOffsets;
- QCheckBox* m_checkGaps;
-
- QSpinBox* m_spinRestriction;
- QSpinBox* m_spinPreGapLeadout;
- QSpinBox* m_spinPreGapTrack;
- QSpinBox* m_spinFrontMarginTrack;
- QSpinBox* m_spinRearMarginTrack;
- QSpinBox* m_spinFrontMarginTrackSVCD;
- QSpinBox* m_spinRearMarginTrackSVCD;
-
- QLabel* m_labelRestriction;
- QLabel* m_labelPreGapLeadout;
- QLabel* m_labelPreGapTrack;
- QLabel* m_labelFrontMarginTrack;
- QLabel* m_labelRearMarginTrack;
+ TQGroupBox* m_groupGeneric;
+ TQGroupBox* m_groupGaps;
+ TQGroupBox* m_groupMisc;
+
+ TQCheckBox* m_checkPbc;
+ TQCheckBox* m_checkSegmentFolder;
+ TQCheckBox* m_checkRelaxedAps;
+ TQCheckBox* m_checkUpdateScanOffsets;
+ TQCheckBox* m_checkGaps;
+
+ TQSpinBox* m_spinRestriction;
+ TQSpinBox* m_spinPreGapLeadout;
+ TQSpinBox* m_spinPreGapTrack;
+ TQSpinBox* m_spinFrontMarginTrack;
+ TQSpinBox* m_spinRearMarginTrack;
+ TQSpinBox* m_spinFrontMarginTrackSVCD;
+ TQSpinBox* m_spinRearMarginTrackSVCD;
+
+ TQLabel* m_labelRestriction;
+ TQLabel* m_labelPreGapLeadout;
+ TQLabel* m_labelPreGapTrack;
+ TQLabel* m_labelFrontMarginTrack;
+ TQLabel* m_labelRearMarginTrack;
// -----------------------------------------------------------
diff --git a/src/projects/k3bvcdlistview.cpp b/src/projects/k3bvcdlistview.cpp
index f61863b..ad3c07c 100644
--- a/src/projects/k3bvcdlistview.cpp
+++ b/src/projects/k3bvcdlistview.cpp
@@ -13,15 +13,15 @@
* See the file "COPYING" for the exact licensing terms.
*/
-#include <qheader.h>
-#include <qtimer.h>
-#include <qdragobject.h>
-#include <qpoint.h>
-#include <qptrlist.h>
-#include <qstringlist.h>
-#include <qevent.h>
-#include <qpainter.h>
-#include <qfontmetrics.h>
+#include <tqheader.h>
+#include <tqtimer.h>
+#include <tqdragobject.h>
+#include <tqpoint.h>
+#include <tqptrlist.h>
+#include <tqstringlist.h>
+#include <tqevent.h>
+#include <tqpainter.h>
+#include <tqfontmetrics.h>
#include <kiconloader.h>
#include <kurl.h>
@@ -39,8 +39,8 @@
#include "k3bvcddoc.h"
#include <k3bview.h>
-K3bVcdListView::K3bVcdListView( K3bView* view, K3bVcdDoc* doc, QWidget *parent, const char *name )
- : K3bListView( parent, name ), m_doc( doc ), m_view( view )
+K3bVcdListView::K3bVcdListView( K3bView* view, K3bVcdDoc* doc, TQWidget *tqparent, const char *name )
+ : K3bListView( tqparent, name ), m_doc( doc ), m_view( view )
{
setAcceptDrops( true );
setDropVisualizer( true );
@@ -60,15 +60,15 @@ K3bVcdListView::K3bVcdListView( K3bView* view, K3bVcdDoc* doc, QWidget *parent,
setupColumns();
header() ->setClickEnabled( false );
- connect( this, SIGNAL( dropped( KListView*, QDropEvent*, QListViewItem* ) ),
- this, SLOT( slotDropped( KListView*, QDropEvent*, QListViewItem* ) ) );
- connect( this, SIGNAL( contextMenu( KListView*, QListViewItem*, const QPoint& ) ),
- this, SLOT( showPopupMenu( KListView*, QListViewItem*, const QPoint& ) ) );
- connect( this, SIGNAL( doubleClicked( QListViewItem*, const QPoint&, int ) ),
- this, SLOT( showPropertiesDialog() ) );
+ connect( this, TQT_SIGNAL( dropped( KListView*, TQDropEvent*, TQListViewItem* ) ),
+ this, TQT_SLOT( slotDropped( KListView*, TQDropEvent*, TQListViewItem* ) ) );
+ connect( this, TQT_SIGNAL( contextMenu( KListView*, TQListViewItem*, const TQPoint& ) ),
+ this, TQT_SLOT( showPopupMenu( KListView*, TQListViewItem*, const TQPoint& ) ) );
+ connect( this, TQT_SIGNAL( doubleClicked( TQListViewItem*, const TQPoint&, int ) ),
+ this, TQT_SLOT( showPropertiesDialog() ) );
- connect( m_doc, SIGNAL( changed() ), this, SLOT( slotUpdateItems() ) );
- connect( m_doc, SIGNAL( trackRemoved( K3bVcdTrack* ) ), this, SLOT( slotTrackRemoved( K3bVcdTrack* ) ) );
+ connect( m_doc, TQT_SIGNAL( changed() ), TQT_TQOBJECT(this), TQT_SLOT( slotUpdateItems() ) );
+ connect( m_doc, TQT_SIGNAL( trackRemoved( K3bVcdTrack* ) ), TQT_TQOBJECT(this), TQT_SLOT( slotTrackRemoved( K3bVcdTrack* ) ) );
slotUpdateItems();
}
@@ -94,8 +94,8 @@ void K3bVcdListView::setupColumns()
void K3bVcdListView::setupActions()
{
m_actionCollection = new KActionCollection( this );
- m_actionProperties = new KAction( i18n( "Properties" ), "misc", 0, this, SLOT( showPropertiesDialog() ), actionCollection() );
- m_actionRemove = new KAction( i18n( "Remove" ), "editdelete", Key_Delete, this, SLOT( slotRemoveTracks() ), actionCollection() );
+ m_actionProperties = new KAction( i18n( "Properties" ), "misc", 0, TQT_TQOBJECT(this), TQT_SLOT( showPropertiesDialog() ), actionCollection() );
+ m_actionRemove = new KAction( i18n( "Remove" ), "editdelete", Key_Delete, TQT_TQOBJECT(this), TQT_SLOT( slotRemoveTracks() ), actionCollection() );
// disabled by default
m_actionRemove->setEnabled( false );
@@ -113,21 +113,21 @@ void K3bVcdListView::setupPopupMenu()
}
-bool K3bVcdListView::acceptDrag( QDropEvent* e ) const
+bool K3bVcdListView::acceptDrag( TQDropEvent* e ) const
{
// the first is for built-in item moving, the second for dropping urls
return ( KListView::acceptDrag( e ) || KURLDrag::canDecode( e ) );
}
-QDragObject* K3bVcdListView::dragObject()
+TQDragObject* K3bVcdListView::dragObject()
{
- QPtrList<QListViewItem> list = selectedItems();
+ TQPtrList<TQListViewItem> list = selectedItems();
if ( list.isEmpty() )
return 0;
- QPtrListIterator<QListViewItem> it( list );
+ TQPtrListIterator<TQListViewItem> it( list );
KURL::List urls;
for ( ; it.current(); ++it )
@@ -137,7 +137,7 @@ QDragObject* K3bVcdListView::dragObject()
}
-void K3bVcdListView::slotDropped( KListView*, QDropEvent* e, QListViewItem* after )
+void K3bVcdListView::slotDropped( KListView*, TQDropEvent* e, TQListViewItem* after )
{
if ( !e->isAccepted() )
return ;
@@ -149,8 +149,8 @@ void K3bVcdListView::slotDropped( KListView*, QDropEvent* e, QListViewItem* afte
pos = ( ( K3bVcdListViewItem* ) after ) ->vcdTrack() ->index() + 1;
if ( e->source() == viewport() ) {
- QPtrList<QListViewItem> sel = selectedItems();
- QPtrListIterator<QListViewItem> it( sel );
+ TQPtrList<TQListViewItem> sel = selectedItems();
+ TQPtrListIterator<TQListViewItem> it( sel );
K3bVcdTrack* trackAfter = ( after ? ( ( K3bVcdListViewItem* ) after ) ->vcdTrack() : 0 );
while ( it.current() ) {
K3bVcdTrack * track = ( ( K3bVcdListViewItem* ) it.current() ) ->vcdTrack();
@@ -170,7 +170,7 @@ void K3bVcdListView::slotDropped( KListView*, QDropEvent* e, QListViewItem* afte
}
-void K3bVcdListView::insertItem( QListViewItem* item )
+void K3bVcdListView::insertItem( TQListViewItem* item )
{
KListView::insertItem( item );
@@ -180,7 +180,7 @@ void K3bVcdListView::insertItem( QListViewItem* item )
}
}
-void K3bVcdListView::showPopupMenu( KListView*, QListViewItem* _item, const QPoint& _point )
+void K3bVcdListView::showPopupMenu( KListView*, TQListViewItem* _item, const TQPoint& _point )
{
if ( _item ) {
m_actionRemove->setEnabled( true );
@@ -193,23 +193,23 @@ void K3bVcdListView::showPopupMenu( KListView*, QListViewItem* _item, const QPoi
void K3bVcdListView::showPropertiesDialog()
{
- QPtrList<K3bVcdTrack> selected = selectedTracks();
+ TQPtrList<K3bVcdTrack> selected = selectedTracks();
if ( !selected.isEmpty() && selected.count() == 1 ) {
- QPtrList<K3bVcdTrack> tracks = *m_doc->tracks();
+ TQPtrList<K3bVcdTrack> tracks = *m_doc->tracks();
K3bVcdTrackDialog d( m_doc, tracks, selected, this );
if ( d.exec() ) {
- repaint();
+ tqrepaint();
}
} else {
m_view->slotProperties();
}
}
-QPtrList<K3bVcdTrack> K3bVcdListView::selectedTracks()
+TQPtrList<K3bVcdTrack> K3bVcdListView::selectedTracks()
{
- QPtrList<K3bVcdTrack> selectedTracks;
- QPtrList<QListViewItem> selectedVI( selectedItems() );
- for ( QListViewItem * item = selectedVI.first(); item != 0; item = selectedVI.next() ) {
+ TQPtrList<K3bVcdTrack> selectedTracks;
+ TQPtrList<TQListViewItem> selectedVI( selectedItems() );
+ for ( TQListViewItem * item = selectedVI.first(); item != 0; item = selectedVI.next() ) {
K3bVcdListViewItem * vcdItem = dynamic_cast<K3bVcdListViewItem*>( item );
if ( vcdItem ) {
selectedTracks.append( vcdItem->vcdTrack() );
@@ -222,7 +222,7 @@ QPtrList<K3bVcdTrack> K3bVcdListView::selectedTracks()
void K3bVcdListView::slotRemoveTracks()
{
- QPtrList<K3bVcdTrack> selected = selectedTracks();
+ TQPtrList<K3bVcdTrack> selected = selectedTracks();
if ( !selected.isEmpty() ) {
for ( K3bVcdTrack * track = selected.first(); track != 0; track = selected.next() ) {
@@ -238,7 +238,7 @@ void K3bVcdListView::slotRemoveTracks()
void K3bVcdListView::slotTrackRemoved( K3bVcdTrack* track )
{
- QListViewItem * viewItem = m_itemMap[ track ];
+ TQListViewItem * viewItem = m_itemMap[ track ];
m_itemMap.remove( track );
delete viewItem;
}
@@ -250,7 +250,7 @@ void K3bVcdListView::slotUpdateItems()
K3bVcdTrack * track = m_doc->first();
K3bVcdTrack* lastTrack = 0;
while ( track != 0 ) {
- if ( !m_itemMap.contains( track ) )
+ if ( !m_itemMap.tqcontains( track ) )
m_itemMap.insert( track, new K3bVcdListViewItem( track, this, m_itemMap[ lastTrack ] ) );
lastTrack = track;
diff --git a/src/projects/k3bvcdlistview.h b/src/projects/k3bvcdlistview.h
index 71d22d7..01fa218 100644
--- a/src/projects/k3bvcdlistview.h
+++ b/src/projects/k3bvcdlistview.h
@@ -19,12 +19,12 @@
#include <k3blistview.h>
-#include <qmap.h>
+#include <tqmap.h>
-class QDragEnterEvent;
-class QDragObject;
-class QDropEvent;
-class QTimer;
+class TQDragEnterEvent;
+class TQDragObject;
+class TQDropEvent;
+class TQTimer;
class KPopupMenu;
class KAction;
class K3bVcdDoc;
@@ -32,28 +32,29 @@ class K3bView;
class K3bVcdTrack;
class KActionCollection;
class K3bVcdListViewItem;
-class QPainter;
+class TQPainter;
class K3bVcdListView : public K3bListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bVcdListView( K3bView*, K3bVcdDoc*, QWidget *parent = 0, const char *name = 0 );
+ K3bVcdListView( K3bView*, K3bVcdDoc*, TQWidget *tqparent = 0, const char *name = 0 );
~K3bVcdListView();
/**
* reimplemented from KListView
*/
- void insertItem( QListViewItem* );
+ void insertItem( TQListViewItem* );
KActionCollection* actionCollection() const
{
return m_actionCollection;
}
- QPtrList<K3bVcdTrack> selectedTracks();
+ TQPtrList<K3bVcdTrack> selectedTracks();
signals:
void lengthReady();
@@ -72,19 +73,19 @@ class K3bVcdListView : public K3bListView
KPopupMenu* m_popupMenu;
- QMap<K3bVcdTrack*, K3bVcdListViewItem*> m_itemMap;
+ TQMap<K3bVcdTrack*, K3bVcdListViewItem*> m_itemMap;
private slots:
- void slotDropped( KListView*, QDropEvent* e, QListViewItem* after );
+ void slotDropped( KListView*, TQDropEvent* e, TQListViewItem* after );
void slotUpdateItems();
- void showPopupMenu( KListView*, QListViewItem* item, const QPoint& );
+ void showPopupMenu( KListView*, TQListViewItem* item, const TQPoint& );
void showPropertiesDialog();
void slotRemoveTracks();
void slotTrackRemoved( K3bVcdTrack* );
protected:
- bool acceptDrag( QDropEvent* e ) const;
- QDragObject* dragObject();
+ bool acceptDrag( TQDropEvent* e ) const;
+ TQDragObject* dragObject();
};
#endif
diff --git a/src/projects/k3bvcdlistviewitem.cpp b/src/projects/k3bvcdlistviewitem.cpp
index 02df525..5232632 100644
--- a/src/projects/k3bvcdlistviewitem.cpp
+++ b/src/projects/k3bvcdlistviewitem.cpp
@@ -22,15 +22,15 @@
#include "k3bvcdtrack.h"
#include <k3bglobals.h>
-K3bVcdListViewItem::K3bVcdListViewItem( K3bVcdTrack* track, K3bListView* parent )
- : K3bListViewItem( parent ), m_track( track )
+K3bVcdListViewItem::K3bVcdListViewItem( K3bVcdTrack* track, K3bListView* tqparent )
+ : K3bListViewItem( tqparent ), m_track( track )
{
setEditor( 1, LINE );
animate();
}
-K3bVcdListViewItem::K3bVcdListViewItem( K3bVcdTrack* track, K3bListView* parent, QListViewItem* after )
- : K3bListViewItem( parent, after ), m_track( track )
+K3bVcdListViewItem::K3bVcdListViewItem( K3bVcdTrack* track, K3bListView* tqparent, TQListViewItem* after )
+ : K3bListViewItem( tqparent, after ), m_track( track )
{
setEditor( 1, LINE );
animate();
@@ -40,7 +40,7 @@ K3bVcdListViewItem::K3bVcdListViewItem( K3bVcdTrack* track, K3bListView* parent,
K3bVcdListViewItem::~K3bVcdListViewItem()
{}
-QString K3bVcdListViewItem::text( int i ) const
+TQString K3bVcdListViewItem::text( int i ) const
{
//
// We add two spaces after all strings (except the once renamable)
@@ -49,7 +49,7 @@ QString K3bVcdListViewItem::text( int i ) const
switch ( i ) {
case 0:
- return QString::number( m_track->index() + 1 ).rightJustify( 2, ' ' ) + " ";
+ return TQString::number( m_track->index() + 1 ).rightJustify( 2, ' ' ) + " ";
case 1:
return m_track->title();
case 2:
@@ -66,7 +66,7 @@ QString K3bVcdListViewItem::text( int i ) const
return m_track->video_frate() + " ";
case 6:
// track mpegmbps
- return QString::number( m_track->muxrate() ) + " ";
+ return TQString::number( m_track->muxrate() ) + " ";
case 7:
// track mpegduration
return m_track->duration() + " ";
@@ -82,7 +82,7 @@ QString K3bVcdListViewItem::text( int i ) const
}
}
-void K3bVcdListViewItem::setText( int col, const QString& text )
+void K3bVcdListViewItem::setText( int col, const TQString& text )
{
if ( col == 1 ) {
// this is the title field
@@ -93,9 +93,9 @@ void K3bVcdListViewItem::setText( int col, const QString& text )
}
-QString K3bVcdListViewItem::key( int, bool ) const
+TQString K3bVcdListViewItem::key( int, bool ) const
{
- QString num = QString::number( m_track->index() );
+ TQString num = TQString::number( m_track->index() );
if ( num.length() == 1 )
return "00" + num;
else if ( num.length() == 2 )
diff --git a/src/projects/k3bvcdlistviewitem.h b/src/projects/k3bvcdlistviewitem.h
index 0101850..9a1a290 100644
--- a/src/projects/k3bvcdlistviewitem.h
+++ b/src/projects/k3bvcdlistviewitem.h
@@ -24,18 +24,18 @@ class K3bVcdListViewItem : public K3bListViewItem
{
public:
- K3bVcdListViewItem( K3bVcdTrack* track, K3bListView* parent );
- K3bVcdListViewItem( K3bVcdTrack* track, K3bListView* parent, QListViewItem* after );
+ K3bVcdListViewItem( K3bVcdTrack* track, K3bListView* tqparent );
+ K3bVcdListViewItem( K3bVcdTrack* track, K3bListView* tqparent, TQListViewItem* after );
~K3bVcdListViewItem();
- /** reimplemented from QListViewItem */
- QString text( int i ) const;
+ /** reimplemented from TQListViewItem */
+ TQString text( int i ) const;
- /** reimplemented from QListViewItem */
- void setText( int col, const QString& text );
+ /** reimplemented from TQListViewItem */
+ void setText( int col, const TQString& text );
- /** reimplemented from QListViewItem */
- QString key( int column, bool a ) const;
+ /** reimplemented from TQListViewItem */
+ TQString key( int column, bool a ) const;
bool animate();
K3bVcdTrack* vcdTrack()
diff --git a/src/projects/k3bvcdtrackdialog.cpp b/src/projects/k3bvcdtrackdialog.cpp
index 06588b8..1b148f2 100644
--- a/src/projects/k3bvcdtrackdialog.cpp
+++ b/src/projects/k3bvcdtrackdialog.cpp
@@ -13,22 +13,22 @@
* See the file "COPYING" for the exact licensing terms.
*/
-// Qt Includes
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qframe.h>
-#include <qgroupbox.h>
-#include <qhbox.h>
-#include <qlineedit.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qmultilineedit.h>
-#include <qpixmap.h>
-#include <qradiobutton.h>
-#include <qtable.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+// TQt Includes
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqframe.h>
+#include <tqgroupbox.h>
+#include <tqhbox.h>
+#include <tqlineedit.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqmultilineedit.h>
+#include <tqpixmap.h>
+#include <tqradiobutton.h>
+#include <tqtable.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
// Kde Includes
#include <kiconloader.h>
@@ -47,9 +47,9 @@
#include <k3bcutcombobox.h>
-K3bVcdTrackDialog::K3bVcdTrackDialog( K3bVcdDoc* _doc, QPtrList<K3bVcdTrack>& tracks, QPtrList<K3bVcdTrack>& selectedTracks, QWidget* parent, const char* name )
+K3bVcdTrackDialog::K3bVcdTrackDialog( K3bVcdDoc* _doc, TQPtrList<K3bVcdTrack>& tracks, TQPtrList<K3bVcdTrack>& selectedTracks, TQWidget* tqparent, const char* name )
: KDialogBase( KDialogBase::Plain, i18n( "Video Track Properties" ), KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::Apply,
- KDialogBase::Ok, parent, name )
+ KDialogBase::Ok, tqparent, name )
{
prepareGui();
@@ -70,7 +70,7 @@ K3bVcdTrackDialog::K3bVcdTrackDialog( K3bVcdDoc* _doc, QPtrList<K3bVcdTrack>& tr
m_displayFileName->setText( selectedTrack->fileName() );
m_displayLength->setText( selectedTrack->duration() );
m_displaySize->setText( KIO::convertSize( selectedTrack->size() ) );
- m_muxrate->setText( i18n( "%1 bit/s" ).arg( selectedTrack->muxrate() ) );
+ m_muxrate->setText( i18n( "%1 bit/s" ).tqarg( selectedTrack->muxrate() ) );
if ( selectedTrack->isSegment() )
m_labelMimeType->setPixmap( SmallIcon( "image", KIcon::SizeMedium ) );
@@ -93,7 +93,7 @@ void K3bVcdTrackDialog::slotOk()
void K3bVcdTrackDialog::setPbcTrack( K3bVcdTrack* selected, K3bCutComboBox* box, int which )
{
// TODO: Unset Userdefined on default settings
- kdDebug() << QString( "K3bVcdTrackDialog::setPbcTrack: currentItem = %1, count = %2" ).arg( box->currentItem() ).arg( m_tracks.count() ) << endl;
+ kdDebug() << TQString( "K3bVcdTrackDialog::setPbcTrack: currentItem = %1, count = %2" ).tqarg( box->currentItem() ).tqarg( m_tracks.count() ) << endl;
int count = m_tracks.count();
@@ -142,7 +142,7 @@ void K3bVcdTrackDialog::slotApply()
selectedTrack->delDefinedNumKey();
if ( m_check_overwritekeys->isChecked() ) {
- QListViewItemIterator it( m_list_keys );
+ TQListViewItemIterator it( m_list_keys );
int skiped = 0;
int startkey = 0;
while ( it.current() ) {
@@ -158,8 +158,8 @@ void K3bVcdTrackDialog::slotApply()
startkey = it.current() ->text( 0 ).toInt();
}
- QMap<QString, K3bVcdTrack*>::Iterator mit;
- mit = m_numkeysmap.find( it.current() ->text( 1 ) );
+ TQMap<TQString, K3bVcdTrack*>::Iterator mit;
+ mit = m_numkeysmap.tqfind( it.current() ->text( 1 ) );
if ( mit != m_numkeysmap.end() )
if ( mit.data() ) {
selectedTrack->setDefinedNumKey( it.current() ->text( 0 ).toInt(), mit.data() );
@@ -198,50 +198,50 @@ void K3bVcdTrackDialog::fillGui()
fillPbcGui();
- QToolTip::add
+ TQToolTip::add
( m_pbc_previous, i18n( "May also look like | << on the remote control. " ) );
- QToolTip::add
+ TQToolTip::add
( m_pbc_next, i18n( "May also look like >> | on the remote control." ) );
- QToolTip::add
+ TQToolTip::add
( m_pbc_return, i18n( "This key may be mapped to the STOP key." ) );
- QToolTip::add
+ TQToolTip::add
( m_pbc_default, i18n( "This key is usually mapped to the > or PLAY key." ) );
- QToolTip::add
+ TQToolTip::add
( m_comboAfterTimeout, i18n( "Target to be jumped to on time-out of <wait>." ) );
- QToolTip::add
+ TQToolTip::add
( m_check_reactivity, i18n( "Delay reactivity of keys." ) );
- QToolTip::add
+ TQToolTip::add
( m_check_pbc, i18n( "Playback control, PBC, is available for Video CD 2.0 and Super Video CD 1.0 disc formats." ) );
- QToolTip::add
+ TQToolTip::add
( m_check_usekeys, i18n( "Activate the use of numeric keys." ) );
- QToolTip::add
+ TQToolTip::add
( m_check_overwritekeys, i18n( "Overwrite default numeric keys." ) );
- QToolTip::add
+ TQToolTip::add
( m_list_keys, i18n( "Numeric keys." ) );
- QToolTip::add
+ TQToolTip::add
( m_spin_times, i18n( "Times to repeat the playback of 'play track'." ) );
- QToolTip::add
+ TQToolTip::add
( m_spin_waittime, i18n( "Time in seconds to wait after playback of 'play track'." ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_comboAfterTimeout, i18n( "<p>Target to be jumped to on time-out of <wait>."
"<p>If omitted (and <wait> is not set to an infinite time) one of the targets is selected at random." ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_check_reactivity, i18n( "<p>When reactivity is set to delayed, it is recommended that the length of the referenced 'play track' is not more than 5 seconds."
"<p>The recommended setting for a play item consisting of one still picture and no audio is to loop once and have a delayed reactivity." ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_check_pbc, i18n( "<p>Playback control, PBC, is available for Video CD 2.0 and Super Video CD 1.0 disc formats."
"<p>PBC allows control of the playback of play items and the possibility of interaction with the user through the remote control or some other input device available." ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_check_usekeys, i18n( "These are actually pseudo keys, representing the numeric keys 0, 1, ..., 9." ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_check_overwritekeys, i18n( "<p>If numeric keys enabled, you can overwrite the default settings." ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_spin_times, i18n( "<p>Times to repeat the playback of 'play track'."
"<p>The reactivity attribute controls whether the playback of 'play track' is finished, thus delayed, before executing user triggered action or an immediate jump is performed."
"<p>After the specified number of repetitions have completed, the <wait> time begins to count down, unless set to an infinite wait time."
"<p>If this element is omitted, a default of `1' is used, i.e. the 'play track' will be displayed once." ) );
- QWhatsThis::add
+ TQWhatsThis::add
( m_spin_waittime, i18n( "Time in seconds to wait after playback of 'play track' before triggering the <timeout> action (unless the user triggers some action before time ran up)." ) );
}
@@ -263,13 +263,13 @@ void K3bVcdTrackDialog::fillPbcGui()
m_numkeysmap.insert( displayName( selectedTrack ) , selectedTrack );
for ( track = m_tracks.first(); track; track = m_tracks.next() ) {
- QPixmap pm;
+ TQPixmap pm;
if ( track->isSegment() )
pm = SmallIcon( "image" );
else
pm = SmallIcon( "video" );
- QString s = displayName( track );
+ TQString s = displayName( track );
if ( track != selectedTrack ) // donot insert selectedTrack, it was as "ItSelf" inserted to the begin of map
m_numkeysmap.insert( s, track );
@@ -296,8 +296,8 @@ void K3bVcdTrackDialog::fillPbcGui()
}
// add Event Disabled
- QPixmap pmDisabled = SmallIcon( "stop" );
- QString txtDisabled = i18n( "Event Disabled" );
+ TQPixmap pmDisabled = SmallIcon( "stop" );
+ TQString txtDisabled = i18n( "Event Disabled" );
m_pbc_previous->insertItem( pmDisabled, txtDisabled );
m_pbc_next->insertItem( pmDisabled, txtDisabled );
m_pbc_return->insertItem( pmDisabled, txtDisabled );
@@ -305,8 +305,8 @@ void K3bVcdTrackDialog::fillPbcGui()
m_comboAfterTimeout->insertItem( pmDisabled, txtDisabled );
// add VideoCD End
- QPixmap pmEnd = SmallIcon( "cdrom_unmount" );
- QString txtEnd = i18n( "VideoCD END" );
+ TQPixmap pmEnd = SmallIcon( "cdrom_unmount" );
+ TQString txtEnd = i18n( "VideoCD END" );
m_pbc_previous->insertItem( pmEnd, txtEnd );
m_pbc_next->insertItem( pmEnd, txtEnd );
m_pbc_return->insertItem( pmEnd, txtEnd );
@@ -315,7 +315,7 @@ void K3bVcdTrackDialog::fillPbcGui()
m_numkeysmap.insert( txtEnd, 0L );
for ( int i = 99; i > 0; i-- ) {
- item = new K3bListViewItem( m_list_keys, QString::number( i ) + " ", "" );
+ item = new K3bListViewItem( m_list_keys, TQString::number( i ) + " ", "" );
item->setEditor( 1, K3bListViewItem::COMBO , m_numkeysmap.keys() );
}
@@ -363,50 +363,50 @@ void K3bVcdTrackDialog::fillPbcGui()
void K3bVcdTrackDialog::prepareGui()
{
- QFrame * frame = plainPage();
+ TQFrame * frame = plainPage();
- QGridLayout* mainLayout = new QGridLayout( frame );
+ TQGridLayout* mainLayout = new TQGridLayout( frame );
mainLayout->setSpacing( spacingHint() );
mainLayout->setMargin( 0 );
- m_mainTabbed = new QTabWidget( frame );
+ m_mainTabbed = new TQTabWidget( frame );
///////////////////////////////////////////////////
// FILE-INFO BOX
///////////////////////////////////////////////////
- QGroupBox* groupFileInfo = new QGroupBox( 0, Qt::Vertical, i18n( "File Info" ), frame, "groupFileInfo" );
- groupFileInfo->layout() ->setSpacing( 0 );
- groupFileInfo->layout() ->setMargin( 0 );
+ TQGroupBox* groupFileInfo = new TQGroupBox( 0, Qt::Vertical, i18n( "File Info" ), frame, "groupFileInfo" );
+ groupFileInfo->tqlayout() ->setSpacing( 0 );
+ groupFileInfo->tqlayout() ->setMargin( 0 );
- QGridLayout* groupFileInfoLayout = new QGridLayout( groupFileInfo->layout() );
- groupFileInfoLayout->setAlignment( Qt::AlignTop );
+ TQGridLayout* groupFileInfoLayout = new TQGridLayout( groupFileInfo->tqlayout() );
+ groupFileInfoLayout->tqsetAlignment( TQt::AlignTop );
groupFileInfoLayout->setSpacing( spacingHint() );
groupFileInfoLayout->setMargin( marginHint() );
- m_labelMimeType = new QLabel( groupFileInfo, "m_labelMimeType" );
+ m_labelMimeType = new TQLabel( groupFileInfo, "m_labelMimeType" );
m_displayFileName = new KCutLabel( groupFileInfo );
m_displayFileName->setText( i18n( "Filename" ) );
- m_displayFileName->setAlignment( int( QLabel::AlignTop | QLabel::AlignLeft ) );
+ m_displayFileName->tqsetAlignment( int( TQLabel::AlignTop | TQLabel::AlignLeft ) );
- QLabel* labelSize = new QLabel( i18n( "Size:" ), groupFileInfo, "labelSize" );
- QLabel* labelLength = new QLabel( i18n( "Length:" ), groupFileInfo, "labelLength" );
- QLabel* labelMuxrate = new QLabel( i18n( "Muxrate:" ), groupFileInfo, "labelMuxrate" );
+ TQLabel* labelSize = new TQLabel( i18n( "Size:" ), groupFileInfo, "labelSize" );
+ TQLabel* labelLength = new TQLabel( i18n( "Length:" ), groupFileInfo, "labelLength" );
+ TQLabel* labelMuxrate = new TQLabel( i18n( "Muxrate:" ), groupFileInfo, "labelMuxrate" );
- m_displaySize = new QLabel( groupFileInfo, "m_displaySize" );
+ m_displaySize = new TQLabel( groupFileInfo, "m_displaySize" );
m_displaySize->setText( "0.0 MB" );
- m_displaySize->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
+ m_displaySize->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
- m_displayLength = new QLabel( groupFileInfo, "m_displayLength" );
+ m_displayLength = new TQLabel( groupFileInfo, "m_displayLength" );
m_displayLength->setText( "0:0:0" );
- m_displayLength->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
+ m_displayLength->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
- m_muxrate = new QLabel( groupFileInfo, "m_muxrate" );
- m_muxrate->setText( i18n( "%1 bit/s" ).arg( 0 ) );
- m_muxrate->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
+ m_muxrate = new TQLabel( groupFileInfo, "m_muxrate" );
+ m_muxrate->setText( i18n( "%1 bit/s" ).tqarg( 0 ) );
+ m_muxrate->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
- QFrame* fileInfoLine = new QFrame( groupFileInfo );
- fileInfoLine->setFrameStyle( QFrame::HLine | QFrame::Sunken );
+ TQFrame* fileInfoLine = new TQFrame( groupFileInfo );
+ fileInfoLine->setFrameStyle( TQFrame::HLine | TQFrame::Sunken );
groupFileInfoLayout->addWidget( m_labelMimeType, 0, 0 );
groupFileInfoLayout->addMultiCellWidget( m_displayFileName, 0, 1, 1, 1 );
@@ -421,7 +421,7 @@ void K3bVcdTrackDialog::prepareGui()
groupFileInfoLayout->setRowStretch( 6, 1 );
groupFileInfoLayout->setColStretch( 1, 1 );
- QFont f( m_displayLength->font() );
+ TQFont f( m_displayLength->font() );
f.setBold( true );
m_displayLength->setFont( f );
m_displaySize->setFont( f );
@@ -440,54 +440,54 @@ void K3bVcdTrackDialog::setupPbcTab()
// /////////////////////////////////////////////////
// Playback Control TAB
// /////////////////////////////////////////////////
- QWidget * w = new QWidget( m_mainTabbed );
+ TQWidget * w = new TQWidget( m_mainTabbed );
- QGridLayout* grid = new QGridLayout( w );
- grid->setAlignment( Qt::AlignTop );
+ TQGridLayout* grid = new TQGridLayout( w );
+ grid->tqsetAlignment( TQt::AlignTop );
grid->setSpacing( spacingHint() );
grid->setMargin( marginHint() );
//////////////////////////////////////////////////////////////////////////////////////////
- QGroupBox* groupOptions = new QGroupBox( 3, Qt::Vertical, i18n( "Settings" ), w );
- groupOptions->layout() ->setSpacing( spacingHint() );
- groupOptions->layout() ->setMargin( marginHint() );
+ TQGroupBox* groupOptions = new TQGroupBox( 3, Qt::Vertical, i18n( "Settings" ), w );
+ groupOptions->tqlayout() ->setSpacing( spacingHint() );
+ groupOptions->tqlayout() ->setMargin( marginHint() );
- m_check_pbc = new QCheckBox( i18n( "Enable playback control (for the whole CD)" ), groupOptions, "m_check_pbc" );
+ m_check_pbc = new TQCheckBox( i18n( "Enable playback control (for the whole CD)" ), groupOptions, "m_check_pbc" );
- m_check_usekeys = new QCheckBox( i18n( "Use numeric keys" ), groupOptions, "m_check_usekeys" );
+ m_check_usekeys = new TQCheckBox( i18n( "Use numeric keys" ), groupOptions, "m_check_usekeys" );
m_check_usekeys->setEnabled( false );
- m_check_reactivity = new QCheckBox( i18n( "Reactivity delayed to the end of playing track" ), groupOptions, "m_check_reactivity" );
+ m_check_reactivity = new TQCheckBox( i18n( "Reactivity delayed to the end of playing track" ), groupOptions, "m_check_reactivity" );
m_check_reactivity->setEnabled( false );
//////////////////////////////////////////////////////////////////////////////////////////
- m_groupPlay = new QGroupBox( 0, Qt::Vertical, i18n( "Playing" ), w );
- m_groupPlay->layout() ->setSpacing( spacingHint() );
- m_groupPlay->layout() ->setMargin( marginHint() );
+ m_groupPlay = new TQGroupBox( 0, Qt::Vertical, i18n( "Playing" ), w );
+ m_groupPlay->tqlayout() ->setSpacing( spacingHint() );
+ m_groupPlay->tqlayout() ->setMargin( marginHint() );
- QGridLayout* groupPlayLayout = new QGridLayout( m_groupPlay->layout() );
- groupPlayLayout->setAlignment( Qt::AlignTop );
+ TQGridLayout* groupPlayLayout = new TQGridLayout( m_groupPlay->tqlayout() );
+ groupPlayLayout->tqsetAlignment( TQt::AlignTop );
- QLabel* labelPlaying = new QLabel( i18n( "Playing track" ) , m_groupPlay, "labelPlaying" );
+ TQLabel* labelPlaying = new TQLabel( i18n( "Playing track" ) , m_groupPlay, "labelPlaying" );
- m_spin_times = new QSpinBox( m_groupPlay, "m_spin_times" );
+ m_spin_times = new TQSpinBox( m_groupPlay, "m_spin_times" );
m_spin_times->setValue( 1 );
m_spin_times->setSuffix( i18n( " time(s)" ) );
m_spin_times->setSpecialValueText( i18n( "forever" ) );
//////////////////////////////////////////////////////////////////////////////////////////
- m_labelWait = new QLabel( i18n( "then wait" ), m_groupPlay, "m_labelWait" );
- m_spin_waittime = new QSpinBox( m_groupPlay, "m_spinSeconds" );
+ m_labelWait = new TQLabel( i18n( "then wait" ), m_groupPlay, "m_labelWait" );
+ m_spin_waittime = new TQSpinBox( m_groupPlay, "m_spinSeconds" );
m_spin_waittime->setMinValue( -1 );
m_spin_waittime->setValue( 0 );
// m_spin_waittime->setEnabled( false );
m_spin_waittime->setSuffix( i18n( " seconds" ) );
m_spin_waittime->setSpecialValueText( i18n( "infinite" ) );
- m_labelAfterTimeout = new QLabel( i18n( "after timeout playing" ), m_groupPlay, "m_labelTimeout" );
+ m_labelAfterTimeout = new TQLabel( i18n( "after timeout playing" ), m_groupPlay, "m_labelTimeout" );
// m_labelAfterTimeout->setEnabled( false );
- m_comboAfterTimeout = new K3bCutComboBox( K3bCutComboBox::SQUEEZE, m_groupPlay, "m_comboAfterTimeout" );
+ m_comboAfterTimeout = new K3bCutComboBox( K3bCutComboBox::STQUEEZE, m_groupPlay, "m_comboAfterTimeout" );
// m_comboAfterTimeout->setEnabled( false );
groupPlayLayout->addWidget( labelPlaying, 1, 0 );
@@ -498,22 +498,22 @@ void K3bVcdTrackDialog::setupPbcTab()
groupPlayLayout->addMultiCellWidget( m_comboAfterTimeout, 3, 3, 1, 3 );
//////////////////////////////////////////////////////////////////////////////////////////
- m_groupPbc = new QGroupBox( 0, Qt::Vertical, i18n( "Key Pressed Interaction" ), w );
- m_groupPbc->layout() ->setSpacing( spacingHint() );
- m_groupPbc->layout() ->setMargin( marginHint() );
+ m_groupPbc = new TQGroupBox( 0, Qt::Vertical, i18n( "Key Pressed Interaction" ), w );
+ m_groupPbc->tqlayout() ->setSpacing( spacingHint() );
+ m_groupPbc->tqlayout() ->setMargin( marginHint() );
- QGridLayout* groupPbcLayout = new QGridLayout( m_groupPbc->layout() );
- groupPbcLayout->setAlignment( Qt::AlignTop );
+ TQGridLayout* groupPbcLayout = new TQGridLayout( m_groupPbc->tqlayout() );
+ groupPbcLayout->tqsetAlignment( TQt::AlignTop );
- QLabel* labelPbc_previous = new QLabel( i18n( "Previous:" ), m_groupPbc, "labelPbc_previous" );
- QLabel* labelPbc_next = new QLabel( i18n( "Next:" ), m_groupPbc, "labelPbc_next" );
- QLabel* labelPbc_return = new QLabel( i18n( "Return:" ), m_groupPbc, "labelPbc_return" );
- QLabel* labelPbc_default = new QLabel( i18n( "Default:" ), m_groupPbc, "labelPbc_default" );
+ TQLabel* labelPbc_previous = new TQLabel( i18n( "Previous:" ), m_groupPbc, "labelPbc_previous" );
+ TQLabel* labelPbc_next = new TQLabel( i18n( "Next:" ), m_groupPbc, "labelPbc_next" );
+ TQLabel* labelPbc_return = new TQLabel( i18n( "Return:" ), m_groupPbc, "labelPbc_return" );
+ TQLabel* labelPbc_default = new TQLabel( i18n( "Default:" ), m_groupPbc, "labelPbc_default" );
- m_pbc_previous = new K3bCutComboBox( K3bCutComboBox::SQUEEZE, m_groupPbc, "m_pbc_previous" );
- m_pbc_next = new K3bCutComboBox( K3bCutComboBox::SQUEEZE, m_groupPbc, "m_pbc_next" );
- m_pbc_return = new K3bCutComboBox( K3bCutComboBox::SQUEEZE, m_groupPbc, "m_pbc_return" );
- m_pbc_default = new K3bCutComboBox( K3bCutComboBox::SQUEEZE, m_groupPbc, "m_pbc_default" );
+ m_pbc_previous = new K3bCutComboBox( K3bCutComboBox::STQUEEZE, m_groupPbc, "m_pbc_previous" );
+ m_pbc_next = new K3bCutComboBox( K3bCutComboBox::STQUEEZE, m_groupPbc, "m_pbc_next" );
+ m_pbc_return = new K3bCutComboBox( K3bCutComboBox::STQUEEZE, m_groupPbc, "m_pbc_return" );
+ m_pbc_default = new K3bCutComboBox( K3bCutComboBox::STQUEEZE, m_groupPbc, "m_pbc_default" );
groupPbcLayout->addWidget( labelPbc_previous, 1, 0 );
groupPbcLayout->addMultiCellWidget( m_pbc_previous, 1, 1, 1, 3 );
@@ -539,10 +539,10 @@ void K3bVcdTrackDialog::setupPbcTab()
m_groupPlay->setEnabled( false );
m_groupPbc->setEnabled( false );
- connect( m_check_pbc, SIGNAL( toggled( bool ) ), this, SLOT( slotPbcToggled( bool ) ) );
- connect( m_spin_times, SIGNAL( valueChanged( int ) ), this, SLOT( slotPlayTimeChanged( int ) ) );
- connect( m_spin_waittime, SIGNAL( valueChanged( int ) ), this, SLOT( slotWaitTimeChanged( int ) ) );
- connect( m_check_usekeys, SIGNAL( toggled( bool ) ), this, SLOT( slotUseKeysToggled( bool ) ) );
+ connect( m_check_pbc, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotPbcToggled( bool ) ) );
+ connect( m_spin_times, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( slotPlayTimeChanged( int ) ) );
+ connect( m_spin_waittime, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( slotWaitTimeChanged( int ) ) );
+ connect( m_check_usekeys, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotUseKeysToggled( bool ) ) );
}
void K3bVcdTrackDialog::setupPbcKeyTab()
@@ -550,35 +550,35 @@ void K3bVcdTrackDialog::setupPbcKeyTab()
// /////////////////////////////////////////////////
// Playback Control Numeric Key's TAB
// /////////////////////////////////////////////////
- m_widgetnumkeys = new QWidget( m_mainTabbed );
+ m_widgetnumkeys = new TQWidget( m_mainTabbed );
- QGridLayout* grid = new QGridLayout( m_widgetnumkeys );
- grid->setAlignment( Qt::AlignTop );
+ TQGridLayout* grid = new TQGridLayout( m_widgetnumkeys );
+ grid->tqsetAlignment( TQt::AlignTop );
grid->setSpacing( spacingHint() );
grid->setMargin( marginHint() );
- m_groupKey = new QGroupBox( 3, Qt::Vertical, i18n( "Numeric Keys" ), m_widgetnumkeys );
+ m_groupKey = new TQGroupBox( 3, Qt::Vertical, i18n( "Numeric Keys" ), m_widgetnumkeys );
m_groupKey->setEnabled( false );
- m_groupKey->layout() ->setSpacing( spacingHint() );
- m_groupKey->layout() ->setMargin( marginHint() );
+ m_groupKey->tqlayout() ->setSpacing( spacingHint() );
+ m_groupKey->tqlayout() ->setMargin( marginHint() );
m_list_keys = new K3bListView( m_groupKey, "m_list_keys" );
m_list_keys->setAllColumnsShowFocus( true );
m_list_keys->setDoubleClickForEdit( false );
- m_list_keys->setColumnAlignment( 0, Qt::AlignRight );
- m_list_keys->setSelectionMode( QListView::NoSelection );
+ m_list_keys->setColumnAlignment( 0, TQt::AlignRight );
+ m_list_keys->setSelectionMode( TQListView::NoSelection );
m_list_keys->setSorting( -1 );
m_list_keys->addColumn( i18n( "Key" ) );
m_list_keys->addColumn( i18n( "Playing" ) );
- m_list_keys->setResizeMode( QListView::LastColumn );
- m_check_overwritekeys = new QCheckBox( i18n( "Overwrite default assignment" ), m_widgetnumkeys, "m_check_overwritekeys" );
+ m_list_keys->setResizeMode( TQListView::LastColumn );
+ m_check_overwritekeys = new TQCheckBox( i18n( "Overwrite default assignment" ), m_widgetnumkeys, "m_check_overwritekeys" );
grid->addWidget( m_groupKey, 1, 0 );
grid->addWidget( m_check_overwritekeys, 2, 0 );
m_mainTabbed->addTab( m_widgetnumkeys, i18n( "Numeric Keys" ) );
- connect( m_check_overwritekeys, SIGNAL( toggled( bool ) ), this, SLOT( slotGroupkeyToggled( bool ) ) );
+ connect( m_check_overwritekeys, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( slotGroupkeyToggled( bool ) ) );
}
@@ -587,36 +587,36 @@ void K3bVcdTrackDialog::setupAudioTab()
// /////////////////////////////////////////////////
// AUDIO TAB
// /////////////////////////////////////////////////
- QWidget * w = new QWidget( m_mainTabbed );
+ TQWidget * w = new TQWidget( m_mainTabbed );
- QGridLayout* grid = new QGridLayout( w );
- grid->setAlignment( Qt::AlignTop );
+ TQGridLayout* grid = new TQGridLayout( w );
+ grid->tqsetAlignment( TQt::AlignTop );
grid->setSpacing( spacingHint() );
grid->setMargin( marginHint() );
- QLabel* labelMpegVer_Audio = new QLabel( i18n( "Type:" ), w, "labelMpegVer_Audio" );
- QLabel* labelRate_Audio = new QLabel( i18n( "Rate:" ), w, "labelRate_Audio" );
- QLabel* labelSampling_Frequency_Audio = new QLabel( i18n( "Sampling frequency:" ), w, "labelSampling_Frequency_Audio" );
- QLabel* labelMode_Audio = new QLabel( i18n( "Mode:" ), w, "labelMode_Audio" );
- QLabel* labelCopyright_Audio = new QLabel( i18n( "Copyright:" ), w, "labelCopyright_Audio" );
-
- m_mpegver_audio = new QLabel( w, "m_mpegver_audio" );
- m_rate_audio = new QLabel( w, "m_rate_audio" );
- m_sampling_frequency_audio = new QLabel( w, "m_sampling_frequency_audio" );
- m_mode_audio = new QLabel( w, "m_mode_audio" );
- m_copyright_audio = new QLabel( w, "m_copyright_audio" );
-
- m_mpegver_audio->setFrameShape( QLabel::LineEditPanel );
- m_rate_audio->setFrameShape( QLabel::LineEditPanel );
- m_sampling_frequency_audio->setFrameShape( QLabel::LineEditPanel );
- m_mode_audio->setFrameShape( QLabel::LineEditPanel );
- m_copyright_audio->setFrameShape( QLabel::LineEditPanel );
-
- m_mpegver_audio->setFrameShadow( QLabel::Sunken );
- m_rate_audio->setFrameShadow( QLabel::Sunken );
- m_sampling_frequency_audio->setFrameShadow( QLabel::Sunken );
- m_mode_audio->setFrameShadow( QLabel::Sunken );
- m_copyright_audio->setFrameShadow( QLabel::Sunken );
+ TQLabel* labelMpegVer_Audio = new TQLabel( i18n( "Type:" ), w, "labelMpegVer_Audio" );
+ TQLabel* labelRate_Audio = new TQLabel( i18n( "Rate:" ), w, "labelRate_Audio" );
+ TQLabel* labelSampling_Frequency_Audio = new TQLabel( i18n( "Sampling frequency:" ), w, "labelSampling_Frequency_Audio" );
+ TQLabel* labelMode_Audio = new TQLabel( i18n( "Mode:" ), w, "labelMode_Audio" );
+ TQLabel* labelCopyright_Audio = new TQLabel( i18n( "Copyright:" ), w, "labelCopyright_Audio" );
+
+ m_mpegver_audio = new TQLabel( w, "m_mpegver_audio" );
+ m_rate_audio = new TQLabel( w, "m_rate_audio" );
+ m_sampling_frequency_audio = new TQLabel( w, "m_sampling_frequency_audio" );
+ m_mode_audio = new TQLabel( w, "m_mode_audio" );
+ m_copyright_audio = new TQLabel( w, "m_copyright_audio" );
+
+ m_mpegver_audio->setFrameShape( TQLabel::LineEditPanel );
+ m_rate_audio->setFrameShape( TQLabel::LineEditPanel );
+ m_sampling_frequency_audio->setFrameShape( TQLabel::LineEditPanel );
+ m_mode_audio->setFrameShape( TQLabel::LineEditPanel );
+ m_copyright_audio->setFrameShape( TQLabel::LineEditPanel );
+
+ m_mpegver_audio->setFrameShadow( TQLabel::Sunken );
+ m_rate_audio->setFrameShadow( TQLabel::Sunken );
+ m_sampling_frequency_audio->setFrameShadow( TQLabel::Sunken );
+ m_mode_audio->setFrameShadow( TQLabel::Sunken );
+ m_copyright_audio->setFrameShadow( TQLabel::Sunken );
grid->addWidget( labelMpegVer_Audio, 1, 0 );
grid->addMultiCellWidget( m_mpegver_audio, 1, 1, 1, 4 );
@@ -644,40 +644,40 @@ void K3bVcdTrackDialog::setupVideoTab()
// /////////////////////////////////////////////////
// VIDEO TAB
// /////////////////////////////////////////////////
- QWidget * w = new QWidget( m_mainTabbed );
+ TQWidget * w = new TQWidget( m_mainTabbed );
- QGridLayout* grid = new QGridLayout( w );
- grid->setAlignment( Qt::AlignTop );
+ TQGridLayout* grid = new TQGridLayout( w );
+ grid->tqsetAlignment( TQt::AlignTop );
grid->setSpacing( spacingHint() );
grid->setMargin( marginHint() );
- QLabel* labelMpegVer_Video = new QLabel( i18n( "Type:" ), w, "labelMpegVer_Video" );
- QLabel* labelRate_Video = new QLabel( i18n( "Rate:" ), w, "labelRate_Video" );
- QLabel* labelChromaFormat_Video = new QLabel( i18n( "Chroma format:" ), w, "labelChromaFormat_Video" );
- QLabel* labelFormat_Video = new QLabel( i18n( "Video format:" ), w, "labelFormat_Video" );
- QLabel* labelResolution_Video = new QLabel( i18n( "Resolution:" ), w, "labelSize_Video" );
- QLabel* labelHighResolution_Video = new QLabel( i18n( "High resolution:" ), w, "labelHighResolution_Video" );
-
- m_mpegver_video = new QLabel( w, "m_mpegver_video" );
- m_rate_video = new QLabel( w, "m_rate_video" );
- m_chromaformat_video = new QLabel( w, "m_chromaformat_video" );
- m_format_video = new QLabel( w, "m_format_video" );
- m_resolution_video = new QLabel( w, "m_resolution_video" );
- m_highresolution_video = new QLabel( w, "m_highresolution_video" );
-
- m_mpegver_video->setFrameShape( QLabel::LineEditPanel );
- m_rate_video->setFrameShape( QLabel::LineEditPanel );
- m_chromaformat_video->setFrameShape( QLabel::LineEditPanel );
- m_format_video->setFrameShape( QLabel::LineEditPanel );
- m_resolution_video->setFrameShape( QLabel::LineEditPanel );
- m_highresolution_video->setFrameShape( QLabel::LineEditPanel );
-
- m_mpegver_video->setFrameShadow( QLabel::Sunken );
- m_rate_video->setFrameShadow( QLabel::Sunken );
- m_chromaformat_video->setFrameShadow( QLabel::Sunken );
- m_format_video->setFrameShadow( QLabel::Sunken );
- m_resolution_video->setFrameShadow( QLabel::Sunken );
- m_highresolution_video->setFrameShadow( QLabel::Sunken );
+ TQLabel* labelMpegVer_Video = new TQLabel( i18n( "Type:" ), w, "labelMpegVer_Video" );
+ TQLabel* labelRate_Video = new TQLabel( i18n( "Rate:" ), w, "labelRate_Video" );
+ TQLabel* labelChromaFormat_Video = new TQLabel( i18n( "Chroma format:" ), w, "labelChromaFormat_Video" );
+ TQLabel* labelFormat_Video = new TQLabel( i18n( "Video format:" ), w, "labelFormat_Video" );
+ TQLabel* labelResolution_Video = new TQLabel( i18n( "Resolution:" ), w, "labelSize_Video" );
+ TQLabel* labelHighResolution_Video = new TQLabel( i18n( "High resolution:" ), w, "labelHighResolution_Video" );
+
+ m_mpegver_video = new TQLabel( w, "m_mpegver_video" );
+ m_rate_video = new TQLabel( w, "m_rate_video" );
+ m_chromaformat_video = new TQLabel( w, "m_chromaformat_video" );
+ m_format_video = new TQLabel( w, "m_format_video" );
+ m_resolution_video = new TQLabel( w, "m_resolution_video" );
+ m_highresolution_video = new TQLabel( w, "m_highresolution_video" );
+
+ m_mpegver_video->setFrameShape( TQLabel::LineEditPanel );
+ m_rate_video->setFrameShape( TQLabel::LineEditPanel );
+ m_chromaformat_video->setFrameShape( TQLabel::LineEditPanel );
+ m_format_video->setFrameShape( TQLabel::LineEditPanel );
+ m_resolution_video->setFrameShape( TQLabel::LineEditPanel );
+ m_highresolution_video->setFrameShape( TQLabel::LineEditPanel );
+
+ m_mpegver_video->setFrameShadow( TQLabel::Sunken );
+ m_rate_video->setFrameShadow( TQLabel::Sunken );
+ m_chromaformat_video->setFrameShadow( TQLabel::Sunken );
+ m_format_video->setFrameShadow( TQLabel::Sunken );
+ m_resolution_video->setFrameShadow( TQLabel::Sunken );
+ m_highresolution_video->setFrameShadow( TQLabel::Sunken );
grid->addWidget( labelMpegVer_Video, 1, 0 );
grid->addMultiCellWidget( m_mpegver_video, 1, 1, 1, 4 );
@@ -712,17 +712,17 @@ void K3bVcdTrackDialog::setDefinedNumKeys( )
}
- QListViewItemIterator it( m_list_keys );
- QMap<int, K3bVcdTrack*> definedkeysmap = selectedTrack->DefinedNumKey();
+ TQListViewItemIterator it( m_list_keys );
+ TQMap<int, K3bVcdTrack*> definedkeysmap = selectedTrack->DefinedNumKey();
while ( it.current() ) {
int itemId = it.current() ->text( 0 ).toInt();
- QMap<int, K3bVcdTrack*>::const_iterator keyit = definedkeysmap.find( itemId );
+ TQMap<int, K3bVcdTrack*>::const_iterator keyit = definedkeysmap.tqfind( itemId );
if ( keyit != definedkeysmap.end() ) {
if ( keyit.data() ) {
- if ( m_tracks.findRef( keyit.data() ) >= 0 ) {
+ if ( m_tracks.tqfindRef( keyit.data() ) >= 0 ) {
it.current() ->setText( 1 , displayName( keyit.data() ) ) ;
} else {
it.current() ->setText( 1 , "" ) ;
@@ -738,15 +738,15 @@ void K3bVcdTrackDialog::setDefinedNumKeys( )
}
}
-QString K3bVcdTrackDialog::displayName( K3bVcdTrack * track )
+TQString K3bVcdTrackDialog::displayName( K3bVcdTrack * track )
{
if ( track == m_selectedTracks.first() )
return i18n( "ItSelf" );
if ( track->isSegment() )
- return i18n( "Segment-%1 - %2" ).arg( QString::number( track->index() + 1 ).rightJustify( 3, '0' ) ).arg( track->title() );
+ return i18n( "Segment-%1 - %2" ).tqarg( TQString::number( track->index() + 1 ).rightJustify( 3, '0' ) ).tqarg( track->title() );
- return i18n( "Sequence-%1 - %2" ).arg( QString::number( track->index() + 1 ).rightJustify( 3, '0' ) ).arg( track->title() );
+ return i18n( "Sequence-%1 - %2" ).tqarg( TQString::number( track->index() + 1 ).rightJustify( 3, '0' ) ).tqarg( track->title() );
}
void K3bVcdTrackDialog::slotPlayTimeChanged( int value )
diff --git a/src/projects/k3bvcdtrackdialog.h b/src/projects/k3bvcdtrackdialog.h
index 3b62c35..565275b 100644
--- a/src/projects/k3bvcdtrackdialog.h
+++ b/src/projects/k3bvcdtrackdialog.h
@@ -17,19 +17,19 @@
#define K3BVCDTRACKDIALOG_H
#include <kdialogbase.h>
-#include <qptrlist.h>
-#include <qtabwidget.h>
+#include <tqptrlist.h>
+#include <tqtabwidget.h>
#include <k3bvcddoc.h>
#include <k3blistview.h>
class K3bVcdTrack;
-class QLabel;
-class QCheckBox;
-class QComboBox;
-class QGroupBox;
-class QRadioButton;
-class QButtonGroup;
+class TQLabel;
+class TQCheckBox;
+class TQComboBox;
+class TQGroupBox;
+class TQRadioButton;
+class TQButtonGroup;
class KCutLabel;
class K3bCutComboBox;
@@ -37,9 +37,10 @@ class K3bCutComboBox;
class K3bVcdTrackDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bVcdTrackDialog( K3bVcdDoc*, QPtrList<K3bVcdTrack>& tracks, QPtrList<K3bVcdTrack>& selectedTracks, QWidget* parent = 0, const char* name = 0 );
+ K3bVcdTrackDialog( K3bVcdDoc*, TQPtrList<K3bVcdTrack>& tracks, TQPtrList<K3bVcdTrack>& selectedTracks, TQWidget* tqparent = 0, const char* name = 0 );
~K3bVcdTrackDialog();
protected slots:
@@ -56,37 +57,37 @@ class K3bVcdTrackDialog : public KDialogBase
private:
K3bVcdDoc* m_vcdDoc;
- QPtrList<K3bVcdTrack> m_tracks;
- QPtrList<K3bVcdTrack> m_selectedTracks;
- QMap<QString, K3bVcdTrack*> m_numkeysmap;
- QTabWidget* m_mainTabbed;
+ TQPtrList<K3bVcdTrack> m_tracks;
+ TQPtrList<K3bVcdTrack> m_selectedTracks;
+ TQMap<TQString, K3bVcdTrack*> m_numkeysmap;
+ TQTabWidget* m_mainTabbed;
KCutLabel* m_displayFileName;
- QLabel* m_labelMimeType;
- QLabel* m_displaySize;
- QLabel* m_displayLength;
- QLabel* m_muxrate;
-
- QLabel* m_mpegver_audio;
- QLabel* m_rate_audio;
- QLabel* m_sampling_frequency_audio;
- QLabel* m_mode_audio;
- QLabel* m_copyright_audio;
-
- QLabel* m_mpegver_video;
- QLabel* m_rate_video;
- QLabel* m_chromaformat_video;
- QLabel* m_format_video;
- QLabel* m_resolution_video;
- QLabel* m_highresolution_video;
-
- QLabel* m_labelAfterTimeout;
- QLabel* m_labelWait;
-
- QGroupBox* m_groupPlay;
- QGroupBox* m_groupPbc;
- QGroupBox* m_groupKey;
- QWidget* m_widgetnumkeys;
+ TQLabel* m_labelMimeType;
+ TQLabel* m_displaySize;
+ TQLabel* m_displayLength;
+ TQLabel* m_muxrate;
+
+ TQLabel* m_mpegver_audio;
+ TQLabel* m_rate_audio;
+ TQLabel* m_sampling_frequency_audio;
+ TQLabel* m_mode_audio;
+ TQLabel* m_copyright_audio;
+
+ TQLabel* m_mpegver_video;
+ TQLabel* m_rate_video;
+ TQLabel* m_chromaformat_video;
+ TQLabel* m_format_video;
+ TQLabel* m_resolution_video;
+ TQLabel* m_highresolution_video;
+
+ TQLabel* m_labelAfterTimeout;
+ TQLabel* m_labelWait;
+
+ TQGroupBox* m_groupPlay;
+ TQGroupBox* m_groupPbc;
+ TQGroupBox* m_groupKey;
+ TQWidget* m_widgetnumkeys;
K3bCutComboBox* m_pbc_previous;
K3bCutComboBox* m_pbc_next;
@@ -94,14 +95,14 @@ class K3bVcdTrackDialog : public KDialogBase
K3bCutComboBox* m_pbc_default;
K3bCutComboBox* m_comboAfterTimeout;
- QCheckBox* m_check_reactivity;
- QCheckBox* m_check_pbc;
- QCheckBox* m_check_usekeys;
- QCheckBox* m_check_overwritekeys;
+ TQCheckBox* m_check_reactivity;
+ TQCheckBox* m_check_pbc;
+ TQCheckBox* m_check_usekeys;
+ TQCheckBox* m_check_overwritekeys;
K3bListView* m_list_keys;
- QSpinBox* m_spin_times;
- QSpinBox* m_spin_waittime;
+ TQSpinBox* m_spin_times;
+ TQSpinBox* m_spin_waittime;
void prepareGui();
void setupPbcTab();
@@ -113,7 +114,7 @@ class K3bVcdTrackDialog : public KDialogBase
void setPbcTrack( K3bVcdTrack*, K3bCutComboBox*, int );
void setDefinedNumKeys( );
- QString displayName( K3bVcdTrack* );
+ TQString displayName( K3bVcdTrack* );
K3bVcdOptions* VcdOptions()
{
return m_vcdDoc->vcdOptions();
diff --git a/src/projects/k3bvcdview.cpp b/src/projects/k3bvcdview.cpp
index d8984d4..852928f 100644
--- a/src/projects/k3bvcdview.cpp
+++ b/src/projects/k3bvcdview.cpp
@@ -14,8 +14,8 @@
*/
// QT-includes
-#include <qlayout.h>
-#include <qstring.h>
+#include <tqlayout.h>
+#include <tqstring.h>
// KDE-includes
@@ -34,8 +34,8 @@
#include <k3bcore.h>
-K3bVcdView::K3bVcdView( K3bVcdDoc* pDoc, QWidget* parent, const char *name )
- : K3bView( pDoc, parent, name )
+K3bVcdView::K3bVcdView( K3bVcdDoc* pDoc, TQWidget* tqparent, const char *name )
+ : K3bView( pDoc, tqparent, name )
{
m_doc = pDoc;
@@ -45,17 +45,17 @@ K3bVcdView::K3bVcdView( K3bVcdDoc* pDoc, QWidget* parent, const char *name )
setMainWidget( m_vcdlist );
fillStatusDisplay() ->showSize();
- connect( m_vcdlist, SIGNAL( lengthReady() ), fillStatusDisplay(), SLOT( update() ) );
- connect( m_doc, SIGNAL( newTracks() ), fillStatusDisplay(), SLOT( update() ) );
+ connect( m_vcdlist, TQT_SIGNAL( lengthReady() ), fillStatusDisplay(), TQT_SLOT( update() ) );
+ connect( m_doc, TQT_SIGNAL( newTracks() ), fillStatusDisplay(), TQT_SLOT( update() ) );
}
K3bVcdView::~K3bVcdView()
{}
-K3bProjectBurnDialog* K3bVcdView::newBurnDialog( QWidget * parent, const char * name )
+K3bProjectBurnDialog* K3bVcdView::newBurnDialog( TQWidget * tqparent, const char * name )
{
- return new K3bVcdBurnDialog( m_doc, parent, name, true );
+ return new K3bVcdBurnDialog( m_doc, tqparent, name, true );
}
diff --git a/src/projects/k3bvcdview.h b/src/projects/k3bvcdview.h
index 77ad292..a58a465 100644
--- a/src/projects/k3bvcdview.h
+++ b/src/projects/k3bvcdview.h
@@ -16,18 +16,18 @@
#ifndef K3BVCDVIEW_H
#define K3BVCDVIEW_H
-#include <qstringlist.h>
-#include <qptrlist.h>
+#include <tqstringlist.h>
+#include <tqptrlist.h>
// K3b Includes
#include <k3bview.h>
class K3bVcdListView;
class K3bVcdListViewItem;
-class QWidget;
+class TQWidget;
class K3bVcdDoc;
class K3bVcdTrack;
-class QListViewItem;
+class TQListViewItem;
class KListView;
class K3bVcdBurnDialog;
class K3bProjectBurnDialog;
@@ -36,13 +36,14 @@ class K3bProjectBurnDialog;
class K3bVcdView : public K3bView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bVcdView( K3bVcdDoc* pDoc, QWidget* parent, const char *name = 0 );
+ K3bVcdView( K3bVcdDoc* pDoc, TQWidget* tqparent, const char *name = 0 );
~K3bVcdView();
protected:
- K3bProjectBurnDialog* newBurnDialog( QWidget* parent = 0, const char* name = 0 );
+ K3bProjectBurnDialog* newBurnDialog( TQWidget* tqparent = 0, const char* name = 0 );
void init();
diff --git a/src/projects/k3bvideodvdburndialog.cpp b/src/projects/k3bvideodvdburndialog.cpp
index 22626df..d7602b0 100644
--- a/src/projects/k3bvideodvdburndialog.cpp
+++ b/src/projects/k3bvideodvdburndialog.cpp
@@ -32,27 +32,27 @@
#include <kio/global.h>
#include <kmessagebox.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
-K3bVideoDvdBurnDialog::K3bVideoDvdBurnDialog( K3bVideoDvdDoc* doc, QWidget *parent, const char *name, bool modal )
- : K3bProjectBurnDialog( doc, parent, name, modal, true ),
+K3bVideoDvdBurnDialog::K3bVideoDvdBurnDialog( K3bVideoDvdDoc* doc, TQWidget *tqparent, const char *name, bool modal )
+ : K3bProjectBurnDialog( doc, tqparent, name, modal, true ),
m_doc( doc )
{
prepareGui();
- setTitle( i18n("Video DVD Project"), i18n("Size: %1").arg( KIO::convertSize(doc->size()) ) );
+ setTitle( i18n("Video DVD Project"), i18n("Size: %1").tqarg( KIO::convertSize(doc->size()) ) );
// for now we just put the verify checkbox on the main page...
m_checkVerify = K3bStdGuiItems::verifyCheckBox( m_optionGroup );
m_optionGroupLayout->addWidget( m_checkVerify );
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
m_optionGroupLayout->addItem( spacer );
// create image settings tab
@@ -63,7 +63,7 @@ K3bVideoDvdBurnDialog::K3bVideoDvdBurnDialog( K3bVideoDvdDoc* doc, QWidget *pare
m_tempDirSelectionWidget->setSelectionMode( K3bTempDirSelectionWidget::FILE );
- QString path = m_doc->tempDir();
+ TQString path = m_doc->tempDir();
if( path.isEmpty() ) {
path = K3b::defaultTempPath();
if( m_doc->isoOptions().volumeID().isEmpty() )
@@ -175,17 +175,17 @@ void K3bVideoDvdBurnDialog::slotStartClicked()
{
if( m_checkOnlyCreateImage->isChecked() ||
m_checkCacheImage->isChecked() ) {
- QFileInfo fi( m_tempDirSelectionWidget->tempPath() );
+ TQFileInfo fi( m_tempDirSelectionWidget->tempPath() );
if( fi.isDir() )
m_tempDirSelectionWidget->setTempPath( fi.filePath() + "/image.iso" );
- if( QFile::exists( m_tempDirSelectionWidget->tempPath() ) ) {
+ if( TQFile::exists( m_tempDirSelectionWidget->tempPath() ) ) {
if( KMessageBox::warningContinueCancel( this,
- i18n("Do you want to overwrite %1?").arg(m_tempDirSelectionWidget->tempPath()),
+ i18n("Do you want to overwrite %1?").tqarg(m_tempDirSelectionWidget->tempPath()),
i18n("File Exists"), i18n("Overwrite") )
== KMessageBox::Continue ) {
// delete the file here to avoid problems with free space in K3bProjectBurnDialog::slotStartClicked
- QFile::remove( m_tempDirSelectionWidget->tempPath() );
+ TQFile::remove( m_tempDirSelectionWidget->tempPath() );
}
else
return;
diff --git a/src/projects/k3bvideodvdburndialog.h b/src/projects/k3bvideodvdburndialog.h
index 0dbbe58..af393d1 100644
--- a/src/projects/k3bvideodvdburndialog.h
+++ b/src/projects/k3bvideodvdburndialog.h
@@ -22,15 +22,16 @@
class K3bVideoDvdDoc;
class K3bDataImageSettingsWidget;
-class QCheckBox;
+class TQCheckBox;
class K3bVideoDvdBurnDialog : public K3bProjectBurnDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bVideoDvdBurnDialog( K3bVideoDvdDoc*, QWidget *parent = 0, const char *name = 0, bool modal = true );
+ K3bVideoDvdBurnDialog( K3bVideoDvdDoc*, TQWidget *tqparent = 0, const char *name = 0, bool modal = true );
~K3bVideoDvdBurnDialog();
protected slots:
@@ -47,7 +48,7 @@ class K3bVideoDvdBurnDialog : public K3bProjectBurnDialog
private:
K3bDataImageSettingsWidget* m_imageSettingsWidget;
- QCheckBox* m_checkVerify;
+ TQCheckBox* m_checkVerify;
K3bVideoDvdDoc* m_doc;
};
diff --git a/src/projects/k3bvideodvdview.cpp b/src/projects/k3bvideodvdview.cpp
index 277beac..792ffc5 100644
--- a/src/projects/k3bvideodvdview.cpp
+++ b/src/projects/k3bvideodvdview.cpp
@@ -28,23 +28,23 @@
#include <kmessagebox.h>
#include <kactioncollection.h>
-#include <qsplitter.h>
+#include <tqsplitter.h>
-K3bVideoDvdView::K3bVideoDvdView( K3bVideoDvdDoc* doc, QWidget *parent, const char *name )
- : K3bView( doc, parent, name ),
+K3bVideoDvdView::K3bVideoDvdView( K3bVideoDvdDoc* doc, TQWidget *tqparent, const char *name )
+ : K3bView( doc, tqparent, name ),
m_doc(doc)
{
fillStatusDisplay()->showDvdSizes(true);
// --- setup GUI ---------------------------------------------------
- QSplitter* mainSplitter = new QSplitter( this );
+ TQSplitter* mainSplitter = new TQSplitter( this );
m_dataDirTree = new K3bDataDirTreeView( this, doc, mainSplitter );
m_dataFileView = new K3bDataFileView( this, m_dataDirTree, doc, mainSplitter );
m_dataDirTree->setFileView( m_dataFileView );
setMainWidget( mainSplitter );
- connect( m_dataFileView, SIGNAL(dirSelected(K3bDirItem*)), m_dataDirTree, SLOT(setCurrentDir(K3bDirItem*)) );
+ connect( m_dataFileView, TQT_SIGNAL(dirSelected(K3bDirItem*)), m_dataDirTree, TQT_SLOT(setCurrentDir(K3bDirItem*)) );
m_dataDirTree->checkForNewItems();
m_dataFileView->checkForNewItems();
@@ -58,9 +58,9 @@ K3bVideoDvdView::~K3bVideoDvdView()
}
-K3bProjectBurnDialog* K3bVideoDvdView::newBurnDialog( QWidget* parent, const char* name )
+K3bProjectBurnDialog* K3bVideoDvdView::newBurnDialog( TQWidget* tqparent, const char* name )
{
- return new K3bVideoDvdBurnDialog( m_doc, parent, name, true );
+ return new K3bVideoDvdBurnDialog( m_doc, tqparent, name, true );
}
diff --git a/src/projects/k3bvideodvdview.h b/src/projects/k3bvideodvdview.h
index 1125ac4..59dd88d 100644
--- a/src/projects/k3bvideodvdview.h
+++ b/src/projects/k3bvideodvdview.h
@@ -27,15 +27,16 @@ class K3bDataFileView;
class K3bVideoDvdView : public K3bView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bVideoDvdView( K3bVideoDvdDoc* doc, QWidget *parent = 0, const char *name = 0 );
+ K3bVideoDvdView( K3bVideoDvdDoc* doc, TQWidget *tqparent = 0, const char *name = 0 );
~K3bVideoDvdView();
void addUrls( const KURL::List& );
protected:
- virtual K3bProjectBurnDialog* newBurnDialog( QWidget* parent = 0, const char* name = 0 );
+ virtual K3bProjectBurnDialog* newBurnDialog( TQWidget* tqparent = 0, const char* name = 0 );
void init();
diff --git a/src/projects/k3bview.cpp b/src/projects/k3bview.cpp
index 0809f59..ccb2656 100644
--- a/src/projects/k3bview.cpp
+++ b/src/projects/k3bview.cpp
@@ -14,13 +14,13 @@
*/
-// include files for Qt
-#include <qlayout.h>
-#include <qtoolbutton.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qptrlist.h>
-#include <qtoolbutton.h>
+// include files for TQt
+#include <tqlayout.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqptrlist.h>
+#include <tqtoolbutton.h>
#include <kaction.h>
#include <kiconloader.h>
@@ -40,11 +40,11 @@
#include <k3bcore.h>
-K3bView::K3bView( K3bDoc* pDoc, QWidget *parent, const char* name )
- : QWidget( parent, name ),
+K3bView::K3bView( K3bDoc* pDoc, TQWidget *tqparent, const char* name )
+ : TQWidget( tqparent, name ),
m_doc( pDoc )
{
- QGridLayout* grid = new QGridLayout( this );
+ TQGridLayout* grid = new TQGridLayout( this );
m_toolBox = new K3bToolBox( this, "toolbox" );
m_fillStatusDisplay = new K3bFillStatusDisplay( m_doc, this );
@@ -57,10 +57,10 @@ K3bView::K3bView( K3bDoc* pDoc, QWidget *parent, const char* name )
grid->setSpacing( 5 );
grid->setMargin( 2 );
- KAction* burnAction = new KAction( i18n("&Burn"), "cdburn", CTRL + Key_B, this, SLOT(slotBurn()),
+ KAction* burnAction = new KAction( i18n("&Burn"), "cdburn", CTRL + Key_B, TQT_TQOBJECT(this), TQT_SLOT(slotBurn()),
actionCollection(), "project_burn");
burnAction->setToolTip( i18n("Open the burn dialog for the current project") );
- KAction* propAction = new KAction( i18n("&Properties"), "edit", CTRL + Key_P, this, SLOT(slotProperties()),
+ KAction* propAction = new KAction( i18n("&Properties"), "edit", CTRL + Key_P, TQT_TQOBJECT(this), TQT_SLOT(slotProperties()),
actionCollection(), "project_properties");
propAction->setToolTip( i18n("Open the properties dialog") );
@@ -85,9 +85,9 @@ K3bView::~K3bView()
}
-void K3bView::setMainWidget( QWidget* w )
+void K3bView::setMainWidget( TQWidget* w )
{
- static_cast<QGridLayout*>(layout())->addMultiCellWidget( w, 1, 1, 0, 1 );
+ static_cast<TQGridLayout*>(tqlayout())->addMultiCellWidget( w, 1, 1, 0, 1 );
}
@@ -95,7 +95,7 @@ void K3bView::slotBurn()
{
if( m_doc->numOfTracks() == 0 || m_doc->size() == 0 ) {
KMessageBox::information( this, i18n("Please add files to your project first."),
- i18n("No Data to Burn"), QString::null, false );
+ i18n("No Data to Burn"), TQString(), false );
}
else {
K3bProjectBurnDialog* dlg = newBurnDialog( this );
@@ -131,16 +131,16 @@ void K3bView::slotProperties()
void K3bView::addPluginButtons( int projectType )
{
- QPtrList<K3bPlugin> pl = k3bcore->pluginManager()->plugins( "ProjectPlugin" );
- for( QPtrListIterator<K3bPlugin> it( pl ); *it; ++it ) {
+ TQPtrList<K3bPlugin> pl = k3bcore->pluginManager()->plugins( "ProjectPlugin" );
+ for( TQPtrListIterator<K3bPlugin> it( pl ); *it; ++it ) {
K3bProjectPlugin* pp = dynamic_cast<K3bProjectPlugin*>( *it );
if( pp && (pp->type() & projectType) ) {
- QToolButton* button = toolBox()->addButton( pp->text(),
+ TQToolButton* button = toolBox()->addButton( pp->text(),
pp->icon(),
pp->toolTip(),
pp->whatsThis(),
- this,
- SLOT(slotPluginButtonClicked()) );
+ TQT_TQOBJECT(this),
+ TQT_SLOT(slotPluginButtonClicked()) );
m_plugins.insert( static_cast<void*>(button), pp );
}
}
@@ -149,7 +149,7 @@ void K3bView::addPluginButtons( int projectType )
void K3bView::slotPluginButtonClicked()
{
- QObject* o = const_cast<QObject*>(sender());
+ TQObject* o = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()));
if( K3bProjectPlugin* p = m_plugins[static_cast<void*>(o)] ) {
if( p->hasGUI() ) {
K3bProjectPluginDialog dlg( p, doc(), this );
diff --git a/src/projects/k3bview.h b/src/projects/k3bview.h
index 2bd8266..9ca4438 100644
--- a/src/projects/k3bview.h
+++ b/src/projects/k3bview.h
@@ -21,9 +21,9 @@
#include <config.h>
#endif
-// include files for Qt
-#include <qwidget.h>
-#include <qptrdict.h>
+// include files for TQt
+#include <tqwidget.h>
+#include <tqptrdict.h>
#include <kxmlguiclient.h>
#include <kurl.h>
@@ -39,15 +39,16 @@ class K3bProjectPlugin;
/**
*
*/
-class K3bView : public QWidget, public KXMLGUIClient
+class K3bView : public TQWidget, public KXMLGUIClient
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
*
*/
- K3bView( K3bDoc* pDoc, QWidget* parent, const char *name = 0 );
+ K3bView( K3bDoc* pDoc, TQWidget* tqparent, const char *name = 0 );
virtual ~K3bView();
/**
@@ -57,7 +58,7 @@ class K3bView : public QWidget, public KXMLGUIClient
K3bDoc* getDocument() const { return m_doc; }
K3bDoc* doc() const { return m_doc; }
- void setMainWidget( QWidget* );
+ void setMainWidget( TQWidget* );
public slots:
/**
@@ -85,7 +86,7 @@ class K3bView : public QWidget, public KXMLGUIClient
/**
* Protected since the BurnDialog is not part of the API.
*/
- virtual K3bProjectBurnDialog* newBurnDialog( QWidget* = 0, const char* = 0 ) = 0;
+ virtual K3bProjectBurnDialog* newBurnDialog( TQWidget* = 0, const char* = 0 ) = 0;
/**
* Call this to add the projectplugin buttons to the toolbox. It is not called
@@ -106,7 +107,7 @@ class K3bView : public QWidget, public KXMLGUIClient
K3bFillStatusDisplay* m_fillStatusDisplay;
K3bToolBox* m_toolBox;
- QPtrDict<K3bProjectPlugin> m_plugins;
+ TQPtrDict<K3bProjectPlugin> m_plugins;
};
#endif // K3BVIEW_H
diff --git a/src/projects/kostore/koStore.cc b/src/projects/kostore/koStore.cc
index 5e7fd06..1b17d95 100644
--- a/src/projects/kostore/koStore.cc
+++ b/src/projects/kostore/koStore.cc
@@ -28,9 +28,9 @@
#include "koZipStore.h"
//#include "koDirectoryStore.h"
-#include <qfileinfo.h>
-#include <qfile.h>
-#include <qdir.h>
+#include <tqfileinfo.h>
+#include <tqfile.h>
+#include <tqdir.h>
#include <kurl.h>
#include <kdebug.h>
@@ -44,7 +44,7 @@
const int KoStore::s_area = 30002;
-KoStore::Backend KoStore::determineBackend( QIODevice* dev )
+KoStore::Backend KoStore::determineBackend( TQIODevice* dev )
{
unsigned char buf[5];
if ( dev->readBlock( (char *)buf, 4 ) < 4 )
@@ -56,21 +56,21 @@ KoStore::Backend KoStore::determineBackend( QIODevice* dev )
return DefaultFormat; // fallback
}
-KoStore* KoStore::createStore( const QString& fileName, Mode mode, const QCString & appIdentification, Backend backend )
+KoStore* KoStore::createStore( const TQString& fileName, Mode mode, const TQCString & appIdentification, Backend backend )
{
if ( backend == Auto ) {
if ( mode == KoStore::Write )
backend = DefaultFormat;
else
{
- QFileInfo inf( fileName );
+ TQFileInfo inf( fileName );
if ( inf.isDir() )
backend = Directory;
else
{
- QFile file( fileName );
+ TQFile file( fileName );
if ( file.open( IO_ReadOnly ) )
- backend = determineBackend( &file );
+ backend = determineBackend( TQT_TQIODEVICE(&file) );
else
backend = DefaultFormat; // will create a "bad" store (bad()==true)
}
@@ -90,7 +90,7 @@ KoStore* KoStore::createStore( const QString& fileName, Mode mode, const QCStrin
}
}
-KoStore* KoStore::createStore( QIODevice *device, Mode mode, const QCString & appIdentification, Backend backend )
+KoStore* KoStore::createStore( TQIODevice *device, Mode mode, const TQCString & appIdentification, Backend backend )
{
if ( backend == Auto )
{
@@ -118,12 +118,12 @@ KoStore* KoStore::createStore( QIODevice *device, Mode mode, const QCString & ap
}
}
-KoStore* KoStore::createStore( QWidget* window, const KURL& url, Mode mode, const QCString & appIdentification, Backend backend )
+KoStore* KoStore::createStore( TQWidget* window, const KURL& url, Mode mode, const TQCString & appIdentification, Backend backend )
{
if ( url.isLocalFile() )
return createStore(url.path(), mode, appIdentification, backend );
- QString tmpFile;
+ TQString tmpFile;
if ( mode == KoStore::Write )
{
if ( backend == Auto )
@@ -141,10 +141,10 @@ KoStore* KoStore::createStore( QWidget* window, const KURL& url, Mode mode, cons
}
else if ( backend == Auto )
{
- QFile file( tmpFile );
+ TQFile file( tmpFile );
if ( file.open( IO_ReadOnly ) )
{
- backend = determineBackend( &file );
+ backend = determineBackend( TQT_TQIODEVICE(&file) );
file.close();
}
}
@@ -186,7 +186,7 @@ KoStore::~KoStore()
delete m_stream;
}
-bool KoStore::open( const QString & _name )
+bool KoStore::open( const TQString & _name )
{
// This also converts from relative to absolute, i.e. merges the currentPath()
m_sName = toExternalNaming( _name );
@@ -208,7 +208,7 @@ bool KoStore::open( const QString & _name )
if ( m_mode == Write )
{
kdDebug(s_area) << "KoStore: opening for writing '" << m_sName << "'" << endl;
- if ( m_strFiles.findIndex( m_sName ) != -1 ) // just check if it's there
+ if ( m_strFiles.tqfindIndex( m_sName ) != -1 ) // just check if it's there
{
kdWarning(s_area) << "KoStore: Duplicate filename " << m_sName << endl;
//return KIO::ERR_FILE_ALREADY_EXIST;
@@ -259,7 +259,7 @@ bool KoStore::close()
return ret;
}
-QIODevice* KoStore::device() const
+TQIODevice* KoStore::device() const
{
if ( !m_bIsOpen )
kdWarning(s_area) << "KoStore: You must open before asking for a device" << endl;
@@ -268,9 +268,9 @@ QIODevice* KoStore::device() const
return m_stream;
}
-QByteArray KoStore::read( unsigned long int max )
+TQByteArray KoStore::read( unsigned long int max )
{
- QByteArray data; // Data is a QArray<char>
+ TQByteArray data; // Data is a TQArray<char>
if ( !m_bIsOpen )
{
@@ -306,12 +306,12 @@ QByteArray KoStore::read( unsigned long int max )
return data;
}
-Q_LONG KoStore::write( const QByteArray& data )
+TQ_LONG KoStore::write( const TQByteArray& data )
{
return write( data.data(), data.size() ); // see below
}
-Q_LONG KoStore::read( char *_buffer, Q_ULONG _len )
+TQ_LONG KoStore::read( char *_buffer, TQ_ULONG _len )
{
if ( !m_bIsOpen )
{
@@ -335,7 +335,7 @@ Q_LONG KoStore::read( char *_buffer, Q_ULONG _len )
return m_stream->readBlock( _buffer, _len );
}
-Q_LONG KoStore::write( const char* _data, Q_ULONG _len )
+TQ_LONG KoStore::write( const char* _data, TQ_ULONG _len )
{
if ( _len == 0L ) return 0;
@@ -357,29 +357,29 @@ Q_LONG KoStore::write( const char* _data, Q_ULONG _len )
return nwritten;
}
-QIODevice::Offset KoStore::size() const
+TQIODevice::Offset KoStore::size() const
{
if ( !m_bIsOpen )
{
kdWarning(s_area) << "KoStore: You must open before asking for a size" << endl;
- return static_cast<QIODevice::Offset>(-1);
+ return static_cast<TQIODevice::Offset>(-1);
}
if ( m_mode != Read )
{
kdWarning(s_area) << "KoStore: Can not get size from store that is opened for writing" << endl;
- return static_cast<QIODevice::Offset>(-1);
+ return static_cast<TQIODevice::Offset>(-1);
}
return m_iSize;
}
-bool KoStore::enterDirectory( const QString& directory )
+bool KoStore::enterDirectory( const TQString& directory )
{
//kdDebug(s_area) << "KoStore::enterDirectory " << directory << endl;
int pos;
bool success = true;
- QString tmp( directory );
+ TQString tmp( directory );
- while ( ( pos = tmp.find( '/' ) ) != -1 &&
+ while ( ( pos = tmp.tqfind( '/' ) ) != -1 &&
( success = enterDirectoryInternal( tmp.left( pos ) ) ) )
tmp = tmp.mid( pos + 1 );
@@ -398,16 +398,16 @@ bool KoStore::leaveDirectory()
return enterAbsoluteDirectory( expandEncodedDirectory( currentPath() ) );
}
-QString KoStore::currentDirectory() const
+TQString KoStore::currentDirectory() const
{
return expandEncodedDirectory( currentPath() );
}
-QString KoStore::currentPath() const
+TQString KoStore::currentPath() const
{
- QString path;
- QStringList::ConstIterator it = m_currentPath.begin();
- QStringList::ConstIterator end = m_currentPath.end();
+ TQString path;
+ TQStringList::ConstIterator it = m_currentPath.begin();
+ TQStringList::ConstIterator end = m_currentPath.end();
for ( ; it != end; ++it ) {
path += *it;
path += '/';
@@ -423,15 +423,15 @@ void KoStore::pushDirectory()
void KoStore::popDirectory()
{
m_currentPath.clear();
- enterAbsoluteDirectory( QString::null );
+ enterAbsoluteDirectory( TQString() );
enterDirectory( m_directoryStack.pop() );
}
-bool KoStore::addLocalFile( const QString &fileName, const QString &destName )
+bool KoStore::addLocalFile( const TQString &fileName, const TQString &destName )
{
- QFileInfo fi( fileName );
+ TQFileInfo fi( fileName );
uint size = fi.size();
- QFile file( fileName );
+ TQFile file( fileName );
if ( !file.open( IO_ReadOnly ))
{
return false;
@@ -442,7 +442,7 @@ bool KoStore::addLocalFile( const QString &fileName, const QString &destName )
return false;
}
- QByteArray data ( 8 * 1024 );
+ TQByteArray data ( 8 * 1024 );
uint total = 0;
for ( int block = 0; ( block = file.readBlock ( data.data(), data.size() ) ) > 0; total += block )
@@ -460,12 +460,12 @@ bool KoStore::addLocalFile( const QString &fileName, const QString &destName )
return true;
}
-bool KoStore::extractFile ( const QString &srcName, const QString &fileName )
+bool KoStore::extractFile ( const TQString &srcName, const TQString &fileName )
{
if ( !open ( srcName ) )
return false;
- QFile file( fileName );
+ TQFile file( fileName );
if( !file.open ( IO_WriteOnly ) )
{
@@ -473,14 +473,14 @@ bool KoStore::extractFile ( const QString &srcName, const QString &fileName )
return false;
}
- QByteArray data ( 8 * 1024 );
+ TQByteArray data ( 8 * 1024 );
uint total = 0;
for( int block = 0; ( block = read ( data.data(), data.size() ) ) > 0; total += block )
{
file.writeBlock ( data.data(), block );
}
- if( size() != static_cast<QIODevice::Offset>(-1) )
+ if( size() != static_cast<TQIODevice::Offset>(-1) )
Q_ASSERT( total == size() );
file.close();
@@ -489,25 +489,25 @@ bool KoStore::extractFile ( const QString &srcName, const QString &fileName )
return true;
}
-QStringList KoStore::addLocalDirectory( const QString &dirPath, const QString &destName )
+TQStringList KoStore::addLocalDirectory( const TQString &dirPath, const TQString &destName )
{
- QString dot = ".";
- QString dotdot = "..";
- QStringList content;
+ TQString dot = ".";
+ TQString dotdot = "..";
+ TQStringList content;
- QDir dir(dirPath);
+ TQDir dir(dirPath);
if ( !dir.exists() )
return 0;
- QStringList files = dir.entryList();
- for ( QStringList::Iterator it = files.begin(); it != files.end(); ++it )
+ TQStringList files = dir.entryList();
+ for ( TQStringList::Iterator it = files.begin(); it != files.end(); ++it )
{
if ( *it != dot && *it != dotdot )
{
- QString currentFile = dirPath + "/" + *it;
- QString dest = destName.isEmpty() ? *it : (destName + "/" + *it);
+ TQString currentFile = dirPath + "/" + *it;
+ TQString dest = destName.isEmpty() ? *it : (destName + "/" + *it);
- QFileInfo fi ( currentFile );
+ TQFileInfo fi ( currentFile );
if ( fi.isFile() )
{
addLocalFile ( currentFile, dest );
@@ -524,12 +524,12 @@ QStringList KoStore::addLocalDirectory( const QString &dirPath, const QString &d
}
-bool KoStore::at( QIODevice::Offset pos )
+bool KoStore::at( TQIODevice::Offset pos )
{
return m_stream->at( pos );
}
-QIODevice::Offset KoStore::at() const
+TQIODevice::Offset KoStore::at() const
{
return m_stream->at();
}
@@ -540,12 +540,12 @@ bool KoStore::atEnd() const
}
// See the specification for details of what this function does.
-QString KoStore::toExternalNaming( const QString & _internalNaming ) const
+TQString KoStore::toExternalNaming( const TQString & _internalNaming ) const
{
if ( _internalNaming == ROOTPART )
return expandEncodedDirectory( currentPath() ) + MAINNAME;
- QString intern;
+ TQString intern;
if ( _internalNaming.startsWith( "tar:/" ) ) // absolute reference
intern = _internalNaming.mid( 5 ); // remove protocol
else
@@ -554,22 +554,22 @@ QString KoStore::toExternalNaming( const QString & _internalNaming ) const
return expandEncodedPath( intern );
}
-QString KoStore::expandEncodedPath( QString intern ) const
+TQString KoStore::expandEncodedPath( TQString intern ) const
{
if ( m_namingVersion == NAMING_VERSION_RAW )
return intern;
- QString result;
+ TQString result;
int pos;
- if ( ( pos = intern.findRev( '/', -1 ) ) != -1 ) {
+ if ( ( pos = intern.tqfindRev( '/', -1 ) ) != -1 ) {
result = expandEncodedDirectory( intern.left( pos ) ) + '/';
intern = intern.mid( pos + 1 );
}
// Now process the filename. If the first character is numeric, we have
// a main document.
- if ( QChar(intern.at(0)).isDigit() )
+ if ( TQChar(intern.at(0)).isDigit() )
{
// If this is the first part name, check if we have a store with
// old-style names.
@@ -588,27 +588,27 @@ QString KoStore::expandEncodedPath( QString intern ) const
return result;
}
-QString KoStore::expandEncodedDirectory( QString intern ) const
+TQString KoStore::expandEncodedDirectory( TQString intern ) const
{
if ( m_namingVersion == NAMING_VERSION_RAW )
return intern;
- QString result;
+ TQString result;
int pos;
- while ( ( pos = intern.find( '/' ) ) != -1 ) {
- if ( QChar(intern.at(0)).isDigit() )
+ while ( ( pos = intern.tqfind( '/' ) ) != -1 ) {
+ if ( TQChar(intern.at(0)).isDigit() )
result += "part";
result += intern.left( pos + 1 ); // copy numbers (or "pictures") + "/"
intern = intern.mid( pos + 1 ); // remove the dir we just processed
}
- if ( QChar(intern.at(0)).isDigit() )
+ if ( TQChar(intern.at(0)).isDigit() )
result += "part";
result += intern;
return result;
}
-bool KoStore::enterDirectoryInternal( const QString& directory )
+bool KoStore::enterDirectoryInternal( const TQString& directory )
{
if ( enterRelativeDirectory( expandEncodedDirectory( directory ) ) )
{
@@ -623,7 +623,7 @@ void KoStore::disallowNameExpansion( void )
m_namingVersion = NAMING_VERSION_RAW;
}
-bool KoStore::hasFile( const QString& fileName ) const
+bool KoStore::hasFile( const TQString& fileName ) const
{
return fileExists( toExternalNaming( currentPath() + fileName ) );
}
diff --git a/src/projects/kostore/koStore.h b/src/projects/kostore/koStore.h
index a22c5f3..331bc8b 100644
--- a/src/projects/kostore/koStore.h
+++ b/src/projects/kostore/koStore.h
@@ -21,16 +21,16 @@
#ifndef __koStore_h_
#define __koStore_h_
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qiodevice.h>
-#include <qvaluestack.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqiodevice.h>
+#include <tqvaluestack.h>
//#include <koffice_export.h>
#include <kdemacros.h>
#define KOSTORE_EXPORT KDE_EXPORT
-class QWidget;
+class TQWidget;
class KURL;
@@ -61,14 +61,14 @@ public:
* to be written in the file for "mime-magic" identification.
* Only meaningful if mode is Write, and if backend!=Directory.
*/
- static KoStore* createStore( const QString& fileName, Mode mode, const QCString & appIdentification = "", Backend backend = Auto );
+ static KoStore* createStore( const TQString& fileName, Mode mode, const TQCString & appIdentification = "", Backend backend = Auto );
/**
- * Create a store for any kind of QIODevice: file, memory buffer...
- * KoStore will take care of opening the QIODevice.
+ * Create a store for any kind of TQIODevice: file, memory buffer...
+ * KoStore will take care of opening the TQIODevice.
* This method doesn't support the Directory store!
*/
- static KoStore* createStore( QIODevice *device, Mode mode, const QCString & appIdentification = "", Backend backend = Auto );
+ static KoStore* createStore( TQIODevice *device, Mode mode, const TQCString & appIdentification = "", Backend backend = Auto );
/**
* Open a store (i.e. the representation on disk of a KOffice document).
@@ -90,7 +90,7 @@ public:
* @since 1.4
* @bug saving not completely implemented (fixed temporary file)
*/
- static KoStore* createStore( QWidget* window, const KURL& url, Mode mode, const QCString & appIdentification = "", Backend backend = Auto );
+ static KoStore* createStore( TQWidget* window, const KURL& url, Mode mode, const TQCString & appIdentification = "", Backend backend = Auto );
/**
* Destroys the store (i.e. closes the file on the hard disk)
@@ -103,7 +103,7 @@ public:
* If the tar:/ prefix is missing it's assumed to be a relative URI.
* @return true on success.
*/
- bool open( const QString & name );
+ bool open( const TQString & name );
/**
* Check whether a file inside the store is currently opened with open(),
@@ -123,38 +123,38 @@ public:
* (slightly faster than read() calls)
* You need to call @ref open first, and @ref close afterwards.
*/
- QIODevice* device() const;
+ TQIODevice* device() const;
/**
* Read data from the currently opened file. You can also use the streams
* for this.
*/
- QByteArray read( unsigned long int max );
+ TQByteArray read( unsigned long int max );
/**
* Write data into the currently opened file. You can also use the streams
* for this.
*/
- Q_LONG write( const QByteArray& _data );
+ TQ_LONG write( const TQByteArray& _data );
/**
* Read data from the currently opened file. You can also use the streams
* for this.
* @return size of data read, -1 on error
*/
- Q_LONG read( char *_buffer, Q_ULONG _len );
+ TQ_LONG read( char *_buffer, TQ_ULONG _len );
/**
* Write data into the currently opened file. You can also use the streams
* for this.
*/
- virtual Q_LONG write( const char* _data, Q_ULONG _len );
+ virtual TQ_LONG write( const char* _data, TQ_ULONG _len );
/**
* @return the size of the currently opened file, -1 on error.
* Can be used as an argument for the read methods, for instance
*/
- QIODevice::Offset size() const;
+ TQIODevice::Offset size() const;
/**
* @return true if an error occurred
@@ -175,7 +175,7 @@ public:
* opening a stream.
* Note: Operates on internal names
*/
- bool enterDirectory( const QString& directory );
+ bool enterDirectory( const TQString& directory );
/**
* Leaves a directory. Equivalent to "cd .."
@@ -188,13 +188,13 @@ public:
* Returns the current path including a trailing slash.
* Note: Returns a path in "internal name" style
*/
- QString currentPath() const;
+ TQString currentPath() const;
/**
* Returns the current directory.
* Note: Returns a path in "internal name" style
*/
- QString currentDirectory() const;
+ TQString currentDirectory() const;
/**
@@ -213,14 +213,14 @@ public:
* @return true if the given file exists in the current directory,
* i.e. if open(fileName) will work.
*/
- bool hasFile( const QString& fileName ) const;
+ bool hasFile( const TQString& fileName ) const;
/**
* Imports a local file into a store
* @param fileName file on hard disk
* @param destName file in the store
*/
- bool addLocalFile( const QString &fileName, const QString &destName );
+ bool addLocalFile( const TQString &fileName, const TQString &destName );
/**
* Imports a local directory
@@ -228,7 +228,7 @@ public:
* @param dest path in the store where the directory should get saved
* @return the directory index
*/
- QStringList addLocalDirectory( const QString &dirPath, const QString &dest );
+ TQStringList addLocalDirectory( const TQString &dirPath, const TQString &dest );
/**
@@ -236,12 +236,12 @@ public:
* @param srcName file in the store
* @param fileName file on a disk
*/
- bool extractFile( const QString &srcName, const QString &fileName );
+ bool extractFile( const TQString &srcName, const TQString &fileName );
//@{
- /// See QIODevice
- bool at( QIODevice::Offset pos );
- QIODevice::Offset at() const;
+ /// See TQIODevice
+ bool at( TQIODevice::Offset pos );
+ TQIODevice::Offset at() const;
bool atEnd() const;
//@}
@@ -267,7 +267,7 @@ protected:
* @param name "absolute path" (in the archive) to the file to open
* @return true on success
*/
- virtual bool openWrite( const QString& name ) = 0;
+ virtual bool openWrite( const TQString& name ) = 0;
/**
* Open the file @p name in the store, for reading.
* On success, this method must set m_stream to a stream from which we can read,
@@ -275,7 +275,7 @@ protected:
* @param name "absolute path" (in the archive) to the file to open
* @return true on success
*/
- virtual bool openRead( const QString& name ) = 0;
+ virtual bool openRead( const TQString& name ) = 0;
/**
* @return true on success
@@ -290,21 +290,21 @@ protected:
* Enter a subdirectory of the current directory.
* The directory might not exist yet in Write mode.
*/
- virtual bool enterRelativeDirectory( const QString& dirName ) = 0;
+ virtual bool enterRelativeDirectory( const TQString& dirName ) = 0;
/**
* Enter a directory where we've been before.
* It is guaranteed to always exist.
*/
- virtual bool enterAbsoluteDirectory( const QString& path ) = 0;
+ virtual bool enterAbsoluteDirectory( const TQString& path ) = 0;
/**
* Check if a file exists inside the store.
* @param absPath the absolute path inside the store, i.e. not relative to the current directory
*/
- virtual bool fileExists( const QString& absPath ) const = 0;
+ virtual bool fileExists( const TQString& absPath ) const = 0;
private:
- static Backend determineBackend( QIODevice* dev );
+ static Backend determineBackend( TQIODevice* dev );
/**
* Conversion routine
@@ -319,18 +319,18 @@ private:
*
* see specification (koffice/lib/store/SPEC) for details.
*/
- QString toExternalNaming( const QString & _internalNaming ) const;
+ TQString toExternalNaming( const TQString & _internalNaming ) const;
/**
* Expands a full path name for a stream (directories+filename)
*/
- QString expandEncodedPath( QString intern ) const;
+ TQString expandEncodedPath( TQString intern ) const;
/**
* Expands only directory names(!)
* Needed for the path handling code, as we only operate on internal names
*/
- QString expandEncodedDirectory( QString intern ) const;
+ TQString expandEncodedDirectory( TQString intern ) const;
mutable enum
{
@@ -343,28 +343,28 @@ private:
* Enter *one* single directory. Nothing like foo/bar/bleh allowed.
* Performs some checking when in Read mode
*/
- bool enterDirectoryInternal( const QString& directory );
+ bool enterDirectoryInternal( const TQString& directory );
protected:
Mode m_mode;
/// Store the filenames (with full path inside the archive) when writing, to avoid duplicates
- QStringList m_strFiles;
+ TQStringList m_strFiles;
/// The "current directory" (path)
- QStringList m_currentPath;
+ TQStringList m_currentPath;
/// Used to push/pop directories to make it easy to save/restore the state
- QValueStack<QString> m_directoryStack;
+ TQValueStack<TQString> m_directoryStack;
/// Current filename (between an open() and a close())
- QString m_sName;
+ TQString m_sName;
/// Current size of the file named m_sName
- QIODevice::Offset m_iSize;
+ TQIODevice::Offset m_iSize;
/// The stream for the current read or write operation
- QIODevice * m_stream;
+ TQIODevice * m_stream;
bool m_bIsOpen;
/// Must be set by the constructor.
diff --git a/src/projects/kostore/koStoreBase.h b/src/projects/kostore/koStoreBase.h
index 0987577..c3792e5 100644
--- a/src/projects/kostore/koStoreBase.h
+++ b/src/projects/kostore/koStoreBase.h
@@ -44,8 +44,8 @@ protected:
*/
KURL m_url;
FileMode m_fileMode;
- QString m_localFileName;
- QWidget* m_window;
+ TQString m_localFileName;
+ TQWidget* m_window;
};
#endif //KOSTORE_BASE_H
diff --git a/src/projects/kostore/koStoreDevice.h b/src/projects/kostore/koStoreDevice.h
index b245d60..df8cebf 100644
--- a/src/projects/kostore/koStoreDevice.h
+++ b/src/projects/kostore/koStoreDevice.h
@@ -23,11 +23,11 @@
#include "koStore.h"
/**
- * This class implements a QIODevice around KoStore, so that
- * it can be used to create a QDomDocument from it, to be written or read
- * using QDataStream or to be written using QTextStream
+ * This class implements a TQIODevice around KoStore, so that
+ * it can be used to create a TQDomDocument from it, to be written or read
+ * using TQDataStream or to be written using TQTextStream
*/
-class KoStoreDevice : public QIODevice
+class KoStoreDevice : public TQIODevice
{
public:
/// Note: KoStore::open() should be called before calling this.
@@ -46,17 +46,26 @@ public:
void close() { }
void flush() { }
+#ifdef USE_QT4
+ inline qint64 readData ( char * data, qint64 maxSize ) { return readBlock(data, maxSize); }
+ inline qint64 writeData ( const char * data, qint64 maxSize ) { return writeBlock(data, maxSize); }
+#endif // USE_QT4
+
+#ifdef USE_QT4
+ qint64 size() const {
+#else // USE_QT4
Offset size() const {
+#endif // USE_QT4
if ( m_store->mode() == KoStore::Read )
return m_store->size();
else
return 0xffffffff;
}
- virtual Q_LONG readBlock( char *data, Q_ULONG maxlen ) { return m_store->read(data, maxlen); }
- virtual Q_LONG writeBlock( const char *data, Q_ULONG len ) { return m_store->write( data, len ); }
+ virtual TQ_LONG readBlock( char *data, TQ_ULONG maxlen ) { return m_store->read(data, maxlen); }
+ virtual TQ_LONG writeBlock( const char *data, TQ_ULONG len ) { return m_store->write( data, len ); }
// Not virtual, only to uncover shadow
- Q_LONG writeBlock( const QByteArray& data ) { return QIODevice::writeBlock( data ); }
+ TQ_LONG writeBlock( const TQByteArray& data ) { return TQIODevice::writeBlock( data ); }
int getch() {
char c[2];
@@ -76,7 +85,7 @@ public:
}
int ungetch( int ) { return -1; } // unsupported
- // See QIODevice
+ // See TQIODevice
virtual bool at( Offset pos ) { return m_store->at(pos); }
virtual Offset at() const { return m_store->at(); }
virtual bool atEnd() const { return m_store->atEnd(); }
diff --git a/src/projects/kostore/koZipStore.cc b/src/projects/kostore/koZipStore.cc
index ed3fec4..4b63a4c 100644
--- a/src/projects/kostore/koZipStore.cc
+++ b/src/projects/kostore/koZipStore.cc
@@ -19,7 +19,7 @@
#include "koZipStore.h"
-#include <qbuffer.h>
+#include <tqbuffer.h>
#include <kzip.h>
#include <kdebug.h>
@@ -27,11 +27,11 @@
#include <kurl.h>
#include <kio/netaccess.h>
#if ! KDE_IS_VERSION( 3, 4, 1 )
-#include <qdir.h>
-#include <qfileinfo.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
#endif
-KoZipStore::KoZipStore( const QString & _filename, Mode _mode, const QCString & appIdentification )
+KoZipStore::KoZipStore( const TQString & _filename, Mode _mode, const TQCString & appIdentification )
{
kdDebug(s_area) << "KoZipStore Constructor filename = " << _filename
<< " mode = " << int(_mode)
@@ -42,8 +42,8 @@ KoZipStore::KoZipStore( const QString & _filename, Mode _mode, const QCString &
#if ! KDE_IS_VERSION( 3, 4, 1 )
// Workaround for KZip KSaveFile double deletion in kdelibs-3.4,
// when trying to write to a non-writable directory.
- QDir dir( QFileInfo( _filename ).dir() );
- if (_mode == Write && !QFileInfo( dir.path() ).isWritable() )
+ TQDir dir( TQFileInfo( _filename ).dir() );
+ if (_mode == Write && !TQFileInfo( dir.path() ).isWritable() )
{
kdWarning(s_area) << dir.path() << " isn't writable" << endl;
m_bGood = false;
@@ -57,13 +57,13 @@ KoZipStore::KoZipStore( const QString & _filename, Mode _mode, const QCString &
}
}
-KoZipStore::KoZipStore( QIODevice *dev, Mode mode, const QCString & appIdentification )
+KoZipStore::KoZipStore( TQIODevice *dev, Mode mode, const TQCString & appIdentification )
{
m_pZip = new KZip( dev );
m_bGood = init( mode, appIdentification );
}
-KoZipStore::KoZipStore( QWidget* window, const KURL & _url, const QString & _filename, Mode _mode, const QCString & appIdentification )
+KoZipStore::KoZipStore( TQWidget* window, const KURL & _url, const TQString & _filename, Mode _mode, const TQCString & appIdentification )
{
kdDebug(s_area) << "KoZipStore Constructor url" << _url.prettyURL()
<< " filename = " << _filename
@@ -107,7 +107,7 @@ KoZipStore::~KoZipStore()
}
}
-bool KoZipStore::init( Mode _mode, const QCString& appIdentification )
+bool KoZipStore::init( Mode _mode, const TQCString& appIdentification )
{
KoStore::init( _mode );
m_currentDir = 0;
@@ -129,12 +129,12 @@ bool KoZipStore::init( Mode _mode, const QCString& appIdentification )
return good;
}
-bool KoZipStore::openWrite( const QString& name )
+bool KoZipStore::openWrite( const TQString& name )
{
#if 0
// Prepare memory buffer for writing
m_byteArray.resize( 0 );
- m_stream = new QBuffer( m_byteArray );
+ m_stream = new TQBuffer( m_byteArray );
m_stream->open( IO_WriteOnly );
return true;
#endif
@@ -142,7 +142,7 @@ bool KoZipStore::openWrite( const QString& name )
return m_pZip->prepareWriting( name, "", "" /*m_pZip->rootDir()->user(), m_pZip->rootDir()->group()*/, 0 );
}
-bool KoZipStore::openRead( const QString& name )
+bool KoZipStore::openRead( const TQString& name )
{
const KArchiveEntry * entry = m_pZip->directory()->entry( name );
if ( entry == 0L )
@@ -165,7 +165,7 @@ bool KoZipStore::openRead( const QString& name )
return true;
}
-Q_LONG KoZipStore::write( const char* _data, Q_ULONG _len )
+TQ_LONG KoZipStore::write( const char* _data, TQ_ULONG _len )
{
if ( _len == 0L ) return 0;
//kdDebug(s_area) << "KoZipStore::write " << _len << endl;
@@ -200,7 +200,7 @@ bool KoZipStore::closeWrite()
#endif
}
-bool KoZipStore::enterRelativeDirectory( const QString& dirName )
+bool KoZipStore::enterRelativeDirectory( const TQString& dirName )
{
if ( m_mode == Read ) {
if ( !m_currentDir ) {
@@ -218,7 +218,7 @@ bool KoZipStore::enterRelativeDirectory( const QString& dirName )
return true;
}
-bool KoZipStore::enterAbsoluteDirectory( const QString& path )
+bool KoZipStore::enterAbsoluteDirectory( const TQString& path )
{
if ( path.isEmpty() )
{
@@ -230,7 +230,7 @@ bool KoZipStore::enterAbsoluteDirectory( const QString& path )
return m_currentDir != 0;
}
-bool KoZipStore::fileExists( const QString& absPath ) const
+bool KoZipStore::fileExists( const TQString& absPath ) const
{
const KArchiveEntry *entry = m_pZip->directory()->entry( absPath );
return entry && entry->isFile();
diff --git a/src/projects/kostore/koZipStore.h b/src/projects/kostore/koZipStore.h
index e87f5e4..557cca3 100644
--- a/src/projects/kostore/koZipStore.h
+++ b/src/projects/kostore/koZipStore.h
@@ -29,26 +29,26 @@ class KURL;
class KoZipStore : public KoStoreBase
{
public:
- KoZipStore( const QString & _filename, Mode _mode, const QCString & appIdentification );
- KoZipStore( QIODevice *dev, Mode mode, const QCString & appIdentification );
+ KoZipStore( const TQString & _filename, Mode _mode, const TQCString & appIdentification );
+ KoZipStore( TQIODevice *dev, Mode mode, const TQCString & appIdentification );
/**
* KURL-constructor
* @todo saving not completely implemented (fixed temporary file)
* @since 1.4
*/
- KoZipStore( QWidget* window, const KURL& _url, const QString & _filename, Mode _mode, const QCString & appIdentification );
+ KoZipStore( TQWidget* window, const KURL& _url, const TQString & _filename, Mode _mode, const TQCString & appIdentification );
~KoZipStore();
- virtual Q_LONG write( const char* _data, Q_ULONG _len );
+ virtual TQ_LONG write( const char* _data, TQ_ULONG _len );
protected:
- virtual bool init( Mode _mode, const QCString& appIdentification );
- virtual bool openWrite( const QString& name );
- virtual bool openRead( const QString& name );
+ virtual bool init( Mode _mode, const TQCString& appIdentification );
+ virtual bool openWrite( const TQString& name );
+ virtual bool openRead( const TQString& name );
virtual bool closeWrite();
virtual bool closeRead() { return true; }
- virtual bool enterRelativeDirectory( const QString& dirName );
- virtual bool enterAbsoluteDirectory( const QString& path );
- virtual bool fileExists( const QString& absPath ) const;
+ virtual bool enterRelativeDirectory( const TQString& dirName );
+ virtual bool enterAbsoluteDirectory( const TQString& path );
+ virtual bool fileExists( const TQString& absPath ) const;
/// The archive
KZip * m_pZip;
diff --git a/src/rip/base_k3baudiorippingoptionwidget.ui b/src/rip/base_k3baudiorippingoptionwidget.ui
index 04355b4..db1848a 100644
--- a/src/rip/base_k3baudiorippingoptionwidget.ui
+++ b/src/rip/base_k3baudiorippingoptionwidget.ui
@@ -1,11 +1,11 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>base_K3bAudioRippingOptionWidget</class>
<author>Sebastian Trueg</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>Form1</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -17,7 +17,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>groupBox2</cstring>
</property>
@@ -41,7 +41,7 @@
</sizepolicy>
</property>
</widget>
- <widget class="QToolButton">
+ <widget class="TQToolButton">
<property name="name">
<cstring>m_buttonConfigurePlugin</cstring>
</property>
@@ -54,7 +54,7 @@
</widget>
</hbox>
</widget>
- <widget class="QGroupBox" row="0" column="1" rowspan="2" colspan="1">
+ <widget class="TQGroupBox" row="0" column="1" rowspan="2" colspan="1">
<property name="name">
<cstring>groupBox3</cstring>
</property>
@@ -65,7 +65,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkCreatePlaylist</cstring>
</property>
@@ -81,9 +81,9 @@ which can be used with programs like xmms or noatun.
&lt;p&gt;You may use the special strings to give the playlist a unique filename.</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<hbox>
<property name="name">
@@ -99,14 +99,14 @@ which can be used with programs like xmms or noatun.
<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="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkPlaylistRelative</cstring>
</property>
@@ -128,7 +128,7 @@ playlist will look something like: &lt;em&gt;cool/track1.ogg&lt;/em&gt;.</string
</widget>
</hbox>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkSingleFile</cstring>
</property>
@@ -146,9 +146,9 @@ file will contain all tracks one after the other.
&lt;p&gt;&lt;b&gt;Caution:&lt;/b&gt; The file will have the name of the first track.</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout6_2</cstring>
+ <cstring>tqlayout6_2</cstring>
</property>
<hbox>
<property name="name">
@@ -164,14 +164,14 @@ file will contain all tracks one after the other.
<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="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkWriteCueFile</cstring>
</property>
@@ -192,7 +192,7 @@ file will contain all tracks one after the other.
</widget>
</vbox>
</widget>
- <widget class="QGroupBox" row="1" column="0">
+ <widget class="TQGroupBox" row="1" column="0">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@@ -211,7 +211,7 @@ file will contain all tracks one after the other.
<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>textLabel1</cstring>
</property>
@@ -224,18 +224,18 @@ file will contain all tracks one after the other.
<cstring>m_editBaseDir</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="1">
+ <widget class="TQLabel" row="1" column="1">
<property name="name">
<cstring>m_labelFreeSpace</cstring>
</property>
<property name="text">
<string>-</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -243,14 +243,14 @@ file will contain all tracks one after the other.
<string>Space needed:</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="1">
+ <widget class="TQLabel" row="2" column="1">
<property name="name">
<cstring>m_labelNeededSpace</cstring>
</property>
<property name="text">
<string>-</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
@@ -274,7 +274,7 @@ file will contain all tracks one after the other.
<slot>setEnabled(bool)</slot>
</connection>
</connections>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kurlrequester.h</includehint>
<includehint>kpushbutton.h</includehint>
diff --git a/src/rip/base_k3bcddbpatternwidget.ui b/src/rip/base_k3bcddbpatternwidget.ui
index cafaa5d..2a1f617 100644
--- a/src/rip/base_k3bcddbpatternwidget.ui
+++ b/src/rip/base_k3bcddbpatternwidget.ui
@@ -1,10 +1,10 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>base_K3bCddbPatternWidget</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>base_K3bPatternOptionTab</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -25,15 +25,15 @@
<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>layout8</cstring>
+ <cstring>tqlayout8</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkBlankReplace</cstring>
</property>
@@ -54,7 +54,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -78,7 +78,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -105,9 +105,9 @@
<string>Insert your custom pattern here</string>
</property>
</widget>
- <widget class="QLayoutWidget" row="2" column="0" rowspan="1" colspan="2">
+ <widget class="TQLayoutWidget" row="2" column="0" rowspan="1" colspan="2">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<hbox>
<property name="name">
@@ -123,7 +123,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>31</width>
<height>2</height>
@@ -137,7 +137,7 @@
<property name="text">
<string>See special strings</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
@@ -148,7 +148,7 @@
<property name="text">
<string>About conditional inclusion</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
@@ -172,7 +172,7 @@
<tabstop>m_checkBlankReplace</tabstop>
<tabstop>m_editBlankReplace</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kurllabel.h</includehint>
<includehint>kurllabel.h</includehint>
diff --git a/src/rip/k3baudiocdlistview.cpp b/src/rip/k3baudiocdlistview.cpp
index b5f8566..fe7fcde 100644
--- a/src/rip/k3baudiocdlistview.cpp
+++ b/src/rip/k3baudiocdlistview.cpp
@@ -18,12 +18,12 @@
#include <klocale.h>
-#include <qheader.h>
-#include <qtooltip.h>
+#include <tqheader.h>
+#include <tqtooltip.h>
-K3bAudioCdListView::K3bAudioCdListView( K3bAudioCdView* view, QWidget* parent, const char* name )
- : K3bListView( parent, name ),
+K3bAudioCdListView::K3bAudioCdListView( K3bAudioCdView* view, TQWidget* tqparent, const char* name )
+ : K3bListView( tqparent, name ),
m_view(view)
{
setFullWidth(true);
@@ -41,13 +41,13 @@ K3bAudioCdListView::K3bAudioCdListView( K3bAudioCdView* view, QWidget* parent, c
setDoubleClickForEdit( true );
header()->setClickEnabled(false);
- setColumnWidthMode( 0, QListView::Manual );
+ setColumnWidthMode( 0, TQListView::Manual );
setColumnWidth( 0, 20 );
header()->setResizeEnabled( false,0 );
- setColumnAlignment( 4, Qt::AlignHCenter );
+ setColumnAlignment( 4, TQt::AlignHCenter );
- QToolTip::add( viewport(), i18n("Check the tracks that should be ripped") );
+ TQToolTip::add( viewport(), i18n("Check the tracks that should be ripped") );
}
@@ -56,7 +56,7 @@ K3bAudioCdListView::~K3bAudioCdListView()
}
-QDragObject* K3bAudioCdListView::dragObject()
+TQDragObject* K3bAudioCdListView::dragObject()
{
return m_view->dragObject();
}
diff --git a/src/rip/k3baudiocdlistview.h b/src/rip/k3baudiocdlistview.h
index 1ce4a90..dccdc20 100644
--- a/src/rip/k3baudiocdlistview.h
+++ b/src/rip/k3baudiocdlistview.h
@@ -18,7 +18,7 @@
#include <k3blistview.h>
-class QDragObject;
+class TQDragObject;
class K3bAudioCdView;
/**
@@ -27,16 +27,17 @@ class K3bAudioCdView;
class K3bAudioCdListView : public K3bListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioCdListView( K3bAudioCdView*, QWidget* parent = 0, const char* name = 0 );
+ K3bAudioCdListView( K3bAudioCdView*, TQWidget* tqparent = 0, const char* name = 0 );
~K3bAudioCdListView();
protected:
/**
* @reimpl from KListView
*/
- QDragObject* dragObject();
+ TQDragObject* dragObject();
private:
K3bAudioCdView* m_view;
diff --git a/src/rip/k3baudiocdview.cpp b/src/rip/k3baudiocdview.cpp
index d225922..f8e5c0a 100644
--- a/src/rip/k3baudiocdview.cpp
+++ b/src/rip/k3baudiocdview.cpp
@@ -46,13 +46,13 @@
#include <kstandarddirs.h>
#include <kdialogbase.h>
-#include <qlayout.h>
-#include <qheader.h>
-#include <qlabel.h>
-#include <qframe.h>
-#include <qspinbox.h>
-#include <qfont.h>
-#include <qdragobject.h>
+#include <tqlayout.h>
+#include <tqheader.h>
+#include <tqlabel.h>
+#include <tqframe.h>
+#include <tqspinbox.h>
+#include <tqfont.h>
+#include <tqdragobject.h>
@@ -60,14 +60,14 @@
class K3bAudioCdView::AudioTrackViewItem : public K3bCheckListViewItem
{
public:
- AudioTrackViewItem( QListView* parent,
- QListViewItem* after,
+ AudioTrackViewItem( TQListView* tqparent,
+ TQListViewItem* after,
int _trackNumber,
const K3b::Msf& length)
- : K3bCheckListViewItem( parent, after ) {
+ : K3bCheckListViewItem( tqparent, after ) {
- setText( 1, QString::number(_trackNumber).rightJustify( 2, ' ' ) );
- setText( 3, i18n("Track %1").arg(_trackNumber) );
+ setText( 1, TQString::number(_trackNumber).rightJustify( 2, ' ' ) );
+ setText( 3, i18n("Track %1").tqarg(_trackNumber) );
setText( 4, " " + length.toString() + " " );
setText( 5, " " + KIO::convertSize( length.audioBytes() ) + " " );
@@ -94,24 +94,24 @@ public:
};
-K3bAudioCdView::K3bAudioCdView( QWidget* parent, const char *name )
+K3bAudioCdView::K3bAudioCdView( TQWidget* tqparent, const char *name )
: K3bMediaContentsView( true,
K3bMedium::CONTENT_AUDIO,
K3bDevice::MEDIA_CD_ALL,
K3bDevice::STATE_INCOMPLETE|K3bDevice::STATE_COMPLETE,
- parent, name )
+ tqparent, name )
{
- QGridLayout* mainGrid = new QGridLayout( mainWidget() );
+ TQGridLayout* mainGrid = new TQGridLayout( mainWidget() );
// toolbox
// ----------------------------------------------------------------------------------
- QHBoxLayout* toolBoxLayout = new QHBoxLayout( 0, 0, 0, "toolBoxLayout" );
+ TQHBoxLayout* toolBoxLayout = new TQHBoxLayout( 0, 0, 0, "toolBoxLayout" );
m_toolBox = new K3bToolBox( mainWidget() );
toolBoxLayout->addWidget( m_toolBox );
- QSpacerItem* spacer = new QSpacerItem( 10, 10, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ TQSpacerItem* spacer = new TQSpacerItem( 10, 10, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
toolBoxLayout->addItem( spacer );
- m_labelLength = new QLabel( mainWidget() );
- m_labelLength->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
+ m_labelLength = new TQLabel( mainWidget() );
+ m_labelLength->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
toolBoxLayout->addWidget( m_labelLength );
@@ -119,21 +119,21 @@ K3bAudioCdView::K3bAudioCdView( QWidget* parent, const char *name )
// ----------------------------------------------------------------------------------
m_trackView = new K3bAudioCdListView( this, mainWidget() );
- connect( m_trackView, SIGNAL(itemRenamed(QListViewItem*, const QString&, int)),
- this, SLOT(slotItemRenamed(QListViewItem*, const QString&, int)) );
- connect( m_trackView, SIGNAL(contextMenu(KListView*, QListViewItem*, const QPoint&)),
- this, SLOT(slotContextMenu(KListView*, QListViewItem*, const QPoint&)) );
-// connect( m_trackView, SIGNAL(selectionChanged(QListViewItem*)),
-// this, SLOT(slotTrackSelectionChanged(QListViewItem*)) );
+ connect( m_trackView, TQT_SIGNAL(itemRenamed(TQListViewItem*, const TQString&, int)),
+ this, TQT_SLOT(slotItemRenamed(TQListViewItem*, const TQString&, int)) );
+ connect( m_trackView, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
+ this, TQT_SLOT(slotContextMenu(KListView*, TQListViewItem*, const TQPoint&)) );
+// connect( m_trackView, TQT_SIGNAL(selectionChanged(TQListViewItem*)),
+// this, TQT_SLOT(slotTrackSelectionChanged(TQListViewItem*)) );
mainGrid->addLayout( toolBoxLayout, 0, 0 );
mainGrid->addWidget( m_trackView, 1, 0 );
- m_cddb = new K3bCddb( this );
+ m_cddb = new K3bCddb( TQT_TQOBJECT(this) );
- connect( m_cddb, SIGNAL(queryFinished(int)),
- this, SLOT(slotCddbQueryFinished(int)) );
+ connect( m_cddb, TQT_SIGNAL(queryFinished(int)),
+ this, TQT_SLOT(slotCddbQueryFinished(int)) );
initActions();
// slotTrackSelectionChanged(0);
@@ -142,7 +142,7 @@ K3bAudioCdView::K3bAudioCdView( QWidget* parent, const char *name )
setRightPixmap( K3bTheme::MEDIA_AUDIO );
m_busyInfoLabel = new K3bThemedLabel( i18n("Searching for Artist information..."), this );
- m_busyInfoLabel->setFrameStyle( QFrame::Box|QFrame::Plain );
+ m_busyInfoLabel->setFrameStyle( TQFrame::Box|TQFrame::Plain );
m_busyInfoLabel->setMargin( 6 );
m_busyInfoLabel->hide();
}
@@ -160,7 +160,7 @@ void K3bAudioCdView::reloadMedium()
// initialize cddb info for editing
m_cddbInfo = K3bCddbResultEntry();
- m_cddbInfo.discid = QString::number( medium().toc().discId(), 16 );
+ m_cddbInfo.discid = TQString::number( medium().toc().discId(), 16 );
for( int i = 0; i < (int)m_toc.count(); ++i ) {
m_cddbInfo.titles.append("");
@@ -226,33 +226,33 @@ void K3bAudioCdView::initActions()
{
m_actionCollection = new KActionCollection( this );
- KAction* actionSelectAll = new KAction( i18n("Check All"), 0, 0, this,
- SLOT(slotCheckAll()), actionCollection(),
+ KAction* actionSelectAll = new KAction( i18n("Check All"), 0, 0, TQT_TQOBJECT(this),
+ TQT_SLOT(slotCheckAll()), actionCollection(),
"check_all" );
- KAction* actionDeselectAll = new KAction( i18n("Uncheck All"), 0, 0, this,
- SLOT(slotUncheckAll()), actionCollection(),
+ KAction* actionDeselectAll = new KAction( i18n("Uncheck All"), 0, 0, TQT_TQOBJECT(this),
+ TQT_SLOT(slotUncheckAll()), actionCollection(),
"uncheck_all" );
- KAction* actionSelect = new KAction( i18n("Check Track"), 0, 0, this,
- SLOT(slotSelect()), actionCollection(),
+ KAction* actionSelect = new KAction( i18n("Check Track"), 0, 0, TQT_TQOBJECT(this),
+ TQT_SLOT(slotSelect()), actionCollection(),
"select_track" );
- KAction* actionDeselect = new KAction( i18n("Uncheck Track"), 0, 0, this,
- SLOT(slotDeselect()), actionCollection(),
+ KAction* actionDeselect = new KAction( i18n("Uncheck Track"), 0, 0, TQT_TQOBJECT(this),
+ TQT_SLOT(slotDeselect()), actionCollection(),
"deselect_track" );
- KAction* actionEditTrackCddbInfo = new KAction( i18n("Edit Track cddb Info"), "edit", 0, this,
- SLOT(slotEditTrackCddb()), actionCollection(),
+ KAction* actionEditTrackCddbInfo = new KAction( i18n("Edit Track cddb Info"), "edit", 0, TQT_TQOBJECT(this),
+ TQT_SLOT(slotEditTrackCddb()), actionCollection(),
"edit_track_cddb" );
- KAction* actionEditAlbumCddbInfo = new KAction( i18n("Edit Album cddb Info"), "edit", 0, this,
- SLOT(slotEditAlbumCddb()), actionCollection(),
+ KAction* actionEditAlbumCddbInfo = new KAction( i18n("Edit Album cddb Info"), "edit", 0, TQT_TQOBJECT(this),
+ TQT_SLOT(slotEditAlbumCddb()), actionCollection(),
"edit_album_cddb" );
- KAction* actionStartRip = new KAction( i18n("Start Ripping"), "cddarip", 0, this,
- SLOT(startRip()), actionCollection(), "start_rip" );
+ KAction* actionStartRip = new KAction( i18n("Start Ripping"), "cddarip", 0, TQT_TQOBJECT(this),
+ TQT_SLOT(startRip()), actionCollection(), "start_rip" );
- KAction* actionQueryCddb = new KAction( i18n("Query cddb"), "reload", 0, this,
- SLOT(queryCddb()), actionCollection(), "query_cddb" );
+ KAction* actionQueryCddb = new KAction( i18n("Query cddb"), "reload", 0, TQT_TQOBJECT(this),
+ TQT_SLOT(queryCddb()), actionCollection(), "query_cddb" );
- KAction* actionSaveCddbLocally = new KAction( i18n("Save Cddb Entry Locally"), "filesave", 0, this,
- SLOT(slotSaveCddbLocally()), actionCollection(), "save_cddb_local" );
+ KAction* actionSaveCddbLocally = new KAction( i18n("Save Cddb Entry Locally"), "filesave", 0, TQT_TQOBJECT(this),
+ TQT_SLOT(slotSaveCddbLocally()), actionCollection(), "save_cddb_local" );
// TODO: set the actions tooltips and whatsthis infos
@@ -279,13 +279,13 @@ void K3bAudioCdView::initActions()
}
-void K3bAudioCdView::slotContextMenu( KListView*, QListViewItem*, const QPoint& p )
+void K3bAudioCdView::slotContextMenu( KListView*, TQListViewItem*, const TQPoint& p )
{
m_popupMenu->popup(p);
}
-void K3bAudioCdView::slotItemRenamed( QListViewItem* item, const QString& str, int col )
+void K3bAudioCdView::slotItemRenamed( TQListViewItem* item, const TQString& str, int col )
{
AudioTrackViewItem* a = (AudioTrackViewItem*)item;
if( col == 2 )
@@ -297,7 +297,7 @@ void K3bAudioCdView::slotItemRenamed( QListViewItem* item, const QString& str, i
}
-void K3bAudioCdView::slotTrackSelectionChanged( QListViewItem* item )
+void K3bAudioCdView::slotTrackSelectionChanged( TQListViewItem* item )
{
actionCollection()->action("edit_track_cddb")->setEnabled( item != 0 );
actionCollection()->action("select_track")->setEnabled( item != 0 );
@@ -307,8 +307,8 @@ void K3bAudioCdView::slotTrackSelectionChanged( QListViewItem* item )
void K3bAudioCdView::startRip()
{
- QValueList<int> trackNumbers;
- for( QListViewItemIterator it( m_trackView ); it.current(); ++it ) {
+ TQValueList<int> trackNumbers;
+ for( TQListViewItemIterator it( m_trackView ); it.current(); ++it ) {
AudioTrackViewItem* a = (AudioTrackViewItem*)it.current();
if( a->isChecked() )
trackNumbers.append( a->trackNumber );
@@ -331,37 +331,37 @@ void K3bAudioCdView::startRip()
void K3bAudioCdView::slotEditTrackCddb()
{
- QPtrList<QListViewItem> items( m_trackView->selectedItems() );
+ TQPtrList<TQListViewItem> items( m_trackView->selectedItems() );
if( !items.isEmpty() ) {
AudioTrackViewItem* a = static_cast<AudioTrackViewItem*>(items.first());
- KDialogBase d( this, "trackCddbDialog", true, i18n("Cddb Track %1").arg(a->trackNumber),
+ KDialogBase d( this, "trackCddbDialog", true, i18n("Cddb Track %1").tqarg(a->trackNumber),
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true);
- QWidget* w = new QWidget( &d );
+ TQWidget* w = new TQWidget( &d );
KLineEdit* editTitle = new KLineEdit( m_cddbInfo.titles[a->trackNumber-1], w );
KLineEdit* editArtist = new KLineEdit( m_cddbInfo.artists[a->trackNumber-1], w );
KLineEdit* editExtInfo = new KLineEdit( m_cddbInfo.extInfos[a->trackNumber-1], w );
- QFrame* line = new QFrame( w );
- line->setFrameShape( QFrame::HLine );
- line->setFrameShadow( QFrame::Sunken );
+ TQFrame* line = new TQFrame( w );
+ line->setFrameShape( TQFrame::HLine );
+ line->setFrameShadow( TQFrame::Sunken );
- QGridLayout* grid = new QGridLayout( w );
+ TQGridLayout* grid = new TQGridLayout( w );
grid->setSpacing( KDialog::spacingHint() );
- grid->addWidget( new QLabel( i18n("Title:"), w ), 0, 0 );
+ grid->addWidget( new TQLabel( i18n("Title:"), w ), 0, 0 );
grid->addWidget( editTitle, 0, 1 );
grid->addMultiCellWidget( line, 1, 1, 0, 1 );
- grid->addWidget( new QLabel( i18n("Artist:"), w ), 2, 0 );
+ grid->addWidget( new TQLabel( i18n("Artist:"), w ), 2, 0 );
grid->addWidget( editArtist, 2, 1 );
- grid->addWidget( new QLabel( i18n("Extra info:"), w ), 3, 0 );
+ grid->addWidget( new TQLabel( i18n("Extra info:"), w ), 3, 0 );
grid->addWidget( editExtInfo, 3, 1 );
grid->setRowStretch( 4, 1 );
d.setMainWidget(w);
- d.resize( QMAX( QMAX(d.sizeHint().height(), d.sizeHint().width()), 300), d.sizeHint().height() );
+ d.resize( TQMAX( TQMAX(d.tqsizeHint().height(), d.tqsizeHint().width()), 300), d.tqsizeHint().height() );
- if( d.exec() == QDialog::Accepted ) {
+ if( d.exec() == TQDialog::Accepted ) {
m_cddbInfo.titles[a->trackNumber-1] = editTitle->text();
m_cddbInfo.artists[a->trackNumber-1] = editArtist->text();
m_cddbInfo.extInfos[a->trackNumber-1] = editExtInfo->text();
@@ -375,17 +375,17 @@ void K3bAudioCdView::slotEditAlbumCddb()
{
KDialogBase d( this, "trackCddbDialog", true, i18n("Album Cddb"),
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true);
- QWidget* w = new QWidget( &d );
+ TQWidget* w = new TQWidget( &d );
KLineEdit* editTitle = new KLineEdit( m_cddbInfo.cdTitle, w );
KLineEdit* editArtist = new KLineEdit( m_cddbInfo.cdArtist, w );
KLineEdit* editExtInfo = new KLineEdit( m_cddbInfo.cdExtInfo, w );
KLineEdit* editGenre = new KLineEdit( m_cddbInfo.genre, w );
- QSpinBox* spinYear = new QSpinBox( 0, 9999, 1, w );
+ TQSpinBox* spinYear = new TQSpinBox( 0, 9999, 1, w );
spinYear->setValue( m_cddbInfo.year );
- QFrame* line = new QFrame( w );
- line->setFrameShape( QFrame::HLine );
- line->setFrameShadow( QFrame::Sunken );
+ TQFrame* line = new TQFrame( w );
+ line->setFrameShape( TQFrame::HLine );
+ line->setFrameShadow( TQFrame::Sunken );
KComboBox* comboCat = new KComboBox( w );
comboCat->insertStringList( K3bCddbQuery::categories() );
@@ -396,28 +396,28 @@ void K3bAudioCdView::slotEditAlbumCddb()
break;
}
- QGridLayout* grid = new QGridLayout( w );
+ TQGridLayout* grid = new TQGridLayout( w );
grid->setSpacing( KDialog::spacingHint() );
- grid->addWidget( new QLabel( i18n("Title:"), w ), 0, 0 );
+ grid->addWidget( new TQLabel( i18n("Title:"), w ), 0, 0 );
grid->addWidget( editTitle, 0, 1 );
grid->addMultiCellWidget( line, 1, 1, 0, 1 );
- grid->addWidget( new QLabel( i18n("Artist:"), w ), 2, 0 );
+ grid->addWidget( new TQLabel( i18n("Artist:"), w ), 2, 0 );
grid->addWidget( editArtist, 2, 1 );
- grid->addWidget( new QLabel( i18n("Extra info:"), w ), 3, 0 );
+ grid->addWidget( new TQLabel( i18n("Extra info:"), w ), 3, 0 );
grid->addWidget( editExtInfo, 3, 1 );
- grid->addWidget( new QLabel( i18n("Genre:"), w ), 4, 0 );
+ grid->addWidget( new TQLabel( i18n("Genre:"), w ), 4, 0 );
grid->addWidget( editGenre, 4, 1 );
- grid->addWidget( new QLabel( i18n("Year:"), w ), 5, 0 );
+ grid->addWidget( new TQLabel( i18n("Year:"), w ), 5, 0 );
grid->addWidget( spinYear, 5, 1 );
- grid->addWidget( new QLabel( i18n("Category:"), w ), 6, 0 );
+ grid->addWidget( new TQLabel( i18n("Category:"), w ), 6, 0 );
grid->addWidget( comboCat, 6, 1 );
grid->setRowStretch( 7, 1 );
d.setMainWidget(w);
- d.resize( QMAX( QMAX(d.sizeHint().height(), d.sizeHint().width()), 300), d.sizeHint().height() );
+ d.resize( TQMAX( TQMAX(d.tqsizeHint().height(), d.tqsizeHint().width()), 300), d.tqsizeHint().height() );
- if( d.exec() == QDialog::Accepted ) {
+ if( d.exec() == TQDialog::Accepted ) {
m_cddbInfo.cdTitle = editTitle->text();
m_cddbInfo.cdArtist = editArtist->text();
m_cddbInfo.cdExtInfo = editExtInfo->text();
@@ -516,36 +516,36 @@ void K3bAudioCdView::slotSaveCddbLocally()
m_cddb->saveEntry( m_cddbInfo );
K3bPassivePopup::showPopup( i18n("Saved entry (%1) in category %2.")
- .arg(m_cddbInfo.discid)
- .arg(m_cddbInfo.category),
+ .tqarg(m_cddbInfo.discid)
+ .tqarg(m_cddbInfo.category),
i18n("CDDB") );
}
void K3bAudioCdView::slotCheckAll()
{
- for( QListViewItemIterator it( m_trackView ); it.current(); ++it )
+ for( TQListViewItemIterator it( m_trackView ); it.current(); ++it )
((AudioTrackViewItem*)it.current())->setChecked(true);
}
void K3bAudioCdView::slotUncheckAll()
{
- for( QListViewItemIterator it( m_trackView ); it.current(); ++it )
+ for( TQListViewItemIterator it( m_trackView ); it.current(); ++it )
((AudioTrackViewItem*)it.current())->setChecked(false);
}
void K3bAudioCdView::slotSelect()
{
- QPtrList<QListViewItem> items( m_trackView->selectedItems() );
- for( QPtrListIterator<QListViewItem> it( items );
+ TQPtrList<TQListViewItem> items( m_trackView->selectedItems() );
+ for( TQPtrListIterator<TQListViewItem> it( items );
it.current(); ++it )
static_cast<AudioTrackViewItem*>(it.current())->setChecked(true);
}
void K3bAudioCdView::slotDeselect()
{
- QPtrList<QListViewItem> items( m_trackView->selectedItems() );
- for( QPtrListIterator<QListViewItem> it( items );
+ TQPtrList<TQListViewItem> items( m_trackView->selectedItems() );
+ for( TQPtrListIterator<TQListViewItem> it( items );
it.current(); ++it )
static_cast<AudioTrackViewItem*>(it.current())->setChecked(false);
}
@@ -553,13 +553,13 @@ void K3bAudioCdView::slotDeselect()
void K3bAudioCdView::updateDisplay()
{
// update the listview
- for( QListViewItemIterator it( m_trackView ); it.current(); ++it ) {
+ for( TQListViewItemIterator it( m_trackView ); it.current(); ++it ) {
AudioTrackViewItem* item = (AudioTrackViewItem*)it.current();
item->updateCddbData( m_cddbInfo );
}
if( !m_cddbInfo.cdTitle.isEmpty() ) {
- QString s = m_cddbInfo.cdTitle;
+ TQString s = m_cddbInfo.cdTitle;
if( !m_cddbInfo.cdArtist.isEmpty() )
s += " (" + m_cddbInfo.cdArtist + ")";
setTitle( s );
@@ -569,7 +569,7 @@ void K3bAudioCdView::updateDisplay()
m_labelLength->setText( i18n("1 track (%1)",
"%n tracks (%1)",
- m_toc.count()).arg(K3b::Msf(m_toc.length()).toString()) );
+ m_toc.count()).tqarg(K3b::Msf(m_toc.length()).toString()) );
}
@@ -584,10 +584,10 @@ void K3bAudioCdView::showBusyLabel( bool b )
// the themed label is a cut label, thus its size hint is
// based on the cut text, we force it to be full
m_busyInfoLabel->resize( width(), height() );
- m_busyInfoLabel->resize( m_busyInfoLabel->sizeHint() );
+ m_busyInfoLabel->resize( m_busyInfoLabel->tqsizeHint() );
int x = (width() - m_busyInfoLabel->width())/2;
int y = (height() - m_busyInfoLabel->height())/2;
- QRect r( QPoint( x, y ), m_busyInfoLabel->size() );
+ TQRect r( TQPoint( x, y ), m_busyInfoLabel->size() );
m_busyInfoLabel->setGeometry( r );
m_busyInfoLabel->show();
@@ -607,16 +607,16 @@ void K3bAudioCdView::enableInteraction( bool b )
}
-QDragObject* K3bAudioCdView::dragObject()
+TQDragObject* K3bAudioCdView::dragObject()
{
- QPtrList<QListViewItem> items = m_trackView->selectedItems();
- QValueList<int> tracks;
- for( QPtrListIterator<QListViewItem> it( items );
+ TQPtrList<TQListViewItem> items = m_trackView->selectedItems();
+ TQValueList<int> tracks;
+ for( TQPtrListIterator<TQListViewItem> it( items );
it.current(); ++it )
tracks.append( static_cast<AudioTrackViewItem*>(it.current())->trackNumber );
if( !items.isEmpty() ) {
- QDragObject* drag = new K3bAudioCdTrackDrag( m_toc,
+ TQDragObject* drag = new K3bAudioCdTrackDrag( m_toc,
tracks,
m_cddbInfo,
m_device,
diff --git a/src/rip/k3baudiocdview.h b/src/rip/k3baudiocdview.h
index 257a0f5..f28e3a9 100644
--- a/src/rip/k3baudiocdview.h
+++ b/src/rip/k3baudiocdview.h
@@ -26,14 +26,14 @@
class K3bListView;
class KListView;
-class QListViewItem;
-class QPoint;
+class TQListViewItem;
+class TQPoint;
class KActionCollection;
class KActionMenu;
class K3bCddb;
-class QLabel;
+class TQLabel;
class K3bToolBox;
-class QDragObject;
+class TQDragObject;
namespace K3bDevice {
@@ -44,9 +44,10 @@ namespace K3bDevice {
class K3bAudioCdView : public K3bMediaContentsView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioCdView( QWidget* parent = 0, const char * name = 0 );
+ K3bAudioCdView( TQWidget* tqparent = 0, const char * name = 0 );
~K3bAudioCdView();
KActionCollection* actionCollection() const { return m_actionCollection; }
@@ -54,16 +55,16 @@ class K3bAudioCdView : public K3bMediaContentsView
/**
* internal
*/
- QDragObject* dragObject();
+ TQDragObject* dragObject();
public slots:
void queryCddb();
private slots:
- void slotContextMenu( KListView*, QListViewItem*, const QPoint& );
- void slotItemRenamed( QListViewItem*, const QString&, int );
+ void slotContextMenu( KListView*, TQListViewItem*, const TQPoint& );
+ void slotItemRenamed( TQListViewItem*, const TQString&, int );
void slotCddbQueryFinished( int );
- void slotTrackSelectionChanged( QListViewItem* );
+ void slotTrackSelectionChanged( TQListViewItem* );
void slotSaveCddbLocally();
void slotEditTrackCddb();
@@ -92,7 +93,7 @@ class K3bAudioCdView : public K3bMediaContentsView
K3bListView* m_trackView;
K3bToolBox* m_toolBox;
- QLabel* m_labelLength;
+ TQLabel* m_labelLength;
class AudioTrackViewItem;
@@ -100,7 +101,7 @@ class K3bAudioCdView : public K3bMediaContentsView
K3bDevice::CdText m_cdText;
- QLabel* m_busyInfoLabel;
+ TQLabel* m_busyInfoLabel;
};
diff --git a/src/rip/k3baudioconvertingoptionwidget.cpp b/src/rip/k3baudioconvertingoptionwidget.cpp
index a044dc5..5c8070c 100644
--- a/src/rip/k3baudioconvertingoptionwidget.cpp
+++ b/src/rip/k3baudioconvertingoptionwidget.cpp
@@ -27,22 +27,22 @@
#include <klocale.h>
#include <kiconloader.h>
-#include <qintdict.h>
-#include <qmap.h>
-#include <qlabel.h>
-#include <qtimer.h>
-#include <qtoolbutton.h>
-#include <qcheckbox.h>
+#include <tqintdict.h>
+#include <tqmap.h>
+#include <tqlabel.h>
+#include <tqtimer.h>
+#include <tqtoolbutton.h>
+#include <tqcheckbox.h>
class K3bAudioConvertingOptionWidget::Private
{
public:
- QIntDict<K3bAudioEncoder> encoderMap;
- QMap<int, QString> extensionMap;
+ TQIntDict<K3bAudioEncoder> encoderMap;
+ TQMap<int, TQString> extensionMap;
- QTimer freeSpaceUpdateTimer;
+ TQTimer freeSpaceUpdateTimer;
KIO::filesize_t neededSize;
@@ -55,7 +55,7 @@ public:
int ogg = -1;
int mp3 = -1;
int flac = -1;
- for( QMap<int, QString>::const_iterator it = extensionMap.constBegin();
+ for( TQMap<int, TQString>::const_iterator it = extensionMap.constBegin();
it != extensionMap.constEnd(); ++it ) {
if( it.data() == "ogg" )
ogg = it.key();
@@ -77,23 +77,23 @@ public:
};
-K3bAudioConvertingOptionWidget::K3bAudioConvertingOptionWidget( QWidget* parent, const char* name )
- : base_K3bAudioRippingOptionWidget( parent, name )
+K3bAudioConvertingOptionWidget::K3bAudioConvertingOptionWidget( TQWidget* tqparent, const char* name )
+ : base_K3bAudioRippingOptionWidget( tqparent, name )
{
d = new Private();
- connect( m_editBaseDir, SIGNAL(textChanged(const QString&)),
- this, SLOT(slotUpdateFreeTempSpace()) );
- connect( m_comboFileType, SIGNAL(activated(int)),
- this, SLOT(slotEncoderChanged()) );
- connect( &d->freeSpaceUpdateTimer, SIGNAL(timeout()),
- this, SLOT(slotUpdateFreeTempSpace()) );
- connect( m_checkCreatePlaylist, SIGNAL(toggled(bool)), this, SIGNAL(changed()) );
- connect( m_checkSingleFile, SIGNAL(toggled(bool)), this, SIGNAL(changed()) );
- connect( m_checkWriteCueFile, SIGNAL(toggled(bool)), this, SIGNAL(changed()) );
- connect( m_comboFileType, SIGNAL(activated(int)), this, SIGNAL(changed()) );
- connect( m_editBaseDir, SIGNAL(textChanged(const QString&)), this, SIGNAL(changed()) );
- connect( m_buttonConfigurePlugin, SIGNAL(clicked()), this, SLOT(slotConfigurePlugin()) );
+ connect( m_editBaseDir, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(slotUpdateFreeTempSpace()) );
+ connect( m_comboFileType, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotEncoderChanged()) );
+ connect( &d->freeSpaceUpdateTimer, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(slotUpdateFreeTempSpace()) );
+ connect( m_checkCreatePlaylist, TQT_SIGNAL(toggled(bool)), this, TQT_SIGNAL(changed()) );
+ connect( m_checkSingleFile, TQT_SIGNAL(toggled(bool)), this, TQT_SIGNAL(changed()) );
+ connect( m_checkWriteCueFile, TQT_SIGNAL(toggled(bool)), this, TQT_SIGNAL(changed()) );
+ connect( m_comboFileType, TQT_SIGNAL(activated(int)), this, TQT_SIGNAL(changed()) );
+ connect( m_editBaseDir, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SIGNAL(changed()) );
+ connect( m_buttonConfigurePlugin, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotConfigurePlugin()) );
m_editBaseDir->setMode( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly );
m_buttonConfigurePlugin->setIconSet( SmallIconSet( "gear" ) );
@@ -108,12 +108,12 @@ K3bAudioConvertingOptionWidget::K3bAudioConvertingOptionWidget( QWidget* parent,
d->extensionMap[0] = "wav";
// check the available encoding plugins
- QPtrList<K3bPlugin> fl = k3bcore->pluginManager()->plugins( "AudioEncoder" );
- for( QPtrListIterator<K3bPlugin> it( fl ); it.current(); ++it ) {
+ TQPtrList<K3bPlugin> fl = k3bcore->pluginManager()->plugins( "AudioEncoder" );
+ for( TQPtrListIterator<K3bPlugin> it( fl ); it.current(); ++it ) {
K3bAudioEncoder* f = (K3bAudioEncoder*)it.current();
- QStringList exL = f->extensions();
+ TQStringList exL = f->extensions();
- for( QStringList::const_iterator exIt = exL.begin();
+ for( TQStringList::const_iterator exIt = exL.begin();
exIt != exL.end(); ++exIt ) {
d->extensionMap.insert( m_comboFileType->count(), *exIt );
d->encoderMap.insert( m_comboFileType->count(), f );
@@ -133,13 +133,13 @@ K3bAudioConvertingOptionWidget::~K3bAudioConvertingOptionWidget()
}
-QString K3bAudioConvertingOptionWidget::baseDir() const
+TQString K3bAudioConvertingOptionWidget::baseDir() const
{
return m_editBaseDir->url();
}
-void K3bAudioConvertingOptionWidget::setBaseDir( const QString& path )
+void K3bAudioConvertingOptionWidget::setBaseDir( const TQString& path )
{
m_editBaseDir->setURL( path );
}
@@ -168,16 +168,16 @@ void K3bAudioConvertingOptionWidget::slotConfigurePlugin()
void K3bAudioConvertingOptionWidget::slotUpdateFreeTempSpace()
{
- QString path = m_editBaseDir->url();
+ TQString path = m_editBaseDir->url();
- if( !QFile::exists( path ) )
- path.truncate( path.findRev('/') );
+ if( !TQFile::exists( path ) )
+ path.truncate( path.tqfindRev('/') );
unsigned long size, avail;
if( K3b::kbFreeOnFs( path, size, avail ) ) {
m_labelFreeSpace->setText( KIO::convertSizeFromKB(avail) );
if( avail < d->neededSize/1024 )
- m_labelNeededSpace->setPaletteForegroundColor( Qt::red );
+ m_labelNeededSpace->setPaletteForegroundColor( TQt::red );
else
m_labelNeededSpace->setPaletteForegroundColor( paletteForegroundColor() );
}
@@ -201,7 +201,7 @@ K3bAudioEncoder* K3bAudioConvertingOptionWidget::encoder() const
}
-QString K3bAudioConvertingOptionWidget::extension() const
+TQString K3bAudioConvertingOptionWidget::extension() const
{
return d->extensionMap[m_comboFileType->currentItem()];
}
@@ -209,7 +209,7 @@ QString K3bAudioConvertingOptionWidget::extension() const
void K3bAudioConvertingOptionWidget::loadDefaults()
{
- m_editBaseDir->setURL( QDir::homeDirPath() );
+ m_editBaseDir->setURL( TQDir::homeDirPath() );
m_checkSingleFile->setChecked( false );
m_checkWriteCueFile->setChecked( false );
m_comboFileType->setCurrentItem( d->getDefaultFormat() );
@@ -222,7 +222,7 @@ void K3bAudioConvertingOptionWidget::loadDefaults()
void K3bAudioConvertingOptionWidget::loadConfig( KConfigBase* c )
{
- m_editBaseDir->setURL( c->readPathEntry( "last ripping directory", QDir::homeDirPath() ) );
+ m_editBaseDir->setURL( c->readPathEntry( "last ripping directory", TQDir::homeDirPath() ) );
m_checkSingleFile->setChecked( c->readBoolEntry( "single_file", false ) );
m_checkWriteCueFile->setChecked( c->readBoolEntry( "write_cue_file", false ) );
@@ -230,11 +230,11 @@ void K3bAudioConvertingOptionWidget::loadConfig( KConfigBase* c )
m_checkCreatePlaylist->setChecked( c->readBoolEntry( "create_playlist", false ) );
m_checkPlaylistRelative->setChecked( c->readBoolEntry( "relative_path_in_playlist", false ) );
- QString filetype = c->readEntry( "filetype", d->extensionMap[d->getDefaultFormat()] );
+ TQString filetype = c->readEntry( "filetype", d->extensionMap[d->getDefaultFormat()] );
if( filetype == "wav" )
m_comboFileType->setCurrentItem(0);
else {
- for( QMap<int, QString>::iterator it = d->extensionMap.begin();
+ for( TQMap<int, TQString>::iterator it = d->extensionMap.begin();
it != d->extensionMap.end(); ++it ) {
if( it.data() == filetype ) {
m_comboFileType->setCurrentItem( it.key() );
@@ -257,7 +257,7 @@ void K3bAudioConvertingOptionWidget::saveConfig( KConfigBase* c )
c->writeEntry( "create_playlist", m_checkCreatePlaylist->isChecked() );
c->writeEntry( "relative_path_in_playlist", m_checkPlaylistRelative->isChecked() );
- if( d->extensionMap.contains(m_comboFileType->currentItem()) )
+ if( d->extensionMap.tqcontains(m_comboFileType->currentItem()) )
c->writeEntry( "filetype", d->extensionMap[m_comboFileType->currentItem()] );
else
c->writeEntry( "filetype", "wav" );
diff --git a/src/rip/k3baudioconvertingoptionwidget.h b/src/rip/k3baudioconvertingoptionwidget.h
index ff4cd45..5ef51a7 100644
--- a/src/rip/k3baudioconvertingoptionwidget.h
+++ b/src/rip/k3baudioconvertingoptionwidget.h
@@ -18,7 +18,7 @@
#include "base_k3baudiorippingoptionwidget.h"
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
#include <kio/global.h>
class K3bAudioEncoder;
@@ -31,12 +31,13 @@ class KConfigBase;
class K3bAudioConvertingOptionWidget : public base_K3bAudioRippingOptionWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioConvertingOptionWidget( QWidget* parent, const char* name = 0 );
+ K3bAudioConvertingOptionWidget( TQWidget* tqparent, const char* name = 0 );
~K3bAudioConvertingOptionWidget();
- void setBaseDir( const QString& path );
+ void setBaseDir( const TQString& path );
void setNeededSize( KIO::filesize_t );
@@ -44,9 +45,9 @@ class K3bAudioConvertingOptionWidget : public base_K3bAudioRippingOptionWidget
* @returns 0 if wave is selected
*/
K3bAudioEncoder* encoder() const;
- QString extension() const;
+ TQString extension() const;
- QString baseDir() const;
+ TQString baseDir() const;
bool createPlaylist() const { return m_checkCreatePlaylist->isChecked(); }
bool playlistRelativePath() const { return m_checkPlaylistRelative->isChecked(); }
diff --git a/src/rip/k3baudioprojectconvertingdialog.cpp b/src/rip/k3baudioprojectconvertingdialog.cpp
index 8a3eadc..d0fe302 100644
--- a/src/rip/k3baudioprojectconvertingdialog.cpp
+++ b/src/rip/k3baudioprojectconvertingdialog.cpp
@@ -41,14 +41,14 @@
#include <kdebug.h>
#include <kmessagebox.h>
-#include <qgroupbox.h>
-#include <qheader.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qdir.h>
-#include <qstringlist.h>
-#include <qtabwidget.h>
+#include <tqgroupbox.h>
+#include <tqheader.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqdir.h>
+#include <tqstringlist.h>
+#include <tqtabwidget.h>
@@ -58,16 +58,16 @@ public:
Private() {
}
- QValueVector<QString> filenames;
- QString playlistFilename;
- QString cueFilename;
+ TQValueVector<TQString> filenames;
+ TQString playlistFilename;
+ TQString cueFilename;
};
-K3bAudioProjectConvertingDialog::K3bAudioProjectConvertingDialog( K3bAudioDoc* doc, QWidget *parent, const char *name )
- : K3bInteractionDialog( parent, name,
- QString::null,
- QString::null,
+K3bAudioProjectConvertingDialog::K3bAudioProjectConvertingDialog( K3bAudioDoc* doc, TQWidget *tqparent, const char *name )
+ : K3bInteractionDialog( tqparent, name,
+ TQString(),
+ TQString(),
START_BUTTON|CANCEL_BUTTON,
START_BUTTON,
"Audio Project Converting" ), // config group
@@ -79,7 +79,7 @@ K3bAudioProjectConvertingDialog::K3bAudioProjectConvertingDialog( K3bAudioDoc* d
setTitle( i18n("Audio Project Conversion"),
i18n("1 track (%1)", "%n tracks (%1)",
- m_doc->numOfTracks()).arg(m_doc->length().toString()) );
+ m_doc->numOfTracks()).tqarg(m_doc->length().toString()) );
refresh();
}
@@ -93,8 +93,8 @@ K3bAudioProjectConvertingDialog::~K3bAudioProjectConvertingDialog()
void K3bAudioProjectConvertingDialog::setupGui()
{
- QWidget *frame = mainWidget();
- QGridLayout* Form1Layout = new QGridLayout( frame );
+ TQWidget *frame = mainWidget();
+ TQGridLayout* Form1Layout = new TQGridLayout( frame );
Form1Layout->setSpacing( KDialog::spacingHint() );
Form1Layout->setMargin( 0 );
@@ -106,7 +106,7 @@ void K3bAudioProjectConvertingDialog::setupGui()
m_viewTracks->setAllColumnsShowFocus(true);
m_viewTracks->setFullWidth(true);
- QTabWidget* mainTab = new QTabWidget( frame );
+ TQTabWidget* mainTab = new TQTabWidget( frame );
m_optionWidget = new K3bAudioConvertingOptionWidget( mainTab );
mainTab->addTab( m_optionWidget, i18n("Settings") );
@@ -116,13 +116,13 @@ void K3bAudioProjectConvertingDialog::setupGui()
// -------------------------------------------------------------------------------------------
m_patternWidget = new K3bCddbPatternWidget( mainTab );
mainTab->addTab( m_patternWidget, i18n("File Naming") );
- connect( m_patternWidget, SIGNAL(changed()), this, SLOT(refresh()) );
+ connect( m_patternWidget, TQT_SIGNAL(changed()), this, TQT_SLOT(refresh()) );
Form1Layout->addWidget( m_viewTracks, 0, 0 );
Form1Layout->addWidget( mainTab, 1, 0 );
Form1Layout->setRowStretch( 0, 1 );
- connect( m_optionWidget, SIGNAL(changed()), this, SLOT(refresh()) );
+ connect( m_optionWidget, TQT_SIGNAL(changed()), this, TQT_SLOT(refresh()) );
}
@@ -151,14 +151,14 @@ void K3bAudioProjectConvertingDialog::slotStartClicked()
}
// check if we need to overwrite some files...
- QListViewItemIterator it( m_viewTracks );
- QStringList filesToOverwrite;
+ TQListViewItemIterator it( m_viewTracks );
+ TQStringList filesToOverwrite;
for( unsigned int i = 0; i < d->filenames.count(); ++i ) {
- if( QFile::exists( d->filenames[i] ) )
+ if( TQFile::exists( d->filenames[i] ) )
filesToOverwrite.append( d->filenames[i] );
}
- if( m_optionWidget->createPlaylist() && QFile::exists( d->playlistFilename ) )
+ if( m_optionWidget->createPlaylist() && TQFile::exists( d->playlistFilename ) )
filesToOverwrite.append( d->playlistFilename );
if( !filesToOverwrite.isEmpty() )
@@ -171,11 +171,11 @@ void K3bAudioProjectConvertingDialog::slotStartClicked()
// just generate a fake m_tracks list for now so we can keep most of the methods
// like they are in K3bAudioRipThread. This way future combination is easier
- QValueVector<QPair<int, QString> > tracksToRip;
+ TQValueVector<TQPair<int, TQString> > tracksToRip;
int i = 0;
K3bAudioTrack* track = m_doc->firstTrack();
while( track ) {
- tracksToRip.append( qMakePair( i+1, d->filenames[(m_optionWidget->createSingleFile() ? 0 : i)] ) );
+ tracksToRip.append( tqMakePair( i+1, d->filenames[(m_optionWidget->createSingleFile() ? 0 : i)] ) );
++i;
track = track->next();
}
@@ -194,9 +194,9 @@ void K3bAudioProjectConvertingDialog::slotStartClicked()
if( encoder )
thread->setFileType( m_optionWidget->extension() );
- K3bJobProgressDialog progressDialog( parentWidget() );
+ K3bJobProgressDialog progressDialog( tqparentWidget() );
- K3bThreadJob job( thread, &progressDialog, this );
+ K3bThreadJob job( thread, &progressDialog, TQT_TQOBJECT(this) );
hide();
progressDialog.startJob(&job);
@@ -216,14 +216,14 @@ void K3bAudioProjectConvertingDialog::refresh()
// create a cddb entry from the doc to use in the patternparser
K3bCddbResultEntry cddbEntry = createCddbEntryFromDoc( m_doc );
- QString baseDir = K3b::prepareDir( m_optionWidget->baseDir() );
+ TQString baseDir = K3b::prepareDir( m_optionWidget->baseDir() );
- QString extension = m_optionWidget->extension();
+ TQString extension = m_optionWidget->extension();
KIO::filesize_t overallSize = 0;
if( m_optionWidget->createSingleFile() ) {
- QString filename;
+ TQString filename;
long long filesize = 0;
if( m_optionWidget->encoder() == 0 ) {
filesize = m_doc->length().audioBytes() + 44;
@@ -274,7 +274,7 @@ void K3bAudioProjectConvertingDialog::refresh()
if( filesize > 0 )
overallSize += filesize;
- QString filename = K3bPatternParser::parsePattern( cddbEntry, i,
+ TQString filename = K3bPatternParser::parsePattern( cddbEntry, i,
m_patternWidget->filenamePattern(),
m_patternWidget->replaceBlanks(),
m_patternWidget->blankReplaceString() ) + "." + extension;
@@ -294,7 +294,7 @@ void K3bAudioProjectConvertingDialog::refresh()
// create playlist item
if( m_optionWidget->createPlaylist() ) {
- QString filename = K3bPatternParser::parsePattern( cddbEntry, 1,
+ TQString filename = K3bPatternParser::parsePattern( cddbEntry, 1,
m_patternWidget->playlistPattern(),
m_patternWidget->replaceBlanks(),
m_patternWidget->blankReplaceString() ) + ".m3u";
@@ -316,7 +316,7 @@ void K3bAudioProjectConvertingDialog::refresh()
}
-void K3bAudioProjectConvertingDialog::setBaseDir( const QString& path )
+void K3bAudioProjectConvertingDialog::setBaseDir( const TQString& path )
{
m_optionWidget->setBaseDir( path );
}
diff --git a/src/rip/k3baudioprojectconvertingdialog.h b/src/rip/k3baudioprojectconvertingdialog.h
index 1816ea2..f9956ff 100644
--- a/src/rip/k3baudioprojectconvertingdialog.h
+++ b/src/rip/k3baudioprojectconvertingdialog.h
@@ -20,15 +20,15 @@
#include <k3binteractiondialog.h>
#include <k3bmsf.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
class K3bListView;
-class QCheckBox;
-class QSpinBox;
-class QComboBox;
+class TQCheckBox;
+class TQSpinBox;
+class TQComboBox;
class K3bCddbPatternWidget;
-class QToolButton;
+class TQToolButton;
class K3bAudioConvertingOptionWidget;
class K3bCddbResultEntry;
class K3bAudioConvertingJob;
@@ -42,12 +42,13 @@ class K3bAudioDoc;
class K3bAudioProjectConvertingDialog : public K3bInteractionDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioProjectConvertingDialog( K3bAudioDoc*, QWidget *parent = 0, const char *name = 0 );
+ K3bAudioProjectConvertingDialog( K3bAudioDoc*, TQWidget *tqparent = 0, const char *name = 0 );
~K3bAudioProjectConvertingDialog();
- void setBaseDir( const QString& path );
+ void setBaseDir( const TQString& path );
public slots:
void refresh();
diff --git a/src/rip/k3baudioprojectconvertingthread.cpp b/src/rip/k3baudioprojectconvertingthread.cpp
index 8c175fb..6d5cdf5 100644
--- a/src/rip/k3baudioprojectconvertingthread.cpp
+++ b/src/rip/k3baudioprojectconvertingthread.cpp
@@ -26,8 +26,8 @@
#include <k3bglobals.h>
-#include <qfile.h>
-#include <qtimer.h>
+#include <tqfile.h>
+#include <tqtimer.h>
#include <kdebug.h>
#include <klocale.h>
@@ -55,7 +55,7 @@ public:
bool canceled;
- QString fileType;
+ TQString fileType;
};
@@ -74,7 +74,7 @@ K3bAudioProjectConvertingThread::~K3bAudioProjectConvertingThread()
}
-void K3bAudioProjectConvertingThread::setFileType( const QString& t )
+void K3bAudioProjectConvertingThread::setFileType( const TQString& t )
{
d->fileType = t;
}
@@ -106,11 +106,11 @@ void K3bAudioProjectConvertingThread::run()
d->overallBytesToRead = m_doc->length().audioBytes();
if( m_singleFile ) {
- QString& filename = m_tracks[0].second;
+ TQString& filename = m_tracks[0].second;
- QString dir = filename.left( filename.findRev("/") );
+ TQString dir = filename.left( filename.tqfindRev("/") );
if( !KStandardDirs::makeDir( dir ) ) {
- emitInfoMessage( i18n("Unable to create directory %1").arg(dir), K3bJob::ERROR );
+ emitInfoMessage( i18n("Unable to create directory %1").tqarg(dir), K3bJob::ERROR );
emitFinished(false);
return;
}
@@ -126,7 +126,7 @@ void K3bAudioProjectConvertingThread::run()
d->encoder->setMetaData( K3bAudioEncoder::META_ALBUM_ARTIST, m_cddbEntry.cdArtist );
d->encoder->setMetaData( K3bAudioEncoder::META_ALBUM_TITLE, m_cddbEntry.cdTitle );
d->encoder->setMetaData( K3bAudioEncoder::META_ALBUM_COMMENT, m_cddbEntry.cdExtInfo );
- d->encoder->setMetaData( K3bAudioEncoder::META_YEAR, QString::number(m_cddbEntry.year) );
+ d->encoder->setMetaData( K3bAudioEncoder::META_YEAR, TQString::number(m_cddbEntry.year) );
d->encoder->setMetaData( K3bAudioEncoder::META_GENRE, m_cddbEntry.genre );
}
else
@@ -137,12 +137,12 @@ void K3bAudioProjectConvertingThread::run()
}
if( !isOpen ) {
- emitInfoMessage( i18n("Unable to open '%1' for writing.").arg(filename), K3bJob::ERROR );
+ emitInfoMessage( i18n("Unable to open '%1' for writing.").tqarg(filename), K3bJob::ERROR );
emitFinished(false);
return;
}
- emitInfoMessage( i18n("Converting to single file '%1'.").arg(filename), K3bJob::INFO );
+ emitInfoMessage( i18n("Converting to single file '%1'.").tqarg(filename), K3bJob::INFO );
}
bool success = true;
@@ -155,7 +155,7 @@ void K3bAudioProjectConvertingThread::run()
break;
}
- emitInfoMessage( i18n("Successfully converted track %1.").arg(i+1), K3bJob::INFO );
+ emitInfoMessage( i18n("Successfully converted track %1.").tqarg(i+1), K3bJob::INFO );
track = track->next();
++i;
@@ -178,9 +178,9 @@ void K3bAudioProjectConvertingThread::run()
if( d->canceled ) {
if( d->currentTrackIndex >= 0 && d->currentTrackIndex < (int)m_tracks.count() ) {
- if( QFile::exists( m_tracks[d->currentTrackIndex].second ) ) {
- QFile::remove( m_tracks[d->currentTrackIndex].second );
- emitInfoMessage( i18n("Removed partial file '%1'.").arg(m_tracks[d->currentTrackIndex].second), K3bJob::INFO );
+ if( TQFile::exists( m_tracks[d->currentTrackIndex].second ) ) {
+ TQFile::remove( m_tracks[d->currentTrackIndex].second );
+ emitInfoMessage( i18n("Removed partial file '%1'.").tqarg(m_tracks[d->currentTrackIndex].second), K3bJob::INFO );
}
}
@@ -192,11 +192,11 @@ void K3bAudioProjectConvertingThread::run()
}
-bool K3bAudioProjectConvertingThread::convertTrack( K3bAudioTrack* track, const QString& filename )
+bool K3bAudioProjectConvertingThread::convertTrack( K3bAudioTrack* track, const TQString& filename )
{
- QString dir = filename.left( filename.findRev("/") );
+ TQString dir = filename.left( filename.tqfindRev("/") );
if( !KStandardDirs::makeDir( dir ) ) {
- emitInfoMessage( i18n("Unable to create directory %1").arg(dir), K3bJob::ERROR );
+ emitInfoMessage( i18n("Unable to create directory %1").tqarg(dir), K3bJob::ERROR );
return false;
}
@@ -211,11 +211,11 @@ bool K3bAudioProjectConvertingThread::convertTrack( K3bAudioTrack* track, const
d->encoder->setMetaData( K3bAudioEncoder::META_TRACK_ARTIST, m_cddbEntry.artists[d->currentTrackIndex] );
d->encoder->setMetaData( K3bAudioEncoder::META_TRACK_TITLE, m_cddbEntry.titles[d->currentTrackIndex] );
d->encoder->setMetaData( K3bAudioEncoder::META_TRACK_COMMENT, m_cddbEntry.extInfos[d->currentTrackIndex] );
- d->encoder->setMetaData( K3bAudioEncoder::META_TRACK_NUMBER, QString::number(d->currentTrackIndex+1).rightJustify( 2, '0' ) );
+ d->encoder->setMetaData( K3bAudioEncoder::META_TRACK_NUMBER, TQString::number(d->currentTrackIndex+1).rightJustify( 2, '0' ) );
d->encoder->setMetaData( K3bAudioEncoder::META_ALBUM_ARTIST, m_cddbEntry.cdArtist );
d->encoder->setMetaData( K3bAudioEncoder::META_ALBUM_TITLE, m_cddbEntry.cdTitle );
d->encoder->setMetaData( K3bAudioEncoder::META_ALBUM_COMMENT, m_cddbEntry.cdExtInfo );
- d->encoder->setMetaData( K3bAudioEncoder::META_YEAR, QString::number(m_cddbEntry.year) );
+ d->encoder->setMetaData( K3bAudioEncoder::META_YEAR, TQString::number(m_cddbEntry.year) );
d->encoder->setMetaData( K3bAudioEncoder::META_GENRE, m_cddbEntry.genre );
}
else
@@ -226,7 +226,7 @@ bool K3bAudioProjectConvertingThread::convertTrack( K3bAudioTrack* track, const
}
if( !isOpen ) {
- emitInfoMessage( i18n("Unable to open '%1' for writing.").arg(filename), K3bJob::ERROR );
+ emitInfoMessage( i18n("Unable to open '%1' for writing.").tqarg(filename), K3bJob::ERROR );
return false;
}
}
@@ -235,11 +235,11 @@ bool K3bAudioProjectConvertingThread::convertTrack( K3bAudioTrack* track, const
if( !m_cddbEntry.artists[d->currentTrackIndex].isEmpty() &&
!m_cddbEntry.titles[d->currentTrackIndex].isEmpty() )
emitNewSubTask( i18n("Converting track %1 (%2 - %3)")
- .arg(d->currentTrackIndex+1)
- .arg(m_cddbEntry.artists[d->currentTrackIndex])
- .arg(m_cddbEntry.titles[d->currentTrackIndex]) );
+ .tqarg(d->currentTrackIndex+1)
+ .tqarg(m_cddbEntry.artists[d->currentTrackIndex])
+ .tqarg(m_cddbEntry.titles[d->currentTrackIndex]) );
else
- emitNewSubTask( i18n("Converting track %1").arg(d->currentTrackIndex+1) );
+ emitNewSubTask( i18n("Converting track %1").tqarg(d->currentTrackIndex+1) );
// do the conversion
@@ -265,7 +265,7 @@ bool K3bAudioProjectConvertingThread::convertTrack( K3bAudioTrack* track, const
if( d->encoder->encode( buffer, readLength ) < 0 ) {
kdDebug() << "(K3bAudioProjectConvertingThread) error while encoding." << endl;
emitInfoMessage( d->encoder->lastErrorString(), K3bJob::ERROR );
- emitInfoMessage( i18n("Error while encoding track %1.").arg(d->currentTrackIndex+1), K3bJob::ERROR );
+ emitInfoMessage( i18n("Error while encoding track %1.").tqarg(d->currentTrackIndex+1), K3bJob::ERROR );
return false;
}
}
@@ -301,18 +301,18 @@ void K3bAudioProjectConvertingThread::cancel()
bool K3bAudioProjectConvertingThread::writePlaylist()
{
// this is an absolut path so there is always a "/"
- QString playlistDir = m_playlistFilename.left( m_playlistFilename.findRev( "/" ) );
+ TQString playlistDir = m_playlistFilename.left( m_playlistFilename.tqfindRev( "/" ) );
if( !KStandardDirs::makeDir( playlistDir ) ) {
- emitInfoMessage( i18n("Unable to create directory %1").arg(playlistDir), K3bJob::ERROR );
+ emitInfoMessage( i18n("Unable to create directory %1").tqarg(playlistDir), K3bJob::ERROR );
return false;
}
- emitInfoMessage( i18n("Writing playlist to %1.").arg( m_playlistFilename ), K3bJob::INFO );
+ emitInfoMessage( i18n("Writing playlist to %1.").tqarg( m_playlistFilename ), K3bJob::INFO );
- QFile f( m_playlistFilename );
+ TQFile f( m_playlistFilename );
if( f.open( IO_WriteOnly ) ) {
- QTextStream t( &f );
+ TQTextStream t( &f );
// format descriptor
t << "#EXTM3U" << endl;
@@ -324,8 +324,8 @@ bool K3bAudioProjectConvertingThread::writePlaylist()
if( !m_cddbEntry.cdArtist.isEmpty() && !m_cddbEntry.cdTitle.isEmpty() )
t << m_cddbEntry.cdArtist << " - " << m_cddbEntry.cdTitle << endl;
else
- t << m_tracks[0].second.mid(m_tracks[0].second.findRev("/") + 1,
- m_tracks[0].second.length() - m_tracks[0].second.findRev("/") - 5)
+ t << m_tracks[0].second.mid(m_tracks[0].second.tqfindRev("/") + 1,
+ m_tracks[0].second.length() - m_tracks[0].second.tqfindRev("/") - 5)
<< endl; // filename without extension
// filename
@@ -345,9 +345,9 @@ bool K3bAudioProjectConvertingThread::writePlaylist()
if( !m_cddbEntry.artists[trackIndex].isEmpty() && !m_cddbEntry.titles[trackIndex].isEmpty() )
t << m_cddbEntry.artists[trackIndex] << " - " << m_cddbEntry.titles[trackIndex] << endl;
else
- t << m_tracks[i].second.mid(m_tracks[i].second.findRev("/") + 1,
+ t << m_tracks[i].second.mid(m_tracks[i].second.tqfindRev("/") + 1,
m_tracks[i].second.length()
- - m_tracks[i].second.findRev("/") - 5)
+ - m_tracks[i].second.tqfindRev("/") - 5)
<< endl; // filename without extension
// filename
@@ -359,10 +359,10 @@ bool K3bAudioProjectConvertingThread::writePlaylist()
}
}
- return ( t.device()->status() == IO_Ok );
+ return ( t.tqdevice()->status() == IO_Ok );
}
else {
- emitInfoMessage( i18n("Unable to open '%1' for writing.").arg(m_playlistFilename), K3bJob::ERROR );
+ emitInfoMessage( i18n("Unable to open '%1' for writing.").tqarg(m_playlistFilename), K3bJob::ERROR );
kdDebug() << "(K3bAudioProjectConvertingThread) could not open file " << m_playlistFilename << " for writing." << endl;
return false;
}
@@ -401,37 +401,37 @@ bool K3bAudioProjectConvertingThread::writeCueFile()
// we always use a relative filename here
- QString imageFile = m_tracks[0].second.section( '/', -1 );
- cueWriter.setImage( imageFile, ( d->fileType.isEmpty() ? QString("WAVE") : d->fileType ) );
+ TQString imageFile = m_tracks[0].second.section( '/', -1 );
+ cueWriter.setImage( imageFile, ( d->fileType.isEmpty() ? TQString("WAVE") : d->fileType ) );
// use the same base name as the image file
- QString cueFile = m_tracks[0].second;
- cueFile.truncate( cueFile.findRev(".") );
+ TQString cueFile = m_tracks[0].second;
+ cueFile.truncate( cueFile.tqfindRev(".") );
cueFile += ".cue";
- emitInfoMessage( i18n("Writing cue file to %1.").arg(cueFile), K3bJob::INFO );
+ emitInfoMessage( i18n("Writing cue file to %1.").tqarg(cueFile), K3bJob::INFO );
return cueWriter.save( cueFile );
}
-QString K3bAudioProjectConvertingThread::findRelativePath( const QString& absPath, const QString& baseDir )
+TQString K3bAudioProjectConvertingThread::findRelativePath( const TQString& absPath, const TQString& baseDir )
{
- QString baseDir_ = K3b::prepareDir( K3b::fixupPath(baseDir) );
- QString path = K3b::fixupPath( absPath );
+ TQString baseDir_ = K3b::prepareDir( K3b::fixupPath(baseDir) );
+ TQString path = K3b::fixupPath( absPath );
// both paths have an equal beginning. That's just how it's configured by K3b
- int pos = baseDir_.find( "/" );
+ int pos = baseDir_.tqfind( "/" );
int oldPos = pos;
while( pos != -1 && path.left( pos+1 ) == baseDir_.left( pos+1 ) ) {
oldPos = pos;
- pos = baseDir_.find( "/", pos+1 );
+ pos = baseDir_.tqfind( "/", pos+1 );
}
// now the paths are equal up to oldPos, so that's how "deep" we go
path = path.mid( oldPos+1 );
baseDir_ = baseDir_.mid( oldPos+1 );
- int numberOfDirs = baseDir_.contains( '/' );
+ int numberOfDirs = baseDir_.tqcontains( '/' );
for( int i = 0; i < numberOfDirs; ++i )
path.prepend( "../" );
@@ -439,20 +439,20 @@ QString K3bAudioProjectConvertingThread::findRelativePath( const QString& absPat
}
-QString K3bAudioProjectConvertingThread::jobDescription() const
+TQString K3bAudioProjectConvertingThread::jobDescription() const
{
if( m_cddbEntry.cdTitle.isEmpty() )
return i18n("Converting Audio Tracks");
else
- return i18n("Converting Audio Tracks From '%1'").arg(m_cddbEntry.cdTitle);
+ return i18n("Converting Audio Tracks From '%1'").tqarg(m_cddbEntry.cdTitle);
}
-QString K3bAudioProjectConvertingThread::jobDetails() const
+TQString K3bAudioProjectConvertingThread::jobDetails() const
{
if( d->encoder )
return i18n("1 track (encoding to %1)",
"%n tracks (encoding to %1)",
- m_tracks.count() ).arg(d->encoder->fileTypeComment(d->fileType));
+ m_tracks.count() ).tqarg(d->encoder->fileTypeComment(d->fileType));
else
return i18n("1 track", "%n tracks", m_doc->numOfTracks() );
}
diff --git a/src/rip/k3baudioprojectconvertingthread.h b/src/rip/k3baudioprojectconvertingthread.h
index aeda217..63b8895 100644
--- a/src/rip/k3baudioprojectconvertingthread.h
+++ b/src/rip/k3baudioprojectconvertingthread.h
@@ -18,9 +18,9 @@
#define K3B_AUDIO_PROJECT_CONVERTING_THREAD_H
#include <k3bthread.h>
-#include <qobject.h>
-#include <qvaluevector.h>
-#include <qpair.h>
+#include <tqobject.h>
+#include <tqvaluevector.h>
+#include <tqpair.h>
#include <k3bcddbresult.h>
@@ -36,8 +36,8 @@ class K3bAudioProjectConvertingThread : public K3bThread
K3bAudioProjectConvertingThread( K3bAudioDoc* );
~K3bAudioProjectConvertingThread();
- QString jobDescription() const;
- QString jobDetails() const;
+ TQString jobDescription() const;
+ TQString jobDetails() const;
void setSingleFile( bool b ) { m_singleFile = b; }
@@ -49,15 +49,15 @@ class K3bAudioProjectConvertingThread : public K3bThread
/**
* Used for encoders that support multiple formats
*/
- void setFileType( const QString& );
+ void setFileType( const TQString& );
/**
* 1 is the first track
*/
- void setTracksToRip( const QValueVector<QPair<int, QString> >& t ) { m_tracks = t; }
+ void setTracksToRip( const TQValueVector<TQPair<int, TQString> >& t ) { m_tracks = t; }
void setWritePlaylist( bool b ) { m_writePlaylist = b; }
- void setPlaylistFilename( const QString& s ) { m_playlistFilename = s; }
+ void setPlaylistFilename( const TQString& s ) { m_playlistFilename = s; }
void setUseRelativePathInPlaylist( bool b ) { m_relativePathInPlaylist = b; }
void setWriteCueFile( bool b ) { m_writeCueFile = b; }
@@ -69,28 +69,28 @@ class K3bAudioProjectConvertingThread : public K3bThread
void cancel();
private:
- /** reimplemented from QThread. Does the work */
+ /** reimplemented from TQThread. Does the work */
void run();
- bool convertTrack( K3bAudioTrack*, const QString& filename );
+ bool convertTrack( K3bAudioTrack*, const TQString& filename );
bool writePlaylist();
bool writeCueFile();
/**
* Finds a relative path from baseDir to absPath
*/
- QString findRelativePath( const QString& absPath, const QString& baseDir );
+ TQString findRelativePath( const TQString& absPath, const TQString& baseDir );
K3bCddbResultEntry m_cddbEntry;
bool m_singleFile;
bool m_writePlaylist;
bool m_relativePathInPlaylist;
- QString m_playlistFilename;
+ TQString m_playlistFilename;
bool m_writeCueFile;
- QValueVector<QPair<int, QString> > m_tracks;
+ TQValueVector<TQPair<int, TQString> > m_tracks;
K3bAudioDoc* m_doc;
diff --git a/src/rip/k3baudioripjob.cpp b/src/rip/k3baudioripjob.cpp
index ef520e1..ac53c38 100644
--- a/src/rip/k3baudioripjob.cpp
+++ b/src/rip/k3baudioripjob.cpp
@@ -23,17 +23,17 @@
#include <klocale.h>
-K3bAudioRipJob::K3bAudioRipJob( K3bJobHandler* hdl, QObject* parent )
- : K3bJob( hdl, parent )
+K3bAudioRipJob::K3bAudioRipJob( K3bJobHandler* hdl, TQObject* tqparent )
+ : K3bJob( hdl, tqparent )
{
m_thread = new K3bAudioRipThread();
m_threadJob = new K3bThreadJob( m_thread, this, this );
connectSubJob( m_threadJob,
- SLOT(slotRippingFinished(bool)),
- SIGNAL(newTask(const QString&)),
- SIGNAL(newSubTask(const QString&)),
- SIGNAL(percent(int)),
- SIGNAL(subPercent(int)) );
+ TQT_SLOT(slotRippingFinished(bool)),
+ TQT_SIGNAL(newTask(const TQString&)),
+ TQT_SIGNAL(newSubTask(const TQString&)),
+ TQT_SIGNAL(percent(int)),
+ TQT_SIGNAL(subPercent(int)) );
}
@@ -42,13 +42,13 @@ K3bAudioRipJob::~K3bAudioRipJob()
}
-QString K3bAudioRipJob::jobDescription() const
+TQString K3bAudioRipJob::jobDescription() const
{
return m_thread->jobDescription();
}
-QString K3bAudioRipJob::jobDetails() const
+TQString K3bAudioRipJob::jobDetails() const
{
return m_thread->jobDetails();
}
diff --git a/src/rip/k3baudioripjob.h b/src/rip/k3baudioripjob.h
index adf47f3..691af34 100644
--- a/src/rip/k3baudioripjob.h
+++ b/src/rip/k3baudioripjob.h
@@ -23,7 +23,7 @@
#include <k3bcddbresult.h>
#include <k3baudioencoder.h>
-#include <qvaluevector.h>
+#include <tqvaluevector.h>
class K3bInterferingSystemsHandler;
class K3bThreadJob;
@@ -32,13 +32,14 @@ class K3bThreadJob;
class K3bAudioRipJob : public K3bJob
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bAudioRipJob( K3bJobHandler* hdl, QObject* parent );
+ K3bAudioRipJob( K3bJobHandler* hdl, TQObject* tqparent );
~K3bAudioRipJob();
- QString jobDescription() const;
- QString jobDetails() const;
+ TQString jobDescription() const;
+ TQString jobDetails() const;
public slots:
void start();
@@ -46,7 +47,7 @@ class K3bAudioRipJob : public K3bJob
void setDevice( K3bDevice::Device* dev ) { m_thread->setDevice( dev ); }
void setCddbEntry( const K3bCddbResultEntry& entry ) { m_thread->setCddbEntry( entry ); }
- void setTracksToRip( const QValueVector<QPair<int, QString> >& tracksToRip ) { m_thread->setTracksToRip( tracksToRip ); }
+ void setTracksToRip( const TQValueVector<TQPair<int, TQString> >& tracksToRip ) { m_thread->setTracksToRip( tracksToRip ); }
void setParanoiaMode( int mode ) { m_thread->setParanoiaMode( mode ); }
void setMaxRetries( int retries ) { m_thread->setMaxRetries( retries ); }
void setNeverSkip( bool neverSkip ) { m_thread->setNeverSkip( neverSkip ); }
@@ -54,10 +55,10 @@ class K3bAudioRipJob : public K3bJob
void setWriteCueFile( bool cue ) { m_thread->setWriteCueFile( cue ); }
void setEncoder( K3bAudioEncoder* encoder ) { m_thread->setEncoder( encoder ); }
void setWritePlaylist( bool playlist ) { m_thread->setWritePlaylist( playlist ); }
- void setPlaylistFilename( const QString& filename ) { m_thread->setPlaylistFilename( filename ); }
+ void setPlaylistFilename( const TQString& filename ) { m_thread->setPlaylistFilename( filename ); }
void setUseRelativePathInPlaylist( bool relative ) { m_thread->setUseRelativePathInPlaylist( relative ); }
void setUseIndex0( bool index0 ) { m_thread->setUseIndex0( index0 ); }
- void setFileType( const QString& filetype ) { m_thread->setFileType( filetype ); }
+ void setFileType( const TQString& filetype ) { m_thread->setFileType( filetype ); }
private slots:
void slotRippingFinished( bool );
diff --git a/src/rip/k3baudiorippingdialog.cpp b/src/rip/k3baudiorippingdialog.cpp
index 693230f..1592198 100644
--- a/src/rip/k3baudiorippingdialog.cpp
+++ b/src/rip/k3baudiorippingdialog.cpp
@@ -43,27 +43,27 @@
#include <kmessagebox.h>
#include <kurllabel.h>
-#include <qgroupbox.h>
-#include <qheader.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qvariant.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qdir.h>
-#include <qstringlist.h>
-#include <qmessagebox.h>
-#include <qfont.h>
-#include <qhbox.h>
-#include <qtoolbutton.h>
-#include <qtabwidget.h>
-#include <qspinbox.h>
-#include <qptrlist.h>
-#include <qintdict.h>
-#include <qpair.h>
-#include <qvalidator.h>
+#include <tqgroupbox.h>
+#include <tqheader.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqvariant.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqdir.h>
+#include <tqstringlist.h>
+#include <tqmessagebox.h>
+#include <tqfont.h>
+#include <tqhbox.h>
+#include <tqtoolbutton.h>
+#include <tqtabwidget.h>
+#include <tqspinbox.h>
+#include <tqptrlist.h>
+#include <tqintdict.h>
+#include <tqpair.h>
+#include <tqvalidator.h>
class K3bAudioRippingDialog::Private
@@ -72,8 +72,8 @@ public:
Private() {
}
- QValueVector<QString> filenames;
- QString playlistFilename;
+ TQValueVector<TQString> filenames;
+ TQString playlistFilename;
K3bFileSystemInfo fsInfo;
};
@@ -81,11 +81,11 @@ public:
K3bAudioRippingDialog::K3bAudioRippingDialog(const K3bDevice::Toc& toc,
K3bDevice::Device* device,
const K3bCddbResultEntry& entry,
- const QValueList<int>& tracks,
- QWidget *parent, const char *name )
- : K3bInteractionDialog( parent, name,
- QString::null,
- QString::null,
+ const TQValueList<int>& tracks,
+ TQWidget *tqparent, const char *name )
+ : K3bInteractionDialog( tqparent, name,
+ TQString(),
+ TQString(),
START_BUTTON|CANCEL_BUTTON,
START_BUTTON,
"Audio Ripping" ), // config group
@@ -100,13 +100,13 @@ K3bAudioRippingDialog::K3bAudioRippingDialog(const K3bDevice::Toc& toc,
setupContextHelp();
K3b::Msf length;
- for( QValueList<int>::const_iterator it = m_trackNumbers.begin();
+ for( TQValueList<int>::const_iterator it = m_trackNumbers.begin();
it != m_trackNumbers.end(); ++it ) {
length += m_toc[*it-1].length();
}
setTitle( i18n("CD Ripping"),
i18n("1 track (%1)", "%n tracks (%1)",
- m_trackNumbers.count()).arg(length.toString()) );
+ m_trackNumbers.count()).tqarg(length.toString()) );
}
@@ -118,8 +118,8 @@ K3bAudioRippingDialog::~K3bAudioRippingDialog()
void K3bAudioRippingDialog::setupGui()
{
- QWidget *frame = mainWidget();
- QGridLayout* Form1Layout = new QGridLayout( frame );
+ TQWidget *frame = mainWidget();
+ TQGridLayout* Form1Layout = new TQGridLayout( frame );
Form1Layout->setSpacing( KDialog::spacingHint() );
Form1Layout->setMargin( 0 );
@@ -132,7 +132,7 @@ void K3bAudioRippingDialog::setupGui()
m_viewTracks->setAllColumnsShowFocus(true);
m_viewTracks->setFullWidth(true);
- QTabWidget* mainTab = new QTabWidget( frame );
+ TQTabWidget* mainTab = new TQTabWidget( frame );
m_optionWidget = new K3bAudioConvertingOptionWidget( mainTab );
mainTab->addTab( m_optionWidget, i18n("Settings") );
@@ -142,25 +142,25 @@ void K3bAudioRippingDialog::setupGui()
// -------------------------------------------------------------------------------------------
m_patternWidget = new K3bCddbPatternWidget( mainTab );
mainTab->addTab( m_patternWidget, i18n("File Naming") );
- connect( m_patternWidget, SIGNAL(changed()), this, SLOT(refresh()) );
+ connect( m_patternWidget, TQT_SIGNAL(changed()), this, TQT_SLOT(refresh()) );
// setup advanced page
// -------------------------------------------------------------------------------------------
- QWidget* advancedPage = new QWidget( mainTab );
- QGridLayout* advancedPageLayout = new QGridLayout( advancedPage );
+ TQWidget* advancedPage = new TQWidget( mainTab );
+ TQGridLayout* advancedPageLayout = new TQGridLayout( advancedPage );
advancedPageLayout->setMargin( marginHint() );
advancedPageLayout->setSpacing( spacingHint() );
mainTab->addTab( advancedPage, i18n("Advanced") );
m_comboParanoiaMode = K3bStdGuiItems::paranoiaModeComboBox( advancedPage );
- m_spinRetries = new QSpinBox( advancedPage );
- m_checkIgnoreReadErrors = new QCheckBox( i18n("Ignore read errors"), advancedPage );
- m_checkUseIndex0 = new QCheckBox( i18n("Don't read pregaps"), advancedPage );
+ m_spinRetries = new TQSpinBox( advancedPage );
+ m_checkIgnoreReadErrors = new TQCheckBox( i18n("Ignore read errors"), advancedPage );
+ m_checkUseIndex0 = new TQCheckBox( i18n("Don't read pregaps"), advancedPage );
- advancedPageLayout->addWidget( new QLabel( i18n("Paranoia mode:"), advancedPage ), 0, 0 );
+ advancedPageLayout->addWidget( new TQLabel( i18n("Paranoia mode:"), advancedPage ), 0, 0 );
advancedPageLayout->addWidget( m_comboParanoiaMode, 0, 1 );
- advancedPageLayout->addWidget( new QLabel( i18n("Read retries:"), advancedPage ), 1, 0 );
+ advancedPageLayout->addWidget( new TQLabel( i18n("Read retries:"), advancedPage ), 1, 0 );
advancedPageLayout->addWidget( m_spinRetries, 1, 1 );
advancedPageLayout->addMultiCellWidget( m_checkIgnoreReadErrors, 2, 2, 0, 1 );
advancedPageLayout->addMultiCellWidget( m_checkUseIndex0, 3, 3, 0, 1 );
@@ -176,20 +176,20 @@ void K3bAudioRippingDialog::setupGui()
setStartButtonText( i18n( "Start Ripping" ), i18n( "Starts copying the selected tracks") );
- connect( m_checkUseIndex0, SIGNAL(toggled(bool)), this, SLOT(refresh()) );
- connect( m_optionWidget, SIGNAL(changed()), this, SLOT(refresh()) );
+ connect( m_checkUseIndex0, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(refresh()) );
+ connect( m_optionWidget, TQT_SIGNAL(changed()), this, TQT_SLOT(refresh()) );
}
void K3bAudioRippingDialog::setupContextHelp()
{
- QToolTip::add( m_spinRetries, i18n("Maximal number of read retries") );
- QWhatsThis::add( m_spinRetries, i18n("<p>This specifies the maximum number of retries to "
+ TQToolTip::add( m_spinRetries, i18n("Maximal number of read retries") );
+ TQWhatsThis::add( m_spinRetries, i18n("<p>This specifies the maximum number of retries to "
"read a sector of audio data from the cd. After that "
"K3b will either skip the sector if the <em>Ignore Read Errors</em> "
"option is enabled or stop the process.") );
- QToolTip::add( m_checkUseIndex0, i18n("Do not read the pregaps at the end of every track") );
- QWhatsThis::add( m_checkUseIndex0, i18n("<p>If this option is checked K3b will not rip the audio "
+ TQToolTip::add( m_checkUseIndex0, i18n("Do not read the pregaps at the end of every track") );
+ TQWhatsThis::add( m_checkUseIndex0, i18n("<p>If this option is checked K3b will not rip the audio "
"data in the pregaps. Most audio tracks contain an empty "
"pregap which does not belong to the track itself.</p>"
"<p>Although the default behaviour of nearly all ripping "
@@ -227,14 +227,14 @@ void K3bAudioRippingDialog::slotStartClicked()
}
// check if we need to overwrite some files...
- QListViewItemIterator it( m_viewTracks );
- QStringList filesToOverwrite;
+ TQListViewItemIterator it( m_viewTracks );
+ TQStringList filesToOverwrite;
for( unsigned int i = 0; i < d->filenames.count(); ++i ) {
- if( QFile::exists( d->filenames[i] ) )
+ if( TQFile::exists( d->filenames[i] ) )
filesToOverwrite.append( d->filenames[i] );
}
- if( m_optionWidget->createPlaylist() && QFile::exists( d->playlistFilename ) )
+ if( m_optionWidget->createPlaylist() && TQFile::exists( d->playlistFilename ) )
filesToOverwrite.append( d->playlistFilename );
if( !filesToOverwrite.isEmpty() )
@@ -246,18 +246,18 @@ void K3bAudioRippingDialog::slotStartClicked()
// prepare list of tracks to rip
- QValueVector<QPair<int, QString> > tracksToRip;
+ TQValueVector<TQPair<int, TQString> > tracksToRip;
unsigned int i = 0;
- for( QValueList<int>::const_iterator trackIt = m_trackNumbers.begin();
+ for( TQValueList<int>::const_iterator trackIt = m_trackNumbers.begin();
trackIt != m_trackNumbers.end(); ++trackIt ) {
- tracksToRip.append( qMakePair( *trackIt, d->filenames[(m_optionWidget->createSingleFile() ? 0 : i)] ) );
+ tracksToRip.append( tqMakePair( *trackIt, d->filenames[(m_optionWidget->createSingleFile() ? 0 : i)] ) );
++i;
}
- K3bJobProgressDialog ripDialog( parentWidget(), "Ripping" );
+ K3bJobProgressDialog ripDialog( tqparentWidget(), "Ripping" );
K3bAudioEncoder* encoder = m_optionWidget->encoder();
- K3bAudioRipJob* job = new K3bAudioRipJob( &ripDialog, this );
+ K3bAudioRipJob* job = new K3bAudioRipJob( &ripDialog, TQT_TQOBJECT(this) );
job->setDevice( m_device );
job->setCddbEntry( m_cddbEntry );
job->setTracksToRip( tracksToRip );
@@ -289,22 +289,22 @@ void K3bAudioRippingDialog::refresh()
m_viewTracks->clear();
d->filenames.clear();
- QString baseDir = K3b::prepareDir( m_optionWidget->baseDir() );
+ TQString baseDir = K3b::prepareDir( m_optionWidget->baseDir() );
d->fsInfo.setPath( baseDir );
KIO::filesize_t overallSize = 0;
if( m_optionWidget->createSingleFile() ) {
long length = 0;
- for( QValueList<int>::const_iterator it = m_trackNumbers.begin();
+ for( TQValueList<int>::const_iterator it = m_trackNumbers.begin();
it != m_trackNumbers.end(); ++it ) {
length += ( m_checkUseIndex0->isChecked()
? m_toc[*it-1].realAudioLength().lba()
: m_toc[*it-1].length().lba() );
}
- QString filename;
- QString extension;
+ TQString filename;
+ TQString extension;
long long fileSize = 0;
if( m_optionWidget->encoder() == 0 ) {
extension = "wav";
@@ -347,11 +347,11 @@ void K3bAudioRippingDialog::refresh()
i18n("Cue-file") );
}
else {
- for( QValueList<int>::const_iterator it = m_trackNumbers.begin();
+ for( TQValueList<int>::const_iterator it = m_trackNumbers.begin();
it != m_trackNumbers.end(); ++it ) {
int index = *it - 1;
- QString extension;
+ TQString extension;
long long fileSize = 0;
K3b::Msf trackLength = ( m_checkUseIndex0->isChecked()
? m_toc[index].realAudioLength()
@@ -374,7 +374,7 @@ void K3bAudioRippingDialog::refresh()
}
- QString filename;
+ TQString filename;
if( (int)m_cddbEntry.titles.count() >= *it ) {
filename = K3bPatternParser::parsePattern( m_cddbEntry, *it,
@@ -383,7 +383,7 @@ void K3bAudioRippingDialog::refresh()
m_patternWidget->blankReplaceString() ) + "." + extension;
}
else {
- filename = i18n("Track%1").arg( QString::number( *it ).rightJustify( 2, '0' ) ) + "." + extension;
+ filename = i18n("Track%1").tqarg( TQString::number( *it ).rightJustify( 2, '0' ) ) + "." + extension;
}
filename = d->fsInfo.fixupPath( filename );
@@ -401,7 +401,7 @@ void K3bAudioRippingDialog::refresh()
// create playlist item
if( m_optionWidget->createPlaylist() ) {
- QString filename = K3bPatternParser::parsePattern( m_cddbEntry, 1,
+ TQString filename = K3bPatternParser::parsePattern( m_cddbEntry, 1,
m_patternWidget->playlistPattern(),
m_patternWidget->replaceBlanks(),
m_patternWidget->blankReplaceString() ) + ".m3u";
@@ -423,7 +423,7 @@ void K3bAudioRippingDialog::refresh()
}
-void K3bAudioRippingDialog::setStaticDir( const QString& path )
+void K3bAudioRippingDialog::setStaticDir( const TQString& path )
{
m_optionWidget->setBaseDir( path );
}
diff --git a/src/rip/k3baudiorippingdialog.h b/src/rip/k3baudiorippingdialog.h
index 83fe0dc..2a0304b 100644
--- a/src/rip/k3baudiorippingdialog.h
+++ b/src/rip/k3baudiorippingdialog.h
@@ -19,7 +19,7 @@
#include <k3binteractiondialog.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <k3bcddbquery.h>
@@ -30,11 +30,11 @@ namespace K3bDevice {
class KListView;
-class QCheckBox;
-class QSpinBox;
-class QComboBox;
+class TQCheckBox;
+class TQSpinBox;
+class TQComboBox;
class K3bCddbPatternWidget;
-class QToolButton;
+class TQToolButton;
class K3bAudioConvertingOptionWidget;
@@ -44,16 +44,17 @@ class K3bAudioConvertingOptionWidget;
class K3bAudioRippingDialog : public K3bInteractionDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
K3bAudioRippingDialog( const K3bDevice::Toc&,
K3bDevice::Device*,
const K3bCddbResultEntry&,
- const QValueList<int>&,
- QWidget *parent = 0, const char *name = 0 );
+ const TQValueList<int>&,
+ TQWidget *tqparent = 0, const char *name = 0 );
~K3bAudioRippingDialog();
- void setStaticDir( const QString& path );
+ void setStaticDir( const TQString& path );
public slots:
void refresh();
@@ -63,14 +64,14 @@ class K3bAudioRippingDialog : public K3bInteractionDialog
K3bDevice::Toc m_toc;
K3bDevice::Device* m_device;
K3bCddbResultEntry m_cddbEntry;
- QValueList<int> m_trackNumbers;
+ TQValueList<int> m_trackNumbers;
KListView* m_viewTracks;
- QComboBox* m_comboParanoiaMode;
- QSpinBox* m_spinRetries;
- QCheckBox* m_checkIgnoreReadErrors;
- QCheckBox* m_checkUseIndex0;
+ TQComboBox* m_comboParanoiaMode;
+ TQSpinBox* m_spinRetries;
+ TQCheckBox* m_checkIgnoreReadErrors;
+ TQCheckBox* m_checkUseIndex0;
K3bCddbPatternWidget* m_patternWidget;
K3bAudioConvertingOptionWidget* m_optionWidget;
diff --git a/src/rip/k3baudioripthread.cpp b/src/rip/k3baudioripthread.cpp
index 8a5a6e9..48e8780 100644
--- a/src/rip/k3baudioripthread.cpp
+++ b/src/rip/k3baudioripthread.cpp
@@ -30,9 +30,9 @@
#include <k3btrack.h>
#include <k3bglobals.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qtimer.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqtimer.h>
#include <kdebug.h>
#include <klocale.h>
@@ -71,12 +71,12 @@ public:
K3bDevice::Toc toc;
- QString fileType;
+ TQString fileType;
};
K3bAudioRipThread::K3bAudioRipThread()
- : QObject(),
+ : TQObject(),
K3bThread(),
m_device(0),
m_useIndex0(false)
@@ -93,7 +93,7 @@ K3bAudioRipThread::~K3bAudioRipThread()
}
-void K3bAudioRipThread::setFileType( const QString& t )
+void K3bAudioRipThread::setFileType( const TQString& t )
{
d->fileType = t;
}
@@ -150,15 +150,15 @@ void K3bAudioRipThread::run()
d->toc = m_device->readToc();
if( !d->paranoiaLib->initParanoia( m_device, d->toc ) ) {
- emitInfoMessage( i18n("Could not open device %1").arg(m_device->blockDeviceName()),
+ emitInfoMessage( i18n("Could not open device %1").tqarg(m_device->blockDeviceName()),
K3bJob::ERROR );
m_device->block(false);
// check if we have write access to the generic device
if( m_device->interfaceType() == K3bDevice::SCSI &&
!m_device->genericDevice().isEmpty() &&
- !QFileInfo( m_device->genericDevice() ).isWritable() )
- emitInfoMessage( i18n("You need write access to %1").arg( m_device->genericDevice() ), K3bJob::ERROR );
+ !TQFileInfo( m_device->genericDevice() ).isWritable() )
+ emitInfoMessage( i18n("You need write access to %1").tqarg( m_device->genericDevice() ), K3bJob::ERROR );
emitFinished(false);
return;
@@ -192,12 +192,12 @@ void K3bAudioRipThread::run()
if( m_singleFile ) {
- QString& filename = m_tracks[0].second;
+ TQString& filename = m_tracks[0].second;
- QString dir = filename.left( filename.findRev("/") );
+ TQString dir = filename.left( filename.tqfindRev("/") );
if( !KStandardDirs::makeDir( dir, 0777 ) ) {
d->paranoiaLib->close();
- emitInfoMessage( i18n("Unable to create directory %1").arg(dir), K3bJob::ERROR );
+ emitInfoMessage( i18n("Unable to create directory %1").tqarg(dir), K3bJob::ERROR );
m_device->block(false);
emitFinished(false);
return;
@@ -214,7 +214,7 @@ void K3bAudioRipThread::run()
d->encoder->setMetaData( K3bAudioEncoder::META_ALBUM_ARTIST, m_cddbEntry.cdArtist );
d->encoder->setMetaData( K3bAudioEncoder::META_ALBUM_TITLE, m_cddbEntry.cdTitle );
d->encoder->setMetaData( K3bAudioEncoder::META_ALBUM_COMMENT, m_cddbEntry.cdExtInfo );
- d->encoder->setMetaData( K3bAudioEncoder::META_YEAR, QString::number(m_cddbEntry.year) );
+ d->encoder->setMetaData( K3bAudioEncoder::META_YEAR, TQString::number(m_cddbEntry.year) );
d->encoder->setMetaData( K3bAudioEncoder::META_GENRE, m_cddbEntry.genre );
}
else
@@ -226,13 +226,13 @@ void K3bAudioRipThread::run()
if( !isOpen ) {
d->paranoiaLib->close();
- emitInfoMessage( i18n("Unable to open '%1' for writing.").arg(filename), K3bJob::ERROR );
+ emitInfoMessage( i18n("Unable to open '%1' for writing.").tqarg(filename), K3bJob::ERROR );
m_device->block(false);
emitFinished(false);
return;
}
- emitInfoMessage( i18n("Ripping to single file '%1'.").arg(filename), K3bJob::INFO );
+ emitInfoMessage( i18n("Ripping to single file '%1'.").tqarg(filename), K3bJob::INFO );
}
emitInfoMessage( i18n("Starting digital audio extraction (ripping)."), K3bJob::INFO );
@@ -253,8 +253,8 @@ void K3bAudioRipThread::run()
d->waveFileWriter->close();
if( success && !d->canceled ) {
- QString& filename = m_tracks[0].second;
- emitInfoMessage( i18n("Successfully ripped to %2.").arg(filename), K3bJob::INFO );
+ TQString& filename = m_tracks[0].second;
+ emitInfoMessage( i18n("Successfully ripped to %2.").tqarg(filename), K3bJob::INFO );
}
}
@@ -286,7 +286,7 @@ void K3bAudioRipThread::run()
}
-bool K3bAudioRipThread::ripTrack( int track, const QString& filename )
+bool K3bAudioRipThread::ripTrack( int track, const TQString& filename )
{
const K3bTrack& tt = d->toc[track-1];
@@ -298,9 +298,9 @@ bool K3bAudioRipThread::ripTrack( int track, const QString& filename )
long trackSectorsRead = 0;
- QString dir = filename.left( filename.findRev("/") );
+ TQString dir = filename.left( filename.tqfindRev("/") );
if( !KStandardDirs::makeDir( dir, 0777 ) ) {
- emitInfoMessage( i18n("Unable to create directory %1").arg(dir), K3bJob::ERROR );
+ emitInfoMessage( i18n("Unable to create directory %1").tqarg(dir), K3bJob::ERROR );
return false;
}
@@ -315,11 +315,11 @@ bool K3bAudioRipThread::ripTrack( int track, const QString& filename )
d->encoder->setMetaData( K3bAudioEncoder::META_TRACK_ARTIST, m_cddbEntry.artists[track-1] );
d->encoder->setMetaData( K3bAudioEncoder::META_TRACK_TITLE, m_cddbEntry.titles[track-1] );
d->encoder->setMetaData( K3bAudioEncoder::META_TRACK_COMMENT, m_cddbEntry.extInfos[track-1] );
- d->encoder->setMetaData( K3bAudioEncoder::META_TRACK_NUMBER, QString::number(track).rightJustify( 2, '0' ) );
+ d->encoder->setMetaData( K3bAudioEncoder::META_TRACK_NUMBER, TQString::number(track).rightJustify( 2, '0' ) );
d->encoder->setMetaData( K3bAudioEncoder::META_ALBUM_ARTIST, m_cddbEntry.cdArtist );
d->encoder->setMetaData( K3bAudioEncoder::META_ALBUM_TITLE, m_cddbEntry.cdTitle );
d->encoder->setMetaData( K3bAudioEncoder::META_ALBUM_COMMENT, m_cddbEntry.cdExtInfo );
- d->encoder->setMetaData( K3bAudioEncoder::META_YEAR, QString::number(m_cddbEntry.year) );
+ d->encoder->setMetaData( K3bAudioEncoder::META_YEAR, TQString::number(m_cddbEntry.year) );
d->encoder->setMetaData( K3bAudioEncoder::META_GENRE, m_cddbEntry.genre );
}
else
@@ -330,16 +330,16 @@ bool K3bAudioRipThread::ripTrack( int track, const QString& filename )
}
if( !isOpen ) {
- emitInfoMessage( i18n("Unable to open '%1' for writing.").arg(filename), K3bJob::ERROR );
+ emitInfoMessage( i18n("Unable to open '%1' for writing.").tqarg(filename), K3bJob::ERROR );
return false;
}
}
if( !m_cddbEntry.artists[track-1].isEmpty() &&
!m_cddbEntry.titles[track-1].isEmpty() )
- emitNewSubTask( i18n("Ripping track %1 (%2 - %3)").arg(track).arg(m_cddbEntry.artists[track-1]).arg(m_cddbEntry.titles[track-1]) );
+ emitNewSubTask( i18n("Ripping track %1 (%2 - %3)").tqarg(track).tqarg(m_cddbEntry.artists[track-1]).tqarg(m_cddbEntry.titles[track-1]) );
else
- emitNewSubTask( i18n("Ripping track %1").arg(track) );
+ emitNewSubTask( i18n("Ripping track %1").tqarg(track) );
int status;
while( 1 ) {
@@ -352,9 +352,9 @@ bool K3bAudioRipThread::ripTrack( int track, const QString& filename )
if( status == K3bCdparanoiaLib::S_OK ) {
if( buf == 0 ) {
if( m_singleFile )
- emitInfoMessage( i18n("Successfully ripped track %1.").arg(track), K3bJob::INFO );
+ emitInfoMessage( i18n("Successfully ripped track %1.").tqarg(track), K3bJob::INFO );
else
- emitInfoMessage( i18n("Successfully ripped track %1 to %2.").arg(track).arg(filename), K3bJob::INFO );
+ emitInfoMessage( i18n("Successfully ripped track %1 to %2.").tqarg(track).tqarg(filename), K3bJob::INFO );
if( !m_singleFile ) {
if( d->encoder )
@@ -371,7 +371,7 @@ bool K3bAudioRipThread::ripTrack( int track, const QString& filename )
CD_FRAMESIZE_RAW ) < 0 ) {
kdDebug() << "(K3bAudioRipThread) error while encoding." << endl;
emitInfoMessage( d->encoder->lastErrorString(), K3bJob::ERROR );
- emitInfoMessage( i18n("Error while encoding track %1.").arg(track), K3bJob::ERROR );
+ emitInfoMessage( i18n("Error while encoding track %1.").tqarg(track), K3bJob::ERROR );
return false;
}
}
@@ -387,7 +387,7 @@ bool K3bAudioRipThread::ripTrack( int track, const QString& filename )
}
}
else {
- emitInfoMessage( i18n("Unrecoverable error while ripping track %1.").arg(track), K3bJob::ERROR );
+ emitInfoMessage( i18n("Unrecoverable error while ripping track %1.").tqarg(track), K3bJob::ERROR );
return false;
}
}
@@ -409,7 +409,7 @@ void K3bAudioRipThread::cancel()
// wait for 1 second. I the thread still is working terminate it
// and trigger the finished slot manually
emitInfoMessage( i18n("Cancellation could take a while..."), K3bJob::INFO );
- QTimer::singleShot( 1000, this, SLOT(slotCheckIfThreadStillRunning()) );
+ TQTimer::singleShot( 1000, this, TQT_SLOT(slotCheckIfThreadStillRunning()) );
}
@@ -433,9 +433,9 @@ void K3bAudioRipThread::slotCheckIfThreadStillRunning()
void K3bAudioRipThread::cleanupAfterCancellation()
{
if( d->currentTrackIndex >= 0 && d->currentTrackIndex < (int)m_tracks.count() ) {
- if( QFile::exists( m_tracks[d->currentTrackIndex].second ) ) {
- QFile::remove( m_tracks[d->currentTrackIndex].second );
- emitInfoMessage( i18n("Removed partial file '%1'.").arg(m_tracks[d->currentTrackIndex].second), K3bJob::INFO );
+ if( TQFile::exists( m_tracks[d->currentTrackIndex].second ) ) {
+ TQFile::remove( m_tracks[d->currentTrackIndex].second );
+ emitInfoMessage( i18n("Removed partial file '%1'.").tqarg(m_tracks[d->currentTrackIndex].second), K3bJob::INFO );
}
}
}
@@ -444,18 +444,18 @@ void K3bAudioRipThread::cleanupAfterCancellation()
bool K3bAudioRipThread::writePlaylist()
{
// this is an absolut path so there is always a "/"
- QString playlistDir = m_playlistFilename.left( m_playlistFilename.findRev( "/" ) );
+ TQString playlistDir = m_playlistFilename.left( m_playlistFilename.tqfindRev( "/" ) );
if( !KStandardDirs::makeDir( playlistDir ) ) {
- emitInfoMessage( i18n("Unable to create directory %1").arg(playlistDir), K3bJob::ERROR );
+ emitInfoMessage( i18n("Unable to create directory %1").tqarg(playlistDir), K3bJob::ERROR );
return false;
}
- emitInfoMessage( i18n("Writing playlist to %1.").arg( m_playlistFilename ), K3bJob::INFO );
+ emitInfoMessage( i18n("Writing playlist to %1.").tqarg( m_playlistFilename ), K3bJob::INFO );
- QFile f( m_playlistFilename );
+ TQFile f( m_playlistFilename );
if( f.open( IO_WriteOnly ) ) {
- QTextStream t( &f );
+ TQTextStream t( &f );
// format descriptor
t << "#EXTM3U" << endl;
@@ -467,8 +467,8 @@ bool K3bAudioRipThread::writePlaylist()
if( !m_cddbEntry.cdArtist.isEmpty() && !m_cddbEntry.cdTitle.isEmpty() )
t << m_cddbEntry.cdArtist << " - " << m_cddbEntry.cdTitle << endl;
else
- t << m_tracks[0].second.mid(m_tracks[0].second.findRev("/") + 1,
- m_tracks[0].second.length() - m_tracks[0].second.findRev("/") - 5)
+ t << m_tracks[0].second.mid(m_tracks[0].second.tqfindRev("/") + 1,
+ m_tracks[0].second.length() - m_tracks[0].second.tqfindRev("/") - 5)
<< endl; // filename without extension
// filename
@@ -488,9 +488,9 @@ bool K3bAudioRipThread::writePlaylist()
if( !m_cddbEntry.artists[trackIndex].isEmpty() && !m_cddbEntry.titles[trackIndex].isEmpty() )
t << m_cddbEntry.artists[trackIndex] << " - " << m_cddbEntry.titles[trackIndex] << endl;
else
- t << m_tracks[i].second.mid(m_tracks[i].second.findRev("/") + 1,
+ t << m_tracks[i].second.mid(m_tracks[i].second.tqfindRev("/") + 1,
m_tracks[i].second.length()
- - m_tracks[i].second.findRev("/") - 5)
+ - m_tracks[i].second.tqfindRev("/") - 5)
<< endl; // filename without extension
// filename
@@ -502,10 +502,10 @@ bool K3bAudioRipThread::writePlaylist()
}
}
- return ( t.device()->status() == IO_Ok );
+ return ( t.tqdevice()->status() == IO_Ok );
}
else {
- emitInfoMessage( i18n("Unable to open '%1' for writing.").arg(m_playlistFilename), K3bJob::ERROR );
+ emitInfoMessage( i18n("Unable to open '%1' for writing.").tqarg(m_playlistFilename), K3bJob::ERROR );
kdDebug() << "(K3bAudioRipThread) could not open file " << m_playlistFilename << " for writing." << endl;
return false;
}
@@ -543,37 +543,37 @@ bool K3bAudioRipThread::writeCueFile()
// we always use a relative filename here
- QString imageFile = m_tracks[0].second.section( '/', -1 );
- cueWriter.setImage( imageFile, ( d->fileType.isEmpty() ? QString("WAVE") : d->fileType ) );
+ TQString imageFile = m_tracks[0].second.section( '/', -1 );
+ cueWriter.setImage( imageFile, ( d->fileType.isEmpty() ? TQString("WAVE") : d->fileType ) );
// use the same base name as the image file
- QString cueFile = m_tracks[0].second;
- cueFile.truncate( cueFile.findRev(".") );
+ TQString cueFile = m_tracks[0].second;
+ cueFile.truncate( cueFile.tqfindRev(".") );
cueFile += ".cue";
- emitInfoMessage( i18n("Writing cue file to %1.").arg(cueFile), K3bJob::INFO );
+ emitInfoMessage( i18n("Writing cue file to %1.").tqarg(cueFile), K3bJob::INFO );
return cueWriter.save( cueFile );
}
-QString K3bAudioRipThread::findRelativePath( const QString& absPath, const QString& baseDir )
+TQString K3bAudioRipThread::findRelativePath( const TQString& absPath, const TQString& baseDir )
{
- QString baseDir_ = K3b::prepareDir( K3b::fixupPath(baseDir) );
- QString path = K3b::fixupPath( absPath );
+ TQString baseDir_ = K3b::prepareDir( K3b::fixupPath(baseDir) );
+ TQString path = K3b::fixupPath( absPath );
// both paths have an equal beginning. That's just how it's configured by K3b
- int pos = baseDir_.find( "/" );
+ int pos = baseDir_.tqfind( "/" );
int oldPos = pos;
while( pos != -1 && path.left( pos+1 ) == baseDir_.left( pos+1 ) ) {
oldPos = pos;
- pos = baseDir_.find( "/", pos+1 );
+ pos = baseDir_.tqfind( "/", pos+1 );
}
// now the paths are equal up to oldPos, so that's how "deep" we go
path = path.mid( oldPos+1 );
baseDir_ = baseDir_.mid( oldPos+1 );
- int numberOfDirs = baseDir_.contains( '/' );
+ int numberOfDirs = baseDir_.tqcontains( '/' );
for( int i = 0; i < numberOfDirs; ++i )
path.prepend( "../" );
@@ -581,20 +581,20 @@ QString K3bAudioRipThread::findRelativePath( const QString& absPath, const QStri
}
-QString K3bAudioRipThread::jobDescription() const
+TQString K3bAudioRipThread::jobDescription() const
{
if( m_cddbEntry.cdTitle.isEmpty() )
return i18n("Ripping Audio Tracks");
else
- return i18n("Ripping Audio Tracks From '%1'").arg(m_cddbEntry.cdTitle);
+ return i18n("Ripping Audio Tracks From '%1'").tqarg(m_cddbEntry.cdTitle);
}
-QString K3bAudioRipThread::jobDetails() const
+TQString K3bAudioRipThread::jobDetails() const
{
if( d->encoder )
return i18n("1 track (encoding to %1)",
"%n tracks (encoding to %1)",
- m_tracks.count() ).arg(d->encoder->fileTypeComment(d->fileType));
+ m_tracks.count() ).tqarg(d->encoder->fileTypeComment(d->fileType));
else
return i18n("1 track", "%n tracks", m_tracks.count() );
}
diff --git a/src/rip/k3baudioripthread.h b/src/rip/k3baudioripthread.h
index 93d600f..cb3ce53 100644
--- a/src/rip/k3baudioripthread.h
+++ b/src/rip/k3baudioripthread.h
@@ -18,9 +18,9 @@
#define K3B_AUDIO_RIP_THREAD_H
#include <k3bthread.h>
-#include <qobject.h>
-#include <qvaluevector.h>
-#include <qpair.h>
+#include <tqobject.h>
+#include <tqvaluevector.h>
+#include <tqpair.h>
#include <k3bcddbquery.h>
@@ -32,16 +32,17 @@ namespace K3bDevice {
}
-class K3bAudioRipThread : public QObject, public K3bThread
+class K3bAudioRipThread : public TQObject, public K3bThread
{
Q_OBJECT
+ TQ_OBJECT
public:
K3bAudioRipThread();
~K3bAudioRipThread();
- QString jobDescription() const;
- QString jobDetails() const;
+ TQString jobDescription() const;
+ TQString jobDetails() const;
// paranoia settings
void setParanoiaMode( int mode );
@@ -62,15 +63,15 @@ class K3bAudioRipThread : public QObject, public K3bThread
/**
* Used for encoders that support multiple formats
*/
- void setFileType( const QString& );
+ void setFileType( const TQString& );
/**
* 1 is the first track
*/
- void setTracksToRip( const QValueVector<QPair<int, QString> >& t ) { m_tracks = t; }
+ void setTracksToRip( const TQValueVector<TQPair<int, TQString> >& t ) { m_tracks = t; }
void setWritePlaylist( bool b ) { m_writePlaylist = b; }
- void setPlaylistFilename( const QString& s ) { m_playlistFilename = s; }
+ void setPlaylistFilename( const TQString& s ) { m_playlistFilename = s; }
void setUseRelativePathInPlaylist( bool b ) { m_relativePathInPlaylist = b; }
void setWriteCueFile( bool b ) { m_writeCueFile = b; }
@@ -80,10 +81,10 @@ class K3bAudioRipThread : public QObject, public K3bThread
void slotCheckIfThreadStillRunning();
private:
- /** reimplemented from QThread. Does the work */
+ /** reimplemented from TQThread. Does the work */
void run();
- bool ripTrack( int track, const QString& filename );
+ bool ripTrack( int track, const TQString& filename );
void cleanupAfterCancellation();
bool writePlaylist();
bool writeCueFile();
@@ -91,7 +92,7 @@ class K3bAudioRipThread : public QObject, public K3bThread
/**
* Finds a relative path from baseDir to absPath
*/
- QString findRelativePath( const QString& absPath, const QString& baseDir );
+ TQString findRelativePath( const TQString& absPath, const TQString& baseDir );
K3bCddbResultEntry m_cddbEntry;
K3bDevice::Device* m_device;
@@ -102,11 +103,11 @@ class K3bAudioRipThread : public QObject, public K3bThread
bool m_writePlaylist;
bool m_relativePathInPlaylist;
- QString m_playlistFilename;
+ TQString m_playlistFilename;
bool m_writeCueFile;
- QValueVector<QPair<int, QString> > m_tracks;
+ TQValueVector<TQPair<int, TQString> > m_tracks;
friend class K3bAudioRipJob;
diff --git a/src/rip/k3bcddbpatternwidget.cpp b/src/rip/k3bcddbpatternwidget.cpp
index 9cea4d5..ba5427a 100644
--- a/src/rip/k3bcddbpatternwidget.cpp
+++ b/src/rip/k3bcddbpatternwidget.cpp
@@ -22,18 +22,18 @@
#include <kurllabel.h>
#include <kdebug.h>
-#include <qregexp.h>
-#include <qvalidator.h>
-#include <qwhatsthis.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
+#include <tqregexp.h>
+#include <tqvalidator.h>
+#include <tqwhatsthis.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
-K3bCddbPatternWidget::K3bCddbPatternWidget( QWidget* parent, const char* name )
- : base_K3bCddbPatternWidget( parent, name )
+K3bCddbPatternWidget::K3bCddbPatternWidget( TQWidget* tqparent, const char* name )
+ : base_K3bCddbPatternWidget( tqparent, name )
{
- // fix the layout
- ((QGridLayout*)layout())->setRowStretch( 4, 1 );
+ // fix the tqlayout
+ ((TQGridLayout*)tqlayout())->setRowStretch( 4, 1 );
// setup validators
// there can never be one of the following characters in both dir and filename:
@@ -41,7 +41,7 @@ K3bCddbPatternWidget::K3bCddbPatternWidget( QWidget* parent, const char* name )
// additional the filename can never contain a slash /
// and the dir should never start with a slash since it should always be a relative path
- QRegExpValidator* dirValidator = new QRegExpValidator( QRegExp( "[^/][^?\\*\\\"]*" ), this );
+ TQRegExpValidator* dirValidator = new TQRegExpValidator( TQRegExp( "[^/][^?\\*\\\"]*" ), TQT_TQOBJECT(this) );
m_comboFilenamePattern->setValidator( dirValidator );
m_comboPlaylistPattern->setValidator( dirValidator );
m_editBlankReplace->setValidator( dirValidator );
@@ -56,18 +56,18 @@ K3bCddbPatternWidget::K3bCddbPatternWidget( QWidget* parent, const char* name )
m_comboPlaylistPattern->insertItem( i18n( "Playlist" ) );
m_comboPlaylistPattern->insertItem( i18n( "playlists/%{albumartist}/%{albumtitle }" ) );
- connect( m_comboFilenamePattern, SIGNAL(textChanged(const QString&)),
- this, SIGNAL(changed()) );
- connect( m_comboPlaylistPattern, SIGNAL(textChanged(const QString&)),
- this, SIGNAL(changed()) );
- connect( m_editBlankReplace, SIGNAL(textChanged(const QString&)),
- this, SIGNAL(changed()) );
- connect( m_checkBlankReplace, SIGNAL(toggled(bool)),
- this, SIGNAL(changed()) );
- connect( m_specialStringsLabel, SIGNAL(leftClickedURL()),
- this, SLOT(slotSeeSpecialStrings()) );
- connect( m_conditionalInclusionLabel, SIGNAL(leftClickedURL()),
- this, SLOT(slotSeeConditionalInclusion()) );
+ connect( m_comboFilenamePattern, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SIGNAL(changed()) );
+ connect( m_comboPlaylistPattern, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SIGNAL(changed()) );
+ connect( m_editBlankReplace, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SIGNAL(changed()) );
+ connect( m_checkBlankReplace, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SIGNAL(changed()) );
+ connect( m_specialStringsLabel, TQT_SIGNAL(leftClickedURL()),
+ this, TQT_SLOT(slotSeeSpecialStrings()) );
+ connect( m_conditionalInclusionLabel, TQT_SIGNAL(leftClickedURL()),
+ this, TQT_SLOT(slotSeeConditionalInclusion()) );
}
@@ -76,19 +76,19 @@ K3bCddbPatternWidget::~K3bCddbPatternWidget()
}
-QString K3bCddbPatternWidget::filenamePattern() const
+TQString K3bCddbPatternWidget::filenamePattern() const
{
return m_comboFilenamePattern->currentText();
}
-QString K3bCddbPatternWidget::playlistPattern() const
+TQString K3bCddbPatternWidget::playlistPattern() const
{
return m_comboPlaylistPattern->currentText();
}
-QString K3bCddbPatternWidget::blankReplaceString() const
+TQString K3bCddbPatternWidget::blankReplaceString() const
{
return m_editBlankReplace->text();
}
@@ -129,7 +129,7 @@ void K3bCddbPatternWidget::loadDefaults()
void K3bCddbPatternWidget::slotSeeSpecialStrings()
{
- QWhatsThis::display( i18n( "<p><b>Pattern special strings:</b>"
+ TQWhatsThis::display( i18n( "<p><b>Pattern special strings:</b>"
"<p>The following strings will be replaced with their respective meaning in every "
"track name.<br>"
"<em>Hint:</em> %A differs from %a only on soundtracks or compilations."
@@ -150,7 +150,7 @@ void K3bCddbPatternWidget::slotSeeSpecialStrings()
void K3bCddbPatternWidget::slotSeeConditionalInclusion()
{
- QWhatsThis::display( i18n( "<p><b>Conditional inclusion:</b>"
+ TQWhatsThis::display( i18n( "<p><b>Conditional inclusion:</b>"
"<p>These patterns make it possible to selectively include texts, "
"depending on the value of CDDB entries. You can choose only to "
"include or exclude texts if one of the entries is empty, "
diff --git a/src/rip/k3bcddbpatternwidget.h b/src/rip/k3bcddbpatternwidget.h
index 928b95b..ef15ae7 100644
--- a/src/rip/k3bcddbpatternwidget.h
+++ b/src/rip/k3bcddbpatternwidget.h
@@ -25,14 +25,15 @@ class KConfigBase;
class K3bCddbPatternWidget : public base_K3bCddbPatternWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bCddbPatternWidget( QWidget* parent = 0, const char* name = 0 );
+ K3bCddbPatternWidget( TQWidget* tqparent = 0, const char* name = 0 );
~K3bCddbPatternWidget();
- QString filenamePattern() const;
- QString playlistPattern() const;
- QString blankReplaceString() const;
+ TQString filenamePattern() const;
+ TQString playlistPattern() const;
+ TQString blankReplaceString() const;
bool replaceBlanks() const;
signals:
diff --git a/src/rip/k3bcuefilewriter.cpp b/src/rip/k3bcuefilewriter.cpp
index 087002d..2303926 100644
--- a/src/rip/k3bcuefilewriter.cpp
+++ b/src/rip/k3bcuefilewriter.cpp
@@ -20,9 +20,9 @@
#include <k3bcore.h>
#include <k3bversion.h>
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qdatetime.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqdatetime.h>
K3bCueFileWriter::K3bCueFileWriter()
@@ -30,22 +30,22 @@ K3bCueFileWriter::K3bCueFileWriter()
}
-bool K3bCueFileWriter::save( const QString& filename )
+bool K3bCueFileWriter::save( const TQString& filename )
{
- QFile f( filename );
+ TQFile f( filename );
if( !f.open( IO_WriteOnly ) ) {
kdDebug() << "(K3bCueFileWriter) could not open file " << f.name() << endl;
return false;
}
- QTextStream s( &f );
+ TQTextStream s( &f );
return save( s );
}
-bool K3bCueFileWriter::save( QTextStream& t )
+bool K3bCueFileWriter::save( TQTextStream& t )
{
t << "REM Cue file written by K3b " << k3bcore->version() << endl
<< endl;
@@ -64,7 +64,7 @@ bool K3bCueFileWriter::save( QTextStream& t )
const K3bDevice::Track& track = *it;
- t << " TRACK " << QString::number(i+1).rightJustify( 2, '0' ) << " AUDIO" << endl;
+ t << " TRACK " << TQString::number(i+1).rightJustify( 2, '0' ) << " AUDIO" << endl;
if( m_cdText.count() > i && !m_cdText[i].isEmpty() ) {
t << " PERFORMER \"" << m_cdText[i].performer() << "\"" << endl;
@@ -87,5 +87,5 @@ bool K3bCueFileWriter::save( QTextStream& t )
i++;
}
- return ( t.device()->status() == IO_Ok );
+ return ( t.tqdevice()->status() == IO_Ok );
}
diff --git a/src/rip/k3bcuefilewriter.h b/src/rip/k3bcuefilewriter.h
index 88f7ffe..cee821d 100644
--- a/src/rip/k3bcuefilewriter.h
+++ b/src/rip/k3bcuefilewriter.h
@@ -16,8 +16,8 @@
#ifndef _K3B_CUE_FILE_WRITER_H_
#define _K3B_CUE_FILE_WRITER_H_
-#include <qtextstream.h>
-#include <qstringlist.h>
+#include <tqtextstream.h>
+#include <tqstringlist.h>
#include <k3btoc.h>
#include <k3bcdtext.h>
@@ -37,18 +37,18 @@ class K3bCueFileWriter
public:
K3bCueFileWriter();
- bool save( QTextStream& );
- bool save( const QString& filename );
+ bool save( TQTextStream& );
+ bool save( const TQString& filename );
void setData( const K3bDevice::Toc& toc ) { m_toc = toc; }
void setCdText( const K3bDevice::CdText& text ) { m_cdText = text; }
- void setImage( const QString& name, const QString& type ) { m_image = name; m_dataType = type; }
+ void setImage( const TQString& name, const TQString& type ) { m_image = name; m_dataType = type; }
private:
K3bDevice::Toc m_toc;
K3bDevice::CdText m_cdText;
- QString m_image;
- QString m_dataType;
+ TQString m_image;
+ TQString m_dataType;
};
#endif
diff --git a/src/rip/k3bpatternparser.cpp b/src/rip/k3bpatternparser.cpp
index 8ba04e6..4d25ad2 100644
--- a/src/rip/k3bpatternparser.cpp
+++ b/src/rip/k3bpatternparser.cpp
@@ -17,24 +17,24 @@
#include "k3bpatternparser.h"
-#include <qregexp.h>
-#include <qdatetime.h>
-#include <qvaluestack.h>
+#include <tqregexp.h>
+#include <tqdatetime.h>
+#include <tqvaluestack.h>
#include <kglobal.h>
#include <klocale.h>
-QString K3bPatternParser::parsePattern( const K3bCddbResultEntry& entry,
+TQString K3bPatternParser::parsePattern( const K3bCddbResultEntry& entry,
unsigned int trackNumber,
- const QString& pattern,
- bool replace,
- const QString& replaceString )
+ const TQString& pattern,
+ bool tqreplace,
+ const TQString& replaceString )
{
if( entry.titles.count() < trackNumber )
return "";
- QString dir, s;
+ TQString dir, s;
char c = ' '; // contains the character representation of a special string
unsigned int len; // length of the current special string
@@ -115,40 +115,40 @@ QString K3bPatternParser::parsePattern( const K3bCddbResultEntry& entry,
switch( c ) {
case ARTIST:
s = entry.artists[trackNumber-1];
- s.replace( '/', '_' );
- s.replace( '*', '_' );
- s.replace( '}', '*' ); // for conditional inclusion
+ s.tqreplace( '/', '_' );
+ s.tqreplace( '*', '_' );
+ s.tqreplace( '}', '*' ); // for conditional inclusion
dir.append( s.isEmpty()
- ? i18n("unknown") + QString(" %1").arg(trackNumber)
+ ? i18n("unknown") + TQString(" %1").tqarg(trackNumber)
: s );
break;
case TITLE:
s = entry.titles[trackNumber-1];
- s.replace( '/', '_' );
- s.replace( '*', '_' );
- s.replace( '}', '*' );
+ s.tqreplace( '/', '_' );
+ s.tqreplace( '*', '_' );
+ s.tqreplace( '}', '*' );
dir.append( s.isEmpty()
- ? i18n("Track %1").arg(trackNumber)
+ ? i18n("Track %1").tqarg(trackNumber)
: s );
break;
case NUMBER:
- dir.append( QString::number(trackNumber).rightJustify( 2, '0' ) );
+ dir.append( TQString::number(trackNumber).rightJustify( 2, '0' ) );
break;
case YEAR:
- dir.append( QString::number( entry.year ) );
+ dir.append( TQString::number( entry.year ) );
break;
case COMMENT:
s = entry.extInfos[trackNumber-1];
- s.replace( '/', '_' );
- s.replace( '*', '_' );
- s.replace( '}', '*' );
+ s.tqreplace( '/', '_' );
+ s.tqreplace( '*', '_' );
+ s.tqreplace( '}', '*' );
dir.append( s );
break;
case GENRE:
s = ( entry.genre.isEmpty() ? entry.category : entry.genre );
- s.replace( '/', '_' );
- s.replace( '*', '_' );
- s.replace( '}', '*' );
+ s.tqreplace( '/', '_' );
+ s.tqreplace( '*', '_' );
+ s.tqreplace( '}', '*' );
dir.append( s );
break;
case ALBUMARTIST:
@@ -157,21 +157,21 @@ QString K3bPatternParser::parsePattern( const K3bCddbResultEntry& entry,
break;
case ALBUMTITLE:
s = entry.cdTitle;
- s.replace( '/', '_' );
- s.replace( '*', '_' );
- s.replace( '}', '*' );
+ s.tqreplace( '/', '_' );
+ s.tqreplace( '*', '_' );
+ s.tqreplace( '}', '*' );
dir.append( s.isEmpty()
? i18n("unknown") : s );
break;
case ALBUMCOMMENT:
s = entry.cdExtInfo;
- s.replace( '/', '_' );
- s.replace( '*', '_' );
- s.replace( '}', '*' );
+ s.tqreplace( '/', '_' );
+ s.tqreplace( '*', '_' );
+ s.tqreplace( '}', '*' );
dir.append( s ); // I think it makes more sense to allow empty comments
break;
case DATE:
- dir.append( KGlobal::locale()->formatDate( QDate::currentDate() ) );
+ dir.append( KGlobal::locale()->formatDate( TQDate::tqcurrentDate() ) );
break;
default:
dir.append( pattern.mid(i, len) );
@@ -193,17 +193,17 @@ QString K3bPatternParser::parsePattern( const K3bCddbResultEntry& entry,
// /* delete line comment to comment out
// the following part: Conditional Inclusion
- QValueStack<int> offsetStack;
- QString inclusion;
+ TQValueStack<int> offsetStack;
+ TQString inclusion;
bool isIncluded;
- static QRegExp conditionrx( "^[@|!][atyegrmx](?:='.*')?\\{" );
+ static TQRegExp conditionrx( "^[@|!][atyegrmx](?:='.*')?\\{" );
conditionrx.setMinimal( TRUE );
for( unsigned int i = 0; i < dir.length(); ++i ) {
offsetStack.push(
- conditionrx.search(dir, i, QRegExp::CaretAtOffset) );
+ conditionrx.search(dir, i, TQRegExp::CaretAtOffset) );
if( offsetStack.top() == -1 ) {
offsetStack.pop();
@@ -218,7 +218,7 @@ QString K3bPatternParser::parsePattern( const K3bCddbResultEntry& entry,
int offset = offsetStack.pop();
int length = i - offset + 1;
- switch( (QChar) dir[offset+1] ) {
+ switch( (TQChar) dir[offset+1] ) {
case ARTIST:
s = entry.artists[trackNumber-1];
break;
@@ -226,10 +226,10 @@ QString K3bPatternParser::parsePattern( const K3bCddbResultEntry& entry,
s = entry.titles[trackNumber-1];
break;
case NUMBER:
- s = QString::number( trackNumber );
+ s = TQString::number( trackNumber );
break;
case YEAR:
- s = QString::number( entry.year );
+ s = TQString::number( entry.year );
break;
case COMMENT:
s = entry.extInfos[trackNumber-1];
@@ -247,14 +247,14 @@ QString K3bPatternParser::parsePattern( const K3bCddbResultEntry& entry,
s = entry.cdExtInfo;
break;
case DATE:
- s = KGlobal::locale()->formatDate( QDate::currentDate() );
+ s = KGlobal::locale()->formatDate( TQDate::tqcurrentDate() );
break;
default: // we must never get here,
break; // all choices should be covered
}
if( dir[offset+2] == '{' ) { // no string matching, e.g. ?y{text}
- switch( (QChar) dir[offset+1] ) {
+ switch( (TQChar) dir[offset+1] ) {
case YEAR:
isIncluded = (s != "0");
break;
@@ -267,8 +267,8 @@ QString K3bPatternParser::parsePattern( const K3bCddbResultEntry& entry,
else { // with string matching, e.g. ?y='2004'{text}
// Be aware that there might be ' in the condition text
- int endOfCondition = dir.find( '{', offset+4 )-1;
- QString condition = dir.mid( offset+4,
+ int endOfCondition = dir.tqfind( '{', offset+4 )-1;
+ TQString condition = dir.mid( offset+4,
endOfCondition - (offset+4) );
isIncluded = (s == condition);
@@ -280,7 +280,7 @@ QString K3bPatternParser::parsePattern( const K3bCddbResultEntry& entry,
isIncluded = !isIncluded;
// Leave it when it's '@'.
- dir.replace( offset, length, ( isIncluded ? inclusion : QString("") ) );
+ dir.tqreplace( offset, length, ( isIncluded ? inclusion : TQString("") ) );
if( isIncluded == TRUE )
i -= length - inclusion.length();
@@ -289,17 +289,17 @@ QString K3bPatternParser::parsePattern( const K3bCddbResultEntry& entry,
continue;
- } // end of replace (at closing bracket '}')
+ } // end of tqreplace (at closing bracket '}')
} // end of conditional inclusion for(...)
// end of Conditional Inclusion */
- dir.replace( '*', '}' ); // bring the brackets back, if there were any
+ dir.tqreplace( '*', '}' ); // bring the brackets back, if there were any
- if( replace )
- dir.replace( QRegExp( "\\s" ), replaceString );
+ if( tqreplace )
+ dir.tqreplace( TQRegExp( "\\s" ), replaceString );
return dir;
}
diff --git a/src/rip/k3bpatternparser.h b/src/rip/k3bpatternparser.h
index 88a725d..1f2cf86 100644
--- a/src/rip/k3bpatternparser.h
+++ b/src/rip/k3bpatternparser.h
@@ -17,7 +17,7 @@
#ifndef K3BPATTERNPARSER_H
#define K3BPATTERNPARSER_H
-#include <qstring.h>
+#include <tqstring.h>
#include <k3bcddbquery.h>
@@ -28,11 +28,11 @@
class K3bPatternParser
{
public:
- static QString parsePattern( const K3bCddbResultEntry& entry,
+ static TQString parsePattern( const K3bCddbResultEntry& entry,
unsigned int trackNumber,
- const QString& pattern,
- bool replace = false,
- const QString& replaceString = "_" );
+ const TQString& pattern,
+ bool tqreplace = false,
+ const TQString& replaceString = "_" );
private:
enum {
diff --git a/src/rip/k3bvideocdinfo.cpp b/src/rip/k3bvideocdinfo.cpp
index ac30d40..9d6e8bc 100644
--- a/src/rip/k3bvideocdinfo.cpp
+++ b/src/rip/k3bvideocdinfo.cpp
@@ -15,11 +15,11 @@
-#include <qstring.h>
-#include <qvaluelist.h>
-#include <qstringlist.h>
-#include <qtimer.h>
-#include <qdom.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
+#include <tqstringlist.h>
+#include <tqtimer.h>
+#include <tqdom.h>
#include <klocale.h>
#include <kconfig.h>
@@ -31,8 +31,8 @@
#include <k3bexternalbinmanager.h>
-K3bVideoCdInfo::K3bVideoCdInfo( QObject* parent, const char* name )
- : QObject( parent, name )
+K3bVideoCdInfo::K3bVideoCdInfo( TQObject* tqparent, const char* name )
+ : TQObject( tqparent, name )
{
m_process = 0L;
m_isXml = false;
@@ -52,7 +52,7 @@ void K3bVideoCdInfo::cancelAll()
}
}
-void K3bVideoCdInfo::info( const QString& device )
+void K3bVideoCdInfo::info( const TQString& device )
{
if ( !k3bcore ->externalBinManager() ->foundBin( "vcdxrip" ) ) {
kdDebug() << "(K3bVideoCdInfo::info) could not find vcdxrip executable" << endl;
@@ -67,12 +67,12 @@ void K3bVideoCdInfo::info( const QString& device )
*m_process << "-q" << "--norip" << "-i" << device << "-o" << "-";
- connect( m_process, SIGNAL( receivedStderr( KProcess*, char*, int ) ),
- this, SLOT( slotParseOutput( KProcess*, char*, int ) ) );
- connect( m_process, SIGNAL( receivedStdout( KProcess*, char*, int ) ),
- this, SLOT( slotParseOutput( KProcess*, char*, int ) ) );
- connect( m_process, SIGNAL( processExited( KProcess* ) ),
- this, SLOT( slotInfoFinished() ) );
+ connect( m_process, TQT_SIGNAL( receivedStderr( KProcess*, char*, int ) ),
+ this, TQT_SLOT( slotParseOutput( KProcess*, char*, int ) ) );
+ connect( m_process, TQT_SIGNAL( receivedStdout( KProcess*, char*, int ) ),
+ this, TQT_SLOT( slotParseOutput( KProcess*, char*, int ) ) );
+ connect( m_process, TQT_SIGNAL( processExited( KProcess* ) ),
+ this, TQT_SLOT( slotInfoFinished() ) );
if ( !m_process->start( KProcess::NotifyOnExit, KProcess::AllOutput ) ) {
kdDebug() << "(K3bVideoCdInfo::info) could not start vcdxrip" << endl;
@@ -83,14 +83,14 @@ void K3bVideoCdInfo::info( const QString& device )
void K3bVideoCdInfo::slotParseOutput( KProcess*, char* output, int len )
{
- QString buffer = QString::fromLocal8Bit( output, len );
+ TQString buffer = TQString::fromLocal8Bit( output, len );
// split to lines
- QStringList lines = QStringList::split( "\n", buffer );
- QStringList::Iterator end( lines.end());
- for ( QStringList::Iterator str = lines.begin(); str != end; ++str ) {
+ TQStringList lines = TQStringList::split( "\n", buffer );
+ TQStringList::Iterator end( lines.end());
+ for ( TQStringList::Iterator str = lines.begin(); str != end; ++str ) {
- if ( ( *str ).contains( "<?xml" ) )
+ if ( ( *str ).tqcontains( "<?xml" ) )
m_isXml = true;
if ( m_isXml )
@@ -98,7 +98,7 @@ void K3bVideoCdInfo::slotParseOutput( KProcess*, char* output, int len )
else
kdDebug() << "(K3bVideoCdInfo::slotParseOutput) " << *str << endl;
- if ( ( *str ).contains( "</videocd>" ) )
+ if ( ( *str ).tqcontains( "</videocd>" ) )
m_isXml = false;
}
}
@@ -132,8 +132,8 @@ void K3bVideoCdInfo::slotInfoFinished()
void K3bVideoCdInfo::parseXmlData()
{
- QDomDocument xml_doc;
- QDomElement xml_root;
+ TQDomDocument xml_doc;
+ TQDomElement xml_root;
m_Result.xmlData = m_xmlData;
@@ -143,23 +143,23 @@ void K3bVideoCdInfo::parseXmlData()
m_Result.type = xml_root.attribute( "class" );
m_Result.version = xml_root.attribute( "version" );
- for ( QDomNode node = xml_root.firstChild(); !node.isNull(); node = node.nextSibling() ) {
- QDomElement el = node.toElement();
- QString tagName = el.tagName().lower();
+ for ( TQDomNode node = xml_root.firstChild(); !node.isNull(); node = node.nextSibling() ) {
+ TQDomElement el = node.toElement();
+ TQString tagName = el.tagName().lower();
if ( tagName == "pvd" ) {
- for ( QDomNode snode = node.firstChild(); !snode.isNull(); snode = snode.nextSibling() ) {
- QDomElement sel = snode.toElement();
- QString pvdElement = sel.tagName().lower();
- QString pvdElementText = sel.text();
+ for ( TQDomNode snode = node.firstChild(); !snode.isNull(); snode = snode.nextSibling() ) {
+ TQDomElement sel = snode.toElement();
+ TQString pvdElement = sel.tagName().lower();
+ TQString pvdElementText = sel.text();
if ( pvdElement == "volume-id" )
m_Result.volumeId = pvdElementText;
}
} else if ( tagName == "sequence-items" ) {
- for ( QDomNode snode = node.firstChild(); !snode.isNull(); snode = snode.nextSibling() ) {
- QDomElement sel = snode.toElement();
- QString seqElement = sel.tagName().lower();
+ for ( TQDomNode snode = node.firstChild(); !snode.isNull(); snode = snode.nextSibling() ) {
+ TQDomElement sel = snode.toElement();
+ TQString seqElement = sel.tagName().lower();
m_Result.addEntry( K3bVideoCdInfoResultEntry(
sel.attribute( "src" ),
sel.attribute( "id" ) ),
@@ -167,9 +167,9 @@ void K3bVideoCdInfo::parseXmlData()
);
}
} else if ( tagName == "segment-items" ) {
- for ( QDomNode snode = node.firstChild(); !snode.isNull(); snode = snode.nextSibling() ) {
- QDomElement sel = snode.toElement();
- QString seqElement = sel.tagName().lower();
+ for ( TQDomNode snode = node.firstChild(); !snode.isNull(); snode = snode.nextSibling() ) {
+ TQDomElement sel = snode.toElement();
+ TQString seqElement = sel.tagName().lower();
m_Result.addEntry( K3bVideoCdInfoResultEntry(
sel.attribute( "src" ),
sel.attribute( "id" ) ),
@@ -177,7 +177,7 @@ void K3bVideoCdInfo::parseXmlData()
);
}
} else {
- kdDebug() << QString( "(K3bVideoCdInfo::parseXmlData) tagName '%1' not used" ).arg( tagName ) << endl;
+ kdDebug() << TQString( "(K3bVideoCdInfo::parseXmlData) tagName '%1' not used" ).tqarg( tagName ) << endl;
}
}
}
diff --git a/src/rip/k3bvideocdinfo.h b/src/rip/k3bvideocdinfo.h
index 0b295e6..c5acebe 100644
--- a/src/rip/k3bvideocdinfo.h
+++ b/src/rip/k3bvideocdinfo.h
@@ -17,9 +17,9 @@
#ifndef K3BVIDEOCDINFO_H
#define K3BVIDEOCDINFO_H
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qobject.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqobject.h>
#include <k3btoc.h>
#include <k3bcore.h>
@@ -32,12 +32,12 @@ class K3bVideoCdInfoResultEntry
K3bVideoCdInfoResultEntry() : name( 0 ), id( 0 )
{}
- K3bVideoCdInfoResultEntry( const QString& name, const QString& id )
+ K3bVideoCdInfoResultEntry( const TQString& name, const TQString& id )
: name( name ), id( id )
{}
- QString name;
- QString id;
+ TQString name;
+ TQString id;
long size;
};
@@ -54,26 +54,27 @@ class K3bVideoCdInfoResult
const K3bVideoCdInfoResultEntry& entry( unsigned int number = 0 , int type = K3bVideoCdInfoResult::SEQUENCE ) const;
int foundEntries( int type = K3bVideoCdInfoResult::SEQUENCE ) const;
- QString volumeId;
- QString type;
- QString version;
+ TQString volumeId;
+ TQString type;
+ TQString version;
- QString xmlData;
+ TQString xmlData;
private:
- QValueList<K3bVideoCdInfoResultEntry> m_fileEntry;
- QValueList<K3bVideoCdInfoResultEntry> m_segmentEntry;
- QValueList<K3bVideoCdInfoResultEntry> m_sequenceEntry;
+ TQValueList<K3bVideoCdInfoResultEntry> m_fileEntry;
+ TQValueList<K3bVideoCdInfoResultEntry> m_segmentEntry;
+ TQValueList<K3bVideoCdInfoResultEntry> m_sequenceEntry;
K3bVideoCdInfoResultEntry m_emptyEntry;
};
-class K3bVideoCdInfo : public QObject
+class K3bVideoCdInfo : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bVideoCdInfo( QObject* parent = 0, const char* name = 0 );
+ K3bVideoCdInfo( TQObject* tqparent = 0, const char* name = 0 );
~K3bVideoCdInfo();
/**
@@ -82,7 +83,7 @@ class K3bVideoCdInfo : public QObject
*/
const K3bVideoCdInfoResult& result() const;
- void info( const QString& );
+ void info( const TQString& );
signals:
void infoFinished( bool success );
@@ -99,7 +100,7 @@ class K3bVideoCdInfo : public QObject
KProcess* m_process;
- QString m_xmlData;
+ TQString m_xmlData;
bool m_isXml;
};
diff --git a/src/rip/k3bvideocdrip.cpp b/src/rip/k3bvideocdrip.cpp
index a7467c9..a649e6e 100644
--- a/src/rip/k3bvideocdrip.cpp
+++ b/src/rip/k3bvideocdrip.cpp
@@ -21,13 +21,13 @@
#include <ktempfile.h>
#include <kurl.h>
-#include <qdatetime.h>
-#include <qdom.h>
-#include <qfile.h>
-#include <qstring.h>
-#include <qregexp.h>
-#include <qtimer.h>
-#include <qurl.h>
+#include <tqdatetime.h>
+#include <tqdom.h>
+#include <tqfile.h>
+#include <tqstring.h>
+#include <tqregexp.h>
+#include <tqtimer.h>
+#include <tqurl.h>
// K3b Includes
#include "k3bvideocdrip.h"
@@ -36,8 +36,8 @@
#include <k3bglobals.h>
#include <k3bprocess.h>
-K3bVideoCdRip::K3bVideoCdRip( K3bJobHandler* hdl, K3bVideoCdRippingOptions* options, QObject* parent, const char* name )
- : K3bJob( hdl, parent, name ),
+K3bVideoCdRip::K3bVideoCdRip( K3bJobHandler* hdl, K3bVideoCdRippingOptions* options, TQObject* tqparent, const char* name )
+ : K3bJob( hdl, tqparent, name ),
m_ripsourceType( 0 ),
m_subPosition ( 0 ),
m_videooptions( options ),
@@ -97,8 +97,8 @@ void K3bVideoCdRip::vcdxRip()
if ( !bin ) {
kdDebug() << "(K3bVideoCdRip) could not find vcdxrip executable" << endl;
- emit infoMessage( i18n( "Could not find %1 executable." ).arg( "vcdxrip" ), K3bJob::ERROR );
- emit infoMessage( i18n( "To rip VideoCD's you must install VcdImager Version %1." ).arg( ">= 0.7.12" ), K3bJob::INFO );
+ emit infoMessage( i18n( "Could not tqfind %1 executable." ).tqarg( "vcdxrip" ), K3bJob::ERROR );
+ emit infoMessage( i18n( "To rip VideoCD's you must install VcdImager Version %1." ).tqarg( ">= 0.7.12" ), K3bJob::INFO );
emit infoMessage( i18n( "You can find this on your distribution disks or download it from http://www.vcdimager.org" ), K3bJob::INFO );
cancelAll();
jobFinished( false );
@@ -107,7 +107,7 @@ void K3bVideoCdRip::vcdxRip()
if( bin->version < K3bVersion("0.7.12") ) {
kdDebug() << "(K3bVideoCdRip) vcdxrip executable too old!" << endl;
- emit infoMessage( i18n( "%1 executable too old! Need version %2 or greater" ).arg( "Vcdxrip" ).arg( "0.7.12" ), K3bJob::ERROR );
+ emit infoMessage( i18n( "%1 executable too old! Need version %2 or greater" ).tqarg( "Vcdxrip" ).tqarg( "0.7.12" ), K3bJob::ERROR );
emit infoMessage( i18n( "You can find this on your distribution disks or download it from http://www.vcdimager.org" ), K3bJob::INFO );
cancelAll();
jobFinished( false );
@@ -115,14 +115,14 @@ void K3bVideoCdRip::vcdxRip()
}
if ( !bin->copyright.isEmpty() )
- emit infoMessage( i18n( "Using %1 %2 - Copyright (C) %3" ).arg( bin->name() ).arg( bin->version ).arg( bin->copyright ), INFO );
+ emit infoMessage( i18n( "Using %1 %2 - Copyright (C) %3" ).tqarg( bin->name() ).tqarg( bin->version ).tqarg( bin->copyright ), INFO );
*m_process << k3bcore ->externalBinManager() ->binPath( "vcdxrip" );
// additional user parameters from config
- const QStringList& params = k3bcore->externalBinManager() ->program( "vcdxrip" ) ->userParameters();
- for ( QStringList::const_iterator it = params.begin(); it != params.end(); ++it )
+ const TQStringList& params = k3bcore->externalBinManager() ->program( "vcdxrip" ) ->userParameters();
+ for ( TQStringList::const_iterator it = params.begin(); it != params.end(); ++it )
*m_process << *it;
*m_process << "--gui" << "--progress";
@@ -142,29 +142,29 @@ void K3bVideoCdRip::vcdxRip()
if ( m_videooptions ->getVideoCdSector2336() )
*m_process << "--sector-2336";
- *m_process << "-i" << QString( "%1" ).arg( QFile::encodeName( m_videooptions ->getVideoCdSource() ) );
+ *m_process << "-i" << TQString( "%1" ).tqarg( TQFile::encodeName( m_videooptions ->getVideoCdSource() ).data() );
if ( m_videooptions ->getVideoCdExtractXml() )
- *m_process << "-o" << QString( "%1" ).arg( QFile::encodeName( m_videooptions ->getVideoCdDescription() + ".xml" ) );
+ *m_process << "-o" << TQString( "%1" ).tqarg( TQFile::encodeName( m_videooptions ->getVideoCdDescription() + ".xml" ).data() );
else
*m_process << "-o" << "/dev/null";
- connect( m_process, SIGNAL( receivedStderr( KProcess*, char*, int ) ),
- this, SLOT( slotParseVcdXRipOutput( KProcess*, char*, int ) ) );
- connect( m_process, SIGNAL( receivedStdout( KProcess*, char*, int ) ),
- this, SLOT( slotParseVcdXRipOutput( KProcess*, char*, int ) ) );
- connect( m_process, SIGNAL( processExited( KProcess* ) ),
- this, SLOT( slotVcdXRipFinished() ) );
+ connect( m_process, TQT_SIGNAL( receivedStderr( KProcess*, char*, int ) ),
+ this, TQT_SLOT( slotParseVcdXRipOutput( KProcess*, char*, int ) ) );
+ connect( m_process, TQT_SIGNAL( receivedStdout( KProcess*, char*, int ) ),
+ this, TQT_SLOT( slotParseVcdXRipOutput( KProcess*, char*, int ) ) );
+ connect( m_process, TQT_SIGNAL( processExited( KProcess* ) ),
+ this, TQT_SLOT( slotVcdXRipFinished() ) );
- m_process->setWorkingDirectory( QUrl( m_videooptions ->getVideoCdDestination() ).dirPath() );
+ m_process->setWorkingDirectory( TQUrl( m_videooptions ->getVideoCdDestination() ).dirPath() );
// vcdxrip commandline parameters
kdDebug() << "***** vcdxrip parameters:" << endl;
;
- const QValueList<QCString>& args = m_process->args();
- QString s;
- for ( QValueList<QCString>::const_iterator it = args.begin(); it != args.end(); ++it ) {
+ const TQValueList<TQCString>& args = m_process->args();
+ TQString s;
+ for ( TQValueList<TQCString>::const_iterator it = args.begin(); it != args.end(); ++it ) {
s += *it + " ";
}
kdDebug() << s << flush << endl;
@@ -172,11 +172,11 @@ void K3bVideoCdRip::vcdxRip()
emit newTask( i18n( "Extracting" ) );
emit infoMessage( i18n( "Start extracting." ), K3bJob::INFO );
- emit infoMessage( i18n( "Extract files from %1 to %2." ).arg( m_videooptions ->getVideoCdSource() ).arg( m_videooptions ->getVideoCdDestination() ), K3bJob::INFO );
+ emit infoMessage( i18n( "Extract files from %1 to %2." ).tqarg( m_videooptions ->getVideoCdSource() ).tqarg( m_videooptions ->getVideoCdDestination() ), K3bJob::INFO );
if ( !m_process->start( KProcess::NotifyOnExit, KProcess::AllOutput ) ) {
kdDebug() << "(K3bVideoCdRip) could not start vcdxrip" << endl;
- emit infoMessage( i18n( "Could not start %1." ).arg( "vcdxrip" ), K3bJob::ERROR );
+ emit infoMessage( i18n( "Could not start %1." ).tqarg( "vcdxrip" ), K3bJob::ERROR );
cancelAll();
jobFinished( false );
}
@@ -184,34 +184,34 @@ void K3bVideoCdRip::vcdxRip()
void K3bVideoCdRip::slotParseVcdXRipOutput( KProcess*, char* output, int len )
{
- QString buffer = QString::fromLocal8Bit( output, len );
+ TQString buffer = TQString::fromLocal8Bit( output, len );
// split to lines
- QStringList lines = QStringList::split( "\n", buffer );
+ TQStringList lines = TQStringList::split( "\n", buffer );
- QDomDocument xml_doc;
- QDomElement xml_root;
+ TQDomDocument xml_doc;
+ TQDomElement xml_root;
// do every line
- QStringList::Iterator end( lines.end());
- for ( QStringList::Iterator str = lines.begin(); str != end; ++str ) {
+ TQStringList::Iterator end( lines.end());
+ for ( TQStringList::Iterator str = lines.begin(); str != end; ++str ) {
*str = ( *str ).stripWhiteSpace();
emit debuggingOutput( "vcdxrip", *str );
- xml_doc.setContent( QString( "<?xml version='1.0'?><vcdxrip>" ) + *str + "</vcdxrip>" );
+ xml_doc.setContent( TQString( "<?xml version='1.0'?><vcdxrip>" ) + *str + "</vcdxrip>" );
xml_root = xml_doc.documentElement();
- for ( QDomNode node = xml_root.firstChild(); !node.isNull(); node = node.nextSibling() ) {
- QDomElement el = node.toElement();
+ for ( TQDomNode node = xml_root.firstChild(); !node.isNull(); node = node.nextSibling() ) {
+ TQDomElement el = node.toElement();
if ( el.isNull() )
continue;
- const QString tagName = el.tagName().lower();
+ const TQString tagName = el.tagName().lower();
if ( tagName == "progress" ) {
- const QString oper = el.attribute( "operation" ).lower();
+ const TQString oper = el.attribute( "operation" ).lower();
const unsigned long long overallPos = el.attribute( "position" ).toLong();
const unsigned long long pos = overallPos - m_subPosition;
const unsigned long long size = el.attribute( "size" ).toLong() - m_subPosition;
@@ -236,20 +236,20 @@ void K3bVideoCdRip::slotParseVcdXRipOutput( KProcess*, char* output, int len )
}
} else if ( tagName == "log" ) {
- QDomText tel = el.firstChild().toText();
- const QString level = el.attribute( "level" ).lower();
+ TQDomText tel = el.firstChild().toText();
+ const TQString level = el.attribute( "level" ).lower();
if ( tel.isText() ) {
- const QString text = tel.data();
+ const TQString text = tel.data();
if ( level == "information" ) {
- kdDebug() << QString( "(K3bVideoCdRip) vcdxrip information, %1" ).arg( text ) << endl;
+ kdDebug() << TQString( "(K3bVideoCdRip) vcdxrip information, %1" ).tqarg( text ) << endl;
parseInformation( text );
} else {
if ( level != "error" ) {
- kdDebug() << QString( "(K3bVideoCdRip) vcdxrip warning, %1" ).arg( text ) << endl;
+ kdDebug() << TQString( "(K3bVideoCdRip) vcdxrip warning, %1" ).tqarg( text ) << endl;
emit debuggingOutput( "vcdxrip", text );
parseInformation( text );
} else {
- kdDebug() << QString( "(K3bVideoCdRip) vcdxrip error, %1" ).arg( text ) << endl;
+ kdDebug() << TQString( "(K3bVideoCdRip) vcdxrip error, %1" ).tqarg( text ) << endl;
emit infoMessage( text, K3bJob::ERROR );
}
}
@@ -269,14 +269,14 @@ void K3bVideoCdRip::slotVcdXRipFinished()
emit infoMessage( i18n( "Files successfully extracted." ), K3bJob::SUCCESS );
break;
default:
- emit infoMessage( i18n( "%1 returned an unknown error (code %2)." ).arg( "vcdxrip" ).arg( m_process->exitStatus() ), K3bJob::ERROR );
+ emit infoMessage( i18n( "%1 returned an unknown error (code %2)." ).tqarg( "vcdxrip" ).tqarg( m_process->exitStatus() ), K3bJob::ERROR );
emit infoMessage( i18n( "Please send me an email with the last output..." ), K3bJob::ERROR );
cancelAll();
jobFinished( false );
return ;
}
} else {
- emit infoMessage( i18n( "%1 did not exit cleanly." ).arg( "Vcdxrip" ), K3bJob::ERROR );
+ emit infoMessage( i18n( "%1 did not exit cleanly." ).tqarg( "Vcdxrip" ), K3bJob::ERROR );
cancelAll();
jobFinished( false );
return ;
@@ -285,12 +285,12 @@ void K3bVideoCdRip::slotVcdXRipFinished()
jobFinished( true );
}
-void K3bVideoCdRip::parseInformation( QString text )
+void K3bVideoCdRip::parseInformation( TQString text )
{
// parse warning
- if ( text.contains( "encountered non-form2 sector" ) ) {
+ if ( text.tqcontains( "encountered non-form2 sector" ) ) {
// I think this is an error not a warning. Finish ripping with invalid mpegs.
- emit infoMessage( i18n( "%1 encountered non-form2 sector" ).arg("Vcdxrip"), K3bJob::ERROR );
+ emit infoMessage( i18n( "%1 encountered non-form2 sector" ).tqarg("Vcdxrip"), K3bJob::ERROR );
emit infoMessage( i18n( "leaving loop" ), K3bJob::ERROR );
cancelAll();
jobFinished( false );
@@ -298,22 +298,22 @@ void K3bVideoCdRip::parseInformation( QString text )
}
// parse extra info
- else if ( text.contains( "detected extended VCD2.0 PBC files" ) )
+ else if ( text.tqcontains( "detected extended VCD2.0 PBC files" ) )
emit infoMessage( i18n( "detected extended VCD2.0 PBC files" ), K3bJob::INFO );
// parse startposition and extracting sequence info
// extracting avseq05.mpg... (start lsn 32603 (+28514))
else if ( text.startsWith( "extracting" ) ) {
- if ( text.contains( "(start lsn" ) ) {
- int index = text.find( "(start lsn" );
- int end = text.find( " (+" );
+ if ( text.tqcontains( "(start lsn" ) ) {
+ int index = text.tqfind( "(start lsn" );
+ int end = text.tqfind( " (+" );
if ( end > 0) {
m_subPosition = text.mid( index + 11, end - index - 11 ).stripWhiteSpace().toLong();
}
else {
// found segment here we can get only the start lsn :)
// extracting item0001.mpg... (start lsn 225, 1 segments)
- int end = text.find( ",", index );
+ int end = text.tqfind( ",", index );
int overallPos = text.mid( index + 11, end - index - 11 ).stripWhiteSpace().toLong();
double relOverallWritten = ( ( double ) overallPos * 2352 ) / ( double ) m_videooptions ->getVideoCdSize() ;
int newpercent = ( int ) ( 100 * relOverallWritten );
@@ -325,31 +325,31 @@ void K3bVideoCdRip::parseInformation( QString text )
index = 11;
- end = text.find( "(start lsn" );
- emit newSubTask( i18n( "Extracting %1" ).arg( text.mid( index, end - index ).stripWhiteSpace() ) );
+ end = text.tqfind( "(start lsn" );
+ emit newSubTask( i18n( "Extracting %1" ).tqarg( text.mid( index, end - index ).stripWhiteSpace() ) );
}
// parse extracting files info
// extracting CDI/CDI_IMAG.RTF to _cdi_cdi_imag.rtf (lsn 258, size 1315168, raw 1)
- else if ( text.contains( "(lsn" ) && text.contains( "size" ) ) {
+ else if ( text.tqcontains( "(lsn" ) && text.tqcontains( "size" ) ) {
int index = 11;
- int end = text.find( "to" );
- QString extractFileName = text.mid( index, end - index ).stripWhiteSpace();
- index = text.find( " to " );
- end = text.find( " (lsn" );
- QString toFileName = text.mid( index + 4, end - index - 4 ).stripWhiteSpace();
- emit newSubTask( i18n( "Extracting %1 to %2" ).arg( extractFileName ).arg( toFileName ) );
+ int end = text.tqfind( "to" );
+ TQString extractFileName = text.mid( index, end - index ).stripWhiteSpace();
+ index = text.tqfind( " to " );
+ end = text.tqfind( " (lsn" );
+ TQString toFileName = text.mid( index + 4, end - index - 4 ).stripWhiteSpace();
+ emit newSubTask( i18n( "Extracting %1 to %2" ).tqarg( extractFileName ).tqarg( toFileName ) );
}
}
}
-QString K3bVideoCdRip::jobDescription() const
+TQString K3bVideoCdRip::jobDescription() const
{
- return i18n( "Extracting %1" ).arg( m_videooptions ->getVideoCdDescription() );
+ return i18n( "Extracting %1" ).tqarg( m_videooptions ->getVideoCdDescription() );
}
-QString K3bVideoCdRip::jobDetails() const
+TQString K3bVideoCdRip::jobDetails() const
{
- return QString( "(%1)" ).arg ( KIO::convertSize( m_videooptions ->getVideoCdSize() ) );
+ return TQString( "(%1)" ).arg ( KIO::convertSize( m_videooptions ->getVideoCdSize() ) );
}
#include "k3bvideocdrip.moc"
diff --git a/src/rip/k3bvideocdrip.h b/src/rip/k3bvideocdrip.h
index fe0d6f9..a47f1d0 100644
--- a/src/rip/k3bvideocdrip.h
+++ b/src/rip/k3bvideocdrip.h
@@ -20,22 +20,23 @@
#include <k3bdiskinfo.h>
#include "k3bvideocdrippingoptions.h"
-class QString;
+class TQString;
class KProcess;
-class QDataStream;
+class TQDataStream;
class K3bVideoCdRip : public K3bJob
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bVideoCdRip( K3bJobHandler*, K3bVideoCdRippingOptions* options, QObject* parent = 0, const char* name = 0 );
+ K3bVideoCdRip( K3bJobHandler*, K3bVideoCdRippingOptions* options, TQObject* tqparent = 0, const char* name = 0 );
~K3bVideoCdRip();
enum { CDROM, BIN_IMAGE, NRG_IMAGE };
- QString jobDescription() const;
- QString jobDetails() const;
+ TQString jobDescription() const;
+ TQString jobDetails() const;
public slots:
void start();
@@ -50,7 +51,7 @@ class K3bVideoCdRip : public K3bJob
private:
void vcdxRip();
- void parseInformation( QString );
+ void parseInformation( TQString );
enum { stageUnknown, stageScan, stageFinished, _stage_max };
@@ -61,7 +62,7 @@ class K3bVideoCdRip : public K3bJob
long m_subPosition;
- QString m_collectedOutput;
+ TQString m_collectedOutput;
K3bVideoCdRippingOptions * m_videooptions;
diff --git a/src/rip/k3bvideocdrippingdialog.cpp b/src/rip/k3bvideocdrippingdialog.cpp
index 490f531..24e3d2e 100644
--- a/src/rip/k3bvideocdrippingdialog.cpp
+++ b/src/rip/k3bvideocdrippingdialog.cpp
@@ -24,17 +24,17 @@
#include <kstandarddirs.h>
// qt includes
-#include <qgroupbox.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qtimer.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qdir.h>
-#include <qfileinfo.h>
-#include <qstringlist.h>
-#include <qhbox.h>
+#include <tqgroupbox.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqtimer.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
+#include <tqstringlist.h>
+#include <tqhbox.h>
// k3b includes
#include "k3bvideocdrippingdialog.h"
@@ -45,10 +45,10 @@
#include <k3bglobals.h>
#include <k3bstdguiitems.h>
-K3bVideoCdRippingDialog::K3bVideoCdRippingDialog( K3bVideoCdRippingOptions* options, QWidget* parent, const char* name )
- : K3bInteractionDialog( parent, name,
+K3bVideoCdRippingDialog::K3bVideoCdRippingDialog( K3bVideoCdRippingOptions* options, TQWidget* tqparent, const char* name )
+ : K3bInteractionDialog( tqparent, name,
i18n( "Video CD Ripping" ),
- QString::null,
+ TQString(),
START_BUTTON|CANCEL_BUTTON,
START_BUTTON,
"Video CD Ripping" ), // config group
@@ -66,37 +66,37 @@ K3bVideoCdRippingDialog::~K3bVideoCdRippingDialog()
void K3bVideoCdRippingDialog::setupGui()
{
- QWidget * frame = mainWidget();
- QGridLayout* MainLayout = new QGridLayout( frame );
+ TQWidget * frame = mainWidget();
+ TQGridLayout* MainLayout = new TQGridLayout( frame );
MainLayout->setSpacing( KDialog::spacingHint() );
MainLayout->setMargin( 0 );
// ---------------------------------------------------- Directory group ---
- QGroupBox* groupDirectory = new QGroupBox( 0, Qt::Vertical, i18n( "Destination Directory" ), frame );
- groupDirectory->layout() ->setSpacing( KDialog::spacingHint() );
- groupDirectory->layout() ->setMargin( KDialog::marginHint() );
+ TQGroupBox* groupDirectory = new TQGroupBox( 0, Qt::Vertical, i18n( "Destination Directory" ), frame );
+ groupDirectory->tqlayout() ->setSpacing( KDialog::spacingHint() );
+ groupDirectory->tqlayout() ->setMargin( KDialog::marginHint() );
- QGridLayout* groupDirectoryLayout = new QGridLayout( groupDirectory->layout() );
- groupDirectoryLayout->setAlignment( Qt::AlignTop );
+ TQGridLayout* groupDirectoryLayout = new TQGridLayout( groupDirectory->tqlayout() );
+ groupDirectoryLayout->tqsetAlignment( TQt::AlignTop );
- QLabel* rippathLabel = new QLabel( i18n( "Rip files to:" ), groupDirectory );
+ TQLabel* rippathLabel = new TQLabel( i18n( "Rip files to:" ), groupDirectory );
m_editDirectory = new KURLRequester( groupDirectory, "m_editDirectory" );
- m_editDirectory->setURL( QDir::homeDirPath() );
+ m_editDirectory->setURL( TQDir::homeDirPath() );
m_editDirectory->setMode( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly );
rippathLabel->setBuddy( m_editDirectory );
- QHBox* freeSpaceBox = new QHBox( groupDirectory );
+ TQHBox* freeSpaceBox = new TQHBox( groupDirectory );
freeSpaceBox->setSpacing( KDialog::spacingHint() );
- ( void ) new QLabel( i18n( "Free space in directory:" ), freeSpaceBox, "FreeSpaceLabel" );
- m_labelFreeSpace = new QLabel( " ", freeSpaceBox, "m_labelFreeSpace" );
- m_labelFreeSpace->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
+ ( void ) new TQLabel( i18n( "Free space in directory:" ), freeSpaceBox, "FreeSpaceLabel" );
+ m_labelFreeSpace = new TQLabel( " ", freeSpaceBox, "m_labelFreeSpace" );
+ m_labelFreeSpace->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
- QHBox* necessarySizeBox = new QHBox( groupDirectory );
+ TQHBox* necessarySizeBox = new TQHBox( groupDirectory );
necessarySizeBox->setSpacing( KDialog::spacingHint() );
- ( void ) new QLabel( i18n( "Necessary storage size:" ), necessarySizeBox, "StorSize" );
- m_labelNecessarySize = new QLabel( " ", necessarySizeBox, "m_labelNecessarySize" );
- m_labelNecessarySize->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
+ ( void ) new TQLabel( i18n( "Necessary storage size:" ), necessarySizeBox, "StorSize" );
+ m_labelNecessarySize = new TQLabel( " ", necessarySizeBox, "m_labelNecessarySize" );
+ m_labelNecessarySize->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
groupDirectoryLayout->addWidget( rippathLabel, 0, 0 );
@@ -105,16 +105,16 @@ void K3bVideoCdRippingDialog::setupGui()
groupDirectoryLayout->addWidget( necessarySizeBox, 2, 1 );
// ---------------------------------------------------- Options group ---
- QGroupBox* groupOptions = new QGroupBox( 4, Qt::Vertical, i18n( "Settings" ), frame );
+ TQGroupBox* groupOptions = new TQGroupBox( 4, Qt::Vertical, i18n( "Settings" ), frame );
- m_ignoreExt = new QCheckBox( i18n( "Ignore /EXT/PSD_X.VCD" ), groupOptions );
+ m_ignoreExt = new TQCheckBox( i18n( "Ignore /EXT/PSD_X.VCD" ), groupOptions );
- m_sector2336 = new QCheckBox( i18n( "Use 2336 byte sector mode for image file" ), groupOptions );
+ m_sector2336 = new TQCheckBox( i18n( "Use 2336 byte sector mode for image file" ), groupOptions );
// Only available for image file ripping
m_sector2336->setEnabled( false );
m_sector2336->setChecked( false );
- m_extractXML = new QCheckBox( i18n( "Extract XML structure" ), groupOptions );
+ m_extractXML = new TQCheckBox( i18n( "Extract XML structure" ), groupOptions );
MainLayout->addWidget( groupDirectory, 0, 0 );
@@ -124,7 +124,7 @@ void K3bVideoCdRippingDialog::setupGui()
setStartButtonText( i18n( "Start Ripping" ), i18n( "Starts extracting the selected VideoCd tracks" ) );
// ----------------------------------------------------------------------------------
- connect( m_editDirectory, SIGNAL(textChanged(const QString&)), this, SLOT(slotUpdateFreeSpace()) );
+ connect( m_editDirectory, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateFreeSpace()) );
m_labelNecessarySize ->setText( KIO::convertSize( m_videooptions ->getVideoCdSize() ) );
}
@@ -132,19 +132,19 @@ void K3bVideoCdRippingDialog::setupGui()
void K3bVideoCdRippingDialog::setupContextHelp()
{
- QToolTip::add( m_labelFreeSpace, i18n("Free space on destination directory: %1").arg( m_editDirectory ->url() ) );
+ TQToolTip::add( m_labelFreeSpace, i18n("Free space on destination directory: %1").tqarg( m_editDirectory ->url() ) );
- QToolTip::add( m_labelNecessarySize, i18n("Necessary space for extracted files") );
+ TQToolTip::add( m_labelNecessarySize, i18n("Necessary space for extracted files") );
- QToolTip::add( m_ignoreExt, i18n("Ignore extended PSD") );
- QWhatsThis::add( m_ignoreExt, i18n("<p>Ignore extended PSD (located in the ISO-9660 filesystem under `/EXT/PSD_X.VCD') and use the <em>standard</em> PSD.</p>") );
+ TQToolTip::add( m_ignoreExt, i18n("Ignore extended PSD") );
+ TQWhatsThis::add( m_ignoreExt, i18n("<p>Ignore extended PSD (located in the ISO-9660 filesystem under `/EXT/PSD_X.VCD') and use the <em>standard</em> PSD.</p>") );
- QToolTip::add( m_sector2336, i18n("Assume a 2336-byte sector mode") );
- QWhatsThis::add( m_sector2336, i18n("<p>This option only makes sense if you are reading from a BIN CD disk image. This indicates to `vcdxrip' to assume a 2336-byte sector mode for image file.</p>"
+ TQToolTip::add( m_sector2336, i18n("Assume a 2336-byte sector mode") );
+ TQWhatsThis::add( m_sector2336, i18n("<p>This option only makes sense if you are reading from a BIN CD disk image. This indicates to `vcdxrip' to assume a 2336-byte sector mode for image file.</p>"
"<b>Note: This option is slated to disappear.</b>") );
- QToolTip::add( m_extractXML, i18n("Create XML description file.") );
- QWhatsThis::add( m_extractXML, i18n("<p>This option creates an XML description file with all video CD information.</p>"
+ TQToolTip::add( m_extractXML, i18n("Create XML description file.") );
+ TQWhatsThis::add( m_extractXML, i18n("<p>This option creates an XML description file with all video CD information.</p>"
"<p>This file will always contain all of the information.</p>"
"<p>Example: If you only extract sequences, the description file will also hold the information for files and segments.</p>"
"<p>The filename is the same as the video CD name, with a .xml extension. The default is VIDEOCD.xml.</p>") );
@@ -153,24 +153,24 @@ void K3bVideoCdRippingDialog::setupContextHelp()
void K3bVideoCdRippingDialog::slotStartClicked()
{
- QStringList filesExists;
- QDir d;
+ TQStringList filesExists;
+ TQDir d;
d.setPath( m_editDirectory ->url() );
if( !d.exists() ) {
- if( KMessageBox::warningYesNo( this, i18n("Image folder '%1' does not exist. Do you want K3b to create it?").arg( m_editDirectory->url() ) )
+ if( KMessageBox::warningYesNo( this, i18n("Image folder '%1' does not exist. Do you want K3b to create it?").tqarg( m_editDirectory->url() ) )
== KMessageBox::Yes ) {
if( !KStandardDirs::makeDir( m_editDirectory->url() ) ) {
- KMessageBox::error( this, i18n("Failed to create folder '%1'.").arg( m_editDirectory->url() ) );
+ KMessageBox::error( this, i18n("Failed to create folder '%1'.").tqarg( m_editDirectory->url() ) );
return;
}
}
}
- const QFileInfoList* list = d.entryInfoList();
- QFileInfoListIterator it( *list );
- QFileInfo* fi;
+ const TQFileInfoList* list = d.entryInfoList();
+ TQFileInfoListIterator it( *list );
+ TQFileInfo* fi;
while ( ( fi = it.current() ) != 0 ) {
if ( fi ->fileName() != "." && fi ->fileName() != ".." )
- filesExists.append( QString( "%1 (%2)" ).arg( QFile::encodeName( fi ->fileName() ) ).arg( KIO::convertSize( fi ->size() ) ) );
+ filesExists.append( TQString( "%1 (%2)" ).tqarg( TQFile::encodeName( fi ->fileName() ).data() ).tqarg( KIO::convertSize( fi ->size() ) ) );
++it;
}
@@ -197,7 +197,7 @@ void K3bVideoCdRippingDialog::slotStartClicked()
close();
}
-void K3bVideoCdRippingDialog::slotFreeSpace(const QString&,
+void K3bVideoCdRippingDialog::slotFreeSpace(const TQString&,
unsigned long,
unsigned long,
unsigned long kbAvail)
@@ -211,16 +211,16 @@ void K3bVideoCdRippingDialog::slotFreeSpace(const QString&,
else
m_labelNecessarySize->setPaletteForegroundColor( m_labelFreeSpace->paletteForegroundColor() );
- QTimer::singleShot( 1000, this, SLOT(slotUpdateFreeSpace()) );
+ TQTimer::singleShot( 1000, this, TQT_SLOT(slotUpdateFreeSpace()) );
}
void K3bVideoCdRippingDialog::slotUpdateFreeSpace()
{
- QString path = m_editDirectory->url();
+ TQString path = m_editDirectory->url();
- if( !QFile::exists( path ) )
- path.truncate( path.findRev('/') );
+ if( !TQFile::exists( path ) )
+ path.truncate( path.tqfindRev('/') );
unsigned long size, avail;
if( K3b::kbFreeOnFs( path, size, avail ) )
@@ -231,7 +231,7 @@ void K3bVideoCdRippingDialog::slotUpdateFreeSpace()
void K3bVideoCdRippingDialog::loadK3bDefaults()
{
- m_editDirectory->setURL( QDir::homeDirPath() );
+ m_editDirectory->setURL( TQDir::homeDirPath() );
m_ignoreExt ->setChecked( false );
m_sector2336 ->setChecked( false );
m_extractXML ->setChecked( false );
@@ -241,7 +241,7 @@ void K3bVideoCdRippingDialog::loadK3bDefaults()
void K3bVideoCdRippingDialog::loadUserDefaults( KConfigBase* c )
{
- m_editDirectory ->setURL( c->readPathEntry( "last ripping directory", QDir::homeDirPath() ) );
+ m_editDirectory ->setURL( c->readPathEntry( "last ripping directory", TQDir::homeDirPath() ) );
m_ignoreExt ->setChecked( c->readBoolEntry( "ignore ext", false ) );
m_sector2336 ->setChecked( c->readBoolEntry( "sector 2336", false ) );
m_extractXML ->setChecked( c->readBoolEntry( "extract xml", false ) );
diff --git a/src/rip/k3bvideocdrippingdialog.h b/src/rip/k3bvideocdrippingdialog.h
index 98d16f6..6b7e565 100644
--- a/src/rip/k3bvideocdrippingdialog.h
+++ b/src/rip/k3bvideocdrippingdialog.h
@@ -17,27 +17,28 @@
#ifndef _K3B_VIDEOCD_RIPPING_DIALOG_H_
#define _K3B_VIDEOCD_RIPPING_DIALOG_H_
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <k3binteractiondialog.h>
#include <k3bdiskinfo.h>
#include "k3bvideocdrippingoptions.h"
class KListView;
-class QCheckBox;
-class QLabel;
-class QSpinBox;
-class QComboBox;
-class QToolButton;
+class TQCheckBox;
+class TQLabel;
+class TQSpinBox;
+class TQComboBox;
+class TQToolButton;
class KURLRequester;
class K3bTempDirSelectionWidget;
class K3bVideoCdRippingDialog : public K3bInteractionDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bVideoCdRippingDialog( K3bVideoCdRippingOptions* options, QWidget* parent = 0, const char* name = 0 );
+ K3bVideoCdRippingDialog( K3bVideoCdRippingOptions* options, TQWidget* tqparent = 0, const char* name = 0 );
~K3bVideoCdRippingDialog();
private:
@@ -52,11 +53,11 @@ class K3bVideoCdRippingDialog : public K3bInteractionDialog
KURLRequester* m_editDirectory;
- QLabel* m_labelFreeSpace;
- QLabel* m_labelNecessarySize;
- QCheckBox* m_ignoreExt;
- QCheckBox* m_sector2336;
- QCheckBox* m_extractXML;
+ TQLabel* m_labelFreeSpace;
+ TQLabel* m_labelNecessarySize;
+ TQCheckBox* m_ignoreExt;
+ TQCheckBox* m_sector2336;
+ TQCheckBox* m_extractXML;
K3bVideoCdRippingOptions* m_videooptions;
@@ -66,7 +67,7 @@ class K3bVideoCdRippingDialog : public K3bInteractionDialog
void slotStartClicked();
void slotUpdateFreeSpace();
- void slotFreeSpace(const QString&, unsigned long, unsigned long, unsigned long);
+ void slotFreeSpace(const TQString&, unsigned long, unsigned long, unsigned long);
};
diff --git a/src/rip/k3bvideocdrippingoptions.h b/src/rip/k3bvideocdrippingoptions.h
index bd8aea9..7ccdde2 100644
--- a/src/rip/k3bvideocdrippingoptions.h
+++ b/src/rip/k3bvideocdrippingoptions.h
@@ -16,7 +16,7 @@
#ifndef _K3B_VIDEOCD_OPTIONS_H_
#define _K3B_VIDEOCD_OPTIONS_H_
-#include <qstring.h>
+#include <tqstring.h>
class K3bVideoCdRippingOptions
{
@@ -35,9 +35,9 @@ class K3bVideoCdRippingOptions
{}
void setVideoCdSize( unsigned long size ) { m_videocdsize = size;}
- void setVideoCdSource( const QString& source ) { m_videocdsource = source;}
- void setVideoCdDestination( const QString& destination ) { m_videocddestination = destination;}
- void setVideoCdDescription( const QString& description ) { m_videocddescription = description;}
+ void setVideoCdSource( const TQString& source ) { m_videocdsource = source;}
+ void setVideoCdDestination( const TQString& destination ) { m_videocddestination = destination;}
+ void setVideoCdDescription( const TQString& description ) { m_videocddescription = description;}
void setVideoCdRipFiles( bool ripfiles ) { m_videocdripfiles = ripfiles;}
void setVideoCdRipSegments( bool ripsegments ) { m_videocdripsegments = ripsegments;}
void setVideoCdRipSequences( bool ripsequences ) { m_videocdripsequences = ripsequences;}
@@ -46,9 +46,9 @@ class K3bVideoCdRippingOptions
void setVideoCdExtractXml( bool extractxml ) { m_extractXML = extractxml;}
unsigned long getVideoCdSize( ) { return m_videocdsize;}
- QString getVideoCdSource( ) { return m_videocdsource;}
- QString getVideoCdDestination( ) { return m_videocddestination;}
- QString getVideoCdDescription( ) { return m_videocddescription;}
+ TQString getVideoCdSource( ) { return m_videocdsource;}
+ TQString getVideoCdDestination( ) { return m_videocddestination;}
+ TQString getVideoCdDescription( ) { return m_videocddescription;}
bool getVideoCdRipFiles( ) { return m_videocdripfiles;}
bool getVideoCdRipSegments( ) { return m_videocdripsegments;}
bool getVideoCdRipSequences( ) { return m_videocdripsequences;}
@@ -59,9 +59,9 @@ class K3bVideoCdRippingOptions
private:
unsigned long m_videocdsize;
- QString m_videocdsource;
- QString m_videocddestination;
- QString m_videocddescription;
+ TQString m_videocdsource;
+ TQString m_videocddestination;
+ TQString m_videocddescription;
bool m_videocdripfiles;
bool m_videocdripsegments;
diff --git a/src/rip/k3bvideocdview.cpp b/src/rip/k3bvideocdview.cpp
index c0f5ae2..bc47c62 100644
--- a/src/rip/k3bvideocdview.cpp
+++ b/src/rip/k3bvideocdview.cpp
@@ -25,13 +25,13 @@
#include <kstdaction.h>
// qt includes
-#include <qfont.h>
-#include <qframe.h>
-#include <qheader.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qcursor.h>
-#include <qapplication.h>
+#include <tqfont.h>
+#include <tqframe.h>
+#include <tqheader.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqcursor.h>
+#include <tqapplication.h>
// k3b includes
#include "k3bvideocdview.h"
@@ -46,29 +46,29 @@
#include <k3btoolbox.h>
-class K3bVideoCdView::VideoTrackViewItem : public QListViewItem
+class K3bVideoCdView::VideoTrackViewItem : public TQListViewItem
{
public:
- VideoTrackViewItem( QListViewItem* parent, QListViewItem* after )
- : QListViewItem( parent, after )
+ VideoTrackViewItem( TQListViewItem* tqparent, TQListViewItem* after )
+ : TQListViewItem( tqparent, after )
{
setSelectable( false );
}
- VideoTrackViewItem( QListView* parent, QListViewItem* after )
- : QListViewItem( parent, after )
+ VideoTrackViewItem( TQListView* tqparent, TQListViewItem* after )
+ : TQListViewItem( tqparent, after )
{
setSelectable( false );
}
- VideoTrackViewItem( QListViewItem* parent,
- const QString& name,
- const QString& id,
+ VideoTrackViewItem( TQListViewItem* tqparent,
+ const TQString& name,
+ const TQString& id,
int _trackNumber,
const K3b::Msf& length )
- : QListViewItem( parent )
+ : TQListViewItem( tqparent )
{
- setText( 0, QString( "%1. %2" ).arg( _trackNumber ).arg( id ) );
+ setText( 0, TQString( "%1. %2" ).tqarg( _trackNumber ).tqarg( id ) );
setText( 1, name );
if ( length > 0 ) {
setText( 2, length.toString() );
@@ -83,42 +83,42 @@ class K3bVideoCdView::VideoTrackViewItem : public QListViewItem
void updateData( const K3bVideoCdInfoResultEntry& resultEntry )
{
- setText( 0, QString( "%1. %2" ).arg( trackNumber ).arg( resultEntry.id ) );
+ setText( 0, TQString( "%1. %2" ).tqarg( trackNumber ).tqarg( resultEntry.id ) );
setText( 1, resultEntry.name );
}
};
-class K3bVideoCdView::VideoTrackViewCheckItem : public QCheckListItem
+class K3bVideoCdView::VideoTrackViewCheckItem : public TQCheckListItem
{
public:
- VideoTrackViewCheckItem( QListViewItem* parent,
- const QString& desc )
- : QCheckListItem( parent,
- QString::null,
- QCheckListItem::CheckBox )
+ VideoTrackViewCheckItem( TQListViewItem* tqparent,
+ const TQString& desc )
+ : TQCheckListItem( tqparent,
+ TQString(),
+ TQCheckListItem::CheckBox )
{
setText( 0, desc );
setOn( true );
}
- VideoTrackViewCheckItem( QListView* parent,
- const QString& desc )
- : QCheckListItem( parent,
- QString::null,
- QCheckListItem::CheckBox )
+ VideoTrackViewCheckItem( TQListView* tqparent,
+ const TQString& desc )
+ : TQCheckListItem( tqparent,
+ TQString(),
+ TQCheckListItem::CheckBox )
{
setText( 0, desc );
setOn( true );
}
- VideoTrackViewCheckItem( VideoTrackViewCheckItem* parent,
- const QString& desc )
- : QCheckListItem( parent,
- QString::null,
- QCheckListItem::CheckBox )
+ VideoTrackViewCheckItem( VideoTrackViewCheckItem* tqparent,
+ const TQString& desc )
+ : TQCheckListItem( tqparent,
+ TQString(),
+ TQCheckListItem::CheckBox )
{
setText( 0, desc );
@@ -136,24 +136,24 @@ class K3bVideoCdView::VideoTrackViewCheckItem : public QCheckListItem
};
-K3bVideoCdView::K3bVideoCdView( QWidget* parent, const char *name )
+K3bVideoCdView::K3bVideoCdView( TQWidget* tqparent, const char *name )
: K3bMediaContentsView( true,
K3bMedium::CONTENT_VIDEO_CD,
K3bDevice::MEDIA_CD_ALL,
K3bDevice::STATE_INCOMPLETE|K3bDevice::STATE_COMPLETE,
- parent, name )
+ tqparent, name )
{
- QGridLayout * mainGrid = new QGridLayout( mainWidget() );
+ TQGridLayout * mainGrid = new TQGridLayout( mainWidget() );
// toolbox
// ----------------------------------------------------------------------------------
- QHBoxLayout* toolBoxLayout = new QHBoxLayout( 0, 0, 0, "toolBoxLayout" );
+ TQHBoxLayout* toolBoxLayout = new TQHBoxLayout( 0, 0, 0, "toolBoxLayout" );
m_toolBox = new K3bToolBox( mainWidget() );
toolBoxLayout->addWidget( m_toolBox );
- QSpacerItem* spacer = new QSpacerItem( 10, 10, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ TQSpacerItem* spacer = new TQSpacerItem( 10, 10, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
toolBoxLayout->addItem( spacer );
- m_labelLength = new QLabel( mainWidget() );
- m_labelLength->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
+ m_labelLength = new TQLabel( mainWidget() );
+ m_labelLength->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
toolBoxLayout->addWidget( m_labelLength );
// the track view
@@ -161,7 +161,7 @@ K3bVideoCdView::K3bVideoCdView( QWidget* parent, const char *name )
m_trackView = new K3bListView( mainWidget() );
m_trackView->setFullWidth( true );
m_trackView->setAllColumnsShowFocus( true );
- m_trackView->setSelectionMode( QListView::Single );
+ m_trackView->setSelectionMode( TQListView::Single );
m_trackView->setDragEnabled( true );
m_trackView->addColumn( i18n( "Item Name" ) );
m_trackView->addColumn( i18n( "Extracted Name" ) );
@@ -173,14 +173,14 @@ K3bVideoCdView::K3bVideoCdView( QWidget* parent, const char *name )
m_trackView->setItemsRenameable( false );
m_trackView->setRootIsDecorated( true );
- connect( m_trackView, SIGNAL( contextMenu( KListView*, QListViewItem*, const QPoint& ) ),
- this, SLOT( slotContextMenu( KListView*, QListViewItem*, const QPoint& ) ) );
- connect( m_trackView, SIGNAL( selectionChanged( QListViewItem* ) ),
- this, SLOT( slotTrackSelectionChanged( QListViewItem* ) ) );
- connect( m_trackView, SIGNAL( clicked( QListViewItem* ) ),
- this, SLOT( slotStateChanged( QListViewItem* ) ) );
- connect( m_trackView, SIGNAL( spacePressed( QListViewItem* ) ),
- this, SLOT( slotStateChanged( QListViewItem* ) ) );
+ connect( m_trackView, TQT_SIGNAL( contextMenu( KListView*, TQListViewItem*, const TQPoint& ) ),
+ this, TQT_SLOT( slotContextMenu( KListView*, TQListViewItem*, const TQPoint& ) ) );
+ connect( m_trackView, TQT_SIGNAL( selectionChanged( TQListViewItem* ) ),
+ this, TQT_SLOT( slotTrackSelectionChanged( TQListViewItem* ) ) );
+ connect( m_trackView, TQT_SIGNAL( clicked( TQListViewItem* ) ),
+ this, TQT_SLOT( slotStateChanged( TQListViewItem* ) ) );
+ connect( m_trackView, TQT_SIGNAL( spacePressed( TQListViewItem* ) ),
+ this, TQT_SLOT( slotStateChanged( TQListViewItem* ) ) );
mainGrid->addLayout( toolBoxLayout, 0, 0 );
@@ -211,7 +211,7 @@ void K3bVideoCdView::reloadMedium()
m_trackView->setEnabled( false );
m_toolBox->setEnabled( false );
- QApplication::setOverrideCursor( QCursor(Qt::WaitCursor) );
+ TQApplication::setOverrideCursor( TQCursor(TQt::WaitCursor) );
m_contentList.append( new VideoTrackViewCheckItem( m_trackView, i18n("Video CD MPEG tracks") ) );
m_contentList.append( new VideoTrackViewCheckItem( m_trackView, i18n("Video CD DATA track" ) ) );
@@ -232,7 +232,7 @@ void K3bVideoCdView::reloadMedium()
K3b::Msf length( ( *it ).length() );
sequenceSize += length;
m_videocdmpegsize += length.mode2Form2Bytes();
- ( void ) new VideoTrackViewItem( ( VideoTrackViewCheckItem* ) m_contentList[ 0 ], i18n( "Sequence-%1" ).arg( index ), "", index, length );
+ ( void ) new VideoTrackViewItem( ( VideoTrackViewCheckItem* ) m_contentList[ 0 ], i18n( "Sequence-%1" ).tqarg( index ), "", index, length );
} else {
K3b::Msf length( ( *it ).length() );
m_videocddatasize += length.mode2Form1Bytes();
@@ -248,11 +248,11 @@ void K3bVideoCdView::reloadMedium()
m_videooptions ->setVideoCdSource( device()->devicename() );
- m_videocdinfo = new K3bVideoCdInfo( this );
+ m_videocdinfo = new K3bVideoCdInfo( TQT_TQOBJECT(this) );
m_videocdinfo->info( device()->devicename() );
- connect( m_videocdinfo, SIGNAL( infoFinished( bool ) ),
- this, SLOT( slotVideoCdInfoFinished( bool ) ) );
+ connect( m_videocdinfo, TQT_SIGNAL( infoFinished( bool ) ),
+ this, TQT_SLOT( slotVideoCdInfoFinished( bool ) ) );
}
@@ -265,7 +265,7 @@ void K3bVideoCdView::slotVideoCdInfoFinished( bool success )
m_trackView->setEnabled( true );
m_toolBox->setEnabled( true );
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
}
@@ -286,12 +286,12 @@ void K3bVideoCdView::updateDisplay()
if ( check_item->key( 0, false ).compare( i18n( "Files" ) ) == 0 ) {
if ( domTree.setContent( m_videocdinfoResult.xmlData ) ) {
- QDomElement root = domTree.documentElement();
- QDomNode node;
+ TQDomElement root = domTree.documentElement();
+ TQDomNode node;
node = root.firstChild();
while ( !node.isNull() ) {
if ( node.isElement() && node.nodeName() == "filesystem" ) {
- QDomElement body = node.toElement();
+ TQDomElement body = node.toElement();
buildTree( check_item, body );
break;
}
@@ -307,14 +307,14 @@ void K3bVideoCdView::updateDisplay()
}
if ( !m_videocdinfoResult.volumeId.isEmpty() ) {
- QString description = m_videocdinfoResult.volumeId + " (" + m_videocdinfoResult.type + " " + m_videocdinfoResult.version + ")" ;
+ TQString description = m_videocdinfoResult.volumeId + " (" + m_videocdinfoResult.type + " " + m_videocdinfoResult.version + ")" ;
setTitle( description );
m_videooptions ->setVideoCdDescription( description );
}
else
setTitle( i18n( "Video CD" ) );
- m_labelLength->setText( i18n( "1 track (%1)", "%n tracks (%1)", m_toc.count() ).arg( K3b::Msf( m_toc.length() ).toString() ) );
+ m_labelLength->setText( i18n( "1 track (%1)", "%n tracks (%1)", m_toc.count() ).tqarg( K3b::Msf( m_toc.length() ).toString() ) );
}
@@ -322,20 +322,20 @@ void K3bVideoCdView::initActions()
{
m_actionCollection = new KActionCollection( this );
- KAction* actionSelectAll = KStdAction::selectAll( this, SLOT( slotSelectAll() ),
+ KAction* actionSelectAll = KStdAction::selectAll( TQT_TQOBJECT(this), TQT_SLOT( slotSelectAll() ),
m_actionCollection, "select_all" );
- KAction* actionDeselectAll = KStdAction::deselect( this, SLOT( slotDeselectAll() ),
+ KAction* actionDeselectAll = KStdAction::deselect( TQT_TQOBJECT(this), TQT_SLOT( slotDeselectAll() ),
m_actionCollection, "deselect_all" );
actionDeselectAll->setText( i18n( "Dese&lect All" ) );
- KAction* actionSelect = new KAction( i18n( "Select Track" ), 0, 0, this,
- SLOT( slotSelect() ), actionCollection(),
+ KAction* actionSelect = new KAction( i18n( "Select Track" ), 0, 0, TQT_TQOBJECT(this),
+ TQT_SLOT( slotSelect() ), actionCollection(),
"select_track" );
- KAction* actionDeselect = new KAction( i18n( "Deselect Track" ), 0, 0, this,
- SLOT( slotDeselect() ), actionCollection(),
+ KAction* actionDeselect = new KAction( i18n( "Deselect Track" ), 0, 0, TQT_TQOBJECT(this),
+ TQT_SLOT( slotDeselect() ), actionCollection(),
"deselect_track" );
- KAction* actionStartRip = new KAction( i18n( "Start Ripping" ), "run", 0, this,
- SLOT( startRip() ), actionCollection(), "start_rip" );
+ KAction* actionStartRip = new KAction( i18n( "Start Ripping" ), "run", 0, TQT_TQOBJECT(this),
+ TQT_SLOT( startRip() ), actionCollection(), "start_rip" );
// TODO: set the actions tooltips and whatsthis infos
@@ -354,25 +354,25 @@ void K3bVideoCdView::initActions()
}
-void K3bVideoCdView::slotContextMenu( KListView*, QListViewItem*, const QPoint& p )
+void K3bVideoCdView::slotContextMenu( KListView*, TQListViewItem*, const TQPoint& p )
{
m_popupMenu->popup( p );
}
-void K3bVideoCdView::slotTrackSelectionChanged( QListViewItem* item )
+void K3bVideoCdView::slotTrackSelectionChanged( TQListViewItem* item )
{
actionCollection() ->action( "select_track" ) ->setEnabled( item != 0 );
actionCollection() ->action( "deselect_track" ) ->setEnabled( item != 0 );
}
-void K3bVideoCdView::slotStateChanged( QListViewItem* item )
+void K3bVideoCdView::slotStateChanged( TQListViewItem* item )
{
/* > QT 3.1
if ( !item == 0 && item ->isSelectable() ) {
- if ( ( ( VideoTrackViewCheckItem* ) item) ->state() == QCheckListItem::On)
+ if ( ( ( VideoTrackViewCheckItem* ) item) ->state() == TQCheckListItem::On)
slotSelect();
- else if ( ( ( VideoTrackViewCheckItem* ) item) ->state() == QCheckListItem::Off)
+ else if ( ( ( VideoTrackViewCheckItem* ) item) ->state() == TQCheckListItem::Off)
slotDeselect();
}
*/
@@ -388,7 +388,7 @@ void K3bVideoCdView::startRip()
{
int selectedItems = 0;
- for ( QListViewItemIterator it( m_trackView ); it.current(); ++it ) {
+ for ( TQListViewItemIterator it( m_trackView ); it.current(); ++it ) {
if ( it.current() ->isSelectable() ) {
if ( ( ( ( VideoTrackViewCheckItem* ) it.current()) ->key( 0, false ).compare( i18n("Video CD MPEG tracks" ) ) == 0 ) && ( ( VideoTrackViewCheckItem* ) it.current() ) ->isOn() ) {
m_videooptions ->setVideoCdRipSequences( true );
@@ -416,7 +416,7 @@ void K3bVideoCdView::startRip()
if ( m_videooptions ->getVideoCdRipSequences() )
videocdsize += m_videocdmpegsize;
- kdDebug() << QString("(K3bVideoCdView::startRip()) m_videooptions ->setVideoCdSize( %1)").arg( videocdsize ) << endl;
+ kdDebug() << TQString("(K3bVideoCdView::startRip()) m_videooptions ->setVideoCdSize( %1)").tqarg( videocdsize ) << endl;
m_videooptions ->setVideoCdSize( videocdsize );
K3bVideoCdRippingDialog rip( m_videooptions, this );
rip.exec();
@@ -425,23 +425,23 @@ void K3bVideoCdView::startRip()
void K3bVideoCdView::slotSelectAll()
{
- for ( QListViewItemIterator it( m_trackView ); it.current(); ++it )
+ for ( TQListViewItemIterator it( m_trackView ); it.current(); ++it )
if ( it.current() ->isSelectable() )
( ( VideoTrackViewCheckItem* ) it.current() ) ->setOn( true );
}
void K3bVideoCdView::slotDeselectAll()
{
- for ( QListViewItemIterator it( m_trackView ); it.current(); ++it )
+ for ( TQListViewItemIterator it( m_trackView ); it.current(); ++it )
if ( it.current() ->isSelectable() )
( ( VideoTrackViewCheckItem* ) it.current() ) ->setOn( false );
}
void K3bVideoCdView::slotSelect()
{
- if ( QListViewItem * sel = m_trackView->selectedItem() ) {
+ if ( TQListViewItem * sel = m_trackView->selectedItem() ) {
( ( VideoTrackViewCheckItem* ) sel) ->setOn( true );
- QListViewItem * item = sel ->firstChild();
+ TQListViewItem * item = sel ->firstChild();
while ( item ) {
if ( item ->isSelectable() )
( ( VideoTrackViewCheckItem* ) item) ->setOn( true );
@@ -453,9 +453,9 @@ void K3bVideoCdView::slotSelect()
void K3bVideoCdView::slotDeselect()
{
- if ( QListViewItem * sel = m_trackView->selectedItem() ) {
+ if ( TQListViewItem * sel = m_trackView->selectedItem() ) {
( ( VideoTrackViewCheckItem* ) sel) ->setOn( false );
- QListViewItem * item = sel ->firstChild();
+ TQListViewItem * item = sel ->firstChild();
while ( item ) {
if ( item ->isSelectable() )
( ( VideoTrackViewCheckItem* ) item) ->setOn( false );
@@ -470,19 +470,19 @@ void K3bVideoCdView::enableInteraction( bool b )
actionCollection()->action( "start_rip" )->setEnabled( b );
}
-void K3bVideoCdView::buildTree( QListViewItem *parentItem, const QDomElement &parentElement, const QString& pname )
+void K3bVideoCdView::buildTree( TQListViewItem *tqparentItem, const TQDomElement &tqparentElement, const TQString& pname )
{
VideoTrackViewItem * thisItem = 0;
- QDomNode node = parentElement.firstChild();
+ TQDomNode node = tqparentElement.firstChild();
while ( !node.isNull() ) {
if ( node.isElement() && node.nodeName() == "folder" || node.nodeName() == "file" ) {
- if ( parentItem == 0 )
+ if ( tqparentItem == 0 )
thisItem = new VideoTrackViewItem( m_trackView, thisItem );
else
- thisItem = new VideoTrackViewItem( parentItem, thisItem );
+ thisItem = new VideoTrackViewItem( tqparentItem, thisItem );
- QString txt = node.firstChild().toElement().text();
+ TQString txt = node.firstChild().toElement().text();
thisItem->setText( 0, txt);
if ( node.nodeName() == "folder" ) {
buildTree( thisItem, node.toElement(), pname + "_" + txt.lower() );
@@ -492,10 +492,10 @@ void K3bVideoCdView::buildTree( QListViewItem *parentItem, const QDomElement &pa
buildTree( thisItem, node.toElement(), pname );
}
} else if ( node.isElement() && node.nodeName() == "segment-item" || node.nodeName() == "sequence-item" ) {
- if ( parentItem == 0 )
+ if ( tqparentItem == 0 )
thisItem = new VideoTrackViewItem( m_trackView, thisItem );
else
- thisItem = new VideoTrackViewItem( parentItem, thisItem );
+ thisItem = new VideoTrackViewItem( tqparentItem, thisItem );
thisItem->setText( 0, node.toElement().attribute( "src" ) );
diff --git a/src/rip/k3bvideocdview.h b/src/rip/k3bvideocdview.h
index cb3e7a6..65b2f8a 100644
--- a/src/rip/k3bvideocdview.h
+++ b/src/rip/k3bvideocdview.h
@@ -17,7 +17,7 @@
#ifndef _K3B_VIDEOCDVIEW_H_
#define _K3B_VIDEOCDVIEW_H_
-#include <qdom.h>
+#include <tqdom.h>
#include <k3bmediacontentsview.h>
#include <k3bmedium.h>
@@ -28,8 +28,8 @@ class KActionCollection;
class KActionMenu;
class KListView;
-class QLabel;
-class QListViewItem;
+class TQLabel;
+class TQListViewItem;
class K3bListView;
class K3bToolBox;
@@ -46,9 +46,10 @@ namespace K3bDevice
class K3bVideoCdView : public K3bMediaContentsView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bVideoCdView( QWidget* parent = 0, const char * name = 0 );
+ K3bVideoCdView( TQWidget* tqparent = 0, const char * name = 0 );
~K3bVideoCdView();
KActionCollection* actionCollection() const
@@ -57,9 +58,9 @@ class K3bVideoCdView : public K3bMediaContentsView
}
private slots:
- void slotContextMenu( KListView*, QListViewItem*, const QPoint& );
- void slotTrackSelectionChanged( QListViewItem* );
- void slotStateChanged( QListViewItem* );
+ void slotContextMenu( KListView*, TQListViewItem*, const TQPoint& );
+ void slotTrackSelectionChanged( TQListViewItem* );
+ void slotStateChanged( TQListViewItem* );
void slotVideoCdInfoFinished( bool );
void startRip();
@@ -78,7 +79,7 @@ class K3bVideoCdView : public K3bMediaContentsView
void initActions();
void updateDisplay();
void enableInteraction( bool );
- void buildTree( QListViewItem *parentItem, const QDomElement &parentElement, const QString& pname = QString::null );
+ void buildTree( TQListViewItem *tqparentItem, const TQDomElement &tqparentElement, const TQString& pname = TQString() );
K3bDevice::Toc m_toc;
@@ -91,11 +92,11 @@ class K3bVideoCdView : public K3bMediaContentsView
K3bListView* m_trackView;
K3bToolBox* m_toolBox;
- QLabel* m_labelLength;
+ TQLabel* m_labelLength;
- QDomDocument domTree;
+ TQDomDocument domTree;
- QValueList<VideoTrackViewCheckItem *> m_contentList;
+ TQValueList<VideoTrackViewCheckItem *> m_contentList;
unsigned long m_videocddatasize;
unsigned long m_videocdmpegsize;
diff --git a/src/rip/videodvd/base_k3bvideodvdrippingwidget.ui b/src/rip/videodvd/base_k3bvideodvdrippingwidget.ui
index 72b03b4..5d2ffdd 100644
--- a/src/rip/videodvd/base_k3bvideodvdrippingwidget.ui
+++ b/src/rip/videodvd/base_k3bvideodvdrippingwidget.ui
@@ -1,11 +1,11 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>base_K3bVideoDVDRippingWidget</class>
<author>Seastian Trueg</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>Form1</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -20,7 +20,7 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel4</cstring>
</property>
@@ -39,11 +39,11 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QTabWidget">
+ <widget class="TQTabWidget">
<property name="name">
<cstring>tabWidget2</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -54,7 +54,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox" row="0" column="1">
+ <widget class="TQGroupBox" row="0" column="1">
<property name="name">
<cstring>groupBox6</cstring>
</property>
@@ -65,15 +65,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout9</cstring>
+ <cstring>tqlayout9</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
@@ -81,7 +81,7 @@
<string>Video Size:</string>
</property>
</widget>
- <widget class="QComboBox">
+ <widget class="TQComboBox">
<property name="name">
<cstring>m_comboVideoSize</cstring>
</property>
@@ -94,7 +94,7 @@
</sizepolicy>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>m_buttonCustomPictureSize</cstring>
</property>
@@ -104,15 +104,15 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout9</cstring>
+ <cstring>tqlayout9</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel2_3</cstring>
</property>
@@ -120,7 +120,7 @@
<string>Video Bitrate:</string>
</property>
</widget>
- <widget class="QSpinBox">
+ <widget class="TQSpinBox">
<property name="name">
<cstring>m_spinVideoBitrate</cstring>
</property>
@@ -149,7 +149,7 @@
</widget>
</vbox>
</widget>
- <widget class="QGroupBox" row="1" column="0">
+ <widget class="TQGroupBox" row="1" column="0">
<property name="name">
<cstring>groupBox1_2</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>textLabel1_2</cstring>
</property>
@@ -181,18 +181,18 @@
<cstring>m_editBaseDir</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="1">
+ <widget class="TQLabel" row="1" column="1">
<property name="name">
<cstring>m_labelFreeSpace</cstring>
</property>
<property name="text">
<string>-</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1_2_2</cstring>
</property>
@@ -200,20 +200,20 @@
<string>Space needed:</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="1">
+ <widget class="TQLabel" row="2" column="1">
<property name="name">
<cstring>m_labelNeededSpace</cstring>
</property>
<property name="text">
<string>-</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
</grid>
</widget>
- <widget class="QGroupBox" row="1" column="1">
+ <widget class="TQGroupBox" row="1" column="1">
<property name="name">
<cstring>groupBox4</cstring>
</property>
@@ -224,11 +224,11 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QWidgetStack">
+ <widget class="TQWidgetStack">
<property name="name">
<cstring>m_stackAudioQuality</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>m_stackPageAudioQualityMp3</cstring>
</property>
@@ -242,7 +242,7 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkAudioVBR</cstring>
</property>
@@ -250,15 +250,15 @@
<string>Variable &amp;Bitrate</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>m_labelAudioBitrate</cstring>
</property>
@@ -266,7 +266,7 @@
<string>Audio Bitrate:</string>
</property>
</widget>
- <widget class="QComboBox">
+ <widget class="TQComboBox">
<property name="name">
<cstring>m_comboAudioBitrate</cstring>
</property>
@@ -278,7 +278,7 @@
</widget>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>m_stackPageAudioQualityAC3Pt</cstring>
</property>
@@ -310,7 +310,7 @@
</widget>
</hbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>m_stackPageAudioQualityAC3</cstring>
</property>
@@ -324,15 +324,15 @@
<property name="margin">
<number>0</number>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout8</cstring>
+ <cstring>tqlayout8</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_3</cstring>
</property>
@@ -340,7 +340,7 @@
<string>Audio Bitrate:</string>
</property>
</widget>
- <widget class="QSpinBox">
+ <widget class="TQSpinBox">
<property name="name">
<cstring>m_spinAudioBitrate</cstring>
</property>
@@ -372,7 +372,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>0</height>
@@ -384,7 +384,7 @@
</widget>
</vbox>
</widget>
- <widget class="QGroupBox" row="0" column="0">
+ <widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@@ -395,15 +395,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout10</cstring>
+ <cstring>tqlayout10</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -421,15 +421,15 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout9</cstring>
+ <cstring>tqlayout9</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -451,7 +451,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>TabPage</cstring>
</property>
@@ -462,15 +462,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout14</cstring>
+ <cstring>tqlayout14</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_4</cstring>
</property>
@@ -478,7 +478,7 @@
<string>Ripped files pattern:</string>
</property>
</widget>
- <widget class="QComboBox">
+ <widget class="TQComboBox">
<property name="name">
<cstring>m_comboFilenamePattern</cstring>
</property>
@@ -509,19 +509,19 @@
<property name="text">
<string>See special strings</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout8</cstring>
+ <cstring>tqlayout8</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkBlankReplace</cstring>
</property>
@@ -560,7 +560,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>5</width>
<height>1</height>
@@ -569,7 +569,7 @@
</spacer>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -580,7 +580,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkTwoPassEncoding</cstring>
</property>
@@ -602,7 +602,7 @@
&lt;p&gt;2-pass encoding results in a doubled encoding time.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkAutoClipping</cstring>
</property>
@@ -621,7 +621,7 @@
&lt;p&gt;Although this method is very reliable there may be problems if the source material is exceptionally short or dark.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkAudioResampling</cstring>
</property>
@@ -642,7 +642,7 @@
&lt;p&gt;If this option is checked K3b will change the sampling rate of the audio stream to 44100 Hz.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>m_checkLowPriority</cstring>
</property>
@@ -663,7 +663,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>1</height>
@@ -706,7 +706,7 @@
<slot>setEnabled(bool)</slot>
</connection>
</connections>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klistview.h</includehint>
<includehint>kurlrequester.h</includehint>
diff --git a/src/rip/videodvd/k3bvideodvdrippingdialog.cpp b/src/rip/videodvd/k3bvideodvdrippingdialog.cpp
index ddb5ff2..57f6426 100644
--- a/src/rip/videodvd/k3bvideodvdrippingdialog.cpp
+++ b/src/rip/videodvd/k3bvideodvdrippingdialog.cpp
@@ -34,14 +34,14 @@
#include <kconfig.h>
#include <kmessagebox.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qspinbox.h>
-#include <qstyle.h>
-#include <qfontmetrics.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqspinbox.h>
+#include <tqstyle.h>
+#include <tqfontmetrics.h>
-static QString videoCodecId( K3bVideoDVDTitleTranscodingJob::VideoCodec codec )
+static TQString videoCodecId( K3bVideoDVDTitleTranscodingJob::VideoCodec codec )
{
switch( codec ) {
case K3bVideoDVDTitleTranscodingJob::VIDEO_CODEC_FFMPEG_MPEG4:
@@ -54,7 +54,7 @@ static QString videoCodecId( K3bVideoDVDTitleTranscodingJob::VideoCodec codec )
}
-static QString audioCodecId( K3bVideoDVDTitleTranscodingJob::AudioCodec codec )
+static TQString audioCodecId( K3bVideoDVDTitleTranscodingJob::AudioCodec codec )
{
switch( codec ) {
case K3bVideoDVDTitleTranscodingJob::AUDIO_CODEC_MP3:
@@ -69,7 +69,7 @@ static QString audioCodecId( K3bVideoDVDTitleTranscodingJob::AudioCodec codec )
}
-static K3bVideoDVDTitleTranscodingJob::VideoCodec videoCodecFromId( const QString& codec )
+static K3bVideoDVDTitleTranscodingJob::VideoCodec videoCodecFromId( const TQString& codec )
{
if( codec == "xvid" )
return K3bVideoDVDTitleTranscodingJob::VIDEO_CODEC_XVID;
@@ -78,7 +78,7 @@ static K3bVideoDVDTitleTranscodingJob::VideoCodec videoCodecFromId( const QStrin
}
-static K3bVideoDVDTitleTranscodingJob::AudioCodec audioCodecFromId( const QString& codec )
+static K3bVideoDVDTitleTranscodingJob::AudioCodec audioCodecFromId( const TQString& codec )
{
if( codec == "ac3_stereo" )
return K3bVideoDVDTitleTranscodingJob::AUDIO_CODEC_AC3_STEREO;
@@ -90,7 +90,7 @@ static K3bVideoDVDTitleTranscodingJob::AudioCodec audioCodecFromId( const QStrin
// resize according to aspect ratio
-static QSize resizeTitle( const K3bVideoDVD::VideoStream& title, const QSize& size )
+static TQSize resizeTitle( const K3bVideoDVD::VideoStream& title, const TQSize& size )
{
int w = size.width();
int h = size.height();
@@ -108,18 +108,18 @@ static QSize resizeTitle( const K3bVideoDVD::VideoStream& title, const QSize& si
h = w * rh / rw;
}
- return QSize(w,h);
+ return TQSize(w,h);
}
-class K3bVideoDVDRippingDialog::AudioStreamViewItem : public QCheckListItem
+class K3bVideoDVDRippingDialog::AudioStreamViewItem : public TQCheckListItem
{
public:
AudioStreamViewItem( K3bVideoDVDRippingDialog* dlg,
- QCheckListItem* parent, QListViewItem* after, const QString& text,
+ TQCheckListItem* tqparent, TQListViewItem* after, const TQString& text,
int audioStream )
- : QCheckListItem( parent, after, text, RadioButton ),
+ : TQCheckListItem( tqparent, after, text, RadioButton ),
m_audioStream( audioStream ),
m_dlg( dlg ) {
}
@@ -127,7 +127,7 @@ public:
private:
void stateChange( bool ) {
if( state() == On ) {
- m_dlg->m_titleRipInfos[static_cast<QCheckListItem*>(parent())].audioStream = m_audioStream;
+ m_dlg->m_titleRipInfos[static_cast<TQCheckListItem*>(tqparent())].audioStream = m_audioStream;
m_dlg->slotUpdateFilenames();
}
}
@@ -145,11 +145,11 @@ public:
K3bVideoDVDRippingDialog::K3bVideoDVDRippingDialog( const K3bVideoDVD::VideoDVD& dvd,
- const QValueList<int>& titles,
- QWidget* parent, const char* name )
- : K3bInteractionDialog( parent, name,
+ const TQValueList<int>& titles,
+ TQWidget* tqparent, const char* name )
+ : K3bInteractionDialog( tqparent, name,
i18n("Video DVD Ripping"),
- QString::null,
+ TQString(),
START_BUTTON|CANCEL_BUTTON,
START_BUTTON,
"VideoDVD Ripping" ), // config group
@@ -157,22 +157,22 @@ K3bVideoDVDRippingDialog::K3bVideoDVDRippingDialog( const K3bVideoDVD::VideoDVD&
{
d = new Private;
- QWidget* frame = mainWidget();
- QHBoxLayout* frameLayout = new QHBoxLayout( frame );
+ TQWidget* frame = mainWidget();
+ TQHBoxLayout* frameLayout = new TQHBoxLayout( frame );
frameLayout->setMargin( 0 );
frameLayout->setAutoAdd( true );
m_w = new K3bVideoDVDRippingWidget( frame );
- connect( m_w, SIGNAL(changed()),
- this, SLOT(slotUpdateFilesizes()) );
- connect( m_w, SIGNAL(changed()),
- this, SLOT(slotUpdateFilenames()) );
- connect( m_w, SIGNAL(changed()),
- this, SLOT(slotUpdateVideoSizes()) );
+ connect( m_w, TQT_SIGNAL(changed()),
+ this, TQT_SLOT(slotUpdateFilesizes()) );
+ connect( m_w, TQT_SIGNAL(changed()),
+ this, TQT_SLOT(slotUpdateFilenames()) );
+ connect( m_w, TQT_SIGNAL(changed()),
+ this, TQT_SLOT(slotUpdateVideoSizes()) );
setTitle( i18n("Video DVD Ripping"),
i18n("1 title from %1", "%n titles from %1", titles.count())
- .arg( k3bappcore->mediaCache()->medium(m_dvd.device()).beautifiedVolumeId() ) );
+ .tqarg( k3bappcore->mediaCache()->medium(m_dvd.device()).beautifiedVolumeId() ) );
// populate list map
populateTitleView( titles );
@@ -185,23 +185,23 @@ K3bVideoDVDRippingDialog::~K3bVideoDVDRippingDialog()
}
-void K3bVideoDVDRippingDialog::populateTitleView( const QValueList<int>& titles )
+void K3bVideoDVDRippingDialog::populateTitleView( const TQValueList<int>& titles )
{
m_w->m_titleView->clear();
m_titleRipInfos.clear();
- QCheckListItem* titleItem = 0;
- for( QValueList<int>::const_iterator it = titles.begin(); it != titles.end(); ++it ) {
- titleItem = new QCheckListItem( m_w->m_titleView,
+ TQCheckListItem* titleItem = 0;
+ for( TQValueList<int>::const_iterator it = titles.begin(); it != titles.end(); ++it ) {
+ titleItem = new TQCheckListItem( m_w->m_titleView,
titleItem,
i18n("Title %1 (%2)")
- .arg(*it)
- .arg(m_dvd[*it-1].playbackTime().toString()),
- QCheckListItem::RadioButtonController );
- titleItem->setText( 1, QString("%1x%2")
- .arg(m_dvd[*it-1].videoStream().realPictureWidth())
- .arg(m_dvd[*it-1].videoStream().realPictureHeight()) );
- titleItem->setText( 3, QString("%1 Title %2.avi").arg(m_dvd.volumeIdentifier()).arg(*it) );
+ .tqarg(*it)
+ .tqarg(m_dvd[*it-1].playbackTime().toString()),
+ TQCheckListItem::RadioButtonController );
+ titleItem->setText( 1, TQString("%1x%2")
+ .tqarg(m_dvd[*it-1].videoStream().realPictureWidth())
+ .tqarg(m_dvd[*it-1].videoStream().realPictureHeight()) );
+ titleItem->setText( 3, TQString("%1 Title %2.avi").tqarg(m_dvd.volumeIdentifier()).tqarg(*it) );
// now for the rip info
K3bVideoDVDRippingJob::TitleRipInfo ri( *it );
@@ -219,30 +219,30 @@ void K3bVideoDVDRippingDialog::populateTitleView( const QValueList<int>& titles
}
}
- QListViewItem* asI = 0;
+ TQListViewItem* asI = 0;
for( unsigned int i = 0; i < m_dvd[*it-1].numAudioStreams(); ++i ) {
- QString text = i18n("%1 %2Ch (%3%4)")
- .arg( K3bVideoDVD::audioFormatString( m_dvd[*it-1].audioStream(i).format() ) )
- .arg( m_dvd[*it-1].audioStream(i).channels() )
- .arg( m_dvd[*it-1].audioStream(i).langCode().isEmpty()
+ TQString text = i18n("%1 %2Ch (%3%4)")
+ .tqarg( K3bVideoDVD::audioFormatString( m_dvd[*it-1].audioStream(i).format() ) )
+ .tqarg( m_dvd[*it-1].audioStream(i).channels() )
+ .tqarg( m_dvd[*it-1].audioStream(i).langCode().isEmpty()
? i18n("unknown language")
: KGlobal::locale()->twoAlphaToLanguageName( m_dvd[*it-1].audioStream(i).langCode() ) )
- .arg( m_dvd[*it-1].audioStream(i).codeExtension() != K3bVideoDVD::AUDIO_CODE_EXT_UNSPECIFIED
- ? QString(" ") + K3bVideoDVD::audioCodeExtensionString( m_dvd[*it-1].audioStream(i).codeExtension() )
- : QString::null );
+ .tqarg( m_dvd[*it-1].audioStream(i).codeExtension() != K3bVideoDVD::AUDIO_CODE_EXT_UNSPECIFIED
+ ? TQString(" ") + K3bVideoDVD::audioCodeExtensionString( m_dvd[*it-1].audioStream(i).codeExtension() )
+ : TQString() );
if( m_dvd[*it-1].audioStream(i).format() == K3bVideoDVD::AUDIO_FORMAT_DTS ) {
- // width of the radio button from QCheckListItem::paintCell
- int buttonSize = style().pixelMetric( QStyle::PM_CheckListButtonSize, m_w->m_titleView ) + 4;
+ // width of the radio button from TQCheckListItem::paintCell
+ int buttonSize = style().tqpixelMetric( TQStyle::PM_CheckListButtonSize, m_w->m_titleView ) + 4;
int spaceWidth = fontMetrics().width( ' ' );
int numSpaces = buttonSize/spaceWidth;
- asI = new QListViewItem( titleItem, asI, QString().fill( ' ', numSpaces ) + text + " (" + i18n("not supported") + ")" );
+ asI = new TQListViewItem( titleItem, asI, TQString().fill( ' ', numSpaces ) + text + " (" + i18n("not supported") + ")" );
}
else {
asI = new AudioStreamViewItem( this, titleItem, asI, text, i );
if( ri.audioStream == (int)i )
- ((AudioStreamViewItem*)asI)->setState( QCheckListItem::On );
+ ((AudioStreamViewItem*)asI)->setState( TQCheckListItem::On );
}
}
@@ -255,14 +255,14 @@ void K3bVideoDVDRippingDialog::populateTitleView( const QValueList<int>& titles
void K3bVideoDVDRippingDialog::slotUpdateFilenames()
{
- QString baseDir = K3b::prepareDir( m_w->m_editBaseDir->url() );
+ TQString baseDir = K3b::prepareDir( m_w->m_editBaseDir->url() );
d->fsInfo.setPath( baseDir );
- for( QMap<QCheckListItem*, K3bVideoDVDRippingJob::TitleRipInfo>::iterator it = m_titleRipInfos.begin();
+ for( TQMap<TQCheckListItem*, K3bVideoDVDRippingJob::TitleRipInfo>::iterator it = m_titleRipInfos.begin();
it != m_titleRipInfos.end(); ++it ) {
- QString f = d->fsInfo.fixupPath( createFilename( it.data(), m_w->m_comboFilenamePattern->currentText() ) );
+ TQString f = d->fsInfo.fixupPath( createFilename( it.data(), m_w->m_comboFilenamePattern->currentText() ) );
if( m_w->m_checkBlankReplace->isChecked() )
- f.replace( QRegExp( "\\s" ), m_w->m_editBlankReplace->text() );
+ f.tqreplace( TQRegExp( "\\s" ), m_w->m_editBlankReplace->text() );
it.data().filename = baseDir + f;
it.key()->setText( 3, f );
}
@@ -275,7 +275,7 @@ void K3bVideoDVDRippingDialog::slotUpdateFilesizes()
KIO::filesize_t overallSize = 0ULL;
// update file sizes
- for( QMap<QCheckListItem*, K3bVideoDVDRippingJob::TitleRipInfo>::iterator it = m_titleRipInfos.begin();
+ for( TQMap<TQCheckListItem*, K3bVideoDVDRippingJob::TitleRipInfo>::iterator it = m_titleRipInfos.begin();
it != m_titleRipInfos.end(); ++it ) {
double sec = m_dvd[it.data().title-1].playbackTime().totalSeconds();
@@ -298,24 +298,24 @@ void K3bVideoDVDRippingDialog::slotUpdateFilesizes()
void K3bVideoDVDRippingDialog::slotUpdateVideoSizes()
{
- QSize size = m_w->selectedPictureSize();
- for( QMap<QCheckListItem*, K3bVideoDVDRippingJob::TitleRipInfo>::iterator it = m_titleRipInfos.begin();
+ TQSize size = m_w->selectedPictureSize();
+ for( TQMap<TQCheckListItem*, K3bVideoDVDRippingJob::TitleRipInfo>::iterator it = m_titleRipInfos.begin();
it != m_titleRipInfos.end(); ++it ) {
- QSize s( resizeTitle( m_dvd[it.data().title-1].videoStream(), size ) );
- it.key()->setText( 1, QString("%1x%2").arg(s.width()).arg(s.height()) );
+ TQSize s( resizeTitle( m_dvd[it.data().title-1].videoStream(), size ) );
+ it.key()->setText( 1, TQString("%1x%2").tqarg(s.width()).tqarg(s.height()) );
}
}
-void K3bVideoDVDRippingDialog::setBaseDir( const QString& path )
+void K3bVideoDVDRippingDialog::setBaseDir( const TQString& path )
{
m_w->m_editBaseDir->setURL( path );
}
-QString K3bVideoDVDRippingDialog::createFilename( const K3bVideoDVDRippingJob::TitleRipInfo& info, const QString& pattern ) const
+TQString K3bVideoDVDRippingDialog::createFilename( const K3bVideoDVDRippingJob::TitleRipInfo& info, const TQString& pattern ) const
{
- QString f;
+ TQString f;
const K3bVideoDVD::Title& title = m_dvd[info.title-1];
@@ -325,17 +325,17 @@ QString K3bVideoDVDRippingDialog::createFilename( const K3bVideoDVDRippingJob::T
//
if( pattern[i] == '%' ) {
++i; // skip the %
- QChar c = pattern[i];
+ TQChar c = pattern[i];
//
// first check if we have a long keyword instead of a one-char
//
if( pattern[i] == '{' ) {
- int j = pattern.find( '}', i );
+ int j = pattern.tqfind( '}', i );
if( j < 0 ) // no closing bracket -> no valid pattern
c = '*';
else {
- QString keyword = pattern.mid( i+1, j-i-1 );
+ TQString keyword = pattern.mid( i+1, j-i-1 );
if( keyword == "titlenumber" ||
keyword == "title_number" ||
keyword == "title" ) {
@@ -422,7 +422,7 @@ QString K3bVideoDVDRippingDialog::createFilename( const K3bVideoDVDRippingJob::T
switch( c ) {
case PATTERN_TITLE_NUMBER:
- f.append( QString::number(info.title).rightJustify( 2, '0' ) );
+ f.append( TQString::number(info.title).rightJustify( 2, '0' ) );
break;
case PATTERN_VOLUME_ID:
f.append( m_dvd.volumeIdentifier() );
@@ -455,13 +455,13 @@ QString K3bVideoDVDRippingDialog::createFilename( const K3bVideoDVDRippingJob::T
: 2 ) );
break;
case PATTERN_ORIG_VIDEO_SIZE:
- f.append( QString("%1x%2")
- .arg(title.videoStream().pictureWidth())
- .arg(title.videoStream().pictureHeight()) );
+ f.append( TQString("%1x%2")
+ .tqarg(title.videoStream().pictureWidth())
+ .tqarg(title.videoStream().pictureHeight()) );
break;
case PATTERN_VIDEO_SIZE: {
- QSize s( resizeTitle( m_dvd[info.title-1].videoStream(), m_w->selectedPictureSize() ) );
- f.append( QString("%1x%2").arg(s.width()).arg(s.height()) );
+ TQSize s( resizeTitle( m_dvd[info.title-1].videoStream(), m_w->selectedPictureSize() ) );
+ f.append( TQString("%1x%2").tqarg(s.width()).tqarg(s.height()) );
break;
}
case PATTERN_ASPECT_RATIO:
@@ -471,7 +471,7 @@ QString K3bVideoDVDRippingDialog::createFilename( const K3bVideoDVDRippingJob::T
f.append( "16:9" );
break;
case PATTERN_CURRENT_DATE:
- f.append( KGlobal::locale()->formatDate( QDate::currentDate() ) );
+ f.append( KGlobal::locale()->formatDate( TQDate::tqcurrentDate() ) );
break;
default:
f.append( pattern[i-1] );
@@ -557,7 +557,7 @@ void K3bVideoDVDRippingDialog::slotStartClicked()
// We can only use the AC3 pass-through mode for AC3 streams
//
if( m_w->selectedAudioCodec() == K3bVideoDVDTitleTranscodingJob::AUDIO_CODEC_AC3_PASSTHROUGH ) {
- for( QMap<QCheckListItem*, K3bVideoDVDRippingJob::TitleRipInfo>::iterator it = m_titleRipInfos.begin();
+ for( TQMap<TQCheckListItem*, K3bVideoDVDRippingJob::TitleRipInfo>::iterator it = m_titleRipInfos.begin();
it != m_titleRipInfos.end(); ++it ) {
if( m_dvd[it.data().title-1].numAudioStreams() > 0 &&
m_dvd[it.data().title-1].audioStream(it.data().audioStream).format() != K3bVideoDVD::AUDIO_FORMAT_AC3 ) {
@@ -571,10 +571,10 @@ void K3bVideoDVDRippingDialog::slotStartClicked()
}
// check if we need to overwrite some files...
- QStringList filesToOverwrite;
- for( QMap<QCheckListItem*, K3bVideoDVDRippingJob::TitleRipInfo>::iterator it = m_titleRipInfos.begin();
+ TQStringList filesToOverwrite;
+ for( TQMap<TQCheckListItem*, K3bVideoDVDRippingJob::TitleRipInfo>::iterator it = m_titleRipInfos.begin();
it != m_titleRipInfos.end(); ++it ) {
- if( QFile::exists( it.data().filename ) )
+ if( TQFile::exists( it.data().filename ) )
filesToOverwrite.append( it.data().filename );
}
@@ -586,10 +586,10 @@ void K3bVideoDVDRippingDialog::slotStartClicked()
return;
- QSize videoSize = m_w->selectedPictureSize();
+ TQSize videoSize = m_w->selectedPictureSize();
int i = 0;
- QValueVector<K3bVideoDVDRippingJob::TitleRipInfo> titles( m_titleRipInfos.count() );
- for( QMapConstIterator<QCheckListItem*, K3bVideoDVDRippingJob::TitleRipInfo> it = m_titleRipInfos.begin();
+ TQValueVector<K3bVideoDVDRippingJob::TitleRipInfo> titles( m_titleRipInfos.count() );
+ for( TQMapConstIterator<TQCheckListItem*, K3bVideoDVDRippingJob::TitleRipInfo> it = m_titleRipInfos.begin();
it != m_titleRipInfos.end(); ++it ) {
titles[i] = it.data();
titles[i].videoBitrate = 0; // use the global bitrate set below
@@ -611,7 +611,7 @@ void K3bVideoDVDRippingDialog::slotStartClicked()
}
// start the job
- K3bJobProgressDialog dlg( parentWidget() );
+ K3bJobProgressDialog dlg( tqparentWidget() );
K3bVideoDVDRippingJob* job = new K3bVideoDVDRippingJob( &dlg, &dlg );
job->setVideoDVD( m_dvd );
job->setTitles( titles );
diff --git a/src/rip/videodvd/k3bvideodvdrippingdialog.h b/src/rip/videodvd/k3bvideodvdrippingdialog.h
index 1acad53..bd8b7a0 100644
--- a/src/rip/videodvd/k3bvideodvdrippingdialog.h
+++ b/src/rip/videodvd/k3bvideodvdrippingdialog.h
@@ -20,24 +20,25 @@
#include <k3bvideodvd.h>
#include "k3bvideodvdrippingjob.h"
-#include <qvaluelist.h>
-#include <qmap.h>
+#include <tqvaluelist.h>
+#include <tqmap.h>
class K3bVideoDVDRippingWidget;
-class QCheckListItem;
+class TQCheckListItem;
class K3bVideoDVDRippingDialog : public K3bInteractionDialog
{
Q_OBJECT
+ TQ_OBJECT
public:
K3bVideoDVDRippingDialog( const K3bVideoDVD::VideoDVD& dvd,
- const QValueList<int>& titles,
- QWidget *parent = 0, const char *name = 0 );
+ const TQValueList<int>& titles,
+ TQWidget *tqparent = 0, const char *name = 0 );
~K3bVideoDVDRippingDialog();
- void setBaseDir( const QString& path );
+ void setBaseDir( const TQString& path );
enum FileNamingPattern {
PATTERN_TITLE_NUMBER = 't',
@@ -60,9 +61,9 @@ class K3bVideoDVDRippingDialog : public K3bInteractionDialog
void slotUpdateVideoSizes();
private:
- void populateTitleView( const QValueList<int>& titles );
+ void populateTitleView( const TQValueList<int>& titles );
- QString createFilename( const K3bVideoDVDRippingJob::TitleRipInfo& info, const QString& pattern ) const;
+ TQString createFilename( const K3bVideoDVDRippingJob::TitleRipInfo& info, const TQString& pattern ) const;
void loadK3bDefaults();
void loadUserDefaults( KConfigBase* );
@@ -71,7 +72,7 @@ class K3bVideoDVDRippingDialog : public K3bInteractionDialog
K3bVideoDVDRippingWidget* m_w;
K3bVideoDVD::VideoDVD m_dvd;
- QMap<QCheckListItem*, K3bVideoDVDRippingJob::TitleRipInfo> m_titleRipInfos;
+ TQMap<TQCheckListItem*, K3bVideoDVDRippingJob::TitleRipInfo> m_titleRipInfos;
class AudioStreamViewItem;
diff --git a/src/rip/videodvd/k3bvideodvdrippingjob.cpp b/src/rip/videodvd/k3bvideodvdrippingjob.cpp
index c10c127..1cc9e9e 100644
--- a/src/rip/videodvd/k3bvideodvdrippingjob.cpp
+++ b/src/rip/videodvd/k3bvideodvdrippingjob.cpp
@@ -38,7 +38,7 @@ K3bVideoDVDRippingJob::TitleRipInfo::TitleRipInfo()
K3bVideoDVDRippingJob::TitleRipInfo::TitleRipInfo( int _title,
int _audioStream,
- const QString& fn,
+ const TQString& fn,
int _width,
int _height,
int _videoBitrate,
@@ -76,24 +76,24 @@ public:
int failedTitles;
- QValueVector<double> titleProgressParts;
- QValueVector<double> titleClippingProgressParts;
+ TQValueVector<double> titleProgressParts;
+ TQValueVector<double> titleClippingProgressParts;
};
-K3bVideoDVDRippingJob::K3bVideoDVDRippingJob( K3bJobHandler* hdl, QObject* parent )
- : K3bJob( hdl, parent )
+K3bVideoDVDRippingJob::K3bVideoDVDRippingJob( K3bJobHandler* hdl, TQObject* tqparent )
+ : K3bJob( hdl, tqparent )
{
d = new Private();
m_transcodingJob = new K3bVideoDVDTitleTranscodingJob( this, this );
connectSubJob( m_transcodingJob,
- SLOT(slotTranscodingJobFinished(bool)),
- SIGNAL(newTask(const QString&)),
- SIGNAL(newSubTask(const QString&)),
- SLOT(slotTranscodingProgress(int)),
- SIGNAL(subPercent(int)),
+ TQT_SLOT(slotTranscodingJobFinished(bool)),
+ TQT_SIGNAL(newTask(const TQString&)),
+ TQT_SIGNAL(newSubTask(const TQString&)),
+ TQT_SLOT(slotTranscodingProgress(int)),
+ TQT_SIGNAL(subPercent(int)),
0,
0 );
m_detectClippingJob = 0;
@@ -106,17 +106,17 @@ K3bVideoDVDRippingJob::~K3bVideoDVDRippingJob()
}
-QString K3bVideoDVDRippingJob::jobDescription() const
+TQString K3bVideoDVDRippingJob::jobDescription() const
{
return i18n("Ripping Video DVD Titles");
}
-QString K3bVideoDVDRippingJob::jobDetails() const
+TQString K3bVideoDVDRippingJob::jobDetails() const
{
return i18n("Transcoding %n title to %1/%2", "Transcoding %n titles to %1/%2", m_titleRipInfos.count() )
- .arg( K3bVideoDVDTitleTranscodingJob::videoCodecString( m_transcodingJob->videoCodec() ) )
- .arg( K3bVideoDVDTitleTranscodingJob::audioCodecString( m_transcodingJob->audioCodec() ) );
+ .tqarg( K3bVideoDVDTitleTranscodingJob::videoCodecString( m_transcodingJob->videoCodec() ) )
+ .tqarg( K3bVideoDVDTitleTranscodingJob::audioCodecString( m_transcodingJob->audioCodec() ) );
}
@@ -143,10 +143,10 @@ void K3bVideoDVDRippingJob::slotTranscodingJobFinished( bool success )
}
else {
if( success )
- emit infoMessage( i18n("Successfully ripped title %1").arg(m_titleRipInfos[d->currentTitleInfoIndex].title), SUCCESS );
+ emit infoMessage( i18n("Successfully ripped title %1").tqarg(m_titleRipInfos[d->currentTitleInfoIndex].title), SUCCESS );
else {
d->failedTitles++;
- emit infoMessage( i18n("Failed to rip title %1").arg(m_titleRipInfos[d->currentTitleInfoIndex].title), ERROR );
+ emit infoMessage( i18n("Failed to rip title %1").tqarg(m_titleRipInfos[d->currentTitleInfoIndex].title), ERROR );
}
++d->currentTitleInfoIndex ;
@@ -176,11 +176,11 @@ void K3bVideoDVDRippingJob::slotDetectClippingJobFinished( bool success )
m_titleRipInfos[d->currentTitleInfoIndex].clipRight = 0;
if( success ) {
- emit infoMessage( i18n("Determined clipping values for title %1").arg(m_titleRipInfos[d->currentTitleInfoIndex].title), SUCCESS );
+ emit infoMessage( i18n("Determined clipping values for title %1").tqarg(m_titleRipInfos[d->currentTitleInfoIndex].title), SUCCESS );
emit infoMessage( i18n("Top: %1, Bottom: %2")
- .arg(m_detectClippingJob->clippingTop()).arg(m_detectClippingJob->clippingBottom()), INFO );
+ .tqarg(m_detectClippingJob->clippingTop()).tqarg(m_detectClippingJob->clippingBottom()), INFO );
emit infoMessage( i18n("Left: %1, Right: %2")
- .arg(m_detectClippingJob->clippingLeft()).arg(m_detectClippingJob->clippingRight()), INFO );
+ .tqarg(m_detectClippingJob->clippingLeft()).tqarg(m_detectClippingJob->clippingRight()), INFO );
// let's see if the clipping values make sense
if( m_detectClippingJob->clippingTop() + m_detectClippingJob->clippingBottom()
@@ -197,7 +197,7 @@ void K3bVideoDVDRippingJob::slotDetectClippingJobFinished( bool success )
}
}
else
- emit infoMessage( i18n("Failed to determine clipping values for title %1").arg(m_titleRipInfos[d->currentTitleInfoIndex].title), ERROR );
+ emit infoMessage( i18n("Failed to determine clipping values for title %1").tqarg(m_titleRipInfos[d->currentTitleInfoIndex].title), ERROR );
startTranscoding( d->currentTitleInfoIndex );
}
@@ -234,11 +234,11 @@ void K3bVideoDVDRippingJob::startDetectClipping( int ripInfoIndex )
if( !m_detectClippingJob ) {
m_detectClippingJob = new K3bVideoDVDTitleDetectClippingJob( this, this );
connectSubJob( m_detectClippingJob,
- SLOT(slotDetectClippingJobFinished(bool)),
- SIGNAL(newTask(const QString&)),
- SIGNAL(newSubTask(const QString&)),
- SLOT(slotDetectClippingProgress(int)),
- SIGNAL(subPercent(int)),
+ TQT_SLOT(slotDetectClippingJobFinished(bool)),
+ TQT_SIGNAL(newTask(const TQString&)),
+ TQT_SIGNAL(newSubTask(const TQString&)),
+ TQT_SLOT(slotDetectClippingProgress(int)),
+ TQT_SIGNAL(subPercent(int)),
0,
0 );
}
diff --git a/src/rip/videodvd/k3bvideodvdrippingjob.h b/src/rip/videodvd/k3bvideodvdrippingjob.h
index 7c9f4d2..93ec1b0 100644
--- a/src/rip/videodvd/k3bvideodvdrippingjob.h
+++ b/src/rip/videodvd/k3bvideodvdrippingjob.h
@@ -20,7 +20,7 @@
#include <k3bvideodvd.h>
#include <k3bvideodvdtitletranscodingjob.h>
-#include <qvaluevector.h>
+#include <tqvaluevector.h>
class K3bVideoDVDTitleDetectClippingJob;
@@ -32,9 +32,10 @@ class K3bVideoDVDTitleDetectClippingJob;
class K3bVideoDVDRippingJob : public K3bJob
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bVideoDVDRippingJob( K3bJobHandler* hdl, QObject* parent );
+ K3bVideoDVDRippingJob( K3bJobHandler* hdl, TQObject* tqparent );
~K3bVideoDVDRippingJob();
class TitleRipInfo {
@@ -42,7 +43,7 @@ class K3bVideoDVDRippingJob : public K3bJob
TitleRipInfo();
TitleRipInfo( int title,
int audioStream = 0,
- const QString& fn = QString::null,
+ const TQString& fn = TQString(),
int width = 0, // 0 -> no resize
int height = 0, // 0 -> no resize
int videoBitrate = 0, // 0 -> use default from job settings
@@ -52,7 +53,7 @@ class K3bVideoDVDRippingJob : public K3bJob
int clipRight = 0 );
int title;
int audioStream;
- QString filename;
+ TQString filename;
int width;
int height;
int videoBitrate;
@@ -62,15 +63,15 @@ class K3bVideoDVDRippingJob : public K3bJob
int clipRight;
};
- QString jobDescription() const;
- QString jobDetails() const;
+ TQString jobDescription() const;
+ TQString jobDetails() const;
public slots:
void start();
void cancel();
void setVideoDVD( const K3bVideoDVD::VideoDVD& dvd ) { m_dvd = dvd; }
- void setTitles( const QValueVector<TitleRipInfo>& titles ) { m_titleRipInfos = titles; }
+ void setTitles( const TQValueVector<TitleRipInfo>& titles ) { m_titleRipInfos = titles; }
void setVideoCodec( K3bVideoDVDTitleTranscodingJob::VideoCodec codec );
void setVideoBitrate( int bitrate );
@@ -94,7 +95,7 @@ class K3bVideoDVDRippingJob : public K3bJob
void initProgressInfo();
K3bVideoDVD::VideoDVD m_dvd;
- QValueVector<TitleRipInfo> m_titleRipInfos;
+ TQValueVector<TitleRipInfo> m_titleRipInfos;
K3bVideoDVDTitleTranscodingJob* m_transcodingJob;
K3bVideoDVDTitleDetectClippingJob* m_detectClippingJob;
diff --git a/src/rip/videodvd/k3bvideodvdrippingpreview.cpp b/src/rip/videodvd/k3bvideodvdrippingpreview.cpp
index 3ba7582..a08ba51 100644
--- a/src/rip/videodvd/k3bvideodvdrippingpreview.cpp
+++ b/src/rip/videodvd/k3bvideodvdrippingpreview.cpp
@@ -23,12 +23,12 @@
#include <ktempdir.h>
#include <kdebug.h>
-#include <qdir.h>
+#include <tqdir.h>
-K3bVideoDVDRippingPreview::K3bVideoDVDRippingPreview( QObject* parent )
- : QObject( parent ),
+K3bVideoDVDRippingPreview::K3bVideoDVDRippingPreview( TQObject* tqparent )
+ : TQObject( tqparent ),
m_tempDir( 0 ),
m_process( 0 )
{
@@ -60,7 +60,7 @@ void K3bVideoDVDRippingPreview::generatePreview( const K3bVideoDVD::VideoDVD& dv
// auto-select a chapter
// choose the center chapter, but not the first or last if possible
if( chapter == 0 )
- chapter = QMIN( QMAX( dvd[title-1].numChapters()/2, 2 ), QMAX( dvd[title-1].numChapters() - 1, 1 ) );
+ chapter = TQMIN( TQMAX( dvd[title-1].numChapters()/2, 2 ), TQMAX( dvd[title-1].numChapters() - 1, 1 ) );
// select a frame number
unsigned int frame = 30;
@@ -77,16 +77,16 @@ void K3bVideoDVDRippingPreview::generatePreview( const K3bVideoDVD::VideoDVD& dv
m_process = new KProcess();
*m_process << bin->path;
*m_process << "-i" << dvd.device()->blockDeviceName();
- *m_process << "-T" << QString("%1,%2").arg(title).arg(chapter);
+ *m_process << "-T" << TQString("%1,%2").tqarg(title).tqarg(chapter);
*m_process << "-x" << "dvd,null";
*m_process << "--dvd_access_delay" << "0";
*m_process << "-y" << "ppm,null";
- *m_process << "-c" << QString("%1-%2").arg( frame ).arg( frame+1 );
+ *m_process << "-c" << TQString("%1-%2").tqarg( frame ).tqarg( frame+1 );
*m_process << "-Z" << "x200";
*m_process << "-o" << m_tempDir->name();
- connect( m_process, SIGNAL(processExited(KProcess*)),
- this, SLOT(slotTranscodeFinished(KProcess*)) );
+ connect( m_process, TQT_SIGNAL(processExited(KProcess*)),
+ this, TQT_SLOT(slotTranscodeFinished(KProcess*)) );
if( !m_process->start( KProcess::NotifyOnExit, KProcess::AllOutput ) ) { // we use AllOutput to not pollute stdout
// something went wrong when starting the program
// it "should" be the executable
@@ -112,9 +112,9 @@ void K3bVideoDVDRippingPreview::cancel()
void K3bVideoDVDRippingPreview::slotTranscodeFinished( KProcess* )
{
// read the image
- QString filename = m_tempDir->name() + "000000.ppm";// + tempQDir->entryList( QDir::Files ).first();
+ TQString filename = m_tempDir->name() + "000000.ppm";// + tempTQDir->entryList( TQDir::Files ).first();
kdDebug() << "(K3bVideoDVDRippingPreview) reading from file " << filename << endl;
- m_preview = QImage( filename );
+ m_preview = TQImage( filename );
bool success = !m_preview.isNull() && !m_canceled;
// remove temp files
diff --git a/src/rip/videodvd/k3bvideodvdrippingpreview.h b/src/rip/videodvd/k3bvideodvdrippingpreview.h
index f5beb69..ab7b994 100644
--- a/src/rip/videodvd/k3bvideodvdrippingpreview.h
+++ b/src/rip/videodvd/k3bvideodvdrippingpreview.h
@@ -16,8 +16,8 @@
#ifndef _K3B_VIDEODVD_RIPPING_PREVIEW_H_
#define _K3B_VIDEODVD_RIPPING_PREVIEW_H_
-#include <qobject.h>
-#include <qimage.h>
+#include <tqobject.h>
+#include <tqimage.h>
#include <k3bvideodvd.h>
@@ -25,15 +25,16 @@
class KTempDir;
class KProcess;
-class K3bVideoDVDRippingPreview : public QObject
+class K3bVideoDVDRippingPreview : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bVideoDVDRippingPreview( QObject* parent = 0 );
+ K3bVideoDVDRippingPreview( TQObject* tqparent = 0 );
~K3bVideoDVDRippingPreview();
- const QImage& preview() const { return m_preview; }
+ const TQImage& preview() const { return m_preview; }
public slots:
/**
@@ -53,7 +54,7 @@ class K3bVideoDVDRippingPreview : public QObject
void slotTranscodeFinished( KProcess* );
private:
- QImage m_preview;
+ TQImage m_preview;
KTempDir* m_tempDir;
KProcess* m_process;
int m_title;
diff --git a/src/rip/videodvd/k3bvideodvdrippingtitlelistview.cpp b/src/rip/videodvd/k3bvideodvdrippingtitlelistview.cpp
index 85379dc..244de2c 100644
--- a/src/rip/videodvd/k3bvideodvdrippingtitlelistview.cpp
+++ b/src/rip/videodvd/k3bvideodvdrippingtitlelistview.cpp
@@ -25,11 +25,11 @@
#include <k3bvideodvdvideostream.h>
#include <k3bvideodvdsubpicturestream.h>
-#include <qsimplerichtext.h>
-#include <qfontmetrics.h>
-#include <qpainter.h>
-#include <qheader.h>
-#include <qtooltip.h>
+#include <tqsimplerichtext.h>
+#include <tqfontmetrics.h>
+#include <tqpainter.h>
+#include <tqheader.h>
+#include <tqtooltip.h>
#include <klocale.h>
#include <kglobal.h>
@@ -37,22 +37,22 @@
#include <kapplication.h>
-static QString audioStreamString( const K3bVideoDVD::Title& title, unsigned int maxLines = 9999, bool includeExtInfo = true )
+static TQString audioStreamString( const K3bVideoDVD::Title& title, unsigned int maxLines = 9999, bool includeExtInfo = true )
{
- QString s = "<p>";
- for( unsigned int i = 0; i < QMIN( title.numAudioStreams(), maxLines ); ++i ) {
+ TQString s = "<p>";
+ for( unsigned int i = 0; i < TQMIN( title.numAudioStreams(), maxLines ); ++i ) {
if( i > 0 )
s += "<br>";
- s += QString::number(i+1) + ": "
+ s += TQString::number(i+1) + ": "
+ i18n("%1 %2Ch (%3<em>%4</em>)")
- .arg( K3bVideoDVD::audioFormatString( title.audioStream(i).format() ) )
- .arg( title.audioStream(i).channels() )
- .arg( title.audioStream(i).langCode().isEmpty()
+ .tqarg( K3bVideoDVD::audioFormatString( title.audioStream(i).format() ) )
+ .tqarg( title.audioStream(i).channels() )
+ .tqarg( title.audioStream(i).langCode().isEmpty()
? i18n("unknown language")
: KGlobal::locale()->twoAlphaToLanguageName( title.audioStream(i).langCode() ) )
- .arg( includeExtInfo && title.audioStream(i).codeExtension() != K3bVideoDVD::AUDIO_CODE_EXT_UNSPECIFIED
- ? QString(" ") + K3bVideoDVD::audioCodeExtensionString( title.audioStream(i).codeExtension() )
- : QString::null );
+ .tqarg( includeExtInfo && title.audioStream(i).codeExtension() != K3bVideoDVD::AUDIO_CODE_EXT_UNSPECIFIED
+ ? TQString(" ") + K3bVideoDVD::audioCodeExtensionString( title.audioStream(i).codeExtension() )
+ : TQString() );
}
if( title.numAudioStreams() > maxLines )
s += "...";
@@ -61,23 +61,23 @@ static QString audioStreamString( const K3bVideoDVD::Title& title, unsigned int
}
-static QString subpictureStreamString( const K3bVideoDVD::Title& title, unsigned int maxLines = 9999, bool includeExtInfo = true )
+static TQString subpictureStreamString( const K3bVideoDVD::Title& title, unsigned int maxLines = 9999, bool includeExtInfo = true )
{
- QString s = "<p>";
- for( unsigned int i = 0; i < QMIN( title.numSubPictureStreams(), maxLines ); ++i ) {
+ TQString s = "<p>";
+ for( unsigned int i = 0; i < TQMIN( title.numSubPictureStreams(), maxLines ); ++i ) {
if( i > 0 )
s += "<br>";
- s += QString::number(i+1) + ": "
- + QString("%1 (%2<em>%3</em>)")
- .arg( title.subPictureStream(i).codeMode() == K3bVideoDVD::SUBPIC_CODE_MODE_RLE
+ s += TQString::number(i+1) + ": "
+ + TQString("%1 (%2<em>%3</em>)")
+ .tqarg( title.subPictureStream(i).codeMode() == K3bVideoDVD::SUBPIC_CODE_MODE_RLE
? i18n("RLE")
: i18n("Extended") )
- .arg( title.subPictureStream(i).langCode().isEmpty()
+ .tqarg( title.subPictureStream(i).langCode().isEmpty()
? i18n("unknown language")
: KGlobal::locale()->twoAlphaToLanguageName( title.subPictureStream(i).langCode() ) )
- .arg( includeExtInfo && title.subPictureStream(i).codeExtension() != K3bVideoDVD::SUBPIC_CODE_EXT_UNSPECIFIED
- ? QString(" ") + K3bVideoDVD::subPictureCodeExtensionString( title.subPictureStream(i).codeExtension() )
- : QString::null );
+ .tqarg( includeExtInfo && title.subPictureStream(i).codeExtension() != K3bVideoDVD::SUBPIC_CODE_EXT_UNSPECIFIED
+ ? TQString(" ") + K3bVideoDVD::subPictureCodeExtensionString( title.subPictureStream(i).codeExtension() )
+ : TQString() );
}
if( title.numSubPictureStreams() > maxLines )
s += "...";
@@ -90,8 +90,8 @@ static QString subpictureStreamString( const K3bVideoDVD::Title& title, unsigned
class K3bVideoDVDRippingTitleListView::TitleViewItem : public K3bCheckListViewItem
{
public:
- TitleViewItem( K3bVideoDVDRippingTitleListView* parent, QListViewItem* after, const K3bVideoDVD::Title& title )
- : K3bCheckListViewItem( parent, after ),
+ TitleViewItem( K3bVideoDVDRippingTitleListView* tqparent, TQListViewItem* after, const K3bVideoDVD::Title& title )
+ : K3bCheckListViewItem( tqparent, after ),
m_title( title ) {
setMarginVertical( 4 );
@@ -113,39 +113,39 @@ public:
// set a valid height
int maxH = 0;
for( int c = 1; c <= 4; ++c ) {
- QSimpleRichText rt( text(c), listView()->font() );
+ TQSimpleRichText rt( text(c), listView()->font() );
rt.setWidth( 600 ); // way to big to avoid line breaks
- maxH = QMAX( maxH, rt.height() );
+ maxH = TQMAX( maxH, rt.height() );
}
setHeight( maxH + 2*marginVertical() );
}
- int width( const QFontMetrics& fm, const QListView* lv, int c ) const {
+ int width( const TQFontMetrics& fm, const TQListView* lv, int c ) const {
if( c == 0 )
return K3bCheckListViewItem::width( fm, lv, c );
else {
- QSimpleRichText rt( text(c), lv->font() );
+ TQSimpleRichText rt( text(c), lv->font() );
rt.setWidth( 600 ); // way to big to avoid line breaks
return rt.widthUsed() + 2*marginHorizontal( c );
}
}
- void setPreview( const QImage& preview ) {
+ void setPreview( const TQImage& preview ) {
m_preview = preview;
- m_scaledPreview = QPixmap();
+ m_scaledPreview = TQPixmap();
m_previewSet = true;
- repaint();
+ tqrepaint();
}
- const QImage& preview() const {
+ const TQImage& preview() const {
return m_preview;
}
protected:
- void paintK3bCell( QPainter* p, const QColorGroup& cg, int col, int w, int align ) {
+ void paintK3bCell( TQPainter* p, const TQColorGroup& cg, int col, int w, int align ) {
p->save();
if( col == 0 ) {
@@ -155,7 +155,7 @@ protected:
else if( col == 2 ) {
if( isSelected() ) {
p->fillRect( 0, 0, w, height(),
- cg.brush( QColorGroup::Highlight ) );
+ cg.brush( TQColorGroup::Highlight ) );
p->setPen( cg.highlightedText() );
}
else {
@@ -193,35 +193,35 @@ protected:
preW = h*16/9;
p->drawRect( ( w - preW ) / 2, ( height() - h ) / 2, preW, h );
- QPixmap noIcon = KApplication::kApplication()->iconLoader()->loadIcon( "no", KIcon::NoGroup, KIcon::SizeSmall, KIcon::DefaultState, 0, true );
+ TQPixmap noIcon = KApplication::kApplication()->iconLoader()->loadIcon( "no", KIcon::NoGroup, KIcon::SizeSmall, KIcon::DefaultState, 0, true );
p->drawPixmap( ( w - noIcon.width() ) / 2, ( height() - noIcon.height() ) / 2, noIcon );
}
else {
- p->drawText( 0, 0, w, height(), Qt::AlignCenter, "..." );
+ p->drawText( 0, 0, w, height(), TQt::AlignCenter, "..." );
}
}
else {
- QString s = text( col );
+ TQString s = text( col );
if( s.isEmpty() )
K3bCheckListViewItem::paintK3bCell( p, cg, col, w, align );
else {
- QColorGroup cg1( cg );
+ TQColorGroup cg1( cg );
if( isSelected() ) {
p->fillRect( 0, 0, w, height(),
- cg.brush( QColorGroup::Highlight ) );
- cg1.setColor( QColorGroup::Text, cg.highlightedText() );
+ cg.brush( TQColorGroup::Highlight ) );
+ cg1.setColor( TQColorGroup::Text, cg.highlightedText() );
}
else {
p->fillRect( 0, 0, w, height(), cg.base() );
}
- // paint using QSimpleRichText
- QSimpleRichText rt( text(col), listView()->font() );
+ // paint using TQSimpleRichText
+ TQSimpleRichText rt( text(col), listView()->font() );
rt.setWidth( 600 ); // way to big to avoid line breaks
// normally we would have to clip the height to height()-2*marginVertical(). But if we do that
- // some characters are cut (such as p or q). It seems as if QSimpleRichText does not properly
+ // some characters are cut (such as p or q). It seems as if TQSimpleRichText does not properly
// calculate it's height...
- rt.draw( p, 0, marginVertical(), QRect( 0, 0, w, height() ), cg1 );
+ rt.draw( p, 0, marginVertical(), TQRect( 0, 0, w, height() ), cg1 );
}
}
@@ -229,7 +229,7 @@ protected:
if( listView()->firstChild() != this ) {
p->translate( -1*marginHorizontal(col), 0 );
// FIXME: modify the value from palette().disabled().foreground() to be lighter (or darker, depending on the background color )
- p->setPen( Qt::lightGray );
+ p->setPen( TQt::lightGray );
p->drawLine( 0, 0, w+2*marginHorizontal(col), 0 );
}
@@ -237,26 +237,26 @@ protected:
}
private:
- QString text( int col ) const {
+ TQString text( int col ) const {
switch( col ) {
case 1:
// Title X + length
return i18n("<p><b>Title %1 (%2)</b><br>"
"%3")
- .arg( m_title.titleNumber(), 2 )
- .arg( m_title.playbackTime().toString( false ) )
- .arg( i18n("%n chapter", "%n chapters", m_title.numPTTs() ) );
+ .tqarg( m_title.titleNumber(), 2 )
+ .tqarg( m_title.playbackTime().toString( false ) )
+ .tqarg( i18n("%n chapter", "%n chapters", m_title.numPTTs() ) );
case 3:
// video stream info
- return QString("<p>%1 %2x%3<br>%4%5")
- .arg( m_title.videoStream().mpegVersion() == 0 ? i18n("MPEG1") : i18n("MPEG2") )
- .arg( m_title.videoStream().pictureWidth() )
- .arg( m_title.videoStream().pictureHeight() )
- .arg( m_title.videoStream().displayAspectRatio() == K3bVideoDVD::VIDEO_ASPECT_RATIO_4_3 ? "4:3" : "16:9" )
- .arg( m_title.videoStream().letterboxed() ? QString(" - <em>") + i18n("letterboxed") + QString("</em>"):
+ return TQString("<p>%1 %2x%3<br>%4%5")
+ .tqarg( m_title.videoStream().mpegVersion() == 0 ? i18n("MPEG1") : i18n("MPEG2") )
+ .tqarg( m_title.videoStream().pictureWidth() )
+ .tqarg( m_title.videoStream().pictureHeight() )
+ .tqarg( m_title.videoStream().displayAspectRatio() == K3bVideoDVD::VIDEO_ASPECT_RATIO_4_3 ? "4:3" : "16:9" )
+ .tqarg( m_title.videoStream().letterboxed() ? TQString(" - <em>") + i18n("letterboxed") + TQString("</em>"):
m_title.videoStream().permittedDf() == K3bVideoDVD::VIDEO_PERMITTED_DF_LETTERBOXED
- ? QString(" - <em>") + i18n("anamorph") + QString("</em>") : QString::null );
+ ? TQString(" - <em>") + i18n("anamorph") + TQString("</em>") : TQString() );
case 4:
// audio streams info
@@ -280,8 +280,8 @@ private:
K3bVideoDVD::Title m_title;
bool m_previewSet;
- QImage m_preview;
- QPixmap m_scaledPreview;
+ TQImage m_preview;
+ TQPixmap m_scaledPreview;
};
@@ -293,14 +293,14 @@ public:
m_view( view ) {
}
- void maybeTip( const QPoint& pos ) {
+ void maybeTip( const TQPoint& pos ) {
TitleViewItem* item = static_cast<TitleViewItem*>( m_view->itemAt( pos ) );
- QPoint contentsPos = m_view->viewportToContents( pos );
+ TQPoint contentsPos = m_view->viewportToContents( pos );
if( !item )
return;
int col = m_view->header()->sectionAt( contentsPos.x() );
- QRect r = m_view->itemRect( item );
+ TQRect r = m_view->tqitemRect( item );
int headerPos = m_view->header()->sectionPos( col );
r.setLeft( headerPos );
r.setRight( headerPos + m_view->header()->sectionSize( col ) );
@@ -308,7 +308,7 @@ public:
switch( col ) {
case 2:
if( !item->preview().isNull() ) {
- QPixmap previewPix;
+ TQPixmap previewPix;
if( previewPix.convertFromImage( item->preview() ) )
tip( r, previewPix, 0 );
}
@@ -330,8 +330,8 @@ private:
-K3bVideoDVDRippingTitleListView::K3bVideoDVDRippingTitleListView( QWidget* parent )
- : K3bListView( parent )
+K3bVideoDVDRippingTitleListView::K3bVideoDVDRippingTitleListView( TQWidget* tqparent )
+ : K3bListView( tqparent )
{
setFullWidth(true);
setSorting(-1);
@@ -346,15 +346,15 @@ K3bVideoDVDRippingTitleListView::K3bVideoDVDRippingTitleListView( QWidget* paren
addColumn( i18n("Subpicture") );
header()->setClickEnabled( false );
- setColumnWidthMode( 0, QListView::Manual );
+ setColumnWidthMode( 0, TQListView::Manual );
setColumnWidth( 0, 20 );
header()->setResizeEnabled( false, 0 );
m_toolTip = new TitleToolTip( this );
m_previewGen = new K3bVideoDVDRippingPreview( this );
- connect( m_previewGen, SIGNAL(previewDone(bool)),
- this, SLOT(slotPreviewDone(bool)) );
+ connect( m_previewGen, TQT_SIGNAL(previewDone(bool)),
+ this, TQT_SLOT(slotPreviewDone(bool)) );
}
@@ -385,7 +385,7 @@ void K3bVideoDVDRippingTitleListView::slotPreviewDone( bool success )
if( success )
m_itemMap[m_currentPreviewTitle-1]->setPreview( m_previewGen->preview() );
else
- m_itemMap[m_currentPreviewTitle-1]->setPreview( QImage() );
+ m_itemMap[m_currentPreviewTitle-1]->setPreview( TQImage() );
// cancel if we got hidden or if the medium changed.
if( isVisible() && m_medium == k3bappcore->mediaCache()->medium( m_dvd.device() ) ) {
@@ -396,7 +396,7 @@ void K3bVideoDVDRippingTitleListView::slotPreviewDone( bool success )
}
-void K3bVideoDVDRippingTitleListView::hideEvent( QHideEvent* e )
+void K3bVideoDVDRippingTitleListView::hideEvent( TQHideEvent* e )
{
//
// For now we do it the easy way: just stop the preview generation
diff --git a/src/rip/videodvd/k3bvideodvdrippingtitlelistview.h b/src/rip/videodvd/k3bvideodvdrippingtitlelistview.h
index 7c21815..2aa0dbc 100644
--- a/src/rip/videodvd/k3bvideodvdrippingtitlelistview.h
+++ b/src/rip/videodvd/k3bvideodvdrippingtitlelistview.h
@@ -20,18 +20,19 @@
#include <k3bvideodvd.h>
#include <k3bmedium.h>
-#include <qvaluevector.h>
+#include <tqvaluevector.h>
class K3bVideoDVDRippingPreview;
-class QHideEvent;
+class TQHideEvent;
class K3bVideoDVDRippingTitleListView : public K3bListView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bVideoDVDRippingTitleListView( QWidget* parent );
+ K3bVideoDVDRippingTitleListView( TQWidget* tqparent );
~K3bVideoDVDRippingTitleListView();
void setVideoDVD( const K3bVideoDVD::VideoDVD& dvd );
@@ -40,14 +41,14 @@ class K3bVideoDVDRippingTitleListView : public K3bListView
void slotPreviewDone( bool );
private:
- void hideEvent( QHideEvent* );
+ void hideEvent( TQHideEvent* );
class TitleViewItem;
class TitleToolTip;
TitleToolTip* m_toolTip;
- QValueVector<TitleViewItem*> m_itemMap;
+ TQValueVector<TitleViewItem*> m_itemMap;
K3bVideoDVDRippingPreview* m_previewGen;
unsigned int m_currentPreviewTitle;
diff --git a/src/rip/videodvd/k3bvideodvdrippingview.cpp b/src/rip/videodvd/k3bvideodvdrippingview.cpp
index f6c8c8d..6753305 100644
--- a/src/rip/videodvd/k3bvideodvdrippingview.cpp
+++ b/src/rip/videodvd/k3bvideodvdrippingview.cpp
@@ -26,9 +26,9 @@
#include <k3bcore.h>
#include <k3bexternalbinmanager.h>
-#include <qcursor.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqcursor.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <kapplication.h>
#include <kmessagebox.h>
@@ -37,24 +37,24 @@
#include <kconfig.h>
-K3bVideoDVDRippingView::K3bVideoDVDRippingView( QWidget* parent, const char * name )
+K3bVideoDVDRippingView::K3bVideoDVDRippingView( TQWidget* tqparent, const char * name )
: K3bMediaContentsView( true,
K3bMedium::CONTENT_VIDEO_DVD,
K3bDevice::MEDIA_DVD_ALL,
K3bDevice::STATE_INCOMPLETE|K3bDevice::STATE_COMPLETE,
- parent, name )
+ tqparent, name )
{
- QGridLayout* mainGrid = new QGridLayout( mainWidget() );
+ TQGridLayout* mainGrid = new TQGridLayout( mainWidget() );
// toolbox
// ----------------------------------------------------------------------------------
- QHBoxLayout* toolBoxLayout = new QHBoxLayout( 0, 0, 0, "toolBoxLayout" );
+ TQHBoxLayout* toolBoxLayout = new TQHBoxLayout( 0, 0, 0, "toolBoxLayout" );
m_toolBox = new K3bToolBox( mainWidget() );
toolBoxLayout->addWidget( m_toolBox );
- QSpacerItem* spacer = new QSpacerItem( 10, 10, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ TQSpacerItem* spacer = new TQSpacerItem( 10, 10, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
toolBoxLayout->addItem( spacer );
- m_labelLength = new QLabel( mainWidget() );
- m_labelLength->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
+ m_labelLength = new TQLabel( mainWidget() );
+ m_labelLength->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
toolBoxLayout->addWidget( m_labelLength );
@@ -62,10 +62,10 @@ K3bVideoDVDRippingView::K3bVideoDVDRippingView( QWidget* parent, const char * na
// ----------------------------------------------------------------------------------
m_titleView = new K3bVideoDVDRippingTitleListView( mainWidget() );
- connect( m_titleView, SIGNAL(contextMenu(KListView*, QListViewItem*, const QPoint&)),
- this, SLOT(slotContextMenu(KListView*, QListViewItem*, const QPoint&)) );
+ connect( m_titleView, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
+ this, TQT_SLOT(slotContextMenu(KListView*, TQListViewItem*, const TQPoint&)) );
- // general layout
+ // general tqlayout
// ----------------------------------------------------------------------------------
mainGrid->addLayout( toolBoxLayout, 0, 0 );
mainGrid->addWidget( m_titleView, 1, 0 );
@@ -113,13 +113,13 @@ void K3bVideoDVDRippingView::reloadMedium()
delete css;
}
- QApplication::setOverrideCursor( QCursor(Qt::WaitCursor) );
+ TQApplication::setOverrideCursor( TQCursor(TQt::WaitCursor) );
if( m_dvd.open( device() ) ) {
setTitle( medium().beautifiedVolumeId() + " (" + i18n("Video DVD") + ")" );
m_labelLength->setText( i18n("%n title", "%n titles", m_dvd.numTitles() ) );
m_titleView->setVideoDVD( m_dvd );
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
bool transcodeUsable = true;
@@ -150,7 +150,7 @@ void K3bVideoDVDRippingView::reloadMedium()
actionCollection()->action("start_rip")->setEnabled( transcodeUsable );
}
else {
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
KMessageBox::error( this, i18n("Unable to read Video DVD contents.") );
}
@@ -159,9 +159,9 @@ void K3bVideoDVDRippingView::reloadMedium()
void K3bVideoDVDRippingView::slotStartRipping()
{
- QValueList<int> titles;
+ TQValueList<int> titles;
int i = 1;
- for( QListViewItemIterator it( m_titleView ); *it; ++it, ++i )
+ for( TQListViewItemIterator it( m_titleView ); *it; ++it, ++i )
if( static_cast<K3bCheckListViewItem*>( *it )->isChecked() )
titles.append( i );
@@ -176,7 +176,7 @@ void K3bVideoDVDRippingView::slotStartRipping()
}
-void K3bVideoDVDRippingView::slotContextMenu( KListView*, QListViewItem*, const QPoint& p )
+void K3bVideoDVDRippingView::slotContextMenu( KListView*, TQListViewItem*, const TQPoint& p )
{
m_popupMenu->popup(p);
}
@@ -184,22 +184,22 @@ void K3bVideoDVDRippingView::slotContextMenu( KListView*, QListViewItem*, const
void K3bVideoDVDRippingView::slotCheckAll()
{
- for( QListViewItemIterator it( m_titleView ); it.current(); ++it )
+ for( TQListViewItemIterator it( m_titleView ); it.current(); ++it )
dynamic_cast<K3bCheckListViewItem*>(it.current())->setChecked(true);
}
void K3bVideoDVDRippingView::slotUncheckAll()
{
- for( QListViewItemIterator it( m_titleView ); it.current(); ++it )
+ for( TQListViewItemIterator it( m_titleView ); it.current(); ++it )
dynamic_cast<K3bCheckListViewItem*>(it.current())->setChecked(false);
}
void K3bVideoDVDRippingView::slotCheck()
{
- QPtrList<QListViewItem> items( m_titleView->selectedItems() );
- for( QPtrListIterator<QListViewItem> it( items );
+ TQPtrList<TQListViewItem> items( m_titleView->selectedItems() );
+ for( TQPtrListIterator<TQListViewItem> it( items );
it.current(); ++it )
dynamic_cast<K3bCheckListViewItem*>(it.current())->setChecked(true);
}
@@ -207,8 +207,8 @@ void K3bVideoDVDRippingView::slotCheck()
void K3bVideoDVDRippingView::slotUncheck()
{
- QPtrList<QListViewItem> items( m_titleView->selectedItems() );
- for( QPtrListIterator<QListViewItem> it( items );
+ TQPtrList<TQListViewItem> items( m_titleView->selectedItems() );
+ for( TQPtrListIterator<TQListViewItem> it( items );
it.current(); ++it )
dynamic_cast<K3bCheckListViewItem*>(it.current())->setChecked(false);
}
@@ -219,19 +219,19 @@ void K3bVideoDVDRippingView::initActions()
m_actionCollection = new KActionCollection( this );
KAction* actionSelectAll = new KAction( i18n("Check All"), 0, 0, this,
- SLOT(slotCheckAll()), actionCollection(),
+ TQT_SLOT(slotCheckAll()), actionCollection(),
"check_all" );
KAction* actionDeselectAll = new KAction( i18n("Uncheck All"), 0, 0, this,
- SLOT(slotUncheckAll()), actionCollection(),
+ TQT_SLOT(slotUncheckAll()), actionCollection(),
"uncheck_all" );
KAction* actionSelect = new KAction( i18n("Check Track"), 0, 0, this,
- SLOT(slotCheck()), actionCollection(),
+ TQT_SLOT(slotCheck()), actionCollection(),
"select_track" );
KAction* actionDeselect = new KAction( i18n("Uncheck Track"), 0, 0, this,
- SLOT(slotUncheck()), actionCollection(),
+ TQT_SLOT(slotUncheck()), actionCollection(),
"deselect_track" );
KAction* actionStartRip = new KAction( i18n("Start Ripping"), "gear", 0, this,
- SLOT(slotStartRipping()), m_actionCollection, "start_rip" );
+ TQT_SLOT(slotStartRipping()), m_actionCollection, "start_rip" );
actionStartRip->setToolTip( i18n("Open the Video DVD ripping dialog") );
diff --git a/src/rip/videodvd/k3bvideodvdrippingview.h b/src/rip/videodvd/k3bvideodvdrippingview.h
index 679ea09..1bf58f3 100644
--- a/src/rip/videodvd/k3bvideodvdrippingview.h
+++ b/src/rip/videodvd/k3bvideodvdrippingview.h
@@ -22,18 +22,19 @@
class K3bVideoDVDRippingTitleListView;
class K3bToolBox;
-class QLabel;
+class TQLabel;
class KActionCollection;
class KActionMenu;
class KListView;
-class QListViewItem;
+class TQListViewItem;
class K3bVideoDVDRippingView : public K3bMediaContentsView
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bVideoDVDRippingView( QWidget* parent = 0, const char * name = 0 );
+ K3bVideoDVDRippingView( TQWidget* tqparent = 0, const char * name = 0 );
~K3bVideoDVDRippingView();
KActionCollection* actionCollection() const { return m_actionCollection; }
@@ -41,7 +42,7 @@ class K3bVideoDVDRippingView : public K3bMediaContentsView
private slots:
void slotStartRipping();
- void slotContextMenu( KListView*, QListViewItem*, const QPoint& );
+ void slotContextMenu( KListView*, TQListViewItem*, const TQPoint& );
void slotCheckAll();
void slotUncheckAll();
@@ -57,7 +58,7 @@ class K3bVideoDVDRippingView : public K3bMediaContentsView
KActionMenu* m_popupMenu;
K3bToolBox* m_toolBox;
- QLabel* m_labelLength;
+ TQLabel* m_labelLength;
K3bVideoDVDRippingTitleListView* m_titleView;
K3bVideoDVD::VideoDVD m_dvd;
diff --git a/src/rip/videodvd/k3bvideodvdrippingwidget.cpp b/src/rip/videodvd/k3bvideodvdrippingwidget.cpp
index 721d191..06214a0 100644
--- a/src/rip/videodvd/k3bvideodvdrippingwidget.cpp
+++ b/src/rip/videodvd/k3bvideodvdrippingwidget.cpp
@@ -28,15 +28,15 @@
#include <kdialogbase.h>
#include <klineedit.h>
-#include <qcombobox.h>
-#include <qspinbox.h>
-#include <qlabel.h>
-#include <qtimer.h>
-#include <qwhatsthis.h>
-#include <qwidgetstack.h>
-#include <qpushbutton.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
+#include <tqcombobox.h>
+#include <tqspinbox.h>
+#include <tqlabel.h>
+#include <tqtimer.h>
+#include <tqwhatsthis.h>
+#include <tqwidgetstack.h>
+#include <tqpushbutton.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
static const int s_mp3Bitrates[] = {
@@ -72,8 +72,8 @@ static const char* s_pictureSizeNames[] = {
};
-K3bVideoDVDRippingWidget::K3bVideoDVDRippingWidget( QWidget* parent )
- : base_K3bVideoDVDRippingWidget( parent )
+K3bVideoDVDRippingWidget::K3bVideoDVDRippingWidget( TQWidget* tqparent )
+ : base_K3bVideoDVDRippingWidget( tqparent )
{
m_editBaseDir->setMode( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly );
@@ -86,15 +86,15 @@ K3bVideoDVDRippingWidget::K3bVideoDVDRippingWidget( QWidget* parent )
//
// Example filename pattern
//
- m_comboFilenamePattern->insertItem( QString( "%b - %1 %t (%n %a %c)" ).arg(i18n("Title") ) );
- m_comboFilenamePattern->insertItem( QString( "%{volumeid} (%{title})" ) );
+ m_comboFilenamePattern->insertItem( TQString( "%b - %1 %t (%n %a %c)" ).tqarg(i18n("Title") ) );
+ m_comboFilenamePattern->insertItem( TQString( "%{volumeid} (%{title})" ) );
//
// Add the Audio bitrates
//
for( int i = 0; s_mp3Bitrates[i]; ++i )
- m_comboAudioBitrate->insertItem( i18n("%1 kbps" ).arg(s_mp3Bitrates[i]) );
+ m_comboAudioBitrate->insertItem( i18n("%1 kbps" ).tqarg(s_mp3Bitrates[i]) );
for( int i = 0; i < K3bVideoDVDTitleTranscodingJob::VIDEO_CODEC_NUM_ENTRIES; ++i ) {
@@ -118,32 +118,32 @@ K3bVideoDVDRippingWidget::K3bVideoDVDRippingWidget( QWidget* parent )
slotAudioCodecChanged( m_comboAudioCodec->selectedValue() );
- connect( m_comboAudioBitrate, SIGNAL(textChanged(const QString&)),
- this, SIGNAL(changed()) );
- connect( m_spinVideoBitrate, SIGNAL(valueChanged(int)),
- this, SIGNAL(changed()) );
- connect( m_checkBlankReplace, SIGNAL(toggled(bool)),
- this, SIGNAL(changed()) );
- connect( m_editBlankReplace, SIGNAL(textChanged(const QString&)),
- this, SIGNAL(changed()) );
- connect( m_comboFilenamePattern, SIGNAL(textChanged(const QString&)),
- this, SIGNAL(changed()) );
- connect( m_editBaseDir, SIGNAL(textChanged(const QString&)),
- this, SIGNAL(changed()) );
-
- connect( m_comboAudioCodec, SIGNAL(valueChanged(int)),
- this, SLOT(slotAudioCodecChanged(int)) );
- connect( m_specialStringsLabel, SIGNAL(leftClickedURL()),
- this, SLOT(slotSeeSpecialStrings()) );
- connect( m_buttonCustomPictureSize, SIGNAL(clicked()),
- this, SLOT(slotCustomPictureSize()) );
- connect( m_comboVideoSize, SIGNAL(activated(int)),
- this, SLOT(slotVideoSizeChanged(int)) );
+ connect( m_comboAudioBitrate, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SIGNAL(changed()) );
+ connect( m_spinVideoBitrate, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SIGNAL(changed()) );
+ connect( m_checkBlankReplace, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SIGNAL(changed()) );
+ connect( m_editBlankReplace, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SIGNAL(changed()) );
+ connect( m_comboFilenamePattern, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SIGNAL(changed()) );
+ connect( m_editBaseDir, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SIGNAL(changed()) );
+
+ connect( m_comboAudioCodec, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(slotAudioCodecChanged(int)) );
+ connect( m_specialStringsLabel, TQT_SIGNAL(leftClickedURL()),
+ this, TQT_SLOT(slotSeeSpecialStrings()) );
+ connect( m_buttonCustomPictureSize, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotCustomPictureSize()) );
+ connect( m_comboVideoSize, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotVideoSizeChanged(int)) );
// refresh every 2 seconds
- m_freeSpaceUpdateTimer = new QTimer( this );
- connect( m_freeSpaceUpdateTimer, SIGNAL(timeout()),
- this, SLOT(slotUpdateFreeTempSpace()) );
+ m_freeSpaceUpdateTimer = new TQTimer( this );
+ connect( m_freeSpaceUpdateTimer, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(slotUpdateFreeTempSpace()) );
m_freeSpaceUpdateTimer->start(2000);
slotUpdateFreeTempSpace();
}
@@ -160,35 +160,35 @@ K3bVideoDVDTitleTranscodingJob::VideoCodec K3bVideoDVDRippingWidget::selectedVid
}
-QSize K3bVideoDVDRippingWidget::selectedPictureSize() const
+TQSize K3bVideoDVDRippingWidget::selectedPictureSize() const
{
switch( m_comboVideoSize->currentItem() ) {
case PICTURE_SIZE_ORIGINAL:
- return QSize(0,0);
+ return TQSize(0,0);
case PICTURE_SIZE_640:
- return QSize(640,0);
+ return TQSize(640,0);
case PICTURE_SIZE_320:
- return QSize(320,0);
+ return TQSize(320,0);
default:
return m_customVideoSize;
}
}
-void K3bVideoDVDRippingWidget::setSelectedPictureSize( const QSize& size )
+void K3bVideoDVDRippingWidget::setSelectedPictureSize( const TQSize& size )
{
m_customVideoSize = size;
- if( size == QSize(0,0) )
+ if( size == TQSize(0,0) )
m_comboVideoSize->setCurrentItem( PICTURE_SIZE_ORIGINAL );
- else if( size == QSize(640,0) )
+ else if( size == TQSize(640,0) )
m_comboVideoSize->setCurrentItem( PICTURE_SIZE_640 );
- else if( size == QSize(320,0) )
+ else if( size == TQSize(320,0) )
m_comboVideoSize->setCurrentItem( PICTURE_SIZE_320 );
else {
m_comboVideoSize->changeItem( i18n(s_pictureSizeNames[PICTURE_SIZE_CUSTOM])
- + QString(" (%1x%2)")
- .arg(size.width() == 0 ? i18n("auto") : QString::number(size.width()))
- .arg(size.height() == 0 ? i18n("auto") : QString::number(size.height())),
+ + TQString(" (%1x%2)")
+ .tqarg(size.width() == 0 ? i18n("auto") : TQString::number(size.width()))
+ .tqarg(size.height() == 0 ? i18n("auto") : TQString::number(size.height())),
PICTURE_SIZE_CUSTOM );
m_comboVideoSize->setCurrentItem( PICTURE_SIZE_CUSTOM );
}
@@ -246,16 +246,16 @@ void K3bVideoDVDRippingWidget::setSelectedAudioBitrate( int bitrate )
void K3bVideoDVDRippingWidget::slotUpdateFreeTempSpace()
{
- QString path = m_editBaseDir->url();
+ TQString path = m_editBaseDir->url();
- if( !QFile::exists( path ) )
- path.truncate( path.findRev('/') );
+ if( !TQFile::exists( path ) )
+ path.truncate( path.tqfindRev('/') );
unsigned long size, avail;
if( K3b::kbFreeOnFs( path, size, avail ) ) {
m_labelFreeSpace->setText( KIO::convertSizeFromKB(avail) );
if( avail < m_neededSize/1024 )
- m_labelNeededSpace->setPaletteForegroundColor( Qt::red );
+ m_labelNeededSpace->setPaletteForegroundColor( TQt::red );
else
m_labelNeededSpace->setPaletteForegroundColor( paletteForegroundColor() );
}
@@ -280,7 +280,7 @@ void K3bVideoDVDRippingWidget::setNeededSize( KIO::filesize_t size )
void K3bVideoDVDRippingWidget::slotSeeSpecialStrings()
{
- QWhatsThis::display( i18n( "<p><b>Pattern special strings:</b>"
+ TQWhatsThis::display( i18n( "<p><b>Pattern special strings:</b>"
"<p>The following strings will be replaced with their respective meaning in every "
"track name.<br>"
"<p><table border=\"0\">"
@@ -345,16 +345,16 @@ void K3bVideoDVDRippingWidget::slotCustomPictureSize()
"Be aware that setting both the width and the height to fixed values "
"will result in no aspect ratio correction to be performed."),
dlg.plainPage() );
- QSpinBox* spinWidth = new QSpinBox( 0, 20000, 16, dlg.plainPage() );
- QSpinBox* spinHeight = new QSpinBox( 0, 20000, 16, dlg.plainPage() );
+ TQSpinBox* spinWidth = new TQSpinBox( 0, 20000, 16, dlg.plainPage() );
+ TQSpinBox* spinHeight = new TQSpinBox( 0, 20000, 16, dlg.plainPage() );
spinWidth->setSpecialValueText( i18n("Auto") );
spinHeight->setSpecialValueText( i18n("Auto") );
- QLabel* labelW = new QLabel( spinWidth, i18n("Width") + ':', dlg.plainPage() );
- QLabel* labelH = new QLabel( spinHeight, i18n("Height") + ':', dlg.plainPage() );
- labelW->setAlignment( Qt::AlignRight|Qt::AlignVCenter );
- labelH->setAlignment( Qt::AlignRight|Qt::AlignVCenter );
+ TQLabel* labelW = new TQLabel( spinWidth, i18n("Width") + ':', dlg.plainPage() );
+ TQLabel* labelH = new TQLabel( spinHeight, i18n("Height") + ':', dlg.plainPage() );
+ labelW->tqsetAlignment( TQt::AlignRight|TQt::AlignVCenter );
+ labelH->tqsetAlignment( TQt::AlignRight|TQt::AlignVCenter );
- QGridLayout* grid = new QGridLayout( dlg.plainPage() );
+ TQGridLayout* grid = new TQGridLayout( dlg.plainPage() );
grid->setMargin( 0 );
grid->setSpacing( KDialog::spacingHint() );
grid->addMultiCellWidget( label, 0, 0, 0, 3 );
@@ -367,7 +367,7 @@ void K3bVideoDVDRippingWidget::slotCustomPictureSize()
spinHeight->setValue( m_customVideoSize.height() );
if( dlg.exec() ) {
- setSelectedPictureSize( QSize( spinWidth->value(), spinHeight->value() ) );
+ setSelectedPictureSize( TQSize( spinWidth->value(), spinHeight->value() ) );
emit changed();
}
}
diff --git a/src/rip/videodvd/k3bvideodvdrippingwidget.h b/src/rip/videodvd/k3bvideodvdrippingwidget.h
index 2d10da7..5335b7c 100644
--- a/src/rip/videodvd/k3bvideodvdrippingwidget.h
+++ b/src/rip/videodvd/k3bvideodvdrippingwidget.h
@@ -20,30 +20,31 @@
#include <k3bvideodvdtitletranscodingjob.h>
-#include <qvaluevector.h>
-#include <qmap.h>
+#include <tqvaluevector.h>
+#include <tqmap.h>
#include <kio/global.h>
-class QTimer;
+class TQTimer;
class K3bVideoDVDRippingWidget : public base_K3bVideoDVDRippingWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- K3bVideoDVDRippingWidget( QWidget* parent );
+ K3bVideoDVDRippingWidget( TQWidget* tqparent );
~K3bVideoDVDRippingWidget();
K3bVideoDVDTitleTranscodingJob::VideoCodec selectedVideoCodec() const;
K3bVideoDVDTitleTranscodingJob::AudioCodec selectedAudioCodec() const;
int selectedAudioBitrate() const;
- QSize selectedPictureSize() const;
+ TQSize selectedPictureSize() const;
void setSelectedVideoCodec( K3bVideoDVDTitleTranscodingJob::VideoCodec codec );
void setSelectedAudioCodec( K3bVideoDVDTitleTranscodingJob::AudioCodec codec );
void setSelectedAudioBitrate( int bitrate );
- void setSelectedPictureSize( const QSize& );
+ void setSelectedPictureSize( const TQSize& );
void setNeededSize( KIO::filesize_t );
@@ -58,10 +59,10 @@ class K3bVideoDVDRippingWidget : public base_K3bVideoDVDRippingWidget
void slotCustomPictureSize();
private:
- QTimer* m_freeSpaceUpdateTimer;
+ TQTimer* m_freeSpaceUpdateTimer;
KIO::filesize_t m_neededSize;
- QSize m_customVideoSize;
+ TQSize m_customVideoSize;
};
#endif