Initial TQt conversion

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/amarok@1165727 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 12 years ago
parent 36a9c19165
commit 3a09386ad1
  1. 20
      amarok/src/Options1.ui.h
  2. 38
      amarok/src/Options2.ui.h
  3. 44
      amarok/src/Options5.ui.h
  4. 2
      amarok/src/Options8.ui.h
  5. 106
      amarok/src/actionclasses.cpp
  6. 40
      amarok/src/actionclasses.h
  7. 90
      amarok/src/amarok.h
  8. 212
      amarok/src/amarokcore/amarokdcophandler.cpp
  9. 148
      amarok/src/amarokcore/amarokdcophandler.h
  10. 132
      amarok/src/amarokcore/amarokdcopiface.h
  11. 90
      amarok/src/amarokcore/crashhandler.cpp
  12. 38
      amarok/src/analyzers/analyzerbase.cpp
  13. 54
      amarok/src/analyzers/analyzerbase.h
  14. 18
      amarok/src/analyzers/analyzerfactory.cpp
  15. 18
      amarok/src/analyzers/baranalyzer.cpp
  16. 14
      amarok/src/analyzers/baranalyzer.h
  17. 62
      amarok/src/analyzers/blockanalyzer.cpp
  18. 24
      amarok/src/analyzers/blockanalyzer.h
  19. 44
      amarok/src/analyzers/boomanalyzer.cpp
  20. 12
      amarok/src/analyzers/boomanalyzer.h
  21. 2
      amarok/src/analyzers/glanalyzer.cpp
  22. 2
      amarok/src/analyzers/glanalyzer.h
  23. 10
      amarok/src/analyzers/glanalyzer2.cpp
  24. 8
      amarok/src/analyzers/glanalyzer2.h
  25. 10
      amarok/src/analyzers/glanalyzer3.cpp
  26. 12
      amarok/src/analyzers/glanalyzer3.h
  27. 12
      amarok/src/analyzers/sonogram.cpp
  28. 4
      amarok/src/analyzers/sonogram.h
  29. 4
      amarok/src/analyzers/turbine.cpp
  30. 2
      amarok/src/analyzers/turbine.h
  31. 366
      amarok/src/app.cpp
  32. 4
      amarok/src/app.h
  33. 30
      amarok/src/atomicstring.cpp
  34. 38
      amarok/src/atomicstring.h
  35. 10
      amarok/src/atomicstring_unittest.cpp
  36. 20
      amarok/src/atomicurl.cpp
  37. 16
      amarok/src/atomicurl.h
  38. 2
      amarok/src/browserToolBar.h
  39. 98
      amarok/src/browserbar.cpp
  40. 54
      amarok/src/browserbar.h
  41. 26
      amarok/src/clicklineedit.cpp
  42. 20
      amarok/src/clicklineedit.h
  43. 766
      amarok/src/collectionbrowser.cpp
  44. 146
      amarok/src/collectionbrowser.h
  45. 1820
      amarok/src/collectiondb.cpp
  46. 510
      amarok/src/collectiondb.h
  47. 128
      amarok/src/collectionscanner/collectionscanner.cpp
  48. 26
      amarok/src/collectionscanner/collectionscanner.h
  49. 2
      amarok/src/collectionscanner/collectionscannerdcophandler.cpp
  50. 4
      amarok/src/collectionscanner/collectionscannerdcophandler.h
  51. 6
      amarok/src/collectionscanner/main.cpp
  52. 2
      amarok/src/colorgenerator.h
  53. 66
      amarok/src/columnlist.cpp
  54. 10
      amarok/src/columnlist.h
  55. 120
      amarok/src/configdialog.cpp
  56. 30
      amarok/src/configdialog.h
  57. 992
      amarok/src/contextbrowser.cpp
  58. 110
      amarok/src/contextbrowser.h
  59. 152
      amarok/src/coverfetcher.cpp
  60. 78
      amarok/src/coverfetcher.h
  61. 306
      amarok/src/covermanager.cpp
  62. 98
      amarok/src/covermanager.h
  63. 34
      amarok/src/cuefile.cpp
  64. 26
      amarok/src/cuefile.h
  65. 462
      amarok/src/database_refactor/collectiondb.cpp
  66. 146
      amarok/src/database_refactor/collectiondb.h
  67. 32
      amarok/src/database_refactor/dbenginebase.cpp
  68. 56
      amarok/src/database_refactor/dbenginebase.h
  69. 28
      amarok/src/database_refactor/sqlite/sqlite_dbengine.cpp
  70. 20
      amarok/src/database_refactor/sqlite/sqlite_dbengine.h
  71. 4
      amarok/src/dbsetup.ui.h
  72. 50
      amarok/src/debug.h
  73. 24
      amarok/src/deletedialog.cpp
  74. 14
      amarok/src/deletedialog.h
  75. 18
      amarok/src/device/massstorage/massstoragedevicehandler.cpp
  76. 14
      amarok/src/device/massstorage/massstoragedevicehandler.h
  77. 16
      amarok/src/device/nfs/nfsdevicehandler.cpp
  78. 14
      amarok/src/device/nfs/nfsdevicehandler.h
  79. 16
      amarok/src/device/smb/smbdevicehandler.cpp
  80. 14
      amarok/src/device/smb/smbdevicehandler.h
  81. 52
      amarok/src/deviceconfiguredialog.cpp
  82. 12
      amarok/src/deviceconfiguredialog.h
  83. 56
      amarok/src/devicemanager.cpp
  84. 22
      amarok/src/devicemanager.h
  85. 90
      amarok/src/directorylist.cpp
  86. 36
      amarok/src/directorylist.h
  87. 78
      amarok/src/dynamicmode.cpp
  88. 22
      amarok/src/dynamicmode.h
  89. 220
      amarok/src/editfilterdialog.cpp
  90. 80
      amarok/src/editfilterdialog.h
  91. 14
      amarok/src/engine/akode/akode-engine.cpp
  92. 2
      amarok/src/engine/akode/akode-engine.h
  93. 158
      amarok/src/engine/helix/helix-configdialog.cpp
  94. 46
      amarok/src/engine/helix/helix-configdialog.h
  95. 70
      amarok/src/engine/helix/helix-engine.cpp
  96. 18
      amarok/src/engine/helix/helix-engine.h
  97. 14
      amarok/src/engine/helix/helix-errors.cpp
  98. 4
      amarok/src/engine/helix/helix-errors.h
  99. 26
      amarok/src/engine/helix/helix-sp/helix-include/client/include/hxclsnk.h
  100. 8
      amarok/src/engine/helix/helix-sp/helix-include/common/container/hxbuffer.h
  101. 164
      amarok/src/engine/helix/helix-sp/helix-include/common/include/hxausvc.h
  102. 44
      amarok/src/engine/helix/helix-sp/helix-include/common/include/hxauth.h
  103. 6
      amarok/src/engine/helix/helix-sp/helix-include/common/include/hxccf.h
  104. 10
      amarok/src/engine/helix/helix-sp/helix-include/common/include/hxcom.h
  105. 44
      amarok/src/engine/helix/helix-sp/helix-include/common/include/hxcomm.h
  106. 200
      amarok/src/engine/helix/helix-sp/helix-include/common/include/hxcore.h
  107. 280
      amarok/src/engine/helix/helix-sp/helix-include/common/include/hxengin.h
  108. 14
      amarok/src/engine/helix/helix-sp/helix-include/common/include/hxerror.h
  109. 270
      amarok/src/engine/helix/helix-sp/helix-include/common/include/hxfiles.h
  110. 196
      amarok/src/engine/helix/helix-sp/helix-include/common/include/hxmon.h
  111. 122
      amarok/src/engine/helix/helix-sp/helix-include/common/include/hxplugn.h
  112. 28
      amarok/src/engine/helix/helix-sp/helix-include/common/include/hxprefs.h
  113. 4
      amarok/src/engine/helix/helix-sp/helix-include/common/include/hxtbuf.h
  114. 36
      amarok/src/engine/helix/helix-sp/helix-include/common/include/hxvalue.h
  115. 40
      amarok/src/engine/helix/helix-sp/helix-include/common/include/hxvsrc.h
  116. 214
      amarok/src/engine/helix/helix-sp/helix-include/common/include/hxwin.h
  117. 140
      amarok/src/engine/helix/helix-sp/helix-include/common/include/ihxpckts.h
  118. 4
      amarok/src/engine/helix/helix-sp/helix-sp.cpp
  119. 24
      amarok/src/engine/helix/helix-sp/hspadvisesink.h
  120. 22
      amarok/src/engine/helix/helix-sp/hspalsadevice.h
  121. 4
      amarok/src/engine/helix/helix-sp/hspauthmgr.h
  122. 12
      amarok/src/engine/helix/helix-sp/hspcontext.h
  123. 4
      amarok/src/engine/helix/helix-sp/hsperror.h
  124. 24
      amarok/src/engine/helix/helix-sp/hsphook.h
  125. 6
      amarok/src/engine/helix/helix-sp/hspvoladvise.h
  126. 22
      amarok/src/engine/kdemm/kdemmengine.cpp
  127. 14
      amarok/src/engine/kdemm/kdemmengine.h
  128. 22
      amarok/src/engine/mas/masengine.cpp
  129. 8
      amarok/src/engine/mas/masengine.h
  130. 18
      amarok/src/engine/nmm/HostList.cpp
  131. 10
      amarok/src/engine/nmm/HostList.h
  132. 66
      amarok/src/engine/nmm/HostListItem.cpp
  133. 14
      amarok/src/engine/nmm/HostListItem.h
  134. 6
      amarok/src/engine/nmm/NmmLocation.cpp
  135. 10
      amarok/src/engine/nmm/NmmLocation.h
  136. 16
      amarok/src/engine/nmm/ServerregistryPing.cpp
  137. 4
      amarok/src/engine/nmm/ServerregistryPing.h
  138. 58
      amarok/src/engine/nmm/nmm_configdialog.cpp
  139. 6
      amarok/src/engine/nmm/nmm_configdialog.h
  140. 74
      amarok/src/engine/nmm/nmm_engine.cpp
  141. 18
      amarok/src/engine/nmm/nmm_engine.h
  142. 38
      amarok/src/engine/xine/xine-config.cpp
  143. 24
      amarok/src/engine/xine/xine-config.h
  144. 126
      amarok/src/engine/xine/xine-engine.cpp
  145. 18
      amarok/src/engine/xine/xine-engine.h
  146. 40
      amarok/src/engine/yauap/yauap-engine.cpp
  147. 8
      amarok/src/engine/yauap/yauap-engine.h
  148. 38
      amarok/src/enginebase.h
  149. 86
      amarok/src/enginecontroller.cpp
  150. 24
      amarok/src/enginecontroller.h
  151. 16
      amarok/src/engineobserver.cpp
  152. 10
      amarok/src/engineobserver.h
  153. 30
      amarok/src/equalizergraph.cpp
  154. 16
      amarok/src/equalizergraph.h
  155. 70
      amarok/src/equalizerpresetmanager.cpp
  156. 18
      amarok/src/equalizerpresetmanager.h
  157. 160
      amarok/src/equalizersetup.cpp
  158. 22
      amarok/src/equalizersetup.h
  159. 26
      amarok/src/expression.cpp
  160. 36
      amarok/src/expression.h
  161. 156
      amarok/src/filebrowser.cpp
  162. 24
      amarok/src/filebrowser.h
  163. 24
      amarok/src/firstrunwizard.ui.h
  164. 30
      amarok/src/hintlineedit.cpp
  165. 20
      amarok/src/hintlineedit.h
  166. 200
      amarok/src/htmlview.cpp
  167. 6
      amarok/src/htmlview.h
  168. 12
      amarok/src/iconloader.cpp
  169. 42
      amarok/src/k3bexporter.cpp
  170. 8
      amarok/src/k3bexporter.h
  171. 6
      amarok/src/kbookmarkhandler.cpp
  172. 8
      amarok/src/kbookmarkhandler.h
  173. 94
      amarok/src/konquisidebar/universalamarok.cpp
  174. 34
      amarok/src/konquisidebar/universalamarok.h
  175. 136
      amarok/src/ktrm.cpp
  176. 26
      amarok/src/ktrm.h
  177. 336
      amarok/src/lastfm.cpp
  178. 158
      amarok/src/lastfm.h
  179. 68
      amarok/src/loader/loader.cpp
  180. 16
      amarok/src/loader/loader.h
  181. 20
      amarok/src/magnatunebrowser/magnatunealbumdownloader.cpp
  182. 10
      amarok/src/magnatunebrowser/magnatunealbumdownloader.h
  183. 28
      amarok/src/magnatunebrowser/magnatuneartistinfobox.cpp
  184. 4
      amarok/src/magnatunebrowser/magnatuneartistinfobox.h
  185. 104
      amarok/src/magnatunebrowser/magnatunebrowser.cpp
  186. 38
      amarok/src/magnatunebrowser/magnatunebrowser.h
  187. 114
      amarok/src/magnatunebrowser/magnatunedatabasehandler.cpp
  188. 12
      amarok/src/magnatunebrowser/magnatunedatabasehandler.h
  189. 8
      amarok/src/magnatunebrowser/magnatunedownloaddialog.cpp
  190. 6
      amarok/src/magnatunebrowser/magnatunedownloaddialog.h
  191. 28
      amarok/src/magnatunebrowser/magnatunedownloadinfo.cpp
  192. 32
      amarok/src/magnatunebrowser/magnatunedownloadinfo.h
  193. 8
      amarok/src/magnatunebrowser/magnatunelistview.cpp
  194. 2
      amarok/src/magnatunebrowser/magnatunelistview.h
  195. 8
      amarok/src/magnatunebrowser/magnatunelistviewitems.cpp
  196. 44
      amarok/src/magnatunebrowser/magnatunepurchasedialog.cpp
  197. 10
      amarok/src/magnatunebrowser/magnatunepurchasedialog.h
  198. 50
      amarok/src/magnatunebrowser/magnatunepurchasehandler.cpp
  199. 16
      amarok/src/magnatunebrowser/magnatunepurchasehandler.h
  200. 12
      amarok/src/magnatunebrowser/magnatuneredownloaddialog.cpp
  201. 8
      amarok/src/magnatunebrowser/magnatuneredownloaddialog.h
  202. 42
      amarok/src/magnatunebrowser/magnatuneredownloadhandler.cpp
  203. 12
      amarok/src/magnatunebrowser/magnatuneredownloadhandler.h
  204. 52
      amarok/src/magnatunebrowser/magnatunetypes.cpp
  205. 92
      amarok/src/magnatunebrowser/magnatunetypes.h
  206. 48
      amarok/src/magnatunebrowser/magnatunexmlparser.cpp
  207. 24
      amarok/src/magnatunebrowser/magnatunexmlparser.h
  208. 648
      amarok/src/mediabrowser.cpp
  209. 254
      amarok/src/mediabrowser.h
  210. 162
      amarok/src/mediadevice/daap/daapclient.cpp
  211. 56
      amarok/src/mediadevice/daap/daapclient.h
  212. 34
      amarok/src/mediadevice/daap/daapreader/authentication/contentfetcher.cpp
  213. 18
      amarok/src/mediadevice/daap/daapreader/authentication/contentfetcher.h
  214. 108
      amarok/src/mediadevice/daap/daapreader/reader.cpp
  215. 54
      amarok/src/mediadevice/daap/daapreader/reader.h
  216. 12
      amarok/src/mediadevice/daap/daapserver.cpp
  217. 2
      amarok/src/mediadevice/daap/daapserver.h
  218. 26
      amarok/src/mediadevice/daap/proxy.cpp
  219. 8
      amarok/src/mediadevice/daap/proxy.h
  220. 166
      amarok/src/mediadevice/generic/genericmediadevice.cpp
  221. 52
      amarok/src/mediadevice/generic/genericmediadevice.h
  222. 76
      amarok/src/mediadevice/generic/genericmediadeviceconfigdialog.ui.h
  223. 122
      amarok/src/mediadevice/ifp/ifpmediadevice.cpp
  224. 32
      amarok/src/mediadevice/ifp/ifpmediadevice.h
  225. 318
      amarok/src/mediadevice/ipod/ipodmediadevice.cpp
  226. 58
      amarok/src/mediadevice/ipod/ipodmediadevice.h
  227. 160
      amarok/src/mediadevice/mtp/mtpmediadevice.cpp
  228. 64
      amarok/src/mediadevice/mtp/mtpmediadevice.h
  229. 82
      amarok/src/mediadevice/njb/njbmediadevice.cpp
  230. 46
      amarok/src/mediadevice/njb/njbmediadevice.h
  231. 18
      amarok/src/mediadevice/njb/playlist.cpp
  232. 18
      amarok/src/mediadevice/njb/playlist.h
  233. 30
      amarok/src/mediadevice/njb/track.cpp
  234. 10
      amarok/src/mediadevice/njb/track.h
  235. 44
      amarok/src/mediadevice/riokarma/riokarmamediadevice.cpp
  236. 24
      amarok/src/mediadevice/riokarma/riokarmamediadevice.h
  237. 40
      amarok/src/mediadevicemanager.cpp
  238. 18
      amarok/src/mediadevicemanager.h
  239. 94
      amarok/src/medium.cpp
  240. 68
      amarok/src/medium.h
  241. 120
      amarok/src/mediumpluginmanager.cpp
  242. 56
      amarok/src/mediumpluginmanager.h
  243. 284
      amarok/src/metabundle.cpp
  244. 180
      amarok/src/metabundle.h
  245. 60
      amarok/src/metabundlesaver.cpp
  246. 12
      amarok/src/metabundlesaver.h
  247. 4
      amarok/src/metadata/tplugins.cpp
  248. 156
      amarok/src/moodbar.cpp
  249. 40
      amarok/src/moodbar.h
  250. 112
      amarok/src/mountpointmanager.cpp
  251. 44
      amarok/src/mountpointmanager.h
  252. 316
      amarok/src/multitabbar.cpp
  253. 100
      amarok/src/multitabbar.h
  254. 26
      amarok/src/multitabbar_p.h
  255. 8
      amarok/src/mydiroperator.cpp
  256. 4
      amarok/src/mydiroperator.h
  257. 56
      amarok/src/organizecollectiondialog.ui.h
  258. 230
      amarok/src/osd.cpp
  259. 62
      amarok/src/osd.h
  260. 24
      amarok/src/pixmapviewer.cpp
  261. 20
      amarok/src/pixmapviewer.h
  262. 246
      amarok/src/playerwindow.cpp
  263. 106
      amarok/src/playerwindow.h
  264. 704
      amarok/src/playlist.cpp
  265. 210
      amarok/src/playlist.h
  266. 790
      amarok/src/playlistbrowser.cpp
  267. 186
      amarok/src/playlistbrowser.h
  268. 712
      amarok/src/playlistbrowseritem.cpp
  269. 258
      amarok/src/playlistbrowseritem.h
  270. 118
      amarok/src/playlistitem.cpp
  271. 74
      amarok/src/playlistitem.h
  272. 252
      amarok/src/playlistloader.cpp
  273. 70
      amarok/src/playlistloader.h
  274. 62
      amarok/src/playlistselection.cpp
  275. 20
      amarok/src/playlistselection.h
  276. 280
      amarok/src/playlistwindow.cpp
  277. 46
      amarok/src/playlistwindow.h
  278. 6
      amarok/src/plugin/plugin.cpp
  279. 16
      amarok/src/plugin/plugin.h
  280. 6
      amarok/src/plugin/pluginconfig.h
  281. 18
      amarok/src/pluginmanager.cpp
  282. 10
      amarok/src/pluginmanager.h
  283. 140
      amarok/src/podcastbundle.h
  284. 42
      amarok/src/podcastsettings.cpp
  285. 30
      amarok/src/podcastsettings.h
  286. 54
      amarok/src/prettypopupmenu.cpp
  287. 26
      amarok/src/prettypopupmenu.h
  288. 48
      amarok/src/qstringx.h
  289. 170
      amarok/src/queuemanager.cpp
  290. 28
      amarok/src/queuemanager.h
  291. 48
      amarok/src/refreshimages.cpp
  292. 16
      amarok/src/refreshimages.h
  293. 80
      amarok/src/scancontroller.cpp
  294. 46
      amarok/src/scancontroller.h
  295. 228
      amarok/src/scriptmanager.cpp
  296. 86
      amarok/src/scriptmanager.h
  297. 16
      amarok/src/scripts/graphequalizer/eqdialog.ui.h
  298. 88
      amarok/src/scripts/graphequalizer/equalizercanvasview.cpp
  299. 46
      amarok/src/scripts/graphequalizer/equalizercanvasview.h
  300. 16
      amarok/src/scripts/graphequalizer/equalizerdialog.cpp
  301. 2
      amarok/src/scripts/graphequalizer/equalizerdialog.h
  302. 18
      amarok/src/scripts/graphequalizer/main.cpp
  303. 16
      amarok/src/scripts/graphequalizer/stdinreader.h
  304. 170
      amarok/src/scrobbler.cpp
  305. 86
      amarok/src/scrobbler.h
  306. 168
      amarok/src/sliderwidget.cpp
  307. 60
      amarok/src/sliderwidget.h
  308. 284
      amarok/src/smartplaylisteditor.cpp
  309. 66
      amarok/src/smartplaylisteditor.h
  310. 58
      amarok/src/socketserver.cpp
  311. 28
      amarok/src/socketserver.h
  312. 30
      amarok/src/starmanager.cpp
  313. 56
      amarok/src/starmanager.h
  314. 224
      amarok/src/statistics.cpp
  315. 66
      amarok/src/statistics.h
  316. 28
      amarok/src/statusbar/overlayWidget.cpp
  317. 14
      amarok/src/statusbar/overlayWidget.h
  318. 66
      amarok/src/statusbar/popupMessage.cpp
  319. 28
      amarok/src/statusbar/popupMessage.h
  320. 24
      amarok/src/statusbar/progressBar.cpp
  321. 24
      amarok/src/statusbar/progressBar.h
  322. 68
      amarok/src/statusbar/queueLabel.cpp
  323. 28
      amarok/src/statusbar/queueLabel.h
  324. 40
      amarok/src/statusbar/selectLabel.h
  325. 54
      amarok/src/statusbar/squeezedtextlabel.cpp
  326. 18
      amarok/src/statusbar/squeezedtextlabel.h
  327. 226
      amarok/src/statusbar/statusBarBase.cpp
  328. 94
      amarok/src/statusbar/statusBarBase.h
  329. 52
      amarok/src/statusbar/statusbar.cpp
  330. 18
      amarok/src/statusbar/statusbar.h
  331. 8
      amarok/src/statusbar/timeLabel.h
  332. 32
      amarok/src/statusbar/toggleLabel.h
  333. 52
      amarok/src/systray.cpp
  334. 20
      amarok/src/systray.h
  335. 324
      amarok/src/tagdialog.cpp
  336. 70
      amarok/src/tagdialog.h
  337. 68
      amarok/src/tagguesser.cpp
  338. 74
      amarok/src/tagguesser.h
  339. 46
      amarok/src/tagguesserconfigdialog.ui.h
  340. 74
      amarok/src/threadmanager.cpp
  341. 68
      amarok/src/threadmanager.h
  342. 118
      amarok/src/tooltip.cpp
  343. 36
      amarok/src/tooltip.h
  344. 14
      amarok/src/trackpickerdialog.cpp
  345. 2
      amarok/src/trackpickerdialog.h
  346. 96
      amarok/src/tracktooltip.cpp
  347. 32
      amarok/src/tracktooltip.h
  348. 54
      amarok/src/transferdialog.cpp
  349. 14
      amarok/src/transferdialog.h
  350. 38
      amarok/src/xmlloader.cpp
  351. 54
      amarok/src/xmlloader.h
  352. 26
      amarok/src/xmlloader_p.h
  353. 116
      amarok/src/xspfplaylist.cpp
  354. 44
      amarok/src/xspfplaylist.h

@ -26,22 +26,22 @@ void Options1::init()
//kcfg_CustomRatingsColors->setChecked( AmarokConfig::customRatingsColors() );
//slotUpdateRatingsFrame();
QStringList browsers;
TQStringList browsers;
browsers << "konqueror" << "firefox" << "opera" << "galeon" << "epiphany"
<< "safari" << "mozilla";
// Remove browsers which are not actually installed
for( QStringList::Iterator it = browsers.begin(), end = browsers.end(); it != end; ) {
for( TQStringList::Iterator it = browsers.begin(), end = browsers.end(); it != end; ) {
if( KStandardDirs::findExe( *it ).isEmpty() )
it = browsers.erase( it );
else
++it;
}
#ifdef Q_WS_MAC
if ( KStandardDirs::findExe( "open" ) != QString::null )
if ( KStandardDirs::findExe( "open" ) != TQString::null )
browsers.prepend( i18n( "Default Browser" ) );
#else
if ( KStandardDirs::findExe( "kfmclient" ) != QString::null )
if ( KStandardDirs::findExe( "kfmclient" ) != TQString::null )
browsers.prepend( i18n( "Default KDE Browser" ) );
#endif
@ -146,7 +146,7 @@ void Options1::slotFixedHalfStarColor()
void Options1::slotPickColorHalf()
{
QColor halfStar;
TQColor halfStar;
int result = KColorDialog::getColor( halfStar );
if( result == KColorDialog::Accepted )
{
@ -158,7 +158,7 @@ void Options1::slotPickColorHalf()
void Options1::slotPickColorOne()
{
QColor oneStar;
TQColor oneStar;
int result = KColorDialog::getColor( oneStar );
if( result == KColorDialog::Accepted )
{
@ -170,7 +170,7 @@ void Options1::slotPickColorOne()
void Options1::slotPickColorTwo()
{
QColor twoStar;
TQColor twoStar;
int result = KColorDialog::getColor( twoStar );
if( result == KColorDialog::Accepted )
{
@ -182,7 +182,7 @@ void Options1::slotPickColorTwo()
void Options1::slotPickColorThree()
{
QColor threeStar;
TQColor threeStar;
int result = KColorDialog::getColor( threeStar );
if( result == KColorDialog::Accepted )
{
@ -194,7 +194,7 @@ void Options1::slotPickColorThree()
void Options1::slotPickColorFour()
{
QColor fourStar;
TQColor fourStar;
int result = KColorDialog::getColor( fourStar );
if( result == KColorDialog::Accepted )
{
@ -206,7 +206,7 @@ void Options1::slotPickColorFour()
void Options1::slotPickColorFive()
{
QColor fiveStar;
TQColor fiveStar;
int result = KColorDialog::getColor( fiveStar );
if( result == KColorDialog::Accepted )
{

@ -26,9 +26,9 @@
#include <ktar.h>
#include <kio/netaccess.h>
#include <qdir.h>
#include <qfileinfo.h>
#include <qtimer.h>
#include <tqdir.h>
#include <tqfileinfo.h>
#include <tqtimer.h>
////////////////////////////////////////////////////////////////////////////////
@ -41,11 +41,11 @@
class AmarokThemeNewStuff : public KNewStuff
{
public:
AmarokThemeNewStuff(const QString &type, QWidget *parentWidget=0)
AmarokThemeNewStuff(const TQString &type, TQWidget *parentWidget=0)
: KNewStuff( type, parentWidget )
{}
bool install( const QString& fileName )
bool install( const TQString& fileName )
{
KTar archive( fileName );
@ -54,7 +54,7 @@ class AmarokThemeNewStuff : public KNewStuff
return false;
}
const QString destination = Amarok::saveLocation( "themes/" );
const TQString destination = Amarok::saveLocation( "themes/" );
debug() << "copying to " << destination << endl;
const KArchiveDirectory* archiveDir = archive.directory();
archiveDir->copyTo( destination, true );
@ -62,7 +62,7 @@ class AmarokThemeNewStuff : public KNewStuff
return true;
}
virtual bool createUploadFile( const QString& ) { return false; }
virtual bool createUploadFile( const TQString& ) { return false; }
};
@ -80,7 +80,7 @@ void Options2::init()
// This method is basically lifted from ScriptManager::slotInstallScript()
void Options2::installPushButton_clicked()
{
KFileDialog dia( QString::null, "*.tar *.tar.bz2 *.tar.gz|" + i18n( "Style Packages (*.tar, *.tar.bz2, *.tar.gz)" ), 0, 0, true );
KFileDialog dia( TQString::null, "*.tar *.tar.bz2 *.tar.gz|" + i18n( "Style Packages (*.tar, *.tar.bz2, *.tar.gz)" ), 0, 0, true );
kapp->setTopWidget( &dia );
dia.setCaption( kapp->makeStdCaption( i18n( "Select Style Package" ) ) );
dia.setMode( KFile::File | KFile::ExistingOnly );
@ -93,7 +93,7 @@ void Options2::installPushButton_clicked()
return;
}
const QString destination = Amarok::saveLocation( "themes/" );
const TQString destination = Amarok::saveLocation( "themes/" );
debug() << "copying to " << destination << endl;
const KArchiveDirectory* archiveDir = archive.directory();
archiveDir->copyTo( destination, true );
@ -117,21 +117,21 @@ void Options2::retrievePushButton_clicked()
d->setType( "amarok/theme" );
// you have to do this by hand when providing your own Engine
KNS::ProviderLoader *p = new KNS::ProviderLoader( this );
connect( p, SIGNAL( providersLoaded(Provider::List*) ), d, SLOT( slotProviders(Provider::List *) ) );
connect( p, TQT_SIGNAL( providersLoaded(Provider::List*) ), d, TQT_SLOT( slotProviders(Provider::List *) ) );
p->load( "amarok/theme", "http://amarok.kde.org/knewstuff/amarokthemes-providers.xml" );
connect( d, SIGNAL( finished() ), d, SLOT( delayedDestruct() ) );
connect( d, SIGNAL( finished() ), this, SLOT( updateStyleComboBox() ) );
connect( d, TQT_SIGNAL( finished() ), d, TQT_SLOT( delayedDestruct() ) );
connect( d, TQT_SIGNAL( finished() ), this, TQT_SLOT( updateStyleComboBox() ) );
// Due to kdelibs idiocy, KNS::DownloadDialog is /always/ non-modal. So we have to
// ensure that closing the settings dialog before the DownloadDialog doesn't crash.
QTimer::singleShot( 0, d, SLOT( exec() ) );
TQTimer::singleShot( 0, d, TQT_SLOT( exec() ) );
}
void Options2::uninstallPushButton_clicked()
{
const QString name = styleComboBox->currentText();
const TQString name = styleComboBox->currentText();
if ( name == "Default" )
return;
@ -160,10 +160,10 @@ void Options2::uninstallPushButton_clicked()
}
void Options2::styleComboBox_activated(const QString& s)
void Options2::styleComboBox_activated(const TQString& s)
{
bool disable = false;
QDir dir( Amarok::saveLocation( "themes/" ) + s );
TQDir dir( Amarok::saveLocation( "themes/" ) + s );
if( !dir.exists() )
disable = true;
@ -177,9 +177,9 @@ void Options2::updateStyleComboBox()
styleComboBox->clear();
const QStringList styleList = kapp->dirs()->findAllResources("data","amarok/themes/*/stylesheet.css", false);
QStringList sortedList;
foreach (styleList) sortedList.append(QFileInfo( *it ).dir().dirName());
const TQStringList styleList = kapp->dirs()->findAllResources("data","amarok/themes/*/stylesheet.css", false);
TQStringList sortedList;
foreach (styleList) sortedList.append(TQFileInfo( *it ).dir().dirName());
sortedList.append( "Default" );
sortedList.sort();
foreach(sortedList) styleComboBox->insertItem(*it);

@ -26,7 +26,7 @@ email : fh@ez.no
#include "amarokconfig.h"
#include <klocale.h>
#include "qstringx.h"
#include <qtooltip.h>
#include <tqtooltip.h>
void Options5::init()
@ -35,26 +35,26 @@ void Options5::init()
m_pOSDPreview->setAlignment( static_cast<OSDWidget::Alignment>( AmarokConfig::osdAlignment() ) );
m_pOSDPreview->setOffset( AmarokConfig::osdYOffset() );
connect( m_pOSDPreview, SIGNAL( positionChanged() ), SLOT( slotPositionChanged() ) );
connect( m_pOSDPreview, TQT_SIGNAL( positionChanged() ), TQT_SLOT( slotPositionChanged() ) );
const int numScreens = QApplication::desktop()->numScreens();
const int numScreens = TQApplication::desktop()->numScreens();
for( int i = 0; i < numScreens; i++ )
kcfg_OsdScreen->insertItem( QString::number( i ) );
connect( kcfg_OsdDrawShadow, SIGNAL( toggled(bool) ),
m_pOSDPreview, SLOT( setDrawShadow(bool) ) );
connect( kcfg_OsdTextColor, SIGNAL( changed(const QColor&) ),
m_pOSDPreview, SLOT( setTextColor(const QColor&) ) );
connect( kcfg_OsdUseCustomColors, SIGNAL( toggled(bool) ),
this, SLOT( useCustomColorsToggled(bool) ) );
connect( kcfg_OsdBackgroundColor, SIGNAL( changed(const QColor&) ),
m_pOSDPreview, SLOT( setBackgroundColor(const QColor&) ) );
connect( kcfg_OsdFont, SIGNAL( fontSelected(const QFont&) ),
m_pOSDPreview, SLOT( setFont(const QFont&) ) );
connect( kcfg_OsdScreen, SIGNAL( activated(int) ),
m_pOSDPreview, SLOT( setScreen(int) ) );
connect( kcfg_OsdEnabled, SIGNAL( toggled(bool) ),
m_pOSDPreview, SLOT( setShown(bool) ) );
kcfg_OsdScreen->insertItem( TQString::number( i ) );
connect( kcfg_OsdDrawShadow, TQT_SIGNAL( toggled(bool) ),
m_pOSDPreview, TQT_SLOT( setDrawShadow(bool) ) );
connect( kcfg_OsdTextColor, TQT_SIGNAL( changed(const TQColor&) ),
m_pOSDPreview, TQT_SLOT( setTextColor(const TQColor&) ) );
connect( kcfg_OsdUseCustomColors, TQT_SIGNAL( toggled(bool) ),
this, TQT_SLOT( useCustomColorsToggled(bool) ) );
connect( kcfg_OsdBackgroundColor, TQT_SIGNAL( changed(const TQColor&) ),
m_pOSDPreview, TQT_SLOT( setBackgroundColor(const TQColor&) ) );
connect( kcfg_OsdFont, TQT_SIGNAL( fontSelected(const TQFont&) ),
m_pOSDPreview, TQT_SLOT( setFont(const TQFont&) ) );
connect( kcfg_OsdScreen, TQT_SIGNAL( activated(int) ),
m_pOSDPreview, TQT_SLOT( setScreen(int) ) );
connect( kcfg_OsdEnabled, TQT_SIGNAL( toggled(bool) ),
m_pOSDPreview, TQT_SLOT( setShown(bool) ) );
Amarok::QStringx text = i18n(
"<h3>Tags Displayed in OSD</h3>"
@ -83,7 +83,7 @@ void Options5::init()
"<pre>%19</pre>"
"Will not show <b>Score: <i>%score</i></b> if the track has no score." );
QToolTip::add( kcfg_OsdText, text.args( QStringList()
TQToolTip::add( kcfg_OsdText, text.args( TQStringList()
// we don't translate these, it is not sensible to do so
<< "%title" << "%album" << "%artist" << "%genre" << "%bitrate"
<< "%year " << "%length" << "%track" << "%filename" << "%directory"
@ -104,13 +104,13 @@ Options5::slotPositionChanged()
}
void
Options5::hideEvent( QHideEvent* )
Options5::hideEvent( TQHideEvent* )
{
m_pOSDPreview->hide();
}
void
Options5::showEvent( QShowEvent* )
Options5::showEvent( TQShowEvent* )
{
useCustomColorsToggled( kcfg_OsdUseCustomColors->isChecked() );

@ -12,7 +12,7 @@
** destructor.
*****************************************************************************/
void Options8::updateServices( const QString &s )
void Options8::updateServices( const TQString &s )
{
bool empty = s.isEmpty();
groupBox2->setEnabled( !empty );

@ -18,8 +18,8 @@
#include "socketserver.h" //Vis::Selector::showInstance()
#include "threadmanager.h"
#include <qpixmap.h>
#include <qtooltip.h>
#include <tqpixmap.h>
#include <tqtooltip.h>
#include <kaction.h>
#include <khelpmenu.h>
@ -51,7 +51,7 @@ using namespace Amarok;
KHelpMenu *Menu::s_helpMenu = 0;
static void
safePlug( KActionCollection *ac, const char *name, QWidget *w )
safePlug( KActionCollection *ac, const char *name, TQWidget *w )
{
if( ac )
{
@ -69,11 +69,11 @@ safePlug( KActionCollection *ac, const char *name, QWidget *w )
MenuAction::MenuAction( KActionCollection *ac )
: KAction( i18n( "Amarok Menu" ), 0, ac, "amarok_menu" )
{
setShortcutConfigurable ( false ); //FIXME disabled as it doesn't work, should use QCursor::pos()
setShortcutConfigurable ( false ); //FIXME disabled as it doesn't work, should use TQCursor::pos()
}
int
MenuAction::plug( QWidget *w, int index )
MenuAction::plug( TQWidget *w, int index )
{
KToolBar *bar = dynamic_cast<KToolBar*>(w);
@ -82,12 +82,12 @@ MenuAction::plug( QWidget *w, int index )
const int id = KAction::getToolButtonID();
addContainer( bar, id );
connect( bar, SIGNAL( destroyed() ), SLOT( slotDestroyed() ) );
connect( bar, TQT_SIGNAL( destroyed() ), TQT_SLOT( slotDestroyed() ) );
//TODO create menu on demand
//TODO create menu above and aligned within window
//TODO make the arrow point upwards!
bar->insertButton( QString::null, id, true, i18n( "Menu" ), index );
bar->insertButton( TQString::null, id, true, i18n( "Menu" ), index );
bar->alignItemRight( id );
KToolBarButton* button = bar->getButton( id );
@ -120,7 +120,7 @@ Menu::Menu()
insertItem( SmallIconSet( Amarok::icon( "covermanager" ) ), i18n( "C&over Manager" ), ID_SHOW_COVER_MANAGER );
safePlug( ac, "queue_manager", this );
insertItem( SmallIconSet( Amarok::icon( "visualizations" ) ), i18n( "&Visualizations" ), ID_SHOW_VIS_SELECTOR );
insertItem( SmallIconSet( Amarok::icon( "equalizer" ) ), i18n( "E&qualizer" ), kapp, SLOT( slotConfigEqualizer() ), 0, ID_CONFIGURE_EQUALIZER );
insertItem( SmallIconSet( Amarok::icon( "equalizer" ) ), i18n( "E&qualizer" ), kapp, TQT_SLOT( slotConfigEqualizer() ), 0, ID_CONFIGURE_EQUALIZER );
safePlug( ac, "script_manager", this );
safePlug( ac, "statistics", this );
@ -152,8 +152,8 @@ Menu::Menu()
safePlug( ac, KStdAction::name(KStdAction::Quit), this );
connect( this, SIGNAL( aboutToShow() ), SLOT( slotAboutToShow() ) );
connect( this, SIGNAL( activated(int) ), SLOT( slotActivated(int) ) );
connect( this, TQT_SIGNAL( aboutToShow() ), TQT_SLOT( slotAboutToShow() ) );
connect( this, TQT_SIGNAL( activated(int) ), TQT_SLOT( slotActivated(int) ) );
setItemEnabled( ID_SHOW_VIS_SELECTOR, false );
#ifdef HAVE_LIBVISUAL
@ -169,7 +169,7 @@ Menu::instance()
}
KPopupMenu*
Menu::helpMenu( QWidget *parent ) //STATIC
Menu::helpMenu( TQWidget *parent ) //STATIC
{
extern KAboutData aboutData;
@ -213,13 +213,13 @@ PlayPauseAction::PlayPauseAction( KActionCollection *ac )
{
engineStateChanged( EngineController::engine()->state() );
connect( this, SIGNAL(activated()), EngineController::instance(), SLOT(playPause()) );
connect( this, TQT_SIGNAL(activated()), EngineController::instance(), TQT_SLOT(playPause()) );
}
void
PlayPauseAction::engineStateChanged( Engine::State state, Engine::State /*oldState*/ )
{
QString text;
TQString text;
switch( state ) {
case Engine::Playing:
@ -243,9 +243,9 @@ PlayPauseAction::engineStateChanged( Engine::State state, Engine::State /*oldSt
//update menu texts for this special action
for( int x = 0; x < containerCount(); ++x ) {
QWidget *w = container( x );
if( w->inherits( "QPopupMenu" ) )
static_cast<QPopupMenu*>(w)->changeItem( itemId( x ), text );
TQWidget *w = container( x );
if( w->inherits( "TQPopupMenu" ) )
static_cast<TQPopupMenu*>(w)->changeItem( itemId( x ), text );
//TODO KToolBar sucks so much
// else if( w->inherits( "KToolBar" ) )
// static_cast<KToolBar*>(w)->getButton( itemId( x ) )->setText( text );
@ -264,7 +264,7 @@ AnalyzerAction::AnalyzerAction( KActionCollection *ac )
}
int
AnalyzerAction::plug( QWidget *w, int index )
AnalyzerAction::plug( TQWidget *w, int index )
{
//NOTE the analyzer will be deleted when the toolbar is deleted or cleared()
//we are not designed for unplugging() yet so there would be a leak if that happens
@ -277,8 +277,8 @@ AnalyzerAction::plug( QWidget *w, int index )
const int id = KAction::getToolButtonID();
addContainer( w, id );
connect( w, SIGNAL( destroyed() ), SLOT( slotDestroyed() ) );
QWidget *container = new AnalyzerContainer( w );
connect( w, TQT_SIGNAL( destroyed() ), TQT_SLOT( slotDestroyed() ) );
TQWidget *container = new AnalyzerContainer( w );
bar->insertWidget( id, 0, container, index );
bar->setItemAutoSized( id, true );
@ -288,16 +288,16 @@ AnalyzerAction::plug( QWidget *w, int index )
}
AnalyzerContainer::AnalyzerContainer( QWidget *parent )
: QWidget( parent, "AnalyzerContainer" )
AnalyzerContainer::AnalyzerContainer( TQWidget *parent )
: TQWidget( parent, "AnalyzerContainer" )
, m_child( 0 )
{
QToolTip::add( this, i18n( "Click for more analyzers" ) );
TQToolTip::add( this, i18n( "Click for more analyzers" ) );
changeAnalyzer();
}
void
AnalyzerContainer::resizeEvent( QResizeEvent *)
AnalyzerContainer::resizeEvent( TQResizeEvent *)
{
m_child->resize( size() );
}
@ -312,7 +312,7 @@ void AnalyzerContainer::changeAnalyzer()
}
void
AnalyzerContainer::mousePressEvent( QMouseEvent *e)
AnalyzerContainer::mousePressEvent( TQMouseEvent *e)
{
if( e->button() == Qt::LeftButton ) {
AmarokConfig::setCurrentPlaylistAnalyzer( AmarokConfig::currentPlaylistAnalyzer() + 1 );
@ -321,7 +321,7 @@ AnalyzerContainer::mousePressEvent( QMouseEvent *e)
}
void
AnalyzerContainer::contextMenuEvent( QContextMenuEvent *e)
AnalyzerContainer::contextMenuEvent( TQContextMenuEvent *e)
{
#if defined HAVE_LIBVISUAL
KPopupMenu menu;
@ -338,7 +338,7 @@ AnalyzerContainer::contextMenuEvent( QContextMenuEvent *e)
// ToggleAction
//////////////////////////////////////////////////////////////////////////////////////////
ToggleAction::ToggleAction( const QString &text, void ( *f ) ( bool ), KActionCollection* const ac, const char *name )
ToggleAction::ToggleAction( const TQString &text, void ( *f ) ( bool ), KActionCollection* const ac, const char *name )
: KToggleAction( text, 0, ac, name )
, m_function( f )
{}
@ -368,7 +368,7 @@ void ToggleAction::setEnabled( bool b )
// SelectAction
//////////////////////////////////////////////////////////////////////////////////////////
SelectAction::SelectAction( const QString &text, void ( *f ) ( int ), KActionCollection* const ac, const char *name )
SelectAction::SelectAction( const TQString &text, void ( *f ) ( int ), KActionCollection* const ac, const char *name )
: KSelectAction( text, 0, ac, name )
, m_function( f )
{ }
@ -394,23 +394,23 @@ void SelectAction::setEnabled( bool b )
if( announce ) emit enabled( b );
}
void SelectAction::setIcons( QStringList icons )
void SelectAction::setIcons( TQStringList icons )
{
m_icons = icons;
for( int i = 0, n = items().count(); i < n; ++i )
popupMenu()->changeItem( i, kapp->iconLoader()->loadIconSet( *icons.at( i ), KIcon::Small ), popupMenu()->text( i ) );
}
QStringList SelectAction::icons() const { return m_icons; }
TQStringList SelectAction::icons() const { return m_icons; }
QString SelectAction::currentIcon() const
TQString SelectAction::currentIcon() const
{
if( m_icons.count() )
return *m_icons.at( currentItem() );
return QString();
return TQString();
}
QString SelectAction::currentText() const {
TQString SelectAction::currentText() const {
return KSelectAction::currentText() + "<br /><br />" + i18n("Click to change");
}
@ -425,7 +425,7 @@ VolumeAction::VolumeAction( KActionCollection *ac )
{}
int
VolumeAction::plug( QWidget *w, int index )
VolumeAction::plug( TQWidget *w, int index )
{
//NOTE we only support one plugging currently
@ -434,13 +434,13 @@ VolumeAction::plug( QWidget *w, int index )
m_slider = new Amarok::VolumeSlider( w, Amarok::VOLUME_MAX );
m_slider->setName( "ToolBarVolume" );
m_slider->setValue( AmarokConfig::masterVolume() );
m_slider->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Ignored );
m_slider->setSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Ignored );
QToolTip::add( m_slider, i18n( "Volume control" ) );
TQToolTip::add( m_slider, i18n( "Volume control" ) );
EngineController* const ec = EngineController::instance();
connect( m_slider, SIGNAL(sliderMoved( int )), ec, SLOT(setVolume( int )) );
connect( m_slider, SIGNAL(sliderReleased( int )), ec, SLOT(setVolume( int )) );
connect( m_slider, TQT_SIGNAL(sliderMoved( int )), ec, TQT_SLOT(setVolume( int )) );
connect( m_slider, TQT_SIGNAL(sliderReleased( int )), ec, TQT_SLOT(setVolume( int )) );
static_cast<KToolBar*>(w)->insertWidget( KAction::getToolButtonID(), 0, m_slider, index );
@ -461,9 +461,9 @@ VolumeAction::engineVolumeChanged( int value )
RandomAction::RandomAction( KActionCollection *ac ) :
SelectAction( i18n( "Ra&ndom" ), &AmarokConfig::setRandomMode, ac, "random_mode" )
{
setItems( QStringList() << i18n( "&Off" ) << i18n( "&Tracks" ) << i18n( "&Albums" ) );
setItems( TQStringList() << i18n( "&Off" ) << i18n( "&Tracks" ) << i18n( "&Albums" ) );
setCurrentItem( AmarokConfig::randomMode() );
setIcons( QStringList() << Amarok::icon( "random_no" ) << Amarok::icon( "random_track" ) << Amarok::icon( "random_album" ) );
setIcons( TQStringList() << Amarok::icon( "random_no" ) << Amarok::icon( "random_track" ) << Amarok::icon( "random_album" ) );
}
void
@ -481,7 +481,7 @@ RandomAction::setCurrentItem( int n )
FavorAction::FavorAction( KActionCollection *ac ) :
SelectAction( i18n( "&Favor" ), &AmarokConfig::setFavorTracks, ac, "favor_tracks" )
{
setItems( QStringList() << i18n( "Off" )
setItems( TQStringList() << i18n( "Off" )
<< i18n( "Higher &Scores" )
<< i18n( "Higher &Ratings" )
<< i18n( "Not Recently &Played" ) );
@ -496,9 +496,9 @@ FavorAction::FavorAction( KActionCollection *ac ) :
RepeatAction::RepeatAction( KActionCollection *ac ) :
SelectAction( i18n( "&Repeat" ), &AmarokConfig::setRepeat, ac, "repeat" )
{
setItems( QStringList() << i18n( "&Off" ) << i18n( "&Track" )
setItems( TQStringList() << i18n( "&Off" ) << i18n( "&Track" )
<< i18n( "&Album" ) << i18n( "&Playlist" ) );
setIcons( QStringList() << Amarok::icon( "repeat_no" ) << Amarok::icon( "repeat_track" ) << Amarok::icon( "repeat_album" ) << Amarok::icon( "repeat_playlist" ) );
setIcons( TQStringList() << Amarok::icon( "repeat_no" ) << Amarok::icon( "repeat_track" ) << Amarok::icon( "repeat_album" ) << Amarok::icon( "repeat_playlist" ) );
setCurrentItem( AmarokConfig::repeat() );
}
@ -510,7 +510,7 @@ BurnMenuAction::BurnMenuAction( KActionCollection *ac )
{}
int
BurnMenuAction::plug( QWidget *w, int index )
BurnMenuAction::plug( TQWidget *w, int index )
{
KToolBar *bar = dynamic_cast<KToolBar*>(w);
@ -519,9 +519,9 @@ BurnMenuAction::plug( QWidget *w, int index )
const int id = KAction::getToolButtonID();
addContainer( bar, id );
connect( bar, SIGNAL( destroyed() ), SLOT( slotDestroyed() ) );
connect( bar, TQT_SIGNAL( destroyed() ), TQT_SLOT( slotDestroyed() ) );
bar->insertButton( QString::null, id, true, i18n( "Burn" ), index );
bar->insertButton( TQString::null, id, true, i18n( "Burn" ), index );
KToolBarButton* button = bar->getButton( id );
button->setPopup( Amarok::BurnMenu::instance() );
@ -539,8 +539,8 @@ BurnMenu::BurnMenu()
insertItem( i18n("Selected Tracks"), SELECTED_TRACKS );
//TODO add "album" and "all tracks by artist"
connect( this, SIGNAL( aboutToShow() ), SLOT( slotAboutToShow() ) );
connect( this, SIGNAL( activated(int) ), SLOT( slotActivated(int) ) );
connect( this, TQT_SIGNAL( aboutToShow() ), TQT_SLOT( slotAboutToShow() ) );
connect( this, TQT_SIGNAL( activated(int) ), TQT_SLOT( slotActivated(int) ) );
}
KPopupMenu*
@ -574,11 +574,11 @@ BurnMenu::slotActivated( int index )
//////////////////////////////////////////////////////////////////////////////////////////
StopAction::StopAction( KActionCollection *ac )
: KAction( i18n( "Stop" ), Amarok::icon( "stop" ), 0, EngineController::instance(), SLOT( stop() ), ac, "stop" )
: KAction( i18n( "Stop" ), Amarok::icon( "stop" ), 0, EngineController::instance(), TQT_SLOT( stop() ), ac, "stop" )
{}
int
StopAction::plug( QWidget *w, int index )
StopAction::plug( TQWidget *w, int index )
{
KToolBar *bar = dynamic_cast<KToolBar*>(w);
@ -587,9 +587,9 @@ StopAction::plug( QWidget *w, int index )
const int id = KAction::getToolButtonID();
addContainer( bar, id );
connect( bar, SIGNAL( destroyed() ), SLOT( slotDestroyed() ) );
connect( bar, TQT_SIGNAL( destroyed() ), TQT_SLOT( slotDestroyed() ) );
bar->insertButton( QString::null, id, SIGNAL( clicked() ), EngineController::instance(), SLOT( stop() ),
bar->insertButton( TQString::null, id, TQT_SIGNAL( clicked() ), EngineController::instance(), TQT_SLOT( stop() ),
true, i18n( "Stop" ), index );
KToolBarButton* button = bar->getButton( id );
@ -610,8 +610,8 @@ StopMenu::StopMenu()
insertItem( i18n("After Current Track"), AFTER_TRACK );
insertItem( i18n("After Queue"), AFTER_QUEUE );
connect( this, SIGNAL( aboutToShow() ), SLOT( slotAboutToShow() ) );
connect( this, SIGNAL( activated(int) ), SLOT( slotActivated(int) ) );
connect( this, TQT_SIGNAL( aboutToShow() ), TQT_SLOT( slotAboutToShow() ) );
connect( this, TQT_SIGNAL( activated(int) ), TQT_SLOT( slotActivated(int) ) );
}
KPopupMenu*

@ -13,7 +13,7 @@
#include <kaction.h>
#include <kactionclasses.h>
#include <qguardedptr.h>
#include <tqguardedptr.h>
class KActionCollection;
class KHelpMenu;
@ -26,7 +26,7 @@ namespace Amarok
Q_OBJECT
public:
static Menu *instance();
static KPopupMenu *helpMenu( QWidget *parent = 0 );
static KPopupMenu *helpMenu( TQWidget *parent = 0 );
enum MenuIds {
ID_CONF_DECODER,
@ -53,7 +53,7 @@ namespace Amarok
{
public:
MenuAction( KActionCollection* );
virtual int plug( QWidget*, int index = -1 );
virtual int plug( TQWidget*, int index = -1 );
};
@ -67,21 +67,21 @@ namespace Amarok
class AnalyzerContainer : public QWidget
{
public:
AnalyzerContainer( QWidget *parent );
AnalyzerContainer( TQWidget *parent );
protected:
virtual void resizeEvent( QResizeEvent* );
virtual void mousePressEvent( QMouseEvent* );
virtual void contextMenuEvent( QContextMenuEvent* );
virtual void resizeEvent( TQResizeEvent* );
virtual void mousePressEvent( TQMouseEvent* );
virtual void contextMenuEvent( TQContextMenuEvent* );
private:
void changeAnalyzer();
QWidget *m_child;
TQWidget *m_child;
};
class AnalyzerAction : public KAction
{
public:
AnalyzerAction( KActionCollection* );
virtual int plug( QWidget *, int index = -1 );
virtual int plug( TQWidget *, int index = -1 );
};
@ -89,17 +89,17 @@ namespace Amarok
{
public:
VolumeAction( KActionCollection* );
virtual int plug( QWidget *, int index = -1 );
virtual int plug( TQWidget *, int index = -1 );
private:
void engineVolumeChanged( int value );
QGuardedPtr<Amarok::VolumeSlider> m_slider;
TQGuardedPtr<Amarok::VolumeSlider> m_slider;
};
class ToggleAction : public KToggleAction
{
public:
ToggleAction( const QString &text, void ( *f ) ( bool ), KActionCollection* const ac, const char *name );
ToggleAction( const TQString &text, void ( *f ) ( bool ), KActionCollection* const ac, const char *name );
virtual void setChecked( bool b );
@ -112,23 +112,23 @@ namespace Amarok
class SelectAction : public KSelectAction
{
public:
SelectAction( const QString &text, void ( *f ) ( int ), KActionCollection* const ac, const char *name );
SelectAction( const TQString &text, void ( *f ) ( int ), KActionCollection* const ac, const char *name );
virtual void setCurrentItem( int n );
virtual void setEnabled( bool b );
virtual void setIcons( QStringList icons );
virtual void setIcons( TQStringList icons );
virtual QString currentText() const;
virtual TQString currentText() const;
QStringList icons() const;
TQStringList icons() const;
QString currentIcon() const;
TQString currentIcon() const;
private:
void ( *m_function ) ( int );
QStringList m_icons;
TQStringList m_icons;
};
@ -176,7 +176,7 @@ namespace Amarok
{
public:
BurnMenuAction( KActionCollection* );
virtual int plug( QWidget*, int index = -1 );
virtual int plug( TQWidget*, int index = -1 );
};
class StopMenu : public KPopupMenu
@ -205,7 +205,7 @@ namespace Amarok
{
public:
StopAction( KActionCollection* );
virtual int plug( QWidget*, int index = -1 );
virtual int plug( TQWidget*, int index = -1 );
};
} /* namespace Amarok */

@ -3,8 +3,8 @@
#ifndef AMAROK_H
#define AMAROK_H
#include <qnamespace.h>
#include <qstring.h>
#include <tqnamespace.h>
#include <tqstring.h>
#include <kurl.h> // recursiveUrlExpand
#include <kprocio.h> //Amarok::ProcIO
@ -15,15 +15,15 @@
class KActionCollection;
class KConfig;
class QColor;
class QDateTime;
class QEvent;
class QMutex;
class QPixmap;
class QWidget;
class TQColor;
class TQDateTime;
class TQEvent;
class TQMutex;
class TQPixmap;
class TQWidget;
class DynamicMode;
class QListView;
class QListViewItem;
class TQListView;
class TQListViewItem;
namespace KIO { class Job; }
namespace Amarok
@ -34,24 +34,24 @@ namespace Amarok
const int VOLUME_SENSITIVITY = 30; //for mouse wheels
const int GUI_THREAD_ID = 0;
extern QMutex globalDirsMutex; // defined in app.cpp
extern TQMutex globalDirsMutex; // defined in app.cpp
namespace ColorScheme
{
///eg. base of the Amarok Player-window
extern QColor Base; //Amarok::blue
extern TQColor Base; //Amarok::blue
///eg. text in the Amarok Player-window
extern QColor Text; //Qt::white
extern TQColor Text; //Qt::white
///eg. background colour for Amarok::PrettySliders
extern QColor Background; //brighter blue
extern TQColor Background; //brighter blue
///eg. outline of slider widgets in Player-window
extern QColor Foreground; //lighter blue
extern TQColor Foreground; //lighter blue
///eg. KListView alternative row color
extern QColor AltBase; //grey toned base
extern TQColor AltBase; //grey toned base
}
/** The version of the playlist XML format. Increase whenever it changes backwards-incompatibly. */
inline QString xmlVersion() { return "2.4"; }
inline TQString xmlVersion() { return "2.4"; }
/**
* Convenience function to return the KApplication instance KConfig object
@ -60,7 +60,7 @@ namespace Amarok
*/
/* FIXME: This function can lead to very bizarre and hard to figure bugs.
While we don`t fix it properly, use it like this: amarok::config( Group )->readNumEntry( ... ) */
KConfig *config( const QString &group = "General" ); //defined in app.cpp
KConfig *config( const TQString &group = "General" ); //defined in app.cpp
/**
* @return the KActionCollection used by Amarok
@ -80,30 +80,30 @@ namespace Amarok
* @param e The event you want handled in a generic fashion.
* @return true if the event was handled.
*/
bool genericEventHandler( QWidget *recipient, QEvent *e ); //defined in app.cpp
bool genericEventHandler( TQWidget *recipient, TQEvent *e ); //defined in app.cpp
/**
* Invoke the external web browser set in Amarok's configuration.
* @param url The URL to be opened in the browser.
* @return True if the browser could be started.
*/
bool invokeBrowser( const QString& url ); //defined in app.cpp
bool invokeBrowser( const TQString& url ); //defined in app.cpp
/**
* Obtain an Amarok PNG image as a QPixmap
*/
QPixmap getPNG( const QString& /*fileName*/ ); //defined in app.cpp
TQPixmap getPNG( const TQString& /*fileName*/ ); //defined in app.cpp
/**
* Obtain an Amarok JPG image as a QPixmap
*/
QPixmap getJPG( const QString& /*fileName*/ ); //defined in app.cpp
TQPixmap getJPG( const TQString& /*fileName*/ ); //defined in app.cpp
/**
* The mainWindow is the playlistWindow or the playerWindow depending on
* the configuration of Amarok
*/
QWidget *mainWindow(); //defined in app.cpp
TQWidget *mainWindow(); //defined in app.cpp
/**
* Allocate one on the stack, and it'll set the busy cursor for you until it
@ -120,7 +120,7 @@ namespace Amarok
* @param directory will be created if not existing, you MUST end the string
* with '/'
*/
LIBAMAROK_EXPORT QString saveLocation( const QString &directory = QString::null ); //defined in collectionreader.cpp
LIBAMAROK_EXPORT TQString saveLocation( const TQString &directory = TQString::null ); //defined in collectionreader.cpp
KIO::Job *trashFiles( const KURL::List &files ); //defined in app.cpp
@ -131,20 +131,20 @@ namespace Amarok
LIBAMAROK_EXPORT KURL::List recursiveUrlExpand( const KURL &url, int maxURLs = -1 ); //defined in playlistloader.cpp
LIBAMAROK_EXPORT KURL::List recursiveUrlExpand( const KURL::List &urls, int maxURLs = -1 ); //defined in playlistloader.cpp
QString verboseTimeSince( const QDateTime &datetime ); //defined in contextbrowser.cpp
TQString verboseTimeSince( const TQDateTime &datetime ); //defined in contextbrowser.cpp
QString verboseTimeSince( uint time_t ); //defined in contextbrowser.cpp
TQString verboseTimeSince( uint time_t ); //defined in contextbrowser.cpp
/**
* Function that must be used when separating contextBrowser escaped urls
*/
// defined in contextbrowser.cpp
void albumArtistTrackFromUrl( QString url, QString &artist, QString &album, QString &detail );
void albumArtistTrackFromUrl( TQString url, TQString &artist, TQString &album, TQString &detail );
/**
* @return the LOWERCASE file extension without the preceding '.', or "" if there is none
*/
inline QString extension( const QString &fileName )
inline TQString extension( const TQString &fileName )
{
return fileName.contains( '.' ) ? fileName.mid( fileName.findRev( '.' ) + 1 ).lower() : "";
}
@ -162,7 +162,7 @@ namespace Amarok
/**
* @return the last directory in @param fileName
*/
inline QString directory( const QString &fileName )
inline TQString directory( const TQString &fileName )
{
return fileName.section( '/', 0, -2 );
}
@ -178,7 +178,7 @@ namespace Amarok
* Returns internal code for database type, DbConnection::sqlite, DbConnection::mysql, or DbConnection::postgresql
* @param type either "SQLite", "MySQL", or "Postgresql".
*/
int databaseTypeCode( const QString type ); //defined in configdialog.cpp
int databaseTypeCode( const TQString type ); //defined in configdialog.cpp
void setUseScores( bool use ); //defined in app.cpp
void setUseRatings( bool use );
@ -199,8 +199,8 @@ namespace Amarok
const DynamicMode *dynamicMode(); //defined in playlist.cpp
QListViewItem* findItemByPath( QListView *view, QString path ); //defined in playlistbrowser.cpp
QStringList splitPath( QString path ); //defined in playlistbrowser.cpp
TQListViewItem* findItemByPath( TQListView *view, TQString path ); //defined in playlistbrowser.cpp
TQStringList splitPath( TQString path ); //defined in playlistbrowser.cpp
/**
* Creates a copy of of the KURL instance, that doesn't have any QStrings sharing memory.
@ -210,28 +210,28 @@ namespace Amarok
/**
* Maps the icon name to a system icon or custom Amarok icon, depending on the settings.
*/
LIBAMAROK_EXPORT QString icon( const QString& name ); //defined in iconloader.cpp
LIBAMAROK_EXPORT TQString icon( const TQString& name )