From b1057f437bf65300831a0ccb45b920787c6b318d Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 11 Jun 2011 06:00:15 +0000 Subject: TQt4 port kdemultimedia This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1236079 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- arts/builder/TODO | 4 +- arts/builder/createtool.cpp | 12 +- arts/builder/dirmanager.cpp | 2 +- arts/builder/drawutils.cpp | 2 +- arts/builder/execdlg.cpp | 62 ++++---- arts/builder/execdlg.h | 5 +- arts/builder/interfacedlg.cpp | 62 ++++---- arts/builder/interfacedlg.h | 3 +- arts/builder/main.cpp | 86 +++++------ arts/builder/main.h | 1 + arts/builder/menumaker.cpp | 10 +- arts/builder/menumaker.h | 8 +- arts/builder/module.cpp | 10 +- arts/builder/module.h | 4 +- arts/builder/mwidget.cpp | 10 +- arts/builder/mwidget.h | 3 +- arts/builder/portposdlg.cpp | 58 ++++---- arts/builder/portposdlg.h | 3 +- arts/builder/propertypanel.cpp | 16 +-- arts/builder/propertypanel.h | 3 +- arts/builder/propertypanelbase.ui | 64 ++++----- arts/builder/qttableview.cpp | 160 ++++++++++----------- arts/builder/qttableview.h | 45 +++--- arts/builder/retrievedlg.cpp | 48 +++---- arts/builder/retrievedlg.h | 3 +- arts/builder/structureport.cpp | 12 +- arts/examples/README | 2 +- arts/examples/instrument_flexible_slide_GUI.arts | 14 +- arts/examples/instrument_moog_vcf_tune_GUI.arts | 10 +- arts/examples/mixer_element_eq.arts | 4 +- arts/examples/mixer_element_eqfx.arts | 20 +-- arts/examples/mixer_element_simple.arts | 6 +- arts/examples/template_Instrument_GUI.arts | 4 +- arts/examples/template_Mixer_Element.arts | 6 +- arts/gui/common/artsgui.idl | 34 ++--- arts/gui/kde/artstestgui.cpp | 12 +- arts/gui/kde/dbtest.h | 1 + arts/gui/kde/kartswidget.cpp | 32 ++--- arts/gui/kde/kartswidget.h | 14 +- arts/gui/kde/kbutton_impl.cpp | 4 +- arts/gui/kde/kbutton_impl.h | 3 +- arts/gui/kde/kcombobox_impl.cpp | 2 +- arts/gui/kde/kcombobox_impl.h | 3 +- arts/gui/kde/kfader.cpp | 8 +- arts/gui/kde/kfader.h | 7 +- arts/gui/kde/kfader_impl.h | 3 +- arts/gui/kde/kframe_impl.cpp | 4 +- arts/gui/kde/kframe_impl.h | 6 +- arts/gui/kde/kgraph.cpp | 12 +- arts/gui/kde/kgraph.h | 5 +- arts/gui/kde/kgraph_impl.h | 2 +- arts/gui/kde/kgraphline_impl.cpp | 2 +- arts/gui/kde/klabel_impl.cpp | 4 +- arts/gui/kde/klabel_impl.h | 3 +- arts/gui/kde/klayoutbox_impl.cpp | 26 ++-- arts/gui/kde/klayoutbox_impl.h | 10 +- arts/gui/kde/klevelmeter_firebars.cpp | 6 +- arts/gui/kde/klevelmeter_firebars.h | 2 + arts/gui/kde/klevelmeter_impl.cpp | 4 +- arts/gui/kde/klevelmeter_linebars.cpp | 14 +- arts/gui/kde/klevelmeter_linebars.h | 1 + arts/gui/kde/klevelmeter_normalbars.cpp | 4 +- arts/gui/kde/klevelmeter_normalbars.h | 4 +- arts/gui/kde/klevelmeter_private.h | 1 + arts/gui/kde/klevelmeter_small.cpp | 4 +- arts/gui/kde/klevelmeter_small.h | 1 + arts/gui/kde/klevelmeter_template.h | 1 + arts/gui/kde/klineedit_impl.h | 3 +- arts/gui/kde/kpopupbox_impl.cpp | 12 +- arts/gui/kde/kpopupbox_private.h | 38 ++--- arts/gui/kde/kpoti.cpp | 94 ++++++------ arts/gui/kde/kpoti.h | 15 +- arts/gui/kde/kpoti_impl.h | 1 + arts/gui/kde/kspinbox_impl.h | 3 +- arts/gui/kde/ktickmarks_impl.cpp | 12 +- arts/gui/kde/ktickmarks_impl.h | 1 + arts/gui/kde/kvolumefader_impl.cpp | 10 +- arts/gui/kde/kvolumefader_impl.h | 1 + arts/gui/kde/kwidget_impl.cpp | 26 ++-- arts/gui/kde/kwidget_impl.h | 5 +- arts/gui/kde/kwidgetrepo.cpp | 2 +- arts/gui/kde/kwidgetrepo.h | 2 +- arts/midi/Makefile.am | 4 +- arts/midi/artsmidi.idl | 2 +- arts/midi/audiosync_impl.cc | 2 +- arts/midi/audiosync_impl.h | 2 +- arts/midi/midisyncgroup_impl.cc | 4 +- arts/modules/README.environments | 2 +- arts/modules/common/artsmodulescommon.idl | 4 +- arts/modules/common/effectrackslot_impl.cc | 16 +-- arts/modules/common/env_effectrackitem_impl.cc | 6 +- arts/modules/common/env_instrumentitem_impl.cc | 2 +- arts/modules/common/env_item_impl.cc | 2 +- arts/modules/common/env_item_impl.h | 2 +- arts/modules/common/env_mixeritem_impl.cc | 24 ++-- arts/modules/effects/fivebandmonocomplexeq_impl.cc | 22 +-- arts/modules/effects/freeverb/Makefile.am | 8 ++ arts/modules/effects/freeverb/revmodel.cpp | 2 +- arts/modules/effects/freeverb/revmodel.hpp | 2 +- arts/modules/effects/freeverbguifactory_impl.cc | 10 +- .../effects/kstereovolumecontrolgui_impl.cpp | 4 +- .../modules/effects/kstereovolumecontrolgui_impl.h | 3 +- .../effects/stereocompressorguifactory_impl.cc | 2 +- arts/modules/effects/synth_freeverb_impl.cc | 2 +- .../effects/synth_stereo_fir_equalizer_impl.cc | 4 +- .../modules/effects/voiceremovalguifactory_impl.cc | 4 +- arts/modules/synth/Makefile.am | 4 +- arts/modules/synth/c_filter_stuff.h | 12 +- arts/modules/synth/synth_cdelay_impl.cc | 20 +-- arts/modules/synth/synth_delay_impl.cc | 20 +-- arts/runtime/artsbuilder.idl | 16 +-- arts/runtime/moduleinfo.cc | 4 +- arts/runtime/moduleinfo.h | 4 +- arts/runtime/structurebuilder_impl.cc | 12 +- arts/runtime/structures_impl.cc | 60 ++++---- arts/tools/Makefile.am | 4 +- arts/tools/artsactions.cpp | 6 +- arts/tools/artsactions.h | 5 +- arts/tools/artscontrolapplet.cpp | 42 +++--- arts/tools/artscontrolapplet.h | 7 +- arts/tools/artscontrolapplet_private.h | 17 +-- arts/tools/audiomanager.cpp | 28 ++-- arts/tools/audiomanager.h | 6 +- arts/tools/choosebusdlg.cpp | 62 ++++---- arts/tools/choosebusdlg.h | 3 +- arts/tools/environmentview.cpp | 10 +- arts/tools/environmentview.h | 1 + arts/tools/fftscopeview.cpp | 10 +- arts/tools/fftscopeview.h | 1 + arts/tools/levelmeters.cpp | 50 +++---- arts/tools/levelmeters.h | 25 ++-- arts/tools/main.cpp | 10 +- arts/tools/main.h | 5 +- arts/tools/mediatypesview.cpp | 2 +- arts/tools/mediatypesview.h | 1 + arts/tools/midiinstdlg.cpp | 56 ++++---- arts/tools/midiinstdlg.h | 3 +- arts/tools/midimanagerdlg.ui | 30 ++-- arts/tools/midimanagerview.cpp | 24 ++-- arts/tools/midimanagerview.h | 5 +- arts/tools/midimanagerwidget.ui | 26 ++-- arts/tools/midiportdlg.cpp | 44 +++--- arts/tools/midiportdlg.h | 3 +- arts/tools/statusview.cpp | 12 +- arts/tools/statusview.h | 3 +- arts/tools/templateview.cpp | 2 +- arts/tools/templateview.h | 3 +- juk/HACKING | 12 +- juk/advancedsearchdialog.cpp | 4 +- juk/advancedsearchdialog.h | 3 +- juk/akodeplayer.h | 5 + juk/artsplayer.h | 5 + juk/cache.cpp | 32 ++--- juk/cache.h | 2 +- juk/categoryreaderinterface.cpp | 2 +- juk/collectionlist.cpp | 36 ++--- juk/collectionlist.h | 15 +- juk/coverdialog.cpp | 12 +- juk/coverdialog.h | 3 +- juk/coverdialogbase.ui | 38 ++--- juk/covericonview.cpp | 8 +- juk/covericonview.h | 4 +- juk/coverinfo.cpp | 12 +- juk/covermanager.cpp | 60 ++++---- juk/covermanager.h | 6 +- juk/deletedialog.cpp | 8 +- juk/deletedialog.h | 6 +- juk/deletedialogbase.ui | 36 ++--- juk/directorylist.cpp | 10 +- juk/directorylist.h | 3 +- juk/directorylistbase.ui | 18 +-- juk/dynamicplaylist.cpp | 4 +- juk/dynamicplaylist.h | 3 +- juk/exampleoptions.cpp | 8 +- juk/exampleoptions.h | 8 +- juk/exampleoptionsbase.ui | 46 +++--- juk/filehandle.h | 2 +- juk/filehandleproperties.h | 4 +- juk/filerenamer.cpp | 80 +++++------ juk/filerenamer.h | 15 +- juk/filerenamerbase.ui | 50 +++---- juk/filerenamerconfigdlg.cpp | 4 +- juk/filerenamerconfigdlg.h | 3 +- juk/filerenameroptions.cpp | 28 ++-- juk/filerenameroptions.h | 6 +- juk/filerenameroptionsbase.ui | 76 +++++----- juk/folderplaylist.h | 5 +- juk/gstreamerplayer.cpp | 12 +- juk/gstreamerplayer.h | 5 + juk/historyplaylist.cpp | 16 +-- juk/historyplaylist.h | 5 +- juk/juk.cpp | 90 ++++++------ juk/juk.h | 3 +- juk/k3bexporter.cpp | 8 +- juk/k3bexporter.h | 6 +- juk/keydialog.cpp | 50 +++---- juk/keydialog.h | 7 +- juk/ktrm.cpp | 28 ++-- juk/mediafiles.cpp | 8 +- juk/mediafiles.h | 8 +- juk/musicbrainzquery.cpp | 10 +- juk/musicbrainzquery.h | 4 +- juk/nowplaying.cpp | 78 +++++----- juk/nowplaying.h | 23 +-- juk/player.h | 2 +- juk/playermanager.cpp | 10 +- juk/playermanager.h | 3 +- juk/playlist.cpp | 64 ++++----- juk/playlist.h | 15 +- juk/playlistbox.cpp | 38 ++--- juk/playlistbox.h | 12 +- juk/playlistcollection.cpp | 36 ++--- juk/playlistcollection.h | 9 +- juk/playlistexporter.h | 4 +- juk/playlistitem.cpp | 40 +++--- juk/playlistitem.h | 6 +- juk/playlistsearch.cpp | 22 +-- juk/playlistsearch.h | 1 + juk/playlistsplitter.cpp | 10 +- juk/playlistsplitter.h | 7 +- juk/searchplaylist.cpp | 2 +- juk/searchplaylist.h | 3 +- juk/searchwidget.cpp | 16 +-- juk/searchwidget.h | 8 +- juk/slideraction.cpp | 74 +++++----- juk/slideraction.h | 14 +- juk/sortedstringlist.cpp | 28 ++-- juk/sortedstringlist.h | 4 +- juk/splashscreen.cpp | 4 +- juk/splashscreen.h | 2 +- juk/statuslabel.cpp | 28 ++-- juk/statuslabel.h | 3 +- juk/stringhash.h | 8 +- juk/stringshare.cpp | 2 +- juk/systemtray.cpp | 80 +++++------ juk/systemtray.h | 18 +-- juk/tag.cpp | 30 ++-- juk/tag.h | 2 +- juk/tageditor.cpp | 104 +++++++------- juk/tageditor.h | 9 +- juk/tagguesser.cpp | 32 ++--- juk/tagguesserconfigdlg.cpp | 4 +- juk/tagguesserconfigdlg.h | 3 +- juk/tagguesserconfigdlgwidget.ui | 14 +- juk/tagguessertest.cpp | 34 ++--- juk/tagrenameroptions.cpp | 26 ++-- juk/tagtransactionmanager.cpp | 8 +- juk/tagtransactionmanager.h | 15 +- juk/trackpickerdialog.cpp | 10 +- juk/trackpickerdialog.h | 3 +- juk/trackpickerdialogbase.ui | 22 +-- juk/tracksequencemanager.h | 3 +- juk/treeviewitemplaylist.cpp | 2 +- juk/treeviewitemplaylist.h | 3 +- juk/upcomingplaylist.cpp | 8 +- juk/upcomingplaylist.h | 4 +- juk/viewmode.cpp | 28 ++-- juk/viewmode.h | 9 +- juk/webimagefetcher.cpp | 6 +- juk/webimagefetcher.h | 5 +- juk/webimagefetcherdialog.cpp | 20 +-- juk/webimagefetcherdialog.h | 6 +- kaboodle/conf.cpp | 2 +- kaboodle/conf.h | 1 + kaboodle/controls.cpp | 24 ++-- kaboodle/controls.h | 12 +- kaboodle/engine.cpp | 4 +- kaboodle/engine.h | 5 +- kaboodle/kaboodle_factory.cpp | 6 +- kaboodle/kaboodle_factory.h | 3 +- kaboodle/kaboodleapp.h | 1 + kaboodle/main.cpp | 6 +- kaboodle/player.cpp | 16 +-- kaboodle/player.h | 8 +- kaboodle/userinterface.cpp | 20 +-- kaboodle/userinterface.h | 3 +- kaboodle/view.cpp | 18 +-- kaboodle/view.h | 3 +- kaudiocreator/cdconfig.ui | 16 +-- kaudiocreator/encodefile.ui | 80 +++++------ kaudiocreator/encodefileimp.cpp | 6 +- kaudiocreator/encodefileimp.h | 3 +- kaudiocreator/encoder.cpp | 32 ++--- kaudiocreator/encoder.h | 3 +- kaudiocreator/encoderconfig.ui | 56 ++++---- kaudiocreator/encoderconfig.ui.h | 2 +- kaudiocreator/encoderconfigimp.cpp | 12 +- kaudiocreator/encoderconfigimp.h | 3 +- kaudiocreator/encoderedit.ui | 22 +-- kaudiocreator/encoderoutput.ui | 14 +- kaudiocreator/general.ui | 60 ++++---- kaudiocreator/general.ui.h | 4 +- kaudiocreator/infodialog.ui | 72 +++++----- kaudiocreator/job.cpp | 16 +-- kaudiocreator/jobque.ui | 20 +-- kaudiocreator/jobqueimp.cpp | 28 ++-- kaudiocreator/jobqueimp.h | 7 +- kaudiocreator/kaudiocreator.cpp | 98 ++++++------- kaudiocreator/kaudiocreator.h | 8 +- kaudiocreator/kaudiocreator.kcfg | 2 +- kaudiocreator/ripconfig.ui | 26 ++-- kaudiocreator/ripper.cpp | 14 +- kaudiocreator/ripper.h | 3 +- kaudiocreator/tracks.ui | 26 ++-- kaudiocreator/tracksimp.cpp | 28 ++-- kaudiocreator/tracksimp.h | 7 +- kaudiocreator/wizard.ui | 64 ++++----- kaudiocreator/wizard.ui.h | 6 +- kfile-plugins/au/kfile_au.cpp | 6 +- kfile-plugins/au/kfile_au.h | 3 +- kfile-plugins/avi/kfile_avi.cpp | 6 +- kfile-plugins/avi/kfile_avi.h | 3 +- kfile-plugins/flac/kfile_flac.cpp | 24 ++-- kfile-plugins/flac/kfile_flac.h | 5 +- kfile-plugins/m3u/kfile_m3u.cpp | 6 +- kfile-plugins/m3u/kfile_m3u.h | 3 +- kfile-plugins/mp3/kfile_mp3.cpp | 30 ++-- kfile-plugins/mp3/kfile_mp3.h | 5 +- kfile-plugins/mpc/kfile_mpc.cpp | 24 ++-- kfile-plugins/mpc/kfile_mpc.h | 5 +- kfile-plugins/mpeg/kfile_mpeg.cpp | 8 +- kfile-plugins/mpeg/kfile_mpeg.h | 3 +- kfile-plugins/ogg/kfile_ogg.cpp | 14 +- kfile-plugins/ogg/kfile_ogg.h | 5 +- kfile-plugins/sid/kfile_sid.cpp | 8 +- kfile-plugins/sid/kfile_sid.h | 5 +- kfile-plugins/theora/kfile_theora.cpp | 6 +- kfile-plugins/theora/kfile_theora.h | 3 +- kfile-plugins/wav/kfile_wav.cpp | 6 +- kfile-plugins/wav/kfile_wav.h | 3 +- kioslave/audiocd/audiocd.cpp | 78 +++++----- kioslave/audiocd/kcmaudiocd/audiocdconfig.ui | 132 ++++++++--------- kioslave/audiocd/kcmaudiocd/kcmaudiocd.cpp | 16 +-- kioslave/audiocd/kcmaudiocd/kcmaudiocd.h | 7 +- kioslave/audiocd/plugins/audiocdencoder.cpp | 4 +- kioslave/audiocd/plugins/audiocdencoder.h | 4 +- kioslave/audiocd/plugins/flac/encoderflac.cpp | 10 +- .../audiocd/plugins/lame/collectingprocess.cpp | 10 +- kioslave/audiocd/plugins/lame/collectingprocess.h | 9 +- kioslave/audiocd/plugins/lame/encoderlame.cpp | 28 ++-- kioslave/audiocd/plugins/lame/encoderlame.h | 1 + kioslave/audiocd/plugins/lame/encoderlameconfig.ui | 84 +++++------ kioslave/audiocd/plugins/vorbis/encodervorbis.cpp | 2 +- .../audiocd/plugins/vorbis/encodervorbisconfig.ui | 34 ++--- kioslave/audiocd/plugins/wav/encoderwav.cpp | 2 +- kmid/README | 2 +- kmid/channel.cpp | 10 +- kmid/channel.h | 3 +- kmid/channel3d.cpp | 2 +- kmid/channel3d.h | 2 +- kmid/channel4d.cpp | 2 +- kmid/channel4d.h | 2 +- kmid/channelcfgdlg.cpp | 2 +- kmid/channelcfgdlg.h | 3 +- kmid/channelview.cpp | 2 +- kmid/channelview.h | 1 + kmid/collectdlg.cpp | 14 +- kmid/collectdlg.h | 5 +- kmid/kdisptext.cpp | 20 +-- kmid/kdisptext.h | 5 +- kmid/klcdnumber.cpp | 18 +-- kmid/klcdnumber.h | 9 +- kmid/kmid_part.cpp | 20 +-- kmid/kmid_part.h | 15 +- kmid/kmidbutton.h | 4 +- kmid/kmidclient.cpp | 54 +++---- kmid/kmidclient.h | 7 +- kmid/kmidframe.cpp | 58 ++++---- kmid/kmidframe.h | 5 +- kmid/ktrianglebutton.cpp | 24 ++-- kmid/ktrianglebutton.h | 3 +- kmid/main.cpp | 2 +- kmid/midicfgdlg.cpp | 6 +- kmid/midicfgdlg.h | 3 +- kmid/qslidertime.cpp | 12 +- kmid/qslidertime.h | 7 +- kmid/rhythmview.cpp | 6 +- kmid/rhythmview.h | 6 +- kmix/KMixApp.h | 1 + kmix/colorwidget.ui | 26 ++-- kmix/dialogselectmaster.cpp | 14 +- kmix/dialogselectmaster.h | 1 + kmix/dialogviewconfiguration.cpp | 10 +- kmix/dialogviewconfiguration.h | 5 +- kmix/kledbutton.cpp | 20 +-- kmix/kledbutton.h | 9 +- kmix/kmix.cpp | 52 +++---- kmix/kmix.h | 3 +- kmix/kmixapplet.cpp | 60 ++++---- kmix/kmixapplet.h | 10 +- kmix/kmixdockwidget.cpp | 30 ++-- kmix/kmixdockwidget.h | 3 +- kmix/kmixerwidget.cpp | 24 ++-- kmix/kmixerwidget.h | 3 +- kmix/kmixprefdlg.cpp | 32 ++--- kmix/kmixprefdlg.h | 3 +- kmix/ksmallslider.cpp | 34 ++--- kmix/ksmallslider.h | 15 +- kmix/mdwenum.cpp | 36 ++--- kmix/mdwenum.h | 5 +- kmix/mdwslider.cpp | 136 +++++++++--------- kmix/mdwslider.h | 5 +- kmix/mdwswitch.cpp | 36 ++--- kmix/mdwswitch.h | 5 +- kmix/mixdevice.cpp | 4 +- kmix/mixdevice.h | 5 +- kmix/mixdevicewidget.cpp | 8 +- kmix/mixdevicewidget.h | 5 +- kmix/mixer.cpp | 4 +- kmix/mixer.h | 3 +- kmix/mixer_alsa9.cpp | 26 ++-- kmix/mixer_hpux.cpp | 20 +-- kmix/mixer_hpux.h | 2 +- kmix/mixer_irix.cpp | 4 +- kmix/mixer_oss.cpp | 18 +-- kmix/mixer_oss4.cpp | 12 +- kmix/mixer_sun.cpp | 4 +- kmix/mixertoolbox.cpp | 16 +-- kmix/verticaltext.cpp | 8 +- kmix/verticaltext.h | 6 +- kmix/viewapplet.cpp | 28 ++-- kmix/viewapplet.h | 7 +- kmix/viewbase.cpp | 10 +- kmix/viewbase.h | 5 +- kmix/viewdockareapopup.cpp | 26 ++-- kmix/viewdockareapopup.h | 5 +- kmix/viewgrid.cpp | 42 +++--- kmix/viewgrid.h | 7 +- kmix/viewinput.cpp | 4 +- kmix/viewinput.h | 3 +- kmix/viewoutput.cpp | 4 +- kmix/viewoutput.h | 3 +- kmix/viewsliders.cpp | 16 +-- kmix/viewsliders.h | 5 +- kmix/viewsurround.cpp | 42 +++--- kmix/viewsurround.h | 5 +- kmix/viewswitches.cpp | 20 +-- kmix/viewswitches.h | 5 +- kmix/volume.cpp | 40 +++--- kmix/volume.h | 14 +- krec/krecconfig_files.h | 1 + krec/krecconfig_fileswidget.cpp | 18 +-- krec/krecconfig_fileswidget.h | 1 + krec/krecconfigure.cpp | 24 ++-- krec/krecconfigure.h | 1 + krec/krecexport_template.cpp | 8 +- krec/krecexport_template.h | 7 +- krec/krecexport_wave.h | 1 + krec/krecfile.cpp | 24 ++-- krec/krecfile.h | 2 + krec/krecfileview.cpp | 2 +- krec/krecfileview.h | 1 + krec/krecfileviewhelpers.cpp | 24 ++-- krec/krecfileviewhelpers.h | 3 + krec/krecfilewidgets.cpp | 34 ++--- krec/krecfilewidgets.h | 3 + krec/krecglobal.cpp | 4 +- krec/krecglobal.h | 3 +- krec/krecnewproperties.cpp | 8 +- krec/krecnewproperties.h | 1 + krec/krecord.cpp | 28 ++-- krec/krecord.h | 3 +- krec/krecord_private.h | 2 + krec/mp3_export/krecexport_mp3.h | 1 + krec/ogg_export/krecexport_ogg.cpp | 2 +- krec/ogg_export/krecexport_ogg.h | 1 + kscd/ChangeLog | 4 +- kscd/TODO | 2 +- kscd/bwlednum.cpp | 68 ++++----- kscd/bwlednum.h | 7 +- kscd/cddbdlg.cpp | 6 +- kscd/cddbdlg.h | 3 +- kscd/configWidget.cpp | 10 +- kscd/configWidget.h | 3 +- kscd/configWidgetUI.ui | 54 +++---- kscd/docking.cpp | 20 +-- kscd/docking.h | 3 +- kscd/kcompactdisc.cpp | 44 +++--- kscd/kcompactdisc.h | 21 +-- kscd/kscd.cpp | 132 ++++++++--------- kscd/kscd.h | 9 +- kscd/kscdmagic/README | 6 +- kscd/kscdmagic/syna.h | 2 +- kscd/kscdmagic/xlib.c | 10 +- kscd/kscdmagic/xlib.h | 6 +- kscd/ledlamp.cpp | 2 +- kscd/ledlamp.h | 9 +- kscd/libwm/audio/audio_sun.c | 14 +- kscd/libwm/cddaslave.c | 2 +- kscd/libwm/cdtext.c | 18 +-- kscd/libwm/database.c | 2 +- kscd/libwm/include/wm_cdtext.h | 2 +- kscd/libwm/include/wm_scsi.h | 2 +- kscd/libwm/plat_hpux.c | 2 +- kscd/libwm/plat_linux.c | 2 +- kscd/libwm/plat_linux_audio.c | 14 +- kscd/libwm/plat_news.c | 4 +- kscd/libwm/plat_sun.c | 4 +- kscd/libwm/plat_sun_audio.c | 14 +- kscd/libwm/plat_svr4.c | 2 +- kscd/libwm/scsi.c | 44 +++--- kscd/panel.ui | 82 +++++------ libkcddb/asynccddbplookup.cpp | 4 +- libkcddb/asynccddbplookup.h | 1 + libkcddb/asynchttplookup.h | 1 + libkcddb/asynchttpsubmit.h | 1 + libkcddb/asyncsmtpsubmit.h | 1 + libkcddb/cache.cpp | 2 +- libkcddb/categories.cpp | 4 +- libkcddb/cddb.cpp | 24 ++-- libkcddb/cddb.h | 4 +- libkcddb/cddbplookup.cpp | 18 +-- libkcddb/cddbplookup.h | 2 +- libkcddb/cdinfo.cpp | 36 ++--- libkcddb/cdinfodialogbase.ui | 84 +++++------ libkcddb/cdinfodialogbase.ui.h | 8 +- libkcddb/cdinfoencodingwidget.cpp | 6 +- libkcddb/cdinfoencodingwidget.h | 3 +- libkcddb/cdinfoencodingwidgetbase.ui | 18 +-- libkcddb/client.h | 3 +- libkcddb/genres.cpp | 4 +- libkcddb/httplookup.cpp | 8 +- libkcddb/httplookup.h | 1 + libkcddb/kcmcddb/cddbconfigwidget.cpp | 4 +- libkcddb/kcmcddb/cddbconfigwidget.h | 3 +- libkcddb/kcmcddb/cddbconfigwidgetbase.ui | 94 ++++++------ libkcddb/kcmcddb/kcmcddb.cpp | 14 +- libkcddb/kcmcddb/kcmcddb.h | 3 +- libkcddb/libkcddb.kcfg | 4 +- libkcddb/lookup.cpp | 16 +-- libkcddb/lookup.h | 4 +- libkcddb/sites.cpp | 4 +- libkcddb/smtpsubmit.cpp | 2 +- libkcddb/submit.cpp | 10 +- libkcddb/submit.h | 2 +- libkcddb/synccddbplookup.cpp | 6 +- libkcddb/test/asynccddblookuptest.h | 3 +- libkcddb/test/asynchttplookuptest.h | 3 +- libkcddb/test/asynchttpsubmittest.h | 3 +- libkcddb/test/asyncsmtpsubmittest.h | 3 +- mpeglib/COPYING | 4 +- mpeglib/README | 2 +- mpeglib/example/cddaplay/Makefile.am | 2 +- mpeglib/example/mpgplay/Makefile.am | 2 +- mpeglib/example/splay/Makefile.am | 4 +- mpeglib/example/splay/mp3framing.cpp | 20 +-- mpeglib/example/tplay/Makefile.am | 2 +- mpeglib/example/yaf/yafcdda/Makefile.am | 2 +- mpeglib/example/yaf/yafcore/buffer.cpp | 2 +- mpeglib/example/yaf/yafcore/buffer.h | 2 +- mpeglib/example/yaf/yafcore/inputDecoder.cpp | 4 +- mpeglib/example/yaf/yafcore/inputDecoder.h | 4 +- mpeglib/example/yaf/yafcore/lineStack.cpp | 4 +- mpeglib/example/yaf/yafcore/parser.cpp | 2 +- mpeglib/example/yaf/yafcore/yaf_control.cpp | 2 +- mpeglib/example/yaf/yafmpgplay/Makefile.am | 2 +- mpeglib/example/yaf/yafsplay/Makefile.am | 2 +- mpeglib/example/yaf/yaftplay/Makefile.am | 2 +- mpeglib/example/yaf/yafvorbis/Makefile.am | 2 +- .../example/yaf/yafxplayer/inputDecoderXPlayer.cpp | 6 +- mpeglib/example/yaf/yafyuv/Makefile.am | 2 +- mpeglib/lib/Makefile.am | 2 + mpeglib/lib/decoder/mpgPlugin.cpp | 2 +- mpeglib/lib/frame/IOFrameQueue.h | 4 +- mpeglib/lib/frame/README | 4 +- mpeglib/lib/frame/audioFrameQueue.h | 4 +- mpeglib/lib/frame/frameQueue.h | 4 +- mpeglib/lib/frame/framer.cpp | 2 +- mpeglib/lib/mpegplay/decoderClass.cpp | 4 +- mpeglib/lib/mpegplay/jrevdct.h | 2 +- mpeglib/lib/mpegplay/macroBlock.cpp | 8 +- mpeglib/lib/mpegplay/mpegExtension.cpp | 6 +- mpeglib/lib/mpegplay/mpegExtension.h | 2 +- mpeglib/lib/mpegplay/mpegSystemStream.cpp | 2 +- mpeglib/lib/mpegplay/mpegVideoBitWindow.h | 4 +- mpeglib/lib/mpegplay/mpegVideoStream.cpp | 8 +- mpeglib/lib/mpegplay/pesSystemStream.cpp | 2 +- mpeglib/lib/mpegplay/picture.cpp | 2 +- mpeglib/lib/mpegplay/recon.cpp | 4 +- mpeglib/lib/mpegplay/slice.h | 2 +- mpeglib/lib/mpegplay/startCodes.h | 6 +- mpeglib/lib/mpegplay/videoDecoder.cpp | 14 +- mpeglib/lib/mpegplay/videoDecoder.h | 2 +- mpeglib/lib/output/outputStream.cpp | 6 +- mpeglib/lib/output/outputStream.h | 6 +- mpeglib/lib/splay/dxHead.h | 2 +- mpeglib/lib/splay/mpegAudioFrame.cpp | 2 +- mpeglib/lib/splay/mpegAudioHeader.cpp | 2 +- mpeglib/lib/util/abstract/threadQueue.cpp | 16 +-- mpeglib/lib/util/abstract/threadQueue.h | 4 +- mpeglib/lib/util/dynBuffer.cpp | 2 +- mpeglib/lib/util/dynBuffer.h | 2 +- mpeglib/lib/util/mmx/mmx_asm.h | 2 +- .../lib/util/render/dither/colorTableHighBit.cpp | 20 +-- mpeglib/lib/util/render/dither/ditherer_mmx16.cpp | 32 ++--- mpeglib/lib/util/render/dither2YUV/rgb2yuvdefs.h | 4 +- mpeglib/lib/util/render/x11/initDisplay.cpp | 6 +- mpeglib/lib/util/render/x11/x11Surface.cpp | 2 +- mpeglib_artsplug/Makefile.am | 2 +- mpeglib_artsplug/doemacs | 2 +- mpg123_artsplugin/dxhead.h | 2 +- mpg123_artsplugin/mpg123/buffer.c | 2 +- mpg123_artsplugin/mpg123/common.c | 2 +- mpg123_artsplugin/mpg123/httpget.c | 2 +- mpg123_artsplugin/mpg123/layer3.c | 80 +++++------ mpg123_artsplugin/mpg123/xfermem.h | 2 +- noatun/library/Makefile.am | 2 +- noatun/library/app.cpp | 50 +++---- noatun/library/cmodule.cpp | 36 ++--- noatun/library/cmodule.h | 3 +- noatun/library/controls.cpp | 24 ++-- noatun/library/downloader.cpp | 8 +- noatun/library/effects.cpp | 8 +- noatun/library/effectview.cpp | 26 ++-- noatun/library/effectview.h | 4 +- noatun/library/engine.cpp | 16 +-- noatun/library/equalizer.cpp | 2 +- noatun/library/equalizerview.cpp | 22 +-- noatun/library/equalizerview.h | 13 +- noatun/library/equalizerwidget.ui | 56 ++++---- noatun/library/globalvideo.h | 3 +- noatun/library/ksaver.cpp | 2 +- noatun/library/mimetypetree.cpp | 8 +- noatun/library/mimetypetree.h | 5 +- noatun/library/noatun/app.h | 5 +- noatun/library/noatun/controls.h | 12 +- noatun/library/noatun/downloader.h | 5 +- noatun/library/noatun/effects.h | 3 +- noatun/library/noatun/engine.h | 5 +- noatun/library/noatun/equalizer.h | 3 +- noatun/library/noatun/player.h | 5 +- noatun/library/noatun/playlist.h | 5 +- noatun/library/noatun/plugin.h | 12 +- noatun/library/noatun/pref.h | 8 +- noatun/library/noatun/scrollinglabel.h | 9 +- noatun/library/noatun/stdaction.h | 37 ++--- noatun/library/noatun/stereobuttonaction.h | 13 +- noatun/library/noatun/vequalizer.h | 8 +- noatun/library/noatun/video.h | 7 +- noatun/library/noatunarts/Session_impl.cpp | 4 +- .../library/noatunarts/StereoEffectStack_impl.cpp | 2 +- noatun/library/noatunstdaction.cpp | 96 ++++++------- noatun/library/noatuntags/tags.cpp | 14 +- noatun/library/noatuntags/tagsgetter.h | 4 +- noatun/library/player.cpp | 2 +- noatun/library/playlist.cpp | 22 +-- noatun/library/playlistsaver.cpp | 34 ++--- noatun/library/plugin.cpp | 22 +-- noatun/library/plugin_deps.h | 3 +- noatun/library/pluginloader.cpp | 18 +-- noatun/library/pluginmodule.cpp | 28 ++-- noatun/library/pluginmodule.h | 4 +- noatun/library/pref.cpp | 19 +-- noatun/library/scrollinglabel.cpp | 36 ++--- noatun/library/stereobuttonaction.cpp | 24 ++-- noatun/library/titleproxy.cpp | 36 ++--- noatun/library/titleproxy.h | 12 +- noatun/library/vequalizer.cpp | 22 +-- noatun/library/video.cpp | 16 +-- noatun/modules/artseffects/extrastereo_impl.cc | 2 +- noatun/modules/artseffects/extrastereogui_impl.cc | 2 +- noatun/modules/excellent/userinterface.cpp | 30 ++-- noatun/modules/excellent/userinterface.h | 1 + noatun/modules/htmlexport/htmlexport.cpp | 20 +-- noatun/modules/htmlexport/htmlexport.h | 4 +- noatun/modules/infrared/infrared.cpp | 4 +- noatun/modules/infrared/infrared.h | 1 + noatun/modules/infrared/infrared.plugin | 2 +- noatun/modules/infrared/irprefs.cpp | 44 +++--- noatun/modules/infrared/irprefs.h | 3 +- noatun/modules/infrared/lirc.cpp | 12 +- noatun/modules/infrared/lirc.h | 5 +- noatun/modules/kaiman/SKIN-SPECS | 32 ++--- noatun/modules/kaiman/pref.cpp | 12 +- noatun/modules/kaiman/pref.h | 3 +- noatun/modules/kaiman/skins/circle/README | 4 +- noatun/modules/kaiman/skins/circle/skindata | 8 +- noatun/modules/kaiman/skins/circle/skindata_alt | 8 +- noatun/modules/kaiman/skins/k9/skindata | 2 +- noatun/modules/kaiman/style.cpp | 106 +++++++------- noatun/modules/kaiman/style.h | 53 ++++--- noatun/modules/kaiman/userinterface.cpp | 102 ++++++------- noatun/modules/kaiman/userinterface.h | 3 +- noatun/modules/keyz/keyz.cpp | 54 +++---- noatun/modules/keyz/keyz.h | 4 +- noatun/modules/kjofol-skin/ChangeLog | 8 +- noatun/modules/kjofol-skin/helpers.cpp | 14 +- noatun/modules/kjofol-skin/kjbackground.cpp | 16 +-- noatun/modules/kjofol-skin/kjbutton.cpp | 40 +++--- noatun/modules/kjofol-skin/kjbutton.h | 1 + noatun/modules/kjofol-skin/kjequalizer.cpp | 22 +-- noatun/modules/kjofol-skin/kjequalizer.h | 9 +- noatun/modules/kjofol-skin/kjfont.cpp | 56 ++++---- noatun/modules/kjofol-skin/kjfont.h | 4 +- noatun/modules/kjofol-skin/kjguisettingswidget.ui | 58 ++++---- noatun/modules/kjofol-skin/kjloader.cpp | 38 ++--- noatun/modules/kjofol-skin/kjloader.h | 3 +- noatun/modules/kjofol-skin/kjprefs.cpp | 8 +- noatun/modules/kjofol-skin/kjprefs.h | 3 +- noatun/modules/kjofol-skin/kjseeker.cpp | 53 ++++--- noatun/modules/kjofol-skin/kjskinselectorwidget.ui | 32 ++--- noatun/modules/kjofol-skin/kjsliders.cpp | 46 +++--- noatun/modules/kjofol-skin/kjsliders.h | 6 +- noatun/modules/kjofol-skin/kjtextdisplay.cpp | 88 ++++++------ noatun/modules/kjofol-skin/kjtextdisplay.h | 11 +- noatun/modules/kjofol-skin/kjvis.cpp | 122 ++++++++-------- noatun/modules/kjofol-skin/kjvis.h | 10 +- noatun/modules/kjofol-skin/kjwidget.cpp | 23 ++- noatun/modules/kjofol-skin/kjwidget.h | 8 +- noatun/modules/kjofol-skin/parser.cpp | 6 +- noatun/modules/kjofol-skin/parser.h | 2 +- noatun/modules/marquis/marquis.cpp | 14 +- noatun/modules/marquis/marquis.h | 5 +- noatun/modules/metatag/edit.cpp | 20 +-- noatun/modules/metatag/edit.h | 3 +- noatun/modules/metatag/metatag.h | 1 + noatun/modules/monoscope/monoscope.cpp | 12 +- noatun/modules/monoscope/monoscope.h | 3 +- noatun/modules/net/net.h | 1 + noatun/modules/noatunui/userinterface.cpp | 22 +-- noatun/modules/noatunui/userinterface.h | 1 + noatun/modules/simple/propertiesdialog.ui | 64 ++++----- noatun/modules/simple/propertiesdialog.ui.h | 6 +- noatun/modules/simple/userinterface.cpp | 30 ++-- noatun/modules/simple/userinterface.h | 1 + noatun/modules/splitplaylist/find.cpp | 12 +- noatun/modules/splitplaylist/find.h | 3 +- noatun/modules/splitplaylist/playlist.cpp | 8 +- noatun/modules/splitplaylist/playlist.h | 1 + noatun/modules/splitplaylist/view.cpp | 82 +++++------ noatun/modules/splitplaylist/view.h | 12 +- noatun/modules/systray/cmodule.h | 1 + noatun/modules/systray/kitsystemtray.cpp | 20 +-- noatun/modules/systray/kitsystemtray.h | 3 +- noatun/modules/systray/systray.cpp | 58 ++++---- noatun/modules/systray/systray.h | 5 +- noatun/modules/systray/yhconfigwidget.ui | 64 ++++----- noatun/modules/voiceprint/prefs.cpp | 6 +- noatun/modules/voiceprint/prefs.h | 3 +- noatun/modules/voiceprint/voiceprint.cpp | 18 +-- noatun/modules/voiceprint/voiceprint.h | 3 +- noatun/modules/winskin/guiSpectrumAnalyser.cpp | 6 +- noatun/modules/winskin/guiSpectrumAnalyser.h | 1 + noatun/modules/winskin/vis/realFFT.cpp | 6 +- noatun/modules/winskin/vis/visQueue.h | 4 +- noatun/modules/winskin/waBalanceSlider.h | 3 +- noatun/modules/winskin/waButton.cpp | 4 +- noatun/modules/winskin/waButton.h | 1 + noatun/modules/winskin/waClutterbar.h | 1 + noatun/modules/winskin/waDigit.cpp | 14 +- noatun/modules/winskin/waDigit.h | 1 + noatun/modules/winskin/waIndicator.h | 1 + noatun/modules/winskin/waInfo.cpp | 18 +-- noatun/modules/winskin/waInfo.h | 1 + noatun/modules/winskin/waJumpSlider.h | 1 + noatun/modules/winskin/waLabel.cpp | 4 +- noatun/modules/winskin/waLabel.h | 3 +- noatun/modules/winskin/waMain.h | 1 + noatun/modules/winskin/waRegion.cpp | 32 ++--- noatun/modules/winskin/waRegion.h | 8 +- noatun/modules/winskin/waShadeMapping.h | 8 +- noatun/modules/winskin/waSkin.cpp | 32 ++--- noatun/modules/winskin/waSkin.h | 9 +- noatun/modules/winskin/waSkinManager.cpp | 16 +-- noatun/modules/winskin/waSkinManager.h | 1 + noatun/modules/winskin/waSkinMapping.h | 8 +- noatun/modules/winskin/waSkinModel.cpp | 20 +-- noatun/modules/winskin/waSkinModel.h | 3 +- noatun/modules/winskin/waSkins.h | 8 +- noatun/modules/winskin/waSlider.cpp | 8 +- noatun/modules/winskin/waSlider.h | 1 + noatun/modules/winskin/waStatus.cpp | 6 +- noatun/modules/winskin/waStatus.h | 9 +- noatun/modules/winskin/waTitleBar.cpp | 8 +- noatun/modules/winskin/waTitleBar.h | 1 + noatun/modules/winskin/waVolumeSlider.h | 3 +- noatun/modules/winskin/waWidget.cpp | 20 +-- noatun/modules/winskin/waWidget.h | 5 +- noatun/modules/winskin/winSkinConfig.cpp | 16 +-- noatun/modules/winskin/winSkinConfig.h | 3 +- noatun/modules/winskin/winSkinVis.cpp | 4 +- noatun/modules/winskin/winSkinVis.h | 3 +- noatun/noatun.api | 4 +- noatun/noatun20update.cpp | 18 +-- xine_artsplugin/tools/thumbnail/videocreator.h | 1 + xine_artsplugin/xinePlayObject_impl.cpp | 2 +- 786 files changed, 5835 insertions(+), 5503 deletions(-) diff --git a/arts/builder/TODO b/arts/builder/TODO index 139f22b2..0c8a0859 100644 --- a/arts/builder/TODO +++ b/arts/builder/TODO @@ -41,10 +41,10 @@ Wishlist for the artsbuilder app: this should be very useful in editing objects with lots of properties (widgets) -- make _changed signals visible so you can connect the value_changed of a +- make _changed Q_SIGNALS visible so you can connect the value_changed of a poti to the frequency of a filter -- make it possible to edit parent property of widgets (i.e. to insert one +- make it possible to edit tqparent property of widgets (i.e. to insert one widget into another) - add structure property dialog with structure meta information, at least diff --git a/arts/builder/createtool.cpp b/arts/builder/createtool.cpp index 77781483..f8d5c7e5 100644 --- a/arts/builder/createtool.cpp +++ b/arts/builder/createtool.cpp @@ -43,7 +43,7 @@ CreateTool::CreateTool(ModuleWidget *mwidget) : MWidgetTool(mwidget) { oldCursor = mwidget->cursor(); - mwidget->setCursor(Qt::crossCursor); + mwidget->setCursor(TQt::crossCursor); oldMouseTracking = mwidget->hasMouseTracking(); mwidget->setMouseTracking(true); @@ -55,7 +55,7 @@ CreateTool::CreateTool(ModuleWidget *mwidget) CreateTool::~CreateTool() { - mwidget->repaint(componentRect); + mwidget->tqrepaint(componentRect); mwidget->setCursor(oldCursor); mwidget->setMouseTracking(oldMouseTracking); } @@ -89,7 +89,7 @@ void CreateTool::mouseMoveEvent(TQMouseEvent *e) && mwidget->colXPos(x + width, &cellx2) && mwidget->rowYPos(y + height, &celly2); if(!posok) return; - mwidget->repaint(componentRect); + mwidget->tqrepaint(componentRect); componentRect = TQRect(cellx, celly, cellx2 - cellx, celly2 - celly); TQPainter *p = new TQPainter; @@ -302,8 +302,8 @@ void ConnectPortsTool::mousePressEvent(TQMouseEvent *e) void ConnectPortsTool::mouseMoveEvent(TQMouseEvent *e) { TQPainter painter(mwidget); - painter.setPen(Qt::white); - mwidget->repaint(TQRect(firstPos, lastPos).normalize()); + painter.setPen(TQt::white); + mwidget->tqrepaint(TQRect(firstPos, lastPos).normalize()); painter.drawLine(firstPos, e->pos()); lastPos = e->pos(); } @@ -334,6 +334,6 @@ void ConnectPortsTool::mouseReleaseEvent(TQMouseEvent *e) } } } - mwidget->repaint(TQRect(firstPos, lastPos).normalize()); + mwidget->tqrepaint(TQRect(firstPos, lastPos).normalize()); mwidget->leaveTool(this); } diff --git a/arts/builder/dirmanager.cpp b/arts/builder/dirmanager.cpp index 2f22f104..dae660b2 100644 --- a/arts/builder/dirmanager.cpp +++ b/arts/builder/dirmanager.cpp @@ -83,7 +83,7 @@ char *DirManager::directory(const char *subdir, const TQString &desc) 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); + .tqarg(dir).tqarg(desc); if(KMessageBox::questionYesNo(0,message,i18n("aRts Folder Missing"),i18n("Create Folder"),i18n("Do Not Create")) == KMessageBox::Yes) diff --git a/arts/builder/drawutils.cpp b/arts/builder/drawutils.cpp index c2c0ef3f..74dac440 100644 --- a/arts/builder/drawutils.cpp +++ b/arts/builder/drawutils.cpp @@ -26,7 +26,7 @@ TQString DrawUtils::cropText(TQPainter *p, TQString text, int maxlen, int& textw TQString label = text; while(p->fontMetrics().width(label) > maxlen && label.length() > 0) { - int i = label.find('_'); + int i = label.tqfind('_'); if(i != -1) label = label.mid(i+1); diff --git a/arts/builder/execdlg.cpp b/arts/builder/execdlg.cpp index 6d2ea2bf..bad531aa 100644 --- a/arts/builder/execdlg.cpp +++ b/arts/builder/execdlg.cpp @@ -41,31 +41,31 @@ #ifndef KDE_USE_FINAL static void min_size(TQWidget *w) { - w->setMinimumSize(w->sizeHint()); + w->setMinimumSize(w->tqsizeHint()); } #endif -ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure) - :TQDialog(parent,"X") +ExecDlg::ExecDlg(TQWidget *tqparent, ExecutableStructure *structure) + :TQDialog(tqparent,"X") /*, TRUE)*/ { this->structure = structure; setCaption(i18n("aRts Module Execution")); - mainlayout = new TQVBoxLayout(this); + maintqlayout = new TQVBoxLayout(this); // caption label: "Synthesis running..." - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); TQLabel *captionlabel = new TQLabel(this); TQFont labelfont(captionlabel->font()); labelfont.setPointSize(labelfont.pointSize()*3/2); captionlabel->setFont(labelfont); captionlabel->setText(TQString(" ")+i18n("Synthesis running...")+TQString(" ")); - captionlabel->setAlignment(AlignCenter); + captionlabel->tqsetAlignment(AlignCenter); min_size(captionlabel); - mainlayout->addWidget(captionlabel); + maintqlayout->addWidget(captionlabel); cpuusagelabel = new TQLabel(this); cpuusagelabel->setText(i18n("CPU usage: unknown")); @@ -78,44 +78,44 @@ ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure) cpuusagetimer->start( 2000, false ); min_size(cpuusagelabel); - mainlayout->addWidget(cpuusagelabel); + maintqlayout->addWidget(cpuusagelabel); -// ruler above the sliderlayout +// ruler above the slidertqlayout - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator* sep = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(sep); - mainlayout->addSpacing(5); + maintqlayout->addWidget(sep); + maintqlayout->addSpacing(5); // sliders, controlpanels - sliderlayout = new TQVBoxLayout; - mainlayout->addLayout(sliderlayout); + slidertqlayout = new TQVBoxLayout; + maintqlayout->addLayout(slidertqlayout); #if 0 /* PORT */ this->GUIServer = GUIServer; GUIServer->setGlobalParent(this); - GUIServer->setGlobalLayout(sliderlayout); + GUIServer->setGlobalLayout(slidertqlayout); #endif -// hruler below the sliderlayout +// hruler below the slidertqlayout - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); sep = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(sep); - mainlayout->addSpacing(5); + maintqlayout->addWidget(sep); + maintqlayout->addSpacing(5); // buttons - TQHBoxLayout *buttonlayout = new TQHBoxLayout; - mainlayout->addSpacing(5); - mainlayout->addLayout(buttonlayout); - mainlayout->addSpacing(5); + TQHBoxLayout *buttontqlayout = new TQHBoxLayout; + maintqlayout->addSpacing(5); + maintqlayout->addLayout(buttontqlayout); + maintqlayout->addSpacing(5); - buttonlayout->addSpacing(5); + buttontqlayout->addSpacing(5); KButtonBox *bbox = new KButtonBox(this); - bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() )); + bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addStretch(1); @@ -125,18 +125,18 @@ ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure) TQButton *okbutton = bbox->addButton(KStdGuiItem::ok()); connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) ); - bbox->layout(); + bbox->tqlayout(); //min_size(bbox); - buttonlayout->addWidget(bbox); - buttonlayout->addSpacing(5); + buttontqlayout->addWidget(bbox); + buttontqlayout->addSpacing(5); -// mainlayout->freeze(); +// maintqlayout->freeze(); } void ExecDlg::start() { - mainlayout->freeze(); + maintqlayout->freeze(); } void ExecDlg::guiServerTick() @@ -151,7 +151,7 @@ void ExecDlg::updateCpuUsage() #if 0 /* TODO:PORT */ char cpuusage[100]; - ArtsCorba::Status s = Synthesizer->getStatus(); + ArtsCorba::tqStatus s = Synthesizer->gettqStatus(); if(s.halted) { cpuusagetimer->stop(); diff --git a/arts/builder/execdlg.h b/arts/builder/execdlg.h index 1fbd8069..d916a4ff 100644 --- a/arts/builder/execdlg.h +++ b/arts/builder/execdlg.h @@ -31,15 +31,16 @@ class ExecDlg :public TQDialog { Q_OBJECT + TQ_OBJECT public: TQTimer *cpuusagetimer; TQLabel *cpuusagelabel; - TQVBoxLayout *mainlayout,*sliderlayout; + TQVBoxLayout *maintqlayout,*slidertqlayout; ExecutableStructure *structure; void start(); void done(int r); - ExecDlg(TQWidget *parent, ExecutableStructure *structure); + ExecDlg(TQWidget *tqparent, ExecutableStructure *structure); protected slots: void updateCpuUsage(); diff --git a/arts/builder/interfacedlg.cpp b/arts/builder/interfacedlg.cpp index 706576d1..9680fc7e 100644 --- a/arts/builder/interfacedlg.cpp +++ b/arts/builder/interfacedlg.cpp @@ -41,50 +41,50 @@ using namespace std; -InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE) +InterfaceDlg::InterfaceDlg(TQWidget *tqparent) :TQDialog(tqparent,"Props", TRUE) { setCaption(i18n("aRts: Structureport View")); - TQVBoxLayout *mainlayout = new TQVBoxLayout(this); - //TQHBoxLayout *contentslayout = new TQHBoxLayout; + TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); + //TQHBoxLayout *contentstqlayout = new TQHBoxLayout; // object type /* - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); TQLabel *objectlabel = new TQLabel(this); TQFont labelfont(objectlabel->font()); labelfont.setPointSize(labelfont.pointSize()*3/2); objectlabel->setFont(labelfont); objectlabel->setText(TQString(" ")+i18n("Object type: ")+TQString(port->owner->name())+TQString(" ")); - objectlabel->setAlignment(AlignCenter); + objectlabel->tqsetAlignment(AlignCenter); min_size(objectlabel); - mainlayout->addWidget(objectlabel); + maintqlayout->addWidget(objectlabel); */ // port description /* - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); TQLabel *portlabel = new TQLabel(this); labelfont.setPointSize(labelfont.pointSize()*4/5); portlabel->setFont(labelfont); portlabel->setText(i18n("Port description: ")+ port->description); min_size(portlabel); - portlabel->setAlignment(AlignCenter); - mainlayout->addWidget(portlabel); + portlabel->tqsetAlignment(AlignCenter); + maintqlayout->addWidget(portlabel); - int labelwidth = imax(portlabel->sizeHint().width(),objectlabel->sizeHint().width()); + int labelwidth = imax(portlabel->tqsizeHint().width(),objectlabel->tqsizeHint().width()); portlabel->setMinimumWidth(labelwidth); objectlabel->setMinimumWidth(labelwidth); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler); - mainlayout->addSpacing(5); - mainlayout->addLayout(contentslayout); + maintqlayout->addWidget(ruler); + maintqlayout->addSpacing(5); + maintqlayout->addLayout(contentstqlayout); */ // list @@ -93,26 +93,26 @@ InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE) update(); listbox->setMinimumSize(340,400); - mainlayout->addWidget(listbox); + maintqlayout->addWidget(listbox); connect( listbox, TQT_SIGNAL( doubleClicked ( TQListBoxItem *)), this, TQT_SLOT(accept())); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler2); + maintqlayout->addWidget(ruler2); // buttons - TQHBoxLayout *buttonlayout = new TQHBoxLayout; - mainlayout->addSpacing(5); - mainlayout->addLayout(buttonlayout); - mainlayout->addSpacing(5); + TQHBoxLayout *buttontqlayout = new TQHBoxLayout; + maintqlayout->addSpacing(5); + maintqlayout->addLayout(buttontqlayout); + maintqlayout->addSpacing(5); - buttonlayout->addSpacing(5); + buttontqlayout->addSpacing(5); KButtonBox *bbox = new KButtonBox(this); - bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() )); + bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addStretch(1); TQButton *okbutton = bbox->addButton(KStdGuiItem::ok()); @@ -121,14 +121,14 @@ InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE) TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel()); connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) ); - bbox->layout(); + bbox->tqlayout(); //min_size(bbox); - buttonlayout->addWidget(bbox); - buttonlayout->addSpacing(5); + buttontqlayout->addWidget(bbox); + buttontqlayout->addSpacing(5); - //mainlayout->activate(); - mainlayout->freeze(); + //maintqlayout->activate(); + maintqlayout->freeze(); } string InterfaceDlg::interfaceName() @@ -159,10 +159,10 @@ void InterfaceDlg::update(const string& interface, const string& indent) { listbox->insertItem((indent + interface).c_str()); - vector *children = Arts::Dispatcher::the()->interfaceRepo().queryChildren(interface); - for (vector::iterator ci = children->begin(); ci != children->end(); ++ci) + vector *tqchildren = Arts::Dispatcher::the()->interfaceRepo().queryChildren(interface); + for (vector::iterator ci = tqchildren->begin(); ci != tqchildren->end(); ++ci) update(ci->c_str(), indent+" "); - delete children; + delete tqchildren; } void InterfaceDlg::update() diff --git a/arts/builder/interfacedlg.h b/arts/builder/interfacedlg.h index 4524eaaa..235245a7 100644 --- a/arts/builder/interfacedlg.h +++ b/arts/builder/interfacedlg.h @@ -32,11 +32,12 @@ class InterfaceDlg :public TQDialog { Q_OBJECT + TQ_OBJECT protected: TQListBox *listbox; public: - InterfaceDlg(TQWidget *parent); + InterfaceDlg(TQWidget *tqparent); 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 4630f2f7..558f650c 100644 --- a/arts/builder/main.cpp +++ b/arts/builder/main.cpp @@ -251,17 +251,17 @@ ArtsBuilderWindow::ArtsBuilderWindow(const char *name) */ #if 000 - connect(menubar, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(activateMenu(int))); + connect(menubar, TQT_SIGNAL(highlighted(int)), TQT_TQOBJECT(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_ports, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(addPort(int))); + connect(m_file_new, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(fileNew(int))); - //connect(m_modules, TQT_SIGNAL(activated(int)), this, TQT_SLOT(addModule(int))); + //connect(m_modules, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_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(m_modules_synth, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(addModule(int))); + connect(m_modules_gui, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(addModule(int))); + connect(m_modules_instruments, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(addModule(int))); + connect(m_modules_other, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(addModule(int))); */ connect(kapp, TQT_SIGNAL(lastWindowClosed()), this , TQT_SLOT(quit())); @@ -269,7 +269,7 @@ ArtsBuilderWindow::ArtsBuilderWindow(const char *name) #endif arts_debug("PORT: activatemenu"); - connect(menumaker, TQT_SIGNAL(activated(const char *)), this, TQT_SLOT(addModule(const char *))); + connect(menumaker, TQT_SIGNAL(activated(const char *)), TQT_TQOBJECT(this), TQT_SLOT(addModule(const char *))); fillModuleMenu(); arts_debug("PORT: activatemenu ok"); setupActions(); @@ -279,11 +279,11 @@ ArtsBuilderWindow::ArtsBuilderWindow(const char *name) // connect to aboutToShow to correctly show state of dockwidget there: TQPopupMenu *viewmenu = (TQPopupMenu*)factory()->container("view", this); if (viewmenu) - connect(viewmenu, TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(viewMenuAboutToShow())); + connect(viewmenu, TQT_SIGNAL(aboutToShow()), TQT_TQOBJECT(this), TQT_SLOT(viewMenuAboutToShow())); else arts_debug("view menu not found!"); - m_filename = TQString::null; + m_filename = TQString(); setModified(false); installEventFilter(propertyPanel); @@ -292,55 +292,55 @@ ArtsBuilderWindow::ArtsBuilderWindow(const char *name) void ArtsBuilderWindow::setupActions() { // File menu - KStdAction::openNew(this, TQT_SLOT(fileNew()), actionCollection()); + KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(fileNew()), actionCollection()); - (void)new KAction(i18n("Open Session..."), 0, this, TQT_SLOT(openSession()), + (void)new KAction(i18n("Open Session..."), 0, TQT_TQOBJECT(this), TQT_SLOT(openSession()), actionCollection(), "file_open_session"); - KStdAction::open(this, TQT_SLOT(open()), actionCollection()); - (void)new KAction(i18n("Open E&xample..."), Qt::CTRL + Qt::Key_X, this, TQT_SLOT(openExample()), + KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(open()), actionCollection()); + (void)new KAction(i18n("Open E&xample..."), TQt::CTRL + TQt::Key_X, TQT_TQOBJECT(this), TQT_SLOT(openExample()), actionCollection(), "file_open_example"); - 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()), + KStdAction::save(TQT_TQOBJECT(this), TQT_SLOT(save()), actionCollection()); + KStdAction::saveAs(TQT_TQOBJECT(this), TQT_SLOT(saveAs()), actionCollection()); + (void)new KAction(i18n("&Retrieve From Server..."), TQt::CTRL + TQt::Key_R, TQT_TQOBJECT(this), TQT_SLOT(retrieve()), actionCollection(), "file_retrieve_from_server"); - (void)new KAction(i18n("&Execute Structure"), "artsbuilderexecute", Qt::CTRL + Qt::Key_E, this, TQT_SLOT(execute()), + (void)new KAction(i18n("&Execute Structure"), "artsbuilderexecute", TQt::CTRL + TQt::Key_E, TQT_TQOBJECT(this), TQT_SLOT(execute()), actionCollection(), "file_execute_structure"); - (void)new KAction(i18n("&Rename Structure..."), Qt::CTRL + Qt::Key_R, this, TQT_SLOT(rename()), + (void)new KAction(i18n("&Rename Structure..."), TQt::CTRL + TQt::Key_R, TQT_TQOBJECT(this), TQT_SLOT(rename()), actionCollection(), "file_rename_structure"); - (void)new KAction(i18n("&Publish Structure"), Qt::CTRL + Qt::Key_P, this, TQT_SLOT(publish()), + (void)new KAction(i18n("&Publish Structure"), TQt::CTRL + TQt::Key_P, TQT_TQOBJECT(this), TQT_SLOT(publish()), actionCollection(), "file_publish_structure"); - KStdAction::quit(this, TQT_SLOT(close()), actionCollection()); + KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection()); // Edit menu - (void)new KAction(i18n("&Delete"), Qt::Key_Delete, modulewidget, TQT_SLOT(delModule()), + (void)new KAction(i18n("&Delete"), TQt::Key_Delete, TQT_TQOBJECT(modulewidget), TQT_SLOT(delModule()), actionCollection(), "edit_delete"); - KStdAction::selectAll(modulewidget, TQT_SLOT(selectAll()), actionCollection()); + KStdAction::selectAll(TQT_TQOBJECT(modulewidget), TQT_SLOT(selectAll()), actionCollection()); // View menu viewPropertiesAction= new KToggleAction(i18n("&Property Panel"), 0, - propertyDock, TQT_SLOT(changeHideShowState()), + TQT_TQOBJECT(propertyDock), TQT_SLOT(changeHideShowState()), actionCollection(), "view_properties"); - (void)new KAction(i18n("200%"), 0, this, TQT_SLOT(viewAt200()), + (void)new KAction(i18n("200%"), 0, TQT_TQOBJECT(this), TQT_SLOT(viewAt200()), actionCollection(), "view_200"); - (void)new KAction(i18n("150%"), 0, this, TQT_SLOT(viewAt150()), + (void)new KAction(i18n("150%"), 0, TQT_TQOBJECT(this), TQT_SLOT(viewAt150()), actionCollection(), "view_150"); - (void)new KAction(i18n("100%"), 0, this, TQT_SLOT(viewAt100()), + (void)new KAction(i18n("100%"), 0, TQT_TQOBJECT(this), TQT_SLOT(viewAt100()), actionCollection(), "view_100"); - (void)new KAction(i18n("50%"), 0, this, TQT_SLOT(viewAt50()), + (void)new KAction(i18n("50%"), 0, TQT_TQOBJECT(this), TQT_SLOT(viewAt50()), actionCollection(), "view_50"); // Ports menu - (void)new KAction(i18n("Create IN Audio Signal"), 0, this, TQT_SLOT(createInAudioSignal()), + (void)new KAction(i18n("Create IN Audio Signal"), 0, TQT_TQOBJECT(this), TQT_SLOT(createInAudioSignal()), actionCollection(), "ports_create_in_audio_signal"); - (void)new KAction(i18n("Create OUT Audio Signal"), 0, this, TQT_SLOT(createOutAudioSignal()), + (void)new KAction(i18n("Create OUT Audio Signal"), 0, TQT_TQOBJECT(this), TQT_SLOT(createOutAudioSignal()), actionCollection(), "ports_create_out_audio_signal"); - (void)new KAction(i18n("Create IN String Property"), 0, this, TQT_SLOT(createInStringProperty()), + (void)new KAction(i18n("Create IN String Property"), 0, TQT_TQOBJECT(this), TQT_SLOT(createInStringProperty()), actionCollection(), "ports_create_in_string_property"); - (void)new KAction(i18n("Create IN Audio Property"), 0, this, TQT_SLOT(createInAudioProperty()), + (void)new KAction(i18n("Create IN Audio Property"), 0, TQT_TQOBJECT(this), TQT_SLOT(createInAudioProperty()), actionCollection(), "ports_create_in_audio_property"); - (void)new KAction(i18n("Implement Interface..."), 0, this, TQT_SLOT(addInterface()), + (void)new KAction(i18n("Implement Interface..."), 0, TQT_TQOBJECT(this), TQT_SLOT(addInterface()), actionCollection(), "ports_implement_interface"); - (void)new KAction(i18n("Change Positions/Names..."), 0, this, TQT_SLOT(changePortPositions()), + (void)new KAction(i18n("Change Positions/Names..."), 0, TQT_TQOBJECT(this), TQT_SLOT(changePortPositions()), actionCollection(), "ports_change_positions"); } @@ -441,7 +441,7 @@ void ArtsBuilderWindow::publish() checkName(); structure->publish(); KMessageBox::information(this, - i18n("The structure has been published as: '%1' on the server.").arg( structure->name().c_str() )); + i18n("The structure has been published as: '%1' on the server.").tqarg( structure->name().c_str() )); } TQString ArtsBuilderWindow::getOpenFilename(const char *pattern, const char *initialDir) @@ -474,7 +474,7 @@ void ArtsBuilderWindow::fileNew() propertyPanel->setSelectedComponent(0); structure->clear(); modulewidget->reInit(); - m_filename = TQString::null; + m_filename = TQString(); setModified(false); } @@ -532,7 +532,7 @@ void ArtsBuilderWindow::openSession() execDlg->start(); execDlg->show(); - connect(execDlg, TQT_SIGNAL(ready()), this, TQT_SLOT(endexecute())); + connect(execDlg, TQT_SIGNAL(ready()), TQT_TQOBJECT(this), TQT_SLOT(endexecute())); hide(); // m_filename = filename; FIXME: DOESN'T THIS BELONG HERE? @@ -587,7 +587,7 @@ bool ArtsBuilderWindow::save(TQString filename) if(file.status()) { KMessageBox::sorry(this, i18n("The file '%1' could not be opened for writing: %2") - .arg(filename).arg(strerror(file.status())), + .tqarg(filename).tqarg(strerror(file.status())), i18n("aRts Warning")); return false; } @@ -597,7 +597,7 @@ bool ArtsBuilderWindow::save(TQString filename) if(!file.close()) { KMessageBox::sorry(this, i18n("Saving to file '%1' could not be finished correctly: %2") - .arg(filename).arg(strerror(file.status())), + .tqarg(filename).tqarg(strerror(file.status())), i18n("aRts Warning")); return false; } @@ -674,7 +674,7 @@ void ArtsBuilderWindow::execute() execDlg->start(); execDlg->show(); - connect(execDlg, TQT_SIGNAL(ready()), this, TQT_SLOT(endexecute())); + connect(execDlg, TQT_SIGNAL(ready()), TQT_TQOBJECT(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?"), TQString::null, KStdGuiItem::save(), KStdGuiItem::discard()); + i18n("The current structure has been modified.\nWould you like to save it?"), TQString(), KStdGuiItem::save(), KStdGuiItem::discard()); result = false; switch(query) @@ -872,7 +872,7 @@ ArtsBuilderApp::ArtsBuilderApp(TQString filename) mainWindow->open(filename); } else { KMessageBox::sorry(0, - i18n("The specified file '%1' does not exist.").arg(filename), + i18n("The specified file '%1' does not exist.").tqarg(filename), i18n("aRts Warning")); } } diff --git a/arts/builder/main.h b/arts/builder/main.h index e9c17391..b11cf224 100644 --- a/arts/builder/main.h +++ b/arts/builder/main.h @@ -40,6 +40,7 @@ class KToggleAction; class ArtsBuilderWindow: public KDockMainWindow { Q_OBJECT + TQ_OBJECT protected: KDockWidget* mainDock; diff --git a/arts/builder/menumaker.cpp b/arts/builder/menumaker.cpp index 2aed8401..dd08589d 100644 --- a/arts/builder/menumaker.cpp +++ b/arts/builder/menumaker.cpp @@ -5,11 +5,11 @@ using namespace std; -MenuEntry::MenuEntry(MenuMaker *menumaker, KActionMenu *parent, const char *text) +MenuEntry::MenuEntry(MenuMaker *menumaker, KActionMenu *tqparent, const char *text) : menumaker(menumaker), text(text) { action = new KAction(TQString::fromLocal8Bit(text)); - parent->insert(action); + tqparent->insert(action); connect(action, TQT_SIGNAL(activated()), this, TQT_SLOT(activated())); } @@ -95,7 +95,7 @@ void MenuMaker::addCategory(const TQString& name, const char *prefix) /* 000 */ /*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'", + arts_debug("inserting a menu called '%s' in the tqparent menu '%s'", catname(name).local8Bit().data(),pc->name().local8Bit().data()); categories.push_back(new MenuCategory(name,prefix,newMenu)); } @@ -148,7 +148,7 @@ TQString MenuMaker::basename(const TQString& name) { TQString result = ""; - int i = name.findRev('/'); + int i = name.tqfindRev('/'); if(i != -1) result = name.left(i); @@ -159,7 +159,7 @@ TQString MenuMaker::basename(const TQString& name) TQString MenuMaker::catname(const TQString& name) { - int i = name.findRev('/'); + int i = name.tqfindRev('/'); if(i >= 0) return name.mid(i+1); diff --git a/arts/builder/menumaker.h b/arts/builder/menumaker.h index f2481a2f..583854f6 100644 --- a/arts/builder/menumaker.h +++ b/arts/builder/menumaker.h @@ -8,9 +8,10 @@ class MenuMaker; -class MenuEntry : public QObject +class MenuEntry : public TQObject { Q_OBJECT + TQ_OBJECT protected: MenuMaker *menumaker; @@ -18,7 +19,7 @@ protected: TQCString text; public: - MenuEntry(MenuMaker *menumaker, KActionMenu *parent, const char *text); + MenuEntry(MenuMaker *menumaker, KActionMenu *tqparent, const char *text); public slots: void activated(); @@ -43,9 +44,10 @@ public: bool matches(const char *item); }; -class MenuMaker :public QObject +class MenuMaker :public TQObject { Q_OBJECT + TQ_OBJECT std::list categories; public: diff --git a/arts/builder/module.cpp b/arts/builder/module.cpp index 5432492e..7d9581bf 100644 --- a/arts/builder/module.cpp +++ b/arts/builder/module.cpp @@ -128,7 +128,7 @@ void Module::initModule() _pixmap = new TQPixmap(iconloader.loadIcon(iconname, KIcon::User)); if(!_pixmap->height()) { - iconname.replace( iconname.length() - 4, 3, "png" ); + iconname.tqreplace( iconname.length() - 4, 3, "png" ); delete _pixmap; _pixmap = new TQPixmap(iconloader.loadIcon(iconname, KIcon::User)); if( !_pixmap->height() ) @@ -243,8 +243,8 @@ void Module::drawSegment(TQPainter *p, int cellsize, int segment) mcolor = TQColor(100, 100, 100); mcolorlight = TQColor(160, 160, 160); } - TQColorGroup g( Qt::white, Qt::blue, mcolorlight, mcolor.dark(), mcolor, - Qt::black, Qt::black ); + TQColorGroup g( TQt::white, TQt::blue, mcolorlight, mcolor.dark(), mcolor, + TQt::black, TQt::black ); TQBrush fill( mcolor ); TQPen textpen(TQColor(255, 255, 180), 1); @@ -373,7 +373,7 @@ void Module::drawSegment(TQPainter *p, int cellsize, int segment) if(selected()) { - TQPen pen(Qt::white, 1, Qt::DotLine); + TQPen pen(TQt::white, 1, TQt::DotLine); p->setPen(pen); p->drawLine(0, 0, cellsize - 1, 0); @@ -413,7 +413,7 @@ ModulePort *Module::portAt(int segment, int x, int y) if(port) { TQPoint clickpoint(x, y); - if(port->clickrect.contains(clickpoint)) return port; + if(port->clickrect.tqcontains(clickpoint)) return port; } } return 0; diff --git a/arts/builder/module.h b/arts/builder/module.h index 6fbff74d..44466bc0 100644 --- a/arts/builder/module.h +++ b/arts/builder/module.h @@ -46,8 +46,8 @@ public: bool selected; StructureComponent *owner; - QString description; - QRect clickrect; + TQString description; + TQRect clickrect; ConnType conntype; Direction direction; int drawsegment; diff --git a/arts/builder/mwidget.cpp b/arts/builder/mwidget.cpp index 808b3bcf..5ab19fe7 100644 --- a/arts/builder/mwidget.cpp +++ b/arts/builder/mwidget.cpp @@ -133,7 +133,7 @@ void ModuleWidget::mousePressEvent( TQMouseEvent *e ) return; } - if( e->button() == LeftButton ) + if( e->button() == Qt::LeftButton ) { StructureComponent *component; ModulePort *port; @@ -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), TQString::null, i18n("&Delete")) == KMessageBox::Continue) + numSelected), TQString(), i18n("&Delete")) == KMessageBox::Continue) { selectPort(0L); emit componentSelected(0); @@ -608,8 +608,8 @@ void ModuleWidget::autoRedrawRouter() if(autorouter->needRedraw()) redrawAll(); } -ModuleWidget::ModuleWidget(Structure *structure, TQWidget *parent, const char *name, WFlags f) - : QtTableView( parent, name, f), +ModuleWidget::ModuleWidget(Structure *structure, TQWidget *tqparent, const char *name, WFlags f) + : QtTableView( tqparent, name, f), updateDepth( 0 ), activeTool( 0L ), structure( structure ), @@ -627,7 +627,7 @@ ModuleWidget::ModuleWidget(Structure *structure, TQWidget *parent, const char *n setTableFlags(Tbl_autoScrollBars); setZoom(100); - setFocusPolicy( NoFocus ); + setFocusPolicy( TQ_NoFocus ); arts_debug("PORT: mw; bgmode"); setBackgroundMode(NoBackground); diff --git a/arts/builder/mwidget.h b/arts/builder/mwidget.h index 8f92c946..b3b41b78 100644 --- a/arts/builder/mwidget.h +++ b/arts/builder/mwidget.h @@ -34,6 +34,7 @@ class MWidgetTool; class ModuleWidget :public QtTableView, public StructureCanvas { Q_OBJECT + TQ_OBJECT friend class MWidgetTool; friend class CreateTool; friend class CreateInterfaceTool; @@ -108,7 +109,7 @@ public: TQPoint componentPos(const StructureComponent *component) const; TQPoint portPos(const ModulePort *port) const; - ModuleWidget( Structure *structure, TQWidget *parent = 0, + ModuleWidget( Structure *structure, TQWidget *tqparent = 0, const char *name = 0, WFlags f = 0); ~ModuleWidget(); diff --git a/arts/builder/portposdlg.cpp b/arts/builder/portposdlg.cpp index 72bd4379..ecd877c9 100644 --- a/arts/builder/portposdlg.cpp +++ b/arts/builder/portposdlg.cpp @@ -40,52 +40,52 @@ using namespace std; -PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,"Props", TRUE) +PortPosDlg::PortPosDlg(TQWidget *tqparent, Structure *structure) :TQDialog(tqparent,"Props", TRUE) { this->structure = structure; setCaption(i18n("aRts: Structureport View")); - TQVBoxLayout *mainlayout = new TQVBoxLayout(this); - //TQHBoxLayout *contentslayout = new TQHBoxLayout; + TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); + //TQHBoxLayout *contentstqlayout = new TQHBoxLayout; // object type /* - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); TQLabel *objectlabel = new TQLabel(this); TQFont labelfont(objectlabel->font()); labelfont.setPointSize(labelfont.pointSize()*3/2); objectlabel->setFont(labelfont); objectlabel->setText(TQString(" ")+i18n("Object type: ")+TQString(port->owner->name())+TQString(" ")); - objectlabel->setAlignment(AlignCenter); + objectlabel->tqsetAlignment(AlignCenter); min_size(objectlabel); - mainlayout->addWidget(objectlabel); + maintqlayout->addWidget(objectlabel); */ // port description /* - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); TQLabel *portlabel = new TQLabel(this); labelfont.setPointSize(labelfont.pointSize()*4/5); portlabel->setFont(labelfont); portlabel->setText(i18n("Port description: ")+ port->description); min_size(portlabel); - portlabel->setAlignment(AlignCenter); - mainlayout->addWidget(portlabel); + portlabel->tqsetAlignment(AlignCenter); + maintqlayout->addWidget(portlabel); - int labelwidth = imax(portlabel->sizeHint().width(),objectlabel->sizeHint().width()); + int labelwidth = imax(portlabel->tqsizeHint().width(),objectlabel->tqsizeHint().width()); portlabel->setMinimumWidth(labelwidth); objectlabel->setMinimumWidth(labelwidth); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler); - mainlayout->addSpacing(5); - mainlayout->addLayout(contentslayout); + maintqlayout->addWidget(ruler); + maintqlayout->addSpacing(5); + maintqlayout->addLayout(contentstqlayout); */ // list @@ -94,24 +94,24 @@ PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent, update(); listbox->setMinimumSize(100,200); - mainlayout->addWidget(listbox); + maintqlayout->addWidget(listbox); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler2); + maintqlayout->addWidget(ruler2); // buttons - TQHBoxLayout *buttonlayout = new TQHBoxLayout; - mainlayout->addSpacing(5); - mainlayout->addLayout(buttonlayout); - mainlayout->addSpacing(5); + TQHBoxLayout *buttontqlayout = new TQHBoxLayout; + maintqlayout->addSpacing(5); + maintqlayout->addLayout(buttontqlayout); + maintqlayout->addSpacing(5); - buttonlayout->addSpacing(5); + buttontqlayout->addSpacing(5); KButtonBox *bbox = new KButtonBox(this); - bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() )); + bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addStretch(1); KIconLoader iconloader; @@ -133,14 +133,14 @@ PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent, TQButton *cancelbutton = bbox->addButton(i18n("Cancel")); connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) ); */ - bbox->layout(); + bbox->tqlayout(); //min_size(bbox); - buttonlayout->addWidget(bbox); - buttonlayout->addSpacing(5); + buttontqlayout->addWidget(bbox); + buttontqlayout->addSpacing(5); - //mainlayout->activate(); - mainlayout->freeze(); + //maintqlayout->activate(); + maintqlayout->freeze(); } void PortPosDlg::raise() @@ -247,7 +247,7 @@ void PortPosDlg::update() } } } - listbox->repaint(); + listbox->tqrepaint(); } void PortPosDlg::help() diff --git a/arts/builder/portposdlg.h b/arts/builder/portposdlg.h index 1adc997c..aa61bad1 100644 --- a/arts/builder/portposdlg.h +++ b/arts/builder/portposdlg.h @@ -32,13 +32,14 @@ class PortPosDlg :public TQDialog { Q_OBJECT + TQ_OBJECT protected: Structure *structure; TQListBox *listbox; std::vector listports; public: - PortPosDlg(TQWidget *parent, Structure *structure); + PortPosDlg(TQWidget *tqparent, Structure *structure); void update(); public slots: diff --git a/arts/builder/propertypanel.cpp b/arts/builder/propertypanel.cpp index cca2ee5d..8e543a5f 100644 --- a/arts/builder/propertypanel.cpp +++ b/arts/builder/propertypanel.cpp @@ -36,8 +36,8 @@ #include -PropertyPanel::PropertyPanel( TQWidget* parent, const char* name, WFlags fl ) - : PropertyPanelBase( parent, name, fl ), +PropertyPanel::PropertyPanel( TQWidget* tqparent, const char* name, WFlags fl ) + : PropertyPanelBase( tqparent, name, fl ), component(0L), port(0L) { @@ -115,7 +115,7 @@ void PropertyPanel::setSelectedComponent( StructureComponent *component ) if(component->pixmap()) { moduleIconLabel->setPixmap( *component->pixmap() ); - moduleIconLabel->setMinimumSize( moduleIconLabel->sizeHint() ); + moduleIconLabel->setMinimumSize( moduleIconLabel->tqsizeHint() ); moduleIconLabel->show(); } else @@ -128,11 +128,11 @@ void PropertyPanel::setSelectedComponent( StructureComponent *component ) it != modulePorts.end(); it++) { TQString portTitle = (*it)->description - + TQString(" (%1)").arg( (*it)->PortDesc.type().direction == Arts::output ? + + TQString(" (%1)").tqarg( (*it)->PortDesc.type().direction == Arts::output ? i18n("OUTPUT") : i18n("INPUT") ); portCombo->insertItem( portTitle ); } - //portCombo->setMinimumSize( portCombo->sizeHint() ); + //portCombo->setMinimumSize( portCombo->tqsizeHint() ); setEnabled(true); } } @@ -156,7 +156,7 @@ void PropertyPanel::setSelectedPort( ModulePort *port ) // select port in combobox - bah, should be easier ;-) portCombo->setCurrentItem( portCombo->listBox()->index( - portCombo->listBox()->findItem( port->description + " (" ) ) ); + portCombo->listBox()->tqfindItem( port->description + " (" ) ) ); } else { @@ -341,10 +341,10 @@ bool PropertyPanel::eventFilter( TQObject *o, TQEvent *e ) { if( port && !constantValueEdit->hasFocus() && (e->type() == TQEvent::KeyPress) ) { // kdDebug() << TQString(" ..is KeyPress") << endl; - TQString entered = static_cast(e)->text(); + TQString entered = TQT_TQKEYEVENT(e)->text(); bool goodString = entered.length() > 0; -// kdDebug() << TQString("pressed '%1'").arg(entered) << endl; +// kdDebug() << TQString("pressed '%1'").tqarg(entered) << endl; for( unsigned int i = 0; i < entered.length(); i++) goodString = goodString && entered[i].isLetterOrNumber(); diff --git a/arts/builder/propertypanel.h b/arts/builder/propertypanel.h index 3603ddad..07ce3f90 100644 --- a/arts/builder/propertypanel.h +++ b/arts/builder/propertypanel.h @@ -33,9 +33,10 @@ class ModulePort; class PropertyPanel: public PropertyPanelBase { Q_OBJECT + TQ_OBJECT public: - PropertyPanel( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + PropertyPanel( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); public slots: void setSelectedComponent( StructureComponent *component ); diff --git a/arts/builder/propertypanelbase.ui b/arts/builder/propertypanelbase.ui index c89abcc6..b71d0bdb 100644 --- a/arts/builder/propertypanelbase.ui +++ b/arts/builder/propertypanelbase.ui @@ -1,11 +1,11 @@ PropertyPanelBase Hans Meine <hans_meine@gmx.net> - + propertyPanelBase - + 0 0 @@ -13,9 +13,9 @@ 484 - + - + @@ -27,7 +27,7 @@ 6 - + titleFrame @@ -37,7 +37,7 @@ Plain - + @@ -49,7 +49,7 @@ 0 - + selectedLabel @@ -59,11 +59,11 @@ - + spacerLayout - + @@ -75,7 +75,7 @@ 6 - + mainBoxLayout @@ -89,7 +89,7 @@ 6 - + Layout17 @@ -103,7 +103,7 @@ 6 - + Layout13 @@ -117,14 +117,14 @@ 6 - + moduleIconLabel - + Layout16 @@ -138,12 +138,12 @@ 6 - + moduleNameLabel - + Layout10 @@ -157,7 +157,7 @@ 6 - + portComboLabel @@ -168,7 +168,7 @@ portCombo - + portCombo @@ -198,7 +198,7 @@ - + portValueGroup @@ -215,7 +215,7 @@ 6 - + pvNotSetButton @@ -223,7 +223,7 @@ &Not set - + Layout9 @@ -237,7 +237,7 @@ 6 - + pvConstantButton @@ -245,7 +245,7 @@ Constant &value: - + constantValueComboBox @@ -253,7 +253,7 @@ false - + constantValueEdit @@ -263,7 +263,7 @@ - + connectionLayout @@ -277,7 +277,7 @@ 6 - + pvConnectionButton @@ -296,7 +296,7 @@ Expanding - + connectButton @@ -310,11 +310,11 @@ - + tipLabel - + WordBreak|AlignVCenter|AlignLeft @@ -355,8 +355,8 @@ setEnabled(bool) - + setTitleFont() - - + + diff --git a/arts/builder/qttableview.cpp b/arts/builder/qttableview.cpp index dee8cb99..ca488ffb 100644 --- a/arts/builder/qttableview.cpp +++ b/arts/builder/qttableview.cpp @@ -7,14 +7,14 @@ ** ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. ** -** This file contains a class moved out of the Qt GUI Toolkit API. It +** This file contains a class moved out of the TQt GUI Toolkit API. It ** may be used, distributed and modified without limitation. ** **********************************************************************/ #include "qttableview.h" #include "qttableview.moc" -#ifndef QT_NO_QTTABLEVIEW +#ifndef TQT_NO_TQTTABLEVIEW #include "tqscrollbar.h" #include "tqpainter.h" #include "tqdrawutil.h" @@ -34,23 +34,23 @@ enum ScrollBarDirtyFlags { }; -#define HSBEXT horizontalScrollBar()->sizeHint().height() -#define VSBEXT verticalScrollBar()->sizeHint().width() +#define HSBEXT horizontalScrollBar()->tqsizeHint().height() +#define VSBEXT verticalScrollBar()->tqsizeHint().width() -class QCornerSquare : public QWidget // internal class +class TQCornerSquare : public TQWidget // internal class { public: - QCornerSquare( TQWidget *, const char* = 0 ); + TQCornerSquare( TQWidget *, const char* = 0 ); void paintEvent( TQPaintEvent * ); }; -QCornerSquare::QCornerSquare( TQWidget *parent, const char *name ) - : TQWidget( parent, name ) +TQCornerSquare::TQCornerSquare( TQWidget *tqparent, const char *name ) + : TQWidget( tqparent, name ) { } -void QCornerSquare::paintEvent( TQPaintEvent * ) +void TQCornerSquare::paintEvent( TQPaintEvent * ) { } @@ -88,7 +88,7 @@ void QCornerSquare::paintEvent( TQPaintEvent * ) used by functions such as setXOffset() or maxYOffset(). \i The \e widget coordinates. (0,0) is the top-left corner of the widget, - \e including the frame. They are used by functions such as repaint(). + \e including the frame. They are used by functions such as tqrepaint(). \i The \e view coordinates. (0,0) is the top-left corner of the view, \e excluding the frame. This is the least-used coordinate system; it is used by @@ -119,13 +119,13 @@ void QCornerSquare::paintEvent( TQPaintEvent * ) it easy to have child widgets inside tables, which QtTableView doesn't support at all. - \sa QScrollView + \sa TQScrollView \link guibooks.html#fowler GUI Design Handbook: Table\endlink */ /*! - Constructs a table view. The \a parent, \a name and \f arguments + Constructs a table view. The \a tqparent, \a name and \f arguments are passed to the TQFrame constructor. The \link setTableFlags() table flags\endlink are all cleared (set to 0). @@ -135,7 +135,7 @@ void QCornerSquare::paintEvent( TQPaintEvent * ) The \link setCellHeight() cell height\endlink and \link setCellWidth() cell width\endlink are set to 0. - Frame line shapes (TQFrame::HLink and TQFrame::VLine) are disallowed; + Frame line tqshapes (TQFrame::HLink and TQFrame::VLine) are disallowed; see TQFrame::setFrameStyle(). Note that the \a f argument is \e not \link setTableFlags() table @@ -144,8 +144,8 @@ void QCornerSquare::paintEvent( TQPaintEvent * ) */ -QtTableView::QtTableView( TQWidget *parent, const char *name, WFlags f ) - : TQFrame( parent, name, f ) +QtTableView::QtTableView( TQWidget *tqparent, const char *name, WFlags f ) + : TQFrame( tqparent, name, f ) { nRows = nCols = 0; // zero rows/cols xCellOffs = yCellOffs = 0; // zero offset @@ -207,7 +207,7 @@ void QtTableView::show() /*! - \overload void QtTableView::repaint( bool erase ) + \overload void QtTableView::tqrepaint( bool erase ) Repaints the entire view. */ @@ -221,16 +221,16 @@ void QtTableView::show() If \a w is negative, it is replaced with width() - x. If \a h is negative, it is replaced with height() - y. - Doing a repaint() usually is faster than doing an update(), but + Doing a tqrepaint() usually is faster than doing an update(), but calling update() many times in a row will generate a single paint event. At present, QtTableView is the only widget that reimplements \link - TQWidget::repaint() repaint()\endlink. It does this because by - clearing and then repainting one cell at at time, it can make the + TQWidget::tqrepaint() tqrepaint()\endlink. It does this because by + clearing and then tqrepainting one cell at at time, it can make the screen flicker less than it would otherwise. */ -void QtTableView::repaint( int x, int y, int w, int h, bool erase ) +void QtTableView::tqrepaint( int x, int y, int w, int h, bool erase ) { if ( !isVisible() || testWState(WState_BlockUpdates) ) return; @@ -249,7 +249,7 @@ void QtTableView::repaint( int x, int y, int w, int h, bool erase ) } /*! - \overload void QtTableView::repaint( const TQRect &r, bool erase ) + \overload void QtTableView::tqrepaint( const TQRect &r, bool erase ) Replaints rectangle \a r. If \a erase is TRUE draws the background using the palette's background. */ @@ -265,7 +265,7 @@ void QtTableView::repaint( int x, int y, int w, int h, bool erase ) Sets the number of rows of the table to \a rows (must be non-negative). Does not change topCell(). - The table repaints itself automatically if autoUpdate() is set. + The table tqrepaints itself automatically if autoUpdate() is set. \sa numCols(), setNumCols(), numRows() */ @@ -273,7 +273,7 @@ void QtTableView::repaint( int x, int y, int w, int h, bool erase ) void QtTableView::setNumRows( int rows ) { if ( rows < 0 ) { -#if defined(QT_CHECK_RANGE) +#if defined(TQT_CHECK_RANGE) qWarning( "QtTableView::setNumRows: (%s) Negative argument %d.", name( "unnamed" ), rows ); #endif @@ -288,7 +288,7 @@ void QtTableView::setNumRows( int rows ) nRows = rows; if ( autoUpdate() && isVisible() && ( oldLastVisible != lastRowVisible() || oldTopCell != topCell() ) ) - repaint( oldTopCell != topCell() ); + tqrepaint( oldTopCell != topCell() ); } else { // Be more careful - if destructing, bad things might happen. nRows = rows; @@ -307,7 +307,7 @@ void QtTableView::setNumRows( int rows ) Sets the number of columns of the table to \a cols (must be non-negative). Does not change leftCell(). - The table repaints itself automatically if autoUpdate() is set. + The table tqrepaints itself automatically if autoUpdate() is set. \sa numCols(), numRows(), setNumRows() */ @@ -315,7 +315,7 @@ void QtTableView::setNumRows( int rows ) void QtTableView::setNumCols( int cols ) { if ( cols < 0 ) { -#if defined(QT_CHECK_RANGE) +#if defined(TQT_CHECK_RANGE) qWarning( "QtTableView::setNumCols: (%s) Negative argument %d.", name( "unnamed" ), cols ); #endif @@ -328,7 +328,7 @@ void QtTableView::setNumCols( int cols ) if ( autoUpdate() && isVisible() ) { int maxCol = lastColVisible(); if ( maxCol >= oldCols || maxCol >= nCols ) - repaint(); + tqrepaint(); } updateScrollBars( horRange ); updateFrameSize(); @@ -580,7 +580,7 @@ void QtTableView::setCellWidth( int cellWidth ) { if ( cellW == cellWidth ) return; -#if defined(QT_CHECK_RANGE) +#if defined(TQT_CHECK_RANGE) if ( cellWidth < 0 || cellWidth > SHRT_MAX ) { qWarning( "QtTableView::setCellWidth: (%s) Argument out of range (%d)", name( "unnamed" ), cellWidth ); @@ -591,7 +591,7 @@ void QtTableView::setCellWidth( int cellWidth ) updateScrollBars( horSteps | horRange ); if ( autoUpdate() && isVisible() ) - repaint(); + tqrepaint(); } @@ -634,7 +634,7 @@ void QtTableView::setCellHeight( int cellHeight ) { if ( cellH == cellHeight ) return; -#if defined(QT_CHECK_RANGE) +#if defined(TQT_CHECK_RANGE) if ( cellHeight < 0 || cellHeight > SHRT_MAX ) { qWarning( "QtTableView::setCellHeight: (%s) Argument out of range (%d)", name( "unnamed" ), cellHeight ); @@ -643,7 +643,7 @@ void QtTableView::setCellHeight( int cellHeight ) #endif cellH = (short)cellHeight; if ( autoUpdate() && isVisible() ) - repaint(); + tqrepaint(); updateScrollBars( verSteps | verRange ); } @@ -717,7 +717,7 @@ int QtTableView::totalHeight() Sets the table flags to \a f. If a flag setting changes the appearance of the table, the table is - repainted if - and only if - autoUpdate() is TRUE. + tqrepainted if - and only if - autoUpdate() is TRUE. The table flags are mostly single bits, though there are some multibit flags for convenience. Here is a complete list: @@ -786,7 +786,7 @@ void QtTableView::setTableFlags( uint f ) bool updateOn = autoUpdate(); setAutoUpdate( FALSE ); - uint repaintMask = Tbl_cutCellsV | Tbl_cutCellsH; + uint tqrepaintMask = Tbl_cutCellsV | Tbl_cutCellsH; if ( f & Tbl_vScrollBar ) { setVerScrollBar( TRUE ); @@ -817,15 +817,15 @@ void QtTableView::setTableFlags( uint f ) (f & Tbl_snapToVGrid) != 0 && yCellDelta != 0 ) { snapToGrid( (f & Tbl_snapToHGrid) != 0, // do snapping (f & Tbl_snapToVGrid) != 0 ); - repaintMask |= Tbl_snapToGrid; // repaint table + tqrepaintMask |= Tbl_snapToGrid; // tqrepaint table } } if ( updateOn ) { setAutoUpdate( TRUE ); updateScrollBars(); - if ( isVisible() && (f & repaintMask) ) - repaint(); + if ( isVisible() && (f & tqrepaintMask) ) + tqrepaint(); } } @@ -852,7 +852,7 @@ void QtTableView::clearTableFlags( uint f ) bool updateOn = autoUpdate(); setAutoUpdate( FALSE ); - uint repaintMask = Tbl_cutCellsV | Tbl_cutCellsH; + uint tqrepaintMask = Tbl_cutCellsV | Tbl_cutCellsH; if ( f & Tbl_vScrollBar ) { setVerScrollBar( FALSE ); @@ -864,7 +864,7 @@ void QtTableView::clearTableFlags( uint f ) int maxX = maxXOffset(); if ( xOffs > maxX ) { setOffset( maxX, yOffs ); - repaintMask |= Tbl_scrollLastHCell; + tqrepaintMask |= Tbl_scrollLastHCell; } updateScrollBars( horRange ); } @@ -872,7 +872,7 @@ void QtTableView::clearTableFlags( uint f ) int maxY = maxYOffset(); if ( yOffs > maxY ) { setOffset( xOffs, maxY ); - repaintMask |= Tbl_scrollLastVCell; + tqrepaintMask |= Tbl_scrollLastVCell; } updateScrollBars( verRange ); } @@ -881,7 +881,7 @@ void QtTableView::clearTableFlags( uint f ) (f & Tbl_smoothVScrolling) != 0 && yCellDelta != 0 ) { snapToGrid( (f & Tbl_smoothHScrolling) != 0, // do snapping (f & Tbl_smoothVScrolling) != 0 ); - repaintMask |= Tbl_smoothScrolling; // repaint table + tqrepaintMask |= Tbl_smoothScrolling; // tqrepaint table } } if ( f & Tbl_snapToHGrid ) { @@ -893,8 +893,8 @@ void QtTableView::clearTableFlags( uint f ) if ( updateOn ) { setAutoUpdate( TRUE ); updateScrollBars(); // returns immediately if nothing to do - if ( isVisible() && (f & repaintMask) ) - repaint(); + if ( isVisible() && (f & tqrepaintMask) ) + tqrepaint(); } } @@ -916,20 +916,20 @@ void QtTableView::clearTableFlags( uint f ) automatically whenever it has changed in some way (for example, when a \link setTableFlags() flag\endlink is changed). - If \a enable is FALSE, the view does NOT repaint itself or update + If \a enable is FALSE, the view does NOT tqrepaint itself or update its internal state variables when it is changed. This can be useful to avoid flicker during large changes and is singularly useless otherwise. Disable auto-update, do the changes, re-enable - auto-update and call repaint(). + auto-update and call tqrepaint(). \warning Do not leave the view in this state for a long time (i.e., between events). If, for example, the user interacts with the view when auto-update is off, strange things can happen. - Setting auto-update to TRUE does not repaint the view; you must call - repaint() to do this. + Setting auto-update to TRUE does not tqrepaint the view; you must call + tqrepaint() to do this. - \sa autoUpdate(), repaint() + \sa autoUpdate(), tqrepaint() */ void QtTableView::setAutoUpdate( bool enable ) @@ -948,7 +948,7 @@ void QtTableView::setAutoUpdate( bool enable ) Repaints the cell at row \a row, column \a col if it is inside the view. If \a erase is TRUE, the relevant part of the view is cleared to the - background color/pixmap before the contents are repainted. + background color/pixmap before the contents are tqrepainted. \sa isVisible() */ @@ -963,7 +963,7 @@ void QtTableView::updateCell( int row, int col, bool erase ) TQRect uR = TQRect( xPos, yPos, cellW ? cellW : cellWidth(col), cellH ? cellH : cellHeight(row) ); - repaint( uR.intersect(viewRect()), erase ); + tqrepaint( uR.intersect(viewRect()), erase ); } @@ -1073,7 +1073,7 @@ void QtTableView::coverCornerSquare( bool enable ) { coveringCornerSquare = enable; if ( !cornerSquare && enable ) { - cornerSquare = new QCornerSquare( this ); + cornerSquare = new TQCornerSquare( this ); Q_CHECK_PTR( cornerSquare ); cornerSquare->setGeometry( maxViewX() + frameWidth() + 1, maxViewY() + frameWidth() + 1, @@ -1266,7 +1266,7 @@ void QtTableView::setupPainter( TQPainter * ) /*! Handles paint events, \a e, for the table view. - Calls paintCell() for the cells that needs to be repainted. + Calls paintCell() for the cells that needs to be tqrepainted. */ void QtTableView::paintEvent( TQPaintEvent *e ) @@ -1280,7 +1280,7 @@ void QtTableView::paintEvent( TQPaintEvent *e ) TQPainter paint( this ); - if ( !contentsRect().contains( updateR, TRUE ) ) {// update frame ? + if ( !contentsRect().tqcontains( updateR, TRUE ) ) {// update frame ? drawFrame( &paint ); if ( updateR.left() < frameWidth() ) //### updateR.setLeft( frameWidth() ); @@ -1315,7 +1315,7 @@ void QtTableView::paintEvent( TQPaintEvent *e ) TQRect winR = viewRect(); TQRect cellR; TQRect cellUR; -#ifndef QT_NO_TRANSFORMATIONS +#ifndef TQT_NO_TRANSFORMATIONS TQWMatrix matrix; #endif @@ -1339,11 +1339,11 @@ void QtTableView::paintEvent( TQPaintEvent *e ) if ( eraseInPaint ) paint.eraseRect( cellUR ); -#ifndef QT_NO_TRANSFORMATIONS +#ifndef TQT_NO_TRANSFORMATIONS matrix.translate( xPos, yPos ); paint.setWorldMatrix( matrix ); if ( testTableFlags(Tbl_clipCellPainting) || - frameWidth() > 0 && !winR.contains( cellR ) ) { //##arnt + frameWidth() > 0 && !winR.tqcontains( cellR ) ) { //##arnt paint.setClipRect( cellUR ); paintCell( &paint, row, col ); paint.setClipping( FALSE ); @@ -1355,7 +1355,7 @@ void QtTableView::paintEvent( TQPaintEvent *e ) #else paint.translate( xPos, yPos ); if ( testTableFlags(Tbl_clipCellPainting) || - frameWidth() > 0 && !winR.contains( cellR ) ) { //##arnt + frameWidth() > 0 && !winR.tqcontains( cellR ) ) { //##arnt paint.setClipRect( cellUR ); paintCell( &paint, row, col ); paint.setClipping( FALSE ); @@ -1379,13 +1379,13 @@ void QtTableView::paintEvent( TQPaintEvent *e ) // Note that this needs to be done regardless whether we do // eraseInPaint or not. Reason: a subclass may implement - // flicker-freeness and encourage the use of repaint(FALSE). + // flicker-freeness and encourage the use of tqrepaint(FALSE). // The subclass, however, cannot draw all pixels, just those // inside the cells. So QtTableView is reponsible for all pixels // outside the cells. TQRect viewR = viewRect(); - const TQColorGroup g = colorGroup(); + const TQColorGroup g = tqcolorGroup(); if ( xPos <= maxX ) { TQRect r = viewR; @@ -1414,8 +1414,8 @@ void QtTableView::resizeEvent( TQResizeEvent * ) verSteps | verGeometry | verRange ); showOrHideScrollBars(); updateFrameSize(); - int maxX = QMIN( xOffs, maxXOffset() ); // ### can be slow - int maxY = QMIN( yOffs, maxYOffset() ); + int maxX = TQMIN( xOffs, maxXOffset() ); // ### can be slow + int maxY = TQMIN( yOffs, maxYOffset() ); setOffset( maxX, maxY ); } @@ -1426,7 +1426,7 @@ void QtTableView::resizeEvent( TQResizeEvent * ) void QtTableView::updateView() { - repaint( viewRect() ); + tqrepaint( viewRect() ); } /*! @@ -1439,14 +1439,14 @@ TQScrollBar *QtTableView::verticalScrollBar() const { QtTableView *that = (QtTableView*)this; // semantic const if ( !vScrollBar ) { - TQScrollBar *sb = new TQScrollBar( TQScrollBar::Vertical, that ); -#ifndef QT_NO_CURSOR + TQScrollBar *sb = new TQScrollBar( Qt::Vertical, that ); +#ifndef TQT_NO_CURSOR sb->setCursor( arrowCursor ); #endif - sb->resize( sb->sizeHint() ); // height is irrelevant + sb->resize( sb->tqsizeHint() ); // height is irrelevant Q_CHECK_PTR(sb); sb->setTracking( FALSE ); - sb->setFocusPolicy( NoFocus ); + sb->setFocusPolicy( TQ_NoFocus ); connect( sb, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(verSbValue(int))); connect( sb, TQT_SIGNAL(sliderMoved(int)), @@ -1470,12 +1470,12 @@ TQScrollBar *QtTableView::horizontalScrollBar() const { QtTableView *that = (QtTableView*)this; // semantic const if ( !hScrollBar ) { - TQScrollBar *sb = new TQScrollBar( TQScrollBar::Horizontal, that ); -#ifndef QT_NO_CURSOR + TQScrollBar *sb = new TQScrollBar( Qt::Horizontal, that ); +#ifndef TQT_NO_CURSOR sb->setCursor( arrowCursor ); #endif - sb->resize( sb->sizeHint() ); // width is irrelevant - sb->setFocusPolicy( NoFocus ); + sb->resize( sb->tqsizeHint() ); // width is irrelevant + sb->setFocusPolicy( TQ_NoFocus ); Q_CHECK_PTR(sb); sb->setTracking( FALSE ); connect( sb, TQT_SIGNAL(valueChanged(int)), @@ -1522,7 +1522,7 @@ void QtTableView::setHorScrollBar( bool on, bool update ) else sbDirty = sbDirty | verMask; if ( hideScrollBar && isVisible() ) - repaint( hScrollBar->x(), hScrollBar->y(), + tqrepaint( hScrollBar->x(), hScrollBar->y(), width() - hScrollBar->x(), hScrollBar->height() ); } if ( update ) @@ -1561,7 +1561,7 @@ void QtTableView::setVerScrollBar( bool on, bool update ) else sbDirty = sbDirty | horMask; if ( hideScrollBar && isVisible() ) - repaint( vScrollBar->x(), vScrollBar->y(), + tqrepaint( vScrollBar->x(), vScrollBar->y(), vScrollBar->width(), height() - vScrollBar->y() ); } if ( update ) @@ -1579,7 +1579,7 @@ int QtTableView::findRawRow( int yPos, int *cellMaxY, int *cellMinY, return r; if ( goOutsideView || yPos >= minViewY() && yPos <= maxViewY() ) { if ( yPos < minViewY() ) { -#if defined(QT_CHECK_RANGE) +#if defined(TQT_CHECK_RANGE) qWarning( "QtTableView::findRawRow: (%s) internal error: " "yPos < minViewY() && goOutsideView " "not supported. (%d,%d)", @@ -1626,7 +1626,7 @@ int QtTableView::findRawCol( int xPos, int *cellMaxX, int *cellMinX , return c; if ( goOutsideView || xPos >= minViewX() && xPos <= maxViewX() ) { if ( xPos < minViewX() ) { -#if defined(QT_CHECK_RANGE) +#if defined(TQT_CHECK_RANGE) qWarning( "QtTableView::findRawCol: (%s) internal error: " "xPos < minViewX() && goOutsideView " "not supported. (%d,%d)", @@ -1995,7 +1995,7 @@ void QtTableView::updateScrollBars( uint f ) if ( sbDirty & horSteps ) { if ( cellW ) - hScrollBar->setSteps( QMIN(cellW,viewWidth()/2), viewWidth() ); + hScrollBar->setSteps( TQMIN(cellW,viewWidth()/2), viewWidth() ); else hScrollBar->setSteps( 16, viewWidth() ); } @@ -2006,7 +2006,7 @@ void QtTableView::updateScrollBars( uint f ) if ( sbDirty & horValue ) hScrollBar->setValue( xOffs ); - // show scrollbar only when it has a sane geometry + // show scrollbar only when it has a sane tqgeometry if ( !hScrollBar->isVisible() ) hScrollBar->show(); } @@ -2019,7 +2019,7 @@ void QtTableView::updateScrollBars( uint f ) if ( sbDirty & verSteps ) { if ( cellH ) - vScrollBar->setSteps( QMIN(cellH,viewHeight()/2), viewHeight() ); + vScrollBar->setSteps( TQMIN(cellH,viewHeight()/2), viewHeight() ); else vScrollBar->setSteps( 16, viewHeight() ); // fttb! ### } @@ -2030,7 +2030,7 @@ void QtTableView::updateScrollBars( uint f ) if ( sbDirty & verValue ) vScrollBar->setValue( yOffs ); - // show scrollbar only when it has a sane geometry + // show scrollbar only when it has a sane tqgeometry if ( !vScrollBar->isVisible() ) vScrollBar->show(); } @@ -2061,9 +2061,9 @@ void QtTableView::updateFrameSize() setFrameRect( TQRect(0,0,rw,rh) ); if ( rw != fw ) - update( QMIN(fw,rw) - frameWidth() - 2, 0, frameWidth()+4, rh ); + update( TQMIN(fw,rw) - frameWidth() - 2, 0, frameWidth()+4, rh ); if ( rh != fh ) - update( 0, QMIN(fh,rh) - frameWidth() - 2, rw, frameWidth()+4 ); + update( 0, TQMIN(fh,rh) - frameWidth() - 2, rw, frameWidth()+4 ); } } @@ -2253,7 +2253,7 @@ void QtTableView::showOrHideScrollBars() Call this function when the table view's total size is changed; typically because the result of cellHeight() or cellWidth() have changed. - This function does not repaint the widget. + This function does not tqrepaint the widget. */ void QtTableView::updateTableSize() diff --git a/arts/builder/qttableview.h b/arts/builder/qttableview.h index ab83d152..a6e868b6 100644 --- a/arts/builder/qttableview.h +++ b/arts/builder/qttableview.h @@ -7,38 +7,37 @@ ** ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. ** -** This file contains a class moved out of the Qt GUI Toolkit API. It +** This file contains a class moved out of the TQt GUI Toolkit API. It ** may be used, distributed and modified without limitation. ** **********************************************************************/ -#ifndef QTTABLEVIEW_H -#define QTTABLEVIEW_H +#ifndef TQTTABLEVIEW_H +#define TQTTABLEVIEW_H -#ifndef QT_H #include "tqframe.h" -#endif // QT_H -#ifndef QT_NO_QTTABLEVIEW +#ifndef TQT_NO_TQTTABLEVIEW class TQScrollBar; -class QCornerSquare; +class TQCornerSquare; -class QtTableView : public QFrame +class QtTableView : public TQFrame { Q_OBJECT + TQ_OBJECT public: 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 TQRect &, bool erase=TRUE ); + void tqrepaint( bool erase=TRUE ); + void tqrepaint( int x, int y, int w, int h, bool erase=TRUE ); + void tqrepaint( const TQRect &, bool erase=TRUE ); protected: - QtTableView( TQWidget *parent=0, const char *name=0, WFlags f=0 ); + QtTableView( TQWidget *tqparent=0, const char *name=0, WFlags f=0 ); ~QtTableView(); int numRows() const; @@ -78,8 +77,8 @@ protected: void updateCell( int row, int column, bool erase=TRUE ); - QRect cellUpdateRect() const; - QRect viewRect() const; + TQRect cellUpdateRect() const; + TQRect viewRect() const; int lastRowVisible() const; int lastColVisible() const; @@ -162,14 +161,14 @@ private: uint inSbUpdate : 1; uint tFlags; - QRect cellUpdateR; + TQRect cellUpdateR; TQScrollBar *vScrollBar; TQScrollBar *hScrollBar; - QCornerSquare *cornerSquare; + TQCornerSquare *cornerSquare; private: // Disabled copy constructor and operator= -#if defined(Q_DISABLE_COPY) +#if defined(TQ_DISABLE_COPY) QtTableView( const QtTableView & ); QtTableView &operator=( const QtTableView & ); #endif @@ -236,16 +235,16 @@ inline TQRect QtTableView::cellUpdateRect() const inline bool QtTableView::autoUpdate() const { return isUpdatesEnabled(); } -inline void QtTableView::repaint( bool erase ) -{ repaint( 0, 0, width(), height(), erase ); } +inline void QtTableView::tqrepaint( bool erase ) +{ tqrepaint( 0, 0, width(), height(), erase ); } -inline void QtTableView::repaint( const TQRect &r, bool erase ) -{ repaint( r.x(), r.y(), r.width(), r.height(), erase ); } +inline void QtTableView::tqrepaint( const TQRect &r, bool erase ) +{ tqrepaint( r.x(), r.y(), r.width(), r.height(), erase ); } inline void QtTableView::updateScrollBars() { updateScrollBars( 0 ); } -#endif // QT_NO_QTTABLEVIEW +#endif // TQT_NO_TQTTABLEVIEW -#endif // QTTABLEVIEW_H +#endif // TQTTABLEVIEW_H diff --git a/arts/builder/retrievedlg.cpp b/arts/builder/retrievedlg.cpp index 57cfde36..c54cbabd 100644 --- a/arts/builder/retrievedlg.cpp +++ b/arts/builder/retrievedlg.cpp @@ -37,33 +37,33 @@ #include static void min_size(TQWidget *w) { - w->setMinimumSize(w->sizeHint()); + w->setMinimumSize(w->tqsizeHint()); } -RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", TRUE) +RetrieveDlg::RetrieveDlg(TQWidget *tqparent) :TQDialog(tqparent,"X", TRUE) { setCaption(i18n("Retrieve Structure From Server")); - TQVBoxLayout *mainlayout = new TQVBoxLayout(this); + TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); // caption label: "Synthesis running..." - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); TQLabel *captionlabel = new TQLabel(this); TQFont labelfont(captionlabel->font()); labelfont.setPointSize(labelfont.pointSize()*3/2); captionlabel->setFont(labelfont); captionlabel->setText(TQString(" ")+i18n("Published structures")+TQString(" ")); - captionlabel->setAlignment(AlignCenter); + captionlabel->tqsetAlignment(AlignCenter); min_size(captionlabel); - mainlayout->addWidget(captionlabel); + maintqlayout->addWidget(captionlabel); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler2); - mainlayout->addSpacing(5); + maintqlayout->addWidget(ruler2); + maintqlayout->addSpacing(5); // listwidget @@ -85,26 +85,26 @@ RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", TRUE) listbox->insertItem((*ni).c_str()); #endif - mainlayout->addWidget(listbox); + maintqlayout->addWidget(listbox); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler); - mainlayout->addSpacing(5); + maintqlayout->addWidget(ruler); + maintqlayout->addSpacing(5); // buttons - TQHBoxLayout *buttonlayout = new TQHBoxLayout; - mainlayout->addSpacing(5); - mainlayout->addLayout(buttonlayout); - mainlayout->addSpacing(5); + TQHBoxLayout *buttontqlayout = new TQHBoxLayout; + maintqlayout->addSpacing(5); + maintqlayout->addLayout(buttontqlayout); + maintqlayout->addSpacing(5); - buttonlayout->addSpacing(5); + buttontqlayout->addSpacing(5); KButtonBox *bbox = new KButtonBox(this); - bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() )); + bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addStretch(1); TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel()); @@ -113,12 +113,12 @@ RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", TRUE) TQButton *okbutton = bbox->addButton(KStdGuiItem::ok()); connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) ); - bbox->layout(); + bbox->tqlayout(); - buttonlayout->addWidget(bbox); - buttonlayout->addSpacing(5); + buttontqlayout->addWidget(bbox); + buttontqlayout->addSpacing(5); - mainlayout->freeze(); + maintqlayout->freeze(); } TQString RetrieveDlg::result() @@ -127,7 +127,7 @@ TQString RetrieveDlg::result() { return(listbox->text(listbox->currentItem())); } - return TQString::null; + return TQString(); } void RetrieveDlg::help() diff --git a/arts/builder/retrievedlg.h b/arts/builder/retrievedlg.h index e0a6eb0c..3ffa57ee 100644 --- a/arts/builder/retrievedlg.h +++ b/arts/builder/retrievedlg.h @@ -35,9 +35,10 @@ class RetrieveDlg :public TQDialog { Q_OBJECT + TQ_OBJECT TQListBox *listbox; public: - RetrieveDlg(TQWidget *parent); + RetrieveDlg(TQWidget *tqparent); TQString result(); public slots: void help(); diff --git a/arts/builder/structureport.cpp b/arts/builder/structureport.cpp index 35b36b45..55c15211 100644 --- a/arts/builder/structureport.cpp +++ b/arts/builder/structureport.cpp @@ -104,8 +104,8 @@ void StructurePort::drawSegment(TQPainter *dest, int cellsize, int segment) TQColor mcolor(43,43,168); TQColor mcolorlight(164,176,242); - TQColorGroup g( Qt::white, Qt::blue, mcolorlight, mcolor.dark(), mcolor, - Qt::black, Qt::black ); + TQColorGroup g( TQt::white, TQt::blue, mcolorlight, mcolor.dark(), mcolor, + TQt::black, TQt::black ); TQBrush fill( mcolor ); TQPen textpen(TQColor(255,255,180),1); int border = cellsize/10; @@ -117,7 +117,7 @@ void StructurePort::drawSegment(TQPainter *dest, int cellsize, int segment) // Selection box if(_selected) { - TQPen pen(Qt::white,1,Qt::DotLine); + TQPen pen(TQt::white,1,TQt::DotLine); p.setPen(pen); p.drawRect(0,boxtop,cellsize,cellsize/2); @@ -126,7 +126,7 @@ void StructurePort::drawSegment(TQPainter *dest, int cellsize, int segment) int 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); + TQt::AlignCenter,label); int arrowwidth = cellsize/4; @@ -195,7 +195,7 @@ d | | a.setPoint(8,t,b+w+l); a.setPoint(9,t,b+l); */ - p.setPen(Qt::NoPen); + p.setPen(TQt::NoPen); p.setBrush(fbrush); p.drawPolygon(a); if(delta==1 && direction==0) @@ -224,7 +224,7 @@ ModulePort *StructurePort::portAt(int segment, int x, int y) assert(segment == 0); TQPoint clickpoint(x,y); - if(_port->clickrect.contains(clickpoint)) return _port; + if(_port->clickrect.tqcontains(clickpoint)) return _port; return 0; } diff --git a/arts/examples/README b/arts/examples/README index 2132bfc3..425da5c0 100644 --- a/arts/examples/README +++ b/arts/examples/README @@ -172,7 +172,7 @@ example_xfade.arts This example mixes 440 and 880 Hz sine waves using a cross fader. Adjust the value of the cross fader's percentage input from -1 to 1 to -control the mixing of the two signals. +control the mixing of the two Q_SIGNALS. example_pscale.arts diff --git a/arts/examples/instrument_flexible_slide_GUI.arts b/arts/examples/instrument_flexible_slide_GUI.arts index 3b0f0bca..92523fa0 100644 --- a/arts/examples/instrument_flexible_slide_GUI.arts +++ b/arts/examples/instrument_flexible_slide_GUI.arts @@ -8,7 +8,7 @@ module=Arts::Poti { id=1 } - port=parent + port=tqparent { id=2 } @@ -71,7 +71,7 @@ module=Arts::Widget { id=14 } - port=parent + port=tqparent { id=15 } @@ -110,7 +110,7 @@ module=Arts::Poti { id=22 } - port=parent + port=tqparent { id=23 } @@ -169,7 +169,7 @@ module=Arts::Poti { id=35 } - port=parent + port=tqparent { id=36 } @@ -230,7 +230,7 @@ module=Arts::Poti { id=48 } - port=parent + port=tqparent { id=49 } @@ -291,7 +291,7 @@ module=Arts::Poti { id=61 } - port=parent + port=tqparent { id=62 } @@ -345,7 +345,7 @@ module=Arts::Poti } structureport { - name=parent + name=tqparent x=2 y=1 position=0 diff --git a/arts/examples/instrument_moog_vcf_tune_GUI.arts b/arts/examples/instrument_moog_vcf_tune_GUI.arts index 6db62f60..0aff72a8 100644 --- a/arts/examples/instrument_moog_vcf_tune_GUI.arts +++ b/arts/examples/instrument_moog_vcf_tune_GUI.arts @@ -8,7 +8,7 @@ module=Arts::Widget { id=1 } - port=parent + port=tqparent { id=2 } @@ -47,7 +47,7 @@ module=Arts::Poti { id=9 } - port=parent + port=tqparent { id=10 } @@ -110,7 +110,7 @@ module=Arts::Poti { id=22 } - port=parent + port=tqparent { id=23 } @@ -173,7 +173,7 @@ module=Arts::Poti { id=35 } - port=parent + port=tqparent { id=36 } @@ -229,7 +229,7 @@ module=Arts::Poti } structureport { - name=parent + name=tqparent x=2 y=1 position=0 diff --git a/arts/examples/mixer_element_eq.arts b/arts/examples/mixer_element_eq.arts index 6123bb24..c798166f 100644 --- a/arts/examples/mixer_element_eq.arts +++ b/arts/examples/mixer_element_eq.arts @@ -8,7 +8,7 @@ module=Arts::Widget { id=1 } - port=parent + port=tqparent { id=2 } @@ -550,7 +550,7 @@ structureport } structureport { - name=parent + name=tqparent x=7 y=0 position=0 diff --git a/arts/examples/mixer_element_eqfx.arts b/arts/examples/mixer_element_eqfx.arts index b7248fcb..8bde0f61 100644 --- a/arts/examples/mixer_element_eqfx.arts +++ b/arts/examples/mixer_element_eqfx.arts @@ -4,7 +4,7 @@ module=Gui_SUB_PANEL id=147 x=6 y=1 - port=parent + port=tqparent { id=148 connect_to=279 @@ -52,7 +52,7 @@ module=Gui_POTI id=155 x=0 y=3 - port=parent + port=tqparent { id=156 connect_to=154 @@ -193,7 +193,7 @@ module=Gui_LABEL id=182 x=13 y=4 - port=parent + port=tqparent { id=183 connect_to=154 @@ -313,7 +313,7 @@ module=Gui_POTI id=205 x=14 y=9 - port=parent + port=tqparent { id=206 connect_to=154 @@ -365,7 +365,7 @@ module=Gui_POTI id=215 x=14 y=11 - port=parent + port=tqparent { id=216 connect_to=154 @@ -417,7 +417,7 @@ module=Gui_POTI id=225 x=14 y=7 - port=parent + port=tqparent { id=226 connect_to=154 @@ -469,7 +469,7 @@ module=Gui_POTI id=235 x=14 y=13 - port=parent + port=tqparent { id=236 connect_to=154 @@ -521,7 +521,7 @@ module=Gui_POTI id=245 x=14 y=15 - port=parent + port=tqparent { id=246 connect_to=154 @@ -573,7 +573,7 @@ module=Gui_POTI id=255 x=14 y=17 - port=parent + port=tqparent { id=256 connect_to=154 @@ -722,7 +722,7 @@ structureport } structureport { - name=parent + name=tqparent x=7 y=0 position=0 diff --git a/arts/examples/mixer_element_simple.arts b/arts/examples/mixer_element_simple.arts index 01246090..be572011 100644 --- a/arts/examples/mixer_element_simple.arts +++ b/arts/examples/mixer_element_simple.arts @@ -8,7 +8,7 @@ module=Arts::Widget { id=1 } - port=parent + port=tqparent { id=2 } @@ -47,7 +47,7 @@ module=Arts::Poti { id=9 } - port=parent + port=tqparent { id=10 } @@ -218,7 +218,7 @@ structureport } structureport { - name=parent + name=tqparent x=7 y=0 position=0 diff --git a/arts/examples/template_Instrument_GUI.arts b/arts/examples/template_Instrument_GUI.arts index 67db385e..751d4cc4 100644 --- a/arts/examples/template_Instrument_GUI.arts +++ b/arts/examples/template_Instrument_GUI.arts @@ -8,7 +8,7 @@ module=Arts::Widget { id=1 } - port=parent + port=tqparent { id=2 } @@ -40,7 +40,7 @@ module=Arts::Widget } structureport { - name=parent + name=tqparent x=2 y=1 position=0 diff --git a/arts/examples/template_Mixer_Element.arts b/arts/examples/template_Mixer_Element.arts index 40c3e63c..caa885ed 100644 --- a/arts/examples/template_Mixer_Element.arts +++ b/arts/examples/template_Mixer_Element.arts @@ -4,7 +4,7 @@ module=Gui_SUB_PANEL id=0 x=0 y=1 - port=parent + port=tqparent { id=1 connect_to=26 @@ -88,7 +88,7 @@ module=Gui_LABEL id=17 x=6 y=4 - port=parent + port=tqparent { id=18 connect_to=7 @@ -158,7 +158,7 @@ structureport } structureport { - name=parent + name=tqparent x=1 y=0 position=0 diff --git a/arts/gui/common/artsgui.idl b/arts/gui/common/artsgui.idl index a9a3950a..2cf5b614 100644 --- a/arts/gui/common/artsgui.idl +++ b/arts/gui/common/artsgui.idl @@ -48,7 +48,7 @@ module Arts { interface Widget { readonly attribute long widgetID; - attribute Widget parent; + attribute Widget tqparent; attribute long x,y,width,height; attribute boolean visible; attribute SizePolicy hSizePolicy; @@ -82,19 +82,19 @@ module Arts { }; interface Frame : Widget { - void constructor( Widget parent ); + void constructor( Widget tqparent ); attribute long margin; attribute long linewidth; attribute long midlinewidth; attribute long framestyle; - attribute Shape frameshape; + attribute Shape frametqshape; attribute Shadow frameshadow; }; /** - Some alignmentflags used by various widgets. + Some tqalignmentflags used by various widgets. Taken from Qt. (akrille) */ enum Align { @@ -117,8 +117,8 @@ module Arts { /** The LayoutBox. - Arrange your widgets vertical or horizontal. Usage is quite simple: Add the widgets you have in the right order - to the layoutbox by calling addWidget(). - Thats it, no ._addChild or .parent with this widget. + to the tqlayoutbox by calling addWidget(). + Thats it, no ._addChild or .tqparent with this widget. For more information see QBoxLayout. (akrille) @@ -126,7 +126,7 @@ module Arts { interface LayoutBox : Frame { /// Sets the direction of the widgets. Can be changed on-the-fly. attribute Direction direction; - /// Adds a widget with the stretch-factor and the alignment. + /// Adds a widget with the stretch-factor and the tqalignment. void addWidget( Widget widget, long stretch, long align ); void addWidget( Widget widget, long stretch ); void addWidget( Widget widget ); @@ -156,7 +156,7 @@ module Arts { /// The spacing between all widgets. attribute long spacing; /// The margin at the outsideborder. - attribute long layoutmargin; + attribute long tqlayoutmargin; }; /** IMHO (akrille) this should be removed and everywhere replaced with the LayoutBox... */ @@ -173,7 +173,7 @@ module Arts { Usage is quite simple: Create the Widget you want to be hidable inside a container like LayoutBox or a normal widget. Then create the PopupBox and call .widget( ). - Thats it, no ._addChild or .parent with this widget. + Thats it, no ._addChild or .tqparent with this widget. (akrille) */ interface PopupBox : Frame { @@ -186,8 +186,8 @@ module Arts { }; interface Button : Widget { - void constructor( Widget parent ); - void constructor( string text, Widget parent ); + void constructor( Widget tqparent ); + void constructor( string text, Widget tqparent ); attribute string text; attribute boolean toggle; @@ -205,7 +205,7 @@ module Arts { }; interface Fader : Widget { - void constructor( Widget parent ); + void constructor( Widget tqparent ); attribute string caption, color; attribute float min, max, value; @@ -213,21 +213,21 @@ module Arts { }; interface LineEdit : Widget { - void constructor( Widget parent ); + void constructor( Widget tqparent ); attribute string caption; attribute string text; }; interface SpinBox : Widget { - void constructor( Widget parent ); + void constructor( Widget tqparent ); attribute string caption; attribute long min, max, value; }; interface ComboBox : Widget { - void constructor( Widget parent ); + void constructor( Widget tqparent ); attribute string caption; attribute sequence choices; @@ -235,7 +235,7 @@ module Arts { }; interface Graph : Widget { - void constructor( Widget parent ); + void constructor( Widget tqparent ); attribute string caption; attribute float minx, maxx, miny, maxy; @@ -256,7 +256,7 @@ module Arts { interface Label : Frame { /// The text to show. attribute string text; - /// The alignment of the text. See enum Align + /// The tqalignment of the text. See enum Align attribute long align; /// Fontsize [pixel] /*writeonly*/ attribute long fontsize; diff --git a/arts/gui/kde/artstestgui.cpp b/arts/gui/kde/artstestgui.cpp index 6d1b798e..9464ac7a 100644 --- a/arts/gui/kde/artstestgui.cpp +++ b/arts/gui/kde/artstestgui.cpp @@ -31,7 +31,7 @@ using namespace Arts; int main(int argc, char **argv) { - QIOManager iomanager; + TQIOManager iomanager; Dispatcher dispatcher(&iomanager); KApplication application(argc, argv, "testgui"); @@ -41,7 +41,7 @@ int main(int argc, char **argv) w.width(500); w.height(350); w.show(); Button b; - b.parent(w); + b.tqparent(w); b.x(10); b.y(10); b.width(100); @@ -50,7 +50,7 @@ int main(int argc, char **argv) b.show(); Button b2; - b2.parent(w); + b2.tqparent(w); b2.x(10); b2.y(30); b2.width(100); @@ -59,7 +59,7 @@ int main(int argc, char **argv) b2.show(); Poti p; - p.parent(w); + p.tqparent(w); p.x(150); p.y(10); p.caption("delay (ms)"); @@ -70,7 +70,7 @@ int main(int argc, char **argv) p.show(); Poti q; - q.parent(w); + q.tqparent(w); q.x(250); q.y(10); q.caption("delay (ms)"); @@ -81,7 +81,7 @@ int main(int argc, char **argv) q.show(); Graph g; - g.parent(w); + g.tqparent(w); g.x(50); g.y(70); g.width(400); diff --git a/arts/gui/kde/dbtest.h b/arts/gui/kde/dbtest.h index 085ee7a0..23163973 100644 --- a/arts/gui/kde/dbtest.h +++ b/arts/gui/kde/dbtest.h @@ -8,6 +8,7 @@ class dBTestWidget : public TQWidget, public dB2VolCalc { Q_OBJECT + TQ_OBJECT public: dBTestWidget( TQWidget*, const char* =0 ); ~dBTestWidget(); diff --git a/arts/gui/kde/kartswidget.cpp b/arts/gui/kde/kartswidget.cpp index dde61820..5188e81a 100644 --- a/arts/gui/kde/kartswidget.cpp +++ b/arts/gui/kde/kartswidget.cpp @@ -28,43 +28,43 @@ class KArtsWidgetPrivate { public: - TQHBoxLayout *layout; + TQHBoxLayout *tqlayout; }; -KArtsWidget::KArtsWidget( TQWidget* parent, const char* name ) - :TQWidget( parent, name ), _content( Arts::Widget::null() ) +KArtsWidget::KArtsWidget( TQWidget* tqparent, const char* name ) + :TQWidget( tqparent, name ), _content( Arts::Widget::null() ) { d = new KArtsWidgetPrivate; - d->layout = new TQHBoxLayout(this); + d->tqlayout = new TQHBoxLayout(this); } -KArtsWidget::KArtsWidget( Arts::Widget content, TQWidget* parent, const char* name ) - :TQWidget( parent, name ), _content( Arts::Widget::null()) +KArtsWidget::KArtsWidget( Arts::Widget content, TQWidget* tqparent, const char* name ) + :TQWidget( tqparent, name ), _content( Arts::Widget::null()) { d = new KArtsWidgetPrivate; - d->layout = new TQHBoxLayout(this); + d->tqlayout = new TQHBoxLayout(this); setContent(content); } -KArtsWidget::KArtsWidget( Arts::Widget content, TQWidget* parent, const char* name, WFlags wflags ) - :TQWidget( parent, name, wflags ), _content( Arts::Widget::null() ) +KArtsWidget::KArtsWidget( Arts::Widget content, TQWidget* tqparent, const char* name, WFlags wflags ) + :TQWidget( tqparent, name, wflags ), _content( Arts::Widget::null() ) { d = new KArtsWidgetPrivate; - d->layout = new TQHBoxLayout( this ); + d->tqlayout = new TQHBoxLayout( this ); setContent( content ); } -KArtsWidget::KArtsWidget(TQWidget* parent, const char* name, WFlags wflags ) - :TQWidget(parent, name, wflags ), _content(Arts::Widget::null()) +KArtsWidget::KArtsWidget(TQWidget* tqparent, const char* name, WFlags wflags ) + :TQWidget(tqparent, name, wflags ), _content(Arts::Widget::null()) { d = new KArtsWidgetPrivate; - d->layout = new TQHBoxLayout(this); + d->tqlayout = new TQHBoxLayout(this); } KArtsWidget::~KArtsWidget() { TQWidget *contentAsWidget - = KWidgetRepo::the()->lookupQWidget(_content.widgetID()); + = KWidgetRepo::the()->lookupTQWidget(_content.widgetID()); contentAsWidget->reparent(0,TQPoint(0,0),_content.visible()); delete d; d = 0; @@ -75,12 +75,12 @@ void KArtsWidget::setContent(Arts::Widget content) { arts_return_if_fail(!content.isNull()); TQWidget *contentAsWidget - = KWidgetRepo::the()->lookupQWidget(content.widgetID()); + = KWidgetRepo::the()->lookupTQWidget(content.widgetID()); arts_return_if_fail(contentAsWidget != 0); _content = content; contentAsWidget->reparent(this,TQPoint(0,0),content.visible()); - d->layout->addWidget(contentAsWidget); + d->tqlayout->addWidget(contentAsWidget); } Arts::Widget KArtsWidget::content() diff --git a/arts/gui/kde/kartswidget.h b/arts/gui/kde/kartswidget.h index 2cd072bc..7e745bf6 100644 --- a/arts/gui/kde/kartswidget.h +++ b/arts/gui/kde/kartswidget.h @@ -31,17 +31,17 @@ class KArtsWidgetPrivate; /** * KArtsWidget provides a simple way to treat Arts::Widget classes like - * native Qt widgets. Suppose you use Qt, and want to put an Arts::Widget - * type into a layout, you can do so using this code + * native TQt widgets. Suppose you use TQt, and want to put an Arts::Widget + * type into a tqlayout, you can do so using this code * *
  *    Arts::Widget widget = ...get widget from somewhere...;
  *    KArtsWidget *w = new KArtsWidget(widget, this);
- *    layout->addWidget(w);
+ *    tqlayout->addWidget(w);
  * 
* - * In line 2 of the code, the "this" is the parent widget (which is usually - * this in Qt code). + * In line 2 of the code, the "this" is the tqparent widget (which is usually + * this in TQt code). * * The KArtsWidget class keeps a reference to the content widget, so the * content widget will not be freed until the KArtsWidget gets destroyed. @@ -57,12 +57,12 @@ public: /** * creates a new KArtsWidget */ - KArtsWidget( TQWidget* parent, const char* name ); + KArtsWidget( TQWidget* tqparent, const char* name ); /** * creates a new KArtsWidget and sets the content to an Arts::Widget */ - KArtsWidget( Arts::Widget content, TQWidget* parent, const char* name ); + KArtsWidget( Arts::Widget content, TQWidget* tqparent, const char* name ); /** * creates a new KArtsWidget with WidgetFlags and content diff --git a/arts/gui/kde/kbutton_impl.cpp b/arts/gui/kde/kbutton_impl.cpp index 34c5791b..95f7699f 100644 --- a/arts/gui/kde/kbutton_impl.cpp +++ b/arts/gui/kde/kbutton_impl.cpp @@ -72,12 +72,12 @@ KButton_impl::KButton_impl( TQPushButton * widget ) void KButton_impl::constructor( Widget p ) { - parent( p ); + tqparent( p ); } void KButton_impl::constructor( const string & t, Widget p ) { - parent( p ); + tqparent( p ); text( t ); } diff --git a/arts/gui/kde/kbutton_impl.h b/arts/gui/kde/kbutton_impl.h index 723c5023..4db27c84 100644 --- a/arts/gui/kde/kbutton_impl.h +++ b/arts/gui/kde/kbutton_impl.h @@ -32,6 +32,7 @@ namespace Arts { class KButton_impl; class KButtonMapper : public TQObject { Q_OBJECT + TQ_OBJECT KButton_impl *impl; TQPushButton * button; public: @@ -54,7 +55,7 @@ protected: public: KButton_impl( TQPushButton * w = 0 ); - void constructor( Widget parent ); + void constructor( Widget tqparent ); void constructor( const std::string &, Widget ); void emitClicked(); diff --git a/arts/gui/kde/kcombobox_impl.cpp b/arts/gui/kde/kcombobox_impl.cpp index eab55d0d..58c401ce 100644 --- a/arts/gui/kde/kcombobox_impl.cpp +++ b/arts/gui/kde/kcombobox_impl.cpp @@ -31,7 +31,7 @@ using namespace Arts; using namespace std; ComboBoxIntMapper::ComboBoxIntMapper(KComboBox_impl *impl, KComboBox *co) - : TQObject( co, "map Qt signal to aRts" ) + : TQObject( co, "map TQt signal to aRts" ) ,impl(impl) { connect(co, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(activated(const TQString &))); diff --git a/arts/gui/kde/kcombobox_impl.h b/arts/gui/kde/kcombobox_impl.h index 3041d352..ad8e5739 100644 --- a/arts/gui/kde/kcombobox_impl.h +++ b/arts/gui/kde/kcombobox_impl.h @@ -36,6 +36,7 @@ namespace Arts { class KComboBox_impl; class ComboBoxIntMapper :public TQObject { Q_OBJECT + TQ_OBJECT KComboBox_impl *impl; public: ComboBoxIntMapper(KComboBox_impl *impl, KComboBox *co); @@ -56,7 +57,7 @@ protected: public: KComboBox_impl( KComboBox * w = 0 ); - void constructor( Widget p ) { parent( p ); } + void constructor( Widget p ) { tqparent( p ); } std::string caption(); void caption(const std::string & newCaption); diff --git a/arts/gui/kde/kfader.cpp b/arts/gui/kde/kfader.cpp index e5179f9f..239d303a 100644 --- a/arts/gui/kde/kfader.cpp +++ b/arts/gui/kde/kfader.cpp @@ -5,14 +5,14 @@ void KFader::init() { } -KFader::KFader( TQWidget * parent, const char * name ) - : TQSlider( Qt::Vertical, parent, name ) +KFader::KFader( TQWidget * tqparent, const char * name ) + : TQSlider( Qt::Vertical, tqparent, name ) { init(); } -KFader::KFader( int minValue, int maxValue, int pageStep, int value, TQWidget * parent, const char * name ) - : TQSlider( minValue, maxValue, pageStep, value, Qt::Vertical, parent, name ) +KFader::KFader( int minValue, int maxValue, int pageStep, int value, TQWidget * tqparent, const char * name ) + : TQSlider( minValue, maxValue, pageStep, value, Qt::Vertical, tqparent, name ) { init(); } diff --git a/arts/gui/kde/kfader.h b/arts/gui/kde/kfader.h index 603ad7cd..33df0d40 100644 --- a/arts/gui/kde/kfader.h +++ b/arts/gui/kde/kfader.h @@ -25,14 +25,15 @@ #include -class KFader : public QSlider +class KFader : public TQSlider { Q_OBJECT + TQ_OBJECT protected: void init(); public: - KFader( TQWidget * parent = 0, const char * name = 0 ); - KFader( int minValue, int maxValue, int pageStep, int value, TQWidget * parent = 0, const char * name = 0 ); + KFader( TQWidget * tqparent = 0, const char * name = 0 ); + KFader( int minValue, int maxValue, int pageStep, int value, TQWidget * tqparent = 0, const char * name = 0 ); virtual ~KFader(); diff --git a/arts/gui/kde/kfader_impl.h b/arts/gui/kde/kfader_impl.h index 0d1b81ed..e15695f0 100644 --- a/arts/gui/kde/kfader_impl.h +++ b/arts/gui/kde/kfader_impl.h @@ -37,6 +37,7 @@ class KFader_impl; class FaderIntMapper :public TQObject { Q_OBJECT + TQ_OBJECT KFader_impl *impl; public: FaderIntMapper(KFader_impl *impl, KFader *kp); @@ -62,7 +63,7 @@ protected: public: KFader_impl( KFader * w = 0 ); - void constructor( Widget p ) { parent( p ); } + void constructor( Widget p ) { tqparent( p ); } std::string caption(); void caption(const std::string& newText); diff --git a/arts/gui/kde/kframe_impl.cpp b/arts/gui/kde/kframe_impl.cpp index d95da549..478d8ec4 100644 --- a/arts/gui/kde/kframe_impl.cpp +++ b/arts/gui/kde/kframe_impl.cpp @@ -73,12 +73,12 @@ void KFrame_impl::framestyle( long fs ) _qframe->setFrameStyle( fs ); } -Shape KFrame_impl::frameshape() +Shape KFrame_impl::frametqshape() { return ( Shape )_qframe->frameShape(); } -void KFrame_impl::frameshape( Shape fs ) +void KFrame_impl::frametqshape( Shape fs ) { _qframe->setFrameShape( ( TQFrame::Shape )fs ); } diff --git a/arts/gui/kde/kframe_impl.h b/arts/gui/kde/kframe_impl.h index febc0057..ae2e79a4 100644 --- a/arts/gui/kde/kframe_impl.h +++ b/arts/gui/kde/kframe_impl.h @@ -34,7 +34,7 @@ class KDE_EXPORT KFrame_impl : virtual public Arts::Frame_skel, public: KFrame_impl( TQFrame * widget = 0 ); - inline void constructor( Widget p ) { parent( p ); } + inline void constructor( Widget p ) { tqparent( p ); } long margin(); void margin( long m ); @@ -44,8 +44,8 @@ class KDE_EXPORT KFrame_impl : virtual public Arts::Frame_skel, void midlinewidth( long mlw ); long framestyle(); void framestyle( long fs ); - Shape frameshape(); - void frameshape( Shape fs ); + Shape frametqshape(); + void frametqshape( Shape fs ); Shadow frameshadow(); void frameshadow( Shadow fs ); }; //class diff --git a/arts/gui/kde/kgraph.cpp b/arts/gui/kde/kgraph.cpp index 21d3d8cf..96d18c5c 100644 --- a/arts/gui/kde/kgraph.cpp +++ b/arts/gui/kde/kgraph.cpp @@ -31,8 +31,8 @@ using namespace Arts; using namespace std; -KGraph::KGraph( TQWidget * parent, const char * name ) - : TQWidget( parent, name ) +KGraph::KGraph( TQWidget * tqparent, const char * name ) + : TQWidget( tqparent, name ) { setBackgroundColor(white); @@ -52,7 +52,7 @@ void KGraph::addLine(Arts::KGraphLine_impl *line) void KGraph::redrawLine(Arts::KGraphLine_impl * /*line*/) { - repaint(); + tqrepaint(); } void KGraph::removeLine(Arts::KGraphLine_impl *line) @@ -111,7 +111,7 @@ void KGraph::paintEvent( TQPaintEvent *e ) void KGraph::mousePressEvent(TQMouseEvent *e) { - if(e->button() == LeftButton || e->button() == RightButton) + if(e->button() == Qt::LeftButton || e->button() == Qt::RightButton) { std::list::iterator li; for(li = lines.begin(); li != lines.end(); li++) @@ -140,7 +140,7 @@ void KGraph::mousePressEvent(TQMouseEvent *e) if(selectedIndex >= 0) { // erase point - if(e->button() == RightButton) + if(e->button() == Qt::RightButton) { if(selectedIndex != 0 && selectedIndex != (( int )( selectedLine->_points.size() )-1)) { @@ -159,7 +159,7 @@ void KGraph::mousePressEvent(TQMouseEvent *e) selectedIndex = -1; } } - else if(e->button() == LeftButton) + else if(e->button() == Qt::LeftButton) { // try to insert a point std::list::iterator li; diff --git a/arts/gui/kde/kgraph.h b/arts/gui/kde/kgraph.h index 83c1aa7c..e9f772ff 100644 --- a/arts/gui/kde/kgraph.h +++ b/arts/gui/kde/kgraph.h @@ -31,9 +31,10 @@ namespace Arts { class KGraphLine_impl; -class KGraph : public QWidget +class KGraph : public TQWidget { Q_OBJECT + TQ_OBJECT protected: std::list lines; @@ -46,7 +47,7 @@ protected: inline GraphPoint q2gPoint(const TQPoint &qp); inline TQPoint g2qPoint(const GraphPoint &gp); public: - KGraph( TQWidget * parent = 0, const char * name = 0 ); + KGraph( TQWidget * tqparent = 0, const char * name = 0 ); virtual ~KGraph(); void addLine(Arts::KGraphLine_impl *line); diff --git a/arts/gui/kde/kgraph_impl.h b/arts/gui/kde/kgraph_impl.h index 408ad961..2a603208 100644 --- a/arts/gui/kde/kgraph_impl.h +++ b/arts/gui/kde/kgraph_impl.h @@ -44,7 +44,7 @@ protected: public: KGraph_impl( KGraph * w = 0 ); - void constructor( Widget p ) { parent( p ); } + void constructor( Widget p ) { tqparent( p ); } std::string caption(); void caption(const std::string& newCaption); diff --git a/arts/gui/kde/kgraphline_impl.cpp b/arts/gui/kde/kgraphline_impl.cpp index ccb6ed1f..9fcd4507 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& newPoints) KGraph *KGraphLine_impl::getKGraph() { - TQWidget *widget = KWidgetRepo::the()->lookupQWidget(_graphID); + TQWidget *widget = KWidgetRepo::the()->lookupTQWidget(_graphID); if(!widget) return 0; diff --git a/arts/gui/kde/klabel_impl.cpp b/arts/gui/kde/klabel_impl.cpp index dd0a9557..e6a008c4 100644 --- a/arts/gui/kde/klabel_impl.cpp +++ b/arts/gui/kde/klabel_impl.cpp @@ -92,13 +92,13 @@ void RotateLabel::title( TQString n ) { void RotateLabel::align( long n ) { _align=n; - repaint(); + tqrepaint(); } void RotateLabel::bottom( Arts::TextBottom bottom ) { _bottom = bottom; title( _title ); - repaint(); + tqrepaint(); } // vim: sw=4 ts=4 diff --git a/arts/gui/kde/klabel_impl.h b/arts/gui/kde/klabel_impl.h index 7822e960..8b78bedc 100644 --- a/arts/gui/kde/klabel_impl.h +++ b/arts/gui/kde/klabel_impl.h @@ -42,7 +42,7 @@ protected: RotateLabel* _label; public: KLabel_impl( TQFrame* w=0 ); - void constructor( Widget p ) { parent( p ); } + void constructor( Widget p ) { tqparent( p ); } std::string text(); void text( const std::string& newtext ); @@ -65,6 +65,7 @@ public: class RotateLabel : public TQFrame { Q_OBJECT + TQ_OBJECT public: RotateLabel( TQWidget*, const char* =0 ); void paintEvent( TQPaintEvent* ); diff --git a/arts/gui/kde/klayoutbox_impl.cpp b/arts/gui/kde/klayoutbox_impl.cpp index 847e803a..e94ed1ec 100644 --- a/arts/gui/kde/klayoutbox_impl.cpp +++ b/arts/gui/kde/klayoutbox_impl.cpp @@ -40,16 +40,16 @@ KLayoutBox_impl::~KLayoutBox_impl() { } void KLayoutBox_impl::addWidget( Arts::Widget widget, long stretch, long align ) { - widget.parent( self() ); - this->_addChild( widget, "layoutbox_item" ); - TQWidget * tmp = KWidgetRepo::the()->lookupQWidget( widget.widgetID() ); + widget.tqparent( self() ); + this->_addChild( widget, "tqlayoutbox_item" ); + TQWidget * tmp = KWidgetRepo::the()->lookupTQWidget( 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" ); - TQWidget * tmp = KWidgetRepo::the()->lookupQWidget( widget.widgetID() ); + widget.tqparent( self() ); + this->_addChild( widget, "tqlayoutbox_item" ); + TQWidget * tmp = KWidgetRepo::the()->lookupTQWidget( widget.widgetID() ); _layout->insertWidget( index, tmp, stretch, align ); } @@ -66,8 +66,8 @@ void KLayoutBox_impl::addLine( long width, long space, long stretch, long align long KLayoutBox_impl::spacing() { return _layout->spacing(); } void KLayoutBox_impl::spacing( long n ) { _layout->setSpacing( n ); } -long KLayoutBox_impl::layoutmargin() { return _layout->margin(); } -void KLayoutBox_impl::layoutmargin( long n ) { _layout->setMargin( n ); this->margin( n ); } +long KLayoutBox_impl::tqlayoutmargin() { return _layout->margin(); } +void KLayoutBox_impl::tqlayoutmargin( 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( TQBoxLayout::Direction( d ) ); } @@ -85,11 +85,11 @@ void KLayoutBox_Separator::paintEvent( TQPaintEvent* ) { 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 ); + tqstyle().tqdrawPrimitive( TQStyle::PE_Splitter, &p, rect(), tqcolorGroup(), flags ); } -TQSize KLayoutBox_Separator::minimumSizeHint() const { - int wh = style().pixelMetric( TQStyle::PM_SplitterWidth, this ); +TQSize KLayoutBox_Separator::tqminimumSizeHint() const { + int wh = tqstyle().tqpixelMetric( TQStyle::PM_SplitterWidth, this ); return TQSize( wh, wh ); } @@ -105,12 +105,12 @@ KLayoutBox_Line::KLayoutBox_Line( int width, int space, TQWidget* p, const char* void KLayoutBox_Line::paintEvent( TQPaintEvent* ) { //kdDebug() << k_funcinfo << size() << endl; TQPainter p( this ); - p.setPen( TQPen( colorGroup().foreground(), _width ) ); + p.setPen( TQPen( tqcolorGroup().foreground(), _width ) ); if ( width() > height() ) p.drawLine( 0, height()/2, width(), height()/2 ); else p.drawLine( width()/2, 0, width()/2, height() ); } -TQSize KLayoutBox_Line::minimumSizeHint() const { +TQSize KLayoutBox_Line::tqminimumSizeHint() const { //kdDebug() << k_funcinfo << size() << endl; int wh = _width + 2* _space; return TQSize( wh, wh ); diff --git a/arts/gui/kde/klayoutbox_impl.h b/arts/gui/kde/klayoutbox_impl.h index bb5302ea..a8272fe3 100644 --- a/arts/gui/kde/klayoutbox_impl.h +++ b/arts/gui/kde/klayoutbox_impl.h @@ -72,29 +72,31 @@ public: long spacing(); void spacing( long ); - long layoutmargin(); - void layoutmargin( long ); + long tqlayoutmargin(); + void tqlayoutmargin( long ); }; // class } // namespace class KDE_EXPORT KLayoutBox_Separator : public TQWidget { Q_OBJECT + TQ_OBJECT public: KLayoutBox_Separator( TQWidget*, const char* =0 ); void resizeEvent( TQResizeEvent* ); void paintEvent( TQPaintEvent* ); - TQSize minimumSizeHint() const; + TQSize tqminimumSizeHint() const; }; class KLayoutBox_Line : public TQWidget { Q_OBJECT + TQ_OBJECT private: int _width, _space; public: KLayoutBox_Line( int, int, TQWidget*, const char* =0 ); void paintEvent( TQPaintEvent* ); - TQSize minimumSizeHint() const; + TQSize tqminimumSizeHint() const; }; #endif diff --git a/arts/gui/kde/klevelmeter_firebars.cpp b/arts/gui/kde/klevelmeter_firebars.cpp index 9a78804c..ffb99c3e 100644 --- a/arts/gui/kde/klevelmeter_firebars.cpp +++ b/arts/gui/kde/klevelmeter_firebars.cpp @@ -59,8 +59,8 @@ kdDebug() << k_funcinfo << dir << endl; p.end(); } -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* "<setMinimumSize( 5, 5 ); _bar = new KLevelMeter_FireBars_private( this, 0 ); _peakwidget = new TQWidget( this ); @@ -91,7 +91,7 @@ void KLevelMeter_FireBars::invalue( float n, float p ) { _bar->setGeometry( int( this->width()-_value*this->width() ), 0, this->width(), this->height() ); break; } - repaint(); + tqrepaint(); } void KLevelMeter_FireBars::paintEvent( TQPaintEvent* ) { diff --git a/arts/gui/kde/klevelmeter_firebars.h b/arts/gui/kde/klevelmeter_firebars.h index da740961..4313004e 100644 --- a/arts/gui/kde/klevelmeter_firebars.h +++ b/arts/gui/kde/klevelmeter_firebars.h @@ -28,6 +28,7 @@ class KLevelMeter_FireBars; class KLevelMeter_FireBars_private : public TQWidget { Q_OBJECT + TQ_OBJECT public: KLevelMeter_FireBars_private( KLevelMeter_FireBars*, const char* ); void paintEvent( TQPaintEvent* ); @@ -40,6 +41,7 @@ private: class KLevelMeter_FireBars : public KLevelMeter_Template { Q_OBJECT + TQ_OBJECT public: KLevelMeter_FireBars( Arts::KLevelMeter_impl*, TQWidget* =0, long substyle=0, long count=0, Arts::Direction =Arts::BottomToTop, float _dbmin=-24, float _dbmax=6 ); diff --git a/arts/gui/kde/klevelmeter_impl.cpp b/arts/gui/kde/klevelmeter_impl.cpp index 418108ad..b6845dc4 100644 --- a/arts/gui/kde/klevelmeter_impl.cpp +++ b/arts/gui/kde/klevelmeter_impl.cpp @@ -41,8 +41,8 @@ using namespace Arts; using namespace std; -KLevelMeter_Private::KLevelMeter_Private( KLevelMeter_impl* impl, TQFrame* frame, LevelMeterStyle defstyle, TQObject* parent, const char* name ) - : TQObject( parent, name ) +KLevelMeter_Private::KLevelMeter_Private( KLevelMeter_impl* impl, TQFrame* frame, LevelMeterStyle defstyle, TQObject* tqparent, const char* name ) + : TQObject( tqparent, name ) , _impl( impl ) , _frame( frame ) , _levelmeter( 0 ) diff --git a/arts/gui/kde/klevelmeter_linebars.cpp b/arts/gui/kde/klevelmeter_linebars.cpp index 6d63a18c..5d8b4b3c 100644 --- a/arts/gui/kde/klevelmeter_linebars.cpp +++ b/arts/gui/kde/klevelmeter_linebars.cpp @@ -24,21 +24,21 @@ #include #include -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 ) +KLevelMeter_LineBars::KLevelMeter_LineBars( Arts::KLevelMeter_impl* impl, TQWidget* tqparent, long substyle, long count, Arts::Direction dir, float _dbmin, float _dbmax ) : KLevelMeter_Template( impl, tqparent, substyle, count, dir, _dbmin, _dbmax ) , _value( 0.0 ) , _peak( 0.0 ) { -//kdDebug()<<"KLevelMeter_LineBars::KLevelMeter_LineBars( Arts::KLevelMeter_impl* "<setMinimumSize( 5, 5 ); this->substyle( substyle ); - _stdcolors = colorGroup(); - setBackgroundMode( Qt::NoBackground ); + _stdcolors = tqcolorGroup(); + setBackgroundMode( TQt::NoBackground ); } void KLevelMeter_LineBars::invalue( float n, float p ) { _value = amptondb( n ); _peak = amptondb( p ); - repaint(); + tqrepaint(); } void KLevelMeter_LineBars::substyle( long n ) { @@ -73,7 +73,7 @@ void KLevelMeter_LineBars::paintEvent( TQPaintEvent* ) { else p.setBrush( ( _peak<1 )?color( _value ):TQColor( 255,0,0 ) ); - TQColor bgcolor = ( _substyle & 2 ) ? p.brush().color().dark() : _stdcolors.background(); + TQColor bgcolor = ( _substyle & 2 ) ? p.brush().color().dark() : TQColor(_stdcolors.background()); pm.fill( bgcolor ); p.setPen( NoPen ); @@ -94,7 +94,7 @@ void KLevelMeter_LineBars::paintEvent( TQPaintEvent* ) { p.drawLine( 0, top, w, top ); } - bitBlt( this, 0, 0, &pm, 0, 0, pm.width(), pm.height(), CopyROP, true ); + bitBlt( TQT_TQPAINTDEVICE(this), 0, 0, TQT_TQPAINTDEVICE(&pm), 0, 0, pm.width(), pm.height(), CopyROP, true ); } /** diff --git a/arts/gui/kde/klevelmeter_linebars.h b/arts/gui/kde/klevelmeter_linebars.h index cf0c4217..996b2c68 100644 --- a/arts/gui/kde/klevelmeter_linebars.h +++ b/arts/gui/kde/klevelmeter_linebars.h @@ -25,6 +25,7 @@ class KLevelMeter_LineBars : public KLevelMeter_Template { Q_OBJECT + TQ_OBJECT public: KLevelMeter_LineBars( Arts::KLevelMeter_impl*, TQWidget* =0, long substyle=0, long count=0, Arts::Direction =Arts::BottomToTop, float _dbmin=-24, float _dbmax=6 ); diff --git a/arts/gui/kde/klevelmeter_normalbars.cpp b/arts/gui/kde/klevelmeter_normalbars.cpp index 29593551..9263737a 100644 --- a/arts/gui/kde/klevelmeter_normalbars.cpp +++ b/arts/gui/kde/klevelmeter_normalbars.cpp @@ -24,8 +24,8 @@ #include #include -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* "< #include -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* "<direction(); } void KPopupBox_impl::direction( Direction n ) { _widget->direction( n ); } void KPopupBox_impl::widget( Arts::Widget widget ) { - widget.parent( self() ); + widget.tqparent( self() ); this->_addChild( widget, "PopupBox_child" ); _widget->setWidget( widget ); } @@ -54,14 +54,14 @@ void KPopupBox_impl::name( const std::string& n ) { _name = ""; _name = n; _widg // Following the private class: -KPopupBox_widget::KPopupBox_widget( TQWidget *parent, const char* name ) : TQFrame( parent,name ) +KPopupBox_widget::KPopupBox_widget( TQWidget *tqparent, const char* name ) : TQFrame( tqparent,name ) { this->setFrameShape( TQFrame::Box ); this->setMargin( 1 ); this->setLineWidth( 1 ); _titlebar = new TQFrame( this ); - _titlebarlayout = new TQBoxLayout( _titlebar, TQBoxLayout::BottomToTop ); - _titlebarlayout->setAutoAdd( true ); + _titlebartqlayout = new TQBoxLayout( _titlebar, TQBoxLayout::BottomToTop ); + _titlebartqlayout->setAutoAdd( true ); _showbutton = new ShowButton( _titlebar ); connect( _showbutton, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( hide( bool ) ) ); @@ -90,13 +90,13 @@ void KPopupBox_widget::direction( Arts::Direction n ) { switch( n ) { case LeftToRight: case RightToLeft: - _titlebarlayout->setDirection( TQBoxLayout::BottomToTop ); + _titlebartqlayout->setDirection( TQBoxLayout::BottomToTop ); _drag->setMinimumHeight( 30 ); _drag->setMinimumWidth( 0 ); break; case TopToBottom: case BottomToTop: - _titlebarlayout->setDirection( TQBoxLayout::RightToLeft ); + _titlebartqlayout->setDirection( TQBoxLayout::RightToLeft ); _drag->setMinimumHeight( 0 ); _drag->setMinimumWidth( 30 ); } diff --git a/arts/gui/kde/kpopupbox_private.h b/arts/gui/kde/kpopupbox_private.h index 8fb25bea..06a58ebc 100644 --- a/arts/gui/kde/kpopupbox_private.h +++ b/arts/gui/kde/kpopupbox_private.h @@ -32,9 +32,10 @@ class TQBoxLayout; #include -class KPopupBox_widget : public QFrame +class KPopupBox_widget : public TQFrame { Q_OBJECT + TQ_OBJECT public: KPopupBox_widget( TQWidget* =0, const char* =0); ~KPopupBox_widget(); @@ -53,7 +54,7 @@ private: TQBoxLayout *_layout; TQFrame *_titlebar; - TQBoxLayout *_titlebarlayout; + TQBoxLayout *_titlebartqlayout; HandleDrag *_drag; ShowButton *_showbutton; OwnButton *_ownbutton; @@ -65,6 +66,7 @@ private: /*class KPopupBoxEventMapper : public TQObject { Q_OBJECT + TQ_OBJECT public: KPopupBoxEventMapper( KPopupBox_widget *widget, Arts::KPopupBox_impl *impl ) : TQObject( widget,"" ), _widget( widget ), _impl( impl ) @@ -79,13 +81,14 @@ private: class HandleDrag : public TQWidget { Q_OBJECT + TQ_OBJECT public: - HandleDrag( TQWidget *parent, const char* name=0 ) : TQWidget( parent,name ) {} + HandleDrag( TQWidget *tqparent, const char* name=0 ) : TQWidget( tqparent,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 ); + tqstyle().tqdrawPrimitive( TQStyle::PE_DockWindowHandle, &p, rect(), tqcolorGroup(), flags ); } signals: void clicked(); @@ -108,11 +111,12 @@ static const char* const own_xpm[] = { "5 5 2 1", "# c black", ". c None", "# class ShowButton : public TQPushButton { Q_OBJECT + TQ_OBJECT private: TQBoxLayout::Direction _dir; TQPixmap _pmleft, _pmright, _pmup, _pmdown; public: - ShowButton( TQWidget *parent, const char* name=0 ) : TQPushButton( parent,name ), _dir( TQBoxLayout::LeftToRight ) + ShowButton( TQWidget *tqparent, const char* name=0 ) : TQPushButton( tqparent,name ), _dir( TQBoxLayout::LeftToRight ) { connect( this, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( owntoggle( bool ) ) ); setToggleButton( true ); @@ -147,27 +151,28 @@ public slots: } } public: - TQSize minimumSizeHint() const { - int wh = style().pixelMetric( TQStyle::PM_DockWindowHandleExtent, this ); + TQSize tqminimumSizeHint() const { + int wh = tqstyle().tqpixelMetric( TQStyle::PM_DockWindowHandleExtent, this ); return TQSize( wh, wh ); } TQSizePolicy sizePolicy() const { return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); } - TQSize minimumSize() const { return minimumSizeHint(); } - TQSize sizeHint() const { return minimumSize(); } + TQSize tqminimumSize() const { return tqminimumSizeHint(); } + TQSize tqsizeHint() const { return tqminimumSize(); } void drawButton( TQPainter * p ) { - p->fillRect( 0,0, width(), height(), TQBrush( colorGroup().brush( TQColorGroup::Background ) ) ); + p->fillRect( 0,0, width(), height(), TQBrush( tqcolorGroup().brush( TQColorGroup::Background ) ) ); p->drawPixmap( ( width() - pixmap()->width() ) / 2, ( height() - pixmap()->height() ) / 2, *pixmap() ); } }; class OwnButton : public TQPushButton { Q_OBJECT + TQ_OBJECT private: TQPixmap _pmown, _pminside; public: - OwnButton( TQWidget *parent, const char* name=0 ) : TQPushButton( parent,name ) + OwnButton( TQWidget *tqparent, const char* name=0 ) : TQPushButton( tqparent,name ) { connect( this, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( toggle( bool ) ) ); setToggleButton( true ); @@ -182,17 +187,17 @@ public slots: else setPixmap( _pmown ); } public: - TQSize minimumSizeHint() const { - int wh = style().pixelMetric( TQStyle::PM_DockWindowHandleExtent, this ); + TQSize tqminimumSizeHint() const { + int wh = tqstyle().tqpixelMetric( TQStyle::PM_DockWindowHandleExtent, this ); return TQSize( wh, wh ); } TQSizePolicy sizePolicy() const { return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); } - TQSize minimumSize() const { return minimumSizeHint(); } - TQSize sizeHint() const { return minimumSize(); } + TQSize tqminimumSize() const { return tqminimumSizeHint(); } + TQSize tqsizeHint() const { return tqminimumSize(); } void drawButton( TQPainter * p ) { - p->fillRect( 0,0, width(), height(), TQBrush( colorGroup().brush( TQColorGroup::Background ) ) ); + p->fillRect( 0,0, width(), height(), TQBrush( tqcolorGroup().brush( TQColorGroup::Background ) ) ); p->drawPixmap( ( width() - pixmap()->width() ) / 2, ( height() - pixmap()->height() ) / 2, *pixmap() ); } }; @@ -202,6 +207,7 @@ public: class OwnWidget : public KArtsWidget { Q_OBJECT + TQ_OBJECT ShowButton *_b; public: OwnWidget( ShowButton* b, TQWidget* p, const char* n=0, WFlags f=0 ) : KArtsWidget( p,n,f ) { _b = b; } diff --git a/arts/gui/kde/kpoti.cpp b/arts/gui/kde/kpoti.cpp index 462d640b..dd4e484b 100644 --- a/arts/gui/kde/kpoti.cpp +++ b/arts/gui/kde/kpoti.cpp @@ -53,28 +53,28 @@ struct KPoti::KPotiPrivate bool bgDirty; KPixmap bgdb; - KPixmap bgPixmap( const TQColorGroup & colorGroup ) + KPixmap bgPixmap( const TQColorGroup & tqcolorGroup ) { if( bgDirty || bgdb.isNull() ) { bgdb.resize( buttonRect.size() ); TQPainter dbp( &bgdb ); - dbp.setPen( Qt::NoPen ); + dbp.setPen( TQt::NoPen ); TQRect drawRect = bgdb.rect(); - // create mask - TQBitmap mask( bgdb.size(), true ); - TQPainter maskpainter( &mask ); - maskpainter.setPen( Qt::NoPen ); - maskpainter.setBrush( Qt::color1 ); - maskpainter.drawEllipse( drawRect ); - maskpainter.end(); - bgdb.setMask( mask ); + // create tqmask + TQBitmap tqmask( bgdb.size(), true ); + TQPainter tqmaskpainter( &tqmask ); + tqmaskpainter.setPen( TQt::NoPen ); + tqmaskpainter.setBrush( TQt::color1 ); + tqmaskpainter.drawEllipse( drawRect ); + tqmaskpainter.end(); + bgdb.setMask( tqmask ); // inset shadow KPixmap gradient( bgdb.size() ); - KPixmapEffect::gradient( gradient, colorGroup.light(), colorGroup.dark(), KPixmapEffect::DiagonalGradient ); - dbp.setBrush( TQBrush( colorGroup.button(), gradient ) ); + KPixmapEffect::gradient( gradient, tqcolorGroup.light(), tqcolorGroup.dark(), KPixmapEffect::DiagonalGradient ); + dbp.setBrush( TQBrush( tqcolorGroup.button(), gradient ) ); dbp.drawEllipse( drawRect ); potiRect.setSize( drawRect.size() * 0.9 ); @@ -99,17 +99,17 @@ struct KPoti::KPotiPrivate { potidb.resize( potiRect.size() ); TQPainter dbp( &potidb ); - dbp.setPen( Qt::NoPen ); + dbp.setPen( TQt::NoPen ); TQRect drawRect( potidb.rect() ); - // create mask - TQBitmap mask( potidb.size(), true ); - TQPainter maskpainter( &mask ); - maskpainter.setPen( Qt::NoPen ); - maskpainter.setBrush( Qt::color1 ); - maskpainter.drawEllipse( drawRect ); - maskpainter.end(); - potidb.setMask( mask ); + // create tqmask + TQBitmap tqmask( potidb.size(), true ); + TQPainter tqmaskpainter( &tqmask ); + tqmaskpainter.setPen( TQt::NoPen ); + tqmaskpainter.setBrush( TQt::color1 ); + tqmaskpainter.drawEllipse( drawRect ); + tqmaskpainter.end(); + potidb.setMask( tqmask ); KPixmap gradient( potidb.size() ); KPixmapEffect::gradient( gradient, potiColor.dark( 130 ), potiColor.light( 130 ), KPixmapEffect::DiagonalGradient ); @@ -133,12 +133,12 @@ TQSizePolicy KPoti::sizePolicy() const return TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Preferred ); } -TQSize KPoti::sizeHint() const +TQSize KPoti::tqsizeHint() const { - return minimumSizeHint(); + return tqminimumSizeHint(); } -TQSize KPoti::minimumSizeHint() const +TQSize KPoti::tqminimumSizeHint() const { int width = 40; int height = 40; @@ -162,17 +162,17 @@ TQString KPoti::text() const void KPoti::setText( const TQString & text ) { d->label = text; - setMinimumSize( minimumSizeHint() ); + setMinimumSize( tqminimumSizeHint() ); updateGeometry(); } /** Constructs a poti. - The \e parent and \e name arguments are sent to the TQWidget constructor. + The \e tqparent and \e name arguments are sent to the TQWidget constructor. */ -KPoti::KPoti( TQWidget *parent, const char *name ) - : TQFrame( parent, name, WResizeNoErase | WRepaintNoErase ) +KPoti::KPoti( TQWidget *tqparent, const char *name ) + : TQFrame( tqparent, name, WResizeNoErase | WRepaintNoErase ) , d( 0 ) { init(); @@ -188,12 +188,12 @@ KPoti::KPoti( TQWidget *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 TQWidget constructor. + The \e tqparent and \e name arguments are sent to the TQWidget constructor. */ KPoti::KPoti( int minValue, int maxValue, int step, - int value, TQWidget *parent, const char *name ) - : TQFrame( parent, name, WResizeNoErase | WRepaintNoErase ) + int value, TQWidget *tqparent, const char *name ) + : TQFrame( tqparent, name, WResizeNoErase | WRepaintNoErase ) , TQRangeControl( minValue, maxValue, 1, step, value ) , d( 0 ) { @@ -209,7 +209,7 @@ KPoti::~KPoti() void KPoti::init(int value) { d = new KPotiPrivate; - font().setPointSize( 8 ); + const_cast(font()).setPointSize( 8 ); d->potiColor.setNamedColor( "red" ); timer = 0; @@ -222,7 +222,7 @@ void KPoti::init(int value) m_bLabel = true; tickInt = 0; - setFocusPolicy( TabFocus ); + setFocusPolicy( TQ_TabFocus ); initTicks(); } @@ -391,7 +391,7 @@ void KPoti::setColor( const TQColor &c ) { d->potiColor = c; d->potiDirty = true; - repaint(); + tqrepaint(); } @@ -407,8 +407,8 @@ void KPoti::paintPoti( TQPainter * p ) p2.translate( db.rect().center().x(), db.rect().center().y() ); p2.rotate( potiPos * 180.0 / PI ); 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 ); + TQBrush buttonbrush( tqcolorGroup().button() ); + qDrawShadePanel( &p2, pointer, tqcolorGroup(), true, 1, &buttonbrush ); p2.end(); p->drawPixmap( d->potiRect, db ); @@ -439,7 +439,7 @@ void KPoti::reallyMovePoti( float newPos ) void KPoti::drawContents( TQPainter * p ) { TQPixmap doublebuffer( contentsRect().size() ); - doublebuffer.fill( colorGroup().background() ); + doublebuffer.fill( tqcolorGroup().background() ); TQPainter dbp( &doublebuffer ); if( m_bLabel ) { @@ -454,10 +454,10 @@ void KPoti::drawContents( TQPainter * p ) if( ticks ) drawTicks( &dbp, buttonRadius, tickLength, interval ); - dbp.drawPixmap( d->buttonRect, d->bgPixmap( colorGroup() ) ); + dbp.drawPixmap( d->buttonRect, d->bgPixmap( tqcolorGroup() ) ); if( hasFocus() ) - style().drawPrimitive( TQStyle::PE_FocusRect, &dbp, d->buttonRect, colorGroup() ); + tqstyle().tqdrawPrimitive( TQStyle::PE_FocusRect, &dbp, d->buttonRect, tqcolorGroup() ); paintPoti( &dbp ); dbp.end(); @@ -473,13 +473,13 @@ void KPoti::mousePressEvent( TQMouseEvent *e ) { resetState(); - if ( e->button() == MidButton ) { + if ( e->button() == Qt::MidButton ) { double pos = atan2( double(e->pos().x()-d->center.x()), double(- e->pos().y() + d->center.y()) ); movePoti( pos ); return; } - if ( e->button() != LeftButton ) + if ( e->button() != Qt::LeftButton ) return; @@ -512,13 +512,13 @@ void KPoti::mousePressEvent( TQMouseEvent *e ) void KPoti::mouseMoveEvent( TQMouseEvent *e ) { - if ( (e->state() & MidButton) ) { // middle button wins + if ( (e->state() & Qt::MidButton) ) { // middle button wins double pos = atan2( double(e->pos().x()-d->center.x()), double(- e->pos().y()+d->center.y()) ); movePoti( pos ); return; } - if ( !(e->state() & LeftButton) ) + if ( !(e->state() & Qt::LeftButton) ) return; // left mouse button is up if ( state != Dragging ) return; @@ -534,7 +534,7 @@ void KPoti::mouseMoveEvent( TQMouseEvent *e ) void KPoti::mouseReleaseEvent( TQMouseEvent *e ) { - if ( !(e->button() & LeftButton) ) + if ( !(e->button() & Qt::LeftButton) ) return; resetState(); } @@ -567,7 +567,7 @@ void KPoti::enterEvent( TQEvent * ) void KPoti::movePoti( float pos ) { - float newPos = QMIN( maxAngle, QMAX( -maxAngle, pos ) ); + float newPos = TQMIN( maxAngle, TQMAX( -maxAngle, pos ) ); int newVal = valueFromPosition( newPos ); if ( potiVal != newVal ) { potiVal = newVal; @@ -710,7 +710,7 @@ void KPoti::repeatTimeout() void KPoti::drawTicks( TQPainter *p, double dist, double w, int i ) const { - p->setPen( colorGroup().foreground() ); + p->setPen( tqcolorGroup().foreground() ); double angle,s,c; double x, y; for (int v=0; v<=i; v++) @@ -765,7 +765,7 @@ void KPoti::setTickmarks( bool s ) void KPoti::setTickInterval( int i ) { - tickInt = QMAX( 0, i ); + tickInt = TQMAX( 0, i ); update(); } diff --git a/arts/gui/kde/kpoti.h b/arts/gui/kde/kpoti.h index 2994dd1e..80e32add 100644 --- a/arts/gui/kde/kpoti.h +++ b/arts/gui/kde/kpoti.h @@ -25,17 +25,18 @@ class TQTimer; -struct QPotiData; +struct TQPotiData; -class KPoti : public TQFrame, public QRangeControl +class KPoti : public TQFrame, public TQRangeControl { Q_OBJECT + TQ_OBJECT public: - KPoti( TQWidget *parent=0, const char *name=0 ); + KPoti( TQWidget *tqparent=0, const char *name=0 ); KPoti( int minValue, int maxValue, int step, int value, - TQWidget *parent=0, const char *name=0 ); + TQWidget *tqparent=0, const char *name=0 ); ~KPoti(); @@ -52,8 +53,8 @@ public: int tickInterval() const { return tickInt; } virtual TQSizePolicy sizePolicy() const; - virtual TQSize sizeHint() const; - virtual TQSize minimumSizeHint() const; + virtual TQSize tqsizeHint() const; + virtual TQSize tqminimumSizeHint() const; TQString text() const; public slots: @@ -108,7 +109,7 @@ private: int potiRadius() const; void initTicks(); - QTimer *timer; + TQTimer *timer; float potiPos; int potiVal; int clickOffset; diff --git a/arts/gui/kde/kpoti_impl.h b/arts/gui/kde/kpoti_impl.h index 0502cdc8..92d7a101 100644 --- a/arts/gui/kde/kpoti_impl.h +++ b/arts/gui/kde/kpoti_impl.h @@ -36,6 +36,7 @@ class KPoti_impl; class PotiIntMapper :public TQObject { Q_OBJECT + TQ_OBJECT KPoti_impl *impl; public: PotiIntMapper(KPoti_impl *impl, KPoti *kp); diff --git a/arts/gui/kde/kspinbox_impl.h b/arts/gui/kde/kspinbox_impl.h index d200c6f3..714da93f 100644 --- a/arts/gui/kde/kspinbox_impl.h +++ b/arts/gui/kde/kspinbox_impl.h @@ -35,6 +35,7 @@ namespace Arts { class KSpinBox_impl; class SpinBoxIntMapper :public TQObject { Q_OBJECT + TQ_OBJECT KSpinBox_impl *impl; public: SpinBoxIntMapper(KSpinBox_impl *impl, TQSpinBox *sp); @@ -54,7 +55,7 @@ protected: public: KSpinBox_impl( TQSpinBox * w = 0 ); - void constructor( Widget p ) { parent( p ); } + void constructor( Widget p ) { tqparent( p ); } std::string caption(); void caption(const std::string& newCaption); diff --git a/arts/gui/kde/ktickmarks_impl.cpp b/arts/gui/kde/ktickmarks_impl.cpp index 1a95c2a6..4988ad7b 100644 --- a/arts/gui/kde/ktickmarks_impl.cpp +++ b/arts/gui/kde/ktickmarks_impl.cpp @@ -75,8 +75,8 @@ void KTickmarks_Widget::drawContents( TQPainter* p ) { int _minsize; // Shorcuts int w,h; - TQColor colornormal = colorGroup().foreground(); - TQColor colordiff = colorGroup().buttonText(); + TQColor colornormal = tqcolorGroup().foreground(); + TQColor colordiff = tqcolorGroup().buttonText(); if ( _dir == Arts::BottomToTop || _dir == Arts::TopToBottom ) { p->translate( contentsRect().left(), contentsRect().bottom() ); @@ -111,7 +111,7 @@ void KTickmarks_Widget::drawContents( TQPainter* 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, TQString::number( i ) ); + TQt::AlignRight|TQt::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( TQPainter* 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, TQString::number( i ) ); + TQt::AlignRight|TQt::AlignTop, TQString::number( i ) ); if ( right ) p->drawLine( w-6, h, w, h ); } } else { @@ -157,7 +157,7 @@ void KTickmarks_Widget::drawContents( TQPainter* 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, TQString::number( i ) ); + TQt::AlignRight|TQt::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( TQPainter* 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, TQString::number( i ) ); + TQt::AlignRight|TQt::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 1d0006a1..a54baf5a 100644 --- a/arts/gui/kde/ktickmarks_impl.h +++ b/arts/gui/kde/ktickmarks_impl.h @@ -61,6 +61,7 @@ private: class KTickmarks_Widget : public TQFrame, public dB2VolCalc { Q_OBJECT + TQ_OBJECT private: KTickmarks_impl* _impl; public: diff --git a/arts/gui/kde/kvolumefader_impl.cpp b/arts/gui/kde/kvolumefader_impl.cpp index 1c32f23d..fca3466e 100644 --- a/arts/gui/kde/kvolumefader_impl.cpp +++ b/arts/gui/kde/kvolumefader_impl.cpp @@ -121,7 +121,7 @@ KVolumeFader_Widget::KVolumeFader_Widget( TQWidget* p, const char* n ) , _value( -1 ) , _dir( Arts::BottomToTop ) , _menu( new KPopupMenu( this ) ) - , _aExactValue( new KAction( i18n( "Set Exact Value..." ), KShortcut(), this, TQT_SLOT( exactValue() ), this ) ) + , _aExactValue( new KAction( i18n( "Set Exact Value..." ), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( exactValue() ), TQT_TQOBJECT(this) ) ) { //kdDebug() << k_funcinfo << endl; setMinimumSize( 10,10 ); @@ -159,10 +159,10 @@ void KVolumeFader_Widget::drawContents( TQPainter* p ){ if ( _dir==Arts::BottomToTop ) h = contentsRect().height() * ( 1 - _value ); else h = contentsRect().height() * _value; for ( int i=int( h ); isetPen( interpolate( colorGroup().light(), colorGroup().highlight(), float( i )/contentsRect().height() ) ); + p->setPen( interpolate( tqcolorGroup().light(), tqcolorGroup().highlight(), float( i )/contentsRect().height() ) ); p->drawLine( contentsRect().left(), this->frameWidth() + i, contentsRect().right(), this->frameWidth() + i ); } - p->setPen( colorGroup().dark() ); + p->setPen( tqcolorGroup().dark() ); p->drawLine( contentsRect().left(), this->frameWidth() + int( h ), contentsRect().right(), this->frameWidth() + int( h ) ); } else { float w; @@ -170,10 +170,10 @@ void KVolumeFader_Widget::drawContents( TQPainter* p ){ if ( _dir==Arts::LeftToRight ) w = - contentsRect().width() * ( 1 - _value ); else w = - contentsRect().width() * _value; for ( int i=int( w ); i>=-contentsRect().width(); i-- ) { - p->setPen( interpolate( colorGroup().light(), colorGroup().highlight(), float( -i )/contentsRect().width() ) ); + p->setPen( interpolate( tqcolorGroup().light(), tqcolorGroup().highlight(), float( -i )/contentsRect().width() ) ); p->drawLine( this->frameWidth() + i, contentsRect().top(), this->frameWidth() + i, contentsRect().bottom() ); } - p->setPen( colorGroup().dark() ); + p->setPen( tqcolorGroup().dark() ); p->drawLine( this->frameWidth() + int( w ), contentsRect().top(), this->frameWidth() + int( w ), contentsRect().bottom() ); } } diff --git a/arts/gui/kde/kvolumefader_impl.h b/arts/gui/kde/kvolumefader_impl.h index c2db6a0b..354c483a 100644 --- a/arts/gui/kde/kvolumefader_impl.h +++ b/arts/gui/kde/kvolumefader_impl.h @@ -69,6 +69,7 @@ class KAction; class KVolumeFader_Widget : public TQFrame { Q_OBJECT + TQ_OBJECT private: KVolumeFader_impl* _impl; bool _inupdate; diff --git a/arts/gui/kde/kwidget_impl.cpp b/arts/gui/kde/kwidget_impl.cpp index ede8ad38..b899f0cd 100644 --- a/arts/gui/kde/kwidget_impl.cpp +++ b/arts/gui/kde/kwidget_impl.cpp @@ -34,7 +34,7 @@ KWidget_impl::KWidget_impl( TQWidget * widget ) _widgetID = KWidgetRepo::the()->add( this, _qwidget ); /* - * KWidgetGuard will protect us against deleting the widget if Qt already + * KWidgetGuard will protect us against deleting the widget if TQt already * has done so (for instance if our widget was inside a panel, and * the panel got deleted, our widget will be gone, too) */ @@ -65,24 +65,24 @@ long KWidget_impl::widgetID() return _widgetID; } -Widget KWidget_impl::parent() +Widget KWidget_impl::tqparent() { return KWidgetRepo::the()->lookupWidget(_parentID); } -void KWidget_impl::parent(Arts::Widget newParent) +void KWidget_impl::tqparent(Arts::Widget newParent) { if(!newParent.isNull()) { _parentID = newParent.widgetID(); - TQWidget *qparent; - qparent = KWidgetRepo::the()->lookupQWidget(newParent.widgetID()); - if( qparent != 0 ) + TQWidget *qtqparent; + qtqparent = KWidgetRepo::the()->lookupTQWidget(newParent.widgetID()); + if( qtqparent != 0 ) { TQPoint pos(x(),y()); bool showIt = visible(); - _qwidget->reparent(qparent, pos, showIt); + _qwidget->reparent(qtqparent, pos, showIt); } } else @@ -143,26 +143,26 @@ void KWidget_impl::visible(bool newVisible) SizePolicy KWidget_impl::hSizePolicy() { - return ( SizePolicy )_qwidget->sizePolicy().horData(); + return ( SizePolicy )_qwidget->tqsizePolicy().horData(); } void KWidget_impl::hSizePolicy( SizePolicy p ) { - TQSizePolicy sp = _qwidget->sizePolicy(); + TQSizePolicy sp = _qwidget->tqsizePolicy(); sp.setHorData( ( TQSizePolicy::SizeType )p ); - _qwidget->setSizePolicy( sp ); + _qwidget->tqsetSizePolicy( sp ); } SizePolicy KWidget_impl::vSizePolicy() { - return ( SizePolicy )_qwidget->sizePolicy().verData(); + return ( SizePolicy )_qwidget->tqsizePolicy().verData(); } void KWidget_impl::vSizePolicy( SizePolicy p ) { - TQSizePolicy sp = _qwidget->sizePolicy(); + TQSizePolicy sp = _qwidget->tqsizePolicy(); sp.setVerData( ( TQSizePolicy::SizeType )p ); - _qwidget->setSizePolicy( sp ); + _qwidget->tqsetSizePolicy( sp ); } void KWidget_impl::show() diff --git a/arts/gui/kde/kwidget_impl.h b/arts/gui/kde/kwidget_impl.h index 292f8cc8..40d7216c 100644 --- a/arts/gui/kde/kwidget_impl.h +++ b/arts/gui/kde/kwidget_impl.h @@ -43,8 +43,8 @@ public: ~KWidget_impl(); long widgetID(); - Widget parent(); - void parent(Arts::Widget); + Widget tqparent(); + void tqparent(Arts::Widget); long x(); void x(long newX); long y(); @@ -70,6 +70,7 @@ public: class KWidgetGuard : public TQObject { Q_OBJECT + TQ_OBJECT protected: KWidget_impl *impl; diff --git a/arts/gui/kde/kwidgetrepo.cpp b/arts/gui/kde/kwidgetrepo.cpp index 120f9cc5..9c7a99de 100644 --- a/arts/gui/kde/kwidgetrepo.cpp +++ b/arts/gui/kde/kwidgetrepo.cpp @@ -71,7 +71,7 @@ long KWidgetRepo::add(KWidget_impl *widget, TQWidget *qwidget) return ID; } -TQWidget *KWidgetRepo::lookupQWidget(long ID) +TQWidget *KWidgetRepo::lookupTQWidget(long ID) { return qwidgets[ID]; } diff --git a/arts/gui/kde/kwidgetrepo.h b/arts/gui/kde/kwidgetrepo.h index 1bcb5870..bfc9206d 100644 --- a/arts/gui/kde/kwidgetrepo.h +++ b/arts/gui/kde/kwidgetrepo.h @@ -46,7 +46,7 @@ public: long add(Arts::KWidget_impl *widget, TQWidget *qwidget); Arts::Widget lookupWidget(long ID); - TQWidget *lookupQWidget(long ID); + TQWidget *lookupTQWidget(long ID); void remove(long ID); static KWidgetRepo *the(); diff --git a/arts/midi/Makefile.am b/arts/midi/Makefile.am index b5719649..b7d655a1 100644 --- a/arts/midi/Makefile.am +++ b/arts/midi/Makefile.am @@ -9,12 +9,12 @@ bin_PROGRAMS = midisend noinst_PROGRAMS = midisynctest midisend_SOURCES = midisend.cc midimsg.c -midisend_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIBPTHREAD) +midisend_LDFLAGS = $(all_libraries) $(LIB_QT) $(KDE_RPATH) $(LIBPTHREAD) midisend_LDADD = libartsmidi_idl.la midisend_COMPILE_FIRST = artsmidi.h midisynctest_SOURCES = midisynctest.cc -midisynctest_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIBPTHREAD) +midisynctest_LDFLAGS = $(all_libraries) $(LIB_QT) $(KDE_RPATH) $(LIBPTHREAD) midisynctest_LDADD = libartsmidi.la -lsoundserver_idl midisynctest_COMPILE_FIRST = artsmidi.h diff --git a/arts/midi/artsmidi.idl b/arts/midi/artsmidi.idl index 70157d95..82e6e9e4 100644 --- a/arts/midi/artsmidi.idl +++ b/arts/midi/artsmidi.idl @@ -54,7 +54,7 @@ struct TimeStamp { /** * different status of a midi command */ -enum MidiCommandStatus { +enum MidiCommandtqStatus { // Masks: mcsCommandMask = 0xf0, mcsChannelMask = 0x0f, diff --git a/arts/midi/audiosync_impl.cc b/arts/midi/audiosync_impl.cc index 20f089df..a75992c6 100644 --- a/arts/midi/audiosync_impl.cc +++ b/arts/midi/audiosync_impl.cc @@ -188,7 +188,7 @@ void AudioSync_impl::synchronizeTo(const TimeStamp& time) #endif } -AudioSync_impl *AudioSync_impl::find(AudioSync audioSync) +AudioSync_impl *AudioSync_impl::tqfind(AudioSync audioSync) { list::iterator i; diff --git a/arts/midi/audiosync_impl.h b/arts/midi/audiosync_impl.h index 302c93cb..dde1aed0 100644 --- a/arts/midi/audiosync_impl.h +++ b/arts/midi/audiosync_impl.h @@ -67,7 +67,7 @@ public: void updateTime(); // interface to MidiSyncGroup - static AudioSync_impl *find(AudioSync audioSync); + static AudioSync_impl *tqfind(AudioSync audioSync); void synchronizeTo(const TimeStamp& time); void setSyncGroup(MidiSyncGroup_impl *syncGroup); diff --git a/arts/midi/midisyncgroup_impl.cc b/arts/midi/midisyncgroup_impl.cc index 5d5305dd..f446899f 100644 --- a/arts/midi/midisyncgroup_impl.cc +++ b/arts/midi/midisyncgroup_impl.cc @@ -68,7 +68,7 @@ void MidiSyncGroup_impl::removeClient(MidiClient client) void MidiSyncGroup_impl::addAudioSync(AudioSync audioSync) { - AudioSync_impl *impl = AudioSync_impl::find(audioSync); + AudioSync_impl *impl = AudioSync_impl::tqfind(audioSync); impl->setSyncGroup(this); audioSyncs.push_back(impl); @@ -77,7 +77,7 @@ void MidiSyncGroup_impl::addAudioSync(AudioSync audioSync) void MidiSyncGroup_impl::removeAudioSync(AudioSync audioSync) { - AudioSync_impl *impl = AudioSync_impl::find(audioSync); + AudioSync_impl *impl = AudioSync_impl::tqfind(audioSync); impl->setSyncGroup(0); audioSyncs.remove(impl); } diff --git a/arts/modules/README.environments b/arts/modules/README.environments index 0ac64df5..5dc6c66e 100644 --- a/arts/modules/README.environments +++ b/arts/modules/README.environments @@ -155,7 +155,7 @@ to tell the Item in which environment it lives. It also uses setContainer( Container::null()) once the Item gets removed. Which container the Item is in can be seen in the - readonly attribute Container parent; + readonly attribute Container tqparent; Upon serialization, the container uses diff --git a/arts/modules/common/artsmodulescommon.idl b/arts/modules/common/artsmodulescommon.idl index 10ccd218..7f657568 100644 --- a/arts/modules/common/artsmodulescommon.idl +++ b/arts/modules/common/artsmodulescommon.idl @@ -72,7 +72,7 @@ module Environment { /** * the container the item lives in */ - readonly attribute Container parent; + readonly attribute Container tqparent; /** * called by the container to insert/remove item from/to the @@ -150,7 +150,7 @@ interface EffectRackItemGui { }; interface EffectRackSlot { - void constructor( Widget parent, Widget effect, EffectRackItemGui effectrackgui ); + void constructor( Widget tqparent, Widget effect, EffectRackItemGui effectrackgui ); /*writeonly*/ attribute boolean removeslot; /*writeonly*/ attribute boolean tomaster; }; diff --git a/arts/modules/common/effectrackslot_impl.cc b/arts/modules/common/effectrackslot_impl.cc index 8e7e48e8..359c40a3 100644 --- a/arts/modules/common/effectrackslot_impl.cc +++ b/arts/modules/common/effectrackslot_impl.cc @@ -42,23 +42,23 @@ class EffectRackSlot_impl : virtual public EffectRackSlot_skel { } - void constructor( Widget parent, Widget effect, EffectRackItemGui effectrackgui ) + void constructor( Widget tqparent, Widget effect, EffectRackItemGui effectrackgui ) { _effectrackgui = effectrackgui; - _hbox.parent( parent ); + _hbox.tqparent( tqparent ); _hbox.margin( 0 ); _hbox.spacing( 0 ); _hbox.framestyle( Sunken | Panel ); _hbox.linewidth( 1 ); _hbox.show(); - _buttonbox.parent( _hbox ); + _buttonbox.tqparent( _hbox ); _buttonbox.margin( 0 ); _buttonbox.spacing( 0 ); _buttonbox.show(); - _removeButton.parent( _buttonbox ); + _removeButton.tqparent( _buttonbox ); _removeButton.text( "x" ); _removeButton.hSizePolicy( spFixed ); _removeButton.width( 20 ); @@ -66,7 +66,7 @@ class EffectRackSlot_impl : virtual public EffectRackSlot_skel connect( _removeButton, "clicked_changed", self(), "removeslot" ); _removeButton.show(); - _masterButton.parent( _buttonbox ); + _masterButton.tqparent( _buttonbox ); _masterButton.text( "MM" ); _masterButton.toggle( true ); _masterButton.hSizePolicy( spFixed ); @@ -75,7 +75,7 @@ class EffectRackSlot_impl : virtual public EffectRackSlot_skel connect( _masterButton, "pressed_changed", self(), "tomaster" ); _masterButton.show(); - _frame.parent( _hbox ); + _frame.tqparent( _hbox ); _frame.margin( 5 ); _frame.spacing( 0 ); _frame.framestyle( Raised | Panel ); @@ -85,10 +85,10 @@ class EffectRackSlot_impl : virtual public EffectRackSlot_skel _frame.show(); _effect = effect; - _effect.parent( _frame ); + _effect.tqparent( _frame ); _effect.show(); - _spacer.parent( _frame ); + _spacer.tqparent( _frame ); _spacer.hSizePolicy( spExpanding ); _spacer.show(); } diff --git a/arts/modules/common/env_effectrackitem_impl.cc b/arts/modules/common/env_effectrackitem_impl.cc index 50fb116e..ac76db70 100644 --- a/arts/modules/common/env_effectrackitem_impl.cc +++ b/arts/modules/common/env_effectrackitem_impl.cc @@ -226,7 +226,7 @@ public: name = LineEdit(); name.caption("name"); name.text(_effectRack.name()); - name.parent(hbox); + name.tqparent(hbox); connect(name,"text_changed", _effectRack, "name"); #endif @@ -248,7 +248,7 @@ public: typebox = ComboBox(); typebox.choices(choices); typebox.value(_type); - typebox.parent(hbox); + typebox.tqparent(hbox); connect(typebox,"value_changed", self(), "type"); addbutton = Button( "add", hbox ); @@ -260,7 +260,7 @@ public: effect_vbox.show(); Frame spacer; - spacer.parent( effect_vbox ); + spacer.tqparent( effect_vbox ); spacer.vSizePolicy( spExpanding ); spacer.show(); effect_vbox._addChild( spacer, "spacer" ); diff --git a/arts/modules/common/env_instrumentitem_impl.cc b/arts/modules/common/env_instrumentitem_impl.cc index 17959ca0..0b979b6c 100644 --- a/arts/modules/common/env_instrumentitem_impl.cc +++ b/arts/modules/common/env_instrumentitem_impl.cc @@ -98,7 +98,7 @@ public: LineEdit edit; edit.x(20); edit.y(10); edit.width(120); edit.height(40); edit.text(instrument.filename()); - edit.parent(panel); + edit.tqparent(panel); edit.show(); connect(edit,"text_changed", instrument, "filename"); panel._addChild(edit,"editWidget"); diff --git a/arts/modules/common/env_item_impl.cc b/arts/modules/common/env_item_impl.cc index 6bc960d8..da3a6941 100644 --- a/arts/modules/common/env_item_impl.cc +++ b/arts/modules/common/env_item_impl.cc @@ -16,7 +16,7 @@ Environment::Item_impl::~Item_impl() arts_assert(_active == false); } -Environment::Container Environment::Item_impl::parent() +Environment::Container Environment::Item_impl::tqparent() { Container p = _parent; return p; diff --git a/arts/modules/common/env_item_impl.h b/arts/modules/common/env_item_impl.h index dbdca1f9..4fcd1fc8 100644 --- a/arts/modules/common/env_item_impl.h +++ b/arts/modules/common/env_item_impl.h @@ -18,7 +18,7 @@ public: ~Item_impl(); bool active(); - Container parent(); + Container tqparent(); void setContainer(Container container); }; } diff --git a/arts/modules/common/env_mixeritem_impl.cc b/arts/modules/common/env_mixeritem_impl.cc index 0f4db5e8..db4bc18c 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(TQString::fromUtf8(_name.c_str())).utf8().data()); + amClient.title(i18n("Mixer (\"%1\")").tqarg(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)); @@ -165,7 +165,7 @@ public: Widget w = guiFactory.createGui((*channels)[i]); if(!w.isNull()) { - w.parent(channel_hbox); + w.tqparent(channel_hbox); w.show(); channelWidgets.push_back(w); } @@ -183,21 +183,21 @@ public: if(!_item.isNull() && !vbox.isNull()) { hbox = HBox(); - hbox.parent(vbox); + hbox.tqparent(vbox); hbox.show(); spinbox = SpinBox(); spinbox.caption(i18n("channels").utf8().data()); spinbox.min(0); spinbox.max(32); spinbox.value(_item.channelCount()); - spinbox.parent(hbox); + spinbox.tqparent(hbox); spinbox.show(); connect(spinbox,"value_changed", _item, "channelCount"); name = LineEdit(); name.caption(i18n("name").utf8().data()); name.text(_item.name()); - name.parent(hbox); + name.tqparent(hbox); name.show(); connect(name,"text_changed", _item, "name"); @@ -212,12 +212,12 @@ public: delete queryResults; typebox.choices(choices); typebox.value(_type); - typebox.parent(hbox); + typebox.tqparent(hbox); typebox.show(); connect(typebox,"value_changed", _item, "type"); channel_hbox = HBox(); - channel_hbox.parent(vbox); + channel_hbox.tqparent(vbox); channel_hbox.show(); channelWidgets.clear(); @@ -320,14 +320,14 @@ public: HBox hbox; hbox.show(); hbox.width(330); hbox.height(50); - hbox.parent(vbox); + hbox.tqparent(vbox); vbox._addChild(hbox,"hbox"); SpinBox spinbox; spinbox.caption(i18n("channels").utf8().data()); spinbox.min(0); spinbox.max(32); spinbox.value(mixerItem.channelCount()); - spinbox.parent(hbox); + spinbox.tqparent(hbox); spinbox.show(); connect(spinbox,"value_changed", mixerItem, "channelCount"); hbox._addChild(spinbox,"channelsWidget"); @@ -335,7 +335,7 @@ public: LineEdit name; name.caption(i18n("name").utf8().data()); name.caption(mixerItem.name()); - name.parent(hbox); + name.tqparent(hbox); name.show(); connect(name,"caption_changed", mixerItem, "name"); hbox._addChild(name,"nameWidget"); @@ -343,7 +343,7 @@ public: HBox channel_hbox; channel_hbox.show(); channel_hbox.width(330); hbox.height(450); - channel_hbox.parent(vbox); + channel_hbox.tqparent(vbox); vbox._addChild(channel_hbox,"channel_hbox"); GenericGuiFactory gf; @@ -353,7 +353,7 @@ public: for(i = channels->begin(); i != channels->end(); i++) { Widget w = gf.createGui(*i); - w.parent(channel_hbox); + w.tqparent(channel_hbox); channel_hbox._addChild(w,"channel"); } #endif diff --git a/arts/modules/effects/fivebandmonocomplexeq_impl.cc b/arts/modules/effects/fivebandmonocomplexeq_impl.cc index 56ca6037..0891458c 100644 --- a/arts/modules/effects/fivebandmonocomplexeq_impl.cc +++ b/arts/modules/effects/fivebandmonocomplexeq_impl.cc @@ -110,7 +110,7 @@ public: Arts::LayoutBox hbox; hbox.direction( Arts::LeftToRight ); - hbox.layoutmargin( 5 ); hbox.spacing( 5 ); + hbox.tqlayoutmargin( 5 ); hbox.spacing( 5 ); Arts::Poti lowgain; lowgain.caption( i18n( "Low Gain" ).utf8().data() ); lowgain.min( -24 ); lowgain.max( 24 ); @@ -123,11 +123,11 @@ public: Arts::Poti lowfreq; lowfreq.color( "grey" ); lowfreq.caption( i18n( "Low Freq" ).utf8().data() ); lowfreq.min( 20 ); lowfreq.max( 1000 ); lowfreq.value( ch.lowfreq() ); connect( lowfreq, "value_changed", ch, "lowfreq" ); - lowfreq.parent( lowbox ); lowbox._addChild( lowfreq , "" ); + lowfreq.tqparent( lowbox ); lowbox._addChild( lowfreq , "" ); Arts::Poti lowq; lowq.color( "grey" ); lowq.caption( i18n( "Low Q" ).utf8().data() ); lowq.min( 0.01 ); lowq.max( 10 ); lowq.value( ch.lowq() ); connect( lowq, "value_changed", ch, "lowq" ); - lowq.parent( lowbox ); lowbox._addChild( lowq , "" ); + lowq.tqparent( lowbox ); lowbox._addChild( lowq , "" ); Arts::Poti mid1gain; mid1gain.caption( i18n( "Mid1 Gain" ).utf8().data() ); mid1gain.min( -24 ); mid1gain.max( 24 ); @@ -140,11 +140,11 @@ public: Arts::Poti mid1freq; mid1freq.color( "grey" ); mid1freq.caption( i18n( "Mid1 Freq" ).utf8().data() ); mid1freq.min( 20 ); mid1freq.max( 5000 ); mid1freq.value( ch.mid1freq() ); connect( mid1freq, "value_changed", ch, "mid1freq" ); - mid1freq.parent( mid1box ); mid1box._addChild( mid1freq , "" ); + mid1freq.tqparent( mid1box ); mid1box._addChild( mid1freq , "" ); Arts::Poti mid1q; mid1q.color( "grey" ); mid1q.caption( i18n( "Mid1 Q" ).utf8().data() ); mid1q.min( 0.01 ); mid1q.max( 10 ); mid1q.value( ch.mid1q() ); connect( mid1q, "value_changed", ch, "mid1q" ); - mid1q.parent( mid1box ); mid1box._addChild( mid1q , "" ); + mid1q.tqparent( mid1box ); mid1box._addChild( mid1q , "" ); Arts::Poti mid2gain; mid2gain.caption( i18n( "Mid2 Gain" ).utf8().data() ); mid2gain.min( -24 ); mid2gain.max( 24 ); @@ -157,11 +157,11 @@ public: Arts::Poti mid2freq; mid2freq.color( "grey" ); mid2freq.caption( i18n( "Mid2 Freq" ).utf8().data() ); mid2freq.min( 20 ); mid2freq.max( 10000 ); mid2freq.value( ch.mid2freq() ); connect( mid2freq, "value_changed", ch, "mid2freq" ); - mid2freq.parent( mid2box ); mid2box._addChild( mid2freq , "" ); + mid2freq.tqparent( mid2box ); mid2box._addChild( mid2freq , "" ); Arts::Poti mid2q; mid2q.color( "grey" ); mid2q.caption( i18n( "Mid2 Q" ).utf8().data() ); mid2q.min( 0.01 ); mid2q.max( 10 ); mid2q.value( ch.mid2q() ); connect( mid2q, "value_changed", ch, "mid2q" ); - mid2q.parent( mid2box ); mid2box._addChild( mid2q , "" ); + mid2q.tqparent( mid2box ); mid2box._addChild( mid2q , "" ); Arts::Poti mid3gain; mid3gain.caption( i18n( "Mid3 Gain" ).utf8().data() ); mid3gain.min( -24 ); mid3gain.max( 24 ); @@ -174,11 +174,11 @@ public: Arts::Poti mid3freq; mid3freq.color( "grey" ); mid3freq.caption( i18n( "Mid3 Freq" ).utf8().data() ); mid3freq.min( 1000 ); mid3freq.max( 10000 ); mid3freq.value( ch.mid3freq() ); connect( mid3freq, "value_changed", ch, "mid3freq" ); - mid3freq.parent( mid3box ); mid3box._addChild( mid3freq , "" ); + mid3freq.tqparent( mid3box ); mid3box._addChild( mid3freq , "" ); Arts::Poti mid3q; mid3q.color( "grey" ); mid3q.caption( i18n( "Mid3 Q" ).utf8().data() ); mid3q.min( 0.01 ); mid3q.max( 10 ); mid3q.value( ch.mid3q() ); connect( mid3q, "value_changed", ch, "mid3q" ); - mid3q.parent( mid3box ); mid3box._addChild( mid3q , "" ); + mid3q.tqparent( mid3box ); mid3box._addChild( mid3q , "" ); Arts::Poti highgain; highgain.caption( i18n( "High Gain" ).utf8().data() ); highgain.min( -24 ); highgain.max( 24 ); @@ -191,11 +191,11 @@ public: Arts::Poti highfreq; highfreq.color( "grey" ); highfreq.caption( i18n( "High Freq" ).utf8().data() ); highfreq.min( 5000 ); highfreq.max( 16000 ); highfreq.value( ch.highfreq() ); connect( highfreq, "value_changed", ch, "highfreq" ); - highfreq.parent( highbox ); highbox._addChild( highfreq , "" ); + highfreq.tqparent( highbox ); highbox._addChild( highfreq , "" ); Arts::Poti highq; highq.color( "grey" ); highq.caption( i18n( "High Q" ).utf8().data() ); highq.min( 0.01 ); highq.max( 10 ); highq.value( ch.highq() ); connect( highq, "value_changed", ch, "highq" ); - highq.parent( highbox ); highbox._addChild( highq , "" ); + highq.tqparent( highbox ); highbox._addChild( highq , "" ); hbox.addStretch( 100 ); diff --git a/arts/modules/effects/freeverb/Makefile.am b/arts/modules/effects/freeverb/Makefile.am index 42d70f20..bb2d6fac 100644 --- a/arts/modules/effects/freeverb/Makefile.am +++ b/arts/modules/effects/freeverb/Makefile.am @@ -1,3 +1,11 @@ +INCLUDES = \ + -I$(top_builddir)/arts/modules \ + -I$(top_srcdir)/arts/modules \ + -I$(top_builddir)/arts/gui/common \ + -I$(top_builddir)/arts/midi \ + -I$(top_builddir)/arts/runtime \ + -I$(arts_includes) \ + $(ARTSC_INCLUDE) $(all_includes) noinst_LTLIBRARIES = libfreeverb.la diff --git a/arts/modules/effects/freeverb/revmodel.cpp b/arts/modules/effects/freeverb/revmodel.cpp index 23a766cc..feacaf64 100644 --- a/arts/modules/effects/freeverb/revmodel.cpp +++ b/arts/modules/effects/freeverb/revmodel.cpp @@ -73,7 +73,7 @@ void revmodel::mute() } } -void revmodel::processreplace(float *inputL, float *inputR, float *outputL, float *outputR, long numsamples, int skip) +void revmodel::processtqreplace(float *inputL, float *inputR, float *outputL, float *outputR, long numsamples, int skip) { float outL,outR,input; diff --git a/arts/modules/effects/freeverb/revmodel.hpp b/arts/modules/effects/freeverb/revmodel.hpp index ca6c89a0..8fb37cd6 100644 --- a/arts/modules/effects/freeverb/revmodel.hpp +++ b/arts/modules/effects/freeverb/revmodel.hpp @@ -17,7 +17,7 @@ public: revmodel(); void mute(); void processmix(float *inputL, float *inputR, float *outputL, float *outputR, long numsamples, int skip); - void processreplace(float *inputL, float *inputR, float *outputL, float *outputR, long numsamples, int skip); + void processtqreplace(float *inputL, float *inputR, float *outputL, float *outputR, long numsamples, int skip); void setroomsize(float value); float getroomsize(); void setdamp(float value); diff --git a/arts/modules/effects/freeverbguifactory_impl.cc b/arts/modules/effects/freeverbguifactory_impl.cc index 7af1f471..17878daa 100644 --- a/arts/modules/effects/freeverbguifactory_impl.cc +++ b/arts/modules/effects/freeverbguifactory_impl.cc @@ -58,7 +58,7 @@ Widget FreeverbGuiFactory_impl::createGui(Object object) roomsize.color("red"); roomsize.min(0); roomsize.max(1); roomsize.value(freeverb.roomsize()); roomsize.range(100); - roomsize.parent(hbox); + roomsize.tqparent(hbox); roomsize.show(); connect(roomsize,"value_changed", freeverb, "roomsize"); hbox._addChild(roomsize,"roomsizeWidget"); @@ -68,7 +68,7 @@ Widget FreeverbGuiFactory_impl::createGui(Object object) damp.color("red"); damp.min(0); damp.max(1); damp.value(freeverb.damp()); damp.range(100); - damp.parent(hbox); + damp.tqparent(hbox); damp.show(); connect(damp,"value_changed", freeverb, "damp"); hbox._addChild(damp,"dampWidget"); @@ -78,7 +78,7 @@ Widget FreeverbGuiFactory_impl::createGui(Object object) wet.color("red"); wet.min(0); wet.max(1); wet.value(freeverb.wet()); wet.range(100); - wet.parent(hbox); + wet.tqparent(hbox); wet.show(); connect(wet,"value_changed", freeverb, "wet"); hbox._addChild(wet,"wetWidget"); @@ -88,7 +88,7 @@ Widget FreeverbGuiFactory_impl::createGui(Object object) dry.color("red"); dry.min(0); dry.max(1); dry.value(freeverb.dry()); dry.range(100); - dry.parent(hbox); + dry.tqparent(hbox); dry.show(); connect(dry,"value_changed", freeverb, "dry"); hbox._addChild(dry,"dryWidget"); @@ -98,7 +98,7 @@ Widget FreeverbGuiFactory_impl::createGui(Object object) width.color("red"); width.min(0); width.max(1); width.value(freeverb.width()); width.range(100); - width.parent(hbox); + width.tqparent(hbox); width.show(); connect(width,"value_changed", freeverb, "width"); hbox._addChild(width,"widthWidget"); diff --git a/arts/modules/effects/kstereovolumecontrolgui_impl.cpp b/arts/modules/effects/kstereovolumecontrolgui_impl.cpp index b4db259a..f0fa3690 100644 --- a/arts/modules/effects/kstereovolumecontrolgui_impl.cpp +++ b/arts/modules/effects/kstereovolumecontrolgui_impl.cpp @@ -30,7 +30,7 @@ using namespace Arts; KStereoVolumeControlGui_impl::KStereoVolumeControlGui_impl( TQFrame* w ) : KLayoutBox_impl( w ? w : new TQFrame( 0 ) ) { //kdDebug()<<"KStereoVolumeControlGui_impl::KStereoVolumeControlGui_impl( TQFrame* "<addWidget( _label, -100 ); _label.bottom( Arts::East ); _label.text( "Volume" ); @@ -47,7 +47,7 @@ KStereoVolumeControlGui_impl::KStereoVolumeControlGui_impl( TQFrame* w ) : KLayo this->dbmax( 6 ); _left.framestyle( Arts::Raised|Arts::Panel ); _left.linewidth( 4 ); _right.framestyle( Arts::Raised|Arts::Panel ); _right.linewidth( 4 ); - this->layoutmargin( 1 ); this->linewidth( 1 ); this->framestyle( Arts::Panel|Arts::Raised ); + this->tqlayoutmargin( 1 ); this->linewidth( 1 ); this->framestyle( Arts::Panel|Arts::Raised ); } void KStereoVolumeControlGui_impl::constructor( Arts::StereoVolumeControl svc ) { diff --git a/arts/modules/effects/kstereovolumecontrolgui_impl.h b/arts/modules/effects/kstereovolumecontrolgui_impl.h index 8729232f..855c979c 100644 --- a/arts/modules/effects/kstereovolumecontrolgui_impl.h +++ b/arts/modules/effects/kstereovolumecontrolgui_impl.h @@ -81,11 +81,12 @@ private: class KStereoVolumeControlGui_EventMapper : public TQObject { Q_OBJECT + TQ_OBJECT public: TQTimer* _timer; Arts::KStereoVolumeControlGui_impl* _impl; public: - KStereoVolumeControlGui_EventMapper( Arts::KStereoVolumeControlGui_impl* impl, TQObject* parent, const char* name=0 ) : TQObject( parent,name ), _impl( impl ) { + KStereoVolumeControlGui_EventMapper( Arts::KStereoVolumeControlGui_impl* impl, TQObject* tqparent, const char* name=0 ) : TQObject( tqparent,name ), _impl( impl ) { _timer = new TQTimer( this ); connect( _timer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotTimerSignal() ) ); } diff --git a/arts/modules/effects/stereocompressorguifactory_impl.cc b/arts/modules/effects/stereocompressorguifactory_impl.cc index e5a985fc..d5209ebd 100644 --- a/arts/modules/effects/stereocompressorguifactory_impl.cc +++ b/arts/modules/effects/stereocompressorguifactory_impl.cc @@ -85,7 +85,7 @@ public: connect( bon, "pressed_changed", comp, "thru" ); LayoutBox hbox; - hbox.direction( LeftToRight ); hbox.layoutmargin( 5 ); hbox.spacing( 5 ); + hbox.direction( LeftToRight ); hbox.tqlayoutmargin( 5 ); hbox.spacing( 5 ); PopupBox timesbox; timesbox.name( "Timings" ); timesbox.direction( LeftToRight ); LayoutBox times; diff --git a/arts/modules/effects/synth_freeverb_impl.cc b/arts/modules/effects/synth_freeverb_impl.cc index a1f35d06..e6cb1b07 100644 --- a/arts/modules/effects/synth_freeverb_impl.cc +++ b/arts/modules/effects/synth_freeverb_impl.cc @@ -57,7 +57,7 @@ public: void calculateBlock(unsigned long samples) { - model->processreplace(inleft, inright, outleft, outright, samples,1); + model->processtqreplace(inleft, inright, outleft, outright, samples,1); // don't add the original signal - that's what the "dry" argument is for //for(unsigned long i = 0;i < samples; i++) //{ diff --git a/arts/modules/effects/synth_stereo_fir_equalizer_impl.cc b/arts/modules/effects/synth_stereo_fir_equalizer_impl.cc index ece106c2..86f7c1bb 100644 --- a/arts/modules/effects/synth_stereo_fir_equalizer_impl.cc +++ b/arts/modules/effects/synth_stereo_fir_equalizer_impl.cc @@ -186,7 +186,7 @@ Widget StereoFirEqualizerGuiFactory_impl::createGui(Object object) vbox.show(); Graph g; - g.parent(vbox); + g.tqparent(vbox); g.width(400); g.height(230); g.caption(i18n("a graph").utf8().data()); @@ -211,7 +211,7 @@ Widget StereoFirEqualizerGuiFactory_impl::createGui(Object object) spinbox.caption(i18n("channels").utf8().data()); spinbox.min(3); spinbox.max(255); spinbox.value(equalizer.taps()); - spinbox.parent(vbox); + spinbox.tqparent(vbox); spinbox.show(); connect(spinbox,"value_changed", equalizer, "taps"); vbox._addChild(spinbox,"spinbox"); diff --git a/arts/modules/effects/voiceremovalguifactory_impl.cc b/arts/modules/effects/voiceremovalguifactory_impl.cc index d4879b87..4a4011be 100644 --- a/arts/modules/effects/voiceremovalguifactory_impl.cc +++ b/arts/modules/effects/voiceremovalguifactory_impl.cc @@ -53,7 +53,7 @@ Widget VoiceRemovalGuiFactory_impl::createGui( Object object ) position.color( "grey" ); position.min( -1 ); position.max( 1 ); position.value( voiceremoval.position() ); position.range( 100 ); - position.parent( hbox ); + position.tqparent( hbox ); position.show(); connect( position, "value_changed", voiceremoval, "position" ); hbox._addChild( position, "positionWidget" ); @@ -64,7 +64,7 @@ Widget VoiceRemovalGuiFactory_impl::createGui( Object object ) freq.value( voiceremoval.frequency() ); freq.range( 400 ); freq.logarithmic( 2.0 ); - freq.parent( hbox ); + freq.tqparent( hbox ); freq.show(); connect( freq, "value_changed", voiceremoval, "frequency" ); hbox._addChild( freq, "freqWidget" ); diff --git a/arts/modules/synth/Makefile.am b/arts/modules/synth/Makefile.am index 3995f402..c9922aaa 100644 --- a/arts/modules/synth/Makefile.am +++ b/arts/modules/synth/Makefile.am @@ -31,10 +31,10 @@ libartsmodulessynth_la_COMPILE_FIRST = artsmodulessynth.h ../../midi/artsmidi.h libartsmodulessynth_la_LIBADD = \ $(top_builddir)/arts/runtime/libartsbuilder.la \ $(top_builddir)/arts/midi/libartsmidi_idl.la \ - -lartsflow -lartsflow_idl -lmcop + -lartsflow -lgsl -lartsflow_idl -lmcop #libartsmodulessynth_la_LIBADD = $(top_builddir)/arts/gui/common/libartsgui_idl.la $(top_builddir)/arts/midi/libartsmidi_idl.la -lartsflow -lartsflow_idl -lmcop $(LIBDL) $(LIB_KDEUI) $(LIB_KDECORE) -libartsmodulessynth_la_LDFLAGS = $(all_libraries) -L$(arts_libraries) -no-undefined +libartsmodulessynth_la_LDFLAGS = $(all_libraries) -L$(arts_libraries) -lartsflow -lgsl -no-undefined artsmodulessynth.cc artsmodulessynth.h artsmodulessynth.mcoptype artsmodulessynth.mcopclass: $(srcdir)/artsmodulessynth.idl $(MCOPIDL) $(MCOPIDL) -t $(MCOP_INCLUDES) $(srcdir)/artsmodulessynth.idl diff --git a/arts/modules/synth/c_filter_stuff.h b/arts/modules/synth/c_filter_stuff.h index edd7a4af..89e93de3 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_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 +#define C_FLOWOUTQT_METHOD 0 +#define C_RBTQT_METHOD 1 +#define C_SWAPROTQT_METHOD 2 +#define C_SWAPRWTQT_METHOD 3 +#define C_AIMROTQT_METHOD 4 +#define C_AIMRWTQT_METHOD 5 typedef struct { char *filename; diff --git a/arts/modules/synth/synth_cdelay_impl.cc b/arts/modules/synth/synth_cdelay_impl.cc index 28f4d12f..267daab8 100644 --- a/arts/modules/synth/synth_cdelay_impl.cc +++ b/arts/modules/synth/synth_cdelay_impl.cc @@ -43,14 +43,14 @@ class Synth_CDELAY_impl : virtual public Synth_CDELAY_skel, { protected: unsigned long _buffersize; - unsigned long _bitmask; + unsigned long _bittqmask; float *_buffer; // holds the data to be delayed (variable size) float _delaytime; unsigned int _readpos; unsigned int _writepos; public: - Synth_CDELAY_impl() : _buffersize( 0 ), _bitmask( 0 ), _buffer( 0 ), _delaytime( 0 ), _readpos( 0 ), _writepos( 0 ) + Synth_CDELAY_impl() : _buffersize( 0 ), _bittqmask( 0 ), _buffer( 0 ), _delaytime( 0 ), _readpos( 0 ), _writepos( 0 ) { } @@ -66,7 +66,7 @@ public: _delaytime = newTime; double n = ceil( log( double(_delaytime * samplingRateFloat )) / log( 2. ) ); unsigned long newbuffersize = (unsigned long)( pow( 2, n ) ); - unsigned long newbitmask = newbuffersize - 1; + unsigned long newbittqmask = newbuffersize - 1; if( newbuffersize != _buffersize ) { float *newbuffer = new float[newbuffersize]; @@ -74,24 +74,24 @@ public: for( unsigned long i = 0; i < _buffersize; i++ ) { newbuffer[i] = _buffer[_writepos]; _writepos++; - _writepos &= newbitmask; + _writepos &= newbittqmask; } for( unsigned long i = _buffersize; i < newbuffersize; i++ ) newbuffer[i] = 0; } else { _writepos -= newbuffersize; - _writepos &= newbitmask; + _writepos &= newbittqmask; for( unsigned long i = 0; i < newbuffersize; i++ ) { newbuffer[i] = _buffer[_writepos]; _writepos++; - _writepos &= newbitmask; + _writepos &= newbittqmask; } } _buffer = newbuffer; _buffersize = newbuffersize; - _bitmask = newbitmask; + _bittqmask = newbittqmask; } - _readpos = (unsigned long)rint( _writepos - _delaytime * samplingRateFloat ) & _bitmask; + _readpos = (unsigned long)rint( _writepos - _delaytime * samplingRateFloat ) & _bittqmask; time_changed( _delaytime ); } @@ -113,9 +113,9 @@ public: _buffer[_writepos] = invalue[i]; outvalue[i] = _buffer[_readpos]; _readpos++; - _readpos &= _bitmask; + _readpos &= _bittqmask; _writepos++; - _writepos &= _bitmask; + _writepos &= _bittqmask; } } }; diff --git a/arts/modules/synth/synth_delay_impl.cc b/arts/modules/synth/synth_delay_impl.cc index 92c23fd1..57285118 100644 --- a/arts/modules/synth/synth_delay_impl.cc +++ b/arts/modules/synth/synth_delay_impl.cc @@ -56,13 +56,13 @@ class Synth_DELAY_impl : virtual public Synth_DELAY_skel, { protected: unsigned long _buffersize; - unsigned long _bitmask; + unsigned long _bittqmask; float * _buffer; float _maxdelay; unsigned int _writepos; public: - Synth_DELAY_impl() : _buffersize( 0 ), _bitmask( 0 ), _buffer( 0 ), _maxdelay( 0 ), _writepos( 0 ) + Synth_DELAY_impl() : _buffersize( 0 ), _bittqmask( 0 ), _buffer( 0 ), _maxdelay( 0 ), _writepos( 0 ) { maxdelay( 1 ); // take a one second buffer if nothing else is specified } @@ -85,15 +85,15 @@ public: { double int_pos; double error = modf( time[i] * samplingRateFloat, &int_pos ); - unsigned long readpos1 = ( _writepos - (unsigned long)(int_pos) ) & _bitmask; - unsigned long readpos2 = ( readpos1 - 1 ) & _bitmask; // Shouldn't this be +1? (mkretz) + unsigned long readpos1 = ( _writepos - (unsigned long)(int_pos) ) & _bittqmask; + unsigned long readpos2 = ( readpos1 - 1 ) & _bittqmask; // Shouldn't this be +1? (mkretz) // No, it's right this way: // ( 1 - error ) needs to be multiplied with the second // sample; error with the first _buffer[_writepos] = invalue[i]; outvalue[i] = _buffer[readpos1] * ( 1 - error ) + _buffer[readpos2] * error; _writepos++; - _writepos &= _bitmask; + _writepos &= _bittqmask; } } @@ -106,7 +106,7 @@ public: _maxdelay = newmaxdelay; double n = ceil( log( double(_maxdelay * samplingRateFloat) ) / log( 2. ) ); unsigned long newbuffersize = (unsigned long)( pow( 2, n ) ); - unsigned long newbitmask = newbuffersize - 1; + unsigned long newbittqmask = newbuffersize - 1; if( newbuffersize != _buffersize ) { float *newbuffer = new float[newbuffersize]; @@ -114,22 +114,22 @@ public: for( unsigned long i = 0; i < _buffersize; i++ ) { newbuffer[i] = _buffer[_writepos]; _writepos++; - _writepos &= newbitmask; + _writepos &= newbittqmask; } for( unsigned long i = _buffersize; i < newbuffersize; i++ ) newbuffer[i] = 0; } else { _writepos -= newbuffersize; - _writepos &= newbitmask; + _writepos &= newbittqmask; for( unsigned long i = 0; i < newbuffersize; i++ ) { newbuffer[i] = _buffer[_writepos]; _writepos++; - _writepos &= newbitmask; + _writepos &= newbittqmask; } } _buffer = newbuffer; _buffersize = newbuffersize; - _bitmask = newbitmask; + _bittqmask = newbittqmask; } maxdelay_changed( _maxdelay ); } diff --git a/arts/runtime/artsbuilder.idl b/arts/runtime/artsbuilder.idl index 42ff393a..17332ee5 100644 --- a/arts/runtime/artsbuilder.idl +++ b/arts/runtime/artsbuilder.idl @@ -42,7 +42,7 @@ module Arts { * isMultiPort specifies if the port can take multiple incoming * connections or not. This is only relevant/allowed for input ports, * the output of all output ports may be connected to any amount of - * receivers. + * tqreceivers. * * Ports which can take multiple connections are handled differently * internally. (Also, artsbuilder needs to know whether to allow multi- @@ -76,11 +76,11 @@ module Arts { interface PortDesc { // internal: - void constructor(ModuleDesc parent, string name, PortType type); + void constructor(ModuleDesc tqparent, string name, PortType type); // ID is guaranteed to be unique in the structure the port belongs to readonly attribute long ID; - readonly attribute ModuleDesc parent; + readonly attribute ModuleDesc tqparent; // Name is guaranteed to be unique for each module (no two in/out- // ports with the same name allowed) @@ -123,11 +123,11 @@ module Arts { interface ModuleDesc { // internal - void constructor(StructureDesc parent, ModuleInfo info); + void constructor(StructureDesc tqparent, ModuleInfo info); // ID is guaranteed to be unique in the structure the module belongs to readonly attribute long ID; - readonly attribute StructureDesc parent; + readonly attribute StructureDesc tqparent; readonly attribute string name; readonly attribute sequence ports; @@ -184,15 +184,15 @@ module Arts { interface StructurePortDesc : PortDesc { // internal - void constructor(StructureDesc parent, string name, PortType type); + void constructor(StructureDesc tqparent, string name, PortType type); // Position: how the port is positioned when the structure is used // as module - 0 is leftmost, higher numbers are more right readonly attribute long x, y, position; - readonly attribute StructureDesc parentStructure; + readonly attribute StructureDesc tqparentStructure; // if the port is associated with an inherited interface of the - // parent structure, then it should be setup here + // tqparent structure, then it should be setup here attribute string inheritedInterface; boolean moveTo(long x, long y); // returns true when successful diff --git a/arts/runtime/moduleinfo.cc b/arts/runtime/moduleinfo.cc index 1d20b585..7bef4464 100644 --- a/arts/runtime/moduleinfo.cc +++ b/arts/runtime/moduleinfo.cc @@ -17,8 +17,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - Permission is also granted to link this program with the Qt - library, treating Qt like a library that normally accompanies the + Permission is also granted to link this program with the TQt + library, treating TQt like a library that normally accompanies the operating system kernel, whether or not that is in fact the case. */ diff --git a/arts/runtime/moduleinfo.h b/arts/runtime/moduleinfo.h index 2e8e64bc..2caea78f 100644 --- a/arts/runtime/moduleinfo.h +++ b/arts/runtime/moduleinfo.h @@ -17,8 +17,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - Permission is also granted to link this program with the Qt - library, treating Qt like a library that normally accompanies the + Permission is also granted to link this program with the TQt + library, treating TQt like a library that normally accompanies the operating system kernel, whether or not that is in fact the case. */ diff --git a/arts/runtime/structurebuilder_impl.cc b/arts/runtime/structurebuilder_impl.cc index 43e5485c..c2e217e8 100644 --- a/arts/runtime/structurebuilder_impl.cc +++ b/arts/runtime/structurebuilder_impl.cc @@ -96,7 +96,7 @@ ModuleDef StructureBuilder_impl::createTypeInfo(StructureDesc structure) { const Arts::PortType& type = pi->type(); - // if we inherited the port from a parent interface, we don't need to + // if we inherited the port from a tqparent interface, we don't need to // list it in our interface description if(pi->inheritedInterface().empty()) { @@ -236,12 +236,12 @@ Structure_impl::Structure_impl(StructureDesc structureDesc, for(ci = connections->begin(); ci != connections->end(); ci++) { - if(!ci->parent().isNull()) // structureport otherwise + if(!ci->tqparent().isNull()) // structureport otherwise { - Object& dest = moduleMap[ci->parent().ID()]; + Object& dest = moduleMap[ci->tqparent().ID()]; #ifdef STRUCTBUILDER_DEBUG cout << "connect " << mi->name() << "." << pi->name() - << " to " << ci->parent().name() + << " to " << ci->tqparent().name() << "." << ci->name() << endl; #endif connect(object,pd.name(),dest,ci->name()); @@ -271,10 +271,10 @@ Structure_impl::Structure_impl(StructureDesc structureDesc, for(ci = connections->begin(); ci != connections->end(); ci++) { - Object& dest = moduleMap[ci->parent().ID()]; + Object& dest = moduleMap[ci->tqparent().ID()]; #ifdef STRUCTBUILDER_DEBUG cout << "virtualize " << pi->name() - << " to " << ci->parent().name() << "." << ci->name() + << " to " << ci->tqparent().name() << "." << ci->name() << endl; #endif diff --git a/arts/runtime/structures_impl.cc b/arts/runtime/structures_impl.cc index 7c5a5e05..72de0de7 100644 --- a/arts/runtime/structures_impl.cc +++ b/arts/runtime/structures_impl.cc @@ -32,11 +32,11 @@ public: ~PortDesc_impl(); inline PortDesc self() { return PortDesc::_from_base(_copy()); } - void constructor(ModuleDesc parent, const string& name, const PortType& type); + void constructor(ModuleDesc tqparent, const string& name, const PortType& type); void disconnectAll(); long ID(); - ModuleDesc parent(); + ModuleDesc tqparent(); string name(); PortType type(); bool isConnected(); @@ -78,7 +78,7 @@ private: public: long ID(); - StructureDesc parent(); + StructureDesc tqparent(); string name(); vector *ports(); long height(); @@ -86,7 +86,7 @@ public: long x(); long y(); bool moveTo( long x, long y ); - void constructor( StructureDesc parent, const ModuleInfo& info ); + void constructor( StructureDesc tqparent, const ModuleInfo& info ); void loadFromList(const vector& list); vector *saveToList(); @@ -155,7 +155,7 @@ protected: return StructurePortDesc::_from_base(_copy()); } public: - void constructor(StructureDesc parent, const string& name, + void constructor(StructureDesc tqparent, const string& name, const PortType& type); ~StructurePortDesc_impl(); @@ -169,7 +169,7 @@ public: void inheritedInterface(const string& iface); void internalSetPosition(long position); - StructureDesc parentStructure(); + StructureDesc tqparentStructure(); bool moveTo( long X, long Y ); void loadFromList(const vector& list); @@ -192,13 +192,13 @@ REGISTER_IMPLEMENTATION(StructurePortDesc_impl); #define pstat \ printf("port name %s, direction %s, id %d\n",_Name.c_str(),dname(_Type.direction),_ID); -void PortDesc_impl::constructor(ModuleDesc parent, const string& name, +void PortDesc_impl::constructor(ModuleDesc tqparent, const string& name, const PortType& type) { #if 0 - if(parent) + if(tqparent) { - char * pname = parent->Name(); + char * pname = tqparent->Name(); describe("PortDesc."+string(pname)+string(".")+name); } else @@ -208,14 +208,14 @@ void PortDesc_impl::constructor(ModuleDesc parent, const string& name, #endif _name = name; _type = type; - _parent = parent; + _parent = tqparent; _isConnected = false; _hasValue = false; _value.type = _type.dataType; - if(!parent.isNull()) + if(!tqparent.isNull()) { - StructureDesc sd = parent.parent(); + StructureDesc sd = tqparent.tqparent(); _ID = sd.obtainID(); } // else: assume that some smart object which derives from us will set the ID accordingly @@ -276,7 +276,7 @@ long PortDesc_impl::ID() return _ID; } -ModuleDesc PortDesc_impl::parent() +ModuleDesc PortDesc_impl::tqparent() { return _parent; } @@ -468,11 +468,11 @@ void PortDesc_impl::disconnectFrom( PortDesc port ) _isConnected = !_connections.empty(); - ModuleDesc parent = _parent; - if(parent.isNull()) + ModuleDesc tqparent = _parent; + if(tqparent.isNull()) artsdebug("_Parent = , isConnected = %d\n",_isConnected); else - artsdebug("_Parent = %s, isConnected = %d\n",parent.name().c_str(),_isConnected); + artsdebug("_Parent = %s, isConnected = %d\n",tqparent.name().c_str(),_isConnected); if(found) port.disconnectFrom(self()); @@ -484,7 +484,7 @@ long ModuleDesc_impl::ID() return _ID; } -StructureDesc ModuleDesc_impl::parent() +StructureDesc ModuleDesc_impl::tqparent() { return _parent; } @@ -549,14 +549,14 @@ long StructureDesc_impl::height() * Query the module for it's paramenters */ -void ModuleDesc_impl::constructor( StructureDesc parent, +void ModuleDesc_impl::constructor( StructureDesc tqparent, const Arts::ModuleInfo& info ) { _name = info.name; _x = -1; // no position assigned _y = -1; - _ID = parent.obtainID(); - _parent = parent; + _ID = tqparent.obtainID(); + _parent = tqparent; _isInterface = info.isInterface; _isStructure = info.isStructure; @@ -1134,12 +1134,12 @@ void StructureDesc_impl::moveStructurePortDesc(StructurePortDesc portdesc.internalSetPosition(newposition); } -void StructurePortDesc_impl::constructor(StructureDesc parent, +void StructurePortDesc_impl::constructor(StructureDesc tqparent, const string& name, const PortType& type) { PortDesc_impl::constructor(ModuleDesc::null(),name,type); - _parentStructure = parent; - _ID = parent.obtainID(); + _parentStructure = tqparent; + _ID = tqparent.obtainID(); _x = 0; _y = 0; _position = 0; @@ -1167,18 +1167,18 @@ long StructurePortDesc_impl::position() void StructurePortDesc_impl::lowerPosition() { - StructureDesc parent = _parentStructure; // weak reference + StructureDesc tqparent = _parentStructure; // weak reference - if(!parent.isNull()) - parent.moveStructurePortDesc(self(), _position-1); + if(!tqparent.isNull()) + tqparent.moveStructurePortDesc(self(), _position-1); } void StructurePortDesc_impl::raisePosition() { - StructureDesc parent = _parentStructure; // weak reference + StructureDesc tqparent = _parentStructure; // weak reference - if(!parent.isNull()) - parent.moveStructurePortDesc(self(), _position+1); + if(!tqparent.isNull()) + tqparent.moveStructurePortDesc(self(), _position+1); } void StructurePortDesc_impl::rename(const string& newname) @@ -1202,7 +1202,7 @@ void StructurePortDesc_impl::internalSetPosition(long position) _position = position; } -StructureDesc StructurePortDesc_impl::parentStructure() +StructureDesc StructurePortDesc_impl::tqparentStructure() { return _parentStructure; } diff --git a/arts/tools/Makefile.am b/arts/tools/Makefile.am index e503d54a..806856ac 100644 --- a/arts/tools/Makefile.am +++ b/arts/tools/Makefile.am @@ -57,10 +57,10 @@ libartscontrolsupport_la_LIBADD = \ bin_PROGRAMS = artscontrol artscontrol_SOURCES = main.cpp levelmeters.cpp -artscontrol_LDFLAGS = $(all_libraries) $(KDE_RPATH) +artscontrol_LDFLAGS = $(all_libraries) $(KDE_RPATH) -lartsflow artscontrol_LDADD = libartscontrolsupport.la \ $(LIB_KDEUI) $(LIB_KSYCOCA) $(LIB_KFILE) \ - -lqtmcop -lartsflow_idl -lsoundserver_idl -lartskde + -lqtmcop -lartsflow -lartsflow_idl -lsoundserver_idl -lartskde xdg_apps_DATA = artscontrol.desktop diff --git a/arts/tools/artsactions.cpp b/arts/tools/artsactions.cpp index c483beb0..9075f87e 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, TQWidget* parent, const char* name ) - : TQObject( parent,name ) +ArtsActions::ArtsActions( KArtsServer* server, KActionCollection* col, TQWidget* tqparent, const char* name ) + : TQObject( tqparent,name ) , _kartsserver( server ) , _actioncollection( col ) , _a_sv( 0 ), _a_am( 0 ), _a_asv( 0 ), _a_mmv( 0 ), _a_ev( 0 ), _a_mtv( 0 ) @@ -70,7 +70,7 @@ KAction* ArtsActions::actionAudioManager() { return _a_am; } KAction* ArtsActions::actionArtsStatusView() { - if ( !_a_asv ) _a_asv = new KAction( i18n( "aRts &Status" ), "artscontrol", KShortcut(), this, TQT_SLOT( viewArtsStatusView() ), _actioncollection, "artssupport_view_artsstatus" ); + if ( !_a_asv ) _a_asv = new KAction( i18n( "aRts &tqStatus" ), "artscontrol", KShortcut(), this, TQT_SLOT( viewArtsStatusView() ), _actioncollection, "artssupport_view_artsstatus" ); return _a_asv; } KAction* ArtsActions::actionMidiManagerView() { diff --git a/arts/tools/artsactions.h b/arts/tools/artsactions.h index 441d7373..b6f77839 100644 --- a/arts/tools/artsactions.h +++ b/arts/tools/artsactions.h @@ -34,9 +34,10 @@ class MidiManagerView; class EnvironmentView; class MediaTypesView; -class KDE_EXPORT ArtsActions : public QObject +class KDE_EXPORT ArtsActions : public TQObject { Q_OBJECT + TQ_OBJECT public: /** Constructs a ArtsActions-object. @@ -47,7 +48,7 @@ public: @param artsserver a pointer to a existing KArtsServer. If 0 a new is created. @param actioncollection the KActionCollection all the actions should belong to. Names of the actions are then: artssupport_* - @param qwidget the parent QWidget + @param qwidget the tqparent TQWidget @param name the name of the object */ ArtsActions( KArtsServer* artsserver, KActionCollection* actioncollection, TQWidget* qwidget, const char* name=0 ); diff --git a/arts/tools/artscontrolapplet.cpp b/arts/tools/artscontrolapplet.cpp index e4a7e16a..490366d1 100644 --- a/arts/tools/artscontrolapplet.cpp +++ b/arts/tools/artscontrolapplet.cpp @@ -29,18 +29,18 @@ extern "C" { - KDE_EXPORT KPanelApplet* init( TQWidget *parent, const TQString configFile) + KDE_EXPORT KPanelApplet* init( TQWidget *tqparent, const TQString configFile) { KGlobal::locale()->insertCatalogue("artscontrol"); return new ArtsControlApplet(configFile, KPanelApplet::Normal, KPanelApplet::About /*| KPanelApplet::Help | KPanelApplet::Preferences*/, - parent, "artscontrolapplet"); + tqparent, "artscontrolapplet"); } } -ArtsControlApplet::ArtsControlApplet(const TQString& configFile, Type type, int actions, TQWidget *parent, const char *name) : KPanelApplet(configFile, type, actions, parent, name) +ArtsControlApplet::ArtsControlApplet(const TQString& configFile, Type type, int actions, TQWidget *tqparent, const char *name) : KPanelApplet(configFile, type, actions, tqparent, name) { - //kdDebug()<<"ArtsControlApplet::ArtsControlApplet( const TQString& "<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 TQBoxLayout( this, TQBoxLayout::LeftToRight ); - p->layout->setSpacing( 2 ); + p->tqlayout = new TQBoxLayout( this, TQBoxLayout::LeftToRight ); + p->tqlayout->setSpacing( 2 ); if( p->barts ) { p->vu = Arts::StereoVolumeControlGui( p->volume ); p->vu.label().fontsize( 8 ); p->vuw = new KArtsWidget( p->vu, this ); p->vuw->setMinimumSize( 16,16 ); - p->layout->addWidget( p->vuw ); + p->tqlayout->addWidget( p->vuw ); } - p->layout->activate(); + p->tqlayout->activate(); - TQTimer::singleShot( 100, this, TQT_SLOT( supdatelayout() ) ); + TQTimer::singleShot( 100, this, TQT_SLOT( supdatetqlayout() ) ); kdDebug()<<"ArtsControlApplet::ArtsControlApplet() finished."<layout->sizeHint().width(); + return p->tqlayout->tqsizeHint().width(); } int ArtsControlApplet::heightForWidth( int w ) const { kdDebug()<<"ArtsControlApplet::heightForWidth( int "<layout->sizeHint().height(); + return p->tqlayout->tqsizeHint().height(); } void ArtsControlApplet::resizeEvent( TQResizeEvent * /*_Event*/ ) { @@ -122,12 +122,12 @@ kdDebug()<server().outVolume(); svinline=0; - _artsactions = new ArtsActions( arts, 0, parent ); + _artsactions = new ArtsActions( arts, 0, tqparent ); menu = new KPopupMenu( 0 ); _showSV = _artsactions->actionScopeView(); @@ -86,8 +87,8 @@ public: _showSVinline->plug( menu ); _showAM = _artsactions->actionAudioManager(); _showAM->plug( menu ); - _showArtsStatus = _artsactions->actionArtsStatusView(); - _showArtsStatus->plug( menu ); + _showArtstqStatus = _artsactions->actionArtsStatusView(); + _showArtstqStatus->plug( menu ); _showMidiManager = _artsactions->actionMidiManagerView(); _showMidiManager->plug( menu ); _showEnvironment = _artsactions->actionEnvironmentView(); diff --git a/arts/tools/audiomanager.cpp b/arts/tools/audiomanager.cpp index eff4f6f9..73debf80 100644 --- a/arts/tools/audiomanager.cpp +++ b/arts/tools/audiomanager.cpp @@ -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( TQWidget* parent, const char* name ) : Template_ArtsView( parent,name ) +Gui_AUDIO_MANAGER::Gui_AUDIO_MANAGER( TQWidget* tqparent, const char* name ) : Template_ArtsView( tqparent,name ) { this->setCaption( i18n( "Audio Manager" ) ); this->setIcon( MainBarIcon( "artsaudiomanager", 32 ) ); @@ -72,14 +72,14 @@ void Gui_AUDIO_MANAGER::widgetDestroyed(TQWidget *widget) } #endif -void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*layout*/) +void Gui_AUDIO_MANAGER::setParent(TQWidget *tqparent, TQBoxLayout * /*tqlayout*/) { /************************************************************************ * From Gui_INSTRUMENT_MAPPER: * - * I am still not sure wether this kind of putting yourself into a parent - * widget (with own layout etc.) is a good idea (there may not even be - * a singe call to setParent, because there is no parent). + * I am still not sure wether this kind of putting yourself into a tqparent + * widget (with own tqlayout etc.) is a good idea (there may not even be + * a singe call to setParent, because there is no tqparent). * * But the "how to write aRts widgets"-stuff will need some experiments, * so lets try that method... @@ -90,12 +90,12 @@ void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*layout*/) * else would be appropriate. Check that. FIXME ************************************************************************/ - TQVBoxLayout *mainlayout = new TQVBoxLayout(parent); - /*TQHBoxLayout *contentslayout = new TQHBoxLayout;*/ + TQVBoxLayout *maintqlayout = new TQVBoxLayout(tqparent); + /*TQHBoxLayout *contentstqlayout = new TQHBoxLayout;*/ // list - listview = new KListView(parent); + listview = new KListView(tqparent); listview->addColumn(i18n("Title"),175); listview->addColumn(i18n("Type"),50); @@ -106,11 +106,11 @@ void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*layout*/) TQObject::connect(listview,TQT_SIGNAL(executed(TQListViewItem *)),proxy, TQT_SLOT(edit(TQListViewItem *))); - mainlayout->addWidget(listview); + maintqlayout->addWidget(listview); - mainlayout->activate(); - //mainlayout->freeze(); - ParentWidget = parent; + maintqlayout->activate(); + //maintqlayout->freeze(); + ParentWidget = tqparent; } void Gui_AUDIO_MANAGER::tick() @@ -178,8 +178,8 @@ void GuiAudioManagerProxy::edit(TQListViewItem *item) gim->edit(item); } -AudioManagerItem::AudioManagerItem(TQListView *parent, TQString a, - TQString b, TQString c, long ID) :TQListViewItem(parent,a,b,c) +AudioManagerItem::AudioManagerItem(TQListView *tqparent, TQString a, + TQString b, TQString c, long ID) :TQListViewItem(tqparent,a,b,c) { _ID = ID; } diff --git a/arts/tools/audiomanager.h b/arts/tools/audiomanager.h index bef1c463..5a23092d 100644 --- a/arts/tools/audiomanager.h +++ b/arts/tools/audiomanager.h @@ -37,6 +37,7 @@ class TQBoxLayout; class Gui_AUDIO_MANAGER : public Template_ArtsView { Q_OBJECT + TQ_OBJECT protected: TQWidget *ParentWidget; KListView *listview; @@ -50,7 +51,7 @@ public: Gui_AUDIO_MANAGER( TQWidget* =0, const char* =0 ); ~Gui_AUDIO_MANAGER(); - void setParent(TQWidget *Parent,TQBoxLayout *layout); + void setParent(TQWidget *Parent,TQBoxLayout *tqlayout); void edit(TQListViewItem *item); public slots: @@ -59,6 +60,7 @@ public slots: class GuiAudioManagerProxy :public TQObject { Q_OBJECT + TQ_OBJECT Gui_AUDIO_MANAGER *gim; public: GuiAudioManagerProxy(Gui_AUDIO_MANAGER *gim); @@ -69,7 +71,7 @@ public slots: class AudioManagerItem : public TQListViewItem { long _ID; public: - AudioManagerItem(TQListView *parent, TQString a, TQString b, + AudioManagerItem(TQListView *tqparent, TQString a, TQString b, TQString c, long ID); ~AudioManagerItem(); diff --git a/arts/tools/choosebusdlg.cpp b/arts/tools/choosebusdlg.cpp index cb005f4c..a4f96ba5 100644 --- a/arts/tools/choosebusdlg.cpp +++ b/arts/tools/choosebusdlg.cpp @@ -39,36 +39,36 @@ using namespace std; static void min_size(TQWidget *w) { - w->setMinimumSize(w->sizeHint()); + w->setMinimumSize(w->tqsizeHint()); } -ChooseBusDlg::ChooseBusDlg(TQWidget *parent) - : KDialog(parent,"X", TRUE) +ChooseBusDlg::ChooseBusDlg(TQWidget *tqparent) + : KDialog(tqparent,"X", TRUE) , _newbusitemindex( -1 ) { setCaption(i18n("Choose Bus")); - TQVBoxLayout *mainlayout = new TQVBoxLayout(this); + TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); // caption label: "Synthesis running..." - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); TQLabel *captionlabel = new TQLabel(this); TQFont labelfont(captionlabel->font()); labelfont.setPointSize(labelfont.pointSize()*3/2); captionlabel->setFont(labelfont); captionlabel->setText(TQString(" ")+i18n("Available busses:")+TQString(" ")); - captionlabel->setAlignment(AlignCenter); + captionlabel->tqsetAlignment(AlignCenter); min_size(captionlabel); - mainlayout->addWidget(captionlabel); + maintqlayout->addWidget(captionlabel); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler2); + maintqlayout->addWidget(ruler2); - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); // listwidget @@ -89,44 +89,44 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent) if( listbox->count() > 0 ) listbox->setCurrentItem( 0 ); - mainlayout->addWidget(listbox); + maintqlayout->addWidget(listbox); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler); - mainlayout->addSpacing(5); + maintqlayout->addWidget(ruler); + maintqlayout->addSpacing(5); // new bus lineedit - TQBoxLayout * layout2 = new TQHBoxLayout( mainlayout ); - //mainlayout->addLayout( layout2 ); + TQBoxLayout * tqlayout2 = new TQHBoxLayout( maintqlayout ); + //maintqlayout->addLayout( tqlayout2 ); TQLabel * newbuslabel = new TQLabel( i18n( "New bus:" ), this ); - layout2->addWidget( newbuslabel ); + tqlayout2->addWidget( newbuslabel ); lineedit = new KLineEdit( this ); connect( lineedit, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( textChanged( const TQString & ) ) ); - layout2->addWidget( lineedit ); + tqlayout2->addWidget( lineedit ); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler3 = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler3); + maintqlayout->addWidget(ruler3); - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); // buttons - mainlayout->addSpacing(5); - TQHBoxLayout *buttonlayout = new TQHBoxLayout( mainlayout ); - //mainlayout->addLayout(buttonlayout); - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); + TQHBoxLayout *buttontqlayout = new TQHBoxLayout( maintqlayout ); + //maintqlayout->addLayout(buttontqlayout); + maintqlayout->addSpacing(5); - buttonlayout->addSpacing(5); + buttontqlayout->addSpacing(5); KButtonBox *bbox = new KButtonBox(this); - bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() )); + bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addStretch(1); TQPushButton * okbutton = bbox->addButton(KStdGuiItem::ok()); @@ -136,12 +136,12 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent) TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel()); connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) ); - bbox->layout(); + bbox->tqlayout(); - buttonlayout->addWidget(bbox); - buttonlayout->addSpacing(5); + buttontqlayout->addWidget(bbox); + buttontqlayout->addSpacing(5); - mainlayout->freeze(); + maintqlayout->freeze(); } TQString ChooseBusDlg::result() diff --git a/arts/tools/choosebusdlg.h b/arts/tools/choosebusdlg.h index 6f1a506d..9ba29b8a 100644 --- a/arts/tools/choosebusdlg.h +++ b/arts/tools/choosebusdlg.h @@ -30,12 +30,13 @@ class TQPushButton; class ChooseBusDlg :public KDialog { Q_OBJECT + TQ_OBJECT TQListBox *listbox; KLineEdit * lineedit; int _newbusitemindex; public: - ChooseBusDlg(TQWidget *parent); + ChooseBusDlg(TQWidget *tqparent); public slots: TQString result(); diff --git a/arts/tools/environmentview.cpp b/arts/tools/environmentview.cpp index 9cedfed1..acbb2083 100644 --- a/arts/tools/environmentview.cpp +++ b/arts/tools/environmentview.cpp @@ -57,18 +57,18 @@ public: printf("~ItemView()\n"); } TQString text() const { - return TQString::fromLatin1(item._interfaceName().c_str()); + return TQString::tqfromLatin1(item._interfaceName().c_str()); } }; -EnvironmentView::EnvironmentView( Container container, TQWidget* parent, const char* name ) : Template_ArtsView( parent,name ), container(container) +EnvironmentView::EnvironmentView( Container container, TQWidget* tqparent, const char* name ) : Template_ArtsView( tqparent,name ), container(container) { this->setCaption( i18n( "Environment" ) ); this->setIcon( MainBarIcon( "artsenvironment", 32 ) ); TQVBoxLayout* _layout = new TQVBoxLayout( this ); _layout->setAutoAdd( true ); defaultEnvFileName = DEFAULT_ENV_FILENAME; - defaultEnvFileName.replace('~', TQDir::homeDirPath()); + defaultEnvFileName.tqreplace('~', TQDir::homeDirPath()); listBox = new KListBox(this); update(); connect(listBox,TQT_SIGNAL(executed(TQListBoxItem*)), @@ -84,11 +84,11 @@ EnvironmentView::EnvironmentView( Container container, TQWidget* parent, const c connect(delButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(delItem())); TQPushButton *loadButton = new - TQPushButton(i18n("Load %1").arg(DEFAULT_ENV_FILENAME), this); + TQPushButton(i18n("Load %1").tqarg(DEFAULT_ENV_FILENAME), this); connect(loadButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(load())); TQPushButton *saveButton = new - TQPushButton(i18n("Save %1").arg(DEFAULT_ENV_FILENAME), this); + TQPushButton(i18n("Save %1").tqarg(DEFAULT_ENV_FILENAME), this); connect(saveButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(save())); show(); } diff --git a/arts/tools/environmentview.h b/arts/tools/environmentview.h index e4b3b908..f45347f1 100644 --- a/arts/tools/environmentview.h +++ b/arts/tools/environmentview.h @@ -33,6 +33,7 @@ class KListBox; class EnvironmentView : public Template_ArtsView { Q_OBJECT + TQ_OBJECT protected: Arts::Environment::Container container; KListBox *listBox; diff --git a/arts/tools/fftscopeview.cpp b/arts/tools/fftscopeview.cpp index fcaa5304..1d5c5345 100644 --- a/arts/tools/fftscopeview.cpp +++ b/arts/tools/fftscopeview.cpp @@ -37,8 +37,8 @@ using namespace std; using namespace Arts; -FFTScopeView::FFTScopeView( SimpleSoundServer server, TQWidget* parent ) - : Template_ArtsView( parent ) +FFTScopeView::FFTScopeView( SimpleSoundServer server, TQWidget* tqparent ) + : Template_ArtsView( tqparent ) , server( server ) , scopeData( 0 ) { @@ -80,11 +80,11 @@ kdDebug()<plug( _menu ); _lessBars->plug( _menu ); - _substyle = new KAction( i18n( "Substyle" ), "", KShortcut(), this, TQT_SLOT( substyle() ), this ); + _substyle = new KAction( i18n( "Substyle" ), "", KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( substyle() ), TQT_TQOBJECT(this) ); _substyle->plug( _menu ); _menu->insertItem( i18n("VU-Style"), _artsactions->stylemenu() ); diff --git a/arts/tools/fftscopeview.h b/arts/tools/fftscopeview.h index 945c52e3..de8ed7f5 100644 --- a/arts/tools/fftscopeview.h +++ b/arts/tools/fftscopeview.h @@ -40,6 +40,7 @@ class ArtsActions; class KDE_EXPORT FFTScopeView : public Template_ArtsView { Q_OBJECT + TQ_OBJECT protected: Arts::StereoFFTScope scopefx; Arts::SimpleSoundServer server; diff --git a/arts/tools/levelmeters.cpp b/arts/tools/levelmeters.cpp index 1d0b080c..ae7834a8 100644 --- a/arts/tools/levelmeters.cpp +++ b/arts/tools/levelmeters.cpp @@ -7,8 +7,8 @@ const int PeakBar::peakMillis=1500; -PeakBar::PeakBar(TQWidget *parent) - : ACLevelMeter(parent) +PeakBar::PeakBar(TQWidget *tqparent) + : ACLevelMeter(tqparent) , maxValue( 0.0f ) , minValue( 0.0f ) { @@ -20,7 +20,7 @@ PeakBar::PeakBar(TQWidget *parent) lastValues.setAutoDelete( TRUE ); setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken); - setSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred)); + tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred)); setBackgroundMode(NoBackground); setMinimumSize(frameWidth()+7, 70); } @@ -30,7 +30,7 @@ void PeakBar::frameChanged() { TQFrame::frameChanged(); } -TQSize PeakBar::sizeHint() const { +TQSize PeakBar::tqsizeHint() const { return TQSize(13, 250); } @@ -104,25 +104,25 @@ void PeakBar::setValue(float f) { lastValues.append(new Observation(f)); - repaint(); + tqrepaint(); } // ------------------------------------------------------------- -PeakLevelMeters::PeakLevelMeters(TQWidget *parent): - StereoLevelMeter(parent), left(this), right(this), scaleView(this) +PeakLevelMeters::PeakLevelMeters(TQWidget *tqparent): + StereoLevelMeter(tqparent), left(this), right(this), scaleView(this) { - TQBoxLayout *layout= new TQHBoxLayout(this); - layout->addWidget(&left); - // layout->setStretchFactor(&left, 0); - layout->addWidget(&right); - // layout->setStretchFactor(&right, 0); - layout->addWidget(&scaleView); - // layout->setStretchFactor(&scaleView, 0); + TQBoxLayout *tqlayout= new TQHBoxLayout(this); + tqlayout->addWidget(&left); + // tqlayout->setStretchFactor(&left, 0); + tqlayout->addWidget(&right); + // tqlayout->setStretchFactor(&right, 0); + tqlayout->addWidget(&scaleView); + // tqlayout->setStretchFactor(&scaleView, 0); left.setLineWidth(2); right.setLineWidth(2); scaleView.setScaleMargins(right.frameWidth()); - setSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred)); + tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred)); setDbRange(36); } @@ -142,17 +142,17 @@ void PeakLevelMeters::setValues(float leftVal, float rightVal) { right.setValue(f); } -ScaleView::ScaleView(TQWidget *parent): TQFrame(parent) { +ScaleView::ScaleView(TQWidget *tqparent): TQFrame(tqparent) { font.setPixelSize(10); - setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred)); + tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred)); } void ScaleView::setDbRange(int db) { dbRange= db; - repaint(); + tqrepaint(); } -TQSize ScaleView::sizeHint() const { +TQSize ScaleView::tqsizeHint() const { return TQSize(TQFontMetrics(font).width("-88")+8, 250); } @@ -187,7 +187,7 @@ void ScaleView::drawContents(TQPainter *p) { // ------------------------------------------------------------- -LedMeter::LedMeter(TQWidget *parent, bool blueState) : ACLevelMeter(parent) { +LedMeter::LedMeter(TQWidget *tqparent, bool blueState) : ACLevelMeter(tqparent) { setBackgroundColor(black); TQBoxLayout * l = new TQVBoxLayout( this ); l->setAutoAdd(TRUE); @@ -223,12 +223,12 @@ void LedMeter::setValue(float f) // ------------------------------------------------------------- -StereoLedMeters::StereoLedMeters(TQWidget *parent) - : StereoLevelMeter(parent), left(this), right(this) +StereoLedMeters::StereoLedMeters(TQWidget *tqparent) + : StereoLevelMeter(tqparent), left(this), right(this) { - TQBoxLayout *layout= new TQHBoxLayout(this); - layout->addWidget(&left); - layout->addWidget(&right); + TQBoxLayout *tqlayout= new TQHBoxLayout(this); + tqlayout->addWidget(&left); + tqlayout->addWidget(&right); } void StereoLedMeters::setValues(float leftVal, float rightVal) { diff --git a/arts/tools/levelmeters.h b/arts/tools/levelmeters.h index 638d0d9a..64c41c0b 100644 --- a/arts/tools/levelmeters.h +++ b/arts/tools/levelmeters.h @@ -44,8 +44,9 @@ inline float DBToLevel(float db) { */ class ACLevelMeter : public TQFrame { Q_OBJECT + TQ_OBJECT public: - ACLevelMeter(TQWidget *parent): TQFrame(parent) {} + ACLevelMeter(TQWidget *tqparent): TQFrame(tqparent) {} public slots: virtual void setValue(float f) = 0; }; @@ -55,8 +56,9 @@ public slots: */ class StereoLevelMeter : public TQFrame { Q_OBJECT + TQ_OBJECT public: - StereoLevelMeter(TQWidget *parent): TQFrame(parent) {} + StereoLevelMeter(TQWidget *tqparent): TQFrame(tqparent) {} public slots: virtual void setValues(float left, float right) = 0; }; @@ -67,6 +69,7 @@ public slots: */ class PeakBar : public ACLevelMeter { Q_OBJECT + TQ_OBJECT bool clipped; protected: @@ -89,9 +92,9 @@ protected: void frameChanged(); public: - PeakBar(TQWidget *parent); + PeakBar(TQWidget *tqparent); - TQSize sizeHint() const; + TQSize tqsizeHint() const; void drawContents(TQPainter *p); virtual void setValue(float f); @@ -102,15 +105,16 @@ public: */ class ScaleView : public TQFrame { Q_OBJECT + TQ_OBJECT protected: TQFont font; int dbRange; int upperMargin, lowerMargin; public: - ScaleView(TQWidget *parent); + ScaleView(TQWidget *tqparent); void setDbRange(int db); void setScaleMargins(int margins) { upperMargin= margins; lowerMargin=margins; } - TQSize sizeHint() const; + TQSize tqsizeHint() const; void drawContents(TQPainter *p); }; @@ -121,13 +125,14 @@ public: */ class PeakLevelMeters : public StereoLevelMeter { Q_OBJECT + TQ_OBJECT protected: int dbRange; PeakBar left, right; ScaleView scaleView; public: - PeakLevelMeters(TQWidget *parent); + PeakLevelMeters(TQWidget *tqparent); public slots: void setValues(float leftVal, float rightVal); @@ -143,11 +148,12 @@ class KLed; */ class LedMeter : public ACLevelMeter { Q_OBJECT + TQ_OBJECT protected: KLed *leds[12]; public: - LedMeter(TQWidget *parent, bool blueState = false); + LedMeter(TQWidget *tqparent, bool blueState = false); void setValue(float f); }; @@ -156,11 +162,12 @@ public: */ class StereoLedMeters : public StereoLevelMeter { Q_OBJECT + TQ_OBJECT protected: LedMeter left, right; public: - StereoLedMeters(TQWidget *parent); + StereoLedMeters(TQWidget *tqparent); public slots: void setValues(float left, float right); }; diff --git a/arts/tools/main.cpp b/arts/tools/main.cpp index 60df8f1d..5492f38a 100644 --- a/arts/tools/main.cpp +++ b/arts/tools/main.cpp @@ -82,7 +82,7 @@ FreeVerbView::~FreeVerbView() { } -VControl::VControl( KArtsServer* artsserver, TQWidget *parent) : TQFrame(parent) +VControl::VControl( KArtsServer* artsserver, TQWidget *tqparent) : TQFrame(tqparent) , freeVerbView(0) , server( artsserver ) { @@ -158,7 +158,7 @@ void MainWindow::toggleVolumeBar() { vc->useOldVolumeBar(showOldVolumeDisplay->isChecked()); } -MainWindow::MainWindow() : KMainWindow(0), kartsserver( new KArtsServer( this ) ) { +MainWindow::MainWindow() : KMainWindow(0), kartsserver( new KArtsServer( TQT_TQOBJECT(this) ) ) { kdDebug() << k_funcinfo << endl; connect( kartsserver, TQT_SIGNAL( restartedServer() ), this, TQT_SLOT( serverRestarted() ) ); @@ -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, TQT_SLOT( showFreeVerbView() ), actionCollection(), "view_freeverb" ); + ( void ) new KAction( i18n("Toggle Free&Verb"), 0, TQT_TQOBJECT(vc), TQT_SLOT( showFreeVerbView() ), actionCollection(), "view_freeverb" ); showOldVolumeDisplay= - new KToggleAction( i18n( "Old aRts-Control-Style for VU-Meter" /*"&LED-Style Volume Display"*/ ), 0, this, + new KToggleAction( i18n( "Old aRts-Control-Style for VU-Meter" /*"&LED-Style Volume Display"*/ ), 0, TQT_TQOBJECT(this), TQT_SLOT( toggleVolumeBar() ), actionCollection(), "old_volume_display" ); - ( void ) KStdAction::quit( this, TQT_SLOT( close() ), actionCollection(), "quit_artscontrol" ); + ( void ) KStdAction::quit( TQT_TQOBJECT(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 2770b054..3b52dadb 100644 --- a/arts/tools/main.h +++ b/arts/tools/main.h @@ -49,6 +49,7 @@ class VScale; class FreeVerbView : public TQWidget { Q_OBJECT + TQ_OBJECT protected: Arts::Synth_FREEVERB freeverb; Arts::SimpleSoundServer server; @@ -66,6 +67,7 @@ class KArtsWidget; class VControl : public TQFrame { Q_OBJECT + TQ_OBJECT protected: class StereoLevelMeter *stereoMeter; FreeVerbView *freeVerbView; @@ -77,7 +79,7 @@ protected: TQBoxLayout *boxLayout; public: - VControl( KArtsServer*, TQWidget *parent); + VControl( KArtsServer*, TQWidget *tqparent); ~VControl(); public slots: @@ -91,6 +93,7 @@ private slots: class MainWindow : public KMainWindow { Q_OBJECT + TQ_OBJECT protected: VControl *vc; KToggleAction *showOldVolumeDisplay; diff --git a/arts/tools/mediatypesview.cpp b/arts/tools/mediatypesview.cpp index 9353cda6..fb8938d7 100644 --- a/arts/tools/mediatypesview.cpp +++ b/arts/tools/mediatypesview.cpp @@ -33,7 +33,7 @@ using namespace std; using namespace Arts; -MediaTypesView::MediaTypesView( TQWidget* parent, const char* name ) : Template_ArtsView( parent,name ) +MediaTypesView::MediaTypesView( TQWidget* tqparent, const char* name ) : Template_ArtsView( tqparent,name ) { this->setCaption( i18n( "Available Media Types" ) ); this->setIcon( MainBarIcon( "artsmediatypes", 32 ) ); diff --git a/arts/tools/mediatypesview.h b/arts/tools/mediatypesview.h index e61338c6..8a0b3afd 100644 --- a/arts/tools/mediatypesview.h +++ b/arts/tools/mediatypesview.h @@ -28,6 +28,7 @@ class MediaTypesView : public Template_ArtsView { Q_OBJECT + TQ_OBJECT public: MediaTypesView( TQWidget* =0, const char* =0 ); ~MediaTypesView(); diff --git a/arts/tools/midiinstdlg.cpp b/arts/tools/midiinstdlg.cpp index 97867cd8..87cc2ea3 100644 --- a/arts/tools/midiinstdlg.cpp +++ b/arts/tools/midiinstdlg.cpp @@ -63,29 +63,29 @@ static TQStringList listFiles(TQString directory, TQString extension) return result; } -MidiInstDlg::MidiInstDlg(TQWidget *parent) - :TQDialog(parent,"instrument",TRUE) +MidiInstDlg::MidiInstDlg(TQWidget *tqparent) + :TQDialog(tqparent,"instrument",TRUE) { - TQVBoxLayout *mainlayout = new TQVBoxLayout(this); + TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); // caption label: title - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); TQLabel *captionlabel = new TQLabel(this); TQFont labelfont(captionlabel->font()); labelfont.setPointSize(labelfont.pointSize()*3/2); captionlabel->setFont(labelfont); captionlabel->setText(TQString(" ")+i18n("Instrument")+TQString(" ")); - captionlabel->setAlignment(AlignCenter); + captionlabel->tqsetAlignment(AlignCenter); //min_size(captionlabel); - mainlayout->addWidget(captionlabel); + maintqlayout->addWidget(captionlabel); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler2); - mainlayout->addSpacing(5); + maintqlayout->addWidget(ruler2); + maintqlayout->addSpacing(5); // combobox @@ -95,10 +95,10 @@ MidiInstDlg::MidiInstDlg(TQWidget *parent) TQStringList::Iterator it; for ( it = instruments.begin(); it != instruments.end(); it++ ) { TQString modname = *it; - TQString prefix = TQString::fromLatin1("instrument_"); + TQString prefix = TQString::tqfromLatin1("instrument_"); if (modname.length() > 5) modname.truncate(modname.length()-5); // kill .arts extension - if ( (modname.startsWith(prefix)) && (!modname.contains("_GUI")) ) + if ( (modname.startsWith(prefix)) && (!modname.tqcontains("_GUI")) ) box->insertItem(modname.mid(prefix.length())); //kdDebug() << "inserted instrument: " << modname.mid(prefix.length()) << endl; } @@ -108,7 +108,7 @@ MidiInstDlg::MidiInstDlg(TQWidget *parent) for ( it = maps.begin(); it != maps.end(); it++ ) { TQString modname = *it; - TQString prefix = TQString::fromLatin1("instrument_"); + TQString prefix = TQString::tqfromLatin1("instrument_"); if (modname.length() > 9) modname.truncate(modname.length()-9); // kill .arts-map extension if (modname.startsWith(prefix)) @@ -116,37 +116,37 @@ MidiInstDlg::MidiInstDlg(TQWidget *parent) //kdDebug() << "inserted map: " << modname.mid(prefix.length()) << endl; } - mainlayout->addWidget(box); + maintqlayout->addWidget(box); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler); - mainlayout->addSpacing(5); + maintqlayout->addWidget(ruler); + maintqlayout->addSpacing(5); // buttons - TQHBoxLayout *buttonlayout = new TQHBoxLayout; - mainlayout->addSpacing(5); - mainlayout->addLayout(buttonlayout); - mainlayout->addSpacing(5); + TQHBoxLayout *buttontqlayout = new TQHBoxLayout; + maintqlayout->addSpacing(5); + maintqlayout->addLayout(buttontqlayout); + maintqlayout->addSpacing(5); - buttonlayout->addSpacing(5); + buttontqlayout->addSpacing(5); KButtonBox *bbox = new KButtonBox(this); - bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() )); + bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addStretch(1); TQButton *okbutton = bbox->addButton(KStdGuiItem::ok()); connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) ); - bbox->layout(); + bbox->tqlayout(); - buttonlayout->addWidget(bbox); - buttonlayout->addSpacing(5); + buttontqlayout->addWidget(bbox); + buttontqlayout->addSpacing(5); - mainlayout->freeze(); + maintqlayout->freeze(); } TQCString MidiInstDlg::filename() @@ -157,12 +157,12 @@ TQCString MidiInstDlg::filename() TQStringList::Iterator it; for ( it = artsPath.begin(); it != artsPath.end(); it++ ) { - TQString pathname = *it + TQString::fromLatin1("/instrument_") + instrument + TQString::fromLatin1(".arts"); + TQString pathname = *it + TQString::tqfromLatin1("/instrument_") + instrument + TQString::tqfromLatin1(".arts"); TQFileInfo fi(pathname); if (fi.exists() && fi.isReadable()) return TQFile::encodeName(pathname); - pathname = *it + TQString::fromLatin1("/instrument_") + instrument + TQString::fromLatin1(".arts-map"); + pathname = *it + TQString::tqfromLatin1("/instrument_") + instrument + TQString::tqfromLatin1(".arts-map"); fi.setFile(pathname); if (fi.exists() && fi.isReadable()) return TQFile::encodeName(pathname); diff --git a/arts/tools/midiinstdlg.h b/arts/tools/midiinstdlg.h index 57735513..0e425225 100644 --- a/arts/tools/midiinstdlg.h +++ b/arts/tools/midiinstdlg.h @@ -28,9 +28,10 @@ class MidiInstDlg :public TQDialog { Q_OBJECT + TQ_OBJECT TQComboBox *box; public: - MidiInstDlg(TQWidget *parent); + MidiInstDlg(TQWidget *tqparent); TQCString filename(); public slots: void help(); diff --git a/arts/tools/midimanagerdlg.ui b/arts/tools/midimanagerdlg.ui index 78941e4c..1a30f5d7 100644 --- a/arts/tools/midimanagerdlg.ui +++ b/arts/tools/midimanagerdlg.ui @@ -1,10 +1,10 @@ MidiManagerDlg - + MidiManagerDlg - + 0 0 @@ -25,7 +25,7 @@ 6 - + TextLabel1 @@ -33,7 +33,7 @@ MIDI inputs: - + TextLabel1_2 @@ -41,17 +41,17 @@ MIDI outputs: - + inputsListBox - + outputsListBox - + Frame5 @@ -64,9 +64,9 @@ 0 - + - + @@ -78,7 +78,7 @@ 6 - + AddButton_2 @@ -86,7 +86,7 @@ &Add... - + RemoveButton_2 @@ -94,7 +94,7 @@ &Remove - + connectButton @@ -102,7 +102,7 @@ &Connect - + disconnectButton @@ -112,7 +112,7 @@ - + connectionFrame @@ -147,5 +147,5 @@ - + diff --git a/arts/tools/midimanagerview.cpp b/arts/tools/midimanagerview.cpp index 4849af78..a9cefb07 100644 --- a/arts/tools/midimanagerview.cpp +++ b/arts/tools/midimanagerview.cpp @@ -17,8 +17,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - Permission is also granted to link this program with the Qt - library, treating Qt like a library that normally accompanies the + Permission is also granted to link this program with the TQt + library, treating TQt like a library that normally accompanies the operating system kernel, whether or not that is in fact the case. */ @@ -78,7 +78,7 @@ public: class ConnectionWidget : public TQWidget { public: MidiManagerView *v; - ConnectionWidget(MidiManagerView *v, TQWidget *parent) : TQWidget(parent), v(v) + ConnectionWidget(MidiManagerView *v, TQWidget *tqparent) : TQWidget(tqparent), v(v) { } void paintEvent(TQPaintEvent * /*event*/) @@ -96,8 +96,8 @@ public: conn != item->info.connections.end(); conn++) { MidiManagerItem *outitem = v->itemMap[*conn]; - TQRect r1 = v->widget->inputsListBox->itemRect(item); - TQRect r2 = v->widget->outputsListBox->itemRect(outitem); + TQRect r1 = v->widget->inputsListBox->tqitemRect(item); + TQRect r2 = v->widget->outputsListBox->tqitemRect(outitem); if(r1.height() > 0 && r2.height() > 0) { @@ -122,14 +122,14 @@ MidiManagerView::MidiManagerView() setCaption(i18n("MIDI Manager")); setIcon( MainBarIcon( "artsfftscope", 32 ) ); - (void)new KAction(i18n("&System MIDI Port (OSS)"), 0, this, TQT_SLOT(addOSSMidiPort()), + (void)new KAction(i18n("&System MIDI Port (OSS)"), 0, TQT_TQOBJECT(this), TQT_SLOT(addOSSMidiPort()), actionCollection(), "add_oss_midi_port"); - (void)new KAction(i18n("&aRts Synthesis MIDI Output"), 0, this, + (void)new KAction(i18n("&aRts Synthesis MIDI Output"), 0, TQT_TQOBJECT(this), TQT_SLOT(addArtsMidiOutput()), actionCollection(), "add_arts_midi_output"); - (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())); + (void) KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection()); + connect(widget->connectButton,TQT_SIGNAL(clicked()), TQT_TQOBJECT(this), TQT_SLOT(slotConnect())); + connect(widget->disconnectButton,TQT_SIGNAL(clicked()), TQT_TQOBJECT(this), TQT_SLOT(slotDisconnect())); connectionWidget = new ConnectionWidget(this, widget->connectionFrame); connectionWidget->setMinimumSize(60,10); @@ -185,7 +185,7 @@ void MidiManagerView::updateLists() widget->inputsListBox->setSelected(itemMap[srcID],true); if(destID && itemMap[destID]) widget->outputsListBox->setSelected(itemMap[destID],true); - connectionWidget->repaint(); + connectionWidget->tqrepaint(); } void MidiManagerView::slotConnect() @@ -216,7 +216,7 @@ void MidiManagerView::slotDisconnect() void MidiManagerView::addOSSMidiPort() { - //lukas: no i18n here, QDialog's CTOR doesn't know about QString + //lukas: no i18n here, TQDialog's CTOR doesn't know about TQString //lukas: can't use that with const char *, i18n()'ed in the dialog itself MidiPortDlg *dlg = new MidiPortDlg(0,"/dev/midi","OSS Midi Port"); diff --git a/arts/tools/midimanagerview.h b/arts/tools/midimanagerview.h index 546e1cef..4b395bcd 100644 --- a/arts/tools/midimanagerview.h +++ b/arts/tools/midimanagerview.h @@ -17,8 +17,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - Permission is also granted to link this program with the Qt - library, treating Qt like a library that normally accompanies the + Permission is also granted to link this program with the TQt + library, treating TQt like a library that normally accompanies the operating system kernel, whether or not that is in fact the case. */ @@ -36,6 +36,7 @@ class MidiManagerWidget; class MidiManagerView : public KMainWindow { Q_OBJECT + TQ_OBJECT protected: friend class ConnectionWidget; Arts::MidiManager manager; diff --git a/arts/tools/midimanagerwidget.ui b/arts/tools/midimanagerwidget.ui index 115626d0..88e34dbe 100644 --- a/arts/tools/midimanagerwidget.ui +++ b/arts/tools/midimanagerwidget.ui @@ -1,10 +1,10 @@ MidiManagerWidget - + MidiManagerWidget - + 0 0 @@ -25,7 +25,7 @@ 6 - + TextLabel1 @@ -33,7 +33,7 @@ MIDI inputs: - + TextLabel1_2 @@ -41,17 +41,17 @@ MIDI outputs: - + inputsListBox - + outputsListBox - + Frame5 @@ -64,9 +64,9 @@ 0 - + - + @@ -78,7 +78,7 @@ 6 - + connectButton @@ -86,7 +86,7 @@ &Connect - + disconnectButton @@ -96,7 +96,7 @@ - + connectionFrame @@ -131,5 +131,5 @@ - + diff --git a/arts/tools/midiportdlg.cpp b/arts/tools/midiportdlg.cpp index 33ca6bce..eaed97f1 100644 --- a/arts/tools/midiportdlg.cpp +++ b/arts/tools/midiportdlg.cpp @@ -32,28 +32,28 @@ #include #include -MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *title) :TQDialog(parent,title,TRUE) +MidiPortDlg::MidiPortDlg(TQWidget *tqparent, const char *oldname, const char *title) :TQDialog(tqparent,title,TRUE) { - TQVBoxLayout *mainlayout = new TQVBoxLayout(this); + TQVBoxLayout *maintqlayout = new TQVBoxLayout(this); // caption label: title - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); TQLabel *captionlabel = new TQLabel(this); TQFont labelfont(captionlabel->font()); labelfont.setPointSize(labelfont.pointSize()*3/2); captionlabel->setFont(labelfont); captionlabel->setText(i18n("OSS MIDI Port")); - captionlabel->setAlignment(AlignCenter); + captionlabel->tqsetAlignment(AlignCenter); //min_size(captionlabel); - mainlayout->addWidget(captionlabel); + maintqlayout->addWidget(captionlabel); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler2 = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler2); - mainlayout->addSpacing(5); + maintqlayout->addWidget(ruler2); + maintqlayout->addSpacing(5); // editwidget @@ -61,26 +61,26 @@ MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *titl edit->setText(oldname); //min_size(edit); - mainlayout->addWidget(edit); + maintqlayout->addWidget(edit); // hruler - mainlayout->addSpacing(5); + maintqlayout->addSpacing(5); KSeparator *ruler = new KSeparator( KSeparator::HLine, this); - mainlayout->addWidget(ruler); - mainlayout->addSpacing(5); + maintqlayout->addWidget(ruler); + maintqlayout->addSpacing(5); // buttons - TQHBoxLayout *buttonlayout = new TQHBoxLayout; - mainlayout->addSpacing(5); - mainlayout->addLayout(buttonlayout); - mainlayout->addSpacing(5); + TQHBoxLayout *buttontqlayout = new TQHBoxLayout; + maintqlayout->addSpacing(5); + maintqlayout->addLayout(buttontqlayout); + maintqlayout->addSpacing(5); - buttonlayout->addSpacing(5); + buttontqlayout->addSpacing(5); KButtonBox *bbox = new KButtonBox(this); - TQPushButton *helpbutton = bbox->addButton(KStdGuiItem::help(), this, TQT_SLOT( help() )); + TQPushButton *helpbutton = bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() )); bbox->addStretch(1); helpbutton->setAutoDefault( true ); helpbutton->setDefault( true ); @@ -90,12 +90,12 @@ MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *titl okbutton->setAutoDefault( true ); okbutton->setDefault( true ); - bbox->layout(); + bbox->tqlayout(); - buttonlayout->addWidget(bbox); - buttonlayout->addSpacing(5); + buttontqlayout->addWidget(bbox); + buttontqlayout->addSpacing(5); - mainlayout->freeze(); + maintqlayout->freeze(); } const char *MidiPortDlg::device() diff --git a/arts/tools/midiportdlg.h b/arts/tools/midiportdlg.h index 8992776b..b6b428bc 100644 --- a/arts/tools/midiportdlg.h +++ b/arts/tools/midiportdlg.h @@ -31,9 +31,10 @@ class MidiPortDlg :public TQDialog { Q_OBJECT + TQ_OBJECT TQLineEdit *edit; public: - MidiPortDlg(TQWidget *parent, const char *device, const char *title); + MidiPortDlg(TQWidget *tqparent, const char *device, const char *title); const char *device(); public slots: diff --git a/arts/tools/statusview.cpp b/arts/tools/statusview.cpp index c29cf4ed..6a9f0a25 100644 --- a/arts/tools/statusview.cpp +++ b/arts/tools/statusview.cpp @@ -33,15 +33,15 @@ using namespace std; using namespace Arts; -ArtsStatusView::ArtsStatusView(Arts::SoundServer a_server, TQWidget* parent, const char* name ) - : Template_ArtsView( parent,name ) +ArtsStatusView::ArtsStatusView(Arts::SoundServer a_server, TQWidget* tqparent, const char* name ) + : Template_ArtsView( tqparent,name ) , server(a_server) { - this->setCaption( i18n( "aRts Status" ) ); + this->setCaption( i18n( "aRts tqStatus" ) ); TQBoxLayout *l= new TQVBoxLayout(this); //l->setAutoAdd(TRUE); - RealtimeStatus rs= server.realtimeStatus(); + RealtimetqStatus rs= server.realtimetqStatus(); l->addWidget(new TQLabel(rs==rtRealtime? i18n("Artsd is running with realtime scheduling."): rs==rtNoSupport? @@ -66,7 +66,7 @@ ArtsStatusView::ArtsStatusView(Arts::SoundServer a_server, TQWidget* parent, con connect(suspendButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(suspendButtonClicked())); artsPollStatusTimer= new TQTimer(this); - connect(artsPollStatusTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(updateStatus())); + connect(artsPollStatusTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(updatetqStatus())); artsPollStatusTimer->start(1000); //l->activate(); show(); @@ -77,7 +77,7 @@ void ArtsStatusView::suspendButtonClicked() (void)server.suspend(); // TODO: error msg if suspend not possible? } -void ArtsStatusView::updateStatus() +void ArtsStatusView::updatetqStatus() { long seconds= server.secondsUntilSuspend(); if (seconds<0) diff --git a/arts/tools/statusview.h b/arts/tools/statusview.h index ab5ff8e8..59f757c2 100644 --- a/arts/tools/statusview.h +++ b/arts/tools/statusview.h @@ -35,11 +35,12 @@ class TQLabel; class ArtsStatusView : public Template_ArtsView { Q_OBJECT + TQ_OBJECT public: ArtsStatusView(Arts::SoundServer server, TQWidget* =0, const char* =0 ); public slots: - void updateStatus(); + void updatetqStatus(); void suspendButtonClicked(); protected: diff --git a/arts/tools/templateview.cpp b/arts/tools/templateview.cpp index a589ff46..a89efac4 100644 --- a/arts/tools/templateview.cpp +++ b/arts/tools/templateview.cpp @@ -22,7 +22,7 @@ //#include -Template_ArtsView::Template_ArtsView( TQWidget* parent, const char* name ) : TQFrame( parent,name ){ +Template_ArtsView::Template_ArtsView( TQWidget* tqparent, const char* name ) : TQFrame( tqparent,name ){ //kdDebug()< #include -class Template_ArtsView : public QFrame +class Template_ArtsView : public TQFrame { Q_OBJECT + TQ_OBJECT public: Template_ArtsView( TQWidget* =0, const char* =0 ); ~Template_ArtsView(); diff --git a/juk/HACKING b/juk/HACKING index 2fb4d392..47ddf410 100644 --- a/juk/HACKING +++ b/juk/HACKING @@ -84,7 +84,7 @@ Spaces ================================================================================ Spaces should not be used between the conditional / loop type and the -conditional statement. They should also not be used after parenthesis. However +conditional statement. They should also not be used after tqparenthesis. However the should be to mark of mathematical or comparative operators. if ( foo == bar ) @@ -103,15 +103,15 @@ be inline in the headers. The organization of the members in a class should be roughly as follows: public: -public slots: +public Q_SLOTS: protected: -protected slots: -signals: +protected Q_SLOTS: +Q_SIGNALS: private: // member funtions -private slots: +private Q_SLOTS: private: // member variables -If there are no private slots there is no need for two private sections, however +If there are no private Q_SLOTS there is no need for two private sections, however private functions and private variables should be clearly separated. The implementations files -- .cpp files -- should follow (when possible) the diff --git a/juk/advancedsearchdialog.cpp b/juk/advancedsearchdialog.cpp index 711c1275..a7b73c65 100644 --- a/juk/advancedsearchdialog.cpp +++ b/juk/advancedsearchdialog.cpp @@ -36,9 +36,9 @@ AdvancedSearchDialog::AdvancedSearchDialog(const TQString &defaultName, const PlaylistSearch &defaultSearch, - TQWidget *parent, + TQWidget *tqparent, const char *name) : - KDialogBase(parent, name, true, i18n("Create Search Playlist"), Ok|Cancel) + KDialogBase(tqparent, name, true, i18n("Create Search Playlist"), Ok|Cancel) { makeVBoxMainWidget(); diff --git a/juk/advancedsearchdialog.h b/juk/advancedsearchdialog.h index 699d5eb8..65158273 100644 --- a/juk/advancedsearchdialog.h +++ b/juk/advancedsearchdialog.h @@ -27,6 +27,7 @@ class SearchLine; class AdvancedSearchDialog : public KDialogBase { Q_OBJECT + TQ_OBJECT public: struct Result @@ -38,7 +39,7 @@ public: AdvancedSearchDialog(const TQString &defaultName, const PlaylistSearch &defaultSearch = PlaylistSearch(), - TQWidget *parent = 0, + TQWidget *tqparent = 0, const char *name = 0); virtual ~AdvancedSearchDialog(); diff --git a/juk/akodeplayer.h b/juk/akodeplayer.h index 07181ba5..fb78fb42 100644 --- a/juk/akodeplayer.h +++ b/juk/akodeplayer.h @@ -18,6 +18,10 @@ #include +#ifdef Q_MOC_RUN +#define HAVE_AKODE +#endif // Q_MOC_RUN + #ifdef HAVE_AKODE #include @@ -33,6 +37,7 @@ namespace aKode { class KDE_EXPORT aKodePlayer : public Player { Q_OBJECT + TQ_OBJECT public: aKodePlayer(); diff --git a/juk/artsplayer.h b/juk/artsplayer.h index 73601b33..096074d9 100644 --- a/juk/artsplayer.h +++ b/juk/artsplayer.h @@ -21,6 +21,10 @@ #include +#ifdef Q_MOC_RUN +#define HAVE_ARTS 1 +#endif // Q_MOC_RUN + #if HAVE_ARTS #include "player.h" @@ -43,6 +47,7 @@ namespace KDE { class ArtsPlayer : public Player { Q_OBJECT + TQ_OBJECT public: ArtsPlayer(); diff --git a/juk/cache.cpp b/juk/cache.cpp index ada9334b..6cfed63f 100644 --- a/juk/cache.cpp +++ b/juk/cache.cpp @@ -84,9 +84,9 @@ void Cache::save() TQDataStream fs(&f); - Q_INT32 checksum = qChecksum(data.data(), data.size()); + TQ_INT32 checksum = qChecksum(data.data(), data.size()); - fs << Q_INT32(m_currentVersion) + fs << TQ_INT32(m_currentVersion) << checksum << data; @@ -106,7 +106,7 @@ void Cache::loadPlaylists(PlaylistCollection *collection) // static TQDataStream fs(&f); - Q_INT32 version; + TQ_INT32 version; fs >> version; switch(version) { @@ -117,7 +117,7 @@ void Cache::loadPlaylists(PlaylistCollection *collection) // static // we want to get a byte array with just the checksummed data. TQByteArray data; - Q_UINT16 checksum; + TQ_UINT16 checksum; fs >> checksum >> data; if(checksum != qChecksum(data.data(), data.size())) @@ -129,7 +129,7 @@ void Cache::loadPlaylists(PlaylistCollection *collection) // static while(!s.atEnd()) { - Q_INT32 playlistType; + TQ_INT32 playlistType; s >> playlistType; Playlist *playlist = 0; @@ -175,7 +175,7 @@ void Cache::loadPlaylists(PlaylistCollection *collection) // static break; } if(version == 2) { - Q_INT32 sortColumn; + TQ_INT32 sortColumn; s >> sortColumn; if(playlist) playlist->setSorting(sortColumn); @@ -217,33 +217,33 @@ void Cache::savePlaylists(const PlaylistList &playlists) for(PlaylistList::ConstIterator it = playlists.begin(); it != playlists.end(); ++it) { if(*it) { if(dynamic_cast(*it)) { - s << Q_INT32(History) + s << TQ_INT32(History) << *static_cast(*it); } else if(dynamic_cast(*it)) { - s << Q_INT32(Search) + s << TQ_INT32(Search) << *static_cast(*it); } else if(dynamic_cast(*it)) { if(!action("saveUpcomingTracks")->isChecked()) continue; - s << Q_INT32(Upcoming) + s << TQ_INT32(Upcoming) << *static_cast(*it); } else if(dynamic_cast(*it)) { - s << Q_INT32(Folder) + s << TQ_INT32(Folder) << *static_cast(*it); } else { - s << Q_INT32(Normal) + s << TQ_INT32(Normal) << *(*it); } - s << Q_INT32((*it)->sortColumn()); + s << TQ_INT32((*it)->sortColumn()); } } TQDataStream fs(&f); - fs << Q_INT32(playlistCacheVersion); + fs << TQ_INT32(playlistCacheVersion); fs << qChecksum(data.data(), data.size()); fs << data; @@ -275,9 +275,9 @@ void Cache::load() if(!f.open(IO_ReadOnly)) return; - CacheDataStream s(&f); + CacheDataStream s(TQT_TQIODEVICE(&f)); - Q_INT32 version; + TQ_INT32 version; s >> version; TQBuffer buffer; @@ -288,7 +288,7 @@ void Cache::load() case 1: { s.setCacheVersion(1); - Q_INT32 checksum; + TQ_INT32 checksum; TQByteArray data; s >> checksum >> data; diff --git a/juk/cache.h b/juk/cache.h index 6d67f1fd..96fb83af 100644 --- a/juk/cache.h +++ b/juk/cache.h @@ -49,7 +49,7 @@ private: * version. */ -class CacheDataStream : public QDataStream +class CacheDataStream : public TQDataStream { public: CacheDataStream(TQIODevice *d) : TQDataStream(d), m_cacheVersion(0) {} diff --git a/juk/categoryreaderinterface.cpp b/juk/categoryreaderinterface.cpp index 3844fc21..103329b3 100644 --- a/juk/categoryreaderinterface.cpp +++ b/juk/categoryreaderinterface.cpp @@ -50,7 +50,7 @@ TQString CategoryReaderInterface::fixupTrack(const TQString &track, unsigned cat if(emptyAction(trackId) == TagRenamerOptions::UseReplacementValue) str = emptyText(trackId); else - return TQString::null; + return TQString(); } unsigned minimumWidth = trackWidth(categoryNum); diff --git a/juk/collectionlist.cpp b/juk/collectionlist.cpp index 5c06049a..2f005009 100644 --- a/juk/collectionlist.cpp +++ b/juk/collectionlist.cpp @@ -90,7 +90,7 @@ PlaylistItem *CollectionList::createItem(const FileHandle &file, TQListViewItem // It's probably possible to optimize the line below away, but, well, right // now it's more important to not load duplicate items. - if(m_itemsDict.find(file.absFilePath())) + if(m_itemsDict.tqfind(file.absFilePath())) return 0; PlaylistItem *item = new CollectionListItem(file); @@ -162,7 +162,7 @@ void CollectionList::slotRefreshItems(const KFileItemList &items) // If the item is no longer on disk, remove it from the collection. if(item->file().fileInfo().exists()) - item->repaint(); + item->tqrepaint(); else clearItem(item); } @@ -228,7 +228,7 @@ CollectionList::CollectionList(PlaylistCollection *collection) : m_itemsDict(5003), m_columnTags(15, 0) { - new KAction(i18n("Show Playing"), KShortcut(), actions(), "showPlaying"); + new KAction(i18n("Show Playing"), KShortcut(), ActionCollection::actions(), "showPlaying"); connect(action("showPlaying"), TQT_SIGNAL(activated()), this, TQT_SLOT(slotShowPlaying())); @@ -284,9 +284,9 @@ void CollectionList::contentsDragMoveEvent(TQDragMoveEvent *e) TQString CollectionList::addStringToDict(const TQString &value, unsigned column) { if(column > m_columnTags.count() || value.stripWhiteSpace().isEmpty()) - return TQString::null; + return TQString(); - int *refCountPtr = m_columnTags[column]->find(value); + int *refCountPtr = m_columnTags[column]->tqfind(value); if(refCountPtr) ++(*refCountPtr); else { @@ -336,7 +336,7 @@ void CollectionList::removeStringFromDict(const TQString &value, unsigned column if(column > m_columnTags.count() || value.isEmpty()) return; - int *refCountPtr = m_columnTags[column]->find(value); + int *refCountPtr = m_columnTags[column]->tqfind(value); if(refCountPtr) { --(*refCountPtr); if(*refCountPtr == 0) { @@ -392,13 +392,13 @@ void CollectionListItem::refresh() file().coverInfo()->setCover(); if(listView()->isVisible()) - repaint(); + tqrepaint(); - for(PlaylistItemList::Iterator it = m_children.begin(); it != m_children.end(); ++it) { + for(PlaylistItemList::Iterator it = m_tqchildren.begin(); it != m_tqchildren.end(); ++it) { (*it)->playlist()->update(); (*it)->playlist()->dataChanged(); if((*it)->listView()->isVisible()) - (*it)->repaint(); + (*it)->tqrepaint(); } CollectionList::instance()->dataChanged(); @@ -411,7 +411,7 @@ PlaylistItem *CollectionListItem::itemForPlaylist(const Playlist *playlist) return this; PlaylistItemList::ConstIterator it; - for(it = m_children.begin(); it != m_children.end(); ++it) + for(it = m_tqchildren.begin(); it != m_tqchildren.end(); ++it) if((*it)->playlist() == playlist) return *it; return 0; @@ -428,11 +428,11 @@ void CollectionListItem::updateCollectionDict(const TQString &oldPath, const TQS collection->addToDict(newPath, this); } -void CollectionListItem::repaint() const +void CollectionListItem::tqrepaint() const { - TQListViewItem::repaint(); - for(PlaylistItemList::ConstIterator it = m_children.begin(); it != m_children.end(); ++it) - (*it)->repaint(); + TQListViewItem::tqrepaint(); + for(PlaylistItemList::ConstIterator it = m_tqchildren.begin(); it != m_tqchildren.end(); ++it) + (*it)->tqrepaint(); } //////////////////////////////////////////////////////////////////////////////// @@ -468,8 +468,8 @@ CollectionListItem::~CollectionListItem() { m_shuttingDown = true; - for(PlaylistItemList::ConstIterator it = m_children.begin(); - it != m_children.end(); + for(PlaylistItemList::ConstIterator it = m_tqchildren.begin(); + it != m_tqchildren.end(); ++it) { (*it)->playlist()->clearItem(*it); @@ -486,13 +486,13 @@ CollectionListItem::~CollectionListItem() void CollectionListItem::addChildItem(PlaylistItem *child) { - m_children.append(child); + m_tqchildren.append(child); } void CollectionListItem::removeChildItem(PlaylistItem *child) { if(!m_shuttingDown) - m_children.remove(child); + m_tqchildren.remove(child); } bool CollectionListItem::checkCurrent() diff --git a/juk/collectionlist.h b/juk/collectionlist.h index 4143889c..82fa9c12 100644 --- a/juk/collectionlist.h +++ b/juk/collectionlist.h @@ -64,6 +64,7 @@ class CollectionList : public Playlist friend class CollectionListItem; Q_OBJECT + TQ_OBJECT public: /** @@ -80,7 +81,7 @@ public: */ TQStringList uniqueSet(UniqueSetType t) const; - CollectionListItem *lookup(const TQString &file) { return m_itemsDict.find(file); } + CollectionListItem *lookup(const TQString &file) { return m_itemsDict.tqfind(file); } virtual PlaylistItem *createItem(const FileHandle &file, TQListViewItem * = 0, @@ -95,7 +96,7 @@ public: virtual bool canReload() const { return true; } public slots: - virtual void paste() { decode(kapp->clipboard()->data()); } + virtual void paste() { decode(kapp->tqclipboard()->data()); } virtual void clear(); void slotCheckCache(); @@ -115,7 +116,7 @@ protected: // These methods are used by CollectionListItem, which is a friend class. - void addToDict(const TQString &file, CollectionListItem *item) { m_itemsDict.replace(file, item); } + void addToDict(const TQString &file, CollectionListItem *item) { m_itemsDict.tqreplace(file, item); } void removeFromDict(const TQString &file) { m_itemsDict.remove(file); } // These methods are also used by CollectionListItem, to manage the @@ -127,7 +128,7 @@ protected: void addWatched(const TQString &file) { m_dirWatch->addFile(file); } void removeWatched(const TQString &file) { m_dirWatch->removeFile(file); } - virtual bool hasItem(const TQString &file) const { return m_itemsDict.find(file); } + virtual bool hasItem(const TQString &file) const { return m_itemsDict.tqfind(file); } signals: void signalCollectionChanged(); @@ -171,8 +172,8 @@ public: virtual void refresh(); PlaylistItem *itemForPlaylist(const Playlist *playlist); void updateCollectionDict(const TQString &oldPath, const TQString &newPath); - void repaint() const; - PlaylistItemList children() const { return m_children; } + void tqrepaint() const; + PlaylistItemList tqchildren() const { return m_tqchildren; } protected: CollectionListItem(const FileHandle &file); @@ -191,7 +192,7 @@ protected: private: bool m_shuttingDown; - PlaylistItemList m_children; + PlaylistItemList m_tqchildren; }; #endif diff --git a/juk/coverdialog.cpp b/juk/coverdialog.cpp index 509f0695..2b04f3c1 100644 --- a/juk/coverdialog.cpp +++ b/juk/coverdialog.cpp @@ -34,8 +34,8 @@ using CoverUtility::CoverIconViewItem; class AllArtistsListViewItem : public KListViewItem { public: - AllArtistsListViewItem(TQListView *parent) : - KListViewItem(parent, i18n("")) + AllArtistsListViewItem(TQListView *tqparent) : + KListViewItem(tqparent, i18n("")) { } @@ -48,8 +48,8 @@ public: class CaseInsensitiveItem : public KListViewItem { public: - CaseInsensitiveItem(TQListView *parent, const TQString &text) : - KListViewItem(parent, text) + CaseInsensitiveItem(TQListView *tqparent, const TQString &text) : + KListViewItem(tqparent, text) { } @@ -60,8 +60,8 @@ public: } }; -CoverDialog::CoverDialog(TQWidget *parent) : - CoverDialogBase(parent, "juk_cover_dialog", WType_Dialog) +CoverDialog::CoverDialog(TQWidget *tqparent) : + CoverDialogBase(tqparent, "juk_cover_dialog", WType_Dialog) { m_covers->setResizeMode(TQIconView::Adjust); m_covers->setGridX(140); diff --git a/juk/coverdialog.h b/juk/coverdialog.h index 751f77c2..6bbbba4a 100644 --- a/juk/coverdialog.h +++ b/juk/coverdialog.h @@ -21,8 +21,9 @@ class CoverDialog : public CoverDialogBase { Q_OBJECT + TQ_OBJECT public: - CoverDialog(TQWidget *parent); + CoverDialog(TQWidget *tqparent); ~CoverDialog(); virtual void show(); diff --git a/juk/coverdialogbase.ui b/juk/coverdialogbase.ui index 180dc8b0..d220a5c9 100644 --- a/juk/coverdialogbase.ui +++ b/juk/coverdialogbase.ui @@ -1,10 +1,10 @@ CoverDialogBase - + CoverDialogBase - + 0 0 @@ -50,7 +50,7 @@ 0 - + 164 0 @@ -63,23 +63,23 @@ false - + - layout3 + tqlayout3 unnamed - + - layout3 + tqlayout3 unnamed - + m_clearSearch @@ -164,7 +164,7 @@ 0 image0 - contextMenuRequested(QIconViewItem *item, const QPoint &pos) + contextMenuRequested(TQIconViewItem *item, const TQPoint &pos) gridX gridY @@ -177,9 +177,9 @@ m_artists - clicked(QListViewItem*) + clicked(TQListViewItem*) CoverDialogBase - slotArtistClicked(QListViewItem*) + slotArtistClicked(TQListViewItem*) m_clearSearch @@ -189,18 +189,18 @@ m_covers - contextMenuRequested(QIconViewItem*,const QPoint&) + contextMenuRequested(TQIconViewItem*,const TQPoint&) CoverDialogBase - slotContextRequested(QIconViewItem*,const QPoint&) + slotContextRequested(TQIconViewItem*,const TQPoint&) - - slotArtistClicked(QListViewItem *item) - slotContextRequested(QIconViewItem *, const QPoint &pt) - - + + slotArtistClicked(TQListViewItem *item) + slotContextRequested(TQIconViewItem *, const TQPoint &pt) + + - class QIconViewItem; + class TQIconViewItem; klistview.h diff --git a/juk/covericonview.cpp b/juk/covericonview.cpp index fc400e78..2dd1260b 100644 --- a/juk/covericonview.cpp +++ b/juk/covericonview.cpp @@ -18,15 +18,15 @@ using CoverUtility::CoverIconViewItem; -CoverIconViewItem::CoverIconViewItem(coverKey id, TQIconView *parent) : - KIconViewItem(parent), m_id(id) +CoverIconViewItem::CoverIconViewItem(coverKey id, TQIconView *tqparent) : + KIconViewItem(tqparent), m_id(id) { CoverDataPtr data = CoverManager::coverInfo(id); - setText(TQString("%1 - %2").arg(data->artist, data->album)); + setText(TQString("%1 - %2").tqarg(data->artist, data->album)); setPixmap(data->thumbnail()); } -CoverIconView::CoverIconView(TQWidget *parent, const char *name) : KIconView(parent, name) +CoverIconView::CoverIconView(TQWidget *tqparent, const char *name) : KIconView(tqparent, name) { setResizeMode(Adjust); } diff --git a/juk/covericonview.h b/juk/covericonview.h index 42e44d66..a12f4354 100644 --- a/juk/covericonview.h +++ b/juk/covericonview.h @@ -29,7 +29,7 @@ namespace CoverUtility class CoverIconViewItem : public KIconViewItem { public: - CoverIconViewItem(coverKey id, TQIconView *parent); + CoverIconViewItem(coverKey id, TQIconView *tqparent); coverKey id() const { return m_id; } @@ -49,7 +49,7 @@ using CoverUtility::CoverIconViewItem; class CoverIconView : public KIconView { public: - CoverIconView(TQWidget *parent, const char *name); + CoverIconView(TQWidget *tqparent, const char *name); CoverIconViewItem *currentItem() const; diff --git a/juk/coverinfo.cpp b/juk/coverinfo.cpp index 67e8514a..49bf0f55 100644 --- a/juk/coverinfo.cpp +++ b/juk/coverinfo.cpp @@ -29,15 +29,15 @@ #include "coverinfo.h" #include "tag.h" -struct CoverPopup : public QWidget +struct CoverPopup : public TQWidget { CoverPopup(const TQPixmap &image, const TQPoint &p) : TQWidget(0, 0, WDestructiveClose | WX11BypassWM) { - TQHBoxLayout *layout = new TQHBoxLayout(this); + TQHBoxLayout *tqlayout = new TQHBoxLayout(this); TQLabel *label = new TQLabel(this); - layout->addWidget(label); + tqlayout->addWidget(label); label->setFrameStyle(TQFrame::Box | TQFrame::Raised); label->setLineWidth(1); label->setPixmap(image); @@ -225,9 +225,9 @@ void CoverInfo::popup() const TQString CoverInfo::coverLocation(CoverSize size) const { TQString fileName(TQFile::encodeName(m_file.tag()->artist() + " - " + m_file.tag()->album())); - TQRegExp maskedFileNameChars("[ /?:\"]"); + TQRegExp tqmaskedFileNameChars("[ /?:\"]"); - fileName.replace(maskedFileNameChars, "_"); + fileName.tqreplace(tqmaskedFileNameChars, "_"); fileName.append(".png"); TQString dataDir = KGlobal::dirs()->saveLocation("appdata"); @@ -267,7 +267,7 @@ bool CoverInfo::convertOldStyleCover() const applyCoverToWholeAlbum(); - // If we convert we need to remove the old cover otherwise we'll find + // If we convert we need to remove the old cover otherwise we'll tqfind // it later if the user un-sets the new cover. if(!TQFile::remove(oldLocation)) kdError(65432) << "Unable to remove converted cover at " << oldLocation << endl; diff --git a/juk/covermanager.cpp b/juk/covermanager.cpp index f7530daa..811f904f 100644 --- a/juk/covermanager.cpp +++ b/juk/covermanager.cpp @@ -42,13 +42,13 @@ typedef TQDict TrackLookupMap; static KStaticDeleter sd; const char *CoverDrag::mimetype = "application/x-juk-coverid"; -// Caches the QPixmaps for the covers so that the covers are not all kept in +// Caches the TQPixmaps for the covers so that the covers are not all kept in // memory for no reason. typedef TQCache CoverPixmapCache; CoverManagerPrivate *CoverManager::m_data = 0; -// Used to save and load CoverData from a QDataStream +// Used to save and load CoverData from a TQDataStream TQDataStream &operator<<(TQDataStream &out, const CoverData &data); TQDataStream &operator>>(TQDataStream &in, CoverData &data); @@ -156,20 +156,20 @@ void CoverManagerPrivate::saveCovers() const TQDataStream out(&file); // Write out the version and count - out << Q_UINT32(0) << Q_UINT32(covers.count()); + out << TQ_UINT32(0) << TQ_UINT32(covers.count()); // Write out the data for(CoverDataMap::ConstIterator it = covers.begin(); it != covers.end(); ++it) { - out << Q_UINT32(it.key()); + out << TQ_UINT32(it.key()); out << *it.data(); } // Now write out the track mapping. - out << Q_UINT32(tracks.count()); + out << TQ_UINT32(tracks.count()); TQDictIterator trackMapIt(tracks); while(trackMapIt.current()) { - out << trackMapIt.currentKey() << Q_UINT32(*trackMapIt.current()); + out << trackMapIt.currentKey() << TQ_UINT32(*trackMapIt.current()); ++trackMapIt; } } @@ -186,7 +186,7 @@ void CoverManagerPrivate::loadCovers() } TQDataStream in(&file); - Q_UINT32 count, version; + TQ_UINT32 count, version; // First thing we'll read in will be the version. // Only version 0 is defined for now. @@ -200,9 +200,9 @@ void CoverManagerPrivate::loadCovers() // Read in the count next, then the data. in >> count; - for(Q_UINT32 i = 0; i < count; ++i) { - // Read the id, and 3 QStrings for every 1 of the count. - Q_UINT32 id; + for(TQ_UINT32 i = 0; i < count; ++i) { + // Read the id, and 3 TQStrings for every 1 of the count. + TQ_UINT32 id; CoverDataPtr data(new CoverData); in >> id; @@ -213,9 +213,9 @@ void CoverManagerPrivate::loadCovers() } in >> count; - for(Q_UINT32 i = 0; i < count; ++i) { + for(TQ_UINT32 i = 0; i < count; ++i) { TQString path; - Q_UINT32 id; + TQ_UINT32 id; in >> path >> id; @@ -223,7 +223,7 @@ void CoverManagerPrivate::loadCovers() // don't do so again. Possible due to a coding error during 3.5 // development. - if(!tracks.find(path)) { + if(!tracks.tqfind(path)) { ++covers[(coverKey) id]->refCount; // Another track using this. tracks.insert(path, new coverKey(id)); } @@ -242,7 +242,7 @@ coverKey CoverManagerPrivate::nextId() const // Start from 1... coverKey key = 1; - while(covers.contains(key)) + while(covers.tqcontains(key)) ++key; return key; @@ -269,13 +269,13 @@ const char *CoverDrag::format(int i) const return 0; } -TQByteArray CoverDrag::encodedData(const char *mimetype) const +TQByteArray CoverDrag::tqencodedData(const char *mimetype) const { if(qstrcmp(CoverDrag::mimetype, mimetype) == 0) { TQByteArray data; TQDataStream ds(data, IO_WriteOnly); - ds << Q_UINT32(m_id); + ds << TQ_UINT32(m_id); return data; } else if(qstrcmp(mimetype, "image/png") == 0) { @@ -303,9 +303,9 @@ bool CoverDrag::decode(const TQMimeSource *e, coverKey &id) if(!canDecode(e)) return false; - TQByteArray data = e->encodedData(mimetype); + TQByteArray data = e->tqencodedData(mimetype); TQDataStream ds(data, IO_ReadOnly); - Q_UINT32 i; + TQ_UINT32 i; ds >> i; id = (coverKey) i; @@ -371,7 +371,7 @@ TQPixmap CoverManager::coverFromData(const CoverData &coverData, Size size) if(size == Thumbnail) { // Convert to image for smoothScale() TQImage image = pix->convertToImage(); - pix->convertFromImage(image.smoothScale(80, 80, TQImage::ScaleMin)); + pix->convertFromImage(image.smoothScale(80, 80, TQ_ScaleMin)); } TQPixmap returnValue = *pix; // Save it early. @@ -395,7 +395,7 @@ coverKey CoverManager::addCover(const TQPixmap &large, const TQString &artist, c // Save it to file first! - TQString ext = TQString("/coverdb/coverID-%1.png").arg(id); + TQString ext = TQString("/coverdb/coverID-%1.png").tqarg(id); coverData->path = KGlobal::dirs()->saveLocation("appdata") + ext; kdDebug() << "Saving pixmap to " << coverData->path << endl; @@ -413,8 +413,8 @@ coverKey CoverManager::addCover(const TQPixmap &large, const TQString &artist, c data()->covers[id] = coverData; // Make sure the new cover isn't inadvertently cached. - data()->pixmapCache.remove(TQString("f%1").arg(coverData->path)); - data()->pixmapCache.remove(TQString("t%1").arg(coverData->path)); + data()->pixmapCache.remove(TQString("f%1").tqarg(coverData->path)); + data()->pixmapCache.remove(TQString("t%1").tqarg(coverData->path)); return id; } @@ -426,7 +426,7 @@ coverKey CoverManager::addCover(const TQString &path, const TQString &artist, co bool CoverManager::hasCover(coverKey id) { - return data()->covers.contains(id); + return data()->covers.tqcontains(id); } bool CoverManager::removeCover(coverKey id) @@ -436,8 +436,8 @@ bool CoverManager::removeCover(coverKey id) // Remove cover from cache. CoverDataPtr coverData = coverInfo(id); - data()->pixmapCache.remove(TQString("f%1").arg(coverData->path)); - data()->pixmapCache.remove(TQString("t%1").arg(coverData->path)); + data()->pixmapCache.remove(TQString("f%1").tqarg(coverData->path)); + data()->pixmapCache.remove(TQString("t%1").tqarg(coverData->path)); // Remove references to files that had that track ID. TQDictIterator it(data()->tracks); @@ -462,8 +462,8 @@ bool CoverManager::replaceCover(coverKey id, const TQPixmap &large) CoverDataPtr coverData = coverInfo(id); // Empty old pixmaps from cache. - data()->pixmapCache.remove(TQString("%1%2").arg("t", coverData->path)); - data()->pixmapCache.remove(TQString("%1%2").arg("f", coverData->path)); + data()->pixmapCache.remove(TQString("%1%2").tqarg("t", coverData->path)); + data()->pixmapCache.remove(TQString("%1%2").tqarg("f", coverData->path)); large.save(coverData->path, "PNG"); return true; @@ -504,7 +504,7 @@ TQValueList CoverManager::keys() void CoverManager::setIdForTrack(const TQString &path, coverKey id) { - coverKey *oldId = data()->tracks.find(path); + coverKey *oldId = data()->tracks.tqfind(path); if(oldId && (id == *oldId)) return; // We're already done. @@ -526,7 +526,7 @@ void CoverManager::setIdForTrack(const TQString &path, coverKey id) coverKey CoverManager::idForTrack(const TQString &path) { - coverKey *coverPtr = data()->tracks.find(path); + coverKey *coverPtr = data()->tracks.tqfind(path); if(!coverPtr) return NoMatch; @@ -536,7 +536,7 @@ coverKey CoverManager::idForTrack(const TQString &path) CoverDataPtr CoverManager::coverInfo(coverKey id) { - if(data()->covers.contains(id)) + if(data()->covers.tqcontains(id)) return data()->covers[id]; return CoverDataPtr(0); diff --git a/juk/covermanager.h b/juk/covermanager.h index d7eda155..a984f01e 100644 --- a/juk/covermanager.h +++ b/juk/covermanager.h @@ -62,13 +62,13 @@ typedef TQMap CoverDataMap; * * @author Michael Pyne */ -class CoverDrag : public QDragObject +class CoverDrag : public TQDragObject { public: CoverDrag(coverKey id, TQWidget *src); virtual const char *format(int i) const; - virtual TQByteArray encodedData(const char *mimetype) const; + virtual TQByteArray tqencodedData(const char *mimetype) const; void setId(coverKey id) { m_id = id; } @@ -191,7 +191,7 @@ public: * Replaces the cover art for the cover identified by @p id with @p large. * Any other metadata such as artist and album is unchanged. * - * @param id The id of the cover to replace. + * @param id The id of the cover to tqreplace. * @param large The full size cover art for the new cover. */ static bool replaceCover(coverKey id, const TQPixmap &large); diff --git a/juk/deletedialog.cpp b/juk/deletedialog.cpp index e780eec0..688015c1 100644 --- a/juk/deletedialog.cpp +++ b/juk/deletedialog.cpp @@ -33,8 +33,8 @@ // DeleteWidget implementation ////////////////////////////////////////////////////////////////////////////// -DeleteWidget::DeleteWidget(TQWidget *parent, const char *name) - : DeleteDialogBase(parent, name) +DeleteWidget::DeleteWidget(TQWidget *tqparent, const char *name) + : DeleteDialogBase(tqparent, name) { KConfigGroup messageGroup(KGlobal::config(), "FileRemover"); @@ -69,8 +69,8 @@ void DeleteWidget::slotShouldDelete(bool shouldDelete) // DeleteDialog implementation ////////////////////////////////////////////////////////////////////////////// -DeleteDialog::DeleteDialog(TQWidget *parent, const char *name) : - KDialogBase(Swallow, WStyle_DialogBorder, parent, name, +DeleteDialog::DeleteDialog(TQWidget *tqparent, const char *name) : + KDialogBase(Swallow, WStyle_DialogBorder, tqparent, name, true /* modal */, i18n("About to delete selected files"), Ok | Cancel, Cancel /* Default */, true /* separator */), m_trashGuiItem(i18n("&Send to Trash"), "trashcan_full") diff --git a/juk/deletedialog.h b/juk/deletedialog.h index 34a98a6a..bc347f41 100644 --- a/juk/deletedialog.h +++ b/juk/deletedialog.h @@ -29,9 +29,10 @@ class TQWidgetStack; class DeleteWidget : public DeleteDialogBase { Q_OBJECT + TQ_OBJECT public: - DeleteWidget(TQWidget *parent = 0, const char *name = 0); + DeleteWidget(TQWidget *tqparent = 0, const char *name = 0); void setFiles(const TQStringList &files); @@ -42,9 +43,10 @@ protected slots: class DeleteDialog : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - DeleteDialog(TQWidget *parent, const char *name = "delete_dialog"); + DeleteDialog(TQWidget *tqparent, const char *name = "delete_dialog"); bool confirmDeleteList(const TQStringList &condemnedFiles); void setFiles(const TQStringList &files); diff --git a/juk/deletedialogbase.ui b/juk/deletedialogbase.ui index f1054d79..992a6af5 100644 --- a/juk/deletedialogbase.ui +++ b/juk/deletedialogbase.ui @@ -1,10 +1,10 @@ DeleteDialogBase - + DeleteDialogBase - + 0 0 @@ -12,7 +12,7 @@ 374 - + 420 320 @@ -22,15 +22,15 @@ unnamed - + - layout4 + tqlayout4 unnamed - + ddWarningIcon @@ -46,33 +46,33 @@ Icon Placeholder, not in GUI - + - layout3 + tqlayout3 unnamed - + textLabel1 Are you sure that you want to remove these items? - + AlignCenter - + ddDeleteText Deletion method placeholder, never shown to user. - + WordBreak|AlignCenter @@ -94,18 +94,18 @@ This is the list of items that are about to be deleted. - + ddNumFiles Placeholder for number of files, not in GUI - + AlignVCenter|AlignRight - + ddShouldDelete @@ -133,10 +133,10 @@ slotShouldDelete(bool) - + slotShouldDelete(bool) - - + + klistbox.h diff --git a/juk/directorylist.cpp b/juk/directorylist.cpp index 43df3dda..23532370 100644 --- a/juk/directorylist.cpp +++ b/juk/directorylist.cpp @@ -28,8 +28,8 @@ //////////////////////////////////////////////////////////////////////////////// DirectoryList::DirectoryList(const TQStringList &directories, bool importPlaylists, - TQWidget *parent, const char *name) : - KDialogBase(parent, name, true, i18n("Folder List"), Ok | Cancel, Ok, true), + TQWidget *tqparent, const char *name) : + KDialogBase(tqparent, name, true, i18n("Folder List"), Ok | Cancel, Ok, true), m_dirList(directories), m_importPlaylists(importPlaylists) { @@ -50,9 +50,9 @@ DirectoryList::DirectoryList(const TQStringList &directories, bool importPlaylis m_base->importPlaylistsCheckBox->setChecked(importPlaylists); - TQSize sz = sizeHint(); + TQSize sz = tqsizeHint(); setMinimumSize(kMax(350, sz.width()), kMax(250, sz.height())); - resize(sizeHint()); + resize(tqsizeHint()); } DirectoryList::~DirectoryList() @@ -78,7 +78,7 @@ DirectoryList::Result DirectoryList::exec() void DirectoryList::slotAddDirectory() { TQString dir = KFileDialog::getExistingDirectory(); - if(!dir.isEmpty() && m_dirList.find(dir) == m_dirList.end()) { + if(!dir.isEmpty() && m_dirList.tqfind(dir) == m_dirList.end()) { m_dirList.append(dir); new KListViewItem(m_base->directoryListView, dir); m_result.addedDirs.append(dir); diff --git a/juk/directorylist.h b/juk/directorylist.h index d9b2a080..f25c21ae 100644 --- a/juk/directorylist.h +++ b/juk/directorylist.h @@ -22,6 +22,7 @@ class DirectoryListBase; class DirectoryList : public KDialogBase { Q_OBJECT + TQ_OBJECT public: struct Result @@ -33,7 +34,7 @@ public: }; DirectoryList(const TQStringList &directories, bool importPlaylists, - TQWidget *parent = 0, const char *name = 0); + TQWidget *tqparent = 0, const char *name = 0); virtual ~DirectoryList(); public slots: diff --git a/juk/directorylistbase.ui b/juk/directorylistbase.ui index 643417d3..62df27bd 100644 --- a/juk/directorylistbase.ui +++ b/juk/directorylistbase.ui @@ -1,10 +1,10 @@ DirectoryListBase - + DirectoryListBase - + 0 0 @@ -32,7 +32,7 @@ directoryListView - + rightColumnLayout @@ -56,14 +56,14 @@ Remove Folder - + informationLabel These folders will be scanned on startup for new files. - + WordBreak|AlignVCenter @@ -77,14 +77,14 @@ Expanding - + 20 40 - + importPlaylistsCheckBox @@ -102,8 +102,8 @@ kdialog.h - - + + klistview.h kpushbutton.h diff --git a/juk/dynamicplaylist.cpp b/juk/dynamicplaylist.cpp index 336d1e3e..a1ef1cd0 100644 --- a/juk/dynamicplaylist.cpp +++ b/juk/dynamicplaylist.cpp @@ -23,9 +23,9 @@ class PlaylistDirtyObserver : public PlaylistObserver { public: - PlaylistDirtyObserver(DynamicPlaylist *parent, Playlist *playlist) : + PlaylistDirtyObserver(DynamicPlaylist *tqparent, Playlist *playlist) : PlaylistObserver(playlist), - m_parent(parent) + m_parent(tqparent) { } diff --git a/juk/dynamicplaylist.h b/juk/dynamicplaylist.h index 20e496d0..f7c4f970 100644 --- a/juk/dynamicplaylist.h +++ b/juk/dynamicplaylist.h @@ -25,13 +25,14 @@ class DynamicPlaylist : public Playlist { Q_OBJECT + TQ_OBJECT public: /** * Creates a dynamic playlist based on lists. */ DynamicPlaylist(const PlaylistList &lists, PlaylistCollection *collection, - const TQString &name = TQString::null, + const TQString &name = TQString(), const TQString &iconName = "midi", bool setupPlaylist = true, bool synchronizePlaying = false); diff --git a/juk/exampleoptions.cpp b/juk/exampleoptions.cpp index e365546a..0f5bd862 100644 --- a/juk/exampleoptions.cpp +++ b/juk/exampleoptions.cpp @@ -21,8 +21,8 @@ #include "exampleoptions.h" -ExampleOptions::ExampleOptions(TQWidget *parent) : - ExampleOptionsBase(parent, "example options widget") +ExampleOptions::ExampleOptions(TQWidget *tqparent) : + ExampleOptionsBase(tqparent, "example options widget") { } @@ -44,8 +44,8 @@ void ExampleOptions::exampleFileChanged() emit fileChanged(); } -ExampleOptionsDialog::ExampleOptionsDialog(TQWidget *parent) : - TQDialog(parent, "example options dialog") +ExampleOptionsDialog::ExampleOptionsDialog(TQWidget *tqparent) : + TQDialog(tqparent, "example options dialog") { setCaption(i18n("JuK")); TQVBoxLayout *l = new TQVBoxLayout(this); diff --git a/juk/exampleoptions.h b/juk/exampleoptions.h index dca7a465..4d849b75 100644 --- a/juk/exampleoptions.h +++ b/juk/exampleoptions.h @@ -22,8 +22,9 @@ class ExampleOptions : public ExampleOptionsBase { Q_OBJECT + TQ_OBJECT public: - ExampleOptions(TQWidget *parent); + ExampleOptions(TQWidget *tqparent); protected slots: virtual void exampleSelectionChanged(); @@ -33,11 +34,12 @@ class ExampleOptions : public ExampleOptionsBase // We're not using KDialog(Base) because this dialog won't have any push // buttons to close it. It's just a little floating dialog. -class ExampleOptionsDialog : public QDialog +class ExampleOptionsDialog : public TQDialog { Q_OBJECT + TQ_OBJECT public: - ExampleOptionsDialog(TQWidget *parent); + ExampleOptionsDialog(TQWidget *tqparent); const ExampleOptions *widget() const { return m_options; } diff --git a/juk/exampleoptionsbase.ui b/juk/exampleoptionsbase.ui index a2280ef4..1c17798c 100644 --- a/juk/exampleoptionsbase.ui +++ b/juk/exampleoptionsbase.ui @@ -1,10 +1,10 @@ ExampleOptionsBase - + ExampleOptionsBase - + 0 0 @@ -19,7 +19,7 @@ unnamed - + buttonGroup3 @@ -30,7 +30,7 @@ unnamed - + m_fileTagsButton @@ -60,7 +60,7 @@ 24 - + m_manualTagsButton @@ -71,7 +71,7 @@ true - + m_manualGroup @@ -85,7 +85,7 @@ unnamed - + m_exampleArtist @@ -93,7 +93,7 @@ Artist - + m_exampleTitle @@ -101,7 +101,7 @@ Title - + m_exampleAlbum @@ -109,7 +109,7 @@ Album - + textLabel1 @@ -117,7 +117,7 @@ Title: - + textLabel2 @@ -125,7 +125,7 @@ Artist: - + m_exampleYear @@ -139,7 +139,7 @@ 2004 - + textLabel3 @@ -147,7 +147,7 @@ Album: - + textLabel4 @@ -155,7 +155,7 @@ Genre: - + textLabel5 @@ -163,7 +163,7 @@ Track number: - + m_exampleTrack @@ -171,7 +171,7 @@ 1 - + m_exampleGenre @@ -179,7 +179,7 @@ Genre - + textLabel6 @@ -267,16 +267,16 @@ m_exampleTrack m_exampleYear - + dataChanged() fileChanged() - - + + exampleSelectionChanged() exampleDataChanged() exampleFileChanged() - - + + kurlrequester.h klineedit.h diff --git a/juk/filehandle.h b/juk/filehandle.h index bbfd6c67..12216bb2 100644 --- a/juk/filehandle.h +++ b/juk/filehandle.h @@ -36,7 +36,7 @@ class FileHandle public: FileHandle(); FileHandle(const FileHandle &f); - explicit FileHandle(const TQFileInfo &info, const TQString &path = TQString::null); + explicit FileHandle(const TQFileInfo &info, const TQString &path = TQString()); explicit FileHandle(const TQString &path); FileHandle(const TQString &path, CacheDataStream &s); ~FileHandle(); diff --git a/juk/filehandleproperties.h b/juk/filehandleproperties.h index 4fc31f92..a930ad87 100644 --- a/juk/filehandleproperties.h +++ b/juk/filehandleproperties.h @@ -61,7 +61,7 @@ namespace FileHandleProperties { virtual TQString value(const FileHandle &) const { - return TQString::null; + return TQString(); } }; @@ -75,7 +75,7 @@ namespace FileHandleProperties static TQString property(const FileHandle &file, const TQCString &key) { - return propertyMap.contains(key) ? propertyMap[key]->value(file) : TQString::null; + return propertyMap.tqcontains(key) ? propertyMap[key]->value(file) : TQString(); } static TQStringList properties() diff --git a/juk/filerenamer.cpp b/juk/filerenamer.cpp index c1acb2ce..2155d11c 100644 --- a/juk/filerenamer.cpp +++ b/juk/filerenamer.cpp @@ -60,8 +60,8 @@ class ConfirmationDialog : public KDialogBase { public: ConfirmationDialog(const TQMap &files, - TQWidget *parent = 0, const char *name = 0) - : KDialogBase(parent, name, true, i18n("Warning"), Ok | Cancel) + TQWidget *tqparent = 0, const char *name = 0) + : KDialogBase(tqparent, name, true, i18n("Warning"), Ok | Cancel) { TQVBox *vbox = makeVBoxMainWidget(); TQHBox *hbox = new TQHBox(vbox); @@ -89,8 +89,8 @@ public: } lvHeight += lv->horizontalScrollBar()->height() + lv->header()->height(); - lv->setMinimumHeight(QMIN(lvHeight, 400)); - resize(QMIN(width(), 500), QMIN(minimumHeight(), 400)); + lv->setMinimumHeight(TQMIN(lvHeight, 400)); + resize(TQMIN(width(), 500), TQMIN(minimumHeight(), 400)); } }; @@ -140,7 +140,7 @@ ConfigCategoryReader::ConfigCategoryReader() : CategoryReaderInterface(), TQString ConfigCategoryReader::categoryValue(TagType type) const { if(!m_currentItem) - return TQString::null; + return TQString(); Tag *tag = m_currentItem->file().tag(); @@ -164,7 +164,7 @@ TQString ConfigCategoryReader::categoryValue(TagType type) const return tag->genre(); default: - return TQString::null; + return TQString(); } } @@ -224,15 +224,15 @@ bool ConfigCategoryReader::isDisabled(const CategoryID &category) const // Implementation of FileRenamerWidget // -FileRenamerWidget::FileRenamerWidget(TQWidget *parent) : - FileRenamerBase(parent), CategoryReaderInterface(), +FileRenamerWidget::FileRenamerWidget(TQWidget *tqparent) : + FileRenamerBase(tqparent), CategoryReaderInterface(), m_exampleFromFile(false) { TQLabel *temp = new TQLabel(0); m_exampleText->setPaletteBackgroundColor(temp->paletteBackgroundColor()); delete temp; - layout()->setMargin(0); // We'll be wrapped by KDialogBase + tqlayout()->setMargin(0); // We'll be wrapped by KDialogBase // This must be created before createTagRows() is called. @@ -348,23 +348,23 @@ unsigned FileRenamerWidget::addRowCategory(TagType category) row.downButton->setFlat(true); upMapper->connect(row.upButton, TQT_SIGNAL(clicked()), TQT_SLOT(map())); - upMapper->setMapping(row.upButton, id); + upMapper->setMapping(TQT_TQOBJECT(row.upButton), id); downMapper->connect(row.downButton, TQT_SIGNAL(clicked()), TQT_SLOT(map())); - downMapper->setMapping(row.downButton, id); + downMapper->setMapping(TQT_TQOBJECT(row.downButton), id); - TQString labelText = TQString("%1").arg(TagRenamerOptions::tagTypeText(category)); + TQString labelText = TQString("%1").tqarg(TagRenamerOptions::tagTypeText(category)); TQLabel *label = new TQLabel(labelText, frame); frame->setStretchFactor(label, 1); - label->setAlignment(AlignCenter); + label->tqsetAlignment(AlignCenter); TQVBox *options = new TQVBox(frame); row.enableButton = new KPushButton(i18n("Remove"), options); toggleMapper->connect(row.enableButton, TQT_SIGNAL(clicked()), TQT_SLOT(map())); - toggleMapper->setMapping(row.enableButton, id); + toggleMapper->setMapping(TQT_TQOBJECT(row.enableButton), id); row.optionsButton = new KPushButton(i18n("Options"), options); mapper->connect(row.optionsButton, TQT_SIGNAL(clicked()), TQT_SLOT(map())); - mapper->setMapping(row.optionsButton, id); + mapper->setMapping(TQT_TQOBJECT(row.optionsButton), id); row.widget->show(); m_rows.append(row); @@ -378,10 +378,10 @@ unsigned FileRenamerWidget::addRowCategory(TagType category) void FileRenamerWidget::moveSignalMappings(unsigned oldId, unsigned newId) { - mapper->setMapping(m_rows[oldId].optionsButton, newId); - downMapper->setMapping(m_rows[oldId].downButton, newId); - upMapper->setMapping(m_rows[oldId].upButton, newId); - toggleMapper->setMapping(m_rows[oldId].enableButton, newId); + mapper->setMapping(TQT_TQOBJECT(m_rows[oldId].optionsButton), newId); + downMapper->setMapping(TQT_TQOBJECT(m_rows[oldId].downButton), newId); + upMapper->setMapping(TQT_TQOBJECT(m_rows[oldId].upButton), newId); + toggleMapper->setMapping(TQT_TQOBJECT(m_rows[oldId].enableButton), newId); } bool FileRenamerWidget::removeRow(unsigned id) @@ -410,9 +410,9 @@ bool FileRenamerWidget::removeRow(unsigned id) if(m_rows[id].position > 0) checkboxPosition = m_rows[id].position - 1; - // The checkbox is contained within a layout widget, so the layout + // The checkbox is contained within a tqlayout widget, so the tqlayout // widget is the one the needs to die. - delete m_folderSwitches[checkboxPosition]->parent(); + delete m_folderSwitches[checkboxPosition]->tqparent(); m_folderSwitches.erase(&m_folderSwitches[checkboxPosition]); // Go through all the rows and if they have the same category and a @@ -480,10 +480,10 @@ void FileRenamerWidget::createTagRows() m_rows.reserve(categoryOrder.count()); m_folderSwitches.reserve(categoryOrder.count() - 1); - 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"); + mapper = new TQSignalMapper(TQT_TQOBJECT(this), "signal mapper"); + toggleMapper = new TQSignalMapper(TQT_TQOBJECT(this), "toggle mapper"); + upMapper = new TQSignalMapper(TQT_TQOBJECT(this), "up button mapper"); + downMapper = new TQSignalMapper(TQT_TQOBJECT(this), "down button mapper"); connect(mapper, TQT_SIGNAL(mapped(int)), TQT_SLOT(showCategoryOption(int))); connect(toggleMapper, TQT_SIGNAL(mapped(int)), TQT_SLOT(slotRemoveRow(int))); @@ -578,7 +578,7 @@ TQString FileRenamerWidget::fileCategoryValue(TagType category) const return tag->genre(); default: - return TQString::null; + return TQString(); } } @@ -609,7 +609,7 @@ TQString FileRenamerWidget::categoryValue(TagType category) const return example->m_exampleGenre->text(); default: - return TQString::null; + return TQString(); } } @@ -675,17 +675,17 @@ 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. - TQBoxLayout *layout = dynamic_cast(m_mainFrame->layout()); + TQBoxLayout *tqlayout = dynamic_cast(m_mainFrame->tqlayout()); - layout->remove(l); - layout->insertWidget(2 * newPos, l); + tqlayout->remove(l); + tqlayout->insertWidget(2 * newPos, l); // Move the top item two spaces in the opposite direction, for a similar // reason. - layout->remove(w); - layout->insertWidget(2 * pos, w); - layout->invalidate(); + tqlayout->remove(w); + tqlayout->insertWidget(2 * pos, w); + tqlayout->tqinvalidate(); TQTimer::singleShot(0, this, TQT_SLOT(exampleTextChanged())); } @@ -778,7 +778,7 @@ void FileRenamerWidget::insertCategory() // Set its down button to be disabled. m_rows[id].downButton->setEnabled(false); - m_mainFrame->layout()->invalidate(); + m_mainFrame->tqlayout()->tqinvalidate(); m_mainView->update(); // Now update according to the code in loadConfig(). @@ -864,7 +864,7 @@ void FileRenamer::rename(const PlaylistItemList &items) if(itemMap.isEmpty() || ConfirmationDialog(map).exec() != TQDialog::Accepted) return; - KApplication::setOverrideCursor(Qt::waitCursor); + KApplication::setOverrideCursor(TQt::waitCursor); for(TQMap::ConstIterator it = map.begin(); it != map.end(); ++it) { @@ -875,7 +875,7 @@ void FileRenamer::rename(const PlaylistItemList &items) setFolderIcon(it.data(), itemMap[it.key()]); } else - errorFiles << i18n("%1 to %2").arg(it.key()).arg(it.data()); + errorFiles << i18n("%1 to %2").tqarg(it.key()).tqarg(it.data()); processEvents(); } @@ -906,7 +906,7 @@ bool FileRenamer::moveFile(const TQString &src, const TQString &dest) // Get just the directory. KURL dir = dstURL; - dir.setFileName(TQString::null); + dir.setFileName(TQString()); // Create the directory. if(!KStandardDirs::exists(dir.path())) @@ -939,7 +939,7 @@ void FileRenamer::setFolderIcon(const KURL &dst, const PlaylistItem *item) path.append("/" + (*it)); kdDebug() << "Checking path: " << path << endl; - if((*it).find(item->file().tag()->album()) != -1 && + if((*it).tqfind(item->file().tag()->album()) != -1 && !TQFile::exists(path + "/.directory")) { // Seems to be a match, let's set the folder icon for the current @@ -952,7 +952,7 @@ void FileRenamer::setFolderIcon(const KURL &dst, const PlaylistItem *item) config.setGroup("Desktop Entry"); if(!config.hasKey("Icon")) { - config.writeEntry("Icon", TQString("%1/.juk-thumbnail.png").arg(path)); + config.writeEntry("Icon", TQString("%1/.juk-thumbnail.png").tqarg(path)); config.sync(); } @@ -1011,7 +1011,7 @@ TQString FileRenamer::fileName(const CategoryReaderInterface &interface) // 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 // back out when showing it in the GUI? - value.replace('/', "%2f"); + value.tqreplace('/', "%2f"); if(!pastLast && interface.hasFolderSeparator(i)) value.append(dirSeparator); diff --git a/juk/filerenamer.h b/juk/filerenamer.h index 0978a390..fe3a2a7c 100644 --- a/juk/filerenamer.h +++ b/juk/filerenamer.h @@ -61,7 +61,7 @@ struct Row /** * A list of rows, each of which may have its own category options and other * associated data. There is no relation between the order of rows in the vector and their - * GUI layout. Instead, each Row has a position member which indicates what GUI position it + * GUI tqlayout. Instead, each Row has a position member which indicates what GUI position it * takes up. The index into the vector is known as the row identifier (which is unique but * not necessarily constant). */ @@ -140,9 +140,10 @@ private: class FileRenamerWidget : public FileRenamerBase, public CategoryReaderInterface { Q_OBJECT + TQ_OBJECT public: - FileRenamerWidget(TQWidget *parent); + FileRenamerWidget(TQWidget *tqparent); ~FileRenamerWidget(); /// Maximum number of total categories the widget will allow. @@ -185,7 +186,7 @@ private: /** * This function adds a "Insert Folder separator" checkbox to the end of - * the current layout. The setting defaults to being unchecked. + * the current tqlayout. The setting defaults to being unchecked. */ void addFolderSeparatorCheckbox(); @@ -335,7 +336,7 @@ private: /** * This moves the widget \p l in the direction given by \p direction, taking * care to make sure that the checkboxes are not moved, and that they are - * enabled or disabled as appropriate for the new layout, and that the up and + * enabled or disabled as appropriate for the new tqlayout, and that the up and * down buttons are also adjusted as necessary. * * @param id the identifier of the row to move @@ -383,7 +384,7 @@ private: /** * This function returns the identifier of the row in the m_rows index that - * contains \p category and matches \p categoryNum. + * tqcontains \p category and matches \p categoryNum. * * @param category the category to find. * @return the identifier of the category, or MAX_CATEGORIES if it couldn't @@ -426,14 +427,14 @@ private slots: virtual void slotRemoveRow(int id); /** - * This function moves \p category up in the layout. + * This function moves \p category up in the tqlayout. * * @param id the unique id of the widget to move up. */ virtual void moveItemUp(int id); /** - * This function moves \p category down in the layout. + * This function moves \p category down in the tqlayout. * * @param id the unique id of the widget to move down. */ diff --git a/juk/filerenamerbase.ui b/juk/filerenamerbase.ui index 28370971..10a36f17 100644 --- a/juk/filerenamerbase.ui +++ b/juk/filerenamerbase.ui @@ -1,10 +1,10 @@ FileRenamerBase - + FileRenamerBase - + 0 0 @@ -27,9 +27,9 @@ unnamed - + - layout4 + tqlayout4 @@ -58,7 +58,7 @@ true - + textLabel1_6 @@ -66,15 +66,15 @@ Music folder: - + - layout3 + tqlayout3 unnamed - + Album Tag @@ -133,7 +133,7 @@ 26 - + textLabel1 @@ -144,7 +144,7 @@ m_category - + textLabel1_7 @@ -168,7 +168,7 @@ Horizontal - + m_mainView @@ -195,7 +195,7 @@ Horizontal - + groupBox1 @@ -214,9 +214,9 @@ unnamed - + - layout2 + tqlayout2 @@ -232,7 +232,7 @@ Expanding - + 40 20 @@ -257,7 +257,7 @@ Expanding - + 40 20 @@ -266,7 +266,7 @@ - + m_exampleText @@ -295,7 +295,7 @@ Expanding - + 20 0 @@ -307,7 +307,7 @@ QScrollView -
qscrollview.h
+
tqscrollview.h
100 30 @@ -330,13 +330,13 @@ m_separator - textChanged(const QString&) + textChanged(const TTQString&) FileRenamerBase exampleTextChanged() m_musicFolder - textChanged(const QString&) + textChanged(const TQString&) FileRenamerBase exampleTextChanged() @@ -360,12 +360,12 @@ m_insertCategory m_showExample - + exampleTextChanged() toggleExampleDialog() insertCategory() - - + + kcombobox.h klineedit.h @@ -373,7 +373,7 @@ kurlrequester.h klineedit.h kpushbutton.h - qscrollview.h + tqscrollview.h kpushbutton.h
diff --git a/juk/filerenamerconfigdlg.cpp b/juk/filerenamerconfigdlg.cpp index 8a741d03..a1f43687 100644 --- a/juk/filerenamerconfigdlg.cpp +++ b/juk/filerenamerconfigdlg.cpp @@ -19,8 +19,8 @@ #include "filerenamer.h" #include "filerenamerconfigdlg.h" -FileRenamerConfigDlg::FileRenamerConfigDlg(TQWidget *parent) : - KDialogBase(parent, "file renamer dialog", true, +FileRenamerConfigDlg::FileRenamerConfigDlg(TQWidget *tqparent) : + KDialogBase(tqparent, "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 0c42ab54..fc953181 100644 --- a/juk/filerenamerconfigdlg.h +++ b/juk/filerenamerconfigdlg.h @@ -23,8 +23,9 @@ class FileRenamerWidget; class FileRenamerConfigDlg : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - FileRenamerConfigDlg(TQWidget *parent); + FileRenamerConfigDlg(TQWidget *tqparent); protected slots: virtual void accept(); diff --git a/juk/filerenameroptions.cpp b/juk/filerenameroptions.cpp index d40fd81c..cc9ab7fa 100644 --- a/juk/filerenameroptions.cpp +++ b/juk/filerenameroptions.cpp @@ -25,32 +25,32 @@ #include "filerenameroptions.h" -FileRenamerTagOptions::FileRenamerTagOptions(TQWidget *parent, +FileRenamerTagOptions::FileRenamerTagOptions(TQWidget *tqparent, const TagRenamerOptions &options) : - FileRenamerTagOptionsBase(parent), m_options(options) + FileRenamerTagOptionsBase(tqparent), m_options(options) { - layout()->setSpacing(KDialog::spacingHint()); - layout()->setMargin(0); + tqlayout()->setSpacing(KDialog::spacingHint()); + tqlayout()->setMargin(0); - m_emptyTagGroup->layout()->setSpacing(KDialog::spacingHint()); - m_trackGroup->layout()->setSpacing(KDialog::spacingHint()); + m_emptyTagGroup->tqlayout()->setSpacing(KDialog::spacingHint()); + m_trackGroup->tqlayout()->setSpacing(KDialog::spacingHint()); m_emptyValueLayout->setSpacing(KDialog::spacingHint()); m_exampleLayout->setSpacing(KDialog::spacingHint()); m_spinLayout->setSpacing(KDialog::spacingHint()); m_widthLayout->setSpacing(KDialog::spacingHint()); m_tagLayout->setSpacing(KDialog::spacingHint()); - m_tagFormatGroup->layout()->setSpacing(KDialog::spacingHint()); + m_tagFormatGroup->tqlayout()->setSpacing(KDialog::spacingHint()); if(m_options.category() != Track) m_trackGroup->hide(); TQString tagText = m_options.tagTypeText(); - setCaption(caption().arg(tagText)); - m_tagFormatGroup->setTitle(m_tagFormatGroup->title().arg(tagText)); - m_emptyTagGroup->setTitle(m_emptyTagGroup->title().arg(tagText)); - m_description->setText(m_description->text().arg(tagText)); - m_tagLabel->setText(m_tagLabel->text().arg(tagText)); + setCaption(caption().tqarg(tagText)); + m_tagFormatGroup->setTitle(m_tagFormatGroup->title().tqarg(tagText)); + m_emptyTagGroup->setTitle(m_emptyTagGroup->title().tqarg(tagText)); + m_description->setText(m_description->text().tqarg(tagText)); + m_tagLabel->setText(m_tagLabel->text().tqarg(tagText)); m_prefixText->setText(options.prefix()); m_suffixText->setText(options.suffix()); @@ -115,10 +115,10 @@ void FileRenamerTagOptions::slotEmptyActionChanged() m_options.setEmptyAction(TagRenamerOptions::ForceEmptyInclude); } -TagOptionsDialog::TagOptionsDialog(TQWidget *parent, +TagOptionsDialog::TagOptionsDialog(TQWidget *tqparent, const TagRenamerOptions &options, unsigned categoryNumber) : - KDialogBase(parent, 0, true, i18n("File Renamer"), Ok | Cancel), + KDialogBase(tqparent, 0, true, i18n("File Renamer"), Ok | Cancel), m_options(options), m_categoryNumber(categoryNumber) { diff --git a/juk/filerenameroptions.h b/juk/filerenameroptions.h index 07408827..88248f65 100644 --- a/juk/filerenameroptions.h +++ b/juk/filerenameroptions.h @@ -28,9 +28,10 @@ class FileRenamerTagOptions : public FileRenamerTagOptionsBase { Q_OBJECT + TQ_OBJECT public: - FileRenamerTagOptions(TQWidget *parent, const TagRenamerOptions &options); + FileRenamerTagOptions(TQWidget *tqparent, const TagRenamerOptions &options); const TagRenamerOptions &options() const { return m_options; } @@ -51,9 +52,10 @@ class FileRenamerTagOptions : public FileRenamerTagOptionsBase class TagOptionsDialog : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - TagOptionsDialog(TQWidget *parent, const TagRenamerOptions &options, unsigned categoryNumber); + TagOptionsDialog(TQWidget *tqparent, const TagRenamerOptions &options, unsigned categoryNumber); const TagRenamerOptions &options() const { return m_options; } diff --git a/juk/filerenameroptionsbase.ui b/juk/filerenameroptionsbase.ui index 1e40ce60..be886990 100644 --- a/juk/filerenameroptionsbase.ui +++ b/juk/filerenameroptionsbase.ui @@ -1,10 +1,10 @@ FileRenamerTagOptionsBase - + FileRenamerTagOptionsBase - + 0 0 @@ -19,7 +19,7 @@ unnamed - + m_tagFormatGroup @@ -30,7 +30,7 @@ unnamed - + m_description @@ -40,11 +40,11 @@ RichText - + WordBreak|AlignCenter - + m_tagLayout @@ -65,22 +65,22 @@ Expanding - + 40 20 - + m_prefixText - + AlignRight - + m_tagLabel @@ -88,11 +88,11 @@ %1 - + m_suffixText - + AlignLeft @@ -106,7 +106,7 @@ Expanding - + 40 20 @@ -115,7 +115,7 @@
- + m_substitution @@ -127,13 +127,13 @@ Substitution Example - + AlignCenter
- + m_emptyTagGroup @@ -144,7 +144,7 @@ unnamed - + m_includeEmptyButton @@ -152,7 +152,7 @@ Include in the &filename anyways - + m_ignoreTagButton @@ -163,7 +163,7 @@ true - + m_emptyValueLayout @@ -174,7 +174,7 @@ 0 - + m_useValueButton @@ -182,7 +182,7 @@ Use &this value: - + m_emptyTagValue @@ -197,7 +197,7 @@ - + m_trackGroup @@ -208,7 +208,7 @@ unnamed - + textLabel10 @@ -218,11 +218,11 @@ RichText - + WordBreak|AlignCenter - + m_widthLayout @@ -233,7 +233,7 @@ 0 - + m_spinLayout @@ -244,7 +244,7 @@ 0 - + textLabel5 @@ -271,7 +271,7 @@ - + m_exampleLayout @@ -282,7 +282,7 @@ 0 - + m_doubleDigitExample @@ -295,7 +295,7 @@ 014 - + m_singleDigitExample @@ -308,25 +308,25 @@ 003 - + m_singleDigit 3 -> - + AlignVCenter|AlignRight - + m_doubleDigit 14 -> - + AlignVCenter|AlignRight @@ -346,7 +346,7 @@ Expanding - + 20 0 @@ -413,12 +413,12 @@ slotEmptyActionChanged() - + slotBracketsChanged() slotTrackWidthChanged() slotEmptyActionChanged() - - + + knuminput.h diff --git a/juk/folderplaylist.h b/juk/folderplaylist.h index 4369a6fb..7e4557ff 100644 --- a/juk/folderplaylist.h +++ b/juk/folderplaylist.h @@ -20,10 +20,11 @@ class FolderPlaylist : public Playlist { Q_OBJECT + TQ_OBJECT public: - FolderPlaylist(PlaylistCollection *collection, const TQString &folder = TQString::null, - const TQString &name = TQString::null); + FolderPlaylist(PlaylistCollection *collection, const TQString &folder = TQString(), + const TQString &name = TQString()); virtual ~FolderPlaylist(); TQString folder() const; diff --git a/juk/gstreamerplayer.cpp b/juk/gstreamerplayer.cpp index 39f371a3..2c520128 100644 --- a/juk/gstreamerplayer.cpp +++ b/juk/gstreamerplayer.cpp @@ -107,18 +107,18 @@ bool GStreamerPlayer::paused() const int GStreamerPlayer::totalTime() const { - return time(GST_QUERY_TOTAL) / GST_SECOND; + return time(GST_TQUERY_TOTAL) / GST_SECOND; } int GStreamerPlayer::currentTime() const { - return time(GST_QUERY_POSITION) / GST_SECOND; + return time(GST_TQUERY_POSITION) / GST_SECOND; } int GStreamerPlayer::position() const { - long long total = time(GST_QUERY_TOTAL); - long long current = time(GST_QUERY_POSITION); + long long total = time(GST_TQUERY_TOTAL); + long long current = time(GST_TQUERY_POSITION); return total > 0 ? int((double(current) / double(total)) * double(1000) + 0.5) : 0; } @@ -130,7 +130,7 @@ void GStreamerPlayer::seek(int seekTime) void GStreamerPlayer::seekPosition(int position) { - long long total = time(GST_QUERY_TOTAL); + long long total = time(GST_TQUERY_TOTAL); if(total > 0) seek(int(double(position) / double(1000) * double(totalTime()) + 0.5)); } @@ -142,7 +142,7 @@ void GStreamerPlayer::seekPosition(int position) void GStreamerPlayer::readConfig() { KConfigGroup config(KGlobal::config(), "GStreamerPlayer"); - m_sinkName = config.readEntry("SinkName", TQString::null); + m_sinkName = config.readEntry("SinkName", TQString()); } void GStreamerPlayer::setupPipeline() diff --git a/juk/gstreamerplayer.h b/juk/gstreamerplayer.h index 6cc8ebfd..fe08c837 100644 --- a/juk/gstreamerplayer.h +++ b/juk/gstreamerplayer.h @@ -18,6 +18,10 @@ #include "config.h" +#ifdef Q_MOC_RUN +#define HAVE_GSTREAMER 1 +#endif // Q_MOC_RUN + #if HAVE_GSTREAMER #include @@ -27,6 +31,7 @@ class GStreamerPlayer : public Player { Q_OBJECT + TQ_OBJECT public: GStreamerPlayer(); diff --git a/juk/historyplaylist.cpp b/juk/historyplaylist.cpp index 26758fd6..53aa927e 100644 --- a/juk/historyplaylist.cpp +++ b/juk/historyplaylist.cpp @@ -90,16 +90,16 @@ void HistoryPlaylist::slotCreateNewItem() // HistoryPlaylistItem public members //////////////////////////////////////////////////////////////////////////////// -HistoryPlaylistItem::HistoryPlaylistItem(CollectionListItem *item, Playlist *parent, TQListViewItem *after) : - PlaylistItem(item, parent, after), - m_dateTime(TQDateTime::currentDateTime()) +HistoryPlaylistItem::HistoryPlaylistItem(CollectionListItem *item, Playlist *tqparent, TQListViewItem *after) : + PlaylistItem(item, tqparent, after), + m_dateTime(TQDateTime::tqcurrentDateTime()) { setText(0, KGlobal::locale()->formatDateTime(m_dateTime)); } -HistoryPlaylistItem::HistoryPlaylistItem(CollectionListItem *item, Playlist *parent) : - PlaylistItem(item, parent), - m_dateTime(TQDateTime::currentDateTime()) +HistoryPlaylistItem::HistoryPlaylistItem(CollectionListItem *item, Playlist *tqparent) : + PlaylistItem(item, tqparent), + m_dateTime(TQDateTime::tqcurrentDateTime()) { setText(0, KGlobal::locale()->formatDateTime(m_dateTime)); } @@ -123,7 +123,7 @@ TQDataStream &operator<<(TQDataStream &s, const HistoryPlaylist &p) { PlaylistItemList l = const_cast(&p)->items(); - s << Q_INT32(l.count()); + s << TQ_INT32(l.count()); for(PlaylistItemList::ConstIterator it = l.begin(); it != l.end(); ++it) { const HistoryPlaylistItem *i = static_cast(*it); @@ -136,7 +136,7 @@ TQDataStream &operator<<(TQDataStream &s, const HistoryPlaylist &p) TQDataStream &operator>>(TQDataStream &s, HistoryPlaylist &p) { - Q_INT32 count; + TQ_INT32 count; s >> count; HistoryPlaylistItem *after = 0; diff --git a/juk/historyplaylist.h b/juk/historyplaylist.h index 5f2776d5..13cf5436 100644 --- a/juk/historyplaylist.h +++ b/juk/historyplaylist.h @@ -23,8 +23,8 @@ class HistoryPlaylistItem : public PlaylistItem { public: - HistoryPlaylistItem(CollectionListItem *item, Playlist *parent, TQListViewItem *after); - HistoryPlaylistItem(CollectionListItem *item, Playlist *parent); + HistoryPlaylistItem(CollectionListItem *item, Playlist *tqparent, TQListViewItem *after); + HistoryPlaylistItem(CollectionListItem *item, Playlist *tqparent); virtual ~HistoryPlaylistItem(); TQDateTime dateTime() const { return m_dateTime; } @@ -37,6 +37,7 @@ private: class HistoryPlaylist : public Playlist { Q_OBJECT + TQ_OBJECT public: HistoryPlaylist(PlaylistCollection *collection); diff --git a/juk/juk.cpp b/juk/juk.cpp index 35c08dff..47a94692 100644 --- a/juk/juk.cpp +++ b/juk/juk.cpp @@ -43,8 +43,8 @@ using namespace ActionCollection; // public members //////////////////////////////////////////////////////////////////////////////// -JuK::JuK(TQWidget *parent, const char *name) : - KMainWindow(parent, name, WDestructiveClose), +JuK::JuK(TQWidget *tqparent, const char *name) : + KMainWindow(tqparent, name, WDestructiveClose), m_player(PlayerManager::instance()), m_shuttingDown(false) { @@ -72,7 +72,7 @@ JuK::JuK(TQWidget *parent, const char *name) : SplashScreen::finishedLoading(); TQTimer::singleShot(0, CollectionList::instance(), TQT_SLOT(slotCheckCache())); - TQTimer::singleShot(0, this, TQT_SLOT(slotProcessArgs())); + TQTimer::singleShot(0, TQT_TQOBJECT(this), TQT_SLOT(slotProcessArgs())); m_sliderAction->slotUpdateOrientation(); } @@ -112,52 +112,52 @@ void JuK::setupActions() { ActionCollection::actions()->setWidget(this); - KStdAction::quit(this, TQT_SLOT(slotQuit()), actions()); - KStdAction::undo(this, TQT_SLOT(slotUndo()), actions()); - KStdAction::cut(kapp, TQT_SLOT(cut()), actions()); - KStdAction::copy(kapp, TQT_SLOT(copy()), actions()); - KStdAction::paste(kapp, TQT_SLOT(paste()), actions()); - KStdAction::clear(kapp, TQT_SLOT(clear()), actions()); - KStdAction::selectAll(kapp, TQT_SLOT(selectAll()), actions()); + KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(slotQuit()), ActionCollection::actions()); + KStdAction::undo(TQT_TQOBJECT(this), TQT_SLOT(slotUndo()), ActionCollection::actions()); + KStdAction::cut(TQT_TQOBJECT(kapp), TQT_SLOT(cut()), ActionCollection::actions()); + KStdAction::copy(TQT_TQOBJECT(kapp), TQT_SLOT(copy()), ActionCollection::actions()); + KStdAction::paste(TQT_TQOBJECT(kapp), TQT_SLOT(paste()), ActionCollection::actions()); + KStdAction::clear(TQT_TQOBJECT(kapp), TQT_SLOT(clear()), ActionCollection::actions()); + KStdAction::selectAll(TQT_TQOBJECT(kapp), TQT_SLOT(selectAll()), ActionCollection::actions()); - new KAction(i18n("Remove From Playlist"), "edit_remove", 0, kapp, TQT_SLOT(clear()), actions(), "removeFromPlaylist"); + new KAction(i18n("Remove From Playlist"), "edit_remove", 0, TQT_TQOBJECT(kapp), TQT_SLOT(clear()), ActionCollection::actions(), "removeFromPlaylist"); - KActionMenu *actionMenu = new KActionMenu(i18n("&Random Play"), "roll", actions(), "actionMenu"); + KActionMenu *actionMenu = new KActionMenu(i18n("&Random Play"), "roll", ActionCollection::actions(), "actionMenu"); actionMenu->setDelayed(false); - KRadioAction *ka = new KRadioAction(i18n("&Disable Random Play"), "player_playlist", 0, actions(), "disableRandomPlay"); + KRadioAction *ka = new KRadioAction(i18n("&Disable Random Play"), "player_playlist", 0, ActionCollection::actions(), "disableRandomPlay"); ka->setExclusiveGroup("randomPlayGroup"); actionMenu->insert(ka); - m_randomPlayAction = new KRadioAction(i18n("Use &Random Play"), "roll", 0, actions(), "randomPlay"); + m_randomPlayAction = new KRadioAction(i18n("Use &Random Play"), "roll", 0, ActionCollection::actions(), "randomPlay"); m_randomPlayAction->setExclusiveGroup("randomPlayGroup"); actionMenu->insert(m_randomPlayAction); - ka = new KRadioAction(i18n("Use &Album Random Play"), "roll", 0, actions(), "albumRandomPlay"); + ka = new KRadioAction(i18n("Use &Album Random Play"), "roll", 0, ActionCollection::actions(), "albumRandomPlay"); ka->setExclusiveGroup("randomPlayGroup"); connect(ka, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotCheckAlbumNextAction(bool))); actionMenu->insert(ka); - new KAction(i18n("&Play"), "player_play", 0, m_player, TQT_SLOT(play()), actions(), "play"); - new KAction(i18n("P&ause"), "player_pause", 0, m_player, TQT_SLOT(pause()), actions(), "pause"); - new KAction(i18n("&Stop"), "player_stop", 0, m_player, TQT_SLOT(stop()), actions(), "stop"); + new KAction(i18n("&Play"), "player_play", 0, TQT_TQOBJECT(m_player), TQT_SLOT(play()), ActionCollection::actions(), "play"); + new KAction(i18n("P&ause"), "player_pause", 0, TQT_TQOBJECT(m_player), TQT_SLOT(pause()), ActionCollection::actions(), "pause"); + new KAction(i18n("&Stop"), "player_stop", 0, TQT_TQOBJECT(m_player), TQT_SLOT(stop()), ActionCollection::actions(), "stop"); - new KToolBarPopupAction(i18n("previous track", "Previous"), "player_start", KShortcut(), m_player, TQT_SLOT(back()), actions(), "back"); - new KAction(i18n("next track", "&Next"), "player_end", KShortcut(), m_player, TQT_SLOT(forward()), actions(), "forward"); - new KToggleAction(i18n("&Loop Playlist"), 0, KShortcut(), actions(), "loopPlaylist"); + new KToolBarPopupAction(i18n("previous track", "Previous"), "player_start", KShortcut(), TQT_TQOBJECT(m_player), TQT_SLOT(back()), ActionCollection::actions(), "back"); + new KAction(i18n("next track", "&Next"), "player_end", KShortcut(), TQT_TQOBJECT(m_player), TQT_SLOT(forward()), ActionCollection::actions(), "forward"); + new KToggleAction(i18n("&Loop Playlist"), 0, KShortcut(), ActionCollection::actions(), "loopPlaylist"); KToggleAction *resizeColumnAction = new KToggleAction(i18n("&Resize Playlist Columns Manually"), - KShortcut(), actions(), "resizeColumnsManually"); + KShortcut(), ActionCollection::actions(), "resizeColumnsManually"); resizeColumnAction->setCheckedState(i18n("&Resize Column Headers Automatically")); // the following are not visible by default - new KAction(i18n("Mute"), "mute", 0, m_player, TQT_SLOT(mute()), actions(), "mute"); - new KAction(i18n("Volume Up"), "volumeUp", 0, m_player, TQT_SLOT(volumeUp()), actions(), "volumeUp"); - new KAction(i18n("Volume Down"), "volumeDown", 0, m_player, TQT_SLOT(volumeDown()), actions(), "volumeDown"); - new KAction(i18n("Play / Pause"), "playPause", 0, m_player, TQT_SLOT(playPause()), actions(), "playPause"); - new KAction(i18n("Seek Forward"), "seekForward", 0, m_player, TQT_SLOT(seekForward()), actions(), "seekForward"); - new KAction(i18n("Seek Back"), "seekBack", 0, m_player, TQT_SLOT(seekBack()), actions(), "seekBack"); + new KAction(i18n("Mute"), "mute", 0, TQT_TQOBJECT(m_player), TQT_SLOT(mute()), ActionCollection::actions(), "mute"); + new KAction(i18n("Volume Up"), "volumeUp", 0, TQT_TQOBJECT(m_player), TQT_SLOT(volumeUp()), ActionCollection::actions(), "volumeUp"); + new KAction(i18n("Volume Down"), "volumeDown", 0, TQT_TQOBJECT(m_player), TQT_SLOT(volumeDown()), ActionCollection::actions(), "volumeDown"); + new KAction(i18n("Play / Pause"), "playPause", 0, TQT_TQOBJECT(m_player), TQT_SLOT(playPause()), ActionCollection::actions(), "playPause"); + new KAction(i18n("Seek Forward"), "seekForward", 0, TQT_TQOBJECT(m_player), TQT_SLOT(seekForward()), ActionCollection::actions(), "seekForward"); + new KAction(i18n("Seek Back"), "seekBack", 0, TQT_TQOBJECT(m_player), TQT_SLOT(seekBack()), ActionCollection::actions(), "seekBack"); ////////////////////////////////////////////////// // settings menu @@ -165,42 +165,42 @@ void JuK::setupActions() m_toggleSplashAction = new KToggleAction(i18n("Show Splash Screen on Startup"), - KShortcut(), actions(), "showSplashScreen"); + KShortcut(), ActionCollection::actions(), "showSplashScreen"); m_toggleSplashAction->setCheckedState(i18n("Hide Splash Screen on Startup")); m_toggleSystemTrayAction = new KToggleAction(i18n("&Dock in System Tray"), - KShortcut(), actions(), "toggleSystemTray"); + KShortcut(), ActionCollection::actions(), "toggleSystemTray"); m_toggleDockOnCloseAction = new KToggleAction(i18n("&Stay in System Tray on Close"), - KShortcut(), actions(), "dockOnClose"); + KShortcut(), ActionCollection::actions(), "dockOnClose"); m_togglePopupsAction = new KToggleAction(i18n("Popup &Track Announcement"), - KShortcut(), this, 0, actions(), "togglePopups"); + KShortcut(), TQT_TQOBJECT(this), 0, ActionCollection::actions(), "togglePopups"); new KToggleAction(i18n("Save &Play Queue on Exit"), - KShortcut(), this, 0, actions(), "saveUpcomingTracks"); + KShortcut(), TQT_TQOBJECT(this), 0, ActionCollection::actions(), "saveUpcomingTracks"); connect(m_toggleSystemTrayAction, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggleSystemTray(bool))); - m_outputSelectAction = PlayerManager::playerSelectAction(actions()); + m_outputSelectAction = PlayerManager::playerSelectAction(ActionCollection::actions()); if(m_outputSelectAction) m_outputSelectAction->setCurrentItem(0); - new KAction(i18n("&Tag Guesser..."), 0, 0, this, TQT_SLOT(slotConfigureTagGuesser()), - actions(), "tagGuesserConfig"); + new KAction(i18n("&Tag Guesser..."), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotConfigureTagGuesser()), + ActionCollection::actions(), "tagGuesserConfig"); - new KAction(i18n("&File Renamer..."), 0, 0, this, TQT_SLOT(slotConfigureFileRenamer()), - actions(), "fileRenamerConfig"); + new KAction(i18n("&File Renamer..."), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotConfigureFileRenamer()), + ActionCollection::actions(), "fileRenamerConfig"); - KStdAction::keyBindings(this, TQT_SLOT(slotEditKeys()), actions()); + KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(slotEditKeys()), ActionCollection::actions()); ////////////////////////////////////////////////// // just in the toolbar ////////////////////////////////////////////////// - m_sliderAction = new SliderAction(i18n("Track Position"), actions(), + m_sliderAction = new SliderAction(i18n("Track Position"), ActionCollection::actions(), "trackPositionAction"); } @@ -213,7 +213,7 @@ void JuK::setupSystemTray() m_toggleDockOnCloseAction->setEnabled(true); m_togglePopupsAction->setEnabled(true); - connect(m_systemTray, TQT_SIGNAL(quitSelected()), this, TQT_SLOT(slotAboutToQuit())); + connect(m_systemTray, TQT_SIGNAL(quitSelected()), TQT_TQOBJECT(this), TQT_SLOT(slotAboutToQuit())); } else { m_systemTray = 0; @@ -224,7 +224,7 @@ void JuK::setupSystemTray() void JuK::setupGlobalAccels() { - m_accel = new KGlobalAccel(this); + m_accel = new KGlobalAccel(TQT_TQOBJECT(this)); KeyDialog::insert(m_accel, "Play", i18n("Play"), action("play"), TQT_SLOT(activate())); KeyDialog::insert(m_accel, "PlayPause", i18n("Play / Pause"), action("playPause"), TQT_SLOT(activate())); @@ -236,7 +236,7 @@ void JuK::setupGlobalAccels() KeyDialog::insert(m_accel, "VolumeUp", i18n("Volume Up"), action("volumeUp"), TQT_SLOT(activate())); KeyDialog::insert(m_accel, "VolumeDown", i18n("Volume Down"), action("volumeDown"), TQT_SLOT(activate())); KeyDialog::insert(m_accel, "Mute", i18n("Mute"), action("mute"), TQT_SLOT(activate())); - KeyDialog::insert(m_accel, "ShowHide", i18n("Show / Hide"), this, TQT_SLOT(slotShowHide())); + KeyDialog::insert(m_accel, "ShowHide", i18n("Show / Hide"), TQT_TQOBJECT(this), TQT_SLOT(slotShowHide())); KeyDialog::insert(m_accel, "ForwardAlbum", i18n("Play Next Album"), action("forwardAlbum"), TQT_SLOT(activate())); m_accel->setConfigGroup("Shortcuts"); @@ -267,7 +267,7 @@ void JuK::createDirs() void JuK::keyPressEvent(TQKeyEvent *e) { - if (e->key() >= Qt::Key_Back && e->key() <= Qt::Key_MediaLast) + if (e->key() >= TQt::Key_Back && e->key() <= TQt::Key_MediaLast) e->accept(); KMainWindow::keyPressEvent(e); } @@ -446,7 +446,7 @@ void JuK::slotToggleSystemTray(bool enabled) void JuK::slotEditKeys() { - KeyDialog::configure(m_accel, actions(), this); + KeyDialog::configure(m_accel, ActionCollection::actions(), this); } void JuK::slotConfigureTagGuesser() diff --git a/juk/juk.h b/juk/juk.h index bdb3499f..818c403f 100644 --- a/juk/juk.h +++ b/juk/juk.h @@ -37,9 +37,10 @@ class PlaylistSplitter; class JuK : public KMainWindow { Q_OBJECT + TQ_OBJECT public: - JuK(TQWidget* parent = 0, const char *name = 0); + JuK(TQWidget* tqparent = 0, const char *name = 0); virtual ~JuK(); virtual KActionCollection *actionCollection() const; diff --git a/juk/k3bexporter.cpp b/juk/k3bexporter.cpp index d19021e6..a4e4a7c6 100644 --- a/juk/k3bexporter.cpp +++ b/juk/k3bexporter.cpp @@ -86,7 +86,7 @@ class PlaylistAction : public KAction return; // Invoke the slot using some trickery. - // XXX: Use the TQMetaObject to do this in Qt 4. + // XXX: Use the TQMetaObject to do this in TQt 4. connect(this, TQT_SIGNAL(activated()), recipient, m_slot); emit(activated()); disconnect(this, TQT_SIGNAL(activated()), recipient, m_slot); @@ -97,7 +97,7 @@ class PlaylistAction : public KAction PlaylistRecipientMap m_playlistRecipient; }; -K3bExporter::K3bExporter(Playlist *parent) : PlaylistExporter(parent), m_parent(parent) +K3bExporter::K3bExporter(Playlist *tqparent) : PlaylistExporter(tqparent), m_parent(tqparent) { } @@ -263,8 +263,8 @@ K3bExporter::K3bOpenMode K3bExporter::openMode() return Abort; } -K3bPlaylistExporter::K3bPlaylistExporter(PlaylistBox *parent) : K3bExporter(0), - m_playlistBox(parent) +K3bPlaylistExporter::K3bPlaylistExporter(PlaylistBox *tqparent) : K3bExporter(0), + m_playlistBox(tqparent) { } diff --git a/juk/k3bexporter.h b/juk/k3bexporter.h index 0c414107..fa49dc88 100644 --- a/juk/k3bexporter.h +++ b/juk/k3bexporter.h @@ -30,9 +30,10 @@ class PlaylistAction; class K3bExporter : public PlaylistExporter { Q_OBJECT + TQ_OBJECT public: - K3bExporter(Playlist *parent = 0); + K3bExporter(Playlist *tqparent = 0); /** * Returns a KAction that can be used to invoke the export. @@ -77,8 +78,9 @@ private: class K3bPlaylistExporter : public K3bExporter { Q_OBJECT + TQ_OBJECT public: - K3bPlaylistExporter(PlaylistBox *parent = 0); + K3bPlaylistExporter(PlaylistBox *tqparent = 0); virtual KAction *action(); diff --git a/juk/keydialog.cpp b/juk/keydialog.cpp index c8d24a5a..46455c37 100644 --- a/juk/keydialog.cpp +++ b/juk/keydialog.cpp @@ -28,44 +28,44 @@ const KeyDialog::KeyInfo KeyDialog::keyInfo[] = { { "PlayPause", { { KShortcut::null(), KShortcut::null() }, - { Qt::CTRL+Qt::ALT+Qt::Key_P, KKey::QtWIN+Qt::ALT+Qt::Key_P }, - { Qt::Key_MediaPlay, Qt::Key_MediaPlay } } }, + { TQt::CTRL+TQt::ALT+TQt::Key_P, KKey::QtWIN+TQt::ALT+TQt::Key_P }, + { TQt::Key_MediaPlay, TQt::Key_MediaPlay } } }, { "Stop", { { KShortcut::null(), KShortcut::null() }, - { Qt::CTRL+Qt::ALT+Qt::Key_S, KKey::QtWIN+Qt::ALT+Qt::Key_S }, - { Qt::Key_MediaStop, Qt::Key_MediaStop } } }, + { TQt::CTRL+TQt::ALT+TQt::Key_S, KKey::QtWIN+TQt::ALT+TQt::Key_S }, + { TQt::Key_MediaStop, TQt::Key_MediaStop } } }, { "Back", { { KShortcut::null(), KShortcut::null() }, - { Qt::CTRL+Qt::ALT+Qt::Key_Left, KKey::QtWIN+Qt::ALT+Qt::Key_Left }, - { Qt::Key_MediaPrev, Qt::Key_MediaPrev } } }, + { TQt::CTRL+TQt::ALT+TQt::Key_Left, KKey::QtWIN+TQt::ALT+TQt::Key_Left }, + { TQt::Key_MediaPrev, TQt::Key_MediaPrev } } }, { "Forward", { { KShortcut::null(), KShortcut::null() }, - { Qt::CTRL+Qt::ALT+Qt::Key_Right, KKey::QtWIN+Qt::ALT+Qt::Key_Right }, - { Qt::Key_MediaNext, Qt::Key_MediaNext } } }, + { TQt::CTRL+TQt::ALT+TQt::Key_Right, KKey::QtWIN+TQt::ALT+TQt::Key_Right }, + { TQt::Key_MediaNext, TQt::Key_MediaNext } } }, { "ForwardAlbum", { { KShortcut::null(), KShortcut::null() }, - { Qt::CTRL+Qt::ALT+Qt::Key_Up, KKey::QtWIN+Qt::ALT+Qt::Key_Up }, - { Qt::CTRL+Qt::Key_MediaNext, Qt::CTRL+Qt::Key_MediaNext } } }, + { TQt::CTRL+TQt::ALT+TQt::Key_Up, KKey::QtWIN+TQt::ALT+TQt::Key_Up }, + { TQt::CTRL+TQt::Key_MediaNext, TQt::CTRL+TQt::Key_MediaNext } } }, { "SeekBack", { { KShortcut::null(), KShortcut::null() }, - { Qt::CTRL+Qt::SHIFT+Qt::ALT+Qt::Key_Left, KKey::QtWIN+Qt::SHIFT+Qt::ALT+Qt::Key_Left }, - { Qt::SHIFT+Qt::Key_MediaPrev, Qt::SHIFT+Qt::Key_MediaPrev } } }, + { TQt::CTRL+TQt::SHIFT+TQt::ALT+TQt::Key_Left, KKey::QtWIN+TQt::SHIFT+TQt::ALT+TQt::Key_Left }, + { TQt::SHIFT+TQt::Key_MediaPrev, TQt::SHIFT+TQt::Key_MediaPrev } } }, { "SeekForward", { { KShortcut::null(), KShortcut::null() }, - { Qt::CTRL+Qt::SHIFT+Qt::ALT+Qt::Key_Right, KKey::QtWIN+Qt::SHIFT+Qt::ALT+Qt::Key_Right }, - { Qt::SHIFT+Qt::Key_MediaNext, Qt::SHIFT+Qt::Key_MediaNext } } }, + { TQt::CTRL+TQt::SHIFT+TQt::ALT+TQt::Key_Right, KKey::QtWIN+TQt::SHIFT+TQt::ALT+TQt::Key_Right }, + { TQt::SHIFT+TQt::Key_MediaNext, TQt::SHIFT+TQt::Key_MediaNext } } }, { "VolumeUp", { { KShortcut::null(), KShortcut::null() }, - { Qt::CTRL+Qt::ALT+Qt::SHIFT+Qt::Key_Up, KKey::QtWIN+Qt::ALT+Qt::SHIFT+Qt::Key_Up }, - { Qt::Key_VolumeUp, Qt::Key_VolumeUp } } }, + { TQt::CTRL+TQt::ALT+TQt::SHIFT+TQt::Key_Up, KKey::QtWIN+TQt::ALT+TQt::SHIFT+TQt::Key_Up }, + { TQt::Key_VolumeUp, TQt::Key_VolumeUp } } }, { "VolumeDown", { { KShortcut::null(), KShortcut::null() }, - { Qt::CTRL+Qt::ALT+Qt::SHIFT+Qt::Key_Down, KKey::QtWIN+Qt::ALT+Qt::SHIFT+Qt::Key_Down }, - { Qt::Key_VolumeDown, Qt::Key_VolumeDown } } }, + { TQt::CTRL+TQt::ALT+TQt::SHIFT+TQt::Key_Down, KKey::QtWIN+TQt::ALT+TQt::SHIFT+TQt::Key_Down }, + { TQt::Key_VolumeDown, TQt::Key_VolumeDown } } }, { "Mute", { { KShortcut::null(), KShortcut::null() }, - { Qt::CTRL+Qt::ALT+Qt::Key_M, KKey::QtWIN+Qt::ALT+Qt::Key_M }, - { Qt::Key_VolumeMute, Qt::Key_VolumeMute } } }, + { TQt::CTRL+TQt::ALT+TQt::Key_M, KKey::QtWIN+TQt::ALT+TQt::Key_M }, + { TQt::Key_VolumeMute, TQt::Key_VolumeMute } } }, { "ShowHide", { { KShortcut::null(), KShortcut::null() }, { KShortcut::null(), KShortcut::null() }, @@ -75,8 +75,8 @@ const KeyDialog::KeyInfo KeyDialog::keyInfo[] = { const uint KeyDialog::keyInfoCount = sizeof(KeyDialog::keyInfo) / sizeof(KeyDialog::keyInfo[0]); KeyDialog::KeyDialog(KGlobalAccel *keys, KActionCollection *actionCollection, - TQWidget *parent, const char *name) - : KDialogBase(parent, name, true, i18n("Configure Shortcuts"), Default | Ok | Cancel, Ok) + TQWidget *tqparent, const char *name) + : KDialogBase(tqparent, name, true, i18n("Configure Shortcuts"), Default | Ok | Cancel, Ok) { // Read key group from configuration @@ -172,11 +172,11 @@ void KeyDialog::slotDefault() } int KeyDialog::configure(KGlobalAccel *keys, KActionCollection *actionCollection, - TQWidget *parent) + TQWidget *tqparent) { // Create and show dialog - update connections if accepted - int retcode = KeyDialog(keys, actionCollection, parent).configure(); + int retcode = KeyDialog(keys, actionCollection, tqparent).configure(); if(retcode == Accepted) keys->updateConnections(); @@ -198,7 +198,7 @@ void KeyDialog::insert(KGlobalAccel *keys, const TQString &action, const TQStrin break; } } - keys->insert(action, label, TQString::null, def3, def4, objSlot, methodSlot); + keys->insert(action, label, TQString(), def3, def4, objSlot, methodSlot); } #include "keydialog.moc" diff --git a/juk/keydialog.h b/juk/keydialog.h index 13801ee1..83c14d9d 100644 --- a/juk/keydialog.h +++ b/juk/keydialog.h @@ -26,12 +26,13 @@ class KeyDialog : public KDialogBase { Q_OBJECT + TQ_OBJECT public: /** - * Constructs a KeyDialog called @p name as a child of @p parent. + * Constructs a KeyDialog called @p name as a child of @p tqparent. */ - KeyDialog(KGlobalAccel *keys, KActionCollection *actionCollection, TQWidget *parent = 0, const char* name = 0); + KeyDialog(KGlobalAccel *keys, KActionCollection *actionCollection, TQWidget *tqparent = 0, const char* name = 0); /** * Destructor. Deletes all resources used by a KeyDialog object. @@ -43,7 +44,7 @@ public: * accelerators and actions. It behaves essentially like the functions * in KKeyDialog. */ - static int configure(KGlobalAccel *keys, KActionCollection *actionCollection, TQWidget *parent = 0); + static int configure(KGlobalAccel *keys, KActionCollection *actionCollection, TQWidget *tqparent = 0); /** * This is a member function, provided to create a global accelerator with diff --git a/juk/ktrm.cpp b/juk/ktrm.cpp index cb45c685..72519b96 100644 --- a/juk/ktrm.cpp +++ b/juk/ktrm.cpp @@ -43,7 +43,7 @@ class KTRMLookup; extern "C" { #if HAVE_MUSICBRAINZ >= 4 - static void TRMNotifyCallback(tunepimp_t pimp, void *data, TPCallbackEnum type, int fileId, TPFileStatus status); + static void TRMNotifyCallback(tunepimp_t pimp, void *data, TPCallbackEnum type, int fileId, TPFiletqStatus status); #else static void TRMNotifyCallback(tunepimp_t pimp, void *data, TPCallbackEnum type, int fileId); #endif @@ -69,7 +69,7 @@ public: { int id; - if(!m_fileMap.contains(lookup->file())) { + if(!m_fileMap.tqcontains(lookup->file())) { #if HAVE_MUSICBRAINZ >= 4 id = tp_AddFile(m_pimp, TQFile::encodeName(lookup->file()), 0); #else @@ -95,9 +95,9 @@ public: bool lookupMapContains(int fileId) const { m_lookupMapMutex.lock(); - bool contains = m_lookupMap.contains(fileId); + bool tqcontains = m_lookupMap.tqcontains(fileId); m_lookupMapMutex.unlock(); - return contains; + return tqcontains; } KTRMLookup *lookup(int fileId) const @@ -202,17 +202,17 @@ private: * A custom event type used for signalling that a TRM lookup is finished. */ -class KTRMEvent : public QCustomEvent +class KTRMEvent : public TQCustomEvent { public: - enum Status { + enum tqStatus { Recognized, Unrecognized, Collision, Error }; - KTRMEvent(int fileId, Status status) : + KTRMEvent(int fileId, tqStatus status) : TQCustomEvent(id), m_fileId(fileId), m_status(status) {} @@ -222,7 +222,7 @@ public: return m_fileId; } - Status status() const + tqStatus status() const { return m_status; } @@ -231,7 +231,7 @@ public: private: int m_fileId; - Status m_status; + tqStatus m_status; }; /** @@ -239,10 +239,10 @@ private: * thread) for the lookup. */ -class KTRMEventHandler : public QObject +class KTRMEventHandler : public TQObject { public: - static void send(int fileId, KTRMEvent::Status status) + static void send(int fileId, KTRMEvent::tqStatus status) { KApplication::postEvent(instance(), new KTRMEvent(fileId, status)); } @@ -303,7 +303,7 @@ protected: * Callback fuction for TunePimp lookup events. */ #if HAVE_MUSICBRAINZ >= 4 -static void TRMNotifyCallback(tunepimp_t /*pimp*/, void* /*data*/, TPCallbackEnum type, int fileId, TPFileStatus status) +static void TRMNotifyCallback(tunepimp_t /*pimp*/, void* /*data*/, TPCallbackEnum type, int fileId, TPFiletqStatus status) #else static void TRMNotifyCallback(tunepimp_t pimp, void *data, TPCallbackEnum type, int fileId) #endif @@ -313,7 +313,7 @@ static void TRMNotifyCallback(tunepimp_t pimp, void *data, TPCallbackEnum type, #if HAVE_MUSICBRAINZ < 4 track_t track = tp_GetTrack(pimp, fileId); - TPFileStatus status = tr_GetStatus(track); + TPFiletqStatus status = tr_GettqStatus(track); #endif switch(status) { @@ -496,7 +496,7 @@ void KTRMLookup::unrecognized() tr_Lock(track); tr_GetTRM(track, trm, 255); if ( !trm[0] ) { - tr_SetStatus(track, ePending); + tr_SettqStatus(track, ePending); tp_Wake(KTRMRequestHandler::instance()->tunePimp(), track); } else diff --git a/juk/mediafiles.cpp b/juk/mediafiles.cpp index 3752ec06..7a0eb6a2 100644 --- a/juk/mediafiles.cpp +++ b/juk/mediafiles.cpp @@ -45,9 +45,9 @@ namespace MediaFiles { static const char playlistExtension[] = ".m3u"; } -TQStringList MediaFiles::openDialog(TQWidget *parent) +TQStringList MediaFiles::openDialog(TQWidget *tqparent) { - KFileDialog dialog(TQString::null, TQString::null, parent, "filedialog", true); + KFileDialog dialog(TQString(), TQString(), tqparent, "filedialog", true); dialog.setOperationMode(KFileDialog::Opening); dialog.setCaption(i18n("Open")); @@ -60,11 +60,11 @@ TQStringList MediaFiles::openDialog(TQWidget *parent) return convertURLsToLocal(dialog.selectedFiles()); } -TQString MediaFiles::savePlaylistDialog(const TQString &playlistName, TQWidget *parent) +TQString MediaFiles::savePlaylistDialog(const TQString &playlistName, TQWidget *tqparent) { TQString fileName = KFileDialog::getSaveFileName(playlistName + playlistExtension, TQString("*").append(playlistExtension), - parent, + tqparent, i18n("Playlists")); if(!fileName.isEmpty() && !fileName.endsWith(playlistExtension)) fileName.append(playlistExtension); diff --git a/juk/mediafiles.h b/juk/mediafiles.h index 342739e7..ea6a4345 100644 --- a/juk/mediafiles.h +++ b/juk/mediafiles.h @@ -24,15 +24,15 @@ namespace MediaFiles { /** - * Creates a JuK specific KFileDialog with the specified parent. + * Creates a JuK specific KFileDialog with the specified tqparent. */ - TQStringList openDialog(TQWidget *parent = 0); + TQStringList openDialog(TQWidget *tqparent = 0); /** * Creates a JuK specific KFileDialog for saving a playlist with the name - * playlistName and the specified parent and returns the file name. + * playlistName and the specified tqparent and returns the file name. */ - TQString savePlaylistDialog(const TQString &playlistName, TQWidget *parent = 0); + TQString savePlaylistDialog(const TQString &playlistName, TQWidget *tqparent = 0); /** * Returns true if fileName is a supported media file. diff --git a/juk/musicbrainzquery.cpp b/juk/musicbrainzquery.cpp index 577e240f..6a6eb45e 100644 --- a/juk/musicbrainzquery.cpp +++ b/juk/musicbrainzquery.cpp @@ -68,7 +68,7 @@ void MusicBrainzLookup::error() void MusicBrainzLookup::message(const TQString &s) const { KMainWindow *w = static_cast(kapp->mainWidget()); - w->statusBar()->message(TQString("%1 (%2)").arg(s).arg(m_file.fileInfo().fileName()), 3000); + w->statusBar()->message(TQString("%1 (%2)").tqarg(s).tqarg(m_file.fileInfo().fileName()), 3000); } void MusicBrainzLookup::confirmation() @@ -76,20 +76,20 @@ void MusicBrainzLookup::confirmation() // Here we do a bit of queuing to make sure that we don't pop up multiple // instances of the confirmation dialog at once. - static TQValueList< QPair > queue; + static TQValueList< TQPair > queue; if(results().isEmpty()) return; if(!queue.isEmpty()) { - queue.append(qMakePair(m_file, results())); + queue.append(tqMakePair(m_file, results())); return; } - queue.append(qMakePair(m_file, results())); + queue.append(tqMakePair(m_file, results())); while(!queue.isEmpty()) { - QPair item = queue.first(); + TQPair item = queue.first(); FileHandle file = item.first; KTRMResultList results = item.second; TrackPickerDialog dialog(file.fileInfo().fileName(), results); diff --git a/juk/musicbrainzquery.h b/juk/musicbrainzquery.h index d88b166f..195006e0 100644 --- a/juk/musicbrainzquery.h +++ b/juk/musicbrainzquery.h @@ -13,8 +13,8 @@ * * ***************************************************************************/ -#ifndef MUSICBRAINZQUERY_H -#define MUSICBRAINZQUERY_H +#ifndef MUSICBRAINZTQUERY_H +#define MUSICBRAINZTQUERY_H #include diff --git a/juk/nowplaying.cpp b/juk/nowplaying.cpp index 4256ecff..ebf03b94 100644 --- a/juk/nowplaying.cpp +++ b/juk/nowplaying.cpp @@ -39,17 +39,17 @@ static const int imageSize = 64; -struct Line : public QFrame +struct Line : public TQFrame { - Line(TQWidget *parent) : TQFrame(parent) { setFrameShape(VLine); } + Line(TQWidget *tqparent) : TQFrame(tqparent) { setFrameShape(VLine); } }; //////////////////////////////////////////////////////////////////////////////// // NowPlaying //////////////////////////////////////////////////////////////////////////////// -NowPlaying::NowPlaying(TQWidget *parent, PlaylistCollection *collection, const char *name) : - TQHBox(parent, name), +NowPlaying::NowPlaying(TQWidget *tqparent, PlaylistCollection *collection, const char *name) : + TQHBox(tqparent, name), m_observer(this, collection), m_collection(collection) { @@ -58,9 +58,9 @@ NowPlaying::NowPlaying(TQWidget *parent, PlaylistCollection *collection, const c CollectionList::instance()->addObserver(&m_observer); - layout()->setMargin(5); - layout()->setSpacing(3); - setFixedHeight(imageSize + 2 + layout()->margin() * 2); + tqlayout()->setMargin(5); + tqlayout()->setSpacing(3); + setFixedHeight(imageSize + 2 + tqlayout()->margin() * 2); setStretchFactor(new CoverItem(this), 0); setStretchFactor(new TrackItem(this), 2); @@ -105,11 +105,11 @@ void NowPlaying::slotUpdate() // CoverItem //////////////////////////////////////////////////////////////////////////////// -CoverItem::CoverItem(NowPlaying *parent) : - TQLabel(parent, "CoverItem"), - NowPlayingItem(parent) +CoverItem::CoverItem(NowPlaying *tqparent) : + TQLabel(tqparent, "CoverItem"), + NowPlayingItem(tqparent) { - setFixedHeight(parent->height() - parent->layout()->margin() * 2); + setFixedHeight(tqparent->height() - tqparent->tqlayout()->margin() * 2); setFrameStyle(Box | Plain); setLineWidth(1); setMargin(1); @@ -123,7 +123,7 @@ void CoverItem::update(const FileHandle &file) if(file.coverInfo()->hasCover()) { show(); TQImage image = file.coverInfo()->pixmap(CoverInfo::Thumbnail).convertToImage(); - setPixmap(image.smoothScale(imageSize, imageSize, TQImage::ScaleMin)); + setPixmap(image.smoothScale(imageSize, imageSize, TQ_ScaleMin)); } else hide(); @@ -138,7 +138,7 @@ void CoverItem::mouseReleaseEvent(TQMouseEvent *event) if(event->x() >= 0 && event->y() >= 0 && event->x() < width() && event->y() < height() && - event->button() == LeftButton && + event->button() == Qt::LeftButton && m_file.coverInfo()->hasCover()) { m_file.coverInfo()->popup(); @@ -159,7 +159,7 @@ void CoverItem::mouseMoveEvent(TQMouseEvent *e) return; TQPoint diff = m_dragStart - e->globalPos(); - if(QABS(diff.x()) > 1 || QABS(diff.y()) > 1) { + if(TQABS(diff.x()) > 1 || TQABS(diff.y()) > 1) { // Start a drag. @@ -214,21 +214,21 @@ void CoverItem::dropEvent(TQDropEvent *e) // TrackItem //////////////////////////////////////////////////////////////////////////////// -TrackItem::TrackItem(NowPlaying *parent) : - TQWidget(parent, "TrackItem"), - NowPlayingItem(parent) +TrackItem::TrackItem(NowPlaying *tqparent) : + TQWidget(tqparent, "TrackItem"), + NowPlayingItem(tqparent) { - setFixedHeight(parent->height() - parent->layout()->margin() * 2); - setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); + setFixedHeight(tqparent->height() - tqparent->tqlayout()->margin() * 2); + tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); - TQVBoxLayout *layout = new TQVBoxLayout(this); + TQVBoxLayout *tqlayout = new TQVBoxLayout(this); m_label = new LinkLabel(this); m_label->setLinkUnderline(false); - layout->addStretch(); - layout->addWidget(m_label); - layout->addStretch(); + tqlayout->addStretch(); + tqlayout->addWidget(m_label); + tqlayout->addStretch(); connect(m_label, TQT_SIGNAL(linkClicked(const TQString &)), this, TQT_SLOT(slotOpenLink(const TQString &))); @@ -242,7 +242,7 @@ void TrackItem::update(const FileHandle &file) void TrackItem::slotOpenLink(const TQString &link) { - PlaylistCollection *collection = NowPlayingItem::parent()->collection(); + PlaylistCollection *collection = NowPlayingItem::tqparent()->collection(); if(link == "artist") collection->showMore(m_file.tag()->artist()); @@ -259,7 +259,7 @@ void TrackItem::slotUpdate() TQString title = TQStyleSheet::escape(m_file.tag()->title()); TQString artist = TQStyleSheet::escape(m_file.tag()->artist()); TQString album = TQStyleSheet::escape(m_file.tag()->album()); - TQString separator = (artist.isNull() || album.isNull()) ? TQString::null : TQString(" - "); + TQString separator = (artist.isNull() || album.isNull()) ? TQString() : TQString(" - "); // This block-o-nastiness makes the font smaller and smaller until it actually fits. @@ -269,32 +269,32 @@ void TrackItem::slotUpdate() "
" "%4%5%6"; - if(NowPlayingItem::parent()->collection()->showMoreActive()) - format.append(TQString(" (%1)").arg(i18n("back to playlist"))); + if(NowPlayingItem::tqparent()->collection()->showMoreActive()) + format.append(TQString(" (%1)").tqarg(i18n("back to playlist"))); format.append(""); do { - m_label->setText(format.arg(size).arg(title).arg(size - 2) - .arg(artist).arg(separator).arg(album)); + m_label->setText(format.tqarg(size).tqarg(title).tqarg(size - 2) + .tqarg(artist).tqarg(separator).tqarg(album)); --size; } while(m_label->heightForWidth(m_label->width()) > imageSize && size >= 0); - m_label->setFixedHeight(QMIN(imageSize, m_label->heightForWidth(m_label->width()))); + m_label->setFixedHeight(TQMIN(imageSize, m_label->heightForWidth(m_label->width()))); } //////////////////////////////////////////////////////////////////////////////// // HistoryItem //////////////////////////////////////////////////////////////////////////////// -HistoryItem::HistoryItem(NowPlaying *parent) : - LinkLabel(parent, "HistoryItem"), - NowPlayingItem(parent) +HistoryItem::HistoryItem(NowPlaying *tqparent) : + LinkLabel(tqparent, "HistoryItem"), + NowPlayingItem(tqparent) { - setFixedHeight(parent->height() - parent->layout()->margin() * 2); - setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); + setFixedHeight(tqparent->height() - tqparent->tqlayout()->margin() * 2); + tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); setLinkUnderline(false); - setText(TQString("%1").arg(i18n("History"))); + setText(TQString("%1").tqarg(i18n("History"))); m_timer = new TQTimer(this); connect(m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotAddPlaying())); @@ -309,14 +309,14 @@ void HistoryItem::update(const FileHandle &file) m_history.remove(m_history.fromLast()); TQString format = "
%2"; - TQString current = TQString("%1").arg(i18n("History")); + TQString current = TQString("%1").tqarg(i18n("History")); TQString previous; for(TQValueList::ConstIterator it = m_history.begin(); it != m_history.end(); ++it) { previous = current; - current.append(format.arg((*it).anchor).arg(TQStyleSheet::escape((*it).file.tag()->title()))); + current.append(format.tqarg((*it).anchor).tqarg(TQStyleSheet::escape((*it).file.tag()->title()))); setText(current); if(heightForWidth(width()) > imageSize) { setText(previous); @@ -342,7 +342,7 @@ void HistoryItem::openLink(const TQString &link) (*it).playlist->clearSelection(); (*it).playlist->setSelected(item, true); (*it).playlist->ensureItemVisible(item); - NowPlayingItem::parent()->collection()->raise((*it).playlist); + NowPlayingItem::tqparent()->collection()->raise((*it).playlist); } break; } diff --git a/juk/nowplaying.h b/juk/nowplaying.h index 0a60c278..bacc6582 100644 --- a/juk/nowplaying.h +++ b/juk/nowplaying.h @@ -37,12 +37,13 @@ class Playlist; * when the playing item changes. */ -class NowPlaying : public QHBox +class NowPlaying : public TQHBox { Q_OBJECT + TQ_OBJECT public: - NowPlaying(TQWidget *parent, PlaylistCollection *collection, + NowPlaying(TQWidget *tqparent, PlaylistCollection *collection, const char *name = 0); void addItem(NowPlayingItem *item); PlaylistCollection *collection() const; @@ -53,9 +54,9 @@ private slots: private: struct Observer : public PlaylistObserver { - Observer(NowPlaying *parent, PlaylistInterface *playlist) : + Observer(NowPlaying *tqparent, PlaylistInterface *playlist) : PlaylistObserver(playlist), - m_parent(parent) {} + m_parent(tqparent) {} virtual void updateCurrent() {} virtual void updateData() { m_parent->slotUpdate(); } NowPlaying *m_parent; @@ -75,9 +76,9 @@ class NowPlayingItem { public: virtual void update(const FileHandle &file) = 0; - NowPlaying *parent() const { return m_parent; } + NowPlaying *tqparent() const { return m_parent; } protected: - NowPlayingItem(NowPlaying *parent) : m_parent(parent) { parent->addItem(this); } + NowPlayingItem(NowPlaying *tqparent) : m_parent(tqparent) { tqparent->addItem(this); } private: NowPlaying *m_parent; }; @@ -90,7 +91,7 @@ private: class CoverItem : public TQLabel, public NowPlayingItem { public: - CoverItem(NowPlaying *parent); + CoverItem(NowPlaying *tqparent); virtual void update(const FileHandle &file); virtual void mouseReleaseEvent(TQMouseEvent *event); @@ -114,7 +115,7 @@ private: class LinkLabel : public KActiveLabel { public: - LinkLabel(TQWidget *parent, const char *name = 0) : KActiveLabel(parent, name) {} + LinkLabel(TQWidget *tqparent, const char *name = 0) : KActiveLabel(tqparent, name) {} virtual void openLink(const TQString &) {} }; @@ -126,9 +127,10 @@ public: class TrackItem : public TQWidget, public NowPlayingItem { Q_OBJECT + TQ_OBJECT public: - TrackItem(NowPlaying *parent); + TrackItem(NowPlaying *tqparent); virtual void update(const FileHandle &file); private slots: @@ -147,9 +149,10 @@ private: class HistoryItem : public LinkLabel, public NowPlayingItem { Q_OBJECT + TQ_OBJECT public: - HistoryItem(NowPlaying *parent); + HistoryItem(NowPlaying *tqparent); virtual void update(const FileHandle &file); virtual void openLink(const TQString &link); diff --git a/juk/player.h b/juk/player.h index 600e3db6..69910aaa 100644 --- a/juk/player.h +++ b/juk/player.h @@ -20,7 +20,7 @@ #include "filehandle.h" -class Player : public QObject +class Player : public TQObject { public: virtual ~Player() {} diff --git a/juk/playermanager.cpp b/juk/playermanager.cpp index 19647278..d62c84c4 100644 --- a/juk/playermanager.cpp +++ b/juk/playermanager.cpp @@ -46,7 +46,7 @@ using namespace ActionCollection; -enum PlayerManagerStatus { StatusStopped = -1, StatusPaused = 1, StatusPlaying = 2 }; +enum PlayerManagertqStatus { StatusStopped = -1, StatusPaused = 1, StatusPlaying = 2 }; //////////////////////////////////////////////////////////////////////////////// // helper functions @@ -194,7 +194,7 @@ TQStringList PlayerManager::trackProperties() TQString PlayerManager::trackProperty(const TQString &property) const { if(!playing() && !paused()) - return TQString::null; + return TQString(); return m_file.property(property); } @@ -220,7 +220,7 @@ FileHandle PlayerManager::playingFile() const TQString PlayerManager::playingString() const { if(!playing()) - return TQString::null; + return TQString(); TQString str = m_file.tag()->artist() + " - " + m_file.tag()->title(); if(m_file.tag()->artist().isEmpty()) @@ -239,10 +239,10 @@ void PlayerManager::setStatusLabel(StatusLabel *label) m_statusLabel = label; } -KSelectAction *PlayerManager::playerSelectAction(TQObject *parent) // static +KSelectAction *PlayerManager::playerSelectAction(TQObject *tqparent) // static { KSelectAction *action = 0; - action = new KSelectAction(i18n("&Output To"), 0, parent, "outputSelect"); + action = new KSelectAction(i18n("&Output To"), 0, tqparent, "outputSelect"); TQStringList l; #if HAVE_ARTS diff --git a/juk/playermanager.h b/juk/playermanager.h index c23c0752..3b384762 100644 --- a/juk/playermanager.h +++ b/juk/playermanager.h @@ -33,6 +33,7 @@ class PlaylistInterface; class PlayerManager : public Player, public PlayerIface { Q_OBJECT + TQ_OBJECT protected: PlayerManager(); @@ -61,7 +62,7 @@ public: TQString randomPlayMode() const; - static KSelectAction *playerSelectAction(TQObject *parent); + static KSelectAction *playerSelectAction(TQObject *tqparent); public slots: diff --git a/juk/playlist.cpp b/juk/playlist.cpp index fb218881..51cb5095 100644 --- a/juk/playlist.cpp +++ b/juk/playlist.cpp @@ -80,11 +80,11 @@ static bool manualResize() * A tooltip specialized to show full filenames over the file name column. */ -class PlaylistToolTip : public QToolTip +class PlaylistToolTip : public TQToolTip { public: - PlaylistToolTip(TQWidget *parent, Playlist *playlist) : - TQToolTip(parent), m_playlist(playlist) {} + PlaylistToolTip(TQWidget *tqparent, Playlist *playlist) : + TQToolTip(tqparent), m_playlist(playlist) {} virtual void maybeTip(const TQPoint &p) { @@ -102,7 +102,7 @@ public: (column == m_playlist->columnOffset() + PlaylistItem::CoverColumn && item->file().coverInfo()->hasCover())) { - TQRect r = m_playlist->itemRect(item); + TQRect r = m_playlist->tqitemRect(item); int headerPosition = m_playlist->header()->sectionPos(column); r.setLeft(headerPosition); r.setRight(headerPosition + m_playlist->header()->sectionSize(column)); @@ -312,7 +312,7 @@ Playlist::Playlist(PlaylistCollection *collection, const TQString &name, const TQString &iconName) : KListView(collection->playlistStack(), name.latin1()), m_collection(collection), - m_fetcher(new WebImageFetcher(this)), + m_fetcher(new WebImageFetcher(TQT_TQOBJECT(this))), m_selectedCount(0), m_allowDuplicates(false), m_polished(false), @@ -336,7 +336,7 @@ Playlist::Playlist(PlaylistCollection *collection, const PlaylistItemList &items const TQString &name, const TQString &iconName) : KListView(collection->playlistStack(), name.latin1()), m_collection(collection), - m_fetcher(new WebImageFetcher(this)), + m_fetcher(new WebImageFetcher(TQT_TQOBJECT(this))), m_selectedCount(0), m_allowDuplicates(false), m_polished(false), @@ -361,7 +361,7 @@ Playlist::Playlist(PlaylistCollection *collection, const TQFileInfo &playlistFil const TQString &iconName) : KListView(collection->playlistStack()), m_collection(collection), - m_fetcher(new WebImageFetcher(this)), + m_fetcher(new WebImageFetcher(TQT_TQOBJECT(this))), m_selectedCount(0), m_allowDuplicates(false), m_polished(false), @@ -385,7 +385,7 @@ Playlist::Playlist(PlaylistCollection *collection, const TQFileInfo &playlistFil Playlist::Playlist(PlaylistCollection *collection, bool delaySetup) : KListView(collection->playlistStack()), m_collection(collection), - m_fetcher(new WebImageFetcher(this)), + m_fetcher(new WebImageFetcher(TQT_TQOBJECT(this))), m_selectedCount(0), m_allowDuplicates(false), m_polished(false), @@ -543,7 +543,7 @@ void Playlist::save() TQFile file(m_fileName); if(!file.open(IO_WriteOnly)) - return KMessageBox::error(this, i18n("Could not save to file %1.").arg(m_fileName)); + return KMessageBox::error(this, i18n("Could not save to file %1.").tqarg(m_fileName)); TQTextStream stream(&file); @@ -727,12 +727,12 @@ void Playlist::synchronizePlayingItems(const PlaylistList &sources, bool setMast void Playlist::copy() { - kapp->clipboard()->setData(dragObject(0), QClipboard::Clipboard); + kapp->tqclipboard()->setData(dragObject(0), TQClipboard::Clipboard); } void Playlist::paste() { - decode(kapp->clipboard()->data(), static_cast(currentItem())); + decode(kapp->tqclipboard()->data(), static_cast(currentItem())); } void Playlist::clear() @@ -750,7 +750,7 @@ void Playlist::slotRefresh() if(l.isEmpty()) l = visibleItems(); - KApplication::setOverrideCursor(Qt::waitCursor); + KApplication::setOverrideCursor(TQt::waitCursor); for(PlaylistItemList::Iterator it = l.begin(); it != l.end(); ++it) { (*it)->refreshFromDisk(); @@ -800,7 +800,7 @@ void Playlist::slotRemoveCover() return; int button = KMessageBox::warningContinueCancel(this, i18n("Are you sure you want to delete these covers?"), - TQString::null, + TQString(), i18n("&Delete Covers")); if(button == KMessageBox::Continue) refreshAlbums(items); @@ -877,7 +877,7 @@ void Playlist::slotCoverChanged(int coverId) void Playlist::slotGuessTagInfo(TagGuesser::Type type) { - KApplication::setOverrideCursor(Qt::waitCursor); + KApplication::setOverrideCursor(TQt::waitCursor); PlaylistItemList items = selectedItems(); setDynamicListsFrozen(true); @@ -922,7 +922,7 @@ void Playlist::slotWeightDirty(int column) return; } - if(m_weightDirty.find(column) == m_weightDirty.end()) + if(m_weightDirty.tqfind(column) == m_weightDirty.end()) m_weightDirty.append(column); } @@ -1015,7 +1015,7 @@ void Playlist::removeFromDisk(const PlaylistItemList &items) } } -TQDragObject *Playlist::dragObject(TQWidget *parent) +TQDragObject *Playlist::dragObject(TQWidget *tqparent) { PlaylistItemList items = selectedItems(); KURL::List urls; @@ -1025,7 +1025,7 @@ TQDragObject *Playlist::dragObject(TQWidget *parent) urls.append(url); } - KURLDrag *drag = new KURLDrag(urls, parent, "Playlist Items"); + KURLDrag *drag = new KURLDrag(urls, tqparent, "Playlist Items"); drag->setPixmap(BarIcon("sound")); return drag; @@ -1110,11 +1110,11 @@ void Playlist::decode(TQMimeSource *s, PlaylistItem *item) bool Playlist::eventFilter(TQObject *watched, TQEvent *e) { - if(watched == header()) { + if(TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(header())) { switch(e->type()) { case TQEvent::MouseMove: { - if((static_cast(e)->state() & LeftButton) == LeftButton && + if((TQT_TQMOUSEEVENT(e)->state() & Qt::LeftButton) == Qt::LeftButton && !action("resizeColumnsManually")->isChecked()) { m_columnWidthModeChanged = true; @@ -1127,7 +1127,7 @@ bool Playlist::eventFilter(TQObject *watched, TQEvent *e) } case TQEvent::MouseButtonPress: { - if(static_cast(e)->button() == RightButton) + if(TQT_TQMOUSEEVENT(e)->button() == Qt::RightButton) m_headerMenu->popup(TQCursor::pos()); break; @@ -1161,7 +1161,7 @@ void Playlist::keyPressEvent(TQKeyEvent *event) TQListViewItemIterator visible(this, TQListViewItemIterator::IteratorFlag( TQListViewItemIterator::Visible)); if(selected.current() == visible.current()) - KApplication::postEvent(parent(), new FocusUpEvent); + KApplication::postEvent(tqparent(), new FocusUpEvent); } } @@ -1247,7 +1247,7 @@ void Playlist::contentsMouseDoubleClickEvent(TQMouseEvent *e) // Filter out non left button double clicks, that way users don't have the // weird experience of switching songs from a double right-click. - if(e->button() == LeftButton) + if(e->button() == Qt::LeftButton) KListView::contentsMouseDoubleClickEvent(e); } @@ -1353,7 +1353,7 @@ void Playlist::addFiles(const TQStringList &files, PlaylistItem *after) if(!after) after = static_cast(lastItem()); - KApplication::setOverrideCursor(Qt::waitCursor); + KApplication::setOverrideCursor(TQt::waitCursor); m_blockDataChanged = true; @@ -1375,22 +1375,22 @@ void Playlist::addFiles(const TQStringList &files, PlaylistItem *after) void Playlist::refreshAlbums(const PlaylistItemList &items, coverKey id) { - TQValueList< QPair > albums; + TQValueList< TQPair > albums; bool setAlbumCovers = items.count() == 1; for(PlaylistItemList::ConstIterator it = items.begin(); it != items.end(); ++it) { TQString artist = (*it)->file().tag()->artist(); TQString album = (*it)->file().tag()->album(); - if(albums.find(qMakePair(artist, album)) == albums.end()) - albums.append(qMakePair(artist, album)); + if(albums.tqfind(tqMakePair(artist, album)) == albums.end()) + albums.append(tqMakePair(artist, album)); (*it)->file().coverInfo()->setCoverId(id); if(setAlbumCovers) (*it)->file().coverInfo()->applyCoverToWholeAlbum(true); } - for(TQValueList< QPair >::ConstIterator it = albums.begin(); + for(TQValueList< TQPair >::ConstIterator it = albums.begin(); it != albums.end(); ++it) { refreshAlbum((*it).first, (*it).second); @@ -1545,7 +1545,7 @@ void Playlist::polish() // setup header RMB menu ////////////////////////////////////////////////// - m_columnVisibleAction = new KActionMenu(i18n("&Show Columns"), this, "showColumns"); + m_columnVisibleAction = new KActionMenu(i18n("&Show Columns"), TQT_TQOBJECT(this), "showColumns"); m_headerMenu = m_columnVisibleAction->popupMenu(); m_headerMenu->insertTitle(i18n("Show")); @@ -1636,7 +1636,7 @@ void Playlist::slotPopulateBackMenu() const void Playlist::slotPlayFromBackMenu(int number) const { - if(!m_backMenuItems.contains(number)) + if(!m_backMenuItems.tqcontains(number)) return; TrackSequenceManager::instance()->setNextItem(m_backMenuItems[number]); @@ -1947,7 +1947,7 @@ void Playlist::slotUpdateColumnWidths() minimumWidth[column] = header()->fontMetrics().width(header()->label(column)) + 10; minimumWidthTotal += minimumWidth[column]; - minimumFixedWidth[column] = QMAX(minimumWidth[column], m_columnFixedWidths[column]); + minimumFixedWidth[column] = TQMAX(minimumWidth[column], m_columnFixedWidths[column]); minimumFixedWidthTotal += minimumFixedWidth[column]; } @@ -2127,7 +2127,7 @@ void Playlist::slotShowRMBMenu(TQListViewItem *item, const TQPoint &point, int c if(showEdit) m_rmbMenu->changeItem(m_rmbEditID, - i18n("Edit '%1'").arg(columnText(column + columnOffset()))); + i18n("Edit '%1'").tqarg(columnText(column + columnOffset()))); m_rmbMenu->setItemVisible(m_rmbEditID, showEdit); @@ -2239,7 +2239,7 @@ void Playlist::slotInlineEditDone(TQListViewItem *, const TQString &, int column (l.count() > 1 && KMessageBox::warningContinueCancel( 0, i18n("This will edit multiple files. Are you sure?"), - TQString::null, + TQString(), i18n("Edit"), "DontWarnMultipleTags") == KMessageBox::Cancel)) { diff --git a/juk/playlist.h b/juk/playlist.h index aa1e1d84..d9273834 100644 --- a/juk/playlist.h +++ b/juk/playlist.h @@ -46,13 +46,14 @@ typedef TQValueList PlaylistItemList; class Playlist : public KListView, public PlaylistInterface { Q_OBJECT + TQ_OBJECT public: - Playlist(PlaylistCollection *collection, const TQString &name = TQString::null, + Playlist(PlaylistCollection *collection, const TQString &name = TQString(), const TQString &iconName = "midi"); Playlist(PlaylistCollection *collection, const PlaylistItemList &items, - const TQString &name = TQString::null, const TQString &iconName = "midi"); + const TQString &name = TQString(), const TQString &iconName = "midi"); Playlist(PlaylistCollection *collection, const TQFileInfo &playlistFile, const TQString &iconName = "midi"); @@ -192,7 +193,7 @@ public: /** * Returns the file name associated with this playlist (an m3u file) or - * TQString::null if no such file exists. + * TQString() if no such file exists. */ TQString fileName() const { return m_fileName; } @@ -419,7 +420,7 @@ protected: virtual bool eventFilter(TQObject *watched, TQEvent *e); virtual void keyPressEvent(TQKeyEvent *e); - virtual TQDragObject *dragObject(TQWidget *parent); + virtual TQDragObject *dragObject(TQWidget *tqparent); virtual TQDragObject *dragObject() { return dragObject(this); } virtual bool canDecode(TQMimeSource *s); virtual void decode(TQMimeSource *s, PlaylistItem *item = 0); @@ -434,7 +435,7 @@ protected: virtual void insertItem(TQListViewItem *item); virtual void takeItem(TQListViewItem *item); - virtual bool hasItem(const TQString &file) const { return m_members.contains(file); } + virtual bool hasItem(const TQString &file) const { return m_members.tqcontains(file); } void addColumn(const TQString &label); @@ -456,7 +457,7 @@ protected: void setupItem(PlaylistItem *item); /** - * Forwards the call to the parent to enable or disable automatic deletion + * Forwards the call to the tqparent to enable or disable automatic deletion * of tree view playlists. Used by CollectionListItem. */ void setDynamicListsFrozen(bool frozen); @@ -711,7 +712,7 @@ private: bool processEvents(); -class FocusUpEvent : public QCustomEvent +class FocusUpEvent : public TQCustomEvent { public: FocusUpEvent() : TQCustomEvent(id) {} diff --git a/juk/playlistbox.cpp b/juk/playlistbox.cpp index 32e874b9..a0d8b5c8 100644 --- a/juk/playlistbox.cpp +++ b/juk/playlistbox.cpp @@ -46,9 +46,9 @@ using namespace ActionCollection; // PlaylistBox public methods //////////////////////////////////////////////////////////////////////////////// -PlaylistBox::PlaylistBox(TQWidget *parent, TQWidgetStack *playlistStack, +PlaylistBox::PlaylistBox(TQWidget *tqparent, TQWidgetStack *playlistStack, const char *name) : - KListView(parent, name), + KListView(tqparent, name), PlaylistCollection(playlistStack), m_viewModeIndex(0), m_hasSelection(false), @@ -91,7 +91,7 @@ PlaylistBox::PlaylistBox(TQWidget *parent, TQWidgetStack *playlistStack, // add the view modes stuff KSelectAction *viewModeAction = - new KSelectAction(i18n("View Modes"), "view_choose", KShortcut(), actions(), "viewModeMenu"); + new KSelectAction(i18n("View Modes"), "view_choose", KShortcut(), ActionCollection::actions(), "viewModeMenu"); m_viewModes.append(new ViewMode(this)); m_viewModes.append(new CompactViewMode(this)); @@ -171,7 +171,7 @@ void PlaylistBox::raise(Playlist *playlist) if(!playlist) return; - Item *i = m_playlistDict.find(playlist); + Item *i = m_playlistDict.tqfind(playlist); if(i) { clearSelection(); @@ -208,7 +208,7 @@ void PlaylistBox::duplicate() void PlaylistBox::paste() { Item *i = static_cast(currentItem()); - decode(kapp->clipboard()->data(), i); + decode(kapp->tqclipboard()->data(), i); } //////////////////////////////////////////////////////////////////////////////// @@ -230,15 +230,15 @@ void PlaylistBox::setupPlaylist(Playlist *playlist, const TQString &iconName) setupPlaylist(playlist, iconName, 0); } -void PlaylistBox::setupPlaylist(Playlist *playlist, const TQString &iconName, Item *parentItem) +void PlaylistBox::setupPlaylist(Playlist *playlist, const TQString &iconName, Item *tqparentItem) { connect(playlist, TQT_SIGNAL(signalPlaylistItemsDropped(Playlist *)), TQT_SLOT(slotPlaylistItemsDropped(Playlist *))); PlaylistCollection::setupPlaylist(playlist, iconName); - if(parentItem) - new Item(parentItem, iconName, playlist->name(), playlist); + if(tqparentItem) + new Item(tqparentItem, iconName, playlist->name(), playlist); else new Item(this, iconName, playlist->name(), playlist); } @@ -289,7 +289,7 @@ void PlaylistBox::remove() if(!files.isEmpty()) { int remove = KMessageBox::warningYesNoCancelList( - this, i18n("Do you want to delete these files from the disk as well?"), files, TQString::null, KStdGuiItem::del(), i18n("Keep")); + this, i18n("Do you want to delete these files from the disk as well?"), files, TQString(), KStdGuiItem::del(), i18n("Keep")); if(remove == KMessageBox::Yes) { TQStringList couldNotDelete; @@ -445,7 +445,7 @@ void PlaylistBox::contentsDropEvent(TQDropEvent *e) if(m_dropItem) { Item *old = m_dropItem; m_dropItem = 0; - old->repaint(); + old->tqrepaint(); } } @@ -493,14 +493,14 @@ void PlaylistBox::contentsDragMoveEvent(TQDragMoveEvent *e) if(e->isAccepted()) { m_dropItem = target; - target->repaint(); + target->tqrepaint(); m_showTimer->start(1500, true); } else m_dropItem = 0; if(old) - old->repaint(); + old->tqrepaint(); } } else { @@ -517,21 +517,21 @@ void PlaylistBox::contentsDragLeaveEvent(TQDragLeaveEvent *e) if(m_dropItem) { Item *old = m_dropItem; m_dropItem = 0; - old->repaint(); + old->tqrepaint(); } KListView::contentsDragLeaveEvent(e); } void PlaylistBox::contentsMousePressEvent(TQMouseEvent *e) { - if(e->button() == LeftButton) + if(e->button() == Qt::LeftButton) m_doingMultiSelect = true; KListView::contentsMousePressEvent(e); } void PlaylistBox::contentsMouseReleaseEvent(TQMouseEvent *e) { - if(e->button() == LeftButton) { + if(e->button() == Qt::LeftButton) { m_doingMultiSelect = false; slotPlaylistChanged(); } @@ -692,8 +692,8 @@ PlaylistBox::Item::Item(PlaylistBox *listBox, const TQString &icon, const TQStri init(); } -PlaylistBox::Item::Item(Item *parent, const TQString &icon, const TQString &text, Playlist *l) - : TQObject(parent->listView()), KListViewItem(parent, text), +PlaylistBox::Item::Item(Item *tqparent, const TQString &icon, const TQString &text, Playlist *l) + : TQObject(tqparent->listView()), KListViewItem(tqparent, text), m_playlist(l), m_text(text), m_iconName(icon), m_sortedFirst(false) { init(); @@ -722,10 +722,10 @@ int PlaylistBox::Item::compare(TQListViewItem *i, int col, bool) const return text(col).lower().localeAwareCompare(i->text(col).lower()); } -void PlaylistBox::Item::paintCell(TQPainter *painter, const TQColorGroup &colorGroup, int column, int width, int align) +void PlaylistBox::Item::paintCell(TQPainter *painter, const TQColorGroup &tqcolorGroup, int column, int width, int align) { PlaylistBox *playlistBox = static_cast(listView()); - playlistBox->viewMode()->paintCell(this, painter, colorGroup, column, width, align); + playlistBox->viewMode()->paintCell(this, painter, tqcolorGroup, column, width, align); } void PlaylistBox::Item::setText(int column, const TQString &text) diff --git a/juk/playlistbox.h b/juk/playlistbox.h index 482f4771..cc8159a2 100644 --- a/juk/playlistbox.h +++ b/juk/playlistbox.h @@ -41,6 +41,7 @@ typedef TQValueList PlaylistList; class PlaylistBox : public KListView, public PlaylistCollection { Q_OBJECT + TQ_OBJECT public: class Item; @@ -48,7 +49,7 @@ public: friend class Item; - PlaylistBox(TQWidget *parent, TQWidgetStack *playlistStack, + PlaylistBox(TQWidget *tqparent, TQWidgetStack *playlistStack, const char *name = 0); virtual ~PlaylistBox(); @@ -65,7 +66,7 @@ public: Item *dropItem() const { return m_dropItem; } - void setupPlaylist(Playlist *playlist, const TQString &iconName, Item *parentItem = 0); + void setupPlaylist(Playlist *playlist, const TQString &iconName, Item *tqparentItem = 0); public slots: void paste(); @@ -141,8 +142,9 @@ class PlaylistBox::Item : public TQObject, public KListViewItem friend class TreeViewMode; Q_OBJECT + TQ_OBJECT - // moc won't let me create private TQObject subclasses and Qt won't let me + // tqmoc won't let me create private TQObject subclasses and TQt won't let me // make the destructor protected, so here's the closest hack that will // compile. @@ -151,7 +153,7 @@ public: protected: Item(PlaylistBox *listBox, const TQString &icon, const TQString &text, Playlist *l = 0); - Item(Item *parent, const TQString &icon, const TQString &text, Playlist *l = 0); + Item(Item *tqparent, const TQString &icon, const TQString &text, Playlist *l = 0); Playlist *playlist() const { return m_playlist; } PlaylistBox *listView() const { return static_cast(KListViewItem::listView()); } @@ -160,7 +162,7 @@ protected: void setSortedFirst(bool first = true) { m_sortedFirst = first; } virtual int compare(TQListViewItem *i, int col, bool) const; - virtual void paintCell(TQPainter *p, const TQColorGroup &colorGroup, int column, int width, int align); + virtual void paintCell(TQPainter *p, const TQColorGroup &tqcolorGroup, int column, int width, int align); virtual void paintFocus(TQPainter *, const TQColorGroup &, const TQRect &) {} virtual void setText(int column, const TQString &text); diff --git a/juk/playlistcollection.cpp b/juk/playlistcollection.cpp index 2c30c692..6a248b39 100644 --- a/juk/playlistcollection.cpp +++ b/juk/playlistcollection.cpp @@ -158,7 +158,7 @@ TQStringList PlaylistCollection::playlists() const TQObjectList *childList = m_playlistStack->queryList("Playlist"); TQObject *obj; for(obj = childList->first(); obj; obj = childList->next()) { - Playlist *p = static_cast(obj); + Playlist *p = static_cast(TQT_TQWIDGET(obj)); l.append(p->name()); } @@ -223,7 +223,7 @@ void PlaylistCollection::showMore(const TQString &artist, const TQString &album) // so cache the value we want it to have now. Playlist *belowShowMore = visiblePlaylist(); - PlaylistCollection::setupPlaylist(m_showMorePlaylist, TQString::null); + PlaylistCollection::setupPlaylist(m_showMorePlaylist, TQString()); PlaylistCollection::raise(m_showMorePlaylist); m_belowShowMorePlaylist = belowShowMore; @@ -252,12 +252,12 @@ void PlaylistCollection::removeTrack(const TQString &playlist, const TQStringLis TQString PlaylistCollection::playlist() const { - return visiblePlaylist() ? visiblePlaylist()->name() : TQString::null; + return visiblePlaylist() ? visiblePlaylist()->name() : TQString(); } TQString PlaylistCollection::playingPlaylist() const { - return currentPlaylist() && m_playing ? currentPlaylist()->name() : TQString::null; + return currentPlaylist() && m_playing ? currentPlaylist()->name() : TQString(); } void PlaylistCollection::setPlaylist(const TQString &playlist) @@ -281,7 +281,7 @@ TQString PlaylistCollection::trackProperty(const TQString &file, const TQString CollectionList *l = CollectionList::instance(); CollectionListItem *item = l->lookup(file); - return item ? item->file().property(property) : TQString::null; + return item ? item->file().property(property) : TQString(); } TQPixmap PlaylistCollection::trackCover(const TQString &file, const TQString &size) const @@ -320,7 +320,7 @@ void PlaylistCollection::open(const TQStringList &l) KMessageBox::questionYesNo( widget, i18n("Do you want to add these items to the current list or to the collection list?"), - TQString::null, + TQString(), KGuiItem(i18n("Current")), KGuiItem(i18n("Collection"))) == KMessageBox::No) { @@ -509,7 +509,7 @@ void PlaylistCollection::createFolderPlaylist() if(folder.isEmpty()) return; - TQString name = uniquePlaylistName(folder.mid(folder.findRev('/') + 1)); + TQString name = uniquePlaylistName(folder.mid(folder.tqfindRev('/') + 1)); name = playlistNameDialog(i18n("Create Folder Playlist"), name); if(!name.isNull()) @@ -681,7 +681,7 @@ bool PlaylistCollection::importPlaylists() const bool PlaylistCollection::containsPlaylistFile(const TQString &file) const { - return m_playlistFiles.contains(file); + return m_playlistFiles.tqcontains(file); } bool PlaylistCollection::showMoreActive() const @@ -706,7 +706,7 @@ void PlaylistCollection::clearShowMore(bool raisePlaylist) void PlaylistCollection::enableDirWatch(bool enable) { - TQObject *collection = CollectionList::instance(); + TQObject *collection = TQT_TQOBJECT(CollectionList::instance()); m_dirLister.disconnect(object()); if(enable) { @@ -731,7 +731,7 @@ TQString PlaylistCollection::playlistNameDialog(const TQString &caption, forceUnique ? uniquePlaylistName(suggest) : suggest, &ok); - return ok ? uniquePlaylistName(name) : TQString::null; + return ok ? uniquePlaylistName(name) : TQString(); } @@ -740,18 +740,18 @@ TQString PlaylistCollection::uniquePlaylistName(const TQString &suggest) const if(suggest.isEmpty()) return uniquePlaylistName(); - if(!m_playlistNames.contains(suggest)) + if(!m_playlistNames.tqcontains(suggest)) return suggest; TQString base = suggest; base.remove(TQRegExp("\\s\\([0-9]+\\)$")); int count = 1; - TQString s = TQString("%1 (%2)").arg(base).arg(count); + TQString s = TQString("%1 (%2)").tqarg(base).tqarg(count); - while(m_playlistNames.contains(s)) { + while(m_playlistNames.tqcontains(s)) { count++; - s = TQString("%1 (%2)").arg(base).arg(count); + s = TQString("%1 (%2)").tqarg(base).tqarg(count); } return s; @@ -789,7 +789,7 @@ Playlist *PlaylistCollection::playlistByName(const TQString &name) const TQObject *obj; for(obj = l->first(); obj; obj = l->next()) { - Playlist *p = static_cast(obj); + Playlist *p = static_cast(TQT_TQWIDGET(obj)); if(p->name() == name) { list = p; break; @@ -845,14 +845,14 @@ PlaylistCollection::ActionHandler::ActionHandler(PlaylistCollection *collection) menu->insert(createAction(i18n("&Empty Playlist..."), TQT_SLOT(slotCreatePlaylist()), "newPlaylist", "window_new", "CTRL+n")); menu->insert(createAction(i18n("&Search Playlist..."), TQT_SLOT(slotCreateSearchPlaylist()), - "newSearchPlaylist", "find", "CTRL+f")); + "newSearchPlaylist", "tqfind", "CTRL+f")); menu->insert(createAction(i18n("Playlist From &Folder..."), TQT_SLOT(slotCreateFolderPlaylist()), "newDirectoryPlaylist", "fileopen", "CTRL+d")); // Guess tag info menu #if HAVE_MUSICBRAINZ - menu = new KActionMenu(i18n("&Guess Tag Information"), TQString::null, actions(), "guessTag"); + menu = new KActionMenu(i18n("&Guess Tag Information"), TQString(), actions(), "guessTag"); menu->setIconSet(SmallIconSet("wizard")); menu->insert(createAction(i18n("From &File Name"), TQT_SLOT(slotGuessTagFromFile()), @@ -882,7 +882,7 @@ PlaylistCollection::ActionHandler::ActionHandler(PlaylistCollection *collection) createAction(i18n("Refresh"), TQT_SLOT(slotRefreshItems()), "refresh", "reload"); createAction(i18n("&Rename File"), TQT_SLOT(slotRenameItems()), "renameFile", "filesaveas", "CTRL+r"); - menu = new KActionMenu(i18n("Cover Manager"), TQString::null, actions(), "coverManager"); + menu = new KActionMenu(i18n("Cover Manager"), TQString(), actions(), "coverManager"); menu->setIconSet(SmallIconSet("image")); menu->insert(createAction(i18n("&View Cover"), TQT_SLOT(slotViewCovers()), "viewCover", "viewmag")); diff --git a/juk/playlistcollection.h b/juk/playlistcollection.h index 3c7eecbd..92b5ea0d 100644 --- a/juk/playlistcollection.h +++ b/juk/playlistcollection.h @@ -66,7 +66,7 @@ public: virtual TQStringList playlists() const; virtual void createPlaylist(const TQString &name); virtual void createDynamicPlaylist(const PlaylistList &playlists); - virtual void showMore(const TQString &artist, const TQString &album = TQString::null); + virtual void showMore(const TQString &artist, const TQString &album = TQString()); virtual void removeTrack(const TQString &playlist, const TQStringList &files); virtual TQString playlist() const; @@ -166,7 +166,7 @@ protected: bool containsPlaylistFile(const TQString &file) const; TQString playlistNameDialog(const TQString &caption = i18n("Create New Playlist"), - const TQString &suggest = TQString::null, + const TQString &suggest = TQString(), bool forceUnique = true) const; TQString uniquePlaylistName(const TQString &suggest = i18n("Playlist")) const; @@ -207,9 +207,10 @@ private: * activations without requiring PlaylistCollection to be a TQObject. */ -class PlaylistCollection::ActionHandler : public QObject +class PlaylistCollection::ActionHandler : public TQObject { Q_OBJECT + TQ_OBJECT public: ActionHandler(PlaylistCollection *collection); @@ -217,7 +218,7 @@ private: KAction *createAction(const TQString &text, const char *slot, const char *name, - const TQString &icon = TQString::null, + const TQString &icon = TQString(), const KShortcut &shortcut = KShortcut()); private slots: void slotPlayFirst() { m_collection->playFirst(); } diff --git a/juk/playlistexporter.h b/juk/playlistexporter.h index de9f7fff..ca7d0dc6 100644 --- a/juk/playlistexporter.h +++ b/juk/playlistexporter.h @@ -28,10 +28,10 @@ class KActionCollection; * @author Michael Pyne * @see K3bExporter */ -class PlaylistExporter : public QObject +class PlaylistExporter : public TQObject { public: - PlaylistExporter(TQWidget *parent = 0) : TQObject(parent) { } + PlaylistExporter(TQWidget *tqparent = 0) : TQObject(tqparent) { } virtual ~PlaylistExporter() { } /** diff --git a/juk/playlistitem.cpp b/juk/playlistitem.cpp index bdb41395..951fdb41 100644 --- a/juk/playlistitem.cpp +++ b/juk/playlistitem.cpp @@ -53,7 +53,7 @@ PlaylistItem::~PlaylistItem() m_collectionItem->removeChildItem(this); - if(m_playingItems.find(this) != m_playingItems.end()) { + if(m_playingItems.tqfind(this) != m_playingItems.end()) { m_playingItems.remove(this); if(m_playingItems.isEmpty()) playlist()->setPlaying(0); @@ -94,7 +94,7 @@ const TQPixmap *PlaylistItem::pixmap(int column) const return ℑ if(column == playlist()->leftColumn() && - m_playingItems.contains(const_cast(this))) + m_playingItems.tqcontains(const_cast(this))) return &playing; return KListViewItem::pixmap(column); @@ -103,7 +103,7 @@ const TQPixmap *PlaylistItem::pixmap(int column) const TQString PlaylistItem::text(int column) const { if(!d->fileHandle.tag()) - return TQString::null; + return TQString(); int offset = playlist()->columnOffset(); @@ -115,17 +115,17 @@ TQString PlaylistItem::text(int column) const case AlbumColumn: return d->fileHandle.tag()->album(); case CoverColumn: - return TQString::null; + return TQString(); case TrackNumberColumn: return d->fileHandle.tag()->track() > 0 ? TQString::number(d->fileHandle.tag()->track()) - : TQString::null; + : TQString(); case GenreColumn: return d->fileHandle.tag()->genre(); case YearColumn: return d->fileHandle.tag()->year() > 0 ? TQString::number(d->fileHandle.tag()->year()) - : TQString::null; + : TQString(); case LengthColumn: return d->fileHandle.tag()->lengthString(); case BitrateColumn: @@ -145,7 +145,7 @@ void PlaylistItem::setText(int column, const TQString &text) { int offset = playlist()->columnOffset(); if(column - offset >= 0 && column + offset <= lastColumn()) { - KListViewItem::setText(column, TQString::null); + KListViewItem::setText(column, TQString()); return; } @@ -239,16 +239,16 @@ void PlaylistItem::clear() // PlaylistItem protected methods //////////////////////////////////////////////////////////////////////////////// -PlaylistItem::PlaylistItem(CollectionListItem *item, Playlist *parent) : - KListViewItem(parent), +PlaylistItem::PlaylistItem(CollectionListItem *item, Playlist *tqparent) : + KListViewItem(tqparent), d(0), m_watched(0) { setup(item); } -PlaylistItem::PlaylistItem(CollectionListItem *item, Playlist *parent, TQListViewItem *after) : - KListViewItem(parent, after), +PlaylistItem::PlaylistItem(CollectionListItem *item, Playlist *tqparent, TQListViewItem *after) : + KListViewItem(tqparent, after), d(0), m_watched(0) { @@ -258,8 +258,8 @@ PlaylistItem::PlaylistItem(CollectionListItem *item, Playlist *parent, TQListVie // This constructor should only be used by the CollectionList subclass. -PlaylistItem::PlaylistItem(CollectionList *parent) : - KListViewItem(parent), +PlaylistItem::PlaylistItem(CollectionList *tqparent) : + KListViewItem(tqparent), m_watched(0) { d = new Data; @@ -269,13 +269,13 @@ PlaylistItem::PlaylistItem(CollectionList *parent) : void PlaylistItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int align) { - if(!m_playingItems.contains(this)) + if(!m_playingItems.tqcontains(this)) return KListViewItem::paintCell(p, cg, column, width, align); - TQColorGroup colorGroup = cg; + TQColorGroup tqcolorGroup = cg; - TQColor base = colorGroup.base(); - TQColor selection = colorGroup.highlight(); + TQColor base = tqcolorGroup.base(); + TQColor selection = tqcolorGroup.highlight(); int r = (base.red() + selection.red()) / 2; int b = (base.blue() + selection.blue()) / 2; @@ -283,13 +283,13 @@ void PlaylistItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, i TQColor c(r, g, b); - colorGroup.setColor(TQColorGroup::Base, c); - TQListViewItem::paintCell(p, colorGroup, column, width, align); + tqcolorGroup.setColor(TQColorGroup::Base, c); + TQListViewItem::paintCell(p, tqcolorGroup, column, width, align); } int PlaylistItem::compare(TQListViewItem *item, int column, bool ascending) const { - // reimplemented from QListViewItem + // reimplemented from TQListViewItem int offset = playlist()->columnOffset(); diff --git a/juk/playlistitem.h b/juk/playlistitem.h index 9b9cfa80..d8797208 100644 --- a/juk/playlistitem.h +++ b/juk/playlistitem.h @@ -156,13 +156,13 @@ protected: * Items should always be created using Playlist::createItem() or through a * subclss or friend class. */ - PlaylistItem(CollectionListItem *item, Playlist *parent); - PlaylistItem(CollectionListItem *item, Playlist *parent, TQListViewItem *after); + PlaylistItem(CollectionListItem *item, Playlist *tqparent); + PlaylistItem(CollectionListItem *item, Playlist *tqparent, TQListViewItem *after); /** * This is the constructor that shold be used by subclasses. */ - PlaylistItem(CollectionList *parent); + PlaylistItem(CollectionList *tqparent); /** * See the class documentation for an explanation of construction and deletion diff --git a/juk/playlistsearch.cpp b/juk/playlistsearch.cpp index 940c13e8..f0eb7a29 100644 --- a/juk/playlistsearch.cpp +++ b/juk/playlistsearch.cpp @@ -197,7 +197,7 @@ bool PlaylistSearch::Component::matches(PlaylistItem *item) const for(ColumnList::Iterator it = m_columns.begin(); it != m_columns.end(); ++it) { if(m_re) { - if(item->text(*it).find(m_queryRe) > -1) + if(item->text(*it).tqfind(m_queryRe) > -1) return true; else break; @@ -205,7 +205,7 @@ bool PlaylistSearch::Component::matches(PlaylistItem *item) const switch(m_mode) { case Contains: - if(item->text(*it).find(m_query, 0, m_caseSensitive) > -1) + if(item->text(*it).tqfind(m_query, 0, m_caseSensitive) > -1) return true; break; case Exact: @@ -221,7 +221,7 @@ bool PlaylistSearch::Component::matches(PlaylistItem *item) const case ContainsWord: { TQString s = item->text(*it); - int i = s.find(m_query, 0, m_caseSensitive); + int i = s.tqfind(m_query, 0, m_caseSensitive); if(i >= 0) { @@ -270,7 +270,7 @@ bool PlaylistSearch::Component::operator==(const Component &v) const TQDataStream &operator<<(TQDataStream &s, const PlaylistSearch &search) { s << search.components() - << Q_INT32(search.searchMode()); + << TQ_INT32(search.searchMode()); return s; } @@ -287,7 +287,7 @@ TQDataStream &operator>>(TQDataStream &s, PlaylistSearch &search) for(; it != components.end(); ++it) search.addComponent(*it); - Q_INT32 mode; + TQ_INT32 mode; s >> mode; search.setSearchMode(PlaylistSearch::SearchMode(mode)); @@ -296,11 +296,11 @@ TQDataStream &operator>>(TQDataStream &s, PlaylistSearch &search) TQDataStream &operator<<(TQDataStream &s, const PlaylistSearch::Component &c) { - s << c.isPatternSearch() - << (c.isPatternSearch() ? c.pattern().pattern() : c.query()) - << c.isCaseSensitive() - << c.columns() - << Q_INT32(c.matchMode()); + s << c.isPatternSearch(); + s << (c.isPatternSearch() ? c.pattern().pattern() : c.query()); + s << c.isCaseSensitive(); + s << c.columns(); + s << TQ_INT32(c.matchMode()); return s; } @@ -311,7 +311,7 @@ TQDataStream &operator>>(TQDataStream &s, PlaylistSearch::Component &c) TQString pattern; bool caseSensitive; ColumnList columns; - Q_INT32 mode; + TQ_INT32 mode; s >> patternSearch >> pattern diff --git a/juk/playlistsearch.h b/juk/playlistsearch.h index 7281ba13..44e0b03c 100644 --- a/juk/playlistsearch.h +++ b/juk/playlistsearch.h @@ -17,6 +17,7 @@ #define PLAYLISTSEARCH_H #include +#include class Playlist; typedef TQValueList PlaylistList; diff --git a/juk/playlistsplitter.cpp b/juk/playlistsplitter.cpp index 3454ee3d..8731c30f 100644 --- a/juk/playlistsplitter.cpp +++ b/juk/playlistsplitter.cpp @@ -34,8 +34,8 @@ using namespace ActionCollection; // public methods //////////////////////////////////////////////////////////////////////////////// -PlaylistSplitter::PlaylistSplitter(TQWidget *parent, const char *name) : - TQSplitter(Qt::Horizontal, parent, name), +PlaylistSplitter::PlaylistSplitter(TQWidget *tqparent, const char *name) : + TQSplitter(Qt::Horizontal, tqparent, name), m_newVisible(0), m_playlistBox(0), m_searchWidget(0), @@ -94,7 +94,7 @@ void PlaylistSplitter::slotFocusCurrentPlaylist() if(!item) return; - // A little bit of a hack to make TQListView repaint things properly. Switch + // A little bit of a hack to make TQListView tqrepaint things properly. Switch // to single selection mode, set the selection and then switch back. playlist->setSelectionMode(TQListView::Single); @@ -118,10 +118,10 @@ Playlist *PlaylistSplitter::visiblePlaylist() const void PlaylistSplitter::setupActions() { KToggleAction *showSearch = - new KToggleAction(i18n("Show &Search Bar"), "filefind", 0, actions(), "showSearch"); + new KToggleAction(i18n("Show &Search Bar"), "filetqfind", 0, ActionCollection::actions(), "showSearch"); showSearch->setCheckedState(i18n("Hide &Search Bar")); - new KAction(i18n("Edit Track Search"), "edit_clear", "F6", this, TQT_SLOT(setFocus()), actions(), "editTrackSearch"); + new KAction(i18n("Edit Track Search"), "edit_clear", "F6", TQT_TQOBJECT(this), TQT_SLOT(setFocus()), ActionCollection::actions(), "editTrackSearch"); } void PlaylistSplitter::setupLayout() diff --git a/juk/playlistsplitter.h b/juk/playlistsplitter.h index cc163640..4865fa22 100644 --- a/juk/playlistsplitter.h +++ b/juk/playlistsplitter.h @@ -30,7 +30,7 @@ class PlaylistInterface; class TagEditor; /** - * This is the main layout class of JuK. It should contain a PlaylistBox and + * This is the main tqlayout class of JuK. It should contain a PlaylistBox and * a TQWidgetStack of the Playlists. * * This class serves as a "mediator" (see "Design Patterns") between the JuK @@ -38,12 +38,13 @@ class TagEditor; * non-Playlist related classes should be through the public API of this class. */ -class PlaylistSplitter : public QSplitter +class PlaylistSplitter : public TQSplitter { Q_OBJECT + TQ_OBJECT public: - PlaylistSplitter(TQWidget *parent, const char *name = 0); + PlaylistSplitter(TQWidget *tqparent, const char *name = 0); virtual ~PlaylistSplitter(); PlaylistInterface *playlist() const { return m_playlistBox; } diff --git a/juk/searchplaylist.cpp b/juk/searchplaylist.cpp index ba1be917..da4f54ce 100644 --- a/juk/searchplaylist.cpp +++ b/juk/searchplaylist.cpp @@ -30,7 +30,7 @@ SearchPlaylist::SearchPlaylist(PlaylistCollection *collection, const TQString &name, bool setupPlaylist, bool synchronizePlaying) : - DynamicPlaylist(search.playlists(), collection, name, "find", + DynamicPlaylist(search.playlists(), collection, name, "tqfind", setupPlaylist, synchronizePlaying), m_search(search) { diff --git a/juk/searchplaylist.h b/juk/searchplaylist.h index 8152670a..5e22baaf 100644 --- a/juk/searchplaylist.h +++ b/juk/searchplaylist.h @@ -21,10 +21,11 @@ class SearchPlaylist : public DynamicPlaylist { Q_OBJECT + TQ_OBJECT public: SearchPlaylist(PlaylistCollection *collection, const PlaylistSearch &search = PlaylistSearch(), - const TQString &name = TQString::null, + const TQString &name = TQString(), bool setupPlaylist = true, bool synchronizePlaying = false); diff --git a/juk/searchwidget.cpp b/juk/searchwidget.cpp index a9b8d868..a0a110fa 100644 --- a/juk/searchwidget.cpp +++ b/juk/searchwidget.cpp @@ -1,6 +1,6 @@ /*************************************************************************** begin : Sun Mar 6 2003 - copyright : (C) 2003 by Richard Lärkäng + copyright : (C) 2003 by Richard L�rk�ng email : nouseforaname@home.se copyright : (C) 2003 - 2004 by Scott Wheeler @@ -39,8 +39,8 @@ using namespace ActionCollection; // SearchLine public methods //////////////////////////////////////////////////////////////////////////////// -SearchLine::SearchLine(TQWidget *parent, bool simple, const char *name) : - TQHBox(parent, name), +SearchLine::SearchLine(TQWidget *tqparent, bool simple, const char *name) : + TQHBox(tqparent, name), m_simple(simple), m_searchFieldsBox(0) { @@ -136,11 +136,11 @@ void SearchLine::setFocus() bool SearchLine::eventFilter(TQObject *watched, TQEvent *e) { - if(watched != m_lineEdit || e->type() != TQEvent::KeyPress) + if(TQT_BASE_OBJECT(watched) != TQT_BASE_OBJECT(m_lineEdit) || e->type() != TQEvent::KeyPress) return TQHBox::eventFilter(watched, e); - TQKeyEvent *key = static_cast(e); - if(key->key() == Qt::Key_Down) + TQKeyEvent *key = TQT_TQKEYEVENT(e); + if(key->key() == TQt::Key_Down) emit signalDownPressed(); return TQHBox::eventFilter(watched, e); @@ -163,7 +163,7 @@ void SearchLine::updateColumns() TQStringList columnHeaders; - columnHeaders.append(TQString("<%1>").arg(i18n("All Visible"))); + columnHeaders.append(TQString("<%1>").tqarg(i18n("All Visible"))); Playlist *playlist = CollectionList::instance(); @@ -188,7 +188,7 @@ void SearchLine::updateColumns() // SearchWidget public methods //////////////////////////////////////////////////////////////////////////////// -SearchWidget::SearchWidget(TQWidget *parent, const char *name) : KToolBar(parent, name) +SearchWidget::SearchWidget(TQWidget *tqparent, const char *name) : KToolBar(tqparent, name) { setupLayout(); updateColumns(); diff --git a/juk/searchwidget.h b/juk/searchwidget.h index 604b289b..75f0c513 100644 --- a/juk/searchwidget.h +++ b/juk/searchwidget.h @@ -32,14 +32,15 @@ class KComboBox; class Playlist; -class SearchLine : public QHBox +class SearchLine : public TQHBox { Q_OBJECT + TQ_OBJECT public: enum Mode { Default = 0, CaseSensitive = 1, Pattern = 2 }; - SearchLine(TQWidget *parent, bool simple = false, const char *name = 0); + SearchLine(TQWidget *tqparent, bool simple = false, const char *name = 0); virtual ~SearchLine() {} PlaylistSearch::Component searchComponent() const; @@ -72,9 +73,10 @@ private: class SearchWidget : public KToolBar, public SearchIface { Q_OBJECT + TQ_OBJECT public: - SearchWidget(TQWidget *parent, const char *name = 0); + SearchWidget(TQWidget *tqparent, const char *name = 0); virtual ~SearchWidget(); PlaylistSearch search(const PlaylistList &playlists) const; diff --git a/juk/slideraction.cpp b/juk/slideraction.cpp index 22d8446b..a001fc31 100644 --- a/juk/slideraction.cpp +++ b/juk/slideraction.cpp @@ -36,24 +36,24 @@ * to the left mouse button. */ -class TrackPositionSlider : public QSlider +class TrackPositionSlider : public TQSlider { public: - TrackPositionSlider(TQWidget *parent, const char *name) : TQSlider(parent, name) + TrackPositionSlider(TQWidget *tqparent, const char *name) : TQSlider(tqparent, name) { - setFocusPolicy(NoFocus); + setFocusPolicy(TQ_NoFocus); } protected: virtual void mousePressEvent(TQMouseEvent *e) { - if(e->button() == LeftButton) { - TQMouseEvent reverse(TQEvent::MouseButtonPress, e->pos(), MidButton, e->state()); + if(e->button() == Qt::LeftButton) { + TQMouseEvent reverse(TQEvent::MouseButtonPress, e->pos(), Qt::MidButton, e->state()); TQSlider::mousePressEvent(&reverse); emit sliderPressed(); } - else if(e->button() == MidButton) { - TQMouseEvent reverse(TQEvent::MouseButtonPress, e->pos(), LeftButton, e->state()); + else if(e->button() == Qt::MidButton) { + TQMouseEvent reverse(TQEvent::MouseButtonPress, e->pos(), Qt::LeftButton, e->state()); TQSlider::mousePressEvent(&reverse); } } @@ -63,15 +63,15 @@ protected: // VolumeSlider implementation //////////////////////////////////////////////////////////////////////////////// -VolumeSlider::VolumeSlider(Orientation o, TQWidget *parent, const char *name) : - TQSlider(o, parent, name) +VolumeSlider::VolumeSlider(Qt::Orientation o, TQWidget *tqparent, const char *name) : + TQSlider(o, tqparent, name) { connect(this, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotValueChanged(int))); } void VolumeSlider::wheelEvent(TQWheelEvent *e) { - if(orientation() == Horizontal) { + if(orientation() ==Qt::Horizontal) { TQWheelEvent transposed(e->pos(), -(e->delta()), e->state(), e->orientation()); TQSlider::wheelEvent(&transposed); } @@ -86,7 +86,7 @@ void VolumeSlider::focusInEvent(TQFocusEvent *) int VolumeSlider::volume() const { - if(orientation() == Horizontal) + if(orientation() ==Qt::Horizontal) return value(); else return maxValue() - value(); @@ -94,13 +94,13 @@ int VolumeSlider::volume() const void VolumeSlider::setVolume(int value) { - if(orientation() == Horizontal) + if(orientation() ==Qt::Horizontal) setValue(value); else setValue(maxValue() - value); } -void VolumeSlider::setOrientation(Orientation o) +void VolumeSlider::setOrientation(Qt::Orientation o) { if(o == orientation()) return; @@ -113,7 +113,7 @@ void VolumeSlider::setOrientation(Orientation o) void VolumeSlider::slotValueChanged(int value) { - if(orientation() == Horizontal) + if(orientation() ==Qt::Horizontal) emit signalVolumeChanged(value); else emit signalVolumeChanged(maxValue() - value); @@ -126,8 +126,8 @@ void VolumeSlider::slotValueChanged(int value) const int SliderAction::minPosition = 0; const int SliderAction::maxPosition = 1000; -SliderAction::SliderAction(const TQString &text, TQObject *parent, const char *name) - : KAction(text, 0, parent, name), +SliderAction::SliderAction(const TQString &text, TQObject *tqparent, const char *name) + : KAction(text, 0, tqparent, name), m_toolBar(0), m_layout(0), m_trackPositionSlider(0), @@ -143,9 +143,9 @@ SliderAction::~SliderAction() } -int SliderAction::plug(TQWidget *parent, int index) +int SliderAction::plug(TQWidget *tqparent, int index) { - TQWidget *w = createWidget(parent); + TQWidget *w = createWidget(tqparent); if(!w) return -1; @@ -153,8 +153,8 @@ int SliderAction::plug(TQWidget *parent, int index) // the check for null makes sure that there is only one toolbar that this is // "plugged" in to - if(parent->inherits("KToolBar") && !m_toolBar) { - m_toolBar = static_cast(parent); + if(tqparent->inherits("KToolBar") && !m_toolBar) { + m_toolBar = static_cast(tqparent); int id = KAction::getToolButtonID(); @@ -163,7 +163,7 @@ int SliderAction::plug(TQWidget *parent, int index) addContainer(m_toolBar, id); connect(m_toolBar, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotToolbarDestroyed())); - connect(m_toolBar, TQT_SIGNAL(orientationChanged(Orientation)), + connect(m_toolBar, TQT_SIGNAL(orientationChanged(Qt::Orientation)), this, TQT_SLOT(slotUpdateOrientation())); connect(m_toolBar, TQT_SIGNAL(placeChanged(TQDockWindow::Place)), this, TQT_SLOT(slotUpdateOrientation())); @@ -178,10 +178,10 @@ int SliderAction::plug(TQWidget *parent, int index) } -void SliderAction::unplug(TQWidget *parent) +void SliderAction::unplug(TQWidget *tqparent) { - if (parent->inherits("KToolBar")) { - m_toolBar = static_cast(parent); + if (tqparent->inherits("KToolBar")) { + m_toolBar = static_cast(tqparent); int index = findContainer(m_toolBar); if (index != -1) { @@ -205,13 +205,13 @@ void SliderAction::slotUpdateOrientation() return; if(m_toolBar->barPos() == KToolBar::Right || m_toolBar->barPos() == KToolBar::Left) { - m_trackPositionSlider->setOrientation(Vertical); - m_volumeSlider->setOrientation(Vertical); + m_trackPositionSlider->setOrientation(Qt::Vertical); + m_volumeSlider->setOrientation(Qt::Vertical); m_layout->setDirection(TQBoxLayout::TopToBottom); } else { - m_trackPositionSlider->setOrientation(Horizontal); - m_volumeSlider->setOrientation(Horizontal); + m_trackPositionSlider->setOrientation(Qt::Horizontal); + m_volumeSlider->setOrientation(Qt::Horizontal); m_layout->setDirection(TQBoxLayout::LeftToRight); } slotUpdateSize(); @@ -221,24 +221,24 @@ void SliderAction::slotUpdateOrientation() // private members //////////////////////////////////////////////////////////////////////////////// -TQWidget *SliderAction::createWidget(TQWidget *parent) // virtual -- used by base class +TQWidget *SliderAction::createWidget(TQWidget *tqparent) // virtual -- used by base class { - if(parent) { - TQWidget *base = new TQWidget(parent); - base->setBackgroundMode(parent->backgroundMode()); + if(tqparent) { + TQWidget *base = new TQWidget(tqparent); + base->setBackgroundMode(tqparent->backgroundMode()); base->setName("kde toolbar widget"); - KToolBar *toolBar = dynamic_cast(parent); + KToolBar *toolBar = dynamic_cast(tqparent); if(toolBar) toolBar->setStretchableWidget(base); - Orientation orientation; + Qt::Orientation orientation; if(toolBar && toolBar->barPos() == KToolBar::Right || toolBar->barPos() == KToolBar::Left) - orientation = Vertical; + orientation =Qt::Vertical; else - orientation = Horizontal; + orientation =Qt::Horizontal; m_layout = new TQBoxLayout(base, TQBoxLayout::TopToBottom, 5, 5); @@ -279,7 +279,7 @@ TQWidget *SliderAction::createWidget(TQWidget *parent) // virtual -- used by bas m_layout->setStretchFactor(m_trackPositionSlider, 4); m_layout->setStretchFactor(m_volumeSlider, 1); - connect(parent, TQT_SIGNAL(modechange()), this, TQT_SLOT(slotUpdateSize())); + connect(tqparent, TQT_SIGNAL(modechange()), this, TQT_SLOT(slotUpdateSize())); return base; } diff --git a/juk/slideraction.h b/juk/slideraction.h index 2b88c8e3..5577a481 100644 --- a/juk/slideraction.h +++ b/juk/slideraction.h @@ -22,17 +22,18 @@ class TQBoxLayout; class TQDockWindow; -class VolumeSlider : public QSlider +class VolumeSlider : public TQSlider { Q_OBJECT + TQ_OBJECT public: - VolumeSlider(Orientation o, TQWidget *parent, const char *name); + VolumeSlider(Qt::Orientation o, TQWidget *tqparent, const char *name); int volume() const; void setVolume(int value); - void setOrientation(Orientation o); + void setOrientation(Qt::Orientation o); signals: void signalVolumeChanged(int value); @@ -48,9 +49,10 @@ private slots: class SliderAction : public KAction { Q_OBJECT + TQ_OBJECT public: - SliderAction(const TQString &text, TQObject *parent, const char *name); + SliderAction(const TQString &text, TQObject *tqparent, const char *name); virtual ~SliderAction(); VolumeSlider *volumeSlider() const { return m_volumeSlider; } @@ -59,7 +61,7 @@ public: bool dragging() const { return m_dragging; } bool volumeDragging() const { return m_volumeDragging; } - virtual int plug(TQWidget *parent, int index = -1); + virtual int plug(TQWidget *tqparent, int index = -1); virtual void unplug(TQWidget *widget); static const int minPosition; @@ -73,7 +75,7 @@ signals: void signalVolumeChanged(int volume); private: - TQWidget *createWidget(TQWidget *parent); + TQWidget *createWidget(TQWidget *tqparent); private slots: void slotUpdateSize(); diff --git a/juk/sortedstringlist.cpp b/juk/sortedstringlist.cpp index 0886a88d..904c5f01 100644 --- a/juk/sortedstringlist.cpp +++ b/juk/sortedstringlist.cpp @@ -20,11 +20,11 @@ class SortedStringList::Node { public: - Node(const TQString &value) : key(value), parent(0), left(0), right(0) {} + Node(const TQString &value) : key(value), tqparent(0), left(0), right(0) {} ~Node() {} TQString key; - Node *parent; + Node *tqparent; Node *left; Node *right; }; @@ -44,9 +44,9 @@ bool SortedStringList::insert(const TQString &value) return BSTInsert(value); } -bool SortedStringList::contains(const TQString &value) const +bool SortedStringList::tqcontains(const TQString &value) const { - return find(value); + return tqfind(value); } SortedStringList::Node *SortedStringList::treeMinimum(Node *n) const @@ -61,11 +61,11 @@ SortedStringList::Node *SortedStringList::treeSuccessor(Node *n) const if(n->right) return treeMinimum(n->right); - Node *p = n->parent; + Node *p = n->tqparent; while(p && n == p->right) { n = p; - p = p->parent; + p = p->tqparent; } return p; @@ -73,7 +73,7 @@ SortedStringList::Node *SortedStringList::treeSuccessor(Node *n) const bool SortedStringList::remove(const TQString &value) { - Node *n = find(value); + Node *n = tqfind(value); if(!n) return false; @@ -92,15 +92,15 @@ bool SortedStringList::remove(const TQString &value) x = y->right; if(x) - x->parent = y->parent; + x->tqparent = y->tqparent; - if(!y->parent) + if(!y->tqparent) m_root = x; else { - if(y == y->parent->left) - y->parent->left = x; + if(y == y->tqparent->left) + y->tqparent->left = x; else - y->parent->right = x; + y->tqparent->right = x; } if(y != x) @@ -122,7 +122,7 @@ TQStringList SortedStringList::values() const // private methods //////////////////////////////////////////////////////////////////////////////// -SortedStringList::Node *SortedStringList::find(const TQString &value) const +SortedStringList::Node *SortedStringList::tqfind(const TQString &value) const { Node *n = m_root; while(n && value != n->key) { @@ -155,7 +155,7 @@ bool SortedStringList::BSTInsert(const TQString &value) Node *n = new Node(value); - n->parent = previousNode; + n->tqparent = previousNode; if(!m_root) m_root = n; diff --git a/juk/sortedstringlist.h b/juk/sortedstringlist.h index 01386262..1ef94a2b 100644 --- a/juk/sortedstringlist.h +++ b/juk/sortedstringlist.h @@ -29,7 +29,7 @@ public: * or false otherwise. */ bool insert(const TQString &value); - bool contains(const TQString &value) const; + bool tqcontains(const TQString &value) const; bool remove(const TQString &value); /** @@ -42,7 +42,7 @@ public: private: class Node; - Node *find(const TQString &value) const; + Node *tqfind(const TQString &value) const; /** * The insertion implementation. Returns true if the item was already * present in the list. diff --git a/juk/splashscreen.cpp b/juk/splashscreen.cpp index b8b69c87..21f037b0 100644 --- a/juk/splashscreen.cpp +++ b/juk/splashscreen.cpp @@ -70,14 +70,14 @@ void SplashScreen::update() // protected members //////////////////////////////////////////////////////////////////////////////// -SplashScreen::SplashScreen() : TQLabel(0 , "splashScreen", Qt::WStyle_Splash) +SplashScreen::SplashScreen() : TQLabel(0 , "splashScreen", TQt::WStyle_Splash) { TQPixmap background = UserIcon("splash"); resize(background.size()); setPaletteBackgroundPixmap(background); setMargin(7); - setAlignment(AlignLeft | AlignBottom); + tqsetAlignment(AlignLeft | AlignBottom); setPaletteForegroundColor(TQColor(107, 158, 194)); diff --git a/juk/splashscreen.h b/juk/splashscreen.h index eff0eec9..27ef3a73 100644 --- a/juk/splashscreen.h +++ b/juk/splashscreen.h @@ -29,7 +29,7 @@ * methods. */ -class SplashScreen : public QLabel +class SplashScreen : public TQLabel { public: static SplashScreen *instance(); diff --git a/juk/statuslabel.cpp b/juk/statuslabel.cpp index 81f066ea..4867c7ec 100644 --- a/juk/statuslabel.cpp +++ b/juk/statuslabel.cpp @@ -35,14 +35,14 @@ using namespace ActionCollection; // public methods //////////////////////////////////////////////////////////////////////////////// -StatusLabel::StatusLabel(PlaylistInterface *playlist, TQWidget *parent, const char *name) : - TQHBox(parent, name), +StatusLabel::StatusLabel(PlaylistInterface *playlist, TQWidget *tqparent, const char *name) : + TQHBox(tqparent, name), PlaylistObserver(playlist), m_showTimeRemaining(false) { TQFrame *trackAndPlaylist = new TQFrame(this); trackAndPlaylist->setFrameStyle(Box | Sunken); - trackAndPlaylist->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); + trackAndPlaylist->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); // Make sure that we have enough of a margin to suffice for the borders, // hence the "lineWidth() * 2" @@ -53,23 +53,23 @@ StatusLabel::StatusLabel(PlaylistInterface *playlist, TQWidget *parent, const ch m_playlistLabel = new KSqueezedTextLabel(trackAndPlaylist, "playlistLabel"); trackAndPlaylistLayout->addWidget(m_playlistLabel); - m_playlistLabel->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); + m_playlistLabel->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); m_playlistLabel->setTextFormat(PlainText); - m_playlistLabel->setAlignment(AlignLeft | AlignVCenter); + m_playlistLabel->tqsetAlignment(AlignLeft | AlignVCenter); m_trackLabel = new KSqueezedTextLabel(trackAndPlaylist, "trackLabel"); trackAndPlaylistLayout->addWidget(m_trackLabel); - m_trackLabel->setAlignment(AlignRight | AlignVCenter); - m_trackLabel->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); + m_trackLabel->tqsetAlignment(AlignRight | AlignVCenter); + m_trackLabel->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); m_trackLabel->setTextFormat(PlainText); trackAndPlaylistLayout->addSpacing(5); m_itemTimeLabel = new TQLabel(this); TQFontMetrics fontMetrics(font()); - m_itemTimeLabel->setAlignment(AlignCenter); + m_itemTimeLabel->tqsetAlignment(AlignCenter); m_itemTimeLabel->setMinimumWidth(fontMetrics.boundingRect("000:00 / 000:00").width()); - m_itemTimeLabel->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Expanding); + m_itemTimeLabel->tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Expanding); m_itemTimeLabel->setFrameStyle(Box | Sunken); m_itemTimeLabel->installEventFilter(this); @@ -78,7 +78,7 @@ StatusLabel::StatusLabel(PlaylistInterface *playlist, TQWidget *parent, const ch TQHBox *jumpBox = new TQHBox(this); jumpBox->setFrameStyle(Box | Sunken); - jumpBox->setSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Minimum); + jumpBox->tqsetSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Minimum); TQPushButton *jumpButton = new TQPushButton(jumpBox); jumpButton->setPixmap(SmallIcon("up")); @@ -103,7 +103,7 @@ void StatusLabel::updateCurrent() FileHandle file = playlist()->currentFile(); TQString mid = file.tag()->artist().isEmpty() || file.tag()->title().isEmpty() - ? TQString::null : TQString(" - "); + ? TQString() : TQString(" - "); TQString text = file.tag()->artist() + mid + file.tag()->title(); @@ -175,11 +175,11 @@ bool StatusLabel::eventFilter(TQObject *o, TQEvent *e) if(!o || !e) return false; - TQMouseEvent *mouseEvent = static_cast(e); + TQMouseEvent *mouseEvent = TQT_TQMOUSEEVENT(e); if(e->type() == TQEvent::MouseButtonRelease && - mouseEvent->button() == LeftButton) + mouseEvent->button() == Qt::LeftButton) { - if(o == m_itemTimeLabel) { + if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_itemTimeLabel)) { m_showTimeRemaining = !m_showTimeRemaining; updateTime(); } diff --git a/juk/statuslabel.h b/juk/statuslabel.h index f0a64393..a2411622 100644 --- a/juk/statuslabel.h +++ b/juk/statuslabel.h @@ -28,9 +28,10 @@ class FileHandle; class StatusLabel : public TQHBox, public PlaylistObserver { Q_OBJECT + TQ_OBJECT public: - StatusLabel(PlaylistInterface *playlist, TQWidget *parent = 0, const char *name = 0); + StatusLabel(PlaylistInterface *playlist, TQWidget *tqparent = 0, const char *name = 0); virtual ~StatusLabel(); virtual void updateCurrent(); diff --git a/juk/stringhash.h b/juk/stringhash.h index 0d3c43bb..11ac3d7b 100644 --- a/juk/stringhash.h +++ b/juk/stringhash.h @@ -42,7 +42,7 @@ public: /** * Returns true if the set contains the item \a value. */ - bool contains(T value) const; + bool tqcontains(T value) const; /** * Removes an item. Returns true if the item was present and false if not. @@ -118,7 +118,7 @@ protected: inline char hashStringAccess(const TQString &in, int index) { - return in.unicode()[index].cell(); + return in.tqunicode()[index].cell(); } inline char hashStringAccess(const TQCString &in, int index) @@ -126,7 +126,7 @@ inline char hashStringAccess(const TQCString &in, int index) return in[index]; } -// Based on QGDict's hash functions, Copyright (C) 1992-2000 Trolltech AS +// Based on TQGDict's hash functions, Copyright (C) 1992-2000 Trolltech AS template inline int hashString(const StringType &s) @@ -227,7 +227,7 @@ bool Hash::insert(T value) } template -bool Hash::contains(T value) const +bool Hash::tqcontains(T value) const { int h = hash(value); Node *i = m_table[h]; diff --git a/juk/stringshare.cpp b/juk/stringshare.cpp index 195fd64f..8cb07068 100644 --- a/juk/stringshare.cpp +++ b/juk/stringshare.cpp @@ -21,7 +21,7 @@ StringShare::Data* StringShare::s_data = 0; /** * We store the strings in two simple direct-mapped (i.e. no collision handling, - * just replace) hashes, which contain strings or null objects. This costs only + * just tqreplace) hashes, which contain strings or null objects. This costs only * 4 bytes per slot on 32-bit archs, so with the default constant size we only * really use 40K or so. * diff --git a/juk/systemtray.cpp b/juk/systemtray.cpp index 40cdd082..36c6874e 100644 --- a/juk/systemtray.cpp +++ b/juk/systemtray.cpp @@ -47,14 +47,14 @@ using namespace ActionCollection; static bool copyImage(TQImage &dest, TQImage &src, int x, int y); -class FlickerFreeLabel : public QLabel +class FlickerFreeLabel : public TQLabel { public: - FlickerFreeLabel(const TQString &text, TQWidget *parent, const char *name = 0) : - TQLabel(text, parent, name) + FlickerFreeLabel(const TQString &text, TQWidget *tqparent, const char *name = 0) : + TQLabel(text, tqparent, name) { m_textColor = paletteForegroundColor(); - m_bgColor = parentWidget()->paletteBackgroundColor(); + m_bgColor = tqparentWidget()->paletteBackgroundColor(); setBackgroundMode(NoBackground); } @@ -73,7 +73,7 @@ protected: { // We want to intercept the drawContents call and draw on a pixmap // instead of the window to keep flicker to an absolute minimum. - // Since Qt doesn't refresh the background, we need to do so + // Since TQt doesn't refresh the background, we need to do so // ourselves. TQPixmap pix(size()); @@ -90,8 +90,8 @@ protected: TQColor m_bgColor; }; -PassiveInfo::PassiveInfo(TQWidget *parent, const char *name) : - KPassivePopup(parent, name), m_timer(new TQTimer), m_justDie(false) +PassiveInfo::PassiveInfo(TQWidget *tqparent, const char *name) : + KPassivePopup(tqparent, name), m_timer(new TQTimer), m_justDie(false) { // I'm so sick and tired of KPassivePopup screwing this up // that I'll just handle the timeout myself, thank you very much. @@ -137,7 +137,7 @@ void PassiveInfo::leaveEvent(TQEvent *) // public methods //////////////////////////////////////////////////////////////////////////////// -SystemTray::SystemTray(TQWidget *parent, const char *name) : KSystemTray(parent, name), +SystemTray::SystemTray(TQWidget *tqparent, const char *name) : KSystemTray(tqparent, name), m_popup(0), m_fadeTimer(0), m_fade(true) @@ -162,8 +162,8 @@ SystemTray::SystemTray(TQWidget *parent, const char *name) : KSystemTray(parent, // Just create this here so that it show up in the DCOP interface and the key // bindings dialog. - new KAction(i18n("Redisplay Popup"), KShortcut(), this, - TQT_SLOT(slotPlay()), actions(), "showPopup"); + new KAction(i18n("Redisplay Popup"), KShortcut(), TQT_TQOBJECT(this), + TQT_SLOT(slotPlay()), ActionCollection::actions(), "showPopup"); KPopupMenu *cm = contextMenu(); @@ -181,7 +181,7 @@ SystemTray::SystemTray(TQWidget *parent, const char *name) : KSystemTray(parent, // Pity the actionCollection doesn't keep track of what sub-menus it has. - KActionMenu *menu = new KActionMenu(i18n("&Random Play"), this); + KActionMenu *menu = new KActionMenu(i18n("&Random Play"), TQT_TQOBJECT(this)); menu->insert(action("disableRandomPlay")); menu->insert(action("randomPlay")); menu->insert(action("albumRandomPlay")); @@ -299,7 +299,7 @@ void SystemTray::slotMouseInPopup() // private methods //////////////////////////////////////////////////////////////////////////////// -TQVBox *SystemTray::createPopupLayout(TQWidget *parent, const FileHandle &file) +TQVBox *SystemTray::createPopupLayout(TQWidget *tqparent, const FileHandle &file) { TQVBox *infoBox = 0; @@ -307,17 +307,17 @@ TQVBox *SystemTray::createPopupLayout(TQWidget *parent, const FileHandle &file) // They go to the left because JuK is on that side - createButtonBox(parent); - addSeparatorLine(parent); + createButtonBox(tqparent); + addSeparatorLine(tqparent); - infoBox = new TQVBox(parent); + infoBox = new TQVBox(tqparent); // Another line, and the cover, if there's a cover, and if // it's selected to be shown if(file.coverInfo()->hasCover()) { - addSeparatorLine(parent); - addCoverButton(parent, file.coverInfo()->pixmap(CoverInfo::Thumbnail)); + addSeparatorLine(tqparent); + addCoverButton(tqparent, file.coverInfo()->pixmap(CoverInfo::Thumbnail)); } } else { @@ -325,14 +325,14 @@ TQVBox *SystemTray::createPopupLayout(TQWidget *parent, const FileHandle &file) // Like above, but reversed. if(file.coverInfo()->hasCover()) { - addCoverButton(parent, file.coverInfo()->pixmap(CoverInfo::Thumbnail)); - addSeparatorLine(parent); + addCoverButton(tqparent, file.coverInfo()->pixmap(CoverInfo::Thumbnail)); + addSeparatorLine(tqparent); } - infoBox = new TQVBox(parent); + infoBox = new TQVBox(tqparent); - addSeparatorLine(parent); - createButtonBox(parent); + addSeparatorLine(tqparent); + createButtonBox(tqparent); } infoBox->setSpacing(3); @@ -370,7 +370,7 @@ void SystemTray::createPopup() for(unsigned i = 0; i < m_labels.capacity(); ++i) { m_labels[i] = new FlickerFreeLabel(" ", infoBox); - m_labels[i]->setAlignment(AlignRight | AlignVCenter); + m_labels[i]->tqsetAlignment(AlignRight | AlignVCenter); } // We don't want an autodelete popup. There are times when it will need @@ -385,7 +385,7 @@ void SystemTray::createPopup() int labelCount = 0; TQString title = TQStyleSheet::escape(playingInfo->title()); - m_labels[labelCount++]->setText(TQString("

%1

").arg(title)); + m_labels[labelCount++]->setText(TQString("

%1

").tqarg(title)); if(!playingInfo->artist().isEmpty()) m_labels[labelCount++]->setText(playingInfo->artist()); @@ -393,8 +393,8 @@ void SystemTray::createPopup() if(!playingInfo->album().isEmpty()) { TQString album = TQStyleSheet::escape(playingInfo->album()); TQString s = playingInfo->year() > 0 - ? TQString("%1 (%2)").arg(album).arg(playingInfo->year()) - : TQString("%1").arg(album); + ? TQString("%1 (%2)").tqarg(album).tqarg(playingInfo->year()) + : TQString("%1").tqarg(album); m_labels[labelCount++]->setText(s); } @@ -440,9 +440,9 @@ TQPixmap SystemTray::createPixmap(const TQString &pixName) return bgPix; } -void SystemTray::createButtonBox(TQWidget *parent) +void SystemTray::createButtonBox(TQWidget *tqparent) { - TQVBox *buttonBox = new TQVBox(parent); + TQVBox *buttonBox = new TQVBox(tqparent); buttonBox->setSpacing(3); @@ -472,9 +472,9 @@ void SystemTray::slotForward() m_fade = false; } -void SystemTray::addSeparatorLine(TQWidget *parent) +void SystemTray::addSeparatorLine(TQWidget *tqparent) { - TQFrame *line = new TQFrame(parent); + TQFrame *line = new TQFrame(tqparent); line->setFrameShape(TQFrame::VLine); // Cover art takes up 80 pixels, make sure we take up at least 80 pixels @@ -483,9 +483,9 @@ void SystemTray::addSeparatorLine(TQWidget *parent) line->setMinimumHeight(80); } -void SystemTray::addCoverButton(TQWidget *parent, const TQPixmap &cover) +void SystemTray::addCoverButton(TQWidget *tqparent, const TQPixmap &cover) { - TQPushButton *coverButton = new TQPushButton(parent); + TQPushButton *coverButton = new TQPushButton(tqparent); coverButton->setPixmap(cover); coverButton->setFixedSize(cover.size()); @@ -531,8 +531,8 @@ void SystemTray::setToolTip(const TQString &tip, const TQPixmap &cover) TQString html = i18n("%1 is Cover Art, %2 is the playing track, %3 is the appname", "
" "
%1%2
%3
"); - html = html.arg("%1").arg(tip), i18n("JuK")); + html = html.tqarg("%1").tqarg(tip), i18n("JuK")); TQToolTip::add(this, html); } @@ -540,7 +540,7 @@ void SystemTray::setToolTip(const TQString &tip, const TQPixmap &cover) void SystemTray::wheelEvent(TQWheelEvent *e) { - if(e->orientation() == Horizontal) + if(e->orientation() ==Qt::Horizontal) return; // I already know the type here, but this file doesn't (and I don't want it @@ -571,13 +571,13 @@ void SystemTray::wheelEvent(TQWheelEvent *e) void SystemTray::mousePressEvent(TQMouseEvent *e) { switch(e->button()) { - case LeftButton: - case RightButton: + case Qt::LeftButton: + case Qt::RightButton: default: KSystemTray::mousePressEvent(e); break; - case MidButton: - if(!rect().contains(e->pos())) + case Qt::MidButton: + if(!TQT_TQRECT_OBJECT(rect()).tqcontains(e->pos())) return; if(action("pause")->isEnabled()) action("pause")->activate(); @@ -589,7 +589,7 @@ void SystemTray::mousePressEvent(TQMouseEvent *e) /* * This function copies the entirety of src into dest, starting in - * dest at x and y. This function exists because I was unable to find + * dest at x and y. This function exists because I was unable to tqfind * a function like it in either TQImage or kdefx */ diff --git a/juk/systemtray.h b/juk/systemtray.h index 05b3c6dc..0dcb9676 100644 --- a/juk/systemtray.h +++ b/juk/systemtray.h @@ -38,8 +38,9 @@ class FileHandle; class PassiveInfo : public KPassivePopup { Q_OBJECT + TQ_OBJECT public: - PassiveInfo(TQWidget *parent = 0, const char *name = 0); + PassiveInfo(TQWidget *tqparent = 0, const char *name = 0); public slots: void setTimeout(int delay); @@ -64,9 +65,10 @@ private: class SystemTray : public KSystemTray { Q_OBJECT + TQ_OBJECT public: - SystemTray(TQWidget *parent = 0, const char *name = 0); + SystemTray(TQWidget *tqparent = 0, const char *name = 0); virtual ~SystemTray(); signals: @@ -78,7 +80,7 @@ private: virtual void wheelEvent(TQWheelEvent *e); void createPopup(); - void setToolTip(const TQString &tip = TQString::null, const TQPixmap &cover = TQPixmap()); + void setToolTip(const TQString &tip = TQString(), const TQPixmap &cover = TQPixmap()); void mousePressEvent(TQMouseEvent *e); TQPixmap createPixmap(const TQString &pixName); @@ -86,15 +88,15 @@ private: // (because the JuK icon is on the left side of the screen. bool buttonsToLeft() const; - void createButtonBox(TQWidget *parent); + void createButtonBox(TQWidget *tqparent); - // Creates the widget layout for the popup, returning the TQVBox that + // Creates the widget tqlayout for the popup, returning the TQVBox that // holds the text labels. Uses buttonsToLeft() to figure out which // order to create them in. @p file is used to grab the cover. - TQVBox *createPopupLayout(TQWidget *parent, const FileHandle &file); + TQVBox *createPopupLayout(TQWidget *tqparent, const FileHandle &file); - void addSeparatorLine(TQWidget *parent); - void addCoverButton(TQWidget *parent, const TQPixmap &cover); + void addSeparatorLine(TQWidget *tqparent); + void addCoverButton(TQWidget *tqparent, const TQPixmap &cover); // Interpolates from start color to end color. If @p step == 0, then // m_startColor is returned, while @p step == @steps returns diff --git a/juk/tag.cpp b/juk/tag.cpp index 802567dd..a9d37297 100644 --- a/juk/tag.cpp +++ b/juk/tag.cpp @@ -146,10 +146,10 @@ CacheDataStream &Tag::read(CacheDataStream &s) { switch(s.cacheVersion()) { case 1: { - Q_INT32 track; - Q_INT32 year; - Q_INT32 bitrate; - Q_INT32 seconds; + TQ_INT32 track; + TQ_INT32 year; + TQ_INT32 bitrate; + TQ_INT32 seconds; s >> m_title >> m_artist @@ -227,11 +227,11 @@ Tag::Tag(const TQString &fileName, bool) : void Tag::setup(TagLib::File *file) { - m_title = TStringToQString(file->tag()->title()).stripWhiteSpace(); - m_artist = TStringToQString(file->tag()->artist()).stripWhiteSpace(); - m_album = TStringToQString(file->tag()->album()).stripWhiteSpace(); - m_genre = TStringToQString(file->tag()->genre()).stripWhiteSpace(); - m_comment = TStringToQString(file->tag()->comment()).stripWhiteSpace(); + m_title = TQString(TStringToQString(file->tag()->title())).stripWhiteSpace(); + m_artist = TQString(TStringToQString(file->tag()->artist())).stripWhiteSpace(); + m_album = TQString(TStringToQString(file->tag()->album())).stripWhiteSpace(); + m_genre = TQString(TStringToQString(file->tag()->genre())).stripWhiteSpace(); + m_comment = TQString(TStringToQString(file->tag()->comment())).stripWhiteSpace(); m_track = file->tag()->track(); m_year = file->tag()->year(); @@ -245,8 +245,8 @@ void Tag::setup(TagLib::File *file) m_lengthString = TQString::number(minutes) + (seconds >= 10 ? ":" : ":0") + TQString::number(seconds); if(m_title.isEmpty()) { - int i = m_fileName.findRev('/'); - int j = m_fileName.findRev('.'); + int i = m_fileName.tqfindRev('/'); + int j = m_fileName.tqfindRev('.'); m_title = i > 0 ? m_fileName.mid(i + 1, j - i - 1) : m_fileName; } @@ -263,12 +263,12 @@ TQDataStream &operator<<(TQDataStream &s, const Tag &t) << t.artist() << t.album() << t.genre() - << Q_INT32(t.track()) - << Q_INT32(t.year()) + << TQ_INT32(t.track()) + << TQ_INT32(t.year()) << t.comment() - << Q_INT32(t.bitrate()) + << TQ_INT32(t.bitrate()) << t.lengthString() - << Q_INT32(t.seconds()); + << TQ_INT32(t.seconds()); return s; } diff --git a/juk/tag.h b/juk/tag.h index c37e9b3c..dacd5e9c 100644 --- a/juk/tag.h +++ b/juk/tag.h @@ -24,7 +24,7 @@ class CacheDataStream; /*! * This should really be called "metadata" and may at some point be titled as - * such. Right now it's mostly a Qt wrapper around TagLib. + * such. Right now it's mostly a TQt wrapper around TagLib. */ class Tag diff --git a/juk/tageditor.cpp b/juk/tageditor.cpp index eb2dfa88..4e5299ae 100644 --- a/juk/tageditor.cpp +++ b/juk/tageditor.cpp @@ -46,11 +46,11 @@ using namespace ActionCollection; -class FileNameValidator : public QValidator +class FileNameValidator : public TQValidator { public: - FileNameValidator(TQObject *parent, const char *name = 0) : - TQValidator(parent, name) {} + FileNameValidator(TQObject *tqparent, const char *name = 0) : + TQValidator(tqparent, name) {} virtual void fixup(TQString &s) const { @@ -59,13 +59,13 @@ public: virtual State validate(TQString &s, int &) const { - if(s.find('/') != -1) + if(s.tqfind('/') != -1) return Invalid; return Acceptable; } }; -class FileBoxToolTip : public QToolTip +class FileBoxToolTip : public TQToolTip { public: FileBoxToolTip(TagEditor *editor, TQWidget *widget) : @@ -73,28 +73,28 @@ public: protected: virtual void maybeTip(const TQPoint &) { - tip(parentWidget()->rect(), m_editor->items().first()->file().absFilePath()); + tip(tqparentWidget()->rect(), m_editor->items().first()->file().absFilePath()); } private: TagEditor *m_editor; }; -class FixedHLayout : public QHBoxLayout +class FixedHLayout : public TQHBoxLayout { public: - FixedHLayout(TQWidget *parent, int margin = 0, int spacing = -1, const char *name = 0) : - TQHBoxLayout(parent, margin, spacing, name), + FixedHLayout(TQWidget *tqparent, int margin = 0, int spacing = -1, const char *name = 0) : + TQHBoxLayout(tqparent, margin, spacing, name), m_width(-1) {} - FixedHLayout(TQLayout *parentLayout, int spacing = -1, const char *name = 0) : - TQHBoxLayout(parentLayout, spacing, name), + FixedHLayout(TQLayout *tqparentLayout, int spacing = -1, const char *name = 0) : + TQHBoxLayout(tqparentLayout, spacing, name), m_width(-1) {} void setWidth(int w = -1) { - m_width = w == -1 ? TQHBoxLayout::minimumSize().width() : w; + m_width = w == -1 ? TQHBoxLayout::tqminimumSize().width() : w; } - virtual TQSize minimumSize() const + virtual TQSize tqminimumSize() const { - TQSize s = TQHBoxLayout::minimumSize(); + TQSize s = TQHBoxLayout::tqminimumSize(); s.setWidth(m_width); return s; } @@ -105,9 +105,9 @@ private: class CollectionObserver : public PlaylistObserver { public: - CollectionObserver(TagEditor *parent) : + CollectionObserver(TagEditor *tqparent) : PlaylistObserver(CollectionList::instance()), - m_parent(parent) + m_parent(tqparent) { } @@ -127,8 +127,8 @@ private: // public members //////////////////////////////////////////////////////////////////////////////// -TagEditor::TagEditor(TQWidget *parent, const char *name) : - TQWidget(parent, name), +TagEditor::TagEditor(TQWidget *tqparent, const char *name) : + TQWidget(tqparent, name), m_currentPlaylist(0), m_observer(0), m_performingSave(false) @@ -234,8 +234,8 @@ void TagEditor::slotRefresh() m_bitrateBox->setText(TQString::number(tag->bitrate())); m_lengthBox->setText(tag->lengthString()); - if(m_genreList.findIndex(tag->genre()) >= 0) - m_genreBox->setCurrentItem(m_genreList.findIndex(tag->genre()) + 1); + if(m_genreList.tqfindIndex(tag->genre()) >= 0) + m_genreBox->setCurrentItem(m_genreList.tqfindIndex(tag->genre()) + 1); else { m_genreBox->setCurrentItem(0); m_genreBox->setEditText(tag->genre()); @@ -287,43 +287,43 @@ void TagEditor::slotRefresh() if(tag) { if(m_artistNameBox->currentText() != tag->artist() && - m_enableBoxes.contains(m_artistNameBox)) + m_enableBoxes.tqcontains(m_artistNameBox)) { m_artistNameBox->lineEdit()->clear(); m_enableBoxes[m_artistNameBox]->setChecked(false); } if(m_trackNameBox->text() != tag->title() && - m_enableBoxes.contains(m_trackNameBox)) + m_enableBoxes.tqcontains(m_trackNameBox)) { m_trackNameBox->clear(); m_enableBoxes[m_trackNameBox]->setChecked(false); } if(m_albumNameBox->currentText() != tag->album() && - m_enableBoxes.contains(m_albumNameBox)) + m_enableBoxes.tqcontains(m_albumNameBox)) { m_albumNameBox->lineEdit()->clear(); m_enableBoxes[m_albumNameBox]->setChecked(false); } if(m_genreBox->currentText() != tag->genre() && - m_enableBoxes.contains(m_genreBox)) + m_enableBoxes.tqcontains(m_genreBox)) { m_genreBox->lineEdit()->clear(); m_enableBoxes[m_genreBox]->setChecked(false); } if(m_trackSpin->value() != tag->track() && - m_enableBoxes.contains(m_trackSpin)) + m_enableBoxes.tqcontains(m_trackSpin)) { m_trackSpin->setValue(0); m_enableBoxes[m_trackSpin]->setChecked(false); } if(m_yearSpin->value() != tag->year() && - m_enableBoxes.contains(m_yearSpin)) + m_enableBoxes.tqcontains(m_yearSpin)) { m_yearSpin->setValue(0); m_enableBoxes[m_yearSpin]->setChecked(false); } if(m_commentBox->text() != tag->comment() && - m_enableBoxes.contains(m_commentBox)) + m_enableBoxes.tqcontains(m_commentBox)) { m_commentBox->clear(); m_enableBoxes[m_commentBox]->setChecked(false); @@ -409,7 +409,7 @@ void TagEditor::updateCollection() m_genreList.sort(); m_genreBox->listBox()->clear(); - m_genreBox->listBox()->insertItem(TQString::null); + m_genreBox->listBox()->insertItem(TQString()); m_genreBox->listBox()->insertStringList(m_genreList); m_genreBox->completionObject()->setItems(m_genreList); } @@ -440,7 +440,7 @@ void TagEditor::readConfig() m_genreList.sort(); m_genreBox->clear(); - m_genreBox->insertItem(TQString::null); + m_genreBox->insertItem(TQString()); m_genreBox->insertStringList(m_genreList); m_genreBox->completionObject()->setItems(m_genreList); } @@ -469,11 +469,11 @@ void TagEditor::saveConfig() void TagEditor::setupActions() { - KToggleAction *show = new KToggleAction(i18n("Show &Tag Editor"), "edit", 0, actions(), "showEditor"); + KToggleAction *show = new KToggleAction(i18n("Show &Tag Editor"), "edit", 0, ActionCollection::actions(), "showEditor"); show->setCheckedState(i18n("Hide &Tag Editor")); connect(show, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setShown(bool))); - new KAction(i18n("&Save"), "filesave", "CTRL+t", this, TQT_SLOT(slotSave()), actions(), "saveItem"); + new KAction(i18n("&Save"), "filesave", "CTRL+t", TQT_TQOBJECT(this), TQT_SLOT(slotSave()), ActionCollection::actions(), "saveItem"); } void TagEditor::setupLayout() @@ -481,16 +481,16 @@ void TagEditor::setupLayout() static const int horizontalSpacing = 12; static const int verticalSpacing = 2; - TQHBoxLayout *layout = new TQHBoxLayout(this, 6, horizontalSpacing); + TQHBoxLayout *tqlayout = new TQHBoxLayout(this, 6, horizontalSpacing); ////////////////////////////////////////////////////////////////////////////// - // define two columns of the bottem layout + // define two columns of the bottem tqlayout ////////////////////////////////////////////////////////////////////////////// - TQVBoxLayout *leftColumnLayout = new TQVBoxLayout(layout, verticalSpacing); - TQVBoxLayout *rightColumnLayout = new TQVBoxLayout(layout, verticalSpacing); + TQVBoxLayout *leftColumnLayout = new TQVBoxLayout(tqlayout, verticalSpacing); + TQVBoxLayout *rightColumnLayout = new TQVBoxLayout(tqlayout, verticalSpacing); - layout->setStretchFactor(leftColumnLayout, 2); - layout->setStretchFactor(rightColumnLayout, 3); + tqlayout->setStretchFactor(leftColumnLayout, 2); + tqlayout->setStretchFactor(rightColumnLayout, 3); ////////////////////////////////////////////////////////////////////////////// // put stuff in the left column -- all of the field names are class wide @@ -524,7 +524,7 @@ void TagEditor::setupLayout() horizontalSpacing); m_fileNameBox = new KLineEdit(this, "fileNameBox"); - m_fileNameBox->setValidator(new FileNameValidator(m_fileNameBox)); + m_fileNameBox->setValidator(new FileNameValidator(TQT_TQOBJECT(m_fileNameBox))); TQLabel *fileNameIcon = new TQLabel(this); fileNameIcon->setPixmap(SmallIcon("sound")); @@ -560,7 +560,7 @@ void TagEditor::setupLayout() // addItem(i18n("Length:"), m_lengthBox, trackRowLayout); m_lengthBox->setMinimumWidth(fontMetrics().width("00:00") + trackRowLayout->spacing()); m_lengthBox->setMaximumWidth(50); - m_lengthBox->setAlignment(Qt::AlignRight); + m_lengthBox->tqsetAlignment(TQt::AlignRight); m_lengthBox->setReadOnly(true); trackRowLayout->addWidget(addHidden(m_lengthBox)); @@ -572,7 +572,7 @@ void TagEditor::setupLayout() // addItem(i18n("Bitrate:"), m_bitrateBox, trackRowLayout); m_bitrateBox->setMinimumWidth(fontMetrics().width("000") + trackRowLayout->spacing()); m_bitrateBox->setMaximumWidth(50); - m_bitrateBox->setAlignment(Qt::AlignRight); + m_bitrateBox->tqsetAlignment(TQt::AlignRight); m_bitrateBox->setReadOnly(true); trackRowLayout->addWidget(addHidden(m_bitrateBox)); @@ -580,7 +580,7 @@ void TagEditor::setupLayout() } m_commentBox = new KEdit(this, "commentBox"); - m_commentBox->setTextFormat(Qt::PlainText); + m_commentBox->setTextFormat(TQt::PlainText); addItem(i18n("&Comment:"), m_commentBox, rightColumnLayout, "edit"); fileNameLabel->setMinimumHeight(m_trackSpin->height()); @@ -618,7 +618,7 @@ void TagEditor::save(const PlaylistItemList &list) { if(!list.isEmpty() && m_dataChanged) { - KApplication::setOverrideCursor(Qt::waitCursor); + KApplication::setOverrideCursor(TQt::waitCursor); m_dataChanged = false; m_performingSave = true; @@ -711,9 +711,9 @@ void TagEditor::saveChangesPrompt() } } -void TagEditor::addItem(const TQString &text, TQWidget *item, TQBoxLayout *layout, const TQString &iconName) +void TagEditor::addItem(const TQString &text, TQWidget *item, TQBoxLayout *tqlayout, const TQString &iconName) { - if(!item || !layout) + if(!item || !tqlayout) return; TQLabel *label = new TQLabel(item, text, this); @@ -727,14 +727,14 @@ void TagEditor::addItem(const TQString &text, TQWidget *item, TQBoxLayout *layou label->setMinimumHeight(enableBox->height()); - if(layout->direction() == TQBoxLayout::LeftToRight) { - layout->addWidget(iconLabel); - layout->addWidget(label); - layout->addWidget(item); - layout->addWidget(enableBox); + if(tqlayout->direction() == TQBoxLayout::LeftToRight) { + tqlayout->addWidget(iconLabel); + tqlayout->addWidget(label); + tqlayout->addWidget(item); + tqlayout->addWidget(enableBox); } else { - TQHBoxLayout *l = new TQHBoxLayout(layout); + TQHBoxLayout *l = new TQHBoxLayout(tqlayout); l->addWidget(iconLabel); l->addWidget(label); @@ -745,7 +745,7 @@ void TagEditor::addItem(const TQString &text, TQWidget *item, TQBoxLayout *layou l->addWidget(enableBox); l->setStretchFactor(enableBox, 0); - layout->addWidget(item); + tqlayout->addWidget(item); } enableBox->hide(); @@ -766,7 +766,7 @@ void TagEditor::showEvent(TQShowEvent *e) bool TagEditor::eventFilter(TQObject *watched, TQEvent *e) { - TQKeyEvent *ke = static_cast(e); + TQKeyEvent *ke = TQT_TQKEYEVENT(e); if(watched->inherits(TQSPINBOX_OBJECT_NAME_STRING) && e->type() == TQEvent::KeyRelease && ke->state() == 0) slotDataChanged(); diff --git a/juk/tageditor.h b/juk/tageditor.h index c62df207..8a616f15 100644 --- a/juk/tageditor.h +++ b/juk/tageditor.h @@ -34,12 +34,13 @@ typedef TQValueList PlaylistItemList; class CollectionObserver; -class TagEditor : public QWidget +class TagEditor : public TQWidget { Q_OBJECT + TQ_OBJECT public: - TagEditor(TQWidget *parent = 0, const char *name = 0); + TagEditor(TQWidget *tqparent = 0, const char *name = 0); virtual ~TagEditor(); PlaylistItemList items() const { return m_items; } void setupObservers(); @@ -66,10 +67,10 @@ private: void save(const PlaylistItemList &list); void saveChangesPrompt(); /** - * Adds an item to JuK's tagging layout. This handles the creation and + * Adds an item to JuK's tagging tqlayout. This handles the creation and * placement of the "enable" box as well. */ - void addItem(const TQString &text, TQWidget *item, TQBoxLayout *layout, const TQString &iconName = TQString::null); + void addItem(const TQString &text, TQWidget *item, TQBoxLayout *tqlayout, const TQString &iconName = TQString()); /** * Adds a widget to m_hideList and returns that widget. diff --git a/juk/tagguesser.cpp b/juk/tagguesser.cpp index b540aaf1..a93b5996 100644 --- a/juk/tagguesser.cpp +++ b/juk/tagguesser.cpp @@ -23,7 +23,7 @@ FileNameScheme::FileNameScheme(const TQString &s) m_commentField(-1) { int fieldNumber = 1; - int i = s.find('%'); + int i = s.tqfind('%'); while (i > -1) { switch (s[ i + 1 ]) { case 't': m_titleField = fieldNumber++; @@ -39,7 +39,7 @@ FileNameScheme::FileNameScheme(const TQString &s) default: break; } - i = s.find('%', i + 1); + i = s.tqfind('%', i + 1); } m_regExp.setPattern(composeRegExp(s)); } @@ -50,42 +50,42 @@ bool FileNameScheme::matches(const TQString &fileName) const * does not work as a separator. */ TQString stripped = fileName; - stripped.truncate(stripped.findRev('.')); + stripped.truncate(stripped.tqfindRev('.')); return m_regExp.exactMatch(stripped); } TQString FileNameScheme::title() const { if(m_titleField == -1) - return TQString::null; + return TQString(); return m_regExp.capturedTexts()[ m_titleField ]; } TQString FileNameScheme::artist() const { if(m_artistField == -1) - return TQString::null; + return TQString(); return m_regExp.capturedTexts()[ m_artistField ]; } TQString FileNameScheme::album() const { if(m_albumField == -1) - return TQString::null; + return TQString(); return m_regExp.capturedTexts()[ m_albumField ]; } TQString FileNameScheme::track() const { if(m_trackField == -1) - return TQString::null; + return TQString(); return m_regExp.capturedTexts()[ m_trackField ]; } TQString FileNameScheme::comment() const { if(m_commentField == -1) - return TQString::null; + return TQString(); return m_regExp.capturedTexts()[ m_commentField ]; } @@ -103,7 +103,7 @@ TQString FileNameScheme::composeRegExp(const TQString &s) const TQString regExp = TQRegExp::escape(s.simplifyWhiteSpace()); regExp = ".*" + regExp; - regExp.replace(' ', "\\s+"); + regExp.tqreplace(' ', "\\s+"); regExp = KMacroExpander::expandMacros(regExp, substitutions); regExp += "[^/]*$"; return regExp; @@ -180,18 +180,18 @@ void TagGuesser::loadSchemes() void TagGuesser::guess(const TQString &absFileName) { - m_title = m_artist = m_album = m_track = m_comment = TQString::null; + m_title = m_artist = m_album = m_track = m_comment = TQString(); FileNameScheme::List::ConstIterator it = m_schemes.begin(); FileNameScheme::List::ConstIterator end = m_schemes.end(); for (; it != end; ++it) { const FileNameScheme schema(*it); if(schema.matches(absFileName)) { - m_title = capitalizeWords(schema.title().replace('_', " ")).stripWhiteSpace(); - m_artist = capitalizeWords(schema.artist().replace('_', " ")).stripWhiteSpace(); - m_album = capitalizeWords(schema.album().replace('_', " ")).stripWhiteSpace(); + m_title = capitalizeWords(schema.title().tqreplace('_', " ")).stripWhiteSpace(); + m_artist = capitalizeWords(schema.artist().tqreplace('_', " ")).stripWhiteSpace(); + m_album = capitalizeWords(schema.album().tqreplace('_', " ")).stripWhiteSpace(); m_track = schema.track().stripWhiteSpace(); - m_comment = schema.comment().replace('_', " ").stripWhiteSpace(); + m_comment = schema.comment().tqreplace('_', " ").stripWhiteSpace(); break; } } @@ -206,10 +206,10 @@ TQString TagGuesser::capitalizeWords(const TQString &s) result[ 0 ] = result[ 0 ].upper(); const TQRegExp wordRegExp("\\s\\w"); - int i = result.find( wordRegExp ); + int i = result.tqfind( wordRegExp ); while ( i > -1 ) { result[ i + 1 ] = result[ i + 1 ].upper(); - i = result.find( wordRegExp, ++i ); + i = result.tqfind( wordRegExp, ++i ); } return result; diff --git a/juk/tagguesserconfigdlg.cpp b/juk/tagguesserconfigdlg.cpp index 7caea019..f6f1c469 100644 --- a/juk/tagguesserconfigdlg.cpp +++ b/juk/tagguesserconfigdlg.cpp @@ -20,8 +20,8 @@ #include #include -TagGuesserConfigDlg::TagGuesserConfigDlg(TQWidget *parent, const char *name) - : KDialogBase(parent, name, true, i18n("Tag Guesser Configuration"), +TagGuesserConfigDlg::TagGuesserConfigDlg(TQWidget *tqparent, const char *name) + : KDialogBase(tqparent, name, true, i18n("Tag Guesser Configuration"), Ok | Cancel, Ok, true) { m_child = new TagGuesserConfigDlgWidget(this, "child"); diff --git a/juk/tagguesserconfigdlg.h b/juk/tagguesserconfigdlg.h index e0585f07..480e00f3 100644 --- a/juk/tagguesserconfigdlg.h +++ b/juk/tagguesserconfigdlg.h @@ -17,8 +17,9 @@ class TagGuesserConfigDlgWidget; class TagGuesserConfigDlg : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - TagGuesserConfigDlg(TQWidget *parent, const char *name = 0); + TagGuesserConfigDlg(TQWidget *tqparent, const char *name = 0); protected slots: virtual void accept(); diff --git a/juk/tagguesserconfigdlgwidget.ui b/juk/tagguesserconfigdlgwidget.ui index 25d86c0b..23e1a37b 100644 --- a/juk/tagguesserconfigdlgwidget.ui +++ b/juk/tagguesserconfigdlgwidget.ui @@ -1,11 +1,11 @@ TagGuesserConfigDlgWidget Frerich Raabe <raabe@kde.org> - + Form1 - + 0 0 @@ -70,7 +70,7 @@ Note that the order in which the schemes appear in the list is relevant, since t Press this button to add a new file name scheme to the end of the list. - + bMoveUp @@ -84,7 +84,7 @@ Note that the order in which the schemes appear in the list is relevant, since t Press this button to move the currently selected scheme one step upwards.
- + bMoveDown @@ -136,7 +136,7 @@ Note that the order in which the schemes appear in the list is relevant, since t Expanding - + 20 130 @@ -148,8 +148,8 @@ Note that the order in which the schemes appear in the list is relevant, since t kdialog.h - - + + klistview.h kpushbutton.h diff --git a/juk/tagguessertest.cpp b/juk/tagguessertest.cpp index b94f9639..adba59db 100644 --- a/juk/tagguessertest.cpp +++ b/juk/tagguessertest.cpp @@ -35,7 +35,7 @@ using std::endl; void check( const TQString &filename, const TQString &title, const TQString &artist, const TQString &track, - const TQString &comment, const TQString &album = TQString::null ) + const TQString &comment, const TQString &album = TQString() ) { cout << "Checking " << filename.latin1() << "..."; TagGuesser guesser( filename ); @@ -72,57 +72,57 @@ int main( int argc, char **argv ) check( "/home/frerich/Chemical Brothers - (01) - Block rockin' beats (Live).mp3", "Block Rockin' Beats", "Chemical Brothers", "01", "Live" ); check( "/home/frerich/Chemical Brothers - (01) - Block rockin' beats.mp3", - "Block Rockin' Beats", "Chemical Brothers", "01", TQString::null ); + "Block Rockin' Beats", "Chemical Brothers", "01", TQString() ); check( "/home/frerich/Chemical Brothers - [01] - Block rockin' beats [Live].mp3", "Block Rockin' Beats", "Chemical Brothers", "01", "Live" ); check( "/home/frerich/Chemical Brothers - [01] - Block rockin' beats (Live).mp3", "Block Rockin' Beats", "Chemical Brothers", "01", "Live" ); check( "/home/frerich/Chemical Brothers - [01] - Block rockin' beats.mp3", - "Block Rockin' Beats", "Chemical Brothers", "01", TQString::null ); + "Block Rockin' Beats", "Chemical Brothers", "01", TQString() ); check( "/home/frerich/Chemical Brothers - 01 - Block rockin' beats [Live].mp3", "Block Rockin' Beats", "Chemical Brothers", "01", "Live" ); check( "/home/frerich/Chemical Brothers - 01 - Block rockin' beats (Live).mp3", "Block Rockin' Beats", "Chemical Brothers", "01", "Live" ); check( "/home/frerich/Chemical Brothers - 01 - Block rockin' beats.mp3", - "Block Rockin' Beats", "Chemical Brothers", "01", TQString::null ); + "Block Rockin' Beats", "Chemical Brothers", "01", TQString() ); check( "/home/frerich/(01) Chemical Brothers - Block rockin' beats [Live].mp3", "Block Rockin' Beats", "Chemical Brothers", "01", "Live" ); check( "/home/frerich/(01) Chemical Brothers - Block rockin' beats (Live).mp3", "Block Rockin' Beats", "Chemical Brothers", "01", "Live" ); check( "/home/frerich/(01) Chemical Brothers - Block rockin' beats.mp3", - "Block Rockin' Beats", "Chemical Brothers", "01", TQString::null ); + "Block Rockin' Beats", "Chemical Brothers", "01", TQString() ); check( "/home/frerich/[01] Chemical Brothers - Block rockin' beats [Live].mp3", "Block Rockin' Beats", "Chemical Brothers", "01", "Live" ); check( "/home/frerich/[01] Chemical Brothers - Block rockin' beats (Live).mp3", "Block Rockin' Beats", "Chemical Brothers", "01", "Live" ); check( "/home/frerich/[01] Chemical Brothers - Block rockin' beats.mp3", - "Block Rockin' Beats", "Chemical Brothers", "01", TQString::null ); + "Block Rockin' Beats", "Chemical Brothers", "01", TQString() ); check( "/home/frerich/01 Chemical Brothers - Block rockin' beats [Live].mp3", "Block Rockin' Beats", "Chemical Brothers", "01", "Live" ); check( "/home/frerich/01 Chemical Brothers - Block rockin' beats (Live).mp3", "Block Rockin' Beats", "Chemical Brothers", "01", "Live" ); check( "/home/frerich/01 Chemical Brothers - Block rockin' beats.mp3", - "Block Rockin' Beats", "Chemical Brothers", "01", TQString::null ); + "Block Rockin' Beats", "Chemical Brothers", "01", TQString() ); check( "/home/frerich/(Chemical Brothers) Block rockin' beats [Live].mp3", - "Block Rockin' Beats", "Chemical Brothers", TQString::null, "Live" ); + "Block Rockin' Beats", "Chemical Brothers", TQString(), "Live" ); check( "/home/frerich/(Chemical Brothers) Block rockin' beats (Live).mp3", - "Block Rockin' Beats", "Chemical Brothers", TQString::null, "Live" ); + "Block Rockin' Beats", "Chemical Brothers", TQString(), "Live" ); check( "/home/frerich/(Chemical Brothers) Block rockin' beats.mp3", - "Block Rockin' Beats", "Chemical Brothers", TQString::null, TQString::null ); + "Block Rockin' Beats", "Chemical Brothers", TQString(), TQString() ); check( "/home/frerich/Chemical Brothers - Block rockin' beats [Live].mp3", - "Block Rockin' Beats", "Chemical Brothers", TQString::null, "Live" ); + "Block Rockin' Beats", "Chemical Brothers", TQString(), "Live" ); check( "/home/frerich/Chemical Brothers - Block rockin' beats (Live).mp3", - "Block Rockin' Beats", "Chemical Brothers", TQString::null, "Live" ); + "Block Rockin' Beats", "Chemical Brothers", TQString(), "Live" ); check( "/home/frerich/Chemical Brothers - Block rockin' beats.mp3", - "Block Rockin' Beats", "Chemical Brothers", TQString::null, TQString::null ); + "Block Rockin' Beats", "Chemical Brothers", TQString(), TQString() ); check( "/home/frerich/mp3/Chemical Brothers/Dig your own hole/[01] Block rockin' beats.mp3", - "Block Rockin' Beats", "Chemical Brothers", "01", TQString::null, "Dig Your Own Hole"); + "Block Rockin' Beats", "Chemical Brothers", "01", TQString(), "Dig Your Own Hole"); check( TQDir::homeDirPath() + "/[01] Randy - Religion, religion.mp3", - "Religion, Religion", "Randy", "01", TQString::null, TQString::null ); + "Religion, Religion", "Randy", "01", TQString(), TQString() ); check( TQDir::homeDirPath() + "/(3) Mr. Doe - Punk.mp3", - "Punk", "Mr. Doe", "3", TQString::null, TQString::null ); + "Punk", "Mr. Doe", "3", TQString(), TQString() ); check( "c:\\music\\mp3s\\(3) Mr. Doe - Punk.mp3", - "Punk", "Mr. Doe", "3", TQString::null, TQString::null ); + "Punk", "Mr. Doe", "3", TQString(), TQString() ); cout << "All OK" << endl; return 0; } diff --git a/juk/tagrenameroptions.cpp b/juk/tagrenameroptions.cpp index 50f7036d..fc97ac8e 100644 --- a/juk/tagrenameroptions.cpp +++ b/juk/tagrenameroptions.cpp @@ -69,12 +69,12 @@ TagRenamerOptions::TagRenamerOptions(const CategoryID &category) if(categoryNum > 0) typeKey.append(TQString::number(categoryNum)); - setSuffix(config.readEntry(TQString("%1Suffix").arg(typeKey))); - setPrefix(config.readEntry(TQString("%1Prefix").arg(typeKey))); + setSuffix(config.readEntry(TQString("%1Suffix").tqarg(typeKey))); + setPrefix(config.readEntry(TQString("%1Prefix").tqarg(typeKey))); // Default the emptyAction to ignoring the empty tag. - const TQString emptyAction = config.readEntry(TQString("%1EmptyAction").arg(typeKey)).lower(); + const TQString emptyAction = config.readEntry(TQString("%1EmptyAction").tqarg(typeKey)).lower(); setEmptyAction(IgnoreEmptyTag); if(emptyAction == "forceemptyinclude") @@ -82,9 +82,9 @@ TagRenamerOptions::TagRenamerOptions(const CategoryID &category) else if(emptyAction == "usereplacementvalue") setEmptyAction(UseReplacementValue); - setEmptyText(config.readEntry(TQString("%1EmptyText").arg(typeKey))); - setTrackWidth(config.readUnsignedNumEntry(TQString("%1TrackWidth").arg(typeKey))); - setDisabled(config.readBoolEntry(TQString("%1Disabled").arg(typeKey), disabled)); + setEmptyText(config.readEntry(TQString("%1EmptyText").tqarg(typeKey))); + setTrackWidth(config.readUnsignedNumEntry(TQString("%1TrackWidth").tqarg(typeKey))); + setDisabled(config.readBoolEntry(TQString("%1Disabled").tqarg(typeKey), disabled)); } TQString TagRenamerOptions::tagTypeText(TagType type, bool translate) @@ -104,7 +104,7 @@ TQString TagRenamerOptions::tagTypeText(TagType type, bool translate) return translate ? i18n("Unknown") : "Unknown"; } - return translate ? i18n(tags[type]) : tags[type]; + return translate ? TQString(i18n(tags[type])) : TQString(tags[type]); } void TagRenamerOptions::saveConfig(unsigned categoryNum) const @@ -117,8 +117,8 @@ void TagRenamerOptions::saveConfig(unsigned categoryNum) const KConfigGroup config(KGlobal::config(), "FileRenamer"); - config.writeEntry(TQString("%1Suffix").arg(typeKey), suffix()); - config.writeEntry(TQString("%1Prefix").arg(typeKey), prefix()); + config.writeEntry(TQString("%1Suffix").tqarg(typeKey), suffix()); + config.writeEntry(TQString("%1Prefix").tqarg(typeKey), prefix()); TQString emptyStr; @@ -136,12 +136,12 @@ void TagRenamerOptions::saveConfig(unsigned categoryNum) const break; } - config.writeEntry(TQString("%1EmptyAction").arg(typeKey), emptyStr); - config.writeEntry(TQString("%1EmptyText").arg(typeKey), emptyText()); - config.writeEntry(TQString("%1Disabled").arg(typeKey), disabled()); + config.writeEntry(TQString("%1EmptyAction").tqarg(typeKey), emptyStr); + config.writeEntry(TQString("%1EmptyText").tqarg(typeKey), emptyText()); + config.writeEntry(TQString("%1Disabled").tqarg(typeKey), disabled()); if(category() == Track) - config.writeEntry(TQString("%1TrackWidth").arg(typeKey), trackWidth()); + config.writeEntry(TQString("%1TrackWidth").tqarg(typeKey), trackWidth()); config.sync(); } diff --git a/juk/tagtransactionmanager.cpp b/juk/tagtransactionmanager.cpp index cc8b1c80..256b7041 100644 --- a/juk/tagtransactionmanager.cpp +++ b/juk/tagtransactionmanager.cpp @@ -123,7 +123,7 @@ bool TagTransactionManager::undo() return result; } -TagTransactionManager::TagTransactionManager(TQWidget *parent) : TQObject(parent, "tagmanager") +TagTransactionManager::TagTransactionManager(TQWidget *tqparent) : TQObject(tqparent, "tagmanager") { m_manager = this; } @@ -135,7 +135,7 @@ bool TagTransactionManager::renameFile(const TQFileInfo &from, const TQFileInfo if(!to.exists() || KMessageBox::warningContinueCancel( - static_cast(parent()), + TQT_TQWIDGET(tqparent()), i18n("This file already exists.\nDo you want to replace it?"), i18n("File Exists"),i18n("Replace")) == KMessageBox::Continue) { @@ -176,7 +176,7 @@ bool TagTransactionManager::processChangeList(bool undo) item->file().setFile(tag->fileName()); item->refreshFromDisk(); - item->repaint(); + item->tqrepaint(); item->playlist()->dataChanged(); item->playlist()->update(); } @@ -200,7 +200,7 @@ bool TagTransactionManager::processChangeList(bool undo) action("edit_undo")->setEnabled(false); if(!errorItems.isEmpty()) - KMessageBox::errorList(static_cast(parent()), + KMessageBox::errorList(TQT_TQWIDGET(tqparent()), i18n("The following files were unable to be changed."), errorItems, i18n("Error")); diff --git a/juk/tagtransactionmanager.h b/juk/tagtransactionmanager.h index 7f8ef8d0..7ea38f96 100644 --- a/juk/tagtransactionmanager.h +++ b/juk/tagtransactionmanager.h @@ -40,7 +40,7 @@ class TagTransactionAtom /** * Copy constructor. This takes ownership of the m_tag pointer, so the * object being copied no longer has access to the tag. This function also - * exists mainly for QValueList's benefit. + * exists mainly for TQValueList's benefit. * * @param other The TagTransactionAtom to copy. */ @@ -103,17 +103,18 @@ typedef TQValueList TagAlterationList; * * @author Michael Pyne */ -class TagTransactionManager : public QObject +class TagTransactionManager : public TQObject { Q_OBJECT + TQ_OBJECT public: /** - * Constructs a TagTransactionManager, owned by @p parent. + * Constructs a TagTransactionManager, owned by @p tqparent. * - * @param parent The parent TQWidget. + * @param tqparent The tqparent TQWidget. */ - TagTransactionManager(TQWidget *parent = 0); + TagTransactionManager(TQWidget *tqparent = 0); /** * Returns the global TagTransactionManager instance. @@ -137,13 +138,13 @@ class TagTransactionManager : public QObject * object doesn't have a decent copy constructor. * * @param tag The Tag to duplicate. - * @param fileName The filename to assign to the tag. If TQString::null + * @param fileName The filename to assign to the tag. If TQString() * (the default) is passed, the filename of the existing tag is * used. * @bug Tag should have a correct copy ctor and assignment operator. * @return The duplicate Tag. */ - static Tag *duplicateTag(const Tag *tag, const TQString &fileName = TQString::null); + static Tag *duplicateTag(const Tag *tag, const TQString &fileName = TQString()); /** * Commits the changes to the PlaylistItems. It is important that the diff --git a/juk/trackpickerdialog.cpp b/juk/trackpickerdialog.cpp index 407ffea2..ee70ebda 100644 --- a/juk/trackpickerdialog.cpp +++ b/juk/trackpickerdialog.cpp @@ -25,13 +25,13 @@ #include "trackpickerdialog.h" #include "trackpickerdialogbase.h" -#define NUMBER(x) (x == 0 ? TQString::null : TQString::number(x)) +#define NUMBER(x) (x == 0 ? TQString() : TQString::number(x)) class TrackPickerItem : public KListViewItem { public: - TrackPickerItem(KListView *parent, const KTRMResult &result) : - KListViewItem(parent, parent->lastChild(), + TrackPickerItem(KListView *tqparent, const KTRMResult &result) : + KListViewItem(tqparent, tqparent->lastChild(), result.title(), result.artist(), result.album(), NUMBER(result.track()), NUMBER(result.year())), m_result(result) {} @@ -47,8 +47,8 @@ private: TrackPickerDialog::TrackPickerDialog(const TQString &name, const KTRMResultList &results, - TQWidget *parent) : - KDialogBase(parent, name.latin1(), true, i18n("Internet Tag Guesser"), Ok | Cancel, Ok, true) + TQWidget *tqparent) : + KDialogBase(tqparent, name.latin1(), true, i18n("Internet Tag Guesser"), Ok | Cancel, Ok, true) { m_base = new TrackPickerDialogBase(this); setMainWidget(m_base); diff --git a/juk/trackpickerdialog.h b/juk/trackpickerdialog.h index 06450efa..9cc5f347 100644 --- a/juk/trackpickerdialog.h +++ b/juk/trackpickerdialog.h @@ -29,11 +29,12 @@ class TrackPickerDialogBase; class TrackPickerDialog : public KDialogBase { Q_OBJECT + TQ_OBJECT public: TrackPickerDialog(const TQString &name, const KTRMResultList &results, - TQWidget *parent = 0); + TQWidget *tqparent = 0); virtual ~TrackPickerDialog(); diff --git a/juk/trackpickerdialogbase.ui b/juk/trackpickerdialogbase.ui index b938fb19..69119f46 100644 --- a/juk/trackpickerdialogbase.ui +++ b/juk/trackpickerdialogbase.ui @@ -1,10 +1,10 @@ TrackPickerDialogBase - + trackPickerDialogBase - + 0 0 @@ -16,7 +16,7 @@ unnamed - + fileLayout @@ -24,21 +24,21 @@ unnamed - + fileInfoGroup File Name - + AlignTop unnamed - + fileLabel @@ -50,7 +50,7 @@ - + AlignVCenter|AlignLeft @@ -61,7 +61,7 @@ - + trackLayout @@ -69,14 +69,14 @@ unnamed - + trackInfoGroup Select Best Possible Match - + AlignTop @@ -172,7 +172,7 @@ trackList - + klistview.h diff --git a/juk/tracksequencemanager.h b/juk/tracksequencemanager.h index a83cd508..8d90f7d9 100644 --- a/juk/tracksequencemanager.h +++ b/juk/tracksequencemanager.h @@ -33,9 +33,10 @@ class Playlist; * @see TrackSequenceIterator * @author Michael Pyne */ -class TrackSequenceManager : public QObject +class TrackSequenceManager : public TQObject { Q_OBJECT + TQ_OBJECT public: /** diff --git a/juk/treeviewitemplaylist.cpp b/juk/treeviewitemplaylist.cpp index 22872760..38f85f10 100644 --- a/juk/treeviewitemplaylist.cpp +++ b/juk/treeviewitemplaylist.cpp @@ -52,7 +52,7 @@ void TreeViewItemPlaylist::retag(const TQStringList &files, Playlist *) if(KMessageBox::warningContinueCancelList( this, - i18n("You are about to change the %1 on these files.").arg(changedTag), + i18n("You are about to change the %1 on these files.").tqarg(changedTag), files, i18n("Changing Track Tags"), KStdGuiItem::cont(), diff --git a/juk/treeviewitemplaylist.h b/juk/treeviewitemplaylist.h index be7337c9..de2c13d9 100644 --- a/juk/treeviewitemplaylist.h +++ b/juk/treeviewitemplaylist.h @@ -24,11 +24,12 @@ class TQStringList; class TreeViewItemPlaylist : public SearchPlaylist { Q_OBJECT + TQ_OBJECT public: TreeViewItemPlaylist(PlaylistCollection *collection, const PlaylistSearch &search = PlaylistSearch(), - const TQString &name = TQString::null); + const TQString &name = TQString()); virtual bool searchIsEditable() const { return false; } void retag(const TQStringList &files, Playlist *donorPlaylist); diff --git a/juk/upcomingplaylist.cpp b/juk/upcomingplaylist.cpp index f31e3144..52da900e 100644 --- a/juk/upcomingplaylist.cpp +++ b/juk/upcomingplaylist.cpp @@ -208,7 +208,7 @@ void UpcomingPlaylist::UpcomingSequenceIterator::setCurrent(PlaylistItem *curren } // If the upcoming playlist is playing something, clear it out since - // apparently the user didn't want to hear it. + // aptqparently the user didn't want to hear it. PlaylistItem *playingItem = m_playlist->playingItem(); if(playingItem && playingItem->playlist() == m_playlist && currentItem != playingItem) @@ -250,7 +250,7 @@ TQDataStream &operator<<(TQDataStream &s, const UpcomingPlaylist &p) { PlaylistItemList l = const_cast(&p)->items(); - s << Q_INT32(l.count()); + s << TQ_INT32(l.count()); for(PlaylistItemList::ConstIterator it = l.begin(); it != l.end(); ++it) s << (*it)->file().absFilePath(); @@ -262,11 +262,11 @@ TQDataStream &operator>>(TQDataStream &s, UpcomingPlaylist &p) { TQString fileName; PlaylistItem *newItem = 0; - Q_INT32 count; + TQ_INT32 count; s >> count; - for(Q_INT32 i = 0; i < count; ++i) { + for(TQ_INT32 i = 0; i < count; ++i) { s >> fileName; newItem = p.createItem(FileHandle(fileName), newItem, false); } diff --git a/juk/upcomingplaylist.h b/juk/upcomingplaylist.h index 4bd7b712..a0a95083 100644 --- a/juk/upcomingplaylist.h +++ b/juk/upcomingplaylist.h @@ -180,7 +180,7 @@ public: /** * This function sets the currently playing item to @a currentItem. If the - * item doesn't belong to the parent UpcomingPlaylist, it will be added to + * item doesn't belong to the tqparent UpcomingPlaylist, it will be added to * the UpcomingPlaylist, replacing any track that may be playing. * Otherwise, it is moved up and set to play, replacing any track that may * be playing. @@ -196,7 +196,7 @@ public: /** * This function readies the UpcomingSequenceIterator for playback, by - * making sure the parent UpcomingPlaylist has items to play if it is + * making sure the tqparent UpcomingPlaylist has items to play if it is * empty. */ virtual void prepareToPlay(Playlist *); diff --git a/juk/viewmode.cpp b/juk/viewmode.cpp index 6c46278b..785f765b 100644 --- a/juk/viewmode.cpp +++ b/juk/viewmode.cpp @@ -49,7 +49,7 @@ ViewMode::~ViewMode() void ViewMode::paintCell(PlaylistBox::Item *item, TQPainter *painter, - const TQColorGroup &colorGroup, + const TQColorGroup &tqcolorGroup, int column, int width, int) { if(width < item->pixmap(column)->width()) @@ -71,7 +71,7 @@ void ViewMode::paintCell(PlaylistBox::Item *item, TQPen newPen = oldPen; newPen.setWidth(5); - newPen.setJoinStyle(RoundJoin); + newPen.setJoinStyle(Qt::RoundJoin); newPen.setColor(TQColorGroup::Highlight); painter->setPen(newPen); @@ -79,21 +79,21 @@ void ViewMode::paintCell(PlaylistBox::Item *item, painter->setPen(oldPen); painter->fillRect(border, border, width - border * 2, item->height() - border * 2 + 1, - colorGroup.brush(TQColorGroup::Highlight)); - painter->setPen(colorGroup.highlightedText()); + tqcolorGroup.brush(TQColorGroup::Highlight)); + painter->setPen(tqcolorGroup.highlightedText()); } else painter->eraseRect(0, 0, width, item->height()); if (!pm->isNull()) { int x = (width - pm->width()) / 2; - x = QMAX(x, item->listView()->itemMargin()); + x = TQMAX(x, item->listView()->itemMargin()); painter->drawPixmap(x, y, *pm); } y += pm->height() + fm.height() - fm.descent(); for(TQStringList::Iterator it = m_lines[item].begin(); it != m_lines[item].end(); ++it) { int x = (width - fm.width(*it)) / 2; - x = QMAX(x, item->listView()->itemMargin()); + x = TQMAX(x, item->listView()->itemMargin()); painter->drawText(x, y, *it); y += fm.height() - fm.descent(); } @@ -104,8 +104,8 @@ void ViewMode::paintCell(PlaylistBox::Item *item, bool ViewMode::eventFilter(TQObject *watched, TQEvent *e) { - if(m_visible && watched == m_playlistBox->viewport() && e->type() == TQEvent::Resize) { - TQResizeEvent *re = static_cast(e); + if(m_visible && TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(m_playlistBox->viewport()) && e->type() == TQEvent::Resize) { + TQResizeEvent *re = TQT_TQRESIZEEVENT(e); if(re->size().width() != re->oldSize().width()) m_needsRefresh = true; } @@ -168,7 +168,7 @@ void ViewMode::paintDropIndicator(TQPainter *painter, int width, int height) // TQPen newPen = oldPen; newPen.setWidth(lineWidth); - newPen.setStyle(DotLine); + newPen.setStyle(Qt::DotLine); painter->setPen(newPen); painter->drawRect(border, border, width - border * 2, height - border * 2); @@ -195,7 +195,7 @@ TQStringList ViewMode::lines(const PlaylistBox::Item *item, fm.width(line.mid(0, textLength).stripWhiteSpace()) + item->listView()->itemMargin() * 2 > width) { - int i = line.findRev(TQRegExp( "\\W"), textLength - 1); + int i = line.tqfindRev(TQRegExp( "\\W"), textLength - 1); if(i > 0) textLength = i; else @@ -224,10 +224,10 @@ CompactViewMode::~CompactViewMode() void CompactViewMode::paintCell(PlaylistBox::Item *item, TQPainter *painter, - const TQColorGroup &colorGroup, + const TQColorGroup &tqcolorGroup, int column, int width, int align) { - item->KListViewItem::paintCell(painter, colorGroup, column, width, align); + item->KListViewItem::paintCell(painter, tqcolorGroup, column, width, align); if(item == item->listView()->dropItem()) paintDropIndicator(painter, width, item->height()); } @@ -313,7 +313,7 @@ void TreeViewMode::removeItem(const TQString &item, unsigned column) return; } - if(!m_treeViewItems.find(itemKey)) + if(!m_treeViewItems.tqfind(itemKey)) return; TreeViewItemPlaylist *itemPlaylist = m_treeViewItems[itemKey]; @@ -363,7 +363,7 @@ void TreeViewMode::addItems(const TQStringList &items, unsigned column) item = *it; itemKey = searchCategory + item; - if(m_treeViewItems.find(itemKey)) + if(m_treeViewItems.tqfind(itemKey)) continue; components.clear(); diff --git a/juk/viewmode.h b/juk/viewmode.h index 2f164177..2ef4f007 100644 --- a/juk/viewmode.h +++ b/juk/viewmode.h @@ -26,9 +26,10 @@ class TQColorGroup; class SearchPlaylist; -class ViewMode : public QObject +class ViewMode : public TQObject { Q_OBJECT + TQ_OBJECT public: ViewMode(PlaylistBox *b); @@ -39,7 +40,7 @@ public: virtual void paintCell(PlaylistBox::Item *item, TQPainter *painter, - const TQColorGroup &colorGroup, + const TQColorGroup &tqcolorGroup, int column, int width, int align); virtual bool eventFilter(TQObject *watched, TQEvent *e); @@ -105,7 +106,7 @@ public: virtual void paintCell(PlaylistBox::Item *item, TQPainter *painter, - const TQColorGroup &colorGroup, + const TQColorGroup &tqcolorGroup, int column, int width, int align); virtual void setupItem(PlaylistBox::Item *item) const { item->KListViewItem::setup(); } @@ -120,6 +121,7 @@ class TreeViewItemPlaylist; class TreeViewMode : public CompactViewMode { Q_OBJECT + TQ_OBJECT public: TreeViewMode(PlaylistBox *l); @@ -149,6 +151,7 @@ private: class CoverManagerMode : public ViewMode { Q_OBJECT + TQ_OBJECT public: CoverManagerMode(PlaylistBox *b); diff --git a/juk/webimagefetcher.cpp b/juk/webimagefetcher.cpp index 1e5bec83..f8445bc3 100644 --- a/juk/webimagefetcher.cpp +++ b/juk/webimagefetcher.cpp @@ -37,13 +37,13 @@ WebImage::WebImage(const TQString &imageURL, const TQString &thumbURL, int width, int height) : m_imageURL(imageURL), m_thumbURL(thumbURL), - m_size(TQString("\n%1 x %2").arg(width).arg(height)) + m_size(TQString("\n%1 x %2").tqarg(width).tqarg(height)) { } -WebImageFetcher::WebImageFetcher(TQObject *parent) - : TQObject(parent), +WebImageFetcher::WebImageFetcher(TQObject *tqparent) + : TQObject(tqparent), m_connection(new TQHttp(this)), m_connectionId(-1), m_dialog(0) diff --git a/juk/webimagefetcher.h b/juk/webimagefetcher.h index 803fd434..4c2aafef 100644 --- a/juk/webimagefetcher.h +++ b/juk/webimagefetcher.h @@ -52,12 +52,13 @@ private: typedef TQValueList WebImageList; -class WebImageFetcher : public QObject +class WebImageFetcher : public TQObject { Q_OBJECT + TQ_OBJECT public: - WebImageFetcher(TQObject *parent); + WebImageFetcher(TQObject *tqparent); ~WebImageFetcher(); void setFile(const FileHandle &file); diff --git a/juk/webimagefetcherdialog.cpp b/juk/webimagefetcherdialog.cpp index 5e9e0d0c..32cbbe9b 100644 --- a/juk/webimagefetcherdialog.cpp +++ b/juk/webimagefetcherdialog.cpp @@ -36,8 +36,8 @@ WebImageFetcherDialog::WebImageFetcherDialog(const WebImageList &imageList, const FileHandle &file, - TQWidget *parent) : - KDialogBase(parent, "internet_image_fetcher", true, TQString::null, + TQWidget *tqparent) : + KDialogBase(tqparent, "internet_image_fetcher", true, TQString(), Ok | Cancel | User1 , NoDefault, true), m_pixmap(TQPixmap()), m_imageList(imageList), @@ -86,15 +86,15 @@ void WebImageFetcherDialog::showCreditURL(const TQString &url) { // Don't use static member since I'm sure that someday knowing my luck // Yahoo will change their mimetype they serve. - (void) new KRun(KURL(url), topLevelWidget()); + (void) new KRun(KURL(url), tqtopLevelWidget()); } void WebImageFetcherDialog::setLayout() { setCaption(TQString("%1 - %2 (%3)") - .arg(m_file.tag()->artist()) - .arg(m_file.tag()->album()) - .arg(m_imageList.size())); + .tqarg(m_file.tag()->artist()) + .tqarg(m_file.tag()->album()) + .tqarg(m_imageList.size())); m_iconWidget->clear(); for(uint i = 0; i < m_imageList.size(); i++) @@ -184,8 +184,8 @@ TQPixmap WebImageFetcherDialog::pixmapFromURL(const KURL &url) const // CoverIconViewItem //////////////////////////////////////////////////////////////////////////////// -CoverIconViewItem::CoverIconViewItem(TQIconView *parent, const WebImage &image) : - TQObject(parent), KIconViewItem(parent, parent->lastItem(), image.size()), m_job(0) +CoverIconViewItem::CoverIconViewItem(TQIconView *tqparent, const WebImage &image) : + TQObject(tqparent), KIconViewItem(tqparent, tqparent->lastItem(), image.size()), m_job(0) { // Set up the iconViewItem @@ -218,7 +218,7 @@ CoverIconViewItem::~CoverIconViewItem() void CoverIconViewItem::imageData(KIO::Job *, const TQByteArray &data) { int currentSize = m_buffer.size(); - m_buffer.resize(currentSize + data.size(), TQGArray::SpeedOptim); + m_buffer.tqresize(currentSize + data.size(), TQGArray::SpeedOptim); memcpy(&(m_buffer.data()[currentSize]), data.data(), data.size()); } @@ -228,7 +228,7 @@ void CoverIconViewItem::imageResult(KIO::Job *job) return; TQPixmap iconImage(m_buffer); - iconImage = TQImage(iconImage.convertToImage()).smoothScale(80, 80, TQImage::ScaleMin); + iconImage = TQImage(iconImage.convertToImage()).smoothScale(80, 80, TQ_ScaleMin); setPixmap(iconImage, true, true); } diff --git a/juk/webimagefetcherdialog.h b/juk/webimagefetcherdialog.h index d418a947..bd9eb43e 100644 --- a/juk/webimagefetcherdialog.h +++ b/juk/webimagefetcherdialog.h @@ -27,11 +27,12 @@ class KURL; class WebImageFetcherDialog : public KDialogBase { Q_OBJECT + TQ_OBJECT public: WebImageFetcherDialog(const WebImageList &urlList, const FileHandle &file, - TQWidget *parent = 0); + TQWidget *tqparent = 0); virtual ~WebImageFetcherDialog(); @@ -73,9 +74,10 @@ namespace KIO class CoverIconViewItem : public TQObject, public KIconViewItem { Q_OBJECT + TQ_OBJECT public: - CoverIconViewItem(TQIconView *parent, const WebImage &image); + CoverIconViewItem(TQIconView *tqparent, const WebImage &image); ~CoverIconViewItem(); private slots: diff --git a/kaboodle/conf.cpp b/kaboodle/conf.cpp index 4570bf2e..370946e4 100644 --- a/kaboodle/conf.cpp +++ b/kaboodle/conf.cpp @@ -32,7 +32,7 @@ #include "view.h" Kaboodle::Conf::Conf(TQWidget *_parent, const char *_name) - : KDialogBase(_parent, _name, true, TQString::null, Ok | Cancel) + : KDialogBase(_parent, _name, true, TQString(), Ok | Cancel) { TQVBox *box = makeVBoxMainWidget(); diff --git a/kaboodle/conf.h b/kaboodle/conf.h index 884593ba..a3d46dd8 100644 --- a/kaboodle/conf.h +++ b/kaboodle/conf.h @@ -36,6 +36,7 @@ namespace Kaboodle class Conf : public KDialogBase { Q_OBJECT + TQ_OBJECT public: Conf(TQWidget *_parent = 0, const char *_name = 0); diff --git a/kaboodle/controls.cpp b/kaboodle/controls.cpp index 305ae661..b718b659 100644 --- a/kaboodle/controls.cpp +++ b/kaboodle/controls.cpp @@ -23,15 +23,15 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "controls.h" -Kaboodle::L33tSlider::L33tSlider(TQWidget * parent, const char * name) : - TQSlider(parent,name), pressed(false) +Kaboodle::L33tSlider::L33tSlider(TQWidget * tqparent, const char * name) : + TQSlider(tqparent,name), pressed(false) {} -Kaboodle::L33tSlider::L33tSlider(Orientation o, TQWidget * parent, const char * name) : - TQSlider(o,parent,name), pressed(false) +Kaboodle::L33tSlider::L33tSlider(Qt::Orientation o, TQWidget * tqparent, const char * name) : + TQSlider(o,tqparent,name), pressed(false) {} Kaboodle::L33tSlider::L33tSlider(int minValue, int maxValue, int pageStep, int value, - Orientation o, TQWidget * parent, const char * name) : - TQSlider(minValue, maxValue, pageStep, value, o, parent,name), pressed(false) + Qt::Orientation o, TQWidget * tqparent, const char * name) : + TQSlider(minValue, maxValue, pageStep, value, o, tqparent,name), pressed(false) {} bool Kaboodle::L33tSlider::currentlyPressed() const @@ -47,7 +47,7 @@ void Kaboodle::L33tSlider::setValue(int i) void Kaboodle::L33tSlider::mousePressEvent(TQMouseEvent*e) { - if (e->button()!=RightButton) + if (e->button()!=Qt::RightButton) { pressed=true; TQSlider::mousePressEvent(e); @@ -76,8 +76,8 @@ void Kaboodle::L33tSlider::wheelEvent(TQWheelEvent *e) } Kaboodle::SliderAction::SliderAction(const TQString& text, int accel, const TQObject *receiver, - const char *member, TQObject* parent, const char* name ) - : KAction( text, accel, parent, name ) + const char *member, TQObject* tqparent, const char* name ) + : KAction( text, accel, tqparent, name ) { m_receiver = receiver; m_member = member; @@ -91,7 +91,7 @@ int Kaboodle::SliderAction::plug( TQWidget *w, int index ) int id = KAction::getToolButtonID(); //Create it. - m_slider=new L33tSlider(0, 1000, 100, 0, Horizontal, toolBar); + m_slider=new L33tSlider(0, 1000, 100, 0,Qt::Horizontal, toolBar); m_slider->setMinimumWidth(10); toolBar->insertWidget(id, 10, m_slider, index ); @@ -115,12 +115,12 @@ return; /* if (pos == KToolBar::Left || pos == KToolBar::Right) { - m_slider->setOrientation(Vertical); + m_slider->setOrientationVertical); m_slider->setFixedWidth(m_slider->height()); } else { - m_slider->setOrientation(Horizontal); + m_slider->setOrientationHorizontal); m_slider->resize(m_slider->height(), m_slider->height()); } */ diff --git a/kaboodle/controls.h b/kaboodle/controls.h index c89ee8d5..19b11fde 100644 --- a/kaboodle/controls.h +++ b/kaboodle/controls.h @@ -40,14 +40,15 @@ namespace Kaboodle * A slider that can be moved around while being * changed internally **/ -class L33tSlider : public QSlider +class L33tSlider : public TQSlider { Q_OBJECT + TQ_OBJECT public: - L33tSlider(TQWidget * parent, const char * name=0); - L33tSlider(Orientation, TQWidget * parent, const char * name=0); + L33tSlider(TQWidget * tqparent, const char * name=0); + L33tSlider(Qt::Orientation, TQWidget * tqparent, const char * name=0); L33tSlider(int minValue, int maxValue, int pageStep, int value, - Orientation, TQWidget * parent, const char * name=0); + Qt::Orientation, TQWidget * tqparent, const char * name=0); bool currentlyPressed() const; signals: @@ -73,9 +74,10 @@ private: class SliderAction : public KAction { Q_OBJECT + TQ_OBJECT public: SliderAction(const TQString& text, int accel, const TQObject *receiver, - const char *member, TQObject* parent, const char* name ); + const char *member, TQObject* tqparent, const char* name ); virtual int plug( TQWidget *w, int index = -1 ); virtual void unplug( TQWidget *w ); TQSlider* slider() const { return m_slider; } diff --git a/kaboodle/engine.cpp b/kaboodle/engine.cpp index 5909dbcd..f103ca19 100644 --- a/kaboodle/engine.cpp +++ b/kaboodle/engine.cpp @@ -71,8 +71,8 @@ public: KURL file; }; -Kaboodle::Engine::Engine(TQObject *parent) - : TQObject(parent) +Kaboodle::Engine::Engine(TQObject *tqparent) + : TQObject(tqparent) , d(new EnginePrivate) { } diff --git a/kaboodle/engine.h b/kaboodle/engine.h index c8001e56..5a1b51b3 100644 --- a/kaboodle/engine.h +++ b/kaboodle/engine.h @@ -42,12 +42,13 @@ namespace Kaboodle * Does almost everything related to multimedia. * Most interfacing should be done with Player **/ -class Engine : public QObject +class Engine : public TQObject { Q_OBJECT + TQ_OBJECT public: - Engine(TQObject *parent=0); + Engine(TQObject *tqparent=0); ~Engine(); Arts::PlayObject playObject() const; diff --git a/kaboodle/kaboodle_factory.cpp b/kaboodle/kaboodle_factory.cpp index 99302702..0b842d53 100644 --- a/kaboodle/kaboodle_factory.cpp +++ b/kaboodle/kaboodle_factory.cpp @@ -42,15 +42,15 @@ Kaboodle::KaboodleFactory::~KaboodleFactory() s_instance = 0; } -KParts::Part *Kaboodle::KaboodleFactory::createPartObject(TQWidget *widgetParent, const char *widgetName, TQObject *parent, const char *name, const char *className, const TQStringList &) +KParts::Part *Kaboodle::KaboodleFactory::createPartObject(TQWidget *widgetParent, const char *widgetName, TQObject *tqparent, const char *name, const char *className, const TQStringList &) { if(className == TQString("KMediaPlayer/Engine")) { - return new Player(parent, name); + return new Player(tqparent, name); } else { - return new Player(widgetParent, widgetName, parent, name); + return new Player(widgetParent, widgetName, tqparent, name); } } diff --git a/kaboodle/kaboodle_factory.h b/kaboodle/kaboodle_factory.h index 415876d5..46e02af6 100644 --- a/kaboodle/kaboodle_factory.h +++ b/kaboodle/kaboodle_factory.h @@ -35,12 +35,13 @@ class Player; class KaboodleFactory : public KParts::Factory { Q_OBJECT + TQ_OBJECT public: KaboodleFactory(); virtual ~KaboodleFactory(); - virtual KParts::Part *createPartObject(TQWidget *widgetParent, const char *widgetName, TQObject *parent = 0, const char *name = 0, const char *classname = "TQObject", const TQStringList &args = TQStringList()); + virtual KParts::Part *createPartObject(TQWidget *widgetParent, const char *widgetName, TQObject *tqparent = 0, const char *name = 0, const char *classname = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList()); static const KAboutData *aboutData(); static KInstance *instance(); diff --git a/kaboodle/kaboodleapp.h b/kaboodle/kaboodleapp.h index 92073c96..8f61b234 100644 --- a/kaboodle/kaboodleapp.h +++ b/kaboodle/kaboodleapp.h @@ -33,6 +33,7 @@ class UserInterface; class KaboodleApp : public KApplication { Q_OBJECT + TQ_OBJECT public: KaboodleApp(); diff --git a/kaboodle/main.cpp b/kaboodle/main.cpp index 943e90df..b3f4f84e 100644 --- a/kaboodle/main.cpp +++ b/kaboodle/main.cpp @@ -29,7 +29,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "kaboodle_factory.h" #include "kaboodleapp.h" -void noMessageOutput(QtMsgType, const char *) +void noMessageOutput(TQtMsgType, const char *) { } @@ -37,7 +37,7 @@ static KCmdLineOptions options[] = { { "+[URL]", I18N_NOOP("URL to open"), 0 }, #ifndef NDEBUG - { "qdebug", I18N_NOOP("Turn on Qt Debug output"), 0 }, + { "qdebug", I18N_NOOP("Turn on TQt Debug output"), 0 }, #endif KCmdLineLastOption }; @@ -49,7 +49,7 @@ int main(int argc, char **argv) #ifndef NDEBUG if(!KCmdLineArgs::parsedArgs()->isSet("qdebug")) - qInstallMsgHandler(noMessageOutput); + tqInstallMsgHandler(noMessageOutput); #endif Kaboodle::KaboodleApp::addCmdLineOptions(); diff --git a/kaboodle/player.cpp b/kaboodle/player.cpp index 70517c2d..32cc37d2 100644 --- a/kaboodle/player.cpp +++ b/kaboodle/player.cpp @@ -32,8 +32,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "player.h" #include "view.h" -Kaboodle::Player::Player(TQObject *parent, const char *name) - : KMediaPlayer::Player(parent, name) +Kaboodle::Player::Player(TQObject *tqparent, const char *name) + : KMediaPlayer::Player(tqparent, name) , engine(new Engine(this)) , widget(0) , uncompleted(true) @@ -47,8 +47,8 @@ Kaboodle::Player::Player(TQObject *parent, const char *name) } Kaboodle::Player::Player(TQWidget *widgetParent, const char *widgetName, - TQObject *parent, const char *name) - : KMediaPlayer::Player(widgetParent, widgetName, parent, name) + TQObject *tqparent, const char *name) + : KMediaPlayer::Player(widgetParent, widgetName, tqparent, name) , engine(new Engine(this)) , widget(new View(widgetParent, widgetName, this)) , uncompleted(true) @@ -244,8 +244,8 @@ void Kaboodle::Player::tickerTimeout(void) if(extension) emit setStatusBarText(i18n("Playing %1 - %2") - .arg(current.prettyURL()) - .arg(positionString() + "/" + lengthString())); + .tqarg(current.prettyURL()) + .tqarg(positionString() + "/" + lengthString())); } updateTitle(); @@ -260,8 +260,8 @@ void Kaboodle::Player::updateTitle() } } -Kaboodle::BrowserExtension::BrowserExtension(Player *parent) - : KParts::BrowserExtension(parent, "Kaboodle Browser Extension") +Kaboodle::BrowserExtension::BrowserExtension(Player *tqparent) + : KParts::BrowserExtension(tqparent, "Kaboodle Browser Extension") { } diff --git a/kaboodle/player.h b/kaboodle/player.h index 4d67abb6..ee7f1b0a 100644 --- a/kaboodle/player.h +++ b/kaboodle/player.h @@ -43,19 +43,21 @@ class View; class BrowserExtension : public KParts::BrowserExtension { Q_OBJECT + TQ_OBJECT public: - BrowserExtension(Player *parent); + BrowserExtension(Player *tqparent); }; class Player : public KMediaPlayer::Player { Q_OBJECT + TQ_OBJECT public: Player(TQWidget *widgetParent, const char *widgetName, - TQObject *parent, const char *name); - Player(TQObject *parent, const char *name); + TQObject *tqparent, const char *name); + Player(TQObject *tqparent, const char *name); virtual ~Player(); virtual bool openURL(const KURL &); diff --git a/kaboodle/userinterface.cpp b/kaboodle/userinterface.cpp index 72449fcf..5dd8bd70 100644 --- a/kaboodle/userinterface.cpp +++ b/kaboodle/userinterface.cpp @@ -48,22 +48,22 @@ #include "view.h" #include "userinterface.h" -Kaboodle::UserInterface::UserInterface(TQWidget *parent, const KURL &initialFile) - : KParts::MainWindow(parent) +Kaboodle::UserInterface::UserInterface(TQWidget *tqparent, const KURL &initialFile) + : KParts::MainWindow(tqparent) { setAcceptDrops(true); setStandardToolBarMenuEnabled(true); - KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection()); - KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection()); - KStdAction::preferences(this, TQT_SLOT(playerPreferences()), actionCollection()); - KStdAction::keyBindings( this, TQT_SLOT( slotConfigureKeys() ), actionCollection() ); + KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(fileOpen()), actionCollection()); + KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), actionCollection()); + KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(playerPreferences()), actionCollection()); + KStdAction::keyBindings( TQT_TQOBJECT(this), TQT_SLOT( slotConfigureKeys() ), actionCollection() ); - menubarAction = KStdAction::showMenubar(this, TQT_SLOT(showMenubar()), actionCollection()); - propertiesAction = new KAction(i18n("Properties"), 0, this, TQT_SLOT(properties()), actionCollection(), "properties"); + menubarAction = KStdAction::showMenubar(TQT_TQOBJECT(this), TQT_SLOT(showMenubar()), actionCollection()); + propertiesAction = new KAction(i18n("Properties"), 0, TQT_TQOBJECT(this), TQT_SLOT(properties()), actionCollection(), "properties"); propertiesAction->setEnabled(false); - part = new Player(this, "KaboodlePlayer", this, "KaboodleView"); + part = new Player(this, "KaboodlePlayer", TQT_TQOBJECT(this), "KaboodleView"); part->view()->setButtons(KMediaPlayer::View::Seeker); setCentralWidget(part->view()); @@ -109,7 +109,7 @@ Kaboodle::UserInterface::~UserInterface(void) void Kaboodle::UserInterface::fileOpen(void) { - KURL file(KFileDialog::getOpenURL(TQString::null, KDE::PlayObjectFactory::mimeTypes().join(" "), this, i18n("Select File to Play"))); + KURL file(KFileDialog::getOpenURL(TQString(), KDE::PlayObjectFactory::mimeTypes().join(" "), this, i18n("Select File to Play"))); if(file.isValid()) { part->openURL(file); diff --git a/kaboodle/userinterface.h b/kaboodle/userinterface.h index a58dfa5d..076a4eec 100644 --- a/kaboodle/userinterface.h +++ b/kaboodle/userinterface.h @@ -42,8 +42,9 @@ namespace Kaboodle class UserInterface : public KParts::MainWindow { Q_OBJECT + TQ_OBJECT public: - UserInterface(TQWidget *parent, const KURL &initialFile = KURL()); + UserInterface(TQWidget *tqparent, const KURL &initialFile = KURL()); virtual ~UserInterface(void); void load(const TQString& url); diff --git a/kaboodle/view.cpp b/kaboodle/view.cpp index eba6ff20..75171584 100644 --- a/kaboodle/view.cpp +++ b/kaboodle/view.cpp @@ -55,8 +55,8 @@ TQButton *createButton(const TQIconSet &_iconset, const TQString &_tip, TQObject } } -Kaboodle::View::View(TQWidget *parent, const char *name, Player *p) - : KMediaPlayer::View(parent, name) +Kaboodle::View::View(TQWidget *tqparent, const char *name, Player *p) + : KMediaPlayer::View(tqparent, name) , state((KMediaPlayer::Player::State)p->state()) , autoPlay(false) , quitAfterPlaying(false) @@ -77,19 +77,19 @@ Kaboodle::View::View(TQWidget *parent, const char *name, Player *p) connect(video, TQT_SIGNAL(mouseButtonDoubleClick(const TQPoint&, int)), this, TQT_SLOT(slotDblClick(const TQPoint &, int) ) ) ; TQWidget *sliderBox = new TQWidget(box); - sliderBox->setFocusPolicy(TQWidget::ClickFocus); + sliderBox->setFocusPolicy(TQ_ClickFocus); sliderBox->setAcceptDrops(true); - TQHBoxLayout *layout = new TQHBoxLayout(sliderBox); - layout->setSpacing(KDialog::spacingHint()); - layout->setMargin(0); - layout->setAutoAdd(true); + TQHBoxLayout *tqlayout = new TQHBoxLayout(sliderBox); + tqlayout->setSpacing(KDialog::spacingHint()); + tqlayout->setMargin(0); + tqlayout->setAutoAdd(true); playButton = createButton(BarIconSet("1rightarrow"), i18n("Play"), player, TQT_SLOT(play()), sliderBox); pauseButton = createButton(BarIconSet("player_pause"), i18n("Pause"), player, TQT_SLOT(pause()), sliderBox); stopButton = createButton(BarIconSet("player_stop"), i18n("Stop"), player, TQT_SLOT(stop()), sliderBox); - slider = new L33tSlider(0, 1000, 10, 0, L33tSlider::Horizontal, sliderBox); + slider = new L33tSlider(0, 1000, 10, 0, Qt::Horizontal, sliderBox); slider->setTickmarks(TQSlider::NoMarks); slider->show(); @@ -99,7 +99,7 @@ Kaboodle::View::View(TQWidget *parent, const char *name, Player *p) labelFont.setBold(true); TQFontMetrics labelFontMetrics(labelFont); elapsedLabel->setFont(labelFont); - elapsedLabel->setAlignment(AlignCenter | AlignVCenter | ExpandTabs); + elapsedLabel->tqsetAlignment(AlignCenter | AlignVCenter | ExpandTabs); elapsedLabel->setFixedHeight(labelFontMetrics.height()); elapsedLabel->setMinimumWidth(labelFontMetrics.width("00:00")); diff --git a/kaboodle/view.h b/kaboodle/view.h index 4e2f3edf..5aa2a6b7 100644 --- a/kaboodle/view.h +++ b/kaboodle/view.h @@ -45,9 +45,10 @@ namespace Kaboodle class View : public KMediaPlayer::View { Q_OBJECT + TQ_OBJECT public: - View(TQWidget *parent, const char *name, Player *player); + View(TQWidget *tqparent, const char *name, Player *player); virtual ~View(void); /** diff --git a/kaudiocreator/cdconfig.ui b/kaudiocreator/cdconfig.ui index 3c688699..d437181f 100644 --- a/kaudiocreator/cdconfig.ui +++ b/kaudiocreator/cdconfig.ui @@ -1,10 +1,10 @@ CdConfig - + CdConfig - + 0 0 @@ -19,7 +19,7 @@ 0 - + kcfg_performCDDBauto @@ -27,7 +27,7 @@ &Perform CDDB lookup automatically - + kcfg_autoRip @@ -45,7 +45,7 @@ Expanding - + 20 20 @@ -54,8 +54,8 @@ - + configureAudioCD() - - + + diff --git a/kaudiocreator/encodefile.ui b/kaudiocreator/encodefile.ui index 21163f87..b6395f6d 100644 --- a/kaudiocreator/encodefile.ui +++ b/kaudiocreator/encodefile.ui @@ -4,7 +4,7 @@ EncodeFile - + 0 0 @@ -19,15 +19,15 @@ unnamed - + - layout5 + tqlayout5 unnamed - + textLabel1 @@ -48,7 +48,7 @@ - + groupBox2 @@ -59,7 +59,7 @@ unnamed - + track @@ -67,70 +67,70 @@ 1 - + textLabel4 Track: - + AlignVCenter|AlignRight - + textLabel5 Comment: - + AlignVCenter|AlignRight - + track_comment - + textLabel3 Title: - + AlignVCenter|AlignRight - + textLabel2 Artist: - + AlignVCenter|AlignRight - + track_title - + track_artist - + groupBox1 @@ -141,43 +141,43 @@ unnamed - + artist - + textLabel6 Artist: - + AlignVCenter|AlignRight - + textLabel7 Album: - + AlignVCenter|AlignRight - + album - + year @@ -185,49 +185,49 @@ 99999 - + textLabel8 Year: - + AlignVCenter|AlignRight - + textLabel9 Genre: - + AlignVCenter|AlignRight - + genre - + textLabel10 Comment: - + AlignVCenter|AlignRight - + comment @@ -244,7 +244,7 @@ Expanding - + 20 16 @@ -265,9 +265,9 @@ Horizontal - + - layout4 + tqlayout4 @@ -283,14 +283,14 @@ Expanding - + 121 20 - + encodeButton @@ -301,7 +301,7 @@ &Encode File - + closeButton @@ -335,7 +335,7 @@ encodeButton closeButton - + kdialog.h kurlrequester.h diff --git a/kaudiocreator/encodefileimp.cpp b/kaudiocreator/encodefileimp.cpp index 59f32405..d4aae9a3 100644 --- a/kaudiocreator/encodefileimp.cpp +++ b/kaudiocreator/encodefileimp.cpp @@ -27,8 +27,8 @@ #include #include -EncodeFileImp::EncodeFileImp(TQWidget* parent, - const char* name) : EncodeFile(parent, name), m_genres(KCDDB::Genres()) { +EncodeFileImp::EncodeFileImp(TQWidget* tqparent, + const char* name) : EncodeFile(tqparent, name), m_genres(KCDDB::Genres()) { genre->insertStringList(m_genres.i18nList()); // Specify to only accept wav files file->setFilter("*.wav|Wav Files"); @@ -70,7 +70,7 @@ void EncodeFileImp::encode(){ int counter(1); KMessageBox::information(this, i18n("%1 Job(s) have been started. You can watch their progress in the " \ - "jobs section.").arg(counter), + "jobs section.").tqarg(counter), i18n("Jobs have started"), i18n("Jobs have started")); } diff --git a/kaudiocreator/encodefileimp.h b/kaudiocreator/encodefileimp.h index e0e6eaa7..de556417 100644 --- a/kaudiocreator/encodefileimp.h +++ b/kaudiocreator/encodefileimp.h @@ -33,13 +33,14 @@ class Job; class EncodeFileImp : public EncodeFile { Q_OBJECT + TQ_OBJECT signals: // Start encoding this wav file void startJob(Job *newJob); public: - EncodeFileImp(TQWidget* parent = 0, const char* name = 0); + EncodeFileImp(TQWidget* tqparent = 0, const char* name = 0); protected slots: // Encode button diff --git a/kaudiocreator/encoder.cpp b/kaudiocreator/encoder.cpp index ced2fcac..a0567fbf 100644 --- a/kaudiocreator/encoder.cpp +++ b/kaudiocreator/encoder.cpp @@ -37,7 +37,7 @@ /** * Constructor, load settings. */ -Encoder::Encoder( TQObject* parent, const char* name):TQObject(parent,name),reportCount(0) { +Encoder::Encoder( TQObject* tqparent, const char* name):TQObject(tqparent,name),reportCount(0) { loadSettings(); } @@ -53,11 +53,11 @@ void Encoder::loadSettings() { EncoderPrefs* Encoder::loadEncoder( int encoder ){ EncoderPrefs* prefs; - TQString currentEncoderGroup = TQString("Encoder_%1").arg(encoder); + TQString currentEncoderGroup = TQString("Encoder_%1").tqarg(encoder); prefs = EncoderPrefs::prefs(currentEncoderGroup); if ( !EncoderPrefs::hasPrefs(currentEncoderGroup) ) { KMessageBox::sorry(0, i18n("No encoder has been selected.\nPlease select an encoder in the configuration."), i18n("No Encoder Selected")); - prefs->setCommandLine(TQString::null); + prefs->setCommandLine(TQString()); } return prefs; @@ -132,8 +132,8 @@ void Encoder::removeJob(int id ) { * @param job the job to encode. */ void Encoder::encodeWav(Job *job ) { - emit(addJob(job, i18n("Encoding (%1): %2 - %3").arg(loadEncoder(job->encoder)->extension()) - .arg(job->track_artist).arg(job->track_title))); + emit(addJob(job, i18n("Encoding (%1): %2 - %3").tqarg(loadEncoder(job->encoder)->extension()) + .tqarg(job->track_artist).tqarg(job->track_title))); pendingJobs.append(job); tendToNewJobs(); } @@ -160,7 +160,7 @@ void Encoder::tendToNewJobs() { EncoderPrefs* prefs = loadEncoder(job->encoder); TQString desiredFile = Prefs::fileFormat(); - desiredFile.replace( TQRegExp("~"), TQDir::homeDirPath() ); + desiredFile.tqreplace( TQRegExp("~"), TQDir::homeDirPath() ); { TQMap map; map.insert("extension", prefs->extension()); @@ -185,7 +185,7 @@ void Encoder::tendToNewJobs() { } } - int lastSlash = desiredFile.findRev('/',-1); + int lastSlash = desiredFile.tqfindRev('/',-1); if ( lastSlash == -1 || !(KStandardDirs::makeDir( desiredFile.mid(0,lastSlash), 0775)) ) { KMessageBox::sorry(0, i18n("Cannot place file, unable to make directories."), i18n("Encoding Failed")); @@ -211,7 +211,7 @@ void Encoder::tendToNewJobs() { KShellProcess *proc = new KShellProcess(); proc->setPriority(Prefs::niceLevel()); - *proc << TQFile::encodeName(command); + *proc << TQFile::encodeName(command).data(); connect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int )), this, TQT_SLOT(receivedThreadOutput(KProcess *, char *, int ))); connect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int )), @@ -225,7 +225,7 @@ void Encoder::tendToNewJobs() { } /** - * We have received some output from a thread. See if it contains %. + * We have received some output from a thread. See if it tqcontains %. * @param proc the process that has new output. * @param buffer the output from the process * @param buflen the length of the buffer. @@ -235,7 +235,7 @@ void Encoder::receivedThreadOutput(KProcess *process, char *buffer, int length ) kdDebug(60002) << buffer << endl; // Make sure we have a job to send an update too. - if(jobs.find((KShellProcess*)process) == jobs.end()){ + if(jobs.tqfind((KShellProcess*)process) == jobs.end()){ kdDebug(60002) << "Encoder::receivedThreadOutput Job doesn't exists. Line: " << __LINE__ << endl; return; } @@ -247,17 +247,17 @@ void Encoder::receivedThreadOutput(KProcess *process, char *buffer, int length ) // Make sure the output string has a % symble in it. TQString output = TQString(buffer).mid(0,length); - if ( output.find('%') == -1 && reportCount < 5 ) { + if ( output.tqfind('%') == -1 && reportCount < 5 ) { kdDebug(60002) << "No \'%%\' in output. Report as bug w/encoder options if progressbar doesn't fill." << endl; reportCount++; return; } - //qDebug(TQString("Pre cropped: %1").arg(output).latin1()); - output = output.mid(output.find('%')-loadEncoder(job->encoder)->percentLength(),2); - //qDebug(TQString("Post cropped: %1").arg(output).latin1()); + //qDebug(TQString("Pre cropped: %1").tqarg(output).latin1()); + output = output.mid(output.tqfind('%')-loadEncoder(job->encoder)->percentLength(),2); + //qDebug(TQString("Post cropped: %1").tqarg(output).latin1()); bool conversionSuccessfull = false; int percent = output.toInt(&conversionSuccessfull); - //qDebug(TQString("number: %1").arg(percent).latin1()); + //qDebug(TQString("number: %1").tqarg(percent).latin1()); if ( percent >= 0 && percent < 100 && conversionSuccessfull ) { emit(updateProgress(job->id, percent)); } @@ -284,7 +284,7 @@ void Encoder::jobDone(KProcess *process ) { bool showDebugBox = false; if ( process->exitStatus() == 127 ) { - KMessageBox::sorry(0, i18n("The selected encoder was not found.\nThe wav file has been removed. Command was: %1").arg(job->errorString), i18n("Encoding Failed")); + KMessageBox::sorry(0, i18n("The selected encoder was not found.\nThe wav file has been removed. Command was: %1").tqarg(job->errorString), i18n("Encoding Failed")); emit(updateProgress(job->id, -1)); } else if ( TQFile::exists(job->newLocation) ) { diff --git a/kaudiocreator/encoder.h b/kaudiocreator/encoder.h index 24ebcafc..1209c71d 100644 --- a/kaudiocreator/encoder.h +++ b/kaudiocreator/encoder.h @@ -33,6 +33,7 @@ class EncoderPrefs; class Encoder : public TQObject { Q_OBJECT + TQ_OBJECT signals: void addJob(Job *job, const TQString &name); @@ -40,7 +41,7 @@ signals: void jobsChanged(); public: - Encoder( TQObject* parent = 0, const char* name = 0); + Encoder( TQObject* tqparent = 0, const char* name = 0); ~Encoder(); int activeJobCount(); int pendingJobCount(); diff --git a/kaudiocreator/encoderconfig.ui b/kaudiocreator/encoderconfig.ui index edab93fb..1c7d70f6 100644 --- a/kaudiocreator/encoderconfig.ui +++ b/kaudiocreator/encoderconfig.ui @@ -1,10 +1,10 @@ EncoderConfig - + EncoderConfig - + 0 0 @@ -19,12 +19,12 @@ 0 - + kcfg_currentEncoder - + addEncoder @@ -32,7 +32,7 @@ &Add... - + removeEncoder @@ -40,7 +40,7 @@ &Remove - + configureEncoder @@ -62,7 +62,7 @@ Horizontal - + GroupBox3 @@ -79,7 +79,7 @@ 6 - + TextLabel2_2 @@ -87,12 +87,12 @@ Location: - + kcfg_fileFormat - + encoderWizardButton @@ -102,7 +102,7 @@ - + TextLabel1_2 @@ -113,7 +113,7 @@ kcfg_numberOfCpus - + kcfg_numberOfCpus @@ -131,22 +131,22 @@ Expanding - + 20 20 - + - layout2 + tqlayout2 unnamed - + currentEncoderText @@ -154,7 +154,7 @@ Current encoder: - + currentEncoderName @@ -188,14 +188,14 @@ Expanding - + 20 30 - + groupBox3 @@ -206,7 +206,7 @@ unnamed - + kcfg_NiceLevel @@ -226,7 +226,7 @@ NoMarks - + textLabel2 @@ -234,25 +234,25 @@ Highest - + textLabel3 Lowest - + AlignVCenter|AlignRight - + textLabel4 Normal - + AlignCenter @@ -286,8 +286,8 @@ encoderconfig.ui.h - + encoderWizard() - - + + diff --git a/kaudiocreator/encoderconfig.ui.h b/kaudiocreator/encoderconfig.ui.h index e24f9535..7650b239 100644 --- a/kaudiocreator/encoderconfig.ui.h +++ b/kaudiocreator/encoderconfig.ui.h @@ -2,7 +2,7 @@ ** ui.h extension file, included from the uic-generated form implementation. ** ** If you wish to add, delete or rename functions or slots use -** Qt Designer which will update this file, preserving your code. Create an +** TQt Designer which will update this file, preserving your code. Create an ** init() function in place of a constructor, and a destroy() function in ** place of a destructor. *****************************************************************************/ diff --git a/kaudiocreator/encoderconfigimp.cpp b/kaudiocreator/encoderconfigimp.cpp index e49dd6a9..4455781c 100644 --- a/kaudiocreator/encoderconfigimp.cpp +++ b/kaudiocreator/encoderconfigimp.cpp @@ -32,8 +32,8 @@ /** * Constructor. */ -EncoderConfigImp::EncoderConfigImp( TQWidget* parent, const char* name) : - EncoderConfig (parent, name) { +EncoderConfigImp::EncoderConfigImp( TQWidget* tqparent, const char* name) : + EncoderConfig (tqparent, name) { connect(addEncoder, TQT_SIGNAL(clicked()), this, TQT_SLOT(addEncoderSlot())); connect(removeEncoder, TQT_SIGNAL(clicked()), this, TQT_SLOT(removeEncoderSlot())); connect(configureEncoder, TQT_SIGNAL(clicked()), this, TQT_SLOT(configureEncoderSlot())); @@ -93,7 +93,7 @@ void EncoderConfigImp::loadEncoderList(){ int lastKnownEncoder = Prefs::lastKnownEncoder(); lastKnownEncoder++; for( int i=0; i<=lastKnownEncoder; i++ ){ - TQString currentGroup = TQString("Encoder_%1").arg(i); + TQString currentGroup = TQString("Encoder_%1").tqarg(i); if(EncoderPrefs::hasPrefs(currentGroup)){ lastEncoder = i; EncoderPrefs *encPrefs = EncoderPrefs::prefs(currentGroup); @@ -123,7 +123,7 @@ void EncoderConfigImp::addEncoderSlot(){ uint number = 0; TQString groupName; while(!foundEmptyGroup){ - groupName = TQString("Encoder_%1").arg(number); + groupName = TQString("Encoder_%1").tqarg(number); if(!EncoderPrefs::hasPrefs(groupName)) foundEmptyGroup = true; else @@ -242,7 +242,7 @@ void EncoderConfigImp::updateEncoder(const char *dialogName){ if(newName == encoderName) return; - TQListBoxItem *item = kcfg_currentEncoder->findItem(encoderName); + TQListBoxItem *item = kcfg_currentEncoder->tqfindItem(encoderName); if(!item) return; kcfg_currentEncoder->changeItem(newName, kcfg_currentEncoder->index(item)); @@ -260,7 +260,7 @@ EncoderPrefs *EncoderPrefs::prefs(const TQString &groupName) m_prefs = new TQDict(); m_prefs->setAutoDelete(true); } - EncoderPrefs *encPrefs = m_prefs->find(groupName); + EncoderPrefs *encPrefs = m_prefs->tqfind(groupName); if (encPrefs) return encPrefs; diff --git a/kaudiocreator/encoderconfigimp.h b/kaudiocreator/encoderconfigimp.h index a72e138f..86fbf5a4 100644 --- a/kaudiocreator/encoderconfigimp.h +++ b/kaudiocreator/encoderconfigimp.h @@ -32,12 +32,13 @@ class EncoderConfigImp : public EncoderConfig { Q_OBJECT + TQ_OBJECT signals: void encoderUpdated(); public: - EncoderConfigImp( TQWidget* parent = 0, const char* name = 0); + EncoderConfigImp( TQWidget* tqparent = 0, const char* name = 0); private slots: void addEncoderSlot(); diff --git a/kaudiocreator/encoderedit.ui b/kaudiocreator/encoderedit.ui index 6a0fa7f0..e45c977a 100644 --- a/kaudiocreator/encoderedit.ui +++ b/kaudiocreator/encoderedit.ui @@ -1,10 +1,10 @@ EncoderEdit - + EncoderEdit - + 0 0 @@ -16,7 +16,7 @@ unnamed - + kcfg_commandLine @@ -24,11 +24,11 @@ app.exe %f %o - + kcfg_encoderName - + 320 0 @@ -38,7 +38,7 @@ Unknown Encoder - + kcfg_extension @@ -46,7 +46,7 @@ wav - + textLabel5 @@ -54,7 +54,7 @@ Extension: - + textLabel6 @@ -62,7 +62,7 @@ Command line: - + textLabel4 @@ -80,7 +80,7 @@ Expanding - + 20 16 @@ -94,5 +94,5 @@ kcfg_commandLine kcfg_extension - + diff --git a/kaudiocreator/encoderoutput.ui b/kaudiocreator/encoderoutput.ui index 1cc26be4..85da4902 100644 --- a/kaudiocreator/encoderoutput.ui +++ b/kaudiocreator/encoderoutput.ui @@ -1,10 +1,10 @@ EncoderOutput - + EncoderOutput - + 0 0 @@ -22,7 +22,7 @@ unnamed - + output @@ -39,7 +39,7 @@ WidgetWidth - + Layout1 @@ -63,14 +63,14 @@ Expanding - + 20 20 - + buttonOk @@ -99,5 +99,5 @@ accept() - + diff --git a/kaudiocreator/general.ui b/kaudiocreator/general.ui index f20fea5b..2fa79a2a 100644 --- a/kaudiocreator/general.ui +++ b/kaudiocreator/general.ui @@ -1,10 +1,10 @@ General - + General - + 0 0 @@ -22,7 +22,7 @@ 0 - + kcfg_removeCompletedJobs @@ -30,7 +30,7 @@ &Automatically remove jobs when finished - + kcfg_promptIfIncompleteInfo @@ -38,7 +38,7 @@ Prompt if information is not complete - + groupBox2 @@ -49,7 +49,7 @@ unnamed - + textLabel2 @@ -57,7 +57,7 @@ Selection: - + textLabel1 @@ -65,11 +65,11 @@ Regular expression used on all file names. For example using selection " " and replace with "_" would replace all the spaces with underlines. - + WordBreak|AlignVCenter - + inputlabel @@ -77,7 +77,7 @@ Input: - + outputLabel @@ -85,7 +85,7 @@ Output: - + exampleLabel @@ -93,7 +93,7 @@ Example - + exampleOutput @@ -101,7 +101,7 @@ Cool artist - example audio file.wav - + example @@ -109,17 +109,17 @@ Cool artist - example audio file.wav - + kcfg_replaceInput - + kcfg_replaceOutput - + textLabel3 @@ -143,7 +143,7 @@ - + kcfg_seperateMultiArtist @@ -160,7 +160,7 @@ unnamed - + buttonGroup2 @@ -171,7 +171,7 @@ unnamed - + kcfg_format_titleArtist @@ -179,7 +179,7 @@ Title - Artist - + kcfg_format_artistTitle @@ -192,15 +192,15 @@ - + - layout1 + tqlayout1 unnamed - + delimiterLabel @@ -208,7 +208,7 @@ Delimiter: - + genArtistLabel @@ -216,12 +216,12 @@ Generic artist: - + kcfg_delimiter - + kcfg_genericArtist @@ -240,7 +240,7 @@ Expanding - + 20 16 @@ -278,8 +278,8 @@ general.ui.h - + updateExample() - - + + diff --git a/kaudiocreator/general.ui.h b/kaudiocreator/general.ui.h index 244219ab..98c00de3 100644 --- a/kaudiocreator/general.ui.h +++ b/kaudiocreator/general.ui.h @@ -2,7 +2,7 @@ ** ui.h extension file, included from the uic-generated form implementation. ** ** If you wish to add, delete or rename functions or slots use -** Qt Designer which will update this file, preserving your code. Create an +** TQt Designer which will update this file, preserving your code. Create an ** init() function in place of a constructor, and a destroy() function in ** place of a destructor. *****************************************************************************/ @@ -14,6 +14,6 @@ void General::updateExample() { TQString text = example->text(); - text.replace( TQRegExp(kcfg_replaceInput->text()), kcfg_replaceOutput->text() ); + text.tqreplace( TQRegExp(kcfg_replaceInput->text()), kcfg_replaceOutput->text() ); exampleOutput->setText(text); } diff --git a/kaudiocreator/infodialog.ui b/kaudiocreator/infodialog.ui index a488e3dc..39109dfd 100644 --- a/kaudiocreator/infodialog.ui +++ b/kaudiocreator/infodialog.ui @@ -1,10 +1,10 @@ AlbumEditor - + AlbumEditor - + 0 0 @@ -28,7 +28,7 @@ 6 - + groupBox2 @@ -39,59 +39,59 @@ unnamed - + textLabel2 Comment: - + AlignVCenter|AlignRight - + track_comment - + trackLabel Title: - + AlignVCenter|AlignRight - + track_title - + textLabel3 Artist: - + AlignVCenter|AlignRight - + track_artist - + groupBox1 @@ -102,43 +102,43 @@ unnamed - + artist - + TextLabel5 Artist: - + AlignVCenter|AlignRight - + TextLabel6 Album: - + AlignVCenter|AlignRight - + album - + year @@ -146,49 +146,49 @@ 99999 - + TextLabel7 Year: - + AlignVCenter|AlignRight - + TextLabel1 Genre: - + AlignVCenter|AlignRight - + genre - + textLabel1 Comment: - + AlignVCenter|AlignRight - + comment @@ -205,22 +205,22 @@ Expanding - + 20 100 - + - layout2 + tqlayout2 unnamed - + buttonPrevious @@ -228,7 +228,7 @@ &Previous Track - + buttonNext @@ -236,7 +236,7 @@ &Next Track - + buttonOk @@ -250,7 +250,7 @@ true - + buttonCancel @@ -293,5 +293,5 @@ buttonOk buttonCancel - + diff --git a/kaudiocreator/job.cpp b/kaudiocreator/job.cpp index 740aeb5e..c4950377 100644 --- a/kaudiocreator/job.cpp +++ b/kaudiocreator/job.cpp @@ -21,7 +21,7 @@ #include /** - * A helper function to replace %X with the stuff in the album. + * A helper function to tqreplace %X with the stuff in the album. * if quote is true then put "" around the %X */ TQString Job::replaceSpecialChars(const TQString &string, bool quote, TQMap _map){ @@ -45,14 +45,14 @@ TQString Job::replaceSpecialChars(const TQString &string, bool quote, TQMap JobQue - + JobQue - + 0 0 @@ -19,7 +19,7 @@ 0 - + removeAll @@ -27,7 +27,7 @@ Remove All Jobs - + removeSelected @@ -45,14 +45,14 @@ Expanding - + 16 20 - + Job @@ -99,20 +99,20 @@ LastColumn - + queLabel No jobs are in the queue - + AlignCenter - + removeDoneJobs @@ -128,5 +128,5 @@ removeAll removeSelected - + diff --git a/kaudiocreator/jobqueimp.cpp b/kaudiocreator/jobqueimp.cpp index 81c0431d..fc580a29 100644 --- a/kaudiocreator/jobqueimp.cpp +++ b/kaudiocreator/jobqueimp.cpp @@ -46,11 +46,11 @@ /** * Constructor, set up signals. - * @param parent - parent widget + * @param tqparent - tqparent widget * @param name - widget name */ -JobQueImp::JobQueImp( TQWidget* parent, const char* name) : - JobQue(parent,name),highestNumber(DEFAULT_HIGHEST_NUMBER), currentId(0){ +JobQueImp::JobQueImp( TQWidget* tqparent, const char* name) : + JobQue(tqparent,name),highestNumber(DEFAULT_HIGHEST_NUMBER), currentId(0){ connect(removeSelected,TQT_SIGNAL(clicked()), this, TQT_SLOT( removeSelectedJob())); connect(removeAll, TQT_SIGNAL(clicked()), this, TQT_SLOT(removeAllJobs())); connect(removeDoneJobs, TQT_SIGNAL(clicked()), this, TQT_SLOT(clearDoneJobs())); @@ -64,7 +64,7 @@ JobQueImp::JobQueImp( TQWidget* parent, const char* name) : */ TQString JobQueImp::getStringFromNumber(int number){ if(number > highestNumber){ - int diff = TQString("%1").arg(number).length() - TQString("%1").arg(highestNumber).length(); + int diff = TQString("%1").tqarg(number).length() - TQString("%1").tqarg(highestNumber).length(); highestNumber = number; if(diff > 0){ // We have to update all of the cells. @@ -77,7 +77,7 @@ TQString JobQueImp::getStringFromNumber(int number){ } TQString buffer = ""; - uint newLength = TQString("%1").arg(highestNumber).length() - TQString("%1").arg(number).length(); + uint newLength = TQString("%1").tqarg(highestNumber).length() - TQString("%1").tqarg(number).length(); for(uint i=0; i < newLength; i++) buffer += "0"; return buffer; @@ -92,9 +92,9 @@ void JobQueImp::addJob(Job*job, const TQString &name ){ if(!job) return; job->id = ++currentId; - QueListViewItem *currentItem = new QueListViewItem(todoQue, TQString("%1%2").arg(getStringFromNumber(currentId)).arg(currentId), "0", name); + QueListViewItem *currentItem = new QueListViewItem(todoQue, TQString("%1%2").tqarg(getStringFromNumber(currentId)).tqarg(currentId), "0", name); currentItem->setPixmap(ICON_LOC, SmallIcon("player_pause", currentItem->height()-2)); - queLabel->setText(i18n("Number of jobs in the queue: %1").arg(todoQue->childCount())); + queLabel->setText(i18n("Number of jobs in the queue: %1").tqarg(todoQue->childCount())); } /** @@ -106,7 +106,7 @@ void JobQueImp::updateProgress(int id, int progress){ int currentJobCount = numberOfJobsNotFinished(); QueListViewItem * currentItem = (QueListViewItem*)todoQue->firstChild(); TQString buffer = getStringFromNumber(id); - buffer += TQString("%1").arg(id); + buffer += TQString("%1").tqarg(id); // Find the current item while( currentItem != NULL ){ @@ -124,7 +124,7 @@ void JobQueImp::updateProgress(int id, int progress){ return; currentItem->percentDone = progress; - currentItem->repaint(); + currentItem->tqrepaint(); // Update the icon if needed if(progress > 0 && progress < 100 && !currentItem->progressing ){ @@ -158,7 +158,7 @@ bool JobQueImp::removeJob(QueListViewItem *item, bool kill, bool prompt){ if(!item) return false; - if(item->percentDone < 100 && item->percentDone > -1 && (prompt && KMessageBox::questionYesNo(this, i18n("KAudioCreator has not finished %1. Remove anyway?").arg(item->text(HEADER_DESCRIPTION)), i18n("Unfinished Job in Queue"), KStdGuiItem::del(), i18n("Keep")) + if(item->percentDone < 100 && item->percentDone > -1 && (prompt && KMessageBox::questionYesNo(this, i18n("KAudioCreator has not finished %1. Remove anyway?").tqarg(item->text(HEADER_DESCRIPTION)), i18n("Unfinished Job in Queue"), KStdGuiItem::del(), i18n("Keep")) == KMessageBox::No )) return false; @@ -180,7 +180,7 @@ bool JobQueImp::removeJob(QueListViewItem *item, bool kill, bool prompt){ currentId = 0; } else - queLabel->setText(i18n("Number of jobs in the queue: %1").arg(todoQue->childCount())); + queLabel->setText(i18n("Number of jobs in the queue: %1").tqarg(todoQue->childCount())); return true; } @@ -248,7 +248,7 @@ void JobQueImp::clearDoneJobs(){ currentId = 0; } else - queLabel->setText(i18n("Number of jobs in the queue: %1").arg(todoQue->childCount())); + queLabel->setText(i18n("Number of jobs in the queue: %1").tqarg(todoQue->childCount())); } /** @@ -270,7 +270,7 @@ int JobQueImp::numberOfJobsNotFinished(){ } /** - * The repaint function overloaded so that we can have a built in progressbar. + * The tqrepaint function overloaded so that we can have a built in progressbar. */ void QueListViewItem::paintCell (TQPainter * p,const TQColorGroup &cg,int column, int width,int align){ @@ -303,7 +303,7 @@ void QueListViewItem::paintCell (TQPainter * p,const TQColorGroup &cg,int column /** * Header for built in treelist item so we can have a progress bar in them. */ -QueListViewItem::QueListViewItem(TQListView *parent, const TQString id, const TQString p , const TQString name, const TQString d, const TQString e) : TQListViewItem(parent, id, p, name,d,e), percentDone(0), progressing(false) { +QueListViewItem::QueListViewItem(TQListView *tqparent, const TQString id, const TQString p , const TQString name, const TQString d, const TQString e) : TQListViewItem(tqparent, id, p, name,d,e), percentDone(0), progressing(false) { } #include "jobqueimp.moc" diff --git a/kaudiocreator/jobqueimp.h b/kaudiocreator/jobqueimp.h index 133a020a..32735a3a 100644 --- a/kaudiocreator/jobqueimp.h +++ b/kaudiocreator/jobqueimp.h @@ -18,8 +18,8 @@ * Boston, MA 02110-1301, USA. */ -#ifndef JOBQUEIMP_H -#define JOBQUEIMP_H +#ifndef JOBTQUEIMP_H +#define JOBTQUEIMP_H #include "jobque.h" #include @@ -49,12 +49,13 @@ public: class JobQueImp : public JobQue { Q_OBJECT + TQ_OBJECT signals: void removeJob( int idNumber ); public: - JobQueImp( TQWidget* parent = 0, const char* name = 0 ); + JobQueImp( TQWidget* tqparent = 0, const char* name = 0 ); int numberOfJobsNotFinished(); public slots: diff --git a/kaudiocreator/kaudiocreator.cpp b/kaudiocreator/kaudiocreator.cpp index 6ac77beb..946b57dc 100644 --- a/kaudiocreator/kaudiocreator.cpp +++ b/kaudiocreator/kaudiocreator.cpp @@ -49,32 +49,32 @@ /** * Constructor. Connect all of the object and the job control. */ -KAudioCreator::KAudioCreator( TQWidget* parent, const char* name) : - KMainWindow(parent, name) +KAudioCreator::KAudioCreator( TQWidget* tqparent, const char* name) : + KMainWindow(tqparent, name) { janusWidget = new KJanusWidget(this, name, KJanusWidget::Tabbed); setCentralWidget(janusWidget); - TQVBox *frame = janusWidget->addVBoxPage(i18n("&CD Tracks"), TQString::null, SmallIcon("cdaudio_unmount", 32)); + TQVBox *frame = janusWidget->addVBoxPage(i18n("&CD Tracks"), TQString(), SmallIcon("cdaudio_unmount", 32)); tracks = new TracksImp(frame, "Tracks"); - ripper = new Ripper ( frame, "Rip" ); - encoder = new Encoder( frame, "Encoder" ); + ripper = new Ripper ( TQT_TQOBJECT(frame), "Rip" ); + encoder = new Encoder( TQT_TQOBJECT(frame), "Encoder" ); - frame = janusWidget->addVBoxPage( i18n("&Jobs"), TQString::null, SmallIcon( "run", 32 ) ); + frame = janusWidget->addVBoxPage( i18n("&Jobs"), TQString(), SmallIcon( "run", 32 ) ); jobQue = new JobQueImp( frame, "Que" ); resize(500, 440); - /*KAction *eject = */new KAction( i18n("&Eject CD"), 0, tracks, + /*KAction *eject = */new KAction( i18n("&Eject CD"), 0, TQT_TQOBJECT(tracks), TQT_SLOT( eject() ), actionCollection(), "eject" ); - (void)new KAction( i18n("&Configure KAudioCreator..."), 0, this, + (void)new KAction( i18n("&Configure KAudioCreator..."), 0, TQT_TQOBJECT(this), TQT_SLOT( showSettings() ), actionCollection(), "configure_kaudiocreator" ); - KAction *selectAll = new KAction( i18n( "Select &All Tracks"), 0, tracks, + KAction *selectAll = new KAction( i18n( "Select &All Tracks"), 0, TQT_TQOBJECT(tracks), TQT_SLOT( selectAllTracks() ), actionCollection(), "select_all" ) ; - KAction *deselectAll = new KAction( i18n( "Deselect &All Tracks"), 0, tracks, + KAction *deselectAll = new KAction( i18n( "Deselect &All Tracks"), 0, TQT_TQOBJECT(tracks), TQT_SLOT( deselectAllTracks() ), actionCollection(), "deselect_all" ); selectAll->setEnabled( false ); deselectAll->setEnabled( false ); @@ -82,56 +82,56 @@ KAudioCreator::KAudioCreator( TQWidget* parent, const char* name) : KActionMenu *actActionMenu = new KActionMenu( i18n("Rip &Selection"), "rip", actionCollection(), "rip" ); actActionMenu->setDelayed(true); //needed for checking "all accounts" actActionMenu->setEnabled( false ); - connect( actActionMenu, TQT_SIGNAL( activated() ), tracks, TQT_SLOT( startSession() ) ); + connect( actActionMenu, TQT_SIGNAL( activated() ), TQT_TQOBJECT(tracks), TQT_SLOT( startSession() ) ); ripMenu = actActionMenu->popupMenu(); - connect( ripMenu, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( slotRipSelection(int)) ); - connect( ripMenu, TQT_SIGNAL( aboutToShow() ), this, TQT_SLOT( getRipMenu()) ); + connect( ripMenu, TQT_SIGNAL( activated(int) ), TQT_TQOBJECT(this), TQT_SLOT( slotRipSelection(int)) ); + connect( ripMenu, TQT_SIGNAL( aboutToShow() ), TQT_TQOBJECT(this), TQT_SLOT( getRipMenu()) ); - KAction *rip = new KAction( i18n( "Rip &Selection" ), 0, tracks, + KAction *rip = new KAction( i18n( "Rip &Selection" ), 0, TQT_TQOBJECT(tracks), TQT_SLOT( startSession() ), actionCollection(), "rip_selected" ); rip->setEnabled( false ); - connect( jobQue, TQT_SIGNAL( removeJob(int) ), this, TQT_SLOT( updateStatus() ) ); - connect( jobQue, TQT_SIGNAL( removeJob(int) ), ripper, TQT_SLOT( removeJob(int) ) ); - connect( jobQue, TQT_SIGNAL( removeJob(int) ), encoder, TQT_SLOT( removeJob(int)) ); + connect( jobQue, TQT_SIGNAL( removeJob(int) ), TQT_TQOBJECT(this), TQT_SLOT( updatetqStatus() ) ); + connect( jobQue, TQT_SIGNAL( removeJob(int) ), TQT_TQOBJECT(ripper), TQT_SLOT( removeJob(int) ) ); + connect( jobQue, TQT_SIGNAL( removeJob(int) ), TQT_TQOBJECT(encoder), TQT_SLOT( removeJob(int)) ); - connect( ripper, TQT_SIGNAL( updateProgress(int, int) ) , jobQue, TQT_SLOT( updateProgress(int,int) ) ); - connect( ripper, TQT_SIGNAL( addJob(Job*, const TQString &) ), jobQue, TQT_SLOT( addJob(Job*, const TQString &)) ); - connect( ripper, TQT_SIGNAL( eject(const TQString &) ) , tracks, TQT_SLOT( ejectDevice(const TQString &)) ); - connect( ripper, TQT_SIGNAL( encodeWav(Job *) ) , encoder, TQT_SLOT( encodeWav(Job *)) ); - connect( ripper, TQT_SIGNAL( jobsChanged() ) , this, TQT_SLOT( updateStatus() ) ); + connect( ripper, TQT_SIGNAL( updateProgress(int, int) ), TQT_TQOBJECT(jobQue), TQT_SLOT( updateProgress(int,int) ) ); + connect( ripper, TQT_SIGNAL( addJob(Job*, const TQString &) ), TQT_TQOBJECT(jobQue), TQT_SLOT( addJob(Job*, const TQString &)) ); + connect( ripper, TQT_SIGNAL( eject(const TQString &) ) , TQT_TQOBJECT(tracks), TQT_SLOT( ejectDevice(const TQString &)) ); + connect( ripper, TQT_SIGNAL( encodeWav(Job *) ) , TQT_TQOBJECT(encoder), TQT_SLOT( encodeWav(Job *)) ); + connect( ripper, TQT_SIGNAL( jobsChanged() ) , TQT_TQOBJECT(this), TQT_SLOT( updatetqStatus() ) ); - connect( encoder, TQT_SIGNAL( updateProgress(int, int) ) , jobQue, TQT_SLOT( updateProgress(int,int)) ); - connect( encoder, TQT_SIGNAL( addJob(Job*, const TQString&)), jobQue, TQT_SLOT( addJob(Job*, const TQString &)) ); - connect( encoder, TQT_SIGNAL( jobsChanged() ) , this, TQT_SLOT( updateStatus() ) ); + connect( encoder, TQT_SIGNAL( updateProgress(int, int) ) , TQT_TQOBJECT(jobQue), TQT_SLOT( updateProgress(int,int)) ); + connect( encoder, TQT_SIGNAL( addJob(Job*, const TQString&)), TQT_TQOBJECT(jobQue), TQT_SLOT( addJob(Job*, const TQString &)) ); + connect( encoder, TQT_SIGNAL( jobsChanged() ) , TQT_TQOBJECT(this), TQT_SLOT( updatetqStatus() ) ); - connect( tracks, TQT_SIGNAL( hasCD(bool) ) , this, TQT_SLOT( hasCD(bool) ) ); - connect( tracks, TQT_SIGNAL( ripTrack(Job *) ), ripper, TQT_SLOT( ripTrack(Job *)) ); + connect( tracks, TQT_SIGNAL( hasCD(bool) ) , TQT_TQOBJECT(this), TQT_SLOT( hasCD(bool) ) ); + connect( tracks, TQT_SIGNAL( ripTrack(Job *) ), TQT_TQOBJECT(ripper), TQT_SLOT( ripTrack(Job *)) ); connect( tracks, TQT_SIGNAL( hasTracks(bool) ), rip, TQT_SLOT( setEnabled(bool)) ); connect( tracks, TQT_SIGNAL( hasTracks(bool) ), actActionMenu, TQT_SLOT( setEnabled(bool)) ); connect( tracks, TQT_SIGNAL( hasTracks(bool) ), deselectAll, TQT_SLOT( setEnabled(bool)) ); connect( tracks, TQT_SIGNAL( hasTracks(bool) ), selectAll, TQT_SLOT( setEnabled(bool)) ); - (void)new KAction(i18n("Remove &Completed Jobs"), 0, jobQue, + (void)new KAction(i18n("Remove &Completed Jobs"), 0, TQT_TQOBJECT(jobQue), TQT_SLOT(clearDoneJobs()), actionCollection(), "clear_done_jobs" ); - KAction *edit = new KAction(i18n("&Edit Album..."), 0, tracks, + KAction *edit = new KAction(i18n("&Edit Album..."), 0, TQT_TQOBJECT(tracks), TQT_SLOT(editInformation()), actionCollection(), "edit_cd"); connect(tracks, TQT_SIGNAL(hasCD(bool)), edit, TQT_SLOT(setEnabled(bool))); edit->setEnabled( false ); - (void)new KAction(i18n("Encode &File..."), 0, this, + (void)new KAction(i18n("Encode &File..."), 0, TQT_TQOBJECT(this), TQT_SLOT(encodeFile()), actionCollection(), "encode_file"); - KAction *cddb = new KAction(i18n("&CDDB Lookup"), 0, tracks, + KAction *cddb = new KAction(i18n("&CDDB Lookup"), 0, TQT_TQOBJECT(tracks), TQT_SLOT(performCDDB()), actionCollection(), "cddb_now"); connect(tracks, TQT_SIGNAL(hasCD(bool)), cddb, TQT_SLOT(setEnabled(bool))); cddb->setEnabled( false ); - KStdAction::configureNotifications(this, TQT_SLOT(configureNotifications()), + KStdAction::configureNotifications(TQT_TQOBJECT(this), TQT_SLOT(configureNotifications()), actionCollection()); - KStdAction::quit( this, TQT_SLOT(close()), actionCollection(), "quit" ); + KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection(), "quit" ); // Init statusbar statusBar()->insertItem(i18n("No Audio CD detected"), 0 ); @@ -153,10 +153,10 @@ void KAudioCreator::getRipMenu(){ ripMenu->clear(); int i=0; - TQString currentGroup = TQString("Encoder_%1").arg(i); + TQString currentGroup = TQString("Encoder_%1").tqarg(i); while(EncoderPrefs::hasPrefs(currentGroup)){ ripMenu->insertItem(EncoderPrefs::prefs(currentGroup)->encoderName(), i); - currentGroup = TQString("Encoder_%1").arg(++i); + currentGroup = TQString("Encoder_%1").tqarg(++i); } } @@ -170,28 +170,28 @@ void KAudioCreator::hasCD(bool cd){ statusBar()->changeItem(i18n("No Audio CD detected"), 0 ); } -void KAudioCreator::updateStatus() { +void KAudioCreator::updatetqStatus() { TQString status = i18n("Idle."); - TQString rippingStatus; - TQString encodingStatus; + TQString rippingtqStatus; + TQString encodingtqStatus; int activeRippingJobs = ripper->activeJobCount(); int pendingRippingJobs = ripper->pendingJobCount(); int activeEncodingJobs = encoder->activeJobCount(); int pendingEncodingJobs = encoder->pendingJobCount(); if ( activeRippingJobs ) { - rippingStatus = i18n("Ripping (%1 active, %2 queued)").arg( activeRippingJobs ).arg( pendingRippingJobs ); - status = rippingStatus; + rippingtqStatus = i18n("Ripping (%1 active, %2 queued)").tqarg( activeRippingJobs ).tqarg( pendingRippingJobs ); + status = rippingtqStatus; } if ( activeEncodingJobs ) { - encodingStatus = i18n("Encoding (%1 active, %2 queued)").arg( activeEncodingJobs ).arg( pendingEncodingJobs ); + encodingtqStatus = i18n("Encoding (%1 active, %2 queued)").tqarg( activeEncodingJobs ).tqarg( pendingEncodingJobs ); if ( activeRippingJobs ) { status.append(" : "); - status.append( encodingStatus ); + status.append( encodingtqStatus ); } else { - status = encodingStatus; + status = encodingtqStatus; } } @@ -229,14 +229,14 @@ void KAudioCreator::showSettings(){ SettingsDialog *dialog = new SettingsDialog(this, "settings", Prefs::self()); connect(dialog, TQT_SIGNAL(settingsChanged()), ripper, TQT_SLOT(loadSettings())); - connect(dialog, TQT_SIGNAL(settingsChanged()), encoder, TQT_SLOT(loadSettings())); - connect(dialog, TQT_SIGNAL(settingsChanged()), tracks, TQT_SLOT(loadSettings())); - connect(dialog->encoderConfigImp, TQT_SIGNAL(encoderUpdated()), encoder, TQT_SLOT(loadSettings())); + connect(dialog, TQT_SIGNAL(settingsChanged()), TQT_TQOBJECT(encoder), TQT_SLOT(loadSettings())); + connect(dialog, TQT_SIGNAL(settingsChanged()), TQT_TQOBJECT(tracks), TQT_SLOT(loadSettings())); + connect(dialog->encoderConfigImp, TQT_SIGNAL(encoderUpdated()), TQT_TQOBJECT(encoder), TQT_SLOT(loadSettings())); dialog->show(); } -SettingsDialog::SettingsDialog(TQWidget *parent, const char *name,KConfigSkeleton *config) - : KConfigDialog(parent, name, config), +SettingsDialog::SettingsDialog(TQWidget *tqparent, const char *name,KConfigSkeleton *config) + : KConfigDialog(tqparent, name, config), cddb(0), cddbChanged(false) { addPage(new General(0, "General"), i18n("General"), "package_settings", @@ -253,7 +253,7 @@ SettingsDialog::SettingsDialog(TQWidget *parent, const char *name,KConfigSkeleto { cddb->load(); addPage(cddb, i18n("CDDB"), "cdaudio_mount", i18n("CDDB Configuration"), false); - connect(cddb, TQT_SIGNAL(changed(bool)), this, TQT_SLOT(slotCddbChanged(bool))); + connect(cddb, TQT_SIGNAL(changed(bool)), TQT_TQOBJECT(this), TQT_SLOT(slotCddbChanged(bool))); } } RipConfig *rip = new RipConfig(0, "Ripper"); diff --git a/kaudiocreator/kaudiocreator.h b/kaudiocreator/kaudiocreator.h index d2e0c57d..29951b74 100644 --- a/kaudiocreator/kaudiocreator.h +++ b/kaudiocreator/kaudiocreator.h @@ -36,9 +36,10 @@ class KPopupMenu; class KAudioCreator : public KMainWindow { Q_OBJECT + TQ_OBJECT public: - KAudioCreator( TQWidget* parent = 0, const char* name = 0); + KAudioCreator( TQWidget* tqparent = 0, const char* name = 0); void setDevice( const TQString &device ); protected: @@ -46,7 +47,7 @@ protected: private slots: void showSettings(); - void updateStatus(); + void updatetqStatus(); void hasCD(bool); void configureNotifications(); @@ -67,9 +68,10 @@ private: class SettingsDialog: public KConfigDialog { Q_OBJECT + TQ_OBJECT public: - SettingsDialog(TQWidget *parent, const char *name,KConfigSkeleton *config); + SettingsDialog(TQWidget *tqparent, const char *name,KConfigSkeleton *config); protected slots: void updateSettings(); diff --git a/kaudiocreator/kaudiocreator.kcfg b/kaudiocreator/kaudiocreator.kcfg index 9e8addd0..03e5fa12 100644 --- a/kaudiocreator/kaudiocreator.kcfg +++ b/kaudiocreator/kaudiocreator.kcfg @@ -31,7 +31,7 @@ - + diff --git a/kaudiocreator/ripconfig.ui b/kaudiocreator/ripconfig.ui index 4ce85f1b..eb88ab8e 100644 --- a/kaudiocreator/ripconfig.ui +++ b/kaudiocreator/ripconfig.ui @@ -1,10 +1,10 @@ RipConfig - + RipConfig - + 0 0 @@ -19,7 +19,7 @@ 0 - + kcfg_beepAfterRip @@ -27,7 +27,7 @@ &Beep after each rip is done - + Layout4 @@ -41,7 +41,7 @@ 6 - + TextLabel14 @@ -52,7 +52,7 @@ kcfg_maxWavFiles - + kcfg_maxWavFiles @@ -65,7 +65,7 @@ - + kcfg_autoEjectAfterRip @@ -73,7 +73,7 @@ &Auto-eject CD after last track is ripped - + Layout6 @@ -87,7 +87,7 @@ 6 - + TextLabel15 @@ -101,7 +101,7 @@ kcfg_autoEjectDelay - + kcfg_autoEjectDelay @@ -117,7 +117,7 @@ - + kcfg_enableTempDir @@ -151,7 +151,7 @@ Expanding - + 20 280 @@ -182,7 +182,7 @@ kcfg_autoEjectAfterRip kcfg_autoEjectDelay - + kurlrequester.h klineedit.h diff --git a/kaudiocreator/ripper.cpp b/kaudiocreator/ripper.cpp index cb9c012b..7a308a9f 100644 --- a/kaudiocreator/ripper.cpp +++ b/kaudiocreator/ripper.cpp @@ -32,7 +32,7 @@ /** * Constructor, load settings. */ -Ripper::Ripper( TQObject* parent, const char* name) : TQObject(parent,name) { +Ripper::Ripper( TQObject* tqparent, const char* name) : TQObject(tqparent,name) { loadSettings(); } @@ -120,7 +120,7 @@ void Ripper::removeJob(int id){ pendingJobs.remove(job); delete job; } - //qDebug(TQString("Done removing Job:%1").arg(id).latin1()); + //qDebug(TQString("Done removing Job:%1").tqarg(id).latin1()); tendToNewJobs(); } @@ -132,7 +132,7 @@ void Ripper::removeJob(int id){ void Ripper::ripTrack(Job *job){ if(!job) return; - emit(addJob(job, i18n("Ripping: %1 - %2").arg(job->track_artist).arg(job->track_title))); + emit(addJob(job, i18n("Ripping: %1 - %2").tqarg(job->track_artist).tqarg(job->track_title))); pendingJobs.append(job); tendToNewJobs(); } @@ -172,12 +172,12 @@ void Ripper::tendToNewJobs(){ TQString wavFile; TQString args = job->device; if(!args.isEmpty()) - args = TQString("?device=%1").arg(args); + args = TQString("?device=%1").tqarg(args); args = args+"&fileNameTemplate=Track %{number}"; if(job->track < 10) - wavFile = TQString("audiocd:/Wav/Track 0%1.wav%2").arg(job->track).arg(args); + wavFile = TQString("audiocd:/Wav/Track 0%1.wav%2").tqarg(job->track).tqarg(args); else - wavFile = TQString("audiocd:/Wav/Track %1.wav%2").arg(job->track).arg(args); + wavFile = TQString("audiocd:/Wav/Track %1.wav%2").tqarg(job->track).tqarg(args); KURL source(wavFile); KURL dest(tmp.name()); @@ -201,7 +201,7 @@ void Ripper::copyJobResult(KIO::Job *copyjob){ KIO::FileCopyJob *copyJob = dynamic_cast (copyjob); KNotifyClient::event("track ripped"); - if(jobs.find(copyjob) == jobs.end()) + if(jobs.tqfind(copyjob) == jobs.end()) return; Job *newJob = jobs[copyjob]; jobs.remove(copyjob); diff --git a/kaudiocreator/ripper.h b/kaudiocreator/ripper.h index 1b92493e..9dfed908 100644 --- a/kaudiocreator/ripper.h +++ b/kaudiocreator/ripper.h @@ -31,6 +31,7 @@ class Job; class Ripper : public TQObject { Q_OBJECT + TQ_OBJECT signals: void addJob( Job *job, const TQString &name ); @@ -40,7 +41,7 @@ signals: void jobsChanged(); public: - Ripper( TQObject* parent = 0, const char* name = 0 ); + Ripper( TQObject* tqparent = 0, const char* name = 0 ); ~Ripper(); int activeJobCount(); int pendingJobCount(); diff --git a/kaudiocreator/tracks.ui b/kaudiocreator/tracks.ui index a225f041..05a3b3ab 100644 --- a/kaudiocreator/tracks.ui +++ b/kaudiocreator/tracks.ui @@ -1,10 +1,10 @@ Tracks - + Tracks - + 0 0 @@ -22,7 +22,7 @@ 0 - + albumName @@ -35,7 +35,7 @@ Unknown Artist - Unknown Album - + AlignCenter @@ -96,7 +96,7 @@ LastColumn - + Layout2 @@ -120,14 +120,14 @@ Expanding - + 20 20 - + selectAllTracksButton @@ -135,7 +135,7 @@ Select &All Tracks - + deselectAllTracksButton @@ -145,15 +145,15 @@ - + - layout6 + tqlayout6 unnamed - + textLabel1 @@ -200,7 +200,7 @@ Expanding - + 246 20 @@ -217,7 +217,7 @@ selectAllTracksButton deselectAllTracksButton - + kcombobox.h klineedit.h diff --git a/kaudiocreator/tracksimp.cpp b/kaudiocreator/tracksimp.cpp index 9a864e9d..02668821 100644 --- a/kaudiocreator/tracksimp.cpp +++ b/kaudiocreator/tracksimp.cpp @@ -49,8 +49,8 @@ /** * Constructor, connect up slots and signals. */ -TracksImp::TracksImp( TQWidget* parent, const char* name) : - Tracks(parent,name), +TracksImp::TracksImp( TQWidget* tqparent, const char* name) : + Tracks(tqparent,name), cddbInfo() { cd = new KCompactDisc; @@ -84,7 +84,7 @@ TracksImp::~TracksImp() { list.append(deviceCombo->currentText()); for ( int i=0; icount();i++ ) { TQString text = deviceCombo->text(i); - if( list.find(text) == list.end()) + if( list.tqfind(text) == list.end()) list.append(text); if( list.count() == 5) break; @@ -104,13 +104,13 @@ void TracksImp::loadSettings() { TQStringList prefsList = Prefs::device(); TQStringList::Iterator it; for ( it = prefsList.begin(); it != prefsList.end(); ++it ) { - if( list.find( *it ) == list.end()) + if( list.tqfind( *it ) == list.end()) list.append(*it); } // Get current list, no dups for ( int i=0; icount();i++ ) { TQString text = deviceCombo->text(i); - if( list.find(text) == list.end()) + if( list.tqfind(text) == list.end()) list.append(text); } @@ -198,7 +198,7 @@ void TracksImp::changeDevice(const TQString &file ) { TQString errstring = i18n("CDROM read or access error (or no audio disk in drive).\n"\ "Please make sure you have access permissions to:\n%1") - .arg(file); + .tqarg(file); KMessageBox::error(this, errstring, i18n("Error")); } } @@ -247,8 +247,8 @@ void TracksImp::lookupCDDBDone(CDDB::Result result ) { CDInfoList::iterator it; TQStringList list; for ( it = cddb_info.begin(); it != cddb_info.end(); ++it ) { - list.append( TQString("%1, %2, %3").arg((*it).artist).arg((*it).title) - .arg((*it).genre)); + list.append( TQString("%1, %2, %3").tqarg((*it).artist).tqarg((*it).title) + .tqarg((*it).genre)); } bool ok(false); @@ -277,7 +277,7 @@ void TracksImp::lookupCDDBDone(CDDB::Result result ) { } // Some sanity provisions to ensure that the number of records matches what - // the CD actually contains. + // the CD actually tqcontains. while (info.trackInfoList.count() < cddbInfo.trackInfoList.count()) { info.trackInfoList.append(KCDDB::TrackInfo()); @@ -378,7 +378,7 @@ void TracksImp::startSession( int encoder ) if( Prefs::promptIfIncompleteInfo() && list.count() > 0 ) { int r = KMessageBox::questionYesNo( this, - i18n( "Part of the album is not set: %1.\n (To change album information click the \"Edit Information\" button.)\n Would you like to rip the selected tracks anyway?").arg(list.join(", ")), i18n("Album Information Incomplete"), i18n("Rip"), KStdGuiItem::cancel() ); + i18n( "Part of the album is not set: %1.\n (To change album information click the \"Edit Information\" button.)\n Would you like to rip the selected tracks anyway?").tqarg(list.join(", ")), i18n("Album Information Incomplete"), i18n("Rip"), KStdGuiItem::cancel() ); if( r == KMessageBox::No ) return; @@ -417,7 +417,7 @@ void TracksImp::startSession( int encoder ) KMessageBox::information(this, i18n("%1 Job(s) have been started. You can watch their progress in the " - "jobs section.").arg( selected.count() ), + "jobs section.").tqarg( selected.count() ), i18n("Jobs have started"), i18n("Jobs have started")); } @@ -496,7 +496,7 @@ void TracksImp::newAlbum() bool isSampler = true; for( unsigned i = 0; i < t.count(); i++ ) { - if (t[i].title.find(" / ") == -1) + if (t[i].title.tqfind(" / ") == -1) { isSampler = false; break; @@ -512,7 +512,7 @@ void TracksImp::newAlbum() if( isSampler ) { // Support for multiple artists stripping. - int delimiter = t[i].title.find(" / "); + int delimiter = t[i].title.tqfind(" / "); Q_ASSERT( delimiter != -1 ); trackArtist = t[i].title.left(delimiter); title = t[i].title.mid(delimiter + 3); @@ -547,7 +547,7 @@ void TracksImp::keyPressEvent(TQKeyEvent *event) TQListViewItem *item = trackListing->selectedItem(); if( !item ) return; - if( event->key() == Qt::Key_F2 ) + if( event->key() == TQt::Key_F2 ) { item->setRenameEnabled( HEADER_TRACK_NAME, true ); item->startRename( HEADER_TRACK_NAME ); diff --git a/kaudiocreator/tracksimp.h b/kaudiocreator/tracksimp.h index 89ea2e36..bc109f55 100644 --- a/kaudiocreator/tracksimp.h +++ b/kaudiocreator/tracksimp.h @@ -44,8 +44,8 @@ class KCompactDisc; class TracksItem : public KListViewItem { public: - TracksItem( KListView *parent, KListViewItem *after, TQString t, TQString a, int tr, TQString l, TQString c ) - : KListViewItem( parent, after, TQString::null/*rip*/, TQString::number(tr), l, t ) + TracksItem( KListView *tqparent, KListViewItem *after, TQString t, TQString a, int tr, TQString l, TQString c ) + : KListViewItem( tqparent, after, TQString()/*rip*/, TQString::number(tr), l, t ) { m_title = t; m_artist = a; @@ -86,6 +86,7 @@ private: class TracksImp : public Tracks { Q_OBJECT + TQ_OBJECT signals: void ripTrack(Job *job); @@ -93,7 +94,7 @@ signals: void hasTracks(bool); public: - TracksImp( TQWidget* parent = 0, const char* name = 0); + TracksImp( TQWidget* tqparent = 0, const char* name = 0); ~TracksImp(); bool hasCD(); diff --git a/kaudiocreator/wizard.ui b/kaudiocreator/wizard.ui index 7658557b..14090be4 100644 --- a/kaudiocreator/wizard.ui +++ b/kaudiocreator/wizard.ui @@ -1,10 +1,10 @@ fileWizard - + fileWizard - + 0 0 @@ -33,7 +33,7 @@ 6 - + TextLabel8 @@ -51,7 +51,7 @@ RichText - + WordBreak|AlignTop|AlignLeft @@ -65,14 +65,14 @@ Expanding - + 20 16 - + Layout8 @@ -86,7 +86,7 @@ 6 - + TextLabel9 @@ -97,7 +97,7 @@ playlistFormat - + fileFormat @@ -107,7 +107,7 @@ - + exampleLabel @@ -115,15 +115,15 @@ Example: ~/mp3/Staind/Lost Love/Staind - Lost Love.m3u - + - layout15 + tqlayout15 unnamed - + artistButton @@ -131,7 +131,7 @@ &Artist - + homeDirButton @@ -139,7 +139,7 @@ &Home Folder - + trackNumberButton @@ -147,7 +147,7 @@ &Track Number - + extensionButton @@ -155,7 +155,7 @@ &Extension - + trackTitleButton @@ -163,7 +163,7 @@ Track T&itle - + trackCommentButton @@ -171,7 +171,7 @@ T&rack Comment - + genreButton @@ -179,7 +179,7 @@ &Genre - + yearButton @@ -187,7 +187,7 @@ &Year - + albumButton @@ -195,7 +195,7 @@ Al&bum - + trackArtistButton @@ -203,7 +203,7 @@ Trac&k Artist - + commentButton @@ -227,7 +227,7 @@ Horizontal - + Layout1 @@ -251,14 +251,14 @@ Expanding - + 20 20 - + buttonOk @@ -272,7 +272,7 @@ true - + buttonCancel @@ -350,9 +350,9 @@ fileFormat - textChanged(const QString&) + textChanged(const TTQString&) fileWizard - fileFormatTextChanged(const QString&) + fileFormatTextChanged(const TQString&) trackArtistButton @@ -392,7 +392,7 @@ wizard.ui.h - + homePressed() extensionPressed() trackTitlePressed() @@ -404,7 +404,7 @@ albumPressed() artistPressed() commentPressed() - fileFormatTextChanged( const QString & text ) - - + fileFormatTextChanged( const TQString & text ) + + diff --git a/kaudiocreator/wizard.ui.h b/kaudiocreator/wizard.ui.h index 57a21a42..294d36dc 100644 --- a/kaudiocreator/wizard.ui.h +++ b/kaudiocreator/wizard.ui.h @@ -21,7 +21,7 @@ /**************************************************************************** ** ui.h extension file, included from the uic-generated form implementation. ** -** If you wish to add, delete or rename slots use Qt Designer which will +** If you wish to add, delete or rename slots use TQt Designer which will ** update this file, preserving your code. Create an init() slot in place of ** a constructor, and a destroy() slot in place of a destructor. *****************************************************************************/ @@ -90,7 +90,7 @@ void fileWizard::commentPressed() void fileWizard::fileFormatTextChanged(const TQString& text) { TQString string = text; - string.replace(TQRegExp("~"), "/home/foo"); + string.tqreplace(TQRegExp("~"), "/home/foo"); Job job; job.genre = "Rock"; job.group = "J Rocker"; @@ -105,6 +105,6 @@ void fileWizard::fileFormatTextChanged(const TQString& text) TQMap map; map.insert("extension", "mp3"); string = job.replaceSpecialChars(string, false, map); - exampleLabel->setText(i18n("Example: %1").arg(string)); + exampleLabel->setText(i18n("Example: %1").tqarg(string)); } diff --git a/kfile-plugins/au/kfile_au.cpp b/kfile-plugins/au/kfile_au.cpp index ae1b4614..1c6e3cfd 100644 --- a/kfile-plugins/au/kfile_au.cpp +++ b/kfile-plugins/au/kfile_au.cpp @@ -43,10 +43,10 @@ typedef KGenericFactory AuFactory; K_EXPORT_COMPONENT_FACTORY(kfile_au, AuFactory( "kfile_au" )) -KAuPlugin::KAuPlugin(TQObject *parent, const char *name, +KAuPlugin::KAuPlugin(TQObject *tqparent, const char *name, const TQStringList &args) - : KFilePlugin(parent, name, args) + : KFilePlugin(tqparent, name, args) { KFileMimeTypeInfo* info = addMimeTypeInfo( "audio/basic" ); @@ -90,7 +90,7 @@ bool KAuPlugin::readInfo( KFileMetaInfo& info, uint what) if (!file.open(IO_ReadOnly)) { - kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()) << endl; + kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()).data() << endl; return false; } diff --git a/kfile-plugins/au/kfile_au.h b/kfile-plugins/au/kfile_au.h index 7968d87c..d09ce2a7 100644 --- a/kfile-plugins/au/kfile_au.h +++ b/kfile-plugins/au/kfile_au.h @@ -27,9 +27,10 @@ class TQStringList; class KAuPlugin: public KFilePlugin { Q_OBJECT + TQ_OBJECT public: - KAuPlugin( TQObject *parent, const char *name, const TQStringList& args ); + KAuPlugin( TQObject *tqparent, const char *name, const TQStringList& args ); virtual bool readInfo( KFileMetaInfo& info, uint what); }; diff --git a/kfile-plugins/avi/kfile_avi.cpp b/kfile-plugins/avi/kfile_avi.cpp index a7c2bc31..d8dd2f7b 100644 --- a/kfile-plugins/avi/kfile_avi.cpp +++ b/kfile-plugins/avi/kfile_avi.cpp @@ -45,10 +45,10 @@ typedef KGenericFactory AviFactory; K_EXPORT_COMPONENT_FACTORY(kfile_avi, AviFactory( "kfile_avi" )) -KAviPlugin::KAviPlugin(TQObject *parent, const char *name, +KAviPlugin::KAviPlugin(TQObject *tqparent, const char *name, const TQStringList &args) - : KFilePlugin(parent, name, args) + : KFilePlugin(tqparent, name, args) { KFileMimeTypeInfo* info = addMimeTypeInfo( "video/x-msvideo" ); @@ -486,7 +486,7 @@ bool KAviPlugin::readInfo( KFileMetaInfo& info, uint /*what*/) // open file, set up stream and set endianness if (!f.open(IO_ReadOnly)) { - kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()) << endl; + kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()).data() << endl; return false; } //TQDataStream dstream(&file); diff --git a/kfile-plugins/avi/kfile_avi.h b/kfile-plugins/avi/kfile_avi.h index 43bc72e0..da16a16b 100644 --- a/kfile-plugins/avi/kfile_avi.h +++ b/kfile-plugins/avi/kfile_avi.h @@ -37,9 +37,10 @@ class TQStringList; class KAviPlugin: public KFilePlugin { Q_OBJECT + TQ_OBJECT public: - KAviPlugin( TQObject *parent, const char *name, const TQStringList& args ); + KAviPlugin( TQObject *tqparent, const char *name, const TQStringList& args ); diff --git a/kfile-plugins/flac/kfile_flac.cpp b/kfile-plugins/flac/kfile_flac.cpp index 6462c917..be804ee1 100644 --- a/kfile-plugins/flac/kfile_flac.cpp +++ b/kfile-plugins/flac/kfile_flac.cpp @@ -56,9 +56,9 @@ K_EXPORT_COMPONENT_FACTORY(kfile_flac, KGenericFactory("kfile_flac")) -KFlacPlugin::KFlacPlugin( TQObject *parent, const char *name, +KFlacPlugin::KFlacPlugin( TQObject *tqparent, const char *name, const TQStringList &args ) - : KFilePlugin( parent, name, args ) + : KFilePlugin( tqparent, name, args ) { kdDebug(7034) << "flac plugin\n"; @@ -178,16 +178,16 @@ bool KFlacPlugin::readInfo( KFileMetaInfo& info, uint what ) { KFileMetaInfoGroup commentgroup = appendGroup(info, "Comment"); - TQString date = file->tag()->year() > 0 ? TQString::number(file->tag()->year()) : TQString::null; - TQString track = file->tag()->track() > 0 ? TQString::number(file->tag()->track()) : TQString::null; + TQString date = file->tag()->year() > 0 ? TQString::number(file->tag()->year()) : TQString(); + TQString track = file->tag()->track() > 0 ? TQString::number(file->tag()->track()) : TQString(); - appendItem(commentgroup, "Title", TStringToQString(file->tag()->title()).stripWhiteSpace()); - appendItem(commentgroup, "Artist", TStringToQString(file->tag()->artist()).stripWhiteSpace()); - appendItem(commentgroup, "Album", TStringToQString(file->tag()->album()).stripWhiteSpace()); + appendItem(commentgroup, "Title", TQString(TStringToQString(file->tag()->title())).stripWhiteSpace()); + appendItem(commentgroup, "Artist", TQString(TStringToQString(file->tag()->artist())).stripWhiteSpace()); + appendItem(commentgroup, "Album", TQString(TStringToQString(file->tag()->album())).stripWhiteSpace()); appendItem(commentgroup, "Date", date); - appendItem(commentgroup, "Comment", TStringToQString(file->tag()->comment()).stripWhiteSpace()); + appendItem(commentgroup, "Comment", TQString(TStringToQString(file->tag()->comment())).stripWhiteSpace()); appendItem(commentgroup, "Tracknumber", track); - appendItem(commentgroup, "Genre", TStringToQString(file->tag()->genre()).stripWhiteSpace()); + appendItem(commentgroup, "Genre", TQString(TStringToQString(file->tag()->genre())).stripWhiteSpace()); } if (readTech && file->audioProperties()) @@ -269,14 +269,14 @@ bool KFlacPlugin::writeInfo(const KFileMetaInfo& info) const TQValidator* KFlacPlugin::createValidator( const TQString&, const TQString &group, const TQString &key, - TQObject* parent, const char* name) const + TQObject* tqparent, const char* name) const { if(key == "Tracknumber" || key == "Date") { - return new TQIntValidator(0, 9999, parent, name); + return new TQIntValidator(0, 9999, tqparent, name); } else - return new TQRegExpValidator(TQRegExp(".*"), parent, name); + return new TQRegExpValidator(TQRegExp(".*"), tqparent, name); } #include "kfile_flac.moc" diff --git a/kfile-plugins/flac/kfile_flac.h b/kfile-plugins/flac/kfile_flac.h index b08e2136..8d60169c 100644 --- a/kfile-plugins/flac/kfile_flac.h +++ b/kfile-plugins/flac/kfile_flac.h @@ -32,16 +32,17 @@ class TQStringList; class KFlacPlugin: public KFilePlugin { Q_OBJECT + TQ_OBJECT public: - KFlacPlugin( TQObject *parent, const char *name, const TQStringList& args ); + KFlacPlugin( TQObject *tqparent, const char *name, const TQStringList& args ); virtual bool readInfo( KFileMetaInfo& info, uint what); virtual bool writeInfo( const KFileMetaInfo& info ) const; virtual TQValidator* createValidator( const TQString& mimetype, const TQString &group, const TQString &key, - TQObject* parent, const char* name) const; + TQObject* tqparent, const char* name) const; protected: virtual void makeMimeTypeInfo(const TQString& mimeType); }; diff --git a/kfile-plugins/m3u/kfile_m3u.cpp b/kfile-plugins/m3u/kfile_m3u.cpp index 5fff1a08..d366685f 100644 --- a/kfile-plugins/m3u/kfile_m3u.cpp +++ b/kfile-plugins/m3u/kfile_m3u.cpp @@ -37,9 +37,9 @@ typedef KGenericFactory M3uFactory; K_EXPORT_COMPONENT_FACTORY( kfile_m3u, M3uFactory( "kfile_m3u" ) ) -KM3uPlugin::KM3uPlugin( TQObject *parent, const char *name, +KM3uPlugin::KM3uPlugin( TQObject *tqparent, const char *name, const TQStringList &preferredItems ) - : KFilePlugin( parent, name, preferredItems ) + : KFilePlugin( tqparent, name, preferredItems ) { kdDebug(7034) << "m3u plugin\n"; @@ -75,7 +75,7 @@ bool KM3uPlugin::readInfo( KFileMetaInfo& info, uint ) if (s.endsWith("\n")) s.truncate(s.length()-1); if (!s.stripWhiteSpace().isEmpty()) { - appendItem(group, i18n("Track %1").arg(num, 3), s); + appendItem(group, i18n("Track %1").tqarg(num, 3), s); num++; } } diff --git a/kfile-plugins/m3u/kfile_m3u.h b/kfile-plugins/m3u/kfile_m3u.h index 2787c81b..a91d392d 100644 --- a/kfile-plugins/m3u/kfile_m3u.h +++ b/kfile-plugins/m3u/kfile_m3u.h @@ -29,9 +29,10 @@ class TQStringList; class KM3uPlugin: public KFilePlugin { Q_OBJECT + TQ_OBJECT public: - KM3uPlugin( TQObject *parent, const char *name, const TQStringList& args ); + KM3uPlugin( TQObject *tqparent, const char *name, const TQStringList& args ); virtual bool readInfo( KFileMetaInfo& info, uint what ); }; diff --git a/kfile-plugins/mp3/kfile_mp3.cpp b/kfile-plugins/mp3/kfile_mp3.cpp index c6317946..8036cef8 100644 --- a/kfile-plugins/mp3/kfile_mp3.cpp +++ b/kfile-plugins/mp3/kfile_mp3.cpp @@ -44,8 +44,8 @@ typedef KGenericFactory Mp3Factory; K_EXPORT_COMPONENT_FACTORY(kfile_mp3, Mp3Factory( "kfile_mp3" )) -KMp3Plugin::KMp3Plugin(TQObject *parent, const char *name, const TQStringList &args) - : KFilePlugin(parent, name, args) +KMp3Plugin::KMp3Plugin(TQObject *tqparent, const char *name, const TQStringList &args) + : KFilePlugin(tqparent, name, args) { kdDebug(7034) << "mp3 plugin\n"; @@ -151,24 +151,24 @@ bool KMp3Plugin::readInfo(KFileMetaInfo &info, uint what) { KFileMetaInfoGroup id3group = appendGroup(info, "id3"); - TQString date = file.tag()->year() > 0 ? TQString::number(file.tag()->year()) : TQString::null; - TQString track = file.tag()->track() > 0 ? TQString::number(file.tag()->track()) : TQString::null; + TQString date = file.tag()->year() > 0 ? TQString::number(file.tag()->year()) : TQString(); + TQString track = file.tag()->track() > 0 ? TQString::number(file.tag()->track()) : TQString(); - TQString title = TStringToQString(file.tag()->title()).stripWhiteSpace(); + TQString title = TQString(TStringToQString(file.tag()->title())).stripWhiteSpace(); if (!title.isEmpty()) appendItem(id3group, "Title", title); - TQString artist = TStringToQString(file.tag()->artist()).stripWhiteSpace(); + TQString artist = TQString(TStringToQString(file.tag()->artist())).stripWhiteSpace(); if (!artist.isEmpty()) appendItem(id3group, "Artist", artist); - TQString album = TStringToQString(file.tag()->album()).stripWhiteSpace(); + TQString album = TQString(TStringToQString(file.tag()->album())).stripWhiteSpace(); if (!album.isEmpty()) appendItem(id3group, "Album", album); appendItem(id3group, "Date", date); - TQString comment = TStringToQString(file.tag()->comment()).stripWhiteSpace(); + TQString comment = TQString(TStringToQString(file.tag()->comment())).stripWhiteSpace(); if (!comment.isEmpty()) appendItem(id3group, "Comment", comment); appendItem(id3group, "Tracknumber", track); - TQString genre = TStringToQString(file.tag()->genre()).stripWhiteSpace(); + TQString genre = TQString(TStringToQString(file.tag()->genre())).stripWhiteSpace(); if (!genre.isEmpty()) appendItem(id3group, "Genre", genre); } @@ -191,7 +191,7 @@ bool KMp3Plugin::readInfo(KFileMetaInfo &info, uint what) break; } - static const int dummy = 0; // QVariant's bool constructor requires a dummy int value. + static const int dummy = 0; // TQVariant's bool constructor requires a dummy int value. // CRC and Emphasis aren't yet implemented in TagLib (not that I think anyone cares) @@ -267,8 +267,8 @@ class ComboValidator : public KStringListValidator { public: ComboValidator(const TQStringList &list, bool rejecting, - bool fixupEnabled, TQObject *parent, const char *name) : - KStringListValidator(list, rejecting, fixupEnabled, parent, name) + bool fixupEnabled, TQObject *tqparent, const char *name) : + KStringListValidator(list, rejecting, fixupEnabled, tqparent, name) { } @@ -281,13 +281,13 @@ public: TQValidator *KMp3Plugin::createValidator(const TQString & /* mimetype */, const TQString &group, const TQString &key, - TQObject *parent, const char *name) const + TQObject *tqparent, const char *name) const { kdDebug(7034) << "making a validator for " << group << "/" << key << endl; if(key == "Tracknumber" || key == "Date") { - return new TQIntValidator(0, 9999, parent, name); + return new TQIntValidator(0, 9999, tqparent, name); } if(key == "Genre") @@ -298,7 +298,7 @@ TQValidator *KMp3Plugin::createValidator(const TQString & /* mimetype */, { l.append(TStringToQString((*it))); } - return new ComboValidator(l, false, true, parent, name); + return new ComboValidator(l, false, true, tqparent, name); } return 0; diff --git a/kfile-plugins/mp3/kfile_mp3.h b/kfile-plugins/mp3/kfile_mp3.h index 6f3fc44c..903a5804 100644 --- a/kfile-plugins/mp3/kfile_mp3.h +++ b/kfile-plugins/mp3/kfile_mp3.h @@ -26,16 +26,17 @@ class TQStringList; class KMp3Plugin: public KFilePlugin { Q_OBJECT + TQ_OBJECT public: - KMp3Plugin(TQObject *parent, const char *name, const TQStringList &args); + KMp3Plugin(TQObject *tqparent, const char *name, const TQStringList &args); virtual bool readInfo( KFileMetaInfo& info, uint what ); virtual bool writeInfo( const KFileMetaInfo& info) const; virtual TQValidator *createValidator(const TQString &mimetype, const TQString &group, const TQString &key, - TQObject *parent, const char *name) const; + TQObject *tqparent, const char *name) const; }; #endif diff --git a/kfile-plugins/mpc/kfile_mpc.cpp b/kfile-plugins/mpc/kfile_mpc.cpp index 4b6800df..a1bf5648 100644 --- a/kfile-plugins/mpc/kfile_mpc.cpp +++ b/kfile-plugins/mpc/kfile_mpc.cpp @@ -48,9 +48,9 @@ K_EXPORT_COMPONENT_FACTORY(kfile_mpc, KGenericFactory("kfile_mpc")) -KMpcPlugin::KMpcPlugin( TQObject *parent, const char *name, +KMpcPlugin::KMpcPlugin( TQObject *tqparent, const char *name, const TQStringList &args ) - : KFilePlugin( parent, name, args ) + : KFilePlugin( tqparent, name, args ) { kdDebug(7034) << "mpc plugin\n"; @@ -154,16 +154,16 @@ bool KMpcPlugin::readInfo( KFileMetaInfo& info, uint what ) { KFileMetaInfoGroup commentgroup = appendGroup(info, "Comment"); - TQString date = file->tag()->year() > 0 ? TQString::number(file->tag()->year()) : TQString::null; - TQString track = file->tag()->track() > 0 ? TQString::number(file->tag()->track()) : TQString::null; + TQString date = file->tag()->year() > 0 ? TQString::number(file->tag()->year()) : TQString(); + TQString track = file->tag()->track() > 0 ? TQString::number(file->tag()->track()) : TQString(); - appendItem(commentgroup, "Title", TStringToQString(file->tag()->title()).stripWhiteSpace()); - appendItem(commentgroup, "Artist", TStringToQString(file->tag()->artist()).stripWhiteSpace()); - appendItem(commentgroup, "Album", TStringToQString(file->tag()->album()).stripWhiteSpace()); + appendItem(commentgroup, "Title", TQString(TStringToQString(file->tag()->title())).stripWhiteSpace()); + appendItem(commentgroup, "Artist", TQString(TStringToQString(file->tag()->artist())).stripWhiteSpace()); + appendItem(commentgroup, "Album", TQString(TStringToQString(file->tag()->album())).stripWhiteSpace()); appendItem(commentgroup, "Date", date); - appendItem(commentgroup, "Comment", TStringToQString(file->tag()->comment()).stripWhiteSpace()); + appendItem(commentgroup, "Comment", TQString(TStringToQString(file->tag()->comment())).stripWhiteSpace()); appendItem(commentgroup, "Tracknumber", track); - appendItem(commentgroup, "Genre", TStringToQString(file->tag()->genre()).stripWhiteSpace()); + appendItem(commentgroup, "Genre", TQString(TStringToQString(file->tag()->genre())).stripWhiteSpace()); } if (readTech) @@ -240,14 +240,14 @@ bool KMpcPlugin::writeInfo(const KFileMetaInfo& info) const TQValidator* KMpcPlugin::createValidator( const TQString&, const TQString &group, const TQString &key, - TQObject* parent, const char* name) const + TQObject* tqparent, const char* name) const { if(key == "Tracknumber" || key == "Date") { - return new TQIntValidator(0, 9999, parent, name); + return new TQIntValidator(0, 9999, tqparent, name); } else - return new TQRegExpValidator(TQRegExp(".*"), parent, name); + return new TQRegExpValidator(TQRegExp(".*"), tqparent, name); } #include "kfile_mpc.moc" diff --git a/kfile-plugins/mpc/kfile_mpc.h b/kfile-plugins/mpc/kfile_mpc.h index 9deb7d71..380da446 100644 --- a/kfile-plugins/mpc/kfile_mpc.h +++ b/kfile-plugins/mpc/kfile_mpc.h @@ -32,16 +32,17 @@ class TQStringList; class KMpcPlugin: public KFilePlugin { Q_OBJECT + TQ_OBJECT public: - KMpcPlugin( TQObject *parent, const char *name, const TQStringList& args ); + KMpcPlugin( TQObject *tqparent, const char *name, const TQStringList& args ); virtual bool readInfo( KFileMetaInfo& info, uint what); virtual bool writeInfo( const KFileMetaInfo& info ) const; virtual TQValidator* createValidator( const TQString& mimetype, const TQString &group, const TQString &key, - TQObject* parent, const char* name) const; + TQObject* tqparent, const char* name) const; }; diff --git a/kfile-plugins/mpeg/kfile_mpeg.cpp b/kfile-plugins/mpeg/kfile_mpeg.cpp index f532318e..a94ce15a 100644 --- a/kfile-plugins/mpeg/kfile_mpeg.cpp +++ b/kfile-plugins/mpeg/kfile_mpeg.cpp @@ -46,10 +46,10 @@ typedef KGenericFactory MpegFactory; K_EXPORT_COMPONENT_FACTORY(kfile_mpeg, MpegFactory( "kfile_mpeg" )) -KMpegPlugin::KMpegPlugin(TQObject *parent, const char *name, +KMpegPlugin::KMpegPlugin(TQObject *tqparent, const char *name, const TQStringList &args) - : KFilePlugin(parent, name, args) + : KFilePlugin(tqparent, name, args) { KFileMimeTypeInfo* info = addMimeTypeInfo( "video/mpeg" ); @@ -329,7 +329,7 @@ bool KMpegPlugin::read_mpeg() skimmed++; searched++; if (video_len > 0) video_len--; - // Use a fast state machine to find 00 00 01 sync code + // Use a fast state machine to tqfind 00 00 01 sync code switch (state) { case 0: if (byte == 0) @@ -502,7 +502,7 @@ bool KMpegPlugin::readInfo( KFileMetaInfo& info, uint /*what*/) // open file, set up stream and set endianness if (!file.open(IO_ReadOnly)) { - kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()) << endl; + kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()).data() << endl; return false; } diff --git a/kfile-plugins/mpeg/kfile_mpeg.h b/kfile-plugins/mpeg/kfile_mpeg.h index 2aa313d2..e35b639e 100644 --- a/kfile-plugins/mpeg/kfile_mpeg.h +++ b/kfile-plugins/mpeg/kfile_mpeg.h @@ -28,9 +28,10 @@ class TQStringList; class KMpegPlugin: public KFilePlugin { Q_OBJECT + TQ_OBJECT public: - KMpegPlugin( TQObject *parent, const char *name, const TQStringList& args ); + KMpegPlugin( TQObject *tqparent, const char *name, const TQStringList& args ); virtual bool readInfo( KFileMetaInfo& info, uint what); diff --git a/kfile-plugins/ogg/kfile_ogg.cpp b/kfile-plugins/ogg/kfile_ogg.cpp index dc4a8f3e..3964b814 100644 --- a/kfile-plugins/ogg/kfile_ogg.cpp +++ b/kfile-plugins/ogg/kfile_ogg.cpp @@ -61,9 +61,9 @@ static const char* const knownTranslations[] = { K_EXPORT_COMPONENT_FACTORY(kfile_ogg, KGenericFactory("kfile_ogg")) -KOggPlugin::KOggPlugin( TQObject *parent, const char *name, +KOggPlugin::KOggPlugin( TQObject *tqparent, const char *name, const TQStringList &args ) - : KFilePlugin( parent, name, args ) + : KFilePlugin( tqparent, name, args ) { kdDebug(7034) << "ogg plugin\n"; @@ -176,7 +176,7 @@ bool KOggPlugin::readInfo( KFileMetaInfo& info, uint what ) fp = fopen(TQFile::encodeName(info.path()),"rb"); if (!fp) { - kdDebug(7034) << "Unable to open " << TQFile::encodeName(info.path()) << endl; + kdDebug(7034) << "Unable to open " << TQFile::encodeName(info.path()).data() << endl; return false; } @@ -184,7 +184,7 @@ bool KOggPlugin::readInfo( KFileMetaInfo& info, uint what ) if (rc < 0) { - kdDebug(7034) << "Unable to understand " << TQFile::encodeName(info.path()) + kdDebug(7034) << "Unable to understand " << TQFile::encodeName(info.path()).data() << ", errorcode=" << rc << endl; return false; } @@ -319,7 +319,7 @@ bool KOggPlugin::writeInfo(const KFileMetaInfo& info) const else filename = info.path(); - // nothing in Qt or KDE to get the mode as an int? + // nothing in TQt or KDE to get the mode as an int? struct stat s; stat(TQFile::encodeName(filename), &s); @@ -350,8 +350,8 @@ bool KOggPlugin::writeInfo(const KFileMetaInfo& info) const TQValidator* KOggPlugin::createValidator( const TQString&, const TQString &, const TQString &, - TQObject* parent, const char* name) const { - return new TQRegExpValidator(TQRegExp(".*"), parent, name); + TQObject* tqparent, const char* name) const { + return new TQRegExpValidator(TQRegExp(".*"), tqparent, name); } #include "kfile_ogg.moc" diff --git a/kfile-plugins/ogg/kfile_ogg.h b/kfile-plugins/ogg/kfile_ogg.h index 79130527..47472c6d 100644 --- a/kfile-plugins/ogg/kfile_ogg.h +++ b/kfile-plugins/ogg/kfile_ogg.h @@ -29,16 +29,17 @@ class TQStringList; class KOggPlugin: public KFilePlugin { Q_OBJECT + TQ_OBJECT public: - KOggPlugin( TQObject *parent, const char *name, const TQStringList& args ); + KOggPlugin( TQObject *tqparent, const char *name, const TQStringList& args ); virtual bool readInfo( KFileMetaInfo& info, uint what); virtual bool writeInfo( const KFileMetaInfo& info ) const; virtual TQValidator* createValidator( const TQString& mimetype, const TQString &group, const TQString &key, - TQObject* parent, const char* name) const; + TQObject* tqparent, const char* name) const; }; diff --git a/kfile-plugins/sid/kfile_sid.cpp b/kfile-plugins/sid/kfile_sid.cpp index 444e2ea8..3bdaf681 100644 --- a/kfile-plugins/sid/kfile_sid.cpp +++ b/kfile-plugins/sid/kfile_sid.cpp @@ -36,10 +36,10 @@ typedef KGenericFactory SidFactory; K_EXPORT_COMPONENT_FACTORY(kfile_sid, SidFactory("kfile_sid")) -KSidPlugin::KSidPlugin(TQObject *parent, const char *name, +KSidPlugin::KSidPlugin(TQObject *tqparent, const char *name, const TQStringList &args) - : KFilePlugin(parent, name, args) + : KFilePlugin(tqparent, name, args) { kdDebug(7034) << "sid plugin\n"; @@ -211,13 +211,13 @@ failure: TQValidator* KSidPlugin::createValidator(const TQString& /*mimetype*/, const TQString& group, - const TQString& /*key*/, TQObject* parent, + const TQString& /*key*/, TQObject* tqparent, const char* name) const { kdDebug(7034) << k_funcinfo << endl; // all items in "General" group are strings of max lenght 31 if (group == "General") - return new TQRegExpValidator(TQRegExp(".{,31}"), parent, name); + return new TQRegExpValidator(TQRegExp(".{,31}"), tqparent, name); // all others are read-only return 0; } diff --git a/kfile-plugins/sid/kfile_sid.h b/kfile-plugins/sid/kfile_sid.h index eb809c56..d042e57d 100644 --- a/kfile-plugins/sid/kfile_sid.h +++ b/kfile-plugins/sid/kfile_sid.h @@ -28,14 +28,15 @@ class TQStringList; class KSidPlugin: public KFilePlugin { Q_OBJECT + TQ_OBJECT public: - KSidPlugin(TQObject *parent, const char *name, const TQStringList& args); + KSidPlugin(TQObject *tqparent, const char *name, const TQStringList& args); virtual bool readInfo(KFileMetaInfo& info, uint what); virtual bool writeInfo(const KFileMetaInfo& info) const; TQValidator* createValidator(const TQString& mimetype, const TQString& group, - const TQString& key, TQObject* parent, + const TQString& key, TQObject* tqparent, const char* name) const; }; diff --git a/kfile-plugins/theora/kfile_theora.cpp b/kfile-plugins/theora/kfile_theora.cpp index d426cc7f..0dbefbe7 100644 --- a/kfile-plugins/theora/kfile_theora.cpp +++ b/kfile-plugins/theora/kfile_theora.cpp @@ -56,9 +56,9 @@ typedef KGenericFactory theoraFactory; K_EXPORT_COMPONENT_FACTORY(kfile_theora, theoraFactory( "kfile_theora" )) -theoraPlugin::theoraPlugin(TQObject *parent, const char *name, +theoraPlugin::theoraPlugin(TQObject *tqparent, const char *name, const TQStringList &args) - : KFilePlugin(parent, name, args) + : KFilePlugin(tqparent, name, args) { // kdDebug(7034) << "theora plugin\n"; @@ -136,7 +136,7 @@ bool theoraPlugin::readInfo( KFileMetaInfo& info, uint what) fp = fopen(TQFile::encodeName(info.path()),"rb"); if (!fp) { - kdDebug(7034) << "Unable to open " << TQFile::encodeName(info.path()) << endl; + kdDebug(7034) << "Unable to open " << TQFile::encodeName(info.path()).data() << endl; return false; } diff --git a/kfile-plugins/theora/kfile_theora.h b/kfile-plugins/theora/kfile_theora.h index 740dea2b..13c943c4 100644 --- a/kfile-plugins/theora/kfile_theora.h +++ b/kfile-plugins/theora/kfile_theora.h @@ -31,9 +31,10 @@ class TQStringList; class theoraPlugin: public KFilePlugin { Q_OBJECT + TQ_OBJECT public: - theoraPlugin( TQObject *parent, const char *name, const TQStringList& args ); + theoraPlugin( TQObject *tqparent, const char *name, const TQStringList& args ); virtual bool readInfo( KFileMetaInfo& info, uint what); }; diff --git a/kfile-plugins/wav/kfile_wav.cpp b/kfile-plugins/wav/kfile_wav.cpp index 09e2c2cc..917d8fca 100644 --- a/kfile-plugins/wav/kfile_wav.cpp +++ b/kfile-plugins/wav/kfile_wav.cpp @@ -43,10 +43,10 @@ typedef KGenericFactory WavFactory; K_EXPORT_COMPONENT_FACTORY(kfile_wav, WavFactory( "kfile_wav" )) -KWavPlugin::KWavPlugin(TQObject *parent, const char *name, +KWavPlugin::KWavPlugin(TQObject *tqparent, const char *name, const TQStringList &args) - : KFilePlugin(parent, name, args) + : KFilePlugin(tqparent, name, args) { KFileMimeTypeInfo* info = addMimeTypeInfo( "audio/x-wav" ); @@ -99,7 +99,7 @@ bool KWavPlugin::readInfo( KFileMetaInfo& info, uint /*what*/) if (!file.open(IO_ReadOnly)) { - kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()) << endl; + kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()).data() << endl; return false; } diff --git a/kfile-plugins/wav/kfile_wav.h b/kfile-plugins/wav/kfile_wav.h index a2f8ae40..9eb4d796 100644 --- a/kfile-plugins/wav/kfile_wav.h +++ b/kfile-plugins/wav/kfile_wav.h @@ -27,9 +27,10 @@ class TQStringList; class KWavPlugin: public KFilePlugin { Q_OBJECT + TQ_OBJECT public: - KWavPlugin( TQObject *parent, const char *name, const TQStringList& args ); + KWavPlugin( TQObject *tqparent, const char *name, const TQStringList& args ); virtual bool readInfo( KFileMetaInfo& info, uint what); }; diff --git a/kioslave/audiocd/audiocd.cpp b/kioslave/audiocd/audiocd.cpp index d092ffda..43f61d21 100644 --- a/kioslave/audiocd/audiocd.cpp +++ b/kioslave/audiocd/audiocd.cpp @@ -59,7 +59,7 @@ extern "C" using namespace KIO; using namespace KCDDB; -#define QFL1(x) TQString::fromLatin1(x) +#define TQFL1(x) TQString::tqfromLatin1(x) #define DEFAULT_CD_DEVICE "/dev/cdrom" #define CDDB_INFORMATION "CDDB Information" @@ -149,7 +149,7 @@ public: TQString fileNameTemplate; // URL settable TQString albumTemplate; // URL settable TQString rsearch; - TQString rreplace; + TQString rtqreplace; // Current strings for this CD and or cddb selection TQStringList templateTitles; @@ -189,7 +189,7 @@ AudioCDEncoder *AudioCDProtocol::encoderFromExtension(const TQString& extension) AudioCDEncoder *AudioCDProtocol::determineEncoder(const TQString & filename) { int len = filename.length(); - int pos = filename.findRev('.'); + int pos = filename.tqfindRev('.'); return encoderFromExtension(filename.right(len - pos)); } @@ -251,9 +251,9 @@ struct cdrom_drive * AudioCDProtocol::initRequest(const KURL & url) // circumstances, so build a representation from // the unit number and SCSI device name. // - TQString devname = TQString::fromLatin1( "/dev/%1%2" ) - .arg( drive->dev->given_dev_name ) - .arg( drive->dev->given_unit_number ) ; + TQString devname = TQString::tqfromLatin1( "/dev/%1%2" ) + .tqarg( drive->dev->given_dev_name ) + .tqarg( drive->dev->given_unit_number ) ; kdDebug(7117) << " Using derived name " << devname << endl; d->cd.setDevice( devname ); } @@ -326,7 +326,7 @@ struct cdrom_drive * AudioCDProtocol::initRequest(const KURL & url) TQString name(d->fname); // Remove extension - int dot = name.findRev('.'); + int dot = name.tqfindRev('.'); if (dot >= 0) name.truncate(dot); @@ -365,7 +365,7 @@ struct cdrom_drive * AudioCDProtocol::initRequest(const KURL & url) d->req_track = -1; // Are we in the directory that lists "full CD" files? - d->req_allTracks = (dname.contains(d->s_fullCD)); + d->req_allTracks = (dname.tqcontains(d->s_fullCD)); kdDebug(7117) << "dir=" << dname << " file=" << d->fname << " req_track=" << d->req_track << " which_dir=" << d->which_dir << " full CD?=" << d->req_allTracks << endl; @@ -397,9 +397,9 @@ void AudioCDProtocol::get(const KURL & url) if (!drive) return; - if( d->fname.contains(i18n(CDDB_INFORMATION))){ + if( d->fname.tqcontains(i18n(CDDB_INFORMATION))){ uint choice = 1; - if(d->fname != TQString("%1.txt").arg(i18n(CDDB_INFORMATION))){ + if(d->fname != TQString("%1.txt").tqarg(i18n(CDDB_INFORMATION))){ choice= d->fname.section('_',1,1).section('.',0,0).toInt(); } uint count = 1; @@ -417,7 +417,7 @@ void AudioCDProtocol::get(const KURL & url) } count++; } - if(!found && d->fname.contains(i18n(CDDB_INFORMATION)+":")){ + if(!found && d->fname.tqcontains(i18n(CDDB_INFORMATION)+":")){ mimeType("text/html"); //data(TQCString( d->fname.latin1() )); // send an empty TQByteArray to signal end of data. @@ -465,7 +465,7 @@ void AudioCDProtocol::get(const KURL & url) unsigned long size = encoder->size(time_secs); totalSize(size); - emit mimeType(QFL1(encoder->mimeType())); + emit mimeType(TQFL1(encoder->mimeType())); // Read data (track/disk) from the cd paranoiaRead(drive, firstSector, lastSector, encoder, url.fileName(), size); @@ -504,7 +504,7 @@ void AudioCDProtocol::stat(const KURL & url) UDSAtom atom; atom.m_uds = KIO::UDS_NAME; - atom.m_str = url.fileName().replace('/', QFL1("%2F")); + atom.m_str = url.fileName().tqreplace('/', TQFL1("%2F")); kdDebug(7117) << k_funcinfo << atom.m_str << endl; entry.append(atom); @@ -610,15 +610,15 @@ void AudioCDProtocol::listDir(const KURL & url) for ( it = d->cddbList.begin(); it != d->cddbList.end(); ++it ){ (*it).toString(); if(count == 1) - app_file(entry, TQString("%1.txt").arg(i18n(CDDB_INFORMATION)), ((*it).toString().length())+1); + app_file(entry, TQString("%1.txt").tqarg(i18n(CDDB_INFORMATION)), ((*it).toString().length())+1); else - app_file(entry, TQString("%1_%2.txt").arg(i18n(CDDB_INFORMATION)).arg(count), ((*it).toString().length())+1); + app_file(entry, TQString("%1_%2.txt").tqarg(i18n(CDDB_INFORMATION)).tqarg(count), ((*it).toString().length())+1); count++; listEntry(entry, false); } // Error if( count == 1 ) { - app_file(entry, TQString("%1: %2.txt").arg(i18n(CDDB_INFORMATION)).arg(CDDB::resultToString(d->cddbResult)), ((*it).toString().length())+1); + app_file(entry, TQString("%1: %2.txt").tqarg(i18n(CDDB_INFORMATION)).tqarg(CDDB::resultToString(d->cddbResult)), ((*it).toString().length())+1); count++; listEntry(entry, false); } @@ -838,7 +838,7 @@ void AudioCDProtocol::paranoiaRead( if (0 == buf) { kdDebug(7117) << "Unrecoverable error in paranoia_read" << endl; ok = false; - error( ERR_SLAVE_DEFINED, i18n( "Error reading audio data for %1 from the CD" ).arg( fileName ) ); + error( ERR_SLAVE_DEFINED, i18n( "Error reading audio data for %1 from the CD" ).tqarg( fileName ) ); break; } @@ -848,7 +848,7 @@ void AudioCDProtocol::paranoiaRead( if(encoderProcessed == -1){ kdDebug(7117) << "Encoder processing error, stopping." << endl; ok = false; - TQString errMsg = i18n( "Couldn't read %1: encoding failed" ).arg( fileName ); + TQString errMsg = i18n( "Couldn't read %1: encoding failed" ).tqarg( fileName ); TQString details = encoder->lastErrorMessage(); if ( !details.isEmpty() ) errMsg += "\n" + details; @@ -926,7 +926,7 @@ void AudioCDProtocol::paranoiaRead( processedSize(processed); } else if ( ok ) // i.e. no error message already emitted - error( ERR_SLAVE_DEFINED, i18n( "Couldn't read %1: encoding failed" ).arg( fileName ) ); + error( ERR_SLAVE_DEFINED, i18n( "Couldn't read %1: encoding failed" ).tqarg( fileName ) ); paranoia_free(paranoia); paranoia = 0; @@ -953,24 +953,24 @@ void AudioCDProtocol::parseURLArgs(const KURL & url) { TQString token(*it); - int equalsPos(token.find('=')); + int equalsPos(token.tqfind('=')); if (-1 == equalsPos) continue; TQString attribute(token.left(equalsPos)); TQString value(token.mid(equalsPos + 1)); - if (attribute == QFL1("device")) + if (attribute == TQFL1("device")) d->device = value; - else if (attribute == QFL1("paranoia_level")) + else if (attribute == TQFL1("paranoia_level")) d->paranoiaLevel = value.toInt(); - else if (attribute == QFL1("fileNameTemplate")) + else if (attribute == TQFL1("fileNameTemplate")) d->fileNameTemplate = value; - else if (attribute == QFL1("albumNameTemplate")) + else if (attribute == TQFL1("albumNameTemplate")) d->albumTemplate = value; - else if (attribute == QFL1("cddbChoice")) + else if (attribute == TQFL1("cddbChoice")) d->cddbUserChoice = value.toInt(); - else if (attribute == QFL1("niceLevel")){ + else if (attribute == TQFL1("niceLevel")){ int niceLevel = value.toInt(); if(setpriority(PRIO_PROCESS, getpid(), niceLevel) != 0) kdDebug(7117) << "Setting nice level to (" << niceLevel << ") failed." << endl; @@ -984,12 +984,12 @@ void AudioCDProtocol::parseURLArgs(const KURL & url) */ void AudioCDProtocol::loadSettings() { - KConfig *config = new KConfig(QFL1("kcmaudiocdrc"), true /*readonly*/, false /*no kdeglobals*/); + KConfig *config = new KConfig(TQFL1("kcmaudiocdrc"), true /*readonly*/, false /*no kdeglobals*/); - config->setGroup(QFL1("CDDA")); + config->setGroup(TQFL1("CDDA")); - if (!config->readBoolEntry(QFL1("autosearch"),true)) { - d->device = config->readEntry(QFL1("device"),QFL1(DEFAULT_CD_DEVICE)); + if (!config->readBoolEntry(TQFL1("autosearch"),true)) { + d->device = config->readEntry(TQFL1("device"),TQFL1(DEFAULT_CD_DEVICE)); } d->paranoiaLevel = 1; // enable paranoia error correction, but allow skipping @@ -1016,7 +1016,7 @@ void AudioCDProtocol::loadSettings() d->fileNameTemplate = config->readEntry("file_name_template", "%{albumartist} - %{number} - %{title}"); d->albumTemplate = config->readEntry("album_template", "%{albumartist} - %{albumtitle}"); d->rsearch = config->readEntry("regexp_search"); - d->rreplace = config->readEntry("regexp_replace"); + d->rtqreplace = config->readEntry("regexp_tqreplace"); // if the regular expressions are enclosed in qoutes. remove them // otherwise it is not possible to search for a space " ", since an empty (only spaces) value is not // supported by KConfig, so the space has to be qouted, but then here the regexp searches really for " " @@ -1026,9 +1026,9 @@ void AudioCDProtocol::loadSettings() { d->rsearch=d->rsearch.mid(1, d->rsearch.length()-2); } - if (qoutedString.exactMatch(d->rreplace)) + if (qoutedString.exactMatch(d->rtqreplace)) { - d->rreplace=d->rreplace.mid(1, d->rreplace.length()-2); + d->rtqreplace=d->rtqreplace.mid(1, d->rtqreplace.length()-2); } // Tell the encoders to load their settings @@ -1058,7 +1058,7 @@ void AudioCDProtocol::generateTemplateTitles() { for (unsigned int i = 0; i < d->tracks; i++){ TQString n; - d->templateTitles.append( i18n("Track %1").arg(n.sprintf("%02d", i + 1))); + d->templateTitles.append( i18n("Track %1").tqarg(n.sprintf("%02d", i + 1))); } return; } @@ -1076,12 +1076,12 @@ void AudioCDProtocol::generateTemplateTitles() macros["title"] = (info.trackInfoList[i].title); TQString n; macros["number"] = n.sprintf("%02d", i + 1); - //macros["number"] = TQString("%1").arg(i+1, 2, 10); + //macros["number"] = TQString("%1").tqarg(i+1, 2, 10); macros["genre"] = info.genre; macros["year"] = TQString::number(info.year); - TQString title = KMacroExpander::expandMacros(d->fileNameTemplate, macros, '%').replace('/', QFL1("%2F")); - title.replace( TQRegExp(d->rsearch), d->rreplace ); + TQString title = KMacroExpander::expandMacros(d->fileNameTemplate, macros, '%').tqreplace('/', TQFL1("%2F")); + title.tqreplace( TQRegExp(d->rsearch), d->rtqreplace ); d->templateTitles.append(title); } @@ -1090,8 +1090,8 @@ void AudioCDProtocol::generateTemplateTitles() macros["albumtitle"] = info.title; macros["genre"] = info.genre; macros["year"] = TQString::number(info.year); - d->templateAlbumName = KMacroExpander::expandMacros(d->albumTemplate, macros, '%').replace('/', QFL1("%2F")); - d->templateAlbumName.replace( TQRegExp(d->rsearch), d->rreplace ); + d->templateAlbumName = KMacroExpander::expandMacros(d->albumTemplate, macros, '%').tqreplace('/', TQFL1("%2F")); + d->templateAlbumName.tqreplace( TQRegExp(d->rsearch), d->rtqreplace ); } /** diff --git a/kioslave/audiocd/kcmaudiocd/audiocdconfig.ui b/kioslave/audiocd/kcmaudiocd/audiocdconfig.ui index a742a4cc..271c6261 100644 --- a/kioslave/audiocd/kcmaudiocd/audiocdconfig.ui +++ b/kioslave/audiocd/kcmaudiocd/audiocdconfig.ui @@ -4,7 +4,7 @@ AudiocdConfig - + 0 0 @@ -12,9 +12,9 @@ 563 - + - + @@ -26,7 +26,7 @@ 0 - + tabWidget @@ -38,11 +38,11 @@ 0 - + - + - + tab @@ -63,14 +63,14 @@ Expanding - + 20 210 - + encoderPriority @@ -81,7 +81,7 @@ unnamed - + niceLevel @@ -101,7 +101,7 @@ NoMarks - + textLabel2 @@ -109,31 +109,31 @@ Highest - + textLabel3 Lowest - + AlignVCenter|AlignRight - + textLabel4 Normal - + AlignCenter - + cd_device_string @@ -147,7 +147,7 @@ Specify a location for the drive you want to use. Normally, this is a file inside the /dev folder representing your CD or DVD drive. - + cd_specify_device @@ -158,7 +158,7 @@ Check this to specify a CD device different from the one which is detected automatically - + ec_enable_check @@ -172,7 +172,7 @@ If you uncheck this option, the slave will not try to use error correction which can be useful for reading damaged CDs. However, this feature can be problematic in some cases, so you can switch it off here. - + ec_skip_check @@ -193,7 +193,7 @@ Fixed - + 20 20 @@ -202,7 +202,7 @@ - + tab @@ -213,7 +213,7 @@ unnamed - + fileNameGroupBox @@ -224,7 +224,7 @@ unnamed - + textLabel1_2 @@ -232,15 +232,15 @@ The following macros will be expanded: - + - layout7 + tqlayout7 unnamed - + textLabel13 @@ -248,7 +248,7 @@ Genre - + textLabel7 @@ -256,7 +256,7 @@ Track Number - + textLabel2_3 @@ -264,7 +264,7 @@ %{title} - + textLabel11 @@ -272,7 +272,7 @@ Year - + textLabel3_3 @@ -280,7 +280,7 @@ Track Title - + textLabel9 @@ -288,7 +288,7 @@ Album Artist - + textLabel10 @@ -296,7 +296,7 @@ %{year} - + textLabel6 @@ -304,7 +304,7 @@ %{albumtitle} - + textLabel5 @@ -312,7 +312,7 @@ Album Title - + textLabel12 @@ -320,7 +320,7 @@ %{genre} - + textLabel8 @@ -328,7 +328,7 @@ %{albumartist} - + textLabel4_2 @@ -345,7 +345,7 @@ - + groupBox2 @@ -356,7 +356,7 @@ unnamed - + textLabel2_2 @@ -364,7 +364,7 @@ Selection: - + textLabel1 @@ -372,11 +372,11 @@ Regular expression used on all file names. For example using selection " " and replace with "_" would replace all the spaces with underlines. - + WordBreak|AlignVCenter - + inputlabel @@ -384,7 +384,7 @@ Input: - + outputLabel @@ -392,7 +392,7 @@ Output: - + exampleLabel @@ -400,7 +400,7 @@ Example - + exampleOutput @@ -408,7 +408,7 @@ Cool artist - example audio file.wav - + example @@ -416,17 +416,17 @@ Cool artist - example audio file.wav - + kcfg_replaceInput - + kcfg_replaceOutput - + textLabel3_2 @@ -460,14 +460,14 @@ Expanding - + 21 16 - + fileNameGroupBox_2 @@ -478,7 +478,7 @@ unnamed - + fileNameLabel_2 @@ -486,15 +486,15 @@ The following macros will be expanded: - + - layout9 + tqlayout9 unnamed - + textLabel20 @@ -502,7 +502,7 @@ Year - + textLabel15 @@ -510,7 +510,7 @@ %{albumartist} - + textLabel16 @@ -518,7 +518,7 @@ %{year} - + textLabel21 @@ -526,7 +526,7 @@ Genre - + textLabel19 @@ -534,7 +534,7 @@ Album Artist - + textLabel18 @@ -542,7 +542,7 @@ Album Title - + textLabel17 @@ -550,7 +550,7 @@ %{genre} - + textLabel14 @@ -570,7 +570,7 @@ Expanding - + 20 31 @@ -618,10 +618,10 @@ kcmodule.h - + toggleLowpass() - - + + klineedit.h diff --git a/kioslave/audiocd/kcmaudiocd/kcmaudiocd.cpp b/kioslave/audiocd/kcmaudiocd/kcmaudiocd.cpp index 87614806..166aa126 100644 --- a/kioslave/audiocd/kcmaudiocd/kcmaudiocd.cpp +++ b/kioslave/audiocd/kcmaudiocd/kcmaudiocd.cpp @@ -34,8 +34,8 @@ #include "kcmaudiocd.moc" #include -KAudiocdModule::KAudiocdModule(TQWidget *parent, const char *name) - : AudiocdConfig(parent, name), configChanged(false) +KAudiocdModule::KAudiocdModule(TQWidget *tqparent, const char *name) + : AudiocdConfig(tqparent, name), configChanged(false) { TQString foo = i18n("Report errors found on the cd."); @@ -51,7 +51,7 @@ KAudiocdModule::KAudiocdModule(TQWidget *parent, const char *name) KConfigSkeleton *config = NULL; TQWidget *widget = encoder->getConfigureWidget(&config); if(widget && config){ - tabWidget->addTab(widget, i18n("%1 Encoder").arg(encoder->type())); + tabWidget->addTab(widget, i18n("%1 Encoder").tqarg(encoder->type())); KConfigDialogManager *configManager = new KConfigDialogManager(widget, config, TQString(encoder->type()+" EncoderConfigManager").latin1()); encoderSettings.append(configManager); } @@ -123,7 +123,7 @@ void KAudiocdModule::updateExample() TQString deqoutedReplaceInput=removeQoutes(kcfg_replaceInput->text()); TQString deqoutedReplaceOutput=removeQoutes(kcfg_replaceOutput->text()); - text.replace( TQRegExp(deqoutedReplaceInput), deqoutedReplaceOutput ); + text.tqreplace( TQRegExp(deqoutedReplaceInput), deqoutedReplaceOutput ); exampleOutput->setText(text); } @@ -165,7 +165,7 @@ void KAudiocdModule::save() { replaceOutput=TQString("\"")+replaceOutput+TQString("\""); } config->writeEntry("regexp_search", replaceInput); - config->writeEntry("regexp_replace", replaceOutput); + config->writeEntry("regexp_tqreplace", replaceOutput); } KConfigDialogManager *widget; @@ -204,7 +204,7 @@ void KAudiocdModule::load(bool useDefaults) { fileNameLineEdit->setText(config->readEntry("file_name_template", "%{albumartist} - %{number} - %{title}")); albumNameLineEdit->setText(config->readEntry("album_name_template", "%{albumartist} - %{albumtitle}")); kcfg_replaceInput->setText(config->readEntry("regexp_search")); - kcfg_replaceOutput->setText(config->readEntry("regexp_replace")); + kcfg_replaceOutput->setText(config->readEntry("regexp_tqreplace")); example->setText(config->readEntry("example", i18n("Cool artist - example audio file.wav"))); } @@ -259,9 +259,9 @@ TQString KAudiocdModule::quickHelp() const extern "C" { - KCModule *create_audiocd(TQWidget *parent, const char */*name*/) + KCModule *create_audiocd(TQWidget *tqparent, const char */*name*/) { - return new KAudiocdModule(parent, "kcmaudiocd"); + return new KAudiocdModule(tqparent, "kcmaudiocd"); } } diff --git a/kioslave/audiocd/kcmaudiocd/kcmaudiocd.h b/kioslave/audiocd/kcmaudiocd/kcmaudiocd.h index 4d51134d..b69a6784 100644 --- a/kioslave/audiocd/kcmaudiocd/kcmaudiocd.h +++ b/kioslave/audiocd/kcmaudiocd/kcmaudiocd.h @@ -16,8 +16,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - Permission is also granted to link this program with the Qt - library, treating Qt like a library that normally accompanies the + Permission is also granted to link this program with the TQt + library, treating TQt like a library that normally accompanies the operating system kernel, whether or not that is in fact the case. */ @@ -32,10 +32,11 @@ class KConfigDialogManager; class KAudiocdModule : public AudiocdConfig { Q_OBJECT + TQ_OBJECT public: - KAudiocdModule(TQWidget *parent=0, const char *name=0); + KAudiocdModule(TQWidget *tqparent=0, const char *name=0); ~KAudiocdModule(); TQString quickHelp() const; diff --git a/kioslave/audiocd/plugins/audiocdencoder.cpp b/kioslave/audiocd/plugins/audiocdencoder.cpp index 6dfbec18..200534a4 100644 --- a/kioslave/audiocd/plugins/audiocdencoder.cpp +++ b/kioslave/audiocd/plugins/audiocdencoder.cpp @@ -78,12 +78,12 @@ void AudioCDEncoder::findAllPlugins(KIO::SlaveBase *slave, TQPtrList &) = (void (*)(KIO::SlaveBase *slave, TQPtrList &encoders)) function; diff --git a/kioslave/audiocd/plugins/audiocdencoder.h b/kioslave/audiocd/plugins/audiocdencoder.h index cac9b2aa..9f58536f 100644 --- a/kioslave/audiocd/plugins/audiocdencoder.h +++ b/kioslave/audiocd/plugins/audiocdencoder.h @@ -31,7 +31,7 @@ class AudioCDEncoder { public: /** * Constructor. - * @param slave parent that this classes can use to call data() with + * @param slave tqparent that this classes can use to call data() with * when finished encoding bits. */ explicit AudioCDEncoder(KIO::SlaveBase *slave) : ioslave(slave) {}; @@ -120,7 +120,7 @@ public: /** * Returns the last error message; called when e.g. read() returns -1. */ - virtual TQString lastErrorMessage() const { return TQString::null; } + virtual TQString lastErrorMessage() const { return TQString(); } /** * Helper function to load all of the AudioCD Encoders from libraries. diff --git a/kioslave/audiocd/plugins/flac/encoderflac.cpp b/kioslave/audiocd/plugins/flac/encoderflac.cpp index 4be1aeb3..fd98f8b4 100644 --- a/kioslave/audiocd/plugins/flac/encoderflac.cpp +++ b/kioslave/audiocd/plugins/flac/encoderflac.cpp @@ -53,9 +53,9 @@ public: }; #ifdef LEGACY_FLAC -static FLAC__StreamEncoderWriteStatus WriteCallback(const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame, void *client_data) +static FLAC__StreamEncoderWritetqStatus WriteCallback(const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame, void *client_data) #else -static FLAC__StreamEncoderWriteStatus WriteCallback(const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], size_t bytes, unsigned samples, unsigned current_frame, void *client_data) +static FLAC__StreamEncoderWritetqStatus WriteCallback(const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], size_t bytes, unsigned samples, unsigned current_frame, void *client_data) #endif { EncoderFLAC::Private *d = (EncoderFLAC::Private*)client_data; @@ -80,7 +80,7 @@ static void MetadataCallback (const FLAC__StreamEncoder *encoder, const FLAC__St } /* -static FLAC__SeekableStreamEncoderSeekStatus SeekCallback(const FLAC__SeekableStreamEncoder *encoder, FLAC__uint64 absolute_byte_offset, void *client_data) +static FLAC__SeekableStreamEncoderSeektqStatus SeekCallback(const FLAC__SeekableStreamEncoder *encoder, FLAC__uint64 absolute_byte_offset, void *client_data) {} ; */ @@ -177,14 +177,14 @@ void EncoderFLAC::fillSongInfo( KCDDB::CDInfo info, int track, const TQString &c // d->metadata[1] = FLAC__metadata_object_new(FLAC__METADATA_TYPE_PADDING); // d->metadata[2] = FLAC__metadata_object_new(FLAC__METADATA_TYPE_SEEKTABLE) - typedef QPair Comment; + typedef TQPair Comment; Comment comments[7] = { Comment("Title", info.trackInfoList[track].get("title")), Comment("Artist", info.get("artist")), Comment("Album", info.get("title")), Comment("Genre", info.get("genre")), Comment("Tracknumber", TQString::number(track+1)), Comment("Comment", comment), - Comment("Date", TQString::null )}; + Comment("Date", TQString() )}; if (info.get("Year").toInt() > 0) { TQDateTime dt(TQDate(info.get("Year").toInt(), 1, 1)); comments[6] = Comment("Date", dt.toString(Qt::ISODate)); diff --git a/kioslave/audiocd/plugins/lame/collectingprocess.cpp b/kioslave/audiocd/plugins/lame/collectingprocess.cpp index 42bdf206..58485fa3 100644 --- a/kioslave/audiocd/plugins/lame/collectingprocess.cpp +++ b/kioslave/audiocd/plugins/lame/collectingprocess.cpp @@ -20,11 +20,11 @@ In addition, as a special exception, the copyright holders give permission to link the code of this program with any edition of - the Qt library by Trolltech AS, Norway (or with modified versions - of Qt that use the same license as Qt), and distribute linked + the TQt library by Trolltech AS, Norway (or with modified versions + of TQt that use the same license as TQt), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than - Qt. If you modify this file, you may extend this exception to + TQt. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. @@ -47,8 +47,8 @@ struct CollectingProcess::Private { }; -CollectingProcess::CollectingProcess( TQObject * parent, const char * name ) - : KProcess( parent, name ) +CollectingProcess::CollectingProcess( TQObject * tqparent, const char * name ) + : KProcess( tqparent, name ) { d = new Private(); } diff --git a/kioslave/audiocd/plugins/lame/collectingprocess.h b/kioslave/audiocd/plugins/lame/collectingprocess.h index e9f0def4..bd5abca9 100644 --- a/kioslave/audiocd/plugins/lame/collectingprocess.h +++ b/kioslave/audiocd/plugins/lame/collectingprocess.h @@ -20,11 +20,11 @@ In addition, as a special exception, the copyright holders give permission to link the code of this program with any edition of - the Qt library by Trolltech AS, Norway (or with modified versions - of Qt that use the same license as Qt), and distribute linked + the TQt library by Trolltech AS, Norway (or with modified versions + of TQt that use the same license as TQt), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than - Qt. If you modify this file, you may extend this exception to + TQt. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. @@ -45,8 +45,9 @@ */ class CollectingProcess : public KProcess { Q_OBJECT + TQ_OBJECT public: - CollectingProcess( TQObject * parent = 0, const char * name = 0 ); + CollectingProcess( TQObject * tqparent = 0, const char * name = 0 ); ~CollectingProcess(); /** Starts the process in NotifyOnExit mode and writes in to stdin of diff --git a/kioslave/audiocd/plugins/lame/encoderlame.cpp b/kioslave/audiocd/plugins/lame/encoderlame.cpp index 5e59c6a4..6154145b 100644 --- a/kioslave/audiocd/plugins/lame/encoderlame.cpp +++ b/kioslave/audiocd/plugins/lame/encoderlame.cpp @@ -126,31 +126,31 @@ void EncoderLame::loadSettings(){ if (method == 0) { // Constant Bitrate Encoding args.append("-b"); - args.append(TQString("%1").arg(bitrates[settings->cbr_bitrate()])); + args.append(TQString("%1").tqarg(bitrates[settings->cbr_bitrate()])); d->bitrate = bitrates[settings->cbr_bitrate()]; args.append("-q"); - args.append(TQString("%1").arg(quality)); + args.append(TQString("%1").tqarg(quality)); } else { // Variable Bitrate Encoding if (settings->vbr_average_br()) { args.append("--abr"); - args.append(TQString("%1").arg(bitrates[settings->vbr_mean_brate()])); + args.append(TQString("%1").tqarg(bitrates[settings->vbr_mean_brate()])); d->bitrate = bitrates[settings->vbr_mean_brate()]; if (settings->vbr_min_br()){ args.append("-b"); - args.append(TQString("%1").arg(bitrates[settings->vbr_min_brate()])); + args.append(TQString("%1").tqarg(bitrates[settings->vbr_min_brate()])); } if (settings->vbr_min_hard()) args.append("-F"); if (settings->vbr_max_br()){ args.append("-B"); - args.append(TQString("%1").arg(bitrates[settings->vbr_max_brate()])); + args.append(TQString("%1").tqarg(bitrates[settings->vbr_max_brate()])); } } else { d->bitrate = 128; args.append("-V"); - args.append(TQString("%1").arg(quality)); + args.append(TQString("%1").tqarg(quality)); } if ( !settings->vbr_xing_tag() ) args.append("-t"); @@ -186,21 +186,21 @@ void EncoderLame::loadSettings(){ if ( settings->enable_lowpass() ) { args.append("--lowpass"); - args.append(TQString("%1").arg(settings->lowfilterfreq())); + args.append(TQString("%1").tqarg(settings->lowfilterfreq())); if (settings->set_lpf_width()){ args.append("--lowpass-width"); - args.append(TQString("%1").arg(settings->lowfilterwidth())); + args.append(TQString("%1").tqarg(settings->lowfilterwidth())); } } if ( settings->enable_highpass()) { args.append("--hipass"); - args.append(TQString("%1").arg(settings->highfilterfreq())); + args.append(TQString("%1").tqarg(settings->highfilterfreq())); if (settings->set_hpf_width()){ args.append("--hipass-width"); - args.append(TQString("%1").arg(settings->highfilterwidth())); + args.append(TQString("%1").tqarg(settings->highfilterwidth())); } } } @@ -215,7 +215,7 @@ long EncoderLame::readInit(long /*size*/){ TQString prefix = locateLocal("tmp", ""); d->tempFile = new KTempFile(prefix, ".mp3"); d->tempFile->setAutoDelete(true); - d->lastErrorMessage = TQString::null; + d->lastErrorMessage = TQString(); d->processHasExited = false; // -x bitswap @@ -341,16 +341,16 @@ void EncoderLame::fillSongInfo( KCDDB::CDInfo info, int track, const TQString &c trackInfo.append(info.get("title").toString()); trackInfo.append("--ty"); - trackInfo.append(TQString("%1").arg(info.get("year").toString())); + trackInfo.append(TQString("%1").tqarg(info.get("year").toString())); trackInfo.append("--tc"); trackInfo.append(comment); trackInfo.append("--tn"); - trackInfo.append(TQString("%1").arg(track+1)); + trackInfo.append(TQString("%1").tqarg(track+1)); const TQString genre = info.get( "genre" ).toString(); - if ( d->genreList.find( genre ) != d->genreList.end() ) + if ( d->genreList.tqfind( genre ) != d->genreList.end() ) { trackInfo.append("--tg"); trackInfo.append(genre); diff --git a/kioslave/audiocd/plugins/lame/encoderlame.h b/kioslave/audiocd/plugins/lame/encoderlame.h index ba02cf4f..1f5044b0 100644 --- a/kioslave/audiocd/plugins/lame/encoderlame.h +++ b/kioslave/audiocd/plugins/lame/encoderlame.h @@ -30,6 +30,7 @@ class KProcess; class EncoderLame : public TQObject, public AudioCDEncoder { Q_OBJECT + TQ_OBJECT public: EncoderLame(KIO::SlaveBase *slave); diff --git a/kioslave/audiocd/plugins/lame/encoderlameconfig.ui b/kioslave/audiocd/plugins/lame/encoderlameconfig.ui index 74060353..7b7dcf17 100644 --- a/kioslave/audiocd/plugins/lame/encoderlameconfig.ui +++ b/kioslave/audiocd/plugins/lame/encoderlameconfig.ui @@ -1,10 +1,10 @@ EncoderLameConfig - + LameConfig - + 0 0 @@ -16,7 +16,7 @@ unnamed - + GroupBox1_2 @@ -33,7 +33,7 @@ 6 - + kcfg_copyright @@ -47,7 +47,7 @@ Mark MP3 file as copyrighted. - + kcfg_original @@ -64,7 +64,7 @@ Mark MP3 file as an original. - + kcfg_iso @@ -78,7 +78,7 @@ This selects the maximal bitrate used for encoding. - + kcfg_crc @@ -86,7 +86,7 @@ &Error protection - + kcfg_id3_tag @@ -105,7 +105,7 @@ - + buttonGroup1 @@ -116,7 +116,7 @@ unnamed - + Layout21 @@ -130,7 +130,7 @@ 6 - + TextLabel3_2 @@ -138,7 +138,7 @@ Low - + kcfg_quality @@ -161,7 +161,7 @@ NoMarks - + TextLabel2_2 @@ -171,21 +171,21 @@ - + TextLabel1_2 &Quality: - + AlignLeft kcfg_quality - + Stereo @@ -213,7 +213,7 @@ This option controls whether MP3 files are recorded with one or two channels. Note that choosing <i>"Mono"</i> reduces file size, but also kills the stereo signal. - + kcfg_bitrate_constant @@ -221,7 +221,7 @@ Constant bitrate - + kcfg_bitrate_variable @@ -244,14 +244,14 @@ Expanding - + 20 16 - + vbr_settings @@ -271,7 +271,7 @@ 6 - + kcfg_vbr_average_br @@ -282,7 +282,7 @@ This selects the maximal bitrate used for encoding. - + 32 kbs @@ -363,7 +363,7 @@ 13 - + kcfg_vbr_max_br @@ -377,7 +377,7 @@ This selects the maximal bitrate used for encoding. - + kcfg_vbr_xing_tag @@ -391,7 +391,7 @@ This writes additional information related to VBR as introduced by Xing. - + 32 kbs @@ -472,7 +472,7 @@ 9 - + kcfg_vbr_min_hard @@ -483,7 +483,7 @@ Minimal &value is a hard limit - + kcfg_vbr_min_br @@ -497,7 +497,7 @@ This selects the minimal bitrate used for encoding. - + 32 kbs @@ -580,7 +580,7 @@ - + cbr_settings @@ -597,7 +597,7 @@ 6 - + TextLabel4_2 @@ -608,7 +608,7 @@ kcfg_cbr_bitrate - + 32 kbs @@ -691,14 +691,14 @@ - + GroupBox83_2 Filter Settings - + AlignVCenter|AlignLeft @@ -715,7 +715,7 @@ 6 - + kcfg_enable_lowpass @@ -723,7 +723,7 @@ &Lowpass filter cutoff above - + kcfg_lowfilterfreq @@ -737,7 +737,7 @@ 20000 - + kcfg_enable_highpass @@ -745,7 +745,7 @@ &Highpass filter cutoff below - + kcfg_highfilterfreq @@ -759,7 +759,7 @@ 200 - + kcfg_set_lpf_width @@ -770,7 +770,7 @@ Low&pass filter width - + kcfg_lowfilterwidth @@ -784,7 +784,7 @@ 5000 - + kcfg_set_hpf_width @@ -795,7 +795,7 @@ Highpa&ss filter width - + kcfg_highfilterwidth @@ -926,5 +926,5 @@ kcfg_set_hpf_width kcfg_highfilterwidth - +
diff --git a/kioslave/audiocd/plugins/vorbis/encodervorbis.cpp b/kioslave/audiocd/plugins/vorbis/encodervorbis.cpp index 739e1c8f..2caab8e5 100644 --- a/kioslave/audiocd/plugins/vorbis/encodervorbis.cpp +++ b/kioslave/audiocd/plugins/vorbis/encodervorbis.cpp @@ -301,7 +301,7 @@ void EncoderVorbis::fillSongInfo( KCDDB::CDInfo info, int track, const TQString if( !d->write_vorbis_comments ) return; - typedef QPair CommentField; + typedef TQPair CommentField; TQValueList commentFields; commentFields.append(CommentField("title", info.trackInfoList[track].get("title"))); diff --git a/kioslave/audiocd/plugins/vorbis/encodervorbisconfig.ui b/kioslave/audiocd/plugins/vorbis/encodervorbisconfig.ui index 17000745..5e057de0 100644 --- a/kioslave/audiocd/plugins/vorbis/encodervorbisconfig.ui +++ b/kioslave/audiocd/plugins/vorbis/encodervorbisconfig.ui @@ -1,10 +1,10 @@ EncoderVorbisConfig - + VorbisConfig - + 0 0 @@ -16,7 +16,7 @@ unnamed - + kcfg_vorbis_enc_method @@ -27,7 +27,7 @@ unnamed - + vorbis_enc_quality @@ -38,7 +38,7 @@ true - + vorbis_enc_bitrate @@ -48,7 +48,7 @@ - + vorbis_bitrate_settings @@ -68,7 +68,7 @@ 6 - + 32 kbs @@ -149,7 +149,7 @@ 1 - + 32 kbs @@ -230,7 +230,7 @@ 13 - + kcfg_set_vorbis_min_br @@ -241,7 +241,7 @@ M&inimal bitrate: - + kcfg_set_vorbis_max_br @@ -252,7 +252,7 @@ Ma&ximal bitrate: - + 128 kbs @@ -285,7 +285,7 @@ 1 - + kcfg_set_vorbis_nominal_br @@ -298,7 +298,7 @@ - + vorbis_quality_settings @@ -340,7 +340,7 @@ - + GroupBox193 @@ -357,7 +357,7 @@ 6 - + kcfg_vorbis_comments @@ -383,7 +383,7 @@ Expanding - + 20 51 @@ -417,7 +417,7 @@ kcfg_vorbis_quality kcfg_vorbis_comments - + knuminput.h knuminput.h diff --git a/kioslave/audiocd/plugins/wav/encoderwav.cpp b/kioslave/audiocd/plugins/wav/encoderwav.cpp index 8052ce41..57e455c1 100644 --- a/kioslave/audiocd/plugins/wav/encoderwav.cpp +++ b/kioslave/audiocd/plugins/wav/encoderwav.cpp @@ -63,7 +63,7 @@ long EncoderWav::readInit(long byteCount){ 0x00, 0x00, 0x00, 0x00 // 40 byteCount }; - Q_INT32 wavSize(byteCount + 44 - 8); + TQ_INT32 wavSize(byteCount + 44 - 8); riffHeader[4] = (wavSize >> 0 ) & 0xff; diff --git a/kmid/README b/kmid/README index 52c5f759..3b819871 100644 --- a/kmid/README +++ b/kmid/README @@ -60,7 +60,7 @@ Index 3. Compiling consoleKMid ----------------- - Do a configure from the parent directory, then go to the player directory, + Do a configure from the tqparent directory, then go to the player directory, and do a 'make' . Simple , isn't it ? By default it will use the external midi device, if you want to use another diff --git a/kmid/channel.cpp b/kmid/channel.cpp index 7d077dd7..a4547767 100644 --- a/kmid/channel.cpp +++ b/kmid/channel.cpp @@ -39,7 +39,7 @@ #include "instrname.h" #include -KMidChannel::KMidChannel(int chn,TQWidget *parent) : TQWidget (parent) +KMidChannel::KMidChannel(int chn,TQWidget *tqparent) : TQWidget (tqparent) { channel=chn; replay=TRUE; @@ -48,7 +48,7 @@ KMidChannel::KMidChannel(int chn,TQWidget *parent) : TQWidget (parent) keyboard = TQPixmap(locate("appdata","icons/keyboard.xpm")); penB = new TQPen (black); penW = new TQPen (white); - penT = new TQPen (colorGroup().background()); + penT = new TQPen (tqcolorGroup().background()); KConfig *kcfg=KGlobal::instance()->config(); kcfg->setGroup("KMid"); @@ -87,7 +87,7 @@ void KMidChannel::paintEvent( TQPaintEvent * ) TQPainter *qpaint=new TQPainter(this); - TQString tmp = i18n("Channel %1").arg(channel); + TQString tmp = i18n("Channel %1").tqarg(channel); qpaint->setFont(*qcvfont); qpaint->setPen(*penB); qpaint->drawText(2,20,tmp); @@ -185,7 +185,7 @@ void KMidChannel::reset(int level) replay=TRUE; }; - repaint(FALSE); + tqrepaint(FALSE); } void KMidChannel::saveState(bool *p,int *pgm) @@ -198,7 +198,7 @@ void KMidChannel::loadState(bool *p,int *pgm) { for (int i=0;i<128;i++) pressed[i]=p[i]; instrumentCombo->setCurrentItem(*pgm); - repaint(FALSE); + tqrepaint(FALSE); } void KMidChannel::pgmChanged(int i) diff --git a/kmid/channel.h b/kmid/channel.h index 7051247b..7eb4166c 100644 --- a/kmid/channel.h +++ b/kmid/channel.h @@ -36,9 +36,10 @@ class TQFont; class TQComboBox; class KMidButton; -class KMidChannel : public QWidget +class KMidChannel : public TQWidget { Q_OBJECT + TQ_OBJECT private: bool pressed[128]; // The 128 keys diff --git a/kmid/channel3d.cpp b/kmid/channel3d.cpp index d3bef7fd..8a24410b 100644 --- a/kmid/channel3d.cpp +++ b/kmid/channel3d.cpp @@ -25,7 +25,7 @@ #include "channel3d.h" #include -KMidChannel3D::KMidChannel3D (int chn,TQWidget *parent) : KMidChannel(chn,parent) +KMidChannel3D::KMidChannel3D (int chn,TQWidget *tqparent) : KMidChannel(chn,tqparent) { } diff --git a/kmid/channel3d.h b/kmid/channel3d.h index a8c81da0..2ce8de10 100644 --- a/kmid/channel3d.h +++ b/kmid/channel3d.h @@ -30,7 +30,7 @@ class KMidChannel3D : public KMidChannel { public: - KMidChannel3D(int chn,TQWidget *parent); + KMidChannel3D(int chn,TQWidget *tqparent); virtual void drawDo (TQPainter *qpaint,int x,int p); diff --git a/kmid/channel4d.cpp b/kmid/channel4d.cpp index 4f47c3ae..a12165eb 100644 --- a/kmid/channel4d.cpp +++ b/kmid/channel4d.cpp @@ -25,7 +25,7 @@ #include "channel4d.h" #include -KMidChannel4D::KMidChannel4D (int chn,TQWidget *parent) : KMidChannel(chn,parent) +KMidChannel4D::KMidChannel4D (int chn,TQWidget *tqparent) : KMidChannel(chn,tqparent) { brushR = new TQBrush (red); brushW = new TQBrush (white); diff --git a/kmid/channel4d.h b/kmid/channel4d.h index e6326f4a..e5cba3c7 100644 --- a/kmid/channel4d.h +++ b/kmid/channel4d.h @@ -36,7 +36,7 @@ private: TQPen *penR; public: - KMidChannel4D(int chn,TQWidget *parent); + KMidChannel4D(int chn,TQWidget *tqparent); virtual void drawDo (TQPainter *qpaint,int x,int p); diff --git a/kmid/channelcfgdlg.cpp b/kmid/channelcfgdlg.cpp index db320a28..4384dd7c 100644 --- a/kmid/channelcfgdlg.cpp +++ b/kmid/channelcfgdlg.cpp @@ -12,7 +12,7 @@ #include #include -ChannelViewConfigDialog::ChannelViewConfigDialog(TQWidget *parent,const char *name) : KDialogBase(parent,name,TRUE,i18n("Configure Channel View"),Ok|Cancel, Ok) +ChannelViewConfigDialog::ChannelViewConfigDialog(TQWidget *tqparent,const char *name) : KDialogBase(tqparent,name,TRUE,i18n("Configure Channel View"),Ok|Cancel, Ok) { TQWidget *page = new TQWidget( this ); setMainWidget(page); diff --git a/kmid/channelcfgdlg.h b/kmid/channelcfgdlg.h index c845be3e..040b741b 100644 --- a/kmid/channelcfgdlg.h +++ b/kmid/channelcfgdlg.h @@ -31,10 +31,11 @@ class TQRadioButton; class ChannelViewConfigDialog : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - ChannelViewConfigDialog(TQWidget *parent,const char *name); + ChannelViewConfigDialog(TQWidget *tqparent,const char *name); private: TQVButtonGroup *qbg; diff --git a/kmid/channelview.cpp b/kmid/channelview.cpp index a349691a..9a1f1e88 100644 --- a/kmid/channelview.cpp +++ b/kmid/channelview.cpp @@ -44,7 +44,7 @@ ChannelView::ChannelView(void) : KMainWindow(0, "ChannelView") Channel[i]->setGeometry(5,5+i*CHANNELHEIGHT,width()-20,CHANNELHEIGHT); Channel[i]->show(); } - scrollbar=new TQScrollBar(1,16,1,1,1,TQScrollBar::Vertical,this,"Channelscrollbar"); + scrollbar=new TQScrollBar(1,16,1,1,1,Qt::Vertical,this,"Channelscrollbar"); connect(scrollbar,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(ScrollChn(int))); setScrollBarRange(); } diff --git a/kmid/channelview.h b/kmid/channelview.h index 3eb51302..eaf92979 100644 --- a/kmid/channelview.h +++ b/kmid/channelview.h @@ -33,6 +33,7 @@ class ChannelView : public KMainWindow { Q_OBJECT + TQ_OBJECT private: KMidChannel *Channel[16]; int nvisiblechannels; diff --git a/kmid/collectdlg.cpp b/kmid/collectdlg.cpp index ab476bb6..a98a8a05 100644 --- a/kmid/collectdlg.cpp +++ b/kmid/collectdlg.cpp @@ -38,7 +38,7 @@ #include "songlist.h" #include "slman.h" -CollectionDialog::CollectionDialog(SLManager *slm,int selC,TQWidget *parent,const char *name) : TQDialog(parent,name,TRUE) +CollectionDialog::CollectionDialog(SLManager *slm,int selC,TQWidget *tqparent,const char *name) : TQDialog(tqparent,name,TRUE) { setCaption(i18n("Collections Manager")); ok=new KPushButton(KStdGuiItem::ok(),this); @@ -156,7 +156,7 @@ void CollectionDialog::newCollection() { bool ok; TQString name = KInputDialog::getText( i18n( "New Collection" ), - i18n( "Enter the name of the new collection:" ), TQString::null, + i18n( "Enter the name of the new collection:" ), TQString(), &ok, this ); if (ok) @@ -164,7 +164,7 @@ void CollectionDialog::newCollection() int i=slman->createCollection(name.ascii()); if (i==-1) { - TQString s = i18n("The name '%1' is already used").arg(name); + TQString s = i18n("The name '%1' is already used").tqarg(name); KMessageBox::sorry(this, s); } else @@ -182,7 +182,7 @@ SongList *src=currentsl; int i; bool ok; TQString name = KInputDialog::getText( i18n( "Copy Collection" ), - i18n( "Enter the name of the copy collection:" ), TQString::null, + i18n( "Enter the name of the copy collection:" ), TQString(), &ok, this ); if (ok) @@ -190,7 +190,7 @@ int i; i=slman->createCollection(name.ascii()); if (i==-1) { - TQString s = i18n("The name '%1' is already used").arg(name); + TQString s = i18n("The name '%1' is already used").tqarg(name); KMessageBox::sorry(this, s); } else @@ -225,14 +225,14 @@ if (idx==0) return; bool ok; TQString name = KInputDialog::getText( i18n( "Change Collection Name" ), - i18n( "Enter the name of the selected collection:" ), TQString::null, + i18n( "Enter the name of the selected collection:" ), TQString(), &ok, this ); if (ok) { if (slman->getCollection(name.ascii())!=NULL) { - TQString s = i18n("The name '%1' is already used").arg(name); + TQString s = i18n("The name '%1' is already used").tqarg(name); KMessageBox::sorry(this, s); } else diff --git a/kmid/collectdlg.h b/kmid/collectdlg.h index ae9a0b3a..a53dff70 100644 --- a/kmid/collectdlg.h +++ b/kmid/collectdlg.h @@ -33,9 +33,10 @@ class KPushButton; class TQPushButton; class TQListBox; class KURL; -class CollectionDialog : public QDialog +class CollectionDialog : public TQDialog { Q_OBJECT + TQ_OBJECT private: SLManager *slman; SongList *currentsl; @@ -48,7 +49,7 @@ protected: void addSong(const KURL &); public: - CollectionDialog(SLManager *slm,int selc,TQWidget *parent,const char *name); + CollectionDialog(SLManager *slm,int selc,TQWidget *tqparent,const char *name); public slots: void collectionselected(int idx); diff --git a/kmid/kdisptext.cpp b/kmid/kdisptext.cpp index cc1eb4d3..2842608c 100644 --- a/kmid/kdisptext.cpp +++ b/kmid/kdisptext.cpp @@ -40,7 +40,7 @@ //#define DRAW_BOUNDING_RECTS -KDisplayText::KDisplayText(TQWidget *parent,const char *name) : TQScrollView(parent,name) +KDisplayText::KDisplayText(TQWidget *tqparent,const char *name) : TQScrollView(tqparent,name) { first_line_[0]=first_line_[1]=NULL; linked_list_[0]=linked_list_[1]=NULL; @@ -122,10 +122,10 @@ void KDisplayText::ClearEv(bool totally) RemoveLinkedList(); if (totally) { - killTimers(); + TQT_TQOBJECT(this)->killTimers(); autoscrollv=0; resizeContents(0,0); - viewport()->repaint(TRUE); + viewport()->tqrepaint(TRUE); } } @@ -367,7 +367,7 @@ void KDisplayText::CursorToHome(void) setContentsPos(0,0); - viewport()->repaint(true); + viewport()->tqrepaint(true); } void KDisplayText::PaintIn(int type) @@ -425,14 +425,14 @@ void KDisplayText::PaintIn(int type) autoscrollv+=qfmetr->lineSpacing(); if (b) startTimer(100); else { - killTimers(); + TQT_TQOBJECT(this)->killTimers(); startTimer(100/(autoscrollv/qfmetr->lineSpacing()+1)); } } // scrollBy(0,qfmetr->lineSpacing()); } } - if (paint) repaintContents(tmp->r); + if (paint) tqrepaintContents(tmp->r); } void KDisplayText::gotomsec(ulong i) @@ -484,10 +484,10 @@ void KDisplayText::gotomsec(ulong i) } - killTimers(); + TQT_TQOBJECT(this)->killTimers(); autoscrollv=0; setContentsPos(0,first_line->ypos); - viewport()->repaint(); + viewport()->tqrepaint(); } } @@ -508,7 +508,7 @@ void KDisplayText::fontChanged(void) qfmetr=new TQFontMetrics(*qtextfont); calculatePositions(); nvisiblelines=height()/qfmetr->lineSpacing(); - viewport()->repaint(TRUE); + viewport()->tqrepaint(TRUE); } void KDisplayText::ChangeTypeOfTextEvents(int type) @@ -534,7 +534,7 @@ void KDisplayText::ChangeTypeOfTextEvents(int type) setContentsPos(0,first_line->ypos); } - viewport()->repaint(TRUE); + viewport()->tqrepaint(TRUE); } int KDisplayText::ChooseTypeOfTextEvents(void) diff --git a/kmid/kdisptext.h b/kmid/kdisptext.h index d23787c0..2b9c3fed 100644 --- a/kmid/kdisptext.h +++ b/kmid/kdisptext.h @@ -51,6 +51,7 @@ class TQScrollBar; class KDisplayText : public TQScrollView { Q_OBJECT + TQ_OBJECT private: TQTextCodec *lyrics_codec; @@ -91,7 +92,7 @@ protected: virtual void timerEvent(TQTimerEvent *e); public: - KDisplayText(TQWidget *parent,const char *name); + KDisplayText(TQWidget *tqparent,const char *name); virtual ~KDisplayText(); void ClearEv(bool totally=true); @@ -112,7 +113,7 @@ public: void setLyricsEncoding(const TQString &enc); -// TQSize sizeHint(); +// TQSize tqsizeHint(); public slots: void ScrollDown(); diff --git a/kmid/klcdnumber.cpp b/kmid/klcdnumber.cpp index 014188cc..21bdbbd5 100644 --- a/kmid/klcdnumber.cpp +++ b/kmid/klcdnumber.cpp @@ -28,8 +28,8 @@ #define BUTTONWIDTH 9 -KLCDNumber::KLCDNumber(int _numDigits,TQWidget *parent,const char *name) - : TQWidget(parent,name) +KLCDNumber::KLCDNumber(int _numDigits,TQWidget *tqparent,const char *name) + : TQWidget(tqparent,name) { initDigits(); setUserChangeValue=false; @@ -47,8 +47,8 @@ KLCDNumber::KLCDNumber(int _numDigits,TQWidget *parent,const char *name) setLCDColor(100,255,100); } -KLCDNumber::KLCDNumber(bool _setUserChangeValue,int _numDigits,TQWidget *parent,const char *name) - : TQWidget(parent,name) +KLCDNumber::KLCDNumber(bool _setUserChangeValue,int _numDigits,TQWidget *tqparent,const char *name) + : TQWidget(tqparent,name) { initDigits(); setUserChangeValue=_setUserChangeValue; @@ -197,7 +197,7 @@ void KLCDNumber::setValue(double v) void KLCDNumber::display (double v) { setValue(v); - repaint(FALSE); + tqrepaint(FALSE); } void KLCDNumber::display (int v) @@ -299,7 +299,7 @@ void KLCDNumber::mousePressEvent (TQMouseEvent *e) void KLCDNumber::timerEvent(TQTimerEvent *) { - killTimers(); + TQT_TQOBJECT(this)->killTimers(); doubleclicked=false; } @@ -317,13 +317,13 @@ void KLCDNumber::defaultValueClicked() void KLCDNumber::setLCDBackgroundColor(int r,int g,int b) { backgcolor=TQColor(r,g,b); - repaint(FALSE); + tqrepaint(FALSE); } void KLCDNumber::setLCDColor(int r,int g,int b) { LCDcolor=TQColor(r,g,b); - repaint(FALSE); + tqrepaint(FALSE); } void KLCDNumber::setRange(double min, double max) @@ -332,7 +332,7 @@ void KLCDNumber::setRange(double min, double max) maxValue=max; } -TQSize KLCDNumber::sizeHint() +TQSize KLCDNumber::tqsizeHint() { return TQSize(83,28); } diff --git a/kmid/klcdnumber.h b/kmid/klcdnumber.h index aaf58dbc..d7be294f 100644 --- a/kmid/klcdnumber.h +++ b/kmid/klcdnumber.h @@ -30,9 +30,10 @@ class TQPainter; class KTriangleButton; class TQColor; -class KLCDNumber : public QWidget +class KLCDNumber : public TQWidget { Q_OBJECT + TQ_OBJECT protected: class digit { public: @@ -100,8 +101,8 @@ public: void initDigits(void); public: - KLCDNumber(int _numDigits,TQWidget *parent,const char *name); - KLCDNumber(bool _setUserChangeValue,int _numDigits,TQWidget *parent,const char *name); + KLCDNumber(int _numDigits,TQWidget *tqparent,const char *name); + KLCDNumber(bool _setUserChangeValue,int _numDigits,TQWidget *tqparent,const char *name); void setUserSetDefaultValue(bool _userSetDefaultValue); void setDefaultValue(double v); @@ -120,7 +121,7 @@ public: void display (int v); void display (double v); - TQSize sizeHint (); + TQSize tqsizeHint (); // TQSizePolicy sizePolicy(); protected: diff --git a/kmid/kmid_part.cpp b/kmid/kmid_part.cpp index 39b10603..16618f7d 100644 --- a/kmid/kmid_part.cpp +++ b/kmid/kmid_part.cpp @@ -37,11 +37,11 @@ KMidFactory::~KMidFactory() s_instance = 0; } -KParts::Part *KMidFactory::createPartObject(TQWidget *parentWidget, const char *widgetName, - TQObject *parent, const char *name, const char*, +KParts::Part *KMidFactory::createPartObject(TQWidget *tqparentWidget, const char *widgetName, + TQObject *tqparent, const char *name, const char*, const TQStringList& ) { - KParts::Part *obj = new KMidPart(parentWidget, widgetName, parent, name); + KParts::Part *obj = new KMidPart(tqparentWidget, widgetName, tqparent, name); return obj; } @@ -65,15 +65,15 @@ KInstance *KMidFactory::instance() return s_instance; } - KMidPart::KMidPart(TQWidget *parentWidget, const char *widgetName, - TQObject *parent, const char *name) -: KParts::ReadOnlyPart(parent, name) + KMidPart::KMidPart(TQWidget *tqparentWidget, const char *widgetName, + TQObject *tqparent, const char *name) +: KParts::ReadOnlyPart(tqparent, name) { setInstance(KMidFactory::instance()); - widget = new kmidClient(parentWidget, actionCollection()); + widget = new kmidClient(tqparentWidget, actionCollection()); widget->show(); - widget->setFocusPolicy(TQWidget::ClickFocus); + widget->setFocusPolicy(TQ_ClickFocus); setWidget(widget); // create and connect our actions @@ -133,8 +133,8 @@ void KMidPart::slotStop() { widget->stop(); } -KMidBrowserExtension::KMidBrowserExtension(KMidPart *parent) - : KParts::BrowserExtension(parent, "KMidBrowserExtension") +KMidBrowserExtension::KMidBrowserExtension(KMidPart *tqparent) + : KParts::BrowserExtension(tqparent, "KMidBrowserExtension") { } diff --git a/kmid/kmid_part.h b/kmid/kmid_part.h index 5b0cbc0e..c22d8d43 100644 --- a/kmid/kmid_part.h +++ b/kmid/kmid_part.h @@ -12,13 +12,14 @@ class kmidClient; class KDE_EXPORT KMidFactory : public KParts::Factory { Q_OBJECT + TQ_OBJECT public: KMidFactory(); virtual ~KMidFactory(); - virtual KParts::Part* createPartObject(TQWidget *parentWidget, const char *widgetName, - TQObject* parent = 0, const char* name = 0, - const char* classname = "TQObject", + virtual KParts::Part* createPartObject(TQWidget *tqparentWidget, const char *widgetName, + TQObject* tqparent = 0, const char* name = 0, + const char* classname = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList()); static KInstance *instance(); @@ -31,9 +32,10 @@ class KDE_EXPORT KMidFactory : public KParts::Factory class KMidPart: public KParts::ReadOnlyPart { Q_OBJECT + TQ_OBJECT public: - KMidPart(TQWidget *parentWidget, const char *widgetName, - TQObject *parent, const char *name); + KMidPart(TQWidget *tqparentWidget, const char *widgetName, + TQObject *tqparent, const char *name); virtual ~KMidPart(); @@ -54,9 +56,10 @@ class KMidPart: public KParts::ReadOnlyPart class KMidBrowserExtension : public KParts::BrowserExtension { Q_OBJECT + TQ_OBJECT friend class KMidPart; public: - KMidBrowserExtension(KMidPart *parent); + KMidBrowserExtension(KMidPart *tqparent); virtual ~KMidBrowserExtension(); }; diff --git a/kmid/kmidbutton.h b/kmid/kmidbutton.h index 442b0fbd..ceba94a5 100644 --- a/kmid/kmidbutton.h +++ b/kmid/kmidbutton.h @@ -1,7 +1,7 @@ #include #include -class KMidButton : public QPushButton +class KMidButton : public TQPushButton { protected: @@ -15,7 +15,7 @@ protected: public: - KMidButton (TQWidget *parent,const char *name) : TQPushButton (parent,name) + KMidButton (TQWidget *tqparent,const char *name) : TQPushButton (tqparent,name) { }; diff --git a/kmid/kmidclient.cpp b/kmid/kmidclient.cpp index 94467098..74234bac 100644 --- a/kmid/kmidclient.cpp +++ b/kmid/kmidclient.cpp @@ -65,8 +65,8 @@ //#define TEMPHACK -kmidClient::kmidClient(TQWidget *parent, KActionCollection *ac, const char *name) - : DCOPObject("KMidIface"), TQWidget(parent,name) +kmidClient::kmidClient(TQWidget *tqparent, KActionCollection *ac, const char *name) + : DCOPObject("KMidIface"), TQWidget(tqparent,name) { actionCollection=ac; KConfig *cfg=kapp->config(); @@ -90,13 +90,13 @@ kmidClient::kmidClient(TQWidget *parent, KActionCollection *ac, const char *name // currentsl=slman->getCollection(activecollection); itsme=0; m_kMid.pid=0; - timebar = new TQSlider(0,240000,30000,60000,TQSlider::Horizontal, this); + timebar = new TQSlider(0,240000,30000,60000,Qt::Horizontal, this); timebar->setSteps(30000,60000); timebar->setValue(0); connect (timebar,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(slotSeek(int))); timetags = new QSliderTime(timebar,this); - timetags->setMinimumSize(timetags->sizeHint()); + timetags->setMinimumSize(timetags->tqsizeHint()); qlabelTempo= new TQLabel(i18n("Tempo:"), this,"tempolabel", TQLabel::NoFrame); @@ -108,7 +108,7 @@ kmidClient::kmidClient(TQWidget *parent, KActionCollection *ac, const char *name tempoLCD->setRange(3,999); tempoLCD->setDefaultValue(120); tempoLCD->setUserSetDefaultValue(true); - tempoLCD->setMinimumSize(tempoLCD->sizeHint()); + tempoLCD->setMinimumSize(tempoLCD->tqsizeHint()); connect(tempoLCD,TQT_SIGNAL(valueChanged(double)),this,TQT_SLOT(slotSetTempo(double))); comboSongs = new TQComboBox(FALSE, this,"Songs"); @@ -125,7 +125,7 @@ kmidClient::kmidClient(TQWidget *parent, KActionCollection *ac, const char *name rhythmview->setMaximumHeight(7); rhythmview->setMinimumHeight(7); - volumebar = new TQSlider(0,200,10,100,TQSlider::Vertical, this ); + volumebar = new TQSlider(0,200,10,100,Qt::Vertical, this ); volumebar->setSteps(10,20); volumebar->setValue(100); volumebar->setTickmarks(TQSlider::NoMarks); @@ -147,7 +147,7 @@ kmidClient::kmidClient(TQWidget *parent, KActionCollection *ac, const char *name TQString samplefile = KGlobal::dirs()->findAllResources("appdata", "fm/*.o3").last(); - samplefile.truncate(samplefile.findRev('/')); + samplefile.truncate(samplefile.tqfindRev('/')); FMOut::setFMPatchesDirectory(TQFile::encodeName(samplefile)); m_kMid.pctlsmID=shmget(IPC_PRIVATE,sizeof(PlayerController),0666 | IPC_CREAT ); @@ -290,10 +290,10 @@ int kmidClient::openFile(const char *filename) switch (r) { case (-1) : errormsg = - i18n("The file %1 does not exist or cannot be opened.").arg(filename); + i18n("The file %1 does not exist or cannot be opened.").tqarg(filename); break; case (-2) : errormsg = - i18n("The file %1 is not a MIDI file.").arg(filename);break; + i18n("The file %1 is not a MIDI file.").tqarg(filename);break; case (-3) : errormsg = i18n("Ticks per quarter note is negative. Please send this file to larrosa@kde.org");break; case (-4) : errormsg = @@ -301,7 +301,7 @@ int kmidClient::openFile(const char *filename) case (-5) : errormsg = i18n("This file is corrupted or not well built.");break; case (-6) : errormsg = - i18n("%1 is not a regular file.").arg(filename);break; + i18n("%1 is not a regular file.").tqarg(filename);break; default : errormsg = i18n("Unknown error message");break; } KMessageBox::error(this, errormsg); @@ -310,10 +310,10 @@ int kmidClient::openFile(const char *filename) midifile_opened=0L; timebar->setRange(0,240000); timebar->setValue(0); - timetags->repaint(TRUE); + timetags->tqrepaint(TRUE); kdispt->ClearEv(); - kdispt->repaint(TRUE); - topLevelWidget()->setCaption("KMid"); + kdispt->tqrepaint(TRUE); + tqtopLevelWidget()->setCaption("KMid"); return -1; } @@ -327,7 +327,7 @@ int kmidClient::openFile(const char *filename) // noteArray=player->parseNotes(); noteArray=player->noteArray(); timebar->setRange(0,(int)(player->information()->millisecsTotal)); - timetags->repaint(TRUE); + timetags->tqrepaint(TRUE); kdispt->ClearEv(); spev=player->specialEvents(); while (spev) @@ -343,7 +343,7 @@ int kmidClient::openFile(const char *filename) kdispt->CursorToHome(); // kdispt->updateScrollBars(); emit mustRechooseTextEvent(); - kdispt->repaint(TRUE); + kdispt->tqrepaint(TRUE); tempoLCD->display(tempoToMetronomeTempo(m_kMid.pctl->tempo)); currentTempo=tempoLCD->getValue(); tempoLCD->setDefaultValue(tempoToMetronomeTempo(m_kMid.pctl->tempo)*m_kMid.pctl->ratioTempo); @@ -353,7 +353,7 @@ int kmidClient::openFile(const char *filename) char *capt=new char[strlen(fn)+20]; sprintf(capt,"KMid - %s",fn); delete fn; - topLevelWidget()->setCaption(capt); + tqtopLevelWidget()->setCaption(capt); delete capt; timebar->setValue(0); @@ -1125,11 +1125,11 @@ void kmidClient::processSpecialEvent() } -void kmidClient::repaintText(int type) +void kmidClient::tqrepaintText(int type) { kdispt->ChangeTypeOfTextEvents(type); typeoftextevents=type; - kdispt->repaint(TRUE); + kdispt->tqrepaint(TRUE); } int kmidClient::ChooseTypeOfTextEvents(void) @@ -1265,12 +1265,12 @@ void kmidClient::slotSelectSong(int i) player->removeSong(); timebar->setRange(0,240000); timebar->setValue(0); - timetags->repaint(TRUE); + timetags->tqrepaint(TRUE); kdispt->ClearEv(); - kdispt->repaint(TRUE); + kdispt->tqrepaint(TRUE); comboSongs->clear(); - comboSongs->repaint(TRUE); - topLevelWidget()->setCaption("KMid"); + comboSongs->tqrepaint(TRUE); + tqtopLevelWidget()->setCaption("KMid"); return; } @@ -1374,7 +1374,7 @@ void kmidClient::visibleChannelView(int i) } channelView->show(); connect(channelView,TQT_SIGNAL(signalToKMidClient(int *)),this,TQT_SLOT(communicationFromChannelView(int *))); - connect(kapp,TQT_SIGNAL(shutDown()),parentWidget(),TQT_SLOT(shuttingDown())); + connect(kapp,TQT_SIGNAL(shutDown()),tqparentWidget(),TQT_SLOT(shuttingDown())); } else if ((channelView!=NULL)&&(i==0)) @@ -1487,7 +1487,7 @@ void kmidClient::slotSetTempo(double value) timebar->setRange(0,(int)(player->information()->millisecsTotal)); timebar->setValue(pausedatmillisec); - timetags->repaint(TRUE); + timetags->tqrepaint(TRUE); kdispt->ClearEv(false); @@ -1522,9 +1522,9 @@ void kmidClient::downloadFinished(KIO::Job *) kapp->exit_loop(); } -TQSize kmidClient::sizeHint() const +TQSize kmidClient::tqsizeHint() const { - TQSize sh = TQWidget::sizeHint(); + TQSize sh = TQWidget::tqsizeHint(); return sh.expandedTo(TQSize(560,420)); } @@ -1599,7 +1599,7 @@ void kmidClient::setPlayListMode(int i) void kmidClient::slotSelectEncoding(int i) { if (i == 0) - kdispt->setLyricsEncoding(TQString::null); // Default + kdispt->setLyricsEncoding(TQString()); // Default else kdispt->setLyricsEncoding(KGlobal::charsets()->encodingForName(comboEncodings->text(i))); } diff --git a/kmid/kmidclient.h b/kmid/kmidclient.h index 204aefac..dc18208d 100644 --- a/kmid/kmidclient.h +++ b/kmid/kmidclient.h @@ -55,6 +55,7 @@ class TQString; class kmidClient : public TQWidget, virtual public KMidIface { Q_OBJECT + TQ_OBJECT private: #ifdef KMidDEBUG long passcount; @@ -105,7 +106,7 @@ private: int openFile(const char *filename); void allNotesOff(void); public: - kmidClient(TQWidget *parent, KActionCollection *ac, const char *name=0); + kmidClient(TQWidget *tqparent, KActionCollection *ac, const char *name=0); ~kmidClient(); char *midiFileName(void) {return midifile_opened;}; @@ -116,7 +117,7 @@ public: int openURL(const TQString s); - void repaintText(int typeoftextevents); + void tqrepaintText(int typeoftextevents); static void kmidOutput(void); int ChooseTypeOfTextEvents(void); @@ -216,7 +217,7 @@ public: void setCurrentSong(int i); void setPlayListMode(int i); - TQSize sizeHint() const; + TQSize tqsizeHint() const; private: TQSlider *timebar; QSliderTime *timetags; diff --git a/kmid/kmidframe.cpp b/kmid/kmidframe.cpp index 54f9d3c5..e986a221 100644 --- a/kmid/kmidframe.cpp +++ b/kmid/kmidframe.cpp @@ -68,7 +68,7 @@ kmidFrame::kmidFrame(const char *name) /* kKeysAccel=new KAccel(this); kKeysAccel->insertItem(i18n("Play/Pause"),"Play/Pause", Key_Space); - kKeysAccel->connectItem("Play/Pause", this, TQT_SLOT(spacePressed())); + kKeysAccel->connectItem("Play/Pause", TQT_TQOBJECT(this), TQT_SLOT(spacePressed())); kKeysAccel->insertItem(i18n("Stop"),"Stop", Key_Backspace); kKeysAccel->connectItem("Stop",kmidclient,TQT_SLOT(song_Stop())); kKeysAccel->insertItem(i18n("Previous Song"),"Previous Song", Key_Left); @@ -86,34 +86,34 @@ kmidFrame::kmidFrame(const char *name) kKeysAccel->readSettings(); */ - KStdAction::open(this, TQT_SLOT(file_Open()), actionCollection()); - (void)new KAction(i18n("&Save Lyrics..."), 0, this, + KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(file_Open()), actionCollection()); + (void)new KAction(i18n("&Save Lyrics..."), 0, TQT_TQOBJECT(this), TQT_SLOT(file_SaveLyrics()), actionCollection(), "file_save_lyrics"); - KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection()); + KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), actionCollection()); - (void)new KAction(i18n("&Play"), "player_play", Qt::Key_Space, - kmidclient, TQT_SLOT(slotPlay()), actionCollection(), "song_play"); - (void)new KAction(i18n("P&ause"), "player_pause", Qt::Key_P, kmidclient, + (void)new KAction(i18n("&Play"), "player_play", TQt::Key_Space, + TQT_TQOBJECT(kmidclient), TQT_SLOT(slotPlay()), actionCollection(), "song_play"); + (void)new KAction(i18n("P&ause"), "player_pause", TQt::Key_P, TQT_TQOBJECT(kmidclient), TQT_SLOT(slotPause()), actionCollection(), "song_pause"); - (void)new KAction(i18n("&Stop"), "player_stop", Qt::Key_Backspace, - kmidclient, TQT_SLOT(slotStop()), actionCollection(), "song_stop"); + (void)new KAction(i18n("&Stop"), "player_stop", TQt::Key_Backspace, + TQT_TQOBJECT(kmidclient), TQT_SLOT(slotStop()), actionCollection(), "song_stop"); (void)new KAction(i18n("P&revious Song"), "player_start", Key_Left, - kmidclient, TQT_SLOT(slotPrevSong()), actionCollection(), + TQT_TQOBJECT(kmidclient), TQT_SLOT(slotPrevSong()), actionCollection(), "song_previous"); (void)new KAction(i18n("&Next Song"), "player_end", Key_Right, - kmidclient, TQT_SLOT(slotNextSong()), actionCollection(), + TQT_TQOBJECT(kmidclient), TQT_SLOT(slotNextSong()), actionCollection(), "song_next"); - (void)new KToggleAction(i18n("&Loop"), 0, this, TQT_SLOT(song_Loop()), + (void)new KToggleAction(i18n("&Loop"), 0, TQT_TQOBJECT(this), TQT_SLOT(song_Loop()), actionCollection(), "song_loop"); - (void)new KAction(i18n("Rewind"), "2leftarrow", 0, kmidclient, + (void)new KAction(i18n("Rewind"), "2leftarrow", 0, TQT_TQOBJECT(kmidclient), TQT_SLOT(slotRewind()), actionCollection(), "song_rewind"); - (void)new KAction(i18n("Forward"), "2rightarrow", 0, kmidclient, + (void)new KAction(i18n("Forward"), "2rightarrow", 0, TQT_TQOBJECT(kmidclient), TQT_SLOT(slotForward()), actionCollection(), "song_forward"); - (void)new KAction(i18n("&Organize..."), 0, this, TQT_SLOT(collect_organize()), + (void)new KAction(i18n("&Organize..."), 0, TQT_TQOBJECT(this), TQT_SLOT(collect_organize()), actionCollection(), "collect_organize"); TQStringList playmodes; @@ -125,7 +125,7 @@ kmidFrame::kmidFrame(const char *name) connect(act,TQT_SIGNAL(activated(int)),this, TQT_SLOT(collect_PlayOrder(int))); act->setItems(playmodes); - (void)new KToggleAction(i18n("Auto-Add to Collection"), 0, this, + (void)new KToggleAction(i18n("Auto-Add to Collection"), 0, TQT_TQOBJECT(this), TQT_SLOT(collect_AutoAdd()), actionCollection(), "collect_autoadd"); playmodes.clear(); @@ -147,29 +147,29 @@ kmidFrame::kmidFrame(const char *name) connect(act,TQT_SIGNAL(activated(int)),this, TQT_SLOT(options_DisplayEvents(int))); act->setItems(playmodes); - (void)new KToggleAction(i18n("Automatic Text Chooser"), 0, this, + (void)new KToggleAction(i18n("Automatic Text Chooser"), 0, TQT_TQOBJECT(this), TQT_SLOT(options_AutomaticText()), actionCollection(), "option_automatictext"); KToggleAction* togact = new KToggleAction(i18n("Show &Volume Bar"), "volume", - 0, this, TQT_SLOT(options_ShowVolumeBar()), actionCollection(), + 0, TQT_TQOBJECT(this), TQT_SLOT(options_ShowVolumeBar()), actionCollection(), "toggle_volumebar"); togact->setCheckedState(i18n("Hide &Volume Bar")); togact = new KToggleAction(i18n("Show &Channel View"), "piano", - 0, this, TQT_SLOT(options_ShowChannelView()), actionCollection(), + 0, TQT_TQOBJECT(this), TQT_SLOT(options_ShowChannelView()), actionCollection(), "toggle_channelview"); togact->setCheckedState(i18n("Hide &Channel View")); - (void)new KAction(i18n("Channel View &Options..."), 0, this, + (void)new KAction(i18n("Channel View &Options..."), 0, TQT_TQOBJECT(this), TQT_SLOT(options_ChannelViewOptions()), actionCollection(), "channelview_options"); - (void)new KAction(i18n("&Font Change..."), 0, this, + (void)new KAction(i18n("&Font Change..."), 0, TQT_TQOBJECT(this), TQT_SLOT(options_FontChange()), actionCollection(), "change_font"); - (void)new KAction(i18n("MIDI &Setup..."), 0, this, + (void)new KAction(i18n("MIDI &Setup..."), 0, TQT_TQOBJECT(this), TQT_SLOT(options_MidiSetup()), actionCollection(), "midi_setup"); @@ -276,7 +276,7 @@ kmidFrame::~kmidFrame() void kmidFrame::file_Open() { - KURL url = KFileDialog::getOpenURL(TQString::null, "*.kar *.mid *.kar.gz *.mid.gz\n*.kar *.kar.gz\n*.mid *.mid.gz\n*",this); + KURL url = KFileDialog::getOpenURL(TQString(), "*.kar *.mid *.kar.gz *.mid.gz\n*.kar *.kar.gz\n*.mid *.mid.gz\n*",this); if( url.isEmpty() ) return; @@ -316,7 +316,7 @@ void kmidFrame::options_DisplayEvents(int i) cfg->setGroup("KMid"); cfg->writeEntry("TypeOfTextEvents",(i==0)?1:5); cfg->sync(); - kmidclient->repaintText((i==0)?1:5); + kmidclient->tqrepaintText((i==0)?1:5); } void kmidFrame::options_AutomaticText() @@ -480,7 +480,7 @@ void kmidFrame::options_MidiSetup() kmidclient->setMidiDevice(MidiConfigDialog::selecteddevice); cfg->setGroup("Midimapper"); cfg->writePathEntry("LoadFile", - (MidiConfigDialog::selectedmap==NULL)? TQString::null:MidiConfigDialog::selectedmap); + (MidiConfigDialog::selectedmap==NULL)? TQString():MidiConfigDialog::selectedmap); kmidclient->setMidiMapFilename(MidiConfigDialog::selectedmap); } delete dlg; @@ -514,7 +514,7 @@ void kmidFrame::rechooseTextEvent() if ((cfg->readNumEntry("AutomaticTextEventChooser",1))==1) { int t=kmidclient->ChooseTypeOfTextEvents(); - kmidclient->repaintText(t); + kmidclient->tqrepaintText(t); if (t==1) ((KSelectAction*)actionCollection()->action("display_events"))->setCurrentItem(0); else @@ -551,7 +551,7 @@ void kmidFrame::collect_AutoAdd() void kmidFrame::file_SaveLyrics() { - KURL url = KFileDialog::getSaveURL(TQString::null,"*",this); + KURL url = KFileDialog::getSaveURL(TQString(),"*",this); if( url.isEmpty() ) return; @@ -567,8 +567,8 @@ void kmidFrame::file_SaveLyrics() if (stat(TQFile::encodeName(filename), &statbuf)!=-1) { - TQString s = i18n("File %1 already exists\nDo you want to overwrite it?").arg(filename); - if (KMessageBox::warningYesNo(this,s,TQString::null,i18n("Overwrite"),KStdGuiItem::cancel())==1) + TQString s = i18n("File %1 already exists\nDo you want to overwrite it?").tqarg(filename); + if (KMessageBox::warningYesNo(this,s,TQString(),i18n("Overwrite"),KStdGuiItem::cancel())==1) return; } diff --git a/kmid/kmidframe.h b/kmid/kmidframe.h index 8891720d..c60d6267 100644 --- a/kmid/kmidframe.h +++ b/kmid/kmidframe.h @@ -36,12 +36,13 @@ class KApplication; class KConfig; class kmidClient; class KToolBar; -class QDragEvent; +class TQDragEvent; class KAccel; class KDE_EXPORT kmidFrame : public KMainWindow { Q_OBJECT + TQ_OBJECT private: #ifdef KMidDEBUG long passcount; @@ -63,7 +64,7 @@ private: */ KAccel *kKeysAccel; protected: - int autoAddSongToCollection(const TQString& filename=TQString::null,int setactive=1); + int autoAddSongToCollection(const TQString& filename=TQString(),int setactive=1); virtual void saveProperties(KConfig *kcfg); diff --git a/kmid/ktrianglebutton.cpp b/kmid/ktrianglebutton.cpp index 1b31dade..f2c47ca5 100644 --- a/kmid/ktrianglebutton.cpp +++ b/kmid/ktrianglebutton.cpp @@ -35,7 +35,7 @@ KTriangleButton::KTriangleButton( Direction d,TQWidget *_parent, const char *nam { dir=d; raised = FALSE; - setFocusPolicy( NoFocus ); + setFocusPolicy( TQ_NoFocus ); } KTriangleButton::~KTriangleButton() @@ -47,7 +47,7 @@ void KTriangleButton::enterEvent( TQEvent* ) if ( isEnabled() ) { raised = TRUE; - repaint(FALSE); + tqrepaint(FALSE); } } @@ -56,7 +56,7 @@ void KTriangleButton::leaveEvent( TQEvent * ) if( raised != FALSE ) { raised = FALSE; - repaint(); + tqrepaint(); } } @@ -75,21 +75,21 @@ void KTriangleButton::paint( TQPainter *painter ) { if ( isDown() || isOn() ) { - if ( style().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle ) + if ( tqstyle().tqstyleHint(TQStyle::SH_GUIStyle) == WindowsStyle ) qDrawWinButton( painter, 0, 0, width(), - height(), colorGroup(), TRUE ); + height(), tqcolorGroup(), TRUE ); else qDrawShadePanel( painter, 0, 0, width(), - height(), colorGroup(), TRUE, 2, 0L ); + height(), tqcolorGroup(), TRUE, 2, 0L ); } else if ( raised ) { - if ( style().styleHint(TQStyle::SH_GUIStyle) == WindowsStyle ) + if ( tqstyle().tqstyleHint(TQStyle::SH_GUIStyle) == WindowsStyle ) qDrawWinButton( painter, 0, 0, width(), height(), - colorGroup(), FALSE ); + tqcolorGroup(), FALSE ); else qDrawShadePanel( painter, 0, 0, width(), height(), - colorGroup(), FALSE, 2, 0L ); + tqcolorGroup(), FALSE, 2, 0L ); } if (dir==Right) @@ -144,17 +144,17 @@ void KTriangleButton::mouseReleaseEvent(TQMouseEvent *e) void KTriangleButton::timerEvent(TQTimerEvent *) { - if (!usingTimer) {killTimers();return;}; + if (!usingTimer) {TQT_TQOBJECT(this)->killTimers();return;}; if (timeCount==0) { timeCount++; - killTimers(); + TQT_TQOBJECT(this)->killTimers(); startTimer(120); } else if (timeCount==30) { timeCount=-1; - killTimers(); + TQT_TQOBJECT(this)->killTimers(); startTimer(80); } else if (timeCount>0) timeCount++; diff --git a/kmid/ktrianglebutton.h b/kmid/ktrianglebutton.h index 3c951dec..c67a0dad 100644 --- a/kmid/ktrianglebutton.h +++ b/kmid/ktrianglebutton.h @@ -30,9 +30,10 @@ #include -class KTriangleButton : public QButton +class KTriangleButton : public TQButton { Q_OBJECT + TQ_OBJECT public: enum Direction {Left , Right, Up, Down}; diff --git a/kmid/main.cpp b/kmid/main.cpp index 45cd1fab..3bafb1f9 100644 --- a/kmid/main.cpp +++ b/kmid/main.cpp @@ -49,7 +49,7 @@ int main(int argc, char **argv) /* struct sigaction act; act.sa_handler = SIG_DFL; - sigemptyset(&(act.sa_mask)); + sigemptyset(&(act.sa_tqmask)); act.sa_flags=0; sigaction(SIGINT, &act, NULL); diff --git a/kmid/midicfgdlg.cpp b/kmid/midicfgdlg.cpp index 855de04a..0be88c72 100644 --- a/kmid/midicfgdlg.cpp +++ b/kmid/midicfgdlg.cpp @@ -38,7 +38,7 @@ #include MidiConfigDialog::MidiConfigDialog(DeviceManager *dm, - TQWidget *parent,const char *name) : KDialogBase(parent,name,TRUE, + TQWidget *tqparent,const char *name) : KDialogBase(tqparent,name,TRUE, i18n("Configure MIDI Devices"), KDialogBase::Ok|KDialogBase::Cancel) { setMinimumSize(360,240); @@ -56,7 +56,7 @@ MidiConfigDialog::MidiConfigDialog(DeviceManager *dm, for (int i=0;imidiPorts()+devman->synthDevices();i++) { if (strcmp(devman->type(i),"")!=0) - temp = TQString("%1 - %2").arg(devman->name(i)).arg(devman->type(i)); + temp = TQString("%1 - %2").tqarg(devman->name(i)).tqarg(devman->type(i)); else temp = devman->name(i); @@ -105,7 +105,7 @@ void MidiConfigDialog::deviceselected(int idx) void MidiConfigDialog::browseMap() { TQString path = KGlobal::dirs()->findAllResources("appdata", "maps/*.map").last(); - path.truncate(path.findRev('/')); + path.truncate(path.tqfindRev('/')); KURL url = KFileDialog::getOpenURL(path,"*.map",this); diff --git a/kmid/midicfgdlg.h b/kmid/midicfgdlg.h index 14cff5a4..bab949b8 100644 --- a/kmid/midicfgdlg.h +++ b/kmid/midicfgdlg.h @@ -34,10 +34,11 @@ class TQListBox; class MidiConfigDialog : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - MidiConfigDialog(DeviceManager *dm,TQWidget *parent,const char *name); + MidiConfigDialog(DeviceManager *dm,TQWidget *tqparent,const char *name); public slots: void deviceselected(int idx); diff --git a/kmid/qslidertime.cpp b/kmid/qslidertime.cpp index 09975e25..e7313d22 100644 --- a/kmid/qslidertime.cpp +++ b/kmid/qslidertime.cpp @@ -28,8 +28,8 @@ #define ARROW_LENGTH 13 -QSliderTime::QSliderTime( TQSlider *ksl, TQWidget *parent, const char *name) - : TQWidget (parent,name) +QSliderTime::QSliderTime( TQSlider *ksl, TQWidget *tqparent, const char *name) + : TQWidget (tqparent,name) { kslider=ksl; @@ -90,25 +90,25 @@ if (kslider==NULL) return; int pos=0; int deltapos=0; formatMillisecs(0,tmp); - painter->drawText( 0, posy,tmp); + painter->drawText( 0, posy,TQString(tmp)); for ( i = timestep; i <= maxV - timestep; i += timestep ) { pos = (width()-10) * i / maxV + 5; formatMillisecs(i,tmp); deltapos=qfmt.width(tmp)/2; - painter->drawText( pos-deltapos, posy,tmp); + painter->drawText( pos-deltapos, posy,TQString(tmp)); } pos = width()- 5; formatMillisecs(maxV,tmp); deltapos=qfmt.width(tmp); - painter->drawText( pos-deltapos, posy,tmp); + painter->drawText( pos-deltapos, posy,TQString(tmp)); } -TQSize QSliderTime::sizeHint() +TQSize QSliderTime::tqsizeHint() { return TQSize(10,fontheight+2); } diff --git a/kmid/qslidertime.h b/kmid/qslidertime.h index fcefdc13..c42632b0 100644 --- a/kmid/qslidertime.h +++ b/kmid/qslidertime.h @@ -28,9 +28,10 @@ class TQWidget; -class QSliderTime : public QWidget +class QSliderTime : public TQWidget { Q_OBJECT + TQ_OBJECT private: TQSlider *kslider; @@ -38,11 +39,11 @@ private: int fontheight; public: - QSliderTime( TQSlider *ksl, TQWidget *parent = NULL, const char *name = NULL ); + QSliderTime( TQSlider *ksl, TQWidget *tqparent = NULL, const char *name = NULL ); int getFontHeight(void) {return fontheight;}; - TQSize sizeHint(); + TQSize tqsizeHint(); TQSizePolicy sizePolicy(); private: diff --git a/kmid/rhythmview.cpp b/kmid/rhythmview.cpp index 0358620d..a10bb79c 100644 --- a/kmid/rhythmview.cpp +++ b/kmid/rhythmview.cpp @@ -23,7 +23,7 @@ ***************************************************************************/ #include "rhythmview.h" -RhythmView::RhythmView (TQWidget *parent, const char *name) : TQWidget (parent,name) +RhythmView::RhythmView (TQWidget *tqparent, const char *name) : TQWidget (tqparent,name) { lamps=NULL; setRhythm(4,4); @@ -57,7 +57,7 @@ void RhythmView::setRhythm(int numerator,int denominator) for (i=0;isetState(KLed::Off); lamps[i]->setGeometry(x+2,0,w-4,height()); lamps[i]->show(); @@ -95,7 +95,7 @@ void RhythmView::resizeEvent(TQResizeEvent *) } } -TQSize RhythmView::sizeHint() +TQSize RhythmView::tqsizeHint() { return TQSize(10,10); } diff --git a/kmid/rhythmview.h b/kmid/rhythmview.h index c157e9d8..3754c074 100644 --- a/kmid/rhythmview.h +++ b/kmid/rhythmview.h @@ -27,14 +27,14 @@ #include #include -class RhythmView : public QWidget +class RhythmView : public TQWidget { int num,den; KLed **lamps; public: - RhythmView (TQWidget *parent, const char *name); + RhythmView (TQWidget *tqparent, const char *name); ~RhythmView(); void setRhythm(int numerator,int denominator); @@ -43,7 +43,7 @@ public: void Beat(void); // Just increase the beat - TQSize sizeHint(); + TQSize tqsizeHint(); TQSizePolicy sizePolicy(); private: diff --git a/kmix/KMixApp.h b/kmix/KMixApp.h index 79e4fc4e..4b5b1122 100644 --- a/kmix/KMixApp.h +++ b/kmix/KMixApp.h @@ -8,6 +8,7 @@ class KMixWindow; class KMixApp : public KUniqueApplication { Q_OBJECT + TQ_OBJECT public: KMixApp(); ~KMixApp(); diff --git a/kmix/colorwidget.ui b/kmix/colorwidget.ui index 56f1d60e..35d2a0f8 100644 --- a/kmix/colorwidget.ui +++ b/kmix/colorwidget.ui @@ -1,11 +1,11 @@ ColorWidget Stefan Schimanski <1Stein@gmx.de> - + ColorWidget - + 0 0 @@ -20,7 +20,7 @@ 0 - + customColors @@ -28,7 +28,7 @@ &Use custom colors - + activeColors @@ -53,7 +53,7 @@ - + TextLabel3 @@ -97,7 +97,7 @@ - + labelLoad @@ -111,7 +111,7 @@ activeHigh - + TextLabel4 @@ -127,7 +127,7 @@ - + mutedColors @@ -141,7 +141,7 @@ unnamed - + TextLabel6 @@ -155,7 +155,7 @@ mutedHigh - + TextLabel8 @@ -169,7 +169,7 @@ mutedBack - + TextLabel7 @@ -236,7 +236,7 @@ Expanding - + 20 20 @@ -272,5 +272,5 @@ klocale.h kseparator.h - + diff --git a/kmix/dialogselectmaster.cpp b/kmix/dialogselectmaster.cpp index a201f33a..d206429e 100644 --- a/kmix/dialogselectmaster.cpp +++ b/kmix/dialogselectmaster.cpp @@ -67,15 +67,15 @@ void DialogSelectMaster::createWidgets(Mixer *ptr_mixer) TQHBoxLayout* mixerNameLayout = new TQHBoxLayout( _layout ); //widgetsLayout->setStretchFactor( mixerNameLayout, 0 ); //TQSizePolicy qsp( TQSizePolicy::Ignored, TQSizePolicy::Maximum); - //mixerNameLayout->setSizePolicy(qsp); + //mixerNameLayout->tqsetSizePolicy(qsp); mixerNameLayout->setSpacing(KDialog::spacingHint()); TQLabel *qlbl = new TQLabel( i18n("Current Mixer"), m_mainFrame ); mixerNameLayout->addWidget(qlbl); - qlbl->setFixedHeight(qlbl->sizeHint().height()); + qlbl->setFixedHeight(qlbl->tqsizeHint().height()); m_cMixer = new KComboBox( FALSE, m_mainFrame, "mixerCombo" ); - m_cMixer->setFixedHeight(m_cMixer->sizeHint().height()); + m_cMixer->setFixedHeight(m_cMixer->tqsizeHint().height()); connect( m_cMixer, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( createPageByID( int ) ) ); //int id=1; @@ -97,10 +97,10 @@ void DialogSelectMaster::createWidgets(Mixer *ptr_mixer) _layout->addWidget(qlbl); m_scrollableChannelSelector = new TQScrollView(m_mainFrame, "scrollableChannelSelector"); - m_scrollableChannelSelector->viewport()->setBackgroundMode(Qt::PaletteBackground); + m_scrollableChannelSelector->viewport()->setBackgroundMode(TQt::PaletteBackground); _layout->add(m_scrollableChannelSelector); - m_buttonGroupForScrollView = new TQButtonGroup(this); // invisible QButtonGroup + m_buttonGroupForScrollView = new TQButtonGroup(this); // invisible TQButtonGroup m_buttonGroupForScrollView->hide(); createPage(ptr_mixer); @@ -133,7 +133,7 @@ void DialogSelectMaster::createPage(Mixer* mixer) * In case the user selected a new Mixer via m_cMixer, we need * to remove the stuff created on the last call. */ - // delete the VBox. This should automatically remove all contained QRadioButton's. + // delete the VBox. This should automatically remove all contained TQRadioButton's. delete m_vboxForScrollView; m_mixerPKs.clear(); /** Reset page end -------------------------------------------------- */ @@ -153,7 +153,7 @@ void DialogSelectMaster::createPage(Mixer* mixer) if ( ! md->isEnum() && ! md->isSwitch() ) { //kdDebug(67100) << "DialogSelectMaster::createPage() mset append qrb" << endl; TQString mdName = md->name(); - mdName.replace('&', "&&"); // Quoting the '&' needed, to prevent TQRadioButton creating an accelerator + mdName.tqreplace('&', "&&"); // Quoting the '&' needed, to prevent TQRadioButton creating an accelerator TQRadioButton* qrb = new TQRadioButton( mdName, m_vboxForScrollView); m_buttonGroupForScrollView->insert(qrb); //(qrb, md->num()); //_qEnabledCB.append(qrb); diff --git a/kmix/dialogselectmaster.h b/kmix/dialogselectmaster.h index c454a3fe..5a3a57b2 100644 --- a/kmix/dialogselectmaster.h +++ b/kmix/dialogselectmaster.h @@ -16,6 +16,7 @@ class Mixer; class DialogSelectMaster : public KDialogBase { Q_OBJECT + TQ_OBJECT public: DialogSelectMaster(Mixer *); ~DialogSelectMaster(); diff --git a/kmix/dialogviewconfiguration.cpp b/kmix/dialogviewconfiguration.cpp index 09e88d23..948df8fe 100644 --- a/kmix/dialogviewconfiguration.cpp +++ b/kmix/dialogviewconfiguration.cpp @@ -50,7 +50,7 @@ DialogViewConfiguration::DialogViewConfiguration( TQWidget*, ViewBase& view) if ( qw->inherits("MixDeviceWidget") ) { MixDeviceWidget *mdw = static_cast(qw); TQString mdName = mdw->mixDevice()->name(); - mdName.replace('&', "&&"); // Quoting the '&' needed, to prevent TQCheckBox creating an accelerator + mdName.tqreplace('&', "&&"); // Quoting the '&' needed, to prevent TQCheckBox creating an accelerator TQCheckBox* cb = new TQCheckBox( mdName, plainPage() ); _qEnabledCB.append(cb); cb->setChecked( !mdw->isDisabled() ); //mdw->isVisible() ); @@ -58,7 +58,7 @@ DialogViewConfiguration::DialogViewConfiguration( TQWidget*, ViewBase& view) } } _layout->activate(); - resize(_layout->sizeHint() ); + resize(_layout->tqsizeHint() ); connect( this, TQT_SIGNAL(okClicked()) , this, TQT_SLOT(apply()) ); } @@ -93,9 +93,9 @@ void DialogViewConfiguration::apply() _view.configurationUpdate(); } -TQSize DialogViewConfiguration::sizeHint() const { - // kdDebug(67100) << "DialogViewConfiguration::sizeHint() is (100,500)\n"; - return _layout->sizeHint(); +TQSize DialogViewConfiguration::tqsizeHint() const { + // kdDebug(67100) << "DialogViewConfiguration::tqsizeHint() is (100,500)\n"; + return _layout->tqsizeHint(); } #include "dialogviewconfiguration.moc" diff --git a/kmix/dialogviewconfiguration.h b/kmix/dialogviewconfiguration.h index 6ee8c83f..4b90a168 100644 --- a/kmix/dialogviewconfiguration.h +++ b/kmix/dialogviewconfiguration.h @@ -13,11 +13,12 @@ class TQVBoxLayout; class DialogViewConfiguration : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - DialogViewConfiguration(TQWidget* parent, ViewBase& view); + DialogViewConfiguration(TQWidget* tqparent, ViewBase& view); ~DialogViewConfiguration(); - TQSize sizeHint() const; + TQSize tqsizeHint() const; public slots: void apply(); diff --git a/kmix/kledbutton.cpp b/kmix/kledbutton.cpp index e0a7bff1..0145d4c4 100644 --- a/kmix/kledbutton.cpp +++ b/kmix/kledbutton.cpp @@ -24,17 +24,17 @@ #include "kledbutton.h" -KLedButton::KLedButton(const TQColor &col, TQWidget *parent, const char *name) - : KLed( col, parent, name ) +KLedButton::KLedButton(const TQColor &col, TQWidget *tqparent, const char *name) + : KLed( col, tqparent, name ) { - // KLed and thus KLedButtung does not do proper positioning in QLayout's. + // KLed and thus KLedButtung does not do proper positioning in TQLayout's. // Thus I will do a dirty trick here - installEventFilter(parent); + installEventFilter(tqparent); } KLedButton::KLedButton(const TQColor& col, KLed::State st, KLed::Look look, - KLed::Shape shape, TQWidget *parent, const char *name) - : KLed( col, st, look, shape, parent, name ) + KLed::Shape tqshape, TQWidget *tqparent, const char *name) + : KLed( col, st, look, tqshape, tqparent, name ) { } @@ -44,7 +44,7 @@ KLedButton::~KLedButton() void KLedButton::mousePressEvent( TQMouseEvent *e ) { - if (e->button() == LeftButton) + if (e->button() == Qt::LeftButton) { toggle(); emit stateChanged( state() ); @@ -52,8 +52,8 @@ void KLedButton::mousePressEvent( TQMouseEvent *e ) } bool KLedButton::eventFilter( TQObject* /*obj*/ , TQEvent* /*ev*/ ) { - // KLed and thus KLedButtung does not do proper positioning in QLayout's. - // Thus I listen to my parents resize events and do it here ... OUCH, that's ugly + // KLed and thus KLedButtung does not do proper positioning in TQLayout's. + // Thus I listen to my tqparents resize events and do it here ... OUCH, that's ugly /* No, this cannot work ! if ( ev->type() == TQEvent::Resize ) { TQResizeEvent* qre = (TQResizeEvent*)ev; @@ -66,7 +66,7 @@ bool KLedButton::eventFilter( TQObject* /*obj*/ , TQEvent* /*ev*/ ) { } -TQSize KLedButton::sizeHint() const +TQSize KLedButton::tqsizeHint() const { return size(); } diff --git a/kmix/kledbutton.h b/kmix/kledbutton.h index e8d562af..ed7f529b 100644 --- a/kmix/kledbutton.h +++ b/kmix/kledbutton.h @@ -32,13 +32,14 @@ class KLedButton : public KLed { Q_OBJECT + TQ_OBJECT public: - KLedButton(const TQColor &col=Qt::green, TQWidget *parent=0, const char *name=0); - KLedButton(const TQColor& col, KLed::State st, KLed::Look look, KLed::Shape shape, - TQWidget *parent=0, const char *name=0); + KLedButton(const TQColor &col=TQt::green, TQWidget *tqparent=0, const char *name=0); + KLedButton(const TQColor& col, KLed::State st, KLed::Look look, KLed::Shape tqshape, + TQWidget *tqparent=0, const char *name=0); ~KLedButton(); - TQSize sizeHint () const; + TQSize tqsizeHint () const; TQSizePolicy sizePolicy () const; signals: void stateChanged( bool newState ); diff --git a/kmix/kmix.cpp b/kmix/kmix.cpp index ce4ab910..f0a2e4db 100644 --- a/kmix/kmix.cpp +++ b/kmix/kmix.cpp @@ -107,25 +107,25 @@ void KMixWindow::initActions() { // file menu - KStdAction::quit( this, TQT_SLOT(quit()), actionCollection()); + KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT(quit()), actionCollection()); // settings menu - KStdAction::showMenubar( this, TQT_SLOT(toggleMenuBar()), actionCollection()); - KStdAction::preferences( this, TQT_SLOT(showSettings()), actionCollection()); - new KAction( i18n( "Configure &Global Shortcuts..." ), "configure_shortcuts", 0, this, + KStdAction::showMenubar( TQT_TQOBJECT(this), TQT_SLOT(toggleMenuBar()), actionCollection()); + KStdAction::preferences( TQT_TQOBJECT(this), TQT_SLOT(showSettings()), actionCollection()); + new KAction( i18n( "Configure &Global Shortcuts..." ), "configure_shortcuts", 0, TQT_TQOBJECT(this), TQT_SLOT( configureGlobalShortcuts() ), actionCollection(), "settings_global" ); KStdAction::keyBindings( guiFactory(), TQT_SLOT(configureShortcuts()), actionCollection()); - (void) new KAction( i18n( "Hardware &Information" ), 0, this, TQT_SLOT( slotHWInfo() ), actionCollection(), "hwinfo" ); - (void) new KAction( i18n( "Hide Mixer Window" ), Key_Escape, this, TQT_SLOT(hide()), actionCollection(), "hide_kmixwindow" ); + (void) new KAction( i18n( "Hardware &Information" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotHWInfo() ), actionCollection(), "hwinfo" ); + (void) new KAction( i18n( "Hide Mixer Window" ), Key_Escape, TQT_TQOBJECT(this), TQT_SLOT(hide()), actionCollection(), "hide_kmixwindow" ); - m_globalAccel = new KGlobalAccel( this ); - m_globalAccel->insert( "Increase volume", i18n( "Increase Volume of Master Channel"), TQString::null, - KShortcut(), KShortcut(), this, TQT_SLOT( increaseVolume() ) ); - m_globalAccel->insert( "Decrease volume", i18n( "Decrease Volume of Master Channel"), TQString::null, - KShortcut(), KShortcut(), this, TQT_SLOT( decreaseVolume() ) ); - m_globalAccel->insert( "Toggle mute", i18n( "Toggle Mute of Master Channel"), TQString::null, - KShortcut(), KShortcut(), this, TQT_SLOT( toggleMuted() ) ); + m_globalAccel = new KGlobalAccel( TQT_TQOBJECT(this) ); + m_globalAccel->insert( "Increase volume", i18n( "Increase Volume of Master Channel"), TQString(), + KShortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( increaseVolume() ) ); + m_globalAccel->insert( "Decrease volume", i18n( "Decrease Volume of Master Channel"), TQString(), + KShortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( decreaseVolume() ) ); + m_globalAccel->insert( "Toggle mute", i18n( "Toggle Mute of Master Channel"), TQString(), + KShortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( toggleMuted() ) ); m_globalAccel->readSettings(); m_globalAccel->updateConnections(); @@ -145,10 +145,10 @@ KMixWindow::initPrefDlg() void KMixWindow::initWidgets() { - // Main widget and layout + // Main widget and tqlayout setCentralWidget( new TQWidget( this, "qt_central_widget" ) ); - // Widgets layout + // Widgets tqlayout widgetsLayout = new TQVBoxLayout( centralWidget(), 0, 0, "widgetsLayout" ); widgetsLayout->setResizeMode(TQLayout::Minimum); // works fine @@ -157,16 +157,16 @@ KMixWindow::initWidgets() mixerNameLayout = new TQHBox( centralWidget(), "mixerNameLayout" ); widgetsLayout->setStretchFactor( mixerNameLayout, 0 ); TQSizePolicy qsp( TQSizePolicy::Ignored, TQSizePolicy::Maximum); - mixerNameLayout->setSizePolicy(qsp); + mixerNameLayout->tqsetSizePolicy(qsp); mixerNameLayout->setSpacing(KDialog::spacingHint()); TQLabel *qlbl = new TQLabel( i18n("Current mixer:"), mixerNameLayout ); - qlbl->setFixedHeight(qlbl->sizeHint().height()); + qlbl->setFixedHeight(qlbl->tqsizeHint().height()); m_cMixer = new KComboBox( FALSE, mixerNameLayout, "mixerCombo" ); - m_cMixer->setFixedHeight(m_cMixer->sizeHint().height()); - connect( m_cMixer, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( showSelectedMixer( int ) ) ); + m_cMixer->setFixedHeight(m_cMixer->tqsizeHint().height()); + connect( m_cMixer, TQT_SIGNAL( activated( int ) ), TQT_TQOBJECT(this), TQT_SLOT( showSelectedMixer( int ) ) ); TQToolTip::add( m_cMixer, i18n("Current mixer" ) ); - // Add first layout to widgets + // Add first tqlayout to widgets widgetsLayout->addWidget( mixerNameLayout ); m_wsMixers = new TQWidgetStack( centralWidget(), "MixerWidgetStack" ); @@ -267,9 +267,9 @@ KMixWindow::saveConfig() config->writeEntry( "ValueStyle", "None" ); if ( m_toplevelOrientation == Qt::Vertical ) - config->writeEntry( "Orientation","Vertical" ); + config->writeEntry( "Qt::Orientation","Vertical" ); else - config->writeEntry( "Orientation","Horizontal" ); + config->writeEntry( "Qt::Orientation","Horizontal" ); config->writeEntry( "Autostart", m_autoStart ); // save mixer widgets @@ -305,7 +305,7 @@ KMixWindow::loadConfig() m_multiDriverMode = config->readBoolEntry("MultiDriver", false); m_surroundView = config->readBoolEntry("Experimental-ViewSurround", false ); m_gridView = config->readBoolEntry("Experimental-ViewGrid", false ); - const TQString& orientationString = config->readEntry("Orientation", "Horizontal"); + const TQString& orientationString = config->readEntry("Qt::Orientation", "Horizontal"); TQString mixerMasterCard = config->readEntry( "MasterMixer", "" ); Mixer::setMasterCard(mixerMasterCard); TQString masterDev = config->readEntry( "MasterMixerDevice", "" ); @@ -522,11 +522,11 @@ KMixWindow::applyPrefs( KMixPrefDlg *prefDlg ) } if ( prefDlg->_rbVertical->isChecked() ) { //TQString "For a change of language to take place, quit and restart KDiff3."; - //kdDebug(67100) << "KMix should change to Vertical layout\n"; + //kdDebug(67100) << "KMix should change toQt::Vertical tqlayout\n"; m_toplevelOrientation = Qt::Vertical; } else if ( prefDlg->_rbHorizontal->isChecked() ) { - //kdDebug(67100) << "KMix should change to Horizontal layout\n"; + //kdDebug(67100) << "KMix should change toQt::Horizontal tqlayout\n"; m_toplevelOrientation = Qt::Horizontal; } m_autoStart = prefDlg->m_autoStartChk->isChecked(); @@ -551,7 +551,7 @@ KMixWindow::applyPrefs( KMixPrefDlg *prefDlg ) show(); } - this->repaint(); // make KMix look fast (saveConfig() often uses several seconds) + this->tqrepaint(); // make KMix look fast (saveConfig() often uses several seconds) kapp->processEvents(); saveConfig(); } diff --git a/kmix/kmix.h b/kmix/kmix.h index 398c88d8..09e4cb15 100644 --- a/kmix/kmix.h +++ b/kmix/kmix.h @@ -27,7 +27,7 @@ #include #endif -// include files for Qt +// include files for TQt #include #include @@ -55,6 +55,7 @@ class KMixWindow : public KMainWindow { Q_OBJECT + TQ_OBJECT public: KMixWindow(); diff --git a/kmix/kmixapplet.cpp b/kmix/kmixapplet.cpp index c0fed889..200ee035 100644 --- a/kmix/kmixapplet.cpp +++ b/kmix/kmixapplet.cpp @@ -66,11 +66,11 @@ extern "C" { - KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile) + KDE_EXPORT KPanelApplet* init(TQWidget *tqparent, const TQString& configFile) { KGlobal::locale()->insertCatalogue("kmix"); return new KMixApplet(configFile, KPanelApplet::Normal, - parent, "kmixapplet"); + tqparent, "kmixapplet"); } } @@ -84,10 +84,10 @@ static const TQColor mutedHighColor = "#FFFFFF"; static const TQColor mutedLowColor = "#808080"; static const TQColor mutedBackColor = "#000000"; -AppletConfigDialog::AppletConfigDialog( TQWidget * parent, const char * name ) - : KDialogBase( KDialogBase::Plain, TQString::null, +AppletConfigDialog::AppletConfigDialog( TQWidget * tqparent, const char * name ) + : KDialogBase( KDialogBase::Plain, TQString(), KDialogBase::Ok | KDialogBase::Apply | KDialogBase::Cancel, - KDialogBase::Ok, parent, name, false, true) + KDialogBase::Ok, tqparent, name, false, true) { setPlainCaption(i18n("Configure - Mixer Applet")); TQFrame* page = plainPage(); @@ -150,9 +150,9 @@ bool AppletConfigDialog::useCustomColors() const KMixApplet::KMixApplet( const TQString& configFile, Type t, - TQWidget *parent, const char *name ) + TQWidget *tqparent, const char *name ) - : KPanelApplet( configFile, t, KPanelApplet::Preferences | KPanelApplet::ReportBug | KPanelApplet::About, parent, name ), + : KPanelApplet( configFile, t, KPanelApplet::Preferences | KPanelApplet::ReportBug | KPanelApplet::About, tqparent, name ), m_mixerWidget(0), m_errorLabel(0), m_pref(0), m_aboutData( "kmix", I18N_NOOP("KMix Panel Applet"), APP_VERSION, "Mini Sound Mixer Applet", KAboutData::License_GPL, @@ -205,8 +205,8 @@ KMixApplet::KMixApplet( const TQString& configFile, Type t, // No mixer set by user (kmixappletrc_*) and more than one to choose // We do NOT know which mixer to use => ask the User m_errorLabel = new TQPushButton( i18n("Select Mixer"), this ); - m_errorLabel->setGeometry(0, 0, m_errorLabel->sizeHint().width(), m_errorLabel->sizeHint().height() ); - resize( m_errorLabel->sizeHint() ); + m_errorLabel->setGeometry(0, 0, m_errorLabel->tqsizeHint().width(), m_errorLabel->tqsizeHint().height() ); + resize( m_errorLabel->tqsizeHint() ); connect( m_errorLabel, TQT_SIGNAL(clicked()), this, TQT_SLOT(selectMixer()) ); } else { @@ -243,13 +243,13 @@ void KMixApplet::saveConfig() cfg->writeEntry( "ColorCustom", _customColors ); - cfg->writeEntry( "ColorHigh", _colors.high.name() ); - cfg->writeEntry( "ColorLow", _colors.low.name() ); - cfg->writeEntry( "ColorBack", _colors.back.name() ); + cfg->writeEntry( "ColorHigh", TQString(_colors.high.name()) ); + cfg->writeEntry( "ColorLow", TQString(_colors.low.name()) ); + cfg->writeEntry( "ColorBack", TQString(_colors.back.name()) ); - cfg->writeEntry( "ColorMutedHigh", _colors.mutedHigh.name() ); - cfg->writeEntry( "ColorMutedLow", _colors.mutedLow.name() ); - cfg->writeEntry( "ColorMutedBack", _colors.mutedBack.name() ); + cfg->writeEntry( "ColorMutedHigh", TQString(_colors.mutedHigh.name()) ); + cfg->writeEntry( "ColorMutedLow", TQString(_colors.mutedLow.name()) ); + cfg->writeEntry( "ColorMutedBack", TQString(_colors.mutedBack.name()) ); //cfg->writeEntry( "ReversedDirection", reversedDir ); @@ -266,7 +266,7 @@ void KMixApplet::loadConfig() cfg->setGroup(0); _mixerId = cfg->readEntry( "Mixer", "undef" ); - _mixerName = cfg->readEntry( "MixerName", TQString::null ); + _mixerName = cfg->readEntry( "MixerName", TQString() ); _customColors = cfg->readBoolEntry( "ColorCustom", false ); @@ -325,7 +325,7 @@ void KMixApplet::selectMixer() lst, 1, FALSE, &ok, this ); if ( ok ) { - Mixer *mixer = Mixer::mixers().at( lst.findIndex( res ) ); + Mixer *mixer = Mixer::mixers().at( lst.tqfindIndex( res ) ); if (!mixer) KMessageBox::sorry( this, i18n("Invalid mixer entered.") ); else @@ -375,7 +375,7 @@ void KMixApplet::positionChange(Position pos) { loadConfig(); setColors(); - const TQSize panelAppletConstrainedSize = sizeHint(); + const TQSize panelAppletConstrainedSize = tqsizeHint(); m_mixerWidget->setGeometry( 0, 0, panelAppletConstrainedSize.width(), panelAppletConstrainedSize.height() ); resize( panelAppletConstrainedSize.width(), panelAppletConstrainedSize.height() ); //setFixedSize(panelAppletConstrainedSize.width(), panelAppletConstrainedSize.height() ); @@ -401,7 +401,7 @@ void KMixApplet::resizeEvent(TQResizeEvent *e) } - // resizing changes our own sizeHint(), because we must take the new PanelSize in account. + // resizing changes our own tqsizeHint(), because we must take the new PanelSize in account. // So updateGeometry() is amust for us. //kdDebug(67100) << "KMixApplet::resizeEvent(). UPDATE GEOMETRY" << endl; updateGeometry(); @@ -414,35 +414,35 @@ void KMixApplet::updateGeometrySlot() { } -TQSize KMixApplet::sizeHint() const { - //kdDebug(67100) << "KMixApplet::sizeHint()\n"; +TQSize KMixApplet::tqsizeHint() const { + //kdDebug(67100) << "KMixApplet::tqsizeHint()\n"; TQSize qsz; if ( m_errorLabel !=0 ) { - qsz = m_errorLabel->sizeHint(); + qsz = m_errorLabel->tqsizeHint(); } else if ( m_mixerWidget != 0) { - qsz = m_mixerWidget->sizeHint(); + qsz = m_mixerWidget->tqsizeHint(); } else { // During construction of m_mixerWidget or if something goes wrong: - // Return something that should resemble our former sizeHint(). + // Return something that should resemble our former tqsizeHint(). qsz = size(); } - //kdDebug(67100) << "KMixApplet::sizeHint() leftright =" << qsz << "\n"; + //kdDebug(67100) << "KMixApplet::tqsizeHint() leftright =" << qsz << "\n"; return qsz; } /** - We need widthForHeight() and heigthForWidth() only because KPanelApplet::updateLayout does relayouts + We need widthForHeight() and heigthForWidth() only because KPanelApplet::updateLayout does retqlayouts using this method. Actually we ignore the passed paramater and just return our preferred size. */ int KMixApplet::widthForHeight(int) const { - //kdDebug(67100) << "KMixApplet::widthForHeight() = " << sizeHint().width() << endl; - return sizeHint().width(); + //kdDebug(67100) << "KMixApplet::widthForHeight() = " << tqsizeHint().width() << endl; + return tqsizeHint().width(); } int KMixApplet::heightForWidth(int) const { - //kdDebug(67100) << "KMixApplet::heightForWidth() = " << sizeHint().height() << endl; - return sizeHint().height(); + //kdDebug(67100) << "KMixApplet::heightForWidth() = " << tqsizeHint().height() << endl; + return tqsizeHint().height(); } diff --git a/kmix/kmixapplet.h b/kmix/kmixapplet.h index 561a596f..1b997a5b 100644 --- a/kmix/kmixapplet.h +++ b/kmix/kmixapplet.h @@ -22,7 +22,7 @@ #ifndef KMIXAPPLET_H #define KMIXAPPLET_H -// Qt +// TQt #include #include #include @@ -43,8 +43,9 @@ class KMixApplet; class AppletConfigDialog : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - AppletConfigDialog( TQWidget * parent=0, const char * name=0 ); + AppletConfigDialog( TQWidget * tqparent=0, const char * name=0 ); virtual ~AppletConfigDialog() {}; void setActiveColors(const TQColor& high, const TQColor& low, const TQColor& back); @@ -70,10 +71,11 @@ class AppletConfigDialog : public KDialogBase class KMixApplet : public KPanelApplet { Q_OBJECT + TQ_OBJECT public: KMixApplet( const TQString& configFile, Type t = Normal, - TQWidget *parent = 0, const char *name = 0 ); + TQWidget *tqparent = 0, const char *name = 0 ); virtual ~KMixApplet(); struct Colors { @@ -86,7 +88,7 @@ public: void reportBug(); void paletteChange ( const TQPalette & oldPalette ); - TQSize sizeHint() const; + TQSize tqsizeHint() const; TQSizePolicy sizePolicy() const; int widthForHeight(int) const; int heightForWidth(int) const; diff --git a/kmix/kmixdockwidget.cpp b/kmix/kmixdockwidget.cpp index 32372cb3..1a0763d5 100644 --- a/kmix/kmixdockwidget.cpp +++ b/kmix/kmixdockwidget.cpp @@ -48,8 +48,8 @@ #include "kwin.h" #include "viewdockareapopup.h" -KMixDockWidget::KMixDockWidget( Mixer *mixer, TQWidget *parent, const char *name, bool volumePopup, bool dockIconMuting ) - : KSystemTray( parent, name ), +KMixDockWidget::KMixDockWidget( Mixer *mixer, TQWidget *tqparent, const char *name, bool volumePopup, bool dockIconMuting ) + : KSystemTray( tqparent, name ), m_mixer(mixer), _dockAreaPopup(0L), _audioPlayer(0L), @@ -81,7 +81,7 @@ KMixDockWidget::~KMixDockWidget() void KMixDockWidget::createActions() { // Put "Mute" selector in context menu - (void)new KToggleAction( i18n( "M&ute" ), 0, this, TQT_SLOT( dockMute() ), + (void)new KToggleAction( i18n( "M&ute" ), 0, TQT_TQOBJECT(this), TQT_SLOT( dockMute() ), actionCollection(), "dock_mute" ); KAction *a = actionCollection()->action( "dock_mute" ); KPopupMenu *popupMenu = contextMenu(); @@ -89,7 +89,7 @@ void KMixDockWidget::createActions() // Put "Select Master Channel" dialog in context menu if ( m_mixer != 0 ) { - (void)new KAction( i18n("Select Master Channel..."), 0, this, TQT_SLOT(selectMaster()), + (void)new KAction( i18n("Select Master Channel..."), 0, TQT_TQOBJECT(this), TQT_SLOT(selectMaster()), actionCollection(), "select_master"); KAction *a2 = actionCollection()->action( "select_master" ); if (a2) a2->plug( popupMenu ); @@ -123,7 +123,7 @@ KMixDockWidget::createMasterVolWidget() m_mixer->readSetFromHWforceUpdate(); // after changing the master device, make sure to re-read (otherwise no "changed()" signals might get sent by the Mixer /* With the recently introduced TQSocketNotifier stuff, we can't rely on regular timer updates any longer. Also the readSetFromHWforceUpdate() won't be enough. As a workaround, we trigger - all "repaints" manually here. + all "tqrepaints" manually here. The call to m_mixer->readSetFromHWforceUpdate() is most likely superfluous, even if we don't use TQSocketNotifier (e.g. in backends OSS, Solaris, ...) */ setVolumeTip(); @@ -135,8 +135,8 @@ KMixDockWidget::createMasterVolWidget() * */ // connect( m_mixer, TQT_SIGNAL(newVolumeLevels()), _dockAreaPopup, TQT_SLOT(refreshVolumeLevels()) ); - connect( m_mixer, TQT_SIGNAL(newVolumeLevels()), this, TQT_SLOT(setVolumeTip() ) ); - connect( m_mixer, TQT_SIGNAL(newVolumeLevels()), this, TQT_SLOT(slotUpdatePixmap() ) ); + connect( m_mixer, TQT_SIGNAL(newVolumeLevels()), TQT_TQOBJECT(this), TQT_SLOT(setVolumeTip() ) ); + connect( m_mixer, TQT_SIGNAL(newVolumeLevels()), TQT_TQOBJECT(this), TQT_SLOT(slotUpdatePixmap() ) ); } void KMixDockWidget::slotUpdatePixmap() @@ -191,7 +191,7 @@ KMixDockWidget::setVolumeTip() } newToolTipValue = val + 10000*md->isMuted(); if ( _oldToolTipValue != newToolTipValue ) { - tip = i18n( "Volume at %1%" ).arg( val ); + tip = i18n( "Volume at %1%" ).tqarg( val ); if ( md->isMuted() ) { tip += i18n( " (Muted)" ); } @@ -267,7 +267,7 @@ KMixDockWidget::mousePressEvent(TQMouseEvent *me) // esken: Due to overwhelming request, LeftButton shows the ViewDockAreaPopup, if configured // to do so. Otherwise the main window will be shown. - if ( me->button() == LeftButton ) + if ( me->button() == Qt::LeftButton ) { if ( ! _volumePopup ) { // Case 1: User wants to show main window => This is the KSystemTray default action @@ -311,7 +311,7 @@ KMixDockWidget::mousePressEvent(TQMouseEvent *me) TQWidget::mousePressEvent(me); // KSystemTray's shouldn't do the default action for this return; } // LeftMouseButton pressed - else if ( me->button() == MidButton ) { + else if ( me->button() == Qt::MidButton ) { if ( ! _dockIconMuting ) { toggleActive(); } else { @@ -357,10 +357,10 @@ KMixDockWidget::wheelEvent(TQWheelEvent *e) } md->getVolume().setVolume(vol); m_mixer->commitVolumeChange(md); - // refresh the toolTip (Qt removes it on a MouseWheel event) - // Mhhh, it doesn't work. Qt does not show it again. + // refresh the toolTip (TQt removes it on a MouseWheel event) + // Mhhh, it doesn't work. TQt does not show it again. setVolumeTip(); - // Simulate a mouse move to make Qt show the tooltip again + // Simulate a mouse move to make TQt show the tooltip again TQApplication::postEvent( this, new TQMouseEvent( TQEvent::MouseMove, TQCursor::pos(), Qt::NoButton, Qt::NoButton ) ); } @@ -384,9 +384,9 @@ void KMixDockWidget::contextMenuAboutToShow( KPopupMenu* /* menu */ ) { KAction* showAction = actionCollection()->action("minimizeRestore"); - if ( parentWidget() && showAction ) + if ( tqparentWidget() && showAction ) { - if ( parentWidget()->isVisible() ) + if ( tqparentWidget()->isVisible() ) { showAction->setText( i18n("Hide Mixer Window") ); } diff --git a/kmix/kmixdockwidget.h b/kmix/kmixdockwidget.h index e536be4b..9efaefb6 100644 --- a/kmix/kmixdockwidget.h +++ b/kmix/kmixdockwidget.h @@ -39,11 +39,12 @@ class Volume; class KMixDockWidget : public KSystemTray { Q_OBJECT + TQ_OBJECT friend class KMixWindow; public: - KMixDockWidget(Mixer *, TQWidget *parent=0, const char *name=0, bool volumePopup=true, bool dockIconMuting=false); + KMixDockWidget(Mixer *, TQWidget *tqparent=0, const char *name=0, bool volumePopup=true, bool dockIconMuting=false); ~KMixDockWidget(); void setErrorPixmap(); diff --git a/kmix/kmixerwidget.cpp b/kmix/kmixerwidget.cpp index 45fbbf31..322f2160 100644 --- a/kmix/kmixerwidget.cpp +++ b/kmix/kmixerwidget.cpp @@ -19,7 +19,7 @@ */ -// Qt +// TQt #include #include #include @@ -49,7 +49,7 @@ /** This widget is embedded in the KMix Main window. Each Hardware Mixer is visualized by one KMixerWidget. - KMixerWidget contains + KMixerWidget tqcontains (a) a headline where you can change Mixer's (if you got more than one Mixer) (b) a Tab with 2-4 Tabs (containing View's with sliders, switches and other GUI elements visualizing the Mixer) (c) A balancing slider @@ -57,8 +57,8 @@ */ KMixerWidget::KMixerWidget( int _id, Mixer *mixer, const TQString &mixerName, MixDevice::DeviceCategory categoryMask, - TQWidget * parent, const char * name, ViewBase::ViewFlags vflags ) - : TQWidget( parent, name ), _mixer(mixer), m_balanceSlider(0), + TQWidget * tqparent, const char * name, ViewBase::ViewFlags vflags ) + : TQWidget( tqparent, name ), _mixer(mixer), m_balanceSlider(0), m_topLayout(0), m_id( _id ), _iconsEnabled( true ), _labelsEnabled( false ), _ticksEnabled( false ), @@ -76,13 +76,13 @@ KMixerWidget::KMixerWidget( int _id, Mixer *mixer, const TQString &mixerName, { // No mixer found // !! Fix this: This is actually never shown! - TQBoxLayout *layout = new TQHBoxLayout( this ); + TQBoxLayout *tqlayout = new TQHBoxLayout( this ); TQString s = i18n("Invalid mixer"); if ( !mixerName.isEmpty() ) s.append(" \"").append(mixerName).append("\""); TQLabel *errorLabel = new TQLabel( s, this ); - errorLabel->setAlignment( TQLabel::AlignCenter | TQLabel::WordBreak ); - layout->addWidget( errorLabel ); + errorLabel->tqsetAlignment( TQLabel::AlignCenter | TQLabel::WordBreak ); + tqlayout->addWidget( errorLabel ); } } @@ -103,7 +103,7 @@ void KMixerWidget::createLayout(ViewBase::ViewFlags vflags) delete m_topLayout; } - // create main layout + // create main tqlayout m_topLayout = new TQVBoxLayout( this, 0, 3, "m_topLayout" ); // Create tabs of input + output + [...] @@ -133,11 +133,11 @@ void KMixerWidget::createLayout(ViewBase::ViewFlags vflags) // *** Lower part: Slider and Mixer Name ************************************************ TQHBoxLayout *balanceAndDetail = new TQHBoxLayout( m_topLayout, 8, "balanceAndDetail"); // Create the left-right-slider - m_balanceSlider = new TQSlider( -100, 100, 25, 0, TQSlider::Horizontal, this, "RightLeft" ); + m_balanceSlider = new TQSlider( -100, 100, 25, 0, Qt::Horizontal, this, "RightLeft" ); m_balanceSlider->setTickmarks( TQSlider::Below ); m_balanceSlider->setTickInterval( 25 ); - m_balanceSlider->setMinimumSize( m_balanceSlider->sizeHint() ); - m_balanceSlider->setFixedHeight( m_balanceSlider->sizeHint().height() ); + m_balanceSlider->setMinimumSize( m_balanceSlider->tqsizeHint() ); + m_balanceSlider->setFixedHeight( m_balanceSlider->tqsizeHint().height() ); TQLabel *mixerName = new TQLabel(this, "mixerName"); mixerName->setText( _mixer->mixerName() ); @@ -167,7 +167,7 @@ void KMixerWidget::possiblyAddView(ViewBase* vbase) _views.push_back(vbase); vbase ->createDeviceWidgets(); m_ioTab->addTab( vbase , vbase->caption() ); - connect( vbase, TQT_SIGNAL(toggleMenuBar()), parentWidget(), TQT_SLOT(toggleMenuBar()) ); + connect( vbase, TQT_SIGNAL(toggleMenuBar()), tqparentWidget(), TQT_SLOT(toggleMenuBar()) ); } } diff --git a/kmix/kmixerwidget.h b/kmix/kmixerwidget.h index 6e793ca6..06ea6745 100644 --- a/kmix/kmixerwidget.h +++ b/kmix/kmixerwidget.h @@ -59,11 +59,12 @@ class ViewSurround; class KMixerWidget : public TQWidget { Q_OBJECT + TQ_OBJECT public: KMixerWidget( int _id, Mixer *mixer, const TQString &mixerName, MixDevice::DeviceCategory categoryMask = MixDevice::ALL , - TQWidget *parent=0, const char *name=0, ViewBase::ViewFlags vflags=0 ); + TQWidget *tqparent=0, const char *name=0, ViewBase::ViewFlags vflags=0 ); ~KMixerWidget(); enum KMixerWidgetIO { OUTPUT=0, INPUT }; diff --git a/kmix/kmixprefdlg.cpp b/kmix/kmixprefdlg.cpp index dbf2ae93..2a2793e4 100644 --- a/kmix/kmixprefdlg.cpp +++ b/kmix/kmixprefdlg.cpp @@ -36,43 +36,43 @@ #include "kmixerwidget.h" -KMixPrefDlg::KMixPrefDlg( TQWidget *parent ) +KMixPrefDlg::KMixPrefDlg( TQWidget *tqparent ) : KDialogBase( Plain, i18n( "Configure" ), - Ok|Cancel|Apply, Ok, parent ) + Ok|Cancel|Apply, Ok, tqparent ) { // general buttons m_generalTab = plainPage( /* i18n("&General") */ ); - TQBoxLayout *layout = new TQVBoxLayout( m_generalTab ); - layout->setSpacing( KDialog::spacingHint() ); + TQBoxLayout *tqlayout = new TQVBoxLayout( m_generalTab ); + tqlayout->setSpacing( KDialog::spacingHint() ); m_dockingChk = new TQCheckBox( i18n("&Dock into panel"), m_generalTab ); - layout->addWidget( m_dockingChk ); + tqlayout->addWidget( m_dockingChk ); TQWhatsThis::add(m_dockingChk, i18n("Docks the mixer into the KDE panel")); m_volumeChk = new TQCheckBox(i18n("Enable system tray &volume control"), m_generalTab); - layout->addWidget(m_volumeChk); + tqlayout->addWidget(m_volumeChk); m_showTicks = new TQCheckBox( i18n("Show &tickmarks"), m_generalTab ); - layout->addWidget( m_showTicks ); + tqlayout->addWidget( m_showTicks ); TQWhatsThis::add(m_showTicks, i18n("Enable/disable tickmark scales on the sliders")); m_showLabels = new TQCheckBox( i18n("Show &labels"), m_generalTab ); - layout->addWidget( m_showLabels ); + tqlayout->addWidget( m_showLabels ); TQWhatsThis::add(m_showLabels, i18n("Enables/disables description labels above the sliders")); m_onLogin = new TQCheckBox( i18n("Restore volumes on login"), m_generalTab ); - layout->addWidget( m_onLogin ); + tqlayout->addWidget( m_onLogin ); m_dockIconMuting = new TQCheckBox( i18n("Middle click on system tray icon toggles muting"), m_generalTab ); - layout->addWidget( m_dockIconMuting ); + tqlayout->addWidget( m_dockIconMuting ); - TQBoxLayout *numbersLayout = new TQHBoxLayout( layout ); + TQBoxLayout *numbersLayout = new TQHBoxLayout( tqlayout ); TQButtonGroup *numbersGroup = new TQButtonGroup( 3, Qt::Horizontal, i18n("Numbers"), m_generalTab ); numbersGroup->setRadioButtonExclusive(true); TQLabel* qlbl = new TQLabel( i18n("Volume Values: "), m_generalTab ); @@ -91,14 +91,14 @@ KMixPrefDlg::KMixPrefDlg( TQWidget *parent ) numbersLayout->addStretch(); m_autoStartChk = new TQCheckBox( i18n("&Autostart"), m_generalTab ); - layout->addWidget( m_autoStartChk ); + tqlayout->addWidget( m_autoStartChk ); TQWhatsThis::add(m_autoStartChk, i18n("Automatically start mixer when you login")); - TQBoxLayout *orientationLayout = new TQHBoxLayout( layout ); - TQButtonGroup* orientationGroup = new TQButtonGroup( 2, Qt::Horizontal, i18n("Orientation"), m_generalTab ); + TQBoxLayout *orientationLayout = new TQHBoxLayout( tqlayout ); + TQButtonGroup* orientationGroup = new TQButtonGroup( 2, Qt::Horizontal, i18n("Qt::Orientation"), m_generalTab ); //orientationLayout->add(orientationGroup); orientationGroup->setRadioButtonExclusive(true); - TQLabel* qlb = new TQLabel( i18n("Slider Orientation: "), m_generalTab ); + TQLabel* qlb = new TQLabel( i18n("Slider Qt::Orientation: "), m_generalTab ); _rbHorizontal = new TQRadioButton(i18n("&Horizontal"), m_generalTab ); _rbVertical = new TQRadioButton(i18n("&Vertical" ), m_generalTab ); orientationGroup->insert(_rbHorizontal); @@ -112,7 +112,7 @@ KMixPrefDlg::KMixPrefDlg( TQWidget *parent ) orientationLayout->add(_rbVertical); orientationLayout->addStretch(); - layout->addStretch(); + tqlayout->addStretch(); enableButtonSeparator(true); connect( this, TQT_SIGNAL(applyClicked()), this, TQT_SLOT(apply()) ); diff --git a/kmix/kmixprefdlg.h b/kmix/kmixprefdlg.h index 2c299515..0840e05e 100644 --- a/kmix/kmixprefdlg.h +++ b/kmix/kmixprefdlg.h @@ -33,11 +33,12 @@ class KMixPrefDlg : public KDialogBase { Q_OBJECT + TQ_OBJECT friend class KMixWindow; public: - KMixPrefDlg( TQWidget *parent ); + KMixPrefDlg( TQWidget *tqparent ); ~KMixPrefDlg(); signals: diff --git a/kmix/ksmallslider.cpp b/kmix/ksmallslider.cpp index e10c46c8..eb03cfc7 100644 --- a/kmix/ksmallslider.cpp +++ b/kmix/ksmallslider.cpp @@ -36,22 +36,22 @@ static const TQColor mutedLowColor2 = "#808080"; static const TQColor backColor2 = "#000000"; */ -KSmallSlider::KSmallSlider( TQWidget *parent, const char *name ) - : TQWidget( parent, name ), _orientation( Qt::Vertical ) +KSmallSlider::KSmallSlider( TQWidget *tqparent, const char *name ) + : TQWidget( tqparent, name ), _orientation( Qt::Vertical ) { init(); } -KSmallSlider::KSmallSlider( Qt::Orientation orientation, TQWidget *parent, const char *name ) - : TQWidget( parent, name ), _orientation( orientation ) +KSmallSlider::KSmallSlider( Qt::Orientation orientation, TQWidget *tqparent, const char *name ) + : TQWidget( tqparent, name ), _orientation( orientation ) { init(); } KSmallSlider::KSmallSlider( int minValue, int maxValue, int pageStep, int value, Qt::Orientation orientation, - TQWidget *parent, const char *name ) - : TQWidget( parent, name ), + TQWidget *tqparent, const char *name ) + : TQWidget( tqparent, name ), TQRangeControl( minValue, maxValue, 1, pageStep, value ), _orientation( orientation) { init(); @@ -68,7 +68,7 @@ void KSmallSlider::init() //track = TRUE; //setMouseTracking(true); grayed = false; - setFocusPolicy( TabFocus ); + setFocusPolicy( TQ_TabFocus ); colHigh = TQColor(0,255,0); colLow = TQColor(255,0,0); @@ -98,7 +98,7 @@ int KSmallSlider::valueFromPosition( int p ) const return TQRangeControl::valueFromPosition( avail - p, avail ); } else { - // Horizontal everything is fine. Slider values match with Coordinate System + //Qt::Horizontal everything is fine. Slider values match with Coordinate System return TQRangeControl::valueFromPosition( p, available() ); } } @@ -225,7 +225,7 @@ void KSmallSlider::paintEvent( TQPaintEvent * ) int sliderPos = positionFromValue( TQRangeControl::value() ); // ------------------------ draw 3d border --------------------------------------------- - style().drawPrimitive ( TQStyle::PE_Panel, &p, TQRect( 0, 0, width(), height() ), colorGroup(), TRUE ); + tqstyle().tqdrawPrimitive ( TQStyle::PE_Panel, &p, TQRect( 0, 0, width(), height() ), tqcolorGroup(), TRUE ); // ------------------------ draw lower/left part ---------------------------------------- @@ -286,7 +286,7 @@ void KSmallSlider::mousePressEvent( TQMouseEvent *e ) { //resetState(); - if ( e->button() == RightButton ) { + if ( e->button() == Qt::RightButton ) { return; } @@ -326,7 +326,7 @@ void KSmallSlider::wheelEvent( TQWheelEvent * e) } e->accept(); // Accept the event - // Hint: Qt autmatically triggers a valueChange() when we do setValue() + // Hint: TQt autmatically triggers a valueChange() when we do setValue() } void KSmallSlider::mouseReleaseEvent( TQMouseEvent * ) @@ -340,7 +340,7 @@ void KSmallSlider::mouseReleaseEvent( TQMouseEvent * ) void KSmallSlider::moveSlider( int pos ) { int a = available(); - int newPos = QMIN( a, QMAX( 0, pos ) ); // keep it inside the available bounds of the slider + int newPos = TQMIN( a, TQMAX( 0, pos ) ); // keep it inside the available bounds of the slider int newVal = valueFromPosition( newPos ); if ( newVal != TQRangeControl::value() ) { @@ -396,7 +396,7 @@ int KSmallSlider::goodPart( const TQPoint &p ) const } /***************** SIZE STUFF START ***************/ -TQSize KSmallSlider::sizeHint() const +TQSize KSmallSlider::tqsizeHint() const { //constPolish(); const int length = 25; @@ -409,7 +409,7 @@ TQSize KSmallSlider::sizeHint() const } -TQSize KSmallSlider::minimumSizeHint() const +TQSize KSmallSlider::tqminimumSizeHint() const { TQSize s(10,10); return s; @@ -486,7 +486,7 @@ void KSmallSlider::setGray( bool value ) { grayed = value; update(); - //repaint(); + //tqrepaint(); } } @@ -501,7 +501,7 @@ void KSmallSlider::setColors( TQColor high, TQColor low, TQColor back ) colLow = low; colBack = back; update(); - //repaint(); + //tqrepaint(); } void KSmallSlider::setGrayColors( TQColor high, TQColor low, TQColor back ) @@ -510,7 +510,7 @@ void KSmallSlider::setGrayColors( TQColor high, TQColor low, TQColor back ) grayLow = low; grayBack = back; update(); - //repaint(); + //tqrepaint(); } #include "ksmallslider.moc" diff --git a/kmix/ksmallslider.h b/kmix/ksmallslider.h index 62849f7b..23a84695 100644 --- a/kmix/ksmallslider.h +++ b/kmix/ksmallslider.h @@ -29,21 +29,22 @@ #include #include -class KSmallSlider : public TQWidget, public QRangeControl +class KSmallSlider : public TQWidget, public TQRangeControl { Q_OBJECT + TQ_OBJECT public: - KSmallSlider( TQWidget *parent, const char *name=0 ); - KSmallSlider( Qt::Orientation, TQWidget *parent, const char *name=0 ); + KSmallSlider( TQWidget *tqparent, const char *name=0 ); + KSmallSlider( Qt::Orientation, TQWidget *tqparent, const char *name=0 ); KSmallSlider( int minValue, int maxValue, int pageStep, int value, - Qt::Orientation, TQWidget *parent, const char *name=0 ); + Qt::Orientation, TQWidget *tqparent, const char *name=0 ); //virtual void setTracking( bool enable ); //bool tracking() const; - TQSize sizeHint() const; + TQSize tqsizeHint() const; TQSizePolicy sizePolicy() const; - TQSize minimumSizeHint() const; + TQSize tqminimumSizeHint() const; int minValue() const; int maxValue() const; @@ -99,7 +100,7 @@ public slots: int goodPart( const TQPoint& ) const; //void initTicks(); - //QCOORD sliderPos; + //TQCOORD sliderPos; //int sliderVal; //State state; //bool track; diff --git a/kmix/mdwenum.cpp b/kmix/mdwenum.cpp index 35ec4de8..17a5887d 100644 --- a/kmix/mdwenum.cpp +++ b/kmix/mdwenum.cpp @@ -46,22 +46,22 @@ */ MDWEnum::MDWEnum(Mixer *mixer, MixDevice* md, Qt::Orientation orientation, - TQWidget* parent, ViewBase* mw, const char* name) : - MixDeviceWidget(mixer,md,false,orientation,parent,mw,name), + TQWidget* tqparent, ViewBase* mw, const char* name) : + MixDeviceWidget(mixer,md,false,orientation,tqparent,mw,name), _label(0), _enumCombo(0), _layout(0) { // create actions (on _mdwActions, see MixDeviceWidget) // KStdAction::showMenubar() is in MixDeviceWidget now - new KToggleAction( i18n("&Hide"), 0, this, TQT_SLOT(setDisabled()), _mdwActions, "hide" ); - new KAction( i18n("C&onfigure Shortcuts..."), 0, this, TQT_SLOT(defineKeys()), _mdwActions, "keys" ); + new KToggleAction( i18n("&Hide"), 0, TQT_TQOBJECT(this), TQT_SLOT(setDisabled()), _mdwActions, "hide" ); + new KAction( i18n("C&onfigure Shortcuts..."), 0, TQT_TQOBJECT(this), TQT_SLOT(defineKeys()), _mdwActions, "keys" ); // create widgets createWidgets(); /* !!! remove this for production version */ - m_keys->insert( "Next Value", i18n( "Next Value" ), TQString::null, - KShortcut(), KShortcut(), this, TQT_SLOT( nextEnumId() ) ); + m_keys->insert( "Next Value", i18n( "Next Value" ), TQString(), + KShortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( nextEnumId() ) ); installEventFilter( this ); // filter for popup } @@ -75,21 +75,21 @@ void MDWEnum::createWidgets() { if ( _orientation == Qt::Vertical ) { _layout = new TQVBoxLayout( this ); - _layout->setAlignment(Qt::AlignHCenter); + _layout->tqsetAlignment(TQt::AlignHCenter); } else { _layout = new TQHBoxLayout( this ); - _layout->setAlignment(Qt::AlignVCenter); + _layout->tqsetAlignment(TQt::AlignVCenter); } TQToolTip::add( this, m_mixdevice->name() ); //this->setStretchFactor( _layout, 0 ); //TQSizePolicy qsp( TQSizePolicy::Ignored, TQSizePolicy::Maximum); - //_layout->setSizePolicy(qsp); + //_layout->tqsetSizePolicy(qsp); //_layout->setSpacing(KDialog::spacingHint()); _label = new TQLabel( m_mixdevice->name(), this); _layout->addWidget(_label); - _label->setFixedHeight(_label->sizeHint().height()); + _label->setFixedHeight(_label->tqsizeHint().height()); _enumCombo = new KComboBox( FALSE, this, "mixerCombo" ); // ------------ fill ComboBox start ------------ int maxEnumId= m_mixdevice->enumValues().count(); @@ -98,8 +98,8 @@ void MDWEnum::createWidgets() } // ------------ fill ComboBox end -------------- _layout->addWidget(_enumCombo); - _enumCombo->setFixedHeight(_enumCombo->sizeHint().height()); - connect( _enumCombo, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( setEnumId( int ) ) ); + _enumCombo->setFixedHeight(_enumCombo->tqsizeHint().height()); + connect( _enumCombo, TQT_SIGNAL( activated( int ) ), TQT_TQOBJECT(this), TQT_SLOT( setEnumId( int ) ) ); TQToolTip::add( _enumCombo, m_mixdevice->name() ); //_layout->addSpacing( 4 ); @@ -127,13 +127,13 @@ void MDWEnum::showContextMenu() menu->popup( pos ); } -TQSize MDWEnum::sizeHint() const { +TQSize MDWEnum::tqsizeHint() const { if ( _layout != 0 ) { - return _layout->sizeHint(); + return _layout->tqsizeHint(); } else { - // layout not (yet) created - return TQWidget::sizeHint(); + // tqlayout not (yet) created + return TQWidget::tqsizeHint(); } } @@ -188,13 +188,13 @@ void MDWEnum::setDisabled( bool value ) { } /** - * An event filter for the various QWidgets. We watch for Mouse press Events, so + * An event filter for the various TQWidgets. We watch for Mouse press Events, so * that we can popup the context menu. */ bool MDWEnum::eventFilter( TQObject* obj, TQEvent* e ) { if (e->type() == TQEvent::MouseButtonPress) { - TQMouseEvent *qme = static_cast(e); + TQMouseEvent *qme = TQT_TQMOUSEEVENT(e); if (qme->button() == Qt::RightButton) { showContextMenu(); return true; diff --git a/kmix/mdwenum.h b/kmix/mdwenum.h index a541f155..d0ec1bec 100644 --- a/kmix/mdwenum.h +++ b/kmix/mdwenum.h @@ -42,15 +42,16 @@ class ViewBase; class MDWEnum : public MixDeviceWidget { Q_OBJECT + TQ_OBJECT public: MDWEnum( Mixer *mixer, MixDevice* md, Qt::Orientation orientation, - TQWidget* parent = 0, ViewBase* mw = 0, const char* name = 0); + TQWidget* tqparent = 0, ViewBase* mw = 0, const char* name = 0); ~MDWEnum(); void addActionToPopup( KAction *action ); - TQSize sizeHint() const; + TQSize tqsizeHint() const; bool eventFilter( TQObject* obj, TQEvent* e ); public slots: diff --git a/kmix/mdwslider.cpp b/kmix/mdwslider.cpp index 81d51668..3867af9f 100644 --- a/kmix/mdwslider.cpp +++ b/kmix/mdwslider.cpp @@ -58,15 +58,15 @@ MDWSlider::MDWSlider(Mixer *mixer, MixDevice* md, bool showMuteLED, bool showRecordLED, bool small, Qt::Orientation orientation, - TQWidget* parent, ViewBase* mw, const char* name) : - MixDeviceWidget(mixer,md,small,orientation,parent,mw,name), + TQWidget* tqparent, ViewBase* mw, const char* name) : + MixDeviceWidget(mixer,md,small,orientation,tqparent,mw,name), m_linked(true), m_valueStyle( NNONE), m_iconLabel( 0 ), m_muteLED( 0 ), m_recordLED( 0 ), m_label( 0 ), _layout(0) { // create actions (on _mdwActions, see MixDeviceWidget) - new KToggleAction( i18n("&Split Channels"), 0, this, TQT_SLOT(toggleStereoLinked()), + new KToggleAction( i18n("&Split Channels"), 0, TQT_TQOBJECT(this), TQT_SLOT(toggleStereoLinked()), _mdwActions, "stereo" ); - new KToggleAction( i18n("&Hide"), 0, this, TQT_SLOT(setDisabled()), _mdwActions, "hide" ); + new KToggleAction( i18n("&Hide"), 0, TQT_TQOBJECT(this), TQT_SLOT(setDisabled()), _mdwActions, "hide" ); KToggleAction *a = new KToggleAction(i18n("&Muted"), 0, 0, 0, _mdwActions, "mute" ); connect( a, TQT_SIGNAL(toggled(bool)), TQT_SLOT(toggleMuted()) ); @@ -76,17 +76,17 @@ MDWSlider::MDWSlider(Mixer *mixer, MixDevice* md, connect( a, TQT_SIGNAL(toggled(bool)), TQT_SLOT( toggleRecsrc()) ); } - new KAction( i18n("C&onfigure Global Shortcuts..."), 0, this, TQT_SLOT(defineKeys()), _mdwActions, "keys" ); + new KAction( i18n("C&onfigure Global Shortcuts..."), 0, TQT_TQOBJECT(this), TQT_SLOT(defineKeys()), _mdwActions, "keys" ); // create widgets createWidgets( showMuteLED, showRecordLED ); - m_keys->insert( "Increase volume", i18n( "Increase Volume of '%1'" ).arg(m_mixdevice->name().utf8().data()), TQString::null, - KShortcut(), KShortcut(), this, TQT_SLOT( increaseVolume() ) ); - m_keys->insert( "Decrease volume", i18n( "Decrease Volume of '%1'" ).arg(m_mixdevice->name().utf8().data()), TQString::null, - KShortcut(), KShortcut(), this, TQT_SLOT( decreaseVolume() ) ); - m_keys->insert( "Toggle mute", i18n( "Toggle Mute of '%1'" ).arg(m_mixdevice->name().utf8().data()), TQString::null, - KShortcut(), KShortcut(), this, TQT_SLOT( toggleMuted() ) ); + m_keys->insert( "Increase volume", i18n( "Increase Volume of '%1'" ).tqarg(m_mixdevice->name().utf8().data()), TQString(), + KShortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( increaseVolume() ) ); + m_keys->insert( "Decrease volume", i18n( "Decrease Volume of '%1'" ).tqarg(m_mixdevice->name().utf8().data()), TQString(), + KShortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( decreaseVolume() ) ); + m_keys->insert( "Toggle mute", i18n( "Toggle Mute of '%1'" ).tqarg(m_mixdevice->name().utf8().data()), TQString(), + KShortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( toggleMuted() ) ); installEventFilter( this ); // filter for popup @@ -115,25 +115,25 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED ) { if ( _orientation == Qt::Vertical ) { _layout = new TQVBoxLayout( this ); - _layout->setAlignment(Qt::AlignCenter); + _layout->tqsetAlignment(TQt::AlignCenter); } else { _layout = new TQHBoxLayout( this ); - _layout->setAlignment(Qt::AlignCenter); + _layout->tqsetAlignment(TQt::AlignCenter); } // -- MAIN SLIDERS LAYOUT --- TQBoxLayout *slidersLayout; if ( _orientation == Qt::Vertical ) { slidersLayout = new TQHBoxLayout( _layout ); - slidersLayout->setAlignment(Qt::AlignVCenter); + slidersLayout->tqsetAlignment(TQt::AlignVCenter); } else { slidersLayout = new TQVBoxLayout( _layout ); - slidersLayout->setAlignment(Qt::AlignHCenter); + slidersLayout->tqsetAlignment(TQt::AlignHCenter); } - /* cesken: This is inconsistent. Why should vertical and horizontal layout differ? + /* cesken: This is inconsistent. Why should vertical and horizontal tqlayout differ? * Also it eats too much space - especially when you don't show sliders at all. * Even more on the vertical panel applet (see Bug #97667) if ( _orientation == Qt::Horizontal ) @@ -145,11 +145,11 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED ) TQBoxLayout *labelLayout; if ( _orientation == Qt::Vertical ) { labelLayout = new TQVBoxLayout( slidersLayout ); - labelLayout->setAlignment(Qt::AlignHCenter); + labelLayout->tqsetAlignment(TQt::AlignHCenter); } else { labelLayout = new TQHBoxLayout( slidersLayout ); - labelLayout->setAlignment(Qt::AlignVCenter); + labelLayout->tqsetAlignment(TQt::AlignVCenter); } if ( _orientation == Qt::Vertical ) { m_label = new VerticalText( this, m_mixdevice->name().utf8().data() ); @@ -183,22 +183,22 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED ) TQBoxLayout *sliLayout; if ( _orientation == Qt::Vertical ) { sliLayout = new TQVBoxLayout( slidersLayout ); - sliLayout->setAlignment(Qt::AlignHCenter); + sliLayout->tqsetAlignment(TQt::AlignHCenter); } else { sliLayout = new TQHBoxLayout( slidersLayout ); - sliLayout->setAlignment(Qt::AlignVCenter); + sliLayout->tqsetAlignment(TQt::AlignVCenter); } // --- ICON ---------------------------- TQBoxLayout *iconLayout; if ( _orientation == Qt::Vertical ) { iconLayout = new TQHBoxLayout( sliLayout ); - iconLayout->setAlignment(Qt::AlignVCenter); + iconLayout->tqsetAlignment(TQt::AlignVCenter); } else { iconLayout = new TQVBoxLayout( sliLayout ); - iconLayout->setAlignment(Qt::AlignHCenter); + iconLayout->tqsetAlignment(TQt::AlignHCenter); } m_iconLabel = 0L; @@ -213,36 +213,36 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED ) // --- MUTE LED if ( showMuteLED ) { - TQBoxLayout *ledlayout; + TQBoxLayout *ledtqlayout; if ( _orientation == Qt::Vertical ) { - ledlayout = new TQHBoxLayout( sliLayout ); - ledlayout->setAlignment(Qt::AlignVCenter); + ledtqlayout = new TQHBoxLayout( sliLayout ); + ledtqlayout->tqsetAlignment(TQt::AlignVCenter); } else { - ledlayout = new TQVBoxLayout( sliLayout ); - ledlayout->setAlignment(Qt::AlignHCenter); + ledtqlayout = new TQVBoxLayout( sliLayout ); + ledtqlayout->tqsetAlignment(TQt::AlignHCenter); } if( m_mixdevice->hasMute() ) { - ledlayout->addStretch(); + ledtqlayout->addStretch(); // create mute LED - m_muteLED = new KLedButton( Qt::green, KLed::On, KLed::Sunken, + m_muteLED = new KLedButton( TQt::green, KLed::On, KLed::Sunken, KLed::Circular, this, "MuteLED" ); m_muteLED->setFixedSize( TQSize(16, 16) ); m_muteLED->resize( TQSize(16, 16) ); - ledlayout->addWidget( m_muteLED ); + ledtqlayout->addWidget( m_muteLED ); TQToolTip::add( m_muteLED, i18n( "Mute" ) ); connect( m_muteLED, TQT_SIGNAL(stateChanged(bool)), this, TQT_SLOT(toggleMuted()) ); m_muteLED->installEventFilter( this ); - ledlayout->addStretch(); + ledtqlayout->addStretch(); } // has Mute LED else { // we don't have a MUTE LED. We create a dummy widget - // !! possibly not neccesary any more (we are layouted) + // !! possibly not neccesary any more (we are tqlayouted) TQWidget *qw = new TQWidget(this, "Spacer"); qw->setFixedSize( TQSize(16, 16) ); - ledlayout->addWidget(qw); + ledtqlayout->addWidget(qw); qw->installEventFilter( this ); } // has no Mute LED @@ -253,11 +253,11 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED ) TQBoxLayout *volLayout; if ( _orientation == Qt::Vertical ) { volLayout = new TQHBoxLayout( sliLayout ); - volLayout->setAlignment(Qt::AlignVCenter); + volLayout->tqsetAlignment(TQt::AlignVCenter); } else { volLayout = new TQVBoxLayout( sliLayout ); - volLayout->setAlignment(Qt::AlignHCenter); + volLayout->tqsetAlignment(TQt::AlignHCenter); } // Sliders and volume number indication @@ -273,11 +273,11 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED ) if ( _orientation == Qt::Vertical ) { slinumLayout = new TQVBoxLayout( volLayout ); - slinumLayout->setAlignment(Qt::AlignHCenter); + slinumLayout->tqsetAlignment(TQt::AlignHCenter); } else { slinumLayout = new TQHBoxLayout( volLayout ); - slinumLayout->setAlignment(Qt::AlignVCenter); + slinumLayout->tqsetAlignment(TQt::AlignVCenter); } // create labels to hold volume values (taken from qamix/kamix) @@ -285,7 +285,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED ) slinumLayout->addWidget( number ); number->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); number->setLineWidth( 2 ); - number->setMinimumWidth( number->sizeHint().width() ); + number->setMinimumWidth( number->tqsizeHint().width() ); number->setPaletteBackgroundColor( TQColor(190, 250, 190) ); // don't show the value by default number->hide(); @@ -302,7 +302,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED ) slider = new TQSlider( 0, maxvol, maxvol/10, maxvol - m_mixdevice->getVolume( chid ), _orientation, this, m_mixdevice->name().ascii() ); - slider->setMinimumSize( slider->sizeHint() ); + slider->setMinimumSize( slider->tqsizeHint() ); } slider->setBackgroundOrigin(AncestorOrigin); @@ -314,7 +314,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED ) slider->hide(); number->hide(); } - slinumLayout->addWidget( slider ); // add to layout + slinumLayout->addWidget( slider ); // add to tqlayout m_sliders.append ( slider ); // add to list _slidersChids.append(chid); // Remember slider-chid association connect( slider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(volumeChange(int)) ); @@ -327,44 +327,44 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED ) sliLayout->addSpacing( 5 ); // --- LED LAYOUT TO CENTER --- - TQBoxLayout *reclayout; + TQBoxLayout *rectqlayout; if ( _orientation == Qt::Vertical ) { - reclayout = new TQHBoxLayout( sliLayout ); - reclayout->setAlignment(Qt::AlignVCenter); + rectqlayout = new TQHBoxLayout( sliLayout ); + rectqlayout->tqsetAlignment(TQt::AlignVCenter); } else { - reclayout = new TQVBoxLayout( sliLayout ); - reclayout->setAlignment(Qt::AlignHCenter); + rectqlayout = new TQVBoxLayout( sliLayout ); + rectqlayout->tqsetAlignment(TQt::AlignHCenter); } if( m_mixdevice->isRecordable() ) { - reclayout->addStretch(); - m_recordLED = new KLedButton( Qt::red, + rectqlayout->addStretch(); + m_recordLED = new KLedButton( TQt::red, m_mixdevice->isRecSource()?KLed::On:KLed::Off, KLed::Sunken, KLed::Circular, this, "RecordLED" ); m_recordLED->setFixedSize( TQSize(16, 16) ); - reclayout->addWidget( m_recordLED ); + rectqlayout->addWidget( m_recordLED ); connect(m_recordLED, TQT_SIGNAL(stateChanged(bool)), this, TQT_SLOT(setRecsrc(bool))); m_recordLED->installEventFilter( this ); TQToolTip::add( m_recordLED, i18n( "Record" ) ); - reclayout->addStretch(); + rectqlayout->addStretch(); } else { // we don't have a RECORD LED. We create a dummy widget - // !! possibly not neccesary any more (we are layouted) + // !! possibly not neccesary any more (we are tqlayouted) TQWidget *qw = new TQWidget(this, "Spacer"); qw->setFixedSize( TQSize(16, 16) ); - reclayout->addWidget(qw); + rectqlayout->addWidget(qw); qw->installEventFilter( this ); } // has no Record LED } // showRecordLED - layout()->activate(); + tqlayout()->activate(); } -QPixmap +TQPixmap MDWSlider::icon( int icontype ) { TQPixmap miniDevPM; @@ -432,13 +432,13 @@ MDWSlider::setIcon( int icontype ) m_iconLabel->resize( 10, 10 ); } else m_iconLabel->setPixmap( miniDevPM ); - m_iconLabel->setAlignment( Qt::AlignCenter ); + m_iconLabel->tqsetAlignment( TQt::AlignCenter ); } else { kdError(67100) << "Pixmap missing." << endl; } - layout()->activate(); + tqlayout()->activate(); } bool @@ -514,7 +514,7 @@ MDWSlider::setStereoLinked(bool value) if( slider && static_cast(slider)->tickmarks() ) setTicks( true ); - layout()->activate(); + tqlayout()->activate(); } @@ -529,7 +529,7 @@ MDWSlider::setLabeled(bool value) else m_label->hide(); - layout()->activate(); + tqlayout()->activate(); } void @@ -558,7 +558,7 @@ MDWSlider::setTicks( bool ticks ) } } - layout()->activate(); + tqlayout()->activate(); } void @@ -579,7 +579,7 @@ MDWSlider::setValueStyle( ValueStyle valueStyle ) } } } - layout()->activate(); + tqlayout()->activate(); } void @@ -592,7 +592,7 @@ MDWSlider::setIcons(bool value) else m_iconLabel->hide(); - layout()->activate(); + tqlayout()->activate(); } } // if it has an icon } @@ -925,7 +925,7 @@ void MDWSlider::showContextMenu() a = _mdwActions->action( "keys" ); if ( a && m_keys ) { - KActionSeparator sep( this ); + KActionSeparator sep( TQT_TQOBJECT(this) ); sep.plug( menu ); a->plug( menu ); } @@ -934,24 +934,24 @@ void MDWSlider::showContextMenu() menu->popup( pos ); } -TQSize MDWSlider::sizeHint() const { +TQSize MDWSlider::tqsizeHint() const { if ( _layout != 0 ) { - return _layout->sizeHint(); + return _layout->tqsizeHint(); } else { - // layout not (yet) created - return TQWidget::sizeHint(); + // tqlayout not (yet) created + return TQWidget::tqsizeHint(); } } /** - * An event filter for the various QWidgets. We watch for Mouse press Events, so + * An event filter for the various TQWidgets. We watch for Mouse press Events, so * that we can popup the context menu. */ bool MDWSlider::eventFilter( TQObject* obj, TQEvent* e ) { if (e->type() == TQEvent::MouseButtonPress) { - TQMouseEvent *qme = static_cast(e); + TQMouseEvent *qme = TQT_TQMOUSEEVENT(e); if (qme->button() == Qt::RightButton) { showContextMenu(); return true; @@ -959,7 +959,7 @@ bool MDWSlider::eventFilter( TQObject* obj, TQEvent* e ) } // Attention: We don't filter WheelEvents for KSmallSlider, because it handles WheelEvents itself else if ( (e->type() == TQEvent::Wheel) && !obj->isA("KSmallSlider") ) { - TQWheelEvent *qwe = static_cast(e); + TQWheelEvent *qwe = TQT_TQWHEELEVENT(e); if (qwe->delta() > 0) { increaseVolume(); } diff --git a/kmix/mdwslider.h b/kmix/mdwslider.h index fad6d983..17836bd1 100644 --- a/kmix/mdwslider.h +++ b/kmix/mdwslider.h @@ -56,12 +56,13 @@ class ViewBase; class MDWSlider : public MixDeviceWidget { Q_OBJECT + TQ_OBJECT public: MDWSlider( Mixer *mixer, MixDevice* md, bool showMuteLED, bool showRecordLED, bool small, Qt::Orientation, - TQWidget* parent = 0, ViewBase* mw = 0, const char* name = 0); + TQWidget* tqparent = 0, ViewBase* mw = 0, const char* name = 0); ~MDWSlider() {} void addActionToPopup( KAction *action ); @@ -76,7 +77,7 @@ public: void setValueStyle( ValueStyle valueStyle ); void setColors( TQColor high, TQColor low, TQColor back ); void setMutedColors( TQColor high, TQColor low, TQColor back ); - TQSize sizeHint() const; + TQSize tqsizeHint() const; bool eventFilter( TQObject* obj, TQEvent* e ); TQSizePolicy sizePolicy() const; diff --git a/kmix/mdwswitch.cpp b/kmix/mdwswitch.cpp index ee590146..7ee2b1e4 100644 --- a/kmix/mdwswitch.cpp +++ b/kmix/mdwswitch.cpp @@ -47,21 +47,21 @@ */ MDWSwitch::MDWSwitch(Mixer *mixer, MixDevice* md, bool small, Qt::Orientation orientation, - TQWidget* parent, ViewBase* mw, const char* name) : - MixDeviceWidget(mixer,md,small,orientation,parent,mw,name), + TQWidget* tqparent, ViewBase* mw, const char* name) : + MixDeviceWidget(mixer,md,small,orientation,tqparent,mw,name), _label(0) , _labelV(0) , _switchLED(0), _layout(0) { // create actions (on _mdwActions, see MixDeviceWidget) // KStdAction::showMenubar() is in MixDeviceWidget now - new KToggleAction( i18n("&Hide"), 0, this, TQT_SLOT(setDisabled()), _mdwActions, "hide" ); - new KAction( i18n("C&onfigure Shortcuts..."), 0, this, TQT_SLOT(defineKeys()), _mdwActions, "keys" ); + new KToggleAction( i18n("&Hide"), 0, TQT_TQOBJECT(this), TQT_SLOT(setDisabled()), _mdwActions, "hide" ); + new KAction( i18n("C&onfigure Shortcuts..."), 0, TQT_TQOBJECT(this), TQT_SLOT(defineKeys()), _mdwActions, "keys" ); // create widgets createWidgets(); - m_keys->insert( "Toggle switch", i18n( "Toggle Switch" ), TQString::null, - KShortcut(), KShortcut(), this, TQT_SLOT( toggleSwitch() ) ); + m_keys->insert( "Toggle switch", i18n( "Toggle Switch" ), TQString(), + KShortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( toggleSwitch() ) ); // The keys are loaded in KMixerWidget::loadConfig, see kmixerwidget.cpp (now: kmixtoolbox.cpp) //m_keys->readSettings(); @@ -79,11 +79,11 @@ void MDWSwitch::createWidgets() { if ( _orientation == Qt::Vertical ) { _layout = new TQVBoxLayout( this ); - _layout->setAlignment(Qt::AlignHCenter); + _layout->tqsetAlignment(TQt::AlignHCenter); } else { _layout = new TQHBoxLayout( this ); - _layout->setAlignment(Qt::AlignVCenter); + _layout->tqsetAlignment(TQt::AlignVCenter); } TQToolTip::add( this, m_mixdevice->name() ); @@ -92,11 +92,11 @@ void MDWSwitch::createWidgets() // --- LEDS -------------------------- if ( _orientation == Qt::Vertical ) { if( m_mixdevice->isRecordable() ) - _switchLED = new KLedButton( Qt::red, + _switchLED = new KLedButton( TQt::red, m_mixdevice->isRecSource()?KLed::On:KLed::Off, KLed::Sunken, KLed::Circular, this, "RecordLED" ); else - _switchLED = new KLedButton( Qt::yellow, KLed::On, KLed::Sunken, KLed::Circular, this, "SwitchLED" ); + _switchLED = new KLedButton( TQt::yellow, KLed::On, KLed::Sunken, KLed::Circular, this, "SwitchLED" ); _switchLED->setFixedSize(16,16); _labelV = new VerticalText( this, m_mixdevice->name().utf8().data() ); @@ -110,11 +110,11 @@ void MDWSwitch::createWidgets() else { if( m_mixdevice->isRecordable() ) - _switchLED = new KLedButton( Qt::red, + _switchLED = new KLedButton( TQt::red, m_mixdevice->isRecSource()?KLed::On:KLed::Off, KLed::Sunken, KLed::Circular, this, "RecordLED" ); else - _switchLED = new KLedButton( Qt::yellow, KLed::On, KLed::Sunken, KLed::Circular, this, "SwitchLED" ); + _switchLED = new KLedButton( TQt::yellow, KLed::On, KLed::Sunken, KLed::Circular, this, "SwitchLED" ); _switchLED->setFixedSize(16,16); _label = new TQLabel(m_mixdevice->name(), this, "SwitchName"); @@ -164,13 +164,13 @@ void MDWSwitch::showContextMenu() menu->popup( pos ); } -TQSize MDWSwitch::sizeHint() const { +TQSize MDWSwitch::tqsizeHint() const { if ( _layout != 0 ) { - return _layout->sizeHint(); + return _layout->tqsizeHint(); } else { - // layout not (yet) created - return TQWidget::sizeHint(); + // tqlayout not (yet) created + return TQWidget::tqsizeHint(); } } @@ -213,13 +213,13 @@ void MDWSwitch::setDisabled( bool value ) { } /** - * An event filter for the various QWidgets. We watch for Mouse press Events, so + * An event filter for the various TQWidgets. We watch for Mouse press Events, so * that we can popup the context menu. */ bool MDWSwitch::eventFilter( TQObject* obj, TQEvent* e ) { if (e->type() == TQEvent::MouseButtonPress) { - TQMouseEvent *qme = static_cast(e); + TQMouseEvent *qme = TQT_TQMOUSEEVENT(e); if (qme->button() == Qt::RightButton) { showContextMenu(); return true; diff --git a/kmix/mdwswitch.h b/kmix/mdwswitch.h index 3bb5eeab..4e2258ea 100644 --- a/kmix/mdwswitch.h +++ b/kmix/mdwswitch.h @@ -52,15 +52,16 @@ class ViewBase; class MDWSwitch : public MixDeviceWidget { Q_OBJECT + TQ_OBJECT public: MDWSwitch( Mixer *mixer, MixDevice* md, bool small, Qt::Orientation orientation, - TQWidget* parent = 0, ViewBase* mw = 0, const char* name = 0); + TQWidget* tqparent = 0, ViewBase* mw = 0, const char* name = 0); ~MDWSwitch(); void addActionToPopup( KAction *action ); - TQSize sizeHint() const; + TQSize tqsizeHint() const; void setBackgroundMode(BackgroundMode m); bool eventFilter( TQObject* obj, TQEvent* e ); diff --git a/kmix/mixdevice.cpp b/kmix/mixdevice.cpp index d5c9f9c2..d647488f 100644 --- a/kmix/mixdevice.cpp +++ b/kmix/mixdevice.cpp @@ -71,7 +71,7 @@ MixDevice::MixDevice(const MixDevice &md) : TQObject() } MixDevice::~MixDevice() { - // Clear MixDevices enum Strings (switch on auto-delete, so the QString's inside will be cleared) + // Clear MixDevices enum Strings (switch on auto-delete, so the TQString's inside will be cleared) _enumValues.setAutoDelete(true); _enumValues.clear(); } @@ -123,7 +123,7 @@ TQString& MixDevice::getPK() { void MixDevice::setPK(TQString &PK) { _pk = PK; // The key is used in the config file. It should not contain spaces - _pk.replace(' ', '_'); + _pk.tqreplace(' ', '_'); } /** diff --git a/kmix/mixdevice.h b/kmix/mixdevice.h index 8683ce2b..5dca6d72 100644 --- a/kmix/mixdevice.h +++ b/kmix/mixdevice.h @@ -16,9 +16,10 @@ * They will show whether there are pending changes from both sides. * Updates will be faster and more reliable by this. */ -class MixDevice : public QObject +class MixDevice : public TQObject { Q_OBJECT + TQ_OBJECT public: // For each ChannelType a special icon exists @@ -30,7 +31,7 @@ class MixDevice : public QObject // The DeviceCategory tells the type of the device - // It is used in bitmasks, so you must use values of 2^n . + // It is used in bittqmasks, so you must use values of 2^n . enum DeviceCategory { UNDEFINED= 0x00, SLIDER=0x01, SWITCH=0x02, ENUM=0x04, ALL=0xff }; diff --git a/kmix/mixdevicewidget.cpp b/kmix/mixdevicewidget.cpp index b5418303..b7e3b3ce 100644 --- a/kmix/mixdevicewidget.cpp +++ b/kmix/mixdevicewidget.cpp @@ -54,12 +54,12 @@ */ MixDeviceWidget::MixDeviceWidget(Mixer *mixer, MixDevice* md, bool small, Qt::Orientation orientation, - TQWidget* parent, ViewBase* mw, const char* name) : - TQWidget( parent, name ), m_mixer(mixer), m_mixdevice( md ), m_mixerwidget( mw ), + TQWidget* tqparent, ViewBase* mw, const char* name) : + TQWidget( tqparent, name ), m_mixer(mixer), m_mixdevice( md ), m_mixerwidget( mw ), m_disabled( false ), _orientation( orientation ), m_small( small ) { _mdwActions = new KActionCollection( this ); - m_keys = new KGlobalAccel( this, "Keys" ); + m_keys = new KGlobalAccel( TQT_TQOBJECT(this), "Keys" ); } MixDeviceWidget::~MixDeviceWidget() @@ -109,7 +109,7 @@ void MixDeviceWidget::setMutedColors( TQColor , TQColor , TQColor ) { /* is virt void MixDeviceWidget::mousePressEvent( TQMouseEvent *e ) { - if ( e->button()==RightButton ) + if ( e->button()==Qt::RightButton ) showContextMenu(); else { TQWidget::mousePressEvent(e); diff --git a/kmix/mixdevicewidget.h b/kmix/mixdevicewidget.h index d3c533d8..d652a749 100644 --- a/kmix/mixdevicewidget.h +++ b/kmix/mixdevicewidget.h @@ -51,16 +51,17 @@ class Mixer; class ViewBase; class MixDeviceWidget - : public QWidget + : public TQWidget { Q_OBJECT + TQ_OBJECT public: enum ValueStyle { NNONE = 0, NABSOLUTE = 1, NRELATIVE = 2 } ; MixDeviceWidget( Mixer *mixer, MixDevice* md, bool small, Qt::Orientation orientation, - TQWidget* parent = 0, ViewBase* mw = 0, const char* name = 0); + TQWidget* tqparent = 0, ViewBase* mw = 0, const char* name = 0); ~MixDeviceWidget(); void addActionToPopup( KAction *action ); diff --git a/kmix/mixer.cpp b/kmix/mixer.cpp index 0e7c36fc..67960a53 100644 --- a/kmix/mixer.cpp +++ b/kmix/mixer.cpp @@ -474,7 +474,7 @@ void Mixer::setRecordSource( int devnum, bool on ) MixDevice* Mixer::masterDevice() { - return find( _masterDevicePK ); + return tqfind( _masterDevicePK ); } void Mixer::setMasterDevice(TQString &devPK) @@ -483,7 +483,7 @@ void Mixer::setMasterDevice(TQString &devPK) } -MixDevice* Mixer::find(TQString& devPK) +MixDevice* Mixer::tqfind(TQString& devPK) { MixDevice* md = 0; for( md = _mixerBackend->m_mixDevices.first(); md != 0; md = _mixerBackend->m_mixDevices.next() ) { diff --git a/kmix/mixer.h b/kmix/mixer.h index 80bd24ae..0b6d25c2 100644 --- a/kmix/mixer.h +++ b/kmix/mixer.h @@ -44,6 +44,7 @@ class KConfig; class Mixer : public TQObject, virtual public MixerIface { Q_OBJECT + TQ_OBJECT public: enum MixerError { ERR_PERM=1, ERR_WRITE, ERR_READ, ERR_NODEV, ERR_NOTSUPP, @@ -54,7 +55,7 @@ class Mixer : public TQObject, virtual public MixerIface static int numDrivers(); - MixDevice* find(TQString& devPK); + MixDevice* tqfind(TQString& devPK); void volumeSave( KConfig *config ); void volumeLoad( KConfig *config ); diff --git a/kmix/mixer_alsa9.cpp b/kmix/mixer_alsa9.cpp index effcd006..4037f342 100644 --- a/kmix/mixer_alsa9.cpp +++ b/kmix/mixer_alsa9.cpp @@ -77,7 +77,7 @@ Mixer_ALSA::identify( snd_mixer_selem_id_t *sid ) if ( name == "Master Mono" ) return MixDevice::VOLUME; if ( name == "PC Speaker" ) return MixDevice::VOLUME; if ( name == "Music" || name == "Synth" || name == "FM" ) return MixDevice::MIDI; - if ( name.find( "Headphone", 0, false ) != -1 ) return MixDevice::HEADPHONE; + if ( name.tqfind( "Headphone", 0, false ) != -1 ) return MixDevice::HEADPHONE; if ( name == "Bass" ) return MixDevice::BASS; if ( name == "Treble" ) return MixDevice::TREBLE; if ( name == "CD" ) return MixDevice::CD; @@ -85,14 +85,14 @@ Mixer_ALSA::identify( snd_mixer_selem_id_t *sid ) if ( name == "PCM" || name == "Wave" ) return MixDevice::AUDIO; if ( name == "Surround" ) return MixDevice::SURROUND_BACK; if ( name == "Center" ) return MixDevice::SURROUND_CENTERFRONT; - if ( name.find( "ac97", 0, false ) != -1 ) return MixDevice::AC97; - if ( name.find( "coaxial", 0, false ) != -1 ) return MixDevice::DIGITAL; - if ( name.find( "optical", 0, false ) != -1 ) return MixDevice::DIGITAL; - if ( name.find( "IEC958", 0, false ) != -1 ) return MixDevice::DIGITAL; - if ( name.find( "Mic" ) != -1 ) return MixDevice::MICROPHONE; - if ( name.find( "LFE" ) != -1 ) return MixDevice::SURROUND_LFE; - if ( name.find( "Monitor" ) != -1 ) return MixDevice::RECMONITOR; - if ( name.find( "3D", 0, false ) != -1 ) return MixDevice::SURROUND; // Should be probably some own icon + if ( name.tqfind( "ac97", 0, false ) != -1 ) return MixDevice::AC97; + if ( name.tqfind( "coaxial", 0, false ) != -1 ) return MixDevice::DIGITAL; + if ( name.tqfind( "optical", 0, false ) != -1 ) return MixDevice::DIGITAL; + if ( name.tqfind( "IEC958", 0, false ) != -1 ) return MixDevice::DIGITAL; + if ( name.tqfind( "Mic" ) != -1 ) return MixDevice::MICROPHONE; + if ( name.tqfind( "LFE" ) != -1 ) return MixDevice::SURROUND_LFE; + if ( name.tqfind( "Monitor" ) != -1 ) return MixDevice::RECMONITOR; + if ( name.tqfind( "3D", 0, false ) != -1 ) return MixDevice::SURROUND; // Should be probably some own icon return MixDevice::EXTERNAL; } @@ -115,7 +115,7 @@ Mixer_ALSA::open() // Card information if ((unsigned)m_devnum > 31) m_devnum = -1; - devName = m_devnum == -1 ? "default" : TQString("hw:%1").arg(m_devnum); + devName = m_devnum == -1 ? "default" : TQString("hw:%1").tqarg(m_devnum); TQString probeMessage; @@ -507,7 +507,7 @@ bool Mixer_ALSA::prepareUpdateFromHW() // Poll on fds with 10ms timeout // Hint: alsamixer has an infinite timeout, but we cannot do this because we would block - // the X11 event handling (Qt event loop) with this. + // the X11 event handling (TQt event loop) with this. //kdDebug(67100) << "Mixer_ALSA::prepareUpdate() 3\n"; int finished = poll(m_fds, m_count, 10); //kdDebug(67100) << "Mixer_ALSA::prepareUpdate() 4\n"; @@ -795,7 +795,7 @@ Mixer_ALSA::writeVolumeToHW( int devnum, Volume& volume ) return 0; } -QString +TQString Mixer_ALSA::errorText( int mixer_error ) { TQString l_s_errmsg; @@ -817,7 +817,7 @@ Mixer_ALSA::errorText( int mixer_error ) } -QString +TQString ALSA_getDriverName() { return "ALSA"; diff --git a/kmix/mixer_hpux.cpp b/kmix/mixer_hpux.cpp index 20ef91f3..82e1ad51 100644 --- a/kmix/mixer_hpux.cpp +++ b/kmix/mixer_hpux.cpp @@ -86,31 +86,31 @@ int Mixer_HPUX::open() else { /* Mixer is open. Now define properties */ - stereodevs = devmask = (1<setRecSource( isRecsrcHW( idx ) ); @@ -268,7 +268,7 @@ bool Mixer_OSS::setRecsrcHW( int devnum, bool on ) } // PORTING: Hint: Do not forget to set i_recsrc to the new valid - // record source mask. + // record source tqmask. return i_recsrc == oldrecsrc; } @@ -280,7 +280,7 @@ bool Mixer_OSS::isRecsrcHW( int devnum ) if (ioctl(m_fd, SOUND_MIXER_READ_RECSRC, &recsrcMask) == -1) errormsg(Mixer::ERR_READ); else { - // test if device bit is set in record bit mask + // test if device bit is set in record bit tqmask isRecsrc = ( (recsrcMask & ( 1< -1 && name.find( "pcm") > -1) || - name.find("mute") > -1 + if ( (name.tqfind("vmix") > -1 && name.tqfind( "pcm") > -1) || + name.tqfind("mute") > -1 #ifdef MIXT_MUTE || (ext.type == MIXT_MUTE) #endif @@ -238,12 +238,12 @@ int Mixer_OSS4::open() } //fix for old legacy names, according to Hannu's suggestions - if ( name.contains('_') ) + if ( name.tqcontains('_') ) { name = name.section('_',1,1).lower(); } - if ( ext.flags & MIXF_RECVOL || ext.flags & MIXF_MONVOL || name.find(".in") > -1 ) + if ( ext.flags & MIXF_RECVOL || ext.flags & MIXF_MONVOL || name.tqfind(".in") > -1 ) { isCapture = true; } diff --git a/kmix/mixer_sun.cpp b/kmix/mixer_sun.cpp index 12806bda..10299add 100644 --- a/kmix/mixer_sun.cpp +++ b/kmix/mixer_sun.cpp @@ -89,7 +89,7 @@ const MixDevice::ChannelType MixerChannelTypes[] = }; // -// Mapping from device numbers to Sun port mask values +// Mapping from device numbers to Sun port tqmask values // const uint_t MixerSunPortMasks[] = { @@ -323,7 +323,7 @@ int Mixer_SUN::writeVolumeToHW( int devnum, Volume &volume ) // // Now, based on the devnum that we are writing to, update the appropriate - // volume field and twiddle the appropriate bitmask to enable/mute the + // volume field and twiddle the appropriate bittqmask to enable/mute the // device as necessary. // switch ( devnum ) diff --git a/kmix/mixertoolbox.cpp b/kmix/mixertoolbox.cpp index 66e0241c..c4953221 100644 --- a/kmix/mixertoolbox.cpp +++ b/kmix/mixertoolbox.cpp @@ -146,16 +146,16 @@ void MixerToolBox::initMixer(TQPtrList &mixers, bool multiDriverMode, TQS * %3, the mixer number, is a number: it does not contain colons. */ TQString mixerName = mixer->mixerName(); - mixerName.replace(":","_"); + mixerName.tqreplace(":","_"); TQString primaryKeyOfMixer = TQString("%1::%2:%3") - .arg(driverName) - .arg(mixerName) - .arg(mixerNums[mixer->mixerName()]); + .tqarg(driverName) + .tqarg(mixerName) + .tqarg(mixerNums[mixer->mixerName()]); // The following 3 replaces are for not messing up the config file - primaryKeyOfMixer.replace("]","_"); - primaryKeyOfMixer.replace("[","_"); // not strictly neccesary, but lets play safe - primaryKeyOfMixer.replace(" ","_"); - primaryKeyOfMixer.replace("=","_"); + primaryKeyOfMixer.tqreplace("]","_"); + primaryKeyOfMixer.tqreplace("[","_"); // not strictly neccesary, but lets play safe + primaryKeyOfMixer.tqreplace(" ","_"); + primaryKeyOfMixer.tqreplace("=","_"); mixer->setID(primaryKeyOfMixer); diff --git a/kmix/verticaltext.cpp b/kmix/verticaltext.cpp index 77bda1af..723cb75b 100644 --- a/kmix/verticaltext.cpp +++ b/kmix/verticaltext.cpp @@ -24,10 +24,10 @@ #include -VerticalText::VerticalText(TQWidget * parent, const char * name, WFlags f) : TQWidget(parent,name,f) +VerticalText::VerticalText(TQWidget * tqparent, const char * name, WFlags f) : TQWidget(tqparent,name,f) { - resize(20,100 /*parent->height() */ ); - setMinimumSize(20,10); // neccesary for smooth integration into layouts (we only care for the widths). + resize(20,100 /*tqparent->height() */ ); + setMinimumSize(20,10); // neccesary for smooth integration into tqlayouts (we only care for the widths). } VerticalText::~VerticalText() { @@ -46,7 +46,7 @@ void VerticalText::paintEvent ( TQPaintEvent * /*event*/ ) { paint.drawText( -height()+2, width(), TQString::fromUtf8(name()) ); } -TQSize VerticalText::sizeHint() const { +TQSize VerticalText::tqsizeHint() const { return TQSize(20,100); // !! UGLY. Should be reworked } diff --git a/kmix/verticaltext.h b/kmix/verticaltext.h index f68df4f4..b7f94f4d 100644 --- a/kmix/verticaltext.h +++ b/kmix/verticaltext.h @@ -3,13 +3,13 @@ #include -class VerticalText : public QWidget +class VerticalText : public TQWidget { public: - VerticalText(TQWidget * parent, const char * name, WFlags f = 0); + VerticalText(TQWidget * tqparent, const char * name, WFlags f = 0); ~VerticalText(); - TQSize sizeHint() const; + TQSize tqsizeHint() const; TQSizePolicy sizePolicy () const; protected: diff --git a/kmix/viewapplet.cpp b/kmix/viewapplet.cpp index 3948e60e..b26a7374 100644 --- a/kmix/viewapplet.cpp +++ b/kmix/viewapplet.cpp @@ -20,7 +20,7 @@ #include "viewapplet.h" -// Qt +// TQt #include #include #include @@ -36,13 +36,13 @@ #include "mdwslider.h" #include "mixer.h" -ViewApplet::ViewApplet(TQWidget* parent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KPanelApplet::Position position ) - : ViewBase(parent, name, TQString::null, mixer, WStyle_Customize|WStyle_NoBorder, vflags) +ViewApplet::ViewApplet(TQWidget* tqparent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KPanelApplet::Position position ) + : ViewBase(tqparent, name, TQString(), mixer, WStyle_Customize|WStyle_NoBorder, vflags) { setBackgroundOrigin(AncestorOrigin); // remove the menu bar action, that is put by the "ViewBase" constructor in _actions. //KToggleAction *m = static_cast(KStdAction::showMenubar( this, TQT_SLOT(toggleMenuBarSlot()), _actions )); - _actions->remove( KStdAction::showMenubar(this, TQT_SLOT(toggleMenuBarSlot()), _actions) ); + _actions->remove( KStdAction::showMenubar(TQT_TQOBJECT(this), TQT_SLOT(toggleMenuBarSlot()), _actions) ); if ( position == KPanelApplet::pLeft || position == KPanelApplet::pRight ) { @@ -56,11 +56,11 @@ ViewApplet::ViewApplet(TQWidget* parent, const char* name, Mixer* mixer, ViewBas if ( _viewOrientation == Qt::Horizontal ) { _layoutMDW = new TQHBoxLayout( this ); - setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred); + tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred); } else { _layoutMDW = new TQVBoxLayout( this ); - setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); + tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); } @@ -118,8 +118,8 @@ TQWidget* ViewApplet::add(MixDevice *md) false, // Show Mute LED false, // Show Record LED true, // Small - sliderOrientation, // Orientation - this, // parent + sliderOrientation, // Qt::Orientation + this, // tqparent this, // View widget md->name().latin1() ); @@ -139,10 +139,10 @@ void ViewApplet::constructionFinished() { } -TQSize ViewApplet::sizeHint() const { - // Basically out main layout knows very good what the sizes should be - TQSize qsz = _layoutMDW->sizeHint(); - //kdDebug(67100) << "ViewApplet::sizeHint(): NewSize is " << qsz << "\n"; +TQSize ViewApplet::tqsizeHint() const { + // Basically out main tqlayout knows very good what the sizes should be + TQSize qsz = _layoutMDW->tqsizeHint(); + //kdDebug(67100) << "ViewApplet::tqsizeHint(): NewSize is " << qsz << "\n"; return qsz; } @@ -196,7 +196,7 @@ void ViewApplet::resizeEvent(TQResizeEvent *qre) // kdDebug(67100) << "ViewApplet::resizeEvent(). SHOULD resize _layoutMDW to " << qre->size() << endl; //TQWidget::resizeEvent(qre); - // resizing changes our own sizeHint(), because we must take the new PanelSize in account. + // resizing changes our own tqsizeHint(), because we must take the new PanelSize in account. // So updateGeometry() is amust for us. updateGeometry(); } @@ -230,7 +230,7 @@ void ViewApplet::refreshVolumeLevels() { void ViewApplet::configurationUpdate() { updateGeometry(); //_layoutMDW->activate(); - constructionFinished(); // contains "_layoutMDW->activate();" + constructionFinished(); // tqcontains "_layoutMDW->activate();" emit appletContentChanged(); kdDebug(67100) << "ViewApplet::configurationUpdate()" << endl; // the following "emit" is only here to be picked up by KMixApplet, because it has to diff --git a/kmix/viewapplet.h b/kmix/viewapplet.h index 80dc417e..9b9e1b9c 100644 --- a/kmix/viewapplet.h +++ b/kmix/viewapplet.h @@ -13,8 +13,9 @@ class Mixer; class ViewApplet : public ViewBase { Q_OBJECT + TQ_OBJECT public: - ViewApplet(TQWidget* parent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KPanelApplet::Position pos); + ViewApplet(TQWidget* tqparent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KPanelApplet::Position pos); ~ViewApplet(); virtual int count(); @@ -24,7 +25,7 @@ public: virtual void constructionFinished(); virtual void configurationUpdate(); - TQSize sizeHint() const; + TQSize tqsizeHint() const; TQSizePolicy sizePolicy() const; virtual void resizeEvent(TQResizeEvent*); @@ -39,7 +40,7 @@ private: TQBoxLayout* _layoutMDW; // Position of the applet (pLeft, pRight, pTop, pBottom) //KPanelApplet::Position _KMIXposition; - // Orientation of the applet (horizontal or vertical) + // Qt::Orientation of the applet (horizontal or vertical) Qt::Orientation _viewOrientation; }; diff --git a/kmix/viewbase.cpp b/kmix/viewbase.cpp index 5d23860d..b140fce7 100644 --- a/kmix/viewbase.cpp +++ b/kmix/viewbase.cpp @@ -37,8 +37,8 @@ #include "mixer.h" -ViewBase::ViewBase(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, WFlags f, ViewBase::ViewFlags vflags) - : TQWidget(parent, name, f), _vflags(vflags), _caption(caption) +ViewBase::ViewBase(TQWidget* tqparent, const char* name, const TQString & caption, Mixer* mixer, WFlags f, ViewBase::ViewFlags vflags) + : TQWidget(tqparent, name, f), _vflags(vflags), _caption(caption) { _mixer = mixer; _mixSet = new MixSet(); @@ -51,7 +51,7 @@ ViewBase::ViewBase(TQWidget* parent, const char* name, const TQString & caption, // Plug in the "showMenubar" action, if the caller wants it. Typically this is only neccesary for views in the KMix main window. if ( vflags & ViewBase::HasMenuBar ) { - KToggleAction *m = static_cast(KStdAction::showMenubar( this, TQT_SLOT(toggleMenuBarSlot()), _actions )); + KToggleAction *m = static_cast(KStdAction::showMenubar( TQT_TQOBJECT(this), TQT_SLOT(toggleMenuBarSlot()), _actions )); if ( vflags & ViewBase::MenuBarVisible ) { m->setChecked(true); } @@ -59,7 +59,7 @@ ViewBase::ViewBase(TQWidget* parent, const char* name, const TQString & caption, m->setChecked(false); } } - new KAction(i18n("&Channels"), 0, this, TQT_SLOT(configureView()), _actions, "toggle_channels"); + new KAction(i18n("&Channels"), 0, TQT_TQOBJECT(this), TQT_SLOT(configureView()), _actions, "toggle_channels"); connect ( _mixer, TQT_SIGNAL(newVolumeLevels()), this, TQT_SLOT(refreshVolumeLevels()) ); } @@ -112,7 +112,7 @@ void ViewBase::createDeviceWidgets() // ---------- Popup stuff START --------------------- void ViewBase::mousePressEvent( TQMouseEvent *e ) { - if ( e->button()==RightButton ) + if ( e->button()==Qt::RightButton ) showContextMenu(); } diff --git a/kmix/viewbase.h b/kmix/viewbase.h index 581ac39e..d0d4063c 100644 --- a/kmix/viewbase.h +++ b/kmix/viewbase.h @@ -14,9 +14,10 @@ class MixDevice; /** * The ViewBase is a virtual base class, to be used for subclassing the real Mixer Views. */ -class ViewBase : public QWidget +class ViewBase : public TQWidget { Q_OBJECT + TQ_OBJECT public: typedef uint ViewFlags; @@ -31,7 +32,7 @@ public: Experimental_GridView = 0x2000 }; - ViewBase(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, WFlags=0, ViewFlags vflags=0); + ViewBase(TQWidget* tqparent, const char* name, const TQString & caption, Mixer* mixer, WFlags=0, ViewFlags vflags=0); virtual ~ViewBase(); // Subclasses must define this method. It is called by the ViewBase() constuctor. diff --git a/kmix/viewdockareapopup.cpp b/kmix/viewdockareapopup.cpp index 60289aad..38b942dc 100644 --- a/kmix/viewdockareapopup.cpp +++ b/kmix/viewdockareapopup.cpp @@ -21,7 +21,7 @@ #include "viewdockareapopup.h" -// Qt +// TQt #include #include #include @@ -40,15 +40,15 @@ #include "mixer.h" #include "kmixdockwidget.h" -// !! Do NOT remove or mask out "WType_Popup" +// !! Do NOT remove or tqmask out "WType_Popup" // Users will not be able to close the Popup without opening the KMix main window then. // See Bug #93443, #96332 and #96404 for further details. -- esken -ViewDockAreaPopup::ViewDockAreaPopup(TQWidget* parent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KMixDockWidget *dockW ) - : ViewBase(parent, name, TQString::null, mixer, WStyle_Customize | WType_Popup | Qt::WStyle_DialogBorder, vflags), _mdw(0), _dock(dockW) +ViewDockAreaPopup::ViewDockAreaPopup(TQWidget* tqparent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KMixDockWidget *dockW ) + : ViewBase(tqparent, name, TQString(), mixer, WStyle_Customize | WType_Popup | TQt::WStyle_DialogBorder, vflags), _mdw(0), _dock(dockW) { - TQBoxLayout *layout = new TQHBoxLayout( this ); + TQBoxLayout *tqlayout = new TQHBoxLayout( this ); _frame = new TQFrame( this ); - layout->addWidget( _frame ); + tqlayout->addWidget( _frame ); _frame->setFrameStyle( TQFrame::PopupPanel | TQFrame::Raised ); _frame->setLineWidth( 1 ); @@ -70,7 +70,7 @@ void ViewDockAreaPopup::mousePressEvent(TQMouseEvent *) Hide the popup: This should work automatically, when the user clicks outside the bounds of this popup: Alas - it does not work. - Why it does not work, I do not know: this->isPopup() returns "true", so Qt should + Why it does not work, I do not know: this->isPopup() returns "true", so TQt should properly take care of it in TQWidget. */ if ( ! this->hasMouse() ) { @@ -128,7 +128,7 @@ TQWidget* ViewDockAreaPopup::add(MixDevice *md) false, // Show Record LED false, // Small Qt::Vertical, // Direction: only 1 device, so doesn't matter - _frame, // parent + _frame, // tqparent 0, // Is "NULL", so that there is no RMB-popup _dockDevice->name().latin1() ); _layoutMDW->addItem( new TQSpacerItem( 5, 20 ), 0, 2 ); @@ -163,9 +163,9 @@ int ViewDockAreaPopup::advice() { } } -TQSize ViewDockAreaPopup::sizeHint() const { - // kdDebug(67100) << "ViewDockAreaPopup::sizeHint(): NewSize is " << _mdw->sizeHint() << "\n"; - return( _mdw->sizeHint() ); +TQSize ViewDockAreaPopup::tqsizeHint() const { + // kdDebug(67100) << "ViewDockAreaPopup::tqsizeHint(): NewSize is " << _mdw->tqsizeHint() << "\n"; + return( _mdw->tqsizeHint() ); } void ViewDockAreaPopup::constructionFinished() { @@ -173,8 +173,8 @@ void ViewDockAreaPopup::constructionFinished() { _mdw->move(0,0); _mdw->show(); - _mdw->resize(_mdw->sizeHint() ); - resize(sizeHint()); + _mdw->resize(_mdw->tqsizeHint() ); + resize(tqsizeHint()); } diff --git a/kmix/viewdockareapopup.h b/kmix/viewdockareapopup.h index 7f0c1bf1..71100ec1 100644 --- a/kmix/viewdockareapopup.h +++ b/kmix/viewdockareapopup.h @@ -18,8 +18,9 @@ class TQTime; class ViewDockAreaPopup : public ViewBase { Q_OBJECT + TQ_OBJECT public: - ViewDockAreaPopup(TQWidget* parent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KMixDockWidget *dockW); + ViewDockAreaPopup(TQWidget* tqparent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KMixDockWidget *dockW); ~ViewDockAreaPopup(); MixDevice* dockDevice(); @@ -31,7 +32,7 @@ public: virtual void refreshVolumeLevels(); virtual void showContextMenu(); - TQSize sizeHint() const; + TQSize tqsizeHint() const; bool justHidden(); protected: diff --git a/kmix/viewgrid.cpp b/kmix/viewgrid.cpp index 59f03906..360953f8 100644 --- a/kmix/viewgrid.cpp +++ b/kmix/viewgrid.cpp @@ -21,7 +21,7 @@ #include "viewgrid.h" -// Qt +// TQt #include // KDE @@ -35,8 +35,8 @@ /** */ -ViewGrid::ViewGrid(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags) - : ViewBase(parent, name, caption, mixer, WStyle_Customize|WStyle_NoBorder, vflags) +ViewGrid::ViewGrid(TQWidget* tqparent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags) + : ViewBase(tqparent, name, caption, mixer, WStyle_Customize|WStyle_NoBorder, vflags) { m_spacingHorizontal = 5; m_spacingVertical = 5; @@ -88,8 +88,8 @@ TQWidget* ViewGrid::add(MixDevice *md) mdw = new MDWEnum( _mixer, // the mixer for this device md, // MixDevice (parameter) - orientation, // Orientation - this, // parent + orientation, // Qt::Orientation + this, // tqparent this, // View widget md->name().latin1() ); @@ -101,8 +101,8 @@ TQWidget* ViewGrid::add(MixDevice *md) _mixer, // the mixer for this device md, // MixDevice (parameter) false, // Small - orientation, // Orientation - this, // parent + orientation, // Qt::Orientation + this, // tqparent this, // View widget md->name().latin1() ); @@ -117,8 +117,8 @@ TQWidget* ViewGrid::add(MixDevice *md) true, // Show Mute LED true, // Show Record LED false, // Small - orientation, // Orientation - this, // parent + orientation, // Qt::Orientation + this, // tqparent this, // View widget md->name().latin1() ); @@ -126,23 +126,23 @@ TQWidget* ViewGrid::add(MixDevice *md) return mdw; } -TQSize ViewGrid::sizeHint() const { - // kdDebug(67100) << "ViewGrid::sizeHint(): NewSize is " << _layoutMDW->sizeHint() << "\n"; - return( m_sizeHint); +TQSize ViewGrid::tqsizeHint() const { + // kdDebug(67100) << "ViewGrid::tqsizeHint(): NewSize is " << _layoutMDW->tqsizeHint() << "\n"; + return( m_tqsizeHint); } void ViewGrid::constructionFinished() { //_layoutMDW->activate(); - // do a manual layout + // do a manual tqlayout configurationUpdate(); } void ViewGrid::refreshVolumeLevels() { // kdDebug(67100) << "ViewGrid::refreshVolumeLevels()\n"; - m_sizeHint.setWidth (0); - m_sizeHint.setHeight(0); + m_tqsizeHint.setWidth (0); + m_tqsizeHint.setHeight(0); m_testingX = 0; m_testingY = 0; @@ -178,12 +178,12 @@ void ViewGrid::refreshVolumeLevels() { } /** - This implementation makes sure the Grid's geometry is updated + This implementation makes sure the Grid's tqgeometry is updated after hiding/showing channels. */ void ViewGrid::configurationUpdate() { - m_sizeHint.setWidth (0); - m_sizeHint.setHeight(0); + m_tqsizeHint.setWidth (0); + m_tqsizeHint.setHeight(0); m_testingX = 0; m_testingY = 0; @@ -195,9 +195,9 @@ void ViewGrid::configurationUpdate() { int xPos = m_testingX * m_spacingHorizontal; int yPos = m_testingY * m_spacingVertical ; mdw->move( xPos, yPos ); - mdw->resize( mdw->sizeHint() ); - int xMax = xPos + mdw->width() ; if ( xMax > m_sizeHint.width() ) m_sizeHint.setWidth(xMax); - int yMax = yPos + mdw->height(); if ( yMax > m_sizeHint.height() ) m_sizeHint.setHeight(yMax); + mdw->resize( mdw->tqsizeHint() ); + int xMax = xPos + mdw->width() ; if ( xMax > m_tqsizeHint.width() ) m_tqsizeHint.setWidth(xMax); + int yMax = yPos + mdw->height(); if ( yMax > m_tqsizeHint.height() ) m_tqsizeHint.setHeight(yMax); m_testingX += 5; if ( m_testingX > 50 ) { diff --git a/kmix/viewgrid.h b/kmix/viewgrid.h index 94b03446..d0608794 100644 --- a/kmix/viewgrid.h +++ b/kmix/viewgrid.h @@ -11,8 +11,9 @@ class Mixer; class ViewGrid : public ViewBase { Q_OBJECT + TQ_OBJECT public: - ViewGrid(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags); + ViewGrid(TQWidget* tqparent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags); ~ViewGrid(); virtual int count(); @@ -22,7 +23,7 @@ public: virtual void configurationUpdate(); virtual void constructionFinished(); - TQSize sizeHint() const; + TQSize tqsizeHint() const; public slots: virtual void refreshVolumeLevels(); @@ -32,7 +33,7 @@ private: unsigned int m_spacingVertical; // m_maxX and m_maxY are the highest coordiantes encountered - TQSize m_sizeHint; + TQSize m_tqsizeHint; unsigned int m_testingX; unsigned int m_testingY; diff --git a/kmix/viewinput.cpp b/kmix/viewinput.cpp index eeadc61b..fa6f06e3 100644 --- a/kmix/viewinput.cpp +++ b/kmix/viewinput.cpp @@ -25,8 +25,8 @@ #include "mixer.h" #include "mixdevicewidget.h" -ViewInput::ViewInput(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags) - : ViewSliders(parent, name, caption, mixer, vflags) +ViewInput::ViewInput(TQWidget* tqparent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags) + : ViewSliders(tqparent, name, caption, mixer, vflags) { init(); connect ( _mixer, TQT_SIGNAL(newRecsrc()) , this, TQT_SLOT(refreshVolumeLevels()) ); // only the input widget has record sources diff --git a/kmix/viewinput.h b/kmix/viewinput.h index aa28c7d8..03aa101f 100644 --- a/kmix/viewinput.h +++ b/kmix/viewinput.h @@ -8,8 +8,9 @@ class Mixer; class ViewInput : public ViewSliders { Q_OBJECT + TQ_OBJECT public: - ViewInput(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags); + ViewInput(TQWidget* tqparent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags); ~ViewInput(); virtual void setMixSet(MixSet *mixset); diff --git a/kmix/viewoutput.cpp b/kmix/viewoutput.cpp index 9550b1d1..6340291b 100644 --- a/kmix/viewoutput.cpp +++ b/kmix/viewoutput.cpp @@ -25,8 +25,8 @@ #include "mixer.h" #include "mixdevicewidget.h" -ViewOutput::ViewOutput(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags) - : ViewSliders(parent, name, caption, mixer, vflags) +ViewOutput::ViewOutput(TQWidget* tqparent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags) + : ViewSliders(tqparent, name, caption, mixer, vflags) { init(); } diff --git a/kmix/viewoutput.h b/kmix/viewoutput.h index d39c8680..9f3866dd 100644 --- a/kmix/viewoutput.h +++ b/kmix/viewoutput.h @@ -8,8 +8,9 @@ class Mixer; class ViewOutput : public ViewSliders { Q_OBJECT + TQ_OBJECT public: - ViewOutput(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags); + ViewOutput(TQWidget* tqparent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags); ~ViewOutput(); virtual void setMixSet(MixSet *mixset); diff --git a/kmix/viewsliders.cpp b/kmix/viewsliders.cpp index 80142f5c..1191f202 100644 --- a/kmix/viewsliders.cpp +++ b/kmix/viewsliders.cpp @@ -21,7 +21,7 @@ #include "viewsliders.h" -// Qt +// TQt #include #include @@ -37,8 +37,8 @@ * correctly because init() does not get called. * See ViewInput and ViewOutput for "real" implementations. */ -ViewSliders::ViewSliders(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags) - : ViewBase(parent, name, caption, mixer, WStyle_Customize|WStyle_NoBorder, vflags) +ViewSliders::ViewSliders(TQWidget* tqparent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags) + : ViewBase(tqparent, name, caption, mixer, WStyle_Customize|WStyle_NoBorder, vflags) { if ( _vflags & ViewBase::Vertical ) { _layoutMDW = new TQVBoxLayout(this); @@ -93,8 +93,8 @@ TQWidget* ViewSliders::add(MixDevice *md) true, // Show Mute LED true, // Show Record LED false, // Small - orientation, // Orientation - this, // parent + orientation, // Qt::Orientation + this, // tqparent this, // View widget md->name().latin1() ); @@ -102,9 +102,9 @@ TQWidget* ViewSliders::add(MixDevice *md) return mdw; } -TQSize ViewSliders::sizeHint() const { - // kdDebug(67100) << "ViewSliders::sizeHint(): NewSize is " << _layoutMDW->sizeHint() << "\n"; - return( _layoutMDW->sizeHint() ); +TQSize ViewSliders::tqsizeHint() const { + // kdDebug(67100) << "ViewSliders::tqsizeHint(): NewSize is " << _layoutMDW->tqsizeHint() << "\n"; + return( _layoutMDW->tqsizeHint() ); } void ViewSliders::constructionFinished() { diff --git a/kmix/viewsliders.h b/kmix/viewsliders.h index c4c0c3d2..c078fb8c 100644 --- a/kmix/viewsliders.h +++ b/kmix/viewsliders.h @@ -10,8 +10,9 @@ class Mixer; class ViewSliders : public ViewBase { Q_OBJECT + TQ_OBJECT public: - ViewSliders(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags); + ViewSliders(TQWidget* tqparent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags); ~ViewSliders(); virtual int count(); @@ -20,7 +21,7 @@ public: virtual TQWidget* add(MixDevice *mdw); virtual void constructionFinished(); - TQSize sizeHint() const; + TQSize tqsizeHint() const; public slots: virtual void refreshVolumeLevels(); diff --git a/kmix/viewsurround.cpp b/kmix/viewsurround.cpp index 02a7aace..7e653b32 100644 --- a/kmix/viewsurround.cpp +++ b/kmix/viewsurround.cpp @@ -21,7 +21,7 @@ #include "viewsurround.h" -// Qt +// TQt #include #include #include @@ -39,8 +39,8 @@ * Demonstration verion of a "surround view" * Not really usable right now. */ -ViewSurround::ViewSurround(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags) - : ViewBase(parent, name, caption, mixer, WStyle_Customize|WStyle_NoBorder, vflags) +ViewSurround::ViewSurround(TQWidget* tqparent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags) + : ViewBase(tqparent, name, caption, mixer, WStyle_Customize|WStyle_NoBorder, vflags) { _mdSurroundFront = 0; _mdSurroundBack = 0; @@ -135,26 +135,26 @@ TQWidget* ViewSurround::add(MixDevice *md) switch ( md->type() ) { case MixDevice::VOLUME: - _layoutSurround->addWidget(mdw ,0,0, Qt::AlignBottom | Qt::AlignLeft); + _layoutSurround->addWidget(mdw ,0,0, TQt::AlignBottom | TQt::AlignLeft); break; case MixDevice::SURROUND_BACK: - _layoutSurround->addWidget(mdw ,2,0, Qt::AlignTop | Qt::AlignLeft); + _layoutSurround->addWidget(mdw ,2,0, TQt::AlignTop | TQt::AlignLeft); break; case MixDevice::SURROUND_LFE: - _layoutSurround->addWidget(mdw,1,3, Qt::AlignVCenter | Qt::AlignRight ); break; + _layoutSurround->addWidget(mdw,1,3, TQt::AlignVCenter | TQt::AlignRight ); break; break; case MixDevice::SURROUND_CENTERFRONT: - _layoutSurround->addWidget(mdw,0,2, Qt::AlignTop | Qt::AlignHCenter); break; + _layoutSurround->addWidget(mdw,0,2, TQt::AlignTop | TQt::AlignHCenter); break; break; case MixDevice::SURROUND_CENTERBACK: - _layoutSurround->addWidget(mdw,2,2, Qt::AlignBottom | Qt::AlignHCenter); break; + _layoutSurround->addWidget(mdw,2,2, TQt::AlignBottom | TQt::AlignHCenter); break; break; case MixDevice::SURROUND: case MixDevice::AC97: default: - // Add as slider to the layout on the left side + // Add as slider to the tqlayout on the left side _layoutSliders->add(mdw); break; } // switch(type) @@ -162,9 +162,9 @@ TQWidget* ViewSurround::add(MixDevice *md) return mdw; } -TQSize ViewSurround::sizeHint() const { - // kdDebug(67100) << "ViewSurround::sizeHint(): NewSize is " << _layoutMDW->sizeHint() << "\n"; - return( _layoutMDW->sizeHint() ); +TQSize ViewSurround::tqsizeHint() const { + // kdDebug(67100) << "ViewSurround::tqsizeHint(): NewSize is " << _layoutMDW->tqsizeHint() << "\n"; + return( _layoutMDW->tqsizeHint() ); } void ViewSurround::constructionFinished() { @@ -180,39 +180,39 @@ void ViewSurround::constructionFinished() { // rear speaker support in this sound card rowOfSpeaker = 1; } - _layoutSurround->addWidget(personLabel ,rowOfSpeaker, 2, Qt::AlignHCenter | Qt::AlignVCenter); + _layoutSurround->addWidget(personLabel ,rowOfSpeaker, 2, TQt::AlignHCenter | TQt::AlignVCenter); if ( _mdSurroundFront != 0 ) { MixDeviceWidget *mdw = createMDW(_mdSurroundFront, true, Qt::Vertical); - _layoutSurround->addWidget(mdw,0,4, Qt::AlignBottom | Qt::AlignRight); + _layoutSurround->addWidget(mdw,0,4, TQt::AlignBottom | TQt::AlignRight); _mdws.append(mdw); TQLabel* speakerIcon = new TQLabel("Speaker", this); icon = UserIcon( "SpeakerFrontLeft" ); if ( ! icon.isNull()) speakerIcon->setPixmap(icon); - _layoutSurround->addWidget(speakerIcon,0,1, Qt::AlignTop | Qt::AlignLeft); + _layoutSurround->addWidget(speakerIcon,0,1, TQt::AlignTop | TQt::AlignLeft); speakerIcon = new TQLabel("Speaker", this); icon = UserIcon( "SpeakerFrontRight" ); if ( ! icon.isNull()) speakerIcon->setPixmap(icon); - _layoutSurround->addWidget(speakerIcon,0,3, Qt::AlignTop | Qt::AlignRight); + _layoutSurround->addWidget(speakerIcon,0,3, TQt::AlignTop | TQt::AlignRight); } if ( _mdSurroundBack != 0 ) { MixDeviceWidget *mdw = createMDW(_mdSurroundBack, true, Qt::Vertical); - _layoutSurround->addWidget(mdw,2,4, Qt::AlignTop | Qt::AlignRight); + _layoutSurround->addWidget(mdw,2,4, TQt::AlignTop | TQt::AlignRight); _mdws.append(mdw); TQLabel* speakerIcon = new TQLabel("Speaker", this); icon = UserIcon( "SpeakerRearLeft" ); if ( ! icon.isNull()) speakerIcon->setPixmap(icon); - _layoutSurround->addWidget(speakerIcon,2,1, Qt::AlignBottom | Qt::AlignLeft); + _layoutSurround->addWidget(speakerIcon,2,1, TQt::AlignBottom | TQt::AlignLeft); speakerIcon = new TQLabel("Speaker", this); icon = UserIcon( "SpeakerRearRight" ); if ( ! icon.isNull()) speakerIcon->setPixmap(icon); - _layoutSurround->addWidget(speakerIcon,2,3, Qt::AlignBottom | Qt::AlignRight); + _layoutSurround->addWidget(speakerIcon,2,3, TQt::AlignBottom | TQt::AlignRight); } @@ -259,8 +259,8 @@ MixDeviceWidget* ViewSurround::createMDW(MixDevice *md, bool small, Qt::Orientat false, // Show Mute LED false, // Show Record LED small, // Small - orientation, // Orientation - this, // parent + orientation, // Qt::Orientation + this, // tqparent this, // View widget md->name().latin1() ); diff --git a/kmix/viewsurround.h b/kmix/viewsurround.h index 6690d35a..d0bc3c4e 100644 --- a/kmix/viewsurround.h +++ b/kmix/viewsurround.h @@ -13,8 +13,9 @@ class Mixer; class ViewSurround : public ViewBase { Q_OBJECT + TQ_OBJECT public: - ViewSurround(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags); + ViewSurround(TQWidget* tqparent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags); ~ViewSurround(); virtual int count(); @@ -23,7 +24,7 @@ public: virtual TQWidget* add(MixDevice *mdw); virtual void constructionFinished(); - TQSize sizeHint() const; + TQSize tqsizeHint() const; public slots: virtual void refreshVolumeLevels(); diff --git a/kmix/viewswitches.cpp b/kmix/viewswitches.cpp index 15b555ac..cf5ac958 100644 --- a/kmix/viewswitches.cpp +++ b/kmix/viewswitches.cpp @@ -31,8 +31,8 @@ #include "mdwenum.h" #include "mixer.h" -ViewSwitches::ViewSwitches(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags) - : ViewBase(parent, name, caption, mixer, 0, vflags) +ViewSwitches::ViewSwitches(TQWidget* tqparent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags) + : ViewBase(tqparent, name, caption, mixer, 0, vflags) { // Create switch buttonGroup if ( _vflags & ViewBase::Vertical ) { @@ -46,7 +46,7 @@ ViewSwitches::ViewSwitches(TQWidget* parent, const char* name, const TQString & // Place enums right from the switches: This is done, so that there will be no // ugly space on the left side, when no Switch is shown. // Actually it is not really clear yet, why there is empty space at all: There are 0 items in - // the _layoutEnum, so it might be a sizeHint() or some other subtle layout issue. + // the _layoutEnum, so it might be a tqsizeHint() or some other subtle tqlayout issue. _layoutEnum = new TQVBoxLayout(_layoutMDW); } init(); @@ -92,8 +92,8 @@ TQWidget* ViewSwitches::add(MixDevice *md) mdw = new MDWEnum( _mixer, // the mixer for this device md, // MixDevice (parameter) - orientation, // Orientation - this, // parent + orientation, // Qt::Orientation + this, // tqparent this, // View widget md->name().latin1() ); @@ -107,8 +107,8 @@ TQWidget* ViewSwitches::add(MixDevice *md) _mixer, // the mixer for this device md, // MixDevice (parameter) false, // Small - orientation, // Orientation - this, // parent + orientation, // Qt::Orientation + this, // tqparent this, // View widget md->name().latin1() ); @@ -118,9 +118,9 @@ TQWidget* ViewSwitches::add(MixDevice *md) return mdw; } -TQSize ViewSwitches::sizeHint() const { - //kdDebug(67100) << "ViewSwitches::sizeHint(): NewSize is " << _layoutMDW->sizeHint() << "\n"; - return( _layoutMDW->sizeHint() ); +TQSize ViewSwitches::tqsizeHint() const { + //kdDebug(67100) << "ViewSwitches::tqsizeHint(): NewSize is " << _layoutMDW->tqsizeHint() << "\n"; + return( _layoutMDW->tqsizeHint() ); } void ViewSwitches::constructionFinished() { diff --git a/kmix/viewswitches.h b/kmix/viewswitches.h index 0946ab8a..39b81f40 100644 --- a/kmix/viewswitches.h +++ b/kmix/viewswitches.h @@ -10,8 +10,9 @@ class Mixer; class ViewSwitches : public ViewBase { Q_OBJECT + TQ_OBJECT public: - ViewSwitches(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags); + ViewSwitches(TQWidget* tqparent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags); ~ViewSwitches(); virtual int count(); @@ -21,7 +22,7 @@ public: virtual void constructionFinished(); virtual void configurationUpdate(); - TQSize sizeHint() const; + TQSize tqsizeHint() const; public slots: virtual void refreshVolumeLevels(); diff --git a/kmix/volume.cpp b/kmix/volume.cpp index 99dd180b..d2eb4314 100644 --- a/kmix/volume.cpp +++ b/kmix/volume.cpp @@ -34,9 +34,9 @@ int Volume::_channelMaskEnum[10] = MCUSTOM1, MCUSTOM2 }; -Volume::Volume( ChannelMask chmask, long maxVolume, long minVolume, bool isCapture ) +Volume::Volume( ChannelMask chtqmask, long maxVolume, long minVolume, bool isCapture ) { - init(chmask, maxVolume, minVolume, isCapture); + init(chtqmask, maxVolume, minVolume, isCapture); } @@ -56,22 +56,22 @@ Volume::Volume( int channels, long maxVolume ) { Volume::Volume( const Volume &v ) { - _chmask = v._chmask; + _chtqmask = v._chtqmask; _maxVolume = v._maxVolume; _minVolume = v._minVolume; _muted = v._muted; _isCapture = v._isCapture; - setVolume(v, (ChannelMask)v._chmask); + setVolume(v, (ChannelMask)v._chtqmask); // kdDebug(67100) << "Volume::copy-constructor initialized " << v << "\n"; } -void Volume::init( ChannelMask chmask, long maxVolume, long minVolume, bool isCapture ) +void Volume::init( ChannelMask chtqmask, long maxVolume, long minVolume, bool isCapture ) { for ( int i=0; i<= Volume::CHIDMAX; i++ ) { _volumes[i] = 0; } - _chmask = chmask; + _chtqmask = chtqmask; _maxVolume = maxVolume; _minVolume = minVolume; _isCapture = isCapture; @@ -82,7 +82,7 @@ void Volume::init( ChannelMask chmask, long maxVolume, long minVolume, bool isCa void Volume::setAllVolumes(long vol) { for ( int i=0; i<= Volume::CHIDMAX; i++ ) { - if ( (_channelMaskEnum[i]) & _chmask ) { + if ( (_channelMaskEnum[i]) & _chtqmask ) { // we are supposed to set it _volumes[i] = volrange(vol); } @@ -106,17 +106,17 @@ void Volume::setVolume( ChannelID chid, long vol) */ void Volume::setVolume(const Volume &v) { - setVolume(v, (ChannelMask)(v._chmask&_chmask) ); + setVolume(v, (ChannelMask)(v._chtqmask&_chtqmask) ); } /** * Copy the volume elements contained in v to this Volume object. * Only those elments are copied, that are supported in BOTH Volume objects - * and match the ChannelMask given by chmask. + * and match the ChannelMask given by chtqmask. */ -void Volume::setVolume(const Volume &v, ChannelMask chmask) { +void Volume::setVolume(const Volume &v, ChannelMask chtqmask) { for ( int i=0; i<= Volume::CHIDMAX; i++ ) { - if ( _channelMaskEnum[i] & _chmask & (int)chmask ) { + if ( _channelMaskEnum[i] & _chtqmask & (int)chtqmask ) { // we are supposed to copy it _volumes[i] = volrange(v._volumes[i]); } @@ -149,8 +149,8 @@ long Volume::getVolume(ChannelID chid) { } else { // check if channel is supported - int chmask = _channelMaskEnum[chid]; - if ( (chmask & _chmask) != 0 ) { + int chtqmask = _channelMaskEnum[chid]; + if ( (chtqmask & _chtqmask) != 0 ) { // channel is supported vol = _volumes[chid]; } @@ -162,11 +162,11 @@ long Volume::getVolume(ChannelID chid) { return vol; } -long Volume::getAvgVolume(ChannelMask chmask) { +long Volume::getAvgVolume(ChannelMask chtqmask) { int avgVolumeCounter = 0; long long sumOfActiveVolumes = 0; for ( int i=0; i<= Volume::CHIDMAX; i++ ) { - if ( (_channelMaskEnum[i] & _chmask) & (int)chmask ) { + if ( (_channelMaskEnum[i] & _chtqmask) & (int)chtqmask ) { avgVolumeCounter++; sumOfActiveVolumes += _volumes[i]; } @@ -180,10 +180,10 @@ long Volume::getAvgVolume(ChannelMask chmask) { return (long)sumOfActiveVolumes; } -long Volume::getTopStereoVolume(ChannelMask chmask) { +long Volume::getTopStereoVolume(ChannelMask chtqmask) { long long topVolumeCount = 0; for ( int i=0; i<= Volume::CHIDMAX; i++ ) { - if ( (_channelMaskEnum[i] & _chmask) & (int)chmask ) { + if ( (_channelMaskEnum[i] & _chtqmask) & (int)chtqmask ) { if ( topVolumeCount < _volumes[i] ) topVolumeCount = _volumes[i]; } @@ -194,7 +194,7 @@ long Volume::getTopStereoVolume(ChannelMask chmask) { int Volume::count() { int counter = 0; for ( int i=0; i<= Volume::CHIDMAX; i++ ) { - if ( _channelMaskEnum[i] & _chmask ) { + if ( _channelMaskEnum[i] & _chtqmask ) { counter++; } } @@ -225,7 +225,7 @@ std::ostream& operator<<(std::ostream& os, const Volume& vol) { if ( i != 0 ) { os << ","; } - if ( Volume::_channelMaskEnum[i] & vol._chmask ) { + if ( Volume::_channelMaskEnum[i] & vol._chtqmask ) { // supported channel: Print Volume os << vol._volumes[i]; } @@ -248,7 +248,7 @@ kdbgstream& operator<<(kdbgstream &os, const Volume& vol) { if ( i != 0 ) { os << ","; } - if ( Volume::_channelMaskEnum[i] & vol._chmask ) { + if ( Volume::_channelMaskEnum[i] & vol._chtqmask ) { // supported channel: Print Volume os << vol._volumes[i]; } diff --git a/kmix/volume.h b/kmix/volume.h index 9051ed0c..a731ad59 100644 --- a/kmix/volume.h +++ b/kmix/volume.h @@ -27,7 +27,7 @@ class Volume CUSTOM1 = 8, CUSTOM2 = 9, CHIDMAX = 9 }; - Volume( ChannelMask chmask = MALL, long maxVolume = 100, long minVolume=0, bool isCapture=false ); + Volume( ChannelMask chtqmask = MALL, long maxVolume = 100, long minVolume=0, bool isCapture=false ); Volume( const Volume &v ); Volume( int channels, long maxVolume ); @@ -37,13 +37,13 @@ class Volume void setAllVolumes(long vol); // Set all volumes to the ones given in vol void setVolume(const Volume &vol ); - // Set volumes as specified by the channel mask - void setVolume( const Volume &vol, ChannelMask chmask); + // Set volumes as specified by the channel tqmask + void setVolume( const Volume &vol, ChannelMask chtqmask); void setVolume( ChannelID chid, long volume); long getVolume(ChannelID chid); - long getAvgVolume(ChannelMask chmask); - long getTopStereoVolume(ChannelMask chmask); + long getAvgVolume(ChannelMask chtqmask); + long getTopStereoVolume(ChannelMask chtqmask); long operator[](int); long maxVolume(); long minVolume(); @@ -61,13 +61,13 @@ class Volume static int _channelMaskEnum[10]; bool _muted; bool _isCapture; // true, when the Volume represents capture/record levels - long _chmask; + long _chtqmask; long _volumes[CHIDMAX+1]; long _maxVolume; long _minVolume; private: - void init( ChannelMask chmask, long, long, bool ); + void init( ChannelMask chtqmask, long, long, bool ); long volrange( int vol ); long volrangeRec( int vol ); diff --git a/krec/krecconfig_files.h b/krec/krecconfig_files.h index f8f78691..0d610aab 100644 --- a/krec/krecconfig_files.h +++ b/krec/krecconfig_files.h @@ -29,6 +29,7 @@ class KRecConfigFilesWidget; class KRecConfigFiles : public KCModule { Q_OBJECT + TQ_OBJECT public: KRecConfigFiles( TQWidget*, const char* =0, const TQStringList& = TQStringList() ); ~KRecConfigFiles(); diff --git a/krec/krecconfig_fileswidget.cpp b/krec/krecconfig_fileswidget.cpp index 206eda1b..36e4521b 100644 --- a/krec/krecconfig_fileswidget.cpp +++ b/krec/krecconfig_fileswidget.cpp @@ -119,12 +119,12 @@ void KRecConfigFilesWidget::defaults() { } void KRecConfigFilesWidget::ratechanged( int index ) { - if ( _ratebox->find( index ) == _rateother ) _rateotherbox->setEnabled( true ); + if ( _ratebox->tqfind( index ) == _rateother ) _rateotherbox->setEnabled( true ); else _rateotherbox->setEnabled( false ); - if ( _ratebox->find( index ) == _rate48 ) _samplingRate = 48000; - if ( _ratebox->find( index ) == _rate44 ) _samplingRate = 44100; - if ( _ratebox->find( index ) == _rate22 ) _samplingRate = 22050; - if ( _ratebox->find( index ) == _rate11 ) _samplingRate = 11025; + if ( _ratebox->tqfind( index ) == _rate48 ) _samplingRate = 48000; + if ( _ratebox->tqfind( index ) == _rate44 ) _samplingRate = 44100; + if ( _ratebox->tqfind( index ) == _rate22 ) _samplingRate = 22050; + if ( _ratebox->tqfind( index ) == _rate11 ) _samplingRate = 11025; emit sRateChanged( _samplingRate ); } void KRecConfigFilesWidget::rateotherchanged( const TQString& text ) { @@ -132,13 +132,13 @@ void KRecConfigFilesWidget::rateotherchanged( const TQString& text ) { emit sRateChanged( _samplingRate ); } void KRecConfigFilesWidget::channelschanged( int index ) { - if ( _channelsbox->find( index ) == _channels2 ) _channels = 2; - if ( _channelsbox->find( index ) == _channels1 ) _channels = 1; + if ( _channelsbox->tqfind( index ) == _channels2 ) _channels = 2; + if ( _channelsbox->tqfind( index ) == _channels1 ) _channels = 1; emit sChannelsChanged( _channels ); } void KRecConfigFilesWidget::bitschanged( int index ) { - if ( _bitsbox->find( index ) == _bits16 ) _bits = 16; - if ( _bitsbox->find( index ) == _bits8 ) _bits = 8; + if ( _bitsbox->tqfind( index ) == _bits16 ) _bits = 16; + if ( _bitsbox->tqfind( index ) == _bits8 ) _bits = 8; emit sBitsChanged( _bits ); } diff --git a/krec/krecconfig_fileswidget.h b/krec/krecconfig_fileswidget.h index 458f0395..53064846 100644 --- a/krec/krecconfig_fileswidget.h +++ b/krec/krecconfig_fileswidget.h @@ -29,6 +29,7 @@ class TQLabel; class KRecConfigFilesWidget : public TQVBox { Q_OBJECT + TQ_OBJECT public: KRecConfigFilesWidget( TQWidget*, const char* =0 ); ~KRecConfigFilesWidget(); diff --git a/krec/krecconfigure.cpp b/krec/krecconfigure.cpp index c29d6b4a..65cb7497 100644 --- a/krec/krecconfigure.cpp +++ b/krec/krecconfigure.cpp @@ -87,13 +87,13 @@ KRecConfigGeneral::KRecConfigGeneral( TQWidget* p, const char*, const TQStringLi _tipofday = new TQCheckBox( i18n( "Show tip of the day at startup" ), this ); connect( _tipofday, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( tipofdaychanged( bool ) ) ); _layout->addWidget( _tipofday ); - TQBoxLayout* _tmplayout = new TQBoxLayout( this, TQBoxLayout::LeftToRight ); + TQBoxLayout* _tmptqlayout = new TQBoxLayout( this, TQBoxLayout::LeftToRight ); _enableAllMessages = new KPushButton( i18n( "Enable All Hidden Messages" ), this ); connect( _enableAllMessages, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableallmessagesclicked() ) ); - _tmplayout->addWidget( _enableAllMessages ); + _tmptqlayout->addWidget( _enableAllMessages ); TQLabel* _tmplbl = new TQLabel( i18n( "All messages with the \"Don't show this message again\" option are shown again after selecting this button." ), this ); - _tmplayout->addWidget( _tmplbl ); - _layout->addLayout( _tmplayout ); + _tmptqlayout->addWidget( _tmplbl ); + _layout->addLayout( _tmptqlayout ); _layout->addStretch( 100 ); @@ -151,17 +151,17 @@ void KRecConfigGeneral::defaults() { void KRecConfigGeneral::displaychanged( int index ) { int verbose = _displaymode / 100; - if ( _displaybox->find( index ) == _display0 ) _displaymode = 0 + verbose * 100; - if ( _displaybox->find( index ) == _display1 ) _displaymode = 1 + verbose * 100; - if ( _displaybox->find( index ) == _display2 ) _displaymode = 2 + verbose * 100; - if ( _displaybox->find( index ) == _display3 ) _displaymode = 3 + verbose * 100; + if ( _displaybox->tqfind( index ) == _display0 ) _displaymode = 0 + verbose * 100; + if ( _displaybox->tqfind( index ) == _display1 ) _displaymode = 1 + verbose * 100; + if ( _displaybox->tqfind( index ) == _display2 ) _displaymode = 2 + verbose * 100; + if ( _displaybox->tqfind( index ) == _display3 ) _displaymode = 3 + verbose * 100; emit changed( true ); } void KRecConfigGeneral::framebasechanged( int index ) { - if ( _framebasebox->find( index ) == _framebase30 ) _framebase = 30; - if ( _framebasebox->find( index ) == _framebase25 ) _framebase = 25; - if ( _framebasebox->find( index ) == _framebase75 ) _framebase = 75; - if ( _framebasebox->find( index ) == _framebaseother ) { + if ( _framebasebox->tqfind( index ) == _framebase30 ) _framebase = 30; + if ( _framebasebox->tqfind( index ) == _framebase25 ) _framebase = 25; + if ( _framebasebox->tqfind( index ) == _framebase75 ) _framebase = 75; + if ( _framebasebox->tqfind( index ) == _framebaseother ) { _framebaseotherbox->setEnabled( true ); _framebase = _framebaseotherline->text().toInt(); kdDebug(60005) << k_funcinfo << "Framebase=" << _framebase << endl; diff --git a/krec/krecconfigure.h b/krec/krecconfigure.h index db061f2b..97c43fce 100644 --- a/krec/krecconfigure.h +++ b/krec/krecconfigure.h @@ -29,6 +29,7 @@ class KPushButton; class KRecConfigGeneral : public KCModule { Q_OBJECT + TQ_OBJECT public: KRecConfigGeneral( TQWidget*, const char* =0, const TQStringList& = TQStringList() ); ~KRecConfigGeneral(); diff --git a/krec/krecexport_template.cpp b/krec/krecexport_template.cpp index 3569268d..cfd5388c 100644 --- a/krec/krecexport_template.cpp +++ b/krec/krecexport_template.cpp @@ -70,17 +70,17 @@ kdDebug( 60005 ) << k_funcinfo << endl; emit running( running() ); } -Q_INT16 KRecExportItem::read16( char* array, int index ) { - Q_INT16 tmp; +TQ_INT16 KRecExportItem::read16( char* array, int index ) { + TQ_INT16 tmp; tmp = array[ index ] + ( array[ index + 1 ] << 8 ) & 0xff; return tmp; } /// Helper: writes an integer into an char* formated for wave-files -void KRecExportItem::write16( char* array, Q_INT16 value, int index ) { +void KRecExportItem::write16( char* array, TQ_INT16 value, int index ) { array[ index ] = ( value >> 0 ) & 0xff; array[ index + 1 ] = ( value >> 8 ) & 0xff; } -void KRecExportItem::write32( char* array, Q_INT32 value, int index ) { +void KRecExportItem::write32( char* array, TQ_INT32 value, int index ) { write16( array, value, index ); array[ index + 2 ] = ( value >> 16 ) & 0xff; array[ index + 3 ] = ( value >> 24 ) & 0xff; diff --git a/krec/krecexport_template.h b/krec/krecexport_template.h index aac9dac2..e41b7d85 100644 --- a/krec/krecexport_template.h +++ b/krec/krecexport_template.h @@ -31,6 +31,7 @@ */ class KRecExportItem : public TQObject { Q_OBJECT + TQ_OBJECT private: /// Controls wether an export is running, or not... bool _running; @@ -48,9 +49,9 @@ protected: int channels() const; /// Helpers for reading and writing to an char-array - Q_INT16 read16( char* array, int index ); - void write16( char* array, Q_INT16 value, int index ); - void write32( char* array, Q_INT32 value, int index ); + TQ_INT16 read16( char* array, int index ); + void write16( char* array, TQ_INT16 value, int index ); + void write32( char* array, TQ_INT32 value, int index ); public: ~KRecExportItem(); diff --git a/krec/krecexport_wave.h b/krec/krecexport_wave.h index 6390eb48..3fc4b865 100644 --- a/krec/krecexport_wave.h +++ b/krec/krecexport_wave.h @@ -21,6 +21,7 @@ class TQFile; class KRecExport_Wave : public KRecExportItem { Q_OBJECT + TQ_OBJECT public: KRecExport_Wave( TQObject*, const char* =0, const TQStringList& =0 ); ~KRecExport_Wave(); diff --git a/krec/krecfile.cpp b/krec/krecfile.cpp index a588d126..9004b211 100644 --- a/krec/krecfile.cpp +++ b/krec/krecfile.cpp @@ -37,7 +37,7 @@ void KRecFile::init() { _pos = 0; _size = 0; - _filename = TQString::null; + _filename = TQString(); _currentBuffer = 0; _dir = new KTempDir(); _config = new KSimpleConfig( _dir->name()+"project.rc", false ); @@ -76,7 +76,7 @@ KRecFile::KRecFile( const TQString &filename, TQObject* p, const char* n ) KTar *tar = new KTar( _filename, "application/x-gzip" ); tar->open( IO_ReadOnly ); - int i=0; while ( _filename.find( '/', i ) != -1 ) i++; // Find last '/' + int i=0; while ( _filename.tqfind( '/', i ) != -1 ) i++; // Find last '/' TQString basename = _filename.right( _filename.length()-i ); basename = basename.left( basename.length()-5 ); @@ -94,7 +94,7 @@ KRecFile::KRecFile( const TQString &filename, TQObject* p, const char* n ) _config->setGroup( "File-" + TQString::number( i ) ); newBuffer( KRecBuffer::fromConfig( _config, _dir->qDir(), this ) ); } - KRecGlobal::the()->message( i18n( "\'%1\' loaded." ).arg( filename ) ); + KRecGlobal::the()->message( i18n( "\'%1\' loaded." ).tqarg( filename ) ); delete tar; @@ -155,7 +155,7 @@ void KRecFile::save( const TQString &fname ) { KTar *tar = new KTar( tmpname, "application/x-gzip" ); tar->open( IO_WriteOnly ); - int i=0; while ( fname.find( '/', i ) != -1 ) i++; // Find last '/' + int i=0; while ( fname.tqfind( '/', i ) != -1 ) i++; // Find last '/' TQString basename = fname.right( fname.length()-i ); if ( basename.endsWith( ".krec" ) ) basename = basename.left( basename.length()-5 ); @@ -168,7 +168,7 @@ void KRecFile::save( const TQString &fname ) { delete tar; KIO::file_move( tmpname, filetosave, -1, true, false, true ); - KRecGlobal::the()->message( i18n( "Saving \"%1\" was successful." ).arg( filename() ) ); + KRecGlobal::the()->message( i18n( "Saving \"%1\" was successful." ).tqarg( filename() ) ); _saved = true; } @@ -263,7 +263,7 @@ void KRecFile::newBuffer( KRecBuffer* buffer ) { connect( buffer, TQT_SIGNAL( deleteSelf( KRecBuffer* ) ), this, TQT_SLOT( deleteBuffer( KRecBuffer* ) ) ); _buffers.append( buffer ); newSize( buffer, buffer->size() ); - _currentBuffer = _buffers.findIndex( buffer ); + _currentBuffer = _buffers.tqfindIndex( buffer ); emit sNewBuffer( buffer ); _saved = false; } @@ -295,7 +295,7 @@ KRecBuffer* KRecFile::getTopBuffer_buffer( int pos ) { return out; } int KRecFile::getTopBuffer_int( int pos ) { - return _buffers.findIndex( getTopBuffer_buffer( pos ) ); + return _buffers.tqfindIndex( getTopBuffer_buffer( pos ) ); } @@ -309,7 +309,7 @@ KRecBuffer::KRecBuffer( const TQString &filename, int startpos, bool a, KRecFile , _active( a ) , _pos( 0 ), _start( startpos ) , _title( _fileinfo->fileName() ) - , _comment( TQString::null ) + , _comment( TQString() ) { kdDebug( 60005 ) << k_funcinfo << filename << " " << startpos << endl; _open = _file->open( IO_Raw | IO_ReadWrite ); @@ -343,7 +343,7 @@ KRecBuffer* KRecBuffer::fromConfig( KConfig* config, TQDir* dir, KRecFile* p, co config->readBoolEntry( "Activated", true ), p, n ); tmp->setTitle( config->readEntry( "Title", tmp->filename() ) ); - tmp->setComment( config->readEntry( "Comment", TQString::null ) ); + tmp->setComment( config->readEntry( "Comment", TQString() ) ); return tmp; } @@ -429,13 +429,13 @@ void KRecBuffer::setActive( bool n ) { } void KRecBuffer::deleteBuffer() { - if ( KMessageBox::warningContinueCancel( KRecGlobal::the()->mainWidget(), i18n( "Do you really want to delete the selected part '%1'?" ).arg( filename() ), i18n("Delete Part?"), KStdGuiItem::del() ) == KMessageBox::Continue ) + if ( KMessageBox::warningContinueCancel( KRecGlobal::the()->mainWidget(), i18n( "Do you really want to delete the selected part '%1'?" ).tqarg( filename() ), i18n("Delete Part?"), KStdGuiItem::del() ) == KMessageBox::Continue ) _krecfile->deleteBuffer( this ); } float KRecBuffer::getSample( int pos, int /*channel*/ ) { - Q_INT16 tmp16; - Q_INT8 tmp8; + TQ_INT16 tmp16; + TQ_INT8 tmp8; float out; _file->at( _krecfile->samplesToOffset( pos ) ); if ( _krecfile->bits() == 16 ) { diff --git a/krec/krecfile.h b/krec/krecfile.h index 895a6a6d..b9b9bb64 100644 --- a/krec/krecfile.h +++ b/krec/krecfile.h @@ -28,6 +28,7 @@ class KRecFileViewWidget; class KRecFile : virtual public TQObject { Q_OBJECT + TQ_OBJECT friend class KRecFileWidget; public: KRecFile( TQObject*, const char* =0 ); @@ -125,6 +126,7 @@ class TQDataStream; class KRecBuffer : virtual public TQObject { Q_OBJECT + TQ_OBJECT public: KRecBuffer( const TQString &, int, bool, KRecFile*, const char* =0 ); ~KRecBuffer(); diff --git a/krec/krecfileview.cpp b/krec/krecfileview.cpp index 42911620..a5a989d8 100644 --- a/krec/krecfileview.cpp +++ b/krec/krecfileview.cpp @@ -77,7 +77,7 @@ kdDebug( 60005 ) << k_funcinfo << file << endl; } else { disconnect( this, TQT_SLOT( setPos( TQIODevice::Offset ) ) ); _filename->setText( i18n( "" ) ); - _timedisplay->newFilename( TQString::null ); + _timedisplay->newFilename( TQString() ); } } } diff --git a/krec/krecfileview.h b/krec/krecfileview.h index de47d0f4..bd2c39da 100644 --- a/krec/krecfileview.h +++ b/krec/krecfileview.h @@ -29,6 +29,7 @@ class KRecTimeDisplay; class KRecFileView : virtual public TQWidget { Q_OBJECT + TQ_OBJECT public: KRecFileView( TQWidget*, const char* =0 ); ~KRecFileView(); diff --git a/krec/krecfileviewhelpers.cpp b/krec/krecfileviewhelpers.cpp index a064dfea..26acdb2a 100644 --- a/krec/krecfileviewhelpers.cpp +++ b/krec/krecfileviewhelpers.cpp @@ -64,12 +64,12 @@ void KRecTimeBar::mouseReleaseEvent( TQMouseEvent* qme ) { void KRecTimeBar::newPos( int n ) { _pos = n; - repaint(); + tqrepaint(); } void KRecTimeBar::newSize( int n ) { _size = n; - repaint(); + tqrepaint(); } @@ -216,10 +216,10 @@ TQString KRecTimeDisplay::formatTime( const int mode, const int sample ) const { void KRecTimeDisplay::timeContextMenu( TQPopupMenu* menu ) { if ( !_filename.isNull() ) { menu->insertSeparator( 0 ); - menu->insertItem( i18n( "kByte: %1" ).arg( formatTime( 3, _posvalue ) ), -1, 0 ); - menu->insertItem( i18n( "[h:]m:s.f %1" ).arg( formatTime( 2, _posvalue ) ), -1, 0 ); - menu->insertItem( i18n( "[h:]m:s.s %1" ).arg( formatTime( 1, _posvalue ) ), -1, 0 ); - menu->insertItem( i18n( "%1 Samples" ).arg( formatTime( 0, _posvalue ) ), -1, 0 ); + menu->insertItem( i18n( "kByte: %1" ).tqarg( formatTime( 3, _posvalue ) ), -1, 0 ); + menu->insertItem( i18n( "[h:]m:s.f %1" ).tqarg( formatTime( 2, _posvalue ) ), -1, 0 ); + menu->insertItem( i18n( "[h:]m:s.s %1" ).tqarg( formatTime( 1, _posvalue ) ), -1, 0 ); + menu->insertItem( i18n( "%1 Samples" ).tqarg( formatTime( 0, _posvalue ) ), -1, 0 ); KPopupTitle *tmp = new KPopupTitle( menu ); tmp->setTitle( i18n( "Position" ) ); menu->insertItem( tmp, -1, 0 ); @@ -235,10 +235,10 @@ void KRecTimeDisplay::timeContextMenu( const TQPoint &point ) { void KRecTimeDisplay::sizeContextMenu( TQPopupMenu* menu ) { if ( !_filename.isNull() ) { menu->insertSeparator( 0 ); - menu->insertItem( i18n( "kByte: %1" ).arg( formatTime( 3, _sizevalue ) ), -1, 0 ); - menu->insertItem( i18n( "[h:]m:s.f %1" ).arg( formatTime( 2, _sizevalue ) ), -1, 0 ); - menu->insertItem( i18n( "[h:]m:s.s %1" ).arg( formatTime( 1, _sizevalue ) ), -1, 0 ); - menu->insertItem( i18n( "%1 Samples" ).arg( formatTime( 0, _sizevalue ) ), -1, 0 ); + menu->insertItem( i18n( "kByte: %1" ).tqarg( formatTime( 3, _sizevalue ) ), -1, 0 ); + menu->insertItem( i18n( "[h:]m:s.f %1" ).tqarg( formatTime( 2, _sizevalue ) ), -1, 0 ); + menu->insertItem( i18n( "[h:]m:s.s %1" ).tqarg( formatTime( 1, _sizevalue ) ), -1, 0 ); + menu->insertItem( i18n( "%1 Samples" ).tqarg( formatTime( 0, _sizevalue ) ), -1, 0 ); KPopupTitle *tmp = new KPopupTitle( menu ); tmp->setTitle( i18n( "Size" ) ); menu->insertItem( tmp, -1, 0 ); @@ -255,10 +255,10 @@ void KRecTimeDisplay::jumpToTime() { } TQString KRecTimeDisplay::positionText( int m, int n ) { - return i18n( "Position: %1" ).arg( formatTime( m,n ) ); + return i18n( "Position: %1" ).tqarg( formatTime( m,n ) ); } TQString KRecTimeDisplay::sizeText( int m, int n ) { - return i18n( "Size: %1" ).arg( formatTime( m,n ) ); + return i18n( "Size: %1" ).tqarg( formatTime( m,n ) ); } void AKLabel::mousePressEvent( TQMouseEvent* qme ) { diff --git a/krec/krecfileviewhelpers.h b/krec/krecfileviewhelpers.h index bd78c4d6..865d96fd 100644 --- a/krec/krecfileviewhelpers.h +++ b/krec/krecfileviewhelpers.h @@ -27,6 +27,7 @@ class KPopupMenu; class KRecTimeBar : public TQFrame { Q_OBJECT + TQ_OBJECT public: KRecTimeBar( TQWidget*, const char* =0 ); ~KRecTimeBar(); @@ -56,6 +57,7 @@ private: class KRecTimeDisplay : public TQFrame { Q_OBJECT + TQ_OBJECT public: KRecTimeDisplay( TQWidget*, const char* =0 ); ~KRecTimeDisplay(); @@ -92,6 +94,7 @@ private: class AKLabel : public TQLabel { Q_OBJECT + TQ_OBJECT public: AKLabel( TQWidget* p, const char* n=0, WFlags f=0 ) : TQLabel( p, n, f ) { init(); } AKLabel( const TQString& s, TQWidget* p, const char* n=0, WFlags f=0 ) : TQLabel( s, p, n, f ) { init(); } diff --git a/krec/krecfilewidgets.cpp b/krec/krecfilewidgets.cpp index 16f2db93..075a2151 100644 --- a/krec/krecfilewidgets.cpp +++ b/krec/krecfilewidgets.cpp @@ -64,8 +64,8 @@ kdDebug( 60005 ) << k_funcinfo << file << endl; for ( TQValueList::iterator it = _file->_buffers.begin(); it != _file->_buffers.end(); ++it ) { newBuffer( ( *it ) ); } - connect( _file, TQT_SIGNAL( sNewBuffer( KRecBuffer* ) ), this, TQT_SLOT( newBuffer( KRecBuffer* ) ) ); - connect( _file, TQT_SIGNAL( sDeleteBuffer( KRecBuffer* ) ), this, TQT_SLOT( deleteBuffer( KRecBuffer* ) ) ); + connect( _file, TQT_SIGNAL( sNewBuffer( KRecBuffer* ) ), TQT_TQOBJECT(this), TQT_SLOT( newBuffer( KRecBuffer* ) ) ); + connect( _file, TQT_SIGNAL( sDeleteBuffer( KRecBuffer* ) ), TQT_TQOBJECT(this), TQT_SLOT( deleteBuffer( KRecBuffer* ) ) ); //kdDebug( 60005 ) << _file->_currentBuffer << endl; } } @@ -98,7 +98,7 @@ void KRecFileWidget::mouseReleaseEvent( TQMouseEvent* qme ) { void KRecFileWidget::newBuffer( KRecBuffer* buffer ) { //kdDebug( 60005 ) << k_funcinfo << buffer << endl; KRecBufferWidget *tmp = new KRecBufferWidget( buffer, this ); - connect( tmp, TQT_SIGNAL( popupMenu( KRecBufferWidget*, TQPoint ) ), this, TQT_SLOT( popupMenu( KRecBufferWidget*, TQPoint ) ) ); + connect( tmp, TQT_SIGNAL( popupMenu( KRecBufferWidget*, TQPoint ) ), TQT_TQOBJECT(this), TQT_SLOT( popupMenu( KRecBufferWidget*, TQPoint ) ) ); bufferwidgets.append( tmp ); tmp->show(); resizeEvent(); @@ -119,12 +119,12 @@ void KRecFileWidget::deleteBuffer( KRecBuffer* buffer ) { void KRecFileWidget::popupMenu( KRecBufferWidget* bw, TQPoint pos ) { KPopupMenu tmp( this ); - KToggleAction* _activeaction = new KToggleAction( i18n( "Toggle Active/Disabled State" ), KShortcut(), this ); + KToggleAction* _activeaction = new KToggleAction( i18n( "Toggle Active/Disabled State" ), KShortcut(), TQT_TQOBJECT(this) ); _activeaction->setChecked( bw->buffer()->active() ); connect( _activeaction, TQT_SIGNAL( toggled( bool ) ), bw->buffer(), TQT_SLOT( setActive( bool ) ) ); - KAction* _removeaction = new KAction( i18n( "Remove This Part" ), "fileremove", KShortcut(), bw->buffer(), TQT_SLOT( deleteBuffer() ), this ); - KAction* _changetitle = new KAction( i18n( "Change Title of This Part" ), KShortcut(), bw, TQT_SLOT( changeTitle() ), this ); - KAction* _changecomment = new KAction( i18n( "Change Comment of This Part" ), KShortcut(), bw, TQT_SLOT( changeComment() ), this ); + KAction* _removeaction = new KAction( i18n( "Remove This Part" ), "fileremove", KShortcut(), bw->buffer(), TQT_SLOT( deleteBuffer() ), TQT_TQOBJECT(this) ); + KAction* _changetitle = new KAction( i18n( "Change Title of This Part" ), KShortcut(), TQT_TQOBJECT(bw), TQT_SLOT( changeTitle() ), TQT_TQOBJECT(this) ); + KAction* _changecomment = new KAction( i18n( "Change Comment of This Part" ), KShortcut(), TQT_TQOBJECT(bw), TQT_SLOT( changeComment() ), TQT_TQOBJECT(this) ); _activeaction->plug( &tmp ); _changetitle->plug( &tmp ); _changecomment->plug( &tmp ); @@ -147,7 +147,7 @@ KRecBufferWidget::KRecBufferWidget( KRecBuffer* buffer, TQWidget* p, const char* , _main_region( 0 ), _title_region( 0 ), _fileend_region( 0 ) , alreadyreadsize( 0 ) { - connect( _buffer, TQT_SIGNAL( somethingChanged() ), this, TQT_SLOT( update() ) ); + connect( _buffer, TQT_SIGNAL( somethingChanged() ), TQT_TQOBJECT(this), TQT_SLOT( update() ) ); kdDebug( 60005 ) << k_funcinfo << endl; } KRecBufferWidget::~KRecBufferWidget() { @@ -189,19 +189,19 @@ void KRecBufferWidget::initLayout() { void KRecBufferWidget::drawFrame( TQPainter* p ) { //kdDebug( 60005 ) << k_funcinfo << endl; if ( _buffer->active() ) - p->setBrush( colorGroup().highlight() ); + p->setBrush( tqcolorGroup().highlight() ); else - p->setBrush( colorGroup().highlight().dark() ); - p->setPen( TQPen( colorGroup().dark(), 1 ) ); + p->setBrush( tqcolorGroup().highlight().dark() ); + p->setPen( TQPen( tqcolorGroup().dark(), 1 ) ); p->drawRect( _title_region->boundingRect() ); p->drawRect( _fileend_region->boundingRect() ); p->setBrush( TQBrush() ); - p->setPen( TQPen( colorGroup().dark(), 1 ) ); + p->setPen( TQPen( tqcolorGroup().dark(), 1 ) ); p->drawRect( _main_region->boundingRect() ); - p->setPen( TQPen( colorGroup().highlightedText() ) ); - p->drawText( _title_region->boundingRect(), Qt::AlignCenter, _buffer->title() ); + p->setPen( TQPen( tqcolorGroup().highlightedText() ) ); + p->drawText( _title_region->boundingRect(), TQt::AlignCenter, _buffer->title() ); } void KRecBufferWidget::drawContents( TQPainter* p ) { @@ -220,7 +220,7 @@ void KRecBufferWidget::drawContents( TQPainter* p ) { p->setPen( TQPen( TQColor( 0,0,0 ) ) ); TQString comment = _buffer->comment(); if ( comment.isNull() ) comment = i18n( "Lots of Data" ); - p->drawText( _main_region->boundingRect(), Qt::AlignCenter, comment ); + p->drawText( _main_region->boundingRect(), TQt::AlignCenter, comment ); } void KRecBufferWidget::paintEvent( TQPaintEvent* ) { initLayout(); @@ -232,12 +232,12 @@ void KRecBufferWidget::paintEvent( TQPaintEvent* ) { void KRecBufferWidget::mousePressEvent( TQMouseEvent* qme ) { kdDebug( 60005 ) << k_funcinfo << endl; - if ( _main_region->contains( qme->pos() ) || _title_region->contains( qme->pos() ) ) + if ( _main_region->tqcontains( qme->pos() ) || _title_region->tqcontains( qme->pos() ) ) if ( qme->button() == Qt::RightButton ) emit popupMenu( this, qme->globalPos() ); } void KRecBufferWidget::mouseDoubleClickEvent( TQMouseEvent* qme ) { - if ( _title_region->contains( qme->pos() ) ) + if ( _title_region->tqcontains( qme->pos() ) ) _buffer->setActive( !_buffer->active() ); } diff --git a/krec/krecfilewidgets.h b/krec/krecfilewidgets.h index e183474b..9be59d50 100644 --- a/krec/krecfilewidgets.h +++ b/krec/krecfilewidgets.h @@ -37,6 +37,7 @@ class KToggleAction; class KRecFileWidget : public TQFrame { Q_OBJECT + TQ_OBJECT public: KRecFileWidget( KRecFile*, TQWidget*, const char* =0 ); ~KRecFileWidget(); @@ -57,6 +58,7 @@ private: class Sample : public TQObject { Q_OBJECT + TQ_OBJECT public: Sample() : _values( 0 ), _min( 0 ), _max( 0 ) {} @@ -75,6 +77,7 @@ private: class KRecBufferWidget : public TQFrame { Q_OBJECT + TQ_OBJECT public: KRecBufferWidget( KRecBuffer*, TQWidget*, const char* =0 ); ~KRecBufferWidget(); diff --git a/krec/krecglobal.cpp b/krec/krecglobal.cpp index 58822f50..e3d8c71b 100644 --- a/krec/krecglobal.cpp +++ b/krec/krecglobal.cpp @@ -58,7 +58,7 @@ void KRecGlobal::message( const TQString &text ) { if ( _statusbar ) _statusbar- bool KRecGlobal::registerExport( KRecExportItem* item ) { //kdDebug( 60005 ) << k_funcinfo << "About to register ExportItem for \"" << item->exportFormat() << "\" extensions:\"" << item->extensions() << "\"" << endl; - if ( !the()->_exports->find( item->exportFormat() ) ) { + if ( !the()->_exports->tqfind( item->exportFormat() ) ) { the()->_exports->insert( item->exportFormat(), item ); the()->_exportformats << item->exportFormat(); } @@ -66,7 +66,7 @@ bool KRecGlobal::registerExport( KRecExportItem* item ) { } KRecExportItem* KRecGlobal::getExportItem( const TQString &exportFormat ) { - KRecExportItem *tmp = _exports->find( exportFormat ); + KRecExportItem *tmp = _exports->tqfind( exportFormat ); return tmp->newItem(); } diff --git a/krec/krecglobal.h b/krec/krecglobal.h index 102dc3f8..698ab0a0 100644 --- a/krec/krecglobal.h +++ b/krec/krecglobal.h @@ -27,6 +27,7 @@ class KRecExportItem; class KRecGlobal : public TQObject { Q_OBJECT + TQ_OBJECT private: KRecGlobal( TQObject* =0, const char* =0 ); ~KRecGlobal(); @@ -45,7 +46,7 @@ public: /** * Returns a pointer to the mainwidget. * Usefull to display Messageboxes, etc correctly without beeing a - * TQWidget or knowing about a parent TQWidget. + * TQWidget or knowing about a tqparent TQWidget. */ TQWidget* mainWidget(); diff --git a/krec/krecnewproperties.cpp b/krec/krecnewproperties.cpp index 12d386ed..56ec7228 100644 --- a/krec/krecnewproperties.cpp +++ b/krec/krecnewproperties.cpp @@ -34,8 +34,8 @@ #include KRecNewProperties::KRecNewProperties( TQWidget* p, const char* n ) - : TQDialog( p,n, 0, Qt::WType_Dialog|Qt::WStyle_Customize|Qt::WStyle_DialogBorder ) - , _filename( TQString::null ) + : TQDialog( p,n, 0, TQt::WType_Dialog|TQt::WStyle_Customize|TQt::WStyle_DialogBorder ) + , _filename( TQString() ) , _samplerate( 44100 ), _channels( 2 ), _bits( 16 ) { kdDebug( 60005 ) << k_funcinfo << endl; @@ -53,7 +53,7 @@ kdDebug( 60005 ) << k_funcinfo << endl; labelfont.setPointSize( labelfont.pointSize()*3/2 ); captionlabel->setFont( labelfont ); captionlabel->setText( i18n( "Properties for the new File" ) ); - captionlabel->setAlignment( AlignCenter ); + captionlabel->tqsetAlignment( AlignCenter ); _layout->addWidget( captionlabel ); _filewidget = new KRecConfigFilesWidget( this ); @@ -74,7 +74,7 @@ kdDebug( 60005 ) << k_funcinfo << endl; _layout->addWidget( new KSeparator( KSeparator::HLine, this ) ); _layout->addWidget( _btnWidget ); - setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum ); + tqsetSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum ); } KRecNewProperties::~KRecNewProperties() { kdDebug( 60005 ) << k_funcinfo << endl; diff --git a/krec/krecnewproperties.h b/krec/krecnewproperties.h index 886ffdef..2bd6cc06 100644 --- a/krec/krecnewproperties.h +++ b/krec/krecnewproperties.h @@ -28,6 +28,7 @@ class KRecConfigFilesWidget; class KRecNewProperties : public TQDialog { Q_OBJECT + TQ_OBJECT public: KRecNewProperties( TQWidget*, const char* =0 ); ~KRecNewProperties(); diff --git a/krec/krecord.cpp b/krec/krecord.cpp index 3bd18c72..2ff21e34 100644 --- a/krec/krecord.cpp +++ b/krec/krecord.cpp @@ -119,7 +119,7 @@ void KRecPrivate::saveFile() { } void KRecPrivate::saveAsFile() { //kdDebug( 60005 ) << k_funcinfo << endl; - if ( _currentFile ) pSaveFile( TQString::null ); + if ( _currentFile ) pSaveFile( TQString() ); } void KRecPrivate::pSaveFile( const TQString &filename ) { if ( !_currentFile ) @@ -138,7 +138,7 @@ bool KRecPrivate::closeFile() { //kdDebug( 60005 ) << k_funcinfo << endl; if ( _currentFile ) { if ( !_currentFile->saved() ) { - int choice = KMessageBox::questionYesNoCancel( _impl, i18n( "The document \"%1\" has been modified.\nDo you want to save it?" ).arg( _currentFile->filename() ), TQString::null, KStdGuiItem::save(), KStdGuiItem::discard() ); + int choice = KMessageBox::questionYesNoCancel( _impl, i18n( "The document \"%1\" has been modified.\nDo you want to save it?" ).tqarg( _currentFile->filename() ), TQString(), KStdGuiItem::save(), KStdGuiItem::discard() ); if ( choice == KMessageBox::Yes ) saveFile(); if ( choice == KMessageBox::Cancel ) return false; // go on if KMessageBox::No @@ -156,7 +156,7 @@ void KRecPrivate::exportFile() { if ( _currentFile ) { TQString filename = KFileDialog::getSaveFileName( "", KRecGlobal::the()->exportFormatEndings(), _impl, "Export File As" ); if ( !filename.isNull() ) { - int lastdot = filename.find( '.', -5 ); + int lastdot = filename.tqfind( '.', -5 ); TQString ending = filename.right( filename.length()-lastdot-1 ); _exportitem = KRecGlobal::the()->getExportItemForEnding( ending ); if ( _exportitem ) { @@ -164,7 +164,7 @@ void KRecPrivate::exportFile() { if ( _exportitem->initialize( filename ) ) { connect( _exportitem, TQT_SIGNAL( getData( TQByteArray& ) ), _currentFile, TQT_SLOT( getData( TQByteArray& ) ) ); connect( _currentFile, TQT_SIGNAL( endReached() ), _exportitem, TQT_SLOT( stop() ) ); - connect( _currentFile, TQT_SIGNAL( endReached() ), this, TQT_SLOT( endExportFile() ) ); + connect( _currentFile, TQT_SIGNAL( endReached() ), TQT_TQOBJECT(this), TQT_SLOT( endExportFile() ) ); _exportitem->start(); } } else @@ -179,13 +179,13 @@ void KRecPrivate::exportFile() { "you did everything right, please file a bugreport saying what " \ "you where about to do and please quote the following line:
" \ "%1" \ - "" ).arg( KRecGlobal::the()->exportFormatEndings() ), + "" ).tqarg( KRecGlobal::the()->exportFormatEndings() ), i18n( "Could not determine encodingmethod" ) ); } } else KRecGlobal::the()->message( i18n( "There is nothing to export." ) ); checkActions(); } -void KRecPrivate::endExportFile() { TQTimer::singleShot( 20, this, TQT_SLOT( endExportFile2() ) ); } +void KRecPrivate::endExportFile() { TQTimer::singleShot( 20, TQT_TQOBJECT(this), TQT_SLOT( endExportFile2() ) ); } void KRecPrivate::endExportFile2() { _exportitem->finalize(); disconnect( _currentFile, 0, _exportitem, 0 ); @@ -248,7 +248,7 @@ void KRecPrivate::toEnd() { } void KRecPrivate::forceTipOfDay() { - KTipDialog::showTip( _impl, TQString::null, true ); + KTipDialog::showTip( _impl, TQString(), true ); } void KRecPrivate::execaRtsControl() { @@ -264,12 +264,12 @@ void KRecPrivate::execKMix() { */ -KRecord::KRecord(TQWidget *parent, const char *name ) - : KMainWindow(parent,name) +KRecord::KRecord(TQWidget *tqparent, const char *name ) + : KMainWindow(tqparent,name) , d( new KRecPrivate( this ) ) { kdDebug( 60005 ) << k_funcinfo << endl; - //kdDebug( 60005 )<<"KRecord::KRecord( TQWidget *"<setMainWidget( this ); KRecGlobal::the()->setStatusBar( statusBar() ); @@ -290,7 +290,7 @@ KRecord::KRecord(TQWidget *parent, const char *name ) KStdAction::save( d, TQT_SLOT( saveFile() ), actionCollection() ); KStdAction::saveAs( d, TQT_SLOT( saveAsFile() ), actionCollection() ); KStdAction::close( d, TQT_SLOT( closeFile() ), actionCollection() ); - KStdAction::quit( this, TQT_SLOT( close() ), actionCollection() ); + KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT( close() ), actionCollection() ); KStdAction::tipOfDay( d, TQT_SLOT( forceTipOfDay() ), actionCollection() ); @@ -298,11 +298,11 @@ KRecord::KRecord(TQWidget *parent, const char *name ) d, TQT_SLOT( exportFile() ), actionCollection(), "export_file" ); d->aRecord = new KAction( i18n( "&Record" ), KShortcut( Key_R ), - this, TQT_SLOT( startRec() ), actionCollection(), "player_record" ); + TQT_TQOBJECT(this), TQT_SLOT( startRec() ), actionCollection(), "player_record" ); d->aPlay = new KAction( i18n( "&Play" ), KShortcut( Key_P ), - this, TQT_SLOT( startPlay() ), actionCollection(), "player_play" ); + TQT_TQOBJECT(this), TQT_SLOT( startPlay() ), actionCollection(), "player_play" ); d->aStop = new KAction( i18n( "&Stop" ), KShortcut( Key_S ), - this, TQT_SLOT( stopRec() ), actionCollection(), "player_stop" ); + TQT_TQOBJECT(this), TQT_SLOT( stopRec() ), actionCollection(), "player_stop" ); d->aThru = new KToggleAction( i18n( "Play Through" ), KShortcut( CTRL + Key_P), actionCollection(), "play_thru" ); connect( d->aThru, TQT_SIGNAL( toggled( bool ) ), d, TQT_SLOT( playthru( bool ) ) ); diff --git a/krec/krecord.h b/krec/krecord.h index 034f0557..1fd4e08f 100644 --- a/krec/krecord.h +++ b/krec/krecord.h @@ -31,9 +31,10 @@ class KRecPrivate; class KRecord : public KMainWindow { Q_OBJECT + TQ_OBJECT public: /// Constructor - KRecord( TQWidget* /*parent*/=0, const char* /*name*/=0 ); + KRecord( TQWidget* /*tqparent*/=0, const char* /*name*/=0 ); /// Destructor ~KRecord(); public slots: diff --git a/krec/krecord_private.h b/krec/krecord_private.h index 407f3f0a..ab1debde 100644 --- a/krec/krecord_private.h +++ b/krec/krecord_private.h @@ -45,6 +45,7 @@ namespace KSettings { class Dialog; } class KRecPrivate : public TQObject { Q_OBJECT + TQ_OBJECT public: /// Constructor KRecPrivate( KRecord*, const char* =0 ); @@ -129,6 +130,7 @@ public: class KRecMainWidget : public TQWidget { Q_OBJECT + TQ_OBJECT public: KRecMainWidget( TQWidget* p, const char* n=0 ) : TQWidget( p,n ) { _layout = new TQBoxLayout( this, TQBoxLayout::LeftToRight, 2 ); diff --git a/krec/mp3_export/krecexport_mp3.h b/krec/mp3_export/krecexport_mp3.h index e6481309..0eeae152 100644 --- a/krec/mp3_export/krecexport_mp3.h +++ b/krec/mp3_export/krecexport_mp3.h @@ -23,6 +23,7 @@ class TQFile; class KRecExport_MP3 : public KRecExportItem { Q_OBJECT + TQ_OBJECT public: KRecExport_MP3( TQObject*, const char* =0, const TQStringList& =0 ); ~KRecExport_MP3(); diff --git a/krec/ogg_export/krecexport_ogg.cpp b/krec/ogg_export/krecexport_ogg.cpp index e2b495dd..61b18265 100644 --- a/krec/ogg_export/krecexport_ogg.cpp +++ b/krec/ogg_export/krecexport_ogg.cpp @@ -95,7 +95,7 @@ kdDebug( 60005 ) << k_funcinfo << endl; vorbis_comment_add_tag ( &vc, const_cast( "kde-encoder" ), const_cast( "KRec" ) ); if ( write_vorbis_comments ) { - TQDateTime dt = TQDateTime::currentDateTime(); + TQDateTime dt = TQDateTime::tqcurrentDateTime(); vorbis_comment_add_tag ( &vc, const_cast( "title" ), const_cast( "" ) ); vorbis_comment_add_tag ( &vc, const_cast( "artist" ), diff --git a/krec/ogg_export/krecexport_ogg.h b/krec/ogg_export/krecexport_ogg.h index 787f8e34..93036990 100644 --- a/krec/ogg_export/krecexport_ogg.h +++ b/krec/ogg_export/krecexport_ogg.h @@ -27,6 +27,7 @@ class TQFile; class KRecExport_OGG : public KRecExportItem { Q_OBJECT + TQ_OBJECT public: KRecExport_OGG( TQObject*, const char* =0, const TQStringList& =0 ); ~KRecExport_OGG(); diff --git a/kscd/ChangeLog b/kscd/ChangeLog index 24eeb3ee..ab561f86 100644 --- a/kscd/ChangeLog +++ b/kscd/ChangeLog @@ -148,7 +148,7 @@ Tue Jan 18 17:27:26 2000 Dirk F * Added automatic storing of CDDB records downloaded from CDDB server to local harddrive. - * Fixed bug with routine connecting signals, over and over again, + * Fixed bug with routine connecting Q_SIGNALS, over and over again, causing routines to be called too many time, annoying CDDB server admins. Happens when a new CDDB (remote) request was issued. @@ -225,7 +225,7 @@ Fri May 15 18:28:40 1998 Bernd Johannes Wuebben Tue Apr 14 05:17:36 1998 Bernd Johannes Wuebben - * layout corrections for kscd magic dialog + * tqlayout corrections for kscd magic dialog Sat Jan 17 21:36:27 1998 Bernd Johannes Wuebben diff --git a/kscd/TODO b/kscd/TODO index e10c01c8..2851ae13 100644 --- a/kscd/TODO +++ b/kscd/TODO @@ -6,4 +6,4 @@ AJS: o fix eject button o don't show "no disc" error on startup o direct digital playback -o better GUI layout for LCD panel +o better GUI tqlayout for LCD panel diff --git a/kscd/bwlednum.cpp b/kscd/bwlednum.cpp index 4bfb16b6..fdc2beba 100644 --- a/kscd/bwlednum.cpp +++ b/kscd/bwlednum.cpp @@ -36,8 +36,8 @@ static char segs[14][8] = {25, 0, 0, 0, 0, 0, 0, 0} }; // blank -BW_LED_Number::BW_LED_Number( TQWidget *parent, const char *name ) - : TQFrame( parent, name ){ +BW_LED_Number::BW_LED_Number( TQWidget *tqparent, const char *name ) + : TQFrame( tqparent, name ){ offcolor = TQColor(100,0,0); @@ -84,7 +84,7 @@ void BW_LED_Number::setLEDColor( const TQColor& fgColor, const TQColor& bgColor fgcolor = fgColor; bgcolor = bgColor; - TQColorGroup old_cg = this->colorGroup(); + TQColorGroup old_cg = this->tqcolorGroup(); TQColorGroup new_cg( fgColor, bgColor, @@ -168,9 +168,9 @@ void BW_LED_Number::setSmallLED(bool a_boolean){ } -void BW_LED_Number::drawSymbol( TQPainter *p,char ,bool repaint ){ +void BW_LED_Number::drawSymbol( TQPainter *p,char ,bool tqrepaint ){ - // printf("drawSymbol repaint = %d\n",repaint); + // printf("drawSymbol tqrepaint = %d\n",tqrepaint); TQPoint pos; @@ -194,7 +194,7 @@ void BW_LED_Number::drawSymbol( TQPainter *p,char ,bool repaint ){ pos = TQPoint( Xoffset , Yoffset ); - if(repaint){ + if(tqrepaint){ // this draw the non-illumintated segments @@ -222,7 +222,7 @@ void BW_LED_Number::drawSymbol( TQPainter *p,char ,bool repaint ){ } } } - else{ // we are not repainting ourselves due to a repaint event but rather + else{ // we are not tqrepainting ourselves due to a tqrepaint event but rather // genuinely changing the symbol that is to be displayed for(int l = 0; l <= NUM_OF_SEGMENTS -1; l++){ @@ -277,7 +277,7 @@ void BW_LED_Number::drawSegment( const TQPoint &pos, char seg_number, TQPainter TQPoint pt = pos; - TQColorGroup g = colorGroup(); + TQColorGroup g = tqcolorGroup(); TQColor lightColor,darkColor; if ( erase ){ @@ -297,7 +297,7 @@ void BW_LED_Number::drawSegment( const TQPoint &pos, char seg_number, TQPainter TQPointArray pts; - pt.ry() += (QCOORD)Width/2; + pt.ry() += (TQCOORD)Width/2; if (erase){ @@ -355,7 +355,7 @@ void BW_LED_Number::drawSegment( const TQPoint &pos, char seg_number, TQPainter p.setPen(g.light()); break; case 2 : - pt.rx() += (QCOORD)(Segment_Length); + pt.rx() += (TQCOORD)(Segment_Length); if (erase) @@ -382,7 +382,7 @@ void BW_LED_Number::drawSegment( const TQPoint &pos, char seg_number, TQPainter break; case 3 : - pt.ry() += (QCOORD)Segment_Length; + pt.ry() += (TQCOORD)Segment_Length; p.setPen(g.background()); @@ -402,7 +402,7 @@ void BW_LED_Number::drawSegment( const TQPoint &pos, char seg_number, TQPainter break; case 4 : - pt.ry() += (QCOORD)(Segment_Length +1); + pt.ry() += (TQCOORD)(Segment_Length +1); p.fillRect(pt.x(), pt.y(), Width , Segment_Length - Width - Width/2 ,brush); if (erase) p.setPen(offcolor); @@ -421,8 +421,8 @@ void BW_LED_Number::drawSegment( const TQPoint &pos, char seg_number, TQPainter break; case 5 : - pt.rx() += (QCOORD)(Segment_Length ); - pt.ry() += (QCOORD)(Segment_Length +1); + pt.rx() += (TQCOORD)(Segment_Length ); + pt.ry() += (TQCOORD)(Segment_Length +1); p.fillRect(pt.x() - Width +1 ,pt.y(), Width , Segment_Length - Width - Width/2 ,brush); @@ -446,7 +446,7 @@ void BW_LED_Number::drawSegment( const TQPoint &pos, char seg_number, TQPainter break; case 6 : - pt.ry() += (QCOORD)(Segment_Length*2 ); + pt.ry() += (TQCOORD)(Segment_Length*2 ); p.fillRect(pt.x() + Width ,pt.y() -Width , Segment_Length -2* Width , Width ,brush); @@ -471,13 +471,13 @@ void BW_LED_Number::drawSegment( const TQPoint &pos, char seg_number, TQPainter break; case 7 : - pt.rx() += (QCOORD)(Segment_Length/2); - pt.ry() += (QCOORD)(Segment_Length*2); + pt.rx() += (TQCOORD)(Segment_Length/2); + pt.ry() += (TQCOORD)(Segment_Length*2); p.fillRect(pt.x() ,pt.y() - Width , Width , Width ,brush); break; case 8 : - pt.ry() += (QCOORD)(Segment_Length/2 + Width/2); - pt.rx() += (QCOORD)(Segment_Length/2 - Width/2 + 1); + pt.ry() += (TQCOORD)(Segment_Length/2 + Width/2); + pt.rx() += (TQCOORD)(Segment_Length/2 - Width/2 + 1); if (!show_off_colon && erase) { p.setBrush(bgcolor); @@ -494,8 +494,8 @@ void BW_LED_Number::drawSegment( const TQPoint &pos, char seg_number, TQPainter break; case 9 : - pt.ry() += (QCOORD)(3*Segment_Length/2 + Width/2); - pt.rx() += (QCOORD)(Segment_Length/2 - Width/2 + 1); + pt.ry() += (TQCOORD)(3*Segment_Length/2 + Width/2); + pt.rx() += (TQCOORD)(Segment_Length/2 - Width/2 + 1); if (!show_off_colon && erase) { p.setBrush(bgcolor); @@ -514,7 +514,7 @@ void BW_LED_Number::drawSegment( const TQPoint &pos, char seg_number, TQPainter else{ - pt.ry() += (QCOORD)Width/2; + pt.ry() += (TQCOORD)Width/2; switch ( seg_number ) { case 0 : @@ -524,37 +524,37 @@ void BW_LED_Number::drawSegment( const TQPoint &pos, char seg_number, TQPainter p.fillRect(pt.x()+Width,pt.y()- Width , Segment_Length -2* Width, Width ,brush); break; case 2 : - pt.rx() += (QCOORD)(Segment_Length); + pt.rx() += (TQCOORD)(Segment_Length); p.fillRect(pt.x()-Width,pt.y()+ Width/2, Width , Segment_Length - Width -Width/2 ,brush); break; case 3 : - pt.ry() += (QCOORD)Segment_Length; + pt.ry() += (TQCOORD)Segment_Length; p.fillRect(pt.x() + Width ,pt.y() - Width, Segment_Length- 2* Width, Width ,brush); break; case 4 : - pt.ry() += (QCOORD)(Segment_Length ); + pt.ry() += (TQCOORD)(Segment_Length ); p.fillRect(pt.x(), pt.y(), Width , Segment_Length - Width - Width/2 ,brush); break; case 5 : - pt.rx() += (QCOORD)(Segment_Length ); - pt.ry() += (QCOORD)(Segment_Length ); + pt.rx() += (TQCOORD)(Segment_Length ); + pt.ry() += (TQCOORD)(Segment_Length ); p.fillRect(pt.x() - Width ,pt.y(), Width , Segment_Length - Width - Width/2 ,brush); break; case 6 : - pt.ry() += (QCOORD)(Segment_Length*2); + pt.ry() += (TQCOORD)(Segment_Length*2); p.fillRect(pt.x() + Width ,pt.y() -Width , Segment_Length -2* Width , Width ,brush); break; case 7 : - pt.rx() += (QCOORD)(Segment_Length/2); - pt.ry() += (QCOORD)(Segment_Length*2); + pt.rx() += (TQCOORD)(Segment_Length/2); + pt.ry() += (TQCOORD)(Segment_Length*2); p.fillRect(pt.x() ,pt.y() - Width , Width , Width ,brush); break; case 8 : - pt.ry() += (QCOORD)(Segment_Length/2 + Width/2); - pt.rx() += (QCOORD)(Segment_Length/2 - Width/2 + 1); + pt.ry() += (TQCOORD)(Segment_Length/2 + Width/2); + pt.rx() += (TQCOORD)(Segment_Length/2 - Width/2 + 1); if (!show_off_colon && erase) { p.setBrush(bgcolor); brush.setColor(bgcolor); @@ -569,8 +569,8 @@ void BW_LED_Number::drawSegment( const TQPoint &pos, char seg_number, TQPainter break; case 9 : - pt.ry() += (QCOORD)(3*Segment_Length/2 + Width/2); - pt.rx() += (QCOORD)(Segment_Length/2 - Width/2 + 1); + pt.ry() += (TQCOORD)(3*Segment_Length/2 + Width/2); + pt.rx() += (TQCOORD)(Segment_Length/2 - Width/2 + 1); if (!show_off_colon && erase) { p.setBrush(bgcolor); diff --git a/kscd/bwlednum.h b/kscd/bwlednum.h index 5652832f..76bc10a8 100644 --- a/kscd/bwlednum.h +++ b/kscd/bwlednum.h @@ -17,13 +17,14 @@ #include "tqbitarray.h" -class BW_LED_Number : public QFrame +class BW_LED_Number : public TQFrame { Q_OBJECT + TQ_OBJECT public: - BW_LED_Number( TQWidget *parent=0, const char *name=0 ); + BW_LED_Number( TQWidget *tqparent=0, const char *name=0 ); ~BW_LED_Number(); void setSmallLED(bool ); // if you LED is small it might look better @@ -67,7 +68,7 @@ private: bool seg_contained_in( char c, char* seg); void drawSegment( const TQPoint &, char, TQPainter &, int, bool = FALSE ); - void drawSymbol( TQPainter *p,char s ,bool repaint); + void drawSymbol( TQPainter *p,char s ,bool tqrepaint); char* old_segments; char* current_segments; diff --git a/kscd/cddbdlg.cpp b/kscd/cddbdlg.cpp index e574ba92..13efb8b7 100644 --- a/kscd/cddbdlg.cpp +++ b/kscd/cddbdlg.cpp @@ -33,8 +33,8 @@ struct mytoc unsigned absframe; }; -CDDBDlg::CDDBDlg( TQWidget* parent, const char* name ) - : KDialogBase( parent, name, false, i18n( "CD Editor" ), +CDDBDlg::CDDBDlg( TQWidget* tqparent, const char* name ) + : KDialogBase( tqparent, name, false, i18n( "CD Editor" ), Ok|Cancel|User1|User2, Ok, true ) { KGlobal::locale()->insertCatalogue("libkcddb"); @@ -90,7 +90,7 @@ void CDDBDlg::submitFinished(KCDDB::CDDB::Result r) else { TQString str = i18n("Error sending record.\n\n%1") - .arg(KCDDB::CDDB::resultToString(r)); + .tqarg(KCDDB::CDDB::resultToString(r)); KMessageBox::error(this, str, i18n("Record Submission")); } } // submitFinished() diff --git a/kscd/cddbdlg.h b/kscd/cddbdlg.h index b8f3c90a..cee86052 100644 --- a/kscd/cddbdlg.h +++ b/kscd/cddbdlg.h @@ -12,9 +12,10 @@ class CDInfoDialogBase; class CDDBDlg : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - CDDBDlg(TQWidget* parent, const char* name = 0); + CDDBDlg(TQWidget* tqparent, const char* name = 0); ~CDDBDlg(); void setData( diff --git a/kscd/configWidget.cpp b/kscd/configWidget.cpp index bae787e9..4d8e03fb 100644 --- a/kscd/configWidget.cpp +++ b/kscd/configWidget.cpp @@ -45,8 +45,8 @@ extern "C" { class SpecialComboBox : public KComboBox { public: - SpecialComboBox(TQWidget* parent, const char* name) - : KComboBox(parent, name) + SpecialComboBox(TQWidget* tqparent, const char* name) + : KComboBox(tqparent, name) {} // TQComboBox::setCurrentText replaces the current text if @@ -59,14 +59,14 @@ public: } ; /* - * Constructs a configWidget which is a child of 'parent', with the + * Constructs a configWidget which is a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ -configWidget::configWidget(KSCD* player, TQWidget* parent, const char* name) - : configWidgetUI(parent, name), +configWidget::configWidget(KSCD* player, TQWidget* tqparent, const char* name) + : configWidgetUI(tqparent, name), mPlayer(player) { if (!name) diff --git a/kscd/configWidget.h b/kscd/configWidget.h index 7269ca42..5072d930 100644 --- a/kscd/configWidget.h +++ b/kscd/configWidget.h @@ -31,9 +31,10 @@ class SpecialComboBox; class configWidget : public configWidgetUI { Q_OBJECT + TQ_OBJECT public: - configWidget(KSCD* player, TQWidget* parent = 0, const char* name = 0); + configWidget(KSCD* player, TQWidget* tqparent = 0, const char* name = 0); ~configWidget(); protected: diff --git a/kscd/configWidgetUI.ui b/kscd/configWidgetUI.ui index 83f9aca0..6cf302cc 100644 --- a/kscd/configWidgetUI.ui +++ b/kscd/configWidgetUI.ui @@ -1,13 +1,13 @@ configWidgetUI - + configWidgetUI true - + 0 0 @@ -19,7 +19,7 @@ unnamed - + groupBox1 @@ -30,7 +30,7 @@ unnamed - + textLabel2 @@ -52,7 +52,7 @@ The background color that will be used for the LCD display. - + kcfg_Docking @@ -63,7 +63,7 @@ When this option is selected an icon will appear in the system tray. Note that KsCD will <i>not</i> quit when the window is closed if a system tray icon is displayed. You may quit KsCD by clicking the Quit button or right-clicking on the system tray icon and selecting the appropriate entry. - + kcfg_TrackAnnouncement @@ -84,14 +84,14 @@ Expanding - + 292 20 - + textLabel1 @@ -123,7 +123,7 @@ - + textLabel1_2 @@ -136,7 +136,7 @@ - + buttonGroup1 @@ -167,7 +167,7 @@ This option controls the number of seconds KsCD will skip when the skip forwards or backwards buttons are pressed. - + textLabel3 @@ -178,7 +178,7 @@ kcfg_SkipDelta - + kcfg_Autoplay @@ -189,7 +189,7 @@ When this option is selected the CD will start playing automatically upon being inserted into the CD-ROM. - + kcfg_EjectOnFinish @@ -200,7 +200,7 @@ When this option is selected the CD will automatically eject when it is finished. - + kcfg_StopExit @@ -221,7 +221,7 @@ Expanding - + 171 81 @@ -230,7 +230,7 @@ - + groupBox3 @@ -249,7 +249,7 @@ The CD-ROM device to use when playing CDs. This will typically look something like "/dev/cdrom". To have KsCD autodetect your CD-ROM, leave this field empty. - + textLabel5 @@ -260,7 +260,7 @@ kcfg_AudioDevice - + kcfg_DigitalPlayback @@ -277,7 +277,7 @@ When this option is selected KsCD will attempt to play the CD using direct digital playback. This option is useful if the CD-ROM is not connected directly to the sound output on the computer. Note that digital playback consumes more system resources than the normal method of playback. - + textLabel4 @@ -293,7 +293,7 @@ kcfg_AudioDevice - + audioSystemFrame @@ -306,7 +306,7 @@ - + groupBox9 @@ -317,7 +317,7 @@ unnamed - + kcfg_SelectEncoding @@ -328,7 +328,7 @@ When this option is selected, you have the ability to select encoding for the results of a CDDB request. The standard describes CDDB results as being strictly Latin1. This is not true, as non-English speaking users often use other 8-bit encodings. - + AUTO @@ -401,7 +401,7 @@ Expanding - + 20 45 @@ -445,11 +445,11 @@ kcfg_DigitalPlayback kcfg_AudioDevice - + kcfg_DigitalPlayback_toggled( bool ) kcfg_SelectEncoding_toggled(bool) - - + + kcolorbutton.h kfontrequester.h diff --git a/kscd/docking.cpp b/kscd/docking.cpp index 705c2ca8..ca85b914 100644 --- a/kscd/docking.cpp +++ b/kscd/docking.cpp @@ -38,13 +38,13 @@ #include -DockWidget::DockWidget( KSCD* parent, const char *name) - : KSystemTray( parent, name ) +DockWidget::DockWidget( KSCD* tqparent, const char *name) + : KSystemTray( tqparent, name ) { m_popup = 0; setPixmap( loadIcon("cdsmall") ); - KActionCollection* actionCollection = parent->actionCollection(); + KActionCollection* actionCollection = tqparent->actionCollection(); m_backAction = actionCollection->action("Previous"); m_forwardAction = actionCollection->action("Next"); m_backPix = loadIcon("player_start"); @@ -53,11 +53,11 @@ DockWidget::DockWidget( KSCD* parent, const char *name) // popup menu for right mouse button TQPopupMenu* popup = contextMenu(); - popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_play", KIcon::Small), i18n("Play/Pause"), parent, TQT_SLOT(playClicked())); - popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_stop", KIcon::Small), i18n("Stop"), parent, TQT_SLOT(stopClicked())); - popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_end", KIcon::Small), i18n("Next"), parent, TQT_SLOT(nextClicked())); - popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_start", KIcon::Small), i18n("Previous"), parent, TQT_SLOT(prevClicked())); - popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_eject", KIcon::Small), i18n("Eject"), parent, TQT_SLOT(ejectClicked())); + popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_play", KIcon::Small), i18n("Play/Pause"), tqparent, TQT_SLOT(playClicked())); + popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_stop", KIcon::Small), i18n("Stop"), tqparent, TQT_SLOT(stopClicked())); + popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_end", KIcon::Small), i18n("Next"), tqparent, TQT_SLOT(nextClicked())); + popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_start", KIcon::Small), i18n("Previous"), tqparent, TQT_SLOT(prevClicked())); + popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_eject", KIcon::Small), i18n("Eject"), tqparent, TQT_SLOT(ejectClicked())); TQToolTip::add(this, kapp->aboutData()->programName()); } @@ -120,10 +120,10 @@ void DockWidget::setToolTip(const TQString& text) void DockWidget::wheelEvent(TQWheelEvent *e) { - if (e->orientation() == Horizontal) + if (e->orientation() ==Qt::Horizontal) return; - KSCD* kscd = dynamic_cast(parent()); + KSCD* kscd = dynamic_cast(tqparent()); if (kscd == 0) return; diff --git a/kscd/docking.h b/kscd/docking.h index 52fceebd..2ffc431a 100644 --- a/kscd/docking.h +++ b/kscd/docking.h @@ -46,9 +46,10 @@ class KPassivePopup; class DockWidget : public KSystemTray { Q_OBJECT + TQ_OBJECT public: - DockWidget( KSCD* parent, const char *name=0); + DockWidget( KSCD* tqparent, const char *name=0); ~DockWidget(); public slots: diff --git a/kscd/kcompactdisc.cpp b/kscd/kcompactdisc.cpp index c412a932..83a9c532 100644 --- a/kscd/kcompactdisc.cpp +++ b/kscd/kcompactdisc.cpp @@ -98,13 +98,13 @@ const TQString KCompactDisc::defaultDevice = DEFAULT_CD_DEVICE; const unsigned KCompactDisc::missingDisc = (unsigned)-1; KCompactDisc::KCompactDisc(InformationMode infoMode) : - m_device(TQString::null), + m_device(TQString()), m_status(0), - m_previousStatus(123456), + m_previoustqStatus(123456), m_discId(missingDisc), m_previousDiscId(0), - m_artist(TQString::null), - m_title(TQString::null), + m_artist(TQString()), + m_title(TQString()), m_track(0), m_previousTrack(99999999), m_infoMode(infoMode) @@ -143,7 +143,7 @@ unsigned KCompactDisc::discPosition() const return cur_pos_abs * 1000 - FRAMES_TO_MS(m_trackStartFrames[0]); } -TQString KCompactDisc::discStatus(int status) +TQString KCompactDisc::disctqStatus(int status) { TQString message; @@ -280,14 +280,14 @@ bool KCompactDisc::setDevice( kdDebug() << "Device change: " << (digitalPlayback ? "WM_CDDA, " : "WM_CDIN, ") << m_device << ", " - << (digitalPlayback ? audioSystem : TQString::null) << ", " - << (digitalPlayback ? audioDevice : TQString::null) << ", status: " - << discStatus(status) << endl; + << (digitalPlayback ? audioSystem : TQString()) << ", " + << (digitalPlayback ? audioDevice : TQString()) << ", status: " + << disctqStatus(status) << endl; if (status < 0) { // Severe (OS-level) error. - m_device = TQString::null; + m_device = TQString(); } else { @@ -295,19 +295,19 @@ bool KCompactDisc::setDevice( setVolume(volume); } - m_previousStatus = m_status = wm_cd_status(); + m_previoustqStatus = m_status = wm_cd_status(); if (m_infoMode == Asynchronous) timerExpired(); else timer.start(1000, true); - return m_device != TQString::null; + return m_device != TQString(); } void KCompactDisc::setVolume(unsigned volume) { int status = wm_cd_volume(volume, WM_BALANCE_SYMMETRED); - kdDebug() << "Volume change: " << volume << ", status: " << discStatus(status) << endl; + kdDebug() << "Volume change: " << volume << ", status: " << disctqStatus(status) << endl; } void KCompactDisc::stop() @@ -323,7 +323,7 @@ const TQString &KCompactDisc::trackArtist() const const TQString &KCompactDisc::trackArtist(unsigned track) const { if (NO_DISC || !TRACK_VALID(track)) - return TQString::null; + return TQString(); return m_trackArtists[track - 1]; } @@ -357,7 +357,7 @@ const TQString &KCompactDisc::trackTitle() const const TQString &KCompactDisc::trackTitle(unsigned track) const { if (NO_DISC || !TRACK_VALID(track)) - return TQString::null; + return TQString(); return m_trackTitles[track - 1]; } @@ -378,11 +378,11 @@ void KCompactDisc::timerExpired() { m_status = wm_cd_status(); - if (WM_CDS_NO_DISC(m_status) || (m_device == TQString::null)) + if (WM_CDS_NO_DISC(m_status) || (m_device == TQString())) { - if (m_previousStatus != m_status) + if (m_previoustqStatus != m_status) { - m_previousStatus = m_status; + m_previoustqStatus = m_status; m_discId = missingDisc; m_previousDiscId = 0; m_trackArtists.clear(); @@ -428,7 +428,7 @@ void KCompactDisc::timerExpired() else { m_trackArtists.append(i18n("Unknown Artist")); - m_trackTitles.append(i18n("Track %1").arg(TQString::number(i).rightJustify(2, '0'))); + m_trackTitles.append(i18n("Track %1").tqarg(TQString::number(i).rightJustify(2, '0'))); } // FIXME: KDE4 // track.length = cd->trk[i - 1].length; @@ -450,12 +450,12 @@ void KCompactDisc::timerExpired() } if (isPlaying()) { - m_previousStatus = m_status; + m_previoustqStatus = m_status; // Update the current playing position. emit trackPlaying(m_track, trackPosition()); } else - if (m_previousStatus != m_status) + if (m_previoustqStatus != m_status) { // If we are not playing, then we are either paused, or stopped. switch (m_status) @@ -467,7 +467,7 @@ void KCompactDisc::timerExpired() emit trayOpening(); break; default: - if (m_previousStatus == WM_CDM_PLAYING || m_previousStatus == WM_CDM_PAUSED + if (m_previoustqStatus == WM_CDM_PLAYING || m_previoustqStatus == WM_CDM_PAUSED && m_status == WM_CDM_STOPPED) { emit discStopped(); @@ -475,7 +475,7 @@ void KCompactDisc::timerExpired() break; } - m_previousStatus = m_status; + m_previoustqStatus = m_status; } } diff --git a/kscd/kcompactdisc.h b/kscd/kcompactdisc.h index f71189a8..10d5eabb 100644 --- a/kscd/kcompactdisc.h +++ b/kscd/kcompactdisc.h @@ -34,7 +34,7 @@ * @see #discChanged(): A disc was inserted or removed. * @see #trayOpening(): A disc is being removed. * - * The progress of playout is modelled by these signals: + * The progress of ptqlayout is modelled by these signals: * * @see #trackPlaying(): A track started playing, or is still playing. * @see #trackPaused(): A track was paused. @@ -44,9 +44,10 @@ * positive numbers; zero is not a valid track number. */ class KCompactDisc : - public QObject + public TQObject { Q_OBJECT + TQ_OBJECT public: enum InformationMode { @@ -63,12 +64,12 @@ public: void eject(); /** - * Start playout at given position of track. + * Start ptqlayout at given position of track. */ void play(unsigned startTrack = 0, unsigned startTrackPosition = 0, unsigned endTrack = 0); /** - * Pause/resume playout. + * Pause/resume ptqlayout. */ void pause(); @@ -89,13 +90,13 @@ public: const TQString &device = defaultDevice, unsigned volume = 50, bool digitalPlayback = true, - const TQString &audioSystem = TQString::null, - const TQString &audioDevice = TQString::null); + const TQString &audioSystem = TQString(), + const TQString &audioDevice = TQString()); void setVolume(unsigned volume); /** - * Stop playout. + * Stop ptqlayout. */ void stop(); @@ -280,7 +281,7 @@ private: TQTimer timer; TQString m_device; int m_status; - int m_previousStatus; + int m_previoustqStatus; unsigned m_discId; unsigned m_previousDiscId; TQString m_artist; @@ -291,8 +292,8 @@ private: TQStringList m_trackTitles; unsigned m_track; unsigned m_previousTrack; - void checkDeviceStatus(); - TQString discStatus(int status); + void checkDevicetqStatus(); + TQString disctqStatus(int status); class KCompactDiscPrivate *d; InformationMode m_infoMode; diff --git a/kscd/kscd.cpp b/kscd/kscd.cpp index bb2b0ae5..ef944999 100644 --- a/kscd/kscd.cpp +++ b/kscd/kscd.cpp @@ -89,9 +89,9 @@ bool stoppedByUser = false; The GUI part *****************************************************************************/ -KSCD::KSCD( TQWidget *parent, const char *name ) +KSCD::KSCD( TQWidget *tqparent, const char *name ) : DCOPObject("CDPlayer"), - kscdPanelDlg( parent, name, Qt::WDestructiveClose ), + kscdPanelDlg( tqparent, name, TQt::WDestructiveClose ), configDialog(0L), cddialog(0L), //!!!! jumpToTrack(0L), @@ -103,7 +103,7 @@ KSCD::KSCD( TQWidget *parent, const char *name ) random_current = random_list.begin(); cddb = new KCDDB::Client(); - connect(cddb, TQT_SIGNAL(finished(CDDB::Result)), this, TQT_SLOT(lookupCDDBDone(CDDB::Result))); + connect(cddb, TQT_SIGNAL(finished(CDDB::Result)), TQT_TQOBJECT(this), TQT_SLOT(lookupCDDBDone(CDDB::Result))); #if defined(BUILD_CDDA) audio_systems_list @@ -139,11 +139,11 @@ KSCD::KSCD( TQWidget *parent, const char *name ) /* FIXME check for return value */ setDevicePaths(/*Prefs::cdDevice(), Prefs::audioSystem(), Prefs::audioDevice()*/); - connect(m_cd, TQT_SIGNAL(trackPlaying(unsigned, unsigned)), this, TQT_SLOT(trackUpdate(unsigned, unsigned))); - connect(m_cd, TQT_SIGNAL(trackPaused(unsigned, unsigned)), this, TQT_SLOT(trackUpdate(unsigned, unsigned))); - connect(m_cd, TQT_SIGNAL(trackChanged(unsigned, unsigned)), this, TQT_SLOT(trackChanged(unsigned, unsigned))); - connect(m_cd, TQT_SIGNAL(discStopped()), this, TQT_SLOT(discStopped())); - connect(m_cd, TQT_SIGNAL(discChanged(unsigned)), this, TQT_SLOT(discChanged(unsigned))); + connect(m_cd, TQT_SIGNAL(trackPlaying(unsigned, unsigned)), TQT_TQOBJECT(this), TQT_SLOT(trackUpdate(unsigned, unsigned))); + connect(m_cd, TQT_SIGNAL(trackPaused(unsigned, unsigned)), TQT_TQOBJECT(this), TQT_SLOT(trackUpdate(unsigned, unsigned))); + connect(m_cd, TQT_SIGNAL(trackChanged(unsigned, unsigned)), TQT_TQOBJECT(this), TQT_SLOT(trackChanged(unsigned, unsigned))); + connect(m_cd, TQT_SIGNAL(discStopped()), TQT_TQOBJECT(this), TQT_SLOT(discStopped())); + connect(m_cd, TQT_SIGNAL(discChanged(unsigned)), TQT_TQOBJECT(this), TQT_SLOT(discChanged(unsigned))); connect( &queryledtimer, TQT_SIGNAL(timeout()), TQT_SLOT(togglequeryled()) ); connect( &titlelabeltimer, TQT_SIGNAL(timeout()), TQT_SLOT(titlelabeltimeout()) ); connect( &cycletimer, TQT_SIGNAL(timeout()), TQT_SLOT(cycletimeout()) ); @@ -160,8 +160,8 @@ KSCD::KSCD( TQWidget *parent, const char *name ) connect( songListCB, TQT_SIGNAL(activated(int)), TQT_SLOT(trackSelected(int))); connect( shufflePB, TQT_SIGNAL(clicked()), TQT_SLOT(randomSelected())); connect( cddbPB, TQT_SIGNAL(clicked()), TQT_SLOT(CDDialogSelected())); - connect(kapp, TQT_SIGNAL(kdisplayPaletteChanged()), this, TQT_SLOT(setColors())); - connect(kapp, TQT_SIGNAL(iconChanged(int)), this, TQT_SLOT(setIcons())); + connect(kapp, TQT_SIGNAL(kdisplayPaletteChanged()), TQT_TQOBJECT(this), TQT_SLOT(setColors())); + connect(kapp, TQT_SIGNAL(iconChanged(int)), TQT_TQOBJECT(this), TQT_SLOT(setIcons())); TQToolTip::remove(songListCB); TQToolTip::add(songListCB, i18n("Track list")); @@ -170,24 +170,24 @@ KSCD::KSCD( TQWidget *parent, const char *name ) m_actions = new KActionCollection(this); KAction* action; - action = new KAction(i18n("Play/Pause"), Key_P, this, TQT_SLOT(playClicked()), m_actions, "Play/Pause"); - action = new KAction(i18n("Stop"), Key_S, this, TQT_SLOT(stopClicked()), m_actions, "Stop"); - action = new KAction(i18n("Previous"), Key_B, this, TQT_SLOT(prevClicked()), m_actions, "Previous"); - action = new KAction(i18n("Next"), Key_N, this, TQT_SLOT(nextClicked()), m_actions, "Next"); - action = KStdAction::quit(this, TQT_SLOT(quitClicked()), m_actions); - action = KStdAction::keyBindings(this, TQT_SLOT(configureKeys()), m_actions, "options_configure_shortcuts"); - action = KStdAction::keyBindings(this, TQT_SLOT(configureGlobalKeys()), m_actions, "options_configure_globals"); - action = KStdAction::preferences(this, TQT_SLOT(showConfig()), m_actions); - action = new KAction(i18n("Loop"), Key_L, this, TQT_SLOT(loopClicked()), m_actions, "Loop"); - action = new KAction(i18n("Eject"), CTRL + Key_E, this, TQT_SLOT(ejectClicked()), m_actions, "Eject"); - action = new KAction(i18n("Increase Volume"), Key_Plus, this, TQT_SLOT(incVolume()), m_actions, "IncVolume"); + action = new KAction(i18n("Play/Pause"), Key_P, TQT_TQOBJECT(this), TQT_SLOT(playClicked()), m_actions, "Play/Pause"); + action = new KAction(i18n("Stop"), Key_S, TQT_TQOBJECT(this), TQT_SLOT(stopClicked()), m_actions, "Stop"); + action = new KAction(i18n("Previous"), Key_B, TQT_TQOBJECT(this), TQT_SLOT(prevClicked()), m_actions, "Previous"); + action = new KAction(i18n("Next"), Key_N, TQT_TQOBJECT(this), TQT_SLOT(nextClicked()), m_actions, "Next"); + action = KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(quitClicked()), m_actions); + action = KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(configureKeys()), m_actions, "options_configure_shortcuts"); + action = KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(configureGlobalKeys()), m_actions, "options_configure_globals"); + action = KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(showConfig()), m_actions); + action = new KAction(i18n("Loop"), Key_L, TQT_TQOBJECT(this), TQT_SLOT(loopClicked()), m_actions, "Loop"); + action = new KAction(i18n("Eject"), CTRL + Key_E, TQT_TQOBJECT(this), TQT_SLOT(ejectClicked()), m_actions, "Eject"); + action = new KAction(i18n("Increase Volume"), Key_Plus, TQT_TQOBJECT(this), TQT_SLOT(incVolume()), m_actions, "IncVolume"); KShortcut increaseVolume = action->shortcut(); increaseVolume.append( KKey( Key_Equal ) ); action->setShortcut( increaseVolume ); - action = new KAction(i18n("Decrease Volume"), Key_Minus, this, TQT_SLOT(decVolume()), m_actions, "DecVolume"); - action = new KAction(i18n("Options"), CTRL + Key_T, this, TQT_SLOT(showConfig()), m_actions, "Options"); - action = new KAction(i18n("Shuffle"), Key_R, this, TQT_SLOT(randomSelected()), m_actions, "Shuffle"); - action = new KAction(i18n("CDDB"), CTRL + Key_D, this, TQT_SLOT(CDDialogSelected()), m_actions, "CDDB"); + action = new KAction(i18n("Decrease Volume"), Key_Minus, TQT_TQOBJECT(this), TQT_SLOT(decVolume()), m_actions, "DecVolume"); + action = new KAction(i18n("Options"), CTRL + Key_T, TQT_TQOBJECT(this), TQT_SLOT(showConfig()), m_actions, "Options"); + action = new KAction(i18n("Shuffle"), Key_R, TQT_TQOBJECT(this), TQT_SLOT(randomSelected()), m_actions, "Shuffle"); + action = new KAction(i18n("CDDB"), CTRL + Key_D, TQT_TQOBJECT(this), TQT_SLOT(CDDialogSelected()), m_actions, "CDDB"); m_actions->readShortcutSettings("Shortcuts"); @@ -210,9 +210,9 @@ KSCD::KSCD( TQWidget *parent, const char *name ) setDocking(Prefs::docking()); - setFocusPolicy(TQWidget::NoFocus); + setFocusPolicy(TQ_NoFocus); - songListCB->setSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Fixed); + songListCB->tqsetSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Fixed); adjustSize(); setFixedHeight(this->height()); } // KSCD @@ -227,25 +227,25 @@ KSCD::~KSCD() void KSCD::initGlobalShortcuts() { - m_globalAccel = new KGlobalAccel( this ); + m_globalAccel = new KGlobalAccel( TQT_TQOBJECT(this) ); //Definition of global shortcuts is based on 'local' shortcuts which follow //the WIN key. m_globalAccel->insert("Next", i18n("Next"), 0, KKey("WIN+N"), KKey("WIN+Right"), - this, TQT_SLOT(nextClicked())); + TQT_TQOBJECT(this), TQT_SLOT(nextClicked())); //NOTE: WIN+B collidates with amarok's default global shortcut. m_globalAccel->insert("Previous", i18n("Previous"), 0, KKey("WIN+B"), KKey("WIN+Left"), - this, TQT_SLOT(prevClicked())); + TQT_TQOBJECT(this), TQT_SLOT(prevClicked())); m_globalAccel->insert("Play/Pause", i18n("Play/Pause"), 0, KKey("WIN+P"), 0, - this, TQT_SLOT(playClicked())); + TQT_TQOBJECT(this), TQT_SLOT(playClicked())); m_globalAccel->insert("Stop", i18n("Stop"), 0, KKey("WIN+S"), 0, - this, TQT_SLOT(stopClicked())); + TQT_TQOBJECT(this), TQT_SLOT(stopClicked())); m_globalAccel->insert("IncVolume", i18n("Increase Volume"), 0, KKey("WIN+Plus"), KKey("WIN+Up"), - this, TQT_SLOT(incVolume())); + TQT_TQOBJECT(this), TQT_SLOT(incVolume())); m_globalAccel->insert("DecVolume", i18n("Decrease Volume"), 0, KKey("WIN+Minus"), KKey("WIN+Down"), - this, TQT_SLOT(decVolume())); + TQT_TQOBJECT(this), TQT_SLOT(decVolume())); m_globalAccel->insert("Shuffle", i18n("Shuffle"), 0, KKey("WIN+R"), 0, - this, TQT_SLOT(incVolume())); + TQT_TQOBJECT(this), TQT_SLOT(incVolume())); m_globalAccel->setConfigGroup( "GlobalShortcuts" ); m_globalAccel->readSettings( kapp->config() ); @@ -312,7 +312,7 @@ void KSCD::drawPanel() trackTimeLED[u]->setLEDoffColor(Prefs::backColor()); trackTimeLED[u]->setLEDColor(Prefs::ledColor(), Prefs::backColor()); trackTimeLED[u]->setGeometry(2 + u * 18, D, 23, 30); - connect(trackTimeLED[u], TQT_SIGNAL(clicked()), this, TQT_SLOT(cycleplaytimemode())); + connect(trackTimeLED[u], TQT_SIGNAL(clicked()), TQT_TQOBJECT(this), TQT_SLOT(cycleplaytimemode())); } setLEDs(-1); @@ -550,7 +550,7 @@ void KSCD::trackChanged(unsigned track, unsigned trackLength) justTheName = justTheName.right(justTheName.length() - 4); TQToolTip::remove(songListCB); - TQToolTip::add(songListCB, i18n("Current track: %1").arg(justTheName)); + TQToolTip::add(songListCB, i18n("Current track: %1").tqarg(justTheName)); } timeSlider->blockSignals(true); timeSlider->setRange(0, trackLength ? trackLength - 1 : 0); @@ -688,7 +688,7 @@ void KSCD::randomSelected() { setShuffle(Prefs::randomPlay()?0:1); - /* FIXME this helps us to display "Random" in Status line + /* FIXME this helps us to display "Random" in tqStatus line should it maybe to be replaced with symbol "RAND" or something others */ statuslabel->setText(Prefs::randomPlay()?i18n("Random"):i18n("Play")); } // randomSelected @@ -734,7 +734,7 @@ void KSCD::showConfig() configDialog = new KConfigDialog(this, "settings", Prefs::self()); - configDialog->setHelp(TQString::null); + configDialog->setHelp(TQString()); confWidget = new configWidget(this, 0, "Kscd"); @@ -765,7 +765,7 @@ void KSCD::showConfig() updateConfigDialog(confWidget); - connect(configDialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(configDone())); + connect(configDialog, TQT_SIGNAL(settingsChanged()), TQT_TQOBJECT(this), TQT_SLOT(configDone())); configDialog -> show(); } // showConfig() @@ -800,7 +800,7 @@ void KSCD::setDevicePaths() { // This device did not seem usable. TQString str = i18n("CD-ROM read or access error (or no audio disc in drive).\n"\ - "Please make sure you have access permissions to:\n%1").arg( + "Please make sure you have access permissions to:\n%1").tqarg( KCompactDisc::urlToDevice(Prefs::cdDevice())); KMessageBox::error(this, str, i18n("Error")); } @@ -814,7 +814,7 @@ void KSCD::setDocking(bool dock) if (!m_dockWidget) { m_dockWidget = new DockWidget(this, "dockw"); - connect(m_dockWidget, TQT_SIGNAL(quitSelected()), this, TQT_SLOT(quitClicked())); + connect(m_dockWidget, TQT_SIGNAL(quitSelected()), TQT_TQOBJECT(this), TQT_SLOT(quitClicked())); } m_dockWidget->show(); @@ -881,7 +881,7 @@ void KSCD::make_random_list() { do { selected = 1 + (int) randSequence.getLong(m_cd->tracks()); - rejected = (random_list.find(selected) != random_list.end()); + rejected = (random_list.tqfind(selected) != random_list.end()); } while(rejected == true); random_list.append(selected); } @@ -1211,8 +1211,8 @@ void KSCD::lookupCDDBDone(CDDB::Result result) CDInfoList::iterator it; TQStringList list; for ( it = cddb_info.begin(); it != cddb_info.end(); ++it ) { - list.append( TQString("%1, %2, %3").arg((*it).artist).arg((*it).title) - .arg((*it).genre)); + list.append( TQString("%1, %2, %3").tqarg((*it).artist).tqarg((*it).title) + .tqarg((*it).genre)); } bool ok(false); @@ -1245,7 +1245,7 @@ void KSCD::lookupCDDBDone(CDDB::Result result) void KSCD::setCDInfo(KCDDB::CDInfo info) { // Some sanity provisions to ensure that the number of records matches what - // the CD actually contains. + // the CD actually tqcontains. while (info.trackInfoList.count() < cddbInfo.trackInfoList.count()) { info.trackInfoList.append(KCDDB::TrackInfo()); @@ -1313,7 +1313,7 @@ int KSCD::currentPosition() return m_cd->trackPosition(); } -int KSCD::getStatus() +int KSCD::gettqStatus() { if (m_cd->isPlaying()) return 2; @@ -1419,62 +1419,62 @@ void KSCD::information(int i) { case 0: str = TQString("http://musicmoz.org/cgi-bin/ext.cgi?artist=%1") - .arg(encodedArtist); + .tqarg(encodedArtist); break; case 1: str = TQString("http://ubl.artistdirect.com/cgi-bin/gx.cgi/AppLogic+Search?select=MusicArtist&searchstr=%1&searchtype=NormalSearch") - .arg(encodedArtist); + .tqarg(encodedArtist); break; case 2: str = TQString("http://www.cduniverse.com/cgi-bin/cdubin.exe/rlinka/ean=%1") - .arg(encodedArtist); + .tqarg(encodedArtist); break; case 3: str = TQString("http://www.alltheweb.com/search?cat=web&q=%1") - .arg(encodedArtist); + .tqarg(encodedArtist); break; case 4: str = TQString("http://altavista.com/web/results?q=%1&kgs=0&kls=1&avkw=xytx") - .arg(encodedArtist); + .tqarg(encodedArtist); break; case 5: str = TQString("http://msxml.excite.com/_1_2UDOUB70SVHVHR__info.xcite/dog/results?otmpl=dog/webresults.htm&qkw=%1&qcat=web&qk=20&top=1&start=&ver=14060") - .arg(encodedArtist); + .tqarg(encodedArtist); break; case 6: str = TQString("http://www.google.com/search?q=%1") - .arg(encodedArtist); + .tqarg(encodedArtist); break; case 7: str = TQString("http://groups.google.com/groups?oi=djq&as_q=%1&num=20") - .arg(encodedArtist); + .tqarg(encodedArtist); break; case 8: str = TQString("http://www.hotbot.com/default.asp?prov=Inktomi&query=%1&ps=&loc=searchbox&tab=web") - .arg(encodedArtist); + .tqarg(encodedArtist); break; case 9: str = TQString("http://search.lycos.com/default.asp?lpv=1&loc=searchhp&tab=web&query=%1") - .arg(encodedArtist); + .tqarg(encodedArtist); break; case 10: str = TQString("http://search.dmoz.org/cgi-bin/search?search=%1") - .arg(encodedArtist); + .tqarg(encodedArtist); break; case 11: str = TQString("http://search.yahoo.com/bin/search?p=%1") - .arg(encodedArtist); + .tqarg(encodedArtist); break; default: @@ -1488,7 +1488,7 @@ void KSCD::information(int i) /** * Save state on session termination */ -bool KSCD::saveState(QSessionManager& /*sm*/) +bool KSCD::saveState(TQSessionManager& /*sm*/) { writeSettings(); KConfig* config = KApplication::kApplication()->sessionConfig(); @@ -1506,7 +1506,7 @@ void KSCD::keyPressEvent(TQKeyEvent* e) bool isNum; int value = e->text().toInt(&isNum); - if (e->key() == Qt::Key_F1) + if (e->key() == TQt::Key_F1) { kapp->invokeHelp(); } @@ -1540,7 +1540,7 @@ void KSCD::jumpTracks() TQString KSCD::currentTrackTitle() { int track = m_cd->track(); - return (track > -1) ? cddbInfo.trackInfoList[track-1].title : TQString::null; + return (track > -1) ? cddbInfo.trackInfoList[track-1].title : TQString(); } TQString KSCD::currentAlbum() @@ -1563,13 +1563,13 @@ TQStringList KSCD::trackList() return tracks; } -void KSCD::populateSongList(TQString infoStatus) +void KSCD::populateSongList(TQString infotqStatus) { // set the artist and title labels as well as the dock tooltip. - if (!infoStatus.isEmpty()) - artistlabel->setText(infoStatus); + if (!infotqStatus.isEmpty()) + artistlabel->setText(infotqStatus); else - artistlabel->setText(TQString("%1 - %2").arg(cddbInfo.artist, cddbInfo.title)); + artistlabel->setText(TQString("%1 - %2").tqarg(cddbInfo.artist, cddbInfo.title)); songListCB->clear(); for (unsigned i = 0; i < cddbInfo.trackInfoList.count(); i++) diff --git a/kscd/kscd.h b/kscd/kscd.h index f4903590..c6f2a8c1 100644 --- a/kscd/kscd.h +++ b/kscd/kscd.h @@ -72,6 +72,7 @@ typedef TQValueList RandomList; class KSCD : public kscdPanelDlg, public KSessionManaged, virtual public DCOPObject { Q_OBJECT +// TQ_OBJECT K_DCOP // time display modes @@ -101,16 +102,16 @@ k_dcop: int currentTrack(); int currentTrackLength(); int currentPosition(); - int getStatus(); + int gettqStatus(); TQString currentTrackTitle(); TQString currentAlbum(); TQString currentArtist(); TQStringList trackList(); public: - KSCD( TQWidget *parent = 0, const char *name = 0 ); + KSCD( TQWidget *tqparent = 0, const char *name = 0 ); ~KSCD(); - virtual bool saveState(QSessionManager& sm); + virtual bool saveState(TQSessionManager& sm); void setDocking(bool dock); bool digitalPlayback(); @@ -174,7 +175,7 @@ protected: void calculateDisplayedTime(); void calculateDisplayedTime(int sec); void setSongListTo(int whichTrack); - void populateSongList(TQString infoStatus); + void populateSongList(TQString infotqStatus); void updatePlayPB(bool playing); void updateConfigDialog(configWidget* widget); diff --git a/kscd/kscdmagic/README b/kscd/kscdmagic/README index 64af4f6f..b2366190 100644 --- a/kscd/kscdmagic/README +++ b/kscd/kscdmagic/README @@ -15,14 +15,14 @@ Introduction This is a program for representing sounds visually from a CD or line input or piped from another program. It goes beyond the usual oscilliscope style program by combining an FFT and stereo positioning information to -give a two dimensional display. Some of the shapes I have observed are: +give a two dimensional display. Some of the tqshapes I have observed are: * Drums: clouds of color, fairly high * Clean guitar: several horizontal lines, low down * Rough guitar: a cloud, low down * Trumpet: Lots of horizontal lines everywhere * Flute: A single horizontal line, low down * Voice: A vertical line with some internal structure - * Synthesizer: All kinds of weird shapes! + * Synthesizer: All kinds of weird tqshapes! Synaesthesia can run in a window in X or full screen using SVGAlib. @@ -139,7 +139,7 @@ Changes Support for SDL. 2.0 - Bug fixes: Fixed problem in xlib.c that caused occasional segfaults, several endianness problems fixed. - New effects: Wave, heat, diamond shaped points. + New effects: Wave, heat, diamond tqshaped points. Piping sound now longer requires the twiddle factor. Yet another interface redesign. Partial support for LinuxPPC (pipe mode only) diff --git a/kscd/kscdmagic/syna.h b/kscd/kscdmagic/syna.h index d359a8c2..4d35e3e0 100644 --- a/kscd/kscdmagic/syna.h +++ b/kscd/kscdmagic/syna.h @@ -160,7 +160,7 @@ enum SoundSource { SourceLine, SourceCD, SourcePipe }; void cdOpen(char *cdromName); void cdClose(void); -void cdGetStatus(int &track, int &frames, SymbolID &state); +void cdGettqStatus(int &track, int &frames, SymbolID &state); void cdPlay(int trackFrame, int endFrame=-1); void cdStop(void); void cdPause(void); diff --git a/kscd/kscdmagic/xlib.c b/kscd/kscdmagic/xlib.c index b28a0650..6e1c1ed2 100644 --- a/kscd/kscdmagic/xlib.c +++ b/kscd/kscdmagic/xlib.c @@ -320,12 +320,12 @@ xdisplay *xalloc_display(const char *s, int xHint, int yHint, int x, int y, xlib xd->attributes->background_pixel = BlackPixel(xd->display, xd->screen); xd->attributes->border_pixel = BlackPixel(xd->display, xd->screen); - xd->attributes->event_mask = ButtonPressMask | StructureNotifyMask | ButtonReleaseMask | ButtonMotionMask | KeyPressMask | ExposureMask | KeyReleaseMask; + xd->attributes->event_tqmask = ButtonPressMask | StructureNotifyMask | ButtonReleaseMask | ButtonMotionMask | KeyPressMask | ExposureMask | KeyReleaseMask; xd->attributes->override_redirect = False; - xd->attr_mask = CWBackPixel | CWBorderPixel | CWEventMask; + xd->attr_tqmask = CWBackPixel | CWBorderPixel | CWEventMask; xd->classX = InputOutput; xd->xcolor.n = 0; - xd->parent_window = RootWindow(xd->display, xd->screen); + xd->tqparent_window = RootWindow(xd->display, xd->screen); defaultvisual = DefaultVisual(xd->display, xd->screen); xd->params = params; if (!params->usedefault) { @@ -403,10 +403,10 @@ xdisplay *xalloc_display(const char *s, int xHint, int yHint, int x, int y, xlib xd->lasty = 0; xd->font_struct = (XFontStruct *) NULL; - xd->window = XCreateWindow(xd->display, xd->parent_window, xHint, yHint, + xd->window = XCreateWindow(xd->display, xd->tqparent_window, xHint, yHint, xd->width, xd->height, xd->border_width, vis.depth, xd->classX, xd->visual, - xd->attr_mask, xd->attributes); + xd->attr_tqmask, xd->attributes); if (!xd->fixedcolormap && params->privatecolormap) { unsigned long pixels[256]; int i; diff --git a/kscd/kscdmagic/xlib.h b/kscd/kscdmagic/xlib.h index 73113292..fa079775 100644 --- a/kscd/kscdmagic/xlib.h +++ b/kscd/kscdmagic/xlib.h @@ -58,7 +58,7 @@ typedef struct { int privatecolormap; xlibparam *params; Display *display; - Window parent_window; + Window tqparent_window; Window window; unsigned int width, height; unsigned int border_width; @@ -66,9 +66,9 @@ typedef struct { int depth; unsigned int classX; Visual *visual; - unsigned long valuemask; + unsigned long valuetqmask; XSetWindowAttributes *attributes; - unsigned long attr_mask; + unsigned long attr_tqmask; XSizeHints sizehints; int screen; const char *window_name; diff --git a/kscd/ledlamp.cpp b/kscd/ledlamp.cpp index 96675921..93aa8000 100644 --- a/kscd/ledlamp.cpp +++ b/kscd/ledlamp.cpp @@ -26,7 +26,7 @@ #include "ledlamp.h" #include "ledlamp.moc" -LedLamp::LedLamp(TQWidget *parent, Type t) : TQFrame(parent), +LedLamp::LedLamp(TQWidget *tqparent, Type t) : TQFrame(tqparent), w( 10 ), h( 7 ), dx( 4 ) { // Make sure we're in a sane state diff --git a/kscd/ledlamp.h b/kscd/ledlamp.h index af37edc7..d7673998 100644 --- a/kscd/ledlamp.h +++ b/kscd/ledlamp.h @@ -26,14 +26,15 @@ #include -class LedLamp : public QFrame +class LedLamp : public TQFrame { Q_OBJECT + TQ_OBJECT public: enum Type { Rect, Loop }; - LedLamp(TQWidget *parent=0, Type t=Rect); + LedLamp(TQWidget *tqparent=0, Type t=Rect); enum State { On, Off }; @@ -41,10 +42,10 @@ public: State state() const { return s; } - void setState(State state) { s= state; repaint(false); } + void setState(State state) { s= state; tqrepaint(false); } - void toggleState() { if (s == On) s= Off; else if (s == Off) s= On; repaint(false); } + void toggleState() { if (s == On) s= Off; else if (s == Off) s= On; tqrepaint(false); } public slots: void toggle() { toggleState(); }; void on() { setState(On); }; diff --git a/kscd/libwm/audio/audio_sun.c b/kscd/libwm/audio/audio_sun.c index bee50905..93ce78d2 100644 --- a/kscd/libwm/audio/audio_sun.c +++ b/kscd/libwm/audio/audio_sun.c @@ -54,13 +54,13 @@ * a marker into the audio stream; when the audio device driver encounters the * marker, it increments a field in a status structure. When we see that * field go up, we grab the next status structure from the queue and send it - * to the parent process. + * to the tqparent process. * * The minimum size of the queue depends on the latency of the audio stream. */ -#define QSIZE 500 +#define TQSIZE 500 -struct cdda_block queue[QSIZE]; +struct cdda_block queue[TQSIZE]; int qtail; int qstart; @@ -199,7 +199,7 @@ sun_audio_ready( void ) * Start at the correct queue position. */ if (ioctl(aucfd, AUDIO_GETINFO, &info) < 0) perror("AUDIO_GETINFO"); - qtail = info.play.eof % QSIZE; + qtail = info.play.eof % TQSIZE; qstart = qtail; queue[qtail].status = WM_CDM_PLAYING; @@ -284,11 +284,11 @@ sun_audio_send_status( void ) int qhead; /* - * Now send the most current status information to our parent. + * Now send the most current status information to our tqparent. */ if (ioctl(aucfd, AUDIO_GETINFO, &info) < 0) perror("AUDIO_GETINFO"); - qhead = info.play.eof % QSIZE; + qhead = info.play.eof % TQSIZE; if (qhead != qstart && playing) { @@ -367,7 +367,7 @@ sun_audio_play(unsigned char *rawbuf, long buflen, struct cdda_block *blk) perror("audio mark"); } else - qtail = (qtail + 1) % QSIZE; + qtail = (qtail + 1) % TQSIZE; fcntl(aufd, F_SETFL, 0); diff --git a/kscd/libwm/cddaslave.c b/kscd/libwm/cddaslave.c index b378f95d..dac475e8 100644 --- a/kscd/libwm/cddaslave.c +++ b/kscd/libwm/cddaslave.c @@ -169,7 +169,7 @@ receive_command(struct cdda_device *dev, struct cdda_block* blk) if (read(0, inbuf, 1) <= 0) { wmcdda_close(dev); oops->wmaudio_close(); -/* ERRORLOG("cddaslave: parent died, exit\n");*/ +/* ERRORLOG("cddaslave: tqparent died, exit\n");*/ exit(0); } diff --git a/kscd/libwm/cdtext.c b/kscd/libwm/cdtext.c index bb4e19b8..fafd039f 100644 --- a/kscd/libwm/cdtext.c +++ b/kscd/libwm/cdtext.c @@ -21,8 +21,8 @@ #include #include #include -#ifdef libunicode - #include +#ifdef libtqunicode + #include #endif #include "include/wm_config.h" @@ -155,12 +155,12 @@ void get_data_from_cdtext_pack( int arr = pack->header_field_id2_tracknumber; int i; int language_block; - int unicode; + int tqunicode; language_block = (pack->header_field_id4_block_no >> 4) & 0x07; - unicode = pack->header_field_id4_block_no & 0x80; + tqunicode = pack->header_field_id4_block_no & 0x80; - if(!unicode) + if(!tqunicode) { for(i = 0; i < DATAFIELD_LENGHT_IN_PACK; i++) { @@ -180,7 +180,7 @@ void get_data_from_cdtext_pack( } } } -#ifdef libunicode +#ifdef libtqunicode else /* doublebytes ;-) */ { for(i = 0; i < DATAFIELD_LENGHT_IN_PACK; i += 2) @@ -203,7 +203,7 @@ void get_data_from_cdtext_pack( } #else else { - wm_lib_message(WM_MSG_LEVEL_ERROR | WM_MSG_CLASS, "can't handle unicode"); + wm_lib_message(WM_MSG_LEVEL_ERROR | WM_MSG_CLASS, "can't handle tqunicode"); } #endif } @@ -315,9 +315,9 @@ get_glob_cdtext(struct wm_drive *d, int redo) { wm_cdtext_info.blocks[j] = lp_block; wm_cdtext_info.blocks[j]->block_code = code; - wm_cdtext_info.blocks[j]->block_unicode = pack->header_field_id4_block_no & 0x80; + wm_cdtext_info.blocks[j]->block_tqunicode = pack->header_field_id4_block_no & 0x80; wm_lib_message(WM_MSG_LEVEL_DEBUG | WM_MSG_CLASS, - "CDTEXT INFO: created a new language block; code %i, %s characters\n", code, lp_block->block_unicode?"doublebyte":"singlebyte"); + "CDTEXT INFO: created a new language block; code %i, %s characters\n", code, lp_block->block_tqunicode?"doublebyte":"singlebyte"); /* unsigned char block_encoding; not jet! cdtext_string* block_encoding_text; diff --git a/kscd/libwm/database.c b/kscd/libwm/database.c index 62d66a32..617905eb 100644 --- a/kscd/libwm/database.c +++ b/kscd/libwm/database.c @@ -192,7 +192,7 @@ nomem: #ifndef NDEBUG fprintf(stderr, "WorkMan was run without a home directory, probably by a system daemon.\n"); - fprintf(stderr, "It doesn't know where to find "); + fprintf(stderr, "It doesn't know where to tqfind "); if (no_rc) { fprintf(stderr, "your personal preferences file "); diff --git a/kscd/libwm/include/wm_cdtext.h b/kscd/libwm/include/wm_cdtext.h index e843ee95..ba481be0 100644 --- a/kscd/libwm/include/wm_cdtext.h +++ b/kscd/libwm/include/wm_cdtext.h @@ -44,7 +44,7 @@ typedef unsigned char cdtext_string[MAX_LENGHT_OF_CDTEXT_STRING]; struct cdtext_info_block { /* management */ unsigned char block_code; - unsigned char block_unicode; /* 0 - single chars, 1 - doublebytes */ + unsigned char block_tqunicode; /* 0 - single chars, 1 - doublebytes */ unsigned char block_encoding; /* orange book -? */ cdtext_string* block_encoding_text; diff --git a/kscd/libwm/include/wm_scsi.h b/kscd/libwm/include/wm_scsi.h index f67e8035..5f11ea7e 100644 --- a/kscd/libwm/include/wm_scsi.h +++ b/kscd/libwm/include/wm_scsi.h @@ -30,7 +30,7 @@ #include "wm_struct.h" -#define WM_ERR_SCSI_INQUIRY_FAILED -1 +#define WM_ERR_SCSI_INTQUIRY_FAILED -1 int wm_scsi_mode_sense( struct wm_drive *d, unsigned char page, unsigned char *buf ); diff --git a/kscd/libwm/plat_hpux.c b/kscd/libwm/plat_hpux.c index c5a6991f..a52d341f 100644 --- a/kscd/libwm/plat_hpux.c +++ b/kscd/libwm/plat_hpux.c @@ -118,7 +118,7 @@ wmcd_open( struct wm_drive *d ) /* Now fill in the relevant parts of the wm_drive structure. */ fd = d->fd; - /* Default drive is the HP one, which might not respond to INQUIRY */ + /* Default drive is the HP one, which might not respond to INTQUIRY */ strcpy(&vendor, "TOSHIBA"); strcpy(&model, "XM-3301"); rev[0] = '\0'; diff --git a/kscd/libwm/plat_linux.c b/kscd/libwm/plat_linux.c index 8852ba16..1d473ce2 100644 --- a/kscd/libwm/plat_linux.c +++ b/kscd/libwm/plat_linux.c @@ -43,7 +43,7 @@ #if 0 /* this breaks the build on ia64 and s390 for example. sys/types.h is already included and should provide __u64. - please tell where we really need this and let's try to find + please tell where we really need this and let's try to tqfind a working #if case for everyone ... adrian@suse.de */ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,50)) || (LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,21) && LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) #undef __GNUC__ diff --git a/kscd/libwm/plat_linux_audio.c b/kscd/libwm/plat_linux_audio.c index e5608adf..690a36e5 100644 --- a/kscd/libwm/plat_linux_audio.c +++ b/kscd/libwm/plat_linux_audio.c @@ -57,13 +57,13 @@ static char plat_linux_audio_id[] = "$Id$"; * a marker into the audio stream; when the audio device driver encounters the * marker, it increments a field in a status structure. When we see that * field go up, we grab the next status structure from the queue and send it - * to the parent process. + * to the tqparent process. * * The minimum size of the queue depends on the latency of the audio stream. */ -#define QSIZE 500 +#define TQSIZE 500 -struct cdda_block queue[QSIZE]; +struct cdda_block queue[TQSIZE]; int qtail; int qstart; @@ -200,7 +200,7 @@ wmaudio_ready( void ) * Start at the correct queue position. */ if (ioctl(aucfd, AUDIO_GETINFO, &info) < 0) perror("AUDIO_GETINFO"); - qtail = info.play.eof % QSIZE; + qtail = info.play.eof % TQSIZE; qstart = qtail; queue[qtail].status = WMCDDA_OK; @@ -275,11 +275,11 @@ wmaudio_send_status( void ) int qhead; /* - * Now send the most current status information to our parent. + * Now send the most current status information to our tqparent. */ if (ioctl(aucfd, AUDIO_GETINFO, &info) < 0) perror("AUDIO_GETINFO"); - qhead = info.play.eof % QSIZE; + qhead = info.play.eof % TQSIZE; if (qhead != qstart && playing) { @@ -357,7 +357,7 @@ wmaudio_play(unsigned char *rawbuf, long buflen, struct cdda_block *blk) perror("audio mark"); } else - qtail = (qtail + 1) % QSIZE; + qtail = (qtail + 1) % TQSIZE; fcntl(aufd, F_SETFL, 0); diff --git a/kscd/libwm/plat_news.c b/kscd/libwm/plat_news.c index 4b9f2ef7..304ebfda 100644 --- a/kscd/libwm/plat_news.c +++ b/kscd/libwm/plat_news.c @@ -181,7 +181,7 @@ int gen_get_drive_status( struct wm_drive *d, int oldmode, int *mode, int *pos, int *track, int *index) { - struct CD_Status sc; + struct CD_tqStatus sc; /* If we can't get status, the CD is ejected, so default to that. */ *mode = WM_CDM_EJECTED; @@ -199,7 +199,7 @@ gen_get_drive_status( struct wm_drive *d, int oldmode, } /* Disc is ejected. Close the device. */ - if (CD_GetStatus(d->fd, &sc)) + if (CD_GettqStatus(d->fd, &sc)) { gen_close(d); return (0); diff --git a/kscd/libwm/plat_sun.c b/kscd/libwm/plat_sun.c index 4e61d68f..8d09efee 100644 --- a/kscd/libwm/plat_sun.c +++ b/kscd/libwm/plat_sun.c @@ -111,7 +111,7 @@ sigthawinit( void ) struct sigaction sa; sa.sa_handler = thawme; - sigemptyset(&sa.sa_mask); + sigemptyset(&sa.sa_tqmask); sa.sa_flags = 0; sigaction(SIGTHAW, &sa, NULL); @@ -400,7 +400,7 @@ gen_get_drive_status( struct wm_drive *d, * Now install the no-op signal handler. */ new_sig.sa_handler = do_nothing; - memset(&new_sig.sa_mask, 0, sizeof(new_sig.sa_mask)); + memset(&new_sig.sa_tqmask, 0, sizeof(new_sig.sa_tqmask)); new_sig.sa_flags = 0; if (sigaction(SIGALRM, &new_sig, &old_sig)) perror("sigaction"); diff --git a/kscd/libwm/plat_sun_audio.c b/kscd/libwm/plat_sun_audio.c index 6ef62d7b..3c9dfdc1 100644 --- a/kscd/libwm/plat_sun_audio.c +++ b/kscd/libwm/plat_sun_audio.c @@ -59,13 +59,13 @@ static char plat_sun_audio_id[] = "$Id$"; * a marker into the audio stream; when the audio device driver encounters the * marker, it increments a field in a status structure. When we see that * field go up, we grab the next status structure from the queue and send it - * to the parent process. + * to the tqparent process. * * The minimum size of the queue depends on the latency of the audio stream. */ -#define QSIZE 500 +#define TQSIZE 500 -struct cdda_block queue[QSIZE]; +struct cdda_block queue[TQSIZE]; int qtail; int qstart; @@ -204,7 +204,7 @@ wmaudio_ready( void ) * Start at the correct queue position. */ if (ioctl(aucfd, AUDIO_GETINFO, &info) < 0) perror("AUDIO_GETINFO"); - qtail = info.play.eof % QSIZE; + qtail = info.play.eof % TQSIZE; qstart = qtail; queue[qtail].status = WMCDDA_OK; @@ -279,11 +279,11 @@ wmaudio_send_status( void ) int qhead; /* - * Now send the most current status information to our parent. + * Now send the most current status information to our tqparent. */ if (ioctl(aucfd, AUDIO_GETINFO, &info) < 0) perror("AUDIO_GETINFO"); - qhead = info.play.eof % QSIZE; + qhead = info.play.eof % TQSIZE; if (qhead != qstart && playing) { @@ -361,7 +361,7 @@ wmaudio_play(unsigned char *rawbuf, long buflen, struct cdda_block *blk) perror("audio mark"); } else - qtail = (qtail + 1) % QSIZE; + qtail = (qtail + 1) % TQSIZE; fcntl(aufd, F_SETFL, 0); diff --git a/kscd/libwm/plat_svr4.c b/kscd/libwm/plat_svr4.c index 3ccaf4c4..dad4e8af 100644 --- a/kscd/libwm/plat_svr4.c +++ b/kscd/libwm/plat_svr4.c @@ -314,7 +314,7 @@ wm_scsi( struct wm_drive *d, unsigned char *xcdb, int cdblen, sb.SCB.sc_link = (struct sb *) NULL; sb.SCB.sc_resid = 0; - scs.ss_op = SS_REQSEN; + scs.ss_op = SS_RETQSEN; scs.ss_lun = 0; scs.ss_addr1 = 0; scs.ss_addr = 0; diff --git a/kscd/libwm/scsi.c b/kscd/libwm/scsi.c index 11570146..c3c1d342 100644 --- a/kscd/libwm/scsi.c +++ b/kscd/libwm/scsi.c @@ -38,7 +38,7 @@ #include "include/wm_cdrom.h" #include "include/wm_cdtext.h" -#define SCMD_INQUIRY 0x12 +#define SCMD_INTQUIRY 0x12 #define SCMD_MODE_SELECT 0x15 #define SCMD_MODE_SENSE 0x1a #define SCMD_START_STOP 0x1b @@ -48,14 +48,14 @@ #define SCMD_PLAY_AUDIO_MSF 0x47 #define SCMD_PAUSE_RESUME 0x4b -#define SUBQ_STATUS_INVALID 0x00 -#define SUBQ_STATUS_PLAY 0x11 -#define SUBQ_STATUS_PAUSE 0x12 -#define SUBQ_STATUS_DONE 0x13 -#define SUBQ_STATUS_ERROR 0x14 -#define SUBQ_STATUS_NONE 0x15 -#define SUBQ_STATUS_NO_DISC 0x17 /* Illegal, but Toshiba returns it. */ -#define SUBQ_ILLEGAL 0xff +#define SUBTQ_STATUS_INVALID 0x00 +#define SUBTQ_STATUS_PLAY 0x11 +#define SUBTQ_STATUS_PAUSE 0x12 +#define SUBTQ_STATUS_DONE 0x13 +#define SUBTQ_STATUS_ERROR 0x14 +#define SUBTQ_STATUS_NONE 0x15 +#define SUBTQ_STATUS_NO_DISC 0x17 /* Illegal, but Toshiba returns it. */ +#define SUBTQ_ILLEGAL 0xff #define PAGE_AUDIO 0x0e #define LEADOUT 0xaa @@ -194,14 +194,14 @@ wm_scsi_mode_select( struct wm_drive *d, unsigned char *buf, unsigned char len ) } /* - * Send an INQUIRY command to get the drive type. + * Send an INTQUIRY command to get the drive type. * * d Drive structure * vendor Buffer for vendor name (8 bytes + null) * model Buffer for model name (16 bytes + null) * rev Buffer for revision level (4 bytes + null) * - * The above string lengths apply to the SCSI INQUIRY command. The + * The above string lengths apply to the SCSI INTQUIRY command. The * actual WorkMan drive structure reserves 31 bytes + NULL per entry. * * If the model name begins with "CD-ROM" and zero or more spaces, that will @@ -216,7 +216,7 @@ wm_scsi_get_drive_type( struct wm_drive *d, char *vendor, memset(buf, 0, 36); wm_lib_message(WM_MSG_CLASS_SCSI | WM_MSG_LEVEL_INFO, "Sending SCSI inquiry command...\n"); - if (sendscsi(d, buf, 36, 1, SCMD_INQUIRY, 0, 0, 0, 36, 0,0,0,0,0,0,0)) + if (sendscsi(d, buf, 36, 1, SCMD_INTQUIRY, 0, 0, 0, 36, 0,0,0,0,0,0,0)) { sprintf( vendor, WM_STR_GENVENDOR); sprintf( model, WM_STR_GENMODEL); @@ -346,20 +346,20 @@ wm_scsi2_get_drive_status(struct wm_drive *d, int oldmode, } /* If we can't read status, the CD has been ejected. */ - buf[1] = SUBQ_ILLEGAL; + buf[1] = SUBTQ_ILLEGAL; if (sendscsi(d, buf, sizeof(buf), 1, SCMD_READ_SUBCHANNEL, 2, 64, 1, 0, 0, 0, sizeof(buf) / 256, sizeof(buf) % 256, 0,0,0)) return (0); switch (buf[1]) { - case SUBQ_STATUS_PLAY: + case SUBTQ_STATUS_PLAY: *mode = WM_CDM_PLAYING; *track = buf[6]; *ind = buf[7]; *pos = buf[9] * 60 * 75 + buf[10] * 75 + buf[11]; break; - case SUBQ_STATUS_PAUSE: + case SUBTQ_STATUS_PAUSE: if (oldmode == WM_CDM_PLAYING || oldmode == WM_CDM_PAUSED) { *mode = WM_CDM_PAUSED; @@ -374,13 +374,13 @@ wm_scsi2_get_drive_status(struct wm_drive *d, int oldmode, break; /* - * SUBQ_STATUS_DONE is sometimes returned when the CD is idle, + * SUBTQ_STATUS_DONE is sometimes returned when the CD is idle, * even though the spec says it should only be returned when an * audio play operation finishes. */ - case SUBQ_STATUS_DONE: - case SUBQ_STATUS_NONE: - case SUBQ_STATUS_INVALID: + case SUBTQ_STATUS_DONE: + case SUBTQ_STATUS_NONE: + case SUBTQ_STATUS_INVALID: if (oldmode == WM_CDM_PLAYING) *mode = WM_CDM_TRACK_DONE; else @@ -390,16 +390,16 @@ wm_scsi2_get_drive_status(struct wm_drive *d, int oldmode, /* * This usually means there's no disc in the drive. */ - case SUBQ_STATUS_NO_DISC: + case SUBTQ_STATUS_NO_DISC: break; /* * This usually means the user ejected the CD manually. */ - case SUBQ_STATUS_ERROR: + case SUBTQ_STATUS_ERROR: break; - case SUBQ_ILLEGAL: /* call didn't really succeed */ + case SUBTQ_ILLEGAL: /* call didn't really succeed */ break; default: diff --git a/kscd/panel.ui b/kscd/panel.ui index 3b6b218a..6f8cec6a 100644 --- a/kscd/panel.ui +++ b/kscd/panel.ui @@ -1,10 +1,10 @@ kscdPanelDlg - + kscdPanelDlg - + 0 0 @@ -25,28 +25,28 @@ 0 - + - layout8 + tqlayout8 unnamed - + songListCB - + - layout6 + tqlayout6 unnamed - + timeIcon @@ -57,7 +57,7 @@ Track progress - + timeSlider @@ -92,14 +92,14 @@ Fixed - + 16 20 - + volumeIcon @@ -110,7 +110,7 @@ Volume control - + volumeSlider @@ -126,9 +126,9 @@ - + - layout7 + tqlayout7 @@ -137,7 +137,7 @@ 1 - + ejectPB @@ -148,7 +148,7 @@ true - + backdrop @@ -160,7 +160,7 @@ 0 - + 270 80 @@ -201,15 +201,15 @@ 2 - + - layout5 + tqlayout5 unnamed - + frameleds @@ -221,7 +221,7 @@ 0 - + 100 35 @@ -234,15 +234,15 @@ Raised - + statuslabel - Status + tqStatus - + volumelabel @@ -250,12 +250,12 @@ Vol: -- - + totaltimelabel - + tracklabel @@ -263,7 +263,7 @@ --/-- - + symbols @@ -275,7 +275,7 @@ 0 - + 30 0 @@ -285,7 +285,7 @@ Vol: -- - + artistlabel @@ -293,7 +293,7 @@ Artist - + titlelabel @@ -305,7 +305,7 @@ - + shufflePB @@ -319,7 +319,7 @@ true - + infoPB @@ -330,7 +330,7 @@ true - + playPB @@ -341,7 +341,7 @@ true - + stopPB @@ -355,7 +355,7 @@ true - + cddbPB @@ -366,7 +366,7 @@ true - + repeatPB @@ -383,7 +383,7 @@ true - + nextPB @@ -394,7 +394,7 @@ true - + prevPB @@ -457,12 +457,12 @@ cddbPB infoPB - + playClicked() stopClicked() prevClicked() ejectClicked() nextClicked() - - + + diff --git a/libkcddb/asynccddbplookup.cpp b/libkcddb/asynccddbplookup.cpp index d2584adf..d51ef386 100644 --- a/libkcddb/asynccddbplookup.cpp +++ b/libkcddb/asynccddbplookup.cpp @@ -224,7 +224,7 @@ namespace KCDDB } } - QString + TQString AsyncCDDBPLookup::readLine() { return TQString::fromUtf8(socket_->readLine()); @@ -294,7 +294,7 @@ namespace KCDDB sendQuit(); } - QString + TQString AsyncCDDBPLookup::stateToString() const { switch (state_) diff --git a/libkcddb/asynccddbplookup.h b/libkcddb/asynccddbplookup.h index 17b72f48..dc578e64 100644 --- a/libkcddb/asynccddbplookup.h +++ b/libkcddb/asynccddbplookup.h @@ -30,6 +30,7 @@ namespace KCDDB class AsyncCDDBPLookup : public CDDBPLookup { Q_OBJECT + TQ_OBJECT public: diff --git a/libkcddb/asynchttplookup.h b/libkcddb/asynchttplookup.h index 80926211..897b4791 100644 --- a/libkcddb/asynchttplookup.h +++ b/libkcddb/asynchttplookup.h @@ -29,6 +29,7 @@ namespace KCDDB { Q_OBJECT + TQ_OBJECT public: diff --git a/libkcddb/asynchttpsubmit.h b/libkcddb/asynchttpsubmit.h index 89ab8313..fcb8ec35 100644 --- a/libkcddb/asynchttpsubmit.h +++ b/libkcddb/asynchttpsubmit.h @@ -26,6 +26,7 @@ namespace KCDDB class AsyncHTTPSubmit : public HTTPSubmit { Q_OBJECT + TQ_OBJECT public: AsyncHTTPSubmit(const TQString& from, const TQString& hostname, uint port); virtual ~AsyncHTTPSubmit(); diff --git a/libkcddb/asyncsmtpsubmit.h b/libkcddb/asyncsmtpsubmit.h index 9bcf84eb..24d10439 100644 --- a/libkcddb/asyncsmtpsubmit.h +++ b/libkcddb/asyncsmtpsubmit.h @@ -27,6 +27,7 @@ namespace KCDDB class AsyncSMTPSubmit : public SMTPSubmit { Q_OBJECT + TQ_OBJECT public: AsyncSMTPSubmit(const TQString& hostname, uint port, const TQString& username, diff --git a/libkcddb/cache.cpp b/libkcddb/cache.cpp index 01c5dec0..127fc6ba 100644 --- a/libkcddb/cache.cpp +++ b/libkcddb/cache.cpp @@ -30,7 +30,7 @@ namespace KCDDB { - QString + TQString Cache::fileName( const TQString &category, const TQString &discid, const TQString &cacheDir ) { TQDir dir( cacheDir ); diff --git a/libkcddb/categories.cpp b/libkcddb/categories.cpp index 5b86a5f5..97ec6acf 100644 --- a/libkcddb/categories.cpp +++ b/libkcddb/categories.cpp @@ -25,7 +25,7 @@ KCDDB::Categories::Categories() const TQString KCDDB::Categories::cddb2i18n(const TQString &category) const { - int index = m_cddb.findIndex(category.stripWhiteSpace()); + int index = m_cddb.tqfindIndex(category.stripWhiteSpace()); if (index != -1) { return m_i18n[index]; @@ -38,7 +38,7 @@ const TQString KCDDB::Categories::cddb2i18n(const TQString &category) const const TQString KCDDB::Categories::i18n2cddb(const TQString &category) const { - int index = m_i18n.findIndex(category.stripWhiteSpace()); + int index = m_i18n.tqfindIndex(category.stripWhiteSpace()); if (index != -1) { return m_cddb[index]; diff --git a/libkcddb/cddb.cpp b/libkcddb/cddb.cpp index f0ee84e0..c11e086c 100644 --- a/libkcddb/cddb.cpp +++ b/libkcddb/cddb.cpp @@ -43,12 +43,12 @@ namespace KCDDB // Empty. } - QString + TQString CDDB::trackOffsetListToId() { return trackOffsetListToId( trackOffsetList_ ); } - QString + TQString CDDB::trackOffsetListToId( const TrackOffsetList & list ) { // Taken from version by Michael Matz in kio_audiocd. @@ -74,7 +74,7 @@ namespace KCDDB return TQString::number( id, 16 ).rightJustify( 8, '0' ); } - QString + TQString CDDB::trackOffsetListToString() { TQString ret; @@ -100,14 +100,14 @@ namespace KCDDB bool CDDB::parseGreeting( const TQString & line ) { - uint serverStatus = statusCode( line ); + uint servertqStatus = statusCode( line ); - if ( 200 == serverStatus ) + if ( 200 == servertqStatus ) { kdDebug(60010) << "Server response: read-only" << endl; readOnly_ = true; } - else if ( 201 == serverStatus ) + else if ( 201 == servertqStatus ) { kdDebug(60010) << "Server response: read-write" << endl; } @@ -123,9 +123,9 @@ namespace KCDDB bool CDDB::parseHandshake( const TQString & line ) { - uint serverStatus = statusCode( line ); + uint servertqStatus = statusCode( line ); - if ( ( 200 != serverStatus ) && ( 402 != serverStatus ) ) + if ( ( 200 != servertqStatus ) && ( 402 != servertqStatus ) ) { kdDebug(60010) << "Handshake was too tight. Letting go." << endl; return false; @@ -141,9 +141,9 @@ namespace KCDDB { TQStringList tokenList = TQStringList::split( ' ', line ); - uint serverStatus = tokenList[ 0 ].toUInt(); + uint servertqStatus = tokenList[ 0 ].toUInt(); - return serverStatus; + return servertqStatus; } /* CDDB::Transport @@ -157,7 +157,7 @@ namespace KCDDB return SMTP; }*/ - QString + TQString CDDB::resultToString(Result r) { switch (r) @@ -200,7 +200,7 @@ namespace KCDDB } } -/* QString +/* TQString CDDB::transportToString(uint t) { switch (Transport(t)) diff --git a/libkcddb/cddb.h b/libkcddb/cddb.h index 04d754c0..d82ea599 100644 --- a/libkcddb/cddb.h +++ b/libkcddb/cddb.h @@ -66,8 +66,8 @@ namespace KCDDB static TQString resultToString(Result); static TQString trackOffsetListToId( const TrackOffsetList & ); - static TQString clientName() { return TQString::fromLatin1("libkcddb"); } - static TQString clientVersion() { return TQString::fromLatin1("0.31"); } + static TQString clientName() { return TQString::tqfromLatin1("libkcddb"); } + static TQString clientVersion() { return TQString::tqfromLatin1("0.31"); } protected: bool parseGreeting( const TQString & ); diff --git a/libkcddb/cddbplookup.cpp b/libkcddb/cddbplookup.cpp index cd287b99..db62cbae 100644 --- a/libkcddb/cddbplookup.cpp +++ b/libkcddb/cddbplookup.cpp @@ -40,10 +40,10 @@ namespace KCDDB CDDBPLookup::sendHandshake() { TQString handshake = TQString( "cddb hello %1 %2 %3 %4" ) - .arg( user_ ) - .arg( localHostName_ ) - .arg( clientName() ) - .arg( clientVersion() ); + .tqarg( user_ ) + .tqarg( localHostName_ ) + .tqarg( clientName() ) + .tqarg( clientVersion() ); writeLine( handshake ); } @@ -58,8 +58,8 @@ namespace KCDDB CDDBPLookup::sendQuery() { TQString query = TQString( "cddb query %1 %2" ) - .arg( trackOffsetListToId() ) - .arg( trackOffsetListToString() ); + .tqarg( trackOffsetListToId() ) + .tqarg( trackOffsetListToString() ); writeLine( query ); } @@ -71,8 +71,8 @@ namespace KCDDB TQString discid = match.second; TQString readRequest = TQString( "cddb read %1 %2" ) - .arg( category_ ) - .arg( discid ); + .tqarg( category_ ) + .tqarg( discid ); writeLine( readRequest ); } @@ -93,7 +93,7 @@ namespace KCDDB } } - Q_LONG + TQ_LONG CDDBPLookup::writeLine( const TQString & line ) { if ( !isConnected() ) diff --git a/libkcddb/cddbplookup.h b/libkcddb/cddbplookup.h index c7983cde..de20e532 100644 --- a/libkcddb/cddbplookup.h +++ b/libkcddb/cddbplookup.h @@ -42,7 +42,7 @@ namespace KCDDB void close(); protected: - Q_LONG writeLine( const TQString & ); + TQ_LONG writeLine( const TQString & ); bool isConnected() { return KNetwork::KClientSocketBase::Connected == socket_->state(); } diff --git a/libkcddb/cdinfo.cpp b/libkcddb/cdinfo.cpp index bf69f853..eee89d87 100644 --- a/libkcddb/cdinfo.cpp +++ b/libkcddb/cdinfo.cpp @@ -177,7 +177,7 @@ namespace KCDDB } } - int slashPos = dtitle.find('/'); + int slashPos = dtitle.tqfind('/'); if (-1 == slashPos) { @@ -198,7 +198,7 @@ namespace KCDDB return true; } - QString + TQString CDInfo::toString(bool submit) const { TQString s; @@ -209,18 +209,18 @@ namespace KCDDB if (submit) { s += "#\n"; - s += TQString("# Submitted via: %1 %2\n").arg(CDDB::clientName(), + s += TQString("# Submitted via: %1 %2\n").tqarg(CDDB::clientName(), CDDB::clientVersion()); } s += "DISCID=" + escape( id ) + "\n"; s += createLine("DTITLE",escape( artist ) + " / " + escape( title )); - s += "DYEAR=" + (0 == year ? TQString::null : TQString::number(year)) + "\n"; + s += "DYEAR=" + (0 == year ? TQString() : TQString::number(year)) + "\n"; s += createLine("DGENRE",escape( genre )); for (uint i = 0; i < trackInfoList.count(); ++i) { - s += createLine(TQString("TTITLE%1").arg(i), + s += createLine(TQString("TTITLE%1").tqarg(i), escape( trackInfoList[ i ].title)); } @@ -228,7 +228,7 @@ namespace KCDDB for (uint i = 0; i < trackInfoList.count(); ++i) { - s += createLine(TQString("EXTT%1").arg(i), escape(trackInfoList[i].extt)); + s += createLine(TQString("EXTT%1").tqarg(i), escape(trackInfoList[i].extt)); } s +="PLAYORDER=\n"; @@ -238,7 +238,7 @@ namespace KCDDB // Creates a line in the form NAME=VALUE, and splits it into several // lines if the line gets longer than 256 chars - QString + TQString CDInfo::createLine(const TQString& name, const TQString& value) const { Q_ASSERT(name.length() < 254); @@ -251,11 +251,11 @@ namespace KCDDB while (tmpValue.length() > maxLength) { - lines += TQString("%1=%2\n").arg(name,tmpValue.left(maxLength)); + lines += TQString("%1=%2\n").tqarg(name,tmpValue.left(maxLength)); tmpValue = tmpValue.mid(maxLength); } - lines += TQString("%1=%2\n").arg(name,tmpValue); + lines += TQString("%1=%2\n").tqarg(name,tmpValue); return lines; } @@ -270,25 +270,25 @@ namespace KCDDB } } - QString + TQString CDInfo::escape( const TQString& value ) { TQString s = value; - s.replace( "\\", "\\\\" ); - s.replace( "\n", "\\n" ); - s.replace( "\t", "\\t" ); + s.tqreplace( "\\", "\\\\" ); + s.tqreplace( "\n", "\\n" ); + s.tqreplace( "\t", "\\t" ); return s; } - QString + TQString CDInfo::unescape( const TQString& value ) { TQString s = value; - s.replace( "\\n", "\n" ); - s.replace( "\\t", "\t" ); - s.replace( "\\\\", "\\" ); + s.tqreplace( "\\n", "\n" ); + s.tqreplace( "\\t", "\t" ); + s.tqreplace( "\\\\", "\\" ); return s; } @@ -296,7 +296,7 @@ namespace KCDDB void CDInfo::clear() { - id = artist = title = genre = extd = TQString::null; + id = artist = title = genre = extd = TQString(); length = year = revision = 0; trackInfoList.clear(); } diff --git a/libkcddb/cdinfodialogbase.ui b/libkcddb/cdinfodialogbase.ui index 76ee8141..dcebf8fb 100644 --- a/libkcddb/cdinfodialogbase.ui +++ b/libkcddb/cdinfodialogbase.ui @@ -1,10 +1,10 @@ CDInfoDialogBase - + CDInfoDialogBase - + 0 0 @@ -16,15 +16,15 @@ unnamed - + - layout1 + tqlayout1 unnamed - + lb_revision @@ -40,7 +40,7 @@ Use the name of the artist if there is no title. - + lb_category @@ -51,7 +51,7 @@ m_category - + m_id @@ -67,7 +67,7 @@ Write names as "first last", not "last, first". Omit any leading "The". Use "Various" for compilations. - + lb_artist @@ -78,7 +78,7 @@ m_artist - + lb_year @@ -89,7 +89,7 @@ m_year - + lb_genre @@ -122,7 +122,7 @@ 0 - + m_multiple @@ -138,7 +138,7 @@ - + lb_comment @@ -149,7 +149,7 @@ le_discInfo - + lb_title @@ -174,7 +174,7 @@ Avoid custom values, as they will be written to CDDB as-is. - + lb_id @@ -182,7 +182,7 @@ Disc Id: - + lb_length @@ -190,12 +190,12 @@ Length: - + m_revision - + m_length @@ -274,9 +274,9 @@ For a CD-Extra, set title to "Data". - + - layout2 + tqlayout2 @@ -292,14 +292,14 @@ Expanding - + 231 41 - + m_changeEncoding @@ -309,7 +309,7 @@ - + lb_playingOrder @@ -329,27 +329,27 @@ m_trackList - selectionChanged(QListViewItem*) + selectionChanged(TQListViewItem*) CDInfoDialogBase - slotTrackSelected(QListViewItem*) + slotTrackSelected(TQListViewItem*) m_trackList - doubleClicked(QListViewItem*,const QPoint&,int) + doubleClicked(TQListViewItem*,const TQPoint&,int) CDInfoDialogBase - slotTrackDoubleClicked(QListViewItem*,const QPoint&,int) + slotTrackDoubleClicked(TQListViewItem*,const TQPoint&,int) m_artist - textChanged(const QString&) + textChanged(const TQString&) CDInfoDialogBase - artistChanged(const QString&) + artistChanged(const TQString&) m_genre - textChanged(const QString&) + textChanged(const TQString&) CDInfoDialogBase - genreChanged(const QString&) + genreChanged(const TQString&) m_multiple @@ -376,7 +376,7 @@ kdialog.h - qdatetime.h + tqdatetime.h libkcddb/cdinfo.h libkcddb/cddb.h libkcddb/categories.h @@ -397,29 +397,29 @@ static const unsigned TRACK_TITLE = 2; static const unsigned TRACK_COMMENT = 3; - + play(int i) discInfoClicked() trackInfoClicked(unsigned) - - - slotTrackSelected( QListViewItem * item ) + + + slotTrackSelected( TQListViewItem * item ) slotNextTrack() - slotTrackDoubleClicked( QListViewItem * item, const QPoint &, int column ) + slotTrackDoubleClicked( TQListViewItem * item, const TQPoint &, int column ) setInfo( const KCDDB::CDInfo & info, KCDDB::TrackOffsetList & trackStartFrames ) - artistChanged( const QString & newArtist ) - genreChanged( const QString & newGenre ) + artistChanged( const TQString & newArtist ) + genreChanged( const TQString & newGenre ) slotMultipleArtists( bool hasMultipleArtist ) slotChangeEncoding() - + init() destroy() - framesTime( unsigned frames ) + framesTime( unsigned frames ) info() const - - + + klineedit.h kcombobox.h diff --git a/libkcddb/cdinfodialogbase.ui.h b/libkcddb/cdinfodialogbase.ui.h index e33ad487..35447aaa 100644 --- a/libkcddb/cdinfodialogbase.ui.h +++ b/libkcddb/cdinfodialogbase.ui.h @@ -2,7 +2,7 @@ ** ui.h extension file, included from the uic-generated form implementation. ** ** If you wish to add, delete or rename functions or slots use -** Qt Designer which will update this file, preserving your code. Create an +** TQt Designer which will update this file, preserving your code. Create an ** init() function in place of a constructor, and a destroy() function in ** place of a destructor. *****************************************************************************/ @@ -83,7 +83,7 @@ void CDInfoDialogBase::setInfo( const KCDDB::CDInfo &info, KCDDB::TrackOffsetLis item->setText(TRACK_NUMBER, TQString().sprintf("%02d", i + 1)); item->setText(TRACK_TIME, framesTime(trackStartFrames[i + ((i + 1 < tracks) ? 1 : 2)] - trackStartFrames[i])); TQString title = info.trackInfoList[i].title; - int separator = title.find(SEPARATOR); + int separator = title.tqfind(SEPARATOR); if (info.artist != "Various" || separator == -1 || !m_multiple->isChecked() ) { item->setText(TRACK_ARTIST, ""); @@ -179,7 +179,7 @@ void CDInfoDialogBase::slotMultipleArtists( bool hasMultipleArtist) for (TQListViewItem *item = m_trackList->firstChild(); item; item=item->nextSibling()) { TQString title = item->text(TRACK_TITLE); - int separator = title.find(SEPARATOR); + int separator = title.tqfind(SEPARATOR); if (separator != -1) { // Artists probably entered already @@ -196,7 +196,7 @@ void CDInfoDialogBase::slotMultipleArtists( bool hasMultipleArtist) TQString artist = item->text(TRACK_ARTIST); if (!artist.isEmpty()) { - item->setText(TRACK_ARTIST, TQString::null); + item->setText(TRACK_ARTIST, TQString()); item->setText(TRACK_TITLE, artist + SEPARATOR + item->text(TRACK_TITLE)); } } diff --git a/libkcddb/cdinfoencodingwidget.cpp b/libkcddb/cdinfoencodingwidget.cpp index 42d0e506..0cf47196 100644 --- a/libkcddb/cdinfoencodingwidget.cpp +++ b/libkcddb/cdinfoencodingwidget.cpp @@ -28,9 +28,9 @@ namespace KCDDB { - CDInfoEncodingWidget::CDInfoEncodingWidget(TQWidget* parent, const TQString& artist, + CDInfoEncodingWidget::CDInfoEncodingWidget(TQWidget* tqparent, const TQString& artist, const TQString& title, const TQStringList& songTitles) - : CDInfoEncodingWidgetBase(parent), m_artist(artist), m_title(title), + : CDInfoEncodingWidgetBase(tqparent), m_artist(artist), m_title(title), m_songTitles(songTitles) { encodingCombo->insertStringList(KGlobal::charsets()->descriptiveEncodingNames()); @@ -62,7 +62,7 @@ namespace KCDDB songsBox->clear(); songsBox->insertStringList(newTitles); - titleLabel->setText(i18n("artist - cdtitle", "%1 - %2").arg( + titleLabel->setText(i18n("artist - cdtitle", "%1 - %2").tqarg( codec->toUnicode(m_artist.latin1()), codec->toUnicode(m_title.latin1()))); } } diff --git a/libkcddb/cdinfoencodingwidget.h b/libkcddb/cdinfoencodingwidget.h index 7182b44f..a5fa8522 100644 --- a/libkcddb/cdinfoencodingwidget.h +++ b/libkcddb/cdinfoencodingwidget.h @@ -27,8 +27,9 @@ namespace KCDDB class CDInfoEncodingWidget : public CDInfoEncodingWidgetBase { Q_OBJECT + TQ_OBJECT public: - CDInfoEncodingWidget(TQWidget* parent, const TQString& artist, const TQString& title, + CDInfoEncodingWidget(TQWidget* tqparent, const TQString& artist, const TQString& title, const TQStringList& songTitles); TQString selectedEncoding(); diff --git a/libkcddb/cdinfoencodingwidgetbase.ui b/libkcddb/cdinfoencodingwidgetbase.ui index e5156908..a3ffa82b 100644 --- a/libkcddb/cdinfoencodingwidgetbase.ui +++ b/libkcddb/cdinfoencodingwidgetbase.ui @@ -1,10 +1,10 @@ CDInfoEncodingWidgetBase - + CDInfoEncodingWidgetBase - + 0 0 @@ -16,7 +16,7 @@ unnamed - + encodingLabel @@ -24,12 +24,12 @@ Encoding: - + encodingCombo - + groupBox1 @@ -40,7 +40,7 @@ unnamed - + titleLabel @@ -51,11 +51,11 @@ - + songsBox - + 300 250 @@ -66,5 +66,5 @@ - + diff --git a/libkcddb/client.h b/libkcddb/client.h index 3aeb3bd6..33728783 100644 --- a/libkcddb/client.h +++ b/libkcddb/client.h @@ -40,9 +40,10 @@ namespace KCDDB * cddb->lookup(discSignature); * CDInfo info = cddb->bestLookupResponse(); */ - class KDE_EXPORT Client : public QObject + class KDE_EXPORT Client : public TQObject { Q_OBJECT + TQ_OBJECT public: diff --git a/libkcddb/genres.cpp b/libkcddb/genres.cpp index 423e80fc..ac1b86ad 100644 --- a/libkcddb/genres.cpp +++ b/libkcddb/genres.cpp @@ -97,7 +97,7 @@ KCDDB::Genres::Genres() const TQString KCDDB::Genres::cddb2i18n(const TQString &genre) const { TQString userDefinedGenre = genre.stripWhiteSpace(); - int index = m_cddb.findIndex(userDefinedGenre); + int index = m_cddb.tqfindIndex(userDefinedGenre); if (index != -1) { return m_i18n[index]; @@ -111,7 +111,7 @@ const TQString KCDDB::Genres::cddb2i18n(const TQString &genre) const const TQString KCDDB::Genres::i18n2cddb(const TQString &genre) const { TQString userDefinedGenre = genre.stripWhiteSpace(); - int index = m_i18n.findIndex(userDefinedGenre); + int index = m_i18n.tqfindIndex(userDefinedGenre); if (index != -1) { return m_cddb[index]; diff --git a/libkcddb/httplookup.cpp b/libkcddb/httplookup.cpp index c360c423..c3a942d3 100644 --- a/libkcddb/httplookup.cpp +++ b/libkcddb/httplookup.cpp @@ -40,7 +40,7 @@ namespace KCDDB HTTPLookup::sendQuery() { TQString cmd = TQString( "cddb query %1 %2" ) - .arg( trackOffsetListToId(), trackOffsetListToString() ) ; + .tqarg( trackOffsetListToId(), trackOffsetListToString() ) ; makeURL( cmd ); Result result = fetchURL(); @@ -55,7 +55,7 @@ namespace KCDDB TQString discid = match.second; TQString cmd = TQString( "cddb read %1 %2" ) - .arg( category_, discid ); + .tqarg( category_, discid ); makeURL( cmd ); Result result = fetchURL(); @@ -80,10 +80,10 @@ namespace KCDDB // The whole query has to constructed each time as the // CDDB CGI script expects the parameters in strict order - cgiURL_.setQuery( TQString::null ); + cgiURL_.setQuery( TQString() ); TQString hello = TQString("%1 %2 %3 %4") - .arg(user_, localHostName_, clientName(), clientVersion()); + .tqarg(user_, localHostName_, clientName(), clientVersion()); cgiURL_.addQueryItem( "cmd", cmd ); cgiURL_.addQueryItem( "hello", hello ); diff --git a/libkcddb/httplookup.h b/libkcddb/httplookup.h index b8f9c179..ae720f5e 100644 --- a/libkcddb/httplookup.h +++ b/libkcddb/httplookup.h @@ -38,6 +38,7 @@ namespace KCDDB { Q_OBJECT + TQ_OBJECT public: diff --git a/libkcddb/kcmcddb/cddbconfigwidget.cpp b/libkcddb/kcmcddb/cddbconfigwidget.cpp index 442efd12..ec08253a 100644 --- a/libkcddb/kcmcddb/cddbconfigwidget.cpp +++ b/libkcddb/kcmcddb/cddbconfigwidget.cpp @@ -38,8 +38,8 @@ #include #include -CDDBConfigWidget::CDDBConfigWidget(TQWidget * parent, const char * name) - : CDDBConfigWidgetBase(parent, name) +CDDBConfigWidget::CDDBConfigWidget(TQWidget * tqparent, const char * name) + : CDDBConfigWidgetBase(tqparent, name) { // Connections from widgets are made in designer. diff --git a/libkcddb/kcmcddb/cddbconfigwidget.h b/libkcddb/kcmcddb/cddbconfigwidget.h index e927284c..647d4717 100644 --- a/libkcddb/kcmcddb/cddbconfigwidget.h +++ b/libkcddb/kcmcddb/cddbconfigwidget.h @@ -27,10 +27,11 @@ class CDDBConfigWidget : public CDDBConfigWidgetBase { Q_OBJECT + TQ_OBJECT public: - CDDBConfigWidget(TQWidget * parent = 0, const char * name = 0); + CDDBConfigWidget(TQWidget * tqparent = 0, const char * name = 0); protected slots: diff --git a/libkcddb/kcmcddb/cddbconfigwidgetbase.ui b/libkcddb/kcmcddb/cddbconfigwidgetbase.ui index 2158159a..71ed425d 100644 --- a/libkcddb/kcmcddb/cddbconfigwidgetbase.ui +++ b/libkcddb/kcmcddb/cddbconfigwidgetbase.ui @@ -1,11 +1,11 @@ CDDBConfigWidgetBase Used for configuring libkcddb. - + CDDBConfigWidgetBase - + 0 0 @@ -23,11 +23,11 @@ 0 - + tabWidget2 - + tab @@ -38,7 +38,7 @@ unnamed - + kcfg_cachePolicy @@ -63,7 +63,7 @@ 0 - + cacheOnly @@ -74,7 +74,7 @@ Only check in the local cache for CD information. - + cacheAndRemote @@ -85,7 +85,7 @@ Check for locally cached CD information before trying to look up at remote CDDB server. - + remoteOnly @@ -98,7 +98,7 @@ - + serverBox @@ -115,7 +115,7 @@ 6 - + TextLabel7 @@ -126,7 +126,7 @@ kcfg_hostname - + TextLabel9 @@ -137,7 +137,7 @@ kcfg_lookupTransport - + CDDB @@ -163,7 +163,7 @@ Show &Mirror List - + kcfg_port @@ -185,21 +185,21 @@ Port to connect to on CDDB server. - + TextLabel8 &Port: - + AlignVCenter|AlignRight kcfg_port - + kcfg_hostname @@ -220,11 +220,11 @@ - + cacheLocationsParent - + WStackPage @@ -243,7 +243,7 @@ Expanding - + 41 260 @@ -252,7 +252,7 @@ - + tab @@ -263,12 +263,12 @@ unnamed - + kcfg_emailAddress - + textLabel1 @@ -286,14 +286,14 @@ Expanding - + 21 240 - + kcfg_submitTransport @@ -314,7 +314,7 @@ Fixed - + 21 21 @@ -331,14 +331,14 @@ Fixed - + 21 21 - + textLabel2 @@ -346,7 +346,7 @@ Server: - + radioButton8 @@ -367,14 +367,14 @@ Fixed - + 20 140 - + radioButton6 @@ -390,23 +390,23 @@ kcfg_httpSubmitServer - + textLabel1_2 Port: - + AlignVCenter|AlignRight - + kcfg_httpSubmitPort - + textLabel9_2 @@ -414,7 +414,7 @@ Reply-To: - + textLabel2_2 @@ -430,7 +430,7 @@ SMTP server: - + textLabel3 @@ -446,12 +446,12 @@ Port: - + kcfg_replyTo - + needsAuthenticationBox @@ -459,12 +459,12 @@ Server needs authentication - + kcfg_smtpHostname - + textLabel4 @@ -472,7 +472,7 @@ Username: - + kcfg_smtpUsername @@ -488,7 +488,7 @@ - + kcfg_smtpPort @@ -517,7 +517,7 @@ Expanding - + 260 20 @@ -580,13 +580,13 @@ kcfg_port kcfg_lookupTransport - + protocolChanged() showMirrorList() needAuthenticationChanged(bool) - - - + + + kpushbutton.h klineedit.h diff --git a/libkcddb/kcmcddb/kcmcddb.cpp b/libkcddb/kcmcddb/kcmcddb.cpp index 3688ba6a..fa10bc4a 100644 --- a/libkcddb/kcmcddb/kcmcddb.cpp +++ b/libkcddb/kcmcddb/kcmcddb.cpp @@ -45,8 +45,8 @@ typedef KGenericFactory KCDDBFactory; K_EXPORT_COMPONENT_FACTORY ( kcm_cddb, KCDDBFactory( "kcmcddb" ) ) -CDDBModule::CDDBModule(TQWidget *parent, const char *name, const TQStringList &) - : KCModule(parent, name) +CDDBModule::CDDBModule(TQWidget *tqparent, const char *name, const TQStringList &) + : KCModule(tqparent, name) { KGlobal::locale()->insertCatalogue("libkcddb"); setButtons(Default | Apply); @@ -58,10 +58,10 @@ CDDBModule::CDDBModule(TQWidget *parent, const char *name, const TQStringList &) addConfig(cfg, widget_); - TQVBoxLayout * layout = new TQVBoxLayout(this, 0); + TQVBoxLayout * tqlayout = new TQVBoxLayout(this, 0); - layout->addWidget(widget_); - layout->addStretch(); + tqlayout->addWidget(widget_); + tqlayout->addStretch(); setQuickHelp(i18n("CDDB is used to get information like artist, title and song-names in CD's")); @@ -84,8 +84,8 @@ CDDBModule::checkSettings() const config.readConfig(); if (config.smtpHostname().isEmpty() || config.emailAddress().isEmpty() - || !config.emailAddress().contains("@") || - (!config.replyTo().isEmpty() && !config.replyTo().contains("@"))) + || !config.emailAddress().tqcontains("@") || + (!config.replyTo().isEmpty() && !config.replyTo().tqcontains("@"))) { if (config.submitTransport() == KCDDB::Submit::SMTP) diff --git a/libkcddb/kcmcddb/kcmcddb.h b/libkcddb/kcmcddb/kcmcddb.h index 36d42e6f..84978228 100644 --- a/libkcddb/kcmcddb/kcmcddb.h +++ b/libkcddb/kcmcddb/kcmcddb.h @@ -30,10 +30,11 @@ class KConfigDialogManager; class CDDBModule : public KCModule { Q_OBJECT + TQ_OBJECT public: - CDDBModule(TQWidget * parent, const char *name, const TQStringList &); + CDDBModule(TQWidget * tqparent, const char *name, const TQStringList &); public slots: diff --git a/libkcddb/libkcddb.kcfg b/libkcddb/libkcddb.kcfg index cbd123c7..938ac306 100644 --- a/libkcddb/libkcddb.kcfg +++ b/libkcddb/libkcddb.kcfg @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > - qdir.h + tqdir.h @@ -28,7 +28,7 @@ HTTP - QDir::homeDirPath()+"/.cddb/" + TQDir::homeDirPath()+"/.cddb/" diff --git a/libkcddb/lookup.cpp b/libkcddb/lookup.cpp index d7c15956..25c7599e 100644 --- a/libkcddb/lookup.cpp +++ b/libkcddb/lookup.cpp @@ -38,19 +38,19 @@ namespace KCDDB CDDB::Result Lookup::parseQuery( const TQString & line ) { - uint serverStatus = statusCode( line ); + uint servertqStatus = statusCode( line ); - if ( 200 == serverStatus ) + if ( 200 == servertqStatus ) { TQStringList tokenList = TQStringList::split( ' ', line ); - matchList_.append( qMakePair( tokenList[ 1 ], tokenList[ 2 ] ) ); + matchList_.append( tqMakePair( tokenList[ 1 ], tokenList[ 2 ] ) ); return Success; } - else if ( ( 211 == serverStatus ) || ( 210 == serverStatus ) ) + else if ( ( 211 == servertqStatus ) || ( 210 == servertqStatus ) ) { return MultipleRecordFound; } - else if ( 202 == serverStatus ) + else if ( 202 == servertqStatus ) { return NoRecordFound; } @@ -62,15 +62,15 @@ namespace KCDDB Lookup::parseExtraMatch( const TQString & line ) { TQStringList tokenList = TQStringList::split( ' ', line ); - matchList_.append( qMakePair( tokenList[ 0 ], tokenList[ 1 ] ) ); + matchList_.append( tqMakePair( tokenList[ 0 ], tokenList[ 1 ] ) ); } CDDB::Result Lookup::parseRead( const TQString & line ) { - uint serverStatus = statusCode( line ); + uint servertqStatus = statusCode( line ); - if ( 210 != serverStatus ) + if ( 210 != servertqStatus ) return ServerError; return Success; diff --git a/libkcddb/lookup.h b/libkcddb/lookup.h index 96538ac5..c11ad8e6 100644 --- a/libkcddb/lookup.h +++ b/libkcddb/lookup.h @@ -28,10 +28,10 @@ namespace KCDDB { - typedef QPair CDDBMatch; + typedef TQPair CDDBMatch; typedef TQValueList CDDBMatchList; - class Lookup : public CDDB, public QObject + class Lookup : public CDDB, public TQObject { public: diff --git a/libkcddb/sites.cpp b/libkcddb/sites.cpp index 393740fe..18082587 100644 --- a/libkcddb/sites.cpp +++ b/libkcddb/sites.cpp @@ -41,10 +41,10 @@ namespace KCDDB url.setPort( 80 ); url.setPath( "/~cddb/cddb.cgi" ); - url.setQuery( TQString::null ); + url.setQuery( TQString() ); TQString hello = TQString("%1 %2 %3 %4") - .arg(user_, localHostName_, clientName(), clientVersion()); + .tqarg(user_, localHostName_, clientName(), clientVersion()); url.addQueryItem( "cmd", "sites" ); url.addQueryItem( "hello", hello ); diff --git a/libkcddb/smtpsubmit.cpp b/libkcddb/smtpsubmit.cpp index 07f34b61..9733ee40 100644 --- a/libkcddb/smtpsubmit.cpp +++ b/libkcddb/smtpsubmit.cpp @@ -43,7 +43,7 @@ namespace KCDDB KIO::Job* SMTPSubmit::createJob(const CDInfo& cdInfo) { url_.setQuery(TQString("to=%1&subject=cddb %2 %3&from=%4") - .arg(to_, cdInfo.category, cdInfo.id, from_)); + .tqarg(to_, cdInfo.category, cdInfo.id, from_)); kdDebug(60010) << "Url is: " << url_.prettyURL() << endl; return KIO::storedPut(diskData_.utf8(), url_, -1, false, false, false); diff --git a/libkcddb/submit.cpp b/libkcddb/submit.cpp index 63a0951b..8742469d 100644 --- a/libkcddb/submit.cpp +++ b/libkcddb/submit.cpp @@ -57,9 +57,9 @@ namespace KCDDB CDDB::Result Submit::parseWrite( const TQString & line ) { - uint serverStatus = statusCode( line ); + uint servertqStatus = statusCode( line ); - if ( 320 != serverStatus ) + if ( 320 != servertqStatus ) return ServerError; return Success; @@ -74,10 +74,10 @@ namespace KCDDB diskData_ += "# Track frame offsets:\n"; for (uint i=0; i < numTracks; i++) - diskData_ += TQString("#\t%1\n").arg(offsetList[i]); + diskData_ += TQString("#\t%1\n").tqarg(offsetList[i]); int l = offsetList[numTracks+1]/75; - diskData_ += TQString("# Disc length: %1 seconds\n").arg(l); + diskData_ += TQString("# Disc length: %1 seconds\n").tqarg(l); diskData_ += cdInfo.toString(true); @@ -91,7 +91,7 @@ namespace KCDDB << "data" << "folk" << "jazz" << "misc" << "newage" << "reggae" << "rock" << "soundtrack"; - if (validCategories.contains(c)) + if (validCategories.tqcontains(c)) return true; else return false; diff --git a/libkcddb/submit.h b/libkcddb/submit.h index 877b499a..512e69b9 100644 --- a/libkcddb/submit.h +++ b/libkcddb/submit.h @@ -34,7 +34,7 @@ namespace KIO namespace KCDDB { - class Submit : public CDDB, public QObject + class Submit : public CDDB, public TQObject { public: diff --git a/libkcddb/synccddbplookup.cpp b/libkcddb/synccddbplookup.cpp index b2be7618..ed102b9d 100644 --- a/libkcddb/synccddbplookup.cpp +++ b/libkcddb/synccddbplookup.cpp @@ -196,13 +196,13 @@ namespace KCDDB return Success; } - QString + TQString SyncCDDBPLookup::readLine() { if ( !isConnected() ) { kdDebug(60010) << "socket status: " << socket_->state() << endl; - return TQString::null; + return TQString(); } if (!socket_->canReadLine()) @@ -212,7 +212,7 @@ namespace KCDDB socket_->waitForMore(-1,&timeout); if (timeout) - return TQString::null; + return TQString(); } return TQString::fromUtf8(socket_->readLine()); diff --git a/libkcddb/test/asynccddblookuptest.h b/libkcddb/test/asynccddblookuptest.h index db4436e4..fb4b940f 100644 --- a/libkcddb/test/asynccddblookuptest.h +++ b/libkcddb/test/asynccddblookuptest.h @@ -6,9 +6,10 @@ using namespace KCDDB; -class AsyncCDDBLookupTest : public QObject +class AsyncCDDBLookupTest : public TQObject { Q_OBJECT + TQ_OBJECT public: diff --git a/libkcddb/test/asynchttplookuptest.h b/libkcddb/test/asynchttplookuptest.h index 7649f204..e323b5c6 100644 --- a/libkcddb/test/asynchttplookuptest.h +++ b/libkcddb/test/asynchttplookuptest.h @@ -6,9 +6,10 @@ using namespace KCDDB; -class AsyncHTTPLookupTest : public QObject +class AsyncHTTPLookupTest : public TQObject { Q_OBJECT + TQ_OBJECT public: diff --git a/libkcddb/test/asynchttpsubmittest.h b/libkcddb/test/asynchttpsubmittest.h index 6cce8ed2..0a1c8389 100644 --- a/libkcddb/test/asynchttpsubmittest.h +++ b/libkcddb/test/asynchttpsubmittest.h @@ -6,9 +6,10 @@ using namespace KCDDB; -class AsyncHTTPSubmitTest : public QObject +class AsyncHTTPSubmitTest : public TQObject { Q_OBJECT + TQ_OBJECT public: AsyncHTTPSubmitTest(); diff --git a/libkcddb/test/asyncsmtpsubmittest.h b/libkcddb/test/asyncsmtpsubmittest.h index 0e6f445e..01514feb 100644 --- a/libkcddb/test/asyncsmtpsubmittest.h +++ b/libkcddb/test/asyncsmtpsubmittest.h @@ -6,9 +6,10 @@ using namespace KCDDB; -class AsyncSMTPSubmitTest : public QObject +class AsyncSMTPSubmitTest : public TQObject { Q_OBJECT + TQ_OBJECT public: AsyncSMTPSubmitTest(); diff --git a/mpeglib/COPYING b/mpeglib/COPYING index b7047e29..d80c8b62 100644 --- a/mpeglib/COPYING +++ b/mpeglib/COPYING @@ -122,7 +122,7 @@ included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated +all the source code for all modules it tqcontains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. @@ -244,7 +244,7 @@ linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline +structure tqlayouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the diff --git a/mpeglib/README b/mpeglib/README index 6e72c9b8..a2e7893a 100644 --- a/mpeglib/README +++ b/mpeglib/README @@ -8,7 +8,7 @@ PORTS MPEG I library. =============== -This library contains: +This library tqcontains: * mpeg I audio player (layer I,II,III (mp3)) * mpeg I video player diff --git a/mpeglib/example/cddaplay/Makefile.am b/mpeglib/example/cddaplay/Makefile.am index 49f42a2a..a7a5286c 100644 --- a/mpeglib/example/cddaplay/Makefile.am +++ b/mpeglib/example/cddaplay/Makefile.am @@ -10,7 +10,7 @@ cddaplay_SOURCES = cddaplay.cpp noinst_HEADERS = -cddaplay_LDFLAGS = $(all_libraries) +cddaplay_LDFLAGS = $(all_libraries) $(LIB_QT) cddaplay_LDADD = ../../lib/libmpeg.la \ diff --git a/mpeglib/example/mpgplay/Makefile.am b/mpeglib/example/mpgplay/Makefile.am index c76bd4d1..303823d3 100644 --- a/mpeglib/example/mpgplay/Makefile.am +++ b/mpeglib/example/mpgplay/Makefile.am @@ -10,7 +10,7 @@ mpgplay_SOURCES = mpgplay.cpp noinst_HEADERS = -mpgplay_LDFLAGS = $(all_libraries) +mpgplay_LDFLAGS = $(all_libraries) $(LIB_QT) mpgplay_LDADD = ../../lib/libmpeg.la \ $(THIS_LIB_LIBS) diff --git a/mpeglib/example/splay/Makefile.am b/mpeglib/example/splay/Makefile.am index 76e04cff..9da0145c 100644 --- a/mpeglib/example/splay/Makefile.am +++ b/mpeglib/example/splay/Makefile.am @@ -12,12 +12,12 @@ mp3framing_SOURCES = mp3framing.cpp noinst_HEADERS = -splay_LDFLAGS = $(all_libraries) +splay_LDFLAGS = $(all_libraries) $(LIB_QT) splay_LDADD = ../../lib/libmpeg.la \ $(THIS_LIB_LIBS) -mp3framing_LDFLAGS = $(all_libraries) +mp3framing_LDFLAGS = $(all_libraries) $(LIB_QT) mp3framing_LDADD = ../../lib/libmpeg.la \ $(THIS_LIB_LIBS) diff --git a/mpeglib/example/splay/mp3framing.cpp b/mpeglib/example/splay/mp3framing.cpp index 586899a3..ad17657c 100644 --- a/mpeglib/example/splay/mp3framing.cpp +++ b/mpeglib/example/splay/mp3framing.cpp @@ -30,8 +30,8 @@ using namespace std; #include #define INPUT_SIZE 8192 -#define _QUEUE_FLOAT 1 -#define _QUEUE_INT 2 +#define _TQUEUE_FLOAT 1 +#define _TQUEUE_INT 2 void usage() { @@ -52,7 +52,7 @@ void initDSP(DSPWrapper* dsp) { int main(int argc, char** argv) { - int queueType=_QUEUE_INT; + int queueType=_TQUEUE_INT; int samples=8192; PCMFrame* outFrame; @@ -67,7 +67,7 @@ int main(int argc, char** argv) { break; } case 'f': { - queueType=_QUEUE_FLOAT; + queueType=_TQUEUE_FLOAT; break; } case 'c': { @@ -101,10 +101,10 @@ int main(int argc, char** argv) { // so we need a _FRAME_AUDIO_PCM type and we need // for splay at least MP3FRAMESIZE AudioFrameQueue* frameQueue; - if (queueType == _QUEUE_INT) { + if (queueType == _TQUEUE_INT) { frameQueue=new AudioFrameQueue(500,MP3FRAMESIZE,_FRAME_AUDIO_PCM); } - if (queueType == _QUEUE_FLOAT) { + if (queueType == _TQUEUE_FLOAT) { frameQueue=new AudioFrameQueue(100,MP3FRAMESIZE,_FRAME_AUDIO_FLOAT); } @@ -188,12 +188,12 @@ int main(int argc, char** argv) { // // we need to setup the dsp manually, when we do not play pcmFrames directly // - if (queueType == _QUEUE_INT) { + if (queueType == _TQUEUE_INT) { AudioFrame* audioFrame=frameQueue->getCurrent(); dsp->audioSetup(audioFrame); } - if (queueType == _QUEUE_FLOAT) { + if (queueType == _TQUEUE_FLOAT) { AudioFrame* audioFrame=frameQueue->getCurrent(); dsp->audioSetup(audioFrame->getStereo(),16, audioFrame->getSigned(), @@ -220,7 +220,7 @@ int main(int argc, char** argv) { - if (queueType == _QUEUE_INT) { + if (queueType == _TQUEUE_INT) { cout << "reading :"<copy(outFrame->getData(),samples); dsp->audioPlay((char*)outFrame->getData(),hasRead*sizeof(short int)); @@ -228,7 +228,7 @@ int main(int argc, char** argv) { } - if (queueType == _QUEUE_FLOAT) { + if (queueType == _TQUEUE_FLOAT) { int n; hasRead=frameQueue->copy(left,right,samples); diff --git a/mpeglib/example/tplay/Makefile.am b/mpeglib/example/tplay/Makefile.am index c79a2805..2f298a80 100644 --- a/mpeglib/example/tplay/Makefile.am +++ b/mpeglib/example/tplay/Makefile.am @@ -10,7 +10,7 @@ tplay_SOURCES = tplay.cpp noinst_HEADERS = -tplay_LDFLAGS = $(all_libraries) +tplay_LDFLAGS = $(all_libraries) $(LIB_QT) tplay_LDADD = ../../lib/libmpeg.la \ diff --git a/mpeglib/example/yaf/yafcdda/Makefile.am b/mpeglib/example/yaf/yafcdda/Makefile.am index 2930f348..287fc8ea 100644 --- a/mpeglib/example/yaf/yafcdda/Makefile.am +++ b/mpeglib/example/yaf/yafcdda/Makefile.am @@ -10,7 +10,7 @@ yaf_cdda_SOURCES = cdda_control.cpp noinst_HEADERS = -yaf_cdda_LDFLAGS = $(all_libraries) $(KDE_RPATH) +yaf_cdda_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) yaf_cdda_LDADD = ../yafxplayer/libyafxplayer.la \ diff --git a/mpeglib/example/yaf/yafcore/buffer.cpp b/mpeglib/example/yaf/yafcore/buffer.cpp index 3c58f0ee..3f3d6158 100644 --- a/mpeglib/example/yaf/yafcore/buffer.cpp +++ b/mpeglib/example/yaf/yafcore/buffer.cpp @@ -122,7 +122,7 @@ void Buffer::grow(int size) { } -int Buffer::find(char zeichen) { +int Buffer::tqfind(char zeichen) { int i; int nlen=len(); for(i=0;ifind('\n'); + nPos=stack->tqfind('\n'); if (nPos == -1) return false; return true; @@ -45,7 +45,7 @@ void LineStack::nextLine(Buffer* nextLine) { char* data=stack->getData(); int nSize=stack->getSize(); - nPos=stack->find('\n'); + nPos=stack->tqfind('\n'); if (nPos == -1) { nextLine->clear(); return; diff --git a/mpeglib/example/yaf/yafcore/parser.cpp b/mpeglib/example/yaf/yafcore/parser.cpp index 21b27c6b..f9e8fdaa 100644 --- a/mpeglib/example/yaf/yafcore/parser.cpp +++ b/mpeglib/example/yaf/yafcore/parser.cpp @@ -101,7 +101,7 @@ void Parser::parse(char* strStart,int* nCommand){ int Parser::isOK(){ - // a Commandline ist valid when it contains : + // a Commandline ist valid when it tqcontains : // * 2 * (identifer/value) // * first identifier ist "Command" diff --git a/mpeglib/example/yaf/yafcore/yaf_control.cpp b/mpeglib/example/yaf/yafcore/yaf_control.cpp index 6e789588..6192f36b 100644 --- a/mpeglib/example/yaf/yafcore/yaf_control.cpp +++ b/mpeglib/example/yaf/yafcore/yaf_control.cpp @@ -37,7 +37,7 @@ void yaf_control(InputInterface* input, while(1) { - status=decoder->getDecoderStatus(); + status=decoder->getDecodertqStatus(); if (status == _DECODER_STATUS_EXIT) { break; diff --git a/mpeglib/example/yaf/yafmpgplay/Makefile.am b/mpeglib/example/yaf/yafmpgplay/Makefile.am index c9fd9b55..811e3d9a 100644 --- a/mpeglib/example/yaf/yafmpgplay/Makefile.am +++ b/mpeglib/example/yaf/yafmpgplay/Makefile.am @@ -11,7 +11,7 @@ yaf_mpgplay_SOURCES = mpg_control.cpp noinst_HEADERS = -yaf_mpgplay_LDFLAGS = $(all_libraries) $(KDE_RPATH) +yaf_mpgplay_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) yaf_mpgplay_LDADD = ../yafcore/libyafcore.la \ diff --git a/mpeglib/example/yaf/yafsplay/Makefile.am b/mpeglib/example/yaf/yafsplay/Makefile.am index 463ec7db..40c8196d 100644 --- a/mpeglib/example/yaf/yafsplay/Makefile.am +++ b/mpeglib/example/yaf/yafsplay/Makefile.am @@ -11,7 +11,7 @@ yaf_splay_SOURCES = splay_control.cpp noinst_HEADERS = -yaf_splay_LDFLAGS = $(all_libraries) $(KDE_RPATH) +yaf_splay_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) yaf_splay_LDADD = ../yafxplayer/libyafxplayer.la \ diff --git a/mpeglib/example/yaf/yaftplay/Makefile.am b/mpeglib/example/yaf/yaftplay/Makefile.am index 2d82700d..96b596ba 100644 --- a/mpeglib/example/yaf/yaftplay/Makefile.am +++ b/mpeglib/example/yaf/yaftplay/Makefile.am @@ -9,7 +9,7 @@ yaf_tplay_SOURCES = tplay_control.cpp noinst_HEADERS = -yaf_tplay_LDFLAGS = $(all_libraries) $(KDE_RPATH) +yaf_tplay_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) yaf_tplay_LDADD = ../yafcore/libyafcore.la \ diff --git a/mpeglib/example/yaf/yafvorbis/Makefile.am b/mpeglib/example/yaf/yafvorbis/Makefile.am index f0a01965..d07fdbdf 100644 --- a/mpeglib/example/yaf/yafvorbis/Makefile.am +++ b/mpeglib/example/yaf/yafvorbis/Makefile.am @@ -10,7 +10,7 @@ yaf_vorbis_SOURCES = vorbis_control.cpp noinst_HEADERS = -yaf_vorbis_LDFLAGS = $(all_libraries) $(KDE_RPATH) +yaf_vorbis_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) yaf_vorbis_LDADD = \ ../yafcore/libyafcore.la \ diff --git a/mpeglib/example/yaf/yafxplayer/inputDecoderXPlayer.cpp b/mpeglib/example/yaf/yafxplayer/inputDecoderXPlayer.cpp index 4b3bf3b3..00e9a213 100644 --- a/mpeglib/example/yaf/yafxplayer/inputDecoderXPlayer.cpp +++ b/mpeglib/example/yaf/yafxplayer/inputDecoderXPlayer.cpp @@ -29,7 +29,7 @@ InputDecoderXPlayer::InputDecoderXPlayer(YafOutputStream* yafOutput) : this->yafOutput=yafOutput; ct=new CommandTableXPlayer(); - setDecoderStatus(_DECODER_STATUS_IDLE); + setDecodertqStatus(_DECODER_STATUS_IDLE); appendCommandTable(ct); majorMode=_PLAYER_MAJOR_MODE_OFF; setRuntimeInfo(false); @@ -161,7 +161,7 @@ const char* InputDecoderXPlayer::processCommand(int command,const char* args){ } if (command == _PLAYER_PLAY) { - setDecoderStatus(_DECODER_STATUS_WORKING); + setDecodertqStatus(_DECODER_STATUS_WORKING); setMajorMode(_PLAYER_MAJOR_MODE_PLAYING); return""; } @@ -186,7 +186,7 @@ const char* InputDecoderXPlayer::processCommand(int command,const char* args){ return "already output file selected"; } yafOutput->setStreamFile(args); - // now we have set the fifo. But we must say the parent + // now we have set the fifo. But we must say the tqparent // process that we start with waiting cout << "Command:0 Msg:fileopen before"<getLayer() == _PACKET_SYSLAYER) { lSysLayer=true; mpegStreamPlayer->processSystemHeader(mpegSystemHeader); diff --git a/mpeglib/lib/frame/IOFrameQueue.h b/mpeglib/lib/frame/IOFrameQueue.h index d56f25aa..98780096 100644 --- a/mpeglib/lib/frame/IOFrameQueue.h +++ b/mpeglib/lib/frame/IOFrameQueue.h @@ -12,8 +12,8 @@ -#ifndef __IOFRAMEQUEUE_H -#define __IOFRAMEQUEUE_H +#ifndef __IOFRAMETQUEUE_H +#define __IOFRAMETQUEUE_H #include "frameQueue.h" #include diff --git a/mpeglib/lib/frame/README b/mpeglib/lib/frame/README index 9e21059f..e54bd918 100644 --- a/mpeglib/lib/frame/README +++ b/mpeglib/lib/frame/README @@ -27,7 +27,7 @@ IOFrameQueues ============= IOFrameQueues deal with the problem, that you first start -with an empty FrameQueue (this is a FrameQueue which contains +with an empty FrameQueue (this is a FrameQueue which tqcontains prealloceated data, but the data is empty (eg:all pcm samples zero) Only after converting an "empty" Frame by a decoder (mp3decoder) the frame if "full" (== Frame with data) @@ -58,7 +58,7 @@ A IOFrameQueue, which allows converting "dataFrames back to continous stream". What is this? Lets say an application wants only 20 byte from a dataFrame which -contains 3KB of data? +tqcontains 3KB of data? There must be some mechanism to read less or more data from the queue. And the data should be written to a continus memory segment. diff --git a/mpeglib/lib/frame/audioFrameQueue.h b/mpeglib/lib/frame/audioFrameQueue.h index 7e7a01c0..0582af76 100644 --- a/mpeglib/lib/frame/audioFrameQueue.h +++ b/mpeglib/lib/frame/audioFrameQueue.h @@ -12,8 +12,8 @@ -#ifndef __AUDIOFRAMEQUE_H -#define __AUDIOFRAMEQUE_H +#ifndef __AUDIOFRAMETQUE_H +#define __AUDIOFRAMETQUE_H #include "IOFrameQueue.h" #include "floatFrame.h" diff --git a/mpeglib/lib/frame/frameQueue.h b/mpeglib/lib/frame/frameQueue.h index 27747aa3..6e42c678 100644 --- a/mpeglib/lib/frame/frameQueue.h +++ b/mpeglib/lib/frame/frameQueue.h @@ -13,8 +13,8 @@ -#ifndef __FRAMEQUEUE_H -#define __FRAMEQUEUE_H +#ifndef __FRAMETQUEUE_H +#define __FRAMETQUEUE_H #include "frame.h" diff --git a/mpeglib/lib/frame/framer.cpp b/mpeglib/lib/frame/framer.cpp index d380b2ec..2882864d 100644 --- a/mpeglib/lib/frame/framer.cpp +++ b/mpeglib/lib/frame/framer.cpp @@ -223,7 +223,7 @@ int Framer::read_frame(RawDataBuffer* ,RawDataBuffer* ) { void Framer::unsync(RawDataBuffer* ,int ) { if (lConstruct == false) { - // invalidate header in buffer + // tqinvalidate header in buffer cout << "direct virtual call Framer::unsync"< flushed += X; * next16bits &= bitMask[flushed]; * - * I've streamlined the code a lot, so that we don't have to mask + * I've streamlined the code a lot, so that we don't have to tqmask * out the low order bits and a few of the extra adds are removed. * bsmith */ diff --git a/mpeglib/lib/mpegplay/jrevdct.h b/mpeglib/lib/mpegplay/jrevdct.h index d280c2ce..24ab126f 100644 --- a/mpeglib/lib/mpegplay/jrevdct.h +++ b/mpeglib/lib/mpegplay/jrevdct.h @@ -24,7 +24,7 @@ extern "C" { #ifndef XMD_H typedef int INT32; typedef short INT16; -typedef char INT8; +// typedef char INT8; #endif typedef unsigned int UINT32; typedef unsigned short UINT16; diff --git a/mpeglib/lib/mpegplay/macroBlock.cpp b/mpeglib/lib/mpegplay/macroBlock.cpp index 2e35e551..730fdd62 100644 --- a/mpeglib/lib/mpegplay/macroBlock.cpp +++ b/mpeglib/lib/mpegplay/macroBlock.cpp @@ -329,7 +329,7 @@ int MacroBlock::reconstruct(int& recon_right_for, int& mb_motion_forw, int& mb_motion_back, PictureArray* pictureArray) { - int mask, i; + int tqmask, i; int zero_block_flag; int mb_row; int mb_col; @@ -364,11 +364,11 @@ int MacroBlock::reconstruct(int& recon_right_for, copyFunctions->startNOFloatSection(); - for (mask = 32, i = 0; i < 6; mask >>= 1, i++) { + for (tqmask = 32, i = 0; i < 6; tqmask >>= 1, i++) { /* If block exists... */ - if ((mb_intra) || (cbp & mask)) { + if ((mb_intra) || (cbp & tqmask)) { zero_block_flag = 0; //copyFunctions->endNOFloatSection(); decoderClass->ParseReconBlock(i,mb_intra, @@ -1067,7 +1067,7 @@ void MacroBlock::ReconSkippedBlock(unsigned char* source, if (width == 16) { if ((!right_half) && (!down_half)) { if (right & 0x1) { - /* No alignment, use bye copy */ + /* No tqalignment, use bye copy */ for (rr = 0; rr < 16; rr++) { memcpy(dest,source,sizeof(char)*16); diff --git a/mpeglib/lib/mpegplay/mpegExtension.cpp b/mpeglib/lib/mpegplay/mpegExtension.cpp index 657fe683..3fc89215 100644 --- a/mpeglib/lib/mpegplay/mpegExtension.cpp +++ b/mpeglib/lib/mpegplay/mpegExtension.cpp @@ -89,7 +89,7 @@ int MpegExtension::processExtra_bit_info(MpegVideoStream* mpegVideoStream) { -int MpegExtension::next_bits(int num,unsigned int mask, +int MpegExtension::next_bits(int num,unsigned int tqmask, MpegVideoStream* input) { unsigned int data; @@ -97,11 +97,11 @@ int MpegExtension::next_bits(int num,unsigned int mask, data=input->showBits(num); - /* Compare bit stream and mask. Set return value toTRUE if equal, FALSE if + /* Compare bit stream and tqmask. Set return value toTRUE if equal, FALSE if differs. */ - if (mask == data) { + if (tqmask == data) { return true; } return false; diff --git a/mpeglib/lib/mpegplay/mpegExtension.h b/mpeglib/lib/mpegplay/mpegExtension.h index 23b79c5b..3b0f1680 100644 --- a/mpeglib/lib/mpegplay/mpegExtension.h +++ b/mpeglib/lib/mpegplay/mpegExtension.h @@ -43,7 +43,7 @@ class MpegExtension { private: char* get_extra_bit_info(MpegVideoStream* mpegVideoStream); - int next_bits(int num,unsigned int mask,MpegVideoStream* input); + int next_bits(int num,unsigned int tqmask,MpegVideoStream* input); }; #endif diff --git a/mpeglib/lib/mpegplay/mpegSystemStream.cpp b/mpeglib/lib/mpegplay/mpegSystemStream.cpp index ca25d7e8..d4ec43a6 100644 --- a/mpeglib/lib/mpegplay/mpegSystemStream.cpp +++ b/mpeglib/lib/mpegplay/mpegSystemStream.cpp @@ -68,7 +68,7 @@ int MpegSystemStream::firstInitialize(MpegSystemHeader* mpegHeader) { } mpegHeader->setHeader(syncCode); - // SEQ_START_CODE: 1b3 + // SETQ_START_CODE: 1b3 if (mpegHeader->hasRAWHeader()) { // If we found a seq_heade_start code we assume // that we are a video only stream diff --git a/mpeglib/lib/mpegplay/mpegVideoBitWindow.h b/mpeglib/lib/mpegplay/mpegVideoBitWindow.h index 46abe44e..5c957e4d 100644 --- a/mpeglib/lib/mpegplay/mpegVideoBitWindow.h +++ b/mpeglib/lib/mpegplay/mpegVideoBitWindow.h @@ -53,10 +53,10 @@ class MpegVideoBitWindow { inline unsigned int showBits(int bits) { - unsigned int mask=nBitMask[bits]; + unsigned int tqmask=nBitMask[bits]; int shift=32-(bits); int bO; - shift=(curBits & mask)>>shift; + shift=(curBits & tqmask)>>shift; bO = bit_offset + bits; if (bO > 32) { return (shift | (*(buffer+1)>>(64-bO))); diff --git a/mpeglib/lib/mpegplay/mpegVideoStream.cpp b/mpeglib/lib/mpegplay/mpegVideoStream.cpp index 5e16b116..8ce1defd 100644 --- a/mpeglib/lib/mpegplay/mpegVideoStream.cpp +++ b/mpeglib/lib/mpegplay/mpegVideoStream.cpp @@ -48,7 +48,7 @@ int MpegVideoStream::firstInitialize(MpegVideoHeader* mpegHeader) { fill_videoBuffer(mpegSystemHeader); lHasStream=true; } - // now find SEQ_START_CODE + // now find SETQ_START_CODE hasBytes(4); mpegVideoBitWindow->flushByteOffset(); @@ -70,8 +70,8 @@ int MpegVideoStream::firstInitialize(MpegVideoHeader* mpegHeader) { int MpegVideoStream::isStartCode(unsigned int data) { switch(data) { - case SEQ_END_CODE: - case SEQ_START_CODE: + case SETQ_END_CODE: + case SETQ_START_CODE: case GOP_START_CODE: case PICTURE_START_CODE: case SLICE_MIN_START_CODE: @@ -125,7 +125,7 @@ int MpegVideoStream::nextPIC() { unsigned int data=showBits(32); if ( (data != PICTURE_START_CODE) && (data != GOP_START_CODE) && - (data != SEQ_START_CODE) ) { + (data != SETQ_START_CODE) ) { flushBits(8); return false; } diff --git a/mpeglib/lib/mpegplay/pesSystemStream.cpp b/mpeglib/lib/mpegplay/pesSystemStream.cpp index 10787f21..b9915fc2 100644 --- a/mpeglib/lib/mpegplay/pesSystemStream.cpp +++ b/mpeglib/lib/mpegplay/pesSystemStream.cpp @@ -192,7 +192,7 @@ int PESSystemStream::processMPEG2PacketHeader(MpegSystemHeader* mpegHeader){ //LIVID u_char original_or_copy : 1; u_char copyright : 1; - u_char data_alignment_indicator : 1; + u_char data_tqalignment_indicator : 1; u_char pes_priority : 1; u_char pes_scrambling_control : 2; u_char start_code_prefix : 2; // 0x02 diff --git a/mpeglib/lib/mpegplay/picture.cpp b/mpeglib/lib/mpegplay/picture.cpp index 6d8c1efe..b63f4989 100644 --- a/mpeglib/lib/mpegplay/picture.cpp +++ b/mpeglib/lib/mpegplay/picture.cpp @@ -63,7 +63,7 @@ int Picture::processPicture(MpegVideoStream* mpegVideoStream) { stamp=mpegVideoStream->getCurrentTimeStamp(); stamp->copyTo(startOfPicStamp); - // now invalidate the PTSFlag + // now tqinvalidate the PTSFlag stamp->setPTSFlag(false); diff --git a/mpeglib/lib/mpegplay/recon.cpp b/mpeglib/lib/mpegplay/recon.cpp index 6116157a..81350345 100644 --- a/mpeglib/lib/mpegplay/recon.cpp +++ b/mpeglib/lib/mpegplay/recon.cpp @@ -298,7 +298,7 @@ int Recon::ReconPMBlock(int bnum, } else { if (right_for & 0x1) { - /* No alignment, used byte copy */ + /* No tqalignment, used byte copy */ copyFunctions->copy8_byte(rindex1,index,row_size); @@ -498,7 +498,7 @@ int Recon::ReconBMBlock(int bnum, copyFunctions->copy8_src2linear_crop(rindex1,dct_start,index,row_size); } else { if (right_back & 0x1) { - /* No alignment, use byte copy */ + /* No tqalignment, use byte copy */ copyFunctions->copy8_byte(rindex1,index,row_size); diff --git a/mpeglib/lib/mpegplay/slice.h b/mpeglib/lib/mpegplay/slice.h index 10689d34..13556155 100644 --- a/mpeglib/lib/mpegplay/slice.h +++ b/mpeglib/lib/mpegplay/slice.h @@ -38,7 +38,7 @@ class Slice { /* Slice structure. */ - unsigned int vert_pos; /* Vertical position of slice. */ + unsigned int vert_pos; /*Qt::Vertical position of slice. */ unsigned int quant_scale; /* Quantization scale. */ MpegExtension* mpegExtension; /* Extra bit slice info. */ diff --git a/mpeglib/lib/mpegplay/startCodes.h b/mpeglib/lib/mpegplay/startCodes.h index c305a39f..94c2a56e 100644 --- a/mpeglib/lib/mpegplay/startCodes.h +++ b/mpeglib/lib/mpegplay/startCodes.h @@ -29,8 +29,8 @@ /* Start codes. */ -#define SEQ_END_CODE 0x000001b7 -#define SEQ_START_CODE 0x000001b3 +#define SETQ_END_CODE 0x000001b7 +#define SETQ_START_CODE 0x000001b3 #define GOP_START_CODE 0x000001b8 #define PICTURE_START_CODE 0x00000100 #define SLICE_MIN_START_CODE 0x00000101 @@ -42,7 +42,7 @@ //extension start code ids #define SEQUENCE_EXTENSION_ID 1 #define SEQUENCE_DISPLAY_EXTENSION_ID 2 -#define QUANT_MATRIX_EXTENSION_ID 3 +#define TQUANT_MATRIX_EXTENSION_ID 3 #define COPYRIGHT_EXTENSION_ID 4 #define SEQUENCE_SCALABLE_EXTENSION_ID 5 #define PICTURE_DISPLAY_EXTENSION_ID 7 diff --git a/mpeglib/lib/mpegplay/videoDecoder.cpp b/mpeglib/lib/mpegplay/videoDecoder.cpp index b1971795..b7144291 100644 --- a/mpeglib/lib/mpegplay/videoDecoder.cpp +++ b/mpeglib/lib/mpegplay/videoDecoder.cpp @@ -69,7 +69,7 @@ VideoDecoder::~VideoDecoder() { * * mpegVidRsrc -- * - * Parses bit stream until MB_QUANTUM number of + * Parses bit stream until MB_TQUANTUM number of * macroblocks have been decoded or current slice or * picture ends, whichever comes first. If the start * of a frame is encountered, the frame is time stamped @@ -121,7 +121,7 @@ int VideoDecoder::mpegVidRsrc(PictureArray* pictureArray) { mpegVideoStream->flushBits(32); packet->read_sys(data,vid_stream->bufferReader); */ - case SEQ_END_CODE: + case SETQ_END_CODE: case ISO_11172_END_CODE: /* handle ISO_11172_END_CODE too */ /* Display last frame. */ @@ -148,11 +148,11 @@ int VideoDecoder::mpegVidRsrc(PictureArray* pictureArray) { mpegVideoStream->next_start_code(); break; - case SEQ_START_CODE: + case SETQ_START_CODE: /* Sequence start code. Parse sequence header. */ if (ParseSeqHead() == false) { - printf("SEQ_START_CODE 1-error\n"); + printf("SETQ_START_CODE 1-error\n"); goto error; } goto done; @@ -204,8 +204,8 @@ int VideoDecoder::mpegVidRsrc(PictureArray* pictureArray) { break; } - /* Parse next MB_QUANTUM macroblocks. */ - for (i = 0; i < MB_QUANTUM; i++) { + /* Parse next MB_TQUANTUM macroblocks. */ + for (i = 0; i < MB_TQUANTUM; i++) { /* Check to see if actually a startcode and not a macroblock. */ data=mpegVideoStream->showBits(23); @@ -232,7 +232,7 @@ int VideoDecoder::mpegVidRsrc(PictureArray* pictureArray) { } } data=mpegVideoStream->showBits(23); - /* Check if we just finished a picture on the MB_QUANTUM macroblock */ + /* Check if we just finished a picture on the MB_TQUANTUM macroblock */ if (data == 0x0) { mpegVideoStream->next_start_code(); diff --git a/mpeglib/lib/mpegplay/videoDecoder.h b/mpeglib/lib/mpegplay/videoDecoder.h index cba45a29..695b424d 100644 --- a/mpeglib/lib/mpegplay/videoDecoder.h +++ b/mpeglib/lib/mpegplay/videoDecoder.h @@ -53,7 +53,7 @@ /* Number of macroblocks to process in one call to mpegVidRsrc. */ -#define MB_QUANTUM 100 +#define MB_TQUANTUM 100 /* Video stream structure. */ diff --git a/mpeglib/lib/output/outputStream.cpp b/mpeglib/lib/output/outputStream.cpp index ef209cbc..560ab75f 100644 --- a/mpeglib/lib/output/outputStream.cpp +++ b/mpeglib/lib/output/outputStream.cpp @@ -198,7 +198,7 @@ int OutputStream::getFrameusec() { -int OutputStream::waitStreamState(int method,int mask,int streamType) { +int OutputStream::waitStreamState(int method,int tqmask,int streamType) { int* waitState=NULL; switch(streamType) { @@ -216,9 +216,9 @@ int OutputStream::waitStreamState(int method,int mask,int streamType) { if (method == _OUTPUT_WAIT_METHOD_BLOCK) { abs_thread_mutex_lock(&stateChangeMut); - while ((*waitState &= mask)==0) { + while ((*waitState &= tqmask)==0) { cout << "waitStreamState:"<ptr(); start[0]=0x0; start[1]=0x0; diff --git a/mpeglib/lib/splay/mpegAudioHeader.cpp b/mpeglib/lib/splay/mpegAudioHeader.cpp index 7e34b212..31e97563 100644 --- a/mpeglib/lib/splay/mpegAudioHeader.cpp +++ b/mpeglib/lib/splay/mpegAudioHeader.cpp @@ -116,7 +116,7 @@ int MpegAudioHeader::parseHeader(unsigned char* buf){ inputstereo= (mode==_MODE_SINGLE)?0:1; // - // frequency can be 0,1 or 2 but the mask above allows 3 as well + // frequency can be 0,1 or 2 but the tqmask above allows 3 as well // check now. if (frequency > 2) { DEBUG_HEADER(cout << "frequency value out of range"< @@ -37,9 +37,9 @@ WaitThreadEntry::~WaitThreadEntry() { ThreadQueue::ThreadQueue() { - waitThreadEntries=new WaitThreadEntry* [_MAX_THREAD_IN_QUEUE]; + waitThreadEntries=new WaitThreadEntry* [_MAX_THREAD_IN_TQUEUE]; int i; - for(i=0;i<_MAX_THREAD_IN_QUEUE;i++) { + for(i=0;i<_MAX_THREAD_IN_TQUEUE;i++) { waitThreadEntries[i]=new WaitThreadEntry(); } abs_thread_mutex_init(&queueMut); @@ -56,7 +56,7 @@ ThreadQueue::~ThreadQueue() { exit(0); } int i; - for(i=0;i<_MAX_THREAD_IN_QUEUE;i++) { + for(i=0;i<_MAX_THREAD_IN_TQUEUE;i++) { delete waitThreadEntries[i]; } delete [] waitThreadEntries; @@ -73,14 +73,14 @@ void ThreadQueue::waitForExclusiveAccess() { } // wait size++; - if (size == _MAX_THREAD_IN_QUEUE) { - cout << "Aieee! ThreadQueue can only buffer:"<<_MAX_THREAD_IN_QUEUE<waitCond); insertPos++; // wrap counter - if (insertPos == _MAX_THREAD_IN_QUEUE) { + if (insertPos == _MAX_THREAD_IN_TQUEUE) { insertPos=0; } abs_thread_cond_wait(waitCond,&queueMut); @@ -98,7 +98,7 @@ void ThreadQueue::releaseExclusiveAccess() { abs_thread_cond_t* waitCond=&(waitThreadEntries[removePos]->waitCond); removePos++; // wrap counter - if (removePos == _MAX_THREAD_IN_QUEUE) { + if (removePos == _MAX_THREAD_IN_TQUEUE) { removePos=0; } size--; diff --git a/mpeglib/lib/util/abstract/threadQueue.h b/mpeglib/lib/util/abstract/threadQueue.h index 4c650e21..765713b6 100644 --- a/mpeglib/lib/util/abstract/threadQueue.h +++ b/mpeglib/lib/util/abstract/threadQueue.h @@ -11,8 +11,8 @@ */ -#ifndef __THREADQUEUE_H -#define __THREADQUEUE_H +#ifndef __THREADTQUEUE_H +#define __THREADTQUEUE_H #include "abs_thread.h" diff --git a/mpeglib/lib/util/dynBuffer.cpp b/mpeglib/lib/util/dynBuffer.cpp index c93d5381..c1eb2a9d 100644 --- a/mpeglib/lib/util/dynBuffer.cpp +++ b/mpeglib/lib/util/dynBuffer.cpp @@ -132,7 +132,7 @@ void DynBuffer::grow(int size) { } -int DynBuffer::find(char zeichen) { +int DynBuffer::tqfind(char zeichen) { int i; int nlen=len(); for(i=0;i> (8 - number_of_bits_set(red_mask)); - r_2_pix_alloc[i + 256] <<= free_bits_at_bottom(red_mask); - g_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(green_mask)); - g_2_pix_alloc[i + 256] <<= free_bits_at_bottom(green_mask); - b_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(blue_mask)); - b_2_pix_alloc[i + 256] <<= free_bits_at_bottom(blue_mask); + r_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(red_tqmask)); + r_2_pix_alloc[i + 256] <<= free_bits_at_bottom(red_tqmask); + g_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(green_tqmask)); + g_2_pix_alloc[i + 256] <<= free_bits_at_bottom(green_tqmask); + b_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(blue_tqmask)); + b_2_pix_alloc[i + 256] <<= free_bits_at_bottom(blue_tqmask); /* * If we have 16-bit output depth, then we double the value * in the top word. This means that we can write out both diff --git a/mpeglib/lib/util/render/dither/ditherer_mmx16.cpp b/mpeglib/lib/util/render/dither/ditherer_mmx16.cpp index 757f0676..1de9cc17 100644 --- a/mpeglib/lib/util/render/dither/ditherer_mmx16.cpp +++ b/mpeglib/lib/util/render/dither/ditherer_mmx16.cpp @@ -26,8 +26,8 @@ static unsigned short MMX16_Vredcoeff[] = {0x66, 0x66, 0x66, 0x66}; static unsigned short MMX16_Ugrncoeff[] = {0xffe8, 0xffe8, 0xffe8, 0xffe8}; static unsigned short MMX16_Vgrncoeff[] = {0xffcd, 0xffcd, 0xffcd, 0xffcd}; static unsigned short MMX16_Ycoeff[] = {0x4a, 0x4a, 0x4a, 0x4a}; -static unsigned short MMX16_redmask[] = {0xf800, 0xf800, 0xf800, 0xf800}; -static unsigned short MMX16_grnmask[] = {0x7e0, 0x7e0, 0x7e0, 0x7e0}; +static unsigned short MMX16_redtqmask[] = {0xf800, 0xf800, 0xf800, 0xf800}; +static unsigned short MMX16_grntqmask[] = {0x7e0, 0x7e0, 0x7e0, 0x7e0}; void dummy_dithermmx16() { cout << "MMX16_0"<display; @@ -152,7 +152,7 @@ void CreateFullColorWindow (XWindow* xwindow) { cout << "visual is null"<colormap==0) { xswa.colormap = XCreateColormap(dpy, XRootWindow(dpy, screen), @@ -166,7 +166,7 @@ void CreateFullColorWindow (XWindow* xwindow) { /* xwindow->window = XCreateWindow(dpy, RootWindow(dpy, screen), x, y, w, h, (unsigned int) 1, depth, c_class, - visual, mask, &xswa); + visual, tqmask, &xswa); */ } diff --git a/mpeglib/lib/util/render/x11/x11Surface.cpp b/mpeglib/lib/util/render/x11/x11Surface.cpp index d7b8f052..0aaf7743 100644 --- a/mpeglib/lib/util/render/x11/x11Surface.cpp +++ b/mpeglib/lib/util/render/x11/x11Surface.cpp @@ -183,7 +183,7 @@ int X11Surface::open(int width, int height,const char *title, bool border) { } else { // depth is <= 8 // allocate memory for dithertables - // gets the rgb masks + // gets the rgb tqmasks initColorDisplay(xWindow); // create 8 bit dithertables // create private colormap diff --git a/mpeglib_artsplug/Makefile.am b/mpeglib_artsplug/Makefile.am index 5cc7af54..1fe9b85e 100644 --- a/mpeglib_artsplug/Makefile.am +++ b/mpeglib_artsplug/Makefile.am @@ -94,7 +94,7 @@ libarts_splay_la_LIBADD = $(top_builddir)/mpeglib/lib/libmpeg.la \ bin_PROGRAMS = mpeglibartsplay -mpeglibartsplay_LDFLAGS = $(ARTSC_LIBS) $(all_libraries) +mpeglibartsplay_LDFLAGS = $(ARTSC_LIBS) $(all_libraries) $(LIB_QT) mpeglibartsplay_SOURCES = mpeglibartsplay.cpp mpeglibartsplay_LDADD = -lsoundserver_idl \ diff --git a/mpeglib_artsplug/doemacs b/mpeglib_artsplug/doemacs index a875517d..f4497eca 100644 --- a/mpeglib_artsplug/doemacs +++ b/mpeglib_artsplug/doemacs @@ -1,6 +1,6 @@ -A=`find . | grep -v moc > flist.txt` +A=`tqfind . | grep -v tqmoc > flist.txt` A=`grep "\.cpp$" flist.txt >cpp.txt` A=`grep "\.h$" flist.txt >h.txt` A=`grep "\.c$" flist.txt >c.txt` diff --git a/mpg123_artsplugin/dxhead.h b/mpg123_artsplugin/dxhead.h index 16a6a0fc..c84b15c9 100644 --- a/mpg123_artsplugin/dxhead.h +++ b/mpg123_artsplugin/dxhead.h @@ -10,7 +10,7 @@ Copyright 1998 Xing Technology Corp. -----------------------------------------------------------*/ /* A Xing header may be present in the ancillary * data field of the first frame of an mp3 bitstream - * The Xing header (optionally) contains + * The Xing header (optionally) tqcontains * frames total number of audio frames in the bitstream * bytes total number of bytes in the bitstream * toc table of contents diff --git a/mpg123_artsplugin/mpg123/buffer.c b/mpg123_artsplugin/mpg123/buffer.c index 3c85b654..33b4c92b 100644 --- a/mpg123_artsplugin/mpg123/buffer.c +++ b/mpg123_artsplugin/mpg123/buffer.c @@ -95,7 +95,7 @@ void buffer_loop(struct audio_info_struct *ai, sigset_t *oldsigset) catchsignal (SIGINT, catch_interrupt); catchsignal (SIGUSR1, catch_usr1); - sigprocmask (SIG_SETMASK, oldsigset, NULL); + sigproctqmask (SIG_SETMASK, oldsigset, NULL); #ifndef NO_DECODE_AUDIO if (param.outmode == DECODE_AUDIO) { if (audio_open(ai) < 0) { diff --git a/mpg123_artsplugin/mpg123/common.c b/mpg123_artsplugin/mpg123/common.c index 65d658fd..cd7cc121 100644 --- a/mpg123_artsplugin/mpg123/common.c +++ b/mpg123_artsplugin/mpg123/common.c @@ -114,7 +114,7 @@ void (*catchsignal(int signum, void(*handler)()))() #endif new_sa.sa_handler = handler; - sigemptyset(&new_sa.sa_mask); + sigemptyset(&new_sa.sa_tqmask); new_sa.sa_flags = 0; if (sigaction(signum, &new_sa, &old_sa) == -1) return ((void (*)()) -1); diff --git a/mpg123_artsplugin/mpg123/httpget.c b/mpg123_artsplugin/mpg123/httpget.c index 71750115..12c6941f 100644 --- a/mpg123_artsplugin/mpg123/httpget.c +++ b/mpg123_artsplugin/mpg123/httpget.c @@ -83,7 +83,7 @@ void readstring (char *string, int maxlen, FILE *f) void encode64 (char *source,char *destination) { static char *Base64Digits = - "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + "ABCDEFGHIJKLMNOPTQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; int n = 0; int ssiz=strlen(source); int i; diff --git a/mpg123_artsplugin/mpg123/layer3.c b/mpg123_artsplugin/mpg123/layer3.c index b4f33510..b012047a 100644 --- a/mpg123_artsplugin/mpg123/layer3.c +++ b/mpg123_artsplugin/mpg123/layer3.c @@ -612,7 +612,7 @@ static int pretab2[22] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; #define BITSHIFT ((sizeof(long)-1)*8) #define REFRESH_MASK \ while(num < BITSHIFT) { \ - mask |= ((unsigned long)getbyte(&bsi))<<(BITSHIFT-num); \ + tqmask |= ((unsigned long)getbyte(&bsi))<<(BITSHIFT-num); \ num += 8; \ part2remain -= 8; } @@ -626,10 +626,10 @@ static int III_dequantize_sample(real xr[SBLIMIT][SSLIMIT],int *scf, int *me; int num=getbitoffset(&bsi); - long mask; + long tqmask; /* we must split this, because for num==0 the shift is undefined if you do it in one step */ - mask = ((unsigned long) getbits(&bsi,num))<table; REFRESH_MASK; while((y=*val++)<0) { - if (mask < 0) + if (tqmask < 0) val -= y; num--; - mask <<= 1; + tqmask <<= 1; } x = y >> 4; y &= 0xf; @@ -713,23 +713,23 @@ static int III_dequantize_sample(real xr[SBLIMIT][SSLIMIT],int *scf, if(x == 15 && h->linbits) { max[lwin] = cb; REFRESH_MASK; - x += ((unsigned long) mask) >> (BITSHIFT+8-h->linbits); + x += ((unsigned long) tqmask) >> (BITSHIFT+8-h->linbits); num -= h->linbits+1; - mask <<= h->linbits; - if(mask < 0) + tqmask <<= h->linbits; + if(tqmask < 0) *xrpnt = REAL_MUL(-ispow[x], v); else *xrpnt = REAL_MUL(ispow[x], v); - mask <<= 1; + tqmask <<= 1; } else if(x) { max[lwin] = cb; - if(mask < 0) + if(tqmask < 0) *xrpnt = REAL_MUL(-ispow[x], v); else *xrpnt = REAL_MUL(ispow[x], v); num--; - mask <<= 1; + tqmask <<= 1; } else *xrpnt = DOUBLE_TO_REAL(0.0); @@ -737,23 +737,23 @@ static int III_dequantize_sample(real xr[SBLIMIT][SSLIMIT],int *scf, if(y == 15 && h->linbits) { max[lwin] = cb; REFRESH_MASK; - y += ((unsigned long) mask) >> (BITSHIFT+8-h->linbits); + y += ((unsigned long) tqmask) >> (BITSHIFT+8-h->linbits); num -= h->linbits+1; - mask <<= h->linbits; - if(mask < 0) + tqmask <<= h->linbits; + if(tqmask < 0) *xrpnt = REAL_MUL(-ispow[y], v); else *xrpnt = REAL_MUL(ispow[y], v); - mask <<= 1; + tqmask <<= 1; } else if(y) { max[lwin] = cb; - if(mask < 0) + if(tqmask < 0) *xrpnt = REAL_MUL(-ispow[y], v); else *xrpnt = REAL_MUL(ispow[y], v); num--; - mask <<= 1; + tqmask <<= 1; } else *xrpnt = DOUBLE_TO_REAL(0.0); @@ -767,10 +767,10 @@ static int III_dequantize_sample(real xr[SBLIMIT][SSLIMIT],int *scf, REFRESH_MASK; while((a=*val++)<0) { - if (mask < 0) + if (tqmask < 0) val -= a; num--; - mask <<= 1; + tqmask <<= 1; } if(part2remain+num <= 0) { num -= part2remain+num; @@ -800,12 +800,12 @@ static int III_dequantize_sample(real xr[SBLIMIT][SSLIMIT],int *scf, if(part2remain+num <= 0) { break; } - if(mask < 0) + if(tqmask < 0) *xrpnt = -v; else *xrpnt = v; num--; - mask <<= 1; + tqmask <<= 1; } else *xrpnt = DOUBLE_TO_REAL(0.0); @@ -879,10 +879,10 @@ static int III_dequantize_sample(real xr[SBLIMIT][SSLIMIT],int *scf, register short *val = h->table; REFRESH_MASK; while((y=*val++)<0) { - if (mask < 0) + if (tqmask < 0) val -= y; num--; - mask <<= 1; + tqmask <<= 1; } x = y >> 4; y &= 0xf; @@ -891,23 +891,23 @@ static int III_dequantize_sample(real xr[SBLIMIT][SSLIMIT],int *scf, if (x == 15 && h->linbits) { max = cb; REFRESH_MASK; - x += ((unsigned long) mask) >> (BITSHIFT+8-h->linbits); + x += ((unsigned long) tqmask) >> (BITSHIFT+8-h->linbits); num -= h->linbits+1; - mask <<= h->linbits; - if(mask < 0) + tqmask <<= h->linbits; + if(tqmask < 0) *xrpnt++ = REAL_MUL(-ispow[x], v); else *xrpnt++ = REAL_MUL(ispow[x], v); - mask <<= 1; + tqmask <<= 1; } else if(x) { max = cb; - if(mask < 0) + if(tqmask < 0) *xrpnt++ = REAL_MUL(-ispow[x], v); else *xrpnt++ = REAL_MUL(ispow[x], v); num--; - mask <<= 1; + tqmask <<= 1; } else *xrpnt++ = DOUBLE_TO_REAL(0.0); @@ -915,23 +915,23 @@ static int III_dequantize_sample(real xr[SBLIMIT][SSLIMIT],int *scf, if (y == 15 && h->linbits) { max = cb; REFRESH_MASK; - y += ((unsigned long) mask) >> (BITSHIFT+8-h->linbits); + y += ((unsigned long) tqmask) >> (BITSHIFT+8-h->linbits); num -= h->linbits+1; - mask <<= h->linbits; - if(mask < 0) + tqmask <<= h->linbits; + if(tqmask < 0) *xrpnt++ = REAL_MUL(-ispow[y], v); else *xrpnt++ = REAL_MUL(ispow[y], v); - mask <<= 1; + tqmask <<= 1; } else if(y) { max = cb; - if(mask < 0) + if(tqmask < 0) *xrpnt++ = REAL_MUL(-ispow[y], v); else *xrpnt++ = REAL_MUL(ispow[y], v); num--; - mask <<= 1; + tqmask <<= 1; } else *xrpnt++ = DOUBLE_TO_REAL(0.0); @@ -947,10 +947,10 @@ static int III_dequantize_sample(real xr[SBLIMIT][SSLIMIT],int *scf, REFRESH_MASK; while((a=*val++)<0) { - if (mask < 0) + if (tqmask < 0) val -= a; num--; - mask <<= 1; + tqmask <<= 1; } if(part2remain+num <= 0) { num -= part2remain+num; @@ -978,12 +978,12 @@ static int III_dequantize_sample(real xr[SBLIMIT][SSLIMIT],int *scf, if(part2remain+num <= 0) { break; } - if(mask < 0) + if(tqmask < 0) *xrpnt++ = -v; else *xrpnt++ = v; num--; - mask <<= 1; + tqmask <<= 1; } else *xrpnt++ = DOUBLE_TO_REAL(0.0); diff --git a/mpg123_artsplugin/mpg123/xfermem.h b/mpg123_artsplugin/mpg123/xfermem.h index ae7e5afd..8d94c863 100644 --- a/mpg123_artsplugin/mpg123/xfermem.h +++ b/mpg123_artsplugin/mpg123/xfermem.h @@ -6,7 +6,7 @@ * * This is a stand-alone module which implements a unidirectional, * fast pipe using mmap(). Its primary use is to transfer large - * amounts of data from a parent process to its child process, + * amounts of data from a tqparent process to its child process, * with a buffer in between which decouples blocking conditions * on both sides. Control information is transferred between the * processes through a socketpair. See xftest.c for an example on diff --git a/noatun/library/Makefile.am b/noatun/library/Makefile.am index f3e1dfd9..951ba5a4 100644 --- a/noatun/library/Makefile.am +++ b/noatun/library/Makefile.am @@ -41,7 +41,7 @@ META_INCLUDES = $(srcdir)/noatun noinst_PROGRAMS = gentable gentable_SOURCES = gentable.cpp -gentable_LDFLAGS = $(KDE_EXTRA_RPATH) +gentable_LDFLAGS = $(KDE_EXTRA_RPATH) $(LIB_QT) magictable: gentable $(top_builddir)/noatun/library/gentable > magictable diff --git a/noatun/library/app.cpp b/noatun/library/app.cpp index cf340f68..aaa4b9e6 100644 --- a/noatun/library/app.cpp +++ b/noatun/library/app.cpp @@ -69,7 +69,7 @@ NoatunApp::NoatunApp() // set the default config data // TODO: Maybe a first time wizard instead? KConfig *config=KGlobal::config(); // + - config->setGroup(TQString::null); // 1 + config->setGroup(TQString()); // 1 if (!config->readEntry("Modules").length()) { TQStringList modules; @@ -88,9 +88,9 @@ NoatunApp::NoatunApp() mLibraryLoader->add("dcopiface.plugin"); - new General(this); // 25 - new Plugins(this); // 149 -// new Types(this); + new General(TQT_TQOBJECT(this)); // 25 + new Plugins(TQT_TQOBJECT(this)); // 149 +// new Types(TQT_TQOBJECT(this)); mPlayer=new Player; // 139 d->effects=new Effects; // 1 @@ -122,7 +122,7 @@ NoatunApp::NoatunApp() } else { - config->setGroup(TQString::null); // 0 + config->setGroup(TQString()); // 0 player()->setVolume(config->readNumEntry("Volume", 100)); // 10 player()->loop(config->readNumEntry("LoopStyle", (int)Player::None)); mPlayer->engine()->setInitialized(); // 0 @@ -147,7 +147,7 @@ NoatunApp::~NoatunApp() { saveEngineState(); KConfig *config = KGlobal::config(); - config->setGroup(TQString::null); + config->setGroup(TQString()); config->writeEntry("Volume", player()->volume()); config->writeEntry("LoopStyle", player()->loopStyle()); // for version continuity in the future @@ -212,14 +212,14 @@ bool NoatunApp::clearOnStart() const int NoatunApp::startupPlayMode() const { KConfig *config=KGlobal::config(); - config->setGroup(TQString::null); + config->setGroup(TQString()); return config->readNumEntry("StartupPlayMode", autoPlay() ? Play : Restore); } void NoatunApp::setStartupPlayMode(int mode) { KConfig *config=KGlobal::config(); - config->setGroup(TQString::null); + config->setGroup(TQString()); config->writeEntry("StartupPlayMode", mode); config->sync(); } @@ -227,7 +227,7 @@ void NoatunApp::setStartupPlayMode(int mode) void NoatunApp::setHackUpPlaylist(bool b) { KConfig *config=KGlobal::config(); - config->setGroup(TQString::null); + config->setGroup(TQString()); config->writeEntry("HackUpPlaylist", b); config->sync(); } @@ -238,7 +238,7 @@ void NoatunApp::setFastMixer(bool b) if (whatBefore!=b) { KConfig *config=KGlobal::config(); - config->setGroup(TQString::null); + config->setGroup(TQString()); config->writeEntry("FastMixer", b); config->sync(); player()->engine()->useHardwareMixer(b); @@ -256,7 +256,7 @@ void NoatunApp::setOneInstance(bool b) void NoatunApp::setLoopList(bool b) { KConfig *config=KGlobal::config(); - config->setGroup(TQString::null); + config->setGroup(TQString()); config->writeEntry("LoopList", b); KGlobal::config()->sync(); } @@ -264,7 +264,7 @@ void NoatunApp::setLoopList(bool b) void NoatunApp::setAutoPlay(bool b) { KConfig *config=KGlobal::config(); - config->setGroup(TQString::null); + config->setGroup(TQString()); config->writeEntry("AutoPlay", b); KGlobal::config()->sync(); } @@ -272,7 +272,7 @@ void NoatunApp::setAutoPlay(bool b) void NoatunApp::setRememberPositions(bool b) { KConfig *config=KGlobal::config(); - config->setGroup(TQString::null); + config->setGroup(TQString()); config->writeEntry("RememberPositions", b); KGlobal::config()->sync(); } @@ -280,7 +280,7 @@ void NoatunApp::setRememberPositions(bool b) void NoatunApp::setSaveDirectory(const TQString &s) { KConfig *config=KGlobal::config(); - config->setGroup(TQString::null); + config->setGroup(TQString()); config->writePathEntry("SaveDirectory", s); config->sync(); } @@ -288,21 +288,21 @@ void NoatunApp::setSaveDirectory(const TQString &s) TQString NoatunApp::saveDirectory() const { KConfig *c=KGlobal::config(); - c->setGroup(TQString::null); + c->setGroup(TQString()); return c->readPathEntry("SaveDirectory", TQString(getenv("HOME"))); } TQString NoatunApp::titleFormat() const { KConfig *c=KGlobal::config(); - c->setGroup(TQString::null); + c->setGroup(TQString()); return c->readEntry("TitleFormat", "$(\"[\"author\"] - \")$(title)$(\" (\"bitrate\"kbps)\")"); } void NoatunApp::setTitleFormat(const TQString &format) { KConfig *c=KGlobal::config(); - c->setGroup(TQString::null); + c->setGroup(TQString()); return c->writeEntry("TitleFormat", format); } @@ -314,7 +314,7 @@ void NoatunApp::setClearOnStart(bool b) void NoatunApp::setClearOnOpen(bool b) { KConfig *config=KGlobal::config(); - config->setGroup(TQString::null); + config->setGroup(TQString()); config->writeEntry("ClearOnOpen", b); config->sync(); } @@ -322,7 +322,7 @@ void NoatunApp::setClearOnOpen(bool b) void NoatunApp::setDisplayRemaining(bool b) { KConfig *config=KGlobal::config(); - config->setGroup(TQString::null); + config->setGroup(TQString()); config->writeEntry("DisplayRemaining", b); config->sync(); } @@ -363,7 +363,7 @@ void NoatunApp::pluginMenuRemove(int id) NoatunStdAction::PluginActionMenu *NoatunApp::pluginActionMenu() { if (!mPluginActionMenu) - mPluginActionMenu = new NoatunStdAction::PluginActionMenu(this, "menu_actions"); + mPluginActionMenu = new NoatunStdAction::PluginActionMenu(TQT_TQOBJECT(this), "menu_actions"); return mPluginActionMenu; } @@ -450,7 +450,7 @@ TQString NoatunApp::mimeTypes() continue; const char *m = (*istr).c_str(); - if ((KServiceType::serviceType(m)) && !mimeTypes.contains(m)) + if ((KServiceType::serviceType(m)) && !mimeTypes.tqcontains(m)) { mimeTypes += m; mimeTypes += ' '; @@ -478,11 +478,11 @@ Playlist *NoatunApp::playlist() const return mLibraryLoader->playlist(); } -void NoatunApp::commitData(QSessionManager &) +void NoatunApp::commitData(TQSessionManager &) { } -void NoatunApp::saveState(QSessionManager &sm) +void NoatunApp::saveState(TQSessionManager &sm) { TQStringList restartCommand = sm.restartCommand(); sm.setRestartCommand( restartCommand ); @@ -502,7 +502,7 @@ TQImage NoatunApp::readPNG(const TQString &filename) void NoatunApp::restoreEngineState() { KConfig* config = KGlobal::config(); - config->setGroup(TQString::null); + config->setGroup(TQString()); int state = config->readNumEntry("EngineState", Arts::posPlaying); switch (state) { @@ -522,7 +522,7 @@ void NoatunApp::restoreEngineState() void NoatunApp::saveEngineState() { KConfig* config=KGlobal::config(); - config->setGroup(TQString::null); + config->setGroup(TQString()); config->writeEntry("EngineState", player()->engine()->state()); // we don't sync here since it's done in the destructor afterwards anyway } diff --git a/noatun/library/cmodule.cpp b/noatun/library/cmodule.cpp index 27dbc686..226cc2d6 100644 --- a/noatun/library/cmodule.cpp +++ b/noatun/library/cmodule.cpp @@ -28,8 +28,8 @@ * General options *****************************************************************/ -General::General(TQObject *parent) - : CModule(i18n("General"), i18n("General Options"), "configure", parent) +General::General(TQObject *tqparent) + : CModule(i18n("General"), i18n("General Options"), "configure", tqparent) { mLoopList=new TQCheckBox(i18n("&Return to start of playlist on finish"), this); mLoopList->setChecked(napp->loopList()); @@ -58,7 +58,7 @@ General::General(TQObject *parent) TQWhatsThis::add(mTitleFormat, i18n( "Select a title to use for each file (in the playlist and user interface). " "Each element such as $(title) is replaced with the property with the name " - "as given in the parentheses. The properties include, but are not limited to: " + "as given in the tqparentheses. The properties include, but are not limited to: " "title, author, date, comments and album.")); TQLabel *dlsaver=new TQLabel(i18n("&Download folder:"), this); @@ -68,7 +68,7 @@ General::General(TQObject *parent) this, TQT_SLOT( slotRequesterClicked( KURLRequester * ))); TQWhatsThis::add(mDlSaver, i18n("When opening a non-local file, download it to the selected folder.")); - mPlayOnStartup = new TQButtonGroup(1, Horizontal, i18n("Play Behavior on Startup"), this); + mPlayOnStartup = new TQButtonGroup(1,Qt::Horizontal, i18n("Play Behavior on Startup"), this); mPlayOnStartup->setExclusive(true); mPlayOnStartup->insert( new TQRadioButton(i18n("Restore &play state"), mPlayOnStartup), @@ -83,29 +83,29 @@ General::General(TQObject *parent) NoatunApp::DontPlay ); - if (TQButton* b = mPlayOnStartup->find(napp->startupPlayMode())) + if (TQButton* b = mPlayOnStartup->tqfind(napp->startupPlayMode())) { b->toggle(); } - TQGridLayout *layout = new TQGridLayout(this, 0, KDialog::spacingHint()); - layout->setSpacing(KDialog::spacingHint()); + TQGridLayout *tqlayout = new TQGridLayout(this, 0, KDialog::spacingHint()); + tqlayout->setSpacing(KDialog::spacingHint()); - layout->addMultiCellWidget(mLoopList, 0, 0, 0, 1); - layout->addMultiCellWidget(mOneInstance, 2, 2, 0, 1); - layout->addMultiCellWidget(mClearOnOpen, 4, 4, 0, 1); - layout->addMultiCellWidget(mFastVolume, 5, 5, 0, 1); - layout->addMultiCellWidget(mRemaining, 6, 6, 0, 1); + tqlayout->addMultiCellWidget(mLoopList, 0, 0, 0, 1); + tqlayout->addMultiCellWidget(mOneInstance, 2, 2, 0, 1); + tqlayout->addMultiCellWidget(mClearOnOpen, 4, 4, 0, 1); + tqlayout->addMultiCellWidget(mFastVolume, 5, 5, 0, 1); + tqlayout->addMultiCellWidget(mRemaining, 6, 6, 0, 1); - layout->addWidget(titleLabel, 7, 0); - layout->addWidget(mTitleFormat, 7, 1); + tqlayout->addWidget(titleLabel, 7, 0); + tqlayout->addWidget(mTitleFormat, 7, 1); - layout->addWidget(dlsaver, 8, 0); - layout->addWidget(mDlSaver, 8, 1); + tqlayout->addWidget(dlsaver, 8, 0); + tqlayout->addWidget(mDlSaver, 8, 1); - layout->addMultiCellWidget(mPlayOnStartup, 9, 9, 0, 1); + tqlayout->addMultiCellWidget(mPlayOnStartup, 9, 9, 0, 1); - layout->setRowStretch(10, 1); + tqlayout->setRowStretch(10, 1); } diff --git a/noatun/library/cmodule.h b/noatun/library/cmodule.h index 89aa37f0..9a592075 100644 --- a/noatun/library/cmodule.h +++ b/noatun/library/cmodule.h @@ -22,8 +22,9 @@ class KURLRequester; class General : public CModule { Q_OBJECT + TQ_OBJECT public: - General(TQObject *parent=0); + General(TQObject *tqparent=0); virtual void save(); private slots: diff --git a/noatun/library/controls.cpp b/noatun/library/controls.cpp index dc67ffaa..1644f724 100644 --- a/noatun/library/controls.cpp +++ b/noatun/library/controls.cpp @@ -1,14 +1,14 @@ #include -L33tSlider::L33tSlider(TQWidget * parent, const char * name) : - TQSlider(parent,name), pressed(false) +L33tSlider::L33tSlider(TQWidget * tqparent, const char * name) : + TQSlider(tqparent,name), pressed(false) {} -L33tSlider::L33tSlider(Orientation o, TQWidget * parent, const char * name) : - TQSlider(o,parent,name), pressed(false) +L33tSlider::L33tSlider(Qt::Orientation o, TQWidget * tqparent, const char * name) : + TQSlider(o,tqparent,name), pressed(false) {} L33tSlider::L33tSlider(int minValue, int maxValue, int pageStep, int value, - Orientation o, TQWidget * parent, const char * name) : - TQSlider(minValue, maxValue, pageStep, value, o, parent,name), pressed(false) + Qt::Orientation o, TQWidget * tqparent, const char * name) : + TQSlider(minValue, maxValue, pageStep, value, o, tqparent,name), pressed(false) {} bool L33tSlider::currentlyPressed() const @@ -24,7 +24,7 @@ void L33tSlider::setValue(int i) void L33tSlider::mousePressEvent(TQMouseEvent*e) { - if (e->button()!=RightButton) + if (e->button()!=Qt::RightButton) { pressed=true; TQSlider::mousePressEvent(e); @@ -52,8 +52,8 @@ void L33tSlider::wheelEvent(TQWheelEvent *e) SliderAction::SliderAction(const TQString& text, int accel, const TQObject *receiver, - const char *member, TQObject* parent, const char* name ) - : KAction( text, accel, parent, name ) + const char *member, TQObject* tqparent, const char* name ) + : KAction( text, accel, tqparent, name ) { m_receiver = receiver; m_member = member; @@ -67,7 +67,7 @@ int SliderAction::plug( TQWidget *w, int index ) int id = KAction::getToolButtonID(); //Create it. - m_slider=new L33tSlider(0, 1000, 100, 0, Horizontal, toolBar); + m_slider=new L33tSlider(0, 1000, 100, 0,Qt::Horizontal, toolBar); m_slider->setMinimumWidth(10); toolBar->insertWidget(id, 10, m_slider, index ); @@ -91,12 +91,12 @@ return; /* if (pos == KToolBar::Left || pos == KToolBar::Right) { - m_slider->setOrientation(Vertical); + m_slider->setOrientationVertical); m_slider->setFixedWidth(m_slider->height()); } else { - m_slider->setOrientation(Horizontal); + m_slider->setOrientationHorizontal); m_slider->resize(m_slider->height(), m_slider->height()); } */ diff --git a/noatun/library/downloader.cpp b/noatun/library/downloader.cpp index cce6e4d9..d607ca6d 100644 --- a/noatun/library/downloader.cpp +++ b/noatun/library/downloader.cpp @@ -65,8 +65,8 @@ void DownloadItem::dequeue() -Downloader::Downloader(TQObject *parent) - : TQObject(parent), localfile(0), current(0), mJob(0), mTimeout(0) +Downloader::Downloader(TQObject *tqparent) + : TQObject(tqparent), localfile(0), current(0), mJob(0), mTimeout(0) { mStarted=false; mUnstartedQueue=new TQPtrList; @@ -105,7 +105,7 @@ static TQString nonExistantFile(const TQString &file) { i++; f=file; - f.insert(f.findRev('.'), '_'+TQString::number(i)); + f.insert(f.tqfindRev('.'), '_'+TQString::number(i)); } return f; } @@ -175,7 +175,7 @@ void Downloader::getNext() if (mQueue.isEmpty()) return; current=mQueue.take(0); - // open the QFile + // open the TQFile localfile=new TQFile(current->local); localfile->open(IO_ReadWrite | IO_Append); diff --git a/noatun/library/effects.cpp b/noatun/library/effects.cpp index a71e0b43..33a3b8ad 100644 --- a/noatun/library/effects.cpp +++ b/noatun/library/effects.cpp @@ -25,11 +25,11 @@ using namespace std; using namespace Arts; -class EffectConfigWidget : public QWidget +class EffectConfigWidget : public TQWidget { public: - EffectConfigWidget(Effect *e, TQWidget *parent=0) - : TQWidget(parent), mEf(e) + EffectConfigWidget(Effect *e, TQWidget *tqparent=0) + : TQWidget(tqparent), mEf(e) {} virtual ~EffectConfigWidget() @@ -102,7 +102,7 @@ TQString Effect::title() const TQString Effect::clean(const TQCString &name) { - int pos=name.findRev("::"); + int pos=name.tqfindRev("::"); if (pos>0) return name.right(name.length()-pos-2); return name; diff --git a/noatun/library/effectview.cpp b/noatun/library/effectview.cpp index 334781a1..807f0e71 100644 --- a/noatun/library/effectview.cpp +++ b/noatun/library/effectview.cpp @@ -41,11 +41,11 @@ #include #include -class EffectListItem : public QListViewItem +class EffectListItem : public TQListViewItem { public: - EffectListItem(TQListView *parent, TQListViewItem *after, Effect *e) - : TQListViewItem(parent, after, e->title()), mEffect(e) + EffectListItem(TQListView *tqparent, TQListViewItem *after, Effect *e) + : TQListViewItem(tqparent, after, e->title()), mEffect(e) { } @@ -55,8 +55,8 @@ private: Effect *mEffect; }; -EffectList::EffectList(TQWidget *parent) - : KListView(parent) +EffectList::EffectList(TQWidget *tqparent) + : KListView(tqparent) { } @@ -85,9 +85,9 @@ void EffectView::show() namespace { -TQToolButton *newButton(const TQIconSet &iconSet, const TQString &textLabel, TQObject *receiver, const char * slot, TQWidget *parent, const char *name = 0) +TQToolButton *newButton(const TQIconSet &iconSet, const TQString &textLabel, TQObject *receiver, const char * slot, TQWidget *tqparent, const char *name = 0) { - TQToolButton *button = new TQToolButton(parent, name); + TQToolButton *button = new TQToolButton(tqparent, name); button->setIconSet(iconSet); button->setTextLabel(textLabel, true); TQObject::connect(button, TQT_SIGNAL(clicked()), receiver, slot); @@ -104,7 +104,7 @@ void EffectView::init(void) setCaption(i18n("Effects - Noatun")); setIcon(SmallIcon("effect")); - // Create widgets and layouts + // Create widgets and tqlayouts TQFrame *box = makeMainWidget(); TQVBoxLayout *boxLayout = new TQVBoxLayout(box, 0, KDialog::spacingHint()); @@ -116,7 +116,7 @@ void EffectView::init(void) TQHBoxLayout *topTopLayout = new TQHBoxLayout(topTopFrame, 0, KDialog::spacingHint()); topTopLayout->setAutoAdd(true); available = new KComboBox(false, topTopFrame); - TQToolButton *add = newButton(BarIconSet("down", KIcon::SizeSmall), i18n("Add"), this, TQT_SLOT(addEffect()), topTopFrame); + TQToolButton *add = newButton(BarIconSet("down", KIcon::SizeSmall), i18n("Add"), TQT_TQOBJECT(this), TQT_SLOT(addEffect()), topTopFrame); // Active TQHGroupBox *bottomBox = new TQHGroupBox(i18n("Active Effects"), box); @@ -153,10 +153,10 @@ void EffectView::init(void) // the buttons TQFrame *bottomLeftFrame = new TQFrame(bottomBox); TQVBoxLayout *bottomLeftLayout = new TQVBoxLayout(bottomLeftFrame, 0, KDialog::spacingHint()); - up = newButton(BarIconSet("up", KIcon::SizeSmall), i18n("Up"), this, TQT_SLOT(moveUp()), bottomLeftFrame); - down = newButton(BarIconSet("down", KIcon::SizeSmall), i18n("Down"), this, TQT_SLOT(moveDown()), bottomLeftFrame); - configure = newButton(BarIconSet("configure", KIcon::SizeSmall), i18n("Configure"), this, TQT_SLOT(configureEffect()), bottomLeftFrame); - remove = newButton(BarIconSet("remove", KIcon::SizeSmall), i18n("Remove"), this, TQT_SLOT(removeEffect()), bottomLeftFrame); + up = newButton(BarIconSet("up", KIcon::SizeSmall), i18n("Up"), TQT_TQOBJECT(this), TQT_SLOT(moveUp()), bottomLeftFrame); + down = newButton(BarIconSet("down", KIcon::SizeSmall), i18n("Down"), TQT_TQOBJECT(this), TQT_SLOT(moveDown()), bottomLeftFrame); + configure = newButton(BarIconSet("configure", KIcon::SizeSmall), i18n("Configure"), TQT_TQOBJECT(this), TQT_SLOT(configureEffect()), bottomLeftFrame); + remove = newButton(BarIconSet("remove", KIcon::SizeSmall), i18n("Remove"), TQT_TQOBJECT(this), TQT_SLOT(removeEffect()), bottomLeftFrame); bottomLeftLayout->addWidget(up); bottomLeftLayout->addWidget(down); bottomLeftLayout->addWidget(configure); diff --git a/noatun/library/effectview.h b/noatun/library/effectview.h index 28b26c9f..c0946d89 100644 --- a/noatun/library/effectview.h +++ b/noatun/library/effectview.h @@ -36,6 +36,7 @@ class TQToolButton; class EffectView : public KDialogBase { Q_OBJECT + TQ_OBJECT public: EffectView(); @@ -74,8 +75,9 @@ private: class EffectList : public KListView { Q_OBJECT + TQ_OBJECT public: - EffectList(TQWidget *parent); + EffectList(TQWidget *tqparent); virtual bool acceptDrag(TQDropEvent *) const; virtual TQDragObject *dragObject() const; }; diff --git a/noatun/library/engine.cpp b/noatun/library/engine.cpp index 00f26022..06693797 100644 --- a/noatun/library/engine.cpp +++ b/noatun/library/engine.cpp @@ -79,13 +79,13 @@ namespace VolumeControls else { #define ERROR { fd=-1; return; } - int devmask, recmask, i_recsrc, stereodevs; + int devtqmask, rectqmask, i_recsrc, stereodevs; // Mixer is open. Now define properties - if (ioctl(fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1) ERROR - if (ioctl(fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1) ERROR + if (ioctl(fd, SOUND_MIXER_READ_DEVMASK, &devtqmask) == -1) ERROR + if (ioctl(fd, SOUND_MIXER_READ_RECMASK, &rectqmask) == -1) ERROR if (ioctl(fd, SOUND_MIXER_READ_RECSRC, &i_recsrc) == -1) ERROR if (ioctl(fd, SOUND_MIXER_READ_STEREODEVS, &stereodevs) == -1) ERROR - if (!devmask) ERROR + if (!devtqmask) ERROR #undef ERROR } @@ -248,7 +248,7 @@ Noatun::StereoEffectStack *Engine::globalEffectStack() const { return &d->globa Noatun::Equalizer *Engine::equalizer() const { return &d->equalizer; } Noatun::Session *Engine::session() const { return &d->session; } -Engine::Engine(TQObject *parent) : TQObject(parent, "Engine"), mPlay(false) +Engine::Engine(TQObject *tqparent) : TQObject(tqparent, "Engine"), mPlay(false) { d=new EnginePrivate; // Connect to aRts @@ -482,15 +482,15 @@ bool Engine::initArts() X11CommConfig.sync(); } - cmdline = TQFile::encodeName(KStandardDirs::findExe(TQString::fromLatin1("kdeinit_wrapper"))); + cmdline = TQFile::encodeName(KStandardDirs::findExe(TQString::tqfromLatin1("kdeinit_wrapper"))); cmdline += " "; if (rt) cmdline += TQFile::encodeName(KStandardDirs::findExe( - TQString::fromLatin1("artswrapper"))); + TQString::tqfromLatin1("artswrapper"))); else cmdline += TQFile::encodeName(KStandardDirs::findExe( - TQString::fromLatin1("artsd"))); + TQString::tqfromLatin1("artsd"))); cmdline += " "; cmdline += config.readEntry("Arguments","-F 10 -S 4096 -s 60 -m artsmessage -l 3 -f").utf8(); diff --git a/noatun/library/equalizer.cpp b/noatun/library/equalizer.cpp index 61b10d01..ae86d00f 100644 --- a/noatun/library/equalizer.cpp +++ b/noatun/library/equalizer.cpp @@ -333,7 +333,7 @@ void Equalizer::enableUpdates(bool) } #undef EQ -#undef EQBACK +#undef ETQBACK #include "equalizer.moc" diff --git a/noatun/library/equalizerview.cpp b/noatun/library/equalizerview.cpp index 098226a7..7758f35c 100644 --- a/noatun/library/equalizerview.cpp +++ b/noatun/library/equalizerview.cpp @@ -1,7 +1,7 @@ #include "vequalizer.h" -#define EQVIEW_CPP +#define ETQVIEW_CPP #include "equalizerview.h" -#undef EQVIEW_CPP +#undef ETQVIEW_CPP #include "equalizerwidget.h" #include "app.h" @@ -30,8 +30,8 @@ //////////////////////////////////////////////// // PresetList -PresetList::PresetList(TQWidget *parent, const char *name) - : KListView(parent, name) +PresetList::PresetList(TQWidget *tqparent, const char *name) + : KListView(tqparent, name) { setItemsRenameable(true); setRenameable(0, true); @@ -61,20 +61,20 @@ void PresetList::rename(TQListViewItem *item, int c) //////////////////////////////////////////////// // EqualizerLevel -EqualizerLevel::EqualizerLevel(TQWidget *parent, VBand band) - : TQWidget(parent), mBand(band) +EqualizerLevel::EqualizerLevel(TQWidget *tqparent, VBand band) + : TQWidget(tqparent), mBand(band) { - TQVBoxLayout *layout = new TQVBoxLayout(this, - 0, 0, "EqualizerLevel::layout"); + TQVBoxLayout *tqlayout = new TQVBoxLayout(this, + 0, 0, "EqualizerLevel::tqlayout"); mSlider = new TQSlider(-200, 200, 25, 0, Qt::Vertical, this, "EqualizerLevel::mSlider"); mSlider->setTickmarks(TQSlider::Left); mSlider->setTickInterval(25); - layout->addWidget(mSlider); + tqlayout->addWidget(mSlider); connect(mSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed(int))); mLabel = new TQLabel("", this, "EqualizerLevel::mLabel"); - mLabel->setAlignment(AlignHCenter | AlignVCenter); - layout->addWidget(mLabel); + mLabel->tqsetAlignment(AlignHCenter | AlignVCenter); + tqlayout->addWidget(mLabel); setMinimumHeight(200); // setMinimumWidth(kapp->fontMetrics().width("158kHz")); diff --git a/noatun/library/equalizerview.h b/noatun/library/equalizerview.h index 8c29aadb..d902f49b 100644 --- a/noatun/library/equalizerview.h +++ b/noatun/library/equalizerview.h @@ -1,5 +1,5 @@ -#ifndef EQUALIZERVIEW_H -#define EQUALIZERVIEW_H +#ifndef ETQUALIZERVIEW_H +#define ETQUALIZERVIEW_H #include #include @@ -14,11 +14,12 @@ class TQHBoxLayout; class EqualizerWidget; -class EqualizerLevel : public QWidget +class EqualizerLevel : public TQWidget { Q_OBJECT + TQ_OBJECT public: - EqualizerLevel(TQWidget *parent, VBand band); + EqualizerLevel(TQWidget *tqparent, VBand band); public slots: void changed(); @@ -36,8 +37,9 @@ private: class PresetList : public KListView { Q_OBJECT + TQ_OBJECT public: - PresetList(TQWidget *parent, const char *name=0); + PresetList(TQWidget *tqparent, const char *name=0); public: void rename(TQListViewItem *item, int c); @@ -47,6 +49,7 @@ public: class EqualizerView : public KDialogBase { Q_OBJECT + TQ_OBJECT TQPtrList mBands; public: diff --git a/noatun/library/equalizerwidget.ui b/noatun/library/equalizerwidget.ui index 1432f59a..b68b2ff6 100644 --- a/noatun/library/equalizerwidget.ui +++ b/noatun/library/equalizerwidget.ui @@ -1,10 +1,10 @@ EqualizerWidget - + EqualizerWidget - + 0 0 @@ -22,22 +22,22 @@ 0 - + - layout5 + tqlayout5 unnamed - + textLabel1_2 Pre&amp: - + AlignCenter @@ -54,7 +54,7 @@ Minimum - + 1 8 @@ -71,22 +71,22 @@ Minimum - + 1 8 - + - layout3 + tqlayout3 unnamed - + preampSlider @@ -115,14 +115,14 @@ 25 - + textLabel1 +/- - + AlignCenter @@ -130,7 +130,7 @@ - + bandsGroupBox @@ -141,7 +141,7 @@ unnamed - + bandsFrame @@ -165,7 +165,7 @@ - + presetsGroupBox @@ -176,7 +176,7 @@ unnamed - + presetFrame @@ -201,7 +201,7 @@ 0 - + removePresetButton @@ -209,7 +209,7 @@ &Remove - + addPresetButton @@ -227,7 +227,7 @@ Expanding - + 8 16 @@ -236,15 +236,15 @@ - + - layout4 + tqlayout4 unnamed - + enabledCheckBox @@ -262,14 +262,14 @@ Minimum - + 8 16 - + textLabel1_3 @@ -301,14 +301,14 @@ Expanding - + 8 16 - + resetEqButton @@ -330,7 +330,7 @@ removePresetButton addPresetButton - + knuminput.h diff --git a/noatun/library/globalvideo.h b/noatun/library/globalvideo.h index c070ab30..8203282d 100644 --- a/noatun/library/globalvideo.h +++ b/noatun/library/globalvideo.h @@ -4,9 +4,10 @@ #include "noatun/video.h" -class GlobalVideo : public QWidget +class GlobalVideo : public TQWidget { Q_OBJECT + TQ_OBJECT TQPopupMenu *menu; VideoFrame *video; diff --git a/noatun/library/ksaver.cpp b/noatun/library/ksaver.cpp index 40b3606c..fe2ed649 100644 --- a/noatun/library/ksaver.cpp +++ b/noatun/library/ksaver.cpp @@ -78,7 +78,7 @@ bool Noatun::KSaver::open(void) } else { - d->error = i18n("Could not write to %1.").arg(d->url.prettyURL()); + d->error = i18n("Could not write to %1.").tqarg(d->url.prettyURL()); return false; } } diff --git a/noatun/library/mimetypetree.cpp b/noatun/library/mimetypetree.cpp index 0370b048..a63b49f6 100644 --- a/noatun/library/mimetypetree.cpp +++ b/noatun/library/mimetypetree.cpp @@ -4,8 +4,8 @@ #include -MimeTypeTree::MimeTypeTree(TQWidget *parent) - : KListView(parent) +MimeTypeTree::MimeTypeTree(TQWidget *tqparent) + : KListView(tqparent) { KMimeType::List list=KMimeType::allMimeTypes(); TQDict map; @@ -17,7 +17,7 @@ MimeTypeTree::MimeTypeTree(TQWidget *parent) for (; i != list.end(); ++i) { TQString mimetype = (*i)->name(); - int slash = mimetype.find("/"); + int slash = mimetype.tqfind("/"); TQString major = mimetype.left(slash); // hide all and inode majors @@ -38,7 +38,7 @@ MimeTypeTree::MimeTypeTree(TQWidget *parent) void MimeTypeTree::sel(TQListViewItem *item) { - TQListViewItem *p=item->parent(); + TQListViewItem *p=item->tqparent(); if (!p) return; TQString major=p->text(0); TQString minor=item->text(0); diff --git a/noatun/library/mimetypetree.h b/noatun/library/mimetypetree.h index 92af43ec..b3f7ccb7 100644 --- a/noatun/library/mimetypetree.h +++ b/noatun/library/mimetypetree.h @@ -6,7 +6,7 @@ * of Noatun linking to this, and to a GPL plugin, * where the GPL plugin does not use any code * in this class. However, it may link directly - * to the Qt Library, where Qt may be under any license. + * to the TQt Library, where TQt may be under any license. * * Debian, Gnome, and GNU must ALL DIE. * Especially GNU's stupid info pages. @@ -19,8 +19,9 @@ class MimeTypeTree : public KListView { Q_OBJECT + TQ_OBJECT public: - MimeTypeTree(TQWidget *parent); + MimeTypeTree(TQWidget *tqparent); private: TQListViewItem *addMajor(const TQString &name); diff --git a/noatun/library/noatun/app.h b/noatun/library/noatun/app.h index 0b8af3ee..8e8b0e1b 100644 --- a/noatun/library/noatun/app.h +++ b/noatun/library/noatun/app.h @@ -31,6 +31,7 @@ namespace NoatunStdAction class KDE_EXPORT NoatunApp : public KUniqueApplication { Q_OBJECT + TQ_OBJECT friend class Playlist; public: @@ -71,8 +72,8 @@ public: TQCString version() const; - virtual void commitData(QSessionManager &); - virtual void saveState(QSessionManager &); + virtual void commitData(TQSessionManager &); + virtual void saveState(TQSessionManager &); /** * The three startup modes how noatun should behave when it is diff --git a/noatun/library/noatun/controls.h b/noatun/library/noatun/controls.h index 4c11aac7..02564048 100644 --- a/noatun/library/noatun/controls.h +++ b/noatun/library/noatun/controls.h @@ -20,14 +20,15 @@ class TQLabel; * @author Charles Samuels * @version 2.3 **/ -class KDE_EXPORT L33tSlider : public QSlider +class KDE_EXPORT L33tSlider : public TQSlider { Q_OBJECT + TQ_OBJECT public: - L33tSlider(TQWidget * parent, const char * name=0); - L33tSlider(Orientation, TQWidget * parent, const char * name=0); + L33tSlider(TQWidget * tqparent, const char * name=0); + L33tSlider(Qt::Orientation, TQWidget * tqparent, const char * name=0); L33tSlider(int minValue, int maxValue, int pageStep, int value, - Orientation, TQWidget * parent, const char * name=0); + Qt::Orientation, TQWidget * tqparent, const char * name=0); bool currentlyPressed() const; signals: @@ -56,9 +57,10 @@ private: class SliderAction : public KAction { Q_OBJECT + TQ_OBJECT public: SliderAction(const TQString& text, int accel, const TQObject *receiver, - const char *member, TQObject* parent, const char* name ); + const char *member, TQObject* tqparent, const char* name ); virtual int plug( TQWidget *w, int index = -1 ); virtual void unplug( TQWidget *w ); TQSlider* slider() const { return m_slider; } diff --git a/noatun/library/noatun/downloader.h b/noatun/library/noatun/downloader.h index a4c08ad7..7d711c26 100644 --- a/noatun/library/noatun/downloader.h +++ b/noatun/library/noatun/downloader.h @@ -63,9 +63,10 @@ private: /** * download playlistitems, in a queue based fasion **/ -class Downloader : public QObject +class Downloader : public TQObject { Q_OBJECT + TQ_OBJECT struct QueueItem { DownloadItem *notifier; @@ -74,7 +75,7 @@ Q_OBJECT }; public: - Downloader(TQObject *parent=0); + Downloader(TQObject *tqparent=0); virtual ~Downloader(); public slots: diff --git a/noatun/library/noatun/effects.h b/noatun/library/noatun/effects.h index 4c014a93..0480729d 100644 --- a/noatun/library/noatun/effects.h +++ b/noatun/library/noatun/effects.h @@ -94,9 +94,10 @@ private: * Noatuns effect stack * @author Charles Samuels **/ -class Effects : public QObject +class Effects : public TQObject { Q_OBJECT + TQ_OBJECT friend class Effect; public: Effects(); diff --git a/noatun/library/noatun/engine.h b/noatun/library/noatun/engine.h index b47eb087..3108ae84 100644 --- a/noatun/library/noatun/engine.h +++ b/noatun/library/noatun/engine.h @@ -30,12 +30,13 @@ class NoatunApp; * Does almost everything related to multimedia. * Most interfacing should be done with Player **/ -class KDE_EXPORT Engine : public QObject +class KDE_EXPORT Engine : public TQObject { Q_OBJECT + TQ_OBJECT friend class NoatunApp; public: - Engine(TQObject *parent=0); + Engine(TQObject *tqparent=0); ~Engine(); void setInitialized(); bool initialized() const; diff --git a/noatun/library/noatun/equalizer.h b/noatun/library/noatun/equalizer.h index d048d21d..744958b3 100644 --- a/noatun/library/noatun/equalizer.h +++ b/noatun/library/noatun/equalizer.h @@ -99,13 +99,14 @@ private: * @author Charles Samuels * @version 2.3 **/ -class Equalizer : public QObject +class Equalizer : public TQObject { friend class Band; friend class Preset; friend class Engine; Q_OBJECT + TQ_OBJECT public: Equalizer(); ~Equalizer(); diff --git a/noatun/library/noatun/player.h b/noatun/library/noatun/player.h index a61c2335..406f4f1b 100644 --- a/noatun/library/noatun/player.h +++ b/noatun/library/noatun/player.h @@ -19,9 +19,10 @@ class KLibrary; * @author Charles Samuels * @version 2.4 **/ -class KDE_EXPORT Player : public QObject +class KDE_EXPORT Player : public TQObject { Q_OBJECT + TQ_OBJECT friend class Effects; friend class PlaylistItemData; friend class PlaylistNotifier; @@ -41,7 +42,7 @@ public: enum LoopType { None=0, Song, Playlist, Random }; public: - Player(TQObject *parent=0); + Player(TQObject *tqparent=0); ~Player(); /** diff --git a/noatun/library/noatun/playlist.h b/noatun/library/noatun/playlist.h index 013d63a4..d1baa25d 100644 --- a/noatun/library/noatun/playlist.h +++ b/noatun/library/noatun/playlist.h @@ -326,12 +326,13 @@ private: * when you can call a Player method, unless, of course, you * ARE the playlist. **/ -class Playlist : public QObject +class Playlist : public TQObject { Q_OBJECT + TQ_OBJECT friend class PlaylistItemData; public: - Playlist(TQObject *parent, const char *name); + Playlist(TQObject *tqparent, const char *name); /** * on playlist unload, your playlist must * have current()==0 and emit playCurrent diff --git a/noatun/library/noatun/plugin.h b/noatun/library/noatun/plugin.h index 2bd8c994..d127ab9f 100644 --- a/noatun/library/noatun/plugin.h +++ b/noatun/library/noatun/plugin.h @@ -402,13 +402,14 @@ class NoatunListenerNotif; * * So far only used for ExitNotifier. **/ -class NoatunListener : public QObject +class NoatunListener : public TQObject { Q_OBJECT + TQ_OBJECT friend class NoatunListenerNotif; public: - NoatunListener(TQObject *parent=0); + NoatunListener(TQObject *tqparent=0); virtual ~NoatunListener(); signals: @@ -432,7 +433,7 @@ protected: class ExitNotifier : public NoatunListener { public: - ExitNotifier(int pid, TQObject *parent=0); + ExitNotifier(int pid, TQObject *tqparent=0); virtual ~ExitNotifier(); private: @@ -450,11 +451,12 @@ private: * * When noatunOk is false, then noatun has exited somehow. **/ -class BoolNotifier : public QObject +class BoolNotifier : public TQObject { Q_OBJECT + TQ_OBJECT public: - BoolNotifier(bool *value, NoatunListener *listener, TQObject *parent=0); + BoolNotifier(bool *value, NoatunListener *listener, TQObject *tqparent=0); private slots: void event() {*mValue=false;} diff --git a/noatun/library/noatun/pref.h b/noatun/library/noatun/pref.h index 5a7d056e..a290e51c 100644 --- a/noatun/library/noatun/pref.h +++ b/noatun/library/noatun/pref.h @@ -13,6 +13,7 @@ class CModule; class NoatunPreferences : public KDialogBase { Q_OBJECT + TQ_OBJECT friend class CModule; public: @@ -53,19 +54,20 @@ private: * Create your GUI in constructor, reimplement reopen() and save() and * you're all set. **/ -class KDE_EXPORT CModule : public QWidget +class KDE_EXPORT CModule : public TQWidget { Q_OBJECT + TQ_OBJECT public: /** * arguments are short and long descriptions * for this module, respectively * - * parent is the object that is this modules virtual-parent. + * tqparent is the object that is this modules virtual-tqparent. * When that is deleted, this also will go away, automagically. **/ - CModule(const TQString &name, const TQString &description, const TQString &icon, TQObject *parent=0); + CModule(const TQString &name, const TQString &description, const TQString &icon, TQObject *tqparent=0); virtual ~CModule(); diff --git a/noatun/library/noatun/scrollinglabel.h b/noatun/library/noatun/scrollinglabel.h index 231d3158..94253d4a 100644 --- a/noatun/library/noatun/scrollinglabel.h +++ b/noatun/library/noatun/scrollinglabel.h @@ -28,12 +28,13 @@ * A clever label that scrolls its contents as soon as there is not enough * space to show everything at once. **/ -class ScrollingLabel : public QWidget +class ScrollingLabel : public TQWidget { Q_OBJECT + TQ_OBJECT public: - ScrollingLabel(const TQString &initialText,TQWidget *parent, + ScrollingLabel(const TQString &initialText,TQWidget *tqparent, const char * name = 0); virtual ~ScrollingLabel(); @@ -43,8 +44,8 @@ class ScrollingLabel : public QWidget **/ virtual void setText(const TQString &text, int time = -1); - virtual TQSize sizeHint() const; - virtual TQSize minimumSizeHint() const; + virtual TQSize tqsizeHint() const; + virtual TQSize tqminimumSizeHint() const; /** * @return the label's text. diff --git a/noatun/library/noatun/stdaction.h b/noatun/library/noatun/stdaction.h index bfa34164..f7413e70 100644 --- a/noatun/library/noatun/stdaction.h +++ b/noatun/library/noatun/stdaction.h @@ -20,8 +20,9 @@ namespace NoatunStdAction class PlayAction : public KAction { Q_OBJECT + TQ_OBJECT public: - PlayAction(TQObject *parent, const char *name); + PlayAction(TQObject *tqparent, const char *name); private slots: void playing(); void notplaying(); @@ -33,8 +34,9 @@ private slots: class PlaylistAction : public KToggleAction { Q_OBJECT + TQ_OBJECT public: - PlaylistAction(TQObject *parent, const char *name); + PlaylistAction(TQObject *tqparent, const char *name); private slots: void shown(); void hidden(); @@ -47,8 +49,9 @@ private slots: class PluginActionMenu : public KActionMenu { Q_OBJECT + TQ_OBJECT public: - PluginActionMenu(TQObject *parent, const char *name); + PluginActionMenu(TQObject *tqparent, const char *name); /** * inserts the given @p action into the action-menu * @param action the action to insert @@ -80,8 +83,9 @@ private: class VisActionMenu : public KActionMenu { Q_OBJECT + TQ_OBJECT public: - VisActionMenu(TQObject *parent, const char *name); + VisActionMenu(TQObject *tqparent, const char *name); private slots: void fillPopup(); void toggleVisPlugin(int); @@ -97,8 +101,9 @@ private: class LoopActionMenu : public KActionMenu { Q_OBJECT + TQ_OBJECT public: - LoopActionMenu(TQObject *parent, const char *name); + LoopActionMenu(TQObject *tqparent, const char *name); private slots: void updateLooping(int); void loopNoneSelected(); @@ -116,48 +121,48 @@ private: /** * @return pointer to a KAction which opens the effects dialog on activation */ -KDE_EXPORT KAction *effects(TQObject *parent = 0, const char *name = 0); +KDE_EXPORT KAction *effects(TQObject *tqparent = 0, const char *name = 0); /** * @return pointer to a KAction which opens the equalizer dialog on activation */ -KDE_EXPORT KAction *equalizer(TQObject *parent = 0, const char *name = 0); +KDE_EXPORT KAction *equalizer(TQObject *tqparent = 0, const char *name = 0); /** * @return pointer to a KAction which goes back one track on activation */ -KDE_EXPORT KAction *back(TQObject *parent = 0, const char *name = 0); +KDE_EXPORT KAction *back(TQObject *tqparent = 0, const char *name = 0); /** * @return pointer to a KAction which stops playback on activation */ -KDE_EXPORT KAction *stop(TQObject *parent = 0, const char *name = 0); +KDE_EXPORT KAction *stop(TQObject *tqparent = 0, const char *name = 0); /** * @return pointer to a KAction which starts/pauses playback on activation */ -KDE_EXPORT KAction *playpause(TQObject *parent = 0, const char *name = 0); +KDE_EXPORT KAction *playpause(TQObject *tqparent = 0, const char *name = 0); /** * @return pointer to a KAction which advances one track on activation */ -KDE_EXPORT KAction *forward(TQObject *parent = 0, const char *name = 0); +KDE_EXPORT KAction *forward(TQObject *tqparent = 0, const char *name = 0); /** * @return pointer to a KToggleAction which shows/hides the playlist */ -KDE_EXPORT KToggleAction *playlist(TQObject *parent = 0, const char *name = 0); +KDE_EXPORT KToggleAction *playlist(TQObject *tqparent = 0, const char *name = 0); /** * loop action **/ -KDE_EXPORT LoopActionMenu *loop(TQObject *parent, const char *name); +KDE_EXPORT LoopActionMenu *loop(TQObject *tqparent, const char *name); /** * play action */ -KDE_EXPORT KAction *play(TQObject *parent = 0, const char *name = 0); +KDE_EXPORT KAction *play(TQObject *tqparent = 0, const char *name = 0); /** * pause action */ -KDE_EXPORT KAction *pause(TQObject *parent = 0, const char *name = 0); +KDE_EXPORT KAction *pause(TQObject *tqparent = 0, const char *name = 0); /** * @return pointer to the global PluginActionMenu object (there is only one instance) @@ -167,7 +172,7 @@ KDE_EXPORT PluginActionMenu *actions(); /** * @return pointer to a VisActionMenu object */ -KDE_EXPORT VisActionMenu *visualizations(TQObject *parent = 0, const char *name = 0); +KDE_EXPORT VisActionMenu *visualizations(TQObject *tqparent = 0, const char *name = 0); /** * The global popupmenu of noatun, there's not two or three but only one of these :) diff --git a/noatun/library/noatun/stereobuttonaction.h b/noatun/library/noatun/stereobuttonaction.h index d6d6edb9..a364dba0 100644 --- a/noatun/library/noatun/stereobuttonaction.h +++ b/noatun/library/noatun/stereobuttonaction.h @@ -13,13 +13,14 @@ namespace NoatunStdAction class StereoButtonAction : public KAction { Q_OBJECT + TQ_OBJECT public: - StereoButtonAction(const TQString& text, int accel = 0, TQObject* parent = 0, const char* name = 0 ); - StereoButtonAction(const TQString& text, int accel, const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 ); - StereoButtonAction(const TQString& text, const TQIconSet& pix, int accel = 0, TQObject* parent = 0, const char* name = 0 ); - StereoButtonAction(const TQString& text, const TQString& pix, int accel = 0, TQObject* parent = 0, const char* name = 0 ); - StereoButtonAction(const TQString& text, const TQIconSet& pix, int accel, const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 ); - StereoButtonAction(const TQString& text, const TQString& pix, int accel, const TQObject* receiver, const char* slot, TQObject* parent, const char* name = 0 ); + StereoButtonAction(const TQString& text, int accel = 0, TQObject* tqparent = 0, const char* name = 0 ); + StereoButtonAction(const TQString& text, int accel, const TQObject* receiver, const char* slot, TQObject* tqparent, const char* name = 0 ); + StereoButtonAction(const TQString& text, const TQIconSet& pix, int accel = 0, TQObject* tqparent = 0, const char* name = 0 ); + StereoButtonAction(const TQString& text, const TQString& pix, int accel = 0, TQObject* tqparent = 0, const char* name = 0 ); + StereoButtonAction(const TQString& text, const TQIconSet& pix, int accel, const TQObject* receiver, const char* slot, TQObject* tqparent, const char* name = 0 ); + StereoButtonAction(const TQString& text, const TQString& pix, int accel, const TQObject* receiver, const char* slot, TQObject* tqparent, const char* name = 0 ); public slots: void disable(void); void enable(void); diff --git a/noatun/library/noatun/vequalizer.h b/noatun/library/noatun/vequalizer.h index d5ee7ecf..5e494472 100644 --- a/noatun/library/noatun/vequalizer.h +++ b/noatun/library/noatun/vequalizer.h @@ -4,7 +4,7 @@ * This file is hereby licensed under the GNU General Public License version * 2 or later at your option. * - * This file is licensed under the Qt Public License version 1 with the + * This file is licensed under the TQt Public License version 1 with the * condition that the licensed will be governed under the Laws of California * (USA) instead of Norway. Disputes will be settled in Santa Clara county * courts. @@ -36,8 +36,8 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef NOATUN_VEQUALIZER_H -#define NOATUN_VEQUALIZER_H +#ifndef NOATUN_VETQUALIZER_H +#define NOATUN_VETQUALIZER_H #include #include @@ -137,6 +137,7 @@ public: class KDE_EXPORT VInterpolation : public TQObject, public VBandsInterface { Q_OBJECT + TQ_OBJECT struct Private; Private *d; friend class VBand; @@ -176,6 +177,7 @@ class VPreset; class KDE_EXPORT VEqualizer : public TQObject, public VBandsInterface { Q_OBJECT + TQ_OBJECT friend class VBand; friend class VPreset; friend class Engine; diff --git a/noatun/library/noatun/video.h b/noatun/library/noatun/video.h index a659401e..217a8640 100644 --- a/noatun/library/noatun/video.h +++ b/noatun/library/noatun/video.h @@ -12,6 +12,7 @@ class TQPopupMenu; class VideoFrame : public KVideoWidget { Q_OBJECT + TQ_OBJECT struct Private; VideoFrame::Private *d; @@ -19,8 +20,8 @@ Q_OBJECT static VideoFrame *whose; public: - VideoFrame(KXMLGUIClient *clientParent, TQWidget *parent=0, const char *name=0, WFlags f=0); - VideoFrame(TQWidget *parent = 0, const char *name=0, WFlags f=0); + VideoFrame(KXMLGUIClient *clientParent, TQWidget *tqparent=0, const char *name=0, WFlags f=0); + VideoFrame(TQWidget *tqparent = 0, const char *name=0, WFlags f=0); ~VideoFrame(); /** @@ -28,7 +29,7 @@ public: **/ static VideoFrame *playing(); - TQPopupMenu *popupMenu(TQWidget *parent); + TQPopupMenu *popupMenu(TQWidget *tqparent); TQPopupMenu *popupMenu() { return popupMenu(this); } public slots: diff --git a/noatun/library/noatunarts/Session_impl.cpp b/noatun/library/noatunarts/Session_impl.cpp index 63912801..edec216a 100644 --- a/noatun/library/noatunarts/Session_impl.cpp +++ b/noatun/library/noatunarts/Session_impl.cpp @@ -10,7 +10,7 @@ static bool compareArtsObjects(const Noatun::Listener &left, const Noatun::Liste return left._isEqual(right); } -list::iterator find(list &v, const Noatun::Listener &is, +list::iterator tqfind(list &v, const Noatun::Listener &is, bool (*compare)(const Noatun::Listener& left, const Noatun::Listener& right)) { for (list::iterator i=v.begin(); i!=v.end(); ++i) @@ -55,7 +55,7 @@ public: void removeListener(Noatun::Listener listener) { list::iterator i= - find(listeners, listener, &compareArtsObjects); + tqfind(listeners, listener, &compareArtsObjects); if (i!=listeners.end()) listeners.erase(i); } diff --git a/noatun/library/noatunarts/StereoEffectStack_impl.cpp b/noatun/library/noatunarts/StereoEffectStack_impl.cpp index 684d9694..107f06e9 100644 --- a/noatun/library/noatunarts/StereoEffectStack_impl.cpp +++ b/noatun/library/noatunarts/StereoEffectStack_impl.cpp @@ -85,7 +85,7 @@ class StereoEffectStack_impl : public StereoEffectStack_skel, public StdSynthMod list::iterator i = fx.begin(); bool found=false; - // seek through until we find 'after' + // seek through until we tqfind 'after' while(i != fx.end()) if((*i)->id == after) { diff --git a/noatun/library/noatunstdaction.cpp b/noatun/library/noatunstdaction.cpp index 99b69cb3..72c67d1c 100644 --- a/noatun/library/noatunstdaction.cpp +++ b/noatun/library/noatunstdaction.cpp @@ -21,8 +21,8 @@ namespace NoatunStdAction { ///////////////////////////////////////////////////// -PlayAction::PlayAction(TQObject *parent, const char *name) - : KAction(i18n("Play"), 0, napp->player(), TQT_SLOT(playpause()), parent, name) +PlayAction::PlayAction(TQObject *tqparent, const char *name) + : KAction(i18n("Play"), 0, napp->player(), TQT_SLOT(playpause()), tqparent, name) { connect(napp->player(), TQT_SIGNAL(playing()), TQT_SLOT(playing())); connect(napp->player(), TQT_SIGNAL(paused()), TQT_SLOT(notplaying())); @@ -46,8 +46,8 @@ void PlayAction::notplaying() } ///////////////////////////////////////////////////// -PlaylistAction::PlaylistAction(TQObject *parent, const char *name) - : KToggleAction(i18n("Show Playlist"), "playlist", 0, napp->player(), TQT_SLOT(toggleListView()), parent, name) +PlaylistAction::PlaylistAction(TQObject *tqparent, const char *name) + : KToggleAction(i18n("Show Playlist"), "playlist", 0, napp->player(), TQT_SLOT(toggleListView()), tqparent, name) { setCheckedState(i18n("Hide Playlist")); connect(napp->player(), TQT_SIGNAL(playlistShown()), TQT_SLOT(shown())); @@ -67,8 +67,8 @@ void PlaylistAction::hidden() //////////////////////////////////////////////////// -PluginActionMenu::PluginActionMenu(TQObject *parent, const char *name) - : KActionMenu(i18n("&Actions"), parent, name) +PluginActionMenu::PluginActionMenu(TQObject *tqparent, const char *name) + : KActionMenu(i18n("&Actions"), tqparent, name) { // kdDebug(66666) << k_funcinfo << "called" << endl; setEnabled(false); @@ -111,11 +111,11 @@ void PluginActionMenu::menuRemove(int id) //////////////////////////////////////////////////// -VisActionMenu::VisActionMenu(TQObject *parent, const char *name) - : KActionMenu(i18n("&Visualizations"), parent, name) +VisActionMenu::VisActionMenu(TQObject *tqparent, const char *name) + : KActionMenu(i18n("&Visualizations"), tqparent, name) { - connect(popupMenu(), TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(fillPopup())); - connect(popupMenu(), TQT_SIGNAL(activated(int)), this, TQT_SLOT(toggleVisPlugin(int))); + connect(popupMenu(), TQT_SIGNAL(aboutToShow()), TQT_TQOBJECT(this), TQT_SLOT(fillPopup())); + connect(popupMenu(), TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(toggleVisPlugin(int))); } void VisActionMenu::fillPopup() @@ -133,14 +133,14 @@ void VisActionMenu::fillPopup() { id = popupMenu()->insertItem((*i).name); mSpecMap[id] = (*i).specfile; - popupMenu()->setItemChecked(id, loaded.contains(*i)); + popupMenu()->setItemChecked(id, loaded.tqcontains(*i)); } } } void VisActionMenu::toggleVisPlugin(int id) { - if(!mSpecMap.contains(id)) + if(!mSpecMap.tqcontains(id)) return; TQString specfile = mSpecMap[id]; @@ -159,30 +159,30 @@ void VisActionMenu::toggleVisPlugin(int id) //////////////////////////////////////////////////// -LoopActionMenu::LoopActionMenu(TQObject *parent, const char *name) - : KActionMenu(i18n("&Loop"), parent, name) +LoopActionMenu::LoopActionMenu(TQObject *tqparent, const char *name) + : KActionMenu(i18n("&Loop"), tqparent, name) { mLoopNone = new KRadioAction(i18n("&None"), TQString::fromLocal8Bit("noatunloopnone"), - 0, this, TQT_SLOT(loopNoneSelected()), this, "loop_none"); + 0, TQT_TQOBJECT(this), TQT_SLOT(loopNoneSelected()), TQT_TQOBJECT(this), "loop_none"); mLoopNone->setExclusiveGroup("loopType"); insert(mLoopNone); mLoopSong = new KRadioAction(i18n("&Song"), TQString::fromLocal8Bit("noatunloopsong"), - 0, this, TQT_SLOT(loopSongSelected()), this, "loop_song"); + 0, TQT_TQOBJECT(this), TQT_SLOT(loopSongSelected()), TQT_TQOBJECT(this), "loop_song"); mLoopSong->setExclusiveGroup("loopType"); insert(mLoopSong); mLoopPlaylist = new KRadioAction(i18n("&Playlist"), TQString::fromLocal8Bit("noatunloopplaylist"), - 0, this, TQT_SLOT(loopPlaylistSelected()), this, "loop_playlist"); + 0, TQT_TQOBJECT(this), TQT_SLOT(loopPlaylistSelected()), TQT_TQOBJECT(this), "loop_playlist"); mLoopPlaylist->setExclusiveGroup("loopType"); insert(mLoopPlaylist); mLoopRandom = new KRadioAction(i18n("&Random"), TQString::fromLocal8Bit("noatunlooprandom"), - 0, this, TQT_SLOT(loopRandomSelected()), this, "loop_random"); + 0, TQT_TQOBJECT(this), TQT_SLOT(loopRandomSelected()), TQT_TQOBJECT(this), "loop_random"); mLoopRandom->setExclusiveGroup("loopType"); insert(mLoopRandom); - connect(napp->player(), TQT_SIGNAL(loopTypeChange(int)), this, TQT_SLOT(updateLooping(int))); + connect(napp->player(), TQT_SIGNAL(loopTypeChange(int)), TQT_TQOBJECT(this), TQT_SLOT(updateLooping(int))); updateLooping(static_cast(napp->player()->loopStyle())); } @@ -232,29 +232,29 @@ void LoopActionMenu::loopRandomSelected() //////////////////////////////////////////////////// -KAction *playpause(TQObject *parent, const char *name) +KAction *playpause(TQObject *tqparent, const char *name) { - return new PlayAction(parent, name); + return new PlayAction(tqparent, name); } -KAction *effects(TQObject *parent, const char *name) +KAction *effects(TQObject *tqparent, const char *name) { - return new KAction(i18n("&Effects..."), "effect", 0, napp, TQT_SLOT(effectView()), parent, name); + return new KAction(i18n("&Effects..."), "effect", 0, TQT_TQOBJECT(napp), TQT_SLOT(effectView()), tqparent, name); } -KAction *equalizer(TQObject *parent, const char *name) +KAction *equalizer(TQObject *tqparent, const char *name) { - return new KAction(i18n("E&qualizer..."), "equalizer", 0, napp, TQT_SLOT(equalizerView()), parent, name); + return new KAction(i18n("E&qualizer..."), "equalizer", 0, TQT_TQOBJECT(napp), TQT_SLOT(equalizerView()), tqparent, name); } -KAction *back(TQObject *parent, const char *name) +KAction *back(TQObject *tqparent, const char *name) { - return new KAction(i18n("&Back"), "player_start", 0, napp->player(), TQT_SLOT(back()), parent, name); + return new KAction(i18n("&Back"), "player_start", 0, TQT_TQOBJECT(napp->player()), TQT_SLOT(back()), tqparent, name); } -KAction *stop(TQObject *parent, const char *name) +KAction *stop(TQObject *tqparent, const char *name) { - StereoButtonAction *action = new StereoButtonAction(i18n("Stop"), "player_stop", 0, napp->player(), TQT_SLOT(stop()), parent, name); + StereoButtonAction *action = new StereoButtonAction(i18n("Stop"), "player_stop", 0, napp->player(), TQT_SLOT(stop()), tqparent, name); TQObject::connect(napp->player(), TQT_SIGNAL(playing()), action, TQT_SLOT(enable())); TQObject::connect(napp->player(), TQT_SIGNAL(paused()), action, TQT_SLOT(enable())); TQObject::connect(napp->player(), TQT_SIGNAL(stopped()), action, TQT_SLOT(disable())); @@ -265,14 +265,14 @@ KAction *stop(TQObject *parent, const char *name) return action; } -KAction *forward(TQObject *parent, const char *name) +KAction *forward(TQObject *tqparent, const char *name) { - return new KAction(i18n("&Forward"), "player_end", 0, napp->player(), TQT_SLOT(forward()), parent, name); + return new KAction(i18n("&Forward"), "player_end", 0, napp->player(), TQT_SLOT(forward()), tqparent, name); } -KAction *play(TQObject *parent, const char *name) +KAction *play(TQObject *tqparent, const char *name) { - StereoButtonAction *action = new StereoButtonAction(i18n("&Play"), "player_play", 0, napp->player(), TQT_SLOT(playpause()), parent, name); + StereoButtonAction *action = new StereoButtonAction(i18n("&Play"), "player_play", 0, napp->player(), TQT_SLOT(playpause()), tqparent, name); TQObject::connect(napp->player(), TQT_SIGNAL(playing()), action, TQT_SLOT(disable())); TQObject::connect(napp->player(), TQT_SIGNAL(paused()), action, TQT_SLOT(enable())); TQObject::connect(napp->player(), TQT_SIGNAL(stopped()), action, TQT_SLOT(enable())); @@ -283,9 +283,9 @@ KAction *play(TQObject *parent, const char *name) return action; } -KAction *pause(TQObject *parent, const char *name) +KAction *pause(TQObject *tqparent, const char *name) { - StereoButtonAction *action = new StereoButtonAction(i18n("&Pause"), "player_pause", 0, napp->player(), TQT_SLOT(playpause()), parent, name); + StereoButtonAction *action = new StereoButtonAction(i18n("&Pause"), "player_pause", 0, napp->player(), TQT_SLOT(playpause()), tqparent, name); TQObject::connect(napp->player(), TQT_SIGNAL(playing()), action, TQT_SLOT(enable())); TQObject::connect(napp->player(), TQT_SIGNAL(paused()), action, TQT_SLOT(disable())); TQObject::connect(napp->player(), TQT_SIGNAL(stopped()), action, TQT_SLOT(disable())); @@ -296,9 +296,9 @@ KAction *pause(TQObject *parent, const char *name) return action; } -LoopActionMenu *loop(TQObject *parent, const char *name) +LoopActionMenu *loop(TQObject *tqparent, const char *name) { - return new LoopActionMenu(parent, name); + return new LoopActionMenu(tqparent, name); } PluginActionMenu *actions() @@ -307,14 +307,14 @@ PluginActionMenu *actions() return napp->pluginActionMenu(); } -VisActionMenu *visualizations(TQObject *parent, const char *name) +VisActionMenu *visualizations(TQObject *tqparent, const char *name) { - return new VisActionMenu(parent, name); + return new VisActionMenu(tqparent, name); } -KToggleAction *playlist(TQObject *parent, const char *name) +KToggleAction *playlist(TQObject *tqparent, const char *name) { - return new PlaylistAction(parent, name); + return new PlaylistAction(tqparent, name); } KPopupMenu *ContextMenu::mContextMenu = 0; @@ -333,15 +333,15 @@ KPopupMenu *ContextMenu::createContextMenu(TQWidget *p) KHelpMenu *helpmenu = new KHelpMenu(contextMenu, kapp->aboutData(), false); KActionCollection* actions = new KActionCollection(helpmenu); - KStdAction::open(napp, TQT_SLOT(fileOpen()), actions)->plug(contextMenu); - KStdAction::quit(napp, TQT_SLOT(quit()), actions)->plug(contextMenu); + KStdAction::open(TQT_TQOBJECT(napp), TQT_SLOT(fileOpen()), actions)->plug(contextMenu); + KStdAction::quit(TQT_TQOBJECT(napp), TQT_SLOT(quit()), actions)->plug(contextMenu); contextMenu->insertItem(SmallIcon("help"), KStdGuiItem::help().text(), helpmenu->menu()); contextMenu->insertSeparator(); - KStdAction::preferences(napp, TQT_SLOT(preferences()), actions)->plug(contextMenu); - NoatunStdAction::playlist(contextMenu)->plug(contextMenu); - NoatunStdAction::effects(contextMenu)->plug(contextMenu); - NoatunStdAction::equalizer(napp)->plug(contextMenu); - NoatunStdAction::visualizations(napp)->plug(contextMenu); + KStdAction::preferences(TQT_TQOBJECT(napp), TQT_SLOT(preferences()), actions)->plug(contextMenu); + NoatunStdAction::playlist(TQT_TQOBJECT(contextMenu))->plug(contextMenu); + NoatunStdAction::effects(TQT_TQOBJECT(contextMenu))->plug(contextMenu); + NoatunStdAction::equalizer(TQT_TQOBJECT(napp))->plug(contextMenu); + NoatunStdAction::visualizations(TQT_TQOBJECT(napp))->plug(contextMenu); napp->pluginActionMenu()->plug(contextMenu); return contextMenu; diff --git a/noatun/library/noatuntags/tags.cpp b/noatun/library/noatuntags/tags.cpp index 268f7bd9..47e2d92a 100644 --- a/noatun/library/noatuntags/tags.cpp +++ b/noatun/library/noatuntags/tags.cpp @@ -177,8 +177,8 @@ Tags::~Tags() } -Control::Control(TagsGetter *parent) - : CModule(i18n("Tagging"), i18n("Settings for Tag Loaders"), "edit", parent) +Control::Control(TagsGetter *tqparent) + : CModule(i18n("Tagging"), i18n("Settings for Tag Loaders"), "edit", tqparent) { // todo (void)I18N_NOOP("Rescan All Tags"); @@ -201,7 +201,7 @@ Control::Control(TagsGetter *parent) ", and updates tags (e.g., ID3)", "Interval:"), intervalLine); TQSlider *slider=new TQSlider( - 0, 2000, 100, 0, Horizontal, intervalLine + 0, 2000, 100, 0,Qt::Horizontal, intervalLine ); TQSpinBox *spin=new TQSpinBox( 0, 2000, 10, intervalLine @@ -212,14 +212,14 @@ Control::Control(TagsGetter *parent) connect(slider, TQT_SIGNAL(valueChanged(int)), spin, TQT_SLOT(setValue(int))); connect(spin, TQT_SIGNAL(valueChanged(int)), slider, TQT_SLOT(setValue(int))); - slider->setValue(parent->interval()); - connect(slider, TQT_SIGNAL(valueChanged(int)), parent, TQT_SLOT(setInterval(int))); + slider->setValue(tqparent->interval()); + connect(slider, TQT_SIGNAL(valueChanged(int)), tqparent, TQT_SLOT(setInterval(int))); connect(onPlay, TQT_SIGNAL(toggled(bool)), intervalLine, TQT_SLOT(setEnabled(bool))); } - connect(onPlay, TQT_SIGNAL(toggled(bool)), parent, TQT_SLOT(setLoadAuto(bool))); + connect(onPlay, TQT_SIGNAL(toggled(bool)), tqparent, TQT_SLOT(setLoadAuto(bool))); - onPlay->setChecked(parent->loadAuto()); + onPlay->setChecked(tqparent->loadAuto()); } diff --git a/noatun/library/noatuntags/tagsgetter.h b/noatun/library/noatuntags/tagsgetter.h index 8b6eddb9..bd66ab3f 100644 --- a/noatun/library/noatuntags/tagsgetter.h +++ b/noatun/library/noatuntags/tagsgetter.h @@ -10,6 +10,7 @@ class TagsGetter : public TQObject, public PlaylistNotifier { Q_OBJECT + TQ_OBJECT public: TagsGetter(); void associate(Tags *t); @@ -47,8 +48,9 @@ private: class Control : public CModule { Q_OBJECT + TQ_OBJECT public: - Control(TagsGetter* parent); + Control(TagsGetter* tqparent); }; diff --git a/noatun/library/player.cpp b/noatun/library/player.cpp index 0b90952c..accdfd47 100644 --- a/noatun/library/player.cpp +++ b/noatun/library/player.cpp @@ -14,7 +14,7 @@ enum ArtsPOS { posIdle=0, posPlaying, posPaused }; -Player::Player(TQObject *parent) : TQObject(parent, "Player"), +Player::Player(TQObject *tqparent) : TQObject(tqparent, "Player"), position(-1), mLoopStyle(None), firstTimeout(true) { mEngine=new Engine; diff --git a/noatun/library/playlist.cpp b/noatun/library/playlist.cpp index 7cc28337..a86be118 100644 --- a/noatun/library/playlist.cpp +++ b/noatun/library/playlist.cpp @@ -62,12 +62,12 @@ TQString PlaylistItemData::title() const // "$(property)" TQString format=napp->titleFormat(); - TQRegExp find("(?:(?:\\\\\\\\))*\\$\\((.*)"); + TQRegExp tqfind("(?:(?:\\\\\\\\))*\\$\\((.*)"); int start=0; while (start != -1) { - start = find.search(format, start); + start = tqfind.search(format, start); if (start == -1) break; // test if there's an odd amount of backslashes @@ -81,8 +81,8 @@ TQString PlaylistItemData::title() const uint len=counter.cap(1).length()-1; // and half them, and remove one more - format.replace(start-1, len/2+1, ""); - start=start-1+len/2+find.cap(1).length()+3; + format.tqreplace(start-1, len/2+1, ""); + start=start-1+len/2+tqfind.cap(1).length()+3; continue; } @@ -96,12 +96,12 @@ TQString PlaylistItemData::title() const uint len=counter.cap(1).length(); // and half them - format.replace(start, len/2, ""); + format.tqreplace(start, len/2, ""); start=start+len/2; } // "sth"foo"sth" - TQString cont(find.cap(1)); + TQString cont(tqfind.cap(1)); TQString prefix,suffix,propname; unsigned int i=0; if (cont[i] == '"') @@ -150,18 +150,18 @@ TQString PlaylistItemData::title() const { // comments can contain newlines // these are not wanted in a formatted title - propval.replace('\n', ' '); + propval.tqreplace('\n', ' '); } if (propval.length()) { propval = prefix+propval+suffix; - format.replace(start, i+2, propval); + format.tqreplace(start, i+2, propval); start += propval.length(); } else { - format.replace(start, i+2, ""); + format.tqreplace(start, i+2, ""); } } return format; @@ -278,7 +278,7 @@ bool PlaylistItemData::operator != (const PlaylistItemData &d) const -Playlist::Playlist(TQObject *parent, const char *name) : TQObject(parent, name) +Playlist::Playlist(TQObject *tqparent, const char *name) : TQObject(tqparent, name) { napp->player()->connect(this, TQT_SIGNAL(playCurrent()), TQT_SLOT(playCurrent())); napp->player()->connect(this, TQT_SIGNAL(listHidden()), TQT_SIGNAL(playlistHidden())); @@ -356,7 +356,7 @@ TQValueList Playlist::select( } else { - if ((*val).find(v, 0, caseSensitive)!=-1) + if ((*val).tqfind(v, 0, caseSensitive)!=-1) { list.append(i); limit--; diff --git a/noatun/library/playlistsaver.cpp b/noatun/library/playlistsaver.cpp index 8b34deca..15fcad58 100644 --- a/noatun/library/playlistsaver.cpp +++ b/noatun/library/playlistsaver.cpp @@ -107,7 +107,7 @@ bool PlaylistSaver::metalist(const KURL &url) TQMap map; map["playObject"]="Arts::StreamPlayObject"; - map["title"] = i18n("Stream from %1").arg(url.host()); + map["title"] = i18n("Stream from %1").tqarg(url.host()); KURL u(url); if (!u.hasPath()) @@ -144,7 +144,7 @@ bool PlaylistSaver::saveXML(const KURL &file, int ) else localFile = napp->tempSaveName(file.path()); - // QDom is a pain :) + // TQDom is a pain :) TQDomDocument doc("playlist"); doc.setContent(TQString("")); @@ -186,7 +186,7 @@ bool PlaylistSaver::saveXML(const KURL &file, int ) return true; } -class NoatunXMLStructure : public QXmlDefaultHandler +class NoatunXMLStructure : public TQXmlDefaultHandler { public: PlaylistSaver *saver; @@ -231,7 +231,7 @@ public: }; -class MSASXStructure : public QXmlDefaultHandler +class MSASXStructure : public TQXmlDefaultHandler { public: PlaylistSaver *saver; @@ -291,7 +291,7 @@ public: if(a.qName(i).lower()=="href") { TQString filename=a.value(i); - if (filename.find(TQRegExp("^[a-zA-Z0-9]+:/"))==0) + if (filename.tqfind(TQRegExp("^[a-zA-Z0-9]+:/"))==0) { KURL url(filename); KMimeType::Ptr mimetype = KMimeType::findByURL(url); @@ -303,7 +303,7 @@ public: else { propMap["playObject"]="SplayPlayObject"; - propMap["title"] = i18n("Stream from %1").arg(url.host()); + propMap["title"] = i18n("Stream from %1").tqarg(url.host()); if (!url.hasPath()) url.setPath("/"); propMap["url"] = url.url(); @@ -316,7 +316,7 @@ public: { KURL u1; // we have to deal with a relative path - if (filename.find('/')) + if (filename.tqfind('/')) { u1.setPath(mAbsPath); //FIXME: how to get the path in this place? u1.setFileName(filename); @@ -448,8 +448,8 @@ bool PlaylistSaver::loadXML(const KURL &url, int opt) reset(); - // QXml is horribly documented - TQXmlInputSource source(&file); + // TQXml is horribly documented + TQXmlInputSource source(TQT_TQIODEVICE(&file)); TQXmlSimpleReader reader; if (opt == ASX || @@ -541,7 +541,7 @@ bool PlaylistSaver::loadM3U(const KURL &file, int /*opt*/) if (filename.isEmpty()) continue; - if (filename.find(TQRegExp("^[a-zA-Z0-9]+:/"))==0) + if (filename.tqfind(TQRegExp("^[a-zA-Z0-9]+:/"))==0) { //kdDebug(66666) << k_funcinfo << "url filename = " << filename << endl; @@ -556,7 +556,7 @@ bool PlaylistSaver::loadM3U(const KURL &file, int /*opt*/) { prop["playObject"]="SplayPlayObject"; // Default title, might be overwritten by #EXTINF later - prop["title"] = i18n("Stream from %1").arg(protourl.host()); + prop["title"] = i18n("Stream from %1").tqarg(protourl.host()); if (!protourl.hasPath()) protourl.setPath("/"); @@ -569,7 +569,7 @@ bool PlaylistSaver::loadM3U(const KURL &file, int /*opt*/) { KURL u1; // we have to deal with a relative path - if (filename.find('/')) + if (filename.tqfind('/')) { u1.setPath(file.path(0)); u1.setFileName(filename); @@ -587,7 +587,7 @@ bool PlaylistSaver::loadM3U(const KURL &file, int /*opt*/) { extinf.remove(0,8); // remove "#EXTINF:" //kdDebug(66666) << "EXTM3U extinf = '" << extinf << "'" << endl; - int timeTitleSep = extinf.find(',', 0); + int timeTitleSep = extinf.tqfind(',', 0); int length = (extinf.left(timeTitleSep)).toInt(); if (length>0) @@ -596,7 +596,7 @@ bool PlaylistSaver::loadM3U(const KURL &file, int /*opt*/) TQString displayTitle=extinf.mid(timeTitleSep+1); if (!displayTitle.isEmpty()) { - int artistTitleSep = displayTitle.find(" - ",0); + int artistTitleSep = displayTitle.tqfind(" - ",0); if (artistTitleSep == -1) // no "artist - title" like format, just set it as title { prop["title"] = displayTitle; @@ -718,7 +718,7 @@ bool PlaylistSaver::loadPLS(const KURL &file, int /*opt*/) // some stupid Windows lusers like to be case insensitive TQStringList groups = list.groupList().grep(TQRegExp("^playlist$", false)); /* - if (!groups.count()) // didn't find "[playlist]", it's not a .pls file + if (!groups.count()) // didn't tqfind "[playlist]", it's not a .pls file return false; */ @@ -748,9 +748,9 @@ bool PlaylistSaver::loadPLS(const KURL &file, int /*opt*/) map["playObject"]="SplayPlayObject"; if (title.isEmpty()) - map["title"] = i18n("Stream from %1 (port: %2)").arg( url.host() ).arg( url.port() ); + map["title"] = i18n("Stream from %1 (port: %2)").tqarg( url.host() ).tqarg( url.port() ); else - map["title"] = i18n("Stream from %1, (ip: %2, port: %3)").arg( title ).arg( url.host() ).arg(url.port() ); + map["title"] = i18n("Stream from %1, (ip: %2, port: %3)").tqarg( title ).tqarg( url.host() ).tqarg(url.port() ); map["url"] = map["stream_"]= url.url(); diff --git a/noatun/library/plugin.cpp b/noatun/library/plugin.cpp index 3c5b6f5d..36c1a2cf 100644 --- a/noatun/library/plugin.cpp +++ b/noatun/library/plugin.cpp @@ -85,16 +85,16 @@ Visualization::Visualization(int timeout, int pid) // if this is a fork, do a cutesy arts thingy to get a remote // stack, otherwise, get it from localhost :) { - int parent=pid ? pid : getppid(); + int tqparent=pid ? pid : getppid(); if (getenv("NOATUN_PID")) - parent = TQString::fromLatin1(getenv("NOATUN_PID")).toInt(); + tqparent = TQString::tqfromLatin1(getenv("NOATUN_PID")).toInt(); DCOPClient c; c.attach(); TQCString appids[2]; - appids[0]=TQString("noatun-%1").arg(parent).local8Bit(); + appids[0]=TQString("noatun-%1").tqarg(tqparent).local8Bit(); appids[1]="noatun"; TQCString &appid=appids[0]; @@ -120,7 +120,7 @@ Visualization::Visualization(int timeout, int pid) if (!c.call(appid, "Noatun", "visStack()", TQByteArray(), replyType, replyData)) { - kdDebug(66666) << "Error communicating to parent noatun" << endl; + kdDebug(66666) << "Error communicating to tqparent noatun" << endl; } else { @@ -187,7 +187,7 @@ int Visualization::noatunPid() { if ((*i).left(6) != "noatun") continue; - int pid=(*i).mid((*i).find('-')+1).toInt(); + int pid=(*i).mid((*i).tqfind('-')+1).toInt(); return pid; } return -1; @@ -473,7 +473,7 @@ void StereoScope::setSamples(int len) -NoatunListener::NoatunListener(TQObject *parent) : TQObject(parent) +NoatunListener::NoatunListener(TQObject *tqparent) : TQObject(tqparent) { } NoatunListener::~NoatunListener() @@ -495,7 +495,7 @@ void NoatunListenerNotif::message() } -ExitNotifier::ExitNotifier(int pid, TQObject *parent) : NoatunListener(parent) +ExitNotifier::ExitNotifier(int pid, TQObject *tqparent) : NoatunListener(tqparent) { mNotif=new NoatunListenerNotif(this); @@ -504,7 +504,7 @@ ExitNotifier::ExitNotifier(int pid, TQObject *parent) : NoatunListener(parent) TQCString appids[2]; - appids[0]=TQString("noatun-%1").arg(pid).local8Bit(); + appids[0]=TQString("noatun-%1").tqarg(pid).local8Bit(); appids[1]="noatun"; appid=appids[0]; @@ -528,7 +528,7 @@ ExitNotifier::ExitNotifier(int pid, TQObject *parent) : NoatunListener(parent) if (!c.call(appid, "Noatun", "session()", TQByteArray(), replyType, replyData)) { - kdDebug(66666) << "Error communicating to parent noatun" << endl; + kdDebug(66666) << "Error communicating to tqparent noatun" << endl; } else { @@ -563,8 +563,8 @@ ExitNotifier::~ExitNotifier() delete mNotif; } -BoolNotifier::BoolNotifier(bool *value, NoatunListener *listener, TQObject *parent) - : TQObject(parent) +BoolNotifier::BoolNotifier(bool *value, NoatunListener *listener, TQObject *tqparent) + : TQObject(tqparent) { connect(listener, TQT_SIGNAL(event()), TQT_SLOT(event())); mValue=value; diff --git a/noatun/library/plugin_deps.h b/noatun/library/plugin_deps.h index 330636e3..e52e73c1 100644 --- a/noatun/library/plugin_deps.h +++ b/noatun/library/plugin_deps.h @@ -9,9 +9,10 @@ class Visualization; class NoatunListener; -class TimerThingy : public QObject +class TimerThingy : public TQObject { Q_OBJECT + TQ_OBJECT public: TimerThingy(Visualization*); diff --git a/noatun/library/pluginloader.cpp b/noatun/library/pluginloader.cpp index 0897e76d..032761a0 100644 --- a/noatun/library/pluginloader.cpp +++ b/noatun/library/pluginloader.cpp @@ -81,7 +81,7 @@ bool LibraryLoader::loadAll(const TQStringList &modules) for(TQStringList::ConstIterator i=modules.begin(); i!=modules.end(); ++i) { NoatunLibraryInfo info=getInfo(*i); - if (!info.type.contains("sm")) + if (!info.type.tqcontains("sm")) continue; loadSO(*i); } @@ -90,7 +90,7 @@ bool LibraryLoader::loadAll(const TQStringList &modules) for(TQStringList::ConstIterator i=modules.begin(); i!=modules.end(); ++i) { NoatunLibraryInfo info=getInfo(*i); - if (!info.type.contains("playlist")) + if (!info.type.tqcontains("playlist")) continue; loadSO(*i); } @@ -106,7 +106,7 @@ bool LibraryLoader::loadAll(const TQStringList &modules) for(TQStringList::ConstIterator i=modules.begin(); i!=modules.end(); ++i) { NoatunLibraryInfo info=getInfo(*i); - if (!info.type.contains("userinterface")) + if (!info.type.tqcontains("userinterface")) continue; loadSO(*i); } @@ -121,9 +121,9 @@ bool LibraryLoader::loadAll(const TQStringList &modules) for(TQStringList::ConstIterator i=modules.begin(); i!=modules.end(); ++i) { NoatunLibraryInfo info=getInfo(*i); - if((!info.type.contains("playlist")) - && (!info.type.contains("userinterface")) - && (!info.type.contains("sm"))) + if((!info.type.tqcontains("playlist")) + && (!info.type.tqcontains("userinterface")) + && (!info.type.tqcontains("sm"))) { loadSO(*i); } @@ -139,7 +139,7 @@ NoatunLibraryInfo LibraryLoader::getInfo(const TQString &spec) const if (!TQFile::exists(specPath)) return info; KSimpleConfig file(specPath); - if (spec.find('/')>=0) + if (spec.tqfind('/')>=0) info.specfile=KURL(spec).fileName(); else info.specfile=spec; @@ -197,7 +197,7 @@ bool LibraryLoader::loadSO(const TQString &spec) plugInStart=(Plugin* (*)()) create; listitem->plugin=plugInStart(); - if (info.type.contains("playlist")) + if (info.type.tqcontains("playlist")) { //kdDebug(66666) << k_funcinfo << "Assigning mPlaylist to " << info.name << endl; mPlaylist=listitem->plugin->playlist(); @@ -329,7 +329,7 @@ TQValueList LibraryLoader::loadedByType(const TQString &type) if (isLoaded(i.currentKey())) { NoatunLibraryInfo info = getInfo(i.currentKey()); - if (info.type.contains(type)) + if (info.type.tqcontains(type)) items.append(info); } } diff --git a/noatun/library/pluginmodule.cpp b/noatun/library/pluginmodule.cpp index 77047471..0cd47d6d 100644 --- a/noatun/library/pluginmodule.cpp +++ b/noatun/library/pluginmodule.cpp @@ -203,34 +203,34 @@ void Plugins::reopen() for(TQValueList::Iterator i = available.begin(); i != available.end(); ++i) { - PluginListView *parent; + PluginListView *tqparent; bool exclusive = false; if((*i).type == "userinterface") { - parent = interfaceList; + tqparent = interfaceList; } else if((*i).type == "playlist") { - parent = playlistList; + tqparent = playlistList; exclusive = true; } else if((*i).type == "sm" || (*i).type=="hidden") { - parent = 0; + tqparent = 0; } else if ((*i).type == "visualization") { - parent = visList; + tqparent = visList; } else { - parent = otherList; + tqparent = otherList; } - if(parent) + if(tqparent) { - PluginListItem *item = new PluginListItem(exclusive, loaded.contains(*i), *i, parent); + PluginListItem *item = new PluginListItem(exclusive, loaded.tqcontains(*i), *i, tqparent); item->setText(0, (*i).name); item->setText(1, (*i).comment); item->setText(2, (*i).author); @@ -257,9 +257,9 @@ void Plugins::addPlugin(const NoatunLibraryInfo &info) if(item) item->setOn(true); } - if(mDeleted.contains(info.specfile)) + if(mDeleted.tqcontains(info.specfile)) mDeleted.remove(info.specfile); - else if(!mAdded.contains(info.specfile)) + else if(!mAdded.tqcontains(info.specfile)) mAdded.append(info.specfile); } @@ -291,9 +291,9 @@ void Plugins::removePlugin(const NoatunLibraryInfo &info) } } - if (mAdded.contains(info.specfile)) + if (mAdded.tqcontains(info.specfile)) mAdded.remove(info.specfile); - else if(!mDeleted.contains(info.specfile)) + else if(!mDeleted.tqcontains(info.specfile)) mDeleted.append(info.specfile); } @@ -382,7 +382,7 @@ void Plugins::save() TQValueList loaded = loader.loaded(); for(TQValueList::Iterator i = loaded.begin(); i != loaded.end(); ++i) { - if(!specList.contains((*i).specfile) && loader.isLoaded((*i).specfile)) + if(!specList.tqcontains((*i).specfile) && loader.isLoaded((*i).specfile)) specList += (*i).specfile; } @@ -398,7 +398,7 @@ void Plugins::showEvent(TQShowEvent *e) if(!shown) { shown = true; - KMessageBox::information(this, i18n("Changing your playlist plugin will stop playback. Different playlists may use different methods of storing information, so after changing playlists you may have to recreate your playlist."), TQString::null, "Plugin warning"); + KMessageBox::information(this, i18n("Changing your playlist plugin will stop playback. Different playlists may use different methods of storing information, so after changing playlists you may have to recreate your playlist."), TQString(), "Plugin warning"); } CModule::showEvent(e); } diff --git a/noatun/library/pluginmodule.h b/noatun/library/pluginmodule.h index 59ece235..c3818040 100644 --- a/noatun/library/pluginmodule.h +++ b/noatun/library/pluginmodule.h @@ -30,7 +30,7 @@ class KTabCtl; -class PluginListItem : public QCheckListItem +class PluginListItem : public TQCheckListItem { public: PluginListItem(const bool _exclusive, bool _checked, const NoatunLibraryInfo &_info, TQListView *_parent); @@ -51,6 +51,7 @@ private: class PluginListView : public KListView { Q_OBJECT + TQ_OBJECT friend class PluginListItem; @@ -75,6 +76,7 @@ private: class Plugins : public CModule { Q_OBJECT + TQ_OBJECT public: Plugins(TQObject *_parent = 0); virtual void save(); diff --git a/noatun/library/pref.cpp b/noatun/library/pref.cpp index 658e7951..04e301ff 100644 --- a/noatun/library/pref.cpp +++ b/noatun/library/pref.cpp @@ -8,9 +8,9 @@ //#include #include "cmodule.h" -NoatunPreferences::NoatunPreferences(TQWidget *parent) +NoatunPreferences::NoatunPreferences(TQWidget *tqparent) : KDialogBase(TreeList, i18n("Preferences - Noatun"), - Ok|Apply|Cancel|Help, Ok, parent, "NoatunPreferences", false, true) + Ok|Apply|Cancel|Help, Ok, tqparent, "NoatunPreferences", false, true) { resize(640, 480); // KDE is required to support 800x600 min. setShowIconsInTreeList(true); @@ -32,7 +32,7 @@ void NoatunPreferences::show() void NoatunPreferences::show(CModule *page) { - int index = pageIndex( static_cast(page->parent()) ); + int index = pageIndex( static_cast(TQT_TQWIDGET(page->tqparent())) ); if (index != -1) showPage(index); show(); @@ -65,29 +65,20 @@ CModule::CModule(const TQString &name, const TQString &description, const TQStri napp->preferencesBox()->add(this); - TQFrame *page=static_cast(parent()); + TQFrame *page=static_cast(TQT_TQWIDGET(tqparent())); (new TQHBoxLayout(page))->addWidget(this); } CModule::~CModule() { //kdDebug(66666) << k_funcinfo << endl; -#if QT_VERSION < 0x030102 && KDE_VERSION < KDE_MAKE_VERSION( 3, 1, 90 ) - // Due to a bug in Qt 3.1 and 3.1.1 no close events are sent to hidden - // widgets, causing the KJanusWidget to crash. This workaround is - // rather intrusive and should be used only in the affected versions - // to avoid hard to track bugs in the future. KDE HEAD (to become 3.2) - // has a workaround for this problem, and additionally it's fixed in - // Qt 3.1.2. - napp->sendPostedEvents(); -#endif napp->preferencesBox()->remove(this); } void CModule::ownerDeleted() { - TQObject *p=parent(); + TQObject *p=tqparent(); delete this; p->deleteLater(); } diff --git a/noatun/library/scrollinglabel.cpp b/noatun/library/scrollinglabel.cpp index 09d64678..682c4f6a 100644 --- a/noatun/library/scrollinglabel.cpp +++ b/noatun/library/scrollinglabel.cpp @@ -40,11 +40,11 @@ class ScrollingLabel::Private } // Order dependency. - QString text; - QString originalText; - QPixmap buf; - QTimer scrollTimer; - QTimer resetTimer; + TQString text; + TQString originalText; + TQPixmap buf; + TQTimer scrollTimer; + TQTimer resetTimer; int scrollSize; int pos; bool add; @@ -54,11 +54,11 @@ class ScrollingLabel::Private ScrollingLabel::ScrollingLabel ( - const QString & initialText, - QWidget * parent, + const TQString & initialText, + TQWidget * tqparent, const char * name ) - : TQWidget(parent, name) + : TQWidget(tqparent, name) { d = new Private; @@ -116,10 +116,10 @@ ScrollingLabel::_update() setFixedHeight(h); - d->scrollSize = QMAX(0, w - width()); + d->scrollSize = TQMAX(0, w - width()); d->buf.resize(w, h); - d->buf.fill(colorGroup().background()); + d->buf.fill(tqcolorGroup().background()); TQPainter p(&d->buf); p.setFont(font()); @@ -128,14 +128,14 @@ ScrollingLabel::_update() if (d->scroll && (d->scrollSize > 0)) d->scrollTimer.start(100, true); - repaint(false); + tqrepaint(false); } void ScrollingLabel::paintEvent(TQPaintEvent *) { bitBlt - (this, 0, 0, &d->buf, d->pos, 0, d->pos + width(), height(), Qt::CopyROP); + (this, 0, 0, &d->buf, d->pos, 0, d->pos + width(), height(), TQt::CopyROP); } void @@ -149,7 +149,7 @@ ScrollingLabel::scroll() { d->scrollTimer.stop(); - repaint(false); + tqrepaint(false); int scrollTime = 100; @@ -165,19 +165,19 @@ ScrollingLabel::scroll() d->scrollTimer.start(scrollTime, true); } - QSize -ScrollingLabel::sizeHint() const + TQSize +ScrollingLabel::tqsizeHint() const { return fontMetrics().boundingRect(d->text).size(); } - QSize -ScrollingLabel::minimumSizeHint() const + TQSize +ScrollingLabel::tqminimumSizeHint() const { return TQSize(0, fontMetrics().height()); } - QString + TQString ScrollingLabel::text() const { return d->text; diff --git a/noatun/library/stereobuttonaction.cpp b/noatun/library/stereobuttonaction.cpp index e8df0046..7d5d3936 100644 --- a/noatun/library/stereobuttonaction.cpp +++ b/noatun/library/stereobuttonaction.cpp @@ -3,28 +3,28 @@ namespace NoatunStdAction { -StereoButtonAction::StereoButtonAction(const TQString& text, int accel, TQObject* parent, const char* name ) - : KAction(text, accel, parent, name) +StereoButtonAction::StereoButtonAction(const TQString& text, int accel, TQObject* tqparent, const char* name ) + : KAction(text, accel, tqparent, name) {} -StereoButtonAction::StereoButtonAction(const TQString& text, int accel, const TQObject* receiver, const char* slot, TQObject* parent, const char* name ) - : KAction(text, accel, receiver, slot, parent, name) +StereoButtonAction::StereoButtonAction(const TQString& text, int accel, const TQObject* receiver, const char* slot, TQObject* tqparent, const char* name ) + : KAction(text, accel, receiver, slot, tqparent, name) {} -StereoButtonAction::StereoButtonAction(const TQString& text, const TQIconSet& pix, int accel, TQObject* parent, const char* name ) - : KAction(text, pix, accel, parent, name) +StereoButtonAction::StereoButtonAction(const TQString& text, const TQIconSet& pix, int accel, TQObject* tqparent, const char* name ) + : KAction(text, pix, accel, tqparent, name) {} -StereoButtonAction::StereoButtonAction(const TQString& text, const TQString& pix, int accel, TQObject* parent, const char* name ) - : KAction(text, pix, accel, parent, name) +StereoButtonAction::StereoButtonAction(const TQString& text, const TQString& pix, int accel, TQObject* tqparent, const char* name ) + : KAction(text, pix, accel, tqparent, name) {} -StereoButtonAction::StereoButtonAction(const TQString& text, const TQIconSet& pix, int accel, const TQObject* receiver, const char* slot, TQObject* parent, const char* name ) - : KAction(text, pix, accel, receiver, slot, parent, name) +StereoButtonAction::StereoButtonAction(const TQString& text, const TQIconSet& pix, int accel, const TQObject* receiver, const char* slot, TQObject* tqparent, const char* name ) + : KAction(text, pix, accel, receiver, slot, tqparent, name) {} -StereoButtonAction::StereoButtonAction(const TQString& text, const TQString& pix, int accel, const TQObject* receiver, const char* slot, TQObject* parent, const char* name ) - : KAction(text, pix, accel, receiver, slot, parent, name) +StereoButtonAction::StereoButtonAction(const TQString& text, const TQString& pix, int accel, const TQObject* receiver, const char* slot, TQObject* tqparent, const char* name ) + : KAction(text, pix, accel, receiver, slot, tqparent, name) {} void StereoButtonAction::disable(void) diff --git a/noatun/library/titleproxy.cpp b/noatun/library/titleproxy.cpp index ee62863c..bda84b18 100644 --- a/noatun/library/titleproxy.cpp +++ b/noatun/library/titleproxy.cpp @@ -157,11 +157,11 @@ void Proxy::sendRequest() //SLOT "%3" "%4" "\r\n" ) - .arg( m_url.path( -1 ).isEmpty() ? "/" : m_url.path( -1 ) ) - .arg( m_url.host() ) - .arg( m_icyMode ? TQString( "Icy-MetaData:1\r\n" ) : TQString::null ) - .arg( auth ? TQString( "Authorization: Basic " ).append( authString ) : TQString::null ) - .arg( NOATUN_VERSION ); + .tqarg( m_url.path( -1 ).isEmpty() ? "/" : m_url.path( -1 ) ) + .tqarg( m_url.host() ) + .tqarg( m_icyMode ? TQString( "Icy-MetaData:1\r\n" ) : TQString() ) + .tqarg( auth ? TQString( "Authorization: Basic " ).append( authString ) : TQString() ) + .tqarg( NOATUN_VERSION ); m_sockRemote.writeBlock( request.latin1(), request.length() ); @@ -172,9 +172,9 @@ void Proxy::sendRequest() //SLOT void Proxy::readRemote() //SLOT { m_connectSuccess = true; - Q_LONG index = 0; - Q_LONG bytesWrite = 0; - Q_LONG bytesRead = m_sockRemote.readBlock( m_pBuf, BUFSIZE ); + TQ_LONG index = 0; + TQ_LONG bytesWrite = 0; + TQ_LONG bytesRead = m_sockRemote.readBlock( m_pBuf, BUFSIZE ); if ( bytesRead == -1 ) { kdDebug(66666) << k_funcinfo << "Could not read remote data from socket, aborting" << endl; @@ -246,7 +246,7 @@ void Proxy::connectError() //SLOT // PRIVATE ////////////////////////////////////////////////////////////////////////////////////////// -bool Proxy::processHeader( Q_LONG &index, Q_LONG bytesRead ) +bool Proxy::processHeader( TQ_LONG &index, TQ_LONG bytesRead ) { while ( index < bytesRead ) { @@ -258,11 +258,11 @@ bool Proxy::processHeader( Q_LONG &index, Q_LONG bytesRead ) // Handle redirection TQString loc( "Location: " ); - int index = m_headerStr.find( loc ); + int index = m_headerStr.tqfind( loc ); if ( index >= 0 ) { int start = index + loc.length(); - int end = m_headerStr.find( "\n", index ); + int end = m_headerStr.tqfind( "\n", index ); m_url = m_headerStr.mid( start, end - start - 1 ); kdDebug(66666) << k_funcinfo << @@ -304,7 +304,7 @@ bool Proxy::processHeader( Q_LONG &index, Q_LONG bytesRead ) } } - if ( m_streamUrl.startsWith( "www.", true ) ) + if ( m_streamUrl.tqstartsWith( "www.", true ) ) m_streamUrl.prepend( "http://" ); m_sockProxy.writeBlock( m_headerStr.latin1(), m_headerStr.length() ); @@ -339,8 +339,8 @@ void Proxy::transmitData( const TQString &data ) emit metaData( m_streamName, m_streamGenre, m_streamUrl, m_bitRate, - extractStr(data, TQString::fromLatin1("StreamTitle")), - extractStr(data, TQString::fromLatin1("StreamUrl"))); + extractStr(data, TQString::tqfromLatin1("StreamTitle")), + extractStr(data, TQString::tqfromLatin1("StreamUrl"))); } @@ -360,15 +360,15 @@ void Proxy::error() TQString Proxy::extractStr( const TQString &str, const TQString &key ) { - int index = str.find( key, 0, true ); + int index = str.tqfind( key, 0, true ); if ( index == -1 ) { - return TQString::null; + return TQString(); } else { - index = str.find( "'", index ) + 1; - int indexEnd = str.find( "'", index ); + index = str.tqfind( "'", index ) + 1; + int indexEnd = str.tqfind( "'", index ); return str.mid( index, indexEnd - index ); } } diff --git a/noatun/library/titleproxy.h b/noatun/library/titleproxy.h index 7bbb3143..947ccff5 100644 --- a/noatun/library/titleproxy.h +++ b/noatun/library/titleproxy.h @@ -46,9 +46,10 @@ namespace TitleProxy * @short A proxy server for extracting metadata from Shoutcast streams. */ - class Proxy : public QObject + class Proxy : public TQObject { Q_OBJECT + TQ_OBJECT public: Proxy( KURL url ); ~Proxy(); @@ -74,7 +75,7 @@ namespace TitleProxy void connectError(); private: - bool processHeader( Q_LONG &index, Q_LONG bytesRead ); + bool processHeader( TQ_LONG &index, TQ_LONG bytesRead ); void transmitData( const TQString &data ); void error(); TQString extractStr( const TQString &str, const TQString &key ); @@ -108,13 +109,14 @@ namespace TitleProxy }; - class Server : public QServerSocket + class Server : public TQServerSocket { Q_OBJECT + TQ_OBJECT public: - Server( Q_UINT16 port, TQObject* parent ) - : TQServerSocket( port, 1, parent, "TitleProxyServer" ) {}; + Server( TQ_UINT16 port, TQObject* tqparent ) + : TQServerSocket( port, 1, tqparent, "TitleProxyServer" ) {}; signals: void connected( int socket ); diff --git a/noatun/library/vequalizer.cpp b/noatun/library/vequalizer.cpp index c081d84b..a61e3eec 100644 --- a/noatun/library/vequalizer.cpp +++ b/noatun/library/vequalizer.cpp @@ -4,7 +4,7 @@ * This file is hereby licensed under the GNU General Public License version * 2 or later at your option. * - * This file is licensed under the Qt Public License version 1 with the + * This file is licensed under the TQt Public License version 1 with the * condition that the licensed will be governed under the Laws of California * (USA) instead of Norway. Disputes will be settled in Santa Clara county * courts. @@ -63,7 +63,7 @@ #include #define EQ (napp->vequalizer()) -#define EQBACK (napp->player()->engine()->equalizer()) +#define ETQBACK (napp->player()->engine()->equalizer()) using std::vector; @@ -440,7 +440,7 @@ void VEqualizer::setBands(int num, bool interpolate) void VEqualizer::setPreamp(int preamp) { d->preamp = preamp; - EQBACK->preamp(pow(2,float(preamp)/100.0)); + ETQBACK->preamp(pow(2,float(preamp)/100.0)); emit changed(); emit preampChanged(); emit preampChanged(preamp); @@ -483,7 +483,7 @@ int VEqualizer::bands() const bool VEqualizer::isEnabled() const { - return bool(EQBACK->enabled()); + return bool(ETQBACK->enabled()); } int VEqualizer::preamp() const @@ -534,7 +534,7 @@ void VEqualizer::setLevels(const TQValueList &levels) void VEqualizer::setEnabled(bool e) { update(true); // just in case - EQBACK->enabled((long)e); + ETQBACK->enabled((long)e); KConfig *config=kapp->config(); config->setGroup("Equalizer"); config->writeEntry("enabled", e); @@ -565,9 +565,9 @@ void VEqualizer::update(bool full) } } if (full) - EQBACK->set(levels, mids, widths); + ETQBACK->set(levels, mids, widths); else - EQBACK->levels(levels); + ETQBACK->levels(levels); } @@ -609,7 +609,7 @@ TQString VEqualizer::toString(const TQString &name) const { docElem.setAttribute("level", preamp()); docElem.setAttribute("name", name); - docElem.setAttribute("version", napp->version()); + docElem.setAttribute("version", TQString(napp->version())); } int bandc = bands(); @@ -764,7 +764,7 @@ VPreset VEqualizer::presetByFile(const TQString &file) KConfig *conf=KGlobal::config(); conf->setGroup("Equalizer"); TQStringList list=kapp->config()->readListEntry("presets"); - if (list.contains(file)) + if (list.tqcontains(file)) return VPreset(file); return VPreset(); } @@ -920,7 +920,7 @@ void VPreset::remove() emit EQ->removed(*this); - if (file().find(kapp->dirs()->localkdedir())==0) + if (file().tqfind(kapp->dirs()->localkdedir())==0) { TQFile f(file()); f.remove(); @@ -930,7 +930,7 @@ void VPreset::remove() #undef EQ -#undef EQBACK +#undef ETQBACK #include "vequalizer.moc" diff --git a/noatun/library/video.cpp b/noatun/library/video.cpp index 94646315..e009b044 100644 --- a/noatun/library/video.cpp +++ b/noatun/library/video.cpp @@ -24,8 +24,8 @@ struct VideoFrame::Private }; -VideoFrame::VideoFrame(KXMLGUIClient *clientParent, TQWidget *parent, const char*name, WFlags f) - : KVideoWidget(clientParent, parent, name, f) +VideoFrame::VideoFrame(KXMLGUIClient *clientParent, TQWidget *tqparent, const char*name, WFlags f) + : KVideoWidget(clientParent, tqparent, name, f) { d = new Private; connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(changed())); @@ -33,8 +33,8 @@ VideoFrame::VideoFrame(KXMLGUIClient *clientParent, TQWidget *parent, const char frames.append(this); } -VideoFrame::VideoFrame(TQWidget *parent, const char *name, WFlags f) - : KVideoWidget(parent, name, f) +VideoFrame::VideoFrame(TQWidget *tqparent, const char *name, WFlags f) + : KVideoWidget(tqparent, name, f) { d = new Private; connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(changed())); @@ -62,9 +62,9 @@ VideoFrame *VideoFrame::playing() return whose; } -TQPopupMenu *VideoFrame::popupMenu(TQWidget *parent) +TQPopupMenu *VideoFrame::popupMenu(TQWidget *tqparent) { - TQPopupMenu *view = new TQPopupMenu(parent); + TQPopupMenu *view = new TQPopupMenu(tqparent); action( "half_size" )->plug( view ); action( "normal_size" )->plug( view ); action( "double_size" )->plug( view ); @@ -122,7 +122,7 @@ GlobalVideo::GlobalVideo() menu = video->popupMenu(this); // FIXME: How to obtain minimum size for top-level widgets? -// video->setMinimumSize(minimumSizeHint()); +// video->setMinimumSize(tqminimumSizeHint()); // video->setMinimumSize(101,35); video->setMinimumSize(128,96); @@ -151,7 +151,7 @@ void GlobalVideo::hide() void GlobalVideo::mouseReleaseEvent(TQMouseEvent *e) { - if (e->button() == RightButton) + if (e->button() == Qt::RightButton) { menu->exec(mapToGlobal(e->pos())); } diff --git a/noatun/modules/artseffects/extrastereo_impl.cc b/noatun/modules/artseffects/extrastereo_impl.cc index 3dc92705..28b02d8e 100644 --- a/noatun/modules/artseffects/extrastereo_impl.cc +++ b/noatun/modules/artseffects/extrastereo_impl.cc @@ -134,7 +134,7 @@ public: intense.min(0); intense.max(5); intense.value(e.intensity()); - intense.parent(hbox); + intense.tqparent(hbox); intense.show(); connect(intense,"value_changed", e, "intensity"); diff --git a/noatun/modules/artseffects/extrastereogui_impl.cc b/noatun/modules/artseffects/extrastereogui_impl.cc index b5a19bf0..92148ba0 100644 --- a/noatun/modules/artseffects/extrastereogui_impl.cc +++ b/noatun/modules/artseffects/extrastereogui_impl.cc @@ -7,7 +7,7 @@ namespace Arts { ExtraStereoGUI_impl::ExtraStereoGUI_impl() : TQWidget(0) { (new TQHBoxLayout(this))->setAutoAdd(true); - mSlider=new TQSlider(0,100,10, 0, Horizontal, this); + mSlider=new TQSlider(0,100,10, 0,Qt::Horizontal, this); mSlider->show(); show(); } diff --git a/noatun/modules/excellent/userinterface.cpp b/noatun/modules/excellent/userinterface.cpp index dac6fbb3..86c4f500 100644 --- a/noatun/modules/excellent/userinterface.cpp +++ b/noatun/modules/excellent/userinterface.cpp @@ -67,12 +67,12 @@ Excellent::Excellent() { setAcceptDrops(true); - KStdAction::quit(napp, TQT_SLOT(quit()), actionCollection()); - KStdAction::open(napp, TQT_SLOT(fileOpen()), actionCollection()); + KStdAction::quit(TQT_TQOBJECT(napp), TQT_SLOT(quit()), actionCollection()); + KStdAction::open(TQT_TQOBJECT(napp), TQT_SLOT(fileOpen()), actionCollection()); setStandardToolBarMenuEnabled(true); - menubarAction = KStdAction::showMenubar(this, TQT_SLOT(showMenubar()), actionCollection()); - KStdAction::preferences(napp, TQT_SLOT(preferences()), actionCollection()); + menubarAction = KStdAction::showMenubar(TQT_TQOBJECT(this), TQT_SLOT(showMenubar()), actionCollection()); + KStdAction::preferences(TQT_TQOBJECT(napp), TQT_SLOT(preferences()), actionCollection()); // buttons NoatunStdAction::back(actionCollection(), "back"); @@ -82,7 +82,7 @@ Excellent::Excellent() NoatunStdAction::forward(actionCollection(), "forward"); NoatunStdAction::playlist(actionCollection(), "show_playlist"); - volumeAction = new KToggleAction(i18n("Show &Volume Control"), 0, this, TQT_SLOT(showVolumeControl()), actionCollection(), "show_volumecontrol"); + volumeAction = new KToggleAction(i18n("Show &Volume Control"), 0, TQT_TQOBJECT(this), TQT_SLOT(showVolumeControl()), actionCollection(), "show_volumecontrol"); volumeAction->setCheckedState(i18n("Hide &Volume Control")); NoatunStdAction::effects(actionCollection(), "effects"); NoatunStdAction::equalizer(actionCollection(), "equalizer"); @@ -94,11 +94,11 @@ Excellent::Excellent() napp->pluginActionMenu()->plug(menuBar(),3); toolBar("mainToolBar")->hide(); - // Who needs Qt Designer? + // Who needs TQt Designer? mainFrame = new TQHBox(this); mainFrame->setSpacing(KDialog::spacingHint()); mainFrame->setMargin(0); - slider = new L33tSlider(0, 1000, 10, 0, L33tSlider::Horizontal, mainFrame); + slider = new L33tSlider(0, 1000, 10, 0, Qt::Horizontal, mainFrame); slider->setTickmarks(TQSlider::NoMarks); elapsed = new TQLabel(mainFrame); @@ -107,10 +107,10 @@ Excellent::Excellent() labelFont.setBold(true); TQFontMetrics labelFontMetrics = labelFont; elapsed->setFont(labelFont); - elapsed->setAlignment(AlignCenter | AlignVCenter | ExpandTabs); + elapsed->tqsetAlignment(AlignCenter | AlignVCenter | ExpandTabs); elapsed->setText("--:--"); elapsed->setFixedHeight(labelFontMetrics.height()); - elapsed->setMinimumWidth(elapsed->sizeHint().width()); + elapsed->setMinimumWidth(elapsed->tqsizeHint().width()); // Doing this makes the slider the same heigh as the font. This is just plain wrong... //slider->setFixedHeight(labelFontMetrics.height()); @@ -121,9 +121,9 @@ Excellent::Excellent() labelFont = total->font(); labelFont.setBold(true); total->setFont(labelFont); - total->setAlignment(AlignCenter | AlignVCenter | ExpandTabs); + total->tqsetAlignment(AlignCenter | AlignVCenter | ExpandTabs); total->setText("--:--"); - total->setMinimumWidth(total->sizeHint().width()); + total->setMinimumWidth(total->tqsizeHint().width()); total->setText(""); statusBar()->addWidget(total, 0, true); @@ -186,7 +186,7 @@ Excellent::Excellent() break; } - for (TQPtrListIterator i(*children()); i.current(); ++i) + for (TQPtrListIterator i(childrenListObject()); i.current(); ++i) (*i)->installEventFilter(this); } @@ -248,7 +248,7 @@ bool Excellent::eventFilter(TQObject *o, TQEvent *e) { if (e->type() == TQEvent::Wheel) { - wheelEvent(static_cast(e)); + wheelEvent(TQT_TQWHEELEVENT(e)); return true; } return TQWidget::eventFilter(o, e); @@ -335,7 +335,7 @@ void Excellent::showMenubar(void) } else { - KMessageBox::information(this, i18n("Press %1 to show the menubar.").arg(menubarAction->shortcut().toString()), TQString::null, "Hide Menu warning"); + KMessageBox::information(this, i18n("Press %1 to show the menubar.").tqarg(menubarAction->shortcut().toString()), TQString(), "Hide Menu warning"); menuBar()->hide(); } } @@ -373,7 +373,7 @@ void Excellent::handleLengthString(const TQString &text) void Excellent::growVolumeControl(void) { - volumeSlider = new L33tSlider(0, 100, 10, 0, Vertical, mainFrame); + volumeSlider = new L33tSlider(0, 100, 10, 0,Qt::Vertical, mainFrame); volumeSlider->setValue(100 - napp->player()->volume()); volumeSlider->show(); connect(volumeSlider, TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(changeVolume(int))); diff --git a/noatun/modules/excellent/userinterface.h b/noatun/modules/excellent/userinterface.h index c6a958de..72628430 100644 --- a/noatun/modules/excellent/userinterface.h +++ b/noatun/modules/excellent/userinterface.h @@ -50,6 +50,7 @@ class KToggleAction; class Excellent : public KMainWindow, public UserInterface { Q_OBJECT + TQ_OBJECT public: Excellent(); diff --git a/noatun/modules/htmlexport/htmlexport.cpp b/noatun/modules/htmlexport/htmlexport.cpp index 29d00935..d8a04537 100644 --- a/noatun/modules/htmlexport/htmlexport.cpp +++ b/noatun/modules/htmlexport/htmlexport.cpp @@ -36,7 +36,7 @@ void HTMLExport::slotExport() config->setGroup("HTMLExport"); // get output target - KURL url = KFileDialog::getSaveURL(TQString::null, + KURL url = KFileDialog::getSaveURL(TQString(), "text/html", 0, i18n("Export Playlist")); @@ -136,9 +136,9 @@ TQString HTMLExport::htmlEscape(const TQString &source) { // Escape characters that need to be escaped TQString temp = source; - temp.replace( TQRegExp("&"), "&" ); - temp.replace( TQRegExp("<"), "<" ); - temp.replace( TQRegExp(">"), ">" ); + temp.tqreplace( TQRegExp("&"), "&" ); + temp.tqreplace( TQRegExp("<"), "<" ); + temp.tqreplace( TQRegExp(">"), ">" ); return temp; } @@ -171,8 +171,8 @@ TQString HTMLExport::getColorByEntry(TQString s) } //////////////////////////////////// Settings //////////////////////////////////// -Prefs::Prefs(TQObject *parent) - : CModule(i18n("Playlist Export"), i18n("Colors & Settings for HTML Export"), "html", parent) +Prefs::Prefs(TQObject *tqparent) + : CModule(i18n("Playlist Export"), i18n("Colors & Settings for HTML Export"), "html", tqparent) { // Init Config @@ -213,19 +213,19 @@ Prefs::Prefs(TQObject *parent) txtColorLabel = new TQLabel( colorBox, "txtColorLabel" ); txtColorLabel->setText( i18n( "Text:" ) ); - txtColorLabel->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); + txtColorLabel->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); bgColorLabel = new TQLabel( colorBox, "bgColorLabel" ); bgColorLabel->setText( i18n( "Background:" ) ); - bgColorLabel->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); + bgColorLabel->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); headColorLabel = new TQLabel( colorBox, "headColorLabel" ); headColorLabel->setText( i18n( "Heading:" ) ); - headColorLabel->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); + headColorLabel->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); hoverColorLabel = new TQLabel( colorBox, "hoverColorLabel" ); hoverColorLabel->setText( i18n( "Link hover:" ) ); - hoverColorLabel->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); + hoverColorLabel->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); bgcolorLabel->setRowStretch(0, 1); diff --git a/noatun/modules/htmlexport/htmlexport.h b/noatun/modules/htmlexport/htmlexport.h index 81047d3d..65f5c5e9 100644 --- a/noatun/modules/htmlexport/htmlexport.h +++ b/noatun/modules/htmlexport/htmlexport.h @@ -34,6 +34,7 @@ class KAction; class HTMLExport : public TQObject, public Plugin { Q_OBJECT + TQ_OBJECT NOATUNPLUGIND public: HTMLExport(); @@ -54,8 +55,9 @@ private slots: class Prefs : public CModule { Q_OBJECT + TQ_OBJECT public: - Prefs(TQObject *parent); + Prefs(TQObject *tqparent); virtual void save(); virtual void reopen(); diff --git a/noatun/modules/infrared/infrared.cpp b/noatun/modules/infrared/infrared.cpp index c9b31230..1bfe0aae 100644 --- a/noatun/modules/infrared/infrared.cpp +++ b/noatun/modules/infrared/infrared.cpp @@ -93,11 +93,11 @@ void InfraRed::slotCommand(const TQString &remote, const TQString &button, int r break; case IRPrefs::SeekBackward: // - 3 seconds - napp->player()->skipTo( QMAX(0, napp->player()->getTime() - 3000) ); + napp->player()->skipTo( TQMAX(0, napp->player()->getTime() - 3000) ); break; case IRPrefs::SeekForward: // + 3 seconds - napp->player()->skipTo( QMIN(napp->player()->getLength(), + napp->player()->skipTo( TQMIN(napp->player()->getLength(), napp->player()->getTime() + 3000) ); break; case IRPrefs::ShowPlaylist: diff --git a/noatun/modules/infrared/infrared.h b/noatun/modules/infrared/infrared.h index 870efbd5..cb58ff82 100644 --- a/noatun/modules/infrared/infrared.h +++ b/noatun/modules/infrared/infrared.h @@ -11,6 +11,7 @@ class Lirc; class InfraRed : public TQObject, public Plugin { Q_OBJECT + TQ_OBJECT NOATUNPLUGIND public: InfraRed(); diff --git a/noatun/modules/infrared/infrared.plugin b/noatun/modules/infrared/infrared.plugin index dab20149..4074e6b0 100644 --- a/noatun/modules/infrared/infrared.plugin +++ b/noatun/modules/infrared/infrared.plugin @@ -101,7 +101,7 @@ Comment[nds]=Noatun mit Dien Infraroot-Feernbedenen stüern Comment[ne]=तपाईà¤à¤•à¥‹ IR टाढाकोसà¤à¤— नियनà¥à¤¤à¥à¤°à¤£ नोवटà¥à¤¨ Comment[nl]=Bedien Noatun met uw infrarood afstandbediening Comment[nn]=Styr Noatun med ein infraraud fjernkontroll -Comment[pl]=Sterowanie Noatun za pomocÄ… pilota podczerwieni +Comment[pl]=Sterowanie Noatun za potqmocÄ… pilota podczerwieni Comment[pt]=Controle o Noatun com um comando à distância Comment[pt_BR]=Controlar o Noatun com seu controle-remoto infravermelho Comment[ro]=Controlează Noatun cu telecomanda în infraroÅŸu diff --git a/noatun/modules/infrared/irprefs.cpp b/noatun/modules/infrared/irprefs.cpp index 548fd27d..52cae0ea 100644 --- a/noatun/modules/infrared/irprefs.cpp +++ b/noatun/modules/infrared/irprefs.cpp @@ -14,13 +14,13 @@ #include "irprefs.h" #include "lirc.h" -class CommandItem : public QListViewItem +class CommandItem : public TQListViewItem { public: CommandItem(TQListViewItem *remote, const TQString &name, IRPrefs::Action action, int interval) : TQListViewItem(remote, name, IRPrefs::actionName(action), - interval ? TQString().setNum(interval) : TQString::null), + interval ? TQString().setNum(interval) : TQString()), m_name(remote->text(0) + "::" + name), m_action(action), m_interval(interval) @@ -37,7 +37,7 @@ public: } void setInterval(int interval) { - setText(2, interval ? TQString().setNum(interval) : TQString::null); + setText(2, interval ? TQString().setNum(interval) : TQString()); m_interval = interval; } @@ -51,38 +51,38 @@ Lirc *IRPrefs::s_lirc = 0; bool IRPrefs::s_configRead = false; TQMap IRPrefs::s_commands; -IRPrefs::IRPrefs(TQObject *parent) - : CModule(i18n("Infrared Control"), i18n("Configure Infrared Commands"), "remote", parent) +IRPrefs::IRPrefs(TQObject *tqparent) + : CModule(i18n("Infrared Control"), i18n("Configure Infrared Commands"), "remote", tqparent) { - TQGridLayout *layout = new TQGridLayout(this, 3, 5, KDialog::marginHint(), KDialog::spacingHint()); - layout->setColStretch(1, 1); + TQGridLayout *tqlayout = new TQGridLayout(this, 3, 5, KDialog::marginHint(), KDialog::spacingHint()); + tqlayout->setColStretch(1, 1); TQLabel *label = new TQLabel(i18n("Remote control &commands:"), this); - layout->addMultiCellWidget(label, 0, 0, 0, 4); + tqlayout->addMultiCellWidget(label, 0, 0, 0, 4); label->setBuddy(m_commands = new KListView(this)); - layout->addMultiCellWidget(m_commands, 1, 1, 0, 4); + tqlayout->addMultiCellWidget(m_commands, 1, 1, 0, 4); label = new TQLabel(i18n("&Action:"), this); - layout->addWidget(label, 2, 0); + tqlayout->addWidget(label, 2, 0); label->setBuddy(m_action = new KComboBox(this)); m_action->setEnabled(false); - layout->addWidget(m_action, 2, 1); + tqlayout->addWidget(m_action, 2, 1); m_repeat = new TQCheckBox(i18n("&Repeat"), this); m_repeat->setEnabled(false); - layout->addWidget(m_repeat, 2, 2); + tqlayout->addWidget(m_repeat, 2, 2); label = new TQLabel(i18n("&Interval:"), this); - layout->addWidget(label, 2, 3); + tqlayout->addWidget(label, 2, 3); label->setBuddy(m_interval = new KIntSpinBox(this)); m_interval->setMinValue(1); m_interval->setMaxValue(0xff); m_interval->setValue(10); m_interval->setEnabled(false); - layout->addWidget(m_interval, 2, 4); + tqlayout->addWidget(m_interval, 2, 4); connect(s_lirc, TQT_SIGNAL(remotesRead()), TQT_SLOT(reopen())); connect(m_commands, @@ -109,9 +109,9 @@ void IRPrefs::save() int i = 1; for (TQMap::ConstIterator it = s_commands.begin(); it != s_commands.end(); ++it) { - c->writePathEntry(TQString("Command_%1").arg(i), it.key()); - c->writeEntry(TQString("Action_%1").arg(i), (int)((*it).action)); - c->writeEntry(TQString("Interval_%1").arg(i), (*it).interval); + c->writePathEntry(TQString("Command_%1").tqarg(i), it.key()); + c->writeEntry(TQString("Action_%1").tqarg(i), (int)((*it).action)); + c->writeEntry(TQString("Interval_%1").tqarg(i), (*it).interval); ++i; } } @@ -152,7 +152,7 @@ void IRPrefs::reopen() for (TQStringList::ConstIterator btn = buttons.begin(); btn != buttons.end(); ++btn) { TQString key = *it + "::" + *btn; - if (s_commands.contains(key)) + if (s_commands.tqcontains(key)) new CommandItem(remote, *btn, s_commands[key].action, s_commands[key].interval); else new CommandItem(remote, *btn, None, 0); @@ -275,7 +275,7 @@ const TQString IRPrefs::actionName(Action action) case PreviousSection: return i18n("Previous Section"); } - return TQString::null; + return TQString(); } void IRPrefs::readConfig() @@ -288,9 +288,9 @@ void IRPrefs::readConfig() for (int i = 1; i <= count; ++i) { Command cmd; - cmd.action = (Action)(c->readNumEntry(TQString("Action_%1").arg(i))); - cmd.interval = c->readNumEntry(TQString("Interval_%1").arg(i)); - s_commands.insert(c->readPathEntry(TQString("Command_%1").arg(i)), cmd); + cmd.action = (Action)(c->readNumEntry(TQString("Action_%1").tqarg(i))); + cmd.interval = c->readNumEntry(TQString("Interval_%1").tqarg(i)); + s_commands.insert(c->readPathEntry(TQString("Command_%1").tqarg(i)), cmd); } s_configRead = true; } diff --git a/noatun/modules/infrared/irprefs.h b/noatun/modules/infrared/irprefs.h index 925acaa0..69d7f41f 100644 --- a/noatun/modules/infrared/irprefs.h +++ b/noatun/modules/infrared/irprefs.h @@ -15,6 +15,7 @@ class Lirc; class IRPrefs : public CModule { Q_OBJECT + TQ_OBJECT public: enum Action { @@ -24,7 +25,7 @@ public: NextSection, PreviousSection }; - IRPrefs(TQObject *parent); + IRPrefs(TQObject *tqparent); virtual void save(); diff --git a/noatun/modules/infrared/lirc.cpp b/noatun/modules/infrared/lirc.cpp index 363849c1..731bb5c1 100644 --- a/noatun/modules/infrared/lirc.cpp +++ b/noatun/modules/infrared/lirc.cpp @@ -12,8 +12,8 @@ #include "lirc.h" -Lirc::Lirc(TQObject *parent) - : TQObject(parent), +Lirc::Lirc(TQObject *tqparent) + : TQObject(tqparent), m_socket(0) { int sock = ::socket(PF_UNIX, SOCK_STREAM, 0); @@ -124,7 +124,7 @@ void Lirc::slotRead() { //