summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 19:21:21 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 19:21:21 +0000
commitd8cc8bdfa7fa624a526d5aa1626974e1444cb799 (patch)
treef295f1c545b319963d5357af79fe08991d8141d9 /src
parent2a39a080579fb52a2599c02b2939795385b89093 (diff)
downloadk3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.tar.gz
k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.zip
TQt4 port k3b
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 Aurlien Gteau
+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 Aurlien Gteau
#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"