summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitmodules3
-rw-r--r--CMakeL10n.txt7
-rw-r--r--CMakeLists.txt53
-rw-r--r--ConfigureChecks.cmake5
m---------admin0
-rw-r--r--akode_artsplugin/arts_inputstream.h14
-rw-r--r--arts/builder/TODO2
-rw-r--r--arts/builder/createtool.cpp2
-rw-r--r--arts/builder/execdlg.cpp14
-rw-r--r--arts/builder/execdlg.h2
-rw-r--r--arts/builder/interfacedlg.cpp10
-rw-r--r--arts/builder/interfacedlg.h2
-rw-r--r--arts/builder/main.cpp98
-rw-r--r--arts/builder/main.h2
-rw-r--r--arts/builder/menumaker.cpp4
-rw-r--r--arts/builder/menumaker.h4
-rw-r--r--arts/builder/mwidget.cpp8
-rw-r--r--arts/builder/mwidget.h2
-rw-r--r--arts/builder/portposdlg.cpp12
-rw-r--r--arts/builder/portposdlg.h2
-rw-r--r--arts/builder/propertypanel.cpp30
-rw-r--r--arts/builder/propertypanel.h2
-rw-r--r--arts/builder/propertypanelbase.ui4
-rw-r--r--arts/builder/qttableview.cpp36
-rw-r--r--arts/builder/qttableview.h2
-rw-r--r--arts/builder/retrievedlg.cpp6
-rw-r--r--arts/builder/retrievedlg.h2
-rw-r--r--arts/examples/README2
-rw-r--r--arts/gui/kde/dbtest.cpp2
-rw-r--r--arts/gui/kde/dbtest.h2
-rw-r--r--arts/gui/kde/kbutton_impl.cpp8
-rw-r--r--arts/gui/kde/kbutton_impl.h2
-rw-r--r--arts/gui/kde/kcombobox_impl.cpp2
-rw-r--r--arts/gui/kde/kcombobox_impl.h2
-rw-r--r--arts/gui/kde/kfader.cpp4
-rw-r--r--arts/gui/kde/kfader.h2
-rw-r--r--arts/gui/kde/kfader_impl.cpp2
-rw-r--r--arts/gui/kde/kfader_impl.h2
-rw-r--r--arts/gui/kde/kgraph.cpp6
-rw-r--r--arts/gui/kde/kgraph.h2
-rw-r--r--arts/gui/kde/klabel_impl.h2
-rw-r--r--arts/gui/kde/klayoutbox_impl.cpp2
-rw-r--r--arts/gui/kde/klayoutbox_impl.h4
-rw-r--r--arts/gui/kde/klevelmeter_firebars.h4
-rw-r--r--arts/gui/kde/klevelmeter_linebars.cpp2
-rw-r--r--arts/gui/kde/klevelmeter_linebars.h2
-rw-r--r--arts/gui/kde/klevelmeter_normalbars.h4
-rw-r--r--arts/gui/kde/klevelmeter_private.h2
-rw-r--r--arts/gui/kde/klevelmeter_small.h2
-rw-r--r--arts/gui/kde/klevelmeter_template.h2
-rw-r--r--arts/gui/kde/klineedit_impl.cpp4
-rw-r--r--arts/gui/kde/klineedit_impl.h2
-rw-r--r--arts/gui/kde/kpoti.cpp22
-rw-r--r--arts/gui/kde/kpoti.h2
-rw-r--r--arts/gui/kde/kpoti_impl.cpp2
-rw-r--r--arts/gui/kde/kpoti_impl.h2
-rw-r--r--arts/gui/kde/kspinbox_impl.cpp2
-rw-r--r--arts/gui/kde/kspinbox_impl.h2
-rw-r--r--arts/gui/kde/ktickmarks_impl.h2
-rw-r--r--arts/gui/kde/kvolumefader_impl.cpp6
-rw-r--r--arts/gui/kde/kvolumefader_impl.h2
-rw-r--r--arts/gui/kde/kwidget_impl.cpp4
-rw-r--r--arts/gui/kde/kwidget_impl.h2
-rw-r--r--arts/gui/kde/tdepopupbox_impl.cpp6
-rw-r--r--arts/gui/kde/tdepopupbox_private.h18
-rw-r--r--arts/modules/README.environments38
-rw-r--r--arts/modules/effects/kstereovolumecontrolgui_impl.cpp2
-rw-r--r--arts/modules/effects/kstereovolumecontrolgui_impl.h4
-rw-r--r--arts/tools/artsactions.cpp36
-rw-r--r--arts/tools/artsactions.h2
-rw-r--r--arts/tools/artscontrolapplet.cpp6
-rw-r--r--arts/tools/artscontrolapplet.h2
-rw-r--r--arts/tools/artscontrolapplet_private.h16
-rw-r--r--arts/tools/audiomanager.cpp6
-rw-r--r--arts/tools/audiomanager.h4
-rw-r--r--arts/tools/choosebusdlg.cpp8
-rw-r--r--arts/tools/choosebusdlg.h2
-rw-r--r--arts/tools/environmentview.cpp14
-rw-r--r--arts/tools/environmentview.h2
-rw-r--r--arts/tools/fftscopeview.cpp22
-rw-r--r--arts/tools/fftscopeview.h2
-rw-r--r--arts/tools/levelmeters.h14
-rw-r--r--arts/tools/main.cpp16
-rw-r--r--arts/tools/main.h6
-rw-r--r--arts/tools/mediatypesview.h2
-rw-r--r--arts/tools/midiinstdlg.cpp4
-rw-r--r--arts/tools/midiinstdlg.h2
-rw-r--r--arts/tools/midimanagerview.cpp14
-rw-r--r--arts/tools/midimanagerview.h2
-rw-r--r--arts/tools/midiportdlg.cpp4
-rw-r--r--arts/tools/midiportdlg.h2
-rw-r--r--arts/tools/statusview.cpp4
-rw-r--r--arts/tools/statusview.h2
-rw-r--r--arts/tools/templateview.h2
m---------cmake0
-rw-r--r--config.h.cmake3
-rw-r--r--doc/CMakeLists.txt15
-rw-r--r--doc/artsbuilder/artsbuilder.docbook2
-rw-r--r--doc/artsbuilder/detail.docbook6
-rw-r--r--doc/artsbuilder/mcop.docbook10
-rw-r--r--doc/man/CMakeLists.txt17
-rw-r--r--doc/man/juk/CMakeLists.txt7
-rw-r--r--doc/man/juk/juk.139
-rw-r--r--doc/man/kaboodle/CMakeLists.txt7
-rw-r--r--doc/man/kaboodle/kaboodle.1261
-rw-r--r--doc/man/kaudiocreator/CMakeLists.txt7
-rw-r--r--doc/man/kaudiocreator/kaudiocreator.1145
-rw-r--r--doc/man/kmix/CMakeLists.txt7
-rw-r--r--doc/man/kmix/kmix.149
-rw-r--r--doc/man/kmix/kmixctrl.154
-rw-r--r--doc/man/krec/CMakeLists.txt7
-rw-r--r--doc/man/krec/krec.159
-rw-r--r--doc/man/noatun/CMakeLists.txt7
-rw-r--r--doc/man/noatun/noatun.1175
-rw-r--r--juk/HACKING10
-rw-r--r--juk/advancedsearchdialog.cpp6
-rw-r--r--juk/advancedsearchdialog.h2
-rw-r--r--juk/akodeplayer.h2
-rw-r--r--juk/artsplayer.cpp4
-rw-r--r--juk/artsplayer.h2
-rw-r--r--juk/cache.cpp2
-rw-r--r--juk/collectionlist.cpp10
-rw-r--r--juk/collectionlist.h2
-rw-r--r--juk/coverdialog.cpp4
-rw-r--r--juk/coverdialog.h2
-rw-r--r--juk/coverdialogbase.ui10
-rw-r--r--juk/covermanager.cpp2
-rw-r--r--juk/deletedialog.cpp2
-rw-r--r--juk/deletedialog.h4
-rw-r--r--juk/deletedialogbase.ui4
-rw-r--r--juk/directorylist.cpp8
-rw-r--r--juk/directorylist.h2
-rw-r--r--juk/dynamicplaylist.cpp4
-rw-r--r--juk/dynamicplaylist.h2
-rw-r--r--juk/exampleoptions.cpp12
-rw-r--r--juk/exampleoptions.h4
-rw-r--r--juk/exampleoptionsbase.ui14
-rw-r--r--juk/filerenamer.cpp58
-rw-r--r--juk/filerenamer.h2
-rw-r--r--juk/filerenamerbase.ui12
-rw-r--r--juk/filerenamerconfigdlg.h2
-rw-r--r--juk/filerenameroptions.h4
-rw-r--r--juk/filerenameroptionsbase.ui4
-rw-r--r--juk/folderplaylist.cpp4
-rw-r--r--juk/folderplaylist.h2
-rw-r--r--juk/gstreamerplayer.cpp2
-rw-r--r--juk/gstreamerplayer.h2
-rw-r--r--juk/historyplaylist.cpp4
-rw-r--r--juk/historyplaylist.h2
-rw-r--r--juk/juk.cpp92
-rw-r--r--juk/juk.h2
-rw-r--r--juk/k3bexporter.cpp10
-rw-r--r--juk/k3bexporter.h4
-rw-r--r--juk/keydialog.cpp4
-rw-r--r--juk/keydialog.h2
-rw-r--r--juk/musicbrainzquery.cpp4
-rw-r--r--juk/nowplaying.cpp16
-rw-r--r--juk/nowplaying.h6
-rw-r--r--juk/playermanager.cpp16
-rw-r--r--juk/playermanager.h2
-rw-r--r--juk/playlist.cpp70
-rw-r--r--juk/playlist.h2
-rw-r--r--juk/playlistbox.cpp52
-rw-r--r--juk/playlistbox.h4
-rw-r--r--juk/playlistcollection.cpp80
-rw-r--r--juk/playlistcollection.h2
-rw-r--r--juk/playlistsplitter.cpp40
-rw-r--r--juk/playlistsplitter.h2
-rw-r--r--juk/searchplaylist.h2
-rw-r--r--juk/searchwidget.cpp28
-rw-r--r--juk/searchwidget.h4
-rw-r--r--juk/slideraction.cpp60
-rw-r--r--juk/slideraction.h8
-rw-r--r--juk/statuslabel.cpp8
-rw-r--r--juk/statuslabel.h2
-rw-r--r--juk/systemtray.cpp42
-rw-r--r--juk/systemtray.h4
-rw-r--r--juk/tag.cpp12
-rw-r--r--juk/tageditor.cpp64
-rw-r--r--juk/tageditor.h2
-rw-r--r--juk/tagguesserconfigdlg.cpp18
-rw-r--r--juk/tagguesserconfigdlg.h2
-rw-r--r--juk/tagtransactionmanager.cpp4
-rw-r--r--juk/tagtransactionmanager.h2
-rw-r--r--juk/trackpickerdialog.cpp4
-rw-r--r--juk/trackpickerdialog.h2
-rw-r--r--juk/tracksequencemanager.cpp8
-rw-r--r--juk/tracksequencemanager.h2
-rw-r--r--juk/treeviewitemplaylist.h2
-rw-r--r--juk/viewmode.cpp8
-rw-r--r--juk/viewmode.h6
-rw-r--r--juk/webimagefetcher.cpp6
-rw-r--r--juk/webimagefetcher.h2
-rw-r--r--juk/webimagefetcherdialog.cpp16
-rw-r--r--juk/webimagefetcherdialog.h4
-rw-r--r--kaboodle/CMakeLists.txt2
-rw-r--r--kaboodle/conf.h2
-rw-r--r--kaboodle/controls.cpp12
-rw-r--r--kaboodle/controls.h8
-rw-r--r--kaboodle/engine.h2
-rw-r--r--kaboodle/kaboodle_factory.h4
-rw-r--r--kaboodle/kaboodleapp.h2
-rw-r--r--kaboodle/main.cpp2
-rw-r--r--kaboodle/player.cpp16
-rw-r--r--kaboodle/player.h4
-rw-r--r--kaboodle/userinterface.cpp18
-rw-r--r--kaboodle/userinterface.h2
-rw-r--r--kaboodle/view.cpp30
-rw-r--r--kaboodle/view.h2
-rw-r--r--kaudiocreator/cdconfig.ui4
-rw-r--r--kaudiocreator/encodefile.ui6
-rw-r--r--kaudiocreator/encodefileimp.cpp4
-rw-r--r--kaudiocreator/encodefileimp.h2
-rw-r--r--kaudiocreator/encoder.cpp10
-rw-r--r--kaudiocreator/encoder.h2
-rw-r--r--kaudiocreator/encoderconfig.ui4
-rw-r--r--kaudiocreator/encoderconfigimp.cpp16
-rw-r--r--kaudiocreator/encoderconfigimp.h2
-rw-r--r--kaudiocreator/encoderoutput.ui3
-rw-r--r--kaudiocreator/general.ui4
-rw-r--r--kaudiocreator/jobqueimp.cpp6
-rw-r--r--kaudiocreator/jobqueimp.h2
-rw-r--r--kaudiocreator/kaudiocreator.cpp110
-rw-r--r--kaudiocreator/kaudiocreator.h4
-rw-r--r--kaudiocreator/ripconfig.ui6
-rw-r--r--kaudiocreator/ripper.cpp10
-rw-r--r--kaudiocreator/ripper.h2
-rw-r--r--kaudiocreator/tracks.ui4
-rw-r--r--kaudiocreator/tracksimp.cpp16
-rw-r--r--kaudiocreator/tracksimp.h2
-rw-r--r--kaudiocreator/wizard.ui4
-rw-r--r--kmix/CMakeLists.txt20
-rw-r--r--kmix/KMixApp.cpp2
-rw-r--r--kmix/KMixApp.h2
-rw-r--r--kmix/appearanceconfig.ui178
-rw-r--r--kmix/behaviorconfig.ui157
-rw-r--r--kmix/dialogselectmaster.cpp8
-rw-r--r--kmix/dialogselectmaster.h2
-rw-r--r--kmix/dialogviewconfiguration.cpp2
-rw-r--r--kmix/dialogviewconfiguration.h2
-rw-r--r--kmix/experimental.ui87
-rw-r--r--kmix/kledbutton.cpp2
-rw-r--r--kmix/kledbutton.h2
-rw-r--r--kmix/kmix.cpp317
-rw-r--r--kmix/kmix.h22
-rw-r--r--kmix/kmix.kcfg119
-rw-r--r--kmix/kmixapplet.cpp14
-rw-r--r--kmix/kmixapplet.h4
-rw-r--r--kmix/kmixdockwidget.cpp132
-rw-r--r--kmix/kmixdockwidget.h4
-rw-r--r--kmix/kmixerwidget.cpp23
-rw-r--r--kmix/kmixerwidget.h2
-rw-r--r--kmix/kmixprefdlg.cpp140
-rw-r--r--kmix/kmixprefdlg.h70
-rw-r--r--kmix/kmixsettings.kcfgc6
-rw-r--r--kmix/ksmallslider.cpp26
-rw-r--r--kmix/ksmallslider.h8
-rw-r--r--kmix/main.cpp6
-rw-r--r--kmix/mdwenum.cpp16
-rw-r--r--kmix/mdwenum.h4
-rw-r--r--kmix/mdwslider.cpp81
-rw-r--r--kmix/mdwslider.h4
-rw-r--r--kmix/mdwswitch.cpp18
-rw-r--r--kmix/mdwswitch.h4
-rw-r--r--kmix/mixdevice.h2
-rw-r--r--kmix/mixdevicewidget.cpp6
-rw-r--r--kmix/mixdevicewidget.h6
-rw-r--r--kmix/mixer.cpp10
-rw-r--r--kmix/mixer.h2
-rw-r--r--kmix/mixer_alsa9.cpp2
-rw-r--r--kmix/mixer_sun.cpp2
-rw-r--r--kmix/pics/CMakeLists.txt6
-rw-r--r--kmix/pics/crystal/CMakeLists.txt13
-rw-r--r--kmix/pics/crystal/audio-volume-error.png (renamed from kmix/pics/kmixdocked_error.png)bin1176 -> 1176 bytes
-rw-r--r--kmix/pics/crystal/audio-volume-high.pngbin0 -> 1581 bytes
-rw-r--r--kmix/pics/crystal/audio-volume-low.pngbin0 -> 1379 bytes
-rw-r--r--kmix/pics/crystal/audio-volume-medium.pngbin0 -> 1423 bytes
-rw-r--r--kmix/pics/crystal/audio-volume-muted.pngbin0 -> 809 bytes
-rw-r--r--kmix/pics/oldcrystal/CMakeLists.txt13
-rw-r--r--kmix/pics/oldcrystal/audio-volume-error.pngbin0 -> 1176 bytes
l---------kmix/pics/oldcrystal/audio-volume-high.png1
-rw-r--r--kmix/pics/oldcrystal/audio-volume-low.png (renamed from kmix/pics/kmixdocked.png)bin1215 -> 1215 bytes
l---------kmix/pics/oldcrystal/audio-volume-medium.png1
-rw-r--r--kmix/pics/oldcrystal/audio-volume-muted.png (renamed from kmix/pics/kmixdocked_mute.png)bin607 -> 607 bytes
-rw-r--r--kmix/viewapplet.cpp22
-rw-r--r--kmix/viewapplet.h4
-rw-r--r--kmix/viewbase.cpp10
-rw-r--r--kmix/viewbase.h2
-rw-r--r--kmix/viewdockareapopup.cpp4
-rw-r--r--kmix/viewdockareapopup.h2
-rw-r--r--kmix/viewgrid.cpp212
-rw-r--r--kmix/viewgrid.h43
-rw-r--r--kmix/viewinput.cpp2
-rw-r--r--kmix/viewinput.h2
-rw-r--r--kmix/viewoutput.h2
-rw-r--r--kmix/viewsliders.cpp6
-rw-r--r--kmix/viewsliders.h2
-rw-r--r--kmix/viewsurround.cpp16
-rw-r--r--kmix/viewsurround.h4
-rw-r--r--kmix/viewswitches.cpp20
-rw-r--r--kmix/viewswitches.h4
-rw-r--r--krec/krecconfig_files.cpp8
-rw-r--r--krec/krecconfig_files.h2
-rw-r--r--krec/krecconfig_fileswidget.cpp16
-rw-r--r--krec/krecconfig_fileswidget.h2
-rw-r--r--krec/krecconfigure.cpp16
-rw-r--r--krec/krecconfigure.h2
-rw-r--r--krec/krecexport_template.cpp2
-rw-r--r--krec/krecexport_template.h2
-rw-r--r--krec/krecexport_wave.cpp2
-rw-r--r--krec/krecexport_wave.h2
-rw-r--r--krec/krecfile.cpp6
-rw-r--r--krec/krecfile.h4
-rw-r--r--krec/krecfileview.cpp20
-rw-r--r--krec/krecfileview.h2
-rw-r--r--krec/krecfileviewhelpers.cpp6
-rw-r--r--krec/krecfileviewhelpers.h6
-rw-r--r--krec/krecfilewidgets.cpp20
-rw-r--r--krec/krecfilewidgets.h6
-rw-r--r--krec/krecglobal.h2
-rw-r--r--krec/krecnewproperties.cpp10
-rw-r--r--krec/krecnewproperties.h2
-rw-r--r--krec/krecord.cpp46
-rw-r--r--krec/krecord.h2
-rw-r--r--krec/krecord_private.h4
-rw-r--r--krec/mp3_export/krecexport_mp3.cpp2
-rw-r--r--krec/mp3_export/krecexport_mp3.h2
-rw-r--r--krec/ogg_export/krecexport_ogg.cpp2
-rw-r--r--krec/ogg_export/krecexport_ogg.h2
-rw-r--r--kscd/bwlednum.h2
-rw-r--r--kscd/cddbdlg.cpp12
-rw-r--r--kscd/cddbdlg.h2
-rw-r--r--kscd/configWidget.h2
-rw-r--r--kscd/configWidgetUI.ui12
-rw-r--r--kscd/docking.cpp16
-rw-r--r--kscd/docking.h2
-rw-r--r--kscd/kcompactdisc.cpp2
-rw-r--r--kscd/kcompactdisc.h2
-rw-r--r--kscd/kscd.cpp132
-rw-r--r--kscd/kscd.h2
-rw-r--r--kscd/ledlamp.h2
-rw-r--r--kscd/libwm/ConfigureChecks.cmake1
-rw-r--r--kscd/libwm/plat_linux_cdda.c1
-rw-r--r--kscd/panel.ui10
-rw-r--r--libkcddb/asynccddbplookup.cpp8
-rw-r--r--libkcddb/asynccddbplookup.h2
-rw-r--r--libkcddb/asynchttplookup.cpp12
-rw-r--r--libkcddb/asynchttplookup.h2
-rw-r--r--libkcddb/asynchttpsubmit.cpp2
-rw-r--r--libkcddb/asynchttpsubmit.h2
-rw-r--r--libkcddb/asyncsmtpsubmit.cpp4
-rw-r--r--libkcddb/asyncsmtpsubmit.h2
-rw-r--r--libkcddb/cdinfodialogbase.ui8
-rw-r--r--libkcddb/cdinfoencodingwidget.cpp4
-rw-r--r--libkcddb/cdinfoencodingwidget.h2
-rw-r--r--libkcddb/client.cpp16
-rw-r--r--libkcddb/client.h2
-rw-r--r--libkcddb/httplookup.h2
-rw-r--r--libkcddb/kcmcddb/cddbconfigwidget.h2
-rw-r--r--libkcddb/kcmcddb/cddbconfigwidgetbase.ui4
-rw-r--r--libkcddb/kcmcddb/kcmcddb.h2
-rw-r--r--libkcddb/lookup.cpp4
-rw-r--r--libkcddb/test/asynccddblookuptest.cpp4
-rw-r--r--libkcddb/test/asynccddblookuptest.h2
-rw-r--r--libkcddb/test/asynchttplookuptest.cpp4
-rw-r--r--libkcddb/test/asynchttplookuptest.h2
-rw-r--r--libkcddb/test/asynchttpsubmittest.cpp4
-rw-r--r--libkcddb/test/asynchttpsubmittest.h2
-rw-r--r--libkcddb/test/asyncsmtpsubmittest.cpp4
-rw-r--r--libkcddb/test/asyncsmtpsubmittest.h2
-rw-r--r--mpeglib/ConfigureChecks.cmake2
-rw-r--r--mpeglib/lib/CMakeLists.txt4
-rw-r--r--mpeglib/lib/Makefile.am2
-rw-r--r--mpeglib/lib/dummy.cpp6
-rw-r--r--mpeglib/lib/mpegplay/slice.h2
-rw-r--r--mpeglib/lib/util/abstract/abs_thread.h2
-rw-r--r--mpeglib/lib/util/render/x11/xinit.h2
-rw-r--r--noatun/library/app.cpp10
-rw-r--r--noatun/library/cmodule.cpp6
-rw-r--r--noatun/library/cmodule.h2
-rw-r--r--noatun/library/controls.cpp12
-rw-r--r--noatun/library/downloader.cpp13
-rw-r--r--noatun/library/effectview.cpp22
-rw-r--r--noatun/library/effectview.h4
-rw-r--r--noatun/library/engine.cpp10
-rw-r--r--noatun/library/equalizer.cpp20
-rw-r--r--noatun/library/equalizerview.cpp58
-rw-r--r--noatun/library/equalizerview.h6
-rw-r--r--noatun/library/globalvideo.h2
-rw-r--r--noatun/library/mimetypetree.h2
-rw-r--r--noatun/library/noatun/app.h2
-rw-r--r--noatun/library/noatun/controls.h8
-rw-r--r--noatun/library/noatun/downloader.h2
-rw-r--r--noatun/library/noatun/effects.h2
-rw-r--r--noatun/library/noatun/engine.h2
-rw-r--r--noatun/library/noatun/equalizer.h2
-rw-r--r--noatun/library/noatun/player.h2
-rw-r--r--noatun/library/noatun/playlist.h2
-rw-r--r--noatun/library/noatun/plugin.h4
-rw-r--r--noatun/library/noatun/pref.h4
-rw-r--r--noatun/library/noatun/scrollinglabel.h2
-rw-r--r--noatun/library/noatun/stdaction.h10
-rw-r--r--noatun/library/noatun/stereobuttonaction.h2
-rw-r--r--noatun/library/noatun/vequalizer.h4
-rw-r--r--noatun/library/noatun/video.h2
-rw-r--r--noatun/library/noatunstdaction.cpp74
-rw-r--r--noatun/library/noatuntags/tags.cpp16
-rw-r--r--noatun/library/noatuntags/tagsgetter.h4
-rw-r--r--noatun/library/player.cpp10
-rw-r--r--noatun/library/playlist.cpp6
-rw-r--r--noatun/library/playlistsaver.cpp2
-rw-r--r--noatun/library/plugin.cpp2
-rw-r--r--noatun/library/plugin_deps.h2
-rw-r--r--noatun/library/pluginmodule.cpp8
-rw-r--r--noatun/library/pluginmodule.h4
-rw-r--r--noatun/library/pref.cpp6
-rw-r--r--noatun/library/scrollinglabel.cpp4
-rw-r--r--noatun/library/titleproxy.cpp14
-rw-r--r--noatun/library/titleproxy.h4
-rw-r--r--noatun/library/video.cpp16
-rw-r--r--noatun/modules/artseffects/extrastereogui_impl.cpp2
-rw-r--r--noatun/modules/dcopiface/dcopiface.cpp2
-rw-r--r--noatun/modules/excellent/userinterface.cpp40
-rw-r--r--noatun/modules/excellent/userinterface.h2
-rw-r--r--noatun/modules/htmlexport/htmlexport.cpp2
-rw-r--r--noatun/modules/htmlexport/htmlexport.h4
-rw-r--r--noatun/modules/infrared/infrared.cpp6
-rw-r--r--noatun/modules/infrared/infrared.h2
-rw-r--r--noatun/modules/infrared/irprefs.cpp18
-rw-r--r--noatun/modules/infrared/irprefs.h2
-rw-r--r--noatun/modules/infrared/lirc.cpp2
-rw-r--r--noatun/modules/infrared/lirc.h2
-rw-r--r--noatun/modules/kaiman/SKIN-SPECS2
-rw-r--r--noatun/modules/kaiman/pref.h2
-rw-r--r--noatun/modules/kaiman/style.cpp10
-rw-r--r--noatun/modules/kaiman/style.h22
-rw-r--r--noatun/modules/kaiman/userinterface.cpp60
-rw-r--r--noatun/modules/kaiman/userinterface.h2
-rw-r--r--noatun/modules/keyz/keyz.cpp34
-rw-r--r--noatun/modules/keyz/keyz.h4
-rw-r--r--noatun/modules/kjofol-skin/kjbutton.cpp8
-rw-r--r--noatun/modules/kjofol-skin/kjbutton.h2
-rw-r--r--noatun/modules/kjofol-skin/kjequalizer.cpp2
-rw-r--r--noatun/modules/kjofol-skin/kjequalizer.h2
-rw-r--r--noatun/modules/kjofol-skin/kjguisettingswidget.ui4
-rw-r--r--noatun/modules/kjofol-skin/kjloader.cpp34
-rw-r--r--noatun/modules/kjofol-skin/kjloader.h2
-rw-r--r--noatun/modules/kjofol-skin/kjprefs.cpp10
-rw-r--r--noatun/modules/kjofol-skin/kjprefs.h2
-rw-r--r--noatun/modules/kjofol-skin/kjskinselectorwidget.ui6
-rw-r--r--noatun/modules/kjofol-skin/kjtextdisplay.h2
-rw-r--r--noatun/modules/making_plugins2
-rw-r--r--noatun/modules/marquis/marquis.cpp6
-rw-r--r--noatun/modules/marquis/marquis.h2
-rw-r--r--noatun/modules/metatag/edit.cpp20
-rw-r--r--noatun/modules/metatag/edit.h2
-rw-r--r--noatun/modules/metatag/metatag.cpp6
-rw-r--r--noatun/modules/metatag/metatag.h2
-rw-r--r--noatun/modules/monoscope/monoscope.cpp2
-rw-r--r--noatun/modules/monoscope/monoscope.h2
-rw-r--r--noatun/modules/net/net.cpp2
-rw-r--r--noatun/modules/net/net.h2
-rw-r--r--noatun/modules/noatunui/userinterface.cpp56
-rw-r--r--noatun/modules/noatunui/userinterface.h2
-rw-r--r--noatun/modules/simple/propertiesdialog.ui4
-rw-r--r--noatun/modules/simple/userinterface.cpp60
-rw-r--r--noatun/modules/simple/userinterface.h2
-rw-r--r--noatun/modules/splitplaylist/find.cpp6
-rw-r--r--noatun/modules/splitplaylist/find.h2
-rw-r--r--noatun/modules/splitplaylist/playlist.cpp6
-rw-r--r--noatun/modules/splitplaylist/playlist.h2
-rw-r--r--noatun/modules/splitplaylist/view.cpp61
-rw-r--r--noatun/modules/splitplaylist/view.h4
-rw-r--r--noatun/modules/systray/cmodule.cpp6
-rw-r--r--noatun/modules/systray/cmodule.h2
-rw-r--r--noatun/modules/systray/kitsystemtray.cpp4
-rw-r--r--noatun/modules/systray/kitsystemtray.h2
-rw-r--r--noatun/modules/systray/systray.cpp30
-rw-r--r--noatun/modules/systray/systray.h2
-rw-r--r--noatun/modules/voiceprint/prefs.h2
-rw-r--r--noatun/modules/voiceprint/voiceprint.cpp2
-rw-r--r--noatun/modules/voiceprint/voiceprint.h2
-rw-r--r--noatun/modules/winskin/guiSpectrumAnalyser.cpp14
-rw-r--r--noatun/modules/winskin/guiSpectrumAnalyser.h2
-rw-r--r--noatun/modules/winskin/waBalanceSlider.cpp8
-rw-r--r--noatun/modules/winskin/waBalanceSlider.h2
-rw-r--r--noatun/modules/winskin/waButton.cpp4
-rw-r--r--noatun/modules/winskin/waButton.h2
-rw-r--r--noatun/modules/winskin/waClutterbar.h2
-rw-r--r--noatun/modules/winskin/waDigit.cpp14
-rw-r--r--noatun/modules/winskin/waDigit.h2
-rw-r--r--noatun/modules/winskin/waIndicator.h2
-rw-r--r--noatun/modules/winskin/waInfo.cpp12
-rw-r--r--noatun/modules/winskin/waInfo.h2
-rw-r--r--noatun/modules/winskin/waJumpSlider.cpp6
-rw-r--r--noatun/modules/winskin/waJumpSlider.h2
-rw-r--r--noatun/modules/winskin/waLabel.cpp6
-rw-r--r--noatun/modules/winskin/waLabel.h2
-rw-r--r--noatun/modules/winskin/waMain.h2
-rw-r--r--noatun/modules/winskin/waSkin.cpp112
-rw-r--r--noatun/modules/winskin/waSkin.h2
-rw-r--r--noatun/modules/winskin/waSkinManager.cpp6
-rw-r--r--noatun/modules/winskin/waSkinManager.h2
-rw-r--r--noatun/modules/winskin/waSkinModel.h2
-rw-r--r--noatun/modules/winskin/waSlider.cpp2
-rw-r--r--noatun/modules/winskin/waSlider.h2
-rw-r--r--noatun/modules/winskin/waStatus.h2
-rw-r--r--noatun/modules/winskin/waTitleBar.cpp4
-rw-r--r--noatun/modules/winskin/waTitleBar.h2
-rw-r--r--noatun/modules/winskin/waVolumeSlider.cpp8
-rw-r--r--noatun/modules/winskin/waVolumeSlider.h2
-rw-r--r--noatun/modules/winskin/waWidget.cpp20
-rw-r--r--noatun/modules/winskin/waWidget.h4
-rw-r--r--noatun/modules/winskin/winSkinConfig.cpp14
-rw-r--r--noatun/modules/winskin/winSkinConfig.h2
-rw-r--r--noatun/modules/winskin/winSkinVis.h2
-rw-r--r--tdefile-plugins/au/tdefile_au.h2
-rw-r--r--tdefile-plugins/avi/tdefile_avi.h2
-rw-r--r--tdefile-plugins/flac/tdefile_flac.cpp16
-rw-r--r--tdefile-plugins/flac/tdefile_flac.h2
-rw-r--r--tdefile-plugins/m3u/tdefile_m3u.h2
-rw-r--r--tdefile-plugins/mp3/tdefile_mp3.cpp20
-rw-r--r--tdefile-plugins/mp3/tdefile_mp3.desktop2
-rw-r--r--tdefile-plugins/mp3/tdefile_mp3.h2
-rw-r--r--tdefile-plugins/mpc/tdefile_mpc.cpp14
-rw-r--r--tdefile-plugins/mpc/tdefile_mpc.h2
-rw-r--r--tdefile-plugins/mpeg/tdefile_mpeg.h2
-rw-r--r--tdefile-plugins/ogg/tdefile_ogg.h2
-rw-r--r--tdefile-plugins/sid/tdefile_sid.h2
-rw-r--r--tdefile-plugins/theora/tdefile_theora.h2
-rw-r--r--tdefile-plugins/wav/tdefile_wav.h2
-rw-r--r--tdeioslave/audiocd/kcmaudiocd/audiocdconfig.ui4
-rw-r--r--tdeioslave/audiocd/kcmaudiocd/kcmaudiocd.cpp28
-rw-r--r--tdeioslave/audiocd/kcmaudiocd/kcmaudiocd.h2
-rw-r--r--tdeioslave/audiocd/plugins/flac/encoderflac.cpp2
-rw-r--r--tdeioslave/audiocd/plugins/lame/collectingprocess.cpp16
-rw-r--r--tdeioslave/audiocd/plugins/lame/collectingprocess.h2
-rw-r--r--tdeioslave/audiocd/plugins/lame/encoderlame.cpp18
-rw-r--r--tdeioslave/audiocd/plugins/lame/encoderlame.h2
-rw-r--r--tdeioslave/audiocd/plugins/vorbis/encodervorbis.cpp2
-rw-r--r--tdeioslave/audiocd/plugins/vorbis/encodervorbisconfig.ui2
-rw-r--r--tdemid/CMakeLists.txt2
-rw-r--r--tdemid/channel.cpp4
-rw-r--r--tdemid/channel.h2
-rw-r--r--tdemid/channelcfgdlg.cpp2
-rw-r--r--tdemid/channelcfgdlg.h2
-rw-r--r--tdemid/channelview.cpp8
-rw-r--r--tdemid/channelview.h2
-rw-r--r--tdemid/collectdlg.cpp20
-rw-r--r--tdemid/collectdlg.h2
-rw-r--r--tdemid/kdisptext.cpp6
-rw-r--r--tdemid/kdisptext.h2
-rw-r--r--tdemid/klcdnumber.cpp10
-rw-r--r--tdemid/klcdnumber.h2
-rw-r--r--tdemid/ktrianglebutton.cpp8
-rw-r--r--tdemid/ktrianglebutton.h2
-rw-r--r--tdemid/main.cpp2
-rw-r--r--tdemid/midicfgdlg.cpp6
-rw-r--r--tdemid/midicfgdlg.h2
-rw-r--r--tdemid/qslidertime.h2
-rw-r--r--tdemid/tdemid_part.cpp12
-rw-r--r--tdemid/tdemid_part.h8
-rw-r--r--tdemid/tdemidclient.cpp24
-rw-r--r--tdemid/tdemidclient.h2
-rw-r--r--tdemid/tdemidframe.cpp100
-rw-r--r--tdemid/tdemidframe.h2
-rw-r--r--translations/desktop_files/juk-desktops/ru.po16
-rw-r--r--translations/desktop_files/kaboodle-desktops/ru.po16
-rw-r--r--translations/desktop_files/kappfinder-data/pt.po54
-rw-r--r--translations/desktop_files/kappfinder-data/ru.po61
-rw-r--r--translations/desktop_files/kaudiocreator-desktops/ru.po16
-rw-r--r--translations/desktop_files/kaudiocreator-eventsrc/ru.po16
-rw-r--r--translations/desktop_files/kmix-desktops/ru.po16
-rw-r--r--translations/desktop_files/krec-desktops/ru.po16
-rw-r--r--translations/desktop_files/kscd-desktops/ru.po16
-rw-r--r--translations/desktop_files/libkcddb.desktop/ru.po16
-rw-r--r--translations/desktop_files/noatun-desktops/ru.po16
-rw-r--r--translations/desktop_files/tdemid-desktops/ru.po16
-rw-r--r--xine_artsplugin/audio_fifo_out.c4
-rw-r--r--xine_artsplugin/tools/thumbnail/videocreator.h2
580 files changed, 4114 insertions, 3100 deletions
diff --git a/.gitmodules b/.gitmodules
index bdec8fca..934def7f 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,6 +1,3 @@
[submodule "admin"]
path = admin
url = https://system@scm.trinitydesktop.org/scm/git/tde-common-admin
-[submodule "cmake"]
- path = cmake
- url = https://system@scm.trinitydesktop.org/scm/git/tde-common-cmake
diff --git a/CMakeL10n.txt b/CMakeL10n.txt
index c9758900..846a8586 100644
--- a/CMakeL10n.txt
+++ b/CMakeL10n.txt
@@ -9,12 +9,15 @@
#
#################################################
-cmake_minimum_required( VERSION 2.8 )
+
+##### set project version ########################
+
+include( TDEVersion )
+cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} )
##### include our cmake modules #################
-set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
include( TDEL10n )
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bef34a6f..2a4ae664 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,7 +9,12 @@
#
#################################################
-cmake_minimum_required( VERSION 2.8.12 )
+
+##### set project version ########################
+
+include( TDEVersion )
+cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} )
+tde_set_project_version( )
##### general package setup #####################
@@ -17,7 +22,6 @@ cmake_minimum_required( VERSION 2.8.12 )
project( tdemultimedia )
set( PACKAGE tdemultimedia )
-set( VERSION R14.1.0 )
enable_testing( )
@@ -37,7 +41,6 @@ include( CheckSymbolExists )
##### include our cmake modules #################
-set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
include( TDEMacros )
@@ -49,7 +52,7 @@ tde_setup_paths( )
##### optional stuff ############################
-OPTION( WITH_ALL_OPTIONS "Enable all optional support" OFF )
+option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
option( WITH_ALSA "Enable ALSA support (kscd, kmix)" ON )
option( WITH_ARTS_AKODE "Enable aRts akode plugin" ${WITH_ALL_OPTIONS} )
option( WITH_ARTS_AUDIOFILE "Enable aRts audiofile plugin" ${WITH_ALL_OPTIONS} )
@@ -64,7 +67,7 @@ option( WITH_MUSICBRAINZ "Enable MusicBrainz support (juk)" OFF )
option( WITH_TAGLIB "Enable taglib support (juk, tdefile-plugins)" ${WITH_ALL_OPTIONS} )
option( WITH_THEORA "Enable Ogg/Theora support (tdefile-plugins)" ${WITH_ALL_OPTIONS} )
option( WITH_VORBIS "Enable Ogg/Vorbis support (krec, mpeglib, oggarts, tdefile-plugins)" ${WITH_ALL_OPTIONS} )
-
+option( WITH_KMIX_EXPERIMENTAL "Enable experimental/unmaintained KMix features" OFF )
##### user requested modules ####################
@@ -138,6 +141,11 @@ if( BUILD_KAUDIOCREATOR )
add_subdirectory( kaudiocreator )
endif( BUILD_KAUDIOCREATOR )
tde_conditional_add_subdirectory( BUILD_KMIX kmix )
+if( WITH_KMIX_EXPERIMENTAL )
+ if( NOT BUILD_KMIX )
+ tde_message_fatal( "KMix experimental features requested, but KMix won't be built" )
+ endif( )
+endif( WITH_KMIX_EXPERIMENTAL )
if( BUILD_KREC )
if( NOT BUILD_ARTS )
tde_message_fatal( "krec can not be built without building arts" )
@@ -159,10 +167,33 @@ configure_file( config.h.cmake config.h @ONLY )
##### add apidox targets ############
-add_custom_target(apidox
- COMMAND "./generate_apidox" "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" "${HTML_INSTALL_DIR}" "/usr/share/qt3/doc/html"
- WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/cmake/")
+add_custom_target( apidox
+ COMMAND ${CMAKE_COMMAND} -E env
+ "TQTDOCDIR=/usr/share/tqt3/doc/html"
+ "DOXDATA=${HTML_INSTALL_DIR}/en/common"
+ ${CMAKE_SOURCE_DIR}/admin/doxygen.sh
+ --no-modulename
+ ${CMAKE_SOURCE_DIR}
+ COMMAND
+ find ${CMAKE_BINARY_DIR}/apidocs -name '*.html' |
+ xargs -r sed -i 's|${CMAKE_BINARY_DIR}/apidocs|${HTML_INSTALL_DIR}/en/${PROJECT_NAME}-apidocs|g'
+ COMMAND
+ find ${CMAKE_BINARY_DIR}/apidocs -name '*.tag' |
+ xargs -r sed -i 's|${CMAKE_SOURCE_DIR}/|${PROJECT_NAME}/|g'
+ WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
+)
+
+add_custom_target( install-apidox
+ COMMAND ${CMAKE_COMMAND} -E echo Apidox installed in ${HTML_INSTALL_DIR}/en/${PROJECT_NAME}-apidocs
+)
-add_custom_target(install-apidox
- COMMAND "./install_apidox" "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" "${HTML_INSTALL_DIR}" "${CMAKE_INSTALL_PREFIX}"
- WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/cmake/")
+install( CODE "
+ if( EXISTS ${CMAKE_BINARY_DIR}/apidocs )
+ file(
+ INSTALL ${CMAKE_BINARY_DIR}/apidocs/
+ DESTINATION ${HTML_INSTALL_DIR}/en/${PROJECT_NAME}-apidocs
+ PATTERN doxygen_sqlite3.db EXCLUDE
+ PATTERN installdox-slow EXCLUDE
+ )
+ endif()"
+)
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index eb8a0de2..16381307 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -228,7 +228,10 @@ endif( WITH_CDPARANOIA )
if( WITH_FLAC )
pkg_search_module( FLAC flac )
if( NOT FLAC_FOUND )
- tde_message_fatal( "FLAC is requested, but not found on your system" )
+ find_library( FLAC_LIBRARIES NAMES FLAC FLAC++ OggFLAC OggFLAC++)
+ if( NOT FLAC_LIBRARIES )
+ tde_message_fatal( "FLAC is requested, but not found on your system" )
+ endif( )
endif( )
set( HAVE_LIBFLAC 1 )
endif( WITH_FLAC )
diff --git a/admin b/admin
-Subproject 8c7e0d40de084fe5d54e173918756639e0d4d63
+Subproject 59a8bf7c09f87fbccd6dc2987145c7216e043e7
diff --git a/akode_artsplugin/arts_inputstream.h b/akode_artsplugin/arts_inputstream.h
index 1f68d177..c6f61e2c 100644
--- a/akode_artsplugin/arts_inputstream.h
+++ b/akode_artsplugin/arts_inputstream.h
@@ -75,8 +75,8 @@ public:
long write(const char*, long) {
return -1;
}
- bool seek(long to, int whence) {
- if(!m_open || !seekable()) return false;
+ ssize_t lseek(long to, int whence) {
+ if(!m_open || !seekable()) return -1;
arts_debug("akode: InputStream seeking");
@@ -89,21 +89,21 @@ public:
newpos = m_pos + to;
break;
case SEEK_END:
- if (m_len < 0) return false;
+ if (m_len < 0) return -1;
newpos = m_len + to;
break;
default:
- return false;
+ return -1;
}
- long s = m_instream.seek(newpos);
+ ssize_t s = m_instream.seek(newpos);
if (s >= 0) {
m_pos = s;
m_buffer->flush();
- return true;
+ return s;
}
else
- return false;
+ return -1;
}
long position() const {
diff --git a/arts/builder/TODO b/arts/builder/TODO
index 8b962aa5..139f22b2 100644
--- a/arts/builder/TODO
+++ b/arts/builder/TODO
@@ -41,7 +41,7 @@ Wishlist for the artsbuilder app:
this should be very useful in editing objects with lots of properties
(widgets)
-- make _changed Q_SIGNALS visible so you can connect the value_changed of a
+- make _changed 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
diff --git a/arts/builder/createtool.cpp b/arts/builder/createtool.cpp
index 2913fdd3..95026884 100644
--- a/arts/builder/createtool.cpp
+++ b/arts/builder/createtool.cpp
@@ -67,7 +67,7 @@ void CreateTool::mousePressEvent(TQMouseEvent *e)
if(x < 0 || y < 0) return;
- if( e->button() == Qt::LeftButton )
+ if( e->button() == TQt::LeftButton )
performCreate(x, y);
// well, perhaps make this an option
diff --git a/arts/builder/execdlg.cpp b/arts/builder/execdlg.cpp
index fcdce6b8..fec40c03 100644
--- a/arts/builder/execdlg.cpp
+++ b/arts/builder/execdlg.cpp
@@ -71,10 +71,10 @@ ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure)
cpuusagelabel->setText(i18n("CPU usage: unknown"));
cpuusagetimer = new TQTimer( this );
- connect( cpuusagetimer, TQT_SIGNAL(timeout()),
- this, TQT_SLOT(updateCpuUsage()) );
- connect( cpuusagetimer, TQT_SIGNAL(timeout()),
- this, TQT_SLOT(guiServerTick()) );
+ connect( cpuusagetimer, TQ_SIGNAL(timeout()),
+ this, TQ_SLOT(updateCpuUsage()) );
+ connect( cpuusagetimer, TQ_SIGNAL(timeout()),
+ this, TQ_SLOT(guiServerTick()) );
cpuusagetimer->start( 2000, false );
min_size(cpuusagelabel);
@@ -115,15 +115,15 @@ ExecDlg::ExecDlg(TQWidget *parent, ExecutableStructure *structure)
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
+ bbox->addButton(KStdGuiItem::help(), this, TQ_SLOT( help() ));
bbox->addStretch(1);
TQButton *savebutton = bbox->addButton(KStdGuiItem::saveAs());
- connect( savebutton, TQT_SIGNAL( clicked() ), TQT_SLOT(saveSession() ) );
+ connect( savebutton, TQ_SIGNAL( clicked() ), TQ_SLOT(saveSession() ) );
TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
- connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
+ connect( okbutton, TQ_SIGNAL( clicked() ), TQ_SLOT(accept() ) );
bbox->layout();
//min_size(bbox);
diff --git a/arts/builder/execdlg.h b/arts/builder/execdlg.h
index a4c235be..6a85656d 100644
--- a/arts/builder/execdlg.h
+++ b/arts/builder/execdlg.h
@@ -30,7 +30,7 @@
#include <tqlayout.h>
class ExecDlg :public TQDialog {
- Q_OBJECT
+ TQ_OBJECT
public:
TQTimer *cpuusagetimer;
diff --git a/arts/builder/interfacedlg.cpp b/arts/builder/interfacedlg.cpp
index 99b8072e..936a0697 100644
--- a/arts/builder/interfacedlg.cpp
+++ b/arts/builder/interfacedlg.cpp
@@ -94,8 +94,8 @@ InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE)
listbox->setMinimumSize(340,400);
mainlayout->addWidget(listbox);
- connect( listbox, TQT_SIGNAL( doubleClicked ( TQListBoxItem *)), this,
- TQT_SLOT(accept()));
+ connect( listbox, TQ_SIGNAL( doubleClicked ( TQListBoxItem *)), this,
+ TQ_SLOT(accept()));
// hruler
mainlayout->addSpacing(5);
@@ -112,14 +112,14 @@ InterfaceDlg::InterfaceDlg(TQWidget *parent) :TQDialog(parent,"Props", TRUE)
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
+ bbox->addButton(KStdGuiItem::help(), this, TQ_SLOT( help() ));
bbox->addStretch(1);
TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
- connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
+ connect( okbutton, TQ_SIGNAL( clicked() ), TQ_SLOT(accept() ) );
TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
- connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
+ connect( cancelbutton, TQ_SIGNAL( clicked() ), TQ_SLOT(reject() ) );
bbox->layout();
//min_size(bbox);
diff --git a/arts/builder/interfacedlg.h b/arts/builder/interfacedlg.h
index c2ee3341..efb8a9de 100644
--- a/arts/builder/interfacedlg.h
+++ b/arts/builder/interfacedlg.h
@@ -31,7 +31,7 @@
#include <vector>
class InterfaceDlg :public TQDialog {
- Q_OBJECT
+ TQ_OBJECT
protected:
TQListBox *listbox;
diff --git a/arts/builder/main.cpp b/arts/builder/main.cpp
index 1d7bbce9..bba94fca 100644
--- a/arts/builder/main.cpp
+++ b/arts/builder/main.cpp
@@ -146,7 +146,7 @@ ArtsBuilderWindow::ArtsBuilderWindow(const char *name)
arts_debug("PORT: modulewidget");
modulewidget = new ModuleWidget(structure, mainDock, "mwidget");
mainDock->setWidget(modulewidget);
- connect(modulewidget, TQT_SIGNAL(modified(bool)), TQT_SLOT(setModified(bool)));
+ connect(modulewidget, TQ_SIGNAL(modified(bool)), TQ_SLOT(setModified(bool)));
arts_debug("PORT: modulewidget ok");
// allow others to dock to the 4 sides
@@ -167,20 +167,20 @@ ArtsBuilderWindow::ArtsBuilderWindow(const char *name)
80); // relation target/this (in percent)
// selection
- connect(modulewidget, TQT_SIGNAL(portSelected(ModulePort *)),
- propertyPanel, TQT_SLOT (setSelectedPort(ModulePort *)));
- connect(propertyPanel, TQT_SIGNAL(portSelected(ModulePort *)),
- modulewidget, TQT_SLOT (selectPort(ModulePort *)));
- connect(modulewidget, TQT_SIGNAL(componentSelected(StructureComponent *)),
- propertyPanel, TQT_SLOT (setSelectedComponent(StructureComponent *)));
+ connect(modulewidget, TQ_SIGNAL(portSelected(ModulePort *)),
+ propertyPanel, TQ_SLOT (setSelectedPort(ModulePort *)));
+ connect(propertyPanel, TQ_SIGNAL(portSelected(ModulePort *)),
+ modulewidget, TQ_SLOT (selectPort(ModulePort *)));
+ connect(modulewidget, TQ_SIGNAL(componentSelected(StructureComponent *)),
+ propertyPanel, TQ_SLOT (setSelectedComponent(StructureComponent *)));
// connection
- connect(propertyPanel, TQT_SIGNAL(startConnection(ModulePort *)),
- modulewidget, TQT_SLOT (startConnection(ModulePort *)));
+ connect(propertyPanel, TQ_SIGNAL(startConnection(ModulePort *)),
+ modulewidget, TQ_SLOT (startConnection(ModulePort *)));
// port properties changed
- connect(propertyPanel, TQT_SIGNAL(portPropertiesChanged(ModulePort *)),
- modulewidget, TQT_SLOT (portPropertiesChanged(ModulePort *)));
+ connect(propertyPanel, TQ_SIGNAL(portPropertiesChanged(ModulePort *)),
+ modulewidget, TQ_SLOT (portPropertiesChanged(ModulePort *)));
arts_debug("PORT: setcanvas");
structure->setCanvas(modulewidget);
@@ -251,25 +251,25 @@ ArtsBuilderWindow::ArtsBuilderWindow(const char *name)
*/
#if 000
- 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)), TQT_TQOBJECT(this), TQT_SLOT(addPort(int)));
- connect(m_file_new, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(fileNew(int)));
+ connect(menubar, TQ_SIGNAL(highlighted(int)), this, TQ_SLOT(activateMenu(int)));
+ connect(m_view, TQ_SIGNAL(activated(int)), modulewidget, TQ_SLOT(setZoom(int)));
+ connect(m_ports, TQ_SIGNAL(activated(int)), this, TQ_SLOT(addPort(int)));
+ connect(m_file_new, TQ_SIGNAL(activated(int)), this, TQ_SLOT(fileNew(int)));
- //connect(m_modules, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(addModule(int)));
+ //connect(m_modules, TQ_SIGNAL(activated(int)), this, TQ_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(m_modules_synth, TQ_SIGNAL(activated(int)), this, TQ_SLOT(addModule(int)));
+ connect(m_modules_gui, TQ_SIGNAL(activated(int)), this, TQ_SLOT(addModule(int)));
+ connect(m_modules_instruments, TQ_SIGNAL(activated(int)), this, TQ_SLOT(addModule(int)));
+ connect(m_modules_other, TQ_SIGNAL(activated(int)), this, TQ_SLOT(addModule(int)));
*/
- connect(kapp, TQT_SIGNAL(lastWindowClosed()), this , TQT_SLOT(quit()));
+ connect(kapp, TQ_SIGNAL(lastWindowClosed()), this , TQ_SLOT(quit()));
// update the modules menu once for the start
#endif
arts_debug("PORT: activatemenu");
- connect(menumaker, TQT_SIGNAL(activated(const char *)), TQT_TQOBJECT(this), TQT_SLOT(addModule(const char *)));
+ connect(menumaker, TQ_SIGNAL(activated(const char *)), this, TQ_SLOT(addModule(const char *)));
fillModuleMenu();
arts_debug("PORT: activatemenu ok");
setupActions();
@@ -279,7 +279,7 @@ 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()), TQT_TQOBJECT(this), TQT_SLOT(viewMenuAboutToShow()));
+ connect(viewmenu, TQ_SIGNAL(aboutToShow()), this, TQ_SLOT(viewMenuAboutToShow()));
else
arts_debug("view menu not found!");
@@ -292,55 +292,55 @@ ArtsBuilderWindow::ArtsBuilderWindow(const char *name)
void ArtsBuilderWindow::setupActions()
{
// File menu
- KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(fileNew()), actionCollection());
+ KStdAction::openNew(this, TQ_SLOT(fileNew()), actionCollection());
- (void)new TDEAction(i18n("Open Session..."), 0, TQT_TQOBJECT(this), TQT_SLOT(openSession()),
+ (void)new TDEAction(i18n("Open Session..."), 0, this, TQ_SLOT(openSession()),
actionCollection(), "file_open_session");
- KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(open()), actionCollection());
- (void)new TDEAction(i18n("Open E&xample..."), TQt::CTRL + TQt::Key_X, TQT_TQOBJECT(this), TQT_SLOT(openExample()),
+ KStdAction::open(this, TQ_SLOT(open()), actionCollection());
+ (void)new TDEAction(i18n("Open E&xample..."), TQt::CTRL + TQt::Key_X, this, TQ_SLOT(openExample()),
actionCollection(), "file_open_example");
- KStdAction::save(TQT_TQOBJECT(this), TQT_SLOT(save()), actionCollection());
- KStdAction::saveAs(TQT_TQOBJECT(this), TQT_SLOT(saveAs()), actionCollection());
- (void)new TDEAction(i18n("&Retrieve From Server..."), TQt::CTRL + TQt::Key_R, TQT_TQOBJECT(this), TQT_SLOT(retrieve()),
+ KStdAction::save(this, TQ_SLOT(save()), actionCollection());
+ KStdAction::saveAs(this, TQ_SLOT(saveAs()), actionCollection());
+ (void)new TDEAction(i18n("&Retrieve From Server..."), TQt::CTRL + TQt::Key_R, this, TQ_SLOT(retrieve()),
actionCollection(), "file_retrieve_from_server");
- (void)new TDEAction(i18n("&Execute Structure"), "artsbuilderexecute", TQt::CTRL + TQt::Key_E, TQT_TQOBJECT(this), TQT_SLOT(execute()),
+ (void)new TDEAction(i18n("&Execute Structure"), "artsbuilderexecute", TQt::CTRL + TQt::Key_E, this, TQ_SLOT(execute()),
actionCollection(), "file_execute_structure");
- (void)new TDEAction(i18n("&Rename Structure..."), TQt::CTRL + TQt::Key_R, TQT_TQOBJECT(this), TQT_SLOT(rename()),
+ (void)new TDEAction(i18n("&Rename Structure..."), TQt::CTRL + TQt::Key_R, this, TQ_SLOT(rename()),
actionCollection(), "file_rename_structure");
- (void)new TDEAction(i18n("&Publish Structure"), TQt::CTRL + TQt::Key_P, TQT_TQOBJECT(this), TQT_SLOT(publish()),
+ (void)new TDEAction(i18n("&Publish Structure"), TQt::CTRL + TQt::Key_P, this, TQ_SLOT(publish()),
actionCollection(), "file_publish_structure");
- KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection());
+ KStdAction::quit(this, TQ_SLOT(close()), actionCollection());
// Edit menu
- (void)new TDEAction(i18n("&Delete"), TQt::Key_Delete, TQT_TQOBJECT(modulewidget), TQT_SLOT(delModule()),
+ (void)new TDEAction(i18n("&Delete"), TQt::Key_Delete, modulewidget, TQ_SLOT(delModule()),
actionCollection(), "edit_delete");
- KStdAction::selectAll(TQT_TQOBJECT(modulewidget), TQT_SLOT(selectAll()), actionCollection());
+ KStdAction::selectAll(modulewidget, TQ_SLOT(selectAll()), actionCollection());
// View menu
viewPropertiesAction= new TDEToggleAction(i18n("&Property Panel"), 0,
- TQT_TQOBJECT(propertyDock), TQT_SLOT(changeHideShowState()),
+ propertyDock, TQ_SLOT(changeHideShowState()),
actionCollection(), "view_properties");
- (void)new TDEAction(i18n("200%"), 0, TQT_TQOBJECT(this), TQT_SLOT(viewAt200()),
+ (void)new TDEAction(i18n("200%"), 0, this, TQ_SLOT(viewAt200()),
actionCollection(), "view_200");
- (void)new TDEAction(i18n("150%"), 0, TQT_TQOBJECT(this), TQT_SLOT(viewAt150()),
+ (void)new TDEAction(i18n("150%"), 0, this, TQ_SLOT(viewAt150()),
actionCollection(), "view_150");
- (void)new TDEAction(i18n("100%"), 0, TQT_TQOBJECT(this), TQT_SLOT(viewAt100()),
+ (void)new TDEAction(i18n("100%"), 0, this, TQ_SLOT(viewAt100()),
actionCollection(), "view_100");
- (void)new TDEAction(i18n("50%"), 0, TQT_TQOBJECT(this), TQT_SLOT(viewAt50()),
+ (void)new TDEAction(i18n("50%"), 0, this, TQ_SLOT(viewAt50()),
actionCollection(), "view_50");
// Ports menu
- (void)new TDEAction(i18n("Create IN Audio Signal"), 0, TQT_TQOBJECT(this), TQT_SLOT(createInAudioSignal()),
+ (void)new TDEAction(i18n("Create IN Audio Signal"), 0, this, TQ_SLOT(createInAudioSignal()),
actionCollection(), "ports_create_in_audio_signal");
- (void)new TDEAction(i18n("Create OUT Audio Signal"), 0, TQT_TQOBJECT(this), TQT_SLOT(createOutAudioSignal()),
+ (void)new TDEAction(i18n("Create OUT Audio Signal"), 0, this, TQ_SLOT(createOutAudioSignal()),
actionCollection(), "ports_create_out_audio_signal");
- (void)new TDEAction(i18n("Create IN String Property"), 0, TQT_TQOBJECT(this), TQT_SLOT(createInStringProperty()),
+ (void)new TDEAction(i18n("Create IN String Property"), 0, this, TQ_SLOT(createInStringProperty()),
actionCollection(), "ports_create_in_string_property");
- (void)new TDEAction(i18n("Create IN Audio Property"), 0, TQT_TQOBJECT(this), TQT_SLOT(createInAudioProperty()),
+ (void)new TDEAction(i18n("Create IN Audio Property"), 0, this, TQ_SLOT(createInAudioProperty()),
actionCollection(), "ports_create_in_audio_property");
- (void)new TDEAction(i18n("Implement Interface..."), 0, TQT_TQOBJECT(this), TQT_SLOT(addInterface()),
+ (void)new TDEAction(i18n("Implement Interface..."), 0, this, TQ_SLOT(addInterface()),
actionCollection(), "ports_implement_interface");
- (void)new TDEAction(i18n("Change Positions/Names..."), 0, TQT_TQOBJECT(this), TQT_SLOT(changePortPositions()),
+ (void)new TDEAction(i18n("Change Positions/Names..."), 0, this, TQ_SLOT(changePortPositions()),
actionCollection(), "ports_change_positions");
}
@@ -532,7 +532,7 @@ void ArtsBuilderWindow::openSession()
execDlg->start();
execDlg->show();
- connect(execDlg, TQT_SIGNAL(ready()), TQT_TQOBJECT(this), TQT_SLOT(endexecute()));
+ connect(execDlg, TQ_SIGNAL(ready()), this, TQ_SLOT(endexecute()));
hide();
// m_filename = filename; FIXME: DOESN'T THIS BELONG HERE?
@@ -674,7 +674,7 @@ void ArtsBuilderWindow::execute()
execDlg->start();
execDlg->show();
- connect(execDlg, TQT_SIGNAL(ready()), TQT_TQOBJECT(this), TQT_SLOT(endexecute()));
+ connect(execDlg, TQ_SIGNAL(ready()), this, TQ_SLOT(endexecute()));
hide();
}
diff --git a/arts/builder/main.h b/arts/builder/main.h
index 74408022..135e3bc4 100644
--- a/arts/builder/main.h
+++ b/arts/builder/main.h
@@ -39,7 +39,7 @@ class TDEToggleAction;
class ArtsBuilderWindow: public KDockMainWindow
{
- Q_OBJECT
+ TQ_OBJECT
protected:
diff --git a/arts/builder/menumaker.cpp b/arts/builder/menumaker.cpp
index 8045091b..33784652 100644
--- a/arts/builder/menumaker.cpp
+++ b/arts/builder/menumaker.cpp
@@ -10,7 +10,7 @@ MenuEntry::MenuEntry(MenuMaker *menumaker, TDEActionMenu *parent, const char *te
{
action = new TDEAction(TQString::fromLocal8Bit(text));
parent->insert(action);
- connect(action, TQT_SIGNAL(activated()), this, TQT_SLOT(activated()));
+ connect(action, TQ_SIGNAL(activated()), this, TQ_SLOT(activated()));
}
void MenuEntry::activated()
@@ -93,7 +93,7 @@ void MenuMaker::addCategory(const TQString& name, const char *prefix)
TDEActionMenu *newMenu = new TDEActionMenu(catname(name));
pc->menu()->insert(newMenu);
/* 000 */
- /*connect(newMenu,TQT_SIGNAL(activated(int)),this,TQT_SLOT(menuactivated(int)));
+ /*connect(newMenu,TQ_SIGNAL(activated(int)),this,TQ_SLOT(menuactivated(int)));
pc->menu()->insertItem(catname(name).c_str(), newMenu, CAT_MAGIC_ID);*/
arts_debug("inserting a menu called '%s' in the parent menu '%s'",
catname(name).local8Bit().data(),pc->name().local8Bit().data());
diff --git a/arts/builder/menumaker.h b/arts/builder/menumaker.h
index fa3c0c20..655a0764 100644
--- a/arts/builder/menumaker.h
+++ b/arts/builder/menumaker.h
@@ -10,7 +10,7 @@ class MenuMaker;
class MenuEntry : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
protected:
@@ -46,7 +46,7 @@ public:
class MenuMaker :public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
std::list<MenuCategory *> categories;
diff --git a/arts/builder/mwidget.cpp b/arts/builder/mwidget.cpp
index 38a362e7..e1b08ebf 100644
--- a/arts/builder/mwidget.cpp
+++ b/arts/builder/mwidget.cpp
@@ -133,7 +133,7 @@ void ModuleWidget::mousePressEvent( TQMouseEvent *e )
return;
}
- if( e->button() == Qt::LeftButton )
+ if( e->button() == TQt::LeftButton )
{
StructureComponent *component;
ModulePort *port;
@@ -627,7 +627,7 @@ ModuleWidget::ModuleWidget(Structure *structure, TQWidget *parent, const char *n
setTableFlags(Tbl_autoScrollBars);
setZoom(100);
- setFocusPolicy( TQ_NoFocus );
+ setFocusPolicy( TQWidget::NoFocus );
arts_debug("PORT: mw; bgmode");
setBackgroundMode(NoBackground);
@@ -637,8 +637,8 @@ ModuleWidget::ModuleWidget(Structure *structure, TQWidget *parent, const char *n
arts_debug("PORT: mw; new ar ok - qtimer");
TQTimer *timer = new TQTimer( this );
- connect( timer, TQT_SIGNAL(timeout()),
- this, TQT_SLOT(autoRedrawRouter()) );
+ connect( timer, TQ_SIGNAL(timeout()),
+ this, TQ_SLOT(autoRedrawRouter()) );
arts_debug("PORT: mw; tstart");
timer->start( 100, FALSE ); // 100 ms reoccurring check
diff --git a/arts/builder/mwidget.h b/arts/builder/mwidget.h
index 38d6999d..11fe76c0 100644
--- a/arts/builder/mwidget.h
+++ b/arts/builder/mwidget.h
@@ -33,7 +33,7 @@ class MWidgetTool;
class ModuleWidget :public QtTableView, public StructureCanvas
{
- Q_OBJECT
+ TQ_OBJECT
friend class MWidgetTool;
friend class CreateTool;
diff --git a/arts/builder/portposdlg.cpp b/arts/builder/portposdlg.cpp
index 2bf9dbe4..246f972c 100644
--- a/arts/builder/portposdlg.cpp
+++ b/arts/builder/portposdlg.cpp
@@ -111,27 +111,27 @@ PortPosDlg::PortPosDlg(TQWidget *parent, Structure *structure) :TQDialog(parent,
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
+ bbox->addButton(KStdGuiItem::help(), this, TQ_SLOT( help() ));
bbox->addStretch(1);
TDEIconLoader iconloader;
TQButton *raise = bbox->addButton(i18n("&Raise"));
raise->setPixmap(iconloader.loadIcon("go-up", TDEIcon::Small));
- connect( raise, TQT_SIGNAL( clicked() ), TQT_SLOT( raise() ));
+ connect( raise, TQ_SIGNAL( clicked() ), TQ_SLOT( raise() ));
TQButton *lower = bbox->addButton(i18n("&Lower"));
lower->setPixmap(iconloader.loadIcon("go-down", TDEIcon::Small));
- connect( lower, TQT_SIGNAL( clicked() ), TQT_SLOT( lower() ));
+ connect( lower, TQ_SIGNAL( clicked() ), TQ_SLOT( lower() ));
TQButton *rename = bbox->addButton(i18n("R&ename..."));
- connect( rename, TQT_SIGNAL( clicked() ), TQT_SLOT( rename() ));
+ connect( rename, TQ_SIGNAL( clicked() ), TQ_SLOT( rename() ));
TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
- connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
+ connect( okbutton, TQ_SIGNAL( clicked() ), TQ_SLOT(accept() ) );
/*
TQButton *cancelbutton = bbox->addButton(i18n("Cancel"));
- connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
+ connect( cancelbutton, TQ_SIGNAL( clicked() ), TQ_SLOT(reject() ) );
*/
bbox->layout();
//min_size(bbox);
diff --git a/arts/builder/portposdlg.h b/arts/builder/portposdlg.h
index b8714538..ba5ba8f9 100644
--- a/arts/builder/portposdlg.h
+++ b/arts/builder/portposdlg.h
@@ -31,7 +31,7 @@
#include <vector>
class PortPosDlg :public TQDialog {
- Q_OBJECT
+ TQ_OBJECT
protected:
Structure *structure;
diff --git a/arts/builder/propertypanel.cpp b/arts/builder/propertypanel.cpp
index 25809100..209fe7e4 100644
--- a/arts/builder/propertypanel.cpp
+++ b/arts/builder/propertypanel.cpp
@@ -43,20 +43,20 @@ PropertyPanel::PropertyPanel( TQWidget* parent, const char* name, WFlags fl )
{
setTitleFont();
setTitleColors();
- connect( kapp, TQT_SIGNAL( tdedisplayFontChanged() ),
- this, TQT_SLOT( setTitleFont() ));
- connect( kapp, TQT_SIGNAL( tdedisplayPaletteChanged() ),
- this, TQT_SLOT( setTitleColors() ));
- connect( portValueGroup, TQT_SIGNAL( clicked(int) ),
- this, TQT_SLOT( pvModeChanged(int) ));
- connect( constantValueEdit, TQT_SIGNAL( returnPressed() ),
- this, TQT_SLOT( writePortProperties() ));
- connect( constantValueComboBox, TQT_SIGNAL( activated(int) ),
- this, TQT_SLOT( writePortProperties() ));
- connect( portCombo, TQT_SIGNAL( activated(int) ),
- this, TQT_SLOT( comboPortSelected(int) ));
- connect( connectButton, TQT_SIGNAL( clicked() ),
- this, TQT_SLOT( connectButtonClicked() ));
+ connect( kapp, TQ_SIGNAL( tdedisplayFontChanged() ),
+ this, TQ_SLOT( setTitleFont() ));
+ connect( kapp, TQ_SIGNAL( tdedisplayPaletteChanged() ),
+ this, TQ_SLOT( setTitleColors() ));
+ connect( portValueGroup, TQ_SIGNAL( clicked(int) ),
+ this, TQ_SLOT( pvModeChanged(int) ));
+ connect( constantValueEdit, TQ_SIGNAL( returnPressed() ),
+ this, TQ_SLOT( writePortProperties() ));
+ connect( constantValueComboBox, TQ_SIGNAL( activated(int) ),
+ this, TQ_SLOT( writePortProperties() ));
+ connect( portCombo, TQ_SIGNAL( activated(int) ),
+ this, TQ_SLOT( comboPortSelected(int) ));
+ connect( connectButton, TQ_SIGNAL( clicked() ),
+ this, TQ_SLOT( connectButtonClicked() ));
constantValueComboBox->hide();
setEnabled( false );
@@ -341,7 +341,7 @@ bool PropertyPanel::eventFilter( TQObject *o, TQEvent *e )
{
if( port && !constantValueEdit->hasFocus() && (e->type() == TQEvent::KeyPress) ) {
// kdDebug() << TQString(" ..is KeyPress") << endl;
- TQString entered = TQT_TQKEYEVENT(e)->text();
+ TQString entered = static_cast<TQKeyEvent*>(e)->text();
bool goodString = entered.length() > 0;
// kdDebug() << TQString("pressed '%1'").arg(entered) << endl;
diff --git a/arts/builder/propertypanel.h b/arts/builder/propertypanel.h
index 9b74b275..af156fda 100644
--- a/arts/builder/propertypanel.h
+++ b/arts/builder/propertypanel.h
@@ -32,7 +32,7 @@ class ModulePort;
class PropertyPanel: public PropertyPanelBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/arts/builder/propertypanelbase.ui b/arts/builder/propertypanelbase.ui
index 0ff20382..875f6813 100644
--- a/arts/builder/propertypanelbase.ui
+++ b/arts/builder/propertypanelbase.ui
@@ -355,8 +355,8 @@
<slot>setEnabled(bool)</slot>
</connection>
</connections>
-<Q_SLOTS>
+<slots>
<slot access="protected">setTitleFont()</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/arts/builder/qttableview.cpp b/arts/builder/qttableview.cpp
index c8f8d9d3..36236fe3 100644
--- a/arts/builder/qttableview.cpp
+++ b/arts/builder/qttableview.cpp
@@ -1391,7 +1391,7 @@ void QtTableView::paintEvent( TQPaintEvent *e )
TQRect r = viewR;
r.setLeft( xPos );
r.setBottom( yPos<maxY?yPos:maxY );
- if ( inherits( TQMULTILINEEDIT_OBJECT_NAME_STRING ) )
+ if ( inherits( "TQMultiLineEdit" ) )
paint.fillRect( r.intersect( updateR ), g.base() );
else
paint.eraseRect( r.intersect( updateR ) );
@@ -1399,7 +1399,7 @@ void QtTableView::paintEvent( TQPaintEvent *e )
if ( yPos <= maxY ) {
TQRect r = viewR;
r.setTop( yPos );
- if ( inherits( TQMULTILINEEDIT_OBJECT_NAME_STRING ) )
+ if ( inherits( "TQMultiLineEdit" ) )
paint.fillRect( r.intersect( updateR ), g.base() );
else
paint.eraseRect( r.intersect( updateR ) );
@@ -1439,20 +1439,20 @@ TQScrollBar *QtTableView::verticalScrollBar() const
{
QtTableView *that = (QtTableView*)this; // semantic const
if ( !vScrollBar ) {
- TQScrollBar *sb = new TQScrollBar( Qt::Vertical, that );
+ TQScrollBar *sb = new TQScrollBar( TQt::Vertical, that );
#ifndef TQT_NO_CURSOR
sb->setCursor( arrowCursor );
#endif
sb->resize( sb->sizeHint() ); // height is irrelevant
TQ_CHECK_PTR(sb);
sb->setTracking( FALSE );
- sb->setFocusPolicy( TQ_NoFocus );
- connect( sb, TQT_SIGNAL(valueChanged(int)),
- TQT_SLOT(verSbValue(int)));
- connect( sb, TQT_SIGNAL(sliderMoved(int)),
- TQT_SLOT(verSbSliding(int)));
- connect( sb, TQT_SIGNAL(sliderReleased()),
- TQT_SLOT(verSbSlidingDone()));
+ sb->setFocusPolicy( TQWidget::NoFocus );
+ connect( sb, TQ_SIGNAL(valueChanged(int)),
+ TQ_SLOT(verSbValue(int)));
+ connect( sb, TQ_SIGNAL(sliderMoved(int)),
+ TQ_SLOT(verSbSliding(int)));
+ connect( sb, TQ_SIGNAL(sliderReleased()),
+ TQ_SLOT(verSbSlidingDone()));
sb->hide();
that->vScrollBar = sb;
return sb;
@@ -1470,20 +1470,20 @@ TQScrollBar *QtTableView::horizontalScrollBar() const
{
QtTableView *that = (QtTableView*)this; // semantic const
if ( !hScrollBar ) {
- TQScrollBar *sb = new TQScrollBar( Qt::Horizontal, that );
+ TQScrollBar *sb = new TQScrollBar( TQt::Horizontal, that );
#ifndef TQT_NO_CURSOR
sb->setCursor( arrowCursor );
#endif
sb->resize( sb->sizeHint() ); // width is irrelevant
- sb->setFocusPolicy( TQ_NoFocus );
+ sb->setFocusPolicy( TQWidget::NoFocus );
TQ_CHECK_PTR(sb);
sb->setTracking( FALSE );
- connect( sb, TQT_SIGNAL(valueChanged(int)),
- TQT_SLOT(horSbValue(int)));
- connect( sb, TQT_SIGNAL(sliderMoved(int)),
- TQT_SLOT(horSbSliding(int)));
- connect( sb, TQT_SIGNAL(sliderReleased()),
- TQT_SLOT(horSbSlidingDone()));
+ connect( sb, TQ_SIGNAL(valueChanged(int)),
+ TQ_SLOT(horSbValue(int)));
+ connect( sb, TQ_SIGNAL(sliderMoved(int)),
+ TQ_SLOT(horSbSliding(int)));
+ connect( sb, TQ_SIGNAL(sliderReleased()),
+ TQ_SLOT(horSbSlidingDone()));
sb->hide();
that->hScrollBar = sb;
return sb;
diff --git a/arts/builder/qttableview.h b/arts/builder/qttableview.h
index 8a8cbe3d..9a944432 100644
--- a/arts/builder/qttableview.h
+++ b/arts/builder/qttableview.h
@@ -25,7 +25,7 @@ class TQCornerSquare;
class QtTableView : public TQFrame
{
- Q_OBJECT
+ TQ_OBJECT
public:
virtual void setBackgroundColor( const TQColor & );
diff --git a/arts/builder/retrievedlg.cpp b/arts/builder/retrievedlg.cpp
index c95d40ad..9f6e4107 100644
--- a/arts/builder/retrievedlg.cpp
+++ b/arts/builder/retrievedlg.cpp
@@ -104,14 +104,14 @@ RetrieveDlg::RetrieveDlg(TQWidget *parent) :TQDialog(parent,"X", TRUE)
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
+ bbox->addButton(KStdGuiItem::help(), this, TQ_SLOT( help() ));
bbox->addStretch(1);
TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
- connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
+ connect( cancelbutton, TQ_SIGNAL( clicked() ), TQ_SLOT(reject() ) );
TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
- connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
+ connect( okbutton, TQ_SIGNAL( clicked() ), TQ_SLOT(accept() ) );
bbox->layout();
diff --git a/arts/builder/retrievedlg.h b/arts/builder/retrievedlg.h
index 485298f0..065efe93 100644
--- a/arts/builder/retrievedlg.h
+++ b/arts/builder/retrievedlg.h
@@ -34,7 +34,7 @@
#include <string>
class RetrieveDlg :public TQDialog {
- Q_OBJECT
+ TQ_OBJECT
TQListBox *listbox;
public:
diff --git a/arts/examples/README b/arts/examples/README
index 425da5c0..2132bfc3 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 Q_SIGNALS.
+control the mixing of the two signals.
example_pscale.arts
diff --git a/arts/gui/kde/dbtest.cpp b/arts/gui/kde/dbtest.cpp
index e1933b17..57a03730 100644
--- a/arts/gui/kde/dbtest.cpp
+++ b/arts/gui/kde/dbtest.cpp
@@ -12,7 +12,7 @@
dBTestWidget::dBTestWidget( TQWidget* p, const char* n ) : TQWidget( p,n ), dB2VolCalc( -24,6 ) {
kdDebug() << k_funcinfo << endl;
- ( void* ) KStdAction::quit( this, TQT_SLOT( close() ), new TDEActionCollection( this ) );
+ ( void* ) KStdAction::quit( this, TQ_SLOT( close() ), new TDEActionCollection( this ) );
for ( float i=0; i<=1; i+=0.25 )
kdDebug() << i << " : " << amptodb( i ) << "dB" <<endl;
diff --git a/arts/gui/kde/dbtest.h b/arts/gui/kde/dbtest.h
index b78facd9..041cdff2 100644
--- a/arts/gui/kde/dbtest.h
+++ b/arts/gui/kde/dbtest.h
@@ -7,7 +7,7 @@
#include "dbvolcalc.h"
class dBTestWidget : public TQWidget, public dB2VolCalc {
- Q_OBJECT
+ TQ_OBJECT
public:
dBTestWidget( TQWidget*, const char* =0 );
diff --git a/arts/gui/kde/kbutton_impl.cpp b/arts/gui/kde/kbutton_impl.cpp
index 752761b2..dfe4678f 100644
--- a/arts/gui/kde/kbutton_impl.cpp
+++ b/arts/gui/kde/kbutton_impl.cpp
@@ -33,10 +33,10 @@ KButtonMapper::KButtonMapper( KButton_impl *_impl, TQPushButton *but )
, impl( _impl )
, button( but )
{
- connect( but, TQT_SIGNAL( pressed() ), this, TQT_SLOT( pressed() ) );
- connect( but, TQT_SIGNAL( released() ), this, TQT_SLOT( released() ) );
- connect( but, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( toggled( bool ) ) );
- connect( but, TQT_SIGNAL( clicked() ), this, TQT_SLOT( clicked() ) );
+ connect( but, TQ_SIGNAL( pressed() ), this, TQ_SLOT( pressed() ) );
+ connect( but, TQ_SIGNAL( released() ), this, TQ_SLOT( released() ) );
+ connect( but, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( toggled( bool ) ) );
+ connect( but, TQ_SIGNAL( clicked() ), this, TQ_SLOT( clicked() ) );
}
void KButtonMapper::pressed()
diff --git a/arts/gui/kde/kbutton_impl.h b/arts/gui/kde/kbutton_impl.h
index 17bad4d2..22c4cf81 100644
--- a/arts/gui/kde/kbutton_impl.h
+++ b/arts/gui/kde/kbutton_impl.h
@@ -31,7 +31,7 @@
namespace Arts {
class KButton_impl;
class KButtonMapper : public TQObject {
- Q_OBJECT
+ TQ_OBJECT
KButton_impl *impl;
TQPushButton * button;
diff --git a/arts/gui/kde/kcombobox_impl.cpp b/arts/gui/kde/kcombobox_impl.cpp
index 1bbc36c7..fced3445 100644
--- a/arts/gui/kde/kcombobox_impl.cpp
+++ b/arts/gui/kde/kcombobox_impl.cpp
@@ -34,7 +34,7 @@ ComboBoxIntMapper::ComboBoxIntMapper(KComboBox_impl *impl, KComboBox *co)
: TQObject( co, "map TQt signal to aRts" )
,impl(impl)
{
- connect(co, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(activated(const TQString &)));
+ connect(co, TQ_SIGNAL(activated(const TQString &)), this, TQ_SLOT(activated(const TQString &)));
}
void ComboBoxIntMapper::activated(const TQString & newValue)
diff --git a/arts/gui/kde/kcombobox_impl.h b/arts/gui/kde/kcombobox_impl.h
index 71f76123..e1b533ad 100644
--- a/arts/gui/kde/kcombobox_impl.h
+++ b/arts/gui/kde/kcombobox_impl.h
@@ -35,7 +35,7 @@ namespace Arts {
class KComboBox_impl;
class ComboBoxIntMapper :public TQObject {
- Q_OBJECT
+ TQ_OBJECT
KComboBox_impl *impl;
public:
diff --git a/arts/gui/kde/kfader.cpp b/arts/gui/kde/kfader.cpp
index e5179f9f..499d509c 100644
--- a/arts/gui/kde/kfader.cpp
+++ b/arts/gui/kde/kfader.cpp
@@ -6,13 +6,13 @@ void KFader::init()
}
KFader::KFader( TQWidget * parent, const char * name )
- : TQSlider( Qt::Vertical, parent, name )
+ : TQSlider( TQt::Vertical, parent, 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 )
+ : TQSlider( minValue, maxValue, pageStep, value, TQt::Vertical, parent, name )
{
init();
}
diff --git a/arts/gui/kde/kfader.h b/arts/gui/kde/kfader.h
index 886f289a..84e4d371 100644
--- a/arts/gui/kde/kfader.h
+++ b/arts/gui/kde/kfader.h
@@ -27,7 +27,7 @@
class KFader : public TQSlider
{
- Q_OBJECT
+ TQ_OBJECT
protected:
void init();
diff --git a/arts/gui/kde/kfader_impl.cpp b/arts/gui/kde/kfader_impl.cpp
index cda42179..b667056d 100644
--- a/arts/gui/kde/kfader_impl.cpp
+++ b/arts/gui/kde/kfader_impl.cpp
@@ -34,7 +34,7 @@ using namespace std;
FaderIntMapper::FaderIntMapper(KFader_impl *impl, KFader *kp) :impl(impl)
{
- connect(kp, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(valueChanged(int)));
+ connect(kp, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(valueChanged(int)));
}
void FaderIntMapper::valueChanged(int pos)
diff --git a/arts/gui/kde/kfader_impl.h b/arts/gui/kde/kfader_impl.h
index 7d227e14..5dd03f2a 100644
--- a/arts/gui/kde/kfader_impl.h
+++ b/arts/gui/kde/kfader_impl.h
@@ -36,7 +36,7 @@ namespace Arts {
class KFader_impl;
class FaderIntMapper :public TQObject {
- Q_OBJECT
+ TQ_OBJECT
KFader_impl *impl;
public:
diff --git a/arts/gui/kde/kgraph.cpp b/arts/gui/kde/kgraph.cpp
index 2040793e..70f173ec 100644
--- a/arts/gui/kde/kgraph.cpp
+++ b/arts/gui/kde/kgraph.cpp
@@ -111,7 +111,7 @@ void KGraph::paintEvent( TQPaintEvent *e )
void KGraph::mousePressEvent(TQMouseEvent *e)
{
- if(e->button() == Qt::LeftButton || e->button() == Qt::RightButton)
+ if(e->button() == TQt::LeftButton || e->button() == TQt::RightButton)
{
std::list<KGraphLine_impl *>::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() == Qt::RightButton)
+ if(e->button() == TQt::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() == Qt::LeftButton)
+ else if(e->button() == TQt::LeftButton)
{
// try to insert a point
std::list<KGraphLine_impl *>::iterator li;
diff --git a/arts/gui/kde/kgraph.h b/arts/gui/kde/kgraph.h
index 2bb64398..6da8247e 100644
--- a/arts/gui/kde/kgraph.h
+++ b/arts/gui/kde/kgraph.h
@@ -33,7 +33,7 @@ namespace Arts {
class KGraphLine_impl;
class KGraph : public TQWidget
{
-Q_OBJECT
+TQ_OBJECT
protected:
diff --git a/arts/gui/kde/klabel_impl.h b/arts/gui/kde/klabel_impl.h
index 3139431d..b27a4365 100644
--- a/arts/gui/kde/klabel_impl.h
+++ b/arts/gui/kde/klabel_impl.h
@@ -64,7 +64,7 @@ public:
} // namespace
class RotateLabel : public TQFrame {
- Q_OBJECT
+ TQ_OBJECT
public:
RotateLabel( TQWidget*, const char* =0 );
diff --git a/arts/gui/kde/klayoutbox_impl.cpp b/arts/gui/kde/klayoutbox_impl.cpp
index bbd38be0..84a4e202 100644
--- a/arts/gui/kde/klayoutbox_impl.cpp
+++ b/arts/gui/kde/klayoutbox_impl.cpp
@@ -85,7 +85,7 @@ void KLayoutBox_Separator::paintEvent( TQPaintEvent* ) {
TQPainter p( this );
TQStyle::SFlags flags = TQStyle::Style_Default;
if ( width() < height() ) flags |= TQStyle::Style_Horizontal;
- style().tqdrawPrimitive( TQStyle::PE_Splitter, &p, rect(), colorGroup(), flags );
+ style().drawPrimitive( TQStyle::PE_Splitter, &p, rect(), colorGroup(), flags );
}
TQSize KLayoutBox_Separator::minimumSizeHint() const {
diff --git a/arts/gui/kde/klayoutbox_impl.h b/arts/gui/kde/klayoutbox_impl.h
index 287c7583..976e89a2 100644
--- a/arts/gui/kde/klayoutbox_impl.h
+++ b/arts/gui/kde/klayoutbox_impl.h
@@ -79,7 +79,7 @@ public:
} // namespace
class KDE_EXPORT KLayoutBox_Separator : public TQWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
KLayoutBox_Separator( TQWidget*, const char* =0 );
@@ -89,7 +89,7 @@ public:
};
class KLayoutBox_Line : public TQWidget {
- Q_OBJECT
+ TQ_OBJECT
private:
int _width, _space;
diff --git a/arts/gui/kde/klevelmeter_firebars.h b/arts/gui/kde/klevelmeter_firebars.h
index bbabef2f..04ecc3dc 100644
--- a/arts/gui/kde/klevelmeter_firebars.h
+++ b/arts/gui/kde/klevelmeter_firebars.h
@@ -27,7 +27,7 @@ class TQPixmap;
class KLevelMeter_FireBars;
class KLevelMeter_FireBars_private : public TQWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
KLevelMeter_FireBars_private( KLevelMeter_FireBars*, const char* );
@@ -40,7 +40,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_linebars.cpp b/arts/gui/kde/klevelmeter_linebars.cpp
index e3a15ca2..1f3cd450 100644
--- a/arts/gui/kde/klevelmeter_linebars.cpp
+++ b/arts/gui/kde/klevelmeter_linebars.cpp
@@ -94,7 +94,7 @@ void KLevelMeter_LineBars::paintEvent( TQPaintEvent* ) {
p.drawLine( 0, top, w, top );
}
- bitBlt( TQT_TQPAINTDEVICE(this), 0, 0, TQT_TQPAINTDEVICE(&pm), 0, 0, pm.width(), pm.height(), CopyROP, true );
+ bitBlt( this, 0, 0, &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 89caeb93..3a7def62 100644
--- a/arts/gui/kde/klevelmeter_linebars.h
+++ b/arts/gui/kde/klevelmeter_linebars.h
@@ -24,7 +24,7 @@
#include "klevelmeter_template.h"
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.h b/arts/gui/kde/klevelmeter_normalbars.h
index 7697d502..e0f1eebf 100644
--- a/arts/gui/kde/klevelmeter_normalbars.h
+++ b/arts/gui/kde/klevelmeter_normalbars.h
@@ -29,7 +29,7 @@ class Bar;
class TQBoxLayout;
class KLevelMeter_NormalBars : public KLevelMeter_Template {
- Q_OBJECT
+ TQ_OBJECT
public:
KLevelMeter_NormalBars( Arts::KLevelMeter_impl*, TQWidget* =0, long substyle=0, long count=25, Arts::Direction =Arts::BottomToTop, float _dbmin=-24, float _dbmax=6 );
@@ -48,7 +48,7 @@ private:
};
class Bar : public TQWidget {
- Q_OBJECT
+ TQ_OBJECT
private:
float _min, _max;
diff --git a/arts/gui/kde/klevelmeter_private.h b/arts/gui/kde/klevelmeter_private.h
index 531bbdfc..b7662cd7 100644
--- a/arts/gui/kde/klevelmeter_private.h
+++ b/arts/gui/kde/klevelmeter_private.h
@@ -30,7 +30,7 @@ class TQBoxLayout;
class KArtsWidget;
class KLevelMeter_Private : public TQObject {
- Q_OBJECT
+ TQ_OBJECT
public:
Arts::KLevelMeter_impl* _impl;
diff --git a/arts/gui/kde/klevelmeter_small.h b/arts/gui/kde/klevelmeter_small.h
index ba50a669..2fa67e68 100644
--- a/arts/gui/kde/klevelmeter_small.h
+++ b/arts/gui/kde/klevelmeter_small.h
@@ -24,7 +24,7 @@
#include "klevelmeter_template.h"
class KLevelMeter_Small : public KLevelMeter_Template {
- Q_OBJECT
+ TQ_OBJECT
public:
KLevelMeter_Small( 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_template.h b/arts/gui/kde/klevelmeter_template.h
index abf8c4d2..655e4f75 100644
--- a/arts/gui/kde/klevelmeter_template.h
+++ b/arts/gui/kde/klevelmeter_template.h
@@ -30,7 +30,7 @@
#include "klevelmeter_impl.h"
class KLevelMeter_Template : public TQWidget, public dB2VolCalc {
- Q_OBJECT
+ TQ_OBJECT
public:
Arts::KLevelMeter_impl* _impl;
diff --git a/arts/gui/kde/klineedit_impl.cpp b/arts/gui/kde/klineedit_impl.cpp
index 6c3c907b..3054270e 100644
--- a/arts/gui/kde/klineedit_impl.cpp
+++ b/arts/gui/kde/klineedit_impl.cpp
@@ -29,8 +29,8 @@ using namespace std;
KLineEditStringMapper::KLineEditStringMapper(KLineEdit_impl *impl, KLineEdit *ke)
:impl(impl)
{
- connect(ke, TQT_SIGNAL(textChanged(const TQString&)),
- this, TQT_SLOT(textChanged(const TQString&)));
+ connect(ke, TQ_SIGNAL(textChanged(const TQString&)),
+ this, TQ_SLOT(textChanged(const TQString&)));
}
void KLineEditStringMapper::textChanged(const TQString& newText)
diff --git a/arts/gui/kde/klineedit_impl.h b/arts/gui/kde/klineedit_impl.h
index bc96569c..7ce88794 100644
--- a/arts/gui/kde/klineedit_impl.h
+++ b/arts/gui/kde/klineedit_impl.h
@@ -48,7 +48,7 @@ public:
};
class KLineEditStringMapper :public TQObject {
- Q_OBJECT
+ TQ_OBJECT
KLineEdit_impl *impl;
public:
diff --git a/arts/gui/kde/kpoti.cpp b/arts/gui/kde/kpoti.cpp
index 538eb4ac..03bd905d 100644
--- a/arts/gui/kde/kpoti.cpp
+++ b/arts/gui/kde/kpoti.cpp
@@ -223,7 +223,7 @@ void KPoti::init(int value)
m_bLabel = true;
tickInt = 0;
- setFocusPolicy( TQ_TabFocus );
+ setFocusPolicy( TQWidget::TabFocus );
initTicks();
}
@@ -458,7 +458,7 @@ void KPoti::drawContents( TQPainter * p )
dbp.drawPixmap( d->buttonRect, d->bgPixmap( colorGroup() ) );
if( hasFocus() )
- style().tqdrawPrimitive( TQStyle::PE_FocusRect, &dbp, d->buttonRect, colorGroup() );
+ style().drawPrimitive( TQStyle::PE_FocusRect, &dbp, d->buttonRect, colorGroup() );
paintPoti( &dbp );
dbp.end();
@@ -474,13 +474,13 @@ void KPoti::mousePressEvent( TQMouseEvent *e )
{
resetState();
- if ( e->button() == Qt::MidButton ) {
+ if ( e->button() == TQt::MidButton ) {
double pos = atan2( double(e->pos().x()-d->center.x()),
double(- e->pos().y() + d->center.y()) );
movePoti( pos );
return;
}
- if ( e->button() != Qt::LeftButton )
+ if ( e->button() != TQt::LeftButton )
return;
@@ -495,14 +495,14 @@ void KPoti::mousePressEvent( TQMouseEvent *e )
subtractPage();
if ( !timer )
timer = new TQTimer( this );
- connect( timer, TQT_SIGNAL(timeout()), TQT_SLOT(repeatTimeout()) );
+ connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(repeatTimeout()) );
timer->start( thresholdTime, TRUE );
} else {
state = TimingUp;
addPage();
if ( !timer )
timer = new TQTimer( this );
- connect( timer, TQT_SIGNAL(timeout()), TQT_SLOT(repeatTimeout()) );
+ connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(repeatTimeout()) );
timer->start( thresholdTime, TRUE );
}
}
@@ -513,13 +513,13 @@ void KPoti::mousePressEvent( TQMouseEvent *e )
void KPoti::mouseMoveEvent( TQMouseEvent *e )
{
- if ( (e->state() & Qt::MidButton) ) { // middle button wins
+ if ( (e->state() & TQt::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() & Qt::LeftButton) )
+ if ( !(e->state() & TQt::LeftButton) )
return; // left mouse button is up
if ( state != Dragging )
return;
@@ -535,7 +535,7 @@ void KPoti::mouseMoveEvent( TQMouseEvent *e )
void KPoti::mouseReleaseEvent( TQMouseEvent *e )
{
- if ( !(e->button() & Qt::LeftButton) )
+ if ( !(e->button() & TQt::LeftButton) )
return;
resetState();
}
@@ -695,9 +695,9 @@ void KPoti::repeatTimeout()
Q_ASSERT( timer );
timer->disconnect();
if ( state == TimingDown )
- connect( timer, TQT_SIGNAL(timeout()), TQT_SLOT(subtractStep()) );
+ connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(subtractStep()) );
else if ( state == TimingUp )
- connect( timer, TQT_SIGNAL(timeout()), TQT_SLOT(addStep()) );
+ connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(addStep()) );
timer->start( repeatTime, FALSE );
}
diff --git a/arts/gui/kde/kpoti.h b/arts/gui/kde/kpoti.h
index 25696399..ad7be8f1 100644
--- a/arts/gui/kde/kpoti.h
+++ b/arts/gui/kde/kpoti.h
@@ -30,7 +30,7 @@ struct TQPotiData;
class KPoti : public TQFrame, public TQRangeControl
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/arts/gui/kde/kpoti_impl.cpp b/arts/gui/kde/kpoti_impl.cpp
index b5d4f043..fbf442f0 100644
--- a/arts/gui/kde/kpoti_impl.cpp
+++ b/arts/gui/kde/kpoti_impl.cpp
@@ -35,7 +35,7 @@ PotiIntMapper::PotiIntMapper(KPoti_impl *impl, KPoti *kp)
: TQObject( kp )
, impl( impl )
{
- connect(kp, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(valueChanged(int)));
+ connect(kp, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(valueChanged(int)));
}
void PotiIntMapper::valueChanged(int pos)
diff --git a/arts/gui/kde/kpoti_impl.h b/arts/gui/kde/kpoti_impl.h
index 7e0ee083..e7d1d75b 100644
--- a/arts/gui/kde/kpoti_impl.h
+++ b/arts/gui/kde/kpoti_impl.h
@@ -35,7 +35,7 @@ namespace Arts {
class KPoti_impl;
class PotiIntMapper :public TQObject {
- Q_OBJECT
+ TQ_OBJECT
KPoti_impl *impl;
public:
diff --git a/arts/gui/kde/kspinbox_impl.cpp b/arts/gui/kde/kspinbox_impl.cpp
index e352033c..877c080f 100644
--- a/arts/gui/kde/kspinbox_impl.cpp
+++ b/arts/gui/kde/kspinbox_impl.cpp
@@ -32,7 +32,7 @@ using namespace std;
SpinBoxIntMapper::SpinBoxIntMapper(KSpinBox_impl *impl, TQSpinBox *sp)
:impl(impl)
{
- connect(sp, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(valueChanged(int)));
+ connect(sp, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(valueChanged(int)));
}
void SpinBoxIntMapper::valueChanged(int pos)
diff --git a/arts/gui/kde/kspinbox_impl.h b/arts/gui/kde/kspinbox_impl.h
index df99de21..1369393a 100644
--- a/arts/gui/kde/kspinbox_impl.h
+++ b/arts/gui/kde/kspinbox_impl.h
@@ -34,7 +34,7 @@ namespace Arts {
class KSpinBox_impl;
class SpinBoxIntMapper :public TQObject {
- Q_OBJECT
+ TQ_OBJECT
KSpinBox_impl *impl;
public:
diff --git a/arts/gui/kde/ktickmarks_impl.h b/arts/gui/kde/ktickmarks_impl.h
index 84478142..498ad9f4 100644
--- a/arts/gui/kde/ktickmarks_impl.h
+++ b/arts/gui/kde/ktickmarks_impl.h
@@ -60,7 +60,7 @@ private:
};
class KTickmarks_Widget : public TQFrame, public dB2VolCalc {
- Q_OBJECT
+ TQ_OBJECT
private:
KTickmarks_impl* _impl;
diff --git a/arts/gui/kde/kvolumefader_impl.cpp b/arts/gui/kde/kvolumefader_impl.cpp
index 598485f0..4236e0cd 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 TDEPopupMenu( this ) )
- , _aExactValue( new TDEAction( i18n( "Set Exact Value..." ), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT( exactValue() ), TQT_TQOBJECT(this) ) )
+ , _aExactValue( new TDEAction( i18n( "Set Exact Value..." ), TDEShortcut(), this, TQ_SLOT( exactValue() ), this ) )
{
//kdDebug() << k_funcinfo << endl;
setMinimumSize( 10,10 );
@@ -184,8 +184,8 @@ void KVolumeFader_Widget::mousePressEvent( TQMouseEvent* ){
void KVolumeFader_Widget::mouseReleaseEvent( TQMouseEvent* qme ){
bool setValue = false;
- if ( TDEGlobalSettings::mouseSettings().handed == 0 && qme->button() == Qt::LeftButton ) setValue=true;
- if ( TDEGlobalSettings::mouseSettings().handed == 1 && qme->button() == Qt::RightButton ) setValue=true;
+ if ( TDEGlobalSettings::mouseSettings().handed == 0 && qme->button() == TQt::LeftButton ) setValue=true;
+ if ( TDEGlobalSettings::mouseSettings().handed == 1 && qme->button() == TQt::RightButton ) setValue=true;
if ( setValue )
{
switch ( _dir ) {
diff --git a/arts/gui/kde/kvolumefader_impl.h b/arts/gui/kde/kvolumefader_impl.h
index e734bc3c..0604497f 100644
--- a/arts/gui/kde/kvolumefader_impl.h
+++ b/arts/gui/kde/kvolumefader_impl.h
@@ -68,7 +68,7 @@ class TDEPopupMenu;
class TDEAction;
class KVolumeFader_Widget : public TQFrame {
- Q_OBJECT
+ TQ_OBJECT
private:
KVolumeFader_impl* _impl;
diff --git a/arts/gui/kde/kwidget_impl.cpp b/arts/gui/kde/kwidget_impl.cpp
index 53ccb8ad..e44a818f 100644
--- a/arts/gui/kde/kwidget_impl.cpp
+++ b/arts/gui/kde/kwidget_impl.cpp
@@ -39,8 +39,8 @@ KWidget_impl::KWidget_impl( TQWidget * widget )
* the panel got deleted, our widget will be gone, too)
*/
_guard = new KWidgetGuard(this);
- TQObject::connect(_qwidget, TQT_SIGNAL(destroyed()),
- _guard, TQT_SLOT(widgetDestroyed()));
+ TQObject::connect(_qwidget, TQ_SIGNAL(destroyed()),
+ _guard, TQ_SLOT(widgetDestroyed()));
}
KWidget_impl::~KWidget_impl()
diff --git a/arts/gui/kde/kwidget_impl.h b/arts/gui/kde/kwidget_impl.h
index 1f75ae01..b0c74fa0 100644
--- a/arts/gui/kde/kwidget_impl.h
+++ b/arts/gui/kde/kwidget_impl.h
@@ -69,7 +69,7 @@ public:
};
class KWidgetGuard : public TQObject {
- Q_OBJECT
+ TQ_OBJECT
protected:
KWidget_impl *impl;
diff --git a/arts/gui/kde/tdepopupbox_impl.cpp b/arts/gui/kde/tdepopupbox_impl.cpp
index 9263fc0d..150cccb7 100644
--- a/arts/gui/kde/tdepopupbox_impl.cpp
+++ b/arts/gui/kde/tdepopupbox_impl.cpp
@@ -64,11 +64,11 @@ TDEPopupBox_widget::TDEPopupBox_widget( TQWidget *parent, const char* name ) : T
_titlebarlayout->setAutoAdd( true );
_showbutton = new ShowButton( _titlebar );
- connect( _showbutton, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( hide( bool ) ) );
+ connect( _showbutton, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( hide( bool ) ) );
_drag = new HandleDrag( _titlebar );
- connect( _drag, TQT_SIGNAL( clicked() ), _showbutton, TQT_SLOT( toggle() ) );
+ connect( _drag, TQ_SIGNAL( clicked() ), _showbutton, TQ_SLOT( toggle() ) );
_ownbutton = new OwnButton( _titlebar );
- connect( _ownbutton, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( own( bool ) ) );
+ connect( _ownbutton, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( own( bool ) ) );
_artswidget = new OwnWidget( _showbutton, this );
diff --git a/arts/gui/kde/tdepopupbox_private.h b/arts/gui/kde/tdepopupbox_private.h
index 1cd94aab..21fc3034 100644
--- a/arts/gui/kde/tdepopupbox_private.h
+++ b/arts/gui/kde/tdepopupbox_private.h
@@ -34,7 +34,7 @@ class TQBoxLayout;
class TDEPopupBox_widget : public TQFrame
{
- Q_OBJECT
+ TQ_OBJECT
public:
TDEPopupBox_widget( TQWidget* =0, const char* =0);
@@ -65,7 +65,7 @@ private:
// See tdepopupbox_impl.h - The eventmapper isn't needed at present, but perhaps in the future...
/*class TDEPopupBoxEventMapper : public TQObject {
- Q_OBJECT
+ TQ_OBJECT
public:
TDEPopupBoxEventMapper( TDEPopupBox_widget *widget, Arts::TDEPopupBox_impl *impl )
@@ -80,7 +80,7 @@ private:
#include <tqstyle.h>
class HandleDrag : public TQWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
HandleDrag( TQWidget *parent, const char* name=0 ) : TQWidget( parent,name ) {}
@@ -88,7 +88,7 @@ public:
TQPainter p( this );
TQStyle::SFlags flags = TQStyle::Style_Default;
if( width() < height() ) flags |= TQStyle::Style_Horizontal;
- style().tqdrawPrimitive( TQStyle::PE_DockWindowHandle, &p, rect(), colorGroup(), flags );
+ style().drawPrimitive( TQStyle::PE_DockWindowHandle, &p, rect(), colorGroup(), flags );
}
signals:
void clicked();
@@ -110,7 +110,7 @@ static const char* const own_xpm[] = { "5 5 2 1", "# c black", ". c None", "#
#include <tqlayout.h>
class ShowButton : public TQPushButton {
- Q_OBJECT
+ TQ_OBJECT
private:
TQBoxLayout::Direction _dir;
@@ -118,7 +118,7 @@ private:
public:
ShowButton( TQWidget *parent, const char* name=0 ) : TQPushButton( parent,name ), _dir( TQBoxLayout::LeftToRight )
{
- connect( this, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( owntoggle( bool ) ) );
+ connect( this, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( owntoggle( bool ) ) );
setToggleButton( true );
_pmleft = TQPixmap( const_cast<const char**>( left_xpm ) );
_pmright = TQPixmap( const_cast<const char**>( right_xpm ) );
@@ -167,14 +167,14 @@ public:
};
class OwnButton : public TQPushButton {
- Q_OBJECT
+ TQ_OBJECT
private:
TQPixmap _pmown, _pminside;
public:
OwnButton( TQWidget *parent, const char* name=0 ) : TQPushButton( parent,name )
{
- connect( this, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( toggle( bool ) ) );
+ connect( this, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( toggle( bool ) ) );
setToggleButton( true );
_pmown = TQPixmap( const_cast<const char**>( own_xpm ) );
_pminside = TQPixmap( const_cast<const char**>( inside_xpm ) );
@@ -206,7 +206,7 @@ public:
class OwnWidget : public KArtsWidget
{
- Q_OBJECT
+ TQ_OBJECT
ShowButton *_b;
public:
diff --git a/arts/modules/README.environments b/arts/modules/README.environments
index c3b7b985..d8ca4dde 100644
--- a/arts/modules/README.environments
+++ b/arts/modules/README.environments
@@ -25,28 +25,28 @@ for composing a song, you might require
- several audio tracks
- a mixer
-While with artscontrol, the user can setup much of this himself manually, the
-problem is that this has to be done over and over again. That is, if he saves
-the song, the settings of his effects, instruments and the mixer will not be
-saved with it.
+While with artscontrol, the users can setup much of this themselves manually,
+the problem is that this has to be done over and over again. That is, if they
+save the song, the settings of their effects, instruments and the mixer will
+not be saved with it.
The main idea of the new interfaces in Arts::Environment is that the sequencer
can save the environment required to create a song along with the the song, so
-that the user will find himself surrounded by the same effects, instruments,...
-with the same settings again, once he loads the song again.
-
-So, conceptually, we can imagine the environment as a "room", where the user
-works in to create a song. He needs to install the things inside the room he
-needs. Initially, the room will be empty. Now, the user things: oh, I am going
-to need this nice 24 channel mixer. *plop* - it appears in the room. Now he
-thinks I need some sampler which can play my piano. *plop* - it appears in
-the room.
-
-Now he starts working, and adds the "items" he needs. Finally, if he stops
-working on the song, he can pack all what is in the environment in a little
-box, and whenever he starts working on the song again, he can start where he
-left off. He can even take the environment to a friend, and continue working
-on the song there.
+that the users will find themselves surrounded by the same effects,
+instruments,... with the same settings again, once they load the song again.
+
+So, conceptually, we can imagine the environment as a "room", where a user
+works in to create a song. They needs to install the things inside the room
+they need. Initially, the room will be empty. Now, the user thinks: oh, I am
+going to need this nice 24 channel mixer. *plop* - it appears in the room.
+Now they think: I need some sampler which can play my piano. *plop* - it
+appears in the room.
+
+Now they starts working, adding the "items" they need. Finally, if they stop
+working on the song, they can pack all what is in the environment in a little
+box, and whenever they starts working on the song again, they can start where
+they left off. They can even take the environment to a friend, and continue
+working on the song there.
Note that there might be other tasks (such as creating a film, playing an
mp3 with noatun,...) which will have similar requirements of saving the
diff --git a/arts/modules/effects/kstereovolumecontrolgui_impl.cpp b/arts/modules/effects/kstereovolumecontrolgui_impl.cpp
index cc5b42de..d7f8d30b 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* "<<w<<" )"<<endl;
- _mapper = new KStereoVolumeControlGui_EventMapper( this, TQT_TQOBJECT(_qframe) );
+ _mapper = new KStereoVolumeControlGui_EventMapper( this, _qframe );
this->addWidget( _label, -100 );
_label.bottom( Arts::East );
_label.text( "Volume" );
diff --git a/arts/modules/effects/kstereovolumecontrolgui_impl.h b/arts/modules/effects/kstereovolumecontrolgui_impl.h
index c9f76dd9..ff5d96dd 100644
--- a/arts/modules/effects/kstereovolumecontrolgui_impl.h
+++ b/arts/modules/effects/kstereovolumecontrolgui_impl.h
@@ -80,7 +80,7 @@ private:
#include <tqtimer.h>
class KStereoVolumeControlGui_EventMapper : public TQObject {
- Q_OBJECT
+ TQ_OBJECT
public:
TQTimer* _timer;
@@ -88,7 +88,7 @@ public:
public:
KStereoVolumeControlGui_EventMapper( Arts::KStereoVolumeControlGui_impl* impl, TQObject* parent, const char* name=0 ) : TQObject( parent,name ), _impl( impl ) {
_timer = new TQTimer( this );
- connect( _timer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotTimerSignal() ) );
+ connect( _timer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotTimerSignal() ) );
}
public slots:
void slotTimerSignal() { _impl->updateValues(); }
diff --git a/arts/tools/artsactions.cpp b/arts/tools/artsactions.cpp
index d5c5f071..226c0bad 100644
--- a/arts/tools/artsactions.cpp
+++ b/arts/tools/artsactions.cpp
@@ -62,52 +62,52 @@ ArtsActions::~ArtsActions() {
}
TDEAction* ArtsActions::actionScopeView() {
- if ( !_a_sv ) _a_sv = new TDEAction( i18n( "&FFT Scope" ), "artsfftscope", TDEShortcut(), this, TQT_SLOT( viewScopeView() ), _actioncollection, "artssupport_view_scopeview" );
+ if ( !_a_sv ) _a_sv = new TDEAction( i18n( "&FFT Scope" ), "artsfftscope", TDEShortcut(), this, TQ_SLOT( viewScopeView() ), _actioncollection, "artssupport_view_scopeview" );
return _a_sv;
}
TDEAction* ArtsActions::actionAudioManager() {
- if ( !_a_am ) _a_am = new TDEAction( i18n( "&Audio Manager" ), "artsaudiomanager", TDEShortcut(), this, TQT_SLOT( viewAudioManager() ), _actioncollection, "artssupport_view_audiomanager" );
+ if ( !_a_am ) _a_am = new TDEAction( i18n( "&Audio Manager" ), "artsaudiomanager", TDEShortcut(), this, TQ_SLOT( viewAudioManager() ), _actioncollection, "artssupport_view_audiomanager" );
return _a_am;
}
TDEAction* ArtsActions::actionArtsStatusView() {
- if ( !_a_asv ) _a_asv = new TDEAction( i18n( "aRts &Status" ), "artscontrol", TDEShortcut(), this, TQT_SLOT( viewArtsStatusView() ), _actioncollection, "artssupport_view_artsstatus" );
+ if ( !_a_asv ) _a_asv = new TDEAction( i18n( "aRts &Status" ), "artscontrol", TDEShortcut(), this, TQ_SLOT( viewArtsStatusView() ), _actioncollection, "artssupport_view_artsstatus" );
return _a_asv;
}
TDEAction* ArtsActions::actionMidiManagerView() {
- if ( !_a_mmv ) _a_mmv = new TDEAction( i18n( "&MIDI Manager" ), "artsmidimanager", TDEShortcut(), this, TQT_SLOT( viewMidiManagerView() ), _actioncollection, "artssupport_view_midimanager" );
+ if ( !_a_mmv ) _a_mmv = new TDEAction( i18n( "&MIDI Manager" ), "artsmidimanager", TDEShortcut(), this, TQ_SLOT( viewMidiManagerView() ), _actioncollection, "artssupport_view_midimanager" );
return _a_mmv;
}
TDEAction* ArtsActions::actionEnvironmentView() {
- if ( !_a_ev ) _a_ev = new TDEAction( i18n( "&Environment" ), "artsenvironment", TDEShortcut(), this, TQT_SLOT( viewEnvironmentView() ), _actioncollection, "artssupport_view_environment" );
+ if ( !_a_ev ) _a_ev = new TDEAction( i18n( "&Environment" ), "artsenvironment", TDEShortcut(), this, TQ_SLOT( viewEnvironmentView() ), _actioncollection, "artssupport_view_environment" );
return _a_ev;
}
TDEAction* ArtsActions::actionMediaTypesView() {
- if ( !_a_mtv ) _a_mtv = new TDEAction( i18n( "Available Media &Types" ), "artsmediatypes", TDEShortcut(), this, TQT_SLOT( viewMediaTypesView() ), _actioncollection, "artssupport_view_mediatypes" );
+ if ( !_a_mtv ) _a_mtv = new TDEAction( i18n( "Available Media &Types" ), "artsmediatypes", TDEShortcut(), this, TQ_SLOT( viewMediaTypesView() ), _actioncollection, "artssupport_view_mediatypes" );
return _a_mtv;
}
TDEAction* ArtsActions::actionStyleNormal() {
- if ( !_a_style_normal ) _a_style_normal = new TDEAction( i18n( "Style: NormalBars" ), "", TDEShortcut(), this, TQT_SLOT( _p_style_normal() ), _actioncollection, "artssupport_style_normal" );
+ if ( !_a_style_normal ) _a_style_normal = new TDEAction( i18n( "Style: NormalBars" ), "", TDEShortcut(), this, TQ_SLOT( _p_style_normal() ), _actioncollection, "artssupport_style_normal" );
return _a_style_normal;
}
TDEAction* ArtsActions::actionStyleFire() {
- if ( !_a_style_fire ) _a_style_fire = new TDEAction( i18n( "Style: FireBars" ), "", TDEShortcut(), this, TQT_SLOT( _p_style_fire() ), _actioncollection, "artssupport_style_fire" );
+ if ( !_a_style_fire ) _a_style_fire = new TDEAction( i18n( "Style: FireBars" ), "", TDEShortcut(), this, TQ_SLOT( _p_style_fire() ), _actioncollection, "artssupport_style_fire" );
return _a_style_fire;
}
TDEAction* ArtsActions::actionStyleLine() {
- if ( !_a_style_line ) _a_style_line = new TDEAction( i18n( "Style: LineBars" ), "", TDEShortcut(), this, TQT_SLOT( _p_style_line() ), _actioncollection, "artssupport_style_line" );
+ if ( !_a_style_line ) _a_style_line = new TDEAction( i18n( "Style: LineBars" ), "", TDEShortcut(), this, TQ_SLOT( _p_style_line() ), _actioncollection, "artssupport_style_line" );
return _a_style_line;
}
TDEAction* ArtsActions::actionStyleLED() {
- if ( !_a_style_led ) _a_style_led = new TDEAction( i18n( "Style: LEDs" ), "", TDEShortcut(), this, TQT_SLOT( _p_style_led() ), _actioncollection, "artssupport_style_led" );
+ if ( !_a_style_led ) _a_style_led = new TDEAction( i18n( "Style: LEDs" ), "", TDEShortcut(), this, TQ_SLOT( _p_style_led() ), _actioncollection, "artssupport_style_led" );
return _a_style_led;
}
TDEAction* ArtsActions::actionStyleAnalog() {
- if ( !_a_style_analog ) _a_style_analog = new TDEAction( i18n( "Style: Analog" ), "", TDEShortcut(), this, TQT_SLOT( _p_style_analog() ), _actioncollection, "artssupport_style_analog" );
+ if ( !_a_style_analog ) _a_style_analog = new TDEAction( i18n( "Style: Analog" ), "", TDEShortcut(), this, TQ_SLOT( _p_style_analog() ), _actioncollection, "artssupport_style_analog" );
return _a_style_analog;
}
TDEAction* ArtsActions::actionStyleSmall() {
- if ( !_a_style_small ) _a_style_small = new TDEAction( i18n( "Style: Small" ), "", TDEShortcut(), this, TQT_SLOT( _p_style_small() ), _actioncollection, "artssupport_style_small" );
+ if ( !_a_style_small ) _a_style_small = new TDEAction( i18n( "Style: Small" ), "", TDEShortcut(), this, TQ_SLOT( _p_style_small() ), _actioncollection, "artssupport_style_small" );
return _a_style_small;
}
TDEPopupMenu* ArtsActions::stylemenu() {
@@ -136,7 +136,7 @@ TDEAction* ArtsActions::actionLessBars( const TQObject* receiver, const char* sl
void ArtsActions::viewScopeView() {
if ( !_sv ) {
_sv = new FFTScopeView( _kartsserver->server() );
- connect( _sv, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewScopeView() ) );
+ connect( _sv, TQ_SIGNAL( closed() ), this, TQ_SLOT( viewScopeView() ) );
} else {
delete _sv;
_sv = 0;
@@ -145,7 +145,7 @@ void ArtsActions::viewScopeView() {
void ArtsActions::viewAudioManager() {
if ( !_am ) {
_am = new Gui_AUDIO_MANAGER();
- connect( _am, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewAudioManager() ) );
+ connect( _am, TQ_SIGNAL( closed() ), this, TQ_SLOT( viewAudioManager() ) );
} else {
delete _am;
_am = 0;
@@ -154,7 +154,7 @@ void ArtsActions::viewAudioManager() {
void ArtsActions::viewArtsStatusView() {
if ( !_asv ) {
_asv = new ArtsStatusView( _kartsserver->server() );
- connect( _asv, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewArtsStatusView() ) );
+ connect( _asv, TQ_SIGNAL( closed() ), this, TQ_SLOT( viewArtsStatusView() ) );
} else {
delete _asv;
_asv = 0;
@@ -163,7 +163,7 @@ void ArtsActions::viewArtsStatusView() {
void ArtsActions::viewMidiManagerView() {
if ( !_mmv ) {
_mmv = new MidiManagerView();
- connect( _mmv, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewMidiManagerView() ) );
+ connect( _mmv, TQ_SIGNAL( closed() ), this, TQ_SLOT( viewMidiManagerView() ) );
} else {
delete _mmv;
_mmv = 0;
@@ -172,7 +172,7 @@ void ArtsActions::viewMidiManagerView() {
void ArtsActions::viewEnvironmentView() {
if ( !_ev ) {
_ev = new EnvironmentView( defaultEnvironment() );
- connect( _ev, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewEnvironmentView() ) );
+ connect( _ev, TQ_SIGNAL( closed() ), this, TQ_SLOT( viewEnvironmentView() ) );
} else {
delete _ev;
_ev = 0;
@@ -181,7 +181,7 @@ void ArtsActions::viewEnvironmentView() {
void ArtsActions::viewMediaTypesView() {
if ( !_mtv ) {
_mtv = new MediaTypesView();
- connect( _mtv, TQT_SIGNAL( closed() ), this, TQT_SLOT( viewMediaTypesView() ) );
+ connect( _mtv, TQ_SIGNAL( closed() ), this, TQ_SLOT( viewMediaTypesView() ) );
} else {
delete _mtv;
_mtv = 0;
diff --git a/arts/tools/artsactions.h b/arts/tools/artsactions.h
index b3005aa6..5bba632d 100644
--- a/arts/tools/artsactions.h
+++ b/arts/tools/artsactions.h
@@ -36,7 +36,7 @@ class MediaTypesView;
class KDE_EXPORT ArtsActions : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
diff --git a/arts/tools/artscontrolapplet.cpp b/arts/tools/artscontrolapplet.cpp
index f31db7fe..bada9d2c 100644
--- a/arts/tools/artscontrolapplet.cpp
+++ b/arts/tools/artscontrolapplet.cpp
@@ -61,7 +61,7 @@ ArtsControlApplet::ArtsControlApplet(const TQString& configFile, Type type, int
p->layout->activate();
- TQTimer::singleShot( 100, this, TQT_SLOT( supdatelayout() ) );
+ TQTimer::singleShot( 100, this, TQ_SLOT( supdatelayout() ) );
kdDebug()<<"ArtsControlApplet::ArtsControlApplet() finished."<<endl;
}
@@ -107,7 +107,7 @@ void ArtsControlApplet::resizeEvent( TQResizeEvent * /*_Event*/ ) {
void ArtsControlApplet::mousePressEvent( TQMouseEvent* ev ) {
//kdDebug()<<"ArtsControlApplet::mousePressEvent( TQMouseEvent* "<<ev<<" )"<<endl;
- if ( Qt::RightButton == ev->button() /*|| Qt::LeftButton == ev->button()*/ )
+ if ( TQt::RightButton == ev->button() /*|| TQt::LeftButton == ev->button()*/ )
p->menu->exec( TQCursor::pos() );
}
@@ -139,7 +139,7 @@ kdDebug() << k_funcinfo << endl;
if ( !svinline ) {
svinline = new FFTScopeView( arts->server(), _parent );
svinline->setMargin( 2 ); svinline->setLineWidth( 2 ); svinline->setFrameStyle( TQFrame::Panel|TQFrame::Sunken );
- connect( svinline, TQT_SIGNAL( closed() ), this, TQT_SLOT( SVinline() ) );
+ connect( svinline, TQ_SIGNAL( closed() ), this, TQ_SLOT( SVinline() ) );
layout->addWidget( svinline );
} else {
delete svinline;
diff --git a/arts/tools/artscontrolapplet.h b/arts/tools/artscontrolapplet.h
index 515e4fb4..3e894870 100644
--- a/arts/tools/artscontrolapplet.h
+++ b/arts/tools/artscontrolapplet.h
@@ -30,7 +30,7 @@ class ArtsControlAppletPrivate;
class ArtsControlApplet : public KPanelApplet
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
diff --git a/arts/tools/artscontrolapplet_private.h b/arts/tools/artscontrolapplet_private.h
index ddf72023..7d14f458 100644
--- a/arts/tools/artscontrolapplet_private.h
+++ b/arts/tools/artscontrolapplet_private.h
@@ -46,7 +46,7 @@
class VolumeSlider;
class KDE_EXPORT ArtsControlAppletPrivate : public TQObject {
- Q_OBJECT
+ TQ_OBJECT
private:
ArtsControlApplet *_parent;
@@ -83,7 +83,7 @@ public:
menu = new TDEPopupMenu( 0 );
_showSV = _artsactions->actionScopeView();
_showSV->plug( menu );
- _showSVinline = new TDEAction( i18n( "Toggle &Inline FFT Scope" ), "artscontrol", TDEShortcut(), this, TQT_SLOT( SVinline() ), this );
+ _showSVinline = new TDEAction( i18n( "Toggle &Inline FFT Scope" ), "artscontrol", TDEShortcut(), this, TQ_SLOT( SVinline() ), this );
_showSVinline->plug( menu );
_showAM = _artsactions->actionAudioManager();
_showAM->plug( menu );
@@ -97,12 +97,12 @@ public:
_showMediaTypes->plug( menu );
menu->insertSeparator();
menu->insertItem( i18n( "VU-Style" ), _artsactions->stylemenu() );
- connect( _artsactions, TQT_SIGNAL( styleNormal() ), this, TQT_SLOT( styleNormalBars() ) );
- connect( _artsactions, TQT_SIGNAL( styleFire() ), this, TQT_SLOT( styleFireBars() ) );
- connect( _artsactions, TQT_SIGNAL( styleLine() ), this, TQT_SLOT( styleLineBars() ) );
- connect( _artsactions, TQT_SIGNAL( styleLED() ), this, TQT_SLOT( styleLEDs() ) );
- connect( _artsactions, TQT_SIGNAL( styleAnalog() ), this, TQT_SLOT( styleAnalog() ) );
- connect( _artsactions, TQT_SIGNAL( styleSmall() ), this, TQT_SLOT( styleSmall() ) );
+ connect( _artsactions, TQ_SIGNAL( styleNormal() ), this, TQ_SLOT( styleNormalBars() ) );
+ connect( _artsactions, TQ_SIGNAL( styleFire() ), this, TQ_SLOT( styleFireBars() ) );
+ connect( _artsactions, TQ_SIGNAL( styleLine() ), this, TQ_SLOT( styleLineBars() ) );
+ connect( _artsactions, TQ_SIGNAL( styleLED() ), this, TQ_SLOT( styleLEDs() ) );
+ connect( _artsactions, TQ_SIGNAL( styleAnalog() ), this, TQ_SLOT( styleAnalog() ) );
+ connect( _artsactions, TQ_SIGNAL( styleSmall() ), this, TQ_SLOT( styleSmall() ) );
}
~ArtsControlAppletPrivate() {
if ( svinline ) SVinline();
diff --git a/arts/tools/audiomanager.cpp b/arts/tools/audiomanager.cpp
index e8858954..10f901ee 100644
--- a/arts/tools/audiomanager.cpp
+++ b/arts/tools/audiomanager.cpp
@@ -55,7 +55,7 @@ Gui_AUDIO_MANAGER::Gui_AUDIO_MANAGER( TQWidget* parent, const char* name ) : Tem
TQTimer *updatetimer = new TQTimer(this);
updatetimer->start(500);
- TQObject::connect(updatetimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(tick()));
+ TQObject::connect(updatetimer,TQ_SIGNAL(timeout()),this,TQ_SLOT(tick()));
}
Gui_AUDIO_MANAGER::~Gui_AUDIO_MANAGER()
@@ -103,8 +103,8 @@ void Gui_AUDIO_MANAGER::setParent(TQWidget *parent, TQBoxLayout * /*layout*/)
listview->setMinimumSize(300,100);
- TQObject::connect(listview,TQT_SIGNAL(executed(TQListViewItem *)),proxy,
- TQT_SLOT(edit(TQListViewItem *)));
+ TQObject::connect(listview,TQ_SIGNAL(executed(TQListViewItem *)),proxy,
+ TQ_SLOT(edit(TQListViewItem *)));
mainlayout->addWidget(listview);
diff --git a/arts/tools/audiomanager.h b/arts/tools/audiomanager.h
index d787cf37..1378e702 100644
--- a/arts/tools/audiomanager.h
+++ b/arts/tools/audiomanager.h
@@ -36,7 +36,7 @@ class TQBoxLayout;
class Gui_AUDIO_MANAGER : public Template_ArtsView
{
- Q_OBJECT
+ TQ_OBJECT
protected:
TQWidget *ParentWidget;
@@ -59,7 +59,7 @@ public slots:
};
class GuiAudioManagerProxy :public TQObject {
- Q_OBJECT
+ TQ_OBJECT
Gui_AUDIO_MANAGER *gim;
public:
diff --git a/arts/tools/choosebusdlg.cpp b/arts/tools/choosebusdlg.cpp
index 62ba74be..e3a533a7 100644
--- a/arts/tools/choosebusdlg.cpp
+++ b/arts/tools/choosebusdlg.cpp
@@ -105,7 +105,7 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
TQLabel * newbuslabel = new TQLabel( i18n( "New bus:" ), this );
layout2->addWidget( newbuslabel );
lineedit = new KLineEdit( this );
- connect( lineedit, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( textChanged( const TQString & ) ) );
+ connect( lineedit, TQ_SIGNAL( textChanged( const TQString & ) ), TQ_SLOT( textChanged( const TQString & ) ) );
layout2->addWidget( lineedit );
// hruler
@@ -126,15 +126,15 @@ ChooseBusDlg::ChooseBusDlg(TQWidget *parent)
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
+ bbox->addButton(KStdGuiItem::help(), this, TQ_SLOT( help() ));
bbox->addStretch(1);
TQPushButton * okbutton = bbox->addButton(KStdGuiItem::ok());
okbutton->setDefault( true );
- connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
+ connect( okbutton, TQ_SIGNAL( clicked() ), TQ_SLOT(accept() ) );
TQButton *cancelbutton = bbox->addButton(KStdGuiItem::cancel());
- connect( cancelbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(reject() ) );
+ connect( cancelbutton, TQ_SIGNAL( clicked() ), TQ_SLOT(reject() ) );
bbox->layout();
diff --git a/arts/tools/choosebusdlg.h b/arts/tools/choosebusdlg.h
index 7b6c923f..7282811e 100644
--- a/arts/tools/choosebusdlg.h
+++ b/arts/tools/choosebusdlg.h
@@ -29,7 +29,7 @@ class KLineEdit;
class TQPushButton;
class ChooseBusDlg :public KDialog {
- Q_OBJECT
+ TQ_OBJECT
TQListBox *listbox;
KLineEdit * lineedit;
diff --git a/arts/tools/environmentview.cpp b/arts/tools/environmentview.cpp
index aca373e9..1e223629 100644
--- a/arts/tools/environmentview.cpp
+++ b/arts/tools/environmentview.cpp
@@ -71,25 +71,25 @@ EnvironmentView::EnvironmentView( Container container, TQWidget* parent, const c
defaultEnvFileName.replace('~', TQDir::homeDirPath());
listBox = new TDEListBox(this);
update();
- connect(listBox,TQT_SIGNAL(executed(TQListBoxItem*)),
- this,TQT_SLOT(view(TQListBoxItem*)));
+ connect(listBox,TQ_SIGNAL(executed(TQListBoxItem*)),
+ this,TQ_SLOT(view(TQListBoxItem*)));
TQPushButton *mixerButton = new TQPushButton(i18n("Add Mixer"), this);
- connect(mixerButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(addMixer()));
+ connect(mixerButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(addMixer()));
TQPushButton *effectRackButton = new TQPushButton(i18n("Add Effect Rack"), this);
- connect(effectRackButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(addEffectRack()));
+ connect(effectRackButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(addEffectRack()));
TQPushButton *delButton = new TQPushButton(i18n("Delete Item"), this);
- connect(delButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(delItem()));
+ connect(delButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(delItem()));
TQPushButton *loadButton = new
TQPushButton(i18n("Load %1").arg(DEFAULT_ENV_FILENAME), this);
- connect(loadButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(load()));
+ connect(loadButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(load()));
TQPushButton *saveButton = new
TQPushButton(i18n("Save %1").arg(DEFAULT_ENV_FILENAME), this);
- connect(saveButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(save()));
+ connect(saveButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(save()));
show();
}
diff --git a/arts/tools/environmentview.h b/arts/tools/environmentview.h
index 792ae2f8..a0c2b578 100644
--- a/arts/tools/environmentview.h
+++ b/arts/tools/environmentview.h
@@ -32,7 +32,7 @@ class TQListBoxItem;
class TDEListBox;
class EnvironmentView : public Template_ArtsView {
- Q_OBJECT
+ TQ_OBJECT
protected:
Arts::Environment::Container container;
diff --git a/arts/tools/fftscopeview.cpp b/arts/tools/fftscopeview.cpp
index e87759e6..975b2943 100644
--- a/arts/tools/fftscopeview.cpp
+++ b/arts/tools/fftscopeview.cpp
@@ -77,23 +77,23 @@ kdDebug()<<k_funcinfo<<endl;
updatetimer = new TQTimer( this );
updatetimer->start( 100 );
- connect( updatetimer,TQT_SIGNAL( timeout() ),this,TQT_SLOT( updateScope() ) );
+ connect( updatetimer,TQ_SIGNAL( timeout() ),this,TQ_SLOT( updateScope() ) );
_artsactions = new ArtsActions( 0, 0, this );
- _moreBars = ArtsActions::actionMoreBars( TQT_TQOBJECT(this), TQT_SLOT( moreBars() ), 0 );
- _lessBars = ArtsActions::actionLessBars( TQT_TQOBJECT(this), TQT_SLOT( lessBars() ), 0 );
+ _moreBars = ArtsActions::actionMoreBars( this, TQ_SLOT( moreBars() ), 0 );
+ _lessBars = ArtsActions::actionLessBars( this, TQ_SLOT( lessBars() ), 0 );
_menu = new TDEPopupMenu( 0 );
_moreBars->plug( _menu ); _lessBars->plug( _menu );
- _substyle = new TDEAction( i18n( "Substyle" ), "", TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT( substyle() ), TQT_TQOBJECT(this) );
+ _substyle = new TDEAction( i18n( "Substyle" ), "", TDEShortcut(), this, TQ_SLOT( substyle() ), this );
_substyle->plug( _menu );
_menu->insertItem( i18n("VU-Style"), _artsactions->stylemenu() );
- connect( _artsactions, TQT_SIGNAL( styleNormal() ), this, TQT_SLOT( styleNormalBars() ) );
- connect( _artsactions, TQT_SIGNAL( styleFire() ), this, TQT_SLOT( styleFireBars() ) );
- connect( _artsactions, TQT_SIGNAL( styleLine() ), this, TQT_SLOT( styleLineBars() ) );
- connect( _artsactions, TQT_SIGNAL( styleLED() ), this, TQT_SLOT( styleLEDs() ) );
- connect( _artsactions, TQT_SIGNAL( styleAnalog() ), this, TQT_SLOT( styleAnalog() ) );
- connect( _artsactions, TQT_SIGNAL( styleSmall() ), this, TQT_SLOT( styleSmall() ) );
+ connect( _artsactions, TQ_SIGNAL( styleNormal() ), this, TQ_SLOT( styleNormalBars() ) );
+ connect( _artsactions, TQ_SIGNAL( styleFire() ), this, TQ_SLOT( styleFireBars() ) );
+ connect( _artsactions, TQ_SIGNAL( styleLine() ), this, TQ_SLOT( styleLineBars() ) );
+ connect( _artsactions, TQ_SIGNAL( styleLED() ), this, TQ_SLOT( styleLEDs() ) );
+ connect( _artsactions, TQ_SIGNAL( styleAnalog() ), this, TQ_SLOT( styleAnalog() ) );
+ connect( _artsactions, TQ_SIGNAL( styleSmall() ), this, TQ_SLOT( styleSmall() ) );
}
FFTScopeView::~FFTScopeView() {
@@ -122,7 +122,7 @@ void FFTScopeView::updateScope() {
}
void FFTScopeView::mousePressEvent( TQMouseEvent* ev ) {
- if ( Qt::RightButton == ev->button() /*|| Qt::LeftButton == ev->button()*/ )
+ if ( TQt::RightButton == ev->button() /*|| TQt::LeftButton == ev->button()*/ )
_menu->exec( TQCursor::pos() );
}
diff --git a/arts/tools/fftscopeview.h b/arts/tools/fftscopeview.h
index 3c6e79dd..0a0a93cb 100644
--- a/arts/tools/fftscopeview.h
+++ b/arts/tools/fftscopeview.h
@@ -39,7 +39,7 @@ class KArtsWidget;
class ArtsActions;
class KDE_EXPORT FFTScopeView : public Template_ArtsView {
- Q_OBJECT
+ TQ_OBJECT
protected:
Arts::StereoFFTScope scopefx;
diff --git a/arts/tools/levelmeters.h b/arts/tools/levelmeters.h
index 475a096a..24b0c374 100644
--- a/arts/tools/levelmeters.h
+++ b/arts/tools/levelmeters.h
@@ -43,7 +43,7 @@ inline float DBToLevel(float db) {
* Base class for a single volume / value bar.
*/
class ACLevelMeter : public TQFrame {
- Q_OBJECT
+ TQ_OBJECT
public:
ACLevelMeter(TQWidget *parent): TQFrame(parent) {}
@@ -55,7 +55,7 @@ public slots:
* Base class for a pair of volume / value bars.
*/
class StereoLevelMeter : public TQFrame {
- Q_OBJECT
+ TQ_OBJECT
public:
StereoLevelMeter(TQWidget *parent): TQFrame(parent) {}
@@ -68,7 +68,7 @@ public slots:
* milliseconds and displays a full bar with optional max/min markers.
*/
class PeakBar : public ACLevelMeter {
- Q_OBJECT
+ TQ_OBJECT
bool clipped;
@@ -104,7 +104,7 @@ public:
* Special class which draws the Db scale with ticks, numbers and so on.
*/
class ScaleView : public TQFrame {
- Q_OBJECT
+ TQ_OBJECT
protected:
TQFont font;
@@ -124,7 +124,7 @@ public:
* options like Db range, whether minimal values are also shown and others.
*/
class PeakLevelMeters : public StereoLevelMeter {
- Q_OBJECT
+ TQ_OBJECT
protected:
int dbRange;
@@ -147,7 +147,7 @@ class KLed;
* case it's all blue. (Original artscontrol widget by stw.)
*/
class LedMeter : public ACLevelMeter {
- Q_OBJECT
+ TQ_OBJECT
protected:
KLed *leds[12];
@@ -161,7 +161,7 @@ public:
* A simple pair of LedMeters.
*/
class StereoLedMeters : public StereoLevelMeter {
- Q_OBJECT
+ TQ_OBJECT
protected:
LedMeter left, right;
diff --git a/arts/tools/main.cpp b/arts/tools/main.cpp
index b651c625..74a9ed6f 100644
--- a/arts/tools/main.cpp
+++ b/arts/tools/main.cpp
@@ -87,7 +87,7 @@ VControl::VControl( KArtsServer* artsserver, TQWidget *parent) : TQFrame(parent)
, server( artsserver )
{
- connect( server, TQT_SIGNAL( restartedServer() ), this, TQT_SLOT( initaRtsConnections() ) );
+ connect( server, TQ_SIGNAL( restartedServer() ), this, TQ_SLOT( initaRtsConnections() ) );
/* if(server.isNull())
{
KMessageBox::error( 0, i18n("Connection to the soundserver failed - make sure that artsd is really running and that your tdelibs version is not older than tdemultimedia."));
@@ -136,7 +136,7 @@ void VControl::useOldVolumeBar(int old) {
void VControl::showFreeVerbView() {
if(!freeVerbView) {
freeVerbView = new FreeVerbView(server->server());
- connect(freeVerbView,TQT_SIGNAL(closed()),this,TQT_SLOT(showFreeVerbView()));
+ connect(freeVerbView,TQ_SIGNAL(closed()),this,TQ_SLOT(showFreeVerbView()));
} else {
delete freeVerbView;
freeVerbView = 0;
@@ -158,9 +158,9 @@ void MainWindow::toggleVolumeBar() {
vc->useOldVolumeBar(showOldVolumeDisplay->isChecked());
}
-MainWindow::MainWindow() : TDEMainWindow(0), kartsserver( new KArtsServer( TQT_TQOBJECT(this) ) ) {
+MainWindow::MainWindow() : TDEMainWindow(0), kartsserver( new KArtsServer( this ) ) {
kdDebug() << k_funcinfo << endl;
- connect( kartsserver, TQT_SIGNAL( restartedServer() ), this, TQT_SLOT( serverRestarted() ) );
+ connect( kartsserver, TQ_SIGNAL( restartedServer() ), this, TQ_SLOT( serverRestarted() ) );
vc = new VControl( kartsserver, this );
setCentralWidget( vc );
@@ -172,11 +172,11 @@ kdDebug() << k_funcinfo << endl;
( void ) artsactions->actionMidiManagerView();
( void ) artsactions->actionEnvironmentView();
( void ) artsactions->actionMediaTypesView();
- ( void ) new TDEAction( i18n("Toggle Free&Verb"), 0, TQT_TQOBJECT(vc), TQT_SLOT( showFreeVerbView() ), actionCollection(), "view_freeverb" );
+ ( void ) new TDEAction( i18n("Toggle Free&Verb"), 0, vc, TQ_SLOT( showFreeVerbView() ), actionCollection(), "view_freeverb" );
showOldVolumeDisplay=
- new TDEToggleAction( 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( TQT_TQOBJECT(this), TQT_SLOT( close() ), actionCollection(), "quit_artscontrol" );
+ new TDEToggleAction( i18n( "Old aRts-Control-Style for VU-Meter" /*"&LED-Style Volume Display"*/ ), 0, this,
+ TQ_SLOT( toggleVolumeBar() ), actionCollection(), "old_volume_display" );
+ ( void ) KStdAction::quit( this, TQ_SLOT( close() ), actionCollection(), "quit_artscontrol" );
createGUI("artscontrol.rc");
resize(20,300);
diff --git a/arts/tools/main.h b/arts/tools/main.h
index ef349216..13496756 100644
--- a/arts/tools/main.h
+++ b/arts/tools/main.h
@@ -48,7 +48,7 @@ class PeakLevelMeter;
class VScale;
class FreeVerbView : public TQWidget {
- Q_OBJECT
+ TQ_OBJECT
protected:
Arts::Synth_FREEVERB freeverb;
@@ -66,7 +66,7 @@ signals:
class KArtsWidget;
class VControl : public TQFrame {
- Q_OBJECT
+ TQ_OBJECT
protected:
class StereoLevelMeter *stereoMeter;
@@ -92,7 +92,7 @@ private slots:
#include "artsactions.h"
class MainWindow : public TDEMainWindow {
- Q_OBJECT
+ TQ_OBJECT
protected:
VControl *vc;
diff --git a/arts/tools/mediatypesview.h b/arts/tools/mediatypesview.h
index 44cfb95a..4c7e4d63 100644
--- a/arts/tools/mediatypesview.h
+++ b/arts/tools/mediatypesview.h
@@ -27,7 +27,7 @@
#include "templateview.h"
class MediaTypesView : public Template_ArtsView {
- Q_OBJECT
+ TQ_OBJECT
public:
MediaTypesView( TQWidget* =0, const char* =0 );
diff --git a/arts/tools/midiinstdlg.cpp b/arts/tools/midiinstdlg.cpp
index 6d155b06..f07a7b8f 100644
--- a/arts/tools/midiinstdlg.cpp
+++ b/arts/tools/midiinstdlg.cpp
@@ -135,11 +135,11 @@ MidiInstDlg::MidiInstDlg(TQWidget *parent)
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
+ bbox->addButton(KStdGuiItem::help(), this, TQ_SLOT( help() ));
bbox->addStretch(1);
TQButton *okbutton = bbox->addButton(KStdGuiItem::ok());
- connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
+ connect( okbutton, TQ_SIGNAL( clicked() ), TQ_SLOT(accept() ) );
bbox->layout();
diff --git a/arts/tools/midiinstdlg.h b/arts/tools/midiinstdlg.h
index 5fecce3f..03f08de7 100644
--- a/arts/tools/midiinstdlg.h
+++ b/arts/tools/midiinstdlg.h
@@ -27,7 +27,7 @@
#include <tqcstring.h>
class MidiInstDlg :public TQDialog {
- Q_OBJECT
+ TQ_OBJECT
TQComboBox *box;
public:
diff --git a/arts/tools/midimanagerview.cpp b/arts/tools/midimanagerview.cpp
index b32c09f2..4e92c000 100644
--- a/arts/tools/midimanagerview.cpp
+++ b/arts/tools/midimanagerview.cpp
@@ -115,21 +115,21 @@ MidiManagerView::MidiManagerView()
{
TQTimer *updatetimer = new TQTimer(this);
updatetimer->start(5000);
- connect(updatetimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(updateLists()));
+ connect(updatetimer,TQ_SIGNAL(timeout()),this,TQ_SLOT(updateLists()));
widget = new MidiManagerWidget(this);
setCentralWidget(widget);
setCaption(i18n("MIDI Manager"));
setIcon( MainBarIcon( "artsfftscope", 32 ) );
- (void)new TDEAction(i18n("&System MIDI Port (OSS)"), 0, TQT_TQOBJECT(this), TQT_SLOT(addOSSMidiPort()),
+ (void)new TDEAction(i18n("&System MIDI Port (OSS)"), 0, this, TQ_SLOT(addOSSMidiPort()),
actionCollection(), "add_oss_midi_port");
- (void)new TDEAction(i18n("&aRts Synthesis MIDI Output"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(addArtsMidiOutput()), actionCollection(), "add_arts_midi_output");
+ (void)new TDEAction(i18n("&aRts Synthesis MIDI Output"), 0, this,
+ TQ_SLOT(addArtsMidiOutput()), actionCollection(), "add_arts_midi_output");
- (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()));
+ (void) KStdAction::quit( this, TQ_SLOT(close()), actionCollection());
+ connect(widget->connectButton,TQ_SIGNAL(clicked()), this, TQ_SLOT(slotConnect()));
+ connect(widget->disconnectButton,TQ_SIGNAL(clicked()), this, TQ_SLOT(slotDisconnect()));
connectionWidget = new ConnectionWidget(this, widget->connectionFrame);
connectionWidget->setMinimumSize(60,10);
diff --git a/arts/tools/midimanagerview.h b/arts/tools/midimanagerview.h
index e5cd1467..eec8d0b0 100644
--- a/arts/tools/midimanagerview.h
+++ b/arts/tools/midimanagerview.h
@@ -35,7 +35,7 @@ class MidiManagerItem;
class MidiManagerWidget;
class MidiManagerView : public TDEMainWindow {
- Q_OBJECT
+ TQ_OBJECT
protected:
friend class ConnectionWidget;
diff --git a/arts/tools/midiportdlg.cpp b/arts/tools/midiportdlg.cpp
index 1273bf58..5c20e2bf 100644
--- a/arts/tools/midiportdlg.cpp
+++ b/arts/tools/midiportdlg.cpp
@@ -80,13 +80,13 @@ MidiPortDlg::MidiPortDlg(TQWidget *parent, const char *oldname, const char *titl
buttonlayout->addSpacing(5);
KButtonBox *bbox = new KButtonBox(this);
- TQPushButton *helpbutton = bbox->addButton(KStdGuiItem::help(), TQT_TQOBJECT(this), TQT_SLOT( help() ));
+ TQPushButton *helpbutton = bbox->addButton(KStdGuiItem::help(), this, TQ_SLOT( help() ));
bbox->addStretch(1);
helpbutton->setAutoDefault( true );
helpbutton->setDefault( true );
TQPushButton *okbutton = bbox->addButton(KStdGuiItem::ok());
- connect( okbutton, TQT_SIGNAL( clicked() ), TQT_SLOT(accept() ) );
+ connect( okbutton, TQ_SIGNAL( clicked() ), TQ_SLOT(accept() ) );
okbutton->setAutoDefault( true );
okbutton->setDefault( true );
diff --git a/arts/tools/midiportdlg.h b/arts/tools/midiportdlg.h
index e34bc37e..3189e942 100644
--- a/arts/tools/midiportdlg.h
+++ b/arts/tools/midiportdlg.h
@@ -30,7 +30,7 @@
#include <tqlayout.h>
class MidiPortDlg :public TQDialog {
- Q_OBJECT
+ TQ_OBJECT
TQLineEdit *edit;
public:
diff --git a/arts/tools/statusview.cpp b/arts/tools/statusview.cpp
index 197d620d..4f21657d 100644
--- a/arts/tools/statusview.cpp
+++ b/arts/tools/statusview.cpp
@@ -63,10 +63,10 @@ ArtsStatusView::ArtsStatusView(Arts::SoundServer a_server, TQWidget* parent, con
suspendButton= new TQPushButton(this, "suspendButton");
suspendButton->setText(i18n("&Suspend Now"));
l->addWidget(suspendButton);
- connect(suspendButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(suspendButtonClicked()));
+ connect(suspendButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(suspendButtonClicked()));
artsPollStatusTimer= new TQTimer(this);
- connect(artsPollStatusTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(updateStatus()));
+ connect(artsPollStatusTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(updateStatus()));
artsPollStatusTimer->start(1000);
//l->activate();
show();
diff --git a/arts/tools/statusview.h b/arts/tools/statusview.h
index a0969ad4..c970e0a6 100644
--- a/arts/tools/statusview.h
+++ b/arts/tools/statusview.h
@@ -34,7 +34,7 @@ class TQTimer;
class TQLabel;
class ArtsStatusView : public Template_ArtsView {
- Q_OBJECT
+ TQ_OBJECT
public:
ArtsStatusView(Arts::SoundServer server, TQWidget* =0, const char* =0 );
diff --git a/arts/tools/templateview.h b/arts/tools/templateview.h
index 30269533..9b1124bb 100644
--- a/arts/tools/templateview.h
+++ b/arts/tools/templateview.h
@@ -26,7 +26,7 @@
class Template_ArtsView : public TQFrame
{
- Q_OBJECT
+ TQ_OBJECT
public:
Template_ArtsView( TQWidget* =0, const char* =0 );
diff --git a/cmake b/cmake
deleted file mode 160000
-Subproject f0a5bcc7600c36f8fe59754d1167d1bbc70a495
diff --git a/config.h.cmake b/config.h.cmake
index 812818bb..f78d86cf 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -58,3 +58,6 @@
/* xine_artsplugin */
#cmakedefine HAVE_XSHMGETEVENTBASE 1
#cmakedefine ao_new_port @ao_new_port@
+
+/* kmix */
+#cmakedefine WITH_KMIX_EXPERIMENTAL 1 \ No newline at end of file
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 5ec6480c..0b9cfdb5 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -9,4 +9,17 @@
#
#################################################
-tde_auto_add_subdirectories()
+add_subdirectory( man )
+
+tde_conditional_add_subdirectory( BUILD_ARTS artsbuilder )
+tde_conditional_add_subdirectory( BUILD_TDEIOSLAVE audiocd )
+tde_conditional_add_subdirectory( BUILD_LIBKCDDB cddb )
+tde_conditional_add_subdirectory( BUILD_JUK juk )
+tde_conditional_add_subdirectory( BUILD_KABOODLE kaboodle )
+tde_conditional_add_subdirectory( BUILD_KAUDIOCREATOR kaudiocreator )
+tde_conditional_add_subdirectory( BUILD_KMIX kmix )
+tde_conditional_add_subdirectory( BUILD_KREC krec )
+tde_conditional_add_subdirectory( BUILD_KSCD kscd )
+tde_conditional_add_subdirectory( BUILD_NOATUN noatun )
+tde_conditional_add_subdirectory( BUILD_TDEIOSLAVE tdeioslave )
+tde_conditional_add_subdirectory( BUILD_TDEMID tdemid )
diff --git a/doc/artsbuilder/artsbuilder.docbook b/doc/artsbuilder/artsbuilder.docbook
index b5f4f68c..63e39e0b 100644
--- a/doc/artsbuilder/artsbuilder.docbook
+++ b/doc/artsbuilder/artsbuilder.docbook
@@ -339,7 +339,7 @@ Finally, you can delete the Synth&lowbar;SEQUENCE module, and rather
connect connect the frequency input port of the structure to the
Synth&lowbar;FREQUENCY frequency port. Hm. But what do do about
pos?</para> <para>We don't have this, because with no algorithm in the
-world, you can predict when the user will release the note he just
+world, you can predict when the user will release the note they just
pressed on the midi keyboard. So we rather have a pressed parameter
instead that just indicates wether the user still holds down the
key. (pressed = 1: key still hold down, pressed = 0: key
diff --git a/doc/artsbuilder/detail.docbook b/doc/artsbuilder/detail.docbook
index c7ed7319..37d5e328 100644
--- a/doc/artsbuilder/detail.docbook
+++ b/doc/artsbuilder/detail.docbook
@@ -1415,7 +1415,7 @@ once you assigned something else (like a null reference).
<para>
The equivalent C++ terms would be
<programlisting>
- QWidget* w;
+ TQWidget* w;
w-&gt;show();
</programlisting>
@@ -1662,8 +1662,8 @@ objects that are send over wire are tagged before transfer.
</para>
<para>
-If the receiver receives an object which is on his server, of course he
-will not <function>_useRemote()</function> it. For this special case,
+If the receiver receives an object which is on their server, of course
+they will not <function>_useRemote()</function> it. For this special case,
<function>_cancelCopyRemote()</function> exists to remove the tag
manually. Other than that, there is also timer based tag removal, if
tagging was done, but the receiver didn't really get the object (due to
diff --git a/doc/artsbuilder/mcop.docbook b/doc/artsbuilder/mcop.docbook
index 59d9a011..ca4a195a 100644
--- a/doc/artsbuilder/mcop.docbook
+++ b/doc/artsbuilder/mcop.docbook
@@ -1476,7 +1476,7 @@ Marshalling should be easy to implement.
<listitem>
<para>
-Demarshalling requires the receiver to know what type he wants to
+Demarshalling requires the receiver to know what type they want to
demarshall.
</para>
</listitem>
@@ -2197,12 +2197,12 @@ that, I am certainly proven wrong.
While I do know that &DCOP; basically doesn't know about the data types
it sends, so that you could use &DCOP; without using &Qt;, look at how
it is used in daily &kde; usage: people send types like
-<classname>QString</classname>, <classname>QRect</classname>,
+<classname>TQString</classname>, <classname>QRect</classname>,
<classname>QPixmap</classname>, <classname>QCString</classname>, ...,
around. These use &Qt;-serialization. So if somebody choose to support
-&DCOP; in a GNOME program, he would either have to claim to use
-<classname>QString</classname>,... types (although he doesn't do so),
-and emulate the way &Qt; does the streaming, or he would send other
+&DCOP; in a GNOME program, they would either have to claim to use
+<classname>TQString</classname>,... types (although they don't do so),
+and emulate the way &Qt; does the streaming, or they would send other
string, pixmap and rect types around, and thus not be interoperable.
</para>
diff --git a/doc/man/CMakeLists.txt b/doc/man/CMakeLists.txt
new file mode 100644
index 00000000..5e77a4a0
--- /dev/null
+++ b/doc/man/CMakeLists.txt
@@ -0,0 +1,17 @@
+#################################################
+#
+# (C) 2017 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_conditional_add_subdirectory( BUILD_JUK juk )
+tde_conditional_add_subdirectory( BUILD_KABOODLE kaboodle )
+tde_conditional_add_subdirectory( BUILD_KAUDIOCREATOR kaudiocreator )
+tde_conditional_add_subdirectory( BUILD_KMIX kmix )
+tde_conditional_add_subdirectory( BUILD_KREC krec )
+tde_conditional_add_subdirectory( BUILD_NOATUN noatun )
diff --git a/doc/man/juk/CMakeLists.txt b/doc/man/juk/CMakeLists.txt
new file mode 100644
index 00000000..65c83b94
--- /dev/null
+++ b/doc/man/juk/CMakeLists.txt
@@ -0,0 +1,7 @@
+file( GLOB _man_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.1 )
+
+install(
+ FILES ${_man_files}
+ DESTINATION ${MAN_INSTALL_DIR}/man1
+ COMPONENT doc
+)
diff --git a/doc/man/juk/juk.1 b/doc/man/juk/juk.1
new file mode 100644
index 00000000..0981892b
--- /dev/null
+++ b/doc/man/juk/juk.1
@@ -0,0 +1,39 @@
+.TH "JuK" "1" "April 2006"
+.SH "NAME"
+juk \- music organizer and player for TDE
+.SH "SYNOPSIS"
+\fBjuk\fR
+.SH "DESCRIPTION"
+.LP
+
+JuK (pronounced "jook") is a jukebox and music manager for the TDE
+desktop similar to jukebox software on other platforms such as
+iTunes or RealOne.
+
+.
+.SH "OPTIONS"
+.l
+\fIjuk\fP does not accept any command-line options.
+.
+
+.SH "DCOP"
+
+\fIjuk\fP has a DCOP (Desktop Communications Protocol) interface
+that may be used to start, stop, skip forward to the next song,
+etc. This may be done from the command line using \fIdcop\fP
+as follows:
+
+.RS
+$ dcop juk Player forward
+
+$ dcop juk Player back
+
+$ dcop juk Player stop
+
+$ dcop juk Player play
+.RE
+
+.SH "AUTHOR"
+This page was written by David Schleef <ds@schleef.org> for Debian,
+but may be used elsewhere.
+
diff --git a/doc/man/kaboodle/CMakeLists.txt b/doc/man/kaboodle/CMakeLists.txt
new file mode 100644
index 00000000..65c83b94
--- /dev/null
+++ b/doc/man/kaboodle/CMakeLists.txt
@@ -0,0 +1,7 @@
+file( GLOB _man_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.1 )
+
+install(
+ FILES ${_man_files}
+ DESTINATION ${MAN_INSTALL_DIR}/man1
+ COMPONENT doc
+)
diff --git a/doc/man/kaboodle/kaboodle.1 b/doc/man/kaboodle/kaboodle.1
new file mode 100644
index 00000000..72ff225f
--- /dev/null
+++ b/doc/man/kaboodle/kaboodle.1
@@ -0,0 +1,261 @@
+.lf 1 info/tdemultimedia.kaboodle.1
+.TH KABOODLE 1 "May 2003" TDE "TDE Application"
+.SH NAME
+kaboodle \- TDE simple and lean Media Player
+.SH SYNOPSIS
+.B kaboodle
+[\fIQt-options\fR] [\fITDE-options\fR] [\fIURL\fR]
+.SH DESCRIPTION
+This manual page documents briefly the
+.B kaboodle
+TDE Application.
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.
+.PP
+.B Kaboodle
+is a simple KMedia (aRts) player for TDE, which can play standalone,
+or embedded in Konqueror. The embedded player should work for media embedded in tdehtml, too.
+It is meant for simple stuff like playing a quick video or sound file.
+.B Kaboodle
+does not accept plugins, does not have a playlist or volume control and other such features.
+.P
+To get a media-player with a full-fledged user interface, look at
+.BR noatun (1)
+.SH OPTIONS
+.SS "Arguments:"
+.TP
+URL
+URL of media file to play
+.SS "General Options"
+.B \-\-help
+Show help about options
+.TP
+.B \-\-help\-qt
+Show Qt specific options
+.TP
+.B \-\-help\-tde
+Show TDE specific options
+.TP
+.B \-\-help\-all
+Show all options
+.TP
+.B \-\-author
+Show author information
+.TP
+.B \-v\fR, \fB\-\-version
+Show version information
+.TP
+.B \-\-license
+Show license information
+.TP
+.B \-\-
+End of options
+.lf 1 info/kdetqtoptions
+.SS "TDE options"
+.TP 12
+.BI \-\-caption \ caption
+Use \fIcaption\fP as name in the titlebar.
+.TP
+.BI \-\-icon \ icon
+Use \fIicon\fP as the application icon. \fIicon\fP is the name of the
+icon, which can either be an absolute filename path, or otherwise the
+icon is sought for in places according to the normal TDE rules.
+.TP
+.BI \-\-miniicon \ icon
+Use \fIicon\fP as the icon in the titlebar. \fIicon\fP is the filename
+of the icon, according to the same rules as for the \-\-icon parameter.
+.TP
+.BI \-\-config \ filename
+Use an alternative configuration file, instead of the default, which
+is normally located in
+.I /usr/share/config
+or in
+.RB $ TDEHOME\fI/share/config
+.TP
+.BI \-\-dcopserver \ server
+Set the address of the DCOP server to attach to.
+.TP
+.B \-\-nocrashhandler
+Disable crash handler, to get core dumps. This option has the same
+effect as definiting the environment variable TDE_DEBUG.
+.TP
+.B \-\-waitforwm
+Waits for a WM_NET compatible windowmanager.
+.TP
+.BI \-\-style \ style
+sets the application GUI style.
+.TP
+.BI \-\-geometry \ geometry
+sets the client geometry of the main widget.
+The geometry parameter follows the normal X convention for geometry,
+which is on the form:
+.RS
+.IP
+[\fIwidth\fBx\fIheight\fR][{\fB+-\fR}\fIxpos\fR{\fB+-\fR}\fIypos\fR]
+.P
+Where \fIwidth\fR and \fIheight\fR gives the desired minimum width and
+height, of the main application window. Both in pixels. A value of 0
+specifies the default size. The optional \fIxpos\fR and \fIypos\fR
+specifies the x,y-position that which is desired for the application
+window. Specifying negative values for x or y implies that the x or y
+position is to be measured from the left or bottom screen edge,
+instead of as in the normal case, with positive values, from the left
+and top edges.
+.RE
+.SS "Qt options"
+.TP 12
+.BI \-\-display \ displayname
+Use the X-server display \fIdisplayname\fP.
+.TP
+.BI \-\-session \ sessionId
+Restore the application for the given \fIsessionId\fP.
+.TP
+.B \-\-cmap
+Causes the application to install a private color
+map on an 8-bit display.
+.TP
+.BI \-\-ncols \ count
+Limits the number of colors allocated in the color
+cube on an 8-bit display, if the application is
+using the QApplication::ManyColor color
+specification.
+.TP
+.B \-\-nograb
+Tells Qt to never grab the mouse or the keyboard.
+.TP
+.B \-\-dograb
+Running under a debugger can cause an implicit
+.B \-nograb, use \fB\-dograb\fR to override.
+.TP
+.B \-\-sync
+switches to synchronous mode for debugging.
+.TP
+.BI "\-\-fn\fR, \fP\-\-font" \ fontname
+Defines the default application font. The \fIfontname\fP should be in
+the X logical font name description format XLFD. For a full description of
+the format see
+.I /usr/X11R6/lib/X11/doc/xlfd.TXT
+Note that the application might override the font specified with
+its own font.
+.TP
+.BI "-\-bg\fR, \fB\-\-background" \ color
+Sets the default background color and an
+application palette (light and dark shades are
+calculated).
+.TP
+.BI "\-\-fg\fR, \fB\-\-foreground" \ color
+Sets the default foreground color.
+.TP
+.BI \-\-btn\fR, \fB\-\-button \ color
+Sets the default button color.
+.TP
+.BI \-\-name \ name
+Sets the application name.
+.TP
+.BI \-\-title \ title
+Sets the application title. This option might, or might not appear
+in the title bar caption, depending on the application. To change the caption, use the
+.B \-\-caption
+option instead.
+.TP
+.B \-\-visual TrueColor
+Forces the application to use a TrueColor visual on
+an 8-bit display.
+.TP
+.BI \-\-inputstyle \ inputstyle
+Sets XIM (X Input Method) input style. Possible
+values are
+.BR onthespot ", " overthespot ", " offthespot and root .
+.TP
+.BI \-\-im " XIM-server"
+Set XIM server.
+.TP
+.B \-\-noxim
+Disable XIM.
+.TP
+.B \-\-reverse
+Mirror reverses the whole layout of widgets. This means that menus
+will go in the opposite direction, the scroll bar will be on the
+opposite side, etc. For a normal western layout that means that menus
+and tool bars will go from the right edge to the left, the vertical
+scroll bar will be on the left side and so on.
+
+.lf 53 info/tdemultimedia.kaboodle.1
+.SH ENVIRONMENT
+.lf 1 info/kdeenviron
+.SS "standard TDE environment variables"
+.IP TDE_LANG
+Language locale setting to use. This option makes it possible to set
+another language environment for a program than what is the default. The
+correct language pack for this language has to be installed for this option
+to work. The default language when there is none set is en_US. When
+deciding upon a language, the following resources are looked up, in
+order: TDE_LANG, configuration file, LC_CTYPE, LC_MESSAGES, LC_ALL,
+LANG.
+.IP TDE_UTF8_FILENAMES
+Assume that all filenames are in UTF-8 format regardless of the
+current language setting. Otherwise the filename format is defined by
+the language.
+.IP TDE_MULTIHEAD
+If this variable has the value
+.B true
+multihead multiple display mode is enabled. The TDE display will be
+shared over more than one screen.
+.IP DISPLAY
+Specifies the X display to run TDE on.
+.IP TDESYCOCA
+Specifies and alternative path for the
+.I tdesycoca
+TDE system configuration cache file.
+The default path is
+/tmp/tde-$USER/tdesycoca
+.IP DCOPSERVER
+Specifies an alternative path for the DCOP server file. The default
+file is
+$HOME/.DCOPserver_\fIhostname\fP_\fIdisplayname\fP
+.IP SESSION_MANAGER
+The session manager to use. This option is set automatically by TDE
+and is a network path to the session manager socket.
+.IP HOME
+Path to the home directory for the current user.
+.IP TDEHOME
+The TDE per-user setting directory. Default if not specified is
+.I $HOME/.trinity
+.lf 55 info/tdemultimedia.kaboodle.1
+.SH FILES
+.TP
+.I $HOME/.trinity/share/config/kaboodlerc
+configuration file.
+.SH AUTHOR
+Kaboodle was written by
+.nh
+.ad l
+Neil Stevens <neil@qualityassistant.com>,
+Nikolas Zimmermann <wildfox@kde.org>,
+and Charles Samuels <charles@kde.org>.
+.hy
+.br
+Please use http://bugs.trinitydesktop.org to report bugs, do not mail the authors directly.
+.br
+This manual page was prepared by
+.nh
+.ad l
+Karolina Lindqvist <pgd\-karolinali@algonet.se>
+.hy
+for the Debian GNU/Linux system (but may be used by others).
+.SH "SEE ALSO"
+.BR noatun (1)
+.br
+The full documentation for
+.B kaboodle
+is maintained as a docbook manual. If the
+.B khelpcenter
+program is properly installed at your site, the command
+.IP
+.B khelpcenter help:/kaboodle
+.PP
+should give you access to the complete manual.
+.P
+Alternatively the manual can be browsed in
+.B konqueror
+giving it the URL help:/kaboodle
diff --git a/doc/man/kaudiocreator/CMakeLists.txt b/doc/man/kaudiocreator/CMakeLists.txt
new file mode 100644
index 00000000..65c83b94
--- /dev/null
+++ b/doc/man/kaudiocreator/CMakeLists.txt
@@ -0,0 +1,7 @@
+file( GLOB _man_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.1 )
+
+install(
+ FILES ${_man_files}
+ DESTINATION ${MAN_INSTALL_DIR}/man1
+ COMPONENT doc
+)
diff --git a/doc/man/kaudiocreator/kaudiocreator.1 b/doc/man/kaudiocreator/kaudiocreator.1
new file mode 100644
index 00000000..35600bcd
--- /dev/null
+++ b/doc/man/kaudiocreator/kaudiocreator.1
@@ -0,0 +1,145 @@
+.TH kaudiocreator 1 "Nov 2005" "Trinity Desktop Environment" ""
+.SH NAME
+kaudiocreator \- CD ripper and audio encoder front-end
+.SH SYNOPSIS
+kaudiocreator [Qt-options] [TDE-options]
+.SH DESCRIPTION
+.B kaudiocreator
+is the CD ripper and audio encoder front-end for the Trinity Desktop Environment. It
+supports many encoders like
+.BR lame (1),
+.BR oggenc (1),
+.BR flac (1),
+and performs CDDB queries.
+
+.SH OPTIONS
+.SS Generic options:
+.TP
+.B --help
+Show help about options
+.TP
+.B --help-qt
+Show Qt specific options
+.TP
+.B --help-tde
+Show TDE specific options
+.TP
+.B --help-all
+Show all options
+.TP
+.B --author
+Show author information
+.TP
+.B -v, --version
+Show version information
+.TP
+.B --license
+Show license information
+.TP
+.B --
+End of options
+.SS
+.SS TDE options:
+.TP
+.B --caption <caption>
+Use 'caption' as name in the title bar
+.TP
+.B --icon <icon>
+Use 'icon' as the application icon
+.TP
+.B --miniicon <icon>
+Use 'icon' as the icon in the title bar
+.TP
+.B --config <filename>
+Use alternative configuration file
+.TP
+.B --dcopserver <server>
+Use the DCOP Server specified by 'server'
+.TP
+.B --nocrashhandler
+Disable crash handler, to get core dumps
+.TP
+.B --waitforwm
+Waits for a WM_NET compatible window manager
+.TP
+.B --style <style>
+sets the application GUI style
+.TP
+.B --geometry <geometry>
+sets the client geometry of the main widget
+.SS
+.SS Qt options:
+.TP
+.B --display <displayname>
+Use the X-server display 'displayname'
+.TP
+.B --session <sessionId>
+Restore the application for the given 'sessionId'
+.TP
+.B --cmap
+Causes the application to install a private color
+map on an 8-bit display
+.TP
+.B --ncols <count>
+Limits the number of colors allocated in the color
+cube on an 8-bit display, if the application is
+using the QApplication::ManyColor color
+specification
+.TP
+.B --nograb
+tells Qt to never grab the mouse or the keyboard
+.TP
+.B --dograb
+running under a debugger can cause an implicit
+-nograb, use -dograb to override
+.TP
+.B --sync
+switches to synchronous mode for debugging
+.TP
+.B --fn, --font <fontname>
+defines the application font
+.TP
+.B --bg, --background <color>
+sets the default background color and an
+application palette (light and dark shades are
+calculated)
+.TP
+.B --fg, --foreground <color>
+sets the default foreground color
+.TP
+.B --btn, --button <color>
+sets the default button color
+.TP
+.B --name <name>
+sets the application name
+.TP
+.B --title <title>
+sets the application title (caption)
+.TP
+.B --visual TrueColor
+forces the application to use a TrueColor visual on
+an 8-bit display
+.TP
+.B --inputstyle <inputstyle>
+sets XIM (X Input Method) input style. Possible
+values are onthespot, overthespot, offthespot and
+root
+.TP
+.B --im <XIM server>
+set XIM server
+.TP
+.B --noxim
+disable XIM
+.TP
+.B --reverse
+mirrors the whole layout of widgets
+
+
+.SH AUTHOR
+Benjamin Meyer <ben+kaudiocreator@meyerhome.net>
+
+Please use <http://bugs.trinitydesktop.org> to report bugs, do not mail the authors
+directly.
+
+
+This man-page was written by Francois Wendling <frwendling@free.fr>
diff --git a/doc/man/kmix/CMakeLists.txt b/doc/man/kmix/CMakeLists.txt
new file mode 100644
index 00000000..65c83b94
--- /dev/null
+++ b/doc/man/kmix/CMakeLists.txt
@@ -0,0 +1,7 @@
+file( GLOB _man_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.1 )
+
+install(
+ FILES ${_man_files}
+ DESTINATION ${MAN_INSTALL_DIR}/man1
+ COMPONENT doc
+)
diff --git a/doc/man/kmix/kmix.1 b/doc/man/kmix/kmix.1
new file mode 100644
index 00000000..e603facb
--- /dev/null
+++ b/doc/man/kmix/kmix.1
@@ -0,0 +1,49 @@
+.TH KMIX 1 "August, 15 2003"
+.SH NAME
+Kmix \- TDE audio mini-mixer
+.SH SYNOPSIS
+.B kmix
+.RI [ OPTIONS ]
+.SH DESCRIPTION
+This manual page documents briefly the
+.B kmix
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.PP
+\fBKmix\fP is a mini audio mixer for TDE. It allows the user to change
+volume settings for each sound device (master, CD, line, mic, ...).
+.SH OPTIONS
+A summary of options for Kmix is included below.
+.TP
+.B \-v, \-\-version
+Show version of program.
+.TP
+.B \-\-help
+Show summary of options.
+.TP
+.B \-\-help\-qt
+Show QT specific help (common for all QT apps).
+.TP
+.B \-\-help\-tde
+Show TDE specific help (common for all TDE apps).
+.TP
+.B \-\-help\-all
+Show the complete help.
+.TP
+.B \-\-author
+Show program author(s).
+.TP
+.B \-\-license
+Show program license.
+
+.SH SEE ALSO
+.BR kmixctrl (1),
+.PP
+For more details, you should have a look at the TDE Help center, available
+from the T menu.
+.SH AUTHOR
+This manual page was written by Clement Stenac <zorglub@via.ecp.fr>,
+for the Debian GNU/Linux project (but may be used by others).
+.PP
+kmix was written by the KDE project.
diff --git a/doc/man/kmix/kmixctrl.1 b/doc/man/kmix/kmixctrl.1
new file mode 100644
index 00000000..58a586b1
--- /dev/null
+++ b/doc/man/kmix/kmixctrl.1
@@ -0,0 +1,54 @@
+.TH KMIXCTRL 1 "August, 25 2003"
+.SH NAME
+kmixctrl \- Settings loader/saver for kmix
+.SH SYNOPSIS
+.B kmixctrl
+.RI [ OPTIONS ]
+.SH DESCRIPTION
+This manual page documents briefly the
+.B kmixctrl
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.PP
+\fBkmixctrl\fP is used to save or restore the settings of \fIkmix\fP.
+.SH OPTIONS
+A summary of options for kmixctrl is included below.
+.TP
+.B \-v, \-\-version
+Show version of program.
+.TP
+.B \-\-help
+Show summary of options.
+.TP
+.B \-\-help\-qt
+Show QT specific help (common for all QT apps).
+.TP
+.B \-\-help\-tde
+Show TDE specific help (common for all TDE apps).
+.TP
+.B \-\-help\-all
+Show the complete help.
+.TP
+.B \-\-author
+Show program author(s).
+.TP
+.B \-\-license
+Show program license.
+.TP
+.B \-s, \-\-save
+Save the current settings as default
+.TP
+.B \-r, \-\-restore
+Restores the default settings
+
+.SH SEE ALSO
+.BR kmix (1),
+.PP
+For more details, you should have a look at the TDE Help center, available
+from the T menu.
+.SH AUTHOR
+This manual page was written by Clement Stenac <zorglub@via.ecp.fr>,
+for the Debian GNU/Linux project (but may be used by others).
+.PP
+kmixctrl was written by the KDE project.
diff --git a/doc/man/krec/CMakeLists.txt b/doc/man/krec/CMakeLists.txt
new file mode 100644
index 00000000..65c83b94
--- /dev/null
+++ b/doc/man/krec/CMakeLists.txt
@@ -0,0 +1,7 @@
+file( GLOB _man_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.1 )
+
+install(
+ FILES ${_man_files}
+ DESTINATION ${MAN_INSTALL_DIR}/man1
+ COMPONENT doc
+)
diff --git a/doc/man/krec/krec.1 b/doc/man/krec/krec.1
new file mode 100644
index 00000000..9e2c57e3
--- /dev/null
+++ b/doc/man/krec/krec.1
@@ -0,0 +1,59 @@
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33.
+.TH krec "1" "July 2004" "Debian" "User Commands"
+.SH NAME
+krec \- A voice recording program
+.SH SYNOPSIS
+.B krec
+[\fIoptions\fR]
+.SH DESCRIPTION
+This is a recording tool for TDE.
+It uses aRts, just look at the audiomanager
+and you will find it there accepting sound
+for recording.
+.SS "Generic options:"
+.TP
+\fB\-\-help\fR
+Show help about options
+.TP
+\fB\-\-help\-qt\fR
+Show Qt specific options
+.TP
+\fB\-\-help\-tde\fR
+Show TDE specific options
+.TP
+\fB\-\-help\-all\fR
+Show all options
+.TP
+\fB\-\-author\fR
+Show author information
+.TP
+\fB\-v\fR, \fB\-\-version\fR
+Show version information
+.TP
+\fB\-\-license\fR
+Show license information
+
+
+.SH USAGE
+Details are shown in the built-in help system to krec. Run krec and go to help-krec handbook to access this data
+
+.SH AUTHORS
+krec is (C)2002-2003 By Arnold Krille (arnold@arnoldarts.de)
+.P
+This man page was written and maintained by Ryan Waye (rmw998@gmail.com)
+.PP
+.
+.
+.SH "STANDARD DISCLAIMER"
+Use only at your own risk!
+There may be errors and inaccuracies that could be damaging to your system or
+your eye.
+Proceed with caution, and although this is highly unlikely, the authors don't
+take any responsibility for that!
+.PP
+
+This document is licensed under the GPL.
+.P
+KDE: 3.2.2
+.P
+KRec: 0.5
diff --git a/doc/man/noatun/CMakeLists.txt b/doc/man/noatun/CMakeLists.txt
new file mode 100644
index 00000000..65c83b94
--- /dev/null
+++ b/doc/man/noatun/CMakeLists.txt
@@ -0,0 +1,7 @@
+file( GLOB _man_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.1 )
+
+install(
+ FILES ${_man_files}
+ DESTINATION ${MAN_INSTALL_DIR}/man1
+ COMPONENT doc
+)
diff --git a/doc/man/noatun/noatun.1 b/doc/man/noatun/noatun.1
new file mode 100644
index 00000000..1ed42ae0
--- /dev/null
+++ b/doc/man/noatun/noatun.1
@@ -0,0 +1,175 @@
+.\" This file was generated by (a slightly modified) kdemangen.pl and edited by hand
+.TH NOATUN 1 "June 2006" "Trinity Desktop Environment" "Media Player"
+.SH NAME
+noatun
+\- fully-featured plugin-based media player for TDE
+.SH SYNOPSIS
+\fBnoatun\fP [Qt\-options] [TDE\-options] [URL]
+.SH DESCRIPTION
+\fBNoatun\fP is a fully\-featured plugin\-based media player for TDE.
+It is an elaborate front-end to aRts - the Analog Real\-Time Synthesizer.
+By default aRts supports MP3 and MPEG\-1. Vorbis is also supported.
+.SH OPTIONS
+.SS
+.SS Arguments:
+.TP
+.B URL
+Files/URLs to open
+.SS Generic options:
+.TP
+.B \-\-help
+Show help about options
+.TP
+.B \-\-help\-qt
+Show Qt specific options
+.TP
+.B \-\-help\-tde
+Show TDE specific options
+.TP
+.B \-\-help\-all
+Show all options
+.TP
+.B \-\-author
+Show author information
+.TP
+.B \-v, \-\-version
+Show version information
+.TP
+.B \-\-license
+Show license information
+.TP
+.B \-\-
+End of options
+.SS
+.SS Qt options:
+.TP
+.B \-\-display <displayname>
+Use the X-server display 'displayname'
+.TP
+.B \-\-session <sessionId>
+Restore the application for the given 'sessionId'
+.TP
+.B \-\-cmap
+Causes the application to install a private color
+map on an 8\-bit display
+.TP
+.B \-\-ncols <count>
+Limits the number of colors allocated in the color
+cube on an 8\-bit display, if the application is
+using the QApplication::ManyColor color
+specification
+.TP
+.B \-\-nograb
+tells Qt to never grab the mouse or the keyboard
+.TP
+.B \-\-dograb
+running under a debugger can cause an implicit
+\-nograb, use \-dograb to override
+.TP
+.B \-\-sync
+switches to synchronous mode for debugging
+.TP
+.B \-\-fn, \-\-font <fontname>
+defines the application font
+.TP
+.B \-\-bg, \-\-background <color>
+sets the default background color and an
+application palette (light and dark shades are
+calculated)
+.TP
+.B \-\-fg, \-\-foreground <color>
+sets the default foreground color
+.TP
+.B \-\-btn, \-\-button <color>
+sets the default button color
+.TP
+.B \-\-name <name>
+sets the application name
+.TP
+.B \-\-title <title>
+sets the application title (caption)
+.TP
+.B \-\-visual TrueColor
+forces the application to use a TrueColor visual on
+an 8\-bit display
+.TP
+.B \-\-inputstyle <inputstyle>
+sets XIM (X Input Method) input style. Possible
+values are onthespot, overthespot, offthespot and
+root
+.TP
+.B \-\-im <XIM server>
+set XIM server
+.TP
+.B \-\-noxim
+disable XIM
+.TP
+.B \-\-reverse
+mirrors the whole layout of widgets
+.SS
+.SS TDE options:
+.TP
+.B \-\-caption <caption>
+Use 'caption' as name in the titlebar
+.TP
+.B \-\-icon <icon>
+Use 'icon' as the application icon
+.TP
+.B \-\-miniicon <icon>
+Use 'icon' as the icon in the titlebar
+.TP
+.B \-\-config <filename>
+Use alternative configuration file
+.TP
+.B \-\-dcopserver <server>
+Use the DCOP Server specified by 'server'
+.TP
+.B \-\-nocrashhandler
+Disable crash handler, to get core dumps
+.TP
+.B \-\-waitforwm
+Waits for a WM_NET compatible windowmanager
+.TP
+.B \-\-style <style>
+sets the application GUI style
+.TP
+.B \-\-geometry <geometry>
+sets the client geometry of the main widget - see man X for the argument format
+.TP
+.B \-\-nofork
+Don't run in the background.
+.SS
+
+.SH SEE ALSO
+To find additional playobjects, go to \fBhttp://noatun.kde.org/plugins.phtml\fP, or \fBhttp://mpeglib.sf.net\fP.
+.sp 1
+Full user documentation is available through the TDE Help Center. You can enter the URL
+.BR help:/noatun/
+directly into konqueror or you can run
+.BR "khelpcenter help:/noatun/"
+from the command\-line.
+.br
+.SH AUTHORS
+.nf
+Charles Samuels <charles@kde.org>
+.br
+Stefan Westerfeld <stefan@space.twc.de>
+.br
+Martin Vogt <mvogt@rhrk.uni\-kl.de>
+.br
+Malte Starostik <malte@kde.org>
+.br
+Nikolas Zimmermann <wildfox@kde.org>
+.br
+Stefan Schimanski <1Stein@gmx.de>
+.br
+Stefan Gehn <metz@gehn.net>
+.br
+
+.br
+.fi
+Please use http://bugs.trinitydesktop.org to report bugs; do not mail the authors directly.
+.PP
+This manual page was written by Holger Hartmann <Holger_Hartmann@gmx.de> for the Debian Project, but may be used by others. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation.
+.PP
+On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL.
diff --git a/juk/HACKING b/juk/HACKING
index 4d9f7781..2fb4d392 100644
--- a/juk/HACKING
+++ b/juk/HACKING
@@ -103,15 +103,15 @@ be inline in the headers. The organization of the members in a class should be
roughly as follows:
public:
-public Q_SLOTS:
+public slots:
protected:
-protected Q_SLOTS:
-Q_SIGNALS:
+protected slots:
+signals:
private: // member funtions
-private Q_SLOTS:
+private slots:
private: // member variables
-If there are no private Q_SLOTS there is no need for two private sections, however
+If there are no private 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 8fc4c037..386e12e3 100644
--- a/juk/advancedsearchdialog.cpp
+++ b/juk/advancedsearchdialog.cpp
@@ -82,17 +82,17 @@ AdvancedSearchDialog::AdvancedSearchDialog(const TQString &defaultName,
TQBoxLayout *l = new TQHBoxLayout(buttons, 0, 5);
KPushButton *clearButton = new KPushButton(KStdGuiItem::clear(), buttons);
- connect(clearButton, TQT_SIGNAL(clicked()), TQT_SLOT(clear()));
+ connect(clearButton, TQ_SIGNAL(clicked()), TQ_SLOT(clear()));
l->addWidget(clearButton);
l->addStretch(1);
m_moreButton = new KPushButton(i18n("More"), buttons);
- connect(m_moreButton, TQT_SIGNAL(clicked()), TQT_SLOT(more()));
+ connect(m_moreButton, TQ_SIGNAL(clicked()), TQ_SLOT(more()));
l->addWidget(m_moreButton);
m_fewerButton = new KPushButton(i18n("Fewer"), buttons);
- connect(m_fewerButton, TQT_SIGNAL(clicked()), TQT_SLOT(fewer()));
+ connect(m_fewerButton, TQ_SIGNAL(clicked()), TQ_SLOT(fewer()));
l->addWidget(m_fewerButton);
m_playlistNameLineEdit->setFocus();
diff --git a/juk/advancedsearchdialog.h b/juk/advancedsearchdialog.h
index 76c6f7be..11069273 100644
--- a/juk/advancedsearchdialog.h
+++ b/juk/advancedsearchdialog.h
@@ -26,7 +26,7 @@ class SearchLine;
class AdvancedSearchDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/akodeplayer.h b/juk/akodeplayer.h
index 5e55c906..8805f786 100644
--- a/juk/akodeplayer.h
+++ b/juk/akodeplayer.h
@@ -36,7 +36,7 @@ namespace aKode {
class KDE_EXPORT aKodePlayer : public Player
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/artsplayer.cpp b/juk/artsplayer.cpp
index 2bcf43ca..f3b27616 100644
--- a/juk/artsplayer.cpp
+++ b/juk/artsplayer.cpp
@@ -84,7 +84,7 @@ void ArtsPlayer::play(const FileHandle &file)
m_playobject = m_factory->createPlayObject(m_currentURL, false);
if(m_playobject->object().isNull())
- connect(m_playobject, TQT_SIGNAL(playObjectCreated()), TQT_SLOT(playObjectCreated()));
+ connect(m_playobject, TQ_SIGNAL(playObjectCreated()), TQ_SLOT(playObjectCreated()));
else
playObjectCreated();
}
@@ -251,7 +251,7 @@ void ArtsPlayer::setupPlayer()
m_dispatcher = new KArtsDispatcher;
m_server = new KArtsServer;
setupArtsObjects();
- connect(m_server, TQT_SIGNAL(restartedServer()), TQT_SLOT(setupArtsObjects()));
+ connect(m_server, TQ_SIGNAL(restartedServer()), TQ_SLOT(setupArtsObjects()));
}
void ArtsPlayer::setupVolumeControl()
diff --git a/juk/artsplayer.h b/juk/artsplayer.h
index 25fb232f..02b5edf6 100644
--- a/juk/artsplayer.h
+++ b/juk/artsplayer.h
@@ -46,7 +46,7 @@ namespace KDE {
class ArtsPlayer : public Player
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/cache.cpp b/juk/cache.cpp
index 58062036..5de4b40e 100644
--- a/juk/cache.cpp
+++ b/juk/cache.cpp
@@ -275,7 +275,7 @@ void Cache::load()
if(!f.open(IO_ReadOnly))
return;
- CacheDataStream s(TQT_TQIODEVICE(&f));
+ CacheDataStream s(&f);
TQ_INT32 version;
s >> version;
diff --git a/juk/collectionlist.cpp b/juk/collectionlist.cpp
index 770ed92f..3cc0eb6a 100644
--- a/juk/collectionlist.cpp
+++ b/juk/collectionlist.cpp
@@ -230,12 +230,12 @@ CollectionList::CollectionList(PlaylistCollection *collection) :
{
new TDEAction(i18n("Show Playing"), TDEShortcut(), ActionCollection::actions(), "showPlaying");
- connect(action("showPlaying"), TQT_SIGNAL(activated()), this, TQT_SLOT(slotShowPlaying()));
+ connect(action("showPlaying"), TQ_SIGNAL(activated()), this, TQ_SLOT(slotShowPlaying()));
- connect(action<TDEToolBarPopupAction>("back")->popupMenu(), TQT_SIGNAL(aboutToShow()),
- this, TQT_SLOT(slotPopulateBackMenu()));
- connect(action<TDEToolBarPopupAction>("back")->popupMenu(), TQT_SIGNAL(activated(int)),
- this, TQT_SLOT(slotPlayFromBackMenu(int)));
+ connect(action<TDEToolBarPopupAction>("back")->popupMenu(), TQ_SIGNAL(aboutToShow()),
+ this, TQ_SLOT(slotPopulateBackMenu()));
+ connect(action<TDEToolBarPopupAction>("back")->popupMenu(), TQ_SIGNAL(activated(int)),
+ this, TQ_SLOT(slotPlayFromBackMenu(int)));
setSorting(-1); // Temporarily disable sorting to add items faster.
m_columnTags[PlaylistItem::ArtistColumn] = new TagCountDict(5001, false);
diff --git a/juk/collectionlist.h b/juk/collectionlist.h
index 2a835c10..d01463ac 100644
--- a/juk/collectionlist.h
+++ b/juk/collectionlist.h
@@ -63,7 +63,7 @@ class CollectionList : public Playlist
{
friend class CollectionListItem;
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/coverdialog.cpp b/juk/coverdialog.cpp
index 9c81126b..fc4fa7ed 100644
--- a/juk/coverdialog.cpp
+++ b/juk/coverdialog.cpp
@@ -89,7 +89,7 @@ void CoverDialog::show()
m_artists->setSorting(0);
- TQTimer::singleShot(0, this, TQT_SLOT(loadCovers()));
+ TQTimer::singleShot(0, this, TQ_SLOT(loadCovers()));
CoverDialogBase::show();
}
@@ -142,7 +142,7 @@ void CoverDialog::slotContextRequested(TQIconViewItem *item, const TQPoint &pt)
if(!menu) {
menu = new TDEPopupMenu(this);
- menu->insertItem(i18n("Remove Cover"), this, TQT_SLOT(removeSelectedCover()));
+ menu->insertItem(i18n("Remove Cover"), this, TQ_SLOT(removeSelectedCover()));
}
menu->popup(pt);
diff --git a/juk/coverdialog.h b/juk/coverdialog.h
index 95589350..00df8d64 100644
--- a/juk/coverdialog.h
+++ b/juk/coverdialog.h
@@ -20,7 +20,7 @@
class CoverDialog : public CoverDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
CoverDialog(TQWidget *parent);
diff --git a/juk/coverdialogbase.ui b/juk/coverdialogbase.ui
index 5b862753..ed8ed1f1 100644
--- a/juk/coverdialogbase.ui
+++ b/juk/coverdialogbase.ui
@@ -194,20 +194,18 @@
<slot>slotContextRequested(TQIconViewItem*,const TQPoint&amp;)</slot>
</connection>
</connections>
-<Q_SLOTS>
+<slots>
<slot>slotArtistClicked(TQListViewItem *item)</slot>
<slot>slotContextRequested(TQIconViewItem *, const TQPoint &amp;pt)</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
<forwards>
<forward>class TQIconViewItem;</forward>
<forward>class TQListViewItem;</forward>
</forwards>
<includes>
+ <include location="global" impldecl="in implementation">covericonview.h</include>
+ <include location="global" impldecl="in implementation">kiconviewsearchline.h</include>
<include location="global" impldecl="in implementation">tdelistview.h</include>
</includes>
-<includehints>
- <includehint>kiconviewsearchline.h</includehint>
- <includehint>covericonview.h</includehint>
-</includehints>
</UI>
diff --git a/juk/covermanager.cpp b/juk/covermanager.cpp
index ef3cd993..95af83e5 100644
--- a/juk/covermanager.cpp
+++ b/juk/covermanager.cpp
@@ -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, TQ_ScaleMin));
+ pix->convertFromImage(image.smoothScale(80, 80, TQImage::ScaleMin));
}
TQPixmap returnValue = *pix; // Save it early.
diff --git a/juk/deletedialog.cpp b/juk/deletedialog.cpp
index f3d81680..daed8164 100644
--- a/juk/deletedialog.cpp
+++ b/juk/deletedialog.cpp
@@ -84,7 +84,7 @@ DeleteDialog::DeleteDialog(TQWidget *parent, const char *name) :
slotShouldDelete(shouldDelete());
- connect(m_widget->ddShouldDelete, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotShouldDelete(bool)));
+ connect(m_widget->ddShouldDelete, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotShouldDelete(bool)));
}
bool DeleteDialog::confirmDeleteList(const TQStringList &condemnedFiles)
diff --git a/juk/deletedialog.h b/juk/deletedialog.h
index 522ee210..a5e1fbd3 100644
--- a/juk/deletedialog.h
+++ b/juk/deletedialog.h
@@ -28,7 +28,7 @@ class TQWidgetStack;
class DeleteWidget : public DeleteDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -42,7 +42,7 @@ protected slots:
class DeleteDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/deletedialogbase.ui b/juk/deletedialogbase.ui
index 24480087..56866bde 100644
--- a/juk/deletedialogbase.ui
+++ b/juk/deletedialogbase.ui
@@ -133,9 +133,9 @@
<slot>slotShouldDelete(bool)</slot>
</connection>
</connections>
-<Q_SLOTS>
+<slots>
<slot access="protected">slotShouldDelete(bool)</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in implementation">tdelistbox.h</include>
diff --git a/juk/directorylist.cpp b/juk/directorylist.cpp
index 8a9e2a56..f8af3b85 100644
--- a/juk/directorylist.cpp
+++ b/juk/directorylist.cpp
@@ -39,10 +39,10 @@ DirectoryList::DirectoryList(const TQStringList &directories, bool importPlaylis
m_base->directoryListView->setFullWidth(true);
- connect(m_base->addDirectoryButton, TQT_SIGNAL(clicked()),
- TQT_SLOT(slotAddDirectory()));
- connect(m_base->removeDirectoryButton, TQT_SIGNAL(clicked()),
- TQT_SLOT(slotRemoveDirectory()));
+ connect(m_base->addDirectoryButton, TQ_SIGNAL(clicked()),
+ TQ_SLOT(slotAddDirectory()));
+ connect(m_base->removeDirectoryButton, TQ_SIGNAL(clicked()),
+ TQ_SLOT(slotRemoveDirectory()));
TQStringList::ConstIterator it = directories.begin();
for(; it != directories.end(); ++it)
diff --git a/juk/directorylist.h b/juk/directorylist.h
index 4c1ebcef..c780b59b 100644
--- a/juk/directorylist.h
+++ b/juk/directorylist.h
@@ -21,7 +21,7 @@ class DirectoryListBase;
class DirectoryList : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/dynamicplaylist.cpp b/juk/dynamicplaylist.cpp
index 336d1e3e..c6f155da 100644
--- a/juk/dynamicplaylist.cpp
+++ b/juk/dynamicplaylist.cpp
@@ -60,7 +60,7 @@ DynamicPlaylist::DynamicPlaylist(const PlaylistList &playlists,
for(PlaylistList::ConstIterator it = playlists.begin(); it != playlists.end(); ++it)
m_observers.append(new PlaylistDirtyObserver(this, *it));
- connect(CollectionList::instance(), TQT_SIGNAL(signalCollectionChanged()), this, TQT_SLOT(slotSetDirty()));
+ connect(CollectionList::instance(), TQ_SIGNAL(signalCollectionChanged()), this, TQ_SLOT(slotSetDirty()));
}
DynamicPlaylist::~DynamicPlaylist()
@@ -153,7 +153,7 @@ void DynamicPlaylist::updateItems()
PlaylistItemList newSiblings = siblings;
if(m_siblings != newSiblings) {
m_siblings = newSiblings;
- TQTimer::singleShot(0, this, TQT_SLOT(slotUpdateItems()));
+ TQTimer::singleShot(0, this, TQ_SLOT(slotUpdateItems()));
}
}
diff --git a/juk/dynamicplaylist.h b/juk/dynamicplaylist.h
index 3f03d365..ead7851c 100644
--- a/juk/dynamicplaylist.h
+++ b/juk/dynamicplaylist.h
@@ -24,7 +24,7 @@
class DynamicPlaylist : public Playlist
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
diff --git a/juk/exampleoptions.cpp b/juk/exampleoptions.cpp
index dc95baa1..bc2b4f01 100644
--- a/juk/exampleoptions.cpp
+++ b/juk/exampleoptions.cpp
@@ -55,12 +55,12 @@ ExampleOptionsDialog::ExampleOptionsDialog(TQWidget *parent) :
// Forward signals
- connect(m_options, TQT_SIGNAL(fileChanged()), TQT_SLOT(fileModeSelected()));
- connect(m_options, TQT_SIGNAL(dataChanged()), TQT_SIGNAL(dataChanged()));
- connect(m_options->m_exampleFile, TQT_SIGNAL(urlSelected(const TQString &)),
- this, TQT_SIGNAL(fileChanged(const TQString &)));
- connect(m_options->m_exampleFile, TQT_SIGNAL(returnPressed(const TQString &)),
- this, TQT_SIGNAL(fileChanged(const TQString &)));
+ connect(m_options, TQ_SIGNAL(fileChanged()), TQ_SLOT(fileModeSelected()));
+ connect(m_options, TQ_SIGNAL(dataChanged()), TQ_SIGNAL(dataChanged()));
+ connect(m_options->m_exampleFile, TQ_SIGNAL(urlSelected(const TQString &)),
+ this, TQ_SIGNAL(fileChanged(const TQString &)));
+ connect(m_options->m_exampleFile, TQ_SIGNAL(returnPressed(const TQString &)),
+ this, TQ_SIGNAL(fileChanged(const TQString &)));
}
void ExampleOptionsDialog::hideEvent(TQHideEvent *)
diff --git a/juk/exampleoptions.h b/juk/exampleoptions.h
index a161f95b..8228c9e2 100644
--- a/juk/exampleoptions.h
+++ b/juk/exampleoptions.h
@@ -21,7 +21,7 @@
class ExampleOptions : public ExampleOptionsBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
ExampleOptions(TQWidget *parent);
@@ -36,7 +36,7 @@ class ExampleOptions : public ExampleOptionsBase
// buttons to close it. It's just a little floating dialog.
class ExampleOptionsDialog : public TQDialog
{
- Q_OBJECT
+ TQ_OBJECT
public:
ExampleOptionsDialog(TQWidget *parent);
diff --git a/juk/exampleoptionsbase.ui b/juk/exampleoptionsbase.ui
index aeaf2cee..c5a09acf 100644
--- a/juk/exampleoptionsbase.ui
+++ b/juk/exampleoptionsbase.ui
@@ -267,21 +267,19 @@
<tabstop>m_exampleTrack</tabstop>
<tabstop>m_exampleYear</tabstop>
</tabstops>
-<Q_SIGNALS>
+<signals>
<signal>dataChanged()</signal>
<signal>fileChanged()</signal>
-</Q_SIGNALS>
-<Q_SLOTS>
+</signals>
+<slots>
<slot access="protected">exampleSelectionChanged()</slot>
<slot access="protected">exampleDataChanged()</slot>
<slot access="protected">exampleFileChanged()</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
<includes>
+ <include location="global" impldecl="in implementation">klineedit.h</include>
+ <include location="global" impldecl="in implementation">kpushbutton.h</include>
<include location="global" impldecl="in implementation">kurlrequester.h</include>
</includes>
-<includehints>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
-</includehints>
</UI>
diff --git a/juk/filerenamer.cpp b/juk/filerenamer.cpp
index 88681efe..e5398fdf 100644
--- a/juk/filerenamer.cpp
+++ b/juk/filerenamer.cpp
@@ -248,11 +248,11 @@ FileRenamerWidget::FileRenamerWidget(TQWidget *parent) :
m_category->insertItem(category);
}
- connect(m_exampleDialog, TQT_SIGNAL(signalShown()), TQT_SLOT(exampleDialogShown()));
- connect(m_exampleDialog, TQT_SIGNAL(signalHidden()), TQT_SLOT(exampleDialogHidden()));
- connect(m_exampleDialog, TQT_SIGNAL(dataChanged()), TQT_SLOT(dataSelected()));
- connect(m_exampleDialog, TQT_SIGNAL(fileChanged(const TQString &)),
- this, TQT_SLOT(fileSelected(const TQString &)));
+ connect(m_exampleDialog, TQ_SIGNAL(signalShown()), TQ_SLOT(exampleDialogShown()));
+ connect(m_exampleDialog, TQ_SIGNAL(signalHidden()), TQ_SLOT(exampleDialogHidden()));
+ connect(m_exampleDialog, TQ_SIGNAL(dataChanged()), TQ_SLOT(dataSelected()));
+ connect(m_exampleDialog, TQ_SIGNAL(fileChanged(const TQString &)),
+ this, TQ_SLOT(fileSelected(const TQString &)));
exampleTextChanged();
}
@@ -347,10 +347,10 @@ unsigned FileRenamerWidget::addRowCategory(TagType category)
row.upButton->setFlat(true);
row.downButton->setFlat(true);
- upMapper->connect(row.upButton, TQT_SIGNAL(clicked()), TQT_SLOT(map()));
- upMapper->setMapping(TQT_TQOBJECT(row.upButton), id);
- downMapper->connect(row.downButton, TQT_SIGNAL(clicked()), TQT_SLOT(map()));
- downMapper->setMapping(TQT_TQOBJECT(row.downButton), id);
+ upMapper->connect(row.upButton, TQ_SIGNAL(clicked()), TQ_SLOT(map()));
+ upMapper->setMapping(row.upButton, id);
+ downMapper->connect(row.downButton, TQ_SIGNAL(clicked()), TQ_SLOT(map()));
+ downMapper->setMapping(row.downButton, id);
TQString labelText = TQString("<b>%1</b>").arg(TagRenamerOptions::tagTypeText(category));
TQLabel *label = new TQLabel(labelText, frame);
@@ -359,12 +359,12 @@ unsigned FileRenamerWidget::addRowCategory(TagType category)
TQVBox *options = new TQVBox(frame);
row.enableButton = new KPushButton(i18n("Remove"), options);
- toggleMapper->connect(row.enableButton, TQT_SIGNAL(clicked()), TQT_SLOT(map()));
- toggleMapper->setMapping(TQT_TQOBJECT(row.enableButton), id);
+ toggleMapper->connect(row.enableButton, TQ_SIGNAL(clicked()), TQ_SLOT(map()));
+ toggleMapper->setMapping(row.enableButton, id);
row.optionsButton = new KPushButton(i18n("Options"), options);
- mapper->connect(row.optionsButton, TQT_SIGNAL(clicked()), TQT_SLOT(map()));
- mapper->setMapping(TQT_TQOBJECT(row.optionsButton), id);
+ mapper->connect(row.optionsButton, TQ_SIGNAL(clicked()), TQ_SLOT(map()));
+ mapper->setMapping(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(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);
+ 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);
}
bool FileRenamerWidget::removeRow(unsigned id)
@@ -448,7 +448,7 @@ bool FileRenamerWidget::removeRow(unsigned id)
// We can insert another row now, make sure GUI is updated to match.
m_insertCategory->setEnabled(true);
- TQTimer::singleShot(0, this, TQT_SLOT(exampleTextChanged()));
+ TQTimer::singleShot(0, this, TQ_SLOT(exampleTextChanged()));
return true;
}
@@ -462,8 +462,8 @@ void FileRenamerWidget::addFolderSeparatorCheckbox()
l->addWidget(cb, 0, AlignCenter);
cb->setChecked(false);
- connect(cb, TQT_SIGNAL(toggled(bool)),
- TQT_SLOT(exampleTextChanged()));
+ connect(cb, TQ_SIGNAL(toggled(bool)),
+ TQ_SLOT(exampleTextChanged()));
temp->show();
}
@@ -480,15 +480,15 @@ void FileRenamerWidget::createTagRows()
m_rows.reserve(categoryOrder.count());
m_folderSwitches.reserve(categoryOrder.count() - 1);
- 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");
+ mapper = new TQSignalMapper(this, "signal mapper");
+ toggleMapper = new TQSignalMapper(this, "toggle mapper");
+ upMapper = new TQSignalMapper(this, "up button mapper");
+ downMapper = new TQSignalMapper(this, "down button mapper");
- connect(mapper, TQT_SIGNAL(mapped(int)), TQT_SLOT(showCategoryOption(int)));
- connect(toggleMapper, TQT_SIGNAL(mapped(int)), TQT_SLOT(slotRemoveRow(int)));
- connect(upMapper, TQT_SIGNAL(mapped(int)), TQT_SLOT(moveItemUp(int)));
- connect(downMapper, TQT_SIGNAL(mapped(int)), TQT_SLOT(moveItemDown(int)));
+ connect(mapper, TQ_SIGNAL(mapped(int)), TQ_SLOT(showCategoryOption(int)));
+ connect(toggleMapper, TQ_SIGNAL(mapped(int)), TQ_SLOT(slotRemoveRow(int)));
+ connect(upMapper, TQ_SIGNAL(mapped(int)), TQ_SLOT(moveItemUp(int)));
+ connect(downMapper, TQ_SIGNAL(mapped(int)), TQ_SLOT(moveItemDown(int)));
m_mainFrame = new TQVBox(m_mainView->viewport());
m_mainFrame->setMargin(10);
@@ -687,7 +687,7 @@ void FileRenamerWidget::moveItem(unsigned id, MovementDirection direction)
layout->insertWidget(2 * pos, w);
layout->invalidate();
- TQTimer::singleShot(0, this, TQT_SLOT(exampleTextChanged()));
+ TQTimer::singleShot(0, this, TQ_SLOT(exampleTextChanged()));
}
unsigned FileRenamerWidget::idOfPosition(unsigned position) const
diff --git a/juk/filerenamer.h b/juk/filerenamer.h
index fbbc1a73..77275c53 100644
--- a/juk/filerenamer.h
+++ b/juk/filerenamer.h
@@ -139,7 +139,7 @@ private:
*/
class FileRenamerWidget : public FileRenamerBase, public CategoryReaderInterface
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/filerenamerbase.ui b/juk/filerenamerbase.ui
index a05d5801..01649070 100644
--- a/juk/filerenamerbase.ui
+++ b/juk/filerenamerbase.ui
@@ -360,19 +360,17 @@
<tabstop>m_insertCategory</tabstop>
<tabstop>m_showExample</tabstop>
</tabstops>
-<Q_SLOTS>
+<slots>
<slot access="protected">exampleTextChanged()</slot>
<slot access="protected">toggleExampleDialog()</slot>
<slot access="protected">insertCategory()</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in implementation">kcombobox.h</include>
+ <include location="global" impldecl="in implementation">klineedit.h</include>
+ <include location="global" impldecl="in implementation">kpushbutton.h</include>
<include location="global" impldecl="in implementation">kurlrequester.h</include>
+ <include location="global" impldecl="in implementation">tqscrollview.h</include>
</includes>
-<includehints>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
- <includehint>tqscrollview.h</includehint>
-</includehints>
</UI>
diff --git a/juk/filerenamerconfigdlg.h b/juk/filerenamerconfigdlg.h
index 3ae4d762..3a43e6fa 100644
--- a/juk/filerenamerconfigdlg.h
+++ b/juk/filerenamerconfigdlg.h
@@ -22,7 +22,7 @@ class FileRenamerWidget;
class FileRenamerConfigDlg : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
FileRenamerConfigDlg(TQWidget *parent);
diff --git a/juk/filerenameroptions.h b/juk/filerenameroptions.h
index 9e82394b..82cc1584 100644
--- a/juk/filerenameroptions.h
+++ b/juk/filerenameroptions.h
@@ -27,7 +27,7 @@
*/
class FileRenamerTagOptions : public FileRenamerTagOptionsBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -51,7 +51,7 @@ class FileRenamerTagOptions : public FileRenamerTagOptionsBase
*/
class TagOptionsDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/filerenameroptionsbase.ui b/juk/filerenameroptionsbase.ui
index ab3d2f61..061a5c5b 100644
--- a/juk/filerenameroptionsbase.ui
+++ b/juk/filerenameroptionsbase.ui
@@ -413,11 +413,11 @@
<slot>slotEmptyActionChanged()</slot>
</connection>
</connections>
-<Q_SLOTS>
+<slots>
<slot access="protected">slotBracketsChanged()</slot>
<slot access="protected">slotTrackWidthChanged()</slot>
<slot access="protected">slotEmptyActionChanged()</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in implementation">knuminput.h</include>
diff --git a/juk/folderplaylist.cpp b/juk/folderplaylist.cpp
index 71934359..e12e0746 100644
--- a/juk/folderplaylist.cpp
+++ b/juk/folderplaylist.cpp
@@ -26,7 +26,7 @@ FolderPlaylist::FolderPlaylist(PlaylistCollection *collection, const TQString &f
Playlist(collection, name, "folder"),
m_folder(folder)
{
- TQTimer::singleShot(0, this, TQT_SLOT(slotReload()));
+ TQTimer::singleShot(0, this, TQ_SLOT(slotReload()));
}
FolderPlaylist::~FolderPlaylist()
@@ -42,7 +42,7 @@ TQString FolderPlaylist::folder() const
void FolderPlaylist::setFolder(const TQString &s)
{
m_folder = s;
- TQTimer::singleShot(0, this, TQT_SLOT(slotReload()));
+ TQTimer::singleShot(0, this, TQ_SLOT(slotReload()));
}
////////////////////////////////////////////////////////////////////////////////
diff --git a/juk/folderplaylist.h b/juk/folderplaylist.h
index a25ffb53..495625dc 100644
--- a/juk/folderplaylist.h
+++ b/juk/folderplaylist.h
@@ -19,7 +19,7 @@
class FolderPlaylist : public Playlist
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/gstreamerplayer.cpp b/juk/gstreamerplayer.cpp
index 26bd8aef..464e7486 100644
--- a/juk/gstreamerplayer.cpp
+++ b/juk/gstreamerplayer.cpp
@@ -193,7 +193,7 @@ static GstBusSyncReply messageHandler(GstBus *, GstMessage *message, gpointer da
{
if(GST_MESSAGE_TYPE(message) == GST_MESSAGE_EOS) {
GStreamerPlayer *player = static_cast<GStreamerPlayer *>(data);
- TQTimer::singleShot(0, player, TQT_SLOT(stop()));
+ TQTimer::singleShot(0, player, TQ_SLOT(stop()));
}
gst_message_unref(message);
diff --git a/juk/gstreamerplayer.h b/juk/gstreamerplayer.h
index ef18785c..d133d27e 100644
--- a/juk/gstreamerplayer.h
+++ b/juk/gstreamerplayer.h
@@ -30,7 +30,7 @@
class GStreamerPlayer : public Player
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/historyplaylist.cpp b/juk/historyplaylist.cpp
index 47e6fddb..85d01c0c 100644
--- a/juk/historyplaylist.cpp
+++ b/juk/historyplaylist.cpp
@@ -31,8 +31,8 @@ HistoryPlaylist::HistoryPlaylist(PlaylistCollection *collection) :
setAllowDuplicates(true);
m_timer = new TQTimer(this);
- connect(PlayerManager::instance(), TQT_SIGNAL(signalPlay()), this, TQT_SLOT(slotAddPlaying()));
- connect(m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotCreateNewItem()));
+ connect(PlayerManager::instance(), TQ_SIGNAL(signalPlay()), this, TQ_SLOT(slotAddPlaying()));
+ connect(m_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotCreateNewItem()));
}
HistoryPlaylist::~HistoryPlaylist()
diff --git a/juk/historyplaylist.h b/juk/historyplaylist.h
index 2968f846..2b1e5c2e 100644
--- a/juk/historyplaylist.h
+++ b/juk/historyplaylist.h
@@ -36,7 +36,7 @@ private:
class HistoryPlaylist : public Playlist
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/juk.cpp b/juk/juk.cpp
index c66c19fc..ad35266c 100644
--- a/juk/juk.cpp
+++ b/juk/juk.cpp
@@ -71,8 +71,8 @@ JuK::JuK(TQWidget *parent, const char *name) :
createDirs();
SplashScreen::finishedLoading();
- TQTimer::singleShot(0, CollectionList::instance(), TQT_SLOT(slotCheckCache()));
- TQTimer::singleShot(0, TQT_TQOBJECT(this), TQT_SLOT(slotProcessArgs()));
+ TQTimer::singleShot(0, CollectionList::instance(), TQ_SLOT(slotCheckCache()));
+ TQTimer::singleShot(0, this, TQ_SLOT(slotProcessArgs()));
m_sliderAction->slotUpdateOrientation();
}
@@ -99,8 +99,8 @@ void JuK::setupLayout()
setCentralWidget(m_splitter);
m_statusLabel = new StatusLabel(m_splitter->playlist(), statusBar());
- connect(CollectionList::instance(), TQT_SIGNAL(signalCollectionChanged()),
- m_statusLabel, TQT_SLOT(updateData()));
+ connect(CollectionList::instance(), TQ_SIGNAL(signalCollectionChanged()),
+ m_statusLabel, TQ_SLOT(updateData()));
statusBar()->addWidget(m_statusLabel, 1);
PlayerManager::instance()->setStatusLabel(m_statusLabel);
@@ -112,15 +112,15 @@ void JuK::setupActions()
{
ActionCollection::actions()->setWidget(this);
- 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());
+ KStdAction::quit(this, TQ_SLOT(slotQuit()), ActionCollection::actions());
+ KStdAction::undo(this, TQ_SLOT(slotUndo()), ActionCollection::actions());
+ KStdAction::cut(kapp, TQ_SLOT(cut()), ActionCollection::actions());
+ KStdAction::copy(kapp, TQ_SLOT(copy()), ActionCollection::actions());
+ KStdAction::paste(kapp, TQ_SLOT(paste()), ActionCollection::actions());
+ KStdAction::clear(kapp, TQ_SLOT(clear()), ActionCollection::actions());
+ KStdAction::selectAll(kapp, TQ_SLOT(selectAll()), ActionCollection::actions());
- new TDEAction(i18n("Remove From Playlist"), "edit_remove", 0, TQT_TQOBJECT(kapp), TQT_SLOT(clear()), ActionCollection::actions(), "removeFromPlaylist");
+ new TDEAction(i18n("Remove From Playlist"), "edit_remove", 0, kapp, TQ_SLOT(clear()), ActionCollection::actions(), "removeFromPlaylist");
TDEActionMenu *actionMenu = new TDEActionMenu(i18n("&Random Play"), "roll", ActionCollection::actions(), "actionMenu");
actionMenu->setDelayed(false);
@@ -135,15 +135,15 @@ void JuK::setupActions()
ka = new TDERadioAction(i18n("Use &Album Random Play"), "roll", 0, ActionCollection::actions(), "albumRandomPlay");
ka->setExclusiveGroup("randomPlayGroup");
- connect(ka, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotCheckAlbumNextAction(bool)));
+ connect(ka, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotCheckAlbumNextAction(bool)));
actionMenu->insert(ka);
- new TDEAction(i18n("&Play"), "media-playback-start", 0, TQT_TQOBJECT(m_player), TQT_SLOT(play()), ActionCollection::actions(), "play");
- new TDEAction(i18n("P&ause"), "media-playback-pause", 0, TQT_TQOBJECT(m_player), TQT_SLOT(pause()), ActionCollection::actions(), "pause");
- new TDEAction(i18n("&Stop"), "media-playback-stop", 0, TQT_TQOBJECT(m_player), TQT_SLOT(stop()), ActionCollection::actions(), "stop");
+ new TDEAction(i18n("&Play"), "media-playback-start", 0, m_player, TQ_SLOT(play()), ActionCollection::actions(), "play");
+ new TDEAction(i18n("P&ause"), "media-playback-pause", 0, m_player, TQ_SLOT(pause()), ActionCollection::actions(), "pause");
+ new TDEAction(i18n("&Stop"), "media-playback-stop", 0, m_player, TQ_SLOT(stop()), ActionCollection::actions(), "stop");
- new TDEToolBarPopupAction(i18n("previous track", "Previous"), "media-skip-backward", TDEShortcut(), TQT_TQOBJECT(m_player), TQT_SLOT(back()), ActionCollection::actions(), "back");
- new TDEAction(i18n("next track", "&Next"), "media-skip-forward", TDEShortcut(), TQT_TQOBJECT(m_player), TQT_SLOT(forward()), ActionCollection::actions(), "forward");
+ new TDEToolBarPopupAction(i18n("previous track", "Previous"), "media-skip-backward", TDEShortcut(), m_player, TQ_SLOT(back()), ActionCollection::actions(), "back");
+ new TDEAction(i18n("next track", "&Next"), "media-skip-forward", TDEShortcut(), m_player, TQ_SLOT(forward()), ActionCollection::actions(), "forward");
new TDEToggleAction(i18n("&Loop Playlist"), 0, TDEShortcut(), ActionCollection::actions(), "loopPlaylist");
TDEToggleAction *resizeColumnAction =
new TDEToggleAction(i18n("&Resize Playlist Columns Manually"),
@@ -152,12 +152,12 @@ void JuK::setupActions()
// the following are not visible by default
- new TDEAction(i18n("Mute"), "mute", 0, TQT_TQOBJECT(m_player), TQT_SLOT(mute()), ActionCollection::actions(), "mute");
- new TDEAction(i18n("Volume Up"), "volumeUp", 0, TQT_TQOBJECT(m_player), TQT_SLOT(volumeUp()), ActionCollection::actions(), "volumeUp");
- new TDEAction(i18n("Volume Down"), "volumeDown", 0, TQT_TQOBJECT(m_player), TQT_SLOT(volumeDown()), ActionCollection::actions(), "volumeDown");
- new TDEAction(i18n("Play / Pause"), "playPause", 0, TQT_TQOBJECT(m_player), TQT_SLOT(playPause()), ActionCollection::actions(), "playPause");
- new TDEAction(i18n("Seek Forward"), "seekForward", 0, TQT_TQOBJECT(m_player), TQT_SLOT(seekForward()), ActionCollection::actions(), "seekForward");
- new TDEAction(i18n("Seek Back"), "seekBack", 0, TQT_TQOBJECT(m_player), TQT_SLOT(seekBack()), ActionCollection::actions(), "seekBack");
+ new TDEAction(i18n("Mute"), "mute", 0, m_player, TQ_SLOT(mute()), ActionCollection::actions(), "mute");
+ new TDEAction(i18n("Volume Up"), "volumeUp", 0, m_player, TQ_SLOT(volumeUp()), ActionCollection::actions(), "volumeUp");
+ new TDEAction(i18n("Volume Down"), "volumeDown", 0, m_player, TQ_SLOT(volumeDown()), ActionCollection::actions(), "volumeDown");
+ new TDEAction(i18n("Play / Pause"), "playPause", 0, m_player, TQ_SLOT(playPause()), ActionCollection::actions(), "playPause");
+ new TDEAction(i18n("Seek Forward"), "seekForward", 0, m_player, TQ_SLOT(seekForward()), ActionCollection::actions(), "seekForward");
+ new TDEAction(i18n("Seek Back"), "seekBack", 0, m_player, TQ_SLOT(seekBack()), ActionCollection::actions(), "seekBack");
//////////////////////////////////////////////////
// settings menu
@@ -175,12 +175,12 @@ void JuK::setupActions()
TDEShortcut(), ActionCollection::actions(), "dockOnClose");
m_togglePopupsAction =
new TDEToggleAction(i18n("Popup &Track Announcement"),
- TDEShortcut(), TQT_TQOBJECT(this), 0, ActionCollection::actions(), "togglePopups");
+ TDEShortcut(), this, 0, ActionCollection::actions(), "togglePopups");
new TDEToggleAction(i18n("Save &Play Queue on Exit"),
- TDEShortcut(), TQT_TQOBJECT(this), 0, ActionCollection::actions(), "saveUpcomingTracks");
+ TDEShortcut(), this, 0, ActionCollection::actions(), "saveUpcomingTracks");
- connect(m_toggleSystemTrayAction, TQT_SIGNAL(toggled(bool)),
- this, TQT_SLOT(slotToggleSystemTray(bool)));
+ connect(m_toggleSystemTrayAction, TQ_SIGNAL(toggled(bool)),
+ this, TQ_SLOT(slotToggleSystemTray(bool)));
m_outputSelectAction = PlayerManager::playerSelectAction(ActionCollection::actions());
@@ -188,13 +188,13 @@ void JuK::setupActions()
if(m_outputSelectAction)
m_outputSelectAction->setCurrentItem(0);
- new TDEAction(i18n("&Tag Guesser..."), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotConfigureTagGuesser()),
+ new TDEAction(i18n("&Tag Guesser..."), 0, 0, this, TQ_SLOT(slotConfigureTagGuesser()),
ActionCollection::actions(), "tagGuesserConfig");
- new TDEAction(i18n("&File Renamer..."), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotConfigureFileRenamer()),
+ new TDEAction(i18n("&File Renamer..."), 0, 0, this, TQ_SLOT(slotConfigureFileRenamer()),
ActionCollection::actions(), "fileRenamerConfig");
- KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(slotEditKeys()), ActionCollection::actions());
+ KStdAction::keyBindings(this, TQ_SLOT(slotEditKeys()), ActionCollection::actions());
//////////////////////////////////////////////////
// just in the toolbar
@@ -213,7 +213,7 @@ void JuK::setupSystemTray()
m_toggleDockOnCloseAction->setEnabled(true);
m_togglePopupsAction->setEnabled(true);
- connect(m_systemTray, TQT_SIGNAL(quitSelected()), TQT_TQOBJECT(this), TQT_SLOT(slotAboutToQuit()));
+ connect(m_systemTray, TQ_SIGNAL(quitSelected()), this, TQ_SLOT(slotAboutToQuit()));
}
else {
m_systemTray = 0;
@@ -224,20 +224,20 @@ void JuK::setupSystemTray()
void JuK::setupGlobalAccels()
{
- m_accel = new TDEGlobalAccel(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()));
- KeyDialog::insert(m_accel, "Stop", i18n("Stop Playing"), action("stop"), TQT_SLOT(activate()));
- KeyDialog::insert(m_accel, "Back", i18n("Back"), action("back"), TQT_SLOT(activate()));
- KeyDialog::insert(m_accel, "Forward", i18n("Forward"), action("forward"), TQT_SLOT(activate()));
- KeyDialog::insert(m_accel, "SeekBack", i18n("Seek Back"), action("seekBack"), TQT_SLOT(activate()));
- KeyDialog::insert(m_accel, "SeekForward", i18n("Seek Forward"), action("seekForward"), TQT_SLOT(activate()));
- 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"), TQT_TQOBJECT(this), TQT_SLOT(slotShowHide()));
- KeyDialog::insert(m_accel, "ForwardAlbum", i18n("Play Next Album"), action("forwardAlbum"), TQT_SLOT(activate()));
+ m_accel = new TDEGlobalAccel(this);
+
+ KeyDialog::insert(m_accel, "Play", i18n("Play"), action("play"), TQ_SLOT(activate()));
+ KeyDialog::insert(m_accel, "PlayPause", i18n("Play / Pause"), action("playPause"), TQ_SLOT(activate()));
+ KeyDialog::insert(m_accel, "Stop", i18n("Stop Playing"), action("stop"), TQ_SLOT(activate()));
+ KeyDialog::insert(m_accel, "Back", i18n("Back"), action("back"), TQ_SLOT(activate()));
+ KeyDialog::insert(m_accel, "Forward", i18n("Forward"), action("forward"), TQ_SLOT(activate()));
+ KeyDialog::insert(m_accel, "SeekBack", i18n("Seek Back"), action("seekBack"), TQ_SLOT(activate()));
+ KeyDialog::insert(m_accel, "SeekForward", i18n("Seek Forward"), action("seekForward"), TQ_SLOT(activate()));
+ KeyDialog::insert(m_accel, "VolumeUp", i18n("Volume Up"), action("volumeUp"), TQ_SLOT(activate()));
+ KeyDialog::insert(m_accel, "VolumeDown", i18n("Volume Down"), action("volumeDown"), TQ_SLOT(activate()));
+ KeyDialog::insert(m_accel, "Mute", i18n("Mute"), action("mute"), TQ_SLOT(activate()));
+ KeyDialog::insert(m_accel, "ShowHide", i18n("Show / Hide"), this, TQ_SLOT(slotShowHide()));
+ KeyDialog::insert(m_accel, "ForwardAlbum", i18n("Play Next Album"), action("forwardAlbum"), TQ_SLOT(activate()));
m_accel->setConfigGroup("Shortcuts");
m_accel->readSettings();
diff --git a/juk/juk.h b/juk/juk.h
index 629019a1..9dfb4910 100644
--- a/juk/juk.h
+++ b/juk/juk.h
@@ -36,7 +36,7 @@ class PlaylistSplitter;
class JuK : public TDEMainWindow
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/k3bexporter.cpp b/juk/k3bexporter.cpp
index 91ad104a..36f7eadb 100644
--- a/juk/k3bexporter.cpp
+++ b/juk/k3bexporter.cpp
@@ -62,7 +62,7 @@ class PlaylistAction : public TDEAction
typedef TQMap<const Playlist *, TQObject *> PlaylistRecipientMap;
/**
- * Defines a TQObject to call (using the m_slot SLOT) when an action is
+ * Defines a TQObject to call (using the m_slot TQ_SLOT) when an action is
* emitted from a Playlist.
*/
void addCallMapping(const Playlist *p, TQObject *obj)
@@ -87,9 +87,9 @@ class PlaylistAction : public TDEAction
// Invoke the slot using some trickery.
// XXX: Use the TQMetaObject to do this in TQt 4.
- connect(this, TQT_SIGNAL(activated()), recipient, m_slot);
+ connect(this, TQ_SIGNAL(activated()), recipient, m_slot);
emit(activated());
- disconnect(this, TQT_SIGNAL(activated()), recipient, m_slot);
+ disconnect(this, TQ_SIGNAL(activated()), recipient, m_slot);
}
private:
@@ -108,7 +108,7 @@ TDEAction *K3bExporter::action()
"export_to_k3b",
i18n("Add Selected Items to Audio or Data CD"),
SmallIconSet("k3b"),
- TQT_SLOT(slotExport())
+ TQ_SLOT(slotExport())
);
m_action->setShortcutConfigurable(false);
@@ -276,7 +276,7 @@ TDEAction *K3bPlaylistExporter::action()
SmallIconSet("k3b"),
0,
this,
- TQT_SLOT(slotExport()),
+ TQ_SLOT(slotExport()),
actions(),
"export_playlist_to_k3b"
);
diff --git a/juk/k3bexporter.h b/juk/k3bexporter.h
index ce4c6bf8..89337038 100644
--- a/juk/k3bexporter.h
+++ b/juk/k3bexporter.h
@@ -29,7 +29,7 @@ class PlaylistAction;
*/
class K3bExporter : public PlaylistExporter
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -77,7 +77,7 @@ private:
*/
class K3bPlaylistExporter : public K3bExporter
{
- Q_OBJECT
+ TQ_OBJECT
public:
K3bPlaylistExporter(PlaylistBox *parent = 0);
diff --git a/juk/keydialog.cpp b/juk/keydialog.cpp
index bc1d13a9..07584657 100644
--- a/juk/keydialog.cpp
+++ b/juk/keydialog.cpp
@@ -99,7 +99,7 @@ KeyDialog::KeyDialog(TDEGlobalAccel *keys, TDEActionCollection *actionCollection
new TQRadioButton(i18n("&No keys"), m_group);
new TQRadioButton(i18n("&Standard keys"), m_group);
new TQRadioButton(i18n("&Multimedia keys"), m_group);
- connect(m_group, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(slotKeys(int)));
+ connect(m_group, TQ_SIGNAL(clicked(int)), this, TQ_SLOT(slotKeys(int)));
TQWhatsThis::add(m_group,
i18n("Here you can select the keys used as global shortcuts to control the player"));
@@ -127,7 +127,7 @@ void KeyDialog::newDialog(TDEGlobalAccel *keys, TDEActionCollection *actionColle
m_widgetStack->raiseWidget(m_pKeyChooser);
m_group->setButton(selectedButton);
- connect(this, TQT_SIGNAL(defaultClicked()), this, TQT_SLOT(slotDefault()));
+ connect(this, TQ_SIGNAL(defaultClicked()), this, TQ_SLOT(slotDefault()));
}
int KeyDialog::configure()
diff --git a/juk/keydialog.h b/juk/keydialog.h
index a974598b..b23eff8f 100644
--- a/juk/keydialog.h
+++ b/juk/keydialog.h
@@ -25,7 +25,7 @@
class KeyDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/musicbrainzquery.cpp b/juk/musicbrainzquery.cpp
index 652bb30d..f1042930 100644
--- a/juk/musicbrainzquery.cpp
+++ b/juk/musicbrainzquery.cpp
@@ -82,11 +82,11 @@ void MusicBrainzLookup::confirmation()
return;
if(!queue.isEmpty()) {
- queue.append(tqMakePair(m_file, results()));
+ queue.append(qMakePair(m_file, results()));
return;
}
- queue.append(tqMakePair(m_file, results()));
+ queue.append(qMakePair(m_file, results()));
while(!queue.isEmpty()) {
TQPair<FileHandle, KTRMResultList> item = queue.first();
diff --git a/juk/nowplaying.cpp b/juk/nowplaying.cpp
index e9086f00..6c3110fa 100644
--- a/juk/nowplaying.cpp
+++ b/juk/nowplaying.cpp
@@ -67,8 +67,8 @@ NowPlaying::NowPlaying(TQWidget *parent, PlaylistCollection *collection, const c
setStretchFactor(new Line(this), 0);
setStretchFactor(new HistoryItem(this), 1);
- connect(PlayerManager::instance(), TQT_SIGNAL(signalPlay()), this, TQT_SLOT(slotUpdate()));
- connect(PlayerManager::instance(), TQT_SIGNAL(signalStop()), this, TQT_SLOT(slotUpdate()));
+ connect(PlayerManager::instance(), TQ_SIGNAL(signalPlay()), this, TQ_SLOT(slotUpdate()));
+ connect(PlayerManager::instance(), TQ_SIGNAL(signalStop()), this, TQ_SLOT(slotUpdate()));
hide();
}
@@ -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, TQ_ScaleMin));
+ setPixmap(image.smoothScale(imageSize, imageSize, TQImage::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() == Qt::LeftButton &&
+ event->button() == TQt::LeftButton &&
m_file.coverInfo()->hasCover())
{
m_file.coverInfo()->popup();
@@ -230,14 +230,14 @@ TrackItem::TrackItem(NowPlaying *parent) :
layout->addWidget(m_label);
layout->addStretch();
- connect(m_label, TQT_SIGNAL(linkClicked(const TQString &)), this,
- TQT_SLOT(slotOpenLink(const TQString &)));
+ connect(m_label, TQ_SIGNAL(linkClicked(const TQString &)), this,
+ TQ_SLOT(slotOpenLink(const TQString &)));
}
void TrackItem::update(const FileHandle &file)
{
m_file = file;
- TQTimer::singleShot(0, this, TQT_SLOT(slotUpdate()));
+ TQTimer::singleShot(0, this, TQ_SLOT(slotUpdate()));
}
void TrackItem::slotOpenLink(const TQString &link)
@@ -297,7 +297,7 @@ HistoryItem::HistoryItem(NowPlaying *parent) :
setText(TQString("<b>%1</b>").arg(i18n("History")));
m_timer = new TQTimer(this);
- connect(m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotAddPlaying()));
+ connect(m_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotAddPlaying()));
}
void HistoryItem::update(const FileHandle &file)
diff --git a/juk/nowplaying.h b/juk/nowplaying.h
index 60d040e2..0fc57f07 100644
--- a/juk/nowplaying.h
+++ b/juk/nowplaying.h
@@ -39,7 +39,7 @@ class Playlist;
class NowPlaying : public TQHBox
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -126,7 +126,7 @@ public:
class TrackItem : public TQWidget, public NowPlayingItem
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -148,7 +148,7 @@ private:
class HistoryItem : public LinkLabel, public NowPlayingItem
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/playermanager.cpp b/juk/playermanager.cpp
index 044198c3..8fe33f72 100644
--- a/juk/playermanager.cpp
+++ b/juk/playermanager.cpp
@@ -642,12 +642,12 @@ void PlayerManager::setup()
m_sliderAction = action<SliderAction>("trackPositionAction");
- connect(m_sliderAction, TQT_SIGNAL(signalPositionChanged(int)),
- this, TQT_SLOT(seekPosition(int)));
- connect(m_sliderAction->trackPositionSlider(), TQT_SIGNAL(valueChanged(int)),
- this, TQT_SLOT(slotUpdateTime(int)));
- connect(m_sliderAction, TQT_SIGNAL(signalVolumeChanged(int)),
- this, TQT_SLOT(slotSetVolume(int)));
+ connect(m_sliderAction, TQ_SIGNAL(signalPositionChanged(int)),
+ this, TQ_SLOT(seekPosition(int)));
+ connect(m_sliderAction->trackPositionSlider(), TQ_SIGNAL(valueChanged(int)),
+ this, TQ_SLOT(slotUpdateTime(int)));
+ connect(m_sliderAction, TQ_SIGNAL(signalVolumeChanged(int)),
+ this, TQ_SLOT(slotSetVolume(int)));
// Call this method manually to avoid warnings.
@@ -655,7 +655,7 @@ void PlayerManager::setup()
if(outputAction) {
setOutput(static_cast<TDESelectAction *>(outputAction)->currentText());
- connect(outputAction, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(slotSetOutput(const TQString &)));
+ connect(outputAction, TQ_SIGNAL(activated(const TQString &)), this, TQ_SLOT(slotSetOutput(const TQString &)));
}
else
m_player = createPlayer();
@@ -673,7 +673,7 @@ void PlayerManager::setup()
m_player->setVolume(volume);
m_timer = new TQTimer(this, "play timer");
- connect(m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotPollPlay()));
+ connect(m_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotPollPlay()));
}
TQString PlayerManager::randomPlayMode() const
diff --git a/juk/playermanager.h b/juk/playermanager.h
index e8f6e528..3c722338 100644
--- a/juk/playermanager.h
+++ b/juk/playermanager.h
@@ -32,7 +32,7 @@ class PlaylistInterface;
class PlayerManager : public Player, public PlayerIface
{
- Q_OBJECT
+ TQ_OBJECT
protected:
diff --git a/juk/playlist.cpp b/juk/playlist.cpp
index de65b6e7..2895542d 100644
--- a/juk/playlist.cpp
+++ b/juk/playlist.cpp
@@ -65,6 +65,8 @@
#include "tagtransactionmanager.h"
#include "cache.h"
+#define TStringToTQString(s) TQString::fromUtf8((s).toCString(true))
+
using namespace ActionCollection;
/**
@@ -312,7 +314,7 @@ Playlist::Playlist(PlaylistCollection *collection, const TQString &name,
const TQString &iconName) :
TDEListView(collection->playlistStack(), name.latin1()),
m_collection(collection),
- m_fetcher(new WebImageFetcher(TQT_TQOBJECT(this))),
+ m_fetcher(new WebImageFetcher(this)),
m_selectedCount(0),
m_allowDuplicates(false),
m_polished(false),
@@ -336,7 +338,7 @@ Playlist::Playlist(PlaylistCollection *collection, const PlaylistItemList &items
const TQString &name, const TQString &iconName) :
TDEListView(collection->playlistStack(), name.latin1()),
m_collection(collection),
- m_fetcher(new WebImageFetcher(TQT_TQOBJECT(this))),
+ m_fetcher(new WebImageFetcher(this)),
m_selectedCount(0),
m_allowDuplicates(false),
m_polished(false),
@@ -361,7 +363,7 @@ Playlist::Playlist(PlaylistCollection *collection, const TQFileInfo &playlistFil
const TQString &iconName) :
TDEListView(collection->playlistStack()),
m_collection(collection),
- m_fetcher(new WebImageFetcher(TQT_TQOBJECT(this))),
+ m_fetcher(new WebImageFetcher(this)),
m_selectedCount(0),
m_allowDuplicates(false),
m_polished(false),
@@ -385,7 +387,7 @@ Playlist::Playlist(PlaylistCollection *collection, const TQFileInfo &playlistFil
Playlist::Playlist(PlaylistCollection *collection, bool delaySetup) :
TDEListView(collection->playlistStack()),
m_collection(collection),
- m_fetcher(new WebImageFetcher(TQT_TQOBJECT(this))),
+ m_fetcher(new WebImageFetcher(this)),
m_selectedCount(0),
m_allowDuplicates(false),
m_polished(false),
@@ -1110,11 +1112,11 @@ void Playlist::decode(TQMimeSource *s, PlaylistItem *item)
bool Playlist::eventFilter(TQObject *watched, TQEvent *e)
{
- if(TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(header())) {
+ if(watched == header()) {
switch(e->type()) {
case TQEvent::MouseMove:
{
- if((TQT_TQMOUSEEVENT(e)->state() & Qt::LeftButton) == Qt::LeftButton &&
+ if((static_cast<TQMouseEvent*>(e)->state() & TQt::LeftButton) == TQt::LeftButton &&
!action<TDEToggleAction>("resizeColumnsManually")->isChecked())
{
m_columnWidthModeChanged = true;
@@ -1127,7 +1129,7 @@ bool Playlist::eventFilter(TQObject *watched, TQEvent *e)
}
case TQEvent::MouseButtonPress:
{
- if(TQT_TQMOUSEEVENT(e)->button() == Qt::RightButton)
+ if(static_cast<TQMouseEvent*>(e)->button() == TQt::RightButton)
m_headerMenu->popup(TQCursor::pos());
break;
@@ -1140,7 +1142,7 @@ bool Playlist::eventFilter(TQObject *watched, TQEvent *e)
}
if(!manualResize() && m_widthsDirty)
- TQTimer::singleShot(0, this, TQT_SLOT(slotUpdateColumnWidths()));
+ TQTimer::singleShot(0, this, TQ_SLOT(slotUpdateColumnWidths()));
break;
}
default:
@@ -1247,7 +1249,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() == Qt::LeftButton)
+ if(e->button() == TQt::LeftButton)
TDEListView::contentsMouseDoubleClickEvent(e);
}
@@ -1382,8 +1384,8 @@ void Playlist::refreshAlbums(const PlaylistItemList &items, coverKey id)
TQString artist = (*it)->file().tag()->artist();
TQString album = (*it)->file().tag()->album();
- if(albums.find(tqMakePair(artist, album)) == albums.end())
- albums.append(tqMakePair(artist, album));
+ if(albums.find(qMakePair(artist, album)) == albums.end())
+ albums.append(qMakePair(artist, album));
(*it)->file().coverInfo()->setCoverId(id);
if(setAlbumCovers)
@@ -1545,7 +1547,7 @@ void Playlist::polish()
// setup header RMB menu
//////////////////////////////////////////////////
- m_columnVisibleAction = new TDEActionMenu(i18n("&Show Columns"), TQT_TQOBJECT(this), "showColumns");
+ m_columnVisibleAction = new TDEActionMenu(i18n("&Show Columns"), this, "showColumns");
m_headerMenu = m_columnVisibleAction->popupMenu();
m_headerMenu->insertTitle(i18n("Show"));
@@ -1559,25 +1561,25 @@ void Playlist::polish()
adjustColumn(i);
}
- connect(m_headerMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotToggleColumnVisible(int)));
+ connect(m_headerMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotToggleColumnVisible(int)));
- connect(this, TQT_SIGNAL(contextMenuRequested(TQListViewItem *, const TQPoint &, int)),
- this, TQT_SLOT(slotShowRMBMenu(TQListViewItem *, const TQPoint &, int)));
- connect(this, TQT_SIGNAL(itemRenamed(TQListViewItem *, const TQString &, int)),
- this, TQT_SLOT(slotInlineEditDone(TQListViewItem *, const TQString &, int)));
- connect(this, TQT_SIGNAL(doubleClicked(TQListViewItem *)),
- this, TQT_SLOT(slotPlayCurrent()));
- connect(this, TQT_SIGNAL(returnPressed(TQListViewItem *)),
- this, TQT_SLOT(slotPlayCurrent()));
+ connect(this, TQ_SIGNAL(contextMenuRequested(TQListViewItem *, const TQPoint &, int)),
+ this, TQ_SLOT(slotShowRMBMenu(TQListViewItem *, const TQPoint &, int)));
+ connect(this, TQ_SIGNAL(itemRenamed(TQListViewItem *, const TQString &, int)),
+ this, TQ_SLOT(slotInlineEditDone(TQListViewItem *, const TQString &, int)));
+ connect(this, TQ_SIGNAL(doubleClicked(TQListViewItem *)),
+ this, TQ_SLOT(slotPlayCurrent()));
+ connect(this, TQ_SIGNAL(returnPressed(TQListViewItem *)),
+ this, TQ_SLOT(slotPlayCurrent()));
- connect(header(), TQT_SIGNAL(sizeChange(int, int, int)),
- this, TQT_SLOT(slotColumnSizeChanged(int, int, int)));
+ connect(header(), TQ_SIGNAL(sizeChange(int, int, int)),
+ this, TQ_SLOT(slotColumnSizeChanged(int, int, int)));
- connect(renameLineEdit(), TQT_SIGNAL(completionModeChanged(TDEGlobalSettings::Completion)),
- this, TQT_SLOT(slotInlineCompletionModeChanged(TDEGlobalSettings::Completion)));
+ connect(renameLineEdit(), TQ_SIGNAL(completionModeChanged(TDEGlobalSettings::Completion)),
+ this, TQ_SLOT(slotInlineCompletionModeChanged(TDEGlobalSettings::Completion)));
- connect(action("resizeColumnsManually"), TQT_SIGNAL(activated()),
- this, TQT_SLOT(slotColumnResizeModeChanged()));
+ connect(action("resizeColumnsManually"), TQ_SIGNAL(activated()),
+ this, TQ_SLOT(slotColumnResizeModeChanged()));
if(action<TDEToggleAction>("resizeColumnsManually")->isChecked())
setHScrollBarMode(Auto);
@@ -1651,13 +1653,13 @@ void Playlist::setup()
{
setItemMargin(3);
- connect(header(), TQT_SIGNAL(indexChange(int, int, int)), this, TQT_SLOT(slotColumnOrderChanged(int, int, int)));
+ connect(header(), TQ_SIGNAL(indexChange(int, int, int)), this, TQ_SLOT(slotColumnOrderChanged(int, int, int)));
- connect(m_fetcher, TQT_SIGNAL(signalCoverChanged(int)), this, TQT_SLOT(slotCoverChanged(int)));
+ connect(m_fetcher, TQ_SIGNAL(signalCoverChanged(int)), this, TQ_SLOT(slotCoverChanged(int)));
// Prevent list of selected items from changing while internet search is in
// progress.
- connect(this, TQT_SIGNAL(selectionChanged()), m_fetcher, TQT_SLOT(abortSearch()));
+ connect(this, TQ_SIGNAL(selectionChanged()), m_fetcher, TQ_SLOT(abortSearch()));
setSorting(1);
}
@@ -2076,7 +2078,7 @@ void Playlist::slotShowRMBMenu(TQListViewItem *item, const TQPoint &point, int c
m_rmbMenu = new TDEPopupMenu(this);
m_rmbUpcomingID = m_rmbMenu->insertItem(SmallIcon("today"),
- i18n("Add to Play Queue"), this, TQT_SLOT(slotAddToUpcoming()));
+ i18n("Add to Play Queue"), this, TQ_SLOT(slotAddToUpcoming()));
m_rmbMenu->insertSeparator();
if(!readOnly()) {
@@ -2090,7 +2092,7 @@ void Playlist::slotShowRMBMenu(TQListViewItem *item, const TQPoint &point, int c
action("edit_copy")->plug(m_rmbMenu);
m_rmbEditID = m_rmbMenu->insertItem(
- i18n("Edit"), this, TQT_SLOT(slotRenameTag()));
+ i18n("Edit"), this, TQ_SLOT(slotRenameTag()));
action("refresh")->plug(m_rmbMenu);
action("removeItem")->plug(m_rmbMenu);
@@ -2105,7 +2107,7 @@ void Playlist::slotShowRMBMenu(TQListViewItem *item, const TQPoint &point, int c
m_rmbMenu->insertSeparator();
m_rmbMenu->insertItem(
- SmallIcon("folder-new"), i18n("Create Playlist From Selected Items..."), this, TQT_SLOT(slotCreateGroup()));
+ SmallIcon("folder-new"), i18n("Create Playlist From Selected Items..."), this, TQ_SLOT(slotCreateGroup()));
K3bExporter *exporter = new K3bExporter(this);
TDEAction *k3bAction = exporter->action();
@@ -2168,7 +2170,7 @@ void Playlist::slotRenameTag()
TQStringList genreList;
TagLib::StringList genres = TagLib::ID3v1::genreList();
for(TagLib::StringList::ConstIterator it = genres.begin(); it != genres.end(); ++it)
- genreList.append(TStringToQString((*it)));
+ genreList.append(TStringToTQString((*it)));
edit->completionObject()->setItems(genreList);
break;
}
diff --git a/juk/playlist.h b/juk/playlist.h
index e06744b3..2425b760 100644
--- a/juk/playlist.h
+++ b/juk/playlist.h
@@ -45,7 +45,7 @@ typedef TQValueList<PlaylistItem *> PlaylistItemList;
class Playlist : public TDEListView, public PlaylistInterface
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/playlistbox.cpp b/juk/playlistbox.cpp
index 3da042d2..a8a09018 100644
--- a/juk/playlistbox.cpp
+++ b/juk/playlistbox.cpp
@@ -120,36 +120,36 @@ PlaylistBox::PlaylistBox(TQWidget *parent, TQWidgetStack *playlistStack,
raise(CollectionList::instance());
viewModeAction->plug(m_contextMenu);
- connect(viewModeAction, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSetViewMode(int)));
+ connect(viewModeAction, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotSetViewMode(int)));
- connect(this, TQT_SIGNAL(selectionChanged()),
- this, TQT_SLOT(slotPlaylistChanged()));
+ connect(this, TQ_SIGNAL(selectionChanged()),
+ this, TQ_SLOT(slotPlaylistChanged()));
- connect(this, TQT_SIGNAL(doubleClicked(TQListViewItem *)),
- this, TQT_SLOT(slotDoubleClicked()));
+ connect(this, TQ_SIGNAL(doubleClicked(TQListViewItem *)),
+ this, TQ_SLOT(slotDoubleClicked()));
- connect(this, TQT_SIGNAL(contextMenuRequested(TQListViewItem *, const TQPoint &, int)),
- this, TQT_SLOT(slotShowContextMenu(TQListViewItem *, const TQPoint &, int)));
+ connect(this, TQ_SIGNAL(contextMenuRequested(TQListViewItem *, const TQPoint &, int)),
+ this, TQ_SLOT(slotShowContextMenu(TQListViewItem *, const TQPoint &, int)));
TagTransactionManager *tagManager = TagTransactionManager::instance();
- connect(tagManager, TQT_SIGNAL(signalAboutToModifyTags()), TQT_SLOT(slotFreezePlaylists()));
- connect(tagManager, TQT_SIGNAL(signalDoneModifyingTags()), TQT_SLOT(slotUnfreezePlaylists()));
+ connect(tagManager, TQ_SIGNAL(signalAboutToModifyTags()), TQ_SLOT(slotFreezePlaylists()));
+ connect(tagManager, TQ_SIGNAL(signalDoneModifyingTags()), TQ_SLOT(slotUnfreezePlaylists()));
setupUpcomingPlaylist();
- connect(CollectionList::instance(), TQT_SIGNAL(signalNewTag(const TQString &, unsigned)),
- this, TQT_SLOT(slotAddItem(const TQString &, unsigned)));
- connect(CollectionList::instance(), TQT_SIGNAL(signalRemovedTag(const TQString &, unsigned)),
- this, TQT_SLOT(slotRemoveItem(const TQString &, unsigned)));
+ connect(CollectionList::instance(), TQ_SIGNAL(signalNewTag(const TQString &, unsigned)),
+ this, TQ_SLOT(slotAddItem(const TQString &, unsigned)));
+ connect(CollectionList::instance(), TQ_SIGNAL(signalRemovedTag(const TQString &, unsigned)),
+ this, TQ_SLOT(slotRemoveItem(const TQString &, unsigned)));
- TQTimer::singleShot(0, object(), TQT_SLOT(slotScanFolders()));
+ TQTimer::singleShot(0, object(), TQ_SLOT(slotScanFolders()));
enableDirWatch(true);
// Auto-save playlists after 10 minutes
- TQTimer::singleShot(600000, this, TQT_SLOT(slotSavePlaylists()));
+ TQTimer::singleShot(600000, this, TQ_SLOT(slotSavePlaylists()));
m_showTimer = new TQTimer(this);
- connect(m_showTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotShowDropTarget()));
+ connect(m_showTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotShowDropTarget()));
}
PlaylistBox::~PlaylistBox()
@@ -232,8 +232,8 @@ void PlaylistBox::setupPlaylist(Playlist *playlist, const TQString &iconName)
void PlaylistBox::setupPlaylist(Playlist *playlist, const TQString &iconName, Item *parentItem)
{
- connect(playlist, TQT_SIGNAL(signalPlaylistItemsDropped(Playlist *)),
- TQT_SLOT(slotPlaylistItemsDropped(Playlist *)));
+ connect(playlist, TQ_SIGNAL(signalPlaylistItemsDropped(Playlist *)),
+ TQ_SLOT(slotPlaylistItemsDropped(Playlist *)));
PlaylistCollection::setupPlaylist(playlist, iconName);
@@ -375,7 +375,7 @@ void PlaylistBox::slotSavePlaylists()
Cache::savePlaylists(l);
CoverManager::saveCovers();
- TQTimer::singleShot(600000, this, TQT_SLOT(slotSavePlaylists()));
+ TQTimer::singleShot(600000, this, TQ_SLOT(slotSavePlaylists()));
}
void PlaylistBox::slotShowDropTarget()
@@ -524,14 +524,14 @@ void PlaylistBox::contentsDragLeaveEvent(TQDragLeaveEvent *e)
void PlaylistBox::contentsMousePressEvent(TQMouseEvent *e)
{
- if(e->button() == Qt::LeftButton)
+ if(e->button() == TQt::LeftButton)
m_doingMultiSelect = true;
TDEListView::contentsMousePressEvent(e);
}
void PlaylistBox::contentsMouseReleaseEvent(TQMouseEvent *e)
{
- if(e->button() == Qt::LeftButton) {
+ if(e->button() == TQt::LeftButton) {
m_doingMultiSelect = false;
slotPlaylistChanged();
}
@@ -770,11 +770,11 @@ void PlaylistBox::Item::init()
list->addNameToDict(m_text);
if(m_playlist) {
- connect(m_playlist, TQT_SIGNAL(signalNameChanged(const TQString &)),
- this, TQT_SLOT(slotSetName(const TQString &)));
- connect(m_playlist, TQT_SIGNAL(destroyed()), this, TQT_SLOT(deleteLater()));
- connect(m_playlist, TQT_SIGNAL(signalEnableDirWatch(bool)),
- list->object(), TQT_SLOT(slotEnableDirWatch(bool)));
+ connect(m_playlist, TQ_SIGNAL(signalNameChanged(const TQString &)),
+ this, TQ_SLOT(slotSetName(const TQString &)));
+ connect(m_playlist, TQ_SIGNAL(destroyed()), this, TQ_SLOT(deleteLater()));
+ connect(m_playlist, TQ_SIGNAL(signalEnableDirWatch(bool)),
+ list->object(), TQ_SLOT(slotEnableDirWatch(bool)));
}
if(m_playlist == CollectionList::instance()) {
diff --git a/juk/playlistbox.h b/juk/playlistbox.h
index d8169714..4bcd82f9 100644
--- a/juk/playlistbox.h
+++ b/juk/playlistbox.h
@@ -40,7 +40,7 @@ typedef TQValueList<Playlist *> PlaylistList;
class PlaylistBox : public TDEListView, public PlaylistCollection
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -141,7 +141,7 @@ class PlaylistBox::Item : public TQObject, public TDEListViewItem
friend class CompactViewMode;
friend class TreeViewMode;
- Q_OBJECT
+ TQ_OBJECT
// moc won't let me create private TQObject subclasses and TQt won't let me
diff --git a/juk/playlistcollection.cpp b/juk/playlistcollection.cpp
index 7d4e7f7d..1d96e025 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<Playlist *>(TQT_TQWIDGET(obj));
+ Playlist *p = static_cast<Playlist *>(obj);
l.append(p->name());
}
@@ -670,8 +670,8 @@ void PlaylistCollection::setupPlaylist(Playlist *playlist, const TQString &)
if(!playlist->name().isNull())
m_playlistNames.insert(playlist->name());
- TQObject::connect(playlist, TQT_SIGNAL(selectionChanged()),
- object(), TQT_SIGNAL(signalSelectedItemsChanged()));
+ TQObject::connect(playlist, TQ_SIGNAL(selectionChanged()),
+ object(), TQ_SIGNAL(signalSelectedItemsChanged()));
}
bool PlaylistCollection::importPlaylists() const
@@ -706,16 +706,16 @@ void PlaylistCollection::clearShowMore(bool raisePlaylist)
void PlaylistCollection::enableDirWatch(bool enable)
{
- TQObject *collection = TQT_TQOBJECT(CollectionList::instance());
+ TQObject *collection = CollectionList::instance();
m_dirLister.disconnect(object());
if(enable) {
- TQObject::connect(&m_dirLister, TQT_SIGNAL(newItems(const KFileItemList &)),
- object(), TQT_SLOT(slotNewItems(const KFileItemList &)));
- TQObject::connect(&m_dirLister, TQT_SIGNAL(refreshItems(const KFileItemList &)),
- collection, TQT_SLOT(slotRefreshItems(const KFileItemList &)));
- TQObject::connect(&m_dirLister, TQT_SIGNAL(deleteItem(KFileItem *)),
- collection, TQT_SLOT(slotDeleteItem(KFileItem *)));
+ TQObject::connect(&m_dirLister, TQ_SIGNAL(newItems(const KFileItemList &)),
+ object(), TQ_SLOT(slotNewItems(const KFileItemList &)));
+ TQObject::connect(&m_dirLister, TQ_SIGNAL(refreshItems(const KFileItemList &)),
+ collection, TQ_SLOT(slotRefreshItems(const KFileItemList &)));
+ TQObject::connect(&m_dirLister, TQ_SIGNAL(deleteItem(KFileItem *)),
+ collection, TQ_SLOT(slotDeleteItem(KFileItem *)));
}
}
@@ -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<Playlist*>(TQT_TQWIDGET(obj));
+ Playlist *p = static_cast<Playlist*>(obj);
if(p->name() == name) {
list = p;
break;
@@ -842,11 +842,11 @@ PlaylistCollection::ActionHandler::ActionHandler(PlaylistCollection *collection)
menu = new TDEActionMenu(i18n("&New"), "document-new", actions(), "file_new");
- menu->insert(createAction(i18n("&Empty Playlist..."), TQT_SLOT(slotCreatePlaylist()),
+ menu->insert(createAction(i18n("&Empty Playlist..."), TQ_SLOT(slotCreatePlaylist()),
"newPlaylist", "window-new", "CTRL+n"));
- menu->insert(createAction(i18n("&Search Playlist..."), TQT_SLOT(slotCreateSearchPlaylist()),
+ menu->insert(createAction(i18n("&Search Playlist..."), TQ_SLOT(slotCreateSearchPlaylist()),
"newSearchPlaylist", "edit-find", "CTRL+f"));
- menu->insert(createAction(i18n("Playlist From &Folder..."), TQT_SLOT(slotCreateFolderPlaylist()),
+ menu->insert(createAction(i18n("Playlist From &Folder..."), TQ_SLOT(slotCreateFolderPlaylist()),
"newDirectoryPlaylist", "document-open", "CTRL+d"));
// Guess tag info menu
@@ -855,47 +855,47 @@ PlaylistCollection::ActionHandler::ActionHandler(PlaylistCollection *collection)
menu = new TDEActionMenu(i18n("&Guess Tag Information"), TQString(), actions(), "guessTag");
menu->setIconSet(SmallIconSet("wizard"));
- menu->insert(createAction(i18n("From &File Name"), TQT_SLOT(slotGuessTagFromFile()),
+ menu->insert(createAction(i18n("From &File Name"), TQ_SLOT(slotGuessTagFromFile()),
"guessTagFile", "fileimport", "CTRL+g"));
- menu->insert(createAction(i18n("From &Internet"), TQT_SLOT(slotGuessTagFromInternet()),
+ menu->insert(createAction(i18n("From &Internet"), TQ_SLOT(slotGuessTagFromInternet()),
"guessTagInternet", "connect_established", "CTRL+i"));
#else
- createAction(i18n("Guess Tag Information From &File Name"), TQT_SLOT(slotGuessTagFromFile()),
+ createAction(i18n("Guess Tag Information From &File Name"), TQ_SLOT(slotGuessTagFromFile()),
"guessTag", "fileimport", "CTRL+f");
#endif
- createAction(i18n("Play First Track"),TQT_SLOT(slotPlayFirst()), "playFirst");
- createAction(i18n("Play Next Album"), TQT_SLOT(slotPlayNextAlbum()), "forwardAlbum", "next");
+ createAction(i18n("Play First Track"),TQ_SLOT(slotPlayFirst()), "playFirst");
+ createAction(i18n("Play Next Album"), TQ_SLOT(slotPlayNextAlbum()), "forwardAlbum", "next");
- createAction(i18n("Open..."), TQT_SLOT(slotOpen()), "file_open", "document-open", "CTRL+o");
- createAction(i18n("Add &Folder..."), TQT_SLOT(slotAddFolder()), "openDirectory", "document-open");
- createAction(i18n("&Rename..."), TQT_SLOT(slotRename()), "renamePlaylist", "lineedit");
- createAction(i18n("D&uplicate..."), TQT_SLOT(slotDuplicate()), "duplicatePlaylist", "edit-copy");
- createAction(i18n("Save"), TQT_SLOT(slotSave()), "file_save", "document-save", "CTRL+s");
- createAction(i18n("Save As..."), TQT_SLOT(slotSaveAs()), "file_save_as", "document-save-as");
- createAction(i18n("R&emove"), TQT_SLOT(slotRemove()), "deleteItemPlaylist", "edittrash");
- createAction(i18n("Reload"), TQT_SLOT(slotReload()), "reloadPlaylist", "reload");
- createAction(i18n("Edit Search..."), TQT_SLOT(slotEditSearch()), "editSearch", "edit-clear");
+ createAction(i18n("Open..."), TQ_SLOT(slotOpen()), "file_open", "document-open", "CTRL+o");
+ createAction(i18n("Add &Folder..."), TQ_SLOT(slotAddFolder()), "openDirectory", "document-open");
+ createAction(i18n("&Rename..."), TQ_SLOT(slotRename()), "renamePlaylist", "lineedit");
+ createAction(i18n("D&uplicate..."), TQ_SLOT(slotDuplicate()), "duplicatePlaylist", "edit-copy");
+ createAction(i18n("Save"), TQ_SLOT(slotSave()), "file_save", "document-save", "CTRL+s");
+ createAction(i18n("Save As..."), TQ_SLOT(slotSaveAs()), "file_save_as", "document-save-as");
+ createAction(i18n("R&emove"), TQ_SLOT(slotRemove()), "deleteItemPlaylist", "edittrash");
+ createAction(i18n("Reload"), TQ_SLOT(slotReload()), "reloadPlaylist", "reload");
+ createAction(i18n("Edit Search..."), TQ_SLOT(slotEditSearch()), "editSearch", "edit-clear");
- createAction(i18n("&Delete"), TQT_SLOT(slotRemoveItems()), "removeItem", "edit-delete");
- createAction(i18n("Refresh"), TQT_SLOT(slotRefreshItems()), "refresh", "reload");
- createAction(i18n("&Rename File"), TQT_SLOT(slotRenameItems()), "renameFile", "document-save-as", "CTRL+r");
+ createAction(i18n("&Delete"), TQ_SLOT(slotRemoveItems()), "removeItem", "edit-delete");
+ createAction(i18n("Refresh"), TQ_SLOT(slotRefreshItems()), "refresh", "reload");
+ createAction(i18n("&Rename File"), TQ_SLOT(slotRenameItems()), "renameFile", "document-save-as", "CTRL+r");
menu = new TDEActionMenu(i18n("Cover Manager"), TQString(), actions(), "coverManager");
menu->setIconSet(SmallIconSet("image-x-generic"));
menu->insert(createAction(i18n("&View Cover"),
- TQT_SLOT(slotViewCovers()), "viewCover", "viewmag"));
+ TQ_SLOT(slotViewCovers()), "viewCover", "viewmag"));
menu->insert(createAction(i18n("Get Cover From &File..."),
- TQT_SLOT(slotAddLocalCover()), "addCover", "fileimport", "CTRL+SHIFT+f"));
+ TQ_SLOT(slotAddLocalCover()), "addCover", "fileimport", "CTRL+SHIFT+f"));
// Do not rename googleCover for backward compatibility
menu->insert(createAction(i18n("Get Cover From &Internet..."),
- TQT_SLOT(slotAddInternetCover()), "googleCover", "connect_established", "CTRL+SHIFT+g"));
+ TQ_SLOT(slotAddInternetCover()), "googleCover", "connect_established", "CTRL+SHIFT+g"));
menu->insert(createAction(i18n("&Delete Cover"),
- TQT_SLOT(slotRemoveCovers()), "removeCover", "edit-delete"));
+ TQ_SLOT(slotRemoveCovers()), "removeCover", "edit-delete"));
menu->insert(createAction(i18n("Show Cover &Manager"),
- TQT_SLOT(slotShowCoverManager()), "showCoverManager"));
+ TQ_SLOT(slotShowCoverManager()), "showCoverManager"));
TDEToggleAction *historyAction =
new TDEToggleAction(i18n("Show &History"), "history", 0, actions(), "showHistory");
@@ -905,10 +905,10 @@ PlaylistCollection::ActionHandler::ActionHandler(PlaylistCollection *collection)
new TDEToggleAction(i18n("Show &Play Queue"), "today", 0, actions(), "showUpcoming");
upcomingAction->setCheckedState(i18n("Hide &Play Queue"));
- connect(action<TDEToggleAction>("showHistory"), TQT_SIGNAL(toggled(bool)),
- this, TQT_SLOT(slotSetHistoryPlaylistEnabled(bool)));
- connect(action<TDEToggleAction>("showUpcoming"), TQT_SIGNAL(toggled(bool)),
- this, TQT_SLOT(slotSetUpcomingPlaylistEnabled(bool)));
+ connect(action<TDEToggleAction>("showHistory"), TQ_SIGNAL(toggled(bool)),
+ this, TQ_SLOT(slotSetHistoryPlaylistEnabled(bool)));
+ connect(action<TDEToggleAction>("showUpcoming"), TQ_SIGNAL(toggled(bool)),
+ this, TQ_SLOT(slotSetUpcomingPlaylistEnabled(bool)));
}
TDEAction *PlaylistCollection::ActionHandler::createAction(const TQString &text,
diff --git a/juk/playlistcollection.h b/juk/playlistcollection.h
index e5bf42e0..997972dc 100644
--- a/juk/playlistcollection.h
+++ b/juk/playlistcollection.h
@@ -209,7 +209,7 @@ private:
class PlaylistCollection::ActionHandler : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
ActionHandler(PlaylistCollection *collection);
diff --git a/juk/playlistsplitter.cpp b/juk/playlistsplitter.cpp
index 08cecf18..d1eff928 100644
--- a/juk/playlistsplitter.cpp
+++ b/juk/playlistsplitter.cpp
@@ -35,7 +35,7 @@ using namespace ActionCollection;
////////////////////////////////////////////////////////////////////////////////
PlaylistSplitter::PlaylistSplitter(TQWidget *parent, const char *name) :
- TQSplitter(Qt::Horizontal, parent, name),
+ TQSplitter(TQt::Horizontal, parent, name),
m_newVisible(0),
m_playlistBox(0),
m_searchWidget(0),
@@ -121,7 +121,7 @@ void PlaylistSplitter::setupActions()
new TDEToggleAction(i18n("Show &Search Bar"), "filefind", 0, ActionCollection::actions(), "showSearch");
showSearch->setCheckedState(i18n("Hide &Search Bar"));
- new TDEAction(i18n("Edit Track Search"), "edit_clear", "F6", TQT_TQOBJECT(this), TQT_SLOT(setFocus()), ActionCollection::actions(), "editTrackSearch");
+ new TDEAction(i18n("Edit Track Search"), "edit_clear", "F6", this, TQ_SLOT(setFocus()), ActionCollection::actions(), "editTrackSearch");
}
void PlaylistSplitter::setupLayout()
@@ -130,7 +130,7 @@ void PlaylistSplitter::setupLayout()
// Create a splitter to go between the playlists and the editor.
- TQSplitter *editorSplitter = new TQSplitter(Qt::Vertical, this, "editorSplitter");
+ TQSplitter *editorSplitter = new TQSplitter(TQt::Vertical, this, "editorSplitter");
// Create the playlist and the editor.
@@ -140,7 +140,7 @@ void PlaylistSplitter::setupLayout()
m_playlistStack = new TQWidgetStack(top, "playlistStack");
m_playlistStack->installEventFilter(this);
- connect(m_playlistStack, TQT_SIGNAL(aboutToShow(TQWidget *)), this, TQT_SLOT(slotPlaylistChanged(TQWidget *)));
+ connect(m_playlistStack, TQ_SIGNAL(aboutToShow(TQWidget *)), this, TQ_SLOT(slotPlaylistChanged(TQWidget *)));
m_editor = new TagEditor(editorSplitter, "tagEditor");
@@ -152,31 +152,31 @@ void PlaylistSplitter::setupLayout()
m_playlistBox = new PlaylistBox(this, m_playlistStack, "playlistBox");
- connect(m_playlistBox->object(), TQT_SIGNAL(signalSelectedItemsChanged()),
- this, TQT_SLOT(slotPlaylistSelectionChanged()));
- connect(m_playlistBox, TQT_SIGNAL(signalPlaylistDestroyed(Playlist *)),
- m_editor, TQT_SLOT(slotPlaylistDestroyed(Playlist *)));
+ connect(m_playlistBox->object(), TQ_SIGNAL(signalSelectedItemsChanged()),
+ this, TQ_SLOT(slotPlaylistSelectionChanged()));
+ connect(m_playlistBox, TQ_SIGNAL(signalPlaylistDestroyed(Playlist *)),
+ m_editor, TQ_SLOT(slotPlaylistDestroyed(Playlist *)));
moveToFirst(m_playlistBox);
- connect(CollectionList::instance(), TQT_SIGNAL(signalCollectionChanged()),
- m_editor, TQT_SLOT(slotUpdateCollection()));
+ connect(CollectionList::instance(), TQ_SIGNAL(signalCollectionChanged()),
+ m_editor, TQ_SLOT(slotUpdateCollection()));
NowPlaying *nowPlaying = new NowPlaying(top, m_playlistBox);
// Create the search widget -- this must be done after the CollectionList is created.
m_searchWidget = new SearchWidget(top, "searchWidget");
- connect(m_searchWidget, TQT_SIGNAL(signalQueryChanged()),
- this, TQT_SLOT(slotShowSearchResults()));
- connect(m_searchWidget, TQT_SIGNAL(signalDownPressed()),
- this, TQT_SLOT(slotFocusCurrentPlaylist()));
- connect(m_searchWidget, TQT_SIGNAL(signalAdvancedSearchClicked()),
- m_playlistBox->object(), TQT_SLOT(slotCreateSearchPlaylist()));
- connect(m_searchWidget, TQT_SIGNAL(signalShown(bool)),
- m_playlistBox->object(), TQT_SLOT(slotSetSearchEnabled(bool)));
- connect(action<TDEToggleAction>("showSearch"), TQT_SIGNAL(toggled(bool)),
- m_searchWidget, TQT_SLOT(setEnabled(bool)));
+ connect(m_searchWidget, TQ_SIGNAL(signalQueryChanged()),
+ this, TQ_SLOT(slotShowSearchResults()));
+ connect(m_searchWidget, TQ_SIGNAL(signalDownPressed()),
+ this, TQ_SLOT(slotFocusCurrentPlaylist()));
+ connect(m_searchWidget, TQ_SIGNAL(signalAdvancedSearchClicked()),
+ m_playlistBox->object(), TQ_SLOT(slotCreateSearchPlaylist()));
+ connect(m_searchWidget, TQ_SIGNAL(signalShown(bool)),
+ m_playlistBox->object(), TQ_SLOT(slotSetSearchEnabled(bool)));
+ connect(action<TDEToggleAction>("showSearch"), TQ_SIGNAL(toggled(bool)),
+ m_searchWidget, TQ_SLOT(setEnabled(bool)));
topLayout->addWidget(nowPlaying);
topLayout->addWidget(m_searchWidget);
diff --git a/juk/playlistsplitter.h b/juk/playlistsplitter.h
index 8c6216ac..914bad4b 100644
--- a/juk/playlistsplitter.h
+++ b/juk/playlistsplitter.h
@@ -40,7 +40,7 @@ class TagEditor;
class PlaylistSplitter : public TQSplitter
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/searchplaylist.h b/juk/searchplaylist.h
index c40748c3..8bfbc216 100644
--- a/juk/searchplaylist.h
+++ b/juk/searchplaylist.h
@@ -20,7 +20,7 @@
class SearchPlaylist : public DynamicPlaylist
{
- Q_OBJECT
+ TQ_OBJECT
public:
SearchPlaylist(PlaylistCollection *collection,
diff --git a/juk/searchwidget.cpp b/juk/searchwidget.cpp
index cb7d85f4..de6a1aa8 100644
--- a/juk/searchwidget.cpp
+++ b/juk/searchwidget.cpp
@@ -48,24 +48,24 @@ SearchLine::SearchLine(TQWidget *parent, bool simple, const char *name) :
if(!m_simple) {
m_searchFieldsBox = new KComboBox(this, "searchFields");
- connect(m_searchFieldsBox, TQT_SIGNAL(activated(int)),
- this, TQT_SIGNAL(signalQueryChanged()));
+ connect(m_searchFieldsBox, TQ_SIGNAL(activated(int)),
+ this, TQ_SIGNAL(signalQueryChanged()));
}
m_lineEdit = new KLineEdit(this, "searchLineEdit");
m_lineEdit->installEventFilter(this);
- connect(m_lineEdit, TQT_SIGNAL(textChanged(const TQString &)),
- this, TQT_SIGNAL(signalQueryChanged()));
- connect(m_lineEdit, TQT_SIGNAL(returnPressed()),
- this, TQT_SLOT(slotActivate()));
+ connect(m_lineEdit, TQ_SIGNAL(textChanged(const TQString &)),
+ this, TQ_SIGNAL(signalQueryChanged()));
+ connect(m_lineEdit, TQ_SIGNAL(returnPressed()),
+ this, TQ_SLOT(slotActivate()));
if(!m_simple) {
m_caseSensitive = new KComboBox(this);
m_caseSensitive->insertItem(i18n("Normal Matching"), 0);
m_caseSensitive->insertItem(i18n("Case Sensitive"), 1);
m_caseSensitive->insertItem(i18n("Pattern Matching"), 2);
- connect(m_caseSensitive, TQT_SIGNAL(activated(int)),
- this, TQT_SIGNAL(signalQueryChanged()));
+ connect(m_caseSensitive, TQ_SIGNAL(activated(int)),
+ this, TQ_SIGNAL(signalQueryChanged()));
}
else
m_caseSensitive = 0;
@@ -136,10 +136,10 @@ void SearchLine::setFocus()
bool SearchLine::eventFilter(TQObject *watched, TQEvent *e)
{
- if(TQT_BASE_OBJECT(watched) != TQT_BASE_OBJECT(m_lineEdit) || e->type() != TQEvent::KeyPress)
+ if(watched != m_lineEdit || e->type() != TQEvent::KeyPress)
return TQHBox::eventFilter(watched, e);
- TQKeyEvent *key = TQT_TQKEYEVENT(e);
+ TQKeyEvent *key = static_cast<TQKeyEvent*>(e);
if(key->key() == TQt::Key_Down)
emit signalDownPressed();
@@ -273,9 +273,9 @@ void SearchWidget::setupLayout()
label->setBuddy(m_searchLine);
- connect(m_searchLine, TQT_SIGNAL(signalQueryChanged()), this, TQT_SIGNAL(signalQueryChanged()));
- connect(m_searchLine, TQT_SIGNAL(signalDownPressed()), this, TQT_SIGNAL(signalDownPressed()));
- connect(clearSearchButton, TQT_SIGNAL(pressed()), m_searchLine, TQT_SLOT(clear()));
+ connect(m_searchLine, TQ_SIGNAL(signalQueryChanged()), this, TQ_SIGNAL(signalQueryChanged()));
+ connect(m_searchLine, TQ_SIGNAL(signalDownPressed()), this, TQ_SIGNAL(signalDownPressed()));
+ connect(clearSearchButton, TQ_SIGNAL(pressed()), m_searchLine, TQ_SLOT(clear()));
setStretchableWidget(m_searchLine);
// I've decided that I think this is ugly, for now.
@@ -285,7 +285,7 @@ void SearchWidget::setupLayout()
b->setTextLabel(i18n("Advanced Search"), true);
b->setIconSet(SmallIconSet("wizard"));
- connect(b, TQT_SIGNAL(clicked()), this, TQT_SIGNAL(signalAdvancedSearchClicked()));
+ connect(b, TQ_SIGNAL(clicked()), this, TQ_SIGNAL(signalAdvancedSearchClicked()));
*/
}
diff --git a/juk/searchwidget.h b/juk/searchwidget.h
index 47354dae..a1d0a306 100644
--- a/juk/searchwidget.h
+++ b/juk/searchwidget.h
@@ -34,7 +34,7 @@ class Playlist;
class SearchLine : public TQHBox
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -72,7 +72,7 @@ private:
class SearchWidget : public TDEToolBar, public SearchIface
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/slideraction.cpp b/juk/slideraction.cpp
index 561331d0..f16b21eb 100644
--- a/juk/slideraction.cpp
+++ b/juk/slideraction.cpp
@@ -41,19 +41,19 @@ class TrackPositionSlider : public TQSlider
public:
TrackPositionSlider(TQWidget *parent, const char *name) : TQSlider(parent, name)
{
- setFocusPolicy(TQ_NoFocus);
+ setFocusPolicy(TQWidget::NoFocus);
}
protected:
virtual void mousePressEvent(TQMouseEvent *e)
{
- if(e->button() == Qt::LeftButton) {
- TQMouseEvent reverse(TQEvent::MouseButtonPress, e->pos(), Qt::MidButton, e->state());
+ if(e->button() == TQt::LeftButton) {
+ TQMouseEvent reverse(TQEvent::MouseButtonPress, e->pos(), TQt::MidButton, e->state());
TQSlider::mousePressEvent(&reverse);
emit sliderPressed();
}
- else if(e->button() == Qt::MidButton) {
- TQMouseEvent reverse(TQEvent::MouseButtonPress, e->pos(), Qt::LeftButton, e->state());
+ else if(e->button() == TQt::MidButton) {
+ TQMouseEvent reverse(TQEvent::MouseButtonPress, e->pos(), TQt::LeftButton, e->state());
TQSlider::mousePressEvent(&reverse);
}
}
@@ -63,15 +63,15 @@ protected:
// VolumeSlider implementation
////////////////////////////////////////////////////////////////////////////////
-VolumeSlider::VolumeSlider(Qt::Orientation o, TQWidget *parent, const char *name) :
+VolumeSlider::VolumeSlider(TQt::Orientation o, TQWidget *parent, const char *name) :
TQSlider(o, parent, name)
{
- connect(this, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotValueChanged(int)));
+ connect(this, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slotValueChanged(int)));
}
void VolumeSlider::wheelEvent(TQWheelEvent *e)
{
- if(orientation() ==Qt::Horizontal) {
+ if(orientation() ==TQt::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() ==Qt::Horizontal)
+ if(orientation() ==TQt::Horizontal)
return value();
else
return maxValue() - value();
@@ -94,13 +94,13 @@ int VolumeSlider::volume() const
void VolumeSlider::setVolume(int value)
{
- if(orientation() ==Qt::Horizontal)
+ if(orientation() ==TQt::Horizontal)
setValue(value);
else
setValue(maxValue() - value);
}
-void VolumeSlider::setOrientation(Qt::Orientation o)
+void VolumeSlider::setOrientation(TQt::Orientation o)
{
if(o == orientation())
return;
@@ -113,7 +113,7 @@ void VolumeSlider::setOrientation(Qt::Orientation o)
void VolumeSlider::slotValueChanged(int value)
{
- if(orientation() ==Qt::Horizontal)
+ if(orientation() ==TQt::Horizontal)
emit signalVolumeChanged(value);
else
emit signalVolumeChanged(maxValue() - value);
@@ -162,11 +162,11 @@ 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(Qt::Orientation)),
- this, TQT_SLOT(slotUpdateOrientation()));
- connect(m_toolBar, TQT_SIGNAL(placeChanged(TQDockWindow::Place)),
- this, TQT_SLOT(slotUpdateOrientation()));
+ connect(m_toolBar, TQ_SIGNAL(destroyed()), this, TQ_SLOT(slotToolbarDestroyed()));
+ connect(m_toolBar, TQ_SIGNAL(orientationChanged(TQt::Orientation)),
+ this, TQ_SLOT(slotUpdateOrientation()));
+ connect(m_toolBar, TQ_SIGNAL(placeChanged(TQDockWindow::Place)),
+ this, TQ_SLOT(slotUpdateOrientation()));
slotUpdateOrientation();
return (containerCount() - 1);
@@ -205,13 +205,13 @@ void SliderAction::slotUpdateOrientation()
return;
if(m_toolBar->barPos() == TDEToolBar::Right || m_toolBar->barPos() == TDEToolBar::Left) {
- m_trackPositionSlider->setOrientation(Qt::Vertical);
- m_volumeSlider->setOrientation(Qt::Vertical);
+ m_trackPositionSlider->setOrientation(TQt::Vertical);
+ m_volumeSlider->setOrientation(TQt::Vertical);
m_layout->setDirection(TQBoxLayout::TopToBottom);
}
else {
- m_trackPositionSlider->setOrientation(Qt::Horizontal);
- m_volumeSlider->setOrientation(Qt::Horizontal);
+ m_trackPositionSlider->setOrientation(TQt::Horizontal);
+ m_volumeSlider->setOrientation(TQt::Horizontal);
m_layout->setDirection(TQBoxLayout::LeftToRight);
}
slotUpdateSize();
@@ -233,12 +233,12 @@ TQWidget *SliderAction::createWidget(TQWidget *parent) // virtual -- used by bas
if(toolBar)
toolBar->setStretchableWidget(base);
- Qt::Orientation orientation;
+ TQt::Orientation orientation;
if(toolBar && toolBar->barPos() == TDEToolBar::Right || toolBar->barPos() == TDEToolBar::Left)
- orientation =Qt::Vertical;
+ orientation =TQt::Vertical;
else
- orientation =Qt::Horizontal;
+ orientation =TQt::Horizontal;
m_layout = new TQBoxLayout(base, TQBoxLayout::TopToBottom, 5, 5);
@@ -254,8 +254,8 @@ TQWidget *SliderAction::createWidget(TQWidget *parent) // virtual -- used by bas
m_trackPositionSlider->setMaxValue(maxPosition);
TQToolTip::add(m_trackPositionSlider, i18n("Track position"));
m_layout->addWidget(m_trackPositionSlider);
- connect(m_trackPositionSlider, TQT_SIGNAL(sliderPressed()), this, TQT_SLOT(slotSliderPressed()));
- connect(m_trackPositionSlider, TQT_SIGNAL(sliderReleased()), this, TQT_SLOT(slotSliderReleased()));
+ connect(m_trackPositionSlider, TQ_SIGNAL(sliderPressed()), this, TQ_SLOT(slotSliderPressed()));
+ connect(m_trackPositionSlider, TQ_SIGNAL(sliderReleased()), this, TQ_SLOT(slotSliderReleased()));
m_layout->addItem(new TQSpacerItem(10, 1));
@@ -269,9 +269,9 @@ TQWidget *SliderAction::createWidget(TQWidget *parent) // virtual -- used by bas
m_volumeSlider->setMaxValue(100);
TQToolTip::add(m_volumeSlider, i18n("Volume"));
m_layout->addWidget(m_volumeSlider);
- connect(m_volumeSlider, TQT_SIGNAL(signalVolumeChanged(int)), TQT_SIGNAL(signalVolumeChanged(int)));
- connect(m_volumeSlider, TQT_SIGNAL(sliderPressed()), this, TQT_SLOT(slotVolumeSliderPressed()));
- connect(m_volumeSlider, TQT_SIGNAL(sliderReleased()), this, TQT_SLOT(slotVolumeSliderReleased()));
+ connect(m_volumeSlider, TQ_SIGNAL(signalVolumeChanged(int)), TQ_SIGNAL(signalVolumeChanged(int)));
+ connect(m_volumeSlider, TQ_SIGNAL(sliderPressed()), this, TQ_SLOT(slotVolumeSliderPressed()));
+ connect(m_volumeSlider, TQ_SIGNAL(sliderReleased()), this, TQ_SLOT(slotVolumeSliderReleased()));
m_volumeSlider->setName("tde toolbar widget");
m_trackPositionSlider->setName("tde toolbar widget");
@@ -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(parent, TQ_SIGNAL(modechange()), this, TQ_SLOT(slotUpdateSize()));
return base;
}
diff --git a/juk/slideraction.h b/juk/slideraction.h
index 1c38c0a5..7bdc556f 100644
--- a/juk/slideraction.h
+++ b/juk/slideraction.h
@@ -24,16 +24,16 @@ class TQDockWindow;
class VolumeSlider : public TQSlider
{
- Q_OBJECT
+ TQ_OBJECT
public:
- VolumeSlider(Qt::Orientation o, TQWidget *parent, const char *name);
+ VolumeSlider(TQt::Orientation o, TQWidget *parent, const char *name);
int volume() const;
void setVolume(int value);
- void setOrientation(Qt::Orientation o);
+ void setOrientation(TQt::Orientation o);
signals:
void signalVolumeChanged(int value);
@@ -48,7 +48,7 @@ private slots:
class SliderAction : public TDEAction
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/statuslabel.cpp b/juk/statuslabel.cpp
index 4dcf5163..1aea48b5 100644
--- a/juk/statuslabel.cpp
+++ b/juk/statuslabel.cpp
@@ -85,7 +85,7 @@ StatusLabel::StatusLabel(PlaylistInterface *playlist, TQWidget *parent, const ch
jumpButton->setFlat(true);
TQToolTip::add(jumpButton, i18n("Jump to the currently playing item"));
- connect(jumpButton, TQT_SIGNAL(clicked()), action("showPlaying"), TQT_SLOT(activate()));
+ connect(jumpButton, TQ_SIGNAL(clicked()), action("showPlaying"), TQ_SLOT(activate()));
installEventFilter(this);
@@ -175,11 +175,11 @@ bool StatusLabel::eventFilter(TQObject *o, TQEvent *e)
if(!o || !e)
return false;
- TQMouseEvent *mouseEvent = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent *mouseEvent = static_cast<TQMouseEvent*>(e);
if(e->type() == TQEvent::MouseButtonRelease &&
- mouseEvent->button() == Qt::LeftButton)
+ mouseEvent->button() == TQt::LeftButton)
{
- if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_itemTimeLabel)) {
+ if(o == m_itemTimeLabel) {
m_showTimeRemaining = !m_showTimeRemaining;
updateTime();
}
diff --git a/juk/statuslabel.h b/juk/statuslabel.h
index a5f0bbff..9d9657a5 100644
--- a/juk/statuslabel.h
+++ b/juk/statuslabel.h
@@ -27,7 +27,7 @@ class FileHandle;
class StatusLabel : public TQHBox, public PlaylistObserver
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/systemtray.cpp b/juk/systemtray.cpp
index 577817b9..2e46272e 100644
--- a/juk/systemtray.cpp
+++ b/juk/systemtray.cpp
@@ -97,7 +97,7 @@ PassiveInfo::PassiveInfo(TQWidget *parent, const char *name) :
// that I'll just handle the timeout myself, thank you very much.
KPassivePopup::setTimeout(0);
- connect(m_timer, TQT_SIGNAL(timeout()), TQT_SLOT(timerExpired()));
+ connect(m_timer, TQ_SIGNAL(timeout()), TQ_SLOT(timerExpired()));
}
void PassiveInfo::setTimeout(int delay)
@@ -162,14 +162,14 @@ 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 TDEAction(i18n("Redisplay Popup"), TDEShortcut(), TQT_TQOBJECT(this),
- TQT_SLOT(slotPlay()), ActionCollection::actions(), "showPopup");
+ new TDEAction(i18n("Redisplay Popup"), TDEShortcut(), this,
+ TQ_SLOT(slotPlay()), ActionCollection::actions(), "showPopup");
TDEPopupMenu *cm = contextMenu();
- connect(PlayerManager::instance(), TQT_SIGNAL(signalPlay()), this, TQT_SLOT(slotPlay()));
- connect(PlayerManager::instance(), TQT_SIGNAL(signalPause()), this, TQT_SLOT(slotPause()));
- connect(PlayerManager::instance(), TQT_SIGNAL(signalStop()), this, TQT_SLOT(slotStop()));
+ connect(PlayerManager::instance(), TQ_SIGNAL(signalPlay()), this, TQ_SLOT(slotPlay()));
+ connect(PlayerManager::instance(), TQ_SIGNAL(signalPause()), this, TQ_SLOT(slotPause()));
+ connect(PlayerManager::instance(), TQ_SIGNAL(signalStop()), this, TQ_SLOT(slotStop()));
action("play")->plug(cm);
action("pause")->plug(cm);
@@ -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.
- TDEActionMenu *menu = new TDEActionMenu(i18n("&Random Play"), TQT_TQOBJECT(this));
+ TDEActionMenu *menu = new TDEActionMenu(i18n("&Random Play"), this);
menu->insert(action("disableRandomPlay"));
menu->insert(action("randomPlay"));
menu->insert(action("albumRandomPlay"));
@@ -190,7 +190,7 @@ SystemTray::SystemTray(TQWidget *parent, const char *name) : KSystemTray(parent,
action("togglePopups")->plug(cm);
m_fadeTimer = new TQTimer(this, "systrayFadeTimer");
- connect(m_fadeTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotNextStep()));
+ connect(m_fadeTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotNextStep()));
if(PlayerManager::instance()->playing())
slotPlay();
@@ -278,8 +278,8 @@ void SystemTray::slotFadeOut()
m_startColor = m_labels[0]->textColor();
m_endColor = m_labels[0]->backgroundColor();
- connect(this, TQT_SIGNAL(fadeDone()), m_popup, TQT_SLOT(hide()));
- connect(m_popup, TQT_SIGNAL(mouseEntered()), this, TQT_SLOT(slotMouseInPopup()));
+ connect(this, TQ_SIGNAL(fadeDone()), m_popup, TQ_SLOT(hide()));
+ connect(m_popup, TQ_SIGNAL(mouseEntered()), this, TQ_SLOT(slotMouseInPopup()));
m_fadeTimer->start(1500 / STEPS);
}
@@ -289,7 +289,7 @@ void SystemTray::slotFadeOut()
void SystemTray::slotMouseInPopup()
{
m_endColor = m_labels[0]->textColor();
- disconnect(TQT_SIGNAL(fadeDone()));
+ disconnect(TQ_SIGNAL(fadeDone()));
m_step = STEPS - 1; // Simulate end of fade to solid text
slotNextStep();
@@ -360,8 +360,8 @@ void SystemTray::createPopup()
m_step = 0;
m_popup = new PassiveInfo(this);
- connect(m_popup, TQT_SIGNAL(destroyed()), TQT_SLOT(slotPopupDestroyed()));
- connect(m_popup, TQT_SIGNAL(timeExpired()), TQT_SLOT(slotFadeOut()));
+ connect(m_popup, TQ_SIGNAL(destroyed()), TQ_SLOT(slotPopupDestroyed()));
+ connect(m_popup, TQ_SIGNAL(timeExpired()), TQ_SLOT(slotFadeOut()));
TQHBox *box = new TQHBox(m_popup, "popupMainLayout");
box->setSpacing(15); // Add space between text and buttons
@@ -448,11 +448,11 @@ void SystemTray::createButtonBox(TQWidget *parent)
TQPushButton *forwardButton = new TQPushButton(m_forwardPix, 0, buttonBox, "popup_forward");
forwardButton->setFlat(true);
- connect(forwardButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotForward()));
+ connect(forwardButton, TQ_SIGNAL(clicked()), TQ_SLOT(slotForward()));
TQPushButton *backButton = new TQPushButton(m_backPix, 0, buttonBox, "popup_back");
backButton->setFlat(true);
- connect(backButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotBack()));
+ connect(backButton, TQ_SIGNAL(clicked()), TQ_SLOT(slotBack()));
}
/**
@@ -491,7 +491,7 @@ void SystemTray::addCoverButton(TQWidget *parent, const TQPixmap &cover)
coverButton->setFixedSize(cover.size());
coverButton->setFlat(true);
- connect(coverButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotPopupLargeCover()));
+ connect(coverButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotPopupLargeCover()));
}
TQColor SystemTray::interpolateColor(int step, int steps)
@@ -540,7 +540,7 @@ void SystemTray::setToolTip(const TQString &tip, const TQPixmap &cover)
void SystemTray::wheelEvent(TQWheelEvent *e)
{
- if(e->orientation() ==Qt::Horizontal)
+ if(e->orientation() ==TQt::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 Qt::LeftButton:
- case Qt::RightButton:
+ case TQt::LeftButton:
+ case TQt::RightButton:
default:
KSystemTray::mousePressEvent(e);
break;
- case Qt::MidButton:
- if(!TQT_TQRECT_OBJECT(rect()).contains(e->pos()))
+ case TQt::MidButton:
+ if(!rect().contains(e->pos()))
return;
if(action("pause")->isEnabled())
action("pause")->activate();
diff --git a/juk/systemtray.h b/juk/systemtray.h
index 7a8994cc..469cf9ee 100644
--- a/juk/systemtray.h
+++ b/juk/systemtray.h
@@ -37,7 +37,7 @@ class FileHandle;
*/
class PassiveInfo : public KPassivePopup
{
- Q_OBJECT
+ TQ_OBJECT
public:
PassiveInfo(TQWidget *parent = 0, const char *name = 0);
@@ -64,7 +64,7 @@ private:
class SystemTray : public KSystemTray
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/tag.cpp b/juk/tag.cpp
index 08a717ea..c5290610 100644
--- a/juk/tag.cpp
+++ b/juk/tag.cpp
@@ -41,6 +41,8 @@
#include "mediafiles.h"
#include "stringshare.h"
+#define TStringToTQString(s) TQString::fromUtf8((s).toCString(true))
+
////////////////////////////////////////////////////////////////////////////////
// public members
////////////////////////////////////////////////////////////////////////////////
@@ -227,11 +229,11 @@ Tag::Tag(const TQString &fileName, bool) :
void Tag::setup(TagLib::File *file)
{
- 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_title = TStringToTQString(file->tag()->title()).stripWhiteSpace();
+ m_artist = TStringToTQString(file->tag()->artist()).stripWhiteSpace();
+ m_album = TStringToTQString(file->tag()->album()).stripWhiteSpace();
+ m_genre = TStringToTQString(file->tag()->genre()).stripWhiteSpace();
+ m_comment = TStringToTQString(file->tag()->comment()).stripWhiteSpace();
m_track = file->tag()->track();
m_year = file->tag()->year();
diff --git a/juk/tageditor.cpp b/juk/tageditor.cpp
index e4073d24..ed1cdca8 100644
--- a/juk/tageditor.cpp
+++ b/juk/tageditor.cpp
@@ -44,6 +44,8 @@
#undef KeyRelease
+#define TStringToTQString(s) TQString::fromUtf8((s).toCString(true))
+
using namespace ActionCollection;
class FileNameValidator : public TQValidator
@@ -172,8 +174,8 @@ void TagEditor::slotSetItems(const PlaylistItemList &list)
saveChangesPrompt();
if(m_currentPlaylist) {
- disconnect(m_currentPlaylist, TQT_SIGNAL(signalAboutToRemove(PlaylistItem *)),
- this, TQT_SLOT(slotItemRemoved(PlaylistItem *)));
+ disconnect(m_currentPlaylist, TQ_SIGNAL(signalAboutToRemove(PlaylistItem *)),
+ this, TQ_SLOT(slotItemRemoved(PlaylistItem *)));
}
if(hadPlaylist && !m_currentPlaylist || !itemPlaylist) {
@@ -189,9 +191,9 @@ void TagEditor::slotSetItems(const PlaylistItemList &list)
}
if(m_currentPlaylist) {
- connect(m_currentPlaylist, TQT_SIGNAL(signalAboutToRemove(PlaylistItem *)),
- this, TQT_SLOT(slotItemRemoved(PlaylistItem *)));
- connect(m_currentPlaylist, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotPlaylistRemoved()));
+ connect(m_currentPlaylist, TQ_SIGNAL(signalAboutToRemove(PlaylistItem *)),
+ this, TQ_SLOT(slotItemRemoved(PlaylistItem *)));
+ connect(m_currentPlaylist, TQ_SIGNAL(destroyed()), this, TQ_SLOT(slotPlaylistRemoved()));
}
if(isVisible())
@@ -403,7 +405,7 @@ void TagEditor::updateCollection()
TagLib::StringList genres = TagLib::ID3v1::genreList();
for(TagLib::StringList::ConstIterator it = genres.begin(); it != genres.end(); ++it)
- genreHash.insert(TStringToQString((*it)));
+ genreHash.insert(TStringToTQString((*it)));
m_genreList = genreHash.values();
m_genreList.sort();
@@ -436,7 +438,7 @@ void TagEditor::readConfig()
TagLib::StringList genres = TagLib::ID3v1::genreList();
for(TagLib::StringList::ConstIterator it = genres.begin(); it != genres.end(); ++it)
- m_genreList.append(TStringToQString((*it)));
+ m_genreList.append(TStringToTQString((*it)));
m_genreList.sort();
m_genreBox->clear();
@@ -471,9 +473,9 @@ void TagEditor::setupActions()
{
TDEToggleAction *show = new TDEToggleAction(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)));
+ connect(show, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(setShown(bool)));
- new TDEAction(i18n("&Save"), "document-save", "CTRL+t", TQT_TQOBJECT(this), TQT_SLOT(slotSave()), ActionCollection::actions(), "saveItem");
+ new TDEAction(i18n("&Save"), "document-save", "CTRL+t", this, TQ_SLOT(slotSave()), ActionCollection::actions(), "saveItem");
}
void TagEditor::setupLayout()
@@ -524,7 +526,7 @@ void TagEditor::setupLayout()
horizontalSpacing);
m_fileNameBox = new KLineEdit(this, "fileNameBox");
- m_fileNameBox->setValidator(new FileNameValidator(TQT_TQOBJECT(m_fileNameBox)));
+ m_fileNameBox->setValidator(new FileNameValidator(m_fileNameBox));
TQLabel *fileNameIcon = new TQLabel(this);
fileNameIcon->setPixmap(SmallIcon("audio-x-generic"));
@@ -586,32 +588,32 @@ void TagEditor::setupLayout()
}
- connect(m_artistNameBox, TQT_SIGNAL(textChanged(const TQString&)),
- this, TQT_SLOT(slotDataChanged()));
+ connect(m_artistNameBox, TQ_SIGNAL(textChanged(const TQString&)),
+ this, TQ_SLOT(slotDataChanged()));
- connect(m_trackNameBox, TQT_SIGNAL(textChanged(const TQString&)),
- this, TQT_SLOT(slotDataChanged()));
+ connect(m_trackNameBox, TQ_SIGNAL(textChanged(const TQString&)),
+ this, TQ_SLOT(slotDataChanged()));
- connect(m_albumNameBox, TQT_SIGNAL(textChanged(const TQString&)),
- this, TQT_SLOT(slotDataChanged()));
+ connect(m_albumNameBox, TQ_SIGNAL(textChanged(const TQString&)),
+ this, TQ_SLOT(slotDataChanged()));
- connect(m_genreBox, TQT_SIGNAL(activated(int)),
- this, TQT_SLOT(slotDataChanged()));
+ connect(m_genreBox, TQ_SIGNAL(activated(int)),
+ this, TQ_SLOT(slotDataChanged()));
- connect(m_genreBox, TQT_SIGNAL(textChanged(const TQString&)),
- this, TQT_SLOT(slotDataChanged()));
+ connect(m_genreBox, TQ_SIGNAL(textChanged(const TQString&)),
+ this, TQ_SLOT(slotDataChanged()));
- connect(m_fileNameBox, TQT_SIGNAL(textChanged(const TQString&)),
- this, TQT_SLOT(slotDataChanged()));
+ connect(m_fileNameBox, TQ_SIGNAL(textChanged(const TQString&)),
+ this, TQ_SLOT(slotDataChanged()));
- connect(m_yearSpin, TQT_SIGNAL(valueChanged(int)),
- this, TQT_SLOT(slotDataChanged()));
+ connect(m_yearSpin, TQ_SIGNAL(valueChanged(int)),
+ this, TQ_SLOT(slotDataChanged()));
- connect(m_trackSpin, TQT_SIGNAL(valueChanged(int)),
- this, TQT_SLOT(slotDataChanged()));
+ connect(m_trackSpin, TQ_SIGNAL(valueChanged(int)),
+ this, TQ_SLOT(slotDataChanged()));
- connect(m_commentBox, TQT_SIGNAL(textChanged()),
- this, TQT_SLOT(slotDataChanged()));
+ connect(m_commentBox, TQ_SIGNAL(textChanged()),
+ this, TQ_SLOT(slotDataChanged()));
}
void TagEditor::save(const PlaylistItemList &list)
@@ -750,7 +752,7 @@ void TagEditor::addItem(const TQString &text, TQWidget *item, TQBoxLayout *layou
enableBox->hide();
- connect(enableBox, TQT_SIGNAL(toggled(bool)), item, TQT_SLOT(setEnabled(bool)));
+ connect(enableBox, TQ_SIGNAL(toggled(bool)), item, TQ_SLOT(setEnabled(bool)));
m_enableBoxes.insert(item, enableBox);
}
@@ -766,8 +768,8 @@ void TagEditor::showEvent(TQShowEvent *e)
bool TagEditor::eventFilter(TQObject *watched, TQEvent *e)
{
- TQKeyEvent *ke = TQT_TQKEYEVENT(e);
- if(watched->inherits(TQSPINBOX_OBJECT_NAME_STRING) && e->type() == TQEvent::KeyRelease && ke->state() == 0)
+ TQKeyEvent *ke = static_cast<TQKeyEvent*>(e);
+ if(watched->inherits("TQSpinBox") && e->type() == TQEvent::KeyRelease && ke->state() == 0)
slotDataChanged();
return false;
diff --git a/juk/tageditor.h b/juk/tageditor.h
index ee62c7b2..14cc9c67 100644
--- a/juk/tageditor.h
+++ b/juk/tageditor.h
@@ -36,7 +36,7 @@ class CollectionObserver;
class TagEditor : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/tagguesserconfigdlg.cpp b/juk/tagguesserconfigdlg.cpp
index b5ceaac9..201e2215 100644
--- a/juk/tagguesserconfigdlg.cpp
+++ b/juk/tagguesserconfigdlg.cpp
@@ -41,15 +41,15 @@ TagGuesserConfigDlg::TagGuesserConfigDlg(TQWidget *parent, const char *name)
item->moveItem(m_child->lvSchemes->lastItem());
}
- connect(m_child->lvSchemes, TQT_SIGNAL(currentChanged(TQListViewItem *)),
- this, TQT_SLOT(slotCurrentChanged(TQListViewItem *)));
- connect(m_child->lvSchemes, TQT_SIGNAL(doubleClicked(TQListViewItem *, const TQPoint &, int)),
- this, TQT_SLOT(slotRenameItem(TQListViewItem *, const TQPoint &, int)));
- connect(m_child->bMoveUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotMoveUpClicked()));
- connect(m_child->bMoveDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotMoveDownClicked()));
- connect(m_child->bAdd, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddClicked()));
- connect(m_child->bModify, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotModifyClicked()));
- connect(m_child->bRemove, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRemoveClicked()));
+ connect(m_child->lvSchemes, TQ_SIGNAL(currentChanged(TQListViewItem *)),
+ this, TQ_SLOT(slotCurrentChanged(TQListViewItem *)));
+ connect(m_child->lvSchemes, TQ_SIGNAL(doubleClicked(TQListViewItem *, const TQPoint &, int)),
+ this, TQ_SLOT(slotRenameItem(TQListViewItem *, const TQPoint &, int)));
+ connect(m_child->bMoveUp, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotMoveUpClicked()));
+ connect(m_child->bMoveDown, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotMoveDownClicked()));
+ connect(m_child->bAdd, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotAddClicked()));
+ connect(m_child->bModify, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotModifyClicked()));
+ connect(m_child->bRemove, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotRemoveClicked()));
m_child->lvSchemes->setSelected(m_child->lvSchemes->firstChild(), true);
slotCurrentChanged(m_child->lvSchemes->currentItem());
diff --git a/juk/tagguesserconfigdlg.h b/juk/tagguesserconfigdlg.h
index cbb56845..ef0bca01 100644
--- a/juk/tagguesserconfigdlg.h
+++ b/juk/tagguesserconfigdlg.h
@@ -16,7 +16,7 @@ class TQListViewItem;
class TagGuesserConfigDlgWidget;
class TagGuesserConfigDlg : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
TagGuesserConfigDlg(TQWidget *parent, const char *name = 0);
diff --git a/juk/tagtransactionmanager.cpp b/juk/tagtransactionmanager.cpp
index c816f2f4..2c66f120 100644
--- a/juk/tagtransactionmanager.cpp
+++ b/juk/tagtransactionmanager.cpp
@@ -135,7 +135,7 @@ bool TagTransactionManager::renameFile(const TQFileInfo &from, const TQFileInfo
if(!to.exists() ||
KMessageBox::warningContinueCancel(
- TQT_TQWIDGET(parent()),
+ static_cast<TQWidget*>(parent()),
i18n("This file already exists.\nDo you want to replace it?"),
i18n("File Exists"),i18n("Replace")) == KMessageBox::Continue)
{
@@ -200,7 +200,7 @@ bool TagTransactionManager::processChangeList(bool undo)
action("edit_undo")->setEnabled(false);
if(!errorItems.isEmpty())
- KMessageBox::errorList(TQT_TQWIDGET(parent()),
+ KMessageBox::errorList(static_cast<TQWidget*>(parent()),
i18n("The following files were unable to be changed."),
errorItems,
i18n("Error"));
diff --git a/juk/tagtransactionmanager.h b/juk/tagtransactionmanager.h
index 81520bd4..0e169bba 100644
--- a/juk/tagtransactionmanager.h
+++ b/juk/tagtransactionmanager.h
@@ -105,7 +105,7 @@ typedef TQValueList<TagTransactionAtom> TagAlterationList;
*/
class TagTransactionManager : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/trackpickerdialog.cpp b/juk/trackpickerdialog.cpp
index 892b2156..f02d43fd 100644
--- a/juk/trackpickerdialog.cpp
+++ b/juk/trackpickerdialog.cpp
@@ -61,8 +61,8 @@ TrackPickerDialog::TrackPickerDialog(const TQString &name,
m_base->trackList->setSelected(m_base->trackList->firstChild(), true);
- connect(m_base->trackList, TQT_SIGNAL(doubleClicked(TQListViewItem *, const TQPoint &, int)),
- this, TQT_SLOT(accept()));
+ connect(m_base->trackList, TQ_SIGNAL(doubleClicked(TQListViewItem *, const TQPoint &, int)),
+ this, TQ_SLOT(accept()));
setMinimumWidth(kMax(400, width()));
}
diff --git a/juk/trackpickerdialog.h b/juk/trackpickerdialog.h
index ff2912e2..4fd2b1fb 100644
--- a/juk/trackpickerdialog.h
+++ b/juk/trackpickerdialog.h
@@ -28,7 +28,7 @@ class TrackPickerDialogBase;
class TrackPickerDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/tracksequencemanager.cpp b/juk/tracksequencemanager.cpp
index 86f88f96..34076bf7 100644
--- a/juk/tracksequencemanager.cpp
+++ b/juk/tracksequencemanager.cpp
@@ -121,8 +121,8 @@ void TrackSequenceManager::setCurrentPlaylist(Playlist *list)
m_playlist->disconnect(this);
m_playlist = list;
- connect(m_playlist, TQT_SIGNAL(signalAboutToRemove(PlaylistItem *)),
- this, TQT_SLOT(slotItemAboutToDie(PlaylistItem *)));
+ connect(m_playlist, TQ_SIGNAL(signalAboutToRemove(PlaylistItem *)),
+ this, TQ_SLOT(slotItemAboutToDie(PlaylistItem *)));
}
void TrackSequenceManager::setCurrent(PlaylistItem *item)
@@ -148,8 +148,8 @@ void TrackSequenceManager::initialize()
return;
// Make sure we don't use m_playNextItem if it's invalid.
- connect(collection, TQT_SIGNAL(signalAboutToRemove(PlaylistItem *)),
- this, TQT_SLOT(slotItemAboutToDie(PlaylistItem *)));
+ connect(collection, TQ_SIGNAL(signalAboutToRemove(PlaylistItem *)),
+ this, TQ_SLOT(slotItemAboutToDie(PlaylistItem *)));
m_initialized = true;
}
diff --git a/juk/tracksequencemanager.h b/juk/tracksequencemanager.h
index d8cd1b47..898868ba 100644
--- a/juk/tracksequencemanager.h
+++ b/juk/tracksequencemanager.h
@@ -35,7 +35,7 @@ class Playlist;
*/
class TrackSequenceManager : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/treeviewitemplaylist.h b/juk/treeviewitemplaylist.h
index bc1815e4..3dd4c803 100644
--- a/juk/treeviewitemplaylist.h
+++ b/juk/treeviewitemplaylist.h
@@ -23,7 +23,7 @@ class TQStringList;
class TreeViewItemPlaylist : public SearchPlaylist
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/viewmode.cpp b/juk/viewmode.cpp
index dab099f2..040bf3a3 100644
--- a/juk/viewmode.cpp
+++ b/juk/viewmode.cpp
@@ -71,7 +71,7 @@ void ViewMode::paintCell(PlaylistBox::Item *item,
TQPen newPen = oldPen;
newPen.setWidth(5);
- newPen.setJoinStyle(Qt::RoundJoin);
+ newPen.setJoinStyle(TQt::RoundJoin);
newPen.setColor(TQColorGroup::Highlight);
painter->setPen(newPen);
@@ -104,8 +104,8 @@ void ViewMode::paintCell(PlaylistBox::Item *item,
bool ViewMode::eventFilter(TQObject *watched, TQEvent *e)
{
- if(m_visible && TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(m_playlistBox->viewport()) && e->type() == TQEvent::Resize) {
- TQResizeEvent *re = TQT_TQRESIZEEVENT(e);
+ if(m_visible && watched == m_playlistBox->viewport() && e->type() == TQEvent::Resize) {
+ TQResizeEvent *re = static_cast<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(Qt::DotLine);
+ newPen.setStyle(TQt::DotLine);
painter->setPen(newPen);
painter->drawRect(border, border, width - border * 2, height - border * 2);
diff --git a/juk/viewmode.h b/juk/viewmode.h
index cf260204..3852decb 100644
--- a/juk/viewmode.h
+++ b/juk/viewmode.h
@@ -28,7 +28,7 @@ class SearchPlaylist;
class ViewMode : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -120,7 +120,7 @@ class TreeViewItemPlaylist;
class TreeViewMode : public CompactViewMode
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -150,7 +150,7 @@ private:
class CoverManagerMode : public ViewMode
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/webimagefetcher.cpp b/juk/webimagefetcher.cpp
index 142b1eb9..368832d1 100644
--- a/juk/webimagefetcher.cpp
+++ b/juk/webimagefetcher.cpp
@@ -48,7 +48,7 @@ WebImageFetcher::WebImageFetcher(TQObject *parent)
m_connectionId(-1),
m_dialog(0)
{
- connect(m_connection, TQT_SIGNAL(requestFinished(int,bool)), TQT_SLOT(slotWebRequestFinished(int,bool)));
+ connect(m_connection, TQ_SIGNAL(requestFinished(int,bool)), TQ_SLOT(slotWebRequestFinished(int,bool)));
}
WebImageFetcher::~WebImageFetcher()
@@ -173,8 +173,8 @@ void WebImageFetcher::slotWebRequestFinished(int id, bool error)
m_dialog = new WebImageFetcherDialog(m_imageList, m_file, 0);
m_dialog->setModal(true);
- connect(m_dialog, TQT_SIGNAL(coverSelected()), TQT_SLOT(slotCoverChosen()));
- connect(m_dialog, TQT_SIGNAL(newSearchRequested()), TQT_SLOT(slotNewSearch()));
+ connect(m_dialog, TQ_SIGNAL(coverSelected()), TQ_SLOT(slotCoverChosen()));
+ connect(m_dialog, TQ_SIGNAL(newSearchRequested()), TQ_SLOT(slotNewSearch()));
}
m_dialog->refreshScreen(m_imageList);
diff --git a/juk/webimagefetcher.h b/juk/webimagefetcher.h
index 26eefe60..32dbdbc2 100644
--- a/juk/webimagefetcher.h
+++ b/juk/webimagefetcher.h
@@ -54,7 +54,7 @@ typedef TQValueList<WebImage> WebImageList;
class WebImageFetcher : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/juk/webimagefetcherdialog.cpp b/juk/webimagefetcherdialog.cpp
index 5fd110d8..c7abdf1a 100644
--- a/juk/webimagefetcherdialog.cpp
+++ b/juk/webimagefetcherdialog.cpp
@@ -55,8 +55,8 @@ WebImageFetcherDialog::WebImageFetcherDialog(const WebImageList &imageList,
m_iconWidget->arrangeItemsInGrid();
m_iconWidget->setItemsMovable(false);
mainLayout->addWidget(m_iconWidget);
- connect(m_iconWidget, TQT_SIGNAL(executed(TQIconViewItem *)),
- this, TQT_SLOT(slotOk()));
+ connect(m_iconWidget, TQ_SIGNAL(executed(TQIconViewItem *)),
+ this, TQ_SLOT(slotOk()));
// Before changing the code below be sure to check the attribution terms
// of the Yahoo Image Search API.
@@ -66,8 +66,8 @@ WebImageFetcherDialog::WebImageFetcherDialog(const WebImageList &imageList,
logoLabel->setPixmap(UserIcon("yahoo_credit"));
logoLabel->setMargin(15); // Allow large margin per attribution terms.
logoLabel->setUseTips(true); // Show URL in tooltip.
- connect(logoLabel, TQT_SIGNAL(leftClickedURL(const TQString &)),
- TQT_SLOT(showCreditURL(const TQString &)));
+ connect(logoLabel, TQ_SIGNAL(leftClickedURL(const TQString &)),
+ TQ_SLOT(showCreditURL(const TQString &)));
TQBoxLayout *creditLayout = new TQHBoxLayout(mainLayout);
creditLayout->addStretch(); // Left spacer
@@ -197,9 +197,9 @@ CoverIconViewItem::CoverIconViewItem(TQIconView *parent, const WebImage &image)
// Start downloading the image.
m_job = TDEIO::get(image.thumbURL(), false, false);
- connect(m_job, TQT_SIGNAL(result(TDEIO::Job *)), this, TQT_SLOT(imageResult(TDEIO::Job *)));
- connect(m_job, TQT_SIGNAL(data(TDEIO::Job *, const TQByteArray &)),
- this, TQT_SLOT(imageData(TDEIO::Job *, const TQByteArray &)));
+ connect(m_job, TQ_SIGNAL(result(TDEIO::Job *)), this, TQ_SLOT(imageResult(TDEIO::Job *)));
+ connect(m_job, TQ_SIGNAL(data(TDEIO::Job *, const TQByteArray &)),
+ this, TQ_SLOT(imageData(TDEIO::Job *, const TQByteArray &)));
}
CoverIconViewItem::~CoverIconViewItem()
@@ -228,7 +228,7 @@ void CoverIconViewItem::imageResult(TDEIO::Job *job)
return;
TQPixmap iconImage(m_buffer);
- iconImage = TQImage(iconImage.convertToImage()).smoothScale(80, 80, TQ_ScaleMin);
+ iconImage = TQImage(iconImage.convertToImage()).smoothScale(80, 80, TQImage::ScaleMin);
setPixmap(iconImage, true, true);
}
diff --git a/juk/webimagefetcherdialog.h b/juk/webimagefetcherdialog.h
index afe2cd18..5d34a614 100644
--- a/juk/webimagefetcherdialog.h
+++ b/juk/webimagefetcherdialog.h
@@ -26,7 +26,7 @@ class KURL;
class WebImageFetcherDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -73,7 +73,7 @@ namespace TDEIO
class CoverIconViewItem : public TQObject, public TDEIconViewItem
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kaboodle/CMakeLists.txt b/kaboodle/CMakeLists.txt
index 85cb017b..15680177 100644
--- a/kaboodle/CMakeLists.txt
+++ b/kaboodle/CMakeLists.txt
@@ -53,7 +53,7 @@ tde_add_kpart( libkaboodlepart AUTOMOC
DESTINATION ${PLUGIN_INSTALL_DIR}
)
-file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp "" )
+configure_file( ${TDE_CMAKE_TEMPLATES}/tde_dummy_cpp.cmake dummy.cpp COPYONLY )
##### kaboodle (executable) #####################
diff --git a/kaboodle/conf.h b/kaboodle/conf.h
index 06699db0..59c0d3bd 100644
--- a/kaboodle/conf.h
+++ b/kaboodle/conf.h
@@ -35,7 +35,7 @@ namespace Kaboodle
class Conf : public KDialogBase
{
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/kaboodle/controls.cpp b/kaboodle/controls.cpp
index c6b0a4a8..74517bd4 100644
--- a/kaboodle/controls.cpp
+++ b/kaboodle/controls.cpp
@@ -26,11 +26,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Kaboodle::L33tSlider::L33tSlider(TQWidget * parent, const char * name) :
TQSlider(parent,name), pressed(false)
{}
-Kaboodle::L33tSlider::L33tSlider(Qt::Orientation o, TQWidget * parent, const char * name) :
+Kaboodle::L33tSlider::L33tSlider(TQt::Orientation o, TQWidget * parent, const char * name) :
TQSlider(o,parent,name), pressed(false)
{}
Kaboodle::L33tSlider::L33tSlider(int minValue, int maxValue, int pageStep, int value,
- Qt::Orientation o, TQWidget * parent, const char * name) :
+ TQt::Orientation o, TQWidget * parent, const char * name) :
TQSlider(minValue, maxValue, pageStep, value, o, parent,name), pressed(false)
{}
@@ -47,7 +47,7 @@ void Kaboodle::L33tSlider::setValue(int i)
void Kaboodle::L33tSlider::mousePressEvent(TQMouseEvent*e)
{
- if (e->button()!=Qt::RightButton)
+ if (e->button()!=TQt::RightButton)
{
pressed=true;
TQSlider::mousePressEvent(e);
@@ -91,17 +91,17 @@ int Kaboodle::SliderAction::plug( TQWidget *w, int index )
int id = TDEAction::getToolButtonID();
//Create it.
- m_slider=new L33tSlider(0, 1000, 100, 0,Qt::Horizontal, toolBar);
+ m_slider=new L33tSlider(0, 1000, 100, 0,TQt::Horizontal, toolBar);
m_slider->setMinimumWidth(10);
toolBar->insertWidget(id, 10, m_slider, index );
addContainer( toolBar, id );
- connect( toolBar, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) );
+ connect( toolBar, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( slotDestroyed() ) );
toolBar->setItemAutoSized( id, true );
if (w->inherits( "TDEToolBar" ))
- connect(toolBar, TQT_SIGNAL(moved(TDEToolBar::BarPosition)), this, TQT_SLOT(toolbarMoved(TDEToolBar::BarPosition)));
+ connect(toolBar, TQ_SIGNAL(moved(TDEToolBar::BarPosition)), this, TQ_SLOT(toolbarMoved(TDEToolBar::BarPosition)));
emit plugged();
diff --git a/kaboodle/controls.h b/kaboodle/controls.h
index 307281e4..36bf4cb4 100644
--- a/kaboodle/controls.h
+++ b/kaboodle/controls.h
@@ -42,13 +42,13 @@ namespace Kaboodle
**/
class L33tSlider : public TQSlider
{
-Q_OBJECT
+TQ_OBJECT
public:
L33tSlider(TQWidget * parent, const char * name=0);
- L33tSlider(Qt::Orientation, TQWidget * parent, const char * name=0);
+ L33tSlider(TQt::Orientation, TQWidget * parent, const char * name=0);
L33tSlider(int minValue, int maxValue, int pageStep, int value,
- Qt::Orientation, TQWidget * parent, const char * name=0);
+ TQt::Orientation, TQWidget * parent, const char * name=0);
bool currentlyPressed() const;
signals:
@@ -73,7 +73,7 @@ private:
**/
class SliderAction : public TDEAction
{
-Q_OBJECT
+TQ_OBJECT
public:
SliderAction(const TQString& text, int accel, const TQObject *receiver,
diff --git a/kaboodle/engine.h b/kaboodle/engine.h
index 974a8541..ccd5c6ba 100644
--- a/kaboodle/engine.h
+++ b/kaboodle/engine.h
@@ -44,7 +44,7 @@ namespace Kaboodle
**/
class Engine : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/kaboodle/kaboodle_factory.h b/kaboodle/kaboodle_factory.h
index f1a3f72e..917429b7 100644
--- a/kaboodle/kaboodle_factory.h
+++ b/kaboodle/kaboodle_factory.h
@@ -34,14 +34,14 @@ 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_OBJECT_NAME_STRING, const TQStringList &args = TQStringList());
+ virtual KParts::Part *createPartObject(TQWidget *widgetParent, const char *widgetName, TQObject *parent = 0, const char *name = 0, const char *classname = "TQObject", const TQStringList &args = TQStringList());
static const TDEAboutData *aboutData();
static TDEInstance *instance();
diff --git a/kaboodle/kaboodleapp.h b/kaboodle/kaboodleapp.h
index c248b91f..1872d72a 100644
--- a/kaboodle/kaboodleapp.h
+++ b/kaboodle/kaboodleapp.h
@@ -32,7 +32,7 @@ class UserInterface;
class KaboodleApp : public TDEApplication
{
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/kaboodle/main.cpp b/kaboodle/main.cpp
index d83fb8cf..154b1b25 100644
--- a/kaboodle/main.cpp
+++ b/kaboodle/main.cpp
@@ -49,7 +49,7 @@ int main(int argc, char **argv)
#ifndef NDEBUG
if(!TDECmdLineArgs::parsedArgs()->isSet("qdebug"))
- tqInstallMsgHandler(noMessageOutput);
+ qInstallMsgHandler(noMessageOutput);
#endif
Kaboodle::KaboodleApp::addCmdLineOptions();
diff --git a/kaboodle/player.cpp b/kaboodle/player.cpp
index 4ec345c7..776ff320 100644
--- a/kaboodle/player.cpp
+++ b/kaboodle/player.cpp
@@ -41,7 +41,7 @@ Kaboodle::Player::Player(TQObject *parent, const char *name)
{
setInstance(KaboodleFactory::instance());
- connect(&ticker, TQT_SIGNAL(timeout()), TQT_SLOT(tickerTimeout()));
+ connect(&ticker, TQ_SIGNAL(timeout()), TQ_SLOT(tickerTimeout()));
ticker.start(500);
setState(Empty);
}
@@ -56,18 +56,18 @@ Kaboodle::Player::Player(TQWidget *widgetParent, const char *widgetName,
{
setInstance(KaboodleFactory::instance());
- connect(&ticker, TQT_SIGNAL(timeout()), TQT_SLOT(tickerTimeout()));
+ connect(&ticker, TQ_SIGNAL(timeout()), TQ_SLOT(tickerTimeout()));
ticker.start(500);
setState(Empty);
- playAction = new TDEAction(i18n("&Play"), 0, this, TQT_SLOT(play()), actionCollection(), "play");
- pauseAction = new TDEAction(i18n("&Pause"), 0, this, TQT_SLOT(pause()), actionCollection(), "pause");
- stopAction = new TDEAction(i18n("&Stop"), 0, this, TQT_SLOT(stop()), actionCollection(), "stop");
- loopAction = new TDEToggleAction(i18n("&Looping"), 0, this, TQT_SLOT(loop()), actionCollection(), "loop");
+ playAction = new TDEAction(i18n("&Play"), 0, this, TQ_SLOT(play()), actionCollection(), "play");
+ pauseAction = new TDEAction(i18n("&Pause"), 0, this, TQ_SLOT(pause()), actionCollection(), "pause");
+ stopAction = new TDEAction(i18n("&Stop"), 0, this, TQ_SLOT(stop()), actionCollection(), "stop");
+ loopAction = new TDEToggleAction(i18n("&Looping"), 0, this, TQ_SLOT(loop()), actionCollection(), "loop");
stopAction->setEnabled(false);
playAction->setEnabled(false);
pauseAction->setEnabled(false);
- connect(this, TQT_SIGNAL(loopingChanged(bool)), loopAction, TQT_SLOT(setChecked(bool)));
+ connect(this, TQ_SIGNAL(loopingChanged(bool)), loopAction, TQ_SLOT(setChecked(bool)));
KParts::Part::setWidget(widget);
setXMLFile("kaboodlepartui.rc");
@@ -108,7 +108,7 @@ bool Kaboodle::Player::openURL(const KURL &f)
if (previousLoad)
{
- TQTimer::singleShot( 0, this, SLOT(play()) );
+ TQTimer::singleShot( 0, this, TQ_SLOT(play()) );
return true;
}
diff --git a/kaboodle/player.h b/kaboodle/player.h
index b528fa9d..f9379c56 100644
--- a/kaboodle/player.h
+++ b/kaboodle/player.h
@@ -42,7 +42,7 @@ class View;
class BrowserExtension : public KParts::BrowserExtension
{
-Q_OBJECT
+TQ_OBJECT
public:
@@ -51,7 +51,7 @@ public:
class Player : public KMediaPlayer::Player
{
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/kaboodle/userinterface.cpp b/kaboodle/userinterface.cpp
index 08531166..45edc4a4 100644
--- a/kaboodle/userinterface.cpp
+++ b/kaboodle/userinterface.cpp
@@ -54,16 +54,16 @@ Kaboodle::UserInterface::UserInterface(TQWidget *parent, const KURL &initialFile
setAcceptDrops(true);
setStandardToolBarMenuEnabled(true);
- 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() );
+ KStdAction::open(this, TQ_SLOT(fileOpen()), actionCollection());
+ KStdAction::quit(kapp, TQ_SLOT(quit()), actionCollection());
+ KStdAction::preferences(this, TQ_SLOT(playerPreferences()), actionCollection());
+ KStdAction::keyBindings( this, TQ_SLOT( slotConfigureKeys() ), actionCollection() );
- menubarAction = KStdAction::showMenubar(TQT_TQOBJECT(this), TQT_SLOT(showMenubar()), actionCollection());
- propertiesAction = new TDEAction(i18n("Properties"), 0, TQT_TQOBJECT(this), TQT_SLOT(properties()), actionCollection(), "properties");
+ menubarAction = KStdAction::showMenubar(this, TQ_SLOT(showMenubar()), actionCollection());
+ propertiesAction = new TDEAction(i18n("Properties"), 0, this, TQ_SLOT(properties()), actionCollection(), "properties");
propertiesAction->setEnabled(false);
- part = new Player(this, "KaboodlePlayer", TQT_TQOBJECT(this), "KaboodleView");
+ part = new Player(this, "KaboodlePlayer", this, "KaboodleView");
part->view()->setButtons(KMediaPlayer::View::Seeker);
setCentralWidget(part->view());
@@ -72,8 +72,8 @@ Kaboodle::UserInterface::UserInterface(TQWidget *parent, const KURL &initialFile
statusBar()->show();
- connect(part, TQT_SIGNAL(setWindowCaption(const TQString &)), this, TQT_SLOT(updateTitle(const TQString &)));
- connect(part->view(), TQT_SIGNAL(adaptSize(int, int)), this, TQT_SLOT(adaptSize(int, int)));
+ connect(part, TQ_SIGNAL(setWindowCaption(const TQString &)), this, TQ_SLOT(updateTitle(const TQString &)));
+ connect(part->view(), TQ_SIGNAL(adaptSize(int, int)), this, TQ_SLOT(adaptSize(int, int)));
setIcon(SmallIcon("kaboodle"));
diff --git a/kaboodle/userinterface.h b/kaboodle/userinterface.h
index d82186a4..816941e7 100644
--- a/kaboodle/userinterface.h
+++ b/kaboodle/userinterface.h
@@ -41,7 +41,7 @@ namespace Kaboodle
*/
class UserInterface : public KParts::MainWindow
{
-Q_OBJECT
+TQ_OBJECT
public:
UserInterface(TQWidget *parent, const KURL &initialFile = KURL());
diff --git a/kaboodle/view.cpp b/kaboodle/view.cpp
index 7cf14afc..3a16135c 100644
--- a/kaboodle/view.cpp
+++ b/kaboodle/view.cpp
@@ -49,7 +49,7 @@ TQButton *createButton(const TQIconSet &_iconset, const TQString &_tip, TQObject
button->setMaximumSize(50, 50);
button->setIconSet(_iconset);
TQToolTip::add(button, _tip);
- TQObject::connect(button, TQT_SIGNAL(clicked()), _receiver, _slot);
+ TQObject::connect(button, TQ_SIGNAL(clicked()), _receiver, _slot);
button->show();
return button;
}
@@ -72,12 +72,12 @@ Kaboodle::View::View(TQWidget *parent, const char *name, Player *p)
video = new KVideoWidget(player, box);
video->actionCollection()->readShortcutSettings();
setVideoWidget(video);
- connect(video, TQT_SIGNAL(adaptSize(int, int)), this, TQT_SLOT(calculateSize(int, int)));
- connect(video, TQT_SIGNAL(mouseButtonPressed(int, const TQPoint&, int)), this, TQT_SLOT(slotButtonPressed(int, const TQPoint &, int) ) ) ;
- connect(video, TQT_SIGNAL(mouseButtonDoubleClick(const TQPoint&, int)), this, TQT_SLOT(slotDblClick(const TQPoint &, int) ) ) ;
+ connect(video, TQ_SIGNAL(adaptSize(int, int)), this, TQ_SLOT(calculateSize(int, int)));
+ connect(video, TQ_SIGNAL(mouseButtonPressed(int, const TQPoint&, int)), this, TQ_SLOT(slotButtonPressed(int, const TQPoint &, int) ) ) ;
+ connect(video, TQ_SIGNAL(mouseButtonDoubleClick(const TQPoint&, int)), this, TQ_SLOT(slotDblClick(const TQPoint &, int) ) ) ;
TQWidget *sliderBox = new TQWidget(box);
- sliderBox->setFocusPolicy(TQ_ClickFocus);
+ sliderBox->setFocusPolicy(TQWidget::ClickFocus);
sliderBox->setAcceptDrops(true);
TQHBoxLayout *layout = new TQHBoxLayout(sliderBox);
@@ -85,11 +85,11 @@ Kaboodle::View::View(TQWidget *parent, const char *name, Player *p)
layout->setMargin(0);
layout->setAutoAdd(true);
- playButton = createButton(BarIconSet("1rightarrow"), i18n("Play"), player, TQT_SLOT(play()), sliderBox);
- pauseButton = createButton(BarIconSet("media-playback-pause"), i18n("Pause"), player, TQT_SLOT(pause()), sliderBox);
- stopButton = createButton(BarIconSet("media-playback-stop"), i18n("Stop"), player, TQT_SLOT(stop()), sliderBox);
+ playButton = createButton(BarIconSet("1rightarrow"), i18n("Play"), player, TQ_SLOT(play()), sliderBox);
+ pauseButton = createButton(BarIconSet("media-playback-pause"), i18n("Pause"), player, TQ_SLOT(pause()), sliderBox);
+ stopButton = createButton(BarIconSet("media-playback-stop"), i18n("Stop"), player, TQ_SLOT(stop()), sliderBox);
- slider = new L33tSlider(0, 1000, 10, 0, Qt::Horizontal, sliderBox);
+ slider = new L33tSlider(0, 1000, 10, 0, TQt::Horizontal, sliderBox);
slider->setTickmarks(TQSlider::NoMarks);
slider->show();
@@ -103,15 +103,15 @@ Kaboodle::View::View(TQWidget *parent, const char *name, Player *p)
elapsedLabel->setFixedHeight(labelFontMetrics.height());
elapsedLabel->setMinimumWidth(labelFontMetrics.width("00:00"));
- connect(player, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(stateChanged(int)));
- connect(player, TQT_SIGNAL(completed()), this, TQT_SLOT(playerFinished()));
- connect(player, TQT_SIGNAL(timeout()), this, TQT_SLOT(playerTimeout()));
+ connect(player, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(stateChanged(int)));
+ connect(player, TQ_SIGNAL(completed()), this, TQ_SLOT(playerFinished()));
+ connect(player, TQ_SIGNAL(timeout()), this, TQ_SLOT(playerTimeout()));
- connect(slider, TQT_SIGNAL(userChanged(int)), this, TQT_SLOT(skipToWrapper(int)));
- connect(slider, TQT_SIGNAL(sliderMoved(int)), this, TQT_SLOT(sliderMoved(int)));
+ connect(slider, TQ_SIGNAL(userChanged(int)), this, TQ_SLOT(skipToWrapper(int)));
+ connect(slider, TQ_SIGNAL(sliderMoved(int)), this, TQ_SLOT(sliderMoved(int)));
slider->setEnabled(false);
- connect(this, TQT_SIGNAL(buttonsChanged(int)), this, TQT_SLOT(updateButtons(int)));
+ connect(this, TQ_SIGNAL(buttonsChanged(int)), this, TQ_SLOT(updateButtons(int)));
updateButtons(buttons());
updateLabel("--:--/--:--");
diff --git a/kaboodle/view.h b/kaboodle/view.h
index 9b4e8fba..c5003980 100644
--- a/kaboodle/view.h
+++ b/kaboodle/view.h
@@ -44,7 +44,7 @@ namespace Kaboodle
{
class View : public KMediaPlayer::View
{
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/kaudiocreator/cdconfig.ui b/kaudiocreator/cdconfig.ui
index c0756c83..50133562 100644
--- a/kaudiocreator/cdconfig.ui
+++ b/kaudiocreator/cdconfig.ui
@@ -54,8 +54,8 @@
</spacer>
</vbox>
</widget>
-<Q_SLOTS>
+<slots>
<slot access="protected" specifier="non virtual">configureAudioCD()</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kaudiocreator/encodefile.ui b/kaudiocreator/encodefile.ui
index d0b6df94..10eed553 100644
--- a/kaudiocreator/encodefile.ui
+++ b/kaudiocreator/encodefile.ui
@@ -338,10 +338,8 @@
<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in declaration">kdialog.h</include>
+ <include location="global" impldecl="in implementation">klineedit.h</include>
+ <include location="global" impldecl="in implementation">kpushbutton.h</include>
<include location="global" impldecl="in implementation">kurlrequester.h</include>
</includes>
-<includehints>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
-</includehints>
</UI>
diff --git a/kaudiocreator/encodefileimp.cpp b/kaudiocreator/encodefileimp.cpp
index 75f79736..28bc688a 100644
--- a/kaudiocreator/encodefileimp.cpp
+++ b/kaudiocreator/encodefileimp.cpp
@@ -33,8 +33,8 @@ EncodeFileImp::EncodeFileImp(TQWidget* parent,
// Specify to only accept wav files
file->setFilter("*.wav|Wav Files");
- connect(file,TQT_SIGNAL(textChanged(const TQString &)),this,TQT_SLOT(enableEncodeButton(const TQString &)));
- connect(encodeButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(encode()));
+ connect(file,TQ_SIGNAL(textChanged(const TQString &)),this,TQ_SLOT(enableEncodeButton(const TQString &)));
+ connect(encodeButton,TQ_SIGNAL(clicked()),this,TQ_SLOT(encode()));
}
/**
diff --git a/kaudiocreator/encodefileimp.h b/kaudiocreator/encodefileimp.h
index 1a3cd21c..f7ffff87 100644
--- a/kaudiocreator/encodefileimp.h
+++ b/kaudiocreator/encodefileimp.h
@@ -32,7 +32,7 @@ class Job;
*/
class EncodeFileImp : public EncodeFile {
-Q_OBJECT
+TQ_OBJECT
signals:
diff --git a/kaudiocreator/encoder.cpp b/kaudiocreator/encoder.cpp
index 9cc729a6..23137f3d 100644
--- a/kaudiocreator/encoder.cpp
+++ b/kaudiocreator/encoder.cpp
@@ -212,11 +212,11 @@ void Encoder::tendToNewJobs() {
proc->setPriority(Prefs::niceLevel());
*proc << TQFile::encodeName(command).data();
- connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int )),
- this, TQT_SLOT(receivedThreadOutput(TDEProcess *, char *, int )));
- connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int )),
- this, TQT_SLOT(receivedThreadOutput(TDEProcess *, char *, int )));
- connect(proc, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(jobDone(TDEProcess *)));
+ connect(proc, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int )),
+ this, TQ_SLOT(receivedThreadOutput(TDEProcess *, char *, int )));
+ connect(proc, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int )),
+ this, TQ_SLOT(receivedThreadOutput(TDEProcess *, char *, int )));
+ connect(proc, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(jobDone(TDEProcess *)));
jobs.insert(proc, job);
threads.append(proc);
diff --git a/kaudiocreator/encoder.h b/kaudiocreator/encoder.h
index b891e0b5..fdc7bb53 100644
--- a/kaudiocreator/encoder.h
+++ b/kaudiocreator/encoder.h
@@ -32,7 +32,7 @@ class EncoderPrefs;
class Encoder : public TQObject {
-Q_OBJECT
+TQ_OBJECT
signals:
diff --git a/kaudiocreator/encoderconfig.ui b/kaudiocreator/encoderconfig.ui
index 66a3daaa..338bac68 100644
--- a/kaudiocreator/encoderconfig.ui
+++ b/kaudiocreator/encoderconfig.ui
@@ -286,8 +286,8 @@
<includes>
<include location="local" impldecl="in implementation">encoderconfig.ui.h</include>
</includes>
-<Q_SLOTS>
+<slots>
<slot>encoderWizard()</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kaudiocreator/encoderconfigimp.cpp b/kaudiocreator/encoderconfigimp.cpp
index 2865dce3..e2ca1188 100644
--- a/kaudiocreator/encoderconfigimp.cpp
+++ b/kaudiocreator/encoderconfigimp.cpp
@@ -34,10 +34,10 @@
*/
EncoderConfigImp::EncoderConfigImp( TQWidget* parent, const char* name) :
EncoderConfig (parent, 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()));
- connect(kcfg_currentEncoder, TQT_SIGNAL(doubleClicked ( TQListBoxItem * )),this, TQT_SLOT(configureEncoderSlot()));
+ connect(addEncoder, TQ_SIGNAL(clicked()), this, TQ_SLOT(addEncoderSlot()));
+ connect(removeEncoder, TQ_SIGNAL(clicked()), this, TQ_SLOT(removeEncoderSlot()));
+ connect(configureEncoder, TQ_SIGNAL(clicked()), this, TQ_SLOT(configureEncoderSlot()));
+ connect(kcfg_currentEncoder, TQ_SIGNAL(doubleClicked ( TQListBoxItem * )),this, TQ_SLOT(configureEncoderSlot()));
// If there are no encoders then store the three default ones.
if( Prefs::lastKnownEncoder() == 0){
@@ -138,7 +138,7 @@ void EncoderConfigImp::addEncoderSlot(){
KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::Help);
dialog->setCaption(i18n("Configure Encoder"));
dialog->addPage(new EncoderEdit(0, groupName.latin1()), i18n("Encoder Configuration"), "package_settings");
- connect(dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(loadEncoderList()));
+ connect(dialog, TQ_SIGNAL(settingsChanged()), this, TQ_SLOT(loadEncoderList()));
dialog->show();
}
@@ -198,9 +198,9 @@ void EncoderConfigImp::configureEncoderSlot() {
KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::Help);
dialog->setCaption(i18n("Configure Encoder"));
dialog->addPage(new EncoderEdit(0, groupName.latin1()), i18n("Encoder Configuration"), "package_settings");
- connect(dialog, TQT_SIGNAL(destroyed(TQObject *)), this, TQT_SLOT(updateEncoder(TQObject *)));
- connect(dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SIGNAL(encoderUpdated()));
- connect(dialog, TQT_SIGNAL(settingsChanged(const char *)), this, TQT_SLOT(updateEncoder(const char *)));
+ connect(dialog, TQ_SIGNAL(destroyed(TQObject *)), this, TQ_SLOT(updateEncoder(TQObject *)));
+ connect(dialog, TQ_SIGNAL(settingsChanged()), this, TQ_SIGNAL(encoderUpdated()));
+ connect(dialog, TQ_SIGNAL(settingsChanged(const char *)), this, TQ_SLOT(updateEncoder(const char *)));
dialog->show();
}
diff --git a/kaudiocreator/encoderconfigimp.h b/kaudiocreator/encoderconfigimp.h
index f53a3426..dce1c111 100644
--- a/kaudiocreator/encoderconfigimp.h
+++ b/kaudiocreator/encoderconfigimp.h
@@ -31,7 +31,7 @@
*/
class EncoderConfigImp : public EncoderConfig {
-Q_OBJECT
+TQ_OBJECT
signals:
diff --git a/kaudiocreator/encoderoutput.ui b/kaudiocreator/encoderoutput.ui
index 8851d0f4..a99d3c83 100644
--- a/kaudiocreator/encoderoutput.ui
+++ b/kaudiocreator/encoderoutput.ui
@@ -77,9 +77,6 @@
<property name="text">
<string>&amp;OK</string>
</property>
- <property name="accel">
- <string></string>
- </property>
<property name="autoDefault">
<bool>true</bool>
</property>
diff --git a/kaudiocreator/general.ui b/kaudiocreator/general.ui
index 3e29240c..2fd465f3 100644
--- a/kaudiocreator/general.ui
+++ b/kaudiocreator/general.ui
@@ -278,8 +278,8 @@
<includes>
<include location="local" impldecl="in implementation">general.ui.h</include>
</includes>
-<Q_SLOTS>
+<slots>
<slot access="protected" specifier="non virtual">updateExample()</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kaudiocreator/jobqueimp.cpp b/kaudiocreator/jobqueimp.cpp
index a800aea3..760f8e4a 100644
--- a/kaudiocreator/jobqueimp.cpp
+++ b/kaudiocreator/jobqueimp.cpp
@@ -51,9 +51,9 @@
*/
JobQueImp::JobQueImp( TQWidget* parent, const char* name) :
JobQue(parent,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()));
+ connect(removeSelected,TQ_SIGNAL(clicked()), this, TQ_SLOT( removeSelectedJob()));
+ connect(removeAll, TQ_SIGNAL(clicked()), this, TQ_SLOT(removeAllJobs()));
+ connect(removeDoneJobs, TQ_SIGNAL(clicked()), this, TQ_SLOT(clearDoneJobs()));
}
/**
diff --git a/kaudiocreator/jobqueimp.h b/kaudiocreator/jobqueimp.h
index 70aa7b40..22afd601 100644
--- a/kaudiocreator/jobqueimp.h
+++ b/kaudiocreator/jobqueimp.h
@@ -48,7 +48,7 @@ public:
class JobQueImp : public JobQue {
-Q_OBJECT
+TQ_OBJECT
signals:
diff --git a/kaudiocreator/kaudiocreator.cpp b/kaudiocreator/kaudiocreator.cpp
index 8c752338..115de82f 100644
--- a/kaudiocreator/kaudiocreator.cpp
+++ b/kaudiocreator/kaudiocreator.cpp
@@ -58,80 +58,80 @@ KAudioCreator::KAudioCreator( TQWidget* parent, const char* name) :
TQVBox *frame = janusWidget->addVBoxPage(i18n("&CD Tracks"), TQString(), SmallIcon("media-optical-cdaudio-unmounted", 32));
tracks = new TracksImp(frame, "Tracks");
- ripper = new Ripper ( TQT_TQOBJECT(frame), "Rip" );
- encoder = new Encoder( TQT_TQOBJECT(frame), "Encoder" );
+ ripper = new Ripper ( frame, "Rip" );
+ encoder = new Encoder( frame, "Encoder" );
frame = janusWidget->addVBoxPage( i18n("&Jobs"), TQString(), SmallIcon( "system-run", 32 ) );
jobQue = new JobQueImp( frame, "Que" );
resize(500, 440);
- /*TDEAction *eject = */new TDEAction( i18n("&Eject CD"), 0, TQT_TQOBJECT(tracks),
- TQT_SLOT( eject() ), actionCollection(), "eject" );
+ /*TDEAction *eject = */new TDEAction( i18n("&Eject CD"), 0, tracks,
+ TQ_SLOT( eject() ), actionCollection(), "eject" );
- (void)new TDEAction( i18n("&Configure KAudioCreator..."), 0, TQT_TQOBJECT(this),
- TQT_SLOT( showSettings() ), actionCollection(), "configure_kaudiocreator" );
+ (void)new TDEAction( i18n("&Configure KAudioCreator..."), 0, this,
+ TQ_SLOT( showSettings() ), actionCollection(), "configure_kaudiocreator" );
- TDEAction *selectAll = new TDEAction( i18n( "Select &All Tracks"), 0, TQT_TQOBJECT(tracks),
- TQT_SLOT( selectAllTracks() ), actionCollection(), "select_all" ) ;
- TDEAction *deselectAll = new TDEAction( i18n( "Deselect &All Tracks"), 0, TQT_TQOBJECT(tracks),
- TQT_SLOT( deselectAllTracks() ), actionCollection(), "deselect_all" );
+ TDEAction *selectAll = new TDEAction( i18n( "Select &All Tracks"), 0, tracks,
+ TQ_SLOT( selectAllTracks() ), actionCollection(), "select_all" ) ;
+ TDEAction *deselectAll = new TDEAction( i18n( "Deselect &All Tracks"), 0, tracks,
+ TQ_SLOT( deselectAllTracks() ), actionCollection(), "deselect_all" );
selectAll->setEnabled( false );
deselectAll->setEnabled( false );
TDEActionMenu *actActionMenu = new TDEActionMenu( i18n("Rip &Selection"), "rip", actionCollection(), "rip" );
actActionMenu->setDelayed(true); //needed for checking "all accounts"
actActionMenu->setEnabled( false );
- connect( actActionMenu, TQT_SIGNAL( activated() ), TQT_TQOBJECT(tracks), TQT_SLOT( startSession() ) );
+ connect( actActionMenu, TQ_SIGNAL( activated() ), tracks, TQ_SLOT( startSession() ) );
ripMenu = actActionMenu->popupMenu();
- connect( ripMenu, TQT_SIGNAL( activated(int) ), TQT_TQOBJECT(this), TQT_SLOT( slotRipSelection(int)) );
- connect( ripMenu, TQT_SIGNAL( aboutToShow() ), TQT_TQOBJECT(this), TQT_SLOT( getRipMenu()) );
+ connect( ripMenu, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( slotRipSelection(int)) );
+ connect( ripMenu, TQ_SIGNAL( aboutToShow() ), this, TQ_SLOT( getRipMenu()) );
- TDEAction *rip = new TDEAction( i18n( "Rip &Selection" ), 0, TQT_TQOBJECT(tracks),
- TQT_SLOT( startSession() ), actionCollection(), "rip_selected" );
+ TDEAction *rip = new TDEAction( i18n( "Rip &Selection" ), 0, tracks,
+ TQ_SLOT( startSession() ), actionCollection(), "rip_selected" );
rip->setEnabled( false );
- connect( jobQue, TQT_SIGNAL( removeJob(int) ), TQT_TQOBJECT(this), TQT_SLOT( updateStatus() ) );
- 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) ), 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( 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( updateStatus() ) );
-
- 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 TDEAction(i18n("Remove &Completed Jobs"), 0, TQT_TQOBJECT(jobQue),
- TQT_SLOT(clearDoneJobs()), actionCollection(), "clear_done_jobs" );
-
- TDEAction *edit = new TDEAction(i18n("&Edit Album..."), 0, TQT_TQOBJECT(tracks),
- TQT_SLOT(editInformation()), actionCollection(), "edit_cd");
- connect(tracks, TQT_SIGNAL(hasCD(bool)), edit, TQT_SLOT(setEnabled(bool)));
+ connect( jobQue, TQ_SIGNAL( removeJob(int) ), this, TQ_SLOT( updateStatus() ) );
+ connect( jobQue, TQ_SIGNAL( removeJob(int) ), ripper, TQ_SLOT( removeJob(int) ) );
+ connect( jobQue, TQ_SIGNAL( removeJob(int) ), encoder, TQ_SLOT( removeJob(int)) );
+
+ connect( ripper, TQ_SIGNAL( updateProgress(int, int) ), jobQue, TQ_SLOT( updateProgress(int,int) ) );
+ connect( ripper, TQ_SIGNAL( addJob(Job*, const TQString &) ), jobQue, TQ_SLOT( addJob(Job*, const TQString &)) );
+ connect( ripper, TQ_SIGNAL( eject(const TQString &) ) , tracks, TQ_SLOT( ejectDevice(const TQString &)) );
+ connect( ripper, TQ_SIGNAL( encodeWav(Job *) ) , encoder, TQ_SLOT( encodeWav(Job *)) );
+ connect( ripper, TQ_SIGNAL( jobsChanged() ) , this, TQ_SLOT( updateStatus() ) );
+
+ connect( encoder, TQ_SIGNAL( updateProgress(int, int) ) , jobQue, TQ_SLOT( updateProgress(int,int)) );
+ connect( encoder, TQ_SIGNAL( addJob(Job*, const TQString&)), jobQue, TQ_SLOT( addJob(Job*, const TQString &)) );
+ connect( encoder, TQ_SIGNAL( jobsChanged() ) , this, TQ_SLOT( updateStatus() ) );
+
+ connect( tracks, TQ_SIGNAL( hasCD(bool) ) , this, TQ_SLOT( hasCD(bool) ) );
+ connect( tracks, TQ_SIGNAL( ripTrack(Job *) ), ripper, TQ_SLOT( ripTrack(Job *)) );
+ connect( tracks, TQ_SIGNAL( hasTracks(bool) ), rip, TQ_SLOT( setEnabled(bool)) );
+ connect( tracks, TQ_SIGNAL( hasTracks(bool) ), actActionMenu, TQ_SLOT( setEnabled(bool)) );
+ connect( tracks, TQ_SIGNAL( hasTracks(bool) ), deselectAll, TQ_SLOT( setEnabled(bool)) );
+ connect( tracks, TQ_SIGNAL( hasTracks(bool) ), selectAll, TQ_SLOT( setEnabled(bool)) );
+
+ (void)new TDEAction(i18n("Remove &Completed Jobs"), 0, jobQue,
+ TQ_SLOT(clearDoneJobs()), actionCollection(), "clear_done_jobs" );
+
+ TDEAction *edit = new TDEAction(i18n("&Edit Album..."), 0, tracks,
+ TQ_SLOT(editInformation()), actionCollection(), "edit_cd");
+ connect(tracks, TQ_SIGNAL(hasCD(bool)), edit, TQ_SLOT(setEnabled(bool)));
edit->setEnabled( false );
- (void)new TDEAction(i18n("Encode &File..."), 0, TQT_TQOBJECT(this),
- TQT_SLOT(encodeFile()), actionCollection(), "encode_file");
+ (void)new TDEAction(i18n("Encode &File..."), 0, this,
+ TQ_SLOT(encodeFile()), actionCollection(), "encode_file");
- TDEAction *cddb = new TDEAction(i18n("&CDDB Lookup"), 0, TQT_TQOBJECT(tracks),
- TQT_SLOT(performCDDB()), actionCollection(), "cddb_now");
- connect(tracks, TQT_SIGNAL(hasCD(bool)), cddb, TQT_SLOT(setEnabled(bool)));
+ TDEAction *cddb = new TDEAction(i18n("&CDDB Lookup"), 0, tracks,
+ TQ_SLOT(performCDDB()), actionCollection(), "cddb_now");
+ connect(tracks, TQ_SIGNAL(hasCD(bool)), cddb, TQ_SLOT(setEnabled(bool)));
cddb->setEnabled( false );
- KStdAction::configureNotifications(TQT_TQOBJECT(this), TQT_SLOT(configureNotifications()),
+ KStdAction::configureNotifications(this, TQ_SLOT(configureNotifications()),
actionCollection());
- KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection(), "quit" );
+ KStdAction::quit( this, TQ_SLOT(close()), actionCollection(), "quit" );
// Init statusbar
statusBar()->insertItem(i18n("No Audio CD detected"), 0 );
@@ -216,7 +216,7 @@ void KAudioCreator::configureNotifications() {
void KAudioCreator::encodeFile(){
EncodeFileImp *file = new EncodeFileImp(this, "EncodeFile");
- connect(file, TQT_SIGNAL(startJob(Job*)),encoder, TQT_SLOT(encodeWav(Job*)));
+ connect(file, TQ_SIGNAL(startJob(Job*)),encoder, TQ_SLOT(encodeWav(Job*)));
file->show();
}
@@ -228,10 +228,10 @@ void KAudioCreator::showSettings(){
return;
SettingsDialog *dialog = new SettingsDialog(this, "settings", Prefs::self());
- connect(dialog, TQT_SIGNAL(settingsChanged()), ripper, 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()));
+ connect(dialog, TQ_SIGNAL(settingsChanged()), ripper, TQ_SLOT(loadSettings()));
+ connect(dialog, TQ_SIGNAL(settingsChanged()), encoder, TQ_SLOT(loadSettings()));
+ connect(dialog, TQ_SIGNAL(settingsChanged()), tracks, TQ_SLOT(loadSettings()));
+ connect(dialog->encoderConfigImp, TQ_SIGNAL(encoderUpdated()), encoder, TQ_SLOT(loadSettings()));
dialog->show();
}
@@ -253,7 +253,7 @@ SettingsDialog::SettingsDialog(TQWidget *parent, const char *name,TDEConfigSkele
{
cddb->load();
addPage(cddb, i18n("CDDB"), "media-optical-cdaudio-mounted", i18n("CDDB Configuration"), false);
- connect(cddb, TQT_SIGNAL(changed(bool)), TQT_TQOBJECT(this), TQT_SLOT(slotCddbChanged(bool)));
+ connect(cddb, TQ_SIGNAL(changed(bool)), this, TQ_SLOT(slotCddbChanged(bool)));
}
}
RipConfig *rip = new RipConfig(0, "Ripper");
diff --git a/kaudiocreator/kaudiocreator.h b/kaudiocreator/kaudiocreator.h
index e85ec4ab..a31280c2 100644
--- a/kaudiocreator/kaudiocreator.h
+++ b/kaudiocreator/kaudiocreator.h
@@ -35,7 +35,7 @@ class TDEPopupMenu;
class KAudioCreator : public TDEMainWindow {
-Q_OBJECT
+TQ_OBJECT
public:
@@ -67,7 +67,7 @@ private:
};
class SettingsDialog: public TDEConfigDialog {
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/kaudiocreator/ripconfig.ui b/kaudiocreator/ripconfig.ui
index 46924658..21dfa8f3 100644
--- a/kaudiocreator/ripconfig.ui
+++ b/kaudiocreator/ripconfig.ui
@@ -184,10 +184,8 @@
</tabstops>
<layoutdefaults spacing="6" margin="11"/>
<includes>
+ <include location="global" impldecl="in implementation">klineedit.h</include>
+ <include location="global" impldecl="in implementation">kpushbutton.h</include>
<include location="global" impldecl="in implementation">kurlrequester.h</include>
</includes>
-<includehints>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
-</includehints>
</UI>
diff --git a/kaudiocreator/ripper.cpp b/kaudiocreator/ripper.cpp
index 657d21b2..9dab32eb 100644
--- a/kaudiocreator/ripper.cpp
+++ b/kaudiocreator/ripper.cpp
@@ -57,8 +57,8 @@ Ripper::~Ripper(){
if(ioJob){
TDEIO::FileCopyJob *copyJob = static_cast<TDEIO::FileCopyJob*> (ioJob);
- disconnect(copyJob, TQT_SIGNAL(result(TDEIO::Job*)), this, TQT_SLOT(copyJobResult(TDEIO::Job*)));
- disconnect(copyJob, TQT_SIGNAL(percent ( TDEIO::Job *, unsigned long)), this, TQT_SLOT(updateProgress ( TDEIO::Job *, unsigned long)));
+ disconnect(copyJob, TQ_SIGNAL(result(TDEIO::Job*)), this, TQ_SLOT(copyJobResult(TDEIO::Job*)));
+ disconnect(copyJob, TQ_SIGNAL(percent ( TDEIO::Job *, unsigned long)), this, TQ_SLOT(updateProgress ( TDEIO::Job *, unsigned long)));
TQString fileDestination = (copyJob->destURL()).path();
copyJob->kill();
TQFile file( fileDestination );
@@ -184,8 +184,8 @@ void Ripper::tendToNewJobs(){
TDEIO::FileCopyJob *copyJob = new TDEIO::FileCopyJob(source, dest, 0644, false, true, false, false);
jobs.insert(copyJob, job);
- connect(copyJob, TQT_SIGNAL(result(TDEIO::Job*)), this, TQT_SLOT(copyJobResult(TDEIO::Job*)));
- connect(copyJob, TQT_SIGNAL(percent ( TDEIO::Job *, unsigned long)), this, TQT_SLOT(updateProgress ( TDEIO::Job *, unsigned long)));
+ connect(copyJob, TQ_SIGNAL(result(TDEIO::Job*)), this, TQ_SLOT(copyJobResult(TDEIO::Job*)));
+ connect(copyJob, TQ_SIGNAL(percent ( TDEIO::Job *, unsigned long)), this, TQ_SLOT(updateProgress ( TDEIO::Job *, unsigned long)));
emit jobsChanged();
}
@@ -234,7 +234,7 @@ void Ripper::copyJobResult(TDEIO::Job *copyjob){
}
if( !job ){
deviceToEject = newJob->device;
- TQTimer::singleShot( Prefs::autoEjectDelay()*1000 + 500, this, TQT_SLOT(ejectNow()));
+ TQTimer::singleShot( Prefs::autoEjectDelay()*1000 + 500, this, TQ_SLOT(ejectNow()));
}
}
KNotifyClient::event("cd ripped");
diff --git a/kaudiocreator/ripper.h b/kaudiocreator/ripper.h
index 1d79c0e8..78d2234f 100644
--- a/kaudiocreator/ripper.h
+++ b/kaudiocreator/ripper.h
@@ -30,7 +30,7 @@ class Job;
class Ripper : public TQObject {
-Q_OBJECT
+TQ_OBJECT
signals:
diff --git a/kaudiocreator/tracks.ui b/kaudiocreator/tracks.ui
index 76559afe..c009a2c0 100644
--- a/kaudiocreator/tracks.ui
+++ b/kaudiocreator/tracks.ui
@@ -220,9 +220,7 @@
<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in implementation">kcombobox.h</include>
+ <include location="global" impldecl="in implementation">klineedit.h</include>
<include location="global" impldecl="in implementation">tdelistview.h</include>
</includes>
-<includehints>
- <includehint>klineedit.h</includehint>
-</includehints>
</UI>
diff --git a/kaudiocreator/tracksimp.cpp b/kaudiocreator/tracksimp.cpp
index 0d7ab5cd..42c43599 100644
--- a/kaudiocreator/tracksimp.cpp
+++ b/kaudiocreator/tracksimp.cpp
@@ -55,22 +55,22 @@ TracksImp::TracksImp( TQWidget* parent, const char* name) :
{
cd = new TDECompactDisc;
- connect(cd,TQT_SIGNAL(discChanged(unsigned)),this,TQT_SLOT(newDisc(unsigned)));
+ connect(cd,TQ_SIGNAL(discChanged(unsigned)),this,TQ_SLOT(newDisc(unsigned)));
- connect(trackListing, TQT_SIGNAL(clicked( TQListViewItem * )), this, TQT_SLOT(selectTrack(TQListViewItem*)));
- connect(trackListing, TQT_SIGNAL(doubleClicked(TQListViewItem *)), this, TQT_SLOT(editInformation()));
- connect(trackListing, TQT_SIGNAL(returnPressed(TQListViewItem *)), this, TQT_SLOT(editInformation()));
- connect(selectAllTracksButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(selectAllTracks()));
- connect(deselectAllTracksButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(deselectAllTracks()));
+ connect(trackListing, TQ_SIGNAL(clicked( TQListViewItem * )), this, TQ_SLOT(selectTrack(TQListViewItem*)));
+ connect(trackListing, TQ_SIGNAL(doubleClicked(TQListViewItem *)), this, TQ_SLOT(editInformation()));
+ connect(trackListing, TQ_SIGNAL(returnPressed(TQListViewItem *)), this, TQ_SLOT(editInformation()));
+ connect(selectAllTracksButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(selectAllTracks()));
+ connect(deselectAllTracksButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(deselectAllTracks()));
- connect(deviceCombo, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changeDevice(const TQString &)));
+ connect(deviceCombo, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(changeDevice(const TQString &)));
selectAllTracksButton->setEnabled( false );
deselectAllTracksButton->setEnabled( false );
cddb = new KCDDB::Client();
cddb->setBlockingMode(false);
- connect(cddb, TQT_SIGNAL(finished(CDDB::Result)), this, TQT_SLOT(lookupCDDBDone(CDDB::Result)));
+ connect(cddb, TQ_SIGNAL(finished(CDDB::Result)), this, TQ_SLOT(lookupCDDBDone(CDDB::Result)));
trackListing->setSorting(-1, false);
loadSettings();
}
diff --git a/kaudiocreator/tracksimp.h b/kaudiocreator/tracksimp.h
index 72c33396..e25b6fa7 100644
--- a/kaudiocreator/tracksimp.h
+++ b/kaudiocreator/tracksimp.h
@@ -85,7 +85,7 @@ private:
*/
class TracksImp : public Tracks {
-Q_OBJECT
+TQ_OBJECT
signals:
diff --git a/kaudiocreator/wizard.ui b/kaudiocreator/wizard.ui
index 970a5e84..0bda9d41 100644
--- a/kaudiocreator/wizard.ui
+++ b/kaudiocreator/wizard.ui
@@ -392,7 +392,7 @@
<includes>
<include location="local" impldecl="in implementation">wizard.ui.h</include>
</includes>
-<Q_SLOTS>
+<slots>
<slot access="private">homePressed()</slot>
<slot>extensionPressed()</slot>
<slot access="private">trackTitlePressed()</slot>
@@ -405,6 +405,6 @@
<slot>artistPressed()</slot>
<slot>commentPressed()</slot>
<slot>fileFormatTextChanged( const TQString &amp; text )</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kmix/CMakeLists.txt b/kmix/CMakeLists.txt
index f719a084..c9e03ba9 100644
--- a/kmix/CMakeLists.txt
+++ b/kmix/CMakeLists.txt
@@ -55,6 +55,13 @@ tde_create_translated_desktop(
PO_DIR kmix-desktops
)
+##### experimental/unmaintained features ########
+
+unset( SOURCES_EXPERIMENTAL )
+if( WITH_KMIX_EXPERIMENTAL )
+ set( SOURCES_EXPERIMENTAL experimental.ui viewsurround.cpp )
+endif( WITH_KMIX_EXPERIMENTAL )
+
##### kmix_panelapplet (module) #################
@@ -65,7 +72,7 @@ tde_add_kpart( kmix_panelapplet AUTOMOC
mixer_backend.cpp ksmallslider.cpp volume.cpp kledbutton.cpp
verticaltext.cpp mixerIface.skel colorwidget.ui
dialogviewconfiguration.cpp kmixtoolbox.cpp mixertoolbox.cpp
- dialogselectmaster.cpp
+ dialogselectmaster.cpp kmixsettings.kcfgc
LINK tdeui-shared ${ALSA_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR}
)
@@ -75,15 +82,16 @@ tde_add_kpart( kmix_panelapplet AUTOMOC
tde_add_tdeinit_executable( kmix AUTOMOC
SOURCES
- main.cpp kmix.cpp kmixdockwidget.cpp kmixprefdlg.cpp
+ main.cpp kmix.cpp kmixdockwidget.cpp
viewbase.cpp viewoutput.cpp viewinput.cpp viewswitches.cpp
- viewsurround.cpp viewdockareapopup.cpp viewsliders.cpp
- viewgrid.cpp mixdevicewidget.cpp mdwslider.cpp
+ viewdockareapopup.cpp viewsliders.cpp mixdevicewidget.cpp mdwslider.cpp
mdwswitch.cpp mdwenum.cpp kmixerwidget.cpp mixer.cpp
mixset.cpp mixdevice.cpp mixer_backend.cpp ksmallslider.cpp
volume.cpp kledbutton.cpp verticaltext.cpp mixerIface.skel
kmixtoolbox.cpp mixertoolbox.cpp dialogviewconfiguration.cpp
- KMixApp.cpp dialogselectmaster.cpp kmixIface.skel
+ KMixApp.cpp dialogselectmaster.cpp kmixIface.skel kmixsettings.kcfgc
+ appearanceconfig.ui behaviorconfig.ui
+ ${SOURCES_EXPERIMENTAL}
LINK tdeui-shared ${ALSA_LIBRARIES}
)
@@ -94,6 +102,6 @@ tde_add_tdeinit_executable( kmixctrl AUTOMOC
SOURCES
kmixctrl.cpp mixer.cpp mixset.cpp mixdevice.cpp
volume.cpp mixerIface.skel mixertoolbox.cpp
- mixer_backend.cpp
+ mixer_backend.cpp kmixsettings.kcfgc
LINK tdecore-shared ${ALSA_LIBRARIES}
)
diff --git a/kmix/KMixApp.cpp b/kmix/KMixApp.cpp
index 40bf6cfb..980ce18d 100644
--- a/kmix/KMixApp.cpp
+++ b/kmix/KMixApp.cpp
@@ -49,7 +49,7 @@ KMixApp::newInstance()
else
{
m_kmix = new KMixWindow;
- connect(this, TQT_SIGNAL(stopUpdatesOnVisibility()), m_kmix, TQT_SLOT(stopVisibilityUpdates()));
+ connect(this, TQ_SIGNAL(stopUpdatesOnVisibility()), m_kmix, TQ_SLOT(stopVisibilityUpdates()));
if ( isRestored() && TDEMainWindow::canBeRestored(0) )
{
m_kmix->restore(0, FALSE);
diff --git a/kmix/KMixApp.h b/kmix/KMixApp.h
index 7630e1f8..b3698f56 100644
--- a/kmix/KMixApp.h
+++ b/kmix/KMixApp.h
@@ -7,7 +7,7 @@ class KMixWindow;
class KMixApp : public KUniqueApplication
{
-Q_OBJECT
+TQ_OBJECT
public:
KMixApp();
diff --git a/kmix/appearanceconfig.ui b/kmix/appearanceconfig.ui
new file mode 100644
index 00000000..294b00fb
--- /dev/null
+++ b/kmix/appearanceconfig.ui
@@ -0,0 +1,178 @@
+<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
+<class>KMixAppearanceConfig</class>
+<widget class="TQWidget">
+ <property name="name">
+ <cstring>KMixAppearanceConfig</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>487</width>
+ <height>278</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Appearance</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="TQCheckBox" row="3" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>kcfg_Menubar</cstring>
+ </property>
+ <property name="text">
+ <string>Show &amp;menu bar</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget class="TQLabel" row="2" column="0">
+ <property name="name">
+ <cstring>lblValueStyle</cstring>
+ </property>
+ <property name="text">
+ <string>Volume values:</string>
+ </property>
+ </widget>
+ <widget class="TQCheckBox" row="5" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>kcfg_Labels</cstring>
+ </property>
+ <property name="text">
+ <string>Show &amp;labels</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget class="TQCheckBox" row="4" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>kcfg_Tickmarks</cstring>
+ </property>
+ <property name="text">
+ <string>Show &amp;tickmarks</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget class="TQComboBox" row="2" column="1">
+ <item>
+ <property name="text">
+ <string>None</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Absolute</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Relative</string>
+ </property>
+ </item>
+ <property name="name">
+ <cstring>kcfg_ValueStyle</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ </widget>
+ <spacer row="6" column="1">
+ <property name="name">
+ <cstring>spacer5</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Vertical</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>20</width>
+ <height>111</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="TQLabel" row="1" column="0">
+ <property name="name">
+ <cstring>lblOrientation</cstring>
+ </property>
+ <property name="text">
+ <string>Sliders orientation:</string>
+ </property>
+ </widget>
+ <widget class="TQComboBox" row="1" column="1">
+ <item>
+ <property name="text">
+ <string>Horizontal</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Vertical</string>
+ </property>
+ </item>
+ <property name="name">
+ <cstring>kcfg_Orientation</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ </widget>
+ <widget class="TQLabel" row="0" column="0">
+ <property name="name">
+ <cstring>lblOrientation_2</cstring>
+ </property>
+ <property name="text">
+ <string>Icon theme:</string>
+ </property>
+ </widget>
+ <widget class="TQComboBox" row="0" column="1">
+ <item>
+ <property name="text">
+ <string>Crystal</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Classic (Old Crystal)</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>System</string>
+ </property>
+ </item>
+ <property name="name">
+ <cstring>kcfg_IconTheme</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ </widget>
+ </grid>
+</widget>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/kmix/behaviorconfig.ui b/kmix/behaviorconfig.ui
new file mode 100644
index 00000000..c448735f
--- /dev/null
+++ b/kmix/behaviorconfig.ui
@@ -0,0 +1,157 @@
+<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
+<class>KMixBehaviorConfig</class>
+<widget class="TQWidget">
+ <property name="name">
+ <cstring>KMixBehaviorConfig</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>659</width>
+ <height>345</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Behavior</string>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="TQCheckBox">
+ <property name="name">
+ <cstring>kcfg_starttdeRestore</cstring>
+ </property>
+ <property name="text">
+ <string>Automatically start mixer when you &amp;login</string>
+ </property>
+ <property name="tristate">
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget class="TQCheckBox">
+ <property name="name">
+ <cstring>kcfg_AllowDocking</cstring>
+ </property>
+ <property name="text">
+ <string>Enable system &amp;tray icon</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget class="TQGroupBox">
+ <property name="name">
+ <cstring>grpSystray</cstring>
+ </property>
+ <property name="title">
+ <string>System Tray</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <spacer row="1" column="0">
+ <property name="name">
+ <cstring>spacer1_2</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Fixed</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="TQCheckBox" row="0" column="0" rowspan="1" colspan="2">
+ <property name="name">
+ <cstring>kcfg_TrayVolumeControl</cstring>
+ </property>
+ <property name="text">
+ <string>Enable system tray volume &amp;slider</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ </widget>
+ <widget class="TQLayoutWidget" row="1" column="1">
+ <property name="name">
+ <cstring>layout1</cstring>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="TQCheckBox">
+ <property name="name">
+ <cstring>kcfg_DockIconMuting</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Middle click on system tray icon toggles muting</string>
+ </property>
+ <property name="checked">
+ <bool>false</bool>
+ </property>
+ </widget>
+ <widget class="TQCheckBox">
+ <property name="name">
+ <cstring>kcfg_Visible</cstring>
+ </property>
+ <property name="text">
+ <string>Show mixer window when starting KMix</string>
+ </property>
+ <property name="checked">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ </grid>
+ </widget>
+ <spacer>
+ <property name="name">
+ <cstring>spacer3</cstring>
+ </property>
+ <property name="orientation">
+ <enum>Vertical</enum>
+ </property>
+ <property name="sizeType">
+ <enum>Expanding</enum>
+ </property>
+ <property name="sizeHint">
+ <size>
+ <width>20</width>
+ <height>161</height>
+ </size>
+ </property>
+ </spacer>
+ </vbox>
+</widget>
+<connections>
+ <connection>
+ <sender>kcfg_TrayVolumeControl</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>kcfg_DockIconMuting</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>kcfg_TrayVolumeControl</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>kcfg_Visible</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>kcfg_AllowDocking</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>grpSystray</receiver>
+ <slot>setEnabled(bool)</slot>
+ </connection>
+</connections>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/kmix/dialogselectmaster.cpp b/kmix/dialogselectmaster.cpp
index 9b568f80..abeca6e4 100644
--- a/kmix/dialogselectmaster.cpp
+++ b/kmix/dialogselectmaster.cpp
@@ -61,8 +61,8 @@ void DialogSelectMaster::createWidgets(Mixer *ptr_mixer)
_layout = new TQVBoxLayout(m_mainFrame,0,-1, "_layout" );
// Default or user selected
- TQButtonGroup *bgMasterSelection = new TQButtonGroup(1, Qt::Vertical, i18n("KMix master channel selection"), m_mainFrame);
- connect(bgMasterSelection, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(masterSelectionChanged(int)));
+ TQButtonGroup *bgMasterSelection = new TQButtonGroup(1, TQt::Vertical, i18n("KMix master channel selection"), m_mainFrame);
+ connect(bgMasterSelection, TQ_SIGNAL(clicked(int)), this, TQ_SLOT(masterSelectionChanged(int)));
_layout->add(bgMasterSelection);
m_defaultMaster = new TQRadioButton(i18n("Default"), bgMasterSelection);
m_userMaster = new TQRadioButton(i18n("Custom"), bgMasterSelection);
@@ -82,7 +82,7 @@ void DialogSelectMaster::createWidgets(Mixer *ptr_mixer)
m_cMixer = new KComboBox( FALSE, hboxMixerName, "mixerCombo" );
m_cMixer->setFixedHeight(m_cMixer->sizeHint().height());
TQToolTip::add(m_cMixer, i18n("Current mixer"));
- connect(m_cMixer, TQT_SIGNAL(activated(int)), this, TQT_SLOT(createPageByID(int)));
+ connect(m_cMixer, TQ_SIGNAL(activated(int)), this, TQ_SLOT(createPageByID(int)));
for ( Mixer *mixer = Mixer::mixers().first(); mixer !=0; mixer = Mixer::mixers().next() ) {
m_cMixer->insertItem(mixer->mixerName());
@@ -97,7 +97,7 @@ void DialogSelectMaster::createWidgets(Mixer *ptr_mixer)
m_buttonGroupForScrollView = new TQButtonGroup(this); // invisible TQButtonGroup
m_buttonGroupForScrollView->hide();
- connect( this, TQT_SIGNAL(okClicked()) , this, TQT_SLOT(apply()) );
+ connect( this, TQ_SIGNAL(okClicked()) , this, TQ_SLOT(apply()) );
}
void DialogSelectMaster::show(Mixer *curr_mixer)
diff --git a/kmix/dialogselectmaster.h b/kmix/dialogselectmaster.h
index ea26798a..53f83419 100644
--- a/kmix/dialogselectmaster.h
+++ b/kmix/dialogselectmaster.h
@@ -15,7 +15,7 @@ class Mixer;
class DialogSelectMaster : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
DialogSelectMaster(Mixer *mixer);
diff --git a/kmix/dialogviewconfiguration.cpp b/kmix/dialogviewconfiguration.cpp
index d6deb523..81a411fe 100644
--- a/kmix/dialogviewconfiguration.cpp
+++ b/kmix/dialogviewconfiguration.cpp
@@ -59,7 +59,7 @@ DialogViewConfiguration::DialogViewConfiguration( TQWidget*, ViewBase& view)
}
_layout->activate();
resize(_layout->sizeHint() );
- connect( this, TQT_SIGNAL(okClicked()) , this, TQT_SLOT(apply()) );
+ connect( this, TQ_SIGNAL(okClicked()) , this, TQ_SLOT(apply()) );
}
DialogViewConfiguration::~DialogViewConfiguration()
diff --git a/kmix/dialogviewconfiguration.h b/kmix/dialogviewconfiguration.h
index ce228f52..0ad6d319 100644
--- a/kmix/dialogviewconfiguration.h
+++ b/kmix/dialogviewconfiguration.h
@@ -12,7 +12,7 @@ class TQVBoxLayout;
class DialogViewConfiguration : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
DialogViewConfiguration(TQWidget* parent, ViewBase& view);
diff --git a/kmix/experimental.ui b/kmix/experimental.ui
new file mode 100644
index 00000000..32338bed
--- /dev/null
+++ b/kmix/experimental.ui
@@ -0,0 +1,87 @@
+<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
+<class>KMixExperimental</class>
+<widget class="TQWidget">
+ <property name="name">
+ <cstring>KMixExperimental</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>637</width>
+ <height>310</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Experimental features</string>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="TQLabel">
+ <property name="name">
+ <cstring>lblWarning</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>7</hsizetype>
+ <vsizetype>4</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="frameShape">
+ <enum>StyledPanel</enum>
+ </property>
+ <property name="frameShadow">
+ <enum>Raised</enum>
+ </property>
+ <property name="text">
+ <string>&lt;p align="center"&gt;&lt;b&gt;WARNING!&lt;/b&gt;&lt;br&gt;
+These are features which are experimental and/or untested.&lt;br&gt;
+Please avoid using them in production.&lt;/p&gt;
+&lt;p align="center"&gt;The settings here will be applied after a restart.&lt;/p&gt;</string>
+ </property>
+ </widget>
+ <widget class="TQGroupBox">
+ <property name="name">
+ <cstring>grpBox</cstring>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>5</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="title">
+ <string>Experimental features</string>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="TQCheckBox">
+ <property name="name">
+ <cstring>kcfg_MultiDriver</cstring>
+ </property>
+ <property name="text">
+ <string>Enable multi-driver mode</string>
+ </property>
+ </widget>
+ <widget class="TQCheckBox">
+ <property name="name">
+ <cstring>kcfg_Experimental_ViewSurround</cstring>
+ </property>
+ <property name="text">
+ <string>Enable Surround View (EXPERIMENTAL)</string>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ </vbox>
+</widget>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
diff --git a/kmix/kledbutton.cpp b/kmix/kledbutton.cpp
index 3ad3ba75..09c8c3c9 100644
--- a/kmix/kledbutton.cpp
+++ b/kmix/kledbutton.cpp
@@ -44,7 +44,7 @@ KLedButton::~KLedButton()
void KLedButton::mousePressEvent( TQMouseEvent *e )
{
- if (e->button() == Qt::LeftButton)
+ if (e->button() == TQt::LeftButton)
{
toggle();
emit stateChanged( state() );
diff --git a/kmix/kledbutton.h b/kmix/kledbutton.h
index 0be42783..a2bafdec 100644
--- a/kmix/kledbutton.h
+++ b/kmix/kledbutton.h
@@ -31,7 +31,7 @@
*/
class KLedButton : public KLed {
- Q_OBJECT
+ TQ_OBJECT
public:
KLedButton(const TQColor &col=TQt::green, TQWidget *parent=0, const char *name=0);
diff --git a/kmix/kmix.cpp b/kmix/kmix.cpp
index 1ac09d85..8db11212 100644
--- a/kmix/kmix.cpp
+++ b/kmix/kmix.cpp
@@ -19,11 +19,16 @@
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
// include files for QT
#include <tqmap.h>
#include <tqhbox.h>
#include <tqcheckbox.h>
#include <tqradiobutton.h>
+#include <tqpushbutton.h>
#include <tqwidgetstack.h>
#include <tqlayout.h>
#include <tqtooltip.h>
@@ -46,53 +51,53 @@
#include <tdeaccel.h>
#include <kglobalaccel.h>
#include <kkeydialog.h>
+#include <tdeconfigdialog.h>
// application specific includes
#include "mixertoolbox.h"
#include "kmix.h"
#include "kmixerwidget.h"
-#include "kmixprefdlg.h"
#include "kmixdockwidget.h"
#include "kmixtoolbox.h"
+#include "kmixsettings.h"
+#include "behaviorconfig.h"
+#include "appearanceconfig.h"
+
+#ifdef WITH_KMIX_EXPERIMENTAL
+#include "experimental.h"
+#endif
/**
* Constructs a mixer window (KMix main window)
*/
KMixWindow::KMixWindow()
- : DCOPObject("kmix"), TDEMainWindow(0, 0, 0, 0), m_showTicks( true ),
- m_dockWidget( 0L )
+ : DCOPObject("kmix"), TDEMainWindow(0, 0, 0, 0), m_dockWidget( 0L )
{
m_visibilityUpdateAllowed = true;
- m_multiDriverMode = false; // -<- I never-ever want the multi-drivermode to be activated by accident
- m_surroundView = false; // -<- Also the experimental surround View (3D)
- m_gridView = false; // -<- Also the experimental Grid View
- // As long as we do not know better, we assume to start hidden. We need
- // to initialize this variable here, as we don't trigger a hideEvent().
- m_isVisible = false;
m_mixerWidgets.setAutoDelete(true);
- loadConfig(); // Need to load config before initMixer(), due to "MultiDriver" keyword
- MixerToolBox::initMixer(Mixer::mixers(), m_multiDriverMode, m_hwInfoString);
+
+#ifdef WITH_KMIX_EXPERIMENTAL
+ MixerToolBox::initMixer(Mixer::mixers(), KMixSettings::multiDriver(), m_hwInfoString);
+#else
+ MixerToolBox::initMixer(Mixer::mixers(), false, m_hwInfoString);
+#endif
+
+ loadConfig();
initActions();
initWidgets();
initMixerWidgets();
-
- initPrefDlg();
updateDocking();
- if ( m_startVisible )
+ if ( KMixSettings::visible() )
{
- /* Started visible: We should do probably do:
- * m_isVisible = true;
- * But as a showEvent() is triggered by show() we don't need it.
- */
- show();
+ show();
}
else
{
- hide();
+ hide();
}
- connect( kapp, TQT_SIGNAL( aboutToQuit()), TQT_SLOT( saveSettings()) );
+ connect( kapp, TQ_SIGNAL( aboutToQuit()), TQ_SLOT( saveSettings()) );
}
@@ -106,41 +111,31 @@ void
KMixWindow::initActions()
{
// file menu
- KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT(quit()), actionCollection());
+ KStdAction::quit( this, TQ_SLOT(quit()), actionCollection());
// settings menu
- KStdAction::showMenubar( TQT_TQOBJECT(this), TQT_SLOT(toggleMenuBar()), actionCollection());
- KStdAction::preferences( TQT_TQOBJECT(this), TQT_SLOT(showSettings()), actionCollection());
- new TDEAction( i18n( "Configure &Global Shortcuts..." ), "configure_shortcuts", 0, TQT_TQOBJECT(this),
- TQT_SLOT( configureGlobalShortcuts() ), actionCollection(), "settings_global" );
- KStdAction::keyBindings( guiFactory(), TQT_SLOT(configureShortcuts()), actionCollection());
+ KStdAction::showMenubar( this, TQ_SLOT(toggleMenuBar()), actionCollection());
+ KStdAction::preferences( this, TQ_SLOT(showSettings()), actionCollection());
+ new TDEAction( i18n( "Configure &Global Shortcuts..." ), "configure_shortcuts", 0, this,
+ TQ_SLOT( configureGlobalShortcuts() ), actionCollection(), "settings_global" );
+ KStdAction::keyBindings( guiFactory(), TQ_SLOT(configureShortcuts()), actionCollection());
- (void) new TDEAction( i18n( "Hardware &Information" ), 0, TQT_TQOBJECT(this), TQT_SLOT( slotHWInfo() ), actionCollection(), "hwinfo" );
- (void) new TDEAction( i18n( "Hide Mixer Window" ), Key_Escape, TQT_TQOBJECT(this), TQT_SLOT(hide()), actionCollection(), "hide_kmixwindow" );
+ (void) new TDEAction( i18n( "Hardware &Information" ), 0, this, TQ_SLOT( slotHWInfo() ), actionCollection(), "hwinfo" );
+ (void) new TDEAction( i18n( "Hide Mixer Window" ), Key_Escape, this, TQ_SLOT(hide()), actionCollection(), "hide_kmixwindow" );
m_globalAccel = new TDEGlobalAccel(this, "KMix");
m_globalAccel->insert( "Increase volume", i18n( "Increase Volume of Master Channel"), TQString(),
- TDEShortcut(), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT( slotIncreaseVolume() ) );
+ TDEShortcut(), TDEShortcut(), this, TQ_SLOT( slotIncreaseVolume() ) );
m_globalAccel->insert( "Decrease volume", i18n( "Decrease Volume of Master Channel"), TQString(),
- TDEShortcut(), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT( slotDecreaseVolume() ) );
+ TDEShortcut(), TDEShortcut(), this, TQ_SLOT( slotDecreaseVolume() ) );
m_globalAccel->insert( "Toggle mute", i18n( "Toggle Mute of Master Channel"), TQString(),
- TDEShortcut(), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT( slotToggleMuted() ) );
+ TDEShortcut(), TDEShortcut(), this, TQ_SLOT( slotToggleMuted() ) );
m_globalAccel->readSettings();
m_globalAccel->updateConnections();
createGUI( "kmixui.rc" );
}
-
-void
-KMixWindow::initPrefDlg()
-{
- m_prefDlg = new KMixPrefDlg( this );
- connect( m_prefDlg, TQT_SIGNAL(signalApplied(KMixPrefDlg *)),
- this, TQT_SLOT(applyPrefs(KMixPrefDlg *)) );
-}
-
-
void
KMixWindow::initWidgets()
{
@@ -162,7 +157,7 @@ KMixWindow::initWidgets()
qlbl->setFixedHeight(qlbl->sizeHint().height());
m_cMixer = new KComboBox( FALSE, mixerNameLayout, "mixerCombo" );
m_cMixer->setFixedHeight(m_cMixer->sizeHint().height());
- connect( m_cMixer, TQT_SIGNAL( activated( int ) ), TQT_TQOBJECT(this), TQT_SLOT( showSelectedMixer( int ) ) );
+ connect( m_cMixer, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( showSelectedMixer( int ) ) );
TQToolTip::add( m_cMixer, i18n("Current mixer" ) );
// Add first layout to widgets
@@ -172,7 +167,7 @@ KMixWindow::initWidgets()
widgetsLayout->setStretchFactor( m_wsMixers, 10 );
widgetsLayout->addWidget( m_wsMixers );
- if ( m_showMenubar )
+ if ( KMixSettings::menubar() )
menuBar()->show();
else
menuBar()->hide();
@@ -191,10 +186,10 @@ KMixWindow::updateDocking()
m_dockWidget = 0L;
}
- if (m_showDockWidget)
+ if ( KMixSettings::allowDocking() )
{
// create dock widget
- m_dockWidget = new KMixDockWidget( Mixer::mixers().first(), this, "mainDockWidget", m_volumeWidget, m_dockIconMuting );
+ m_dockWidget = new KMixDockWidget( Mixer::mixers().first(), this, "mainDockWidget", KMixSettings::trayVolumeControl(), KMixSettings::dockIconMuting() );
m_dockWidget->show();
}
}
@@ -209,49 +204,28 @@ KMixWindow::saveSettings()
void
KMixWindow::saveConfig()
{
- TDEConfig *config = kapp->config();
- config->setGroup(0);
-
- // make sure we don't start without any UI
- // can happen e.g. when not docked and kmix closed via 'X' button
- bool startVisible = m_isVisible;
- if ( !m_showDockWidget )
+ // make sure we don't start without any UI (in case the tray icon is disabled)
+ bool startVisible = KMixSettings::visible();
+ if ( !KMixSettings::allowDocking() )
+ {
startVisible = true;
+ }
+
+ KMixSettings::setSize(size());
+ KMixSettings::setPosition(pos());
+ KMixSettings::setVisible(startVisible);
- config->writeEntry( "Size", size() );
- config->writeEntry( "Position", pos() );
- // Cannot use isVisible() here, as in the "aboutToQuit()" case this widget is already hidden.
- // (Please note that the problem was only there when quitting via Systray - esken).
- config->writeEntry( "Visible", startVisible );
- config->writeEntry( "Menubar", m_showMenubar );
- config->writeEntry( "AllowDocking", m_showDockWidget );
- config->writeEntry( "TrayVolumeControl", m_volumeWidget );
- config->writeEntry( "Tickmarks", m_showTicks );
- config->writeEntry( "Labels", m_showLabels );
- config->writeEntry( "starttdeRestore", m_onLogin );
- config->writeEntry( "DockIconMuting", m_dockIconMuting );
Mixer* mixerMasterCard = Mixer::masterCard();
- if ( mixerMasterCard != 0 ) {
- config->writeEntry( "MasterMixer", mixerMasterCard->id() );
+ if ( mixerMasterCard != 0 )
+ {
+ KMixSettings::setMasterMixer(mixerMasterCard->id());
}
MixDevice* mdMaster = Mixer::masterCardDevice();
- if ( mdMaster != 0 ) {
- config->writeEntry( "MasterMixerDevice", mdMaster->getPK() );
+ if ( mdMaster != 0 )
+ {
+ KMixSettings::setMasterMixerDevice(mdMaster->getPK());
}
- if ( m_valueStyle == MixDeviceWidget::NABSOLUTE )
- config->writeEntry( "ValueStyle", "Absolute");
- else if ( m_valueStyle == MixDeviceWidget::NRELATIVE )
- config->writeEntry( "ValueStyle", "Relative");
- else
- config->writeEntry( "ValueStyle", "None" );
-
- if ( m_toplevelOrientation == Qt::Vertical )
- config->writeEntry( "Orientation","Vertical" );
- else
- config->writeEntry( "Orientation","Horizontal" );
- config->writeEntry( "Autostart", m_autoStart );
-
// save mixer widgets
for ( KMixerWidget *mw = m_mixerWidgets.first(); mw != 0; mw = m_mixerWidgets.next() )
{
@@ -259,72 +233,37 @@ KMixWindow::saveConfig()
{ // protect from unplugged devices (better do *not* save them)
TQString grp;
grp.sprintf( "%i", mw->id() );
- mw->saveConfig( config, grp );
+ mw->saveConfig( TDESharedConfig::openConfig("kmixrc"), grp );
}
}
- config->setGroup(0);
+ KMixSettings::writeConfig();
}
void
KMixWindow::loadConfig()
{
- TDEConfig *config = kapp->config();
- config->setGroup(0);
-
- m_showDockWidget = config->readBoolEntry("AllowDocking", true);
- m_volumeWidget = config->readBoolEntry("TrayVolumeControl", true);
- //hide on close has to stay true for usability. KMixPrefDlg option commented out. nolden
- m_hideOnClose = config->readBoolEntry("HideOnClose", true);
- m_showTicks = config->readBoolEntry("Tickmarks", true);
- m_showLabels = config->readBoolEntry("Labels", true);
- const TQString& valueStyleString = config->readEntry("ValueStyle", "None");
- m_onLogin = config->readBoolEntry("starttdeRestore", true );
- m_dockIconMuting = config->readBoolEntry( "DockIconMuting", false);
- m_startVisible = config->readBoolEntry("Visible", false);
- 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");
- bool useDefaultMaster = config->readBoolEntry( "UseDefaultMaster", true );
- if (!useDefaultMaster)
+ if (!KMixSettings::useDefaultMaster())
{
- TQString mixerMasterCard = config->readEntry( "MasterMixer", "" );
- Mixer::setMasterCard(mixerMasterCard);
- TQString masterDev = config->readEntry( "MasterMixerDevice", "" );
- Mixer::setMasterCardDevice(masterDev);
+ Mixer::setMasterCard(KMixSettings::masterMixer());
+ Mixer::setMasterCardDevice(KMixSettings::masterMixerDevice());
}
- if ( valueStyleString == "Absolute" )
- m_valueStyle = MixDeviceWidget::NABSOLUTE;
- else if ( valueStyleString == "Relative" )
- m_valueStyle = MixDeviceWidget::NRELATIVE;
- else
- m_valueStyle = MixDeviceWidget::NNONE;
-
- if ( orientationString == "Vertical" )
- m_toplevelOrientation = Qt::Vertical;
- else
- m_toplevelOrientation = Qt::Horizontal;
- m_autoStart = config->readBoolEntry("Autostart", true);
-
- // show/hide menu bar
- m_showMenubar = config->readBoolEntry("Menubar", true);
+ m_toplevelOrientation = static_cast<TQt::Orientation>(KMixSettings::orientation());
TDEToggleAction *a = static_cast<TDEToggleAction*>(actionCollection()->action("options_show_menubar"));
- if (a) a->setChecked( m_showMenubar );
+ if (a) a->setChecked( KMixSettings::menubar() );
// restore window size and position
if ( !kapp->isRestored() ) // done by the session manager otherwise
{
- TQSize defSize( minimumWidth(), height() );
- TQSize size = config->readSizeEntry("Size", &defSize );
- if(!size.isEmpty()) resize(size);
-
- TQPoint defPos = pos();
- TQPoint pos = config->readPointEntry("Position", &defPos);
- move(pos);
- }
+ TQSize size = KMixSettings::size();
+ if(!size.isEmpty())
+ {
+ resize(size);
+ }
+ move(KMixSettings::position());
+ }
}
@@ -342,19 +281,23 @@ KMixWindow::initMixerWidgets()
{
//kdDebug(67100) << "Mixer number: " << id << " Name: " << mixer->mixerName() << endl ;
ViewBase::ViewFlags vflags = ViewBase::HasMenuBar;
- if ( m_showMenubar ) {
+ if (KMixSettings::menubar()) {
vflags |= ViewBase::MenuBarVisible;
}
- if ( m_surroundView ) {
+
+#ifdef WITH_KMIX_EXPERIMENTAL
+ if (KMixSettings::experimental_ViewSurround()) {
vflags |= ViewBase::Experimental_SurroundView;
}
- if ( m_gridView ) {
+ if (KMixSettings::experimental_ViewGrid()) {
vflags |= ViewBase::Experimental_GridView;
}
- if ( m_toplevelOrientation == Qt::Vertical ) {
+#endif
+
+ if ( m_toplevelOrientation == TQt::Vertical ) {
vflags |= ViewBase::Vertical;
}
- else {
+ else {
vflags |= ViewBase::Horizontal;
}
@@ -369,11 +312,11 @@ KMixWindow::initMixerWidgets()
TQString grp;
grp.sprintf( "%i", mw->id() );
- mw->loadConfig( kapp->config(), grp );
+ mw->loadConfig( TDESharedConfig::openConfig("kmixrc"), grp );
- mw->setTicks( m_showTicks );
- mw->setLabels( m_showLabels );
- mw->setValueStyle ( m_valueStyle );
+ mw->setTicks(KMixSettings::tickmarks());
+ mw->setLabels(KMixSettings::labels());
+ mw->setValueStyle(KMixSettings::valueStyle());
// !! I am still not sure whether this works 100% reliably - chris
mw->show();
}
@@ -390,7 +333,7 @@ KMixWindow::initMixerWidgets()
bool
KMixWindow::queryClose ( )
{
- if ( m_showDockWidget && !kapp->sessionSaving() )
+ if ( KMixSettings::allowDocking() && !kapp->sessionSaving() )
{
hide();
return false;
@@ -409,25 +352,28 @@ KMixWindow::quit()
void
KMixWindow::showSettings()
{
- if (!m_prefDlg->isVisible())
+ if (TDEConfigDialog::showDialog("KMixConfigDialog"))
{
- m_prefDlg->m_dockingChk->setChecked( m_showDockWidget );
- m_prefDlg->m_volumeChk->setChecked(m_volumeWidget);
- m_prefDlg->m_showTicks->setChecked( m_showTicks );
- m_prefDlg->m_showLabels->setChecked( m_showLabels );
- m_prefDlg->m_onLogin->setChecked( m_onLogin );
- m_prefDlg->m_dockIconMuting->setChecked( m_dockIconMuting );
- m_prefDlg->_rbVertical ->setChecked( m_toplevelOrientation == Qt::Vertical );
- m_prefDlg->_rbHorizontal->setChecked( m_toplevelOrientation == Qt::Horizontal );
- m_prefDlg->_rbNone->setChecked( m_valueStyle == MixDeviceWidget::NNONE );
- m_prefDlg->_rbAbsolute->setChecked( m_valueStyle == MixDeviceWidget::NABSOLUTE );
- m_prefDlg->_rbRelative->setChecked( m_valueStyle == MixDeviceWidget::NRELATIVE );
- m_prefDlg->m_autoStartChk->setChecked( m_autoStart );
-
- m_prefDlg->show();
+ return;
}
-}
+ TDEConfigDialog *cfg = new TDEConfigDialog(this, "KMixConfigDialog", KMixSettings::self());
+
+ KMixBehaviorConfig *cfgb = new KMixBehaviorConfig(0, "Behavior");
+ cfg->addPage(cfgb, i18n("Behavior"), "configure");
+
+ KMixAppearanceConfig *cfga = new KMixAppearanceConfig(0, "Appearance");
+ cfg->addPage(cfga, i18n("Appearance"), "kmix");
+
+#ifdef WITH_KMIX_EXPERIMENTAL
+ KMixExperimental *cfgx = new KMixExperimental(0, "Experimental");
+ cfg->addPage(cfgx, i18n("Experimental"), "bug");
+#endif
+
+ connect(cfg, TQ_SIGNAL(settingsChanged()), this, TQ_SLOT(applyPrefs()));
+
+ cfg->show();
+}
void
KMixWindow::showHelp()
@@ -480,60 +426,28 @@ KMixWindow::saveVolumes()
void
-KMixWindow::applyPrefs( KMixPrefDlg *prefDlg )
-{
- m_showDockWidget = prefDlg->m_dockingChk->isChecked();
- m_volumeWidget = prefDlg->m_volumeChk->isChecked();
- m_showTicks = prefDlg->m_showTicks->isChecked();
- m_showLabels = prefDlg->m_showLabels->isChecked();
- m_onLogin = prefDlg->m_onLogin->isChecked();
- m_dockIconMuting = prefDlg->m_dockIconMuting->isChecked();
-
- if ( prefDlg->_rbNone->isChecked() ) {
- m_valueStyle = MixDeviceWidget::NNONE;
- } else if ( prefDlg->_rbAbsolute->isChecked() ) {
- m_valueStyle = MixDeviceWidget::NABSOLUTE;
- } else if ( prefDlg->_rbRelative->isChecked() ) {
- m_valueStyle = MixDeviceWidget::NRELATIVE;
- }
-
- bool toplevelOrientationHasChanged =
- ( prefDlg->_rbVertical->isChecked() && m_toplevelOrientation == Qt::Horizontal )
- || ( prefDlg->_rbHorizontal->isChecked() && m_toplevelOrientation == Qt::Vertical );
- if ( toplevelOrientationHasChanged ) {
+KMixWindow::applyPrefs()
+{
+ auto old = static_cast<TQt::Orientation>(KMixSettings::orientation());
+ if (m_toplevelOrientation != old)
+ {
TQString msg = i18n("The change of orientation will be adopted on the next start of KMix.");
- KMessageBox::information(0,msg);
- }
- if ( prefDlg->_rbVertical->isChecked() ) {
- //kdDebug(67100) << "KMix should change to Vertical layout\n";
- m_toplevelOrientation = Qt::Vertical;
+ KMessageBox::information(0, msg);
}
- else if ( prefDlg->_rbHorizontal->isChecked() ) {
- //kdDebug(67100) << "KMix should change to Horizontal layout\n";
- m_toplevelOrientation = Qt::Horizontal;
- }
- m_autoStart = prefDlg->m_autoStartChk->isChecked();
-
this->setUpdatesEnabled(false);
updateDocking();
for (KMixerWidget *mw=m_mixerWidgets.first(); mw!=0; mw=m_mixerWidgets.next())
{
- mw->setTicks( m_showTicks );
- mw->setLabels( m_showLabels );
- mw->setValueStyle ( m_valueStyle );
+ mw->setTicks( KMixSettings::tickmarks() );
+ mw->setLabels( KMixSettings::labels() );
+ mw->setValueStyle( KMixSettings::valueStyle() );
mw->mixer()->readSetFromHWforceUpdate(); // needed, as updateDocking() has reconstructed the DockWidget
}
this->setUpdatesEnabled(true);
- // avoid invisible and unaccessible main window
- if( !m_showDockWidget && !isVisible() )
- {
- show();
- }
-
this->repaint(); // make KMix look fast (saveConfig() often uses several seconds)
kapp->processEvents();
saveConfig();
@@ -543,14 +457,13 @@ KMixWindow::applyPrefs( KMixPrefDlg *prefDlg )
void
KMixWindow::toggleMenuBar()
{
- m_showMenubar = !m_showMenubar;
- if( m_showMenubar )
+ if( menuBar()->isShown() )
{
- menuBar()->show();
+ menuBar()->hide();
}
else
{
- menuBar()->hide();
+ menuBar()->show();
}
}
diff --git a/kmix/kmix.h b/kmix/kmix.h
index c41beb65..602102b5 100644
--- a/kmix/kmix.h
+++ b/kmix/kmix.h
@@ -41,8 +41,6 @@ class TDEAccel;
class TDEGlobalAccel;
class KComboBox;
class KMixerWidget;
-class KMixerPrefWidget;
-class KMixPrefDlg;
class KMixDockWidget;
class KMixWindow;
class Mixer;
@@ -55,7 +53,7 @@ class Mixer;
class
KMixWindow : public TDEMainWindow, virtual public KMixIface
{
- Q_OBJECT
+ TQ_OBJECT
public:
KMixWindow();
@@ -88,7 +86,6 @@ KMixWindow : public TDEMainWindow, virtual public KMixIface
void saveConfig();
void loadConfig();
- void initPrefDlg();
void initActions();
void initWidgets();
void initMixerWidgets();
@@ -107,7 +104,7 @@ KMixWindow : public TDEMainWindow, virtual public KMixIface
void toggleMenuBar();
//void loadVolumes();
void saveVolumes();
- virtual void applyPrefs( KMixPrefDlg *prefDlg );
+ virtual void applyPrefs();
void stopVisibilityUpdates();
private:
@@ -117,30 +114,17 @@ KMixWindow : public TDEMainWindow, virtual public KMixIface
TQPopupMenu *m_viewMenu;
TQPopupMenu *m_helpMenu;
- bool m_autoStart;
- bool m_showDockWidget;
bool m_volumeWidget;
- bool m_hideOnClose;
- bool m_showTicks;
- bool m_dockIconMuting;
- bool m_showLabels;
- MixDeviceWidget::ValueStyle m_valueStyle; // No numbers by default
bool m_onLogin;
- bool m_startVisible;
- bool m_showMenubar;
bool m_isVisible;
bool m_visibilityUpdateAllowed;
- bool m_multiDriverMode; // Not officially supported.
- bool m_surroundView; // Experimental. Off by defualt
- bool m_gridView; // Experimental. Off by default
- Qt::Orientation m_toplevelOrientation;
+ TQt::Orientation m_toplevelOrientation;
TQPtrList<KMixerWidget> m_mixerWidgets;
TQHBox* mixerNameLayout;
KComboBox *m_cMixer;
TQWidgetStack *m_wsMixers;
- KMixPrefDlg *m_prefDlg;
KMixDockWidget *m_dockWidget;
TQString m_hwInfoString;
TQVBoxLayout *widgetsLayout;
diff --git a/kmix/kmix.kcfg b/kmix/kmix.kcfg
new file mode 100644
index 00000000..d4ca0956
--- /dev/null
+++ b/kmix/kmix.kcfg
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE kcfg SYSTEM "http://www.kde.org/standards/kcfg/1.0/kcfg.dtd">
+<kcfg>
+ <kcfgfile name="kmixrc"/>
+ <group name="General">
+ <entry key="AllowDocking" type="Bool">
+ <default>true</default>
+ <label>Enable system tray icon</label>
+ <whatsthis>Docks the mixer into the TDE panel</whatsthis>
+ </entry>
+ <entry key="TrayVolumeControl" type="Bool">
+ <default>true</default>
+ <label>Enable system tray volume slider</label>
+ <whatsthis>If enabled, clicking on the system tray icon pops up a volume indicator, otherwise it opens the mixer.</whatsthis>
+ </entry>
+ <entry key="Tickmarks" type="Bool">
+ <default>true</default>
+ <label>Show tickmarks</label>
+ <whatsthis>Enable/disable tickmark scales on the sliders</whatsthis>
+ </entry>
+ <entry name="Labels" type="Bool">
+ <default>true</default>
+ <label>Show labels</label>
+ <whatsthis>Enables/disables description labels above the sliders</whatsthis>
+ </entry>
+ <entry key="ValueStyle" type="Enum">
+ <choices>
+ <choice name="None">
+ <label>None</label>
+ </choice>
+ <choice name="Absolute">
+ <label>Absolute</label>
+ </choice>
+ <choice name="Relative">
+ <label>Relative</label>
+ </choice>
+ </choices>
+ <default>None</default>
+ <label>Volume Values</label>
+ <whatsthis>How volume values are displayed</whatsthis>
+ </entry>
+ <entry key="starttdeRestore" type="Bool">
+ <default>true</default>
+ <label>Autostart</label>
+ <whatsthis>Automatically start mixer when you login</whatsthis>
+ </entry>
+ <entry key="DockIconMuting" type="Bool">
+ <default>false</default>
+ <label>Middle click on system tray icon toggles muting</label>
+ </entry>
+ <entry key="Visible" type="Bool">
+ <default>false</default>
+ <label>Show mixer window when starting KMix</label>
+ <whatsthis>Check this to make KMix open the mixer window on startup by default. By default this is unchecked, causing only the system tray icon to be shown on startup. Note that if both system tray icon and this option are disabled then this option is assumed to be checked (to avoid starting KMix with no GUI at all).</whatsthis>
+ </entry>
+ <entry key="Menubar" type="Bool">
+ <default>true</default>
+ <label>Show menubar</label>
+ <whatsthis>Show the menu bar in the mixer window.</whatsthis>
+ </entry>
+ <entry key="MultiDriver" type="Bool">
+ <default>false</default>
+ <label>Enable multi-driver mode</label>
+ <whatsthis>Try scanning all backends. By default this is unchecked, which results in the first found backend being used.</whatsthis>
+ </entry>
+ <entry key="Experimental_ViewSurround" type="Bool">
+ <default>false</default>
+ <label>Enable Surround View (EXPERIMENTAL)</label>
+ </entry>
+ <entry key="Experimental_ViewGrid" type="Bool">
+ <default>false</default>
+ <label>Enable Grid View (EXPERIMENTAL)</label>
+ </entry>
+ <entry key="Orientation" type="Enum">
+ <choices>
+ <choice name="Horizontal">
+ <label>Horizontal</label>
+ </choice>
+ <choice name="Vertical">
+ <label>Vertical</label>
+ </choice>
+ </choices>
+ <default>Vertical</default>
+ <label>Slider Orientation</label>
+ </entry>
+ <entry key="UseDefaultMaster" type="Bool">
+ <default>true</default>
+ </entry>
+ <entry key="MasterMixer" type="String">
+ <default></default>
+ </entry>
+ <entry key="MasterMixerDevice" type="String">
+ <default></default>
+ </entry>
+ <entry key="Size" type="Size">
+ <default></default>
+ </entry>
+ <entry key="Position" type="Point">
+ <default></default>
+ </entry>
+ </group>
+ <group name="Appearance">
+ <entry key="IconTheme" type="Enum">
+ <choices>
+ <choice name="Crystal">
+ <label>Crystal</label>
+ </choice>
+ <choice name="OldCrystal">
+ <label>Classic (Old Crystal)</label>
+ </choice>
+ <choice name="System">
+ <label>System theme</label>
+ </choice>
+ </choices>
+ <default>Crystal</default>
+ <label>Icon Theme</label>
+ </entry>
+ </group>
+</kcfg> \ No newline at end of file
diff --git a/kmix/kmixapplet.cpp b/kmix/kmixapplet.cpp
index 0bcdd3f2..19bfcbdb 100644
--- a/kmix/kmixapplet.cpp
+++ b/kmix/kmixapplet.cpp
@@ -208,7 +208,7 @@ KMixApplet::KMixApplet( const TQString& configFile, Type t,
m_errorLabel->setGeometry(0, 0, m_errorLabel->sizeHint().width(), m_errorLabel->sizeHint().height() );
TQToolTip::add(m_errorLabel, "Select one of the available mixers");
resize( m_errorLabel->sizeHint() );
- connect( m_errorLabel, TQT_SIGNAL(clicked()), this, TQT_SLOT(selectMixer()) );
+ connect( m_errorLabel, TQ_SIGNAL(clicked()), this, TQ_SLOT(selectMixer()) );
}
else {
// We know which mixer to use: Call positionChange(), which does all the creating
@@ -288,7 +288,7 @@ void KMixApplet::loadConfig( TDEConfig *config, const TQString &grp )
if ( m_mixerWidget ) {
//config->setGroup( grp );
KMixToolBox::loadConfig(m_mixerWidget->_mdws, config, grp, "PanelApplet" );
- connect(m_mixerWidget, TQT_SIGNAL(selectMixer()), this, TQT_SLOT(selectMixer()));
+ connect(m_mixerWidget, TQ_SIGNAL(selectMixer()), this, TQ_SLOT(selectMixer()));
}
}
@@ -369,7 +369,7 @@ void KMixApplet::positionChange(Position pos) {
delete m_mixerWidget;
}
m_mixerWidget = new ViewApplet( this, _mixer->name(), _mixer, 0, pos );
- connect ( m_mixerWidget, TQT_SIGNAL(appletContentChanged()), this, TQT_SLOT(updateGeometrySlot()) );
+ connect ( m_mixerWidget, TQ_SIGNAL(appletContentChanged()), this, TQ_SLOT(updateGeometrySlot()) );
m_mixerWidget->createDeviceWidgets();
_layout->add(m_mixerWidget);
_layout->activate();
@@ -383,7 +383,7 @@ void KMixApplet::positionChange(Position pos) {
//setFixedSize(panelAppletConstrainedSize.width(), panelAppletConstrainedSize.height() );
//kdDebug(67100) << "KMixApplet::positionChange(). New MDW is at " << panelAppletConstrainedSize << endl;
m_mixerWidget->show();
- //connect( _mixer, TQT_SIGNAL(newVolumeLevels()), m_mixerWidget, TQT_SLOT(refreshVolumeLevels()) );
+ //connect( _mixer, TQ_SIGNAL(newVolumeLevels()), m_mixerWidget, TQ_SLOT(refreshVolumeLevels()) );
}
}
@@ -452,7 +452,7 @@ int KMixApplet::heightForWidth(int) const {
TQSizePolicy KMixApplet::sizePolicy() const {
// return TQSizePolicy(TQSizePolicy::Preferred,TQSizePolicy::Preferred);
- if ( orientation() == Qt::Vertical ) {
+ if ( orientation() == TQt::Vertical ) {
//kdDebug(67100) << "KMixApplet::sizePolicy=(Ignored,Fixed)\n";
return TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed);
}
@@ -479,8 +479,8 @@ void KMixApplet::preferences()
if ( !m_pref )
{
m_pref = new AppletConfigDialog( this );
- connect(m_pref, TQT_SIGNAL(finished()), TQT_SLOT(preferencesDone()));
- connect( m_pref, TQT_SIGNAL(applied()), TQT_SLOT(applyPreferences()) );
+ connect(m_pref, TQ_SIGNAL(finished()), TQ_SLOT(preferencesDone()));
+ connect( m_pref, TQ_SIGNAL(applied()), TQ_SLOT(applyPreferences()) );
m_pref->setActiveColors(_colors.high , _colors.low , _colors.back);
m_pref->setMutedColors (_colors.mutedHigh, _colors.mutedLow, _colors.mutedBack);
diff --git a/kmix/kmixapplet.h b/kmix/kmixapplet.h
index fea63cf7..e2f6c207 100644
--- a/kmix/kmixapplet.h
+++ b/kmix/kmixapplet.h
@@ -42,7 +42,7 @@ class KMixApplet;
class AppletConfigDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
AppletConfigDialog( TQWidget * parent=0, const char * name=0 );
@@ -70,7 +70,7 @@ class AppletConfigDialog : public KDialogBase
class KMixApplet : public KPanelApplet
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kmix/kmixdockwidget.cpp b/kmix/kmixdockwidget.cpp
index 7e08f71e..fba30421 100644
--- a/kmix/kmixdockwidget.cpp
+++ b/kmix/kmixdockwidget.cpp
@@ -34,6 +34,8 @@
#include <tdelocale.h>
#include <tdepopupmenu.h>
#include <tdeglobalsettings.h>
+#include <kstandarddirs.h>
+#include <tdemainwindow.h>
#include <tqapplication.h>
#include <tqcursor.h>
@@ -46,6 +48,7 @@
#include "mixer.h"
#include "mixdevicewidget.h"
#include "kmixdockwidget.h"
+#include "kmixsettings.h"
#include "viewdockareapopup.h"
KMixDockWidget::KMixDockWidget( Mixer *mixer, TQWidget *parent, const char *name, bool volumePopup, bool dockIconMuting )
@@ -70,7 +73,10 @@ KMixDockWidget::KMixDockWidget( Mixer *mixer, TQWidget *parent, const char *name
}
createActions();
createMasterVolWidget();
- connect(this, TQT_SIGNAL(quitSelected()), kapp, TQT_SLOT(quitExtended()));
+ connect(this, TQ_SIGNAL(quitSelected()), kapp, TQ_SLOT(quitExtended()));
+
+ TDEGlobal::dirs()->addResourceDir("icons_crystal", locate("appdata", "pics/crystal/"));
+ TDEGlobal::dirs()->addResourceDir("icons_oldcrystal", locate("appdata", "pics/oldcrystal/"));
}
KMixDockWidget::~KMixDockWidget()
@@ -88,7 +94,7 @@ void KMixDockWidget::createActions()
TDEPopupMenu *popupMenu = contextMenu();
// Put "Mute" selector in context menu
- (void)new TDEToggleAction(i18n("M&ute"), 0, TQT_TQOBJECT(this), TQT_SLOT(dockMute()),
+ (void)new TDEToggleAction(i18n("M&ute"), 0, this, TQ_SLOT(dockMute()),
actionCollection(), "dock_mute");
TDEAction *a = actionCollection()->action("dock_mute");
if (a)
@@ -99,7 +105,7 @@ void KMixDockWidget::createActions()
// Put "Select Master Channel" dialog in context menu
if (m_mixer)
{
- (void)new TDEAction(i18n("Select Master Channel..."), 0, TQT_TQOBJECT(this), TQT_SLOT(selectMaster()),
+ (void)new TDEAction(i18n("Select Master Channel..."), 0, this, TQ_SLOT(selectMaster()),
actionCollection(), "select_master");
a = actionCollection()->action("select_master");
if (a)
@@ -114,8 +120,18 @@ void KMixDockWidget::createActions()
a->plug(popupMenu);
}
- // Help and quit
popupMenu->insertSeparator();
+
+ // KMix Options
+ TDEMainWindow *toplevel = static_cast<TDEMainWindow*>(parent());
+ a = toplevel->actionCollection()->action(KStdAction::name(KStdAction::Preferences));
+
+ if (a)
+ {
+ a->plug(popupMenu);
+ }
+
+ // Help and quit
popupMenu->insertItem(SmallIcon("help"), KStdGuiItem::help().text(), (new KHelpMenu(this, TDEGlobal::instance()->aboutData(), false))->menu(), false);
popupMenu->insertSeparator();
a = actionCollection()->action(KStdAction::name(KStdAction::Quit));
@@ -167,8 +183,8 @@ void KMixDockWidget::createMasterVolWidget()
* Refreshing the Icon
*
*/
- connect(m_mixer, TQT_SIGNAL(newVolumeLevels()), TQT_TQOBJECT(this), TQT_SLOT(setVolumeTip()));
- connect(m_mixer, TQT_SIGNAL(newVolumeLevels()), TQT_TQOBJECT(this), TQT_SLOT(slotUpdatePixmap()));
+ connect(m_mixer, TQ_SIGNAL(newVolumeLevels()), this, TQ_SLOT(setVolumeTip()));
+ connect(m_mixer, TQ_SIGNAL(newVolumeLevels()), this, TQ_SLOT(slotUpdatePixmap()));
}
void KMixDockWidget::deleteMasterVolWidget()
@@ -180,8 +196,8 @@ void KMixDockWidget::deleteMasterVolWidget()
}
if (m_mixer)
{
- disconnect(m_mixer, TQT_SIGNAL(newVolumeLevels()), TQT_TQOBJECT(this), TQT_SLOT(setVolumeTip()));
- disconnect(m_mixer, TQT_SIGNAL(newVolumeLevels()), TQT_TQOBJECT(this), TQT_SLOT(slotUpdatePixmap()));
+ disconnect(m_mixer, TQ_SIGNAL(newVolumeLevels()), this, TQ_SLOT(setVolumeTip()));
+ disconnect(m_mixer, TQ_SIGNAL(newVolumeLevels()), this, TQ_SLOT(slotUpdatePixmap()));
}
}
@@ -195,7 +211,7 @@ void KMixDockWidget::selectMaster()
if (!_dsm)
{
_dsm = new DialogSelectMaster(m_mixer);
- connect(_dsm, TQT_SIGNAL(newMasterSelected(bool, int, const TQString&)), TQT_SLOT( handleNewMaster(bool, int, const TQString&)));
+ connect(_dsm, TQ_SIGNAL(newMasterSelected(bool, int, const TQString&)), TQ_SLOT( handleNewMaster(bool, int, const TQString&)));
}
_dsm->show(m_mixer);
}
@@ -243,6 +259,20 @@ void KMixDockWidget::handleNewMaster(bool defaultMaster, int soundcard_id, const
}
+long
+KMixDockWidget::getAvgVolume()
+{
+ MixDevice *md = 0;
+ if ( _dockAreaPopup != 0 ) {
+ md = _dockAreaPopup->dockDevice();
+ }
+
+ if ( md == 0 || md->maxVolume() == 0 )
+ return -1;
+
+ return (md->getVolume().getAvgVolume(Volume::MMAIN)*100 )/( md->maxVolume() );
+}
+
void
KMixDockWidget::setVolumeTip()
{
@@ -250,6 +280,7 @@ KMixDockWidget::setVolumeTip()
if ( _dockAreaPopup != 0 ) {
md = _dockAreaPopup->dockDevice();
}
+
TQString tip = "";
int newToolTipValue = 0;
@@ -260,10 +291,7 @@ KMixDockWidget::setVolumeTip()
}
else
{
- long val = -1;
- if ( md->maxVolume() != 0 ) {
- val = (md->getVolume().getAvgVolume(Volume::MMAIN)*100 )/( md->maxVolume() );
- }
+ long val = getAvgVolume();
newToolTipValue = val + 10000*md->isMuted();
if ( _oldToolTipValue != newToolTipValue ) {
tip = i18n( "Volume at %1%" ).arg( val );
@@ -305,7 +333,13 @@ KMixDockWidget::updatePixmap(bool force)
}
else
{
- newPixmapType = 'd';
+ long avgVol = getAvgVolume();
+ if ( avgVol <= 33 )
+ newPixmapType = 'L';
+ else if ( avgVol <= 67 )
+ newPixmapType = 'M';
+ else
+ newPixmapType = 'H';
}
if (( newPixmapType != _oldPixmapType ) || (force == true)) {
@@ -314,12 +348,23 @@ KMixDockWidget::updatePixmap(bool force)
TQPixmap origpixmap;
TQPixmap scaledpixmap;
TQImage newIcon;
+
+ TQStringList fallback;
switch ( newPixmapType ) {
- case 'e': origpixmap = isShown() ? loadSizedIcon( "kmixdocked_error", width() ) : loadIcon( "kmixdocked_error"); break;
- case 'm': origpixmap = isShown() ? loadSizedIcon( "kmixdocked_mute" , width() ) : loadIcon( "kmixdocked_mute"); break;
- case 'd': origpixmap = isShown() ? loadSizedIcon( "kmixdocked" , width() ) : loadIcon( "kmixdocked "); break;
+ case 'm': fallback << "audio-volume-muted" << "kmixdocked_mute"; break;
+ case 'L': fallback << "audio-volume-low" << "kmixdocked"; break;
+ case 'M': fallback << "audio-volume-medium" << "kmixdocked"; break;
+ case 'H': fallback << "audio-volume-high" << "kmixdocked"; break;
}
- newIcon = origpixmap;
+
+ TQString icon = getIconPath(fallback);
+ if (icon.isNull())
+ {
+ icon = getIconPath("audio-volume-error");
+ }
+
+ origpixmap = isShown() ? loadSizedIcon(icon, width()) : loadIcon(icon);
+ newIcon = origpixmap;
if (isShown()) {
newIcon = newIcon.smoothScale(width(), height());
}
@@ -330,6 +375,51 @@ KMixDockWidget::updatePixmap(bool force)
}
}
+TQString KMixDockWidget::getIconPath(TQStringList fallback)
+{
+ auto iconTheme = KMixSettings::iconTheme();
+
+ TQCString iconThemeName;
+ if (iconTheme != KMixSettings::EnumIconTheme::System)
+ {
+ switch (iconTheme)
+ {
+ case KMixSettings::EnumIconTheme::OldCrystal:
+ iconThemeName = "oldcrystal";
+ break;
+
+ default:
+ case KMixSettings::EnumIconTheme::Crystal:
+ iconThemeName = "crystal";
+ break;
+ }
+ }
+
+ for (TQStringList::iterator it = fallback.begin(); it != fallback.end(); ++it)
+ {
+ if (iconTheme == KMixSettings::EnumIconTheme::System)
+ {
+ TQString iconPath = kapp->iconLoader()->iconPath((*it), TDEIcon::Panel, true);
+ if (!iconPath.isNull())
+ {
+ return iconPath;
+ }
+ }
+
+ else
+ {
+ TQCString type = "icons_" + iconThemeName;
+
+ TQString iconPath = TDEGlobal::dirs()->findResource(type, TQString("%1.png").arg(*it));
+ if (!iconPath.isNull()) return iconPath;
+
+ iconPath = TDEGlobal::dirs()->findResource(type, TQString("%1.svg").arg(*it));
+ if (!iconPath.isNull()) return iconPath;
+ }
+ }
+ return TQString::null;
+}
+
void KMixDockWidget::resizeEvent ( TQResizeEvent * )
{
updatePixmap(true);
@@ -349,7 +439,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() == Qt::LeftButton )
+ if ( me->button() == TQt::LeftButton )
{
if ( ! _volumePopup ) {
// Case 1: User wants to show main window => This is the KSystemTray default action
@@ -393,7 +483,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() == Qt::MidButton ) {
+ else if ( me->button() == TQt::MidButton ) {
if ( ! _dockIconMuting ) {
toggleActive();
} else {
@@ -443,7 +533,7 @@ KMixDockWidget::wheelEvent(TQWheelEvent *e)
// Mhhh, it doesn't work. TQt does not show it again.
setVolumeTip();
// Simulate a mouse move to make TQt show the tooltip again
- TQApplication::postEvent( this, new TQMouseEvent( TQEvent::MouseMove, TQCursor::pos(), Qt::NoButton, Qt::NoButton ) );
+ TQApplication::postEvent( this, new TQMouseEvent( TQEvent::MouseMove, TQCursor::pos(), TQt::NoButton, TQt::NoButton ) );
}
}
diff --git a/kmix/kmixdockwidget.h b/kmix/kmixdockwidget.h
index 19c60ff3..8f119ace 100644
--- a/kmix/kmixdockwidget.h
+++ b/kmix/kmixdockwidget.h
@@ -38,7 +38,7 @@ class ViewDockAreaPopup;
class Volume;
class KMixDockWidget : public KSystemTray {
- Q_OBJECT
+ TQ_OBJECT
friend class KMixWindow;
@@ -70,6 +70,8 @@ class KMixDockWidget : public KSystemTray {
void toggleMinimizeRestore();
void resizeEvent(TQResizeEvent *);
void showEvent(TQShowEvent *);
+ long getAvgVolume();
+ TQString getIconPath(TQStringList fallback);
private:
bool _playBeepOnVolumeChange;
diff --git a/kmix/kmixerwidget.cpp b/kmix/kmixerwidget.cpp
index 94965122..cc12c7dd 100644
--- a/kmix/kmixerwidget.cpp
+++ b/kmix/kmixerwidget.cpp
@@ -18,6 +18,7 @@
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+#include "../config.h"
// TQt
#include <tqlabel.h>
@@ -42,9 +43,10 @@
#include "viewinput.h"
#include "viewoutput.h"
#include "viewswitches.h"
-// KMix experimental
-#include "viewgrid.h"
+
+#ifdef WITH_KMIX_EXPERIMENTAL
#include "viewsurround.h"
+#endif
/**
@@ -119,21 +121,22 @@ void KMixerWidget::createLayout(ViewBase::ViewFlags vflags)
* 2c) Add Views to Tab
********************************************************************/
//KMixGUIProfile* prof = MixerToolbox::selectProfile(_mixer);
-
-
+
+
possiblyAddView(new ViewOutput ( m_ioTab, "output", i18n("Output"), _mixer, vflags ) );
- possiblyAddView(new ViewInput( m_ioTab, "input", i18n("Input"), _mixer, vflags ) );
+ possiblyAddView(new ViewInput ( m_ioTab, "input", i18n("Input"), _mixer, vflags ) );
possiblyAddView(new ViewSwitches( m_ioTab, "switches", i18n("Switches"), _mixer, vflags ) );
+
+#ifdef WITH_KMIX_EXPERIMENTAL
if ( vflags & ViewBase::Experimental_SurroundView )
possiblyAddView( new ViewSurround( m_ioTab, "surround", i18n("Surround"), _mixer, vflags ) );
- if ( vflags & ViewBase::Experimental_GridView )
- possiblyAddView( new ViewGrid( m_ioTab, "grid", i18n("Grid"), _mixer, vflags ) );
+#endif
// *** 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, Qt::Horizontal, this, "RightLeft" );
+ m_balanceSlider = new TQSlider( -100, 100, 25, 0, TQt::Horizontal, this, "RightLeft" );
m_balanceSlider->setTickmarks( TQSlider::Below );
m_balanceSlider->setTickInterval( 25 );
m_balanceSlider->setMinimumSize( m_balanceSlider->sizeHint() );
@@ -148,7 +151,7 @@ void KMixerWidget::createLayout(ViewBase::ViewFlags vflags)
balanceAndDetail->addWidget( mixerName );
balanceAndDetail->addSpacing( 10 );
- connect( m_balanceSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(balanceChanged(int)) );
+ connect( m_balanceSlider, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(balanceChanged(int)) );
TQToolTip::add( m_balanceSlider, i18n("Left/Right balancing") );
// --- "MenuBar" toggling from the various View's ---
@@ -167,7 +170,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, TQ_SIGNAL(toggleMenuBar()), parentWidget(), TQ_SLOT(toggleMenuBar()) );
}
}
diff --git a/kmix/kmixerwidget.h b/kmix/kmixerwidget.h
index e07808b6..073a6a88 100644
--- a/kmix/kmixerwidget.h
+++ b/kmix/kmixerwidget.h
@@ -58,7 +58,7 @@ class ViewSurround;
class KMixerWidget : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kmix/kmixprefdlg.cpp b/kmix/kmixprefdlg.cpp
deleted file mode 100644
index 5489eea2..00000000
--- a/kmix/kmixprefdlg.cpp
+++ /dev/null
@@ -1,140 +0,0 @@
-/*
- * KMix -- KDE's full featured mini mixer
- *
- *
- * Copyright (C) 2000 Stefan Schimanski <1Stein@gmx.de>
- * Copyright (C) 2001 Preston Brown <pbrown@kde.org>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this program; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include <tqbuttongroup.h>
-#include <tqlayout.h>
-#include <tqwhatsthis.h>
-#include <tqcheckbox.h>
-#include <tqlabel.h>
-#include <tqradiobutton.h>
-
-#include <tdelocale.h>
-// For "kapp"
-#include <tdeapplication.h>
-
-#include "kmix.h"
-#include "kmixprefdlg.h"
-#include "kmixerwidget.h"
-
-
-KMixPrefDlg::KMixPrefDlg( TQWidget *parent )
- : KDialogBase( Plain, i18n( "Configure" ),
- Ok|Cancel|Apply, Ok, parent )
-{
- // general buttons
- m_generalTab = plainPage( /* i18n("&General") */ );
-
- TQBoxLayout *layout = new TQVBoxLayout( m_generalTab );
- layout->setSpacing( KDialog::spacingHint() );
-
- m_dockingChk = new TQCheckBox( i18n("&Dock into panel"), m_generalTab );
- layout->addWidget( m_dockingChk );
- TQWhatsThis::add(m_dockingChk, i18n("Docks the mixer into the TDE panel"));
-
- m_volumeChk = new TQCheckBox(i18n("Enable system tray &volume control"),
- m_generalTab);
- layout->addWidget(m_volumeChk);
-
- m_showTicks = new TQCheckBox( i18n("Show &tickmarks"), m_generalTab );
- layout->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 );
- 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 );
-
- m_dockIconMuting = new TQCheckBox(
- i18n("Middle click on system tray icon toggles muting"), m_generalTab );
- layout->addWidget( m_dockIconMuting );
-
- TQBoxLayout *numbersLayout = new TQHBoxLayout( layout );
- TQButtonGroup *numbersGroup = new TQButtonGroup( 3, Qt::Horizontal, i18n("Numbers"), m_generalTab );
- numbersGroup->setRadioButtonExclusive(true);
- TQLabel* qlbl = new TQLabel( i18n("Volume Values: "), m_generalTab );
- _rbNone = new TQRadioButton( i18n("&None"), m_generalTab );
- _rbAbsolute = new TQRadioButton( i18n("A&bsolute"), m_generalTab );
- _rbRelative = new TQRadioButton( i18n("&Relative"), m_generalTab );
- numbersGroup->insert(_rbNone);
- numbersGroup->insert(_rbAbsolute);
- numbersGroup->insert(_rbRelative);
- numbersGroup->hide();
-
- numbersLayout->add(qlbl);
- numbersLayout->add(_rbNone);
- numbersLayout->add(_rbAbsolute);
- numbersLayout->add(_rbRelative);
- numbersLayout->addStretch();
-
- m_autoStartChk = new TQCheckBox( i18n("&Autostart"), m_generalTab );
- layout->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 );
- //orientationLayout->add(orientationGroup);
- orientationGroup->setRadioButtonExclusive(true);
- TQLabel* qlb = new TQLabel( i18n("Slider Orientation: "), m_generalTab );
- _rbHorizontal = new TQRadioButton(i18n("&Horizontal"), m_generalTab );
- _rbVertical = new TQRadioButton(i18n("&Vertical" ), m_generalTab );
- orientationGroup->insert(_rbHorizontal);
- orientationGroup->insert(_rbVertical);
- orientationGroup->hide();
- //orientationLayout->add(qlb);
- //orientationLayout->add(orientationGroup);
-
- orientationLayout->add(qlb);
- orientationLayout->add(_rbHorizontal);
- orientationLayout->add(_rbVertical);
-
- orientationLayout->addStretch();
- layout->addStretch();
- enableButtonSeparator(true);
-
- connect( this, TQT_SIGNAL(applyClicked()), this, TQT_SLOT(apply()) );
- connect( this, TQT_SIGNAL(okClicked()), this, TQT_SLOT(apply()) );
-}
-
-KMixPrefDlg::~KMixPrefDlg()
-{
-}
-
-void KMixPrefDlg::apply()
-{
- // disabling buttons => users sees that we are working
- enableButtonOK(false);
- enableButtonCancel(false);
- enableButtonApply(false);
- kapp->processEvents();
- emit signalApplied( this );
- // re-enable (in case of "Apply")
- enableButtonOK(true);
- enableButtonCancel(true);
- enableButtonApply(true);
-}
-
-#include "kmixprefdlg.moc"
diff --git a/kmix/kmixprefdlg.h b/kmix/kmixprefdlg.h
deleted file mode 100644
index 1df314aa..00000000
--- a/kmix/kmixprefdlg.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * KMix -- KDE's full featured mini mixer
- *
- *
- * Copyright (C) 2000 Stefan Schimanski <1Stein@gmx.de>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this program; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#ifndef KPREFDLG_H
-#define KPREFDLG_H
-
-#include <kdialogbase.h>
-
-class KMixPrefWidget;
-class KMixApp;
-class TQCheckBox;
-class TQRadioButton;
-
-class
-KMixPrefDlg : public KDialogBase
-{
- Q_OBJECT
-
-
- friend class KMixWindow;
-
- public:
- KMixPrefDlg( TQWidget *parent );
- ~KMixPrefDlg();
-
- signals:
- void signalApplied( KMixPrefDlg *prefDlg );
-
- private slots:
- void apply();
-
- private:
- TQFrame *m_generalTab;
- KMixApp *m_mixApp;
- KMixPrefWidget *m_mixPrefTab;
-
- TQCheckBox *m_autoStartChk;
- TQCheckBox *m_dockingChk;
- TQCheckBox *m_volumeChk;
- TQCheckBox *m_hideOnCloseChk;
- TQCheckBox *m_showTicks;
- TQCheckBox *m_showLabels;
- TQCheckBox *m_onLogin;
- TQCheckBox *m_dockIconMuting;
- TQRadioButton *_rbVertical;
- TQRadioButton *_rbHorizontal;
- TQRadioButton *_rbNone;
- TQRadioButton *_rbAbsolute;
- TQRadioButton *_rbRelative;
-};
-
-#endif
diff --git a/kmix/kmixsettings.kcfgc b/kmix/kmixsettings.kcfgc
new file mode 100644
index 00000000..07597da8
--- /dev/null
+++ b/kmix/kmixsettings.kcfgc
@@ -0,0 +1,6 @@
+File=kmix.kcfg
+Singleton=true
+ClassName=KMixSettings
+Mutators=true
+Visibility=KDE_EXPORT
+SetUserTexts=true \ No newline at end of file
diff --git a/kmix/ksmallslider.cpp b/kmix/ksmallslider.cpp
index 5a67a8b6..77ab0112 100644
--- a/kmix/ksmallslider.cpp
+++ b/kmix/ksmallslider.cpp
@@ -37,19 +37,19 @@ static const TQColor backColor2 = "#000000";
*/
KSmallSlider::KSmallSlider( TQWidget *parent, const char *name )
- : TQWidget( parent, name ), _orientation( Qt::Vertical )
+ : TQWidget( parent, name ), _orientation( TQt::Vertical )
{
init();
}
-KSmallSlider::KSmallSlider( Qt::Orientation orientation, TQWidget *parent, const char *name )
+KSmallSlider::KSmallSlider( TQt::Orientation orientation, TQWidget *parent, const char *name )
: TQWidget( parent, name ), _orientation( orientation )
{
init();
}
KSmallSlider::KSmallSlider( int minValue, int maxValue, int pageStep,
- int value, Qt::Orientation orientation,
+ int value, TQt::Orientation orientation,
TQWidget *parent, const char *name )
: TQWidget( parent, name ),
TQRangeControl( minValue, maxValue, 1, pageStep, value ), _orientation( orientation)
@@ -68,7 +68,7 @@ void KSmallSlider::init()
//track = TRUE;
//setMouseTracking(true);
grayed = false;
- setFocusPolicy( TQ_TabFocus );
+ setFocusPolicy( TQWidget::TabFocus );
colHigh = TQColor(0,255,0);
colLow = TQColor(255,0,0);
@@ -91,7 +91,7 @@ int KSmallSlider::positionFromValue( int v ) const
int KSmallSlider::valueFromPosition( int p ) const
{
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
// Coordiante System starts at TopLeft, but the slider values increase from Bottom to Top
// Thus "revert" the position
int avail = available();
@@ -140,7 +140,7 @@ void KSmallSlider::resizeEvent( TQResizeEvent * )
int KSmallSlider::available() const
{
int available = 0;
- if ( _orientation == Qt::Vertical) {
+ if ( _orientation == TQt::Vertical) {
available = height();
}
else {
@@ -225,13 +225,13 @@ void KSmallSlider::paintEvent( TQPaintEvent * )
int sliderPos = positionFromValue( TQRangeControl::value() );
// ------------------------ draw 3d border ---------------------------------------------
- style().tqdrawPrimitive ( TQStyle::PE_Panel, &p, TQRect( 0, 0, width(), height() ), colorGroup(), TRUE );
+ style().drawPrimitive ( TQStyle::PE_Panel, &p, TQRect( 0, 0, width(), height() ), colorGroup(), TRUE );
// ------------------------ draw lower/left part ----------------------------------------
if ( width()>2 && height()>2 )
{
- if ( _orientation == Qt::Horizontal ) {
+ if ( _orientation == TQt::Horizontal ) {
TQRect outer = TQRect( 1, 1, sliderPos, height() - 2 );
// kdDebug(67100) << "KSmallSlider::paintEvent: outer = " << outer << endl;
@@ -264,7 +264,7 @@ void KSmallSlider::paintEvent( TQPaintEvent * )
// -------- draw upper/right part --------------------------------------------------
TQRect inner;
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
inner = TQRect( 1, 1, width() - 2, height() - 2 -sliderPos );
}
else {
@@ -286,7 +286,7 @@ void KSmallSlider::mousePressEvent( TQMouseEvent *e )
{
//resetState();
- if ( e->button() == Qt::RightButton ) {
+ if ( e->button() == TQt::RightButton ) {
return;
}
@@ -387,7 +387,7 @@ void KSmallSlider::subtractStep()
int KSmallSlider::goodPart( const TQPoint &p ) const
{
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
return p.y() - 1;
}
else {
@@ -402,7 +402,7 @@ TQSize KSmallSlider::sizeHint() const
const int length = 25;
const int thick = 10;
- if ( _orientation == Qt::Vertical )
+ if ( _orientation == TQt::Vertical )
return TQSize( thick, length );
else
return TQSize( length, thick );
@@ -419,7 +419,7 @@ TQSize KSmallSlider::minimumSizeHint() const
TQSizePolicy KSmallSlider::sizePolicy() const
{
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
//kdDebug(67100) << "KSmallSlider::sizePolicy() vertical value=(Fixed,MinimumExpanding)\n";
return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Expanding );
}
diff --git a/kmix/ksmallslider.h b/kmix/ksmallslider.h
index e2949ab3..2729cf15 100644
--- a/kmix/ksmallslider.h
+++ b/kmix/ksmallslider.h
@@ -30,14 +30,14 @@
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( TQt::Orientation, TQWidget *parent, const char *name=0 );
KSmallSlider( int minValue, int maxValue, int pageStep, int value,
- Qt::Orientation, TQWidget *parent, const char *name=0 );
+ TQt::Orientation, TQWidget *parent, const char *name=0 );
//virtual void setTracking( bool enable );
//bool tracking() const;
@@ -104,7 +104,7 @@ public slots:
//State state;
//bool track;
bool grayed;
- Qt::Orientation _orientation;
+ TQt::Orientation _orientation;
TQColor colHigh, colLow, colBack;
TQColor grayHigh, grayLow, grayBack;
diff --git a/kmix/main.cpp b/kmix/main.cpp
index 16074aee..9b0498d2 100644
--- a/kmix/main.cpp
+++ b/kmix/main.cpp
@@ -41,10 +41,10 @@ extern "C" KDE_EXPORT int kdemain(int argc, char *argv[])
{
TDEAboutData aboutData( "kmix", I18N_NOOP("KMix"),
APP_VERSION, description, TDEAboutData::License_GPL,
- I18N_NOOP("(c) 1996-2000 Christian Esken\n(c) 2000-2003 Christian Esken, Stefan Schimanski\n(c) 2002-2005 Christian Esken, Helio Chissini de Castro"));
+ I18N_NOOP("(c) 1996-2000 Christian Esken\n(c) 2000-2003 Christian Esken, Stefan Schimanski\n(c) 2002-2005 Christian Esken, Helio Chissini de Castro\n(c) 2010-2022 The Trinity Desktop project"));
- aboutData.addAuthor("Christian Esken", "Current maintainer", "esken@kde.org");
- aboutData.addAuthor("Helio Chissini de Castro", I18N_NOOP("Current redesign and co-maintainer, Alsa 0.9x port"), "helio@kde.org" );
+ aboutData.addAuthor("Christian Esken", "Previous maintainer", "esken@kde.org");
+ aboutData.addAuthor("Helio Chissini de Castro", I18N_NOOP("Redesign and previous co-maintainer, Alsa 0.9x port"), "helio@kde.org" );
aboutData.addAuthor("Stefan Schimanski", 0, "schimmi@kde.org");
aboutData.addAuthor("Sven Leiber", 0, "s.leiber@web.de");
aboutData.addAuthor("Brian Hanson", I18N_NOOP("Solaris port"), "bhanson@hotmail.com");
diff --git a/kmix/mdwenum.cpp b/kmix/mdwenum.cpp
index 708000f2..5a685772 100644
--- a/kmix/mdwenum.cpp
+++ b/kmix/mdwenum.cpp
@@ -45,7 +45,7 @@
* The orientation (horizontal, vertical) is ignored
*/
MDWEnum::MDWEnum(Mixer *mixer, MixDevice* md,
- Qt::Orientation orientation,
+ TQt::Orientation orientation,
TQWidget* parent, ViewBase* mw, const char* name) :
MixDeviceWidget(mixer,md,false,orientation,parent,mw,name),
_label(0), _enumCombo(0), _layout(0)
@@ -53,15 +53,15 @@ MDWEnum::MDWEnum(Mixer *mixer, MixDevice* md,
// create actions (on _mdwActions, see MixDeviceWidget)
// KStdAction::showMenubar() is in MixDeviceWidget now
- new TDEToggleAction( i18n("&Hide"), 0, TQT_TQOBJECT(this), TQT_SLOT(setDisabled()), _mdwActions, "hide" );
- new TDEAction( i18n("C&onfigure Shortcuts..."), 0, TQT_TQOBJECT(this), TQT_SLOT(defineKeys()), _mdwActions, "keys" );
+ new TDEToggleAction( i18n("&Hide"), 0, this, TQ_SLOT(setDisabled()), _mdwActions, "hide" );
+ new TDEAction( i18n("C&onfigure Shortcuts..."), 0, this, TQ_SLOT(defineKeys()), _mdwActions, "keys" );
// create widgets
createWidgets();
/* !!! remove this for production version */
m_keys->insert( "Next Value", i18n( "Next Value" ), TQString(),
- TDEShortcut(), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT( nextEnumId() ) );
+ TDEShortcut(), TDEShortcut(), this, TQ_SLOT( nextEnumId() ) );
installEventFilter( this ); // filter for popup
}
@@ -73,7 +73,7 @@ MDWEnum::~MDWEnum()
void MDWEnum::createWidgets()
{
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
_layout = new TQVBoxLayout( this );
_layout->setAlignment(TQt::AlignHCenter);
}
@@ -99,7 +99,7 @@ void MDWEnum::createWidgets()
// ------------ fill ComboBox end --------------
_layout->addWidget(_enumCombo);
_enumCombo->setFixedHeight(_enumCombo->sizeHint().height());
- connect( _enumCombo, TQT_SIGNAL( activated( int ) ), TQT_TQOBJECT(this), TQT_SLOT( setEnumId( int ) ) );
+ connect( _enumCombo, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( setEnumId( int ) ) );
TQToolTip::add( _enumCombo, m_mixdevice->name() );
//_layout->addSpacing( 4 );
@@ -194,8 +194,8 @@ void MDWEnum::setDisabled( bool value ) {
bool MDWEnum::eventFilter( TQObject* obj, TQEvent* e )
{
if (e->type() == TQEvent::MouseButtonPress) {
- TQMouseEvent *qme = TQT_TQMOUSEEVENT(e);
- if (qme->button() == Qt::RightButton) {
+ TQMouseEvent *qme = static_cast<TQMouseEvent*>(e);
+ if (qme->button() == TQt::RightButton) {
showContextMenu();
return true;
}
diff --git a/kmix/mdwenum.h b/kmix/mdwenum.h
index 34018729..8a1c972b 100644
--- a/kmix/mdwenum.h
+++ b/kmix/mdwenum.h
@@ -40,12 +40,12 @@ class ViewBase;
class MDWEnum : public MixDeviceWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
MDWEnum( Mixer *mixer, MixDevice* md,
- Qt::Orientation orientation,
+ TQt::Orientation orientation,
TQWidget* parent = 0, ViewBase* mw = 0, const char* name = 0);
~MDWEnum();
diff --git a/kmix/mdwslider.cpp b/kmix/mdwslider.cpp
index 6b4c3f51..c8302c54 100644
--- a/kmix/mdwslider.cpp
+++ b/kmix/mdwslider.cpp
@@ -57,36 +57,36 @@
*/
MDWSlider::MDWSlider(Mixer *mixer, MixDevice* md,
bool showMuteLED, bool showRecordLED,
- bool small, Qt::Orientation orientation,
+ bool small, TQt::Orientation orientation,
TQWidget* parent, ViewBase* mw, const char* name) :
MixDeviceWidget(mixer,md,small,orientation,parent,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 TDEToggleAction( i18n("&Split Channels"), 0, TQT_TQOBJECT(this), TQT_SLOT(toggleStereoLinked()),
+ new TDEToggleAction( i18n("&Split Channels"), 0, this, TQ_SLOT(toggleStereoLinked()),
_mdwActions, "stereo" );
- new TDEToggleAction( i18n("&Hide"), 0, TQT_TQOBJECT(this), TQT_SLOT(setDisabled()), _mdwActions, "hide" );
+ new TDEToggleAction( i18n("&Hide"), 0, this, TQ_SLOT(setDisabled()), _mdwActions, "hide" );
TDEToggleAction *a = new TDEToggleAction(i18n("&Muted"), 0, 0, 0, _mdwActions, "mute" );
- connect( a, TQT_SIGNAL(toggled(bool)), TQT_SLOT(toggleMuted()) );
+ connect( a, TQ_SIGNAL(toggled(bool)), TQ_SLOT(toggleMuted()) );
if( m_mixdevice->isRecordable() ) {
a = new TDEToggleAction( i18n("Set &Record Source"), 0, 0, 0, _mdwActions, "recsrc" );
- connect( a, TQT_SIGNAL(toggled(bool)), TQT_SLOT( toggleRecsrc()) );
+ connect( a, TQ_SIGNAL(toggled(bool)), TQ_SLOT( toggleRecsrc()) );
}
- new TDEAction( i18n("C&onfigure Global Shortcuts..."), 0, TQT_TQOBJECT(this), TQT_SLOT(defineKeys()), _mdwActions, "keys" );
+ new TDEAction( i18n("C&onfigure Global Shortcuts..."), 0, this, TQ_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(),
- TDEShortcut(), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT( increaseVolume() ) );
+ TDEShortcut(), TDEShortcut(), this, TQ_SLOT( increaseVolume() ) );
m_keys->insert( "Decrease volume", i18n( "Decrease Volume of '%1'" ).arg(m_mixdevice->name().utf8().data()), TQString(),
- TDEShortcut(), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT( decreaseVolume() ) );
+ TDEShortcut(), TDEShortcut(), this, TQ_SLOT( decreaseVolume() ) );
m_keys->insert( "Toggle mute", i18n( "Toggle Mute of '%1'" ).arg(m_mixdevice->name().utf8().data()), TQString(),
- TDEShortcut(), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT( toggleMuted() ) );
+ TDEShortcut(), TDEShortcut(), this, TQ_SLOT( toggleMuted() ) );
installEventFilter( this ); // filter for popup
@@ -96,7 +96,7 @@ MDWSlider::MDWSlider(Mixer *mixer, MixDevice* md,
TQSizePolicy MDWSlider::sizePolicy() const
{
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
return TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Expanding );
}
else {
@@ -113,18 +113,17 @@ TQSizePolicy MDWSlider::sizePolicy() const
*/
void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
{
- if ( _orientation == Qt::Vertical ) {
- _layout = new TQVBoxLayout( this );
- _layout->setAlignment(TQt::AlignCenter);
+ if ( _orientation == TQt::Vertical ) {
+ _layout = new TQVBoxLayout( this );
}
else {
- _layout = new TQHBoxLayout( this );
- _layout->setAlignment(TQt::AlignCenter);
+ _layout = new TQHBoxLayout( this );
}
+ _layout->setAlignment(TQt::AlignCenter);
// -- MAIN SLIDERS LAYOUT ---
TQBoxLayout *slidersLayout;
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
slidersLayout = new TQHBoxLayout( _layout );
slidersLayout->setAlignment(TQt::AlignVCenter);
}
@@ -136,14 +135,14 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
/* cesken: This is inconsistent. Why should vertical and horizontal layout 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 )
+ if ( _orientation == TQt::Horizontal )
slidersLayout->addSpacing( 10 );
*/
// -- LABEL LAYOUT TO POSITION
TQBoxLayout *labelLayout;
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
labelLayout = new TQVBoxLayout( slidersLayout );
labelLayout->setAlignment(TQt::AlignHCenter);
}
@@ -151,7 +150,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
labelLayout = new TQHBoxLayout( slidersLayout );
labelLayout->setAlignment(TQt::AlignVCenter);
}
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
m_label = new VerticalText( this, m_mixdevice->name().utf8().data() );
TQToolTip::add( m_label, m_mixdevice->name() );
@@ -166,7 +165,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
/* This addSpacing() looks VERY bizarre => removing it (cesken, 21.2.2006).
Also horizontal and vertical spacing differs. This doesn't look sensible.
- if ( _orientation == Qt::Horizontal )
+ if ( _orientation == TQt::Horizontal )
labelLayout->addSpacing( 36 );
*/
labelLayout->addWidget( m_label );
@@ -174,14 +173,14 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
/* This addSpacing() looks VERY bizarre => removing it (cesken, 21.2.2006)
Also horizontal and vertical spacing differs. This doesn't look sensible.
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
labelLayout->addSpacing( 18 );
}
*/
// -- SLIDERS, LEDS AND ICON
TQBoxLayout *sliLayout;
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
sliLayout = new TQVBoxLayout( slidersLayout );
sliLayout->setAlignment(TQt::AlignHCenter);
}
@@ -192,7 +191,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
// --- ICON ----------------------------
TQBoxLayout *iconLayout;
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
iconLayout = new TQHBoxLayout( sliLayout );
iconLayout->setAlignment(TQt::AlignVCenter);
}
@@ -214,7 +213,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
// --- MUTE LED
if ( showMuteLED ) {
TQBoxLayout *ledlayout;
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
ledlayout = new TQHBoxLayout( sliLayout );
ledlayout->setAlignment(TQt::AlignVCenter);
}
@@ -233,7 +232,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
m_muteLED->resize( TQSize(16, 16) );
ledlayout->addWidget( m_muteLED );
TQToolTip::add( m_muteLED, i18n( "Mute" ) );
- connect( m_muteLED, TQT_SIGNAL(stateChanged(bool)), this, TQT_SLOT(toggleMuted()) );
+ connect( m_muteLED, TQ_SIGNAL(stateChanged(bool)), this, TQ_SLOT(toggleMuted()) );
m_muteLED->installEventFilter( this );
ledlayout->addStretch();
} // has Mute LED
@@ -251,7 +250,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
// --- SLIDERS ---------------------------
TQBoxLayout *volLayout;
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
volLayout = new TQHBoxLayout( sliLayout );
volLayout->setAlignment(TQt::AlignVCenter);
}
@@ -271,7 +270,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
int maxvol = m_mixdevice->getVolume().maxVolume();
int minvol = m_mixdevice->getVolume().minVolume();
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
slinumLayout = new TQVBoxLayout( volLayout );
slinumLayout->setAlignment(TQt::AlignHCenter);
}
@@ -317,7 +316,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
slinumLayout->addWidget( slider ); // add to layout
m_sliders.append ( slider ); // add to list
_slidersChids.append(chid); // Remember slider-chid association
- connect( slider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(volumeChange(int)) );
+ connect( slider, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(volumeChange(int)) );
} // for all channels of this device
@@ -328,7 +327,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
// --- LED LAYOUT TO CENTER ---
TQBoxLayout *reclayout;
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
reclayout = new TQHBoxLayout( sliLayout );
reclayout->setAlignment(TQt::AlignVCenter);
}
@@ -344,7 +343,7 @@ void MDWSlider::createWidgets( bool showMuteLED, bool showRecordLED )
KLed::Sunken, KLed::Circular, this, "RecordLED" );
m_recordLED->setFixedSize( TQSize(16, 16) );
reclayout->addWidget( m_recordLED );
- connect(m_recordLED, TQT_SIGNAL(stateChanged(bool)), this, TQT_SLOT(setRecsrc(bool)));
+ connect(m_recordLED, TQ_SIGNAL(stateChanged(bool)), this, TQ_SLOT(setRecsrc(bool)));
m_recordLED->installEventFilter( this );
TQToolTip::add( m_recordLED, i18n( "Record" ) );
reclayout->addStretch();
@@ -471,7 +470,7 @@ MDWSlider::setStereoLinked(bool value)
***********************************************************/
int firstSliderValue = 0;
bool firstSliderValueValid = false;
- if (slider->isA(TQSLIDER_OBJECT_NAME_STRING) ) {
+ if (slider->isA("TQSlider") ) {
TQSlider *sld = static_cast<TQSlider*>(slider);
firstSliderValue = sld->value();
firstSliderValueValid = true;
@@ -494,7 +493,7 @@ MDWSlider::setStereoLinked(bool value)
if ( firstSliderValueValid ) {
// Remark: firstSlider== 0 could happen, if the static_cast<TQRangeControl*> above fails.
// It's a safety measure, if we got other Slider types in the future.
- if (slider->isA(TQSLIDER_OBJECT_NAME_STRING) ) {
+ if (slider->isA("TQSlider") ) {
TQSlider *sld = static_cast<TQSlider*>(slider);
sld->setValue( firstSliderValue );
}
@@ -539,7 +538,7 @@ MDWSlider::setTicks( bool ticks )
slider = m_sliders.first();
- if ( slider->inherits( TQSLIDER_OBJECT_NAME_STRING ) )
+ if ( slider->inherits( "TQSlider" ) )
{
if( ticks )
if( isStereoLinked() )
@@ -651,7 +650,7 @@ void MDWSlider::volumeChange( int )
else {
TQSlider *slider = dynamic_cast<TQSlider *>(m_sliders.first());
if (slider) {
- if ( _orientation == Qt::Vertical )
+ if ( _orientation == TQt::Vertical )
sliderValue= slider->maxValue() - slider->value();
else
sliderValue= slider->value();
@@ -691,7 +690,7 @@ void MDWSlider::volumeChange( int )
{
TQSlider *bigSlider = dynamic_cast<TQSlider *>(slider);
if (bigSlider)
- if ( _orientation == Qt::Vertical )
+ if ( _orientation == TQt::Vertical )
vol.setVolume( chid, bigSlider->maxValue() - bigSlider->value() );
else
vol.setVolume( chid, bigSlider->value() );
@@ -808,7 +807,7 @@ void MDWSlider::update()
// show the top of both volumes, and not strangely low down
// the main volume by half
- if ( _orientation == Qt::Vertical )
+ if ( _orientation == TQt::Vertical )
bigSlider->setValue( vol.maxVolume() - vol.getTopStereoVolume( Volume::MMAIN ) );
else
bigSlider->setValue( vol.getTopStereoVolume( Volume::MMAIN ) );
@@ -844,7 +843,7 @@ void MDWSlider::update()
{
TQSlider *bigSlider = dynamic_cast<TQSlider *>(slider);
if (bigSlider)
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
bigSlider->setValue( vol.maxVolume() - vol[i] );
}
else {
@@ -909,7 +908,7 @@ void MDWSlider::showContextMenu()
a = _mdwActions->action( "keys" );
if ( a && m_keys ) {
- TDEActionSeparator sep( TQT_TQOBJECT(this) );
+ TDEActionSeparator sep( this );
sep.plug( menu );
a->plug( menu );
}
@@ -935,15 +934,15 @@ TQSize MDWSlider::sizeHint() const {
bool MDWSlider::eventFilter( TQObject* obj, TQEvent* e )
{
if (e->type() == TQEvent::MouseButtonPress) {
- TQMouseEvent *qme = TQT_TQMOUSEEVENT(e);
- if (qme->button() == Qt::RightButton) {
+ TQMouseEvent *qme = static_cast<TQMouseEvent*>(e);
+ if (qme->button() == TQt::RightButton) {
showContextMenu();
return true;
}
}
// Attention: We don't filter WheelEvents for KSmallSlider, because it handles WheelEvents itself
else if ( (e->type() == TQEvent::Wheel) && !obj->isA("KSmallSlider") ) {
- TQWheelEvent *qwe = TQT_TQWHEELEVENT(e);
+ TQWheelEvent *qwe = static_cast<TQWheelEvent*>(e);
if (qwe->delta() > 0) {
increaseVolume();
}
diff --git a/kmix/mdwslider.h b/kmix/mdwslider.h
index 374cc28e..fcd3636b 100644
--- a/kmix/mdwslider.h
+++ b/kmix/mdwslider.h
@@ -54,13 +54,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,
+ bool small, TQt::Orientation,
TQWidget* parent = 0, ViewBase* mw = 0, const char* name = 0);
~MDWSlider() {}
diff --git a/kmix/mdwswitch.cpp b/kmix/mdwswitch.cpp
index 94acf747..2fcd228c 100644
--- a/kmix/mdwswitch.cpp
+++ b/kmix/mdwswitch.cpp
@@ -46,7 +46,7 @@
* be "small" (uses KSmallSlider instead of TQSlider then).
*/
MDWSwitch::MDWSwitch(Mixer *mixer, MixDevice* md,
- bool small, Qt::Orientation orientation,
+ bool small, TQt::Orientation orientation,
TQWidget* parent, ViewBase* mw, const char* name) :
MixDeviceWidget(mixer,md,small,orientation,parent,mw,name),
_label(0) , _labelV(0) , _switchLED(0), _layout(0)
@@ -54,14 +54,14 @@ MDWSwitch::MDWSwitch(Mixer *mixer, MixDevice* md,
// create actions (on _mdwActions, see MixDeviceWidget)
// KStdAction::showMenubar() is in MixDeviceWidget now
- new TDEToggleAction( i18n("&Hide"), 0, TQT_TQOBJECT(this), TQT_SLOT(setDisabled()), _mdwActions, "hide" );
- new TDEAction( i18n("C&onfigure Shortcuts..."), 0, TQT_TQOBJECT(this), TQT_SLOT(defineKeys()), _mdwActions, "keys" );
+ new TDEToggleAction( i18n("&Hide"), 0, this, TQ_SLOT(setDisabled()), _mdwActions, "hide" );
+ new TDEAction( i18n("C&onfigure Shortcuts..."), 0, this, TQ_SLOT(defineKeys()), _mdwActions, "keys" );
// create widgets
createWidgets();
m_keys->insert( "Toggle switch", i18n( "Toggle Switch" ), TQString(),
- TDEShortcut(), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT( toggleSwitch() ) );
+ TDEShortcut(), TDEShortcut(), this, TQ_SLOT( toggleSwitch() ) );
// The keys are loaded in KMixerWidget::loadConfig, see kmixerwidget.cpp (now: kmixtoolbox.cpp)
//m_keys->readSettings();
@@ -77,7 +77,7 @@ MDWSwitch::~MDWSwitch()
void MDWSwitch::createWidgets()
{
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
_layout = new TQVBoxLayout( this );
_layout->setAlignment(TQt::AlignHCenter);
}
@@ -90,7 +90,7 @@ void MDWSwitch::createWidgets()
_layout->addSpacing( 4 );
// --- LEDS --------------------------
- if ( _orientation == Qt::Vertical ) {
+ if ( _orientation == TQt::Vertical ) {
if( m_mixdevice->isRecordable() )
_switchLED = new KLedButton( TQt::red,
m_mixdevice->isRecSource()?KLed::On:KLed::Off,
@@ -124,7 +124,7 @@ void MDWSwitch::createWidgets()
_switchLED->installEventFilter( this );
_label->installEventFilter( this );
}
- connect( _switchLED, TQT_SIGNAL(stateChanged(bool)), this, TQT_SLOT(toggleSwitch()) );
+ connect( _switchLED, TQ_SIGNAL(stateChanged(bool)), this, TQ_SLOT(toggleSwitch()) );
_layout->addSpacing( 4 );
}
@@ -219,8 +219,8 @@ void MDWSwitch::setDisabled( bool value ) {
bool MDWSwitch::eventFilter( TQObject* obj, TQEvent* e )
{
if (e->type() == TQEvent::MouseButtonPress) {
- TQMouseEvent *qme = TQT_TQMOUSEEVENT(e);
- if (qme->button() == Qt::RightButton) {
+ TQMouseEvent *qme = static_cast<TQMouseEvent*>(e);
+ if (qme->button() == TQt::RightButton) {
showContextMenu();
return true;
}
diff --git a/kmix/mdwswitch.h b/kmix/mdwswitch.h
index 1a4f4cf9..8be74e95 100644
--- a/kmix/mdwswitch.h
+++ b/kmix/mdwswitch.h
@@ -50,12 +50,12 @@ class ViewBase;
class MDWSwitch : public MixDeviceWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
MDWSwitch( Mixer *mixer, MixDevice* md,
- bool small, Qt::Orientation orientation,
+ bool small, TQt::Orientation orientation,
TQWidget* parent = 0, ViewBase* mw = 0, const char* name = 0);
~MDWSwitch();
diff --git a/kmix/mixdevice.h b/kmix/mixdevice.h
index cc048a62..3a719e5d 100644
--- a/kmix/mixdevice.h
+++ b/kmix/mixdevice.h
@@ -18,7 +18,7 @@
*/
class MixDevice : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kmix/mixdevicewidget.cpp b/kmix/mixdevicewidget.cpp
index d6bf2ff1..5fbfac2a 100644
--- a/kmix/mixdevicewidget.cpp
+++ b/kmix/mixdevicewidget.cpp
@@ -53,13 +53,13 @@
* be "small" (uses KSmallSlider instead of TQSlider then).
*/
MixDeviceWidget::MixDeviceWidget(Mixer *mixer, MixDevice* md,
- bool small, Qt::Orientation orientation,
+ bool small, TQt::Orientation orientation,
TQWidget* parent, ViewBase* mw, const char* name) :
TQWidget( parent, name ), m_mixer(mixer), m_mixdevice( md ), m_mixerwidget( mw ),
m_disabled( false ), _orientation( orientation ), m_small( small )
{
_mdwActions = new TDEActionCollection( this );
- m_keys = new TDEGlobalAccel( TQT_TQOBJECT(this), "Keys" );
+ m_keys = new TDEGlobalAccel( this, "Keys" );
}
MixDeviceWidget::~MixDeviceWidget()
@@ -109,7 +109,7 @@ void MixDeviceWidget::setMutedColors( TQColor , TQColor , TQColor ) { /* is virt
void MixDeviceWidget::mousePressEvent( TQMouseEvent *e )
{
- if ( e->button()==Qt::RightButton )
+ if ( e->button()==TQt::RightButton )
showContextMenu();
else {
TQWidget::mousePressEvent(e);
diff --git a/kmix/mixdevicewidget.h b/kmix/mixdevicewidget.h
index 1ee0d8d3..ccd779f6 100644
--- a/kmix/mixdevicewidget.h
+++ b/kmix/mixdevicewidget.h
@@ -52,14 +52,14 @@ class ViewBase;
class MixDeviceWidget
: 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,
+ bool small, TQt::Orientation orientation,
TQWidget* parent = 0, ViewBase* mw = 0, const char* name = 0);
~MixDeviceWidget();
@@ -105,7 +105,7 @@ protected:
TDEGlobalAccel* m_keys;
ViewBase* m_mixerwidget;
bool m_disabled;
- Qt::Orientation _orientation;
+ TQt::Orientation _orientation;
bool m_small;
private:
diff --git a/kmix/mixer.cpp b/kmix/mixer.cpp
index 150b196d..953afce9 100644
--- a/kmix/mixer.cpp
+++ b/kmix/mixer.cpp
@@ -89,7 +89,7 @@ Mixer::Mixer( int driver, int device ) : DCOPObject( "Mixer" )
m_profiles.setAutoDelete( true );
_pollingTimer = new TQTimer(); // will be started on open() and stopped on close()
- connect( _pollingTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(readSetFromHW()));
+ connect( _pollingTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(readSetFromHW()));
TQCString objid;
#ifndef KMIX_DCOP_OBJID_TEST
@@ -207,7 +207,7 @@ int Mixer::open()
else {
_mixerBackend->prepareSignalling(this);
// poll once to give the GUI a chance to rebuild it's info
- TQTimer::singleShot( 50, this, TQT_SLOT( readSetFromHW() ) );
+ TQTimer::singleShot( 50, this, TQ_SLOT( readSetFromHW() ) );
}
return err;
}
@@ -516,7 +516,7 @@ void Mixer::setVolume( int deviceidx, int percentage )
_mixerBackend->writeVolumeToHW(deviceidx, vol);
// Make sure volume reading is synced
readSetFromHWforceUpdate();
- TQTimer::singleShot(50, this, TQT_SLOT(readSetFromHW()));
+ TQTimer::singleShot(50, this, TQ_SLOT(readSetFromHW()));
}
/**
@@ -534,7 +534,7 @@ void Mixer::commitVolumeChange( MixDevice* md ) {
// Muting/unmuting PulseAudio directly does not send back any notification to the mixer
// so we make sure we always update the tray icon after each operation.
readSetFromHWforceUpdate();
- TQTimer::singleShot(50, this, TQT_SLOT(readSetFromHW()));
+ TQTimer::singleShot(50, this, TQ_SLOT(readSetFromHW()));
}
// @dcop only
@@ -586,7 +586,7 @@ void Mixer::setAbsoluteVolume( int deviceidx, long absoluteVolume ) {
_mixerBackend->writeVolumeToHW(deviceidx, vol);
// Make sure volume reading is synced
readSetFromHWforceUpdate();
- TQTimer::singleShot(50, this, TQT_SLOT(readSetFromHW()));
+ TQTimer::singleShot(50, this, TQ_SLOT(readSetFromHW()));
}
// @dcop , especially for use in KMilo
diff --git a/kmix/mixer.h b/kmix/mixer.h
index dfee29a3..2ec99a1e 100644
--- a/kmix/mixer.h
+++ b/kmix/mixer.h
@@ -42,7 +42,7 @@ class TDEConfig;
class Mixer : public TQObject, virtual public MixerIface
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kmix/mixer_alsa9.cpp b/kmix/mixer_alsa9.cpp
index 22303b43..aaf6a109 100644
--- a/kmix/mixer_alsa9.cpp
+++ b/kmix/mixer_alsa9.cpp
@@ -418,7 +418,7 @@ void Mixer_ALSA::prepareSignalling( Mixer *mixer )
{
kdDebug() << "socket " << i << endl;
m_sns[i] = new TQSocketNotifier(m_fds[i].fd, TQSocketNotifier::Read);
- mixer->connect(m_sns[i], TQT_SIGNAL(activated(int)), mixer, TQT_SLOT(readSetFromHW()));
+ mixer->connect(m_sns[i], TQ_SIGNAL(activated(int)), mixer, TQ_SLOT(readSetFromHW()));
}
}
diff --git a/kmix/mixer_sun.cpp b/kmix/mixer_sun.cpp
index 12806bda..ac5fe03f 100644
--- a/kmix/mixer_sun.cpp
+++ b/kmix/mixer_sun.cpp
@@ -105,7 +105,7 @@ const uint_t MixerSunPortMasks[] =
//======================================================================
-// FUNCTION/TQT_METHOD DEFINITIONS
+// FUNCTION/METHOD DEFINITIONS
//======================================================================
diff --git a/kmix/pics/CMakeLists.txt b/kmix/pics/CMakeLists.txt
index 35ea82c5..92af67f8 100644
--- a/kmix/pics/CMakeLists.txt
+++ b/kmix/pics/CMakeLists.txt
@@ -16,8 +16,10 @@ install( FILES
mix_microphone.png mix_midi.png mix_recmon.png
mix_treble.png mix_unknown.png mix_volume.png
mix_surround.png mix_video.png mix_headphone.png
- mix_digital.png mix_ac97.png kmixdocked.png
- kmixdocked_mute.png kmixdocked_error.png mix_record.png
+ mix_digital.png mix_ac97.png mix_record.png
SpeakerFrontLeft.png SpeakerRearLeft.png SpeakerFrontRight.png
SpeakerRearRight.png Listener.png
DESTINATION ${DATA_INSTALL_DIR}/kmix/pics )
+
+add_subdirectory(oldcrystal)
+add_subdirectory(crystal) \ No newline at end of file
diff --git a/kmix/pics/crystal/CMakeLists.txt b/kmix/pics/crystal/CMakeLists.txt
new file mode 100644
index 00000000..71f61d26
--- /dev/null
+++ b/kmix/pics/crystal/CMakeLists.txt
@@ -0,0 +1,13 @@
+################################################################################
+# Copyright © 2024 Mavridis Philippe <mavridisf@gmail.com> #
+# #
+# This file is released under the GNU GPL version 3 or later. #
+# Improvements and feedback are welcome! #
+################################################################################
+
+set(theme "crystal")
+
+install(FILES audio-volume-error.png audio-volume-muted.png
+ audio-volume-low.png audio-volume-medium.png
+ audio-volume-high.png
+ DESTINATION ${DATA_INSTALL_DIR}/kmix/pics/${theme}) \ No newline at end of file
diff --git a/kmix/pics/kmixdocked_error.png b/kmix/pics/crystal/audio-volume-error.png
index b0497662..b0497662 100644
--- a/kmix/pics/kmixdocked_error.png
+++ b/kmix/pics/crystal/audio-volume-error.png
Binary files differ
diff --git a/kmix/pics/crystal/audio-volume-high.png b/kmix/pics/crystal/audio-volume-high.png
new file mode 100644
index 00000000..bfa7234b
--- /dev/null
+++ b/kmix/pics/crystal/audio-volume-high.png
Binary files differ
diff --git a/kmix/pics/crystal/audio-volume-low.png b/kmix/pics/crystal/audio-volume-low.png
new file mode 100644
index 00000000..e42f7c8b
--- /dev/null
+++ b/kmix/pics/crystal/audio-volume-low.png
Binary files differ
diff --git a/kmix/pics/crystal/audio-volume-medium.png b/kmix/pics/crystal/audio-volume-medium.png
new file mode 100644
index 00000000..4be127eb
--- /dev/null
+++ b/kmix/pics/crystal/audio-volume-medium.png
Binary files differ
diff --git a/kmix/pics/crystal/audio-volume-muted.png b/kmix/pics/crystal/audio-volume-muted.png
new file mode 100644
index 00000000..8ceb8690
--- /dev/null
+++ b/kmix/pics/crystal/audio-volume-muted.png
Binary files differ
diff --git a/kmix/pics/oldcrystal/CMakeLists.txt b/kmix/pics/oldcrystal/CMakeLists.txt
new file mode 100644
index 00000000..47b37e11
--- /dev/null
+++ b/kmix/pics/oldcrystal/CMakeLists.txt
@@ -0,0 +1,13 @@
+################################################################################
+# Copyright © 2024 Mavridis Philippe <mavridisf@gmail.com> #
+# #
+# This file is released under the GNU GPL version 3 or later. #
+# Improvements and feedback are welcome! #
+################################################################################
+
+set(theme "oldcrystal")
+
+install(FILES audio-volume-error.png audio-volume-muted.png
+ audio-volume-low.png audio-volume-medium.png
+ audio-volume-high.png
+ DESTINATION ${DATA_INSTALL_DIR}/kmix/pics/${theme}) \ No newline at end of file
diff --git a/kmix/pics/oldcrystal/audio-volume-error.png b/kmix/pics/oldcrystal/audio-volume-error.png
new file mode 100644
index 00000000..b0497662
--- /dev/null
+++ b/kmix/pics/oldcrystal/audio-volume-error.png
Binary files differ
diff --git a/kmix/pics/oldcrystal/audio-volume-high.png b/kmix/pics/oldcrystal/audio-volume-high.png
new file mode 120000
index 00000000..dd3d1eea
--- /dev/null
+++ b/kmix/pics/oldcrystal/audio-volume-high.png
@@ -0,0 +1 @@
+audio-volume-low.png \ No newline at end of file
diff --git a/kmix/pics/kmixdocked.png b/kmix/pics/oldcrystal/audio-volume-low.png
index 0c3f17d7..9e8997e5 100644
--- a/kmix/pics/kmixdocked.png
+++ b/kmix/pics/oldcrystal/audio-volume-low.png
Binary files differ
diff --git a/kmix/pics/oldcrystal/audio-volume-medium.png b/kmix/pics/oldcrystal/audio-volume-medium.png
new file mode 120000
index 00000000..dd3d1eea
--- /dev/null
+++ b/kmix/pics/oldcrystal/audio-volume-medium.png
@@ -0,0 +1 @@
+audio-volume-low.png \ No newline at end of file
diff --git a/kmix/pics/kmixdocked_mute.png b/kmix/pics/oldcrystal/audio-volume-muted.png
index 0dae0f15..70764025 100644
--- a/kmix/pics/kmixdocked_mute.png
+++ b/kmix/pics/oldcrystal/audio-volume-muted.png
Binary files differ
diff --git a/kmix/viewapplet.cpp b/kmix/viewapplet.cpp
index 87020b95..ccd6080e 100644
--- a/kmix/viewapplet.cpp
+++ b/kmix/viewapplet.cpp
@@ -41,20 +41,20 @@ ViewApplet::ViewApplet(TQWidget* parent, const char* name, Mixer* mixer, ViewBas
{
setBackgroundOrigin(AncestorOrigin);
// remove the menu bar action, that is put by the "ViewBase" constructor in _actions.
- //TDEToggleAction *m = static_cast<TDEToggleAction*>(KStdAction::showMenubar( this, TQT_SLOT(toggleMenuBarSlot()), _actions ));
- _actions->remove( KStdAction::showMenubar(TQT_TQOBJECT(this), TQT_SLOT(toggleMenuBarSlot()), _actions) );
+ //TDEToggleAction *m = static_cast<TDEToggleAction*>(KStdAction::showMenubar( this, TQ_SLOT(toggleMenuBarSlot()), _actions ));
+ _actions->remove( KStdAction::showMenubar(this, TQ_SLOT(toggleMenuBarSlot()), _actions) );
if ( position == KPanelApplet::pLeft || position == KPanelApplet::pRight ) {
//kdDebug(67100) << "ViewApplet() isVertical" << "\n";
- _viewOrientation = Qt::Vertical;
+ _viewOrientation = TQt::Vertical;
}
else {
//kdDebug(67100) << "ViewApplet() isHorizontal" << "\n";
- _viewOrientation = Qt::Horizontal;
+ _viewOrientation = TQt::Horizontal;
}
- if ( _viewOrientation == Qt::Horizontal ) {
+ if ( _viewOrientation == TQt::Horizontal ) {
_layoutMDW = new TQHBoxLayout( this );
setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred);
}
@@ -104,11 +104,11 @@ TQWidget* ViewApplet::add(MixDevice *md)
Slider orientation is exactly the other way round. If the applet stretches horzontally,
the sliders must be vertical
*/
- Qt::Orientation sliderOrientation;
- if (_viewOrientation == Qt::Horizontal )
- sliderOrientation = Qt::Vertical;
+ TQt::Orientation sliderOrientation;
+ if (_viewOrientation == TQt::Horizontal )
+ sliderOrientation = TQt::Vertical;
else
- sliderOrientation = Qt::Horizontal;
+ sliderOrientation = TQt::Horizontal;
// kdDebug(67100) << "ViewApplet::add()\n";
MixDeviceWidget *mdw =
@@ -147,7 +147,7 @@ TQSize ViewApplet::sizeHint() const {
}
TQSizePolicy ViewApplet::sizePolicy() const {
- if ( _viewOrientation == Qt::Horizontal ) {
+ if ( _viewOrientation == TQt::Horizontal ) {
//kdDebug(67100) << "ViewApplet::sizePolicy=(Fixed,Expanding)\n";
return TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding);
}
@@ -159,7 +159,7 @@ TQSizePolicy ViewApplet::sizePolicy() const {
bool ViewApplet::shouldShowIcons(TQSize qsz) {
bool showIcons = false;
- if ( _viewOrientation == Qt::Horizontal ) {
+ if ( _viewOrientation == TQt::Horizontal ) {
if ( qsz.height() >= 32 ) {
//kdDebug(67100) << "ViewApplet::resizeEvent() hor >=32" << qre->size() << "\n";
showIcons = true;
diff --git a/kmix/viewapplet.h b/kmix/viewapplet.h
index a5e32611..abd31746 100644
--- a/kmix/viewapplet.h
+++ b/kmix/viewapplet.h
@@ -12,7 +12,7 @@ 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);
@@ -41,7 +41,7 @@ private:
// Position of the applet (pLeft, pRight, pTop, pBottom)
//KPanelApplet::Position _KMIXposition;
// Orientation of the applet (horizontal or vertical)
- Qt::Orientation _viewOrientation;
+ TQt::Orientation _viewOrientation;
};
#endif
diff --git a/kmix/viewbase.cpp b/kmix/viewbase.cpp
index 86d1524c..41d26f6a 100644
--- a/kmix/viewbase.cpp
+++ b/kmix/viewbase.cpp
@@ -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 ) {
- TDEToggleAction *m = static_cast<TDEToggleAction*>(KStdAction::showMenubar( TQT_TQOBJECT(this), TQT_SLOT(toggleMenuBarSlot()), _actions ));
+ TDEToggleAction *m = static_cast<TDEToggleAction*>(KStdAction::showMenubar( this, TQ_SLOT(toggleMenuBarSlot()), _actions ));
if ( vflags & ViewBase::MenuBarVisible ) {
m->setChecked(true);
}
@@ -59,9 +59,9 @@ ViewBase::ViewBase(TQWidget* parent, const char* name, const TQString & caption,
m->setChecked(false);
}
}
- new TDEAction(i18n("&Channels"), 0, TQT_TQOBJECT(this), TQT_SLOT(configureView()), _actions, "toggle_channels");
- new TDEAction(i18n("&Select Mixer"), 0, TQT_TQOBJECT(this), TQT_SLOT(selectMixerSlot()), _actions, "select_mixer");
- connect ( _mixer, TQT_SIGNAL(newVolumeLevels()), this, TQT_SLOT(refreshVolumeLevels()) );
+ new TDEAction(i18n("&Channels"), 0, this, TQ_SLOT(configureView()), _actions, "toggle_channels");
+ new TDEAction(i18n("&Select Mixer"), 0, this, TQ_SLOT(selectMixerSlot()), _actions, "select_mixer");
+ connect ( _mixer, TQ_SIGNAL(newVolumeLevels()), this, TQ_SLOT(refreshVolumeLevels()) );
}
ViewBase::~ViewBase() {
@@ -113,7 +113,7 @@ void ViewBase::createDeviceWidgets()
// ---------- Popup stuff START ---------------------
void ViewBase::mousePressEvent( TQMouseEvent *e )
{
- if ( e->button()==Qt::RightButton )
+ if ( e->button()==TQt::RightButton )
showContextMenu();
}
diff --git a/kmix/viewbase.h b/kmix/viewbase.h
index 79f4220b..bda3aa06 100644
--- a/kmix/viewbase.h
+++ b/kmix/viewbase.h
@@ -16,7 +16,7 @@ class MixDevice;
*/
class ViewBase : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kmix/viewdockareapopup.cpp b/kmix/viewdockareapopup.cpp
index e9cd9155..79d8cfc4 100644
--- a/kmix/viewdockareapopup.cpp
+++ b/kmix/viewdockareapopup.cpp
@@ -127,7 +127,7 @@ TQWidget* ViewDockAreaPopup::add(MixDevice *md)
true, // Show Mute LED
false, // Show Record LED
false, // Small
- Qt::Vertical, // Direction: only 1 device, so doesn't matter
+ TQt::Vertical, // Direction: only 1 device, so doesn't matter
_frame, // parent
0, // Is "NULL", so that there is no RMB-popup
_dockDevice->name().local8Bit());
@@ -137,7 +137,7 @@ TQWidget* ViewDockAreaPopup::add(MixDevice *md)
// Add button to show main panel
_showPanelBox = new TQPushButton( i18n("Mixer"), _frame, "MixerPanel" );
- connect ( _showPanelBox, TQT_SIGNAL( clicked() ), TQT_SLOT( showPanelSlot() ) );
+ connect ( _showPanelBox, TQ_SIGNAL( clicked() ), TQ_SLOT( showPanelSlot() ) );
_layoutMDW->addMultiCellWidget( _showPanelBox, 1, 1, 0, 2 );
return _mdw;
diff --git a/kmix/viewdockareapopup.h b/kmix/viewdockareapopup.h
index 8d4b0f90..a3f00342 100644
--- a/kmix/viewdockareapopup.h
+++ b/kmix/viewdockareapopup.h
@@ -17,7 +17,7 @@ class TQTime;
class ViewDockAreaPopup : public ViewBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
ViewDockAreaPopup(TQWidget* parent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KMixDockWidget *dockW);
diff --git a/kmix/viewgrid.cpp b/kmix/viewgrid.cpp
deleted file mode 100644
index e6aa2045..00000000
--- a/kmix/viewgrid.cpp
+++ /dev/null
@@ -1,212 +0,0 @@
-/*
- * KMix -- KDE's full featured mini mixer
- *
- *
- * Copyright (C) 1996-2004 Christian Esken <esken@kde.org>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this program; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-#include "viewgrid.h"
-
-// TQt
-#include <tqwidget.h>
-
-// KDE
-#include <kdebug.h>
-
-// KMix
-#include "mdwenum.h"
-#include "mdwslider.h"
-#include "mdwswitch.h"
-#include "mixer.h"
-
-/**
- */
-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)
-{
- m_spacingHorizontal = 5;
- m_spacingVertical = 5;
-
- if ( _vflags & ViewBase::Vertical ) {
- //_layoutMDW = new TQVBoxLayout(this);
- }
- else {
- //_layoutMDW = new TQHBoxLayout(this);
- }
- init();
-}
-
-ViewGrid::~ViewGrid() {
-}
-
-void ViewGrid::setMixSet(MixSet *mixset)
-{
- MixDevice* md;
- int testCounter = 0;
- for ( md = mixset->first(); md != 0; md = mixset->next() ) {
- if (testCounter<8) {
- _mixSet->append(md);
- }
- testCounter++;
- }
-}
-
-int ViewGrid::count()
-{
- return ( _mixSet->count() );
-}
-
-int ViewGrid::advice() {
- if ( _mixSet->count() > 0 ) {
- // The standard input and output views are always advised, if there are devices in it
- return 100;
- }
- else {
- return 0;
- }
-}
-
-TQWidget* ViewGrid::add(MixDevice *md)
-{
- MixDeviceWidget *mdw = 0;
- if ( md->isEnum() ) {
- Qt::Orientation orientation = (_vflags & ViewBase::Vertical) ? Qt::Horizontal : Qt::Vertical;
- mdw = new MDWEnum(
- _mixer, // the mixer for this device
- md, // MixDevice (parameter)
- orientation, // Orientation
- this, // parent
- this, // View widget
- md->name().latin1()
- );
- } // an enum
- else if (md->isSwitch()) {
- Qt::Orientation orientation = (_vflags & ViewBase::Vertical) ? Qt::Horizontal : Qt::Vertical;
- mdw =
- new MDWSwitch(
- _mixer, // the mixer for this device
- md, // MixDevice (parameter)
- false, // Small
- orientation, // Orientation
- this, // parent
- this, // View widget
- md->name().latin1()
- );
- } // a switch
-
- else { // must be a slider
- Qt::Orientation orientation = (_vflags & ViewBase::Vertical) ? Qt::Horizontal : Qt::Vertical;
- mdw =
- new MDWSlider(
- _mixer, // the mixer for this device
- md, // MixDevice (parameter)
- true, // Show Mute LED
- true, // Show Record LED
- false, // Small
- orientation, // Orientation
- this, // parent
- this, // View widget
- md->name().latin1()
- );
- }
- return mdw;
-}
-
-TQSize ViewGrid::sizeHint() const {
- // kdDebug(67100) << "ViewGrid::sizeHint(): NewSize is " << _layoutMDW->sizeHint() << "\n";
- return( m_sizeHint);
-}
-
-void ViewGrid::constructionFinished() {
- //_layoutMDW->activate();
-
- // do a manual layout
- configurationUpdate();
-}
-
-void ViewGrid::refreshVolumeLevels() {
- // kdDebug(67100) << "ViewGrid::refreshVolumeLevels()\n";
-
- m_sizeHint.setWidth (0);
- m_sizeHint.setHeight(0);
-
- m_testingX = 0;
- m_testingY = 0;
-
- TQWidget *mdw = _mdws.first();
- MixDevice* md;
- for ( md = _mixSet->first(); md != 0; md = _mixSet->next() ) {
- if ( mdw == 0 ) {
- kdError(67100) << "ViewGrid::refreshVolumeLevels(): mdw == 0\n";
- break; // sanity check (normally the lists are set up correctly)
- }
- else {
- if ( mdw->inherits("MDWSlider")) {
- //kdDebug(67100) << "ViewGrid::refreshVolumeLevels(): updating\n";
- // a slider, fine. Lets update its value
- static_cast<MDWSlider*>(mdw)->update();
- }
- else if ( mdw->inherits("MDWSwitch")) {
- //kdDebug(67100) << "ViewGrid::refreshVolumeLevels(): updating\n";
- // a slider, fine. Lets update its value
- static_cast<MDWSwitch*>(mdw)->update();
- }
- else if ( mdw->inherits("MDWEnum")) {
- static_cast<MDWEnum*>(mdw)->update();
- }
- else {
- kdError(67100) << "ViewGrid::refreshVolumeLevels(): mdw is unknown/unsupported type\n";
- // no slider. Cannot happen in theory => skip it
- }
- }
- mdw = _mdws.next();
- }
-}
-
-/**
- This implementation makes sure the Grid's geometry is updated
- after hiding/showing channels.
-*/
-void ViewGrid::configurationUpdate() {
- m_sizeHint.setWidth (0);
- m_sizeHint.setHeight(0);
-
- m_testingX = 0;
- m_testingY = 0;
-
- for (TQWidget *qw = _mdws.first(); qw !=0; qw = _mdws.next() ) {
-
- if ( qw->inherits("MixDeviceWidget")) {
- MixDeviceWidget* mdw = static_cast<MixDeviceWidget*>(qw);
- 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);
-
- m_testingX += 5;
- if ( m_testingX > 50 ) {
- m_testingY += 10;
- m_testingX = 0;
- }
- } // inherits MixDeviceWidget
- } // for all MDW's
-}
-
-
-#include "viewgrid.moc"
diff --git a/kmix/viewgrid.h b/kmix/viewgrid.h
deleted file mode 100644
index d9883ef6..00000000
--- a/kmix/viewgrid.h
+++ /dev/null
@@ -1,43 +0,0 @@
-#ifndef ViewGrid_h
-#define ViewGrid_h
-
-class TQBoxLayout;
-#include "tqsize.h"
-class TQWidget;
-
-class Mixer;
-#include "viewbase.h"
-
-class ViewGrid : public ViewBase
-{
- Q_OBJECT
-
-public:
- ViewGrid(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags);
- ~ViewGrid();
-
- virtual int count();
- virtual int advice();
- virtual void setMixSet(MixSet *mixset);
- virtual TQWidget* add(MixDevice *mdw);
- virtual void configurationUpdate();
- virtual void constructionFinished();
-
- TQSize sizeHint() const;
-
-public slots:
- virtual void refreshVolumeLevels();
-
-private:
- unsigned int m_spacingHorizontal;
- unsigned int m_spacingVertical;
-
- // m_maxX and m_maxY are the highest coordiantes encountered
- TQSize m_sizeHint;
-
- unsigned int m_testingX;
- unsigned int m_testingY;
-};
-
-#endif
-
diff --git a/kmix/viewinput.cpp b/kmix/viewinput.cpp
index eeadc61b..412b773b 100644
--- a/kmix/viewinput.cpp
+++ b/kmix/viewinput.cpp
@@ -29,7 +29,7 @@ ViewInput::ViewInput(TQWidget* parent, const char* name, const TQString & captio
: ViewSliders(parent, name, caption, mixer, vflags)
{
init();
- connect ( _mixer, TQT_SIGNAL(newRecsrc()) , this, TQT_SLOT(refreshVolumeLevels()) ); // only the input widget has record sources
+ connect ( _mixer, TQ_SIGNAL(newRecsrc()) , this, TQ_SLOT(refreshVolumeLevels()) ); // only the input widget has record sources
}
ViewInput::~ViewInput() {
diff --git a/kmix/viewinput.h b/kmix/viewinput.h
index 01d3e0fe..2164d2f1 100644
--- a/kmix/viewinput.h
+++ b/kmix/viewinput.h
@@ -7,7 +7,7 @@ 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);
diff --git a/kmix/viewoutput.h b/kmix/viewoutput.h
index a0980494..93f710f8 100644
--- a/kmix/viewoutput.h
+++ b/kmix/viewoutput.h
@@ -7,7 +7,7 @@ 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);
diff --git a/kmix/viewsliders.cpp b/kmix/viewsliders.cpp
index b36f7c2f..fcd6e423 100644
--- a/kmix/viewsliders.cpp
+++ b/kmix/viewsliders.cpp
@@ -41,10 +41,10 @@ ViewSliders::ViewSliders(TQWidget* parent, const char* name, const TQString & ca
: ViewBase(parent, name, caption, mixer, WStyle_Customize|WStyle_NoBorder, vflags)
{
if ( _vflags & ViewBase::Vertical ) {
- _layoutMDW = new TQVBoxLayout(this);
+ _layoutMDW = new TQHBoxLayout(this);
}
else {
- _layoutMDW = new TQHBoxLayout(this);
+ _layoutMDW = new TQVBoxLayout(this);
}
/*
* Do not call init(). Call init() only for "end usage" classes.
@@ -85,7 +85,7 @@ int ViewSliders::advice() {
TQWidget* ViewSliders::add(MixDevice *md)
{
- Qt::Orientation orientation = (_vflags & ViewBase::Vertical) ? Qt::Horizontal : Qt::Vertical;
+ TQt::Orientation orientation = (_vflags & ViewBase::Vertical) ? TQt::Vertical : TQt::Horizontal;
MixDeviceWidget *mdw =
new MDWSlider(
_mixer, // the mixer for this device
diff --git a/kmix/viewsliders.h b/kmix/viewsliders.h
index ce282247..6bded967 100644
--- a/kmix/viewsliders.h
+++ b/kmix/viewsliders.h
@@ -9,7 +9,7 @@ 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);
diff --git a/kmix/viewsurround.cpp b/kmix/viewsurround.cpp
index 27cc1635..a7ab291c 100644
--- a/kmix/viewsurround.cpp
+++ b/kmix/viewsurround.cpp
@@ -102,7 +102,7 @@ int ViewSurround::advice() {
TQWidget* ViewSurround::add(MixDevice *md)
{
bool small = false;
- Qt::Orientation orientation = Qt::Vertical;
+ TQt::Orientation orientation = TQt::Vertical;
switch ( md->type() ) {
case MixDevice::VOLUME:
_mdSurroundFront = md;
@@ -113,22 +113,22 @@ TQWidget* ViewSurround::add(MixDevice *md)
small = true;
break;
case MixDevice::SURROUND_LFE:
- orientation = Qt::Horizontal;
+ orientation = TQt::Horizontal;
small = true;
break;
case MixDevice::SURROUND_CENTERFRONT:
- orientation = Qt::Horizontal;
+ orientation = TQt::Horizontal;
small = true;
break;
case MixDevice::SURROUND_CENTERBACK:
- orientation = Qt::Horizontal;
+ orientation = TQt::Horizontal;
small = true;
break;
default:
small = false;
// these are the sliders on the left side of the surround View
- orientation = (_vflags & ViewBase::Vertical) ? Qt::Horizontal : Qt::Vertical;
+ orientation = (_vflags & ViewBase::Vertical) ? TQt::Horizontal : TQt::Vertical;
} // switch(type)
MixDeviceWidget *mdw = createMDW(md, small, orientation);
@@ -183,7 +183,7 @@ void ViewSurround::constructionFinished() {
_layoutSurround->addWidget(personLabel ,rowOfSpeaker, 2, TQt::AlignHCenter | TQt::AlignVCenter);
if ( _mdSurroundFront != 0 ) {
- MixDeviceWidget *mdw = createMDW(_mdSurroundFront, true, Qt::Vertical);
+ MixDeviceWidget *mdw = createMDW(_mdSurroundFront, true, TQt::Vertical);
_layoutSurround->addWidget(mdw,0,4, TQt::AlignBottom | TQt::AlignRight);
_mdws.append(mdw);
@@ -200,7 +200,7 @@ void ViewSurround::constructionFinished() {
}
if ( _mdSurroundBack != 0 ) {
- MixDeviceWidget *mdw = createMDW(_mdSurroundBack, true, Qt::Vertical);
+ MixDeviceWidget *mdw = createMDW(_mdSurroundBack, true, TQt::Vertical);
_layoutSurround->addWidget(mdw,2,4, TQt::AlignTop | TQt::AlignRight);
_mdws.append(mdw);
@@ -251,7 +251,7 @@ void ViewSurround::refreshVolumeLevels() {
}
-MixDeviceWidget* ViewSurround::createMDW(MixDevice *md, bool small, Qt::Orientation orientation)
+MixDeviceWidget* ViewSurround::createMDW(MixDevice *md, bool small, TQt::Orientation orientation)
{
MixDeviceWidget* mdw = new MDWSlider(
_mixer, // the mixer for this device
diff --git a/kmix/viewsurround.h b/kmix/viewsurround.h
index 32903f6b..df79ac8a 100644
--- a/kmix/viewsurround.h
+++ b/kmix/viewsurround.h
@@ -12,7 +12,7 @@ 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);
@@ -30,7 +30,7 @@ public slots:
virtual void refreshVolumeLevels();
private:
- MixDeviceWidget* createMDW(MixDevice *md, bool small, Qt::Orientation orientation);
+ MixDeviceWidget* createMDW(MixDevice *md, bool small, TQt::Orientation orientation);
MixDevice *_mdSurroundFront;
MixDevice *_mdSurroundBack;
diff --git a/kmix/viewswitches.cpp b/kmix/viewswitches.cpp
index 06b346e5..be364d55 100644
--- a/kmix/viewswitches.cpp
+++ b/kmix/viewswitches.cpp
@@ -36,19 +36,22 @@ ViewSwitches::ViewSwitches(TQWidget* parent, const char* name, const TQString &
{
// Create switch buttonGroup
if ( _vflags & ViewBase::Vertical ) {
- _layoutMDW = new TQVBoxLayout(this);
- _layoutSwitch = new TQVBoxLayout(_layoutMDW);
+ _layoutMDW = new TQHBoxLayout(this);
+ _layoutSwitch = new TQHBoxLayout(_layoutMDW);
_layoutEnum = new TQVBoxLayout(_layoutMDW); // always vertical!
}
else {
- _layoutMDW = new TQHBoxLayout(this);
- _layoutSwitch = new TQHBoxLayout(_layoutMDW);
+ _layoutMDW = new TQVBoxLayout(this);
+ _layoutSwitch = new TQVBoxLayout(_layoutMDW);
// 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.
_layoutEnum = new TQVBoxLayout(_layoutMDW);
- }
+ }
+ _layoutSwitch->setSpacing(10);
+ _layoutEnum->setSpacing(10);
+ _layoutMDW->setMargin(10);
init();
}
@@ -88,7 +91,7 @@ TQWidget* ViewSwitches::add(MixDevice *md)
MixDeviceWidget *mdw;
if ( md->isEnum() ) {
- Qt::Orientation orientation = (_vflags & ViewBase::Vertical) ? Qt::Horizontal : Qt::Vertical;
+ TQt::Orientation orientation = (_vflags & ViewBase::Vertical) ? TQt::Vertical : TQt::Horizontal;
mdw = new MDWEnum(
_mixer, // the mixer for this device
md, // MixDevice (parameter)
@@ -101,7 +104,7 @@ TQWidget* ViewSwitches::add(MixDevice *md)
} // an enum
else {
// must be a switch
- Qt::Orientation orientation = (_vflags & ViewBase::Vertical) ? Qt::Horizontal : Qt::Vertical;
+ TQt::Orientation orientation = (_vflags & ViewBase::Vertical) ? TQt::Vertical : TQt::Horizontal;
mdw =
new MDWSwitch(
_mixer, // the mixer for this device
@@ -124,6 +127,9 @@ TQSize ViewSwitches::sizeHint() const {
}
void ViewSwitches::constructionFinished() {
+ if (_vflags & ViewBase::Horizontal) {
+ static_cast<TQBoxLayout*>(_layoutMDW)->addStretch();
+ }
configurationUpdate(); // also does _layoutMDW->activate();
}
diff --git a/kmix/viewswitches.h b/kmix/viewswitches.h
index cf0d8360..6b5ec27a 100644
--- a/kmix/viewswitches.h
+++ b/kmix/viewswitches.h
@@ -9,8 +9,8 @@ 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();
diff --git a/krec/krecconfig_files.cpp b/krec/krecconfig_files.cpp
index 31df79aa..6d4d58a1 100644
--- a/krec/krecconfig_files.cpp
+++ b/krec/krecconfig_files.cpp
@@ -41,10 +41,10 @@ KRecConfigFiles::KRecConfigFiles( TQWidget* p, const char*, const TQStringList&
_layout->addSpacing( 10 );
_filewidget = new KRecConfigFilesWidget( this );
- connect( _filewidget, TQT_SIGNAL( sRateChanged( int ) ), this, TQT_SLOT( ratechanged( int ) ) );
- connect( _filewidget, TQT_SIGNAL( sChannelsChanged( int ) ), this, TQT_SLOT( channelschanged( int ) ) );
- connect( _filewidget, TQT_SIGNAL( sBitsChanged( int ) ), this, TQT_SLOT( bitschanged( int ) ) );
- connect( _filewidget, TQT_SIGNAL( sUseDefaultsChanged( bool ) ), this, TQT_SLOT( usedefaultschanged( bool ) ) );
+ connect( _filewidget, TQ_SIGNAL( sRateChanged( int ) ), this, TQ_SLOT( ratechanged( int ) ) );
+ connect( _filewidget, TQ_SIGNAL( sChannelsChanged( int ) ), this, TQ_SLOT( channelschanged( int ) ) );
+ connect( _filewidget, TQ_SIGNAL( sBitsChanged( int ) ), this, TQ_SLOT( bitschanged( int ) ) );
+ connect( _filewidget, TQ_SIGNAL( sUseDefaultsChanged( bool ) ), this, TQ_SLOT( usedefaultschanged( bool ) ) );
_layout->addWidget( _filewidget );
_layout->addStretch( 100 );
diff --git a/krec/krecconfig_files.h b/krec/krecconfig_files.h
index 05869836..dcaa7b3d 100644
--- a/krec/krecconfig_files.h
+++ b/krec/krecconfig_files.h
@@ -28,7 +28,7 @@ class TQLabel;
class KRecConfigFilesWidget;
class KRecConfigFiles : public TDECModule {
- Q_OBJECT
+ TQ_OBJECT
public:
KRecConfigFiles( TQWidget*, const char* =0, const TQStringList& = TQStringList() );
diff --git a/krec/krecconfig_fileswidget.cpp b/krec/krecconfig_fileswidget.cpp
index 42fcd11d..eae7157a 100644
--- a/krec/krecconfig_fileswidget.cpp
+++ b/krec/krecconfig_fileswidget.cpp
@@ -36,8 +36,8 @@ KRecConfigFilesWidget::KRecConfigFilesWidget( TQWidget* p, const char* n )
, _bits16( 0 ), _bits8( 0 )
, _samplingRate( 44100 ), _channels( 2 ), _bits( 16 )
{
- _ratebox = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Sampling Rate" ), _hbox );
- connect( _ratebox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( ratechanged( int ) ) );
+ _ratebox = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Sampling Rate" ), _hbox );
+ connect( _ratebox, TQ_SIGNAL( clicked( int ) ), this, TQ_SLOT( ratechanged( int ) ) );
_rate48 = new TQRadioButton( i18n( "48000 Hz" ), _ratebox );
_rate44 = new TQRadioButton( i18n( "44100 Hz" ), _ratebox );
_rate22 = new TQRadioButton( i18n( "22050 Hz" ), _ratebox );
@@ -50,18 +50,18 @@ KRecConfigFilesWidget::KRecConfigFilesWidget( TQWidget* p, const char* n )
_rateotherline->setMaxLength( 10 );
_rateotherline->setFrame( true );
_rateotherbox->setEnabled( false );
- connect( _rateotherline, TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( rateotherchanged( const TQString& ) ) );
- _channelsbox = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Channels" ), _hbox );
- connect( _channelsbox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( channelschanged( int ) ) );
+ connect( _rateotherline, TQ_SIGNAL( textChanged( const TQString& ) ), this, TQ_SLOT( rateotherchanged( const TQString& ) ) );
+ _channelsbox = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Channels" ), _hbox );
+ connect( _channelsbox, TQ_SIGNAL( clicked( int ) ), this, TQ_SLOT( channelschanged( int ) ) );
_channels2 = new TQRadioButton( i18n( "Stereo (2 channels)" ), _channelsbox );
_channels1 = new TQRadioButton( i18n( "Mono (1 channel)" ), _channelsbox );
- _bitsbox = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Bits" ), _hbox );
- connect( _bitsbox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( bitschanged( int ) ) );
+ _bitsbox = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Bits" ), _hbox );
+ connect( _bitsbox, TQ_SIGNAL( clicked( int ) ), this, TQ_SLOT( bitschanged( int ) ) );
_bits16 = new TQRadioButton( i18n( "16 bit" ), _bitsbox );
_bits8 = new TQRadioButton( i18n( "8 bit" ), _bitsbox );
_usedefaults = new TQCheckBox( i18n( "Use defaults for creating new files" ), this );
- connect( _usedefaults, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( usedefaultschanged( bool ) ) );
+ connect( _usedefaults, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( usedefaultschanged( bool ) ) );
setSpacing( 5 );
diff --git a/krec/krecconfig_fileswidget.h b/krec/krecconfig_fileswidget.h
index f7efa878..d40cd1d3 100644
--- a/krec/krecconfig_fileswidget.h
+++ b/krec/krecconfig_fileswidget.h
@@ -28,7 +28,7 @@ class TQLineEdit;
class TQLabel;
class KRecConfigFilesWidget : public TQVBox {
- Q_OBJECT
+ TQ_OBJECT
public:
KRecConfigFilesWidget( TQWidget*, const char* =0 );
diff --git a/krec/krecconfigure.cpp b/krec/krecconfigure.cpp
index 5063c461..34c8d0cf 100644
--- a/krec/krecconfigure.cpp
+++ b/krec/krecconfigure.cpp
@@ -53,16 +53,16 @@ KRecConfigGeneral::KRecConfigGeneral( TQWidget* p, const char*, const TQStringLi
_layout_display = new TQBoxLayout( _layout, TQBoxLayout::LeftToRight );
_layout->setStretchFactor( _layout_display, -100 );
- _displaybox = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Timedisplay Style" ), this );
+ _displaybox = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Timedisplay Style" ), this );
_layout_display->addWidget( _displaybox, 100 );
- connect( _displaybox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( displaychanged( int ) ) );
+ connect( _displaybox, TQ_SIGNAL( clicked( int ) ), this, TQ_SLOT( displaychanged( int ) ) );
_display0 = new TQRadioButton( i18n( "Plain samples" ), _displaybox );
_display1 = new TQRadioButton( i18n( "[hours:]mins:secs:samples" ), _displaybox );
_display2 = new TQRadioButton( i18n( "[hours:]mins:secs:frames" ), _displaybox );
_display3 = new TQRadioButton( i18n( "MByte.KByte" ), _displaybox );
- _framebasebox = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Framebase" ), this );
+ _framebasebox = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Framebase" ), this );
_layout_display->addWidget( _framebasebox, 100 );
- connect( _framebasebox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( framebasechanged( int ) ) );
+ connect( _framebasebox, TQ_SIGNAL( clicked( int ) ), this, TQ_SLOT( framebasechanged( int ) ) );
_framebase30 = new TQRadioButton( i18n( "30 frames per second (American TV)" ), _framebasebox );
_framebase25 = new TQRadioButton( i18n( "25 frames per second (European TV)" ), _framebasebox );
_framebase75 = new TQRadioButton( i18n( "75 frames per second (CD)" ), _framebasebox );
@@ -73,11 +73,11 @@ KRecConfigGeneral::KRecConfigGeneral( TQWidget* p, const char*, const TQStringLi
_framebaseotherline = new TQLineEdit( _framebaseotherbox );
_framebaseotherline->setMaxLength( 10 );
_framebaseotherbox->setEnabled( false );
- connect( _framebaseotherline, TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( framebaseotherchanged( const TQString& ) ) );
+ connect( _framebaseotherline, TQ_SIGNAL( textChanged( const TQString& ) ), this, TQ_SLOT( framebaseotherchanged( const TQString& ) ) );
_layout->addSpacing( 5 );
_verboseDisplayMode = new TQCheckBox( i18n( "Show verbose times ( XXmins:XXsecs:XXframes instead of XX:XX::XX )" ), this );
- connect( _verboseDisplayMode, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( verboseDisplayChanged( bool ) ) );
+ connect( _verboseDisplayMode, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( verboseDisplayChanged( bool ) ) );
_layout->addWidget( _verboseDisplayMode );
_layout->addSpacing( 10 );
@@ -85,11 +85,11 @@ KRecConfigGeneral::KRecConfigGeneral( TQWidget* p, const char*, const TQStringLi
_layout->addWidget( _other_title );
_tipofday = new TQCheckBox( i18n( "Show tip of the day at startup" ), this );
- connect( _tipofday, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( tipofdaychanged( bool ) ) );
+ connect( _tipofday, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( tipofdaychanged( bool ) ) );
_layout->addWidget( _tipofday );
TQBoxLayout* _tmplayout = new TQBoxLayout( this, TQBoxLayout::LeftToRight );
_enableAllMessages = new KPushButton( i18n( "Enable All Hidden Messages" ), this );
- connect( _enableAllMessages, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableallmessagesclicked() ) );
+ connect( _enableAllMessages, TQ_SIGNAL( clicked() ), this, TQ_SLOT( enableallmessagesclicked() ) );
_tmplayout->addWidget( _enableAllMessages );
TQLabel* _tmplbl = new TQLabel( i18n( "<qt><i>All messages with the \"Don't show this message again\" option are shown again after selecting this button.</i></qt>" ), this );
_tmplayout->addWidget( _tmplbl );
diff --git a/krec/krecconfigure.h b/krec/krecconfigure.h
index ee80efd0..51774fc5 100644
--- a/krec/krecconfigure.h
+++ b/krec/krecconfigure.h
@@ -28,7 +28,7 @@ class TQCheckBox;
class KPushButton;
class KRecConfigGeneral : public TDECModule {
- Q_OBJECT
+ TQ_OBJECT
public:
KRecConfigGeneral( TQWidget*, const char* =0, const TQStringList& = TQStringList() );
diff --git a/krec/krecexport_template.cpp b/krec/krecexport_template.cpp
index 05a19d2b..2a76cf2a 100644
--- a/krec/krecexport_template.cpp
+++ b/krec/krecexport_template.cpp
@@ -57,7 +57,7 @@ kdDebug( 60005 ) << k_funcinfo << endl;
if ( !running() ) {
if ( process() ) {
_running = true;
- TQTimer::singleShot( 0, this, TQT_SLOT( process() ) );
+ TQTimer::singleShot( 0, this, TQ_SLOT( process() ) );
emit running( running() );
}
return true;
diff --git a/krec/krecexport_template.h b/krec/krecexport_template.h
index ea40357e..5eb64031 100644
--- a/krec/krecexport_template.h
+++ b/krec/krecexport_template.h
@@ -30,7 +30,7 @@
* @author Arnold Krille <arnold@arnoldarts.de>
*/
class KRecExportItem : public TQObject {
- Q_OBJECT
+ TQ_OBJECT
private:
/// Controls wether an export is running, or not...
diff --git a/krec/krecexport_wave.cpp b/krec/krecexport_wave.cpp
index 6de79d3d..c7f3e18a 100644
--- a/krec/krecexport_wave.cpp
+++ b/krec/krecexport_wave.cpp
@@ -69,7 +69,7 @@ bool KRecExport_Wave::process() {
TQByteArray bytearray( 4096 );
emit getData( bytearray );
_file->writeBlock( bytearray );
- TQTimer::singleShot( 10, this, TQT_SLOT( process() ) );
+ TQTimer::singleShot( 10, this, TQ_SLOT( process() ) );
}
return true;
} else return false;
diff --git a/krec/krecexport_wave.h b/krec/krecexport_wave.h
index cb6a8319..9322211c 100644
--- a/krec/krecexport_wave.h
+++ b/krec/krecexport_wave.h
@@ -20,7 +20,7 @@ class KTempFile;
class TQFile;
class KRecExport_Wave : public KRecExportItem {
- Q_OBJECT
+ TQ_OBJECT
public:
KRecExport_Wave( TQObject*, const char* =0, const TQStringList& =0 );
diff --git a/krec/krecfile.cpp b/krec/krecfile.cpp
index 864b4c43..24053d45 100644
--- a/krec/krecfile.cpp
+++ b/krec/krecfile.cpp
@@ -258,9 +258,9 @@ void KRecFile::newBuffer( const TQString &filename ) {
}
void KRecFile::newBuffer( KRecBuffer* buffer ) {
kdDebug( 60005 ) << k_funcinfo << endl;
- connect( buffer, TQT_SIGNAL( posChanged( KRecBuffer*, TQIODevice::Offset ) ), this, TQT_SLOT( newPos( KRecBuffer*, TQIODevice::Offset ) ) );
- connect( buffer, TQT_SIGNAL( sizeChanged( KRecBuffer*, TQIODevice::Offset ) ), this, TQT_SLOT( newSize( KRecBuffer*, TQIODevice::Offset ) ) );
- connect( buffer, TQT_SIGNAL( deleteSelf( KRecBuffer* ) ), this, TQT_SLOT( deleteBuffer( KRecBuffer* ) ) );
+ connect( buffer, TQ_SIGNAL( posChanged( KRecBuffer*, TQIODevice::Offset ) ), this, TQ_SLOT( newPos( KRecBuffer*, TQIODevice::Offset ) ) );
+ connect( buffer, TQ_SIGNAL( sizeChanged( KRecBuffer*, TQIODevice::Offset ) ), this, TQ_SLOT( newSize( KRecBuffer*, TQIODevice::Offset ) ) );
+ connect( buffer, TQ_SIGNAL( deleteSelf( KRecBuffer* ) ), this, TQ_SLOT( deleteBuffer( KRecBuffer* ) ) );
_buffers.append( buffer );
newSize( buffer, buffer->size() );
_currentBuffer = _buffers.findIndex( buffer );
diff --git a/krec/krecfile.h b/krec/krecfile.h
index ada2fa0d..86c29c77 100644
--- a/krec/krecfile.h
+++ b/krec/krecfile.h
@@ -27,7 +27,7 @@ class TQFile;
class KRecFileViewWidget;
class KRecFile : virtual public TQObject {
- Q_OBJECT
+ TQ_OBJECT
friend class KRecFileWidget;
public:
@@ -125,7 +125,7 @@ class TDEConfig;
class TQDataStream;
class KRecBuffer : virtual public TQObject {
- Q_OBJECT
+ TQ_OBJECT
public:
KRecBuffer( const TQString &, int, bool, KRecFile*, const char* =0 );
diff --git a/krec/krecfileview.cpp b/krec/krecfileview.cpp
index bdf62adb..5c9f4c06 100644
--- a/krec/krecfileview.cpp
+++ b/krec/krecfileview.cpp
@@ -57,15 +57,15 @@ kdDebug( 60005 ) << k_funcinfo << file << endl;
if ( _file ) {
if ( !_file->filename().isNull() ) setFilename( _file->filename() );
else _filename->setText( i18n( "file with no name" ) );
- connect( _file, TQT_SIGNAL( posChanged( int ) ), this, TQT_SLOT( setPos( int ) ) );
- connect( _file, TQT_SIGNAL( posChanged( int ) ), _timebar, TQT_SLOT( newPos( int ) ) );
- connect( _file, TQT_SIGNAL( posChanged( int ) ), _timedisplay, TQT_SLOT( newPos( int ) ) );
- connect( _file, TQT_SIGNAL( sizeChanged( int ) ), this, TQT_SLOT( setSize( int ) ) );
- connect( _file, TQT_SIGNAL( sizeChanged( int ) ), _timebar, TQT_SLOT( newSize( int ) ) );
- connect( _file, TQT_SIGNAL( sizeChanged( int ) ), _timedisplay, TQT_SLOT( newSize( int ) ) );
- connect( _file, TQT_SIGNAL( filenameChanged( const TQString &) ), this, TQT_SLOT( setFilename( const TQString &) ) );
- connect( _file, TQT_SIGNAL( filenameChanged( const TQString &) ), _timedisplay, TQT_SLOT( newFilename( const TQString &) ) );
- connect( _timebar, TQT_SIGNAL( sNewPos( int ) ), _file, TQT_SLOT( newPos( int ) ) );
+ connect( _file, TQ_SIGNAL( posChanged( int ) ), this, TQ_SLOT( setPos( int ) ) );
+ connect( _file, TQ_SIGNAL( posChanged( int ) ), _timebar, TQ_SLOT( newPos( int ) ) );
+ connect( _file, TQ_SIGNAL( posChanged( int ) ), _timedisplay, TQ_SLOT( newPos( int ) ) );
+ connect( _file, TQ_SIGNAL( sizeChanged( int ) ), this, TQ_SLOT( setSize( int ) ) );
+ connect( _file, TQ_SIGNAL( sizeChanged( int ) ), _timebar, TQ_SLOT( newSize( int ) ) );
+ connect( _file, TQ_SIGNAL( sizeChanged( int ) ), _timedisplay, TQ_SLOT( newSize( int ) ) );
+ connect( _file, TQ_SIGNAL( filenameChanged( const TQString &) ), this, TQ_SLOT( setFilename( const TQString &) ) );
+ connect( _file, TQ_SIGNAL( filenameChanged( const TQString &) ), _timedisplay, TQ_SLOT( newFilename( const TQString &) ) );
+ connect( _timebar, TQ_SIGNAL( sNewPos( int ) ), _file, TQ_SLOT( newPos( int ) ) );
_timebar->newPos( _file->position() );
_timebar->newSize( _file->size() );
_timedisplay->newSamplingRate( _file->samplerate() );
@@ -75,7 +75,7 @@ kdDebug( 60005 ) << k_funcinfo << file << endl;
_timedisplay->newPos( _file->position() );
_timedisplay->newSize( _file->size() );
} else {
- disconnect( this, TQT_SLOT( setPos( TQIODevice::Offset ) ) );
+ disconnect( this, TQ_SLOT( setPos( TQIODevice::Offset ) ) );
_filename->setText( i18n( "<no file>" ) );
_timedisplay->newFilename( TQString() );
}
diff --git a/krec/krecfileview.h b/krec/krecfileview.h
index d8e571a1..b4583467 100644
--- a/krec/krecfileview.h
+++ b/krec/krecfileview.h
@@ -28,7 +28,7 @@ class KRecTimeBar;
class KRecTimeDisplay;
class KRecFileView : virtual public TQWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
KRecFileView( TQWidget*, const char* =0 );
diff --git a/krec/krecfileviewhelpers.cpp b/krec/krecfileviewhelpers.cpp
index 2ca5b582..4757078f 100644
--- a/krec/krecfileviewhelpers.cpp
+++ b/krec/krecfileviewhelpers.cpp
@@ -80,9 +80,9 @@ KRecTimeDisplay::KRecTimeDisplay( TQWidget* p, const char* n )
, _samplingRate( 44100 ), _bits( 16 ), _channels( 2 )
{
_position = new AKLabel( this );
- connect( _position, TQT_SIGNAL( showContextMenu( const TQPoint & ) ), this, TQT_SLOT( timeContextMenu( const TQPoint &) ) );
+ connect( _position, TQ_SIGNAL( showContextMenu( const TQPoint & ) ), this, TQ_SLOT( timeContextMenu( const TQPoint &) ) );
_size = new AKLabel( this );
- connect( _size, TQT_SIGNAL( showContextMenu( const TQPoint &) ), this, TQT_SLOT( sizeContextMenu( const TQPoint &) ) );
+ connect( _size, TQ_SIGNAL( showContextMenu( const TQPoint &) ), this, TQ_SLOT( sizeContextMenu( const TQPoint &) ) );
_layout = new TQBoxLayout( this, TQBoxLayout::LeftToRight, 0, 2 );
_layout->addStretch( 100 );
@@ -262,7 +262,7 @@ TQString KRecTimeDisplay::sizeText( int m, int n ) {
}
void AKLabel::mousePressEvent( TQMouseEvent* qme ) {
- if ( qme->button() == Qt::RightButton )
+ if ( qme->button() == TQt::RightButton )
emit showContextMenu( qme->globalPos() );
}
diff --git a/krec/krecfileviewhelpers.h b/krec/krecfileviewhelpers.h
index 28fd6b12..8faf225e 100644
--- a/krec/krecfileviewhelpers.h
+++ b/krec/krecfileviewhelpers.h
@@ -26,7 +26,7 @@ class TQPopupMenu;
class TDEPopupMenu;
class KRecTimeBar : public TQFrame {
- Q_OBJECT
+ TQ_OBJECT
public:
KRecTimeBar( TQWidget*, const char* =0 );
@@ -56,7 +56,7 @@ private:
*/
class KRecTimeDisplay : public TQFrame {
- Q_OBJECT
+ TQ_OBJECT
public:
KRecTimeDisplay( TQWidget*, const char* =0 );
@@ -93,7 +93,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(); }
diff --git a/krec/krecfilewidgets.cpp b/krec/krecfilewidgets.cpp
index c0b778de..c626a961 100644
--- a/krec/krecfilewidgets.cpp
+++ b/krec/krecfilewidgets.cpp
@@ -64,8 +64,8 @@ kdDebug( 60005 ) << k_funcinfo << file << endl;
for ( TQValueList<KRecBuffer*>::iterator it = _file->_buffers.begin(); it != _file->_buffers.end(); ++it ) {
newBuffer( ( *it ) );
}
- 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* ) ) );
+ connect( _file, TQ_SIGNAL( sNewBuffer( KRecBuffer* ) ), this, TQ_SLOT( newBuffer( KRecBuffer* ) ) );
+ connect( _file, TQ_SIGNAL( sDeleteBuffer( KRecBuffer* ) ), this, TQ_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 ) ), TQT_TQOBJECT(this), TQT_SLOT( popupMenu( KRecBufferWidget*, TQPoint ) ) );
+ connect( tmp, TQ_SIGNAL( popupMenu( KRecBufferWidget*, TQPoint ) ), this, TQ_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 ) {
TDEPopupMenu tmp( this );
- TDEToggleAction* _activeaction = new TDEToggleAction( i18n( "Toggle Active/Disabled State" ), TDEShortcut(), TQT_TQOBJECT(this) );
+ TDEToggleAction* _activeaction = new TDEToggleAction( i18n( "Toggle Active/Disabled State" ), TDEShortcut(), this );
_activeaction->setChecked( bw->buffer()->active() );
- connect( _activeaction, TQT_SIGNAL( toggled( bool ) ), bw->buffer(), TQT_SLOT( setActive( bool ) ) );
- TDEAction* _removeaction = new TDEAction( i18n( "Remove This Part" ), "fileremove", TDEShortcut(), bw->buffer(), TQT_SLOT( deleteBuffer() ), TQT_TQOBJECT(this) );
- TDEAction* _changetitle = new TDEAction( i18n( "Change Title of This Part" ), TDEShortcut(), TQT_TQOBJECT(bw), TQT_SLOT( changeTitle() ), TQT_TQOBJECT(this) );
- TDEAction* _changecomment = new TDEAction( i18n( "Change Comment of This Part" ), TDEShortcut(), TQT_TQOBJECT(bw), TQT_SLOT( changeComment() ), TQT_TQOBJECT(this) );
+ connect( _activeaction, TQ_SIGNAL( toggled( bool ) ), bw->buffer(), TQ_SLOT( setActive( bool ) ) );
+ TDEAction* _removeaction = new TDEAction( i18n( "Remove This Part" ), "fileremove", TDEShortcut(), bw->buffer(), TQ_SLOT( deleteBuffer() ), this );
+ TDEAction* _changetitle = new TDEAction( i18n( "Change Title of This Part" ), TDEShortcut(), bw, TQ_SLOT( changeTitle() ), this );
+ TDEAction* _changecomment = new TDEAction( i18n( "Change Comment of This Part" ), TDEShortcut(), bw, TQ_SLOT( changeComment() ), 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() ), TQT_TQOBJECT(this), TQT_SLOT( update() ) );
+ connect( _buffer, TQ_SIGNAL( somethingChanged() ), this, TQ_SLOT( update() ) );
kdDebug( 60005 ) << k_funcinfo << endl;
}
KRecBufferWidget::~KRecBufferWidget() {
@@ -233,7 +233,7 @@ 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 ( qme->button() == Qt::RightButton )
+ if ( qme->button() == TQt::RightButton )
emit popupMenu( this, qme->globalPos() );
}
void KRecBufferWidget::mouseDoubleClickEvent( TQMouseEvent* qme ) {
diff --git a/krec/krecfilewidgets.h b/krec/krecfilewidgets.h
index 83489714..1c3f8329 100644
--- a/krec/krecfilewidgets.h
+++ b/krec/krecfilewidgets.h
@@ -36,7 +36,7 @@ class TDEAction;
class TDEToggleAction;
class KRecFileWidget : public TQFrame {
- Q_OBJECT
+ TQ_OBJECT
public:
KRecFileWidget( KRecFile*, TQWidget*, const char* =0 );
@@ -57,7 +57,7 @@ private:
};
class Sample : public TQObject {
- Q_OBJECT
+ TQ_OBJECT
public:
Sample() : _values( 0 ), _min( 0 ), _max( 0 ) {}
@@ -76,7 +76,7 @@ private:
};
class KRecBufferWidget : public TQFrame {
- Q_OBJECT
+ TQ_OBJECT
public:
KRecBufferWidget( KRecBuffer*, TQWidget*, const char* =0 );
diff --git a/krec/krecglobal.h b/krec/krecglobal.h
index 4a7e6a70..4cb57681 100644
--- a/krec/krecglobal.h
+++ b/krec/krecglobal.h
@@ -26,7 +26,7 @@ class KStatusBar;
class KRecExportItem;
class KRecGlobal : public TQObject {
- Q_OBJECT
+ TQ_OBJECT
private:
KRecGlobal( TQObject* =0, const char* =0 );
diff --git a/krec/krecnewproperties.cpp b/krec/krecnewproperties.cpp
index 8f5f7385..ecc9bf4c 100644
--- a/krec/krecnewproperties.cpp
+++ b/krec/krecnewproperties.cpp
@@ -57,16 +57,16 @@ kdDebug( 60005 ) << k_funcinfo << endl;
_layout->addWidget( captionlabel );
_filewidget = new KRecConfigFilesWidget( this );
- connect( _filewidget, TQT_SIGNAL( sRateChanged( int ) ), this, TQT_SLOT( ratechanged( int ) ) );
- connect( _filewidget, TQT_SIGNAL( sChannelsChanged( int ) ), this, TQT_SLOT( channelschanged( int ) ) );
- connect( _filewidget, TQT_SIGNAL( sBitsChanged( int ) ), this, TQT_SLOT( bitschanged( int ) ) );
- connect( _filewidget, TQT_SIGNAL( sUseDefaultsChanged( bool ) ), this, TQT_SLOT( usedefaultschanged( bool ) ) );
+ connect( _filewidget, TQ_SIGNAL( sRateChanged( int ) ), this, TQ_SLOT( ratechanged( int ) ) );
+ connect( _filewidget, TQ_SIGNAL( sChannelsChanged( int ) ), this, TQ_SLOT( channelschanged( int ) ) );
+ connect( _filewidget, TQ_SIGNAL( sBitsChanged( int ) ), this, TQ_SLOT( bitschanged( int ) ) );
+ connect( _filewidget, TQ_SIGNAL( sUseDefaultsChanged( bool ) ), this, TQ_SLOT( usedefaultschanged( bool ) ) );
TQWidget *_btnWidget = new TQWidget( this );
_layoutbuttons = new TQHBoxLayout( _btnWidget );
_layoutbuttons->addStretch( 100 );
_btnok = new KPushButton( KStdGuiItem::ok(), _btnWidget );
- connect( _btnok, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) );
+ connect( _btnok, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
_layoutbuttons->addWidget( _btnok, 0 );
_layout->addWidget( new KSeparator( KSeparator::HLine, this ) );
diff --git a/krec/krecnewproperties.h b/krec/krecnewproperties.h
index 59bf7f55..978af5dd 100644
--- a/krec/krecnewproperties.h
+++ b/krec/krecnewproperties.h
@@ -27,7 +27,7 @@ class TQVBox;
class KRecConfigFilesWidget;
class KRecNewProperties : public TQDialog {
- Q_OBJECT
+ TQ_OBJECT
public:
KRecNewProperties( TQWidget*, const char* =0 );
diff --git a/krec/krecord.cpp b/krec/krecord.cpp
index 324d1d01..d1f74f54 100644
--- a/krec/krecord.cpp
+++ b/krec/krecord.cpp
@@ -107,8 +107,8 @@ void KRecPrivate::openFile() {
}
void KRecPrivate::pNewFile( KRecFile* file ) {
_currentFile = file;
- connect( m_recStream, TQT_SIGNAL( data( TQByteArray& ) ), _currentFile, TQT_SLOT( writeData( TQByteArray& ) ) );
- connect( m_playStream, TQT_SIGNAL( requestData( TQByteArray& ) ), _currentFile, TQT_SLOT( getData( TQByteArray& ) ) );
+ connect( m_recStream, TQ_SIGNAL( data( TQByteArray& ) ), _currentFile, TQ_SLOT( writeData( TQByteArray& ) ) );
+ connect( m_playStream, TQ_SIGNAL( requestData( TQByteArray& ) ), _currentFile, TQ_SLOT( getData( TQByteArray& ) ) );
mainwidget->_fileview->setFile( _currentFile );
checkActions();
}
@@ -162,9 +162,9 @@ void KRecPrivate::exportFile() {
if ( _exportitem ) {
_exportitem->initialize( _currentFile->samplerate(), _currentFile->bits(), _currentFile->channels() );
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() ), TQT_TQOBJECT(this), TQT_SLOT( endExportFile() ) );
+ connect( _exportitem, TQ_SIGNAL( getData( TQByteArray& ) ), _currentFile, TQ_SLOT( getData( TQByteArray& ) ) );
+ connect( _currentFile, TQ_SIGNAL( endReached() ), _exportitem, TQ_SLOT( stop() ) );
+ connect( _currentFile, TQ_SIGNAL( endReached() ), this, TQ_SLOT( endExportFile() ) );
_exportitem->start();
}
} else
@@ -185,7 +185,7 @@ void KRecPrivate::exportFile() {
} else KRecGlobal::the()->message( i18n( "There is nothing to export." ) );
checkActions();
}
-void KRecPrivate::endExportFile() { TQTimer::singleShot( 20, TQT_TQOBJECT(this), TQT_SLOT( endExportFile2() ) ); }
+void KRecPrivate::endExportFile() { TQTimer::singleShot( 20, this, TQ_SLOT( endExportFile2() ) ); }
void KRecPrivate::endExportFile2() {
_exportitem->finalize();
disconnect( _currentFile, 0, _exportitem, 0 );
@@ -283,40 +283,40 @@ KRecord::KRecord(TQWidget *parent, const char *name )
// * * * Actions * * *
d->artsactions = new ArtsActions( d->server, actionCollection(), this );
- KStdAction::preferences( d, TQT_SLOT( showConfDialog() ), actionCollection() );
+ KStdAction::preferences( d, TQ_SLOT( showConfDialog() ), actionCollection() );
- KStdAction::openNew( d, TQT_SLOT( newFile() ), actionCollection() );
- KStdAction::open( d, TQT_SLOT( openFile() ), actionCollection() );
- KStdAction::save( d, TQT_SLOT( saveFile() ), actionCollection() );
- KStdAction::saveAs( d, TQT_SLOT( saveAsFile() ), actionCollection() );
- KStdAction::close( d, TQT_SLOT( closeFile() ), actionCollection() );
- KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT( close() ), actionCollection() );
+ KStdAction::openNew( d, TQ_SLOT( newFile() ), actionCollection() );
+ KStdAction::open( d, TQ_SLOT( openFile() ), actionCollection() );
+ KStdAction::save( d, TQ_SLOT( saveFile() ), actionCollection() );
+ KStdAction::saveAs( d, TQ_SLOT( saveAsFile() ), actionCollection() );
+ KStdAction::close( d, TQ_SLOT( closeFile() ), actionCollection() );
+ KStdAction::quit( this, TQ_SLOT( close() ), actionCollection() );
- KStdAction::tipOfDay( d, TQT_SLOT( forceTipOfDay() ), actionCollection() );
+ KStdAction::tipOfDay( d, TQ_SLOT( forceTipOfDay() ), actionCollection() );
d->aExportFile = new TDEAction( i18n( "Export..." ), TDEShortcut(),
- d, TQT_SLOT( exportFile() ), actionCollection(), "export_file" );
+ d, TQ_SLOT( exportFile() ), actionCollection(), "export_file" );
d->aRecord = new TDEAction( i18n( "&Record" ), TDEShortcut( Key_R ),
- TQT_TQOBJECT(this), TQT_SLOT( startRec() ), actionCollection(), "player_record" );
+ this, TQ_SLOT( startRec() ), actionCollection(), "player_record" );
d->aPlay = new TDEAction( i18n( "&Play" ), TDEShortcut( Key_P ),
- TQT_TQOBJECT(this), TQT_SLOT( startPlay() ), actionCollection(), "media-playback-start" );
+ this, TQ_SLOT( startPlay() ), actionCollection(), "media-playback-start" );
d->aStop = new TDEAction( i18n( "&Stop" ), TDEShortcut( Key_S ),
- TQT_TQOBJECT(this), TQT_SLOT( stopRec() ), actionCollection(), "media-playback-stop" );
+ this, TQ_SLOT( stopRec() ), actionCollection(), "media-playback-stop" );
d->aThru = new TDEToggleAction( i18n( "Play Through" ), TDEShortcut( CTRL + Key_P), actionCollection(), "play_thru" );
- connect( d->aThru, TQT_SIGNAL( toggled( bool ) ), d, TQT_SLOT( playthru( bool ) ) );
+ connect( d->aThru, TQ_SIGNAL( toggled( bool ) ), d, TQ_SLOT( playthru( bool ) ) );
d->aBegin = new TDEAction( i18n( "Go to &Beginning" ), TDEShortcut( SHIFT + Key_Left ),
- d, TQT_SLOT( toBegin() ), actionCollection(), "player_gobegin" );
+ d, TQ_SLOT( toBegin() ), actionCollection(), "player_gobegin" );
d->aEnd = new TDEAction( i18n( "Go to &End" ), TDEShortcut( SHIFT + Key_Right ),
- d, TQT_SLOT( toEnd() ), actionCollection(), "player_goend" );
+ d, TQ_SLOT( toEnd() ), actionCollection(), "player_goend" );
( void* ) d->artsactions->actionAudioManager();
d->aExecaRtsControl = new TDEAction( i18n( "Start aRts Control Tool" ), TDEShortcut(),
- d, TQT_SLOT( execaRtsControl() ), actionCollection(), "exec_artscontrol" );
+ d, TQ_SLOT( execaRtsControl() ), actionCollection(), "exec_artscontrol" );
d->aExecKMix = new TDEAction( i18n( "Start KMix" ), TDEShortcut(),
- d, TQT_SLOT( execKMix() ), actionCollection(), "exec_kmix" );
+ d, TQ_SLOT( execKMix() ), actionCollection(), "exec_kmix" );
// * * * GUI * * *
// TODO Fix toolbar config so this line can just be setupGUI()
diff --git a/krec/krecord.h b/krec/krecord.h
index 450a9116..73628926 100644
--- a/krec/krecord.h
+++ b/krec/krecord.h
@@ -30,7 +30,7 @@ class KRecPrivate;
*/
class KRecord : public TDEMainWindow {
- Q_OBJECT
+ TQ_OBJECT
public:
/// Constructor
diff --git a/krec/krecord_private.h b/krec/krecord_private.h
index 4c04833d..3be786c3 100644
--- a/krec/krecord_private.h
+++ b/krec/krecord_private.h
@@ -44,7 +44,7 @@ class TDERecentFilesAction;
namespace KSettings { class Dialog; }
class KRecPrivate : public TQObject {
- Q_OBJECT
+ TQ_OBJECT
public:
/// Constructor
@@ -129,7 +129,7 @@ public:
};
class KRecMainWidget : public TQWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
KRecMainWidget( TQWidget* p, const char* n=0 ) : TQWidget( p,n ) {
diff --git a/krec/mp3_export/krecexport_mp3.cpp b/krec/mp3_export/krecexport_mp3.cpp
index d337dafc..a40c5b1f 100644
--- a/krec/mp3_export/krecexport_mp3.cpp
+++ b/krec/mp3_export/krecexport_mp3.cpp
@@ -128,7 +128,7 @@ bool KRecExport_MP3::process() {
i18n( lame_error[ code ] ) );
error_occurred = true;
}
- TQTimer::singleShot( 10, this, TQT_SLOT( process() ) );
+ TQTimer::singleShot( 10, this, TQ_SLOT( process() ) );
}
return true;
} else return false;
diff --git a/krec/mp3_export/krecexport_mp3.h b/krec/mp3_export/krecexport_mp3.h
index 22ccf8f4..3ba4eb14 100644
--- a/krec/mp3_export/krecexport_mp3.h
+++ b/krec/mp3_export/krecexport_mp3.h
@@ -22,7 +22,7 @@ class KTempFile;
class TQFile;
class KRecExport_MP3 : public KRecExportItem {
- Q_OBJECT
+ TQ_OBJECT
public:
KRecExport_MP3( TQObject*, const char* =0, const TQStringList& =0 );
diff --git a/krec/ogg_export/krecexport_ogg.cpp b/krec/ogg_export/krecexport_ogg.cpp
index 2841c64b..5c957577 100644
--- a/krec/ogg_export/krecexport_ogg.cpp
+++ b/krec/ogg_export/krecexport_ogg.cpp
@@ -169,7 +169,7 @@ bool KRecExport_OGG::process() {
}
}
}
- TQTimer::singleShot( 10, this, TQT_SLOT( process() ) );
+ TQTimer::singleShot( 10, this, TQ_SLOT( process() ) );
}
return true;
} else return false;
diff --git a/krec/ogg_export/krecexport_ogg.h b/krec/ogg_export/krecexport_ogg.h
index 53acda99..08437d19 100644
--- a/krec/ogg_export/krecexport_ogg.h
+++ b/krec/ogg_export/krecexport_ogg.h
@@ -26,7 +26,7 @@ class KTempFile;
class TQFile;
class KRecExport_OGG : public KRecExportItem {
- Q_OBJECT
+ TQ_OBJECT
public:
KRecExport_OGG( TQObject*, const char* =0, const TQStringList& =0 );
diff --git a/kscd/bwlednum.h b/kscd/bwlednum.h
index 3b37ac38..194c5823 100644
--- a/kscd/bwlednum.h
+++ b/kscd/bwlednum.h
@@ -19,7 +19,7 @@
class BW_LED_Number : public TQFrame
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kscd/cddbdlg.cpp b/kscd/cddbdlg.cpp
index 40a17cbf..9fc6cbac 100644
--- a/kscd/cddbdlg.cpp
+++ b/kscd/cddbdlg.cpp
@@ -46,15 +46,15 @@ CDDBDlg::CDDBDlg( TQWidget* parent, const char* name )
setButtonText( User1, i18n( "Upload" ) );
setButtonText( User2, i18n( "Fetch Info" ) );
- connect( this, TQT_SIGNAL( okClicked() ), TQT_SLOT( save() ) );
- connect( this, TQT_SIGNAL( user1Clicked() ), TQT_SLOT( upload() ) );
- connect( this, TQT_SIGNAL( user2Clicked() ), TQT_SIGNAL( cddbQuery() ) );
- connect( m_dlgBase, TQT_SIGNAL( play( int ) ), TQT_SIGNAL( play( int ) ) );
+ connect( this, TQ_SIGNAL( okClicked() ), TQ_SLOT( save() ) );
+ connect( this, TQ_SIGNAL( user1Clicked() ), TQ_SLOT( upload() ) );
+ connect( this, TQ_SIGNAL( user2Clicked() ), TQ_SIGNAL( cddbQuery() ) );
+ connect( m_dlgBase, TQ_SIGNAL( play( int ) ), TQ_SIGNAL( play( int ) ) );
cddbClient = new KCDDB::Client();
cddbClient->setBlockingMode(false);
- connect (cddbClient, TQT_SIGNAL(finished(CDDB::Result)),
- TQT_SLOT(submitFinished(CDDB::Result)));
+ connect (cddbClient, TQ_SIGNAL(finished(CDDB::Result)),
+ TQ_SLOT(submitFinished(CDDB::Result)));
}
diff --git a/kscd/cddbdlg.h b/kscd/cddbdlg.h
index b111fc27..8df7da01 100644
--- a/kscd/cddbdlg.h
+++ b/kscd/cddbdlg.h
@@ -11,7 +11,7 @@ class CDInfoDialogBase;
class CDDBDlg : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kscd/configWidget.h b/kscd/configWidget.h
index 315508b0..8bec1002 100644
--- a/kscd/configWidget.h
+++ b/kscd/configWidget.h
@@ -30,7 +30,7 @@ class SpecialComboBox;
class configWidget : public configWidgetUI
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kscd/configWidgetUI.ui b/kscd/configWidgetUI.ui
index 8acca09f..14f4435b 100644
--- a/kscd/configWidgetUI.ui
+++ b/kscd/configWidgetUI.ui
@@ -445,20 +445,18 @@
<tabstop>kcfg_DigitalPlayback</tabstop>
<tabstop>kcfg_AudioDevice</tabstop>
</tabstops>
-<Q_SLOTS>
+<slots>
<slot>kcfg_DigitalPlayback_toggled( bool )</slot>
<slot>kcfg_SelectEncoding_toggled(bool)</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in implementation">kcolorbutton.h</include>
+ <include location="global" impldecl="in implementation">kcombobox.h</include>
+ <include location="global" impldecl="in implementation">klineedit.h</include>
<include location="global" impldecl="in implementation">knuminput.h</include>
+ <include location="global" impldecl="in implementation">kpushbutton.h</include>
<include location="global" impldecl="in implementation">kurlrequester.h</include>
<include location="global" impldecl="in implementation">tdefontrequester.h</include>
</includes>
-<includehints>
- <includehint>kcombobox.h</includehint>
- <includehint>kpushbutton.h</includehint>
- <includehint>klineedit.h</includehint>
-</includehints>
</UI>
diff --git a/kscd/docking.cpp b/kscd/docking.cpp
index e6689b8d..3a45e71a 100644
--- a/kscd/docking.cpp
+++ b/kscd/docking.cpp
@@ -53,11 +53,11 @@ DockWidget::DockWidget( KSCD* parent, const char *name)
// popup menu for right mouse button
TQPopupMenu* popup = contextMenu();
- popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("media-playback-start", TDEIcon::Small), i18n("Play/Pause"), parent, TQT_SLOT(playClicked()));
- popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("media-playback-stop", TDEIcon::Small), i18n("Stop"), parent, TQT_SLOT(stopClicked()));
- popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("media-skip-forward", TDEIcon::Small), i18n("Next"), parent, TQT_SLOT(nextClicked()));
- popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("media-skip-backward", TDEIcon::Small), i18n("Previous"), parent, TQT_SLOT(prevClicked()));
- popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("player_eject", TDEIcon::Small), i18n("Eject"), parent, TQT_SLOT(ejectClicked()));
+ popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("media-playback-start", TDEIcon::Small), i18n("Play/Pause"), parent, TQ_SLOT(playClicked()));
+ popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("media-playback-stop", TDEIcon::Small), i18n("Stop"), parent, TQ_SLOT(stopClicked()));
+ popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("media-skip-forward", TDEIcon::Small), i18n("Next"), parent, TQ_SLOT(nextClicked()));
+ popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("media-skip-backward", TDEIcon::Small), i18n("Previous"), parent, TQ_SLOT(prevClicked()));
+ popup->insertItem(TDEGlobal::iconLoader()->loadIconSet("player_eject", TDEIcon::Small), i18n("Eject"), parent, TQ_SLOT(ejectClicked()));
TQToolTip::add(this, kapp->aboutData()->programName());
}
@@ -80,7 +80,7 @@ void DockWidget::createPopup(const TQString &songName, bool addButtons)
{
TQPushButton* backButton = new TQPushButton(m_backPix, 0, box, "popup_back");
backButton->setFlat(true);
- connect(backButton, TQT_SIGNAL(clicked()), m_backAction, TQT_SLOT(activate()));
+ connect(backButton, TQ_SIGNAL(clicked()), m_backAction, TQ_SLOT(activate()));
}
TQLabel* l = new TQLabel(songName, box);
@@ -90,7 +90,7 @@ void DockWidget::createPopup(const TQString &songName, bool addButtons)
{
TQPushButton* forwardButton = new TQPushButton(m_forwardPix, 0, box, "popup_forward");
forwardButton->setFlat(true);
- connect(forwardButton, TQT_SIGNAL(clicked()), m_forwardAction, TQT_SLOT(activate()));
+ connect(forwardButton, TQ_SIGNAL(clicked()), m_forwardAction, TQ_SLOT(activate()));
}
m_popup->setView(box);
@@ -120,7 +120,7 @@ void DockWidget::setToolTip(const TQString& text)
void DockWidget::wheelEvent(TQWheelEvent *e)
{
- if (e->orientation() ==Qt::Horizontal)
+ if (e->orientation() ==TQt::Horizontal)
return;
KSCD* kscd = dynamic_cast<KSCD*>(parent());
diff --git a/kscd/docking.h b/kscd/docking.h
index b4f84b1c..481bbca7 100644
--- a/kscd/docking.h
+++ b/kscd/docking.h
@@ -45,7 +45,7 @@ class KPassivePopup;
class DockWidget : public KSystemTray
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kscd/kcompactdisc.cpp b/kscd/kcompactdisc.cpp
index e17fdaa7..5ae482d2 100644
--- a/kscd/kcompactdisc.cpp
+++ b/kscd/kcompactdisc.cpp
@@ -109,7 +109,7 @@ TDECompactDisc::TDECompactDisc(InformationMode infoMode) :
m_trackArtists.clear();
m_trackTitles.clear();
m_trackStartFrames.clear();
- connect(&timer, TQT_SIGNAL(timeout()), TQT_SLOT(timerExpired()));
+ connect(&timer, TQ_SIGNAL(timeout()), TQ_SLOT(timerExpired()));
}
TDECompactDisc::~TDECompactDisc()
diff --git a/kscd/kcompactdisc.h b/kscd/kcompactdisc.h
index 2e6830ca..e58aa7c7 100644
--- a/kscd/kcompactdisc.h
+++ b/kscd/kcompactdisc.h
@@ -46,7 +46,7 @@
class TDECompactDisc :
public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
enum InformationMode
diff --git a/kscd/kscd.cpp b/kscd/kscd.cpp
index 73eb0ed4..3a8599c4 100644
--- a/kscd/kscd.cpp
+++ b/kscd/kscd.cpp
@@ -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)), TQT_TQOBJECT(this), TQT_SLOT(lookupCDDBDone(CDDB::Result)));
+ connect(cddb, TQ_SIGNAL(finished(CDDB::Result)), this, TQ_SLOT(lookupCDDBDone(CDDB::Result)));
#if defined(BUILD_CDDA)
audio_systems_list
@@ -124,10 +124,10 @@ KSCD::KSCD( TQWidget *parent, const char *name )
// the time slider
timeIcon->setPixmap(SmallIcon("player_time"));
- connect(timeSlider, TQT_SIGNAL(sliderPressed()), TQT_SLOT(timeSliderPressed()));
- connect(timeSlider, TQT_SIGNAL(sliderReleased()), TQT_SLOT(timeSliderReleased()));
- connect(timeSlider, TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(timeSliderMoved(int)));
- connect(timeSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(jumpToTime(int)));
+ connect(timeSlider, TQ_SIGNAL(sliderPressed()), TQ_SLOT(timeSliderPressed()));
+ connect(timeSlider, TQ_SIGNAL(sliderReleased()), TQ_SLOT(timeSliderReleased()));
+ connect(timeSlider, TQ_SIGNAL(sliderMoved(int)), TQ_SLOT(timeSliderMoved(int)));
+ connect(timeSlider, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(jumpToTime(int)));
// the volume slider
volumeIcon->setPixmap(SmallIcon("player_volume"));
@@ -135,33 +135,33 @@ KSCD::KSCD( TQWidget *parent, const char *name )
TQString str;
str = TQString::fromUtf8( TQCString().sprintf(i18n("Vol: %02d%%").utf8(), Prefs::volume()) );
volumelabel->setText(str);
- connect(volumeSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(volChanged(int)));
+ connect(volumeSlider, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(volChanged(int)));
/* FIXME check for return value */
setDevicePaths(/*Prefs::cdDevice(), Prefs::audioSystem(), Prefs::audioDevice()*/);
- 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()) );
- connect( &jumpTrackTimer, TQT_SIGNAL(timeout()), TQT_SLOT(jumpTracks()) );
+ connect(m_cd, TQ_SIGNAL(trackPlaying(unsigned, unsigned)), this, TQ_SLOT(trackUpdate(unsigned, unsigned)));
+ connect(m_cd, TQ_SIGNAL(trackPaused(unsigned, unsigned)), this, TQ_SLOT(trackUpdate(unsigned, unsigned)));
+ connect(m_cd, TQ_SIGNAL(trackChanged(unsigned, unsigned)), this, TQ_SLOT(trackChanged(unsigned, unsigned)));
+ connect(m_cd, TQ_SIGNAL(discStopped()), this, TQ_SLOT(discStopped()));
+ connect(m_cd, TQ_SIGNAL(discChanged(unsigned)), this, TQ_SLOT(discChanged(unsigned)));
+ connect( &queryledtimer, TQ_SIGNAL(timeout()), TQ_SLOT(togglequeryled()) );
+ connect( &titlelabeltimer, TQ_SIGNAL(timeout()), TQ_SLOT(titlelabeltimeout()) );
+ connect( &cycletimer, TQ_SIGNAL(timeout()), TQ_SLOT(cycletimeout()) );
+ connect( &jumpTrackTimer, TQ_SIGNAL(timeout()), TQ_SLOT(jumpTracks()) );
/*
these are always connected in base class
- connect( playPB, TQT_SIGNAL(clicked()), TQT_SLOT(playClicked()) );
- connect( nextPB, TQT_SIGNAL(clicked()), TQT_SLOT(nextClicked()) );
- connect( prevPB, TQT_SIGNAL(clicked()), TQT_SLOT(prevClicked()) );
- connect( stopPB, TQT_SIGNAL(clicked()), TQT_SLOT(stopClicked()) );
- connect( ejectPB, TQT_SIGNAL(clicked()), TQT_SLOT(ejectClicked()) );
+ connect( playPB, TQ_SIGNAL(clicked()), TQ_SLOT(playClicked()) );
+ connect( nextPB, TQ_SIGNAL(clicked()), TQ_SLOT(nextClicked()) );
+ connect( prevPB, TQ_SIGNAL(clicked()), TQ_SLOT(prevClicked()) );
+ connect( stopPB, TQ_SIGNAL(clicked()), TQ_SLOT(stopClicked()) );
+ connect( ejectPB, TQ_SIGNAL(clicked()), TQ_SLOT(ejectClicked()) );
*/
- connect( repeatPB, TQT_SIGNAL(clicked()), TQT_SLOT(loopClicked()) );
- 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(tdedisplayPaletteChanged()), TQT_TQOBJECT(this), TQT_SLOT(setColors()));
- connect(kapp, TQT_SIGNAL(iconChanged(int)), TQT_TQOBJECT(this), TQT_SLOT(setIcons()));
+ connect( repeatPB, TQ_SIGNAL(clicked()), TQ_SLOT(loopClicked()) );
+ connect( songListCB, TQ_SIGNAL(activated(int)), TQ_SLOT(trackSelected(int)));
+ connect( shufflePB, TQ_SIGNAL(clicked()), TQ_SLOT(randomSelected()));
+ connect( cddbPB, TQ_SIGNAL(clicked()), TQ_SLOT(CDDialogSelected()));
+ connect(kapp, TQ_SIGNAL(tdedisplayPaletteChanged()), this, TQ_SLOT(setColors()));
+ connect(kapp, TQ_SIGNAL(iconChanged(int)), this, TQ_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 TDEActionCollection(this);
TDEAction* action;
- action = new TDEAction(i18n("Play/Pause"), Key_P, TQT_TQOBJECT(this), TQT_SLOT(playClicked()), m_actions, "Play/Pause");
- action = new TDEAction(i18n("Stop"), Key_S, TQT_TQOBJECT(this), TQT_SLOT(stopClicked()), m_actions, "Stop");
- action = new TDEAction(i18n("Previous"), Key_B, TQT_TQOBJECT(this), TQT_SLOT(prevClicked()), m_actions, "Previous");
- action = new TDEAction(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 TDEAction(i18n("Loop"), Key_L, TQT_TQOBJECT(this), TQT_SLOT(loopClicked()), m_actions, "Loop");
- action = new TDEAction(i18n("Eject"), CTRL + Key_E, TQT_TQOBJECT(this), TQT_SLOT(ejectClicked()), m_actions, "Eject");
- action = new TDEAction(i18n("Increase Volume"), Key_Plus, TQT_TQOBJECT(this), TQT_SLOT(incVolume()), m_actions, "IncVolume");
+ action = new TDEAction(i18n("Play/Pause"), Key_P, this, TQ_SLOT(playClicked()), m_actions, "Play/Pause");
+ action = new TDEAction(i18n("Stop"), Key_S, this, TQ_SLOT(stopClicked()), m_actions, "Stop");
+ action = new TDEAction(i18n("Previous"), Key_B, this, TQ_SLOT(prevClicked()), m_actions, "Previous");
+ action = new TDEAction(i18n("Next"), Key_N, this, TQ_SLOT(nextClicked()), m_actions, "Next");
+ action = KStdAction::quit(this, TQ_SLOT(quitClicked()), m_actions);
+ action = KStdAction::keyBindings(this, TQ_SLOT(configureKeys()), m_actions, "options_configure_shortcuts");
+ action = KStdAction::keyBindings(this, TQ_SLOT(configureGlobalKeys()), m_actions, "options_configure_globals");
+ action = KStdAction::preferences(this, TQ_SLOT(showConfig()), m_actions);
+ action = new TDEAction(i18n("Loop"), Key_L, this, TQ_SLOT(loopClicked()), m_actions, "Loop");
+ action = new TDEAction(i18n("Eject"), CTRL + Key_E, this, TQ_SLOT(ejectClicked()), m_actions, "Eject");
+ action = new TDEAction(i18n("Increase Volume"), Key_Plus, this, TQ_SLOT(incVolume()), m_actions, "IncVolume");
TDEShortcut increaseVolume = action->shortcut();
increaseVolume.append( KKey( Key_Equal ) );
action->setShortcut( increaseVolume );
- action = new TDEAction(i18n("Decrease Volume"), Key_Minus, TQT_TQOBJECT(this), TQT_SLOT(decVolume()), m_actions, "DecVolume");
- action = new TDEAction(i18n("Options"), CTRL + Key_T, TQT_TQOBJECT(this), TQT_SLOT(showConfig()), m_actions, "Options");
- action = new TDEAction(i18n("Shuffle"), Key_R, TQT_TQOBJECT(this), TQT_SLOT(randomSelected()), m_actions, "Shuffle");
- action = new TDEAction(i18n("CDDB"), CTRL + Key_D, TQT_TQOBJECT(this), TQT_SLOT(CDDialogSelected()), m_actions, "CDDB");
+ action = new TDEAction(i18n("Decrease Volume"), Key_Minus, this, TQ_SLOT(decVolume()), m_actions, "DecVolume");
+ action = new TDEAction(i18n("Options"), CTRL + Key_T, this, TQ_SLOT(showConfig()), m_actions, "Options");
+ action = new TDEAction(i18n("Shuffle"), Key_R, this, TQ_SLOT(randomSelected()), m_actions, "Shuffle");
+ action = new TDEAction(i18n("CDDB"), CTRL + Key_D, this, TQ_SLOT(CDDialogSelected()), m_actions, "CDDB");
m_actions->readShortcutSettings("Shortcuts");
@@ -210,7 +210,7 @@ KSCD::KSCD( TQWidget *parent, const char *name )
setDocking(Prefs::docking());
- setFocusPolicy(TQ_NoFocus);
+ setFocusPolicy(TQWidget::NoFocus);
songListCB->setSizePolicy(TQSizePolicy::Ignored, TQSizePolicy::Fixed);
adjustSize();
@@ -227,25 +227,25 @@ KSCD::~KSCD()
void KSCD::initGlobalShortcuts() {
- m_globalAccel = new TDEGlobalAccel( TQT_TQOBJECT(this) );
+ m_globalAccel = new TDEGlobalAccel( 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"),
- TQT_TQOBJECT(this), TQT_SLOT(nextClicked()));
+ this, TQ_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"),
- TQT_TQOBJECT(this), TQT_SLOT(prevClicked()));
+ this, TQ_SLOT(prevClicked()));
m_globalAccel->insert("Play/Pause", i18n("Play/Pause"), 0, KKey("WIN+P"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(playClicked()));
+ this, TQ_SLOT(playClicked()));
m_globalAccel->insert("Stop", i18n("Stop"), 0, KKey("WIN+S"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(stopClicked()));
+ this, TQ_SLOT(stopClicked()));
m_globalAccel->insert("IncVolume", i18n("Increase Volume"), 0, KKey("WIN+Plus"), KKey("WIN+Up"),
- TQT_TQOBJECT(this), TQT_SLOT(incVolume()));
+ this, TQ_SLOT(incVolume()));
m_globalAccel->insert("DecVolume", i18n("Decrease Volume"), 0, KKey("WIN+Minus"), KKey("WIN+Down"),
- TQT_TQOBJECT(this), TQT_SLOT(decVolume()));
+ this, TQ_SLOT(decVolume()));
m_globalAccel->insert("Shuffle", i18n("Shuffle"), 0, KKey("WIN+R"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(incVolume()));
+ this, TQ_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()), TQT_TQOBJECT(this), TQT_SLOT(cycleplaytimemode()));
+ connect(trackTimeLED[u], TQ_SIGNAL(clicked()), this, TQ_SLOT(cycleplaytimemode()));
}
setLEDs(-1);
@@ -369,7 +369,7 @@ void KSCD::setupPopups()
mainPopup->insertItem(i18n("Artist Information"), infoPopup);
- connect( infoPopup, TQT_SIGNAL(activated(int)), TQT_SLOT(information(int)) );
+ connect( infoPopup, TQ_SIGNAL(activated(int)), TQ_SLOT(information(int)) );
KHelpMenu* helpMenu = new KHelpMenu(this, TDEGlobal::instance()->aboutData(), false);
mainPopup->insertItem(SmallIcon("help"),i18n("&Help"), helpMenu->menu());
@@ -756,16 +756,16 @@ void KSCD::showConfig()
cfg->readConfig();
configDialog -> addPage(m, cfg, TQString("CDDB"), "application-x-cda", i18n("Configure Fetching Items"));
- connect(configDialog, TQT_SIGNAL(okClicked()), m, TQT_SLOT(save()));
- connect(configDialog, TQT_SIGNAL(applyClicked()), m, TQT_SLOT(save()));
- connect(configDialog, TQT_SIGNAL(defaultClicked()), m, TQT_SLOT(defaults()));
+ connect(configDialog, TQ_SIGNAL(okClicked()), m, TQ_SLOT(save()));
+ connect(configDialog, TQ_SIGNAL(applyClicked()), m, TQ_SLOT(save()));
+ connect(configDialog, TQ_SIGNAL(defaultClicked()), m, TQ_SLOT(defaults()));
}
}
}
updateConfigDialog(confWidget);
- connect(configDialog, TQT_SIGNAL(settingsChanged()), TQT_TQOBJECT(this), TQT_SLOT(configDone()));
+ connect(configDialog, TQ_SIGNAL(settingsChanged()), this, TQ_SLOT(configDone()));
configDialog -> show();
} // showConfig()
@@ -814,14 +814,14 @@ void KSCD::setDocking(bool dock)
if (!m_dockWidget)
{
m_dockWidget = new DockWidget(this, "dockw");
- connect(m_dockWidget, TQT_SIGNAL(quitSelected()), TQT_TQOBJECT(this), TQT_SLOT(quitClicked()));
+ connect(m_dockWidget, TQ_SIGNAL(quitSelected()), this, TQ_SLOT(quitClicked()));
}
m_dockWidget->show();
- connect(this, TQT_SIGNAL(trackChanged(const TQString&)),
- m_dockWidget, TQT_SLOT(setToolTip(const TQString&)));
- connect(this, TQT_SIGNAL(trackChanged(const TQString&)),
- m_dockWidget, TQT_SLOT(createPopup(const TQString&)));
+ connect(this, TQ_SIGNAL(trackChanged(const TQString&)),
+ m_dockWidget, TQ_SLOT(setToolTip(const TQString&)));
+ connect(this, TQ_SIGNAL(trackChanged(const TQString&)),
+ m_dockWidget, TQ_SLOT(createPopup(const TQString&)));
}
else
{
@@ -1155,11 +1155,11 @@ void KSCD::CDDialogSelected()
cddialog = new CDDBDlg(this);
cddialog->setData(cddbInfo, m_cd->discSignature(), playlist);
- connect(cddialog,TQT_SIGNAL(cddbQuery()),TQT_SLOT(lookupCDDB()));
- connect(cddialog,TQT_SIGNAL(newCDInfoStored(KCDDB::CDInfo)),
- TQT_SLOT(setCDInfo(KCDDB::CDInfo)));
- connect(cddialog,TQT_SIGNAL(finished()),TQT_SLOT(CDDialogDone()));
- connect(cddialog,TQT_SIGNAL(play(int)),TQT_SLOT(trackSelected(int)));
+ connect(cddialog,TQ_SIGNAL(cddbQuery()),TQ_SLOT(lookupCDDB()));
+ connect(cddialog,TQ_SIGNAL(newCDInfoStored(KCDDB::CDInfo)),
+ TQ_SLOT(setCDInfo(KCDDB::CDInfo)));
+ connect(cddialog,TQ_SIGNAL(finished()),TQ_SLOT(CDDialogDone()));
+ connect(cddialog,TQ_SIGNAL(play(int)),TQ_SLOT(trackSelected(int)));
}
cddialog->show();
diff --git a/kscd/kscd.h b/kscd/kscd.h
index 3fa7be5a..376a436b 100644
--- a/kscd/kscd.h
+++ b/kscd/kscd.h
@@ -71,7 +71,7 @@ typedef TQValueList<int> RandomList;
class KSCD : public kscdPanelDlg, public KSessionManaged, virtual public DCOPObject {
- Q_OBJECT
+ TQ_OBJECT
//
K_DCOP
diff --git a/kscd/ledlamp.h b/kscd/ledlamp.h
index 03dece91..e9eb98cb 100644
--- a/kscd/ledlamp.h
+++ b/kscd/ledlamp.h
@@ -28,7 +28,7 @@
class LedLamp : public TQFrame
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kscd/libwm/ConfigureChecks.cmake b/kscd/libwm/ConfigureChecks.cmake
index 31ce9815..b6a12244 100644
--- a/kscd/libwm/ConfigureChecks.cmake
+++ b/kscd/libwm/ConfigureChecks.cmake
@@ -28,6 +28,7 @@ if( WITH_KSCD_CDDA AND NOT BUILD_CDDA )
#include <linux/cdrom.h>
#undef asm
#undef inline
+#include <sys/ioctl.h>
int main() {
#if defined(__linux__)
diff --git a/kscd/libwm/plat_linux_cdda.c b/kscd/libwm/plat_linux_cdda.c
index 22f24a9d..dc634f3f 100644
--- a/kscd/libwm/plat_linux_cdda.c
+++ b/kscd/libwm/plat_linux_cdda.c
@@ -25,6 +25,7 @@
* Linux CDDA functions. Derived from the SUN module.
*/
+#include <stdlib.h>
#include "include/wm_cdda.h"
#if defined(__linux__) && defined(BUILD_CDDA)
diff --git a/kscd/panel.ui b/kscd/panel.ui
index 2ef615ef..c3fd3a09 100644
--- a/kscd/panel.ui
+++ b/kscd/panel.ui
@@ -348,9 +348,6 @@
<property name="text">
<string>Stop</string>
</property>
- <property name="accel">
- <string></string>
- </property>
<property name="flat">
<bool>true</bool>
</property>
@@ -373,9 +370,6 @@
<property name="text">
<string>Loop</string>
</property>
- <property name="accel">
- <string></string>
- </property>
<property name="toggleButton">
<bool>true</bool>
</property>
@@ -457,12 +451,12 @@
<tabstop>cddbPB</tabstop>
<tabstop>infoPB</tabstop>
</tabstops>
-<Q_SLOTS>
+<slots>
<slot>playClicked()</slot>
<slot>stopClicked()</slot>
<slot>prevClicked()</slot>
<slot>ejectClicked()</slot>
<slot returnType="bool">nextClicked()</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/libkcddb/asynccddbplookup.cpp b/libkcddb/asynccddbplookup.cpp
index e4642dbe..f5dcf64d 100644
--- a/libkcddb/asynccddbplookup.cpp
+++ b/libkcddb/asynccddbplookup.cpp
@@ -48,12 +48,12 @@ namespace KCDDB
socket_->setBlocking( false );
- connect (socket_, TQT_SIGNAL(gotError(int)), TQT_SLOT(slotGotError(int)));
+ connect (socket_, TQ_SIGNAL(gotError(int)), TQ_SLOT(slotGotError(int)));
- connect (socket_, TQT_SIGNAL( connected(const KResolverEntry &) ),
- TQT_SLOT( slotConnectionSuccess() ) );
+ connect (socket_, TQ_SIGNAL( connected(const KResolverEntry &) ),
+ TQ_SLOT( slotConnectionSuccess() ) );
- connect (socket_, TQT_SIGNAL( readyRead() ), TQT_SLOT( slotReadyRead() ) );
+ connect (socket_, TQ_SIGNAL( readyRead() ), TQ_SLOT( slotReadyRead() ) );
if ( trackOffsetList.count() < 3 )
return UnknownError;
diff --git a/libkcddb/asynccddbplookup.h b/libkcddb/asynccddbplookup.h
index d63f8d54..f4f5d8cb 100644
--- a/libkcddb/asynccddbplookup.h
+++ b/libkcddb/asynccddbplookup.h
@@ -29,7 +29,7 @@ namespace KCDDB
{
class AsyncCDDBPLookup : public CDDBPLookup
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/libkcddb/asynchttplookup.cpp b/libkcddb/asynchttplookup.cpp
index b6f26051..3e988f2b 100644
--- a/libkcddb/asynchttplookup.cpp
+++ b/libkcddb/asynchttplookup.cpp
@@ -52,8 +52,8 @@ namespace KCDDB
trackOffsetList_ = trackOffsetList;
- connect( this, TQT_SIGNAL( queryReady() ), TQT_SLOT( slotQueryReady() ) );
- connect( this, TQT_SIGNAL( readReady() ), TQT_SLOT( requestCDInfoForMatch() ) );
+ connect( this, TQ_SIGNAL( queryReady() ), TQ_SLOT( slotQueryReady() ) );
+ connect( this, TQ_SIGNAL( readReady() ), TQ_SLOT( requestCDInfoForMatch() ) );
initURL( hostName, port );
@@ -144,10 +144,10 @@ namespace KCDDB
if ( 0 == job )
return ServerError;
- connect( job, TQT_SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ),
- TQT_SLOT( slotData( TDEIO::Job *, const TQByteArray & ) ) );
- connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ),
- TQT_SLOT( slotResult( TDEIO::Job * ) ) );
+ connect( job, TQ_SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ),
+ TQ_SLOT( slotData( TDEIO::Job *, const TQByteArray & ) ) );
+ connect( job, TQ_SIGNAL( result( TDEIO::Job * ) ),
+ TQ_SLOT( slotResult( TDEIO::Job * ) ) );
return Success;
}
diff --git a/libkcddb/asynchttplookup.h b/libkcddb/asynchttplookup.h
index 9e3f212b..ad27e6fc 100644
--- a/libkcddb/asynchttplookup.h
+++ b/libkcddb/asynchttplookup.h
@@ -28,7 +28,7 @@ namespace KCDDB
class AsyncHTTPLookup : public HTTPLookup
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/libkcddb/asynchttpsubmit.cpp b/libkcddb/asynchttpsubmit.cpp
index 246e5804..6201e886 100644
--- a/libkcddb/asynchttpsubmit.cpp
+++ b/libkcddb/asynchttpsubmit.cpp
@@ -36,7 +36,7 @@ namespace KCDDB
CDDB::Result AsyncHTTPSubmit::runJob(TDEIO::Job* job)
{
- connect(job, TQT_SIGNAL(result(TDEIO::Job *)), TQT_SLOT(slotFinished(TDEIO::Job *)));
+ connect(job, TQ_SIGNAL(result(TDEIO::Job *)), TQ_SLOT(slotFinished(TDEIO::Job *)));
return CDDB::Success;
}
diff --git a/libkcddb/asynchttpsubmit.h b/libkcddb/asynchttpsubmit.h
index 0eb82ae7..6c21954c 100644
--- a/libkcddb/asynchttpsubmit.h
+++ b/libkcddb/asynchttpsubmit.h
@@ -25,7 +25,7 @@ namespace KCDDB
{
class AsyncHTTPSubmit : public HTTPSubmit
{
- Q_OBJECT
+ TQ_OBJECT
public:
AsyncHTTPSubmit(const TQString& from, const TQString& hostname, uint port);
diff --git a/libkcddb/asyncsmtpsubmit.cpp b/libkcddb/asyncsmtpsubmit.cpp
index 1214e951..305f9ce9 100644
--- a/libkcddb/asyncsmtpsubmit.cpp
+++ b/libkcddb/asyncsmtpsubmit.cpp
@@ -38,8 +38,8 @@ namespace KCDDB
CDDB::Result AsyncSMTPSubmit::runJob(TDEIO::Job* job)
{
- connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ),
- this, TQT_SLOT(slotDone( TDEIO::Job* ) ) );
+ connect( job, TQ_SIGNAL( result( TDEIO::Job* ) ),
+ this, TQ_SLOT(slotDone( TDEIO::Job* ) ) );
return Success;
}
diff --git a/libkcddb/asyncsmtpsubmit.h b/libkcddb/asyncsmtpsubmit.h
index fb96b401..710b6e06 100644
--- a/libkcddb/asyncsmtpsubmit.h
+++ b/libkcddb/asyncsmtpsubmit.h
@@ -26,7 +26,7 @@ namespace KCDDB
{
class AsyncSMTPSubmit : public SMTPSubmit
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/libkcddb/cdinfodialogbase.ui b/libkcddb/cdinfodialogbase.ui
index 65948217..3c6a386f 100644
--- a/libkcddb/cdinfodialogbase.ui
+++ b/libkcddb/cdinfodialogbase.ui
@@ -398,12 +398,12 @@
<variable access="public">static const unsigned TRACK_TITLE = 2;</variable>
<variable access="public">static const unsigned TRACK_COMMENT = 3;</variable>
</variables>
-<Q_SIGNALS>
+<signals>
<signal>play(int i)</signal>
<signal>discInfoClicked()</signal>
<signal>trackInfoClicked(unsigned)</signal>
-</Q_SIGNALS>
-<Q_SLOTS>
+</signals>
+<slots>
<slot access="protected">slotTrackSelected( TQListViewItem * item )</slot>
<slot access="protected">slotNextTrack()</slot>
<slot access="protected">slotTrackDoubleClicked( TQListViewItem * item, const TQPoint &amp;, int column )</slot>
@@ -412,7 +412,7 @@
<slot>genreChanged( const TQString &amp; newGenre )</slot>
<slot>slotMultipleArtists( bool hasMultipleArtist )</slot>
<slot access="private">slotChangeEncoding()</slot>
-</Q_SLOTS>
+</slots>
<functions>
<function access="private" specifier="non virtual">init()</function>
<function access="private" specifier="non virtual">destroy()</function>
diff --git a/libkcddb/cdinfoencodingwidget.cpp b/libkcddb/cdinfoencodingwidget.cpp
index f2a7e578..6714c56b 100644
--- a/libkcddb/cdinfoencodingwidget.cpp
+++ b/libkcddb/cdinfoencodingwidget.cpp
@@ -37,8 +37,8 @@ namespace KCDDB
slotEncodingChanged(encodingCombo->currentText());
- connect(encodingCombo,TQT_SIGNAL(activated(const TQString&)),
- this,TQT_SLOT(slotEncodingChanged(const TQString&)));
+ connect(encodingCombo,TQ_SIGNAL(activated(const TQString&)),
+ this,TQ_SLOT(slotEncodingChanged(const TQString&)));
}
TQString CDInfoEncodingWidget::selectedEncoding()
diff --git a/libkcddb/cdinfoencodingwidget.h b/libkcddb/cdinfoencodingwidget.h
index 36508475..32965907 100644
--- a/libkcddb/cdinfoencodingwidget.h
+++ b/libkcddb/cdinfoencodingwidget.h
@@ -26,7 +26,7 @@ namespace KCDDB
{
class CDInfoEncodingWidget : public CDInfoEncodingWidgetBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
CDInfoEncodingWidget(TQWidget* parent, const TQString& artist, const TQString& title,
diff --git a/libkcddb/client.cpp b/libkcddb/client.cpp
index c1a0102a..38ba5aea 100644
--- a/libkcddb/client.cpp
+++ b/libkcddb/client.cpp
@@ -177,16 +177,16 @@ namespace KCDDB
cdInfoLookup = new AsyncCDDBPLookup();
connect( static_cast<AsyncCDDBPLookup *>( cdInfoLookup ),
- TQT_SIGNAL( finished( CDDB::Result ) ),
- TQT_SLOT( slotFinished( CDDB::Result ) ) );
+ TQ_SIGNAL( finished( CDDB::Result ) ),
+ TQ_SLOT( slotFinished( CDDB::Result ) ) );
}
else
{
cdInfoLookup = new AsyncHTTPLookup();
connect( static_cast<AsyncHTTPLookup *>( cdInfoLookup ),
- TQT_SIGNAL( finished( CDDB::Result ) ),
- TQT_SLOT( slotFinished( CDDB::Result ) ) );
+ TQ_SIGNAL( finished( CDDB::Result ) ),
+ TQ_SLOT( slotFinished( CDDB::Result ) ) );
}
r = cdInfoLookup->lookup( d->config.hostname(),
@@ -267,8 +267,8 @@ namespace KCDDB
{
cdInfoSubmit = new AsyncHTTPSubmit(from, hostname, port);
connect( static_cast<AsyncHTTPSubmit *>( cdInfoSubmit ),
- TQT_SIGNAL(finished( CDDB::Result ) ),
- TQT_SLOT( slotSubmitFinished( CDDB::Result ) ) );
+ TQ_SIGNAL(finished( CDDB::Result ) ),
+ TQ_SLOT( slotSubmitFinished( CDDB::Result ) ) );
}
break;
@@ -285,8 +285,8 @@ namespace KCDDB
{
cdInfoSubmit = new AsyncSMTPSubmit( hostname, port, username, from, d->config.submitAddress() );
connect( static_cast<AsyncSMTPSubmit *>( cdInfoSubmit ),
- TQT_SIGNAL( finished( CDDB::Result ) ),
- TQT_SLOT( slotSubmitFinished( CDDB::Result ) ) );
+ TQ_SIGNAL( finished( CDDB::Result ) ),
+ TQ_SLOT( slotSubmitFinished( CDDB::Result ) ) );
}
break;
}
diff --git a/libkcddb/client.h b/libkcddb/client.h
index 5d513878..c28d763e 100644
--- a/libkcddb/client.h
+++ b/libkcddb/client.h
@@ -42,7 +42,7 @@ namespace KCDDB
*/
class KDE_EXPORT Client : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/libkcddb/httplookup.h b/libkcddb/httplookup.h
index e5ee54fe..57f0f06c 100644
--- a/libkcddb/httplookup.h
+++ b/libkcddb/httplookup.h
@@ -37,7 +37,7 @@ namespace KCDDB
class HTTPLookup : public Lookup
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/libkcddb/kcmcddb/cddbconfigwidget.h b/libkcddb/kcmcddb/cddbconfigwidget.h
index 459bdf6d..515ae811 100644
--- a/libkcddb/kcmcddb/cddbconfigwidget.h
+++ b/libkcddb/kcmcddb/cddbconfigwidget.h
@@ -26,7 +26,7 @@
class CDDBConfigWidget : public CDDBConfigWidgetBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/libkcddb/kcmcddb/cddbconfigwidgetbase.ui b/libkcddb/kcmcddb/cddbconfigwidgetbase.ui
index 8da249db..8ea060f9 100644
--- a/libkcddb/kcmcddb/cddbconfigwidgetbase.ui
+++ b/libkcddb/kcmcddb/cddbconfigwidgetbase.ui
@@ -580,11 +580,11 @@
<tabstop>kcfg_port</tabstop>
<tabstop>kcfg_lookupTransport</tabstop>
</tabstops>
-<Q_SLOTS>
+<slots>
<slot access="protected">protocolChanged()</slot>
<slot access="protected">showMirrorList()</slot>
<slot access="protected">needAuthenticationChanged(bool)</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="11" margin="6"/>
<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<includes>
diff --git a/libkcddb/kcmcddb/kcmcddb.h b/libkcddb/kcmcddb/kcmcddb.h
index 3600cc15..2ef3f245 100644
--- a/libkcddb/kcmcddb/kcmcddb.h
+++ b/libkcddb/kcmcddb/kcmcddb.h
@@ -29,7 +29,7 @@ class TDEConfigDialogManager;
class CDDBModule : public TDECModule
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/libkcddb/lookup.cpp b/libkcddb/lookup.cpp
index c1a767fc..38f5a694 100644
--- a/libkcddb/lookup.cpp
+++ b/libkcddb/lookup.cpp
@@ -43,7 +43,7 @@ namespace KCDDB
if ( 200 == serverStatus )
{
TQStringList tokenList = TQStringList::split( ' ', line );
- matchList_.append( tqMakePair( tokenList[ 1 ], tokenList[ 2 ] ) );
+ matchList_.append( qMakePair( tokenList[ 1 ], tokenList[ 2 ] ) );
return Success;
}
else if ( ( 211 == serverStatus ) || ( 210 == serverStatus ) )
@@ -62,7 +62,7 @@ namespace KCDDB
Lookup::parseExtraMatch( const TQString & line )
{
TQStringList tokenList = TQStringList::split( ' ', line );
- matchList_.append( tqMakePair( tokenList[ 0 ], tokenList[ 1 ] ) );
+ matchList_.append( qMakePair( tokenList[ 0 ], tokenList[ 1 ] ) );
}
CDDB::Result
diff --git a/libkcddb/test/asynccddblookuptest.cpp b/libkcddb/test/asynccddblookuptest.cpp
index e9100c40..1910527b 100644
--- a/libkcddb/test/asynccddblookuptest.cpp
+++ b/libkcddb/test/asynccddblookuptest.cpp
@@ -22,8 +22,8 @@ AsyncCDDBLookupTest::AsyncCDDBLookupTest()
connect
(
client_,
- TQT_SIGNAL(finished(CDDB::Result)),
- TQT_SLOT(slotFinished(CDDB::Result))
+ TQ_SIGNAL(finished(CDDB::Result)),
+ TQ_SLOT(slotFinished(CDDB::Result))
);
TrackOffsetList list;
diff --git a/libkcddb/test/asynccddblookuptest.h b/libkcddb/test/asynccddblookuptest.h
index 459799e5..db139bc7 100644
--- a/libkcddb/test/asynccddblookuptest.h
+++ b/libkcddb/test/asynccddblookuptest.h
@@ -8,7 +8,7 @@ using namespace KCDDB;
class AsyncCDDBLookupTest : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/libkcddb/test/asynchttplookuptest.cpp b/libkcddb/test/asynchttplookuptest.cpp
index 045e6b15..a86d4a66 100644
--- a/libkcddb/test/asynchttplookuptest.cpp
+++ b/libkcddb/test/asynchttplookuptest.cpp
@@ -21,8 +21,8 @@ AsyncHTTPLookupTest::AsyncHTTPLookupTest()
connect
(
client_,
- TQT_SIGNAL(finished(CDDB::Result)),
- TQT_SLOT(slotFinished(CDDB::Result))
+ TQ_SIGNAL(finished(CDDB::Result)),
+ TQ_SLOT(slotFinished(CDDB::Result))
);
TrackOffsetList list;
diff --git a/libkcddb/test/asynchttplookuptest.h b/libkcddb/test/asynchttplookuptest.h
index b11c3893..4756b909 100644
--- a/libkcddb/test/asynchttplookuptest.h
+++ b/libkcddb/test/asynchttplookuptest.h
@@ -8,7 +8,7 @@ using namespace KCDDB;
class AsyncHTTPLookupTest : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/libkcddb/test/asynchttpsubmittest.cpp b/libkcddb/test/asynchttpsubmittest.cpp
index 0dd0766e..ace90808 100644
--- a/libkcddb/test/asynchttpsubmittest.cpp
+++ b/libkcddb/test/asynchttpsubmittest.cpp
@@ -51,8 +51,8 @@ AsyncHTTPSubmitTest::AsyncHTTPSubmitTest()
connect
(
client_,
- TQT_SIGNAL(finished(CDDB::Result)),
- TQT_SLOT(slotFinished(CDDB::Result))
+ TQ_SIGNAL(finished(CDDB::Result)),
+ TQ_SLOT(slotFinished(CDDB::Result))
);
client_->submit(cdInfo, list);
diff --git a/libkcddb/test/asynchttpsubmittest.h b/libkcddb/test/asynchttpsubmittest.h
index bbcf8059..270483e0 100644
--- a/libkcddb/test/asynchttpsubmittest.h
+++ b/libkcddb/test/asynchttpsubmittest.h
@@ -8,7 +8,7 @@ using namespace KCDDB;
class AsyncHTTPSubmitTest : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/libkcddb/test/asyncsmtpsubmittest.cpp b/libkcddb/test/asyncsmtpsubmittest.cpp
index 72ee0adc..90f6fddd 100644
--- a/libkcddb/test/asyncsmtpsubmittest.cpp
+++ b/libkcddb/test/asyncsmtpsubmittest.cpp
@@ -52,8 +52,8 @@ AsyncSMTPSubmitTest::AsyncSMTPSubmitTest()
connect
(
client_,
- TQT_SIGNAL(finished(CDDB::Result)),
- TQT_SLOT(slotFinished(CDDB::Result))
+ TQ_SIGNAL(finished(CDDB::Result)),
+ TQ_SLOT(slotFinished(CDDB::Result))
);
client_->submit(cdInfo, list);
diff --git a/libkcddb/test/asyncsmtpsubmittest.h b/libkcddb/test/asyncsmtpsubmittest.h
index d3b68bfc..77eba500 100644
--- a/libkcddb/test/asyncsmtpsubmittest.h
+++ b/libkcddb/test/asyncsmtpsubmittest.h
@@ -8,7 +8,7 @@ using namespace KCDDB;
class AsyncSMTPSubmitTest : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/mpeglib/ConfigureChecks.cmake b/mpeglib/ConfigureChecks.cmake
index 254eb03d..c411b689 100644
--- a/mpeglib/ConfigureChecks.cmake
+++ b/mpeglib/ConfigureChecks.cmake
@@ -34,7 +34,7 @@ pkg_search_module( XEXT xext )
check_include_file( "X11/extensions/XShm.h" X11_SHARED_MEM )
-check_include_file( "X11/extensions/xf86dga1.h" X11_DGA2 )
+check_include_file( "X11/extensions/Xxf86dga.h" X11_DGA2 )
if( X11_DGA2 )
set( DGA_LIBRARIES Xxf86dga )
endif( )
diff --git a/mpeglib/lib/CMakeLists.txt b/mpeglib/lib/CMakeLists.txt
index a2e324fe..ad500d03 100644
--- a/mpeglib/lib/CMakeLists.txt
+++ b/mpeglib/lib/CMakeLists.txt
@@ -37,7 +37,7 @@ link_directories(
##### mpeg-lib (library) ########################
tde_add_library( mpeg SHARED
- SOURCES dummy.cpp
+ SOURCES ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp
RELEASE ${MPEGLIB_VERSION}
EMBED
mpeg_mpgplayer-static
@@ -66,3 +66,5 @@ tde_add_library( mpeg SHARED
pthread
DESTINATION ${LIB_INSTALL_DIR}
)
+
+configure_file( ${TDE_CMAKE_TEMPLATES}/tde_dummy_cpp.cmake dummy.cpp COPYONLY )
diff --git a/mpeglib/lib/Makefile.am b/mpeglib/lib/Makefile.am
index 3c6d115e..142f302f 100644
--- a/mpeglib/lib/Makefile.am
+++ b/mpeglib/lib/Makefile.am
@@ -23,6 +23,8 @@ THIS_EXTRALIBS = mpgplayer/libmpgplayer.la \
frame/libframe.la \
yuv/libyuvPlugin.la
+dummy.cpp:
+ echo > dummy.cpp
lib_LTLIBRARIES = libmpeg.la
diff --git a/mpeglib/lib/dummy.cpp b/mpeglib/lib/dummy.cpp
deleted file mode 100644
index 94bd1cb7..00000000
--- a/mpeglib/lib/dummy.cpp
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-static int dummy() {
- return 0;
-}
diff --git a/mpeglib/lib/mpegplay/slice.h b/mpeglib/lib/mpegplay/slice.h
index 13556155..10689d34 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; /*Qt::Vertical position of slice. */
+ unsigned int vert_pos; /* Vertical position of slice. */
unsigned int quant_scale; /* Quantization scale. */
MpegExtension* mpegExtension; /* Extra bit slice info. */
diff --git a/mpeglib/lib/util/abstract/abs_thread.h b/mpeglib/lib/util/abstract/abs_thread.h
index 0da7e2a0..f65445d8 100644
--- a/mpeglib/lib/util/abstract/abs_thread.h
+++ b/mpeglib/lib/util/abstract/abs_thread.h
@@ -83,7 +83,7 @@ typedef SDL_mutex* abs_thread_mutex_t;
typedef SDL_cond* abs_thread_cond_t;
typedef SDL_Thread* abs_thread_t;
-// TQT_SIGNAL FUNCTIONS
+// SIGNAL FUNCTIONS
// note we have _no_ cond attribut (not needed)
int abs_thread_cond_init(abs_thread_cond_t* cond);
int abs_thread_cond_destroy(abs_thread_cond_t *cond);
diff --git a/mpeglib/lib/util/render/x11/xinit.h b/mpeglib/lib/util/render/x11/xinit.h
index c42c290f..fe6c09b9 100644
--- a/mpeglib/lib/util/render/x11/xinit.h
+++ b/mpeglib/lib/util/render/x11/xinit.h
@@ -38,7 +38,7 @@
#endif
#ifdef X11_DGA2
-#include <X11/extensions/xf86dga.h>
+#include <X11/extensions/Xxf86dga.h>
#endif
#define ERR_XI_FAILURE 0xFF
diff --git a/noatun/library/app.cpp b/noatun/library/app.cpp
index 1bd1fb6b..e93509d9 100644
--- a/noatun/library/app.cpp
+++ b/noatun/library/app.cpp
@@ -88,9 +88,9 @@ NoatunApp::NoatunApp()
mLibraryLoader->add("dcopiface.plugin");
- new General(TQT_TQOBJECT(this)); // 25
- new Plugins(TQT_TQOBJECT(this)); // 149
-// new Types(TQT_TQOBJECT(this));
+ new General(this); // 25
+ new Plugins(this); // 149
+// new Types(this);
mPlayer=new Player; // 139
d->effects=new Effects; // 1
@@ -101,7 +101,7 @@ NoatunApp::NoatunApp()
mEffectView=new EffectView; // 859
mEqualizerView=new EqualizerView; // 24
- TQTimer::singleShot(0, mDownloader, TQT_SLOT(start()));
+ TQTimer::singleShot(0, mDownloader, TQ_SLOT(start()));
::globalVideo = new GlobalVideo;
@@ -363,7 +363,7 @@ void NoatunApp::pluginMenuRemove(int id)
NoatunStdAction::PluginActionMenu *NoatunApp::pluginActionMenu()
{
if (!mPluginActionMenu)
- mPluginActionMenu = new NoatunStdAction::PluginActionMenu(TQT_TQOBJECT(this), "menu_actions");
+ mPluginActionMenu = new NoatunStdAction::PluginActionMenu(this, "menu_actions");
return mPluginActionMenu;
}
diff --git a/noatun/library/cmodule.cpp b/noatun/library/cmodule.cpp
index 8e5f184a..7c5e1a99 100644
--- a/noatun/library/cmodule.cpp
+++ b/noatun/library/cmodule.cpp
@@ -64,11 +64,11 @@ General::General(TQObject *parent)
TQLabel *dlsaver=new TQLabel(i18n("&Download folder:"), this);
mDlSaver=new KURLRequester(napp->saveDirectory(), this);
dlsaver->setBuddy(mDlSaver);
- connect( mDlSaver, TQT_SIGNAL( openFileDialog( KURLRequester * )),
- this, TQT_SLOT( slotRequesterClicked( KURLRequester * )));
+ connect( mDlSaver, TQ_SIGNAL( openFileDialog( KURLRequester * )),
+ this, TQ_SLOT( slotRequesterClicked( KURLRequester * )));
TQWhatsThis::add(mDlSaver, i18n("When opening a non-local file, download it to the selected folder."));
- mPlayOnStartup = new TQButtonGroup(1,Qt::Horizontal, i18n("Play Behavior on Startup"), this);
+ mPlayOnStartup = new TQButtonGroup(1,TQt::Horizontal, i18n("Play Behavior on Startup"), this);
mPlayOnStartup->setExclusive(true);
mPlayOnStartup->insert(
new TQRadioButton(i18n("Restore &play state"), mPlayOnStartup),
diff --git a/noatun/library/cmodule.h b/noatun/library/cmodule.h
index 54fbc19e..ac287a13 100644
--- a/noatun/library/cmodule.h
+++ b/noatun/library/cmodule.h
@@ -21,7 +21,7 @@ class KURLRequester;
class General : public CModule
{
-Q_OBJECT
+TQ_OBJECT
public:
General(TQObject *parent=0);
diff --git a/noatun/library/controls.cpp b/noatun/library/controls.cpp
index 4a6ca9a8..7042cfbd 100644
--- a/noatun/library/controls.cpp
+++ b/noatun/library/controls.cpp
@@ -3,11 +3,11 @@
L33tSlider::L33tSlider(TQWidget * parent, const char * name) :
TQSlider(parent,name), pressed(false)
{}
-L33tSlider::L33tSlider(Qt::Orientation o, TQWidget * parent, const char * name) :
+L33tSlider::L33tSlider(TQt::Orientation o, TQWidget * parent, const char * name) :
TQSlider(o,parent,name), pressed(false)
{}
L33tSlider::L33tSlider(int minValue, int maxValue, int pageStep, int value,
- Qt::Orientation o, TQWidget * parent, const char * name) :
+ TQt::Orientation o, TQWidget * parent, const char * name) :
TQSlider(minValue, maxValue, pageStep, value, o, parent,name), pressed(false)
{}
@@ -24,7 +24,7 @@ void L33tSlider::setValue(int i)
void L33tSlider::mousePressEvent(TQMouseEvent*e)
{
- if (e->button()!=Qt::RightButton)
+ if (e->button()!=TQt::RightButton)
{
pressed=true;
TQSlider::mousePressEvent(e);
@@ -67,17 +67,17 @@ int SliderAction::plug( TQWidget *w, int index )
int id = TDEAction::getToolButtonID();
//Create it.
- m_slider=new L33tSlider(0, 1000, 100, 0,Qt::Horizontal, toolBar);
+ m_slider=new L33tSlider(0, 1000, 100, 0,TQt::Horizontal, toolBar);
m_slider->setMinimumWidth(10);
toolBar->insertWidget(id, 10, m_slider, index );
addContainer( toolBar, id );
- connect( toolBar, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDestroyed() ) );
+ connect( toolBar, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( slotDestroyed() ) );
toolBar->setItemAutoSized( id, true );
if (w->inherits( "TDEToolBar" ))
- connect(toolBar, TQT_SIGNAL(moved(TDEToolBar::BarPosition)), this, TQT_SLOT(toolbarMoved(TDEToolBar::BarPosition)));
+ connect(toolBar, TQ_SIGNAL(moved(TDEToolBar::BarPosition)), this, TQ_SLOT(toolbarMoved(TDEToolBar::BarPosition)));
emit plugged();
diff --git a/noatun/library/downloader.cpp b/noatun/library/downloader.cpp
index 21fb7926..2c65f536 100644
--- a/noatun/library/downloader.cpp
+++ b/noatun/library/downloader.cpp
@@ -86,6 +86,7 @@ void Downloader::start()
for (TQPtrListIterator<Downloader::QueueItem> i(*mUnstartedQueue); i.current(); ++i)
{
+ if((*i)->file.path().isEmpty()) continue;
(*i)->notifier->mLocalFilename = (*i)->local;
mQueue.append(*i);
emit enqueued((*i)->notifier, (*i)->file);
@@ -93,7 +94,7 @@ void Downloader::start()
delete mUnstartedQueue;
mUnstartedQueue=0;
- TQTimer::singleShot(0, this, TQT_SLOT(getNext()));
+ TQTimer::singleShot(0, this, TQ_SLOT(getNext()));
}
static TQString nonExistantFile(const TQString &file)
@@ -142,7 +143,7 @@ TQString Downloader::enqueue(DownloadItem *notifier, const KURL &file)
}
mQueue.append(i);
- TQTimer::singleShot(0, this, TQT_SLOT(getNext()));
+ TQTimer::singleShot(0, this, TQ_SLOT(getNext()));
emit enqueued(notifier, file);
return i->local;
}
@@ -180,15 +181,15 @@ void Downloader::getNext()
localfile->open(IO_ReadWrite | IO_Append);
mJob= TDEIO::get(current->file, true, false);
- connect(mJob, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)), TQT_SLOT(data(TDEIO::Job*, const TQByteArray&)));
- connect(mJob, TQT_SIGNAL(result(TDEIO::Job*)), TQT_SLOT(jobDone(TDEIO::Job*)));
- connect(mJob, TQT_SIGNAL(percent(TDEIO::Job*, unsigned long)), TQT_SLOT(percent(TDEIO::Job*, unsigned long)));
+ connect(mJob, TQ_SIGNAL(data(TDEIO::Job*, const TQByteArray&)), TQ_SLOT(data(TDEIO::Job*, const TQByteArray&)));
+ connect(mJob, TQ_SIGNAL(result(TDEIO::Job*)), TQ_SLOT(jobDone(TDEIO::Job*)));
+ connect(mJob, TQ_SIGNAL(percent(TDEIO::Job*, unsigned long)), TQ_SLOT(percent(TDEIO::Job*, unsigned long)));
if (mTimeout)
delete mTimeout;
mTimeout=new TQTimer(this);
mTimeout->start(30000, true);
- connect(mTimeout, TQT_SIGNAL(timeout()), TQT_SLOT(giveUpWithThisDownloadServerIsRunningNT()));
+ connect(mTimeout, TQ_SIGNAL(timeout()), TQ_SLOT(giveUpWithThisDownloadServerIsRunningNT()));
}
void Downloader::data(TDEIO::Job *, const TQByteArray &data)
diff --git a/noatun/library/effectview.cpp b/noatun/library/effectview.cpp
index 72391b8d..193d8adb 100644
--- a/noatun/library/effectview.cpp
+++ b/noatun/library/effectview.cpp
@@ -90,7 +90,7 @@ TQToolButton *newButton(const TQIconSet &iconSet, const TQString &textLabel, TQO
TQToolButton *button = new TQToolButton(parent, name);
button->setIconSet(iconSet);
button->setTextLabel(textLabel, true);
- TQObject::connect(button, TQT_SIGNAL(clicked()), receiver, slot);
+ TQObject::connect(button, TQ_SIGNAL(clicked()), receiver, slot);
button->setFixedSize(TQSize(22, 22));
return button;
}
@@ -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("go-down", TDEIcon::SizeSmall), i18n("Add"), TQT_TQOBJECT(this), TQT_SLOT(addEffect()), topTopFrame);
+ TQToolButton *add = newButton(BarIconSet("go-down", TDEIcon::SizeSmall), i18n("Add"), this, TQ_SLOT(addEffect()), topTopFrame);
// Active
TQHGroupBox *bottomBox = new TQHGroupBox(i18n("Active Effects"), box);
@@ -138,25 +138,25 @@ void EffectView::init(void)
active->setItemsMovable(true);
active->setSelectionMode(TQListView::Single);
active->setDragEnabled(true);
- connect(active, TQT_SIGNAL(dropped(TQDropEvent *, TQListViewItem *)), TQT_SLOT(activeDrop(TQDropEvent *, TQListViewItem *)));
+ connect(active, TQ_SIGNAL(dropped(TQDropEvent *, TQListViewItem *)), TQ_SLOT(activeDrop(TQDropEvent *, TQListViewItem *)));
// when a new effect is added
- connect(napp->effects(), TQT_SIGNAL(added(Effect *)), TQT_SLOT(added(Effect *)));
- connect(napp->effects(), TQT_SIGNAL(removed(Effect *)), TQT_SLOT(removed(Effect *)));
- connect(napp->effects(), TQT_SIGNAL(moved(Effect *)), TQT_SLOT(moved(Effect *)));
+ connect(napp->effects(), TQ_SIGNAL(added(Effect *)), TQ_SLOT(added(Effect *)));
+ connect(napp->effects(), TQ_SIGNAL(removed(Effect *)), TQ_SLOT(removed(Effect *)));
+ connect(napp->effects(), TQ_SIGNAL(moved(Effect *)), TQ_SLOT(moved(Effect *)));
available->setCurrentItem(0);
- connect(active, TQT_SIGNAL(currentChanged(TQListViewItem *)), TQT_SLOT(activeChanged(TQListViewItem *)));
+ connect(active, TQ_SIGNAL(currentChanged(TQListViewItem *)), TQ_SLOT(activeChanged(TQListViewItem *)));
active->setCurrentItem(0);
// the buttons
TQFrame *bottomLeftFrame = new TQFrame(bottomBox);
TQVBoxLayout *bottomLeftLayout = new TQVBoxLayout(bottomLeftFrame, 0, KDialog::spacingHint());
- up = newButton(BarIconSet("go-up", TDEIcon::SizeSmall), i18n("Up"), TQT_TQOBJECT(this), TQT_SLOT(moveUp()), bottomLeftFrame);
- down = newButton(BarIconSet("go-down", TDEIcon::SizeSmall), i18n("Down"), TQT_TQOBJECT(this), TQT_SLOT(moveDown()), bottomLeftFrame);
- configure = newButton(BarIconSet("configure", TDEIcon::SizeSmall), i18n("Configure"), TQT_TQOBJECT(this), TQT_SLOT(configureEffect()), bottomLeftFrame);
- remove = newButton(BarIconSet("remove", TDEIcon::SizeSmall), i18n("Remove"), TQT_TQOBJECT(this), TQT_SLOT(removeEffect()), bottomLeftFrame);
+ up = newButton(BarIconSet("go-up", TDEIcon::SizeSmall), i18n("Up"), this, TQ_SLOT(moveUp()), bottomLeftFrame);
+ down = newButton(BarIconSet("go-down", TDEIcon::SizeSmall), i18n("Down"), this, TQ_SLOT(moveDown()), bottomLeftFrame);
+ configure = newButton(BarIconSet("configure", TDEIcon::SizeSmall), i18n("Configure"), this, TQ_SLOT(configureEffect()), bottomLeftFrame);
+ remove = newButton(BarIconSet("remove", TDEIcon::SizeSmall), i18n("Remove"), this, TQ_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 3434ae92..bdde7eac 100644
--- a/noatun/library/effectview.h
+++ b/noatun/library/effectview.h
@@ -35,7 +35,7 @@ class TQToolButton;
class EffectView : public KDialogBase
{
-Q_OBJECT
+TQ_OBJECT
public:
EffectView();
@@ -74,7 +74,7 @@ private:
class EffectList : public TDEListView
{
-Q_OBJECT
+TQ_OBJECT
public:
EffectList(TQWidget *parent);
diff --git a/noatun/library/engine.cpp b/noatun/library/engine.cpp
index dbb4d978..8e0000fa 100644
--- a/noatun/library/engine.cpp
+++ b/noatun/library/engine.cpp
@@ -293,19 +293,19 @@ bool Engine::open(const PlaylistItem &file)
d->pProxy = new TitleProxy::Proxy(KURL(file.property("stream_")));
d->playobj = factory.createPlayObject(d->pProxy->proxyUrl(), false);
- connect(d->playobj, TQT_SIGNAL(destroyed()), this, TQT_SLOT(deleteProxy()));
+ connect(d->playobj, TQ_SIGNAL(destroyed()), this, TQ_SLOT(deleteProxy()));
connect(
- d->pProxy, TQT_SIGNAL(
+ d->pProxy, TQ_SIGNAL(
metaData(
const TQString &, const TQString &,
const TQString &, const TQString &,
const TQString &, const TQString &)),
- this, TQT_SIGNAL(
+ this, TQ_SIGNAL(
receivedStreamMeta(const TQString &, const TQString &,
const TQString &, const TQString &,
const TQString &, const TQString &))
);
- connect(d->pProxy, TQT_SIGNAL(proxyError()), this, TQT_SLOT(slotProxyError()));
+ connect(d->pProxy, TQ_SIGNAL(proxyError()), this, TQ_SLOT(slotProxyError()));
}
else
{
@@ -328,7 +328,7 @@ bool Engine::open(const PlaylistItem &file)
}
else
{
- connect( d->playobj, TQT_SIGNAL( playObjectCreated() ), this, TQT_SLOT( connectPlayObject() ) );
+ connect( d->playobj, TQ_SIGNAL( playObjectCreated() ), this, TQ_SLOT( connectPlayObject() ) );
}
if (mPlay)
diff --git a/noatun/library/equalizer.cpp b/noatun/library/equalizer.cpp
index 87255cb7..aad2de65 100644
--- a/noatun/library/equalizer.cpp
+++ b/noatun/library/equalizer.cpp
@@ -164,19 +164,19 @@ void Equalizer::init()
mBands.append(new Band(4));
mBands.append(new Band(5));
- connect(VEQ, TQT_SIGNAL(changed()), TQT_SIGNAL(changed()));
+ connect(VEQ, TQ_SIGNAL(changed()), TQ_SIGNAL(changed()));
- connect(VEQ, TQT_SIGNAL(created(VPreset)), TQT_SLOT(created(VPreset)));
- connect(VEQ, TQT_SIGNAL(selected(VPreset)), TQT_SLOT(selected(VPreset)));
- connect(VEQ, TQT_SIGNAL(renamed(VPreset)), TQT_SLOT(renamed(VPreset)));
- connect(VEQ, TQT_SIGNAL(removed(VPreset)), TQT_SLOT(removed(VPreset)));
+ connect(VEQ, TQ_SIGNAL(created(VPreset)), TQ_SLOT(created(VPreset)));
+ connect(VEQ, TQ_SIGNAL(selected(VPreset)), TQ_SLOT(selected(VPreset)));
+ connect(VEQ, TQ_SIGNAL(renamed(VPreset)), TQ_SLOT(renamed(VPreset)));
+ connect(VEQ, TQ_SIGNAL(removed(VPreset)), TQ_SLOT(removed(VPreset)));
- connect(VEQ, TQT_SIGNAL(enabled()), TQT_SIGNAL(enabled()));
- connect(VEQ, TQT_SIGNAL(disabled()), TQT_SIGNAL(disabled()));
- connect(VEQ, TQT_SIGNAL(enabled(bool)), TQT_SIGNAL(enabled(bool)));
+ connect(VEQ, TQ_SIGNAL(enabled()), TQ_SIGNAL(enabled()));
+ connect(VEQ, TQ_SIGNAL(disabled()), TQ_SIGNAL(disabled()));
+ connect(VEQ, TQ_SIGNAL(enabled(bool)), TQ_SIGNAL(enabled(bool)));
- connect(VEQ, TQT_SIGNAL(preampChanged(int)), TQT_SIGNAL(preampChanged(int)));
- connect(VEQ, TQT_SIGNAL(preampChanged(int)), TQT_SIGNAL(preampChanged(int)));
+ connect(VEQ, TQ_SIGNAL(preampChanged(int)), TQ_SIGNAL(preampChanged(int)));
+ connect(VEQ, TQ_SIGNAL(preampChanged(int)), TQ_SIGNAL(preampChanged(int)));
}
void Equalizer::created(VPreset preset)
diff --git a/noatun/library/equalizerview.cpp b/noatun/library/equalizerview.cpp
index bf779e39..89ec960b 100644
--- a/noatun/library/equalizerview.cpp
+++ b/noatun/library/equalizerview.cpp
@@ -67,11 +67,11 @@ EqualizerLevel::EqualizerLevel(TQWidget *parent, VBand band)
TQVBoxLayout *layout = new TQVBoxLayout(this,
0, 0, "EqualizerLevel::layout");
- mSlider = new TQSlider(-200, 200, 25, 0, Qt::Vertical, this, "EqualizerLevel::mSlider");
+ mSlider = new TQSlider(-200, 200, 25, 0, TQt::Vertical, this, "EqualizerLevel::mSlider");
mSlider->setTickmarks(TQSlider::Left);
mSlider->setTickInterval(25);
layout->addWidget(mSlider);
- connect(mSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed(int)));
+ connect(mSlider, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(changed(int)));
mLabel = new TQLabel("", this, "EqualizerLevel::mLabel");
mLabel->setAlignment(AlignHCenter | AlignVCenter);
layout->addWidget(mLabel);
@@ -82,8 +82,8 @@ EqualizerLevel::EqualizerLevel(TQWidget *parent, VBand band)
setBand(band);
- connect(EQ, TQT_SIGNAL(modified()), TQT_SLOT(changed()));
- connect(mSlider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(changed(int)));
+ connect(EQ, TQ_SIGNAL(modified()), TQ_SLOT(changed()));
+ connect(mSlider, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(changed(int)));
}
void EqualizerLevel::setBand(VBand band)
@@ -126,30 +126,30 @@ void EqualizerView::show()
bandsLayout = new TQHBoxLayout(mWidget->bandsFrame,
0, KDialog::spacingHint(), "bandsLayout");
- connect(mWidget->preampSlider, TQT_SIGNAL(valueChanged(int)),
- this, TQT_SLOT(setPreamp(int)));
- connect(EQ, TQT_SIGNAL(preampChanged(int)),
- this, TQT_SLOT(changedPreamp(int)));
+ connect(mWidget->preampSlider, TQ_SIGNAL(valueChanged(int)),
+ this, TQ_SLOT(setPreamp(int)));
+ connect(EQ, TQ_SIGNAL(preampChanged(int)),
+ this, TQ_SLOT(changedPreamp(int)));
mWidget->bandCount->setRange(EQ->minBands(), EQ->maxBands());
- connect(mWidget->bandCount, TQT_SIGNAL(valueChanged(int)),
- EQ, TQT_SLOT(setBands(int)));
+ connect(mWidget->bandCount, TQ_SIGNAL(valueChanged(int)),
+ EQ, TQ_SLOT(setBands(int)));
TQVBoxLayout *l = new TQVBoxLayout(mWidget->presetFrame);
mPresets = new PresetList(mWidget->presetFrame, "mPresets");
l->addWidget(mPresets);
- connect(mWidget->removePresetButton, TQT_SIGNAL(clicked()), TQT_SLOT(remove()));
- connect(mWidget->addPresetButton, TQT_SIGNAL(clicked()), TQT_SLOT(create()));
- connect(mWidget->resetEqButton, TQT_SIGNAL(clicked()), TQT_SLOT(reset()));
+ connect(mWidget->removePresetButton, TQ_SIGNAL(clicked()), TQ_SLOT(remove()));
+ connect(mWidget->addPresetButton, TQ_SIGNAL(clicked()), TQ_SLOT(create()));
+ connect(mWidget->resetEqButton, TQ_SIGNAL(clicked()), TQ_SLOT(reset()));
new TDEListViewItem(mPresets, i18n("Custom"));
- connect(mPresets, TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this, TQT_SLOT(select(TQListViewItem*)));
+ connect(mPresets, TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this, TQ_SLOT(select(TQListViewItem*)));
- connect(mPresets, TQT_SIGNAL(itemRenamed(TQListViewItem*)),
- this, TQT_SLOT(rename(TQListViewItem*)));
+ connect(mPresets, TQ_SIGNAL(itemRenamed(TQListViewItem*)),
+ this, TQ_SLOT(rename(TQListViewItem*)));
// populate the preset list
TQValueList<VPreset> presets = EQ->presets();
@@ -159,20 +159,20 @@ void EqualizerView::show()
created(*it);
}
- connect(EQ, TQT_SIGNAL(created(VPreset)), TQT_SLOT(created(VPreset)));
- connect(EQ, TQT_SIGNAL(renamed(VPreset)), TQT_SLOT(renamed(VPreset)));
- connect(EQ, TQT_SIGNAL(removed(VPreset)), TQT_SLOT(removed(VPreset)));
+ connect(EQ, TQ_SIGNAL(created(VPreset)), TQ_SLOT(created(VPreset)));
+ connect(EQ, TQ_SIGNAL(renamed(VPreset)), TQ_SLOT(renamed(VPreset)));
+ connect(EQ, TQ_SIGNAL(removed(VPreset)), TQ_SLOT(removed(VPreset)));
mWidget->enabledCheckBox->setChecked(EQ->isEnabled());
- connect(mWidget->enabledCheckBox, TQT_SIGNAL(toggled(bool)),
- EQ, TQT_SLOT(setEnabled(bool)));
- connect(EQ, TQT_SIGNAL(enabled(bool)),
- mWidget->enabledCheckBox, TQT_SLOT(setChecked(bool)));
-
- connect(EQ, TQT_SIGNAL(changed()),
- this, TQT_SLOT(changedEq()));
- connect(EQ, TQT_SIGNAL(changedBands()),
- this, TQT_SLOT(changedBands()));
+ connect(mWidget->enabledCheckBox, TQ_SIGNAL(toggled(bool)),
+ EQ, TQ_SLOT(setEnabled(bool)));
+ connect(EQ, TQ_SIGNAL(enabled(bool)),
+ mWidget->enabledCheckBox, TQ_SLOT(setChecked(bool)));
+
+ connect(EQ, TQ_SIGNAL(changed()),
+ this, TQ_SLOT(changedEq()));
+ connect(EQ, TQ_SIGNAL(changedBands()),
+ this, TQ_SLOT(changedBands()));
changedBands();
changedEq();
diff --git a/noatun/library/equalizerview.h b/noatun/library/equalizerview.h
index 0cec05a9..d8293a3a 100644
--- a/noatun/library/equalizerview.h
+++ b/noatun/library/equalizerview.h
@@ -16,7 +16,7 @@ class EqualizerWidget;
class EqualizerLevel : public TQWidget
{
-Q_OBJECT
+TQ_OBJECT
public:
EqualizerLevel(TQWidget *parent, VBand band);
@@ -36,7 +36,7 @@ private:
class PresetList : public TDEListView
{
-Q_OBJECT
+TQ_OBJECT
public:
PresetList(TQWidget *parent, const char *name=0);
@@ -48,7 +48,7 @@ public:
class EqualizerView : public KDialogBase
{
-Q_OBJECT
+TQ_OBJECT
TQPtrList<EqualizerLevel> mBands;
diff --git a/noatun/library/globalvideo.h b/noatun/library/globalvideo.h
index 9414ca33..89522489 100644
--- a/noatun/library/globalvideo.h
+++ b/noatun/library/globalvideo.h
@@ -6,7 +6,7 @@
class GlobalVideo : public TQWidget
{
-Q_OBJECT
+TQ_OBJECT
TQPopupMenu *menu;
VideoFrame *video;
diff --git a/noatun/library/mimetypetree.h b/noatun/library/mimetypetree.h
index c6619293..ea85810f 100644
--- a/noatun/library/mimetypetree.h
+++ b/noatun/library/mimetypetree.h
@@ -18,7 +18,7 @@
class MimeTypeTree : public TDEListView
{
-Q_OBJECT
+TQ_OBJECT
public:
MimeTypeTree(TQWidget *parent);
diff --git a/noatun/library/noatun/app.h b/noatun/library/noatun/app.h
index 49ea0064..f8927376 100644
--- a/noatun/library/noatun/app.h
+++ b/noatun/library/noatun/app.h
@@ -30,7 +30,7 @@ namespace NoatunStdAction
*/
class KDE_EXPORT NoatunApp : public KUniqueApplication
{
-Q_OBJECT
+TQ_OBJECT
friend class Playlist;
diff --git a/noatun/library/noatun/controls.h b/noatun/library/noatun/controls.h
index 37617183..813be2ee 100644
--- a/noatun/library/noatun/controls.h
+++ b/noatun/library/noatun/controls.h
@@ -22,13 +22,13 @@ class TQLabel;
**/
class KDE_EXPORT L33tSlider : public TQSlider
{
-Q_OBJECT
+TQ_OBJECT
public:
L33tSlider(TQWidget * parent, const char * name=0);
- L33tSlider(Qt::Orientation, TQWidget * parent, const char * name=0);
+ L33tSlider(TQt::Orientation, TQWidget * parent, const char * name=0);
L33tSlider(int minValue, int maxValue, int pageStep, int value,
- Qt::Orientation, TQWidget * parent, const char * name=0);
+ TQt::Orientation, TQWidget * parent, const char * name=0);
bool currentlyPressed() const;
signals:
@@ -56,7 +56,7 @@ private:
**/
class SliderAction : public TDEAction
{
-Q_OBJECT
+TQ_OBJECT
public:
SliderAction(const TQString& text, int accel, const TQObject *receiver,
diff --git a/noatun/library/noatun/downloader.h b/noatun/library/noatun/downloader.h
index 093b57d0..ea0d48f3 100644
--- a/noatun/library/noatun/downloader.h
+++ b/noatun/library/noatun/downloader.h
@@ -65,7 +65,7 @@ private:
**/
class Downloader : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
struct QueueItem
{
diff --git a/noatun/library/noatun/effects.h b/noatun/library/noatun/effects.h
index 73e5444f..0e299dde 100644
--- a/noatun/library/noatun/effects.h
+++ b/noatun/library/noatun/effects.h
@@ -96,7 +96,7 @@ private:
**/
class Effects : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
friend class Effect;
public:
diff --git a/noatun/library/noatun/engine.h b/noatun/library/noatun/engine.h
index 7be41d45..e4dc1403 100644
--- a/noatun/library/noatun/engine.h
+++ b/noatun/library/noatun/engine.h
@@ -32,7 +32,7 @@ class NoatunApp;
**/
class KDE_EXPORT Engine : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
friend class NoatunApp;
public:
diff --git a/noatun/library/noatun/equalizer.h b/noatun/library/noatun/equalizer.h
index a654fd13..e0eea2af 100644
--- a/noatun/library/noatun/equalizer.h
+++ b/noatun/library/noatun/equalizer.h
@@ -105,7 +105,7 @@ friend class Band;
friend class Preset;
friend class Engine;
-Q_OBJECT
+TQ_OBJECT
public:
Equalizer();
diff --git a/noatun/library/noatun/player.h b/noatun/library/noatun/player.h
index c4821d0f..3f3b3ae8 100644
--- a/noatun/library/noatun/player.h
+++ b/noatun/library/noatun/player.h
@@ -21,7 +21,7 @@ class KLibrary;
**/
class KDE_EXPORT Player : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
friend class Effects;
friend class PlaylistItemData;
diff --git a/noatun/library/noatun/playlist.h b/noatun/library/noatun/playlist.h
index b80721a0..a8188e3b 100644
--- a/noatun/library/noatun/playlist.h
+++ b/noatun/library/noatun/playlist.h
@@ -328,7 +328,7 @@ private:
**/
class Playlist : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
friend class PlaylistItemData;
public:
diff --git a/noatun/library/noatun/plugin.h b/noatun/library/noatun/plugin.h
index 23b6e481..f01b0f27 100644
--- a/noatun/library/noatun/plugin.h
+++ b/noatun/library/noatun/plugin.h
@@ -404,7 +404,7 @@ class NoatunListenerNotif;
**/
class NoatunListener : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
friend class NoatunListenerNotif;
@@ -453,7 +453,7 @@ private:
**/
class BoolNotifier : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
public:
BoolNotifier(bool *value, NoatunListener *listener, TQObject *parent=0);
diff --git a/noatun/library/noatun/pref.h b/noatun/library/noatun/pref.h
index 07275b56..4745a010 100644
--- a/noatun/library/noatun/pref.h
+++ b/noatun/library/noatun/pref.h
@@ -12,7 +12,7 @@ class CModule;
**/
class NoatunPreferences : public KDialogBase
{
-Q_OBJECT
+TQ_OBJECT
friend class CModule;
@@ -56,7 +56,7 @@ private:
**/
class KDE_EXPORT CModule : public TQWidget
{
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/noatun/library/noatun/scrollinglabel.h b/noatun/library/noatun/scrollinglabel.h
index aa2b3450..3260c70c 100644
--- a/noatun/library/noatun/scrollinglabel.h
+++ b/noatun/library/noatun/scrollinglabel.h
@@ -30,7 +30,7 @@
**/
class ScrollingLabel : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/library/noatun/stdaction.h b/noatun/library/noatun/stdaction.h
index 31f5d20c..0ddf7f20 100644
--- a/noatun/library/noatun/stdaction.h
+++ b/noatun/library/noatun/stdaction.h
@@ -19,7 +19,7 @@ namespace NoatunStdAction
**/
class PlayAction : public TDEAction
{
-Q_OBJECT
+TQ_OBJECT
public:
PlayAction(TQObject *parent, const char *name);
@@ -33,7 +33,7 @@ private slots:
**/
class PlaylistAction : public TDEToggleAction
{
-Q_OBJECT
+TQ_OBJECT
public:
PlaylistAction(TQObject *parent, const char *name);
@@ -48,7 +48,7 @@ private slots:
*/
class PluginActionMenu : public TDEActionMenu
{
-Q_OBJECT
+TQ_OBJECT
public:
PluginActionMenu(TQObject *parent, const char *name);
@@ -82,7 +82,7 @@ private:
*/
class VisActionMenu : public TDEActionMenu
{
-Q_OBJECT
+TQ_OBJECT
public:
VisActionMenu(TQObject *parent, const char *name);
@@ -100,7 +100,7 @@ private:
*/
class LoopActionMenu : public TDEActionMenu
{
-Q_OBJECT
+TQ_OBJECT
public:
LoopActionMenu(TQObject *parent, const char *name);
diff --git a/noatun/library/noatun/stereobuttonaction.h b/noatun/library/noatun/stereobuttonaction.h
index 5ff9e904..477443d4 100644
--- a/noatun/library/noatun/stereobuttonaction.h
+++ b/noatun/library/noatun/stereobuttonaction.h
@@ -12,7 +12,7 @@ namespace NoatunStdAction
*/
class StereoButtonAction : public TDEAction
{
-Q_OBJECT
+TQ_OBJECT
public:
StereoButtonAction(const TQString& text, int accel = 0, TQObject* parent = 0, const char* name = 0 );
diff --git a/noatun/library/noatun/vequalizer.h b/noatun/library/noatun/vequalizer.h
index 4a5621ef..244fcd11 100644
--- a/noatun/library/noatun/vequalizer.h
+++ b/noatun/library/noatun/vequalizer.h
@@ -136,7 +136,7 @@ public:
**/
class KDE_EXPORT VInterpolation : public TQObject, public VBandsInterface
{
- Q_OBJECT
+ TQ_OBJECT
struct Private;
Private *d;
@@ -176,7 +176,7 @@ class VPreset;
**/
class KDE_EXPORT VEqualizer : public TQObject, public VBandsInterface
{
- Q_OBJECT
+ TQ_OBJECT
friend class VBand;
friend class VPreset;
diff --git a/noatun/library/noatun/video.h b/noatun/library/noatun/video.h
index ece120fe..9719f245 100644
--- a/noatun/library/noatun/video.h
+++ b/noatun/library/noatun/video.h
@@ -11,7 +11,7 @@ class TQPopupMenu;
**/
class VideoFrame : public KVideoWidget
{
-Q_OBJECT
+TQ_OBJECT
struct Private;
VideoFrame::Private *d;
diff --git a/noatun/library/noatunstdaction.cpp b/noatun/library/noatunstdaction.cpp
index de05590c..5fa6b0fc 100644
--- a/noatun/library/noatunstdaction.cpp
+++ b/noatun/library/noatunstdaction.cpp
@@ -22,11 +22,11 @@ namespace NoatunStdAction
{
/////////////////////////////////////////////////////
PlayAction::PlayAction(TQObject *parent, const char *name)
- : TDEAction(i18n("Play"), 0, napp->player(), TQT_SLOT(playpause()), parent, name)
+ : TDEAction(i18n("Play"), 0, napp->player(), TQ_SLOT(playpause()), parent, name)
{
- connect(napp->player(), TQT_SIGNAL(playing()), TQT_SLOT(playing()));
- connect(napp->player(), TQT_SIGNAL(paused()), TQT_SLOT(notplaying()));
- connect(napp->player(), TQT_SIGNAL(stopped()), TQT_SLOT(notplaying()));
+ connect(napp->player(), TQ_SIGNAL(playing()), TQ_SLOT(playing()));
+ connect(napp->player(), TQ_SIGNAL(paused()), TQ_SLOT(notplaying()));
+ connect(napp->player(), TQ_SIGNAL(stopped()), TQ_SLOT(notplaying()));
if (napp->player()->isPlaying())
playing();
else if (napp->player()->isPaused() || napp->player()->isStopped())
@@ -47,11 +47,11 @@ void PlayAction::notplaying()
/////////////////////////////////////////////////////
PlaylistAction::PlaylistAction(TQObject *parent, const char *name)
- : TDEToggleAction(i18n("Show Playlist"), "playlist", 0, napp->player(), TQT_SLOT(toggleListView()), parent, name)
+ : TDEToggleAction(i18n("Show Playlist"), "playlist", 0, napp->player(), TQ_SLOT(toggleListView()), parent, name)
{
setCheckedState(i18n("Hide Playlist"));
- connect(napp->player(), TQT_SIGNAL(playlistShown()), TQT_SLOT(shown()));
- connect(napp->player(), TQT_SIGNAL(playlistHidden()), TQT_SLOT(hidden()));
+ connect(napp->player(), TQ_SIGNAL(playlistShown()), TQ_SLOT(shown()));
+ connect(napp->player(), TQ_SIGNAL(playlistHidden()), TQ_SLOT(hidden()));
setChecked(napp->playlist()->listVisible());
}
@@ -114,8 +114,8 @@ void PluginActionMenu::menuRemove(int id)
VisActionMenu::VisActionMenu(TQObject *parent, const char *name)
: TDEActionMenu(i18n("&Visualizations"), parent, name)
{
- connect(popupMenu(), TQT_SIGNAL(aboutToShow()), TQT_TQOBJECT(this), TQT_SLOT(fillPopup()));
- connect(popupMenu(), TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(toggleVisPlugin(int)));
+ connect(popupMenu(), TQ_SIGNAL(aboutToShow()), this, TQ_SLOT(fillPopup()));
+ connect(popupMenu(), TQ_SIGNAL(activated(int)), this, TQ_SLOT(toggleVisPlugin(int)));
}
void VisActionMenu::fillPopup()
@@ -163,26 +163,26 @@ LoopActionMenu::LoopActionMenu(TQObject *parent, const char *name)
: TDEActionMenu(i18n("&Loop"), parent, name)
{
mLoopNone = new TDERadioAction(i18n("&None"), TQString::fromLocal8Bit("noatunloopnone"),
- 0, TQT_TQOBJECT(this), TQT_SLOT(loopNoneSelected()), TQT_TQOBJECT(this), "loop_none");
+ 0, this, TQ_SLOT(loopNoneSelected()), this, "loop_none");
mLoopNone->setExclusiveGroup("loopType");
insert(mLoopNone);
mLoopSong = new TDERadioAction(i18n("&Song"), TQString::fromLocal8Bit("noatunloopsong"),
- 0, TQT_TQOBJECT(this), TQT_SLOT(loopSongSelected()), TQT_TQOBJECT(this), "loop_song");
+ 0, this, TQ_SLOT(loopSongSelected()), this, "loop_song");
mLoopSong->setExclusiveGroup("loopType");
insert(mLoopSong);
mLoopPlaylist = new TDERadioAction(i18n("&Playlist"), TQString::fromLocal8Bit("noatunloopplaylist"),
- 0, TQT_TQOBJECT(this), TQT_SLOT(loopPlaylistSelected()), TQT_TQOBJECT(this), "loop_playlist");
+ 0, this, TQ_SLOT(loopPlaylistSelected()), this, "loop_playlist");
mLoopPlaylist->setExclusiveGroup("loopType");
insert(mLoopPlaylist);
mLoopRandom = new TDERadioAction(i18n("&Random"), TQString::fromLocal8Bit("noatunlooprandom"),
- 0, TQT_TQOBJECT(this), TQT_SLOT(loopRandomSelected()), TQT_TQOBJECT(this), "loop_random");
+ 0, this, TQ_SLOT(loopRandomSelected()), this, "loop_random");
mLoopRandom->setExclusiveGroup("loopType");
insert(mLoopRandom);
- connect(napp->player(), TQT_SIGNAL(loopTypeChange(int)), TQT_TQOBJECT(this), TQT_SLOT(updateLooping(int)));
+ connect(napp->player(), TQ_SIGNAL(loopTypeChange(int)), this, TQ_SLOT(updateLooping(int)));
updateLooping(static_cast<int>(napp->player()->loopStyle()));
}
@@ -239,25 +239,25 @@ TDEAction *playpause(TQObject *parent, const char *name)
TDEAction *effects(TQObject *parent, const char *name)
{
- return new TDEAction(i18n("&Effects..."), "effect", 0, TQT_TQOBJECT(napp), TQT_SLOT(effectView()), parent, name);
+ return new TDEAction(i18n("&Effects..."), "effect", 0, napp, TQ_SLOT(effectView()), parent, name);
}
TDEAction *equalizer(TQObject *parent, const char *name)
{
- return new TDEAction(i18n("E&qualizer..."), "equalizer", 0, TQT_TQOBJECT(napp), TQT_SLOT(equalizerView()), parent, name);
+ return new TDEAction(i18n("E&qualizer..."), "equalizer", 0, napp, TQ_SLOT(equalizerView()), parent, name);
}
TDEAction *back(TQObject *parent, const char *name)
{
- return new TDEAction(i18n("&Back"), "media-skip-backward", 0, TQT_TQOBJECT(napp->player()), TQT_SLOT(back()), parent, name);
+ return new TDEAction(i18n("&Back"), "media-skip-backward", 0, napp->player(), TQ_SLOT(back()), parent, name);
}
TDEAction *stop(TQObject *parent, const char *name)
{
- StereoButtonAction *action = new StereoButtonAction(i18n("Stop"), "media-playback-stop", 0, napp->player(), TQT_SLOT(stop()), parent, 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()));
+ StereoButtonAction *action = new StereoButtonAction(i18n("Stop"), "media-playback-stop", 0, napp->player(), TQ_SLOT(stop()), parent, name);
+ TQObject::connect(napp->player(), TQ_SIGNAL(playing()), action, TQ_SLOT(enable()));
+ TQObject::connect(napp->player(), TQ_SIGNAL(paused()), action, TQ_SLOT(enable()));
+ TQObject::connect(napp->player(), TQ_SIGNAL(stopped()), action, TQ_SLOT(disable()));
if(napp->player()->isStopped())
action->disable();
else
@@ -267,15 +267,15 @@ TDEAction *stop(TQObject *parent, const char *name)
TDEAction *forward(TQObject *parent, const char *name)
{
- return new TDEAction(i18n("&Forward"), "media-skip-forward", 0, napp->player(), TQT_SLOT(forward()), parent, name);
+ return new TDEAction(i18n("&Forward"), "media-skip-forward", 0, napp->player(), TQ_SLOT(forward()), parent, name);
}
TDEAction *play(TQObject *parent, const char *name)
{
- StereoButtonAction *action = new StereoButtonAction(i18n("&Play"), "media-playback-start", 0, napp->player(), TQT_SLOT(playpause()), parent, 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()));
+ StereoButtonAction *action = new StereoButtonAction(i18n("&Play"), "media-playback-start", 0, napp->player(), TQ_SLOT(playpause()), parent, name);
+ TQObject::connect(napp->player(), TQ_SIGNAL(playing()), action, TQ_SLOT(disable()));
+ TQObject::connect(napp->player(), TQ_SIGNAL(paused()), action, TQ_SLOT(enable()));
+ TQObject::connect(napp->player(), TQ_SIGNAL(stopped()), action, TQ_SLOT(enable()));
if(napp->player()->isPlaying())
action->disable();
else
@@ -285,10 +285,10 @@ TDEAction *play(TQObject *parent, const char *name)
TDEAction *pause(TQObject *parent, const char *name)
{
- StereoButtonAction *action = new StereoButtonAction(i18n("&Pause"), "media-playback-pause", 0, napp->player(), TQT_SLOT(playpause()), parent, 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()));
+ StereoButtonAction *action = new StereoButtonAction(i18n("&Pause"), "media-playback-pause", 0, napp->player(), TQ_SLOT(playpause()), parent, name);
+ TQObject::connect(napp->player(), TQ_SIGNAL(playing()), action, TQ_SLOT(enable()));
+ TQObject::connect(napp->player(), TQ_SIGNAL(paused()), action, TQ_SLOT(disable()));
+ TQObject::connect(napp->player(), TQ_SIGNAL(stopped()), action, TQ_SLOT(disable()));
if(napp->player()->isPlaying())
action->enable();
else
@@ -333,15 +333,15 @@ TDEPopupMenu *ContextMenu::createContextMenu(TQWidget *p)
KHelpMenu *helpmenu = new KHelpMenu(contextMenu, kapp->aboutData(), false);
TDEActionCollection* actions = new TDEActionCollection(helpmenu);
- KStdAction::open(TQT_TQOBJECT(napp), TQT_SLOT(fileOpen()), actions)->plug(contextMenu);
- KStdAction::quit(TQT_TQOBJECT(napp), TQT_SLOT(quit()), actions)->plug(contextMenu);
+ KStdAction::open(napp, TQ_SLOT(fileOpen()), actions)->plug(contextMenu);
+ KStdAction::quit(napp, TQ_SLOT(quit()), actions)->plug(contextMenu);
contextMenu->insertItem(SmallIcon("help"), KStdGuiItem::help().text(), helpmenu->menu());
contextMenu->insertSeparator();
- 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);
+ KStdAction::preferences(napp, TQ_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);
napp->pluginActionMenu()->plug(contextMenu);
return contextMenu;
diff --git a/noatun/library/noatuntags/tags.cpp b/noatun/library/noatuntags/tags.cpp
index 3c1bb2ac..62cd97bb 100644
--- a/noatun/library/noatuntags/tags.cpp
+++ b/noatun/library/noatuntags/tags.cpp
@@ -16,7 +16,7 @@ TagsGetter *Tags::getter=0;
TagsGetter::TagsGetter()
{
new Control(this);
- connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(newSong()));
+ connect(napp->player(), TQ_SIGNAL(newSong()), TQ_SLOT(newSong()));
}
int TagsGetter::interval() const
@@ -115,7 +115,7 @@ void TagsGetter::associate(Tags *t)
tags.append(t);
sortPriority();
// getSongs();
- TQTimer::singleShot(interval(), this, TQT_SLOT(getSongs()));
+ TQTimer::singleShot(interval(), this, TQ_SLOT(getSongs()));
}
void TagsGetter::sortPriority()
@@ -201,7 +201,7 @@ Control::Control(TagsGetter *parent)
", and updates tags (e.g., ID3)",
"Interval:"), intervalLine);
TQSlider *slider=new TQSlider(
- 0, 2000, 100, 0,Qt::Horizontal, intervalLine
+ 0, 2000, 100, 0,TQt::Horizontal, intervalLine
);
TQSpinBox *spin=new TQSpinBox(
0, 2000, 10, intervalLine
@@ -210,14 +210,14 @@ Control::Control(TagsGetter *parent)
spin->setSuffix(i18n("Milliseconds", " ms"));
- connect(slider, TQT_SIGNAL(valueChanged(int)), spin, TQT_SLOT(setValue(int)));
- connect(spin, TQT_SIGNAL(valueChanged(int)), slider, TQT_SLOT(setValue(int)));
+ connect(slider, TQ_SIGNAL(valueChanged(int)), spin, TQ_SLOT(setValue(int)));
+ connect(spin, TQ_SIGNAL(valueChanged(int)), slider, TQ_SLOT(setValue(int)));
slider->setValue(parent->interval());
- connect(slider, TQT_SIGNAL(valueChanged(int)), parent, TQT_SLOT(setInterval(int)));
+ connect(slider, TQ_SIGNAL(valueChanged(int)), parent, TQ_SLOT(setInterval(int)));
- connect(onPlay, TQT_SIGNAL(toggled(bool)), intervalLine, TQT_SLOT(setEnabled(bool)));
+ connect(onPlay, TQ_SIGNAL(toggled(bool)), intervalLine, TQ_SLOT(setEnabled(bool)));
}
- connect(onPlay, TQT_SIGNAL(toggled(bool)), parent, TQT_SLOT(setLoadAuto(bool)));
+ connect(onPlay, TQ_SIGNAL(toggled(bool)), parent, TQ_SLOT(setLoadAuto(bool)));
onPlay->setChecked(parent->loadAuto());
}
diff --git a/noatun/library/noatuntags/tagsgetter.h b/noatun/library/noatuntags/tagsgetter.h
index c48727ea..65e3bdcd 100644
--- a/noatun/library/noatuntags/tagsgetter.h
+++ b/noatun/library/noatuntags/tagsgetter.h
@@ -9,7 +9,7 @@
class TagsGetter : public TQObject, public PlaylistNotifier
{
-Q_OBJECT
+TQ_OBJECT
public:
TagsGetter();
@@ -47,7 +47,7 @@ private:
class Control : public CModule
{
-Q_OBJECT
+TQ_OBJECT
public:
Control(TagsGetter* parent);
diff --git a/noatun/library/player.cpp b/noatun/library/player.cpp
index 5ab2aeba..bf1ecaed 100644
--- a/noatun/library/player.cpp
+++ b/noatun/library/player.cpp
@@ -18,18 +18,18 @@ Player::Player(TQObject *parent) : TQObject(parent, "Player"),
position(-1), mLoopStyle(None), firstTimeout(true)
{
mEngine=new Engine;
- connect(&filePos, TQT_SIGNAL(timeout()), TQT_SLOT(posTimeout()));
- connect(mEngine, TQT_SIGNAL(aboutToPlay()), this, TQT_SLOT(aboutToPlay()));
+ connect(&filePos, TQ_SIGNAL(timeout()), TQ_SLOT(posTimeout()));
+ connect(mEngine, TQ_SIGNAL(aboutToPlay()), this, TQ_SLOT(aboutToPlay()));
connect(mEngine,
- TQT_SIGNAL(receivedStreamMeta(const TQString &, const TQString &,
+ TQ_SIGNAL(receivedStreamMeta(const TQString &, const TQString &,
const TQString &, const TQString &,
const TQString &, const TQString &)),
- this, TQT_SLOT(
+ this, TQ_SLOT(
slotUpdateStreamMeta(const TQString &, const TQString &,
const TQString &, const TQString &,
const TQString &, const TQString &))
);
- connect(mEngine, TQT_SIGNAL(playingFailed()), this, TQT_SLOT(forward()));
+ connect(mEngine, TQ_SIGNAL(playingFailed()), this, TQ_SLOT(forward()));
handleButtons();
}
diff --git a/noatun/library/playlist.cpp b/noatun/library/playlist.cpp
index 7e59885f..380934bd 100644
--- a/noatun/library/playlist.cpp
+++ b/noatun/library/playlist.cpp
@@ -280,9 +280,9 @@ bool PlaylistItemData::operator != (const PlaylistItemData &d) const
Playlist::Playlist(TQObject *parent, const char *name) : TQObject(parent, name)
{
- napp->player()->connect(this, TQT_SIGNAL(playCurrent()), TQT_SLOT(playCurrent()));
- napp->player()->connect(this, TQT_SIGNAL(listHidden()), TQT_SIGNAL(playlistHidden()));
- napp->player()->connect(this, TQT_SIGNAL(listShown()), TQT_SIGNAL(playlistShown()));
+ napp->player()->connect(this, TQ_SIGNAL(playCurrent()), TQ_SLOT(playCurrent()));
+ napp->player()->connect(this, TQ_SIGNAL(listHidden()), TQ_SIGNAL(playlistHidden()));
+ napp->player()->connect(this, TQ_SIGNAL(listShown()), TQ_SIGNAL(playlistShown()));
}
diff --git a/noatun/library/playlistsaver.cpp b/noatun/library/playlistsaver.cpp
index 13b7ecfe..1450804d 100644
--- a/noatun/library/playlistsaver.cpp
+++ b/noatun/library/playlistsaver.cpp
@@ -449,7 +449,7 @@ bool PlaylistSaver::loadXML(const KURL &url, int opt)
reset();
// TQXml is horribly documented
- TQXmlInputSource source(TQT_TQIODEVICE(&file));
+ TQXmlInputSource source(&file);
TQXmlSimpleReader reader;
if (opt == ASX ||
diff --git a/noatun/library/plugin.cpp b/noatun/library/plugin.cpp
index 3c5b6f5d..ac0f0329 100644
--- a/noatun/library/plugin.cpp
+++ b/noatun/library/plugin.cpp
@@ -566,7 +566,7 @@ ExitNotifier::~ExitNotifier()
BoolNotifier::BoolNotifier(bool *value, NoatunListener *listener, TQObject *parent)
: TQObject(parent)
{
- connect(listener, TQT_SIGNAL(event()), TQT_SLOT(event()));
+ connect(listener, TQ_SIGNAL(event()), TQ_SLOT(event()));
mValue=value;
}
diff --git a/noatun/library/plugin_deps.h b/noatun/library/plugin_deps.h
index 777c70e3..875bec35 100644
--- a/noatun/library/plugin_deps.h
+++ b/noatun/library/plugin_deps.h
@@ -11,7 +11,7 @@ class NoatunListener;
class TimerThingy : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
public:
TimerThingy(Visualization*);
diff --git a/noatun/library/pluginmodule.cpp b/noatun/library/pluginmodule.cpp
index d6b86e86..a7a59b48 100644
--- a/noatun/library/pluginmodule.cpp
+++ b/noatun/library/pluginmodule.cpp
@@ -152,7 +152,7 @@ Plugins::Plugins(TQObject *_parent)
interfaceList->addColumn(i18n("Description"));
interfaceList->addColumn(i18n("Author"));
interfaceList->addColumn(i18n("License"));
- connect(interfaceList, TQT_SIGNAL(stateChange(PluginListItem *, bool)), this, TQT_SLOT(stateChange(PluginListItem *, bool)));
+ connect(interfaceList, TQ_SIGNAL(stateChange(PluginListItem *, bool)), this, TQ_SLOT(stateChange(PluginListItem *, bool)));
tabControl->addTab(interfaceTab, i18n("&Interfaces"));
TQFrame *playlistTab = new TQFrame(tabControl);
@@ -164,7 +164,7 @@ Plugins::Plugins(TQObject *_parent)
playlistList->addColumn(i18n("Description"));
playlistList->addColumn(i18n("Author"));
playlistList->addColumn(i18n("License"));
- connect(playlistList, TQT_SIGNAL(stateChange(PluginListItem *, bool)), this, TQT_SLOT(stateChange(PluginListItem *, bool)));
+ connect(playlistList, TQ_SIGNAL(stateChange(PluginListItem *, bool)), this, TQ_SLOT(stateChange(PluginListItem *, bool)));
tabControl->addTab(playlistTab, i18n("&Playlist"));
TQFrame *visTab = new TQFrame(tabControl);
@@ -175,7 +175,7 @@ Plugins::Plugins(TQObject *_parent)
visList->addColumn(i18n("Description"));
visList->addColumn(i18n("Author"));
visList->addColumn(i18n("License"));
- connect(visList, TQT_SIGNAL(stateChange(PluginListItem *, bool)), this, TQT_SLOT(stateChange(PluginListItem *, bool)));
+ connect(visList, TQ_SIGNAL(stateChange(PluginListItem *, bool)), this, TQ_SLOT(stateChange(PluginListItem *, bool)));
tabControl->addTab(visTab, i18n("&Visualizations"));
// Other plugins are not restricted
@@ -187,7 +187,7 @@ Plugins::Plugins(TQObject *_parent)
otherList->addColumn(i18n("Description"));
otherList->addColumn(i18n("Author"));
otherList->addColumn(i18n("License"));
- connect(otherList, TQT_SIGNAL(stateChange(PluginListItem *, bool)), this, TQT_SLOT(stateChange(PluginListItem *, bool)));
+ connect(otherList, TQ_SIGNAL(stateChange(PluginListItem *, bool)), this, TQ_SLOT(stateChange(PluginListItem *, bool)));
tabControl->addTab(otherTab, i18n("O&ther Plugins"));
}
diff --git a/noatun/library/pluginmodule.h b/noatun/library/pluginmodule.h
index 47519d66..804ea492 100644
--- a/noatun/library/pluginmodule.h
+++ b/noatun/library/pluginmodule.h
@@ -50,7 +50,7 @@ private:
class PluginListView : public TDEListView
{
-Q_OBJECT
+TQ_OBJECT
friend class PluginListItem;
@@ -75,7 +75,7 @@ private:
class Plugins : public CModule
{
-Q_OBJECT
+TQ_OBJECT
public:
Plugins(TQObject *_parent = 0);
diff --git a/noatun/library/pref.cpp b/noatun/library/pref.cpp
index 9ed882c5..55926830 100644
--- a/noatun/library/pref.cpp
+++ b/noatun/library/pref.cpp
@@ -32,7 +32,7 @@ void NoatunPreferences::show()
void NoatunPreferences::show(CModule *page)
{
- int index = pageIndex( static_cast<TQWidget *>(TQT_TQWIDGET(page->parent())) );
+ int index = pageIndex( static_cast<TQWidget *>(page->parent()) );
if (index != -1)
showPage(index);
show();
@@ -59,13 +59,13 @@ CModule::CModule(const TQString &name, const TQString &description, const TQStri
icon, TDEIcon::Small,0, TDEIcon::DefaultState,0, true)))
{
if (owner)
- connect(owner, TQT_SIGNAL(destroyed()), TQT_SLOT(ownerDeleted()));
+ connect(owner, TQ_SIGNAL(destroyed()), TQ_SLOT(ownerDeleted()));
//kdDebug(66666) << k_funcinfo << "name = " << name << endl;
napp->preferencesBox()->add(this);
- TQFrame *page=static_cast<TQFrame*>(TQT_TQWIDGET(parent()));
+ TQFrame *page=static_cast<TQFrame*>(parent());
(new TQHBoxLayout(page))->addWidget(this);
}
diff --git a/noatun/library/scrollinglabel.cpp b/noatun/library/scrollinglabel.cpp
index d21a2aad..235d10b3 100644
--- a/noatun/library/scrollinglabel.cpp
+++ b/noatun/library/scrollinglabel.cpp
@@ -62,8 +62,8 @@ ScrollingLabel::ScrollingLabel
{
d = new Private;
- connect(&d->scrollTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(scroll()));
- connect(&d->resetTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(restoreText()));
+ connect(&d->scrollTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(scroll()));
+ connect(&d->resetTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(restoreText()));
setText(initialText);
}
diff --git a/noatun/library/titleproxy.cpp b/noatun/library/titleproxy.cpp
index 65006135..a4439207 100644
--- a/noatun/library/titleproxy.cpp
+++ b/noatun/library/titleproxy.cpp
@@ -50,9 +50,9 @@ Proxy::Proxy( KURL url )
if ( m_url.port() < 1 )
m_url.setPort( 80 );
- connect( &m_sockRemote, TQT_SIGNAL( error( int ) ), this, TQT_SLOT( connectError() ) );
- connect( &m_sockRemote, TQT_SIGNAL( connected() ), this, TQT_SLOT( sendRequest() ) );
- connect( &m_sockRemote, TQT_SIGNAL( readyRead() ), this, TQT_SLOT( readRemote() ) );
+ connect( &m_sockRemote, TQ_SIGNAL( error( int ) ), this, TQ_SLOT( connectError() ) );
+ connect( &m_sockRemote, TQ_SIGNAL( connected() ), this, TQ_SLOT( sendRequest() ) );
+ connect( &m_sockRemote, TQ_SIGNAL( readyRead() ), this, TQ_SLOT( readRemote() ) );
uint i = 0;
Server* server = 0;
@@ -74,7 +74,7 @@ Proxy::Proxy( KURL url )
return;
}
m_usedPort = i;
- connect( server, TQT_SIGNAL( connected( int ) ), this, TQT_SLOT( accept( int ) ) );
+ connect( server, TQ_SIGNAL( connected( int ) ), this, TQ_SLOT( accept( int ) ) );
}
@@ -130,7 +130,7 @@ void Proxy::connectToHost() //SLOT
{ //connect to server
TQTimer::singleShot( KProtocolManager::connectTimeout() * 1000,
- this, TQT_SLOT( connectError() ) );
+ this, TQ_SLOT( connectError() ) );
kdDebug(66666) << k_funcinfo << "Connecting to " <<
m_url.host() << ":" << m_url.port() << endl;
@@ -316,8 +316,8 @@ bool Proxy::processHeader( TQ_LONG &index, TQ_LONG bytesRead )
return false;
}
- connect( &m_sockRemote, TQT_SIGNAL( connectionClosed() ),
- this, TQT_SLOT( connectError() ) );
+ connect( &m_sockRemote, TQ_SIGNAL( connectionClosed() ),
+ this, TQ_SLOT( connectError() ) );
return true;
}
}
diff --git a/noatun/library/titleproxy.h b/noatun/library/titleproxy.h
index 2bb13243..5c0d9349 100644
--- a/noatun/library/titleproxy.h
+++ b/noatun/library/titleproxy.h
@@ -48,7 +48,7 @@ namespace TitleProxy
class Proxy : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
Proxy( KURL url );
@@ -111,7 +111,7 @@ namespace TitleProxy
class Server : public TQServerSocket
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/library/video.cpp b/noatun/library/video.cpp
index db6886b3..8105127d 100644
--- a/noatun/library/video.cpp
+++ b/noatun/library/video.cpp
@@ -28,8 +28,8 @@ VideoFrame::VideoFrame(KXMLGUIClient *clientParent, TQWidget *parent, const char
: KVideoWidget(clientParent, parent, name, f)
{
d = new Private;
- connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(changed()));
- connect(napp->player(), TQT_SIGNAL(stopped()), TQT_SLOT(stopped()));
+ connect(napp->player(), TQ_SIGNAL(newSong()), TQ_SLOT(changed()));
+ connect(napp->player(), TQ_SIGNAL(stopped()), TQ_SLOT(stopped()));
frames.append(this);
}
@@ -37,8 +37,8 @@ VideoFrame::VideoFrame(TQWidget *parent, const char *name, WFlags f)
: KVideoWidget(parent, name, f)
{
d = new Private;
- connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(changed()));
- connect(napp->player(), TQT_SIGNAL(stopped()), TQT_SLOT(stopped()));
+ connect(napp->player(), TQ_SIGNAL(newSong()), TQ_SLOT(changed()));
+ connect(napp->player(), TQ_SIGNAL(stopped()), TQ_SLOT(stopped()));
frames.append(this);
}
@@ -126,9 +126,9 @@ GlobalVideo::GlobalVideo()
// video->setMinimumSize(101,35);
video->setMinimumSize(128,96);
- connect(video, TQT_SIGNAL(acquired()), TQT_SLOT(appear()));
- connect(video, TQT_SIGNAL(lost()), TQT_SLOT(hide()));
- connect(video, TQT_SIGNAL(adaptSize(int,int)), this, TQT_SLOT(slotAdaptSize(int,int)));
+ connect(video, TQ_SIGNAL(acquired()), TQ_SLOT(appear()));
+ connect(video, TQ_SIGNAL(lost()), TQ_SLOT(hide()));
+ connect(video, TQ_SIGNAL(adaptSize(int,int)), this, TQ_SLOT(slotAdaptSize(int,int)));
video->setNormalSize();
video->give();
@@ -151,7 +151,7 @@ void GlobalVideo::hide()
void GlobalVideo::mouseReleaseEvent(TQMouseEvent *e)
{
- if (e->button() == Qt::RightButton)
+ if (e->button() == TQt::RightButton)
{
menu->exec(mapToGlobal(e->pos()));
}
diff --git a/noatun/modules/artseffects/extrastereogui_impl.cpp b/noatun/modules/artseffects/extrastereogui_impl.cpp
index 92148ba0..c65ff19f 100644
--- a/noatun/modules/artseffects/extrastereogui_impl.cpp
+++ b/noatun/modules/artseffects/extrastereogui_impl.cpp
@@ -7,7 +7,7 @@ namespace Arts {
ExtraStereoGUI_impl::ExtraStereoGUI_impl() : TQWidget(0)
{
(new TQHBoxLayout(this))->setAutoAdd(true);
- mSlider=new TQSlider(0,100,10, 0,Qt::Horizontal, this);
+ mSlider=new TQSlider(0,100,10, 0,TQt::Horizontal, this);
mSlider->show();
show();
}
diff --git a/noatun/modules/dcopiface/dcopiface.cpp b/noatun/modules/dcopiface/dcopiface.cpp
index aef6c58f..731d3cf7 100644
--- a/noatun/modules/dcopiface/dcopiface.cpp
+++ b/noatun/modules/dcopiface/dcopiface.cpp
@@ -19,7 +19,7 @@ extern "C"
NIF::NIF() : Plugin(), DCOPObject("Noatun")
{
mLastVolume = 0;
-// connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(newSongPlaying()));
+// connect(napp->player(), TQ_SIGNAL(newSong()), TQ_SLOT(newSongPlaying()));
}
NIF::~NIF()
diff --git a/noatun/modules/excellent/userinterface.cpp b/noatun/modules/excellent/userinterface.cpp
index 12e7169b..b03a2dbc 100644
--- a/noatun/modules/excellent/userinterface.cpp
+++ b/noatun/modules/excellent/userinterface.cpp
@@ -67,12 +67,12 @@ Excellent::Excellent()
{
setAcceptDrops(true);
- KStdAction::quit(TQT_TQOBJECT(napp), TQT_SLOT(quit()), actionCollection());
- KStdAction::open(TQT_TQOBJECT(napp), TQT_SLOT(fileOpen()), actionCollection());
+ KStdAction::quit(napp, TQ_SLOT(quit()), actionCollection());
+ KStdAction::open(napp, TQ_SLOT(fileOpen()), actionCollection());
setStandardToolBarMenuEnabled(true);
- menubarAction = KStdAction::showMenubar(TQT_TQOBJECT(this), TQT_SLOT(showMenubar()), actionCollection());
- KStdAction::preferences(TQT_TQOBJECT(napp), TQT_SLOT(preferences()), actionCollection());
+ menubarAction = KStdAction::showMenubar(this, TQ_SLOT(showMenubar()), actionCollection());
+ KStdAction::preferences(napp, TQ_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 TDEToggleAction(i18n("Show &Volume Control"), 0, TQT_TQOBJECT(this), TQT_SLOT(showVolumeControl()), actionCollection(), "show_volumecontrol");
+ volumeAction = new TDEToggleAction(i18n("Show &Volume Control"), 0, this, TQ_SLOT(showVolumeControl()), actionCollection(), "show_volumecontrol");
volumeAction->setCheckedState(i18n("Hide &Volume Control"));
NoatunStdAction::effects(actionCollection(), "effects");
NoatunStdAction::equalizer(actionCollection(), "equalizer");
@@ -98,7 +98,7 @@ Excellent::Excellent()
mainFrame = new TQHBox(this);
mainFrame->setSpacing(KDialog::spacingHint());
mainFrame->setMargin(0);
- slider = new L33tSlider(0, 1000, 10, 0, Qt::Horizontal, mainFrame);
+ slider = new L33tSlider(0, 1000, 10, 0, TQt::Horizontal, mainFrame);
slider->setTickmarks(TQSlider::NoMarks);
elapsed = new TQLabel(mainFrame);
@@ -129,24 +129,24 @@ Excellent::Excellent()
statusBar()->addWidget(total, 0, true);
statusBar()->show();
- connect( napp, TQT_SIGNAL(hideYourself()), this, TQT_SLOT(hide()) );
- connect( napp, TQT_SIGNAL(showYourself()), this, TQT_SLOT(show()) );
+ connect( napp, TQ_SIGNAL(hideYourself()), this, TQ_SLOT(hide()) );
+ connect( napp, TQ_SIGNAL(showYourself()), this, TQ_SLOT(show()) );
- connect(napp->player(), TQT_SIGNAL(playing()), this, TQT_SLOT(slotPlaying()));
- connect(napp->player(), TQT_SIGNAL(stopped()), this, TQT_SLOT(slotStopped()));
- connect(napp->player(), TQT_SIGNAL(paused()), this, TQT_SLOT(slotPaused()));
+ connect(napp->player(), TQ_SIGNAL(playing()), this, TQ_SLOT(slotPlaying()));
+ connect(napp->player(), TQ_SIGNAL(stopped()), this, TQ_SLOT(slotStopped()));
+ connect(napp->player(), TQ_SIGNAL(paused()), this, TQ_SLOT(slotPaused()));
napp->player()->handleButtons();
- connect(napp->player(), TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeout()));
- connect(napp->player(), TQT_SIGNAL(loopTypeChange(int)), this, TQT_SLOT(slotLoopTypeChanged(int)));
+ connect(napp->player(), TQ_SIGNAL(timeout()), this, TQ_SLOT(slotTimeout()));
+ connect(napp->player(), TQ_SIGNAL(loopTypeChange(int)), this, TQ_SLOT(slotLoopTypeChanged(int)));
/* This skipToWrapper is needed to pass milliseconds to Player() as everybody
* below the GUI is based on milliseconds instead of some unprecise thingy
* like seconds or mille */
- connect(slider, TQT_SIGNAL(userChanged(int)), this, TQT_SLOT(skipToWrapper(int)));
- connect(this, TQT_SIGNAL(skipTo(int)), napp->player(), TQT_SLOT(skipTo(int)));
+ connect(slider, TQ_SIGNAL(userChanged(int)), this, TQ_SLOT(skipToWrapper(int)));
+ connect(this, TQ_SIGNAL(skipTo(int)), napp->player(), TQ_SLOT(skipTo(int)));
- connect(slider, TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(sliderMoved(int)));
+ connect(slider, TQ_SIGNAL(sliderMoved(int)), TQ_SLOT(sliderMoved(int)));
setCaption("Noatun");
setIcon(SmallIcon("noatun"));
@@ -248,7 +248,7 @@ bool Excellent::eventFilter(TQObject *o, TQEvent *e)
{
if (e->type() == TQEvent::Wheel)
{
- wheelEvent(TQT_TQWHEELEVENT(e));
+ wheelEvent(static_cast<TQWheelEvent*>(e));
return true;
}
return TQWidget::eventFilter(o, e);
@@ -373,11 +373,11 @@ void Excellent::handleLengthString(const TQString &text)
void Excellent::growVolumeControl(void)
{
- volumeSlider = new L33tSlider(0, 100, 10, 0,Qt::Vertical, mainFrame);
+ volumeSlider = new L33tSlider(0, 100, 10, 0,TQt::Vertical, mainFrame);
volumeSlider->setValue(100 - napp->player()->volume());
volumeSlider->show();
- connect(volumeSlider, TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(changeVolume(int)));
- connect(volumeSlider, TQT_SIGNAL(userChanged(int)), TQT_SLOT(changeVolume(int)));
+ connect(volumeSlider, TQ_SIGNAL(sliderMoved(int)), TQ_SLOT(changeVolume(int)));
+ connect(volumeSlider, TQ_SIGNAL(userChanged(int)), TQ_SLOT(changeVolume(int)));
}
void Excellent::shrinkVolumeControl(void)
diff --git a/noatun/modules/excellent/userinterface.h b/noatun/modules/excellent/userinterface.h
index a5aca1a1..79a1a2da 100644
--- a/noatun/modules/excellent/userinterface.h
+++ b/noatun/modules/excellent/userinterface.h
@@ -49,7 +49,7 @@ class TDEToggleAction;
*/
class Excellent : public TDEMainWindow, public UserInterface
{
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/noatun/modules/htmlexport/htmlexport.cpp b/noatun/modules/htmlexport/htmlexport.cpp
index bc2399cc..b256b421 100644
--- a/noatun/modules/htmlexport/htmlexport.cpp
+++ b/noatun/modules/htmlexport/htmlexport.cpp
@@ -18,7 +18,7 @@ HTMLExport::HTMLExport(): TQObject(0, "HTMLExport"), Plugin()
NOATUNPLUGINC(HTMLExport);
mAction = new TDEAction(i18n("&Export Playlist..."), "document-save-as", 0,
- this, TQT_SLOT(slotExport()), this, "exportlist");
+ this, TQ_SLOT(slotExport()), this, "exportlist");
napp->pluginActionMenu()->insert(mAction);
new Prefs(this);
diff --git a/noatun/modules/htmlexport/htmlexport.h b/noatun/modules/htmlexport/htmlexport.h
index c5928ed7..f2262faf 100644
--- a/noatun/modules/htmlexport/htmlexport.h
+++ b/noatun/modules/htmlexport/htmlexport.h
@@ -33,7 +33,7 @@ class TDEAction;
class HTMLExport : public TQObject, public Plugin
{
-Q_OBJECT
+TQ_OBJECT
NOATUNPLUGIND
public:
@@ -54,7 +54,7 @@ private slots:
class Prefs : public CModule
{
-Q_OBJECT
+TQ_OBJECT
public:
Prefs(TQObject *parent);
diff --git a/noatun/modules/infrared/infrared.cpp b/noatun/modules/infrared/infrared.cpp
index bd8a65bd..92ae3c4f 100644
--- a/noatun/modules/infrared/infrared.cpp
+++ b/noatun/modules/infrared/infrared.cpp
@@ -28,12 +28,12 @@ InfraRed::InfraRed()
NOATUNPLUGINC(InfraRed);
m_lirc = new Lirc(this);
connect(m_lirc,
- TQT_SIGNAL(commandReceived(const TQString &, const TQString &, int)),
- TQT_SLOT(slotCommand(const TQString &, const TQString &, int)));
+ TQ_SIGNAL(commandReceived(const TQString &, const TQString &, int)),
+ TQ_SLOT(slotCommand(const TQString &, const TQString &, int)));
IRPrefs::s_lirc = m_lirc;
volume=0;
- TQTimer::singleShot(0, this, TQT_SLOT(start()));
+ TQTimer::singleShot(0, this, TQ_SLOT(start()));
}
InfraRed::~InfraRed()
diff --git a/noatun/modules/infrared/infrared.h b/noatun/modules/infrared/infrared.h
index a8c9bd56..df3883d8 100644
--- a/noatun/modules/infrared/infrared.h
+++ b/noatun/modules/infrared/infrared.h
@@ -10,7 +10,7 @@ class Lirc;
class InfraRed : public TQObject, public Plugin
{
-Q_OBJECT
+TQ_OBJECT
NOATUNPLUGIND
public:
diff --git a/noatun/modules/infrared/irprefs.cpp b/noatun/modules/infrared/irprefs.cpp
index 06a1ade4..50df64cd 100644
--- a/noatun/modules/infrared/irprefs.cpp
+++ b/noatun/modules/infrared/irprefs.cpp
@@ -84,19 +84,19 @@ IRPrefs::IRPrefs(TQObject *parent)
m_interval->setEnabled(false);
layout->addWidget(m_interval, 2, 4);
- connect(s_lirc, TQT_SIGNAL(remotesRead()), TQT_SLOT(reopen()));
+ connect(s_lirc, TQ_SIGNAL(remotesRead()), TQ_SLOT(reopen()));
connect(m_commands,
- TQT_SIGNAL(selectionChanged(TQListViewItem *)),
- TQT_SLOT(slotCommandSelected(TQListViewItem *)));
+ TQ_SIGNAL(selectionChanged(TQListViewItem *)),
+ TQ_SLOT(slotCommandSelected(TQListViewItem *)));
connect(m_action,
- TQT_SIGNAL(activated(int)),
- TQT_SLOT(slotActionActivated(int)));
+ TQ_SIGNAL(activated(int)),
+ TQ_SLOT(slotActionActivated(int)));
connect(m_repeat,
- TQT_SIGNAL(toggled(bool)),
- TQT_SLOT(slotRepeatToggled(bool)));
+ TQ_SIGNAL(toggled(bool)),
+ TQ_SLOT(slotRepeatToggled(bool)));
connect(m_interval,
- TQT_SIGNAL(valueChanged(int)),
- TQT_SLOT(slotIntervalChanged(int)));
+ TQ_SIGNAL(valueChanged(int)),
+ TQ_SLOT(slotIntervalChanged(int)));
reopen();
}
diff --git a/noatun/modules/infrared/irprefs.h b/noatun/modules/infrared/irprefs.h
index 6646456e..925cf638 100644
--- a/noatun/modules/infrared/irprefs.h
+++ b/noatun/modules/infrared/irprefs.h
@@ -14,7 +14,7 @@ class Lirc;
class IRPrefs : public CModule
{
-Q_OBJECT
+TQ_OBJECT
public:
enum Action
diff --git a/noatun/modules/infrared/lirc.cpp b/noatun/modules/infrared/lirc.cpp
index 2487278b..2a6e2ec5 100644
--- a/noatun/modules/infrared/lirc.cpp
+++ b/noatun/modules/infrared/lirc.cpp
@@ -34,7 +34,7 @@ Lirc::Lirc(TQObject *parent)
m_socket = new TQSocket;
m_socket->setSocket(sock);
- connect(m_socket, TQT_SIGNAL(readyRead()), TQT_SLOT(slotRead()));
+ connect(m_socket, TQ_SIGNAL(readyRead()), TQ_SLOT(slotRead()));
update();
}
diff --git a/noatun/modules/infrared/lirc.h b/noatun/modules/infrared/lirc.h
index c770cbac..4b455da5 100644
--- a/noatun/modules/infrared/lirc.h
+++ b/noatun/modules/infrared/lirc.h
@@ -12,7 +12,7 @@ typedef TQMap<TQString, TQStringList> Remotes;
class Lirc : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
public:
/**
diff --git a/noatun/modules/kaiman/SKIN-SPECS b/noatun/modules/kaiman/SKIN-SPECS
index ae293014..bc3533ad 100644
--- a/noatun/modules/kaiman/SKIN-SPECS
+++ b/noatun/modules/kaiman/SKIN-SPECS
@@ -247,7 +247,7 @@ Digit_Large/Digit_Small_Default: filename
Image file. Contains digits horizontally from 0 to 9, and a blank space.
These two digits are a convenience function, if you want to use a digit more than
- once it is quicker to load it into on of these two Q_SLOTS. Then when using the digit
+ once it is quicker to load it into on of these two slots. Then when using the digit
in the number item type below, use the words 'Large' or 'Small' in place of the
filename.
diff --git a/noatun/modules/kaiman/pref.h b/noatun/modules/kaiman/pref.h
index 50ab3808..6917f879 100644
--- a/noatun/modules/kaiman/pref.h
+++ b/noatun/modules/kaiman/pref.h
@@ -26,7 +26,7 @@ class TQLabel;
class KaimanPrefDlg : public CModule
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanPrefDlg( TQObject *parent );
diff --git a/noatun/modules/kaiman/style.cpp b/noatun/modules/kaiman/style.cpp
index a11f569b..87fc3f56 100644
--- a/noatun/modules/kaiman/style.cpp
+++ b/noatun/modules/kaiman/style.cpp
@@ -646,7 +646,7 @@ KaimanStyleText::KaimanStyleText(TQWidget *parent, const char *name)
_pos = 0;
_timer = new TQTimer( this );
_delay = 500;
- connect( _timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeout()) );
+ connect( _timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timeout()) );
}
KaimanStyleText::~KaimanStyleText()
@@ -741,7 +741,7 @@ KaimanStyleAnimation::KaimanStyleAnimation(int delay, TQWidget *parent, const ch
_delay = delay;
_frame = 0;
_timer = new TQTimer( this );
- connect( _timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeout()) );
+ connect( _timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timeout()) );
}
KaimanStyleAnimation::~KaimanStyleAnimation()
@@ -1400,13 +1400,13 @@ bool KaimanStyle::eventFilter( TQObject *o, TQEvent *e )
TQMouseEvent *m = (TQMouseEvent*)e;
// handle noatun context menu
- if (m->button()==Qt::RightButton) {
+ if (m->button()==TQt::RightButton) {
NoatunStdAction::ContextMenu::showContextMenu();
return true;
}
- TQPoint mousePos( m->x()+TQT_TQWIDGET(o)->x(),
- m->y()+TQT_TQWIDGET(o)->y() );
+ TQPoint mousePos( m->x()+static_cast<TQWidget*>(o)->x(),
+ m->y()+static_cast<TQWidget*>(o)->y() );
TQWidget *slider = 0;
/* find slider that is under the mouse position */
diff --git a/noatun/modules/kaiman/style.h b/noatun/modules/kaiman/style.h
index 160dee8b..f3489448 100644
--- a/noatun/modules/kaiman/style.h
+++ b/noatun/modules/kaiman/style.h
@@ -30,7 +30,7 @@
class KaimanStyleElement : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleElement(TQWidget *parent, const char *name=0);
@@ -71,7 +71,7 @@ private:
class KaimanStyleMasked : public KaimanStyleElement
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleMasked(TQWidget *parent, const char *name=0)
@@ -88,7 +88,7 @@ public:
class KaimanStyleButton : public KaimanStyleMasked
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleButton(TQWidget *parent, const char *name=0);
@@ -126,7 +126,7 @@ private:
class KaimanStyleSlider : public KaimanStyleMasked
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleSlider(int min, int max, TQWidget *parent, const char *name=0);
@@ -165,7 +165,7 @@ protected:
class KaimanStyleBackground : public KaimanStyleMasked
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleBackground(TQWidget *parent, const char *name=0);
@@ -185,7 +185,7 @@ private:
class KaimanStyleValue : public KaimanStyleMasked
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleValue(int min, int max, TQWidget *parent, const char *name=0);
@@ -204,7 +204,7 @@ private:
class KaimanStyleState : public KaimanStyleMasked
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleState(TQWidget *parent, const char *name=0);
@@ -228,7 +228,7 @@ private:
class KaimanStyleNumber : public KaimanStyleElement
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleNumber(TQWidget *parent, const char *name=0);
@@ -253,7 +253,7 @@ private:
class KaimanStyleText : public KaimanStyleElement
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleText(TQWidget *parent, const char *name=0);
@@ -288,7 +288,7 @@ private:
class KaimanStyleAnimation : public KaimanStyleMasked
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyleAnimation(int delay, TQWidget *parent, const char *name=0);
@@ -309,7 +309,7 @@ private:
class KaimanStyle : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
KaimanStyle(TQWidget *parent, const char *name=0);
diff --git a/noatun/modules/kaiman/userinterface.cpp b/noatun/modules/kaiman/userinterface.cpp
index 9f502178..bed68ec6 100644
--- a/noatun/modules/kaiman/userinterface.cpp
+++ b/noatun/modules/kaiman/userinterface.cpp
@@ -92,27 +92,27 @@ Kaiman::Kaiman()
if ( !changeStyle( DEFAULT_SKIN, "skindata" ) )
{
KMessageBox::error( this, i18n("Cannot load default skin %1.").arg(DEFAULT_SKIN) );
- TQTimer::singleShot( 0, this, TQT_SLOT(close()) );
+ TQTimer::singleShot( 0, this, TQ_SLOT(close()) );
return;
}
}
// global connects
- connect( napp, TQT_SIGNAL(hideYourself()), this, TQT_SLOT(hide()) );
- connect( napp, TQT_SIGNAL(showYourself()), this, TQT_SLOT(show()) );
+ connect( napp, TQ_SIGNAL(hideYourself()), this, TQ_SLOT(hide()) );
+ connect( napp, TQ_SIGNAL(showYourself()), this, TQ_SLOT(show()) );
- connect( napp->player(), TQT_SIGNAL(playing()), this, TQT_SLOT(updateMode()));
- connect( napp->player(), TQT_SIGNAL(stopped()), this, TQT_SLOT(updateMode()));
- connect( napp->player(), TQT_SIGNAL(paused()), this, TQT_SLOT(updateMode()));
- connect( napp->player(), TQT_SIGNAL(timeout()), this, TQT_SLOT(timeout()));
- connect( napp->player(), TQT_SIGNAL(loopTypeChange(int)), this, TQT_SLOT(loopTypeChange(int)));
- connect( napp->player(), TQT_SIGNAL(newSongLen(int,int)), this, TQT_SLOT(newSongLen(int,int)));
- connect( napp->player(), TQT_SIGNAL(newSong()), this, TQT_SLOT(newSong()));
+ connect( napp->player(), TQ_SIGNAL(playing()), this, TQ_SLOT(updateMode()));
+ connect( napp->player(), TQ_SIGNAL(stopped()), this, TQ_SLOT(updateMode()));
+ connect( napp->player(), TQ_SIGNAL(paused()), this, TQ_SLOT(updateMode()));
+ connect( napp->player(), TQ_SIGNAL(timeout()), this, TQ_SLOT(timeout()));
+ connect( napp->player(), TQ_SIGNAL(loopTypeChange(int)), this, TQ_SLOT(loopTypeChange(int)));
+ connect( napp->player(), TQ_SIGNAL(newSongLen(int,int)), this, TQ_SLOT(newSongLen(int,int)));
+ connect( napp->player(), TQ_SIGNAL(newSong()), this, TQ_SLOT(newSong()));
if( napp->player()->isPlaying() )
newSong();
- new KaimanPrefDlg(TQT_TQOBJECT(this));
+ new KaimanPrefDlg(this);
show();
}
@@ -174,64 +174,64 @@ bool Kaiman::loadStyle( const TQString &style, const TQString &desc )
}
item = _style->find("Playlist_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(toggleListView()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(toggleListView()) );
item = _style->find("Play_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(playpause()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(playpause()) );
item = _style->find("Pause_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(playpause()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(playpause()) );
item = _style->find("Stop_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(stop()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(stop()) );
item = _style->find("Next_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(forward()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(forward()) );
item = _style->find("Prev_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(back()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(back()) );
item = _style->find("Exit_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), this, TQT_SLOT(close()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), this, TQ_SLOT(close()) );
item = _style->find("Mixer_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), this, TQT_SLOT(execMixer()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), this, TQ_SLOT(execMixer()) );
item = _style->find("Iconify_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), this, TQT_SLOT(showMinimized()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), this, TQ_SLOT(showMinimized()) );
item = _style->find("Alt_Skin_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), this, TQT_SLOT(toggleSkin()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), this, TQ_SLOT(toggleSkin()) );
item = _style->find("Repeat_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), this, TQT_SLOT(toggleLoop()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), this, TQ_SLOT(toggleLoop()) );
item = _style->find("Shuffle_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), this, TQT_SLOT(toggleShuffle()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), this, TQ_SLOT(toggleShuffle()) );
item = _style->find("Config_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), napp, TQT_SLOT(preferences()) );
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), napp, TQ_SLOT(preferences()) );
item = _style->find("Volume_Up_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), this,TQT_SLOT(volumeUp()));
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), this,TQ_SLOT(volumeUp()));
item = _style->find("Volume_Down_Button");
- if( item!=0 ) connect( item, TQT_SIGNAL(clicked()), this,TQT_SLOT(volumeDown()));
+ if( item!=0 ) connect( item, TQ_SIGNAL(clicked()), this,TQ_SLOT(volumeDown()));
KaimanStyleSlider* slider =
static_cast<KaimanStyleSlider*>(_style->find("Position_Slider"));
if( slider!=0 )
{
- connect( slider, TQT_SIGNAL(newValueDrag(int)), this, TQT_SLOT(seekStart(int)) );
- connect( slider, TQT_SIGNAL(newValue(int)), this, TQT_SLOT(seekDrag(int)) );
- connect( slider, TQT_SIGNAL(newValueDrop(int)), this, TQT_SLOT(seekStop(int)) );
+ connect( slider, TQ_SIGNAL(newValueDrag(int)), this, TQ_SLOT(seekStart(int)) );
+ connect( slider, TQ_SIGNAL(newValue(int)), this, TQ_SLOT(seekDrag(int)) );
+ connect( slider, TQ_SIGNAL(newValueDrop(int)), this, TQ_SLOT(seekStop(int)) );
slider->setValue( 0, 0, 1000 );
}
slider = static_cast<KaimanStyleSlider*>(_style->find("Volume_Slider"));
if ( slider!=0 )
{
- connect(slider, TQT_SIGNAL(newValue(int)), this, TQT_SLOT(setVolume(int)));
+ connect(slider, TQ_SIGNAL(newValue(int)), this, TQ_SLOT(setVolume(int)));
slider->setValue( napp->player()->volume(), 0, 100 );
}
diff --git a/noatun/modules/kaiman/userinterface.h b/noatun/modules/kaiman/userinterface.h
index f4f712a4..0d10a34d 100644
--- a/noatun/modules/kaiman/userinterface.h
+++ b/noatun/modules/kaiman/userinterface.h
@@ -34,7 +34,7 @@ class Player;
*/
class Kaiman : public TDEMainWindow, public UserInterface
{
-Q_OBJECT
+TQ_OBJECT
public:
Kaiman();
diff --git a/noatun/modules/keyz/keyz.cpp b/noatun/modules/keyz/keyz.cpp
index 420ccd01..613274e5 100644
--- a/noatun/modules/keyz/keyz.cpp
+++ b/noatun/modules/keyz/keyz.cpp
@@ -32,56 +32,56 @@ Keyz::Keyz() : TQObject( 0L, "Keyz" ), Plugin(), preMuteVol(0)
s_accel = new TDEGlobalAccel( this, "noatunglobalaccel" );
s_accel->insert( "PlayPause", i18n("Play/Pause"), TQString(),
CTRL+ALT+Key_P, KKey::QtWIN+CTRL+Key_P,
- player, TQT_SLOT( playpause() ));
+ player, TQ_SLOT( playpause() ));
s_accel->insert( "Stop", i18n("Stop Playing"), TQString(),
CTRL+ALT+Key_S, KKey::QtWIN+CTRL+Key_S,
- player, TQT_SLOT( stop() ));
+ player, TQ_SLOT( stop() ));
s_accel->insert( "Back", i18n("Back"), TQString(),
CTRL+ALT+Key_Left, KKey::QtWIN+CTRL+Key_Left,
- player, TQT_SLOT( back() ));
+ player, TQ_SLOT( back() ));
s_accel->insert( "Forward", i18n("Forward"), TQString(),
CTRL+ALT+Key_Right, KKey::QtWIN+CTRL+Key_Right,
- player, TQT_SLOT( forward() ));
+ player, TQ_SLOT( forward() ));
s_accel->insert( "Playlist", i18n("Show/Hide Playlist"), TQString(),
CTRL+ALT+Key_L, KKey::QtWIN+CTRL+Key_L,
- player, TQT_SLOT( toggleListView() ));
+ player, TQ_SLOT( toggleListView() ));
s_accel->insert( "OpenFile", i18n("Open File to Play"), TQString(),
CTRL+ALT+Key_O, KKey::QtWIN+CTRL+Key_O,
- TQT_TQOBJECT(napp), TQT_SLOT( fileOpen() ));
+ napp, TQ_SLOT( fileOpen() ));
s_accel->insert( "Effects", i18n("Effects Configuration"), TQString(),
CTRL+ALT+Key_E, KKey::QtWIN+CTRL+Key_E,
- TQT_TQOBJECT(napp), TQT_SLOT( effectView() ));
+ napp, TQ_SLOT( effectView() ));
s_accel->insert( "Preferences", i18n("Preferences"), TQString(),
CTRL+ALT+Key_F, KKey::QtWIN+CTRL+Key_F,
- TQT_TQOBJECT(napp), TQT_SLOT( preferences() ));
+ napp, TQ_SLOT( preferences() ));
s_accel->insert( "VolumeUp", i18n("Volume Up"), TQString(),
CTRL+ALT+SHIFT+Key_Up, KKey::QtWIN+CTRL+SHIFT+Key_Up,
- this, TQT_SLOT( slotVolumeUp() ));
+ this, TQ_SLOT( slotVolumeUp() ));
s_accel->insert( "VolumeDown", i18n("Volume Down"), TQString(),
CTRL+ALT+SHIFT+Key_Down, KKey::QtWIN+CTRL+SHIFT+Key_Down,
- this, TQT_SLOT( slotVolumeDown() ));
+ this, TQ_SLOT( slotVolumeDown() ));
s_accel->insert( "Mute", i18n("Mute"), TQString(),
CTRL+ALT+Key_M, KKey::QtWIN+CTRL+Key_M,
- this, TQT_SLOT( slotMute() ));
+ this, TQ_SLOT( slotMute() ));
s_accel->insert( "SeekForward", i18n("Seek Forward"), TQString(),
CTRL+ALT+SHIFT+Key_Right, KKey::QtWIN+CTRL+SHIFT+Key_Right,
- this, TQT_SLOT( slotForward() ));
+ this, TQ_SLOT( slotForward() ));
s_accel->insert( "SeekBackward", i18n("Seek Backward"), TQString(),
CTRL+ALT+SHIFT+Key_Left, KKey::QtWIN+CTRL+SHIFT+Key_Left,
- this, TQT_SLOT( slotBackward() ));
+ this, TQ_SLOT( slotBackward() ));
s_accel->insert( "NextSection", i18n("Next Section"), TQString(),
0, 0,
- this, TQT_SLOT( slotNextSection() ));
+ this, TQ_SLOT( slotNextSection() ));
s_accel->insert( "PrevSection", i18n("Previous Section"), TQString(),
0, 0,
- this, TQT_SLOT( slotPrevSection() ));
+ this, TQ_SLOT( slotPrevSection() ));
s_accel->insert( "CopyTitle", i18n("Copy Song Title to Clipboard"), TQString(),
CTRL+ALT+Key_C, KKey::QtWIN+CTRL+Key_C,
- this, TQT_SLOT( slotCopyTitle() ));
+ this, TQ_SLOT( slotCopyTitle() ));
s_accel->insert( "ToggleGUI", i18n("Show/Hide Main Window"), TQString(),
CTRL+ALT+Key_W, KKey::QtWIN+CTRL+Key_W,
- TQT_TQOBJECT(napp), TQT_SLOT( toggleInterfaces() ));
+ napp, TQ_SLOT( toggleInterfaces() ));
s_accel->readSettings();
s_accel->updateConnections();
diff --git a/noatun/modules/keyz/keyz.h b/noatun/modules/keyz/keyz.h
index 2145448b..f137fcbd 100644
--- a/noatun/modules/keyz/keyz.h
+++ b/noatun/modules/keyz/keyz.h
@@ -6,7 +6,7 @@
class Keyz : public TQObject, public Plugin
{
- Q_OBJECT
+ TQ_OBJECT
NOATUNPLUGIND
@@ -35,7 +35,7 @@ private:
class KeyzPrefs : public CModule
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/kjofol-skin/kjbutton.cpp b/noatun/modules/kjofol-skin/kjbutton.cpp
index 306a82fc..31e1ad96 100644
--- a/noatun/modules/kjofol-skin/kjbutton.cpp
+++ b/noatun/modules/kjofol-skin/kjbutton.cpp
@@ -87,18 +87,18 @@ KJButton::KJButton(const TQStringList &i, KJLoader *parent)
if (mTitle=="playlistbutton")
{
mShowPressed = napp->playlist()->listVisible();
- connect( napp->player(), TQT_SIGNAL(playlistShown()), this, TQT_SLOT(slotPlaylistShown()) );
- connect( napp->player(), TQT_SIGNAL(playlistHidden()), this, TQT_SLOT(slotPlaylistHidden()) );
+ connect( napp->player(), TQ_SIGNAL(playlistShown()), this, TQ_SLOT(slotPlaylistShown()) );
+ connect( napp->player(), TQ_SIGNAL(playlistHidden()), this, TQ_SLOT(slotPlaylistHidden()) );
}
else if ( mTitle=="equalizeroffbutton") // same goes for EQ buttons
{
mShowPressed = (!napp->vequalizer()->isEnabled());
- connect( napp->vequalizer(), TQT_SIGNAL(enabled(bool)), TQT_SLOT(slotEqEnabled(bool)));
+ connect( napp->vequalizer(), TQ_SIGNAL(enabled(bool)), TQ_SLOT(slotEqEnabled(bool)));
}
else if (mTitle=="equalizeronbutton")
{
mShowPressed = napp->vequalizer()->isEnabled();
- connect( napp->vequalizer(), TQT_SIGNAL(enabled(bool)), TQT_SLOT(slotEqEnabled(bool)));
+ connect( napp->vequalizer(), TQ_SIGNAL(enabled(bool)), TQ_SLOT(slotEqEnabled(bool)));
}
}
diff --git a/noatun/modules/kjofol-skin/kjbutton.h b/noatun/modules/kjofol-skin/kjbutton.h
index 28dcf355..c6e6ae40 100644
--- a/noatun/modules/kjofol-skin/kjbutton.h
+++ b/noatun/modules/kjofol-skin/kjbutton.h
@@ -7,7 +7,7 @@ class KJLoader;
class KJButton : public TQObject, public KJWidget
{
-Q_OBJECT
+TQ_OBJECT
public:
KJButton(const TQStringList&, KJLoader *);
diff --git a/noatun/modules/kjofol-skin/kjequalizer.cpp b/noatun/modules/kjofol-skin/kjequalizer.cpp
index d7d2b9fa..c82d1a93 100644
--- a/noatun/modules/kjofol-skin/kjequalizer.cpp
+++ b/noatun/modules/kjofol-skin/kjequalizer.cpp
@@ -47,7 +47,7 @@ KJEqualizer::KJEqualizer(const TQStringList &l, KJLoader *p)
kdDebug(66666) << "[KJEqualizer] creating VInterpolation for " << mBands << " bands..." << endl;
mInterpEq = new VInterpolation(mBands);
// napp->vequalizer()->setBands(mBands); // FIXME: hack because spline sucks :P
- connect(napp->vequalizer(), TQT_SIGNAL(changed()), this, TQT_SLOT(slotUpdateBuffer()));
+ connect(napp->vequalizer(), TQ_SIGNAL(changed()), this, TQ_SLOT(slotUpdateBuffer()));
slotUpdateBuffer(); // fill mView pixmap with valid data
}
diff --git a/noatun/modules/kjofol-skin/kjequalizer.h b/noatun/modules/kjofol-skin/kjequalizer.h
index 7415ef2f..6331e285 100644
--- a/noatun/modules/kjofol-skin/kjequalizer.h
+++ b/noatun/modules/kjofol-skin/kjequalizer.h
@@ -10,7 +10,7 @@ class VInterpolation;
class KJEqualizer : public TQObject, public KJWidget
{
-Q_OBJECT
+TQ_OBJECT
public:
KJEqualizer(const TQStringList &, KJLoader *parent);
diff --git a/noatun/modules/kjofol-skin/kjguisettingswidget.ui b/noatun/modules/kjofol-skin/kjguisettingswidget.ui
index c621cfb1..f46e2111 100644
--- a/noatun/modules/kjofol-skin/kjguisettingswidget.ui
+++ b/noatun/modules/kjofol-skin/kjguisettingswidget.ui
@@ -456,10 +456,8 @@
<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in implementation">kcolorcombo.h</include>
+ <include location="global" impldecl="in implementation">klineedit.h</include>
<include location="global" impldecl="in implementation">knuminput.h</include>
<include location="global" impldecl="in implementation">tdefontcombo.h</include>
</includes>
-<includehints>
- <includehint>klineedit.h</includehint>
-</includehints>
</UI>
diff --git a/noatun/modules/kjofol-skin/kjloader.cpp b/noatun/modules/kjofol-skin/kjloader.cpp
index 9db30363..293dca96 100644
--- a/noatun/modules/kjofol-skin/kjloader.cpp
+++ b/noatun/modules/kjofol-skin/kjloader.cpp
@@ -131,8 +131,8 @@ KJLoader::KJLoader()
subwidgets.setAutoDelete(true);
- mPrefs = new KJPrefs(TQT_TQOBJECT(this));
- connect ( mPrefs, TQT_SIGNAL(configChanged()), this, TQT_SLOT(readConfig()) );
+ mPrefs = new KJPrefs(this);
+ connect ( mPrefs, TQ_SIGNAL(configChanged()), this, TQ_SLOT(readConfig()) );
TQString skin = mPrefs->skin();
if ( TQFile(skin).exists() )
@@ -147,13 +147,13 @@ KJLoader::KJLoader()
}
mHelpMenu = new KHelpMenu(this, kapp->aboutData());
- connect(napp->player(), TQT_SIGNAL(timeout()), TQT_SLOT(timeUpdate()));
- connect(napp->player(), TQT_SIGNAL(stopped()), TQT_SLOT(timeUpdate()));
- connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(newSong()));
+ connect(napp->player(), TQ_SIGNAL(timeout()), TQ_SLOT(timeUpdate()));
+ connect(napp->player(), TQ_SIGNAL(stopped()), TQ_SLOT(timeUpdate()));
+ connect(napp->player(), TQ_SIGNAL(newSong()), TQ_SLOT(newSong()));
- connect(napp, TQT_SIGNAL(hideYourself()), TQT_SLOT(hide()));
- connect(napp, TQT_SIGNAL(showYourself()), TQT_SLOT(show()));
-// KStdAction::quit(napp, TQT_SLOT(quit()), actionCollection());
+ connect(napp, TQ_SIGNAL(hideYourself()), TQ_SLOT(hide()));
+ connect(napp, TQ_SIGNAL(showYourself()), TQ_SLOT(show()));
+// KStdAction::quit(napp, TQ_SLOT(quit()), actionCollection());
TQApplication::restoreOverrideCursor();
// newSong();
@@ -371,7 +371,7 @@ void KJLoader::loadSkin(const TQString &file)
// I cant believe it, there are skins without a seeker, now THATS stupid :)
if (exist("seekregion"))
- TQTimer::singleShot(0, this, TQT_SLOT(loadSeeker()));
+ TQTimer::singleShot(0, this, TQ_SLOT(loadSeeker()));
// all the regular buttons
for (TQDictIterator<TQStringList> i(*this); i.current(); ++i)
@@ -487,11 +487,11 @@ void KJLoader::switchToDockmode()
// kdDebug(66666) << "KJLoader::switchToDockmode()" << endl;
loadSkin( mCurrentDockModeSkin );
- connect(mWin, TQT_SIGNAL(activeWindowChanged(WId)), this, TQT_SLOT(slotWindowActivate(WId)));
- connect(mWin, TQT_SIGNAL(windowRemoved(WId)), this, TQT_SLOT(slotWindowRemove(WId)));
- connect(mWin, TQT_SIGNAL(stackingOrderChanged()), this, TQT_SLOT(slotStackingChanged()));
- connect(mWin, TQT_SIGNAL(windowChanged(WId)), this, TQT_SLOT(slotWindowChange(WId)));
- connect(mWin, TQT_SIGNAL(currentDesktopChanged(int)), this, TQT_SLOT(slotDesktopChange(int)));
+ connect(mWin, TQ_SIGNAL(activeWindowChanged(WId)), this, TQ_SLOT(slotWindowActivate(WId)));
+ connect(mWin, TQ_SIGNAL(windowRemoved(WId)), this, TQ_SLOT(slotWindowRemove(WId)));
+ connect(mWin, TQ_SIGNAL(stackingOrderChanged()), this, TQ_SLOT(slotStackingChanged()));
+ connect(mWin, TQ_SIGNAL(windowChanged(WId)), this, TQ_SLOT(slotWindowChange(WId)));
+ connect(mWin, TQ_SIGNAL(currentDesktopChanged(int)), this, TQ_SLOT(slotDesktopChange(int)));
WId activeWin = mWin->activeWindow();
if (activeWin && (activeWin != winId()))
@@ -676,7 +676,7 @@ void KJLoader::slotStackingChanged()
// We seem to get this signal before the window has been restacked,
// so we just schedule a restack.
- TQTimer::singleShot ( 10, this, TQT_SLOT(restack()) );
+ TQTimer::singleShot ( 10, this, TQ_SLOT(restack()) );
// kdDebug(66666) << "END slotStackingChanged()" << endl;
}
@@ -742,7 +742,7 @@ void KJLoader::mousePressEvent(TQMouseEvent *e)
// TQWidget::mousePressEvent(e);
- if ( e->button()==Qt::RightButton )
+ if ( e->button()==TQt::RightButton )
NoatunStdAction::ContextMenu::showContextMenu();
else /* if ( e->button()==LeftButton ) */
{
@@ -822,7 +822,7 @@ void KJLoader::showSplash()
splashScreen->show();
napp->processEvents(); // we want this one time to get the splash actually displayed ASAP
- TQTimer::singleShot(3000, this, TQT_SLOT(hideSplash()) );
+ TQTimer::singleShot(3000, this, TQ_SLOT(hideSplash()) );
}
void KJLoader::hideSplash()
diff --git a/noatun/modules/kjofol-skin/kjloader.h b/noatun/modules/kjofol-skin/kjloader.h
index 27af10a3..1c8bf6fc 100644
--- a/noatun/modules/kjofol-skin/kjloader.h
+++ b/noatun/modules/kjofol-skin/kjloader.h
@@ -32,7 +32,7 @@ class KJPrefs;
class KJLoader : public TQWidget, public UserInterface, public Parser
{
-Q_OBJECT
+TQ_OBJECT
NOATUNPLUGIND
diff --git a/noatun/modules/kjofol-skin/kjprefs.cpp b/noatun/modules/kjofol-skin/kjprefs.cpp
index cb341ea3..04670fe0 100644
--- a/noatun/modules/kjofol-skin/kjprefs.cpp
+++ b/noatun/modules/kjofol-skin/kjprefs.cpp
@@ -63,9 +63,9 @@ KJPrefs::KJPrefs(TQObject* parent)
mTabWidget->insertTab( mSkinselectorWidget, i18n("&Skin Selector") );
mTabWidget->insertTab( mGuiSettingsWidget, i18n("O&ther Settings") );
- connect ( mSkinselectorWidget->mSkins, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT(showPreview(const TQString&)) );
- connect ( mSkinselectorWidget->installButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(installNewSkin()) );
- connect ( mSkinselectorWidget->mRemoveButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(removeSelectedSkin()) );
+ connect ( mSkinselectorWidget->mSkins, TQ_SIGNAL(activated(const TQString&)), TQ_SLOT(showPreview(const TQString&)) );
+ connect ( mSkinselectorWidget->installButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(installNewSkin()) );
+ connect ( mSkinselectorWidget->mRemoveButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(removeSelectedSkin()) );
reopen(); // fill the skinlist and draw a preview
}
@@ -488,7 +488,7 @@ void KJPrefs::installNewSkin( void )
kdDebug(66666) << "src: " << src.path().latin1() << endl;
kdDebug(66666) << "dst: " << dst.path().latin1() << endl;
TDEIO::Job *job = TDEIO::copy(src,dst);
- connect ( job, TQT_SIGNAL(result(TDEIO::Job*)), this, TQT_SLOT(slotResult(TDEIO::Job*)) );
+ connect ( job, TQ_SIGNAL(result(TDEIO::Job*)), this, TQ_SLOT(slotResult(TDEIO::Job*)) );
skinInstalled = true;
}
} // END iterate trough dirList
@@ -555,7 +555,7 @@ void KJPrefs::removeSelectedSkin( void )
{
kdDebug(66666) << "Deleting Skindir: " << dirToDelete.latin1() << endl;
TDEIO::Job *job = TDEIO::del( dirToDelete, false, true );
- connect ( job, TQT_SIGNAL(result(TDEIO::Job*)), this, TQT_SLOT(slotResult(TDEIO::Job*)) );
+ connect ( job, TQ_SIGNAL(result(TDEIO::Job*)), this, TQ_SLOT(slotResult(TDEIO::Job*)) );
}
int item = -1;
diff --git a/noatun/modules/kjofol-skin/kjprefs.h b/noatun/modules/kjofol-skin/kjprefs.h
index 0226cfdd..bb36e631 100644
--- a/noatun/modules/kjofol-skin/kjprefs.h
+++ b/noatun/modules/kjofol-skin/kjprefs.h
@@ -24,7 +24,7 @@ class KJLoader;
class KJPrefs : public CModule
{
-Q_OBJECT
+TQ_OBJECT
public:
KJPrefs(TQObject* parent);
diff --git a/noatun/modules/kjofol-skin/kjskinselectorwidget.ui b/noatun/modules/kjofol-skin/kjskinselectorwidget.ui
index 41e3c44d..c0ae94de 100644
--- a/noatun/modules/kjofol-skin/kjskinselectorwidget.ui
+++ b/noatun/modules/kjofol-skin/kjskinselectorwidget.ui
@@ -221,10 +221,8 @@ It can be several lines and usually does not contain anything interesting but st
</customwidgets>
<layoutdefaults spacing="6" margin="11"/>
<includes>
+ <include location="global" impldecl="in implementation">klineedit.h</include>
+ <include location="global" impldecl="in implementation">kpushbutton.h</include>
<include location="global" impldecl="in implementation">kurlrequester.h</include>
</includes>
-<includehints>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
-</includehints>
</UI>
diff --git a/noatun/modules/kjofol-skin/kjtextdisplay.h b/noatun/modules/kjofol-skin/kjtextdisplay.h
index 3487ae0d..ffb3cbae 100644
--- a/noatun/modules/kjofol-skin/kjtextdisplay.h
+++ b/noatun/modules/kjofol-skin/kjtextdisplay.h
@@ -11,7 +11,7 @@ class KPixmap;
class KJFilename : public TQObject, public KJWidget
{
-Q_OBJECT
+TQ_OBJECT
public:
KJFilename(const TQStringList &, KJLoader *parent);
diff --git a/noatun/modules/making_plugins b/noatun/modules/making_plugins
index cb921cc2..0134b321 100644
--- a/noatun/modules/making_plugins
+++ b/noatun/modules/making_plugins
@@ -6,7 +6,7 @@ You're free to use the net plugin as a base, I've licensed it under the
public domain, so you can relicense it however you wish (preferably not
GPL, though :)
-Remember that QObject must derive first.
+Remember that TQObject must derive first.
Do a "return this;" in the PlayList *playlist() const; function, if your class
is a playlist, otherwise, don't even override that function.
diff --git a/noatun/modules/marquis/marquis.cpp b/noatun/modules/marquis/marquis.cpp
index f7a6e5ff..ba3c258b 100644
--- a/noatun/modules/marquis/marquis.cpp
+++ b/noatun/modules/marquis/marquis.cpp
@@ -78,9 +78,9 @@ Marquis::Marquis()
// for testing: uncomment this and use
// dcop `dcop | grep noatun` Marquis activateAction dynamicRestore
// and dynamicSave accordingly.
-// (void) new TDEAction("Restore", 0, this, TQT_SLOT( dynamicRestore() ), actionCollection(), "dynamicRestore" );
-// (void) new TDEAction("Save", 0, this, TQT_SLOT( dynamicSave() ), actionCollection(), "dynamicSave" );
- connect( napp, TQT_SIGNAL( saveYourself() ), TQT_SLOT( dynamicSave() ));
+// (void) new TDEAction("Restore", 0, this, TQ_SLOT( dynamicRestore() ), actionCollection(), "dynamicRestore" );
+// (void) new TDEAction("Save", 0, this, TQ_SLOT( dynamicSave() ), actionCollection(), "dynamicSave" );
+ connect( napp, TQ_SIGNAL( saveYourself() ), TQ_SLOT( dynamicSave() ));
}
Marquis::~Marquis()
diff --git a/noatun/modules/marquis/marquis.h b/noatun/modules/marquis/marquis.h
index 00789b43..651417ba 100644
--- a/noatun/modules/marquis/marquis.h
+++ b/noatun/modules/marquis/marquis.h
@@ -34,7 +34,7 @@ class Player;
class Marquis : public TDEMainWindow, public SessionManagement
{
-Q_OBJECT
+TQ_OBJECT
NOATUNPLUGIND
public:
diff --git a/noatun/modules/metatag/edit.cpp b/noatun/modules/metatag/edit.cpp
index e520320c..16d09ece 100644
--- a/noatun/modules/metatag/edit.cpp
+++ b/noatun/modules/metatag/edit.cpp
@@ -49,8 +49,8 @@ Editor::Editor()
mControls.setAutoDelete(true);
mNextRow = 2;
- connect(this, TQT_SIGNAL(closeClicked()), TQT_SLOT(delayedDestruct()));
- connect(this, TQT_SIGNAL(okClicked()), TQT_SLOT(save()));
+ connect(this, TQ_SIGNAL(closeClicked()), TQ_SLOT(delayedDestruct()));
+ connect(this, TQ_SIGNAL(okClicked()), TQ_SLOT(save()));
enableButtonSeparator(true);
setFixedHeight(sizeHint().height());
@@ -122,11 +122,11 @@ void Editor::saveControl(KFileMetaInfo& meta_info, const MetaWidget &meta_widget
if (!meta_widget.widget->isEnabled())
return;
- if (meta_widget.widget->inherits(TQSPINBOX_OBJECT_NAME_STRING))
+ if (meta_widget.widget->inherits("TQSpinBox"))
value = static_cast<TQSpinBox *>(meta_widget.widget)->value();
- else if (meta_widget.widget->inherits(TQCOMBOBOX_OBJECT_NAME_STRING))
+ else if (meta_widget.widget->inherits("TQComboBox"))
value = static_cast<TQComboBox *>(meta_widget.widget)->currentText();
- else if (meta_widget.widget->inherits(TQLINEEDIT_OBJECT_NAME_STRING))
+ else if (meta_widget.widget->inherits("TQLineEdit"))
value = static_cast<TQLineEdit *>(meta_widget.widget)->text();
TQString group = keyGroup(meta_info, meta_widget.key);
@@ -182,7 +182,7 @@ MetaWidget* Editor::createControl(KFileMetaInfo& meta_info, const TQString &labe
// Get the correct validator
if ( info && !groupName.isNull() )
- validator = info->createValidator( groupName, key, TQT_TQOBJECT(parent) );
+ validator = info->createValidator( groupName, key, parent );
// meta_widget is used for book-keeping internally
meta_widget = new MetaWidget;
@@ -204,7 +204,7 @@ MetaWidget* Editor::createControl(KFileMetaInfo& meta_info, const TQString &labe
box->setValidator(validator);
// Is it an integer validator
- if (validator->inherits(TQINTVALIDATOR_OBJECT_NAME_STRING)) {
+ if (validator->inherits("TQIntValidator")) {
TQIntValidator *int_validator = static_cast<TQIntValidator *>(validator);
// FIXME: Why the -hell- doesn't TQSpinBox::setValidator() do this??
@@ -215,7 +215,7 @@ MetaWidget* Editor::createControl(KFileMetaInfo& meta_info, const TQString &labe
box->setValue(info_item.value().toInt());
- connect(box, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(modified()));
+ connect(box, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(modified()));
meta_widget->widget = box;
}
else {
@@ -234,7 +234,7 @@ MetaWidget* Editor::createControl(KFileMetaInfo& meta_info, const TQString &labe
>(validator)->stringList());
combo->setCurrentText(info_item.value().toString());
- connect(combo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(modified()));
+ connect(combo, TQ_SIGNAL(activated(int)), this, TQ_SLOT(modified()));
meta_widget->widget = combo;
}
@@ -244,7 +244,7 @@ MetaWidget* Editor::createControl(KFileMetaInfo& meta_info, const TQString &labe
edit = new KLineEdit(parent);
edit->setText(info_item.value().toString());
edit->setValidator(validator);
- connect(edit, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(modified()));
+ connect(edit, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(modified()));
meta_widget->widget = edit;
}
diff --git a/noatun/modules/metatag/edit.h b/noatun/modules/metatag/edit.h
index 801c2e53..c86f18da 100644
--- a/noatun/modules/metatag/edit.h
+++ b/noatun/modules/metatag/edit.h
@@ -16,7 +16,7 @@ struct MetaWidget {
};
class Editor:public KDialogBase {
- Q_OBJECT
+ TQ_OBJECT
public:
Editor();
diff --git a/noatun/modules/metatag/metatag.cpp b/noatun/modules/metatag/metatag.cpp
index 801ddf0f..afb55d2e 100644
--- a/noatun/modules/metatag/metatag.cpp
+++ b/noatun/modules/metatag/metatag.cpp
@@ -32,7 +32,7 @@ extern "C"
MetaTagLoader::MetaTagLoader():Plugin()
{
- mAction = new TDEAction(i18n("&Tag Editor..."), "edit", 0, this, TQT_SLOT(editTag()), this, "edittag");
+ mAction = new TDEAction(i18n("&Tag Editor..."), "edit", 0, this, TQ_SLOT(editTag()), this, "edittag");
napp->pluginActionMenu()->insert(mAction);
}
@@ -52,8 +52,8 @@ void MetaTagLoader::editTag()
e->open(i);
e->show();
- connect(e, TQT_SIGNAL(saved(PlaylistItem &)),
- TQT_SLOT(update(PlaylistItem &)));
+ connect(e, TQ_SIGNAL(saved(PlaylistItem &)),
+ TQ_SLOT(update(PlaylistItem &)));
}
bool MetaTagLoader::update(PlaylistItem & item)
diff --git a/noatun/modules/metatag/metatag.h b/noatun/modules/metatag/metatag.h
index 43eb9f3c..ec70edf6 100644
--- a/noatun/modules/metatag/metatag.h
+++ b/noatun/modules/metatag/metatag.h
@@ -12,7 +12,7 @@ class KFileMetaInfo;
class TDEAction;
class MetaTagLoader:public TQObject, public Tags, public Plugin {
- Q_OBJECT
+ TQ_OBJECT
public:
MetaTagLoader();
diff --git a/noatun/modules/monoscope/monoscope.cpp b/noatun/modules/monoscope/monoscope.cpp
index 7ab51333..ded4a42d 100644
--- a/noatun/modules/monoscope/monoscope.cpp
+++ b/noatun/modules/monoscope/monoscope.cpp
@@ -41,7 +41,7 @@ Monoscope::~Monoscope()
void Monoscope::init()
{
mAction = new TDEToggleAction(i18n("Toggle Monoscope"), 0, 0,
- TQT_TQOBJECT(this), TQT_SLOT(toggle()), TQT_TQOBJECT(this), "togglemonoscope");
+ this, TQ_SLOT(toggle()), this, "togglemonoscope");
mAction->setChecked(!isHidden());
napp->pluginActionMenu()->insert(mAction);
}
diff --git a/noatun/modules/monoscope/monoscope.h b/noatun/modules/monoscope/monoscope.h
index 7fddb26b..2b1a8c3a 100644
--- a/noatun/modules/monoscope/monoscope.h
+++ b/noatun/modules/monoscope/monoscope.h
@@ -7,7 +7,7 @@ class TDEToggleAction;
class Monoscope : public TQWidget, public MonoScope, public Plugin
{
-Q_OBJECT
+TQ_OBJECT
NOATUNPLUGIND
diff --git a/noatun/modules/net/net.cpp b/noatun/modules/net/net.cpp
index dbdd7e2f..8d67580e 100644
--- a/noatun/modules/net/net.cpp
+++ b/noatun/modules/net/net.cpp
@@ -14,7 +14,7 @@ extern "C"
Net::Net() : TQServerSocket(7539, 10), Plugin()
{
mFDs.setAutoDelete(true);
- connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(newSong()));
+ connect(napp->player(), TQ_SIGNAL(newSong()), TQ_SLOT(newSong()));
}
Net::~Net()
diff --git a/noatun/modules/net/net.h b/noatun/modules/net/net.h
index 68df6e20..4548f63f 100644
--- a/noatun/modules/net/net.h
+++ b/noatun/modules/net/net.h
@@ -9,7 +9,7 @@
class Net : public TQServerSocket, public Plugin
{
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/noatun/modules/noatunui/userinterface.cpp b/noatun/modules/noatunui/userinterface.cpp
index 1919fade..7fbc497b 100644
--- a/noatun/modules/noatunui/userinterface.cpp
+++ b/noatun/modules/noatunui/userinterface.cpp
@@ -37,52 +37,52 @@ MilkChocolate::MilkChocolate() : TQWidget(0,"NoatunUI"), UserInterface()
mBack=new TQPushButton(this);
mBack->setFixedSize(buttonSize,buttonSize);
mBack->setPixmap(BarIcon("noatunback"));
- connect(mBack, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(back()));
+ connect(mBack, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(back()));
TQToolTip::add(mBack,i18n("Back"));
mStop=new TQPushButton(this);
mStop->setFixedSize(buttonSize,buttonSize);
mStop->setPixmap(BarIcon("noatunstop"));
- connect(mStop, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(stop()));
+ connect(mStop, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(stop()));
TQToolTip::add(mStop, i18n("Stop"));
mPlay=new TQPushButton(this);
mPlay->setToggleButton(true);
mPlay->setFixedSize(buttonSize,buttonSize);
mPlay->setPixmap(BarIcon("noatunplay"));
- connect(mPlay, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(playpause()));
+ connect(mPlay, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(playpause()));
TQToolTip::add(mPlay, i18n("Play"));
mForward=new TQPushButton(this);
mForward->setFixedSize(buttonSize,buttonSize);
mForward->setPixmap(BarIcon("noatunforward"));
- connect(mForward, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(forward()));
+ connect(mForward, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(forward()));
TQToolTip::add(mForward, i18n("Forward"));
mPlaylist=new TQPushButton(this);
mPlaylist->setToggleButton(true);
mPlaylist->setFixedSize(buttonSize,buttonSize);
mPlaylist->setPixmap(BarIcon("noatunplaylist"));
- connect(mPlaylist, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(toggleListView()));
+ connect(mPlaylist, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(toggleListView()));
TQToolTip::add(mPlaylist, i18n("Playlist"));
mLoop=new TQPushButton(this);
mLoop->setFixedSize(buttonSize,buttonSize);
mLoop->setPixmap(BarIcon("noatunloopnone"));
- connect(mLoop, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(loop()));
+ connect(mLoop, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(loop()));
TQToolTip::add(mLoop, i18n("Change loop style"));
mPopup=new TQPushButton(this);
mPopup->setFixedSize(buttonSize,buttonSize);
mPopup->setPixmap(BarIcon("noatun"));
- connect(mPopup, TQT_SIGNAL(clicked()), TQT_SLOT(popup()));
+ connect(mPopup, TQ_SIGNAL(clicked()), TQ_SLOT(popup()));
// TQToolTip::add(mRemoveCurrent, i18n("Remove current file from playlist"));
}
- mVolume=new L33tSlider(0,100,10,0,Qt::Horizontal, this);
+ mVolume=new L33tSlider(0,100,10,0,TQt::Horizontal, this);
mVolume->setValue(napp->player()->volume());
- mSeeker=new L33tSlider(0,1000,10,0,Qt::Horizontal, this);
+ mSeeker=new L33tSlider(0,1000,10,0,TQt::Horizontal, this);
mStatusBar=new KStatusBar(this);
@@ -104,32 +104,32 @@ MilkChocolate::MilkChocolate() : TQWidget(0,"NoatunUI"), UserInterface()
statusBar()->message(i18n("No File Loaded"));
statusBar()->insertItem("--:--/--:--", 1, 0, true);
- connect(napp, TQT_SIGNAL(hideYourself()), this, TQT_SLOT(hide()) );
- connect(napp, TQT_SIGNAL(showYourself()), this, TQT_SLOT(show()) );
+ connect(napp, TQ_SIGNAL(hideYourself()), this, TQ_SLOT(hide()) );
+ connect(napp, TQ_SIGNAL(showYourself()), this, TQ_SLOT(show()) );
- connect(napp->player(), TQT_SIGNAL(playing()), this, TQT_SLOT(slotPlaying()));
- connect(napp->player(), TQT_SIGNAL(stopped()), this, TQT_SLOT(slotStopped()));
- connect(napp->player(), TQT_SIGNAL(paused()), this, TQT_SLOT(slotPaused()));
+ connect(napp->player(), TQ_SIGNAL(playing()), this, TQ_SLOT(slotPlaying()));
+ connect(napp->player(), TQ_SIGNAL(stopped()), this, TQ_SLOT(slotStopped()));
+ connect(napp->player(), TQ_SIGNAL(paused()), this, TQ_SLOT(slotPaused()));
napp->player()->handleButtons();
- connect(napp->player(), TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeout()));
- connect(napp->player(), TQT_SIGNAL(loopTypeChange(int)), this, TQT_SLOT(changeLoopType(int)));
+ connect(napp->player(), TQ_SIGNAL(timeout()), this, TQ_SLOT(slotTimeout()));
+ connect(napp->player(), TQ_SIGNAL(loopTypeChange(int)), this, TQ_SLOT(changeLoopType(int)));
// if(seeker())
{
/* This skipToWrapper is needed to pass milliseconds to Player() as everybody
* below the GUI is based on milliseconds instead of some unprecise thingy
* like seconds or mille */
- connect(seeker(), TQT_SIGNAL(userChanged(int)), this, TQT_SLOT(skipToWrapper(int)));
- connect(this, TQT_SIGNAL(skipTo(int)), napp->player(), TQT_SLOT(skipTo(int)));
- connect(seeker(), TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(sliderMoved(int)));
+ connect(seeker(), TQ_SIGNAL(userChanged(int)), this, TQ_SLOT(skipToWrapper(int)));
+ connect(this, TQ_SIGNAL(skipTo(int)), napp->player(), TQ_SLOT(skipTo(int)));
+ connect(seeker(), TQ_SIGNAL(sliderMoved(int)), TQ_SLOT(sliderMoved(int)));
}
- connect(mVolume, TQT_SIGNAL(sliderMoved(int)), napp->player(), TQT_SLOT(setVolume(int)));
- connect(mVolume, TQT_SIGNAL(userChanged(int)), napp->player(), TQT_SLOT(setVolume(int)));
+ connect(mVolume, TQ_SIGNAL(sliderMoved(int)), napp->player(), TQ_SLOT(setVolume(int)));
+ connect(mVolume, TQ_SIGNAL(userChanged(int)), napp->player(), TQ_SLOT(setVolume(int)));
- connect(napp->player(), TQT_SIGNAL(playlistShown()), TQT_SLOT(playlistShown()));
- connect(napp->player(), TQT_SIGNAL(playlistHidden()), TQT_SLOT(playlistHidden()));
+ connect(napp->player(), TQ_SIGNAL(playlistShown()), TQ_SLOT(playlistShown()));
+ connect(napp->player(), TQ_SIGNAL(playlistHidden()), TQ_SLOT(playlistHidden()));
// Event Filter for the RMB
for (TQPtrListIterator<TQObject> i(childrenListObject()); i.current(); ++i)
@@ -179,7 +179,7 @@ void MilkChocolate::dropEvent(TQDropEvent *event)
void MilkChocolate::mouseReleaseEvent(TQMouseEvent *e)
{
TQWidget::mouseReleaseEvent(e);
- if (e->button()!=Qt::RightButton) return;
+ if (e->button()!=TQt::RightButton) return;
NoatunStdAction::ContextMenu::showContextMenu();
}
@@ -205,7 +205,7 @@ void MilkChocolate::popup()
void MilkChocolate::slotPlaying()
{
-// connect(twinmodule, TQT_SIGNAL(windowAdded(WId)), view, TQT_SLOT(attemptReparent(WId)));
+// connect(twinmodule, TQ_SIGNAL(windowAdded(WId)), view, TQ_SLOT(attemptReparent(WId)));
changeStatusbar(napp->player()->current().title(), napp->player()->lengthString());
mPlay->setOn(true);
mStop->setEnabled(true);
@@ -281,15 +281,15 @@ void MilkChocolate::changeLoopType(int t)
bool MilkChocolate::eventFilter(TQObject *o, TQEvent *e)
{
if ((e->type() == TQEvent::MouseButtonRelease)
- && ((TQT_TQMOUSEEVENT(e))->button()==Qt::RightButton))
+ && ((static_cast<TQMouseEvent*>(e))->button()==TQt::RightButton))
{
- mouseReleaseEvent(TQT_TQMOUSEEVENT(e));
+ mouseReleaseEvent(static_cast<TQMouseEvent*>(e));
return true;
}
if (e->type() == TQEvent::Wheel)
{
- wheelEvent(TQT_TQWHEELEVENT(e));
+ wheelEvent(static_cast<TQWheelEvent*>(e));
return true;
}
return TQWidget::eventFilter(o, e);
diff --git a/noatun/modules/noatunui/userinterface.h b/noatun/modules/noatunui/userinterface.h
index 1b384be9..797fc4ac 100644
--- a/noatun/modules/noatunui/userinterface.h
+++ b/noatun/modules/noatunui/userinterface.h
@@ -23,7 +23,7 @@ class KStatusBar;
*/
class MilkChocolate : public TQWidget, public UserInterface
{
-Q_OBJECT
+TQ_OBJECT
public:
MilkChocolate();
diff --git a/noatun/modules/simple/propertiesdialog.ui b/noatun/modules/simple/propertiesdialog.ui
index ca13195a..9ac59ed1 100644
--- a/noatun/modules/simple/propertiesdialog.ui
+++ b/noatun/modules/simple/propertiesdialog.ui
@@ -341,8 +341,8 @@
<include location="global" impldecl="in declaration">kmimetype.h</include>
<include location="local" impldecl="in implementation">propertiesdialog.ui.h</include>
</includes>
-<Q_SLOTS>
+<slots>
<slot specifier="non virtual">setPlayObject( PlaylistItem pi, Arts::PlayObject po )</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/noatun/modules/simple/userinterface.cpp b/noatun/modules/simple/userinterface.cpp
index c600338d..72edda51 100644
--- a/noatun/modules/simple/userinterface.cpp
+++ b/noatun/modules/simple/userinterface.cpp
@@ -63,14 +63,14 @@ SimpleUI::SimpleUI()
setupGUI( StatusBar|Create, "simpleui.rc" );
- connect( napp->player(), TQT_SIGNAL(playing()), TQT_SLOT(slotPlaying()) );
- connect( napp->player(), TQT_SIGNAL(stopped()), TQT_SLOT(slotStopped()) );
- connect( napp->player(), TQT_SIGNAL(paused()), TQT_SLOT(slotPaused()) );
- connect( napp->player(), TQT_SIGNAL(timeout()), TQT_SLOT(slotTimeout()) );
- connect( napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(slotChanged()) );
- connect( napp->player(), TQT_SIGNAL(volumeChanged(int)), TQT_SLOT(slotVolumeChanged(int)) );
- connect( napp, TQT_SIGNAL(hideYourself()), TQT_SLOT(hide()) );
- connect( napp, TQT_SIGNAL(showYourself()), TQT_SLOT(show()) );
+ connect( napp->player(), TQ_SIGNAL(playing()), TQ_SLOT(slotPlaying()) );
+ connect( napp->player(), TQ_SIGNAL(stopped()), TQ_SLOT(slotStopped()) );
+ connect( napp->player(), TQ_SIGNAL(paused()), TQ_SLOT(slotPaused()) );
+ connect( napp->player(), TQ_SIGNAL(timeout()), TQ_SLOT(slotTimeout()) );
+ connect( napp->player(), TQ_SIGNAL(newSong()), TQ_SLOT(slotChanged()) );
+ connect( napp->player(), TQ_SIGNAL(volumeChanged(int)), TQ_SLOT(slotVolumeChanged(int)) );
+ connect( napp, TQ_SIGNAL(hideYourself()), TQ_SLOT(hide()) );
+ connect( napp, TQ_SIGNAL(showYourself()), TQ_SLOT(show()) );
napp->player()->handleButtons();
@@ -126,10 +126,10 @@ SimpleUI::~SimpleUI()
void SimpleUI::setupActions()
{
- KStdAction::open( TQT_TQOBJECT(napp), TQT_SLOT(fileOpen()), actionCollection(), "_file_open" );
- new TDEAction( i18n("&Properties"), 0, TQT_TQOBJECT(propertiesDialog), TQT_SLOT(show()),
+ KStdAction::open( napp, TQ_SLOT(fileOpen()), actionCollection(), "_file_open" );
+ new TDEAction( i18n("&Properties"), 0, propertiesDialog, TQ_SLOT(show()),
actionCollection(), "_file_properties" );
- KStdAction::quit( TQT_TQOBJECT(napp), TQT_SLOT(quit()), actionCollection(), "_file_quit");
+ KStdAction::quit( napp, TQ_SLOT(quit()), actionCollection(), "_file_quit");
NoatunStdAction::playlist( actionCollection(), "view_playlist" );
actionCollection()->insert(video->action( "half_size" ));
@@ -139,14 +139,14 @@ void SimpleUI::setupActions()
actionCollection()->insert(napp->pluginActionMenu());
- menubarAction = KStdAction::showMenubar(TQT_TQOBJECT(this), TQT_SLOT(showMenubar()),
+ menubarAction = KStdAction::showMenubar(this, TQ_SLOT(showMenubar()),
actionCollection());
- statusbarAction = KStdAction::showStatusbar(TQT_TQOBJECT(this), TQT_SLOT(showStatusbar()),
+ statusbarAction = KStdAction::showStatusbar(this, TQ_SLOT(showStatusbar()),
actionCollection());
NoatunStdAction::effects( actionCollection(), "effects" );
NoatunStdAction::equalizer( actionCollection(), "equalizer" );
NoatunStdAction::loop( actionCollection(), "loop_style" );
- KStdAction::preferences( TQT_TQOBJECT(napp), TQT_SLOT(preferences()), actionCollection() );
+ KStdAction::preferences( napp, TQ_SLOT(preferences()), actionCollection() );
}
void SimpleUI::showMenubar()
@@ -178,10 +178,10 @@ void SimpleUI::setupCentralWidget()
statusBar()->addWidget( positionLabel, 0, true );
video = new VideoFrame( npWidget );
- connect( video, TQT_SIGNAL(adaptSize(int,int)),
- TQT_SLOT(slotAdaptSize(int,int)) );
- connect( video, TQT_SIGNAL(rightButtonPressed(const TQPoint &)),
- TQT_SLOT(slotContextMenu(const TQPoint &)) );
+ connect( video, TQ_SIGNAL(adaptSize(int,int)),
+ TQ_SLOT(slotAdaptSize(int,int)) );
+ connect( video, TQ_SIGNAL(rightButtonPressed(const TQPoint &)),
+ TQ_SLOT(slotContextMenu(const TQPoint &)) );
TQHBox *ctlFrame = new TQHBox( npWidget );
ctlFrame->setFixedHeight( 38 );
@@ -194,38 +194,38 @@ void SimpleUI::setupCentralWidget()
backButton->setFixedSize( 24, 24 );
backButton->setPixmap( TQPixmap( back_xpm ) );
TQToolTip::add( backButton, i18n("Back") );
- connect( backButton, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(back()) );
+ connect( backButton, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(back()) );
stopButton = new TQPushButton( ctlFrame );
stopButton->setFixedSize( 24, 24 );
stopButton->setPixmap( TQPixmap( stop_xpm ) );
TQToolTip::add( stopButton, i18n("Stop") );
- connect( stopButton, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(stop()) );
+ connect( stopButton, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(stop()) );
playButton = new TQPushButton( ctlFrame );
playButton->setFixedSize( 24, 24 );
playButton->setPixmap( TQPixmap( play_xpm ) );
TQToolTip::add( playButton, i18n("Play / Pause") );
- connect( playButton, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(playpause()) );
+ connect( playButton, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(playpause()) );
TQPushButton *forwButton = new TQPushButton( ctlFrame );
forwButton->setFixedSize( 24, 24 );
forwButton->setPixmap( TQPixmap( forward_xpm ) );
TQToolTip::add( forwButton, i18n("Forward") );
- connect( forwButton, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(forward()) );
+ connect( forwButton, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(forward()) );
- slider = new L33tSlider( 0, 1000, 10, 0, Qt::Horizontal, ctlFrame );
+ slider = new L33tSlider( 0, 1000, 10, 0, TQt::Horizontal, ctlFrame );
slider->setFixedHeight( 24 );
slider->setMinimumWidth( 100 );
slider->setTickmarks( TQSlider::NoMarks );
- connect( slider, TQT_SIGNAL(userChanged(int)), TQT_SLOT(slotSkipTo(int)) );
- connect( slider, TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(slotSliderMoved(int)) );
+ connect( slider, TQ_SIGNAL(userChanged(int)), TQ_SLOT(slotSkipTo(int)) );
+ connect( slider, TQ_SIGNAL(sliderMoved(int)), TQ_SLOT(slotSliderMoved(int)) );
TQPushButton *playlistButton = new TQPushButton( ctlFrame );
playlistButton->setFixedSize( 24, 24 );
playlistButton->setPixmap( TQPixmap( playlist_xpm ) );
TQToolTip::add( playlistButton, i18n("Playlist") );
- connect( playlistButton, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(toggleListView()) );
+ connect( playlistButton, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(toggleListView()) );
volumeButton = new TQPushButton( ctlFrame );
volumeButton->setFixedSize( 24, 24 );
@@ -242,15 +242,15 @@ void SimpleUI::setupCentralWidget()
volumeLabel->setFixedSize( volumeLabel->sizeHint() );
TQHBox *volumeSubFrame = new TQHBox( volumeFrame );
- volumeSlider = new L33tSlider( 0, 100, 10, 0,Qt::Vertical, volumeSubFrame );
+ volumeSlider = new L33tSlider( 0, 100, 10, 0,TQt::Vertical, volumeSubFrame );
volumeSlider->setValue( 100 - napp->player()->volume() );
volumeSlider->setFixedSize( volumeSlider->sizeHint() );
volumeFrame->resize( volumeFrame->sizeHint() );
- connect( volumeSlider, TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(slotVolumeSliderMoved(int)) );
- connect( volumeSlider, TQT_SIGNAL(userChanged(int)), TQT_SLOT(slotVolumeSliderMoved(int)) );
- connect( volumeButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotVolumeFrame()) );
+ connect( volumeSlider, TQ_SIGNAL(sliderMoved(int)), TQ_SLOT(slotVolumeSliderMoved(int)) );
+ connect( volumeSlider, TQ_SIGNAL(userChanged(int)), TQ_SLOT(slotVolumeSliderMoved(int)) );
+ connect( volumeButton, TQ_SIGNAL(clicked()), TQ_SLOT(slotVolumeFrame()) );
setCentralWidget( npWidget );
diff --git a/noatun/modules/simple/userinterface.h b/noatun/modules/simple/userinterface.h
index a218f574..17f5b3ea 100644
--- a/noatun/modules/simple/userinterface.h
+++ b/noatun/modules/simple/userinterface.h
@@ -27,7 +27,7 @@
class SimpleUI : public TDEMainWindow, public UserInterface
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/splitplaylist/find.cpp b/noatun/modules/splitplaylist/find.cpp
index 67b7f332..7c504383 100644
--- a/noatun/modules/splitplaylist/find.cpp
+++ b/noatun/modules/splitplaylist/find.cpp
@@ -26,10 +26,10 @@ Finder::Finder(TQWidget *parent) : KDialogBase(parent, 0, false, i18n("Find"), C
layout->addWidget(mRegexp, 1, 0);
layout->addWidget(mBackwards, 1, 1);
- connect(this, TQT_SIGNAL(user1Clicked()), TQT_SLOT(clicked()));
+ connect(this, TQ_SIGNAL(user1Clicked()), TQ_SLOT(clicked()));
- connect(mText, TQT_SIGNAL(activated(int)), TQT_SLOT(clicked()));
- connect(mText, TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(textChanged(const TQString &)));
+ connect(mText, TQ_SIGNAL(activated(int)), TQ_SLOT(clicked()));
+ connect(mText, TQ_SIGNAL(textChanged(const TQString &)), TQ_SLOT(textChanged(const TQString &)));
enableButton(User1, false);
}
diff --git a/noatun/modules/splitplaylist/find.h b/noatun/modules/splitplaylist/find.h
index d44bb0e5..c77a6424 100644
--- a/noatun/modules/splitplaylist/find.h
+++ b/noatun/modules/splitplaylist/find.h
@@ -9,7 +9,7 @@ class TQPushButton;
class Finder : public KDialogBase
{
-Q_OBJECT
+TQ_OBJECT
public:
Finder(TQWidget *parent);
diff --git a/noatun/modules/splitplaylist/playlist.cpp b/noatun/modules/splitplaylist/playlist.cpp
index 34690f91..d940c8ca 100644
--- a/noatun/modules/splitplaylist/playlist.cpp
+++ b/noatun/modules/splitplaylist/playlist.cpp
@@ -20,9 +20,9 @@ SplitPlaylist::SplitPlaylist()
void SplitPlaylist::init()
{
view=new View(this); // 195
- connect(view->listView(), TQT_SIGNAL(executed(TQListViewItem*)), TQT_SLOT(listItemSelected(TQListViewItem*)));
- connect(view, TQT_SIGNAL(shown()), TQT_SIGNAL(listShown()));
- connect(view, TQT_SIGNAL(hidden()), TQT_SIGNAL(listHidden()));
+ connect(view->listView(), TQ_SIGNAL(executed(TQListViewItem*)), TQ_SLOT(listItemSelected(TQListViewItem*)));
+ connect(view, TQ_SIGNAL(shown()), TQ_SIGNAL(listShown()));
+ connect(view, TQ_SIGNAL(hidden()), TQ_SIGNAL(listHidden()));
view->init(); // 1000
}
diff --git a/noatun/modules/splitplaylist/playlist.h b/noatun/modules/splitplaylist/playlist.h
index de025ad5..9ac27bc2 100644
--- a/noatun/modules/splitplaylist/playlist.h
+++ b/noatun/modules/splitplaylist/playlist.h
@@ -27,7 +27,7 @@ class TQListViewItem;
class SplitPlaylist : public Playlist, public Plugin
{
-Q_OBJECT
+TQ_OBJECT
friend class SafeListViewItem;
friend class List;
diff --git a/noatun/modules/splitplaylist/view.cpp b/noatun/modules/splitplaylist/view.cpp
index bfdd0112..1b2679d5 100644
--- a/noatun/modules/splitplaylist/view.cpp
+++ b/noatun/modules/splitplaylist/view.cpp
@@ -49,7 +49,7 @@ SafeListViewItem::SafeListViewItem(TQListView *parent, TQListViewItem *after, co
addRef();
setUrl(text);
- static_cast<TDEListView*>(TQT_TQWIDGET(parent))->moveItem(this, 0, after);
+ static_cast<TDEListView*>(parent)->moveItem(this, 0, after);
setOn(true);
// is this really needed, it makes the listview too wide for me :(
@@ -91,7 +91,7 @@ SafeListViewItem::SafeListViewItem(TQListView *parent, TQListViewItem *after, co
}
}
- static_cast<TDEListView*>(TQT_TQWIDGET(parent))->moveItem(this, 0, after);
+ static_cast<TDEListView*>(parent)->moveItem(this, 0, after);
modified();
if (!streamable() && enqueue(url()))
@@ -355,10 +355,10 @@ List::List(View *parent)
setDragEnabled(true);
setItemsMovable(true);
setSelectionMode(TQListView::Extended);
- connect(TQT_TQOBJECT(this), TQT_SIGNAL(dropped(TQDropEvent*, TQListViewItem*)), TQT_SLOT(dropEvent(TQDropEvent*, TQListViewItem*)));
- connect(TQT_TQOBJECT(this), TQT_SIGNAL(moved()), TQT_SLOT(move()));
- connect(TQT_TQOBJECT(this), TQT_SIGNAL(aboutToMove()), parent, TQT_SLOT(setNoSorting()));
- connect(TQT_TQOBJECT(this), TQT_SIGNAL(deleteCurrentItem()), parent, TQT_SLOT(deleteSelected()));
+ connect(this, TQ_SIGNAL(dropped(TQDropEvent*, TQListViewItem*)), TQ_SLOT(dropEvent(TQDropEvent*, TQListViewItem*)));
+ connect(this, TQ_SIGNAL(moved()), TQ_SLOT(move()));
+ connect(this, TQ_SIGNAL(aboutToMove()), parent, TQ_SLOT(setNoSorting()));
+ connect(this, TQ_SIGNAL(deleteCurrentItem()), parent, TQ_SLOT(deleteSelected()));
}
List::~List()
@@ -377,7 +377,7 @@ bool List::acceptDrag(TQDropEvent *event) const
void List::dropEvent(TQDropEvent *event, TQListViewItem *after)
{
- static_cast<View*>(TQT_TQWIDGET(parent()))->setNoSorting();
+ static_cast<View*>(parent())->setNoSorting();
KURL::List textlist;
if (!KURLDrag::decode(event, textlist)) return;
event->acceptAction();
@@ -569,16 +569,16 @@ void List::addNextPendingDirectory()
currentJobURL= *pendingIt;
listJob= TDEIO::listRecursive(currentJobURL, false,false);
connect(
- listJob, TQT_SIGNAL(entries(TDEIO::Job*, const TDEIO::UDSEntryList&)),
- TQT_SLOT(slotEntries(TDEIO::Job*, const TDEIO::UDSEntryList&))
+ listJob, TQ_SIGNAL(entries(TDEIO::Job*, const TDEIO::UDSEntryList&)),
+ TQ_SLOT(slotEntries(TDEIO::Job*, const TDEIO::UDSEntryList&))
);
connect(
- listJob, TQT_SIGNAL(result(TDEIO::Job *)),
- TQT_SLOT(slotResult(TDEIO::Job *))
+ listJob, TQ_SIGNAL(result(TDEIO::Job *)),
+ TQ_SLOT(slotResult(TDEIO::Job *))
);
connect(
- listJob, TQT_SIGNAL(redirection(TDEIO::Job *, const KURL &)),
- TQT_SLOT(slotRedirection(TDEIO::Job *, const KURL &))
+ listJob, TQ_SIGNAL(redirection(TDEIO::Job *, const KURL &)),
+ TQ_SLOT(slotRedirection(TDEIO::Job *, const KURL &))
);
pendingAddDirectories.remove(pendingIt);
}
@@ -638,25 +638,25 @@ View::View(SplitPlaylist *)
{
list=new List(this);
setCentralWidget(list);
- connect(list, TQT_SIGNAL(modified(void)), TQT_TQOBJECT(this), TQT_SLOT(setModified(void)) );
+ connect(list, TQ_SIGNAL(modified(void)), this, TQ_SLOT(setModified(void)) );
// connect the click on the header with sorting
- connect(list->header(),TQT_SIGNAL(clicked(int)),this,TQT_SLOT(headerClicked(int)) );
+ connect(list->header(),TQ_SIGNAL(clicked(int)),this,TQ_SLOT(headerClicked(int)) );
- mOpen=new TDEAction(i18n("Add &Files..."), "queue", 0, TQT_TQOBJECT(this), TQT_SLOT(addFiles()), actionCollection(), "add_files");
- (void) new TDEAction(i18n("Add Fol&ders..."), "folder", 0, TQT_TQOBJECT(this), TQT_SLOT(addDirectory()), actionCollection(), "add_dir");
- mDelete=new TDEAction(i18n("Delete"), "edit-delete", Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(deleteSelected()), actionCollection(), "delete");
+ mOpen=new TDEAction(i18n("Add &Files..."), "queue", 0, this, TQ_SLOT(addFiles()), actionCollection(), "add_files");
+ (void) new TDEAction(i18n("Add Fol&ders..."), "folder", 0, this, TQ_SLOT(addDirectory()), actionCollection(), "add_dir");
+ mDelete=new TDEAction(i18n("Delete"), "edit-delete", Key_Delete, this, TQ_SLOT(deleteSelected()), actionCollection(), "delete");
- mClose=KStdAction::close(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection());
- mFind=KStdAction::find(TQT_TQOBJECT(this), TQT_SLOT(find()), actionCollection());
+ mClose=KStdAction::close(this, TQ_SLOT(close()), actionCollection());
+ mFind=KStdAction::find(this, TQ_SLOT(find()), actionCollection());
- (void) KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(configureToolBars()), actionCollection());
- mOpenNew=KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(openNew()), actionCollection());
- mOpenpl=KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(open()), actionCollection());
- mSave=KStdAction::save(TQT_TQOBJECT(this), TQT_SLOT(save()), actionCollection());
- mSaveAs=KStdAction::saveAs(TQT_TQOBJECT(this), TQT_SLOT(saveAs()), actionCollection());
+ (void) KStdAction::configureToolbars(this, TQ_SLOT(configureToolBars()), actionCollection());
+ mOpenNew=KStdAction::openNew(this, TQ_SLOT(openNew()), actionCollection());
+ mOpenpl=KStdAction::open(this, TQ_SLOT(open()), actionCollection());
+ mSave=KStdAction::save(this, TQ_SLOT(save()), actionCollection());
+ mSaveAs=KStdAction::saveAs(this, TQ_SLOT(saveAs()), actionCollection());
- (void) new TDEAction(i18n("Shuffle"), "misc", 0, TQT_TQOBJECT(SPL), TQT_SLOT( randomize() ), actionCollection(), "shuffle");
- (void) new TDEAction(i18n("Clear"), "edit-clear", 0, TQT_TQOBJECT(list), TQT_SLOT( clear() ), actionCollection(), "clear");
+ (void) new TDEAction(i18n("Shuffle"), "misc", 0, SPL, TQ_SLOT( randomize() ), actionCollection(), "shuffle");
+ (void) new TDEAction(i18n("Clear"), "edit-clear", 0, list, TQ_SLOT( clear() ), actionCollection(), "clear");
createGUI("splui.rc");
@@ -669,7 +669,7 @@ View::View(SplitPlaylist *)
void View::find()
{
mFinder->show();
- connect(mFinder, TQT_SIGNAL(search(Finder*)), TQT_SLOT(findIt(Finder*)));
+ connect(mFinder, TQ_SIGNAL(search(Finder*)), TQ_SLOT(findIt(Finder*)));
}
static bool testWord(TQListViewItem *i, const TQString &finder)
@@ -797,6 +797,9 @@ void View::init()
list->openGlobal(internalURL);
}
+ for(PlaylistItem item = SPL->getFirst(); item; item = SPL->getAfter(item))
+ if(item.url().path().isEmpty()) item.remove();
+
TDEConfig &config = *TDEGlobal::config();
config.setGroup("splitplaylist");
@@ -964,7 +967,7 @@ void View::configureToolBars()
{
saveMainWindowSettings(TDEGlobal::config(), "SPL Window");
KEditToolbar dlg(actionCollection(), "splui.rc");
- connect(&dlg, TQT_SIGNAL(newToolbarConfig()), TQT_SLOT(newToolBarConfig()));
+ connect(&dlg, TQ_SIGNAL(newToolbarConfig()), TQ_SLOT(newToolBarConfig()));
dlg.exec();
}
diff --git a/noatun/modules/splitplaylist/view.h b/noatun/modules/splitplaylist/view.h
index 4eef4e9b..54578cb4 100644
--- a/noatun/modules/splitplaylist/view.h
+++ b/noatun/modules/splitplaylist/view.h
@@ -57,7 +57,7 @@ private:
class List : public TDEListView
{
-Q_OBJECT
+TQ_OBJECT
friend class View;
public:
@@ -105,7 +105,7 @@ class TDEToolBar;
class View : public TDEMainWindow
{
-Q_OBJECT
+TQ_OBJECT
public:
View(SplitPlaylist *mother);
diff --git a/noatun/modules/systray/cmodule.cpp b/noatun/modules/systray/cmodule.cpp
index 189d1539..e9e33d16 100644
--- a/noatun/modules/systray/cmodule.cpp
+++ b/noatun/modules/systray/cmodule.cpp
@@ -58,9 +58,9 @@ YHModule::YHModule(TQObject *_parent)
mWidget->cmbModifier->insertItem(i18n("Ctrl"), YHConfig::Ctrl);
mWidget->cmbModifier->setCurrentItem(YHConfig::None);
- connect(mWidget->chkUsePopup, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotUsePopupToggled(bool)));
- connect(mWidget->cmbModifier, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotModifierActivated(int)));
- connect(mWidget->grpMwheel, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(slotMwheelClicked(int)));
+ connect(mWidget->chkUsePopup, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotUsePopupToggled(bool)));
+ connect(mWidget->cmbModifier, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotModifierActivated(int)));
+ connect(mWidget->grpMwheel, TQ_SIGNAL(clicked(int)), this, TQ_SLOT(slotMwheelClicked(int)));
reopen();
}
diff --git a/noatun/modules/systray/cmodule.h b/noatun/modules/systray/cmodule.h
index 10196423..dd8784d3 100644
--- a/noatun/modules/systray/cmodule.h
+++ b/noatun/modules/systray/cmodule.h
@@ -33,7 +33,7 @@ class YHConfigWidget;
class YHModule : public CModule
{
-Q_OBJECT
+TQ_OBJECT
public:
YHModule(TQObject *_parent);
diff --git a/noatun/modules/systray/kitsystemtray.cpp b/noatun/modules/systray/kitsystemtray.cpp
index 963a9c69..358efb59 100644
--- a/noatun/modules/systray/kitsystemtray.cpp
+++ b/noatun/modules/systray/kitsystemtray.cpp
@@ -67,10 +67,10 @@ void KitSystemTray::mousePressEvent(TQMouseEvent *event)
{
switch(event->button())
{
- case Qt::LeftButton:
+ case TQt::LeftButton:
napp->toggleInterfaces();
break;
- case Qt::MidButton:
+ case TQt::MidButton:
if (YHConfig::self()->middleMouseAction() == YHConfig::HideShowPlaylist)
napp->playlist()->toggleList();
else // play or pause
diff --git a/noatun/modules/systray/kitsystemtray.h b/noatun/modules/systray/kitsystemtray.h
index 13a8b518..709a8f07 100644
--- a/noatun/modules/systray/kitsystemtray.h
+++ b/noatun/modules/systray/kitsystemtray.h
@@ -36,7 +36,7 @@ class TQPixmap;
class KitSystemTray : public KSystemTray
{
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/noatun/modules/systray/systray.cpp b/noatun/modules/systray/systray.cpp
index da0590ce..ab70c8dd 100644
--- a/noatun/modules/systray/systray.cpp
+++ b/noatun/modules/systray/systray.cpp
@@ -100,9 +100,9 @@ NoatunSystray::NoatunSystray() : TDEMainWindow(0, "NoatunSystray"), Plugin(),
removeCover(); // make sure any old temp cover is gone
- KStdAction::quit(TQT_TQOBJECT(napp), TQT_SLOT(quit()), actionCollection());
- KStdAction::open(TQT_TQOBJECT(napp), TQT_SLOT(fileOpen()), actionCollection());
- KStdAction::preferences(TQT_TQOBJECT(napp), TQT_SLOT(preferences()), actionCollection());
+ KStdAction::quit(napp, TQ_SLOT(quit()), actionCollection());
+ KStdAction::open(napp, TQ_SLOT(fileOpen()), actionCollection());
+ KStdAction::preferences(napp, TQ_SLOT(preferences()), actionCollection());
NoatunStdAction::back(actionCollection(), "back");
NoatunStdAction::stop(actionCollection(), "stop");
NoatunStdAction::playpause(actionCollection(), "play");
@@ -124,11 +124,11 @@ NoatunSystray::NoatunSystray() : TDEMainWindow(0, "NoatunSystray"), Plugin(),
showingTrayStatus = false;
mBlinkTimer = new TQTimer(this);
- connect(mBlinkTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotBlinkTimer()));
+ connect(mBlinkTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotBlinkTimer()));
- connect(napp->player(), TQT_SIGNAL(playing()), this, TQT_SLOT(slotPlayPause()));
- connect(napp->player(), TQT_SIGNAL(paused()), this, TQT_SLOT(slotPlayPause()));
- connect(napp->player(), TQT_SIGNAL(stopped()), this, TQT_SLOT(slotStopped()));
+ connect(napp->player(), TQ_SIGNAL(playing()), this, TQ_SLOT(slotPlayPause()));
+ connect(napp->player(), TQ_SIGNAL(paused()), this, TQ_SLOT(slotPlayPause()));
+ connect(napp->player(), TQ_SIGNAL(stopped()), this, TQ_SLOT(slotStopped()));
//napp->player()->handleButtons();
}
@@ -145,8 +145,8 @@ NoatunSystray::~NoatunSystray()
void NoatunSystray::init()
{
- YHModule *cmod = new YHModule(TQT_TQOBJECT(this));
- connect(cmod, TQT_SIGNAL(saved()), this, TQT_SLOT(slotLoadSettings()));
+ YHModule *cmod = new YHModule(this);
+ connect(cmod, TQ_SIGNAL(saved()), this, TQ_SLOT(slotLoadSettings()));
slotLoadSettings();
}
@@ -334,7 +334,7 @@ void NoatunSystray::updateCover()
if(src.load(cover))
{
if(src.width() >= COVER_MAXW || src.height() >= COVER_MAXH)
- tmpimg = src.scale(COVER_MAXW, COVER_MAXH, TQ_ScaleMin);
+ tmpimg = src.scale(COVER_MAXW, COVER_MAXH, TQImage::ScaleMin);
else
tmpimg = src;
@@ -364,7 +364,7 @@ void NoatunSystray::setTipText(const TQString& text)
YHConfig *c = YHConfig::self();
if(c->passivePopup())
- TQTimer::singleShot(0, this, TQT_SLOT(showPassivePopup()));
+ TQTimer::singleShot(0, this, TQ_SLOT(showPassivePopup()));
if(c->tip())
TQToolTip::add(mTray, tipText);
@@ -405,11 +405,11 @@ void NoatunSystray::showPassivePopup()
TQPushButton *forwardButton = new TQPushButton(action("forward")->iconSet(), 0, buttonBox, "popup_forward");
forwardButton->setFlat(true);
- connect(forwardButton, TQT_SIGNAL(clicked()), action("forward"), TQT_SLOT(activate()));
+ connect(forwardButton, TQ_SIGNAL(clicked()), action("forward"), TQ_SLOT(activate()));
TQPushButton *backButton = new TQPushButton(action("back")->iconSet(), 0, buttonBox, "popup_back");
backButton->setFlat(true);
- connect(backButton, TQT_SIGNAL(clicked()), action("back"), TQT_SLOT(activate()));
+ connect(backButton, TQ_SIGNAL(clicked()), action("back"), TQ_SLOT(activate()));
TQFrame *line = new TQFrame(box);
line->setFrameShape(TQFrame::VLine);
@@ -429,11 +429,11 @@ void NoatunSystray::showPassivePopup()
TQPushButton *forwardButton = new TQPushButton(action("forward")->iconSet(), 0, buttonBox, "popup_forward");
forwardButton->setFlat(true);
- connect(forwardButton, TQT_SIGNAL(clicked()), action("forward"), TQT_SLOT(activate()));
+ connect(forwardButton, TQ_SIGNAL(clicked()), action("forward"), TQ_SLOT(activate()));
TQPushButton *backButton = new TQPushButton(action("back")->iconSet(), 0, buttonBox, "popup_back");
backButton->setFlat(true);
- connect(backButton, TQT_SIGNAL(clicked()), action("back"), TQT_SLOT(activate()));
+ connect(backButton, TQ_SIGNAL(clicked()), action("back"), TQ_SLOT(activate()));
}
mPassivePopup->setView(box);
}
diff --git a/noatun/modules/systray/systray.h b/noatun/modules/systray/systray.h
index 80592b07..3adc59cf 100644
--- a/noatun/modules/systray/systray.h
+++ b/noatun/modules/systray/systray.h
@@ -40,7 +40,7 @@ class PassivePopup;
class NoatunSystray : public TDEMainWindow, public Plugin
{
-Q_OBJECT
+TQ_OBJECT
public:
NoatunSystray();
diff --git a/noatun/modules/voiceprint/prefs.h b/noatun/modules/voiceprint/prefs.h
index 16b8032f..c317cc45 100644
--- a/noatun/modules/voiceprint/prefs.h
+++ b/noatun/modules/voiceprint/prefs.h
@@ -8,7 +8,7 @@ class KColorButton;
class Prefs : public CModule
{
-Q_OBJECT
+TQ_OBJECT
public:
Prefs(TQObject* parent);
diff --git a/noatun/modules/voiceprint/voiceprint.cpp b/noatun/modules/voiceprint/voiceprint.cpp
index c0b1c859..4cfe5d21 100644
--- a/noatun/modules/voiceprint/voiceprint.cpp
+++ b/noatun/modules/voiceprint/voiceprint.cpp
@@ -35,7 +35,7 @@ VoicePrint::~VoicePrint()
void VoicePrint::init()
{
- Prefs *p=new Prefs(TQT_TQOBJECT(this));
+ Prefs *p=new Prefs(this);
p->reopen();
p->save();
resizeEvent(0);
diff --git a/noatun/modules/voiceprint/voiceprint.h b/noatun/modules/voiceprint/voiceprint.h
index 0440e8c4..b3ce0d29 100644
--- a/noatun/modules/voiceprint/voiceprint.h
+++ b/noatun/modules/voiceprint/voiceprint.h
@@ -5,7 +5,7 @@
class VoicePrint : public TQWidget, public MonoFFTScope, public Plugin
{
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/guiSpectrumAnalyser.cpp b/noatun/modules/winskin/guiSpectrumAnalyser.cpp
index ee01777a..46be1e2f 100644
--- a/noatun/modules/winskin/guiSpectrumAnalyser.cpp
+++ b/noatun/modules/winskin/guiSpectrumAnalyser.cpp
@@ -28,7 +28,7 @@
GuiSpectrumAnalyser::GuiSpectrumAnalyser()
: WaWidget(_WA_MAPPING_ANALYSER)
{
- connect(WaSkinModel::instance(), TQT_SIGNAL(skinChanged()), this, TQT_SLOT(pixmapChange()));
+ connect(WaSkinModel::instance(), TQ_SIGNAL(skinChanged()), this, TQ_SLOT(pixmapChange()));
contextMenu = new TQPopupMenu(this);
visualizationMenu = new TQPopupMenu();
@@ -40,13 +40,13 @@ GuiSpectrumAnalyser::GuiSpectrumAnalyser()
visualizationMenu->insertItem(i18n("Analyzer"), (int)MODE_ANALYSER);
visualizationMenu->insertItem(i18n("Disabled"), (int)MODE_DISABLED);
visualizationMenu->setCheckable(true);
- connect(visualizationMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setVisualizationMode(int)));
+ connect(visualizationMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(setVisualizationMode(int)));
analyserMenu->insertItem(i18n("Normal"), (int)MODE_NORMAL);
analyserMenu->insertItem(i18n("Fire"), (int)MODE_FIRE);
analyserMenu->insertItem(i18n("Vertical Lines"), (int)MODE_VERTICAL_LINES);
analyserMenu->setCheckable(true);
- connect(analyserMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setAnalyserMode(int)));
+ connect(analyserMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(setAnalyserMode(int)));
analyserCache = NULL;
winSkinVis = NULL;
@@ -72,13 +72,13 @@ GuiSpectrumAnalyser::~GuiSpectrumAnalyser()
void GuiSpectrumAnalyser::mousePressEvent ( TQMouseEvent *e )
{
- if (e->button() == Qt::LeftButton) {
+ if (e->button() == TQt::LeftButton) {
if (visualization_mode == MODE_DISABLED)
setVisualizationMode(MODE_ANALYSER);
else
setVisualizationMode(MODE_DISABLED);
}
- else if (e->button() == Qt::RightButton) {
+ else if (e->button() == TQt::RightButton) {
contextMenu->popup(mapToGlobal(TQPoint(e->x(), e->y())));
}
}
@@ -138,8 +138,8 @@ void GuiSpectrumAnalyser::setVisualizationMode(int mode)
{
if (!winSkinVis)
{
- winSkinVis=new WinSkinVis(TQT_TQOBJECT(this),"WinSkinVis");
- connect(winSkinVis,TQT_SIGNAL(doRepaint()),this,TQT_SLOT(updatePeaks()));
+ winSkinVis=new WinSkinVis(this,"WinSkinVis");
+ connect(winSkinVis,TQ_SIGNAL(doRepaint()),this,TQ_SLOT(updatePeaks()));
}
}
else
diff --git a/noatun/modules/winskin/guiSpectrumAnalyser.h b/noatun/modules/winskin/guiSpectrumAnalyser.h
index 05657424..a29fd18b 100644
--- a/noatun/modules/winskin/guiSpectrumAnalyser.h
+++ b/noatun/modules/winskin/guiSpectrumAnalyser.h
@@ -28,7 +28,7 @@ enum visualizationMode {MODE_DISABLED = 0, MODE_ANALYSER = 1};
enum analyserMode {MODE_NORMAL = 0, MODE_FIRE = 1, MODE_VERTICAL_LINES = 2};
class GuiSpectrumAnalyser : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waBalanceSlider.cpp b/noatun/modules/winskin/waBalanceSlider.cpp
index cb6b0f19..1503632b 100644
--- a/noatun/modules/winskin/waBalanceSlider.cpp
+++ b/noatun/modules/winskin/waBalanceSlider.cpp
@@ -38,10 +38,10 @@ void WaBalanceSlider::buildGui()
ws->setValue(0);
- connect(ws, TQT_SIGNAL(valueChanged(int)), this,
- TQT_SIGNAL(balanceSetValue(int)));
- connect(ws, TQT_SIGNAL(sliderPressed()), TQT_SIGNAL(sliderPressed()));
- connect(ws, TQT_SIGNAL(sliderReleased()), TQT_SIGNAL(sliderReleased()));
+ connect(ws, TQ_SIGNAL(valueChanged(int)), this,
+ TQ_SIGNAL(balanceSetValue(int)));
+ connect(ws, TQ_SIGNAL(sliderPressed()), TQ_SIGNAL(sliderPressed()));
+ connect(ws, TQ_SIGNAL(sliderReleased()), TQ_SIGNAL(sliderReleased()));
}
diff --git a/noatun/modules/winskin/waBalanceSlider.h b/noatun/modules/winskin/waBalanceSlider.h
index 7a08ca04..7eb77055 100644
--- a/noatun/modules/winskin/waBalanceSlider.h
+++ b/noatun/modules/winskin/waBalanceSlider.h
@@ -20,7 +20,7 @@
#include "waWidget.h"
class WaBalanceSlider : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waButton.cpp b/noatun/modules/winskin/waButton.cpp
index 8dfa7bfb..318b5323 100644
--- a/noatun/modules/winskin/waButton.cpp
+++ b/noatun/modules/winskin/waButton.cpp
@@ -50,7 +50,7 @@ void WaButton::paintEvent(TQPaintEvent *) {
void WaButton::mousePressEvent(TQMouseEvent* e) {
- if (e->button() != Qt::LeftButton) {
+ if (e->button() != TQt::LeftButton) {
// We can't deal with it, but maybe the widget can do something clever
WaWidget::mousePressEvent(e);
}
@@ -68,7 +68,7 @@ void WaButton::mouseReleaseEvent(TQMouseEvent* e) {
else {
pressed = false;
- if (TQT_TQRECT_OBJECT(this->rect()).contains(e->pos())){
+ if (this->rect().contains(e->pos())){
if (_togglable) {
_toggled = !_toggled;
emit(toggleEvent(_toggled));
diff --git a/noatun/modules/winskin/waButton.h b/noatun/modules/winskin/waButton.h
index 69afecea..c8ecd05c 100644
--- a/noatun/modules/winskin/waButton.h
+++ b/noatun/modules/winskin/waButton.h
@@ -20,7 +20,7 @@
#include "waWidget.h"
class WaButton : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
WaButton(int mapId);
diff --git a/noatun/modules/winskin/waClutterbar.h b/noatun/modules/winskin/waClutterbar.h
index 070d9e7e..29892a98 100644
--- a/noatun/modules/winskin/waClutterbar.h
+++ b/noatun/modules/winskin/waClutterbar.h
@@ -5,7 +5,7 @@
#include "waWidget.h"
class WaClutterbar : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waDigit.cpp b/noatun/modules/winskin/waDigit.cpp
index 8e53c45f..1feb3851 100644
--- a/noatun/modules/winskin/waDigit.cpp
+++ b/noatun/modules/winskin/waDigit.cpp
@@ -57,28 +57,28 @@ void WaDigit::paintEvent(TQPaintEvent *)
// continue parsing
mapRect = waSkinModel->getMapGeometry(_WA_MAPPING_MINUS);
if (len == 6) {
- waSkinModel->getDigit('-', TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit('-', this, mapRect.x() - x, mapRect.y() - y);
time++;
}
else {
- waSkinModel->getDigit(' ', TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit(' ', this, mapRect.x() - x, mapRect.y() - y);
}
mapRect = waSkinModel->getMapGeometry(_WA_MAPPING_DIGIT_1);
- waSkinModel->getDigit(time[0], TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit(time[0], this, mapRect.x() - x, mapRect.y() - y);
mapRect = waSkinModel->getMapGeometry(_WA_MAPPING_DIGIT_2);
- waSkinModel->getDigit(time[1], TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit(time[1], this, mapRect.x() - x, mapRect.y() - y);
mapRect = waSkinModel->getMapGeometry(_WA_MAPPING_DIGIT_3);
- waSkinModel->getDigit(time[3], TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit(time[3], this, mapRect.x() - x, mapRect.y() - y);
mapRect = waSkinModel->getMapGeometry(_WA_MAPPING_DIGIT_4);
- waSkinModel->getDigit(time[4], TQT_TQPAINTDEVICE(this), mapRect.x() - x, mapRect.y() - y);
+ waSkinModel->getDigit(time[4], this, mapRect.x() - x, mapRect.y() - y);
}
void WaDigit::mousePressEvent(TQMouseEvent* e) {
- if (e->button() == Qt::LeftButton) {
+ if (e->button() == TQt::LeftButton) {
reverse_time = !reverse_time;
emit digitsClicked();
}
diff --git a/noatun/modules/winskin/waDigit.h b/noatun/modules/winskin/waDigit.h
index 8d159e71..2e8210ec 100644
--- a/noatun/modules/winskin/waDigit.h
+++ b/noatun/modules/winskin/waDigit.h
@@ -21,7 +21,7 @@
#include "waWidget.h"
class WaDigit : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waIndicator.h b/noatun/modules/winskin/waIndicator.h
index 48dcdab1..663bf0d9 100644
--- a/noatun/modules/winskin/waIndicator.h
+++ b/noatun/modules/winskin/waIndicator.h
@@ -21,7 +21,7 @@
#include "waWidget.h"
class WaIndicator : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waInfo.cpp b/noatun/modules/winskin/waInfo.cpp
index 25c088e3..1e55af78 100644
--- a/noatun/modules/winskin/waInfo.cpp
+++ b/noatun/modules/winskin/waInfo.cpp
@@ -25,8 +25,8 @@
WaInfo::WaInfo() : WaWidget(_WA_MAPPING_INFO)
{
- connect(WaSkinModel::instance(), TQT_SIGNAL(skinChanged()),
- this, TQT_SLOT(pixmapChange()));
+ connect(WaSkinModel::instance(), TQ_SIGNAL(skinChanged()),
+ this, TQ_SLOT(pixmapChange()));
completePixmap = new TQPixmap();
@@ -36,7 +36,7 @@ WaInfo::WaInfo() : WaWidget(_WA_MAPPING_INFO)
xGrabbedPos = -1;
timer = new TQTimer(this);
- connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeEvent()));
+ connect(timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timeEvent()));
}
WaInfo::~WaInfo()
@@ -132,7 +132,7 @@ void WaInfo::pixmapChange()
completePixmap->resize(TQMAX(n * _WA_TEXT_WIDTH, size.width()), _WA_TEXT_HEIGHT);
for (i = 0; i < n; i++) {
- WaSkinModel::instance()->getText(infoString[i], TQT_TQPAINTDEVICE(completePixmap), x, 0);
+ WaSkinModel::instance()->getText(infoString[i], completePixmap, x, 0);
x += _WA_TEXT_WIDTH;
}
@@ -140,7 +140,7 @@ void WaInfo::pixmapChange()
// fill the pixmap with spaces
if (x < size.width()) {
while (x < size.width()) {
- WaSkinModel::instance()->getText(' ', TQT_TQPAINTDEVICE(completePixmap), x, 0);
+ WaSkinModel::instance()->getText(' ', completePixmap, x, 0);
x += _WA_TEXT_WIDTH;
}
}
@@ -150,7 +150,7 @@ void WaInfo::pixmapChange()
}
void WaInfo::mousePressEvent (TQMouseEvent *e) {
- if (e->button() == Qt::LeftButton)
+ if (e->button() == TQt::LeftButton)
xGrabbedPos = (e->x() + xScrollPos) % completePixmap->width();
}
diff --git a/noatun/modules/winskin/waInfo.h b/noatun/modules/winskin/waInfo.h
index df29322a..a800cf54 100644
--- a/noatun/modules/winskin/waInfo.h
+++ b/noatun/modules/winskin/waInfo.h
@@ -22,7 +22,7 @@
#include "waWidget.h"
class WaInfo : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waJumpSlider.cpp b/noatun/modules/winskin/waJumpSlider.cpp
index b8750dc1..f38fc3c3 100644
--- a/noatun/modules/winskin/waJumpSlider.cpp
+++ b/noatun/modules/winskin/waJumpSlider.cpp
@@ -30,9 +30,9 @@ void WaJumpSlider::buildGui()
ws->setRange(0, 100);
ws->setValue(0);
- connect(ws, TQT_SIGNAL(sliderPressed()), this, TQT_SIGNAL(sliderPressed()));
- connect(ws, TQT_SIGNAL(sliderReleased()), this, TQT_SLOT(releasedSlider()));
- connect(ws, TQT_SIGNAL(valueChanged(int)), this, TQT_SIGNAL(valueChanged(int)));
+ connect(ws, TQ_SIGNAL(sliderPressed()), this, TQ_SIGNAL(sliderPressed()));
+ connect(ws, TQ_SIGNAL(sliderReleased()), this, TQ_SLOT(releasedSlider()));
+ connect(ws, TQ_SIGNAL(valueChanged(int)), this, TQ_SIGNAL(valueChanged(int)));
}
void WaJumpSlider::setJumpRange(int val)
diff --git a/noatun/modules/winskin/waJumpSlider.h b/noatun/modules/winskin/waJumpSlider.h
index dc92c388..50014aad 100644
--- a/noatun/modules/winskin/waJumpSlider.h
+++ b/noatun/modules/winskin/waJumpSlider.h
@@ -19,7 +19,7 @@
#include "waWidget.h"
class WaJumpSlider : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waLabel.cpp b/noatun/modules/winskin/waLabel.cpp
index 71f2baa2..7b452dac 100644
--- a/noatun/modules/winskin/waLabel.cpp
+++ b/noatun/modules/winskin/waLabel.cpp
@@ -19,8 +19,8 @@
WaLabel::WaLabel(int mapping) : WaWidget(mapping)
{
- connect(WaSkinModel::instance(), TQT_SIGNAL(skinChanged()),
- this, TQT_SLOT(pixmapChange()));
+ connect(WaSkinModel::instance(), TQ_SIGNAL(skinChanged()),
+ this, TQ_SLOT(pixmapChange()));
completePixmap = new TQPixmap();
@@ -58,7 +58,7 @@ void WaLabel::pixmapChange()
int n = label_text ? strlen(label_text) : 0;
for (int i = 0; i < n; i++)
- WaSkinModel::instance()->getText(label_text[i], TQT_TQPAINTDEVICE(completePixmap),
+ WaSkinModel::instance()->getText(label_text[i], completePixmap,
i * _WA_TEXT_WIDTH, 0);
}
diff --git a/noatun/modules/winskin/waLabel.h b/noatun/modules/winskin/waLabel.h
index 4bbc057c..ddaf8659 100644
--- a/noatun/modules/winskin/waLabel.h
+++ b/noatun/modules/winskin/waLabel.h
@@ -17,7 +17,7 @@
#include "waWidget.h"
class WaLabel : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waMain.h b/noatun/modules/winskin/waMain.h
index ba8aec08..ff175fd8 100644
--- a/noatun/modules/winskin/waMain.h
+++ b/noatun/modules/winskin/waMain.h
@@ -4,7 +4,7 @@
#include "waWidget.h"
class WaMain : WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
WaMain();
diff --git a/noatun/modules/winskin/waSkin.cpp b/noatun/modules/winskin/waSkin.cpp
index 4cdef1ec..91e6a45e 100644
--- a/noatun/modules/winskin/waSkin.cpp
+++ b/noatun/modules/winskin/waSkin.cpp
@@ -83,18 +83,18 @@ WaSkin::WaSkin() : TQWidget(0, "NoatunWinampSkin"), UserInterface()
title_shaded = false;
// These slots make Young Hickory love us
- connect( napp, TQT_SIGNAL(hideYourself()), this, TQT_SLOT(hide()) );
- connect( napp, TQT_SIGNAL(showYourself()), this, TQT_SLOT(show()) );
-
- connect(napp->player(), TQT_SIGNAL(playlistShown()), this,
- TQT_SLOT(playlistShown()));
- connect(napp->player(), TQT_SIGNAL(playlistHidden()), this,
- TQT_SLOT(playlistHidden()));
- connect(napp->player(), TQT_SIGNAL(loopTypeChange(int)), this,
- TQT_SLOT(loopChange(int)));
- connect(napp->player(), TQT_SIGNAL(newSong()), this, TQT_SLOT(newSong()));
-
- connect(napp->player(), TQT_SIGNAL(timeout()), this, TQT_SLOT(timetick()));
+ connect( napp, TQ_SIGNAL(hideYourself()), this, TQ_SLOT(hide()) );
+ connect( napp, TQ_SIGNAL(showYourself()), this, TQ_SLOT(show()) );
+
+ connect(napp->player(), TQ_SIGNAL(playlistShown()), this,
+ TQ_SLOT(playlistShown()));
+ connect(napp->player(), TQ_SIGNAL(playlistHidden()), this,
+ TQ_SLOT(playlistHidden()));
+ connect(napp->player(), TQ_SIGNAL(loopTypeChange(int)), this,
+ TQ_SLOT(loopChange(int)));
+ connect(napp->player(), TQ_SIGNAL(newSong()), this, TQ_SLOT(newSong()));
+
+ connect(napp->player(), TQ_SIGNAL(timeout()), this, TQ_SLOT(timetick()));
TDEConfig *config=TDEGlobal::config();
config->setGroup("Winskin");
@@ -106,13 +106,13 @@ WaSkin::WaSkin() : TQWidget(0, "NoatunWinampSkin"), UserInterface()
setIcon(SmallIcon("noatun"));
- TQObject::connect(waTitleBar, TQT_SIGNAL(shaded()), this, TQT_SLOT(shadeEvent()));
+ TQObject::connect(waTitleBar, TQ_SIGNAL(shaded()), this, TQ_SLOT(shadeEvent()));
// connect to players signals - so we can update our display if someone else
// changes settings...
- connect(napp->player(), TQT_SIGNAL(stopped()), this, TQT_SLOT(slotStopped()));
- connect(napp->player(), TQT_SIGNAL(playing()), this, TQT_SLOT(slotPlaying()));
- connect(napp->player(), TQT_SIGNAL(paused()), this, TQT_SLOT(slotPaused()));
+ connect(napp->player(), TQ_SIGNAL(stopped()), this, TQ_SLOT(slotStopped()));
+ connect(napp->player(), TQ_SIGNAL(playing()), this, TQ_SLOT(slotPlaying()));
+ connect(napp->player(), TQ_SIGNAL(paused()), this, TQ_SLOT(slotPaused()));
napp->player()->handleButtons();
@@ -126,7 +126,7 @@ WaSkin::WaSkin() : TQWidget(0, "NoatunWinampSkin"), UserInterface()
newSong();
// HACK: We won't get focus events otherwise
- setFocusPolicy(TQ_ClickFocus);
+ setFocusPolicy(TQWidget::ClickFocus);
show();
}
@@ -180,22 +180,22 @@ void WaSkin::createButtons()
menu = new WaButton(_WA_MAPPING_TITLE_MENU);
menu->setPixmapUp(_WA_SKIN_TITLE_MENU_NORM);
menu->setPixmapDown(_WA_SKIN_TITLE_MENU_PRES);
- connect(menu, TQT_SIGNAL(clicked()), this, TQT_SLOT(menuEvent()));
+ connect(menu, TQ_SIGNAL(clicked()), this, TQ_SLOT(menuEvent()));
minimize = new WaButton(_WA_MAPPING_TITLE_MIN);
minimize->setPixmapUp(_WA_SKIN_TITLE_MIN_NORM);
minimize->setPixmapDown(_WA_SKIN_TITLE_MIN_PRES);
- connect(minimize, TQT_SIGNAL(clicked()), this, TQT_SLOT(minimizeEvent()));
+ connect(minimize, TQ_SIGNAL(clicked()), this, TQ_SLOT(minimizeEvent()));
titleshade = new WaButton(_WA_MAPPING_TITLE_SHADE);
titleshade->setPixmapUp(_WA_SKIN_TITLE_SHADE_NORM);
titleshade->setPixmapDown(_WA_SKIN_TITLE_SHADE_PRES);
- connect(titleshade, TQT_SIGNAL(clicked()), this, TQT_SLOT(shadeEvent()));
+ connect(titleshade, TQ_SIGNAL(clicked()), this, TQ_SLOT(shadeEvent()));
close = new WaButton(_WA_MAPPING_TITLE_CLOSE);
close->setPixmapUp(_WA_SKIN_TITLE_CLOSE_NORM);
close->setPixmapDown(_WA_SKIN_TITLE_CLOSE_PRES);
- connect(close, TQT_SIGNAL(clicked()), this, TQT_SLOT(doClose()));
+ connect(close, TQ_SIGNAL(clicked()), this, TQ_SLOT(doClose()));
shuffle->setTogglable(true);
shuffle->show();
@@ -203,44 +203,44 @@ void WaSkin::createButtons()
repeat->setTogglable(true);
playlist->setTogglable(true);
- connect(shuffle, TQT_SIGNAL(toggleEvent(bool)),
- this, TQT_SLOT(shuffleClickedEvent(bool)));
+ connect(shuffle, TQ_SIGNAL(toggleEvent(bool)),
+ this, TQ_SLOT(shuffleClickedEvent(bool)));
- connect(repeat, TQT_SIGNAL(toggleEvent(bool)),
- this, TQT_SLOT(repeatClickedEvent(bool)));
+ connect(repeat, TQ_SIGNAL(toggleEvent(bool)),
+ this, TQ_SLOT(repeatClickedEvent(bool)));
- connect(playlist, TQT_SIGNAL(toggleEvent(bool)),
- this, TQT_SLOT(playlistClickedEvent(bool)));
+ connect(playlist, TQ_SIGNAL(toggleEvent(bool)),
+ this, TQ_SLOT(playlistClickedEvent(bool)));
- connect(eq, TQT_SIGNAL(clicked()),
- this, TQT_SLOT(eqClickedEvent()));
+ connect(eq, TQ_SIGNAL(clicked()),
+ this, TQ_SLOT(eqClickedEvent()));
prev->setPixmapUp(_WA_SKIN_CBUTTONS_PREV_NORM);
prev->setPixmapDown(_WA_SKIN_CBUTTONS_PREV_PRES);
- connect(prev, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(back()));
+ connect(prev, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(back()));
play->setPixmapUp(_WA_SKIN_CBUTTONS_PLAY_NORM);
play->setPixmapDown(_WA_SKIN_CBUTTONS_PLAY_PRES);
- connect(play, TQT_SIGNAL(clicked()), this, TQT_SLOT(playCurrentEvent()));
+ connect(play, TQ_SIGNAL(clicked()), this, TQ_SLOT(playCurrentEvent()));
pause->setPixmapUp(_WA_SKIN_CBUTTONS_PAUSE_NORM);
pause->setPixmapDown(_WA_SKIN_CBUTTONS_PAUSE_PRES);
- connect(pause, TQT_SIGNAL(clicked()), this, TQT_SLOT(playPauseEvent()));
+ connect(pause, TQ_SIGNAL(clicked()), this, TQ_SLOT(playPauseEvent()));
stop->setPixmapUp(_WA_SKIN_CBUTTONS_STOP_NORM);
stop->setPixmapDown(_WA_SKIN_CBUTTONS_STOP_PRES);
- connect(stop, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(stop()));
+ connect(stop, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(stop()));
next->setPixmapUp(_WA_SKIN_CBUTTONS_NEXT_NORM);
next->setPixmapDown(_WA_SKIN_CBUTTONS_NEXT_PRES);
- connect(next, TQT_SIGNAL(clicked()), napp->player(), TQT_SLOT(forward()));
+ connect(next, TQ_SIGNAL(clicked()), napp->player(), TQ_SLOT(forward()));
eject->setPixmapUp(_WA_SKIN_CBUTTONS_EJECT_NORM);
eject->setPixmapDown(_WA_SKIN_CBUTTONS_EJECT_PRESS);
- connect(eject, TQT_SIGNAL(clicked()), napp, TQT_SLOT(fileOpen()));
+ connect(eject, TQ_SIGNAL(clicked()), napp, TQ_SLOT(fileOpen()));
shuffle->setPixmapUp(_WA_SKIN_SHUFREP_SHUFFLE_NOT_SET_NORM);
shuffle->setPixmapDown(_WA_SKIN_SHUFREP_SHUFFLE_NOT_SET_PRES);
@@ -280,25 +280,25 @@ void WaSkin::createHighLevelElements()
waVolumeSlider = new WaVolumeSlider();
waVolumeSlider->buildGui();
- connect(waVolumeSlider, TQT_SIGNAL(volumeSetValue(int)),
- this, TQT_SLOT(volumeSetValue(int)));
- connect(waVolumeSlider, TQT_SIGNAL(sliderPressed()),
- this, TQT_SLOT(volumeSliderPressed()));
- connect(waVolumeSlider, TQT_SIGNAL(sliderReleased()),
- this, TQT_SLOT(volumeSliderReleased()));
+ connect(waVolumeSlider, TQ_SIGNAL(volumeSetValue(int)),
+ this, TQ_SLOT(volumeSetValue(int)));
+ connect(waVolumeSlider, TQ_SIGNAL(sliderPressed()),
+ this, TQ_SLOT(volumeSliderPressed()));
+ connect(waVolumeSlider, TQ_SIGNAL(sliderReleased()),
+ this, TQ_SLOT(volumeSliderReleased()));
waBalanceSlider = new WaBalanceSlider();
waBalanceSlider->buildGui();
- connect(waBalanceSlider, TQT_SIGNAL(balanceSetValue(int)),
- this, TQT_SLOT(balanceSetValue(int)));
- connect(waBalanceSlider, TQT_SIGNAL(sliderPressed()),
- this, TQT_SLOT(balanceSliderPressed()));
- connect(waBalanceSlider, TQT_SIGNAL(sliderReleased()),
- this, TQT_SLOT(balanceSliderReleased()));
+ connect(waBalanceSlider, TQ_SIGNAL(balanceSetValue(int)),
+ this, TQ_SLOT(balanceSetValue(int)));
+ connect(waBalanceSlider, TQ_SIGNAL(sliderPressed()),
+ this, TQ_SLOT(balanceSliderPressed()));
+ connect(waBalanceSlider, TQ_SIGNAL(sliderReleased()),
+ this, TQ_SLOT(balanceSliderReleased()));
waDigit = new WaDigit();
- connect(waDigit, TQT_SIGNAL(digitsClicked()), this, TQT_SLOT(digitsClicked()));
+ connect(waDigit, TQ_SIGNAL(digitsClicked()), this, TQ_SLOT(digitsClicked()));
waBPS = new WaLabel(_WA_MAPPING_BPS);
waFreq = new WaLabel(_WA_MAPPING_FREQ);
@@ -310,13 +310,13 @@ void WaSkin::createHighLevelElements()
waStereo = new WaIndicator(_WA_MAPPING_MONOSTER_STEREO, _WA_SKIN_MONOSTER_STEREO_TRUE, _WA_SKIN_MONOSTER_STEREO_FALSE);
waMono = new WaIndicator(_WA_MAPPING_MONOSTER_MONO, _WA_SKIN_MONOSTER_MONO_TRUE, _WA_SKIN_MONOSTER_MONO_FALSE);
- connect(waJumpSlider, TQT_SIGNAL(jump(int)), this, TQT_SLOT(jump(int)));
- connect(waJumpSlider, TQT_SIGNAL(sliderPressed()),
- this, TQT_SLOT(jumpSliderPressed()));
- connect(waJumpSlider, TQT_SIGNAL(sliderReleased()),
- this, TQT_SLOT(jumpSliderReleased()));
- connect(waJumpSlider, TQT_SIGNAL(valueChanged(int)),
- this, TQT_SLOT(jumpValueChanged(int)));
+ connect(waJumpSlider, TQ_SIGNAL(jump(int)), this, TQ_SLOT(jump(int)));
+ connect(waJumpSlider, TQ_SIGNAL(sliderPressed()),
+ this, TQ_SLOT(jumpSliderPressed()));
+ connect(waJumpSlider, TQ_SIGNAL(sliderReleased()),
+ this, TQ_SLOT(jumpSliderReleased()));
+ connect(waJumpSlider, TQ_SIGNAL(valueChanged(int)),
+ this, TQ_SLOT(jumpValueChanged(int)));
}
@@ -518,7 +518,7 @@ void WaSkin::doUnload() {
}
void WaSkin::doClose() {
- TQTimer::singleShot(0, this, TQT_SLOT(doUnload()));
+ TQTimer::singleShot(0, this, TQ_SLOT(doUnload()));
}
void WaSkin::dragEnterEvent(TQDragEnterEvent * event)
diff --git a/noatun/modules/winskin/waSkin.h b/noatun/modules/winskin/waSkin.h
index bba125cd..20b137a5 100644
--- a/noatun/modules/winskin/waSkin.h
+++ b/noatun/modules/winskin/waSkin.h
@@ -45,7 +45,7 @@ class WaSkin;
extern WaSkin *_waskin_instance;
class WaSkin : public TQWidget, public UserInterface {
- Q_OBJECT
+ TQ_OBJECT
NOATUNPLUGIND
WaSkinModel *waSkinModel;
diff --git a/noatun/modules/winskin/waSkinManager.cpp b/noatun/modules/winskin/waSkinManager.cpp
index 3363292c..f2e63469 100644
--- a/noatun/modules/winskin/waSkinManager.cpp
+++ b/noatun/modules/winskin/waSkinManager.cpp
@@ -73,7 +73,7 @@ bool WaSkinManager::installSkin(TQString _url) {
if (mimetype == "inode/directory")
{
TDEIO::Job *job = TDEIO::copy(url, location, !url.isLocalFile());
- connect(job, TQT_SIGNAL(result(TDEIO::Job *)), this, TQT_SIGNAL(updateSkinList()));
+ connect(job, TQ_SIGNAL(result(TDEIO::Job *)), this, TQ_SIGNAL(updateSkinList()));
return true;
}
else if ((mimetype == "interface/x-winamp-skin") || (mimetype == "application/x-zip"))
@@ -84,7 +84,7 @@ bool WaSkinManager::installSkin(TQString _url) {
TQString base_path;
base_path = location + "/" + TQFileInfo(url.path()).baseName().replace(TQRegExp("_"), " ");
TDEIO::Job *job = TDEIO::copy("zip:" + url.path(), base_path);
- connect(job, TQT_SIGNAL(result(TDEIO::Job *)), this, TQT_SIGNAL(updateSkinList()));
+ connect(job, TQ_SIGNAL(result(TDEIO::Job *)), this, TQ_SIGNAL(updateSkinList()));
return true;
}
@@ -99,7 +99,7 @@ bool WaSkinManager::removeSkin(TQString skinName) {
TQStringList skins = TDEGlobal::dirs()->findDirs("data", "noatun/skins/winamp/" + skinName);
TDEIO::Job *job = TDEIO::del(KURL(skins[0]), false, false);
- connect(job, TQT_SIGNAL(result(TDEIO::Job *)), this, TQT_SIGNAL(updateSkinList()));
+ connect(job, TQ_SIGNAL(result(TDEIO::Job *)), this, TQ_SIGNAL(updateSkinList()));
return true;
}
diff --git a/noatun/modules/winskin/waSkinManager.h b/noatun/modules/winskin/waSkinManager.h
index a3b06c45..dd9f7815 100644
--- a/noatun/modules/winskin/waSkinManager.h
+++ b/noatun/modules/winskin/waSkinManager.h
@@ -8,7 +8,7 @@
#include <tqmap.h>
class WaSkinManager : public TQObject, public DCOPObject {
-Q_OBJECT
+TQ_OBJECT
//
K_DCOP
diff --git a/noatun/modules/winskin/waSkinModel.h b/noatun/modules/winskin/waSkinModel.h
index 45898c45..88430293 100644
--- a/noatun/modules/winskin/waSkinModel.h
+++ b/noatun/modules/winskin/waSkinModel.h
@@ -26,7 +26,7 @@ class WaSkinModel;
extern WaSkinModel *_waskinmodel_instance;
class WaSkinModel : public TQObject {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waSlider.cpp b/noatun/modules/winskin/waSlider.cpp
index 8c97c272..b3705e9d 100644
--- a/noatun/modules/winskin/waSlider.cpp
+++ b/noatun/modules/winskin/waSlider.cpp
@@ -102,7 +102,7 @@ void WaSlider::updateSliderPos(int value)
}
void WaSlider::mousePressEvent(TQMouseEvent *e) {
- if (e->button() != Qt::LeftButton && e->button() != Qt::MidButton) {
+ if (e->button() != TQt::LeftButton && e->button() != TQt::MidButton) {
WaWidget::mousePressEvent(e);
return;
}
diff --git a/noatun/modules/winskin/waSlider.h b/noatun/modules/winskin/waSlider.h
index b5e50a0e..0758231e 100644
--- a/noatun/modules/winskin/waSlider.h
+++ b/noatun/modules/winskin/waSlider.h
@@ -22,7 +22,7 @@
#include "waButton.h"
class WaSlider : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waStatus.h b/noatun/modules/winskin/waStatus.h
index 8bf0067e..0e02103b 100644
--- a/noatun/modules/winskin/waStatus.h
+++ b/noatun/modules/winskin/waStatus.h
@@ -23,7 +23,7 @@
enum status_enum {STATUS_PLAYING, STATUS_STOPPED, STATUS_PAUSED};
class WaStatus : public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waTitleBar.cpp b/noatun/modules/winskin/waTitleBar.cpp
index 9570dac0..fa1e0e7c 100644
--- a/noatun/modules/winskin/waTitleBar.cpp
+++ b/noatun/modules/winskin/waTitleBar.cpp
@@ -34,7 +34,7 @@ WaTitleBar::~WaTitleBar()
void WaTitleBar::mousePressEvent(TQMouseEvent * e)
{
- if (e->button() != Qt::RightButton) {
+ if (e->button() != TQt::RightButton) {
if (!moving) {
moving = true;
mDragStart = e->pos();
@@ -55,7 +55,7 @@ void WaTitleBar::mouseDoubleClickEvent(TQMouseEvent *) {
void WaTitleBar::mouseReleaseEvent(TQMouseEvent * e)
{
- if (e->button() != Qt::RightButton) {
+ if (e->button() != TQt::RightButton) {
moving = false;
update();
return;
diff --git a/noatun/modules/winskin/waTitleBar.h b/noatun/modules/winskin/waTitleBar.h
index 2d9e3fde..8e6096bc 100644
--- a/noatun/modules/winskin/waTitleBar.h
+++ b/noatun/modules/winskin/waTitleBar.h
@@ -28,7 +28,7 @@
class WaTitleBar : public WaIndicator {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waVolumeSlider.cpp b/noatun/modules/winskin/waVolumeSlider.cpp
index f61e22f1..712e974d 100644
--- a/noatun/modules/winskin/waVolumeSlider.cpp
+++ b/noatun/modules/winskin/waVolumeSlider.cpp
@@ -33,10 +33,10 @@ void WaVolumeSlider::buildGui()
ws->setPixmapSliderButtonDown(_WA_SKIN_VOLUME_SLIDER_PRES);
ws->setPixmapSliderBar(_WA_SKIN_VOLUME_BAR);
- connect(ws, TQT_SIGNAL(valueChanged(int)), this,
- TQT_SIGNAL(volumeSetValue(int)));
- connect(ws, TQT_SIGNAL(sliderPressed()), TQT_SIGNAL(sliderPressed()));
- connect(ws, TQT_SIGNAL(sliderReleased()), TQT_SIGNAL(sliderReleased()));
+ connect(ws, TQ_SIGNAL(valueChanged(int)), this,
+ TQ_SIGNAL(volumeSetValue(int)));
+ connect(ws, TQ_SIGNAL(sliderPressed()), TQ_SIGNAL(sliderPressed()));
+ connect(ws, TQ_SIGNAL(sliderReleased()), TQ_SIGNAL(sliderReleased()));
}
void WaVolumeSlider::setVolumeValue(int val)
diff --git a/noatun/modules/winskin/waVolumeSlider.h b/noatun/modules/winskin/waVolumeSlider.h
index 9d872c9f..a528abef 100644
--- a/noatun/modules/winskin/waVolumeSlider.h
+++ b/noatun/modules/winskin/waVolumeSlider.h
@@ -19,7 +19,7 @@
#include "waWidget.h"
class WaVolumeSlider:public WaWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/noatun/modules/winskin/waWidget.cpp b/noatun/modules/winskin/waWidget.cpp
index 4a44f252..b8c4b1ac 100644
--- a/noatun/modules/winskin/waWidget.cpp
+++ b/noatun/modules/winskin/waWidget.cpp
@@ -6,7 +6,7 @@
WaWidget::WaWidget(int _mapping) : TQWidget(WaSkin::instance()) {
mapping = _mapping;
setBackgroundMode(NoBackground);
- connect (WaSkinModel::instance(), TQT_SIGNAL(skinChanged()), this, TQT_SLOT(skinChanged()));
+ connect (WaSkinModel::instance(), TQ_SIGNAL(skinChanged()), this, TQ_SLOT(skinChanged()));
}
WaWidget::~WaWidget() {
@@ -14,31 +14,31 @@ WaWidget::~WaWidget() {
void WaWidget::paintPixmap(int pixmap_mapping) {
if (pixmap_mapping != -1)
- WaSkinModel::instance()->bltTo(pixmap_mapping, TQT_TQPAINTDEVICE(this), 0, 0);
+ WaSkinModel::instance()->bltTo(pixmap_mapping, this, 0, 0);
else
- WaSkinModel::instance()->paintBackgroundTo(mapping, TQT_TQPAINTDEVICE(this), 0, 0);
+ WaSkinModel::instance()->paintBackgroundTo(mapping, this, 0, 0);
}
void WaWidget::paintPixmap(int pixmap_mapping, int x, int y) {
if (pixmap_mapping != -1)
- WaSkinModel::instance()->bltTo(pixmap_mapping, TQT_TQPAINTDEVICE(this), x, y);
+ WaSkinModel::instance()->bltTo(pixmap_mapping, this, x, y);
else
- WaSkinModel::instance()->paintBackgroundTo(mapping, TQT_TQPAINTDEVICE(this), x, y);
+ WaSkinModel::instance()->paintBackgroundTo(mapping, this, x, y);
}
void WaWidget::paintPixmap(int pixmap_mapping, int argument) {
if (pixmap_mapping != -1)
- WaSkinModel::instance()->bltTo(pixmap_mapping, TQT_TQPAINTDEVICE(this), 0, 0, argument);
+ WaSkinModel::instance()->bltTo(pixmap_mapping, this, 0, 0, argument);
else
- WaSkinModel::instance()->paintBackgroundTo(mapping, TQT_TQPAINTDEVICE(this), 0, 0);
+ WaSkinModel::instance()->paintBackgroundTo(mapping, this, 0, 0);
}
void WaWidget::paintPixmap(int pixmap_mapping, int argument, int x, int y) {
if (pixmap_mapping != -1)
- WaSkinModel::instance()->bltTo(pixmap_mapping, TQT_TQPAINTDEVICE(this), x, y, argument);
+ WaSkinModel::instance()->bltTo(pixmap_mapping, this, x, y, argument);
else
- WaSkinModel::instance()->paintBackgroundTo(mapping, TQT_TQPAINTDEVICE(this), x, y);
+ WaSkinModel::instance()->paintBackgroundTo(mapping, this, x, y);
}
TQSize WaWidget::sizeHint() {
@@ -46,7 +46,7 @@ TQSize WaWidget::sizeHint() {
}
void WaWidget::mousePressEvent(TQMouseEvent *e) {
- if (e->button() == Qt::RightButton)
+ if (e->button() == TQt::RightButton)
NoatunStdAction::ContextMenu::showContextMenu();
}
diff --git a/noatun/modules/winskin/waWidget.h b/noatun/modules/winskin/waWidget.h
index fa86f26b..3f2f018a 100644
--- a/noatun/modules/winskin/waWidget.h
+++ b/noatun/modules/winskin/waWidget.h
@@ -5,7 +5,7 @@
#include "waSkinModel.h"
class WaWidget : public TQWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
WaWidget(int mapping);
@@ -19,7 +19,7 @@ public:
void paintPixmap(int wa_mapping, int x, int y);
void paintPixmap(int wa_mapping, int number, int x, int y);
- void paintBackground() { WaSkinModel::instance()->paintBackgroundTo(mapping, TQT_TQPAINTDEVICE(this), 0, 0); }
+ void paintBackground() { WaSkinModel::instance()->paintBackgroundTo(mapping, this, 0, 0); }
protected:
void mousePressEvent(TQMouseEvent *);
diff --git a/noatun/modules/winskin/winSkinConfig.cpp b/noatun/modules/winskin/winSkinConfig.cpp
index c7dad1ae..4591b4d7 100644
--- a/noatun/modules/winskin/winSkinConfig.cpp
+++ b/noatun/modules/winskin/winSkinConfig.cpp
@@ -27,7 +27,7 @@ WinSkinConfig::WinSkinConfig(TQWidget * parent, WaSkinManager *waSkinManager) :
CModule(i18n("Winskin"),
i18n("Skin Selection for the Winskin Plugin"),
"style",
- TQT_TQOBJECT(parent))
+ parent)
{
// Make a token horizontal layout box
vbox = new TQVBoxLayout(this);
@@ -48,14 +48,14 @@ WinSkinConfig::WinSkinConfig(TQWidget * parent, WaSkinManager *waSkinManager) :
hbox->addWidget(buttonRemove);
vbox->addLayout(hbox);
- connect( skin_list, TQT_SIGNAL(highlighted(const TQString &)), this, TQT_SLOT(selected()));
- connect( buttonInstall, TQT_SIGNAL(clicked()), this, TQT_SLOT(install()));
- connect( buttonRemove, TQT_SIGNAL(clicked()), this, TQT_SLOT(remove()));
- connect(waSkinManager, TQT_SIGNAL(updateSkinList()), this, TQT_SLOT(reopen()));
+ connect( skin_list, TQ_SIGNAL(highlighted(const TQString &)), this, TQ_SLOT(selected()));
+ connect( buttonInstall, TQ_SIGNAL(clicked()), this, TQ_SLOT(install()));
+ connect( buttonRemove, TQ_SIGNAL(clicked()), this, TQ_SLOT(remove()));
+ connect(waSkinManager, TQ_SIGNAL(updateSkinList()), this, TQ_SLOT(reopen()));
mWaSkinManager = waSkinManager;
- TQGroupBox *settingsBox = new TQGroupBox( 1,Qt::Vertical, i18n("Settings"), this );
+ TQGroupBox *settingsBox = new TQGroupBox( 1,TQt::Vertical, i18n("Settings"), this );
vbox->addWidget(settingsBox);
TQHBox *box = new TQHBox(settingsBox);
@@ -68,7 +68,7 @@ WinSkinConfig::WinSkinConfig(TQWidget * parent, WaSkinManager *waSkinManager) :
scrollSpeed->setMinValue( 0 );
scrollSpeed->setMaxValue( 50 );
scrollSpeed->setPageStep( 1 );
- scrollSpeed->setOrientation( Qt::Horizontal );
+ scrollSpeed->setOrientation( TQt::Horizontal );
scrollSpeed->setTickmarks( TQSlider::NoMarks );
label = new TQLabel(i18n("Fast"), box);
diff --git a/noatun/modules/winskin/winSkinConfig.h b/noatun/modules/winskin/winSkinConfig.h
index b25b7178..99220e6e 100644
--- a/noatun/modules/winskin/winSkinConfig.h
+++ b/noatun/modules/winskin/winSkinConfig.h
@@ -9,7 +9,7 @@ class WaSkinManager;
class TQSlider;
class WinSkinConfig:public CModule {
- Q_OBJECT
+ TQ_OBJECT
public:
WinSkinConfig(TQWidget * parent, WaSkinManager *waManager);
diff --git a/noatun/modules/winskin/winSkinVis.h b/noatun/modules/winskin/winSkinVis.h
index 88d756c4..502c507c 100644
--- a/noatun/modules/winskin/winSkinVis.h
+++ b/noatun/modules/winskin/winSkinVis.h
@@ -24,7 +24,7 @@
#include "vis/winskinvis.h"
class WinSkinVis : public TQObject, public Visualization {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdefile-plugins/au/tdefile_au.h b/tdefile-plugins/au/tdefile_au.h
index 9d5104ef..14b141fc 100644
--- a/tdefile-plugins/au/tdefile_au.h
+++ b/tdefile-plugins/au/tdefile_au.h
@@ -26,7 +26,7 @@ class TQStringList;
class KAuPlugin: public KFilePlugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdefile-plugins/avi/tdefile_avi.h b/tdefile-plugins/avi/tdefile_avi.h
index a533723b..f6718bff 100644
--- a/tdefile-plugins/avi/tdefile_avi.h
+++ b/tdefile-plugins/avi/tdefile_avi.h
@@ -36,7 +36,7 @@ class TQStringList;
class KAviPlugin: public KFilePlugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdefile-plugins/flac/tdefile_flac.cpp b/tdefile-plugins/flac/tdefile_flac.cpp
index 85d52068..3ee4efa2 100644
--- a/tdefile-plugins/flac/tdefile_flac.cpp
+++ b/tdefile-plugins/flac/tdefile_flac.cpp
@@ -43,6 +43,8 @@
#define TAGLIB_1_2
#endif
+#define TStringToTQString(s) TQString::fromUtf8((s).toCString(true))
+
#include <tstring.h>
#include <tfile.h>
#include <flacfile.h>
@@ -181,13 +183,13 @@ bool KFlacPlugin::readInfo( KFileMetaInfo& info, uint what )
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", 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, "Title", TStringToTQString(file->tag()->title()).stripWhiteSpace());
+ appendItem(commentgroup, "Artist", TStringToTQString(file->tag()->artist()).stripWhiteSpace());
+ appendItem(commentgroup, "Album", TStringToTQString(file->tag()->album()).stripWhiteSpace());
appendItem(commentgroup, "Date", date);
- appendItem(commentgroup, "Comment", TQString(TStringToQString(file->tag()->comment())).stripWhiteSpace());
+ appendItem(commentgroup, "Comment", TStringToTQString(file->tag()->comment()).stripWhiteSpace());
appendItem(commentgroup, "Tracknumber", track);
- appendItem(commentgroup, "Genre", TQString(TStringToQString(file->tag()->genre())).stripWhiteSpace());
+ appendItem(commentgroup, "Genre", TStringToTQString(file->tag()->genre()).stripWhiteSpace());
}
if (readTech && file->audioProperties())
@@ -198,7 +200,7 @@ bool KFlacPlugin::readInfo( KFileMetaInfo& info, uint what )
appendItem(techgroup, "Bitrate", properties->bitrate());
appendItem(techgroup, "Sample Rate", properties->sampleRate());
- appendItem(techgroup, "Sample Width", properties->sampleWidth());
+ appendItem(techgroup, "Sample Width", properties->bitsPerSample());
appendItem(techgroup, "Channels", properties->channels());
appendItem(techgroup, "Length", properties->length());
}
@@ -232,7 +234,7 @@ bool KFlacPlugin::writeInfo(const KFileMetaInfo& info) const
{
TagLib::File *file;
- if (!TagLib::File::isWritable(TQFile::encodeName(info.path()).data())) {
+ if (access(info.path().local8Bit().data(), R_OK|W_OK)) {
kdDebug(7034) << "can't write to " << info.path() << endl;
return false;
}
diff --git a/tdefile-plugins/flac/tdefile_flac.h b/tdefile-plugins/flac/tdefile_flac.h
index 982a8a51..72c1f8c6 100644
--- a/tdefile-plugins/flac/tdefile_flac.h
+++ b/tdefile-plugins/flac/tdefile_flac.h
@@ -31,7 +31,7 @@ class TQStringList;
class KFlacPlugin: public KFilePlugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdefile-plugins/m3u/tdefile_m3u.h b/tdefile-plugins/m3u/tdefile_m3u.h
index 08a6c506..da2142a9 100644
--- a/tdefile-plugins/m3u/tdefile_m3u.h
+++ b/tdefile-plugins/m3u/tdefile_m3u.h
@@ -28,7 +28,7 @@ class TQStringList;
class KM3uPlugin: public KFilePlugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdefile-plugins/mp3/tdefile_mp3.cpp b/tdefile-plugins/mp3/tdefile_mp3.cpp
index 041e0313..f6f567cf 100644
--- a/tdefile-plugins/mp3/tdefile_mp3.cpp
+++ b/tdefile-plugins/mp3/tdefile_mp3.cpp
@@ -40,6 +40,8 @@
#include <id3v1genres.h>
#include <id3v2framefactory.h>
+#define TStringToTQString(s) TQString::fromUtf8((s).toCString(true))
+
typedef KGenericFactory<KMp3Plugin> Mp3Factory;
K_EXPORT_COMPONENT_FACTORY(tdefile_mp3, Mp3Factory( "tdefile_mp3" ))
@@ -47,9 +49,9 @@ K_EXPORT_COMPONENT_FACTORY(tdefile_mp3, Mp3Factory( "tdefile_mp3" ))
KMp3Plugin::KMp3Plugin(TQObject *parent, const char *name, const TQStringList &args)
: KFilePlugin(parent, name, args)
{
- kdDebug(7034) << "mp3 plugin\n";
+ kdDebug(7034) << "mp3 plugin for mimetype " << name << endl;
- KFileMimeTypeInfo *info = addMimeTypeInfo("audio/x-mp3");
+ KFileMimeTypeInfo *info = addMimeTypeInfo(name);
// id3 group
@@ -154,21 +156,21 @@ bool KMp3Plugin::readInfo(KFileMetaInfo &info, uint what)
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 = TQString(TStringToQString(file.tag()->title())).stripWhiteSpace();
+ TQString title = TStringToTQString(file.tag()->title()).stripWhiteSpace();
if (!title.isEmpty())
appendItem(id3group, "Title", title);
- TQString artist = TQString(TStringToQString(file.tag()->artist())).stripWhiteSpace();
+ TQString artist = TStringToTQString(file.tag()->artist()).stripWhiteSpace();
if (!artist.isEmpty())
appendItem(id3group, "Artist", artist);
- TQString album = TQString(TStringToQString(file.tag()->album())).stripWhiteSpace();
+ TQString album = TStringToTQString(file.tag()->album()).stripWhiteSpace();
if (!album.isEmpty())
appendItem(id3group, "Album", album);
appendItem(id3group, "Date", date);
- TQString comment = TQString(TStringToQString(file.tag()->comment())).stripWhiteSpace();
+ TQString comment = TStringToTQString(file.tag()->comment()).stripWhiteSpace();
if (!comment.isEmpty())
appendItem(id3group, "Comment", comment);
appendItem(id3group, "Tracknumber", track);
- TQString genre = TQString(TStringToQString(file.tag()->genre())).stripWhiteSpace();
+ TQString genre = TStringToTQString(file.tag()->genre()).stripWhiteSpace();
if (!genre.isEmpty())
appendItem(id3group, "Genre", genre);
}
@@ -235,7 +237,7 @@ bool KMp3Plugin::writeInfo(const KFileMetaInfo &info) const
TagLib::ID3v2::FrameFactory::instance()->setDefaultTextEncoding(TagLib::String::UTF8);
TagLib::MPEG::File file(TQFile::encodeName(info.path()).data(), false);
- if(!file.isOpen() || !TagLib::File::isWritable(file.name()))
+ if(!file.isOpen() || access(info.path().local8Bit().data(), R_OK|W_OK))
{
kdDebug(7034) << "couldn't open " << info.path() << endl;
return false;
@@ -294,7 +296,7 @@ TQValidator *KMp3Plugin::createValidator(const TQString & /* mimetype */,
TagLib::StringList genres = TagLib::ID3v1::genreList();
for(TagLib::StringList::ConstIterator it = genres.begin(); it != genres.end(); ++it)
{
- l.append(TStringToQString((*it)));
+ l.append(TStringToTQString((*it)));
}
return new ComboValidator(l, false, true, parent, name);
}
diff --git a/tdefile-plugins/mp3/tdefile_mp3.desktop b/tdefile-plugins/mp3/tdefile_mp3.desktop
index 617ecc02..9eaeb81d 100644
--- a/tdefile-plugins/mp3/tdefile_mp3.desktop
+++ b/tdefile-plugins/mp3/tdefile_mp3.desktop
@@ -3,6 +3,6 @@ Type=Service
Name=MP3 Info
X-TDE-ServiceTypes=KFilePlugin
X-TDE-Library=tdefile_mp3
-MimeType=audio/x-mp3
+MimeType=audio/mpeg;audio/x-mp3
PreferredGroups=id3,Technical
PreferredItems=Title,Artist,Album,Tracknumber,Genre,Bitrate,Length,Date,Comment,Sample Rate,Channels,Version,Layer,Copyright,Original,CRC
diff --git a/tdefile-plugins/mp3/tdefile_mp3.h b/tdefile-plugins/mp3/tdefile_mp3.h
index cc01aa3e..d6e13cb8 100644
--- a/tdefile-plugins/mp3/tdefile_mp3.h
+++ b/tdefile-plugins/mp3/tdefile_mp3.h
@@ -25,7 +25,7 @@ class TQStringList;
class KMp3Plugin: public KFilePlugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdefile-plugins/mpc/tdefile_mpc.cpp b/tdefile-plugins/mpc/tdefile_mpc.cpp
index 9a6a3d42..b3282c19 100644
--- a/tdefile-plugins/mpc/tdefile_mpc.cpp
+++ b/tdefile-plugins/mpc/tdefile_mpc.cpp
@@ -46,6 +46,8 @@
#include <unistd.h>
#include <ctype.h>
+#define TStringToTQString(s) TQString::fromUtf8((s).toCString(true))
+
K_EXPORT_COMPONENT_FACTORY(tdefile_mpc, KGenericFactory<KMpcPlugin>("tdefile_mpc"))
KMpcPlugin::KMpcPlugin( TQObject *parent, const char *name,
@@ -157,13 +159,13 @@ bool KMpcPlugin::readInfo( KFileMetaInfo& info, uint what )
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", 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, "Title", TStringToTQString(file->tag()->title()).stripWhiteSpace());
+ appendItem(commentgroup, "Artist", TStringToTQString(file->tag()->artist()).stripWhiteSpace());
+ appendItem(commentgroup, "Album", TStringToTQString(file->tag()->album()).stripWhiteSpace());
appendItem(commentgroup, "Date", date);
- appendItem(commentgroup, "Comment", TQString(TStringToQString(file->tag()->comment())).stripWhiteSpace());
+ appendItem(commentgroup, "Comment", TStringToTQString(file->tag()->comment()).stripWhiteSpace());
appendItem(commentgroup, "Tracknumber", track);
- appendItem(commentgroup, "Genre", TQString(TStringToQString(file->tag()->genre())).stripWhiteSpace());
+ appendItem(commentgroup, "Genre", TStringToTQString(file->tag()->genre()).stripWhiteSpace());
}
if (readTech)
@@ -208,7 +210,7 @@ bool KMpcPlugin::writeInfo(const KFileMetaInfo& info) const
{
TagLib::File *file;
- if (!TagLib::File::isWritable(TQFile::encodeName(info.path()).data())) {
+ if (access(info.path().local8Bit().data(), R_OK|W_OK)) {
kdDebug(7034) << "can't write to " << info.path() << endl;
return false;
}
diff --git a/tdefile-plugins/mpc/tdefile_mpc.h b/tdefile-plugins/mpc/tdefile_mpc.h
index 4bb3a387..b3a223e4 100644
--- a/tdefile-plugins/mpc/tdefile_mpc.h
+++ b/tdefile-plugins/mpc/tdefile_mpc.h
@@ -31,7 +31,7 @@ class TQStringList;
class KMpcPlugin: public KFilePlugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdefile-plugins/mpeg/tdefile_mpeg.h b/tdefile-plugins/mpeg/tdefile_mpeg.h
index 113bd8ee..0bfc2093 100644
--- a/tdefile-plugins/mpeg/tdefile_mpeg.h
+++ b/tdefile-plugins/mpeg/tdefile_mpeg.h
@@ -27,7 +27,7 @@ class TQStringList;
class KMpegPlugin: public KFilePlugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdefile-plugins/ogg/tdefile_ogg.h b/tdefile-plugins/ogg/tdefile_ogg.h
index f03e4283..38e65047 100644
--- a/tdefile-plugins/ogg/tdefile_ogg.h
+++ b/tdefile-plugins/ogg/tdefile_ogg.h
@@ -28,7 +28,7 @@ class TQStringList;
class KOggPlugin: public KFilePlugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdefile-plugins/sid/tdefile_sid.h b/tdefile-plugins/sid/tdefile_sid.h
index fadf13f5..cec8465c 100644
--- a/tdefile-plugins/sid/tdefile_sid.h
+++ b/tdefile-plugins/sid/tdefile_sid.h
@@ -27,7 +27,7 @@ class TQStringList;
class KSidPlugin: public KFilePlugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdefile-plugins/theora/tdefile_theora.h b/tdefile-plugins/theora/tdefile_theora.h
index a1aa0c09..69b3dcd8 100644
--- a/tdefile-plugins/theora/tdefile_theora.h
+++ b/tdefile-plugins/theora/tdefile_theora.h
@@ -30,7 +30,7 @@ class TQStringList;
class theoraPlugin: public KFilePlugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdefile-plugins/wav/tdefile_wav.h b/tdefile-plugins/wav/tdefile_wav.h
index 53eb6ccd..07c581a9 100644
--- a/tdefile-plugins/wav/tdefile_wav.h
+++ b/tdefile-plugins/wav/tdefile_wav.h
@@ -26,7 +26,7 @@ class TQStringList;
class KWavPlugin: public KFilePlugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdeioslave/audiocd/kcmaudiocd/audiocdconfig.ui b/tdeioslave/audiocd/kcmaudiocd/audiocdconfig.ui
index 25a6d6f5..fba43890 100644
--- a/tdeioslave/audiocd/kcmaudiocd/audiocdconfig.ui
+++ b/tdeioslave/audiocd/kcmaudiocd/audiocdconfig.ui
@@ -619,8 +619,8 @@
<include location="global" impldecl="in declaration">tdecmodule.h</include>
<include location="global" impldecl="in implementation">klineedit.h</include>
</includes>
-<Q_SLOTS>
+<slots>
<slot>toggleLowpass()</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/tdeioslave/audiocd/kcmaudiocd/kcmaudiocd.cpp b/tdeioslave/audiocd/kcmaudiocd/kcmaudiocd.cpp
index 1954422c..a0dcf468 100644
--- a/tdeioslave/audiocd/kcmaudiocd/kcmaudiocd.cpp
+++ b/tdeioslave/audiocd/kcmaudiocd/kcmaudiocd.cpp
@@ -62,25 +62,25 @@ KAudiocdModule::KAudiocdModule(TQWidget *parent, const char *name)
TDEConfigDialogManager *widget;
for ( widget = encoderSettings.first(); widget; widget = encoderSettings.next() ){
- connect(widget, TQT_SIGNAL(widgetModified()), this, TQT_SLOT(slotModuleChanged()));
+ connect(widget, TQ_SIGNAL(widgetModified()), this, TQ_SLOT(slotModuleChanged()));
}
//CDDA Options
- connect(cd_specify_device,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotConfigChanged()));
- connect(ec_enable_check,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotEcEnable()));
- connect(ec_skip_check,TQT_SIGNAL(clicked()),TQT_SLOT(slotConfigChanged()));
- connect(cd_device_string,TQT_SIGNAL(textChanged(const TQString &)),TQT_SLOT(slotConfigChanged()));
- connect(niceLevel,TQT_SIGNAL(valueChanged(int)),TQT_SLOT(slotConfigChanged()));
+ connect(cd_specify_device,TQ_SIGNAL(clicked()),this,TQ_SLOT(slotConfigChanged()));
+ connect(ec_enable_check,TQ_SIGNAL(clicked()),this,TQ_SLOT(slotEcEnable()));
+ connect(ec_skip_check,TQ_SIGNAL(clicked()),TQ_SLOT(slotConfigChanged()));
+ connect(cd_device_string,TQ_SIGNAL(textChanged(const TQString &)),TQ_SLOT(slotConfigChanged()));
+ connect(niceLevel,TQ_SIGNAL(valueChanged(int)),TQ_SLOT(slotConfigChanged()));
// File Name
- connect(fileNameLineEdit, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotConfigChanged()));
- connect(albumNameLineEdit, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotConfigChanged()));
- connect( kcfg_replaceInput, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( updateExample() ) );
- connect( kcfg_replaceOutput, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( updateExample() ) );
- connect( example, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( updateExample() ) );
- connect( kcfg_replaceInput, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slotConfigChanged() ) );
- connect( kcfg_replaceOutput, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slotConfigChanged() ) );
- connect( example, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slotConfigChanged() ) );
+ connect(fileNameLineEdit, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(slotConfigChanged()));
+ connect(albumNameLineEdit, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(slotConfigChanged()));
+ connect( kcfg_replaceInput, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( updateExample() ) );
+ connect( kcfg_replaceOutput, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( updateExample() ) );
+ connect( example, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( updateExample() ) );
+ connect( kcfg_replaceInput, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( slotConfigChanged() ) );
+ connect( kcfg_replaceOutput, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( slotConfigChanged() ) );
+ connect( example, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( slotConfigChanged() ) );
TDEAboutData *about =
new TDEAboutData(I18N_NOOP("kcmaudiocd"), I18N_NOOP("TDE Audio CD IO Slave"),
diff --git a/tdeioslave/audiocd/kcmaudiocd/kcmaudiocd.h b/tdeioslave/audiocd/kcmaudiocd/kcmaudiocd.h
index f89ef32f..b7f186cb 100644
--- a/tdeioslave/audiocd/kcmaudiocd/kcmaudiocd.h
+++ b/tdeioslave/audiocd/kcmaudiocd/kcmaudiocd.h
@@ -31,7 +31,7 @@ class TDEConfigDialogManager;
#include "audiocdconfig.h"
class KAudiocdModule : public AudiocdConfig
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdeioslave/audiocd/plugins/flac/encoderflac.cpp b/tdeioslave/audiocd/plugins/flac/encoderflac.cpp
index ed1c5dde..f8a839c5 100644
--- a/tdeioslave/audiocd/plugins/flac/encoderflac.cpp
+++ b/tdeioslave/audiocd/plugins/flac/encoderflac.cpp
@@ -187,7 +187,7 @@ void EncoderFLAC::fillSongInfo( KCDDB::CDInfo info, int track, const TQString &c
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));
+ comments[6] = Comment("Date", dt.toString(TQt::ISODate));
}
FLAC__StreamMetadata_VorbisComment_Entry entry;
diff --git a/tdeioslave/audiocd/plugins/lame/collectingprocess.cpp b/tdeioslave/audiocd/plugins/lame/collectingprocess.cpp
index 4eaf5304..50bf5d42 100644
--- a/tdeioslave/audiocd/plugins/lame/collectingprocess.cpp
+++ b/tdeioslave/audiocd/plugins/lame/collectingprocess.cpp
@@ -59,18 +59,18 @@ CollectingProcess::~CollectingProcess() {
bool CollectingProcess::start( RunMode runmode, Communication comm ) {
// prevent duplicate connection
- disconnect( this, TQT_SIGNAL( receivedStdout( TDEProcess *, char *, int ) ),
- this, TQT_SLOT( slotReceivedStdout( TDEProcess *, char *, int ) ) );
+ disconnect( this, TQ_SIGNAL( receivedStdout( TDEProcess *, char *, int ) ),
+ this, TQ_SLOT( slotReceivedStdout( TDEProcess *, char *, int ) ) );
if ( comm & Stdout ) {
- connect( this, TQT_SIGNAL( receivedStdout( TDEProcess *, char *, int ) ),
- this, TQT_SLOT( slotReceivedStdout( TDEProcess *, char *, int ) ) );
+ connect( this, TQ_SIGNAL( receivedStdout( TDEProcess *, char *, int ) ),
+ this, TQ_SLOT( slotReceivedStdout( TDEProcess *, char *, int ) ) );
}
// prevent duplicate connection
- disconnect( this, TQT_SIGNAL( receivedStderr( TDEProcess *, char *, int ) ),
- this, TQT_SLOT( slotReceivedStderr( TDEProcess *, char *, int ) ) );
+ disconnect( this, TQ_SIGNAL( receivedStderr( TDEProcess *, char *, int ) ),
+ this, TQ_SLOT( slotReceivedStderr( TDEProcess *, char *, int ) ) );
if ( comm & Stderr ) {
- connect( this, TQT_SIGNAL( receivedStderr( TDEProcess *, char *, int ) ),
- this, TQT_SLOT( slotReceivedStderr( TDEProcess *, char *, int ) ) );
+ connect( this, TQ_SIGNAL( receivedStderr( TDEProcess *, char *, int ) ),
+ this, TQ_SLOT( slotReceivedStderr( TDEProcess *, char *, int ) ) );
}
return TDEProcess::start( runmode, comm );
}
diff --git a/tdeioslave/audiocd/plugins/lame/collectingprocess.h b/tdeioslave/audiocd/plugins/lame/collectingprocess.h
index 905219bf..963a59d3 100644
--- a/tdeioslave/audiocd/plugins/lame/collectingprocess.h
+++ b/tdeioslave/audiocd/plugins/lame/collectingprocess.h
@@ -44,7 +44,7 @@
* @author Ingo Kloecker <kloecker@kde.org>
*/
class CollectingProcess : public TDEProcess {
- Q_OBJECT
+ TQ_OBJECT
public:
CollectingProcess( TQObject * parent = 0, const char * name = 0 );
diff --git a/tdeioslave/audiocd/plugins/lame/encoderlame.cpp b/tdeioslave/audiocd/plugins/lame/encoderlame.cpp
index f7535f5f..6b375385 100644
--- a/tdeioslave/audiocd/plugins/lame/encoderlame.cpp
+++ b/tdeioslave/audiocd/plugins/lame/encoderlame.cpp
@@ -233,15 +233,15 @@ long EncoderLame::readInit(long /*size*/){
//kdDebug(7117) << d->currentEncodeProcess->args() << endl;
- connect(d->currentEncodeProcess, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
- this, TQT_SLOT(receivedStdout(TDEProcess *, char *, int)));
- connect(d->currentEncodeProcess, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
- this, TQT_SLOT(receivedStderr(TDEProcess *, char *, int)));
- connect(d->currentEncodeProcess, TQT_SIGNAL(wroteStdin(TDEProcess *)),
- this, TQT_SLOT(wroteStdin(TDEProcess *)));
-
- connect(d->currentEncodeProcess, TQT_SIGNAL(processExited(TDEProcess *)),
- this, TQT_SLOT(processExited(TDEProcess *)));
+ connect(d->currentEncodeProcess, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
+ this, TQ_SLOT(receivedStdout(TDEProcess *, char *, int)));
+ connect(d->currentEncodeProcess, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ this, TQ_SLOT(receivedStderr(TDEProcess *, char *, int)));
+ connect(d->currentEncodeProcess, TQ_SIGNAL(wroteStdin(TDEProcess *)),
+ this, TQ_SLOT(wroteStdin(TDEProcess *)));
+
+ connect(d->currentEncodeProcess, TQ_SIGNAL(processExited(TDEProcess *)),
+ this, TQ_SLOT(processExited(TDEProcess *)));
// Launch!
d->currentEncodeProcess->start(TDEProcess::NotifyOnExit, KShellProcess::All);
diff --git a/tdeioslave/audiocd/plugins/lame/encoderlame.h b/tdeioslave/audiocd/plugins/lame/encoderlame.h
index 09c323c3..2870c500 100644
--- a/tdeioslave/audiocd/plugins/lame/encoderlame.h
+++ b/tdeioslave/audiocd/plugins/lame/encoderlame.h
@@ -29,7 +29,7 @@ class TDEProcess;
*/
class EncoderLame : public TQObject, public AudioCDEncoder {
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/tdeioslave/audiocd/plugins/vorbis/encodervorbis.cpp b/tdeioslave/audiocd/plugins/vorbis/encodervorbis.cpp
index 5507b6f2..ca9e0294 100644
--- a/tdeioslave/audiocd/plugins/vorbis/encodervorbis.cpp
+++ b/tdeioslave/audiocd/plugins/vorbis/encodervorbis.cpp
@@ -313,7 +313,7 @@ void EncoderVorbis::fillSongInfo( KCDDB::CDInfo info, int track, const TQString
if (info.get("year").toInt() > 0) {
TQDateTime dt(TQDate(info.get("year").toInt(), 1, 1));
- commentFields.append(CommentField("date", dt.toString(Qt::ISODate).utf8().data()));
+ commentFields.append(CommentField("date", dt.toString(TQt::ISODate).utf8().data()));
}
for(TQValueListIterator<CommentField> it = commentFields.begin(); it != commentFields.end(); ++it) {
diff --git a/tdeioslave/audiocd/plugins/vorbis/encodervorbisconfig.ui b/tdeioslave/audiocd/plugins/vorbis/encodervorbisconfig.ui
index e54779ed..2576c8ed 100644
--- a/tdeioslave/audiocd/plugins/vorbis/encodervorbisconfig.ui
+++ b/tdeioslave/audiocd/plugins/vorbis/encodervorbisconfig.ui
@@ -368,7 +368,7 @@
<string>Add &amp;track information</string>
</property>
<property name="whatsThis" stdset="0">
- <string>Add a description of the song to the file header. This makes it easy for the user to get advanced song information shown by his media player. You can get this information automatically via the Internet. Look at the &lt;i&gt;"CDDB Retrieval"&lt;/i&gt; control module for details.</string>
+ <string>Add a description of the song to the file header. This makes it easy for the user to get advanced song information shown by their media player. You can get this information automatically via the Internet. Look at the &lt;i&gt;"CDDB Retrieval"&lt;/i&gt; control module for details.</string>
</property>
</widget>
</vbox>
diff --git a/tdemid/CMakeLists.txt b/tdemid/CMakeLists.txt
index 134a1992..2c90de95 100644
--- a/tdemid/CMakeLists.txt
+++ b/tdemid/CMakeLists.txt
@@ -53,7 +53,7 @@ tde_add_kpart( libtdemidpart AUTOMOC
DESTINATION ${PLUGIN_INSTALL_DIR}
)
-file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/part_dummy.cpp "" )
+configure_file( ${TDE_CMAKE_TEMPLATES}/tde_dummy_cpp.cmake part_dummy.cpp COPYONLY )
##### tdemid (executable) #######################
diff --git a/tdemid/channel.cpp b/tdemid/channel.cpp
index 6b8e23cf..0b03ddc0 100644
--- a/tdemid/channel.cpp
+++ b/tdemid/channel.cpp
@@ -62,7 +62,7 @@ KMidChannel::KMidChannel(int chn,TQWidget *parent) : TQWidget (parent)
for (i=0;i<128;i++)
instrumentCombo->insertItem(i18n(instrumentName[i]),i);
- connect(instrumentCombo,TQT_SIGNAL(activated(int)),this,TQT_SLOT(pgmChanged(int)));
+ connect(instrumentCombo,TQ_SIGNAL(activated(int)),this,TQ_SLOT(pgmChanged(int)));
forcepgm=new KMidButton(this,"forcepgm");
forcepgm->setGeometry(135,4,16,16);
@@ -71,7 +71,7 @@ KMidChannel::KMidChannel(int chn,TQWidget *parent) : TQWidget (parent)
button2 = TQPixmap(locate("appdata","icons/button2.xpm"));
forcepgm->setPixmaps(button1,button2);
forcepgm->show();
- connect(forcepgm,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(changeForcedState(bool)));
+ connect(forcepgm,TQ_SIGNAL(toggled(bool)),this,TQ_SLOT(changeForcedState(bool)));
}
diff --git a/tdemid/channel.h b/tdemid/channel.h
index 4f88ae36..2674ffe5 100644
--- a/tdemid/channel.h
+++ b/tdemid/channel.h
@@ -38,7 +38,7 @@ class TQComboBox;
class KMidButton;
class KMidChannel : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
private:
diff --git a/tdemid/channelcfgdlg.cpp b/tdemid/channelcfgdlg.cpp
index e55aaa58..76f6b87a 100644
--- a/tdemid/channelcfgdlg.cpp
+++ b/tdemid/channelcfgdlg.cpp
@@ -27,7 +27,7 @@ ChannelViewConfigDialog::ChannelViewConfigDialog(TQWidget *parent,const char *na
topLayout->addWidget( qbg );
((ChannelView::lookMode()==0)?rb0:rb1)->setChecked(TRUE);
- connect (qbg, TQT_SIGNAL(pressed(int)),this,TQT_SLOT(modeselected(int)));
+ connect (qbg, TQ_SIGNAL(pressed(int)),this,TQ_SLOT(modeselected(int)));
}
void ChannelViewConfigDialog::modeselected(int idx)
diff --git a/tdemid/channelcfgdlg.h b/tdemid/channelcfgdlg.h
index c4378e4e..73a21efc 100644
--- a/tdemid/channelcfgdlg.h
+++ b/tdemid/channelcfgdlg.h
@@ -30,7 +30,7 @@ class TQVButtonGroup;
class TQRadioButton;
class ChannelViewConfigDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdemid/channelview.cpp b/tdemid/channelview.cpp
index 50a88f24..32f6472a 100644
--- a/tdemid/channelview.cpp
+++ b/tdemid/channelview.cpp
@@ -40,12 +40,12 @@ ChannelView::ChannelView(void) : TDEMainWindow(0, "ChannelView")
Channel[i]=new KMidChannel3D(i+1,this);
else
Channel[i]=new KMidChannel4D(i+1,this);
- connect(Channel[i],TQT_SIGNAL(signalToKMidClient(int *)),this,TQT_SLOT(slottotdemidclient(int *)));
+ connect(Channel[i],TQ_SIGNAL(signalToKMidClient(int *)),this,TQ_SLOT(slottotdemidclient(int *)));
Channel[i]->setGeometry(5,5+i*CHANNELHEIGHT,width()-20,CHANNELHEIGHT);
Channel[i]->show();
}
- scrollbar=new TQScrollBar(1,16,1,1,1,Qt::Vertical,this,"Channelscrollbar");
- connect(scrollbar,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(ScrollChn(int)));
+ scrollbar=new TQScrollBar(1,16,1,1,1,TQt::Vertical,this,"Channelscrollbar");
+ connect(scrollbar,TQ_SIGNAL(valueChanged(int)),this,TQ_SLOT(ScrollChn(int)));
setScrollBarRange();
}
@@ -150,7 +150,7 @@ void ChannelView::lookMode(int i)
else
Channel[i]=new KMidChannel4D(i+1,this);
- connect(Channel[i],TQT_SIGNAL(signalToKMidClient(int *)),this,TQT_SLOT(slottotdemidclient(int *)));
+ connect(Channel[i],TQ_SIGNAL(signalToKMidClient(int *)),this,TQ_SLOT(slottotdemidclient(int *)));
Channel[i]->setGeometry(5,5+(i-(scrollbar->value()-1))*CHANNELHEIGHT,width()-20,CHANNELHEIGHT);
Channel[i]->loadState(tmp,&pgm);
Channel[i]->show();
diff --git a/tdemid/channelview.h b/tdemid/channelview.h
index b54015ce..c26ba564 100644
--- a/tdemid/channelview.h
+++ b/tdemid/channelview.h
@@ -32,7 +32,7 @@
class ChannelView : public TDEMainWindow
{
- Q_OBJECT
+ TQ_OBJECT
private:
KMidChannel *Channel[16];
diff --git a/tdemid/collectdlg.cpp b/tdemid/collectdlg.cpp
index 4df74df7..226d86d1 100644
--- a/tdemid/collectdlg.cpp
+++ b/tdemid/collectdlg.cpp
@@ -43,18 +43,18 @@ CollectionDialog::CollectionDialog(SLManager *slm,int selC,TQWidget *parent,cons
setCaption(i18n("Collections Manager"));
ok=new KPushButton(KStdGuiItem::ok(),this);
ok->setGeometry(140,200,100,30);
-connect(ok,TQT_SIGNAL(clicked()),TQT_SLOT(accept()) );
+connect(ok,TQ_SIGNAL(clicked()),TQ_SLOT(accept()) );
cancel=new KPushButton(KStdGuiItem::cancel(),this);
cancel->setGeometry(250,200,100,30);
-connect(cancel,TQT_SIGNAL(clicked()),TQT_SLOT(reject()) );
+connect(cancel,TQ_SIGNAL(clicked()),TQ_SLOT(reject()) );
label=new TQLabel(i18n("Available collections:"),this);
label->adjustSize();
label->move(10,10);
collections=new TQListBox(this,"collectionlist");
collections->setGeometry(10,20+label->height(),340,90);
-connect(collections,TQT_SIGNAL(highlighted(int)),TQT_SLOT(collectionselected(int)));
-connect(collections,TQT_SIGNAL(selected(int)),TQT_SLOT(changeCollectionName(int)));
+connect(collections,TQ_SIGNAL(highlighted(int)),TQ_SLOT(collectionselected(int)));
+connect(collections,TQ_SIGNAL(selected(int)),TQ_SLOT(changeCollectionName(int)));
slman=slm;
for (int i=0;i<=slman->numberOfCollections();i++)
{
@@ -74,7 +74,7 @@ label2->move(10,collections->y()+collections->height()+10);
songs=new TQListBox(this,"songlist");
songs->setGeometry(10,label2->y()+label2->height()+10,340,120);
-connect(songs,TQT_SIGNAL(highlighted(int)),TQT_SLOT(songselected(int)));
+connect(songs,TQ_SIGNAL(highlighted(int)),TQ_SLOT(songselected(int)));
currentsl=slman->getCollection(selectedC);
if (slman->numberOfCollections()>0)
{
@@ -85,24 +85,24 @@ if (slman->numberOfCollections()>0)
newC=new TQPushButton(i18n("&New..."),this);
newC->adjustSize();
newC->move(360,collections->y()+5);
-connect(newC,TQT_SIGNAL(clicked()),TQT_SLOT(newCollection()) );
+connect(newC,TQ_SIGNAL(clicked()),TQ_SLOT(newCollection()) );
copyC=new TQPushButton(i18n("&Copy..."),this);
copyC->adjustSize();
copyC->move(360,newC->y()+newC->height()+5);
-connect(copyC,TQT_SIGNAL(clicked()),TQT_SLOT(copyCollection()) );
+connect(copyC,TQ_SIGNAL(clicked()),TQ_SLOT(copyCollection()) );
deleteC=new TQPushButton(i18n("Delete"),this);
deleteC->adjustSize();
deleteC->move(360,copyC->y()+copyC->height()+5);
-connect(deleteC,TQT_SIGNAL(clicked()),TQT_SLOT(deleteCollection()) );
+connect(deleteC,TQ_SIGNAL(clicked()),TQ_SLOT(deleteCollection()) );
addS=new TQPushButton(i18n("&Add..."),this);
addS->adjustSize();
addS->move(360,songs->y()+5);
-connect(addS,TQT_SIGNAL(clicked()),TQT_SLOT(addSong()) );
+connect(addS,TQ_SIGNAL(clicked()),TQ_SLOT(addSong()) );
delS=new TQPushButton(i18n("&Remove"),this);
delS->adjustSize();
delS->move(360,addS->y()+addS->height()+5);
-connect(delS,TQT_SIGNAL(clicked()),TQT_SLOT(removeSong()) );
+connect(delS,TQ_SIGNAL(clicked()),TQ_SLOT(removeSong()) );
ok->move(ok->x(),songs->y()+songs->height()+10);
cancel->move(ok->x()+ok->width()+5,ok->y());
diff --git a/tdemid/collectdlg.h b/tdemid/collectdlg.h
index 262a6227..fcf4b94a 100644
--- a/tdemid/collectdlg.h
+++ b/tdemid/collectdlg.h
@@ -35,7 +35,7 @@ class TQListBox;
class KURL;
class CollectionDialog : public TQDialog
{
- Q_OBJECT
+ TQ_OBJECT
private:
SLManager *slman;
diff --git a/tdemid/kdisptext.cpp b/tdemid/kdisptext.cpp
index d701ccb4..51f8fc40 100644
--- a/tdemid/kdisptext.cpp
+++ b/tdemid/kdisptext.cpp
@@ -122,7 +122,7 @@ void KDisplayText::ClearEv(bool totally)
RemoveLinkedList();
if (totally)
{
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
autoscrollv=0;
resizeContents(0,0);
viewport()->repaint(TRUE);
@@ -425,7 +425,7 @@ void KDisplayText::PaintIn(int type)
autoscrollv+=qfmetr->lineSpacing();
if (b) startTimer(100);
else {
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
startTimer(100/(autoscrollv/qfmetr->lineSpacing()+1));
}
}
@@ -484,7 +484,7 @@ void KDisplayText::gotomsec(ulong i)
}
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
autoscrollv=0;
setContentsPos(0,first_line->ypos);
viewport()->repaint();
diff --git a/tdemid/kdisptext.h b/tdemid/kdisptext.h
index 04a25f27..548e849e 100644
--- a/tdemid/kdisptext.h
+++ b/tdemid/kdisptext.h
@@ -50,7 +50,7 @@ class TQScrollBar;
class KDisplayText : public TQScrollView
{
- Q_OBJECT
+ TQ_OBJECT
private:
TQTextCodec *lyrics_codec;
diff --git a/tdemid/klcdnumber.cpp b/tdemid/klcdnumber.cpp
index 3fdf80c4..57385a39 100644
--- a/tdemid/klcdnumber.cpp
+++ b/tdemid/klcdnumber.cpp
@@ -71,10 +71,10 @@ KLCDNumber::KLCDNumber(bool _setUserChangeValue,int _numDigits,TQWidget *parent,
downBtn=new KTriangleButton(KTriangleButton::Left,this,"Down");
upBtn->setGeometry(width()-BUTTONWIDTH,0,BUTTONWIDTH,height());
downBtn->setGeometry(0,0,BUTTONWIDTH,height());
- connect(upBtn,TQT_SIGNAL(clicked()),this,TQT_SLOT(increaseValue()));
- connect(downBtn,TQT_SIGNAL(clicked()),this,TQT_SLOT(decreaseValue()));
- connect(upBtn,TQT_SIGNAL(clickedQuickly()),this,TQT_SLOT(increaseValueFast()));
- connect(downBtn,TQT_SIGNAL(clickedQuickly()),this,TQT_SLOT(decreaseValueFast()));
+ connect(upBtn,TQ_SIGNAL(clicked()),this,TQ_SLOT(increaseValue()));
+ connect(downBtn,TQ_SIGNAL(clicked()),this,TQ_SLOT(decreaseValue()));
+ connect(upBtn,TQ_SIGNAL(clickedQuickly()),this,TQ_SLOT(increaseValueFast()));
+ connect(downBtn,TQ_SIGNAL(clickedQuickly()),this,TQ_SLOT(decreaseValueFast()));
};
}
@@ -299,7 +299,7 @@ void KLCDNumber::mousePressEvent (TQMouseEvent *e)
void KLCDNumber::timerEvent(TQTimerEvent *)
{
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
doubleclicked=false;
}
diff --git a/tdemid/klcdnumber.h b/tdemid/klcdnumber.h
index b124a5db..d824d2d1 100644
--- a/tdemid/klcdnumber.h
+++ b/tdemid/klcdnumber.h
@@ -32,7 +32,7 @@ class TQColor;
class KLCDNumber : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
protected:
class digit {
diff --git a/tdemid/ktrianglebutton.cpp b/tdemid/ktrianglebutton.cpp
index 5bda855f..0e2a1d3c 100644
--- a/tdemid/ktrianglebutton.cpp
+++ b/tdemid/ktrianglebutton.cpp
@@ -35,7 +35,7 @@ KTriangleButton::KTriangleButton( Direction d,TQWidget *_parent, const char *nam
{
dir=d;
raised = FALSE;
- setFocusPolicy( TQ_NoFocus );
+ setFocusPolicy( TQWidget::NoFocus );
}
KTriangleButton::~KTriangleButton()
@@ -144,17 +144,17 @@ void KTriangleButton::mouseReleaseEvent(TQMouseEvent *e)
void KTriangleButton::timerEvent(TQTimerEvent *)
{
- if (!usingTimer) {TQT_TQOBJECT(this)->killTimers();return;};
+ if (!usingTimer) {this->killTimers();return;};
if (timeCount==0)
{
timeCount++;
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
startTimer(120);
} else
if (timeCount==30)
{
timeCount=-1;
- TQT_TQOBJECT(this)->killTimers();
+ this->killTimers();
startTimer(80);
}
else if (timeCount>0) timeCount++;
diff --git a/tdemid/ktrianglebutton.h b/tdemid/ktrianglebutton.h
index 5013b8d8..a6b840ee 100644
--- a/tdemid/ktrianglebutton.h
+++ b/tdemid/ktrianglebutton.h
@@ -32,7 +32,7 @@
class KTriangleButton : public TQButton
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdemid/main.cpp b/tdemid/main.cpp
index 40902097..3f12b7c9 100644
--- a/tdemid/main.cpp
+++ b/tdemid/main.cpp
@@ -71,7 +71,7 @@ int main(int argc, char **argv)
app.setMainWidget ( tdemidframe );
- TQObject::connect(&app,TQT_SIGNAL(shutDown()),tdemidframe,TQT_SLOT(shuttingDown()));
+ TQObject::connect(&app,TQ_SIGNAL(shutDown()),tdemidframe,TQ_SLOT(shuttingDown()));
if (app.isRestored())
{
diff --git a/tdemid/midicfgdlg.cpp b/tdemid/midicfgdlg.cpp
index 446f7e03..010e8f42 100644
--- a/tdemid/midicfgdlg.cpp
+++ b/tdemid/midicfgdlg.cpp
@@ -50,7 +50,7 @@ MidiConfigDialog::MidiConfigDialog(DeviceManager *dm,
topLayout->addWidget(label);
mididevices=new TQListBox(page,"midideviceslist");
topLayout->addWidget(mididevices,3);
- connect(mididevices,TQT_SIGNAL(highlighted(int)),TQT_SLOT(deviceselected(int)));
+ connect(mididevices,TQ_SIGNAL(highlighted(int)),TQ_SLOT(deviceselected(int)));
devman=dm;
TQString temp;
for (int i=0;i<devman->midiPorts()+devman->synthDevices();i++)
@@ -87,11 +87,11 @@ MidiConfigDialog::MidiConfigDialog(DeviceManager *dm,
hbox->addStretch(1);
mapbrowse=new TQPushButton(i18n("Browse..."),page);
hbox->addWidget(mapbrowse);
- connect(mapbrowse,TQT_SIGNAL(clicked()),TQT_SLOT(browseMap()) );
+ connect(mapbrowse,TQ_SIGNAL(clicked()),TQ_SLOT(browseMap()) );
mapnone=new TQPushButton(i18n("None"),page);
hbox->addWidget(mapnone);
- connect(mapnone,TQT_SIGNAL(clicked()),TQT_SLOT(noMap()) );
+ connect(mapnone,TQ_SIGNAL(clicked()),TQ_SLOT(noMap()) );
topLayout->addStretch(1);
diff --git a/tdemid/midicfgdlg.h b/tdemid/midicfgdlg.h
index 98585e6f..e15f73ca 100644
--- a/tdemid/midicfgdlg.h
+++ b/tdemid/midicfgdlg.h
@@ -33,7 +33,7 @@ class TQPushButton;
class TQListBox;
class MidiConfigDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdemid/qslidertime.h b/tdemid/qslidertime.h
index 57aa3b18..4131cde5 100644
--- a/tdemid/qslidertime.h
+++ b/tdemid/qslidertime.h
@@ -30,7 +30,7 @@ class TQWidget;
class QSliderTime : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
private:
diff --git a/tdemid/tdemid_part.cpp b/tdemid/tdemid_part.cpp
index 81c31973..ed6e062b 100644
--- a/tdemid/tdemid_part.cpp
+++ b/tdemid/tdemid_part.cpp
@@ -73,26 +73,26 @@ TDEInstance *KMidFactory::instance()
widget = new tdemidClient(parentWidget, actionCollection());
widget->show();
- widget->setFocusPolicy(TQ_ClickFocus);
+ widget->setFocusPolicy(TQWidget::ClickFocus);
setWidget(widget);
// create and connect our actions
(void)new TDEAction(i18n("Play"), "media-playback-start", 0, this,
- TQT_SLOT(slotPlay()), actionCollection(),
+ TQ_SLOT(slotPlay()), actionCollection(),
"play");
(void)new TDEAction(i18n("Stop"), "media-playback-stop", 0, this,
- TQT_SLOT(slotStop()), actionCollection(),
+ TQ_SLOT(slotStop()), actionCollection(),
"stop");
(void)new TDEAction(i18n("Backward"),
"2leftarrow", 0, this,
- TQT_SLOT(slotBackward()), actionCollection(),
+ TQ_SLOT(slotBackward()), actionCollection(),
"backward");
(void)new TDEAction(i18n("Forward"),
"2rightarrow", 0, this,
- TQT_SLOT(slotForward()), actionCollection(),
+ TQ_SLOT(slotForward()), actionCollection(),
"forward");
m_extension = new KMidBrowserExtension(this);
@@ -111,7 +111,7 @@ bool KMidPart::openFile()
widget->openURL(m_file);
widget->stop();
widget->show();
- TQTimer::singleShot(2000, this, TQT_SLOT(slotPlay()));
+ TQTimer::singleShot(2000, this, TQ_SLOT(slotPlay()));
return true;
}
diff --git a/tdemid/tdemid_part.h b/tdemid/tdemid_part.h
index d15a341e..7217a7b7 100644
--- a/tdemid/tdemid_part.h
+++ b/tdemid/tdemid_part.h
@@ -11,7 +11,7 @@ class tdemidClient;
class KDE_EXPORT KMidFactory : public KParts::Factory
{
- Q_OBJECT
+ TQ_OBJECT
public:
KMidFactory();
@@ -19,7 +19,7 @@ class KDE_EXPORT KMidFactory : public KParts::Factory
virtual KParts::Part* createPartObject(TQWidget *parentWidget, const char *widgetName,
TQObject* parent = 0, const char* name = 0,
- const char* classname = TQOBJECT_OBJECT_NAME_STRING,
+ const char* classname = "TQObject",
const TQStringList &args = TQStringList());
static TDEInstance *instance();
@@ -31,7 +31,7 @@ class KDE_EXPORT KMidFactory : public KParts::Factory
class KMidPart: public KParts::ReadOnlyPart
{
- Q_OBJECT
+ TQ_OBJECT
public:
KMidPart(TQWidget *parentWidget, const char *widgetName,
@@ -55,7 +55,7 @@ class KMidPart: public KParts::ReadOnlyPart
class KMidBrowserExtension : public KParts::BrowserExtension
{
- Q_OBJECT
+ TQ_OBJECT
friend class KMidPart;
public:
diff --git a/tdemid/tdemidclient.cpp b/tdemid/tdemidclient.cpp
index b05411bc..dc6f09ae 100644
--- a/tdemid/tdemidclient.cpp
+++ b/tdemid/tdemidclient.cpp
@@ -90,10 +90,10 @@ tdemidClient::tdemidClient(TQWidget *parent, TDEActionCollection *ac, const char
// currentsl=slman->getCollection(activecollection);
itsme=0;
m_kMid.pid=0;
- timebar = new TQSlider(0,240000,30000,60000,Qt::Horizontal, this);
+ timebar = new TQSlider(0,240000,30000,60000,TQt::Horizontal, this);
timebar->setSteps(30000,60000);
timebar->setValue(0);
- connect (timebar,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(slotSeek(int)));
+ connect (timebar,TQ_SIGNAL(valueChanged(int)),this,TQ_SLOT(slotSeek(int)));
timetags = new QSliderTime(timebar,this);
timetags->setMinimumSize(timetags->sizeHint());
@@ -109,14 +109,14 @@ tdemidClient::tdemidClient(TQWidget *parent, TDEActionCollection *ac, const char
tempoLCD->setDefaultValue(120);
tempoLCD->setUserSetDefaultValue(true);
tempoLCD->setMinimumSize(tempoLCD->sizeHint());
- connect(tempoLCD,TQT_SIGNAL(valueChanged(double)),this,TQT_SLOT(slotSetTempo(double)));
+ connect(tempoLCD,TQ_SIGNAL(valueChanged(double)),this,TQ_SLOT(slotSetTempo(double)));
comboSongs = new TQComboBox(FALSE, this,"Songs");
- connect (comboSongs,TQT_SIGNAL(activated(int)),this,TQT_SLOT(slotSelectSong(int)));
+ connect (comboSongs,TQ_SIGNAL(activated(int)),this,TQ_SLOT(slotSelectSong(int)));
comboSongs->setMinimumWidth(200);
comboEncodings = new TQComboBox(FALSE, this, "Encodings");
- connect (comboEncodings,TQT_SIGNAL(activated(int)),this,TQT_SLOT(slotSelectEncoding(int)));
+ connect (comboEncodings,TQ_SIGNAL(activated(int)),this,TQ_SLOT(slotSelectEncoding(int)));
comboEncodings->insertItem(i18n("Default"));
comboEncodings->insertStringList( TDEGlobal::charsets()->descriptiveEncodingNames() );
comboEncodings->setCurrentItem(0);
@@ -125,12 +125,12 @@ tdemidClient::tdemidClient(TQWidget *parent, TDEActionCollection *ac, const char
rhythmview->setMaximumHeight(7);
rhythmview->setMinimumHeight(7);
- volumebar = new TQSlider(0,200,10,100,Qt::Vertical, this );
+ volumebar = new TQSlider(0,200,10,100,TQt::Vertical, this );
volumebar->setSteps(10,20);
volumebar->setValue(100);
volumebar->setTickmarks(TQSlider::NoMarks);
volumebar->setTickInterval(50);
- connect (volumebar,TQT_SIGNAL(valueChanged(int)),this,TQT_SLOT(slotSetVolume(int)));
+ connect (volumebar,TQ_SIGNAL(valueChanged(int)),this,TQ_SLOT(slotSetVolume(int)));
visiblevolumebar=cfg->readNumEntry("ShowVolumeBar",0);
if (visiblevolumebar) volumebar->show();
@@ -141,9 +141,9 @@ tdemidClient::tdemidClient(TQWidget *parent, TDEActionCollection *ac, const char
kdispt->show();
timer4timebar=new TQTimer(this);
- connect (timer4timebar,TQT_SIGNAL(timeout()),this,TQT_SLOT(timebarUpdate()));
+ connect (timer4timebar,TQ_SIGNAL(timeout()),this,TQ_SLOT(timebarUpdate()));
timer4events=new TQTimer(this);
- connect (timer4events,TQT_SIGNAL(timeout()),this,TQT_SLOT(processSpecialEvent()));
+ connect (timer4events,TQ_SIGNAL(timeout()),this,TQ_SLOT(processSpecialEvent()));
TQString samplefile =
TDEGlobal::dirs()->findAllResources("appdata", "fm/*.o3").last();
@@ -372,7 +372,7 @@ int tdemidClient::openURL(const TQString _url)
filename = TQString("/tmp/") + u.filename();
TDEIO::Job *iojob = TDEIO::copy( u, KURL::fromPathOrURL( filename ) );
downloaded=false;
- connect( iojob, TQT_SIGNAL( result( TDEIO::Job *) ), this, TQT_SLOT(downloadFinished( TDEIO::Job * ) ) );
+ connect( iojob, TQ_SIGNAL( result( TDEIO::Job *) ), this, TQ_SLOT(downloadFinished( TDEIO::Job * ) ) );
if (!downloaded)
kapp->enter_loop();
@@ -1373,8 +1373,8 @@ void tdemidClient::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(channelView,TQ_SIGNAL(signalToKMidClient(int *)),this,TQ_SLOT(communicationFromChannelView(int *)));
+ connect(kapp,TQ_SIGNAL(shutDown()),parentWidget(),TQ_SLOT(shuttingDown()));
}
else if ((channelView!=NULL)&&(i==0))
diff --git a/tdemid/tdemidclient.h b/tdemid/tdemidclient.h
index a5ebd4c9..15ffda08 100644
--- a/tdemid/tdemidclient.h
+++ b/tdemid/tdemidclient.h
@@ -54,7 +54,7 @@ class TQString;
class tdemidClient : public TQWidget, virtual public KMidIface
{
- Q_OBJECT
+ TQ_OBJECT
private:
#ifdef TDEMidDEBUG
diff --git a/tdemid/tdemidframe.cpp b/tdemid/tdemidframe.cpp
index fbfaa4c0..88069499 100644
--- a/tdemid/tdemidframe.cpp
+++ b/tdemid/tdemidframe.cpp
@@ -68,73 +68,73 @@ tdemidFrame::tdemidFrame(const char *name)
/*
kKeysAccel=new TDEAccel(this);
kKeysAccel->insertItem(i18n("Play/Pause"),"Play/Pause", Key_Space);
- kKeysAccel->connectItem("Play/Pause", TQT_TQOBJECT(this), TQT_SLOT(spacePressed()));
+ kKeysAccel->connectItem("Play/Pause", this, TQ_SLOT(spacePressed()));
kKeysAccel->insertItem(i18n("Stop"),"Stop", Key_Backspace);
- kKeysAccel->connectItem("Stop",tdemidclient,TQT_SLOT(song_Stop()));
+ kKeysAccel->connectItem("Stop",tdemidclient,TQ_SLOT(song_Stop()));
kKeysAccel->insertItem(i18n("Previous Song"),"Previous Song", Key_Left);
- kKeysAccel->connectItem("Previous Song",tdemidclient,TQT_SLOT(song_PlayPrevSong()));
+ kKeysAccel->connectItem("Previous Song",tdemidclient,TQ_SLOT(song_PlayPrevSong()));
kKeysAccel->insertItem(i18n("Next Song"),"Next Song", Key_Right);
- kKeysAccel->connectItem("Next Song",tdemidclient,TQT_SLOT(song_PlayNextSong()));
+ kKeysAccel->connectItem("Next Song",tdemidclient,TQ_SLOT(song_PlayNextSong()));
kKeysAccel->insertItem(i18n("Scroll Down Karaoke"),"Scroll down karaoke",Key_Down);
- kKeysAccel->connectItem("Scroll Down karaoke",tdemidclient->getKDisplayText(),TQT_SLOT(ScrollDown()));
+ kKeysAccel->connectItem("Scroll Down karaoke",tdemidclient->getKDisplayText(),TQ_SLOT(ScrollDown()));
kKeysAccel->insertItem(i18n("Scroll Up Karaoke"),"Scroll up karaoke",Key_Up);
- kKeysAccel->connectItem("Scroll Up Karaoke",tdemidclient->getKDisplayText(),TQT_SLOT(ScrollUp()));
+ kKeysAccel->connectItem("Scroll Up Karaoke",tdemidclient->getKDisplayText(),TQ_SLOT(ScrollUp()));
kKeysAccel->insertItem(i18n("Scroll Page Down Karaoke"),"Scroll page down karaoke",Key_PageDown);
- kKeysAccel->connectItem("Scroll Page Down Karaoke",tdemidclient->getKDisplayText(),TQT_SLOT(ScrollPageDown()));
+ kKeysAccel->connectItem("Scroll Page Down Karaoke",tdemidclient->getKDisplayText(),TQ_SLOT(ScrollPageDown()));
kKeysAccel->insertItem(i18n("Scroll Page Up Karaoke"),"Scroll page up karaoke",Key_PageUp);
- kKeysAccel->connectItem("Scroll Page Up Karaoke",tdemidclient->getKDisplayText(),TQT_SLOT(ScrollPageUp()));
+ kKeysAccel->connectItem("Scroll Page Up Karaoke",tdemidclient->getKDisplayText(),TQ_SLOT(ScrollPageUp()));
kKeysAccel->readSettings();
*/
- KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(file_Open()), actionCollection());
- (void)new TDEAction(i18n("&Save Lyrics..."), 0, TQT_TQOBJECT(this),
- TQT_SLOT(file_SaveLyrics()), actionCollection(), "file_save_lyrics");
- KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), actionCollection());
+ KStdAction::open(this, TQ_SLOT(file_Open()), actionCollection());
+ (void)new TDEAction(i18n("&Save Lyrics..."), 0, this,
+ TQ_SLOT(file_SaveLyrics()), actionCollection(), "file_save_lyrics");
+ KStdAction::quit(kapp, TQ_SLOT(quit()), actionCollection());
(void)new TDEAction(i18n("&Play"), "media-playback-start", TQt::Key_Space,
- TQT_TQOBJECT(tdemidclient), TQT_SLOT(slotPlay()), actionCollection(), "song_play");
- (void)new TDEAction(i18n("P&ause"), "media-playback-pause", TQt::Key_P, TQT_TQOBJECT(tdemidclient),
- TQT_SLOT(slotPause()), actionCollection(), "song_pause");
+ tdemidclient, TQ_SLOT(slotPlay()), actionCollection(), "song_play");
+ (void)new TDEAction(i18n("P&ause"), "media-playback-pause", TQt::Key_P, tdemidclient,
+ TQ_SLOT(slotPause()), actionCollection(), "song_pause");
(void)new TDEAction(i18n("&Stop"), "media-playback-stop", TQt::Key_Backspace,
- TQT_TQOBJECT(tdemidclient), TQT_SLOT(slotStop()), actionCollection(), "song_stop");
+ tdemidclient, TQ_SLOT(slotStop()), actionCollection(), "song_stop");
(void)new TDEAction(i18n("P&revious Song"), "media-skip-backward", Key_Left,
- TQT_TQOBJECT(tdemidclient), TQT_SLOT(slotPrevSong()), actionCollection(),
+ tdemidclient, TQ_SLOT(slotPrevSong()), actionCollection(),
"song_previous");
(void)new TDEAction(i18n("&Next Song"), "media-skip-forward", Key_Right,
- TQT_TQOBJECT(tdemidclient), TQT_SLOT(slotNextSong()), actionCollection(),
+ tdemidclient, TQ_SLOT(slotNextSong()), actionCollection(),
"song_next");
- (void)new TDEToggleAction(i18n("&Loop"), 0, TQT_TQOBJECT(this), TQT_SLOT(song_Loop()),
+ (void)new TDEToggleAction(i18n("&Loop"), 0, this, TQ_SLOT(song_Loop()),
actionCollection(), "song_loop");
- (void)new TDEAction(i18n("Rewind"), "2leftarrow", 0, TQT_TQOBJECT(tdemidclient),
- TQT_SLOT(slotRewind()), actionCollection(), "song_rewind");
+ (void)new TDEAction(i18n("Rewind"), "2leftarrow", 0, tdemidclient,
+ TQ_SLOT(slotRewind()), actionCollection(), "song_rewind");
- (void)new TDEAction(i18n("Forward"), "2rightarrow", 0, TQT_TQOBJECT(tdemidclient),
- TQT_SLOT(slotForward()), actionCollection(), "song_forward");
+ (void)new TDEAction(i18n("Forward"), "2rightarrow", 0, tdemidclient,
+ TQ_SLOT(slotForward()), actionCollection(), "song_forward");
- (void)new TDEAction(i18n("&Organize..."), 0, TQT_TQOBJECT(this), TQT_SLOT(collect_organize()),
+ (void)new TDEAction(i18n("&Organize..."), 0, this, TQ_SLOT(collect_organize()),
actionCollection(), "collect_organize");
TQStringList playmodes;
playmodes.append(i18n("In Order"));
playmodes.append(i18n("Shuffle"));
- TDESelectAction *act=new TDESelectAction(i18n("Play Order"), 0, /*this, TQT_SLOT(collect_PlayOrder(int)),*/
+ TDESelectAction *act=new TDESelectAction(i18n("Play Order"), 0, /*this, TQ_SLOT(collect_PlayOrder(int)),*/
actionCollection(), "play_order");
- connect(act,TQT_SIGNAL(activated(int)),this, TQT_SLOT(collect_PlayOrder(int)));
+ connect(act,TQ_SIGNAL(activated(int)),this, TQ_SLOT(collect_PlayOrder(int)));
act->setItems(playmodes);
- (void)new TDEToggleAction(i18n("Auto-Add to Collection"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(collect_AutoAdd()), actionCollection(), "collect_autoadd");
+ (void)new TDEToggleAction(i18n("Auto-Add to Collection"), 0, this,
+ TQ_SLOT(collect_AutoAdd()), actionCollection(), "collect_autoadd");
playmodes.clear();
playmodes.append(i18n("&General MIDI"));
playmodes.append(i18n("&MT-32"));
- act=new TDESelectAction(i18n("File Type"), 0,/* this, TQT_SLOT(options_FileType(int)),*/
+ act=new TDESelectAction(i18n("File Type"), 0,/* this, TQ_SLOT(options_FileType(int)),*/
actionCollection(), "file_type");
- connect(act,TQT_SIGNAL(activated(int)),this, TQT_SLOT(options_FileType(int)));
+ connect(act,TQ_SIGNAL(activated(int)),this, TQ_SLOT(options_FileType(int)));
act->setItems(playmodes);
playmodes.clear();
@@ -142,35 +142,35 @@ tdemidFrame::tdemidFrame(const char *name)
playmodes.append(i18n("&Lyric Events"));
act=new TDESelectAction(i18n("Display Events"), Key_T, /*this,
- TQT_SLOT(options_DisplayEvents(int)),*/ actionCollection(),
+ TQ_SLOT(options_DisplayEvents(int)),*/ actionCollection(),
"display_events");
- connect(act,TQT_SIGNAL(activated(int)),this, TQT_SLOT(options_DisplayEvents(int)));
+ connect(act,TQ_SIGNAL(activated(int)),this, TQ_SLOT(options_DisplayEvents(int)));
act->setItems(playmodes);
- (void)new TDEToggleAction(i18n("Automatic Text Chooser"), 0, TQT_TQOBJECT(this),
- TQT_SLOT(options_AutomaticText()), actionCollection(),
+ (void)new TDEToggleAction(i18n("Automatic Text Chooser"), 0, this,
+ TQ_SLOT(options_AutomaticText()), actionCollection(),
"option_automatictext");
TDEToggleAction* togact = new TDEToggleAction(i18n("Show &Volume Bar"), "volume",
- 0, TQT_TQOBJECT(this), TQT_SLOT(options_ShowVolumeBar()), actionCollection(),
+ 0, this, TQ_SLOT(options_ShowVolumeBar()), actionCollection(),
"toggle_volumebar");
togact->setCheckedState(i18n("Hide &Volume Bar"));
togact = new TDEToggleAction(i18n("Show &Channel View"), "piano",
- 0, TQT_TQOBJECT(this), TQT_SLOT(options_ShowChannelView()), actionCollection(),
+ 0, this, TQ_SLOT(options_ShowChannelView()), actionCollection(),
"toggle_channelview");
togact->setCheckedState(i18n("Hide &Channel View"));
- (void)new TDEAction(i18n("Channel View &Options..."), 0, TQT_TQOBJECT(this),
- TQT_SLOT(options_ChannelViewOptions()), actionCollection(),
+ (void)new TDEAction(i18n("Channel View &Options..."), 0, this,
+ TQ_SLOT(options_ChannelViewOptions()), actionCollection(),
"channelview_options");
- (void)new TDEAction(i18n("&Font Change..."), 0, TQT_TQOBJECT(this),
- TQT_SLOT(options_FontChange()), actionCollection(),
+ (void)new TDEAction(i18n("&Font Change..."), 0, this,
+ TQ_SLOT(options_FontChange()), actionCollection(),
"change_font");
- (void)new TDEAction(i18n("MIDI &Setup..."), 0, TQT_TQOBJECT(this),
- TQT_SLOT(options_MidiSetup()), actionCollection(), "midi_setup");
+ (void)new TDEAction(i18n("MIDI &Setup..."), 0, this,
+ TQ_SLOT(options_MidiSetup()), actionCollection(), "midi_setup");
setupGUI((ToolBar | Keys | StatusBar | Save | Create ), "tdemidui.rc" );
@@ -212,14 +212,14 @@ tdemidFrame::tdemidFrame(const char *name)
setAcceptDrops(true);
- connect( tdemidclient, TQT_SIGNAL( mustRechooseTextEvent() ),
- this, TQT_SLOT( rechooseTextEvent() ) );
+ connect( tdemidclient, TQ_SIGNAL( mustRechooseTextEvent() ),
+ this, TQ_SLOT( rechooseTextEvent() ) );
- connect( tdemidclient, TQT_SIGNAL( stopPause() ),
- this, TQT_SLOT( song_stopPause() ) );
+ connect( tdemidclient, TQ_SIGNAL( stopPause() ),
+ this, TQ_SLOT( song_stopPause() ) );
-// connect( tdemidclient, TQT_SIGNAL( channelView_Destroyed() ),
-// this, TQT_SLOT( channelViewDestroyed() ) );
+// connect( tdemidclient, TQ_SIGNAL( channelView_Destroyed() ),
+// this, TQ_SLOT( channelViewDestroyed() ) );
TDECmdLineArgs * args = TDECmdLineArgs::parsedArgs();
@@ -258,7 +258,7 @@ tdemidFrame::tdemidFrame(const char *name)
/*
kKeys->addKey("Play/Pause",Key_Space);
kKeys->registerWidget("KMidFrame",this);
- kKeys->connectFunction("KMidFrame","Play/Pause",this,TQT_SLOT(spacePressed()));
+ kKeys->connectFunction("KMidFrame","Play/Pause",this,TQ_SLOT(spacePressed()));
*/
// kKeysAccel->writeSettings(cfg);
@@ -599,7 +599,7 @@ void tdemidFrame::options_ShowChannelView()
} else
{
tdemidclient->visibleChannelView(1);
- connect (tdemidclient->getChannelView(),TQT_SIGNAL(destroyMe()),this,TQT_SLOT(channelViewDestroyed()));
+ connect (tdemidclient->getChannelView(),TQ_SIGNAL(destroyMe()),this,TQ_SLOT(channelViewDestroyed()));
}
}
diff --git a/tdemid/tdemidframe.h b/tdemid/tdemidframe.h
index bba4e6f7..864be3de 100644
--- a/tdemid/tdemidframe.h
+++ b/tdemid/tdemidframe.h
@@ -41,7 +41,7 @@ class TDEAccel;
class KDE_EXPORT tdemidFrame : public TDEMainWindow
{
- Q_OBJECT
+ TQ_OBJECT
private:
#ifdef TDEMidDEBUG
diff --git a/translations/desktop_files/juk-desktops/ru.po b/translations/desktop_files/juk-desktops/ru.po
index 07cab57c..e24e7437 100644
--- a/translations/desktop_files/juk-desktops/ru.po
+++ b/translations/desktop_files/juk-desktops/ru.po
@@ -1,25 +1,27 @@
# SOME DESCRIPTIVE TITLE.
# This file is put in the public domain.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
+# Andrei Stepanov <adem4ik@gmail.com>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-29 13:04+0200\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
+"PO-Revision-Date: 2023-10-15 13:14+0000\n"
+"Last-Translator: Andrei Stepanov <adem4ik@gmail.com>\n"
+"Language-Team: Russian <https://mirror.git.trinitydesktop.org/weblate/"
+"projects/tdemultimedia/juk-desktop-files/ru/>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+"X-Generator: Weblate 4.17\n"
#. Name
#: juk.desktop:8
msgid "JuK"
-msgstr ""
+msgstr "JuK"
#. GenericName
#: juk.desktop:10
diff --git a/translations/desktop_files/kaboodle-desktops/ru.po b/translations/desktop_files/kaboodle-desktops/ru.po
index 428d1e04..b482a911 100644
--- a/translations/desktop_files/kaboodle-desktops/ru.po
+++ b/translations/desktop_files/kaboodle-desktops/ru.po
@@ -1,25 +1,27 @@
# SOME DESCRIPTIVE TITLE.
# This file is put in the public domain.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
+# Andrei Stepanov <adem4ik@gmail.com>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-29 13:15+0200\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
+"PO-Revision-Date: 2023-10-15 13:14+0000\n"
+"Last-Translator: Andrei Stepanov <adem4ik@gmail.com>\n"
+"Language-Team: Russian <https://mirror.git.trinitydesktop.org/weblate/"
+"projects/tdemultimedia/kaboodle-desktop-files/ru/>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+"X-Generator: Weblate 4.17\n"
#. Name
#: kaboodle.desktop:9
msgid "Kaboodle"
-msgstr ""
+msgstr "Kaboodle"
#. GenericName
#: kaboodle.desktop:11
diff --git a/translations/desktop_files/kappfinder-data/pt.po b/translations/desktop_files/kappfinder-data/pt.po
index 851f66e3..8a98a966 100644
--- a/translations/desktop_files/kappfinder-data/pt.po
+++ b/translations/desktop_files/kappfinder-data/pt.po
@@ -1,20 +1,21 @@
# SOME DESCRIPTIVE TITLE.
# This file is put in the public domain.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
+# Hugo Carvalho <hugokarvalho@hotmail.com>, 2021, 2022.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-31 20:34+0200\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
+"PO-Revision-Date: 2022-04-03 18:21+0000\n"
+"Last-Translator: Hugo Carvalho <hugokarvalho@hotmail.com>\n"
+"Language-Team: Portuguese <https://mirror.git.trinitydesktop.org/weblate/"
+"projects/tdemultimedia/kappfinder-data/pt/>\n"
"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=n > 1;\n"
+"X-Generator: Weblate 4.11.2\n"
#. Name
#: tde-multimedia-music.directory:3
@@ -29,7 +30,7 @@ msgstr "Áudio Profissional"
#. Name
#: ams.desktop:4
msgid "ams"
-msgstr ""
+msgstr "ams"
#. GenericName
#: ams.desktop:5
@@ -38,9 +39,8 @@ msgstr "Sintetizador Modular do Alsa"
#. Name
#: amsynth.desktop:4
-#, fuzzy
msgid "amSynth"
-msgstr "Sintetizador Modular"
+msgstr "amSynth"
#. GenericName
#: amsynth.desktop:5
@@ -50,7 +50,7 @@ msgstr "Retro Analógico - Sintetizador por Software"
#. Name
#: ardour.desktop:4
msgid "Ardour"
-msgstr ""
+msgstr "Ardour"
#. GenericName
#: ardour.desktop:5
@@ -60,7 +60,7 @@ msgstr "Estúdio Áudio Multi-faixa"
#. Name
#: djplay.desktop:4
msgid "DJPlay"
-msgstr ""
+msgstr "DJPlay"
#. GenericName
#: djplay.desktop:5 mixxx.desktop:5
@@ -70,18 +70,17 @@ msgstr "Leitor e Mistura para DJs"
#. Name
#: ecamegapedal.desktop:4
msgid "EcaMegaPedal"
-msgstr ""
+msgstr "EcaMegaPedal"
#. GenericName
#: ecamegapedal.desktop:5
-#, fuzzy
msgid "Ecasound Effektrack"
-msgstr "Efeitos Jack"
+msgstr "Ecasound Effektrack"
#. Name
#: freebirth.desktop:4
msgid "FreeBirth"
-msgstr ""
+msgstr "FreeBirth"
#. GenericName
#: freebirth.desktop:5 hydrogen.desktop:5
@@ -91,7 +90,7 @@ msgstr "Máquina de Percussão"
#. Name
#: freqtweak.desktop:4
msgid "FreqTweak"
-msgstr ""
+msgstr "FreqTweak"
#. GenericName
#: freqtweak.desktop:5
@@ -101,7 +100,7 @@ msgstr "Efeitos para o Jack"
#. Name
#: galan.desktop:4
msgid "gAlan"
-msgstr ""
+msgstr "gAlan"
#. GenericName
#: galan.desktop:5
@@ -111,12 +110,12 @@ msgstr "Sintetizador Modular"
#. Name
#: hydrogen.desktop:4
msgid "Hydrogen"
-msgstr ""
+msgstr "Hydrogen"
#. Name
#: jack-rack.desktop:4
msgid "Jack-Rack"
-msgstr ""
+msgstr "Jack-Rack"
#. GenericName
#: jack-rack.desktop:5
@@ -126,7 +125,7 @@ msgstr "Efeitos Jack"
#. Name
#: jamin.desktop:4
msgid "Jamin"
-msgstr ""
+msgstr "Jamin"
#. GenericName
#: jamin.desktop:5
@@ -141,17 +140,17 @@ msgstr "Medidor VU de Dois Canais"
#. Name
#: meterbridge.desktop:9
msgid "Meterbridge"
-msgstr ""
+msgstr "Meterbridge"
#. Name
#: mixxx.desktop:4
msgid "Mixxx"
-msgstr ""
+msgstr "Mixxx"
#. Name
#: muse.desktop:3
msgid "MusE"
-msgstr ""
+msgstr "MusE"
#. GenericName
#: muse.desktop:5
@@ -161,7 +160,7 @@ msgstr "Sequenciador de Música"
#. Name
#: qjackctl.desktop:4
msgid "QJackCtl"
-msgstr ""
+msgstr "QJackCtl"
#. GenericName
#: qjackctl.desktop:5
@@ -170,9 +169,8 @@ msgstr "Controlo do Jack"
#. Name
#: qsynth.desktop:4
-#, fuzzy
msgid "QSynth"
-msgstr "Sintetizador por Software"
+msgstr "QSynth"
#. GenericName
#: qsynth.desktop:5
@@ -182,7 +180,7 @@ msgstr "Controlo do FluidSynth"
#. Name
#: vkeybd.desktop:4
msgid "vkeybd"
-msgstr ""
+msgstr "vkeybd"
#. GenericName
#: vkeybd.desktop:5
@@ -192,7 +190,7 @@ msgstr "Teclado MIDI Virtual"
#. Name
#: zynaddsubfx.desktop:4
msgid "ZynaddsubFX"
-msgstr ""
+msgstr "ZynaddsubFX"
#. GenericName
#: zynaddsubfx.desktop:5
diff --git a/translations/desktop_files/kappfinder-data/ru.po b/translations/desktop_files/kappfinder-data/ru.po
index de0ce31f..1db1ea0c 100644
--- a/translations/desktop_files/kappfinder-data/ru.po
+++ b/translations/desktop_files/kappfinder-data/ru.po
@@ -1,25 +1,27 @@
# SOME DESCRIPTIVE TITLE.
# This file is put in the public domain.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
+# Andrei Stepanov <adem4ik@gmail.com>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-31 20:34+0200\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
+"PO-Revision-Date: 2023-10-15 13:14+0000\n"
+"Last-Translator: Andrei Stepanov <adem4ik@gmail.com>\n"
+"Language-Team: Russian <https://mirror.git.trinitydesktop.org/weblate/"
+"projects/tdemultimedia/kappfinder-data/ru/>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+"X-Generator: Weblate 4.17\n"
#. Name
#: tde-multimedia-music.directory:3
msgid "Music"
-msgstr ""
+msgstr "Музыка"
#. GenericName
#: tde-multimedia-music.directory:4
@@ -29,7 +31,7 @@ msgstr "Профессиональное аудио"
#. Name
#: ams.desktop:4
msgid "ams"
-msgstr ""
+msgstr "ams"
#. GenericName
#: ams.desktop:5
@@ -38,9 +40,8 @@ msgstr "Модульный синтезатор ALSA"
#. Name
#: amsynth.desktop:4
-#, fuzzy
msgid "amSynth"
-msgstr "Синтезатор"
+msgstr "amSynth"
#. GenericName
#: amsynth.desktop:5
@@ -50,7 +51,7 @@ msgstr "Ретро - программный синтезатор"
#. Name
#: ardour.desktop:4
msgid "Ardour"
-msgstr ""
+msgstr "Ardour"
#. GenericName
#: ardour.desktop:5
@@ -60,7 +61,7 @@ msgstr "Аудиостудия"
#. Name
#: djplay.desktop:4
msgid "DJPlay"
-msgstr ""
+msgstr "DJPlay"
#. GenericName
#: djplay.desktop:5 mixxx.desktop:5
@@ -70,27 +71,27 @@ msgstr "DJ-Mixer и проигрыватель"
#. Name
#: ecamegapedal.desktop:4
msgid "EcaMegaPedal"
-msgstr ""
+msgstr "EcaMegaPedal"
#. GenericName
#: ecamegapedal.desktop:5
msgid "Ecasound Effektrack"
-msgstr ""
+msgstr "Дорожка эффектов Ecasound"
#. Name
#: freebirth.desktop:4
msgid "FreeBirth"
-msgstr ""
+msgstr "FreeBirth"
#. GenericName
#: freebirth.desktop:5 hydrogen.desktop:5
msgid "Drum Machine"
-msgstr ""
+msgstr "Барабанная машина"
#. Name
#: freqtweak.desktop:4
msgid "FreqTweak"
-msgstr ""
+msgstr "FreqTweak"
#. GenericName
#: freqtweak.desktop:5
@@ -100,7 +101,7 @@ msgstr "Эффекты для Jack"
#. Name
#: galan.desktop:4
msgid "gAlan"
-msgstr ""
+msgstr "gAlan"
#. GenericName
#: galan.desktop:5
@@ -110,23 +111,22 @@ msgstr "Синтезатор"
#. Name
#: hydrogen.desktop:4
msgid "Hydrogen"
-msgstr ""
+msgstr "Hydrogen"
#. Name
#: jack-rack.desktop:4
msgid "Jack-Rack"
-msgstr ""
+msgstr "Jack-Rack"
#. GenericName
#: jack-rack.desktop:5
-#, fuzzy
msgid "Jack Effectrack"
-msgstr "Эффекты для Jack"
+msgstr "Дорожка эффектов Jack"
#. Name
#: jamin.desktop:4
msgid "Jamin"
-msgstr ""
+msgstr "Jamin"
#. GenericName
#: jamin.desktop:5
@@ -141,17 +141,17 @@ msgstr "Двухканальный измеритель уровня"
#. Name
#: meterbridge.desktop:9
msgid "Meterbridge"
-msgstr ""
+msgstr "Meterbridge"
#. Name
#: mixxx.desktop:4
msgid "Mixxx"
-msgstr ""
+msgstr "Mixxx"
#. Name
#: muse.desktop:3
msgid "MusE"
-msgstr ""
+msgstr "MusE"
#. GenericName
#: muse.desktop:5
@@ -161,7 +161,7 @@ msgstr "Звуковой сиквенсор"
#. Name
#: qjackctl.desktop:4
msgid "QJackCtl"
-msgstr ""
+msgstr "QJackCtl"
#. GenericName
#: qjackctl.desktop:5
@@ -170,9 +170,8 @@ msgstr "Управление Jack"
#. Name
#: qsynth.desktop:4
-#, fuzzy
msgid "QSynth"
-msgstr "Программный синтезатор"
+msgstr "QSynth"
#. GenericName
#: qsynth.desktop:5
@@ -182,7 +181,7 @@ msgstr "Управление FluidSynth"
#. Name
#: vkeybd.desktop:4
msgid "vkeybd"
-msgstr ""
+msgstr "vkeybd"
#. GenericName
#: vkeybd.desktop:5
@@ -192,7 +191,7 @@ msgstr "Виртуальная клавиатура MIDI"
#. Name
#: zynaddsubfx.desktop:4
msgid "ZynaddsubFX"
-msgstr ""
+msgstr "ZynaddsubFX"
#. GenericName
#: zynaddsubfx.desktop:5
diff --git a/translations/desktop_files/kaudiocreator-desktops/ru.po b/translations/desktop_files/kaudiocreator-desktops/ru.po
index 1e64b4f4..c57140f0 100644
--- a/translations/desktop_files/kaudiocreator-desktops/ru.po
+++ b/translations/desktop_files/kaudiocreator-desktops/ru.po
@@ -1,20 +1,22 @@
# SOME DESCRIPTIVE TITLE.
# This file is put in the public domain.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
+# Andrei Stepanov <adem4ik@gmail.com>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-29 13:30+0200\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
+"PO-Revision-Date: 2023-10-15 13:14+0000\n"
+"Last-Translator: Andrei Stepanov <adem4ik@gmail.com>\n"
+"Language-Team: Russian <https://mirror.git.trinitydesktop.org/weblate/"
+"projects/tdemultimedia/kaudiocreator-desktop-files/ru/>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+"X-Generator: Weblate 4.17\n"
#. Name
#: audiocd_extract.desktop:7
@@ -24,7 +26,7 @@ msgstr "Извлечь и закодировать дорожки"
#. Name
#: kaudiocreator.desktop:2
msgid "KAudioCreator"
-msgstr ""
+msgstr "KAudioCreator"
#. GenericName
#: kaudiocreator.desktop:4
diff --git a/translations/desktop_files/kaudiocreator-eventsrc/ru.po b/translations/desktop_files/kaudiocreator-eventsrc/ru.po
index 36b8ac3d..82314529 100644
--- a/translations/desktop_files/kaudiocreator-eventsrc/ru.po
+++ b/translations/desktop_files/kaudiocreator-eventsrc/ru.po
@@ -1,25 +1,27 @@
# SOME DESCRIPTIVE TITLE.
# This file is put in the public domain.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
+# Andrei Stepanov <adem4ik@gmail.com>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-29 13:30+0200\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
+"PO-Revision-Date: 2023-10-15 13:14+0000\n"
+"Last-Translator: Andrei Stepanov <adem4ik@gmail.com>\n"
+"Language-Team: Russian <https://mirror.git.trinitydesktop.org/weblate/"
+"projects/tdemultimedia/kaudiocreator-events/ru/>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+"X-Generator: Weblate 4.17\n"
#. Comment
#: eventsrc:3
msgid "KAudioCreator"
-msgstr ""
+msgstr "KAudioCreator"
#. Name
#: eventsrc:6
diff --git a/translations/desktop_files/kmix-desktops/ru.po b/translations/desktop_files/kmix-desktops/ru.po
index 7522d170..3679ade4 100644
--- a/translations/desktop_files/kmix-desktops/ru.po
+++ b/translations/desktop_files/kmix-desktops/ru.po
@@ -1,25 +1,27 @@
# SOME DESCRIPTIVE TITLE.
# This file is put in the public domain.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
+# Andrei Stepanov <adem4ik@gmail.com>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-29 13:37+0200\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
+"PO-Revision-Date: 2023-10-15 13:14+0000\n"
+"Last-Translator: Andrei Stepanov <adem4ik@gmail.com>\n"
+"Language-Team: Russian <https://mirror.git.trinitydesktop.org/weblate/"
+"projects/tdemultimedia/kmix-desktop-files/ru/>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+"X-Generator: Weblate 4.17\n"
#. Name
#: kmix.desktop:11
msgid "KMix"
-msgstr ""
+msgstr "KMix"
#. GenericName
#. Name
diff --git a/translations/desktop_files/krec-desktops/ru.po b/translations/desktop_files/krec-desktops/ru.po
index 44cb66ec..7fe43db3 100644
--- a/translations/desktop_files/krec-desktops/ru.po
+++ b/translations/desktop_files/krec-desktops/ru.po
@@ -1,25 +1,27 @@
# SOME DESCRIPTIVE TITLE.
# This file is put in the public domain.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
+# Andrei Stepanov <adem4ik@gmail.com>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-29 13:46+0200\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
+"PO-Revision-Date: 2023-10-15 13:14+0000\n"
+"Last-Translator: Andrei Stepanov <adem4ik@gmail.com>\n"
+"Language-Team: Russian <https://mirror.git.trinitydesktop.org/weblate/"
+"projects/tdemultimedia/krec-desktop-files/ru/>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+"X-Generator: Weblate 4.17\n"
#. Name
#: krec.desktop:9
msgid "KRec"
-msgstr ""
+msgstr "KRec"
#. GenericName
#: krec.desktop:11
diff --git a/translations/desktop_files/kscd-desktops/ru.po b/translations/desktop_files/kscd-desktops/ru.po
index 3dd36dbc..725d2eb6 100644
--- a/translations/desktop_files/kscd-desktops/ru.po
+++ b/translations/desktop_files/kscd-desktops/ru.po
@@ -1,20 +1,22 @@
# SOME DESCRIPTIVE TITLE.
# This file is put in the public domain.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
+# Andrei Stepanov <adem4ik@gmail.com>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-29 14:48+0200\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
+"PO-Revision-Date: 2023-10-15 13:14+0000\n"
+"Last-Translator: Andrei Stepanov <adem4ik@gmail.com>\n"
+"Language-Team: Russian <https://mirror.git.trinitydesktop.org/weblate/"
+"projects/tdemultimedia/kscd-desktop-files/ru/>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+"X-Generator: Weblate 4.17\n"
#. Name
#: audiocd_play.desktop:7
@@ -24,7 +26,7 @@ msgstr "Воспроизведение"
#. Name
#: kscd.desktop:3
msgid "KsCD"
-msgstr ""
+msgstr "KsCD"
#. GenericName
#: kscd.desktop:5
diff --git a/translations/desktop_files/libkcddb.desktop/ru.po b/translations/desktop_files/libkcddb.desktop/ru.po
index e618af52..a3fb9ee8 100644
--- a/translations/desktop_files/libkcddb.desktop/ru.po
+++ b/translations/desktop_files/libkcddb.desktop/ru.po
@@ -1,20 +1,22 @@
# SOME DESCRIPTIVE TITLE.
# This file is put in the public domain.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
+# Andrei Stepanov <adem4ik@gmail.com>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-29 14:42+0200\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
+"PO-Revision-Date: 2023-10-15 13:14+0000\n"
+"Last-Translator: Andrei Stepanov <adem4ik@gmail.com>\n"
+"Language-Team: Russian <https://mirror.git.trinitydesktop.org/weblate/"
+"projects/tdemultimedia/libkcddb-libkcddbdesktop/ru/>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+"X-Generator: Weblate 4.17\n"
#. Name
#: libkcddb.desktop:10
@@ -29,4 +31,4 @@ msgstr "Настройка CDDB"
#. Keywords
#: libkcddb.desktop:14
msgid "cddb;"
-msgstr ""
+msgstr "cddb;"
diff --git a/translations/desktop_files/noatun-desktops/ru.po b/translations/desktop_files/noatun-desktops/ru.po
index ecebe816..b69593c2 100644
--- a/translations/desktop_files/noatun-desktops/ru.po
+++ b/translations/desktop_files/noatun-desktops/ru.po
@@ -1,25 +1,27 @@
# SOME DESCRIPTIVE TITLE.
# This file is put in the public domain.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
+# Andrei Stepanov <adem4ik@gmail.com>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-29 14:54+0200\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
+"PO-Revision-Date: 2023-10-15 13:14+0000\n"
+"Last-Translator: Andrei Stepanov <adem4ik@gmail.com>\n"
+"Language-Team: Russian <https://mirror.git.trinitydesktop.org/weblate/"
+"projects/tdemultimedia/noatun-desktop-files/ru/>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+"X-Generator: Weblate 4.17\n"
#. Name
#: noatun.desktop:8
msgid "Noatun"
-msgstr ""
+msgstr "Noatun"
#. GenericName
#: noatun.desktop:10
diff --git a/translations/desktop_files/tdemid-desktops/ru.po b/translations/desktop_files/tdemid-desktops/ru.po
index 76c121ec..0f0cdb81 100644
--- a/translations/desktop_files/tdemid-desktops/ru.po
+++ b/translations/desktop_files/tdemid-desktops/ru.po
@@ -1,25 +1,27 @@
# SOME DESCRIPTIVE TITLE.
# This file is put in the public domain.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
+# Andrei Stepanov <adem4ik@gmail.com>, 2023.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-29 15:16+0200\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
+"PO-Revision-Date: 2023-10-15 13:14+0000\n"
+"Last-Translator: Andrei Stepanov <adem4ik@gmail.com>\n"
+"Language-Team: Russian <https://mirror.git.trinitydesktop.org/weblate/"
+"projects/tdemultimedia/tdemid-desktop-files/ru/>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+"X-Generator: Weblate 4.17\n"
#. Name
#: tdemid.desktop:3
msgid "TDEMid"
-msgstr ""
+msgstr "TDEMid"
#. GenericName
#: tdemid.desktop:5
diff --git a/xine_artsplugin/audio_fifo_out.c b/xine_artsplugin/audio_fifo_out.c
index 9255ba2c..3087bce0 100644
--- a/xine_artsplugin/audio_fifo_out.c
+++ b/xine_artsplugin/audio_fifo_out.c
@@ -354,7 +354,7 @@ static ao_driver_t * _arts_open(audio_driver_class_t *driver_class, const void *
return &_ao_driver->ao_driver;
}
-static void *_arts_plugin_class_init(xine_t *xine, void *data) {
+static void *_arts_plugin_class_init(xine_t *xine, const void *data) {
fifo_class_t *cl;
cl = (fifo_class_t *) malloc(sizeof(fifo_class_t));
@@ -376,7 +376,7 @@ static ao_info_t _arts_info =
plugin_info_t arts_xine_plugin_info[] =
{
- { PLUGIN_AUDIO_OUT, AUDIO_OUT_IFACE_VERSION, "arts", XINE_VERSION_CODE, &_arts_info, _arts_plugin_class_init },
+ { PLUGIN_AUDIO_OUT, AUDIO_OUT_IFACE_VERSION, "arts", XINE_VERSION_CODE, &_arts_info, &_arts_plugin_class_init },
{ PLUGIN_NONE, 0, "", 0, NULL, NULL }
};
#endif
diff --git a/xine_artsplugin/tools/thumbnail/videocreator.h b/xine_artsplugin/tools/thumbnail/videocreator.h
index 439b9cf4..dc8a519d 100644
--- a/xine_artsplugin/tools/thumbnail/videocreator.h
+++ b/xine_artsplugin/tools/thumbnail/videocreator.h
@@ -24,7 +24,7 @@
class VideoCreator : public TQObject, public ThumbCreator
{
- Q_OBJECT
+ TQ_OBJECT
public:
VideoCreator();