summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--arts/builder/autorouter.h10
-rw-r--r--arts/builder/createtool.cpp36
-rw-r--r--arts/builder/createtool.h38
-rw-r--r--arts/builder/dirmanager.cpp10
-rw-r--r--arts/builder/dirmanager.h2
-rw-r--r--arts/builder/drawutils.cpp4
-rw-r--r--arts/builder/drawutils.h4
-rw-r--r--arts/builder/execdlg.cpp58
-rw-r--r--arts/builder/execdlg.h20
-rw-r--r--arts/builder/interfacedlg.cpp46
-rw-r--r--arts/builder/interfacedlg.h14
-rw-r--r--arts/builder/main.cpp150
-rw-r--r--arts/builder/main.h8
-rw-r--r--arts/builder/menumaker.cpp22
-rw-r--r--arts/builder/menumaker.h18
-rw-r--r--arts/builder/module.cpp80
-rw-r--r--arts/builder/module.h18
-rw-r--r--arts/builder/mwidget.cpp58
-rw-r--r--arts/builder/mwidget.h24
-rw-r--r--arts/builder/portposdlg.cpp56
-rw-r--r--arts/builder/portposdlg.h14
-rw-r--r--arts/builder/propertypanel.cpp92
-rw-r--r--arts/builder/propertypanel.h10
-rw-r--r--arts/builder/qttableview.cpp148
-rw-r--r--arts/builder/qttableview.h30
-rw-r--r--arts/builder/retrievedlg.cpp44
-rw-r--r--arts/builder/retrievedlg.h22
-rw-r--r--arts/builder/scomponent.cpp4
-rw-r--r--arts/builder/scomponent.h8
-rw-r--r--arts/builder/structureport.cpp48
-rw-r--r--arts/builder/structureport.h6
-rw-r--r--arts/gui/kde/artstestgui.cpp2
-rw-r--r--arts/gui/kde/dbtest.cpp4
-rw-r--r--arts/gui/kde/dbtest.h6
-rw-r--r--arts/gui/kde/kartswidget.cpp36
-rw-r--r--arts/gui/kde/kartswidget.h12
-rw-r--r--arts/gui/kde/kbutton_impl.cpp20
-rw-r--r--arts/gui/kde/kbutton_impl.h12
-rw-r--r--arts/gui/kde/kcombobox_impl.cpp12
-rw-r--r--arts/gui/kde/kcombobox_impl.h14
-rw-r--r--arts/gui/kde/kfader.cpp12
-rw-r--r--arts/gui/kde/kfader.h8
-rw-r--r--arts/gui/kde/kfader_impl.cpp6
-rw-r--r--arts/gui/kde/kfader_impl.h8
-rw-r--r--arts/gui/kde/kframe_impl.cpp12
-rw-r--r--arts/gui/kde/kframe_impl.h4
-rw-r--r--arts/gui/kde/kgraph.cpp36
-rw-r--r--arts/gui/kde/kgraph.h18
-rw-r--r--arts/gui/kde/kgraph_impl.cpp2
-rw-r--r--arts/gui/kde/kgraph_impl.h6
-rw-r--r--arts/gui/kde/kgraphline_impl.cpp2
-rw-r--r--arts/gui/kde/khbox_impl.cpp8
-rw-r--r--arts/gui/kde/khbox_impl.h4
-rw-r--r--arts/gui/kde/klabel_impl.cpp30
-rw-r--r--arts/gui/kde/klabel_impl.h24
-rw-r--r--arts/gui/kde/klayoutbox_impl.cpp56
-rw-r--r--arts/gui/kde/klayoutbox_impl.h24
-rw-r--r--arts/gui/kde/klevelmeter_firebars.cpp32
-rw-r--r--arts/gui/kde/klevelmeter_firebars.h14
-rw-r--r--arts/gui/kde/klevelmeter_impl.cpp14
-rw-r--r--arts/gui/kde/klevelmeter_impl.h2
-rw-r--r--arts/gui/kde/klevelmeter_linebars.cpp28
-rw-r--r--arts/gui/kde/klevelmeter_linebars.h8
-rw-r--r--arts/gui/kde/klevelmeter_normalbars.cpp16
-rw-r--r--arts/gui/kde/klevelmeter_normalbars.h18
-rw-r--r--arts/gui/kde/klevelmeter_private.h10
-rw-r--r--arts/gui/kde/klevelmeter_small.cpp20
-rw-r--r--arts/gui/kde/klevelmeter_small.h4
-rw-r--r--arts/gui/kde/klevelmeter_template.h12
-rw-r--r--arts/gui/kde/klineedit_impl.cpp8
-rw-r--r--arts/gui/kde/klineedit_impl.h4
-rw-r--r--arts/gui/kde/kpopupbox_impl.cpp28
-rw-r--r--arts/gui/kde/kpopupbox_private.h114
-rw-r--r--arts/gui/kde/kpoti.cpp152
-rw-r--r--arts/gui/kde/kpoti.h50
-rw-r--r--arts/gui/kde/kpoti_impl.cpp8
-rw-r--r--arts/gui/kde/kpoti_impl.h8
-rw-r--r--arts/gui/kde/kspinbox_impl.cpp12
-rw-r--r--arts/gui/kde/kspinbox_impl.h16
-rw-r--r--arts/gui/kde/ktickmarks_impl.cpp42
-rw-r--r--arts/gui/kde/ktickmarks_impl.h10
-rw-r--r--arts/gui/kde/kvbox_impl.cpp8
-rw-r--r--arts/gui/kde/kvbox_impl.h4
-rw-r--r--arts/gui/kde/kvolumefader_impl.cpp32
-rw-r--r--arts/gui/kde/kvolumefader_impl.h20
-rw-r--r--arts/gui/kde/kwidget_impl.cpp20
-rw-r--r--arts/gui/kde/kwidget_impl.h8
-rw-r--r--arts/gui/kde/kwidgetrepo.cpp4
-rw-r--r--arts/gui/kde/kwidgetrepo.h8
-rw-r--r--arts/modules/common/env_mixeritem_impl.cc2
-rw-r--r--arts/modules/effects/kstereovolumecontrolgui_impl.cpp6
-rw-r--r--arts/modules/effects/kstereovolumecontrolgui_impl.h16
-rw-r--r--arts/modules/synth/c_filter_stuff.h12
-rw-r--r--arts/tools/artsactions.cpp44
-rw-r--r--arts/tools/artsactions.h8
-rw-r--r--arts/tools/artscontrolapplet.cpp32
-rw-r--r--arts/tools/artscontrolapplet.h10
-rw-r--r--arts/tools/artscontrolapplet_private.h32
-rw-r--r--arts/tools/audiomanager.cpp40
-rw-r--r--arts/tools/audiomanager.h22
-rw-r--r--arts/tools/choosebusdlg.cpp44
-rw-r--r--arts/tools/choosebusdlg.h8
-rw-r--r--arts/tools/environmentview.cpp58
-rw-r--r--arts/tools/environmentview.h6
-rw-r--r--arts/tools/fftscopeview.cpp36
-rw-r--r--arts/tools/fftscopeview.h6
-rw-r--r--arts/tools/levelmeters.cpp64
-rw-r--r--arts/tools/levelmeters.h42
-rw-r--r--arts/tools/main.cpp28
-rw-r--r--arts/tools/main.h20
-rw-r--r--arts/tools/mediatypesview.cpp10
-rw-r--r--arts/tools/mediatypesview.h2
-rw-r--r--arts/tools/midiinstdlg.cpp86
-rw-r--r--arts/tools/midiinstdlg.h14
-rw-r--r--arts/tools/midimanagerview.cpp44
-rw-r--r--arts/tools/midimanagerview.h2
-rw-r--r--arts/tools/midiportdlg.cpp28
-rw-r--r--arts/tools/midiportdlg.h20
-rw-r--r--arts/tools/statusview.cpp26
-rw-r--r--arts/tools/statusview.h10
-rw-r--r--arts/tools/templateview.cpp4
-rw-r--r--arts/tools/templateview.h6
-rw-r--r--juk/actioncollection.cpp2
-rw-r--r--juk/advancedsearchdialog.cpp48
-rw-r--r--juk/advancedsearchdialog.h16
-rw-r--r--juk/akodeplayer.cpp4
-rw-r--r--juk/akodeplayer.h2
-rw-r--r--juk/artsplayer.cpp6
-rw-r--r--juk/artsplayer.h4
-rw-r--r--juk/cache.cpp54
-rw-r--r--juk/cache.h8
-rw-r--r--juk/categoryreaderinterface.cpp14
-rw-r--r--juk/categoryreaderinterface.h18
-rw-r--r--juk/collectionlist.cpp50
-rw-r--r--juk/collectionlist.h56
-rw-r--r--juk/coverdialog.cpp38
-rw-r--r--juk/coverdialog.h6
-rw-r--r--juk/covericonview.cpp8
-rw-r--r--juk/covericonview.h6
-rw-r--r--juk/coverinfo.cpp64
-rw-r--r--juk/coverinfo.h8
-rw-r--r--juk/covermanager.cpp142
-rw-r--r--juk/covermanager.h46
-rw-r--r--juk/deletedialog.cpp26
-rw-r--r--juk/deletedialog.h12
-rw-r--r--juk/directorylist.cpp22
-rw-r--r--juk/directorylist.h14
-rw-r--r--juk/dynamicplaylist.cpp16
-rw-r--r--juk/dynamicplaylist.h14
-rw-r--r--juk/exampleoptions.cpp28
-rw-r--r--juk/exampleoptions.h12
-rw-r--r--juk/filehandle.cpp46
-rw-r--r--juk/filehandle.h26
-rw-r--r--juk/filehandleproperties.h28
-rw-r--r--juk/filerenamer.cpp256
-rw-r--r--juk/filerenamer.h80
-rw-r--r--juk/filerenamerconfigdlg.cpp2
-rw-r--r--juk/filerenamerconfigdlg.h2
-rw-r--r--juk/filerenameroptions.cpp26
-rw-r--r--juk/filerenameroptions.h4
-rw-r--r--juk/folderplaylist.cpp22
-rw-r--r--juk/folderplaylist.h14
-rw-r--r--juk/gstreamerplayer.cpp8
-rw-r--r--juk/gstreamerplayer.h4
-rw-r--r--juk/historyplaylist.cpp24
-rw-r--r--juk/historyplaylist.h16
-rw-r--r--juk/juk.cpp96
-rw-r--r--juk/juk.h4
-rw-r--r--juk/jukIface.h56
-rw-r--r--juk/k3bexporter.cpp40
-rw-r--r--juk/keydialog.cpp36
-rw-r--r--juk/keydialog.h18
-rw-r--r--juk/ktrm.cpp80
-rw-r--r--juk/ktrm.h18
-rw-r--r--juk/mediafiles.cpp38
-rw-r--r--juk/mediafiles.h22
-rw-r--r--juk/musicbrainzquery.cpp10
-rw-r--r--juk/musicbrainzquery.h2
-rw-r--r--juk/nowplaying.cpp102
-rw-r--r--juk/nowplaying.h44
-rw-r--r--juk/player.h4
-rw-r--r--juk/playermanager.cpp54
-rw-r--r--juk/playermanager.h22
-rw-r--r--juk/playlist.cpp320
-rw-r--r--juk/playlist.h118
-rw-r--r--juk/playlistbox.cpp142
-rw-r--r--juk/playlistbox.h74
-rw-r--r--juk/playlistcollection.cpp214
-rw-r--r--juk/playlistcollection.h82
-rw-r--r--juk/playlistexporter.h2
-rw-r--r--juk/playlistinterface.cpp6
-rw-r--r--juk/playlistinterface.h4
-rw-r--r--juk/playlistitem.cpp60
-rw-r--r--juk/playlistitem.h36
-rw-r--r--juk/playlistsearch.cpp20
-rw-r--r--juk/playlistsearch.h32
-rw-r--r--juk/playlistsplitter.cpp68
-rw-r--r--juk/playlistsplitter.h14
-rw-r--r--juk/searchplaylist.cpp14
-rw-r--r--juk/searchplaylist.h6
-rw-r--r--juk/searchwidget.cpp76
-rw-r--r--juk/searchwidget.h16
-rw-r--r--juk/slideraction.cpp94
-rw-r--r--juk/slideraction.h22
-rw-r--r--juk/sortedstringlist.cpp20
-rw-r--r--juk/sortedstringlist.h16
-rw-r--r--juk/splashscreen.cpp16
-rw-r--r--juk/splashscreen.h2
-rw-r--r--juk/statuslabel.cpp60
-rw-r--r--juk/statuslabel.h12
-rw-r--r--juk/stringhash.h20
-rw-r--r--juk/stringshare.cpp8
-rw-r--r--juk/stringshare.h6
-rw-r--r--juk/systemtray.cpp172
-rw-r--r--juk/systemtray.h52
-rw-r--r--juk/tag.cpp36
-rw-r--r--juk/tag.h50
-rw-r--r--juk/tageditor.cpp180
-rw-r--r--juk/tageditor.h22
-rw-r--r--juk/tagguesser.cpp56
-rw-r--r--juk/tagguesser.h52
-rw-r--r--juk/tagguesserconfigdlg.cpp46
-rw-r--r--juk/tagguesserconfigdlg.h6
-rw-r--r--juk/tagguessertest.cpp44
-rw-r--r--juk/tagrenameroptions.cpp38
-rw-r--r--juk/tagrenameroptions.h24
-rw-r--r--juk/tagtransactionmanager.cpp28
-rw-r--r--juk/tagtransactionmanager.h20
-rw-r--r--juk/trackpickerdialog.cpp12
-rw-r--r--juk/trackpickerdialog.h4
-rw-r--r--juk/tracksequenceiterator.cpp4
-rw-r--r--juk/tracksequencemanager.cpp10
-rw-r--r--juk/tracksequencemanager.h2
-rw-r--r--juk/treeviewitemplaylist.cpp12
-rw-r--r--juk/treeviewitemplaylist.h4
-rw-r--r--juk/upcomingplaylist.cpp12
-rw-r--r--juk/upcomingplaylist.h12
-rw-r--r--juk/viewmode.cpp94
-rw-r--r--juk/viewmode.h40
-rw-r--r--juk/webimagefetcher.cpp44
-rw-r--r--juk/webimagefetcher.h32
-rw-r--r--juk/webimagefetcherdialog.cpp78
-rw-r--r--juk/webimagefetcherdialog.h22
-rw-r--r--kaboodle/conf.cpp14
-rw-r--r--kaboodle/conf.h4
-rw-r--r--kaboodle/controls.cpp38
-rw-r--r--kaboodle/controls.h34
-rw-r--r--kaboodle/engine.cpp10
-rw-r--r--kaboodle/engine.h4
-rw-r--r--kaboodle/kaboodle_factory.cpp4
-rw-r--r--kaboodle/kaboodle_factory.h2
-rw-r--r--kaboodle/main.cpp2
-rw-r--r--kaboodle/player.cpp28
-rw-r--r--kaboodle/player.h18
-rw-r--r--kaboodle/userinterface.cpp34
-rw-r--r--kaboodle/userinterface.h10
-rw-r--r--kaboodle/view.cpp74
-rw-r--r--kaboodle/view.h22
-rw-r--r--kaudiocreator/encodefileimp.cpp14
-rw-r--r--kaudiocreator/encodefileimp.h6
-rw-r--r--kaudiocreator/encoder.cpp58
-rw-r--r--kaudiocreator/encoder.h18
-rw-r--r--kaudiocreator/encoder_prefs_addons.h8
-rw-r--r--kaudiocreator/encoderconfig.ui.h2
-rw-r--r--kaudiocreator/encoderconfigimp.cpp56
-rw-r--r--kaudiocreator/encoderconfigimp.h10
-rw-r--r--kaudiocreator/general.ui.h10
-rw-r--r--kaudiocreator/job.cpp26
-rw-r--r--kaudiocreator/job.h30
-rw-r--r--kaudiocreator/jobqueimp.cpp46
-rw-r--r--kaudiocreator/jobqueimp.h16
-rw-r--r--kaudiocreator/kaudiocreator.cpp102
-rw-r--r--kaudiocreator/kaudiocreator.h6
-rw-r--r--kaudiocreator/ripper.cpp48
-rw-r--r--kaudiocreator/ripper.h18
-rw-r--r--kaudiocreator/tracksimp.cpp98
-rw-r--r--kaudiocreator/tracksimp.h36
-rw-r--r--kaudiocreator/wizard.ui.h14
-rw-r--r--kfile-plugins/au/kfile_au.cpp30
-rw-r--r--kfile-plugins/au/kfile_au.h2
-rw-r--r--kfile-plugins/avi/kfile_avi.cpp32
-rw-r--r--kfile-plugins/avi/kfile_avi.h8
-rw-r--r--kfile-plugins/flac/kfile_flac.cpp74
-rw-r--r--kfile-plugins/flac/kfile_flac.h12
-rw-r--r--kfile-plugins/m3u/kfile_m3u.cpp26
-rw-r--r--kfile-plugins/m3u/kfile_m3u.h2
-rw-r--r--kfile-plugins/mp3/kfile_mp3.cpp88
-rw-r--r--kfile-plugins/mp3/kfile_mp3.h10
-rw-r--r--kfile-plugins/mpc/kfile_mpc.cpp68
-rw-r--r--kfile-plugins/mpc/kfile_mpc.h10
-rw-r--r--kfile-plugins/mpeg/kfile_mpeg.cpp42
-rw-r--r--kfile-plugins/mpeg/kfile_mpeg.h8
-rw-r--r--kfile-plugins/ogg/kfile_ogg.cpp92
-rw-r--r--kfile-plugins/ogg/kfile_ogg.h10
-rw-r--r--kfile-plugins/sid/kfile_sid.cpp44
-rw-r--r--kfile-plugins/sid/kfile_sid.h6
-rw-r--r--kfile-plugins/theora/kfile_theora.cpp26
-rw-r--r--kfile-plugins/theora/kfile_theora.h2
-rw-r--r--kfile-plugins/wav/kfile_wav.cpp32
-rw-r--r--kfile-plugins/wav/kfile_wav.h2
-rw-r--r--kioslave/audiocd/audiocd.cpp126
-rw-r--r--kioslave/audiocd/audiocd.h12
-rw-r--r--kioslave/audiocd/kcmaudiocd/kcmaudiocd.cpp84
-rw-r--r--kioslave/audiocd/kcmaudiocd/kcmaudiocd.h6
-rw-r--r--kioslave/audiocd/plugins/audiocdencoder.cpp26
-rw-r--r--kioslave/audiocd/plugins/audiocdencoder.h10
-rw-r--r--kioslave/audiocd/plugins/flac/encoderflac.cpp18
-rw-r--r--kioslave/audiocd/plugins/flac/encoderflac.h4
-rw-r--r--kioslave/audiocd/plugins/lame/collectingprocess.cpp44
-rw-r--r--kioslave/audiocd/plugins/lame/collectingprocess.h6
-rw-r--r--kioslave/audiocd/plugins/lame/encoderlame.cpp84
-rw-r--r--kioslave/audiocd/plugins/lame/encoderlame.h14
-rw-r--r--kioslave/audiocd/plugins/vorbis/encodervorbis.cpp22
-rw-r--r--kioslave/audiocd/plugins/vorbis/encodervorbis.h6
-rw-r--r--kioslave/audiocd/plugins/wav/encodercda.cpp2
-rw-r--r--kioslave/audiocd/plugins/wav/encodercda.h4
-rw-r--r--kioslave/audiocd/plugins/wav/encoderwav.cpp4
-rw-r--r--kioslave/audiocd/plugins/wav/encoderwav.h4
-rw-r--r--kmid/channel.cpp44
-rw-r--r--kmid/channel.h56
-rw-r--r--kmid/channel3d.cpp28
-rw-r--r--kmid/channel3d.h30
-rw-r--r--kmid/channel4d.cpp36
-rw-r--r--kmid/channel4d.h38
-rw-r--r--kmid/channelcfgdlg.cpp24
-rw-r--r--kmid/channelcfgdlg.h8
-rw-r--r--kmid/channelview.cpp12
-rw-r--r--kmid/channelview.h8
-rw-r--r--kmid/collectdlg.cpp72
-rw-r--r--kmid/collectdlg.h24
-rw-r--r--kmid/kdisptext.cpp42
-rw-r--r--kmid/kdisptext.h28
-rw-r--r--kmid/klcdnumber.cpp54
-rw-r--r--kmid/klcdnumber.h30
-rw-r--r--kmid/kmidIface.h2
-rw-r--r--kmid/kmid_part.cpp26
-rw-r--r--kmid/kmid_part.h12
-rw-r--r--kmid/kmidbutton.h12
-rw-r--r--kmid/kmidclient.cpp110
-rw-r--r--kmid/kmidclient.h34
-rw-r--r--kmid/kmidframe.cpp128
-rw-r--r--kmid/kmidframe.h24
-rw-r--r--kmid/ktrianglebutton.cpp34
-rw-r--r--kmid/ktrianglebutton.h20
-rw-r--r--kmid/main.cpp8
-rw-r--r--kmid/midicfgdlg.cpp46
-rw-r--r--kmid/midicfgdlg.h10
-rw-r--r--kmid/qslidertime.cpp28
-rw-r--r--kmid/qslidertime.h14
-rw-r--r--kmid/rhythmview.cpp14
-rw-r--r--kmid/rhythmview.h10
-rw-r--r--kmix/KMixApp.cpp2
-rw-r--r--kmix/dialogselectmaster.cpp48
-rw-r--r--kmix/dialogselectmaster.h16
-rw-r--r--kmix/dialogviewconfiguration.cpp36
-rw-r--r--kmix/dialogviewconfiguration.h12
-rw-r--r--kmix/kledbutton.cpp22
-rw-r--r--kmix/kledbutton.h16
-rw-r--r--kmix/kmix-platforms.cpp4
-rw-r--r--kmix/kmix.cpp94
-rw-r--r--kmix/kmix.h24
-rw-r--r--kmix/kmixapplet.cpp106
-rw-r--r--kmix/kmixapplet.h42
-rw-r--r--kmix/kmixctrl.cpp4
-rw-r--r--kmix/kmixdockwidget.cpp60
-rw-r--r--kmix/kmixdockwidget.h16
-rw-r--r--kmix/kmixerwidget.cpp52
-rw-r--r--kmix/kmixerwidget.h18
-rw-r--r--kmix/kmixprefdlg.cpp60
-rw-r--r--kmix/kmixprefdlg.h28
-rw-r--r--kmix/kmixtoolbox.cpp40
-rw-r--r--kmix/kmixtoolbox.h16
-rw-r--r--kmix/ksmallslider.cpp150
-rw-r--r--kmix/ksmallslider.h44
-rw-r--r--kmix/mdwenum.cpp48
-rw-r--r--kmix/mdwenum.h12
-rw-r--r--kmix/mdwslider.cpp244
-rw-r--r--kmix/mdwslider.h42
-rw-r--r--kmix/mdwswitch.cpp48
-rw-r--r--kmix/mdwswitch.h18
-rw-r--r--kmix/mixdevice.cpp18
-rw-r--r--kmix/mixdevice.h26
-rw-r--r--kmix/mixdevicewidget.cpp30
-rw-r--r--kmix/mixdevicewidget.h16
-rw-r--r--kmix/mixer.cpp42
-rw-r--r--kmix/mixer.h46
-rw-r--r--kmix/mixerIface.h2
-rw-r--r--kmix/mixer_alsa.h12
-rw-r--r--kmix/mixer_alsa9.cpp22
-rw-r--r--kmix/mixer_backend.cpp6
-rw-r--r--kmix/mixer_backend.h4
-rw-r--r--kmix/mixer_hpux.cpp6
-rw-r--r--kmix/mixer_hpux.h2
-rw-r--r--kmix/mixer_irix.cpp2
-rw-r--r--kmix/mixer_none.cpp2
-rw-r--r--kmix/mixer_oss.cpp18
-rw-r--r--kmix/mixer_oss.h10
-rw-r--r--kmix/mixer_oss4.cpp28
-rw-r--r--kmix/mixer_oss4.h8
-rw-r--r--kmix/mixer_sun.cpp12
-rw-r--r--kmix/mixer_sun.h4
-rw-r--r--kmix/mixertoolbox.cpp22
-rw-r--r--kmix/mixertoolbox.h6
-rw-r--r--kmix/mixset.cpp8
-rw-r--r--kmix/mixset.h12
-rw-r--r--kmix/verticaltext.cpp20
-rw-r--r--kmix/verticaltext.h10
-rw-r--r--kmix/viewapplet.cpp46
-rw-r--r--kmix/viewapplet.h14
-rw-r--r--kmix/viewbase.cpp24
-rw-r--r--kmix/viewbase.h14
-rw-r--r--kmix/viewdockareapopup.cpp48
-rw-r--r--kmix/viewdockareapopup.h18
-rw-r--r--kmix/viewgrid.cpp16
-rw-r--r--kmix/viewgrid.h10
-rw-r--r--kmix/viewinput.cpp6
-rw-r--r--kmix/viewinput.h2
-rw-r--r--kmix/viewoutput.cpp4
-rw-r--r--kmix/viewoutput.h2
-rw-r--r--kmix/viewsliders.cpp16
-rw-r--r--kmix/viewsliders.h8
-rw-r--r--kmix/viewsurround.cpp36
-rw-r--r--kmix/viewsurround.h12
-rw-r--r--kmix/viewswitches.cpp26
-rw-r--r--kmix/viewswitches.h12
-rw-r--r--krec/krecconfig_files.cpp26
-rw-r--r--krec/krecconfig_files.h8
-rw-r--r--krec/krecconfig_fileswidget.cpp62
-rw-r--r--krec/krecconfig_fileswidget.h32
-rw-r--r--krec/krecconfigure.cpp76
-rw-r--r--krec/krecconfigure.h26
-rw-r--r--krec/krecexport_template.cpp6
-rw-r--r--krec/krecexport_template.h26
-rw-r--r--krec/krecexport_wave.cpp18
-rw-r--r--krec/krecexport_wave.h10
-rw-r--r--krec/krecfile.cpp106
-rw-r--r--krec/krecfile.h90
-rw-r--r--krec/krecfileview.cpp44
-rw-r--r--krec/krecfileview.h12
-rw-r--r--krec/krecfileviewhelpers.cpp80
-rw-r--r--krec/krecfileviewhelpers.h52
-rw-r--r--krec/krecfilewidgets.cpp104
-rw-r--r--krec/krecfilewidgets.h44
-rw-r--r--krec/krecglobal.cpp26
-rw-r--r--krec/krecglobal.h34
-rw-r--r--krec/krecnewproperties.cpp48
-rw-r--r--krec/krecnewproperties.h12
-rw-r--r--krec/krecord.cpp72
-rw-r--r--krec/krecord.h2
-rw-r--r--krec/krecord_private.h16
-rw-r--r--krec/main.cpp2
-rw-r--r--krec/mp3_export/krecexport_mp3.cpp20
-rw-r--r--krec/mp3_export/krecexport_mp3.h10
-rw-r--r--krec/ogg_export/krecexport_ogg.cpp22
-rw-r--r--krec/ogg_export/krecexport_ogg.h10
-rw-r--r--kscd/bwlednum.cpp46
-rw-r--r--kscd/bwlednum.h26
-rw-r--r--kscd/cddbdlg.cpp36
-rw-r--r--kscd/cddbdlg.h8
-rw-r--r--kscd/configWidget.cpp22
-rw-r--r--kscd/configWidget.h2
-rw-r--r--kscd/docking.cpp42
-rw-r--r--kscd/docking.h22
-rw-r--r--kscd/kcompactdisc.cpp62
-rw-r--r--kscd/kcompactdisc.h48
-rw-r--r--kscd/kscd.cpp304
-rw-r--r--kscd/kscd.h68
-rw-r--r--kscd/ledlamp.cpp20
-rw-r--r--kscd/ledlamp.h6
-rw-r--r--libkcddb/asynccddbplookup.cpp20
-rw-r--r--libkcddb/asynccddbplookup.h14
-rw-r--r--libkcddb/asynchttplookup.cpp26
-rw-r--r--libkcddb/asynchttplookup.h4
-rw-r--r--libkcddb/asynchttpsubmit.cpp4
-rw-r--r--libkcddb/asynchttpsubmit.h2
-rw-r--r--libkcddb/asyncsmtpsubmit.cpp10
-rw-r--r--libkcddb/asyncsmtpsubmit.h4
-rw-r--r--libkcddb/cache.cpp46
-rw-r--r--libkcddb/cache.h8
-rw-r--r--libkcddb/categories.cpp4
-rw-r--r--libkcddb/categories.h16
-rw-r--r--libkcddb/cddb.cpp24
-rw-r--r--libkcddb/cddb.h30
-rw-r--r--libkcddb/cddbplookup.cpp12
-rw-r--r--libkcddb/cddbplookup.h2
-rw-r--r--libkcddb/cdinfo.cpp60
-rw-r--r--libkcddb/cdinfo.h42
-rw-r--r--libkcddb/cdinfodialogbase.ui.h52
-rw-r--r--libkcddb/cdinfoencodingwidget.cpp26
-rw-r--r--libkcddb/cdinfoencodingwidget.h12
-rw-r--r--libkcddb/client.cpp28
-rw-r--r--libkcddb/client.h2
-rw-r--r--libkcddb/config.h2
-rw-r--r--libkcddb/genres.cpp8
-rw-r--r--libkcddb/genres.h16
-rw-r--r--libkcddb/httplookup.cpp24
-rw-r--r--libkcddb/httplookup.h6
-rw-r--r--libkcddb/httpsubmit.cpp4
-rw-r--r--libkcddb/httpsubmit.h4
-rw-r--r--libkcddb/kcmcddb/cddbconfigwidget.cpp30
-rw-r--r--libkcddb/kcmcddb/cddbconfigwidget.h2
-rw-r--r--libkcddb/kcmcddb/kcmcddb.cpp24
-rw-r--r--libkcddb/kcmcddb/kcmcddb.h2
-rw-r--r--libkcddb/lookup.cpp10
-rw-r--r--libkcddb/lookup.h16
-rw-r--r--libkcddb/sites.cpp30
-rw-r--r--libkcddb/sites.h12
-rw-r--r--libkcddb/smtpsubmit.cpp6
-rw-r--r--libkcddb/smtpsubmit.h4
-rw-r--r--libkcddb/submit.cpp10
-rw-r--r--libkcddb/submit.h8
-rw-r--r--libkcddb/synccddbplookup.cpp20
-rw-r--r--libkcddb/synccddbplookup.h4
-rw-r--r--libkcddb/synchttplookup.cpp10
-rw-r--r--libkcddb/synchttplookup.h2
-rw-r--r--libkcddb/synchttpsubmit.cpp2
-rw-r--r--libkcddb/synchttpsubmit.h2
-rw-r--r--libkcddb/syncsmtpsubmit.cpp4
-rw-r--r--libkcddb/syncsmtpsubmit.h4
-rw-r--r--libkcddb/test/asynccddblookuptest.cpp6
-rw-r--r--libkcddb/test/asynccddblookuptest.h2
-rw-r--r--libkcddb/test/asynchttplookuptest.cpp6
-rw-r--r--libkcddb/test/asynchttplookuptest.h2
-rw-r--r--libkcddb/test/asynchttpsubmittest.cpp10
-rw-r--r--libkcddb/test/asynchttpsubmittest.h2
-rw-r--r--libkcddb/test/asyncsmtpsubmittest.cpp10
-rw-r--r--libkcddb/test/asyncsmtpsubmittest.h2
-rw-r--r--libkcddb/test/sitestest.cpp4
-rw-r--r--libkcddb/test/synchttpsubmittest.cpp4
-rw-r--r--libkcddb/test/syncsmtpsubmittest.cpp4
-rw-r--r--mpeglib/lib/util/abstract/abs_thread.h2
-rw-r--r--noatun/library/app.cpp74
-rw-r--r--noatun/library/cmodule.cpp66
-rw-r--r--noatun/library/cmodule.h8
-rw-r--r--noatun/library/controls.cpp38
-rw-r--r--noatun/library/downloader.cpp46
-rw-r--r--noatun/library/effects.cpp38
-rw-r--r--noatun/library/effectview.cpp106
-rw-r--r--noatun/library/effectview.h14
-rw-r--r--noatun/library/engine.cpp42
-rw-r--r--noatun/library/equalizer.cpp66
-rw-r--r--noatun/library/equalizerview.cpp136
-rw-r--r--noatun/library/equalizerview.h32
-rw-r--r--noatun/library/globalvideo.h4
-rw-r--r--noatun/library/ksaver.cpp28
-rw-r--r--noatun/library/ksaver.h20
-rw-r--r--noatun/library/mimetypetree.cpp32
-rw-r--r--noatun/library/mimetypetree.h8
-rw-r--r--noatun/library/noatun/app.h18
-rw-r--r--noatun/library/noatun/controls.h36
-rw-r--r--noatun/library/noatun/downloader.h26
-rw-r--r--noatun/library/noatun/effects.h28
-rw-r--r--noatun/library/noatun/engine.h10
-rw-r--r--noatun/library/noatun/equalizer.h40
-rw-r--r--noatun/library/noatun/player.h18
-rw-r--r--noatun/library/noatun/playlist.h66
-rw-r--r--noatun/library/noatun/playlistsaver.h8
-rw-r--r--noatun/library/noatun/plugin.h12
-rw-r--r--noatun/library/noatun/pluginloader.h56
-rw-r--r--noatun/library/noatun/pref.h8
-rw-r--r--noatun/library/noatun/scrollinglabel.h16
-rw-r--r--noatun/library/noatun/stdaction.h40
-rw-r--r--noatun/library/noatun/stereobuttonaction.h12
-rw-r--r--noatun/library/noatun/vequalizer.h42
-rw-r--r--noatun/library/noatun/video.h10
-rw-r--r--noatun/library/noatunlistview.h2
-rw-r--r--noatun/library/noatunstdaction.cpp130
-rw-r--r--noatun/library/noatuntags/tags.cpp46
-rw-r--r--noatun/library/noatuntags/tagsgetter.h14
-rw-r--r--noatun/library/player.cpp38
-rw-r--r--noatun/library/playlist.cpp62
-rw-r--r--noatun/library/playlistsaver.cpp136
-rw-r--r--noatun/library/plugin.cpp62
-rw-r--r--noatun/library/plugin_deps.h6
-rw-r--r--noatun/library/pluginloader.cpp90
-rw-r--r--noatun/library/pluginmodule.cpp110
-rw-r--r--noatun/library/pluginmodule.h20
-rw-r--r--noatun/library/pref.cpp20
-rw-r--r--noatun/library/scrollinglabel.cpp28
-rw-r--r--noatun/library/stereobuttonaction.cpp12
-rw-r--r--noatun/library/titleproxy.cpp72
-rw-r--r--noatun/library/titleproxy.h44
-rw-r--r--noatun/library/vequalizer.cpp146
-rw-r--r--noatun/library/video.cpp38
-rw-r--r--noatun/modules/artseffects/extrastereogui_impl.cc10
-rw-r--r--noatun/modules/artseffects/extrastereogui_impl.h6
-rw-r--r--noatun/modules/dcopiface/dcopiface.cpp52
-rw-r--r--noatun/modules/dcopiface/dcopiface.h32
-rw-r--r--noatun/modules/excellent/userinterface.cpp92
-rw-r--r--noatun/modules/excellent/userinterface.h22
-rw-r--r--noatun/modules/htmlexport/htmlexport.cpp80
-rw-r--r--noatun/modules/htmlexport/htmlexport.h46
-rw-r--r--noatun/modules/infrared/infrared.cpp12
-rw-r--r--noatun/modules/infrared/infrared.h4
-rw-r--r--noatun/modules/infrared/irprefs.cpp96
-rw-r--r--noatun/modules/infrared/irprefs.h14
-rw-r--r--noatun/modules/infrared/lirc.cpp38
-rw-r--r--noatun/modules/infrared/lirc.h22
-rw-r--r--noatun/modules/kaiman/pref.cpp32
-rw-r--r--noatun/modules/kaiman/pref.h8
-rw-r--r--noatun/modules/kaiman/style.cpp190
-rw-r--r--noatun/modules/kaiman/style.h140
-rw-r--r--noatun/modules/kaiman/userinterface.cpp110
-rw-r--r--noatun/modules/kaiman/userinterface.h12
-rw-r--r--noatun/modules/keyz/keyz.cpp78
-rw-r--r--noatun/modules/keyz/keyz.h4
-rw-r--r--noatun/modules/kjofol-skin/helpers.cpp4
-rw-r--r--noatun/modules/kjofol-skin/kjbackground.cpp6
-rw-r--r--noatun/modules/kjofol-skin/kjbackground.h10
-rw-r--r--noatun/modules/kjofol-skin/kjbutton.cpp34
-rw-r--r--noatun/modules/kjofol-skin/kjbutton.h20
-rw-r--r--noatun/modules/kjofol-skin/kjequalizer.cpp40
-rw-r--r--noatun/modules/kjofol-skin/kjequalizer.h22
-rw-r--r--noatun/modules/kjofol-skin/kjfont.cpp72
-rw-r--r--noatun/modules/kjofol-skin/kjfont.h34
-rw-r--r--noatun/modules/kjofol-skin/kjloader.cpp132
-rw-r--r--noatun/modules/kjofol-skin/kjloader.h56
-rw-r--r--noatun/modules/kjofol-skin/kjprefs.cpp142
-rw-r--r--noatun/modules/kjofol-skin/kjprefs.h22
-rw-r--r--noatun/modules/kjofol-skin/kjseeker.cpp34
-rw-r--r--noatun/modules/kjofol-skin/kjseeker.h22
-rw-r--r--noatun/modules/kjofol-skin/kjsliders.cpp44
-rw-r--r--noatun/modules/kjofol-skin/kjsliders.h50
-rw-r--r--noatun/modules/kjofol-skin/kjtextdisplay.cpp128
-rw-r--r--noatun/modules/kjofol-skin/kjtextdisplay.h88
-rw-r--r--noatun/modules/kjofol-skin/kjvis.cpp94
-rw-r--r--noatun/modules/kjofol-skin/kjvis.h38
-rw-r--r--noatun/modules/kjofol-skin/kjwidget.cpp22
-rw-r--r--noatun/modules/kjofol-skin/kjwidget.h24
-rw-r--r--noatun/modules/kjofol-skin/parser.cpp40
-rw-r--r--noatun/modules/kjofol-skin/parser.h38
-rw-r--r--noatun/modules/marquis/marquis.cpp24
-rw-r--r--noatun/modules/metatag/edit.cpp116
-rw-r--r--noatun/modules/metatag/edit.h24
-rw-r--r--noatun/modules/metatag/metatag.cpp16
-rw-r--r--noatun/modules/metatag/metatag.h6
-rw-r--r--noatun/modules/monoscope/monoscope.cpp16
-rw-r--r--noatun/modules/monoscope/monoscope.h6
-rw-r--r--noatun/modules/net/net.cpp12
-rw-r--r--noatun/modules/net/net.h8
-rw-r--r--noatun/modules/noatunui/userinterface.cpp124
-rw-r--r--noatun/modules/noatunui/userinterface.h28
-rw-r--r--noatun/modules/simple/propertiesdialog.ui.h14
-rw-r--r--noatun/modules/simple/userinterface.cpp152
-rw-r--r--noatun/modules/simple/userinterface.h32
-rw-r--r--noatun/modules/splitplaylist/find.cpp26
-rw-r--r--noatun/modules/splitplaylist/find.h8
-rw-r--r--noatun/modules/splitplaylist/playlist.cpp20
-rw-r--r--noatun/modules/splitplaylist/playlist.h8
-rw-r--r--noatun/modules/splitplaylist/view.cpp210
-rw-r--r--noatun/modules/splitplaylist/view.h58
-rw-r--r--noatun/modules/systray/cmodule.cpp26
-rw-r--r--noatun/modules/systray/cmodule.h6
-rw-r--r--noatun/modules/systray/kitsystemtray.cpp18
-rw-r--r--noatun/modules/systray/kitsystemtray.h14
-rw-r--r--noatun/modules/systray/systray.cpp156
-rw-r--r--noatun/modules/systray/systray.h20
-rw-r--r--noatun/modules/voiceprint/prefs.cpp28
-rw-r--r--noatun/modules/voiceprint/prefs.h4
-rw-r--r--noatun/modules/voiceprint/voiceprint.cpp22
-rw-r--r--noatun/modules/voiceprint/voiceprint.h14
-rw-r--r--noatun/modules/winskin/fileInfo.cpp4
-rw-r--r--noatun/modules/winskin/guiSpectrumAnalyser.cpp42
-rw-r--r--noatun/modules/winskin/guiSpectrumAnalyser.h12
-rw-r--r--noatun/modules/winskin/skinMap.h2
-rw-r--r--noatun/modules/winskin/waBalanceSlider.cpp8
-rw-r--r--noatun/modules/winskin/waButton.cpp8
-rw-r--r--noatun/modules/winskin/waButton.h10
-rw-r--r--noatun/modules/winskin/waClutterbar.cpp2
-rw-r--r--noatun/modules/winskin/waClutterbar.h4
-rw-r--r--noatun/modules/winskin/waColor.cpp6
-rw-r--r--noatun/modules/winskin/waColor.h8
-rw-r--r--noatun/modules/winskin/waDigit.cpp6
-rw-r--r--noatun/modules/winskin/waDigit.h12
-rw-r--r--noatun/modules/winskin/waIndicator.cpp2
-rw-r--r--noatun/modules/winskin/waIndicator.h4
-rw-r--r--noatun/modules/winskin/waInfo.cpp34
-rw-r--r--noatun/modules/winskin/waInfo.h22
-rw-r--r--noatun/modules/winskin/waJumpSlider.cpp10
-rw-r--r--noatun/modules/winskin/waJumpSlider.h4
-rw-r--r--noatun/modules/winskin/waLabel.cpp16
-rw-r--r--noatun/modules/winskin/waLabel.h12
-rw-r--r--noatun/modules/winskin/waMain.cpp2
-rw-r--r--noatun/modules/winskin/waMain.h2
-rw-r--r--noatun/modules/winskin/waRegion.cpp38
-rw-r--r--noatun/modules/winskin/waRegion.h18
-rw-r--r--noatun/modules/winskin/waSkin.cpp162
-rw-r--r--noatun/modules/winskin/waSkin.h26
-rw-r--r--noatun/modules/winskin/waSkinManager.cpp58
-rw-r--r--noatun/modules/winskin/waSkinManager.h28
-rw-r--r--noatun/modules/winskin/waSkinModel.cpp106
-rw-r--r--noatun/modules/winskin/waSkinModel.h34
-rw-r--r--noatun/modules/winskin/waSlider.cpp14
-rw-r--r--noatun/modules/winskin/waSlider.h12
-rw-r--r--noatun/modules/winskin/waStatus.cpp2
-rw-r--r--noatun/modules/winskin/waStatus.h4
-rw-r--r--noatun/modules/winskin/waTitleBar.cpp14
-rw-r--r--noatun/modules/winskin/waTitleBar.h14
-rw-r--r--noatun/modules/winskin/waVolumeSlider.cpp8
-rw-r--r--noatun/modules/winskin/waWidget.cpp8
-rw-r--r--noatun/modules/winskin/waWidget.h8
-rw-r--r--noatun/modules/winskin/winSkinConfig.cpp68
-rw-r--r--noatun/modules/winskin/winSkinConfig.h14
-rw-r--r--noatun/modules/winskin/winSkinVis.cpp4
-rw-r--r--noatun/modules/winskin/winSkinVis.h6
-rw-r--r--noatun/noatun20update.cpp20
-rw-r--r--xine_artsplugin/tools/thumbnail/videocreator.cpp34
-rw-r--r--xine_artsplugin/tools/thumbnail/videocreator.h10
708 files changed, 11093 insertions, 11093 deletions
diff --git a/arts/builder/autorouter.h b/arts/builder/autorouter.h
index e65f531..cd422c4 100644
--- a/arts/builder/autorouter.h
+++ b/arts/builder/autorouter.h
@@ -33,19 +33,19 @@
#include <pthread.h>
#endif
-#include <qptrlist.h>
-#include <qvaluelist.h>
+#include <tqptrlist.h>
+#include <tqvaluelist.h>
class PathInfo
{
public:
int x1, x2, y1, y2, cost, depth;
- QString history;
+ TQString history;
int operator<(const PathInfo& x) const { return cost < x.cost; }
int operator==(const PathInfo& x) const { return cost == x.cost; }
};
-typedef QValueList<PathInfo> PathQueue;
+typedef TQValueList<PathInfo> PathQueue;
class ARCommand;
@@ -96,7 +96,7 @@ protected:
pthread_t route_thread;
#endif
- QPtrList<ARCommand> command_queue;
+ TQPtrList<ARCommand> command_queue;
bool thread_terminate_now;
/*************************/
diff --git a/arts/builder/createtool.cpp b/arts/builder/createtool.cpp
index d533a8f..a08515f 100644
--- a/arts/builder/createtool.cpp
+++ b/arts/builder/createtool.cpp
@@ -25,8 +25,8 @@
#include "structureport.h"
//#include <arts/debug.h>
-#include <qpalette.h>
-#include <qpainter.h>
+#include <tqpalette.h>
+#include <tqpainter.h>
#include <kmessagebox.h>
#include <klocale.h>
@@ -50,7 +50,7 @@ CreateTool::CreateTool(ModuleWidget *mwidget)
width = -1;
height = -1;
- componentRect = QRect(0, 0, 0, 0);
+ componentRect = TQRect(0, 0, 0, 0);
}
CreateTool::~CreateTool()
@@ -60,7 +60,7 @@ CreateTool::~CreateTool()
mwidget->setMouseTracking(oldMouseTracking);
}
-void CreateTool::mousePressEvent(QMouseEvent *e)
+void CreateTool::mousePressEvent(TQMouseEvent *e)
{
int x = mwidget->findCol(e->x());
int y = mwidget->findRow(e->y());
@@ -74,7 +74,7 @@ void CreateTool::mousePressEvent(QMouseEvent *e)
mwidget->leaveTool(this);
}
-void CreateTool::mouseMoveEvent(QMouseEvent *e)
+void CreateTool::mouseMoveEvent(TQMouseEvent *e)
{
if(width == -1) estimateSize();
@@ -90,9 +90,9 @@ void CreateTool::mouseMoveEvent(QMouseEvent *e)
if(!posok) return;
mwidget->repaint(componentRect);
- componentRect = QRect(cellx, celly, cellx2 - cellx, celly2 - celly);
+ componentRect = TQRect(cellx, celly, cellx2 - cellx, celly2 - celly);
- QPainter *p = new QPainter;
+ TQPainter *p = new QPainter;
p->begin(mwidget);
p->save();
@@ -102,7 +102,7 @@ void CreateTool::mouseMoveEvent(QMouseEvent *e)
delete p;
}
-void CreateTool::mouseReleaseEvent(QMouseEvent *e)
+void CreateTool::mouseReleaseEvent(TQMouseEvent *e)
{
}
@@ -241,17 +241,17 @@ CreatePortTool::CreatePortTool(ModuleWidget *mwidget,
this->type = type;
}
-MoveComponentsTool::MoveComponentsTool(ModuleWidget *widget, QMouseEvent *e)
+MoveComponentsTool::MoveComponentsTool(ModuleWidget *widget, TQMouseEvent *e)
: MWidgetTool(widget),
lastPos(e->pos())
{
}
-void MoveComponentsTool::mousePressEvent(QMouseEvent *e)
+void MoveComponentsTool::mousePressEvent(TQMouseEvent *e)
{
}
-void MoveComponentsTool::mouseMoveEvent(QMouseEvent *e)
+void MoveComponentsTool::mouseMoveEvent(TQMouseEvent *e)
{
int dx = (e->x() - lastPos.x())/mwidget->cellsize;
int dy = (e->y() - lastPos.y())/mwidget->cellsize;
@@ -283,7 +283,7 @@ void MoveComponentsTool::mouseMoveEvent(QMouseEvent *e)
mwidget->reRoute();
}
-void MoveComponentsTool::mouseReleaseEvent(QMouseEvent *e)
+void MoveComponentsTool::mouseReleaseEvent(TQMouseEvent *e)
{
mwidget->leaveTool(this, true);
}
@@ -295,20 +295,20 @@ ConnectPortsTool::ConnectPortsTool(ModuleWidget *widget, ModulePort *connectingP
firstPos = mwidget->portPos(connectingPort) + connectingPort->clickrect.center();
}
-void ConnectPortsTool::mousePressEvent(QMouseEvent *e)
+void ConnectPortsTool::mousePressEvent(TQMouseEvent *e)
{
}
-void ConnectPortsTool::mouseMoveEvent(QMouseEvent *e)
+void ConnectPortsTool::mouseMoveEvent(TQMouseEvent *e)
{
- QPainter painter(mwidget);
+ TQPainter painter(mwidget);
painter.setPen(Qt::white);
- mwidget->repaint(QRect(firstPos, lastPos).normalize());
+ mwidget->repaint(TQRect(firstPos, lastPos).normalize());
painter.drawLine(firstPos, e->pos());
lastPos = e->pos();
}
-void ConnectPortsTool::mouseReleaseEvent(QMouseEvent *e)
+void ConnectPortsTool::mouseReleaseEvent(TQMouseEvent *e)
{
StructureComponent *component;
ModulePort *otherPort;
@@ -334,6 +334,6 @@ void ConnectPortsTool::mouseReleaseEvent(QMouseEvent *e)
}
}
}
- mwidget->repaint(QRect(firstPos, lastPos).normalize());
+ mwidget->repaint(TQRect(firstPos, lastPos).normalize());
mwidget->leaveTool(this);
}
diff --git a/arts/builder/createtool.h b/arts/builder/createtool.h
index c8fe076..15a4b5e 100644
--- a/arts/builder/createtool.h
+++ b/arts/builder/createtool.h
@@ -22,8 +22,8 @@
#ifndef _CREATETOOL_H
#define _CREATETOOL_H
-#include <qwidget.h>
-#include <qcursor.h>
+#include <tqwidget.h>
+#include <tqcursor.h>
#include "structure.h"
#include "module.h"
@@ -41,17 +41,17 @@ public:
MWidgetTool(ModuleWidget *mwidget);
virtual ~MWidgetTool();
- virtual void mousePressEvent(QMouseEvent *e) = 0;
- virtual void mouseMoveEvent(QMouseEvent *e) = 0;
- virtual void mouseReleaseEvent(QMouseEvent *e) = 0;
+ virtual void mousePressEvent(TQMouseEvent *e) = 0;
+ virtual void mouseMoveEvent(TQMouseEvent *e) = 0;
+ virtual void mouseReleaseEvent(TQMouseEvent *e) = 0;
};
class CreateTool: public MWidgetTool
{
protected:
- QCursor oldCursor;
+ TQCursor oldCursor;
bool oldMouseTracking;
- QRect componentRect;
+ TQRect componentRect;
int width, height;
public:
@@ -61,9 +61,9 @@ public:
virtual void estimateSize() = 0;
virtual void performCreate(int x, int y) = 0;
- void mousePressEvent(QMouseEvent *e);
- void mouseMoveEvent(QMouseEvent *e);
- void mouseReleaseEvent(QMouseEvent *e);
+ void mousePressEvent(TQMouseEvent *e);
+ void mouseMoveEvent(TQMouseEvent *e);
+ void mouseReleaseEvent(TQMouseEvent *e);
};
class CreateModuleTool: public CreateTool
@@ -106,27 +106,27 @@ public:
class MoveComponentsTool: public MWidgetTool
{
- QPoint lastPos;
+ TQPoint lastPos;
public:
- MoveComponentsTool(ModuleWidget *widget, QMouseEvent *e);
+ MoveComponentsTool(ModuleWidget *widget, TQMouseEvent *e);
- void mousePressEvent(QMouseEvent *e);
- void mouseMoveEvent(QMouseEvent *e);
- void mouseReleaseEvent(QMouseEvent *e);
+ void mousePressEvent(TQMouseEvent *e);
+ void mouseMoveEvent(TQMouseEvent *e);
+ void mouseReleaseEvent(TQMouseEvent *e);
};
class ConnectPortsTool: public MWidgetTool
{
ModulePort *connectingPort;
- QPoint firstPos, lastPos;
+ TQPoint firstPos, lastPos;
public:
ConnectPortsTool(ModuleWidget *widget, ModulePort *connectingPort);
- void mousePressEvent(QMouseEvent *e);
- void mouseMoveEvent(QMouseEvent *e);
- void mouseReleaseEvent(QMouseEvent *e);
+ void mousePressEvent(TQMouseEvent *e);
+ void mouseMoveEvent(TQMouseEvent *e);
+ void mouseReleaseEvent(TQMouseEvent *e);
};
#endif
diff --git a/arts/builder/dirmanager.cpp b/arts/builder/dirmanager.cpp
index 2734773..2f22f10 100644
--- a/arts/builder/dirmanager.cpp
+++ b/arts/builder/dirmanager.cpp
@@ -23,7 +23,7 @@
#include <stdio.h>
#include <stdlib.h>
-#include <qfile.h>
+#include <tqfile.h>
#include <kstandarddirs.h>
#include <kmessagebox.h>
@@ -68,19 +68,19 @@ const char *DirManager::baseDir()
return d;
}
-char *DirManager::directory(const char *subdir, const QString &desc)
+char *DirManager::directory(const char *subdir, const TQString &desc)
{
const char *home = getenv("HOME");
if(home == 0) return strdup("");
- QCString dirname = QCString(home) + "/arts" + subdir;
+ TQCString dirname = TQCString(home) + "/arts" + subdir;
struct stat buf;
if(stat(dirname.data(), &buf) == -1)
{
- QString message;
- QString dir = QFile::decodeName(dirname);
+ TQString message;
+ TQString dir = TQFile::decodeName(dirname);
message = i18n("You need the folder %1.\n"
"It will be used to store %2.\nShould I create it now?")
.arg(dir).arg(desc);
diff --git a/arts/builder/dirmanager.h b/arts/builder/dirmanager.h
index b007bcb..17ec434 100644
--- a/arts/builder/dirmanager.h
+++ b/arts/builder/dirmanager.h
@@ -24,7 +24,7 @@
class DirManager {
protected:
- static char *directory(const char *subdir, const QString& desc);
+ static char *directory(const char *subdir, const TQString& desc);
public:
static const char *mapDir();
static const char *sessionDir();
diff --git a/arts/builder/drawutils.cpp b/arts/builder/drawutils.cpp
index 43b449e..c2c0ef3 100644
--- a/arts/builder/drawutils.cpp
+++ b/arts/builder/drawutils.cpp
@@ -21,9 +21,9 @@
#include "drawutils.h"
-QString DrawUtils::cropText(QPainter *p, QString text, int maxlen, int& textwidth)
+TQString DrawUtils::cropText(TQPainter *p, TQString text, int maxlen, int& textwidth)
{
- QString label = text;
+ TQString label = text;
while(p->fontMetrics().width(label) > maxlen && label.length() > 0) {
int i = label.find('_');
diff --git a/arts/builder/drawutils.h b/arts/builder/drawutils.h
index 25032eb..08aadb3 100644
--- a/arts/builder/drawutils.h
+++ b/arts/builder/drawutils.h
@@ -22,10 +22,10 @@
#ifndef __DRAWUTILS_H__
#define __DRAWUTILS_H__
-#include <qpainter.h>
+#include <tqpainter.h>
class DrawUtils {
public:
- static QString cropText(QPainter *p, QString text, int maxlen, int& textwidth);
+ static TQString cropText(TQPainter *p, TQString text, int maxlen, int& textwidth);
};
#endif
diff --git a/arts/builder/execdlg.cpp b/arts/builder/execdlg.cpp
index 4ed8bac..ccd1ae4 100644
--- a/arts/builder/execdlg.cpp
+++ b/arts/builder/execdlg.cpp
@@ -19,12 +19,12 @@
*/
-#include <qfile.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
-#include <qlineedit.h>
+#include <tqfile.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqlineedit.h>
#include <kbuttonbox.h>
#include <kfiledialog.h>
@@ -37,44 +37,44 @@
#include "execdlg.h"
#include "dirmanager.h"
#include <arts/debug.h>
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#ifndef KDE_USE_FINAL
-static void min_size(QWidget *w) {
+static void min_size(TQWidget *w) {
w->setMinimumSize(w->sizeHint());
}
#endif
-ExecDlg::ExecDlg(QWidget *parent, ExecutableStructure *structure)
- :QDialog(parent,"X")
+ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure)
+ :TQDialog(parent,"X")
/*, TRUE)*/
{
this->structure = structure;
setCaption(i18n("aRts Module Execution"));
- mainlayout = new QVBoxLayout(this);
+ mainlayout = new TQVBoxLayout(this);
// caption label: "Synthesis running..."
mainlayout->addSpacing(5);
- QLabel *captionlabel = new QLabel(this);
- QFont labelfont(captionlabel->font());
+ TQLabel *captionlabel = new TQLabel(this);
+ TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
captionlabel->setFont(labelfont);
- captionlabel->setText(QString(" ")+i18n("Synthesis running...")+QString(" "));
+ captionlabel->setText(TQString(" ")+i18n("Synthesis running...")+TQString(" "));
captionlabel->setAlignment(AlignCenter);
min_size(captionlabel);
mainlayout->addWidget(captionlabel);
- cpuusagelabel = new QLabel(this);
+ cpuusagelabel = new TQLabel(this);
cpuusagelabel->setText(i18n("CPU usage: unknown"));
- cpuusagetimer = new QTimer( this );
- connect( cpuusagetimer, SIGNAL(timeout()),
- this, SLOT(updateCpuUsage()) );
- connect( cpuusagetimer, SIGNAL(timeout()),
- this, SLOT(guiServerTick()) );
+ cpuusagetimer = new TQTimer( this );
+ connect( cpuusagetimer, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(updateCpuUsage()) );
+ connect( cpuusagetimer, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(guiServerTick()) );
cpuusagetimer->start( 2000, false );
min_size(cpuusagelabel);
@@ -107,7 +107,7 @@ ExecDlg::ExecDlg(QWidget *parent, ExecutableStructure *structure)
// buttons
- QHBoxLayout *buttonlayout = new QHBoxLayout;
+ TQHBoxLayout *buttonlayout = new QHBoxLayout;
mainlayout->addSpacing(5);
mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
@@ -115,15 +115,15 @@ ExecDlg::ExecDlg(QWidget *parent, ExecutableStructure *structure)
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- bbox->addButton(KStdGuiItem::help(), this, SLOT( help() ));
+ bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() ));
bbox->addStretch(1);
- QButton *savebutton = bbox->addButton(KStdGuiItem::saveAs());
- connect( savebutton, SIGNAL( clicked() ), SLOT(saveSession() ) );
+ TQButton *savebutton = bbox->addButton(KStdGuiItem::saveAs());
+ connect( savebutton, TQT_SIGNAL( clicked() ), TQT_SLOT(saveSession() ) );
- QButton *okbutton = bbox->addButton(KStdGuiItem::ok());
- connect( okbutton, SIGNAL( clicked() ), SLOT(accept() ) );
+ TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
+ connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
bbox->layout();
//min_size(bbox);
@@ -178,7 +178,7 @@ void ExecDlg::updateCpuUsage()
void ExecDlg::done( int r )
{
structure->stopExecute();
- QDialog::done(r);
+ TQDialog::done(r);
emit ready();
}
@@ -186,11 +186,11 @@ void ExecDlg::saveSession()
{
chdir(DirManager::sessionDir());
- QString filename = KFileDialog::getSaveFileName(0,"*.arts-session",this);
+ TQString filename = KFileDialog::getSaveFileName(0,"*.arts-session",this);
if(!filename.isEmpty())
{
arts_debug("save... %s",filename.local8Bit().data());
- structure->saveSession(QFile::encodeName(filename));
+ structure->saveSession(TQFile::encodeName(filename));
}
}
diff --git a/arts/builder/execdlg.h b/arts/builder/execdlg.h
index 43562d2..1fbd806 100644
--- a/arts/builder/execdlg.h
+++ b/arts/builder/execdlg.h
@@ -23,23 +23,23 @@
#define __EXECDLG_H_
#include "structure.h"
-#include <qdialog.h>
-#include <qtimer.h>
-#include <qlabel.h>
-#include <qscrollbar.h>
-#include <qlayout.h>
+#include <tqdialog.h>
+#include <tqtimer.h>
+#include <tqlabel.h>
+#include <tqscrollbar.h>
+#include <tqlayout.h>
-class ExecDlg :public QDialog {
+class ExecDlg :public TQDialog {
Q_OBJECT
public:
- QTimer *cpuusagetimer;
- QLabel *cpuusagelabel;
- QVBoxLayout *mainlayout,*sliderlayout;
+ TQTimer *cpuusagetimer;
+ TQLabel *cpuusagelabel;
+ TQVBoxLayout *mainlayout,*sliderlayout;
ExecutableStructure *structure;
void start();
void done(int r);
- ExecDlg(QWidget *parent, ExecutableStructure *structure);
+ ExecDlg(TQWidget *parent, ExecutableStructure *structure);
protected slots:
void updateCpuUsage();
diff --git a/arts/builder/interfacedlg.cpp b/arts/builder/interfacedlg.cpp
index 82d985e..a96a1b3 100644
--- a/arts/builder/interfacedlg.cpp
+++ b/arts/builder/interfacedlg.cpp
@@ -21,41 +21,41 @@
#include "interfacedlg.h"
#include "structureport.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qlistbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqlistbox.h>
#include <kbuttonbox.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
#include <kapplication.h>
#include <kiconloader.h>
#include <kseparator.h>
#include <klocale.h>
-#include <qlineedit.h>
+#include <tqlineedit.h>
#include <stdio.h>
#include <arts/debug.h>
#include <arts/core.h>
#include <arts/dispatcher.h>
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <kstdguiitem.h>
using namespace std;
-InterfaceDlg::InterfaceDlg(QWidget *parent) :QDialog(parent,"Props", TRUE)
+InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE)
{
setCaption(i18n("aRts: Structureport View"));
- QVBoxLayout *mainlayout = new QVBoxLayout(this);
- //QHBoxLayout *contentslayout = new QHBoxLayout;
+ TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
+ //TQHBoxLayout *contentslayout = new QHBoxLayout;
// object type
/*
mainlayout->addSpacing(5);
- QLabel *objectlabel = new QLabel(this);
- QFont labelfont(objectlabel->font());
+ TQLabel *objectlabel = new TQLabel(this);
+ TQFont labelfont(objectlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
objectlabel->setFont(labelfont);
- objectlabel->setText(QString(" ")+i18n("Object type: ")+QString(port->owner->name())+QString(" "));
+ objectlabel->setText(TQString(" ")+i18n("Object type: ")+TQString(port->owner->name())+TQString(" "));
objectlabel->setAlignment(AlignCenter);
min_size(objectlabel);
mainlayout->addWidget(objectlabel);
@@ -65,7 +65,7 @@ InterfaceDlg::InterfaceDlg(QWidget *parent) :QDialog(parent,"Props", TRUE)
/*
mainlayout->addSpacing(5);
- QLabel *portlabel = new QLabel(this);
+ TQLabel *portlabel = new TQLabel(this);
labelfont.setPointSize(labelfont.pointSize()*4/5);
portlabel->setFont(labelfont);
portlabel->setText(i18n("Port description: ")+ port->description);
@@ -88,14 +88,14 @@ InterfaceDlg::InterfaceDlg(QWidget *parent) :QDialog(parent,"Props", TRUE)
*/
// list
- listbox = new QListBox(this);
+ listbox = new TQListBox(this);
update();
listbox->setMinimumSize(340,400);
mainlayout->addWidget(listbox);
- connect( listbox, SIGNAL( doubleClicked ( QListBoxItem *)), this,
- SLOT(accept()));
+ connect( listbox, TQT_SIGNAL( doubleClicked ( TQListBoxItem *)), this,
+ TQT_SLOT(accept()));
// hruler
mainlayout->addSpacing(5);
@@ -104,7 +104,7 @@ InterfaceDlg::InterfaceDlg(QWidget *parent) :QDialog(parent,"Props", TRUE)
// buttons
- QHBoxLayout *buttonlayout = new QHBoxLayout;
+ TQHBoxLayout *buttonlayout = new QHBoxLayout;
mainlayout->addSpacing(5);
mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
@@ -112,14 +112,14 @@ InterfaceDlg::InterfaceDlg(QWidget *parent) :QDialog(parent,"Props", TRUE)
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- bbox->addButton(KStdGuiItem::help(), this, SLOT( help() ));
+ bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() ));
bbox->addStretch(1);
- QButton *okbutton = bbox->addButton(KStdGuiItem::ok());
- connect( okbutton, SIGNAL( clicked() ), SLOT(accept() ) );
+ TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
+ connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
- QButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
- connect( cancelbutton, SIGNAL( clicked() ), SLOT(reject() ) );
+ TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
+ connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
bbox->layout();
//min_size(bbox);
diff --git a/arts/builder/interfacedlg.h b/arts/builder/interfacedlg.h
index d5a888c..4524eaa 100644
--- a/arts/builder/interfacedlg.h
+++ b/arts/builder/interfacedlg.h
@@ -24,19 +24,19 @@
#include "structure.h"
#include "structureport.h"
-#include <qdialog.h>
-#include <qlistbox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
+#include <tqdialog.h>
+#include <tqlistbox.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
#include <vector>
-class InterfaceDlg :public QDialog {
+class InterfaceDlg :public TQDialog {
Q_OBJECT
protected:
- QListBox *listbox;
+ TQListBox *listbox;
public:
- InterfaceDlg(QWidget *parent);
+ InterfaceDlg(TQWidget *parent);
std::string interfaceName();
void update(const std::string& interface, const std::string& indent);
diff --git a/arts/builder/main.cpp b/arts/builder/main.cpp
index 9cc300e..4630f2f 100644
--- a/arts/builder/main.cpp
+++ b/arts/builder/main.cpp
@@ -54,8 +54,8 @@
#include <kaboutdata.h>
#include <kstandarddirs.h>
#include <kartsserver.h>
-#include <qfile.h>
-#include <qpopupmenu.h>
+#include <tqfile.h>
+#include <tqpopupmenu.h>
#include <soundserver.h>
@@ -78,7 +78,7 @@ protected:
public:
ArtsBuilderApp();
- ArtsBuilderApp(QString filename);
+ ArtsBuilderApp(TQString filename);
void start();
void end();
};
@@ -146,7 +146,7 @@ ArtsBuilderWindow::ArtsBuilderWindow(const char *name)
arts_debug("PORT: modulewidget");
modulewidget = new ModuleWidget(structure, mainDock, "mwidget");
mainDock->setWidget(modulewidget);
- connect(modulewidget, SIGNAL(modified(bool)), SLOT(setModified(bool)));
+ connect(modulewidget, TQT_SIGNAL(modified(bool)), TQT_SLOT(setModified(bool)));
arts_debug("PORT: modulewidget ok");
// allow others to dock to the 4 sides
@@ -167,20 +167,20 @@ ArtsBuilderWindow::ArtsBuilderWindow(const char *name)
80); // relation target/this (in percent)
// selection
- connect(modulewidget, SIGNAL(portSelected(ModulePort *)),
- propertyPanel, SLOT (setSelectedPort(ModulePort *)));
- connect(propertyPanel, SIGNAL(portSelected(ModulePort *)),
- modulewidget, SLOT (selectPort(ModulePort *)));
- connect(modulewidget, SIGNAL(componentSelected(StructureComponent *)),
- propertyPanel, SLOT (setSelectedComponent(StructureComponent *)));
+ connect(modulewidget, TQT_SIGNAL(portSelected(ModulePort *)),
+ propertyPanel, TQT_SLOT (setSelectedPort(ModulePort *)));
+ connect(propertyPanel, TQT_SIGNAL(portSelected(ModulePort *)),
+ modulewidget, TQT_SLOT (selectPort(ModulePort *)));
+ connect(modulewidget, TQT_SIGNAL(componentSelected(StructureComponent *)),
+ propertyPanel, TQT_SLOT (setSelectedComponent(StructureComponent *)));
// connection
- connect(propertyPanel, SIGNAL(startConnection(ModulePort *)),
- modulewidget, SLOT (startConnection(ModulePort *)));
+ connect(propertyPanel, TQT_SIGNAL(startConnection(ModulePort *)),
+ modulewidget, TQT_SLOT (startConnection(ModulePort *)));
// port properties changed
- connect(propertyPanel, SIGNAL(portPropertiesChanged(ModulePort *)),
- modulewidget, SLOT (portPropertiesChanged(ModulePort *)));
+ connect(propertyPanel, TQT_SIGNAL(portPropertiesChanged(ModulePort *)),
+ modulewidget, TQT_SLOT (portPropertiesChanged(ModulePort *)));
arts_debug("PORT: setcanvas");
structure->setCanvas(modulewidget);
@@ -251,25 +251,25 @@ ArtsBuilderWindow::ArtsBuilderWindow(const char *name)
*/
#if 000
- connect(menubar, SIGNAL(highlighted(int)), this, SLOT(activateMenu(int)));
- connect(m_view, SIGNAL(activated(int)), modulewidget, SLOT(setZoom(int)));
- connect(m_ports, SIGNAL(activated(int)), this, SLOT(addPort(int)));
- connect(m_file_new, SIGNAL(activated(int)), this, SLOT(fileNew(int)));
+ connect(menubar, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(activateMenu(int)));
+ connect(m_view, TQT_SIGNAL(activated(int)), modulewidget, TQT_SLOT(setZoom(int)));
+ connect(m_ports, TQT_SIGNAL(activated(int)), this, TQT_SLOT(addPort(int)));
+ connect(m_file_new, TQT_SIGNAL(activated(int)), this, TQT_SLOT(fileNew(int)));
- //connect(m_modules, SIGNAL(activated(int)), this, SLOT(addModule(int)));
+ //connect(m_modules, TQT_SIGNAL(activated(int)), this, TQT_SLOT(addModule(int)));
/*
- connect(m_modules_synth, SIGNAL(activated(int)), this, SLOT(addModule(int)));
- connect(m_modules_gui, SIGNAL(activated(int)), this, SLOT(addModule(int)));
- connect(m_modules_instruments, SIGNAL(activated(int)), this, SLOT(addModule(int)));
- connect(m_modules_other, SIGNAL(activated(int)), this, SLOT(addModule(int)));
+ connect(m_modules_synth, TQT_SIGNAL(activated(int)), this, TQT_SLOT(addModule(int)));
+ connect(m_modules_gui, TQT_SIGNAL(activated(int)), this, TQT_SLOT(addModule(int)));
+ connect(m_modules_instruments, TQT_SIGNAL(activated(int)), this, TQT_SLOT(addModule(int)));
+ connect(m_modules_other, TQT_SIGNAL(activated(int)), this, TQT_SLOT(addModule(int)));
*/
- connect(kapp, SIGNAL(lastWindowClosed()), this , SLOT(quit()));
+ connect(kapp, TQT_SIGNAL(lastWindowClosed()), this , TQT_SLOT(quit()));
// update the modules menu once for the start
#endif
arts_debug("PORT: activatemenu");
- connect(menumaker, SIGNAL(activated(const char *)), this, SLOT(addModule(const char *)));
+ connect(menumaker, TQT_SIGNAL(activated(const char *)), this, TQT_SLOT(addModule(const char *)));
fillModuleMenu();
arts_debug("PORT: activatemenu ok");
setupActions();
@@ -277,13 +277,13 @@ ArtsBuilderWindow::ArtsBuilderWindow(const char *name)
createGUI();
// connect to aboutToShow to correctly show state of dockwidget there:
- QPopupMenu *viewmenu = (QPopupMenu*)factory()->container("view", this);
+ TQPopupMenu *viewmenu = (TQPopupMenu*)factory()->container("view", this);
if (viewmenu)
- connect(viewmenu, SIGNAL(aboutToShow()), this, SLOT(viewMenuAboutToShow()));
+ connect(viewmenu, TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(viewMenuAboutToShow()));
else
arts_debug("view menu not found!");
- m_filename = QString::null;
+ m_filename = TQString::null;
setModified(false);
installEventFilter(propertyPanel);
@@ -292,55 +292,55 @@ ArtsBuilderWindow::ArtsBuilderWindow(const char *name)
void ArtsBuilderWindow::setupActions()
{
// File menu
- KStdAction::openNew(this, SLOT(fileNew()), actionCollection());
+ KStdAction::openNew(this, TQT_SLOT(fileNew()), actionCollection());
- (void)new KAction(i18n("Open Session..."), 0, this, SLOT(openSession()),
+ (void)new KAction(i18n("Open Session..."), 0, this, TQT_SLOT(openSession()),
actionCollection(), "file_open_session");
- KStdAction::open(this, SLOT(open()), actionCollection());
- (void)new KAction(i18n("Open E&xample..."), Qt::CTRL + Qt::Key_X, this, SLOT(openExample()),
+ KStdAction::open(this, TQT_SLOT(open()), actionCollection());
+ (void)new KAction(i18n("Open E&xample..."), Qt::CTRL + Qt::Key_X, this, TQT_SLOT(openExample()),
actionCollection(), "file_open_example");
- KStdAction::save(this, SLOT(save()), actionCollection());
- KStdAction::saveAs(this, SLOT(saveAs()), actionCollection());
- (void)new KAction(i18n("&Retrieve From Server..."), Qt::CTRL + Qt::Key_R, this, SLOT(retrieve()),
+ KStdAction::save(this, TQT_SLOT(save()), actionCollection());
+ KStdAction::saveAs(this, TQT_SLOT(saveAs()), actionCollection());
+ (void)new KAction(i18n("&Retrieve From Server..."), Qt::CTRL + Qt::Key_R, this, TQT_SLOT(retrieve()),
actionCollection(), "file_retrieve_from_server");
- (void)new KAction(i18n("&Execute Structure"), "artsbuilderexecute", Qt::CTRL + Qt::Key_E, this, SLOT(execute()),
+ (void)new KAction(i18n("&Execute Structure"), "artsbuilderexecute", Qt::CTRL + Qt::Key_E, this, TQT_SLOT(execute()),
actionCollection(), "file_execute_structure");
- (void)new KAction(i18n("&Rename Structure..."), Qt::CTRL + Qt::Key_R, this, SLOT(rename()),
+ (void)new KAction(i18n("&Rename Structure..."), Qt::CTRL + Qt::Key_R, this, TQT_SLOT(rename()),
actionCollection(), "file_rename_structure");
- (void)new KAction(i18n("&Publish Structure"), Qt::CTRL + Qt::Key_P, this, SLOT(publish()),
+ (void)new KAction(i18n("&Publish Structure"), Qt::CTRL + Qt::Key_P, this, TQT_SLOT(publish()),
actionCollection(), "file_publish_structure");
- KStdAction::quit(this, SLOT(close()), actionCollection());
+ KStdAction::quit(this, TQT_SLOT(close()), actionCollection());
// Edit menu
- (void)new KAction(i18n("&Delete"), Qt::Key_Delete, modulewidget, SLOT(delModule()),
+ (void)new KAction(i18n("&Delete"), Qt::Key_Delete, modulewidget, TQT_SLOT(delModule()),
actionCollection(), "edit_delete");
- KStdAction::selectAll(modulewidget, SLOT(selectAll()), actionCollection());
+ KStdAction::selectAll(modulewidget, TQT_SLOT(selectAll()), actionCollection());
// View menu
viewPropertiesAction= new KToggleAction(i18n("&Property Panel"), 0,
- propertyDock, SLOT(changeHideShowState()),
+ propertyDock, TQT_SLOT(changeHideShowState()),
actionCollection(), "view_properties");
- (void)new KAction(i18n("200%"), 0, this, SLOT(viewAt200()),
+ (void)new KAction(i18n("200%"), 0, this, TQT_SLOT(viewAt200()),
actionCollection(), "view_200");
- (void)new KAction(i18n("150%"), 0, this, SLOT(viewAt150()),
+ (void)new KAction(i18n("150%"), 0, this, TQT_SLOT(viewAt150()),
actionCollection(), "view_150");
- (void)new KAction(i18n("100%"), 0, this, SLOT(viewAt100()),
+ (void)new KAction(i18n("100%"), 0, this, TQT_SLOT(viewAt100()),
actionCollection(), "view_100");
- (void)new KAction(i18n("50%"), 0, this, SLOT(viewAt50()),
+ (void)new KAction(i18n("50%"), 0, this, TQT_SLOT(viewAt50()),
actionCollection(), "view_50");
// Ports menu
- (void)new KAction(i18n("Create IN Audio Signal"), 0, this, SLOT(createInAudioSignal()),
+ (void)new KAction(i18n("Create IN Audio Signal"), 0, this, TQT_SLOT(createInAudioSignal()),
actionCollection(), "ports_create_in_audio_signal");
- (void)new KAction(i18n("Create OUT Audio Signal"), 0, this, SLOT(createOutAudioSignal()),
+ (void)new KAction(i18n("Create OUT Audio Signal"), 0, this, TQT_SLOT(createOutAudioSignal()),
actionCollection(), "ports_create_out_audio_signal");
- (void)new KAction(i18n("Create IN String Property"), 0, this, SLOT(createInStringProperty()),
+ (void)new KAction(i18n("Create IN String Property"), 0, this, TQT_SLOT(createInStringProperty()),
actionCollection(), "ports_create_in_string_property");
- (void)new KAction(i18n("Create IN Audio Property"), 0, this, SLOT(createInAudioProperty()),
+ (void)new KAction(i18n("Create IN Audio Property"), 0, this, TQT_SLOT(createInAudioProperty()),
actionCollection(), "ports_create_in_audio_property");
- (void)new KAction(i18n("Implement Interface..."), 0, this, SLOT(addInterface()),
+ (void)new KAction(i18n("Implement Interface..."), 0, this, TQT_SLOT(addInterface()),
actionCollection(), "ports_implement_interface");
- (void)new KAction(i18n("Change Positions/Names..."), 0, this, SLOT(changePortPositions()),
+ (void)new KAction(i18n("Change Positions/Names..."), 0, this, TQT_SLOT(changePortPositions()),
actionCollection(), "ports_change_positions");
}
@@ -444,10 +444,10 @@ void ArtsBuilderWindow::publish()
i18n("The structure has been published as: '%1' on the server.").arg( structure->name().c_str() ));
}
-QString ArtsBuilderWindow::getOpenFilename(const char *pattern, const char *initialDir)
+TQString ArtsBuilderWindow::getOpenFilename(const char *pattern, const char *initialDir)
{
arts_debug(">>>>> getOpenFilename");
- QString filename = KFileDialog::getOpenFileName(initialDir, pattern, this);
+ TQString filename = KFileDialog::getOpenFileName(initialDir, pattern, this);
arts_debug(">>>>> opendlg closed");
if(!filename.isEmpty())
{
@@ -455,7 +455,7 @@ QString ArtsBuilderWindow::getOpenFilename(const char *pattern, const char *init
// check that the file is ok:
- FILE *infile = fopen(QFile::encodeName(filename), "r");
+ FILE *infile = fopen(TQFile::encodeName(filename), "r");
if(infile)
{
@@ -463,7 +463,7 @@ QString ArtsBuilderWindow::getOpenFilename(const char *pattern, const char *init
return(filename);
}
}
- return QString("");
+ return TQString("");
}
void ArtsBuilderWindow::fileNew()
@@ -474,7 +474,7 @@ void ArtsBuilderWindow::fileNew()
propertyPanel->setSelectedComponent(0);
structure->clear();
modulewidget->reInit();
- m_filename = QString::null;
+ m_filename = TQString::null;
setModified(false);
}
@@ -486,14 +486,14 @@ void ArtsBuilderWindow::open()
open(getOpenFilename("*.arts", DirManager::structureDir()));
}
-void ArtsBuilderWindow::open(QString filename)
+void ArtsBuilderWindow::open(TQString filename)
{
if(!promptToSave())
return;
if(!filename.isEmpty())
{
- structure->load(QFile::encodeName(filename));
+ structure->load(TQFile::encodeName(filename));
modulewidget->reInit();
if(!structure->valid())
{
@@ -514,12 +514,12 @@ void ArtsBuilderWindow::openSession()
if(!promptToSave())
return;
- QString filename = getOpenFilename("*.arts-session", DirManager::sessionDir());
+ TQString filename = getOpenFilename("*.arts-session", DirManager::sessionDir());
if(!filename.isEmpty())
{
Session *session = new Session();
- session->loadSession(QFile::encodeName(filename));
+ session->loadSession(TQFile::encodeName(filename));
assert(!execDlg);
execDlg = new ExecDlg(0, session);
@@ -532,7 +532,7 @@ void ArtsBuilderWindow::openSession()
execDlg->start();
execDlg->show();
- connect(execDlg, SIGNAL(ready()), this, SLOT(endexecute()));
+ connect(execDlg, TQT_SIGNAL(ready()), this, TQT_SLOT(endexecute()));
hide();
// m_filename = filename; FIXME: DOESN'T THIS BELONG HERE?
@@ -545,14 +545,14 @@ void ArtsBuilderWindow::openExample()
if(!promptToSave())
return;
- QString dir = locate("data", "artsbuilder/examples/");
+ TQString dir = locate("data", "artsbuilder/examples/");
if(!dir)
KMessageBox::sorry(
this,
i18n("Unable to find the examples folder.\nUsing the current folder instead."),
i18n("aRts Warning"));
- open(getOpenFilename("*.arts", QFile::encodeName(dir)));
+ open(getOpenFilename("*.arts", TQFile::encodeName(dir)));
}
void ArtsBuilderWindow::saveAs()
@@ -566,19 +566,19 @@ void ArtsBuilderWindow::saveAs()
dlg->setSelection(defaultname.c_str());
dlg->setCaption(i18n("Save As"));
- QString filename;
- if(dlg->exec() == QDialog::Accepted)
+ TQString filename;
+ if(dlg->exec() == TQDialog::Accepted)
filename = dlg->selectedFile();
delete dlg;
- // QString filename = KFileDialog::getSaveFileName(0, "*.arts", this);
+ // TQString filename = KFileDialog::getSaveFileName(0, "*.arts", this);
// filename.detach();
if(!filename.isEmpty())
save(filename);
}
-bool ArtsBuilderWindow::save(QString filename)
+bool ArtsBuilderWindow::save(TQString filename)
{
arts_debug("trying to save structure as '%s'", filename.local8Bit().data());
@@ -629,7 +629,7 @@ void ArtsBuilderWindow::rename()
{
bool ok;
- QString name = KInputDialog::getText( i18n( "Rename Structure" ),
+ TQString name = KInputDialog::getText( i18n( "Rename Structure" ),
i18n( "Enter structure name:" ), structure->name().c_str(), &ok, this );
if (ok)
{
@@ -649,7 +649,7 @@ void ArtsBuilderWindow::retrieve()
if(rd.exec())
{
- QString result = rd.result();
+ TQString result = rd.result();
if(!result.isEmpty())
{
structure->retrieve(result.local8Bit());
@@ -674,7 +674,7 @@ void ArtsBuilderWindow::execute()
execDlg->start();
execDlg->show();
- connect(execDlg, SIGNAL(ready()), this, SLOT(endexecute()));
+ connect(execDlg, TQT_SIGNAL(ready()), this, TQT_SLOT(endexecute()));
hide();
}
@@ -838,7 +838,7 @@ bool ArtsBuilderWindow::promptToSave()
return true;
query = KMessageBox::warningYesNoCancel(this,
- i18n("The current structure has been modified.\nWould you like to save it?"), QString::null, KStdGuiItem::save(), KStdGuiItem::discard());
+ i18n("The current structure has been modified.\nWould you like to save it?"), TQString::null, KStdGuiItem::save(), KStdGuiItem::discard());
result = false;
switch(query)
@@ -864,10 +864,10 @@ ArtsBuilderApp::ArtsBuilderApp()
start();
}
-ArtsBuilderApp::ArtsBuilderApp(QString filename)
+ArtsBuilderApp::ArtsBuilderApp(TQString filename)
{
start();
- if(QFile::exists(filename))
+ if(TQFile::exists(filename))
{
mainWindow->open(filename);
} else {
@@ -946,7 +946,7 @@ int main(int argc, char **argv)
}
if(args->count() > 0)
{
- ArtsBuilderApp Application(QFile::decodeName(args->arg(0)));
+ ArtsBuilderApp Application(TQFile::decodeName(args->arg(0)));
args->clear();
return Application.exec();
} else {
diff --git a/arts/builder/main.h b/arts/builder/main.h
index 1ae4473..e9c1739 100644
--- a/arts/builder/main.h
+++ b/arts/builder/main.h
@@ -56,7 +56,7 @@ protected:
ExecDlg *execDlg;
- QString m_filename;
+ TQString m_filename;
bool modified;
protected:
@@ -68,7 +68,7 @@ public:
void clear();
void checkName();
- QString getOpenFilename(const char *pattern, const char *initialDir = 0);
+ TQString getOpenFilename(const char *pattern, const char *initialDir = 0);
bool isModified();
bool promptToSave();
bool queryClose();
@@ -99,8 +99,8 @@ public slots:
void saveAs();
void quit();
- void open(QString filename);
- bool save(QString filename);
+ void open(TQString filename);
+ bool save(TQString filename);
void setModified(bool m = true);
void execute();
diff --git a/arts/builder/menumaker.cpp b/arts/builder/menumaker.cpp
index 54e32e2..2aed840 100644
--- a/arts/builder/menumaker.cpp
+++ b/arts/builder/menumaker.cpp
@@ -8,9 +8,9 @@ using namespace std;
MenuEntry::MenuEntry(MenuMaker *menumaker, KActionMenu *parent, const char *text)
: menumaker(menumaker), text(text)
{
- action = new KAction(QString::fromLocal8Bit(text));
+ action = new KAction(TQString::fromLocal8Bit(text));
parent->insert(action);
- connect(action, SIGNAL(activated()), this, SLOT(activated()));
+ connect(action, TQT_SIGNAL(activated()), this, TQT_SLOT(activated()));
}
void MenuEntry::activated()
@@ -18,7 +18,7 @@ void MenuEntry::activated()
menumaker->menuActivated(text);
}
-MenuCategory::MenuCategory(const QString& name, const char *prefix, KActionMenu *menu)
+MenuCategory::MenuCategory(const TQString& name, const char *prefix, KActionMenu *menu)
{
_menu = menu;
_name = name;
@@ -26,7 +26,7 @@ MenuCategory::MenuCategory(const QString& name, const char *prefix, KActionMenu
addPrefix(prefix);
}
-QString MenuCategory::name()
+TQString MenuCategory::name()
{
return _name;
}
@@ -76,7 +76,7 @@ MenuMaker::MenuMaker(KActionMenu *root)
// addCategory("&Synthesis", "Synth_");
// addCategory("&Synthesis/&Waveforms", "Synth_WAVE");
-void MenuMaker::addCategory(const QString& name, const char *prefix)
+void MenuMaker::addCategory(const TQString& name, const char *prefix)
{
MenuCategory *mc = 0,*pc = 0;
@@ -93,7 +93,7 @@ void MenuMaker::addCategory(const QString& name, const char *prefix)
KActionMenu *newMenu = new KActionMenu(catname(name));
pc->menu()->insert(newMenu);
/* 000 */
- /*connect(newMenu,SIGNAL(activated(int)),this,SLOT(menuactivated(int)));
+ /*connect(newMenu,TQT_SIGNAL(activated(int)),this,TQT_SLOT(menuactivated(int)));
pc->menu()->insertItem(catname(name).c_str(), newMenu, CAT_MAGIC_ID);*/
arts_debug("inserting a menu called '%s' in the parent menu '%s'",
catname(name).local8Bit().data(),pc->name().local8Bit().data());
@@ -106,7 +106,7 @@ void MenuMaker::addCategory(const QString& name, const char *prefix)
}
}
-MenuCategory *MenuMaker::lookupCategoryByName(const QString& name)
+MenuCategory *MenuMaker::lookupCategoryByName(const TQString& name)
{
MenuCategory *mc = 0;
list<MenuCategory *>::iterator i;
@@ -137,16 +137,16 @@ void MenuMaker::addItem(const char *name, int index)
//mc->menu()->insert(new KAction(name)); // index??
new MenuEntry(this, mc->menu(), name);
/*
- KAction *action = new KAction(QString(name));
+ KAction *action = new KAction(TQString(name));
mc->menu()->insert(action);
*/
//action->plug(mc->menu());
//mc->menu()->insert(new KAction(name)); // index??
}
-QString MenuMaker::basename(const QString& name)
+TQString MenuMaker::basename(const TQString& name)
{
- QString result = "";
+ TQString result = "";
int i = name.findRev('/');
if(i != -1)
@@ -157,7 +157,7 @@ QString MenuMaker::basename(const QString& name)
return result;
}
-QString MenuMaker::catname(const QString& name)
+TQString MenuMaker::catname(const TQString& name)
{
int i = name.findRev('/');
if(i >= 0)
diff --git a/arts/builder/menumaker.h b/arts/builder/menumaker.h
index 5b999dc..f2481a2 100644
--- a/arts/builder/menumaker.h
+++ b/arts/builder/menumaker.h
@@ -2,7 +2,7 @@
#define __MENUMAKER_H__
#include <kaction.h>
-#include <qobject.h>
+#include <tqobject.h>
#include <string>
#include <list>
@@ -15,7 +15,7 @@ class MenuEntry : public QObject
protected:
MenuMaker *menumaker;
KAction *action;
- QCString text;
+ TQCString text;
public:
MenuEntry(MenuMaker *menumaker, KActionMenu *parent, const char *text);
@@ -28,15 +28,15 @@ class MenuCategory
{
protected:
KActionMenu *_menu;
- QString _name;
+ TQString _name;
std::list<std::string> prefixList;
bool _catchall;
public:
- MenuCategory(const QString& name, const char *prefix, KActionMenu *menu);
+ MenuCategory(const TQString& name, const char *prefix, KActionMenu *menu);
void addPrefix(const char *prefix);
- QString name();
+ TQString name();
KActionMenu *menu();
bool catchall();
@@ -53,11 +53,11 @@ public:
MenuMaker(KActionMenu *root);
- void addCategory(const QString& name, const char *prefix);
- MenuCategory *lookupCategoryByName(const QString& name);
+ void addCategory(const TQString& name, const char *prefix);
+ MenuCategory *lookupCategoryByName(const TQString& name);
void addItem(const char *name, int i);
- QString basename(const QString& name);
- QString catname(const QString& name);
+ TQString basename(const TQString& name);
+ TQString catname(const TQString& name);
void clear();
diff --git a/arts/builder/module.cpp b/arts/builder/module.cpp
index 94f5659..5432492 100644
--- a/arts/builder/module.cpp
+++ b/arts/builder/module.cpp
@@ -24,8 +24,8 @@
#include <stdio.h>
#include <arts/debug.h>
-#include <qpalette.h>
-#include <qdrawutil.h>
+#include <tqpalette.h>
+#include <tqdrawutil.h>
#include <kiconloader.h>
#include <algorithm>
@@ -56,20 +56,20 @@ bool ModulePort::down()
return (PortDesc.isConnected() || PortDesc.hasValue() || selected);
}
-QColor ModulePort::color(bool isInterface)
+TQColor ModulePort::color(bool isInterface)
{
- if(selected) return QColor(255, 165, 0);
+ if(selected) return TQColor(255, 165, 0);
if(PortDesc.hasValue())
{
- if(isinitarg) return QColor(180, 180, 180);
- return QColor(100, 100, 255);
+ if(isinitarg) return TQColor(180, 180, 180);
+ return TQColor(100, 100, 255);
}
- if(isinitarg) return QColor(128, 128, 128);
+ if(isinitarg) return TQColor(128, 128, 128);
- if(isInterface) return QColor(100, 100, 100);
- return QColor(43, 43, 168);
+ if(isInterface) return TQColor(100, 100, 100);
+ return TQColor(43, 43, 168);
}
Module::Module(Arts::ModuleDesc module, Arts::StructureDesc structuredesc,
@@ -94,7 +94,7 @@ Module::Module(const Arts::ModuleInfo& minfo, Arts::StructureDesc structuredesc,
void Module::initModule()
{
- QString iconname;
+ TQString iconname;
KIconLoader iconloader;
_selected = false;
@@ -107,12 +107,12 @@ void Module::initModule()
iconname = _name + ".xpm";
- _pixmap = new QPixmap(iconloader.loadIcon(iconname, KIcon::User));
+ _pixmap = new TQPixmap(iconloader.loadIcon(iconname, KIcon::User));
if(!_pixmap->height())
{
iconname = _name + ".png";
delete _pixmap;
- _pixmap = new QPixmap( iconloader.loadIcon( iconname, KIcon::User ) );
+ _pixmap = new TQPixmap( iconloader.loadIcon( iconname, KIcon::User ) );
if( !_pixmap->height() )
{
delete _pixmap;
@@ -125,12 +125,12 @@ void Module::initModule()
{
iconname = iconname.mid(6);
- _pixmap = new QPixmap(iconloader.loadIcon(iconname, KIcon::User));
+ _pixmap = new TQPixmap(iconloader.loadIcon(iconname, KIcon::User));
if(!_pixmap->height())
{
iconname.replace( iconname.length() - 4, 3, "png" );
delete _pixmap;
- _pixmap = new QPixmap(iconloader.loadIcon(iconname, KIcon::User));
+ _pixmap = new TQPixmap(iconloader.loadIcon(iconname, KIcon::User));
if( !_pixmap->height() )
{
delete _pixmap;
@@ -139,10 +139,10 @@ void Module::initModule()
}
}
/*
- FILE *test = fopen(QFile::encodeName(iconname), "r");
+ FILE *test = fopen(TQFile::encodeName(iconname), "r");
if(test)
{
- pixmap = new QPixmap(iconname);
+ pixmap = new TQPixmap(iconname);
fclose(test);
}
*/
@@ -229,24 +229,24 @@ bool Module::drawNeedsBackground(int segment)
return (segment == 0);
}
-void Module::drawSegment(QPainter *p, int cellsize, int segment)
+void Module::drawSegment(TQPainter *p, int cellsize, int segment)
{
int border = cellsize / 10; // for the logo
int ltop = (cellsize - border)/2;
int lbot = (cellsize + border)/2;
- QColor mcolor(43, 43, 168);
- QColor mcolorlight(164, 176, 242);
+ TQColor mcolor(43, 43, 168);
+ TQColor mcolorlight(164, 176, 242);
if(isInterface)
{
- mcolor = QColor(100, 100, 100);
- mcolorlight = QColor(160, 160, 160);
+ mcolor = TQColor(100, 100, 100);
+ mcolorlight = TQColor(160, 160, 160);
}
- QColorGroup g( Qt::white, Qt::blue, mcolorlight, mcolor.dark(), mcolor,
+ TQColorGroup g( Qt::white, Qt::blue, mcolorlight, mcolor.dark(), mcolor,
Qt::black, Qt::black );
- QBrush fill( mcolor );
- QPen textpen(QColor(255, 255, 180), 1);
+ TQBrush fill( mcolor );
+ TQPen textpen(TQColor(255, 255, 180), 1);
if(segment == 0)
{
@@ -263,9 +263,9 @@ void Module::drawSegment(QPainter *p, int cellsize, int segment)
float sx = (float)destsize/(float)_pixmap->width();
float sy = (float)destsize/(float)_pixmap->height();
- QWMatrix matrix;
+ TQWMatrix matrix;
matrix.scale(sx, sy);
- QPixmap pmscaled = _pixmap->xForm(matrix);
+ TQPixmap pmscaled = _pixmap->xForm(matrix);
p->drawPixmap(border*2, border*2, pmscaled);
}
return;
@@ -300,25 +300,25 @@ void Module::drawSegment(QPainter *p, int cellsize, int segment)
{
int border = cellsize/7;
int textwidth;
- QString label = DrawUtils::cropText(p, port->description,
+ TQString label = DrawUtils::cropText(p, port->description,
cellsize/2, textwidth);
- QBrush pbrush(port->color(isInterface));
+ TQBrush pbrush(port->color(isInterface));
- port->clickrect = QRect(border, direction * cellsize/2 + border,
+ port->clickrect = TQRect(border, direction * cellsize/2 + border,
cellsize/2 - 2*border, cellsize/2 - 2*border);
qDrawShadePanel(p, port->clickrect, g, port->down(), 2, &pbrush);
#if 0
- QBrush fillport(fill);
+ TQBrush fillport(fill);
if(port->isinitarg)
{
- fillport = QColor(128, 128, 128);
+ fillport = TQColor(128, 128, 128);
}
if(port->selected)
{
- QBrush fillorange(QColor(255, 165, 0));
+ TQBrush fillorange(TQColor(255, 165, 0));
qDrawShadePanel(p, port->clickrect, g, true, 2, &fillorange);
}
else
@@ -329,10 +329,10 @@ void Module::drawSegment(QPainter *p, int cellsize, int segment)
}
else if(port->PortDesc->hasValue())
{
- QBrush fillp(QColor(100, 100, 255));
+ TQBrush fillp(TQColor(100, 100, 255));
if(port->isinitarg)
{
- fillp = QColor(180, 180, 180);
+ fillp = TQColor(180, 180, 180);
}
qDrawShadePanel(p, port->clickrect, g, true, 2, &fillp);
}
@@ -356,10 +356,10 @@ void Module::drawSegment(QPainter *p, int cellsize, int segment)
{
// object type label
int textwidth;
- QString label = DrawUtils::cropText(p, _name, cellsize - 4, textwidth);
+ TQString label = DrawUtils::cropText(p, _name, cellsize - 4, textwidth);
p->setPen(textpen);
- p->fillRect(1, cellsize - 16, textwidth + 7, 15, QBrush(g.dark()));
+ p->fillRect(1, cellsize - 16, textwidth + 7, 15, TQBrush(g.dark()));
p->drawText(4, cellsize - 5, label);
// logo connection
@@ -373,7 +373,7 @@ void Module::drawSegment(QPainter *p, int cellsize, int segment)
if(selected())
{
- QPen pen(Qt::white, 1, Qt::DotLine);
+ TQPen pen(Qt::white, 1, Qt::DotLine);
p->setPen(pen);
p->drawLine(0, 0, cellsize - 1, 0);
@@ -412,7 +412,7 @@ ModulePort *Module::portAt(int segment, int x, int y)
ModulePort *port = findPort(segment, direction);
if(port)
{
- QPoint clickpoint(x, y);
+ TQPoint clickpoint(x, y);
if(port->clickrect.contains(clickpoint)) return port;
}
}
@@ -426,12 +426,12 @@ void Module::dumpPorts(list<ModulePort *>& ports)
for(i = outports.begin(); i != outports.end(); ++i) ports.push_back(*i);
}
-QPixmap *Module::pixmap()
+TQPixmap *Module::pixmap()
{
return _pixmap;
}
-QString Module::name()
+TQString Module::name()
{
return _name;
}
diff --git a/arts/builder/module.h b/arts/builder/module.h
index 0d23bb1..6fbff74 100644
--- a/arts/builder/module.h
+++ b/arts/builder/module.h
@@ -24,9 +24,9 @@
#include <list>
-#include <qpixmap.h>
-#include <qstring.h>
-#include <qrect.h>
+#include <tqpixmap.h>
+#include <tqstring.h>
+#include <tqrect.h>
#include <ksimpleconfig.h>
#include "artsbuilder.h"
@@ -59,7 +59,7 @@ public:
int drawsegment, Direction direction, Arts::PortDesc PortDesc);
bool down();
- QColor color(bool isInterface);
+ TQColor color(bool isInterface);
};
class Module :public StructureComponent
@@ -68,8 +68,8 @@ protected:
Arts::StructureDesc StructureDesc;
Arts::ModuleDesc ModuleDesc;
- QPixmap *_pixmap;
- QString _name;
+ TQPixmap *_pixmap;
+ TQString _name;
int _width, _height;
bool moveInternal(int x, int y);
@@ -100,9 +100,9 @@ public:
void dumpPorts(std::list<ModulePort *>& ports);
bool drawNeedsBackground(int segment);
- void drawSegment(QPainter *dest, int cellsize, int segment);
- QPixmap *pixmap();
- QString name();
+ void drawSegment(TQPainter *dest, int cellsize, int segment);
+ TQPixmap *pixmap();
+ TQString name();
};
#endif
diff --git a/arts/builder/mwidget.cpp b/arts/builder/mwidget.cpp
index b6c3d84..808b3bc 100644
--- a/arts/builder/mwidget.cpp
+++ b/arts/builder/mwidget.cpp
@@ -7,9 +7,9 @@
#include <klocale.h>
#include <kmessagebox.h>
-#include <qtimer.h>
-#include <qpainter.h>
-#include <qevent.h>
+#include <tqtimer.h>
+#include <tqpainter.h>
+#include <tqevent.h>
#include "createtool.h"
@@ -56,22 +56,22 @@ void ModuleWidget::leaveTool(MWidgetTool *tool, bool wasModified)
emit modified(wasModified);
}
-QPoint ModuleWidget::componentPos(const StructureComponent *component) const
+TQPoint ModuleWidget::componentPos(const StructureComponent *component) const
{
int cellx = 0, celly = 0;
colXPos(component->x(), &cellx);
rowYPos(component->y(), &celly);
- return QPoint(cellx, celly);
+ return TQPoint(cellx, celly);
}
-QPoint ModuleWidget::portPos(const ModulePort *port) const
+TQPoint ModuleWidget::portPos(const ModulePort *port) const
{
int cellx = 0, celly = 0;
colXPos(port->owner->x() + port->drawsegment, &cellx);
rowYPos(port->owner->y(), &celly);
- return QPoint(cellx, celly);
+ return TQPoint(cellx, celly);
}
bool ModuleWidget::insertModule( Module *newModule )
@@ -125,7 +125,7 @@ void ModuleWidget::selectComponent( StructureComponent *component, bool onlyThis
endUpdate();
}
-void ModuleWidget::mousePressEvent( QMouseEvent *e )
+void ModuleWidget::mousePressEvent( TQMouseEvent *e )
{
if(activeTool)
{
@@ -172,7 +172,7 @@ void ModuleWidget::mousePressEvent( QMouseEvent *e )
}
}
-void ModuleWidget::mouseMoveEvent( QMouseEvent *e )
+void ModuleWidget::mouseMoveEvent( TQMouseEvent *e )
{
if(activeTool)
{
@@ -181,7 +181,7 @@ void ModuleWidget::mouseMoveEvent( QMouseEvent *e )
}
}
-void ModuleWidget::mouseReleaseEvent( QMouseEvent *e )
+void ModuleWidget::mouseReleaseEvent( TQMouseEvent *e )
{
if(activeTool)
{
@@ -250,16 +250,16 @@ bool ModuleWidget::hasSpace(StructureComponent *c, int destx, int desty,
return true;
}
-void ModuleWidget::paintCellBackground(QPainter *p, int y, int x)
+void ModuleWidget::paintCellBackground(TQPainter *p, int y, int x)
{
- QColor bgcolor;
+ TQColor bgcolor;
if((y & 1) == 1)
- bgcolor = QColor(168, 168, 168);
+ bgcolor = TQColor(168, 168, 168);
else
- bgcolor = QColor(146, 168, 146);
+ bgcolor = TQColor(146, 168, 146);
- p->fillRect(0, 0, cellsize, cellsize, QBrush(bgcolor));
+ p->fillRect(0, 0, cellsize, cellsize, TQBrush(bgcolor));
p->setPen(bgcolor.dark(115));
p->drawLine(0, 0, 0, cellsize - 1);
@@ -296,7 +296,7 @@ void ModuleWidget::endUpdate()
{
if(!--updateDepth)
{
- std::list<QRect>::iterator i;
+ std::list<TQRect>::iterator i;
for(i = UpdateList.begin(); i != UpdateList.end(); i++)
{
@@ -309,7 +309,7 @@ void ModuleWidget::endUpdate()
void ModuleWidget::redrawRect(int x, int y, int width, int height)
{
- QRect r = QRect(x, y, width, height);
+ TQRect r = TQRect(x, y, width, height);
if(!updateDepth)
{
@@ -321,7 +321,7 @@ void ModuleWidget::redrawRect(int x, int y, int width, int height)
}
}
-void ModuleWidget::redrawCells(QRect &r)
+void ModuleWidget::redrawCells(TQRect &r)
{
int x, y;
@@ -461,18 +461,18 @@ void ModuleWidget::reRoute()
void ModuleWidget::redrawAll()
{
// redraw everything
- QRect updaterect(0, 0, cols, rows);
+ TQRect updaterect(0, 0, cols, rows);
redrawCells(updaterect);
}
-void ModuleWidget::paintConnection(QPainter *p, int x, int y, int arx, int ary)
+void ModuleWidget::paintConnection(TQPainter *p, int x, int y, int arx, int ary)
{
long linetype = autorouter->get(arx, ary);
long ud_owner = -1, lr_owner = -1, lr_break = 0, ud_break = 0;
autorouter->getowners(arx, ary, ud_owner, lr_owner);
- p->setPen(QColor(255, 255, 255));
+ p->setPen(TQColor(255, 255, 255));
/*
if(linetype == AutoRouter::none)
@@ -481,7 +481,7 @@ void ModuleWidget::paintConnection(QPainter *p, int x, int y, int arx, int ary)
}
if(linetype & AutoRouter::solid)
{
- QBrush whitefill(QColor(255, 255, 255));
+ TQBrush whitefill(TQColor(255, 255, 255));
p->fillRect(x + cellsize/6, y + cellsize/6, cellsize/6, cellsize/6, whitefill);
}
@@ -513,7 +513,7 @@ void ModuleWidget::paintConnection(QPainter *p, int x, int y, int arx, int ary)
p->drawLine(x, y + cellsize/4, x, y + ud_break);
}
-void ModuleWidget::paintConnections(QPainter *p, int y, int x)
+void ModuleWidget::paintConnections(TQPainter *p, int y, int x)
{
// paints connections in the given 2x2-autorouter-block being a 1x1 block to the user
for(int dx = 0; dx < 2; dx++)
@@ -521,7 +521,7 @@ void ModuleWidget::paintConnections(QPainter *p, int y, int x)
paintConnection(p, (cellsize*dx)/2, (cellsize*dy)/2, x*2 + dx, y*2 + dy);
}
-void ModuleWidget::paintCell(QPainter *p, int y, int x)
+void ModuleWidget::paintCell(TQPainter *p, int y, int x)
{
#if 0 /* PORT */
if(theArtsBuilderApp->eventStackDepth() > 1)
@@ -594,7 +594,7 @@ void ModuleWidget::delModule()
if(KMessageBox::warningContinueCancel(0,
i18n("Delete %n selected module, port or connection? (No undo possible.)",
"Delete %n selected modules, ports and connections? (No undo possible.)",
- numSelected), QString::null, i18n("&Delete")) == KMessageBox::Continue)
+ numSelected), TQString::null, i18n("&Delete")) == KMessageBox::Continue)
{
selectPort(0L);
emit componentSelected(0);
@@ -608,7 +608,7 @@ void ModuleWidget::autoRedrawRouter()
if(autorouter->needRedraw()) redrawAll();
}
-ModuleWidget::ModuleWidget(Structure *structure, QWidget *parent, const char *name, WFlags f)
+ModuleWidget::ModuleWidget(Structure *structure, TQWidget *parent, const char *name, WFlags f)
: QtTableView( parent, name, f),
updateDepth( 0 ),
activeTool( 0L ),
@@ -636,9 +636,9 @@ ModuleWidget::ModuleWidget(Structure *structure, QWidget *parent, const char *na
autorouter = new AutoRouter(cols*2, rows*2);
arts_debug("PORT: mw; new ar ok - qtimer");
- QTimer *timer = new QTimer( this );
- connect( timer, SIGNAL(timeout()),
- this, SLOT(autoRedrawRouter()) );
+ TQTimer *timer = new TQTimer( this );
+ connect( timer, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(autoRedrawRouter()) );
arts_debug("PORT: mw; tstart");
timer->start( 100, FALSE ); // 100 ms reoccurring check
diff --git a/arts/builder/mwidget.h b/arts/builder/mwidget.h
index 93f7726..8f92c94 100644
--- a/arts/builder/mwidget.h
+++ b/arts/builder/mwidget.h
@@ -55,15 +55,15 @@ protected:
ModulePort *selectedPort;
std::list<Module *> *ModuleList;
- std::list<QRect> UpdateList;
+ std::list<TQRect> UpdateList;
- void paintCell(QPainter *p, int y, int x);
- void paintCellBackground(QPainter *p, int y, int x);
- void paintConnection(QPainter *p, int x, int y, int arx, int ary);
- void paintConnections(QPainter *p, int y, int x);
- void mousePressEvent( QMouseEvent *e );
- void mouseMoveEvent( QMouseEvent *e );
- void mouseReleaseEvent( QMouseEvent *e );
+ void paintCell(TQPainter *p, int y, int x);
+ void paintCellBackground(TQPainter *p, int y, int x);
+ void paintConnection(TQPainter *p, int x, int y, int arx, int ary);
+ void paintConnections(TQPainter *p, int y, int x);
+ void mousePressEvent( TQMouseEvent *e );
+ void mouseMoveEvent( TQMouseEvent *e );
+ void mouseReleaseEvent( TQMouseEvent *e );
bool hasSpace(StructureComponent *c, int destx, int desty,
bool ignore_selected = false);
@@ -72,7 +72,7 @@ protected:
void setSelectAll(bool newstate);
void beginUpdate();
- void redrawCells(QRect &r);
+ void redrawCells(TQRect &r);
void redrawAll();
void endUpdate();
@@ -105,10 +105,10 @@ public:
void reInit();
void leaveTool(MWidgetTool *tool, bool wasModified= false);
- QPoint componentPos(const StructureComponent *component) const;
- QPoint portPos(const ModulePort *port) const;
+ TQPoint componentPos(const StructureComponent *component) const;
+ TQPoint portPos(const ModulePort *port) const;
- ModuleWidget( Structure *structure, QWidget *parent = 0,
+ ModuleWidget( Structure *structure, TQWidget *parent = 0,
const char *name = 0, WFlags f = 0);
~ModuleWidget();
diff --git a/arts/builder/portposdlg.cpp b/arts/builder/portposdlg.cpp
index 6d5d0de..3584de4 100644
--- a/arts/builder/portposdlg.cpp
+++ b/arts/builder/portposdlg.cpp
@@ -21,42 +21,42 @@
#include "portposdlg.h"
#include "structureport.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qlistbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqlistbox.h>
#include <kbuttonbox.h>
#include <klocale.h>
#include <kinputdialog.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
#include <kapplication.h>
#include <kiconloader.h>
#include <kseparator.h>
-#include <qlineedit.h>
+#include <tqlineedit.h>
#include <stdio.h>
#include <arts/debug.h>
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <kstdguiitem.h>
using namespace std;
-PortPosDlg::PortPosDlg(QWidget *parent, Structure *structure) :QDialog(parent,"Props", TRUE)
+PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,"Props", TRUE)
{
this->structure = structure;
setCaption(i18n("aRts: Structureport View"));
- QVBoxLayout *mainlayout = new QVBoxLayout(this);
- //QHBoxLayout *contentslayout = new QHBoxLayout;
+ TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
+ //TQHBoxLayout *contentslayout = new QHBoxLayout;
// object type
/*
mainlayout->addSpacing(5);
- QLabel *objectlabel = new QLabel(this);
- QFont labelfont(objectlabel->font());
+ TQLabel *objectlabel = new TQLabel(this);
+ TQFont labelfont(objectlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
objectlabel->setFont(labelfont);
- objectlabel->setText(QString(" ")+i18n("Object type: ")+QString(port->owner->name())+QString(" "));
+ objectlabel->setText(TQString(" ")+i18n("Object type: ")+TQString(port->owner->name())+TQString(" "));
objectlabel->setAlignment(AlignCenter);
min_size(objectlabel);
mainlayout->addWidget(objectlabel);
@@ -66,7 +66,7 @@ PortPosDlg::PortPosDlg(QWidget *parent, Structure *structure) :QDialog(parent,"P
/*
mainlayout->addSpacing(5);
- QLabel *portlabel = new QLabel(this);
+ TQLabel *portlabel = new TQLabel(this);
labelfont.setPointSize(labelfont.pointSize()*4/5);
portlabel->setFont(labelfont);
portlabel->setText(i18n("Port description: ")+ port->description);
@@ -89,7 +89,7 @@ PortPosDlg::PortPosDlg(QWidget *parent, Structure *structure) :QDialog(parent,"P
*/
// list
- listbox = new QListBox(this);
+ listbox = new TQListBox(this);
update();
@@ -103,7 +103,7 @@ PortPosDlg::PortPosDlg(QWidget *parent, Structure *structure) :QDialog(parent,"P
// buttons
- QHBoxLayout *buttonlayout = new QHBoxLayout;
+ TQHBoxLayout *buttonlayout = new QHBoxLayout;
mainlayout->addSpacing(5);
mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
@@ -111,27 +111,27 @@ PortPosDlg::PortPosDlg(QWidget *parent, Structure *structure) :QDialog(parent,"P
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- bbox->addButton(KStdGuiItem::help(), this, SLOT( help() ));
+ bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() ));
bbox->addStretch(1);
KIconLoader iconloader;
- QButton *raise = bbox->addButton(i18n("&Raise"));
+ TQButton *raise = bbox->addButton(i18n("&Raise"));
raise->setPixmap(iconloader.loadIcon("up", KIcon::Small));
- connect( raise, SIGNAL( clicked() ), SLOT( raise() ));
+ connect( raise, TQT_SIGNAL( clicked() ), TQT_SLOT( raise() ));
- QButton *lower = bbox->addButton(i18n("&Lower"));
+ TQButton *lower = bbox->addButton(i18n("&Lower"));
lower->setPixmap(iconloader.loadIcon("down", KIcon::Small));
- connect( lower, SIGNAL( clicked() ), SLOT( lower() ));
+ connect( lower, TQT_SIGNAL( clicked() ), TQT_SLOT( lower() ));
- QButton *rename = bbox->addButton(i18n("R&ename..."));
- connect( rename, SIGNAL( clicked() ), SLOT( rename() ));
+ TQButton *rename = bbox->addButton(i18n("R&ename..."));
+ connect( rename, TQT_SIGNAL( clicked() ), TQT_SLOT( rename() ));
- QButton *okbutton = bbox->addButton(KStdGuiItem::ok());
- connect( okbutton, SIGNAL( clicked() ), SLOT(accept() ) );
+ TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
+ connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
/*
- QButton *cancelbutton = bbox->addButton(i18n("Cancel"));
- connect( cancelbutton, SIGNAL( clicked() ), SLOT(reject() ) );
+ TQButton *cancelbutton = bbox->addButton(i18n("Cancel"));
+ connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
*/
bbox->layout();
//min_size(bbox);
@@ -188,7 +188,7 @@ void PortPosDlg::rename()
assert(port);
bool ok;
- QString name = KInputDialog::getText( i18n( "Rename Port" ),
+ TQString name = KInputDialog::getText( i18n( "Rename Port" ),
i18n( "Enter port name:" ), port->name(), &ok, this );
if (ok)
{
diff --git a/arts/builder/portposdlg.h b/arts/builder/portposdlg.h
index 775e24b..1adc997 100644
--- a/arts/builder/portposdlg.h
+++ b/arts/builder/portposdlg.h
@@ -24,21 +24,21 @@
#include "structure.h"
#include "structureport.h"
-#include <qdialog.h>
-#include <qlistbox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
+#include <tqdialog.h>
+#include <tqlistbox.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
#include <vector>
-class PortPosDlg :public QDialog {
+class PortPosDlg :public TQDialog {
Q_OBJECT
protected:
Structure *structure;
- QListBox *listbox;
+ TQListBox *listbox;
std::vector<StructurePort *> listports;
public:
- PortPosDlg(QWidget *parent, Structure *structure);
+ PortPosDlg(TQWidget *parent, Structure *structure);
void update();
public slots:
diff --git a/arts/builder/propertypanel.cpp b/arts/builder/propertypanel.cpp
index 3b281c2..cca2ee5 100644
--- a/arts/builder/propertypanel.cpp
+++ b/arts/builder/propertypanel.cpp
@@ -25,38 +25,38 @@
#include <klocale.h>
#include <kdebug.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
-#include <qcombobox.h>
-#include <qlistbox.h>
-#include <qlineedit.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqcombobox.h>
+#include <tqlistbox.h>
+#include <tqlineedit.h>
#include <arts/debug.h>
-PropertyPanel::PropertyPanel( QWidget* parent, const char* name, WFlags fl )
+PropertyPanel::PropertyPanel( TQWidget* parent, const char* name, WFlags fl )
: PropertyPanelBase( parent, name, fl ),
component(0L),
port(0L)
{
setTitleFont();
setTitleColors();
- connect( kapp, SIGNAL( kdisplayFontChanged() ),
- this, SLOT( setTitleFont() ));
- connect( kapp, SIGNAL( kdisplayPaletteChanged() ),
- this, SLOT( setTitleColors() ));
- connect( portValueGroup, SIGNAL( clicked(int) ),
- this, SLOT( pvModeChanged(int) ));
- connect( constantValueEdit, SIGNAL( returnPressed() ),
- this, SLOT( writePortProperties() ));
- connect( constantValueComboBox, SIGNAL( activated(int) ),
- this, SLOT( writePortProperties() ));
- connect( portCombo, SIGNAL( activated(int) ),
- this, SLOT( comboPortSelected(int) ));
- connect( connectButton, SIGNAL( clicked() ),
- this, SLOT( connectButtonClicked() ));
+ connect( kapp, TQT_SIGNAL( kdisplayFontChanged() ),
+ this, TQT_SLOT( setTitleFont() ));
+ connect( kapp, TQT_SIGNAL( kdisplayPaletteChanged() ),
+ this, TQT_SLOT( setTitleColors() ));
+ connect( portValueGroup, TQT_SIGNAL( clicked(int) ),
+ this, TQT_SLOT( pvModeChanged(int) ));
+ connect( constantValueEdit, TQT_SIGNAL( returnPressed() ),
+ this, TQT_SLOT( writePortProperties() ));
+ connect( constantValueComboBox, TQT_SIGNAL( activated(int) ),
+ this, TQT_SLOT( writePortProperties() ));
+ connect( portCombo, TQT_SIGNAL( activated(int) ),
+ this, TQT_SLOT( comboPortSelected(int) ));
+ connect( connectButton, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( connectButtonClicked() ));
constantValueComboBox->hide();
setEnabled( false );
@@ -65,7 +65,7 @@ PropertyPanel::PropertyPanel( QWidget* parent, const char* name, WFlags fl )
void PropertyPanel::setTitleFont()
{
- QFont titleFont = font();
+ TQFont titleFont = font();
titleFont.setPointSizeFloat( titleFont.pointSizeFloat()*1.5f );
moduleNameLabel->setFont( titleFont );
titleFont = font();
@@ -73,35 +73,35 @@ void PropertyPanel::setTitleFont()
selectedLabel->setFont( titleFont );
}
-QColorGroup PropertyPanel::highlightColorGroup( QColorGroup cg )
+TQColorGroup PropertyPanel::highlightColorGroup( TQColorGroup cg )
{
- cg.setColor( QColorGroup::Foreground, cg.highlightedText() );
- cg.setColor( QColorGroup::Background, cg.highlight() );
+ cg.setColor( TQColorGroup::Foreground, cg.highlightedText() );
+ cg.setColor( TQColorGroup::Background, cg.highlight() );
return cg;
}
void PropertyPanel::setTitleColors()
{
- QPalette palette = titleFrame->palette();
+ TQPalette palette = titleFrame->palette();
palette.setActive( highlightColorGroup( palette.active() ) );
palette.setInactive( highlightColorGroup( palette.inactive() ) );
palette.setDisabled( highlightColorGroup( palette.disabled() ) );
titleFrame->setPalette( palette );
}
-void PropertyPanel::resizeEvent ( QResizeEvent * )
+void PropertyPanel::resizeEvent ( TQResizeEvent * )
{
if(width()*3 < height()*4)
- mainBoxLayout->setDirection( QBoxLayout::TopToBottom );
+ mainBoxLayout->setDirection( TQBoxLayout::TopToBottom );
else
- mainBoxLayout->setDirection( QBoxLayout::LeftToRight );
+ mainBoxLayout->setDirection( TQBoxLayout::LeftToRight );
}
/*************************************************************/
void PropertyPanel::setSelectedComponent( StructureComponent *component )
{
- //kdDebug() << QString("PropertyPanel::setSelectedComponent ") << component << endl;
+ //kdDebug() << TQString("PropertyPanel::setSelectedComponent ") << component << endl;
if( this->component == component ) return;
this->component = component;
@@ -127,8 +127,8 @@ void PropertyPanel::setSelectedComponent( StructureComponent *component )
for(std::list<ModulePort *>::iterator it = modulePorts.begin();
it != modulePorts.end(); it++)
{
- QString portTitle = (*it)->description
- + QString(" (%1)").arg( (*it)->PortDesc.type().direction == Arts::output ?
+ TQString portTitle = (*it)->description
+ + TQString(" (%1)").arg( (*it)->PortDesc.type().direction == Arts::output ?
i18n("OUTPUT") : i18n("INPUT") );
portCombo->insertItem( portTitle );
}
@@ -149,7 +149,7 @@ void PropertyPanel::setSelectedPort( ModulePort *port )
setSelectedComponent( port->owner );
rereadPortProperties();
portValueGroup->setEnabled( true );
- QString tipText = i18n("Tip: Just typing numbers or alphabetic characters starts entering constant values.");
+ TQString tipText = i18n("Tip: Just typing numbers or alphabetic characters starts entering constant values.");
tipLabel->setText( tipText );
tipLabel->show();
@@ -208,7 +208,7 @@ void PropertyPanel::writePortProperties()
void PropertyPanel::writePortProperties( bool reread )
{
- //kdDebug() << QString("PropertyPanel::writePortProperties") << endl;
+ //kdDebug() << TQString("PropertyPanel::writePortProperties") << endl;
if(!port) return; // sanity check
bool dirty = false;
@@ -232,7 +232,7 @@ void PropertyPanel::writePortProperties( bool reread )
if(pvConstantButton->isChecked())
{
std::string type = port->PortDesc.type().dataType;
- QString newvalue = constantValueEdit->text();
+ TQString newvalue = constantValueEdit->text();
Arts::Any a;
a.type = type;
@@ -270,7 +270,7 @@ void PropertyPanel::writePortProperties( bool reread )
void PropertyPanel::rereadPortProperties()
{
- //kdDebug() << QString("PropertyPanel::rereadPortProperties") << endl;
+ //kdDebug() << TQString("PropertyPanel::rereadPortProperties") << endl;
if(!port) return; // sanity check
std::string dataType = port->PortDesc.type().dataType;
@@ -291,7 +291,7 @@ void PropertyPanel::rereadPortProperties()
{
pvConstantButton->setChecked( true );
- QString constValue;
+ TQString constValue;
Arts::Any value = port->PortDesc.value();
Arts::Buffer b;
@@ -337,14 +337,14 @@ void PropertyPanel::rereadPortProperties()
pvConnectionButton->setEnabled( port->PortDesc.isConnected() );
}
-bool PropertyPanel::eventFilter( QObject *o, QEvent *e )
+bool PropertyPanel::eventFilter( TQObject *o, TQEvent *e )
{
- if( port && !constantValueEdit->hasFocus() && (e->type() == QEvent::KeyPress) ) {
-// kdDebug() << QString(" ..is KeyPress") << endl;
- QString entered = static_cast<QKeyEvent *>(e)->text();
+ if( port && !constantValueEdit->hasFocus() && (e->type() == TQEvent::KeyPress) ) {
+// kdDebug() << TQString(" ..is KeyPress") << endl;
+ TQString entered = static_cast<TQKeyEvent *>(e)->text();
bool goodString = entered.length() > 0;
-// kdDebug() << QString("pressed '%1'").arg(entered) << endl;
+// kdDebug() << TQString("pressed '%1'").arg(entered) << endl;
for( unsigned int i = 0; i < entered.length(); i++)
goodString = goodString && entered[i].isLetterOrNumber();
@@ -359,7 +359,7 @@ bool PropertyPanel::eventFilter( QObject *o, QEvent *e )
}
}
// else
-// kdDebug() << "event type = " << e->type() << " != " << QEvent::KeyPress << endl;
+// kdDebug() << "event type = " << e->type() << " != " << TQEvent::KeyPress << endl;
return FALSE; // PropertyPanelBase::eventFilter( o, e );
}
@@ -378,7 +378,7 @@ void PropertyPanel::fillEnumChoices(const std::string& type)
std::vector<Arts::EnumComponent>::const_iterator eci;
for(eci = edef.contents.begin(); eci != edef.contents.end(); ++eci)
- constantValueComboBox->insertItem(QString::fromUtf8(eci->name.c_str()));
+ constantValueComboBox->insertItem(TQString::fromUtf8(eci->name.c_str()));
}
long PropertyPanel::selectedEnumValue(const std::string& type)
diff --git a/arts/builder/propertypanel.h b/arts/builder/propertypanel.h
index 28cc7ab..3603dda 100644
--- a/arts/builder/propertypanel.h
+++ b/arts/builder/propertypanel.h
@@ -21,7 +21,7 @@
#define PROPERTYPANEL_H
#include "propertypanelbase.h"
-#include "qpalette.h"
+#include "tqpalette.h"
#include <vector>
#include <list>
@@ -35,7 +35,7 @@ class PropertyPanel: public PropertyPanelBase
Q_OBJECT
public:
- PropertyPanel( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ PropertyPanel( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
public slots:
void setSelectedComponent( StructureComponent *component );
@@ -53,7 +53,7 @@ protected slots:
void writePortProperties( bool reread );
void rereadPortProperties();
- bool eventFilter( QObject *, QEvent * );
+ bool eventFilter( TQObject *, TQEvent * );
signals:
void startConnection( ModulePort * );
@@ -62,13 +62,13 @@ signals:
protected:
enum ConnType { ctNone, ctValue, ctConnection };
- void resizeEvent ( QResizeEvent * );
+ void resizeEvent ( TQResizeEvent * );
StructureComponent *component;
ModulePort *port;
std::list<ModulePort *> modulePorts;
- QColorGroup highlightColorGroup( QColorGroup cg );
+ TQColorGroup highlightColorGroup( TQColorGroup cg );
bool isEnum(const std::string& type);
void fillEnumChoices(const std::string& type);
long selectedEnumValue(const std::string& type);
diff --git a/arts/builder/qttableview.cpp b/arts/builder/qttableview.cpp
index 7f044d2..1a283ed 100644
--- a/arts/builder/qttableview.cpp
+++ b/arts/builder/qttableview.cpp
@@ -15,9 +15,9 @@
#include "qttableview.h"
#include "qttableview.moc"
#ifndef QT_NO_QTTABLEVIEW
-#include "qscrollbar.h"
-#include "qpainter.h"
-#include "qdrawutil.h"
+#include "tqscrollbar.h"
+#include "tqpainter.h"
+#include "tqdrawutil.h"
#include <limits.h>
enum ScrollBarDirtyFlags {
@@ -41,16 +41,16 @@ enum ScrollBarDirtyFlags {
class QCornerSquare : public QWidget // internal class
{
public:
- QCornerSquare( QWidget *, const char* = 0 );
- void paintEvent( QPaintEvent * );
+ QCornerSquare( TQWidget *, const char* = 0 );
+ void paintEvent( TQPaintEvent * );
};
-QCornerSquare::QCornerSquare( QWidget *parent, const char *name )
- : QWidget( parent, name )
+QCornerSquare::QCornerSquare( TQWidget *parent, const char *name )
+ : TQWidget( parent, name )
{
}
-void QCornerSquare::paintEvent( QPaintEvent * )
+void QCornerSquare::paintEvent( TQPaintEvent * )
{
}
@@ -113,9 +113,9 @@ void QCornerSquare::paintEvent( QPaintEvent * )
\warning Experience has shown that use of this widget tends to cause
more bugs than expected and our analysis indicates that the widget's
- very flexibility is the problem. If QScrollView or QListBox can
+ very flexibility is the problem. If TQScrollView or TQListBox can
easily be made to do the job you need, we recommend subclassing
- those widgets rather than QtTableView. In addition, QScrollView makes
+ those widgets rather than QtTableView. In addition, TQScrollView makes
it easy to have child widgets inside tables, which QtTableView
doesn't support at all.
@@ -126,7 +126,7 @@ void QCornerSquare::paintEvent( QPaintEvent * )
/*!
Constructs a table view. The \a parent, \a name and \f arguments
- are passed to the QFrame constructor.
+ are passed to the TQFrame constructor.
The \link setTableFlags() table flags\endlink are all cleared (set to 0).
Set \c Tbl_autoVScrollBar or \c Tbl_autoHScrollBar to get automatic scroll
@@ -135,17 +135,17 @@ void QCornerSquare::paintEvent( QPaintEvent * )
The \link setCellHeight() cell height\endlink and \link setCellWidth()
cell width\endlink are set to 0.
- Frame line shapes (QFrame::HLink and QFrame::VLine) are disallowed;
- see QFrame::setFrameStyle().
+ Frame line shapes (TQFrame::HLink and TQFrame::VLine) are disallowed;
+ see TQFrame::setFrameStyle().
Note that the \a f argument is \e not \link setTableFlags() table
- flags \endlink but rather \link QWidget::QWidget() widget
+ flags \endlink but rather \link TQWidget::TQWidget() widget
flags. \endlink
*/
-QtTableView::QtTableView( QWidget *parent, const char *name, WFlags f )
- : QFrame( parent, name, f )
+QtTableView::QtTableView( TQWidget *parent, const char *name, WFlags f )
+ : TQFrame( parent, name, f )
{
nRows = nCols = 0; // zero rows/cols
xCellOffs = yCellOffs = 0; // zero offset
@@ -179,21 +179,21 @@ QtTableView::~QtTableView()
/*!
\internal
- Reimplements QWidget::setBackgroundColor() for binary compatibility.
+ Reimplements TQWidget::setBackgroundColor() for binary compatibility.
\sa setPalette()
*/
-void QtTableView::setBackgroundColor( const QColor &c )
+void QtTableView::setBackgroundColor( const TQColor &c )
{
- QWidget::setBackgroundColor( c );
+ TQWidget::setBackgroundColor( c );
}
/*!\reimp
*/
-void QtTableView::setPalette( const QPalette &p )
+void QtTableView::setPalette( const TQPalette &p )
{
- QWidget::setPalette( p );
+ TQWidget::setPalette( p );
}
/*!\reimp
@@ -202,7 +202,7 @@ void QtTableView::setPalette( const QPalette &p )
void QtTableView::show()
{
showOrHideScrollBars();
- QWidget::show();
+ TQWidget::show();
}
@@ -226,7 +226,7 @@ void QtTableView::show()
event.
At present, QtTableView is the only widget that reimplements \link
- QWidget::repaint() repaint()\endlink. It does this because by
+ TQWidget::repaint() repaint()\endlink. It does this because by
clearing and then repainting one cell at at time, it can make the
screen flicker less than it would otherwise. */
@@ -238,10 +238,10 @@ void QtTableView::repaint( int x, int y, int w, int h, bool erase )
w = width() - x;
if ( h < 0 )
h = height() - y;
- QRect r( x, y, w, h );
+ TQRect r( x, y, w, h );
if ( r.isEmpty() )
return; // nothing to do
- QPaintEvent e( r );
+ TQPaintEvent e( r );
if ( erase && backgroundMode() != NoBackground )
eraseInPaint = TRUE; // erase when painting
paintEvent( &e );
@@ -249,7 +249,7 @@ void QtTableView::repaint( int x, int y, int w, int h, bool erase )
}
/*!
- \overload void QtTableView::repaint( const QRect &r, bool erase )
+ \overload void QtTableView::repaint( const TQRect &r, bool erase )
Replaints rectangle \a r. If \a erase is TRUE draws the background
using the palette's background.
*/
@@ -730,7 +730,7 @@ int QtTableView::totalHeight()
<dt> Tbl_autoHScrollBar <dd> The table has a horizontal scroll bar if
- and only if - the table is wider than the view.
<dt> Tbl_autoScrollBars <dd> - The union of the previous two flags.
- <dt> Tbl_clipCellPainting <dd> - The table uses QPainter::setClipRect() to
+ <dt> Tbl_clipCellPainting <dd> - The table uses TQPainter::setClipRect() to
make sure that paintCell() will not draw outside the cell
boundaries.
<dt> Tbl_cutCellsV <dd> - The table will never show part of a
@@ -960,7 +960,7 @@ void QtTableView::updateCell( int row, int col, bool erase )
return;
if ( !rowYPos( row, &yPos ) )
return;
- QRect uR = QRect( xPos, yPos,
+ TQRect uR = TQRect( xPos, yPos,
cellW ? cellW : cellWidth(col),
cellH ? cellH : cellHeight(row) );
repaint( uR.intersect(viewRect()), erase );
@@ -968,7 +968,7 @@ void QtTableView::updateCell( int row, int col, bool erase )
/*!
- \fn QRect QtTableView::cellUpdateRect() const
+ \fn TQRect QtTableView::cellUpdateRect() const
This function should be called only from the paintCell() function in
subclasses. It returns the portion of a cell that actually needs to be
@@ -982,9 +982,9 @@ void QtTableView::updateCell( int row, int col, bool erase )
frame, in \e widget coordinates.
*/
-QRect QtTableView::viewRect() const
+TQRect QtTableView::viewRect() const
{
- return QRect( frameWidth(), frameWidth(), viewWidth(), viewHeight() );
+ return TQRect( frameWidth(), frameWidth(), viewWidth(), viewHeight() );
}
@@ -1127,7 +1127,7 @@ void QtTableView::snapToGrid( bool horizontal, bool vertical )
/*!
\internal
This internal slot is connected to the horizontal scroll bar's
- QScrollBar::valueChanged() signal.
+ TQScrollBar::valueChanged() signal.
Moves the table horizontally to offset \a val without updating the
scroll bar.
@@ -1148,7 +1148,7 @@ void QtTableView::horSbValue( int val )
/*!
\internal
This internal slot is connected to the horizontal scroll bar's
- QScrollBar::sliderMoved() signal.
+ TQScrollBar::sliderMoved() signal.
Scrolls the table smoothly horizontally even if \c Tbl_snapToHGrid is set.
*/
@@ -1168,7 +1168,7 @@ void QtTableView::horSbSliding( int val )
/*!
\internal
This internal slot is connected to the horizontal scroll bar's
- QScrollBar::sliderReleased() signal.
+ TQScrollBar::sliderReleased() signal.
*/
void QtTableView::horSbSlidingDone( )
@@ -1181,7 +1181,7 @@ void QtTableView::horSbSlidingDone( )
/*!
\internal
This internal slot is connected to the vertical scroll bar's
- QScrollBar::valueChanged() signal.
+ TQScrollBar::valueChanged() signal.
Moves the table vertically to offset \a val without updating the
scroll bar.
@@ -1202,7 +1202,7 @@ void QtTableView::verSbValue( int val )
/*!
\internal
This internal slot is connected to the vertical scroll bar's
- QScrollBar::sliderMoved() signal.
+ TQScrollBar::sliderMoved() signal.
Scrolls the table smoothly vertically even if \c Tbl_snapToVGrid is set.
*/
@@ -1222,7 +1222,7 @@ void QtTableView::verSbSliding( int val )
/*!
\internal
This internal slot is connected to the vertical scroll bar's
- QScrollBar::sliderReleased() signal.
+ TQScrollBar::sliderReleased() signal.
*/
void QtTableView::verSbSlidingDone( )
@@ -1240,18 +1240,18 @@ void QtTableView::verSbSlidingDone( )
do so for each cell.
*/
-void QtTableView::setupPainter( QPainter * )
+void QtTableView::setupPainter( TQPainter * )
{
}
/*!
- \fn void QtTableView::paintCell( QPainter *p, int row, int col )
+ \fn void QtTableView::paintCell( TQPainter *p, int row, int col )
This pure virtual function is called to paint the single cell at \a
(row,col) using \a p, which is open when paintCell() is called and
must remain open.
- The coordinate system is \link QPainter::translate() translated \endlink
+ The coordinate system is \link TQPainter::translate() translated \endlink
so that the origin is at the top-left corner of the cell to be
painted, i.e. \e cell coordinates. Do not scale or shear the coordinate
system (or if you do, restore the transformation matrix before you
@@ -1269,16 +1269,16 @@ void QtTableView::setupPainter( QPainter * )
Calls paintCell() for the cells that needs to be repainted.
*/
-void QtTableView::paintEvent( QPaintEvent *e )
+void QtTableView::paintEvent( TQPaintEvent *e )
{
- QRect updateR = e->rect(); // update rectangle
+ TQRect updateR = e->rect(); // update rectangle
if ( sbDirty ) {
bool e = eraseInPaint;
updateScrollBars();
eraseInPaint = e;
}
- QPainter paint( this );
+ TQPainter paint( this );
if ( !contentsRect().contains( updateR, TRUE ) ) {// update frame ?
drawFrame( &paint );
@@ -1312,11 +1312,11 @@ void QtTableView::paintEvent( QPaintEvent *e )
int xPos = maxX+1; // in case the while() is empty
int nextX;
int nextY;
- QRect winR = viewRect();
- QRect cellR;
- QRect cellUR;
+ TQRect winR = viewRect();
+ TQRect cellR;
+ TQRect cellUR;
#ifndef QT_NO_TRANSFORMATIONS
- QWMatrix matrix;
+ TQWMatrix matrix;
#endif
while ( yPos <= maxY && row < nRows ) {
@@ -1384,22 +1384,22 @@ void QtTableView::paintEvent( QPaintEvent *e )
// inside the cells. So QtTableView is reponsible for all pixels
// outside the cells.
- QRect viewR = viewRect();
- const QColorGroup g = colorGroup();
+ TQRect viewR = viewRect();
+ const TQColorGroup g = colorGroup();
if ( xPos <= maxX ) {
- QRect r = viewR;
+ TQRect r = viewR;
r.setLeft( xPos );
r.setBottom( yPos<maxY?yPos:maxY );
- if ( inherits( "QMultiLineEdit" ) )
+ if ( inherits( "TQMultiLineEdit" ) )
paint.fillRect( r.intersect( updateR ), g.base() );
else
paint.eraseRect( r.intersect( updateR ) );
}
if ( yPos <= maxY ) {
- QRect r = viewR;
+ TQRect r = viewR;
r.setTop( yPos );
- if ( inherits( "QMultiLineEdit" ) )
+ if ( inherits( "TQMultiLineEdit" ) )
paint.fillRect( r.intersect( updateR ), g.base() );
else
paint.eraseRect( r.intersect( updateR ) );
@@ -1408,7 +1408,7 @@ void QtTableView::paintEvent( QPaintEvent *e )
/*!\reimp
*/
-void QtTableView::resizeEvent( QResizeEvent * )
+void QtTableView::resizeEvent( TQResizeEvent * )
{
updateScrollBars( horValue | verValue | horSteps | horGeometry | horRange |
verSteps | verGeometry | verRange );
@@ -1435,11 +1435,11 @@ void QtTableView::updateView()
values; use findRow() to translate to cell numbers.
*/
-QScrollBar *QtTableView::verticalScrollBar() const
+TQScrollBar *QtTableView::verticalScrollBar() const
{
QtTableView *that = (QtTableView*)this; // semantic const
if ( !vScrollBar ) {
- QScrollBar *sb = new QScrollBar( QScrollBar::Vertical, that );
+ TQScrollBar *sb = new TQScrollBar( TQScrollBar::Vertical, that );
#ifndef QT_NO_CURSOR
sb->setCursor( arrowCursor );
#endif
@@ -1447,12 +1447,12 @@ QScrollBar *QtTableView::verticalScrollBar() const
Q_CHECK_PTR(sb);
sb->setTracking( FALSE );
sb->setFocusPolicy( NoFocus );
- connect( sb, SIGNAL(valueChanged(int)),
- SLOT(verSbValue(int)));
- connect( sb, SIGNAL(sliderMoved(int)),
- SLOT(verSbSliding(int)));
- connect( sb, SIGNAL(sliderReleased()),
- SLOT(verSbSlidingDone()));
+ connect( sb, TQT_SIGNAL(valueChanged(int)),
+ TQT_SLOT(verSbValue(int)));
+ connect( sb, TQT_SIGNAL(sliderMoved(int)),
+ TQT_SLOT(verSbSliding(int)));
+ connect( sb, TQT_SIGNAL(sliderReleased()),
+ TQT_SLOT(verSbSlidingDone()));
sb->hide();
that->vScrollBar = sb;
return sb;
@@ -1466,11 +1466,11 @@ QScrollBar *QtTableView::verticalScrollBar() const
values; use findCol() to translate to cell numbers.
*/
-QScrollBar *QtTableView::horizontalScrollBar() const
+TQScrollBar *QtTableView::horizontalScrollBar() const
{
QtTableView *that = (QtTableView*)this; // semantic const
if ( !hScrollBar ) {
- QScrollBar *sb = new QScrollBar( QScrollBar::Horizontal, that );
+ TQScrollBar *sb = new TQScrollBar( TQScrollBar::Horizontal, that );
#ifndef QT_NO_CURSOR
sb->setCursor( arrowCursor );
#endif
@@ -1478,12 +1478,12 @@ QScrollBar *QtTableView::horizontalScrollBar() const
sb->setFocusPolicy( NoFocus );
Q_CHECK_PTR(sb);
sb->setTracking( FALSE );
- connect( sb, SIGNAL(valueChanged(int)),
- SLOT(horSbValue(int)));
- connect( sb, SIGNAL(sliderMoved(int)),
- SLOT(horSbSliding(int)));
- connect( sb, SIGNAL(sliderReleased()),
- SLOT(horSbSlidingDone()));
+ connect( sb, TQT_SIGNAL(valueChanged(int)),
+ TQT_SLOT(horSbValue(int)));
+ connect( sb, TQT_SIGNAL(sliderMoved(int)),
+ TQT_SLOT(horSbSliding(int)));
+ connect( sb, TQT_SIGNAL(sliderReleased()),
+ TQT_SLOT(horSbSlidingDone()));
sb->hide();
that->hScrollBar = sb;
return sb;
@@ -1787,10 +1787,10 @@ bool QtTableView::colXPos( int col, int *xPos ) const
Moves the visible area of the table right by \a xPixels and
down by \a yPixels pixels. Both may be negative.
- \warning You might find that QScrollView offers a higher-level of
+ \warning You might find that TQScrollView offers a higher-level of
functionality than using QtTableView and this function.
- This function is \e not the same as QWidget::scroll(); in particular,
+ This function is \e not the same as TQWidget::scroll(); in particular,
the signs of \a xPixels and \a yPixels have the reverse semantics.
\sa setXOffset(), setYOffset(), setOffset(), setTopCell(),
@@ -1799,7 +1799,7 @@ bool QtTableView::colXPos( int col, int *xPos ) const
void QtTableView::scroll( int xPixels, int yPixels )
{
- QWidget::scroll( -xPixels, -yPixels, contentsRect() );
+ TQWidget::scroll( -xPixels, -yPixels, contentsRect() );
}
@@ -2058,7 +2058,7 @@ void QtTableView::updateFrameSize()
if ( autoUpdate() ) {
int fh = frameRect().height();
int fw = frameRect().width();
- setFrameRect( QRect(0,0,rw,rh) );
+ setFrameRect( TQRect(0,0,rw,rh) );
if ( rw != fw )
update( QMIN(fw,rw) - frameWidth() - 2, 0, frameWidth()+4, rh );
diff --git a/arts/builder/qttableview.h b/arts/builder/qttableview.h
index c5a540d..9acf017 100644
--- a/arts/builder/qttableview.h
+++ b/arts/builder/qttableview.h
@@ -16,7 +16,7 @@
#define QTTABLEVIEW_H
#ifndef QT_H
-#include "qframe.h"
+#include "tqframe.h"
#endif // QT_H
#ifndef QT_NO_QTTABLEVIEW
@@ -29,16 +29,16 @@ class QtTableView : public QFrame
{
Q_OBJECT
public:
- virtual void setBackgroundColor( const QColor & );
- virtual void setPalette( const QPalette & );
+ virtual void setBackgroundColor( const TQColor & );
+ virtual void setPalette( const TQPalette & );
void show();
void repaint( bool erase=TRUE );
void repaint( int x, int y, int w, int h, bool erase=TRUE );
- void repaint( const QRect &, bool erase=TRUE );
+ void repaint( const TQRect &, bool erase=TRUE );
protected:
- QtTableView( QWidget *parent=0, const char *name=0, WFlags f=0 );
+ QtTableView( TQWidget *parent=0, const char *name=0, WFlags f=0 );
~QtTableView();
int numRows() const;
@@ -87,8 +87,8 @@ protected:
bool rowIsVisible( int row ) const;
bool colIsVisible( int col ) const;
- QScrollBar *verticalScrollBar() const;
- QScrollBar *horizontalScrollBar() const;
+ TQScrollBar *verticalScrollBar() const;
+ TQScrollBar *horizontalScrollBar() const;
private slots:
void horSbValue( int );
@@ -99,11 +99,11 @@ private slots:
void verSbSlidingDone();
protected:
- virtual void paintCell( QPainter *, int row, int col ) = 0;
- virtual void setupPainter( QPainter * );
+ virtual void paintCell( TQPainter *, int row, int col ) = 0;
+ virtual void setupPainter( TQPainter * );
- void paintEvent( QPaintEvent * );
- void resizeEvent( QResizeEvent * );
+ void paintEvent( TQPaintEvent * );
+ void resizeEvent( TQResizeEvent * );
int findRow( int yPos ) const;
int findCol( int xPos ) const;
@@ -164,8 +164,8 @@ private:
uint tFlags;
QRect cellUpdateR;
- QScrollBar *vScrollBar;
- QScrollBar *hScrollBar;
+ TQScrollBar *vScrollBar;
+ TQScrollBar *hScrollBar;
QCornerSquare *cornerSquare;
private: // Disabled copy constructor and operator=
@@ -230,7 +230,7 @@ inline uint QtTableView::tableFlags() const
inline bool QtTableView::testTableFlags( uint f ) const
{ return (tFlags & f) != 0; }
-inline QRect QtTableView::cellUpdateRect() const
+inline TQRect QtTableView::cellUpdateRect() const
{ return cellUpdateR; }
inline bool QtTableView::autoUpdate() const
@@ -239,7 +239,7 @@ inline bool QtTableView::autoUpdate() const
inline void QtTableView::repaint( bool erase )
{ repaint( 0, 0, width(), height(), erase ); }
-inline void QtTableView::repaint( const QRect &r, bool erase )
+inline void QtTableView::repaint( const TQRect &r, bool erase )
{ repaint( r.x(), r.y(), r.width(), r.height(), erase ); }
inline void QtTableView::updateScrollBars()
diff --git a/arts/builder/retrievedlg.cpp b/arts/builder/retrievedlg.cpp
index cbf6af9..4e09192 100644
--- a/arts/builder/retrievedlg.cpp
+++ b/arts/builder/retrievedlg.cpp
@@ -20,13 +20,13 @@
*/
#include "retrievedlg.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qlistbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqlistbox.h>
#include <kbuttonbox.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
-#include <qlineedit.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqlineedit.h>
#include <kapplication.h>
#include <kseparator.h>
#include <klocale.h>
@@ -34,26 +34,26 @@
#include <stdio.h>
#include <set>
#include <arts/debug.h>
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
-static void min_size(QWidget *w) {
+static void min_size(TQWidget *w) {
w->setMinimumSize(w->sizeHint());
}
-RetrieveDlg::RetrieveDlg(QWidget *parent) :QDialog(parent,"X", TRUE)
+RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", TRUE)
{
setCaption(i18n("Retrieve Structure From Server"));
- QVBoxLayout *mainlayout = new QVBoxLayout(this);
+ TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: "Synthesis running..."
mainlayout->addSpacing(5);
- QLabel *captionlabel = new QLabel(this);
- QFont labelfont(captionlabel->font());
+ TQLabel *captionlabel = new TQLabel(this);
+ TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
captionlabel->setFont(labelfont);
- captionlabel->setText(QString(" ")+i18n("Published structures")+QString(" "));
+ captionlabel->setText(TQString(" ")+i18n("Published structures")+TQString(" "));
captionlabel->setAlignment(AlignCenter);
min_size(captionlabel);
mainlayout->addWidget(captionlabel);
@@ -67,7 +67,7 @@ RetrieveDlg::RetrieveDlg(QWidget *parent) :QDialog(parent,"X", TRUE)
// listwidget
- listbox = new QListBox(this);
+ listbox = new TQListBox(this);
listbox->setMinimumSize(300,200);
arts_debug("TODO:PORT:get available structures");
@@ -96,7 +96,7 @@ RetrieveDlg::RetrieveDlg(QWidget *parent) :QDialog(parent,"X", TRUE)
// buttons
- QHBoxLayout *buttonlayout = new QHBoxLayout;
+ TQHBoxLayout *buttonlayout = new QHBoxLayout;
mainlayout->addSpacing(5);
mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
@@ -104,14 +104,14 @@ RetrieveDlg::RetrieveDlg(QWidget *parent) :QDialog(parent,"X", TRUE)
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- bbox->addButton(KStdGuiItem::help(), this, SLOT( help() ));
+ bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() ));
bbox->addStretch(1);
- QButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
- connect( cancelbutton, SIGNAL( clicked() ), SLOT(reject() ) );
+ TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
+ connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
- QButton *okbutton = bbox->addButton(KStdGuiItem::ok());
- connect( okbutton, SIGNAL( clicked() ), SLOT(accept() ) );
+ TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
+ connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
bbox->layout();
@@ -121,13 +121,13 @@ RetrieveDlg::RetrieveDlg(QWidget *parent) :QDialog(parent,"X", TRUE)
mainlayout->freeze();
}
-QString RetrieveDlg::result()
+TQString RetrieveDlg::result()
{
if(listbox->currentItem() != -1)
{
return(listbox->text(listbox->currentItem()));
}
- return QString::null;
+ return TQString::null;
}
void RetrieveDlg::help()
diff --git a/arts/builder/retrievedlg.h b/arts/builder/retrievedlg.h
index 97a389a..e0a6eb0 100644
--- a/arts/builder/retrievedlg.h
+++ b/arts/builder/retrievedlg.h
@@ -24,21 +24,21 @@
#include "structure.h"
-#include <qdialog.h>
-#include <qtimer.h>
-#include <qlabel.h>
-#include <qscrollbar.h>
-#include <qlineedit.h>
-#include <qlayout.h>
-#include <qlistbox.h>
+#include <tqdialog.h>
+#include <tqtimer.h>
+#include <tqlabel.h>
+#include <tqscrollbar.h>
+#include <tqlineedit.h>
+#include <tqlayout.h>
+#include <tqlistbox.h>
#include <string>
-class RetrieveDlg :public QDialog {
+class RetrieveDlg :public TQDialog {
Q_OBJECT
- QListBox *listbox;
+ TQListBox *listbox;
public:
- RetrieveDlg(QWidget *parent);
- QString result();
+ RetrieveDlg(TQWidget *parent);
+ TQString result();
public slots:
void help();
};
diff --git a/arts/builder/scomponent.cpp b/arts/builder/scomponent.cpp
index fb461f3..094af40 100644
--- a/arts/builder/scomponent.cpp
+++ b/arts/builder/scomponent.cpp
@@ -21,8 +21,8 @@
#include "scomponent.h"
//#include <arts/debug.h>
-#include <qpainter.h>
-#include <qpixmap.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
#include <stdio.h>
StructureComponent::StructureComponent(StructureCanvas *canvas)
diff --git a/arts/builder/scomponent.h b/arts/builder/scomponent.h
index 3d5970f..e35b370 100644
--- a/arts/builder/scomponent.h
+++ b/arts/builder/scomponent.h
@@ -22,7 +22,7 @@
#ifndef __SCOMPONENT_H__
#define __SCOMPONENT_H__
-#include <qstring.h>
+#include <tqstring.h>
#include <list>
class ModulePort;
@@ -65,9 +65,9 @@ public:
// drawing
virtual bool drawNeedsBackground(int segment) = 0;
- virtual void drawSegment(QPainter *dest, int cellsize, int segment) = 0;
- virtual QPixmap *pixmap() = 0;
- virtual QString name() = 0;
+ virtual void drawSegment(TQPainter *dest, int cellsize, int segment) = 0;
+ virtual TQPixmap *pixmap() = 0;
+ virtual TQString name() = 0;
// space checking & positioning (dimensions in cells)
bool move(int x, int y);
diff --git a/arts/builder/structureport.cpp b/arts/builder/structureport.cpp
index b57e963..35b36b4 100644
--- a/arts/builder/structureport.cpp
+++ b/arts/builder/structureport.cpp
@@ -21,10 +21,10 @@
#include "structureport.h"
#include "drawutils.h"
-#include <qpainter.h>
-#include <qpalette.h>
-#include <qdrawutil.h>
-#include <qbitmap.h>
+#include <tqpainter.h>
+#include <tqpalette.h>
+#include <tqdrawutil.h>
+#include <tqbitmap.h>
#include <assert.h>
#include <stdio.h>
#include <arts/debug.h>
@@ -90,24 +90,24 @@ bool StructurePort::drawNeedsBackground(int segment)
return true;
}
-void StructurePort::drawSegment(QPainter *dest, int cellsize, int segment)
+void StructurePort::drawSegment(TQPainter *dest, int cellsize, int segment)
{
- QString pname = QString::fromLocal8Bit(SPortDesc.name().c_str());
+ TQString pname = TQString::fromLocal8Bit(SPortDesc.name().c_str());
assert(segment==0);
- QPainter &p = *dest;
+ TQPainter &p = *dest;
int direction = (_port->direction == ModulePort::out)?1:0;
// FIXME: make these color defs available at one central place, they
// are currently copied from main.cpp
- QColor mcolor(43,43,168);
- QColor mcolorlight(164,176,242);
- QColorGroup g( Qt::white, Qt::blue, mcolorlight, mcolor.dark(), mcolor,
+ TQColor mcolor(43,43,168);
+ TQColor mcolorlight(164,176,242);
+ TQColorGroup g( Qt::white, Qt::blue, mcolorlight, mcolor.dark(), mcolor,
Qt::black, Qt::black );
- QBrush fill( mcolor );
- QPen textpen(QColor(255,255,180),1);
+ TQBrush fill( mcolor );
+ TQPen textpen(TQColor(255,255,180),1);
int border = cellsize/10;
int boxtop = (cellsize/2)*(1-direction);
@@ -117,14 +117,14 @@ void StructurePort::drawSegment(QPainter *dest, int cellsize, int segment)
// Selection box
if(_selected)
{
- QPen pen(Qt::white,1,Qt::DotLine);
+ TQPen pen(Qt::white,1,Qt::DotLine);
p.setPen(pen);
p.drawRect(0,boxtop,cellsize,cellsize/2);
}
// ... doesn't look centered without the 2*border ?!?
int textwidth;
- QString label=DrawUtils::cropText(&p, pname, cellsize-border*2, textwidth);
+ TQString label=DrawUtils::cropText(&p, pname, cellsize-border*2, textwidth);
p.drawText(border,border+boxtop,cellsize-border-1,(cellsize/2-1)-2*border,
Qt::AlignCenter,label);
@@ -133,15 +133,15 @@ void StructurePort::drawSegment(QPainter *dest, int cellsize, int segment)
int i;
for(i=0;i<3;i++)
{
- QBrush fbrush;
+ TQBrush fbrush;
int delta = 0;
switch(i)
{
case 0: delta = 0;
- fbrush = QBrush(g.light());
+ fbrush = TQBrush(g.light());
break;
case 1: delta = 2;
- fbrush = QBrush(g.dark());
+ fbrush = TQBrush(g.dark());
break;
case 2: delta = 1;
fbrush = fill;
@@ -172,7 +172,7 @@ d | |
int c = cellsize/12;
int d = cellsize/5;
- QPointArray a(9);
+ TQPointArray a(9);
a.setPoint(0,b+l,t);
a.setPoint(1,b+l,t+c);
a.setPoint(2,l,t+c);
@@ -211,9 +211,9 @@ d | |
{
int border = cellsize/7;
- QBrush pbrush(_port->color(false));
+ TQBrush pbrush(_port->color(false));
- _port->clickrect = QRect(border,direction * cellsize/2 + border,
+ _port->clickrect = TQRect(border,direction * cellsize/2 + border,
cellsize/2-2*border, cellsize/2-2*border);
qDrawShadePanel(&p, _port->clickrect, g, _port->down(), 2, &pbrush);
}
@@ -223,7 +223,7 @@ ModulePort *StructurePort::portAt(int segment, int x, int y)
{
assert(segment == 0);
- QPoint clickpoint(x,y);
+ TQPoint clickpoint(x,y);
if(_port->clickrect.contains(clickpoint)) return _port;
return 0;
}
@@ -233,14 +233,14 @@ void StructurePort::dumpPorts(list<ModulePort *>& ports)
ports.push_back(_port);
}
-QPixmap *StructurePort::pixmap()
+TQPixmap *StructurePort::pixmap()
{
return 0;
}
-QString StructurePort::name()
+TQString StructurePort::name()
{
- return QString::fromLocal8Bit(SPortDesc.name().c_str());
+ return TQString::fromLocal8Bit(SPortDesc.name().c_str());
}
void StructurePort::raisePosition()
diff --git a/arts/builder/structureport.h b/arts/builder/structureport.h
index 8729cc2..7c9f61f 100644
--- a/arts/builder/structureport.h
+++ b/arts/builder/structureport.h
@@ -58,9 +58,9 @@ public:
void dumpPorts(std::list<ModulePort *>& ports);
bool drawNeedsBackground(int segment);
- void drawSegment(QPainter *dest, int cellsize, int segment);
- QPixmap *pixmap();
- QString name();
+ void drawSegment(TQPainter *dest, int cellsize, int segment);
+ TQPixmap *pixmap();
+ TQString name();
};
#endif // STRUCTUREPORT_H
diff --git a/arts/gui/kde/artstestgui.cpp b/arts/gui/kde/artstestgui.cpp
index 1ccde8c..6d1b798 100644
--- a/arts/gui/kde/artstestgui.cpp
+++ b/arts/gui/kde/artstestgui.cpp
@@ -23,7 +23,7 @@
#include "artsgui.h"
#include <connect.h>
#include <qiomanager.h>
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <kapplication.h>
#include <objectmanager.h>
diff --git a/arts/gui/kde/dbtest.cpp b/arts/gui/kde/dbtest.cpp
index 164b363..fef8b0b 100644
--- a/arts/gui/kde/dbtest.cpp
+++ b/arts/gui/kde/dbtest.cpp
@@ -10,9 +10,9 @@
#include <dbtest.h>
#include <dbtest.moc>
-dBTestWidget::dBTestWidget( QWidget* p, const char* n ) : QWidget( p,n ), dB2VolCalc( -24,6 ) {
+dBTestWidget::dBTestWidget( TQWidget* p, const char* n ) : TQWidget( p,n ), dB2VolCalc( -24,6 ) {
kdDebug() << k_funcinfo << endl;
- ( void* ) KStdAction::quit( this, SLOT( close() ), new KActionCollection( this ) );
+ ( void* ) KStdAction::quit( this, TQT_SLOT( close() ), new KActionCollection( this ) );
for ( float i=0; i<=1; i+=0.25 )
kdDebug() << i << " : " << amptodb( i ) << "dB" <<endl;
diff --git a/arts/gui/kde/dbtest.h b/arts/gui/kde/dbtest.h
index e7d996b..085ee7a 100644
--- a/arts/gui/kde/dbtest.h
+++ b/arts/gui/kde/dbtest.h
@@ -2,14 +2,14 @@
#ifndef DBTESTWIDGET_H
#define DBTESTWIDGET_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include "dbvolcalc.h"
-class dBTestWidget : public QWidget, public dB2VolCalc {
+class dBTestWidget : public TQWidget, public dB2VolCalc {
Q_OBJECT
public:
- dBTestWidget( QWidget*, const char* =0 );
+ dBTestWidget( TQWidget*, const char* =0 );
~dBTestWidget();
};
diff --git a/arts/gui/kde/kartswidget.cpp b/arts/gui/kde/kartswidget.cpp
index 1a9c6b0..dde6182 100644
--- a/arts/gui/kde/kartswidget.cpp
+++ b/arts/gui/kde/kartswidget.cpp
@@ -24,48 +24,48 @@
#include "kartswidget.h"
#include "kwidgetrepo.h"
#include "debug.h"
-#include "qlayout.h"
+#include "tqlayout.h"
class KArtsWidgetPrivate {
public:
- QHBoxLayout *layout;
+ TQHBoxLayout *layout;
};
-KArtsWidget::KArtsWidget( QWidget* parent, const char* name )
- :QWidget( parent, name ), _content( Arts::Widget::null() )
+KArtsWidget::KArtsWidget( TQWidget* parent, const char* name )
+ :TQWidget( parent, name ), _content( Arts::Widget::null() )
{
d = new KArtsWidgetPrivate;
- d->layout = new QHBoxLayout(this);
+ d->layout = new TQHBoxLayout(this);
}
-KArtsWidget::KArtsWidget( Arts::Widget content, QWidget* parent, const char* name )
- :QWidget( parent, name ), _content( Arts::Widget::null())
+KArtsWidget::KArtsWidget( Arts::Widget content, TQWidget* parent, const char* name )
+ :TQWidget( parent, name ), _content( Arts::Widget::null())
{
d = new KArtsWidgetPrivate;
- d->layout = new QHBoxLayout(this);
+ d->layout = new TQHBoxLayout(this);
setContent(content);
}
-KArtsWidget::KArtsWidget( Arts::Widget content, QWidget* parent, const char* name, WFlags wflags )
- :QWidget( parent, name, wflags ), _content( Arts::Widget::null() )
+KArtsWidget::KArtsWidget( Arts::Widget content, TQWidget* parent, const char* name, WFlags wflags )
+ :TQWidget( parent, name, wflags ), _content( Arts::Widget::null() )
{
d = new KArtsWidgetPrivate;
- d->layout = new QHBoxLayout( this );
+ d->layout = new TQHBoxLayout( this );
setContent( content );
}
-KArtsWidget::KArtsWidget(QWidget* parent, const char* name, WFlags wflags )
- :QWidget(parent, name, wflags ), _content(Arts::Widget::null())
+KArtsWidget::KArtsWidget(TQWidget* parent, const char* name, WFlags wflags )
+ :TQWidget(parent, name, wflags ), _content(Arts::Widget::null())
{
d = new KArtsWidgetPrivate;
- d->layout = new QHBoxLayout(this);
+ d->layout = new TQHBoxLayout(this);
}
KArtsWidget::~KArtsWidget()
{
- QWidget *contentAsWidget
+ TQWidget *contentAsWidget
= KWidgetRepo::the()->lookupQWidget(_content.widgetID());
- contentAsWidget->reparent(0,QPoint(0,0),_content.visible());
+ contentAsWidget->reparent(0,TQPoint(0,0),_content.visible());
delete d;
d = 0;
}
@@ -74,12 +74,12 @@ KArtsWidget::~KArtsWidget()
void KArtsWidget::setContent(Arts::Widget content)
{
arts_return_if_fail(!content.isNull());
- QWidget *contentAsWidget
+ TQWidget *contentAsWidget
= KWidgetRepo::the()->lookupQWidget(content.widgetID());
arts_return_if_fail(contentAsWidget != 0);
_content = content;
- contentAsWidget->reparent(this,QPoint(0,0),content.visible());
+ contentAsWidget->reparent(this,TQPoint(0,0),content.visible());
d->layout->addWidget(contentAsWidget);
}
diff --git a/arts/gui/kde/kartswidget.h b/arts/gui/kde/kartswidget.h
index 353a09b..2cd072b 100644
--- a/arts/gui/kde/kartswidget.h
+++ b/arts/gui/kde/kartswidget.h
@@ -24,7 +24,7 @@
#ifndef ARTS_GUI_KARTSWIDGET_H
#define ARTS_GUI_KARTSWIDGET_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include "artsgui.h"
#include <kdelibs_export.h>
class KArtsWidgetPrivate;
@@ -46,7 +46,7 @@ class KArtsWidgetPrivate;
* The KArtsWidget class keeps a reference to the content widget, so the
* content widget will not be freed until the KArtsWidget gets destroyed.
*/
-class KDE_EXPORT KArtsWidget : public QWidget {
+class KDE_EXPORT KArtsWidget : public TQWidget {
private:
KArtsWidgetPrivate *d;
@@ -57,21 +57,21 @@ public:
/**
* creates a new KArtsWidget
*/
- KArtsWidget( QWidget* parent, const char* name );
+ KArtsWidget( TQWidget* parent, const char* name );
/**
* creates a new KArtsWidget and sets the content to an Arts::Widget
*/
- KArtsWidget( Arts::Widget content, QWidget* parent, const char* name );
+ KArtsWidget( Arts::Widget content, TQWidget* parent, const char* name );
/**
* creates a new KArtsWidget with WidgetFlags and content
*
* BCI: should replace the above in the next major release. ( akrille )
*/
- KArtsWidget( Arts::Widget, QWidget* =0, const char* =0, WFlags =0 );
+ KArtsWidget( Arts::Widget, TQWidget* =0, const char* =0, WFlags =0 );
// same without the content
- KArtsWidget( QWidget* =0, const char* =0, WFlags =0 );
+ KArtsWidget( TQWidget* =0, const char* =0, WFlags =0 );
/**
* destructor
diff --git a/arts/gui/kde/kbutton_impl.cpp b/arts/gui/kde/kbutton_impl.cpp
index 119e72e..34c5791 100644
--- a/arts/gui/kde/kbutton_impl.cpp
+++ b/arts/gui/kde/kbutton_impl.cpp
@@ -28,15 +28,15 @@
using namespace Arts;
using namespace std;
-KButtonMapper::KButtonMapper( KButton_impl *_impl, QPushButton *but )
- : QObject( but, "KButtonMapper" )
+KButtonMapper::KButtonMapper( KButton_impl *_impl, TQPushButton *but )
+ : TQObject( but, "KButtonMapper" )
, impl( _impl )
, button( but )
{
- connect( but, SIGNAL( pressed() ), this, SLOT( pressed() ) );
- connect( but, SIGNAL( released() ), this, SLOT( released() ) );
- connect( but, SIGNAL( toggled( bool ) ), this, SLOT( toggled( bool ) ) );
- connect( but, SIGNAL( clicked() ), this, SLOT( clicked() ) );
+ connect( but, TQT_SIGNAL( pressed() ), this, TQT_SLOT( pressed() ) );
+ connect( but, TQT_SIGNAL( released() ), this, TQT_SLOT( released() ) );
+ connect( but, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( toggled( bool ) ) );
+ connect( but, TQT_SIGNAL( clicked() ), this, TQT_SLOT( clicked() ) );
}
void KButtonMapper::pressed()
@@ -62,11 +62,11 @@ void KButtonMapper::clicked()
impl->emitClicked();
}
-KButton_impl::KButton_impl( QPushButton * widget )
- : KWidget_impl( widget ? widget : new QPushButton( 0 ) )
+KButton_impl::KButton_impl( TQPushButton * widget )
+ : KWidget_impl( widget ? widget : new TQPushButton( 0 ) )
, _clicked( false )
{
- _qpushbutton = static_cast<QPushButton*>( _qwidget );
+ _qpushbutton = static_cast<TQPushButton*>( _qwidget );
( void )new KButtonMapper( this, _qpushbutton );
}
@@ -94,7 +94,7 @@ string KButton_impl::text()
void KButton_impl::text(const string& newText)
{
- _qpushbutton->setText(QString::fromUtf8(newText.c_str()));
+ _qpushbutton->setText(TQString::fromUtf8(newText.c_str()));
}
bool KButton_impl::toggle()
diff --git a/arts/gui/kde/kbutton_impl.h b/arts/gui/kde/kbutton_impl.h
index f254c00..723c502 100644
--- a/arts/gui/kde/kbutton_impl.h
+++ b/arts/gui/kde/kbutton_impl.h
@@ -25,17 +25,17 @@
#ifndef ARTS_GUI_KBUTTON_IMPL_H
#define ARTS_GUI_KBUTTON_IMPL_H
#include "kwidget_impl.h"
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
namespace Arts {
class KButton_impl;
-class KButtonMapper : public QObject {
+class KButtonMapper : public TQObject {
Q_OBJECT
KButton_impl *impl;
- QPushButton * button;
+ TQPushButton * button;
public:
- KButtonMapper(KButton_impl *impl, QPushButton *but);
+ KButtonMapper(KButton_impl *impl, TQPushButton *but);
protected slots:
void pressed();
void released();
@@ -50,10 +50,10 @@ private:
bool _clicked;
protected:
- QPushButton * _qpushbutton;
+ TQPushButton * _qpushbutton;
public:
- KButton_impl( QPushButton * w = 0 );
+ KButton_impl( TQPushButton * w = 0 );
void constructor( Widget parent );
void constructor( const std::string &, Widget );
diff --git a/arts/gui/kde/kcombobox_impl.cpp b/arts/gui/kde/kcombobox_impl.cpp
index b73f57f..eab55d0 100644
--- a/arts/gui/kde/kcombobox_impl.cpp
+++ b/arts/gui/kde/kcombobox_impl.cpp
@@ -31,13 +31,13 @@ using namespace Arts;
using namespace std;
ComboBoxIntMapper::ComboBoxIntMapper(KComboBox_impl *impl, KComboBox *co)
- : QObject( co, "map Qt signal to aRts" )
+ : TQObject( co, "map Qt signal to aRts" )
,impl(impl)
{
- connect(co, SIGNAL(activated(const QString &)), this, SLOT(activated(const QString &)));
+ connect(co, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(activated(const TQString &)));
}
-void ComboBoxIntMapper::activated(const QString & newValue)
+void ComboBoxIntMapper::activated(const TQString & newValue)
{
impl->value(string(newValue.utf8().data()));
}
@@ -56,7 +56,7 @@ string KComboBox_impl::caption()
void KComboBox_impl::caption(const string& newCaption)
{
- m_caption = QString::fromUtf8(newCaption.c_str());
+ m_caption = TQString::fromUtf8(newCaption.c_str());
// FIXME: do something with the caption here
}
@@ -73,7 +73,7 @@ void KComboBox_impl::choices(const vector<string> & newChoices)
_kcombobox->clear();
for(vector<string>::const_iterator it = m_choices.begin(); it != m_choices.end(); ++it)
{
- _kcombobox->insertItem(QString::fromUtf8(it->c_str()));
+ _kcombobox->insertItem(TQString::fromUtf8(it->c_str()));
}
if(visible())
choices_changed(newChoices);
@@ -89,7 +89,7 @@ void KComboBox_impl::value(const string & newValue)
{
if(newValue != m_value.utf8().data())
{
- m_value = QString::fromUtf8(newValue.c_str());
+ m_value = TQString::fromUtf8(newValue.c_str());
for(unsigned int i = 0; i < m_choices.size(); ++i)
{
if(m_choices[i] == newValue)
diff --git a/arts/gui/kde/kcombobox_impl.h b/arts/gui/kde/kcombobox_impl.h
index 52a9510..3041d35 100644
--- a/arts/gui/kde/kcombobox_impl.h
+++ b/arts/gui/kde/kcombobox_impl.h
@@ -26,21 +26,21 @@
#define ARTS_GUI_KCOMBOBOX_IMPL_H
#include "kwidget_impl.h"
#include <kcombobox.h>
-#include <qobject.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
namespace Arts {
class KComboBox_impl;
-class ComboBoxIntMapper :public QObject {
+class ComboBoxIntMapper :public TQObject {
Q_OBJECT
KComboBox_impl *impl;
public:
ComboBoxIntMapper(KComboBox_impl *impl, KComboBox *co);
public slots:
- void activated(const QString &);
+ void activated(const TQString &);
};
class KComboBox_impl : virtual public Arts::ComboBox_skel,
@@ -48,8 +48,8 @@ class KComboBox_impl : virtual public Arts::ComboBox_skel,
{
protected:
KComboBox * _kcombobox;
- QString m_caption;
- QString m_value;
+ TQString m_caption;
+ TQString m_value;
std::vector<std::string> m_choices;
void applyValue();
diff --git a/arts/gui/kde/kfader.cpp b/arts/gui/kde/kfader.cpp
index 2978dd0..e5179f9 100644
--- a/arts/gui/kde/kfader.cpp
+++ b/arts/gui/kde/kfader.cpp
@@ -5,14 +5,14 @@ void KFader::init()
{
}
-KFader::KFader( QWidget * parent, const char * name )
- : QSlider( Qt::Vertical, parent, name )
+KFader::KFader( TQWidget * parent, const char * name )
+ : TQSlider( Qt::Vertical, parent, name )
{
init();
}
-KFader::KFader( int minValue, int maxValue, int pageStep, int value, QWidget * parent, const char * name )
- : QSlider( minValue, maxValue, pageStep, value, Qt::Vertical, parent, name )
+KFader::KFader( int minValue, int maxValue, int pageStep, int value, TQWidget * parent, const char * name )
+ : TQSlider( minValue, maxValue, pageStep, value, Qt::Vertical, parent, name )
{
init();
}
@@ -21,11 +21,11 @@ KFader::~KFader()
{
}
-void KFader::setColor( QColor & )
+void KFader::setColor( TQColor & )
{
}
void KFader::setRange( int minValue, int maxValue )
{
- QRangeControl::setRange( minValue, maxValue );
+ TQRangeControl::setRange( minValue, maxValue );
}
diff --git a/arts/gui/kde/kfader.h b/arts/gui/kde/kfader.h
index 71b3ba0..603ad7c 100644
--- a/arts/gui/kde/kfader.h
+++ b/arts/gui/kde/kfader.h
@@ -23,7 +23,7 @@
#ifndef _KFADER_H
#define _KFADER_H
-#include <qslider.h>
+#include <tqslider.h>
class KFader : public QSlider
{
@@ -31,12 +31,12 @@ class KFader : public QSlider
protected:
void init();
public:
- KFader( QWidget * parent = 0, const char * name = 0 );
- KFader( int minValue, int maxValue, int pageStep, int value, QWidget * parent = 0, const char * name = 0 );
+ KFader( TQWidget * parent = 0, const char * name = 0 );
+ KFader( int minValue, int maxValue, int pageStep, int value, TQWidget * parent = 0, const char * name = 0 );
virtual ~KFader();
- void setColor( QColor & );
+ void setColor( TQColor & );
virtual void setRange( int, int );
};
diff --git a/arts/gui/kde/kfader_impl.cpp b/arts/gui/kde/kfader_impl.cpp
index a0caf7d..27a5019 100644
--- a/arts/gui/kde/kfader_impl.cpp
+++ b/arts/gui/kde/kfader_impl.cpp
@@ -34,7 +34,7 @@ using namespace std;
FaderIntMapper::FaderIntMapper(KFader_impl *impl, KFader *kp) :impl(impl)
{
- connect(kp, SIGNAL(valueChanged(int)), this, SLOT(valueChanged(int)));
+ connect(kp, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(valueChanged(int)));
}
void FaderIntMapper::valueChanged(int pos)
@@ -63,7 +63,7 @@ string KFader_impl::caption()
void KFader_impl::caption(const string& newText)
{
- _caption = QString::fromUtf8(newText.c_str());
+ _caption = TQString::fromUtf8(newText.c_str());
_kfader->setName(_caption.utf8().data());
}
@@ -77,7 +77,7 @@ void KFader_impl::color(const string& newColor)
_color = newColor;
if(strlen(_color.c_str()))
{
- QColor qc(_color.c_str());
+ TQColor qc(_color.c_str());
_kfader->setColor(qc);
}
}
diff --git a/arts/gui/kde/kfader_impl.h b/arts/gui/kde/kfader_impl.h
index 2368d55..0d1b81e 100644
--- a/arts/gui/kde/kfader_impl.h
+++ b/arts/gui/kde/kfader_impl.h
@@ -27,15 +27,15 @@
#include "kwidget_impl.h"
#include "kfader.h"
-#include <qobject.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqstring.h>
namespace Arts {
class KFader_impl;
-class FaderIntMapper :public QObject {
+class FaderIntMapper :public TQObject {
Q_OBJECT
KFader_impl *impl;
public:
@@ -49,7 +49,7 @@ class KFader_impl : virtual public Arts::Fader_skel,
{
protected:
KFader * _kfader;
- QString _caption;
+ TQString _caption;
std::string _color;
float _min, _max, _value;
float _factor;
diff --git a/arts/gui/kde/kframe_impl.cpp b/arts/gui/kde/kframe_impl.cpp
index 472484e..d95da54 100644
--- a/arts/gui/kde/kframe_impl.cpp
+++ b/arts/gui/kde/kframe_impl.cpp
@@ -19,17 +19,17 @@
// $Id$
#include "kframe_impl.h"
-#include <qframe.h>
+#include <tqframe.h>
#include <debug.h>
#include <stdio.h>
using namespace Arts;
using namespace std;
-KFrame_impl::KFrame_impl( QFrame * widget )
- : KWidget_impl( widget ? widget : new QFrame )
+KFrame_impl::KFrame_impl( TQFrame * widget )
+ : KWidget_impl( widget ? widget : new TQFrame )
{
- _qframe = static_cast<QFrame*>( _qwidget );
+ _qframe = static_cast<TQFrame*>( _qwidget );
assert( _qframe );
}
@@ -80,7 +80,7 @@ Shape KFrame_impl::frameshape()
void KFrame_impl::frameshape( Shape fs )
{
- _qframe->setFrameShape( ( QFrame::Shape )fs );
+ _qframe->setFrameShape( ( TQFrame::Shape )fs );
}
Shadow KFrame_impl::frameshadow()
@@ -90,7 +90,7 @@ Shadow KFrame_impl::frameshadow()
void KFrame_impl::frameshadow( Shadow fs )
{
- _qframe->setFrameShadow( ( QFrame::Shadow )fs );
+ _qframe->setFrameShadow( ( TQFrame::Shadow )fs );
}
REGISTER_IMPLEMENTATION(KFrame_impl);
diff --git a/arts/gui/kde/kframe_impl.h b/arts/gui/kde/kframe_impl.h
index f465331..68585b5 100644
--- a/arts/gui/kde/kframe_impl.h
+++ b/arts/gui/kde/kframe_impl.h
@@ -30,10 +30,10 @@ class KDE_EXPORT KFrame_impl : virtual public Arts::Frame_skel,
public Arts::KWidget_impl
{
protected:
- QFrame * _qframe;
+ TQFrame * _qframe;
public:
- KFrame_impl( QFrame * widget = 0 );
+ KFrame_impl( TQFrame * widget = 0 );
inline void constructor( Widget p ) { parent( p ); }
long margin();
diff --git a/arts/gui/kde/kgraph.cpp b/arts/gui/kde/kgraph.cpp
index 80541b9..21d3d8c 100644
--- a/arts/gui/kde/kgraph.cpp
+++ b/arts/gui/kde/kgraph.cpp
@@ -23,7 +23,7 @@
#include "kgraph.h"
#include "kgraph.moc"
#include "kgraphline_impl.h"
-#include "qpainter.h"
+#include "tqpainter.h"
#include <cstdlib>
#include <math.h>
@@ -31,8 +31,8 @@
using namespace Arts;
using namespace std;
-KGraph::KGraph( QWidget * parent, const char * name )
- : QWidget( parent, name )
+KGraph::KGraph( TQWidget * parent, const char * name )
+ : TQWidget( parent, name )
{
setBackgroundColor(white);
@@ -65,21 +65,21 @@ void KGraph::removeLine(Arts::KGraphLine_impl *line)
lines.remove(line);
}
-inline QPoint KGraph::g2qPoint(const GraphPoint &gp)
+inline TQPoint KGraph::g2qPoint(const GraphPoint &gp)
{
- return QPoint(int(((gp.x - minx)/(maxx-minx)) * (width()-1)),
+ return TQPoint(int(((gp.x - minx)/(maxx-minx)) * (width()-1)),
int((1.0 - (gp.y - miny)/(maxy-miny)) * (height()-1)));
}
-inline GraphPoint KGraph::q2gPoint(const QPoint &qp)
+inline GraphPoint KGraph::q2gPoint(const TQPoint &qp)
{
return GraphPoint((float(qp.x())/float(width()-1)) * (maxx-minx) + minx,
(1.0 - (float(qp.y())/float(height()-1))) * (maxy-miny) + miny);
}
-void KGraph::paintEvent( QPaintEvent *e )
+void KGraph::paintEvent( TQPaintEvent *e )
{
- QPainter painter(this);
+ TQPainter painter(this);
painter.setClipRect(e->rect());
std::list<KGraphLine_impl *>::iterator li;
@@ -88,14 +88,14 @@ void KGraph::paintEvent( QPaintEvent *e )
KGraphLine_impl *gline = *li;
vector<GraphPoint>::iterator pi;
- QPoint lastp;
+ TQPoint lastp;
bool first = true;
painter.setPen(gline->_color.c_str());
for(pi = gline->_points.begin(); pi != gline->_points.end(); pi++)
{
- QPoint p = g2qPoint(*pi);
+ TQPoint p = g2qPoint(*pi);
if(!first)
painter.drawLine(lastp,p);
@@ -109,7 +109,7 @@ void KGraph::paintEvent( QPaintEvent *e )
}
}
-void KGraph::mousePressEvent(QMouseEvent *e)
+void KGraph::mousePressEvent(TQMouseEvent *e)
{
if(e->button() == LeftButton || e->button() == RightButton)
{
@@ -122,7 +122,7 @@ void KGraph::mousePressEvent(QMouseEvent *e)
int index = 0;
for(pi = gline->_points.begin(); pi != gline->_points.end(); pi++, index++)
{
- QPoint p = g2qPoint(*pi);
+ TQPoint p = g2qPoint(*pi);
int dx = e->x() - p.x();
int dy = e->y() - p.y();
@@ -167,14 +167,14 @@ void KGraph::mousePressEvent(QMouseEvent *e)
{
KGraphLine_impl *gline = *li;
- QPoint lastp;
+ TQPoint lastp;
bool first = true;
vector<GraphPoint>::iterator pi;
int index = 0;
for(pi = gline->_points.begin(); pi != gline->_points.end(); pi++, index++)
{
- QPoint p = g2qPoint(*pi);
+ TQPoint p = g2qPoint(*pi);
if(!first && (e->x() > lastp.x()+2) && (e->x() < p.x()-2))
{
@@ -183,7 +183,7 @@ void KGraph::mousePressEvent(QMouseEvent *e)
if(abs(y-e->y()) < 5)
{
- GraphPoint gp = q2gPoint(QPoint(e->x(),y));
+ GraphPoint gp = q2gPoint(TQPoint(e->x(),y));
vector<GraphPoint> newPoints;
for(int i=0;i<( int )gline->_points.size();i++)
@@ -208,9 +208,9 @@ void KGraph::mousePressEvent(QMouseEvent *e)
}
}
-void KGraph::mouseMoveEvent(QMouseEvent *e)
+void KGraph::mouseMoveEvent(TQMouseEvent *e)
{
- QPoint pos = e->pos();
+ TQPoint pos = e->pos();
if(pos.x() < 0) pos.setX(0);
if(pos.y() < 0) pos.setY(0);
@@ -257,7 +257,7 @@ void KGraph::mouseMoveEvent(QMouseEvent *e)
}
}
-void KGraph::mouseReleaseEvent(QMouseEvent *)
+void KGraph::mouseReleaseEvent(TQMouseEvent *)
{
selectedIndex = -1;
selectedLine = 0;
diff --git a/arts/gui/kde/kgraph.h b/arts/gui/kde/kgraph.h
index d3e622a..83c1aa7 100644
--- a/arts/gui/kde/kgraph.h
+++ b/arts/gui/kde/kgraph.h
@@ -23,8 +23,8 @@
#ifndef _KGRAPH_H
#define _KGRAPH_H
-#include <qwidget.h>
-#include <qpoint.h>
+#include <tqwidget.h>
+#include <tqpoint.h>
#include "artsgui.h"
#include <list>
@@ -43,21 +43,21 @@ protected:
GraphPoint selectedPoint;
int selectedIndex; // -1 if nothing is selected
- inline GraphPoint q2gPoint(const QPoint &qp);
- inline QPoint g2qPoint(const GraphPoint &gp);
+ inline GraphPoint q2gPoint(const TQPoint &qp);
+ inline TQPoint g2qPoint(const GraphPoint &gp);
public:
- KGraph( QWidget * parent = 0, const char * name = 0 );
+ KGraph( TQWidget * parent = 0, const char * name = 0 );
virtual ~KGraph();
void addLine(Arts::KGraphLine_impl *line);
void redrawLine(Arts::KGraphLine_impl *line);
void removeLine(Arts::KGraphLine_impl *line);
- void mousePressEvent(QMouseEvent *me);
- void mouseMoveEvent(QMouseEvent *me);
- void mouseReleaseEvent(QMouseEvent *me);
+ void mousePressEvent(TQMouseEvent *me);
+ void mouseMoveEvent(TQMouseEvent *me);
+ void mouseReleaseEvent(TQMouseEvent *me);
- void paintEvent(QPaintEvent *e);
+ void paintEvent(TQPaintEvent *e);
};
}
diff --git a/arts/gui/kde/kgraph_impl.cpp b/arts/gui/kde/kgraph_impl.cpp
index 354fdad..85ad72a 100644
--- a/arts/gui/kde/kgraph_impl.cpp
+++ b/arts/gui/kde/kgraph_impl.cpp
@@ -43,7 +43,7 @@ string KGraph_impl::caption()
void KGraph_impl::caption(const string& newCaption)
{
- _caption = QString::fromUtf8(newCaption.c_str());
+ _caption = TQString::fromUtf8(newCaption.c_str());
// FIXME: do something with the caption here
}
diff --git a/arts/gui/kde/kgraph_impl.h b/arts/gui/kde/kgraph_impl.h
index e100b09..408ad96 100644
--- a/arts/gui/kde/kgraph_impl.h
+++ b/arts/gui/kde/kgraph_impl.h
@@ -25,8 +25,8 @@
#include "kwidget_impl.h"
#include "kgraph.h"
-#include <qobject.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqstring.h>
namespace Arts {
@@ -37,7 +37,7 @@ class KGraph_impl : virtual public Arts::Graph_skel,
public Arts::KWidget_impl
{
protected:
- QString _caption;
+ TQString _caption;
float _minx, _miny, _maxx, _maxy;
KGraph * _kgraph;
diff --git a/arts/gui/kde/kgraphline_impl.cpp b/arts/gui/kde/kgraphline_impl.cpp
index affb5fc..ccb6ed1 100644
--- a/arts/gui/kde/kgraphline_impl.cpp
+++ b/arts/gui/kde/kgraphline_impl.cpp
@@ -112,7 +112,7 @@ void KGraphLine_impl::points(const vector<GraphPoint>& newPoints)
KGraph *KGraphLine_impl::getKGraph()
{
- QWidget *widget = KWidgetRepo::the()->lookupQWidget(_graphID);
+ TQWidget *widget = KWidgetRepo::the()->lookupQWidget(_graphID);
if(!widget)
return 0;
diff --git a/arts/gui/kde/khbox_impl.cpp b/arts/gui/kde/khbox_impl.cpp
index 29438a0..431ce28 100644
--- a/arts/gui/kde/khbox_impl.cpp
+++ b/arts/gui/kde/khbox_impl.cpp
@@ -22,15 +22,15 @@
*/
#include "khbox_impl.h"
-#include <qhbox.h>
+#include <tqhbox.h>
using namespace Arts;
-KHBox_impl::KHBox_impl( QHBox * widget )
- : KFrame_impl( widget ? widget : new QHBox )
+KHBox_impl::KHBox_impl( TQHBox * widget )
+ : KFrame_impl( widget ? widget : new TQHBox )
, _spacing( 5 )
{
- _qhbox = static_cast<QHBox*>( _qwidget );
+ _qhbox = static_cast<TQHBox*>( _qwidget );
_qhbox->setSpacing( _spacing );
_qhbox->setMargin( 5 );
}
diff --git a/arts/gui/kde/khbox_impl.h b/arts/gui/kde/khbox_impl.h
index b82bf80..7b020b3 100644
--- a/arts/gui/kde/khbox_impl.h
+++ b/arts/gui/kde/khbox_impl.h
@@ -34,10 +34,10 @@ private:
long _spacing;
protected:
- QHBox * _qhbox;
+ TQHBox * _qhbox;
public:
- KHBox_impl( QHBox * w = 0 );
+ KHBox_impl( TQHBox * w = 0 );
long spacing();
void spacing( long );
diff --git a/arts/gui/kde/klabel_impl.cpp b/arts/gui/kde/klabel_impl.cpp
index 774a7de..dd0a955 100644
--- a/arts/gui/kde/klabel_impl.cpp
+++ b/arts/gui/kde/klabel_impl.cpp
@@ -22,12 +22,12 @@
#include "klabel_impl.moc"
#include <kdebug.h>
-#include <qfont.h>
+#include <tqfont.h>
using namespace Arts;
using namespace std;
-KLabel_impl::KLabel_impl( QFrame *widget ) : KFrame_impl( widget ? widget : new RotateLabel( 0 ) ) {
+KLabel_impl::KLabel_impl( TQFrame *widget ) : KFrame_impl( widget ? widget : new RotateLabel( 0 ) ) {
_label = static_cast<RotateLabel*>( _qwidget );
}
@@ -36,7 +36,7 @@ string KLabel_impl::text() {
}
void KLabel_impl::text( const string& newtext ) {
- _label->title( QString::fromUtf8( newtext.c_str() ) );
+ _label->title( TQString::fromUtf8( newtext.c_str() ) );
}
long KLabel_impl::align() { return _label->align(); }
@@ -50,40 +50,40 @@ void KLabel_impl::bottom( Arts::TextBottom n ) { _label->bottom( n ); }
REGISTER_IMPLEMENTATION( KLabel_impl );
-RotateLabel::RotateLabel( QWidget* p, const char* n ) : QFrame( p,n ) {
+RotateLabel::RotateLabel( TQWidget* p, const char* n ) : TQFrame( p,n ) {
_bottom = Arts::South;
_align = Arts::AlignCenter;
}
-void RotateLabel::paintEvent( QPaintEvent* ) {
- QPainter p( this );
+void RotateLabel::paintEvent( TQPaintEvent* ) {
+ TQPainter p( this );
if ( _bottom == Arts::East ) {
p.rotate( 270 );
- p.drawText( QRect( 0,0, -height(), width() ), _align, _title );
+ p.drawText( TQRect( 0,0, -height(), width() ), _align, _title );
} else if ( _bottom == Arts::West ) {
p.rotate( 90 );
- p.drawText( QRect( 0,0, height(), -width() ), _align, _title );
+ p.drawText( TQRect( 0,0, height(), -width() ), _align, _title );
} else if ( _bottom == Arts::North ) {
p.rotate( 180 );
- p.drawText( QRect( 0,0, -width(), -height() ), _align, _title );
+ p.drawText( TQRect( 0,0, -width(), -height() ), _align, _title );
} else {
- p.drawText( QRect( 0,0, width(), height() ), _align, _title );
+ p.drawText( TQRect( 0,0, width(), height() ), _align, _title );
}
}
-void RotateLabel::fontfamily( QString n ) {
- QFont font = this->font();
+void RotateLabel::fontfamily( TQString n ) {
+ TQFont font = this->font();
font.setFamily( n );
this->setFont( font );
}
void RotateLabel::fontsize( int n ) {
- QFont font = this->font();
+ TQFont font = this->font();
font.setPixelSize( n );
this->setFont( font );
}
-void RotateLabel::title( QString n ) {
+void RotateLabel::title( TQString n ) {
_title = n;
- QSize size = this->fontMetrics().size( SingleLine, _title );
+ TQSize size = this->fontMetrics().size( SingleLine, _title );
if ( _bottom == Arts::East || _bottom == Arts::West )
this->setMinimumSize( size.height(), size.width() );
else
diff --git a/arts/gui/kde/klabel_impl.h b/arts/gui/kde/klabel_impl.h
index 332b000..7822e96 100644
--- a/arts/gui/kde/klabel_impl.h
+++ b/arts/gui/kde/klabel_impl.h
@@ -23,10 +23,10 @@
#define ARTS_KLABEL_IMPL
#include <kframe_impl.h>
-#include <qframe.h>
-#include <qpainter.h>
-#include <qfontmetrics.h>
-#include <qfont.h>
+#include <tqframe.h>
+#include <tqpainter.h>
+#include <tqfontmetrics.h>
+#include <tqfont.h>
#include <artsgui.h>
#include <kdelibs_export.h>
@@ -41,7 +41,7 @@ class KDE_EXPORT KLabel_impl : virtual public Arts::Label_skel,
protected:
RotateLabel* _label;
public:
- KLabel_impl( QFrame* w=0 );
+ KLabel_impl( TQFrame* w=0 );
void constructor( Widget p ) { parent( p ); }
std::string text();
@@ -63,16 +63,16 @@ public:
} // namespace
-class RotateLabel : public QFrame {
+class RotateLabel : public TQFrame {
Q_OBJECT
public:
- RotateLabel( QWidget*, const char* =0 );
- void paintEvent( QPaintEvent* );
+ RotateLabel( TQWidget*, const char* =0 );
+ void paintEvent( TQPaintEvent* );
- void fontfamily( QString );
+ void fontfamily( TQString );
void fontsize( int );
- void title( QString );
- QString title() { return _title; }
+ void title( TQString );
+ TQString title() { return _title; }
long align() { return _align; }
void align( long );
@@ -82,7 +82,7 @@ public:
private:
long _align;
Arts::TextBottom _bottom;
- QString _title;
+ TQString _title;
};
#endif
diff --git a/arts/gui/kde/klayoutbox_impl.cpp b/arts/gui/kde/klayoutbox_impl.cpp
index 7f9efa9..847e803 100644
--- a/arts/gui/kde/klayoutbox_impl.cpp
+++ b/arts/gui/kde/klayoutbox_impl.cpp
@@ -20,21 +20,21 @@
#include "klayoutbox_impl.h"
-#include <qframe.h>
-#include <qlayout.h>
+#include <tqframe.h>
+#include <tqlayout.h>
#include <kdebug.h>
-#include <qpainter.h>
-#include <qstyle.h>
-#include <qpen.h>
+#include <tqpainter.h>
+#include <tqstyle.h>
+#include <tqpen.h>
#include "kwidgetrepo.h"
using namespace Arts;
using namespace std;
-KLayoutBox_impl::KLayoutBox_impl( QFrame *widget ) : KFrame_impl( widget ? widget :new QFrame( 0 ) )
+KLayoutBox_impl::KLayoutBox_impl( TQFrame *widget ) : KFrame_impl( widget ? widget :new TQFrame( 0 ) )
{
- _qframe = static_cast<QFrame*>( _qwidget );
- _layout = new QBoxLayout( _qframe, QBoxLayout::LeftToRight );
+ _qframe = static_cast<TQFrame*>( _qwidget );
+ _layout = new TQBoxLayout( _qframe, TQBoxLayout::LeftToRight );
}
KLayoutBox_impl::~KLayoutBox_impl() {
}
@@ -42,14 +42,14 @@ KLayoutBox_impl::~KLayoutBox_impl() {
void KLayoutBox_impl::addWidget( Arts::Widget widget, long stretch, long align ) {
widget.parent( self() );
this->_addChild( widget, "layoutbox_item" );
- QWidget * tmp = KWidgetRepo::the()->lookupQWidget( widget.widgetID() );
+ TQWidget * tmp = KWidgetRepo::the()->lookupQWidget( widget.widgetID() );
_layout->addWidget( tmp, stretch, align );
}
void KLayoutBox_impl::insertWidget( long index, Arts::Widget widget, long stretch, long align ) {
widget.parent( self() );
this->_addChild( widget, "layoutbox_item" );
- QWidget * tmp = KWidgetRepo::the()->lookupQWidget( widget.widgetID() );
+ TQWidget * tmp = KWidgetRepo::the()->lookupQWidget( widget.widgetID() );
_layout->insertWidget( index, tmp, stretch, align );
}
@@ -70,31 +70,31 @@ long KLayoutBox_impl::layoutmargin() { return _layout->margin(); }
void KLayoutBox_impl::layoutmargin( long n ) { _layout->setMargin( n ); this->margin( n ); }
Direction KLayoutBox_impl::direction() { return Arts::Direction( _layout->direction() ); }
-void KLayoutBox_impl::direction( Direction d ) { _layout->setDirection( QBoxLayout::Direction( d ) ); }
+void KLayoutBox_impl::direction( Direction d ) { _layout->setDirection( TQBoxLayout::Direction( d ) ); }
REGISTER_IMPLEMENTATION( KLayoutBox_impl );
-KLayoutBox_Separator::KLayoutBox_Separator( QWidget* p, const char* n ) : QWidget( p,n ) {
+KLayoutBox_Separator::KLayoutBox_Separator( TQWidget* p, const char* n ) : TQWidget( p,n ) {
//kdDebug() << k_funcinfo << endl;
}
-void KLayoutBox_Separator::resizeEvent( QResizeEvent* ) { kdDebug() << k_funcinfo << size() << endl; }
+void KLayoutBox_Separator::resizeEvent( TQResizeEvent* ) { kdDebug() << k_funcinfo << size() << endl; }
-void KLayoutBox_Separator::paintEvent( QPaintEvent* ) {
+void KLayoutBox_Separator::paintEvent( TQPaintEvent* ) {
//kdDebug() << k_funcinfo << size() << endl;
- QPainter p( this );
- QStyle::SFlags flags = QStyle::Style_Default;
- if ( width() < height() ) flags |= QStyle::Style_Horizontal;
- style().drawPrimitive( QStyle::PE_Splitter, &p, rect(), colorGroup(), flags );
+ TQPainter p( this );
+ TQStyle::SFlags flags = TQStyle::Style_Default;
+ if ( width() < height() ) flags |= TQStyle::Style_Horizontal;
+ style().drawPrimitive( TQStyle::PE_Splitter, &p, rect(), colorGroup(), flags );
}
-QSize KLayoutBox_Separator::minimumSizeHint() const {
- int wh = style().pixelMetric( QStyle::PM_SplitterWidth, this );
- return QSize( wh, wh );
+TQSize KLayoutBox_Separator::minimumSizeHint() const {
+ int wh = style().pixelMetric( TQStyle::PM_SplitterWidth, this );
+ return TQSize( wh, wh );
}
-KLayoutBox_Line::KLayoutBox_Line( int width, int space, QWidget* p, const char* n )
- : QWidget( p,n )
+KLayoutBox_Line::KLayoutBox_Line( int width, int space, TQWidget* p, const char* n )
+ : TQWidget( p,n )
, _width( width )
, _space( space )
{
@@ -102,18 +102,18 @@ KLayoutBox_Line::KLayoutBox_Line( int width, int space, QWidget* p, const char*
}
-void KLayoutBox_Line::paintEvent( QPaintEvent* ) {
+void KLayoutBox_Line::paintEvent( TQPaintEvent* ) {
//kdDebug() << k_funcinfo << size() << endl;
- QPainter p( this );
- p.setPen( QPen( colorGroup().foreground(), _width ) );
+ TQPainter p( this );
+ p.setPen( TQPen( colorGroup().foreground(), _width ) );
if ( width() > height() ) p.drawLine( 0, height()/2, width(), height()/2 );
else p.drawLine( width()/2, 0, width()/2, height() );
}
-QSize KLayoutBox_Line::minimumSizeHint() const {
+TQSize KLayoutBox_Line::minimumSizeHint() const {
//kdDebug() << k_funcinfo << size() << endl;
int wh = _width + 2* _space;
- return QSize( wh, wh );
+ return TQSize( wh, wh );
}
#include <klayoutbox_impl.moc>
diff --git a/arts/gui/kde/klayoutbox_impl.h b/arts/gui/kde/klayoutbox_impl.h
index ee8f18a..cdebba7 100644
--- a/arts/gui/kde/klayoutbox_impl.h
+++ b/arts/gui/kde/klayoutbox_impl.h
@@ -36,12 +36,12 @@ class KDE_EXPORT KLayoutBox_impl : virtual public Arts::LayoutBox_skel,
public Arts::KFrame_impl
{
protected:
- QFrame* _qframe;
- QBoxLayout* _layout;
+ TQFrame* _qframe;
+ TQBoxLayout* _layout;
LayoutBox self() { return LayoutBox::_from_base( _copy() ); }
public:
- KLayoutBox_impl( QFrame* w=0 );
+ KLayoutBox_impl( TQFrame* w=0 );
~KLayoutBox_impl();
Direction direction();
@@ -78,23 +78,23 @@ public:
} // namespace
-class KDE_EXPORT KLayoutBox_Separator : public QWidget {
+class KDE_EXPORT KLayoutBox_Separator : public TQWidget {
Q_OBJECT
public:
- KLayoutBox_Separator( QWidget*, const char* =0 );
- void resizeEvent( QResizeEvent* );
- void paintEvent( QPaintEvent* );
- QSize minimumSizeHint() const;
+ KLayoutBox_Separator( TQWidget*, const char* =0 );
+ void resizeEvent( TQResizeEvent* );
+ void paintEvent( TQPaintEvent* );
+ TQSize minimumSizeHint() const;
};
-class KLayoutBox_Line : public QWidget {
+class KLayoutBox_Line : public TQWidget {
Q_OBJECT
private:
int _width, _space;
public:
- KLayoutBox_Line( int, int, QWidget*, const char* =0 );
- void paintEvent( QPaintEvent* );
- QSize minimumSizeHint() const;
+ KLayoutBox_Line( int, int, TQWidget*, const char* =0 );
+ void paintEvent( TQPaintEvent* );
+ TQSize minimumSizeHint() const;
};
#endif
diff --git a/arts/gui/kde/klevelmeter_firebars.cpp b/arts/gui/kde/klevelmeter_firebars.cpp
index 83d93d3..9a78804 100644
--- a/arts/gui/kde/klevelmeter_firebars.cpp
+++ b/arts/gui/kde/klevelmeter_firebars.cpp
@@ -21,16 +21,16 @@
#include "klevelmeter_firebars.h"
#include <kdebug.h>
-#include <qpainter.h>
-#include <qpixmap.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
-KLevelMeter_FireBars_private::KLevelMeter_FireBars_private( KLevelMeter_FireBars* p, const char* n ) : QWidget( p,n ) {
+KLevelMeter_FireBars_private::KLevelMeter_FireBars_private( KLevelMeter_FireBars* p, const char* n ) : TQWidget( p,n ) {
_parent = p;
- _pixmap = new QPixmap( 0,0 );
-// setPaletteBackgroundColor( QColor( 0,0,255 ) );
+ _pixmap = new TQPixmap( 0,0 );
+// setPaletteBackgroundColor( TQColor( 0,0,255 ) );
}
-void KLevelMeter_FireBars_private::paintEvent( QPaintEvent* ) {
- QPainter p;
+void KLevelMeter_FireBars_private::paintEvent( TQPaintEvent* ) {
+ TQPainter p;
if ( _pixmap->size() != this->size() ) {
_pixmap->resize( this->size() );
p.begin( _pixmap );
@@ -55,15 +55,15 @@ kdDebug() << k_funcinfo << dir << endl;
}
p.begin( this );
p.translate( 0,0 );
- p.drawPixmap( QPoint( 0,0 ), *_pixmap );
+ p.drawPixmap( TQPoint( 0,0 ), *_pixmap );
p.end();
}
-KLevelMeter_FireBars::KLevelMeter_FireBars( Arts::KLevelMeter_impl* impl, QWidget* parent, long substyle, long count, Arts::Direction dir, float _dbmin, float _dbmax ) : KLevelMeter_Template( impl, parent, substyle, count, dir, _dbmin, _dbmax ) {
-//kdDebug()<<"KLevelMeter_FireBars::KLevelMeter_FireBars( Arts::KLevelMeter_impl* "<<impl<<", QWidget* "<<parent<<", long "<<substyle<<", long "<<count<<", float "<<_dbmin<<", float "<<_dbmax<<" )"<<endl;
+KLevelMeter_FireBars::KLevelMeter_FireBars( Arts::KLevelMeter_impl* impl, TQWidget* parent, long substyle, long count, Arts::Direction dir, float _dbmin, float _dbmax ) : KLevelMeter_Template( impl, parent, substyle, count, dir, _dbmin, _dbmax ) {
+//kdDebug()<<"KLevelMeter_FireBars::KLevelMeter_FireBars( Arts::KLevelMeter_impl* "<<impl<<", TQWidget* "<<parent<<", long "<<substyle<<", long "<<count<<", float "<<_dbmin<<", float "<<_dbmax<<" )"<<endl;
this->setMinimumSize( 5, 5 );
_bar = new KLevelMeter_FireBars_private( this, 0 );
- _peakwidget = new QWidget( this );
+ _peakwidget = new TQWidget( this );
_peakwidget->resize( size() );
_peakwidget->setPaletteBackgroundColor( color( 1 ) );
_peakwidget->hide();
@@ -94,10 +94,10 @@ void KLevelMeter_FireBars::invalue( float n, float p ) {
repaint();
}
-void KLevelMeter_FireBars::paintEvent( QPaintEvent* ) {
- QPainter p( this );
+void KLevelMeter_FireBars::paintEvent( TQPaintEvent* ) {
+ TQPainter p( this );
//p.setPen( NoPen );
- p.setPen( QColor( 0,0,255 ) );
+ p.setPen( TQColor( 0,0,255 ) );
// PeakBar
if ( _peak > 1.0/1000 ) {
if ( _dir == Arts::BottomToTop || _dir == Arts::TopToBottom ) {
@@ -117,8 +117,8 @@ void KLevelMeter_FireBars::paintEvent( QPaintEvent* ) {
/**
Planned feature: a little Tooltip showing the actual value of the volume in deziBel and perhaps as linear scaleFactor
*/
-void KLevelMeter_FireBars::mouseMoveEvent( QMouseEvent* /*qme*/ ) {
-//kdDebug()<<"KLevelMeter_FireBars::mouseMoveEvent(QMouseEvent* "<<qme<<" )"<<endl;
+void KLevelMeter_FireBars::mouseMoveEvent( TQMouseEvent* /*qme*/ ) {
+//kdDebug()<<"KLevelMeter_FireBars::mouseMoveEvent(TQMouseEvent* "<<qme<<" )"<<endl;
}
#include <klevelmeter_firebars.moc>
diff --git a/arts/gui/kde/klevelmeter_firebars.h b/arts/gui/kde/klevelmeter_firebars.h
index 5dcc628..5d7ff2d 100644
--- a/arts/gui/kde/klevelmeter_firebars.h
+++ b/arts/gui/kde/klevelmeter_firebars.h
@@ -26,32 +26,32 @@
class QPixmap;
class KLevelMeter_FireBars;
-class KLevelMeter_FireBars_private : public QWidget {
+class KLevelMeter_FireBars_private : public TQWidget {
Q_OBJECT
public:
KLevelMeter_FireBars_private( KLevelMeter_FireBars*, const char* );
- void paintEvent( QPaintEvent* );
+ void paintEvent( TQPaintEvent* );
Arts::Direction dir;
private:
KLevelMeter_FireBars* _parent;
- QPixmap *_pixmap;
+ TQPixmap *_pixmap;
};
class KLevelMeter_FireBars : public KLevelMeter_Template {
Q_OBJECT
public:
- KLevelMeter_FireBars( Arts::KLevelMeter_impl*, QWidget* =0, long substyle=0, long count=0, Arts::Direction =Arts::BottomToTop, float _dbmin=-24, float _dbmax=6 );
+ KLevelMeter_FireBars( Arts::KLevelMeter_impl*, TQWidget* =0, long substyle=0, long count=0, Arts::Direction =Arts::BottomToTop, float _dbmin=-24, float _dbmax=6 );
void invalue( float, float =0 );
- void paintEvent( QPaintEvent* );
+ void paintEvent( TQPaintEvent* );
- void mouseMoveEvent( QMouseEvent* );
+ void mouseMoveEvent( TQMouseEvent* );
private:
float _value, _peak;
KLevelMeter_FireBars_private *_bar;
- QWidget* _peakwidget;
+ TQWidget* _peakwidget;
};
#endif
diff --git a/arts/gui/kde/klevelmeter_impl.cpp b/arts/gui/kde/klevelmeter_impl.cpp
index 1e090e6..418108a 100644
--- a/arts/gui/kde/klevelmeter_impl.cpp
+++ b/arts/gui/kde/klevelmeter_impl.cpp
@@ -23,9 +23,9 @@
#include <math.h>
-#include <qframe.h>
+#include <tqframe.h>
#include <kdebug.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kartswidget.h>
#include "klevelmeter_private.h"
@@ -41,8 +41,8 @@
using namespace Arts;
using namespace std;
-KLevelMeter_Private::KLevelMeter_Private( KLevelMeter_impl* impl, QFrame* frame, LevelMeterStyle defstyle, QObject* parent, const char* name )
- : QObject( parent, name )
+KLevelMeter_Private::KLevelMeter_Private( KLevelMeter_impl* impl, TQFrame* frame, LevelMeterStyle defstyle, TQObject* parent, const char* name )
+ : TQObject( parent, name )
, _impl( impl )
, _frame( frame )
, _levelmeter( 0 )
@@ -53,7 +53,7 @@ KLevelMeter_Private::KLevelMeter_Private( KLevelMeter_impl* impl, QFrame* frame,
, _peak( 20 ), _peakvalue( 0.0 )
, _dbmin( -36 ), _dbmax( 0 )
{
- _layout = new QBoxLayout( _frame, QBoxLayout::LeftToRight );
+ _layout = new TQBoxLayout( _frame, TQBoxLayout::LeftToRight );
}
void KLevelMeter_Private::createWidget() {
@@ -78,8 +78,8 @@ void KLevelMeter_Private::createWidget() {
_levelmeter->setMinimumSize( 10,10 );
}
-KLevelMeter_impl::KLevelMeter_impl( QFrame* w ) : Arts::KFrame_impl( w ? w : new QFrame( 0 ) ) {
-//kdDebug()<<"KLevelMeter_impl::KLevelMeter_impl( QFrame* "<<w<<" )"<<endl;
+KLevelMeter_impl::KLevelMeter_impl( TQFrame* w ) : Arts::KFrame_impl( w ? w : new TQFrame( 0 ) ) {
+//kdDebug()<<"KLevelMeter_impl::KLevelMeter_impl( TQFrame* "<<w<<" )"<<endl;
p = new KLevelMeter_Private( this, _qframe, lmLineBars );
p->createWidget();
}
diff --git a/arts/gui/kde/klevelmeter_impl.h b/arts/gui/kde/klevelmeter_impl.h
index 2e26b99..b2f58ce 100644
--- a/arts/gui/kde/klevelmeter_impl.h
+++ b/arts/gui/kde/klevelmeter_impl.h
@@ -37,7 +37,7 @@ class KLevelMeter_impl : virtual public Arts::LevelMeter_skel,
private:
KLevelMeter_Private *p;
public:
- KLevelMeter_impl( QFrame* =0 );
+ KLevelMeter_impl( TQFrame* =0 );
LevelMeterStyle style();
void style( LevelMeterStyle );
diff --git a/arts/gui/kde/klevelmeter_linebars.cpp b/arts/gui/kde/klevelmeter_linebars.cpp
index 3292ba4..6d63a18 100644
--- a/arts/gui/kde/klevelmeter_linebars.cpp
+++ b/arts/gui/kde/klevelmeter_linebars.cpp
@@ -21,14 +21,14 @@
#include "klevelmeter_linebars.h"
#include <kdebug.h>
-#include <qpainter.h>
-#include <qpixmap.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
-KLevelMeter_LineBars::KLevelMeter_LineBars( Arts::KLevelMeter_impl* impl, QWidget* parent, long substyle, long count, Arts::Direction dir, float _dbmin, float _dbmax ) : KLevelMeter_Template( impl, parent, substyle, count, dir, _dbmin, _dbmax )
+KLevelMeter_LineBars::KLevelMeter_LineBars( Arts::KLevelMeter_impl* impl, TQWidget* parent, long substyle, long count, Arts::Direction dir, float _dbmin, float _dbmax ) : KLevelMeter_Template( impl, parent, substyle, count, dir, _dbmin, _dbmax )
, _value( 0.0 )
, _peak( 0.0 )
{
-//kdDebug()<<"KLevelMeter_LineBars::KLevelMeter_LineBars( Arts::KLevelMeter_impl* "<<impl<<", QWidget* "<<parent<<", long "<<substyle<<", long "<<count<<", Arts::Direction "<<dir<<", float "<<_dbmin<<", float "<<_dbmax<<" )"<<endl;
+//kdDebug()<<"KLevelMeter_LineBars::KLevelMeter_LineBars( Arts::KLevelMeter_impl* "<<impl<<", TQWidget* "<<parent<<", long "<<substyle<<", long "<<count<<", Arts::Direction "<<dir<<", float "<<_dbmin<<", float "<<_dbmax<<" )"<<endl;
this->setMinimumSize( 5, 5 );
this->substyle( substyle );
_stdcolors = colorGroup();
@@ -47,9 +47,9 @@ void KLevelMeter_LineBars::substyle( long n ) {
}
long KLevelMeter_LineBars::substyle() { return _substyle; }
-void KLevelMeter_LineBars::paintEvent( QPaintEvent* ) {
- QPixmap pm( size() );
- QPainter p( &pm );
+void KLevelMeter_LineBars::paintEvent( TQPaintEvent* ) {
+ TQPixmap pm( size() );
+ TQPainter p( &pm );
switch ( _dir ) {
case Arts::BottomToTop:
@@ -69,16 +69,16 @@ void KLevelMeter_LineBars::paintEvent( QPaintEvent* ) {
}
if ( _substyle & 1 )
- p.setBrush( ( _peak<1 )?QColor( 0,0,255 ):QColor( 255,0,0 ) );
+ p.setBrush( ( _peak<1 )?TQColor( 0,0,255 ):TQColor( 255,0,0 ) );
else
- p.setBrush( ( _peak<1 )?color( _value ):QColor( 255,0,0 ) );
+ p.setBrush( ( _peak<1 )?color( _value ):TQColor( 255,0,0 ) );
- QColor bgcolor = ( _substyle & 2 ) ? p.brush().color().dark() : _stdcolors.background();
+ TQColor bgcolor = ( _substyle & 2 ) ? p.brush().color().dark() : _stdcolors.background();
pm.fill( bgcolor );
p.setPen( NoPen );
- QSize s = size();
+ TQSize s = size();
if ( Arts::LeftToRight == _dir || Arts::RightToLeft == _dir )
s.transpose();
@@ -89,7 +89,7 @@ void KLevelMeter_LineBars::paintEvent( QPaintEvent* ) {
p.drawRect( 0, top, w, h );
// PeakBar
if ( _peak > 1.0/1000 && _peak <= 1.0 ) {
- p.setPen( QColor( 255-bgcolor.red(), 255-bgcolor.green(), 255-bgcolor.blue() ) );
+ p.setPen( TQColor( 255-bgcolor.red(), 255-bgcolor.green(), 255-bgcolor.blue() ) );
top = int( s.height() * ( 1 - _peak ) );
p.drawLine( 0, top, w, top );
}
@@ -100,8 +100,8 @@ void KLevelMeter_LineBars::paintEvent( QPaintEvent* ) {
/**
Planned feature: a little Tooltip showing the actual value of the volume in deziBel and perhaps as linear scaleFactor
*/
-void KLevelMeter_LineBars::mouseMoveEvent( QMouseEvent* /*qme*/ ) {
-//kdDebug()<<"KLevelMeter_LineBars::mouseMoveEvent(QMouseEvent* "<<qme<<" )"<<endl;
+void KLevelMeter_LineBars::mouseMoveEvent( TQMouseEvent* /*qme*/ ) {
+//kdDebug()<<"KLevelMeter_LineBars::mouseMoveEvent(TQMouseEvent* "<<qme<<" )"<<endl;
//kdDebug()<<"qme.y()="<<this->height()-qme->y()<<" db="<<db<<" dbtoamp(db)="<<dbtoamp( db )<<endl;
}
diff --git a/arts/gui/kde/klevelmeter_linebars.h b/arts/gui/kde/klevelmeter_linebars.h
index e10d4ba..cf0c421 100644
--- a/arts/gui/kde/klevelmeter_linebars.h
+++ b/arts/gui/kde/klevelmeter_linebars.h
@@ -26,20 +26,20 @@
class KLevelMeter_LineBars : public KLevelMeter_Template {
Q_OBJECT
public:
- KLevelMeter_LineBars( Arts::KLevelMeter_impl*, QWidget* =0, long substyle=0, long count=0, Arts::Direction =Arts::BottomToTop, float _dbmin=-24, float _dbmax=6 );
+ KLevelMeter_LineBars( Arts::KLevelMeter_impl*, TQWidget* =0, long substyle=0, long count=0, Arts::Direction =Arts::BottomToTop, float _dbmin=-24, float _dbmax=6 );
void invalue( float, float =0 );
void substyle( long );
long substyle();
- void paintEvent( QPaintEvent* );
+ void paintEvent( TQPaintEvent* );
- void mouseMoveEvent( QMouseEvent* );
+ void mouseMoveEvent( TQMouseEvent* );
private:
float _value, _peak;
long _substyle;
- QColorGroup _stdcolors;
+ TQColorGroup _stdcolors;
};
#endif
diff --git a/arts/gui/kde/klevelmeter_normalbars.cpp b/arts/gui/kde/klevelmeter_normalbars.cpp
index 7a6fcdf..2959355 100644
--- a/arts/gui/kde/klevelmeter_normalbars.cpp
+++ b/arts/gui/kde/klevelmeter_normalbars.cpp
@@ -21,19 +21,19 @@
#include "klevelmeter_normalbars.h"
#include <kdebug.h>
-#include <qpainter.h>
-#include <qlayout.h>
+#include <tqpainter.h>
+#include <tqlayout.h>
-KLevelMeter_NormalBars::KLevelMeter_NormalBars( Arts::KLevelMeter_impl* impl, QWidget* parent, long substyle, long count, Arts::Direction dir, float _dbmin, float _dbmax ) : KLevelMeter_Template( impl, parent, substyle, count, dir, _dbmin, _dbmax ) {
-//kdDebug()<<"KLevelMeter_NormalBars::KLevelMeter_NormalBars( Arts::KLevelMeter_impl* "<<impl<<", QWidget* "<<parent<<", long "<<substyle<<", long "<<count<<", float "<<_dbmin<<", float "<<_dbmax<<" )"<<endl;
- _layout = new QBoxLayout( this, QBoxLayout::BottomToTop );
+KLevelMeter_NormalBars::KLevelMeter_NormalBars( Arts::KLevelMeter_impl* impl, TQWidget* parent, long substyle, long count, Arts::Direction dir, float _dbmin, float _dbmax ) : KLevelMeter_Template( impl, parent, substyle, count, dir, _dbmin, _dbmax ) {
+//kdDebug()<<"KLevelMeter_NormalBars::KLevelMeter_NormalBars( Arts::KLevelMeter_impl* "<<impl<<", TQWidget* "<<parent<<", long "<<substyle<<", long "<<count<<", float "<<_dbmin<<", float "<<_dbmax<<" )"<<endl;
+ _layout = new TQBoxLayout( this, TQBoxLayout::BottomToTop );
}
void KLevelMeter_NormalBars::invalue( float n, float p ) {
//kdDebug()<<"KLevelMeter_NormalBars::invalue( float "<<n<<", float "<<p<<" )"<<endl;
_peak = amptondb( p );
_value = amptondb( n );
- if ( _dir != Arts::Direction( _layout->direction() ) ) _layout->setDirection( QBoxLayout::Direction( _dir ) );
+ if ( _dir != Arts::Direction( _layout->direction() ) ) _layout->setDirection( TQBoxLayout::Direction( _dir ) );
for ( uint i=0; i<bars.count(); i++ ) bars.at( i )->setValue( _value );
}
@@ -46,8 +46,8 @@ void KLevelMeter_NormalBars::count( long n ) {
}
}
-void KLevelMeter_NormalBars::resizeEvent( QResizeEvent* ) {
- //kdDebug()<<"KLevelMeter_NormalBars::resizeEvent( QResizeEvent* )"<<endl;
+void KLevelMeter_NormalBars::resizeEvent( TQResizeEvent* ) {
+ //kdDebug()<<"KLevelMeter_NormalBars::resizeEvent( TQResizeEvent* )"<<endl;
uint barscount = _count;
//kdDebug()<<"[1] barscount="<<barscount<<" bars.count()="<<bars.count()<<endl;
if ( _dir==Arts::BottomToTop || _dir==Arts::TopToBottom ) {
diff --git a/arts/gui/kde/klevelmeter_normalbars.h b/arts/gui/kde/klevelmeter_normalbars.h
index 2783e09..5705ef5 100644
--- a/arts/gui/kde/klevelmeter_normalbars.h
+++ b/arts/gui/kde/klevelmeter_normalbars.h
@@ -23,7 +23,7 @@
#include "klevelmeter_template.h"
-#include <qptrlist.h>
+#include <tqptrlist.h>
class Bar;
class QBoxLayout;
@@ -31,29 +31,29 @@ class QBoxLayout;
class KLevelMeter_NormalBars : public KLevelMeter_Template {
Q_OBJECT
public:
- KLevelMeter_NormalBars( Arts::KLevelMeter_impl*, QWidget* =0, long substyle=0, long count=25, Arts::Direction =Arts::BottomToTop, float _dbmin=-24, float _dbmax=6 );
+ KLevelMeter_NormalBars( Arts::KLevelMeter_impl*, TQWidget* =0, long substyle=0, long count=25, Arts::Direction =Arts::BottomToTop, float _dbmin=-24, float _dbmax=6 );
void invalue( float, float =0 );
void count( long );
long count();
- void resizeEvent( QResizeEvent* =0 );
+ void resizeEvent( TQResizeEvent* =0 );
private:
float _value, _peak;
- QPtrList <Bar> bars;
+ TQPtrList <Bar> bars;
// long _count;
- QBoxLayout *_layout;
+ TQBoxLayout *_layout;
};
-class Bar : public QWidget {
+class Bar : public TQWidget {
Q_OBJECT
private:
float _min, _max;
- QColor _color;
+ TQColor _color;
bool _on;
public:
- Bar( float min, float max, QColor color, QWidget* parent ) : QWidget( parent ), _min( min ), _max( max ), _color( color ), _on( false ) {
+ Bar( float min, float max, TQColor color, TQWidget* parent ) : TQWidget( parent ), _min( min ), _max( max ), _color( color ), _on( false ) {
setBackgroundColor( _color.dark() );
}
void setValue( float n ) {
@@ -68,7 +68,7 @@ public:
else setBackgroundColor( _color.dark() );
}
}
- void setValues( float min, float max, QColor color ) { _min = min; _max = max; _color = color; on( _on ); }
+ void setValues( float min, float max, TQColor color ) { _min = min; _max = max; _color = color; on( _on ); }
};
#endif
diff --git a/arts/gui/kde/klevelmeter_private.h b/arts/gui/kde/klevelmeter_private.h
index f7ff4e9..79fe49b 100644
--- a/arts/gui/kde/klevelmeter_private.h
+++ b/arts/gui/kde/klevelmeter_private.h
@@ -21,7 +21,7 @@
#ifndef ARTS_KLEVELMETER_PRIVATE_H
#define ARTS_KLEVELMETER_PRIVATE_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include "klevelmeter_impl.h"
@@ -29,12 +29,12 @@ class KLevelMeter_Template;
class QBoxLayout;
class KArtsWidget;
-class KLevelMeter_Private : public QObject {
+class KLevelMeter_Private : public TQObject {
Q_OBJECT
public:
Arts::KLevelMeter_impl* _impl;
- QFrame* _frame;
- QBoxLayout *_layout;
+ TQFrame* _frame;
+ TQBoxLayout *_layout;
KLevelMeter_Template *_levelmeter;
@@ -46,7 +46,7 @@ public:
float _peakvalue;
float _dbmin, _dbmax;
- KLevelMeter_Private( Arts::KLevelMeter_impl* impl, QFrame* frame, Arts::LevelMeterStyle defstyle, QObject* =0, const char* =0 );
+ KLevelMeter_Private( Arts::KLevelMeter_impl* impl, TQFrame* frame, Arts::LevelMeterStyle defstyle, TQObject* =0, const char* =0 );
void createWidget();
};
diff --git a/arts/gui/kde/klevelmeter_small.cpp b/arts/gui/kde/klevelmeter_small.cpp
index 1c9c481..c74dfa4 100644
--- a/arts/gui/kde/klevelmeter_small.cpp
+++ b/arts/gui/kde/klevelmeter_small.cpp
@@ -21,26 +21,26 @@
#include "klevelmeter_small.h"
#include <kdebug.h>
-#include <qpainter.h>
+#include <tqpainter.h>
-KLevelMeter_Small::KLevelMeter_Small( Arts::KLevelMeter_impl* impl, QWidget* parent, long substyle, long count, Arts::Direction dir, float _dbmin, float _dbmax ) : KLevelMeter_Template( impl, parent, substyle, count, dir, _dbmin, _dbmax ) {
-//kdDebug()<<"KLevelMeter_Small::KLevelMeter_Small( Arts::KLevelMeter_impl* "<<impl<<", QWidget* "<<parent<<", long "<<substyle<<", long "<<count<<", float "<<_dbmin<<", float "<<_dbmax<<" )"<<endl;
+KLevelMeter_Small::KLevelMeter_Small( Arts::KLevelMeter_impl* impl, TQWidget* parent, long substyle, long count, Arts::Direction dir, float _dbmin, float _dbmax ) : KLevelMeter_Template( impl, parent, substyle, count, dir, _dbmin, _dbmax ) {
+//kdDebug()<<"KLevelMeter_Small::KLevelMeter_Small( Arts::KLevelMeter_impl* "<<impl<<", TQWidget* "<<parent<<", long "<<substyle<<", long "<<count<<", float "<<_dbmin<<", float "<<_dbmax<<" )"<<endl;
}
void KLevelMeter_Small::invalue( float n, float p ) {
//kdDebug()<<"KLevelMeter_Small::invalue( float "<<n<<", float "<<p<<" )"<<endl;
_peak = amptondb( p );
if ( n ) this->setBackgroundColor( color( amptondb( n ) ) );
- else this->setBackgroundColor( QColor( 0,255,0 ).dark() );
+ else this->setBackgroundColor( TQColor( 0,255,0 ).dark() );
}
-void KLevelMeter_Small::paintEvent( QPaintEvent* /*qpe*/ ) {
-//kdDebug()<<"KLevelMeter_Small::paintEvent( QPaintEvent* "<<qpe<<" )"<<endl;
+void KLevelMeter_Small::paintEvent( TQPaintEvent* /*qpe*/ ) {
+//kdDebug()<<"KLevelMeter_Small::paintEvent( TQPaintEvent* "<<qpe<<" )"<<endl;
if ( _peak && _peak <= 1.0 ) {
- QPainter p( this );
- //p.setPen( QColor( 0,0,0 ) );
- QColor bgcolor = this->paletteBackgroundColor();
- p.setPen( QColor( 255-bgcolor.red(), 255-bgcolor.green(), 255-bgcolor.blue() ) );
+ TQPainter p( this );
+ //p.setPen( TQColor( 0,0,0 ) );
+ TQColor bgcolor = this->paletteBackgroundColor();
+ p.setPen( TQColor( 255-bgcolor.red(), 255-bgcolor.green(), 255-bgcolor.blue() ) );
if ( _dir==Arts::BottomToTop || _dir==Arts::TopToBottom ) {
if ( _dir==Arts::BottomToTop ) p.translate( 0, rect().bottom() );
int h = int( this->height() * _peak );
diff --git a/arts/gui/kde/klevelmeter_small.h b/arts/gui/kde/klevelmeter_small.h
index ba189dd..1c2c20e 100644
--- a/arts/gui/kde/klevelmeter_small.h
+++ b/arts/gui/kde/klevelmeter_small.h
@@ -26,11 +26,11 @@
class KLevelMeter_Small : public KLevelMeter_Template {
Q_OBJECT
public:
- KLevelMeter_Small( Arts::KLevelMeter_impl*, QWidget* =0, long substyle=0, long count=0, Arts::Direction =Arts::BottomToTop, float _dbmin=-24, float _dbmax=6 );
+ KLevelMeter_Small( Arts::KLevelMeter_impl*, TQWidget* =0, long substyle=0, long count=0, Arts::Direction =Arts::BottomToTop, float _dbmin=-24, float _dbmax=6 );
void invalue( float, float =0 );
- void paintEvent( QPaintEvent* );
+ void paintEvent( TQPaintEvent* );
private:
float _peak;
};
diff --git a/arts/gui/kde/klevelmeter_template.h b/arts/gui/kde/klevelmeter_template.h
index 1b3915b..c822be4 100644
--- a/arts/gui/kde/klevelmeter_template.h
+++ b/arts/gui/kde/klevelmeter_template.h
@@ -21,7 +21,7 @@
#ifndef ARTS_KLEVELMETER_TEMPLATE_H
#define ARTS_KLEVELMETER_TEMPLATE_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <math.h>
@@ -29,13 +29,13 @@
#include "klevelmeter_impl.h"
-class KLevelMeter_Template : public QWidget, public dB2VolCalc {
+class KLevelMeter_Template : public TQWidget, public dB2VolCalc {
Q_OBJECT
public:
Arts::KLevelMeter_impl* _impl;
- KLevelMeter_Template( Arts::KLevelMeter_impl* impl, QWidget* p, long /*substyle*/, long count, Arts::Direction dir, float _dbmin, float _dbmax )
- : QWidget( p )
+ KLevelMeter_Template( Arts::KLevelMeter_impl* impl, TQWidget* p, long /*substyle*/, long count, Arts::Direction dir, float _dbmin, float _dbmax )
+ : TQWidget( p )
, dB2VolCalc( _dbmin, _dbmax )
, _impl( impl )
, _count( count )
@@ -57,8 +57,8 @@ public:
float nilline;
/// Gives the colors between green and red
- QColor color( float n ) {
- return QColor( int( ( n<=nilline )?255*( 1/nilline )*n:255 ),
+ TQColor color( float n ) {
+ return TQColor( int( ( n<=nilline )?255*( 1/nilline )*n:255 ),
int( ( n<=1 && n>nilline )?255-255*( 1/nilline )*( n-nilline ):( ( n>1 )?0:255 ) ),
0 );
}
diff --git a/arts/gui/kde/klineedit_impl.cpp b/arts/gui/kde/klineedit_impl.cpp
index 898879f..e364364 100644
--- a/arts/gui/kde/klineedit_impl.cpp
+++ b/arts/gui/kde/klineedit_impl.cpp
@@ -29,11 +29,11 @@ using namespace std;
KLineEditStringMapper::KLineEditStringMapper(KLineEdit_impl *impl, KLineEdit *ke)
:impl(impl)
{
- connect(ke, SIGNAL(textChanged(const QString&)),
- this, SLOT(textChanged(const QString&)));
+ connect(ke, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(textChanged(const TQString&)));
}
-void KLineEditStringMapper::textChanged(const QString& newText)
+void KLineEditStringMapper::textChanged(const TQString& newText)
{
impl->textChanged(newText.utf8().data());
}
@@ -52,7 +52,7 @@ string KLineEdit_impl::text()
void KLineEdit_impl::text(const string& newText)
{
- _klineedit->setText(QString::fromUtf8(newText.c_str()));
+ _klineedit->setText(TQString::fromUtf8(newText.c_str()));
}
void KLineEdit_impl::textChanged(const string& newText)
diff --git a/arts/gui/kde/klineedit_impl.h b/arts/gui/kde/klineedit_impl.h
index b9099ac..2bd6b69 100644
--- a/arts/gui/kde/klineedit_impl.h
+++ b/arts/gui/kde/klineedit_impl.h
@@ -47,13 +47,13 @@ public:
void textChanged(const std::string& newText);
};
-class KLineEditStringMapper :public QObject {
+class KLineEditStringMapper :public TQObject {
Q_OBJECT
KLineEdit_impl *impl;
public:
KLineEditStringMapper(KLineEdit_impl *impl, KLineEdit *ed);
public slots:
- void textChanged(const QString& newText);
+ void textChanged(const TQString& newText);
};
}
diff --git a/arts/gui/kde/kpopupbox_impl.cpp b/arts/gui/kde/kpopupbox_impl.cpp
index 2c56c73..23de74f 100644
--- a/arts/gui/kde/kpopupbox_impl.cpp
+++ b/arts/gui/kde/kpopupbox_impl.cpp
@@ -22,7 +22,7 @@
#include "kpopupbox_impl.h"
#include "kpopupbox_private.h"
-#include <qlayout.h>
+#include <tqlayout.h>
using namespace Arts;
@@ -54,25 +54,25 @@ void KPopupBox_impl::name( const std::string& n ) { _name = ""; _name = n; _widg
// Following the private class:
-KPopupBox_widget::KPopupBox_widget( QWidget *parent, const char* name ) : QFrame( parent,name )
+KPopupBox_widget::KPopupBox_widget( TQWidget *parent, const char* name ) : TQFrame( parent,name )
{
- this->setFrameShape( QFrame::Box );
+ this->setFrameShape( TQFrame::Box );
this->setMargin( 1 ); this->setLineWidth( 1 );
- _titlebar = new QFrame( this );
- _titlebarlayout = new QBoxLayout( _titlebar, QBoxLayout::BottomToTop );
+ _titlebar = new TQFrame( this );
+ _titlebarlayout = new TQBoxLayout( _titlebar, TQBoxLayout::BottomToTop );
_titlebarlayout->setAutoAdd( true );
_showbutton = new ShowButton( _titlebar );
- connect( _showbutton, SIGNAL( toggled( bool ) ), this, SLOT( hide( bool ) ) );
+ connect( _showbutton, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( hide( bool ) ) );
_drag = new HandleDrag( _titlebar );
- connect( _drag, SIGNAL( clicked() ), _showbutton, SLOT( toggle() ) );
+ connect( _drag, TQT_SIGNAL( clicked() ), _showbutton, TQT_SLOT( toggle() ) );
_ownbutton = new OwnButton( _titlebar );
- connect( _ownbutton, SIGNAL( toggled( bool ) ), this, SLOT( own( bool ) ) );
+ connect( _ownbutton, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( own( bool ) ) );
_artswidget = new OwnWidget( _showbutton, this );
- _layout = new QBoxLayout( this, QBoxLayout::LeftToRight );
+ _layout = new TQBoxLayout( this, TQBoxLayout::LeftToRight );
_layout->addWidget( _titlebar , -1 );
_layout->addWidget( _artswidget, 20 );
_layout->addStretch( 0 );
@@ -85,18 +85,18 @@ Arts::Direction KPopupBox_widget::direction() {
}
void KPopupBox_widget::direction( Arts::Direction n ) {
- _layout->setDirection( QBoxLayout::Direction( n ) );
- _showbutton->direction( QBoxLayout::Direction( n ) );
+ _layout->setDirection( TQBoxLayout::Direction( n ) );
+ _showbutton->direction( TQBoxLayout::Direction( n ) );
switch( n ) {
case LeftToRight:
case RightToLeft:
- _titlebarlayout->setDirection( QBoxLayout::BottomToTop );
+ _titlebarlayout->setDirection( TQBoxLayout::BottomToTop );
_drag->setMinimumHeight( 30 );
_drag->setMinimumWidth( 0 );
break;
case TopToBottom:
case BottomToTop:
- _titlebarlayout->setDirection( QBoxLayout::RightToLeft );
+ _titlebarlayout->setDirection( TQBoxLayout::RightToLeft );
_drag->setMinimumHeight( 0 );
_drag->setMinimumWidth( 30 );
}
@@ -117,7 +117,7 @@ void KPopupBox_widget::own( bool n ) {
_artswidget->reparent( 0, _artswidget->mapToGlobal( _artswidget->pos() ), !( _artswidget->isHidden() ) );
else
{
- _artswidget->reparent( this, QPoint( 0,0 ), !( _artswidget->isHidden() ) );
+ _artswidget->reparent( this, TQPoint( 0,0 ), !( _artswidget->isHidden() ) );
_layout->insertWidget( 1, _artswidget, 20 );
}
}
diff --git a/arts/gui/kde/kpopupbox_private.h b/arts/gui/kde/kpopupbox_private.h
index 6b03291..a5072b0 100644
--- a/arts/gui/kde/kpopupbox_private.h
+++ b/arts/gui/kde/kpopupbox_private.h
@@ -30,13 +30,13 @@ class KArtsWidget;
class OwnWidget;
class QBoxLayout;
-#include <qframe.h>
+#include <tqframe.h>
class KPopupBox_widget : public QFrame
{
Q_OBJECT
public:
- KPopupBox_widget( QWidget* =0, const char* =0);
+ KPopupBox_widget( TQWidget* =0, const char* =0);
~KPopupBox_widget();
Arts::Direction direction();
@@ -50,10 +50,10 @@ private slots:
void hide( bool );
void own( bool );
private:
- QBoxLayout *_layout;
+ TQBoxLayout *_layout;
- QFrame *_titlebar;
- QBoxLayout *_titlebarlayout;
+ TQFrame *_titlebar;
+ TQBoxLayout *_titlebarlayout;
HandleDrag *_drag;
ShowButton *_showbutton;
OwnButton *_ownbutton;
@@ -63,34 +63,34 @@ private:
// See kpopupbox_impl.h - The eventmapper isn't needed at present, but perhaps in the future...
-/*class KPopupBoxEventMapper : public QObject {
+/*class KPopupBoxEventMapper : public TQObject {
Q_OBJECT
public:
KPopupBoxEventMapper( KPopupBox_widget *widget, Arts::KPopupBox_impl *impl )
- : QObject( widget,"" ), _widget( widget ), _impl( impl )
+ : TQObject( widget,"" ), _widget( widget ), _impl( impl )
{}
private:
KPopupBox_widget *_widget;
Arts::KPopupBox_impl *_impl;
};*/
-#include <qpainter.h>
-#include <qstyle.h>
+#include <tqpainter.h>
+#include <tqstyle.h>
-class HandleDrag : public QWidget {
+class HandleDrag : public TQWidget {
Q_OBJECT
public:
- HandleDrag( QWidget *parent, const char* name=0 ) : QWidget( parent,name ) {}
- void paintEvent( QPaintEvent * ) {
- QPainter p( this );
- QStyle::SFlags flags = QStyle::Style_Default;
- if( width() < height() ) flags |= QStyle::Style_Horizontal;
- style().drawPrimitive( QStyle::PE_DockWindowHandle, &p, rect(), colorGroup(), flags );
+ HandleDrag( TQWidget *parent, const char* name=0 ) : TQWidget( parent,name ) {}
+ void paintEvent( TQPaintEvent * ) {
+ TQPainter p( this );
+ TQStyle::SFlags flags = TQStyle::Style_Default;
+ if( width() < height() ) flags |= TQStyle::Style_Horizontal;
+ style().drawPrimitive( TQStyle::PE_DockWindowHandle, &p, rect(), colorGroup(), flags );
}
signals:
void clicked();
protected:
- virtual void mouseDoubleClickEvent( QMouseEvent * ) {
+ virtual void mouseDoubleClickEvent( TQMouseEvent * ) {
emit clicked();
}
};
@@ -103,76 +103,76 @@ static const char* const right_xpm[] = { "5 5 2 1", "# c black", ". c None", ".
static const char* const inside_xpm[] = { "5 5 2 1", "# c black", ". c None", "#####", "#...#", "#...#", "#...#", "#####"};
static const char* const own_xpm[] = { "5 5 2 1", "# c black", ". c None", "###..", "#.###", "###.#", ".#..#", ".####"};
-#include <qpushbutton.h>
-#include <qlayout.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
-class ShowButton : public QPushButton {
+class ShowButton : public TQPushButton {
Q_OBJECT
private:
- QBoxLayout::Direction _dir;
- QPixmap _pmleft, _pmright, _pmup, _pmdown;
+ TQBoxLayout::Direction _dir;
+ TQPixmap _pmleft, _pmright, _pmup, _pmdown;
public:
- ShowButton( QWidget *parent, const char* name=0 ) : QPushButton( parent,name ), _dir( QBoxLayout::LeftToRight )
+ ShowButton( TQWidget *parent, const char* name=0 ) : TQPushButton( parent,name ), _dir( TQBoxLayout::LeftToRight )
{
- connect( this, SIGNAL( toggled( bool ) ), this, SLOT( owntoggle( bool ) ) );
+ connect( this, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( owntoggle( bool ) ) );
setToggleButton( true );
- _pmleft = QPixmap( const_cast<const char**>( left_xpm ) );
- _pmright = QPixmap( const_cast<const char**>( right_xpm ) );
- _pmup = QPixmap( const_cast<const char**>( up_xpm ) );
- _pmdown = QPixmap( const_cast<const char**>( down_xpm ) );
+ _pmleft = TQPixmap( const_cast<const char**>( left_xpm ) );
+ _pmright = TQPixmap( const_cast<const char**>( right_xpm ) );
+ _pmup = TQPixmap( const_cast<const char**>( up_xpm ) );
+ _pmdown = TQPixmap( const_cast<const char**>( down_xpm ) );
setPixmap( _pmright );
}
- void direction( QBoxLayout::Direction n ) { _dir=n; }
+ void direction( TQBoxLayout::Direction n ) { _dir=n; }
public slots:
void owntoggle( bool b ) {
switch( _dir )
{
- case QBoxLayout::BottomToTop:
+ case TQBoxLayout::BottomToTop:
if( b ) setPixmap( _pmdown );
else setPixmap( _pmup );
break;
- case QBoxLayout::TopToBottom:
+ case TQBoxLayout::TopToBottom:
if( b ) setPixmap( _pmup );
else setPixmap( _pmdown );
break;
- case QBoxLayout::LeftToRight:
+ case TQBoxLayout::LeftToRight:
if( b ) setPixmap( _pmright );
else setPixmap( _pmleft );
break;
- case QBoxLayout::RightToLeft:
+ case TQBoxLayout::RightToLeft:
if( b ) setPixmap( _pmleft );
else setPixmap( _pmright );
break;
}
}
public:
- QSize minimumSizeHint() const {
- int wh = style().pixelMetric( QStyle::PM_DockWindowHandleExtent, this );
- return QSize( wh, wh );
+ TQSize minimumSizeHint() const {
+ int wh = style().pixelMetric( TQStyle::PM_DockWindowHandleExtent, this );
+ return TQSize( wh, wh );
}
- QSizePolicy sizePolicy() const { return QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ); }
- QSize minimumSize() const { return minimumSizeHint(); }
- QSize sizeHint() const { return minimumSize(); }
+ TQSizePolicy sizePolicy() const { return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); }
+ TQSize minimumSize() const { return minimumSizeHint(); }
+ TQSize sizeHint() const { return minimumSize(); }
- void drawButton( QPainter * p )
+ void drawButton( TQPainter * p )
{
- p->fillRect( 0,0, width(), height(), QBrush( colorGroup().brush( QColorGroup::Background ) ) );
+ p->fillRect( 0,0, width(), height(), TQBrush( colorGroup().brush( TQColorGroup::Background ) ) );
p->drawPixmap( ( width() - pixmap()->width() ) / 2, ( height() - pixmap()->height() ) / 2, *pixmap() );
}
};
-class OwnButton : public QPushButton {
+class OwnButton : public TQPushButton {
Q_OBJECT
private:
- QPixmap _pmown, _pminside;
+ TQPixmap _pmown, _pminside;
public:
- OwnButton( QWidget *parent, const char* name=0 ) : QPushButton( parent,name )
+ OwnButton( TQWidget *parent, const char* name=0 ) : TQPushButton( parent,name )
{
- connect( this, SIGNAL( toggled( bool ) ), this, SLOT( toggle( bool ) ) );
+ connect( this, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( toggle( bool ) ) );
setToggleButton( true );
- _pmown = QPixmap( const_cast<const char**>( own_xpm ) );
- _pminside = QPixmap( const_cast<const char**>( inside_xpm ) );
+ _pmown = TQPixmap( const_cast<const char**>( own_xpm ) );
+ _pminside = TQPixmap( const_cast<const char**>( inside_xpm ) );
setPixmap( _pmown );
}
@@ -182,17 +182,17 @@ public slots:
else setPixmap( _pmown );
}
public:
- QSize minimumSizeHint() const {
- int wh = style().pixelMetric( QStyle::PM_DockWindowHandleExtent, this );
- return QSize( wh, wh );
+ TQSize minimumSizeHint() const {
+ int wh = style().pixelMetric( TQStyle::PM_DockWindowHandleExtent, this );
+ return TQSize( wh, wh );
}
- QSizePolicy sizePolicy() const { return QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ); }
- QSize minimumSize() const { return minimumSizeHint(); }
- QSize sizeHint() const { return minimumSize(); }
+ TQSizePolicy sizePolicy() const { return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); }
+ TQSize minimumSize() const { return minimumSizeHint(); }
+ TQSize sizeHint() const { return minimumSize(); }
- void drawButton( QPainter * p )
+ void drawButton( TQPainter * p )
{
- p->fillRect( 0,0, width(), height(), QBrush( colorGroup().brush( QColorGroup::Background ) ) );
+ p->fillRect( 0,0, width(), height(), TQBrush( colorGroup().brush( TQColorGroup::Background ) ) );
p->drawPixmap( ( width() - pixmap()->width() ) / 2, ( height() - pixmap()->height() ) / 2, *pixmap() );
}
};
@@ -204,10 +204,10 @@ class OwnWidget : public KArtsWidget
Q_OBJECT
ShowButton *_b;
public:
- OwnWidget( ShowButton* b, QWidget* p, const char* n=0, WFlags f=0 ) : KArtsWidget( p,n,f ) { _b = b; }
+ OwnWidget( ShowButton* b, TQWidget* p, const char* n=0, WFlags f=0 ) : KArtsWidget( p,n,f ) { _b = b; }
~OwnWidget() {}
public slots:
- void closeEvent( QCloseEvent * ) { _b->toggle(); }
+ void closeEvent( TQCloseEvent * ) { _b->toggle(); }
};
#endif
diff --git a/arts/gui/kde/kpoti.cpp b/arts/gui/kde/kpoti.cpp
index e12c1bf..462d640 100644
--- a/arts/gui/kde/kpoti.cpp
+++ b/arts/gui/kde/kpoti.cpp
@@ -20,15 +20,15 @@
#include "kpoti.h"
#include "kpoti.moc"
-#include <qbitmap.h>
-#include <qpainter.h>
-#include <qcolor.h>
-#include <qdrawutil.h>
-#include <qtimer.h>
-#include <qkeycode.h>
-#include <qpen.h>
-#include <qstring.h>
-#include <qstyle.h>
+#include <tqbitmap.h>
+#include <tqpainter.h>
+#include <tqcolor.h>
+#include <tqdrawutil.h>
+#include <tqtimer.h>
+#include <tqkeycode.h>
+#include <tqpen.h>
+#include <tqstring.h>
+#include <tqstyle.h>
#include <math.h>
@@ -53,18 +53,18 @@ struct KPoti::KPotiPrivate
bool bgDirty;
KPixmap bgdb;
- KPixmap bgPixmap( const QColorGroup & colorGroup )
+ KPixmap bgPixmap( const TQColorGroup & colorGroup )
{
if( bgDirty || bgdb.isNull() )
{
bgdb.resize( buttonRect.size() );
- QPainter dbp( &bgdb );
+ TQPainter dbp( &bgdb );
dbp.setPen( Qt::NoPen );
- QRect drawRect = bgdb.rect();
+ TQRect drawRect = bgdb.rect();
// create mask
- QBitmap mask( bgdb.size(), true );
- QPainter maskpainter( &mask );
+ TQBitmap mask( bgdb.size(), true );
+ TQPainter maskpainter( &mask );
maskpainter.setPen( Qt::NoPen );
maskpainter.setBrush( Qt::color1 );
maskpainter.drawEllipse( drawRect );
@@ -74,7 +74,7 @@ struct KPoti::KPotiPrivate
// inset shadow
KPixmap gradient( bgdb.size() );
KPixmapEffect::gradient( gradient, colorGroup.light(), colorGroup.dark(), KPixmapEffect::DiagonalGradient );
- dbp.setBrush( QBrush( colorGroup.button(), gradient ) );
+ dbp.setBrush( TQBrush( colorGroup.button(), gradient ) );
dbp.drawEllipse( drawRect );
potiRect.setSize( drawRect.size() * 0.9 );
@@ -90,7 +90,7 @@ struct KPoti::KPotiPrivate
return bgdb;
}
- QColor potiColor;
+ TQColor potiColor;
bool potiDirty;
KPixmap potidb;
KPixmap potiPixmap()
@@ -98,13 +98,13 @@ struct KPoti::KPotiPrivate
if( ( potiDirty || potidb.isNull() ) && ! potiRect.size().isEmpty() )
{
potidb.resize( potiRect.size() );
- QPainter dbp( &potidb );
+ TQPainter dbp( &potidb );
dbp.setPen( Qt::NoPen );
- QRect drawRect( potidb.rect() );
+ TQRect drawRect( potidb.rect() );
// create mask
- QBitmap mask( potidb.size(), true );
- QPainter maskpainter( &mask );
+ TQBitmap mask( potidb.size(), true );
+ TQPainter maskpainter( &mask );
maskpainter.setPen( Qt::NoPen );
maskpainter.setBrush( Qt::color1 );
maskpainter.drawEllipse( drawRect );
@@ -113,7 +113,7 @@ struct KPoti::KPotiPrivate
KPixmap gradient( potidb.size() );
KPixmapEffect::gradient( gradient, potiColor.dark( 130 ), potiColor.light( 130 ), KPixmapEffect::DiagonalGradient );
- dbp.setBrush( QBrush( potiColor, gradient ) );
+ dbp.setBrush( TQBrush( potiColor, gradient ) );
dbp.drawEllipse( drawRect );
potiDirty = false;
@@ -121,45 +121,45 @@ struct KPoti::KPotiPrivate
return potidb;
}
- QRect buttonRect;
- QRect potiRect;
- QRect labelRect;
- QString label;
- QPoint center;
+ TQRect buttonRect;
+ TQRect potiRect;
+ TQRect labelRect;
+ TQString label;
+ TQPoint center;
};
-QSizePolicy KPoti::sizePolicy() const
+TQSizePolicy KPoti::sizePolicy() const
{
- return QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );
+ return TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Preferred );
}
-QSize KPoti::sizeHint() const
+TQSize KPoti::sizeHint() const
{
return minimumSizeHint();
}
-QSize KPoti::minimumSizeHint() const
+TQSize KPoti::minimumSizeHint() const
{
int width = 40;
int height = 40;
if( m_bLabel )
{
- QFontMetrics metrics( font() );
+ TQFontMetrics metrics( font() );
d->labelRect = metrics.boundingRect( d->label );
d->labelRect.setHeight( metrics.lineSpacing() );
width = KMAX( width, d->labelRect.width() + frameRect().width() - contentsRect().width() );
height += metrics.lineSpacing();
}
//kdDebug() << k_funcinfo << "return " << width << "x" << height << endl;
- return QSize( width, height );
+ return TQSize( width, height );
}
-QString KPoti::text() const
+TQString KPoti::text() const
{
return d->label;
}
-void KPoti::setText( const QString & text )
+void KPoti::setText( const TQString & text )
{
d->label = text;
setMinimumSize( minimumSizeHint() );
@@ -169,10 +169,10 @@ void KPoti::setText( const QString & text )
/**
Constructs a poti.
- The \e parent and \e name arguments are sent to the QWidget constructor.
+ The \e parent and \e name arguments are sent to the TQWidget constructor.
*/
-KPoti::KPoti( QWidget *parent, const char *name )
- : QFrame( parent, name, WResizeNoErase | WRepaintNoErase )
+KPoti::KPoti( TQWidget *parent, const char *name )
+ : TQFrame( parent, name, WResizeNoErase | WRepaintNoErase )
, d( 0 )
{
init();
@@ -188,13 +188,13 @@ KPoti::KPoti( QWidget *parent, const char *name )
\arg \e step is the page step value.
\arg \e value is the initial value.
- The \e parent and \e name arguments are sent to the QWidget constructor.
+ The \e parent and \e name arguments are sent to the TQWidget constructor.
*/
KPoti::KPoti( int minValue, int maxValue, int step,
- int value, QWidget *parent, const char *name )
- : QFrame( parent, name, WResizeNoErase | WRepaintNoErase )
- , QRangeControl( minValue, maxValue, 1, step, value )
+ int value, TQWidget *parent, const char *name )
+ : TQFrame( parent, name, WResizeNoErase | WRepaintNoErase )
+ , TQRangeControl( minValue, maxValue, 1, step, value )
, d( 0 )
{
init(value);
@@ -233,7 +233,7 @@ void KPoti::init(int value)
void KPoti::initTicks()
{
- QRect available = contentsRect();
+ TQRect available = contentsRect();
if( m_bLabel )
available.rTop() += d->labelRect.height();
d->center = available.center();
@@ -336,7 +336,7 @@ int KPoti::valueFromPosition( float p ) const
}
/*!
- Implements the virtual QRangeControl function.
+ Implements the virtual TQRangeControl function.
*/
void KPoti::rangeChange()
@@ -347,7 +347,7 @@ void KPoti::rangeChange()
}
}
-void KPoti::paletteChange( const QPalette & )
+void KPoti::paletteChange( const TQPalette & )
{
d->bgDirty = true;
d->potiDirty = true;
@@ -372,7 +372,7 @@ void KPoti::valueChange()
Handles resize events for the poti.
*/
-void KPoti::resizeEvent( QResizeEvent * )
+void KPoti::resizeEvent( TQResizeEvent * )
{
rangeChange();
initTicks();
@@ -387,7 +387,7 @@ void KPoti::setLabel(bool s)
/**
Sets the color of the button
*/
-void KPoti::setColor( const QColor &c )
+void KPoti::setColor( const TQColor &c )
{
d->potiColor = c;
d->potiDirty = true;
@@ -395,7 +395,7 @@ void KPoti::setColor( const QColor &c )
}
-void KPoti::paintPoti( QPainter * p )
+void KPoti::paintPoti( TQPainter * p )
{
if( isVisible() )
{
@@ -403,11 +403,11 @@ void KPoti::paintPoti( QPainter * p )
if( db.isNull() )
return;
- QPainter p2( &db );
+ TQPainter p2( &db );
p2.translate( db.rect().center().x(), db.rect().center().y() );
p2.rotate( potiPos * 180.0 / PI );
- QRect pointer( db.width() / -20, db.width() / -2, db.width() / 10, db.width() / 2 );
- QBrush buttonbrush( colorGroup().button() );
+ TQRect pointer( db.width() / -20, db.width() / -2, db.width() / 10, db.width() / 2 );
+ TQBrush buttonbrush( colorGroup().button() );
qDrawShadePanel( &p2, pointer, colorGroup(), true, 1, &buttonbrush );
p2.end();
@@ -421,7 +421,7 @@ void KPoti::paintPoti( QPainter * p )
void KPoti::reallyMovePoti( float newPos )
{
- QPainter p;
+ TQPainter p;
p.begin( this );
p.setPen(NoPen);
potiPos = newPos;
@@ -436,15 +436,15 @@ void KPoti::reallyMovePoti( float newPos )
Handles paint events for the slider.
*/
-void KPoti::drawContents( QPainter * p )
+void KPoti::drawContents( TQPainter * p )
{
- QPixmap doublebuffer( contentsRect().size() );
+ TQPixmap doublebuffer( contentsRect().size() );
doublebuffer.fill( colorGroup().background() );
- QPainter dbp( &doublebuffer );
+ TQPainter dbp( &doublebuffer );
if( m_bLabel )
{
dbp.setFont( font() );
- QFontMetrics metrics = dbp.fontMetrics();
+ TQFontMetrics metrics = dbp.fontMetrics();
dbp.drawText( contentsRect().x() - metrics.leftBearing( d->label[ 0 ] ) + ( contentsRect().width() - d->labelRect.width() ) / 2, metrics.height(), d->label );
}
@@ -457,7 +457,7 @@ void KPoti::drawContents( QPainter * p )
dbp.drawPixmap( d->buttonRect, d->bgPixmap( colorGroup() ) );
if( hasFocus() )
- style().drawPrimitive( QStyle::PE_FocusRect, &dbp, d->buttonRect, colorGroup() );
+ style().drawPrimitive( TQStyle::PE_FocusRect, &dbp, d->buttonRect, colorGroup() );
paintPoti( &dbp );
dbp.end();
@@ -469,7 +469,7 @@ void KPoti::drawContents( QPainter * p )
Handles mouse press events for the slider.
*/
-void KPoti::mousePressEvent( QMouseEvent *e )
+void KPoti::mousePressEvent( TQMouseEvent *e )
{
resetState();
@@ -493,15 +493,15 @@ void KPoti::mousePressEvent( QMouseEvent *e )
state = TimingDown;
subtractPage();
if ( !timer )
- timer = new QTimer( this );
- connect( timer, SIGNAL(timeout()), SLOT(repeatTimeout()) );
+ timer = new TQTimer( this );
+ connect( timer, TQT_SIGNAL(timeout()), TQT_SLOT(repeatTimeout()) );
timer->start( thresholdTime, TRUE );
} else {
state = TimingUp;
addPage();
if ( !timer )
- timer = new QTimer( this );
- connect( timer, SIGNAL(timeout()), SLOT(repeatTimeout()) );
+ timer = new TQTimer( this );
+ connect( timer, TQT_SIGNAL(timeout()), TQT_SLOT(repeatTimeout()) );
timer->start( thresholdTime, TRUE );
}
}
@@ -509,7 +509,7 @@ void KPoti::mousePressEvent( QMouseEvent *e )
/*!
Handles mouse move events for the slider.
*/
-void KPoti::mouseMoveEvent( QMouseEvent *e )
+void KPoti::mouseMoveEvent( TQMouseEvent *e )
{
if ( (e->state() & MidButton) ) { // middle button wins
@@ -532,29 +532,29 @@ void KPoti::mouseMoveEvent( QMouseEvent *e )
Handles mouse release events for the slider.
*/
-void KPoti::mouseReleaseEvent( QMouseEvent *e )
+void KPoti::mouseReleaseEvent( TQMouseEvent *e )
{
if ( !(e->button() & LeftButton) )
return;
resetState();
}
-void KPoti::focusInEvent( QFocusEvent * e )
+void KPoti::focusInEvent( TQFocusEvent * e )
{
//setFrameStyle( Raised | Box );
//setLineWidth( 1 );
- QFrame::focusInEvent( e );
+ TQFrame::focusInEvent( e );
}
-void KPoti::focusOutEvent( QFocusEvent * e )
+void KPoti::focusOutEvent( TQFocusEvent * e )
{
//setFrameStyle( NoFrame );
//setLineWidth( 0 );
- QFrame::focusOutEvent( e );
+ TQFrame::focusOutEvent( e );
}
-void KPoti::enterEvent( QEvent * )
+void KPoti::enterEvent( TQEvent * )
{
emit mouseEntered( potiVal );
}
@@ -616,7 +616,7 @@ void KPoti::resetState()
Handles key press events for the slider.
*/
-void KPoti::keyPressEvent( QKeyEvent *e )
+void KPoti::keyPressEvent( TQKeyEvent *e )
{
switch ( e->key() ) {
@@ -656,12 +656,12 @@ void KPoti::keyPressEvent( QKeyEvent *e )
/*!
- Makes QRangeControl::setValue() available as a slot.
+ Makes TQRangeControl::setValue() available as a slot.
*/
void KPoti::setValue( int value )
{
- QRangeControl::setValue( value );
+ TQRangeControl::setValue( value );
}
@@ -694,9 +694,9 @@ void KPoti::repeatTimeout()
Q_ASSERT( timer );
timer->disconnect();
if ( state == TimingDown )
- connect( timer, SIGNAL(timeout()), SLOT(subtractStep()) );
+ connect( timer, TQT_SIGNAL(timeout()), TQT_SLOT(subtractStep()) );
else if ( state == TimingUp )
- connect( timer, SIGNAL(timeout()), SLOT(addStep()) );
+ connect( timer, TQT_SIGNAL(timeout()), TQT_SLOT(addStep()) );
timer->start( repeatTime, FALSE );
}
@@ -708,7 +708,7 @@ void KPoti::repeatTimeout()
of the widget, using \a w pixels and \a i intervals.
*/
-void KPoti::drawTicks( QPainter *p, double dist, double w, int i ) const
+void KPoti::drawTicks( TQPainter *p, double dist, double w, int i ) const
{
p->setPen( colorGroup().foreground() );
double angle,s,c;
@@ -725,7 +725,7 @@ void KPoti::drawTicks( QPainter *p, double dist, double w, int i ) const
}
}
-void KPoti::wheelEvent(QWheelEvent *e)
+void KPoti::wheelEvent(TQWheelEvent *e)
{
setValue(value()+e->delta()/120*8);
}
@@ -760,7 +760,7 @@ void KPoti::setTickmarks( bool s )
not a pixel interval. If \a i is 0, the slider
will choose between lineStep() and pageStep(). The initial value of
tickInterval() is 0.
- \sa tickInterval(), QRangeControl::lineStep(), QRangeControl::pageStep()
+ \sa tickInterval(), TQRangeControl::lineStep(), TQRangeControl::pageStep()
*/
void KPoti::setTickInterval( int i )
diff --git a/arts/gui/kde/kpoti.h b/arts/gui/kde/kpoti.h
index a87b516..278d635 100644
--- a/arts/gui/kde/kpoti.h
+++ b/arts/gui/kde/kpoti.h
@@ -20,29 +20,29 @@
#ifndef _KPOTI_H
#define _KPOTI_H
-#include <qframe.h>
-#include <qrangecontrol.h>
+#include <tqframe.h>
+#include <tqrangecontrol.h>
class QTimer;
struct QPotiData;
-class KPoti : public QFrame, public QRangeControl
+class KPoti : public TQFrame, public QRangeControl
{
Q_OBJECT
public:
- KPoti( QWidget *parent=0, const char *name=0 );
+ KPoti( TQWidget *parent=0, const char *name=0 );
KPoti( int minValue, int maxValue, int step, int value,
- QWidget *parent=0, const char *name=0 );
+ TQWidget *parent=0, const char *name=0 );
~KPoti();
void setTracking( bool enable );
bool tracking() const;
- void setColor( const QColor & );
+ void setColor( const TQColor & );
virtual void setTickmarks( bool );
virtual void setLabel( bool );
@@ -51,16 +51,16 @@ public:
virtual void setTickInterval( int );
int tickInterval() const { return tickInt; }
- virtual QSizePolicy sizePolicy() const;
- virtual QSize sizeHint() const;
- virtual QSize minimumSizeHint() const;
- QString text() const;
+ virtual TQSizePolicy sizePolicy() const;
+ virtual TQSize sizeHint() const;
+ virtual TQSize minimumSizeHint() const;
+ TQString text() const;
public slots:
void setValue( int );
void addStep();
void subtractStep();
- void setText( const QString & );
+ void setText( const TQString & );
signals:
void valueChanged( int value );
@@ -70,29 +70,29 @@ signals:
void mouseEntered(int value);
protected:
- void resizeEvent( QResizeEvent * );
- void drawContents( QPainter * );
+ void resizeEvent( TQResizeEvent * );
+ void drawContents( TQPainter * );
- void keyPressEvent( QKeyEvent * );
+ void keyPressEvent( TQKeyEvent * );
- void mousePressEvent( QMouseEvent * );
- void mouseReleaseEvent( QMouseEvent * );
- void mouseMoveEvent( QMouseEvent * );
- void enterEvent( QEvent *);
+ void mousePressEvent( TQMouseEvent * );
+ void mouseReleaseEvent( TQMouseEvent * );
+ void mouseMoveEvent( TQMouseEvent * );
+ void enterEvent( TQEvent *);
- void focusInEvent( QFocusEvent *e );
- void focusOutEvent( QFocusEvent *e );
+ void focusInEvent( TQFocusEvent *e );
+ void focusOutEvent( TQFocusEvent *e );
void valueChange();
void rangeChange();
- virtual void paletteChange( const QPalette & );
+ virtual void paletteChange( const TQPalette & );
- virtual void paintPoti( QPainter * );
- void drawButton( QPainter *);
- void drawTicks( QPainter *, double, double, int=1 ) const;
+ virtual void paintPoti( TQPainter * );
+ void drawButton( TQPainter *);
+ void drawTicks( TQPainter *, double, double, int=1 ) const;
- virtual void wheelEvent(QWheelEvent *e);
+ virtual void wheelEvent(TQWheelEvent *e);
private slots:
void repeatTimeout();
diff --git a/arts/gui/kde/kpoti_impl.cpp b/arts/gui/kde/kpoti_impl.cpp
index ba904f7..ffac2a2 100644
--- a/arts/gui/kde/kpoti_impl.cpp
+++ b/arts/gui/kde/kpoti_impl.cpp
@@ -32,10 +32,10 @@ using namespace Arts;
using namespace std;
PotiIntMapper::PotiIntMapper(KPoti_impl *impl, KPoti *kp)
- : QObject( kp )
+ : TQObject( kp )
, impl( impl )
{
- connect(kp, SIGNAL(valueChanged(int)), this, SLOT(valueChanged(int)));
+ connect(kp, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(valueChanged(int)));
}
void PotiIntMapper::valueChanged(int pos)
@@ -62,7 +62,7 @@ string KPoti_impl::caption()
void KPoti_impl::caption(const string& newText)
{
- _caption = QString::fromUtf8( newText.c_str() );
+ _caption = TQString::fromUtf8( newText.c_str() );
_kpoti->setText( _caption );
}
@@ -76,7 +76,7 @@ void KPoti_impl::color(const string& newColor)
_color = newColor;
if(strlen(_color.c_str()))
{
- QColor qc(_color.c_str());
+ TQColor qc(_color.c_str());
_kpoti->setColor(qc);
}
}
diff --git a/arts/gui/kde/kpoti_impl.h b/arts/gui/kde/kpoti_impl.h
index a87972c..0502cdc 100644
--- a/arts/gui/kde/kpoti_impl.h
+++ b/arts/gui/kde/kpoti_impl.h
@@ -26,15 +26,15 @@
#include "kframe_impl.h"
#include "kpoti.h"
-#include <qobject.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqstring.h>
namespace Arts {
class KPoti_impl;
-class PotiIntMapper :public QObject {
+class PotiIntMapper :public TQObject {
Q_OBJECT
KPoti_impl *impl;
public:
@@ -48,7 +48,7 @@ class KPoti_impl : virtual public Arts::Poti_skel,
{
protected:
KPoti * _kpoti;
- QString _caption;
+ TQString _caption;
std::string _color;
float _min, _max, _value;
float _factor;
diff --git a/arts/gui/kde/kspinbox_impl.cpp b/arts/gui/kde/kspinbox_impl.cpp
index cd8c90c..db40ae1 100644
--- a/arts/gui/kde/kspinbox_impl.cpp
+++ b/arts/gui/kde/kspinbox_impl.cpp
@@ -29,10 +29,10 @@
using namespace Arts;
using namespace std;
-SpinBoxIntMapper::SpinBoxIntMapper(KSpinBox_impl *impl, QSpinBox *sp)
+SpinBoxIntMapper::SpinBoxIntMapper(KSpinBox_impl *impl, TQSpinBox *sp)
:impl(impl)
{
- connect(sp, SIGNAL(valueChanged(int)), this, SLOT(valueChanged(int)));
+ connect(sp, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(valueChanged(int)));
}
void SpinBoxIntMapper::valueChanged(int pos)
@@ -40,11 +40,11 @@ void SpinBoxIntMapper::valueChanged(int pos)
impl->valueChanged(pos);
}
-KSpinBox_impl::KSpinBox_impl( QSpinBox * widget )
- : KWidget_impl( widget ? widget : new QSpinBox )
+KSpinBox_impl::KSpinBox_impl( TQSpinBox * widget )
+ : KWidget_impl( widget ? widget : new TQSpinBox )
{
_min = 0; _max = 100; _value = 0;
- _qspinbox = static_cast<QSpinBox*>( _qwidget );
+ _qspinbox = static_cast<TQSpinBox*>( _qwidget );
_qspinbox->setRange( 0, 100 );
( void )new SpinBoxIntMapper( this, _qspinbox );
}
@@ -56,7 +56,7 @@ string KSpinBox_impl::caption()
void KSpinBox_impl::caption(const string& newCaption)
{
- _caption = QString::fromUtf8(newCaption.c_str());
+ _caption = TQString::fromUtf8(newCaption.c_str());
// FIXME: do something with the caption here
}
diff --git a/arts/gui/kde/kspinbox_impl.h b/arts/gui/kde/kspinbox_impl.h
index ef662a1..d200c6f 100644
--- a/arts/gui/kde/kspinbox_impl.h
+++ b/arts/gui/kde/kspinbox_impl.h
@@ -25,19 +25,19 @@
#define ARTS_GUI_KSPINBOX_IMPL_H
#include "kwidget_impl.h"
-#include <qspinbox.h>
-#include <qobject.h>
-#include <qstring.h>
+#include <tqspinbox.h>
+#include <tqobject.h>
+#include <tqstring.h>
namespace Arts {
class KSpinBox_impl;
-class SpinBoxIntMapper :public QObject {
+class SpinBoxIntMapper :public TQObject {
Q_OBJECT
KSpinBox_impl *impl;
public:
- SpinBoxIntMapper(KSpinBox_impl *impl, QSpinBox *sp);
+ SpinBoxIntMapper(KSpinBox_impl *impl, TQSpinBox *sp);
public slots:
void valueChanged(int x);
};
@@ -46,14 +46,14 @@ class KSpinBox_impl : virtual public Arts::SpinBox_skel,
public Arts::KWidget_impl
{
protected:
- QSpinBox * _qspinbox;
- QString _caption;
+ TQSpinBox * _qspinbox;
+ TQString _caption;
long _min, _max, _value;
void applyValue();
public:
- KSpinBox_impl( QSpinBox * w = 0 );
+ KSpinBox_impl( TQSpinBox * w = 0 );
void constructor( Widget p ) { parent( p ); }
std::string caption();
diff --git a/arts/gui/kde/ktickmarks_impl.cpp b/arts/gui/kde/ktickmarks_impl.cpp
index 4db81ee..1a95c2a 100644
--- a/arts/gui/kde/ktickmarks_impl.cpp
+++ b/arts/gui/kde/ktickmarks_impl.cpp
@@ -21,13 +21,13 @@
#include "ktickmarks_impl.h"
#include <kdebug.h>
-#include <qpainter.h>
-#include <qfont.h>
-#include <qfontmetrics.h>
+#include <tqpainter.h>
+#include <tqfont.h>
+#include <tqfontmetrics.h>
-KTickmarks_impl::KTickmarks_impl( QFrame* w ) : Arts::KFrame_impl( w ? w : new KTickmarks_Widget( 0 ) )
+KTickmarks_impl::KTickmarks_impl( TQFrame* w ) : Arts::KFrame_impl( w ? w : new KTickmarks_Widget( 0 ) )
{
- //kdDebug()<<"KTickmarks_impl::KTickmarks_impl( QFrame* w="<<w<<" )"<<endl;
+ //kdDebug()<<"KTickmarks_impl::KTickmarks_impl( TQFrame* w="<<w<<" )"<<endl;
_tmwidget = static_cast<KTickmarks_Widget*>( _qwidget );
}
@@ -50,22 +50,22 @@ void KTickmarks_impl::constructor( float min, float max, Arts::Direction dir, lo
this->min( min ); this->max( max ); direction( dir ); position( pos );
}
-KTickmarks_Widget::KTickmarks_Widget( KTickmarks_impl* impl, QWidget* p, const char* n ) : QFrame( p,n ), dB2VolCalc( -24, 0 ), _impl( impl ), _pos( Arts::posLeft ), _dir( Arts::BottomToTop ), minstep( 1 ), substep( 0.5 ) {
+KTickmarks_Widget::KTickmarks_Widget( KTickmarks_impl* impl, TQWidget* p, const char* n ) : TQFrame( p,n ), dB2VolCalc( -24, 0 ), _impl( impl ), _pos( Arts::posLeft ), _dir( Arts::BottomToTop ), minstep( 1 ), substep( 0.5 ) {
setMinimumSize( 20,20 );
}
-void KTickmarks_Widget::drawContents( QPainter* p ) {
- //kdDebug()<<"KTickmarks::drawContents( QPainter* "<<p<<" )"<<endl;
+void KTickmarks_Widget::drawContents( TQPainter* p ) {
+ //kdDebug()<<"KTickmarks::drawContents( TQPainter* "<<p<<" )"<<endl;
bool left=false, right=false;
if ( _pos&Arts::posLeft ) left=true;
if ( _pos&Arts::posRight ) right=true;
// Setting the font
- QFont font;
+ TQFont font;
font.setPixelSize( 8 /*font.pixelSize()/2*/ ); // Maybe this could be adjusted...
p->setFont( font );
// Determining the size of the largest text (currently the text at the minimum-scale)
- QFontMetrics fontmetric( font );
- QRect fontrect = fontmetric.boundingRect( QString::number( dbmin ) );
+ TQFontMetrics fontmetric( font );
+ TQRect fontrect = fontmetric.boundingRect( TQString::number( dbmin ) );
// Calculating stepsizes
float _minstepcount = ( dbmax-dbmin )/minstep;
float _minstep = minstep; // this value gets changed
@@ -75,8 +75,8 @@ void KTickmarks_Widget::drawContents( QPainter* p ) {
int _minsize;
// Shorcuts
int w,h;
- QColor colornormal = colorGroup().foreground();
- QColor colordiff = colorGroup().buttonText();
+ TQColor colornormal = colorGroup().foreground();
+ TQColor colordiff = colorGroup().buttonText();
if ( _dir == Arts::BottomToTop || _dir == Arts::TopToBottom ) {
p->translate( contentsRect().left(), contentsRect().bottom() );
@@ -95,7 +95,7 @@ void KTickmarks_Widget::drawContents( QPainter* p ) {
w = contentsRect().width(); // Just a shortcut
h=0;
// Painting substep marks
- p->setPen( QPen( colordiff, 1 ) );
+ p->setPen( TQPen( colordiff, 1 ) );
for ( float i=dbmax; i>=dbmin; i-=_substep ) {
h = int( -contentsRect().height() * dbtondb( i ) );
if ( _dir==Arts::TopToBottom ) h = 1 - h;
@@ -103,7 +103,7 @@ void KTickmarks_Widget::drawContents( QPainter* p ) {
if ( right ) p->drawLine( w-3, h, w, h );
}
// Painting step marks and texts
- p->setPen( QPen( colornormal, 1 ) );
+ p->setPen( TQPen( colornormal, 1 ) );
for ( float i=0; i>=dbmin; i-=_minstep ) {
h = int( -contentsRect().height() * dbtondb( i ) );
if ( _dir==Arts::TopToBottom ) h = 1 - h;
@@ -111,7 +111,7 @@ void KTickmarks_Widget::drawContents( QPainter* p ) {
p->drawText( ( w - (left)*6 - (right)*6 - fontrect.width() )/2 + (left)*6
, h-fontrect.height()/2,
fontrect.width(), fontrect.height()+2,
- Qt::AlignRight|Qt::AlignTop, QString::number( i ) );
+ Qt::AlignRight|Qt::AlignTop, TQString::number( i ) );
if ( right ) p->drawLine( w-6, h, w, h );
}
for ( float i=_minstep; i<=dbmax; i+=_minstep ) {
@@ -121,7 +121,7 @@ void KTickmarks_Widget::drawContents( QPainter* p ) {
p->drawText( ( w - (left)*6 - (right)*6 - fontrect.width() )/2 + (left)*6
, h-fontrect.height()/2,
fontrect.width(), fontrect.height()+2,
- Qt::AlignRight|Qt::AlignTop, QString::number( i ) );
+ Qt::AlignRight|Qt::AlignTop, TQString::number( i ) );
if ( right ) p->drawLine( w-6, h, w, h );
}
} else {
@@ -141,7 +141,7 @@ void KTickmarks_Widget::drawContents( QPainter* p ) {
w = 0; // Just a shortcut
h = frameWidth() + contentsRect().height();
// Painting substep marks
- p->setPen( QPen( colordiff, 1 ) );
+ p->setPen( TQPen( colordiff, 1 ) );
for ( float i=dbmax; i>=dbmin; i-=_substep ) {
w = this->frameWidth()+ int( contentsRect().width() * dbtondb( i ) );
if ( _dir==Arts::RightToLeft ) w = 1 - w;
@@ -149,7 +149,7 @@ void KTickmarks_Widget::drawContents( QPainter* p ) {
if ( right ) p->drawLine( w, h-3, w, h );
}
// Painting step marks and texts
- p->setPen( QPen( colornormal, 1 ) );
+ p->setPen( TQPen( colornormal, 1 ) );
for ( float i=0; i>=dbmin; i-=_minstep ) {
w = int( contentsRect().width() * dbtondb( i ) );
if ( _dir==Arts::RightToLeft ) w = 1 - w;
@@ -157,7 +157,7 @@ void KTickmarks_Widget::drawContents( QPainter* p ) {
p->drawText( w - fontrect.width()/2
, ( h - (left)*6 - (right)*6 - fontrect.height() )/2 + (left)*6,
fontrect.width(), fontrect.height()+2,
- Qt::AlignRight|Qt::AlignTop, QString::number( i ) );
+ Qt::AlignRight|Qt::AlignTop, TQString::number( i ) );
if ( right ) p->drawLine( w, h-6, w, h );
}
for ( float i=_minstep; i<=dbmax; i+=_minstep ) {
@@ -167,7 +167,7 @@ void KTickmarks_Widget::drawContents( QPainter* p ) {
p->drawText( w - fontrect.width()/2
, ( h - (left)*6 - (right)*6 - fontrect.height() )/2 + (left)*6,
fontrect.width(), fontrect.height()+2,
- Qt::AlignRight|Qt::AlignTop, QString::number( i ) );
+ Qt::AlignRight|Qt::AlignTop, TQString::number( i ) );
if ( right ) p->drawLine( w, h-6, w, h );
}
}
diff --git a/arts/gui/kde/ktickmarks_impl.h b/arts/gui/kde/ktickmarks_impl.h
index b85e302..1d0006a 100644
--- a/arts/gui/kde/ktickmarks_impl.h
+++ b/arts/gui/kde/ktickmarks_impl.h
@@ -21,7 +21,7 @@
#ifndef ARTS_KLEVELMETER_TICKMARKS_H
#define ARTS_KLEVELMETER_TICKMARKS_H
-#include <qframe.h>
+#include <tqframe.h>
#include <math.h>
#include "artsgui.h"
@@ -36,7 +36,7 @@ class KTickmarks_impl : virtual public Arts::Tickmarks_skel,
virtual public Arts::KFrame_impl
{
public:
- KTickmarks_impl( QFrame* =0 );
+ KTickmarks_impl( TQFrame* =0 );
float min();
void min( float );
@@ -59,13 +59,13 @@ private:
KTickmarks_Widget* _tmwidget;
};
-class KTickmarks_Widget : public QFrame, public dB2VolCalc {
+class KTickmarks_Widget : public TQFrame, public dB2VolCalc {
Q_OBJECT
private:
KTickmarks_impl* _impl;
public:
- KTickmarks_Widget( KTickmarks_impl*, QWidget* =0, const char* =0 );
- void drawContents( QPainter* );
+ KTickmarks_Widget( KTickmarks_impl*, TQWidget* =0, const char* =0 );
+ void drawContents( TQPainter* );
long _pos;
Arts::Direction _dir;
diff --git a/arts/gui/kde/kvbox_impl.cpp b/arts/gui/kde/kvbox_impl.cpp
index 6d1b060..b1dc6dd 100644
--- a/arts/gui/kde/kvbox_impl.cpp
+++ b/arts/gui/kde/kvbox_impl.cpp
@@ -22,15 +22,15 @@
*/
#include "kvbox_impl.h"
-#include <qvbox.h>
+#include <tqvbox.h>
using namespace Arts;
-KVBox_impl::KVBox_impl( QVBox * widget )
- : KFrame_impl( widget ? widget : new QVBox )
+KVBox_impl::KVBox_impl( TQVBox * widget )
+ : KFrame_impl( widget ? widget : new TQVBox )
, _spacing( 5 )
{
- _qvbox = static_cast<QVBox*>( _qwidget );
+ _qvbox = static_cast<TQVBox*>( _qwidget );
_qvbox->setSpacing( _spacing );
_qvbox->setMargin( 5 );
}
diff --git a/arts/gui/kde/kvbox_impl.h b/arts/gui/kde/kvbox_impl.h
index e948041..8f9c5b4 100644
--- a/arts/gui/kde/kvbox_impl.h
+++ b/arts/gui/kde/kvbox_impl.h
@@ -34,10 +34,10 @@ private:
long _spacing;
protected:
- QVBox * _qvbox;
+ TQVBox * _qvbox;
public:
- KVBox_impl( QVBox * w = 0 );
+ KVBox_impl( TQVBox * w = 0 );
long spacing();
void spacing( long );
diff --git a/arts/gui/kde/kvolumefader_impl.cpp b/arts/gui/kde/kvolumefader_impl.cpp
index 1b5cf7f..1c32f23 100644
--- a/arts/gui/kde/kvolumefader_impl.cpp
+++ b/arts/gui/kde/kvolumefader_impl.cpp
@@ -21,17 +21,17 @@
#include "kvolumefader_impl.h"
#include <kdebug.h>
-#include <qpainter.h>
-#include <qstyle.h>
-#include <qfont.h>
-#include <qfontmetrics.h>
+#include <tqpainter.h>
+#include <tqstyle.h>
+#include <tqfont.h>
+#include <tqfontmetrics.h>
#include <kglobalsettings.h>
#include <klocale.h>
#include <kpopupmenu.h>
#include <kaction.h>
#include <kinputdialog.h>
-KVolumeFader_impl::KVolumeFader_impl( QFrame* w )
+KVolumeFader_impl::KVolumeFader_impl( TQFrame* w )
: Arts::KFrame_impl( w ? w : new KVolumeFader_Widget( 0 ) )
, dB2VolCalc( -36, 6 )
, _dir( Arts::BottomToTop )
@@ -40,7 +40,7 @@ KVolumeFader_impl::KVolumeFader_impl( QFrame* w )
, direction_inupdate( false )
, ignoreUpdates( 0 )
{
- //kdDebug()<<"KVolumeFader_impl::KVolumeFader_impl( QFrame* w="<<w<<" )"<<endl;
+ //kdDebug()<<"KVolumeFader_impl::KVolumeFader_impl( TQFrame* w="<<w<<" )"<<endl;
_vfwidget = static_cast<KVolumeFader_Widget*>( _qwidget );
_vfwidget->setImpl( this );
}
@@ -114,14 +114,14 @@ void KVolumeFader_impl::constructor( float dbmin, float dbmax, Arts::Direction d
-KVolumeFader_Widget::KVolumeFader_Widget( QWidget* p, const char* n )
- : QFrame( p,n )
+KVolumeFader_Widget::KVolumeFader_Widget( TQWidget* p, const char* n )
+ : TQFrame( p,n )
, _impl( 0 )
, _inupdate( false )
, _value( -1 )
, _dir( Arts::BottomToTop )
, _menu( new KPopupMenu( this ) )
- , _aExactValue( new KAction( i18n( "Set Exact Value..." ), KShortcut(), this, SLOT( exactValue() ), this ) )
+ , _aExactValue( new KAction( i18n( "Set Exact Value..." ), KShortcut(), this, TQT_SLOT( exactValue() ), this ) )
{
//kdDebug() << k_funcinfo << endl;
setMinimumSize( 10,10 );
@@ -144,16 +144,16 @@ void KVolumeFader_Widget::setValue( float n ) {
}
}
-QColor KVolumeFader_Widget::interpolate( QColor low, QColor high, float percent ) {
+TQColor KVolumeFader_Widget::interpolate( TQColor low, TQColor high, float percent ) {
if ( percent<=0 ) return low; else
if ( percent>=1 ) return high; else
- return QColor(
+ return TQColor(
int( low.red() + ( high.red()-low.red() ) * percent ),
int( low.green() + ( high.green()-low.green() ) * percent ),
int( low.blue() + ( high.blue()-low.blue() ) * percent ) );
}
-void KVolumeFader_Widget::drawContents( QPainter* p ){
+void KVolumeFader_Widget::drawContents( TQPainter* p ){
if ( _dir==Arts::BottomToTop || _dir==Arts::BottomToTop ) {
float h;
if ( _dir==Arts::BottomToTop ) h = contentsRect().height() * ( 1 - _value );
@@ -178,11 +178,11 @@ void KVolumeFader_Widget::drawContents( QPainter* p ){
}
}
-void KVolumeFader_Widget::mousePressEvent( QMouseEvent* ){
+void KVolumeFader_Widget::mousePressEvent( TQMouseEvent* ){
//kdDebug() << k_funcinfo << endl;
}
-void KVolumeFader_Widget::mouseReleaseEvent( QMouseEvent* qme ){
+void KVolumeFader_Widget::mouseReleaseEvent( TQMouseEvent* qme ){
bool setValue = false;
if ( KGlobalSettings::mouseSettings().handed == 0 && qme->button() == Qt::LeftButton ) setValue=true;
if ( KGlobalSettings::mouseSettings().handed == 1 && qme->button() == Qt::RightButton ) setValue=true;
@@ -206,7 +206,7 @@ void KVolumeFader_Widget::mouseReleaseEvent( QMouseEvent* qme ){
} else _menu->exec( qme->globalPos() );
}
-void KVolumeFader_Widget::mouseMoveEvent( QMouseEvent* qme ){
+void KVolumeFader_Widget::mouseMoveEvent( TQMouseEvent* qme ){
switch ( _dir ) {
default:
case Arts::BottomToTop:
@@ -224,7 +224,7 @@ void KVolumeFader_Widget::mouseMoveEvent( QMouseEvent* qme ){
}
}
-void KVolumeFader_Widget::wheelEvent( QWheelEvent* qwe ){
+void KVolumeFader_Widget::wheelEvent( TQWheelEvent* qwe ){
//kdDebug() << k_funcinfo << endl;
if ( qwe->delta() < 0 ) { if ( _impl ) _impl->normalizedvolume( _impl->dbtondb( _impl->dbvolume() - 1 ) ); }
if ( qwe->delta() > 0 ) { if ( _impl ) _impl->normalizedvolume( _impl->dbtondb( _impl->dbvolume() + 1 ) ); }
diff --git a/arts/gui/kde/kvolumefader_impl.h b/arts/gui/kde/kvolumefader_impl.h
index 603ac28..c2db6a0 100644
--- a/arts/gui/kde/kvolumefader_impl.h
+++ b/arts/gui/kde/kvolumefader_impl.h
@@ -21,7 +21,7 @@
#ifndef ARTS_KVOLUMEFADER_TICKMARKS_H
#define ARTS_KVOLUMEFADER_TICKMARKS_H
-#include <qframe.h>
+#include <tqframe.h>
#include <math.h>
#include "artsgui.h"
@@ -37,7 +37,7 @@ class KVolumeFader_impl : virtual public Arts::VolumeFader_skel,
public dB2VolCalc
{
public:
- KVolumeFader_impl( QFrame* =0 );
+ KVolumeFader_impl( TQFrame* =0 );
~KVolumeFader_impl();
float dbmin();
@@ -67,7 +67,7 @@ private:
class KPopupMenu;
class KAction;
-class KVolumeFader_Widget : public QFrame {
+class KVolumeFader_Widget : public TQFrame {
Q_OBJECT
private:
KVolumeFader_impl* _impl;
@@ -76,19 +76,19 @@ private:
Arts::Direction _dir;
KPopupMenu *_menu;
KAction *_aExactValue;
- QColor interpolate( QColor, QColor, float );
+ TQColor interpolate( TQColor, TQColor, float );
public:
- KVolumeFader_Widget( QWidget* =0, const char* =0 );
+ KVolumeFader_Widget( TQWidget* =0, const char* =0 );
~KVolumeFader_Widget();
void setImpl( KVolumeFader_impl* );
void setValue( float );
void setDirection( Arts::Direction );
protected:
- void drawContents( QPainter* );
- void mousePressEvent( QMouseEvent* );
- void mouseReleaseEvent( QMouseEvent* );
- void mouseMoveEvent( QMouseEvent* );
- void wheelEvent( QWheelEvent* );
+ void drawContents( TQPainter* );
+ void mousePressEvent( TQMouseEvent* );
+ void mouseReleaseEvent( TQMouseEvent* );
+ void mouseMoveEvent( TQMouseEvent* );
+ void wheelEvent( TQWheelEvent* );
private slots:
void exactValue();
};
diff --git a/arts/gui/kde/kwidget_impl.cpp b/arts/gui/kde/kwidget_impl.cpp
index f5c4705..ede8ad3 100644
--- a/arts/gui/kde/kwidget_impl.cpp
+++ b/arts/gui/kde/kwidget_impl.cpp
@@ -28,8 +28,8 @@
using namespace Arts;
-KWidget_impl::KWidget_impl( QWidget * widget )
- : _qwidget( widget ? widget : new QWidget )
+KWidget_impl::KWidget_impl( TQWidget * widget )
+ : _qwidget( widget ? widget : new TQWidget )
{
_widgetID = KWidgetRepo::the()->add( this, _qwidget );
@@ -39,8 +39,8 @@ KWidget_impl::KWidget_impl( QWidget * widget )
* the panel got deleted, our widget will be gone, too)
*/
_guard = new KWidgetGuard(this);
- QObject::connect(_qwidget, SIGNAL(destroyed()),
- _guard, SLOT(widgetDestroyed()));
+ TQObject::connect(_qwidget, TQT_SIGNAL(destroyed()),
+ _guard, TQT_SLOT(widgetDestroyed()));
}
KWidget_impl::~KWidget_impl()
@@ -76,11 +76,11 @@ void KWidget_impl::parent(Arts::Widget newParent)
{
_parentID = newParent.widgetID();
- QWidget *qparent;
+ TQWidget *qparent;
qparent = KWidgetRepo::the()->lookupQWidget(newParent.widgetID());
if( qparent != 0 )
{
- QPoint pos(x(),y());
+ TQPoint pos(x(),y());
bool showIt = visible();
_qwidget->reparent(qparent, pos, showIt);
}
@@ -148,8 +148,8 @@ SizePolicy KWidget_impl::hSizePolicy()
void KWidget_impl::hSizePolicy( SizePolicy p )
{
- QSizePolicy sp = _qwidget->sizePolicy();
- sp.setHorData( ( QSizePolicy::SizeType )p );
+ TQSizePolicy sp = _qwidget->sizePolicy();
+ sp.setHorData( ( TQSizePolicy::SizeType )p );
_qwidget->setSizePolicy( sp );
}
@@ -160,8 +160,8 @@ SizePolicy KWidget_impl::vSizePolicy()
void KWidget_impl::vSizePolicy( SizePolicy p )
{
- QSizePolicy sp = _qwidget->sizePolicy();
- sp.setVerData( ( QSizePolicy::SizeType )p );
+ TQSizePolicy sp = _qwidget->sizePolicy();
+ sp.setVerData( ( TQSizePolicy::SizeType )p );
_qwidget->setSizePolicy( sp );
}
diff --git a/arts/gui/kde/kwidget_impl.h b/arts/gui/kde/kwidget_impl.h
index 46f2909..292f8cc 100644
--- a/arts/gui/kde/kwidget_impl.h
+++ b/arts/gui/kde/kwidget_impl.h
@@ -24,7 +24,7 @@
#ifndef ARTS_GUI_KWIDGET_IMPL_H
#define ARTS_GUI_KWIDGET_IMPL_H
#include "artsgui.h"
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kwidgetrepo.h>
#include <kdelibs_export.h>
@@ -33,12 +33,12 @@ namespace Arts {
class KWidgetGuard;
class KDE_EXPORT KWidget_impl : virtual public Arts::Widget_skel {
protected:
- QWidget * _qwidget;
+ TQWidget * _qwidget;
KWidgetGuard * _guard;
long _parentID;
long _widgetID;
public:
- KWidget_impl( QWidget * w = 0 );
+ KWidget_impl( TQWidget * w = 0 );
~KWidget_impl();
@@ -68,7 +68,7 @@ public:
void widgetDestroyed();
};
-class KWidgetGuard : public QObject {
+class KWidgetGuard : public TQObject {
Q_OBJECT
protected:
KWidget_impl *impl;
diff --git a/arts/gui/kde/kwidgetrepo.cpp b/arts/gui/kde/kwidgetrepo.cpp
index e0d93bd..120f9cc 100644
--- a/arts/gui/kde/kwidgetrepo.cpp
+++ b/arts/gui/kde/kwidgetrepo.cpp
@@ -63,7 +63,7 @@ KWidgetRepo::~KWidgetRepo()
}
-long KWidgetRepo::add(KWidget_impl *widget, QWidget *qwidget)
+long KWidgetRepo::add(KWidget_impl *widget, TQWidget *qwidget)
{
long ID = nextID++;
widgets[ID] = widget;
@@ -71,7 +71,7 @@ long KWidgetRepo::add(KWidget_impl *widget, QWidget *qwidget)
return ID;
}
-QWidget *KWidgetRepo::lookupQWidget(long ID)
+TQWidget *KWidgetRepo::lookupQWidget(long ID)
{
return qwidgets[ID];
}
diff --git a/arts/gui/kde/kwidgetrepo.h b/arts/gui/kde/kwidgetrepo.h
index adab809..1bcb587 100644
--- a/arts/gui/kde/kwidgetrepo.h
+++ b/arts/gui/kde/kwidgetrepo.h
@@ -24,7 +24,7 @@
#define KWIDGETREPO_H
#include <map>
-#include <qwidget.h>
+#include <tqwidget.h>
#include <weakreference.h>
#include "artsgui.h"
@@ -35,7 +35,7 @@ namespace Arts {
class KWidgetRepo {
protected:
long nextID;
- std::map<long, QWidget *> qwidgets;
+ std::map<long, TQWidget *> qwidgets;
std::map<long, Arts::KWidget_impl *> widgets;
static KWidgetRepo *instance;
@@ -44,9 +44,9 @@ protected:
public:
- long add(Arts::KWidget_impl *widget, QWidget *qwidget);
+ long add(Arts::KWidget_impl *widget, TQWidget *qwidget);
Arts::Widget lookupWidget(long ID);
- QWidget *lookupQWidget(long ID);
+ TQWidget *lookupQWidget(long ID);
void remove(long ID);
static KWidgetRepo *the();
diff --git a/arts/modules/common/env_mixeritem_impl.cc b/arts/modules/common/env_mixeritem_impl.cc
index 632d818..0f4db5e 100644
--- a/arts/modules/common/env_mixeritem_impl.cc
+++ b/arts/modules/common/env_mixeritem_impl.cc
@@ -49,7 +49,7 @@ public:
if(newName != _name)
{
_name = newName;
- amClient.title(i18n("Mixer (\"%1\")").arg(QString::fromUtf8(_name.c_str())).utf8().data());
+ amClient.title(i18n("Mixer (\"%1\")").arg(TQString::fromUtf8(_name.c_str())).utf8().data());
amClient.autoRestoreID("mixer_"+_name);
for(unsigned int i = 0; i < _inputs.size(); i++)
_inputs[i].busname(channelName(i));
diff --git a/arts/modules/effects/kstereovolumecontrolgui_impl.cpp b/arts/modules/effects/kstereovolumecontrolgui_impl.cpp
index 3dca494..b4db259 100644
--- a/arts/modules/effects/kstereovolumecontrolgui_impl.cpp
+++ b/arts/modules/effects/kstereovolumecontrolgui_impl.cpp
@@ -21,15 +21,15 @@
#include "kstereovolumecontrolgui_impl.h"
-#include <qframe.h>
+#include <tqframe.h>
#include <kdebug.h>
#include <iostream>
using namespace Arts;
-KStereoVolumeControlGui_impl::KStereoVolumeControlGui_impl( QFrame* w ) : KLayoutBox_impl( w ? w : new QFrame( 0 ) )
+KStereoVolumeControlGui_impl::KStereoVolumeControlGui_impl( TQFrame* w ) : KLayoutBox_impl( w ? w : new TQFrame( 0 ) )
{
- //kdDebug()<<"KStereoVolumeControlGui_impl::KStereoVolumeControlGui_impl( QFrame* "<<w<<" )"<<endl;
+ //kdDebug()<<"KStereoVolumeControlGui_impl::KStereoVolumeControlGui_impl( TQFrame* "<<w<<" )"<<endl;
_mapper = new KStereoVolumeControlGui_EventMapper( this, _qframe );
this->addWidget( _label, -100 );
_label.bottom( Arts::East );
diff --git a/arts/modules/effects/kstereovolumecontrolgui_impl.h b/arts/modules/effects/kstereovolumecontrolgui_impl.h
index 1681b07..8729232 100644
--- a/arts/modules/effects/kstereovolumecontrolgui_impl.h
+++ b/arts/modules/effects/kstereovolumecontrolgui_impl.h
@@ -46,7 +46,7 @@ protected:
float _dbmin, _dbmax;
Arts::Direction _dir;
public:
- KStereoVolumeControlGui_impl( QFrame* =0 );
+ KStereoVolumeControlGui_impl( TQFrame* =0 );
void constructor( Arts::StereoVolumeControl );
@@ -76,18 +76,18 @@ private:
} // namespace Arts
-#include <qobject.h>
-#include <qtimer.h>
+#include <tqobject.h>
+#include <tqtimer.h>
-class KStereoVolumeControlGui_EventMapper : public QObject {
+class KStereoVolumeControlGui_EventMapper : public TQObject {
Q_OBJECT
public:
- QTimer* _timer;
+ TQTimer* _timer;
Arts::KStereoVolumeControlGui_impl* _impl;
public:
- KStereoVolumeControlGui_EventMapper( Arts::KStereoVolumeControlGui_impl* impl, QObject* parent, const char* name=0 ) : QObject( parent,name ), _impl( impl ) {
- _timer = new QTimer( this );
- connect( _timer, SIGNAL( timeout() ), this, SLOT( slotTimerSignal() ) );
+ KStereoVolumeControlGui_EventMapper( Arts::KStereoVolumeControlGui_impl* impl, TQObject* parent, const char* name=0 ) : TQObject( parent,name ), _impl( impl ) {
+ _timer = new TQTimer( this );
+ connect( _timer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotTimerSignal() ) );
}
public slots:
void slotTimerSignal() { _impl->updateValues(); }
diff --git a/arts/modules/synth/c_filter_stuff.h b/arts/modules/synth/c_filter_stuff.h
index 1729cf0..edd7a4a 100644
--- a/arts/modules/synth/c_filter_stuff.h
+++ b/arts/modules/synth/c_filter_stuff.h
@@ -150,12 +150,12 @@ typedef struct {
int buflen;
} ty_afmethod;
-#define C_FLOWOUTMETHOD 0
-#define C_RBMETHOD 1
-#define C_SWAPROMETHOD 2
-#define C_SWAPRWMETHOD 3
-#define C_AIMROMETHOD 4
-#define C_AIMRWMETHOD 5
+#define C_FLOWOUQT_METHOD 0
+#define C_RBQT_METHOD 1
+#define C_SWAPROQT_METHOD 2
+#define C_SWAPRWQT_METHOD 3
+#define C_AIMROQT_METHOD 4
+#define C_AIMRWQT_METHOD 5
typedef struct {
char *filename;
diff --git a/arts/tools/artsactions.cpp b/arts/tools/artsactions.cpp
index 213c81b..c483beb 100644
--- a/arts/tools/artsactions.cpp
+++ b/arts/tools/artsactions.cpp
@@ -36,8 +36,8 @@
#include "environmentview.h"
#include "mediatypesview.h"
-ArtsActions::ArtsActions( KArtsServer* server, KActionCollection* col, QWidget* parent, const char* name )
- : QObject( parent,name )
+ArtsActions::ArtsActions( KArtsServer* server, KActionCollection* col, TQWidget* parent, const char* name )
+ : TQObject( parent,name )
, _kartsserver( server )
, _actioncollection( col )
, _a_sv( 0 ), _a_am( 0 ), _a_asv( 0 ), _a_mmv( 0 ), _a_ev( 0 ), _a_mtv( 0 )
@@ -62,52 +62,52 @@ ArtsActions::~ArtsActions() {
}
KAction* ArtsActions::actionScopeView() {
- if ( !_a_sv ) _a_sv = new KAction( i18n( "&FFT Scope" ), "artsfftscope", KShortcut(), this, SLOT( viewScopeView() ), _actioncollection, "artssupport_view_scopeview" );
+ if ( !_a_sv ) _a_sv = new KAction( i18n( "&FFT Scope" ), "artsfftscope", KShortcut(), this, TQT_SLOT( viewScopeView() ), _actioncollection, "artssupport_view_scopeview" );
return _a_sv;
}
KAction* ArtsActions::actionAudioManager() {
- if ( !_a_am ) _a_am = new KAction( i18n( "&Audio Manager" ), "artsaudiomanager", KShortcut(), this, SLOT( viewAudioManager() ), _actioncollection, "artssupport_view_audiomanager" );
+ if ( !_a_am ) _a_am = new KAction( i18n( "&Audio Manager" ), "artsaudiomanager", KShortcut(), this, TQT_SLOT( viewAudioManager() ), _actioncollection, "artssupport_view_audiomanager" );
return _a_am;
}
KAction* ArtsActions::actionArtsStatusView() {
- if ( !_a_asv ) _a_asv = new KAction( i18n( "aRts &Status" ), "artscontrol", KShortcut(), this, SLOT( viewArtsStatusView() ), _actioncollection, "artssupport_view_artsstatus" );
+ if ( !_a_asv ) _a_asv = new KAction( i18n( "aRts &Status" ), "artscontrol", KShortcut(), this, TQT_SLOT( viewArtsStatusView() ), _actioncollection, "artssupport_view_artsstatus" );
return _a_asv;
}
KAction* ArtsActions::actionMidiManagerView() {
- if ( !_a_mmv ) _a_mmv = new KAction( i18n( "&MIDI Manager" ), "artsmidimanager", KShortcut(), this, SLOT( viewMidiManagerView() ), _actioncollection, "artssupport_view_midimanager" );
+ if ( !_a_mmv ) _a_mmv = new KAction( i18n( "&MIDI Manager" ), "artsmidimanager", KShortcut(), this, TQT_SLOT( viewMidiManagerView() ), _actioncollection, "artssupport_view_midimanager" );
return _a_mmv;
}
KAction* ArtsActions::actionEnvironmentView() {
- if ( !_a_ev ) _a_ev = new KAction( i18n( "&Environment" ), "artsenvironment", KShortcut(), this, SLOT( viewEnvironmentView() ), _actioncollection, "artssupport_view_environment" );
+ if ( !_a_ev ) _a_ev = new KAction( i18n( "&Environment" ), "artsenvironment", KShortcut(), this, TQT_SLOT( viewEnvironmentView() ), _actioncollection, "artssupport_view_environment" );
return _a_ev;
}
KAction* ArtsActions::actionMediaTypesView() {
- if ( !_a_mtv ) _a_mtv = new KAction( i18n( "Available Media &Types" ), "artsmediatypes", KShortcut(), this, SLOT( viewMediaTypesView() ), _actioncollection, "artssupport_view_mediatypes" );
+ if ( !_a_mtv ) _a_mtv = new KAction( i18n( "Available Media &Types" ), "artsmediatypes", KShortcut(), this, TQT_SLOT( viewMediaTypesView() ), _actioncollection, "artssupport_view_mediatypes" );
return _a_mtv;
}
KAction* ArtsActions::actionStyleNormal() {
- if ( !_a_style_normal ) _a_style_normal = new KAction( i18n( "Style: NormalBars" ), "", KShortcut(), this, SLOT( _p_style_normal() ), _actioncollection, "artssupport_style_normal" );
+ if ( !_a_style_normal ) _a_style_normal = new KAction( i18n( "Style: NormalBars" ), "", KShortcut(), this, TQT_SLOT( _p_style_normal() ), _actioncollection, "artssupport_style_normal" );
return _a_style_normal;
}
KAction* ArtsActions::actionStyleFire() {
- if ( !_a_style_fire ) _a_style_fire = new KAction( i18n( "Style: FireBars" ), "", KShortcut(), this, SLOT( _p_style_fire() ), _actioncollection, "artssupport_style_fire" );
+ if ( !_a_style_fire ) _a_style_fire = new KAction( i18n( "Style: FireBars" ), "", KShortcut(), this, TQT_SLOT( _p_style_fire() ), _actioncollection, "artssupport_style_fire" );
return _a_style_fire;
}
KAction* ArtsActions::actionStyleLine() {
- if ( !_a_style_line ) _a_style_line = new KAction( i18n( "Style: LineBars" ), "", KShortcut(), this, SLOT( _p_style_line() ), _actioncollection, "artssupport_style_line" );
+ if ( !_a_style_line ) _a_style_line = new KAction( i18n( "Style: LineBars" ), "", KShortcut(), this, TQT_SLOT( _p_style_line() ), _actioncollection, "artssupport_style_line" );
return _a_style_line;
}
KAction* ArtsActions::actionStyleLED() {
- if ( !_a_style_led ) _a_style_led = new KAction( i18n( "Style: LEDs" ), "", KShortcut(), this, SLOT( _p_style_led() ), _actioncollection, "artssupport_style_led" );
+ if ( !_a_style_led ) _a_style_led = new KAction( i18n( "Style: LEDs" ), "", KShortcut(), this, TQT_SLOT( _p_style_led() ), _actioncollection, "artssupport_style_led" );
return _a_style_led;
}
KAction* ArtsActions::actionStyleAnalog() {
- if ( !_a_style_analog ) _a_style_analog = new KAction( i18n( "Style: Analog" ), "", KShortcut(), this, SLOT( _p_style_analog() ), _actioncollection, "artssupport_style_analog" );
+ if ( !_a_style_analog ) _a_style_analog = new KAction( i18n( "Style: Analog" ), "", KShortcut(), this, TQT_SLOT( _p_style_analog() ), _actioncollection, "artssupport_style_analog" );
return _a_style_analog;
}
KAction* ArtsActions::actionStyleSmall() {
- if ( !_a_style_small ) _a_style_small = new KAction( i18n( "Style: Small" ), "", KShortcut(), this, SLOT( _p_style_small() ), _actioncollection, "artssupport_style_small" );
+ if ( !_a_style_small ) _a_style_small = new KAction( i18n( "Style: Small" ), "", KShortcut(), this, TQT_SLOT( _p_style_small() ), _actioncollection, "artssupport_style_small" );
return _a_style_small;
}
KPopupMenu* ArtsActions::stylemenu() {
@@ -124,11 +124,11 @@ KPopupMenu* ArtsActions::stylemenu() {
return _stylemenu;
}
-KAction* ArtsActions::actionMoreBars( const QObject* receiver, const char* slot, KActionCollection *actioncollection ) {
+KAction* ArtsActions::actionMoreBars( const TQObject* receiver, const char* slot, KActionCollection *actioncollection ) {
static KAction *_a_morebars = new KAction( i18n( "More Bars in VU-Meters" ), "up", KShortcut(), receiver, slot, actioncollection, "artssupport_morebars" );
return _a_morebars;
}
-KAction* ArtsActions::actionLessBars( const QObject* receiver, const char* slot, KActionCollection *actioncollection ) {
+KAction* ArtsActions::actionLessBars( const TQObject* receiver, const char* slot, KActionCollection *actioncollection ) {
static KAction *_a_lessbars = new KAction( i18n( "Less Bars in VU-Meters" ), "down", KShortcut(), receiver, slot, actioncollection, "artssupport_lessbars" );
return _a_lessbars;
}
@@ -136,7 +136,7 @@ KAction* ArtsActions::actionLessBars( const QObject* receiver, const char* slot,
void ArtsActions::viewScopeView() {
if ( !_sv ) {
_sv = new FFTScopeView( _kartsserver->server() );
- connect( _sv, SIGNAL( closed() ), this, SLOT( viewScopeView() ) );
+ connect( _sv, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewScopeView() ) );
} else {
delete _sv;
_sv = 0;
@@ -145,7 +145,7 @@ void ArtsActions::viewScopeView() {
void ArtsActions::viewAudioManager() {
if ( !_am ) {
_am = new Gui_AUDIO_MANAGER();
- connect( _am, SIGNAL( closed() ), this, SLOT( viewAudioManager() ) );
+ connect( _am, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewAudioManager() ) );
} else {
delete _am;
_am = 0;
@@ -154,7 +154,7 @@ void ArtsActions::viewAudioManager() {
void ArtsActions::viewArtsStatusView() {
if ( !_asv ) {
_asv = new ArtsStatusView( _kartsserver->server() );
- connect( _asv, SIGNAL( closed() ), this, SLOT( viewArtsStatusView() ) );
+ connect( _asv, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewArtsStatusView() ) );
} else {
delete _asv;
_asv = 0;
@@ -163,7 +163,7 @@ void ArtsActions::viewArtsStatusView() {
void ArtsActions::viewMidiManagerView() {
if ( !_mmv ) {
_mmv = new MidiManagerView();
- connect( _mmv, SIGNAL( closed() ), this, SLOT( viewMidiManagerView() ) );
+ connect( _mmv, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewMidiManagerView() ) );
} else {
delete _mmv;
_mmv = 0;
@@ -172,7 +172,7 @@ void ArtsActions::viewMidiManagerView() {
void ArtsActions::viewEnvironmentView() {
if ( !_ev ) {
_ev = new EnvironmentView( defaultEnvironment() );
- connect( _ev, SIGNAL( closed() ), this, SLOT( viewEnvironmentView() ) );
+ connect( _ev, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewEnvironmentView() ) );
} else {
delete _ev;
_ev = 0;
@@ -181,7 +181,7 @@ void ArtsActions::viewEnvironmentView() {
void ArtsActions::viewMediaTypesView() {
if ( !_mtv ) {
_mtv = new MediaTypesView();
- connect( _mtv, SIGNAL( closed() ), this, SLOT( viewMediaTypesView() ) );
+ connect( _mtv, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewMediaTypesView() ) );
} else {
delete _mtv;
_mtv = 0;
diff --git a/arts/tools/artsactions.h b/arts/tools/artsactions.h
index 15a19f6..441d737 100644
--- a/arts/tools/artsactions.h
+++ b/arts/tools/artsactions.h
@@ -21,7 +21,7 @@
#ifndef ARTS_ACTIONS_H
#define ARTS_ACTIONS_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kdelibs_export.h>
class KArtsServer;
class KAction;
@@ -50,7 +50,7 @@ public:
@param qwidget the parent QWidget
@param name the name of the object
*/
- ArtsActions( KArtsServer* artsserver, KActionCollection* actioncollection, QWidget* qwidget, const char* name=0 );
+ ArtsActions( KArtsServer* artsserver, KActionCollection* actioncollection, TQWidget* qwidget, const char* name=0 );
/** Destructor */
~ArtsActions();
@@ -75,8 +75,8 @@ public:
KAction* actionStyleSmall();
KPopupMenu* stylemenu();
- static KAction* actionMoreBars( const QObject*, const char*, KActionCollection* );
- static KAction* actionLessBars( const QObject*, const char*, KActionCollection* );
+ static KAction* actionMoreBars( const TQObject*, const char*, KActionCollection* );
+ static KAction* actionLessBars( const TQObject*, const char*, KActionCollection* );
public slots:
void viewScopeView();
diff --git a/arts/tools/artscontrolapplet.cpp b/arts/tools/artscontrolapplet.cpp
index a178c2d..e4a7e16 100644
--- a/arts/tools/artscontrolapplet.cpp
+++ b/arts/tools/artscontrolapplet.cpp
@@ -21,15 +21,15 @@
#include <kapplication.h>
#include <kmessagebox.h>
#include <kdebug.h>
-#include <qcursor.h>
-#include <qtimer.h>
+#include <tqcursor.h>
+#include <tqtimer.h>
#include "artscontrolapplet.h"
#include "artscontrolapplet_private.h"
extern "C"
{
- KDE_EXPORT KPanelApplet* init( QWidget *parent, const QString configFile)
+ KDE_EXPORT KPanelApplet* init( TQWidget *parent, const TQString configFile)
{
KGlobal::locale()->insertCatalogue("artscontrol");
return new ArtsControlApplet(configFile, KPanelApplet::Normal,
@@ -38,9 +38,9 @@ extern "C"
}
}
-ArtsControlApplet::ArtsControlApplet(const QString& configFile, Type type, int actions, QWidget *parent, const char *name) : KPanelApplet(configFile, type, actions, parent, name)
+ArtsControlApplet::ArtsControlApplet(const TQString& configFile, Type type, int actions, TQWidget *parent, const char *name) : KPanelApplet(configFile, type, actions, parent, name)
{
- //kdDebug()<<"ArtsControlApplet::ArtsControlApplet( const QString& "<<configFile<<", Type "<<type<<", int "<<actions<<", QWidget* "<<parent<<", const char* "<<name<<" )"<<endl;
+ //kdDebug()<<"ArtsControlApplet::ArtsControlApplet( const TQString& "<<configFile<<", Type "<<type<<", int "<<actions<<", TQWidget* "<<parent<<", const char* "<<name<<" )"<<endl;
// Get the current application configuration handle
ksConfig = config();
@@ -48,7 +48,7 @@ ArtsControlApplet::ArtsControlApplet(const QString& configFile, Type type, int a
if( !p->barts ) KMessageBox::information(0, i18n("Something with the ArtsServer went wrong. You probably need to restart aRts and then reload this applet."));
setCustomMenu(p->menu);
- p->layout = new QBoxLayout( this, QBoxLayout::LeftToRight );
+ p->layout = new TQBoxLayout( this, TQBoxLayout::LeftToRight );
p->layout->setSpacing( 2 );
if( p->barts ) {
@@ -61,7 +61,7 @@ ArtsControlApplet::ArtsControlApplet(const QString& configFile, Type type, int a
p->layout->activate();
- QTimer::singleShot( 100, this, SLOT( supdatelayout() ) );
+ TQTimer::singleShot( 100, this, TQT_SLOT( supdatelayout() ) );
kdDebug()<<"ArtsControlApplet::ArtsControlApplet() finished."<<endl;
}
@@ -101,14 +101,14 @@ kdDebug()<<"ArtsControlApplet::heightForWidth( int "<<w<<" )"<<endl;
return p->layout->sizeHint().height();
}
-void ArtsControlApplet::resizeEvent( QResizeEvent * /*_Event*/ ) {
- kdDebug()<<"ArtsControlApplet::resizeEvent( QResizeEvent * )"<<endl;
+void ArtsControlApplet::resizeEvent( TQResizeEvent * /*_Event*/ ) {
+ kdDebug()<<"ArtsControlApplet::resizeEvent( TQResizeEvent * )"<<endl;
}
-void ArtsControlApplet::mousePressEvent( QMouseEvent* ev ) {
- //kdDebug()<<"ArtsControlApplet::mousePressEvent( QMouseEvent* "<<ev<<" )"<<endl;
+void ArtsControlApplet::mousePressEvent( TQMouseEvent* ev ) {
+ //kdDebug()<<"ArtsControlApplet::mousePressEvent( TQMouseEvent* "<<ev<<" )"<<endl;
if ( Qt::RightButton == ev->button() /*|| Qt::LeftButton == ev->button()*/ )
- p->menu->exec( QCursor::pos() );
+ p->menu->exec( TQCursor::pos() );
}
void ArtsControlApplet::positionChange( Position ) {
@@ -122,12 +122,12 @@ kdDebug()<<k_funcinfo<<" position()="<<position()<<endl;
{
case pTop:
case pBottom:
- p->layout->setDirection( QBoxLayout::LeftToRight );
+ p->layout->setDirection( TQBoxLayout::LeftToRight );
if ( p->barts ) p->vu.direction( Arts::LeftToRight );
break;
case pRight:
case pLeft:
- p->layout->setDirection( QBoxLayout::TopToBottom );
+ p->layout->setDirection( TQBoxLayout::TopToBottom );
if ( p->barts ) p->vu.direction( Arts::TopToBottom );
break;
default: break;
@@ -138,8 +138,8 @@ void ArtsControlAppletPrivate::SVinline() {
kdDebug() << k_funcinfo << endl;
if ( !svinline ) {
svinline = new FFTScopeView( arts->server(), _parent );
- svinline->setMargin( 2 ); svinline->setLineWidth( 2 ); svinline->setFrameStyle( QFrame::Panel|QFrame::Sunken );
- connect( svinline, SIGNAL( closed() ), this, SLOT( SVinline() ) );
+ svinline->setMargin( 2 ); svinline->setLineWidth( 2 ); svinline->setFrameStyle( TQFrame::Panel|TQFrame::Sunken );
+ connect( svinline, TQT_SIGNAL( closed() ), this, TQT_SLOT( SVinline() ) );
layout->addWidget( svinline );
} else {
delete svinline;
diff --git a/arts/tools/artscontrolapplet.h b/arts/tools/artscontrolapplet.h
index 09ff15f..9efe5eb 100644
--- a/arts/tools/artscontrolapplet.h
+++ b/arts/tools/artscontrolapplet.h
@@ -23,7 +23,7 @@
#endif
#include <kpanelapplet.h>
-#include <qstring.h>
+#include <tqstring.h>
#include <kconfig.h>
class ArtsControlAppletPrivate;
@@ -41,8 +41,8 @@ public:
* @param parent The pointer to the parent widget handed over in the factory function.
* @param name A Qt object name for your applet.
**/
- ArtsControlApplet(const QString& configFile, Type t = Normal, int = 0,
- QWidget * = 0, const char * = 0);
+ ArtsControlApplet(const TQString& configFile, Type t = Normal, int = 0,
+ TQWidget * = 0, const char * = 0);
/** destructor */
~ArtsControlApplet();
/**
@@ -112,9 +112,9 @@ public:
protected:
- void resizeEvent( QResizeEvent* );
+ void resizeEvent( TQResizeEvent* );
- virtual void mousePressEvent( QMouseEvent* );
+ virtual void mousePressEvent( TQMouseEvent* );
void positionChange( Position );
diff --git a/arts/tools/artscontrolapplet_private.h b/arts/tools/artscontrolapplet_private.h
index 044a156..2b681b9 100644
--- a/arts/tools/artscontrolapplet_private.h
+++ b/arts/tools/artscontrolapplet_private.h
@@ -20,15 +20,15 @@
#include "artscontrolapplet.h"
-#include <qobject.h>
+#include <tqobject.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qslider.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqslider.h>
+#include <tqpushbutton.h>
#include <kpopupmenu.h>
#include <kaction.h>
-#include <qfont.h>
+#include <tqfont.h>
#include <kartsserver.h>
#include <kartsdispatcher.h>
@@ -45,13 +45,13 @@
class VolumeSlider;
-class KDE_EXPORT ArtsControlAppletPrivate : public QObject {
+class KDE_EXPORT ArtsControlAppletPrivate : public TQObject {
Q_OBJECT
private:
ArtsControlApplet *_parent;
ArtsActions* _artsactions;
public:
- QBoxLayout *layout;
+ TQBoxLayout *layout;
KArtsServer *arts;
KArtsDispatcher *dispatcher;
Arts::StereoVolumeControl volume;
@@ -66,7 +66,7 @@ public:
KAction *_styleNormalBars, *_styleFireBars, *_styleLineBars, *_styleLEDs, *_styleAnalog, *_styleSmall;
ArtsControlAppletPrivate( ArtsControlApplet *parent )
- : QObject(parent)
+ : TQObject(parent)
, _parent( parent )
, barts( false )
, bInUpdate( false )
@@ -82,7 +82,7 @@ public:
menu = new KPopupMenu( 0 );
_showSV = _artsactions->actionScopeView();
_showSV->plug( menu );
- _showSVinline = new KAction( i18n( "Toggle &Inline FFT Scope" ), "artscontrol", KShortcut(), this, SLOT( SVinline() ), this );
+ _showSVinline = new KAction( i18n( "Toggle &Inline FFT Scope" ), "artscontrol", KShortcut(), this, TQT_SLOT( SVinline() ), this );
_showSVinline->plug( menu );
_showAM = _artsactions->actionAudioManager();
_showAM->plug( menu );
@@ -96,12 +96,12 @@ public:
_showMediaTypes->plug( menu );
menu->insertSeparator();
menu->insertItem( i18n( "VU-Style" ), _artsactions->stylemenu() );
- connect( _artsactions, SIGNAL( styleNormal() ), this, SLOT( styleNormalBars() ) );
- connect( _artsactions, SIGNAL( styleFire() ), this, SLOT( styleFireBars() ) );
- connect( _artsactions, SIGNAL( styleLine() ), this, SLOT( styleLineBars() ) );
- connect( _artsactions, SIGNAL( styleLED() ), this, SLOT( styleLEDs() ) );
- connect( _artsactions, SIGNAL( styleAnalog() ), this, SLOT( styleAnalog() ) );
- connect( _artsactions, SIGNAL( styleSmall() ), this, SLOT( styleSmall() ) );
+ connect( _artsactions, TQT_SIGNAL( styleNormal() ), this, TQT_SLOT( styleNormalBars() ) );
+ connect( _artsactions, TQT_SIGNAL( styleFire() ), this, TQT_SLOT( styleFireBars() ) );
+ connect( _artsactions, TQT_SIGNAL( styleLine() ), this, TQT_SLOT( styleLineBars() ) );
+ connect( _artsactions, TQT_SIGNAL( styleLED() ), this, TQT_SLOT( styleLEDs() ) );
+ connect( _artsactions, TQT_SIGNAL( styleAnalog() ), this, TQT_SLOT( styleAnalog() ) );
+ connect( _artsactions, TQT_SIGNAL( styleSmall() ), this, TQT_SLOT( styleSmall() ) );
}
~ArtsControlAppletPrivate() {
if ( svinline ) SVinline();
diff --git a/arts/tools/audiomanager.cpp b/arts/tools/audiomanager.cpp
index 1216e19..3e3789a 100644
--- a/arts/tools/audiomanager.cpp
+++ b/arts/tools/audiomanager.cpp
@@ -24,8 +24,8 @@
#include "audiomanager.h"
#include "choosebusdlg.h"
-#include <qtimer.h>
-#include <qlayout.h>
+#include <tqtimer.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <klistview.h>
@@ -37,7 +37,7 @@ using namespace std;
* as this is an 1:1 port of an old arts-0.3.4.1 artsbuilable visual widget,
* you'll see some porting artefacts, and it's not elegance itself ;)
*/
-Gui_AUDIO_MANAGER::Gui_AUDIO_MANAGER( QWidget* parent, const char* name ) : Template_ArtsView( parent,name )
+Gui_AUDIO_MANAGER::Gui_AUDIO_MANAGER( TQWidget* parent, const char* name ) : Template_ArtsView( parent,name )
{
this->setCaption( i18n( "Audio Manager" ) );
this->setIcon( MainBarIcon( "artsaudiomanager", 32 ) );
@@ -53,9 +53,9 @@ Gui_AUDIO_MANAGER::Gui_AUDIO_MANAGER( QWidget* parent, const char* name ) : Temp
tick();
show();
- QTimer *updatetimer = new QTimer(this);
+ TQTimer *updatetimer = new TQTimer(this);
updatetimer->start(500);
- QObject::connect(updatetimer,SIGNAL(timeout()),this,SLOT(tick()));
+ TQObject::connect(updatetimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(tick()));
}
Gui_AUDIO_MANAGER::~Gui_AUDIO_MANAGER()
@@ -65,14 +65,14 @@ Gui_AUDIO_MANAGER::~Gui_AUDIO_MANAGER()
}
#if 0
-void Gui_AUDIO_MANAGER::widgetDestroyed(QWidget *widget)
+void Gui_AUDIO_MANAGER::widgetDestroyed(TQWidget *widget)
{
assert(widget == listview);
listview = 0;
}
#endif
-void Gui_AUDIO_MANAGER::setParent(QWidget *parent, QBoxLayout * /*layout*/)
+void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*layout*/)
{
/************************************************************************
* From Gui_INSTRUMENT_MAPPER:
@@ -90,8 +90,8 @@ void Gui_AUDIO_MANAGER::setParent(QWidget *parent, QBoxLayout * /*layout*/)
* else would be appropriate. Check that. FIXME
************************************************************************/
- QVBoxLayout *mainlayout = new QVBoxLayout(parent);
- /*QHBoxLayout *contentslayout = new QHBoxLayout;*/
+ TQVBoxLayout *mainlayout = new TQVBoxLayout(parent);
+ /*TQHBoxLayout *contentslayout = new QHBoxLayout;*/
// list
@@ -103,8 +103,8 @@ void Gui_AUDIO_MANAGER::setParent(QWidget *parent, QBoxLayout * /*layout*/)
listview->setMinimumSize(300,100);
- QObject::connect(listview,SIGNAL(executed(QListViewItem *)),proxy,
- SLOT(edit(QListViewItem *)));
+ TQObject::connect(listview,TQT_SIGNAL(executed(TQListViewItem *)),proxy,
+ TQT_SLOT(edit(TQListViewItem *)));
mainlayout->addWidget(listview);
@@ -128,13 +128,13 @@ void Gui_AUDIO_MANAGER::tick()
for(c=0;c<acs->size();c++)
{
//char status[2][10] = {"init","running"};
- QString description = QString::fromUtf8( (*acs)[c].title.c_str() );
- QString type;
+ TQString description = TQString::fromUtf8( (*acs)[c].title.c_str() );
+ TQString type;
if((*acs)[c].direction == Arts::amPlay)
type = i18n("play");
else
type = i18n("record");
- QString destination = QString::fromUtf8( (*acs)[c].destination.c_str() );
+ TQString destination = TQString::fromUtf8( (*acs)[c].destination.c_str() );
long ID = (*acs)[c].ID;
(void)new AudioManagerItem(listview, description, type, destination, ID);
@@ -143,7 +143,7 @@ void Gui_AUDIO_MANAGER::tick()
//Widget->show();
}
-void Gui_AUDIO_MANAGER::edit(QListViewItem *item)
+void Gui_AUDIO_MANAGER::edit(TQListViewItem *item)
{
AudioManagerItem *ai = (AudioManagerItem *)item;
ChooseBusDlg *cd = new ChooseBusDlg(0);
@@ -153,9 +153,9 @@ void Gui_AUDIO_MANAGER::edit(QListViewItem *item)
int accept = cd->exec();
inDialog = false;
- if( accept == QDialog::Accepted )
+ if( accept == TQDialog::Accepted )
{
- QString result = cd->result();
+ TQString result = cd->result();
if(!result.isNull())
{
//lukas: I hope UTF-8 is OK here...
@@ -173,13 +173,13 @@ GuiAudioManagerProxy::GuiAudioManagerProxy(Gui_AUDIO_MANAGER *gim)
this->gim = gim;
}
-void GuiAudioManagerProxy::edit(QListViewItem *item)
+void GuiAudioManagerProxy::edit(TQListViewItem *item)
{
gim->edit(item);
}
-AudioManagerItem::AudioManagerItem(QListView *parent, QString a,
- QString b, QString c, long ID) :QListViewItem(parent,a,b,c)
+AudioManagerItem::AudioManagerItem(TQListView *parent, TQString a,
+ TQString b, TQString c, long ID) :TQListViewItem(parent,a,b,c)
{
_ID = ID;
}
diff --git a/arts/tools/audiomanager.h b/arts/tools/audiomanager.h
index c8e00e4..8b08184 100644
--- a/arts/tools/audiomanager.h
+++ b/arts/tools/audiomanager.h
@@ -25,8 +25,8 @@
#define _AUDIOMANAGER_H_
#include <artsflow.h>
-#include <qwidget.h>
-#include <qlistview.h>
+#include <tqwidget.h>
+#include <tqlistview.h>
#include "templateview.h"
@@ -38,7 +38,7 @@ class Gui_AUDIO_MANAGER : public Template_ArtsView
{
Q_OBJECT
protected:
- QWidget *ParentWidget;
+ TQWidget *ParentWidget;
KListView *listview;
GuiAudioManagerProxy *proxy;
Arts::AudioManager AudioManager;
@@ -47,30 +47,30 @@ protected:
unsigned long changes;
int x,y;
public:
- Gui_AUDIO_MANAGER( QWidget* =0, const char* =0 );
+ Gui_AUDIO_MANAGER( TQWidget* =0, const char* =0 );
~Gui_AUDIO_MANAGER();
- void setParent(QWidget *Parent,QBoxLayout *layout);
+ void setParent(TQWidget *Parent,TQBoxLayout *layout);
- void edit(QListViewItem *item);
+ void edit(TQListViewItem *item);
public slots:
void tick();
};
-class GuiAudioManagerProxy :public QObject {
+class GuiAudioManagerProxy :public TQObject {
Q_OBJECT
Gui_AUDIO_MANAGER *gim;
public:
GuiAudioManagerProxy(Gui_AUDIO_MANAGER *gim);
public slots:
- void edit(QListViewItem *item);
+ void edit(TQListViewItem *item);
};
-class AudioManagerItem : public QListViewItem {
+class AudioManagerItem : public TQListViewItem {
long _ID;
public:
- AudioManagerItem(QListView *parent, QString a, QString b,
- QString c, long ID);
+ AudioManagerItem(TQListView *parent, TQString a, TQString b,
+ TQString c, long ID);
~AudioManagerItem();
long ID();
diff --git a/arts/tools/choosebusdlg.cpp b/arts/tools/choosebusdlg.cpp
index ad6adeb..cb005f4 100644
--- a/arts/tools/choosebusdlg.cpp
+++ b/arts/tools/choosebusdlg.cpp
@@ -23,10 +23,10 @@
#include <artsflow.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qlistbox.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqlistbox.h>
+#include <tqpushbutton.h>
#include <kbuttonbox.h>
#include <kseparator.h>
@@ -38,26 +38,26 @@
using namespace std;
-static void min_size(QWidget *w) {
+static void min_size(TQWidget *w) {
w->setMinimumSize(w->sizeHint());
}
-ChooseBusDlg::ChooseBusDlg(QWidget *parent)
+ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
: KDialog(parent,"X", TRUE)
, _newbusitemindex( -1 )
{
setCaption(i18n("Choose Bus"));
- QVBoxLayout *mainlayout = new QVBoxLayout(this);
+ TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: "Synthesis running..."
mainlayout->addSpacing(5);
- QLabel *captionlabel = new QLabel(this);
- QFont labelfont(captionlabel->font());
+ TQLabel *captionlabel = new TQLabel(this);
+ TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
captionlabel->setFont(labelfont);
- captionlabel->setText(QString(" ")+i18n("Available busses:")+QString(" "));
+ captionlabel->setText(TQString(" ")+i18n("Available busses:")+TQString(" "));
captionlabel->setAlignment(AlignCenter);
min_size(captionlabel);
mainlayout->addWidget(captionlabel);
@@ -73,7 +73,7 @@ ChooseBusDlg::ChooseBusDlg(QWidget *parent)
// listwidget
- listbox = new QListBox(this);
+ listbox = new TQListBox(this);
listbox->setMinimumSize(300,200);
Arts::AudioManager aman = Arts::Reference("global:Arts_AudioManager");
@@ -100,12 +100,12 @@ ChooseBusDlg::ChooseBusDlg(QWidget *parent)
// new bus lineedit
- QBoxLayout * layout2 = new QHBoxLayout( mainlayout );
+ TQBoxLayout * layout2 = new TQHBoxLayout( mainlayout );
//mainlayout->addLayout( layout2 );
- QLabel * newbuslabel = new QLabel( i18n( "New bus:" ), this );
+ TQLabel * newbuslabel = new TQLabel( i18n( "New bus:" ), this );
layout2->addWidget( newbuslabel );
lineedit = new KLineEdit( this );
- connect( lineedit, SIGNAL( textChanged( const QString & ) ), SLOT( textChanged( const QString & ) ) );
+ connect( lineedit, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( textChanged( const TQString & ) ) );
layout2->addWidget( lineedit );
// hruler
@@ -119,22 +119,22 @@ ChooseBusDlg::ChooseBusDlg(QWidget *parent)
// buttons
mainlayout->addSpacing(5);
- QHBoxLayout *buttonlayout = new QHBoxLayout( mainlayout );
+ TQHBoxLayout *buttonlayout = new TQHBoxLayout( mainlayout );
//mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- bbox->addButton(KStdGuiItem::help(), this, SLOT( help() ));
+ bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() ));
bbox->addStretch(1);
- QPushButton * okbutton = bbox->addButton(KStdGuiItem::ok());
+ TQPushButton * okbutton = bbox->addButton(KStdGuiItem::ok());
okbutton->setDefault( true );
- connect( okbutton, SIGNAL( clicked() ), SLOT(accept() ) );
+ connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
- QButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
- connect( cancelbutton, SIGNAL( clicked() ), SLOT(reject() ) );
+ TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
+ connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
bbox->layout();
@@ -144,7 +144,7 @@ ChooseBusDlg::ChooseBusDlg(QWidget *parent)
mainlayout->freeze();
}
-QString ChooseBusDlg::result()
+TQString ChooseBusDlg::result()
{
if(listbox->currentItem() != -1)
{
@@ -158,7 +158,7 @@ void ChooseBusDlg::help()
KApplication::kApplication()->invokeHelp("", "artsbuilder");
}
-void ChooseBusDlg::textChanged( const QString & busname )
+void ChooseBusDlg::textChanged( const TQString & busname )
{
if( ! busname.isEmpty() )
{
diff --git a/arts/tools/choosebusdlg.h b/arts/tools/choosebusdlg.h
index 320df6e..252226b 100644
--- a/arts/tools/choosebusdlg.h
+++ b/arts/tools/choosebusdlg.h
@@ -30,19 +30,19 @@ class QPushButton;
class ChooseBusDlg :public KDialog {
Q_OBJECT
- QListBox *listbox;
+ TQListBox *listbox;
KLineEdit * lineedit;
int _newbusitemindex;
public:
- ChooseBusDlg(QWidget *parent);
+ ChooseBusDlg(TQWidget *parent);
public slots:
- QString result();
+ TQString result();
void help();
protected slots:
- void textChanged( const QString & );
+ void textChanged( const TQString & );
};
#endif
diff --git a/arts/tools/environmentview.cpp b/arts/tools/environmentview.cpp
index 0b8a745..9cedfed 100644
--- a/arts/tools/environmentview.cpp
+++ b/arts/tools/environmentview.cpp
@@ -22,9 +22,9 @@
*/
#include "environmentview.h"
-#include <qdir.h>
-#include <qfile.h>
-#include <qpushbutton.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqpushbutton.h>
#include <klistbox.h>
#include <kartswidget.h>
@@ -34,7 +34,7 @@
#include <fstream>
#include <vector>
-#include <qlayout.h>
+#include <tqlayout.h>
#define DEFAULT_ENV_FILENAME "~/default.arts-env"
@@ -42,12 +42,12 @@ using namespace Arts;
using Environment::Container;
using Environment::Item;
-class ItemView : public QListBoxText {
+class ItemView : public TQListBoxText {
public:
Item item;
KArtsWidget *widget;
- ItemView(QListBox *listBox, Item item)
- : QListBoxText(listBox), item(item), widget(0)
+ ItemView(TQListBox *listBox, Item item)
+ : TQListBoxText(listBox), item(item), widget(0)
{
}
~ItemView()
@@ -56,44 +56,44 @@ public:
widget = 0;
printf("~ItemView()\n");
}
- QString text() const {
- return QString::fromLatin1(item._interfaceName().c_str());
+ TQString text() const {
+ return TQString::fromLatin1(item._interfaceName().c_str());
}
};
-EnvironmentView::EnvironmentView( Container container, QWidget* parent, const char* name ) : Template_ArtsView( parent,name ), container(container)
+EnvironmentView::EnvironmentView( Container container, TQWidget* parent, const char* name ) : Template_ArtsView( parent,name ), container(container)
{
this->setCaption( i18n( "Environment" ) );
this->setIcon( MainBarIcon( "artsenvironment", 32 ) );
- QVBoxLayout* _layout = new QVBoxLayout( this );
+ TQVBoxLayout* _layout = new TQVBoxLayout( this );
_layout->setAutoAdd( true );
defaultEnvFileName = DEFAULT_ENV_FILENAME;
- defaultEnvFileName.replace('~', QDir::homeDirPath());
+ defaultEnvFileName.replace('~', TQDir::homeDirPath());
listBox = new KListBox(this);
update();
- connect(listBox,SIGNAL(executed(QListBoxItem*)),
- this,SLOT(view(QListBoxItem*)));
+ connect(listBox,TQT_SIGNAL(executed(TQListBoxItem*)),
+ this,TQT_SLOT(view(TQListBoxItem*)));
- QPushButton *mixerButton = new QPushButton(i18n("Add Mixer"), this);
- connect(mixerButton, SIGNAL(clicked()), this, SLOT(addMixer()));
+ TQPushButton *mixerButton = new TQPushButton(i18n("Add Mixer"), this);
+ connect(mixerButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(addMixer()));
- QPushButton *effectRackButton = new QPushButton(i18n("Add Effect Rack"), this);
- connect(effectRackButton, SIGNAL(clicked()), this, SLOT(addEffectRack()));
+ TQPushButton *effectRackButton = new TQPushButton(i18n("Add Effect Rack"), this);
+ connect(effectRackButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(addEffectRack()));
- QPushButton *delButton = new QPushButton(i18n("Delete Item"), this);
- connect(delButton, SIGNAL(clicked()), this, SLOT(delItem()));
+ TQPushButton *delButton = new TQPushButton(i18n("Delete Item"), this);
+ connect(delButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(delItem()));
- QPushButton *loadButton = new
- QPushButton(i18n("Load %1").arg(DEFAULT_ENV_FILENAME), this);
- connect(loadButton, SIGNAL(clicked()), this, SLOT(load()));
+ TQPushButton *loadButton = new
+ TQPushButton(i18n("Load %1").arg(DEFAULT_ENV_FILENAME), this);
+ connect(loadButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(load()));
- QPushButton *saveButton = new
- QPushButton(i18n("Save %1").arg(DEFAULT_ENV_FILENAME), this);
- connect(saveButton, SIGNAL(clicked()), this, SLOT(save()));
+ TQPushButton *saveButton = new
+ TQPushButton(i18n("Save %1").arg(DEFAULT_ENV_FILENAME), this);
+ connect(saveButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(save()));
show();
}
-void EnvironmentView::view(QListBoxItem *i)
+void EnvironmentView::view(TQListBoxItem *i)
{
ItemView *iv = static_cast<ItemView*>(i);
@@ -148,7 +148,7 @@ void EnvironmentView::update()
void EnvironmentView::load()
{
- std::ifstream infile(QFile::encodeName(defaultEnvFileName).data());
+ std::ifstream infile(TQFile::encodeName(defaultEnvFileName).data());
std::string line;
std::vector<std::string> strseq;
@@ -163,7 +163,7 @@ void EnvironmentView::save()
std::vector<std::string> *strseq;
strseq = defaultEnvironment().saveToList();
- std::ofstream outfile(QFile::encodeName(defaultEnvFileName).data());
+ std::ofstream outfile(TQFile::encodeName(defaultEnvFileName).data());
for(std::vector<std::string>::iterator i = strseq->begin(); i != strseq->end(); i++)
outfile << ( *i ) << std::endl;
delete strseq;
diff --git a/arts/tools/environmentview.h b/arts/tools/environmentview.h
index 7da8a24..351a5df 100644
--- a/arts/tools/environmentview.h
+++ b/arts/tools/environmentview.h
@@ -36,13 +36,13 @@ class EnvironmentView : public Template_ArtsView {
protected:
Arts::Environment::Container container;
KListBox *listBox;
- QString defaultEnvFileName;
+ TQString defaultEnvFileName;
public:
- EnvironmentView( Arts::Environment::Container container, QWidget* =0, const char* =0 );
+ EnvironmentView( Arts::Environment::Container container, TQWidget* =0, const char* =0 );
public slots:
- void view(QListBoxItem *i);
+ void view(TQListBoxItem *i);
void addMixer();
void addEffectRack();
void delItem();
diff --git a/arts/tools/fftscopeview.cpp b/arts/tools/fftscopeview.cpp
index 20d9fb7..fcaa530 100644
--- a/arts/tools/fftscopeview.cpp
+++ b/arts/tools/fftscopeview.cpp
@@ -22,9 +22,9 @@
#include "fftscopeview.h"
-#include <qlayout.h>
-#include <qcursor.h>
-#include <qtimer.h>
+#include <tqlayout.h>
+#include <tqcursor.h>
+#include <tqtimer.h>
#include <kaction.h>
#include <kpopupmenu.h>
#include <kartswidget.h>
@@ -37,7 +37,7 @@
using namespace std;
using namespace Arts;
-FFTScopeView::FFTScopeView( SimpleSoundServer server, QWidget* parent )
+FFTScopeView::FFTScopeView( SimpleSoundServer server, TQWidget* parent )
: Template_ArtsView( parent )
, server( server )
, scopeData( 0 )
@@ -59,7 +59,7 @@ kdDebug()<<k_funcinfo<<endl;
}
updateScopeData();
- QBoxLayout * l = new QHBoxLayout( this );
+ TQBoxLayout * l = new TQHBoxLayout( this );
l->setAutoAdd( TRUE );
for ( unsigned int i=0;i<scopeData->size();i++ )
@@ -75,25 +75,25 @@ kdDebug()<<k_funcinfo<<endl;
l->activate();
show();
- updatetimer = new QTimer( this );
+ updatetimer = new TQTimer( this );
updatetimer->start( 100 );
- connect( updatetimer,SIGNAL( timeout() ),this,SLOT( updateScope() ) );
+ connect( updatetimer,TQT_SIGNAL( timeout() ),this,TQT_SLOT( updateScope() ) );
_artsactions = new ArtsActions( 0, 0, this );
- _moreBars = ArtsActions::actionMoreBars( this, SLOT( moreBars() ), 0 );
- _lessBars = ArtsActions::actionLessBars( this, SLOT( lessBars() ), 0 );
+ _moreBars = ArtsActions::actionMoreBars( this, TQT_SLOT( moreBars() ), 0 );
+ _lessBars = ArtsActions::actionLessBars( this, TQT_SLOT( lessBars() ), 0 );
_menu = new KPopupMenu( 0 );
_moreBars->plug( _menu ); _lessBars->plug( _menu );
- _substyle = new KAction( i18n( "Substyle" ), "", KShortcut(), this, SLOT( substyle() ), this );
+ _substyle = new KAction( i18n( "Substyle" ), "", KShortcut(), this, TQT_SLOT( substyle() ), this );
_substyle->plug( _menu );
_menu->insertItem( i18n("VU-Style"), _artsactions->stylemenu() );
- connect( _artsactions, SIGNAL( styleNormal() ), this, SLOT( styleNormalBars() ) );
- connect( _artsactions, SIGNAL( styleFire() ), this, SLOT( styleFireBars() ) );
- connect( _artsactions, SIGNAL( styleLine() ), this, SLOT( styleLineBars() ) );
- connect( _artsactions, SIGNAL( styleLED() ), this, SLOT( styleLEDs() ) );
- connect( _artsactions, SIGNAL( styleAnalog() ), this, SLOT( styleAnalog() ) );
- connect( _artsactions, SIGNAL( styleSmall() ), this, SLOT( styleSmall() ) );
+ connect( _artsactions, TQT_SIGNAL( styleNormal() ), this, TQT_SLOT( styleNormalBars() ) );
+ connect( _artsactions, TQT_SIGNAL( styleFire() ), this, TQT_SLOT( styleFireBars() ) );
+ connect( _artsactions, TQT_SIGNAL( styleLine() ), this, TQT_SLOT( styleLineBars() ) );
+ connect( _artsactions, TQT_SIGNAL( styleLED() ), this, TQT_SLOT( styleLEDs() ) );
+ connect( _artsactions, TQT_SIGNAL( styleAnalog() ), this, TQT_SLOT( styleAnalog() ) );
+ connect( _artsactions, TQT_SIGNAL( styleSmall() ), this, TQT_SLOT( styleSmall() ) );
}
FFTScopeView::~FFTScopeView() {
@@ -121,9 +121,9 @@ void FFTScopeView::updateScope() {
}
}
-void FFTScopeView::mousePressEvent( QMouseEvent* ev ) {
+void FFTScopeView::mousePressEvent( TQMouseEvent* ev ) {
if ( Qt::RightButton == ev->button() /*|| Qt::LeftButton == ev->button()*/ )
- _menu->exec( QCursor::pos() );
+ _menu->exec( TQCursor::pos() );
}
void FFTScopeView::moreBars() {
diff --git a/arts/tools/fftscopeview.h b/arts/tools/fftscopeview.h
index 504bec8..a6e14f5 100644
--- a/arts/tools/fftscopeview.h
+++ b/arts/tools/fftscopeview.h
@@ -49,7 +49,7 @@ protected:
std::vector<float> scopeDraw;
std::vector<Arts::LevelMeter> scopeScales;
std::vector<KArtsWidget*> aw;
- QTimer *updatetimer;
+ TQTimer *updatetimer;
ArtsActions* _artsactions;
KPopupMenu *_menu, *_stylemenu;
@@ -57,10 +57,10 @@ protected:
KAction *_styleNormalBars, *_styleFireBars, *_styleLineBars, *_styleLEDs, *_styleAnalog, *_styleSmall;
KAction *_substyle;
- void mousePressEvent( QMouseEvent* );
+ void mousePressEvent( TQMouseEvent* );
public:
void updateScopeData();
- FFTScopeView( Arts::SimpleSoundServer server, QWidget* =0 );
+ FFTScopeView( Arts::SimpleSoundServer server, TQWidget* =0 );
~FFTScopeView();
public slots:
diff --git a/arts/tools/levelmeters.cpp b/arts/tools/levelmeters.cpp
index 3b2ca1a..1d0b080 100644
--- a/arts/tools/levelmeters.cpp
+++ b/arts/tools/levelmeters.cpp
@@ -1,13 +1,13 @@
-#include <qlayout.h>
-#include <qpainter.h>
-#include <qfontmetrics.h>
-#include <qptrlist.h>
+#include <tqlayout.h>
+#include <tqpainter.h>
+#include <tqfontmetrics.h>
+#include <tqptrlist.h>
#include <kled.h>
#include "levelmeters.h"
const int PeakBar::peakMillis=1500;
-PeakBar::PeakBar(QWidget *parent)
+PeakBar::PeakBar(TQWidget *parent)
: ACLevelMeter(parent)
, maxValue( 0.0f )
, minValue( 0.0f )
@@ -19,19 +19,19 @@ PeakBar::PeakBar(QWidget *parent)
lastValues.setAutoDelete( TRUE );
- setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
- setSizePolicy(QSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred));
+ setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken);
+ setSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred));
setBackgroundMode(NoBackground);
setMinimumSize(frameWidth()+7, 70);
}
void PeakBar::frameChanged() {
setMinimumSize(frameWidth()+7, 70);
- QFrame::frameChanged();
+ TQFrame::frameChanged();
}
-QSize PeakBar::sizeHint() const {
- return QSize(13, 250);
+TQSize PeakBar::sizeHint() const {
+ return TQSize(13, 250);
}
void PeakBar::checkMinMax() {
@@ -47,7 +47,7 @@ void PeakBar::checkMinMax() {
maxValue= 0.f;
minValue= 1.f;
clipped = false;
- for (QPtrListIterator<Observation> it(lastValues); it.current(); ++it) {
+ for (TQPtrListIterator<Observation> it(lastValues); it.current(); ++it) {
float value= it.current()->value;
if (value>maxValue)
maxValue= value;
@@ -59,9 +59,9 @@ void PeakBar::checkMinMax() {
}
}
-void PeakBar::drawContents(QPainter *p)
+void PeakBar::drawContents(TQPainter *p)
{
- QRect size= contentsRect();
+ TQRect size= contentsRect();
checkMinMax();
@@ -69,7 +69,7 @@ void PeakBar::drawContents(QPainter *p)
p->setPen(NoPen);
p->drawRect(size);
- QRect bar= size;
+ TQRect bar= size;
p->setBrush(clipped ? red : blue);
if (horizontalMode) {
bar.setWidth((int)(bar.width()*currentValue));
@@ -109,10 +109,10 @@ void PeakBar::setValue(float f) {
// -------------------------------------------------------------
-PeakLevelMeters::PeakLevelMeters(QWidget *parent):
+PeakLevelMeters::PeakLevelMeters(TQWidget *parent):
StereoLevelMeter(parent), left(this), right(this), scaleView(this)
{
- QBoxLayout *layout= new QHBoxLayout(this);
+ TQBoxLayout *layout= new TQHBoxLayout(this);
layout->addWidget(&left);
// layout->setStretchFactor(&left, 0);
layout->addWidget(&right);
@@ -122,7 +122,7 @@ PeakLevelMeters::PeakLevelMeters(QWidget *parent):
left.setLineWidth(2);
right.setLineWidth(2);
scaleView.setScaleMargins(right.frameWidth());
- setSizePolicy(QSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred));
+ setSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred));
setDbRange(36);
}
@@ -142,9 +142,9 @@ void PeakLevelMeters::setValues(float leftVal, float rightVal) {
right.setValue(f);
}
-ScaleView::ScaleView(QWidget *parent): QFrame(parent) {
+ScaleView::ScaleView(TQWidget *parent): TQFrame(parent) {
font.setPixelSize(10);
- setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred));
+ setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred));
}
void ScaleView::setDbRange(int db) {
@@ -152,16 +152,16 @@ void ScaleView::setDbRange(int db) {
repaint();
}
-QSize ScaleView::sizeHint() const {
- return QSize(QFontMetrics(font).width("-88")+8, 250);
+TQSize ScaleView::sizeHint() const {
+ return TQSize(TQFontMetrics(font).width("-88")+8, 250);
}
-void ScaleView::drawContents(QPainter *p) {
- QRect size= contentsRect();
+void ScaleView::drawContents(TQPainter *p) {
+ TQRect size= contentsRect();
size.rTop()+= upperMargin;
size.rBottom()-= lowerMargin;
- QFrame::drawContents(p); // clear background
+ TQFrame::drawContents(p); // clear background
int step=3;
while (dbRange/step*20>size.height())
@@ -173,7 +173,7 @@ void ScaleView::drawContents(QPainter *p) {
p->setPen(black);
p->setFont(font);
- QString numStr;
+ TQString numStr;
for (int i=0; i<=dbRange; i++) {
int y= size.top()+(size.height()-1)*i/dbRange;
if (i%step==0) {
@@ -187,12 +187,12 @@ void ScaleView::drawContents(QPainter *p) {
// -------------------------------------------------------------
-LedMeter::LedMeter(QWidget *parent, bool blueState) : ACLevelMeter(parent) {
+LedMeter::LedMeter(TQWidget *parent, bool blueState) : ACLevelMeter(parent) {
setBackgroundColor(black);
- QBoxLayout * l = new QVBoxLayout( this );
+ TQBoxLayout * l = new TQVBoxLayout( this );
l->setAutoAdd(TRUE);
for(int i=0;i<12;i++) {
- QColor c;
+ TQColor c;
if(blueState)
c = blue;
else {
@@ -202,8 +202,8 @@ LedMeter::LedMeter(QWidget *parent, bool blueState) : ACLevelMeter(parent) {
}
// put each led in its own frame, since it seems to be broken
- QFrame *lframe = new QFrame(this);
- QBoxLayout *lfl = new QVBoxLayout( lframe );
+ TQFrame *lframe = new TQFrame(this);
+ TQBoxLayout *lfl = new TQVBoxLayout( lframe );
lfl->setAutoAdd(TRUE);
leds[i] =
new KLed(c,KLed::Off, KLed::Sunken, KLed::Circular,lframe);
@@ -223,10 +223,10 @@ void LedMeter::setValue(float f)
// -------------------------------------------------------------
-StereoLedMeters::StereoLedMeters(QWidget *parent)
+StereoLedMeters::StereoLedMeters(TQWidget *parent)
: StereoLevelMeter(parent), left(this), right(this)
{
- QBoxLayout *layout= new QHBoxLayout(this);
+ TQBoxLayout *layout= new TQHBoxLayout(this);
layout->addWidget(&left);
layout->addWidget(&right);
}
diff --git a/arts/tools/levelmeters.h b/arts/tools/levelmeters.h
index 14f8a1f..638d0d9 100644
--- a/arts/tools/levelmeters.h
+++ b/arts/tools/levelmeters.h
@@ -22,10 +22,10 @@
#ifndef ARTS_TOOLS_LEVELMETERS_H
#define ARTS_TOOLS_LEVELMETERS_H
-#include <qobject.h>
-#include <qframe.h>
-#include <qdatetime.h>
-#include <qptrlist.h>
+#include <tqobject.h>
+#include <tqframe.h>
+#include <tqdatetime.h>
+#include <tqptrlist.h>
#include <math.h>
// helper functions
@@ -42,10 +42,10 @@ inline float DBToLevel(float db) {
/**
* Base class for a single volume / value bar.
*/
-class ACLevelMeter : public QFrame {
+class ACLevelMeter : public TQFrame {
Q_OBJECT
public:
- ACLevelMeter(QWidget *parent): QFrame(parent) {}
+ ACLevelMeter(TQWidget *parent): TQFrame(parent) {}
public slots:
virtual void setValue(float f) = 0;
};
@@ -53,10 +53,10 @@ public slots:
/**
* Base class for a pair of volume / value bars.
*/
-class StereoLevelMeter : public QFrame {
+class StereoLevelMeter : public TQFrame {
Q_OBJECT
public:
- StereoLevelMeter(QWidget *parent): QFrame(parent) {}
+ StereoLevelMeter(TQWidget *parent): TQFrame(parent) {}
public slots:
virtual void setValues(float left, float right) = 0;
};
@@ -74,11 +74,11 @@ protected:
class Observation {
public:
- QTime time;
+ TQTime time;
float value;
Observation(float aValue): value(aValue) { time.start(); }
};
- QPtrList<Observation> lastValues;
+ TQPtrList<Observation> lastValues;
float currentValue, maxValue, minValue;
void checkMinMax();
@@ -89,29 +89,29 @@ protected:
void frameChanged();
public:
- PeakBar(QWidget *parent);
+ PeakBar(TQWidget *parent);
- QSize sizeHint() const;
+ TQSize sizeHint() const;
- void drawContents(QPainter *p);
+ void drawContents(TQPainter *p);
virtual void setValue(float f);
};
/**
* Special class which draws the Db scale with ticks, numbers and so on.
*/
-class ScaleView : public QFrame {
+class ScaleView : public TQFrame {
Q_OBJECT
protected:
- QFont font;
+ TQFont font;
int dbRange;
int upperMargin, lowerMargin;
public:
- ScaleView(QWidget *parent);
+ ScaleView(TQWidget *parent);
void setDbRange(int db);
void setScaleMargins(int margins) { upperMargin= margins; lowerMargin=margins; }
- QSize sizeHint() const;
- void drawContents(QPainter *p);
+ TQSize sizeHint() const;
+ void drawContents(TQPainter *p);
};
/**
@@ -127,7 +127,7 @@ protected:
ScaleView scaleView;
public:
- PeakLevelMeters(QWidget *parent);
+ PeakLevelMeters(TQWidget *parent);
public slots:
void setValues(float leftVal, float rightVal);
@@ -147,7 +147,7 @@ protected:
KLed *leds[12];
public:
- LedMeter(QWidget *parent, bool blueState = false);
+ LedMeter(TQWidget *parent, bool blueState = false);
void setValue(float f);
};
@@ -160,7 +160,7 @@ protected:
LedMeter left, right;
public:
- StereoLedMeters(QWidget *parent);
+ StereoLedMeters(TQWidget *parent);
public slots:
void setValues(float left, float right);
};
diff --git a/arts/tools/main.cpp b/arts/tools/main.cpp
index 90674b3..60df8f1 100644
--- a/arts/tools/main.cpp
+++ b/arts/tools/main.cpp
@@ -35,9 +35,9 @@
#include <artsversion.h>
#include <kartsfloatwatch.h>
-#include <qlabel.h>
-#include <qslider.h>
-#include <qpushbutton.h>
+#include <tqlabel.h>
+#include <tqslider.h>
+#include <tqpushbutton.h>
#include <kaction.h>
#include <kled.h>
#include <kmessagebox.h>
@@ -51,7 +51,7 @@
using namespace std;
using namespace Arts;
-void FreeVerbView::closeEvent(QCloseEvent *e) {
+void FreeVerbView::closeEvent(TQCloseEvent *e) {
e->accept();
emit closed();
}
@@ -67,11 +67,11 @@ FreeVerbView::FreeVerbView(SimpleSoundServer server) : server(server) {
GenericGuiFactory factory;
Widget gui = factory.createGui(freeverb);
- QBoxLayout * l = new QHBoxLayout( this );
+ TQBoxLayout * l = new TQHBoxLayout( this );
if(!gui.isNull())
l->add(new KArtsWidget(gui, this));
else
- l->add(new QLabel(i18n("No GUI found for this effect."), this));
+ l->add(new TQLabel(i18n("No GUI found for this effect."), this));
l->freeze();
show();
}
@@ -82,18 +82,18 @@ FreeVerbView::~FreeVerbView() {
}
-VControl::VControl( KArtsServer* artsserver, QWidget *parent) : QFrame(parent)
+VControl::VControl( KArtsServer* artsserver, TQWidget *parent) : TQFrame(parent)
, freeVerbView(0)
, server( artsserver )
{
- connect( server, SIGNAL( restartedServer() ), this, SLOT( initaRtsConnections() ) );
+ connect( server, TQT_SIGNAL( restartedServer() ), this, TQT_SLOT( initaRtsConnections() ) );
/* if(server.isNull())
{
KMessageBox::error( 0, i18n("Connection to the soundserver failed - make sure that artsd is really running and that your kdelibs version is not older than kdemultimedia."));
exit(1);
}*/
- boxLayout = new QHBoxLayout( this );
+ boxLayout = new TQHBoxLayout( this );
// 0 => 4.0
// 200 => 2.0
@@ -136,7 +136,7 @@ void VControl::useOldVolumeBar(int old) {
void VControl::showFreeVerbView() {
if(!freeVerbView) {
freeVerbView = new FreeVerbView(server->server());
- connect(freeVerbView,SIGNAL(closed()),this,SLOT(showFreeVerbView()));
+ connect(freeVerbView,TQT_SIGNAL(closed()),this,TQT_SLOT(showFreeVerbView()));
} else {
delete freeVerbView;
freeVerbView = 0;
@@ -160,7 +160,7 @@ void MainWindow::toggleVolumeBar() {
MainWindow::MainWindow() : KMainWindow(0), kartsserver( new KArtsServer( this ) ) {
kdDebug() << k_funcinfo << endl;
- connect( kartsserver, SIGNAL( restartedServer() ), this, SLOT( serverRestarted() ) );
+ connect( kartsserver, TQT_SIGNAL( restartedServer() ), this, TQT_SLOT( serverRestarted() ) );
vc = new VControl( kartsserver, this );
setCentralWidget( vc );
@@ -172,11 +172,11 @@ kdDebug() << k_funcinfo << endl;
( void ) artsactions->actionMidiManagerView();
( void ) artsactions->actionEnvironmentView();
( void ) artsactions->actionMediaTypesView();
- ( void ) new KAction( i18n("Toggle Free&Verb"), 0, vc, SLOT( showFreeVerbView() ), actionCollection(), "view_freeverb" );
+ ( void ) new KAction( i18n("Toggle Free&Verb"), 0, vc, TQT_SLOT( showFreeVerbView() ), actionCollection(), "view_freeverb" );
showOldVolumeDisplay=
new KToggleAction( i18n( "Old aRts-Control-Style for VU-Meter" /*"&LED-Style Volume Display"*/ ), 0, this,
- SLOT( toggleVolumeBar() ), actionCollection(), "old_volume_display" );
- ( void ) KStdAction::quit( this, SLOT( close() ), actionCollection(), "quit_artscontrol" );
+ TQT_SLOT( toggleVolumeBar() ), actionCollection(), "old_volume_display" );
+ ( void ) KStdAction::quit( this, TQT_SLOT( close() ), actionCollection(), "quit_artscontrol" );
createGUI("artscontrol.rc");
resize(20,300);
diff --git a/arts/tools/main.h b/arts/tools/main.h
index 4e74d4a..2770b05 100644
--- a/arts/tools/main.h
+++ b/arts/tools/main.h
@@ -24,19 +24,19 @@
#define MAIN_H
#include <qiomanager.h>
#include <dispatcher.h>
-#include <qmessagebox.h>
+#include <tqmessagebox.h>
#include <kapplication.h>
-#include <qframe.h>
+#include <tqframe.h>
#include <kmainwindow.h>
#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <klocale.h>
#include <kstdaction.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
#include <artsflow.h>
#include <soundserver.h>
-#include <qobject.h>
+#include <tqobject.h>
#include <kartswidget.h>
#include <flowsystem.h>
#include <artsmodules.h>
@@ -47,14 +47,14 @@ class PeakBar;
class PeakLevelMeter;
class VScale;
-class FreeVerbView : public QWidget {
+class FreeVerbView : public TQWidget {
Q_OBJECT
protected:
Arts::Synth_FREEVERB freeverb;
Arts::SimpleSoundServer server;
long effectID;
- void closeEvent(QCloseEvent *e);
+ void closeEvent(TQCloseEvent *e);
public:
FreeVerbView(Arts::SimpleSoundServer server);
~FreeVerbView();
@@ -64,7 +64,7 @@ signals:
class KArtsWidget;
-class VControl : public QFrame {
+class VControl : public TQFrame {
Q_OBJECT
protected:
class StereoLevelMeter *stereoMeter;
@@ -74,10 +74,10 @@ protected:
KArtsWidget *svcguiw;
KArtsServer *server;
- QBoxLayout *boxLayout;
+ TQBoxLayout *boxLayout;
public:
- VControl( KArtsServer*, QWidget *parent);
+ VControl( KArtsServer*, TQWidget *parent);
~VControl();
public slots:
diff --git a/arts/tools/mediatypesview.cpp b/arts/tools/mediatypesview.cpp
index 40d7984..9353cda 100644
--- a/arts/tools/mediatypesview.cpp
+++ b/arts/tools/mediatypesview.cpp
@@ -21,7 +21,7 @@
*/
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klistview.h>
#include <klocale.h>
#include <kartsserver.h>
@@ -33,11 +33,11 @@
using namespace std;
using namespace Arts;
-MediaTypesView::MediaTypesView( QWidget* parent, const char* name ) : Template_ArtsView( parent,name )
+MediaTypesView::MediaTypesView( TQWidget* parent, const char* name ) : Template_ArtsView( parent,name )
{
this->setCaption( i18n( "Available Media Types" ) );
this->setIcon( MainBarIcon( "artsmediatypes", 32 ) );
- QBoxLayout *l= new QHBoxLayout(this);
+ TQBoxLayout *l= new TQHBoxLayout(this);
l->setAutoAdd(true);
KListView *listView = new KListView(this);
@@ -46,7 +46,7 @@ MediaTypesView::MediaTypesView( QWidget* parent, const char* name ) : Template_A
Arts::TraderQuery q;
std::vector<Arts::TraderOffer> *results = q.query();
std::map<std::string, bool> done;
- QString str;
+ TQString str;
for(std::vector<Arts::TraderOffer>::iterator i = results->begin(); i != results->end(); i++)
{
@@ -58,7 +58,7 @@ MediaTypesView::MediaTypesView( QWidget* parent, const char* name ) : Template_A
continue;
done[*it] = true;
- (void) new QListViewItem(listView, (*it).c_str());
+ (void) new TQListViewItem(listView, (*it).c_str());
}
delete ext;
}
diff --git a/arts/tools/mediatypesview.h b/arts/tools/mediatypesview.h
index 1e2500b..e61338c 100644
--- a/arts/tools/mediatypesview.h
+++ b/arts/tools/mediatypesview.h
@@ -29,7 +29,7 @@
class MediaTypesView : public Template_ArtsView {
Q_OBJECT
public:
- MediaTypesView( QWidget* =0, const char* =0 );
+ MediaTypesView( TQWidget* =0, const char* =0 );
~MediaTypesView();
};
diff --git a/arts/tools/midiinstdlg.cpp b/arts/tools/midiinstdlg.cpp
index 519d6b8..f606bba 100644
--- a/arts/tools/midiinstdlg.cpp
+++ b/arts/tools/midiinstdlg.cpp
@@ -24,36 +24,36 @@
#include <kstandarddirs.h>
#include <kapplication.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qfile.h>
-#include <qdir.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqfile.h>
+#include <tqdir.h>
#include <kbuttonbox.h>
#include <kseparator.h>
#include <kdebug.h>
-#include <qbutton.h>
-#include <qpushbutton.h>
+#include <tqbutton.h>
+#include <tqpushbutton.h>
#include <kstdguiitem.h>
-static QStringList getArtsPath()
+static TQStringList getArtsPath()
{
- QStringList artsPath;
- QString dir = locate("data", "artsbuilder/examples/");
+ TQStringList artsPath;
+ TQString dir = locate("data", "artsbuilder/examples/");
artsPath += dir;
- QString home = QDir::homeDirPath() + "/arts/structures/";
+ TQString home = TQDir::homeDirPath() + "/arts/structures/";
artsPath += home;
return artsPath;
}
-static QStringList listFiles(QString directory, QString extension)
+static TQStringList listFiles(TQString directory, TQString extension)
{
- QStringList result;
- QStringList artsPath = getArtsPath();
+ TQStringList result;
+ TQStringList artsPath = getArtsPath();
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = artsPath.begin(); it != artsPath.end(); it++ ) {
- QString pathname = *it + "/" + directory;
- QDir dir(pathname, extension);
+ TQString pathname = *it + "/" + directory;
+ TQDir dir(pathname, extension);
if (dir.exists()) {
//kdDebug() << "found dir " << dir.absPath() << endl;
result += dir.entryList();
@@ -63,19 +63,19 @@ static QStringList listFiles(QString directory, QString extension)
return result;
}
-MidiInstDlg::MidiInstDlg(QWidget *parent)
- :QDialog(parent,"instrument",TRUE)
+MidiInstDlg::MidiInstDlg(TQWidget *parent)
+ :TQDialog(parent,"instrument",TRUE)
{
- QVBoxLayout *mainlayout = new QVBoxLayout(this);
+ TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: title
mainlayout->addSpacing(5);
- QLabel *captionlabel = new QLabel(this);
- QFont labelfont(captionlabel->font());
+ TQLabel *captionlabel = new TQLabel(this);
+ TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
captionlabel->setFont(labelfont);
- captionlabel->setText(QString(" ")+i18n("Instrument")+QString(" "));
+ captionlabel->setText(TQString(" ")+i18n("Instrument")+TQString(" "));
captionlabel->setAlignment(AlignCenter);
//min_size(captionlabel);
mainlayout->addWidget(captionlabel);
@@ -89,13 +89,13 @@ MidiInstDlg::MidiInstDlg(QWidget *parent)
// combobox
- box = new QComboBox(this);
+ box = new TQComboBox(this);
- QStringList instruments = listFiles(".","*.arts");
- QStringList::Iterator it;
+ TQStringList instruments = listFiles(".","*.arts");
+ TQStringList::Iterator it;
for ( it = instruments.begin(); it != instruments.end(); it++ ) {
- QString modname = *it;
- QString prefix = QString::fromLatin1("instrument_");
+ TQString modname = *it;
+ TQString prefix = TQString::fromLatin1("instrument_");
if (modname.length() > 5)
modname.truncate(modname.length()-5); // kill .arts extension
if ( (modname.startsWith(prefix)) && (!modname.contains("_GUI")) )
@@ -104,11 +104,11 @@ MidiInstDlg::MidiInstDlg(QWidget *parent)
}
- QStringList maps = listFiles(".","*.arts-map");
+ TQStringList maps = listFiles(".","*.arts-map");
for ( it = maps.begin(); it != maps.end(); it++ ) {
- QString modname = *it;
- QString prefix = QString::fromLatin1("instrument_");
+ TQString modname = *it;
+ TQString prefix = TQString::fromLatin1("instrument_");
if (modname.length() > 9)
modname.truncate(modname.length()-9); // kill .arts-map extension
if (modname.startsWith(prefix))
@@ -127,7 +127,7 @@ MidiInstDlg::MidiInstDlg(QWidget *parent)
// buttons
- QHBoxLayout *buttonlayout = new QHBoxLayout;
+ TQHBoxLayout *buttonlayout = new QHBoxLayout;
mainlayout->addSpacing(5);
mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
@@ -135,11 +135,11 @@ MidiInstDlg::MidiInstDlg(QWidget *parent)
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- bbox->addButton(KStdGuiItem::help(), this, SLOT( help() ));
+ bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() ));
bbox->addStretch(1);
- QButton *okbutton = bbox->addButton(KStdGuiItem::ok());
- connect( okbutton, SIGNAL( clicked() ), SLOT(accept() ) );
+ TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
+ connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
bbox->layout();
@@ -149,23 +149,23 @@ MidiInstDlg::MidiInstDlg(QWidget *parent)
mainlayout->freeze();
}
-QCString MidiInstDlg::filename()
+TQCString MidiInstDlg::filename()
{
- QStringList artsPath = getArtsPath();
- QString instrument = box->currentText();
+ TQStringList artsPath = getArtsPath();
+ TQString instrument = box->currentText();
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = artsPath.begin(); it != artsPath.end(); it++ ) {
- QString pathname = *it + QString::fromLatin1("/instrument_") + instrument + QString::fromLatin1(".arts");
- QFileInfo fi(pathname);
+ TQString pathname = *it + TQString::fromLatin1("/instrument_") + instrument + TQString::fromLatin1(".arts");
+ TQFileInfo fi(pathname);
if (fi.exists() && fi.isReadable())
- return QFile::encodeName(pathname);
+ return TQFile::encodeName(pathname);
- pathname = *it + QString::fromLatin1("/instrument_") + instrument + QString::fromLatin1(".arts-map");
+ pathname = *it + TQString::fromLatin1("/instrument_") + instrument + TQString::fromLatin1(".arts-map");
fi.setFile(pathname);
if (fi.exists() && fi.isReadable())
- return QFile::encodeName(pathname);
+ return TQFile::encodeName(pathname);
}
return "";
diff --git a/arts/tools/midiinstdlg.h b/arts/tools/midiinstdlg.h
index 45bf6b9..5773551 100644
--- a/arts/tools/midiinstdlg.h
+++ b/arts/tools/midiinstdlg.h
@@ -22,16 +22,16 @@
#ifndef ARTS_TOOLS_MIDIINSTDLG_H
#define ARTS_TOOLS_MIDIINSTDLG_H
-#include <qdialog.h>
-#include <qcombobox.h>
-#include <qcstring.h>
+#include <tqdialog.h>
+#include <tqcombobox.h>
+#include <tqcstring.h>
-class MidiInstDlg :public QDialog {
+class MidiInstDlg :public TQDialog {
Q_OBJECT
- QComboBox *box;
+ TQComboBox *box;
public:
- MidiInstDlg(QWidget *parent);
- QCString filename();
+ MidiInstDlg(TQWidget *parent);
+ TQCString filename();
public slots:
void help();
};
diff --git a/arts/tools/midimanagerview.cpp b/arts/tools/midimanagerview.cpp
index 6b40aad..4849af7 100644
--- a/arts/tools/midimanagerview.cpp
+++ b/arts/tools/midimanagerview.cpp
@@ -27,10 +27,10 @@
#define protected public
#include "midimanagerwidget.h"
#undef protected
-#include <qpushbutton.h>
-#include <qlistbox.h>
-#include <qlayout.h>
-#include <qpainter.h>
+#include <tqpushbutton.h>
+#include <tqlistbox.h>
+#include <tqlayout.h>
+#include <tqpainter.h>
#include <stdio.h>
#include <kaction.h>
#include <klocale.h>
@@ -62,28 +62,28 @@ Arts::Environment::Container defaultEnvironment()
return d;
}
-class MidiManagerItem : public QListBoxText {
+class MidiManagerItem : public TQListBoxText {
public:
MidiClientInfo info;
MidiManagerItem(const MidiClientInfo &info) :info(info)
{
}
- QString text () const {
- return QString::fromUtf8(info.title.c_str());
+ TQString text () const {
+ return TQString::fromUtf8(info.title.c_str());
}
};
-class ConnectionWidget : public QWidget {
+class ConnectionWidget : public TQWidget {
public:
MidiManagerView *v;
- ConnectionWidget(MidiManagerView *v, QWidget *parent) : QWidget(parent), v(v)
+ ConnectionWidget(MidiManagerView *v, TQWidget *parent) : TQWidget(parent), v(v)
{
}
- void paintEvent(QPaintEvent * /*event*/)
+ void paintEvent(TQPaintEvent * /*event*/)
{
- QPainter painter;
+ TQPainter painter;
painter.begin(this);
// painter.fillRect(event->rect(),white);
@@ -96,8 +96,8 @@ public:
conn != item->info.connections.end(); conn++)
{
MidiManagerItem *outitem = v->itemMap[*conn];
- QRect r1 = v->widget->inputsListBox->itemRect(item);
- QRect r2 = v->widget->outputsListBox->itemRect(outitem);
+ TQRect r1 = v->widget->inputsListBox->itemRect(item);
+ TQRect r2 = v->widget->outputsListBox->itemRect(outitem);
if(r1.height() > 0 && r2.height() > 0)
{
@@ -113,23 +113,23 @@ public:
MidiManagerView::MidiManagerView()
: manager(Reference("global:Arts_MidiManager"))
{
- QTimer *updatetimer = new QTimer(this);
+ TQTimer *updatetimer = new TQTimer(this);
updatetimer->start(5000);
- connect(updatetimer,SIGNAL(timeout()),this,SLOT(updateLists()));
+ connect(updatetimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(updateLists()));
widget = new MidiManagerWidget(this);
setCentralWidget(widget);
setCaption(i18n("MIDI Manager"));
setIcon( MainBarIcon( "artsfftscope", 32 ) );
- (void)new KAction(i18n("&System MIDI Port (OSS)"), 0, this, SLOT(addOSSMidiPort()),
+ (void)new KAction(i18n("&System MIDI Port (OSS)"), 0, this, TQT_SLOT(addOSSMidiPort()),
actionCollection(), "add_oss_midi_port");
(void)new KAction(i18n("&aRts Synthesis MIDI Output"), 0, this,
- SLOT(addArtsMidiOutput()), actionCollection(), "add_arts_midi_output");
+ TQT_SLOT(addArtsMidiOutput()), actionCollection(), "add_arts_midi_output");
- (void) KStdAction::quit( this, SLOT(close()), actionCollection());
- connect(widget->connectButton,SIGNAL(clicked()), this, SLOT(slotConnect()));
- connect(widget->disconnectButton,SIGNAL(clicked()), this, SLOT(slotDisconnect()));
+ (void) KStdAction::quit( this, TQT_SLOT(close()), actionCollection());
+ connect(widget->connectButton,TQT_SIGNAL(clicked()), this, TQT_SLOT(slotConnect()));
+ connect(widget->disconnectButton,TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDisconnect()));
connectionWidget = new ConnectionWidget(this, widget->connectionFrame);
connectionWidget->setMinimumSize(60,10);
@@ -142,7 +142,7 @@ MidiManagerView::MidiManagerView()
setIcon( MainBarIcon( "artsfftscope", 32 ) );
}
-void MidiManagerView::closeEvent(QCloseEvent *e)
+void MidiManagerView::closeEvent(TQCloseEvent *e)
{
e->accept();
emit closed();
@@ -168,7 +168,7 @@ void MidiManagerView::updateLists()
widget->outputsListBox->clear();
for(i = clients->begin(); i != clients->end(); i++)
{
- QListBox *box;
+ TQListBox *box;
if(i->direction == mcdPlay)
box = widget->inputsListBox;
else
diff --git a/arts/tools/midimanagerview.h b/arts/tools/midimanagerview.h
index 9a7b773..546e1ce 100644
--- a/arts/tools/midimanagerview.h
+++ b/arts/tools/midimanagerview.h
@@ -46,7 +46,7 @@ protected:
public:
MidiManagerView();
- void closeEvent(QCloseEvent *e);
+ void closeEvent(TQCloseEvent *e);
public slots:
void updateLists();
void slotConnect();
diff --git a/arts/tools/midiportdlg.cpp b/arts/tools/midiportdlg.cpp
index 2819d00..8dd71d2 100644
--- a/arts/tools/midiportdlg.cpp
+++ b/arts/tools/midiportdlg.cpp
@@ -23,24 +23,24 @@
#include <klocale.h>
#include <kapplication.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <kseparator.h>
#include <kbuttonbox.h>
-#include <qlineedit.h>
-#include <qbutton.h>
-#include <qpushbutton.h>
+#include <tqlineedit.h>
+#include <tqbutton.h>
+#include <tqpushbutton.h>
#include <kstdguiitem.h>
-MidiPortDlg::MidiPortDlg(QWidget *parent, const char *oldname, const char *title) :QDialog(parent,title,TRUE)
+MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *title) :TQDialog(parent,title,TRUE)
{
- QVBoxLayout *mainlayout = new QVBoxLayout(this);
+ TQVBoxLayout *mainlayout = new TQVBoxLayout(this);
// caption label: title
mainlayout->addSpacing(5);
- QLabel *captionlabel = new QLabel(this);
- QFont labelfont(captionlabel->font());
+ TQLabel *captionlabel = new TQLabel(this);
+ TQFont labelfont(captionlabel->font());
labelfont.setPointSize(labelfont.pointSize()*3/2);
captionlabel->setFont(labelfont);
captionlabel->setText(i18n("OSS MIDI Port"));
@@ -57,7 +57,7 @@ MidiPortDlg::MidiPortDlg(QWidget *parent, const char *oldname, const char *title
// editwidget
- edit = new QLineEdit(this);
+ edit = new TQLineEdit(this);
edit->setText(oldname);
//min_size(edit);
@@ -72,7 +72,7 @@ MidiPortDlg::MidiPortDlg(QWidget *parent, const char *oldname, const char *title
// buttons
- QHBoxLayout *buttonlayout = new QHBoxLayout;
+ TQHBoxLayout *buttonlayout = new QHBoxLayout;
mainlayout->addSpacing(5);
mainlayout->addLayout(buttonlayout);
mainlayout->addSpacing(5);
@@ -80,13 +80,13 @@ MidiPortDlg::MidiPortDlg(QWidget *parent, const char *oldname, const char *title
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- QPushButton *helpbutton = bbox->addButton(KStdGuiItem::help(), this, SLOT( help() ));
+ TQPushButton *helpbutton = bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() ));
bbox->addStretch(1);
helpbutton->setAutoDefault( true );
helpbutton->setDefault( true );
- QPushButton *okbutton = bbox->addButton(KStdGuiItem::ok());
- connect( okbutton, SIGNAL( clicked() ), SLOT(accept() ) );
+ TQPushButton *okbutton = bbox->addButton(KStdGuiItem::ok());
+ connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
okbutton->setAutoDefault( true );
okbutton->setDefault( true );
diff --git a/arts/tools/midiportdlg.h b/arts/tools/midiportdlg.h
index ac616f8..8992776 100644
--- a/arts/tools/midiportdlg.h
+++ b/arts/tools/midiportdlg.h
@@ -22,18 +22,18 @@
#ifndef ARTS_TOOLS_MIDIPORTDLG_H
#define ARTS_TOOLS_MIDIPORTDLG_H
-#include <qdialog.h>
-#include <qtimer.h>
-#include <qlabel.h>
-#include <qscrollbar.h>
-#include <qlineedit.h>
-#include <qlayout.h>
-
-class MidiPortDlg :public QDialog {
+#include <tqdialog.h>
+#include <tqtimer.h>
+#include <tqlabel.h>
+#include <tqscrollbar.h>
+#include <tqlineedit.h>
+#include <tqlayout.h>
+
+class MidiPortDlg :public TQDialog {
Q_OBJECT
- QLineEdit *edit;
+ TQLineEdit *edit;
public:
- MidiPortDlg(QWidget *parent, const char *device, const char *title);
+ MidiPortDlg(TQWidget *parent, const char *device, const char *title);
const char *device();
public slots:
diff --git a/arts/tools/statusview.cpp b/arts/tools/statusview.cpp
index 7c1454e..c29cf4e 100644
--- a/arts/tools/statusview.cpp
+++ b/arts/tools/statusview.cpp
@@ -21,28 +21,28 @@
*/
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klocale.h>
-#include <qpushbutton.h>
-#include <qwidget.h>
-#include <qtimer.h>
-#include <qlabel.h>
+#include <tqpushbutton.h>
+#include <tqwidget.h>
+#include <tqtimer.h>
+#include <tqlabel.h>
#include "statusview.h"
using namespace std;
using namespace Arts;
-ArtsStatusView::ArtsStatusView(Arts::SoundServer a_server, QWidget* parent, const char* name )
+ArtsStatusView::ArtsStatusView(Arts::SoundServer a_server, TQWidget* parent, const char* name )
: Template_ArtsView( parent,name )
, server(a_server)
{
this->setCaption( i18n( "aRts Status" ) );
- QBoxLayout *l= new QVBoxLayout(this);
+ TQBoxLayout *l= new TQVBoxLayout(this);
//l->setAutoAdd(TRUE);
RealtimeStatus rs= server.realtimeStatus();
- l->addWidget(new QLabel(rs==rtRealtime?
+ l->addWidget(new TQLabel(rs==rtRealtime?
i18n("Artsd is running with realtime scheduling."):
rs==rtNoSupport?
i18n("Your system does not support realtime scheduling."):
@@ -54,19 +54,19 @@ ArtsStatusView::ArtsStatusView(Arts::SoundServer a_server, QWidget* parent, cons
this, "realtimeLabel"));
l->addSpacing(10);
- suspendLabel= new QLabel(i18n("Determining suspend status..."),
+ suspendLabel= new TQLabel(i18n("Determining suspend status..."),
this, "suspendLabel");
l->addWidget(suspendLabel);
l->addSpacing(6);
l->setMargin(6);
- suspendButton= new QPushButton(this, "suspendButton");
+ suspendButton= new TQPushButton(this, "suspendButton");
suspendButton->setText(i18n("&Suspend Now"));
l->addWidget(suspendButton);
- connect(suspendButton, SIGNAL(clicked()), this, SLOT(suspendButtonClicked()));
+ connect(suspendButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(suspendButtonClicked()));
- artsPollStatusTimer= new QTimer(this);
- connect(artsPollStatusTimer, SIGNAL(timeout()), this, SLOT(updateStatus()));
+ artsPollStatusTimer= new TQTimer(this);
+ connect(artsPollStatusTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(updateStatus()));
artsPollStatusTimer->start(1000);
//l->activate();
show();
diff --git a/arts/tools/statusview.h b/arts/tools/statusview.h
index 7fa1735..e1f167a 100644
--- a/arts/tools/statusview.h
+++ b/arts/tools/statusview.h
@@ -24,7 +24,7 @@
#ifndef STATUSVIEW_H
#define STATUSVIEW_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <arts/soundserver.h>
#include "templateview.h"
@@ -36,17 +36,17 @@ class QLabel;
class ArtsStatusView : public Template_ArtsView {
Q_OBJECT
public:
- ArtsStatusView(Arts::SoundServer server, QWidget* =0, const char* =0 );
+ ArtsStatusView(Arts::SoundServer server, TQWidget* =0, const char* =0 );
public slots:
void updateStatus();
void suspendButtonClicked();
protected:
- QTimer *artsPollStatusTimer;
+ TQTimer *artsPollStatusTimer;
Arts::SoundServer server;
- QLabel *suspendLabel;
- QButton *suspendButton;
+ TQLabel *suspendLabel;
+ TQButton *suspendButton;
};
#endif
diff --git a/arts/tools/templateview.cpp b/arts/tools/templateview.cpp
index 6f5a5fd..a589ff4 100644
--- a/arts/tools/templateview.cpp
+++ b/arts/tools/templateview.cpp
@@ -22,7 +22,7 @@
//#include <kdebug.h>
-Template_ArtsView::Template_ArtsView( QWidget* parent, const char* name ) : QFrame( parent,name ){
+Template_ArtsView::Template_ArtsView( TQWidget* parent, const char* name ) : TQFrame( parent,name ){
//kdDebug()<<k_funcinfo<<endl;
}
@@ -30,7 +30,7 @@ Template_ArtsView::~Template_ArtsView() {
//kdDebug()<<k_funcinfo<<endl;
}
-void Template_ArtsView::closeEvent( QCloseEvent *e ) {
+void Template_ArtsView::closeEvent( TQCloseEvent *e ) {
//kdDebug()<<k_funcinfo<<endl;
e->accept();
emit closed();
diff --git a/arts/tools/templateview.h b/arts/tools/templateview.h
index a3badea..efdd35f 100644
--- a/arts/tools/templateview.h
+++ b/arts/tools/templateview.h
@@ -22,16 +22,16 @@
#define ARTS_TEMPLATEVIEW_H
//#include <artsflow.h>
-#include <qframe.h>
+#include <tqframe.h>
class Template_ArtsView : public QFrame
{
Q_OBJECT
public:
- Template_ArtsView( QWidget* =0, const char* =0 );
+ Template_ArtsView( TQWidget* =0, const char* =0 );
~Template_ArtsView();
- void closeEvent( QCloseEvent* );
+ void closeEvent( TQCloseEvent* );
signals:
void closed();
};
diff --git a/juk/actioncollection.cpp b/juk/actioncollection.cpp
index 2ba6447..6290d6e 100644
--- a/juk/actioncollection.cpp
+++ b/juk/actioncollection.cpp
@@ -23,7 +23,7 @@ namespace ActionCollection
KActionCollection *actions()
{
static KActionCollection *a =
- new KActionCollection(static_cast<QWidget *>(0), "JuK Action Collection");
+ new KActionCollection(static_cast<TQWidget *>(0), "JuK Action Collection");
return a;
}
diff --git a/juk/advancedsearchdialog.cpp b/juk/advancedsearchdialog.cpp
index 4b5f2db..711c127 100644
--- a/juk/advancedsearchdialog.cpp
+++ b/juk/advancedsearchdialog.cpp
@@ -18,13 +18,13 @@
#include <kpushbutton.h>
#include <klocale.h>
-#include <qradiobutton.h>
-#include <qvgroupbox.h>
-#include <qlabel.h>
-#include <qhbox.h>
-#include <qvbox.h>
-#include <qlayout.h>
-#include <qhbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqvgroupbox.h>
+#include <tqlabel.h>
+#include <tqhbox.h>
+#include <tqvbox.h>
+#include <tqlayout.h>
+#include <tqhbuttongroup.h>
#include "collectionlist.h"
#include "advancedsearchdialog.h"
@@ -34,28 +34,28 @@
// public methods
////////////////////////////////////////////////////////////////////////////////
-AdvancedSearchDialog::AdvancedSearchDialog(const QString &defaultName,
+AdvancedSearchDialog::AdvancedSearchDialog(const TQString &defaultName,
const PlaylistSearch &defaultSearch,
- QWidget *parent,
+ TQWidget *parent,
const char *name) :
KDialogBase(parent, name, true, i18n("Create Search Playlist"), Ok|Cancel)
{
makeVBoxMainWidget();
- QHBox *box = new QHBox(mainWidget());
+ TQHBox *box = new TQHBox(mainWidget());
box->setSpacing(5);
- new QLabel(i18n("Playlist name:"), box);
+ new TQLabel(i18n("Playlist name:"), box);
m_playlistNameLineEdit = new KLineEdit(defaultName, box);
- QVGroupBox *criteriaGroupBox = new QVGroupBox(i18n("Search Criteria"), mainWidget());
- static_cast<QHBox *>(mainWidget())->setStretchFactor(criteriaGroupBox, 1);
+ TQVGroupBox *criteriaGroupBox = new TQVGroupBox(i18n("Search Criteria"), mainWidget());
+ static_cast<TQHBox *>(mainWidget())->setStretchFactor(criteriaGroupBox, 1);
- QHButtonGroup *group = new QHButtonGroup(criteriaGroupBox);
- m_matchAnyButton = new QRadioButton(i18n("Match any of the following"), group);
- m_matchAllButton = new QRadioButton(i18n("Match all of the following"), group);
+ TQHButtonGroup *group = new TQHButtonGroup(criteriaGroupBox);
+ m_matchAnyButton = new TQRadioButton(i18n("Match any of the following"), group);
+ m_matchAllButton = new TQRadioButton(i18n("Match all of the following"), group);
- m_criteria = new QVBox(criteriaGroupBox);
+ m_criteria = new TQVBox(criteriaGroupBox);
if(defaultSearch.isNull()) {
m_searchLines.append(new SearchLine(m_criteria));
@@ -78,21 +78,21 @@ AdvancedSearchDialog::AdvancedSearchDialog(const QString &defaultName,
m_matchAllButton->setChecked(true);
}
- QWidget *buttons = new QWidget(criteriaGroupBox);
- QBoxLayout *l = new QHBoxLayout(buttons, 0, 5);
+ TQWidget *buttons = new TQWidget(criteriaGroupBox);
+ TQBoxLayout *l = new TQHBoxLayout(buttons, 0, 5);
KPushButton *clearButton = new KPushButton(KStdGuiItem::clear(), buttons);
- connect(clearButton, SIGNAL(clicked()), SLOT(clear()));
+ connect(clearButton, TQT_SIGNAL(clicked()), TQT_SLOT(clear()));
l->addWidget(clearButton);
l->addStretch(1);
m_moreButton = new KPushButton(i18n("More"), buttons);
- connect(m_moreButton, SIGNAL(clicked()), SLOT(more()));
+ connect(m_moreButton, TQT_SIGNAL(clicked()), TQT_SLOT(more()));
l->addWidget(m_moreButton);
m_fewerButton = new KPushButton(i18n("Fewer"), buttons);
- connect(m_fewerButton, SIGNAL(clicked()), SLOT(fewer()));
+ connect(m_fewerButton, TQT_SIGNAL(clicked()), TQT_SLOT(fewer()));
l->addWidget(m_fewerButton);
m_playlistNameLineEdit->setFocus();
@@ -127,7 +127,7 @@ void AdvancedSearchDialog::accept()
m_search.addPlaylist(CollectionList::instance());
- QValueListConstIterator<SearchLine *> it = m_searchLines.begin();
+ TQValueListConstIterator<SearchLine *> it = m_searchLines.begin();
for(; it != m_searchLines.end(); ++it)
m_search.addComponent((*it)->searchComponent());
@@ -141,7 +141,7 @@ void AdvancedSearchDialog::accept()
void AdvancedSearchDialog::clear()
{
- QValueListConstIterator<SearchLine *> it = m_searchLines.begin();
+ TQValueListConstIterator<SearchLine *> it = m_searchLines.begin();
for(; it != m_searchLines.end(); ++it)
(*it)->clear();
}
diff --git a/juk/advancedsearchdialog.h b/juk/advancedsearchdialog.h
index 03280d1..3cfb716 100644
--- a/juk/advancedsearchdialog.h
+++ b/juk/advancedsearchdialog.h
@@ -33,12 +33,12 @@ public:
{
DialogCode result;
PlaylistSearch search;
- QString playlistName;
+ TQString playlistName;
};
- AdvancedSearchDialog(const QString &defaultName,
+ AdvancedSearchDialog(const TQString &defaultName,
const PlaylistSearch &defaultSearch = PlaylistSearch(),
- QWidget *parent = 0,
+ TQWidget *parent = 0,
const char *name = 0);
virtual ~AdvancedSearchDialog();
@@ -55,13 +55,13 @@ protected slots:
private:
void updateButtons();
- QWidget *m_criteria;
+ TQWidget *m_criteria;
PlaylistSearch m_search;
- QString m_playlistName;
- QValueList<SearchLine *> m_searchLines;
+ TQString m_playlistName;
+ TQValueList<SearchLine *> m_searchLines;
KLineEdit *m_playlistNameLineEdit;
- QRadioButton *m_matchAnyButton;
- QRadioButton *m_matchAllButton;
+ TQRadioButton *m_matchAnyButton;
+ TQRadioButton *m_matchAllButton;
KPushButton *m_moreButton;
KPushButton *m_fewerButton;
};
diff --git a/juk/akodeplayer.cpp b/juk/akodeplayer.cpp
index 0d75d83..89b0c09 100644
--- a/juk/akodeplayer.cpp
+++ b/juk/akodeplayer.cpp
@@ -18,7 +18,7 @@
#include <kdebug.h>
-#include <qfile.h>
+#include <tqfile.h>
#include <akode/player.h>
#include <akode/decoder.h>
@@ -53,7 +53,7 @@ void aKodePlayer::play(const FileHandle &file)
return;
}
- QString filename = file.absFilePath();
+ TQString filename = file.absFilePath();
kdDebug( 65432 ) << "Opening: " << filename << endl;
diff --git a/juk/akodeplayer.h b/juk/akodeplayer.h
index 6b44f2f..07181ba 100644
--- a/juk/akodeplayer.h
+++ b/juk/akodeplayer.h
@@ -20,7 +20,7 @@
#ifdef HAVE_AKODE
-#include <qstring.h>
+#include <tqstring.h>
#include "player.h"
#include <kdemacros.h>
diff --git a/juk/artsplayer.cpp b/juk/artsplayer.cpp
index 410a635..4022b0f 100644
--- a/juk/artsplayer.cpp
+++ b/juk/artsplayer.cpp
@@ -24,7 +24,7 @@
#include <kconfig.h>
#include <kstandarddirs.h>
-#include <qdir.h>
+#include <tqdir.h>
#include <kartsserver.h>
#include <kartsdispatcher.h>
@@ -84,7 +84,7 @@ void ArtsPlayer::play(const FileHandle &file)
m_playobject = m_factory->createPlayObject(m_currentURL, false);
if(m_playobject->object().isNull())
- connect(m_playobject, SIGNAL(playObjectCreated()), SLOT(playObjectCreated()));
+ connect(m_playobject, TQT_SIGNAL(playObjectCreated()), TQT_SLOT(playObjectCreated()));
else
playObjectCreated();
}
@@ -251,7 +251,7 @@ void ArtsPlayer::setupPlayer()
m_dispatcher = new KArtsDispatcher;
m_server = new KArtsServer;
setupArtsObjects();
- connect(m_server, SIGNAL(restartedServer()), SLOT(setupArtsObjects()));
+ connect(m_server, TQT_SIGNAL(restartedServer()), TQT_SLOT(setupArtsObjects()));
}
void ArtsPlayer::setupVolumeControl()
diff --git a/juk/artsplayer.h b/juk/artsplayer.h
index 2c1306e..73601b3 100644
--- a/juk/artsplayer.h
+++ b/juk/artsplayer.h
@@ -27,8 +27,8 @@
#include <kurl.h>
-#include <qstring.h>
-#include <qobject.h>
+#include <tqstring.h>
+#include <tqobject.h>
#include <artsflow.h>
class KArtsDispatcher;
diff --git a/juk/cache.cpp b/juk/cache.cpp
index 3f37ee4..ada9334 100644
--- a/juk/cache.cpp
+++ b/juk/cache.cpp
@@ -20,8 +20,8 @@
#include <kactionclasses.h>
#include <kdebug.h>
-#include <qdir.h>
-#include <qbuffer.h>
+#include <tqdir.h>
+#include <tqbuffer.h>
#include "cache.h"
#include "tag.h"
@@ -66,23 +66,23 @@ Cache *Cache::instance()
void Cache::save()
{
- QString dirName = KGlobal::dirs()->saveLocation("appdata");
- QString cacheFileName = dirName + "cache.new";
+ TQString dirName = KGlobal::dirs()->saveLocation("appdata");
+ TQString cacheFileName = dirName + "cache.new";
- QFile f(cacheFileName);
+ TQFile f(cacheFileName);
if(!f.open(IO_WriteOnly))
return;
- QByteArray data;
- QDataStream s(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream s(data, IO_WriteOnly);
for(Iterator it = begin(); it != end(); ++it) {
s << (*it).absFilePath();
s << *it;
}
- QDataStream fs(&f);
+ TQDataStream fs(&f);
Q_INT32 checksum = qChecksum(data.data(), data.size());
@@ -92,19 +92,19 @@ void Cache::save()
f.close();
- QDir(dirName).rename("cache.new", "cache");
+ TQDir(dirName).rename("cache.new", "cache");
}
void Cache::loadPlaylists(PlaylistCollection *collection) // static
{
- QString playlistsFile = KGlobal::dirs()->saveLocation("appdata") + "playlists";
+ TQString playlistsFile = KGlobal::dirs()->saveLocation("appdata") + "playlists";
- QFile f(playlistsFile);
+ TQFile f(playlistsFile);
if(!f.open(IO_ReadOnly))
return;
- QDataStream fs(&f);
+ TQDataStream fs(&f);
Q_INT32 version;
fs >> version;
@@ -116,7 +116,7 @@ void Cache::loadPlaylists(PlaylistCollection *collection) // static
// Our checksum is only for the values after the version and checksum so
// we want to get a byte array with just the checksummed data.
- QByteArray data;
+ TQByteArray data;
Q_UINT16 checksum;
fs >> checksum >> data;
@@ -125,7 +125,7 @@ void Cache::loadPlaylists(PlaylistCollection *collection) // static
// Create a new stream just based on the data.
- QDataStream s(data, IO_ReadOnly);
+ TQDataStream s(data, IO_ReadOnly);
while(!s.atEnd()) {
@@ -204,15 +204,15 @@ void Cache::loadPlaylists(PlaylistCollection *collection) // static
void Cache::savePlaylists(const PlaylistList &playlists)
{
- QString dirName = KGlobal::dirs()->saveLocation("appdata");
- QString playlistsFile = dirName + "playlists.new";
- QFile f(playlistsFile);
+ TQString dirName = KGlobal::dirs()->saveLocation("appdata");
+ TQString playlistsFile = dirName + "playlists.new";
+ TQFile f(playlistsFile);
if(!f.open(IO_WriteOnly))
return;
- QByteArray data;
- QDataStream s(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream s(data, IO_WriteOnly);
for(PlaylistList::ConstIterator it = playlists.begin(); it != playlists.end(); ++it) {
if(*it) {
@@ -242,19 +242,19 @@ void Cache::savePlaylists(const PlaylistList &playlists)
}
}
- QDataStream fs(&f);
+ TQDataStream fs(&f);
fs << Q_INT32(playlistCacheVersion);
fs << qChecksum(data.data(), data.size());
fs << data;
f.close();
- QDir(dirName).rename("playlists.new", "playlists");
+ TQDir(dirName).rename("playlists.new", "playlists");
}
bool Cache::cacheFileExists() // static
{
- return QFile::exists(KGlobal::dirs()->saveLocation("appdata") + "cache");
+ return TQFile::exists(KGlobal::dirs()->saveLocation("appdata") + "cache");
}
////////////////////////////////////////////////////////////////////////////////
@@ -268,9 +268,9 @@ Cache::Cache() : FileHandleHash()
void Cache::load()
{
- QString cacheFileName = KGlobal::dirs()->saveLocation("appdata") + "cache";
+ TQString cacheFileName = KGlobal::dirs()->saveLocation("appdata") + "cache";
- QFile f(cacheFileName);
+ TQFile f(cacheFileName);
if(!f.open(IO_ReadOnly))
return;
@@ -280,7 +280,7 @@ void Cache::load()
Q_INT32 version;
s >> version;
- QBuffer buffer;
+ TQBuffer buffer;
// Do the version specific stuff.
@@ -289,7 +289,7 @@ void Cache::load()
s.setCacheVersion(1);
Q_INT32 checksum;
- QByteArray data;
+ TQByteArray data;
s >> checksum
>> data;
@@ -314,7 +314,7 @@ void Cache::load()
// Read the cached tags.
while(!s.atEnd()) {
- QString fileName;
+ TQString fileName;
s >> fileName;
fileName.squeeze();
diff --git a/juk/cache.h b/juk/cache.h
index 09f6906..6d67f1f 100644
--- a/juk/cache.h
+++ b/juk/cache.h
@@ -23,7 +23,7 @@ class Tag;
class Playlist;
class PlaylistCollection;
-typedef QValueList<Playlist *> PlaylistList;
+typedef TQValueList<Playlist *> PlaylistList;
class Cache : public FileHandleHash
{
@@ -45,15 +45,15 @@ private:
};
/**
- * A simple QDataStream subclass that has an extra field to indicate the cache
+ * A simple TQDataStream subclass that has an extra field to indicate the cache
* version.
*/
class CacheDataStream : public QDataStream
{
public:
- CacheDataStream(QIODevice *d) : QDataStream(d), m_cacheVersion(0) {}
- CacheDataStream(QByteArray a, int mode) : QDataStream(a, mode), m_cacheVersion(0) {}
+ CacheDataStream(TQIODevice *d) : TQDataStream(d), m_cacheVersion(0) {}
+ CacheDataStream(TQByteArray a, int mode) : TQDataStream(a, mode), m_cacheVersion(0) {}
virtual ~CacheDataStream() {}
diff --git a/juk/categoryreaderinterface.cpp b/juk/categoryreaderinterface.cpp
index f9f7310..3844fc2 100644
--- a/juk/categoryreaderinterface.cpp
+++ b/juk/categoryreaderinterface.cpp
@@ -13,14 +13,14 @@
* *
***************************************************************************/
-#include <qstring.h>
+#include <tqstring.h>
#include "filerenameroptions.h"
#include "categoryreaderinterface.h"
-QString CategoryReaderInterface::value(const CategoryID &category) const
+TQString CategoryReaderInterface::value(const CategoryID &category) const
{
- QString value = categoryValue(category.category).stripWhiteSpace();
+ TQString value = categoryValue(category.category).stripWhiteSpace();
if(category.category == Track)
value = fixupTrack(value, category.categoryNumber).stripWhiteSpace();
@@ -41,22 +41,22 @@ bool CategoryReaderInterface::isEmpty(TagType category) const
return categoryValue(category).isEmpty();
}
-QString CategoryReaderInterface::fixupTrack(const QString &track, unsigned categoryNum) const
+TQString CategoryReaderInterface::fixupTrack(const TQString &track, unsigned categoryNum) const
{
- QString str(track);
+ TQString str(track);
CategoryID trackId(Track, categoryNum);
if(track == "0") {
if(emptyAction(trackId) == TagRenamerOptions::UseReplacementValue)
str = emptyText(trackId);
else
- return QString::null;
+ return TQString::null;
}
unsigned minimumWidth = trackWidth(categoryNum);
if(str.length() < minimumWidth) {
- QString prefix;
+ TQString prefix;
prefix.fill('0', minimumWidth - str.length());
return prefix + str;
}
diff --git a/juk/categoryreaderinterface.h b/juk/categoryreaderinterface.h
index 5d2dfd0..2b037c1 100644
--- a/juk/categoryreaderinterface.h
+++ b/juk/categoryreaderinterface.h
@@ -43,7 +43,7 @@ public:
* @param type, The category to retrieve the value of.
* @return textual representation of that category's value.
*/
- virtual QString categoryValue(TagType type) const = 0;
+ virtual TQString categoryValue(TagType type) const = 0;
/**
* Returns the user-specified prefix string for \p category.
@@ -51,7 +51,7 @@ public:
* @param category the category to retrieve the value for.
* @return user-specified prefix string for \p category.
*/
- virtual QString prefix(const CategoryID &category) const = 0;
+ virtual TQString prefix(const CategoryID &category) const = 0;
/**
* Returns the user-specified suffix string for \p category.
@@ -59,7 +59,7 @@ public:
* @param category the category to retrieve the value for.
* @return user-specified suffix string for \p category.
*/
- virtual QString suffix(const CategoryID &category) const = 0;
+ virtual TQString suffix(const CategoryID &category) const = 0;
/**
* Returns the user-specified empty action for \p category.
@@ -76,14 +76,14 @@ public:
* @param category the category to retrieve the value for.
* @return the user-specified empty text for \p category.
*/
- virtual QString emptyText(const CategoryID &category) const = 0;
+ virtual TQString emptyText(const CategoryID &category) const = 0;
/**
* @return the categories in the order the user has chosen. Categories may
* be repeated (which is why CategoryID has the categoryNumber value to
* disambiguate duplicates).
*/
- virtual QValueList<CategoryID> categoryOrder() const = 0;
+ virtual TQValueList<CategoryID> categoryOrder() const = 0;
/**
* @return track width for the Track item identified by categoryNum.
@@ -91,11 +91,11 @@ public:
virtual int trackWidth(unsigned categoryNum) const = 0;
// You probably shouldn't reimplement this
- virtual QString value(const CategoryID &category) const;
+ virtual TQString value(const CategoryID &category) const;
- virtual QString separator() const = 0;
+ virtual TQString separator() const = 0;
- virtual QString musicFolder() const = 0;
+ virtual TQString musicFolder() const = 0;
/**
* @param index the zero-based index of the item just before the
@@ -114,7 +114,7 @@ public:
virtual bool isEmpty(TagType category) const;
// You probably shouldn't reimplement this
- virtual QString fixupTrack(const QString &track, unsigned categoryNum) const;
+ virtual TQString fixupTrack(const TQString &track, unsigned categoryNum) const;
};
#endif /* JUK_CATEGORYREADERINTERFACE_H */
diff --git a/juk/collectionlist.cpp b/juk/collectionlist.cpp
index 9540be8..5c06049 100644
--- a/juk/collectionlist.cpp
+++ b/juk/collectionlist.cpp
@@ -85,7 +85,7 @@ void CollectionList::initialize(PlaylistCollection *collection)
// public methods
////////////////////////////////////////////////////////////////////////////////
-PlaylistItem *CollectionList::createItem(const FileHandle &file, QListViewItem *, bool)
+PlaylistItem *CollectionList::createItem(const FileHandle &file, TQListViewItem *, bool)
{
// It's probably possible to optimize the line below away, but, well, right
// now it's more important to not load duplicate items.
@@ -125,13 +125,13 @@ void CollectionList::setupTreeViewEntries(ViewMode *viewMode) const
return;
}
- QValueList<int> columnList;
+ TQValueList<int> columnList;
columnList << PlaylistItem::ArtistColumn;
columnList << PlaylistItem::GenreColumn;
columnList << PlaylistItem::AlbumColumn;
- QStringList items;
- for(QValueList<int>::Iterator colIt = columnList.begin(); colIt != columnList.end(); ++colIt) {
+ TQStringList items;
+ for(TQValueList<int>::Iterator colIt = columnList.begin(); colIt != columnList.end(); ++colIt) {
items.clear();
for(TagCountDictIterator it(*m_columnTags[*colIt]); it.current(); ++it)
items << it.currentKey();
@@ -142,7 +142,7 @@ void CollectionList::setupTreeViewEntries(ViewMode *viewMode) const
void CollectionList::slotNewItems(const KFileItemList &items)
{
- QStringList files;
+ TQStringList files;
for(KFileItemListIterator it(items); it.current(); ++it)
files.append((*it)->url().path());
@@ -200,7 +200,7 @@ void CollectionList::slotCheckCache()
{
PlaylistItemList invalidItems;
- for(QDictIterator<CollectionListItem>it(m_itemsDict); it.current(); ++it) {
+ for(TQDictIterator<CollectionListItem>it(m_itemsDict); it.current(); ++it) {
if(!it.current()->checkCurrent())
invalidItems.append(*it);
processEvents();
@@ -209,12 +209,12 @@ void CollectionList::slotCheckCache()
clearItems(invalidItems);
}
-void CollectionList::slotRemoveItem(const QString &file)
+void CollectionList::slotRemoveItem(const TQString &file)
{
clearItem(m_itemsDict[file]);
}
-void CollectionList::slotRefreshItem(const QString &file)
+void CollectionList::slotRefreshItem(const TQString &file)
{
m_itemsDict[file]->refresh();
}
@@ -230,12 +230,12 @@ CollectionList::CollectionList(PlaylistCollection *collection) :
{
new KAction(i18n("Show Playing"), KShortcut(), actions(), "showPlaying");
- connect(action("showPlaying"), SIGNAL(activated()), this, SLOT(slotShowPlaying()));
+ connect(action("showPlaying"), TQT_SIGNAL(activated()), this, TQT_SLOT(slotShowPlaying()));
- connect(action<KToolBarPopupAction>("back")->popupMenu(), SIGNAL(aboutToShow()),
- this, SLOT(slotPopulateBackMenu()));
- connect(action<KToolBarPopupAction>("back")->popupMenu(), SIGNAL(activated(int)),
- this, SLOT(slotPlayFromBackMenu(int)));
+ connect(action<KToolBarPopupAction>("back")->popupMenu(), TQT_SIGNAL(aboutToShow()),
+ this, TQT_SLOT(slotPopulateBackMenu()));
+ connect(action<KToolBarPopupAction>("back")->popupMenu(), TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotPlayFromBackMenu(int)));
setSorting(-1); // Temporarily disable sorting to add items faster.
m_columnTags[PlaylistItem::ArtistColumn] = new TagCountDict(5001, false);
@@ -265,7 +265,7 @@ CollectionList::~CollectionList()
delete *it;
}
-void CollectionList::contentsDropEvent(QDropEvent *e)
+void CollectionList::contentsDropEvent(TQDropEvent *e)
{
if(e->source() == this)
return; // Don't rearrange in the CollectionList.
@@ -273,7 +273,7 @@ void CollectionList::contentsDropEvent(QDropEvent *e)
Playlist::contentsDropEvent(e);
}
-void CollectionList::contentsDragMoveEvent(QDragMoveEvent *e)
+void CollectionList::contentsDragMoveEvent(TQDragMoveEvent *e)
{
if(canDecode(e) && e->source() != this)
e->accept(true);
@@ -281,10 +281,10 @@ void CollectionList::contentsDragMoveEvent(QDragMoveEvent *e)
e->accept(false);
}
-QString CollectionList::addStringToDict(const QString &value, unsigned column)
+TQString CollectionList::addStringToDict(const TQString &value, unsigned column)
{
if(column > m_columnTags.count() || value.stripWhiteSpace().isEmpty())
- return QString::null;
+ return TQString::null;
int *refCountPtr = m_columnTags[column]->find(value);
if(refCountPtr)
@@ -297,7 +297,7 @@ QString CollectionList::addStringToDict(const QString &value, unsigned column)
return value;
}
-QStringList CollectionList::uniqueSet(UniqueSetType t) const
+TQStringList CollectionList::uniqueSet(UniqueSetType t) const
{
int column;
@@ -316,14 +316,14 @@ QStringList CollectionList::uniqueSet(UniqueSetType t) const
break;
default:
- return QStringList();
+ return TQStringList();
}
if((unsigned) column >= m_columnTags.count())
- return QStringList();
+ return TQStringList();
TagCountDictIterator it(*m_columnTags[column]);
- QStringList list;
+ TQStringList list;
for(; it.current(); ++it)
list += it.currentKey();
@@ -331,7 +331,7 @@ QStringList CollectionList::uniqueSet(UniqueSetType t) const
return list;
}
-void CollectionList::removeStringFromDict(const QString &value, unsigned column)
+void CollectionList::removeStringFromDict(const TQString &value, unsigned column)
{
if(column > m_columnTags.count() || value.isEmpty())
return;
@@ -363,7 +363,7 @@ void CollectionListItem::refresh()
if(id != TrackNumberColumn && id != LengthColumn) {
// All columns other than track num and length need local-encoded data for sorting
- QCString lower = text(i).lower().local8Bit();
+ TQCString lower = text(i).lower().local8Bit();
// For some columns, we may be able to share some strings
@@ -417,7 +417,7 @@ PlaylistItem *CollectionListItem::itemForPlaylist(const Playlist *playlist)
return 0;
}
-void CollectionListItem::updateCollectionDict(const QString &oldPath, const QString &newPath)
+void CollectionListItem::updateCollectionDict(const TQString &oldPath, const TQString &newPath)
{
CollectionList *collection = CollectionList::instance();
@@ -430,7 +430,7 @@ void CollectionListItem::updateCollectionDict(const QString &oldPath, const QStr
void CollectionListItem::repaint() const
{
- QListViewItem::repaint();
+ TQListViewItem::repaint();
for(PlaylistItemList::ConstIterator it = m_children.begin(); it != m_children.end(); ++it)
(*it)->repaint();
}
diff --git a/juk/collectionlist.h b/juk/collectionlist.h
index c5cafca..4143889 100644
--- a/juk/collectionlist.h
+++ b/juk/collectionlist.h
@@ -20,9 +20,9 @@
#include <kdirwatch.h>
#include <kfileitem.h>
-#include <qdict.h>
-#include <qclipboard.h>
-#include <qvaluevector.h>
+#include <tqdict.h>
+#include <tqclipboard.h>
+#include <tqvaluevector.h>
#include "playlist.h"
#include "playlistitem.h"
@@ -32,21 +32,21 @@ class CollectionListItem;
class ViewMode;
/**
- * This type is for mapping QString track attributes like the album, artist
+ * This type is for mapping TQString track attributes like the album, artist
* and track to an integer count representing the number of outstanding items
* that hold the string.
*/
-typedef QDict<int> TagCountDict;
-typedef QDictIterator<int> TagCountDictIterator;
+typedef TQDict<int> TagCountDict;
+typedef TQDictIterator<int> TagCountDictIterator;
/**
* We then have an array of dicts, one for each column in the list view. We
- * use pointers to TagCountDicts because QDict has a broken copy ctor, which
+ * use pointers to TagCountDicts because TQDict has a broken copy ctor, which
* doesn't copy the case sensitivity setting.
*/
-typedef QValueVector<TagCountDict*> TagCountDicts;
+typedef TQValueVector<TagCountDict*> TagCountDicts;
/**
* This is the "collection", or all of the music files that have been opened
@@ -78,12 +78,12 @@ public:
/**
* Returns a unique set of values associated with the type specified.
*/
- QStringList uniqueSet(UniqueSetType t) const;
+ TQStringList uniqueSet(UniqueSetType t) const;
- CollectionListItem *lookup(const QString &file) { return m_itemsDict.find(file); }
+ CollectionListItem *lookup(const TQString &file) { return m_itemsDict.find(file); }
virtual PlaylistItem *createItem(const FileHandle &file,
- QListViewItem * = 0,
+ TQListViewItem * = 0,
bool = false);
void emitVisibleColumnsChanged() { emit signalVisibleColumnsChanged(); }
@@ -99,8 +99,8 @@ public slots:
virtual void clear();
void slotCheckCache();
- void slotRemoveItem(const QString &file);
- void slotRefreshItem(const QString &file);
+ void slotRemoveItem(const TQString &file);
+ void slotRefreshItem(const TQString &file);
void slotNewItems(const KFileItemList &items);
void slotRefreshItems(const KFileItemList &items);
@@ -110,24 +110,24 @@ protected:
CollectionList(PlaylistCollection *collection);
virtual ~CollectionList();
- virtual void contentsDropEvent(QDropEvent *e);
- virtual void contentsDragMoveEvent(QDragMoveEvent *e);
+ virtual void contentsDropEvent(TQDropEvent *e);
+ virtual void contentsDragMoveEvent(TQDragMoveEvent *e);
// These methods are used by CollectionListItem, which is a friend class.
- void addToDict(const QString &file, CollectionListItem *item) { m_itemsDict.replace(file, item); }
- void removeFromDict(const QString &file) { m_itemsDict.remove(file); }
+ void addToDict(const TQString &file, CollectionListItem *item) { m_itemsDict.replace(file, item); }
+ void removeFromDict(const TQString &file) { m_itemsDict.remove(file); }
// These methods are also used by CollectionListItem, to manage the
// strings used in generating the unique sets and tree view mode playlists.
- QString addStringToDict(const QString &value, unsigned column);
- void removeStringFromDict(const QString &value, unsigned column);
+ TQString addStringToDict(const TQString &value, unsigned column);
+ void removeStringFromDict(const TQString &value, unsigned column);
- void addWatched(const QString &file) { m_dirWatch->addFile(file); }
- void removeWatched(const QString &file) { m_dirWatch->removeFile(file); }
+ void addWatched(const TQString &file) { m_dirWatch->addFile(file); }
+ void removeWatched(const TQString &file) { m_dirWatch->removeFile(file); }
- virtual bool hasItem(const QString &file) const { return m_itemsDict.find(file); }
+ virtual bool hasItem(const TQString &file) const { return m_itemsDict.find(file); }
signals:
void signalCollectionChanged();
@@ -140,8 +140,8 @@ signals:
* \see Playlsit::isColumnVisible()
*/
void signalVisibleColumnsChanged();
- void signalNewTag(const QString &, unsigned);
- void signalRemovedTag(const QString &, unsigned);
+ void signalNewTag(const TQString &, unsigned);
+ void signalRemovedTag(const TQString &, unsigned);
private:
/**
@@ -151,7 +151,7 @@ private:
static const int m_uniqueSetCount = 3;
static CollectionList *m_list;
- QDict<CollectionListItem> m_itemsDict;
+ TQDict<CollectionListItem> m_itemsDict;
KDirWatch *m_dirWatch;
TagCountDicts m_columnTags;
};
@@ -163,14 +163,14 @@ class CollectionListItem : public PlaylistItem
friend class PlaylistItem;
/**
- * Needs access to the destructor, even though the destructor isn't used by QDict.
+ * Needs access to the destructor, even though the destructor isn't used by TQDict.
*/
- friend class QDict<CollectionListItem>;
+ friend class TQDict<CollectionListItem>;
public:
virtual void refresh();
PlaylistItem *itemForPlaylist(const Playlist *playlist);
- void updateCollectionDict(const QString &oldPath, const QString &newPath);
+ void updateCollectionDict(const TQString &oldPath, const TQString &newPath);
void repaint() const;
PlaylistItemList children() const { return m_children; }
diff --git a/juk/coverdialog.cpp b/juk/coverdialog.cpp
index cdb9853..509f069 100644
--- a/juk/coverdialog.cpp
+++ b/juk/coverdialog.cpp
@@ -21,8 +21,8 @@
#include <kpopupmenu.h>
#include <klocale.h>
-#include <qtimer.h>
-#include <qtoolbutton.h>
+#include <tqtimer.h>
+#include <tqtoolbutton.h>
#include "coverdialog.h"
#include "covericonview.h"
@@ -34,12 +34,12 @@ using CoverUtility::CoverIconViewItem;
class AllArtistsListViewItem : public KListViewItem
{
public:
- AllArtistsListViewItem(QListView *parent) :
+ AllArtistsListViewItem(TQListView *parent) :
KListViewItem(parent, i18n("<All Artists>"))
{
}
- int compare(QListViewItem *, int, bool) const
+ int compare(TQListViewItem *, int, bool) const
{
return -1; // Always be at the top.
}
@@ -48,22 +48,22 @@ public:
class CaseInsensitiveItem : public KListViewItem
{
public:
- CaseInsensitiveItem(QListView *parent, const QString &text) :
+ CaseInsensitiveItem(TQListView *parent, const TQString &text) :
KListViewItem(parent, text)
{
}
- int compare(QListViewItem *item, int column, bool ascending) const
+ int compare(TQListViewItem *item, int column, bool ascending) const
{
Q_UNUSED(ascending);
return text(column).lower().localeAwareCompare(item->text(column).lower());
}
};
-CoverDialog::CoverDialog(QWidget *parent) :
+CoverDialog::CoverDialog(TQWidget *parent) :
CoverDialogBase(parent, "juk_cover_dialog", WType_Dialog)
{
- m_covers->setResizeMode(QIconView::Adjust);
+ m_covers->setResizeMode(TQIconView::Adjust);
m_covers->setGridX(140);
m_covers->setGridY(150);
@@ -80,16 +80,16 @@ void CoverDialog::show()
m_artists->clear();
m_covers->clear();
- QStringList artists = CollectionList::instance()->uniqueSet(CollectionList::Artists);
+ TQStringList artists = CollectionList::instance()->uniqueSet(CollectionList::Artists);
m_artists->setSorting(-1);
new AllArtistsListViewItem(m_artists);
- for(QStringList::ConstIterator it = artists.begin(); it != artists.end(); ++it)
+ for(TQStringList::ConstIterator it = artists.begin(); it != artists.end(); ++it)
new CaseInsensitiveItem(m_artists, *it);
m_artists->setSorting(0);
- QTimer::singleShot(0, this, SLOT(loadCovers()));
+ TQTimer::singleShot(0, this, TQT_SLOT(loadCovers()));
CoverDialogBase::show();
}
@@ -97,8 +97,8 @@ void CoverDialog::show()
// covers.
void CoverDialog::loadCovers()
{
- QValueList<coverKey> keys = CoverManager::keys();
- QValueList<coverKey>::ConstIterator it;
+ TQValueList<coverKey> keys = CoverManager::keys();
+ TQValueList<coverKey>::ConstIterator it;
int i = 0;
for(it = keys.begin(); it != keys.end(); ++it) {
@@ -112,7 +112,7 @@ void CoverDialog::loadCovers()
}
// TODO: Add a way to show cover art for tracks with no artist.
-void CoverDialog::slotArtistClicked(QListViewItem *item)
+void CoverDialog::slotArtistClicked(TQListViewItem *item)
{
m_covers->clear();
@@ -121,9 +121,9 @@ void CoverDialog::slotArtistClicked(QListViewItem *item)
loadCovers();
}
else {
- QString artist = item->text(0).lower();
- QValueList<coverKey> keys = CoverManager::keys();
- QValueList<coverKey>::ConstIterator it;
+ TQString artist = item->text(0).lower();
+ TQValueList<coverKey> keys = CoverManager::keys();
+ TQValueList<coverKey>::ConstIterator it;
for(it = keys.begin(); it != keys.end(); ++it) {
CoverDataPtr data = CoverManager::coverInfo(*it);
@@ -133,7 +133,7 @@ void CoverDialog::slotArtistClicked(QListViewItem *item)
}
}
-void CoverDialog::slotContextRequested(QIconViewItem *item, const QPoint &pt)
+void CoverDialog::slotContextRequested(TQIconViewItem *item, const TQPoint &pt)
{
static KPopupMenu *menu = 0;
@@ -142,7 +142,7 @@ void CoverDialog::slotContextRequested(QIconViewItem *item, const QPoint &pt)
if(!menu) {
menu = new KPopupMenu(this);
- menu->insertItem(i18n("Remove Cover"), this, SLOT(removeSelectedCover()));
+ menu->insertItem(i18n("Remove Cover"), this, TQT_SLOT(removeSelectedCover()));
}
menu->popup(pt);
diff --git a/juk/coverdialog.h b/juk/coverdialog.h
index 3ced0d7..751f77c 100644
--- a/juk/coverdialog.h
+++ b/juk/coverdialog.h
@@ -22,14 +22,14 @@ class CoverDialog : public CoverDialogBase
{
Q_OBJECT
public:
- CoverDialog(QWidget *parent);
+ CoverDialog(TQWidget *parent);
~CoverDialog();
virtual void show();
public slots:
- void slotArtistClicked(QListViewItem *item);
- void slotContextRequested(QIconViewItem *item, const QPoint &pt);
+ void slotArtistClicked(TQListViewItem *item);
+ void slotContextRequested(TQIconViewItem *item, const TQPoint &pt);
private slots:
void loadCovers();
diff --git a/juk/covericonview.cpp b/juk/covericonview.cpp
index 88defca..fc400e7 100644
--- a/juk/covericonview.cpp
+++ b/juk/covericonview.cpp
@@ -18,15 +18,15 @@
using CoverUtility::CoverIconViewItem;
-CoverIconViewItem::CoverIconViewItem(coverKey id, QIconView *parent) :
+CoverIconViewItem::CoverIconViewItem(coverKey id, TQIconView *parent) :
KIconViewItem(parent), m_id(id)
{
CoverDataPtr data = CoverManager::coverInfo(id);
- setText(QString("%1 - %2").arg(data->artist, data->album));
+ setText(TQString("%1 - %2").arg(data->artist, data->album));
setPixmap(data->thumbnail());
}
-CoverIconView::CoverIconView(QWidget *parent, const char *name) : KIconView(parent, name)
+CoverIconView::CoverIconView(TQWidget *parent, const char *name) : KIconView(parent, name)
{
setResizeMode(Adjust);
}
@@ -36,7 +36,7 @@ CoverIconViewItem *CoverIconView::currentItem() const
return static_cast<CoverIconViewItem *>(KIconView::currentItem());
}
-QDragObject *CoverIconView::dragObject()
+TQDragObject *CoverIconView::dragObject()
{
CoverIconViewItem *item = currentItem();
if(item)
diff --git a/juk/covericonview.h b/juk/covericonview.h
index 4126cb3..42e44d6 100644
--- a/juk/covericonview.h
+++ b/juk/covericonview.h
@@ -29,7 +29,7 @@ namespace CoverUtility
class CoverIconViewItem : public KIconViewItem
{
public:
- CoverIconViewItem(coverKey id, QIconView *parent);
+ CoverIconViewItem(coverKey id, TQIconView *parent);
coverKey id() const { return m_id; }
@@ -49,12 +49,12 @@ using CoverUtility::CoverIconViewItem;
class CoverIconView : public KIconView
{
public:
- CoverIconView(QWidget *parent, const char *name);
+ CoverIconView(TQWidget *parent, const char *name);
CoverIconViewItem *currentItem() const;
protected:
- virtual QDragObject *dragObject();
+ virtual TQDragObject *dragObject();
};
#endif /* JUK_COVERICONVIEW_H */
diff --git a/juk/coverinfo.cpp b/juk/coverinfo.cpp
index 243bc42..67e8514 100644
--- a/juk/coverinfo.cpp
+++ b/juk/coverinfo.cpp
@@ -18,10 +18,10 @@
#include <kstandarddirs.h>
#include <kdebug.h>
-#include <qregexp.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcursor.h>
+#include <tqregexp.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcursor.h>
#include "collectionlist.h"
#include "playlistsearch.h"
@@ -31,22 +31,22 @@
struct CoverPopup : public QWidget
{
- CoverPopup(const QPixmap &image, const QPoint &p) :
- QWidget(0, 0, WDestructiveClose | WX11BypassWM)
+ CoverPopup(const TQPixmap &image, const TQPoint &p) :
+ TQWidget(0, 0, WDestructiveClose | WX11BypassWM)
{
- QHBoxLayout *layout = new QHBoxLayout(this);
- QLabel *label = new QLabel(this);
+ TQHBoxLayout *layout = new TQHBoxLayout(this);
+ TQLabel *label = new TQLabel(this);
layout->addWidget(label);
- label->setFrameStyle(QFrame::Box | QFrame::Raised);
+ label->setFrameStyle(TQFrame::Box | TQFrame::Raised);
label->setLineWidth(1);
label->setPixmap(image);
setGeometry(p.x(), p.y(), label->width(), label->height());
show();
}
- virtual void leaveEvent(QEvent *) { close(); }
- virtual void mouseReleaseEvent(QMouseEvent *) { close(); }
+ virtual void leaveEvent(TQEvent *) { close(); }
+ virtual void mouseReleaseEvent(TQMouseEvent *) { close(); }
};
////////////////////////////////////////////////////////////////////////////////
@@ -85,7 +85,7 @@ bool CoverInfo::hasCover()
// We *still* don't have it? Check the old-style covers then.
if(!m_hasCover) {
- m_hasCover = QFile(coverLocation(FullSize)).exists();
+ m_hasCover = TQFile(coverLocation(FullSize)).exists();
if(m_hasCover)
m_needsConverting = true;
@@ -109,7 +109,7 @@ void CoverInfo::clearCover()
m_coverKey = CoverManager::NoMatch;
}
-void CoverInfo::setCover(const QImage &image)
+void CoverInfo::setCover(const TQImage &image)
{
if(image.isNull())
return;
@@ -118,7 +118,7 @@ void CoverInfo::setCover(const QImage &image)
m_needsConverting = false;
m_hasCover = true;
- QPixmap cover;
+ TQPixmap cover;
cover.convertFromImage(image);
// If we use replaceCover we'll change the cover for every other track
@@ -142,8 +142,8 @@ void CoverInfo::setCoverId(coverKey id)
void CoverInfo::applyCoverToWholeAlbum(bool overwriteExistingCovers) const
{
- QString artist = m_file.tag()->artist();
- QString album = m_file.tag()->album();
+ TQString artist = m_file.tag()->artist();
+ TQString album = m_file.tag()->album();
PlaylistSearch::ComponentList components;
ColumnList columns;
@@ -175,13 +175,13 @@ void CoverInfo::applyCoverToWholeAlbum(bool overwriteExistingCovers) const
}
}
-QPixmap CoverInfo::pixmap(CoverSize size) const
+TQPixmap CoverInfo::pixmap(CoverSize size) const
{
if(m_needsConverting)
convertOldStyleCover();
if(m_coverKey == CoverManager::NoMatch)
- return QPixmap();
+ return TQPixmap();
if(size == Thumbnail)
return CoverManager::coverFromId(m_coverKey, CoverManager::Thumbnail);
@@ -191,9 +191,9 @@ QPixmap CoverInfo::pixmap(CoverSize size) const
void CoverInfo::popup() const
{
- QPixmap image = pixmap(FullSize);
- QPoint mouse = QCursor::pos();
- QRect desktop = KApplication::desktop()->screenGeometry(mouse);
+ TQPixmap image = pixmap(FullSize);
+ TQPoint mouse = TQCursor::pos();
+ TQRect desktop = KApplication::desktop()->screenGeometry(mouse);
int x = mouse.x();
int y = mouse.y();
@@ -216,22 +216,22 @@ void CoverInfo::popup() const
else
y = (y - desktop.y() > desktop.height() - 10) ? desktop.height() - height + desktop.y() : (y - height + 10);
- new CoverPopup(image, QPoint(x, y));
+ new CoverPopup(image, TQPoint(x, y));
}
/**
* DEPRECATED
*/
-QString CoverInfo::coverLocation(CoverSize size) const
+TQString CoverInfo::coverLocation(CoverSize size) const
{
- QString fileName(QFile::encodeName(m_file.tag()->artist() + " - " + m_file.tag()->album()));
- QRegExp maskedFileNameChars("[ /?:\"]");
+ TQString fileName(TQFile::encodeName(m_file.tag()->artist() + " - " + m_file.tag()->album()));
+ TQRegExp maskedFileNameChars("[ /?:\"]");
fileName.replace(maskedFileNameChars, "_");
fileName.append(".png");
- QString dataDir = KGlobal::dirs()->saveLocation("appdata");
- QString subDir;
+ TQString dataDir = KGlobal::dirs()->saveLocation("appdata");
+ TQString subDir;
switch (size) {
case FullSize:
@@ -240,7 +240,7 @@ QString CoverInfo::coverLocation(CoverSize size) const
default:
break;
}
- QString fileLocation = dataDir + "covers/" + subDir + fileName.lower();
+ TQString fileLocation = dataDir + "covers/" + subDir + fileName.lower();
return fileLocation;
}
@@ -250,9 +250,9 @@ bool CoverInfo::convertOldStyleCover() const
// Ah, old-style cover. Let's transfer it to the new system.
kdDebug() << "Found old style cover for " << m_file.absFilePath() << endl;
- QString artist = m_file.tag()->artist();
- QString album = m_file.tag()->album();
- QString oldLocation = coverLocation(FullSize);
+ TQString artist = m_file.tag()->artist();
+ TQString album = m_file.tag()->album();
+ TQString oldLocation = coverLocation(FullSize);
m_coverKey = CoverManager::addCover(oldLocation, artist, album);
m_needsConverting = false;
@@ -269,7 +269,7 @@ bool CoverInfo::convertOldStyleCover() const
// If we convert we need to remove the old cover otherwise we'll find
// it later if the user un-sets the new cover.
- if(!QFile::remove(oldLocation))
+ if(!TQFile::remove(oldLocation))
kdError(65432) << "Unable to remove converted cover at " << oldLocation << endl;
return true;
diff --git a/juk/coverinfo.h b/juk/coverinfo.h
index 1caae8d..8c1bdcf 100644
--- a/juk/coverinfo.h
+++ b/juk/coverinfo.h
@@ -15,7 +15,7 @@
#ifndef COVERINFO_H
#define COVERINFO_H
-#include <qimage.h>
+#include <tqimage.h>
#include "filehandle.h"
#include "covermanager.h"
@@ -32,7 +32,7 @@ public:
bool hasCover();
void clearCover();
- void setCover(const QImage &image = QImage());
+ void setCover(const TQImage &image = TQImage());
// Use this to assign to a specific cover id.
void setCoverId(coverKey id);
@@ -50,11 +50,11 @@ public:
coverKey coverId() const { return m_coverKey; }
- QPixmap pixmap(CoverSize size) const;
+ TQPixmap pixmap(CoverSize size) const;
void popup() const;
private:
- QString coverLocation(CoverSize size) const;
+ TQString coverLocation(CoverSize size) const;
bool convertOldStyleCover() const;
FileHandle m_file;
diff --git a/juk/covermanager.cpp b/juk/covermanager.cpp
index 1fe36cc..f7530da 100644
--- a/juk/covermanager.cpp
+++ b/juk/covermanager.cpp
@@ -13,17 +13,17 @@
* *
***************************************************************************/
-#include <qpixmap.h>
-#include <qmap.h>
-#include <qstring.h>
-#include <qfile.h>
-#include <qimage.h>
-#include <qdir.h>
-#include <qdatastream.h>
-#include <qdict.h>
-#include <qcache.h>
-#include <qmime.h>
-#include <qbuffer.h>
+#include <tqpixmap.h>
+#include <tqmap.h>
+#include <tqstring.h>
+#include <tqfile.h>
+#include <tqimage.h>
+#include <tqdir.h>
+#include <tqdatastream.h>
+#include <tqdict.h>
+#include <tqcache.h>
+#include <tqmime.h>
+#include <tqbuffer.h>
#include <kdebug.h>
#include <kstaticdeleter.h>
@@ -35,7 +35,7 @@
// This is a dictionary to map the track path to their ID. Otherwise we'd have
// to store this info with each CollectionListItem, which would break the cache
// of users who upgrade, and would just generally be a big mess.
-typedef QDict<coverKey> TrackLookupMap;
+typedef TQDict<coverKey> TrackLookupMap;
// This is responsible for making sure that the CoverManagerPrivate class
// gets properly destructed on shutdown.
@@ -44,24 +44,24 @@ static KStaticDeleter<CoverManagerPrivate> sd;
const char *CoverDrag::mimetype = "application/x-juk-coverid";
// Caches the QPixmaps for the covers so that the covers are not all kept in
// memory for no reason.
-typedef QCache<QPixmap> CoverPixmapCache;
+typedef TQCache<TQPixmap> CoverPixmapCache;
CoverManagerPrivate *CoverManager::m_data = 0;
// Used to save and load CoverData from a QDataStream
-QDataStream &operator<<(QDataStream &out, const CoverData &data);
-QDataStream &operator>>(QDataStream &in, CoverData &data);
+TQDataStream &operator<<(TQDataStream &out, const CoverData &data);
+TQDataStream &operator>>(TQDataStream &in, CoverData &data);
//
// Implementation of CoverData struct
//
-QPixmap CoverData::pixmap() const
+TQPixmap CoverData::pixmap() const
{
return CoverManager::coverFromData(*this, CoverManager::FullSize);
}
-QPixmap CoverData::thumbnail() const
+TQPixmap CoverData::thumbnail() const
{
return CoverManager::coverFromData(*this, CoverManager::Thumbnail);
}
@@ -123,7 +123,7 @@ public:
* @return the full path and filename of the file storing the cover
* lookup map and the translations between pathnames and ids.
*/
- QString coverLocation() const;
+ TQString coverLocation() const;
};
//
@@ -131,8 +131,8 @@ public:
//
void CoverManagerPrivate::createDataDir() const
{
- QDir dir;
- QString dirPath(QDir::cleanDirPath(coverLocation() + "/.."));
+ TQDir dir;
+ TQString dirPath(TQDir::cleanDirPath(coverLocation() + "/.."));
if(!dir.exists(dirPath))
KStandardDirs::makeDir(dirPath);
}
@@ -144,7 +144,7 @@ void CoverManagerPrivate::saveCovers() const
// Make sure the directory exists first.
createDataDir();
- QFile file(coverLocation());
+ TQFile file(coverLocation());
kdDebug() << "Opening covers db: " << coverLocation() << endl;
@@ -153,7 +153,7 @@ void CoverManagerPrivate::saveCovers() const
return;
}
- QDataStream out(&file);
+ TQDataStream out(&file);
// Write out the version and count
out << Q_UINT32(0) << Q_UINT32(covers.count());
@@ -167,7 +167,7 @@ void CoverManagerPrivate::saveCovers() const
// Now write out the track mapping.
out << Q_UINT32(tracks.count());
- QDictIterator<coverKey> trackMapIt(tracks);
+ TQDictIterator<coverKey> trackMapIt(tracks);
while(trackMapIt.current()) {
out << trackMapIt.currentKey() << Q_UINT32(*trackMapIt.current());
++trackMapIt;
@@ -178,14 +178,14 @@ void CoverManagerPrivate::loadCovers()
{
kdDebug() << k_funcinfo << endl;
- QFile file(coverLocation());
+ TQFile file(coverLocation());
if(!file.open(IO_ReadOnly)) {
// Guess we don't have any covers yet.
return;
}
- QDataStream in(&file);
+ TQDataStream in(&file);
Q_UINT32 count, version;
// First thing we'll read in will be the version.
@@ -214,7 +214,7 @@ void CoverManagerPrivate::loadCovers()
in >> count;
for(Q_UINT32 i = 0; i < count; ++i) {
- QString path;
+ TQString path;
Q_UINT32 id;
in >> path >> id;
@@ -230,7 +230,7 @@ void CoverManagerPrivate::loadCovers()
}
}
-QString CoverManagerPrivate::coverLocation() const
+TQString CoverManagerPrivate::coverLocation() const
{
return KGlobal::dirs()->saveLocation("appdata") + "coverdb/covers";
}
@@ -251,10 +251,10 @@ coverKey CoverManagerPrivate::nextId() const
//
// Implementation of CoverDrag
//
-CoverDrag::CoverDrag(coverKey id, QWidget *src) : QDragObject(src, "coverDrag"),
+CoverDrag::CoverDrag(coverKey id, TQWidget *src) : TQDragObject(src, "coverDrag"),
m_id(id)
{
- QPixmap cover = CoverManager::coverFromId(id);
+ TQPixmap cover = CoverManager::coverFromId(id);
if(!cover.isNull())
setPixmap(cover);
}
@@ -269,20 +269,20 @@ const char *CoverDrag::format(int i) const
return 0;
}
-QByteArray CoverDrag::encodedData(const char *mimetype) const
+TQByteArray CoverDrag::encodedData(const char *mimetype) const
{
if(qstrcmp(CoverDrag::mimetype, mimetype) == 0) {
- QByteArray data;
- QDataStream ds(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream ds(data, IO_WriteOnly);
ds << Q_UINT32(m_id);
return data;
}
else if(qstrcmp(mimetype, "image/png") == 0) {
- QPixmap large = CoverManager::coverFromId(m_id, CoverManager::FullSize);
- QImage img = large.convertToImage();
- QByteArray data;
- QBuffer buffer(data);
+ TQPixmap large = CoverManager::coverFromId(m_id, CoverManager::FullSize);
+ TQImage img = large.convertToImage();
+ TQByteArray data;
+ TQBuffer buffer(data);
buffer.open(IO_WriteOnly);
img.save(&buffer, "PNG"); // Write in PNG format.
@@ -290,21 +290,21 @@ QByteArray CoverDrag::encodedData(const char *mimetype) const
return data;
}
- return QByteArray();
+ return TQByteArray();
}
-bool CoverDrag::canDecode(const QMimeSource *e)
+bool CoverDrag::canDecode(const TQMimeSource *e)
{
return e->provides(mimetype);
}
-bool CoverDrag::decode(const QMimeSource *e, coverKey &id)
+bool CoverDrag::decode(const TQMimeSource *e, coverKey &id)
{
if(!canDecode(e))
return false;
- QByteArray data = e->encodedData(mimetype);
- QDataStream ds(data, IO_ReadOnly);
+ TQByteArray data = e->encodedData(mimetype);
+ TQDataStream ds(data, IO_ReadOnly);
Q_UINT32 i;
ds >> i;
@@ -316,10 +316,10 @@ bool CoverDrag::decode(const QMimeSource *e, coverKey &id)
//
// Implementation of CoverManager methods.
//
-coverKey CoverManager::idFromMetadata(const QString &artist, const QString &album)
+coverKey CoverManager::idFromMetadata(const TQString &artist, const TQString &album)
{
// Search for the string, yay! It might make sense to use a cache here,
- // if so it's not hard to add a QCache.
+ // if so it's not hard to add a TQCache.
CoverDataMap::ConstIterator it = begin();
CoverDataMap::ConstIterator endIt = end();
@@ -331,12 +331,12 @@ coverKey CoverManager::idFromMetadata(const QString &artist, const QString &albu
return NoMatch;
}
-QPixmap CoverManager::coverFromId(coverKey id, Size size)
+TQPixmap CoverManager::coverFromId(coverKey id, Size size)
{
CoverDataPtr info = coverInfo(id);
if(!info)
- return QPixmap();
+ return TQPixmap();
if(size == Thumbnail)
return info->thumbnail();
@@ -344,9 +344,9 @@ QPixmap CoverManager::coverFromId(coverKey id, Size size)
return info->pixmap();
}
-QPixmap CoverManager::coverFromData(const CoverData &coverData, Size size)
+TQPixmap CoverManager::coverFromData(const CoverData &coverData, Size size)
{
- QString path = coverData.path;
+ TQString path = coverData.path;
// Prepend a tag to the path to separate in the cache between full size
// and thumbnail pixmaps. If we add a different kind of pixmap in the
@@ -357,31 +357,31 @@ QPixmap CoverManager::coverFromData(const CoverData &coverData, Size size)
path.prepend('t');
// Check in cache for the pixmap.
- QPixmap *pix = data()->pixmapCache[path];
+ TQPixmap *pix = data()->pixmapCache[path];
if(pix) {
kdDebug(65432) << "Found pixmap in cover cache.\n";
return *pix;
}
// Not in cache, load it and add it.
- pix = new QPixmap(coverData.path);
+ pix = new TQPixmap(coverData.path);
if(pix->isNull())
- return QPixmap();
+ return TQPixmap();
if(size == Thumbnail) {
// Convert to image for smoothScale()
- QImage image = pix->convertToImage();
- pix->convertFromImage(image.smoothScale(80, 80, QImage::ScaleMin));
+ TQImage image = pix->convertToImage();
+ pix->convertFromImage(image.smoothScale(80, 80, TQImage::ScaleMin));
}
- QPixmap returnValue = *pix; // Save it early.
+ TQPixmap returnValue = *pix; // Save it early.
if(!data()->pixmapCache.insert(path, pix, pix->height() * pix->width()))
delete pix;
return returnValue;
}
-coverKey CoverManager::addCover(const QPixmap &large, const QString &artist, const QString &album)
+coverKey CoverManager::addCover(const TQPixmap &large, const TQString &artist, const TQString &album)
{
kdDebug() << k_funcinfo << endl;
@@ -395,7 +395,7 @@ coverKey CoverManager::addCover(const QPixmap &large, const QString &artist, con
// Save it to file first!
- QString ext = QString("/coverdb/coverID-%1.png").arg(id);
+ TQString ext = TQString("/coverdb/coverID-%1.png").arg(id);
coverData->path = KGlobal::dirs()->saveLocation("appdata") + ext;
kdDebug() << "Saving pixmap to " << coverData->path << endl;
@@ -413,15 +413,15 @@ coverKey CoverManager::addCover(const QPixmap &large, const QString &artist, con
data()->covers[id] = coverData;
// Make sure the new cover isn't inadvertently cached.
- data()->pixmapCache.remove(QString("f%1").arg(coverData->path));
- data()->pixmapCache.remove(QString("t%1").arg(coverData->path));
+ data()->pixmapCache.remove(TQString("f%1").arg(coverData->path));
+ data()->pixmapCache.remove(TQString("t%1").arg(coverData->path));
return id;
}
-coverKey CoverManager::addCover(const QString &path, const QString &artist, const QString &album)
+coverKey CoverManager::addCover(const TQString &path, const TQString &artist, const TQString &album)
{
- return addCover(QPixmap(path), artist, album);
+ return addCover(TQPixmap(path), artist, album);
}
bool CoverManager::hasCover(coverKey id)
@@ -436,17 +436,17 @@ bool CoverManager::removeCover(coverKey id)
// Remove cover from cache.
CoverDataPtr coverData = coverInfo(id);
- data()->pixmapCache.remove(QString("f%1").arg(coverData->path));
- data()->pixmapCache.remove(QString("t%1").arg(coverData->path));
+ data()->pixmapCache.remove(TQString("f%1").arg(coverData->path));
+ data()->pixmapCache.remove(TQString("t%1").arg(coverData->path));
// Remove references to files that had that track ID.
- QDictIterator<coverKey> it(data()->tracks);
+ TQDictIterator<coverKey> it(data()->tracks);
for(; it.current(); ++it)
if(*it.current() == id)
data()->tracks.remove(it.currentKey());
// Remove covers from disk.
- QFile::remove(coverData->path);
+ TQFile::remove(coverData->path);
// Finally, forget that we ever knew about this cover.
data()->covers.remove(id);
@@ -454,7 +454,7 @@ bool CoverManager::removeCover(coverKey id)
return true;
}
-bool CoverManager::replaceCover(coverKey id, const QPixmap &large)
+bool CoverManager::replaceCover(coverKey id, const TQPixmap &large)
{
if(!hasCover(id))
return false;
@@ -462,8 +462,8 @@ bool CoverManager::replaceCover(coverKey id, const QPixmap &large)
CoverDataPtr coverData = coverInfo(id);
// Empty old pixmaps from cache.
- data()->pixmapCache.remove(QString("%1%2").arg("t", coverData->path));
- data()->pixmapCache.remove(QString("%1%2").arg("f", coverData->path));
+ data()->pixmapCache.remove(TQString("%1%2").arg("t", coverData->path));
+ data()->pixmapCache.remove(TQString("%1%2").arg("f", coverData->path));
large.save(coverData->path, "PNG");
return true;
@@ -497,12 +497,12 @@ CoverDataMap::ConstIterator CoverManager::end()
return data()->covers.constEnd();
}
-QValueList<coverKey> CoverManager::keys()
+TQValueList<coverKey> CoverManager::keys()
{
return data()->covers.keys();
}
-void CoverManager::setIdForTrack(const QString &path, coverKey id)
+void CoverManager::setIdForTrack(const TQString &path, coverKey id)
{
coverKey *oldId = data()->tracks.find(path);
if(oldId && (id == *oldId))
@@ -524,7 +524,7 @@ void CoverManager::setIdForTrack(const QString &path, coverKey id)
}
}
-coverKey CoverManager::idForTrack(const QString &path)
+coverKey CoverManager::idForTrack(const TQString &path)
{
coverKey *coverPtr = data()->tracks.find(path);
@@ -549,7 +549,7 @@ CoverDataPtr CoverManager::coverInfo(coverKey id)
* @param data the CoverData to write out.
* @return the data stream that the data was written to.
*/
-QDataStream &operator<<(QDataStream &out, const CoverData &data)
+TQDataStream &operator<<(TQDataStream &out, const CoverData &data)
{
out << data.artist;
out << data.album;
@@ -565,7 +565,7 @@ QDataStream &operator<<(QDataStream &out, const CoverData &data)
* @param data the CoverData to read into.
* @return the data stream read from.
*/
-QDataStream &operator>>(QDataStream &in, CoverData &data)
+TQDataStream &operator>>(TQDataStream &in, CoverData &data)
{
in >> data.artist;
in >> data.album;
diff --git a/juk/covermanager.h b/juk/covermanager.h
index 9a95d99..a935b81 100644
--- a/juk/covermanager.h
+++ b/juk/covermanager.h
@@ -18,8 +18,8 @@
#include <ksharedptr.h>
-#include <qmap.h>
-#include <qdragobject.h>
+#include <tqmap.h>
+#include <tqdragobject.h>
class CoverManagerPrivate;
class QString;
@@ -39,19 +39,19 @@ class QDataStream;
class CoverData : public KShared
{
public:
- QPixmap pixmap() const;
- QPixmap thumbnail() const;
+ TQPixmap pixmap() const;
+ TQPixmap thumbnail() const;
- QString artist;
- QString album;
- QString path;
+ TQString artist;
+ TQString album;
+ TQString path;
unsigned refCount; // Refers to number of tracks using this.
};
typedef KSharedPtr<CoverData> CoverDataPtr;
typedef unsigned long coverKey; ///< Type of the id for a cover.
-typedef QMap<coverKey, CoverDataPtr> CoverDataMap;
+typedef TQMap<coverKey, CoverDataPtr> CoverDataMap;
/**
* This class is used to drag covers in JuK. It adds a special mimetype that
@@ -65,10 +65,10 @@ typedef QMap<coverKey, CoverDataPtr> CoverDataMap;
class CoverDrag : public QDragObject
{
public:
- CoverDrag(coverKey id, QWidget *src);
+ CoverDrag(coverKey id, TQWidget *src);
virtual const char *format(int i) const;
- virtual QByteArray encodedData(const char *mimetype) const;
+ virtual TQByteArray encodedData(const char *mimetype) const;
void setId(coverKey id) { m_id = id; }
@@ -77,8 +77,8 @@ public:
* true is returned only if \p e contains a cover id, even though
* CoverDrag can convert it to an image.
*/
- static bool canDecode(const QMimeSource *e);
- static bool decode(const QMimeSource *e, coverKey &id);
+ static bool canDecode(const TQMimeSource *e);
+ static bool decode(const TQMimeSource *e, coverKey &id);
static const char* mimetype;
@@ -114,7 +114,7 @@ public:
* @return NoMatch if no match could be found, otherwise the id of the
* cover art that matches the given metadata.
*/
- static coverKey idFromMetadata(const QString &artist, const QString &album);
+ static coverKey idFromMetadata(const TQString &artist, const TQString &album);
/**
* Returns the cover art for @p id.
@@ -123,10 +123,10 @@ public:
* @param size The size to return it as. Note that FullSize doesn't
* necessarily mean the pixmap is large, so you may need to
* scale it up.
- * @return QPixmap::null if there is no cover art for @p id, otherwise the
+ * @return TQPixmap::null if there is no cover art for @p id, otherwise the
* cover art.
*/
- static QPixmap coverFromId(coverKey id, Size size = Thumbnail);
+ static TQPixmap coverFromId(coverKey id, Size size = Thumbnail);
/**
* Returns the cover art for @p ptr. This function is intended for use
@@ -137,7 +137,7 @@ public:
* @param size The size to return it as.
* @see CoverData
*/
- static QPixmap coverFromData(const CoverData &coverData, Size size = Thumbnail);
+ static TQPixmap coverFromData(const CoverData &coverData, Size size = Thumbnail);
/**
* Returns the full suite of information known about the cover given by
@@ -157,7 +157,7 @@ public:
* @param artist The artist of the new cover.
* @param album The album of the new cover.
*/
- static coverKey addCover(const QPixmap &large, const QString &artist = "", const QString &album = "");
+ static coverKey addCover(const TQPixmap &large, const TQString &artist = "", const TQString &album = "");
/**
* Adds the file pointed to by the local path @p path to the database,
@@ -167,7 +167,7 @@ public:
* @param artist The artist of the new cover.
* @param album The album of the new cover.
*/
- static coverKey addCover(const QString &path, const QString &artist = "", const QString &album = "");
+ static coverKey addCover(const TQString &path, const TQString &artist = "", const TQString &album = "");
/**
* Function to determine if @p id matches any covers in the database.
@@ -194,7 +194,7 @@ public:
* @param id The id of the cover to replace.
* @param large The full size cover art for the new cover.
*/
- static bool replaceCover(coverKey id, const QPixmap &large);
+ static bool replaceCover(coverKey id, const TQPixmap &large);
/**
* Saves the current CoverManager information to disk. Changes are not
@@ -224,7 +224,7 @@ public:
/**
* @return A list of all of the id's listed in the database.
*/
- static QValueList<coverKey> keys();
+ static TQValueList<coverKey> keys();
/**
* Associates @p path with the cover identified by @id. No comparison of
@@ -233,7 +233,7 @@ public:
* @param path The absolute file path to the track.
* @param id The identifier of the cover to use with @p path.
*/
- static void setIdForTrack(const QString &path, coverKey id);
+ static void setIdForTrack(const TQString &path, coverKey id);
/**
* Returns the identifier of the cover for the track at @p path.
@@ -242,7 +242,7 @@ public:
* @return NoMatch if @p path doesn't have a cover, otherwise the id of
* its cover.
*/
- static coverKey idForTrack(const QString &path);
+ static coverKey idForTrack(const TQString &path);
/**
* This identifier is used to indicate that no cover was found in the
@@ -254,7 +254,7 @@ public:
static CoverManagerPrivate *m_data;
static CoverManagerPrivate *data();
- static QPixmap createThumbnail(const QPixmap &base);
+ static TQPixmap createThumbnail(const TQPixmap &base);
};
#endif /* JUK_COVERMANAGER_H */
diff --git a/juk/deletedialog.cpp b/juk/deletedialog.cpp
index cafd784..e780eec 100644
--- a/juk/deletedialog.cpp
+++ b/juk/deletedialog.cpp
@@ -20,12 +20,12 @@
#include <kiconloader.h>
#include <kconfig.h>
-#include <qstringlist.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qvbox.h>
-#include <qhbox.h>
+#include <tqstringlist.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqvbox.h>
+#include <tqhbox.h>
#include "deletedialog.h"
@@ -33,7 +33,7 @@
// DeleteWidget implementation
//////////////////////////////////////////////////////////////////////////////
-DeleteWidget::DeleteWidget(QWidget *parent, const char *name)
+DeleteWidget::DeleteWidget(TQWidget *parent, const char *name)
: DeleteDialogBase(parent, name)
{
KConfigGroup messageGroup(KGlobal::config(), "FileRemover");
@@ -43,7 +43,7 @@ DeleteWidget::DeleteWidget(QWidget *parent, const char *name)
ddShouldDelete->setChecked(deleteInstead);
}
-void DeleteWidget::setFiles(const QStringList &files)
+void DeleteWidget::setFiles(const TQStringList &files)
{
ddFileList->clear();
ddFileList->insertStringList(files);
@@ -69,7 +69,7 @@ void DeleteWidget::slotShouldDelete(bool shouldDelete)
// DeleteDialog implementation
//////////////////////////////////////////////////////////////////////////////
-DeleteDialog::DeleteDialog(QWidget *parent, const char *name) :
+DeleteDialog::DeleteDialog(TQWidget *parent, const char *name) :
KDialogBase(Swallow, WStyle_DialogBorder, parent, name,
true /* modal */, i18n("About to delete selected files"),
Ok | Cancel, Cancel /* Default */, true /* separator */),
@@ -84,17 +84,17 @@ DeleteDialog::DeleteDialog(QWidget *parent, const char *name) :
slotShouldDelete(shouldDelete());
- connect(m_widget->ddShouldDelete, SIGNAL(toggled(bool)), SLOT(slotShouldDelete(bool)));
+ connect(m_widget->ddShouldDelete, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotShouldDelete(bool)));
}
-bool DeleteDialog::confirmDeleteList(const QStringList &condemnedFiles)
+bool DeleteDialog::confirmDeleteList(const TQStringList &condemnedFiles)
{
m_widget->setFiles(condemnedFiles);
- return exec() == QDialog::Accepted;
+ return exec() == TQDialog::Accepted;
}
-void DeleteDialog::setFiles(const QStringList &files)
+void DeleteDialog::setFiles(const TQStringList &files)
{
m_widget->setFiles(files);
}
diff --git a/juk/deletedialog.h b/juk/deletedialog.h
index 9fd4583..4a442b2 100644
--- a/juk/deletedialog.h
+++ b/juk/deletedialog.h
@@ -17,7 +17,7 @@
#define _DELETEDIALOG_H
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
#include "deletedialogbase.h"
@@ -31,9 +31,9 @@ class DeleteWidget : public DeleteDialogBase
Q_OBJECT
public:
- DeleteWidget(QWidget *parent = 0, const char *name = 0);
+ DeleteWidget(TQWidget *parent = 0, const char *name = 0);
- void setFiles(const QStringList &files);
+ void setFiles(const TQStringList &files);
protected slots:
virtual void slotShouldDelete(bool shouldDelete);
@@ -44,10 +44,10 @@ class DeleteDialog : public KDialogBase
Q_OBJECT
public:
- DeleteDialog(QWidget *parent, const char *name = "delete_dialog");
+ DeleteDialog(TQWidget *parent, const char *name = "delete_dialog");
- bool confirmDeleteList(const QStringList &condemnedFiles);
- void setFiles(const QStringList &files);
+ bool confirmDeleteList(const TQStringList &condemnedFiles);
+ void setFiles(const TQStringList &files);
bool shouldDelete() const { return m_widget->ddShouldDelete->isChecked(); }
protected slots:
diff --git a/juk/directorylist.cpp b/juk/directorylist.cpp
index 1e53cac..43df3dd 100644
--- a/juk/directorylist.cpp
+++ b/juk/directorylist.cpp
@@ -18,7 +18,7 @@
#include <klistview.h>
#include <kpushbutton.h>
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
#include "directorylistbase.h"
#include "directorylist.h"
@@ -27,8 +27,8 @@
// public methods
////////////////////////////////////////////////////////////////////////////////
-DirectoryList::DirectoryList(const QStringList &directories, bool importPlaylists,
- QWidget *parent, const char *name) :
+DirectoryList::DirectoryList(const TQStringList &directories, bool importPlaylists,
+ TQWidget *parent, const char *name) :
KDialogBase(parent, name, true, i18n("Folder List"), Ok | Cancel, Ok, true),
m_dirList(directories),
m_importPlaylists(importPlaylists)
@@ -39,18 +39,18 @@ DirectoryList::DirectoryList(const QStringList &directories, bool importPlaylist
m_base->directoryListView->setFullWidth(true);
- connect(m_base->addDirectoryButton, SIGNAL(clicked()),
- SLOT(slotAddDirectory()));
- connect(m_base->removeDirectoryButton, SIGNAL(clicked()),
- SLOT(slotRemoveDirectory()));
+ connect(m_base->addDirectoryButton, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotAddDirectory()));
+ connect(m_base->removeDirectoryButton, TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotRemoveDirectory()));
- QStringList::ConstIterator it = directories.begin();
+ TQStringList::ConstIterator it = directories.begin();
for(; it != directories.end(); ++it)
new KListViewItem(m_base->directoryListView, *it);
m_base->importPlaylistsCheckBox->setChecked(importPlaylists);
- QSize sz = sizeHint();
+ TQSize sz = sizeHint();
setMinimumSize(kMax(350, sz.width()), kMax(250, sz.height()));
resize(sizeHint());
}
@@ -77,7 +77,7 @@ DirectoryList::Result DirectoryList::exec()
void DirectoryList::slotAddDirectory()
{
- QString dir = KFileDialog::getExistingDirectory();
+ TQString dir = KFileDialog::getExistingDirectory();
if(!dir.isEmpty() && m_dirList.find(dir) == m_dirList.end()) {
m_dirList.append(dir);
new KListViewItem(m_base->directoryListView, dir);
@@ -90,7 +90,7 @@ void DirectoryList::slotRemoveDirectory()
if(!m_base->directoryListView->selectedItem())
return;
- QString dir = m_base->directoryListView->selectedItem()->text(0);
+ TQString dir = m_base->directoryListView->selectedItem()->text(0);
m_dirList.remove(dir);
m_result.removedDirs.append(dir);
delete m_base->directoryListView->selectedItem();
diff --git a/juk/directorylist.h b/juk/directorylist.h
index fef730a..d9b2a08 100644
--- a/juk/directorylist.h
+++ b/juk/directorylist.h
@@ -26,29 +26,29 @@ class DirectoryList : public KDialogBase
public:
struct Result
{
- QStringList addedDirs;
- QStringList removedDirs;
+ TQStringList addedDirs;
+ TQStringList removedDirs;
DialogCode status;
bool addPlaylists;
};
- DirectoryList(const QStringList &directories, bool importPlaylists,
- QWidget *parent = 0, const char *name = 0);
+ DirectoryList(const TQStringList &directories, bool importPlaylists,
+ TQWidget *parent = 0, const char *name = 0);
virtual ~DirectoryList();
public slots:
Result exec();
signals:
- void signalDirectoryAdded(const QString &directory);
- void signalDirectoryRemoved(const QString &directory);
+ void signalDirectoryAdded(const TQString &directory);
+ void signalDirectoryRemoved(const TQString &directory);
private slots:
void slotAddDirectory();
void slotRemoveDirectory();
private:
- QStringList m_dirList;
+ TQStringList m_dirList;
bool m_importPlaylists;
DirectoryListBase *m_base;
Result m_result;
diff --git a/juk/dynamicplaylist.cpp b/juk/dynamicplaylist.cpp
index 69d0a4a..336d1e3 100644
--- a/juk/dynamicplaylist.cpp
+++ b/juk/dynamicplaylist.cpp
@@ -42,8 +42,8 @@ private:
DynamicPlaylist::DynamicPlaylist(const PlaylistList &playlists,
PlaylistCollection *collection,
- const QString &name,
- const QString &iconName,
+ const TQString &name,
+ const TQString &iconName,
bool setupPlaylist,
bool synchronizePlaying) :
Playlist(collection, true),
@@ -60,14 +60,14 @@ DynamicPlaylist::DynamicPlaylist(const PlaylistList &playlists,
for(PlaylistList::ConstIterator it = playlists.begin(); it != playlists.end(); ++it)
m_observers.append(new PlaylistDirtyObserver(this, *it));
- connect(CollectionList::instance(), SIGNAL(signalCollectionChanged()), this, SLOT(slotSetDirty()));
+ connect(CollectionList::instance(), TQT_SIGNAL(signalCollectionChanged()), this, TQT_SLOT(slotSetDirty()));
}
DynamicPlaylist::~DynamicPlaylist()
{
lower();
- for(QValueList<PlaylistObserver *>::ConstIterator it = m_observers.begin();
+ for(TQValueList<PlaylistObserver *>::ConstIterator it = m_observers.begin();
it != m_observers.end();
++it)
{
@@ -93,7 +93,7 @@ void DynamicPlaylist::slotReload()
checkUpdateItems();
}
-void DynamicPlaylist::lower(QWidget *top)
+void DynamicPlaylist::lower(TQWidget *top)
{
if(top == this)
return;
@@ -130,13 +130,13 @@ PlaylistItemList DynamicPlaylist::items()
return Playlist::items();
}
-void DynamicPlaylist::showEvent(QShowEvent *e)
+void DynamicPlaylist::showEvent(TQShowEvent *e)
{
checkUpdateItems();
Playlist::showEvent(e);
}
-void DynamicPlaylist::paintEvent(QPaintEvent *e)
+void DynamicPlaylist::paintEvent(TQPaintEvent *e)
{
checkUpdateItems();
Playlist::paintEvent(e);
@@ -153,7 +153,7 @@ void DynamicPlaylist::updateItems()
PlaylistItemList newSiblings = siblings;
if(m_siblings != newSiblings) {
m_siblings = newSiblings;
- QTimer::singleShot(0, this, SLOT(slotUpdateItems()));
+ TQTimer::singleShot(0, this, TQT_SLOT(slotUpdateItems()));
}
}
diff --git a/juk/dynamicplaylist.h b/juk/dynamicplaylist.h
index 3e6e2c4..20e496d 100644
--- a/juk/dynamicplaylist.h
+++ b/juk/dynamicplaylist.h
@@ -31,8 +31,8 @@ public:
*/
DynamicPlaylist(const PlaylistList &lists,
PlaylistCollection *collection,
- const QString &name = QString::null,
- const QString &iconName = "midi",
+ const TQString &name = TQString::null,
+ const TQString &iconName = "midi",
bool setupPlaylist = true,
bool synchronizePlaying = false);
@@ -55,7 +55,7 @@ public slots:
* it can synchronize the playing item with the one that playlist it was
* create from.
*/
- void lower(QWidget *top = 0);
+ void lower(TQWidget *top = 0);
protected:
/**
@@ -72,12 +72,12 @@ protected:
virtual PlaylistItemList items();
/**
- * Reimplemented from QWidget. Here it updates the list of items (when
+ * Reimplemented from TQWidget. Here it updates the list of items (when
* appropriate) as the widget is shown.
*/
- virtual void showEvent(QShowEvent *e);
+ virtual void showEvent(TQShowEvent *e);
- virtual void paintEvent(QPaintEvent *e);
+ virtual void paintEvent(TQPaintEvent *e);
/**
* Updates the items (unconditionally). This should be reimplemented in
@@ -100,7 +100,7 @@ private slots:
void slotUpdateItems();
private:
- QValueList<PlaylistObserver *> m_observers;
+ TQValueList<PlaylistObserver *> m_observers;
PlaylistItemList m_siblings;
PlaylistList m_playlists;
bool m_dirty;
diff --git a/juk/exampleoptions.cpp b/juk/exampleoptions.cpp
index 68e2bc0..e365546 100644
--- a/juk/exampleoptions.cpp
+++ b/juk/exampleoptions.cpp
@@ -16,12 +16,12 @@
#include <kurlrequester.h>
#include <klocale.h>
-#include <qradiobutton.h>
-#include <qlayout.h>
+#include <tqradiobutton.h>
+#include <tqlayout.h>
#include "exampleoptions.h"
-ExampleOptions::ExampleOptions(QWidget *parent) :
+ExampleOptions::ExampleOptions(TQWidget *parent) :
ExampleOptionsBase(parent, "example options widget")
{
}
@@ -44,31 +44,31 @@ void ExampleOptions::exampleFileChanged()
emit fileChanged();
}
-ExampleOptionsDialog::ExampleOptionsDialog(QWidget *parent) :
- QDialog(parent, "example options dialog")
+ExampleOptionsDialog::ExampleOptionsDialog(TQWidget *parent) :
+ TQDialog(parent, "example options dialog")
{
setCaption(i18n("JuK"));
- QVBoxLayout *l = new QVBoxLayout(this);
+ TQVBoxLayout *l = new TQVBoxLayout(this);
m_options = new ExampleOptions(this);
l->addWidget(m_options);
// Forward signals
- connect(m_options, SIGNAL(fileChanged()), SLOT(fileModeSelected()));
- connect(m_options, SIGNAL(dataChanged()), SIGNAL(dataChanged()));
- connect(m_options->m_exampleFile, SIGNAL(urlSelected(const QString &)),
- this, SIGNAL(fileChanged(const QString &)));
- connect(m_options->m_exampleFile, SIGNAL(returnPressed(const QString &)),
- this, SIGNAL(fileChanged(const QString &)));
+ connect(m_options, TQT_SIGNAL(fileChanged()), TQT_SLOT(fileModeSelected()));
+ connect(m_options, TQT_SIGNAL(dataChanged()), TQT_SIGNAL(dataChanged()));
+ connect(m_options->m_exampleFile, TQT_SIGNAL(urlSelected(const TQString &)),
+ this, TQT_SIGNAL(fileChanged(const TQString &)));
+ connect(m_options->m_exampleFile, TQT_SIGNAL(returnPressed(const TQString &)),
+ this, TQT_SIGNAL(fileChanged(const TQString &)));
}
-void ExampleOptionsDialog::hideEvent(QHideEvent *)
+void ExampleOptionsDialog::hideEvent(TQHideEvent *)
{
emit signalHidden();
}
-void ExampleOptionsDialog::showEvent(QShowEvent *)
+void ExampleOptionsDialog::showEvent(TQShowEvent *)
{
emit signalShown();
}
diff --git a/juk/exampleoptions.h b/juk/exampleoptions.h
index 26ee23c..dca7a46 100644
--- a/juk/exampleoptions.h
+++ b/juk/exampleoptions.h
@@ -16,14 +16,14 @@
#ifndef JUK_EXAMPLEOPTIONS_H
#define JUK_EXAMPLEOPTIONS_H
-#include <qdialog.h>
+#include <tqdialog.h>
#include "exampleoptionsbase.h"
class ExampleOptions : public ExampleOptionsBase
{
Q_OBJECT
public:
- ExampleOptions(QWidget *parent);
+ ExampleOptions(TQWidget *parent);
protected slots:
virtual void exampleSelectionChanged();
@@ -37,19 +37,19 @@ class ExampleOptionsDialog : public QDialog
{
Q_OBJECT
public:
- ExampleOptionsDialog(QWidget *parent);
+ ExampleOptionsDialog(TQWidget *parent);
const ExampleOptions *widget() const { return m_options; }
protected:
- virtual void hideEvent(QHideEvent *);
- virtual void showEvent(QShowEvent *);
+ virtual void hideEvent(TQHideEvent *);
+ virtual void showEvent(TQShowEvent *);
protected slots:
void fileModeSelected();
signals:
- void fileChanged(const QString &);
+ void fileChanged(const TQString &);
void dataChanged();
void signalHidden();
void signalShown();
diff --git a/juk/filehandle.cpp b/juk/filehandle.cpp
index 583cfc0..7093206 100644
--- a/juk/filehandle.cpp
+++ b/juk/filehandle.cpp
@@ -18,7 +18,7 @@
#include <kdebug.h>
-#include <qfileinfo.h>
+#include <tqfileinfo.h>
#include "filehandle.h"
#include "filehandleproperties.h"
@@ -39,12 +39,12 @@ AddProperty(Path, absFilePath())
AddNumberProperty(Size, fileInfo().size())
AddProperty(Extension, fileInfo().extension(false))
-static QString resolveSymLinks(const QFileInfo &file) // static
+static TQString resolveSymLinks(const TQFileInfo &file) // static
{
char real[PATH_MAX];
- if(file.exists() && realpath(QFile::encodeName(file.absFilePath()).data(), real))
- return QFile::decodeName(real);
+ if(file.exists() && realpath(TQFile::encodeName(file.absFilePath()).data(), real))
+ return TQFile::decodeName(real);
else
return file.filePath();
}
@@ -79,10 +79,10 @@ public:
mutable Tag *tag;
mutable CoverInfo *coverInfo;
- mutable QString absFilePath;
- QFileInfo fileInfo;
- QDateTime modificationTime;
- QDateTime lastModified;
+ mutable TQString absFilePath;
+ TQFileInfo fileInfo;
+ TQDateTime modificationTime;
+ TQDateTime lastModified;
};
////////////////////////////////////////////////////////////////////////////////
@@ -106,22 +106,22 @@ FileHandle::FileHandle(const FileHandle &f) :
d->ref();
}
-FileHandle::FileHandle(const QFileInfo &info, const QString &path) :
+FileHandle::FileHandle(const TQFileInfo &info, const TQString &path) :
d(0)
{
setup(info, path);
}
-FileHandle::FileHandle(const QString &path) :
+FileHandle::FileHandle(const TQString &path) :
d(0)
{
- setup(QFileInfo(path), path);
+ setup(TQFileInfo(path), path);
}
-FileHandle::FileHandle(const QString &path, CacheDataStream &s)
+FileHandle::FileHandle(const TQString &path, CacheDataStream &s)
{
d = new FileHandlePrivate;
- d->fileInfo = QFileInfo(path);
+ d->fileInfo = TQFileInfo(path);
d->absFilePath = path;
read(s);
Cache::instance()->insert(*this);
@@ -140,10 +140,10 @@ void FileHandle::refresh()
d->tag = new Tag(d->absFilePath);
}
-void FileHandle::setFile(const QString &path)
+void FileHandle::setFile(const TQString &path)
{
if(!d || isNull())
- setup(QFileInfo(path), path);
+ setup(TQFileInfo(path), path);
else {
d->absFilePath = resolveSymLinks(path);
d->fileInfo.setFile(path);
@@ -167,14 +167,14 @@ CoverInfo *FileHandle::coverInfo() const
return d->coverInfo;
}
-QString FileHandle::absFilePath() const
+TQString FileHandle::absFilePath() const
{
if(d->absFilePath.isNull())
d->absFilePath = resolveSymLinks(d->fileInfo.absFilePath());
return d->absFilePath;
}
-const QFileInfo &FileHandle::fileInfo() const
+const TQFileInfo &FileHandle::fileInfo() const
{
return d->fileInfo;
}
@@ -191,7 +191,7 @@ bool FileHandle::current() const
d->modificationTime >= lastModified());
}
-const QDateTime &FileHandle::lastModified() const
+const TQDateTime &FileHandle::lastModified() const
{
if(d->lastModified.isNull())
d->lastModified = d->fileInfo.lastModified();
@@ -237,12 +237,12 @@ bool FileHandle::operator!=(const FileHandle &f) const
return d != f.d;
}
-QStringList FileHandle::properties() // static
+TQStringList FileHandle::properties() // static
{
return FileHandleProperties::properties();
}
-QString FileHandle::property(const QString &name) const
+TQString FileHandle::property(const TQString &name) const
{
return FileHandleProperties::property(*this, name.latin1());
}
@@ -257,12 +257,12 @@ const FileHandle &FileHandle::null() // static
// private methods
////////////////////////////////////////////////////////////////////////////////
-void FileHandle::setup(const QFileInfo &info, const QString &path)
+void FileHandle::setup(const TQFileInfo &info, const TQString &path)
{
if(d && !isNull())
return;
- QString fileName = path.isNull() ? info.absFilePath() : path;
+ TQString fileName = path.isNull() ? info.absFilePath() : path;
FileHandle cached = Cache::instance()->value(resolveSymLinks(fileName));
@@ -283,7 +283,7 @@ void FileHandle::setup(const QFileInfo &info, const QString &path)
// related functions
////////////////////////////////////////////////////////////////////////////////
-QDataStream &operator<<(QDataStream &s, const FileHandle &f)
+TQDataStream &operator<<(TQDataStream &s, const FileHandle &f)
{
s << *(f.tag())
<< f.lastModified();
diff --git a/juk/filehandle.h b/juk/filehandle.h
index 6c12a34..846e332 100644
--- a/juk/filehandle.h
+++ b/juk/filehandle.h
@@ -16,7 +16,7 @@
#ifndef JUK_FILEHANDLE_H
#define JUK_FILEHANDLE_H
-#include <qstringlist.h>
+#include <tqstringlist.h>
class QFileInfo;
class QDateTime;
@@ -36,25 +36,25 @@ class FileHandle
public:
FileHandle();
FileHandle(const FileHandle &f);
- explicit FileHandle(const QFileInfo &info, const QString &path = QString::null);
- explicit FileHandle(const QString &path);
- FileHandle(const QString &path, CacheDataStream &s);
+ explicit FileHandle(const TQFileInfo &info, const TQString &path = TQString::null);
+ explicit FileHandle(const TQString &path);
+ FileHandle(const TQString &path, CacheDataStream &s);
~FileHandle();
/**
* Forces the FileHandle to reread its information from the disk.
*/
void refresh();
- void setFile(const QString &path);
+ void setFile(const TQString &path);
Tag *tag() const;
CoverInfo *coverInfo() const;
- QString absFilePath() const;
- const QFileInfo &fileInfo() const;
+ TQString absFilePath() const;
+ const TQFileInfo &fileInfo() const;
bool isNull() const;
bool current() const;
- const QDateTime &lastModified() const;
+ const TQDateTime &lastModified() const;
void read(CacheDataStream &s);
@@ -62,8 +62,8 @@ public:
bool operator==(const FileHandle &f) const;
bool operator!=(const FileHandle &f) const;
- static QStringList properties();
- QString property(const QString &name) const;
+ static TQStringList properties();
+ TQString property(const TQString &name) const;
static const FileHandle &null();
@@ -71,12 +71,12 @@ private:
class FileHandlePrivate;
FileHandlePrivate *d;
- void setup(const QFileInfo &info, const QString &path);
+ void setup(const TQFileInfo &info, const TQString &path);
};
-typedef QValueList<FileHandle> FileHandleList;
+typedef TQValueList<FileHandle> FileHandleList;
-QDataStream &operator<<(QDataStream &s, const FileHandle &f);
+TQDataStream &operator<<(TQDataStream &s, const FileHandle &f);
CacheDataStream &operator>>(CacheDataStream &s, FileHandle &f);
#endif
diff --git a/juk/filehandleproperties.h b/juk/filehandleproperties.h
index b0b708b..4fc31f9 100644
--- a/juk/filehandleproperties.h
+++ b/juk/filehandleproperties.h
@@ -14,7 +14,7 @@
#ifndef FILEHANDLEPROPERTIES_H
#define FILEHANDLEPROPERTIES_H
-#include <qmap.h>
+#include <tqmap.h>
/*
* These ugly macros make possible a property registration system that makes it
@@ -30,7 +30,7 @@
{ \
struct name##Property : public Property \
{ \
- virtual QString value(const FileHandle &f) const \
+ virtual TQString value(const FileHandle &f) const \
{ \
return f.method; \
} \
@@ -45,9 +45,9 @@
{ \
struct name##Property : public Property \
{ \
- virtual QString value(const FileHandle &f) const \
+ virtual TQString value(const FileHandle &f) const \
{ \
- return QString::number(f.method); \
+ return TQString::number(f.method); \
} \
static const int dummy; \
}; \
@@ -59,33 +59,33 @@ namespace FileHandleProperties
{
struct Property
{
- virtual QString value(const FileHandle &) const
+ virtual TQString value(const FileHandle &) const
{
- return QString::null;
+ return TQString::null;
}
};
- static QMap<QCString, const Property *> propertyMap;
+ static TQMap<TQCString, const Property *> propertyMap;
- static int addToPropertyMap(const QCString &name, Property *property)
+ static int addToPropertyMap(const TQCString &name, Property *property)
{
propertyMap[name] = property;
return 0;
}
- static QString property(const FileHandle &file, const QCString &key)
+ static TQString property(const FileHandle &file, const TQCString &key)
{
- return propertyMap.contains(key) ? propertyMap[key]->value(file) : QString::null;
+ return propertyMap.contains(key) ? propertyMap[key]->value(file) : TQString::null;
}
- static QStringList properties()
+ static TQStringList properties()
{
- static QStringList l;
+ static TQStringList l;
if(l.isEmpty()) {
- QMap<QCString, const Property *>::ConstIterator it = propertyMap.begin();
+ TQMap<TQCString, const Property *>::ConstIterator it = propertyMap.begin();
for(; it != propertyMap.end(); ++it)
- l.append(QString(it.key()));
+ l.append(TQString(it.key()));
}
return l;
}
diff --git a/juk/filerenamer.cpp b/juk/filerenamer.cpp
index ec45a26..c1acb2c 100644
--- a/juk/filerenamer.cpp
+++ b/juk/filerenamer.cpp
@@ -34,19 +34,19 @@
#include <kmessagebox.h>
#include <ksimpleconfig.h>
-#include <qfile.h>
-#include <qhbox.h>
-#include <qvbox.h>
-#include <qscrollview.h>
-#include <qobjectlist.h>
-#include <qtimer.h>
-#include <qregexp.h>
-#include <qcheckbox.h>
-#include <qdir.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qsignalmapper.h>
-#include <qheader.h>
+#include <tqfile.h>
+#include <tqhbox.h>
+#include <tqvbox.h>
+#include <tqscrollview.h>
+#include <tqobjectlist.h>
+#include <tqtimer.h>
+#include <tqregexp.h>
+#include <tqcheckbox.h>
+#include <tqdir.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqsignalmapper.h>
+#include <tqheader.h>
#include "tag.h"
#include "filehandle.h"
@@ -59,17 +59,17 @@
class ConfirmationDialog : public KDialogBase
{
public:
- ConfirmationDialog(const QMap<QString, QString> &files,
- QWidget *parent = 0, const char *name = 0)
+ ConfirmationDialog(const TQMap<TQString, TQString> &files,
+ TQWidget *parent = 0, const char *name = 0)
: KDialogBase(parent, name, true, i18n("Warning"), Ok | Cancel)
{
- QVBox *vbox = makeVBoxMainWidget();
- QHBox *hbox = new QHBox(vbox);
+ TQVBox *vbox = makeVBoxMainWidget();
+ TQHBox *hbox = new TQHBox(vbox);
- QLabel *l = new QLabel(hbox);
+ TQLabel *l = new TQLabel(hbox);
l->setPixmap(SmallIcon("messagebox_warning", 32));
- l = new QLabel(i18n("You are about to rename the following files. "
+ l = new TQLabel(i18n("You are about to rename the following files. "
"Are you sure you want to continue?"), hbox);
hbox->setStretchFactor(l, 1);
@@ -80,7 +80,7 @@ public:
int lvHeight = 0;
- QMap<QString, QString>::ConstIterator it = files.begin();
+ TQMap<TQString, TQString>::ConstIterator it = files.begin();
for(; it != files.end(); ++it) {
KListViewItem *i = it.key() != it.data()
? new KListViewItem(lv, it.key(), it.data())
@@ -103,7 +103,7 @@ ConfigCategoryReader::ConfigCategoryReader() : CategoryReaderInterface(),
{
KConfigGroup config(KGlobal::config(), "FileRenamer");
- QValueList<int> categoryOrder = config.readIntListEntry("CategoryOrder");
+ TQValueList<int> categoryOrder = config.readIntListEntry("CategoryOrder");
unsigned categoryCount[NumTypes] = { 0 }; // Keep track of each category encountered.
// Set a default:
@@ -111,7 +111,7 @@ ConfigCategoryReader::ConfigCategoryReader() : CategoryReaderInterface(),
if(categoryOrder.isEmpty())
categoryOrder << Artist << Album << Title << Track;
- QValueList<int>::ConstIterator catIt = categoryOrder.constBegin();
+ TQValueList<int>::ConstIterator catIt = categoryOrder.constBegin();
for(; catIt != categoryOrder.constEnd(); ++catIt)
{
unsigned catCount = categoryCount[*catIt]++;
@@ -124,9 +124,9 @@ ConfigCategoryReader::ConfigCategoryReader() : CategoryReaderInterface(),
m_folderSeparators.resize(m_categoryOrder.count() - 1, false);
- QValueList<int> checkedSeparators = config.readIntListEntry("CheckedDirSeparators");
+ TQValueList<int> checkedSeparators = config.readIntListEntry("CheckedDirSeparators");
- QValueList<int>::ConstIterator it = checkedSeparators.constBegin();
+ TQValueList<int>::ConstIterator it = checkedSeparators.constBegin();
for(; it != checkedSeparators.constEnd(); ++it) {
unsigned index = static_cast<unsigned>(*it);
if(index < m_folderSeparators.count())
@@ -137,19 +137,19 @@ ConfigCategoryReader::ConfigCategoryReader() : CategoryReaderInterface(),
m_separator = config.readEntry("Separator", " - ");
}
-QString ConfigCategoryReader::categoryValue(TagType type) const
+TQString ConfigCategoryReader::categoryValue(TagType type) const
{
if(!m_currentItem)
- return QString::null;
+ return TQString::null;
Tag *tag = m_currentItem->file().tag();
switch(type) {
case Track:
- return QString::number(tag->track());
+ return TQString::number(tag->track());
case Year:
- return QString::number(tag->year());
+ return TQString::number(tag->year());
case Title:
return tag->title();
@@ -164,16 +164,16 @@ QString ConfigCategoryReader::categoryValue(TagType type) const
return tag->genre();
default:
- return QString::null;
+ return TQString::null;
}
}
-QString ConfigCategoryReader::prefix(const CategoryID &category) const
+TQString ConfigCategoryReader::prefix(const CategoryID &category) const
{
return m_options[category].prefix();
}
-QString ConfigCategoryReader::suffix(const CategoryID &category) const
+TQString ConfigCategoryReader::suffix(const CategoryID &category) const
{
return m_options[category].suffix();
}
@@ -183,22 +183,22 @@ TagRenamerOptions::EmptyActions ConfigCategoryReader::emptyAction(const Category
return m_options[category].emptyAction();
}
-QString ConfigCategoryReader::emptyText(const CategoryID &category) const
+TQString ConfigCategoryReader::emptyText(const CategoryID &category) const
{
return m_options[category].emptyText();
}
-QValueList<CategoryID> ConfigCategoryReader::categoryOrder() const
+TQValueList<CategoryID> ConfigCategoryReader::categoryOrder() const
{
return m_categoryOrder;
}
-QString ConfigCategoryReader::separator() const
+TQString ConfigCategoryReader::separator() const
{
return m_separator;
}
-QString ConfigCategoryReader::musicFolder() const
+TQString ConfigCategoryReader::musicFolder() const
{
return m_musicFolder;
}
@@ -224,11 +224,11 @@ bool ConfigCategoryReader::isDisabled(const CategoryID &category) const
// Implementation of FileRenamerWidget
//
-FileRenamerWidget::FileRenamerWidget(QWidget *parent) :
+FileRenamerWidget::FileRenamerWidget(TQWidget *parent) :
FileRenamerBase(parent), CategoryReaderInterface(),
m_exampleFromFile(false)
{
- QLabel *temp = new QLabel(0);
+ TQLabel *temp = new TQLabel(0);
m_exampleText->setPaletteBackgroundColor(temp->paletteBackgroundColor());
delete temp;
@@ -244,22 +244,22 @@ FileRenamerWidget::FileRenamerWidget(QWidget *parent) :
// Add correct text to combo box.
m_category->clear();
for(unsigned i = StartTag; i < NumTypes; ++i) {
- QString category = TagRenamerOptions::tagTypeText(static_cast<TagType>(i));
+ TQString category = TagRenamerOptions::tagTypeText(static_cast<TagType>(i));
m_category->insertItem(category);
}
- connect(m_exampleDialog, SIGNAL(signalShown()), SLOT(exampleDialogShown()));
- connect(m_exampleDialog, SIGNAL(signalHidden()), SLOT(exampleDialogHidden()));
- connect(m_exampleDialog, SIGNAL(dataChanged()), SLOT(dataSelected()));
- connect(m_exampleDialog, SIGNAL(fileChanged(const QString &)),
- this, SLOT(fileSelected(const QString &)));
+ connect(m_exampleDialog, TQT_SIGNAL(signalShown()), TQT_SLOT(exampleDialogShown()));
+ connect(m_exampleDialog, TQT_SIGNAL(signalHidden()), TQT_SLOT(exampleDialogHidden()));
+ connect(m_exampleDialog, TQT_SIGNAL(dataChanged()), TQT_SLOT(dataSelected()));
+ connect(m_exampleDialog, TQT_SIGNAL(fileChanged(const TQString &)),
+ this, TQT_SLOT(fileSelected(const TQString &)));
exampleTextChanged();
}
void FileRenamerWidget::loadConfig()
{
- QValueList<int> checkedSeparators;
+ TQValueList<int> checkedSeparators;
KConfigGroup config(KGlobal::config(), "FileRenamer");
for(unsigned i = 0; i < m_rows.count(); ++i)
@@ -267,14 +267,14 @@ void FileRenamerWidget::loadConfig()
checkedSeparators = config.readIntListEntry("CheckedDirSeparators");
- QValueList<int>::ConstIterator it = checkedSeparators.begin();
+ TQValueList<int>::ConstIterator it = checkedSeparators.begin();
for(; it != checkedSeparators.end(); ++it) {
unsigned separator = static_cast<unsigned>(*it);
if(separator < m_folderSwitches.count())
m_folderSwitches[separator]->setChecked(true);
}
- QString url = config.readPathEntry("MusicFolder", "${HOME}/music");
+ TQString url = config.readPathEntry("MusicFolder", "${HOME}/music");
m_musicFolder->setURL(url);
m_separator->setCurrentText(config.readEntry("Separator", " - "));
@@ -283,8 +283,8 @@ void FileRenamerWidget::loadConfig()
void FileRenamerWidget::saveConfig()
{
KConfigGroup config(KGlobal::config(), "FileRenamer");
- QValueList<int> checkedSeparators;
- QValueList<int> categoryOrder;
+ TQValueList<int> checkedSeparators;
+ TQValueList<int> categoryOrder;
for(unsigned i = 0; i < m_rows.count(); ++i) {
unsigned rowId = idOfPosition(i); // Write out in GUI order, not m_rows order
@@ -310,8 +310,8 @@ FileRenamerWidget::~FileRenamerWidget()
unsigned FileRenamerWidget::addRowCategory(TagType category)
{
- static QPixmap up = SmallIcon("up");
- static QPixmap down = SmallIcon("down");
+ static TQPixmap up = SmallIcon("up");
+ static TQPixmap down = SmallIcon("down");
// Find number of categories already of this type.
unsigned categoryCount = 0;
@@ -325,18 +325,18 @@ unsigned FileRenamerWidget::addRowCategory(TagType category)
row.position = m_rows.count();
unsigned id = row.position;
- QHBox *frame = new QHBox(m_mainFrame);
+ TQHBox *frame = new TQHBox(m_mainFrame);
frame->setPaletteBackgroundColor(frame->paletteBackgroundColor().dark(110));
row.widget = frame;
- frame->setFrameShape(QFrame::Box);
+ frame->setFrameShape(TQFrame::Box);
frame->setLineWidth(1);
frame->setMargin(3);
m_mainFrame->setStretchFactor(frame, 1);
- QVBox *buttons = new QVBox(frame);
- buttons->setFrameStyle(QFrame::Plain | QFrame::Box);
+ TQVBox *buttons = new TQVBox(frame);
+ buttons->setFrameStyle(TQFrame::Plain | TQFrame::Box);
buttons->setLineWidth(1);
row.upButton = new KPushButton(buttons);
@@ -347,23 +347,23 @@ unsigned FileRenamerWidget::addRowCategory(TagType category)
row.upButton->setFlat(true);
row.downButton->setFlat(true);
- upMapper->connect(row.upButton, SIGNAL(clicked()), SLOT(map()));
+ upMapper->connect(row.upButton, TQT_SIGNAL(clicked()), TQT_SLOT(map()));
upMapper->setMapping(row.upButton, id);
- downMapper->connect(row.downButton, SIGNAL(clicked()), SLOT(map()));
+ downMapper->connect(row.downButton, TQT_SIGNAL(clicked()), TQT_SLOT(map()));
downMapper->setMapping(row.downButton, id);
- QString labelText = QString("<b>%1</b>").arg(TagRenamerOptions::tagTypeText(category));
- QLabel *label = new QLabel(labelText, frame);
+ TQString labelText = TQString("<b>%1</b>").arg(TagRenamerOptions::tagTypeText(category));
+ TQLabel *label = new TQLabel(labelText, frame);
frame->setStretchFactor(label, 1);
label->setAlignment(AlignCenter);
- QVBox *options = new QVBox(frame);
+ TQVBox *options = new TQVBox(frame);
row.enableButton = new KPushButton(i18n("Remove"), options);
- toggleMapper->connect(row.enableButton, SIGNAL(clicked()), SLOT(map()));
+ toggleMapper->connect(row.enableButton, TQT_SIGNAL(clicked()), TQT_SLOT(map()));
toggleMapper->setMapping(row.enableButton, id);
row.optionsButton = new KPushButton(i18n("Options"), options);
- mapper->connect(row.optionsButton, SIGNAL(clicked()), SLOT(map()));
+ mapper->connect(row.optionsButton, TQT_SIGNAL(clicked()), TQT_SLOT(map()));
mapper->setMapping(row.optionsButton, id);
row.widget->show();
@@ -396,7 +396,7 @@ bool FileRenamerWidget::removeRow(unsigned id)
return false;
}
- // Remove widget. Don't delete it since it appears QSignalMapper may still need it.
+ // Remove widget. Don't delete it since it appears TQSignalMapper may still need it.
m_rows[id].widget->deleteLater();
m_rows[id].widget = 0;
m_rows[id].enableButton = 0;
@@ -448,22 +448,22 @@ bool FileRenamerWidget::removeRow(unsigned id)
// We can insert another row now, make sure GUI is updated to match.
m_insertCategory->setEnabled(true);
- QTimer::singleShot(0, this, SLOT(exampleTextChanged()));
+ TQTimer::singleShot(0, this, TQT_SLOT(exampleTextChanged()));
return true;
}
void FileRenamerWidget::addFolderSeparatorCheckbox()
{
- QWidget *temp = new QWidget(m_mainFrame);
- QHBoxLayout *l = new QHBoxLayout(temp);
+ TQWidget *temp = new TQWidget(m_mainFrame);
+ TQHBoxLayout *l = new TQHBoxLayout(temp);
- QCheckBox *cb = new QCheckBox(i18n("Insert folder separator"), temp);
+ TQCheckBox *cb = new TQCheckBox(i18n("Insert folder separator"), temp);
m_folderSwitches.append(cb);
l->addWidget(cb, 0, AlignCenter);
cb->setChecked(false);
- connect(cb, SIGNAL(toggled(bool)),
- SLOT(exampleTextChanged()));
+ connect(cb, TQT_SIGNAL(toggled(bool)),
+ TQT_SLOT(exampleTextChanged()));
temp->show();
}
@@ -471,7 +471,7 @@ void FileRenamerWidget::addFolderSeparatorCheckbox()
void FileRenamerWidget::createTagRows()
{
KConfigGroup config(KGlobal::config(), "FileRenamer");
- QValueList<int> categoryOrder = config.readIntListEntry("CategoryOrder");
+ TQValueList<int> categoryOrder = config.readIntListEntry("CategoryOrder");
if(categoryOrder.isEmpty())
categoryOrder << Artist << Album << Artist << Title << Track;
@@ -480,22 +480,22 @@ void FileRenamerWidget::createTagRows()
m_rows.reserve(categoryOrder.count());
m_folderSwitches.reserve(categoryOrder.count() - 1);
- mapper = new QSignalMapper(this, "signal mapper");
- toggleMapper = new QSignalMapper(this, "toggle mapper");
- upMapper = new QSignalMapper(this, "up button mapper");
- downMapper = new QSignalMapper(this, "down button mapper");
+ mapper = new TQSignalMapper(this, "signal mapper");
+ toggleMapper = new TQSignalMapper(this, "toggle mapper");
+ upMapper = new TQSignalMapper(this, "up button mapper");
+ downMapper = new TQSignalMapper(this, "down button mapper");
- connect(mapper, SIGNAL(mapped(int)), SLOT(showCategoryOption(int)));
- connect(toggleMapper, SIGNAL(mapped(int)), SLOT(slotRemoveRow(int)));
- connect(upMapper, SIGNAL(mapped(int)), SLOT(moveItemUp(int)));
- connect(downMapper, SIGNAL(mapped(int)), SLOT(moveItemDown(int)));
+ connect(mapper, TQT_SIGNAL(mapped(int)), TQT_SLOT(showCategoryOption(int)));
+ connect(toggleMapper, TQT_SIGNAL(mapped(int)), TQT_SLOT(slotRemoveRow(int)));
+ connect(upMapper, TQT_SIGNAL(mapped(int)), TQT_SLOT(moveItemUp(int)));
+ connect(downMapper, TQT_SIGNAL(mapped(int)), TQT_SLOT(moveItemDown(int)));
- m_mainFrame = new QVBox(m_mainView->viewport());
+ m_mainFrame = new TQVBox(m_mainView->viewport());
m_mainFrame->setMargin(10);
m_mainFrame->setSpacing(5);
m_mainView->addChild(m_mainFrame);
- m_mainView->setResizePolicy(QScrollView::AutoOneFit);
+ m_mainView->setResizePolicy(TQScrollView::AutoOneFit);
// OK, the deal with the categoryOrder variable is that we need to create
// the rows in the order that they were saved in (the order given by categoryOrder).
@@ -503,7 +503,7 @@ void FileRenamerWidget::createTagRows()
// a row given the identifier, use m_rows[id].position. To find the id of a given
// position, use idOfPosition(position).
- QValueList<int>::ConstIterator it = categoryOrder.constBegin();
+ TQValueList<int>::ConstIterator it = categoryOrder.constBegin();
for(; it != categoryOrder.constEnd(); ++it) {
if(*it < StartTag || *it >= NumTypes) {
@@ -523,7 +523,7 @@ void FileRenamerWidget::createTagRows()
// Insert the directory separator checkbox if this isn't the last
// item.
- QValueList<int>::ConstIterator dup(it);
+ TQValueList<int>::ConstIterator dup(it);
// Check for last item
if(++dup != categoryOrder.constEnd())
@@ -553,17 +553,17 @@ void FileRenamerWidget::exampleTextChanged()
m_exampleText->setText(FileRenamer::fileName(*this) + ".mp3");
}
-QString FileRenamerWidget::fileCategoryValue(TagType category) const
+TQString FileRenamerWidget::fileCategoryValue(TagType category) const
{
FileHandle file(m_exampleFile);
Tag *tag = file.tag();
switch(category) {
case Track:
- return QString::number(tag->track());
+ return TQString::number(tag->track());
case Year:
- return QString::number(tag->year());
+ return TQString::number(tag->year());
case Title:
return tag->title();
@@ -578,11 +578,11 @@ QString FileRenamerWidget::fileCategoryValue(TagType category) const
return tag->genre();
default:
- return QString::null;
+ return TQString::null;
}
}
-QString FileRenamerWidget::categoryValue(TagType category) const
+TQString FileRenamerWidget::categoryValue(TagType category) const
{
if(m_exampleFromFile)
return fileCategoryValue(category);
@@ -609,13 +609,13 @@ QString FileRenamerWidget::categoryValue(TagType category) const
return example->m_exampleGenre->text();
default:
- return QString::null;
+ return TQString::null;
}
}
-QValueList<CategoryID> FileRenamerWidget::categoryOrder() const
+TQValueList<CategoryID> FileRenamerWidget::categoryOrder() const
{
- QValueList<CategoryID> list;
+ TQValueList<CategoryID> list;
// Iterate in GUI row order.
for(unsigned i = 0; i < m_rows.count(); ++i) {
@@ -636,7 +636,7 @@ bool FileRenamerWidget::hasFolderSeparator(unsigned index) const
void FileRenamerWidget::moveItem(unsigned id, MovementDirection direction)
{
- QWidget *l = m_rows[id].widget;
+ TQWidget *l = m_rows[id].widget;
unsigned bottom = m_rows.count() - 1;
unsigned pos = m_rows[id].position;
unsigned newPos = (direction == MoveUp) ? pos - 1 : pos + 1;
@@ -666,7 +666,7 @@ void FileRenamerWidget::moveItem(unsigned id, MovementDirection direction)
// This is the item we're swapping with.
unsigned idSwitchWith = idOfPosition(newPos);
- QWidget *w = m_rows[idSwitchWith].widget;
+ TQWidget *w = m_rows[idSwitchWith].widget;
// Update the table of widget rows.
@@ -675,7 +675,7 @@ void FileRenamerWidget::moveItem(unsigned id, MovementDirection direction)
// Move the item two spaces above/below its previous position. It has to
// be 2 spaces because of the checkbox.
- QBoxLayout *layout = dynamic_cast<QBoxLayout *>(m_mainFrame->layout());
+ TQBoxLayout *layout = dynamic_cast<TQBoxLayout *>(m_mainFrame->layout());
layout->remove(l);
layout->insertWidget(2 * newPos, l);
@@ -687,7 +687,7 @@ void FileRenamerWidget::moveItem(unsigned id, MovementDirection direction)
layout->insertWidget(2 * pos, w);
layout->invalidate();
- QTimer::singleShot(0, this, SLOT(exampleTextChanged()));
+ TQTimer::singleShot(0, this, TQT_SLOT(exampleTextChanged()));
}
unsigned FileRenamerWidget::idOfPosition(unsigned position) const
@@ -734,7 +734,7 @@ void FileRenamerWidget::showCategoryOption(int id)
{
TagOptionsDialog *dialog = new TagOptionsDialog(this, m_rows[id].options, m_rows[id].category.categoryNumber);
- if(dialog->exec() == QDialog::Accepted) {
+ if(dialog->exec() == TQDialog::Accepted) {
m_rows[id].options = dialog->options();
exampleTextChanged();
}
@@ -796,7 +796,7 @@ void FileRenamerWidget::exampleDialogHidden()
m_showExample->setText(i18n("Show Renamer Test Dialog"));
}
-void FileRenamerWidget::fileSelected(const QString &file)
+void FileRenamerWidget::fileSelected(const TQString &file)
{
m_exampleFromFile = true;
m_exampleFile = file;
@@ -809,12 +809,12 @@ void FileRenamerWidget::dataSelected()
exampleTextChanged();
}
-QString FileRenamerWidget::separator() const
+TQString FileRenamerWidget::separator() const
{
return m_separator->currentText();
}
-QString FileRenamerWidget::musicFolder() const
+TQString FileRenamerWidget::musicFolder() const
{
return m_musicFolder->url();
}
@@ -845,15 +845,15 @@ void FileRenamer::rename(PlaylistItem *item)
void FileRenamer::rename(const PlaylistItemList &items)
{
ConfigCategoryReader reader;
- QStringList errorFiles;
- QMap<QString, QString> map;
- QMap<QString, PlaylistItem *> itemMap;
+ TQStringList errorFiles;
+ TQMap<TQString, TQString> map;
+ TQMap<TQString, PlaylistItem *> itemMap;
for(PlaylistItemList::ConstIterator it = items.begin(); it != items.end(); ++it) {
reader.setPlaylistItem(*it);
- QString oldFile = (*it)->file().absFilePath();
- QString extension = (*it)->file().fileInfo().extension(false);
- QString newFile = fileName(reader) + "." + extension;
+ TQString oldFile = (*it)->file().absFilePath();
+ TQString extension = (*it)->file().fileInfo().extension(false);
+ TQString newFile = fileName(reader) + "." + extension;
if(oldFile != newFile) {
map[oldFile] = newFile;
@@ -861,11 +861,11 @@ void FileRenamer::rename(const PlaylistItemList &items)
}
}
- if(itemMap.isEmpty() || ConfirmationDialog(map).exec() != QDialog::Accepted)
+ if(itemMap.isEmpty() || ConfirmationDialog(map).exec() != TQDialog::Accepted)
return;
KApplication::setOverrideCursor(Qt::waitCursor);
- for(QMap<QString, QString>::ConstIterator it = map.begin();
+ for(TQMap<TQString, TQString>::ConstIterator it = map.begin();
it != map.end(); ++it)
{
if(moveFile(it.key(), it.data())) {
@@ -885,7 +885,7 @@ void FileRenamer::rename(const PlaylistItemList &items)
KMessageBox::errorList(0, i18n("The following rename operations failed:\n"), errorFiles);
}
-bool FileRenamer::moveFile(const QString &src, const QString &dest)
+bool FileRenamer::moveFile(const TQString &src, const TQString &dest)
{
kdDebug(65432) << "Moving file " << src << " to " << dest << endl;
@@ -906,7 +906,7 @@ bool FileRenamer::moveFile(const QString &src, const QString &dest)
// Get just the directory.
KURL dir = dstURL;
- dir.setFileName(QString::null);
+ dir.setFileName(TQString::null);
// Create the directory.
if(!KStandardDirs::exists(dir.path()))
@@ -932,27 +932,27 @@ void FileRenamer::setFolderIcon(const KURL &dst, const PlaylistItem *item)
// Split path, and go through each path element. If a path element has
// the album information, set its folder icon.
- QStringList elements = QStringList::split("/", dstURL.directory());
- QString path;
+ TQStringList elements = TQStringList::split("/", dstURL.directory());
+ TQString path;
- for(QStringList::ConstIterator it = elements.begin(); it != elements.end(); ++it) {
+ for(TQStringList::ConstIterator it = elements.begin(); it != elements.end(); ++it) {
path.append("/" + (*it));
kdDebug() << "Checking path: " << path << endl;
if((*it).find(item->file().tag()->album()) != -1 &&
- !QFile::exists(path + "/.directory"))
+ !TQFile::exists(path + "/.directory"))
{
// Seems to be a match, let's set the folder icon for the current
// path. First we should write out the file.
- QPixmap thumb = item->file().coverInfo()->pixmap(CoverInfo::Thumbnail);
+ TQPixmap thumb = item->file().coverInfo()->pixmap(CoverInfo::Thumbnail);
thumb.save(path + "/.juk-thumbnail.png", "PNG");
KSimpleConfig config(path + "/.directory");
config.setGroup("Desktop Entry");
if(!config.hasKey("Icon")) {
- config.writeEntry("Icon", QString("%1/.juk-thumbnail.png").arg(path));
+ config.writeEntry("Icon", TQString("%1/.juk-thumbnail.png").arg(path));
config.sync();
}
@@ -965,11 +965,11 @@ void FileRenamer::setFolderIcon(const KURL &dst, const PlaylistItem *item)
* Returns iterator pointing to the last item enabled in the given list with
* a non-empty value (or is required to be included).
*/
-QValueList<CategoryID>::ConstIterator lastEnabledItem(const QValueList<CategoryID> &list,
+TQValueList<CategoryID>::ConstIterator lastEnabledItem(const TQValueList<CategoryID> &list,
const CategoryReaderInterface &interface)
{
- QValueList<CategoryID>::ConstIterator it = list.constBegin();
- QValueList<CategoryID>::ConstIterator last = list.constEnd();
+ TQValueList<CategoryID>::ConstIterator it = list.constBegin();
+ TQValueList<CategoryID>::ConstIterator last = list.constEnd();
for(; it != list.constEnd(); ++it) {
if(interface.isRequired(*it) || (!interface.isDisabled(*it) &&
@@ -982,21 +982,21 @@ QValueList<CategoryID>::ConstIterator lastEnabledItem(const QValueList<CategoryI
return last;
}
-QString FileRenamer::fileName(const CategoryReaderInterface &interface)
+TQString FileRenamer::fileName(const CategoryReaderInterface &interface)
{
- const QValueList<CategoryID> categoryOrder = interface.categoryOrder();
- const QString separator = interface.separator();
- const QString folder = interface.musicFolder();
- QValueList<CategoryID>::ConstIterator lastEnabled;
+ const TQValueList<CategoryID> categoryOrder = interface.categoryOrder();
+ const TQString separator = interface.separator();
+ const TQString folder = interface.musicFolder();
+ TQValueList<CategoryID>::ConstIterator lastEnabled;
unsigned i = 0;
- QStringList list;
- QChar dirSeparator = QChar(QDir::separator());
+ TQStringList list;
+ TQChar dirSeparator = TQChar(TQDir::separator());
// Use lastEnabled to properly handle folder separators.
lastEnabled = lastEnabledItem(categoryOrder, interface);
bool pastLast = false; // Toggles to true once we've passed lastEnabled.
- for(QValueList<CategoryID>::ConstIterator it = categoryOrder.begin();
+ for(TQValueList<CategoryID>::ConstIterator it = categoryOrder.begin();
it != categoryOrder.end();
++it, ++i)
{
@@ -1006,7 +1006,7 @@ QString FileRenamer::fileName(const CategoryReaderInterface &interface)
if(interface.isDisabled(*it))
continue;
- QString value = interface.value(*it);
+ TQString value = interface.value(*it);
// The user can use the folder separator checkbox to add folders, so don't allow
// slashes that slip in to accidentally create new folders. Should we filter this
@@ -1023,9 +1023,9 @@ QString FileRenamer::fileName(const CategoryReaderInterface &interface)
// Construct a single string representation, handling strings ending in
// '/' specially
- QString result;
+ TQString result;
- for(QStringList::ConstIterator it = list.constBegin(); it != list.constEnd(); /* Empty */) {
+ for(TQStringList::ConstIterator it = list.constBegin(); it != list.constEnd(); /* Empty */) {
result += *it;
++it; // Manually advance iterator to check for end-of-list.
@@ -1039,7 +1039,7 @@ QString FileRenamer::fileName(const CategoryReaderInterface &interface)
}
}
- return QString(folder + dirSeparator + result);
+ return TQString(folder + dirSeparator + result);
}
#include "filerenamer.moc"
diff --git a/juk/filerenamer.h b/juk/filerenamer.h
index 0097ed8..6654803 100644
--- a/juk/filerenamer.h
+++ b/juk/filerenamer.h
@@ -17,9 +17,9 @@
#ifndef JUK_FILERENAMER_H
#define JUK_FILERENAMER_H
-#include <qstring.h>
-#include <qvaluevector.h>
-#include <qmap.h>
+#include <tqstring.h>
+#include <tqvaluevector.h>
+#include <tqmap.h>
#include "filerenamerbase.h"
#include "filerenameroptions.h"
@@ -41,21 +41,21 @@ enum MovementDirection { MoveUp, MoveDown };
/**
* This is used by FileRenamerWidget to store information about a particular
- * tag type, including its position, the QFrame holding the information,
+ * tag type, including its position, the TQFrame holding the information,
* the up, down, and enable buttons, and the user-selected renaming options.
*/
struct Row
{
Row() : widget(0), upButton(0), downButton(0), enableButton(0) {}
- QWidget *widget;
+ TQWidget *widget;
- QPushButton *upButton, *downButton, *optionsButton, *enableButton;
+ TQPushButton *upButton, *downButton, *optionsButton, *enableButton;
TagRenamerOptions options;
CategoryID category; // Includes category and a disambiguation id.
unsigned position; ///< Position in the GUI (0 == top)
- QString name;
+ TQString name;
};
/**
@@ -65,7 +65,7 @@ struct Row
* takes up. The index into the vector is known as the row identifier (which is unique but
* not necessarily constant).
*/
-typedef QValueVector<Row> Rows;
+typedef TQValueVector<Row> Rows;
/**
* Holds a list directory separator checkboxes which separate a row. There
@@ -73,14 +73,14 @@ typedef QValueVector<Row> Rows;
*
* Used for ConfigCategoryReader.
*/
-typedef QValueVector<QCheckBox *> DirSeparatorCheckBoxes;
+typedef TQValueVector<TQCheckBox *> DirSeparatorCheckBoxes;
/**
* Associates a CategoryID combination with a set of options.
*
* Used for ConfigCategoryReader
*/
-typedef QMap<CategoryID, TagRenamerOptions> CategoryOptionsMap;
+typedef TQMap<CategoryID, TagRenamerOptions> CategoryOptionsMap;
/**
* An implementation of CategoryReaderInterface that reads the user's settings
@@ -102,14 +102,14 @@ public:
// CategoryReaderInterface reimplementations
- virtual QString categoryValue(TagType type) const;
- virtual QString prefix(const CategoryID &category) const;
- virtual QString suffix(const CategoryID &category) const;
+ virtual TQString categoryValue(TagType type) const;
+ virtual TQString prefix(const CategoryID &category) const;
+ virtual TQString suffix(const CategoryID &category) const;
virtual TagRenamerOptions::EmptyActions emptyAction(const CategoryID &category) const;
- virtual QString emptyText(const CategoryID &category) const;
- virtual QValueList<CategoryID> categoryOrder() const;
- virtual QString separator() const;
- virtual QString musicFolder() const;
+ virtual TQString emptyText(const CategoryID &category) const;
+ virtual TQValueList<CategoryID> categoryOrder() const;
+ virtual TQString separator() const;
+ virtual TQString musicFolder() const;
virtual int trackWidth(unsigned categoryNum) const;
virtual bool hasFolderSeparator(unsigned index) const;
virtual bool isDisabled(const CategoryID &category) const;
@@ -117,10 +117,10 @@ public:
private:
const PlaylistItem *m_currentItem;
CategoryOptionsMap m_options;
- QValueList<CategoryID> m_categoryOrder;
- QString m_separator;
- QString m_musicFolder;
- QValueVector<bool> m_folderSeparators;
+ TQValueList<CategoryID> m_categoryOrder;
+ TQString m_separator;
+ TQString m_musicFolder;
+ TQValueVector<bool> m_folderSeparators;
};
/**
@@ -142,7 +142,7 @@ class FileRenamerWidget : public FileRenamerBase, public CategoryReaderInterface
Q_OBJECT
public:
- FileRenamerWidget(QWidget *parent);
+ FileRenamerWidget(TQWidget *parent);
~FileRenamerWidget();
/// Maximum number of total categories the widget will allow.
@@ -232,7 +232,7 @@ private:
* @param category the category to retrieve the value for.
* @return the string representation of the value for \p category.
*/
- QString fileCategoryValue(TagType category) const;
+ TQString fileCategoryValue(TagType category) const;
/**
* Returns the value for \p category by reading the user entry for that
@@ -242,7 +242,7 @@ private:
* @param category the category to retrieve the value for.
* @return the string representation of the value for \p category.
*/
- virtual QString categoryValue(TagType category) const;
+ virtual TQString categoryValue(TagType category) const;
/**
* Returns the user-specified prefix string for \p category.
@@ -250,7 +250,7 @@ private:
* @param category the category to retrieve the value for.
* @return user-specified prefix string for \p category.
*/
- virtual QString prefix(const CategoryID &category) const
+ virtual TQString prefix(const CategoryID &category) const
{
return m_rows[findIdentifier(category)].options.prefix();
}
@@ -261,7 +261,7 @@ private:
* @param category the category to retrieve the value for.
* @return user-specified suffix string for \p category.
*/
- virtual QString suffix(const CategoryID &category) const
+ virtual TQString suffix(const CategoryID &category) const
{
return m_rows[findIdentifier(category)].options.suffix();
}
@@ -284,7 +284,7 @@ private:
* @param category the category to retrieve the value for.
* @return the user-specified empty text for \p category.
*/
- virtual QString emptyText(const CategoryID &category) const
+ virtual TQString emptyText(const CategoryID &category) const
{
return m_rows[findIdentifier(category)].options.emptyText();
}
@@ -292,17 +292,17 @@ private:
/**
* @return list of CategoryIDs corresponding to the user-specified category order.
*/
- virtual QValueList<CategoryID> categoryOrder() const;
+ virtual TQValueList<CategoryID> categoryOrder() const;
/**
* @return string that separates the tag values in the file name.
*/
- virtual QString separator() const;
+ virtual TQString separator() const;
/**
* @return local path to the music folder used to store renamed files.
*/
- virtual QString musicFolder() const;
+ virtual TQString musicFolder() const;
/**
* @param categoryNum Zero-based number of category to get results for (if more than one).
@@ -399,7 +399,7 @@ private slots:
*
* @param file the path to the local file to read.
*/
- virtual void fileSelected(const QString &file);
+ virtual void fileSelected(const TQString &file);
/**
* This function reads the tags from the user-supplied examples and ensures
@@ -419,7 +419,7 @@ private slots:
/**
* This function removes the row identified by id and updates the internal data to be
* consistent again, by forwarding the call to removeRow().
- * This roundabout way is done due to QSignalMapper.
+ * This roundabout way is done due to TQSignalMapper.
*
* @param id The unique id to update
*/
@@ -451,7 +451,7 @@ private slots:
private:
/// This is the frame that holds all of the category widgets and checkboxes.
- QVBox *m_mainFrame;
+ TQVBox *m_mainFrame;
/**
* This is the meat of the widget, it holds the rows for the user configuration. It is
@@ -475,13 +475,13 @@ private:
/// This is true if we're reading example tags from m_exampleFile.
bool m_exampleFromFile;
- QString m_exampleFile;
+ TQString m_exampleFile;
// Used to map signals from rows to the correct widget.
- QSignalMapper *mapper;
- QSignalMapper *toggleMapper;
- QSignalMapper *upMapper;
- QSignalMapper *downMapper;
+ TQSignalMapper *mapper;
+ TQSignalMapper *toggleMapper;
+ TQSignalMapper *upMapper;
+ TQSignalMapper *downMapper;
};
/**
@@ -521,7 +521,7 @@ public:
*
* @param interface object to read options/data from.
*/
- static QString fileName(const CategoryReaderInterface &interface);
+ static TQString fileName(const CategoryReaderInterface &interface);
private:
/**
@@ -535,7 +535,7 @@ private:
* Attempts to rename the file from \a src to \a dest. Returns true if the
* operation succeeded.
*/
- bool moveFile(const QString &src, const QString &dest);
+ bool moveFile(const TQString &src, const TQString &dest);
};
#endif /* JUK_FILERENAMER_H */
diff --git a/juk/filerenamerconfigdlg.cpp b/juk/filerenamerconfigdlg.cpp
index 74038dc..8a741d0 100644
--- a/juk/filerenamerconfigdlg.cpp
+++ b/juk/filerenamerconfigdlg.cpp
@@ -19,7 +19,7 @@
#include "filerenamer.h"
#include "filerenamerconfigdlg.h"
-FileRenamerConfigDlg::FileRenamerConfigDlg(QWidget *parent) :
+FileRenamerConfigDlg::FileRenamerConfigDlg(TQWidget *parent) :
KDialogBase(parent, "file renamer dialog", true,
i18n("File Renamer Options"), Ok | Cancel),
m_renamerWidget(new FileRenamerWidget(this))
diff --git a/juk/filerenamerconfigdlg.h b/juk/filerenamerconfigdlg.h
index 0678f52..0c42ab5 100644
--- a/juk/filerenamerconfigdlg.h
+++ b/juk/filerenamerconfigdlg.h
@@ -24,7 +24,7 @@ class FileRenamerConfigDlg : public KDialogBase
{
Q_OBJECT
public:
- FileRenamerConfigDlg(QWidget *parent);
+ FileRenamerConfigDlg(TQWidget *parent);
protected slots:
virtual void accept();
diff --git a/juk/filerenameroptions.cpp b/juk/filerenameroptions.cpp
index 2813be4..d40fd81 100644
--- a/juk/filerenameroptions.cpp
+++ b/juk/filerenameroptions.cpp
@@ -17,15 +17,15 @@
#include <kdebug.h>
#include <knuminput.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qradiobutton.h>
-#include <qlineedit.h>
-#include <qbuttongroup.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqradiobutton.h>
+#include <tqlineedit.h>
+#include <tqbuttongroup.h>
#include "filerenameroptions.h"
-FileRenamerTagOptions::FileRenamerTagOptions(QWidget *parent,
+FileRenamerTagOptions::FileRenamerTagOptions(TQWidget *parent,
const TagRenamerOptions &options) :
FileRenamerTagOptionsBase(parent), m_options(options)
{
@@ -44,7 +44,7 @@ FileRenamerTagOptions::FileRenamerTagOptions(QWidget *parent,
if(m_options.category() != Track)
m_trackGroup->hide();
- QString tagText = m_options.tagTypeText();
+ TQString tagText = m_options.tagTypeText();
setCaption(caption().arg(tagText));
m_tagFormatGroup->setTitle(m_tagFormatGroup->title().arg(tagText));
@@ -68,7 +68,7 @@ FileRenamerTagOptions::FileRenamerTagOptions(QWidget *parent,
void FileRenamerTagOptions::slotBracketsChanged()
{
- QString tag = m_options.tagTypeText();
+ TQString tag = m_options.tagTypeText();
m_options.setPrefix(m_prefixText->text());
m_options.setSuffix(m_suffixText->text());
@@ -82,19 +82,19 @@ void FileRenamerTagOptions::slotTrackWidthChanged()
m_options.setTrackWidth(width);
- QString singleDigitText = m_singleDigit->text();
+ TQString singleDigitText = m_singleDigit->text();
singleDigitText.remove(" ->");
- QString doubleDigitText = m_doubleDigit->text();
+ TQString doubleDigitText = m_doubleDigit->text();
doubleDigitText.remove(" ->");
if(singleDigitText.length() < width) {
- QString p;
+ TQString p;
p.fill('0', width - singleDigitText.length());
singleDigitText.prepend(p);
}
if(doubleDigitText.length() < width) {
- QString p;
+ TQString p;
p.fill('0', width - doubleDigitText.length(