summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/CMakeLists.txt40
-rw-r--r--tdecore/DESIGN.iconloading2
-rw-r--r--tdecore/DESIGN.tdeconfig6
-rw-r--r--tdecore/KCONFIG_DESIGN2
-rw-r--r--tdecore/MAINTAINERS34
-rw-r--r--tdecore/Mainpage.dox2
-rw-r--r--tdecore/Makefile.am44
-rw-r--r--tdecore/README.exec4
-rw-r--r--tdecore/README.kiosk30
-rw-r--r--tdecore/README.tdestartupinfo6
-rw-r--r--tdecore/configure.in.in4
-rw-r--r--tdecore/fixx11h.h2
-rwxr-xr-xtdecore/generate_keys.sh2
-rw-r--r--tdecore/kapp.h6
-rw-r--r--tdecore/kapplication_win.cpp10
-rw-r--r--tdecore/kasyncio.h13
-rw-r--r--tdecore/kaudioplayer.h4
-rw-r--r--tdecore/kbufferedio.cpp10
-rw-r--r--tdecore/kbufferedio.h12
-rw-r--r--tdecore/kcalendarsystemgregorian.cpp8
-rw-r--r--tdecore/kcalendarsystemhebrew.cpp4
-rw-r--r--tdecore/kcalendarsystemhijri.cpp2
-rw-r--r--tdecore/kcalendarsystemjalali.cpp2
-rw-r--r--tdecore/kcatalogue.cpp2
-rw-r--r--tdecore/kcharsets.cpp12
-rw-r--r--tdecore/kcheckaccelerators.cpp12
-rw-r--r--tdecore/kcheckaccelerators.h2
-rw-r--r--tdecore/kckey.cpp2
-rw-r--r--tdecore/kclipboard.cpp10
-rw-r--r--tdecore/kclipboard.h2
-rw-r--r--tdecore/kcompletion.h4
-rw-r--r--tdecore/kdebug.areas2
-rw-r--r--tdecore/kdebug.cpp35
-rw-r--r--tdecore/kextsock.cpp46
-rw-r--r--tdecore/kextsock.h67
-rw-r--r--tdecore/kgenericfactory.h6
-rw-r--r--tdecore/kgenericfactory.tcc10
-rw-r--r--tdecore/kiconeffect.cpp36
-rw-r--r--tdecore/kiconloader.cpp18
-rw-r--r--tdecore/kiconloader.h2
-rw-r--r--tdecore/kiconloader_p.h2
-rw-r--r--tdecore/kicontheme.cpp10
-rw-r--r--tdecore/kidna.cpp12
-rw-r--r--tdecore/kipc.cpp8
-rw-r--r--tdecore/kkeynative.h10
-rw-r--r--tdecore/kkeynative_x11.cpp18
-rw-r--r--tdecore/kkeyserver_x11.cpp318
-rw-r--r--tdecore/kkeyserver_x11.h20
-rw-r--r--tdecore/klibloader.cpp46
-rw-r--r--tdecore/klibloader.h18
-rw-r--r--tdecore/kmacroexpander.cpp62
-rw-r--r--tdecore/kmanagerselection.cpp10
-rw-r--r--tdecore/kmanagerselection.h10
-rw-r--r--tdecore/kmimesourcefactory.cpp2
-rw-r--r--tdecore/kmountpoint.cpp10
-rw-r--r--tdecore/knotifyclient.cpp24
-rw-r--r--tdecore/knotifyclient.h8
-rw-r--r--tdecore/kpalette.cpp2
-rw-r--r--tdecore/kprotocolinfo_tdecore.cpp8
-rw-r--r--tdecore/kprotocolinfofactory.cpp2
-rw-r--r--tdecore/kpty.cpp15
-rw-r--r--tdecore/kqiodevicegzip_p.cpp10
-rw-r--r--tdecore/kqiodevicegzip_p.h10
-rw-r--r--tdecore/krandomsequence.h2
-rw-r--r--tdecore/kregexp.h2
-rw-r--r--tdecore/krfcdate.cpp12
-rw-r--r--tdecore/krootprop.cpp2
-rw-r--r--tdecore/ksavefile.cpp4
-rw-r--r--tdecore/kshell.cpp66
-rw-r--r--tdecore/ksimpledirwatch.cpp24
-rw-r--r--tdecore/ksimpledirwatch.h2
-rw-r--r--tdecore/ksimpledirwatch_p.h2
-rw-r--r--tdecore/ksock.cpp8
-rw-r--r--tdecore/ksock.h22
-rw-r--r--tdecore/ksockaddr.h6
-rw-r--r--tdecore/ksocks.cpp4
-rw-r--r--tdecore/kstaticdeleter.h2
-rw-r--r--tdecore/kstddirs.h6
-rw-r--r--tdecore/kstringhandler.cpp6
-rw-r--r--tdecore/kstringhandler.h8
-rw-r--r--tdecore/ktempdir.cpp6
-rw-r--r--tdecore/ktimezones.cpp14
-rw-r--r--tdecore/ktimezones.h2
-rw-r--r--tdecore/kuniqueapp.h6
-rw-r--r--tdecore/kurl.cpp12
-rw-r--r--tdecore/kurl.h6
-rw-r--r--tdecore/kurldrag.cpp2
-rw-r--r--tdecore/kurldrag.h12
-rw-r--r--tdecore/kvmallocator.h4
-rw-r--r--tdecore/kxerrorhandler.cpp2
-rw-r--r--tdecore/kxmessages.cpp10
-rw-r--r--tdecore/kxmessages.h8
-rw-r--r--tdecore/libintl.cpp4
-rw-r--r--tdecore/libqt-mt.nmcheck2
-rw-r--r--tdecore/libtdecore.nmcheck2
-rw-r--r--tdecore/malloc/malloc.c4
-rw-r--r--tdecore/netsupp.cpp4
-rw-r--r--tdecore/netwm.cpp6
-rw-r--r--tdecore/netwm.h12
-rw-r--r--tdecore/network/kbufferedsocket.cpp30
-rw-r--r--tdecore/network/kbufferedsocket.h27
-rw-r--r--tdecore/network/kclientsocketbase.cpp51
-rw-r--r--tdecore/network/kclientsocketbase.h28
-rw-r--r--tdecore/network/kdatagramsocket.cpp22
-rw-r--r--tdecore/network/kdatagramsocket.h6
-rw-r--r--tdecore/network/khttpproxysocketdevice.cpp6
-rw-r--r--tdecore/network/kresolver.cpp8
-rw-r--r--tdecore/network/kresolver.h6
-rw-r--r--tdecore/network/kresolver_p.h2
-rw-r--r--tdecore/network/kresolverstandardworkers.cpp2
-rw-r--r--tdecore/network/kresolverstandardworkers_p.h2
-rw-r--r--tdecore/network/kreverseresolver.h2
-rw-r--r--tdecore/network/kserversocket.cpp16
-rw-r--r--tdecore/network/kserversocket.h10
-rw-r--r--tdecore/network/ksockssocketdevice.cpp12
-rw-r--r--tdecore/network/ksockssocketdevice.h8
-rw-r--r--tdecore/network/ksrvresolverworker.cpp4
-rw-r--r--tdecore/network/ksrvresolverworker_p.h2
-rw-r--r--tdecore/network/kstreamsocket.cpp20
-rw-r--r--tdecore/network/kstreamsocket.h18
-rw-r--r--tdecore/network/tdesocketbase.cpp4
-rw-r--r--tdecore/network/tdesocketbase.h21
-rw-r--r--tdecore/network/tdesocketbuffer.cpp4
-rw-r--r--tdecore/network/tdesocketdevice.cpp17
-rw-r--r--tdecore/network/tdesocketdevice.h15
-rw-r--r--tdecore/svgicons/ksvgiconengine.cpp6
-rw-r--r--tdecore/svgicons/ksvgiconpainter.cpp2
-rw-r--r--tdecore/tde-config.cpp.cmake4
-rw-r--r--tdecore/tde-config.cpp.in6
-rw-r--r--tdecore/tdeaboutdata.cpp6
-rw-r--r--tdecore/tdeaboutdata.h3
-rw-r--r--tdecore/tdeaccel.cpp56
-rw-r--r--tdecore/tdeaccel.h42
-rw-r--r--tdecore/tdeaccelbase.cpp12
-rw-r--r--tdecore/tdeaccelbase.h10
-rw-r--r--tdecore/tdeaccelmanager.cpp16
-rw-r--r--tdecore/tdeaccelmanager_private.h4
-rw-r--r--tdecore/tdeaccelprivate.h6
-rw-r--r--tdecore/tdeappdcopinterface.cpp (renamed from tdecore/kappdcopiface.cpp)20
-rw-r--r--tdecore/tdeappdcopinterface.h (renamed from tdecore/kappdcopiface.h)10
-rw-r--r--tdecore/tdeapplication.cpp426
-rw-r--r--tdecore/tdeapplication.h84
-rw-r--r--tdecore/tdecmdlineargs.cpp28
-rw-r--r--tdecore/tdecmdlineargs.h24
-rw-r--r--tdecore/tdeconfig.cpp2
-rw-r--r--tdecore/tdeconfig.h4
-rw-r--r--tdecore/tdeconfig_compiler/README.dox10
-rw-r--r--tdecore/tdeconfig_compiler/example/autoexample.cpp2
-rw-r--r--tdecore/tdeconfig_compiler/example/example.cpp2
-rw-r--r--tdecore/tdeconfig_compiler/example/example.kcfg2
-rw-r--r--tdecore/tdeconfig_compiler/example/general_base.ui2
-rw-r--r--tdecore/tdeconfig_compiler/example/myoptions_base.ui2
-rw-r--r--tdecore/tdeconfig_compiler/tdeconfig_compiler.cpp6
-rw-r--r--tdecore/tdeconfig_compiler/tests/test1main.cpp2
-rw-r--r--tdecore/tdeconfig_compiler/tests/test2main.cpp2
-rw-r--r--tdecore/tdeconfig_compiler/tests/test3main.cpp2
-rw-r--r--tdecore/tdeconfig_compiler/tests/test4main.cpp2
-rw-r--r--tdecore/tdeconfig_compiler/tests/test5main.cpp2
-rw-r--r--tdecore/tdeconfig_compiler/tests/test6main.cpp2
-rw-r--r--tdecore/tdeconfig_compiler/tests/test7main.cpp2
-rw-r--r--tdecore/tdeconfig_compiler/tests/test8main.cpp2
-rw-r--r--tdecore/tdeconfig_compiler/tests/test9main.cpp2
-rw-r--r--tdecore/tdeconfig_compiler/tests/test_dpointer_main.cpp2
-rw-r--r--tdecore/tdeconfigbackend.cpp84
-rw-r--r--tdecore/tdeconfigbackend.h2
-rw-r--r--tdecore/tdeconfigbase.cpp64
-rw-r--r--tdecore/tdeconfigbase.h18
-rw-r--r--tdecore/tdeconfigdialogmanager.cpp102
-rw-r--r--tdecore/tdeconfigdialogmanager.h4
-rw-r--r--tdecore/tdeconfigskeleton.cpp2
-rw-r--r--tdecore/tdeconfigskeleton.h2
-rw-r--r--tdecore/tdecrash.cpp (renamed from tdecore/kcrash.cpp)50
-rw-r--r--tdecore/tdecrash.h (renamed from tdecore/kcrash.h)10
-rw-r--r--tdecore/tdedesktopfile.cpp (renamed from tdecore/kdesktopfile.cpp)74
-rw-r--r--tdecore/tdedesktopfile.h (renamed from tdecore/kdesktopfile.h)34
-rw-r--r--tdecore/tdeglobal.cpp25
-rw-r--r--tdecore/tdeglobal.h22
-rw-r--r--tdecore/tdeglobalaccel.cpp (renamed from tdecore/kglobalaccel.cpp)18
-rw-r--r--tdecore/tdeglobalaccel.h (renamed from tdecore/kglobalaccel.h)14
-rw-r--r--tdecore/tdeglobalaccel_emb.h (renamed from tdecore/kglobalaccel_emb.h)6
-rw-r--r--tdecore/tdeglobalaccel_mac.h (renamed from tdecore/kglobalaccel_mac.h)6
-rw-r--r--tdecore/tdeglobalaccel_win.cpp (renamed from tdecore/kglobalaccel_win.cpp)18
-rw-r--r--tdecore/tdeglobalaccel_win.h (renamed from tdecore/kglobalaccel_win.h)8
-rw-r--r--tdecore/tdeglobalaccel_x11.cpp (renamed from tdecore/kglobalaccel_x11.cpp)41
-rw-r--r--tdecore/tdeglobalaccel_x11.h (renamed from tdecore/kglobalaccel_x11.h)8
-rw-r--r--tdecore/tdeglobalsettings.cpp50
-rw-r--r--tdecore/tdehw/networkbackends/network-manager/network-manager.cpp103
-rw-r--r--tdecore/tdehw/networkbackends/network-manager/network-manager.h6
-rw-r--r--tdecore/tdehw/networkbackends/network-manager/network-manager_p.h4
-rw-r--r--tdecore/tdehw/tdecryptographiccarddevice.cpp12
-rw-r--r--tdecore/tdehw/tdecryptographiccarddevice.h2
-rw-r--r--tdecore/tdehw/tdeeventdevice.cpp8
-rw-r--r--tdecore/tdehw/tdeeventdevice.h2
-rw-r--r--tdecore/tdehw/tdegenericdevice.h2
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp101
-rw-r--r--tdecore/tdehw/tdehardwaredevices.h3
-rw-r--r--tdecore/tdehw/tdenetworkconnections.cpp10
-rw-r--r--tdecore/tdehw/tdenetworkconnections.h4
-rw-r--r--tdecore/tdehw/tderootsystemdevice.cpp6
-rw-r--r--tdecore/tdehw/tdestoragedevice.cpp10
-rw-r--r--tdecore/tdehw/tdestoragedevice.h7
-rw-r--r--tdecore/tdeinstance.cpp (renamed from tdecore/kinstance.cpp)6
-rw-r--r--tdecore/tdeinstance.h (renamed from tdecore/kinstance.h)14
-rw-r--r--tdecore/tdelibs_export.h64
-rw-r--r--tdecore/tdelocale.cpp72
-rw-r--r--tdecore/tdelocale.h30
-rw-r--r--tdecore/tdemacros.h.cmake (renamed from tdecore/kdemacros.h.cmake)133
-rw-r--r--tdecore/tdemacros.h.in (renamed from tdecore/kdemacros.h.in)129
-rw-r--r--tdecore/tdemultipledrag.h2
-rw-r--r--tdecore/tdeprocctrl.cpp (renamed from tdecore/kprocctrl.cpp)10
-rw-r--r--tdecore/tdeprocctrl.h (renamed from tdecore/kprocctrl.h)8
-rw-r--r--tdecore/tdeprocess.cpp (renamed from tdecore/kprocess.cpp)27
-rw-r--r--tdecore/tdeprocess.h (renamed from tdecore/kprocess.h)25
-rw-r--r--tdecore/tdeprocio.cpp (renamed from tdecore/kprocio.cpp)66
-rw-r--r--tdecore/tdeprocio.h (renamed from tdecore/kprocio.h)37
-rw-r--r--tdecore/tdeshortcut.cpp10
-rw-r--r--tdecore/tdeshortcut.h20
-rw-r--r--tdecore/tdeshortcutlist.cpp4
-rw-r--r--tdecore/tdeshortcutmenu.cpp20
-rw-r--r--tdecore/tdeshortcutmenu.h2
-rw-r--r--tdecore/tdesimpleconfig.cpp (renamed from tdecore/ksimpleconfig.cpp)24
-rw-r--r--tdecore/tdesimpleconfig.h (renamed from tdecore/ksimpleconfig.h)24
-rw-r--r--tdecore/tdestandarddirs.cpp (renamed from tdecore/kstandarddirs.cpp)112
-rw-r--r--tdecore/tdestandarddirs.h (renamed from tdecore/kstandarddirs.h)46
-rw-r--r--tdecore/tdestartupinfo.cpp64
-rw-r--r--tdecore/tdestartupinfo.h12
-rw-r--r--tdecore/tdestdaccel.cpp94
-rw-r--r--tdecore/tdestdaccel.h10
-rw-r--r--tdecore/tdesycoca.cpp14
-rw-r--r--tdecore/tdesycoca.h2
-rw-r--r--tdecore/tdetempfile.cpp4
-rw-r--r--tdecore/tdeuniqueapplication.cpp (renamed from tdecore/kuniqueapplication.cpp)128
-rw-r--r--tdecore/tdeuniqueapplication.h (renamed from tdecore/kuniqueapplication.h)36
-rw-r--r--tdecore/tdeversion.h4
-rw-r--r--tdecore/tests/CMakeLists.txt42
-rw-r--r--tdecore/tests/KIDLTestClient.cpp4
-rw-r--r--tdecore/tests/Makefile.am24
-rw-r--r--tdecore/tests/dcopkonqtest.cpp10
-rw-r--r--tdecore/tests/kdebugtest.cpp6
-rw-r--r--tdecore/tests/kipctest.cpp12
-rw-r--r--tdecore/tests/kipctest.h14
-rw-r--r--tdecore/tests/klocaletest.h2
-rw-r--r--tdecore/tests/kmdcodectest.cpp2
-rw-r--r--tdecore/tests/krandomsequencetest.cpp2
-rw-r--r--tdecore/tests/kresolvertest.cpp8
-rw-r--r--tdecore/tests/krfcdatetest.cpp6
-rw-r--r--tdecore/tests/ksocktest.cpp8
-rw-r--r--tdecore/tests/ktempfiletest.cpp2
-rw-r--r--tdecore/tests/ktimezonestest.cpp12
-rw-r--r--tdecore/tests/kurltest.cpp30
-rw-r--r--tdecore/tests/startserviceby.cpp2
-rw-r--r--tdecore/tests/tdeapptest.cpp (renamed from tdecore/tests/kapptest.cpp)2
-rw-r--r--tdecore/tests/tdeconfigtestgui.cpp18
-rw-r--r--tdecore/tests/tdeconfigtestgui.h4
-rw-r--r--tdecore/tests/tdeprocesstest.cpp (renamed from tdecore/tests/kprocesstest.cpp)40
-rw-r--r--tdecore/tests/tdeprocesstest.h (renamed from tdecore/tests/kprocesstest.h)6
-rw-r--r--tdecore/tests/tdeprociotest.cpp (renamed from tdecore/tests/kprociotest.cpp)16
-rw-r--r--tdecore/tests/tdeprociotest.h (renamed from tdecore/tests/kprociotest.h)6
-rw-r--r--tdecore/tests/tdesimpleconfigtest.cpp (renamed from tdecore/tests/ksimpleconfigtest.cpp)12
-rw-r--r--tdecore/tests/tdestandarddirstest.cpp (renamed from tdecore/tests/kstddirstest.cpp)4
-rw-r--r--tdecore/tests/tdeuniqueapptest.cpp (renamed from tdecore/tests/kuniqueapptest.cpp)12
-rw-r--r--tdecore/tests/testqtargs.cpp2
-rw-r--r--tdecore/twin.cpp166
-rw-r--r--tdecore/twin.h6
-rw-r--r--tdecore/twinmodule.cpp14
-rw-r--r--tdecore/twinmodule.h10
266 files changed, 2479 insertions, 2828 deletions
diff --git a/tdecore/CMakeLists.txt b/tdecore/CMakeLists.txt
index 22c3bbc88..96032d616 100644
--- a/tdecore/CMakeLists.txt
+++ b/tdecore/CMakeLists.txt
@@ -49,22 +49,22 @@ link_directories(
##### headers ###################################
install( FILES
- tdeconfig.h tdeconfigskeleton.h tdeconfigdata.h ksimpleconfig.h
- tdeconfigdialogmanager.h tdeconfigbase.h kdesktopfile.h
+ tdeconfig.h tdeconfigskeleton.h tdeconfigdata.h tdesimpleconfig.h
+ tdeconfigdialogmanager.h tdeconfigbase.h tdedesktopfile.h
kurl.h ksock.h tdeaboutdata.h tdecmdlineargs.h tdeconfigbackend.h
- kapp.h tdeapplication.h kuniqueapp.h kuniqueapplication.h
- kcharsets.h tdeversion.h kpty.h kprocess.h kprocctrl.h
+ tdeapplication.h tdeuniqueapplication.h
+ kcharsets.h tdeversion.h kpty.h tdeprocess.h tdeprocctrl.h
tdelocale.h kicontheme.h kiconloader.h kdebug.h twinmodule.h
twin.h krootprop.h tdeshortcut.h kkeynative.h tdeaccel.h
- kglobalaccel.h tdestdaccel.h tdeshortcutlist.h kcatalogue.h
- kregexp.h kcompletion.h kstringhandler.h kstddirs.h
- kstandarddirs.h tdeglobal.h tdeglobalsettings.h ksharedptr.h
- kallocator.h kvmallocator.h kcrash.h krfcdate.h kinstance.h
+ tdeglobalaccel.h tdestdaccel.h tdeshortcutlist.h kcatalogue.h
+ kregexp.h kcompletion.h kstringhandler.h
+ tdestandarddirs.h tdeglobal.h tdeglobalsettings.h ksharedptr.h
+ kallocator.h kvmallocator.h tdecrash.h krfcdate.h tdeinstance.h
kpalette.h kipc.h klibloader.h tdetempfile.h ksavefile.h
krandomsequence.h knotifyclient.h kiconeffect.h kaudioplayer.h
kdcoppropertyproxy.h netwm.h tdeaccelmanager.h netwm_def.h
kpixmapprovider.h kunload.h kstaticdeleter.h kextsock.h
- kextendedsocket.h ksockaddr.h kprocio.h kasyncio.h kbufferedio.h
+ kextendedsocket.h ksockaddr.h tdeprocio.h kasyncio.h kbufferedio.h
kurldrag.h kmimesourcefactory.h kmdcodec.h ksocks.h tdesycoca.h
tdesycocaentry.h tdesycocatype.h kxmessages.h tdestartupinfo.h
klargefile.h tdemultipledrag.h kgenericfactory.h kgenericfactory.tcc
@@ -73,7 +73,7 @@ install( FILES
kmanagerselection.h kmountpoint.h kuser.h klockfile.h
kidna.h ktempdir.h kshell.h fixx11h.h kxerrorhandler.h
tdelibs_export.h kde_file.h ktimezones.h
- ${CMAKE_CURRENT_BINARY_DIR}/kdemacros.h
+ ${CMAKE_CURRENT_BINARY_DIR}/tdemacros.h
DESTINATION ${INCLUDE_INSTALL_DIR} )
@@ -106,27 +106,27 @@ set( target tdecore )
set( ${target}_SRCS
libintl.cpp tdeapplication.cpp kdebug.cpp netwm.cpp
- tdeconfigbase.cpp tdeconfig.cpp ksimpleconfig.cpp tdeconfigbackend.cpp
- kmanagerselection.cpp kdesktopfile.cpp kstandarddirs.cpp
- ksock.cpp kpty.cpp kprocess.cpp kprocctrl.cpp tdelocale.cpp
+ tdeconfigbase.cpp tdeconfig.cpp tdesimpleconfig.cpp tdeconfigbackend.cpp
+ kmanagerselection.cpp tdedesktopfile.cpp tdestandarddirs.cpp
+ ksock.cpp kpty.cpp tdeprocess.cpp tdeprocctrl.cpp tdelocale.cpp
krfcdate.cpp kiconeffect.cpp kicontheme.cpp kiconloader.cpp
twin.cpp twinmodule.cpp krootprop.cpp kcharsets.cpp
kckey.cpp tdeshortcut.cpp kkeynative_x11.cpp kkeyserver_x11.cpp
tdeaccelaction.cpp tdeshortcutmenu.cpp tdeaccelbase.cpp tdeaccel.cpp
- kglobalaccel_x11.cpp kglobalaccel.cpp tdestdaccel.cpp tdeshortcutlist.cpp
- kcrash.cpp kurl.cpp kregexp.cpp tdeglobal.cpp tdeglobalsettings.cpp
+ tdeglobalaccel_x11.cpp tdeglobalaccel.cpp tdestdaccel.cpp tdeshortcutlist.cpp
+ tdecrash.cpp kurl.cpp kregexp.cpp tdeglobal.cpp tdeglobalsettings.cpp
kallocator.cpp kvmallocator.cpp kmimesourcefactory.cpp
- kinstance.cpp kpalette.cpp kipc.cpp klibloader.cpp tdetempfile.cpp
- kuniqueapplication.cpp tdeaccelmanager.cpp ksavefile.cpp
+ tdeinstance.cpp kpalette.cpp kipc.cpp klibloader.cpp tdetempfile.cpp
+ tdeuniqueapplication.cpp tdeaccelmanager.cpp ksavefile.cpp
krandomsequence.cpp kstringhandler.cpp kcompletion.cpp
tdecmdlineargs.cpp tdeaboutdata.cpp kcompletionbase.cpp knotifyclient.cpp
kaudioplayer.cpp kdcoppropertyproxy.cpp ksockaddr.cpp
- kextsock.cpp netsupp.cpp kprocio.cpp kbufferedio.cpp
+ kextsock.cpp netsupp.cpp tdeprocio.cpp kbufferedio.cpp
kpixmapprovider.cpp kurldrag.cpp kmdcodec.cpp ksocks.cpp
fakes.c vsnprintf.c tdesycoca.cpp tdesycocadict.cpp tdesycoca.skel
tdesycocafactory.cpp kxmessages.cpp tdestartupinfo.cpp
kcatalogue.cpp kasyncio.cpp tdemultipledrag.cpp kstaticdeleter.cpp
- kappdcopiface.cpp kappdcopiface.skel kclipboard.cpp
+ tdeappdcopinterface.cpp tdeappdcopinterface.skel kclipboard.cpp
kcheckaccelerators.cpp tdeversion.cpp kdebugdcopiface.cpp
kdebugdcopiface.skel kcalendarsystem.cpp kcalendarsystemgregorian.cpp
kcalendarsystemhijri.cpp kcalendarsystemhebrew.cpp
@@ -141,7 +141,7 @@ tde_add_library( ${target} SHARED AUTOMOC
SOURCES ${${target}_SRCS}
VERSION 14.1.0
EMBED tdecorenetwork-static
- LINK DCOP-shared tdefx-shared ICE SM ${ZLIB_LIBRARIES}
+ LINK DCOP-shared tdefx-shared ICE SM ${ZLIB_LIBRARIES} ${RESOLV_LIBRARIES}
LINK_PRIVATE ltdlc-static ${KDESVGICONS} ${XCOMPOSITE_LIBRARIES}
${LIBIDN_LIBRARIES} ${LIBBFD_LIBRARIES} ${LIB_UTIL} ${GAMIN_LIBRARIES}
${Backtrace_LIBRARY}
diff --git a/tdecore/DESIGN.iconloading b/tdecore/DESIGN.iconloading
index a675a8922..1a90f43ef 100644
--- a/tdecore/DESIGN.iconloading
+++ b/tdecore/DESIGN.iconloading
@@ -42,7 +42,7 @@ That way the application's pixmap always remain valid.
Some example code to get the idea:
Server can publish an icon (test.png) like this:
- QImage i("test.png");
+ TQImage i("test.png");
QPixmap p;
p.convertFromImage(i);
tqWarning("Handle = %08x", p.handle());
diff --git a/tdecore/DESIGN.tdeconfig b/tdecore/DESIGN.tdeconfig
index a1fb48dbd..1a3645051 100644
--- a/tdecore/DESIGN.tdeconfig
+++ b/tdecore/DESIGN.tdeconfig
@@ -93,7 +93,7 @@ default so that it doesn't change when the default changes?
KDE3.0 Changes
==============
-*) writeEntry now returns void instead of QString.
+*) writeEntry now returns void instead of TQString.
*) deleteEntry functions added
@@ -176,7 +176,7 @@ Class overview
TDEConfigBackend <-----> TDEConfig <------> TDEConfigSkeleton /--< myapp.kcfg
| | | /
v v |*---------------<
-TDEConfigINIBackend KSimpleConfig |tdeconfig_compiler \
+TDEConfigINIBackend TDESimpleConfig |tdeconfig_compiler \
| \--< myconfig.kcfg-codegen
v
MyConfig <-----TDEConfigDialogManager----> MyConfigWidget *---< myconfigwidget.ui
@@ -187,7 +187,7 @@ TDEConfigBase: defines API for generic config class
TDEConfig: functional generic config class that supports merging of cascaded
configuration files
-KSimpleConfig: functional generic config class without support for cascading
+TDESimpleConfig: functional generic config class without support for cascading
configuration files.
TDEConfigBackend: defines API for config backend, t.i. the actual handling
diff --git a/tdecore/KCONFIG_DESIGN b/tdecore/KCONFIG_DESIGN
index d0fa141ff..83b6bf2d4 100644
--- a/tdecore/KCONFIG_DESIGN
+++ b/tdecore/KCONFIG_DESIGN
@@ -30,7 +30,7 @@ reads/writes the standard windows INI-style configuration files that
KDE has used since KDE 1.x days. However, it is conceivable that one
might program an XML backend, or even a database/registry style
backend. Again, this abstract data type approach provides flexibility
-for the future. Currently TDEConfig and KSimpleConfig hardcode that
+for the future. Currently TDEConfig and TDESimpleConfig hardcode that
they are using a TDEConfigINIBackEnd in the constructor. If more back
ends are implemented, this will have to be changed to use a factory
method of some sort to create the backend; all they maintain is a
diff --git a/tdecore/MAINTAINERS b/tdecore/MAINTAINERS
index ae94ecd7c..902ffd444 100644
--- a/tdecore/MAINTAINERS
+++ b/tdecore/MAINTAINERS
@@ -6,12 +6,12 @@ When adding yourself as a maintainer, don't be afraid to reorder the files to a
more logical grouping.
dmalloc.cpp
-tdeaboutdata.cpp David Faure <faure@kde.org>
+tdeaboutdata.cpp David Faure <faure@kde.org>
tdeaccel.cpp Ellis Whitehead <ellis@kde.org>
tdeaccelaction.cpp Ellis Whitehead <ellis@kde.org>
-tdeaccelbase.cpp Ellis Whitehead <ellis@kde.org>
+tdeaccelbase.cpp Ellis Whitehead <ellis@kde.org>
kallocator.cpp Waldo Bastian <bastian@kde.org>
-kappdcopiface.cpp
+tdeappdcopinterface.cpp
tdeapplication.cpp Waldo Bastian <bastian@kde.org>
kaudioplayer.cpp
kcatalogue.cpp Hans Petter Bieker <bieker@kde.org>
@@ -22,19 +22,19 @@ kcompletion.cpp Carsten Pfeiffer <pfeiffer@kde.org>
kcompletionbase.cpp
tdeconfig.cpp Waldo Bastian <bastian@kde.org>
tdeconfigbackend.cpp Waldo Bastian <bastian@kde.org>
-tdeconfigbase.cpp Waldo Bastian <bastian@kde.org>
-kcrash.cpp Waldo Bastian <bastian@kde.org>
+tdeconfigbase.cpp Waldo Bastian <bastian@kde.org>
+tdecrash.cpp Waldo Bastian <bastian@kde.org>
kdcoppropertyproxy.cpp
kdebug.cpp Stephan Kulow <coolo@kde.org>
-kdesktopfile.cpp
+tdedesktopfile.cpp
tdeglobal.cpp Stephan Kulow <coolo@kde.org>
-kglobalaccel.cpp Ellis Whitehead <ellis@kde.org>
-kglobalaccel_x11.cpp Ellis Whitehead <ellis@kde.org>
+tdeglobalaccel.cpp Ellis Whitehead <ellis@kde.org>
+tdeglobalaccel_x11.cpp Ellis Whitehead <ellis@kde.org>
tdeglobalsettings.cpp David Faure <faure@kde.org>
kiconeffect.cpp
kiconloader.cpp
kicontheme.cpp
-kinstance.cpp Stephan Kulow <coolo@kde.org>
+tdeinstance.cpp Stephan Kulow <coolo@kde.org>
kipc.cpp Lubos Lunak <l.lunak@kde.org>
kkey_x11.cpp Ellis Whitehead <ellis@kde.org>
kkeynative_x11.cpp Ellis Whitehead <ellis@kde.org>
@@ -48,27 +48,27 @@ tdemultipledrag.cpp David Faure <faure@kde.org>
knotifyclient.cpp
kpalette.cpp Waldo Bastian <bastian@kde.org>
kpixmapprovider.cpp Carsten Pfeiffer <pfeiffer@kde.org>
-kprocctrl.cpp Waldo Bastian <bastian@kde.org>
-kprocess.cpp Waldo Bastian <bastian@kde.org>
-kprocio.cpp Waldo Bastian <bastian@kde.org>
+tdeprocctrl.cpp Waldo Bastian <bastian@kde.org>
+tdeprocess.cpp Waldo Bastian <bastian@kde.org>
+tdeprocio.cpp Waldo Bastian <bastian@kde.org>
krandomsequence.cpp Waldo Bastian <bastian@kde.org>
kregexp.cpp
krfcdate.cpp Waldo Bastian <bastian@kde.org>
krootprop.cpp Lubos Lunak <l.lunak@kde.org>
ksavefile.cpp Waldo Bastian <bastian@kde.org>
tdeshortcut.cpp Ellis Whitehead <ellis@kde.org>
-ksimpleconfig.cpp Waldo Bastian <bastian@kde.org>
+tdesimpleconfig.cpp Waldo Bastian <bastian@kde.org>
ksocks.cpp
-kstandarddirs.cpp Waldo Bastian <bastian@kde.org>
+tdestandarddirs.cpp Waldo Bastian <bastian@kde.org>
tdestartupinfo.cpp Lubos Lunak <l.lunak@kde.org>
kstaticdeleter.cpp Stephan Kulow <coolo@kde.org>
tdestdaccel.cpp Ellis Whitehead <ellis@kde.org>
kstringhandler.cpp
tdesycoca.cpp Waldo Bastian <bastian@kde.org>
-tdesycocadict.cpp Waldo Bastian <bastian@kde.org>
+tdesycocadict.cpp Waldo Bastian <bastian@kde.org>
tdesycocafactory.cpp Waldo Bastian <bastian@kde.org>
tdetempfile.cpp Waldo Bastian <bastian@kde.org>
-kuniqueapplication.cpp Waldo Bastian <bastian@kde.org>
+tdeuniqueapplication.cpp Waldo Bastian <bastian@kde.org>
kurl.cpp Waldo Bastian <bastian@kde.org>
kurldrag.cpp David Faure <faure@kde.org>
twin.cpp Lubos Lunak <l.lunak@kde.org>
@@ -98,7 +98,7 @@ tdeconfigdialogmanager.cpp
tdeconfigskeleton.cpp
kdebugdcopiface.cpp Andreas Beckermann (b_mann@gmx.de) (copyright)
tdeversion.cpp
-kglobalaccel_win.cpp Ellis Whitehead <ellis@kde.org> (copyright)
+tdeglobalaccel_win.cpp Ellis Whitehead <ellis@kde.org> (copyright)
kkeyserver_x11.cpp
klockfile.cpp Waldo Bastian <bastian@kde.org> (copyright)
kmacroexpander.cpp
diff --git a/tdecore/Mainpage.dox b/tdecore/Mainpage.dox
index c275aa84e..4a74d242a 100644
--- a/tdecore/Mainpage.dox
+++ b/tdecore/Mainpage.dox
@@ -37,5 +37,5 @@ Some helper utilities: @gpl
*/
// DOXYGEN_EXCLUDE = malloc kde_file.h
-// DOXYGEN_SET_INPUT += @topdir@/kdemacros.h.cmake
+// DOXYGEN_SET_INPUT += @topdir@/tdemacros.h.cmake
// DOXYGEN_SET_PROJECT_NAME = TrinityCore
diff --git a/tdecore/Makefile.am b/tdecore/Makefile.am
index 58e74a010..0997aad45 100644
--- a/tdecore/Makefile.am
+++ b/tdecore/Makefile.am
@@ -37,21 +37,21 @@ lib_LTLIBRARIES = libtdefakes.la libtdecore.la
lib_LIBRARIES = libtdefakes_nonpic.a libtdefakes_pic.a
include_HEADERS = tdeconfig.h tdeconfigskeleton.h \
- tdeconfigdata.h ksimpleconfig.h tdeconfigdialogmanager.h \
- tdeconfigbase.h kdesktopfile.h kurl.h ksock.h tdeaboutdata.h \
- tdecmdlineargs.h tdeconfigbackend.h kapp.h tdeapplication.h kuniqueapp.h \
- kuniqueapplication.h kcharsets.h tdeversion.h kpty.h kprocess.h \
- kprocctrl.h tdelocale.h kicontheme.h kiconloader.h kdebug.h \
+ tdeconfigdata.h tdesimpleconfig.h tdeconfigdialogmanager.h \
+ tdeconfigbase.h tdedesktopfile.h kurl.h ksock.h tdeaboutdata.h \
+ tdecmdlineargs.h tdeconfigbackend.h tdeapplication.h \
+ tdeuniqueapplication.h kcharsets.h tdeversion.h kpty.h tdeprocess.h \
+ tdeprocctrl.h tdelocale.h kicontheme.h kiconloader.h kdebug.h \
twinmodule.h twin.h krootprop.h tdeshortcut.h kkeynative.h tdeaccel.h \
- kglobalaccel.h tdestdaccel.h tdeshortcutlist.h kcatalogue.h \
+ tdeglobalaccel.h tdestdaccel.h tdeshortcutlist.h kcatalogue.h \
kregexp.h kcompletion.h kstringhandler.h \
- kstddirs.h kstandarddirs.h tdeglobal.h tdeglobalsettings.h ksharedptr.h \
- kallocator.h kvmallocator.h kcrash.h krfcdate.h \
- kinstance.h kpalette.h kipc.h klibloader.h tdetempfile.h ksavefile.h \
+ tdestandarddirs.h tdeglobal.h tdeglobalsettings.h ksharedptr.h \
+ kallocator.h kvmallocator.h tdecrash.h krfcdate.h \
+ tdeinstance.h kpalette.h kipc.h klibloader.h tdetempfile.h ksavefile.h \
krandomsequence.h knotifyclient.h kiconeffect.h \
kaudioplayer.h kdcoppropertyproxy.h netwm.h tdeaccelmanager.h \
netwm_def.h kpixmapprovider.h kunload.h kstaticdeleter.h \
- kextsock.h kextendedsocket.h ksockaddr.h kprocio.h kasyncio.h \
+ kextsock.h kextendedsocket.h ksockaddr.h tdeprocio.h kasyncio.h \
kbufferedio.h kurldrag.h kmimesourcefactory.h kmdcodec.h ksocks.h \
tdesycoca.h tdesycocaentry.h tdesycocatype.h kxmessages.h tdestartupinfo.h \
klargefile.h tdemultipledrag.h kgenericfactory.h kgenericfactory.tcc \
@@ -59,7 +59,7 @@ include_HEADERS = tdeconfig.h tdeconfigskeleton.h \
kcalendarsystem.h kcalendarsystemfactory.h kmacroexpander.h \
kmanagerselection.h kmountpoint.h kuser.h klockfile.h \
kidna.h ktempdir.h kshell.h fixx11h.h kxerrorhandler.h tdelibs_export.h \
- kdemacros.h kde_file.h ktimezones.h
+ tdemacros.h kde_file.h ktimezones.h
libtdefakes_la_SOURCES = fakes.c vsnprintf.c
libtdefakes_la_LDFLAGS = -version-info 6:0:2
@@ -83,35 +83,35 @@ libtdefakes_pic.a: libtdefakes.la
noinst_HEADERS = tdeaccelaction.h tdeaccelbase.h tdeaccelprivate.h kckey.h \
kcompletion_private.h netwm_p.h \
- kglobalaccel_x11.h kglobalaccel_win.h kkeyserver_x11.h kkeyserver.h \
+ tdeglobalaccel_x11.h tdeglobalaccel_win.h kkeyserver_x11.h kkeyserver.h \
kregpriv.h tdeshortcutmenu.h tdesycocadict.h tdesycocafactory.h netsupp.h \
kcheckaccelerators.h kcalendarsystemgregorian.h \
kcalendarsystemhijri.h kcalendarsystemhebrew.h kcalendarsystemjalali.h \
kprotocolinfofactory.h kqiodevicegzip_p.h kiconloader_p.h
libtdecore_la_SOURCES = libintl.cpp tdeapplication.cpp \
- kdebug.cpp netwm.cpp tdeconfigbase.cpp tdeconfig.cpp ksimpleconfig.cpp \
- tdeconfigbackend.cpp kmanagerselection.cpp kdesktopfile.cpp \
- kstandarddirs.cpp ksock.cpp kpty.cpp kprocess.cpp kprocctrl.cpp \
+ kdebug.cpp netwm.cpp tdeconfigbase.cpp tdeconfig.cpp tdesimpleconfig.cpp \
+ tdeconfigbackend.cpp kmanagerselection.cpp tdedesktopfile.cpp \
+ tdestandarddirs.cpp ksock.cpp kpty.cpp tdeprocess.cpp tdeprocctrl.cpp \
tdelocale.cpp krfcdate.cpp kiconeffect.cpp kicontheme.cpp \
kiconloader.cpp twin.cpp twinmodule.cpp krootprop.cpp kcharsets.cpp \
kckey.cpp tdeshortcut.cpp kkeynative_x11.cpp kkeyserver_x11.cpp \
tdeaccelaction.cpp tdeshortcutmenu.cpp tdeaccelbase.cpp tdeaccel.cpp \
- kglobalaccel_x11.cpp kglobalaccel.cpp tdestdaccel.cpp tdeshortcutlist.cpp \
- kcrash.cpp kurl.cpp kregexp.cpp tdeglobal.cpp tdeglobalsettings.cpp \
+ tdeglobalaccel_x11.cpp tdeglobalaccel.cpp tdestdaccel.cpp tdeshortcutlist.cpp \
+ tdecrash.cpp kurl.cpp kregexp.cpp tdeglobal.cpp tdeglobalsettings.cpp \
kallocator.cpp kvmallocator.cpp kmimesourcefactory.cpp \
- kinstance.cpp kpalette.cpp kipc.cpp klibloader.cpp tdetempfile.cpp \
- kuniqueapplication.cpp tdeaccelmanager.cpp \
+ tdeinstance.cpp kpalette.cpp kipc.cpp klibloader.cpp tdetempfile.cpp \
+ tdeuniqueapplication.cpp tdeaccelmanager.cpp \
ksavefile.cpp krandomsequence.cpp kstringhandler.cpp kcompletion.cpp \
tdecmdlineargs.cpp tdeaboutdata.cpp kcompletionbase.cpp knotifyclient.cpp \
kaudioplayer.cpp kdcoppropertyproxy.cpp \
- ksockaddr.cpp kextsock.cpp netsupp.cpp kprocio.cpp kbufferedio.cpp \
+ ksockaddr.cpp kextsock.cpp netsupp.cpp tdeprocio.cpp kbufferedio.cpp \
kpixmapprovider.cpp kurldrag.cpp \
kmdcodec.cpp ksocks.cpp fakes.c vsnprintf.c \
tdesycoca.cpp tdesycocadict.cpp tdesycocafactory.cpp tdesycoca.skel \
kxmessages.cpp tdestartupinfo.cpp kcatalogue.cpp kasyncio.cpp \
- tdemultipledrag.cpp kstaticdeleter.cpp kappdcopiface.cpp \
- kappdcopiface.skel kclipboard.cpp kcheckaccelerators.cpp \
+ tdemultipledrag.cpp kstaticdeleter.cpp tdeappdcopinterface.cpp \
+ tdeappdcopinterface.skel kclipboard.cpp kcheckaccelerators.cpp \
tdeversion.cpp kdebugdcopiface.cpp kdebugdcopiface.skel \
kcalendarsystem.cpp kcalendarsystemgregorian.cpp \
kcalendarsystemhijri.cpp kcalendarsystemhebrew.cpp \
diff --git a/tdecore/README.exec b/tdecore/README.exec
index d47c808e9..6ddf1aef4 100644
--- a/tdecore/README.exec
+++ b/tdecore/README.exec
@@ -16,9 +16,9 @@ child of your process, e.g. because you want to catch stdout/stderr or need
to send it data via stdin. You should never use this to start other KDE
applications unless your application is called kgdb :-) If you need to
send/receive text like data to/from the process, you are probably better
-off with KProcIO
+off with TDEProcIO
-3. KProcIO
+3. TDEProcIO
Like TDEProcess. Unlike TDEProcess, this class actually makes it easy to
send data to and receive data from the process.
diff --git a/tdecore/README.kiosk b/tdecore/README.kiosk
index ae4f72d47..8ef01e8fe 100644
--- a/tdecore/README.kiosk
+++ b/tdecore/README.kiosk
@@ -1,25 +1,25 @@
In KDE3 a kiosk-framework has been introduced.
-One of the driving forces behind KDE is to put the user in control and
-give him or her a large amount of possibilities to adjust KDE to his or her
+One of the driving forces behind TDE is to put the user in control and
+give them a large amount of possibilities to adjust TDE to their
liking. However, in some situations it is required to reduce the possibilities
-of KDE, e.g. because the system is to be used for one or more specific
+of TDE, e.g. because the system is to be used for one or more specific
dedicated tasks only.
The kiosk-framework provides an easy way to disable certain features within
-KDE to create a more controlled environment.
+TDE to create a more controlled environment.
-KDE's kiosk-framework builds on KDE's configuration framework and adds a
+TDE's kiosk-framework builds on TDE's configuration framework and adds a
simple application API that applications can query to get authorisation
for certain operations.
-The KDE kiosk-framework should be used IN ADDITION to the standard UNIX
+The TDE kiosk-framework should be used IN ADDITION to the standard UNIX
security measures.
The configuration framework in KDE3
===================================
-Since the very beginning KDE makes use of file-hierarchy to store resources
+Since the very beginning TDE makes use of file-hierarchy to store resources
for its applications. Resources range from icons, wallpapers, fonts to
sounds, menu-descriptions and configuration files.
@@ -550,16 +550,16 @@ Some remarks:
matches "/srv" and not "/srv/www".
-KDE3 Resource Restrictions
+TDE Resource Restrictions
==========================
-Most KDE applications make use of additional resource files that are typically
-located in directories under $TDEDIR/share. By default KDE allows users to
+Most TDE applications make use of additional resource files that are typically
+located in directories under $TDEDIR/share. By default TDE allows users to
override any of these resources by placing files in the same location
under $TDEHOME/share. For example, Konsole stores profiles under
$TDEDIR/share/apps/konsole and users can add additional profiles by
installing files in $TDEHOME/share/apps/konsole.
-KDE3 Resource Restrictions make it possible to restrict the lookup of files
+TDE Resource Restrictions make it possible to restrict the lookup of files
to directories outside of $TDEHOME only.
The following resources are defined:
@@ -642,14 +642,14 @@ The following syntax is also supported:
Name[$ei]=${USER}
-KDE3 Kiosk Application API
+TDE Kiosk Application API
==========================
Three new methods have been added to TDEApplication:
-- bool authorize(QString action); // Generic actions
-- bool authorizeTDEAction(QString action); // For TDEActions exclusively
-- bool authorizeURLAction(QString, referringURL, destinationURL) // URL Handling
+- bool authorize(TQString action); // Generic actions
+- bool authorizeTDEAction(TQString action); // For TDEActions exclusively
+- bool authorizeURLAction(TQString, referringURL, destinationURL) // URL Handling
Automatic Logout
================
diff --git a/tdecore/README.tdestartupinfo b/tdecore/README.tdestartupinfo
index 71e786b0d..e28bc99ed 100644
--- a/tdecore/README.tdestartupinfo
+++ b/tdecore/README.tdestartupinfo
@@ -119,7 +119,7 @@ Sending the application startup notification information :
it's done by classes like KRun ). See e.g. KRun sources for details.
During the starting of the application, the info may need some updating
( e.g. right after starting the app, the PID with hostname may be sent,
-or a PID change when KUniqueApplication forks into background ).
+or a PID change when TDEUniqueApplication forks into background ).
When it's detected that the started process exited, it an ASN info
about the finished process should be sent. Since the application may
have forked into background, the finish info should include the PID
@@ -143,7 +143,7 @@ Ideally, the application should read it, and set a window property
called _TDE_STARTUP_ID ( type XA_STRING ) at least on its first mapped
toplevel window to this value. It should also unset it, so it doesn't get
propagated to other applications started from it. It should also
-update the ASN info when necessary, e.g. when KUniqueApplication
+update the ASN info when necessary, e.g. when TDEUniqueApplication
forks into background, it sends the PID change. That's how compliant
applications should work, and this support for ASN should be provided
by toolkits. All TDE application should be compliant by now, since
@@ -192,7 +192,7 @@ There are 3 types of messages :
- change: message
- this message is like new: message, but it's only for updating existing
ASN info, if there's no ASN info for the given identification, it won't
- be created. This is used e.g. in KUniqueApplication when it forks
+ be created. This is used e.g. in TDEUniqueApplication when it forks
into background and sends info about the PID change - it should update
any existing ASN info, but mustn't create a new one, otherwise there
could appear ASN even for applications which shouldn't have ASN
diff --git a/tdecore/configure.in.in b/tdecore/configure.in.in
index d7ef1cd08..8dde23486 100644
--- a/tdecore/configure.in.in
+++ b/tdecore/configure.in.in
@@ -1,4 +1,4 @@
-dnl Compile in the exec prefix to help kstddirs in finding dynamic libs
+dnl Compile in the exec prefix to help tdestandarddirs in finding dynamic libs
AC_DEFINE_UNQUOTED(__KDE_EXECPREFIX, "$exec_prefix", [execprefix or NONE if not set, for libloading])
dnl Compile in kde_bindir to safely find tdesu_stub.
@@ -169,7 +169,7 @@ AC_CHECK_HEADERS(sys/mount.h)
dnl AC_OUTPUT(tdecore/tde-config.cpp)
-AM_CONFIG_HEADER(tdecore/kdemacros.h)
+AM_CONFIG_HEADER(tdecore/tdemacros.h)
SVGICONS=
diff --git a/tdecore/fixx11h.h b/tdecore/fixx11h.h
index e572335a1..eb6266444 100644
--- a/tdecore/fixx11h.h
+++ b/tdecore/fixx11h.h
@@ -16,7 +16,7 @@
symbols may now refer to different variables
(e.g. if X11 #defined NoButton, after this file
is included NoButton would no longer be X11's
- NoButton, but Qt::NoButton instead). At this time,
+ NoButton, but TQt::NoButton instead). At this time,
there's no conflict known that could cause problems.
The original X11 symbols are still accessible
diff --git a/tdecore/generate_keys.sh b/tdecore/generate_keys.sh
index d0fea1cdd..61987b57e 100755
--- a/tdecore/generate_keys.sh
+++ b/tdecore/generate_keys.sh
@@ -18,7 +18,7 @@ sed -n '/enum Key/!d
| sed -n 's/\s*Key_/{ "/
s/,.*$/ },/
s/ =/",/
- s/Key_/Qt::Key_/
+ s/Key_/TQt::Key_/
$s/.*/& }/
p' \
> kckey_a
diff --git a/tdecore/kapp.h b/tdecore/kapp.h
deleted file mode 100644
index 5d48a852f..000000000
--- a/tdecore/kapp.h
+++ /dev/null
@@ -1,6 +0,0 @@
-// kapp.h is the old name. Use #include <tdeapplication.h> from now on
-#ifdef KDE_NO_COMPAT
-#error include <tdeapplication.h> instead of <kapp.h>
-#else
-#include <tdeapplication.h>
-#endif
diff --git a/tdecore/kapplication_win.cpp b/tdecore/kapplication_win.cpp
index 38bafaef8..0da2ced26 100644
--- a/tdecore/kapplication_win.cpp
+++ b/tdecore/kapplication_win.cpp
@@ -18,12 +18,12 @@
*/
#include <tdeapplication.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdelocale.h>
#include <kurl.h>
#include "kcheckaccelerators.h"
-#include "kappdcopiface.h"
+#include "tdeappdcopinterface.h"
#include <qassistantclient.h>
#include <tqdir.h>
@@ -46,12 +46,12 @@ void TDEApplication_init_windows(bool /*GUIenabled*/)
+ "/LC_MESSAGES/qt_" + TDEGlobal::locale()->language() + ".qm" );
QTranslator *qt_transl = new QTranslator();
if (qt_transl->load( qt_transl_file, ""))
- kapp->installTranslator( qt_transl );
+ tdeApp->installTranslator( qt_transl );
else
delete qt_transl;
}
-//unsafe; create kapplication_p.h instead!
+//unsafe; create tdeapplication_p.h instead!
typedef void* IceIOErrorHandler;
class TDEApplicationPrivate
@@ -69,7 +69,7 @@ public:
TQString geometry_arg;
TQCString startup_id;
TQTimer* app_started_timer;
- KAppDCOPInterface *m_KAppDCOPInterface;
+ TDEAppDCOPInterface *m_TDEAppDCOPInterface;
bool session_save;
QAssistantClient* qassistantclient;
};
diff --git a/tdecore/kasyncio.h b/tdecore/kasyncio.h
index 88b904a55..bd1ca41c2 100644
--- a/tdecore/kasyncio.h
+++ b/tdecore/kasyncio.h
@@ -25,10 +25,6 @@
#include <tqiodevice.h>
#include "tdelibs_export.h"
-#ifdef Q_MOC_RUN
-#define USE_QT4
-#endif // Q_MOC_RUN
-
class KAsyncIOPrivate;
/**
* Asynchronous I/O Support
@@ -39,14 +35,9 @@ class KAsyncIOPrivate;
* @author Thiago Macieira <thiago.macieira@kdemail.net>
* @short Asynchronous I/O support
*/
-class TDECORE_EXPORT KAsyncIO:
-#ifdef USE_QT4
-#else // USE_QT4
-public TQObject,
-#endif // USE_QT4
-public TQIODevice
+class TDECORE_EXPORT KAsyncIO: public TQObject, public TQIODevice
{
- Q_OBJECT
+ TQ_OBJECT
protected:
KAsyncIO() // cannot be accessed externally
diff --git a/tdecore/kaudioplayer.h b/tdecore/kaudioplayer.h
index 327713e6d..ce26a1e9a 100644
--- a/tdecore/kaudioplayer.h
+++ b/tdecore/kaudioplayer.h
@@ -48,13 +48,13 @@ class KAudioPlayerPrivate;
*
* \code
* KAudioPlayer player("/var/share/foo.wav");
- * connect(&button, TQT_SIGNAL(clicked()), &player, TQT_SLOT(play()));
+ * connect(&button, TQ_SIGNAL(clicked()), &player, TQ_SLOT(play()));
* \endcode
*
*/
//REVISED: hausmann
class TDECORE_EXPORT KAudioPlayer : public TQObject {
-Q_OBJECT
+TQ_OBJECT
public:
/**
* Constructor.
diff --git a/tdecore/kbufferedio.cpp b/tdecore/kbufferedio.cpp
index 7a080ec68..d1ba6dcf2 100644
--- a/tdecore/kbufferedio.cpp
+++ b/tdecore/kbufferedio.cpp
@@ -111,22 +111,12 @@ bool TDEBufferedIO::setBufferSize(int rsize, int wsize /* = -2 */)
return true;
}
-#ifdef USE_QT3
int TDEBufferedIO::bytesAvailable() const
-#endif // USE_QT3
-#ifdef USE_QT4
-qint64 TDEBufferedIO::bytesAvailable() const
-#endif // USE_QT4
{
return readBufferSize();
}
-#ifdef USE_QT3
int TDEBufferedIO::bytesToWrite() const
-#endif // USE_QT3
-#ifdef USE_QT4
-qint64 TDEBufferedIO::bytesToWrite() const
-#endif // USE_QT4
{
return writeBufferSize();
}
diff --git a/tdecore/kbufferedio.h b/tdecore/kbufferedio.h
index f00ab52b6..f51b46a60 100644
--- a/tdecore/kbufferedio.h
+++ b/tdecore/kbufferedio.h
@@ -55,7 +55,7 @@ class TDEBufferedIOPrivate;
*/
class TDECORE_EXPORT TDEBufferedIO: public KAsyncIO
{
- Q_OBJECT
+ TQ_OBJECT
protected:
@@ -118,12 +118,7 @@ public:
* Returns the number of bytes available for reading in the read buffer
* @return the number of bytes available for reading
*/
-#ifdef USE_QT3
virtual int bytesAvailable() const;
-#endif // USE_QT3
-#ifdef USE_QT4
- virtual qint64 bytesAvailable() const;
-#endif // USE_QT4
/**
* Waits for more data to be available and returns the amount of available data then.
@@ -137,12 +132,7 @@ public:
* Returns the number of bytes yet to write, still in the write buffer
* @return the number of unwritten bytes in the write buffer
*/
-#ifdef USE_QT3
virtual int bytesToWrite() const;
-#endif // USE_QT3
-#ifdef USE_QT4
- virtual qint64 bytesToWrite() const;
-#endif // USE_QT4
/**
* Checks whether there is enough data in the buffer to read a line
diff --git a/tdecore/kcalendarsystemgregorian.cpp b/tdecore/kcalendarsystemgregorian.cpp
index 9d4d14661..d4f53fc39 100644
--- a/tdecore/kcalendarsystemgregorian.cpp
+++ b/tdecore/kcalendarsystemgregorian.cpp
@@ -58,7 +58,7 @@ int KCalendarSystemGregorian::weeksInYear(int year) const
// If the last day of the year is in the first week, we have to check the
// week before
if ( temp.weekNumber() == 1 )
- temp = TQT_TQDATE_OBJECT(temp.addDays(-7));
+ temp = temp.addDays(-7);
return temp.weekNumber();
}
@@ -221,17 +221,17 @@ bool KCalendarSystemGregorian::setYMD(TQDate & date, int y, int m, int d) const
TQDate KCalendarSystemGregorian::addYears(const TQDate & date, int nyears) const
{
- return TQT_TQDATE_OBJECT(date.addYears(nyears));
+ return date.addYears(nyears);
}
TQDate KCalendarSystemGregorian::addMonths(const TQDate & date, int nmonths) const
{
- return TQT_TQDATE_OBJECT(date.addMonths(nmonths));
+ return date.addMonths(nmonths);
}
TQDate KCalendarSystemGregorian::addDays(const TQDate & date, int ndays) const
{
- return TQT_TQDATE_OBJECT(date.addDays(ndays));
+ return date.addDays(ndays);
}
TQString KCalendarSystemGregorian::weekDayName(int col, bool shortName) const
diff --git a/tdecore/kcalendarsystemhebrew.cpp b/tdecore/kcalendarsystemhebrew.cpp
index 2f0aa111a..e0737c5b3 100644
--- a/tdecore/kcalendarsystemhebrew.cpp
+++ b/tdecore/kcalendarsystemhebrew.cpp
@@ -306,7 +306,7 @@ int KCalendarSystemHebrew::weeksInYear(int year) const
int nWeekNumber = weekNumber(temp);
if(nWeekNumber == 1) // last week belongs to next year
{
- temp = TQT_TQDATE_OBJECT(temp.addDays(-7));
+ temp = temp.addDays(-7);
nWeekNumber = weekNumber(temp);
}
@@ -574,7 +574,7 @@ int KCalendarSystemHebrew::weekDayOfPray() const
// Ok
TQDate KCalendarSystemHebrew::addDays( const TQDate & date, int ndays ) const
{
- return TQT_TQDATE_OBJECT(date.addDays( ndays ));
+ return date.addDays( ndays );
}
// Ok
diff --git a/tdecore/kcalendarsystemhijri.cpp b/tdecore/kcalendarsystemhijri.cpp
index cc66805e0..ef94b590f 100644
--- a/tdecore/kcalendarsystemhijri.cpp
+++ b/tdecore/kcalendarsystemhijri.cpp
@@ -539,7 +539,7 @@ int KCalendarSystemHijri::weekDayOfPray() const
TQDate KCalendarSystemHijri::addDays( const TQDate & date, int ndays ) const
{
- return TQT_TQDATE_OBJECT(date.addDays( ndays ));
+ return date.addDays( ndays );
}
TQDate KCalendarSystemHijri::addMonths( const TQDate & date, int nmonths ) const
diff --git a/tdecore/kcalendarsystemjalali.cpp b/tdecore/kcalendarsystemjalali.cpp
index 631693e45..3c71ca442 100644
--- a/tdecore/kcalendarsystemjalali.cpp
+++ b/tdecore/kcalendarsystemjalali.cpp
@@ -304,7 +304,7 @@ TQDate KCalendarSystemJalali::addMonths( const TQDate & date, int nmonths ) cons
TQDate KCalendarSystemJalali::addDays( const TQDate & date, int ndays ) const
{
- return TQT_TQDATE_OBJECT(date.addDays( ndays ));
+ return date.addDays( ndays );
}
int KCalendarSystemJalali::monthsInYear( const TQDate & date ) const
diff --git a/tdecore/kcatalogue.cpp b/tdecore/kcatalogue.cpp
index 24d0193b2..d91338d1f 100644
--- a/tdecore/kcatalogue.cpp
+++ b/tdecore/kcatalogue.cpp
@@ -24,7 +24,7 @@
#include <kdebug.h>
#include "kcatalogue.h"
-#include "kstandarddirs.h"
+#include "tdestandarddirs.h"
char *k_nl_find_msg(struct kde_loaded_l10nfile *domain_file,
const char *msgid);
diff --git a/tdecore/kcharsets.cpp b/tdecore/kcharsets.cpp
index 3483039a7..47053223f 100644
--- a/tdecore/kcharsets.cpp
+++ b/tdecore/kcharsets.cpp
@@ -372,13 +372,13 @@ TQChar KCharsets::fromEntity(const TQString &str)
TQChar res = TQChar::null;
int pos = 0;
- if(str[pos] == (QChar)'&') pos++;
+ if(str[pos] == (TQChar)'&') pos++;
// Check for '&#000' or '&#x0000' sequence
- if (str[pos] == (QChar)'#' && str.length()-pos > 1) {
+ if (str[pos] == (TQChar)'#' && str.length()-pos > 1) {
bool ok;
pos++;
- if (str[pos] == (QChar)'x' || str[pos] == (QChar)'X') {
+ if (str[pos] == (TQChar)'x' || str[pos] == (TQChar)'X') {
pos++;
// '&#x0000', hexadeciaml character reference
TQString tmp(str.unicode()+pos, str.length()-pos);
@@ -412,7 +412,7 @@ TQChar KCharsets::fromEntity(const TQString &str, int &len)
{
TQString tmp = str.left(len);
TQChar res = fromEntity(tmp);
- if( res != (QChar)TQChar::null ) return res;
+ if( res != (TQChar)TQChar::null ) return res;
len--;
}
return TQChar::null;
@@ -437,13 +437,13 @@ TQString KCharsets::resolveEntities( const TQString &input )
for ( ; p < end; ++p ) {
const TQChar ch = *p;
- if ( ch == (QChar)'&' ) {
+ if ( ch == (TQChar)'&' ) {
ampersand = p;
scanForSemicolon = true;
continue;
}
- if ( ch != (QChar)';' || scanForSemicolon == false )
+ if ( ch != (TQChar)';' || scanForSemicolon == false )
continue;
assert( ampersand );
diff --git a/tdecore/kcheckaccelerators.cpp b/tdecore/kcheckaccelerators.cpp
index 306591e67..93ed7f86a 100644
--- a/tdecore/kcheckaccelerators.cpp
+++ b/tdecore/kcheckaccelerators.cpp
@@ -89,7 +89,7 @@ KCheckAccelerators::KCheckAccelerators( TQObject* parent )
}
alwaysShow = TDEGlobal::config()->readBoolEntry( "AlwaysShowCheckAccelerators", false );
autoCheck = TDEGlobal::config()->readBoolEntry( "AutoCheckAccelerators", true );
- connect( &autoCheckTimer, TQT_SIGNAL( timeout()), TQT_SLOT( autoCheckSlot()));
+ connect( &autoCheckTimer, TQ_SIGNAL( timeout()), TQ_SLOT( autoCheckSlot()));
}
bool KCheckAccelerators::eventFilter( TQObject * , TQEvent * e)
@@ -99,11 +99,11 @@ bool KCheckAccelerators::eventFilter( TQObject * , TQEvent * e)
switch ( e->type() ) { // just simplify debuggin
case TQEvent::Accel:
- if ( key && (TQT_TQKEYEVENT(e)->key() == key) ) {
+ if ( key && (static_cast<TQKeyEvent*>(e)->key() == key) ) {
block = true;
checkAccelerators( false );
block = false;
- TQT_TQKEYEVENT(e)->accept();
+ static_cast<TQKeyEvent*>(e)->accept();
return true;
}
break;
@@ -153,11 +153,11 @@ void KCheckAccelerators::createDialog(TQWidget *actWin, bool automatic)
TQCheckBox* disableAutoCheck = NULL;
if( automatic ) {
disableAutoCheck = new TQCheckBox( i18n( "&Disable automatic checking" ), drklash );
- connect(disableAutoCheck, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotDisableCheck(bool)));
+ connect(disableAutoCheck, TQ_SIGNAL(toggled(bool)), TQ_SLOT(slotDisableCheck(bool)));
}
TQPushButton* btnClose = new TQPushButton( i18n( "&Close" ), drklash );
btnClose->setDefault( true );
- connect( btnClose, TQT_SIGNAL( clicked() ), drklash, TQT_SLOT( close() ) );
+ connect( btnClose, TQ_SIGNAL( clicked() ), drklash, TQ_SLOT( close() ) );
if (disableAutoCheck)
disableAutoCheck->setFocus();
else
@@ -173,7 +173,7 @@ void KCheckAccelerators::slotDisableCheck(bool on)
void KCheckAccelerators::checkAccelerators( bool automatic )
{
- TQWidget* actWin = TQT_TQWIDGET(tqApp->activeWindow());
+ TQWidget* actWin = tqApp->activeWindow();
if ( !actWin )
return;
diff --git a/tdecore/kcheckaccelerators.h b/tdecore/kcheckaccelerators.h
index 00adf4fd1..d16286c26 100644
--- a/tdecore/kcheckaccelerators.h
+++ b/tdecore/kcheckaccelerators.h
@@ -65,7 +65,7 @@ class TQTextView;
*/
class TDECORE_EXPORT KCheckAccelerators : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
* Creates a KCheckAccelerators instance for the given object.
diff --git a/tdecore/kckey.cpp b/tdecore/kckey.cpp
index 0feea1d49..95232f0d7 100644
--- a/tdecore/kckey.cpp
+++ b/tdecore/kckey.cpp
@@ -76,7 +76,7 @@ const KKeys kde_KKEYS[NB_KEYS] = {
{ "Direction_L", 0x1059 },
{ "Direction_R", 0x1060 },
{ "Space", 0x20 }, // translated
- { "Any", Qt::Key_Space },
+ { "Any", TQt::Key_Space },
{ "Exclam", 0x21 }, // translated
{ "QuoteDbl", 0x22 },
{ "NumberSign", 0x23 }, // translated
diff --git a/tdecore/kclipboard.cpp b/tdecore/kclipboard.cpp
index 8ab23cccc..369f88c3d 100644
--- a/tdecore/kclipboard.cpp
+++ b/tdecore/kclipboard.cpp
@@ -97,7 +97,7 @@ bool TDEClipboardSynchronizer::s_blocked = false;
TDEClipboardSynchronizer * TDEClipboardSynchronizer::self()
{
if ( !s_self )
- s_self = new TDEClipboardSynchronizer( TQT_TQOBJECT(kapp), "KDE Clipboard" );
+ s_self = new TDEClipboardSynchronizer( tdeApp, "KDE Clipboard" );
return s_self;
}
@@ -126,11 +126,11 @@ void TDEClipboardSynchronizer::setupSignals()
TQClipboard *clip = TQApplication::clipboard();
disconnect( clip, NULL, this, NULL );
if( s_sync )
- connect( clip, TQT_SIGNAL( selectionChanged() ),
- TQT_SLOT( slotSelectionChanged() ));
+ connect( clip, TQ_SIGNAL( selectionChanged() ),
+ TQ_SLOT( slotSelectionChanged() ));
if( s_reverse_sync )
- connect( clip, TQT_SIGNAL( dataChanged() ),
- TQT_SLOT( slotClipboardChanged() ));
+ connect( clip, TQ_SIGNAL( dataChanged() ),
+ TQ_SLOT( slotClipboardChanged() ));
}
void TDEClipboardSynchronizer::slotSelectionChanged()
diff --git a/tdecore/kclipboard.h b/tdecore/kclipboard.h
index 8ed8dcc91..df45027f1 100644
--- a/tdecore/kclipboard.h
+++ b/tdecore/kclipboard.h
@@ -35,7 +35,7 @@
*/
class TDECORE_EXPORT TDEClipboardSynchronizer : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/** Systray widget for manipulating the clipboard. */
diff --git a/tdecore/kcompletion.h b/tdecore/kcompletion.h
index 2bce648fb..80f61d8ad 100644
--- a/tdecore/kcompletion.h
+++ b/tdecore/kcompletion.h
@@ -135,7 +135,7 @@ class TDECORE_EXPORT TDECompletion : public TQObject
TQ_PROPERTY( CompOrder order READ order WRITE setOrder )
TQ_PROPERTY( bool ignoreCase READ ignoreCase WRITE setIgnoreCase )
TQ_PROPERTY( TQStringList items READ items WRITE setItems )
- Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -873,7 +873,7 @@ public:
* the key-binding simply simply @p sum up the values of the
* modifier and the actual key. For example, to use CTRL+E as
* a key binding for one of the items, you would simply supply
- * @p "Qt::CtrlButton + Qt::Key_E" as the second argument to this
+ * @p "TQt::CtrlButton + TQt::Key_E" as the second argument to this
* function.
*
* @param item the feature whose key-binding needs to be set:
diff --git a/tdecore/kdebug.areas b/tdecore/kdebug.areas
index 24c87f524..e71455362 100644
--- a/tdecore/kdebug.areas
+++ b/tdecore/kdebug.areas
@@ -18,7 +18,7 @@
171 tdecore (KSocks)
172 tdecore (TDEStartupInfo)
173 tdecore (TDELocale)
-174 tdecore (KProcIO)
+174 tdecore (TDEProcIO)
175 tdecore (TDEProcess)
176 tdecore (KWin)
177 tdecore (TDEConfigSkeleton)
diff --git a/tdecore/kdebug.cpp b/tdecore/kdebug.cpp
index afd925190..18af9c030 100644
--- a/tdecore/kdebug.cpp
+++ b/tdecore/kdebug.cpp
@@ -28,8 +28,8 @@
#include "tdeapplication.h"
#include "tdeglobal.h"
-#include "kinstance.h"
-#include "kstandarddirs.h"
+#include "tdeinstance.h"
+#include "tdestandarddirs.h"
#include <tqmessagebox.h>
#include <tdelocale.h>
@@ -289,7 +289,7 @@ static void kDebugBackend( unsigned short nLevel, unsigned int nArea, const char
// If the application doesn't have a TQApplication object it can't use
// a messagebox, as well as in case of GUI is disabled.
- if ( nOutput == 1 && ( !kapp || !kapp->guiEnabled()) ) {
+ if ( nOutput == 1 && ( !tdeApp || !tdeApp->guiEnabled()) ) {
nOutput = 2;
} else if ( nOutput == 4 && nLevel != KDEBUG_FATAL ) {
return;
@@ -333,7 +333,7 @@ static void kDebugBackend( unsigned short nLevel, unsigned int nArea, const char
break;
}
TQFile aOutputFile( kDebug_data->config->readPathEntry(aKey, "kdebug.dbg") );
- aOutputFile.open( (TQIODevice_OpenModeFlag)((int)IO_WriteOnly | (int)IO_Append | (int)IO_Raw) );
+ aOutputFile.open( IO_WriteOnly | IO_Append | IO_Raw );
aOutputFile.writeBlock( buf, strlen( buf ) );
aOutputFile.close();
break;
@@ -343,7 +343,7 @@ static void kDebugBackend( unsigned short nLevel, unsigned int nArea, const char
// Since we are in tdecore here, we cannot use KMsgBox and use
// TQMessageBox instead
if ( !kDebug_data->aAreaName.isEmpty() )
- aCaption += TQString("(%1)").arg( QString(kDebug_data->aAreaName) );
+ aCaption += TQString("(%1)").arg( TQString(kDebug_data->aAreaName) );
TQMessageBox::warning( 0L, aCaption, data, i18n("&OK") );
break;
}
@@ -432,7 +432,7 @@ kdbgstream& kdbgstream::operator<< (TQChar ch)
output += "\\x" + TQString::number( ch.unicode(), 16 ).rightJustify(2, '0');
else {
output += ch;
- if (ch == QChar('\n')) flush();
+ if (ch == TQChar('\n')) flush();
}
return *this;
}
@@ -471,7 +471,7 @@ kdbgstream& kdbgstream::operator<< (const TQWidget* widget)
return *this;
}
output += string;
- if (output.at(output.length() -1 ) == QChar('\n'))
+ if (output.at(output.length() -1 ) == TQChar('\n'))
{
flush();
}
@@ -626,7 +626,7 @@ asymbol** bfdLoadSymtab (bfd *abfd) {
long symCount; // count of entries in symbol table
long symtab_sz; // size of the table
asymbol** rv;
- bfd_boolean dynamic = FALSE;
+ bool dynamic = false;
// make shure the file has symbol table
if ((bfd_get_file_flags (abfd) & HAS_SYMS) == 0){
@@ -637,7 +637,7 @@ asymbol** bfdLoadSymtab (bfd *abfd) {
symtab_sz = bfd_get_symtab_upper_bound (abfd);
if (symtab_sz == 0) {
symtab_sz = bfd_get_dynamic_symtab_upper_bound (abfd);
- dynamic = TRUE;
+ dynamic = true;
}
if (symtab_sz < 0) {
return 0;
@@ -693,10 +693,15 @@ void bfdFillAdditionalFunctionsInfo(BacktraceFunctionInfo &func) {
// found source file and line for given address
for (asection *sect = abfd->sections; sect != NULL; sect = sect->next) {
-
+#ifdef HAVE_LIBBFD_2_34_API
+ if (bfd_section_flags(sect) & SEC_ALLOC) {
+ bfd_vma sectStart = bfd_section_vma(sect);
+ bfd_vma sectEnd = sectStart + bfd_section_size(sect);
+#else // HAVE_LIBBFD_2_34_API
if (bfd_get_section_flags(abfd, sect) & SEC_ALLOC) {
bfd_vma sectStart = bfd_get_section_vma(abfd, sect);
bfd_vma sectEnd = sectStart + bfd_section_size(abfd, sect);
+#endif // HAVE_LIBBFD_2_34_API
if (sectStart <= func.offset && func.offset < sectEnd) {
bfd_vma sectOffset = func.offset - sectStart;
const char* functionName;
@@ -759,7 +764,13 @@ TQString formatBacktrace(void *addr) {
// NOTE: if somebody would compile for some non-linux-glibc platform
// check if dladdr function is avalible there
Dl_info info;
- dladdr(func.addr, &info); // obtain information about the function.
+
+ // obtain information about the function.
+#ifdef Q_OS_SOLARIS
+ dladdr((void *)func.addr, &info);
+#else
+ dladdr(func.addr, &info);
+#endif /* Solaris */
func.fileName = info.dli_fname;
func.base = info.dli_fbase;
@@ -816,7 +827,7 @@ TQString kdBacktrace(int levels)
if (levels) {
for (int i = 0; i < levels; ++i) {
- rv += QString().sprintf("#%-2d ", i);
+ rv += TQString().sprintf("#%-2d ", i);
rv += formatBacktrace(trace[i]);
rv += '\n';
}
diff --git a/tdecore/kextsock.cpp b/tdecore/kextsock.cpp
index b9a6efb10..f78464287 100644
--- a/tdecore/kextsock.cpp
+++ b/tdecore/kextsock.cpp
@@ -222,12 +222,7 @@ KExtendedSocket::~KExtendedSocket()
delete d;
}
-#ifdef USE_QT3
void KExtendedSocket::reset()
-#endif // USE_QT3
-#ifdef USE_QT4
-bool KExtendedSocket::reset()
-#endif // USE_QT4
{
closeNow();
release();
@@ -644,7 +639,7 @@ bool KExtendedSocket::setBufferSize(int rsize, int wsize)
if (d->qsnIn == NULL)
{
d->qsnIn = new TQSocketNotifier(sockfd, TQSocketNotifier::Read);
- TQObject::connect(d->qsnIn, TQT_SIGNAL(activated(int)), this, TQT_SLOT(socketActivityRead()));
+ TQObject::connect(d->qsnIn, TQ_SIGNAL(activated(int)), this, TQ_SLOT(socketActivityRead()));
d->qsnIn->setEnabled(true);
}
@@ -692,7 +687,7 @@ bool KExtendedSocket::setBufferSize(int rsize, int wsize)
if (d->qsnOut == NULL)
{
d->qsnOut = new TQSocketNotifier(sockfd, TQSocketNotifier::Write);
- TQObject::connect(d->qsnOut, TQT_SIGNAL(activated(int)), this, TQT_SLOT(socketActivityWrite()));
+ TQObject::connect(d->qsnOut, TQ_SIGNAL(activated(int)), this, TQ_SLOT(socketActivityWrite()));
// if the class is being created now, there's nothing to write yet
// so socketActivityWrite() will get called once and disable
// the notifier
@@ -707,7 +702,7 @@ bool KExtendedSocket::setBufferSize(int rsize, int wsize)
if (d->emitWrite && d->qsnOut == NULL)
{
d->qsnOut = new TQSocketNotifier(sockfd, TQSocketNotifier::Write);
- TQObject::connect(d->qsnOut, TQT_SIGNAL(activated(int)), this, TQT_SLOT(socketActivityWrite()));
+ TQObject::connect(d->qsnOut, TQ_SIGNAL(activated(int)), this, TQ_SLOT(socketActivityWrite()));
}
return true;
@@ -788,8 +783,8 @@ int KExtendedSocket::startAsyncLookup()
d->resRemote.setFlags(flags);
d->resRemote.setFamily(familyMask);
d->resRemote.setSocketType(socktype);
- TQObject::connect(&d->resRemote, TQT_SIGNAL(finished(KResolverResults)),
- this, TQT_SLOT(dnsResultsReady()));
+ TQObject::connect(&d->resRemote, TQ_SIGNAL(finished(KResolverResults)),
+ this, TQ_SLOT(dnsResultsReady()));
if (!d->resRemote.start())
{
@@ -805,8 +800,8 @@ int KExtendedSocket::startAsyncLookup()
d->resLocal.setFlags(flags);
d->resLocal.setFamily(familyMask);
d->resLocal.setSocketType(socktype);
- TQObject::connect(&d->resLocal, TQT_SIGNAL(finished(KResolverResults)),
- this, TQT_SLOT(dnsResultsReady()));
+ TQObject::connect(&d->resLocal, TQ_SIGNAL(finished(KResolverResults)),
+ this, TQ_SLOT(dnsResultsReady()));
if (!d->resLocal.start())
{
@@ -901,7 +896,7 @@ int KExtendedSocket::listen(int N)
{
d->status = listening;
d->qsnIn = new TQSocketNotifier(sockfd, TQSocketNotifier::Read);
- TQObject::connect(d->qsnIn, TQT_SIGNAL(activated(int)), this, TQT_SLOT(socketActivityRead()));
+ TQObject::connect(d->qsnIn, TQ_SIGNAL(activated(int)), this, TQ_SLOT(socketActivityRead()));
}
return retval == -1 ? -1 : 0;
}
@@ -1223,7 +1218,7 @@ int KExtendedSocket::startAsyncConnect()
// signal lookupFinished to do connection
if (d->status < lookupDone)
{
- TQObject::connect(this, TQT_SIGNAL(lookupFinished(int)), this, TQT_SLOT(startAsyncConnectSlot()));
+ TQObject::connect(this, TQ_SIGNAL(lookupFinished(int)), this, TQ_SLOT(startAsyncConnectSlot()));
if (d->status < lookupInProgress)
return startAsyncLookup();
else
@@ -1233,7 +1228,7 @@ int KExtendedSocket::startAsyncConnect()
// here we have d->status >= lookupDone and <= connecting
// we can do our connection
d->status = connecting;
- TQGuardedPtr<TQObject> p = TQT_TQOBJECT(this);
+ TQGuardedPtr<TQObject> p = this;
connectionEvent();
if (!p)
return -1; // We have been deleted.
@@ -1262,7 +1257,7 @@ void KExtendedSocket::cancelAsyncConnect()
d->status = lookupDone;
}
-bool KExtendedSocket::open(TQ_OpenMode mode)
+bool KExtendedSocket::open(int mode)
{
if (mode != IO_Raw | IO_ReadWrite)
return false; // invalid open mode
@@ -1436,7 +1431,7 @@ void KExtendedSocket::flush()
}
-TQT_TQIO_LONG KExtendedSocket::tqreadBlock(char *data, TQT_TQIO_ULONG maxlen)
+TQ_LONG KExtendedSocket::readBlock(char *data, TQ_ULONG maxlen)
{
cleanError();
if (d->status < connected || d->flags & passiveSocket)
@@ -1481,7 +1476,7 @@ TQT_TQIO_LONG KExtendedSocket::tqreadBlock(char *data, TQT_TQIO_ULONG maxlen)
return retval;
}
-TQT_TQIO_LONG KExtendedSocket::tqwriteBlock(const char *data, TQT_TQIO_ULONG len)
+TQ_LONG KExtendedSocket::writeBlock(const char *data, TQ_ULONG len)
{
cleanError();
if (d->status < connected || d->status >= closing || d->flags & passiveSocket)
@@ -1557,12 +1552,7 @@ int KExtendedSocket::unreadBlock(const char *, uint)
return -1;
}
-#ifdef USE_QT3
int KExtendedSocket::bytesAvailable() const
-#endif // USE_QT3
-#ifdef USE_QT4
-qint64 KExtendedSocket::bytesAvailable() const
-#endif // USE_QT4
{
if (d->status < connected || d->flags & passiveSocket)
return -2;
@@ -1606,7 +1596,7 @@ int KExtendedSocket::getch()
{
unsigned char c;
int retval;
- retval = tqreadBlock((char*)&c, sizeof(c));
+ retval = readBlock((char*)&c, sizeof(c));
if (retval < 0)
return retval;
@@ -1616,7 +1606,7 @@ int KExtendedSocket::getch()
int KExtendedSocket::putch(int ch)
{
unsigned char c = (char)ch;
- return tqwriteBlock((char*)&c, sizeof(c));
+ return writeBlock((char*)&c, sizeof(c));
}
// sets the emission of the readyRead signal
@@ -1919,9 +1909,9 @@ void KExtendedSocket::connectionEvent()
// error here is either EWOULDBLOCK or EINPROGRESS
// so, it is a good condition
d->qsnIn = new TQSocketNotifier(sockfd, TQSocketNotifier::Read);
- TQObject::connect(d->qsnIn, TQT_SIGNAL(activated(int)), this, TQT_SLOT(socketActivityRead()));
+ TQObject::connect(d->qsnIn, TQ_SIGNAL(activated(int)), this, TQ_SLOT(socketActivityRead()));
d->qsnOut = new TQSocketNotifier(sockfd, TQSocketNotifier::Write);
- TQObject::connect(d->qsnOut, TQT_SIGNAL(activated(int)), this, TQT_SLOT(socketActivityWrite()));
+ TQObject::connect(d->qsnOut, TQ_SIGNAL(activated(int)), this, TQ_SLOT(socketActivityWrite()));
// ok, let the Qt event loop do the selecting for us
return;
@@ -1979,7 +1969,7 @@ void KExtendedSocket::dnsResultsReady()
void KExtendedSocket::startAsyncConnectSlot()
{
- TQObject::disconnect(this, TQT_SIGNAL(lookupFinished(int)), this, TQT_SLOT(startAsyncConnectSlot()));
+ TQObject::disconnect(this, TQ_SIGNAL(lookupFinished(int)), this, TQ_SLOT(startAsyncConnectSlot()));
if (d->status == lookupDone)
startAsyncConnect();
diff --git a/tdecore/kextsock.h b/tdecore/kextsock.h
index fad502c04..3b3018b59 100644
--- a/tdecore/kextsock.h
+++ b/tdecore/kextsock.h
@@ -22,10 +22,6 @@
#include "tdelibs_export.h"
-#ifdef Q_MOC_RUN
-#define Q_OS_UNIX
-#endif // Q_MOC_RUN
-
#ifdef Q_OS_UNIX
#include <sys/time.h>
@@ -44,10 +40,10 @@ class KAddressInfo; /* our abstraction of it */
class TQSocketNotifier;
/*
- * This is extending QIODevice's error codes
+ * This is extending TQIODevice's error codes
*
* According to tqiodevice.h, the last error is IO_UnspecifiedError
- * These errors will never occur in functions declared in QIODevice
+ * These errors will never occur in functions declared in TQIODevice
* (except open, but you shouldn't call open)
*/
#define IO_ListenError (IO_UnspecifiedError+1)
@@ -67,7 +63,7 @@ class KExtendedSocketPrivate;
* only difference is that the passiveSocket flag must be passed either to
* the constructor or to setSocketFlags(). If passiveSocket is used, the class will
* enable functions listen() and accept() and related signals, and will
- * also disable tqreadBlock() and tqwriteBlock().
+ * also disable readBlock() and writeBlock().
*
* To create a Unix socket, one would pass flag unixSocket to the constructor
* or setSocketFlags(). The hostname and service/port can be set to whatever is
@@ -92,9 +88,9 @@ class KExtendedSocketPrivate;
* @author Thiago Macieira <thiago.macieira@kdemail.net>
* @short an extended socket
*/
-class TDECORE_EXPORT KExtendedSocket: public TDEBufferedIO // public TQObject, public QIODevice
+class TDECORE_EXPORT KExtendedSocket: public TDEBufferedIO // public TQObject, public TQIODevice
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -211,12 +207,7 @@ public:
* freeing any related resources still being kept.
* @since 3.1
*/
-#ifdef USE_QT3
void reset();
-#endif // USE_QT3
-#ifdef USE_QT4
- bool reset();
-#endif // USE_QT4
/*
* --- status, flags and internal variables --- *
@@ -627,7 +618,7 @@ public:
* @return true if successful, false when an error occurred or the most was
* not correct
*/
- virtual bool open(TQ_OpenMode mode = (TQ_OpenMode)(IO_Raw | IO_ReadWrite));
+ virtual bool open(int mode = (int)(IO_Raw | IO_ReadWrite));
/**
* Closes the socket. If we have data still in the write buffer yet to be
@@ -677,7 +668,7 @@ public:
* ready to receive data, it will block, unless this is a non-blocking socket.
*
* This function does not touch the read buffer. You can empty it by calling
- * tqreadBlock() with a null destination buffer.
+ * readBlock() with a null destination buffer.
*/
virtual void flush();
@@ -685,12 +676,7 @@ public:
* Returns length of this socket. This call is not supported on sockets.
* @return the length of this socket, or 0 if unsupported
*/
-#ifdef USE_QT3
virtual inline TQ_ULONG size() const
-#endif // USE_QT3
-#ifdef USE_QT4
- virtual inline qint64 size() const
-#endif // USE_QT4
{ return 0; }
/**
@@ -745,7 +731,7 @@ public:
* This function returns 0, if the function detected end-of-file condition
* (socket was closed)
*/
- virtual TQT_TQIO_LONG tqreadBlock(char *data, TQT_TQIO_ULONG maxlen);
+ virtual TQ_LONG readBlock(char *data, TQ_ULONG maxlen);
/**
* Writes a block of data to the socket.
@@ -770,7 +756,7 @@ public:
* The return value might be less than @p len if the output buffers cannot
* accommodate that many bytes and -1 in the case of an errro.
*/
- virtual TQT_TQIO_LONG tqwriteBlock(const char *data, TQT_TQIO_ULONG len);
+ virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len);
/**
* Peeks at a block of data from the socket.
@@ -805,12 +791,7 @@ public:
* @return The number of available bytes, or -1 on error or -2 if this call is invalid
* in the current state.
*/
-#ifdef USE_QT3
virtual int bytesAvailable() const;
-#endif // USE_QT3
-#ifdef USE_QT4
- virtual qint64 bytesAvailable() const;
-#endif // USE_QT4
/**
* Waits @p msec milliseconds for more data to be available (use 0 to
@@ -950,7 +931,7 @@ public:
* @param flags the same flags as getnameinfo()
* @returns 0 on success, nonzero otherwise.
*/
- static int resolve(sockaddr* sock, ksocklen_t len, TQString& host, TQString& port, int flags = 0) KDE_DEPRECATED;
+ static int resolve(sockaddr* sock, ksocklen_t len, TQString& host, TQString& port, int flags = 0) TDE_DEPRECATED;
/**
* Performs resolution on the given socket address.
@@ -964,7 +945,7 @@ public:
* @param flags the same flags as getnameinfo()
* @returns 0 on success, nonzero otherwise.
*/
- static int resolve(::TDESocketAddress* sock, TQString& host, TQString& port, int flags = 0) KDE_DEPRECATED;
+ static int resolve(::TDESocketAddress* sock, TQString& host, TQString& port, int flags = 0) TDE_DEPRECATED;
/** @deprecated
* This function is now deprecated. Please use @ref KNetwork::KResolver::resolve.
@@ -986,7 +967,7 @@ public:
* @param error pointer to a variable holding the error code
* @return a list of KAddressInfos
*/
- static TQPtrList<KAddressInfo> lookup(const TQString& host, const TQString& port, int flags = 0, int *error = 0) KDE_DEPRECATED;
+ static TQPtrList<KAddressInfo> lookup(const TQString& host, const TQString& port, int flags = 0, int *error = 0) TDE_DEPRECATED;
/**
* Returns the local socket address
@@ -994,7 +975,7 @@ public:
* @param fd the file descriptor
* @return the local socket address or 0 if an error occurred. Delete after use.
*/
- static ::TDESocketAddress *localAddress(int fd) KDE_DEPRECATED;
+ static ::TDESocketAddress *localAddress(int fd) TDE_DEPRECATED;
/**
* Returns the peer socket address. Use KExtendedSocket::resolve() to
@@ -1003,7 +984,7 @@ public:
* @param fd the file descriptor
* @return the peer socket address or 0 if an error occurred. Delete after use.
*/
- static ::TDESocketAddress *peerAddress(int fd) KDE_DEPRECATED;
+ static ::TDESocketAddress *peerAddress(int fd) TDE_DEPRECATED;
/**
* Returns the representing text of this error code
@@ -1022,7 +1003,7 @@ public:
* @param enable if true, set address reusable
* @return true on success, false on failure.
*/
- static bool setAddressReusable(int fd, bool enable) KDE_DEPRECATED;
+ static bool setAddressReusable(int fd, bool enable) TDE_DEPRECATED;
protected:
virtual void virtual_hook( int id, void* data );
@@ -1059,20 +1040,20 @@ public:
* Returns the KAddressInfo's TDESocketAddress.
* Only valid as long as the KAddressInfo exists.
*/
- inline KDE_DEPRECATED operator const ::TDESocketAddress*() const
+ inline TDE_DEPRECATED operator const ::TDESocketAddress*() const
{ return addr; }
/**
* Returns the KAddressInfo's addrinfo.
*/
- inline KDE_DEPRECATED operator const addrinfo&() const
+ inline TDE_DEPRECATED operator const addrinfo&() const
{ return *ai; }
/**
* Returns a pointer to KAddressInfo's addrinfo.
* Only valid as long as the KAddressInfo exists.
*/
- inline KDE_DEPRECATED operator const addrinfo*() const
+ inline TDE_DEPRECATED operator const addrinfo*() const
{ return ai; }
/**
@@ -1080,32 +1061,32 @@ public:
* Only valid as long as the KAddressInfo exists.
* @return the KAddressInfo's TDESocketAddress.
*/
- inline KDE_DEPRECATED const ::TDESocketAddress* address() const
+ inline TDE_DEPRECATED const ::TDESocketAddress* address() const
{ return addr; }
/**
* Returns the flags of the address info (see getaddrinfo(3)).
* @return the flags of the addres info.
*/
- int flags() const KDE_DEPRECATED;
+ int flags() const TDE_DEPRECATED;
/**
* Returns the family of the address info (see getaddrinfo(3)).
* @return the family of the addres info.
*/
- int family() const KDE_DEPRECATED;
+ int family() const TDE_DEPRECATED;
/**
* Returns the socket type of the address info (see getaddrinfo(3)).
* @return the socket type of the addres info.
*/
- int socktype() const KDE_DEPRECATED;
+ int socktype() const TDE_DEPRECATED;
/**
* Returns the protocol of the address info (see getaddrinfo(3)).
* @return the protocol of the addres info.
*/
- int protocol() const KDE_DEPRECATED;
+ int protocol() const TDE_DEPRECATED;
/**
@@ -1113,7 +1094,7 @@ public:
* Only valid as long as the KAddressInfo exists.
* @return the official name of the host
*/
- const char* canonname() const KDE_DEPRECATED;
+ const char* canonname() const TDE_DEPRECATED;
/**
* Returns the length of the TDESocketAddress.
diff --git a/tdecore/kgenericfactory.h b/tdecore/kgenericfactory.h
index e229e73fd..1ed1b41ee 100644
--- a/tdecore/kgenericfactory.h
+++ b/tdecore/kgenericfactory.h
@@ -21,7 +21,7 @@
#include <klibloader.h>
#include <ktypelist.h>
-#include <kinstance.h>
+#include <tdeinstance.h>
#include <kgenericfactory.tcc>
#include <tdeglobal.h>
#include <tdelocale.h>
@@ -190,8 +190,8 @@ protected:
const char *className, const TQStringList &args )
{
KGenericFactoryBase<Product>::initializeMessageCatalogue();
- return TQT_TQOBJECT((KDEPrivate::ConcreteFactory<Product, ParentType>
- ::create( 0, 0, parent, name, className, args )));
+ return (KDEPrivate::ConcreteFactory<Product, ParentType>
+ ::create( 0, 0, parent, name, className, args ));
}
};
diff --git a/tdecore/kgenericfactory.tcc b/tdecore/kgenericfactory.tcc
index e7ba1c730..dda6ec487 100644
--- a/tdecore/kgenericfactory.tcc
+++ b/tdecore/kgenericfactory.tcc
@@ -150,7 +150,7 @@ namespace KDEPrivate
const TQStringList &args, Type2Type<TQWidget> )
{
- WidgetParentType *p = dynamic_cast<WidgetParentType *>( static_cast<TQT_BASE_OBJECT_NAME*>(parent) );
+ WidgetParentType *p = dynamic_cast<WidgetParentType *>( parent );
if ( parent && !p )
return 0;
return new Product( p, name, args );
@@ -160,7 +160,7 @@ namespace KDEPrivate
TQObject *parent, const char *name,
const TQStringList &args, Type2Type<TQObject> )
{
- ParentType *p = dynamic_cast<ParentType *>( static_cast<TQT_BASE_OBJECT_NAME*>(parent) );
+ ParentType *p = dynamic_cast<ParentType *>( parent );
if ( parent && !p )
return 0;
return new Product( p, name, args );
@@ -179,9 +179,9 @@ namespace KDEPrivate
const char *className,
const TQStringList &args )
{
- return static_cast<TQObject*>(static_cast<QObject*>(ConcreteFactory<Product, ParentType>::create( parentWidget, widgetName,
- parent, name, className,
- args )));
+ return static_cast<TQObject*>(ConcreteFactory<Product, ParentType>::create( parentWidget, widgetName,
+ parent, name, className,
+ args ));
}
};
diff --git a/tdecore/kiconeffect.cpp b/tdecore/kiconeffect.cpp
index f5b38b75a..cd6b9bad7 100644
--- a/tdecore/kiconeffect.cpp
+++ b/tdecore/kiconeffect.cpp
@@ -35,7 +35,7 @@
#include <kicontheme.h>
#include "kiconeffect.h"
-#if defined(Q_WS_WIN) || defined(Q_WS_MACX)
+#if defined(TQ_WS_WIN) || defined(TQ_WS_MACX)
static bool tqt_use_xrender=true;
static bool tqt_has_xft=true;
#else
@@ -287,7 +287,7 @@ void TDEIconEffect::toGray(TQImage &img, float value)
int pixels = (img.depth() > 8) ? img.width()*img.height()
: img.numColors();
unsigned int *data = img.depth() > 8 ? (unsigned int *) img.bits()
- : (unsigned int *) img.tqcolorTable();
+ : (unsigned int *) img.colorTable();
int rval, gval, bval, val, alpha, i;
for (i=0; i<pixels; i++)
{
@@ -309,7 +309,7 @@ void TDEIconEffect::colorize(TQImage &img, const TQColor &col, float value)
int pixels = (img.depth() > 8) ? img.width()*img.height()
: img.numColors();
unsigned int *data = img.depth() > 8 ? (unsigned int *) img.bits()
- : (unsigned int *) img.tqcolorTable();
+ : (unsigned int *) img.colorTable();
int rval, gval, bval, val, alpha, i;
float rcol = col.red(), gcol = col.green(), bcol = col.blue();
for (i=0; i<pixels; i++)
@@ -348,7 +348,7 @@ void TDEIconEffect::colorize(TQImage &img, const TQColor &col, float value)
void TDEIconEffect::toMonochrome(TQImage &img, const TQColor &black, const TQColor &white, float value) {
int pixels = (img.depth() > 8) ? img.width()*img.height() : img.numColors();
unsigned int *data = img.depth() > 8 ? (unsigned int *) img.bits()
- : (unsigned int *) img.tqcolorTable();
+ : (unsigned int *) img.colorTable();
int rval, gval, bval, alpha, i;
int rw = white.red(), gw = white.green(), bw = white.blue();
int rb = black.red(), gb = black.green(), bb = black.blue();
@@ -400,7 +400,7 @@ void TDEIconEffect::deSaturate(TQImage &img, float value)
int pixels = (img.depth() > 8) ? img.width()*img.height()
: img.numColors();
unsigned int *data = (img.depth() > 8) ? (unsigned int *) img.bits()
- : (unsigned int *) img.tqcolorTable();
+ : (unsigned int *) img.colorTable();
TQColor color;
int h, s, v, i;
for (i=0; i<pixels; i++)
@@ -418,7 +418,7 @@ void TDEIconEffect::toGamma(TQImage &img, float value)
int pixels = (img.depth() > 8) ? img.width()*img.height()
: img.numColors();
unsigned int *data = (img.depth() > 8) ? (unsigned int *) img.bits()
- : (unsigned int *) img.tqcolorTable();
+ : (unsigned int *) img.colorTable();
TQColor color;
int i, rval, gval, bval;
float gamma;
@@ -462,7 +462,7 @@ void TDEIconEffect::semiTransparent(TQImage &img)
else
for (y=0; y<height; y++)
{
- QRgb *line = (QRgb *) img.scanLine(y);
+ TQRgb *line = (TQRgb *) img.scanLine(y);
for (x=(y%2); x<width; x+=2)
line[x] &= 0x00ffffff;
}
@@ -530,8 +530,8 @@ void TDEIconEffect::semiTransparent(TQPixmap &pix)
for (int y=0; y<img.height(); y++)
{
- QRgb *line = (QRgb *) img.scanLine(y);
- QRgb pattern = (y % 2) ? 0x55555555 : 0xaaaaaaaa;
+ TQRgb *line = (TQRgb *) img.scanLine(y);
+ TQRgb pattern = (y % 2) ? 0x55555555 : 0xaaaaaaaa;
for (int x=0; x<(img.width()+31)/32; x++)
line[x] &= pattern;
}
@@ -557,11 +557,11 @@ TQImage TDEIconEffect::doublePixels(TQImage src) const
int x, y;
if (src.depth() == 32)
{
- QRgb *l1, *l2;
+ TQRgb *l1, *l2;
for (y=0; y<h; y++)
{
- l1 = (QRgb *) src.scanLine(y);
- l2 = (QRgb *) dst.scanLine(y*2);
+ l1 = (TQRgb *) src.scanLine(y);
+ l2 = (TQRgb *) dst.scanLine(y*2);
for (x=0; x<w; x++)
{
l2[x*2] = l2[x*2+1] = l1[x];
@@ -669,14 +669,14 @@ void TDEIconEffect::overlay(TQImage &src, TQImage &overlay)
if (src.depth() == 32)
{
- QRgb *oline, *sline;
+ TQRgb *oline, *sline;
int r1, g1, b1, a1;
int r2, g2, b2, a2;
for (i=0; i<src.height(); i++)
{
- oline = (QRgb *) overlay.scanLine(i);
- sline = (QRgb *) src.scanLine(i);
+ oline = (TQRgb *) overlay.scanLine(i);
+ sline = (TQRgb *) src.scanLine(i);
for (j=0; j<src.width(); j++)
{
@@ -743,7 +743,7 @@ TDEIconEffect::visualActivate(TQWidget * widget, TQRect rect)
TQPainter p(widget);
// Use NotROP to avoid having to repaint the pixmap each time.
- p.setPen(TQPen(Qt::black, 2, Qt::DotLine));
+ p.setPen(TQPen(TQt::black, 2, TQt::DotLine));
p.setRasterOp(TQt::NotROP);
// The spacing between the rects we draw.
@@ -846,13 +846,13 @@ TDEIconEffect::visualActivate(TQWidget * widget, TQRect rect, TQPixmap *pixmap)
if ((widget->rect().width() <= maxRect.width())
|| (widget->rect().height() <= maxRect.height()))
{
-// p = new TQPainter(TQApplication::desktop()->screen( -1 ), TRUE); // WARNING: This was done in Qt3. It only worked in this placement due to a glitch in Qt3; it has therefore been moved below grabWidget, where it should have been in the first place.
+// p = new TQPainter(TQApplication::desktop()->screen( -1 ), true); // WARNING: This was done in Qt3. It only worked in this placement due to a glitch in Qt3; it has therefore been moved below grabWidget, where it should have been in the first place.
pix = TQPixmap::grabWindow((TQApplication::desktop()->screen( -1 ))->winId(),
maxRect.x(),
maxRect.y(),
maxRect.width(),
maxRect.height());
- p = new TQPainter(TQApplication::desktop()->screen( -1 ), TRUE);
+ p = new TQPainter(TQApplication::desktop()->screen( -1 ), true);
} else
{
// not as ugly as drawing directly to the screen
diff --git a/tdecore/kiconloader.cpp b/tdecore/kiconloader.cpp
index 8665b9ce2..b1ee62efd 100644
--- a/tdecore/kiconloader.cpp
+++ b/tdecore/kiconloader.cpp
@@ -29,11 +29,11 @@
#include <tdeapplication.h>
#include <kipc.h>
#include <kdebug.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeglobal.h>
#include <tdeconfig.h>
-#include <ksimpleconfig.h>
-#include <kinstance.h>
+#include <tdesimpleconfig.h>
+#include <tdeinstance.h>
#include <kicontheme.h>
#include <kiconloader.h>
@@ -155,9 +155,9 @@ TDEIconLoader::TDEIconLoader(const TQString& _appname, TDEStandardDirs *_dirs)
d->imgDict.setAutoDelete(true);
d->links.setAutoDelete(true);
- if (kapp) {
- kapp->addKipcEventMask(KIPC::IconChanged);
- TQObject::connect(kapp, TQT_SIGNAL(updateIconLoaders()), d, TQT_SLOT(reconfigure()));
+ if (tdeApp) {
+ tdeApp->addKipcEventMask(KIPC::IconChanged);
+ TQObject::connect(tdeApp, TQ_SIGNAL(updateIconLoaders()), d, TQ_SLOT(reconfigure()));
}
init( _appname, _dirs );
@@ -812,7 +812,7 @@ TQPixmap TDEIconLoader::loadIcon(const TQString& _name, TDEIcon::Group group, in
*img = img->convertDepth(32);
for (int y = 0; y < img->height(); y++)
{
- QRgb *line = reinterpret_cast<QRgb *>(img->scanLine(y));
+ TQRgb *line = reinterpret_cast<TQRgb *>(img->scanLine(y));
for (int x = 0; x < img->width(); x++)
line[x] = (line[x] & 0x00ffffff) | (TQMIN(0x80, tqAlpha(line[x])) << 24);
}
@@ -851,8 +851,8 @@ TQPixmap TDEIconLoader::loadIcon(const TQString& _name, TDEIcon::Group group, in
line < favIcon.height();
++line )
{
- QRgb* fpos = reinterpret_cast< QRgb* >( favIcon.scanLine( line ));
- QRgb* ipos = reinterpret_cast< QRgb* >( img->scanLine( line + y )) + x;
+ TQRgb* fpos = reinterpret_cast< TQRgb* >( favIcon.scanLine( line ));
+ TQRgb* ipos = reinterpret_cast< TQRgb* >( img->scanLine( line + y )) + x;
for( int i = 0;
i < favIcon.width();
++i, ++fpos, ++ipos )
diff --git a/tdecore/kiconloader.h b/tdecore/kiconloader.h
index 067ba5640..3876efc02 100644
--- a/tdecore/kiconloader.h
+++ b/tdecore/kiconloader.h
@@ -28,7 +28,7 @@
#endif
#include <tdeglobal.h>
-#include <kinstance.h>
+#include <tdeinstance.h>
#include <kicontheme.h>
struct TDEIconGroup;
diff --git a/tdecore/kiconloader_p.h b/tdecore/kiconloader_p.h
index 1e5d5f75c..dacf40ade 100644
--- a/tdecore/kiconloader_p.h
+++ b/tdecore/kiconloader_p.h
@@ -35,7 +35,7 @@ public:
class TDEIconLoaderPrivate : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
TQStringList mThemesInTree;
TDEIconGroup *mpGroups;
diff --git a/tdecore/kicontheme.cpp b/tdecore/kicontheme.cpp
index dd2cd2944..15bad692a 100644
--- a/tdecore/kicontheme.cpp
+++ b/tdecore/kicontheme.cpp
@@ -29,11 +29,11 @@
#include <tqdir.h>
#include <kdebug.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeglobal.h>
#include <tdeconfig.h>
-#include <ksimpleconfig.h>
-#include <kinstance.h>
+#include <tdesimpleconfig.h>
+#include <tdeinstance.h>
#include "kicontheme.h"
@@ -136,11 +136,11 @@ TDEIconTheme::TDEIconTheme(const TQString& name, const TQString& appName)
fileName = mDir + "index.theme";
mainSection="Icon Theme";
}
- // Use TDESharedConfig to avoid parsing the file many times, from each kinstance.
+ // Use TDESharedConfig to avoid parsing the file many times, from each TDEInstance.
// Need to keep a ref to it to make this useful
d->sharedConfig = TDESharedConfig::openConfig( fileName, true /*readonly*/, false /*useKDEGlobals*/ );
TDEConfig& cfg = *d->sharedConfig;
- //was: KSimpleConfig cfg(fileName);
+ //was: TDESimpleConfig cfg(fileName);
cfg.setGroup(mainSection);
mName = cfg.readEntry("Name");
diff --git a/tdecore/kidna.cpp b/tdecore/kidna.cpp
index ca41fecdf..e8df061ec 100644
--- a/tdecore/kidna.cpp
+++ b/tdecore/kidna.cpp
@@ -21,18 +21,18 @@
#include "kidna.h"
-#ifndef Q_WS_WIN //TODO kresolver not ported
+#ifndef TQ_WS_WIN //TODO kresolver not ported
#include "kresolver.h"
#endif
#include <kdebug.h>
-#ifndef Q_WS_WIN //TODO knetwork not ported
+#ifndef TQ_WS_WIN //TODO knetwork not ported
using namespace KNetwork;
#endif
TQCString KIDNA::toAsciiCString(const TQString &idna)
{
-#ifndef Q_WS_WIN //TODO kresolver not ported
+#ifndef TQ_WS_WIN //TODO kresolver not ported
return KResolver::domainToAscii(idna);
#else
return TQCString();
@@ -41,7 +41,7 @@ TQCString KIDNA::toAsciiCString(const TQString &idna)
TQString KIDNA::toAscii(const TQString &idna)
{
- if (idna.length() && (idna[0] == (QChar)'.'))
+ if (idna.length() && (idna[0] == (TQChar)'.'))
{
TQString host = TQString::fromLatin1(toAsciiCString(idna.mid(1)));
if (host.isEmpty())
@@ -53,8 +53,8 @@ TQString KIDNA::toAscii(const TQString &idna)
TQString KIDNA::toUnicode(const TQString &idna)
{
-#ifndef Q_WS_WIN //TODO kresolver not ported
- if (idna.length() && (idna[0] == (QChar)'.'))
+#ifndef TQ_WS_WIN //TODO kresolver not ported
+ if (idna.length() && (idna[0] == (TQChar)'.'))
return idna[0] + KResolver::domainToUnicode(idna.mid(1));
return KResolver::domainToUnicode(idna);
#else
diff --git a/tdecore/kipc.cpp b/tdecore/kipc.cpp
index e6ec7cc4e..8e6da23e2 100644
--- a/tdecore/kipc.cpp
+++ b/tdecore/kipc.cpp
@@ -30,7 +30,7 @@
#include <tqevent.h>
#include <tqwindowdefs.h>
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
#include <X11/X.h>
#include <X11/Xlib.h>
#include <kxerrorhandler.h>
@@ -39,7 +39,7 @@
#include <kipc.h>
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
static long getSimpleProperty(Window w, Atom a)
{
Atom real_type;
@@ -59,7 +59,7 @@ static long getSimpleProperty(Window w, Atom a)
void KIPC::sendMessage(Message msg, WId w, int data)
{
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
static Atom a = 0;
if (a == 0)
a = XInternAtom(tqt_xdisplay(), "KIPC_COMM_ATOM", False);
@@ -88,7 +88,7 @@ void KIPC::sendMessage(Message msg, WId w, int data)
void KIPC::sendMessageAll(Message msg, int data)
{
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
unsigned int i, nrootwins;
Window dw1, dw2, *rootwins = 0;
Display *dpy = tqt_xdisplay();
diff --git a/tdecore/kkeynative.h b/tdecore/kkeynative.h
index e2774417d..5ff83ccbc 100644
--- a/tdecore/kkeynative.h
+++ b/tdecore/kkeynative.h
@@ -25,7 +25,7 @@
#include <tdeshortcut.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
typedef union _XEvent XEvent;
#endif
@@ -45,7 +45,7 @@ class TDECORE_EXPORT KKeyNative
*/
KKeyNative();
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
/**
* Extracts a new native key from the given xevent.
* @param xevent the XEvent that contains the key
@@ -76,7 +76,7 @@ class TDECORE_EXPORT KKeyNative
*/
void clear();
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
/**
* Initializes the native key by extracting the information
* from the given xevent.
@@ -111,7 +111,7 @@ class TDECORE_EXPORT KKeyNative
/**
* Returns the qt key code.
* @return the qt key code or 0 if there is no key set.
- * @see Qt::Key
+ * @see TQt::Key
*/
int keyCodeQt() const;
@@ -205,7 +205,7 @@ class TDECORE_EXPORT KKeyNative
*/
static bool keyboardHasWinKey();
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
/**
* Returns the equivalent X modifier mask of the given modifier flag.
* @param modFlag the mod flags to test
diff --git a/tdecore/kkeynative_x11.cpp b/tdecore/kkeynative_x11.cpp
index d5ecb24da..8ab457a26 100644
--- a/tdecore/kkeynative_x11.cpp
+++ b/tdecore/kkeynative_x11.cpp
@@ -23,7 +23,7 @@
#include <tqnamespace.h>
#include <tqwindowdefs.h>
-#if defined(Q_WS_X11) || defined(Q_WS_WIN) || defined(Q_WS_MACX) // Only compile this module if we're compiling for X11, mac or win32
+#if defined(TQ_WS_X11) || defined(TQ_WS_WIN) || defined(TQ_WS_MACX) // Only compile this module if we're compiling for X11, mac or win32
#include "kkeynative.h"
#include "kkeyserver_x11.h"
@@ -34,7 +34,7 @@
#include <kdebug.h>
#include <tdelocale.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#define XK_MISCELLANY
#define XK_XKB_KEYS
#include <X11/X.h>
@@ -56,7 +56,7 @@ static KKeyNative* gx_pkey = 0;
KKeyNative::KKeyNative() { clear(); }
KKeyNative::KKeyNative( const KKey& key ) { init( key ); }
KKeyNative::KKeyNative( const KKeyNative& key ) { init( key ); }
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
KKeyNative::KKeyNative( const XEvent* pEvent ) { init( pEvent ); }
#endif
@@ -77,7 +77,7 @@ void KKeyNative::clear()
m_sym = 0;
}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
bool KKeyNative::init( const XEvent* pEvent )
{
KeySym keySym;
@@ -91,11 +91,11 @@ bool KKeyNative::init( const XEvent* pEvent )
bool KKeyNative::init( const KKey& key )
{
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
m_sym = key.sym();
m_code = m_sym; //key.keyCodeQt();
m_mod = key.m_mod;
-#elif !defined(Q_WS_WIN) && !defined(Q_WS_MACX)
+#elif !defined(TQ_WS_WIN) && !defined(TQ_WS_MACX)
// Get any extra mods required by the sym.
// E.g., XK_Plus requires SHIFT on the en layout.
m_sym = key.sym();
@@ -167,7 +167,7 @@ KKeyNative& KKeyNative::null()
KKey KKeyNative::key() const
{
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
return KKey( m_sym, m_mod );
#else
uint modSpec;
@@ -192,7 +192,7 @@ int KKeyNative::keyCodeQt() const
bool KKeyNative::keyboardHasWinKey() { return KKeyServer::keyboardHasWinKey(); }
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
uint KKeyNative::modX( KKey::ModFlag modFlag ) { return KKeyServer::modX( modFlag ); }
uint KKeyNative::accelModMaskX() { return KKeyServer::accelModMaskX(); }
uint KKeyNative::modXNumLock() { return KKeyServer::modXNumLock(); }
@@ -201,4 +201,4 @@ uint KKeyNative::modXScrollLock() { return KKeyServer::modXScrollLo
uint KKeyNative::modXModeSwitch() { return KKeyServer::modXModeSwitch(); }
#endif
-#endif // Q_WS_X11
+#endif // TQ_WS_X11
diff --git a/tdecore/kkeyserver_x11.cpp b/tdecore/kkeyserver_x11.cpp
index bb46338f4..77ca61763 100644
--- a/tdecore/kkeyserver_x11.cpp
+++ b/tdecore/kkeyserver_x11.cpp
@@ -25,7 +25,7 @@
#include <tqnamespace.h>
#include <tqwindowdefs.h>
-#if defined(Q_WS_X11) || defined(Q_WS_WIN) || defined(Q_WS_MACX) // Only compile this module if we're compiling for X11, mac or win32
+#if defined(TQ_WS_X11) || defined(TQ_WS_WIN) || defined(TQ_WS_MACX) // Only compile this module if we're compiling for X11, mac or win32
#include "kkeyserver_x11.h"
#include "kkeynative.h"
@@ -36,7 +36,7 @@
#include <tdeglobal.h>
#include <tdelocale.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
# define XK_MISCELLANY
# define XK_XKB_KEYS
# include <X11/X.h>
@@ -48,14 +48,14 @@
#else
# include <kckey.h>
# define X11_ONLY(arg)
-# define XK_ISO_Left_Tab Qt::Key_Backtab
-# define XK_BackSpace Qt::Key_Backspace
-# define XK_Sys_Req Qt::Key_SysReq
-# define XK_Caps_Lock Qt::Key_CapsLock
-# define XK_Num_Lock Qt::Key_NumLock
-# define XK_Scroll_Lock Qt::Key_ScrollLock
-# define XK_Prior Qt::Key_Prior
-# define XK_Next Qt::Key_Next
+# define XK_ISO_Left_Tab TQt::Key_Backtab
+# define XK_BackSpace TQt::Key_Backspace
+# define XK_Sys_Req TQt::Key_SysReq
+# define XK_Caps_Lock TQt::Key_CapsLock
+# define XK_Num_Lock TQt::Key_NumLock
+# define XK_Scroll_Lock TQt::Key_ScrollLock
+# define XK_Prior TQt::Key_Prior
+# define XK_Next TQt::Key_Next
#endif
namespace KKeyServer
@@ -78,7 +78,7 @@ struct ModInfo
{
KKey::ModFlag mod;
int modQt;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
uint modX;
#endif
const char* psName;
@@ -108,9 +108,9 @@ struct TransKey {
static ModInfo g_rgModInfo[KKey::MOD_FLAG_COUNT] =
{
- { KKey::SHIFT, Qt::SHIFT, X11_ONLY(ShiftMask) I18N_NOOP("Shift"), TQString() },
- { KKey::CTRL, Qt::CTRL, X11_ONLY(ControlMask) I18N_NOOP("Ctrl"), TQString() },
- { KKey::ALT, Qt::ALT, X11_ONLY(Mod1Mask) I18N_NOOP("Alt"), TQString() },
+ { KKey::SHIFT, TQt::SHIFT, X11_ONLY(ShiftMask) I18N_NOOP("Shift"), TQString() },
+ { KKey::CTRL, TQt::CTRL, X11_ONLY(ControlMask) I18N_NOOP("Ctrl"), TQString() },
+ { KKey::ALT, TQt::ALT, X11_ONLY(Mod1Mask) I18N_NOOP("Alt"), TQString() },
{ KKey::WIN, KKey::QtWIN, X11_ONLY(Mod4Mask) I18N_NOOP("Win"), TQString() }
};
@@ -140,7 +140,7 @@ static const SymName g_rgSymNames[] = {
{ 0, 0 }
};
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
static SymVariation g_rgSymVariation[] =
{
{ '/', XK_KP_Divide, false },
@@ -156,85 +156,85 @@ static SymVariation g_rgSymVariation[] =
// These are the X equivalents to the Qt keycodes 0x1000 - 0x1026
static const TransKey g_rgQtToSymX[] =
{
- { Qt::Key_Escape, XK_Escape },
- { Qt::Key_Tab, XK_Tab },
- { Qt::Key_Backtab, XK_ISO_Left_Tab },
- { Qt::Key_Backspace, XK_BackSpace },
- { Qt::Key_Return, XK_Return },
- { Qt::Key_Enter, XK_KP_Enter },
- { Qt::Key_Insert, XK_Insert },
- { Qt::Key_Delete, XK_Delete },
- { Qt::Key_Pause, XK_Pause },
+ { TQt::Key_Escape, XK_Escape },
+ { TQt::Key_Tab, XK_Tab },
+ { TQt::Key_Backtab, XK_ISO_Left_Tab },
+ { TQt::Key_Backspace, XK_BackSpace },
+ { TQt::Key_Return, XK_Return },
+ { TQt::Key_Enter, XK_KP_Enter },
+ { TQt::Key_Insert, XK_Insert },
+ { TQt::Key_Delete, XK_Delete },
+ { TQt::Key_Pause, XK_Pause },
#ifdef sun
- { Qt::Key_Print, XK_F22 },
+ { TQt::Key_Print, XK_F22 },
#else
- { Qt::Key_Print, XK_Print },
+ { TQt::Key_Print, XK_Print },
#endif
- { Qt::Key_SysReq, XK_Sys_Req },
- { Qt::Key_Home, XK_Home },
- { Qt::Key_End, XK_End },
- { Qt::Key_Left, XK_Left },
- { Qt::Key_Up, XK_Up },
- { Qt::Key_Right, XK_Right },
- { Qt::Key_Down, XK_Down },
+ { TQt::Key_SysReq, XK_Sys_Req },
+ { TQt::Key_Home, XK_Home },
+ { TQt::Key_End, XK_End },
+ { TQt::Key_Left, XK_Left },
+ { TQt::Key_Up, XK_Up },
+ { TQt::Key_Right, XK_Right },
+ { TQt::Key_Down, XK_Down },
{ TQt::Key_Prior, XK_Prior },
{ TQt::Key_Next, XK_Next },
- //{ Qt::Key_Shift, 0 },
- //{ Qt::Key_Control, 0 },
- //{ Qt::Key_Meta, 0 },
- //{ Qt::Key_Alt, 0 },
- { Qt::Key_CapsLock, XK_Caps_Lock },
- { Qt::Key_NumLock, XK_Num_Lock },
- { Qt::Key_ScrollLock, XK_Scroll_Lock },
- { Qt::Key_F1, XK_F1 },
- { Qt::Key_F2, XK_F2 },
- { Qt::Key_F3, XK_F3 },
- { Qt::Key_F4, XK_F4 },
- { Qt::Key_F5, XK_F5 },
- { Qt::Key_F6, XK_F6 },
- { Qt::Key_F7, XK_F7 },
- { Qt::Key_F8, XK_F8 },
- { Qt::Key_F9, XK_F9 },
- { Qt::Key_F10, XK_F10 },
- { Qt::Key_F11, XK_F11 },
- { Qt::Key_F12, XK_F12 },
- { Qt::Key_F13, XK_F13 },
- { Qt::Key_F14, XK_F14 },
- { Qt::Key_F15, XK_F15 },
- { Qt::Key_F16, XK_F16 },
- { Qt::Key_F17, XK_F17 },
- { Qt::Key_F18, XK_F18 },
- { Qt::Key_F19, XK_F19 },
- { Qt::Key_F20, XK_F20 },
- { Qt::Key_F21, XK_F21 },
- { Qt::Key_F22, XK_F22 },
- { Qt::Key_F23, XK_F23 },
- { Qt::Key_F24, XK_F24 },
- { Qt::Key_F25, XK_F25 },
- { Qt::Key_F26, XK_F26 },
- { Qt::Key_F27, XK_F27 },
- { Qt::Key_F28, XK_F28 },
- { Qt::Key_F29, XK_F29 },
- { Qt::Key_F30, XK_F30 },
- { Qt::Key_F31, XK_F31 },
- { Qt::Key_F32, XK_F32 },
- { Qt::Key_F33, XK_F33 },
- { Qt::Key_F34, XK_F34 },
- { Qt::Key_F35, XK_F35 },
- { Qt::Key_Super_L, XK_Super_L },
- { Qt::Key_Super_R, XK_Super_R },
- { Qt::Key_Menu, XK_Menu },
- { Qt::Key_Hyper_L, XK_Hyper_L },
- { Qt::Key_Hyper_R, XK_Hyper_R },
- { Qt::Key_Help, XK_Help },
- //{ Qt::Key_Direction_L, XK_Direction_L }, These keys don't exist in X11
- //{ Qt::Key_Direction_R, XK_Direction_R },
+ //{ TQt::Key_Shift, 0 },
+ //{ TQt::Key_Control, 0 },
+ //{ TQt::Key_Meta, 0 },
+ //{ TQt::Key_Alt, 0 },
+ { TQt::Key_CapsLock, XK_Caps_Lock },
+ { TQt::Key_NumLock, XK_Num_Lock },
+ { TQt::Key_ScrollLock, XK_Scroll_Lock },
+ { TQt::Key_F1, XK_F1 },
+ { TQt::Key_F2, XK_F2 },
+ { TQt::Key_F3, XK_F3 },
+ { TQt::Key_F4, XK_F4 },
+ { TQt::Key_F5, XK_F5 },
+ { TQt::Key_F6, XK_F6 },
+ { TQt::Key_F7, XK_F7 },
+ { TQt::Key_F8, XK_F8 },
+ { TQt::Key_F9, XK_F9 },
+ { TQt::Key_F10, XK_F10 },
+ { TQt::Key_F11, XK_F11 },
+ { TQt::Key_F12, XK_F12 },
+ { TQt::Key_F13, XK_F13 },
+ { TQt::Key_F14, XK_F14 },
+ { TQt::Key_F15, XK_F15 },
+ { TQt::Key_F16, XK_F16 },
+ { TQt::Key_F17, XK_F17 },
+ { TQt::Key_F18, XK_F18 },
+ { TQt::Key_F19, XK_F19 },
+ { TQt::Key_F20, XK_F20 },
+ { TQt::Key_F21, XK_F21 },
+ { TQt::Key_F22, XK_F22 },
+ { TQt::Key_F23, XK_F23 },
+ { TQt::Key_F24, XK_F24 },
+ { TQt::Key_F25, XK_F25 },
+ { TQt::Key_F26, XK_F26 },
+ { TQt::Key_F27, XK_F27 },
+ { TQt::Key_F28, XK_F28 },
+ { TQt::Key_F29, XK_F29 },
+ { TQt::Key_F30, XK_F30 },
+ { TQt::Key_F31, XK_F31 },
+ { TQt::Key_F32, XK_F32 },
+ { TQt::Key_F33, XK_F33 },
+ { TQt::Key_F34, XK_F34 },
+ { TQt::Key_F35, XK_F35 },
+ { TQt::Key_Super_L, XK_Super_L },
+ { TQt::Key_Super_R, XK_Super_R },
+ { TQt::Key_Menu, XK_Menu },
+ { TQt::Key_Hyper_L, XK_Hyper_L },
+ { TQt::Key_Hyper_R, XK_Hyper_R },
+ { TQt::Key_Help, XK_Help },
+ //{ TQt::Key_Direction_L, XK_Direction_L }, These keys don't exist in X11
+ //{ TQt::Key_Direction_R, XK_Direction_R },
{ '/', XK_KP_Divide },
{ '*', XK_KP_Multiply },
{ '-', XK_KP_Subtract },
{ '+', XK_KP_Add },
- { Qt::Key_Return, XK_KP_Enter }
+ { TQt::Key_Return, XK_KP_Enter }
#if TQT_VERSION >= 0x030100
// the next lines are taken from XFree > 4.0 (X11/XF86keysyms.h), defining some special
@@ -285,56 +285,56 @@ static const TransKey g_rgQtToSymX[] =
#define XF86XK_KbdBrightnessDown 0x1008FF06 /* Keyboards may be lit */
// end of XF86keysyms.h
,
- { Qt::Key_Standby, XF86XK_Standby },
- { Qt::Key_VolumeDown, XF86XK_AudioLowerVolume },
- { Qt::Key_VolumeMute, XF86XK_AudioMute },
- { Qt::Key_VolumeUp, XF86XK_AudioRaiseVolume },
- { Qt::Key_MediaPlay, XF86XK_AudioPlay },
- { Qt::Key_MediaStop, XF86XK_AudioStop },
+ { TQt::Key_Standby, XF86XK_Standby },
+ { TQt::Key_VolumeDown, XF86XK_AudioLowerVolume },
+ { TQt::Key_VolumeMute, XF86XK_AudioMute },
+ { TQt::Key_VolumeUp, XF86XK_AudioRaiseVolume },
+ { TQt::Key_MediaPlay, XF86XK_AudioPlay },
+ { TQt::Key_MediaStop, XF86XK_AudioStop },
{ TQt::Key_MediaPrev, XF86XK_AudioPrev },
- { Qt::Key_MediaNext, XF86XK_AudioNext },
- { Qt::Key_HomePage, XF86XK_HomePage },
- { Qt::Key_LaunchMail, XF86XK_Mail },
- { Qt::Key_Search, XF86XK_Search },
- { Qt::Key_MediaRecord, XF86XK_AudioRecord },
- { Qt::Key_LaunchMedia, XF86XK_AudioMedia },
- { Qt::Key_Launch1, XF86XK_Calculator },
- { Qt::Key_Back, XF86XK_Back },
- { Qt::Key_Forward, XF86XK_Forward },
- { Qt::Key_Stop, XF86XK_Stop },
- { Qt::Key_Refresh, XF86XK_Refresh },
- { Qt::Key_Favorites, XF86XK_Favorites },
- { Qt::Key_Launch0, XF86XK_MyComputer },
- { Qt::Key_OpenUrl, XF86XK_OpenURL },
- { Qt::Key_Launch2, XF86XK_Launch0 },
- { Qt::Key_Launch3, XF86XK_Launch1 },
- { Qt::Key_Launch4, XF86XK_Launch2 },
- { Qt::Key_Launch5, XF86XK_Launch3 },
- { Qt::Key_Launch6, XF86XK_Launch4 },
- { Qt::Key_Launch7, XF86XK_Launch5 },
- { Qt::Key_Launch8, XF86XK_Launch6 },
- { Qt::Key_Launch9, XF86XK_Launch7 },
- { Qt::Key_LaunchA, XF86XK_Launch8 },
- { Qt::Key_LaunchB, XF86XK_Launch9 },
- { Qt::Key_LaunchC, XF86XK_LaunchA },
- { Qt::Key_LaunchD, XF86XK_LaunchB },
- { Qt::Key_LaunchE, XF86XK_LaunchC },
- { Qt::Key_LaunchF, XF86XK_LaunchD },
- { Qt::Key_MonBrightnessUp, XF86XK_MonBrightnessUp },
- { Qt::Key_MonBrightnessDown, XF86XK_MonBrightnessDown },
- { Qt::Key_KeyboardLightOnOff, XF86XK_KbdLightOnOff },
- { Qt::Key_KeyboardBrightnessUp, XF86XK_KbdBrightnessUp },
- { Qt::Key_KeyboardBrightnessDown, XF86XK_KbdBrightnessDown },
+ { TQt::Key_MediaNext, XF86XK_AudioNext },
+ { TQt::Key_HomePage, XF86XK_HomePage },
+ { TQt::Key_LaunchMail, XF86XK_Mail },
+ { TQt::Key_Search, XF86XK_Search },
+ { TQt::Key_MediaRecord, XF86XK_AudioRecord },
+ { TQt::Key_LaunchMedia, XF86XK_AudioMedia },
+ { TQt::Key_Launch1, XF86XK_Calculator },
+ { TQt::Key_Back, XF86XK_Back },
+ { TQt::Key_Forward, XF86XK_Forward },
+ { TQt::Key_Stop, XF86XK_Stop },
+ { TQt::Key_Refresh, XF86XK_Refresh },
+ { TQt::Key_Favorites, XF86XK_Favorites },
+ { TQt::Key_Launch0, XF86XK_MyComputer },
+ { TQt::Key_OpenUrl, XF86XK_OpenURL },
+ { TQt::Key_Launch2, XF86XK_Launch0 },
+ { TQt::Key_Launch3, XF86XK_Launch1 },
+ { TQt::Key_Launch4, XF86XK_Launch2 },
+ { TQt::Key_Launch5, XF86XK_Launch3 },
+ { TQt::Key_Launch6, XF86XK_Launch4 },
+ { TQt::Key_Launch7, XF86XK_Launch5 },
+ { TQt::Key_Launch8, XF86XK_Launch6 },
+ { TQt::Key_Launch9, XF86XK_Launch7 },
+ { TQt::Key_LaunchA, XF86XK_Launch8 },
+ { TQt::Key_LaunchB, XF86XK_Launch9 },
+ { TQt::Key_LaunchC, XF86XK_LaunchA },
+ { TQt::Key_LaunchD, XF86XK_LaunchB },
+ { TQt::Key_LaunchE, XF86XK_LaunchC },
+ { TQt::Key_LaunchF, XF86XK_LaunchD },
+ { TQt::Key_MonBrightnessUp, XF86XK_MonBrightnessUp },
+ { TQt::Key_MonBrightnessDown, XF86XK_MonBrightnessDown },
+ { TQt::Key_KeyboardLightOnOff, XF86XK_KbdLightOnOff },
+ { TQt::Key_KeyboardBrightnessUp, XF86XK_KbdBrightnessUp },
+ { TQt::Key_KeyboardBrightnessDown, XF86XK_KbdBrightnessDown },
#endif
};
-#endif //Q_WS_X11
+#endif //TQ_WS_X11
//---------------------------------------------------------------------
// Initialization
//---------------------------------------------------------------------
static bool g_bInitializedMods, g_bInitializedVariations, g_bInitializedKKeyLabels;
static bool g_bMacLabels;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
static uint g_modXNumLock, g_modXScrollLock, g_modXModeSwitch;
bool initializeMods()
@@ -386,7 +386,7 @@ static void initializeVariations()
g_rgSymVariation[i].bActive = (XKeysymToKeycode( tqt_xdisplay(), g_rgSymVariation[i].symVariation ) != 0);
g_bInitializedVariations = true;
}
-#endif //Q_WS_X11
+#endif //TQ_WS_X11
static void intializeKKeyLabels()
{
@@ -416,15 +416,15 @@ bool Sym::initQt( int keyQt )
{
int symQt = keyQt & 0xffff;
- if( (keyQt & Qt::UNICODE_ACCEL) || symQt < 0x1000 ) {
+ if( (keyQt & TQt::UNICODE_ACCEL) || symQt < 0x1000 ) {
m_sym = TQChar(symQt).lower().unicode();
return true;
}
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
m_sym = symQt;
return true;
-#elif defined(Q_WS_X11)
+#elif defined(TQ_WS_X11)
for( uint i = 0; i < sizeof(g_rgQtToSymX)/sizeof(TransKey); i++ ) {
if( g_rgQtToSymX[i].keySymQt == symQt ) {
m_sym = g_rgQtToSymX[i].keySymX;
@@ -433,11 +433,11 @@ bool Sym::initQt( int keyQt )
}
m_sym = 0;
- if( symQt != Qt::Key_Shift && symQt != Qt::Key_Control && symQt != Qt::Key_Alt &&
- symQt != Qt::Key_Meta && symQt != Qt::Key_Direction_L && symQt != Qt::Key_Direction_R )
+ if( symQt != TQt::Key_Shift && symQt != TQt::Key_Control && symQt != TQt::Key_Alt &&
+ symQt != TQt::Key_Meta && symQt != TQt::Key_Direction_L && symQt != TQt::Key_Direction_R )
kdDebug(125) << "Sym::initQt( " << TQString::number(keyQt,16) << " ): failed to convert key." << endl;
return false;
-#elif defined(Q_WS_MACX)
+#elif defined(TQ_WS_MACX)
m_sym = symQt;
return true;
#endif
@@ -459,7 +459,7 @@ bool Sym::init( const TQString& s )
}
}
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
// search for name in KKeys array
for ( KKeys const *pKey = kde_KKEYS; pKey->code != 0xffff; pKey++) {
if( tqstricmp( s.latin1(), pKey->name ) == 0 ) {
@@ -468,7 +468,7 @@ bool Sym::init( const TQString& s )
}
}
m_sym = 0;
-#elif defined(Q_WS_X11)
+#elif defined(TQ_WS_X11)
// search X list: 's' as is, all lower, first letter in caps
m_sym = XStringToKeysym( s.latin1() );
if( !m_sym ) {
@@ -490,12 +490,12 @@ int Sym::qt() const
return TQChar(m_sym).upper();
return m_sym;
}
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
if( m_sym < 0x3000 )
return m_sym;
-#elif defined(Q_WS_X11)
+#elif defined(TQ_WS_X11)
if( m_sym < 0x3000 )
- return m_sym | Qt::UNICODE_ACCEL;
+ return m_sym | TQt::UNICODE_ACCEL;
for( uint i = 0; i < sizeof(g_rgQtToSymX)/sizeof(TransKey); i++ )
if( g_rgQtToSymX[i].keySymX == m_sym )
@@ -511,7 +511,7 @@ TQString Sym::toString( bool bUserSpace ) const
}
// If it's a unicode character,
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
else if( m_sym < 0x1000 ) {
#else
else if( m_sym < 0x3000 ) {
@@ -533,9 +533,9 @@ TQString Sym::toString( bool bUserSpace ) const
}
TQString s;
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
s = TQKeySequence( m_sym );
-#elif defined(Q_WS_X11)
+#elif defined(TQ_WS_X11)
// Get X-name
s = XKeysymToString( m_sym );
#endif
@@ -549,7 +549,7 @@ TQString Sym::toString() const { return toString( true ); }
uint Sym::getModsRequired() const
{
uint mod = 0;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
// FIXME: This might not be true on all keyboard layouts!
if( m_sym == XK_Sys_Req ) return KKey::ALT;
if( m_sym == XK_Break ) return KKey::CTRL;
@@ -580,7 +580,7 @@ uint Sym::getModsRequired() const
uint Sym::getSymVariation() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if( !g_bInitializedVariations )
initializeVariations();
for( int i = 0; g_rgSymVariation[i].sym != 0; i++ )
@@ -603,7 +603,7 @@ void Sym::capitalizeKeyname( TQString& s )
// Public functions
//---------------------------------------------------------------------
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
uint modX( KKey::ModFlag mod )
{
if( mod == KKey::WIN && !g_bInitializedMods )
@@ -632,7 +632,7 @@ uint accelModMaskX()
initializeMods();
return ShiftMask | ControlMask | Mod1Mask | g_rgModInfo[3].modX;
}
-#endif //Q_WS_X11
+#endif //TQ_WS_X11
bool keyQtToSym( int keyQt, uint& keySym )
{
@@ -648,10 +648,10 @@ bool keyQtToMod( int keyQt, uint& mod )
{
mod = 0;
- if( keyQt & Qt::SHIFT ) mod |= KKey::SHIFT;
- if( keyQt & Qt::CTRL ) mod |= KKey::CTRL;
- if( keyQt & Qt::ALT ) mod |= KKey::ALT;
- if( keyQt & Qt::META ) mod |= KKey::WIN;
+ if( keyQt & TQt::SHIFT ) mod |= KKey::SHIFT;
+ if( keyQt & TQt::CTRL ) mod |= KKey::CTRL;
+ if( keyQt & TQt::ALT ) mod |= KKey::ALT;
+ if( keyQt & TQt::META ) mod |= KKey::WIN;
return true;
}
@@ -678,7 +678,7 @@ bool modToModQt( uint mod, int& modQt )
return true;
}
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
//wrapped
bool modXToModQt( uint modX, int& modQt )
{
@@ -688,9 +688,9 @@ bool modXToModQt( uint modX, int& modQt )
TDECORE_EXPORT int qtButtonStateToMod( TQt::ButtonState s )
{
int modQt = 0;
- if (s & Qt::ShiftButton) modQt |= KKey::SHIFT;
- if (s & Qt::ControlButton) modQt |= KKey::CTRL;
- if (s & Qt::AltButton) modQt |= KKey::ALT;
+ if (s & TQt::ShiftButton) modQt |= KKey::SHIFT;
+ if (s & TQt::ControlButton) modQt |= KKey::CTRL;
+ if (s & TQt::AltButton) modQt |= KKey::ALT;
return modQt;
}
@@ -699,7 +699,7 @@ bool keyboardHasWinKey() {
return true;
}
-#elif defined(Q_WS_MACX)
+#elif defined(TQ_WS_MACX)
bool modXToModQt(uint modX, int& modQt)
{
@@ -715,7 +715,7 @@ bool modXToMod( uint , uint& )
{
return false;
}
-#elif defined(Q_WS_X11)
+#elif defined(TQ_WS_X11)
bool modToModX( uint mod, uint& modX )
{
@@ -785,7 +785,7 @@ bool codeXToSym( uchar codeX, uint modX, uint& sym )
sym = (uint) keySym;
return true;
}
-#endif //!Q_WS_WIN
+#endif //!TQ_WS_WIN
static TQString modToString( uint mod, bool bUserSpace )
{
@@ -841,7 +841,7 @@ uint stringUserToMod( const TQString& mod )
if( keySymQt < 0x1000 ) {
// For reasons unbeknownst to me, Qt converts 'a-z' to 'A-Z'.
// So convert it back to lowercase if SHIFT isn't held down.
- if( keySymQt >= Qt::Key_A && keySymQt <= Qt::Key_Z && !(keyCombQt & Qt::SHIFT) )
+ if( keySymQt >= TQt::Key_A && keySymQt <= TQt::Key_Z && !(keyCombQt & TQt::SHIFT) )
keySymQt = tolower( keySymQt );
keySymX = keySymQt;
}
@@ -954,7 +954,7 @@ KKey Key::key() const
if( m_code == CODE_FOR_QT )
return KKey( keyCodeQt() );
else {
-#if defined(Q_WS_WIN) || defined(Q_WS_MACX)
+#if defined(TQ_WS_WIN) || defined(TQ_WS_MACX)
return KKey();
#else
uint mod;
@@ -1043,7 +1043,7 @@ void Variations::init( const KKey& key, bool bQt )
// Ctrl+Pause => Ctrl+Break
void KKey::simplify()
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if( m_sym == XK_Sys_Req ) {
m_sym = XK_Print;
m_mod |= ALT;
@@ -1066,5 +1066,5 @@ void KKey::simplify()
#endif
}
-#endif //Q_WS_X11 || Q_WS_WIN
+#endif //TQ_WS_X11 || TQ_WS_WIN
diff --git a/tdecore/kkeyserver_x11.h b/tdecore/kkeyserver_x11.h
index 90330911b..7632984e7 100644
--- a/tdecore/kkeyserver_x11.h
+++ b/tdecore/kkeyserver_x11.h
@@ -71,7 +71,7 @@ namespace KKeyServer
* Initializes the symbol with the given Qt key code.
* @param keyQt the qt key code
* @return true if successful, false otherwise
- * @see Qt::Key
+ * @see TQt::Key
*/
bool initQt( int keyQt );
@@ -153,7 +153,7 @@ namespace KKeyServer
* @param key the key to get the data from
* @param bQt true to take the Qt keycode, false
* for the native key code
- * @see Qt::Key
+ * @see TQt::Key
* @see KKeyNative
*/
bool init( const KKey& key, bool bQt );
@@ -162,7 +162,7 @@ namespace KKeyServer
* Checks whether the key code is a native code.
* @return true if native code of the window system,
* false if it is a Qt keycode
- * @see Qt::Key
+ * @see TQt::Key
* @see KKeyNative
*/
bool isNative() const { return m_code != CODE_FOR_QT; }
@@ -351,7 +351,7 @@ namespace KKeyServer
* @param keyQt the qt key code
* @param sym if successful, the symbol will be written here
* @return true if successful, false otherwise
- * @see Qt::Key
+ * @see TQt::Key
* @see Sym
*/
TDECORE_EXPORT bool keyQtToSym( int keyQt, uint& sym );
@@ -362,7 +362,7 @@ namespace KKeyServer
* @param keyQt the qt key code
* @param mod if successful, the modifiers will be written here
* @return true if successful, false otherwise
- * @see Qt::Key
+ * @see TQt::Key
*/
TDECORE_EXPORT bool keyQtToMod( int keyQt, uint& mod );
@@ -371,7 +371,7 @@ namespace KKeyServer
* @param sym the symbol
* @param keyQt if successful, the qt key code will be written here
* @return true if successful, false otherwise
- * @see Qt::Key
+ * @see TQt::Key
* @see Sym
*/
TDECORE_EXPORT bool symToKeyQt( uint sym, int& keyQt );
@@ -383,7 +383,7 @@ namespace KKeyServer
* @param modQt the mask of Qt key code modifiers will be written here,
* if successful
* @return true if successful, false otherwise
- * @see Qt::Key
+ * @see TQt::Key
* @see KKey
*/
TDECORE_EXPORT bool modToModQt( uint mod, int& modQt );
@@ -406,7 +406,7 @@ namespace KKeyServer
* @param modQt the mask of Qt key code modifiers will be written here
* if successful
* @return true if successful, false otherwise
- * @see Qt::Key
+ * @see TQt::Key
*/
//wrapped for win32
TDECORE_EXPORT bool modXToModQt( uint modX, int& modQt );
@@ -414,7 +414,7 @@ namespace KKeyServer
/**
* Converts the Qt-compatible button state to x11 modifier.
*/
- TDECORE_EXPORT int qtButtonStateToMod( TQ_ButtonState s );
+ TDECORE_EXPORT int qtButtonStateToMod( TQt::ButtonState s );
/**
* Converts the mask of ORed X11 modifiers to
@@ -435,7 +435,7 @@ namespace KKeyServer
* @param modX the mask of ORed X11 modifiers
* @param symX if successful, the X11 symbol will be written here
* @return true if successful, false otherwise
- * @see Qt::Key
+ * @see TQt::Key
* @see Sym
*/
TDECORE_EXPORT bool codeXToSym( uchar codeX, uint modX, uint& symX );
diff --git a/tdecore/klibloader.cpp b/tdecore/klibloader.cpp
index 87a75cebd..ca77c5f8c 100644
--- a/tdecore/klibloader.cpp
+++ b/tdecore/klibloader.cpp
@@ -27,7 +27,7 @@
#include "tdeapplication.h"
#include "klibloader.h"
-#include "kstandarddirs.h"
+#include "tdestandarddirs.h"
#include "kdebug.h"
#include "tdelocale.h"
@@ -121,8 +121,8 @@ KLibrary::~KLibrary()
for ( ; it.current() ; ++it )
{
kdDebug(150) << "Factory still has object " << it.current() << " " << it.current()->name () << " Library = " << m_libname << endl;
- disconnect( it.current(), TQT_SIGNAL( destroyed() ),
- this, TQT_SLOT( slotObjectDestroyed() ) );
+ disconnect( it.current(), TQ_SIGNAL( destroyed() ),
+ this, TQ_SLOT( slotObjectDestroyed() ) );
}
m_objs.setAutoDelete(true);
m_objs.clear();
@@ -172,8 +172,8 @@ KLibFactory* KLibrary::factory()
return 0;
}
- connect( m_factory, TQT_SIGNAL( objectCreated( TQObject * ) ),
- this, TQT_SLOT( slotObjectCreated( TQObject * ) ) );
+ connect( m_factory, TQ_SIGNAL( objectCreated( TQObject * ) ),
+ this, TQ_SLOT( slotObjectCreated( TQObject * ) ) );
return m_factory;
}
@@ -214,15 +214,15 @@ void KLibrary::slotObjectCreated( TQObject *obj )
if ( m_objs.containsRef( obj ) )
return; // we know this object already
- connect( obj, TQT_SIGNAL( destroyed() ),
- this, TQT_SLOT( slotObjectDestroyed() ) );
+ connect( obj, TQ_SIGNAL( destroyed() ),
+ this, TQ_SLOT( slotObjectDestroyed() ) );
m_objs.append( obj );
}
void KLibrary::slotObjectDestroyed()
{
- m_objs.removeRef( TQT_TQOBJECT_CONST(sender()) );
+ m_objs.removeRef( sender() );
if ( m_objs.count() == 0 )
{
@@ -232,8 +232,8 @@ void KLibrary::slotObjectDestroyed()
if ( !m_timer )
{
m_timer = new TQTimer( this, "klibrary_shutdown_timer" );
- connect( m_timer, TQT_SIGNAL( timeout() ),
- this, TQT_SLOT( slotTimeout() ) );
+ connect( m_timer, TQ_SIGNAL( timeout() ),
+ this, TQ_SLOT( slotTimeout() ) );
}
// as long as it's not stable make the timeout short, for debugging
@@ -447,8 +447,8 @@ KLibrary* KLibLoader::library( const char *name )
}
m_libs.insert( name, wrap );
- connect( wrap->lib, TQT_SIGNAL( destroyed() ),
- this, TQT_SLOT( slotLibraryDestroyed() ) );
+ connect( wrap->lib, TQ_SIGNAL( destroyed() ),
+ this, TQ_SLOT( slotLibraryDestroyed() ) );
return wrap->lib;
}
@@ -470,8 +470,8 @@ void KLibLoader::unloadLibrary( const char *libname )
m_libs.remove( libname );
- disconnect( wrap->lib, TQT_SIGNAL( destroyed() ),
- this, TQT_SLOT( slotLibraryDestroyed() ) );
+ disconnect( wrap->lib, TQ_SIGNAL( destroyed() ),
+ this, TQ_SLOT( slotLibraryDestroyed() ) );
close_pending( wrap );
}
@@ -511,8 +511,8 @@ void KLibLoader::close_pending(KLibWrapPrivate *wrap)
for (; it.current(); ++it) {
wrap = it.current();
if (wrap->lib) {
- disconnect( wrap->lib, TQT_SIGNAL( destroyed() ),
- this, TQT_SLOT( slotLibraryDestroyed() ) );
+ disconnect( wrap->lib, TQ_SIGNAL( destroyed() ),
+ this, TQ_SLOT( slotLibraryDestroyed() ) );
KLibrary* to_delete = wrap->lib;
wrap->lib = 0L; // unset first, because KLibrary dtor can cause
delete to_delete; // recursive call to close_pending()
@@ -551,17 +551,17 @@ void KLibLoader::close_pending(KLibWrapPrivate *wrap)
We need to make sure to clear the clipboard before unloading a DSO
because the DSO could have defined an object derived from QMimeSource
and placed that on the clipboard. */
- /*kapp->clipboard()->clear();*/
+ /*tdeApp->clipboard()->clear();*/
/* Well.. let's do something more subtle... convert the clipboard context
to text. That should be safe as it only uses objects defined by Qt. */
- if( kapp->clipboard()->ownsSelection()) {
- kapp->clipboard()->setText(
- kapp->clipboard()->text( TQClipboard::Selection ), TQClipboard::Selection );
+ if( tdeApp->clipboard()->ownsSelection()) {
+ tdeApp->clipboard()->setText(
+ tdeApp->clipboard()->text( TQClipboard::Selection ), TQClipboard::Selection );
}
- if( kapp->clipboard()->ownsClipboard()) {
- kapp->clipboard()->setText(
- kapp->clipboard()->text( TQClipboard::Clipboard ), TQClipboard::Clipboard );
+ if( tdeApp->clipboard()->ownsClipboard()) {
+ tdeApp->clipboard()->setText(
+ tdeApp->clipboard()->text( TQClipboard::Clipboard ), TQClipboard::Clipboard );
}
}
diff --git a/tdecore/klibloader.h b/tdecore/klibloader.h
index d9e632184..813106164 100644
--- a/tdecore/klibloader.h
+++ b/tdecore/klibloader.h
@@ -36,7 +36,7 @@ class KLibLoaderPrivate;
class KLibraryPrivate;
# define K_EXPORT_COMPONENT_FACTORY( libname, factory ) \
- extern "C" { KDE_EXPORT void *init_##libname() { return new factory; } }
+ extern "C" { TDE_EXPORT void *init_##libname() { return new factory; } }
/**
* @short Represents a dynamically loaded library.
@@ -52,7 +52,7 @@ class TDECORE_EXPORT KLibrary : public TQObject
friend class KLibLoader;
friend class TQAsciiDict<KLibrary>;
- Q_OBJECT
+ TQ_OBJECT
public:
/**
* Don't create KLibrary objects on your own. Instead use KLibLoader.
@@ -143,7 +143,7 @@ class TDECORE_EXPORT KLibLoader : public TQObject
{
friend class KLibrary;
- Q_OBJECT
+ TQ_OBJECT
public:
/**
* You should NEVER destruct an instance of KLibLoader
@@ -322,7 +322,7 @@ private:
* The KLibFactory is used to create the components, the library has to offer.
* The factory of KSpread for example will create instances of KSpreadDoc,
* while the Konqueror factory will create KonqView widgets.
- * All objects created by the factory must be derived from TQObject, since QObject
+ * All objects created by the factory must be derived from TQObject, since TQObject
* offers type safe casting.
*
* KLibFactory is an abstract class. Reimplement the
@@ -332,7 +332,7 @@ private:
*/
class TDECORE_EXPORT KLibFactory : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
* Create a new factory.
@@ -349,7 +349,7 @@ public:
* It is valid behavior to create different kinds of objects
* depending on the requested @p classname. For example a koffice
* library may usually return a pointer to KoDocument. But
- * if asked for a TQWIDGET_OBJECT_NAME_STRING, it could create a wrapper widget,
+ * if asked for a "TQWidget", it could create a wrapper widget,
* that encapsulates the Koffice specific features.
*
* create() automatically emits a signal objectCreated to tell
@@ -363,7 +363,7 @@ public:
* @param args a list of arguments
*/
- TQObject* create( TQObject* parent = 0, const char* name = 0, const char* classname = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() );
+ TQObject* create( TQObject* parent = 0, const char* name = 0, const char* classname = "TQObject", const TQStringList &args = TQStringList() );
signals:
/**
@@ -382,7 +382,7 @@ protected:
* It is valid behavior to create different kinds of objects
* depending on the requested @p className. For example a koffice
* library may usually return a pointer to KoDocument. But
- * if asked for a TQWIDGET_OBJECT_NAME_STRING, it could create a wrapper widget,
+ * if asked for a "TQWidget", it could create a wrapper widget,
* that encapsulates the Koffice specific features.
*
* This function is called by #create()
@@ -392,7 +392,7 @@ protected:
* @param args a list of arguments
*/
virtual TQObject* createObject( TQObject* parent = 0, const char* name = 0,
- const char* className = TQOBJECT_OBJECT_NAME_STRING,
+ const char* className = "TQObject",
const TQStringList &args = TQStringList() ) = 0;
diff --git a/tdecore/kmacroexpander.cpp b/tdecore/kmacroexpander.cpp
index 9cfddcc63..a2ece0a40 100644
--- a/tdecore/kmacroexpander.cpp
+++ b/tdecore/kmacroexpander.cpp
@@ -55,7 +55,7 @@ void KMacroExpanderBase::expandMacros( TQString &str )
TQString rsts;
for (pos = 0; pos < str.length(); ) {
- if (ec != (QChar)0) {
+ if (ec != (TQChar)0) {
if (str.unicode()[pos] != ec)
goto nohit;
if (!(len = expandEscapedMacro( str, pos, rst )))
@@ -110,7 +110,7 @@ bool KMacroExpanderBase::expandMacrosShellQuote( TQString &str, uint &pos )
while (pos < str.length()) {
TQChar cc( str.unicode()[pos] );
- if (ec != (QChar)0) {
+ if (ec != (TQChar)0) {
if (cc != ec)
goto nohit;
if (!(len = expandEscapedMacro( str, pos, rst )))
@@ -160,20 +160,20 @@ bool KMacroExpanderBase::expandMacrosShellQuote( TQString &str, uint &pos )
continue;
nohit:
if (state.current == singlequote) {
- if (cc == (QChar)'\'')
+ if (cc == (TQChar)'\'')
state = sstack.pop();
- } else if (cc == (QChar)'\\') {
+ } else if (cc == (TQChar)'\\') {
// always swallow the char -> prevent anomalies due to expansion
pos += 2;
continue;
} else if (state.current == dollarquote) {
- if (cc == (QChar)'\'')
+ if (cc == (TQChar)'\'')
state = sstack.pop();
- } else if (cc == (QChar)'$') {
+ } else if (cc == (TQChar)'$') {
cc = str[++pos];
- if (cc == (QChar)'(') {
+ if (cc == (TQChar)'(') {
sstack.push( state );
- if (str[pos + 1] == (QChar)'(') {
+ if (str[pos + 1] == (TQChar)'(') {
Save sav = { str, pos + 2 };
ostack.push( sav );
state.current = math;
@@ -183,21 +183,21 @@ bool KMacroExpanderBase::expandMacrosShellQuote( TQString &str, uint &pos )
state.current = paren;
state.dquote = false;
}
- } else if (cc == (QChar)'{') {
+ } else if (cc == (TQChar)'{') {
sstack.push( state );
state.current = subst;
} else if (!state.dquote) {
- if (cc == (QChar)'\'') {
+ if (cc == (TQChar)'\'') {
sstack.push( state );
state.current = dollarquote;
- } else if (cc == (QChar)'"') {
+ } else if (cc == (TQChar)'"') {
sstack.push( state );
state.current = doublequote;
state.dquote = true;
}
}
// always swallow the char -> prevent anomalies due to expansion
- } else if (cc == (QChar)'`') {
+ } else if (cc == (TQChar)'`') {
str.replace( pos, 1, "$( " ); // add space -> avoid creating $((
pos2 = pos += 3;
for (;;) {
@@ -206,12 +206,12 @@ bool KMacroExpanderBase::expandMacrosShellQuote( TQString &str, uint &pos )
return false;
}
cc = str.unicode()[pos2];
- if (cc == (QChar)'`')
+ if (cc == (TQChar)'`')
break;
- if (cc == (QChar)'\\') {
+ if (cc == (TQChar)'\\') {
cc = str[++pos2];
- if (cc == (QChar)'$' || cc == (QChar)'`' || cc == (QChar)'\\' ||
- (cc == (QChar)'"' && state.dquote))
+ if (cc == (TQChar)'$' || cc == (TQChar)'`' || cc == (TQChar)'\\' ||
+ (cc == (TQChar)'"' && state.dquote))
{
str.remove( pos2 - 1, 1 );
continue;
@@ -225,25 +225,25 @@ bool KMacroExpanderBase::expandMacrosShellQuote( TQString &str, uint &pos )
state.dquote = false;
continue;
} else if (state.current == doublequote) {
- if (cc == (QChar)'"')
+ if (cc == (TQChar)'"')
state = sstack.pop();
- } else if (cc == (QChar)'\'') {
+ } else if (cc == (TQChar)'\'') {
if (!state.dquote) {
sstack.push( state );
state.current = singlequote;
}
- } else if (cc == (QChar)'"') {
+ } else if (cc == (TQChar)'"') {
if (!state.dquote) {
sstack.push( state );
state.current = doublequote;
state.dquote = true;
}
} else if (state.current == subst) {
- if (cc == (QChar)'}')
+ if (cc == (TQChar)'}')
state = sstack.pop();
- } else if (cc == (QChar)')') {
+ } else if (cc == (TQChar)')') {
if (state.current == math) {
- if (str[pos + 1] == (QChar)')') {
+ if (str[pos + 1] == (TQChar)')') {
state = sstack.pop();
pos += 2;
} else {
@@ -261,15 +261,15 @@ bool KMacroExpanderBase::expandMacrosShellQuote( TQString &str, uint &pos )
state = sstack.pop();
else
break;
- } else if (cc == (QChar)'}') {
+ } else if (cc == (TQChar)'}') {
if (state.current == KMacroExpander::group)
state = sstack.pop();
else
break;
- } else if (cc == (QChar)'(') {
+ } else if (cc == (TQChar)'(') {
sstack.push( state );
state.current = paren;
- } else if (cc == (QChar)'{') {
+ } else if (cc == (TQChar)'{') {
sstack.push( state );
state.current = KMacroExpander::group;
}
@@ -407,9 +407,9 @@ KMacroMapExpander<TQString,VT>::expandEscapedMacro( const TQString &str, uint po
return 2;
}
uint sl, rsl, rpos;
- if (str[pos + 1] == (QChar)'{') {
+ if (str[pos + 1] == (TQChar)'{') {
rpos = pos + 2;
- for (sl = 0; str[rpos + sl] != (QChar)'}'; sl++)
+ for (sl = 0; str[rpos + sl] != (TQChar)'}'; sl++)
if (rpos + sl >= str.length())
return 0;
rsl = sl + 3;
@@ -473,9 +473,9 @@ KWordMacroExpander::expandEscapedMacro( const TQString &str, uint pos, TQStringL
return 2;
}
uint sl, rsl, rpos;
- if (str[pos + 1] == (QChar)'{') {
+ if (str[pos + 1] == (TQChar)'{') {
rpos = pos + 2;
- for (sl = 0; str[rpos + sl] != (QChar)'}'; sl++)
+ for (sl = 0; str[rpos + sl] != (TQChar)'}'; sl++)
if (rpos + sl >= str.length())
return 0;
rsl = sl + 3;
@@ -494,7 +494,7 @@ KWordMacroExpander::expandEscapedMacro( const TQString &str, uint pos, TQStringL
////////////
template<class KT,class VT>
-inline QString
+inline TQString
TexpandMacros( const TQString &ostr, const TQMap<KT,VT> &map, TQChar c )
{
TQString str( ostr );
@@ -504,7 +504,7 @@ TexpandMacros( const TQString &ostr, const TQMap<KT,VT> &map, TQChar c )
}
template<class KT,class VT>
-inline QString
+inline TQString
TexpandMacrosShellQuote( const TQString &ostr, const TQMap<KT,VT> &map, TQChar c )
{
TQString str( ostr );
diff --git a/tdecore/kmanagerselection.cpp b/tdecore/kmanagerselection.cpp
index 2e019f73e..8dc2f3f48 100644
--- a/tdecore/kmanagerselection.cpp
+++ b/tdecore/kmanagerselection.cpp
@@ -41,7 +41,7 @@ DEALINGS IN THE SOFTWARE.
#endif
#include <tqobject.h>
-#ifdef Q_WS_X11 // FIXME(E)
+#ifdef TQ_WS_X11 // FIXME(E)
#include "kmanagerselection.h"
@@ -52,7 +52,7 @@ DEALINGS IN THE SOFTWARE.
#include <X11/Xatom.h>
class TDESelectionOwnerPrivate
- : public QWidget
+ : public TQWidget
{
public:
TDESelectionOwnerPrivate( TDESelectionOwner* owner );
@@ -65,7 +65,7 @@ class TDESelectionOwnerPrivate
TDESelectionOwnerPrivate::TDESelectionOwnerPrivate( TDESelectionOwner* owner_P )
: owner( owner_P )
{
- kapp->installX11EventFilter( TQT_TQWIDGET(this) );
+ tdeApp->installX11EventFilter( this );
}
bool TDESelectionOwnerPrivate::x11Event( XEvent* ev_P )
@@ -367,7 +367,7 @@ Atom TDESelectionOwner::xa_timestamp = None;
class TDESelectionWatcherPrivate
- : public QWidget
+ : public TQWidget
{
public:
TDESelectionWatcherPrivate( TDESelectionWatcher* watcher );
@@ -380,7 +380,7 @@ class TDESelectionWatcherPrivate
TDESelectionWatcherPrivate::TDESelectionWatcherPrivate( TDESelectionWatcher* watcher_P )
: watcher( watcher_P )
{
- kapp->installX11EventFilter( TQT_TQWIDGET(this) );
+ tdeApp->installX11EventFilter( this );
}
bool TDESelectionWatcherPrivate::x11Event( XEvent* ev_P )
diff --git a/tdecore/kmanagerselection.h b/tdecore/kmanagerselection.h
index de294187d..59cc35c56 100644
--- a/tdecore/kmanagerselection.h
+++ b/tdecore/kmanagerselection.h
@@ -28,11 +28,7 @@ DEALINGS IN THE SOFTWARE.
#include <tqobject.h>
#include <tdelibs_export.h>
-#ifdef Q_MOC_RUN
-#define Q_WS_X11
-#endif // Q_MOC_RUN
-
-#ifdef Q_WS_X11 // FIXME(E)
+#ifdef TQ_WS_X11 // FIXME(E)
#include <X11/Xlib.h>
@@ -50,7 +46,7 @@ class TDESelectionOwnerPrivate;
class TDECORE_EXPORT TDESelectionOwner
: public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
* This constructor initializes the object, but doesn't perform any
@@ -173,7 +169,7 @@ class TDESelectionWatcherPrivate;
class TDECORE_EXPORT TDESelectionWatcher
: public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
* This constructor initializes the object, but doesn't perform any
diff --git a/tdecore/kmimesourcefactory.cpp b/tdecore/kmimesourcefactory.cpp
index 8ed02941e..c13c22e2d 100644
--- a/tdecore/kmimesourcefactory.cpp
+++ b/tdecore/kmimesourcefactory.cpp
@@ -20,7 +20,7 @@
#include <kdebug.h>
#include <tdeglobal.h>
-#include <kinstance.h>
+#include <tdeinstance.h>
#include <kiconloader.h>
#include "kmimesourcefactory.h"
diff --git a/tdecore/kmountpoint.cpp b/tdecore/kmountpoint.cpp
index a9be89e76..e5a67e0f3 100644
--- a/tdecore/kmountpoint.cpp
+++ b/tdecore/kmountpoint.cpp
@@ -25,7 +25,7 @@
#include <tqfile.h>
-#include "kstandarddirs.h"
+#include "tdestandarddirs.h"
#include "kmountpoint.h"
@@ -33,6 +33,7 @@
#include <volmgt.h>
#endif
#ifdef HAVE_SYS_MNTTAB_H
+#include <stdio.h>
#include <sys/mnttab.h>
#endif
#ifdef HAVE_MNTENT_H
@@ -239,12 +240,7 @@ KMountPoint::List KMountPoint::currentMountPoints(int infoNeeded)
KMountPoint *mp = new KMountPoint();
mp->m_mountedFrom = TQFile::decodeName(mounted[i].f_mntfromname);
mp->m_mountPoint = TQFile::decodeName(mounted[i].f_mntonname);
-
-#ifdef __osf__
- mp->m_mountType = TQFile::decodeName(mnt_names[mounted[i].f_type]);
-#else
mp->m_mountType = TQFile::decodeName(mounted[i].f_fstypename);
-#endif
if (infoNeeded & NeedMountOptions)
{
@@ -333,7 +329,7 @@ KMountPoint::List KMountPoint::currentMountPoints(int infoNeeded)
}
free( mntctl_buffer );
-#elif defined(Q_WS_WIN)
+#elif defined(TQ_WS_WIN)
//TODO?
#else
STRUCT_SETMNTENT mnttab;
diff --git a/tdecore/knotifyclient.cpp b/tdecore/knotifyclient.cpp
index b1989fbf6..7d4c675d7 100644
--- a/tdecore/knotifyclient.cpp
+++ b/tdecore/knotifyclient.cpp
@@ -24,14 +24,14 @@
#include <tqptrstack.h>
#include <tdeapplication.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeapplication.h>
#include <tdeconfig.h>
#include <dcopclient.h>
#include <kdebug.h>
#include <kstaticdeleter.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/XKBlib.h>
@@ -74,14 +74,14 @@ static int sendNotifyEvent(const TQString &message, const TQString &text,
int present, int level, const TQString &sound,
const TQString &file, int winId )
{
- if (!kapp) return 0;
+ if (!tdeApp) return 0;
// ensure tray icon is shown and positioned before sending event to notification daemon
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
XFlush(tqt_xdisplay());
#endif
- DCOPClient *client=kapp->dcopClient();
+ DCOPClient *client=tdeApp->dcopClient();
if (!client->isAttached())
{
client->attach();
@@ -94,10 +94,10 @@ static int sendNotifyEvent(const TQString &message, const TQString &text,
if( canAvoidStartupEvent( message, appname, present ))
return -1; // done "successfully" - there will be no event presentation
- int uniqueId = kMax( 1, kapp->random() ); // must not be 0 -- means failure!
+ int uniqueId = kMax( 1, tdeApp->random() ); // must not be 0 -- means failure!
// knotify daemon needs toplevel window
- TQWidget* widget = TQT_TQWIDGET(TQWidget::find( (WId)winId ));
+ TQWidget* widget = TQWidget::find( (WId)winId );
if( widget )
winId = (int)widget->topLevelWidget()->winId();
@@ -238,7 +238,7 @@ TQString KNotifyClient::getDefaultFile(const TQString &eventname, int present)
bool KNotifyClient::startDaemon()
{
static bool firstTry = true;
- if (!kapp->dcopClient()->isApplicationRegistered(daemonName)) {
+ if (!tdeApp->dcopClient()->isApplicationRegistered(daemonName)) {
if( firstTry ) {
firstTry = false;
return TDEApplication::startServiceByDesktopName(daemonName) == 0;
@@ -251,12 +251,12 @@ bool KNotifyClient::startDaemon()
void KNotifyClient::beep(const TQString& reason)
{
- if ( !kapp || KNotifyClient::Instance::currentInstance()->useSystemBell() ) {
+ if ( !tdeApp || KNotifyClient::Instance::currentInstance()->useSystemBell() ) {
TQApplication::beep();
return;
}
- DCOPClient *client=kapp->dcopClient();
+ DCOPClient *client=tdeApp->dcopClient();
if (!client->isAttached())
{
client->attach();
@@ -307,7 +307,7 @@ public:
{
if (m_instances.isEmpty())
{
- m_defaultInstance = new Instance(kapp);
+ m_defaultInstance = new Instance(tdeApp);
}
return m_instances.top();
}
@@ -360,7 +360,7 @@ bool KNotifyClient::Instance::useSystemBell() const
// static methods
// We always return a valid KNotifyClient::Instance here. If no special one
-// is available, we have a default-instance with kapp as TDEInstance.
+// is available, we have a default-instance with tdeApp as TDEInstance.
// We make sure to always have that default-instance in the stack, because
// the stack might have gotten cleared in the destructor.
// We can't use QPtrStack::setAutoDelete( true ), because no instance besides
diff --git a/tdecore/knotifyclient.h b/tdecore/knotifyclient.h
index a824d5a37..d9afbf8f4 100644
--- a/tdecore/knotifyclient.h
+++ b/tdecore/knotifyclient.h
@@ -185,7 +185,7 @@ namespace KNotifyClient
* the user connected the event to sound, only. Can be TQString::null.
* @return a value > 0, unique for this event if successful, 0 otherwise
*/
- TDECORE_EXPORT int event(const TQString &message, const TQString &text=TQString::null) KDE_DEPRECATED;
+ TDECORE_EXPORT int event(const TQString &message, const TQString &text=TQString::null) TDE_DEPRECATED;
/**
* @deprecated
@@ -194,7 +194,7 @@ namespace KNotifyClient
* @param text The text explaining the event you raise. Can be TQString::null.
* @return a value > 0, unique for this event if successful, 0 otherwise
*/
- TDECORE_EXPORT int event( StandardEvent event, const TQString& text=TQString::null ) KDE_DEPRECATED;
+ TDECORE_EXPORT int event( StandardEvent event, const TQString& text=TQString::null ) TDE_DEPRECATED;
/**
* @deprecated
@@ -207,7 +207,7 @@ namespace KNotifyClient
* @return a value > 0, unique for this event if successful, 0 otherwise
*/
TDECORE_EXPORT int userEvent(const TQString &text=TQString::null, int present=Default, int level=Default,
- const TQString &sound=TQString::null, const TQString &file=TQString::null) KDE_DEPRECATED;
+ const TQString &sound=TQString::null, const TQString &file=TQString::null) TDE_DEPRECATED;
//#endif
@@ -217,7 +217,7 @@ namespace KNotifyClient
* placed appropriately.
*
* Call it by KNotifyClient::event(widget->winId(), "EventName");
- * It will use TDEApplication::kApplication->dcopClient() to communicate to
+ * It will use TDEApplication::tdeApplication->dcopClient() to communicate to
* the server
* @param winId The winId() of the widget where the event originates
* @param message The name of the event
diff --git a/tdecore/kpalette.cpp b/tdecore/kpalette.cpp
index 7335e8e14..66f235e5e 100644
--- a/tdecore/kpalette.cpp
+++ b/tdecore/kpalette.cpp
@@ -23,7 +23,7 @@
#include <tqfile.h>
#include <tqtextstream.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeglobal.h>
#include <ksavefile.h>
#include <kstringhandler.h>
diff --git a/tdecore/kprotocolinfo_tdecore.cpp b/tdecore/kprotocolinfo_tdecore.cpp
index 4377ec9ce..482181784 100644
--- a/tdecore/kprotocolinfo_tdecore.cpp
+++ b/tdecore/kprotocolinfo_tdecore.cpp
@@ -18,18 +18,18 @@
#ifdef MAKE_TDECORE_LIB //needed for proper linkage (win32)
#undef TDEIO_EXPORT
-#define TDEIO_EXPORT KDE_EXPORT
+#define TDEIO_EXPORT TDE_EXPORT
#endif
#define KPROTOCOLINFO_TDECORE
#include "kprotocolinfo.h"
#include "kprotocolinfofactory.h"
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeglobal.h>
#include <tdeapplication.h>
#include <kdebug.h>
-#include <ksimpleconfig.h>
+#include <tdesimpleconfig.h>
#include <tdeconfig.h>
#include <kstringhandler.h>
@@ -58,7 +58,7 @@ KProtocolInfo::KProtocolInfo(const TQString &path)
d = new KProtocolInfoPrivate;
TQString fullPath = locate("services", path);
- KSimpleConfig config( fullPath, true );
+ TDESimpleConfig config( fullPath, true );
config.setGroup( "Protocol" );
m_name = config.readEntry( "protocol" );
diff --git a/tdecore/kprotocolinfofactory.cpp b/tdecore/kprotocolinfofactory.cpp
index 115a44f25..19efdc465 100644
--- a/tdecore/kprotocolinfofactory.cpp
+++ b/tdecore/kprotocolinfofactory.cpp
@@ -17,7 +17,7 @@
Boston, MA 02110-1301, USA.
*/
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeglobal.h>
#include <tdeapplication.h>
#include <kdebug.h>
diff --git a/tdecore/kpty.cpp b/tdecore/kpty.cpp
index a3ff34aec..d801b7c9a 100644
--- a/tdecore/kpty.cpp
+++ b/tdecore/kpty.cpp
@@ -24,17 +24,12 @@
#include <config.h>
#include "kpty.h"
-#include "kprocess.h"
+#include "tdeprocess.h"
#ifdef __sgi
#define __svr4__
#endif
-#ifdef __osf__
-#define _OSF_SOURCE
-#include <float.h>
-#endif
-
#ifdef _AIX
#define _ALL_SOURCE
#endif
@@ -91,11 +86,9 @@ extern "C" {
}
#endif
-#if !defined(__osf__)
-# ifdef HAVE_TERMIO_H
+#ifdef HAVE_TERMIO_H
/* needed at least on AIX */
-# include <termio.h>
-# endif
+# include <termio.h>
#endif
#if defined(HAVE_TCGETATTR)
@@ -128,7 +121,7 @@ extern "C" {
#endif
#include <kdebug.h>
-#include <kstandarddirs.h> // locate
+#include <tdestandarddirs.h> // locate
#ifndef CINTR
#define CINTR 0x03
diff --git a/tdecore/kqiodevicegzip_p.cpp b/tdecore/kqiodevicegzip_p.cpp
index 0dcabed74..9ad82a653 100644
--- a/tdecore/kqiodevicegzip_p.cpp
+++ b/tdecore/kqiodevicegzip_p.cpp
@@ -37,7 +37,7 @@ KQIODeviceGZip::~KQIODeviceGZip(void)
close();
}
-bool KQIODeviceGZip::open(TQ_OpenMode mode)
+bool KQIODeviceGZip::open(int mode)
{
if (m_gzfile)
close(); // One file is already open, so close it first.
@@ -78,11 +78,7 @@ void KQIODeviceGZip::flush(void)
}
}
-#ifdef USE_QT4
-qint64 KQIODeviceGZip::size(void) const
-#else // USE_QT4
TQIODevice::Offset KQIODeviceGZip::size(void) const
-#endif // USE_QT4
{
return 0; // You cannot determine size!
}
@@ -115,7 +111,7 @@ bool KQIODeviceGZip::reset(void)
return (gzrewind(m_gzfile)>=0);
}
-TQT_TQIO_LONG KQIODeviceGZip::tqreadBlock( char *data, TQT_TQIO_ULONG maxlen )
+TQ_LONG KQIODeviceGZip::readBlock( char *data, TQ_ULONG maxlen )
{
TQ_LONG result=0;
if (m_gzfile)
@@ -126,7 +122,7 @@ TQT_TQIO_LONG KQIODeviceGZip::tqreadBlock( char *data, TQT_TQIO_ULONG maxlen )
return result;
}
-TQT_TQIO_LONG KQIODeviceGZip::tqwriteBlock( const char *data, TQT_TQIO_ULONG len )
+TQ_LONG KQIODeviceGZip::writeBlock( const char *data, TQ_ULONG len )
{
TQ_ULONG result=0;
if (m_gzfile)
diff --git a/tdecore/kqiodevicegzip_p.h b/tdecore/kqiodevicegzip_p.h
index 0581602c1..182b26141 100644
--- a/tdecore/kqiodevicegzip_p.h
+++ b/tdecore/kqiodevicegzip_p.h
@@ -38,22 +38,18 @@ public:
KQIODeviceGZip(const TQString& filename);
~KQIODeviceGZip(void);
- bool open(TQ_OpenMode mode);
+ bool open(int mode);
void close(void);
void flush(void);
-#ifdef USE_QT4
- qint64 size(void) const;
-#else // USE_QT4
Offset size(void) const;
-#endif // USE_QT4
Offset at(void) const;
bool at(Offset pos);
bool atEnd(void) const;
bool reset (void);
- TQT_TQIO_LONG tqreadBlock( char *data, TQT_TQIO_ULONG maxlen );
- TQT_TQIO_LONG tqwriteBlock( const char *data, TQT_TQIO_ULONG len );
+ TQ_LONG readBlock( char *data, TQ_ULONG maxlen );
+ TQ_LONG writeBlock( const char *data, TQ_ULONG len );
int getch(void);
int putch(int ch);
diff --git a/tdecore/krandomsequence.h b/tdecore/krandomsequence.h
index 256d03f17..50c413c47 100644
--- a/tdecore/krandomsequence.h
+++ b/tdecore/krandomsequence.h
@@ -46,7 +46,7 @@ public:
* reproduced by starting the sequence with the same seed.
*
* If you need a single value which needs to be unpredictable,
- * you need to use kapp->random() instead.
+ * you need to use tdeApp->random() instead.
*
* @param lngSeed Seed to initialize the sequence with.
* If lngSeed is 0, the sequence is initialized with a value from
diff --git a/tdecore/kregexp.h b/tdecore/kregexp.h
index cc5ff0ea6..0bb2b04ca 100644
--- a/tdecore/kregexp.h
+++ b/tdecore/kregexp.h
@@ -57,7 +57,7 @@ class KRegExpPrivate;
*
* @author Torben Weis <weis@kde.org>
*/
-class TDECORE_EXPORT KDE_DEPRECATED KRegExp
+class TDECORE_EXPORT TDE_DEPRECATED KRegExp
{
public:
diff --git a/tdecore/krfcdate.cpp b/tdecore/krfcdate.cpp
index d9a374d0c..08691fd15 100644
--- a/tdecore/krfcdate.cpp
+++ b/tdecore/krfcdate.cpp
@@ -394,7 +394,7 @@ KRFCDate::parseDateISO8601( const TQString& input_ )
mday = l[2].toUInt();
// Z suffix means UTC.
- if ((QChar)'Z' == timeString.at(timeString.length() - 1)) {
+ if ((TQChar)'Z' == timeString.at(timeString.length() - 1)) {
timeString.remove(timeString.length() - 1, 1);
}
@@ -431,12 +431,16 @@ KRFCDate::parseDateISO8601( const TQString& input_ )
l = TQStringList::split(':', timeString);
- if (l.size() < 3)
+ // If the 'T' separator was included, there must at least
+ // be the hour, if not then it is invalid.
+ if (l.size() < 1)
return 0;
hour = l[0].toUInt();
- min = l[1].toUInt();
- sec = l[2].toUInt();
+
+ // Minutes and seconds can be omitted.
+ min = (l.size() >= 2) ? l[1].toUInt() : 0;
+ sec = (l.size() >= 3) ? l[2].toUInt() : 0;
time_t result = ymdhms_to_seconds(year, month, mday, hour, min, sec);
diff --git a/tdecore/krootprop.cpp b/tdecore/krootprop.cpp
index c717a1823..72fd5ae78 100644
--- a/tdecore/krootprop.cpp
+++ b/tdecore/krootprop.cpp
@@ -20,7 +20,7 @@
#include <tqwidget.h>
#include "config.h"
-#ifdef Q_WS_X11 // not needed anyway :-)
+#ifdef TQ_WS_X11 // not needed anyway :-)
#include "krootprop.h"
#include "tdeglobal.h"
diff --git a/tdecore/ksavefile.cpp b/tdecore/ksavefile.cpp
index 4ad96c0f2..9bf409c1c 100644
--- a/tdecore/ksavefile.cpp
+++ b/tdecore/ksavefile.cpp
@@ -38,7 +38,7 @@
#include <kde_file.h>
#include "tdeapplication.h"
#include "ksavefile.h"
-#include "kstandarddirs.h"
+#include "tdestandarddirs.h"
KSaveFile::KSaveFile(const TQString &filename, int mode)
: mTempFile(true)
@@ -171,7 +171,7 @@ bool KSaveFile::backupFile( const TQString& qFilename, const TQString& backupDir
else
nameOnly = cFilename.mid(slash + 1);
cBackup = TQFile::encodeName(backupDir);
- if ( backupDir[backupDir.length()-1] != (QChar)'/' )
+ if ( backupDir[backupDir.length()-1] != (TQChar)'/' )
cBackup += '/';
cBackup += nameOnly;
}
diff --git a/tdecore/kshell.cpp b/tdecore/kshell.cpp
index 7e4eda947..155ecdb1c 100644
--- a/tdecore/kshell.cpp
+++ b/tdecore/kshell.cpp
@@ -75,17 +75,17 @@ TQStringList KShell::splitArgs( const TQString &args, int flags, int *err )
c = args.unicode()[pos++];
} while (c.isSpace());
TQString cret;
- if ((flags & TildeExpand) && c == (QChar)'~') {
+ if ((flags & TildeExpand) && c == (TQChar)'~') {
uint opos = pos;
for (; ; pos++) {
if (pos >= args.length())
break;
c = args.unicode()[pos];
- if (c == (QChar)'/' || c.isSpace())
+ if (c == (TQChar)'/' || c.isSpace())
break;
if (isQuoteMeta( c )) {
pos = opos;
- c = (QChar)'~';
+ c = (TQChar)'~';
goto notilde;
}
if ((flags & AbortOnMeta) && isMeta( c ))
@@ -94,7 +94,7 @@ TQStringList KShell::splitArgs( const TQString &args, int flags, int *err )
TQString ccret = homeDir( TQConstString( args.unicode() + opos, pos - opos ).string() );
if (ccret.isEmpty()) {
pos = opos;
- c = (QChar)'~';
+ c = (TQChar)'~';
goto notilde;
}
if (pos >= args.length()) {
@@ -111,67 +111,67 @@ TQStringList KShell::splitArgs( const TQString &args, int flags, int *err )
}
// before the notilde label, as a tilde does not match anyway
if (firstword) {
- if (c == (QChar)'_' || (c >= (QChar)'A' && c <= (QChar)'Z') || (c >= (QChar)'a' && c <= (QChar)'z')) {
+ if (c == (TQChar)'_' || (c >= (TQChar)'A' && c <= (TQChar)'Z') || (c >= (TQChar)'a' && c <= (TQChar)'z')) {
uint pos2 = pos;
TQChar cc;
do
cc = args[pos2++];
- while (cc == (QChar)'_' || (cc >= (QChar)'A' && cc <= (QChar)'Z') ||
- (cc >= (QChar)'a' && cc <= (QChar)'z') || (cc >= (QChar)'0' && cc <= (QChar)'9'));
- if (cc == (QChar)'=')
+ while (cc == (TQChar)'_' || (cc >= (TQChar)'A' && cc <= (TQChar)'Z') ||
+ (cc >= (TQChar)'a' && cc <= (TQChar)'z') || (cc >= (TQChar)'0' && cc <= (TQChar)'9'));
+ if (cc == (TQChar)'=')
goto metaerr;
}
}
notilde:
do {
- if (c == (QChar)'\'') {
+ if (c == (TQChar)'\'') {
uint spos = pos;
do {
if (pos >= args.length())
goto quoteerr;
c = args.unicode()[pos++];
- } while (c != (QChar)'\'');
+ } while (c != (TQChar)'\'');
cret += TQConstString( args.unicode() + spos, pos - spos - 1 ).string();
- } else if (c == (QChar)'"') {
+ } else if (c == (TQChar)'"') {
for (;;) {
if (pos >= args.length())
goto quoteerr;
c = args.unicode()[pos++];
- if (c == (QChar)'"')
+ if (c == (TQChar)'"')
break;
- if (c == (QChar)'\\') {
+ if (c == (TQChar)'\\') {
if (pos >= args.length())
goto quoteerr;
c = args.unicode()[pos++];
- if (c != (QChar)'"' && c != (QChar)'\\' &&
- !((flags & AbortOnMeta) && (c == (QChar)'$' || c == (QChar)'`')))
- cret += (QChar)'\\';
- } else if ((flags & AbortOnMeta) && (c == (QChar)'$' || c == (QChar)'`'))
+ if (c != (TQChar)'"' && c != (TQChar)'\\' &&
+ !((flags & AbortOnMeta) && (c == (TQChar)'$' || c == (TQChar)'`')))
+ cret += (TQChar)'\\';
+ } else if ((flags & AbortOnMeta) && (c == (TQChar)'$' || c == (TQChar)'`'))
goto metaerr;
cret += c;
}
- } else if (c == (QChar)'$' && args[pos] == (QChar)'\'') {
+ } else if (c == (TQChar)'$' && args[pos] == (TQChar)'\'') {
pos++;
for (;;) {
if (pos >= args.length())
goto quoteerr;
c = args.unicode()[pos++];
- if (c == (QChar)'\'')
+ if (c == (TQChar)'\'')
break;
- if (c == (QChar)'\\') {
+ if (c == (TQChar)'\\') {
if (pos >= args.length())
goto quoteerr;
c = args.unicode()[pos++];
switch (c) {
- case 'a': cret += (QChar)'\a'; break;
- case 'b': cret += (QChar)'\b'; break;
- case 'e': cret += (QChar)'\033'; break;
- case 'f': cret += (QChar)'\f'; break;
- case 'n': cret += (QChar)'\n'; break;
- case 'r': cret += (QChar)'\r'; break;
- case 't': cret += (QChar)'\t'; break;
- case '\\': cret += (QChar)'\\'; break;
- case '\'': cret += (QChar)'\''; break;
+ case 'a': cret += (TQChar)'\a'; break;
+ case 'b': cret += (TQChar)'\b'; break;
+ case 'e': cret += (TQChar)'\033'; break;
+ case 'f': cret += (TQChar)'\f'; break;
+ case 'n': cret += (TQChar)'\n'; break;
+ case 'r': cret += (TQChar)'\r'; break;
+ case 't': cret += (TQChar)'\t'; break;
+ case '\\': cret += (TQChar)'\\'; break;
+ case '\'': cret += (TQChar)'\''; break;
case 'c': cret += args[pos++] & 31; break;
case 'x':
{
@@ -189,11 +189,11 @@ TQStringList KShell::splitArgs( const TQString &args, int flags, int *err )
break;
}
default:
- if (c >= (QChar)'0' && c <= (QChar)'7') {
+ if (c >= (TQChar)'0' && c <= (TQChar)'7') {
int hv = c - '0';
for (int i = 0; i < 2; i++) {
c = args[pos];
- if (c < (QChar)'0' || c > (QChar)'7')
+ if (c < (TQChar)'0' || c > (TQChar)'7')
break;
hv = hv * 8 + (c - '0');
pos++;
@@ -209,7 +209,7 @@ TQStringList KShell::splitArgs( const TQString &args, int flags, int *err )
cret += c;
}
} else {
- if (c == (QChar)'\\') {
+ if (c == (TQChar)'\\') {
if (pos >= args.length())
goto quoteerr;
c = args.unicode()[pos++];
@@ -354,7 +354,7 @@ TQString KShell::joinArgsDQ( const TQStringList &args )
TQString KShell::tildeExpand( const TQString &fname )
{
- if (fname[0] == (QChar)'~') {
+ if (fname[0] == (TQChar)'~') {
int pos = fname.find( '/' );
if (pos < 0)
return homeDir( TQConstString( fname.unicode() + 1, fname.length() - 1 ).string() );
diff --git a/tdecore/ksimpledirwatch.cpp b/tdecore/ksimpledirwatch.cpp
index cbb4ce682..7d9cfa70c 100644
--- a/tdecore/ksimpledirwatch.cpp
+++ b/tdecore/ksimpledirwatch.cpp
@@ -52,11 +52,17 @@
// debug
#include <sys/ioctl.h>
+#ifdef Q_OS_SOLARIS
+#include <sys/filio.h> /* FIONREAD is defined here */
+#endif /* solaris */
+
#ifdef HAVE_INOTIFY
#include <unistd.h>
#include <fcntl.h>
#include <sys/syscall.h>
+#ifdef Q_OS_LINUX
#include <linux/types.h>
+#endif /* Linux */
// Linux kernel headers are documented to not compile
#define _S390_BITOPS_H
#include <sys/inotify.h>
@@ -207,7 +213,7 @@ KSimpleDirWatchPrivate::KSimpleDirWatchPrivate()
: rescan_timer(0, "KSimpleDirWatchPrivate::rescan_timer")
{
timer = new TQTimer(this, "KSimpleDirWatchPrivate::timer");
- connect (timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotRescan()));
+ connect (timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotRescan()));
freq = 3600000; // 1 hour as upper bound
statEntries = 0;
delayRemove = false;
@@ -221,7 +227,7 @@ KSimpleDirWatchPrivate::KSimpleDirWatchPrivate()
// used for FAM and DNOTIFY
rescan_all = false;
- connect(&rescan_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotRescan()));
+ connect(&rescan_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotRescan()));
#ifdef HAVE_FAM
// It's possible that FAM server can't be started
@@ -230,8 +236,8 @@ KSimpleDirWatchPrivate::KSimpleDirWatchPrivate()
use_fam=true;
sn = new TQSocketNotifier( FAMCONNECTION_GETFD(&fc),
TQSocketNotifier::Read, this);
- connect( sn, TQT_SIGNAL(activated(int)),
- this, TQT_SLOT(famEventReceived()) );
+ connect( sn, TQ_SIGNAL(activated(int)),
+ this, TQ_SLOT(famEventReceived()) );
}
else {
kdDebug(7001) << "Can't use FAM (fam daemon not running?)" << endl;
@@ -267,7 +273,7 @@ KSimpleDirWatchPrivate::KSimpleDirWatchPrivate()
fcntl(m_inotify_fd, F_SETFD, FD_CLOEXEC);
mSn = new TQSocketNotifier( m_inotify_fd, TQSocketNotifier::Read, this );
- connect( mSn, TQT_SIGNAL(activated( int )), this, TQT_SLOT( slotActivated() ) );
+ connect( mSn, TQ_SIGNAL(activated( int )), this, TQ_SLOT( slotActivated() ) );
}
#endif
@@ -301,7 +307,7 @@ KSimpleDirWatchPrivate::KSimpleDirWatchPrivate()
fcntl(mPipe[0], F_SETFL, O_NONBLOCK | fcntl(mPipe[0], F_GETFL));
fcntl(mPipe[1], F_SETFL, O_NONBLOCK | fcntl(mPipe[1], F_GETFL));
mSn = new TQSocketNotifier( mPipe[0], TQSocketNotifier::Read, this);
- connect(mSn, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotActivated()));
+ connect(mSn, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotActivated()));
// Install the signal handler only once
if ( dnotify_signal == 0 )
{
@@ -1212,7 +1218,7 @@ void KSimpleDirWatchPrivate::emitEvent(Entry* e, int event, const TQString &file
else
#ifdef Q_OS_UNIX
path += "/" + fileName;
-#elif defined(Q_WS_WIN)
+#elif defined(TQ_WS_WIN)
//current drive is passed instead of /
path += TQDir::currentDirPath().left(2) + "/" + fileName;
#endif
@@ -1366,7 +1372,7 @@ void KSimpleDirWatchPrivate::slotRescan()
if ( timerRunning )
timer->start(freq);
- TQTimer::singleShot(0, this, TQT_SLOT(slotRemoveDelayed()));
+ TQTimer::singleShot(0, this, TQ_SLOT(slotRemoveDelayed()));
}
bool KSimpleDirWatchPrivate::isNoisyFile( const char * filename )
@@ -1415,7 +1421,7 @@ void KSimpleDirWatchPrivate::famEventReceived()
checkFAMEvent(&fe);
}
- TQTimer::singleShot(0, this, TQT_SLOT(slotRemoveDelayed()));
+ TQTimer::singleShot(0, this, TQ_SLOT(slotRemoveDelayed()));
}
void KSimpleDirWatchPrivate::checkFAMEvent(FAMEvent* fe)
diff --git a/tdecore/ksimpledirwatch.h b/tdecore/ksimpledirwatch.h
index dd6ccf2ec..41934aa26 100644
--- a/tdecore/ksimpledirwatch.h
+++ b/tdecore/ksimpledirwatch.h
@@ -65,7 +65,7 @@ class KSimpleDirWatchPrivate;
*/
class TDEIO_EXPORT KSimpleDirWatch : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
diff --git a/tdecore/ksimpledirwatch_p.h b/tdecore/ksimpledirwatch_p.h
index cf1288064..7c6986d1a 100644
--- a/tdecore/ksimpledirwatch_p.h
+++ b/tdecore/ksimpledirwatch_p.h
@@ -23,7 +23,7 @@
*/
class KSimpleDirWatchPrivate : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
enum entryStatus { Normal = 0, NonExistent };
diff --git a/tdecore/ksock.cpp b/tdecore/ksock.cpp
index 3f4886b8a..8de28f476 100644
--- a/tdecore/ksock.cpp
+++ b/tdecore/ksock.cpp
@@ -140,7 +140,7 @@ void TDESocket::enableRead( bool _state )
if ( !d->readNotifier )
{
d->readNotifier = new TQSocketNotifier( sock, TQSocketNotifier::Read );
- TQObject::connect( d->readNotifier, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( slotRead(int) ) );
+ TQObject::connect( d->readNotifier, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( slotRead(int) ) );
}
else
d->readNotifier->setEnabled( true );
@@ -156,8 +156,8 @@ void TDESocket::enableWrite( bool _state )
if ( !d->writeNotifier )
{
d->writeNotifier = new TQSocketNotifier( sock, TQSocketNotifier::Write );
- TQObject::connect( d->writeNotifier, TQT_SIGNAL( activated(int) ), this,
- TQT_SLOT( slotWrite(int) ) );
+ TQObject::connect( d->writeNotifier, TQ_SIGNAL( activated(int) ), this,
+ TQ_SLOT( slotWrite(int) ) );
}
else
d->writeNotifier->setEnabled( true );
@@ -357,7 +357,7 @@ bool TDEServerSocket::bindAndListen(bool suppressFailureMessages)
sock = d->ks->fd();
- connect( d->ks->readNotifier(), TQT_SIGNAL( activated(int) ), this, TQT_SLOT( slotAccept(int) ) );
+ connect( d->ks->readNotifier(), TQ_SIGNAL( activated(int) ), this, TQ_SLOT( slotAccept(int) ) );
return true;
}
diff --git a/tdecore/ksock.h b/tdecore/ksock.h
index 31ca099e6..98b157dc4 100644
--- a/tdecore/ksock.h
+++ b/tdecore/ksock.h
@@ -22,10 +22,6 @@
#include "tdelibs_export.h"
-#ifdef Q_MOC_RUN
-#define Q_OS_UNIX
-#endif // Q_MOC_RUN
-
#ifdef Q_OS_UNIX
#include <tqobject.h>
@@ -90,26 +86,26 @@ class TDEServerSocketPrivate;
*/
class TDECORE_EXPORT TDESocket : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructs a TDESocket with the provided file descriptor.
* @param _sock The file descriptor to use.
*/
- TDESocket( int _sock ) KDE_DEPRECATED;
+ TDESocket( int _sock ) TDE_DEPRECATED;
/**
* Creates a socket and connects to a host.
* @param _host The remote host to which to connect.
* @param _port The port on the remote host.
* @param timeOut The number of seconds waiting for connect (default 30).
*/
- TDESocket( const char *_host, unsigned short int _port, int timeOut = 30) KDE_DEPRECATED;
+ TDESocket( const char *_host, unsigned short int _port, int timeOut = 30) TDE_DEPRECATED;
/**
* Connects to a UNIX domain socket.
* @param _path The filename of the socket.
*/
- TDESocket( const char * _path ) KDE_DEPRECATED;
+ TDESocket( const char * _path ) TDE_DEPRECATED;
/**
* Destructor. Closes the socket if it is still open.
@@ -154,7 +150,7 @@ public:
* instead
* @deprecated
*/
- unsigned long ipv4_addr() KDE_DEPRECATED;
+ unsigned long ipv4_addr() TDE_DEPRECATED;
// BCI: remove in libtdecore.so.4
/**
@@ -162,7 +158,7 @@ public:
* Don't use this in new programs. Use KExtendedSocket::lookup
* @deprecated
*/
- static bool initSockaddr(ksockaddr_in *server_name, const char *hostname, unsigned short int port, int domain = PF_INET) KDE_DEPRECATED;
+ static bool initSockaddr(ksockaddr_in *server_name, const char *hostname, unsigned short int port, int domain = PF_INET) TDE_DEPRECATED;
#endif
signals:
@@ -253,7 +249,7 @@ private:
*/
class TDECORE_EXPORT TDEServerSocket : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor.
@@ -284,7 +280,7 @@ public:
* On error the socket will be closed.
* @param suppressFailureMessages suppress warning messages generated if the socket cannot be opened.
* @return true on success. false on error.
- * @warning If suppressFailureMessages is TRUE future debugging may be made more difficult. Only set it
+ * @warning If suppressFailureMessages is true future debugging may be made more difficult. Only set it
* if your application expects to bind to unavailable ports, e.g. while scanning for open ports in a range.
*/
bool bindAndListen(bool suppressFailureMessages = false);
@@ -344,7 +340,7 @@ protected:
private:
// HACK
#ifdef TDESOCKET_BINARY_COMPAT_HACK
- KDE_EXPORT bool bindAndListen();
+ TDE_EXPORT bool bindAndListen();
#endif // TDESOCKET_BINARY_COMPAT_HACK
TDEServerSocket(const TDEServerSocket&);
diff --git a/tdecore/ksockaddr.h b/tdecore/ksockaddr.h
index d3eb62d0d..f523fd980 100644
--- a/tdecore/ksockaddr.h
+++ b/tdecore/ksockaddr.h
@@ -45,7 +45,7 @@ class TDESocketAddressPrivate;
*/
class TDECORE_EXPORT TDESocketAddress: public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
protected:
/**
* Creates an empty class
@@ -232,7 +232,7 @@ class KInetSocketAddressPrivate;
*/
class TDECORE_EXPORT KInetSocketAddress: public ::TDESocketAddress
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default constructor. Does nothing
@@ -583,7 +583,7 @@ class KUnixSocketAddressPrivate;
*/
class TDECORE_EXPORT KUnixSocketAddress: public ::TDESocketAddress
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
* Default constructor
diff --git a/tdecore/ksocks.cpp b/tdecore/ksocks.cpp
index 6fac3179e..835cfd618 100644
--- a/tdecore/ksocks.cpp
+++ b/tdecore/ksocks.cpp
@@ -212,8 +212,8 @@ void KSocks::disable()
KSocks *KSocks::self() {
// Note that we don't use a static deleter here. It makes no sense and tends to cause crashes.
if (!_me) {
- if (kapp) {
- TDEConfigGroup cfg(kapp->config(), "Socks");
+ if (tdeApp) {
+ TDEConfigGroup cfg(tdeApp->config(), "Socks");
_me = new KSocks(&cfg);
} else {
_disabled = true;
diff --git a/tdecore/kstaticdeleter.h b/tdecore/kstaticdeleter.h
index b6967268c..28c2d89e2 100644
--- a/tdecore/kstaticdeleter.h
+++ b/tdecore/kstaticdeleter.h
@@ -82,7 +82,7 @@ public:
* @param isArray tells the destructor to delete an array instead of an object
* @deprecated See the other setObject variant.
**/
- KDE_DEPRECATED type *setObject( type *obj, bool isArray = false) {
+ TDE_DEPRECATED type *setObject( type *obj, bool isArray = false) {
deleteit = obj;
globalReference = 0;
array = isArray;
diff --git a/tdecore/kstddirs.h b/tdecore/kstddirs.h
deleted file mode 100644
index a009a750d..000000000
--- a/tdecore/kstddirs.h
+++ /dev/null
@@ -1,6 +0,0 @@
-// kstddirs.h is the old name, use #include <kstandarddirs.h> from now on
-#ifdef KDE_NO_COMPAT
-#error kstddirs.h is the old name, use #include <kstandarddirs.h> from now on
-#else
-#include <kstandarddirs.h>
-#endif
diff --git a/tdecore/kstringhandler.cpp b/tdecore/kstringhandler.cpp
index 5f73c6f7e..e6fef9350 100644
--- a/tdecore/kstringhandler.cpp
+++ b/tdecore/kstringhandler.cpp
@@ -419,8 +419,8 @@ bool KStringHandler::matchFileName( const TQString& filename, const TQString& pa
return false;
// Patterns like "Makefile*"
- if ( pattern[ pattern_len - 1 ] == (QChar)'*' && len + 1 >= pattern_len ) {
- if ( pattern[ 0 ] == (QChar)'*' )
+ if ( pattern[ pattern_len - 1 ] == (TQChar)'*' && len + 1 >= pattern_len ) {
+ if ( pattern[ 0 ] == (TQChar)'*' )
{
return filename.find(pattern.mid(1, pattern_len - 2)) != -1;
}
@@ -434,7 +434,7 @@ bool KStringHandler::matchFileName( const TQString& filename, const TQString& pa
}
// Patterns like "*~", "*.extension"
- if ( pattern[ 0 ] == (QChar)'*' && len + 1 >= pattern_len )
+ if ( pattern[ 0 ] == (TQChar)'*' && len + 1 >= pattern_len )
{
const TQChar *c1 = pattern.unicode() + pattern_len - 1;
const TQChar *c2 = filename.unicode() + len - 1;
diff --git a/tdecore/kstringhandler.h b/tdecore/kstringhandler.h
index f20963d63..2a75a2f7b 100644
--- a/tdecore/kstringhandler.h
+++ b/tdecore/kstringhandler.h
@@ -77,7 +77,7 @@ public:
* @return the word, or an empty string if not found
* @deprecated use TQString::section instead
*/
- static TQString word( const TQString &text , uint pos ) KDE_DEPRECATED;
+ static TQString word( const TQString &text , uint pos ) TDE_DEPRECATED;
/** Returns a range of words from that string.
* Ie:
@@ -183,7 +183,7 @@ public:
* @return the resulting string
* @deprecated use TQString::leftJustify instead
*/
- static TQString ljust( const TQString &text , uint width ) KDE_DEPRECATED;
+ static TQString ljust( const TQString &text , uint width ) TDE_DEPRECATED;
/** Right-justifies a string and returns a string at least 'width' characters
* wide.
@@ -194,7 +194,7 @@ public:
* @return the resulting string
* @deprecated use TQString::rightJustify instead
*/
- static TQString rjust( const TQString &text , uint width ) KDE_DEPRECATED;
+ static TQString rjust( const TQString &text , uint width ) TDE_DEPRECATED;
/** Centers a string and returns a string at least 'width' characters
* wide.
@@ -432,7 +432,7 @@ private:
/**
* @deprecated Use matchFileName () instead.
*/
- static KDE_DEPRECATED bool matchFilename( const TQString& filename, const TQString& pattern )
+ static TDE_DEPRECATED bool matchFilename( const TQString& filename, const TQString& pattern )
{
return matchFileName (filename, pattern);
}
diff --git a/tdecore/ktempdir.cpp b/tdecore/ktempdir.cpp
index d16d2e185..045695c07 100644
--- a/tdecore/ktempdir.cpp
+++ b/tdecore/ktempdir.cpp
@@ -49,10 +49,10 @@
#include "tdeglobal.h"
#include "tdeapplication.h"
-#include "kinstance.h"
+#include "tdeinstance.h"
#include "ktempdir.h"
-#include "kstandarddirs.h"
-#include "kprocess.h"
+#include "tdestandarddirs.h"
+#include "tdeprocess.h"
#include <kdebug.h>
#include "kde_file.h"
diff --git a/tdecore/ktimezones.cpp b/tdecore/ktimezones.cpp
index 3436cdabb..bf8a370fb 100644
--- a/tdecore/ktimezones.cpp
+++ b/tdecore/ktimezones.cpp
@@ -22,7 +22,7 @@
#include <ktimezones.h>
#include <kdebug.h>
#include <kmdcodec.h>
-#include <kprocess.h>
+#include <tdeprocess.h>
#include <kstringhandler.h>
#include <tdetempfile.h>
@@ -245,7 +245,7 @@ TQDateTime KTimezone::convert(const KTimezone *newZone, const TQDateTime &dateTi
::setenv("TZ", newZone->name().utf8(), 1);
tzset();
TQDateTime remoteTime;
- remoteTime.setTime_t(utc, Qt::LocalTime);
+ remoteTime.setTime_t(utc, TQt::LocalTime);
// Now restore things
if (!originalZone)
@@ -280,7 +280,7 @@ TQString KTimezone::name() const
return m_name;
}
-int KTimezone::offset(Qt::TimeSpec basisSpec) const
+int KTimezone::offset(TQt::TimeSpec basisSpec) const
{
char *originalZone = ::getenv("TZ");
@@ -290,7 +290,7 @@ int KTimezone::offset(Qt::TimeSpec basisSpec) const
// Set the timezone and find out what time it is there compared to the basis.
::setenv("TZ", m_name.utf8(), 1);
tzset();
- TQDateTime remoteTime = TQDateTime::currentDateTime(Qt::LocalTime);
+ TQDateTime remoteTime = TQDateTime::currentDateTime(TQt::LocalTime);
int offset = remoteTime.secsTo(basisTime);
// Now restore things
@@ -507,7 +507,7 @@ const KTimezone *KTimezones::local()
// Compute the MD5 sum of /etc/localtime.
KMD5 context("");
context.reset();
- context.update(TQT_TQIODEVICE_OBJECT(f));
+ context.update(f);
TQIODevice::Offset referenceSize = f.size();
TQString referenceMd5Sum = context.hexDigest();
f.close();
@@ -526,7 +526,7 @@ const KTimezone *KTimezones::local()
{
// Only do the heavy lifting for file sizes which match.
context.reset();
- context.update(TQT_TQIODEVICE_OBJECT(f));
+ context.update(f);
candidateMd5Sum = context.hexDigest();
}
f.close();
@@ -605,7 +605,7 @@ const KTimezone *KTimezones::local()
for (ZoneMap::Iterator it = m_zones->begin(); it != m_zones->end(); ++it)
{
KTimezone *zone = it.data();
- int candidateOffset = QABS(zone->offset(Qt::LocalTime));
+ int candidateOffset = TQABS(zone->offset(TQt::LocalTime));
if (zone->parse(matcher) && matcher.test() && (candidateOffset < bestOffset))
{
// kdError() << "local=" << zone->name() << endl;
diff --git a/tdecore/ktimezones.h b/tdecore/ktimezones.h
index 339cbf5bf..bcb1e7a99 100644
--- a/tdecore/ktimezones.h
+++ b/tdecore/ktimezones.h
@@ -156,7 +156,7 @@ public:
*
* @return offset in seconds.
*/
- int offset(Qt::TimeSpec basisSpec = Qt::UTC) const;
+ int offset(TQt::TimeSpec basisSpec = TQt::UTC) const;
/**
* Returns the offset of the given timezone to UTC at the given
diff --git a/tdecore/kuniqueapp.h b/tdecore/kuniqueapp.h
deleted file mode 100644
index d3ec22dd5..000000000
--- a/tdecore/kuniqueapp.h
+++ /dev/null
@@ -1,6 +0,0 @@
-// kuniqueapp.h is the old name. Use #include <kuniqueapplication.h> from now on
-#ifdef KDE_NO_COMPAT
-#error kuniqueapp.h is the old name. Use #include <kuniqueapplication.h> from now on
-#else
-#include <kuniqueapplication.h>
-#endif
diff --git a/tdecore/kurl.cpp b/tdecore/kurl.cpp
index a80257f76..8122bb4bf 100644
--- a/tdecore/kurl.cpp
+++ b/tdecore/kurl.cpp
@@ -47,7 +47,7 @@
#include <tqtextcodec.h>
#include <tqmutex.h>
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
# define KURL_ROOTDIR_PATH "C:/"
#else
# define KURL_ROOTDIR_PATH "/"
@@ -386,7 +386,7 @@ static TQString cleanpath(const TQString &_path, bool cleanDirSeparator, bool de
orig_pos = pos;
}
-#ifdef Q_WS_WIN // prepend drive letter if exists (js)
+#ifdef TQ_WS_WIN // prepend drive letter if exists (js)
if (orig_pos >= 2 && isalpha(path[0].latin1()) && path[1]==':') {
result.prepend(TQString(path[0])+":");
}
@@ -670,7 +670,7 @@ void KURL::parse( const TQString& _url, int encoding_hint )
// Node 1: Accept alpha or slash
TQChar x = buf[pos++];
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
/* win32: accept <letter>: or <letter>:/ or <letter>:\ */
const bool alpha = isalpha((int)x);
if (alpha && len<2)
@@ -791,7 +791,7 @@ void KURL::parseURL( const TQString& _url, int encoding_hint )
// Node 1: Accept alpha or slash
TQChar x = buf[pos++];
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
/* win32: accept <letter>: or <letter>:/ or <letter>:\ */
const bool alpha = isalpha((int)x);
if (alpha && len<2)
@@ -1608,7 +1608,7 @@ TQString KURL::prettyURL( int _trailing ) const
}
else
{
- u += trailingSlash( _trailing, lazy_encode( m_strPath ) );
+ u += trailingSlash( _trailing, lazy_encode( m_strPath, false ) );
}
if (!m_strQuery_encoded.isNull())
@@ -1628,7 +1628,7 @@ TQString KURL::prettyURL( int _trailing, AdjustementFlags _flags) const
TQString u = prettyURL(_trailing);
if (_flags & StripFileProtocol && u.startsWith("file://")) {
u.remove(0, 7);
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
return TQDir::convertSeparators(u);
#endif
}
diff --git a/tdecore/kurl.h b/tdecore/kurl.h
index 740c8a0df..ca30a3b0a 100644
--- a/tdecore/kurl.h
+++ b/tdecore/kurl.h
@@ -128,7 +128,7 @@ class TDECORE_EXPORT KURL
{
public:
/**
- * Flags to choose how file: URLs are treated when creating their QString
+ * Flags to choose how file: URLs are treated when creating their TQString
* representation with prettyURL(int,AdjustementFlags)
*
* However it is recommended to use pathOrURL() instead of this variant of prettyURL()
@@ -834,7 +834,7 @@ public:
*
* @see isValid()
*/
- KDE_DEPRECATED bool isMalformed() const { return !isValid(); }
+ TDE_DEPRECATED bool isMalformed() const { return !isValid(); }
/**
* @brief Tests if the file is local
@@ -1468,7 +1468,7 @@ public:
*
* @deprecated Use equals() instead.
*/
- bool cmp( const KURL &u, bool ignore_trailing = false ) const KDE_DEPRECATED;
+ bool cmp( const KURL &u, bool ignore_trailing = false ) const TDE_DEPRECATED;
/**
* @brief Compares this URL with another one
diff --git a/tdecore/kurldrag.cpp b/tdecore/kurldrag.cpp
index 07e669dfd..51346cf66 100644
--- a/tdecore/kurldrag.cpp
+++ b/tdecore/kurldrag.cpp
@@ -150,7 +150,7 @@ bool KURLDrag::decode( const TQMimeSource *e, KURL::List &uris, TQMap<TQString,T
return false; // Couldn't decode the URLs
}
-#ifdef Q_WS_QWS
+#ifdef TQ_WS_QWS
bool KURLDrag::decode( TQStringList const &e, KURL::List &uris )
{
TQStringList::ConstIterator end(e.end());
diff --git a/tdecore/kurldrag.h b/tdecore/kurldrag.h
index ccaf86e1a..a578ff74c 100644
--- a/tdecore/kurldrag.h
+++ b/tdecore/kurldrag.h
@@ -52,7 +52,7 @@ public:
* @param urls the list of URLs
* @param dragSource the parent of the TQObject. Should be set when doing drag-n-drop,
* but should be 0 when copying to the clipboard
- * @param name the name of the QObject
+ * @param name the name of the TQObject
*/
KURLDrag( const KURL::List &urls, TQWidget* dragSource = 0, const char * name = 0 );
/**
@@ -62,7 +62,7 @@ public:
* @param metaData a map containing meta data
* @param dragSource the parent of the TQObject. Should be set when doing drag-n-drop,
* but should be 0 when copying to the clipboard
- * @param name the name of the QObject
+ * @param name the name of the TQObject
* @see metaData()
*/
KURLDrag( const KURL::List &urls, const TQMap<TQString, TQString>& metaData,
@@ -82,13 +82,13 @@ public:
/**
* @deprecated Is equivalent with "new KURLDrag(urls, dragSource, name)".
*/
- static KURLDrag * newDrag( const KURL::List &urls, TQWidget* dragSource = 0, const char * name = 0 ) KDE_DEPRECATED;
+ static KURLDrag * newDrag( const KURL::List &urls, TQWidget* dragSource = 0, const char * name = 0 ) TDE_DEPRECATED;
/**
* @deprecated Is equivalent with "new KURLDrag(urls, metaData, dragSource, name)".
*/
static KURLDrag * newDrag( const KURL::List &urls, const TQMap<TQString, TQString>& metaData,
- TQWidget* dragSource = 0, const char * name = 0 ) KDE_DEPRECATED;
+ TQWidget* dragSource = 0, const char * name = 0 ) TDE_DEPRECATED;
/**
* Meta-data to associate with those URLs.
@@ -133,7 +133,7 @@ public:
*/
static KURL stringToUrl(const TQCString &s);
-#ifdef Q_WS_QWS
+#ifdef TQ_WS_QWS
/**
* Convenience method that decodes the contents of @p e
* into a list of KURLs for Qt versions without a MIME clipboard.
@@ -152,7 +152,7 @@ protected:
* @deprecated Use a KURLDrag constructor with a KURL::List
*/
KURLDrag( const TQStrList & urls, const TQMap<TQString,TQString>& metaData,
- TQWidget * dragSource, const char* name ) KDE_DEPRECATED;
+ TQWidget * dragSource, const char* name ) TDE_DEPRECATED;
private:
void init(const KURL::List &urls);
diff --git a/tdecore/kvmallocator.h b/tdecore/kvmallocator.h
index e85e03446..677293443 100644
--- a/tdecore/kvmallocator.h
+++ b/tdecore/kvmallocator.h
@@ -80,7 +80,7 @@ public:
* @deprecated
* @see copyBlock
*/
- void copy(void *dest, Block *src, int _offset = 0, size_t length = 0) KDE_DEPRECATED;
+ void copy(void *dest, Block *src, int _offset = 0, size_t length = 0) TDE_DEPRECATED;
/**
* Copy @p length bytes from normal memory at address @p src to
@@ -98,7 +98,7 @@ public:
* @deprecated
* @see copyBlock
*/
- void copy(Block *dest, void *src, int _offset = 0, size_t length = 0) KDE_DEPRECATED;
+ void copy(Block *dest, void *src, int _offset = 0, size_t length = 0) TDE_DEPRECATED;
/**
* Map a virtual memory block in memory
diff --git a/tdecore/kxerrorhandler.cpp b/tdecore/kxerrorhandler.cpp
index 3a8524bed..ce9197bf6 100644
--- a/tdecore/kxerrorhandler.cpp
+++ b/tdecore/kxerrorhandler.cpp
@@ -23,7 +23,7 @@
*/
#include <tqwidget.h>
-#ifdef Q_WS_X11 //FIXME
+#ifdef TQ_WS_X11 //FIXME
#include "kxerrorhandler.h"
#include <assert.h>
diff --git a/tdecore/kxmessages.cpp b/tdecore/kxmessages.cpp
index 116c74d1c..37c15bcf9 100644
--- a/tdecore/kxmessages.cpp
+++ b/tdecore/kxmessages.cpp
@@ -28,7 +28,7 @@ DEALINGS IN THE SOFTWARE.
#include <tdeapplication.h>
-#ifdef Q_WS_X11 // FIXME(E): Figure out what parts we can/should emulate in QT/E
+#ifdef TQ_WS_X11 // FIXME(E): Figure out what parts we can/should emulate in QT/E
#include <X11/Xlib.h>
#include <kdebug.h>
@@ -42,8 +42,8 @@ KXMessages::KXMessages( const char* accept_broadcast_P, TQWidget* parent_P )
{
if( accept_broadcast_P != NULL )
{
- ( void ) kapp->desktop(); //trigger desktop widget creation to select root window events
- kapp->installX11EventFilter( this ); // i.e. PropertyChangeMask
+ ( void ) tdeApp->desktop(); //trigger desktop widget creation to select root window events
+ tdeApp->installX11EventFilter( this ); // i.e. PropertyChangeMask
accept_atom1 = XInternAtom( tqt_xdisplay(), accept_broadcast_P, false );
accept_atom2 = accept_atom1;
}
@@ -59,8 +59,8 @@ KXMessages::KXMessages( const char* accept_broadcast_P, TQWidget* parent_P, bool
{
if( accept_broadcast_P != NULL )
{
- ( void ) kapp->desktop(); //trigger desktop widget creation to select root window events
- kapp->installX11EventFilter( this ); // i.e. PropertyChangeMask
+ ( void ) tdeApp->desktop(); //trigger desktop widget creation to select root window events
+ tdeApp->installX11EventFilter( this ); // i.e. PropertyChangeMask
accept_atom2 = XInternAtom( tqt_xdisplay(), accept_broadcast_P, false );
accept_atom1 = obsolete_P ? accept_atom2
: XInternAtom( tqt_xdisplay(), TQCString( accept_broadcast_P ) + "_BEGIN", false );
diff --git a/tdecore/kxmessages.h b/tdecore/kxmessages.h
index 5caec19fc..d3787f6bb 100644
--- a/tdecore/kxmessages.h
+++ b/tdecore/kxmessages.h
@@ -30,11 +30,7 @@ DEALINGS IN THE SOFTWARE.
#include <tqmap.h>
#include <tdelibs_export.h>
-#ifdef Q_MOC_RUN
-#define Q_WS_X11
-#endif // Q_MOC_RUN
-
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#include <X11/X.h>
class TQString;
@@ -52,7 +48,7 @@ class KXMessagesPrivate;
class TDECORE_EXPORT KXMessages
: public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
* Creates an instance which will receive X messages.
diff --git a/tdecore/libintl.cpp b/tdecore/libintl.cpp
index 5d2f6a086..c7b8c7ee6 100644
--- a/tdecore/libintl.cpp
+++ b/tdecore/libintl.cpp
@@ -260,8 +260,8 @@ hash_string (const char *str_param)
while (*str != '\0')
{
hval <<= 4;
- hval += (unsigned long) *str++;
- g = hval & ((unsigned long) 0xf << (HASHWORDBITS - 4));
+ hval += (unsigned char) *str++;
+ g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4));
if (g != 0)
{
hval ^= g >> (HASHWORDBITS - 8);
diff --git a/tdecore/libqt-mt.nmcheck b/tdecore/libqt-mt.nmcheck
index e18ee438f..d5962f37a 100644
--- a/tdecore/libqt-mt.nmcheck
+++ b/tdecore/libqt-mt.nmcheck
@@ -4,7 +4,7 @@
Q*::*
qt_*
-# these should preferably go in some namespace in Qt4
+# these should preferably go in some namespace
tqDebug
tqFatal
tqWarning
diff --git a/tdecore/libtdecore.nmcheck b/tdecore/libtdecore.nmcheck
index 7c017a6e4..92ec3ff8f 100644
--- a/tdecore/libtdecore.nmcheck
+++ b/tdecore/libtdecore.nmcheck
@@ -44,6 +44,8 @@ operator>>
operator<<
qt_qclipboard_bailout_hack
kasciistricmp
+kasciitolower
+kasciitoupper
# from libtldl
lt_dl*
diff --git a/tdecore/malloc/malloc.c b/tdecore/malloc/malloc.c
index 5cdab5ac7..00b1e7f61 100644
--- a/tdecore/malloc/malloc.c
+++ b/tdecore/malloc/malloc.c
@@ -746,7 +746,7 @@ extern Void_t* sbrk();
# ifdef _SC_PAGE_SIZE
# define malloc_getpagesize sysconf(_SC_PAGE_SIZE)
# else
-# if defined(BSD) || defined(DGUX) || defined(HAVE_GETPAGESIZE)
+# if defined(BSD) || defined(HAVE_GETPAGESIZE)
extern size_t getpagesize();
# define malloc_getpagesize getpagesize()
# else
@@ -4306,7 +4306,7 @@ static Void_t** iALLOc(n_elements, sizes, opts, chunks) size_t n_elements; size_
remainder_size = chunksize(p);
if (opts & 0x2) { /* optionally clear the elements */
- memset(mem, 0, remainder_size - SIZE_SZ - array_size)
+ memset(mem, 0, remainder_size - SIZE_SZ - array_size);
}
/* If not provided, allocate the pointer array as final part of chunk */
diff --git a/tdecore/netsupp.cpp b/tdecore/netsupp.cpp
index 0c072752c..0ea43178d 100644
--- a/tdecore/netsupp.cpp
+++ b/tdecore/netsupp.cpp
@@ -49,7 +49,7 @@
extern int h_errno;
#endif
-#include <kdemacros.h>
+#include <tdemacros.h>
#if !defined(kde_sockaddr_in6)
/*
@@ -1233,5 +1233,5 @@ int inet_pton(int af, const char *cp, void *buf)
namespace KDE
{
/** @internal */
- extern const int KDE_EXPORT resolverFlags = KRF_getaddrinfo | KRF_resolver | KRF_afinet6 | KRF_inet_ntop | KRF_inet_pton;
+ extern const int TDE_EXPORT resolverFlags = KRF_getaddrinfo | KRF_resolver | KRF_afinet6 | KRF_inet_ntop | KRF_inet_pton;
}
diff --git a/tdecore/netwm.cpp b/tdecore/netwm.cpp
index c1e876eeb..1e0670333 100644
--- a/tdecore/netwm.cpp
+++ b/tdecore/netwm.cpp
@@ -27,7 +27,7 @@
#include <tqwidget.h>
#include <tqapplication.h>
-#ifdef Q_WS_X11 //FIXME
+#ifdef TQ_WS_X11 //FIXME
#include "netwm.h"
@@ -1602,7 +1602,7 @@ void NETRootInfo::updateSupportedProperties( Atom atom )
}
void NETRootInfo::setActiveWindow(Window window) {
- setActiveWindow( window, FromUnknown, GET_QT_X_USER_TIME(), None );
+ setActiveWindow( window, FromUnknown, get_tqt_x_user_time(), None );
}
void NETRootInfo::setActiveWindow(Window window, NET::RequestSource src,
@@ -1811,7 +1811,7 @@ void NETRootInfo::moveResizeWindowRequest(Window window, int flags, int x, int y
void NETRootInfo::restackRequest(Window window, Window above, int detail)
{
- restackRequest( window, FromTool, above, detail, GET_QT_X_USER_TIME() );
+ restackRequest( window, FromTool, above, detail, get_tqt_x_user_time() );
}
void NETRootInfo::restackRequest(Window window, RequestSource src, Window above, int detail, Time timestamp )
diff --git a/tdecore/netwm.h b/tdecore/netwm.h
index ca8ed5139..bdfa67a20 100644
--- a/tdecore/netwm.h
+++ b/tdecore/netwm.h
@@ -29,7 +29,7 @@
#include "tdelibs_export.h"
#include <tqwidget.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
@@ -109,7 +109,7 @@ public:
to the first element of the properties array in the above constructor.
**/
NETRootInfo(Display *display, Window supportWindow, const char *wmName,
- unsigned long properties, int screen = -1, bool doActivate = true) KDE_DEPRECATED;
+ unsigned long properties, int screen = -1, bool doActivate = true) TDE_DEPRECATED;
/**
Clients should use this constructor to create a NETRootInfo object, which
@@ -258,7 +258,7 @@ public:
@see NET::Property
**/
- unsigned long supported() const KDE_DEPRECATED;
+ unsigned long supported() const TDE_DEPRECATED;
/**
Returns an array of Window id's, which contain all managed windows.
@@ -727,7 +727,7 @@ protected:
@param window the id of the window to activate
**/
- virtual KDE_DEPRECATED void changeActiveWindow(Window window) { Q_UNUSED(window); }
+ virtual TDE_DEPRECATED void changeActiveWindow(Window window) { Q_UNUSED(window); }
/**
A Window Manager should subclass NETRootInfo and reimplement this function
@@ -1029,7 +1029,7 @@ public:
@see NET::Property
**/
- unsigned long properties() const KDE_DEPRECATED;
+ unsigned long properties() const TDE_DEPRECATED;
/**
Returns the icon geometry.
@@ -1083,7 +1083,7 @@ public:
@return the type of the window
**/
- WindowType windowType() const KDE_DEPRECATED;
+ WindowType windowType() const TDE_DEPRECATED;
/**
Returns the name of the window in UTF-8 format.
diff --git a/tdecore/network/kbufferedsocket.cpp b/tdecore/network/kbufferedsocket.cpp
index aaac54b03..08f899c8a 100644
--- a/tdecore/network/kbufferedsocket.cpp
+++ b/tdecore/network/kbufferedsocket.cpp
@@ -93,12 +93,7 @@ void TDEBufferedSocket::close()
}
}
-#ifdef USE_QT3
TQ_LONG TDEBufferedSocket::bytesAvailable() const
-#endif
-#ifdef USE_QT4
-qint64 TDEBufferedSocket::bytesAvailable() const
-#endif
{
if (!d->input)
return KStreamSocket::bytesAvailable();
@@ -118,7 +113,7 @@ TQ_LONG TDEBufferedSocket::waitForMore(int msecs, bool *timeout)
return retval;
}
-TQT_TQIO_LONG TDEBufferedSocket::tqreadBlock(char *data, TQT_TQIO_ULONG maxlen)
+TQ_LONG TDEBufferedSocket::readBlock(char *data, TQ_ULONG maxlen)
{
if (d->input)
{
@@ -131,13 +126,13 @@ TQT_TQIO_LONG TDEBufferedSocket::tqreadBlock(char *data, TQT_TQIO_ULONG maxlen)
resetError();
return d->input->consumeBuffer(data, maxlen);
}
- return KStreamSocket::tqreadBlock(data, maxlen);
+ return KStreamSocket::readBlock(data, maxlen);
}
-TQT_TQIO_LONG TDEBufferedSocket::tqreadBlock(char *data, TQT_TQIO_ULONG maxlen, TDESocketAddress& from)
+TQ_LONG TDEBufferedSocket::readBlock(char *data, TQ_ULONG maxlen, TDESocketAddress& from)
{
from = peerAddress();
- return tqreadBlock(data, maxlen);
+ return readBlock(data, maxlen);
}
TQ_LONG TDEBufferedSocket::peekBlock(char *data, TQ_ULONG maxlen)
@@ -162,7 +157,7 @@ TQ_LONG TDEBufferedSocket::peekBlock(char *data, TQ_ULONG maxlen, TDESocketAddre
return peekBlock(data, maxlen);
}
-TQT_TQIO_LONG TDEBufferedSocket::tqwriteBlock(const char *data, TQT_TQIO_ULONG len)
+TQ_LONG TDEBufferedSocket::writeBlock(const char *data, TQ_ULONG len)
{
if (state() != Connected)
{
@@ -189,14 +184,14 @@ TQT_TQIO_LONG TDEBufferedSocket::tqwriteBlock(const char *data, TQT_TQIO_ULONG l
return d->output->feedBuffer(data, len);
}
- return KStreamSocket::tqwriteBlock(data, len);
+ return KStreamSocket::writeBlock(data, len);
}
-TQT_TQIO_LONG TDEBufferedSocket::tqwriteBlock(const char *data, TQT_TQIO_ULONG maxlen,
+TQ_LONG TDEBufferedSocket::writeBlock(const char *data, TQ_ULONG maxlen,
const TDESocketAddress&)
{
// ignore the third parameter
- return tqwriteBlock(data, maxlen);
+ return writeBlock(data, maxlen);
}
void TDEBufferedSocket::enableRead(bool enable)
@@ -213,7 +208,7 @@ void TDEBufferedSocket::enableRead(bool enable)
if (enable && state() != Connected && d->input && !d->input->isEmpty())
// this means the buffer is still dirty
// allow the signal to be emitted
- TQTimer::singleShot(0, this, TQT_SLOT(slotReadActivity()));
+ TQTimer::singleShot(0, this, TQ_SLOT(slotReadActivity()));
}
void TDEBufferedSocket::enableWrite(bool enable)
@@ -284,12 +279,7 @@ TDEIOBufferBase* TDEBufferedSocket::outputBuffer()
return d->output;
}
-#ifdef USE_QT3
TQ_ULONG TDEBufferedSocket::bytesToWrite() const
-#endif
-#ifdef USE_QT4
-qint64 TDEBufferedSocket::bytesToWrite() const
-#endif
{
if (!d->output)
return 0;
@@ -368,7 +358,7 @@ void TDEBufferedSocket::slotReadActivity()
{
// buffer isn't empty
// keep emitting signals till it is
- TQTimer::singleShot(0, this, TQT_SLOT(slotReadActivity()));
+ TQTimer::singleShot(0, this, TQ_SLOT(slotReadActivity()));
emit readyRead();
}
}
diff --git a/tdecore/network/kbufferedsocket.h b/tdecore/network/kbufferedsocket.h
index bd172330b..641d35cd1 100644
--- a/tdecore/network/kbufferedsocket.h
+++ b/tdecore/network/kbufferedsocket.h
@@ -57,7 +57,7 @@ class TDEBufferedSocketPrivate;
*/
class TDECORE_EXPORT TDEBufferedSocket: public KStreamSocket
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -99,12 +99,7 @@ public:
/**
* Make use of the buffers.
*/
-#ifdef USE_QT3
virtual TQ_LONG bytesAvailable() const;
-#endif
-#ifdef USE_QT4
- virtual qint64 bytesAvailable() const;
-#endif
/**
* Make use of buffers.
@@ -114,7 +109,7 @@ public:
/**
* Reads data from the socket. Make use of buffers.
*/
- virtual TQT_TQIO_LONG tqreadBlock(char *data, TQT_TQIO_ULONG maxlen);
+ virtual TQ_LONG readBlock(char *data, TQ_ULONG maxlen);
/**
* @overload
@@ -122,7 +117,7 @@ public:
*
* The @p from parameter is always set to @ref peerAddress()
*/
- virtual TQT_TQIO_LONG tqreadBlock(char *data, TQT_TQIO_ULONG maxlen, TDESocketAddress& from);
+ virtual TQ_LONG readBlock(char *data, TQ_ULONG maxlen, TDESocketAddress& from);
/**
* Peeks data from the socket.
@@ -140,7 +135,7 @@ public:
/**
* Writes data to the socket.
*/
- virtual TQT_TQIO_LONG tqwriteBlock(const char *data, TQT_TQIO_ULONG len);
+ virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len);
/**
* @overload
@@ -148,7 +143,7 @@ public:
*
* The @p to parameter is discarded.
*/
- virtual TQT_TQIO_LONG tqwriteBlock(const char *data, TQT_TQIO_ULONG len, const TDESocketAddress& to);
+ virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len, const TDESocketAddress& to);
/**
* Catch changes.
@@ -183,12 +178,7 @@ public:
/**
* Returns the length of the output buffer.
*/
-#ifdef USE_QT3
virtual TQ_ULONG bytesToWrite() const;
-#endif
-#ifdef USE_QT4
- virtual qint64 bytesToWrite() const;
-#endif
/**
* Closes the socket and discards any output data that had been buffered
@@ -208,8 +198,6 @@ public:
*/
TQCString readLine();
- // KDE4: make virtual, add timeout to match the Qt4 signature
- // and move to another class up the hierarchy
/**
* Blocks until the connection is either established, or completely
* failed.
@@ -255,12 +243,7 @@ public:
* which required a call to reset() in order to be able to connect again
* using the same device. This is not necessary in TDEBufferedSocket any more.
*/
-#ifdef USE_QT3
inline void reset()
-#endif
-#ifdef USE_QT4
- inline bool reset()
-#endif
{ closeNow(); }
};
diff --git a/tdecore/network/kclientsocketbase.cpp b/tdecore/network/kclientsocketbase.cpp
index eaf669bb9..25eb34d8e 100644
--- a/tdecore/network/kclientsocketbase.cpp
+++ b/tdecore/network/kclientsocketbase.cpp
@@ -48,16 +48,8 @@ public:
};
KClientSocketBase::KClientSocketBase(TQObject *parent, const char *name) :
-#ifdef USE_QT4
-#else // USE_QT4
- TQObject(parent, name),
-#endif // USE_QT4
- d(new KClientSocketBasePrivate)
-{
-#ifdef USE_QT4
- setParent(parent);
- setObjectName(name);
-#endif // USE_QT4
+ TQObject(parent, name), d(new KClientSocketBasePrivate)
+{
d->state = Idle;
d->enableRead = true;
d->enableWrite = false;
@@ -152,10 +144,10 @@ bool KClientSocketBase::lookup()
// don't restart the lookups if they had succeeded and
// the input values weren't changed
- TQObject::connect(&d->peerResolver, TQT_SIGNAL(finished(KResolverResults)),
- this, TQT_SLOT(lookupFinishedSlot()));
- TQObject::connect(&d->localResolver, TQT_SIGNAL(finished(KResolverResults)),
- this, TQT_SLOT(lookupFinishedSlot()));
+ TQObject::connect(&d->peerResolver, TQ_SIGNAL(finished(KResolverResults)),
+ this, TQ_SLOT(lookupFinishedSlot()));
+ TQObject::connect(&d->localResolver, TQ_SIGNAL(finished(KResolverResults)),
+ this, TQ_SLOT(lookupFinishedSlot()));
if (d->localResolver.status() <= 0)
d->localResolver.start();
@@ -172,7 +164,7 @@ bool KClientSocketBase::lookup()
if (blocking())
lookupFinishedSlot();
else
- TQTimer::singleShot(0, this, TQT_SLOT(lookupFinishedSlot()));
+ TQTimer::singleShot(0, this, TQ_SLOT(lookupFinishedSlot()));
}
else
{
@@ -286,12 +278,7 @@ void KClientSocketBase::close()
}
// This function is unlike all the others because it is const
-#ifdef USE_QT3
TQ_LONG KClientSocketBase::bytesAvailable() const
-#endif
-#ifdef USE_QT4
-qint64 KClientSocketBase::bytesAvailable() const
-#endif
{
return socketDevice()->bytesAvailable();
}
@@ -311,10 +298,10 @@ TQ_LONG KClientSocketBase::waitForMore(int msecs, bool *timeout)
return retval;
}
-TQT_TQIO_LONG KClientSocketBase::tqreadBlock(char *data, TQT_TQIO_ULONG maxlen)
+TQ_LONG KClientSocketBase::readBlock(char *data, TQ_ULONG maxlen)
{
resetError();
- TQ_LONG retval = socketDevice()->tqreadBlock(data, maxlen);
+ TQ_LONG retval = socketDevice()->readBlock(data, maxlen);
if (retval == -1)
{
copyError();
@@ -323,10 +310,10 @@ TQT_TQIO_LONG KClientSocketBase::tqreadBlock(char *data, TQT_TQIO_ULONG maxlen)
return retval;
}
-TQT_TQIO_LONG KClientSocketBase::tqreadBlock(char *data, TQT_TQIO_ULONG maxlen, TDESocketAddress& from)
+TQ_LONG KClientSocketBase::readBlock(char *data, TQ_ULONG maxlen, TDESocketAddress& from)
{
resetError();
- TQ_LONG retval = socketDevice()->tqreadBlock(data, maxlen, from);
+ TQ_LONG retval = socketDevice()->readBlock(data, maxlen, from);
if (retval == -1)
{
copyError();
@@ -359,10 +346,10 @@ TQ_LONG KClientSocketBase::peekBlock(char *data, TQ_ULONG maxlen, TDESocketAddre
return retval;
}
-TQT_TQIO_LONG KClientSocketBase::tqwriteBlock(const char *data, TQT_TQIO_ULONG len)
+TQ_LONG KClientSocketBase::writeBlock(const char *data, TQ_ULONG len)
{
resetError();
- TQ_LONG retval = socketDevice()->tqwriteBlock(data, len);
+ TQ_LONG retval = socketDevice()->writeBlock(data, len);
if (retval == -1)
{
copyError();
@@ -371,10 +358,10 @@ TQT_TQIO_LONG KClientSocketBase::tqwriteBlock(const char *data, TQT_TQIO_ULONG l
return retval;
}
-TQT_TQIO_LONG KClientSocketBase::tqwriteBlock(const char *data, TQT_TQIO_ULONG len, const TDESocketAddress& to)
+TQ_LONG KClientSocketBase::writeBlock(const char *data, TQ_ULONG len, const TDESocketAddress& to)
{
resetError();
- TQ_LONG retval = socketDevice()->tqwriteBlock(data, len, to);
+ TQ_LONG retval = socketDevice()->writeBlock(data, len, to);
if (retval == -1)
{
copyError();
@@ -440,8 +427,8 @@ void KClientSocketBase::lookupFinishedSlot()
if (d->peerResolver.isRunning() || d->localResolver.isRunning() || state() != HostLookup)
return;
- TQObject::disconnect(&d->peerResolver, 0L, this, TQT_SLOT(lookupFinishedSlot()));
- TQObject::disconnect(&d->localResolver, 0L, this, TQT_SLOT(lookupFinishedSlot()));
+ TQObject::disconnect(&d->peerResolver, 0L, this, TQ_SLOT(lookupFinishedSlot()));
+ TQObject::disconnect(&d->localResolver, 0L, this, TQ_SLOT(lookupFinishedSlot()));
if (d->peerResolver.status() < 0 || d->localResolver.status() < 0)
{
setState(Idle); // backtrack
@@ -466,7 +453,7 @@ void KClientSocketBase::stateChanging(SocketState newState)
if (n)
{
n->setEnabled(d->enableRead);
- TQObject::connect(n, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotReadActivity()));
+ TQObject::connect(n, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotReadActivity()));
}
else
return;
@@ -475,7 +462,7 @@ void KClientSocketBase::stateChanging(SocketState newState)
if (n)
{
n->setEnabled(d->enableWrite);
- TQObject::connect(n, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotWriteActivity()));
+ TQObject::connect(n, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotWriteActivity()));
}
else
return;
diff --git a/tdecore/network/kclientsocketbase.h b/tdecore/network/kclientsocketbase.h
index 65c852ddb..a6f9eaf92 100644
--- a/tdecore/network/kclientsocketbase.h
+++ b/tdecore/network/kclientsocketbase.h
@@ -32,10 +32,6 @@
#include "kresolver.h"
#include <tdelibs_export.h>
-#ifdef Q_MOC_RUN
-#define USE_QT4
-#endif // Q_MOC_RUN
-
namespace KNetwork {
class KClientSocketBasePrivate;
@@ -50,14 +46,9 @@ class KClientSocketBasePrivate;
*
* @author Thiago Macieira <thiago.macieira@kdemail.net>
*/
-class TDECORE_EXPORT KClientSocketBase :
-#ifdef USE_QT4
-#else // USE_QT4
-public TQObject,
-#endif // USE_QT4
-public KActiveSocketBase
+class TDECORE_EXPORT KClientSocketBase : public TQObject, public KActiveSocketBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -281,7 +272,7 @@ public:
*
* You should not call this function; instead, use @ref connect
*/
- virtual inline bool open(TQ_OpenMode)
+ virtual inline bool open(int)
{ return connect(); }
/**
@@ -302,12 +293,7 @@ public:
* Returns the number of bytes available on this socket.
* Reimplemented from TDESocketBase.
*/
-#ifdef USE_QT3
virtual TQ_LONG bytesAvailable() const;
-#endif
-#ifdef USE_QT4
- virtual qint64 bytesAvailable() const;
-#endif
/**
* Waits for more data. Reimplemented from TDESocketBase.
@@ -317,13 +303,13 @@ public:
/**
* Reads data from a socket. Reimplemented from TDESocketBase.
*/
- virtual TQT_TQIO_LONG tqreadBlock(char *data, TQT_TQIO_ULONG maxlen);
+ virtual TQ_LONG readBlock(char *data, TQ_ULONG maxlen);
/**
* @overload
* Reads data from a socket. Reimplemented from TDESocketBase.
*/
- virtual TQT_TQIO_LONG tqreadBlock(char *data, TQT_TQIO_ULONG maxlen, TDESocketAddress& from);
+ virtual TQ_LONG readBlock(char *data, TQ_ULONG maxlen, TDESocketAddress& from);
/**
* Peeks data from the socket. Reimplemented from TDESocketBase.
@@ -339,13 +325,13 @@ public:
/**
* Writes data to the socket. Reimplemented from TDESocketBase.
*/
- virtual TQT_TQIO_LONG tqwriteBlock(const char *data, TQT_TQIO_ULONG len);
+ virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len);
/**
* @overload
* Writes data to the socket. Reimplemented from TDESocketBase.
*/
- virtual TQT_TQIO_LONG tqwriteBlock(const char *data, TQT_TQIO_ULONG len, const TDESocketAddress& to);
+ virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len, const TDESocketAddress& to);
/**
* Returns the local socket address. Reimplemented from TDESocketBase.
diff --git a/tdecore/network/kdatagramsocket.cpp b/tdecore/network/kdatagramsocket.cpp
index 41d9cc7e9..5fa631560 100644
--- a/tdecore/network/kdatagramsocket.cpp
+++ b/tdecore/network/kdatagramsocket.cpp
@@ -52,11 +52,11 @@ KDatagramSocket::KDatagramSocket(TQObject* parent, const char *name)
localResolver().setFlags(KResolver::Passive);
- // TQObject::connect(localResolver(), TQT_SIGNAL(finished(KResolverResults)),
- // this, TQT_SLOT(lookupFinishedLocal()));
- TQObject::connect(&peerResolver(), TQT_SIGNAL(finished(KResolverResults)),
- this, TQT_SLOT(lookupFinishedPeer()));
- TQObject::connect(this, TQT_SIGNAL(hostFound()), this, TQT_SLOT(lookupFinishedLocal()));
+ // TQObject::connect(localResolver(), TQ_SIGNAL(finished(KResolverResults)),
+ // this, TQ_SLOT(lookupFinishedLocal()));
+ TQObject::connect(&peerResolver(), TQ_SIGNAL(finished(KResolverResults)),
+ this, TQ_SLOT(lookupFinishedPeer()));
+ TQObject::connect(this, TQ_SIGNAL(hostFound()), this, TQ_SLOT(lookupFinishedLocal()));
}
KDatagramSocket::~KDatagramSocket()
@@ -156,7 +156,7 @@ KDatagramPacket KDatagramSocket::receive()
TDESocketAddress address;
// now do the reading
- size = tqreadBlock(data.data(), size, address);
+ size = readBlock(data.data(), size, address);
if (size < 0)
// error has been set
return KDatagramPacket();
@@ -167,10 +167,10 @@ KDatagramPacket KDatagramSocket::receive()
TQ_LONG KDatagramSocket::send(const KDatagramPacket& packet)
{
- return tqwriteBlock(packet.data(), packet.size(), packet.address());
+ return writeBlock(packet.data(), packet.size(), packet.address());
}
-TQ_LONG KDatagramSocket::tqwriteBlock(const char *data, TQ_ULONG len, const TDESocketAddress& to)
+TQ_LONG KDatagramSocket::writeBlock(const char *data, TQ_ULONG len, const TDESocketAddress& to)
{
if (to.family() != AF_UNSPEC)
{
@@ -179,7 +179,7 @@ TQ_LONG KDatagramSocket::tqwriteBlock(const char *data, TQ_ULONG len, const TDES
// error handling will happen below
socketDevice()->create(to.family(), SOCK_DGRAM, 0);
}
- return KClientSocketBase::tqwriteBlock(data, len, to);
+ return KClientSocketBase::writeBlock(data, len, to);
}
void KDatagramSocket::lookupFinishedLocal()
@@ -265,7 +265,7 @@ void KDatagramSocket::setupSignals()
if (n)
{
n->setEnabled(emitsReadyRead());
- TQObject::connect(n, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotReadActivity()));
+ TQObject::connect(n, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotReadActivity()));
}
else
return;
@@ -274,7 +274,7 @@ void KDatagramSocket::setupSignals()
if (n)
{
n->setEnabled(emitsReadyWrite());
- TQObject::connect(n, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotWriteActivity()));
+ TQObject::connect(n, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotWriteActivity()));
}
else
return;
diff --git a/tdecore/network/kdatagramsocket.h b/tdecore/network/kdatagramsocket.h
index ae88fda29..b99938e8b 100644
--- a/tdecore/network/kdatagramsocket.h
+++ b/tdecore/network/kdatagramsocket.h
@@ -179,7 +179,7 @@ class KDatagramSocketPrivate;
*/
class TDECORE_EXPORT KDatagramSocket: public KClientSocketBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -223,7 +223,7 @@ public:
*
* Connecting means only to designate the given address as the default
* destination address for datagrams sent without destination addresses
- * ( tqwriteBlock(const char *, TQ_ULONG) ).
+ * ( writeBlock(const char *, TQ_ULONG) ).
*
* @note Calling connect will not cause the socket to be bound. You have
* to call @ref bind explicitly.
@@ -241,7 +241,7 @@ public:
/**
* Writes data to the socket. Reimplemented from KClientSocketBase.
*/
- virtual TQ_LONG tqwriteBlock(const char *data, TQ_ULONG len, const TDESocketAddress& to);
+ virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len, const TDESocketAddress& to);
/**
* Receives one datagram from the stream. The reading process is guaranteed
diff --git a/tdecore/network/khttpproxysocketdevice.cpp b/tdecore/network/khttpproxysocketdevice.cpp
index a5fad9cbe..980fa39d5 100644
--- a/tdecore/network/khttpproxysocketdevice.cpp
+++ b/tdecore/network/khttpproxysocketdevice.cpp
@@ -182,7 +182,7 @@ bool KHttpProxySocketDevice::parseServerReply()
if (!d->request.isEmpty())
{
// send request
- TQ_LONG written = tqwriteBlock(d->request, d->request.length());
+ TQ_LONG written = writeBlock(d->request, d->request.length());
if (written < 0)
{
tqDebug("KHttpProxySocketDevice: would block writing request!");
@@ -230,7 +230,7 @@ bool KHttpProxySocketDevice::parseServerReply()
{
// no, headers not yet finished...
// consume data from socket
- tqreadBlock(buf.data(), avail);
+ readBlock(buf.data(), avail);
d->reply += buf.data();
setError(IO_ConnectError, InProgress);
return true;
@@ -241,7 +241,7 @@ bool KHttpProxySocketDevice::parseServerReply()
d->reply += fullHeaders.mid(d->reply.length(), index + 4);
// consume from socket
- tqreadBlock(buf.data(), index + 4);
+ readBlock(buf.data(), index + 4);
}
else
{
diff --git a/tdecore/network/kresolver.cpp b/tdecore/network/kresolver.cpp
index 953ee7265..f80b9209e 100644
--- a/tdecore/network/kresolver.cpp
+++ b/tdecore/network/kresolver.cpp
@@ -550,7 +550,7 @@ void KResolver::emitFinished()
emit finished(d->results);
if (p && d->deleteWhenDone)
- deleteLater(); // in QObject
+ deleteLater(); // in TQObject
}
TQString KResolver::errorString(int errorcode, int syserror)
@@ -591,7 +591,7 @@ KResolverResults
KResolver::resolve(const TQString& host, const TQString& service, int flags,
int families)
{
- KResolver qres(host, service, TQT_TQOBJECT(tqApp), "synchronous KResolver");
+ KResolver qres(host, service, tqApp, "synchronous KResolver");
qres.setFlags(flags);
qres.setFamily(families);
qres.start();
@@ -603,8 +603,8 @@ bool KResolver::resolveAsync(TQObject* userObj, const char *userSlot,
const TQString& host, const TQString& service,
int flags, int families)
{
- KResolver* qres = new KResolver(host, service, TQT_TQOBJECT(tqApp), "asynchronous KResolver");
- TQObject::connect(qres, TQT_SIGNAL(finished(KResolverResults)), userObj, userSlot);
+ KResolver* qres = new KResolver(host, service, tqApp, "asynchronous KResolver");
+ TQObject::connect(qres, TQ_SIGNAL(finished(KResolverResults)), userObj, userSlot);
qres->setFlags(flags);
qres->setFamily(families);
qres->d->deleteWhenDone = true; // this is the only difference from the example code
diff --git a/tdecore/network/kresolver.h b/tdecore/network/kresolver.h
index dbcf0d102..51e605704 100644
--- a/tdecore/network/kresolver.h
+++ b/tdecore/network/kresolver.h
@@ -294,7 +294,7 @@ class KResolverPrivate;
*/
class TDECORE_EXPORT KResolver: public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -759,7 +759,7 @@ public:
*
* \code
* KResolver* qres = new KResolver(host, service);
- * TQObject::connect(qres, TQT_SIGNAL(finished(KResolverResults)),
+ * TQObject::connect(qres, TQ_SIGNAL(finished(KResolverResults)),
* userObj, userSlot);
* qres->setFlags(flags);
* qres->setFamily(families);
@@ -768,7 +768,7 @@ public:
*
* You should use it like this in your code:
* \code
- * KResolver::resolveAsync(myObj, TQT_SLOT(mySlot(KResolverResults)), host, service);
+ * KResolver::resolveAsync(myObj, TQ_SLOT(mySlot(KResolverResults)), host, service);
* \endcode
*
* @param userObj the object whose slot @p userSlot we will connect
diff --git a/tdecore/network/kresolver_p.h b/tdecore/network/kresolver_p.h
index c9d64e4bc..896fe536f 100644
--- a/tdecore/network/kresolver_p.h
+++ b/tdecore/network/kresolver_p.h
@@ -206,7 +206,7 @@ namespace KNetwork
KResolverManager();
public:
- static KResolverManager* manager() KDE_NO_EXPORT; // creates and returns the global manager
+ static KResolverManager* manager() TDE_NO_EXPORT; // creates and returns the global manager
// destructor
~KResolverManager();
diff --git a/tdecore/network/kresolverstandardworkers.cpp b/tdecore/network/kresolverstandardworkers.cpp
index c10c64e97..ed083f541 100644
--- a/tdecore/network/kresolverstandardworkers.cpp
+++ b/tdecore/network/kresolverstandardworkers.cpp
@@ -45,7 +45,7 @@
#include "kdebug.h"
#include "tdeglobal.h"
-#include "kstandarddirs.h"
+#include "tdestandarddirs.h"
#include "tdeapplication.h"
#include "kresolver.h"
diff --git a/tdecore/network/kresolverstandardworkers_p.h b/tdecore/network/kresolverstandardworkers_p.h
index 05d0d5b26..92d15892a 100644
--- a/tdecore/network/kresolverstandardworkers_p.h
+++ b/tdecore/network/kresolverstandardworkers_p.h
@@ -39,7 +39,7 @@
namespace KNetwork { namespace Internal
{
- extern void initStandardWorkers() KDE_NO_EXPORT;
+ extern void initStandardWorkers() TDE_NO_EXPORT;
/**
* @internal
diff --git a/tdecore/network/kreverseresolver.h b/tdecore/network/kreverseresolver.h
index 47a99e3ac..41dc38e90 100644
--- a/tdecore/network/kreverseresolver.h
+++ b/tdecore/network/kreverseresolver.h
@@ -49,7 +49,7 @@ class KReverseResolverPrivate;
*/
class TDECORE_EXPORT KReverseResolver: public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdecore/network/kserversocket.cpp b/tdecore/network/kserversocket.cpp
index 94532de19..0cfba8fa5 100644
--- a/tdecore/network/kserversocket.cpp
+++ b/tdecore/network/kserversocket.cpp
@@ -61,15 +61,15 @@ public:
TDEServerSocket::TDEServerSocket(TQObject* parent, const char *name)
: TQObject(parent, name), d(new TDEServerSocketPrivate)
{
- TQObject::connect(&d->resolver, TQT_SIGNAL(finished(KResolverResults)),
- this, TQT_SLOT(lookupFinishedSlot()));
+ TQObject::connect(&d->resolver, TQ_SIGNAL(finished(KResolverResults)),
+ this, TQ_SLOT(lookupFinishedSlot()));
}
TDEServerSocket::TDEServerSocket(const TQString& service, TQObject* parent, const char *name)
: TQObject(parent, name), d(new TDEServerSocketPrivate)
{
- TQObject::connect(&d->resolver, TQT_SIGNAL(finished(KResolverResults)),
- this, TQT_SLOT(lookupFinishedSlot()));
+ TQObject::connect(&d->resolver, TQ_SIGNAL(finished(KResolverResults)),
+ this, TQ_SLOT(lookupFinishedSlot()));
d->resolver.setServiceName(service);
}
@@ -77,8 +77,8 @@ TDEServerSocket::TDEServerSocket(const TQString& node, const TQString& service,
TQObject* parent, const char* name)
: TQObject(parent, name), d(new TDEServerSocketPrivate)
{
- TQObject::connect(&d->resolver, TQT_SIGNAL(finished(KResolverResults)),
- this, TQT_SLOT(lookupFinishedSlot()));
+ TQObject::connect(&d->resolver, TQ_SIGNAL(finished(KResolverResults)),
+ this, TQ_SLOT(lookupFinishedSlot()));
setAddress(node, service);
}
@@ -403,8 +403,8 @@ bool TDEServerSocket::doListen()
}
// set up ready accept signal
- TQObject::connect(socketDevice()->readNotifier(), TQT_SIGNAL(activated(int)),
- this, TQT_SIGNAL(readyAccept()));
+ TQObject::connect(socketDevice()->readNotifier(), TQ_SIGNAL(activated(int)),
+ this, TQ_SIGNAL(readyAccept()));
d->state = TDEServerSocketPrivate::Listening;
return true;
}
diff --git a/tdecore/network/kserversocket.h b/tdecore/network/kserversocket.h
index beb43aeb7..637dc92d0 100644
--- a/tdecore/network/kserversocket.h
+++ b/tdecore/network/kserversocket.h
@@ -50,8 +50,8 @@ class TDEServerSocketPrivate;
* \code
* TQString service = "http";
* TDEServerSocket *ss = new TDEServerSocket(service);
- * connect(ss, TQT_SIGNAL(readyAccept()), this, TQT_SLOT(slotReadyAccept()));
- * connect(ss, TQT_SIGNAL(gotError(int)), this, TQT_SLOT(slotSocketError(int)));
+ * connect(ss, TQ_SIGNAL(readyAccept()), this, TQ_SLOT(slotReadyAccept()));
+ * connect(ss, TQ_SIGNAL(gotError(int)), this, TQ_SLOT(slotSocketError(int)));
* ss->listen();
* \endcode
*
@@ -84,8 +84,8 @@ class TDEServerSocketPrivate;
* if( !found ) {
* // Couldn't connect to any port.
* } else {
- * connect(ss, TQT_SIGNAL(readyAccept()), this, TQT_SLOT(slotReadyAccept()));
- * connect(ss, TQT_SIGNAL(gotError(int)), this, TQT_SLOT(slotSocketError(int)));
+ * connect(ss, TQ_SIGNAL(readyAccept()), this, TQ_SLOT(slotReadyAccept()));
+ * connect(ss, TQ_SIGNAL(gotError(int)), this, TQ_SLOT(slotSocketError(int)));
* ss->listen();
* }
* \endcode
@@ -106,7 +106,7 @@ class TDEServerSocketPrivate;
*/
class TDECORE_EXPORT TDEServerSocket: public TQObject, public KPassiveSocketBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
diff --git a/tdecore/network/ksockssocketdevice.cpp b/tdecore/network/ksockssocketdevice.cpp
index b7171999c..f4388251f 100644
--- a/tdecore/network/ksockssocketdevice.cpp
+++ b/tdecore/network/ksockssocketdevice.cpp
@@ -214,7 +214,7 @@ static int socks_read_common(int sockfd, char *data, TQ_ULONG maxlen, TDESocketA
return 0;
}
-TQ_LONG KSocksSocketDevice::tqreadBlock(char *data, TQ_ULONG maxlen)
+TQ_LONG KSocksSocketDevice::readBlock(char *data, TQ_ULONG maxlen)
{
resetError();
if (m_sockfd == -1)
@@ -235,7 +235,7 @@ TQ_LONG KSocksSocketDevice::tqreadBlock(char *data, TQ_ULONG maxlen)
return retval;
}
-TQ_LONG KSocksSocketDevice::tqreadBlock(char *data, TQ_ULONG maxlen, TDESocketAddress &from)
+TQ_LONG KSocksSocketDevice::readBlock(char *data, TQ_ULONG maxlen, TDESocketAddress &from)
{
resetError();
if (m_sockfd == -1)
@@ -298,12 +298,12 @@ TQ_LONG KSocksSocketDevice::peekBlock(char *data, TQ_ULONG maxlen, TDESocketAddr
return retval;
}
-TQ_LONG KSocksSocketDevice::tqwriteBlock(const char *data, TQ_ULONG len)
+TQ_LONG KSocksSocketDevice::writeBlock(const char *data, TQ_ULONG len)
{
- return tqwriteBlock(data, len, TDESocketAddress());
+ return writeBlock(data, len, TDESocketAddress());
}
-TQ_LONG KSocksSocketDevice::tqwriteBlock(const char *data, TQ_ULONG len, const TDESocketAddress& to)
+TQ_LONG KSocksSocketDevice::writeBlock(const char *data, TQ_ULONG len, const TDESocketAddress& to)
{
resetError();
if (m_sockfd == -1)
@@ -467,7 +467,7 @@ void KSocksSocketDevice::initSocks()
if (init)
return;
- if (kapp == 0L)
+ if (tdeApp == 0L)
return; // no TDEApplication, so don't initialise
// this should, however, test for TDEInstance
diff --git a/tdecore/network/ksockssocketdevice.h b/tdecore/network/ksockssocketdevice.h
index c899ce58f..760038143 100644
--- a/tdecore/network/ksockssocketdevice.h
+++ b/tdecore/network/ksockssocketdevice.h
@@ -83,8 +83,8 @@ public:
/**
* Overrides reading.
*/
- virtual TQ_LONG tqreadBlock(char *data, TQ_ULONG maxlen);
- virtual TQ_LONG tqreadBlock(char *data, TQ_ULONG maxlen, TDESocketAddress& from);
+ virtual TQ_LONG readBlock(char *data, TQ_ULONG maxlen);
+ virtual TQ_LONG readBlock(char *data, TQ_ULONG maxlen, TDESocketAddress& from);
/**
* Overrides peeking.
@@ -95,8 +95,8 @@ public:
/**
* Overrides writing.
*/
- virtual TQ_LONG tqwriteBlock(const char *data, TQ_ULONG len);
- virtual TQ_LONG tqwriteBlock(const char *data, TQ_ULONG len, const TDESocketAddress& to);
+ virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len);
+ virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len, const TDESocketAddress& to);
/**
* Overrides getting socket address.
diff --git a/tdecore/network/ksrvresolverworker.cpp b/tdecore/network/ksrvresolverworker.cpp
index 8f918977e..732de02a4 100644
--- a/tdecore/network/ksrvresolverworker.cpp
+++ b/tdecore/network/ksrvresolverworker.cpp
@@ -226,7 +226,7 @@ bool KSrvResolverWorker::postprocess()
void KSrvResolverWorker::customEvent(TQCustomEvent*)
{
dns = new TQDns(TQString::fromLatin1(encodedName), TQDns::Srv);
- TQObject::connect(dns, TQT_SIGNAL(resultsReady()), this, TQT_SLOT(dnsResultsReady()));
+ TQObject::connect(dns, TQ_SIGNAL(resultsReady()), this, TQ_SLOT(dnsResultsReady()));
}
void KSrvResolverWorker::dnsResultsReady()
@@ -242,7 +242,7 @@ namespace KNetwork
namespace Internal
{
- void initSrvWorker() KDE_NO_EXPORT;
+ void initSrvWorker() TDE_NO_EXPORT;
void initSrvWorker()
{
if (getenv("TDE_NO_SRV") != NULL)
diff --git a/tdecore/network/ksrvresolverworker_p.h b/tdecore/network/ksrvresolverworker_p.h
index 5080c4a59..efb4c45f9 100644
--- a/tdecore/network/ksrvresolverworker_p.h
+++ b/tdecore/network/ksrvresolverworker_p.h
@@ -41,7 +41,7 @@ namespace KNetwork
class KSrvResolverWorker: public TQObject,
public KNetwork::KResolverWorkerBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdecore/network/kstreamsocket.cpp b/tdecore/network/kstreamsocket.cpp
index c323a212e..a36f8cc78 100644
--- a/tdecore/network/kstreamsocket.cpp
+++ b/tdecore/network/kstreamsocket.cpp
@@ -61,7 +61,7 @@ KStreamSocket::KStreamSocket(const TQString& node, const TQString& service,
setSocketOptions(socketOptions() & ~Blocking);
- TQObject::connect(&d->timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeoutSlot()));
+ TQObject::connect(&d->timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timeoutSlot()));
}
KStreamSocket::~KStreamSocket()
@@ -130,7 +130,7 @@ bool KStreamSocket::connect(const TQString& node, const TQString& service)
// connection hasn't started yet
if (!blocking())
{
- QObject::connect(this, TQT_SIGNAL(hostFound()), TQT_SLOT(hostFoundSlot()));
+ TQObject::connect(this, TQ_SIGNAL(hostFound()), TQ_SLOT(hostFoundSlot()));
return lookup();
}
@@ -196,10 +196,10 @@ bool KStreamSocket::connect(const KResolverEntry& entry)
void KStreamSocket::hostFoundSlot()
{
- QObject::disconnect(this, TQT_SLOT(hostFoundSlot()));
+ TQObject::disconnect(this, TQ_SLOT(hostFoundSlot()));
if (timeout() > 0)
d->timer.start(timeout(), true);
- TQTimer::singleShot(0, this, TQT_SLOT(connectionEvent()));
+ TQTimer::singleShot(0, this, TQ_SLOT(connectionEvent()));
}
void KStreamSocket::connectionEvent()
@@ -267,13 +267,13 @@ void KStreamSocket::connectionEvent()
if (socketDevice()->error() == InProgress)
{
TQSocketNotifier *n = socketDevice()->readNotifier();
- TQObject::connect(n, TQT_SIGNAL(activated(int)),
- this, TQT_SLOT(connectionEvent()));
+ TQObject::connect(n, TQ_SIGNAL(activated(int)),
+ this, TQ_SLOT(connectionEvent()));
n->setEnabled(true);
n = socketDevice()->writeNotifier();
- TQObject::connect(n, TQT_SIGNAL(activated(int)),
- this, TQT_SLOT(connectionEvent()));
+ TQObject::connect(n, TQ_SIGNAL(activated(int)),
+ this, TQ_SLOT(connectionEvent()));
n->setEnabled(true);
return; // wait for activity
@@ -350,8 +350,8 @@ bool KStreamSocket::bindLocallyFor(const KResolverEntry& peer)
void KStreamSocket::connectionSucceeded(const KResolverEntry& peer)
{
- TQObject::disconnect(socketDevice()->readNotifier(), 0, this, TQT_SLOT(connectionEvent()));
- TQObject::disconnect(socketDevice()->writeNotifier(), 0, this, TQT_SLOT(connectionEvent()));
+ TQObject::disconnect(socketDevice()->readNotifier(), 0, this, TQ_SLOT(connectionEvent()));
+ TQObject::disconnect(socketDevice()->writeNotifier(), 0, this, TQ_SLOT(connectionEvent()));
resetError();
setFlags(IO_Sequential | IO_Raw | IO_ReadWrite | IO_Open | IO_Async);
diff --git a/tdecore/network/kstreamsocket.h b/tdecore/network/kstreamsocket.h
index 94396b38d..a7557d585 100644
--- a/tdecore/network/kstreamsocket.h
+++ b/tdecore/network/kstreamsocket.h
@@ -70,14 +70,14 @@ class KStreamSocketPrivate;
* : socket(hostname, port)
* {
* // connect signals to our slots
- * TQObject::connect(&socket, TQT_SIGNAL(connected(const KResolverEntry&)),
- * this, TQT_SLOT(slotSocketConnected()));
- * TQObject::connect(&socket, TQT_SIGNAL(gotError(int)),
- * this, TQT_SLOT(slotSocketError(int)));
- * TQObject::connect(&socket, TQT_SIGNAL(readyRead()),
- * this, TQT_SLOT(slotSocketReadyToRead()));
- * TQObject::connect(&socket, TQT_SIGNAL(readyWrite()),
- * this, TQT_SLOT(slotSocketReadyToWrite()));
+ * TQObject::connect(&socket, TQ_SIGNAL(connected(const KResolverEntry&)),
+ * this, TQ_SLOT(slotSocketConnected()));
+ * TQObject::connect(&socket, TQ_SIGNAL(gotError(int)),
+ * this, TQ_SLOT(slotSocketError(int)));
+ * TQObject::connect(&socket, TQ_SIGNAL(readyRead()),
+ * this, TQ_SLOT(slotSocketReadyToRead()));
+ * TQObject::connect(&socket, TQ_SIGNAL(readyWrite()),
+ * this, TQ_SLOT(slotSocketReadyToWrite()));
*
* // set non-blocking mode in order to work asynchronously
* socket.setBlocking(false);
@@ -96,7 +96,7 @@ class KStreamSocketPrivate;
*/
class TDECORE_EXPORT KStreamSocket: public KClientSocketBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdecore/network/tdesocketbase.cpp b/tdecore/network/tdesocketbase.cpp
index 7379eb74a..0b2ef90d7 100644
--- a/tdecore/network/tdesocketbase.cpp
+++ b/tdecore/network/tdesocketbase.cpp
@@ -291,7 +291,7 @@ KActiveSocketBase::~KActiveSocketBase()
int KActiveSocketBase::getch()
{
unsigned char c;
- if (tqreadBlock((char*)&c, 1) != 1)
+ if (readBlock((char*)&c, 1) != 1)
return -1;
return c;
@@ -300,7 +300,7 @@ int KActiveSocketBase::getch()
int KActiveSocketBase::putch(int ch)
{
unsigned char c = (unsigned char)ch;
- if (tqwriteBlock((char*)&c, 1) != 1)
+ if (writeBlock((char*)&c, 1) != 1)
return -1;
return c;
diff --git a/tdecore/network/tdesocketbase.h b/tdecore/network/tdesocketbase.h
index 706900117..d2a213300 100644
--- a/tdecore/network/tdesocketbase.h
+++ b/tdecore/network/tdesocketbase.h
@@ -63,10 +63,10 @@
#include <tdelibs_export.h>
/*
- * This is extending QIODevice's error codes
+ * This is extending TQIODevice's error codes
*
* According to tqiodevice.h, the last error is IO_UnspecifiedError
- * These errors will never occur in functions declared in QIODevice
+ * These errors will never occur in functions declared in TQIODevice
* (except open, but you shouldn't call open)
*/
#define IO_ListenError (IO_UnspecifiedError+1)
@@ -504,11 +504,7 @@ public:
* This call is not supported on sockets. Reimplemented from TQIODevice.
* This will always return 0.
*/
-#ifdef USE_QT4
- virtual qint64 size() const
-#else // USE_QT4
virtual Offset size() const
-#endif // USE_QT4
{ return 0; }
/**
@@ -536,12 +532,7 @@ public:
* Returns the number of bytes available for reading without
* blocking.
*/
-#ifdef USE_QT3
virtual TQ_LONG bytesAvailable() const = 0;
-#endif
-#ifdef USE_QT4
- virtual qint64 bytesAvailable() const = 0;
-#endif
/**
* Waits up to @p msecs for more data to be available on this socket.
@@ -562,7 +553,7 @@ public:
* Reimplemented from TQIODevice. See TQIODevice::readBlock for
* more information.
*/
- virtual TQT_TQIO_LONG tqreadBlock(char *data, TQT_TQIO_ULONG len) = 0;
+ virtual TQ_LONG readBlock(char *data, TQ_ULONG len) = 0;
/** @overload
* Receives data and the source address.
@@ -575,7 +566,7 @@ public:
* @param from the address of the sender will be stored here
* @returns the actual number of bytes read
*/
- virtual TQT_TQIO_LONG tqreadBlock(char *data, TQT_TQIO_ULONG maxlen, TDESocketAddress& from) = 0;
+ virtual TQ_LONG readBlock(char *data, TQ_ULONG maxlen, TDESocketAddress& from) = 0;
/**
* Peeks the data in the socket.
@@ -610,7 +601,7 @@ public:
* Reimplemented from TQIODevice. See TQIODevice::writeBlock for
* more information.
*/
- virtual TQT_TQIO_LONG tqwriteBlock(const char *data, TQT_TQIO_ULONG len) = 0;
+ virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len) = 0;
/** @overload
* Writes the given data to the destination address.
@@ -623,7 +614,7 @@ public:
* @param to the address to send to
* @returns the number of bytes actually sent
*/
- virtual TQT_TQIO_LONG tqwriteBlock(const char *data, TQT_TQIO_ULONG len, const TDESocketAddress& to) = 0;
+ virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len, const TDESocketAddress& to) = 0;
/**
* Reads one character from the socket.
diff --git a/tdecore/network/tdesocketbuffer.cpp b/tdecore/network/tdesocketbuffer.cpp
index 49bdbe31e..36e64e0f0 100644
--- a/tdecore/network/tdesocketbuffer.cpp
+++ b/tdecore/network/tdesocketbuffer.cpp
@@ -274,7 +274,7 @@ TQ_LONG TDESocketBuffer::sendTo(KActiveSocketBase* dev, TQ_LONG len)
}
// now try to write those bytes
- TQ_LONG wrote = dev->tqwriteBlock(buf, count);
+ TQ_LONG wrote = dev->writeBlock(buf, count);
if (wrote == -1)
// error?
@@ -315,7 +315,7 @@ TQ_LONG TDESocketBuffer::receiveFrom(KActiveSocketBase* dev, TQ_LONG len)
// now do the reading
TQByteArray a(len);
- len = dev->tqreadBlock(a.data(), len);
+ len = dev->readBlock(a.data(), len);
if (len == -1)
// error?
diff --git a/tdecore/network/tdesocketdevice.cpp b/tdecore/network/tdesocketdevice.cpp
index 6f3ec755b..b5aef0943 100644
--- a/tdecore/network/tdesocketdevice.cpp
+++ b/tdecore/network/tdesocketdevice.cpp
@@ -171,7 +171,7 @@ bool TDESocketDevice::setSocketOptions(int opts)
return true; // all went well
}
-bool TDESocketDevice::open(TQ_OpenMode)
+bool TDESocketDevice::open(int)
{
resetError();
return false;
@@ -364,12 +364,7 @@ bool TDESocketDevice::disconnect()
return true; // all is well
}
-#ifdef USE_QT3
TQ_LONG TDESocketDevice::bytesAvailable() const
-#endif
-#ifdef USE_QT4
-qint64 TDESocketDevice::bytesAvailable() const
-#endif
{
if (m_sockfd == -1)
return -1; // there's nothing to read in a closed socket
@@ -419,7 +414,7 @@ static int do_read_common(int sockfd, char *data, TQ_ULONG maxlen, TDESocketAddr
return 0;
}
-TQT_TQIO_LONG TDESocketDevice::tqreadBlock(char *data, TQT_TQIO_ULONG maxlen)
+TQ_LONG TDESocketDevice::readBlock(char *data, TQ_ULONG maxlen)
{
resetError();
if (m_sockfd == -1)
@@ -440,7 +435,7 @@ TQT_TQIO_LONG TDESocketDevice::tqreadBlock(char *data, TQT_TQIO_ULONG maxlen)
return retval;
}
-TQT_TQIO_LONG TDESocketDevice::tqreadBlock(char *data, TQT_TQIO_ULONG maxlen, TDESocketAddress &from)
+TQ_LONG TDESocketDevice::readBlock(char *data, TQ_ULONG maxlen, TDESocketAddress &from)
{
resetError();
if (m_sockfd == -1)
@@ -503,12 +498,12 @@ TQ_LONG TDESocketDevice::peekBlock(char *data, TQ_ULONG maxlen, TDESocketAddress
return retval;
}
-TQT_TQIO_LONG TDESocketDevice::tqwriteBlock(const char *data, TQT_TQIO_ULONG len)
+TQ_LONG TDESocketDevice::writeBlock(const char *data, TQ_ULONG len)
{
- return tqwriteBlock(data, len, TDESocketAddress());
+ return writeBlock(data, len, TDESocketAddress());
}
-TQT_TQIO_LONG TDESocketDevice::tqwriteBlock(const char *data, TQT_TQIO_ULONG len, const TDESocketAddress& to)
+TQ_LONG TDESocketDevice::writeBlock(const char *data, TQ_ULONG len, const TDESocketAddress& to)
{
resetError();
if (m_sockfd == -1)
diff --git a/tdecore/network/tdesocketdevice.h b/tdecore/network/tdesocketdevice.h
index e5477c0c6..2196e9d3f 100644
--- a/tdecore/network/tdesocketdevice.h
+++ b/tdecore/network/tdesocketdevice.h
@@ -142,7 +142,7 @@ public:
/**
* Reimplementation from TQIODevice. You should not call this function in sockets.
*/
- virtual bool open(TQ_OpenMode mode);
+ virtual bool open(int mode);
/**
* Closes the socket. Reimplemented from TQIODevice.
@@ -198,12 +198,7 @@ public:
/**
* Returns the number of bytes available for reading without blocking.
*/
-#ifdef USE_QT3
virtual TQ_LONG bytesAvailable() const;
-#endif
-#ifdef USE_QT4
- virtual qint64 bytesAvailable() const;
-#endif
/**
* Waits up to @p msecs for more data to be available on this socket.
@@ -216,12 +211,12 @@ public:
/**
* Reads data from this socket.
*/
- virtual TQT_TQIO_LONG tqreadBlock(char *data, TQT_TQIO_ULONG maxlen);
+ virtual TQ_LONG readBlock(char *data, TQ_ULONG maxlen);
/**
* Reads data and the source address from this socket.
*/
- virtual TQT_TQIO_LONG tqreadBlock(char *data, TQT_TQIO_ULONG maxlen, TDESocketAddress& from);
+ virtual TQ_LONG readBlock(char *data, TQ_ULONG maxlen, TDESocketAddress& from);
/**
* Peeks data in the socket.
@@ -236,12 +231,12 @@ public:
/**
* Writes data to the socket.
*/
- virtual TQT_TQIO_LONG tqwriteBlock(const char *data, TQT_TQIO_ULONG len);
+ virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len);
/**
* Writes the given data to the given destination address.
*/
- virtual TQT_TQIO_LONG tqwriteBlock(const char *data, TQT_TQIO_ULONG len, const TDESocketAddress& to);
+ virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len, const TDESocketAddress& to);
/**
* Returns this socket's local address.
diff --git a/tdecore/svgicons/ksvgiconengine.cpp b/tdecore/svgicons/ksvgiconengine.cpp
index 3e68624c6..79f34d806 100644
--- a/tdecore/svgicons/ksvgiconengine.cpp
+++ b/tdecore/svgicons/ksvgiconengine.cpp
@@ -202,11 +202,7 @@ public:
TQWMatrix matrix = m_engine->painter()->parseTransform(transform);
TQWMatrix *current = m_engine->painter()->worldMatrix();
-#ifdef USE_QT4
-printf("[FIXME] *current = matrix * *current locks up under Qt4; bypassing for now\n");
-#else // USE_QT4
*current = matrix * *current;
-#endif // USE_QT4
}
void parseCommonAttributes(TQDomNode &node)
@@ -445,7 +441,7 @@ printf("[FIXME] *current = matrix * *current locks up under Qt4; bypassing for n
{
// Scale, if needed
if(image.width() != (int) w || image.height() != (int) h)
- image = image.smoothScale((int) w, (int) h, TQ_ScaleFree);
+ image = image.smoothScale((int) w, (int) h, TQImage::ScaleFree);
m_engine->painter()->drawImage(x, y, image);
}
diff --git a/tdecore/svgicons/ksvgiconpainter.cpp b/tdecore/svgicons/ksvgiconpainter.cpp
index e0e2a2ce9..7c2859656 100644
--- a/tdecore/svgicons/ksvgiconpainter.cpp
+++ b/tdecore/svgicons/ksvgiconpainter.cpp
@@ -57,7 +57,7 @@ public:
m_clipSVP = 0;
- m_fillColor = Qt::black;
+ m_fillColor = TQt::black;
m_useFill = true;
m_useStroke = false;
diff --git a/tdecore/tde-config.cpp.cmake b/tdecore/tde-config.cpp.cmake
index 14553d2e7..accc5c80f 100644
--- a/tdecore/tde-config.cpp.cmake
+++ b/tdecore/tde-config.cpp.cmake
@@ -1,7 +1,7 @@
#include <tdecmdlineargs.h>
#include <tdelocale.h>
-#include <kinstance.h>
-#include <kstandarddirs.h>
+#include <tdeinstance.h>
+#include <tdestandarddirs.h>
#include <tdeglobal.h>
#include <tdeglobalsettings.h>
#include <stdio.h>
diff --git a/tdecore/tde-config.cpp.in b/tdecore/tde-config.cpp.in
index 86394d75d..4968d9d4a 100644
--- a/tdecore/tde-config.cpp.in
+++ b/tdecore/tde-config.cpp.in
@@ -1,7 +1,7 @@
#include <tdecmdlineargs.h>
#include <tdelocale.h>
-#include <kinstance.h>
-#include <kstandarddirs.h>
+#include <tdeinstance.h>
+#include <tdestandarddirs.h>
#include <tdeglobal.h>
#include <tdeglobalsettings.h>
#include <stdio.h>
@@ -118,7 +118,7 @@ int main(int argc, char **argv)
TDECmdLineArgs::addCmdLineOptions( options ); // Add my own options.
TDEInstance a("tde-config");
- a.setConfigReadOnly(TRUE);
+ a.setConfigReadOnly(true);
(void)TDEGlobal::dirs(); // trigger the creation
(void)TDEGlobal::config();
diff --git a/tdecore/tdeaboutdata.cpp b/tdecore/tdeaboutdata.cpp
index 3a147842a..318a38d50 100644
--- a/tdecore/tdeaboutdata.cpp
+++ b/tdecore/tdeaboutdata.cpp
@@ -21,7 +21,7 @@
#include <tdeaboutdata.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tqfile.h>
#include <tqtextstream.h>
@@ -446,6 +446,10 @@ TDEAboutData::license() const
l = "QPL v1.0";
f = locate("data", "LICENSES/QPL_V1.0");
break;
+ case License_MIT:
+ l = "MIT";
+ f = locate("data", "LICENSES/MIT");
+ break;
case License_Custom:
if (mLicenseText && *mLicenseText)
return( i18n(mLicenseText) );
diff --git a/tdecore/tdeaboutdata.h b/tdecore/tdeaboutdata.h
index 06f193f75..071da368b 100644
--- a/tdecore/tdeaboutdata.h
+++ b/tdecore/tdeaboutdata.h
@@ -199,7 +199,8 @@ class TDECORE_EXPORT TDEAboutData
License_QPL = 5,
License_QPL_V1_0 = 5,
License_GPL_V3 = 6,
- License_LGPL_V3 = 7
+ License_LGPL_V3 = 7,
+ License_MIT = 8
};
public:
diff --git a/tdecore/tdeaccel.cpp b/tdecore/tdeaccel.cpp
index 5430c2529..5796bf060 100644
--- a/tdecore/tdeaccel.cpp
+++ b/tdecore/tdeaccel.cpp
@@ -34,7 +34,7 @@
#include "tdeaccelprivate.h"
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
# include <X11/Xlib.h>
# ifdef KeyPress // needed for --enable-final
// defined by X11 headers
@@ -49,7 +49,7 @@
//---------------------------------------------------------------------
//
// In TDEAccelEventHandler::x11Event we do our own X11 keyboard event handling
-// This allows us to map the Win key to Qt::MetaButton, Qt does not know about
+// This allows us to map the Win key to TQt::MetaButton, Qt does not know about
// the Win key.
//
// TDEAccelEventHandler::x11Event will generate an AccelOverride event. The
@@ -95,7 +95,7 @@ class TDEAccelEventHandler : public TQWidget
private:
TDEAccelEventHandler();
-# ifdef Q_WS_X11
+# ifdef TQ_WS_X11
bool x11Event( XEvent* pEvent );
# endif
@@ -109,21 +109,21 @@ bool TDEAccelEventHandler::g_bAccelActivated = false;
TDEAccelEventHandler::TDEAccelEventHandler()
: TQWidget( 0, "TDEAccelEventHandler" )
{
-# ifdef Q_WS_X11
- if ( kapp )
- kapp->installX11EventFilter( TQT_TQWIDGET(this) );
+# ifdef TQ_WS_X11
+ if ( tdeApp )
+ tdeApp->installX11EventFilter( this );
# endif
}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
bool tqt_try_modal( TQWidget *, XEvent * );
bool TDEAccelEventHandler::x11Event( XEvent* pEvent )
{
- if( TQWidget::keyboardGrabber() || !kapp->focusWidget() )
+ if( TQWidget::keyboardGrabber() || !tdeApp->focusWidget() )
return false;
- if ( !tqt_try_modal(kapp->focusWidget(), pEvent) )
+ if ( !tqt_try_modal(tdeApp->focusWidget(), pEvent) )
return false;
if( pEvent->type == XKeyPress ) {
@@ -144,7 +144,7 @@ bool TDEAccelEventHandler::x11Event( XEvent* pEvent )
ke.ignore();
g_bAccelActivated = false;
- kapp->sendEvent( kapp->focusWidget(), &ke );
+ tdeApp->sendEvent( tdeApp->focusWidget(), &ke );
// If the Override event was accepted from a non-TDEAccel widget,
// then kill the next AccelOverride in TDEApplication::notify.
@@ -157,7 +157,7 @@ bool TDEAccelEventHandler::x11Event( XEvent* pEvent )
return false;
}
-#endif // Q_WS_X11
+#endif // TQ_WS_X11
//---------------------------------------------------------------------
// TDEAccelPrivate
@@ -170,9 +170,9 @@ TDEAccelPrivate::TDEAccelPrivate( TDEAccel* pParent, TQWidget* pWatch )
m_pAccel = pParent;
m_pWatch = pWatch;
m_bAutoUpdate = true;
- connect( (TQAccel*)m_pAccel, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotKeyPressed(int)) );
+ connect( (TQAccel*)m_pAccel, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotKeyPressed(int)) );
-#ifdef Q_WS_X11 //only makes sense if TDEAccelEventHandler is working
+#ifdef TQ_WS_X11 //only makes sense if TDEAccelEventHandler is working
if( m_pWatch )
m_pWatch->installEventFilter( this );
#endif
@@ -237,10 +237,10 @@ bool TDEAccelPrivate::connectKey( TDEAccelAction& action, const KKeyServer::Key&
m_mapIDToKey[nID] = keyQt;
if( action.objSlotPtr() && action.methodSlotPtr() ) {
-#ifdef Q_WS_WIN /** @todo TEMP: new implementation (commit #424926) didn't work */
+#ifdef TQ_WS_WIN /** @todo TEMP: new implementation (commit #424926) didn't work */
((TQAccel*)m_pAccel)->connectItem( nID, action.objSlotPtr(), action.methodSlotPtr() );
#else
- ((TQAccel*)m_pAccel)->connectItem( nID, this, TQT_SLOT(slotKeyPressed(int)));
+ ((TQAccel*)m_pAccel)->connectItem( nID, this, TQ_SLOT(slotKeyPressed(int)));
#endif
if( !action.isEnabled() )
((TQAccel*)m_pAccel)->setItemEnabled( nID, false );
@@ -318,9 +318,9 @@ void TDEAccelPrivate::slotKeyPressed( int id )
int iAction = pMenu->idAt(1);
slotMenuActivated( iAction );
} else {
- connect( pMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotMenuActivated(int)) );
+ connect( pMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotMenuActivated(int)) );
pMenu->exec( m_pWatch->mapToGlobal( TQPoint( 0, 0 ) ) );
- disconnect( pMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotMenuActivated(int)) );
+ disconnect( pMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotMenuActivated(int)) );
}
delete pMenu;
}
@@ -334,11 +334,11 @@ void TDEAccelPrivate::slotMenuActivated( int iAction )
{
kdDebug(125) << "TDEAccelPrivate::slotMenuActivated( " << iAction << " )" << endl;
TDEAccelAction* pAction = actions().actionPtr( iAction );
-#ifdef Q_WS_WIN /** @todo TEMP: new implementation (commit #424926) didn't work */
+#ifdef TQ_WS_WIN /** @todo TEMP: new implementation (commit #424926) didn't work */
if( pAction ) {
- connect( this, TQT_SIGNAL(menuItemActivated()), pAction->objSlotPtr(), pAction->methodSlotPtr() );
+ connect( this, TQ_SIGNAL(menuItemActivated()), pAction->objSlotPtr(), pAction->methodSlotPtr() );
emit menuItemActivated();
- disconnect( this, TQT_SIGNAL(menuItemActivated()), pAction->objSlotPtr(), pAction->methodSlotPtr() );
+ disconnect( this, TQ_SIGNAL(menuItemActivated()), pAction->objSlotPtr(), pAction->methodSlotPtr() );
}
#else
emitActivatedSignal( pAction );
@@ -362,12 +362,12 @@ bool TDEAccelPrivate::eventFilter( TQObject* /*pWatched*/, TQEvent* pEvent )
TDEAccelAction* pAction = m_mapIDToAction[nID];
if( !pAction->isEnabled() )
continue;
-#ifdef Q_WS_WIN /** @todo TEMP: new implementation (commit #424926) didn't work */
+#ifdef TQ_WS_WIN /** @todo TEMP: new implementation (commit #424926) didn't work */
TQGuardedPtr<TDEAccelPrivate> me = this;
- connect( this, TQT_SIGNAL(menuItemActivated()), pAction->objSlotPtr(), pAction->methodSlotPtr() );
+ connect( this, TQ_SIGNAL(menuItemActivated()), pAction->objSlotPtr(), pAction->methodSlotPtr() );
emit menuItemActivated();
if (me) {
- disconnect( me, TQT_SIGNAL(menuItemActivated()), pAction->objSlotPtr(), pAction->methodSlotPtr() );
+ disconnect( me, TQ_SIGNAL(menuItemActivated()), pAction->objSlotPtr(), pAction->methodSlotPtr() );
}
#else
emitActivatedSignal( pAction );
@@ -384,25 +384,25 @@ bool TDEAccelPrivate::eventFilter( TQObject* /*pWatched*/, TQEvent* pEvent )
return false;
}
-#ifndef Q_WS_WIN /** @todo TEMP: new implementation (commit #424926) didn't work */
+#ifndef TQ_WS_WIN /** @todo TEMP: new implementation (commit #424926) didn't work */
void TDEAccelPrivate::emitActivatedSignal( TDEAccelAction* pAction )
{
if( pAction ) {
TQGuardedPtr<TDEAccelPrivate> me = this;
TQRegExp reg( "([ ]*TDEAccelAction.*)" );
if( reg.search( pAction->methodSlotPtr()) >= 0 ) {
- connect( this, TQT_SIGNAL(menuItemActivated(TDEAccelAction*)),
+ connect( this, TQ_SIGNAL(menuItemActivated(TDEAccelAction*)),
pAction->objSlotPtr(), pAction->methodSlotPtr() );
emit menuItemActivated( pAction );
if (me)
- disconnect( me, TQT_SIGNAL(menuItemActivated(TDEAccelAction*)),
+ disconnect( me, TQ_SIGNAL(menuItemActivated(TDEAccelAction*)),
pAction->objSlotPtr(), pAction->methodSlotPtr() );
} else {
- connect( this, TQT_SIGNAL(menuItemActivated()),
+ connect( this, TQ_SIGNAL(menuItemActivated()),
pAction->objSlotPtr(), pAction->methodSlotPtr() );
emit menuItemActivated();
if (me)
- disconnect( me, TQT_SIGNAL(menuItemActivated()),
+ disconnect( me, TQ_SIGNAL(menuItemActivated()),
pAction->objSlotPtr(), pAction->methodSlotPtr() );
}
diff --git a/tdecore/tdeaccel.h b/tdecore/tdeaccel.h
index 2d205885c..c8114059d 100644
--- a/tdecore/tdeaccel.h
+++ b/tdecore/tdeaccel.h
@@ -74,9 +74,9 @@ class TDEAccelPrivate;
* // Insert an action "Scroll Up" which is associated with the "Up" key:
* pAccel->insert( "Scroll Up", i18n("Scroll up"),
* i18n("Scroll up the current document by one line."),
- * Qt::Key_Up, this, TQT_SLOT(slotScrollUp()) );
+ * TQt::Key_Up, this, TQ_SLOT(slotScrollUp()) );
* // Insert an standard acclerator action.
- * pAccel->insert( TDEStdAccel::Print, this, TQT_SLOT(slotPrint()) );
+ * pAccel->insert( TDEStdAccel::Print, this, TQ_SLOT(slotPrint()) );
*
* // Update the shortcuts by read any user-defined settings from the
* // application's config file.
@@ -92,14 +92,14 @@ class TDEAccelPrivate;
class TDECORE_EXPORT TDEAccel : public TQAccel
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
* Creates a new TDEAccel that watches @p pParent, which is also
- * the QObject's parent.
+ * the TQObject's parent.
*
* @param pParent the parent and widget to watch for key strokes
- * @param psName the name of the QObject
+ * @param psName the name of the TQObject
*/
TDEAccel( TQWidget* pParent, const char* psName = 0 );
@@ -107,8 +107,8 @@ class TDECORE_EXPORT TDEAccel : public TQAccel
* Creates a new TDEAccel that watches @p watch.
*
* @param watch the widget to watch for key strokes
- * @param parent the parent of the QObject
- * @param psName the name of the QObject
+ * @param parent the parent of the TQObject
+ * @param psName the name of the TQObject
*/
TDEAccel( TQWidget* watch, TQObject* parent, const char* psName = 0 );
virtual ~TDEAccel();
@@ -159,7 +159,7 @@ class TDECORE_EXPORT TDEAccel : public TQAccel
* insert( "Do Something", i18n("Do Something"),
* i18n("This action allows you to do something really great with this program to "
* "the currently open document."),
- * ALT+Key_D, this, TQT_SLOT(slotDoSomething()) );
+ * ALT+Key_D, this, TQ_SLOT(slotDoSomething()) );
*\endcode
*
* @param sAction The internal name of the action.
@@ -191,7 +191,7 @@ class TDECORE_EXPORT TDEAccel : public TQAccel
*
* Usage:
* \code
- * insert( i18n("Do Something"), ALT+Key_D, this, TQT_SLOT(slotDoSomething()) );
+ * insert( i18n("Do Something"), ALT+Key_D, this, TQ_SLOT(slotDoSomething()) );
* \endcode
*
* @param psAction The name AND label of the action.
@@ -319,47 +319,47 @@ class TDECORE_EXPORT TDEAccel : public TQAccel
*/
bool insertItem( const TQString& sLabel, const TQString& sAction,
const char* psKey,
- int nIDMenu = 0, TQPopupMenu* pMenu = 0, bool bConfigurable = true ) KDE_DEPRECATED;
+ int nIDMenu = 0, TQPopupMenu* pMenu = 0, bool bConfigurable = true ) TDE_DEPRECATED;
/**
* @deprecated use insert
*/
bool insertItem( const TQString& sLabel, const TQString& sAction,
int key,
- int nIDMenu = 0, TQPopupMenu* pMenu = 0, bool bConfigurable = true ) KDE_DEPRECATED;
+ int nIDMenu = 0, TQPopupMenu* pMenu = 0, bool bConfigurable = true ) TDE_DEPRECATED;
/**
* @deprecated use insert
*/
- bool insertStdItem( TDEStdAccel::StdAccel id, const TQString& descr = TQString::null ) KDE_DEPRECATED;
+ bool insertStdItem( TDEStdAccel::StdAccel id, const TQString& descr = TQString::null ) TDE_DEPRECATED;
/**
* @deprecated use insert
*/
- bool connectItem( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot, bool bActivate = true ) KDE_DEPRECATED;
+ bool connectItem( const TQString& sAction, const TQObject* pObjSlot, const char* psMethodSlot, bool bActivate = true ) TDE_DEPRECATED;
/**
* @deprecated use insert( accel, pObjSlot, psMethodSlot );
*
*/
- KDE_DEPRECATED bool connectItem( TDEStdAccel::StdAccel accel, const TQObject* pObjSlot, const char* psMethodSlot )
+ TDE_DEPRECATED bool connectItem( TDEStdAccel::StdAccel accel, const TQObject* pObjSlot, const char* psMethodSlot )
{ return insert( accel, pObjSlot, psMethodSlot ); }
/**
* @deprecated use remove
*/
- bool removeItem( const TQString& sAction ) KDE_DEPRECATED;
+ bool removeItem( const TQString& sAction ) TDE_DEPRECATED;
/**
* @deprecated
*/
- bool setItemEnabled( const TQString& sAction, bool bEnable ) KDE_DEPRECATED;
+ bool setItemEnabled( const TQString& sAction, bool bEnable ) TDE_DEPRECATED;
/**
* @deprecated see KDE3PORTING.html
*/
- void changeMenuAccel( TQPopupMenu *menu, int id, const TQString& action ) KDE_DEPRECATED;
+ void changeMenuAccel( TQPopupMenu *menu, int id, const TQString& action ) TDE_DEPRECATED;
/**
* @deprecated see KDE3PORTING.html
*/
- void changeMenuAccel( TQPopupMenu *menu, int id, TDEStdAccel::StdAccel accel ) KDE_DEPRECATED;
+ void changeMenuAccel( TQPopupMenu *menu, int id, TDEStdAccel::StdAccel accel ) TDE_DEPRECATED;
/**
* @deprecated
*/
- static int stringToKey( const TQString& ) KDE_DEPRECATED;
+ static int stringToKey( const TQString& ) TDE_DEPRECATED;
/**
* @deprecated Use shortcut().
@@ -368,7 +368,7 @@ class TDECORE_EXPORT TDEAccel : public TQAccel
* @p action, or zero if either the action name cannot be
* found or the current key is set to no key.
*/
- int currentKey( const TQString& action ) const KDE_DEPRECATED;
+ int currentKey( const TQString& action ) const TDE_DEPRECATED;
/**
* @deprecated Use actions().actionPtr().
@@ -376,7 +376,7 @@ class TDECORE_EXPORT TDEAccel : public TQAccel
* Return the name of the accelerator item with the keycode @p key,
* or TQString::null if the item cannot be found.
*/
- TQString findKey( int key ) const KDE_DEPRECATED;
+ TQString findKey( int key ) const TDE_DEPRECATED;
#endif // !KDE_NO_COMPAT
protected:
diff --git a/tdecore/tdeaccelbase.cpp b/tdecore/tdeaccelbase.cpp
index 41864d47c..a3fc23e3e 100644
--- a/tdecore/tdeaccelbase.cpp
+++ b/tdecore/tdeaccelbase.cpp
@@ -246,7 +246,7 @@ connect new key sequences
}
*/
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
struct TDEAccelBase::X
{
uint iAction, iSeq, iVari;
@@ -269,7 +269,7 @@ struct TDEAccelBase::X
bool operator >( const X& x ) { return compare( x ) > 0; }
bool operator <=( const X& x ) { return compare( x ) <= 0; }
};
-#endif //Q_WS_X11
+#endif //TQ_WS_X11
/*
#1 Ctrl+A
@@ -315,7 +315,7 @@ struct TDEAccelBase::X
bool TDEAccelBase::updateConnections()
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdDebug(125) << "TDEAccelBase::updateConnections() this = " << this << endl;
// Retrieve the list of keys to be connected, sorted by priority.
// (key, variation, seq)
@@ -414,11 +414,11 @@ bool TDEAccelBase::updateConnections()
<< (((*it).pAction) ? (*it).pAction->name() : TQString::null) << "'" << endl;
}
#endif
-#endif //Q_WS_X11
+#endif //TQ_WS_X11
return true;
}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
// Construct a list of keys to be connected, sorted highest priority first.
void TDEAccelBase::createKeyList( TQValueVector<struct X>& rgKeys )
{
@@ -455,7 +455,7 @@ void TDEAccelBase::createKeyList( TQValueVector<struct X>& rgKeys )
// sort by priority: iVariation[of first key], iSequence, iAction
qHeapSort( rgKeys.begin(), rgKeys.end() );
}
-#endif //Q_WS_X11
+#endif //TQ_WS_X11
bool TDEAccelBase::insertConnection( TDEAccelAction* pAction )
{
diff --git a/tdecore/tdeaccelbase.h b/tdecore/tdeaccelbase.h
index ecd0ce358..7a2955b66 100644
--- a/tdecore/tdeaccelbase.h
+++ b/tdecore/tdeaccelbase.h
@@ -79,11 +79,11 @@ class TQWidget;
* a->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" );
* // Insert an action "Scroll Down" which is not associated with any key:
* a->insertItem( i18n("Scroll Down"), "Scroll Down", 0);
- * a->connectItem( "Scroll up", myWindow, TQT_SLOT( scrollUp() ) );
+ * a->connectItem( "Scroll up", myWindow, TQ_SLOT( scrollUp() ) );
* // a->insertStdItem( TDEStdAccel::Print ); //not necessary, since it
* // is done automatially with the
* // connect below!
- * a->connectItem(TDEStdAccel::Print, myWindow, TQT_SLOT( printDoc() ) );
+ * a->connectItem(TDEStdAccel::Print, myWindow, TQ_SLOT( printDoc() ) );
*
* a->readSettings();
*\endcode
@@ -93,12 +93,12 @@ class TQWidget;
*
* \code
* int id;
- * id = popup->insertItem("&Print",this, TQT_SLOT(printDoc()));
+ * id = popup->insertItem("&Print",this, TQ_SLOT(printDoc()));
* a->changeMenuAccel(popup, id, TDEStdAccel::Print );
* \endcode
*
* If you want a somewhat "exotic" name for your standard print action, like
- * id = popup->insertItem(i18n("Print &Document"),this, TQT_SLOT(printDoc()));
+ * id = popup->insertItem(i18n("Print &Document"),this, TQ_SLOT(printDoc()));
* it might be a good idea to insert the standard action before as
* a->insertStdItem( TDEStdAccel::Print, i18n("Print Document") )
* as well, so that the user can easily find the corresponding function.
@@ -107,7 +107,7 @@ class TQWidget;
* in a menu could be done with
*
* \code
- * id = popup->insertItem(i18n"Scroll &up",this, TQT_SLOT(scrollUp()));
+ * id = popup->insertItem(i18n"Scroll &up",this, TQ_SLOT(scrollUp()));
* a->changeMenuAccel(popup, id, "Scroll Up" );
* \endcode
*
diff --git a/tdecore/tdeaccelmanager.cpp b/tdecore/tdeaccelmanager.cpp
index 4618dab17..3cc7eb22e 100644
--- a/tdecore/tdeaccelmanager.cpp
+++ b/tdecore/tdeaccelmanager.cpp
@@ -262,10 +262,10 @@ void TDEAcceleratorManagerPrivate::calculateAccelerators(Item *item, TQString &u
void TDEAcceleratorManagerPrivate::traverseChildren(TQWidget *widget, Item *item)
{
- TQObjectList *childList = widget->queryList(TQWIDGET_OBJECT_NAME_STRING, 0, false, false);
+ TQObjectList *childList = widget->queryList("TQWidget", 0, false, false);
for ( TQObject *it = childList->first(); it; it = childList->next() )
{
- TQWidget *w = TQT_TQWIDGET(it);
+ TQWidget *w = static_cast<TQWidget*>(it);
if ( !w->isVisibleTo( widget ) || ( w->isTopLevel() && dynamic_cast<TQPopupMenu*>(w) == NULL ) )
continue;
@@ -329,8 +329,8 @@ void TDEAcceleratorManagerPrivate::manageWidget(TQWidget *w, Item *item)
if ( !label->buddy() )
label = 0;
else {
- if ( label->textFormat() == Qt::RichText ||
- ( label->textFormat() == Qt::AutoText &&
+ if ( label->textFormat() == TQt::RichText ||
+ ( label->textFormat() == TQt::AutoText &&
TQStyleSheet::mightBeRichText( label->text() ) ) )
label = 0;
}
@@ -626,7 +626,7 @@ int TDEAccelString::maxWeight(int &index, const TQString &used)
index = -1;
for (uint pos=0; pos<m_pureText.length(); ++pos)
- if (used.find(m_pureText[pos], 0, FALSE) == -1 && m_pureText[pos].latin1() != 0)
+ if (used.find(m_pureText[pos], 0, false) == -1 && m_pureText[pos].latin1() != 0)
if (m_weight[pos] > max)
{
max = m_weight[pos];
@@ -734,7 +734,7 @@ TDEPopupAccelManager::TDEPopupAccelManager(TQPopupMenu *popup)
: TQObject(popup), m_popup(popup), m_count(-1)
{
aboutToShow(); // do one check and then connect to show
- connect(popup, TQT_SIGNAL(aboutToShow()), TQT_SLOT(aboutToShow()));
+ connect(popup, TQ_SIGNAL(aboutToShow()), TQ_SLOT(aboutToShow()));
}
@@ -840,13 +840,13 @@ QWidgetStackAccelManager::QWidgetStackAccelManager(TQWidgetStack *stack)
: TQObject(stack), m_stack(stack)
{
aboutToShow(stack->visibleWidget()); // do one check and then connect to show
- connect(stack, TQT_SIGNAL(aboutToShow(TQWidget *)), TQT_SLOT(aboutToShow(TQWidget *)));
+ connect(stack, TQ_SIGNAL(aboutToShow(TQWidget *)), TQ_SLOT(aboutToShow(TQWidget *)));
}
bool QWidgetStackAccelManager::eventFilter ( TQObject * watched, TQEvent * e )
{
if ( e->type() == TQEvent::Show && tqApp->activeWindow() ) {
- TDEAcceleratorManager::manage( TQT_TQWIDGET(tqApp->activeWindow()) );
+ TDEAcceleratorManager::manage( tqApp->activeWindow() );
watched->removeEventFilter( this );
}
return false;
diff --git a/tdecore/tdeaccelmanager_private.h b/tdecore/tdeaccelmanager_private.h
index d9227e8da..fe071c982 100644
--- a/tdecore/tdeaccelmanager_private.h
+++ b/tdecore/tdeaccelmanager_private.h
@@ -133,7 +133,7 @@ class TQPopupMenu;
class TDEPopupAccelManager : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -166,7 +166,7 @@ private:
class QWidgetStackAccelManager : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdecore/tdeaccelprivate.h b/tdecore/tdeaccelprivate.h
index c91e01f42..8e6672615 100644
--- a/tdecore/tdeaccelprivate.h
+++ b/tdecore/tdeaccelprivate.h
@@ -11,7 +11,7 @@ class TDEAccelAction;
*/
class TDECORE_EXPORT TDEAccelPrivate : public TQObject, public TDEAccelBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
TDEAccel* m_pAccel;
TQWidget* m_pWatch;
@@ -38,7 +38,7 @@ class TDECORE_EXPORT TDEAccelPrivate : public TQObject, public TDEAccelBase
void menuItemActivated(TDEAccelAction*);
private:
-#ifndef Q_WS_WIN /** @todo TEMP: new implementation (commit #424926) didn't work */
+#ifndef TQ_WS_WIN /** @todo TEMP: new implementation (commit #424926) didn't work */
void emitActivatedSignal(TDEAccelAction*);
#endif
@@ -47,7 +47,7 @@ class TDECORE_EXPORT TDEAccelPrivate : public TQObject, public TDEAccelBase
void slotShowMenu();
void slotMenuActivated( int iAction );
- bool eventFilter( TQObject* pWatched, TQEvent* pEvent ); // virtual method from QObject
+ bool eventFilter( TQObject* pWatched, TQEvent* pEvent ); // virtual method from TQObject
};
#endif // !__TDEACCELPRIVATE_H
diff --git a/tdecore/kappdcopiface.cpp b/tdecore/tdeappdcopinterface.cpp
index ed6e26163..c67d1931d 100644
--- a/tdecore/kappdcopiface.cpp
+++ b/tdecore/tdeappdcopinterface.cpp
@@ -17,54 +17,54 @@
Boston, MA 02110-1301, USA.
*/
-#include "kappdcopiface.h"
+#include "tdeappdcopinterface.h"
#include <tdeapplication.h>
#include <dcopclient.h>
#include <tdeglobal.h>
#include <tdeconfig.h>
-KAppDCOPInterface::KAppDCOPInterface(TDEApplication * theKApp)
+TDEAppDCOPInterface::TDEAppDCOPInterface(TDEApplication * theKApp)
: DCOPObject( "MainApplication-Interface")
{
m_TDEApplication = theKApp;
}
-KAppDCOPInterface::~KAppDCOPInterface()
+TDEAppDCOPInterface::~TDEAppDCOPInterface()
{
}
-void KAppDCOPInterface::disableSessionManagement()
+void TDEAppDCOPInterface::disableSessionManagement()
{
}
-TQCString KAppDCOPInterface::startupId()
+TQCString TDEAppDCOPInterface::startupId()
{
return "";
}
-TQCString KAppDCOPInterface::caption()
+TQCString TDEAppDCOPInterface::caption()
{
return "";
}
-void KAppDCOPInterface::quit()
+void TDEAppDCOPInterface::quit()
{
m_TDEApplication->quit();
}
-void KAppDCOPInterface::updateUserTimestamp( ulong time )
+void TDEAppDCOPInterface::updateUserTimestamp( ulong time )
{
m_TDEApplication->updateUserTimestamp( time );
}
-void KAppDCOPInterface::reparseConfiguration()
+void TDEAppDCOPInterface::reparseConfiguration()
{
TDEGlobal::config()->reparseConfiguration();
}
-void KAppDCOPInterface::sendFakeKey( unsigned int keyCode) {
+void TDEAppDCOPInterface::sendFakeKey( unsigned int keyCode) {
m_TDEApplication->broadcastKeyCode(keyCode);
}
diff --git a/tdecore/kappdcopiface.h b/tdecore/tdeappdcopinterface.h
index 164c8b115..281f452c2 100644
--- a/tdecore/kappdcopiface.h
+++ b/tdecore/tdeappdcopinterface.h
@@ -17,8 +17,8 @@
Boston, MA 02110-1301, USA.
*/
-#ifndef KAPPDCOP_INTERFACE_H
-#define KAPPDCOP_INTERFACE_H
+#ifndef __TDEAPPDCOP_INTERFACE_H__
+#define __TDEAPPDCOP_INTERFACE_H__
#include <dcopobject.h>
#include <tqstringlist.h>
@@ -34,7 +34,7 @@ dcop interface to all KDE applications that use it.
@short DCOP interface to TDEApplication.
@author Ian Reinhart Geiser <geiseri@yahoo.com>
*/
-class TDECORE_EXPORT KAppDCOPInterface : virtual public DCOPObject
+class TDECORE_EXPORT TDEAppDCOPInterface : virtual public DCOPObject
{
K_DCOP
@@ -44,12 +44,12 @@ public:
@param theKapp - The parent TDEApplication object
that will provide us with the functional interface.
*/
- KAppDCOPInterface( TDEApplication * theKapp );
+ TDEAppDCOPInterface( TDEApplication * theKapp );
/**
Destructor
Cleans up the dcop connection.
**/
- ~KAppDCOPInterface();
+ ~TDEAppDCOPInterface();
k_dcop:
/**
Disable current applications session management
diff --git a/tdecore/tdeapplication.cpp b/tdecore/tdeapplication.cpp
index 6dcafa2d5..4b5b427f3 100644
--- a/tdecore/tdeapplication.cpp
+++ b/tdecore/tdeapplication.cpp
@@ -1,4 +1,4 @@
-/* This file is part of the KDE libraries
+/* This file is part of the TDE libraries
Copyright (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org)
Copyright (C) 1998, 1999, 2000 KDE Team
@@ -69,18 +69,18 @@
#endif
#include <tdeglobal.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <kdebug.h>
#include <tdelocale.h>
#include <tdestyle.h>
#include <kiconloader.h>
#include <kclipboard.h>
#include <tdeconfig.h>
-#include <ksimpleconfig.h>
+#include <tdesimpleconfig.h>
#include <tdecmdlineargs.h>
#include <tdeaboutdata.h>
#include <tdeglobalsettings.h>
-#include <kcrash.h>
+#include <tdecrash.h>
#include <kdatastream.h>
#include <klibloader.h>
#include <kmimesourcefactory.h>
@@ -93,9 +93,9 @@
#include <kprotocolinfo.h>
#include <kkeynative.h>
#include <kmdcodec.h>
-#include <kglobalaccel.h>
+#include <tdeglobalaccel.h>
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
#include <tdestartupinfo.h>
#endif
@@ -110,7 +110,7 @@
#include <grp.h>
#include <sys/types.h>
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
#include "twin.h"
#endif
@@ -123,18 +123,18 @@
#include <errno.h>
#include <string.h>
#include <netdb.h>
-#if defined Q_WS_X11
-//#ifndef Q_WS_QWS //FIXME(E): NetWM should talk to QWS...
+#if defined TQ_WS_X11
+//#ifndef TQ_WS_QWS //FIXME(E): NetWM should talk to QWS...
#include <netwm.h>
#endif
-#include "kprocctrl.h"
+#include "tdeprocctrl.h"
#ifdef HAVE_PATHS_H
#include <paths.h>
#endif
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#include <X11/Xlib.h>
#ifdef COMPOSITE
#include <X11/extensions/Xrender.h>
@@ -149,7 +149,7 @@
#include <pwd.h>
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
#include <KDE-ICE/ICElib.h>
#else
typedef void* IceIOErrorHandler;
@@ -160,22 +160,22 @@ typedef void* IceIOErrorHandler;
#define Button3Mask (1<<10)
#endif
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#define DISPLAY "DISPLAY"
-#elif defined(Q_WS_QWS)
+#elif defined(TQ_WS_QWS)
#define DISPLAY "QWS_DISPLAY"
#endif
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
#include <kipc.h>
#endif
-#ifdef Q_WS_MACX
+#ifdef TQ_WS_MACX
#include <Carbon/Carbon.h>
#include <tqimage.h>
#endif
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
#include <sys/ioctl.h>
#ifdef __linux__
#include <linux/vt.h>
@@ -185,24 +185,24 @@ extern int getfd(const char *fnam);
}
#endif
-#include "kappdcopiface.h"
+#include "tdeappdcopinterface.h"
// exported for tdm kfrontend
-KDE_EXPORT bool kde_have_kipc = true; // magic hook to disable kipc in tdm
+TDE_EXPORT bool kde_have_kipc = true; // magic hook to disable kipc in tdm
bool kde_kiosk_exception = false; // flag to disable kiosk restrictions
bool kde_kiosk_admin = false;
-TDEApplication* TDEApplication::KApp = 0L;
+TDEApplication* TDEApplication::TDEApp = nullptr;
bool TDEApplication::loadedByKdeinit = false;
-DCOPClient *TDEApplication::s_DCOPClient = 0L;
+DCOPClient *TDEApplication::s_DCOPClient = nullptr;
bool TDEApplication::s_dcopClientNeedsPostInit = false;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
static Atom atom_DesktopWindow;
static Atom atom_NetSupported;
#endif
-#if defined(Q_WS_X11) && defined(COMPOSITE)
+#if defined(TQ_WS_X11) && defined(COMPOSITE)
static int composite_event, composite_error, composite_opcode;
static bool x11_composite_error_generated;
static int x11_error(Display *dpy, XErrorEvent *ev) {
@@ -221,16 +221,16 @@ TDECORE_EXPORT bool tqt_qclipboard_bailout_hack = false;
template class TQPtrList<KSessionManaged>;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
extern "C" {
static int kde_xio_errhandler( Display * dpy )
{
- return kapp->xioErrhandler( dpy );
+ return tdeApp->xioErrhandler( dpy );
}
static int kde_x_errhandler( Display *dpy, XErrorEvent *err )
{
- return kapp->xErrhandler( dpy, err );
+ return tdeApp->xErrhandler( dpy, err );
}
}
@@ -238,20 +238,20 @@ static int kde_x_errhandler( Display *dpy, XErrorEvent *err )
extern "C" {
static void kde_ice_ioerrorhandler( IceConn conn )
{
- if(kapp)
- kapp->iceIOErrorHandler( conn );
+ if(tdeApp)
+ tdeApp->iceIOErrorHandler( conn );
// else ignore the error for now
}
}
#endif
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
void TDEApplication_init_windows(bool GUIenabled);
class QAssistantClient;
#endif
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
// --------------------------------------------------------------------------------------
// Get the VT number X is running on
// (code taken from GDM, daemon/getvt.c, GPLv2+)
@@ -310,7 +310,7 @@ int get_x_vtnum(Display *dpy)
return num;
}
// --------------------------------------------------------------------------------------
-#endif // Q_WS_X11
+#endif // TQ_WS_X11
/*
Private data to make keeping binary compatibility easier
@@ -326,12 +326,12 @@ public:
overrideStyle( TQString::null ),
startup_id( "0" ),
app_started_timer( NULL ),
- m_KAppDCOPInterface( 0L ),
+ m_TDEAppDCOPInterface( 0L ),
session_save( false )
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
,oldXErrorHandler( NULL )
,oldXIOErrorHandler( NULL )
-#elif defined Q_WS_WIN
+#elif defined TQ_WS_WIN
,qassistantclient( 0 )
#endif
{
@@ -339,7 +339,7 @@ public:
~TDEApplicationPrivate()
{
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
delete qassistantclient;
#endif
}
@@ -360,12 +360,12 @@ public:
TQString geometry_arg;
TQCString startup_id;
TQTimer* app_started_timer;
- KAppDCOPInterface *m_KAppDCOPInterface;
+ TDEAppDCOPInterface *m_TDEAppDCOPInterface;
bool session_save;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
int (*oldXErrorHandler)(Display*,XErrorEvent*);
int (*oldXIOErrorHandler)(Display*);
-#elif defined Q_WS_WIN
+#elif defined TQ_WS_WIN
QAssistantClient* qassistantclient;
#endif
@@ -522,7 +522,7 @@ void TDEApplication::installX11EventFilter( TQWidget* filter )
return;
if (!x11Filter)
x11Filter = new TQPtrList<TQWidget>;
- connect ( filter, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( x11FilterDestroyed() ) );
+ connect ( filter, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( x11FilterDestroyed() ) );
x11Filter->append( filter );
}
@@ -557,7 +557,7 @@ bool TDEApplication::notify(TQObject *receiver, TQEvent *event)
// Indicate that the accelerator has been overridden.
if (t == TQEvent::AccelOverride)
{
- TQT_TQKEYEVENT(event)->accept();
+ static_cast<TQKeyEvent*>(event)->accept();
return true;
}
else
@@ -567,11 +567,11 @@ bool TDEApplication::notify(TQObject *receiver, TQEvent *event)
if ((t == TQEvent::AccelOverride) || (t == TQEvent::KeyPress))
{
static const TDEShortcut& _selectAll = TDEStdAccel::selectAll();
- TQLineEdit *edit = ::tqqt_cast<TQLineEdit *>(receiver);
+ TQLineEdit *edit = ::tqt_cast<TQLineEdit *>(receiver);
if (edit)
{
// We have a keypress for a lineedit...
- TQKeyEvent *kevent = TQT_TQKEYEVENT(event);
+ TQKeyEvent *kevent = static_cast<TQKeyEvent*>(event);
KKey key(kevent);
if (_selectAll.contains(key))
{
@@ -586,7 +586,7 @@ bool TDEApplication::notify(TQObject *receiver, TQEvent *event)
}
}
// Ctrl-U deletes from start of line.
- if (key == KKey(Qt::CTRL + Qt::Key_U))
+ if (key == KKey(TQt::CTRL + TQt::Key_U))
{
if (t == TQEvent::KeyPress)
{
@@ -605,11 +605,11 @@ bool TDEApplication::notify(TQObject *receiver, TQEvent *event)
}
}
- TQTextEdit *medit = ::tqqt_cast<TQTextEdit *>(receiver);
+ TQTextEdit *medit = ::tqt_cast<TQTextEdit *>(receiver);
if (medit)
{
// We have a keypress for a multilineedit...
- TQKeyEvent *kevent = TQT_TQKEYEVENT(event);
+ TQKeyEvent *kevent = static_cast<TQKeyEvent*>(event);
if (_selectAll.contains(KKey(kevent)))
{
if (t == TQEvent::KeyPress)
@@ -626,9 +626,9 @@ bool TDEApplication::notify(TQObject *receiver, TQEvent *event)
}
if( t == TQEvent::Show && receiver->isWidgetType())
{
- TQWidget* w = TQT_TQWIDGET( receiver );
-#if defined Q_WS_X11
- if( w->isTopLevel() && !startupId().isEmpty() && !TQT_TQSHOWEVENT(event)->spontaneous()) // TODO better done using window group leader?
+ TQWidget* w = static_cast<TQWidget*>( receiver );
+#if defined TQ_WS_X11
+ if( w->isTopLevel() && !startupId().isEmpty() && !static_cast<TQShowEvent*>(event)->spontaneous()) // TODO better done using window group leader?
TDEStartupInfo::setWindowStartupId( w->winId(), startupId());
#endif
if( w->isTopLevel() && !w->testWFlags( WX11BypassWM ) && !w->isPopup() && !event->spontaneous())
@@ -636,7 +636,7 @@ bool TDEApplication::notify(TQObject *receiver, TQEvent *event)
if( d->app_started_timer == NULL )
{
d->app_started_timer = new TQTimer( this, "app_started_timer" );
- connect( d->app_started_timer, TQT_SIGNAL( timeout()), TQT_SLOT( checkAppStartedSlot()));
+ connect( d->app_started_timer, TQ_SIGNAL( timeout()), TQ_SLOT( checkAppStartedSlot()));
}
if( !d->app_started_timer->isActive())
d->app_started_timer->start( 0, true );
@@ -651,7 +651,7 @@ bool TDEApplication::notify(TQObject *receiver, TQEvent *event)
if( !ic->isNull())
{
w->setIcon( *ic );
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
KWin::setIcons( w->winId(), *ic, miniIcon());
#endif
}
@@ -662,7 +662,7 @@ bool TDEApplication::notify(TQObject *receiver, TQEvent *event)
void TDEApplication::checkAppStartedSlot()
{
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
TDEStartupInfo::handleAutoAppStartedSending();
#endif
}
@@ -689,7 +689,7 @@ TQString TDEApplication::sessionConfigName() const
return TQString("session/%1_%2_%3").arg(name()).arg(sessionId()).arg(sessKey);
}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
static SmcConn mySmcConnection = 0;
static SmcConn tmpSmcConnection = 0;
#else
@@ -701,7 +701,7 @@ static TQTime* smModificationTime = 0;
TDEApplication::TDEApplication( int& argc, char** argv, const TQCString& rAppName,
bool allowStyles, bool GUIenabled, bool SMenabled ) :
TQApplication( argc, argv, GUIenabled, SMenabled ), TDEInstance(rAppName),
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
display(0L),
argb_visual(false),
#endif
@@ -720,7 +720,7 @@ TDEApplication::TDEApplication( int& argc, char** argv, const TQCString& rAppNam
TDECmdLineArgs::initIgnore(argc, argv, rAppName.data());
parseCommandLine( );
init(GUIenabled);
- d->m_KAppDCOPInterface = new KAppDCOPInterface(this);
+ d->m_TDEAppDCOPInterface = new TDEAppDCOPInterface(this);
}
// FIXME
@@ -729,7 +729,7 @@ TDEApplication::TDEApplication( int& argc, char** argv, const TQCString& rAppNam
TDEApplication::TDEApplication( int& argc, char** argv, const TQCString& rAppName,
bool allowStyles, bool GUIenabled ) :
TQApplication( argc, argv, GUIenabled ), TDEInstance(rAppName),
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
display(0L),
argb_visual(false),
#endif
@@ -748,14 +748,13 @@ TDEApplication::TDEApplication( int& argc, char** argv, const TQCString& rAppNam
TDECmdLineArgs::initIgnore(argc, argv, rAppName.data());
parseCommandLine( );
init(GUIenabled);
- d->m_KAppDCOPInterface = new KAppDCOPInterface(this);
+ d->m_TDEAppDCOPInterface = new TDEAppDCOPInterface(this);
}
TDEApplication::TDEApplication( bool allowStyles, bool GUIenabled, bool SMenabled ) :
-// TQApplication( *TDECmdLineArgs::tqt_argc(), *TDECmdLineArgs::tqt_argv(), TRUE ), // Qt4 requires that there always be a GUI
TQApplication( *TDECmdLineArgs::tqt_argc(), *TDECmdLineArgs::tqt_argv(), GUIenabled, SMenabled ), // We need to be able to run command line apps
TDEInstance( TDECmdLineArgs::about),
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
display(0L),
argb_visual(false),
#endif
@@ -772,17 +771,16 @@ TDEApplication::TDEApplication( bool allowStyles, bool GUIenabled, bool SMenable
installSigpipeHandler();
parseCommandLine( );
init(GUIenabled);
- d->m_KAppDCOPInterface = new KAppDCOPInterface(this);
+ d->m_TDEAppDCOPInterface = new TDEAppDCOPInterface(this);
}
// FIXME
// FOR BINARY COMPATIBILITY ONLY
// REMOVE WHEN PRACTICAL!
TDEApplication::TDEApplication( bool allowStyles, bool GUIenabled ) :
-// TQApplication( *TDECmdLineArgs::tqt_argc(), *TDECmdLineArgs::tqt_argv(), TRUE ), // Qt4 requires that there always be a GUI
TQApplication( *TDECmdLineArgs::tqt_argc(), *TDECmdLineArgs::tqt_argv(), GUIenabled ), // We need to be able to run command line apps
TDEInstance( TDECmdLineArgs::about),
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
display(0L),
argb_visual(false),
#endif
@@ -799,10 +797,10 @@ TDEApplication::TDEApplication( bool allowStyles, bool GUIenabled ) :
installSigpipeHandler();
parseCommandLine( );
init(GUIenabled);
- d->m_KAppDCOPInterface = new KAppDCOPInterface(this);
+ d->m_TDEAppDCOPInterface = new TDEAppDCOPInterface(this);
}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
TDEApplication::TDEApplication( Display *dpy, bool allowStyles ) :
TQApplication( dpy, *TDECmdLineArgs::tqt_argc(), *TDECmdLineArgs::tqt_argv(),
getX11RGBAVisual(dpy), getX11RGBAColormap(dpy) ),
@@ -816,10 +814,10 @@ TDEApplication::TDEApplication( Display *dpy, bool allowStyles ) :
installSigpipeHandler();
parseCommandLine( );
init( true );
- d->m_KAppDCOPInterface = new KAppDCOPInterface(this);
+ d->m_TDEAppDCOPInterface = new TDEAppDCOPInterface(this);
}
-TDEApplication::TDEApplication( Display *dpy, bool disable_argb, Qt::HANDLE visual, Qt::HANDLE colormap, bool allowStyles ) :
+TDEApplication::TDEApplication( Display *dpy, bool disable_argb, TQt::HANDLE visual, TQt::HANDLE colormap, bool allowStyles ) :
TQApplication( dpy, *TDECmdLineArgs::tqt_argc(), *TDECmdLineArgs::tqt_argv(),
disable_argb?visual:getX11RGBAVisual(dpy), disable_argb?colormap:getX11RGBAColormap(dpy) ),
TDEInstance( TDECmdLineArgs::about), display(0L), d (new TDEApplicationPrivate)
@@ -833,10 +831,10 @@ TDEApplication::TDEApplication( Display *dpy, bool disable_argb, Qt::HANDLE visu
installSigpipeHandler();
parseCommandLine( );
init( true );
- d->m_KAppDCOPInterface = new KAppDCOPInterface(this);
+ d->m_TDEAppDCOPInterface = new TDEAppDCOPInterface(this);
}
-TDEApplication::TDEApplication( Display *dpy, Qt::HANDLE visual, Qt::HANDLE colormap,
+TDEApplication::TDEApplication( Display *dpy, TQt::HANDLE visual, TQt::HANDLE colormap,
bool allowStyles ) :
TQApplication( dpy, *TDECmdLineArgs::tqt_argc(), *TDECmdLineArgs::tqt_argv(),
visual?visual:getX11RGBAVisual(dpy), colormap?colormap:getX11RGBAColormap(dpy) ),
@@ -852,10 +850,10 @@ TDEApplication::TDEApplication( Display *dpy, Qt::HANDLE visual, Qt::HANDLE colo
installSigpipeHandler();
parseCommandLine( );
init( true );
- d->m_KAppDCOPInterface = new KAppDCOPInterface(this);
+ d->m_TDEAppDCOPInterface = new TDEAppDCOPInterface(this);
}
-TDEApplication::TDEApplication( Display *dpy, Qt::HANDLE visual, Qt::HANDLE colormap,
+TDEApplication::TDEApplication( Display *dpy, TQt::HANDLE visual, TQt::HANDLE colormap,
bool allowStyles, TDEInstance * _instance ) :
TQApplication( dpy, *TDECmdLineArgs::tqt_argc(), *TDECmdLineArgs::tqt_argv(),
visual?visual:getX11RGBAVisual(dpy), colormap?colormap:getX11RGBAColormap(dpy) ),
@@ -871,7 +869,7 @@ TDEApplication::TDEApplication( Display *dpy, Qt::HANDLE visual, Qt::HANDLE colo
installSigpipeHandler();
parseCommandLine( );
init( true );
- d->m_KAppDCOPInterface = new KAppDCOPInterface(this);
+ d->m_TDEAppDCOPInterface = new TDEAppDCOPInterface(this);
}
#endif
@@ -879,7 +877,7 @@ TDEApplication::TDEApplication( bool allowStyles, bool GUIenabled, TDEInstance*
TQApplication( *TDECmdLineArgs::tqt_argc(), *TDECmdLineArgs::tqt_argv(),
GUIenabled ),
TDEInstance( _instance ),
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
display(0L),
#endif
argb_visual(false),
@@ -896,10 +894,10 @@ TDEApplication::TDEApplication( bool allowStyles, bool GUIenabled, TDEInstance*
installSigpipeHandler();
parseCommandLine( );
init(GUIenabled);
- d->m_KAppDCOPInterface = new KAppDCOPInterface(this);
+ d->m_TDEAppDCOPInterface = new TDEAppDCOPInterface(this);
}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
TDEApplication::TDEApplication(Display *display, int& argc, char** argv, const TQCString& rAppName,
bool allowStyles, bool GUIenabled ) :
TQApplication( display ), TDEInstance(rAppName),
@@ -921,16 +919,16 @@ TDEApplication::TDEApplication(Display *display, int& argc, char** argv, const T
TDECmdLineArgs::initIgnore(argc, argv, rAppName.data());
parseCommandLine( );
init(GUIenabled);
- d->m_KAppDCOPInterface = new KAppDCOPInterface(this);
+ d->m_TDEAppDCOPInterface = new TDEAppDCOPInterface(this);
}
#endif
int TDEApplication::xioErrhandler( Display* dpy )
{
- if(kapp)
+ if(tdeApp)
{
emit shutDown();
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
d->oldXIOErrorHandler( dpy );
#else
Q_UNUSED(dpy);
@@ -942,9 +940,9 @@ int TDEApplication::xioErrhandler( Display* dpy )
int TDEApplication::xErrhandler( Display* dpy, void* err_ )
{ // no idea how to make forward decl. for XErrorEvent
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
XErrorEvent* err = static_cast< XErrorEvent* >( err_ );
- if(kapp)
+ if(tdeApp)
{
// add KDE specific stuff here
d->oldXErrorHandler( dpy, err );
@@ -957,7 +955,7 @@ void TDEApplication::iceIOErrorHandler( _IceConn *conn )
{
emit shutDown();
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if ( d->oldIceIOErrorHandler != NULL )
(*d->oldIceIOErrorHandler)( conn );
#endif
@@ -999,10 +997,10 @@ void TDEApplication::init(bool GUIenabled)
TQApplication::setDesktopSettingsAware( false );
- KApp = this;
+ TDEApp = this;
-#ifdef Q_WS_X11 //FIXME(E)
+#ifdef TQ_WS_X11 //FIXME(E)
// create all required atoms in _one_ roundtrip to the X server
if ( GUIenabled ) {
const int max = 20;
@@ -1033,7 +1031,7 @@ void TDEApplication::init(bool GUIenabled)
smw = 0;
// Initial KIPC event mask.
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
kipcEventMask = (1 << KIPC::StyleChanged) | (1 << KIPC::PaletteChanged) |
(1 << KIPC::FontChanged) | (1 << KIPC::BackgroundChanged) |
(1 << KIPC::ToolbarStyleChanged) | (1 << KIPC::SettingsChanged) |
@@ -1050,7 +1048,7 @@ void TDEApplication::init(bool GUIenabled)
// kdialog itself.
// * Don't warn if we run with a read-only $HOME
TQCString readOnly = getenv("TDE_HOME_READONLY");
- if (readOnly.isEmpty() && (tqstrcmp(name(), "kdialog") != 0))
+ if (readOnly.isEmpty() && (qstrcmp(name(), "kdialog") != 0))
{
TDEConfigGroupSaver saver(config, "KDE Action Restrictions");
if (config->readBoolEntry("warn_unwritable_config",true))
@@ -1059,7 +1057,7 @@ void TDEApplication::init(bool GUIenabled)
if (GUIenabled)
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
// this is important since we fork() to launch the help (Matthias)
fcntl(ConnectionNumber(tqt_xdisplay()), F_SETFD, FD_CLOEXEC);
// set up the fancy (=robust and error ignoring ) KDE xio error handlers (Matthias)
@@ -1067,9 +1065,9 @@ void TDEApplication::init(bool GUIenabled)
d->oldXIOErrorHandler = XSetIOErrorHandler( kde_xio_errhandler );
#endif
- connect( this, TQT_SIGNAL( aboutToQuit() ), this, TQT_SIGNAL( shutDown() ) );
+ connect( this, TQ_SIGNAL( aboutToQuit() ), this, TQ_SIGNAL( shutDown() ) );
-#ifdef Q_WS_X11 //FIXME(E)
+#ifdef TQ_WS_X11 //FIXME(E)
display = desktop()->x11Display();
#endif
@@ -1101,10 +1099,10 @@ void TDEApplication::init(bool GUIenabled)
TQMimeSourceFactory::addFactory( oldDefaultFactory );
}
- d->checkAccelerators = new KCheckAccelerators( TQT_TQOBJECT(this) );
+ d->checkAccelerators = new KCheckAccelerators( this );
}
-#ifdef Q_WS_MACX
+#ifdef TQ_WS_MACX
if (GUIenabled) {
TQPixmap pixmap = TDEGlobal::iconLoader()->loadIcon( TDECmdLineArgs::appName(),
TDEIcon::NoGroup, TDEIcon::SizeLarge, TDEIcon::DefaultState, 0L, false );
@@ -1134,7 +1132,7 @@ void TDEApplication::init(bool GUIenabled)
// save and restore the RTL setting, as installTranslator calls qt_detectRTLLanguage,
// which makes it impossible to use the -reverse cmdline switch with KDE apps
bool rtl = reverseLayout();
- installTranslator(new KDETranslator(TQT_TQOBJECT(this)));
+ installTranslator(new KDETranslator(this));
setReverseLayout( rtl );
if (i18n( "_: Dear Translator! Translate this string to the string 'LTR' in "
"left-to-right languages (as english) or to 'RTL' in right-to-left "
@@ -1147,7 +1145,7 @@ void TDEApplication::init(bool GUIenabled)
pSessionConfig = 0L;
bSessionManagement = true;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
// register a communication window for desktop changes (Matthias)
if (GUIenabled && kde_have_kipc )
{
@@ -1158,7 +1156,7 @@ void TDEApplication::init(bool GUIenabled)
32, PropModeReplace, (unsigned char *)&data, 1);
}
d->oldIceIOErrorHandler = IceSetIOErrorHandler( kde_ice_ioerrorhandler );
-#elif defined(Q_WS_WIN)
+#elif defined(TQ_WS_WIN)
TDEApplication_init_windows(GUIenabled);
#else
// FIXME(E): Implement for Qt Embedded
@@ -1197,11 +1195,11 @@ DCOPClient *TDEApplication::dcopClient()
{
s_DCOPClient->setServerAddress( args->getOption("dcopserver"));
}
- if( kapp ) {
- connect(s_DCOPClient, TQT_SIGNAL(attachFailed(const TQString &)),
- kapp, TQT_SLOT(dcopFailure(const TQString &)));
- connect(s_DCOPClient, TQT_SIGNAL(blockUserInput(bool) ),
- kapp, TQT_SLOT(dcopBlockUserInput(bool)) );
+ if( tdeApp ) {
+ connect(s_DCOPClient, TQ_SIGNAL(attachFailed(const TQString &)),
+ tdeApp, TQ_SLOT(dcopFailure(const TQString &)));
+ connect(s_DCOPClient, TQ_SIGNAL(blockUserInput(bool) ),
+ tdeApp, TQ_SLOT(dcopBlockUserInput(bool)) );
}
else
s_dcopClientNeedsPostInit = true;
@@ -1215,8 +1213,8 @@ void TDEApplication::dcopClientPostInit()
if( s_dcopClientNeedsPostInit )
{
s_dcopClientNeedsPostInit = false;
- connect(s_DCOPClient, TQT_SIGNAL(blockUserInput(bool) ),
- TQT_SLOT(dcopBlockUserInput(bool)) );
+ connect(s_DCOPClient, TQ_SIGNAL(blockUserInput(bool) ),
+ TQ_SLOT(dcopBlockUserInput(bool)) );
s_DCOPClient->bindToApp(); // Make sure we get events from the DCOPClient.
}
}
@@ -1288,7 +1286,7 @@ void TDEApplication::disableSessionManagement() {
void TDEApplication::enableSessionManagement() {
bSessionManagement = true;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
// Session management support in Qt/TDE is awfully broken.
// If konqueror disables session management right after its startup,
// and enables it later (preloading stuff), it won't be properly
@@ -1313,7 +1311,7 @@ void TDEApplication::enableSessionManagement() {
bool TDEApplication::requestShutDown(
ShutdownConfirm confirm, ShutdownType sdtype, ShutdownMode sdmode )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
TQApplication::syncX();
/* use ksmserver's dcop interface if necessary */
if ( confirm == ShutdownConfirmYes ||
@@ -1375,7 +1373,7 @@ bool TDEApplication::requestShutDown(
void TDEApplication::propagateSessionManager()
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
TQCString fName = TQFile::encodeName(locateLocal("socket", "KSMserver"));
TQCString display = ::getenv(DISPLAY);
// strip the screen number from the display
@@ -1389,7 +1387,7 @@ void TDEApplication::propagateSessionManager()
bool check = smEnv.isEmpty();
if ( !check && smModificationTime ) {
TQFileInfo info( fName );
- TQTime current = TQT_TQTIME_OBJECT(info.lastModified().time());
+ TQTime current = info.lastModified().time();
check = current > *smModificationTime;
}
if ( check ) {
@@ -1398,7 +1396,7 @@ void TDEApplication::propagateSessionManager()
if ( !f.open( IO_ReadOnly ) )
return;
TQFileInfo info ( f );
- smModificationTime = new TQTime( TQT_TQTIME_OBJECT(info.lastModified().time()) );
+ smModificationTime = new TQTime( info.lastModified().time() );
TQTextStream t(&f);
t.setEncoding( TQTextStream::Latin1 );
TQString s = t.readLine();
@@ -1484,7 +1482,7 @@ static void checkRestartVersion( TQSessionManager& sm )
void TDEApplication::saveState( TQSessionManager& sm )
{
d->session_save = true;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
static bool firstTime = true;
mySmcConnection = (SmcConn) sm.handle();
@@ -1570,7 +1568,7 @@ bool TDEApplication::sessionSaving() const
void TDEApplication::startKdeinit()
{
-#ifndef Q_WS_WIN //TODO
+#ifndef TQ_WS_WIN //TODO
TDEInstance inst( "starttdeinitlock" );
TDELockFile lock( locateLocal( "tmp", "starttdeinitlock", &inst ));
if( lock.lock( TDELockFile::LockNoBlock ) != TDELockFile::LockOK ) {
@@ -1585,10 +1583,10 @@ void TDEApplication::startKdeinit()
srv = TDEStandardDirs::findExe(TQString::fromLatin1("tdeinit"), TDEGlobal::dirs()->kfsstnd_defaultbindir());
if (srv.isEmpty())
return;
- if (kapp && (Tty != kapp->type()))
- setOverrideCursor( tqwaitCursor );
+ if (tdeApp && (Tty != tdeApp->type()))
+ setOverrideCursor( TQt::waitCursor );
my_system(TQFile::encodeName(srv)+" --suicide"+" --new-startup");
- if (kapp && (Tty != kapp->type()))
+ if (tdeApp && (Tty != tdeApp->type()))
restoreOverrideCursor();
#endif
}
@@ -1604,7 +1602,7 @@ void TDEApplication::dcopFailure(const TQString &msg)
}
if (failureCount == 2)
{
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
TDEGlobal::config()->setGroup("General");
if (TDEGlobal::config()->readBoolEntry("ignoreDCOPFailures", false))
return;
@@ -1615,12 +1613,12 @@ void TDEApplication::dcopFailure(const TQString &msg)
msgStr += msg;
msgStr += i18n("\n\nPlease check that the \"dcopserver\" program is running!");
- if (Tty != kapp->type())
+ if (Tty != tdeApp->type())
{
TQMessageBox::critical
(
- kapp->mainWidget(),
- i18n("DCOP communications error (%1)").arg(kapp->caption()),
+ tdeApp->mainWidget(),
+ i18n("DCOP communications error (%1)").arg(tdeApp->caption()),
msgStr,
i18n("&OK")
);
@@ -1637,7 +1635,7 @@ void TDEApplication::dcopFailure(const TQString &msg)
static const TDECmdLineOptions qt_options[] =
{
//FIXME: Check if other options are specific to Qt/X11
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
{ "display <displayname>", I18N_NOOP("Use the X-server display 'displayname'"), 0},
#else
{ "display <displayname>", I18N_NOOP("Use the QWS display 'displayname'"), 0},
@@ -1658,13 +1656,13 @@ static const TDECmdLineOptions qt_options[] =
{ "button <color>", I18N_NOOP("sets the default button color"), 0},
{ "name <name>", I18N_NOOP("sets the application name"), 0},
{ "title <title>", I18N_NOOP("sets the application title (caption)"), 0},
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
{ "visual TrueColor", I18N_NOOP("forces the application to use a TrueColor visual on\nan 8-bit display"), 0},
{ "inputstyle <inputstyle>", I18N_NOOP("sets XIM (X Input Method) input style. Possible\nvalues are onthespot, overthespot, offthespot and\nroot"), 0 },
{ "im <XIM server>", I18N_NOOP("set XIM server"),0},
{ "noxim", I18N_NOOP("disable XIM"), 0 },
#endif
-#ifdef Q_WS_QWS
+#ifdef TQ_WS_QWS
{ "qws", I18N_NOOP("forces the application to run as QWS Server"), 0},
#endif
{ "reverse", I18N_NOOP("mirrors the whole layout of widgets"), 0},
@@ -1781,7 +1779,7 @@ void TDEApplication::parseCommandLine( )
TDECrash::setApplicationName(TQString(args->appName()));
}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if ( args->isSet( "waitforwm" ) ) {
Atom type;
(void) desktop(); // trigger desktop creation, we need PropertyNotify events for the root window
@@ -1860,7 +1858,7 @@ TDEApplication::~TDEApplication()
aIconPixmap.pm.miniIcon = 0L;
delete aIconPixmap.pm.icon;
aIconPixmap.pm.icon = 0L;
- delete d->m_KAppDCOPInterface;
+ delete d->m_TDEAppDCOPInterface;
// First call the static deleters and then call KLibLoader::cleanup()
// The static deleters may delete libraries for which they need KLibLoader.
@@ -1872,11 +1870,11 @@ TDEApplication::~TDEApplication()
// close down IPC
delete s_DCOPClient;
- s_DCOPClient = 0L;
+ s_DCOPClient = nullptr;
TDEProcessController::deref();
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if ( d->oldXErrorHandler != NULL )
XSetErrorHandler( d->oldXErrorHandler );
if ( d->oldXIOErrorHandler != NULL )
@@ -1886,9 +1884,9 @@ TDEApplication::~TDEApplication()
#endif
delete d;
- KApp = 0;
+ TDEApp = nullptr;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
mySmcConnection = 0;
delete smModificationTime;
smModificationTime = 0;
@@ -1904,7 +1902,7 @@ TDEApplication::~TDEApplication()
}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
class KAppX11HackWidget: public TQWidget
{
public:
@@ -1912,7 +1910,7 @@ public:
};
#endif
-#if defined(Q_WS_X11) && defined(COMPOSITE)
+#if defined(TQ_WS_X11) && defined(COMPOSITE)
bool TDEApplication::isCompositionManagerAvailable() {
bool have_manager = false;
@@ -2034,23 +2032,23 @@ Display* TDEApplication::openX11RGBADisplay() {
return dpy;
}
-Qt::HANDLE TDEApplication::getX11RGBAVisual(Display *dpy) {
+TQt::HANDLE TDEApplication::getX11RGBAVisual(Display *dpy) {
getX11RGBAInformation(dpy);
if (TDEApplication::isCompositionManagerAvailable() == true) {
return argb_x11_visual;
}
else {
- return (Qt::HANDLE)NULL;
+ return (TQt::HANDLE)NULL;
}
}
-Qt::HANDLE TDEApplication::getX11RGBAColormap(Display *dpy) {
+TQt::HANDLE TDEApplication::getX11RGBAColormap(Display *dpy) {
getX11RGBAInformation(dpy);
if (TDEApplication::isCompositionManagerAvailable() == true) {
return argb_x11_colormap;
}
else {
- return (Qt::HANDLE)NULL;
+ return (TQt::HANDLE)NULL;
}
}
@@ -2091,8 +2089,8 @@ void TDEApplication::getX11RGBAInformation(Display *dpy) {
}
if( argb_visual ) {
- argb_x11_visual = Qt::HANDLE( visual );
- argb_x11_colormap = Qt::HANDLE( colormap );
+ argb_x11_visual = TQt::HANDLE( visual );
+ argb_x11_colormap = TQt::HANDLE( colormap );
argb_visual = true;
return;
}
@@ -2146,11 +2144,11 @@ Display* TDEApplication::openX11RGBADisplay() {
return 0;
}
-Qt::HANDLE TDEApplication::getX11RGBAVisual(Display *dpy) {
+TQt::HANDLE TDEApplication::getX11RGBAVisual(Display *dpy) {
return 0;
}
-Qt::HANDLE TDEApplication::getX11RGBAColormap(Display *dpy) {
+TQt::HANDLE TDEApplication::getX11RGBAColormap(Display *dpy) {
return 0;
}
@@ -2166,7 +2164,7 @@ void TDEApplication::dcopBlockUserInput( bool b )
kapp_block_user_input = b;
}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
bool TDEApplication::x11EventFilter( XEvent *_event )
{
if ( kapp_block_user_input ) {
@@ -2263,11 +2261,11 @@ bool TDEApplication::x11EventFilter( XEvent *_event )
}
return false;
}
-#endif // Q_WS_X11
+#endif // TQ_WS_X11
void TDEApplication::updateUserTimestamp( unsigned long time )
{
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
Display *display = tqt_xdisplay();
if (!display) {
return;
@@ -2283,16 +2281,16 @@ void TDEApplication::updateUserTimestamp( unsigned long time )
time = ev.xproperty.time;
XDestroyWindow( display, w );
}
- if( GET_QT_X_USER_TIME() == 0
- || NET::timestampCompare( time, GET_QT_X_USER_TIME() ) > 0 ) // check time > tqt_x_user_time
- SET_QT_X_USER_TIME(time);
+ if( get_tqt_x_user_time() == 0
+ || NET::timestampCompare( time, get_tqt_x_user_time() ) > 0 ) // check time > tqt_x_user_time
+ set_tqt_x_user_time(time);
#endif
}
unsigned long TDEApplication::userTimestamp() const
{
-#if defined Q_WS_X11
- return GET_QT_X_USER_TIME();
+#if defined TQ_WS_X11
+ return get_tqt_x_user_time();
#else
return 0;
#endif
@@ -2300,16 +2298,16 @@ unsigned long TDEApplication::userTimestamp() const
void TDEApplication::updateRemoteUserTimestamp( const TQCString& dcopId, unsigned long time )
{
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
if( time == 0 )
- time = GET_QT_X_USER_TIME();
+ time = get_tqt_x_user_time();
DCOPRef( dcopId, "MainApplication-Interface" ).call( "updateUserTimestamp", time );
#endif
}
void TDEApplication::invokeEditSlot( const char *slot )
{
- TQObject *object = TQT_TQOBJECT(focusWidget());
+ TQObject *object = focusWidget();
if( !object )
return;
@@ -2443,13 +2441,13 @@ TQPalette TDEApplication::createApplicationPalette( TDEConfig *config, int contr
TQColor trinity4VisitedLink( 82, 24, 139 );
TQColor background = config->readColorEntry( "background", &trinity4Background );
- TQColor foreground = config->readColorEntry( "foreground", tqblackptr );
+ TQColor foreground = config->readColorEntry( "foreground", &TQt::black );
TQColor button = config->readColorEntry( "buttonBackground", &trinity4Button );
- TQColor buttonText = config->readColorEntry( "buttonForeground", tqblackptr );
+ TQColor buttonText = config->readColorEntry( "buttonForeground", &TQt::black );
TQColor highlight = config->readColorEntry( "selectBackground", &trinity4Blue );
- TQColor highlightedText = config->readColorEntry( "selectForeground", tqwhiteptr );
- TQColor base = config->readColorEntry( "windowBackground", tqwhiteptr );
- TQColor baseText = config->readColorEntry( "windowForeground", tqblackptr );
+ TQColor highlightedText = config->readColorEntry( "selectForeground", &TQt::white );
+ TQColor base = config->readColorEntry( "windowBackground", &TQt::white );
+ TQColor baseText = config->readColorEntry( "windowForeground", &TQt::black );
TQColor link = config->readColorEntry( "linkColor", &trinity4Link );
TQColor visitedLink = config->readColorEntry( "visitedLinkColor", &trinity4VisitedLink );
@@ -2464,12 +2462,12 @@ TQPalette TDEApplication::createApplicationPalette( TDEConfig *config, int contr
if (v > 128)
// dark bg, light fg - need a darker disabled fg
disfg = disfg.dark(lowlightVal);
- else if (disfg != Qt::black)
+ else if (disfg != TQt::black)
// light bg, dark fg - need a lighter disabled fg - but only if !black
disfg = disfg.light(highlightVal);
else
// black fg - use darkgray disabled fg
- disfg = Qt::darkGray;
+ disfg = TQt::darkGray;
TQColorGroup disabledgrp(disfg, background,
@@ -2502,12 +2500,12 @@ TQPalette TDEApplication::createApplicationPalette( TDEConfig *config, int contr
if (v > 128)
// dark button, light buttonText - need a darker disabled buttonText
disbtntext = disbtntext.dark(lowlightVal);
- else if (disbtntext != Qt::black)
+ else if (disbtntext != TQt::black)
// light buttonText, dark button - need a lighter disabled buttonText - but only if !black
disbtntext = disbtntext.light(highlightVal);
else
// black button - use darkgray disabled buttonText
- disbtntext = Qt::darkGray;
+ disbtntext = TQt::darkGray;
disabledgrp.setColor(TQColorGroup::ButtonText, disbtntext);
disabledgrp.setColor(TQColorGroup::Midlight, background.light(110));
@@ -2521,12 +2519,12 @@ TQPalette TDEApplication::createApplicationPalette( TDEConfig *config, int contr
void TDEApplication::tdedisplaySetPalette()
{
-#ifdef Q_WS_MACX
+#ifdef TQ_WS_MACX
//Can I have this on other platforms, please!? --Sam
{
TDEConfig *config = TDEGlobal::config();
TDEConfigGroupSaver saver( config, "General" );
- bool do_not_set_palette = FALSE;
+ bool do_not_set_palette = false;
if(config->readBoolEntry("nopaletteChange", &do_not_set_palette))
return;
}
@@ -2540,8 +2538,8 @@ void TDEApplication::tdedisplaySetPalette()
void TDEApplication::tdedisplaySetFont()
{
TQApplication::setFont(TDEGlobalSettings::generalFont(), true);
- TQApplication::setFont(TDEGlobalSettings::menuFont(), true, TQMENUBAR_OBJECT_NAME_STRING);
- TQApplication::setFont(TDEGlobalSettings::menuFont(), true, TQPOPUPMENU_OBJECT_NAME_STRING);
+ TQApplication::setFont(TDEGlobalSettings::menuFont(), true, "TQMenuBar");
+ TQApplication::setFont(TDEGlobalSettings::menuFont(), true, "TQPopupMenu");
TQApplication::setFont(TDEGlobalSettings::menuFont(), true, "TDEPopupTitle");
// "patch" standard TQStyleSheet to follow our fonts
@@ -2593,15 +2591,15 @@ void TDEApplication::propagateSettings(SettingsCategory arg)
TQApplication::setWheelScrollLines(num);
bool b = config->readBoolEntry("EffectAnimateMenu", false);
- TQApplication::setEffectEnabled( Qt::UI_AnimateMenu, b);
+ TQApplication::setEffectEnabled( TQt::UI_AnimateMenu, b);
b = config->readBoolEntry("EffectFadeMenu", false);
- TQApplication::setEffectEnabled( Qt::UI_FadeMenu, b);
+ TQApplication::setEffectEnabled( TQt::UI_FadeMenu, b);
b = config->readBoolEntry("EffectAnimateCombo", false);
- TQApplication::setEffectEnabled( Qt::UI_AnimateCombo, b);
+ TQApplication::setEffectEnabled( TQt::UI_AnimateCombo, b);
b = config->readBoolEntry("EffectAnimateTooltip", false);
- TQApplication::setEffectEnabled( Qt::UI_AnimateTooltip, b);
+ TQApplication::setEffectEnabled( TQt::UI_AnimateTooltip, b);
b = config->readBoolEntry("EffectFadeTooltip", false);
- TQApplication::setEffectEnabled( Qt::UI_FadeTooltip, b);
+ TQApplication::setEffectEnabled( TQt::UI_FadeTooltip, b);
b = !config->readBoolEntry("EffectNoTooltip", false);
TQToolTip::setGloballyEnabled( b );
@@ -2644,8 +2642,8 @@ void TDEApplication::installKDEPropertyMap()
kdeMap->insert( "KIntSpinBox", "value" );
kdeMap->insert( "KDoubleNumInput", "value" );
// Temp til fixed in QT then enable ifdef with the correct version num
- kdeMap->insert( TQGROUPBOX_OBJECT_NAME_STRING, "checked" );
- kdeMap->insert( TQTABWIDGET_OBJECT_NAME_STRING, "currentPage" );
+ kdeMap->insert( "TQGroupBox", "checked" );
+ kdeMap->insert( "TQTabWidget", "currentPage" );
TQSqlPropertyMap::installDefaultMap( kdeMap );
#endif
}
@@ -2656,7 +2654,7 @@ void TDEApplication::invokeHelp( const TQString& anchor,
return invokeHelp( anchor, _appname, "" );
}
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
// for win32 we're using simple help tools like Qt Assistant,
// see kapplication_win.cpp
void TDEApplication::invokeHelp( const TQString& anchor,
@@ -2680,8 +2678,8 @@ void TDEApplication::invokeHelp( const TQString& anchor,
{
if (startServiceByDesktopName("khelpcenter", url, &error, 0, 0, startup_id, false))
{
- if (Tty != kapp->type())
- TQMessageBox::critical(kapp->mainWidget(), i18n("Could not Launch Help Center"),
+ if (Tty != tdeApp->type())
+ TQMessageBox::critical(tdeApp->mainWidget(), i18n("Could not Launch Help Center"),
i18n("Could not launch the TDE Help Center:\n\n%1").arg(error), i18n("&OK"));
else
kdWarning() << "Could not launch help:\n" << error << endl;
@@ -2715,8 +2713,8 @@ void TDEApplication::invokeHTMLHelp( const TQString& _filename, const TQString&
{
if (startServiceByDesktopName("khelpcenter", url, &error, 0, 0, "", false))
{
- if (Tty != kapp->type())
- TQMessageBox::critical(kapp->mainWidget(), i18n("Could not Launch Help Center"),
+ if (Tty != tdeApp->type())
+ TQMessageBox::critical(tdeApp->mainWidget(), i18n("Could not Launch Help Center"),
i18n("Could not launch the TDE Help Center:\n\n%1").arg(error), i18n("&OK"));
else
kdWarning() << "Could not launch help:\n" << error << endl;
@@ -2789,7 +2787,7 @@ void TDEApplication::invokeMailer(const TQString &to, const TQString &cc, const
return invokeMailer(to,cc,bcc,subject,body,messageFile,attachURLs,"");
}
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
// on win32, for invoking browser we're using win32 API
// see kapplication_win.cpp
@@ -2986,8 +2984,8 @@ void TDEApplication::invokeMailer(const TQString &_to, const TQString &_cc, cons
// TODO this should check if cmd has a .desktop file, and use data from it, together
// with sending more ASN data
if (tdeinitExec(cmd, cmdTokens, &error, NULL, startup_id )) {
- if (Tty != kapp->type()) {
- TQMessageBox::critical(kapp->mainWidget(), i18n("Could not Launch Mail Client"),
+ if (Tty != tdeApp->type()) {
+ TQMessageBox::critical(tdeApp->mainWidget(), i18n("Could not Launch Mail Client"),
i18n("Could not launch the mail client:\n\n%1").arg(error), i18n("&OK"));
}
else {
@@ -3002,7 +3000,7 @@ void TDEApplication::invokeBrowser( const TQString &url )
return invokeBrowser( url, "" );
}
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
// on win32, for invoking browser we're using win32 API
// see kapplication_win.cpp
void TDEApplication::invokeBrowser( const TQString &url, const TQCString& startup_id )
@@ -3011,8 +3009,8 @@ void TDEApplication::invokeBrowser( const TQString &url, const TQCString& startu
if (startServiceByDesktopName("kfmclient", url, &error, 0, 0, startup_id, false))
{
- if (Tty != kapp->type())
- TQMessageBox::critical(kapp->mainWidget(), i18n("Could not Launch Browser"),
+ if (Tty != tdeApp->type())
+ TQMessageBox::critical(tdeApp->mainWidget(), i18n("Could not Launch Browser"),
i18n("Could not launch the browser:\n\n%1").arg(error), i18n("&OK"));
else
kdWarning() << "Could not launch browser:\n" << error << endl;
@@ -3023,27 +3021,27 @@ void TDEApplication::invokeBrowser( const TQString &url, const TQCString& startu
void TDEApplication::cut()
{
- invokeEditSlot( TQT_SLOT( cut() ) );
+ invokeEditSlot( TQ_SLOT( cut() ) );
}
void TDEApplication::copy()
{
- invokeEditSlot( TQT_SLOT( copy() ) );
+ invokeEditSlot( TQ_SLOT( copy() ) );
}
void TDEApplication::paste()
{
- invokeEditSlot( TQT_SLOT( paste() ) );
+ invokeEditSlot( TQ_SLOT( paste() ) );
}
void TDEApplication::clear()
{
- invokeEditSlot( TQT_SLOT( clear() ) );
+ invokeEditSlot( TQ_SLOT( clear() ) );
}
void TDEApplication::selectAll()
{
- invokeEditSlot( TQT_SLOT( selectAll() ) );
+ invokeEditSlot( TQ_SLOT( selectAll() ) );
}
void TDEApplication::broadcastKeyCode(unsigned int keyCode)
@@ -3072,8 +3070,8 @@ startServiceInternal( const TQCString &function,
// Register app as able to send DCOP messages
DCOPClient *dcopClient;
- if (kapp)
- dcopClient = kapp->dcopClient();
+ if (tdeApp)
+ dcopClient = tdeApp->dcopClient();
else
dcopClient = new DCOPClient;
@@ -3083,7 +3081,7 @@ startServiceInternal( const TQCString &function,
{
if (error)
*error = i18n("Could not register with DCOP.\n");
- if (!kapp)
+ if (!tdeApp)
delete dcopClient;
return -1;
@@ -3096,7 +3094,7 @@ startServiceInternal( const TQCString &function,
TQByteArray replyData;
TQCString _launcher = TDEApplication::launcher();
TQValueList<TQCString> envs;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if (tqt_xdisplay()) {
TQCString dpystring(XDisplayString(tqt_xdisplay()));
envs.append( TQCString("DISPLAY=") + dpystring );
@@ -3106,7 +3104,7 @@ startServiceInternal( const TQCString &function,
}
#endif
stream << envs;
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
// make sure there is id, so that user timestamp exists
stream << ( startup_id.isEmpty() ? TDEStartupInfo::createNewStartupId() : startup_id );
#endif
@@ -3118,11 +3116,11 @@ startServiceInternal( const TQCString &function,
{
if (error)
*error = i18n("TDELauncher could not be reached via DCOP.\n");
- if (!kapp)
+ if (!tdeApp)
delete dcopClient;
return -1;
}
- if (!kapp)
+ if (!tdeApp)
delete dcopClient;
if (noWait)
@@ -3345,8 +3343,8 @@ void TDEApplication::setTopWidget( TQWidget *topWidget )
// set the specified icons
topWidget->setIcon( icon() ); //standard X11
-#if defined Q_WS_X11
-//#ifdef Q_WS_X11 // FIXME(E): Implement for Qt/Embedded
+#if defined TQ_WS_X11
+//#ifdef TQ_WS_X11 // FIXME(E): Implement for Qt/Embedded
KWin::setIcons(topWidget->winId(), icon(), miniIcon() ); // NET_WM hints for KWin
// set the app startup notification window property
@@ -3363,7 +3361,7 @@ void TDEApplication::setStartupId( const TQCString& startup_id )
{
if( startup_id == d->startup_id )
return;
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
TDEStartupInfo::handleAutoAppStartedSending(); // finish old startup notification if needed
#endif
if( startup_id.isEmpty())
@@ -3371,7 +3369,7 @@ void TDEApplication::setStartupId( const TQCString& startup_id )
else
{
d->startup_id = startup_id;
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
TDEStartupInfoId id;
id.initId( startup_id );
long timestamp = id.timestamp();
@@ -3385,7 +3383,7 @@ void TDEApplication::setStartupId( const TQCString& startup_id )
// not to propagate it to processes started from this app
void TDEApplication::read_app_startup_id()
{
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
TDEStartupInfoId id = TDEStartupInfo::currentStartupIdEnv();
TDEStartupInfo::resetStartupEnv();
d->startup_id = id.id();
@@ -3593,7 +3591,7 @@ bool TDEApplication::authorizeURLAction(const TQString &action, const KURL &_bas
uint TDEApplication::keyboardModifiers()
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
Window root;
Window child;
int root_x, root_y, win_x, win_y;
@@ -3612,13 +3610,13 @@ uint TDEApplication::keyboardModifiers()
uint TDEApplication::mouseState()
{
uint mousestate;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
Window root;
Window child;
int root_x, root_y, win_x, win_y;
XQueryPointer( tqt_xdisplay(), tqt_xrootwin(), &root, &child,
&root_x, &root_y, &win_x, &win_y, &mousestate );
-#elif defined(Q_WS_WIN)
+#elif defined(TQ_WS_WIN)
const bool mousebtn_swapped = GetSystemMetrics(SM_SWAPBUTTON);
if (GetAsyncKeyState(VK_LBUTTON))
mousestate |= (mousebtn_swapped ? Button3Mask : Button1Mask);
@@ -3626,7 +3624,7 @@ uint TDEApplication::mouseState()
mousestate |= Button2Mask;
if (GetAsyncKeyState(VK_RBUTTON))
mousestate |= (mousebtn_swapped ? Button1Mask : Button3Mask);
-#elif defined(Q_WS_MACX)
+#elif defined(TQ_WS_MACX)
mousestate = GetCurrentEventButtonState();
#else
//TODO: other platforms
@@ -3634,10 +3632,10 @@ uint TDEApplication::mouseState()
return mousestate & 0xff00;
}
-TQ_ButtonState TDEApplication::keyboardMouseState()
+TQt::ButtonState TDEApplication::keyboardMouseState()
{
int ret = 0;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
Window root;
Window child;
int root_x, root_y, win_x, win_y;
@@ -3646,52 +3644,52 @@ TQ_ButtonState TDEApplication::keyboardMouseState()
&root_x, &root_y, &win_x, &win_y, &state );
// transform the same way like Qt's qt_x11_translateButtonState()
if( state & Button1Mask )
- ret |= TQ_LeftButton;
+ ret |= LeftButton;
if( state & Button2Mask )
- ret |= TQ_MidButton;
+ ret |= MidButton;
if( state & Button3Mask )
- ret |= TQ_RightButton;
+ ret |= RightButton;
if( state & ShiftMask )
- ret |= TQ_ShiftButton;
+ ret |= ShiftButton;
if( state & ControlMask )
- ret |= TQ_ControlButton;
+ ret |= ControlButton;
if( state & KKeyNative::modX( KKey::ALT ))
- ret |= TQ_AltButton;
+ ret |= AltButton;
if( state & KKeyNative::modX( KKey::WIN ))
- ret |= TQ_MetaButton;
-#elif defined(Q_WS_WIN)
+ ret |= MetaButton;
+#elif defined(TQ_WS_WIN)
const bool mousebtn_swapped = GetSystemMetrics(SM_SWAPBUTTON);
if (GetAsyncKeyState(VK_LBUTTON))
ret |= (mousebtn_swapped ? RightButton : LeftButton);
if (GetAsyncKeyState(VK_MBUTTON))
- ret |= TQ_MidButton;
+ ret |= MidButton;
if (GetAsyncKeyState(VK_RBUTTON))
- ret |= (mousebtn_swapped ? TQ_LeftButton : TQ_RightButton);
+ ret |= (mousebtn_swapped ? LeftButton : RightButton);
if (GetAsyncKeyState(VK_SHIFT))
- ret |= TQ_ShiftButton;
+ ret |= ShiftButton;
if (GetAsyncKeyState(VK_CONTROL))
- ret |= TQ_ControlButton;
+ ret |= ControlButton;
if (GetAsyncKeyState(VK_MENU))
- ret |= TQ_AltButton;
+ ret |= AltButton;
if (GetAsyncKeyState(VK_LWIN) || GetAsyncKeyState(VK_RWIN))
- ret |= TQ_MetaButton;
+ ret |= MetaButton;
#else
//TODO: other platforms
#endif
return static_cast< ButtonState >( ret );
}
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
int TDEApplication::currentX11VT()
{
return get_x_vtnum(TQPaintDevice::x11AppDisplay());
}
-#else // Q_WS_X11
+#else // TQ_WS_X11
int TDEApplication::currentX11VT()
{
return -1;
}
-#endif // Q_WS_X11
+#endif // TQ_WS_X11
void TDEApplication::installSigpipeHandler()
{
@@ -3722,7 +3720,7 @@ void TDEApplication::sigpipeHandler(int)
bool TDEApplication::guiEnabled()
{
- return kapp && kapp->d->guiEnabled;
+ return tdeApp && tdeApp->d->guiEnabled;
}
void TDEApplication::virtual_hook( int id, void* data )
diff --git a/tdecore/tdeapplication.h b/tdecore/tdeapplication.h
index 1b4fbe097..171ae2eec 100644
--- a/tdecore/tdeapplication.h
+++ b/tdecore/tdeapplication.h
@@ -1,4 +1,4 @@
-/* This file is part of the KDE libraries
+/* This file is part of the TDE libraries
Copyright (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org)
Copyright (c) 1998, 1999 KDE Team
@@ -18,8 +18,8 @@
Boston, MA 02110-1301, USA.
*/
-#ifndef _TDEAPP_H
-#define _TDEAPP_H
+#ifndef __TDEAPPLICATION_H__
+#define __TDEAPPLICATION_H__
// Version macros. Never put this further down.
#include "tdeversion.h"
@@ -30,16 +30,14 @@ class KCharsets;
class DCOPClient;
class DCOPObject;
-#include <tqtglobaldefines.h>
-
typedef unsigned long Atom;
-#if !defined(Q_WS_X11)
+#if !defined(TQ_WS_X11)
typedef void Display;
#endif
#include <tqapplication.h>
#include <tqpixmap.h>
-#include <kinstance.h>
+#include <tdeinstance.h>
struct _IceConn;
class TQPopupMenu;
@@ -48,7 +46,7 @@ class KSessionManaged;
class TDEStyle;
class KURL;
-#define kapp TDEApplication::kApplication()
+#define tdeApp TDEApplication::tdeApplication()
class TDEApplicationPrivate;
@@ -56,7 +54,7 @@ class TDEApplicationPrivate;
* Controls and provides information to all KDE applications.
*
* Only one object of this class can be instantiated in a single app.
-* This instance is always accessible via the 'kapp' global variable.
+* This instance is always accessible via the 'tdeApp' global variable.
* See cut() for an example.
*
* This class provides the following services to all KDE applications.
@@ -96,7 +94,7 @@ class TDEApplicationPrivate;
class TDECORE_EXPORT TDEApplication : public TQApplication, public TDEInstance
{
- Q_OBJECT
+ TQ_OBJECT
public:
/** Position of the caption (presumably in the application window's
* title bar). This enum appears to be unused.
@@ -140,7 +138,7 @@ public:
#endif // TDEAPPLICATION_BINARY_COMPAT_HACK
#endif // Q_QDOC
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
/**
* Constructor. Parses command-line arguments. Use this constructor when you
* you want ARGB support to be automatically detected and enabled.
@@ -187,7 +185,7 @@ public:
*
* @see RGBADisplay()
*/
- TDEApplication(Display *display, bool disable_argb, Qt::HANDLE visual, Qt::HANDLE colormap, bool allowStyles);
+ TDEApplication(Display *display, bool disable_argb, TQt::HANDLE visual, TQt::HANDLE colormap, bool allowStyles);
/**
* Constructor. Parses command-line arguments. Use this constructor when you
@@ -212,7 +210,7 @@ public:
*
* @since KDE 3.3
*/
- TDEApplication(Display *display, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0,
+ TDEApplication(Display *display, TQt::HANDLE visual = 0, TQt::HANDLE colormap = 0,
bool allowStyles=true);
/**
@@ -268,7 +266,7 @@ public:
// REMOVE FOR KDE 4.0 - using it only gives crashing applications because
// TDECmdLineArgs::init isn't called
TDEApplication(int& argc, char** argv,
- const TQCString& rAppName, bool allowStyles=true, bool GUIenabled=true, bool SMenabled=true) KDE_DEPRECATED;
+ const TQCString& rAppName, bool allowStyles=true, bool GUIenabled=true, bool SMenabled=true) TDE_DEPRECATED;
#ifdef Q_QDOC
#else // Q_QDOC
@@ -277,7 +275,7 @@ public:
// FOR BINARY COMPATIBILITY ONLY
// REMOVE WHEN PRACTICAL!
TDEApplication(int& argc, char** argv,
- const TQCString& rAppName, bool allowStyles, bool GUIenabled) KDE_DEPRECATED;
+ const TQCString& rAppName, bool allowStyles, bool GUIenabled) TDE_DEPRECATED;
#endif // TDEAPPLICATION_BINARY_COMPAT_HACK
#endif // Q_QDOC
@@ -298,7 +296,7 @@ public:
* to every function that may require it.
* @return the current application object
*/
- static TDEApplication* kApplication() { return KApp; }
+ static TDEApplication* tdeApplication() { return TDEApp; }
/**
* Returns the application session config object.
@@ -545,7 +543,7 @@ public:
* value will be appended to the filename,
* prefixed with a "#" (hash) character.
*/
- void invokeHTMLHelp( const TQString& aFilename, const TQString& aTopic = TQString::null ) const KDE_DEPRECATED;
+ void invokeHTMLHelp( const TQString& aFilename, const TQString& aTopic = TQString::null ) const TDE_DEPRECATED;
/**
* Convenience method; invokes the standard email application.
@@ -621,7 +619,7 @@ public slots:
* If the widget with focus provides a cut() slot, call that slot. Thus for a
* simple application cut can be implemented as:
* \code
- * KStdAction::cut( kapp, TQT_SLOT( cut() ), actionCollection() );
+ * KStdAction::cut( tdeApp, TQ_SLOT( cut() ), actionCollection() );
* \endcode
*/
void cut();
@@ -630,7 +628,7 @@ public slots:
* If the widget with focus provides a copy() slot, call that slot. Thus for a
* simple application copy can be implemented as:
* \code
- * KStdAction::copy( kapp, TQT_SLOT( copy() ), actionCollection() );
+ * KStdAction::copy( tdeApp, TQ_SLOT( copy() ), actionCollection() );
* \endcode
*/
void copy();
@@ -639,7 +637,7 @@ public slots:
* If the widget with focus provides a paste() slot, call that slot. Thus for a
* simple application copy can be implemented as:
* \code
- * KStdAction::paste( kapp, TQT_SLOT( paste() ), actionCollection() );
+ * KStdAction::paste( tdeApp, TQ_SLOT( paste() ), actionCollection() );
* \endcode
*/
void paste();
@@ -648,7 +646,7 @@ public slots:
* If the widget with focus provides a clear() slot, call that slot. Thus for a
* simple application clear() can be implemented as:
* \code
- * new TDEAction( i18n( "Clear" ), "edit-clear", 0, kapp, TQT_SLOT( clear() ), actionCollection(), "clear" );
+ * new TDEAction( i18n( "Clear" ), "edit-clear", 0, tdeApp, TQ_SLOT( clear() ), actionCollection(), "clear" );
* \endcode
*
* Note that for some widgets, this may not provide the intended bahavior. For
@@ -660,7 +658,7 @@ public slots:
*
* \code
* class MyListView : public TDEListView {
- * Q_OBJECT
+ * TQ_OBJECT
* public:
* MyListView( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 ) : TDEListView( parent, name, f ) {}
* virtual ~MyListView() {}
@@ -675,7 +673,7 @@ public slots:
* If the widget with focus provides a selectAll() slot, call that slot. Thus for a
* simple application select all can be implemented as:
* \code
- * KStdAction::selectAll( kapp, TQT_SLOT( selectAll() ), actionCollection() );
+ * KStdAction::selectAll( tdeApp, TQ_SLOT( selectAll() ), actionCollection() );
* \endcode
*/
void selectAll();
@@ -893,14 +891,14 @@ public:
/**
* @deprecated
*/
- KDE_DEPRECATED TDEStyle* tdestyle() const { return 0; }
+ TDE_DEPRECATED TDEStyle* tdestyle() const { return 0; }
/**
* Builds a caption that contains the application name along with the
* userCaption using a standard layout.
*
* To make a compliant caption
- * for your window, simply do: @p setCaption(kapp->makeStdCaption(yourCaption));
+ * for your window, simply do: @p setCaption(tdeApp->makeStdCaption(yourCaption));
*
* @param userCaption The caption string you want to display in the
* window caption area. Do not include the application name!
@@ -935,7 +933,7 @@ public:
*/
TQString checkRecoverFile( const TQString& pFilename, bool& bRecover ) const;
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
/**
* @internal
* Get the X11 display
@@ -964,7 +962,7 @@ public:
* Note that calling this method will probably cause the screen to flicker.
* @see isCompositionManagerAvailable()
* @param force_available If set, force TDE to assume a composition manager is available
- * @param available Whether or not the composition manager is available (only used if force_available is TRUE)
+ * @param available Whether or not the composition manager is available (only used if force_available is true)
* @return whether the composition manager is enabled
*/
bool detectCompositionManagerAvailable(bool force_available=false, bool available=true);
@@ -984,14 +982,14 @@ public:
*
* @return A pointer to the X11 display visual
*/
- Qt::HANDLE getX11RGBAVisual(Display *dpy);
+ TQt::HANDLE getX11RGBAVisual(Display *dpy);
/**
* Returns the X11 display colormap
*
* @return An X11 display colormap object
*/
- Qt::HANDLE getX11RGBAColormap(Display *dpy);
+ TQt::HANDLE getX11RGBAColormap(Display *dpy);
/**
* Returns whether or not X11 composition is available
@@ -1219,7 +1217,7 @@ public:
* @deprecated Use keyboardMouseState()
* @since 3.1
*/
- static uint keyboardModifiers() KDE_DEPRECATED;
+ static uint keyboardModifiers() TDE_DEPRECATED;
/** @deprecated Same values as Button1Mask etc. in X.h */
enum { Button1Pressed = 1<<8,
@@ -1231,7 +1229,7 @@ public:
* @deprecated Use keyboardMouseState()
* @since 3.1
*/
- static uint mouseState() KDE_DEPRECATED;
+ static uint mouseState() TDE_DEPRECATED;
/**
* Returns the VT that the current X server is running on, or -1 if this information is unavailable.
@@ -1258,15 +1256,15 @@ public slots:
protected:
/**
- * @internal Used by KUniqueApplication
+ * @internal Used by TDEUniqueApplication
*/
TDEApplication( bool allowStyles, bool GUIenabled, TDEInstance* _instance );
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
/**
- * @internal Used by KUniqueApplication
+ * @internal Used by TDEUniqueApplication
*/
- TDEApplication( Display *display, Qt::HANDLE visual, Qt::HANDLE colormap,
+ TDEApplication( Display *display, TQt::HANDLE visual, TQt::HANDLE colormap,
bool allowStyles, TDEInstance* _instance );
/**
@@ -1280,14 +1278,14 @@ protected:
int kipcEventMask;
/// Current application object.
- static TDEApplication *KApp;
+ static TDEApplication *TDEApp;
int pArgc;
/**
* This method is used internally to determine which edit slots are implemented
* by the widget that has the focus, and to invoke those slots if available.
*
- * @param slot is the slot as returned using the TQT_SLOT() macro, for example TQT_SLOT( cut() )
+ * @param slot is the slot as returned using the TQ_SLOT() macro, for example TQ_SLOT( cut() )
*
* This method can be used in TDEApplication subclasses to implement application wide
* edit actions not supported by the TDEApplication class. For example (in your subclass):
@@ -1295,7 +1293,7 @@ protected:
* \code
* void MyApplication::deselect()
* {
- * invokeEditSlot( TQT_SLOT( deselect() ) );
+ * invokeEditSlot( TQ_SLOT( deselect() ) );
* }
* \endcode
*
@@ -1303,7 +1301,7 @@ protected:
* focused widget if it provides this slot. You can combine this with TDEAction with:
*
* \code
- * KStdAction::deselect( static_cast<MyApplication *>( kapp ), TQT_SLOT( cut() ), actionCollection() );
+ * KStdAction::deselect( static_cast<MyApplication *>( tdeApp ), TQ_SLOT( cut() ), actionCollection() );
* \endcode
*
* @see cut()
@@ -1352,9 +1350,9 @@ private:
void initUrlActionRestrictions();
bool argb_visual;
-#if defined(Q_WS_X11)
- Qt::HANDLE argb_x11_visual;
- Qt::HANDLE argb_x11_colormap;
+#if defined(TQ_WS_X11)
+ TQt::HANDLE argb_x11_visual;
+ TQt::HANDLE argb_x11_colormap;
#endif
public:
@@ -1452,7 +1450,7 @@ signals:
* connect to this to monitor global font changes, especially if you are
* using explicit fonts.
*
- * Note: If you derive from a QWidget-based class, a faster method is to
+ * Note: If you derive from a TQWidget-based class, a faster method is to
* reimplement TQWidget::fontChange(). This is the preferred way
* to get informed about font updates.
*/
diff --git a/tdecore/tdecmdlineargs.cpp b/tdecore/tdecmdlineargs.cpp
index 0b9e2693f..af28d0057 100644
--- a/tdecore/tdecmdlineargs.cpp
+++ b/tdecore/tdecmdlineargs.cpp
@@ -43,13 +43,13 @@
#include <kstringhandler.h>
#include <kstaticdeleter.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#define DISPLAY "DISPLAY"
-#elif defined(Q_WS_QWS)
+#elif defined(TQ_WS_QWS)
#define DISPLAY "QWS_DISPLAY"
#endif
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
#include <win32_utils.h>
#endif
@@ -125,20 +125,20 @@ bool TDECmdLineArgs::ignoreUnknown = false;
void
TDECmdLineArgs::init(int _argc, char **_argv, const char *_appname, const char* programName,
- const char *_description, const char *_version, bool noKApp)
+ const char *_description, const char *_version, bool noTDEApp)
{
init(_argc, _argv,
new TDEAboutData(_appname, programName, _version, _description),
- noKApp);
+ noTDEApp);
}
void
TDECmdLineArgs::init(int _argc, char **_argv, const char *_appname,
- const char *_description, const char *_version, bool noKApp)
+ const char *_description, const char *_version, bool noTDEApp)
{
init(_argc, _argv,
new TDEAboutData(_appname, _appname, _version, _description),
- noKApp);
+ noTDEApp);
}
void
@@ -159,7 +159,7 @@ TDECmdLineArgs::init(const TDEAboutData* ab)
void
-TDECmdLineArgs::init(int _argc, char **_argv, const TDEAboutData *_about, bool noKApp)
+TDECmdLineArgs::init(int _argc, char **_argv, const TDEAboutData *_about, bool noTDEApp)
{
argc = _argc;
argv = _argv;
@@ -184,10 +184,10 @@ TDECmdLineArgs::init(int _argc, char **_argv, const TDEAboutData *_about, bool n
parsed = false;
mCwd = mCwdd.setObject(mCwd, new char [PATH_MAX+1], true);
(void) getcwd(mCwd, PATH_MAX);
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
win32_slashify(mCwd, PATH_MAX);
#endif
- if (!noKApp)
+ if (!noTDEApp)
TDEApplication::addCmdLineOptions();
}
@@ -926,7 +926,7 @@ TDECmdLineArgs::usage(const char *id)
name = name.mid(1);
if ((name[0] == '[') && (name[name.length()-1] == ']'))
name = name.mid(1, name.length()-2);
- printQ(optionFormatString.arg(QString(name), -25)
+ printQ(optionFormatString.arg(TQString(name), -25)
.arg(description));
}
else
@@ -950,12 +950,12 @@ TDECmdLineArgs::usage(const char *id)
opt = opt + name;
if (!option->def)
{
- printQ(optionFormatString.arg(QString(opt), -25)
+ printQ(optionFormatString.arg(TQString(opt), -25)
.arg(description));
}
else
{
- printQ(optionFormatStringDef.arg(QString(opt), -25)
+ printQ(optionFormatStringDef.arg(TQString(opt), -25)
.arg(description).arg(option->def));
}
opt = "";
@@ -1099,7 +1099,7 @@ TDECmdLineArgs::setOption(const TQCString &opt, const char *value)
addArgument(arg);
addArgument(value);
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
// Hack coming up!
if (arg == "-display")
{
diff --git a/tdecore/tdecmdlineargs.h b/tdecore/tdecmdlineargs.h
index 8705b4d35..c494c206f 100644
--- a/tdecore/tdecmdlineargs.h
+++ b/tdecore/tdecmdlineargs.h
@@ -69,7 +69,7 @@ struct TDECORE_EXPORT TDECmdLineOptions
class TDECmdLineArgsList;
class TDEApplication;
-class KUniqueApplication;
+class TDEUniqueApplication;
class TDECmdLineParsedOptions;
class TDECmdLineParsedArgs;
class TDEAboutData;
@@ -97,19 +97,19 @@ class TDECmdLineArgsPrivate;
* TDECmdLineArgs::addCmdLineOptions( options );
*
* // Add options from other components
- * KUniqueApplication::addCmdLineOptions();
+ * TDEUniqueApplication::addCmdLineOptions();
*
* ....
*
* // Create application object without passing 'argc' and 'argv' again.
- * KUniqueApplication app;
+ * TDEUniqueApplication app;
*
* ....
*
* // Handle our own options/arguments
* // A TDEApplication will usually do this in main but this is not
* // necessary.
- * // A KUniqueApplication might want to handle it in newInstance().
+ * // A TDEUniqueApplication might want to handle it in newInstance().
*
* TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
*
@@ -222,7 +222,7 @@ class TDECmdLineArgsPrivate;
class TDECORE_EXPORT TDECmdLineArgs
{
friend class TDEApplication;
- friend class KUniqueApplication;
+ friend class TDEUniqueApplication;
friend class TQPtrList<TDECmdLineArgs>;
public:
// Static functions:
@@ -241,14 +241,14 @@ public:
* translation. Example: I18N_NOOP("KEdit")
* @param _description A short description of what your application is about.
* @param _version A version.
- * @param noKApp Set this true to not add commandline options for
+ * @param noTDEApp Set this true to not add commandline options for
* TQApplication / TDEApplication
*
* @since 3.2
*/
static void init(int _argc, char **_argv, const char *_appname,
const char* programName, const char *_description,
- const char *_version, bool noKApp = false);
+ const char *_version, bool noTDEApp = false);
/**
* @deprecated
* You should convert any calls to this method to use the one
@@ -257,7 +257,7 @@ public:
*/
static void init(int _argc, char **_argv,
const char *_appname, const char *_description,
- const char *_version, bool noKApp = false) KDE_DEPRECATED;
+ const char *_version, bool noTDEApp = false) TDE_DEPRECATED;
/**
* Initialize class.
@@ -269,11 +269,11 @@ public:
* @param _argc As passed to @p main(...).
* @param _argv As passed to @p main(...).
* @param about A TDEAboutData object describing your program.
- * @param noKApp Set this true to not add commandline options for
+ * @param noTDEApp Set this true to not add commandline options for
* TQApplication / TDEApplication
*/
static void init(int _argc, char **_argv,
- const TDEAboutData *about, bool noKApp = false);
+ const TDEAboutData *about, bool noTDEApp = false);
/**
* Initialize Class
@@ -373,7 +373,7 @@ public:
* Get the CWD (Current Working Directory) associated with the
* current command line arguments.
*
- * Typically this is needed in KUniqueApplication::newInstance()
+ * Typically this is needed in TDEUniqueApplication::newInstance()
* since the CWD of the process may be different from the CWD
* where the user started a second instance.
* @return the current working directory
@@ -606,7 +606,7 @@ private:
static void removeArgs(const char *id);
/**
- * @internal for KUniqueApplication only:
+ * @internal for TDEUniqueApplication only:
*
* Save all but the Qt and KDE arguments to a stream.
*/
diff --git a/tdecore/tdeconfig.cpp b/tdecore/tdeconfig.cpp
index 68307dc85..4f67d5681 100644
--- a/tdecore/tdeconfig.cpp
+++ b/tdecore/tdeconfig.cpp
@@ -37,7 +37,7 @@
#include "tdeconfig.h"
#include "tdeglobal.h"
-#include "kstandarddirs.h"
+#include "tdestandarddirs.h"
#include "kstaticdeleter.h"
#include <tqtimer.h>
diff --git a/tdecore/tdeconfig.h b/tdecore/tdeconfig.h
index 2ae0549de..7d535e38b 100644
--- a/tdecore/tdeconfig.h
+++ b/tdecore/tdeconfig.h
@@ -37,12 +37,12 @@ class TDEConfigPrivate;
* This class implements KDE's default configuration system.
*
* @author Kalle Dalheimer <kalle@kde.org>, Preston Brown <pbrown@kde.org>
-* @see TDEGlobal::config(), TDEConfigBase, KSimpleConfig
+* @see TDEGlobal::config(), TDEConfigBase, TDESimpleConfig
* @short KDE Configuration Management class
*/
class TDECORE_EXPORT TDEConfig : public TDEConfigBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/tdecore/tdeconfig_compiler/README.dox b/tdecore/tdeconfig_compiler/README.dox
index 1b4926e96..ad02f29b3 100644
--- a/tdecore/tdeconfig_compiler/README.dox
+++ b/tdecore/tdeconfig_compiler/README.dox
@@ -104,7 +104,7 @@ The following options are read from the kcfgc file:
<td><b>Visibility</b></td>
<td>string</td>
<td>-</td>
- <td>Inserts visibility directive (for example KDE_EXPORT) between "class" keyword and class
+ <td>Inserts visibility directive (for example TDE_EXPORT) between "class" keyword and class
name in header file</td>
</tr>
<tr>
@@ -213,8 +213,8 @@ color_3=#ffff00
\endverbatim
The configuration options will be accessible to the application via
-a QColor color(int ColorIndex) and a
-void setColor(int ColorIndex, const QColor &v) function.
+a TQColor color(int ColorIndex) and a
+void setColor(int ColorIndex, const TQColor &v) function.
Example 2:
\verbatim
@@ -239,8 +239,8 @@ sound_Crash=crash.wav
sound_Missile=missile.wav
The configuration options will be accessible to the application via
-a QString sound(int SoundEvent) and a
-void setSound(int SoundEvent, const QString &v) function.
+a TQString sound(int SoundEvent) and a
+void setSound(int SoundEvent, const TQString &v) function.
- Parameterized groups
diff --git a/tdecore/tdeconfig_compiler/example/autoexample.cpp b/tdecore/tdeconfig_compiler/example/autoexample.cpp
index 6085fa6eb..ee1233e54 100644
--- a/tdecore/tdeconfig_compiler/example/autoexample.cpp
+++ b/tdecore/tdeconfig_compiler/example/autoexample.cpp
@@ -31,7 +31,7 @@
#include <tdecmdlineargs.h>
#include <tdeglobal.h>
#include <tdeconfig.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeconfigdialog.h>
#include <tqlabel.h>
diff --git a/tdecore/tdeconfig_compiler/example/example.cpp b/tdecore/tdeconfig_compiler/example/example.cpp
index 157570d98..662e60d0f 100644
--- a/tdecore/tdeconfig_compiler/example/example.cpp
+++ b/tdecore/tdeconfig_compiler/example/example.cpp
@@ -28,7 +28,7 @@
#include <tdecmdlineargs.h>
#include <tdeglobal.h>
#include <tdeconfig.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
int main( int argc, char **argv )
{
diff --git a/tdecore/tdeconfig_compiler/example/example.kcfg b/tdecore/tdeconfig_compiler/example/example.kcfg
index 076bfb644..346e652bb 100644
--- a/tdecore/tdeconfig_compiler/example/example.kcfg
+++ b/tdecore/tdeconfig_compiler/example/example.kcfg
@@ -35,7 +35,7 @@
</entry>
<entry name="MyPath" type="Path">
<label>This is a path</label>
- <default code="true">QDir::homeDirPath()+QString::fromLatin1(".hidden_file")</default>
+ <default code="true">QDir::homeDirPath()+TQString::fromLatin1(".hidden_file")</default>
</entry>
<entry name="MyPaths" type="PathList">
<label>This is a list of paths</label>
diff --git a/tdecore/tdeconfig_compiler/example/general_base.ui b/tdecore/tdeconfig_compiler/example/general_base.ui
index 9b41370c7..9f9d8fbb1 100644
--- a/tdecore/tdeconfig_compiler/example/general_base.ui
+++ b/tdecore/tdeconfig_compiler/example/general_base.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>GeneralBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>GeneralBase</cstring>
</property>
diff --git a/tdecore/tdeconfig_compiler/example/myoptions_base.ui b/tdecore/tdeconfig_compiler/example/myoptions_base.ui
index 3c0c2e6cb..62f0356c5 100644
--- a/tdecore/tdeconfig_compiler/example/myoptions_base.ui
+++ b/tdecore/tdeconfig_compiler/example/myoptions_base.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>MyOptionsBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>MyOptionsBase</cstring>
</property>
diff --git a/tdecore/tdeconfig_compiler/tdeconfig_compiler.cpp b/tdecore/tdeconfig_compiler/tdeconfig_compiler.cpp
index b950a3288..a4f4bc9c0 100644
--- a/tdecore/tdeconfig_compiler/tdeconfig_compiler.cpp
+++ b/tdecore/tdeconfig_compiler/tdeconfig_compiler.cpp
@@ -33,8 +33,8 @@
#include <tdecmdlineargs.h>
#include <tdeglobal.h>
#include <tdeconfig.h>
-#include <ksimpleconfig.h>
-#include <kstandarddirs.h>
+#include <tdesimpleconfig.h>
+#include <tdestandarddirs.h>
#include <iostream>
@@ -994,7 +994,7 @@ int main( int argc, char **argv )
TQString baseName = args->url( 1 ).fileName();
baseName = baseName.left(baseName.length() - 6);
- KSimpleConfig codegenConfig( codegenFilename, true );
+ TDESimpleConfig codegenConfig( codegenFilename, true );
TQString nameSpace = codegenConfig.readEntry("NameSpace");
TQString className = codegenConfig.readEntry("ClassName");
diff --git a/tdecore/tdeconfig_compiler/tests/test1main.cpp b/tdecore/tdeconfig_compiler/tests/test1main.cpp
index 79546639f..eaa9bc97b 100644
--- a/tdecore/tdeconfig_compiler/tests/test1main.cpp
+++ b/tdecore/tdeconfig_compiler/tests/test1main.cpp
@@ -19,7 +19,7 @@ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test1.h"
-#include "kinstance.h"
+#include "tdeinstance.h"
int main( int, char*[] )
{
diff --git a/tdecore/tdeconfig_compiler/tests/test2main.cpp b/tdecore/tdeconfig_compiler/tests/test2main.cpp
index 5970bf03d..46b85c6bf 100644
--- a/tdecore/tdeconfig_compiler/tests/test2main.cpp
+++ b/tdecore/tdeconfig_compiler/tests/test2main.cpp
@@ -19,7 +19,7 @@ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test2.h"
-#include "kinstance.h"
+#include "tdeinstance.h"
int main( int, char*[] )
{
diff --git a/tdecore/tdeconfig_compiler/tests/test3main.cpp b/tdecore/tdeconfig_compiler/tests/test3main.cpp
index f73ae38e3..262301b8b 100644
--- a/tdecore/tdeconfig_compiler/tests/test3main.cpp
+++ b/tdecore/tdeconfig_compiler/tests/test3main.cpp
@@ -19,7 +19,7 @@ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test3.h"
-#include "kinstance.h"
+#include "tdeinstance.h"
int main( int, char*[] )
{
diff --git a/tdecore/tdeconfig_compiler/tests/test4main.cpp b/tdecore/tdeconfig_compiler/tests/test4main.cpp
index 5229d8a87..92e34c328 100644
--- a/tdecore/tdeconfig_compiler/tests/test4main.cpp
+++ b/tdecore/tdeconfig_compiler/tests/test4main.cpp
@@ -20,7 +20,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test4.h"
-#include "kinstance.h"
+#include "tdeinstance.h"
int main( int, char*[] )
{
diff --git a/tdecore/tdeconfig_compiler/tests/test5main.cpp b/tdecore/tdeconfig_compiler/tests/test5main.cpp
index 89f28587f..f9111cf24 100644
--- a/tdecore/tdeconfig_compiler/tests/test5main.cpp
+++ b/tdecore/tdeconfig_compiler/tests/test5main.cpp
@@ -20,7 +20,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test5.h"
-#include "kinstance.h"
+#include "tdeinstance.h"
int main( int, char*[] )
{
diff --git a/tdecore/tdeconfig_compiler/tests/test6main.cpp b/tdecore/tdeconfig_compiler/tests/test6main.cpp
index 9b1b7503e..90c5de929 100644
--- a/tdecore/tdeconfig_compiler/tests/test6main.cpp
+++ b/tdecore/tdeconfig_compiler/tests/test6main.cpp
@@ -20,7 +20,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test6.h"
-#include "kinstance.h"
+#include "tdeinstance.h"
int main( int, char*[] )
{
diff --git a/tdecore/tdeconfig_compiler/tests/test7main.cpp b/tdecore/tdeconfig_compiler/tests/test7main.cpp
index 81cca0184..522aa4ff6 100644
--- a/tdecore/tdeconfig_compiler/tests/test7main.cpp
+++ b/tdecore/tdeconfig_compiler/tests/test7main.cpp
@@ -20,7 +20,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test7.h"
-#include "kinstance.h"
+#include "tdeinstance.h"
int main( int, char*[] )
{
diff --git a/tdecore/tdeconfig_compiler/tests/test8main.cpp b/tdecore/tdeconfig_compiler/tests/test8main.cpp
index 2611a48af..a338ea096 100644
--- a/tdecore/tdeconfig_compiler/tests/test8main.cpp
+++ b/tdecore/tdeconfig_compiler/tests/test8main.cpp
@@ -21,7 +21,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "test8a.h"
#include "test8b.h"
-#include "kinstance.h"
+#include "tdeinstance.h"
int main( int, char*[] )
{
diff --git a/tdecore/tdeconfig_compiler/tests/test9main.cpp b/tdecore/tdeconfig_compiler/tests/test9main.cpp
index 8668d8d8c..e49899bc1 100644
--- a/tdecore/tdeconfig_compiler/tests/test9main.cpp
+++ b/tdecore/tdeconfig_compiler/tests/test9main.cpp
@@ -19,7 +19,7 @@ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test9.h"
-#include "kinstance.h"
+#include "tdeinstance.h"
#include <kdebug.h>
#include <tqdir.h>
diff --git a/tdecore/tdeconfig_compiler/tests/test_dpointer_main.cpp b/tdecore/tdeconfig_compiler/tests/test_dpointer_main.cpp
index b62ee17af..a46f7ae50 100644
--- a/tdecore/tdeconfig_compiler/tests/test_dpointer_main.cpp
+++ b/tdecore/tdeconfig_compiler/tests/test_dpointer_main.cpp
@@ -20,7 +20,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "test_dpointer.h"
-#include "kinstance.h"
+#include "tdeinstance.h"
int main( int, char*[] )
{
diff --git a/tdecore/tdeconfigbackend.cpp b/tdecore/tdeconfigbackend.cpp
index 3dd450061..c7944ed12 100644
--- a/tdecore/tdeconfigbackend.cpp
+++ b/tdecore/tdeconfigbackend.cpp
@@ -43,9 +43,9 @@
#include "tdeconfigbase.h"
#include <tdeapplication.h>
#include <tdeglobal.h>
-#include <kprocess.h>
+#include <tdeprocess.h>
#include <tdelocale.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <ksavefile.h>
#include <kurl.h>
#include <kde_file.h>
@@ -353,7 +353,7 @@ bool TDEConfigINIBackEnd::parseConfigFiles()
TQStringList tdercs = TDEGlobal::dirs()->
findAllResources("config", TQString::fromLatin1("kdeglobals"));
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
TQString etc_tderc = TQFile::decodeName( TQCString(getenv("WINDIR")) + "\\tderc" );
#else
TQString etc_tderc = TQString::fromLatin1("/etc/tderc");
@@ -431,80 +431,23 @@ bool TDEConfigINIBackEnd::parseConfigFiles()
return true;
}
-#ifdef HAVE_MMAP
-#ifdef SIGBUS
-static sigjmp_buf mmap_jmpbuf;
-struct sigaction mmap_old_sigact;
-
-extern "C" {
- static void mmap_sigbus_handler(int)
- {
- siglongjmp (mmap_jmpbuf, 1);
- }
-}
-#endif
-#endif
-
extern bool kde_kiosk_exception;
void TDEConfigINIBackEnd::parseSingleConfigFile(TQFile &rFile,
KEntryMap *pWriteBackMap,
bool bGlobal, bool bDefault)
{
- const char *s; // May get clobbered by sigsetjump, but we don't use them afterwards.
- const char *eof; // May get clobbered by sigsetjump, but we don't use them afterwards.
- TQByteArray data;
-
if (!rFile.isOpen()) // come back, if you have real work for us ;->
return;
- //using kdDebug() here leads to an infinite loop
- //remove this for the release, aleXXX
- //tqWarning("Parsing %s, global = %s default = %s",
- // rFile.name().latin1(), bGlobal ? "true" : "false", bDefault ? "true" : "false");
-
TQCString aCurrentGroup("<default>");
unsigned int ll = localeString.length();
-#ifdef HAVE_MMAP
- static volatile const char *map;
- map = ( const char* ) mmap(0, rFile.size(), PROT_READ, MAP_PRIVATE,
- rFile.handle(), 0);
-
- if ( map != MAP_FAILED )
- {
- s = (const char*) map;
- eof = s + rFile.size();
-
-#ifdef SIGBUS
- struct sigaction act;
- act.sa_handler = mmap_sigbus_handler;
- sigemptyset( &act.sa_mask );
-#ifdef SA_ONESHOT
- act.sa_flags = SA_ONESHOT;
-#else
- act.sa_flags = SA_RESETHAND;
-#endif
- sigaction( SIGBUS, &act, &mmap_old_sigact );
-
- if (sigsetjmp (mmap_jmpbuf, 1))
- {
-tqWarning("SIGBUS while reading %s", rFile.name().latin1());
- munmap(( char* )map, rFile.size());
- sigaction (SIGBUS, &mmap_old_sigact, 0);
- return;
- }
-#endif
- }
- else
-#endif
- {
- rFile.at(0);
- data = rFile.readAll();
- s = data.data();
- eof = s + data.size();
- }
+ rFile.at(0);
+ TQByteArray data = rFile.readAll();
+ const char *s = data.data();
+ const char *eof = s + data.size();
bool fileOptionImmutable = false;
bool groupOptionImmutable = false;
@@ -757,19 +700,8 @@ tqWarning("SIGBUS while reading %s", rFile.name().latin1());
}
}
-
if (fileOptionImmutable)
bFileImmutable = true;
-
-#ifdef HAVE_MMAP
- if (map)
- {
- munmap(( char* )map, rFile.size());
-#ifdef SIGBUS
- sigaction (SIGBUS, &mmap_old_sigact, 0);
-#endif
- }
-#endif
}
void TDEConfigINIBackEnd::translateKey(TDELocale& locale, TQCString currentGroup, TQCString key) {
@@ -1178,7 +1110,7 @@ bool TDEConfigBackEnd::checkConfigFilesWritable(bool warnUser)
// Note: We don't ask the user if we should not ask this question again because we can't save the answer.
errorMsg += i18n("Please contact your system administrator.");
TQString cmdToExec = TDEStandardDirs::findExe(TQString("kdialog"));
- TDEApplication *app = kapp;
+ TDEApplication *app = tdeApp;
if (!cmdToExec.isEmpty() && app)
{
TDEProcess lprocess;
diff --git a/tdecore/tdeconfigbackend.h b/tdecore/tdeconfigbackend.h
index c4149a69c..ab74f927f 100644
--- a/tdecore/tdeconfigbackend.h
+++ b/tdecore/tdeconfigbackend.h
@@ -159,7 +159,7 @@ private:
/**
* @deprecated Use fileName() instead
*/
- KDE_DEPRECATED TQString filename() const { return mfileName; }
+ TDE_DEPRECATED TQString filename() const { return mfileName; }
protected:
TDEConfigBase *pConfig;
diff --git a/tdecore/tdeconfigbase.cpp b/tdecore/tdeconfigbase.cpp
index 417999df6..3f44fbc7e 100644
--- a/tdecore/tdeconfigbase.cpp
+++ b/tdecore/tdeconfigbase.cpp
@@ -35,7 +35,7 @@
#include "tdeconfigbase.h"
#include "tdeconfigbackend.h"
#include "kdebug.h"
-#include "kstandarddirs.h"
+#include "tdestandarddirs.h"
#include "kstringhandler.h"
class TDEConfigBase::TDEConfigBasePrivate
@@ -435,7 +435,7 @@ TQVariant TDEConfigBase::readPropertyEntry( const char *pKey,
case TQVariant::DateTime:
return TQVariant( readDateTimeEntry( pKey, &tmp.asDateTime() ) );
case TQVariant::Date:
- return TQVariant(TQT_TQDATE_OBJECT(readDateTimeEntry( pKey, &tmp.asDateTime() ).date()));
+ return TQVariant(readDateTimeEntry( pKey, &tmp.asDateTime() ).date());
case TQVariant::Pixmap:
case TQVariant::Image:
@@ -451,34 +451,10 @@ TQVariant TDEConfigBase::readPropertyEntry( const char *pKey,
case TQVariant::Cursor:
case TQVariant::SizePolicy:
case TQVariant::Time:
-#ifdef USE_QT3
case TQVariant::ByteArray:
-#endif // USE_QT3
case TQVariant::BitArray:
case TQVariant::KeySequence:
case TQVariant::Pen:
-#ifdef USE_QT4
- case TQVariant::Char:
- case TQVariant::Url:
- case TQVariant::Locale:
- case TQVariant::RectF:
- case TQVariant::SizeF:
- case TQVariant::Line:
- case TQVariant::LineF:
- case TQVariant::PointF:
- case TQVariant::RegExp:
- case TQVariant::Hash:
- case TQVariant::TextLength:
- case QVariant::TextFormat:
- case TQVariant::Matrix:
- case TQVariant::Transform:
- case TQVariant::Matrix4x4:
- case TQVariant::Vector2D:
- case TQVariant::Vector3D:
- case TQVariant::Vector4D:
- case TQVariant::Quaternion:
- case TQVariant::UserType:
-#endif // USE_QT4
{
break;
}
@@ -983,7 +959,7 @@ TQColor TDEConfigBase::readColorEntry( const char *pKey,
TQString aValue = readEntry( pKey );
if( !aValue.isEmpty() )
{
- if ( aValue.at(0) == (QChar)'#' )
+ if ( aValue.at(0) == (TQChar)'#' )
{
aRetColor.setNamedColor(aValue);
}
@@ -1124,7 +1100,7 @@ void TDEConfigBase::writePathEntry( const TQString& pKey, const TQString & path,
static bool cleanHomeDirPath( TQString &path, const TQString &homeDir )
{
-#ifdef Q_WS_WIN //safer
+#ifdef TQ_WS_WIN //safer
if (!TQDir::convertSeparators(path).startsWith(TQDir::convertSeparators(homeDir)))
return false;
#else
@@ -1378,34 +1354,10 @@ void TDEConfigBase::writeEntry ( const char *pKey, const TQVariant &prop,
case TQVariant::Cursor:
case TQVariant::SizePolicy:
case TQVariant::Time:
-#ifdef USE_QT3
case TQVariant::ByteArray:
-#endif // USE_QT3
case TQVariant::BitArray:
case TQVariant::KeySequence:
case TQVariant::Pen:
-#ifdef USE_QT4
- case TQVariant::Char:
- case TQVariant::Url:
- case TQVariant::Locale:
- case TQVariant::RectF:
- case TQVariant::SizeF:
- case TQVariant::Line:
- case TQVariant::LineF:
- case TQVariant::PointF:
- case TQVariant::RegExp:
- case TQVariant::Hash:
- case TQVariant::TextLength:
- case QVariant::TextFormat:
- case TQVariant::Matrix:
- case TQVariant::Transform:
- case TQVariant::Matrix4x4:
- case TQVariant::Vector2D:
- case TQVariant::Vector3D:
- case TQVariant::Vector4D:
- case TQVariant::Quaternion:
- case TQVariant::UserType:
-#endif // USE_QT4
{
break;
}
@@ -1449,7 +1401,7 @@ void TDEConfigBase::writeEntry ( const char *pKey, const TQStrList &list,
}
str_list += sep;
}
- if( str_list.at(str_list.length() - 1) == (QChar)sep )
+ if( str_list.at(str_list.length() - 1) == (TQChar)sep )
str_list.truncate( str_list.length() -1 );
writeEntry( pKey, str_list, bPersistent, bGlobal, bNLS );
}
@@ -1493,7 +1445,7 @@ void TDEConfigBase::writeEntry ( const char *pKey, const TQStringList &list,
}
str_list += sep;
}
- if( str_list.at(str_list.length() - 1) == (QChar)sep )
+ if( str_list.at(str_list.length() - 1) == (TQChar)sep )
str_list.truncate( str_list.length() -1 );
writeEntry( pKey, str_list, bPersistent, bGlobal, bNLS, bExpand );
}
@@ -1757,8 +1709,8 @@ void TDEConfigBase::writeEntry( const char *pKey, const TQDateTime& rDateTime,
TQStrList list;
TQCString tempstr;
- TQTime time = TQT_TQTIME_OBJECT(rDateTime.time());
- TQDate date = TQT_TQDATE_OBJECT(rDateTime.date());
+ TQTime time = rDateTime.time();
+ TQDate date = rDateTime.date();
list.insert( 0, tempstr.setNum( date.year() ) );
list.insert( 1, tempstr.setNum( date.month() ) );
diff --git a/tdecore/tdeconfigbase.h b/tdecore/tdeconfigbase.h
index a891409e7..d05064e73 100644
--- a/tdecore/tdeconfigbase.h
+++ b/tdecore/tdeconfigbase.h
@@ -45,7 +45,7 @@ class TDEConfigGroup;
* This class forms the base for all %KDE configuration. It is an
* abstract base class, meaning that you cannot directly instantiate
* objects of this class. Either use TDEConfig (for usual %KDE
- * configuration) or KSimpleConfig (for special needs as in ksamba), or
+ * configuration) or TDESimpleConfig (for special needs as in ksamba), or
* even TDESharedConfig (stores values in shared memory).
*
* All configuration entries are key, value pairs. Each entry also
@@ -64,12 +64,12 @@ class TDEConfigGroup;
* @author Kalle Dalheimer <kalle@kde.org>, Preston Brown <pbrown@kde.org>
* @see TDEGlobal#config()
* @see TDEConfig
- * @see KSimpleConfig
+ * @see TDESimpleConfig
* @see TDESharedConfig
*/
class TDECORE_EXPORT TDEConfigBase : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
friend class TDEConfigBackEnd;
@@ -1885,7 +1885,7 @@ public:
* If an application computes a default value at runtime for
* a certain entry, e.g. like:
* \code
- * TQColor computedDefault = kapp->palette().color(TQPalette::Active, TQColorGroup::Text)
+ * TQColor computedDefault = tdeApp->palette().color(TQPalette::Active, TQColorGroup::Text)
* TQColor color = config->readEntry(key, computedDefault);
* \encode
*
@@ -2025,7 +2025,7 @@ protected:
bool bDirty;
bool bLocaleInitialized;
- bool bReadOnly; // currently only used by KSimpleConfig
+ bool bReadOnly; // currently only used by TDESimpleConfig
mutable bool bExpand; // whether dollar expansion is used
protected:
@@ -2044,11 +2044,11 @@ private:
class TDEConfigGroupSaverPrivate;
/**
- * Helper class to facilitate working with TDEConfig / KSimpleConfig
+ * Helper class to facilitate working with TDEConfig / TDESimpleConfig
* groups.
*
* Careful programmers always set the group of a
- * TDEConfig KSimpleConfig object to the group they want to read from
+ * TDEConfig TDESimpleConfig object to the group they want to read from
* and set it back to the old one of afterwards. This is usually
* written as:
* \code
@@ -2075,8 +2075,8 @@ class TDEConfigGroupSaverPrivate;
* way.
*
* @author Matthias Kalle Dalheimer <kalle@kde.org>
- * @see TDEConfigBase, TDEConfig, KSimpleConfig, TDEConfigGroup
- * @short Helper class for easier use of TDEConfig/KSimpleConfig groups
+ * @see TDEConfigBase, TDEConfig, TDESimpleConfig, TDEConfigGroup
+ * @short Helper class for easier use of TDEConfig/TDESimpleConfig groups
*/
class TDECORE_EXPORT TDEConfigGroupSaver // KDE4 remove
diff --git a/tdecore/tdeconfigdialogmanager.cpp b/tdecore/tdeconfigdialogmanager.cpp
index 9578c05c1..3864dcdd6 100644
--- a/tdecore/tdeconfigdialogmanager.cpp
+++ b/tdecore/tdeconfigdialogmanager.cpp
@@ -53,7 +53,7 @@ TDEConfigDialogManager::TDEConfigDialogManager(TQWidget *parent, TDEConfigSkelet
{
d = new Private();
- kapp->installKDEPropertyMap();
+ tdeApp->installKDEPropertyMap();
propertyMap = TQSqlPropertyMap::defaultMap();
init(true);
@@ -69,52 +69,52 @@ void TDEConfigDialogManager::init(bool trackChanges)
if(trackChanges)
{
// QT
- changedMap.insert(TQBUTTON_OBJECT_NAME_STRING, TQT_SIGNAL(stateChanged(int)));
- changedMap.insert(TQCHECKBOX_OBJECT_NAME_STRING, TQT_SIGNAL(stateChanged(int)));
- changedMap.insert(TQPUSHBUTTON_OBJECT_NAME_STRING, TQT_SIGNAL(stateChanged(int)));
- changedMap.insert(TQRADIOBUTTON_OBJECT_NAME_STRING, TQT_SIGNAL(stateChanged(int)));
+ changedMap.insert("TQButton", TQ_SIGNAL(stateChanged(int)));
+ changedMap.insert("TQCheckBox", TQ_SIGNAL(stateChanged(int)));
+ changedMap.insert("TQPushButton", TQ_SIGNAL(stateChanged(int)));
+ changedMap.insert("TQRadioButton", TQ_SIGNAL(stateChanged(int)));
// We can only store one thing, so you can't have
// a ButtonGroup that is checkable.
- changedMap.insert(TQBUTTONGROUP_OBJECT_NAME_STRING, TQT_SIGNAL(clicked(int)));
- changedMap.insert(TQGROUPBOX_OBJECT_NAME_STRING, TQT_SIGNAL(toggled(bool)));
- changedMap.insert(TQCOMBOBOX_OBJECT_NAME_STRING, TQT_SIGNAL(activated (int)));
+ changedMap.insert("TQButtonGroup", TQ_SIGNAL(clicked(int)));
+ changedMap.insert("TQGroupBox", TQ_SIGNAL(toggled(bool)));
+ changedMap.insert("TQComboBox", TQ_SIGNAL(activated (int)));
//qsqlproperty map doesn't store the text, but the value!
- //changedMap.insert(TQCOMBOBOX_OBJECT_NAME_STRING, TQT_SIGNAL(textChanged(const TQString &)));
- changedMap.insert(TQDATEEDIT_OBJECT_NAME_STRING, TQT_SIGNAL(valueChanged(const TQDate &)));
- changedMap.insert(TQDATETIMEEDIT_OBJECT_NAME_STRING, TQT_SIGNAL(valueChanged(const TQDateTime &)));
- changedMap.insert(TQDIAL_OBJECT_NAME_STRING, TQT_SIGNAL(valueChanged (int)));
- changedMap.insert(TQLINEEDIT_OBJECT_NAME_STRING, TQT_SIGNAL(textChanged(const TQString &)));
- changedMap.insert(TQSLIDER_OBJECT_NAME_STRING, TQT_SIGNAL(valueChanged(int)));
- changedMap.insert(TQSPINBOX_OBJECT_NAME_STRING, TQT_SIGNAL(valueChanged(int)));
- changedMap.insert(TQTIMEEDIT_OBJECT_NAME_STRING, TQT_SIGNAL(valueChanged(const TQTime &)));
- changedMap.insert(TQTEXTEDIT_OBJECT_NAME_STRING, TQT_SIGNAL(textChanged()));
- changedMap.insert(TQTEXTBROWSER_OBJECT_NAME_STRING, TQT_SIGNAL(sourceChanged(const TQString &)));
- changedMap.insert(TQMULTILINEEDIT_OBJECT_NAME_STRING, TQT_SIGNAL(textChanged()));
- changedMap.insert(TQLISTBOX_OBJECT_NAME_STRING, TQT_SIGNAL(selectionChanged()));
- changedMap.insert(TQTABWIDGET_OBJECT_NAME_STRING, TQT_SIGNAL(currentChanged(TQWidget *)));
+ //changedMap.insert("TQComboBox", TQ_SIGNAL(textChanged(const TQString &)));
+ changedMap.insert("TQDateEdit", TQ_SIGNAL(valueChanged(const TQDate &)));
+ changedMap.insert("TQDateTimeEdit", TQ_SIGNAL(valueChanged(const TQDateTime &)));
+ changedMap.insert("TQDial", TQ_SIGNAL(valueChanged (int)));
+ changedMap.insert("TQLineEdit", TQ_SIGNAL(textChanged(const TQString &)));
+ changedMap.insert("TQSlider", TQ_SIGNAL(valueChanged(int)));
+ changedMap.insert("TQSpinBox", TQ_SIGNAL(valueChanged(int)));
+ changedMap.insert("TQTimeEdit", TQ_SIGNAL(valueChanged(const TQTime &)));
+ changedMap.insert("TQTextEdit", TQ_SIGNAL(textChanged()));
+ changedMap.insert("TQTextBrowser", TQ_SIGNAL(sourceChanged(const TQString &)));
+ changedMap.insert("TQMultiLineEdit", TQ_SIGNAL(textChanged()));
+ changedMap.insert("TQListBox", TQ_SIGNAL(selectionChanged()));
+ changedMap.insert("TQTabWidget", TQ_SIGNAL(currentChanged(TQWidget *)));
// KDE
- changedMap.insert( "KComboBox", TQT_SIGNAL(activated (int)));
- changedMap.insert( "TDEFontCombo", TQT_SIGNAL(activated (int)));
- changedMap.insert( "TDEFontRequester", TQT_SIGNAL(fontSelected(const TQFont &)));
- changedMap.insert( "TDEFontChooser", TQT_SIGNAL(fontSelected(const TQFont &)));
- changedMap.insert( "KHistoryCombo", TQT_SIGNAL(activated (int)));
-
- changedMap.insert( "KColorButton", TQT_SIGNAL(changed(const TQColor &)));
- changedMap.insert( "KDatePicker", TQT_SIGNAL(dateSelected (TQDate)));
- changedMap.insert( "KDateWidget", TQT_SIGNAL(changed (TQDate)));
- changedMap.insert( "KDateTimeWidget", TQT_SIGNAL(valueChanged (const TQDateTime &)));
- changedMap.insert( "KEditListBox", TQT_SIGNAL(changed()));
- changedMap.insert( "TDEListBox", TQT_SIGNAL(selectionChanged()));
- changedMap.insert( "KLineEdit", TQT_SIGNAL(textChanged(const TQString &)));
- changedMap.insert( "KPasswordEdit", TQT_SIGNAL(textChanged(const TQString &)));
- changedMap.insert( "KRestrictedLine", TQT_SIGNAL(textChanged(const TQString &)));
- changedMap.insert( "KTextBrowser", TQT_SIGNAL(sourceChanged(const TQString &)));
- changedMap.insert( "KTextEdit", TQT_SIGNAL(textChanged()));
- changedMap.insert( "KURLRequester", TQT_SIGNAL(textChanged (const TQString& )));
- changedMap.insert( "KIntNumInput", TQT_SIGNAL(valueChanged (int)));
- changedMap.insert( "KIntSpinBox", TQT_SIGNAL(valueChanged (int)));
- changedMap.insert( "KDoubleNumInput", TQT_SIGNAL(valueChanged (double)));
+ changedMap.insert( "KComboBox", TQ_SIGNAL(activated (int)));
+ changedMap.insert( "TDEFontCombo", TQ_SIGNAL(activated (int)));
+ changedMap.insert( "TDEFontRequester", TQ_SIGNAL(fontSelected(const TQFont &)));
+ changedMap.insert( "TDEFontChooser", TQ_SIGNAL(fontSelected(const TQFont &)));
+ changedMap.insert( "KHistoryCombo", TQ_SIGNAL(activated (int)));
+
+ changedMap.insert( "KColorButton", TQ_SIGNAL(changed(const TQColor &)));
+ changedMap.insert( "KDatePicker", TQ_SIGNAL(dateSelected (TQDate)));
+ changedMap.insert( "KDateWidget", TQ_SIGNAL(changed (TQDate)));
+ changedMap.insert( "KDateTimeWidget", TQ_SIGNAL(valueChanged (const TQDateTime &)));
+ changedMap.insert( "KEditListBox", TQ_SIGNAL(changed()));
+ changedMap.insert( "TDEListBox", TQ_SIGNAL(selectionChanged()));
+ changedMap.insert( "KLineEdit", TQ_SIGNAL(textChanged(const TQString &)));
+ changedMap.insert( "KPasswordEdit", TQ_SIGNAL(textChanged(const TQString &)));
+ changedMap.insert( "KRestrictedLine", TQ_SIGNAL(textChanged(const TQString &)));
+ changedMap.insert( "KTextBrowser", TQ_SIGNAL(sourceChanged(const TQString &)));
+ changedMap.insert( "KTextEdit", TQ_SIGNAL(textChanged()));
+ changedMap.insert( "KURLRequester", TQ_SIGNAL(textChanged (const TQString& )));
+ changedMap.insert( "KIntNumInput", TQ_SIGNAL(valueChanged (int)));
+ changedMap.insert( "KIntSpinBox", TQ_SIGNAL(valueChanged (int)));
+ changedMap.insert( "KDoubleNumInput", TQ_SIGNAL(valueChanged (double)));
}
// Go through all of the children of the widgets and find all known widgets
@@ -187,8 +187,8 @@ bool TDEConfigDialogManager::parseChildren(const TQWidget *widget, bool trackCha
{
// If the class name of the widget wasn't in the monitored widgets map, then look for
// it again using the super class name. This fixes a problem with using QtRuby/Korundum
- // widgets with TDEConfigXT where 'Qt::Widget' wasn't being seen a the real deal, even
- // though it was a 'QWidget'.
+ // widgets with TDEConfigXT where 'TQt::Widget' wasn't being seen a the real deal, even
+ // though it was a 'TQWidget'.
changedIt = changedMap.find(childWidget->metaObject()->superClassName());
}
@@ -199,7 +199,7 @@ bool TDEConfigDialogManager::parseChildren(const TQWidget *widget, bool trackCha
else
{
connect(childWidget, *changedIt,
- this, TQT_SIGNAL(widgetModified()));
+ this, TQ_SIGNAL(widgetModified()));
TQGroupBox *gb = dynamic_cast<TQGroupBox *>(childWidget);
if (!gb)
@@ -209,8 +209,8 @@ bool TDEConfigDialogManager::parseChildren(const TQWidget *widget, bool trackCha
TQComboBox *cb = dynamic_cast<TQComboBox *>(childWidget);
if (cb && cb->editable())
- connect(cb, TQT_SIGNAL(textChanged(const TQString &)),
- this, TQT_SIGNAL(widgetModified()));
+ connect(cb, TQ_SIGNAL(textChanged(const TQString &)),
+ this, TQ_SIGNAL(widgetModified()));
}
}
else
@@ -218,7 +218,7 @@ bool TDEConfigDialogManager::parseChildren(const TQWidget *widget, bool trackCha
kdWarning(178) << "A widget named '" << widgetName << "' was found but there is no setting named '" << configId << "'" << endl;
}
}
- else if (childWidget->inherits(TQLABEL_OBJECT_NAME_STRING))
+ else if (childWidget->inherits("TQLabel"))
{
TQLabel *label = static_cast<TQLabel *>(childWidget);
TQWidget *buddy = label->buddy();
@@ -238,8 +238,8 @@ bool TDEConfigDialogManager::parseChildren(const TQWidget *widget, bool trackCha
TQMap<TQString, TQCString>::const_iterator changedIt = changedMap.find(childWidget->className());
if (changedIt != changedMap.end())
{
- if ((!d->insideGroupBox || !childWidget->inherits(TQRADIOBUTTON_OBJECT_NAME_STRING)) &&
- !childWidget->inherits(TQGROUPBOX_OBJECT_NAME_STRING))
+ if ((!d->insideGroupBox || !childWidget->inherits("TQRadioButton")) &&
+ !childWidget->inherits("TQGroupBox"))
kdDebug(178) << "Widget '" << widgetName << "' (" << childWidget->className() << ") remains unmanaged." << endl;
}
}
@@ -291,7 +291,7 @@ void TDEConfigDialogManager::updateWidgets()
blockSignals(bSignalsBlocked);
if (changed)
- TQTimer::singleShot(0, this, TQT_SIGNAL(widgetModified()));
+ TQTimer::singleShot(0, this, TQ_SIGNAL(widgetModified()));
}
void TDEConfigDialogManager::updateWidgetsDefault()
diff --git a/tdecore/tdeconfigdialogmanager.h b/tdecore/tdeconfigdialogmanager.h
index ecb3640ea..8f142f1f9 100644
--- a/tdecore/tdeconfigdialogmanager.h
+++ b/tdecore/tdeconfigdialogmanager.h
@@ -63,7 +63,7 @@ class TQSqlPropertyMap;
* To add KColorButton the following code would be inserted in the main.
*
* \code
- * kapp->installKDEPropertyMap();
+ * tdeApp->installKDEPropertyMap();
* TQSqlPropertyMap *map = TQSqlPropertyMap::defaultMap();
* map->insert("KColorButton", "color");
* \endcode
@@ -77,7 +77,7 @@ class TQSqlPropertyMap;
*/
class TDECORE_EXPORT TDEConfigDialogManager : public TQObject {
-Q_OBJECT
+TQ_OBJECT
signals:
/**
diff --git a/tdecore/tdeconfigskeleton.cpp b/tdecore/tdeconfigskeleton.cpp
index 03dac6156..dafe485fc 100644
--- a/tdecore/tdeconfigskeleton.cpp
+++ b/tdecore/tdeconfigskeleton.cpp
@@ -23,7 +23,7 @@
#include <tqvariant.h>
#include <tdeconfig.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeglobal.h>
#include <tdeglobalsettings.h>
#include <kdebug.h>
diff --git a/tdecore/tdeconfigskeleton.h b/tdecore/tdeconfigskeleton.h
index 825c74400..d1c2f5a33 100644
--- a/tdecore/tdeconfigskeleton.h
+++ b/tdecore/tdeconfigskeleton.h
@@ -791,7 +791,7 @@ public:
* Constructor.
*
* @param configname name of config file. If no name is given, the default
- * config file as returned by kapp()->config() is used.
+ * config file as returned by tdeApp()->config() is used.
*/
TDEConfigSkeleton(const TQString & configname = TQString::null);
diff --git a/tdecore/kcrash.cpp b/tdecore/tdecrash.cpp
index 6fb5e8ff7..b1dc62957 100644
--- a/tdecore/kcrash.cpp
+++ b/tdecore/tdecrash.cpp
@@ -1,5 +1,5 @@
/*
- * This file is part of the KDE Libraries
+ * This file is part of the TDE Libraries
* Copyright (C) 2000 Timo Hummel <timo.hummel@sap.com>
* Tom Braun <braunt@fh-konstanz.de>
*
@@ -33,7 +33,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
-#include "kcrash.h"
+#include "tdecrash.h"
#include <sys/types.h>
#include <sys/time.h>
@@ -45,7 +45,7 @@
#include <tqwindowdefs.h>
#include <tdeglobal.h>
-#include <kinstance.h>
+#include <tdeinstance.h>
#include <tdeaboutdata.h>
#include <kdebug.h>
#include <tdeapplication.h>
@@ -53,7 +53,7 @@
#include <../tdeinit/tdelauncher_cmds.h>
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
#include <X11/Xlib.h>
#endif
@@ -148,10 +148,10 @@ TDECrash::defaultCrashHandler (int sig)
if (appName)
{
#ifndef NDEBUG
- fprintf(stderr, "[kcrash] TDECrash: crashing... crashRecursionCounter = %d\n", crashRecursionCounter);
- fprintf(stderr, "[kcrash] TDECrash: Application Name = %s path = %s pid = %d\n", appName ? appName : "<unknown>" , appPath ? appPath : "<unknown>", getpid());
+ fprintf(stderr, "[tdecrash] TDECrash: crashing... crashRecursionCounter = %d\n", crashRecursionCounter);
+ fprintf(stderr, "[tdecrash] TDECrash: Application Name = %s path = %s pid = %d\n", appName ? appName : "<unknown>" , appPath ? appPath : "<unknown>", getpid());
#else
- fprintf(stderr, "[kcrash] TDECrash: Application '%s' crashing...\n", appName ? appName : "<unknown>");
+ fprintf(stderr, "[tdecrash] TDECrash: Application '%s' crashing...\n", appName ? appName : "<unknown>");
#endif
const char * argv[24]; // don't forget to update this
@@ -160,14 +160,14 @@ TDECrash::defaultCrashHandler (int sig)
// argument 0 has to be drkonqi
argv[i++] = "drkonqi";
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
// start up on the correct display
argv[i++] = "-display";
if ( tqt_xdisplay() )
argv[i++] = XDisplayString(tqt_xdisplay());
else
argv[i++] = getenv("DISPLAY");
-#elif defined(Q_WS_QWS)
+#elif defined(TQ_WS_QWS)
// start up on the correct display
argv[i++] = "-display";
argv[i++] = getenv("QWS_DISPLAY");
@@ -215,9 +215,9 @@ TDECrash::defaultCrashHandler (int sig)
}
}
- if ( kapp && !kapp->startupId().isNull()) {
+ if ( tdeApp && !tdeApp->startupId().isNull()) {
argv[i++] = "--startupid";
- argv[i++] = kapp->startupId().data();
+ argv[i++] = tdeApp->startupId().data();
}
if ( safer )
@@ -231,13 +231,13 @@ TDECrash::defaultCrashHandler (int sig)
}
else {
- fprintf(stderr, "[kcrash] Unknown appname\n");
+ fprintf(stderr, "[tdecrash] Unknown appname\n");
}
}
if (crashRecursionCounter < 4)
{
- fprintf(stderr, "[kcrash] Unable to start Dr. Konqi\n");
+ fprintf(stderr, "[tdecrash] Unable to start Dr. Konqi\n");
}
#endif //Q_OS_UNIX
@@ -277,7 +277,7 @@ void TDECrash::startDrKonqi( const char* argv[], int argc )
int len = strlen( argv[ i ] ) + 1; // include terminating \0
if( pos + len > BUFSIZE )
{
- fprintf( stderr, "[kcrash] BUFSIZE in TDECrash not big enough!\n" );
+ fprintf( stderr, "[tdecrash] BUFSIZE in TDECrash not big enough!\n" );
startDirectly( argv, argc );
return;
}
@@ -317,7 +317,7 @@ void TDECrash::startDrKonqi( const char* argv[], int argc )
// If we can't reach tdeinit we can still at least try to fork()
void TDECrash::startDirectly( const char* argv[], int )
{
- fprintf( stderr, "[kcrash] TDECrash cannot reach tdeinit, launching directly.\n" );
+ fprintf( stderr, "[tdecrash] TDECrash cannot reach tdeinit, launching directly.\n" );
pid_t pid = fork();
if (pid <= 0)
{
@@ -351,9 +351,9 @@ static char *getDisplay()
/*
don't test for a value from tqglobal.h but instead distinguish
Qt/X11 from Qt/Embedded by the fact that Qt/E apps have -DQWS
- on the commandline (which in tqglobal.h however triggers Q_WS_QWS,
+ on the commandline (which in tqglobal.h however triggers TQ_WS_QWS,
but we don't want to include that here) (Simon)
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
*/
#if !defined(QWS)
display = getenv("DISPLAY");
@@ -448,12 +448,12 @@ static int openSocket()
{
if (!home_dir || !home_dir[0])
{
- fprintf(stderr, "[kcrash] Warning: $HOME not set!\n");
+ fprintf(stderr, "[tdecrash] Warning: $HOME not set!\n");
return -1;
}
if (strlen(home_dir) > (MAX_SOCK_FILE-100))
{
- fprintf(stderr, "[kcrash] Warning: Home directory path too long!\n");
+ fprintf(stderr, "[tdecrash] Warning: Home directory path too long!\n");
return -1;
}
kde_home++;
@@ -470,7 +470,7 @@ static int openSocket()
strncat(sock_file, getenv("XAUTHLOCALHOSTNAME"), MAX_SOCK_FILE - strlen(sock_file) - 1);
else if (gethostname(sock_file+strlen(sock_file), MAX_SOCK_FILE - strlen(sock_file) - 1) != 0)
{
- perror("[kcrash] Warning: Could not determine hostname: ");
+ perror("[tdecrash] Warning: Could not determine hostname: ");
return -1;
}
sock_file[sizeof(sock_file)-1] = '\0';
@@ -479,13 +479,13 @@ static int openSocket()
display = getDisplay();
if (display == NULL)
{
- fprintf(stderr, "[kcrash] Error: Could not determine display.\n");
+ fprintf(stderr, "[tdecrash] Error: Could not determine display.\n");
return -1;
}
if (strlen(sock_file)+strlen(display)+strlen("/tdeinit_")+2 > MAX_SOCK_FILE)
{
- fprintf(stderr, "[kcrash] Warning: Socket name will be too long.\n");
+ fprintf(stderr, "[tdecrash] Warning: Socket name will be too long.\n");
free(display);
return -1;
}
@@ -495,7 +495,7 @@ static int openSocket()
if (strlen(sock_file) >= sizeof(server.sun_path))
{
- fprintf(stderr, "[kcrash] Warning: Path of socketfile exceeds UNIX_PATH_MAX.\n");
+ fprintf(stderr, "[tdecrash] Warning: Path of socketfile exceeds UNIX_PATH_MAX.\n");
return -1;
}
@@ -505,7 +505,7 @@ static int openSocket()
s = socket(PF_UNIX, SOCK_STREAM, 0);
if (s < 0)
{
- perror("[kcrash] Warning: socket creation failed: ");
+ perror("[tdecrash] Warning: socket creation failed: ");
return -1;
}
@@ -514,7 +514,7 @@ static int openSocket()
socklen = sizeof(server);
if(connect(s, (struct sockaddr *)&server, socklen) == -1)
{
- perror("[kcrash] Warning: socket connection failed: ");
+ perror("[tdecrash] Warning: socket connection failed: ");
close(s);
return -1;
}
diff --git a/tdecore/kcrash.h b/tdecore/tdecrash.h
index 0ea938bfe..68caf6dd8 100644
--- a/tdecore/kcrash.h
+++ b/tdecore/tdecrash.h
@@ -1,5 +1,5 @@
/*
- * This file is part of the KDE Libraries
+ * This file is part of the TDE Libraries
* Copyright (C) 2000 Timo Hummel <timo.hummel@sap.com>
* Tom Braun <braunt@fh-konstanz.de>
* This library is free software; you can redistribute it and/or
@@ -19,8 +19,8 @@
*
*/
-#ifndef __KCRASH_H
-#define __KCRASH_H
+#ifndef __TDECRASH_H
+#define __TDECRASH_H
#include <tqstring.h>
#include "tdelibs_export.h"
@@ -98,7 +98,7 @@ class TDECORE_EXPORT TDECrash
* @param path the application path.
*/
static void setApplicationPath (TQString path) { appPath = tqstrdup(path.local8Bit().data()); }
- /* KDE 4: Make it const TQString & */
+ /* Future: Make it const TQString & */
/**
* Sets the application name @p name which should be passed to
@@ -106,7 +106,7 @@ class TDECORE_EXPORT TDECrash
* @param name the name of the application, as shown in Dr. Konqi
*/
static void setApplicationName (TQString name) { appName = tqstrdup(name.local8Bit().data()); }
- /* KDE 4: Make it const TQString & */
+ /* Future: Make it const TQString & */
protected:
/**
diff --git a/tdecore/kdesktopfile.cpp b/tdecore/tdedesktopfile.cpp
index fa1626701..7bb9bcbe2 100644
--- a/tdecore/kdesktopfile.cpp
+++ b/tdecore/tdedesktopfile.cpp
@@ -32,15 +32,15 @@
#include "kurl.h"
#include "tdeconfigbackend.h"
#include "tdeapplication.h"
-#include "kstandarddirs.h"
+#include "tdestandarddirs.h"
#include "kmountpoint.h"
#include "kcatalogue.h"
#include "tdelocale.h"
-#include "kdesktopfile.h"
-#include "kdesktopfile.moc"
+#include "tdedesktopfile.h"
+#include "tdedesktopfile.moc"
-KDesktopFile::KDesktopFile(const TQString &fileName, bool bReadOnly,
+TDEDesktopFile::TDEDesktopFile(const TQString &fileName, bool bReadOnly,
const char * resType)
: TDEConfig(TQString::fromLatin1(""), bReadOnly, false)
{
@@ -53,12 +53,12 @@ KDesktopFile::KDesktopFile(const TQString &fileName, bool bReadOnly,
setDesktopGroup();
}
-KDesktopFile::~KDesktopFile()
+TDEDesktopFile::~TDEDesktopFile()
{
// no need to do anything
}
-TQString KDesktopFile::locateLocal(const TQString &path)
+TQString TDEDesktopFile::locateLocal(const TQString &path)
{
TQString local;
if (path.endsWith(".directory"))
@@ -110,7 +110,7 @@ TQString KDesktopFile::locateLocal(const TQString &path)
return local;
}
-bool KDesktopFile::isDesktopFile(const TQString& path)
+bool TDEDesktopFile::isDesktopFile(const TQString& path)
{
int len = path.length();
@@ -122,9 +122,9 @@ bool KDesktopFile::isDesktopFile(const TQString& path)
return false;
}
-bool KDesktopFile::isAuthorizedDesktopFile(const TQString& path)
+bool TDEDesktopFile::isAuthorizedDesktopFile(const TQString& path)
{
- if (!kapp || kapp->authorize("run_desktop_files"))
+ if (!tdeApp || tdeApp->authorize("run_desktop_files"))
return true;
if (path.isEmpty())
@@ -147,7 +147,7 @@ bool KDesktopFile::isAuthorizedDesktopFile(const TQString& path)
return false;
}
-TQString KDesktopFile::translatedEntry(const char* key) const
+TQString TDEDesktopFile::translatedEntry(const char* key) const
{
if (hasTranslatedKey(key))
return readEntry(key);
@@ -168,42 +168,42 @@ TQString KDesktopFile::translatedEntry(const char* key) const
return TQString::null;
}
-TQString KDesktopFile::readType() const
+TQString TDEDesktopFile::readType() const
{
return readEntry("Type");
}
-TQString KDesktopFile::readIcon() const
+TQString TDEDesktopFile::readIcon() const
{
return readEntry("Icon");
}
-TQString KDesktopFile::readName() const
+TQString TDEDesktopFile::readName() const
{
return translatedEntry("Name");
}
-TQString KDesktopFile::readComment() const
+TQString TDEDesktopFile::readComment() const
{
return translatedEntry("Comment");
}
-TQString KDesktopFile::readGenericName() const
+TQString TDEDesktopFile::readGenericName() const
{
return translatedEntry("GenericName");
}
-TQString KDesktopFile::readPath() const
+TQString TDEDesktopFile::readPath() const
{
return readPathEntry("Path");
}
-TQString KDesktopFile::readDevice() const
+TQString TDEDesktopFile::readDevice() const
{
return readEntry("Dev");
}
-TQString KDesktopFile::readURL() const
+TQString TDEDesktopFile::readURL() const
{
if (hasDeviceType()) {
TQString device = readDevice();
@@ -234,43 +234,43 @@ TQString KDesktopFile::readURL() const
}
}
-TQStringList KDesktopFile::readActions() const
+TQStringList TDEDesktopFile::readActions() const
{
return readListEntry("Actions", ';');
}
-void KDesktopFile::setActionGroup(const TQString &group)
+void TDEDesktopFile::setActionGroup(const TQString &group)
{
setGroup(TQString::fromLatin1("Desktop Action ") + group);
}
-bool KDesktopFile::hasActionGroup(const TQString &group) const
+bool TDEDesktopFile::hasActionGroup(const TQString &group) const
{
return hasGroup(TQString::fromLatin1("Desktop Action ") + group);
}
-bool KDesktopFile::hasLinkType() const
+bool TDEDesktopFile::hasLinkType() const
{
return readEntry("Type") == TQString::fromLatin1("Link");
}
-bool KDesktopFile::hasApplicationType() const
+bool TDEDesktopFile::hasApplicationType() const
{
return readEntry("Type") == TQString::fromLatin1("Application");
}
-bool KDesktopFile::hasMimeTypeType() const
+bool TDEDesktopFile::hasMimeTypeType() const
{
return readEntry("Type") == TQString::fromLatin1("MimeType");
}
-bool KDesktopFile::hasDeviceType() const
+bool TDEDesktopFile::hasDeviceType() const
{
return readEntry("Type") == TQString::fromLatin1("FSDev") ||
readEntry("Type") == TQString::fromLatin1("FSDevice");
}
-bool KDesktopFile::tryExec() const
+bool TDEDesktopFile::tryExec() const
{
// Test for TryExec and "X-TDE-AuthorizeAction"
TQString te = readPathEntry("TryExec");
@@ -300,13 +300,13 @@ bool KDesktopFile::tryExec() const
}
}
TQStringList list = readListEntry("X-TDE-AuthorizeAction");
- if (kapp && !list.isEmpty())
+ if (tdeApp && !list.isEmpty())
{
for(TQStringList::ConstIterator it = list.begin();
it != list.end();
++it)
{
- if (!kapp->authorize((*it).stripWhiteSpace()))
+ if (!tdeApp->authorize((*it).stripWhiteSpace()))
return false;
}
}
@@ -320,7 +320,7 @@ bool KDesktopFile::tryExec() const
user = ::getenv("ADMIN_ACCOUNT");
if (user.isEmpty())
user = "root";
- if (!kapp->authorize("user/"+user))
+ if (!tdeApp->authorize("user/"+user))
return false;
}
else {
@@ -333,7 +333,7 @@ bool KDesktopFile::tryExec() const
user = ::getenv("ADMIN_ACCOUNT");
if (user.isEmpty())
user = "root";
- if (!kapp->authorize("user/"+user))
+ if (!tdeApp->authorize("user/"+user))
return false;
}
}
@@ -345,31 +345,31 @@ bool KDesktopFile::tryExec() const
* @return the filename as passed to the constructor.
*/
TQString
-KDesktopFile::fileName() const { return backEnd->fileName(); }
+TDEDesktopFile::fileName() const { return backEnd->fileName(); }
/**
* @return the resource type as passed to the constructor.
*/
TQString
-KDesktopFile::resource() const { return backEnd->resource(); }
+TDEDesktopFile::resource() const { return backEnd->resource(); }
TQStringList
-KDesktopFile::sortOrder() const
+TDEDesktopFile::sortOrder() const
{
return readListEntry("SortOrder");
}
-void KDesktopFile::virtual_hook( int id, void* data )
+void TDEDesktopFile::virtual_hook( int id, void* data )
{ TDEConfig::virtual_hook( id, data ); }
-TQString KDesktopFile::readDocPath() const
+TQString TDEDesktopFile::readDocPath() const
{
return readPathEntry( "X-DocPath" );
}
-KDesktopFile* KDesktopFile::copyTo(const TQString &file) const
+TDEDesktopFile* TDEDesktopFile::copyTo(const TQString &file) const
{
- KDesktopFile *config = new KDesktopFile(TQString::null, false);
+ TDEDesktopFile *config = new TDEDesktopFile(TQString::null, false);
TDEConfig::copyTo(file, config);
config->setDesktopGroup();
return config;
diff --git a/tdecore/kdesktopfile.h b/tdecore/tdedesktopfile.h
index cfdc5488c..fbda9f9fd 100644
--- a/tdecore/kdesktopfile.h
+++ b/tdecore/tdedesktopfile.h
@@ -1,4 +1,4 @@
-/* This file is part of the KDE libraries
+/* This file is part of the TDE libraries
Copyright (c) 1999 Pietro Iglio <iglio@kde.org>
This library is free software; you can redistribute it and/or
@@ -16,13 +16,13 @@
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
-#ifndef _KDESKTOPFILE_H
-#define _KDESKTOPFILE_H
+#ifndef _TDEDESKTOPFILE_H
+#define _TDEDESKTOPFILE_H
#include "tdeconfig.h"
#include "tdelibs_export.h"
-class KDesktopFilePrivate;
+class TDEDesktopFilePrivate;
/**
* KDE Desktop File Management.
@@ -31,13 +31,13 @@ class KDesktopFilePrivate;
* @see TDEConfigBase TDEConfig
* @short KDE Desktop File Management class
*/
-class TDECORE_EXPORT KDesktopFile : public TDEConfig
+class TDECORE_EXPORT TDEDesktopFile : public TDEConfig
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
- * Constructs a KDesktopFile object and make it either read-write
+ * Constructs a TDEDesktopFile object and make it either read-write
* or read-only.
*
* @param fileName The name or path of the desktop file. If it
@@ -48,15 +48,15 @@ public:
* to search for if @p fileName is not absolute. For
* instance, you might want to specify "config".
*/
- KDesktopFile( const TQString &fileName, bool readOnly = false,
+ TDEDesktopFile( const TQString &fileName, bool readOnly = false,
const char * resType = "apps");
/**
- * Destructs the KDesktopFile object.
+ * Destructs the TDEDesktopFile object.
*
* Writes back any dirty configuration entries.
*/
- virtual ~KDesktopFile();
+ virtual ~TDEDesktopFile();
/**
* Checks whether this is really a desktop file.
@@ -214,15 +214,15 @@ public:
/**
* Copies all entries from this config object to a new
- * KDesktopFile object that will save itself to @p file.
+ * TDEDesktopFile object that will save itself to @p file.
*
* Actual saving to @p file happens when the returned object is
* destructed or when sync() is called upon it.
*
- * @param file the new KDesktopFile object it will save itself to.
+ * @param file the new TDEDesktopFile object it will save itself to.
* @since 3.2
*/
- KDesktopFile* copyTo(const TQString &file) const;
+ TDEDesktopFile* copyTo(const TQString &file) const;
#ifdef KDE_NO_COMPAT
private:
@@ -230,20 +230,20 @@ private:
/**
* @deprecated Use fileName() instead.
*/
- KDE_DEPRECATED TQString filename() const { return fileName(); };
+ TDE_DEPRECATED TQString filename() const { return fileName(); };
private:
TQString translatedEntry(const char*) const;
// copy-construction and assignment are not allowed
- KDesktopFile( const KDesktopFile& );
- KDesktopFile& operator= ( const KDesktopFile& );
+ TDEDesktopFile( const TDEDesktopFile& );
+ TDEDesktopFile& operator= ( const TDEDesktopFile& );
protected:
virtual void virtual_hook( int id, void* data );
private:
- KDesktopFilePrivate *d;
+ TDEDesktopFilePrivate *d;
};
diff --git a/tdecore/tdeglobal.cpp b/tdecore/tdeglobal.cpp
index 8ef5f59db..517debcad 100644
--- a/tdecore/tdeglobal.cpp
+++ b/tdecore/tdeglobal.cpp
@@ -38,8 +38,8 @@
#include <tdehardwaredevices.h>
#include <tdenetworkconnections.h>
#endif
-#include <kstandarddirs.h>
-#include <kinstance.h>
+#include <tdestandarddirs.h>
+#include <tdeinstance.h>
#include "kstaticdeleter.h"
#include <tqfont.h>
@@ -139,7 +139,7 @@ void TDEGlobal::setActiveInstance(TDEInstance *i)
}
/**
- * Create a static QString
+ * Create a static TQString
*
* To be used inside functions(!) like:
* static const TQString &myString = TDEGlobal::staticQString("myText");
@@ -157,7 +157,7 @@ public:
};
/**
- * Create a static QString
+ * Create a static TQString
*
* To be used inside functions(!) like:
* static const TQString &myString = TDEGlobal::staticQString(i18n("My Text"));
@@ -282,3 +282,20 @@ int kasciistricmp( const char *str1, const char *str2 )
return *s1 ? res : (*s2 ? -1 : 0);
}
+char* kasciitolower( char *s )
+{
+ if ( !s )
+ return 0;
+ for ( unsigned char *p = (unsigned char *) s; *p; ++p )
+ *p = ( *p >= 'A' && *p <= 'Z' ) ? (*p - 'A' + 'a') : *p;
+ return s;
+}
+
+char* kasciitoupper( char *s )
+{
+ if ( !s )
+ return 0;
+ for ( unsigned char *p = (unsigned char *) s; *p; ++p )
+ *p = ( *p >= 'a' && *p <= 'z' ) ? (*p - 'a' + 'A') : *p;
+ return s;
+}
diff --git a/tdecore/tdeglobal.h b/tdecore/tdeglobal.h
index 1269c36a9..a8c16d3fb 100644
--- a/tdecore/tdeglobal.h
+++ b/tdecore/tdeglobal.h
@@ -19,7 +19,7 @@
#define _TDEGLOBAL_H
#include "tdelibs_export.h"
-#include <kinstance.h> // KDE4: class TDEInstance is enough here
+#include <tdeinstance.h> // KDE4: class TDEInstance is enough here
class KCharsets;
class TDEConfig;
@@ -234,7 +234,25 @@ inline const T& kClamp( const T& x, const T& low, const T& high )
* tqstricmp fails with e.g. the Turkish locale where 'I'.lower() != 'i'
* @since 3.4
*/
-int TDECORE_EXPORT kasciistricmp( const char *str1, const char *str2 );
+TDECORE_EXPORT int kasciistricmp( const char *str1, const char *str2 );
+
+/**
+ Locale-independent function to convert ASCII strings to lower case ASCII
+ strings. This means that it affects @em only the ASCII characters A-Z.
+
+ @param str pointer to the string which should be converted to lower case
+ @return pointer to the converted string (same as @a str)
+*/
+TDECORE_EXPORT char* kasciitolower( char *str );
+
+/**
+ Locale-independent function to convert ASCII strings to upper case ASCII
+ strings. This means that it affects @em only the ASCII characters a-z.
+
+ @param str pointer to the string which should be converted to upper case
+ @return pointer to the converted string (same as @a str)
+*/
+TDECORE_EXPORT char* kasciitoupper( char *str );
/**
diff --git a/tdecore/kglobalaccel.cpp b/tdecore/tdeglobalaccel.cpp
index 746721e40..dd2a93b6f 100644
--- a/tdecore/kglobalaccel.cpp
+++ b/tdecore/tdeglobalaccel.cpp
@@ -17,15 +17,15 @@
Boston, MA 02110-1301, USA.
*/
-#include "kglobalaccel.h"
-#ifdef Q_WS_X11
-#include "kglobalaccel_x11.h"
-#elif defined(Q_WS_WIN)
-#include "kglobalaccel_win.h"
-#elif defined(Q_WS_MACX)
-#include "kglobalaccel_mac.h"
+#include "tdeglobalaccel.h"
+#ifdef TQ_WS_X11
+#include "tdeglobalaccel_x11.h"
+#elif defined(TQ_WS_WIN)
+#include "tdeglobalaccel_win.h"
+#elif defined(TQ_WS_MACX)
+#include "tdeglobalaccel_mac.h"
#else
-#include "kglobalaccel_emb.h"
+#include "tdeglobalaccel_emb.h"
#endif
#include <tqstring.h>
@@ -136,4 +136,4 @@ bool TDEGlobalAccel::useFourModifierKeys()
void TDEGlobalAccel::virtual_hook( int, void* )
{ /*BASE::virtual_hook( id, data );*/ }
-#include "kglobalaccel.moc"
+#include "tdeglobalaccel.moc"
diff --git a/tdecore/kglobalaccel.h b/tdecore/tdeglobalaccel.h
index a8ed8a955..be34a3cdd 100644
--- a/tdecore/kglobalaccel.h
+++ b/tdecore/tdeglobalaccel.h
@@ -17,8 +17,8 @@
Boston, MA 02110-1301, USA.
*/
-#ifndef _KGLOBALACCEL_H_
-#define _KGLOBALACCEL_H_
+#ifndef _TDEGLOBALACCEL_H_
+#define _TDEGLOBALACCEL_H_
#include <tqobject.h>
#include <tdeshortcut.h>
@@ -44,13 +44,13 @@ class TDEGlobalAccelPrivate;
*/
class TDECORE_EXPORT TDEGlobalAccel : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
* Creates a new TDEGlobalAccel object with the given pParent and
* psName.
- * @param pParent the parent of the QObject
- * @param psName the name of the QObject
+ * @param pParent the parent of the TQObject
+ * @param psName the name of the TQObject
*/
TDEGlobalAccel( TQObject* pParent, const char* psName = 0 );
virtual ~TDEGlobalAccel();
@@ -76,7 +76,7 @@ class TDECORE_EXPORT TDEGlobalAccel : public TQObject
* insert( "Do Something", i18n("Do Something"),
* i18n("This action allows you to do something really great with this program to "
* "the currently open document."),
- * ALT+CTRL+Key_Q, KKey::QtWIN+CTRL+Key_Q, this, TQT_SLOT(slotDoSomething()) );
+ * ALT+CTRL+Key_Q, KKey::QtWIN+CTRL+Key_Q, this, TQ_SLOT(slotDoSomething()) );
*\endcode
*
* @param sAction The internal name of the action.
@@ -236,4 +236,4 @@ private:
class TDEGlobalAccelPrivate* d;
};
-#endif // _KGLOBALACCEL_H_
+#endif // _TDEGLOBALACCEL_H_
diff --git a/tdecore/kglobalaccel_emb.h b/tdecore/tdeglobalaccel_emb.h
index 5e5145d66..2fd16bd44 100644
--- a/tdecore/kglobalaccel_emb.h
+++ b/tdecore/tdeglobalaccel_emb.h
@@ -1,5 +1,5 @@
-#ifndef _KGLOBALACCEL_EMB_H
-#define _KGLOBALACCEL_EMB_H
+#ifndef _TDEGLOBALACCEL_EMB_H
+#define _TDEGLOBALACCEL_EMB_H
#include "tdeaccelbase.h"
#include "tdeshortcut.h"
@@ -15,4 +15,4 @@ public:
virtual bool disconnectKey( TDEAccelAction&, KKeySequence );
};
-#endif // _KGLOBALACCEL_EMB_H
+#endif // _TDEGLOBALACCEL_EMB_H
diff --git a/tdecore/kglobalaccel_mac.h b/tdecore/tdeglobalaccel_mac.h
index b2803b0c0..c21533916 100644
--- a/tdecore/kglobalaccel_mac.h
+++ b/tdecore/tdeglobalaccel_mac.h
@@ -1,5 +1,5 @@
-#ifndef _KGLOBALACCEL_MAC_H
-#define _KGLOBALACCEL_MAC_H
+#ifndef _TDEGLOBALACCEL_MAC_H
+#define _TDEGLOBALACCEL_MAC_H
#include <tqwidget.h>
@@ -28,4 +28,4 @@ public:
{ return false; }
};
-#endif // _KGLOBALACCEL_EMB_H
+#endif // _TDEGLOBALACCEL_MAC_H
diff --git a/tdecore/kglobalaccel_win.cpp b/tdecore/tdeglobalaccel_win.cpp
index 09c216b99..faf3708f4 100644
--- a/tdecore/kglobalaccel_win.cpp
+++ b/tdecore/tdeglobalaccel_win.cpp
@@ -20,10 +20,10 @@
#include "config.h"
#include <tqwindowdefs.h>
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
-#include "kglobalaccel_win.h"
-#include "kglobalaccel.h"
+#include "tdeglobalaccel_win.h"
+#include "tdeglobalaccel.h"
#include "kkeyserver_x11.h"
#include <tqpopupmenu.h>
@@ -48,7 +48,7 @@ TDEGlobalAccelPrivate::TDEGlobalAccelPrivate()
all_accels = new TQValueList< TDEGlobalAccelPrivate* >;
all_accels->append( this );
m_sConfigGroup = "Global Shortcuts";
-// kapp->installX11EventFilter( this );
+// tdeApp->installX11EventFilter( this );
}
TDEGlobalAccelPrivate::~TDEGlobalAccelPrivate()
@@ -161,7 +161,7 @@ bool TDEGlobalAccelPrivate::grabKey( const KKeyServer::Key& key, bool bGrab, TDE
bool failed = false;
if( bGrab ) {
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
failed = handler.error( true ); // sync now
#endif
// If grab failed, then ungrab any grabs that could possibly succeed
@@ -283,9 +283,9 @@ bool TDEGlobalAccelPrivate::x11KeyPress( const XEvent *pEvent )
if( !recursion_block ) {
recursion_block = true;
TQPopupMenu* pMenu = createPopupMenu( 0, KKeySequence(key) );
- connect( pMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotActivated(int)) );
+ connect( pMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotActivated(int)) );
pMenu->exec( TQPoint( 0, 0 ) );
- disconnect( pMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotActivated(int)));
+ disconnect( pMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotActivated(int)));
delete pMenu;
recursion_block = false;
}
@@ -340,6 +340,6 @@ void TDEGlobalAccelPrivate::slotActivated( int iAction )
activate( pAction, KKeySequence() );
}
-#include "kglobalaccel_win.moc"
+#include "tdeglobalaccel_win.moc"
-#endif // !Q_WS_WIN
+#endif // !TQ_WS_WIN
diff --git a/tdecore/kglobalaccel_win.h b/tdecore/tdeglobalaccel_win.h
index e60fed8ee..ec224a0f7 100644
--- a/tdecore/kglobalaccel_win.h
+++ b/tdecore/tdeglobalaccel_win.h
@@ -17,8 +17,8 @@
Boston, MA 02110-1301, USA.
*/
-#ifndef _KGLOBALACCEL_WIN_H
-#define _KGLOBALACCEL_WIN_H
+#ifndef _TDEGLOBALACCEL_WIN_H
+#define _TDEGLOBALACCEL_WIN_H
#include <tqmap.h>
#include <tqwidget.h>
@@ -33,7 +33,7 @@
class TDEGlobalAccelPrivate : public TQWidget, public TDEAccelBase
{
friend class TDEGlobalAccel;
- Q_OBJECT
+ TQ_OBJECT
public:
TDEGlobalAccelPrivate();
virtual ~TDEGlobalAccelPrivate();
@@ -74,4 +74,4 @@ class TDEGlobalAccelPrivate : public TQWidget, public TDEAccelBase
bool m_blockingDisabled;
};
-#endif // _KGLOBALACCEL_WIN_H
+#endif // _TDEGLOBALACCEL_WIN_H
diff --git a/tdecore/kglobalaccel_x11.cpp b/tdecore/tdeglobalaccel_x11.cpp
index 4ee2770ba..2bf6e0d3e 100644
--- a/tdecore/kglobalaccel_x11.cpp
+++ b/tdecore/tdeglobalaccel_x11.cpp
@@ -20,22 +20,22 @@
#include "config.h"
#include <tqwindowdefs.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
-#include "kglobalaccel_x11.h"
-#include "kglobalaccel.h"
+#include "tdeglobalaccel_x11.h"
+#include "tdeglobalaccel.h"
#include "kkeyserver_x11.h"
#include <tqpopupmenu.h>
#include <tqregexp.h>
#include <tqwidget.h>
#include <tqmetaobject.h>
-#include <tqucomextra_p.h>
+#include <private/tqucomextra_p.h>
#include <tdeapplication.h>
#include <kdebug.h>
#include <kkeynative.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#include <kxerrorhandler.h>
#endif
@@ -89,8 +89,8 @@ TDEGlobalAccelPrivate::TDEGlobalAccelPrivate()
all_accels = new TQValueList< TDEGlobalAccelPrivate* >;
all_accels->append( this );
m_sConfigGroup = "Global Shortcuts";
- kapp->installX11EventFilter( this );
- connect(kapp, TQT_SIGNAL(coreFakeKeyPress(unsigned int)), this, TQT_SLOT(fakeKeyPressed(unsigned int)));
+ tdeApp->installX11EventFilter( this );
+ connect(tdeApp, TQ_SIGNAL(coreFakeKeyPress(unsigned int)), this, TQ_SLOT(fakeKeyPressed(unsigned int)));
}
TDEGlobalAccelPrivate::~TDEGlobalAccelPrivate()
@@ -187,17 +187,14 @@ bool TDEGlobalAccelPrivate::grabKey( const KKeyServer::Key& key, bool bGrab, TDE
return false;
}
-#ifndef __osf__
-// this crashes under Tru64 so .....
kdDebug(125) << TQString(TQString( "grabKey( key: '%1', bGrab: %2 ): keyCodeX: %3 keyModX: %4\n" )
.arg( key.key().toStringInternal() ).arg( bGrab )
.arg( keyCodeX, 0, 16 ).arg( keyModX, 0, 16 ));
-#endif
if( !keyCodeX ) {
return false;
}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
KXErrorHandler handler( XGrabErrorHandler );
#endif
// We'll have to grab 8 key modifier combinations in order to cover all
@@ -227,7 +224,7 @@ bool TDEGlobalAccelPrivate::grabKey( const KKeyServer::Key& key, bool bGrab, TDE
bool failed = false;
if( bGrab ) {
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
failed = handler.error( true ); // sync now
#endif
// If grab failed, then ungrab any grabs that could possibly succeed
@@ -313,9 +310,9 @@ void TDEGlobalAccelPrivate::fakeKeyPressed(unsigned int keyCode) {
if( !recursion_block ) {
recursion_block = true;
TQPopupMenu* pMenu = createPopupMenu( 0, KKeySequence(key) );
- connect( pMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotActivated(int)) );
+ connect( pMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotActivated(int)) );
pMenu->exec( TQPoint( 0, 0 ) );
- disconnect( pMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotActivated(int)));
+ disconnect( pMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotActivated(int)));
delete pMenu;
recursion_block = false;
}
@@ -392,9 +389,9 @@ bool TDEGlobalAccelPrivate::x11KeyPress( const XEvent *pEvent )
if( !recursion_block ) {
recursion_block = true;
TQPopupMenu* pMenu = createPopupMenu( 0, KKeySequence(key) );
- connect( pMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotActivated(int)) );
+ connect( pMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotActivated(int)) );
pMenu->exec( TQPoint( 0, 0 ) );
- disconnect( pMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotActivated(int)));
+ disconnect( pMenu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotActivated(int)));
delete pMenu;
recursion_block = false;
}
@@ -423,16 +420,16 @@ void TDEGlobalAccelPrivate::activate( TDEAccelAction* pAction, const KKeySequenc
int slot_id = pAction->objSlotPtr()->metaObject()->findSlot( normalizeSignalSlot( pAction->methodSlotPtr() ).data() + 1, true );
if( slot_id >= 0 ) {
TQUObject o[2];
- static_TQUType_int.set(o+1,n);
+ static_QUType_int.set(o+1,n);
const_cast< TQObject* >( pAction->objSlotPtr())->tqt_invoke( slot_id, o );
}
} else if( rexPassInfo.search( pAction->methodSlotPtr() ) ) {
int slot_id = pAction->objSlotPtr()->metaObject()->findSlot( normalizeSignalSlot( pAction->methodSlotPtr() ).data() + 1, true );
if( slot_id >= 0 ) {
TQUObject o[4];
- static_TQUType_TQString.set(o+1,pAction->name());
- static_TQUType_TQString.set(o+2,pAction->label());
- static_TQUType_ptr.set(o+3,&seq);
+ static_QUType_TQString.set(o+1,pAction->name());
+ static_QUType_TQString.set(o+2,pAction->label());
+ static_QUType_ptr.set(o+3,&seq);
const_cast< TQObject* >( pAction->objSlotPtr())->tqt_invoke( slot_id, o );
}
} else {
@@ -449,6 +446,6 @@ void TDEGlobalAccelPrivate::slotActivated( int iAction )
activate( pAction, KKeySequence() );
}
-#include "kglobalaccel_x11.moc"
+#include "tdeglobalaccel_x11.moc"
-#endif // !Q_WS_X11
+#endif // !TQ_WS_X11
diff --git a/tdecore/kglobalaccel_x11.h b/tdecore/tdeglobalaccel_x11.h
index b22363926..2162299ee 100644
--- a/tdecore/kglobalaccel_x11.h
+++ b/tdecore/tdeglobalaccel_x11.h
@@ -17,8 +17,8 @@
Boston, MA 02110-1301, USA.
*/
-#ifndef _KGLOBALACCEL_X11_H
-#define _KGLOBALACCEL_X11_H
+#ifndef _TDEGLOBALACCEL_X11_H
+#define _TDEGLOBALACCEL_X11_H
#include <tqmap.h>
#include <tqwidget.h>
@@ -33,7 +33,7 @@
class TDEGlobalAccelPrivate : public TQWidget, public TDEAccelBase
{
friend class TDEGlobalAccel;
- Q_OBJECT
+ TQ_OBJECT
public:
TDEGlobalAccelPrivate();
virtual ~TDEGlobalAccelPrivate();
@@ -107,4 +107,4 @@ class TDEGlobalAccelPrivate : public TQWidget, public TDEAccelBase
bool m_suspended;
};
-#endif // _KGLOBALACCEL_X11_H
+#endif // _TDEGLOBALACCEL_X11_H
diff --git a/tdecore/tdeglobalsettings.cpp b/tdecore/tdeglobalsettings.cpp
index 79cd4586a..f03b4d9a5 100644
--- a/tdecore/tdeglobalsettings.cpp
+++ b/tdecore/tdeglobalsettings.cpp
@@ -24,16 +24,16 @@
#include <tqcursor.h>
#include <tdeconfig.h>
-#include <ksimpleconfig.h>
+#include <tdesimpleconfig.h>
#include <tdeapplication.h>
#include <kipc.h>
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
#include <windows.h>
#include "qt_windows.h"
#include <win32_utils.h>
-static QRgb qt_colorref2qrgb(COLORREF col)
+static TQRgb qt_colorref2qrgb(COLORREF col)
{
return tqRgb(GetRValue(col),GetGValue(col),GetBValue(col));
}
@@ -42,7 +42,7 @@ static QRgb qt_colorref2qrgb(COLORREF col)
#include <kdebug.h>
#include <tdeglobal.h>
#include <tdeshortcut.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <kcharsets.h>
#include <tdeaccel.h>
#include <tdelocale.h>
@@ -54,7 +54,7 @@ static QRgb qt_colorref2qrgb(COLORREF col)
#include <tqtextstream.h>
#include <tqfile.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#include <X11/Xlib.h>
#endif
@@ -315,7 +315,7 @@ TQColor TDEGlobalSettings::toolBarHighlightColor()
TQColor TDEGlobalSettings::inactiveTitleColor()
{
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
return qt_colorref2qrgb(GetSysColor(COLOR_INACTIVECAPTION));
#else
if (!_inactiveBackground)
@@ -327,7 +327,7 @@ TQColor TDEGlobalSettings::inactiveTitleColor()
TQColor TDEGlobalSettings::inactiveTextColor()
{
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
return qt_colorref2qrgb(GetSysColor(COLOR_INACTIVECAPTIONTEXT));
#else
if (!_inactiveForeground)
@@ -339,7 +339,7 @@ TQColor TDEGlobalSettings::inactiveTextColor()
TQColor TDEGlobalSettings::activeTitleColor()
{
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
return qt_colorref2qrgb(GetSysColor(COLOR_ACTIVECAPTION));
#else
initColors();
@@ -352,11 +352,11 @@ TQColor TDEGlobalSettings::activeTitleColor()
TQColor TDEGlobalSettings::activeTextColor()
{
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
return qt_colorref2qrgb(GetSysColor(COLOR_CAPTIONTEXT));
#else
TDEConfigGroup g( TDEGlobal::config(), "WM" );
- return g.readColorEntry( "activeForeground", tqwhiteptr );
+ return g.readColorEntry( "activeForeground", &TQt::white );
#endif
}
@@ -377,7 +377,7 @@ TQColor TDEGlobalSettings::buttonBackground()
TQColor TDEGlobalSettings::buttonTextColor()
{
TDEConfigGroup g( TDEGlobal::config(), "General" );
- return g.readColorEntry( "buttonForeground", tqblackptr );
+ return g.readColorEntry( "buttonForeground", &TQt::black );
}
// IMPORTANT:
@@ -386,7 +386,7 @@ TQColor TDEGlobalSettings::buttonTextColor()
TQColor TDEGlobalSettings::baseColor()
{
TDEConfigGroup g( TDEGlobal::config(), "General" );
- return g.readColorEntry( "windowBackground", tqwhiteptr );
+ return g.readColorEntry( "windowBackground", &TQt::white );
}
// IMPORTANT:
@@ -395,7 +395,7 @@ TQColor TDEGlobalSettings::baseColor()
TQColor TDEGlobalSettings::textColor()
{
TDEConfigGroup g( TDEGlobal::config(), "General" );
- return g.readColorEntry( "windowForeground", tqblackptr );
+ return g.readColorEntry( "windowForeground", &TQt::black );
}
// IMPORTANT:
@@ -404,7 +404,7 @@ TQColor TDEGlobalSettings::textColor()
TQColor TDEGlobalSettings::highlightedTextColor()
{
TDEConfigGroup g( TDEGlobal::config(), "General" );
- return g.readColorEntry( "selectForeground", tqwhiteptr );
+ return g.readColorEntry( "selectForeground", &TQt::white );
}
// IMPORTANT:
@@ -429,7 +429,7 @@ TQColor TDEGlobalSettings::alternateBackgroundColor()
TQColor TDEGlobalSettings::calculateAlternateBackgroundColor(const TQColor& base)
{
- if (base == Qt::white)
+ if (base == TQt::white)
return TQColor(238,246,255);
else
{
@@ -437,7 +437,7 @@ TQColor TDEGlobalSettings::calculateAlternateBackgroundColor(const TQColor& base
base.hsv( &h, &s, &v );
if (v > 128)
return base.dark(106);
- else if (base != Qt::black)
+ else if (base != TQt::black)
return base.light(110);
return TQColor(32,32,32);
@@ -724,8 +724,8 @@ void TDEGlobalSettings::initPaths()
}
// Make sure this app gets the notifications about those paths
- if (kapp)
- kapp->addKipcEventMask(KIPC::SettingsChanged);
+ if (tdeApp)
+ tdeApp->addKipcEventMask(KIPC::SettingsChanged);
}
void TDEGlobalSettings::initColors()
@@ -788,7 +788,7 @@ TDEGlobalSettings::KMouseSettings & TDEGlobalSettings::mouseSettings()
s_mouseSettings = new KMouseSettings;
KMouseSettings & s = *s_mouseSettings; // for convenience
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
TDEConfigGroup g( TDEGlobal::config(), "Mouse" );
TQString setting = g.readEntry("MouseButtonMapping");
if (setting == "RightHanded")
@@ -797,13 +797,13 @@ TDEGlobalSettings::KMouseSettings & TDEGlobalSettings::mouseSettings()
s.handed = KMouseSettings::LeftHanded;
else
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
// get settings from X server
// This is a simplified version of the code in input/mouse.cpp
// Keep in sync !
s.handed = KMouseSettings::RightHanded;
unsigned char map[20];
- int num_buttons = XGetPointerMapping(kapp->getDisplay(), map, 20);
+ int num_buttons = XGetPointerMapping(tdeApp->getDisplay(), map, 20);
if( num_buttons == 2 )
{
if ( (int)map[0] == 1 && (int)map[1] == 2 )
@@ -822,9 +822,9 @@ TDEGlobalSettings::KMouseSettings & TDEGlobalSettings::mouseSettings()
// FIXME(E): Implement in Qt Embedded
#endif
}
-#endif //Q_WS_WIN
+#endif //TQ_WS_WIN
}
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
//not cached
s_mouseSettings->handed = (GetSystemMetrics(SM_SWAPBUTTON) ? KMouseSettings::LeftHanded : KMouseSettings::RightHanded);
#endif
@@ -833,7 +833,7 @@ TDEGlobalSettings::KMouseSettings & TDEGlobalSettings::mouseSettings()
void TDEGlobalSettings::rereadMouseSettings()
{
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
delete s_mouseSettings;
s_mouseSettings = 0L;
#endif
@@ -841,7 +841,7 @@ void TDEGlobalSettings::rereadMouseSettings()
bool TDEGlobalSettings::isMultiHead()
{
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
return GetSystemMetrics(SM_CMONITORS) > 1;
#else
TQCString multiHead = getenv("TDE_MULTIHEAD");
diff --git a/tdecore/tdehw/networkbackends/network-manager/network-manager.cpp b/tdecore/tdehw/networkbackends/network-manager/network-manager.cpp
index 3e8ef6daa..f41f5cbc8 100644
--- a/tdecore/tdehw/networkbackends/network-manager/network-manager.cpp
+++ b/tdecore/tdehw/networkbackends/network-manager/network-manager.cpp
@@ -1259,23 +1259,23 @@ TDENetworkConnectionManager_BackendNM::TDENetworkConnectionManager_BackendNM(TDE
}
// Connect global signals
- connect(d->m_networkManagerProxy, SIGNAL(StateChanged(TQ_UINT32)), d, SLOT(internalProcessGlobalStateChanged(TQ_UINT32)));
+ connect(d->m_networkManagerProxy, TQ_SIGNAL(StateChanged(TQ_UINT32)), d, TQ_SLOT(internalProcessGlobalStateChanged(TQ_UINT32)));
// Connect VPN signals
if (d->m_vpnProxy) {
- connect(d->m_vpnProxy, SIGNAL(StateChanged(TQ_UINT32)), d, SLOT(internalProcessVPNStateChanged(TQ_UINT32)));
- connect(d->m_vpnProxy, SIGNAL(LoginBanner(const TQString&)), d, SLOT(internalProcessVPNLoginBanner(const TQString&)));
- connect(d->m_vpnProxy, SIGNAL(Failure(TQ_UINT32)), d, SLOT(internalProcessVPNFailure(TQ_UINT32)));
+ connect(d->m_vpnProxy, TQ_SIGNAL(StateChanged(TQ_UINT32)), d, TQ_SLOT(internalProcessVPNStateChanged(TQ_UINT32)));
+ connect(d->m_vpnProxy, TQ_SIGNAL(LoginBanner(const TQString&)), d, TQ_SLOT(internalProcessVPNLoginBanner(const TQString&)));
+ connect(d->m_vpnProxy, TQ_SIGNAL(Failure(TQ_UINT32)), d, TQ_SLOT(internalProcessVPNFailure(TQ_UINT32)));
}
// Connect local signals
if (d->m_networkDeviceProxy) {
- connect(d->m_networkDeviceProxy, SIGNAL(StateChanged(TQ_UINT32, TQ_UINT32, TQ_UINT32)), d, SLOT(internalProcessDeviceStateChanged(TQ_UINT32, TQ_UINT32, TQ_UINT32)));
+ connect(d->m_networkDeviceProxy, TQ_SIGNAL(StateChanged(TQ_UINT32, TQ_UINT32, TQ_UINT32)), d, TQ_SLOT(internalProcessDeviceStateChanged(TQ_UINT32, TQ_UINT32, TQ_UINT32)));
}
if (d->m_wiFiDeviceProxy) {
- connect(d->m_wiFiDeviceProxy, SIGNAL(AccessPointAdded(const TQT_DBusObjectPath&)), d, SLOT(internalProcessWiFiAccessPointAdded(const TQT_DBusObjectPath&)));
- connect(d->m_wiFiDeviceProxy, SIGNAL(AccessPointRemoved(const TQT_DBusObjectPath&)), d, SLOT(internalProcessWiFiAccessPointRemoved(const TQT_DBusObjectPath&)));
- connect(d->m_wiFiDeviceProxy, SIGNAL(PropertiesChanged(const TQMap<TQString, TQT_DBusVariant>&)), d, SLOT(internalProcessWiFiPropertiesChanged(const TQMap<TQString, TQT_DBusVariant>&)));
+ connect(d->m_wiFiDeviceProxy, TQ_SIGNAL(AccessPointAdded(const TQT_DBusObjectPath&)), d, TQ_SLOT(internalProcessWiFiAccessPointAdded(const TQT_DBusObjectPath&)));
+ connect(d->m_wiFiDeviceProxy, TQ_SIGNAL(AccessPointRemoved(const TQT_DBusObjectPath&)), d, TQ_SLOT(internalProcessWiFiAccessPointRemoved(const TQT_DBusObjectPath&)));
+ connect(d->m_wiFiDeviceProxy, TQ_SIGNAL(PropertiesChanged(const TQMap<TQString, TQT_DBusVariant>&)), d, TQ_SLOT(internalProcessWiFiPropertiesChanged(const TQMap<TQString, TQT_DBusVariant>&)));
}
// Create public lists
@@ -1510,7 +1510,7 @@ void TDENetworkConnectionManager_BackendNMPrivate::internalProcessWiFiAccessPoin
// Set up monitoring object
DBus::AccessPointProxy* apProxy = new DBus::AccessPointProxy(NM_DBUS_SERVICE, dbuspath);
apProxy->setConnection(TQT_DBusConnection::systemBus());
- connect(apProxy, SIGNAL(PropertiesChanged(const TQMap<TQString, TQT_DBusVariant>&)), this, SLOT(internalProcessAPPropertiesChanged(const TQMap<TQString, TQT_DBusVariant>&)));
+ connect(apProxy, TQ_SIGNAL(PropertiesChanged(const TQMap<TQString, TQT_DBusVariant>&)), this, TQ_SLOT(internalProcessAPPropertiesChanged(const TQMap<TQString, TQT_DBusVariant>&)));
m_accessPointProxyList[dbuspath] = (apProxy);
// Notify client applications
@@ -1599,7 +1599,7 @@ TDENetworkConnectionType::TDENetworkConnectionType TDENetworkConnectionManager_B
// Obtain connection settings from the path specified
DBus::ConnectionSettingsInterface connectionSettings(NM_DBUS_SERVICE, dbusPath);
connectionSettings.setConnection(TQT_DBusConnection::systemBus());
- connect(&connectionSettings, SIGNAL(GetSettingsAsyncReply(int, const TQT_DBusDataMap<TQString>&)), d, SLOT(processConnectionSettingsAsyncReply(int, const TQT_DBusDataMap<TQString>&)));
+ connect(&connectionSettings, TQ_SIGNAL(GetSettingsAsyncReply(int, const TQT_DBusDataMap<TQString>&)), d, TQ_SLOT(processConnectionSettingsAsyncReply(int, const TQT_DBusDataMap<TQString>&)));
int asyncCallID;
ret = connectionSettings.GetSettingsAsync(asyncCallID, error);
if (ret && error.isValid()) {
@@ -1922,14 +1922,14 @@ void TDENetworkConnectionManager_BackendNM::loadConnectionInformation() {
}
#ifdef DEBUG_NETWORK_MANAGER_COMMUNICATIONS
- printf("[network-manager comm debug] %s\n", (*it).data()); fflush(stdout);
+ printf("[network-manager comm debug] %s\n", (*it).local8Bit().data()); fflush(stdout);
#endif // DEBUG_NETWORK_MANAGER_COMMUNICATIONS
// Obtain connection settings from the path specified
DBus::ConnectionSettingsInterface connectionSettings(NM_DBUS_SERVICE, (*it));
connectionSettings.setConnection(TQT_DBusConnection::systemBus());
- connect(&connectionSettings, SIGNAL(GetSettingsAsyncReply(int, const TQT_DBusDataMap<TQString>&)), d, SLOT(processConnectionSettingsAsyncReply(int, const TQT_DBusDataMap<TQString>&)));
- connect(&connectionSettings, SIGNAL(AsyncErrorResponseDetected(int, const TQT_DBusError)), d, SLOT(processConnectionSettingsAsyncError(int, const TQT_DBusError)));
+ connect(&connectionSettings, TQ_SIGNAL(GetSettingsAsyncReply(int, const TQT_DBusDataMap<TQString>&)), d, TQ_SLOT(processConnectionSettingsAsyncReply(int, const TQT_DBusDataMap<TQString>&)));
+ connect(&connectionSettings, TQ_SIGNAL(AsyncErrorResponseDetected(int, const TQT_DBusError)), d, TQ_SLOT(processConnectionSettingsAsyncError(int, const TQT_DBusError)));
int asyncCallID;
ret = connectionSettings.GetSettingsAsync(asyncCallID, error);
if (ret && error.isValid()) {
@@ -3055,7 +3055,7 @@ bool TDENetworkConnectionManager_BackendNM::loadConnectionSecretsForGroup(TQStri
// Obtain connection secrets from the path specified
DBus::ConnectionSettingsInterface connectionSettings(NM_DBUS_SERVICE, existingConnection);
connectionSettings.setConnection(TQT_DBusConnection::systemBus());
- connect(&connectionSettings, SIGNAL(GetSecretsAsyncReply(int, const TQT_DBusDataMap<TQString>&)), d, SLOT(processConnectionSettingsAsyncReply(int, const TQT_DBusDataMap<TQString>&)));
+ connect(&connectionSettings, TQ_SIGNAL(GetSecretsAsyncReply(int, const TQT_DBusDataMap<TQString>&)), d, TQ_SLOT(processConnectionSettingsAsyncReply(int, const TQT_DBusDataMap<TQString>&)));
int asyncCallID;
ret = connectionSettings.GetSecretsAsync(asyncCallID, group, error);
if (ret && error.isValid()) {
@@ -3260,7 +3260,7 @@ bool TDENetworkConnectionManager_BackendNM::saveConnection(TDENetworkConnection*
// Obtain connection settings from the path specified
DBus::ConnectionSettingsInterface connectionSettings(NM_DBUS_SERVICE, existingConnection);
connectionSettings.setConnection(TQT_DBusConnection::systemBus());
- connect(&connectionSettings, SIGNAL(GetSettingsAsyncReply(int, const TQT_DBusDataMap<TQString>&)), d, SLOT(processConnectionSettingsAsyncReply(int, const TQT_DBusDataMap<TQString>&)));
+ connect(&connectionSettings, TQ_SIGNAL(GetSettingsAsyncReply(int, const TQT_DBusDataMap<TQString>&)), d, TQ_SLOT(processConnectionSettingsAsyncReply(int, const TQT_DBusDataMap<TQString>&)));
int asyncCallID;
ret = connectionSettings.GetSettingsAsync(asyncCallID, error);
if (ret && error.isValid()) {
@@ -4492,7 +4492,7 @@ bool TDENetworkConnectionManager_BackendNM::saveConnection(TDENetworkConnection*
// Save connection settings to the path specified
DBus::ConnectionSettingsInterface connectionSettings(NM_DBUS_SERVICE, existingConnection);
connectionSettings.setConnection(TQT_DBusConnection::systemBus());
- connect(&connectionSettings, SIGNAL(UpdateAsyncReply(int)), d, SLOT(processConnectionSettingsUpdateAsyncReply(int)));
+ connect(&connectionSettings, TQ_SIGNAL(UpdateAsyncReply(int)), d, TQ_SLOT(processConnectionSettingsUpdateAsyncReply(int)));
int asyncCallID;
ret = connectionSettings.UpdateAsync(asyncCallID, connectionSettingsMap, error);
if (ret && error.isValid()) {
@@ -4526,8 +4526,8 @@ bool TDENetworkConnectionManager_BackendNM::saveConnection(TDENetworkConnection*
printf("[network-manager comm debug] Creating new connection\n"); fflush(stdout);
#endif // DEBUG_NETWORK_MANAGER_COMMUNICATIONS
// Create new connection
- connect(d->m_networkManagerSettings, SIGNAL(AddConnectionAsyncReply(int, const TQT_DBusObjectPath&)), d, SLOT(processAddConnectionAsyncReply(int, const TQT_DBusObjectPath&)));
- connect(d->m_networkManagerSettings, SIGNAL(AsyncErrorResponseDetected(int, const TQT_DBusError)), d, SLOT(processAddConnectionAsyncError(int, const TQT_DBusError)));
+ connect(d->m_networkManagerSettings, TQ_SIGNAL(AddConnectionAsyncReply(int, const TQT_DBusObjectPath&)), d, TQ_SLOT(processAddConnectionAsyncReply(int, const TQT_DBusObjectPath&)));
+ connect(d->m_networkManagerSettings, TQ_SIGNAL(AsyncErrorResponseDetected(int, const TQT_DBusError)), d, TQ_SLOT(processAddConnectionAsyncError(int, const TQT_DBusError)));
int asyncCallID;
ret = d->m_networkManagerSettings->AddConnectionAsync(asyncCallID, connectionSettingsMap, error);
if (ret && error.isValid()) {
@@ -4580,7 +4580,7 @@ bool TDENetworkConnectionManager_BackendNM::deleteConnection(TQString uuid) {
// Obtain connection secrets from the path specified
DBus::ConnectionSettingsInterface connectionSettings(NM_DBUS_SERVICE, existingConnection);
connectionSettings.setConnection(TQT_DBusConnection::systemBus());
- connect(&connectionSettings, SIGNAL(DeleteAsyncReply(int)), d, SLOT(processConnectionSettingsUpdateAsyncReply(int)));
+ connect(&connectionSettings, TQ_SIGNAL(DeleteAsyncReply(int)), d, TQ_SLOT(processConnectionSettingsUpdateAsyncReply(int)));
int asyncCallID;
ret = connectionSettings.DeleteAsync(asyncCallID, error);
if (ret && error.isValid()) {
@@ -4804,8 +4804,8 @@ TDENetworkConnectionStatus::TDENetworkConnectionStatus TDENetworkConnectionManag
return checkConnectionStatus(uuid);
#else // USE_ASYNC_DBUS_CONNECTION_COMMAND_CALLS
#ifdef WAIT_FOR_OPERATION_BEFORE_RETURNING
- connect(d->m_networkManagerProxy, SIGNAL(ActivateConnectionAsyncReply(int, const TQT_DBusObjectPath&)), d, SLOT(processAddConnectionAsyncReply(int, const TQT_DBusObjectPath&)));
- connect(d->m_networkManagerProxy, SIGNAL(AsyncErrorResponseDetected(int, const TQT_DBusError)), d, SLOT(processAddConnectionAsyncError(int, const TQT_DBusError)));
+ connect(d->m_networkManagerProxy, TQ_SIGNAL(ActivateConnectionAsyncReply(int, const TQT_DBusObjectPath&)), d, TQ_SLOT(processAddConnectionAsyncReply(int, const TQT_DBusObjectPath&)));
+ connect(d->m_networkManagerProxy, TQ_SIGNAL(AsyncErrorResponseDetected(int, const TQT_DBusError)), d, TQ_SLOT(processAddConnectionAsyncError(int, const TQT_DBusError)));
#endif // WAIT_FOR_OPERATION_BEFORE_RETURNING
int asyncCallID;
ret = d->m_networkManagerProxy->ActivateConnectionAsync(asyncCallID, existingConnection, TQT_DBusObjectPath(d->m_dbusDeviceString.ascii()), TQT_DBusObjectPath("/"), error);
@@ -4941,34 +4941,39 @@ TDENetworkVPNTypeList TDENetworkConnectionManager_BackendNM::availableVPNTypes()
TDENetworkVPNTypeList ret;
// Query NetworkManager to verify plugin availability before claiming support for a VPN type
- TQDir serviceDir(NM_PLUGIN_SERVICE_DIR, TQString(), TQDir::Name|TQDir::IgnoreCase, TQDir::Files);
- TQStringList services = serviceDir.entryList ().grep (".name", true);
-
- if (services.count () > 0) {
- // read in all available Services
- for (TQStringList::Iterator i = services.begin (); i != services.end (); ++i) {
- TQString service = NM_PLUGIN_SERVICE_DIR + TQString ("/") + *i;
- TDEConfig* tdeconfig = new TDEConfig (service, true, true, "config");
- tdeconfig->setGroup ("VPN Connection");
-
- TQString serviceName = tdeconfig->readEntry("name", TQString());
- serviceName = serviceName.lower();
-
- if (serviceName == "openvpn") {
- ret.append(TDENetworkVPNType::OpenVPN);
- }
- if (serviceName == "pptp") {
- ret.append(TDENetworkVPNType::PPTP);
- }
- if (serviceName == "strongswan") {
- ret.append(TDENetworkVPNType::StrongSwan);
- }
- if (serviceName == "vpnc") {
- ret.append(TDENetworkVPNType::VPNC);
- }
+ // Look in the LIB directory first, since that seems to be where plugins are stored nowadays.
+ TQDir libServiceDir(NM_PLUGIN_SERVICE_DIR_LIB, "*.name", TQDir::Name | TQDir::IgnoreCase, TQDir::Files);
+ TQDir etcServiceDir(NM_PLUGIN_SERVICE_DIR_ETC, "*.name", TQDir::Name | TQDir::IgnoreCase, TQDir::Files);
+ TQStringList services = libServiceDir.entryList() + etcServiceDir.entryList();
+ size_t libEntryCount = libServiceDir.count();
+
+ // Read in all services.
+ for (size_t i = 0; i < services.count(); ++i)
+ {
+ TQString fileName = TQString("%1/").arg(i < libEntryCount ? NM_PLUGIN_SERVICE_DIR_LIB : NM_PLUGIN_SERVICE_DIR_ETC) + services[i];
+ TDEConfig *config = new TDEConfig(fileName, true, true, "config");
+ config->setGroup("VPN Connection");
- delete tdeconfig;
+ TQString serviceName = config->readEntry("name", TQString(""));
+ serviceName = serviceName.lower();
+ if (serviceName == "openvpn")
+ {
+ ret.append(TDENetworkVPNType::OpenVPN);
+ }
+ if (serviceName == "pptp")
+ {
+ ret.append(TDENetworkVPNType::PPTP);
+ }
+ if (serviceName == "strongswan")
+ {
+ ret.append(TDENetworkVPNType::StrongSwan);
+ }
+ if (serviceName == "vpnc")
+ {
+ ret.append(TDENetworkVPNType::VPNC);
}
+
+ delete config;
}
return ret;
@@ -5000,7 +5005,7 @@ TDENetworkConnectionStatus::TDENetworkConnectionStatus TDENetworkConnectionManag
return checkConnectionStatus(uuid);
#else // USE_ASYNC_DBUS_CONNECTION_COMMAND_CALLS
#ifdef WAIT_FOR_OPERATION_BEFORE_RETURNING
- connect(d->m_networkManagerProxy, SIGNAL(DeactivateConnectionAsyncReply(int)), d, SLOT(processConnectionSettingsUpdateAsyncReply(int)));
+ connect(d->m_networkManagerProxy, TQ_SIGNAL(DeactivateConnectionAsyncReply(int)), d, TQ_SLOT(processConnectionSettingsUpdateAsyncReply(int)));
#endif // WAIT_FOR_OPERATION_BEFORE_RETURNING
int asyncCallID;
ret = d->m_networkManagerProxy->DeactivateConnectionAsync(asyncCallID, existingConnection, error);
@@ -5441,7 +5446,7 @@ TDENetworkConnectionManager_BackendNMPrivate::TDENetworkConnectionManager_Backen
// Set up global signal handler
m_dbusSignalConnection = new TQT_DBusConnection(TQT_DBusConnection::systemBus());
m_dbusSignalReceiver = new TDENetworkConnectionManager_BackendNM_DBusSignalReceiver(this);
- m_dbusSignalConnection->connect(m_dbusSignalReceiver, TQT_SLOT(dbusSignal(const TQT_DBusMessage&)));
+ m_dbusSignalConnection->connect(m_dbusSignalReceiver, TQ_SLOT(dbusSignal(const TQT_DBusMessage&)));
}
TDENetworkConnectionManager_BackendNMPrivate::~TDENetworkConnectionManager_BackendNMPrivate() {
diff --git a/tdecore/tdehw/networkbackends/network-manager/network-manager.h b/tdecore/tdehw/networkbackends/network-manager/network-manager.h
index f14e4992e..241e83706 100644
--- a/tdecore/tdehw/networkbackends/network-manager/network-manager.h
+++ b/tdecore/tdehw/networkbackends/network-manager/network-manager.h
@@ -18,6 +18,7 @@
#ifndef _TDENETWORKBACKEND_NETWORKMANAGER_H
#define _TDENETWORKBACKEND_NETWORKMANAGER_H
+#include "config.h"
#include "tdenetworkconnections.h"
//====================================================================================================
@@ -142,7 +143,8 @@
#define NM_802_11_DEVICE_CAP_WPA 0x10
#define NM_802_11_DEVICE_CAP_RSN 0x20
//====================================================================================================
-#define NM_PLUGIN_SERVICE_DIR "/etc/NetworkManager/VPN"
+#define NM_PLUGIN_SERVICE_DIR_ETC "/etc/NetworkManager/VPN" // old plugin location
+#define NM_PLUGIN_SERVICE_DIR_LIB NM_VPN_SERVICE_DIR // new plugin location
//====================================================================================================
//====================================================================================================
@@ -211,7 +213,7 @@ class TDENetworkConnectionManager_BackendNMPrivate;
class TDECORE_EXPORT TDENetworkConnectionManager_BackendNM : public TDENetworkConnectionManager
{
- Q_OBJECT
+ TQ_OBJECT
public:
TDENetworkConnectionManager_BackendNM(TDENetworkDevice* networkDevice);
diff --git a/tdecore/tdehw/networkbackends/network-manager/network-manager_p.h b/tdecore/tdehw/networkbackends/network-manager/network-manager_p.h
index 61ce31329..43cafda25 100644
--- a/tdecore/tdehw/networkbackends/network-manager/network-manager_p.h
+++ b/tdecore/tdehw/networkbackends/network-manager/network-manager_p.h
@@ -71,7 +71,7 @@ class TDENetworkConnectionManager_BackendNMPrivate;
class TDENetworkConnectionManager_BackendNM_DBusSignalReceiver : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
TDENetworkConnectionManager_BackendNM_DBusSignalReceiver(TDENetworkConnectionManager_BackendNMPrivate*);
@@ -86,7 +86,7 @@ class TDENetworkConnectionManager_BackendNM_DBusSignalReceiver : public TQObject
class TDENetworkConnectionManager_BackendNMPrivate : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
TDENetworkConnectionManager_BackendNMPrivate(TDENetworkConnectionManager_BackendNM*);
diff --git a/tdecore/tdehw/tdecryptographiccarddevice.cpp b/tdecore/tdehw/tdecryptographiccarddevice.cpp
index c593d2ab6..2ac87af86 100644
--- a/tdecore/tdehw/tdecryptographiccarddevice.cpp
+++ b/tdecore/tdehw/tdecryptographiccarddevice.cpp
@@ -25,9 +25,9 @@
#include <tqpixmap.h>
#include <tqtimer.h>
-#include <ntqthread.h>
-#include <ntqeventloop.h>
-#include <ntqapplication.h>
+#include <tqthread.h>
+#include <tqeventloop.h>
+#include <tqapplication.h>
#include "tdeglobal.h"
#include "tdelocale.h"
@@ -509,9 +509,9 @@ void TDECryptographicCardDevice::enableCardMonitoring(bool enable) {
m_watcherObject->cardDevice = this;
m_watcherObject->moveToThread(m_watcherThread);
- TQObject::connect(m_watcherObject, SIGNAL(statusChanged(TQString,TQString)), this, SLOT(cardStatusChanged(TQString,TQString)));
- TQObject::connect(m_watcherObject, SIGNAL(pinRequested(TQString)), this, SLOT(workerRequestedPin(TQString)));
- TQTimer::singleShot(0, m_watcherObject, SLOT(run()));
+ TQObject::connect(m_watcherObject, TQ_SIGNAL(statusChanged(TQString,TQString)), this, TQ_SLOT(cardStatusChanged(TQString,TQString)));
+ TQObject::connect(m_watcherObject, TQ_SIGNAL(pinRequested(TQString)), this, TQ_SLOT(workerRequestedPin(TQString)));
+ TQTimer::singleShot(0, m_watcherObject, TQ_SLOT(run()));
m_watcherThread->start();
}
diff --git a/tdecore/tdehw/tdecryptographiccarddevice.h b/tdecore/tdehw/tdecryptographiccarddevice.h
index 0907322d7..8b3bd211a 100644
--- a/tdecore/tdehw/tdecryptographiccarddevice.h
+++ b/tdecore/tdehw/tdecryptographiccarddevice.h
@@ -38,7 +38,7 @@ typedef TQValueListIterator<X509*> X509CertificatePtrListIterator;
class TDECORE_EXPORT TDECryptographicCardDevice : public TDEGenericDevice
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
diff --git a/tdecore/tdehw/tdeeventdevice.cpp b/tdecore/tdehw/tdeeventdevice.cpp
index c528a42db..3223e80e7 100644
--- a/tdecore/tdehw/tdeeventdevice.cpp
+++ b/tdecore/tdehw/tdeeventdevice.cpp
@@ -349,7 +349,7 @@ void TDEEventDevice::internalStartMonitoring(TDEHardwareDevices* hwmanager) {
if (eventType() != TDEEventDeviceType::Unknown) {
if (m_fd >= 0) {
m_eventNotifier = new TQSocketNotifier(m_fd, TQSocketNotifier::Read, this);
- connect( m_eventNotifier, TQT_SIGNAL(activated(int)), this, TQT_SLOT(eventReceived()) );
+ connect( m_eventNotifier, TQ_SIGNAL(activated(int)), this, TQ_SLOT(eventReceived()) );
m_monitorActive = true;
}
}
@@ -357,7 +357,7 @@ void TDEEventDevice::internalStartMonitoring(TDEHardwareDevices* hwmanager) {
// get initial state of switches
internalReadProvidedSwitches();
internalReadActiveSwitches();
- connect( this, TQT_SIGNAL(keyPressed(unsigned int, TDEEventDevice*)), hwmanager, TQT_SLOT(processEventDeviceKeyPressed(unsigned int, TDEEventDevice*)) );
+ connect( this, TQ_SIGNAL(keyPressed(unsigned int, TDEEventDevice*)), hwmanager, TQ_SLOT(processEventDeviceKeyPressed(unsigned int, TDEEventDevice*)) );
}
}
}
@@ -387,9 +387,9 @@ void TDEEventDevice::processActiveSwitches() {
}
void TDEEventDevice::connectNotify( const char* signal ) {
- if( !m_monitorActive && qstrcmp( signal, TQT_SIGNAL(switchChanged())) == 0 ) {
+ if( !m_monitorActive && qstrcmp( signal, TQ_SIGNAL(switchChanged())) == 0 ) {
m_watchTimer = new TQTimer(this);
- connect( m_watchTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(processActiveSwitches()) );
+ connect( m_watchTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(processActiveSwitches()) );
m_watchTimer->start( 2500, false );
m_monitorActive = true;
diff --git a/tdecore/tdehw/tdeeventdevice.h b/tdecore/tdehw/tdeeventdevice.h
index 64130508c..a1f1af6a6 100644
--- a/tdecore/tdehw/tdeeventdevice.h
+++ b/tdecore/tdehw/tdeeventdevice.h
@@ -79,7 +79,7 @@ class TQSocketNotifier;
class TDECORE_EXPORT TDEEventDevice : public TDEGenericDevice
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
diff --git a/tdecore/tdehw/tdegenericdevice.h b/tdecore/tdehw/tdegenericdevice.h
index 91e9ac79e..53804cf96 100644
--- a/tdecore/tdehw/tdegenericdevice.h
+++ b/tdecore/tdehw/tdegenericdevice.h
@@ -30,7 +30,7 @@
class TDECORE_EXPORT TDEGenericDevice : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index 0da216a87..2471c8341 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -25,7 +25,7 @@
#include <tqstringlist.h>
#include <tdeconfig.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeglobal.h>
#include <tdelocale.h>
@@ -89,22 +89,13 @@ timespec diff(timespec start, timespec end)
return temp;
}
-// BEGIN BLOCK
-// Copied from include/linux/genhd.h
-#define GENHD_FL_REMOVABLE 1
-#define GENHD_FL_MEDIA_CHANGE_NOTIFY 4
-#define GENHD_FL_CD 8
-#define GENHD_FL_UP 16
-#define GENHD_FL_SUPPRESS_PARTITION_INFO 32
-#define GENHD_FL_EXT_DEVT 64
-#define GENHD_FL_NATIVE_CAPACITY 128
-#define GENHD_FL_BLOCK_EVENTS_ON_EXCL_WRITE 256
-// END BLOCK
-
// NOTE TO DEVELOPERS
// This command will greatly help when attempting to find properties to distinguish one device from another
// udevadm info --query=all --path=/sys/....
+// Some local utility functions and constants
+namespace {
+
// This routine is courtsey of an answer on "Stack Overflow"
// It takes an LSB-first int and makes it an MSB-first int (or vice versa)
unsigned int reverse_bits(unsigned int x)
@@ -116,11 +107,24 @@ unsigned int reverse_bits(unsigned int x)
return((x >> 16) | (x << 16));
}
+// Read the content of a file that supposed to contain a single line
+TQString readLineFile(TQString fname) {
+ TQFile file( fname );
+ if ( file.open( IO_ReadOnly ) ) {
+ TQTextStream stream( &file );
+ return stream.readLine();
+ } else {
+ return TQString::null;
+ }
+}
+
+} // namespace
+
// Helper function implemented in tdestoragedevice.cpp
TQString decodeHexEncoding(TQString str);
extern "C" {
- KDE_EXPORT TDEHardwareDevices* create_tdeHardwareDevices()
+ TDE_EXPORT TDEHardwareDevices* create_tdeHardwareDevices()
{
return new TDEHardwareDevices();
}
@@ -132,6 +136,7 @@ TDEHardwareDevices::TDEHardwareDevices() {
usb_id_map = 0;
pnp_id_map = 0;
dpy_id_map = 0;
+ m_unclassifiedDevices = TQStringList();
// Set up device list
m_deviceList.setAutoDelete( true ); // the list owns the objects
@@ -151,7 +156,7 @@ TDEHardwareDevices::TDEHardwareDevices() {
int udevmonitorfd = udev_monitor_get_fd(m_udevMonitorStruct);
if (udevmonitorfd >= 0) {
m_devScanNotifier = new TQSocketNotifier(udevmonitorfd, TQSocketNotifier::Read, this);
- connect( m_devScanNotifier, TQT_SIGNAL(activated(int)), this, TQT_SLOT(processHotPluggedHardware()) );
+ connect( m_devScanNotifier, TQ_SIGNAL(activated(int)), this, TQ_SLOT(processHotPluggedHardware()) );
}
// Read in the current mount table
@@ -173,7 +178,7 @@ TDEHardwareDevices::TDEHardwareDevices() {
m_procMountsFd = open("/proc/mounts", O_RDONLY, 0);
if (m_procMountsFd >= 0) {
m_mountScanNotifier = new TQSocketNotifier(m_procMountsFd, TQSocketNotifier::Exception, this);
- connect( m_mountScanNotifier, TQT_SIGNAL(activated(int)), this, TQT_SLOT(processModifiedMounts()) );
+ connect( m_mountScanNotifier, TQ_SIGNAL(activated(int)), this, TQ_SLOT(processModifiedMounts()) );
}
// Read in the current cpu information
@@ -195,20 +200,20 @@ TDEHardwareDevices::TDEHardwareDevices() {
// Monitor for changed cpu information
// Watched directories are set up during the initial CPU scan
m_cpuWatch = new KSimpleDirWatch(this);
- connect( m_cpuWatch, TQT_SIGNAL(dirty(const TQString &)), this, TQT_SLOT(processModifiedCPUs()) );
+ connect( m_cpuWatch, TQ_SIGNAL(dirty(const TQString &)), this, TQ_SLOT(processModifiedCPUs()) );
#else
m_cpuWatchTimer = new TQTimer(this);
- connect( m_cpuWatchTimer, SIGNAL(timeout()), this, SLOT(processModifiedCPUs()) );
+ connect( m_cpuWatchTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(processModifiedCPUs()) );
#endif
// Some devices do not receive update signals from udev
// These devices must be polled, and a good polling interval is 1 second
m_deviceWatchTimer = new TQTimer(this);
- connect( m_deviceWatchTimer, SIGNAL(timeout()), this, SLOT(processStatelessDevices()) );
+ connect( m_deviceWatchTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(processStatelessDevices()) );
// Special case for battery and power supply polling (longer delay, 5 seconds)
m_batteryWatchTimer = new TQTimer(this);
- connect( m_batteryWatchTimer, SIGNAL(timeout()), this, SLOT(processBatteryDevices()) );
+ connect( m_batteryWatchTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(processBatteryDevices()) );
// Update internal device information.
queryHardwareInformation();
@@ -2415,7 +2420,12 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD
if (device == 0) {
// Unhandled
if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Other);
- printf("[FIXME] UNCLASSIFIED DEVICE name: %s type: %s subsystem: %s driver: %s [Node Path: %s] [Syspath: %s] [%s:%s]\n", devicename.ascii(), devicetype.ascii(), devicesubsystem.ascii(), devicedriver.ascii(), devicenode.ascii(), udev_device_get_syspath(dev), devicevendorid.ascii(), devicemodelid.ascii()); fflush(stdout);
+ if (!m_unclassifiedDevices.contains(devicename))
+ {
+ m_unclassifiedDevices.append(devicename);
+ printf("[FIXME] UNCLASSIFIED DEVICE name: %s type: %s subsystem: %s driver: %s [Node Path: %s] [Syspath: %s] [%s:%s]\n",
+ devicename.ascii(), devicetype.ascii(), devicesubsystem.ascii(), devicedriver.ascii(), devicenode.ascii(), udev_device_get_syspath(dev), devicevendorid.ascii(), devicemodelid.ascii()); fflush(stdout);
+ }
}
// Root devices are special
@@ -2511,36 +2521,6 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice *devic
sdevice->internalSetFileSystemName("pictbridge");
}
else {
- bool removable = false;
- bool hotpluggable = false;
-
- // We can get the removable flag, but we have no idea if the device has the ability to notify on media insertion/removal
- // If there is no such notification possible, then we should not set the removable flag
- // udev can be such an amazing pain at times
- // It exports a /capabilities node with no info on what the bits actually mean
- // This information is very poorly documented as a set of #defines in include/linux/genhd.h
- // We are specifically interested in GENHD_FL_REMOVABLE and GENHD_FL_MEDIA_CHANGE_NOTIFY
- // The "removable" flag should also really be renamed to "hotpluggable", as that is far more precise...
- TQString capabilitynodename = systempath;
- capabilitynodename.append("/capability");
- TQFile capabilityfile( capabilitynodename );
- unsigned int capabilities = 0;
- if ( capabilityfile.open( IO_ReadOnly ) ) {
- TQTextStream stream( &capabilityfile );
- TQString capabilitystring;
- capabilitystring = stream.readLine();
- capabilities = capabilitystring.toUInt();
- capabilityfile.close();
- }
- if (capabilities & GENHD_FL_REMOVABLE) {
- // FIXME
- // For added fun this is not always true; i.e. GENHD_FL_REMOVABLE can be set when the device cannot be hotplugged (floppy drives).
- hotpluggable = true;
- }
- if (capabilities & GENHD_FL_MEDIA_CHANGE_NOTIFY) {
- removable = true;
- }
-
// See if any other devices are exclusively using this device, such as the Device Mapper
TQStringList holdingDeviceNodes;
TQString holdersnodename = udev_device_get_syspath(dev);
@@ -2733,21 +2713,16 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice *devic
}
}
- if (removable) {
+ if (readLineFile( systempath + "/removable" ).toUInt()) {
diskstatus = diskstatus | TDEDiskDeviceStatus::Removable;
}
- if (hotpluggable) {
- diskstatus = diskstatus | TDEDiskDeviceStatus::Hotpluggable;
- }
// Force removable flag for flash disks
// udev reports disks as non-removable for card readers on PCI controllers
- if (((disktype & TDEDiskDeviceType::CompactFlash)
+ else if ((disktype & TDEDiskDeviceType::CompactFlash)
|| (disktype & TDEDiskDeviceType::MemoryStick)
|| (disktype & TDEDiskDeviceType::SmartMedia)
- || (disktype & TDEDiskDeviceType::SDMMC))
- && !(diskstatus & TDEDiskDeviceStatus::Removable)
- && !(diskstatus & TDEDiskDeviceStatus::Hotpluggable)) {
- diskstatus = diskstatus | TDEDiskDeviceStatus::Hotpluggable;
+ || (disktype & TDEDiskDeviceType::SDMMC)) {
+ diskstatus = diskstatus | TDEDiskDeviceStatus::Removable;
}
if ((!filesystemtype.isEmpty()) && (filesystemtype.upper() != "CRYPTO_LUKS") &&
@@ -2765,7 +2740,7 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice *devic
// type string too. For example for LUKS disk, ID_TYPE is null and DEVTYPE is "disk"
diskstatus = diskstatus & ~TDEDiskDeviceStatus::Mountable;
}
- if (removable) {
+ if ( diskstatus & TDEDiskDeviceStatus::Removable ) {
if (sdevice->mediaInserted()) {
diskstatus = diskstatus | TDEDiskDeviceStatus::Inserted;
}
@@ -2955,7 +2930,7 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice *devic
ndevice->internalSetIpV6Netmask(address);
}
}
- s = getnameinfo(ifa->ifa_ifu.ifu_broadaddr, (family == AF_INET) ? sizeof(struct sockaddr_in) : sizeof(struct sockaddr_in6), host, NI_MAXHOST, NULL, 0, NI_NUMERICHOST);
+ s = ifa->ifa_ifu.ifu_broadaddr ? getnameinfo(ifa->ifa_ifu.ifu_broadaddr, (family == AF_INET) ? sizeof(struct sockaddr_in) : sizeof(struct sockaddr_in6), host, NI_MAXHOST, NULL, 0, NI_NUMERICHOST) : EAI_NONAME;
if (s == 0) {
TQString address(host);
if (family == AF_INET) {
@@ -2966,7 +2941,7 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice *devic
ndevice->internalSetIpV6Broadcast(address);
}
}
- s = getnameinfo(ifa->ifa_ifu.ifu_dstaddr, (family == AF_INET) ? sizeof(struct sockaddr_in) : sizeof(struct sockaddr_in6), host, NI_MAXHOST, NULL, 0, NI_NUMERICHOST);
+ s = ifa->ifa_ifu.ifu_dstaddr ? getnameinfo(ifa->ifa_ifu.ifu_dstaddr, (family == AF_INET) ? sizeof(struct sockaddr_in) : sizeof(struct sockaddr_in6), host, NI_MAXHOST, NULL, 0, NI_NUMERICHOST) : EAI_NONAME;
if (s == 0) {
TQString address(host);
if (family == AF_INET) {
diff --git a/tdecore/tdehw/tdehardwaredevices.h b/tdecore/tdehw/tdehardwaredevices.h
index db63e9d34..ad3f30c71 100644
--- a/tdecore/tdehw/tdehardwaredevices.h
+++ b/tdecore/tdehw/tdehardwaredevices.h
@@ -81,7 +81,7 @@ typedef TQDict<TDECPUDevice> TDECPUDeviceCache;
class TDECORE_EXPORT TDEHardwareDevices : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -306,6 +306,7 @@ class TDECORE_EXPORT TDEHardwareDevices : public TQObject
TDEDeviceIDMap* dpy_id_map;
TDECPUDeviceCache m_cpuByPathCache;
+ TQStringList m_unclassifiedDevices;
friend class TDEGenericDevice;
friend class TDEStorageDevice;
diff --git a/tdecore/tdehw/tdenetworkconnections.cpp b/tdecore/tdehw/tdenetworkconnections.cpp
index 0b6405ea3..9a273cebb 100644
--- a/tdecore/tdehw/tdenetworkconnections.cpp
+++ b/tdecore/tdehw/tdenetworkconnections.cpp
@@ -41,7 +41,7 @@
/*================================================================================================*/
extern "C" {
- KDE_EXPORT TDEGlobalNetworkManager* create_tdeGlobalNetworkManager()
+ TDE_EXPORT TDEGlobalNetworkManager* create_tdeGlobalNetworkManager()
{
return new TDEGlobalNetworkManager();
}
@@ -707,7 +707,7 @@ TDEWiFiConnection::~TDEWiFiConnection() {
TDENetworkConnectionManager::TDENetworkConnectionManager(TDENetworkDevice *networkDevice) : TQObject(), m_connectionList(NULL), m_hwNeighborList(NULL), m_networkDevice(networkDevice), m_prevConnectionStatus(TDENetworkGlobalManagerFlags::Unknown) {
m_emissionTimer = new TQTimer();
- connect(m_emissionTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(emitQueuedSignals()));
+ connect(m_emissionTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(emitQueuedSignals()));
if (!m_emissionTimer->isActive()) m_emissionTimer->start(0, true);
}
@@ -962,9 +962,9 @@ TDEGlobalNetworkManager::TDEGlobalNetworkManager() : m_internalConnectionManager
m_internalConnectionManager = new TDENetworkConnectionManager_BackendNM(NULL);
#endif // WITH_NETWORK_MANAGER_BACKEND
if (m_internalConnectionManager) {
- connect(m_internalConnectionManager, SIGNAL(networkConnectionStateChanged(TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags, TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags)), this, SIGNAL(networkConnectionStateChanged(TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags, TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags)));
- connect(m_internalConnectionManager, SIGNAL(vpnEvent(TDENetworkVPNEventType::TDENetworkVPNEventType, TQString)), this, SIGNAL(vpnEvent(TDENetworkVPNEventType::TDENetworkVPNEventType, TQString)));
- connect(m_internalConnectionManager, SIGNAL(networkManagementEvent(TDENetworkGlobalEventType::TDENetworkGlobalEventType)), this, SIGNAL(networkManagementEvent(TDENetworkGlobalEventType::TDENetworkGlobalEventType)));
+ connect(m_internalConnectionManager, TQ_SIGNAL(networkConnectionStateChanged(TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags, TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags)), this, TQ_SIGNAL(networkConnectionStateChanged(TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags, TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags)));
+ connect(m_internalConnectionManager, TQ_SIGNAL(vpnEvent(TDENetworkVPNEventType::TDENetworkVPNEventType, TQString)), this, TQ_SIGNAL(vpnEvent(TDENetworkVPNEventType::TDENetworkVPNEventType, TQString)));
+ connect(m_internalConnectionManager, TQ_SIGNAL(networkManagementEvent(TDENetworkGlobalEventType::TDENetworkGlobalEventType)), this, TQ_SIGNAL(networkManagementEvent(TDENetworkGlobalEventType::TDENetworkGlobalEventType)));
}
}
diff --git a/tdecore/tdehw/tdenetworkconnections.h b/tdecore/tdehw/tdenetworkconnections.h
index 806c162a8..aa44e8edb 100644
--- a/tdecore/tdehw/tdenetworkconnections.h
+++ b/tdecore/tdehw/tdenetworkconnections.h
@@ -1015,7 +1015,7 @@ class TQTimer;
class TDECORE_EXPORT TDENetworkConnectionManager : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -1364,7 +1364,7 @@ class TDECORE_EXPORT TDENetworkConnectionManager : public TQObject
class TDECORE_EXPORT TDEGlobalNetworkManager : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
diff --git a/tdecore/tdehw/tderootsystemdevice.cpp b/tdecore/tdehw/tderootsystemdevice.cpp
index 4fe075831..65194374d 100644
--- a/tdecore/tdehw/tderootsystemdevice.cpp
+++ b/tdecore/tdehw/tderootsystemdevice.cpp
@@ -28,7 +28,7 @@
#include "tdeglobal.h"
#include "tdeconfig.h"
#include "tdeapplication.h"
-#include "kstandarddirs.h"
+#include "tdestandarddirs.h"
#include "config.h"
@@ -851,7 +851,7 @@ bool TDERootSystemDevice::setPowerState(TDESystemPowerState::TDESystemPowerState
TQByteArray data;
TQDataStream arg(data, IO_WriteOnly);
arg << (int)0 << (int)2 << (int)2;
- if ( kapp->dcopClient()->send("ksmserver", "default", "logout(int,int,int)", data) ) {
+ if ( tdeApp->dcopClient()->send("ksmserver", "default", "logout(int,int,int)", data) ) {
return true;
}
return false;
@@ -902,7 +902,7 @@ bool TDERootSystemDevice::setPowerState(TDESystemPowerState::TDESystemPowerState
TQByteArray data;
TQDataStream arg(data, IO_WriteOnly);
arg << (int)0 << (int)1 << (int)2;
- if ( kapp->dcopClient()->send("ksmserver", "default", "logout(int,int,int)", data) ) {
+ if ( tdeApp->dcopClient()->send("ksmserver", "default", "logout(int,int,int)", data) ) {
return true;
}
return false;
diff --git a/tdecore/tdehw/tdestoragedevice.cpp b/tdecore/tdehw/tdestoragedevice.cpp
index 08fb246e1..318768dfe 100644
--- a/tdecore/tdehw/tdestoragedevice.cpp
+++ b/tdecore/tdehw/tdestoragedevice.cpp
@@ -34,7 +34,7 @@
#include "tdeglobal.h"
#include "kiconloader.h"
#include "tdetempfile.h"
-#include "kstandarddirs.h"
+#include "tdestandarddirs.h"
#include "tdehardwaredevices.h"
#include "disksHelper.h"
@@ -53,7 +53,7 @@
#endif
#endif
-TDEStorageDevice::TDEStorageDevice(TDEGenericDeviceType::TDEGenericDeviceType dt, TQString dn) : TDEGenericDevice(dt, dn), m_mediaInserted(true), m_cryptDevice(NULL) {
+TDEStorageDevice::TDEStorageDevice(TDEGenericDeviceType::TDEGenericDeviceType dt, TQString dn) : TDEGenericDevice(dt, dn), m_mediaInserted(true), m_cryptDevice(NULL), m_cryptKeySlotCount(0) {
m_diskType = TDEDiskDeviceType::Null;
m_diskStatus = TDEDiskDeviceStatus::Null;
}
@@ -504,7 +504,7 @@ TQString TDEStorageDevice::friendlyName() {
TQString label = diskLabel();
if (label.isNull()) {
if (deviceSize() > 0) {
- if (checkDiskStatus(TDEDiskDeviceStatus::Hotpluggable)) {
+ if (checkDiskStatus(TDEDiskDeviceStatus::Removable)) {
label = i18n("%1 Removable Device").arg(deviceFriendlySize());
}
else {
@@ -561,7 +561,7 @@ TQString TDEStorageDevice::friendlyDeviceType() {
if (isDiskOfType(TDEDiskDeviceType::HDD)) {
ret = i18n("Hard Disk Drive");
- if (checkDiskStatus(TDEDiskDeviceStatus::Hotpluggable)) {
+ if (checkDiskStatus(TDEDiskDeviceStatus::Removable)) {
ret = i18n("Removable Storage");
}
if (isDiskOfType(TDEDiskDeviceType::CompactFlash)) {
@@ -632,7 +632,7 @@ TQPixmap TDEStorageDevice::icon(TDEIcon::StdSizes size) {
if (isDiskOfType(TDEDiskDeviceType::HDD)) {
ret = DesktopIcon("drive-harddisk" + mountString, size);
- if (checkDiskStatus(TDEDiskDeviceStatus::Hotpluggable)) {
+ if (checkDiskStatus(TDEDiskDeviceStatus::Removable)) {
ret = DesktopIcon("media-flash-usb" + mountString, size);
}
if (isDiskOfType(TDEDiskDeviceType::CompactFlash)) {
diff --git a/tdecore/tdehw/tdestoragedevice.h b/tdecore/tdehw/tdestoragedevice.h
index c279586f8..88a387377 100644
--- a/tdecore/tdehw/tdestoragedevice.h
+++ b/tdecore/tdehw/tdestoragedevice.h
@@ -22,16 +22,13 @@
#include "tdegenericdevice.h"
#include "tqvariant.h"
+#include "tdemacros.h"
struct crypt_device;
// Keep readDiskDeviceSubtypeFromString() in tdehardwaredevices.cpp in sync with this enum
namespace TDEDiskDeviceType {
-#if __cplusplus >= 201103L
enum TDEDiskDeviceType : unsigned long long {
-#else
-enum TDEDiskDeviceType {
-#endif
Null = 0x0000000000000000ULL,
MediaDevice = 0x0000000000000001ULL,
Floppy = 0x0000000000000002ULL,
@@ -107,7 +104,7 @@ enum TDEDiskDeviceStatus {
UsedByDevice = 0x00000010,
UsesDevice = 0x00000020,
ContainsFilesystem = 0x00000040,
- Hotpluggable = 0x00000080,
+ // Do not use 0x00000080, it was `Hotpluggable` up to the R14.1.x series
Hidden = 0x00000100,
Other = 0x80000000
};
diff --git a/tdecore/kinstance.cpp b/tdecore/tdeinstance.cpp
index 8ae747948..c8235e45e 100644
--- a/tdecore/kinstance.cpp
+++ b/tdecore/tdeinstance.cpp
@@ -15,7 +15,7 @@
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
-#include "kinstance.h"
+#include "tdeinstance.h"
#include <stdlib.h>
#include <unistd.h>
@@ -31,7 +31,7 @@
#include "tdenetworkconnections.h"
#endif
#include "tdeaboutdata.h"
-#include "kstandarddirs.h"
+#include "tdestandarddirs.h"
#include "kdebug.h"
#include "tdeglobal.h"
#include "kmimesourcefactory.h"
@@ -46,7 +46,7 @@
static TQPtrDict<TQCString> *allOldInstances = 0;
#define DEBUG_ADD do { if (!allInstances) { allInstances = new TQPtrList<TDEInstance>(); allOldInstances = new TQPtrDict<TQCString>(); } allInstances->append(this); allOldInstances->insert( this, new TQCString( _name)); } while (false);
#define DEBUG_REMOVE do { allInstances->removeRef(this); } while (false);
- #define DEBUG_CHECK_ALIVE do { if (!allInstances->contains((TDEInstance*)this)) { TQCString *old = allOldInstances->find((TDEInstance*)this); tqWarning("ACCESSING DELETED KINSTANCE! (%s)", old ? old->data() : "<unknown>"); assert(false); } } while (false);
+ #define DEBUG_CHECK_ALIVE do { if (!allInstances->contains((TDEInstance*)this)) { TQCString *old = allOldInstances->find((TDEInstance*)this); tqWarning("ACCESSING DELETED TDEINSTANCE! (%s)", old ? old->data() : "<unknown>"); assert(false); } } while (false);
#else
#define DEBUG_ADD
#define DEBUG_REMOVE
diff --git a/tdecore/kinstance.h b/tdecore/tdeinstance.h
index e0fdf73de..7ded51878 100644
--- a/tdecore/kinstance.h
+++ b/tdecore/tdeinstance.h
@@ -1,4 +1,4 @@
-/* This file is part of the KDE libraries
+/* This file is part of the TDE libraries
Copyright (C) 1999 Torben Weis <weis@kde.org>
This library is free software; you can redistribute it and/or
@@ -15,8 +15,8 @@
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
-#ifndef _KINSTANCE_H
-#define _KINSTANCE_H
+#ifndef _TDEINSTANCE_H
+#define _TDEINSTANCE_H
#include <tqstring.h>
#include "tdelibs_export.h"
@@ -37,8 +37,8 @@ class TDEGlobalNetworkManager;
/**
- * Access to KDE global objects for use in shared libraries. In
- * practical terms, this class is used in KDE components. This allows
+ * Access to TDE global objects for use in shared libraries. In
+ * practical terms, this class is used in TDE components. This allows
* components to store things that normally would be accessed by
* TDEGlobal.
*
@@ -101,8 +101,8 @@ class TDECORE_EXPORT TDEInstance
/**
* Set a read-only flag on the configuration files
* This must be called before config() or dirs() to have any effect
- * Defaults to FALSE
- * @param ro read only if TRUE
+ * Defaults to false
+ * @param ro read only if true
*/
void setConfigReadOnly(bool ro);
diff --git a/tdecore/tdelibs_export.h b/tdecore/tdelibs_export.h
index 7d2ab7db2..78f129f89 100644
--- a/tdecore/tdelibs_export.h
+++ b/tdecore/tdelibs_export.h
@@ -20,42 +20,42 @@
#ifndef _TDELIBS_EXPORT_H
#define _TDELIBS_EXPORT_H
-/* needed for KDE_EXPORT macros */
-#include <kdemacros.h>
+/* needed for TDE_EXPORT macros */
+#include <tdemacros.h>
/* needed, because e.g. Q_OS_UNIX is so frequently used */
#include <tqglobal.h>
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
#include <tdelibs_export_win.h>
#else /* Q_OS_UNIX */
/* export statements for unix */
-#define TDECORE_EXPORT KDE_EXPORT
-#define TDEUI_EXPORT KDE_EXPORT
-#define TDEFX_EXPORT KDE_EXPORT
-#define TDEPRINT_EXPORT KDE_EXPORT
-#define TDEDNSSD_EXPORT KDE_EXPORT
-#define TDEIO_EXPORT KDE_EXPORT
-#define DCOP_EXPORT KDE_EXPORT
-#define TDEPARTS_EXPORT KDE_EXPORT
-#define KTEXTEDITOR_EXPORT KDE_EXPORT
-#define KABC_EXPORT KDE_EXPORT
-#define TDESU_EXPORT KDE_EXPORT
-#define KVCARD_EXPORT KDE_EXPORT
-#define TDERESOURCES_EXPORT KDE_EXPORT
-#define TDESTYLE_EXPORT KDE_EXPORT
-#define TDEHTML_EXPORT KDE_EXPORT
-#define KMDI_EXPORT KDE_EXPORT
-#define TDEUTILS_EXPORT KDE_EXPORT
-#define KATEPARTINTERFACES_EXPORT KDE_EXPORT
-#define KATEPART_EXPORT KDE_EXPORT
-#define KMID_EXPORT KDE_EXPORT
-#define TDERANDR_EXPORT KDE_EXPORT
-#define TDEIMPROXY_EXPORT KDE_EXPORT
-#define KDE_ARTS_EXPORT KDE_EXPORT
-#define TDEUNITTEST_EXPORT KDE_EXPORT
+#define TDECORE_EXPORT TDE_EXPORT
+#define TDEUI_EXPORT TDE_EXPORT
+#define TDEFX_EXPORT TDE_EXPORT
+#define TDEPRINT_EXPORT TDE_EXPORT
+#define TDEDNSSD_EXPORT TDE_EXPORT
+#define TDEIO_EXPORT TDE_EXPORT
+#define DCOP_EXPORT TDE_EXPORT
+#define TDEPARTS_EXPORT TDE_EXPORT
+#define KTEXTEDITOR_EXPORT TDE_EXPORT
+#define KABC_EXPORT TDE_EXPORT
+#define TDESU_EXPORT TDE_EXPORT
+#define KVCARD_EXPORT TDE_EXPORT
+#define TDERESOURCES_EXPORT TDE_EXPORT
+#define TDESTYLE_EXPORT TDE_EXPORT
+#define TDEHTML_EXPORT TDE_EXPORT
+#define KMDI_EXPORT TDE_EXPORT
+#define TDEUTILS_EXPORT TDE_EXPORT
+#define KATEPARTINTERFACES_EXPORT TDE_EXPORT
+#define KATEPART_EXPORT TDE_EXPORT
+#define KMID_EXPORT TDE_EXPORT
+#define TDERANDR_EXPORT TDE_EXPORT
+#define TDEIMPROXY_EXPORT TDE_EXPORT
+#define KDE_ARTS_EXPORT TDE_EXPORT
+#define TDEUNITTEST_EXPORT TDE_EXPORT
#define KPATH_SEPARATOR ':'
@@ -69,18 +69,18 @@
/* workaround for tdecore: stupid moc's grammar doesn't accept two macros
between 'class' keyword and <classname>: */
-#ifdef KDE_DEPRECATED
+#ifdef TDE_DEPRECATED
# ifndef TDECORE_EXPORT_DEPRECATED
-# define TDECORE_EXPORT_DEPRECATED KDE_DEPRECATED TDECORE_EXPORT
+# define TDECORE_EXPORT_DEPRECATED TDE_DEPRECATED TDECORE_EXPORT
# endif
# ifndef TDEIO_EXPORT_DEPRECATED
-# define TDEIO_EXPORT_DEPRECATED KDE_DEPRECATED TDEIO_EXPORT
+# define TDEIO_EXPORT_DEPRECATED TDE_DEPRECATED TDEIO_EXPORT
# endif
# ifndef TDEUI_EXPORT_DEPRECATED
-# define TDEUI_EXPORT_DEPRECATED KDE_DEPRECATED TDEUI_EXPORT
+# define TDEUI_EXPORT_DEPRECATED TDE_DEPRECATED TDEUI_EXPORT
# endif
# ifndef KABC_EXPORT_DEPRECATED
-# define KABC_EXPORT_DEPRECATED KDE_DEPRECATED KABC_EXPORT
+# define KABC_EXPORT_DEPRECATED TDE_DEPRECATED KABC_EXPORT
# endif
#endif
/* (let's add KDE****_EXPORT_DEPRECATED for other libraries if it's needed) */
diff --git a/tdecore/tdelocale.cpp b/tdecore/tdelocale.cpp
index 91e0865bf..1e771c85a 100644
--- a/tdecore/tdelocale.cpp
+++ b/tdecore/tdelocale.cpp
@@ -33,16 +33,16 @@
#include "kcatalogue.h"
#include "tdeglobal.h"
-#include "kstandarddirs.h"
-#include "ksimpleconfig.h"
-#include "kinstance.h"
+#include "tdestandarddirs.h"
+#include "tdesimpleconfig.h"
+#include "tdeinstance.h"
#include "tdeconfig.h"
#include "kdebug.h"
#include "kcalendarsystem.h"
#include "kcalendarsystemfactory.h"
#include "tdelocale.h"
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
#include <windows.h>
#endif
@@ -72,7 +72,7 @@ public:
KCalendarSystem * calendar;
bool utf8FileEncoding;
TQString appName;
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
char win32SystemEncoding[3+7]; //"cp " + lang ID
#endif
bool useMainCatalogue;
@@ -310,7 +310,7 @@ void TDELocale::initFormat()
TDEConfigGroupSaver saver(config, "Locale");
- KSimpleConfig entry(locate("locale",
+ TDESimpleConfig entry(locate("locale",
TQString::fromLatin1("l10n/%1/entry.desktop")
.arg(m_country)), true);
entry.setGroup("KCM Locale");
@@ -370,7 +370,7 @@ void TDELocale::initFormat()
//Grammatical
//Precedence here is l10n / i18n / config file
- KSimpleConfig language(locate("locale",
+ TDESimpleConfig language(locate("locale",
TQString::fromLatin1("%1/entry.desktop")
.arg(m_language)), true);
language.setGroup("KCM Locale");
@@ -1218,34 +1218,34 @@ static void _inc_by_one(TQString &str, int position)
switch(last_char)
{
case '0':
- str[i] = (QChar)'1';
+ str[i] = (TQChar)'1';
break;
case '1':
- str[i] = (QChar)'2';
+ str[i] = (TQChar)'2';
break;
case '2':
- str[i] = (QChar)'3';
+ str[i] = (TQChar)'3';
break;
case '3':
- str[i] = (QChar)'4';
+ str[i] = (TQChar)'4';
break;
case '4':
- str[i] = (QChar)'5';
+ str[i] = (TQChar)'5';
break;
case '5':
- str[i] = (QChar)'6';
+ str[i] = (TQChar)'6';
break;
case '6':
- str[i] = (QChar)'7';
+ str[i] = (TQChar)'7';
break;
case '7':
- str[i] = (QChar)'8';
+ str[i] = (TQChar)'8';
break;
case '8':
- str[i] = (QChar)'9';
+ str[i] = (TQChar)'9';
break;
case '9':
- str[i] = (QChar)'0';
+ str[i] = (TQChar)'0';
if (i == 0) str.prepend('1');
continue;
case '.':
@@ -1310,8 +1310,8 @@ TQString TDELocale::formatNumber(const TQString &numStr, bool round,
// Skip the sign (for now)
- bool neg = (tmpString[0] == (QChar)'-');
- if (neg || tmpString[0] == (QChar)'+') tmpString.remove(0, 1);
+ bool neg = (tmpString[0] == (TQChar)'-');
+ if (neg || tmpString[0] == (TQChar)'+') tmpString.remove(0, 1);
// Split off exponential part (including 'e'-symbol)
TQString mantString = tmpString.section('e', 0, 0,
@@ -1472,7 +1472,7 @@ double TDELocale::readNumber(const TQString &_str, bool * ok) const
}
TQString tot;
- if (neg) tot = (QChar)'-';
+ if (neg) tot = (TQChar)'-';
tot += major + '.' + minor + exponentialPart;
@@ -1502,7 +1502,7 @@ double TDELocale::readMoney(const TQString &_str, bool * ok) const
// (with a special case for parenthesis)
if (negativeMonetarySignPosition() == ParensAround)
{
- if (str[0] == (QChar)'(' && str[str.length()-1] == (QChar)')')
+ if (str[0] == (TQChar)'(' && str[str.length()-1] == (TQChar)')')
{
neg = true;
str.remove(str.length()-1,1);
@@ -1569,7 +1569,7 @@ double TDELocale::readMoney(const TQString &_str, bool * ok) const
}
TQString tot;
- if (neg) tot = (QChar)'-';
+ if (neg) tot = (TQChar)'-';
tot += major + '.' + minior;
return tot.toDouble(ok);
}
@@ -1626,7 +1626,7 @@ TQDate TDELocale::readDate(const TQString &intstr, const TQString &fmt, bool* ok
TQChar c = fmt.at(fmtpos++);
- if (c != (QChar)'%') {
+ if (c != (TQChar)'%') {
if (c.isSpace() && str.at(strpos).isSpace())
strpos++;
else if (c != str.at(strpos++))
@@ -1648,7 +1648,7 @@ TQDate TDELocale::readDate(const TQString &intstr, const TQString &fmt, bool* ok
error = true;
j = 1;
while (error && (j < 8)) {
- TQString s = calendar()->weekDayName(j, c == (QChar)'a').lower();
+ TQString s = calendar()->weekDayName(j, c == (TQChar)'a').lower();
int len = s.length();
if (str.mid(strpos, len) == s)
{
@@ -1665,7 +1665,7 @@ TQDate TDELocale::readDate(const TQString &intstr, const TQString &fmt, bool* ok
if (d->nounDeclension && d->dateMonthNamePossessive) {
j = 1;
while (error && (j < 13)) {
- TQString s = calendar()->monthNamePossessive(j, year, c == (QChar)'b').lower();
+ TQString s = calendar()->monthNamePossessive(j, year, c == (TQChar)'b').lower();
int len = s.length();
if (str.mid(strpos, len) == s) {
month = j;
@@ -1677,7 +1677,7 @@ TQDate TDELocale::readDate(const TQString &intstr, const TQString &fmt, bool* ok
}
j = 1;
while (error && (j < 13)) {
- TQString s = calendar()->monthName(j, year, c == (QChar)'b').lower();
+ TQString s = calendar()->monthName(j, year, c == (TQChar)'b').lower();
int len = s.length();
if (str.mid(strpos, len) == s) {
month = j;
@@ -1766,7 +1766,7 @@ TQTime TDELocale::readTime(const TQString &intstr, ReadTimeFlags flags, bool *ok
TQChar c = Format.at(Formatpos++);
- if (c != (QChar)'%')
+ if (c != (TQChar)'%')
{
if (c.isSpace())
strpos++;
@@ -1885,7 +1885,7 @@ TQString TDELocale::formatTime(const TQTime &pTime, bool includeSecs, bool isDur
switch ( TQChar(rst.at( format_index )).unicode() )
{
case '%':
- buffer[index++] = (QChar)'%';
+ buffer[index++] = (TQChar)'%';
break;
case 'H':
put_it_in( buffer, index, pTime.hour() );
@@ -1969,8 +1969,8 @@ TQString TDELocale::formatDateTime(const TQDateTime &pDateTime,
bool includeSeconds) const
{
return translate("concatenation of dates and time", "%1 %2")
- .arg( formatDate( TQT_TQDATE_OBJECT(pDateTime.date()), shortFormat ) )
- .arg( formatTime( TQT_TQTIME_OBJECT(pDateTime.time()), includeSeconds ) );
+ .arg( formatDate( pDateTime.date(), shortFormat ) )
+ .arg( formatTime( pDateTime.time(), includeSeconds ) );
}
TQString i18n(const char* text)
@@ -2083,22 +2083,12 @@ void TDELocale::initFileNameEncoding(TDEConfig *)
// which, on Unix platforms, use the locale's codec.
}
-#ifdef USE_QT3
TQCString TDELocale::encodeFileNameUTF8( const TQString & fileName )
-#endif // USE_QT3
-#ifdef USE_QT4
-QByteArray TDELocale::encodeFileNameUTF8( const QString & fileName )
-#endif // USE_QT4
{
return TQString(fileName).utf8();
}
-#ifdef USE_QT3
TQString TDELocale::decodeFileNameUTF8( const TQCString & localFileName )
-#endif // USE_QT3
-#ifdef USE_QT4
-QString TDELocale::decodeFileNameUTF8( const QByteArray & localFileName )
-#endif // USE_QT4
{
return TQString::fromUtf8(localFileName);
}
@@ -2274,7 +2264,7 @@ TQString TDELocale::defaultCountry()
const char * TDELocale::encoding() const
{
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
if (0==qstrcmp("System", codecForEncoding()->name()))
{
//win32 returns "System" codec name here but KDE apps expect a real name:
diff --git a/tdecore/tdelocale.h b/tdecore/tdelocale.h
index b52a32157..395344890 100644
--- a/tdecore/tdelocale.h
+++ b/tdecore/tdelocale.h
@@ -410,7 +410,7 @@ public:
*
* calls formatNumber(numStr, 2)
*/
- TQString formatNumber(const TQString &numStr) const KDE_DEPRECATED;
+ TQString formatNumber(const TQString &numStr) const TDE_DEPRECATED;
/**
* Given a string representing a number, converts that to a numeric
@@ -512,7 +512,7 @@ public:
*
* @return true if the week starts on Monday
*/
- bool weekStartsMonday() const KDE_DEPRECATED; //### remove for KDE 4.0
+ bool weekStartsMonday() const TDE_DEPRECATED; //### remove for KDE 4.0
/**
* Use this to determine which day is the first day of the week.
@@ -542,7 +542,7 @@ public:
* \endcode
* to the applicable file.
*/
- TQString monthName(int i, bool shortName = false) const KDE_DEPRECATED;
+ TQString monthName(int i, bool shortName = false) const TDE_DEPRECATED;
/**
* @deprecated
@@ -567,7 +567,7 @@ public:
* \endcode
* to the applicable file.
*/
- TQString monthNamePossessive(int i, bool shortName = false) const KDE_DEPRECATED;
+ TQString monthNamePossessive(int i, bool shortName = false) const TDE_DEPRECATED;
/**
* @deprecated use calendar()->weekDayName
@@ -579,7 +579,7 @@ public:
*
* @return The name of the day
*/
- TQString weekDayName(int i, bool shortName = false) const KDE_DEPRECATED;
+ TQString weekDayName(int i, bool shortName = false) const TDE_DEPRECATED;
/**
* Returns a pointer to the calendar system object.
@@ -880,7 +880,7 @@ public:
*
* @param start True if Monday is the first day in the week
*/
- void setWeekStartsMonday(bool start) KDE_DEPRECATED; //### remove for KDE 4.0
+ void setWeekStartsMonday(bool start) TDE_DEPRECATED; //### remove for KDE 4.0
/**
* Changes how TDELocale defines the first day in week.
@@ -1148,7 +1148,7 @@ private:
* @deprecated
* use formatMoney(double)
*/
- TQString formatMoney(const TQString &numStr) const KDE_DEPRECATED;
+ TQString formatMoney(const TQString &numStr) const TDE_DEPRECATED;
/**
* @deprecated
@@ -1156,19 +1156,19 @@ private:
*
* @return String containing language codes separated by colons
*/
- TQString languages() const KDE_DEPRECATED;
+ TQString languages() const TDE_DEPRECATED;
/**
* @deprecated
* @return True
*/
- bool setCharset(const TQString & charset) KDE_DEPRECATED;
+ bool setCharset(const TQString & charset) TDE_DEPRECATED;
/**
* @deprecated
* @see encoding
*/
- TQString charset() const KDE_DEPRECATED;
+ TQString charset() const TDE_DEPRECATED;
protected:
/**
@@ -1220,22 +1220,12 @@ private:
/**
* @internal A TQFile filename encoding function (TQFile::encodeFn).
*/
-#ifdef USE_QT3
static TQCString encodeFileNameUTF8( const TQString & fileName );
-#endif // USE_QT3
-#ifdef USE_QT4
- static QByteArray encodeFileNameUTF8( const QString & fileName );
-#endif // USE_QT4
/**
* @internal TQFile filename decoding function (TQFile::decodeFn).
*/
-#ifdef USE_QT3
static TQString decodeFileNameUTF8( const TQCString & localFileName );
-#endif // USE_QT3
-#ifdef USE_QT4
- static QString decodeFileNameUTF8( const QByteArray & localFileName );
-#endif // USE_QT4
/**
* @internal Changes the file name of the catalog to the correct
diff --git a/tdecore/kdemacros.h.cmake b/tdecore/tdemacros.h.cmake
index 083cc8c8d..34c945872 100644
--- a/tdecore/kdemacros.h.cmake
+++ b/tdecore/tdemacros.h.cmake
@@ -1,5 +1,5 @@
-/* This file is part of the KDE libraries
- Copyright (c) 2002-2003 KDE Team
+/* This file is part of the TDE libraries
+ Copyright (c) 2002-2003 TDE Team
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
@@ -17,15 +17,15 @@
Boston, MA 02110-1301, USA.
*/
-#ifndef _KDE_MACROS_H_
-#define _KDE_MACROS_H_
+#ifndef _TDE_MACROS_H_
+#define _TDE_MACROS_H_
/* Set by configure */
#cmakedefine __TDE_HAVE_TDEHWLIB 1
-#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
+#cmakedefine __TDE_HAVE_GCC_VISIBILITY 1
/**
- * The KDE_NO_EXPORT macro marks the symbol of the given variable
+ * The TDE_NO_EXPORT macro marks the symbol of the given variable
* to be hidden. A hidden symbol is stripped during the linking step,
* so it can't be used from outside the resulting library, which is similar
* to static. However, static limits the visibility to the current
@@ -33,135 +33,100 @@
* units.
*
* \code
- * int KDE_NO_EXPORT foo;
- * int KDE_EXPORT bar;
+ * int TDE_NO_EXPORT foo;
+ * int TDE_EXPORT bar;
* \end
*/
-#ifdef __KDE_HAVE_GCC_VISIBILITY
-#define KDE_NO_EXPORT __attribute__ ((visibility("hidden")))
-#define KDE_EXPORT __attribute__ ((visibility("default")))
-#elif defined(Q_WS_WIN)
-#define KDE_NO_EXPORT
-#define KDE_EXPORT __declspec(dllexport)
+#ifdef __TDE_HAVE_GCC_VISIBILITY
+#define TDE_NO_EXPORT __attribute__ ((visibility("hidden")))
+#define TDE_EXPORT __attribute__ ((visibility("default")))
+#elif defined(TQ_WS_WIN)
+#define TDE_NO_EXPORT
+#define TDE_EXPORT __declspec(dllexport)
#else
-#define KDE_NO_EXPORT
-#define KDE_EXPORT
+#define TDE_NO_EXPORT
+#define TDE_EXPORT
#endif
/**
- * KDE_Q_EXPORT_PLUGIN is a workaround for Qt not being able to
+ * TDE_EXPORT_PLUGIN is a workaround for Qt not being able to
* cope with symbol visibility.
*/
-#define KDE_Q_EXPORT_PLUGIN(PLUGIN) \
- TQ_EXTERN_C KDE_EXPORT const char* tqt_ucm_query_verification_data(); \
- TQ_EXTERN_C KDE_EXPORT TQUnknownInterface* ucm_instantiate(); \
+#define TDE_EXPORT_PLUGIN(PLUGIN) \
+ TQ_EXTERN_C TDE_EXPORT const char* qt_ucm_query_verification_data(); \
+ TQ_EXTERN_C TDE_EXPORT TQUnknownInterface* ucm_instantiate(); \
TQ_EXPORT_PLUGIN(PLUGIN)
/**
- * The KDE_PACKED can be used to hint the compiler that a particular
+ * The TDE_PACKED can be used to hint the compiler that a particular
* structure or class should not contain unnecessary paddings.
*/
#ifdef __GNUC__
-#define KDE_PACKED __attribute__((__packed__))
+#define TDE_PACKED __attribute__((__packed__))
#else
-#define KDE_PACKED
+#define TDE_PACKED
#endif
/**
- * The KDE_DEPRECATED macro can be used to trigger compile-time warnings
+ * The TDE_DEPRECATED macro can be used to trigger compile-time warnings
* with newer compilers when deprecated functions are used.
*
* For non-inline functions, the macro gets inserted at the very end of the
* function declaration, right before the semicolon:
*
* \code
- * DeprecatedConstructor() KDE_DEPRECATED;
- * void deprecatedFunctionA() KDE_DEPRECATED;
- * int deprecatedFunctionB() const KDE_DEPRECATED;
+ * DeprecatedConstructor() TDE_DEPRECATED;
+ * void deprecatedFunctionA() TDE_DEPRECATED;
+ * int deprecatedFunctionB() const TDE_DEPRECATED;
* \endcode
*
* Functions which are implemented inline are handled differently: for them,
- * the KDE_DEPRECATED macro is inserted at the front, right before the return
+ * the TDE_DEPRECATED macro is inserted at the front, right before the return
* type, but after "static" or "virtual":
*
* \code
- * KDE_DEPRECATED void deprecatedInlineFunctionA() { .. }
- * virtual KDE_DEPRECATED int deprecatedInlineFunctionB() { .. }
- * static KDE_DEPRECATED bool deprecatedInlineFunctionC() { .. }
+ * TDE_DEPRECATED void deprecatedInlineFunctionA() { .. }
+ * virtual TDE_DEPRECATED int deprecatedInlineFunctionB() { .. }
+ * static TDE_DEPRECATED bool deprecatedInlineFunctionC() { .. }
* \end
*
* You can also mark whole structs or classes as deprecated, by inserting the
- * KDE_DEPRECATED macro after the struct/class keyword, but before the
+ * TDE_DEPRECATED macro after the struct/class keyword, but before the
* name of the struct/class:
*
* \code
- * class KDE_DEPRECATED DeprecatedClass { };
- * struct KDE_DEPRECATED DeprecatedStruct { };
+ * class TDE_DEPRECATED DeprecatedClass { };
+ * struct TDE_DEPRECATED DeprecatedStruct { };
* \endcode
*
* \note
- * It does not make much sense to use the KDE_DEPRECATED keyword for a Qt signal;
+ * It does not make much sense to use the TDE_DEPRECATED keyword for a TQt signal;
* this is because usually get called by the class which they belong to,
* and one'd assume that a class author doesn't use deprecated methods of his
* own class. The only exception to this are signals which are connected to
* other signals; they get invoked from moc-generated code. In any case,
* printing a warning message in either case is not useful.
* For slots, it can make sense (since slots can be invoked directly) but be
- * aware that if the slots get triggered by a signal, the will get called from
+ * aware that if the slots get triggered by a signal, it will get called from
* moc code as well and thus the warnings are useless.
*
* \par
- * Also note that it is not possible to use KDE_DEPRECATED for classes which
+ * Also note that it is not possible to use TDE_DEPRECATED for classes which
* use the k_dcop keyword (to indicate a DCOP interface declaration); this is
* because the dcopidl program would choke on the unexpected declaration
* syntax.
*/
-#ifndef KDE_DEPRECATED
-#if __GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2)
- /* gcc >= 3.2 */
-# define KDE_DEPRECATED __attribute__ ((deprecated))
-#elif defined(_MSC_VER) && (_MSC_VER >= 1300)
- /* msvc >= 7 */
-# define KDE_DEPRECATED __declspec(deprecated)
-#else
-# define KDE_DEPRECATED
-#endif
-#endif
-
-/**
- * The KDE_ISLIKELY macro tags a boolean expression as likely to evaluate to
- * 'true'. When used in an if ( ) statement, it gives a hint to the compiler
- * that the following codeblock is likely to get executed. Providing this
- * information helps the compiler to optimize the code for better performance.
- * Using the macro has an insignificant code size or runtime memory footprint impact.
- * The code semantics is not affected.
- *
- * \note
- * Providing wrong information ( like marking a condition that almost never
- * passes as 'likely' ) will cause a significant runtime slowdown. Therefore only
- * use it for cases where you can be sure about the odds of the expression to pass
- * in all cases ( independent from e.g. user configuration ).
- *
- * \par
- * The KDE_ISUNLIKELY macro tags an expression as unlikely evaluating to 'true'.
- *
- * \note
- * Do NOT use ( !KDE_ISLIKELY(foo) ) as an replacement for KDE_ISUNLIKELY !
- *
- * \code
- * if ( KDE_ISUNLIKELY( testsomething() ) )
- * abort(); // assume its unlikely that the application aborts
- * \endcode
- */
-#if __GNUC__ - 0 >= 3
-# define KDE_ISLIKELY( x ) __builtin_expect(!!(x),1)
-# define KDE_ISUNLIKELY( x ) __builtin_expect(!!(x),0)
-#else
-# define KDE_ISLIKELY( x ) ( x )
-# define KDE_ISUNLIKELY( x ) ( x )
+#ifndef TDE_DEPRECATED
+ #ifdef __GNUC__
+ #define TDE_DEPRECATED __attribute__ ((deprecated))
+ #elif defined(_MSC_VER)
+ #define TDE_DEPRECATED __declspec(deprecated)
+ #else
+ #define TDE_DEPRECATED
+ #endif
#endif
/**
@@ -207,15 +172,15 @@
RESERVE_VIRTUAL_9
/**
- * The KDE_WEAK_SYMBOL macro can be used to tell the compiler that
+ * The TDE_WEAK_SYMBOL macro can be used to tell the compiler that
* a particular function should be a weak symbol (that e.g. may be overriden
* in another library, -Bdirect will not bind this symbol directly)
*/
#ifdef __GNUC__
-#define KDE_WEAK_SYMBOL __attribute__((__weak__))
+#define TDE_WEAK_SYMBOL __attribute__((__weak__))
#else
-#define KDE_WEAK_SYMBOL
+#define TDE_WEAK_SYMBOL
#endif
-#endif /* _KDE_MACROS_H_ */
+#endif /* _TDE_MACROS_H_ */
diff --git a/tdecore/kdemacros.h.in b/tdecore/tdemacros.h.in
index 9566c386b..9df1a77ab 100644
--- a/tdecore/kdemacros.h.in
+++ b/tdecore/tdemacros.h.in
@@ -17,14 +17,14 @@
Boston, MA 02110-1301, USA.
*/
-#ifndef _KDE_MACROS_H_
-#define _KDE_MACROS_H_
+#ifndef _TDE_MACROS_H_
+#define _TDE_MACROS_H_
/* Set by configure */
-#undef __KDE_HAVE_GCC_VISIBILITY
+#undef __TDE_HAVE_GCC_VISIBILITY
/**
- * The KDE_NO_EXPORT macro marks the symbol of the given variable
+ * The TDE_NO_EXPORT macro marks the symbol of the given variable
* to be hidden. A hidden symbol is stripped during the linking step,
* so it can't be used from outside the resulting library, which is similar
* to static. However, static limits the visibility to the current
@@ -32,135 +32,100 @@
* units.
*
* \code
- * int KDE_NO_EXPORT foo;
- * int KDE_EXPORT bar;
+ * int TDE_NO_EXPORT foo;
+ * int TDE_EXPORT bar;
* \end
*/
-#ifdef __KDE_HAVE_GCC_VISIBILITY
-#define KDE_NO_EXPORT __attribute__ ((visibility("hidden")))
-#define KDE_EXPORT __attribute__ ((visibility("default")))
-#elif defined(Q_WS_WIN)
-#define KDE_NO_EXPORT
-#define KDE_EXPORT __declspec(dllexport)
+#ifdef __TDE_HAVE_GCC_VISIBILITY
+#define TDE_NO_EXPORT __attribute__ ((visibility("hidden")))
+#define TDE_EXPORT __attribute__ ((visibility("default")))
+#elif defined(TQ_WS_WIN)
+#define TDE_NO_EXPORT
+#define TDE_EXPORT __declspec(dllexport)
#else
-#define KDE_NO_EXPORT
-#define KDE_EXPORT
+#define TDE_NO_EXPORT
+#define TDE_EXPORT
#endif
/**
- * KDE_Q_EXPORT_PLUGIN is a workaround for Qt not being able to
+ * TDE_EXPORT_PLUGIN is a workaround for Qt not being able to
* cope with symbol visibility.
*/
-#define KDE_Q_EXPORT_PLUGIN(PLUGIN) \
- TQ_EXTERN_C KDE_EXPORT const char* tqt_ucm_query_verification_data(); \
- TQ_EXTERN_C KDE_EXPORT TQUnknownInterface* ucm_instantiate(); \
+#define TDE_EXPORT_PLUGIN(PLUGIN) \
+ TQ_EXTERN_C TDE_EXPORT const char* qt_ucm_query_verification_data(); \
+ TQ_EXTERN_C TDE_EXPORT TQUnknownInterface* ucm_instantiate(); \
TQ_EXPORT_PLUGIN(PLUGIN)
/**
- * The KDE_PACKED can be used to hint the compiler that a particular
+ * The TDE_PACKED can be used to hint the compiler that a particular
* structure or class should not contain unnecessary paddings.
*/
#ifdef __GNUC__
-#define KDE_PACKED __attribute__((__packed__))
+#define TDE_PACKED __attribute__((__packed__))
#else
-#define KDE_PACKED
+#define TDE_PACKED
#endif
/**
- * The KDE_DEPRECATED macro can be used to trigger compile-time warnings
+ * The TDE_DEPRECATED macro can be used to trigger compile-time warnings
* with newer compilers when deprecated functions are used.
*
* For non-inline functions, the macro gets inserted at the very end of the
* function declaration, right before the semicolon:
*
* \code
- * DeprecatedConstructor() KDE_DEPRECATED;
- * void deprecatedFunctionA() KDE_DEPRECATED;
- * int deprecatedFunctionB() const KDE_DEPRECATED;
+ * DeprecatedConstructor() TDE_DEPRECATED;
+ * void deprecatedFunctionA() TDE_DEPRECATED;
+ * int deprecatedFunctionB() const TDE_DEPRECATED;
* \endcode
*
* Functions which are implemented inline are handled differently: for them,
- * the KDE_DEPRECATED macro is inserted at the front, right before the return
+ * the TDE_DEPRECATED macro is inserted at the front, right before the return
* type, but after "static" or "virtual":
*
* \code
- * KDE_DEPRECATED void deprecatedInlineFunctionA() { .. }
- * virtual KDE_DEPRECATED int deprecatedInlineFunctionB() { .. }
- * static KDE_DEPRECATED bool deprecatedInlineFunctionC() { .. }
+ * TDE_DEPRECATED void deprecatedInlineFunctionA() { .. }
+ * virtual TDE_DEPRECATED int deprecatedInlineFunctionB() { .. }
+ * static TDE_DEPRECATED bool deprecatedInlineFunctionC() { .. }
* \end
*
* You can also mark whole structs or classes as deprecated, by inserting the
- * KDE_DEPRECATED macro after the struct/class keyword, but before the
+ * TDE_DEPRECATED macro after the struct/class keyword, but before the
* name of the struct/class:
*
* \code
- * class KDE_DEPRECATED DeprecatedClass { };
- * struct KDE_DEPRECATED DeprecatedStruct { };
+ * class TDE_DEPRECATED DeprecatedClass { };
+ * struct TDE_DEPRECATED DeprecatedStruct { };
* \endcode
*
* \note
- * It does not make much sense to use the KDE_DEPRECATED keyword for a Qt signal;
+ * It does not make much sense to use the TDE_DEPRECATED keyword for a TQt signal;
* this is because usually get called by the class which they belong to,
* and one'd assume that a class author doesn't use deprecated methods of his
* own class. The only exception to this are signals which are connected to
* other signals; they get invoked from moc-generated code. In any case,
* printing a warning message in either case is not useful.
* For slots, it can make sense (since slots can be invoked directly) but be
- * aware that if the slots get triggered by a signal, the will get called from
+ * aware that if the slots get triggered by a signal, it will get called from
* moc code as well and thus the warnings are useless.
*
* \par
- * Also note that it is not possible to use KDE_DEPRECATED for classes which
+ * Also note that it is not possible to use TDE_DEPRECATED for classes which
* use the k_dcop keyword (to indicate a DCOP interface declaration); this is
* because the dcopidl program would choke on the unexpected declaration
* syntax.
*/
-#ifndef KDE_DEPRECATED
-#if __GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2)
- /* gcc >= 3.2 */
-# define KDE_DEPRECATED __attribute__ ((deprecated))
-#elif defined(_MSC_VER) && (_MSC_VER >= 1300)
- /* msvc >= 7 */
-# define KDE_DEPRECATED __declspec(deprecated)
-#else
-# define KDE_DEPRECATED
-#endif
-#endif
-
-/**
- * The KDE_ISLIKELY macro tags a boolean expression as likely to evaluate to
- * 'true'. When used in an if ( ) statement, it gives a hint to the compiler
- * that the following codeblock is likely to get executed. Providing this
- * information helps the compiler to optimize the code for better performance.
- * Using the macro has an insignificant code size or runtime memory footprint impact.
- * The code semantics is not affected.
- *
- * \note
- * Providing wrong information ( like marking a condition that almost never
- * passes as 'likely' ) will cause a significant runtime slowdown. Therefore only
- * use it for cases where you can be sure about the odds of the expression to pass
- * in all cases ( independent from e.g. user configuration ).
- *
- * \par
- * The KDE_ISUNLIKELY macro tags an expression as unlikely evaluating to 'true'.
- *
- * \note
- * Do NOT use ( !KDE_ISLIKELY(foo) ) as an replacement for KDE_ISUNLIKELY !
- *
- * \code
- * if ( KDE_ISUNLIKELY( testsomething() ) )
- * abort(); // assume its unlikely that the application aborts
- * \endcode
- */
-#if __GNUC__ - 0 >= 3
-# define KDE_ISLIKELY( x ) __builtin_expect(!!(x),1)
-# define KDE_ISUNLIKELY( x ) __builtin_expect(!!(x),0)
-#else
-# define KDE_ISLIKELY( x ) ( x )
-# define KDE_ISUNLIKELY( x ) ( x )
+#ifndef TDE_DEPRECATED
+ #ifdef __GNUC__
+ #define TDE_DEPRECATED __attribute__ ((deprecated))
+ #elif defined(_MSC_VER)
+ #define TDE_DEPRECATED __declspec(deprecated)
+ #else
+ #define TDE_DEPRECATED
+ #endif
#endif
/**
@@ -206,15 +171,15 @@
RESERVE_VIRTUAL_9
/**
- * The KDE_WEAK_SYMBOL macro can be used to tell the compiler that
+ * The TDE_WEAK_SYMBOL macro can be used to tell the compiler that
* a particular function should be a weak symbol (that e.g. may be overriden
* in another library, -Bdirect will not bind this symbol directly)
*/
#ifdef __GNUC__
-#define KDE_WEAK_SYMBOL __attribute__((__weak__))
+#define TDE_WEAK_SYMBOL __attribute__((__weak__))
#else
-#define KDE_WEAK_SYMBOL
+#define TDE_WEAK_SYMBOL
#endif
-#endif /* _KDE_MACROS_H_ */
+#endif /* _TDE_MACROS_H_ */
diff --git a/tdecore/tdemultipledrag.h b/tdecore/tdemultipledrag.h
index bfc408019..631959bc0 100644
--- a/tdecore/tdemultipledrag.h
+++ b/tdecore/tdemultipledrag.h
@@ -53,7 +53,7 @@ class KMultipleDragPrivate;
*/
class TDECORE_EXPORT KMultipleDrag : public TQDragObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
diff --git a/tdecore/kprocctrl.cpp b/tdecore/tdeprocctrl.cpp
index 76ad0b167..05ff0566a 100644
--- a/tdecore/kprocctrl.cpp
+++ b/tdecore/tdeprocctrl.cpp
@@ -17,8 +17,8 @@
Boston, MA 02110-1301, USA.
*/
-#include "kprocess.h"
-#include "kprocctrl.h"
+#include "tdeprocess.h"
+#include "tdeprocctrl.h"
#include <config.h>
@@ -71,8 +71,8 @@ TDEProcessController::TDEProcessController()
notifier = new TQSocketNotifier( fd[0], TQSocketNotifier::Read );
notifier->setEnabled( true );
- TQObject::connect( notifier, TQT_SIGNAL(activated(int)),
- TQT_SLOT(slotDoHousekeeping()));
+ TQObject::connect( notifier, TQ_SIGNAL(activated(int)),
+ TQ_SLOT(slotDoHousekeeping()));
}
TDEProcessController::~TDEProcessController()
@@ -274,4 +274,4 @@ void TDEProcessController::addProcess( int pid )
ref(); // make sure we stay around when the TDEProcess goes away
}
-#include "kprocctrl.moc"
+#include "tdeprocctrl.moc"
diff --git a/tdecore/kprocctrl.h b/tdecore/tdeprocctrl.h
index 1cb6cc302..fa9a8b3b4 100644
--- a/tdecore/kprocctrl.h
+++ b/tdecore/tdeprocctrl.h
@@ -17,12 +17,12 @@
Boston, MA 02110-1301, USA.
*/
-#ifndef __KPROCCTRL_H__
-#define __KPROCCTRL_H__
+#ifndef __TDEPROCCTRL_H__
+#define __TDEPROCCTRL_H__
#include <tqvaluelist.h>
-#include "kprocess.h"
+#include "tdeprocess.h"
class TQSocketNotifier;
@@ -38,7 +38,7 @@ class TQSocketNotifier;
*/
class TDECORE_EXPORT TDEProcessController : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
diff --git a/tdecore/kprocess.cpp b/tdecore/tdeprocess.cpp
index b899c637f..185bd5a6f 100644
--- a/tdecore/kprocess.cpp
+++ b/tdecore/tdeprocess.cpp
@@ -22,8 +22,8 @@
*/
-#include "kprocess.h"
-#include "kprocctrl.h"
+#include "tdeprocess.h"
+#include "tdeprocctrl.h"
#include "kpty.h"
#include <config.h>
@@ -32,11 +32,6 @@
#define __svr4__
#endif
-#ifdef __osf__
-#define _OSF_SOURCE
-#include <float.h>
-#endif
-
#ifdef _AIX
#define _ALL_SOURCE
#endif
@@ -77,7 +72,7 @@
#include <tqapplication.h>
#include <kdebug.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <kuser.h>
@@ -629,7 +624,7 @@ bool TDEProcess::writeStdin(const char *buffer, int buflen)
{
// if there is still data pending, writing new data
// to stdout is not allowed (since it could also confuse
- // kprocess ...)
+ // tdeprocess ...)
if (input_data != 0)
return false;
@@ -959,15 +954,15 @@ int TDEProcess::commSetupDoneP()
innot = new TQSocketNotifier(in[1], TQSocketNotifier::Write, this);
TQ_CHECK_PTR(innot);
innot->setEnabled(false); // will be enabled when data has to be sent
- TQObject::connect(innot, TQT_SIGNAL(activated(int)),
- this, TQT_SLOT(slotSendData(int)));
+ TQObject::connect(innot, TQ_SIGNAL(activated(int)),
+ this, TQ_SLOT(slotSendData(int)));
}
if (communication & Stdout) {
outnot = new TQSocketNotifier(out[0], TQSocketNotifier::Read, this);
TQ_CHECK_PTR(outnot);
- TQObject::connect(outnot, TQT_SIGNAL(activated(int)),
- this, TQT_SLOT(slotChildOutput(int)));
+ TQObject::connect(outnot, TQ_SIGNAL(activated(int)),
+ this, TQ_SLOT(slotChildOutput(int)));
if (communication & NoRead)
suspend();
}
@@ -975,8 +970,8 @@ int TDEProcess::commSetupDoneP()
if (communication & Stderr) {
errnot = new TQSocketNotifier(err[0], TQSocketNotifier::Read, this );
TQ_CHECK_PTR(errnot);
- TQObject::connect(errnot, TQT_SIGNAL(activated(int)),
- this, TQT_SLOT(slotChildError(int)));
+ TQObject::connect(errnot, TQ_SIGNAL(activated(int)),
+ this, TQ_SLOT(slotChildError(int)));
}
return 1;
@@ -1134,4 +1129,4 @@ bool KShellProcess::start(RunMode runmode, Communication comm)
void KShellProcess::virtual_hook( int id, void* data )
{ TDEProcess::virtual_hook( id, data ); }
-#include "kprocess.moc"
+#include "tdeprocess.moc"
diff --git a/tdecore/kprocess.h b/tdecore/tdeprocess.h
index ae4a25af6..a6329f147 100644
--- a/tdecore/kprocess.h
+++ b/tdecore/tdeprocess.h
@@ -17,8 +17,8 @@
Boston, MA 02110-1301, USA.
*/
-#ifndef __kprocess_h__
-#define __kprocess_h__
+#ifndef __TDEPROCESS_H__
+#define __TDEPROCESS_H__
#include <sys/types.h> // for pid_t
#include <sys/wait.h>
@@ -47,7 +47,7 @@ class KPty;
* This class allows a KDE application to start child processes without having
* to worry about UN*X signal handling issues and zombie process reaping.
*
- * @see KProcIO
+ * @see TDEProcIO
*
* Basically, this class distinguishes three different ways of running
* child processes:
@@ -96,8 +96,8 @@ class KPty;
*
* *proc << "my_executable";
* *proc << "These" << "are" << "the" << "command" << "line" << "args";
- * TQApplication::connect(proc, TQT_SIGNAL(processExited(TDEProcess *)),
- * pointer_to_my_object, TQT_SLOT(my_objects_slot(TDEProcess *)));
+ * TQApplication::connect(proc, TQ_SIGNAL(processExited(TDEProcess *)),
+ * pointer_to_my_object, TQ_SLOT(my_objects_slot(TDEProcess *)));
* proc->start();
* \endcode
*
@@ -129,7 +129,7 @@ class KPty;
**/
class TDECORE_EXPORT TDEProcess : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -219,7 +219,7 @@ public:
@see operator<<()
*/
- bool setExecutable(const TQString& proc) KDE_DEPRECATED;
+ bool setExecutable(const TQString& proc) TDE_DEPRECATED;
/**
@@ -320,7 +320,7 @@ public:
* @deprecated
* Use pid() instead.
*/
- KDE_DEPRECATED pid_t getPid() const { return pid(); }
+ TDE_DEPRECATED pid_t getPid() const { return pid(); }
/**
* Suspend processing of data from stdout of the child process.
@@ -757,7 +757,7 @@ protected:
* TDEProcess slots.
*
* For a more detailed explanation, it is best to have a look at the default
- * implementation in kprocess.cpp.
+ * implementation in tdeprocess.cpp.
*/
virtual int commSetupDoneP();
@@ -780,7 +780,7 @@ protected:
/**
* Cleans up the communication links to the child after it has exited.
* This function should act upon the values of pid() and runs.
- * See the kprocess.cpp source for details.
+ * See the tdeprocess.cpp source for details.
* @li If pid() returns zero, the communication links should be closed
* only.
* @li if pid() returns non-zero and runs is false, all data
@@ -903,7 +903,7 @@ class KShellProcessPrivate;
*/
class TDECORE_EXPORT KShellProcess: public TDEProcess
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -933,7 +933,4 @@ private:
KShellProcessPrivate *d;
};
-
-
#endif
-
diff --git a/tdecore/kprocio.cpp b/tdecore/tdeprocio.cpp
index 7157662df..e614148c5 100644
--- a/tdecore/kprocio.cpp
+++ b/tdecore/tdeprocio.cpp
@@ -24,19 +24,19 @@
#include <stdio.h>
-#include "kprocio.h"
+#include "tdeprocio.h"
#include <kdebug.h>
#include <tqtextcodec.h>
-class KProcIOPrivate {
+class TDEProcIOPrivate {
public:
- KProcIOPrivate() : comm(TDEProcess::All) {}
+ TDEProcIOPrivate() : comm(TDEProcess::All) {}
TDEProcess::Communication comm;
};
-KProcIO::KProcIO ( TQTextCodec *_codec)
- : codec(_codec), d(new KProcIOPrivate)
+TDEProcIO::TDEProcIO ( TQTextCodec *_codec)
+ : codec(_codec), d(new TDEProcIOPrivate)
{
rbi=0;
readsignalon=writeready=true;
@@ -52,13 +52,13 @@ KProcIO::KProcIO ( TQTextCodec *_codec)
}
}
-KProcIO::~KProcIO()
+TDEProcIO::~TDEProcIO()
{
delete d;
}
void
-KProcIO::resetAll ()
+TDEProcIO::resetAll ()
{
if (isRunning())
kill();
@@ -67,47 +67,47 @@ KProcIO::resetAll ()
rbi=0;
readsignalon=writeready=true;
- disconnect (this, TQT_SIGNAL (receivedStdout (TDEProcess *, char *, int)),
- this, TQT_SLOT (received (TDEProcess *, char *, int)));
+ disconnect (this, TQ_SIGNAL (receivedStdout (TDEProcess *, char *, int)),
+ this, TQ_SLOT (received (TDEProcess *, char *, int)));
- disconnect (this, TQT_SIGNAL (receivedStderr (TDEProcess *, char *, int)),
- this, TQT_SLOT (received (TDEProcess *, char *, int)));
+ disconnect (this, TQ_SIGNAL (receivedStderr (TDEProcess *, char *, int)),
+ this, TQ_SLOT (received (TDEProcess *, char *, int)));
- disconnect (this, TQT_SIGNAL (wroteStdin(TDEProcess *)),
- this, TQT_SLOT (sent (TDEProcess *)));
+ disconnect (this, TQ_SIGNAL (wroteStdin(TDEProcess *)),
+ this, TQ_SLOT (sent (TDEProcess *)));
outbuffer.clear();
}
-void KProcIO::setComm (Communication comm)
+void TDEProcIO::setComm (Communication comm)
{
d->comm = comm;
}
-bool KProcIO::start (RunMode runmode, bool includeStderr)
+bool TDEProcIO::start (RunMode runmode, bool includeStderr)
{
- connect (this, TQT_SIGNAL (receivedStdout (TDEProcess *, char *, int)),
- this, TQT_SLOT (received (TDEProcess *, char *, int)));
+ connect (this, TQ_SIGNAL (receivedStdout (TDEProcess *, char *, int)),
+ this, TQ_SLOT (received (TDEProcess *, char *, int)));
if (includeStderr)
{
- connect (this, TQT_SIGNAL (receivedStderr (TDEProcess *, char *, int)),
- this, TQT_SLOT (received (TDEProcess *, char *, int)));
+ connect (this, TQ_SIGNAL (receivedStderr (TDEProcess *, char *, int)),
+ this, TQ_SLOT (received (TDEProcess *, char *, int)));
}
- connect (this, TQT_SIGNAL (wroteStdin(TDEProcess *)),
- this, TQT_SLOT (sent (TDEProcess *)));
+ connect (this, TQ_SIGNAL (wroteStdin(TDEProcess *)),
+ this, TQ_SLOT (sent (TDEProcess *)));
return TDEProcess::start (runmode, d->comm);
}
-bool KProcIO::writeStdin (const TQString &line, bool appendnewline)
+bool TDEProcIO::writeStdin (const TQString &line, bool appendnewline)
{
return writeStdin(TQCString(codec->fromUnicode(line)), appendnewline);
}
-bool KProcIO::writeStdin (const TQCString &line, bool appendnewline)
+bool TDEProcIO::writeStdin (const TQCString &line, bool appendnewline)
{
TQCString *qs = new TQCString(line);
@@ -136,7 +136,7 @@ bool KProcIO::writeStdin (const TQCString &line, bool appendnewline)
return true;
}
-bool KProcIO::writeStdin(const TQByteArray &data)
+bool TDEProcIO::writeStdin(const TQByteArray &data)
{
if (!data.size())
return true;
@@ -151,7 +151,7 @@ bool KProcIO::writeStdin(const TQByteArray &data)
return true;
}
-void KProcIO::closeWhenDone()
+void TDEProcIO::closeWhenDone()
{
if (writeready)
{
@@ -163,7 +163,7 @@ void KProcIO::closeWhenDone()
return;
}
-void KProcIO::sent(TDEProcess *)
+void TDEProcIO::sent(TDEProcess *)
{
outbuffer.removeFirst();
@@ -186,21 +186,21 @@ void KProcIO::sent(TDEProcess *)
}
-void KProcIO::received (TDEProcess *, char *buffer, int buflen)
+void TDEProcIO::received (TDEProcess *, char *buffer, int buflen)
{
recvbuffer += TQCString(buffer, buflen+1);
controlledEmission();
}
-void KProcIO::ackRead ()
+void TDEProcIO::ackRead ()
{
readsignalon=true;
if (needreadsignal || recvbuffer.length()!=0)
controlledEmission();
}
-void KProcIO::controlledEmission ()
+void TDEProcIO::controlledEmission ()
{
if (readsignalon)
{
@@ -214,7 +214,7 @@ void KProcIO::controlledEmission ()
}
}
-void KProcIO::enableReadSignals (bool enable)
+void TDEProcIO::enableReadSignals (bool enable)
{
readsignalon=enable;
@@ -222,7 +222,7 @@ void KProcIO::enableReadSignals (bool enable)
emit readReady (this);
}
-int KProcIO::readln (TQString &line, bool autoAck, bool *partial)
+int TDEProcIO::readln (TQString &line, bool autoAck, bool *partial)
{
int len;
@@ -269,8 +269,8 @@ int KProcIO::readln (TQString &line, bool autoAck, bool *partial)
}
-void KProcIO::virtual_hook( int id, void* data )
+void TDEProcIO::virtual_hook( int id, void* data )
{ TDEProcess::virtual_hook( id, data ); }
-#include "kprocio.moc"
+#include "tdeprocio.moc"
diff --git a/tdecore/kprocio.h b/tdecore/tdeprocio.h
index 4e42ee533..d7394b8b1 100644
--- a/tdecore/kprocio.h
+++ b/tdecore/tdeprocio.h
@@ -1,4 +1,4 @@
-/* This file is part of the KDE libraries
+/* This file is part of the TDE libraries
Copyright (C) 1997 David Sweet <dsweet@kde.org>
This library is free software; you can redistribute it and/or
@@ -15,29 +15,29 @@
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
-#ifndef KPROCIO_H_
-#define KPROCIO_H_
+#ifndef TDEPROCIO_H_
+#define TDEPROCIO_H_
#include <tqstring.h>
-#include <kprocess.h>
+#include <tdeprocess.h>
#include <tqstrlist.h>
#include "tdelibs_export.h"
-class KProcIOPrivate;
+class TDEProcIOPrivate;
class TQTextCodec;
/**
- * KProcIO
+ * TDEProcIO
*
* This class provides a slightly simpler interface to the communication
* functions provided by TDEProcess. The simplifications are:
- * @li The buffer for a write is copied to an internal KProcIO
+ * @li The buffer for a write is copied to an internal TDEProcIO
* buffer and maintained/freed appropriately. There is no need
* to be concerned with wroteStdin() signals _at_all_.
* @li readln() reads a line of data and buffers any leftovers.
* @li Conversion from/to unicode.
*
- * Basically, KProcIO gives you buffered I/O similar to fgets()/fputs().
+ * Basically, TDEProcIO gives you buffered I/O similar to fgets()/fputs().
*
* Aside from these, and the fact that start() takes different
* parameters, use this class just like TDEProcess.
@@ -47,20 +47,20 @@ class TQTextCodec;
**/
-class TDECORE_EXPORT KProcIO : public TDEProcess
+class TDECORE_EXPORT TDEProcIO : public TDEProcess
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor
*/
- KProcIO ( TQTextCodec *codec = 0 );
+ TDEProcIO ( TQTextCodec *codec = 0 );
/**
* Destructor
*/
- ~KProcIO();
+ ~TDEProcIO();
/**
* Sets the communication mode to be passed to TDEProcess::start()
@@ -120,7 +120,7 @@ public:
* @return true if successful, false otherwise
* @deprecated
**/
- KDE_DEPRECATED bool fputs (const TQString &line, bool AppendNewLine=true)
+ TDE_DEPRECATED bool fputs (const TQString &line, bool AppendNewLine=true)
{ return writeStdin(line, AppendNewLine); }
/**
@@ -135,7 +135,7 @@ public:
* You may use it multiple times if more than one line of data is
* available.
* Be sure to use ackRead() when you have finished processing the
- * readReady() signal. This informs KProcIO that you are ready for
+ * readReady() signal. This informs TDEProcIO that you are ready for
* another readReady() signal.
*
* readln() never blocks.
@@ -159,7 +159,7 @@ public:
* @deprecated use readln. Note that it has an inverted autoAck default,
* though.
**/
- KDE_DEPRECATED int fgets (TQString &line, bool autoAck=false)
+ TDE_DEPRECATED int fgets (TQString &line, bool autoAck=false)
{ return readln (line, autoAck); }
/**
@@ -192,7 +192,7 @@ signals:
* @param pio the process that emitted the signal
* @see enableReadSignals()
*/
- void readReady(KProcIO *pio);
+ void readReady(TDEProcIO *pio);
protected:
TQPtrList<TQByteArray> outbuffer;
@@ -210,8 +210,7 @@ protected slots:
protected:
virtual void virtual_hook( int id, void* data );
private:
- KProcIOPrivate *d;
+ TDEProcIOPrivate *d;
};
-#endif // KPROCIO_H_
-
+#endif
diff --git a/tdecore/tdeshortcut.cpp b/tdecore/tdeshortcut.cpp
index 86b532f9c..e4337163f 100644
--- a/tdecore/tdeshortcut.cpp
+++ b/tdecore/tdeshortcut.cpp
@@ -27,7 +27,7 @@
#include <kdebug.h>
#include <tdeglobal.h>
#include <tdelocale.h>
-#include <ksimpleconfig.h>
+#include <tdesimpleconfig.h>
//----------------------------------------------------
@@ -89,10 +89,10 @@ bool KKey::init( const TQKeySequence& key )
bool KKey::init( const TQKeyEvent* pEvent )
{
int keyQt = pEvent->key();
- if( pEvent->state() & TQt::ShiftButton ) keyQt |= Qt::SHIFT;
- if( pEvent->state() & TQt::ControlButton ) keyQt |= Qt::CTRL;
- if( pEvent->state() & TQt::AltButton ) keyQt |= Qt::ALT;
- if( pEvent->state() & TQt::MetaButton ) keyQt |= Qt::META;
+ if( pEvent->state() & TQt::ShiftButton ) keyQt |= TQt::SHIFT;
+ if( pEvent->state() & TQt::ControlButton ) keyQt |= TQt::CTRL;
+ if( pEvent->state() & TQt::AltButton ) keyQt |= TQt::ALT;
+ if( pEvent->state() & TQt::MetaButton ) keyQt |= TQt::META;
return init( keyQt );
}
diff --git a/tdecore/tdeshortcut.h b/tdecore/tdeshortcut.h
index 09f7fce05..69fb3c82c 100644
--- a/tdecore/tdeshortcut.h
+++ b/tdecore/tdeshortcut.h
@@ -45,7 +45,7 @@ class TDECORE_EXPORT KKey
* @see ModFlag
*/
enum { MOD_FLAG_COUNT = 4 };
- enum { QtWIN = (Qt::META) };
+ enum { QtWIN = (TQt::META) };
/**
* Flags to represent the modifiers. You can combine modifiers
* by ORing them.
@@ -68,7 +68,7 @@ class TDECORE_EXPORT KKey
/**
* Creates a new key for the given Qt key code.
* @param keyQt the qt keycode
- * @see Qt::Key
+ * @see TQt::Key
*/
KKey( int keyQt );
@@ -115,7 +115,7 @@ class TDECORE_EXPORT KKey
* Initializes the key with the given Qt key code.
* @param keyQt the qt keycode
* @return true if successful, false otherwise
- * @see Qt::Key
+ * @see TQt::Key
*/
bool init( int keyQt );
@@ -217,7 +217,7 @@ class TDECORE_EXPORT KKey
/**
* Returns the qt key code.
* @return the qt key code or 0 if there is no key set.
- * @see Qt::Key
+ * @see TQt::Key
*/
int keyCodeQt() const;
@@ -469,7 +469,7 @@ class TDECORE_EXPORT KKeySequence
*/
bool operator < ( const KKeySequence& seq ) const
{ return compare( seq ) < 0; }
- // TODO: consider adding Qt::SequenceMatch matches(...) methods for TQKeySequence equivalence
+ // TODO: consider adding TQt::SequenceMatch matches(...) methods for TQKeySequence equivalence
/**
* Converts this key sequence to a TQKeySequence.
@@ -480,7 +480,7 @@ class TDECORE_EXPORT KKeySequence
/**
* Returns the qt key code of the first key.
* @return the qt key code of the first key
- * @see Qt::Key
+ * @see TQt::Key
* @see KKey::keyCodeQt()
*/
int keyCodeQt() const;
@@ -528,7 +528,7 @@ class TDECORE_EXPORT KKeySequence
* the below code binds the escape key to the close action.
*
* \code
-* TDEAction *closeAction = KStdAction::close( this, TQT_SLOT( close() ), actionCollection() );
+* TDEAction *closeAction = KStdAction::close( this, TQ_SLOT( close() ), actionCollection() );
* TDEShortcut closeShortcut = closeAction->shortcut();
* closeShortcut.append( KKey(Key_Escape));
* closeAction->setShortcut(closeShortcut);
@@ -561,7 +561,7 @@ class TDECORE_EXPORT TDEShortcut
* Creates a new shortcut with the given Qt key code
* as the only key sequence.
* @param keyQt the qt keycode
- * @see Qt::Key
+ * @see TQt::Key
*/
TDEShortcut( int keyQt );
@@ -622,7 +622,7 @@ class TDECORE_EXPORT TDEShortcut
* Initializes the shortcut with the given Qt key code
* as the only key sequence.
* @param keyQt the qt keycode
- * @see Qt::Key
+ * @see TQt::Key
*/
bool init( int keyQt );
@@ -686,7 +686,7 @@ class TDECORE_EXPORT TDEShortcut
* Returns the key code of the first key sequence, or
* null if there is no first key sequence.
* @return the key code of the first sequence's first key
- * @see Qt::Key
+ * @see TQt::Key
* @see KKeySequence::keyCodeQt()
*/
int keyCodeQt() const;
diff --git a/tdecore/tdeshortcutlist.cpp b/tdecore/tdeshortcutlist.cpp
index ffacd001c..b4ceb86d8 100644
--- a/tdecore/tdeshortcutlist.cpp
+++ b/tdecore/tdeshortcutlist.cpp
@@ -6,8 +6,8 @@
#include <tdeconfig.h>
#include <kdebug.h>
#include <tdeglobal.h>
-#include <kglobalaccel.h>
-#include <kinstance.h>
+#include <tdeglobalaccel.h>
+#include <tdeinstance.h>
#include <tdeshortcut.h>
#include "tdeshortcutlist.h"
diff --git a/tdecore/tdeshortcutmenu.cpp b/tdecore/tdeshortcutmenu.cpp
index c035c0df9..bf381bf78 100644
--- a/tdecore/tdeshortcutmenu.cpp
+++ b/tdecore/tdeshortcutmenu.cpp
@@ -84,14 +84,14 @@ void TDEShortcutMenu::keyPressEvent( TQKeyEvent* pEvent )
KKey key( pEvent );
switch( pEvent->key() ) {
- case TQ_Key_Shift:
- case TQ_Key_Control:
- case TQ_Key_Alt:
- case TQ_Key_Meta:
- case TQ_Key_Super_L:
- case TQ_Key_Super_R:
- case TQ_Key_Hyper_L:
- case TQ_Key_Hyper_R:
+ case Key_Shift:
+ case Key_Control:
+ case Key_Alt:
+ case Key_Meta:
+ case Key_Super_L:
+ case Key_Super_R:
+ case Key_Hyper_L:
+ case Key_Hyper_R:
break;
default:
int iItem = searchForKey( key );
@@ -104,8 +104,8 @@ void TDEShortcutMenu::keyPressEvent( TQKeyEvent* pEvent )
if( iItem == -1 ) {
// Let Up and Down keys navigate menu,
// And permit Enter, Return to select the item.
- if( pEvent->key() == Qt::Key_Up || pEvent->key() == Qt::Key_Down ||
- pEvent->key() == Qt::Key_Enter || pEvent->key() == Qt::Key_Return )
+ if( pEvent->key() == TQt::Key_Up || pEvent->key() == TQt::Key_Down ||
+ pEvent->key() == TQt::Key_Enter || pEvent->key() == TQt::Key_Return )
TQPopupMenu::keyPressEvent( pEvent );
else
close();
diff --git a/tdecore/tdeshortcutmenu.h b/tdecore/tdeshortcutmenu.h
index ece721942..0387bdbae 100644
--- a/tdecore/tdeshortcutmenu.h
+++ b/tdecore/tdeshortcutmenu.h
@@ -34,7 +34,7 @@ class TDEAccelActions;
*/
class TDECORE_EXPORT TDEShortcutMenu : public TQPopupMenu
{
- Q_OBJECT
+ TQ_OBJECT
public:
TDEShortcutMenu( TQWidget* pParent, TDEAccelActions* pActions, KKeySequence seq );
diff --git a/tdecore/ksimpleconfig.cpp b/tdecore/tdesimpleconfig.cpp
index dc359f17e..15638dd65 100644
--- a/tdecore/ksimpleconfig.cpp
+++ b/tdecore/tdesimpleconfig.cpp
@@ -32,16 +32,16 @@
#include <tqdir.h>
#include "tdeglobal.h"
-#include "kstandarddirs.h"
+#include "tdestandarddirs.h"
#include "tdeconfigbackend.h"
-#include "ksimpleconfig.h"
+#include "tdesimpleconfig.h"
-KSimpleConfig::KSimpleConfig(const TQString &fileName, bool bReadOnly)
+TDESimpleConfig::TDESimpleConfig(const TQString &fileName, bool bReadOnly)
: TDEConfig(TQString::fromLatin1(""), bReadOnly, false)
{
- // the difference between TDEConfig and KSimpleConfig is just that
- // for KSimpleConfig an absolute filename is guaranteed
+ // the difference between TDEConfig and TDESimpleConfig is just that
+ // for TDESimpleConfig an absolute filename is guaranteed
if (!fileName.isNull() && TQDir::isRelativePath(fileName)) {
backEnd->changeFileName( TDEGlobal::dirs()->
saveLocation("config", TQString::null, !bReadOnly)+fileName, "config", false);
@@ -52,20 +52,20 @@ KSimpleConfig::KSimpleConfig(const TQString &fileName, bool bReadOnly)
reparseConfiguration();
}
-KSimpleConfig::KSimpleConfig(TDEConfigBackEnd *backEnd, bool bReadOnly)
+TDESimpleConfig::TDESimpleConfig(TDEConfigBackEnd *backEnd, bool bReadOnly)
: TDEConfig(backEnd, bReadOnly)
{}
-KSimpleConfig::~KSimpleConfig()
+TDESimpleConfig::~TDESimpleConfig()
{
- // we need to call the KSimpleConfig version of sync. Relying on the
- // regular TDEConfig sync is bad, because the KSimpleConfig sync has
+ // we need to call the TDESimpleConfig version of sync. Relying on the
+ // regular TDEConfig sync is bad, because the TDESimpleConfig sync has
// different behavior. Syncing here will insure that the sync() call
// in the TDEConfig destructor doesn't actually do anything.
sync();
}
-void KSimpleConfig::sync()
+void TDESimpleConfig::sync()
{
if (isReadOnly())
return;
@@ -75,7 +75,7 @@ void KSimpleConfig::sync()
rollback();
}
-void KSimpleConfig::virtual_hook( int id, void* data )
+void TDESimpleConfig::virtual_hook( int id, void* data )
{ TDEConfig::virtual_hook( id, data ); }
-#include "ksimpleconfig.moc"
+#include "tdesimpleconfig.moc"
diff --git a/tdecore/ksimpleconfig.h b/tdecore/tdesimpleconfig.h
index 541117500..ec3e552b8 100644
--- a/tdecore/ksimpleconfig.h
+++ b/tdecore/tdesimpleconfig.h
@@ -18,12 +18,12 @@
Boston, MA 02110-1301, USA.
*/
-#ifndef _KSIMPLECONFIG_H
-#define _KSIMPLECONFIG_H
+#ifndef _TDESIMPLECONFIG_H
+#define _TDESIMPLECONFIG_H
#include "tdeconfig.h"
-class KSimpleConfigPrivate;
+class TDESimpleConfigPrivate;
/**
* KDE Configuration entries
@@ -38,13 +38,13 @@ class KSimpleConfigPrivate;
* @see TDEConfigBase TDEConfig
* @short KDE Configuration Management class with deletion ability
*/
-class TDECORE_EXPORT KSimpleConfig : public TDEConfig
+class TDECORE_EXPORT TDESimpleConfig : public TDEConfig
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
- * Construct a KSimpleConfig object and make it either read-write
+ * Construct a TDESimpleConfig object and make it either read-write
* or read-only.
*
* @param fileName The file used for saving the config data. Either
@@ -53,29 +53,29 @@ public:
* directory for "config" files is used.
* @param bReadOnly Whether the object should be read-only.
*/
- KSimpleConfig( const TQString &fileName, bool bReadOnly = false);
+ TDESimpleConfig( const TQString &fileName, bool bReadOnly = false);
- KSimpleConfig(TDEConfigBackEnd *backEnd, bool bReadOnly = false);
+ TDESimpleConfig(TDEConfigBackEnd *backEnd, bool bReadOnly = false);
/**
* Destructor.
*
* Writes back any dirty configuration entries.
*/
- virtual ~KSimpleConfig();
+ virtual ~TDESimpleConfig();
virtual void sync();
private:
// copy-construction and assignment are not allowed
- KSimpleConfig( const KSimpleConfig& );
- KSimpleConfig& operator= ( const KSimpleConfig& rConfig );
+ TDESimpleConfig( const TDESimpleConfig& );
+ TDESimpleConfig& operator= ( const TDESimpleConfig& rConfig );
protected:
virtual void virtual_hook( int id, void* data );
private:
- KSimpleConfigPrivate *d;
+ TDESimpleConfigPrivate *d;
};
#endif
diff --git a/tdecore/kstandarddirs.cpp b/tdecore/tdestandarddirs.cpp
index 888ca5bc2..0821b22d1 100644
--- a/tdecore/kstandarddirs.cpp
+++ b/tdecore/tdestandarddirs.cpp
@@ -1,4 +1,4 @@
-/* This file is part of the KDE libraries
+/* This file is part of the TDE libraries
Copyright (C) 1999 Sirtaj Singh Kang <taj@kde.org>
Copyright (C) 1999 Stephan Kulow <coolo@kde.org>
Copyright (C) 1999 Waldo Bastian <bastian@kde.org>
@@ -46,11 +46,11 @@
#include <tqstring.h>
#include <tqstringlist.h>
-#include "kstandarddirs.h"
+#include "tdestandarddirs.h"
#include "tdeconfig.h"
-#include "kinstance.h"
+#include "tdeinstance.h"
#include "kshell.h"
-#include "ksimpleconfig.h"
+#include "tdesimpleconfig.h"
#include "kuser.h"
#include "kstaticdeleter.h"
#include <kde_file.h>
@@ -74,7 +74,7 @@ public:
TQStringList xdgconf_prefixes;
};
-// Singleton, with data shared by all kstandarddirs instances.
+// Singleton, with data shared by all tdestandarddirs instances.
// Used in static methods like findExe()
class TDEStandardDirsSingleton
{
@@ -143,7 +143,7 @@ bool TDEStandardDirs::isRestrictedResource(const char *type, const TQString& rel
void TDEStandardDirs::applyDataRestrictions(const TQString &relPath) const
{
TQString key;
- int i = relPath.find(QChar('/'));
+ int i = relPath.find(TQChar('/'));
if (i != -1)
key = "data_"+relPath.left(i);
else
@@ -188,8 +188,8 @@ void TDEStandardDirs::addPrefix( const TQString& _dir, bool priority )
return;
TQString dir = _dir;
- if (dir.at(dir.length() - 1) != QChar('/'))
- dir += QChar('/');
+ if (dir.at(dir.length() - 1) != TQChar('/'))
+ dir += TQChar('/');
if (!prefixes.contains(dir)) {
priorityAdd(prefixes, dir, priority);
@@ -208,8 +208,8 @@ void TDEStandardDirs::addXdgConfigPrefix( const TQString& _dir, bool priority )
return;
TQString dir = _dir;
- if (dir.at(dir.length() - 1) != QChar('/'))
- dir += QChar('/');
+ if (dir.at(dir.length() - 1) != TQChar('/'))
+ dir += TQChar('/');
if (!d->xdgconf_prefixes.contains(dir)) {
priorityAdd(d->xdgconf_prefixes, dir, priority);
@@ -228,8 +228,8 @@ void TDEStandardDirs::addXdgDataPrefix( const TQString& _dir, bool priority )
return;
TQString dir = _dir;
- if (dir.at(dir.length() - 1) != QChar('/'))
- dir += QChar('/');
+ if (dir.at(dir.length() - 1) != TQChar('/'))
+ dir += TQChar('/');
if (!d->xdgdata_prefixes.contains(dir)) {
priorityAdd(d->xdgdata_prefixes, dir, priority);
@@ -270,8 +270,8 @@ bool TDEStandardDirs::addResourceType( const char *type,
relatives.insert(type, rels);
}
TQString copy = relativename;
- if (copy.at(copy.length() - 1) != QChar('/'))
- copy += QChar('/');
+ if (copy.at(copy.length() - 1) != TQChar('/'))
+ copy += TQChar('/');
if (!rels->contains(copy)) {
if (priority)
rels->prepend(copy);
@@ -300,8 +300,8 @@ bool TDEStandardDirs::addResourceDir( const char *type,
absolutes.insert(type, paths);
}
TQString copy = absdir;
- if (copy.at(copy.length() - 1) != QChar('/'))
- copy += QChar('/');
+ if (copy.at(copy.length() - 1) != TQChar('/'))
+ copy += TQChar('/');
if (!paths->contains(copy)) {
if (priority)
@@ -388,7 +388,7 @@ TQStringList TDEStandardDirs::findDirs( const char *type,
if (reldir.endsWith("/"))
list.append(reldir);
else
- list.append(reldir+QChar('/'));
+ list.append(reldir+TQChar('/'));
}
return list;
}
@@ -403,7 +403,7 @@ TQStringList TDEStandardDirs::findDirs( const char *type,
it != candidates.end(); ++it) {
testdir.setPath(*it + reldir);
if (testdir.exists())
- list.append(testdir.absPath() + QChar('/'));
+ list.append(testdir.absPath() + TQChar('/'));
}
return list;
@@ -427,21 +427,21 @@ TQString TDEStandardDirs::findResourceDir( const char *type,
for (TQStringList::ConstIterator it = candidates.begin();
it != candidates.end(); ++it) {
if (exists(*it + filename)) {
-#ifdef Q_WS_WIN //this ensures we're using installed .la files
+#ifdef TQ_WS_WIN //this ensures we're using installed .la files
if ((*it).isEmpty() && filename.right(3)==".la") {
#ifndef NDEBUG
fprintf(stderr, "TDEStandardDirs::findResourceDir() found .la in cwd: skipping. (fname=%s)\n", filename.ascii());
#endif
continue;
}
-#endif //Q_WS_WIN
+#endif //TQ_WS_WIN
return *it;
}
}
#ifndef NDEBUG
if(false && strcmp(type, "locale"))
- fprintf(stderr, "KStdDirs::findResDir(): can't find \"%s\" in type \"%s\".\n", filename.ascii(), type);
+ fprintf(stderr, "TDEStandardDirs::findResourceDir(): can't find \"%s\" in type \"%s\".\n", filename.ascii(), type);
#endif
return TQString::null;
@@ -451,7 +451,7 @@ bool TDEStandardDirs::exists(const TQString &fullPath)
{
KDE_struct_stat buff;
if ((access(TQFile::encodeName(fullPath), R_OK) == 0) && (KDE_stat( TQFile::encodeName(fullPath), &buff ) == 0)) {
- if (fullPath.at(fullPath.length() - 1) != QChar('/')) {
+ if (fullPath.at(fullPath.length() - 1) != TQChar('/')) {
if (S_ISREG( buff.st_mode ))
return true;
}
@@ -480,10 +480,10 @@ static void lookupDirectory(const TQString& path, const TQString &relPart,
if (!dp)
return;
-#ifdef Q_WS_WIN
- assert(path.at(path.length() - 1) == QChar('/') || path.at(path.length() - 1) == QChar('\\'));
+#ifdef TQ_WS_WIN
+ assert(path.at(path.length() - 1) == TQChar('/') || path.at(path.length() - 1) == TQChar('\\'));
#else
- assert(path.at(path.length() - 1) == QChar('/'));
+ assert(path.at(path.length() - 1) == TQChar('/'));
#endif
struct dirent *ep;
@@ -508,7 +508,7 @@ static void lookupDirectory(const TQString& path, const TQString &relPart,
}
if ( recursive ) {
if ( S_ISDIR( buff.st_mode )) {
- lookupDirectory(pathfn + QChar('/'), relPart + fn + QChar('/'), regexp, list, relList, recursive, unique);
+ lookupDirectory(pathfn + TQChar('/'), relPart + fn + TQChar('/'), regexp, list, relList, recursive, unique);
}
if (!regexp.exactMatch(fn))
continue; // No match
@@ -560,7 +560,7 @@ static void lookupPrefix(const TQString& prefix, const TQString& relpath,
if (relpath.length())
{
- int slash = relpath.find(QChar('/'));
+ int slash = relpath.find(TQChar('/'));
if (slash < 0)
rest = relpath.left(relpath.length() - 1);
else {
@@ -571,10 +571,10 @@ static void lookupPrefix(const TQString& prefix, const TQString& relpath,
if (prefix.isEmpty()) //for sanity
return;
-#ifdef Q_WS_WIN
- assert(prefix.at(prefix.length() - 1) == QChar('/') || prefix.at(prefix.length() - 1) == QChar('\\'));
+#ifdef TQ_WS_WIN
+ assert(prefix.at(prefix.length() - 1) == TQChar('/') || prefix.at(prefix.length() - 1) == TQChar('\\'));
#else
- assert(prefix.at(prefix.length() - 1) == QChar('/'));
+ assert(prefix.at(prefix.length() - 1) == TQChar('/'));
#endif
KDE_struct_stat buff;
@@ -594,7 +594,7 @@ static void lookupPrefix(const TQString& prefix, const TQString& relpath,
while( ( ep = readdir( dp ) ) != 0L )
{
TQString fn( TQFile::decodeName(ep->d_name));
- if (fn == _dot || fn == _dotdot || fn.at(fn.length() - 1) == QChar('~'))
+ if (fn == _dot || fn == _dotdot || fn.at(fn.length() - 1) == TQChar('~'))
continue;
if ( !pathExp.exactMatch(fn) )
@@ -606,15 +606,15 @@ static void lookupPrefix(const TQString& prefix, const TQString& relpath,
continue; // Couldn't stat (e.g. no permissions)
}
if ( S_ISDIR( buff.st_mode ))
- lookupPrefix(fn + QChar('/'), rest, rfn + QChar('/'), regexp, list, relList, recursive, unique);
+ lookupPrefix(fn + TQChar('/'), rest, rfn + TQChar('/'), regexp, list, relList, recursive, unique);
}
closedir( dp );
} else {
// Don't stat, if the dir doesn't exist we will find out
// when we try to open it.
- lookupPrefix(prefix + path + QChar('/'), rest,
- relPart + path + QChar('/'), regexp, list,
+ lookupPrefix(prefix + path + TQChar('/'), rest,
+ relPart + path + TQChar('/'), regexp, list,
relList, recursive, unique);
}
}
@@ -754,7 +754,7 @@ void TDEStandardDirs::createSpecialResource(const char *type)
}
}
}
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
if (relink)
{
if (!makeDir(dir, 0700))
@@ -789,7 +789,7 @@ void TDEStandardDirs::createSpecialResource(const char *type)
}
}
#endif
- addResourceDir(type, dir+QChar('/'));
+ addResourceDir(type, dir+TQChar('/'));
}
TQStringList TDEStandardDirs::resourceDirs(const char *type) const
@@ -904,9 +904,9 @@ TQStringList TDEStandardDirs::systemPaths( const TQString& pstr )
{
p = tokens[ i ];
- if ( p[ 0 ] == QChar('~') )
+ if ( p[ 0 ] == TQChar('~') )
{
- int len = p.find( QChar('/') );
+ int len = p.find( TQChar('/') );
if ( len == -1 )
len = p.length();
if ( len == 1 )
@@ -932,7 +932,7 @@ TQStringList TDEStandardDirs::systemPaths( const TQString& pstr )
TQString TDEStandardDirs::findExe( const TQString& appname,
const TQString& pstr, bool ignore)
{
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
TQString real_appname = appname + ".exe";
#else
TQString real_appname = appname;
@@ -981,7 +981,7 @@ TQString TDEStandardDirs::findExe( const TQString& appname,
int TDEStandardDirs::findAllExe( TQStringList& list, const TQString& appname,
const TQString& pstr, bool ignore )
{
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
TQString real_appname = appname + ".exe";
#else
TQString real_appname = appname;
@@ -1183,8 +1183,8 @@ bool TDEStandardDirs::makeDir(const TQString& dir, int mode)
uint len = target.length();
// append trailing slash if missing
- if (dir.at(len - 1) != QChar('/'))
- target += QChar('/');
+ if (dir.at(len - 1) != TQChar('/'))
+ target += TQChar('/');
TQString base("");
uint i = 1;
@@ -1192,7 +1192,7 @@ bool TDEStandardDirs::makeDir(const TQString& dir, int mode)
while( i < len )
{
KDE_struct_stat st;
- int pos = target.find(QChar('/'), i);
+ int pos = target.find(TQChar('/'), i);
base += target.mid(i - 1, pos - i + 1);
TQCString baseEncoded = TQFile::encodeName(base);
// bail out if we encountered a problem
@@ -1259,7 +1259,7 @@ TQString TDEStandardDirs::kfsstnd_defaultprefix()
TDEStandardDirsSingleton* s = TDEStandardDirsSingleton::self();
if (!s->defaultprefix.isEmpty())
return s->defaultprefix;
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
s->defaultprefix = readEnvPath("TDEDIR");
if (s->defaultprefix.isEmpty()) {
s->defaultprefix = TQFile::decodeName("c:\\kde");
@@ -1279,7 +1279,7 @@ TQString TDEStandardDirs::kfsstnd_defaultbindir()
TDEStandardDirsSingleton* s = TDEStandardDirsSingleton::self();
if (!s->defaultbindir.isEmpty())
return s->defaultbindir;
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
s->defaultbindir = kfsstnd_defaultprefix() + TQString::fromLatin1("/bin");
#else //UNIX
s->defaultbindir = __TDE_BINDIR;
@@ -1340,15 +1340,15 @@ void TDEStandardDirs::addKDEDefaults()
}
if (!localKdeDir.isEmpty())
{
- if (localKdeDir[localKdeDir.length()-1] != QChar('/'))
- localKdeDir += QChar('/');
+ if (localKdeDir[localKdeDir.length()-1] != TQChar('/'))
+ localKdeDir += TQChar('/');
}
else
{
localKdeDir = TQDir::homeDirPath() + "/.trinity/";
}
- if (localKdeDir != QString("-/"))
+ if (localKdeDir != TQString("-/"))
{
localKdeDir = KShell::tildeExpand(localKdeDir);
addPrefix(localKdeDir);
@@ -1374,7 +1374,7 @@ void TDEStandardDirs::addKDEDefaults()
{
xdgdirList.clear();
xdgdirList.append("/etc/xdg");
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
xdgdirList.append(kfsstnd_defaultprefix() + "/etc/xdg");
#else
xdgdirList.append(KDESYSCONFDIR "/xdg");
@@ -1384,8 +1384,8 @@ void TDEStandardDirs::addKDEDefaults()
TQString localXdgDir = readEnvPath("XDG_CONFIG_HOME");
if (!localXdgDir.isEmpty())
{
- if (localXdgDir[localXdgDir.length()-1] != QChar('/'))
- localXdgDir += QChar('/');
+ if (localXdgDir[localXdgDir.length()-1] != TQChar('/'))
+ localXdgDir += TQChar('/');
}
else
{
@@ -1416,8 +1416,8 @@ void TDEStandardDirs::addKDEDefaults()
it != tdedirList.end(); ++it)
{
TQString dir = *it;
- if (dir[dir.length()-1] != QChar('/'))
- dir += QChar('/');
+ if (dir[dir.length()-1] != TQChar('/'))
+ dir += TQChar('/');
xdgdirList.append(dir+"share/");
}
@@ -1428,8 +1428,8 @@ void TDEStandardDirs::addKDEDefaults()
localXdgDir = readEnvPath("XDG_DATA_HOME");
if (!localXdgDir.isEmpty())
{
- if (localXdgDir[localXdgDir.length()-1] != QChar('/'))
- localXdgDir += QChar('/');
+ if (localXdgDir[localXdgDir.length()-1] != TQChar('/'))
+ localXdgDir += TQChar('/');
}
else
{
@@ -1487,7 +1487,7 @@ static TQStringList lookupProfiles(const TQString &mapFile)
gid_t sup_gids[512];
int sup_gids_nr = getgroups(512, sup_gids);
- KSimpleConfig mapCfg(mapFile, true);
+ TDESimpleConfig mapCfg(mapFile, true);
mapCfg.setGroup("Users");
if (mapCfg.hasKey(user.data()))
{
diff --git a/tdecore/kstandarddirs.h b/tdecore/tdestandarddirs.h
index e40f7617f..b221ecd41 100644
--- a/tdecore/kstandarddirs.h
+++ b/tdecore/tdestandarddirs.h
@@ -1,5 +1,5 @@
/*
- This file is part of the KDE libraries
+ This file is part of the TDE libraries
Copyright (C) 1999 Sirtaj Singh Kang <taj@kde.org>
Copyright (C) 1999 Stephan Kulow <coolo@kde.org>
Copyright (C) 1999 Waldo Bastian <bastian@kde.org>
@@ -20,8 +20,8 @@
Boston, MA 02110-1301, USA.
*/
-#ifndef SSK_KSTDDIRS_H
-#define SSK_KSTDDIRS_H
+#ifndef _TDESTANDARDDIRS_H
+#define _TDESTANDARDDIRS_H
#include <tqstring.h>
#include <tqdict.h>
@@ -32,7 +32,7 @@ class TDEConfig;
class TDEStandardDirsPrivate;
/**
- * @short Site-independent access to standard KDE directories.
+ * @short Site-independent access to standard TDE directories.
* @author Stephan Kulow <coolo@kde.org> and Sirtaj Singh Kang <taj@kde.org>
*
* This is one of the most central classes in tdelibs as
@@ -46,9 +46,9 @@ class TDEStandardDirsPrivate;
* (e.g. icon) and a filename (e.g. khexdit.xpm). In an ideal world
* the application would make no assumption where this file is and
* leave it up to TDEStandardDirs::findResource("apps", "Home.desktop")
- * to apply this knowledge to return /opt/kde/share/applnk/Home.desktop
+ * to apply this knowledge to return /opt/trinity/share/applnk/Home.desktop
* or ::locate("data", "kgame/background.jpg") to return
- * /opt/kde/share/apps/kgame/background.jpg
+ * /opt/trinity/share/apps/kgame/background.jpg
*
* The main idea behind TDEStandardDirs is that there are several
* toplevel prefixes below which the files lie. One of these prefixes is
@@ -70,7 +70,7 @@ class TDEStandardDirsPrivate;
*
* @li apps - Applications menu (.desktop files).
* @li cache - Cached information (e.g. favicons, web-pages)
- * @li cgi - CGIs to run from kdehelp.
+ * @li cgi - CGIs to run from tdehelp.
* @li config - Configuration files.
* @li data - Where applications store data.
* @li exe - Executables in $prefix/bin. findExe() for a function that takes $PATH into account.
@@ -116,7 +116,7 @@ class TDEStandardDirsPrivate;
* used to search for resources first. If TDEHOME is not
* specified it defaults to "$HOME/.trinity"
* @li TDEROOTHOME: Like TDEHOME, but used for the root user.
- * If TDEROOTHOME is not set it defaults to the .kde directory in the
+ * If TDEROOTHOME is not set it defaults to the .trinity directory in the
* home directory of root, usually "/root/.trinity".
* Note that the setting of $HOME is ignored in this case.
*
@@ -140,7 +140,7 @@ public:
*
* @li When compiling tdelibs, the prefix is added to this.
* @li TDEDIRS or TDEDIR is taking into account
- * @li Additional dirs may be loaded from kdeglobals.
+ * @li Additional dirs may be loaded from tdeglobals.
*
* @param dir The directory to append relative paths to.
*/
@@ -169,7 +169,7 @@ public:
*
* You may add as many as you need, but it is advised that there
* is exactly one to make writing definite.
- * All basic types ( kde_default) are added by addKDEDefaults(),
+ * All basic types (kde_default) are added by addKDEDefaults(),
* but for those you can add more relative paths as well.
*
* The later a suffix is added, the higher its priority. Note, that the
@@ -214,7 +214,7 @@ public:
* to findResource("lib", "libtdecore.la"). TDEStandardDirs will
* then look into the subdir lib of all elements of all prefixes
* ($TDEDIRS) for a file libtdecore.la and return the path to
- * the first one it finds (e.g. /opt/kde/lib/libtdecore.la)
+ * the first one it finds (e.g. /opt/trinity/lib/libtdecore.la)
*
* @param type The type of the wanted resource
* @param filename A relative filename of the resource.
@@ -262,7 +262,7 @@ public:
* Tries to find all directories whose names consist of the
* specified type and a relative path. So would
* findDirs("apps", "Settings") return
- * @li /opt/kde/share/applnk/Settings/
+ * @li /opt/trinity/share/applnk/Settings/
* @li /home/joe/.trinity/share/applnk/Settings/
*
* Note that it appends / to the end of the directories,
@@ -288,7 +288,7 @@ public:
*
* findResourceDir("lib", "libtdecore.la") would return the
* path of the subdir libtdecore.la is found first in
- * (e.g. /opt/kde/lib/)
+ * (e.g. /opt/trinity/lib/)
*
* @param type The type of the wanted resource
* @param filename A relative filename of the resource.
@@ -409,7 +409,7 @@ public:
/**
* This function adds the defaults that are used by the current
- * KDE version.
+ * TDE version.
*
* It's a series of addResourceTypes()
* and addPrefix() calls.
@@ -446,7 +446,7 @@ public:
* This function will return a list of all the types that TDEStandardDirs
* supports.
*
- * @return All types that KDE supports
+ * @return All types that TDE supports
*/
TQStringList allTypes() const;
@@ -501,7 +501,7 @@ public:
static bool makeDir(const TQString& dir, int mode = 0755);
/**
- * This returns a default relative path for the standard KDE
+ * This returns a default relative path for the standard TDE
* resource types. Below is a list of them so you get an idea
* of what this is all about.
*
@@ -554,13 +554,13 @@ public:
/**
* @internal
- * Returns the default toplevel directory where KDE is installed.
+ * Returns the default toplevel directory where TDE is installed.
*/
static TQString kfsstnd_defaultprefix();
/**
* @internal
- * Returns the default bin directory in which KDE executables are stored.
+ * Returns the default bin directory in which TDE executables are stored.
*/
static TQString kfsstnd_defaultbindir();
@@ -649,12 +649,12 @@ public:
* @{
* On The Usage Of 'locate' and 'locateLocal'
*
- * Typical KDE applications use resource files in one out of
+ * Typical TDE applications use resource files in one out of
* three ways:
*
* 1) A resource file is read but is never written. A system
* default is supplied but the user can override this
- * default in his local .kde directory:
+ * default in his local .trinity directory:
*
* \code
* // Code example
@@ -665,7 +665,7 @@ public:
* 2) A resource file is read and written. If the user has no
* local version of the file the system default is used.
* The resource file is always written to the users local
- * .kde directory.
+ * .trinity directory.
*
* \code
* // Code example
@@ -681,7 +681,7 @@ public:
* 3) A resource file is read and written. No system default
* is used if the user has no local version of the file.
* The resource file is always written to the users local
- * .kde directory.
+ * .trinity directory.
*
* \code
* // Code example
@@ -726,4 +726,4 @@ TDECORE_EXPORT TQString locateLocal( const char *type, const TQString& filename,
/*! @} */
-#endif // SSK_KSTDDIRS_H
+#endif // _TDESTANDARDDIRS_H
diff --git a/tdecore/tdestartupinfo.cpp b/tdecore/tdestartupinfo.cpp
index 77b979edb..e34964c25 100644
--- a/tdecore/tdestartupinfo.cpp
+++ b/tdecore/tdestartupinfo.cpp
@@ -33,8 +33,8 @@ DEALINGS IN THE SOFTWARE.
#include <tqwidget.h>
#include "config.h"
-#ifdef Q_WS_X11
-//#ifdef Q_WS_X11 // FIXME(E): Re-implement in a less X11 specific way
+#ifdef TQ_WS_X11
+//#ifdef TQ_WS_X11 // FIXME(E): Re-implement in a less X11 specific way
#include <tqglobal.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -46,13 +46,13 @@ DEALINGS IN THE SOFTWARE.
#include <sys/time.h>
#include <stdlib.h>
#include <tqtimer.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#include <netwm.h>
#endif
#include <kdebug.h>
#include <tdeapplication.h>
#include <signal.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#include <twinmodule.h>
#include <kxmessages.h>
#include <twin.h>
@@ -93,7 +93,7 @@ struct TDEStartupInfoPrivate
TQMap< TDEStartupInfoId, TDEStartupInfo::Data > silent_startups;
// contains ASN's that had change: but no new: yet
TQMap< TDEStartupInfoId, TDEStartupInfo::Data > uninited_startups;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
KWinModule* wm_module;
KXMessages msgs;
#endif
@@ -101,7 +101,7 @@ struct TDEStartupInfoPrivate
int flags;
TDEStartupInfoPrivate( int flags_P )
:
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
msgs( NET_STARTUP_MSG, NULL, false ),
#endif
flags( flags_P ) {}
@@ -124,25 +124,25 @@ TDEStartupInfo::TDEStartupInfo( bool clean_on_cantdetect_P, TQObject* parent_P,
void TDEStartupInfo::init( int flags_P )
{
// d == NULL means "disabled"
- if( !TDEApplication::kApplication())
+ if( !tdeApp)
return;
- if( !TDEApplication::kApplication()->getDisplay())
+ if( !tdeApp->getDisplay())
return;
d = new TDEStartupInfoPrivate( flags_P );
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if( !( d->flags & DisableKWinModule ))
{
d->wm_module = new KWinModule( this );
- connect( d->wm_module, TQT_SIGNAL( windowAdded( WId )), TQT_SLOT( slot_window_added( WId )));
- connect( d->wm_module, TQT_SIGNAL( systemTrayWindowAdded( WId )), TQT_SLOT( slot_window_added( WId )));
+ connect( d->wm_module, TQ_SIGNAL( windowAdded( WId )), TQ_SLOT( slot_window_added( WId )));
+ connect( d->wm_module, TQ_SIGNAL( systemTrayWindowAdded( WId )), TQ_SLOT( slot_window_added( WId )));
}
else
d->wm_module = NULL;
- connect( &d->msgs, TQT_SIGNAL( gotMessage( const TQString& )), TQT_SLOT( got_message( const TQString& )));
+ connect( &d->msgs, TQ_SIGNAL( gotMessage( const TQString& )), TQ_SLOT( got_message( const TQString& )));
#endif
d->cleanup = new TQTimer( this, "cleanup" );
- connect( d->cleanup, TQT_SIGNAL( timeout()), TQT_SLOT( startups_cleanup()));
+ connect( d->cleanup, TQ_SIGNAL( timeout()), TQ_SLOT( startups_cleanup()));
}
TDEStartupInfo::~TDEStartupInfo()
@@ -183,7 +183,7 @@ class DelayedWindowEvent
void TDEStartupInfo::slot_window_added( WId w_P )
{
- kapp->postEvent( this, new DelayedWindowEvent( w_P ));
+ tdeApp->postEvent( this, new DelayedWindowEvent( w_P ));
}
void TDEStartupInfo::customEvent( TQCustomEvent* e_P )
@@ -489,8 +489,8 @@ bool TDEStartupInfo::sendFinishX( Display* disp_P, const TDEStartupInfoId& id_P,
void TDEStartupInfo::appStarted()
{
- if( kapp != NULL ) // TDEApplication constructor unsets the env. variable
- appStarted( kapp->startupId());
+ if( tdeApp != NULL ) // TDEApplication constructor unsets the env. variable
+ appStarted( tdeApp->startupId());
else
appStarted( TDEStartupInfo::currentStartupIdEnv().id());
}
@@ -501,11 +501,11 @@ void TDEStartupInfo::appStarted( const TQCString& startup_id )
id.initId( startup_id );
if( id.none())
return;
- if( kapp != NULL )
+ if( tdeApp != NULL )
TDEStartupInfo::sendFinish( id );
else if( getenv( "DISPLAY" ) != NULL ) // don't rely on tqt_xdisplay()
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
Display* disp = XOpenDisplay( NULL );
if( disp != NULL )
{
@@ -524,7 +524,7 @@ void TDEStartupInfo::disableAutoAppStartedSending( bool disable )
void TDEStartupInfo::silenceStartup( bool silence )
{
TDEStartupInfoId id;
- id.initId( kapp->startupId());
+ id.initId( tdeApp->startupId());
if( id.none())
return;
TDEStartupInfoData data;
@@ -541,7 +541,7 @@ void TDEStartupInfo::handleAutoAppStartedSending()
void TDEStartupInfo::setNewStartupId( TQWidget* window, const TQCString& startup_id )
{
bool activate = true;
- kapp->setStartupId( startup_id );
+ tdeApp->setStartupId( startup_id );
if( window != NULL )
{
if( !startup_id.isEmpty() && startup_id != "0" )
@@ -612,7 +612,7 @@ TDEStartupInfo::startup_t TDEStartupInfo::check_startup_internal( WId w_P, TDESt
}
return find_id( id, id_O, data_O ) ? Match : NoMatch;
}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETWinInfo info( tqt_xdisplay(), w_P, tqt_xrootwin(),
NET::WMWindowType | NET::WMPid | NET::WMState );
pid_t pid = info.pid();
@@ -729,7 +729,7 @@ bool TDEStartupInfo::find_wclass( TQCString res_name, TQCString res_class,
return false;
}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
static Atom net_startup_atom = None;
static TQCString read_startup_id_property( WId w_P )
@@ -755,7 +755,7 @@ static TQCString read_startup_id_property( WId w_P )
TQCString TDEStartupInfo::windowStartupId( WId w_P )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if( net_startup_atom == None )
net_startup_atom = XInternAtom( tqt_xdisplay(), NET_STARTUP_WINDOW, False );
if( utf8_string_atom == None )
@@ -777,7 +777,7 @@ TQCString TDEStartupInfo::windowStartupId( WId w_P )
void TDEStartupInfo::setWindowStartupId( WId w_P, const TQCString& id_P )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if( id_P.isNull())
return;
if( net_startup_atom == None )
@@ -791,7 +791,7 @@ void TDEStartupInfo::setWindowStartupId( WId w_P, const TQCString& id_P )
TQCString TDEStartupInfo::get_window_hostname( WId w_P )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
XTextProperty tp;
char** hh;
int cnt;
@@ -815,7 +815,7 @@ void TDEStartupInfo::setTimeout( unsigned int secs_P )
{
timeout = secs_P;
// schedule removing entries that are older than the new timeout
- TQTimer::singleShot( 0, this, TQT_SLOT( startups_cleanup_no_age()));
+ TQTimer::singleShot( 0, this, TQ_SLOT( startups_cleanup_no_age()));
}
void TDEStartupInfo::startups_cleanup_no_age()
@@ -930,7 +930,7 @@ TQCString TDEStartupInfo::createNewStartupId()
if (!gethostname( hostname, 255 ))
hostname[sizeof(hostname)-1] = '\0';
TQCString id = TQString(TQString( "%1;%2;%3;%4_TIME%5" ).arg( hostname ).arg( tm.tv_sec )
- .arg( tm.tv_usec ).arg( getpid()).arg( GET_QT_X_USER_TIME() )).utf8();
+ .arg( tm.tv_usec ).arg( getpid()).arg( get_tqt_x_user_time() )).utf8();
kdDebug( 172 ) << "[tdecore-tdestartupinfo] creating: " << id << ":" << tqAppName() << endl;
return id;
}
@@ -1130,9 +1130,9 @@ TQString TDEStartupInfoData::to_text() const
ret += TQString::fromLatin1( " DESKTOP=%1" )
.arg( d->desktop == NET::OnAllDesktops ? NET::OnAllDesktops : d->desktop - 1 ); // spec counts from 0
if( !d->wmclass.isEmpty())
- ret += TQString::fromLatin1( " WMCLASS=\"%1\"" ).arg( QString(d->wmclass) );
+ ret += TQString::fromLatin1( " WMCLASS=\"%1\"" ).arg( TQString(d->wmclass) );
if( !d->hostname.isEmpty())
- ret += TQString::fromLatin1( " HOSTNAME=%1" ).arg( QString(d->hostname) );
+ ret += TQString::fromLatin1( " HOSTNAME=%1" ).arg( TQString(d->hostname) );
for( TQValueList< pid_t >::ConstIterator it = d->pids.begin();
it != d->pids.end();
++it )
@@ -1456,7 +1456,7 @@ static
TQString get_str( const TQString& item_P )
{
unsigned int pos = item_P.find( '=' );
- if( item_P.length() > pos + 2 && item_P[ pos + 1 ] == (QChar)'\"' )
+ if( item_P.length() > pos + 2 && item_P[ pos + 1 ] == (TQChar)'\"' )
{
int pos2 = item_P.left( pos + 2 ).find( '\"' );
if( pos2 < 0 )
@@ -1512,8 +1512,8 @@ static TQString escape_str( const TQString& str_P )
pos < str_P.length();
++pos )
{
- if( str_P[ pos ] == (QChar)'\\'
- || str_P[ pos ] == (QChar)'"' )
+ if( str_P[ pos ] == (TQChar)'\\'
+ || str_P[ pos ] == (TQChar)'"' )
ret += '\\';
ret += str_P[ pos ];
}
diff --git a/tdecore/tdestartupinfo.h b/tdecore/tdestartupinfo.h
index 9fa57cd4b..bf507c026 100644
--- a/tdecore/tdestartupinfo.h
+++ b/tdecore/tdestartupinfo.h
@@ -28,11 +28,7 @@ DEALINGS IN THE SOFTWARE.
#include <sys/types.h>
#include <tqobject.h>
-#ifdef Q_MOC_RUN
-#define Q_WS_X11
-#endif // Q_MOC_RUN
-
-#ifdef Q_WS_X11 // FIXME(E): Redo in a less X11-specific way
+#ifdef TQ_WS_X11 // FIXME(E): Redo in a less X11-specific way
#include <tqcstring.h>
#include <tqstring.h>
@@ -67,7 +63,7 @@ class TDEStartupInfoPrivate;
class TDECORE_EXPORT TDEStartupInfo
: public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -98,7 +94,7 @@ class TDECORE_EXPORT TDEStartupInfo
/**
* Use this function if the application got a request with startup
- * notification from outside (for example, when KUniqueApplication::newInstance()
+ * notification from outside (for example, when TDEUniqueApplication::newInstance()
* is called, or e.g. when khelpcenter opens new URL in its window).
* The window can be either an already existing and visible window,
* or a new one, before being shown. Note that this function is usually
@@ -692,6 +688,6 @@ class TDECORE_EXPORT TDEStartupInfoData
TDEStartupInfoDataPrivate* d;
};
-#endif //Q_WS_X11
+#endif //TQ_WS_X11
#endif
diff --git a/tdecore/tdestdaccel.cpp b/tdecore/tdestdaccel.cpp
index ba3e64ca5..b26948fd0 100644
--- a/tdecore/tdestdaccel.cpp
+++ b/tdecore/tdestdaccel.cpp
@@ -50,59 +50,59 @@ struct TDEStdAccelInfo
static TDEStdAccelInfo g_infoStdAccel[] =
{
{AccelNone, "Group:File", I18N_NOOP("File"), 0, 0, 0, 0, TDEShortcut(), false },
- { Open, I18N_NOOP("Open"), 0, Qt::CTRL+Qt::Key_O, 0, 0, 0, TDEShortcut(), false },
- { New, I18N_NOOP("New"), 0, Qt::CTRL+Qt::Key_N, 0, 0, 0, TDEShortcut(), false },
- { Close, I18N_NOOP("Close"), 0, Qt::CTRL+Qt::Key_W, Qt::CTRL+Qt::Key_Escape, 0, Qt::CTRL+Qt::Key_W, TDEShortcut(), false },
- { Save, I18N_NOOP("Save"), 0, Qt::CTRL+Qt::Key_S, 0, 0, 0, TDEShortcut(), false },
- { Print, I18N_NOOP("Print"), 0, Qt::CTRL+Qt::Key_P, 0, 0, 0, TDEShortcut(), false },
- { Quit, I18N_NOOP("Quit"), 0, Qt::CTRL+Qt::Key_Q, 0, 0, 0, TDEShortcut(), false },
+ { Open, I18N_NOOP("Open"), 0, TQt::CTRL+TQt::Key_O, 0, 0, 0, TDEShortcut(), false },
+ { New, I18N_NOOP("New"), 0, TQt::CTRL+TQt::Key_N, 0, 0, 0, TDEShortcut(), false },
+ { Close, I18N_NOOP("Close"), 0, TQt::CTRL+TQt::Key_W, TQt::CTRL+TQt::Key_Escape, 0, TQt::CTRL+TQt::Key_W, TDEShortcut(), false },
+ { Save, I18N_NOOP("Save"), 0, TQt::CTRL+TQt::Key_S, 0, 0, 0, TDEShortcut(), false },
+ { Print, I18N_NOOP("Print"), 0, TQt::CTRL+TQt::Key_P, 0, 0, 0, TDEShortcut(), false },
+ { Quit, I18N_NOOP("Quit"), 0, TQt::CTRL+TQt::Key_Q, 0, 0, 0, TDEShortcut(), false },
{AccelNone, "Group:Edit", I18N_NOOP("Edit"), 0, 0, 0, 0, TDEShortcut(), false },
- { Undo, I18N_NOOP("Undo"), 0, Qt::CTRL+Qt::Key_Z, 0, 0, 0, TDEShortcut(), false },
- { Redo, I18N_NOOP("Redo"), 0, Qt::CTRL+Qt::SHIFT+Qt::Key_Z, 0, 0, 0, TDEShortcut(), false },
- { Cut, I18N_NOOP("Cut"), 0, Qt::CTRL+Qt::Key_X, 0, Qt::SHIFT+Qt::Key_Delete, 0, TDEShortcut(), false },
- { Copy, I18N_NOOP("Copy"), 0, Qt::CTRL+Qt::Key_C, 0, Qt::CTRL+Qt::Key_Insert, 0, TDEShortcut(), false },
- { Paste, I18N_NOOP("Paste"), 0, Qt::CTRL+Qt::Key_V, 0, Qt::SHIFT+Qt::Key_Insert, 0, TDEShortcut(), false },
- { PasteSelection, I18N_NOOP("Paste Selection"), 0, 0, 0, Qt::CTRL+Qt::SHIFT+Qt::Key_Insert, 0, TDEShortcut(), false },
- { SelectAll, "SelectAll", I18N_NOOP("Select All"), Qt::CTRL+Qt::Key_A, 0, 0, 0, TDEShortcut(), false },
- { Deselect, I18N_NOOP("Deselect"), 0, Qt::CTRL+Qt::SHIFT+Qt::Key_A, 0, 0, 0, TDEShortcut(), false },
- { DeleteWordBack, "DeleteWordBack", I18N_NOOP("Delete Word Backwards"), Qt::CTRL+Qt::Key_Backspace, 0, 0, 0, TDEShortcut(), false },
- { DeleteWordForward, "DeleteWordForward", I18N_NOOP("Delete Word Forward"), Qt::CTRL+Qt::Key_Delete, 0, 0, 0, TDEShortcut(), false },
- { Find, I18N_NOOP("Find"), 0, Qt::CTRL+Qt::Key_F, 0, 0, 0, TDEShortcut(), false },
- { FindNext, "FindNext", I18N_NOOP("Find Next"), Qt::Key_F3, 0, 0, 0, TDEShortcut(), false },
- { FindPrev, "FindPrev", I18N_NOOP("Find Prev"), Qt::SHIFT+Qt::Key_F3, 0, 0, 0, TDEShortcut(), false },
- { Replace, I18N_NOOP("Replace"), 0, Qt::CTRL+Qt::Key_R, 0, 0, 0, TDEShortcut(), false },
+ { Undo, I18N_NOOP("Undo"), 0, TQt::CTRL+TQt::Key_Z, 0, 0, 0, TDEShortcut(), false },
+ { Redo, I18N_NOOP("Redo"), 0, TQt::CTRL+TQt::SHIFT+TQt::Key_Z, 0, 0, 0, TDEShortcut(), false },
+ { Cut, I18N_NOOP("Cut"), 0, TQt::CTRL+TQt::Key_X, 0, TQt::SHIFT+TQt::Key_Delete, 0, TDEShortcut(), false },
+ { Copy, I18N_NOOP("Copy"), 0, TQt::CTRL+TQt::Key_C, 0, TQt::CTRL+TQt::Key_Insert, 0, TDEShortcut(), false },
+ { Paste, I18N_NOOP("Paste"), 0, TQt::CTRL+TQt::Key_V, 0, TQt::SHIFT+TQt::Key_Insert, 0, TDEShortcut(), false },
+ { PasteSelection, I18N_NOOP("Paste Selection"), 0, 0, 0, TQt::CTRL+TQt::SHIFT+TQt::Key_Insert, 0, TDEShortcut(), false },
+ { SelectAll, "SelectAll", I18N_NOOP("Select All"), TQt::CTRL+TQt::Key_A, 0, 0, 0, TDEShortcut(), false },
+ { Deselect, I18N_NOOP("Deselect"), 0, TQt::CTRL+TQt::SHIFT+TQt::Key_A, 0, 0, 0, TDEShortcut(), false },
+ { DeleteWordBack, "DeleteWordBack", I18N_NOOP("Delete Word Backwards"), TQt::CTRL+TQt::Key_Backspace, 0, 0, 0, TDEShortcut(), false },
+ { DeleteWordForward, "DeleteWordForward", I18N_NOOP("Delete Word Forward"), TQt::CTRL+TQt::Key_Delete, 0, 0, 0, TDEShortcut(), false },
+ { Find, I18N_NOOP("Find"), 0, TQt::CTRL+TQt::Key_F, 0, 0, 0, TDEShortcut(), false },
+ { FindNext, "FindNext", I18N_NOOP("Find Next"), TQt::Key_F3, 0, 0, 0, TDEShortcut(), false },
+ { FindPrev, "FindPrev", I18N_NOOP("Find Prev"), TQt::SHIFT+TQt::Key_F3, 0, 0, 0, TDEShortcut(), false },
+ { Replace, I18N_NOOP("Replace"), 0, TQt::CTRL+TQt::Key_R, 0, 0, 0, TDEShortcut(), false },
{AccelNone, "Group:Navigation", I18N_NOOP("Navigation"), 0, 0, 0, 0, TDEShortcut(), false },
- { Home, I18N_NOOP2("Opposite to End","Home"), 0, Qt::CTRL+Qt::Key_Home, 0, Qt::Key_HomePage, 0, TDEShortcut(), false },
- { End, I18N_NOOP("End"), 0, Qt::CTRL+Qt::Key_End, 0, 0, 0, TDEShortcut(), false },
- { BeginningOfLine, "BeginningOfLine", I18N_NOOP("Beginning of Line"), Qt::Key_Home, 0, 0, 0, TDEShortcut(), false},
- { EndOfLine, "EndOfLine", I18N_NOOP("End of Line"), Qt::Key_End, 0, 0, 0, TDEShortcut(), false},
+ { Home, I18N_NOOP2("Opposite to End","Home"), 0, TQt::CTRL+TQt::Key_Home, 0, TQt::Key_HomePage, 0, TDEShortcut(), false },
+ { End, I18N_NOOP("End"), 0, TQt::CTRL+TQt::Key_End, 0, 0, 0, TDEShortcut(), false },
+ { BeginningOfLine, "BeginningOfLine", I18N_NOOP("Beginning of Line"), TQt::Key_Home, 0, 0, 0, TDEShortcut(), false},
+ { EndOfLine, "EndOfLine", I18N_NOOP("End of Line"), TQt::Key_End, 0, 0, 0, TDEShortcut(), false},
{ Prior, I18N_NOOP("Prior"), 0, TQt::Key_Prior, 0, 0, 0, TDEShortcut(), false },
{ Next, I18N_NOOP2("Opposite to Prior","Next"), 0, TQt::Key_Next, 0, 0, 0, TDEShortcut(), false },
- { GotoLine, "GotoLine", I18N_NOOP("Go to Line"), Qt::CTRL+Qt::Key_G, 0, 0, 0, TDEShortcut(), false },
- { AddBookmark, "AddBookmark", I18N_NOOP("Add Bookmark"), Qt::CTRL+Qt::Key_B, 0, 0, 0, TDEShortcut(), false },
- { ZoomIn, "ZoomIn", I18N_NOOP("Zoom In"), Qt::CTRL+Qt::Key_Plus, 0, 0, 0, TDEShortcut(), false },
- { ZoomOut, "ZoomOut", I18N_NOOP("Zoom Out"), Qt::CTRL+Qt::Key_Minus, 0, 0, 0, TDEShortcut(), false },
- { Up, I18N_NOOP("Up"), 0, Qt::ALT+Qt::Key_Up, 0, 0, 0, TDEShortcut(), false },
- { Back, I18N_NOOP("Back"), 0, Qt::ALT+Qt::Key_Left, 0, Qt::Key_Back, 0, TDEShortcut(), false },
- { Forward, I18N_NOOP("Forward"), 0, Qt::ALT+Qt::Key_Right, 0, Qt::Key_Forward, 0, TDEShortcut(), false },
- { Reload, I18N_NOOP("Reload"), 0, Qt::Key_F5, 0, Qt::Key_Refresh, 0, TDEShortcut(), false },
- { PopupMenuContext, "PopupMenuContext", I18N_NOOP("Popup Menu Context"), Qt::Key_Menu, 0, 0, 0, TDEShortcut(), false },
- { ShowMenubar, "ShowMenubar", I18N_NOOP("Show Menu Bar"), Qt::CTRL+Qt::Key_M, 0, 0, 0, TDEShortcut(), false },
- { BackwardWord, "BackwardWord", I18N_NOOP("Backward Word"), Qt::CTRL+Qt::Key_Left, 0, 0, 0, TDEShortcut(), false },
- { ForwardWord, "ForwardWord", I18N_NOOP("Forward Word"), Qt::CTRL+Qt::Key_Right, 0, 0, 0, TDEShortcut(), false },
- { TabNext, I18N_NOOP("Activate Next Tab"), 0, Qt::CTRL+Qt::Key_Period, 0, Qt::CTRL+Qt::Key_BracketRight, 0, TDEShortcut(), false },
- { TabPrev, I18N_NOOP("Activate Previous Tab"), 0, Qt::CTRL+Qt::Key_Comma, 0, Qt::CTRL+Qt::Key_BracketLeft, 0, TDEShortcut(), false },
- { FullScreen, "FullScreen", I18N_NOOP("Full Screen Mode"), Qt::CTRL+Qt::SHIFT+Qt::Key_F, 0, 0, 0, TDEShortcut(), false },
+ { GotoLine, "GotoLine", I18N_NOOP("Go to Line"), TQt::CTRL+TQt::Key_G, 0, 0, 0, TDEShortcut(), false },
+ { AddBookmark, "AddBookmark", I18N_NOOP("Add Bookmark"), TQt::CTRL+TQt::Key_B, 0, 0, 0, TDEShortcut(), false },
+ { ZoomIn, "ZoomIn", I18N_NOOP("Zoom In"), TQt::CTRL+TQt::Key_Plus, 0, 0, 0, TDEShortcut(), false },
+ { ZoomOut, "ZoomOut", I18N_NOOP("Zoom Out"), TQt::CTRL+TQt::Key_Minus, 0, 0, 0, TDEShortcut(), false },
+ { Up, I18N_NOOP("Up"), 0, TQt::ALT+TQt::Key_Up, 0, 0, 0, TDEShortcut(), false },
+ { Back, I18N_NOOP("Back"), 0, TQt::ALT+TQt::Key_Left, 0, TQt::Key_Back, 0, TDEShortcut(), false },
+ { Forward, I18N_NOOP("Forward"), 0, TQt::ALT+TQt::Key_Right, 0, TQt::Key_Forward, 0, TDEShortcut(), false },
+ { Reload, I18N_NOOP("Reload"), 0, TQt::Key_F5, 0, TQt::Key_Refresh, 0, TDEShortcut(), false },
+ { PopupMenuContext, "PopupMenuContext", I18N_NOOP("Popup Menu Context"), TQt::Key_Menu, 0, 0, 0, TDEShortcut(), false },
+ { ShowMenubar, "ShowMenubar", I18N_NOOP("Show Menu Bar"), TQt::CTRL+TQt::Key_M, 0, 0, 0, TDEShortcut(), false },
+ { BackwardWord, "BackwardWord", I18N_NOOP("Backward Word"), TQt::CTRL+TQt::Key_Left, 0, 0, 0, TDEShortcut(), false },
+ { ForwardWord, "ForwardWord", I18N_NOOP("Forward Word"), TQt::CTRL+TQt::Key_Right, 0, 0, 0, TDEShortcut(), false },
+ { TabNext, I18N_NOOP("Activate Next Tab"), 0, TQt::CTRL+TQt::Key_Period, 0, TQt::CTRL+TQt::Key_BracketRight, 0, TDEShortcut(), false },
+ { TabPrev, I18N_NOOP("Activate Previous Tab"), 0, TQt::CTRL+TQt::Key_Comma, 0, TQt::CTRL+TQt::Key_BracketLeft, 0, TDEShortcut(), false },
+ { FullScreen, "FullScreen", I18N_NOOP("Full Screen Mode"), TQt::CTRL+TQt::SHIFT+TQt::Key_F, 0, 0, 0, TDEShortcut(), false },
{AccelNone, "Group:Help", I18N_NOOP("Help"), 0, 0, 0, 0, TDEShortcut(), false },
- { Help, I18N_NOOP("Help"), 0, Qt::Key_F1, 0, 0, 0, TDEShortcut(), false },
- { WhatsThis, "WhatsThis", I18N_NOOP("What's This"), Qt::SHIFT+Qt::Key_F1, 0, 0, 0, TDEShortcut(), false },
+ { Help, I18N_NOOP("Help"), 0, TQt::Key_F1, 0, 0, 0, TDEShortcut(), false },
+ { WhatsThis, "WhatsThis", I18N_NOOP("What's This"), TQt::SHIFT+TQt::Key_F1, 0, 0, 0, TDEShortcut(), false },
{AccelNone, "Group:TextCompletion", I18N_NOOP("Text Completion"), 0, 0, 0, 0, TDEShortcut(), false },
- { TextCompletion, "TextCompletion", I18N_NOOP("Text Completion"), Qt::CTRL+Qt::Key_E, 0, 0, 0, TDEShortcut(), false },
- { PrevCompletion, "PrevCompletion", I18N_NOOP("Previous Completion Match"), Qt::CTRL+Qt::Key_Up, 0, 0, 0, TDEShortcut(), false },
- { NextCompletion, "NextCompletion", I18N_NOOP("Next Completion Match"), Qt::CTRL+Qt::Key_Down, 0, 0, 0, TDEShortcut(), false },
- { SubstringCompletion, "SubstringCompletion", I18N_NOOP("Substring Completion"), Qt::CTRL+Qt::Key_T, 0, 0, 0, TDEShortcut(), false },
- { RotateUp, "RotateUp", I18N_NOOP("Previous Item in List"), Qt::Key_Up, 0, 0, 0, TDEShortcut(), false },
- { RotateDown, "RotateDown", I18N_NOOP("Next Item in List"), Qt::Key_Down, 0, 0, 0, TDEShortcut(), false },
+ { TextCompletion, "TextCompletion", I18N_NOOP("Text Completion"), TQt::CTRL+TQt::Key_E, 0, 0, 0, TDEShortcut(), false },
+ { PrevCompletion, "PrevCompletion", I18N_NOOP("Previous Completion Match"), TQt::CTRL+TQt::Key_Up, 0, 0, 0, TDEShortcut(), false },
+ { NextCompletion, "NextCompletion", I18N_NOOP("Next Completion Match"), TQt::CTRL+TQt::Key_Down, 0, 0, 0, TDEShortcut(), false },
+ { SubstringCompletion, "SubstringCompletion", I18N_NOOP("Substring Completion"), TQt::CTRL+TQt::Key_T, 0, 0, 0, TDEShortcut(), false },
+ { RotateUp, "RotateUp", I18N_NOOP("Previous Item in List"), TQt::Key_Up, 0, 0, 0, TDEShortcut(), false },
+ { RotateDown, "RotateDown", I18N_NOOP("Next Item in List"), TQt::Key_Down, 0, 0, 0, TDEShortcut(), false },
{ AccelNone, 0, 0, 0, 0, 0, 0, TDEShortcut(), false }
};
diff --git a/tdecore/tdestdaccel.h b/tdecore/tdestdaccel.h
index e39b090b9..735c11dd0 100644
--- a/tdecore/tdestdaccel.h
+++ b/tdecore/tdestdaccel.h
@@ -452,22 +452,22 @@ namespace TDEStdAccel
* @deprecated
* Obsolete. Use name(). Returns a string representation for @p accel.
*/
- TDECORE_EXPORT TQString action(StdAccel id) KDE_DEPRECATED;
+ TDECORE_EXPORT TQString action(StdAccel id) TDE_DEPRECATED;
/**
* @deprecated
* Obsolete. Use desc(). Returns a localized description of @p accel.
*/
- TDECORE_EXPORT TQString description(StdAccel id) KDE_DEPRECATED;
+ TDECORE_EXPORT TQString description(StdAccel id) TDE_DEPRECATED;
/**
* @deprecated
* Obsolete. Use shortcut(). Returns the keybinding for @p accel.
*/
- TDECORE_EXPORT int key(StdAccel) KDE_DEPRECATED;
+ TDECORE_EXPORT int key(StdAccel) TDE_DEPRECATED;
/**
* @deprecated
* Obsolete. Use shortcutDefault().
*/
- TDECORE_EXPORT int defaultKey(StdAccel accel) KDE_DEPRECATED;
+ TDECORE_EXPORT int defaultKey(StdAccel accel) TDE_DEPRECATED;
/**
* @deprecated. Use KKey(const TQKeyEvent*) == KKey(int).
@@ -484,7 +484,7 @@ namespace TDEStdAccel
*
* @return true if the int value matches the integer representation of the QKeyEvent
*/
- TDECORE_EXPORT bool isEqual(const TQKeyEvent* pEvent, int keyQt) KDE_DEPRECATED;
+ TDECORE_EXPORT bool isEqual(const TQKeyEvent* pEvent, int keyQt) TDE_DEPRECATED;
#endif // !KDE_NO_COMPAT
}
diff --git a/tdecore/tdesycoca.cpp b/tdecore/tdesycoca.cpp
index a11175117..80764faec 100644
--- a/tdecore/tdesycoca.cpp
+++ b/tdecore/tdesycoca.cpp
@@ -30,8 +30,8 @@
#include <dcopclient.h>
#include <tdeglobal.h>
#include <kdebug.h>
-#include <kprocess.h>
-#include <kstandarddirs.h>
+#include <tdeprocess.h>
+#include <tdestandarddirs.h>
#include <assert.h>
#include <stdlib.h>
@@ -42,7 +42,7 @@
#include <sys/mman.h>
#endif
-#ifdef Q_OS_SOLARIS
+#if defined(Q_OS_SOLARIS) && !defined(__dilos__)
extern "C"
{
extern int madvise(caddr_t, size_t, int);
@@ -92,9 +92,9 @@ KSycoca::KSycoca()
{
d = new KSycocaPrivate;
// Register app as able to receive DCOP messages
- if (kapp && !kapp->dcopClient()->isAttached())
+ if (tdeApp && !tdeApp->dcopClient()->isAttached())
{
- kapp->dcopClient()->attach();
+ tdeApp->dcopClient()->attach();
}
// We register with DCOP _before_ we try to open the database.
// This way we can be relative sure that the KDE framework is
@@ -228,7 +228,7 @@ KSycoca::~KSycoca()
void KSycoca::closeDatabase()
{
- QIODevice *device = 0;
+ TQIODevice *device = 0;
if (m_str)
device = m_str->device();
#ifdef HAVE_MMAP
@@ -246,7 +246,7 @@ void KSycoca::closeDatabase()
delete m_str;
m_str = 0;
delete device;
- if (TQT_TQIODEVICE(d->database) != device)
+ if (d->database != device)
delete d->database;
if (m_barray) delete m_barray;
m_barray = 0;
diff --git a/tdecore/tdesycoca.h b/tdecore/tdesycoca.h
index f8e2274e0..a96bd9d9f 100644
--- a/tdecore/tdesycoca.h
+++ b/tdecore/tdesycoca.h
@@ -43,7 +43,7 @@ class KSycocaFactoryList;
*/
class TDECORE_EXPORT KSycoca : public TQObject, public DCOPObject
{
- Q_OBJECT
+ TQ_OBJECT
K_DCOP
protected:
diff --git a/tdecore/tdetempfile.cpp b/tdecore/tdetempfile.cpp
index 805d315a1..4f6dade45 100644
--- a/tdecore/tdetempfile.cpp
+++ b/tdecore/tdetempfile.cpp
@@ -50,9 +50,9 @@
#include "tdeglobal.h"
#include "tdeapplication.h"
-#include "kinstance.h"
+#include "tdeinstance.h"
#include "tdetempfile.h"
-#include "kstandarddirs.h"
+#include "tdestandarddirs.h"
#include "kde_file.h"
#include "kdebug.h"
diff --git a/tdecore/kuniqueapplication.cpp b/tdecore/tdeuniqueapplication.cpp
index 12c9c1297..85904a622 100644
--- a/tdecore/kuniqueapplication.cpp
+++ b/tdecore/tdeuniqueapplication.cpp
@@ -35,36 +35,36 @@
#include <dcopclient.h>
#include <tdecmdlineargs.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeaboutdata.h>
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
#include <twin.h>
#include <tdestartupinfo.h>
#endif
#include <tdeconfig.h>
#include "kdebug.h"
-#include "kuniqueapplication.h"
+#include "tdeuniqueapplication.h"
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
#include <netwm.h>
#include <X11/Xlib.h>
#define DISPLAY "DISPLAY"
#else
-# ifdef Q_WS_QWS
+# ifdef TQ_WS_QWS
# define DISPLAY "QWS_DISPLAY"
# else
# define DISPLAY "DISPLAY"
# endif
#endif
-bool KUniqueApplication::s_nofork = false;
-bool KUniqueApplication::s_multipleInstances = false;
-bool KUniqueApplication::s_uniqueTestDone = false;
-bool KUniqueApplication::s_handleAutoStarted = false;
+bool TDEUniqueApplication::s_nofork = false;
+bool TDEUniqueApplication::s_multipleInstances = false;
+bool TDEUniqueApplication::s_uniqueTestDone = false;
+bool TDEUniqueApplication::s_handleAutoStarted = false;
-static TDECmdLineOptions kunique_options[] =
+static TDECmdLineOptions tdeunique_options[] =
{
{ "nofork", "Don't run in the background.", 0 },
TDECmdLineLastOption
@@ -76,7 +76,7 @@ struct DCOPRequest {
DCOPClientTransaction *transaction;
};
-class KUniqueApplicationPrivate {
+class TDEUniqueApplicationPrivate {
public:
TQPtrList <DCOPRequest> requestList;
bool processingRequest;
@@ -84,22 +84,22 @@ public:
};
void
-KUniqueApplication::addCmdLineOptions()
+TDEUniqueApplication::addCmdLineOptions()
{
- TDECmdLineArgs::addCmdLineOptions(kunique_options, 0, "kuniqueapp", "tde" );
+ TDECmdLineArgs::addCmdLineOptions(tdeunique_options, 0, "tdeuniqueapp", "tde" );
}
bool
-KUniqueApplication::start()
+TDEUniqueApplication::start()
{
if( s_uniqueTestDone )
return true;
s_uniqueTestDone = true;
addCmdLineOptions(); // Make sure to add cmd line options
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
s_nofork = true;
#else
- TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs("kuniqueapp");
+ TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs("tdeuniqueapp");
s_nofork = !args->isSet("fork");
delete args;
#endif
@@ -118,11 +118,11 @@ KUniqueApplication::start()
// Check to make sure that we're actually able to register with the DCOP
// server.
-#ifndef Q_WS_WIN //TODO
+#ifndef TQ_WS_WIN //TODO
if(dcopClient()->registerAs(appName, false).isEmpty()) {
startKdeinit();
if(dcopClient()->registerAs(appName, false).isEmpty()) {
- kdError() << "KUniqueApplication: Can't setup DCOP communication." << endl;
+ kdError() << "TDEUniqueApplication: Can't setup DCOP communication." << endl;
::exit(255);
}
}
@@ -136,13 +136,13 @@ KUniqueApplication::start()
signed char result;
if (0 > pipe(fd))
{
- kdError() << "KUniqueApplication: pipe() failed!" << endl;
+ kdError() << "TDEUniqueApplication: pipe() failed!" << endl;
::exit(255);
}
int fork_result = fork();
switch(fork_result) {
case -1:
- kdError() << "KUniqueApplication: fork() failed!" << endl;
+ kdError() << "TDEUniqueApplication: fork() failed!" << endl;
::exit(255);
break;
case 0:
@@ -158,7 +158,7 @@ KUniqueApplication::start()
// Check DISPLAY
if (TQCString(getenv(DISPLAY)).isEmpty())
{
- kdError() << "KUniqueApplication: Can't determine DISPLAY. Aborting." << endl;
+ kdError() << "TDEUniqueApplication: Can't determine DISPLAY. Aborting." << endl;
result = -1; // Error
::write(fd[1], &result, 1);
::exit(255);
@@ -169,7 +169,7 @@ KUniqueApplication::start()
regName = dc->registerAs(appName, false);
if (regName.isEmpty())
{
- kdError() << "KUniqueApplication: Can't setup DCOP communication." << endl;
+ kdError() << "TDEUniqueApplication: Can't setup DCOP communication." << endl;
result = -1;
delete dc; // Clean up DCOP commmunication
::write(fd[1], &result, 1);
@@ -184,11 +184,11 @@ KUniqueApplication::start()
::write(fd[1], &result, 1);
::close(fd[1]);
#if 0
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
// say we're up and running ( probably no new window will appear )
TDEStartupInfoId id;
- if( kapp != NULL ) // TDEApplication constructor unsets the env. variable
- id.initId( kapp->startupId());
+ if( tdeApp != NULL ) // TDEApplication constructor unsets the env. variable
+ id.initId( tdeApp->startupId());
else
id = TDEStartupInfo::currentStartupIdEnv();
if( !id.none())
@@ -209,10 +209,10 @@ KUniqueApplication::start()
}
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
TDEStartupInfoId id;
- if( kapp != NULL ) // TDEApplication constructor unsets the env. variable
- id.initId( kapp->startupId());
+ if( tdeApp != NULL ) // TDEApplication constructor unsets the env. variable
+ id.initId( tdeApp->startupId());
else
id = TDEStartupInfo::currentStartupIdEnv();
if( !id.none())
@@ -246,12 +246,12 @@ KUniqueApplication::start()
if (n == 1) break;
if (n == 0)
{
- kdError() << "KUniqueApplication: Pipe closed unexpectedly." << endl;
+ kdError() << "TDEUniqueApplication: Pipe closed unexpectedly." << endl;
::exit(255);
}
if (errno != EINTR)
{
- kdError() << "KUniqueApplication: Error reading from pipe." << endl;
+ kdError() << "TDEUniqueApplication: Error reading from pipe." << endl;
::exit(255);
}
}
@@ -263,19 +263,19 @@ KUniqueApplication::start()
dc = new DCOPClient();
if (!dc->attach())
{
- kdError() << "KUniqueApplication: Parent process can't attach to DCOP." << endl;
+ kdError() << "TDEUniqueApplication: Parent process can't attach to DCOP." << endl;
delete dc; // Clean up DCOP commmunication
::exit(255);
}
if (!dc->isApplicationRegistered(appName)) {
- kdError() << "KUniqueApplication: Registering failed!" << endl;
+ kdError() << "TDEUniqueApplication: Registering failed!" << endl;
}
TQCString new_asn_id;
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
TDEStartupInfoId id;
- if( kapp != NULL ) // TDEApplication constructor unsets the env. variable
- id.initId( kapp->startupId());
+ if( tdeApp != NULL ) // TDEApplication constructor unsets the env. variable
+ id.initId( tdeApp->startupId());
else
id = TDEStartupInfo::currentStartupIdEnv();
if( !id.none())
@@ -299,7 +299,7 @@ KUniqueApplication::start()
dc->setPriorityCall(false);
if (replyType != "int")
{
- kdError() << "KUniqueApplication: DCOP communication error!" << endl;
+ kdError() << "TDEUniqueApplication: DCOP communication error!" << endl;
delete dc; // Clean up DCOP commmunication
::exit(255);
}
@@ -314,54 +314,54 @@ KUniqueApplication::start()
}
-KUniqueApplication::KUniqueApplication(bool allowStyles, bool GUIenabled, bool configUnique)
+TDEUniqueApplication::TDEUniqueApplication(bool allowStyles, bool GUIenabled, bool configUnique)
: TDEApplication( allowStyles, GUIenabled, initHack( configUnique )),
DCOPObject(TDECmdLineArgs::about->appName())
{
- d = new KUniqueApplicationPrivate;
+ d = new TDEUniqueApplicationPrivate;
d->processingRequest = false;
d->firstInstance = true;
if (s_nofork) {
// Can't call newInstance directly from the constructor since it's virtual...
- TQTimer::singleShot( 0, this, TQT_SLOT(newInstanceNoFork()) );
+ TQTimer::singleShot( 0, this, TQ_SLOT(newInstanceNoFork()) );
}
else {
// Force to handle DCOP requests (newInstance call)
- TQTimer::singleShot( 0, this, TQT_SLOT(processDelayed()));
+ TQTimer::singleShot( 0, this, TQ_SLOT(processDelayed()));
}
}
-#ifdef Q_WS_X11
-KUniqueApplication::KUniqueApplication(Display *display, Qt::HANDLE visual,
- Qt::HANDLE colormap, bool allowStyles, bool configUnique)
+#ifdef TQ_WS_X11
+TDEUniqueApplication::TDEUniqueApplication(Display *display, TQt::HANDLE visual,
+ TQt::HANDLE colormap, bool allowStyles, bool configUnique)
: TDEApplication( display, visual, colormap, allowStyles, initHack( configUnique )),
DCOPObject(TDECmdLineArgs::about->appName())
{
- d = new KUniqueApplicationPrivate;
+ d = new TDEUniqueApplicationPrivate;
d->processingRequest = false;
d->firstInstance = true;
if (s_nofork) {
// Can't call newInstance directly from the constructor since it's virtual...
- TQTimer::singleShot( 0, this, TQT_SLOT(newInstanceNoFork()) );
+ TQTimer::singleShot( 0, this, TQ_SLOT(newInstanceNoFork()) );
}
else {
// Force to handle DCOP requests (newInstance call)
- TQTimer::singleShot( 0, this, TQT_SLOT(processDelayed()));
+ TQTimer::singleShot( 0, this, TQ_SLOT(processDelayed()));
}
}
#endif
-KUniqueApplication::~KUniqueApplication()
+TDEUniqueApplication::~TDEUniqueApplication()
{
delete d;
}
// this gets called before even entering TQApplication::TQApplication()
-TDEInstance* KUniqueApplication::initHack( bool configUnique )
+TDEInstance* TDEUniqueApplication::initHack( bool configUnique )
{
TDEInstance* inst = new TDEInstance( TDECmdLineArgs::about );
if (configUnique)
@@ -375,19 +375,19 @@ TDEInstance* KUniqueApplication::initHack( bool configUnique )
return inst;
}
-void KUniqueApplication::newInstanceNoFork()
+void TDEUniqueApplication::newInstanceNoFork()
{
if (dcopClient()->isSuspended())
{
// Try again later.
- TQTimer::singleShot( 200, this, TQT_SLOT(newInstanceNoFork()) );
+ TQTimer::singleShot( 200, this, TQ_SLOT(newInstanceNoFork()) );
return;
}
s_handleAutoStarted = false;
newInstance();
d->firstInstance = false;
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
// KDE4 remove
// A hack to make startup notification stop for apps which override newInstance()
// and reuse an already existing window there, but use KWin::activateWindow()
@@ -400,7 +400,7 @@ void KUniqueApplication::newInstanceNoFork()
// What to do with the return value ?
}
-bool KUniqueApplication::process(const TQCString &fun, const TQByteArray &data,
+bool TDEUniqueApplication::process(const TQCString &fun, const TQByteArray &data,
TQCString &replyType, TQByteArray &replyData)
{
if (fun == "newInstance()")
@@ -412,7 +412,7 @@ bool KUniqueApplication::process(const TQCString &fun, const TQByteArray &data,
}
void
-KUniqueApplication::delayRequest(const TQCString &fun, const TQByteArray &data)
+TDEUniqueApplication::delayRequest(const TQCString &fun, const TQByteArray &data)
{
DCOPRequest *request = new DCOPRequest;
request->fun = fun;
@@ -421,17 +421,17 @@ KUniqueApplication::delayRequest(const TQCString &fun, const TQByteArray &data)
d->requestList.append(request);
if (!d->processingRequest)
{
- TQTimer::singleShot(0, this, TQT_SLOT(processDelayed()));
+ TQTimer::singleShot(0, this, TQ_SLOT(processDelayed()));
}
}
void
-KUniqueApplication::processDelayed()
+TDEUniqueApplication::processDelayed()
{
if (dcopClient()->isSuspended())
{
// Try again later.
- TQTimer::singleShot( 200, this, TQT_SLOT(processDelayed()));
+ TQTimer::singleShot( 200, this, TQ_SLOT(processDelayed()));
return;
}
d->processingRequest = true;
@@ -453,7 +453,7 @@ KUniqueApplication::processDelayed()
s_handleAutoStarted = false;
int exitCode = newInstance();
d->firstInstance = false;
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
if( s_handleAutoStarted )
TDEStartupInfo::handleAutoAppStartedSending(); // KDE4 remove?
#endif
@@ -468,12 +468,12 @@ KUniqueApplication::processDelayed()
d->processingRequest = false;
}
-bool KUniqueApplication::restoringSession()
+bool TDEUniqueApplication::restoringSession()
{
return d->firstInstance && isRestored();
}
-int KUniqueApplication::newInstance()
+int TDEUniqueApplication::newInstance()
{
if (!d->firstInstance)
{
@@ -481,25 +481,25 @@ int KUniqueApplication::newInstance()
if ( mainWidget() )
{
mainWidget()->show();
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
// This is the line that handles window activation if necessary,
// and what's important, it does it properly. If you reimplement newInstance(),
// and don't call the inherited one, use this (but NOT when newInstance()
// is called for the first time, like here).
- TDEStartupInfo::setNewStartupId( mainWidget(), kapp->startupId());
+ TDEStartupInfo::setNewStartupId( mainWidget(), tdeApp->startupId());
#endif
}
}
return 0; // do nothing in default implementation
}
-void KUniqueApplication::setHandleAutoStarted()
+void TDEUniqueApplication::setHandleAutoStarted()
{
s_handleAutoStarted = false;
}
-void KUniqueApplication::virtual_hook( int id, void* data )
+void TDEUniqueApplication::virtual_hook( int id, void* data )
{ TDEApplication::virtual_hook( id, data );
DCOPObject::virtual_hook( id, data ); }
-#include "kuniqueapplication.moc"
+#include "tdeuniqueapplication.moc"
diff --git a/tdecore/kuniqueapplication.h b/tdecore/tdeuniqueapplication.h
index 3b7bd8d6e..2334708bc 100644
--- a/tdecore/kuniqueapplication.h
+++ b/tdecore/tdeuniqueapplication.h
@@ -18,13 +18,13 @@
Boston, MA 02110-1301, USA.
*/
-#ifndef _KUNIQUEAPP_H
-#define _KUNIQUEAPP_H
+#ifndef _TDEUNIQUEAPP_H
+#define _TDEUNIQUEAPP_H
#include <tdeapplication.h>
#include <dcopobject.h>
-class KUniqueApplicationPrivate;
+class TDEUniqueApplicationPrivate;
/**
* Maintains only a single
@@ -45,9 +45,9 @@ class KUniqueApplicationPrivate;
* @see TDEApplication DCOPObject
* @author Preston Brown <pbrown@kde.org>
*/
-class TDECORE_EXPORT KUniqueApplication : public TDEApplication, public DCOPObject
+class TDECORE_EXPORT TDEUniqueApplication : public TDEApplication, public DCOPObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor. Takes command line arguments from TDECmdLineArgs
@@ -64,11 +64,11 @@ public:
* depend on the value of the "MultipleInstances"
* key in the "KDE" group of the application config file.
*/
- KUniqueApplication( bool allowStyles=true,
+ TDEUniqueApplication( bool allowStyles=true,
bool GUIenabled=true,
bool configUnique=false);
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
/**
* Constructor. Takes command line arguments from TDECmdLineArgs
*
@@ -89,17 +89,17 @@ public:
* key in the "KDE" group of the application config file.
* @since KDE 3.3
*/
- KUniqueApplication( Display *display,
- Qt::HANDLE visual=0,
- Qt::HANDLE colormap=0,
+ TDEUniqueApplication( Display *display,
+ TQt::HANDLE visual=0,
+ TQt::HANDLE colormap=0,
bool allowStyles=true,
bool configUnique=false);
#endif
/**
- * Adds command line options specific for KUniqueApplication.
+ * Adds command line options specific for TDEUniqueApplication.
*
- * Should be called before calling KUniqueApplication constructor
+ * Should be called before calling TDEUniqueApplication constructor
* and / or start().
*/
static void addCmdLineOptions();
@@ -116,18 +116,18 @@ public:
* TDEAboutData about("myappname", "myAppName", .....);
* TDECmdLineArgs::init(argc, argv, &about);
* TDECmdLineArgs::addCmdLineOptions( myCmdOptions );
- * KUniqueApplication::addCmdLineOptions();
+ * TDEUniqueApplication::addCmdLineOptions();
*
- * if (!KUniqueApplication::start()) {
+ * if (!TDEUniqueApplication::start()) {
* fprintf(stderr, "myAppName is already running!\n");
* exit(0);
* }
- * KUniqueApplication a;
+ * TDEUniqueApplication a;
* a.exec();
* }
* \endcode
* Note that it's not necessary to call start() explicitly. It will be
- * called automatically before creating KUniqueApplication if it hasn't
+ * called automatically before creating TDEUniqueApplication if it hasn't
* been called yet, without any performance impact.
*
* @return true if registration is successful.
@@ -138,7 +138,7 @@ public:
/**
* Destructor
*/
- virtual ~KUniqueApplication();
+ virtual ~TDEUniqueApplication();
/**
* Dispatches any incoming DCOP message for a new instance.
@@ -215,7 +215,7 @@ private:
protected:
virtual void virtual_hook( int id, void* data );
private:
- KUniqueApplicationPrivate *d;
+ TDEUniqueApplicationPrivate *d;
};
#endif
diff --git a/tdecore/tdeversion.h b/tdecore/tdeversion.h
index b784e7901..1cfc9f564 100644
--- a/tdecore/tdeversion.h
+++ b/tdecore/tdeversion.h
@@ -32,9 +32,9 @@
A new FEATURE REVISION level always resets the BUG AND SECURITY PATCHLEVEL.
A new ABI version resets both the FEATURE REVISION and BUG AND SECURITY PATCH LEVEL.
*/
-#define TDE_VERSION_STRING "R14.1.0 [DEVELOPMENT]"
+#define TDE_VERSION_STRING "R14.2.0~[DEVELOPMENT]"
#define TDE_VERSION_MAJOR 14
-#define TDE_VERSION_MINOR 1
+#define TDE_VERSION_MINOR 2
#define TDE_VERSION_RELEASE 0
#define TDE_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c))
diff --git a/tdecore/tests/CMakeLists.txt b/tdecore/tests/CMakeLists.txt
index 36377a255..2cabe1866 100644
--- a/tdecore/tests/CMakeLists.txt
+++ b/tdecore/tests/CMakeLists.txt
@@ -30,23 +30,41 @@ tde_add_library( tdeconfigtest SHARED AUTOMOC
EXCLUDE_FROM_ALL
)
-set( CHECKS
- tdeconfigtestgui klocaletest kprocesstest ksimpleconfigtest kstddirstest
- kuniqueapptest ktempfiletest krandomsequencetest kdebugtest
- ksocktest kstringhandlertest kcmdlineargstest kapptest kmemtest
- dcopkonqtest kipctest cplusplustest kiconloadertest kresolvertest
- kmdcodectest knotifytest ksortablevaluelisttest krfcdatetest testqtargs
- kprociotest kcharsetstest kcalendartest kmacroexpandertest kshelltest
- kxerrorhandlertest startserviceby kglobaltest ktimezonestest
+set( AUTOMATED_CHECKS
+ kcharsetstest kglobaltest kmacroexpandertest krfcdatetest
+ kstringhandlertest kurltest tdestdacceltest
+
+ # cplusplustest # -- skip (doesn't error on errors)
+ # tdesimpleconfigtest # -- skip (doesn't error on errors)
+ # ksortablevaluelist # -- skip (doesn't error on errors)
+ # ksocktest # -- skip due to DNS failure
)
+# Tests that require some graphical interaction / confirmation.
+set( MANUAL_CHECKS_GUI
+ kdebugtest klocaletest knotifytest kxerrorhandlertest
+ startserviceby tdeconfigtestgui tdeprocesstest testqtargs
+)
-foreach( _check ${CHECKS} )
- tde_add_check_executable( ${_check} AUTOMOC LINK tdeconfigtest-shared )
+# Tests that require some interaction using a terminal
+set( MANUAL_CHECKS_TUI
+ dcopkonqtest kcalendartest kcmdlineargstest kiconloadertest
+ kipctest kmemtest krandomsequencetest kresolvertest
+ kmdcodectest kshelltest ktempfiletest ktimezonestest
+ tdeapptest tdeprociotest tdestandarddirstest tdeuniqueapptest
+)
+
+foreach( _check ${AUTOMATED_CHECKS} )
+ tde_add_check_executable( ${_check} AUTOMOC LINK tdeconfigtest-shared TEST )
endforeach( )
-tde_add_check_executable( kurltest AUTOMOC LINK tdeconfigtest-shared TEST )
-tde_add_check_executable( tdestdacceltest AUTOMOC LINK tdeconfigtest-shared TEST )
+foreach( _check ${MANUAL_CHECKS_GUI})
+ tde_add_check_executable( ${_check} AUTOMOC LINK tdeconfigtest-shared )
+endforeach()
+
+foreach( _check ${MANUAL_CHECKS_TUI})
+ tde_add_check_executable( ${_check} AUTOMOC LINK tdeconfigtest-shared )
+endforeach()
tde_add_check_executable( kidlservertest AUTOMOC SOURCES KIDLTest.cpp KIDLTest.skel
LINK tdeconfigtest-shared )
diff --git a/tdecore/tests/KIDLTestClient.cpp b/tdecore/tests/KIDLTestClient.cpp
index 4614ed51e..3fadee13e 100644
--- a/tdecore/tests/KIDLTestClient.cpp
+++ b/tdecore/tests/KIDLTestClient.cpp
@@ -7,8 +7,8 @@ int main( int argc, char** argv )
{
TDEApplication app( argc, argv, "KIDLTestClient", false /* No GUI */ );
- kapp->dcopClient()->attach();
- // kapp->dcopClient()->registerAs( "kidlclienttest" );
+ tdeApp->dcopClient()->attach();
+ // tdeApp->dcopClient()->registerAs( "kidlclienttest" );
KIDLTest_stub* t = new KIDLTest_stub( "kidlservertest", "Hello" );
diff --git a/tdecore/tests/Makefile.am b/tdecore/tests/Makefile.am
index 73e06f588..378e442d2 100644
--- a/tdecore/tests/Makefile.am
+++ b/tdecore/tests/Makefile.am
@@ -21,19 +21,19 @@ INCLUDES = -I$(top_srcdir)/tdecore $(all_includes)
AM_LDFLAGS = $(QT_LDFLAGS) $(X_LDFLAGS) $(KDE_RPATH)
-check_PROGRAMS = tdeconfigtestgui klocaletest kprocesstest ksimpleconfigtest \
- kstddirstest kurltest kuniqueapptest ktempfiletest krandomsequencetest \
- kdebugtest ksocktest kstringhandlertest kcmdlineargstest kapptest \
+check_PROGRAMS = tdeconfigtestgui klocaletest tdeprocesstest tdesimpleconfigtest \
+ tdestandarddirstest kurltest tdeuniqueapptest ktempfiletest krandomsequencetest \
+ kdebugtest ksocktest kstringhandlertest kcmdlineargstest tdeapptest \
kmemtest kidlservertest kidlclienttest dcopkonqtest kipctest \
cplusplustest kiconloadertest kresolvertest kmdcodectest knotifytest \
- ksortablevaluelisttest krfcdatetest testqtargs kprociotest \
+ ksortablevaluelisttest krfcdatetest testqtargs tdeprociotest \
kcharsetstest kcalendartest kmacroexpandertest kshelltest \
kxerrorhandlertest startserviceby tdestdacceltest kglobaltest ktimezonestest
TESTS = kurltest tdestdacceltest
-noinst_HEADERS = klocaletest.h kprocesstest.h KIDLTest.h \
- kipctest.h kprociotest.h
+noinst_HEADERS = klocaletest.h tdeprocesstest.h KIDLTest.h \
+ kipctest.h tdeprociotest.h
METASOURCES = AUTO
@@ -43,12 +43,12 @@ kdebugtest_SOURCES = kdebugtest.cpp
klocaletest_SOURCES = klocaletest.cpp
#klocaletest2_SOURCES = klocaletest2.cpp tdelocale.cpp libintl.cpp kcatalogue.cpp
#kcatalogue_SOURCES = kcatalogue.cpp libintl.cpp
-ksimpleconfigtest_SOURCES = ksimpleconfigtest.cpp
+tdesimpleconfigtest_SOURCES = tdesimpleconfigtest.cpp
kurltest_SOURCES = kurltest.cpp
-kstddirstest_SOURCES = kstddirstest.cpp
-kprocesstest_SOURCES = kprocesstest.cpp
-kuniqueapptest_SOURCES = kuniqueapptest.cpp
-kapptest_SOURCES = kapptest.cpp
+tdestandarddirstest_SOURCES = tdestandarddirstest.cpp
+tdeprocesstest_SOURCES = tdeprocesstest.cpp
+tdeuniqueapptest_SOURCES = tdeuniqueapptest.cpp
+tdeapptest_SOURCES = tdeapptest.cpp
ksocktest_SOURCES = ksocktest.cpp
ktempfiletest_SOURCES = ktempfiletest.cpp
krandomsequencetest_SOURCES = krandomsequencetest.cpp
@@ -68,7 +68,7 @@ knotifytest_SOURCES = knotifytest.cpp
ksortablevaluelisttest_SOURCES = ksortablevaluelisttest.cpp
krfcdatetest_SOURCES = krfcdatetest.cpp
testqtargs_SOURCES = testqtargs.cpp
-kprociotest_SOURCES = kprociotest.cpp
+tdeprociotest_SOURCES = tdeprociotest.cpp
kcharsetstest_SOURCES = kcharsetstest.cpp
kcalendartest_SOURCES = kcalendartest.cpp
kmacroexpandertest_SOURCES = kmacroexpandertest.cpp
diff --git a/tdecore/tests/dcopkonqtest.cpp b/tdecore/tests/dcopkonqtest.cpp
index b8bb055d6..531d8dfd7 100644
--- a/tdecore/tests/dcopkonqtest.cpp
+++ b/tdecore/tests/dcopkonqtest.cpp
@@ -6,8 +6,8 @@ int main( int argc, char** argv )
{
TDEApplication app( argc, argv, "KIDLTestClient", false );
- kapp->dcopClient()->attach();
- // kapp->dcopClient()->registerAs( "kidlclienttest" );
+ tdeApp->dcopClient()->attach();
+ // tdeApp->dcopClient()->registerAs( "kidlclienttest" );
TQByteArray data;
@@ -15,20 +15,20 @@ int main( int argc, char** argv )
TQByteArray snd;
TQByteArray rcv;
TQCString _type_;
- kapp->dcopClient()->call( "konqueror", "KonquerorIface", "reparseConfiguration()", snd, _type_, rcv );
+ tdeApp->dcopClient()->call( "konqueror", "KonquerorIface", "reparseConfiguration()", snd, _type_, rcv );
kdDebug() << _type_ << endl;
if( _type_ != "void" ) kdDebug() << "void expected, " << _type_.data() << " returned" << endl;
/*
debug("sending configure to object KonquerorIface in konqueror");
- if (kapp->dcopClient()->send( "konqueror", "KonquerorIface", "configure()", data ))
+ if (tdeApp->dcopClient()->send( "konqueror", "KonquerorIface", "configure()", data ))
debug("ok");
else
debug("ko");
/// BROADCAST
debug("sending databaseChanged to object tdesycoca in all apps");
- if (kapp->dcopClient()->send( "*", "tdesycoca", "databaseChanged()", data ))
+ if (tdeApp->dcopClient()->send( "*", "tdesycoca", "databaseChanged()", data ))
debug("ok");
else
debug("ko");
diff --git a/tdecore/tests/kdebugtest.cpp b/tdecore/tests/kdebugtest.cpp
index 4052d5dcf..266eaeaae 100644
--- a/tdecore/tests/kdebugtest.cpp
+++ b/tdecore/tests/kdebugtest.cpp
@@ -1,12 +1,12 @@
#include "kdebug.h"
#include <tqwidget.h>
-#include <kinstance.h>
+#include <tdeinstance.h>
#include <iostream>
#include <tqapplication.h>
#include <tqpen.h>
#include <tqvariant.h>
-class TestWidget : public QWidget
+class TestWidget : public TQWidget
{
public:
@@ -64,7 +64,7 @@ public:
TQVariant v( 0.12345 );
kdDebug() << "Variant: " << v << endl;
- v = TQPen( Qt::red );
+ v = TQPen( TQt::red );
kdDebug() << "Variant: " << v << endl;
TQByteArray data( 6 );
diff --git a/tdecore/tests/kipctest.cpp b/tdecore/tests/kipctest.cpp
index d1a678ac9..9692710e2 100644
--- a/tdecore/tests/kipctest.cpp
+++ b/tdecore/tests/kipctest.cpp
@@ -8,12 +8,12 @@
MyObject::MyObject()
: TQObject(0L, "testobj")
{
- connect(kapp, TQT_SIGNAL(tdedisplayPaletteChanged()), TQT_SLOT(slotPaletteChanged()));
- connect(kapp, TQT_SIGNAL(tdedisplayFontChanged()), TQT_SLOT(slotFontChanged()));
- connect(kapp, TQT_SIGNAL(tdedisplayStyleChanged()), TQT_SLOT(slotStyleChanged()));
- connect(kapp, TQT_SIGNAL(backgroundChanged(int)), TQT_SLOT(slotBackgroundChanged(int)));
- connect(kapp, TQT_SIGNAL(appearanceChanged()), TQT_SLOT(slotAppearanceChanged()));
- connect(kapp, TQT_SIGNAL(kipcMessage(int,int)), TQT_SLOT(slotMessage(int,int)));
+ connect(tdeApp, TQ_SIGNAL(tdedisplayPaletteChanged()), TQ_SLOT(slotPaletteChanged()));
+ connect(tdeApp, TQ_SIGNAL(tdedisplayFontChanged()), TQ_SLOT(slotFontChanged()));
+ connect(tdeApp, TQ_SIGNAL(tdedisplayStyleChanged()), TQ_SLOT(slotStyleChanged()));
+ connect(tdeApp, TQ_SIGNAL(backgroundChanged(int)), TQ_SLOT(slotBackgroundChanged(int)));
+ connect(tdeApp, TQ_SIGNAL(appearanceChanged()), TQ_SLOT(slotAppearanceChanged()));
+ connect(tdeApp, TQ_SIGNAL(kipcMessage(int,int)), TQ_SLOT(slotMessage(int,int)));
}
int main(int argc, char **argv)
diff --git a/tdecore/tests/kipctest.h b/tdecore/tests/kipctest.h
index 17122fbd8..d4c3d538d 100644
--- a/tdecore/tests/kipctest.h
+++ b/tdecore/tests/kipctest.h
@@ -5,17 +5,17 @@
class MyObject: public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
MyObject();
public slots:
- void slotPaletteChanged() { printf("SIGNAL: Palette changed\n"); }
- void slotStyleChanged() { printf("SIGNAL: Style changed\n"); }
- void slotFontChanged() { printf("SIGNAL: Font changed\n"); }
- void slotBackgroundChanged(int i) { printf("SIGNAL: Background %d changed\n", i); }
- void slotAppearanceChanged() { printf("SIGNAL: Appearance changed\n"); }
- void slotMessage(int id, int arg) { printf("SIGNAL: user message: %d,%d\n", id, arg); }
+ void slotPaletteChanged() { printf("TQ_SIGNAL: Palette changed\n"); }
+ void slotStyleChanged() { printf("TQ_SIGNAL: Style changed\n"); }
+ void slotFontChanged() { printf("TQ_SIGNAL: Font changed\n"); }
+ void slotBackgroundChanged(int i) { printf("TQ_SIGNAL: Background %d changed\n", i); }
+ void slotAppearanceChanged() { printf("TQ_SIGNAL: Appearance changed\n"); }
+ void slotMessage(int id, int arg) { printf("TQ_SIGNAL: user message: %d,%d\n", id, arg); }
};
#endif
diff --git a/tdecore/tests/klocaletest.h b/tdecore/tests/klocaletest.h
index 6634b6107..433807b78 100644
--- a/tdecore/tests/klocaletest.h
+++ b/tdecore/tests/klocaletest.h
@@ -11,7 +11,7 @@ class TQLabel;
*/
class Test : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**@name methods */
diff --git a/tdecore/tests/kmdcodectest.cpp b/tdecore/tests/kmdcodectest.cpp
index 571d3f10b..4cc06813d 100644
--- a/tdecore/tests/kmdcodectest.cpp
+++ b/tdecore/tests/kmdcodectest.cpp
@@ -268,7 +268,7 @@ void MD5_verify( const char *input, const char *digest, bool isFile )
cout << "Calculated Digest = " << context.hexDigest() << endl;
cout << "Supplied Digest = " << digest << endl;
- cout << "Matches: " << (result ? "TRUE":"FALSE") << endl;
+ cout << "Matches: " << (result ? "true":"false") << endl;
}
void MD5_file (const char *filename, bool rawOutput )
diff --git a/tdecore/tests/krandomsequencetest.cpp b/tdecore/tests/krandomsequencetest.cpp
index 44f1ce15a..f83d2a80f 100644
--- a/tdecore/tests/krandomsequencetest.cpp
+++ b/tdecore/tests/krandomsequencetest.cpp
@@ -54,7 +54,7 @@ main(int argc, char *argv[])
for(int i = 0; i < 20; i++)
printf("%3ld ", seq.getLong(100));
- seq.setSeed(kapp->random());
+ seq.setSeed(tdeApp->random());
TQPtrList<TQString> list;
list.append(new TQString("A"));
diff --git a/tdecore/tests/kresolvertest.cpp b/tdecore/tests/kresolvertest.cpp
index 9f476cd51..58d0e9ac1 100644
--- a/tdecore/tests/kresolvertest.cpp
+++ b/tdecore/tests/kresolvertest.cpp
@@ -36,7 +36,7 @@
#include <tqptrlist.h>
#include <tqstring.h>
-#include <kuniqueapplication.h>
+#include <tdeuniqueapplication.h>
#include <ksocks.h>
#include <ksockaddr.h>
#include <kextsock.h>
@@ -62,11 +62,11 @@ namespace KDE
extern const int resolverFlags;
}
-class TestApp : public KUniqueApplication
+class TestApp : public TDEUniqueApplication
{
public:
TestApp() :
- KUniqueApplication()
+ TDEUniqueApplication()
{ }
int newInstance(TQValueList<TQCString> params);
@@ -412,7 +412,7 @@ int main(int argc, char **argv)
{
TDEAboutData about("socktest2", "SockTest", "1.0");
TDECmdLineArgs::init(argc, argv, &about);
- KUniqueApplication::addCmdLineOptions();
+ TDEUniqueApplication::addCmdLineOptions();
/* TestApp a;
a.exec();*/
diff --git a/tdecore/tests/krfcdatetest.cpp b/tdecore/tests/krfcdatetest.cpp
index 94358a8f1..c67c5a4e2 100644
--- a/tdecore/tests/krfcdatetest.cpp
+++ b/tdecore/tests/krfcdatetest.cpp
@@ -59,6 +59,12 @@ int main(int argc, char *argv[])
a = KRFCDate::parseDateISO8601("1994-01-01");
check( "1994-01-01", a, b );
+ a = KRFCDate::parseDateISO8601("1994-01-01T12");
+ check("1994-01-01T12", a, b);
+
+ a = KRFCDate::parseDateISO8601("1994-01-01T12:00");
+ check("1994-01-01T12:00", a, b);
+
b = 0;
// pass RFC date to ISO parser
diff --git a/tdecore/tests/ksocktest.cpp b/tdecore/tests/ksocktest.cpp
index a1ce8f86b..ec9c1ec95 100644
--- a/tdecore/tests/ksocktest.cpp
+++ b/tdecore/tests/ksocktest.cpp
@@ -16,7 +16,7 @@
Boston, MA 02110-1301, USA.
*/
-#include "kuniqueapplication.h"
+#include "tdeuniqueapplication.h"
#include "tdeglobal.h"
#include "kdebug.h"
#include "ksock.h"
@@ -103,7 +103,7 @@ main(int argc, char *argv[])
TDESocketAddress* addr = KExtendedSocket::peerAddress( sock2->fd() );
check( "peerAddress:", addr->nodeName().latin1(), "213.203.58.36" );
- check( "isEqual:", addr->isEqual(KInetSocketAddress("213.203.58.36", 80)) ? "TRUE" : "FALSE", "TRUE");
- check( "isEqual:", addr->isEqual(KInetSocketAddress("213.203.58.36", 8080)) ? "TRUE" : "FALSE", "FALSE");
- check( "isEqual:", addr->isCoreEqual(KInetSocketAddress("213.203.58.36", 8080)) ? "TRUE" : "FALSE", "TRUE");
+ check( "isEqual:", addr->isEqual(KInetSocketAddress("213.203.58.36", 80)) ? "true" : "false", "true");
+ check( "isEqual:", addr->isEqual(KInetSocketAddress("213.203.58.36", 8080)) ? "true" : "false", "false");
+ check( "isEqual:", addr->isCoreEqual(KInetSocketAddress("213.203.58.36", 8080)) ? "true" : "false", "true");
}
diff --git a/tdecore/tests/ktempfiletest.cpp b/tdecore/tests/ktempfiletest.cpp
index 019db0690..38960bf1a 100644
--- a/tdecore/tests/ktempfiletest.cpp
+++ b/tdecore/tests/ktempfiletest.cpp
@@ -18,7 +18,7 @@
#include "tdetempfile.h"
#include "tdeapplication.h"
-#include "kstandarddirs.h"
+#include "tdestandarddirs.h"
#include <tqstring.h>
#include <unistd.h>
diff --git a/tdecore/tests/ktimezonestest.cpp b/tdecore/tests/ktimezonestest.cpp
index d00626cdf..a42c5a395 100644
--- a/tdecore/tests/ktimezonestest.cpp
+++ b/tdecore/tests/ktimezonestest.cpp
@@ -22,8 +22,8 @@ int main(int argc, char *argv[])
// Find some offsets for Europe/London.
const char *london = "Europe/London";
timezone = timezones.zone(london);
- TQDateTime winter(TQDateTime::fromString("2005-01-01T00:00:00", Qt::ISODate));
- TQDateTime summer(TQDateTime::fromString("2005-06-01T00:00:00", Qt::ISODate));
+ TQDateTime winter(TQDateTime::fromString("2005-01-01T00:00:00", TQt::ISODate));
+ TQDateTime summer(TQDateTime::fromString("2005-06-01T00:00:00", TQt::ISODate));
printf( "%s winter timezone offset should be 0: %d\n", london, timezone->offset(winter) );
printf( "%s summer timezone offset should be 3600: %d\n", london, timezone->offset(summer) );
@@ -34,13 +34,13 @@ int main(int argc, char *argv[])
const char *gmtBeforePst = "2005-10-30T01:00:00";
const char *gmtAfterPst = "2005-12-01T00:00:00";
TQString result;
- result = timezone->convert(losAngeles, TQDateTime::fromString(bstBeforePdt, Qt::ISODate)).toString(Qt::ISODate);
+ result = timezone->convert(losAngeles, TQDateTime::fromString(bstBeforePdt, TQt::ISODate)).toString(TQt::ISODate);
printf( "BST before PDT, %s should be 2005-03-27T15:00:00: %s\n", bstBeforePdt, result.latin1() );
- result = timezone->convert(losAngeles, TQDateTime::fromString(bstAfterPdt, Qt::ISODate)).toString(Qt::ISODate);
+ result = timezone->convert(losAngeles, TQDateTime::fromString(bstAfterPdt, TQt::ISODate)).toString(TQt::ISODate);
printf( "BST and PDT, %s should be 2005-04-30T16:00:00: %s\n", bstAfterPdt, result.latin1() );
- result = timezone->convert(losAngeles, TQDateTime::fromString(gmtBeforePst, Qt::ISODate)).toString(Qt::ISODate);
+ result = timezone->convert(losAngeles, TQDateTime::fromString(gmtBeforePst, TQt::ISODate)).toString(TQt::ISODate);
printf( "GMT before PST, %s should be 2005-10-29T17:00:00: %s\n", gmtBeforePst, result.latin1() );
- result = timezone->convert(losAngeles, TQDateTime::fromString(gmtAfterPst, Qt::ISODate)).toString(Qt::ISODate);
+ result = timezone->convert(losAngeles, TQDateTime::fromString(gmtAfterPst, TQt::ISODate)).toString(TQt::ISODate);
printf( "GMT and PST, %s should be 2005-11-30T16:00:00: %s\n", gmtAfterPst, result.latin1() );
printf( "Latitude 89 should be valid: %svalid\n", KTimezone::isValidLatitude(89.0) ? "" : "in");
printf( "Latitude 91 should be invalid: %svalid\n", KTimezone::isValidLatitude(91.0) ? "" : "in");
diff --git a/tdecore/tests/kurltest.cpp b/tdecore/tests/kurltest.cpp
index 081fdad55..b80515e81 100644
--- a/tdecore/tests/kurltest.cpp
+++ b/tdecore/tests/kurltest.cpp
@@ -88,25 +88,25 @@ int main(int argc, char *argv[])
KURL::List lst;
KURL emptyURL;
- check( "KURL::isMalformed()", emptyURL.isMalformed() ? "TRUE":"FALSE", "TRUE");
- check( "KURL::isValid()", emptyURL.isValid() ? "TRUE":"FALSE", "FALSE");
- check( "KURL::isEmpty()", emptyURL.isEmpty() ? "TRUE":"FALSE", "TRUE");
+ check( "KURL::isMalformed()", emptyURL.isMalformed() ? "true":"false", "true");
+ check( "KURL::isValid()", emptyURL.isValid() ? "true":"false", "false");
+ check( "KURL::isEmpty()", emptyURL.isEmpty() ? "true":"false", "true");
check( "prettyURL()", emptyURL.prettyURL(), "");
- check( "isLocalFile()", emptyURL.isLocalFile()?"TRUE":"FALSE", "FALSE" );
+ check( "isLocalFile()", emptyURL.isLocalFile()?"true":"false", "false" );
emptyURL = "";
- check( "KURL::isMalformed()", emptyURL.isMalformed() ? "TRUE":"FALSE", "TRUE");
- check( "KURL::isValid()", emptyURL.isValid() ? "TRUE":"FALSE", "FALSE");
- check( "KURL::isEmpty()", emptyURL.isEmpty() ? "TRUE":"FALSE", "TRUE");
+ check( "KURL::isMalformed()", emptyURL.isMalformed() ? "true":"false", "true");
+ check( "KURL::isValid()", emptyURL.isValid() ? "true":"false", "false");
+ check( "KURL::isEmpty()", emptyURL.isEmpty() ? "true":"false", "true");
KURL fileURL = "file:/";
- check( "KURL::isEmpty()", fileURL.isEmpty() ? "TRUE":"FALSE", "FALSE");
+ check( "KURL::isEmpty()", fileURL.isEmpty() ? "true":"false", "false");
fileURL = "file:///";
- check( "KURL::isEmpty()", fileURL.isEmpty() ? "TRUE":"FALSE", "FALSE");
+ check( "KURL::isEmpty()", fileURL.isEmpty() ? "true":"false", "false");
KURL baseURL ("hTTp://www.foo.bar:80" );
- check( "KURL::isValid()", baseURL.isValid() ? "TRUE":"FALSE", "TRUE");
+ check( "KURL::isValid()", baseURL.isValid() ? "true":"false", "true");
check( "KURL::protocol()", baseURL.protocol(), "http"); // lowercase
KURL url1 ( baseURL, "//www1.foo.bar" );
check( "KURL::host()", url1.host(), "www1.foo.bar");
@@ -184,13 +184,13 @@ int main(int argc, char *argv[])
check("KURL::upURL()", url1.upURL().url(), "file:///home/dfaure/");
url1 = "gg:www.kde.org";
- check("KURL::isValid()", url1.isValid()?"TRUE":"FALSE", "TRUE" );
+ check("KURL::isValid()", url1.isValid()?"true":"false", "true" );
url1= "KDE";
- check("KURL::isValid()", url1.isValid()?"TRUE":"FALSE", "FALSE" );
+ check("KURL::isValid()", url1.isValid()?"true":"false", "false" );
url1= "$HOME/.trinity/share/config";
- check("KURL::isValid()", url1.isValid()?"TRUE":"FALSE", "FALSE" );
+ check("KURL::isValid()", url1.isValid()?"true":"false", "false" );
u1 = "file:/opt/kde2/qt2/doc/html/showimg-main-cpp.html#TQObject::connect";
url1 = u1;
@@ -1115,9 +1115,9 @@ int main(int argc, char *argv[])
KURL emptyUserTest1("http://www.foobar.com/");
KURL emptyUserTest2("http://www.foobar.com/");
emptyUserTest2.setUser("");
- check("Empty vs. null fields: user", emptyUserTest1==emptyUserTest2?"TRUE":"FALSE","TRUE");
+ check("Empty vs. null fields: user", emptyUserTest1==emptyUserTest2?"true":"false","true");
emptyUserTest2.setPass("");
- check("Empty vs. null fields: password", emptyUserTest1==emptyUserTest2?"TRUE":"FALSE","TRUE");
+ check("Empty vs. null fields: password", emptyUserTest1==emptyUserTest2?"true":"false","true");
printf("\nTest OK !\n");
}
diff --git a/tdecore/tests/startserviceby.cpp b/tdecore/tests/startserviceby.cpp
index 67c535cec..8d23042ef 100644
--- a/tdecore/tests/startserviceby.cpp
+++ b/tdecore/tests/startserviceby.cpp
@@ -27,7 +27,7 @@
int
main(int argc, char *argv[])
{
- TDEAboutData about("kapptest", "kapptest", "version");
+ TDEAboutData about("tdeapptest", "tdeapptest", "version");
TDECmdLineArgs::init(argc, argv, &about);
TDEApplication a;
diff --git a/tdecore/tests/kapptest.cpp b/tdecore/tests/tdeapptest.cpp
index 6a3abace9..09e9124b6 100644
--- a/tdecore/tests/kapptest.cpp
+++ b/tdecore/tests/tdeapptest.cpp
@@ -28,7 +28,7 @@
int
main(int argc, char *argv[])
{
- TDEAboutData about("kapptest", "kapptest", "version");
+ TDEAboutData about("tdeapptest", "tdeapptest", "version");
TDECmdLineArgs::init(argc, argv, &about);
TDEApplication a;
diff --git a/tdecore/tests/tdeconfigtestgui.cpp b/tdecore/tests/tdeconfigtestgui.cpp
index f5ea428c0..8db4fce3a 100644
--- a/tdecore/tests/tdeconfigtestgui.cpp
+++ b/tdecore/tests/tdeconfigtestgui.cpp
@@ -35,7 +35,7 @@
#include <tqfileinfo.h>
#include <tqdatetime.h>
#include <kdebug.h>
-#include <ksimpleconfig.h>
+#include <tdesimpleconfig.h>
#include <config.h>
// Standard Qt widgets
@@ -76,8 +76,8 @@ TDEConfigTestView::TDEConfigTestView( TQWidget *parent, const char *name )
pAppFileEdit = new TQLineEdit( this, "appconfigedit" );
pAppFileEdit->setGeometry( 240, 20, 160, 20 );
- connect( pAppFileEdit, TQT_SIGNAL(returnPressed()),
- TQT_SLOT(appConfigEditReturnPressed()));
+ connect( pAppFileEdit, TQ_SIGNAL(returnPressed()),
+ TQ_SLOT(appConfigEditReturnPressed()));
// Label and edit for the group
pGroupLabel = new TQLabel( this, "grouplabel" );
@@ -86,14 +86,14 @@ TDEConfigTestView::TDEConfigTestView( TQWidget *parent, const char *name )
pGroupEdit = new TQLineEdit( this, "groupedit" );
pGroupEdit->setGeometry( 120, 60, 100, 20 );
- connect( pGroupEdit, TQT_SIGNAL(returnPressed()),
- TQT_SLOT(groupEditReturnPressed()));
+ connect( pGroupEdit, TQ_SIGNAL(returnPressed()),
+ TQ_SLOT(groupEditReturnPressed()));
// Edit and label for the key/value pair
pKeyEdit = new TQLineEdit( this, "keyedit" );
pKeyEdit->setGeometry( 20, 100, 80, 20 );
- connect( pKeyEdit, TQT_SIGNAL( returnPressed()),
- TQT_SLOT(keyEditReturnPressed()));
+ connect( pKeyEdit, TQ_SIGNAL( returnPressed()),
+ TQ_SLOT(keyEditReturnPressed()));
pEqualsLabel = new TQLabel( this, "equalslabel" );
pEqualsLabel->setGeometry( 105, 100, 20, 20 );
@@ -106,7 +106,7 @@ TDEConfigTestView::TDEConfigTestView( TQWidget *parent, const char *name )
pWriteButton = new TQPushButton( this, "writebutton" );
pWriteButton->setGeometry( 20,140, 80, 20 );
pWriteButton->setText( "Write entry" );
- connect( pWriteButton, TQT_SIGNAL(clicked()), TQT_SLOT( writeButtonClicked() ) );
+ connect( pWriteButton, TQ_SIGNAL(clicked()), TQ_SLOT( writeButtonClicked() ) );
// Labels for the info line
pInfoLabel1 = new TQLabel( this, "infolabel1" );
@@ -121,7 +121,7 @@ TDEConfigTestView::TDEConfigTestView( TQWidget *parent, const char *name )
pQuitButton = new TQPushButton( this, "quitbutton" );
pQuitButton->setText( "Quit" );
pQuitButton->setGeometry( 340, 60, 60, 60 );
- connect( pQuitButton, TQT_SIGNAL(clicked()), tqApp, TQT_SLOT(quit()) );
+ connect( pQuitButton, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
// create a default TDEConfig object in order to be able to start right away
pConfig = new TDEConfig( TQString::null );
diff --git a/tdecore/tests/tdeconfigtestgui.h b/tdecore/tests/tdeconfigtestgui.h
index a7cfd1356..520cb79cf 100644
--- a/tdecore/tests/tdeconfigtestgui.h
+++ b/tdecore/tests/tdeconfigtestgui.h
@@ -24,7 +24,7 @@
#include <tqfile.h>
#include <tqfileinfo.h>
#include <kdebug.h>
-#include <ksimpleconfig.h>
+#include <tdesimpleconfig.h>
#include <tqtextstream.h>
// Standard Qt widgets
@@ -41,7 +41,7 @@
class TDEConfigTestView : public TQDialog
{
- Q_OBJECT
+ TQ_OBJECT
public:
TDEConfigTestView( TQWidget *parent=0, const char *name=0 );
~TDEConfigTestView();
diff --git a/tdecore/tests/kprocesstest.cpp b/tdecore/tests/tdeprocesstest.cpp
index d8d86d988..0d27f69fa 100644
--- a/tdecore/tests/kprocesstest.cpp
+++ b/tdecore/tests/tdeprocesstest.cpp
@@ -9,7 +9,7 @@
//
-#include "kprocess.h"
+#include "tdeprocess.h"
#include <stdio.h>
#include <string.h>
@@ -17,7 +17,7 @@
#include <signal.h>
-#include "kprocesstest.h"
+#include "tdeprocesstest.h"
#define PROCNO 10
@@ -34,7 +34,7 @@ int main(int argc, char *argv[])
{
TDEProcess p1, p2, p3, p4;
Dummy dummy;
- TDEApplication app(argc, argv, TQCString("kprocesstest"));
+ TDEApplication app(argc, argv, TQCString("tdeprocesstest"));
printf("Welcome to the TDEProcess Demo Application!\n");
@@ -46,7 +46,7 @@ int main(int argc, char *argv[])
//
p1 << "kghostview";
- TQObject::connect(&p1, TQT_SIGNAL(processExited(TDEProcess *)), &dummy, TQT_SLOT(printMessage(TDEProcess *)));
+ TQObject::connect(&p1, TQ_SIGNAL(processExited(TDEProcess *)), &dummy, TQ_SLOT(printMessage(TDEProcess *)));
printf("starting kghostview blocking (close to continue)\n");
p1.start(TDEProcess::Block);
@@ -62,7 +62,7 @@ int main(int argc, char *argv[])
printf("Starting konsole with /bin/tcsh as shell (close to continue)\n");
p2 << "konsole" << "-e" << "/bin/tcsh";
p2.setWorkingDirectory("/tmp");
- TQObject::connect(&p2, TQT_SIGNAL(processExited(TDEProcess *)), &dummy, TQT_SLOT(printMessage(TDEProcess *)));
+ TQObject::connect(&p2, TQ_SIGNAL(processExited(TDEProcess *)), &dummy, TQ_SLOT(printMessage(TDEProcess *)));
p2.start(TDEProcess::Block);
//
@@ -70,13 +70,13 @@ int main(int argc, char *argv[])
//
p3 << "ls" << "-l";
- TQObject::connect(&p3, TQT_SIGNAL(processExited(TDEProcess *)),
- &dummy, TQT_SLOT(printMessage(TDEProcess *)));
+ TQObject::connect(&p3, TQ_SIGNAL(processExited(TDEProcess *)),
+ &dummy, TQ_SLOT(printMessage(TDEProcess *)));
- TQObject::connect(&p3, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
- &dummy, TQT_SLOT(gotOutput(TDEProcess *, char *, int)));
- TQObject::connect(&p3, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
- &dummy, TQT_SLOT(gotOutput(TDEProcess *, char *, int)));
+ TQObject::connect(&p3, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
+ &dummy, TQ_SLOT(gotOutput(TDEProcess *, char *, int)));
+ TQObject::connect(&p3, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ &dummy, TQ_SLOT(gotOutput(TDEProcess *, char *, int)));
p3.start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput);
@@ -93,16 +93,16 @@ int main(int argc, char *argv[])
//
p4 << "sort";
- TQObject::connect(&p4, TQT_SIGNAL(processExited(TDEProcess *)),
- &dummy, TQT_SLOT(printMessage(TDEProcess *)));
+ TQObject::connect(&p4, TQ_SIGNAL(processExited(TDEProcess *)),
+ &dummy, TQ_SLOT(printMessage(TDEProcess *)));
- TQObject::connect(&p4, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
- &dummy, TQT_SLOT(gotOutput(TDEProcess *, char *, int)));
- TQObject::connect(&p4, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
- &dummy, TQT_SLOT(gotOutput(TDEProcess *, char *, int)));
+ TQObject::connect(&p4, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
+ &dummy, TQ_SLOT(gotOutput(TDEProcess *, char *, int)));
+ TQObject::connect(&p4, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ &dummy, TQ_SLOT(gotOutput(TDEProcess *, char *, int)));
- TQObject::connect(&p4, TQT_SIGNAL(wroteStdin(TDEProcess *)),
- &dummy, TQT_SLOT(outputDone(TDEProcess *)));
+ TQObject::connect(&p4, TQ_SIGNAL(wroteStdin(TDEProcess *)),
+ &dummy, TQ_SLOT(outputDone(TDEProcess *)));
p4.start(TDEProcess::NotifyOnExit, TDEProcess::All);
printf("after p4.start");
@@ -113,4 +113,4 @@ int main(int argc, char *argv[])
return 0;
}
-#include "kprocesstest.moc"
+#include "tdeprocesstest.moc"
diff --git a/tdecore/tests/kprocesstest.h b/tdecore/tests/tdeprocesstest.h
index 5817af438..32a559157 100644
--- a/tdecore/tests/kprocesstest.h
+++ b/tdecore/tests/tdeprocesstest.h
@@ -13,11 +13,11 @@
#include <stdio.h>
#include <tqobject.h>
-#include "kprocess.h"
+#include "tdeprocess.h"
class Dummy : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public slots:
void printMessage(TDEProcess *proc)
@@ -46,5 +46,3 @@ class Dummy : public TQObject
};
#endif
-
-
diff --git a/tdecore/tests/kprociotest.cpp b/tdecore/tests/tdeprociotest.cpp
index f7e895345..16c9b14b6 100644
--- a/tdecore/tests/kprociotest.cpp
+++ b/tdecore/tests/tdeprociotest.cpp
@@ -9,7 +9,7 @@
//
-#include "kprocess.h"
+#include "tdeprocess.h"
#include <stdio.h>
#include <string.h>
@@ -17,7 +17,7 @@
#include <signal.h>
-#include "kprociotest.h"
+#include "tdeprociotest.h"
@@ -32,17 +32,17 @@ werke\nmerkt\nich\nund\nden\nbrauch\nund\nmit\ngeistesstaerke\ntu\nich\nwunder\n
int main(int argc, char *argv[])
{
Dummy dummy;
- TDEApplication app(argc, argv, TQCString("kprociotest"));
+ TDEApplication app(argc, argv, TQCString("tdeprociotest"));
- printf("Welcome to the KProcIO Demo Application!\n");
+ printf("Welcome to the TDEProcIO Demo Application!\n");
- KProcIO p;
+ TDEProcIO p;
p << "rev";
- p.connect(&p, TQT_SIGNAL(processExited(TDEProcess*)), &dummy, TQT_SLOT(printMessage(TDEProcess*)));
- p.connect(&p, TQT_SIGNAL(readReady(KProcIO*)), &dummy, TQT_SLOT(gotOutput(KProcIO*)));
+ p.connect(&p, TQ_SIGNAL(processExited(TDEProcess*)), &dummy, TQ_SLOT(printMessage(TDEProcess*)));
+ p.connect(&p, TQ_SIGNAL(readReady(TDEProcIO*)), &dummy, TQ_SLOT(gotOutput(TDEProcIO*)));
bool b;
@@ -62,4 +62,4 @@ int main(int argc, char *argv[])
return 0;
}
-#include "kprociotest.moc"
+#include "tdeprociotest.moc"
diff --git a/tdecore/tests/kprociotest.h b/tdecore/tests/tdeprociotest.h
index fd60bb87b..194a26504 100644
--- a/tdecore/tests/kprociotest.h
+++ b/tdecore/tests/tdeprociotest.h
@@ -13,11 +13,11 @@
#include <stdio.h>
#include <tqobject.h>
-#include "kprocio.h"
+#include "tdeprocio.h"
class Dummy : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public slots:
void printMessage(TDEProcess *proc)
@@ -25,7 +25,7 @@ class Dummy : public TQObject
printf("Process %d exited!\n", (int)proc->getPid());
}
- void gotOutput(KProcIO*proc)
+ void gotOutput(TDEProcIO*proc)
{
TQString line;
while(true) {
diff --git a/tdecore/tests/ksimpleconfigtest.cpp b/tdecore/tests/tdesimpleconfigtest.cpp
index ca91581dd..5759d8941 100644
--- a/tdecore/tests/ksimpleconfigtest.cpp
+++ b/tdecore/tests/tdesimpleconfigtest.cpp
@@ -3,9 +3,9 @@
//
// configtest.cpp: libKDEcore example
//
-// demonstrates use of KSimpleConfig class
+// demonstrates use of TDESimpleConfig class
-#include <ksimpleconfig.h>
+#include <tdesimpleconfig.h>
#include <tdeapplication.h>
#include <unistd.h>
#include <stdio.h>
@@ -22,7 +22,7 @@ int main( int argc, char **argv )
{
TDEApplication a( argc, argv, TQCString("tdeconfigtest") );
- KSimpleConfig aConfig( _PATH_TMP"/simpleconfig.cfg" );
+ TDESimpleConfig aConfig( _PATH_TMP"/simpleconfig.cfg" );
aConfig.setGroup( "Test group" );
aConfig.writeEntry( "key1", "value1" );
@@ -32,17 +32,17 @@ int main( int argc, char **argv )
aConfig.writeEntry( "akey1", "avalue1" );
aConfig.writeEntry( "akey2", "avalue2" );
- fprintf( stderr, "[ksimpleconfigtest] entries written, sleeping for 10 seconds\n" );
+ fprintf( stderr, "[tdesimpleconfigtest] entries written, sleeping for 10 seconds\n" );
aConfig.sync();
sleep( 10 );
aConfig.setGroup( "Test group" );
aConfig.deleteEntry( "key2", false );
- fprintf( stderr, "[ksimpleconfigtest] Deleted on entry from Test group, sleeping\n" );
+ fprintf( stderr, "[tdesimpleconfigtest] Deleted on entry from Test group, sleeping\n" );
aConfig.sync();
sleep( 10 );
aConfig.deleteGroup( "Another Test group", true );
- fprintf( stderr, "[ksimpleconfigtest] Deleted Another Test group\n" );
+ fprintf( stderr, "[tdesimpleconfigtest] Deleted Another Test group\n" );
}
diff --git a/tdecore/tests/kstddirstest.cpp b/tdecore/tests/tdestandarddirstest.cpp
index ae6ea16bd..28c974b9e 100644
--- a/tdecore/tests/kstddirstest.cpp
+++ b/tdecore/tests/tdestandarddirstest.cpp
@@ -1,7 +1,7 @@
#include <tdeapplication.h>
#include <kdebug.h>
-#include <kinstance.h>
-#include <kstandarddirs.h>
+#include <tdeinstance.h>
+#include <tdestandarddirs.h>
#include <tdeconfig.h>
int main(int argc, char **argv)
diff --git a/tdecore/tests/kuniqueapptest.cpp b/tdecore/tests/tdeuniqueapptest.cpp
index 13b8ca534..7ea5b6308 100644
--- a/tdecore/tests/kuniqueapptest.cpp
+++ b/tdecore/tests/tdeuniqueapptest.cpp
@@ -16,7 +16,7 @@
Boston, MA 02110-1301, USA.
*/
-#include "kuniqueapplication.h"
+#include "tdeuniqueapplication.h"
#include "tdeglobalsettings.h"
#include <unistd.h>
@@ -25,10 +25,10 @@
#include <tdecmdlineargs.h>
#include <tdeaboutdata.h>
-class TestApp : public KUniqueApplication
+class TestApp : public TDEUniqueApplication
{
public:
- TestApp() : KUniqueApplication("TestApp") { }
+ TestApp() : TDEUniqueApplication("TestApp") { }
virtual int newInstance( );
};
@@ -43,9 +43,9 @@ TestApp::newInstance( )
int
main(int argc, char *argv[])
{
- TDEAboutData about("kuniqueapptest", "kuniqueapptest", "version");
+ TDEAboutData about("tdeuniqueapptest", "tdeuniqueapptest", "version");
TDECmdLineArgs::init(argc, argv, &about);
- KUniqueApplication::addCmdLineOptions();
+ TDEUniqueApplication::addCmdLineOptions();
if (!TestApp::start())
{
@@ -54,6 +54,6 @@ main(int argc, char *argv[])
TestApp a;
printf("Running.\n");
- kapp->exec();
+ tdeApp->exec();
printf("Terminating.\n");
}
diff --git a/tdecore/tests/testqtargs.cpp b/tdecore/tests/testqtargs.cpp
index d69b3f6f4..cb67ab02a 100644
--- a/tdecore/tests/testqtargs.cpp
+++ b/tdecore/tests/testqtargs.cpp
@@ -29,7 +29,7 @@
-background, you get the same thing.
in tdecore/tdeapplication.cpp, TDECmdLineOption qt_options is defined and used
- by the static method Kapplication::addCmdLineOptions to add the Qt options
+ by the static method TDEApplication::addCmdLineOptions to add the Qt options
but its' entries look like this:
{ "background <color>", I18N_NOOP("sets the default background color and an\n
diff --git a/tdecore/twin.cpp b/tdecore/twin.cpp
index 308da8c5a..6e96b3b66 100644
--- a/tdecore/twin.cpp
+++ b/tdecore/twin.cpp
@@ -26,7 +26,7 @@
#include <sysent.h>
#endif
-#include <kuniqueapplication.h>
+#include <tdeuniqueapplication.h>
#include <tqbitmap.h>
#include <tqimage.h>
#include <tqwhatsthis.h>
@@ -45,7 +45,7 @@
#include <tdelocale.h>
#include <dcopclient.h>
#include <dcopref.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#include <tdestartupinfo.h>
#include <kxerrorhandler.h>
@@ -103,7 +103,7 @@ static void twin_net_create_atoms() {
/*
Sends a client message to the ROOT window.
*/
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
static void sendClientMessageToRoot(Window w, Atom a, long x, long y = 0, long z = 0 ){
XEvent ev;
long mask;
@@ -124,7 +124,7 @@ static void sendClientMessageToRoot(Window w, Atom a, long x, long y = 0, long z
/*
Send a client message to window w
*/
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
static void sendClientMessage(Window w, Atom a, long x){
XEvent ev;
long mask;
@@ -145,7 +145,7 @@ static void sendClientMessage(Window w, Atom a, long x){
bool KWin::compositingActive()
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
twin_net_create_atoms();
return XGetSelectionOwner( tqt_xdisplay(), net_wm_cm ) != None;
#else
@@ -153,7 +153,7 @@ bool KWin::compositingActive()
#endif
}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
namespace
{
class ContextWidget : public TQWidget
@@ -167,7 +167,7 @@ ContextWidget::ContextWidget()
: TQWidget(0,0)
{
twin_net_create_atoms();
- kapp->installX11EventFilter( this );
+ tdeApp->installX11EventFilter( this );
TQWhatsThis::enterWhatsThisMode();
TQCursor c = *TQApplication::overrideCursor();
TQWhatsThis::leaveWhatsThisMode();
@@ -213,14 +213,14 @@ bool ContextWidget::x11Event( XEvent * ev)
void KWin::invokeContextHelp()
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
ContextWidget w;
#endif
}
void KWin::setSystemTrayWindowFor( WId trayWin, WId forWin )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETWinInfo info( tqt_xdisplay(), trayWin, tqt_xrootwin(), 0 );
if ( !forWin )
forWin = tqt_xrootwin();
@@ -236,39 +236,39 @@ void KWin::setSystemTrayWindowFor( WId trayWin, WId forWin )
void KWin::activateWindow( WId win, long time )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETRootInfo info( tqt_xdisplay(), 0 );
if( time == 0 )
- time = GET_QT_X_USER_TIME();
+ time = get_tqt_x_user_time();
info.setActiveWindow( win, NET::FromApplication, time,
- kapp->activeWindow() ? kapp->activeWindow()->winId() : 0 );
-#endif // Q_WS_X11 ...
- KUniqueApplication::setHandleAutoStarted();
+ tdeApp->activeWindow() ? tdeApp->activeWindow()->winId() : 0 );
+#endif // TQ_WS_X11 ...
+ TDEUniqueApplication::setHandleAutoStarted();
}
void KWin::forceActiveWindow( WId win, long time )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETRootInfo info( tqt_xdisplay(), 0 );
if( time == 0 )
- time = GET_QT_X_TIME();
+ time = get_tqt_x_time();
info.setActiveWindow( win, NET::FromTool, time, 0 );
-#endif // Q_WS_X11
- KUniqueApplication::setHandleAutoStarted();
+#endif // TQ_WS_X11
+ TDEUniqueApplication::setHandleAutoStarted();
}
void KWin::setActiveWindow( WId win )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETRootInfo info( tqt_xdisplay(), 0 );
info.setActiveWindow( win, NET::FromUnknown, 0, 0 );
#endif
- KUniqueApplication::setHandleAutoStarted();
+ TDEUniqueApplication::setHandleAutoStarted();
}
void KWin::demandAttention( WId win, bool set )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETWinInfo info( tqt_xdisplay(), win, tqt_xrootwin(), 0 );
info.setState( set ? NET::DemandsAttention : 0, NET::DemandsAttention );
#endif
@@ -276,7 +276,7 @@ void KWin::demandAttention( WId win, bool set )
void KWin::setUserTime( WId win, long time )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETWinInfo info( tqt_xdisplay(), win, tqt_xrootwin(), 0 );
info.setUserTime( time );
#endif
@@ -290,7 +290,7 @@ KWin::WindowInfo KWin::windowInfo( WId win, unsigned long properties, unsigned l
WId KWin::transientFor( WId win )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
KXErrorHandler handler; // ignore badwindow
Window transient_for = None;
if( XGetTransientForHint( tqt_xdisplay(), win, &transient_for ))
@@ -304,17 +304,17 @@ WId KWin::transientFor( WId win )
void KWin::setMainWindow( TQWidget* subwindow, WId mainwindow )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if( mainwindow != 0 )
{
/*
Grmbl. See TQDialog::show(). That should get fixed in Qt somehow.
*/
- if( tqqt_cast< TQDialog* >( subwindow ) != NULL
+ if( tqt_cast< TQDialog* >( subwindow ) != NULL
&& subwindow->parentWidget() == NULL
- && kapp->mainWidget() != NULL )
+ && tdeApp->mainWidget() != NULL )
{
- kdWarning() << "KWin::setMainWindow(): There either mustn't be kapp->mainWidget(),"
+ kdWarning() << "KWin::setMainWindow(): There either mustn't be tdeApp->mainWidget(),"
" or the dialog must have a non-NULL parent, otherwise Qt will reset the change. Bummer." << endl;
}
XSetTransientForHint( tqt_xdisplay(), subwindow->winId(), mainwindow );
@@ -326,7 +326,7 @@ void KWin::setMainWindow( TQWidget* subwindow, WId mainwindow )
WId KWin::groupLeader( WId win )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
KXErrorHandler handler; // ignore badwindow
XWMHints *hints = XGetWMHints( tqt_xdisplay(), win );
Window window_group = None;
@@ -347,7 +347,7 @@ WId KWin::groupLeader( WId win )
KWin::Info KWin::info( WId win )
{
Info w;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETWinInfo inf( tqt_xdisplay(), win, tqt_xrootwin(),
NET::WMState |
NET::WMStrut |
@@ -398,11 +398,11 @@ TQPixmap KWin::icon( WId win, int width, int height, bool scale )
TQPixmap KWin::icon( WId win, int width, int height, bool scale, int flags )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
KXErrorHandler handler; // ignore badwindow
#endif
TQPixmap result;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if( flags & NETWM ) {
NETWinInfo info( tqt_xdisplay(), win, tqt_xrootwin(), NET::WMIcon );
NETIcon ni = info.icon( width, height );
@@ -514,7 +514,7 @@ TQPixmap KWin::icon( WId win, int width, int height, bool scale, int flags )
void KWin::setIcons( WId win, const TQPixmap& icon, const TQPixmap& miniIcon )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if ( icon.isNull() )
return;
NETWinInfo info( tqt_xdisplay(), win, tqt_xrootwin(), 0 );
@@ -536,7 +536,7 @@ void KWin::setIcons( WId win, const TQPixmap& icon, const TQPixmap& miniIcon )
void KWin::setType( WId win, NET::WindowType windowType )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETWinInfo info( tqt_xdisplay(), win, tqt_xrootwin(), 0 );
info.setWindowType( windowType );
#endif
@@ -544,7 +544,7 @@ void KWin::setType( WId win, NET::WindowType windowType )
void KWin::setState( WId win, unsigned long state )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETWinInfo info( tqt_xdisplay(), win, tqt_xrootwin(), NET::WMState );
info.setState( state, state );
#endif
@@ -552,7 +552,7 @@ void KWin::setState( WId win, unsigned long state )
void KWin::clearState( WId win, unsigned long state )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETWinInfo info( tqt_xdisplay(), win, tqt_xrootwin(), NET::WMState );
info.setState( 0, state );
#endif
@@ -560,7 +560,7 @@ void KWin::clearState( WId win, unsigned long state )
void KWin::setOpacity( WId win, uint percent )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
twin_net_create_atoms();
if (percent > 99)
XDeleteProperty (tqt_xdisplay(), win, kde_wm_window_opacity);
@@ -574,7 +574,7 @@ void KWin::setOpacity( WId win, uint percent )
void KWin::setShadowSize( WId win, uint percent )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
twin_net_create_atoms();
long shadowSize = long(0xFFFFFFFF/100.0*percent);
XChangeProperty(tqt_xdisplay(), win, kde_wm_window_shadow, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &shadowSize, 1L);
@@ -583,7 +583,7 @@ void KWin::setShadowSize( WId win, uint percent )
void KWin::setOnAllDesktops( WId win, bool b )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETWinInfo info( tqt_xdisplay(), win, tqt_xrootwin(), NET::WMDesktop );
if ( b )
info.setDesktop( NETWinInfo::OnAllDesktops );
@@ -596,7 +596,7 @@ void KWin::setOnAllDesktops( WId win, bool b )
void KWin::setOnDesktop( WId win, int desktop )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETWinInfo info( tqt_xdisplay(), win, tqt_xrootwin(), NET::WMDesktop );
info.setDesktop( desktop );
#endif
@@ -606,7 +606,7 @@ void KWin::setExtendedStrut( WId win, int left_width, int left_start, int left_e
int right_width, int right_start, int right_end, int top_width, int top_start, int top_end,
int bottom_width, int bottom_start, int bottom_end )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETWinInfo info( tqt_xdisplay(), win, tqt_xrootwin(), 0 );
NETExtendedStrut strut;
strut.left_width = left_width;
@@ -627,7 +627,7 @@ void KWin::setExtendedStrut( WId win, int left_width, int left_start, int left_e
void KWin::setStrut( WId win, int left, int right, int top, int bottom )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETWinInfo info( tqt_xdisplay(), win, tqt_xrootwin(), 0 );
NETStrut strut;
strut.left = left;
@@ -640,11 +640,11 @@ void KWin::setStrut( WId win, int left, int right, int top, int bottom )
int KWin::currentDesktop()
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if (!tqt_xdisplay())
#endif
return 1;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETRootInfo info( tqt_xdisplay(), NET::CurrentDesktop );
return info.currentDesktop();
#endif
@@ -652,11 +652,11 @@ int KWin::currentDesktop()
int KWin::numberOfDesktops()
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if (!tqt_xdisplay())
#endif
return 0;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETRootInfo info( tqt_xdisplay(), NET::NumberOfDesktops );
return info.numberOfDesktops();
#endif
@@ -664,7 +664,7 @@ int KWin::numberOfDesktops()
void KWin::setCurrentDesktop( int desktop )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETRootInfo info( tqt_xdisplay(), NET::CurrentDesktop );
info.setCurrentDesktop( desktop );
#endif
@@ -672,7 +672,7 @@ void KWin::setCurrentDesktop( int desktop )
void KWin::setCurrentDesktopViewport( int desktop, TQPoint viewport )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETRootInfo info( tqt_xdisplay(), NET::CurrentDesktop );
NETPoint netview;
netview.x = viewport.x();
@@ -683,7 +683,7 @@ void KWin::setCurrentDesktopViewport( int desktop, TQPoint viewport )
void KWin::iconifyWindow( WId win, bool animation)
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if ( !animation )
{
twin_net_create_atoms();
@@ -696,7 +696,7 @@ void KWin::iconifyWindow( WId win, bool animation)
void KWin::deIconifyWindow( WId win, bool animation )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if ( !animation )
{
twin_net_create_atoms();
@@ -708,7 +708,7 @@ void KWin::deIconifyWindow( WId win, bool animation )
void KWin::raiseWindow( WId win )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETRootInfo info( tqt_xdisplay(), NET::Supported );
if( info.isSupported( NET::WM2RestackWindow ))
info.restackRequest( win, None, Above );
@@ -719,7 +719,7 @@ void KWin::raiseWindow( WId win )
void KWin::lowerWindow( WId win )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETRootInfo info( tqt_xdisplay(), NET::Supported );
if( info.isSupported( NET::WM2RestackWindow ))
info.restackRequest( win, None, Below );
@@ -730,7 +730,7 @@ void KWin::lowerWindow( WId win )
void KWin::appStarted()
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
TDEStartupInfo::appStarted();
#endif
}
@@ -739,11 +739,11 @@ class KWin::WindowInfoPrivate
{
public:
WindowInfoPrivate()
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
: info( NULL )
#endif
{}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
~WindowInfoPrivate() { delete info; }
NETWinInfo* info;
#endif
@@ -762,7 +762,7 @@ class KWin::WindowInfoPrivate
// KWin::info() should be updated too if something has to be changed here
KWin::WindowInfo::WindowInfo( WId win, unsigned long properties, unsigned long properties2 )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
KXErrorHandler handler;
d = new WindowInfoPrivate;
d->ref = 1;
@@ -862,7 +862,7 @@ WId KWin::WindowInfo::win() const
unsigned long KWin::WindowInfo::state() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMState ) == 0, 176 )
<< "Pass NET::WMState to KWin::windowInfo()" << endl;
return d->info->state();
@@ -873,7 +873,7 @@ unsigned long KWin::WindowInfo::state() const
NET::MappingState KWin::WindowInfo::mappingState() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::XAWMState ) == 0, 176 )
<< "Pass NET::XAWMState to KWin::windowInfo()" << endl;
return d->info->mappingState();
@@ -884,7 +884,7 @@ NET::MappingState KWin::WindowInfo::mappingState() const
NETExtendedStrut KWin::WindowInfo::extendedStrut() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS2 ] & NET::WM2ExtendedStrut ) == 0, 176 )
<< "Pass NET::WM2ExtendedStrut to second argument of KWin::windowInfo()" << endl;
NETExtendedStrut ext = d->info->extendedStrut();
@@ -922,7 +922,7 @@ NETExtendedStrut KWin::WindowInfo::extendedStrut() const
NETStrut KWin::WindowInfo::strut() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMStrut ) == 0, 176 )
<< "Pass NET::WMStrut to KWin::windowInfo()" << endl;
return d->info->strut();
@@ -934,7 +934,7 @@ NETStrut KWin::WindowInfo::strut() const
NET::WindowType KWin::WindowInfo::windowType( int supported_types ) const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMWindowType ) == 0, 176 )
<< "Pass NET::WMWindowType to KWin::windowInfo()" << endl;
return d->info->windowType( supported_types );
@@ -965,7 +965,7 @@ TQString KWin::Info::visibleNameWithState() const
TQString KWin::WindowInfo::visibleName() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMVisibleName ) == 0, 176 )
<< "Pass NET::WMVisibleName to KWin::windowInfo()" << endl;
return d->info->visibleName() && d->info->visibleName()[ 0 ] != '\0'
@@ -977,7 +977,7 @@ TQString KWin::WindowInfo::visibleName() const
TQString KWin::WindowInfo::name() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMName ) == 0, 176 )
<< "Pass NET::WMName to KWin::windowInfo()" << endl;
return d->name_;
@@ -998,7 +998,7 @@ TQString KWin::WindowInfo::visibleIconNameWithState() const
TQString KWin::WindowInfo::visibleIconName() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMVisibleIconName ) == 0, 176 )
<< "Pass NET::WMVisibleIconName to KWin::windowInfo()" << endl;
if( d->info->visibleIconName() && d->info->visibleIconName()[ 0 ] != '\0' )
@@ -1013,7 +1013,7 @@ TQString KWin::WindowInfo::visibleIconName() const
TQString KWin::WindowInfo::iconName() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMIconName ) == 0, 176 )
<< "Pass NET::WMIconName to KWin::windowInfo()" << endl;
if( d->info->iconName() && d->info->iconName()[ 0 ] != '\0' )
@@ -1026,7 +1026,7 @@ TQString KWin::WindowInfo::iconName() const
bool KWin::WindowInfo::isOnCurrentDesktop() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
return isOnDesktop( KWin::currentDesktop());
#else
return false;
@@ -1035,7 +1035,7 @@ bool KWin::WindowInfo::isOnCurrentDesktop() const
bool KWin::WindowInfo::isOnDesktop( int desktop ) const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMDesktop ) == 0, 176 )
<< "Pass NET::WMDesktop to KWin::windowInfo()" << endl;
return d->info->desktop() == desktop || d->info->desktop() == NET::OnAllDesktops;
@@ -1046,7 +1046,7 @@ bool KWin::WindowInfo::isOnDesktop( int desktop ) const
bool KWin::WindowInfo::onAllDesktops() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMDesktop ) == 0, 176 )
<< "Pass NET::WMDesktop to KWin::windowInfo()" << endl;
return d->info->desktop() == NET::OnAllDesktops;
@@ -1057,7 +1057,7 @@ bool KWin::WindowInfo::onAllDesktops() const
int KWin::WindowInfo::desktop() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMDesktop ) == 0, 176 )
<< "Pass NET::WMDesktop to KWin::windowInfo()" << endl;
return d->info->desktop();
@@ -1068,7 +1068,7 @@ int KWin::WindowInfo::desktop() const
TQRect KWin::WindowInfo::geometry() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMGeometry ) == 0, 176 )
<< "Pass NET::WMGeometry to KWin::windowInfo()" << endl;
return d->geometry_;
@@ -1079,7 +1079,7 @@ TQRect KWin::WindowInfo::geometry() const
TQRect KWin::WindowInfo::frameGeometry() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS ] & NET::WMKDEFrameStrut ) == 0, 176 )
<< "Pass NET::WMKDEFrameStrut to KWin::windowInfo()" << endl;
return d->frame_geometry_;
@@ -1090,7 +1090,7 @@ TQRect KWin::WindowInfo::frameGeometry() const
WId KWin::WindowInfo::transientFor() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS2 ] & NET::WM2TransientFor ) == 0, 176 )
<< "Pass NET::WM2TransientFor to KWin::windowInfo()" << endl;
return d->info->transientFor();
@@ -1101,7 +1101,7 @@ WId KWin::WindowInfo::transientFor() const
WId KWin::WindowInfo::groupLeader() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS2 ] & NET::WM2GroupLeader ) == 0, 176 )
<< "Pass NET::WM2GroupLeader to KWin::windowInfo()" << endl;
return d->info->groupLeader();
@@ -1112,7 +1112,7 @@ WId KWin::WindowInfo::groupLeader() const
TQCString KWin::WindowInfo::windowClassClass() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS2 ] & NET::WM2WindowClass ) == 0, 176 )
<< "Pass NET::WM2WindowClass to KWin::windowInfo()" << endl;
return d->info->windowClassClass();
@@ -1123,7 +1123,7 @@ TQCString KWin::WindowInfo::windowClassClass() const
TQCString KWin::WindowInfo::windowClassName() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS2 ] & NET::WM2WindowClass ) == 0, 176 )
<< "Pass NET::WM2WindowClass to KWin::windowInfo()" << endl;
return d->info->windowClassName();
@@ -1134,7 +1134,7 @@ TQCString KWin::WindowInfo::windowClassName() const
TQCString KWin::WindowInfo::windowRole() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS2 ] & NET::WM2WindowRole ) == 0, 176 )
<< "Pass NET::WM2WindowRole to KWin::windowInfo()" << endl;
return d->info->windowRole();
@@ -1145,7 +1145,7 @@ TQCString KWin::WindowInfo::windowRole() const
TQCString KWin::WindowInfo::clientMachine() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS2 ] & NET::WM2ClientMachine ) == 0, 176 )
<< "Pass NET::WM2ClientMachine to KWin::windowInfo()" << endl;
return d->info->clientMachine();
@@ -1156,7 +1156,7 @@ TQCString KWin::WindowInfo::clientMachine() const
bool KWin::WindowInfo::actionSupported( NET::Action action ) const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdWarning(( d->info->passedProperties()[ NETWinInfo::PROTOCOLS2 ] & NET::WM2AllowedActions ) == 0, 176 )
<< "Pass NET::WM2AllowedActions to KWin::windowInfo()" << endl;
if( allowedActionsSupported())
@@ -1169,7 +1169,7 @@ bool KWin::WindowInfo::actionSupported( NET::Action action ) const
// see NETWM spec section 7.6
bool KWin::WindowInfo::isMinimized() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if( mappingState() != NET::Iconic )
return false;
// NETWM 1.2 compliant WM - uses NET::Hidden for minimized windows
@@ -1186,7 +1186,7 @@ bool KWin::WindowInfo::isMinimized() const
bool KWin::Info::isMinimized() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if( mappingState != NET::Iconic )
return false;
// NETWM 1.2 compliant WM - uses NET::Hidden for minimized windows
@@ -1208,7 +1208,7 @@ bool KWin::Info::isIconified() const
bool KWin::icccmCompliantMappingState()
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
static enum { noidea, yes, no } wm_is_1_2_compliant = noidea;
if( wm_is_1_2_compliant == noidea ) {
NETRootInfo info( tqt_xdisplay(), NET::Supported );
@@ -1222,7 +1222,7 @@ bool KWin::icccmCompliantMappingState()
bool KWin::allowedActionsSupported()
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
static enum { noidea, yes, no } wm_supports_allowed_actions = noidea;
if( wm_supports_allowed_actions == noidea ) {
NETRootInfo info( tqt_xdisplay(), NET::Supported );
@@ -1236,13 +1236,13 @@ bool KWin::allowedActionsSupported()
TQString KWin::readNameProperty( WId win, unsigned long atom )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
XTextProperty tp;
char **text = NULL;
int count;
#endif
TQString result;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if ( XGetTextProperty( tqt_xdisplay(), win, &tp, atom ) != 0 && tp.value != NULL )
{
if (!twin_UTF8_STRING)
diff --git a/tdecore/twin.h b/tdecore/twin.h
index 141edeffc..53d697131 100644
--- a/tdecore/twin.h
+++ b/tdecore/twin.h
@@ -110,7 +110,7 @@ public:
* @deprecated Consider using activateWindow(), use forceActiveWindow()
* only if necessary.
*/
- static void setActiveWindow( WId win ) KDE_DEPRECATED;
+ static void setActiveWindow( WId win ) TDE_DEPRECATED;
/**
* When application finishes some operation and wants to notify
@@ -502,7 +502,7 @@ public:
* @deprecated
* Use windowInfo() .
*/
- static Info info( WId win ) KDE_DEPRECATED;
+ static Info info( WId win ) TDE_DEPRECATED;
#ifdef KDE_NO_COMPAT
private:
@@ -511,7 +511,7 @@ private:
* @deprecated
* Use TDEStartupInfo::appStarted
*/
- static void appStarted() KDE_DEPRECATED;
+ static void appStarted() TDE_DEPRECATED;
};
diff --git a/tdecore/twinmodule.cpp b/tdecore/twinmodule.cpp
index a37370e58..e34a012fd 100644
--- a/tdecore/twinmodule.cpp
+++ b/tdecore/twinmodule.cpp
@@ -22,7 +22,7 @@
*/
#include <tqwidget.h>
-#ifdef Q_WS_X11 //FIXME
+#ifdef TQ_WS_X11 //FIXME
#include "twinmodule.h"
#include "twin.h"
#include <X11/Xatom.h>
@@ -71,8 +71,8 @@ public:
strutSignalConnected( false ),
what( _what )
{
- kapp->installX11EventFilter( this );
- (void ) kapp->desktop(); //trigger desktop widget creation to select root window events
+ tdeApp->installX11EventFilter( this );
+ (void ) tdeApp->desktop(); //trigger desktop widget creation to select root window events
activate();
updateStackingOrder();
}
@@ -445,7 +445,7 @@ TQRect KWinModule::workArea( const TQValueList<WId>& exclude, int desktop ) cons
void KWinModule::connectNotify( const char* signal )
{
- if( !d->strutSignalConnected && qstrcmp( signal, TQT_SIGNAL(strutChanged())) == 0 )
+ if( !d->strutSignalConnected && qstrcmp( signal, TQ_SIGNAL(strutChanged())) == 0 )
d->strutSignalConnected = true;
TQObject::connectNotify( signal );
}
@@ -468,13 +468,13 @@ void KWinModule::setDesktopName( int desktop, const TQString& name )
void KWinModule::doNotManage( const TQString& title )
{
- if ( !kapp->dcopClient()->isAttached() )
- kapp->dcopClient()->attach();
+ if ( !tdeApp->dcopClient()->isAttached() )
+ tdeApp->dcopClient()->attach();
TQByteArray data, replyData;
TQCString replyType;
TQDataStream arg(data, IO_WriteOnly);
arg << title;
- kapp->dcopClient()->call("twin", "", "doNotManage(TQString)",
+ tdeApp->dcopClient()->call("twin", "", "doNotManage(TQString)",
data, replyType, replyData);
}
diff --git a/tdecore/twinmodule.h b/tdecore/twinmodule.h
index 0357c1c66..356e85958 100644
--- a/tdecore/twinmodule.h
+++ b/tdecore/twinmodule.h
@@ -27,10 +27,6 @@
#include <tqvaluelist.h>
#include "tdelibs_export.h"
-#ifdef Q_MOC_RUN
-#define Q_OS_UNIX
-#endif // Q_MOC_RUN
-
#ifdef Q_OS_UNIX
class KWinModulePrivate;
@@ -55,7 +51,7 @@ class KWinModulePrivate;
*/
class TDECORE_EXPORT KWinModule : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -65,7 +61,7 @@ public:
/**
* Creates a KWinModule object and connects to the window
* manager.
- * @param parent the parent for the QObject
+ * @param parent the parent for the TQObject
* @param what The information you are interested in:
* INFO_DESKTOP: currentDesktop,
* numberOfDesktops,
@@ -93,7 +89,7 @@ public:
/**
* Creates a KWinModule object and connects to the window
* manager.
- * @param parent the parent for the QObject
+ * @param parent the parent for the TQObject
**/
KWinModule( TQObject* parent = 0 );