summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ark/ace.cpp60
-rw-r--r--ark/ace.h8
-rw-r--r--ark/ar.cpp96
-rw-r--r--ark/ar.h8
-rw-r--r--ark/arch.cpp70
-rw-r--r--ark/arch.h74
-rw-r--r--ark/archiveformatdlg.cpp22
-rw-r--r--ark/archiveformatdlg.h4
-rw-r--r--ark/archiveformatinfo.cpp46
-rw-r--r--ark/archiveformatinfo.h32
-rw-r--r--ark/ark_part.cpp128
-rw-r--r--ark/ark_part.h24
-rw-r--r--ark/arkapp.cpp18
-rw-r--r--ark/arkapp.h12
-rw-r--r--ark/arkfactory.cpp12
-rw-r--r--ark/arkfactory.h6
-rw-r--r--ark/arkutils.cpp34
-rw-r--r--ark/arkutils.h18
-rw-r--r--ark/arkviewer.cpp40
-rw-r--r--ark/arkviewer.h4
-rw-r--r--ark/arkwidget.cpp490
-rw-r--r--ark/arkwidget.h96
-rw-r--r--ark/compressedfile.cpp70
-rw-r--r--ark/compressedfile.h20
-rw-r--r--ark/extractiondialog.cpp64
-rw-r--r--ark/extractiondialog.h20
-rw-r--r--ark/filelistview.cpp106
-rw-r--r--ark/filelistview.h50
-rw-r--r--ark/lha.cpp86
-rw-r--r--ark/lha.h10
-rw-r--r--ark/mainwindow.cpp104
-rw-r--r--ark/mainwindow.h24
-rw-r--r--ark/rar.cpp84
-rw-r--r--ark/rar.h12
-rw-r--r--ark/searchbar.cpp10
-rw-r--r--ark/searchbar.h4
-rw-r--r--ark/sevenzip.cpp102
-rw-r--r--ark/sevenzip.h10
-rw-r--r--ark/tar.cpp218
-rw-r--r--ark/tar.h30
-rw-r--r--ark/tarlistingthread.cpp34
-rw-r--r--ark/tarlistingthread.h20
-rw-r--r--ark/zip.cpp92
-rw-r--r--ark/zip.h8
-rw-r--r--ark/zoo.cpp98
-rw-r--r--ark/zoo.h10
-rw-r--r--charselectapplet/charselectapplet.cpp98
-rw-r--r--charselectapplet/charselectapplet.h38
-rw-r--r--kcalc/confvalues.h18
-rw-r--r--kcalc/dlabel.cpp16
-rw-r--r--kcalc/dlabel.h6
-rw-r--r--kcalc/kcalc.cpp708
-rw-r--r--kcalc/kcalc.h48
-rw-r--r--kcalc/kcalc_button.cpp38
-rw-r--r--kcalc/kcalc_button.h32
-rw-r--r--kcalc/kcalc_const_button.cpp20
-rw-r--r--kcalc/kcalc_const_button.h8
-rw-r--r--kcalc/kcalc_const_menu.cpp36
-rw-r--r--kcalc/kcalc_const_menu.h12
-rw-r--r--kcalc/kcalc_core.h4
-rw-r--r--kcalc/kcalcdisplay.cpp82
-rw-r--r--kcalc/kcalcdisplay.h28
-rw-r--r--kcalc/knumber/knumber.cpp54
-rw-r--r--kcalc/knumber/knumber.h8
-rw-r--r--kcalc/knumber/knumber_priv.cpp40
-rw-r--r--kcalc/knumber/knumber_priv.h18
-rw-r--r--kcalc/knumber/tests/knumbertest.cpp22
-rw-r--r--kcalc/stats.cpp8
-rw-r--r--kcalc/stats.h4
-rw-r--r--kcharselect/kcharselectdia.cc92
-rw-r--r--kcharselect/kcharselectdia.h28
-rw-r--r--kcharselect/main.cc4
-rw-r--r--kdelirc/irkick/irkick.cpp106
-rw-r--r--kdelirc/irkick/irkick.h30
-rw-r--r--kdelirc/irkick/kdedmodule_stub.h6
-rw-r--r--kdelirc/irkick/klircclient.cpp54
-rw-r--r--kdelirc/irkick/klircclient.h26
-rw-r--r--kdelirc/kcmlirc/addaction.cpp106
-rw-r--r--kdelirc/kcmlirc/addaction.h24
-rw-r--r--kdelirc/kcmlirc/editaction.cpp72
-rw-r--r--kdelirc/kcmlirc/editaction.h12
-rw-r--r--kdelirc/kcmlirc/editmode.cpp4
-rw-r--r--kdelirc/kcmlirc/editmode.h4
-rw-r--r--kdelirc/kcmlirc/kcmlirc.cpp150
-rw-r--r--kdelirc/kcmlirc/kcmlirc.h26
-rw-r--r--kdelirc/kcmlirc/kcmlircbase.ui.h2
-rw-r--r--kdelirc/kcmlirc/modeslist.cpp6
-rw-r--r--kdelirc/kcmlirc/modeslist.h4
-rw-r--r--kdelirc/kcmlirc/newmode.ui.h2
-rw-r--r--kdelirc/kdelirc/arguments.cpp8
-rw-r--r--kdelirc/kdelirc/arguments.h8
-rw-r--r--kdelirc/kdelirc/iraction.cpp42
-rw-r--r--kdelirc/kdelirc/iraction.h42
-rw-r--r--kdelirc/kdelirc/iractions.cpp12
-rw-r--r--kdelirc/kdelirc/iractions.h22
-rw-r--r--kdelirc/kdelirc/mode.cpp10
-rw-r--r--kdelirc/kdelirc/mode.h20
-rw-r--r--kdelirc/kdelirc/modes.cpp22
-rw-r--r--kdelirc/kdelirc/modes.h24
-rw-r--r--kdelirc/kdelirc/profileserver.cpp34
-rw-r--r--kdelirc/kdelirc/profileserver.h100
-rw-r--r--kdelirc/kdelirc/prototype.cpp18
-rw-r--r--kdelirc/kdelirc/prototype.h34
-rw-r--r--kdelirc/kdelirc/remoteserver.cpp22
-rw-r--r--kdelirc/kdelirc/remoteserver.h62
-rw-r--r--kdessh/kdessh.cpp18
-rw-r--r--kdessh/sshdlg.cpp8
-rw-r--r--kdessh/sshdlg.h6
-rw-r--r--kdf/disklist.cpp48
-rw-r--r--kdf/disklist.h12
-rw-r--r--kdf/disks.cpp80
-rw-r--r--kdf/disks.h68
-rw-r--r--kdf/kcmdf.cpp10
-rw-r--r--kdf/kcmdf.h6
-rw-r--r--kdf/kconftest.cpp10
-rw-r--r--kdf/kdf.cpp10
-rw-r--r--kdf/kdf.h2
-rw-r--r--kdf/kdfconfig.cpp76
-rw-r--r--kdf/kdfconfig.h28
-rw-r--r--kdf/kdfwidget.cpp86
-rw-r--r--kdf/kdfwidget.h38
-rw-r--r--kdf/kwikdisk.cpp66
-rw-r--r--kdf/kwikdisk.h8
-rw-r--r--kdf/listview.cpp34
-rw-r--r--kdf/listview.h12
-rw-r--r--kdf/mntconfig.cpp102
-rw-r--r--kdf/mntconfig.h28
-rw-r--r--kdf/optiondialog.cpp18
-rw-r--r--kdf/optiondialog.h2
-rw-r--r--kdf/stdoption.cpp6
-rw-r--r--kdf/stdoption.h10
-rw-r--r--kedit/kedit.cpp320
-rw-r--r--kedit/kedit.h38
-rw-r--r--kedit/ktextfiledlg.cpp70
-rw-r--r--kedit/ktextfiledlg.h30
-rw-r--r--kfloppy/floppy.cpp132
-rw-r--r--kfloppy/floppy.h52
-rw-r--r--kfloppy/format.cpp118
-rw-r--r--kfloppy/format.h58
-rw-r--r--kfloppy/main.cpp2
-rw-r--r--kfloppy/zip.cpp52
-rw-r--r--kfloppy/zip.h10
-rw-r--r--kgpg/dcopiface.h4
-rw-r--r--kgpg/detailedconsole.cpp26
-rw-r--r--kgpg/detailedconsole.h4
-rw-r--r--kgpg/keygener.cpp56
-rw-r--r--kgpg/keygener.h14
-rw-r--r--kgpg/keyinfowidget.cpp140
-rw-r--r--kgpg/keyinfowidget.h26
-rw-r--r--kgpg/keyservers.cpp208
-rw-r--r--kgpg/keyservers.h12
-rw-r--r--kgpg/kgpg.cpp324
-rw-r--r--kgpg/kgpg.h40
-rw-r--r--kgpg/kgpgeditor.cpp196
-rw-r--r--kgpg/kgpgeditor.h22
-rw-r--r--kgpg/kgpginterface.cpp768
-rw-r--r--kgpg/kgpginterface.h152
-rw-r--r--kgpg/kgpglibrary.cpp80
-rw-r--r--kgpg/kgpglibrary.h34
-rw-r--r--kgpg/kgpgoptions.cpp158
-rw-r--r--kgpg/kgpgoptions.h38
-rw-r--r--kgpg/kgpgsettings_addons.h6
-rw-r--r--kgpg/kgpgview.cpp126
-rw-r--r--kgpg/kgpgview.h48
-rw-r--r--kgpg/listkeys.cpp978
-rw-r--r--kgpg/listkeys.h154
-rw-r--r--kgpg/main.cpp4
-rw-r--r--kgpg/popuppublic.cpp166
-rw-r--r--kgpg/popuppublic.h18
-rw-r--r--khexedit/bitswapwidget.cc46
-rw-r--r--khexedit/bitswapwidget.h32
-rw-r--r--khexedit/chartabledialog.cc52
-rw-r--r--khexedit/chartabledialog.h12
-rw-r--r--khexedit/conversion.cc8
-rw-r--r--khexedit/conversion.h8
-rw-r--r--khexedit/converterdialog.cc64
-rw-r--r--khexedit/converterdialog.h20
-rw-r--r--khexedit/dialog.cc364
-rw-r--r--khexedit/dialog.h178
-rw-r--r--khexedit/draglabel.cc30
-rw-r--r--khexedit/draglabel.h28
-rw-r--r--khexedit/exportdialog.cc220
-rw-r--r--khexedit/exportdialog.h52
-rw-r--r--khexedit/fileinfodialog.cc70
-rw-r--r--khexedit/fileinfodialog.h14
-rw-r--r--khexedit/hexbuffer.cc238
-rw-r--r--khexedit/hexbuffer.h156
-rw-r--r--khexedit/hexclipboard.cc6
-rw-r--r--khexedit/hexclipboard.h8
-rw-r--r--khexedit/hexdrag.cc22
-rw-r--r--khexedit/hexdrag.h18
-rw-r--r--khexedit/hexeditorwidget.cc274
-rw-r--r--khexedit/hexeditorwidget.h40
-rw-r--r--khexedit/hexeditstate.h80
-rw-r--r--khexedit/hexerror.cc6
-rw-r--r--khexedit/hexerror.h2
-rw-r--r--khexedit/hexmanagerwidget.cc104
-rw-r--r--khexedit/hexmanagerwidget.h36
-rw-r--r--khexedit/hexprinter.cc6
-rw-r--r--khexedit/hexprinter.h2
-rw-r--r--khexedit/hextoolwidget.cc76
-rw-r--r--khexedit/hextoolwidget.h22
-rw-r--r--khexedit/hexvalidator.cc48
-rw-r--r--khexedit/hexvalidator.h12
-rw-r--r--khexedit/hexviewwidget.cc212
-rw-r--r--khexedit/hexviewwidget.h116
-rw-r--r--khexedit/lib/codecs/kbinarybytecodec.cpp4
-rw-r--r--khexedit/lib/codecs/kbinarybytecodec.h4
-rw-r--r--khexedit/lib/codecs/kbytecodec.cpp4
-rw-r--r--khexedit/lib/codecs/kcharcodec.cpp6
-rw-r--r--khexedit/lib/codecs/kdecimalbytecodec.cpp4
-rw-r--r--khexedit/lib/codecs/kdecimalbytecodec.h4
-rw-r--r--khexedit/lib/codecs/kebcdic1047charcodec.cpp10
-rw-r--r--khexedit/lib/codecs/kebcdic1047charcodec.h6
-rw-r--r--khexedit/lib/codecs/khexadecimalbytecodec.cpp8
-rw-r--r--khexedit/lib/codecs/khexadecimalbytecodec.h6
-rw-r--r--khexedit/lib/codecs/koctalbytecodec.cpp4
-rw-r--r--khexedit/lib/codecs/koctalbytecodec.h4
-rw-r--r--khexedit/lib/codecs/ktextcharcodec.cpp52
-rw-r--r--khexedit/lib/codecs/ktextcharcodec.h20
-rw-r--r--khexedit/lib/controller/kchareditor.cpp8
-rw-r--r--khexedit/lib/controller/kchareditor.h2
-rw-r--r--khexedit/lib/controller/kcontroller.cpp2
-rw-r--r--khexedit/lib/controller/kcontroller.h2
-rw-r--r--khexedit/lib/controller/keditor.cpp2
-rw-r--r--khexedit/lib/controller/keditor.h2
-rw-r--r--khexedit/lib/controller/knavigator.cpp4
-rw-r--r--khexedit/lib/controller/knavigator.h2
-rw-r--r--khexedit/lib/controller/ktabcontroller.cpp4
-rw-r--r--khexedit/lib/controller/ktabcontroller.h2
-rw-r--r--khexedit/lib/controller/kvalueeditor.cpp6
-rw-r--r--khexedit/lib/controller/kvalueeditor.h4
-rw-r--r--khexedit/lib/helper.h4
-rw-r--r--khexedit/lib/kbigbuffer.cpp2
-rw-r--r--khexedit/lib/kbigbuffer.h12
-rw-r--r--khexedit/lib/kbordercoltextexport.cpp8
-rw-r--r--khexedit/lib/kbordercoltextexport.h6
-rw-r--r--khexedit/lib/kbordercolumn.cpp16
-rw-r--r--khexedit/lib/kbordercolumn.h8
-rw-r--r--khexedit/lib/kbuffercoltextexport.cpp10
-rw-r--r--khexedit/lib/kbuffercoltextexport.h10
-rw-r--r--khexedit/lib/kbuffercolumn.cpp48
-rw-r--r--khexedit/lib/kbuffercolumn.h26
-rw-r--r--khexedit/lib/kbufferdrag.cpp46
-rw-r--r--khexedit/lib/kbufferdrag.h26
-rw-r--r--khexedit/lib/kbytecodec.h8
-rw-r--r--khexedit/lib/kbytesedit.cpp6
-rw-r--r--khexedit/lib/kbytesedit.h6
-rw-r--r--khexedit/lib/kcharcodec.h12
-rw-r--r--khexedit/lib/kcharcoltextexport.cpp4
-rw-r--r--khexedit/lib/kcharcoltextexport.h8
-rw-r--r--khexedit/lib/kcharcolumn.cpp10
-rw-r--r--khexedit/lib/kcharcolumn.h24
-rw-r--r--khexedit/lib/kcoltextexport.h4
-rw-r--r--khexedit/lib/kcolumn.cpp10
-rw-r--r--khexedit/lib/kcolumn.h8
-rw-r--r--khexedit/lib/kcolumnsview.cpp16
-rw-r--r--khexedit/lib/kcolumnsview.h24
-rw-r--r--khexedit/lib/kcoordrangelist.h4
-rw-r--r--khexedit/lib/kcursor.h14
-rw-r--r--khexedit/lib/kdatabuffer.h2
-rw-r--r--khexedit/lib/kfixedsizebuffer.cpp6
-rw-r--r--khexedit/lib/kfixedsizebuffer.h2
-rw-r--r--khexedit/lib/khechar.h10
-rw-r--r--khexedit/lib/khexedit.cpp198
-rw-r--r--khexedit/lib/khexedit.h102
-rw-r--r--khexedit/lib/koffsetcoltextexport.cpp8
-rw-r--r--khexedit/lib/koffsetcoltextexport.h6
-rw-r--r--khexedit/lib/koffsetcolumn.cpp20
-rw-r--r--khexedit/lib/koffsetcolumn.h8
-rw-r--r--khexedit/lib/kplainbuffer.cpp4
-rw-r--r--khexedit/lib/kplainbuffer.h2
-rw-r--r--khexedit/lib/ksectionlist.h4
-rw-r--r--khexedit/lib/kvaluecoltextexport.cpp4
-rw-r--r--khexedit/lib/kvaluecoltextexport.h2
-rw-r--r--khexedit/lib/kvaluecolumn.cpp12
-rw-r--r--khexedit/lib/kvaluecolumn.h8
-rw-r--r--khexedit/listview.cc10
-rw-r--r--khexedit/listview.h4
-rw-r--r--khexedit/main.cc2
-rw-r--r--khexedit/optiondialog.cc496
-rw-r--r--khexedit/optiondialog.h120
-rw-r--r--khexedit/parts/kbytesedit/kbyteseditwidget.cpp18
-rw-r--r--khexedit/parts/kbytesedit/kbyteseditwidget.h12
-rw-r--r--khexedit/parts/kpart/khebrowserextension.cpp8
-rw-r--r--khexedit/parts/kpart/khebrowserextension.h4
-rw-r--r--khexedit/parts/kpart/khepart.cpp32
-rw-r--r--khexedit/parts/kpart/khepart.h2
-rw-r--r--khexedit/parts/kpart/khepartfactory.cpp8
-rw-r--r--khexedit/parts/kpart/khepartfactory.h6
-rw-r--r--khexedit/printdialogpage.cc102
-rw-r--r--khexedit/printdialogpage.h26
-rw-r--r--khexedit/progress.h4
-rw-r--r--khexedit/searchbar.cc56
-rw-r--r--khexedit/searchbar.h26
-rw-r--r--khexedit/statusbarprogress.cc66
-rw-r--r--khexedit/statusbarprogress.h38
-rw-r--r--khexedit/stringdialog.cc90
-rw-r--r--khexedit/stringdialog.h30
-rw-r--r--khexedit/toplevel.cc354
-rw-r--r--khexedit/toplevel.h50
-rw-r--r--kjots/KJotsMain.cpp236
-rw-r--r--kjots/KJotsMain.h36
-rw-r--r--kjots/kjotsbookmarks.cpp8
-rw-r--r--kjots/kjotsbookmarks.h10
-rw-r--r--kjots/kjotsedit.cpp32
-rw-r--r--kjots/kjotsedit.h6
-rw-r--r--kjots/kjotsentry.cpp266
-rw-r--r--kjots/kjotsentry.h92
-rw-r--r--kjots/main.cpp4
-rw-r--r--klaptopdaemon/acpi.cpp88
-rw-r--r--klaptopdaemon/acpi.h18
-rw-r--r--klaptopdaemon/apm.cpp80
-rw-r--r--klaptopdaemon/apm.h12
-rw-r--r--klaptopdaemon/battery.cpp118
-rw-r--r--klaptopdaemon/battery.h32
-rw-r--r--klaptopdaemon/buttons.cpp178
-rw-r--r--klaptopdaemon/buttons.h34
-rw-r--r--klaptopdaemon/daemon_state.cpp14
-rw-r--r--klaptopdaemon/daemon_state.h32
-rw-r--r--klaptopdaemon/daemondock.cpp160
-rw-r--r--klaptopdaemon/daemondock.h14
-rw-r--r--klaptopdaemon/kpcmcia.cpp48
-rw-r--r--klaptopdaemon/kpcmcia.h30
-rw-r--r--klaptopdaemon/kpcmciainfo.cpp74
-rw-r--r--klaptopdaemon/kpcmciainfo.h58
-rw-r--r--klaptopdaemon/krichtextlabel.cpp42
-rw-r--r--klaptopdaemon/krichtextlabel.h18
-rw-r--r--klaptopdaemon/laptop_daemon.cpp62
-rw-r--r--klaptopdaemon/laptop_daemon.h44
-rw-r--r--klaptopdaemon/main.cpp54
-rw-r--r--klaptopdaemon/main.h8
-rw-r--r--klaptopdaemon/pcmcia.cpp20
-rw-r--r--klaptopdaemon/pcmcia.h24
-rw-r--r--klaptopdaemon/portable.cpp336
-rw-r--r--klaptopdaemon/portable.h26
-rw-r--r--klaptopdaemon/power.cpp222
-rw-r--r--klaptopdaemon/power.h42
-rw-r--r--klaptopdaemon/profile.cpp148
-rw-r--r--klaptopdaemon/profile.h14
-rw-r--r--klaptopdaemon/sony.cpp48
-rw-r--r--klaptopdaemon/sony.h10
-rw-r--r--klaptopdaemon/wake_laptop.cpp4
-rw-r--r--klaptopdaemon/warning.cpp210
-rw-r--r--klaptopdaemon/warning.h52
-rw-r--r--klaptopdaemon/xautolock.cc6
-rw-r--r--klaptopdaemon/xautolock.h4
-rw-r--r--kmilo/asus/asus.cpp20
-rw-r--r--kmilo/asus/asus.h4
-rw-r--r--kmilo/delli8k/delli8k.cpp2
-rw-r--r--kmilo/delli8k/delli8k.h2
-rw-r--r--kmilo/demo/demo.cpp2
-rw-r--r--kmilo/demo/demo.h2
-rw-r--r--kmilo/generic/generic_monitor.cpp52
-rw-r--r--kmilo/generic/generic_monitor.h6
-rw-r--r--kmilo/kmilo_kvaio/kcmkvaio/main.cpp30
-rw-r--r--kmilo/kmilo_kvaio/kcmkvaio/main.h4
-rw-r--r--kmilo/kmilo_kvaio/kmilo_kvaio.cpp4
-rw-r--r--kmilo/kmilo_kvaio/kmilo_kvaio.h8
-rw-r--r--kmilo/kmilo_kvaio/kvaio.cpp42
-rw-r--r--kmilo/kmilo_kvaio/kvaio.h10
-rw-r--r--kmilo/kmilo_kvaio/kvaiodriverinterface.cpp10
-rw-r--r--kmilo/kmilo_kvaio/kvaiodriverinterface.h6
-rw-r--r--kmilo/kmilod/defaultskin.cpp34
-rw-r--r--kmilo/kmilod/defaultskin.h16
-rw-r--r--kmilo/kmilod/displayskin.h10
-rw-r--r--kmilo/kmilod/kmilod.cpp20
-rw-r--r--kmilo/kmilod/kmilod.h20
-rw-r--r--kmilo/kmilod/kmilointerface.h16
-rw-r--r--kmilo/kmilod/monitor.cpp8
-rw-r--r--kmilo/kmilod/monitor.h16
-rw-r--r--kmilo/powerbook/pb_monitor.cpp2
-rw-r--r--kmilo/powerbook/pb_monitor.h2
-rw-r--r--kmilo/powerbook2/pb_monitor.cpp12
-rw-r--r--kmilo/powerbook2/pb_monitor.h6
-rw-r--r--kmilo/thinkpad/kcmthinkpad/main.cpp26
-rw-r--r--kmilo/thinkpad/kcmthinkpad/main.h4
-rw-r--r--kmilo/thinkpad/thinkpad.cpp8
-rw-r--r--kmilo/thinkpad/thinkpad.h18
-rw-r--r--kregexpeditor/KMultiFormListBox/ccp.cpp26
-rw-r--r--kregexpeditor/KMultiFormListBox/ccp.h6
-rw-r--r--kregexpeditor/KMultiFormListBox/indexWindow.cpp20
-rw-r--r--kregexpeditor/KMultiFormListBox/indexWindow.h18
-rw-r--r--kregexpeditor/KMultiFormListBox/kmultiformlistbox-multivisible.cpp50
-rw-r--r--kregexpeditor/KMultiFormListBox/kmultiformlistbox-multivisible.h16
-rw-r--r--kregexpeditor/KMultiFormListBox/kmultiformlistbox-shower.h8
-rw-r--r--kregexpeditor/KMultiFormListBox/kmultiformlistbox-windowed.cpp50
-rw-r--r--kregexpeditor/KMultiFormListBox/kmultiformlistbox-windowed.h18
-rw-r--r--kregexpeditor/KMultiFormListBox/kmultiformlistbox.cpp18
-rw-r--r--kregexpeditor/KMultiFormListBox/kmultiformlistbox.h20
-rw-r--r--kregexpeditor/KMultiFormListBox/kmultiformlistboxentry.cpp6
-rw-r--r--kregexpeditor/KMultiFormListBox/kmultiformlistboxentry.h18
-rw-r--r--kregexpeditor/KMultiFormListBox/kmultiformlistboxfactory.cpp8
-rw-r--r--kregexpeditor/KMultiFormListBox/kmultiformlistboxfactory.h8
-rw-r--r--kregexpeditor/KMultiFormListBox/widgetwindow.cpp18
-rw-r--r--kregexpeditor/KMultiFormListBox/widgetwindow.h4
-rw-r--r--kregexpeditor/KMultiFormListBox/windowlistboxitem.cpp4
-rw-r--r--kregexpeditor/KMultiFormListBox/windowlistboxitem.h4
-rw-r--r--kregexpeditor/KWidgetStreamer/kwidgetstreamer.cpp100
-rw-r--r--kregexpeditor/KWidgetStreamer/kwidgetstreamer.h28
-rw-r--r--kregexpeditor/altnregexp.cpp10
-rw-r--r--kregexpeditor/altnregexp.h4
-rw-r--r--kregexpeditor/altnwidget.cpp34
-rw-r--r--kregexpeditor/altnwidget.h12
-rw-r--r--kregexpeditor/auxbuttons.cpp70
-rw-r--r--kregexpeditor/auxbuttons.h16
-rw-r--r--kregexpeditor/characterswidget.cpp166
-rw-r--r--kregexpeditor/characterswidget.h52
-rw-r--r--kregexpeditor/charselector.cpp74
-rw-r--r--kregexpeditor/charselector.h12
-rw-r--r--kregexpeditor/compoundregexp.cpp42
-rw-r--r--kregexpeditor/compoundregexp.h16
-rw-r--r--kregexpeditor/compoundwidget.cpp88
-rw-r--r--kregexpeditor/compoundwidget.h42
-rw-r--r--kregexpeditor/concregexp.cpp12
-rw-r--r--kregexpeditor/concregexp.h4
-rw-r--r--kregexpeditor/concwidget.cpp56
-rw-r--r--kregexpeditor/concwidget.h14
-rw-r--r--kregexpeditor/dcbutton.cpp6
-rw-r--r--kregexpeditor/dcbutton.h8
-rw-r--r--kregexpeditor/dotregexp.cpp6
-rw-r--r--kregexpeditor/dotregexp.h4
-rw-r--r--kregexpeditor/drag.cpp28
-rw-r--r--kregexpeditor/drag.h12
-rw-r--r--kregexpeditor/dragaccepter.cpp22
-rw-r--r--kregexpeditor/dragaccepter.h12
-rw-r--r--kregexpeditor/editorwindow.cpp144
-rw-r--r--kregexpeditor/editorwindow.h44
-rw-r--r--kregexpeditor/emacsregexpconverter.cpp130
-rw-r--r--kregexpeditor/emacsregexpconverter.h20
-rw-r--r--kregexpeditor/errormap.cpp6
-rw-r--r--kregexpeditor/gen_qregexplexer.cpp58
-rw-r--r--kregexpeditor/gen_qregexpparser.cc20
-rw-r--r--kregexpeditor/infopage.cpp24
-rw-r--r--kregexpeditor/infopage.h6
-rw-r--r--kregexpeditor/kregexpeditorgui.cpp64
-rw-r--r--kregexpeditor/kregexpeditorgui.h30
-rw-r--r--kregexpeditor/kregexpeditorprivate.cpp186
-rw-r--r--kregexpeditor/kregexpeditorprivate.h32
-rw-r--r--kregexpeditor/limitedcharlineedit.cpp24
-rw-r--r--kregexpeditor/limitedcharlineedit.h8
-rw-r--r--kregexpeditor/lookaheadregexp.cpp10
-rw-r--r--kregexpeditor/lookaheadregexp.h4
-rw-r--r--kregexpeditor/lookaheadwidget.cpp20
-rw-r--r--kregexpeditor/lookaheadwidget.h16
-rw-r--r--kregexpeditor/main.cpp22
-rw-r--r--kregexpeditor/multicontainerwidget.cpp32
-rw-r--r--kregexpeditor/multicontainerwidget.h10
-rw-r--r--kregexpeditor/myfontmetrics.cpp10
-rw-r--r--kregexpeditor/myfontmetrics.h8
-rw-r--r--kregexpeditor/positionregexp.cpp14
-rw-r--r--kregexpeditor/positionregexp.h4
-rw-r--r--kregexpeditor/qt-only/compat.cpp60
-rw-r--r--kregexpeditor/qt-only/compat.h44
-rw-r--r--kregexpeditor/qtregexpconverter.cpp180
-rw-r--r--kregexpeditor/qtregexpconverter.h24
-rw-r--r--kregexpeditor/qtregexphighlighter.cpp12
-rw-r--r--kregexpeditor/qtregexphighlighter.h8
-rw-r--r--kregexpeditor/regexp.cpp20
-rw-r--r--kregexpeditor/regexp.h18
-rw-r--r--kregexpeditor/regexpbuttons.cpp58
-rw-r--r--kregexpeditor/regexpbuttons.h20
-rw-r--r--kregexpeditor/regexpconverter.cpp16
-rw-r--r--kregexpeditor/regexpconverter.h32
-rw-r--r--kregexpeditor/regexphighlighter.cpp6
-rw-r--r--kregexpeditor/regexphighlighter.h8
-rw-r--r--kregexpeditor/regexpwidget.cpp38
-rw-r--r--kregexpeditor/regexpwidget.h16
-rw-r--r--kregexpeditor/repeatregexp.cpp20
-rw-r--r--kregexpeditor/repeatregexp.h4
-rw-r--r--kregexpeditor/repeatwidget.cpp88
-rw-r--r--kregexpeditor/repeatwidget.h36
-rw-r--r--kregexpeditor/scrollededitorwindow.cpp46
-rw-r--r--kregexpeditor/scrollededitorwindow.h12
-rw-r--r--kregexpeditor/selectablelineedit.cpp26
-rw-r--r--kregexpeditor/selectablelineedit.h8
-rw-r--r--kregexpeditor/singlecontainerwidget.cpp12
-rw-r--r--kregexpeditor/singlecontainerwidget.h8
-rw-r--r--kregexpeditor/test-without-dl/main.cpp24
-rw-r--r--kregexpeditor/textrangeregexp.cpp74
-rw-r--r--kregexpeditor/textrangeregexp.h20
-rw-r--r--kregexpeditor/textregexp.cpp20
-rw-r--r--kregexpeditor/textregexp.h12
-rw-r--r--kregexpeditor/textwidget.cpp42
-rw-r--r--kregexpeditor/textwidget.h16
-rw-r--r--kregexpeditor/userdefinedregexps.cpp114
-rw-r--r--kregexpeditor/userdefinedregexps.h30
-rw-r--r--kregexpeditor/util.cpp16
-rw-r--r--kregexpeditor/util.h10
-rw-r--r--kregexpeditor/verifier.cpp8
-rw-r--r--kregexpeditor/verifier.h6
-rw-r--r--kregexpeditor/verifybuttons.cpp114
-rw-r--r--kregexpeditor/verifybuttons.h28
-rw-r--r--kregexpeditor/widgetfactory.cpp52
-rw-r--r--kregexpeditor/widgetfactory.h10
-rw-r--r--kregexpeditor/zerowidgets.cpp28
-rw-r--r--kregexpeditor/zerowidgets.h22
-rw-r--r--ksim/baselist.h12
-rw-r--r--ksim/generalprefs.cpp274
-rw-r--r--ksim/generalprefs.h124
-rw-r--r--ksim/ksim.cpp12
-rw-r--r--ksim/ksim.h10
-rw-r--r--ksim/ksimframe.cpp10
-rw-r--r--ksim/ksimframe.h24
-rw-r--r--ksim/ksimpref.cpp66
-rw-r--r--ksim/ksimpref.h30
-rw-r--r--ksim/ksimsysinfo.cpp94
-rw-r--r--ksim/ksimsysinfo.h18
-rw-r--r--ksim/ksimview.cpp106
-rw-r--r--ksim/ksimview.h26
-rw-r--r--ksim/library/chart.cpp120
-rw-r--r--ksim/library/chart.h38
-rw-r--r--ksim/library/common.cpp6
-rw-r--r--ksim/library/common.h12
-rw-r--r--ksim/library/ksimconfig.cpp50
-rw-r--r--ksim/library/ksimconfig.h54
-rw-r--r--ksim/library/label.cpp114
-rw-r--r--ksim/library/label.h58
-rw-r--r--ksim/library/led.cpp68
-rw-r--r--ksim/library/led.h22
-rw-r--r--ksim/library/pluginglobal.cpp26
-rw-r--r--ksim/library/pluginglobal.h24
-rw-r--r--ksim/library/pluginloader.cpp48
-rw-r--r--ksim/library/pluginloader.h24
-rw-r--r--ksim/library/pluginmodule.cpp32
-rw-r--r--ksim/library/pluginmodule.h16
-rw-r--r--ksim/library/progress.cpp38
-rw-r--r--ksim/library/progress.h26
-rw-r--r--ksim/library/themeloader.cpp474
-rw-r--r--ksim/library/themeloader.h154
-rw-r--r--ksim/library/themetypes.h8
-rw-r--r--ksim/monitorprefs.cpp22
-rw-r--r--ksim/monitorprefs.h6
-rw-r--r--ksim/monitors/cpu/ksimcpu.cpp112
-rw-r--r--ksim/monitors/cpu/ksimcpu.h40
-rw-r--r--ksim/monitors/disk/ksimdisk.cpp122
-rw-r--r--ksim/monitors/disk/ksimdisk.h40
-rw-r--r--ksim/monitors/filesystem/filesystemstats.cpp16
-rw-r--r--ksim/monitors/filesystem/filesystemstats.h14
-rw-r--r--ksim/monitors/filesystem/filesystemwidget.cpp68
-rw-r--r--ksim/monitors/filesystem/filesystemwidget.h28
-rw-r--r--ksim/monitors/filesystem/fsystemconfig.cpp66
-rw-r--r--ksim/monitors/filesystem/fsystemconfig.h12
-rw-r--r--ksim/monitors/filesystem/ksimfsystem.cpp32
-rw-r--r--ksim/monitors/filesystem/ksimfsystem.h6
-rw-r--r--ksim/monitors/i8k/ksimi8k.cpp40
-rw-r--r--ksim/monitors/i8k/ksimi8k.h10
-rw-r--r--ksim/monitors/lm_sensors/ksimsensors.cpp30
-rw-r--r--ksim/monitors/lm_sensors/ksimsensors.h8
-rw-r--r--ksim/monitors/lm_sensors/ksimsensorsiface.h4
-rw-r--r--ksim/monitors/lm_sensors/sensorbase.cpp70
-rw-r--r--ksim/monitors/lm_sensors/sensorbase.h56
-rw-r--r--ksim/monitors/lm_sensors/sensorsconfig.cpp102
-rw-r--r--ksim/monitors/lm_sensors/sensorsconfig.h16
-rw-r--r--ksim/monitors/mail/ksimmail.cpp22
-rw-r--r--ksim/monitors/mail/ksimmail.h10
-rw-r--r--ksim/monitors/net/ksimnet.cpp90
-rw-r--r--ksim/monitors/net/ksimnet.h18
-rw-r--r--ksim/monitors/net/netconfig.cpp60
-rw-r--r--ksim/monitors/net/netconfig.h22
-rw-r--r--ksim/monitors/net/netdevices.h30
-rw-r--r--ksim/monitors/net/netdialog.cpp126
-rw-r--r--ksim/monitors/net/netdialog.h50
-rw-r--r--ksim/monitors/snmp/browsedialog.cpp34
-rw-r--r--ksim/monitors/snmp/browsedialog.h12
-rw-r--r--ksim/monitors/snmp/chartmonitor.cpp4
-rw-r--r--ksim/monitors/snmp/chartmonitor.h2
-rw-r--r--ksim/monitors/snmp/configpage.cpp78
-rw-r--r--ksim/monitors/snmp/configpage.h24
-rw-r--r--ksim/monitors/snmp/hostconfig.cpp12
-rw-r--r--ksim/monitors/snmp/hostconfig.h22
-rw-r--r--ksim/monitors/snmp/hostdialog.cpp18
-rw-r--r--ksim/monitors/snmp/hostdialog.h8
-rw-r--r--ksim/monitors/snmp/identifier.cpp10
-rw-r--r--ksim/monitors/snmp/identifier.h14
-rw-r--r--ksim/monitors/snmp/labelmonitor.cpp6
-rw-r--r--ksim/monitors/snmp/labelmonitor.h2
-rw-r--r--ksim/monitors/snmp/monitor.cpp26
-rw-r--r--ksim/monitors/snmp/monitor.h10
-rw-r--r--ksim/monitors/snmp/monitorconfig.cpp34
-rw-r--r--ksim/monitors/snmp/monitorconfig.h26
-rw-r--r--ksim/monitors/snmp/monitordialog.cpp24
-rw-r--r--ksim/monitors/snmp/monitordialog.h4
-rw-r--r--ksim/monitors/snmp/probedialog.cpp20
-rw-r--r--ksim/monitors/snmp/probedialog.h8
-rw-r--r--ksim/monitors/snmp/proberesultdialog.cpp8
-rw-r--r--ksim/monitors/snmp/proberesultdialog.h2
-rw-r--r--ksim/monitors/snmp/session.cpp12
-rw-r--r--ksim/monitors/snmp/session.h2
-rw-r--r--ksim/monitors/snmp/snmp.cpp50
-rw-r--r--ksim/monitors/snmp/snmp.h30
-rw-r--r--ksim/monitors/snmp/snmplib.cpp4
-rw-r--r--ksim/monitors/snmp/snmplib.h12
-rw-r--r--ksim/monitors/snmp/value.cpp72
-rw-r--r--ksim/monitors/snmp/value.h14
-rw-r--r--ksim/monitors/snmp/value_p.h6
-rw-r--r--ksim/monitors/snmp/view.cpp10
-rw-r--r--ksim/monitors/snmp/view.h4
-rw-r--r--ksim/monitors/snmp/walker.cpp18
-rw-r--r--ksim/monitors/snmp/walker.h26
-rw-r--r--ksim/themeprefs.cpp88
-rw-r--r--ksim/themeprefs.h28
-rw-r--r--ktimer/ktimer.cpp152
-rw-r--r--ktimer/ktimer.h22
-rw-r--r--kwallet/allyourbase.cpp220
-rw-r--r--kwallet/allyourbase.h82
-rw-r--r--kwallet/kbetterthankdialogbase.ui.h4
-rw-r--r--kwallet/konfigurator/konfigurator.cpp118
-rw-r--r--kwallet/konfigurator/konfigurator.h8
-rw-r--r--kwallet/kwalleteditor.cpp328
-rw-r--r--kwallet/kwalleteditor.h22
-rw-r--r--kwallet/kwalletmanager.cpp140
-rw-r--r--kwallet/kwalletmanager.h26
-rw-r--r--kwallet/kwalletpopup.cpp18
-rw-r--r--kwallet/kwalletpopup.h18
-rw-r--r--kwallet/kwmapeditor.cpp74
-rw-r--r--kwallet/kwmapeditor.h16
-rw-r--r--kwallet/main.cpp8
-rw-r--r--superkaramba/src/bar.cpp10
-rw-r--r--superkaramba/src/bar.h18
-rw-r--r--superkaramba/src/bar_python.cpp2
-rw-r--r--superkaramba/src/clickable.cpp8
-rw-r--r--superkaramba/src/clickable.h20
-rw-r--r--superkaramba/src/clickarea.cpp24
-rw-r--r--superkaramba/src/clickarea.h36
-rw-r--r--superkaramba/src/clickmap.cpp14
-rw-r--r--superkaramba/src/clickmap.h10
-rw-r--r--superkaramba/src/config_python.cpp30
-rw-r--r--superkaramba/src/cpusensor.cpp30
-rw-r--r--superkaramba/src/cpusensor.h8
-rw-r--r--superkaramba/src/datesensor.cpp38
-rw-r--r--superkaramba/src/datesensor.h12
-rw-r--r--superkaramba/src/dcopinterface.h14
-rw-r--r--superkaramba/src/disksensor.cpp102
-rw-r--r--superkaramba/src/disksensor.h26
-rw-r--r--superkaramba/src/graph.cpp6
-rw-r--r--superkaramba/src/graph.h8
-rw-r--r--superkaramba/src/graph_python.cpp2
-rw-r--r--superkaramba/src/imagelabel.cpp102
-rw-r--r--superkaramba/src/imagelabel.h52
-rw-r--r--superkaramba/src/imagelabel_python.cpp12
-rw-r--r--superkaramba/src/input.cpp50
-rw-r--r--superkaramba/src/input.h44
-rw-r--r--superkaramba/src/input_python.cpp28
-rw-r--r--superkaramba/src/karamba.cpp360
-rw-r--r--superkaramba/src/karamba.h130
-rw-r--r--superkaramba/src/karamba_python.cpp8
-rw-r--r--superkaramba/src/karamba_python.h8
-rw-r--r--superkaramba/src/karambaapp.cpp98
-rw-r--r--superkaramba/src/karambaapp.h20
-rw-r--r--superkaramba/src/karambainterface.cpp40
-rw-r--r--superkaramba/src/karambainterface.h16
-rw-r--r--superkaramba/src/karambalistboxitem.cpp2
-rw-r--r--superkaramba/src/karambalistboxitem.h8
-rw-r--r--superkaramba/src/karambarootpixmap.cpp2
-rw-r--r--superkaramba/src/karambarootpixmap.h6
-rw-r--r--superkaramba/src/karambasessionmanaged.cpp14
-rw-r--r--superkaramba/src/kwidgetlistbox.cpp36
-rw-r--r--superkaramba/src/kwidgetlistbox.h24
-rw-r--r--superkaramba/src/lineparser.cpp30
-rw-r--r--superkaramba/src/lineparser.h22
-rw-r--r--superkaramba/src/main.cpp12
-rw-r--r--superkaramba/src/memsensor.cpp66
-rw-r--r--superkaramba/src/memsensor.h12
-rw-r--r--superkaramba/src/menu_python.cpp16
-rw-r--r--superkaramba/src/meter.cpp6
-rw-r--r--superkaramba/src/meter.h44
-rw-r--r--superkaramba/src/meter_python.cpp72
-rw-r--r--superkaramba/src/meter_python.h38
-rw-r--r--superkaramba/src/misc_python.cpp70
-rw-r--r--superkaramba/src/networksensor.cpp24
-rw-r--r--superkaramba/src/networksensor.h12
-rw-r--r--superkaramba/src/noatunsensor.cpp56
-rw-r--r--superkaramba/src/noatunsensor.h14
-rw-r--r--superkaramba/src/programsensor.cpp30
-rw-r--r--superkaramba/src/programsensor.h16
-rw-r--r--superkaramba/src/richtextlabel.cpp42
-rw-r--r--superkaramba/src/richtextlabel.h44
-rw-r--r--superkaramba/src/richtextlabel_python.cpp4
-rw-r--r--superkaramba/src/rsssensor.cpp34
-rw-r--r--superkaramba/src/rsssensor.h14
-rw-r--r--superkaramba/src/sensor.cpp6
-rw-r--r--superkaramba/src/sensor.h16
-rw-r--r--superkaramba/src/sensorparams.cpp4
-rw-r--r--superkaramba/src/sensorparams.h10
-rw-r--r--superkaramba/src/sensorsensor.cpp30
-rw-r--r--superkaramba/src/sensorsensor.h18
-rw-r--r--superkaramba/src/showdesktop.cpp22
-rw-r--r--superkaramba/src/showdesktop.h2
-rw-r--r--superkaramba/src/sklineedit.cpp24
-rw-r--r--superkaramba/src/sklineedit.h28
-rw-r--r--superkaramba/src/sknewstuff.cpp20
-rw-r--r--superkaramba/src/sknewstuff.h6
-rw-r--r--superkaramba/src/svcgrp_python.cpp4
-rw-r--r--superkaramba/src/systemtray.cpp38
-rw-r--r--superkaramba/src/systemtray.h14
-rw-r--r--superkaramba/src/systray_python.cpp6
-rw-r--r--superkaramba/src/task_python.cpp2
-rw-r--r--superkaramba/src/taskbartest.cpp14
-rw-r--r--superkaramba/src/taskmanager.cpp94
-rw-r--r--superkaramba/src/taskmanager.h96
-rw-r--r--superkaramba/src/textfield.cpp28
-rw-r--r--superkaramba/src/textfield.h28
-rw-r--r--superkaramba/src/textfilesensor.cpp34
-rw-r--r--superkaramba/src/textfilesensor.h16
-rw-r--r--superkaramba/src/textlabel.cpp66
-rw-r--r--superkaramba/src/textlabel.h64
-rw-r--r--superkaramba/src/textlabel_python.cpp6
-rw-r--r--superkaramba/src/themefile.cpp86
-rw-r--r--superkaramba/src/themefile.h84
-rw-r--r--superkaramba/src/themelocale.cpp48
-rw-r--r--superkaramba/src/themelocale.h14
-rw-r--r--superkaramba/src/themesdlg.cpp144
-rw-r--r--superkaramba/src/themesdlg.h28
-rw-r--r--superkaramba/src/themewidget.cpp14
-rw-r--r--superkaramba/src/themewidget.h8
-rw-r--r--superkaramba/src/uptimesensor.cpp28
-rw-r--r--superkaramba/src/uptimesensor.h10
-rw-r--r--superkaramba/src/widget_python.cpp10
-rw-r--r--superkaramba/src/xmmssensor.cpp34
-rw-r--r--superkaramba/src/xmmssensor.h10
721 files changed, 16001 insertions, 16001 deletions
diff --git a/ark/ace.cpp b/ark/ace.cpp
index d9cce52..0c8fb14 100644
--- a/ark/ace.cpp
+++ b/ark/ace.cpp
@@ -22,7 +22,7 @@
*/
-#include <qdir.h>
+#include <tqdir.h>
#include <kglobal.h>
#include <klocale.h>
@@ -36,7 +36,7 @@
#include "arkwidget.h"
#include "settings.h"
-AceArch::AceArch( ArkWidget *gui, const QString &filename )
+AceArch::AceArch( ArkWidget *gui, const TQString &filename )
: Arch( gui, filename )
{
//m_archiver_program = m_unarchiver_program = "/usr/local/bin/unace";
@@ -49,14 +49,14 @@ AceArch::AceArch( ArkWidget *gui, const QString &filename )
m_dateCol = 3;
m_numCols = 5;
- m_archCols.append( new ArchColumns( 7, QRegExp( "[0-3][0-9]" ), 2 ) ); // Day
- m_archCols.append( new ArchColumns( 6, QRegExp( "[01][0-9]" ), 2 ) ); // Month
- m_archCols.append( new ArchColumns( 5, QRegExp( "[0-9][0-9]" ), 4 ) ); // Year
- m_archCols.append( new ArchColumns( 8, QRegExp( "[0-9:]+" ), 8 ) ); // Time
- m_archCols.append( new ArchColumns( 2, QRegExp( "[0-9]+" ) ) ); // Compressed Size
- m_archCols.append( new ArchColumns( 1, QRegExp( "[0-9]+" ) ) ); // Size
- m_archCols.append( new ArchColumns( 9, QRegExp( "[0-9][0-9]%" ) ) ); // Ratio
- m_archCols.append( new ArchColumns( 0, QRegExp( "[^\\n]+" ), 4096 ) ); // Name
+ m_archCols.append( new ArchColumns( 7, TQRegExp( "[0-3][0-9]" ), 2 ) ); // Day
+ m_archCols.append( new ArchColumns( 6, TQRegExp( "[01][0-9]" ), 2 ) ); // Month
+ m_archCols.append( new ArchColumns( 5, TQRegExp( "[0-9][0-9]" ), 4 ) ); // Year
+ m_archCols.append( new ArchColumns( 8, TQRegExp( "[0-9:]+" ), 8 ) ); // Time
+ m_archCols.append( new ArchColumns( 2, TQRegExp( "[0-9]+" ) ) ); // Compressed Size
+ m_archCols.append( new ArchColumns( 1, TQRegExp( "[0-9]+" ) ) ); // Size
+ m_archCols.append( new ArchColumns( 9, TQRegExp( "[0-9][0-9]%" ) ) ); // Ratio
+ m_archCols.append( new ArchColumns( 0, TQRegExp( "[^\\n]+" ), 4096 ) ); // Name
}
AceArch::~AceArch()
@@ -89,20 +89,20 @@ void AceArch::open()
kdDebug() << "AceArch::open(): kp->args(): " << kp->args() << endl;
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedTOC(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotOpenExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedTOC(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotOpenExited(KProcess*) ) );
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- this, SLOT( catchMeIfYouCan(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ this, TQT_SLOT( catchMeIfYouCan(KProcess*, char*, int) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
- emit sigOpen( this, false, QString::null, 0 );
+ emit sigOpen( this, false, TQString::null, 0 );
}
}
@@ -112,15 +112,15 @@ void AceArch::create()
Arch::Extract | Arch::View );
}
-void AceArch::addFile( const QStringList & urls )
+void AceArch::addFile( const TQStringList & urls )
{
}
-void AceArch::addDir( const QString & dirName )
+void AceArch::addDir( const TQString & dirName )
{
}
-void AceArch::remove( QStringList *list )
+void AceArch::remove( TQStringList *list )
{
}
@@ -151,19 +151,19 @@ void AceArch::unarchFileInternal( )
// and we then extract everything in the archive.
if ( m_fileList )
{
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = m_fileList->begin(); it != m_fileList->end(); ++it )
{
*kp << (*it);
}
}
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotExtractExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotExtractExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
@@ -174,7 +174,7 @@ void AceArch::unarchFileInternal( )
void AceArch::catchMeIfYouCan( KProcess*, char *buffer, int buflen )
{
- QString myBuf = QString::fromLatin1( buffer, buflen );
+ TQString myBuf = TQString::fromLatin1( buffer, buflen );
kdDebug(1601) << " Wololo!: " << myBuf << endl;
}
diff --git a/ark/ace.h b/ark/ace.h
index 7aed56c..0f22fb1 100644
--- a/ark/ace.h
+++ b/ark/ace.h
@@ -33,16 +33,16 @@ class AceArch : public Arch
{
Q_OBJECT
public:
- AceArch( ArkWidget *, const QString & );
+ AceArch( ArkWidget *, const TQString & );
virtual ~AceArch();
virtual void open();
virtual void create();
- virtual void addFile( const QStringList & );
- virtual void addDir( const QString & );
+ virtual void addFile( const TQStringList & );
+ virtual void addDir( const TQString & );
- virtual void remove( QStringList * );
+ virtual void remove( TQStringList * );
virtual void unarchFileInternal( );
private slots:
diff --git a/ark/ar.cpp b/ark/ar.cpp
index 71f44e0..d71a2a0 100644
--- a/ark/ar.cpp
+++ b/ark/ar.cpp
@@ -32,7 +32,7 @@
#include <string.h>
// QT includes
-#include <qdir.h>
+#include <tqdir.h>
// KDE includes
#include <kdebug.h>
@@ -45,7 +45,7 @@
#include "settings.h"
#include "ar.h"
-ArArch::ArArch( ArkWidget *_gui, const QString & _fileName )
+ArArch::ArArch( ArkWidget *_gui, const TQString & _fileName )
: Arch(_gui, _fileName )
{
m_archiver_program = m_unarchiver_program = "ar";
@@ -56,14 +56,14 @@ ArArch::ArArch( ArkWidget *_gui, const QString & _fileName )
m_numCols = 5;
m_dateCol = 4; m_fixYear = 8; m_repairMonth = 5; m_fixDay = 6; m_fixTime = 7;
- m_archCols.append(new ArchColumns(1, QRegExp("[a-zA-Z-]+"), 12)); // Perms
- m_archCols.append(new ArchColumns(2, QRegExp("[^\\s]+"), 128)); //User/grp
- m_archCols.append(new ArchColumns(3, QRegExp("[0-9]+"))); // Size
- m_archCols.append(new ArchColumns(5, QRegExp("[a-zA-Z]+"), 4)); // Month
- m_archCols.append(new ArchColumns(6, QRegExp("[0-9]+"), 2)); // Day
- m_archCols.append(new ArchColumns(7, QRegExp("[0-9:]+"), 6)); // Time
- m_archCols.append(new ArchColumns(8, QRegExp("[0-9]+"), 5)); // Year
- m_archCols.append(new ArchColumns(0, QRegExp("[^\\s][^\\n]+"), 4096));// File
+ m_archCols.append(new ArchColumns(1, TQRegExp("[a-zA-Z-]+"), 12)); // Perms
+ m_archCols.append(new ArchColumns(2, TQRegExp("[^\\s]+"), 128)); //User/grp
+ m_archCols.append(new ArchColumns(3, TQRegExp("[0-9]+"))); // Size
+ m_archCols.append(new ArchColumns(5, TQRegExp("[a-zA-Z]+"), 4)); // Month
+ m_archCols.append(new ArchColumns(6, TQRegExp("[0-9]+"), 2)); // Day
+ m_archCols.append(new ArchColumns(7, TQRegExp("[0-9:]+"), 6)); // Time
+ m_archCols.append(new ArchColumns(8, TQRegExp("[0-9]+"), 5)); // Year
+ m_archCols.append(new ArchColumns(0, TQRegExp("[^\\s][^\\n]+"), 4096));// File
kdDebug(1601) << "ArArch constructor" << endl;
}
@@ -89,18 +89,18 @@ void ArArch::open()
KProcess *kp = m_currentProcess = new KProcess;
*kp << m_archiver_program << "vt" << m_filename;
- connect( kp, SIGNAL(receivedStdout(KProcess*, char*, int)),
- this, SLOT(slotReceivedTOC(KProcess*, char*, int)));
- connect( kp, SIGNAL(receivedStderr(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedTOC(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect( kp, SIGNAL(processExited(KProcess*)), this,
- SLOT(slotOpenExited(KProcess*)));
+ connect( kp, TQT_SIGNAL(processExited(KProcess*)), this,
+ TQT_SLOT(slotOpenExited(KProcess*)));
if (kp->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false)
{
KMessageBox::error( 0, i18n("Could not start a subprocess.") );
- emit sigOpen(this, false, QString::null, 0 );
+ emit sigOpen(this, false, TQString::null, 0 );
}
kdDebug(1601) << "-ArArch::open" << endl;
}
@@ -111,10 +111,10 @@ void ArArch::create()
kp->clearArguments();
*kp << m_archiver_program << "c" << m_filename;
- connect( kp, SIGNAL(receivedStdout(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect( kp, SIGNAL(receivedStderr(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
if (kp->start(KProcess::Block) == false)
{
@@ -129,7 +129,7 @@ void ArArch::create()
| Arch::View);
}
-void ArArch::addFile( const QStringList &urls )
+void ArArch::addFile( const TQStringList &urls )
{
kdDebug(1601) << "+ArArch::addFile" << endl;
KProcess *kp = m_currentProcess = new KProcess;
@@ -143,22 +143,22 @@ void ArArch::addFile( const QStringList &urls )
*kp << m_filename;
- QStringList::ConstIterator iter;
+ TQStringList::ConstIterator iter;
KURL url( urls.first() );
- QDir::setCurrent( url.directory() );
+ TQDir::setCurrent( url.directory() );
for (iter = urls.begin(); iter != urls.end(); ++iter )
{
KURL fileURL( *iter );
*kp << fileURL.fileName();
}
- connect( kp, SIGNAL(receivedStdout(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect( kp, SIGNAL(receivedStderr(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect( kp, SIGNAL(processExited(KProcess*)), this,
- SLOT(slotAddExited(KProcess*)));
+ connect( kp, TQT_SIGNAL(processExited(KProcess*)), this,
+ TQT_SLOT(slotAddExited(KProcess*)));
if (kp->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false)
{
@@ -175,7 +175,7 @@ void ArArch::unarchFileInternal()
// if m_destDir is empty, abort with error.
kdDebug(1601) << "+ArArch::unarchFile" << endl;
- QString dest;
+ TQString dest;
if (m_destDir.isEmpty() || m_destDir.isNull())
{
@@ -187,7 +187,7 @@ void ArArch::unarchFileInternal()
// ar has no option to specify the destination directory
// so I have to change to it.
- bool ret = QDir::setCurrent(dest);
+ bool ret = TQDir::setCurrent(dest);
// I already checked the validity of the dir before coming here
Q_ASSERT(ret);
@@ -202,20 +202,20 @@ void ArArch::unarchFileInternal()
// and we then extract everything in the archive.
if (m_fileList)
{
- for ( QStringList::Iterator it = m_fileList->begin();
+ for ( TQStringList::Iterator it = m_fileList->begin();
it != m_fileList->end(); ++it )
{
*kp << (*it);
}
}
- connect( kp, SIGNAL(receivedStdout(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect( kp, SIGNAL(receivedStderr(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect( kp, SIGNAL(processExited(KProcess*)), this,
- SLOT(slotExtractExited(KProcess*)));
+ connect( kp, TQT_SIGNAL(processExited(KProcess*)), this,
+ TQT_SLOT(slotExtractExited(KProcess*)));
if (kp->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false)
{
@@ -224,7 +224,7 @@ void ArArch::unarchFileInternal()
}
}
-void ArArch::remove(QStringList *list)
+void ArArch::remove(TQStringList *list)
{
kdDebug(1601) << "+ArArch::remove" << endl;
@@ -235,20 +235,20 @@ void ArArch::remove(QStringList *list)
kp->clearArguments();
*kp << m_archiver_program << "d" << m_filename;
- for ( QStringList::Iterator it = list->begin();
+ for ( TQStringList::Iterator it = list->begin();
it != list->end(); ++it )
{
- QString str = *it;
+ TQString str = *it;
*kp << str;
}
- connect( kp, SIGNAL(receivedStdout(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect( kp, SIGNAL(receivedStderr(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect( kp, SIGNAL(processExited(KProcess*)), this,
- SLOT(slotDeleteExited(KProcess*)));
+ connect( kp, TQT_SIGNAL(processExited(KProcess*)), this,
+ TQT_SLOT(slotDeleteExited(KProcess*)));
if (kp->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false)
{
diff --git a/ark/ar.h b/ark/ar.h
index 1a5f00f..48dc156 100644
--- a/ark/ar.h
+++ b/ark/ar.h
@@ -42,16 +42,16 @@ class ArArch : public Arch
Q_OBJECT
public:
ArArch( ArkWidget *_gui,
- const QString & _fileName );
+ const TQString & _fileName );
virtual ~ArArch() {}
virtual void open();
virtual void create();
- virtual void addFile( const QStringList & );
- virtual void addDir(const QString &) {} // never gets called
+ virtual void addFile( const TQStringList & );
+ virtual void addDir(const TQString &) {} // never gets called
- virtual void remove(QStringList *);
+ virtual void remove(TQStringList *);
virtual void unarchFileInternal();
private:
diff --git a/ark/arch.cpp b/ark/arch.cpp
index 1916e12..a08484c 100644
--- a/ark/arch.cpp
+++ b/ark/arch.cpp
@@ -31,8 +31,8 @@
#include <time.h>
// QT includes
-#include <qapplication.h>
-#include <qfile.h>
+#include <tqapplication.h>
+#include <tqfile.h>
// KDE includes
#include <kdebug.h>
@@ -60,12 +60,12 @@
#include "sevenzip.h"
#include "ace.h"
-Arch::ArchColumns::ArchColumns( int col, QRegExp reg, int length, bool opt )
+Arch::ArchColumns::ArchColumns( int col, TQRegExp reg, int length, bool opt )
: colRef( col ), pattern( reg ), maxLength( length ), optional( opt )
{
}
-Arch::Arch( ArkWidget *gui, const QString &filename )
+Arch::Arch( ArkWidget *gui, const TQString &filename )
: m_filename( filename ), m_buffer( "" ), m_gui( gui ),
m_bReadOnly( false ), m_bNotifyWhenDeleteFails( true ),
m_header_removed( false ), m_finished( false ),
@@ -83,18 +83,18 @@ Arch::~Arch()
}
//Check if a compress utility exists
-void Arch::verifyCompressUtilityIsAvailable( const QString &utility )
+void Arch::verifyCompressUtilityIsAvailable( const TQString &utility )
{
// see if the utility is in the PATH of the user.
- QString cmd = KGlobal::dirs()->findExe( utility );
+ TQString cmd = KGlobal::dirs()->findExe( utility );
m_bArchUtilityIsAvailable = !cmd.isEmpty();
}
//Check if a utility can uncompress files
-void Arch::verifyUncompressUtilityIsAvailable( const QString &utility )
+void Arch::verifyUncompressUtilityIsAvailable( const TQString &utility )
{
// see if the utility is in the PATH of the user.
- QString cmd = KGlobal::dirs()->findExe( utility );
+ TQString cmd = KGlobal::dirs()->findExe( utility );
m_bUnarchUtilityIsAvailable = !cmd.isEmpty();
}
@@ -106,7 +106,7 @@ void Arch::slotOpenExited( KProcess* _kp )
{
if ( passwordRequired() )
{
- QString msg;
+ TQString msg;
if ( !m_password.isEmpty() )
msg = i18n("The password was incorrect. ");
if (KPasswordDialog::getPassword( m_password, msg+i18n("You must enter a password to open the file:") ) == KPasswordDialog::Accepted )
@@ -118,7 +118,7 @@ void Arch::slotOpenExited( KProcess* _kp )
return;
}
m_password = "";
- emit sigOpen( this, false, QString::null, 0 );
+ emit sigOpen( this, false, TQString::null, 0 );
delete _kp;
_kp = m_currentProcess = 0;
return;
@@ -140,7 +140,7 @@ void Arch::slotOpenExited( KProcess* _kp )
emit sigOpen( this, true, m_filename,
Arch::Extract | Arch::Delete | Arch::Add | Arch::View );
else
- emit sigOpen( this, false, QString::null, 0 );
+ emit sigOpen( this, false, TQString::null, 0 );
delete _kp;
_kp = m_currentProcess = 0;
@@ -152,13 +152,13 @@ void Arch::slotDeleteExited( KProcess *_kp )
if ( !success )
{
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
- QString msg = i18n( "The deletion operation failed." );
+ TQString msg = i18n( "The deletion operation failed." );
if ( !getLastShellOutput().isNull() )
{
- QStringList list = QStringList::split( "\n", getLastShellOutput() );
+ TQStringList list = TQStringList::split( "\n", getLastShellOutput() );
KMessageBox::errorList( m_gui, msg, list );
clearShellOutput();
}
@@ -181,7 +181,7 @@ void Arch::slotExtractExited( KProcess *_kp )
{
if ( passwordRequired() )
{
- QString msg;
+ TQString msg;
if ( !m_password.isEmpty() )
msg = i18n("The password was incorrect. ");
if (KPasswordDialog::getPassword( m_password, msg+i18n("You must enter a password to extract the file:") ) == KPasswordDialog::Accepted )
@@ -200,14 +200,14 @@ void Arch::slotExtractExited( KProcess *_kp )
}
else if ( m_password.isEmpty() || _kp->exitStatus() > 1 )
{
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
- QString msg = i18n( "The extraction operation failed." );
+ TQString msg = i18n( "The extraction operation failed." );
if ( !getLastShellOutput().isNull() )
{
- //getLastShellOutput() is a QString. errorList is expecting QStringLists to show in multiple lines
- QStringList list = QStringList::split( "\n", getLastShellOutput() );
+ //getLastShellOutput() is a TQString. errorList is expecting QStringLists to show in multiple lines
+ TQStringList list = TQStringList::split( "\n", getLastShellOutput() );
KMessageBox::errorList( m_gui, msg, list );
clearShellOutput();
}
@@ -223,7 +223,7 @@ void Arch::slotExtractExited( KProcess *_kp )
emit sigExtract( success );
}
-void Arch::unarchFile( QStringList *fileList, const QString & destDir,
+void Arch::unarchFile( TQStringList *fileList, const TQString & destDir,
bool viewFriendly )
{
m_fileList = fileList;
@@ -238,13 +238,13 @@ void Arch::slotAddExited( KProcess *_kp )
if( !success )
{
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
- QString msg = i18n( "The addition operation failed." );
+ TQString msg = i18n( "The addition operation failed." );
if ( !getLastShellOutput().isNull() )
{
- QStringList list = QStringList::split( "\n", getLastShellOutput() );
+ TQStringList list = TQStringList::split( "\n", getLastShellOutput() );
KMessageBox::errorList( m_gui, msg, list );
clearShellOutput();
}
@@ -288,7 +288,7 @@ void Arch::slotReceivedTOC( KProcess*, char* data, int length )
data[ lfChar ] = '\0';
- m_buffer.append( QString::fromUtf8(data + startChar).latin1() );
+ m_buffer.append( TQString::fromUtf8(data + startChar).latin1() );
data[ lfChar ] = '\n';
startChar = lfChar + 1;
@@ -327,14 +327,14 @@ void Arch::slotReceivedTOC( KProcess*, char* data, int length )
data[ length ] = c;
}
-bool Arch::processLine( const QCString &line )
+bool Arch::processLine( const TQCString &line )
{
- QString columns[ 11 ];
+ TQString columns[ 11 ];
unsigned int pos = 0;
int strpos, len;
// Go through our columns, try to pick out data, return silently on failure
- for ( QPtrListIterator <ArchColumns>col( m_archCols ); col.current(); ++col )
+ for ( TQPtrListIterator <ArchColumns>col( m_archCols ); col.current(); ++col )
{
ArchColumns *curCol = *col;
@@ -354,20 +354,20 @@ bool Arch::processLine( const QCString &line )
pos = strpos + len;
- columns[curCol->colRef] = QString::fromLocal8Bit( line.mid(strpos, len) );
+ columns[curCol->colRef] = TQString::fromLocal8Bit( line.mid(strpos, len) );
}
if ( m_dateCol >= 0 )
{
- QString year = ( m_repairYear >= 0 ) ?
+ TQString year = ( m_repairYear >= 0 ) ?
ArkUtils::fixYear( columns[ m_repairYear ].ascii())
: columns[ m_fixYear ];
- QString month = ( m_repairMonth >= 0 ) ?
- QString( "%1" )
+ TQString month = ( m_repairMonth >= 0 ) ?
+ TQString( "%1" )
.arg( ArkUtils::getMonth( columns[ m_repairMonth ].ascii() ) )
: columns[ m_fixMonth ];
- QString timestamp = QString::fromLatin1( "%1-%2-%3 %4" )
+ TQString timestamp = TQString::fromLatin1( "%1-%2-%3 %4" )
.arg( year )
.arg( month )
.arg( columns[ m_fixDay ] )
@@ -376,7 +376,7 @@ bool Arch::processLine( const QCString &line )
columns[ m_dateCol ] = timestamp;
}
- QStringList list;
+ TQStringList list;
for ( int i = 0; i < m_numCols; ++i )
{
@@ -390,8 +390,8 @@ bool Arch::processLine( const QCString &line )
Arch *Arch::archFactory( ArchType aType,
- ArkWidget *parent, const QString &filename,
- const QString &openAsMimeType )
+ ArkWidget *parent, const TQString &filename,
+ const TQString &openAsMimeType )
{
switch( aType )
{
diff --git a/ark/arch.h b/ark/arch.h
index 1a38a2c..4f226f9 100644
--- a/ark/arch.h
+++ b/ark/arch.h
@@ -49,12 +49,12 @@
#ifndef ARCH_H
#define ARCH_H
-#include <qobject.h>
-#include <qptrlist.h> // Some very annoying hackery in arkwidgetpart
-#include <qregexp.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqptrlist.h> // Some very annoying hackery in arkwidgetpart
+#include <tqregexp.h>
+#include <tqstring.h>
#include <kurl.h>
-#include <qpair.h>
+#include <tqpair.h>
class QCString;
class QStringList;
@@ -67,7 +67,7 @@ enum ArchType { UNKNOWN_FORMAT, ZIP_FORMAT, TAR_FORMAT, AA_FORMAT,
LHA_FORMAT, RAR_FORMAT, ZOO_FORMAT, COMPRESSED_FORMAT,
SEVENZIP_FORMAT, ACE_FORMAT };
-typedef QValueList< QPair< QString, Qt::AlignmentFlags > > ColumnList;
+typedef TQValueList< QPair< TQString, Qt::AlignmentFlags > > ColumnList;
/**
* Pure virtual base class for archives - provides a framework as well as
@@ -86,23 +86,23 @@ class Arch : public QObject
struct ArchColumns
{
int colRef; // Which column to load to in processLine
- QRegExp pattern;
+ TQRegExp pattern;
int maxLength;
bool optional;
- ArchColumns( int col, QRegExp reg, int length = 64, bool opt = false );
+ ArchColumns( int col, TQRegExp reg, int length = 64, bool opt = false );
};
public:
- Arch( ArkWidget *_viewer, const QString & _fileName );
+ Arch( ArkWidget *_viewer, const TQString & _fileName );
virtual ~Arch();
virtual void open() = 0;
virtual void create() = 0;
- virtual void remove( QStringList * ) = 0;
+ virtual void remove( TQStringList * ) = 0;
- virtual void addFile( const QStringList & ) = 0;
- virtual void addDir( const QString & ) = 0;
+ virtual void addFile( const TQStringList & ) = 0;
+ virtual void addDir( const TQString & ) = 0;
// unarch the files in m_fileList or all files if m_fileList is empty.
// if m_destDir is empty, abort with error.
@@ -111,10 +111,10 @@ class Arch : public QObject
// returns true if a password is required
virtual bool passwordRequired() { return false; }
- void unarchFile( QStringList *, const QString & _destDir,
+ void unarchFile( TQStringList *, const TQString & _destDir,
bool viewFriendly = false );
- QString fileName() const { return m_filename; }
+ TQString fileName() const { return m_filename; }
enum EditProperties{ Add = 1, Delete = 2, Extract = 4,
View = 8, Integrity = 16 };
@@ -127,28 +127,28 @@ class Arch : public QObject
void resetError() { m_error = false; }
// check to see if the utility exists in the PATH of the user
- void verifyUtilityIsAvailable( const QString &,
- const QString & = QString::null );
+ void verifyUtilityIsAvailable( const TQString &,
+ const TQString & = TQString::null );
- void verifyCompressUtilityIsAvailable( const QString &utility );
+ void verifyCompressUtilityIsAvailable( const TQString &utility );
- void verifyUncompressUtilityIsAvailable( const QString &utility );
+ void verifyUncompressUtilityIsAvailable( const TQString &utility );
bool archUtilityIsAvailable() { return m_bArchUtilityIsAvailable; }
bool unarchUtilityIsAvailable() { return m_bUnarchUtilityIsAvailable; }
- QString getArchUtility() { return m_archiver_program; }
+ TQString getArchUtility() { return m_archiver_program; }
- QString getUnarchUtility() { return m_unarchiver_program; }
+ TQString getUnarchUtility() { return m_unarchiver_program; }
- void appendShellOutputData( const char * data ) { m_lastShellOutput.append( QString::fromLocal8Bit( data ) ); }
+ void appendShellOutputData( const char * data ) { m_lastShellOutput.append( TQString::fromLocal8Bit( data ) ); }
void clearShellOutput() { m_lastShellOutput.truncate( 0 ); }
- const QString& getLastShellOutput() const { return m_lastShellOutput; }
+ const TQString& getLastShellOutput() const { return m_lastShellOutput; }
static Arch *archFactory( ArchType aType, ArkWidget *parent,
- const QString &filename,
- const QString &openAsMimeType = QString::null );
+ const TQString &filename,
+ const TQString &openAsMimeType = TQString::null );
protected slots:
void slotOpenExited( KProcess* );
@@ -158,21 +158,21 @@ class Arch : public QObject
void slotReceivedOutput( KProcess *, char*, int );
- virtual bool processLine( const QCString &line );
+ virtual bool processLine( const TQCString &line );
virtual void slotReceivedTOC( KProcess *, char *, int );
signals:
- void sigOpen( Arch * archive, bool success, const QString &filename, int );
- void sigCreate( Arch *, bool, const QString &, int );
+ void sigOpen( Arch * archive, bool success, const TQString &filename, int );
+ void sigCreate( Arch *, bool, const TQString &, int );
void sigDelete( bool );
void sigExtract( bool );
void sigAdd( bool );
void headers( const ColumnList& columns );
protected: // data
- QString m_filename;
- QString m_lastShellOutput;
- QCString m_buffer;
+ TQString m_filename;
+ TQString m_lastShellOutput;
+ TQCString m_buffer;
ArkWidget *m_gui;
bool m_bReadOnly; // for readonly archives
bool m_error;
@@ -186,20 +186,20 @@ class Arch : public QObject
// set to whether if the uncompressing utility is in the user's PATH
bool m_bUnarchUtilityIsAvailable;
- QString m_archiver_program;
- QString m_unarchiver_program;
+ TQString m_archiver_program;
+ TQString m_unarchiver_program;
// Archive parsing information
- QCString m_headerString;
+ TQCString m_headerString;
bool m_header_removed, m_finished;
- QPtrList<ArchColumns> m_archCols;
+ TQPtrList<ArchColumns> m_archCols;
int m_numCols, m_dateCol, m_fixYear, m_fixMonth, m_fixDay, m_fixTime;
int m_repairYear, m_repairMonth, m_repairTime;
KProcess *m_currentProcess;
- QStringList *m_fileList;
- QString m_destDir;
+ TQStringList *m_fileList;
+ TQString m_destDir;
bool m_viewFriendly;
- QCString m_password;
+ TQCString m_password;
};
// Columns
diff --git a/ark/archiveformatdlg.cpp b/ark/archiveformatdlg.cpp
index be046fb..5ac942c 100644
--- a/ark/archiveformatdlg.cpp
+++ b/ark/archiveformatdlg.cpp
@@ -25,17 +25,17 @@
#include <klocale.h>
-#include <qlabel.h>
-#include <qvbox.h>
+#include <tqlabel.h>
+#include <tqvbox.h>
-ArchiveFormatDlg::ArchiveFormatDlg( QWidget * parent, const QString & defaultType )
+ArchiveFormatDlg::ArchiveFormatDlg( TQWidget * parent, const TQString & defaultType )
:KDialogBase( parent, "archiveformatdialog", true,
i18n( "Choose Archive Format" ),
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok),
m_combo( 0 )
{
- QString defaultDescription = ArchiveFormatInfo::self()->descriptionForMimeType( defaultType );
- QString text;
+ TQString defaultDescription = ArchiveFormatInfo::self()->descriptionForMimeType( defaultType );
+ TQString text;
if ( defaultDescription.isNull() )
text = i18n( "This file appears to be of type %1,\n"
"which is not a supported archive format.\n"
@@ -47,24 +47,24 @@ ArchiveFormatDlg::ArchiveFormatDlg( QWidget * parent, const QString & defaultTyp
"If this is not correct, please choose "
"the appropriate format." ).arg( defaultDescription );
- QVBox * page = makeVBoxMainWidget();
+ TQVBox * page = makeVBoxMainWidget();
- QLabel * label;
- label = new QLabel( text, page );
+ TQLabel * label;
+ label = new TQLabel( text, page );
m_combo = new KComboBox( page );
- QStringList list = ArchiveFormatInfo::self()->allDescriptions();
+ TQStringList list = ArchiveFormatInfo::self()->allDescriptions();
list.sort();
m_combo->insertStringList( list );
m_combo->setCurrentItem( list.findIndex( defaultDescription ) );
}
-QString ArchiveFormatDlg::mimeType()
+TQString ArchiveFormatDlg::mimeType()
{
if (m_combo && !m_combo->currentText().isEmpty())
return ArchiveFormatInfo::self()->mimeTypeForDescription( m_combo->currentText() );
else
- return QString();
+ return TQString();
}
#include "archiveformatdlg.moc"
diff --git a/ark/archiveformatdlg.h b/ark/archiveformatdlg.h
index c8a2e46..6ef2302 100644
--- a/ark/archiveformatdlg.h
+++ b/ark/archiveformatdlg.h
@@ -29,8 +29,8 @@ class ArchiveFormatDlg: public KDialogBase
{
Q_OBJECT
public:
- ArchiveFormatDlg( QWidget * parent, const QString & defaultType );
- QString mimeType();
+ ArchiveFormatDlg( TQWidget * parent, const TQString & defaultType );
+ TQString mimeType();
private:
KComboBox * m_combo;
diff --git a/ark/archiveformatinfo.cpp b/ark/archiveformatinfo.cpp
index f2ac14d..4d7eda6 100644
--- a/ark/archiveformatinfo.cpp
+++ b/ark/archiveformatinfo.cpp
@@ -29,7 +29,7 @@
#include <kdesktopfile.h>
#include <kfilterdev.h>
-#include <qfile.h>
+#include <tqfile.h>
ArchiveFormatInfo * ArchiveFormatInfo::m_pSelf = 0;
@@ -83,7 +83,7 @@ void ArchiveFormatInfo::buildFormatInfos()
addFormatInfo( ACE_FORMAT, "application/x-ace", ".ace" );
}
-void ArchiveFormatInfo::addFormatInfo( ArchType type, QString mime, QString stdExt )
+void ArchiveFormatInfo::addFormatInfo( ArchType type, TQString mime, TQString stdExt )
{
FormatInfo & info = find( type );
@@ -101,10 +101,10 @@ void ArchiveFormatInfo::addFormatInfo( ArchType type, QString mime, QString stdE
}
-QString ArchiveFormatInfo::filter()
+TQString ArchiveFormatInfo::filter()
{
- QStringList allExtensions;
- QString filter;
+ TQStringList allExtensions;
+ TQString filter;
InfoList::Iterator it;
for ( it = m_formatInfos.begin(); it != m_formatInfos.end(); ++it )
{
@@ -116,9 +116,9 @@ QString ArchiveFormatInfo::filter()
+ filter;
}
-const QStringList ArchiveFormatInfo::supportedMimeTypes( bool includeCompressed )
+const TQStringList ArchiveFormatInfo::supportedMimeTypes( bool includeCompressed )
{
- QStringList list;
+ TQStringList list;
InfoList::Iterator end = m_formatInfos.end();
for ( InfoList::Iterator it = m_formatInfos.begin(); it != end; ++it )
@@ -132,9 +132,9 @@ const QStringList ArchiveFormatInfo::supportedMimeTypes( bool includeCompressed
return list;
}
-QStringList ArchiveFormatInfo::allDescriptions()
+TQStringList ArchiveFormatInfo::allDescriptions()
{
- QStringList descriptions;
+ TQStringList descriptions;
InfoList::Iterator it;
for ( it = m_formatInfos.begin(); it != m_formatInfos.end(); ++it )
descriptions += (*it).allDescriptions;
@@ -153,10 +153,10 @@ ArchiveFormatInfo::FormatInfo & ArchiveFormatInfo::find( ArchType type )
return ( *m_formatInfos.append( info ) );
}
-ArchType ArchiveFormatInfo::archTypeByExtension( const QString & archname )
+ArchType ArchiveFormatInfo::archTypeByExtension( const TQString & archname )
{
InfoList::Iterator it = m_formatInfos.begin();
- QStringList::Iterator ext;
+ TQStringList::Iterator ext;
for( ; it != m_formatInfos.end(); ++it )
{
ext = (*it).extensions.begin();
@@ -167,7 +167,7 @@ ArchType ArchiveFormatInfo::archTypeByExtension( const QString & archname )
return UNKNOWN_FORMAT;
}
-ArchType ArchiveFormatInfo::archTypeForMimeType( const QString & mimeType )
+ArchType ArchiveFormatInfo::archTypeForMimeType( const TQString & mimeType )
{
InfoList::Iterator it = m_formatInfos.begin();
for( ; it != m_formatInfos.end(); ++it )
@@ -186,10 +186,10 @@ ArchType ArchiveFormatInfo::archTypeForURL( const KURL & url )
if( url.isEmpty() )
return UNKNOWN_FORMAT;
- if( !QFile::exists( url.path() ) )
+ if( !TQFile::exists( url.path() ) )
return archTypeByExtension( url.path() );
- QString mimeType = KMimeType::findByURL( url, 0, true, true )->name();
+ TQString mimeType = KMimeType::findByURL( url, 0, true, true )->name();
kdDebug( 1601 ) << "find by url: " << mimeType << endl;
if( mimeType == KMimeType::defaultMimeType() )
{
@@ -205,13 +205,13 @@ ArchType ArchiveFormatInfo::archTypeForURL( const KURL & url )
}
-QString ArchiveFormatInfo::findMimeType( const KURL & url )
+TQString ArchiveFormatInfo::findMimeType( const KURL & url )
{
- QString mimeType = KMimeType::findByURL( url )->name();
+ TQString mimeType = KMimeType::findByURL( url )->name();
if ( mimeType != "application/x-bzip2" && mimeType != "application/x-gzip" )
return mimeType;
- QIODevice * dev = KFilterDev::deviceForFile( url.path(), mimeType );
+ TQIODevice * dev = KFilterDev::deviceForFile( url.path(), mimeType );
if ( !dev )
return mimeType;
@@ -232,7 +232,7 @@ QString ArchiveFormatInfo::findMimeType( const KURL & url )
return mimeType;
}
-QString ArchiveFormatInfo::mimeTypeForDescription( const QString & description )
+TQString ArchiveFormatInfo::mimeTypeForDescription( const TQString & description )
{
InfoList::Iterator it = m_formatInfos.begin();
int index;
@@ -242,10 +242,10 @@ QString ArchiveFormatInfo::mimeTypeForDescription( const QString & description )
if ( index != -1 )
return (* (*it).mimeTypes.at( index ) );
}
- return QString::null;
+ return TQString::null;
}
-QString ArchiveFormatInfo::descriptionForMimeType( const QString & mimeType )
+TQString ArchiveFormatInfo::descriptionForMimeType( const TQString & mimeType )
{
InfoList::Iterator it = m_formatInfos.begin();
int index;
@@ -255,10 +255,10 @@ QString ArchiveFormatInfo::descriptionForMimeType( const QString & mimeType )
if ( index != -1 )
return (* (*it).allDescriptions.at( index ) );
}
- return QString::null;
+ return TQString::null;
}
-QString ArchiveFormatInfo::defaultExtension( const QString & mimeType )
+TQString ArchiveFormatInfo::defaultExtension( const TQString & mimeType )
{
InfoList::Iterator it = m_formatInfos.begin();
int index;
@@ -268,7 +268,7 @@ QString ArchiveFormatInfo::defaultExtension( const QString & mimeType )
if ( index != -1 )
return (* (*it).defaultExtensions.at( index ) );
}
- return QString::null;
+ return TQString::null;
}
bool ArchiveFormatInfo::wasUnknownExtension()
diff --git a/ark/archiveformatinfo.h b/ark/archiveformatinfo.h
index 5682a11..5ba5ef3 100644
--- a/ark/archiveformatinfo.h
+++ b/ark/archiveformatinfo.h
@@ -33,35 +33,35 @@ private:
public:
static ArchiveFormatInfo * self();
- QString filter();
- const QStringList supportedMimeTypes( bool includeCompressed = true );
- QStringList allDescriptions();
- ArchType archTypeForMimeType( const QString & mimeType );
- ArchType archTypeByExtension( const QString & archname );
+ TQString filter();
+ const TQStringList supportedMimeTypes( bool includeCompressed = true );
+ TQStringList allDescriptions();
+ ArchType archTypeForMimeType( const TQString & mimeType );
+ ArchType archTypeByExtension( const TQString & archname );
ArchType archTypeForURL( const KURL & url );
- QString mimeTypeForDescription( const QString & description );
- QString findMimeType( const KURL & url );
- QString descriptionForMimeType( const QString & mimeType );
- QString defaultExtension( const QString & mimeType );
+ TQString mimeTypeForDescription( const TQString & description );
+ TQString findMimeType( const KURL & url );
+ TQString descriptionForMimeType( const TQString & mimeType );
+ TQString defaultExtension( const TQString & mimeType );
bool wasUnknownExtension();
private:
void buildFormatInfos();
- void addFormatInfo( ArchType type, QString mime, QString stdExt );
+ void addFormatInfo( ArchType type, TQString mime, TQString stdExt );
struct FormatInfo
{
- QStringList extensions;
- QStringList mimeTypes;
- QStringList allDescriptions;
- QStringList defaultExtensions;
- QString description;
+ TQStringList extensions;
+ TQStringList mimeTypes;
+ TQStringList allDescriptions;
+ TQStringList defaultExtensions;
+ TQString description;
enum ArchType type;
};
FormatInfo & find ( ArchType type );
- typedef QValueList<FormatInfo> InfoList;
+ typedef TQValueList<FormatInfo> InfoList;
InfoList m_formatInfos;
bool m_lastExtensionUnknown;
diff --git a/ark/ark_part.cpp b/ark/ark_part.cpp
index a574217..60e7ff0 100644
--- a/ark/ark_part.cpp
+++ b/ark/ark_part.cpp
@@ -39,8 +39,8 @@
#include <kpushbutton.h>
#include <ksqueezedtextlabel.h>
-#include <qfile.h>
-#include <qtimer.h>
+#include <tqfile.h>
+#include <tqtimer.h>
KAboutData *ArkPart::createAboutData()
{
@@ -63,8 +63,8 @@ KAboutData *ArkPart::createAboutData()
-ArkPart::ArkPart( QWidget *parentWidget, const char * /*widgetName*/, QObject *parent,
- const char *name, const QStringList &, bool readWrite )
+ArkPart::ArkPart( TQWidget *parentWidget, const char * /*widgetName*/, TQObject *parent,
+ const char *name, const TQStringList &, bool readWrite )
: KParts::ReadWritePart(parent, name)
{
kdDebug(1601)<<"ArkPart::ArkPart"<<endl;
@@ -72,12 +72,12 @@ ArkPart::ArkPart( QWidget *parentWidget, const char * /*widgetName*/, QObject *p
awidget = new ArkWidget( parentWidget, "ArkWidget" );
setWidget(awidget);
- connect( awidget, SIGNAL( fixActions() ), this, SLOT( fixEnables() ) );
- connect( awidget, SIGNAL( disableAllActions() ), this, SLOT( disableActions() ) );
- connect( awidget, SIGNAL( signalFilePopup( const QPoint& ) ), this, SLOT( slotFilePopup( const QPoint& ) ) );
- connect( awidget, SIGNAL( setWindowCaption( const QString & ) ), this, SIGNAL( setWindowCaption( const QString & ) ) );
- connect( awidget, SIGNAL( removeRecentURL( const KURL & ) ), this, SIGNAL( removeRecentURL( const KURL & ) ) );
- connect( awidget, SIGNAL( addRecentURL( const KURL & ) ), this, SIGNAL( addRecentURL( const KURL & ) ) );
+ connect( awidget, TQT_SIGNAL( fixActions() ), this, TQT_SLOT( fixEnables() ) );
+ connect( awidget, TQT_SIGNAL( disableAllActions() ), this, TQT_SLOT( disableActions() ) );
+ connect( awidget, TQT_SIGNAL( signalFilePopup( const TQPoint& ) ), this, TQT_SLOT( slotFilePopup( const TQPoint& ) ) );
+ connect( awidget, TQT_SIGNAL( setWindowCaption( const TQString & ) ), this, TQT_SIGNAL( setWindowCaption( const TQString & ) ) );
+ connect( awidget, TQT_SIGNAL( removeRecentURL( const KURL & ) ), this, TQT_SIGNAL( removeRecentURL( const KURL & ) ) );
+ connect( awidget, TQT_SIGNAL( addRecentURL( const KURL & ) ), this, TQT_SIGNAL( addRecentURL( const KURL & ) ) );
if( readWrite )
setXMLFile( "ark_part.rc" );
@@ -90,22 +90,22 @@ ArkPart::ArkPart( QWidget *parentWidget, const char * /*widgetName*/, QObject *p
setupActions();
m_ext = new ArkBrowserExtension( this, "ArkBrowserExtension" );
- connect( awidget, SIGNAL( openURLRequest( const KURL & ) ),
- m_ext, SLOT( slotOpenURLRequested( const KURL & ) ) );
+ connect( awidget, TQT_SIGNAL( openURLRequest( const KURL & ) ),
+ m_ext, TQT_SLOT( slotOpenURLRequested( const KURL & ) ) );
m_bar = new ArkStatusBarExtension( this );
- connect( awidget, SIGNAL( setStatusBarText( const QString & ) ), m_bar,
- SLOT( slotSetStatusBarText( const QString & ) ) );
- connect( awidget, SIGNAL( setStatusBarSelectedFiles( const QString & ) ), m_bar,
- SLOT( slotSetStatusBarSelectedFiles( const QString & ) ) );
- connect( awidget, SIGNAL( setBusy( const QString & ) ), m_bar,
- SLOT( slotSetBusy( const QString & ) ) );
- connect( awidget, SIGNAL( setReady() ), m_bar,
- SLOT( slotSetReady() ) );
- connect( this, SIGNAL( started(KIO::Job*) ), SLOT( transferStarted(KIO::Job*) ) );
- connect( this, SIGNAL( completed() ), SLOT( transferCompleted() ) );
- connect( this, SIGNAL( canceled(const QString&) ),
- SLOT( transferCanceled(const QString&) ) );
+ connect( awidget, TQT_SIGNAL( setStatusBarText( const TQString & ) ), m_bar,
+ TQT_SLOT( slotSetStatusBarText( const TQString & ) ) );
+ connect( awidget, TQT_SIGNAL( setStatusBarSelectedFiles( const TQString & ) ), m_bar,
+ TQT_SLOT( slotSetStatusBarSelectedFiles( const TQString & ) ) );
+ connect( awidget, TQT_SIGNAL( setBusy( const TQString & ) ), m_bar,
+ TQT_SLOT( slotSetBusy( const TQString & ) ) );
+ connect( awidget, TQT_SIGNAL( setReady() ), m_bar,
+ TQT_SLOT( slotSetReady() ) );
+ connect( this, TQT_SIGNAL( started(KIO::Job*) ), TQT_SLOT( transferStarted(KIO::Job*) ) );
+ connect( this, TQT_SIGNAL( completed() ), TQT_SLOT( transferCompleted() ) );
+ connect( this, TQT_SIGNAL( canceled(const TQString&) ),
+ TQT_SLOT( transferCanceled(const TQString&) ) );
setProgressInfoEnabled( false );
}
@@ -117,40 +117,40 @@ void
ArkPart::setupActions()
{
addFileAction = new KAction(i18n("Add &File..."), "ark_addfile", 0, awidget,
- SLOT(action_add()), actionCollection(), "addfile");
+ TQT_SLOT(action_add()), actionCollection(), "addfile");
addDirAction = new KAction(i18n("Add Folde&r..."), "ark_adddir", 0, awidget,
- SLOT(action_add_dir()), actionCollection(), "adddir");
+ TQT_SLOT(action_add_dir()), actionCollection(), "adddir");
extractAction = new KAction(i18n("E&xtract..."), "ark_extract", 0, awidget,
- SLOT(action_extract()), actionCollection(), "extract");
+ TQT_SLOT(action_extract()), actionCollection(), "extract");
deleteAction = new KAction(i18n("De&lete"), "ark_delete", KShortcut(Qt::Key_Delete), awidget,
- SLOT(action_delete()), actionCollection(), "delete");
+ TQT_SLOT(action_delete()), actionCollection(), "delete");
viewAction = new KAction(i18n("to view something","&View"), "ark_view", 0, awidget,
- SLOT(action_view()), actionCollection(), "view");
+ TQT_SLOT(action_view()), actionCollection(), "view");
openWithAction = new KAction(i18n("&Open With..."), 0, awidget,
- SLOT(slotOpenWith()), actionCollection(), "open_with");
+ TQT_SLOT(slotOpenWith()), actionCollection(), "open_with");
editAction = new KAction(i18n("Edit &With..."), 0, awidget,
- SLOT(action_edit()), actionCollection(), "edit");
+ TQT_SLOT(action_edit()), actionCollection(), "edit");
- selectAllAction = KStdAction::selectAll(awidget->fileList(), SLOT(selectAll()), actionCollection(), "select_all");
+ selectAllAction = KStdAction::selectAll(awidget->fileList(), TQT_SLOT(selectAll()), actionCollection(), "select_all");
- deselectAllAction = new KAction(i18n("&Unselect All"), 0, awidget->fileList(), SLOT(unselectAll()), actionCollection(), "deselect_all");
+ deselectAllAction = new KAction(i18n("&Unselect All"), 0, awidget->fileList(), TQT_SLOT(unselectAll()), actionCollection(), "deselect_all");
- invertSelectionAction = new KAction(i18n("&Invert Selection"), 0, awidget->fileList(), SLOT(invertSelection()), actionCollection(), "invert_selection");
+ invertSelectionAction = new KAction(i18n("&Invert Selection"), 0, awidget->fileList(), TQT_SLOT(invertSelection()), actionCollection(), "invert_selection");
- saveAsAction = KStdAction::saveAs(this, SLOT(file_save_as()), actionCollection());
+ saveAsAction = KStdAction::saveAs(this, TQT_SLOT(file_save_as()), actionCollection());
- //KStdAction::preferences(awidget, SLOT(showSettings()), actionCollection());
+ //KStdAction::preferences(awidget, TQT_SLOT(showSettings()), actionCollection());
( void ) new KAction( i18n( "Configure &Ark..." ), "configure" , 0, awidget,
- SLOT( showSettings() ), actionCollection(), "options_configure_ark" );
+ TQT_SLOT( showSettings() ), actionCollection(), "options_configure_ark" );
showSearchBar = new KToggleAction( i18n( "Show Search Bar" ), KShortcut(), actionCollection(), "options_show_search_bar" );
@@ -158,7 +158,7 @@ ArkPart::setupActions()
showSearchBar->setChecked( ArkSettings::showSearchBar() );
- connect( showSearchBar, SIGNAL( toggled( bool ) ), awidget, SLOT( slotShowSearchBarToggled( bool ) ) );
+ connect( showSearchBar, TQT_SIGNAL( toggled( bool ) ), awidget, TQT_SLOT( slotShowSearchBarToggled( bool ) ) );
initialEnables();
}
@@ -169,7 +169,7 @@ void ArkPart::fixEnables()
bool bHaveFiles = ( awidget->getNumFilesInArchive() > 0 );
bool bReadOnly = false;
bool bAddDirSupported = true;
- QString extension;
+ TQString extension;
if ( awidget->archiveType() == ZOO_FORMAT || awidget->archiveType() == AA_FORMAT
|| awidget->archiveType() == COMPRESSED_FORMAT)
bAddDirSupported = false;
@@ -247,9 +247,9 @@ bool ArkPart::openFile()
{
KURL url;
url.setPath( m_file );
- if( !QFile::exists( m_file ) )
+ if( !TQFile::exists( m_file ) )
{
- emit setWindowCaption( QString::null );
+ emit setWindowCaption( TQString::null );
emit removeRecentURL( awidget->realURL() );
return false;
}
@@ -290,7 +290,7 @@ bool ArkPart::closeURL()
if ( !isReadWrite() || !awidget->isModified() || awidget->realURL().isLocalFile() )
return closeArchive();
- QString docName = awidget->realURL().prettyURL();
+ TQString docName = awidget->realURL().prettyURL();
int res = KMessageBox::warningYesNoCancel( widget(),
i18n( "The archive \"%1\" has been modified.\n"
@@ -310,7 +310,7 @@ bool ArkPart::closeURL()
}
}
-void ArkPart::slotFilePopup( const QPoint &pPoint )
+void ArkPart::slotFilePopup( const TQPoint &pPoint )
{
if ( factory() )
static_cast<KPopupMenu *>(factory()->container("file_popup", this))->popup(pPoint);
@@ -326,10 +326,10 @@ void ArkPart::transferStarted( KIO::Job *job )
if ( job )
{
disableActions();
- connect( job, SIGNAL( percent(KIO::Job*, unsigned long) ),
- SLOT( progressInformation(KIO::Job*, unsigned long) ) );
- connect( m_bar->cancelButton(), SIGNAL( clicked() ),
- SLOT( cancelTransfer() ) );
+ connect( job, TQT_SIGNAL( percent(KIO::Job*, unsigned long) ),
+ TQT_SLOT( progressInformation(KIO::Job*, unsigned long) ) );
+ connect( m_bar->cancelButton(), TQT_SIGNAL( clicked() ),
+ TQT_SLOT( cancelTransfer() ) );
}
}
@@ -337,15 +337,15 @@ void ArkPart::transferCompleted()
{
if ( m_job )
{
- disconnect( m_job, SIGNAL( percent(KIO::Job*, unsigned long) ),
- this, SLOT( progressInformation(KIO::Job*, unsigned long) ) );
+ disconnect( m_job, TQT_SIGNAL( percent(KIO::Job*, unsigned long) ),
+ this, TQT_SLOT( progressInformation(KIO::Job*, unsigned long) ) );
m_job = 0;
}
m_bar->slotSetReady();
}
-void ArkPart::transferCanceled( const QString& errMsg )
+void ArkPart::transferCanceled( const TQString& errMsg )
{
m_job = 0;
if ( !errMsg.isEmpty() )
@@ -363,12 +363,12 @@ void ArkPart::progressInformation( KIO::Job *, unsigned long progress )
void ArkPart::cancelTransfer()
{
- disconnect( m_bar->cancelButton(), SIGNAL( clicked() ),
- this, SLOT( cancelTransfer() ) );
+ disconnect( m_bar->cancelButton(), TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( cancelTransfer() ) );
if ( m_job )
{
m_job->kill( false );
- transferCanceled( QString() );
+ transferCanceled( TQString() );
}
}
@@ -406,26 +406,26 @@ void ArkStatusBarExtension::setupStatusBar()
return;
}
- m_pTimer = new QTimer( this );
- connect( m_pTimer, SIGNAL( timeout() ), this, SLOT( slotProgress() ) );
+ m_pTimer = new TQTimer( this );
+ connect( m_pTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotProgress() ) );
m_pStatusLabelTotal = new KSqueezedTextLabel( statusBar(), "StatusLabelTotal" );
- m_pStatusLabelTotal->setFrameStyle( QFrame::NoFrame );
+ m_pStatusLabelTotal->setFrameStyle( TQFrame::NoFrame );
m_pStatusLabelTotal->setAlignment( AlignRight );
m_pStatusLabelTotal->setText( i18n( "Total: 0 files" ) );
- m_pStatusLabelSelect = new QLabel( statusBar(), "StatusLabelSelect" );
- m_pStatusLabelSelect->setFrameStyle( QFrame::NoFrame );
+ m_pStatusLabelSelect = new TQLabel( statusBar(), "StatusLabelSelect" );
+ m_pStatusLabelSelect->setFrameStyle( TQFrame::NoFrame );
m_pStatusLabelSelect->setAlignment( AlignLeft );
m_pStatusLabelSelect->setText(i18n( "0 files selected" ) );
- m_cancelButton = new KPushButton( SmallIcon( "cancel" ), QString(), statusBar(), "CancelButton" );
+ m_cancelButton = new KPushButton( SmallIcon( "cancel" ), TQString(), statusBar(), "CancelButton" );
addStatusBarItem( m_pStatusLabelSelect, 3000, false );
addStatusBarItem( m_pStatusLabelTotal, 3000, false );
}
-void ArkStatusBarExtension::slotSetStatusBarText( const QString & text )
+void ArkStatusBarExtension::slotSetStatusBarText( const TQString & text )
{
if ( !statusBar() )
return;
@@ -434,7 +434,7 @@ void ArkStatusBarExtension::slotSetStatusBarText( const QString & text )
m_pStatusLabelTotal->setText( text );
}
-void ArkStatusBarExtension::slotSetStatusBarSelectedFiles( const QString & text )
+void ArkStatusBarExtension::slotSetStatusBarSelectedFiles( const TQString & text )
{
if ( !statusBar() )
@@ -444,7 +444,7 @@ void ArkStatusBarExtension::slotSetStatusBarSelectedFiles( const QString & text
m_pStatusLabelSelect->setText( text );
}
-void ArkStatusBarExtension::slotSetBusy( const QString & text, bool showCancelButton, bool detailedProgress )
+void ArkStatusBarExtension::slotSetBusy( const TQString & text, bool showCancelButton, bool detailedProgress )
{
if ( m_bBusy || !statusBar() )
return;
@@ -452,10 +452,10 @@ void ArkStatusBarExtension::slotSetBusy( const QString & text, bool showCancelBu
setupStatusBar();
if ( !m_pBusyText )
{
- m_pBusyText = new QLabel( statusBar() );
+ m_pBusyText = new TQLabel( statusBar() );
m_pBusyText->setAlignment( AlignLeft );
- m_pBusyText->setFrameStyle( QFrame::Panel | QFrame::Raised );
+ m_pBusyText->setFrameStyle( TQFrame::Panel | TQFrame::Raised );
}
if ( !m_pProgressBar )
diff --git a/ark/ark_part.h b/ark/ark_part.h
index b5b7f6f..2be1bd8 100644
--- a/ark/ark_part.h
+++ b/ark/ark_part.h
@@ -30,7 +30,7 @@
#include <kaction.h>
#include <kprogress.h>
-#include <qlabel.h>
+#include <tqlabel.h>
class KAboutData;
class KPushButton;
@@ -63,9 +63,9 @@ public:
KPushButton* cancelButton() const { return m_cancelButton; }
public slots:
- void slotSetStatusBarSelectedFiles( const QString & text );
- void slotSetStatusBarText( const QString & text );
- void slotSetBusy( const QString & text, bool showCancelButton = false, bool detailedProgress = false );
+ void slotSetStatusBarSelectedFiles( const TQString & text );
+ void slotSetStatusBarText( const TQString & text );
+ void slotSetBusy( const TQString & text, bool showCancelButton = false, bool detailedProgress = false );
void slotSetReady();
void slotProgress();
@@ -74,12 +74,12 @@ protected:
private:
bool m_bBusy;
- QLabel *m_pStatusLabelSelect; // How many files are selected
- QLabel *m_pStatusLabelTotal; // How many files in archive
- QLabel *m_pBusyText;
+ TQLabel *m_pStatusLabelSelect; // How many files are selected
+ TQLabel *m_pStatusLabelTotal; // How many files in archive
+ TQLabel *m_pBusyText;
KPushButton *m_cancelButton; // Cancel an operation
KProgress *m_pProgressBar;
- QTimer *m_pTimer;
+ TQTimer *m_pTimer;
};
@@ -87,8 +87,8 @@ class ArkPart: public KParts::ReadWritePart
{
Q_OBJECT
public:
- ArkPart( QWidget *parentWidget, const char *widgetName, QObject *parent,
- const char *name, const QStringList &, bool readWrite );
+ ArkPart( TQWidget *parentWidget, const char *widgetName, TQObject *parent,
+ const char *name, const TQStringList &, bool readWrite );
virtual ~ArkPart();
static KAboutData* createAboutData();
@@ -96,14 +96,14 @@ public:
public slots:
void fixEnables();//rename to slotFixEnables()...
void disableActions();
- void slotFilePopup( const QPoint & pPoint );
+ void slotFilePopup( const TQPoint & pPoint );
void file_save_as();
bool saveFile();
bool openURL( const KURL & url );
bool closeURL();
void transferStarted( KIO::Job * );
void transferCompleted();
- void transferCanceled( const QString& errMsg );
+ void transferCanceled( const TQString& errMsg );
void progressInformation( KIO::Job *, unsigned long );
void cancelTransfer();
diff --git a/ark/arkapp.cpp b/ark/arkapp.cpp
index c117d0b..ff6acd8 100644
--- a/ark/arkapp.cpp
+++ b/ark/arkapp.cpp
@@ -30,7 +30,7 @@
#include <kcmdlineargs.h>
#include <klocale.h>
#include <unistd.h>
-#include <qfile.h>
+#include <tqfile.h>
#include <errno.h>
@@ -43,7 +43,7 @@ ArkApplication *ArkApplication::mInstance = NULL;
// to make sure an archive isn't opened twice in different windows
// Now, readlink only gives one level so this function recurses.
-static QString resolveFilename(const QString & _arkname)
+static TQString resolveFilename(const TQString & _arkname)
{
char *buff;
int nread;
@@ -52,7 +52,7 @@ static QString resolveFilename(const QString & _arkname)
while ( true )
{
buff = new char[BUFSIZ*iter];
- nread = readlink( QFile::encodeName(_arkname), buff, BUFSIZ);
+ nread = readlink( TQFile::encodeName(_arkname), buff, BUFSIZ);
if (-1 == nread)
{
if ( EINVAL == errno ) // not a symbolic link. Stopping condition.
@@ -78,7 +78,7 @@ static QString resolveFilename(const QString & _arkname)
else
{
buff[nread] = '\0'; // readlink doesn't null terminate
- QString name = QFile::decodeName( buff );
+ TQString name = TQFile::decodeName( buff );
delete [] buff;
// watch out for relative pathnames
@@ -162,7 +162,7 @@ ArkApplication::newInstance()
{
bool oneFile = (args->count() == 2 ) ;
- QString extension = args->arg( 0 );
+ TQString extension = args->arg( 0 );
KURL archiveName = args->url( 1 ); // the filename
// if more than one file -> use directory name
@@ -234,7 +234,7 @@ ArkApplication::newInstance()
void
ArkApplication::addOpenArk(const KURL & _arkname, MainWindow *_ptr)
{
- QString realName;
+ TQString realName;
if( _arkname.isLocalFile() )
{
realName = resolveFilename( _arkname.path() ); // follow symlink
@@ -250,7 +250,7 @@ ArkApplication::addOpenArk(const KURL & _arkname, MainWindow *_ptr)
void
ArkApplication::removeOpenArk(const KURL & _arkname)
{
- QString realName;
+ TQString realName;
if ( _arkname.isLocalFile() )
realName = resolveFilename( _arkname.path() ); // follow symlink
else
@@ -265,7 +265,7 @@ ArkApplication::raiseArk(const KURL & _arkname)
{
kdDebug( 1601 ) << "ArkApplication::raiseArk " << endl;
MainWindow *window;
- QString realName;
+ TQString realName;
if( _arkname.isLocalFile() )
realName = resolveFilename(_arkname.path()); // follow symlink
else
@@ -282,7 +282,7 @@ ArkApplication::raiseArk(const KURL & _arkname)
bool
ArkApplication::isArkOpenAlready(const KURL & _arkname)
{
- QString realName;
+ TQString realName;
if ( _arkname.isLocalFile() )
realName = resolveFilename(_arkname.path()); // follow symlink
else
diff --git a/ark/arkapp.h b/ark/arkapp.h
index 1d1b474..f0d4444 100644
--- a/ark/arkapp.h
+++ b/ark/arkapp.h
@@ -30,7 +30,7 @@
#include "mainwindow.h"
// QT includes
-#include <qdict.h>
+#include <tqdict.h>
// KDE includes
#include <kuniqueapplication.h>
@@ -41,7 +41,7 @@ class QStringList;
class EqualKey
{
public:
- bool operator()(const QString & str1, const QString & str2) const
+ bool operator()(const TQString & str1, const TQString & str2) const
{
return (str1 == str2);
}
@@ -78,14 +78,14 @@ class ArkApplication : public KUniqueApplication
ArkApplication();
private:
- QWidget *m_mainwidget; // to be the parent of all ArkWidgets
+ TQWidget *m_mainwidget; // to be the parent of all ArkWidgets
int m_windowCount;
- QStringList openArksList;
+ TQStringList openArksList;
// a hash to obtain the window associated with a filename.
- // given a QString key, you get an ArkWidget * pointer.
- QDict<MainWindow> m_windowsHash;
+ // given a TQString key, you get an ArkWidget * pointer.
+ TQDict<MainWindow> m_windowsHash;
static ArkApplication *mInstance;
};
diff --git a/ark/arkfactory.cpp b/ark/arkfactory.cpp
index 8fcd262..3e17e7a 100644
--- a/ark/arkfactory.cpp
+++ b/ark/arkfactory.cpp
@@ -38,20 +38,20 @@ ArkFactory::~ArkFactory()
s_instance = 0L;
}
-KParts::Part * ArkFactory::createPartObject( QWidget *parentWidget,
- const char *widgetName, QObject *parent,
+KParts::Part * ArkFactory::createPartObject( TQWidget *parentWidget,
+ const char *widgetName, TQObject *parent,
const char *name, const char *classname,
- const QStringList &args )
+ const TQStringList &args )
{
bool readWrite = false; // for e.g. Browser/View or KParts::ReadOnlyPart
- if ( QCString( classname ) == "KParts::ReadWritePart"
- || QCString( classname ) == "ArkPart" )
+ if ( TQCString( classname ) == "KParts::ReadWritePart"
+ || TQCString( classname ) == "ArkPart" )
{
readWrite = true;
}
ArkPart* obj = new ArkPart( parentWidget, widgetName, parent, name,
args, readWrite );
- //kdDebug( 1601 ) << "classname is: " << QCString( classname ) << endl;
+ //kdDebug( 1601 ) << "classname is: " << TQCString( classname ) << endl;
return obj;
}
diff --git a/ark/arkfactory.h b/ark/arkfactory.h
index ec3534a..2b5514b 100644
--- a/ark/arkfactory.h
+++ b/ark/arkfactory.h
@@ -29,10 +29,10 @@ public:
ArkFactory() : KParts::Factory() {}
virtual ~ArkFactory();
virtual KParts::Part *createPartObject(
- QWidget *parentWidget = 0,const char *widgetName = 0,
- QObject *parent = 0, const char *name = 0,
+ TQWidget *parentWidget = 0,const char *widgetName = 0,
+ TQObject *parent = 0, const char *name = 0,
const char *classname = "KParts::Part",
- const QStringList &args = QStringList() );
+ const TQStringList &args = TQStringList() );
static KInstance* instance();
private:
static KInstance* s_instance;
diff --git a/ark/arkutils.cpp b/ark/arkutils.cpp
index 1b4ed0a..bfe496c 100644
--- a/ark/arkutils.cpp
+++ b/ark/arkutils.cpp
@@ -70,13 +70,13 @@
#include <klargefile.h>
// Qt includes
-#include <qfile.h>
+#include <tqfile.h>
#include "arkutils.h"
-QString ArkUtils::getTimeStamp(const QString &_month,
- const QString &_day,
- const QString &_yearOrTime)
+TQString ArkUtils::getTimeStamp(const TQString &_month,
+ const TQString &_day,
+ const TQString &_yearOrTime)
{
// Make the date format sortable.
// Month is in _month, day is in _day.
@@ -99,7 +99,7 @@ QString ArkUtils::getTimeStamp(const QString &_month,
int thisYear = now->tm_year + 1900;
int thisMonth = now->tm_mon + 1;
- QString year, timestamp;
+ TQString year, timestamp;
if (_yearOrTime.contains(":"))
// it has a timestamp so we have to figure out the year
@@ -118,7 +118,7 @@ QString ArkUtils::getTimeStamp(const QString &_month,
timestamp = "??:??";
}
- QString retval;
+ TQString retval;
retval.sprintf("%s-%.2d-%.2d %s",
year.utf8().data(), nMonth, nDay,
timestamp.utf8().data());
@@ -154,7 +154,7 @@ int ArkUtils::getYear(int theMonth, int thisYear, int thisMonth)
return thisYear;
}
-QString ArkUtils::fixYear(const QString& strYear)
+TQString ArkUtils::fixYear(const TQString& strYear)
{
// returns 4-digit year by guessing from two-char year string.
// Remember: this is used for file timestamps. There probably aren't any
@@ -173,27 +173,27 @@ QString ArkUtils::fixYear(const QString& strYear)
else
y += 2000;
- return QString::number( y );
+ return TQString::number( y );
}
else
- return QString::null;
+ return TQString::null;
}
bool
-ArkUtils::haveDirPermissions( const QString &strFile )
+ArkUtils::haveDirPermissions( const TQString &strFile )
{
- return ( access( QFile::encodeName( strFile ), W_OK ) == 0 );
+ return ( access( TQFile::encodeName( strFile ), W_OK ) == 0 );
}
bool
-ArkUtils::diskHasSpace(const QString &dir, KIO::filesize_t size)
+ArkUtils::diskHasSpace(const TQString &dir, KIO::filesize_t size)
// check if disk has enough space to accommodate (a) new file(s) of
// the given size in the partition containing the given directory
{
kdDebug( 1601 ) << "diskHasSpace() " << "dir: " << dir << " Size: " << size << endl;
struct STATFS buf;
- if (STATFS(QFile::encodeName(dir), &buf) == 0)
+ if (STATFS(TQFile::encodeName(dir), &buf) == 0)
{
double nAvailable = (double)buf.f_bavail * buf.f_bsize;
if ( nAvailable < (double)size )
@@ -212,17 +212,17 @@ ArkUtils::diskHasSpace(const QString &dir, KIO::filesize_t size)
}
KIO::filesize_t
-ArkUtils::getSizes(QStringList *list)
+ArkUtils::getSizes(TQStringList *list)
{
KIO::filesize_t sum = 0;
- QString str;
+ TQString str;
KDE_struct_stat st;
- for ( QStringList::Iterator it = list->begin(); it != list->end(); ++it)
+ for ( TQStringList::Iterator it = list->begin(); it != list->end(); ++it)
{
str = *it;
str = str.right(str.length()-5);
- if (KDE_stat(QFile::encodeName(str), &st ) < 0)
+ if (KDE_stat(TQFile::encodeName(str), &st ) < 0)
continue;
sum += st.st_size;
}
diff --git a/ark/arkutils.h b/ark/arkutils.h
index 4ddea65..6f1f3e3 100644
--- a/ark/arkutils.h
+++ b/ark/arkutils.h
@@ -32,7 +32,7 @@
#ifndef ARKUTILS_H
#define ARKUTILS_H
-#include <qstring.h>
+#include <tqstring.h>
#include <kio/global.h>
@@ -43,14 +43,14 @@ namespace ArkUtils
{
int getYear(int theMonth, int thisYear, int thisMonth);
int getMonth(const char *strMonth);
- QString fixYear(const QString& strYear);
-
- QString getTimeStamp(const QString &month,
- const QString &day,
- const QString &year);
- bool haveDirPermissions(const QString &strFile);
- bool diskHasSpace(const QString &dir, KIO::filesize_t size);
- KIO::filesize_t getSizes(QStringList *list);
+ TQString fixYear(const TQString& strYear);
+
+ TQString getTimeStamp(const TQString &month,
+ const TQString &day,
+ const TQString &year);
+ bool haveDirPermissions(const TQString &strFile);
+ bool diskHasSpace(const TQString &dir, KIO::filesize_t size);
+ KIO::filesize_t getSizes(TQStringList *list);
}
#endif
diff --git a/ark/arkviewer.cpp b/ark/arkviewer.cpp
index 1ea76ac..2f173a8 100644
--- a/ark/arkviewer.cpp
+++ b/ark/arkviewer.cpp
@@ -29,20 +29,20 @@
#include <kglobal.h>
#include <kiconloader.h>
-#include <qvbox.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qframe.h>
-#include <qurl.h>
+#include <tqvbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqframe.h>
+#include <tqurl.h>
-ArkViewer::ArkViewer( QWidget * parent, const char * name )
- : KDialogBase( parent, name, false, QString::null, Close ), m_part( 0 )
+ArkViewer::ArkViewer( TQWidget * parent, const char * name )
+ : KDialogBase( parent, name, false, TQString::null, Close ), m_part( 0 )
{
- m_widget = new QVBox( this );
+ m_widget = new TQVBox( this );
m_widget->layout()->setSpacing( 10 );
- connect( this, SIGNAL( finished() ), this, SLOT( slotFinished() ) );
+ connect( this, TQT_SIGNAL( finished() ), this, TQT_SLOT( slotFinished() ) );
setMainWidget( m_widget );
}
@@ -65,28 +65,28 @@ bool ArkViewer::view( const KURL& filename )
setCaption( filename.fileName() );
- QSize size = configDialogSize( "ArkViewer" );
+ TQSize size = configDialogSize( "ArkViewer" );
if (size.width() < 200)
- size = QSize(560, 400);
+ size = TQSize(560, 400);
setInitialSize( size );
- QFrame *header = new QFrame( m_widget );
- QHBoxLayout *headerLayout = new QHBoxLayout( header );
+ TQFrame *header = new TQFrame( m_widget );
+ TQHBoxLayout *headerLayout = new TQHBoxLayout( header );
headerLayout->setAutoAdd( true );
- QLabel *iconLabel = new QLabel( header );
+ TQLabel *iconLabel = new TQLabel( header );
iconLabel->setPixmap( mimetype->pixmap( KIcon::Desktop ) );
- iconLabel->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Minimum );
+ iconLabel->setSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Minimum );
- QVBox *headerRight = new QVBox( header );
- new QLabel( QString( "<qt><b>%1</b></qt>" )
+ TQVBox *headerRight = new TQVBox( header );
+ new TQLabel( TQString( "<qt><b>%1</b></qt>" )
.arg( filename.fileName() ), headerRight
);
- new QLabel( mimetype->comment(), headerRight );
+ new TQLabel( mimetype->comment(), headerRight );
- header->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Maximum );
+ header->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Maximum );
- m_part = KParts::ComponentFactory::createPartInstanceFromQuery<KParts::ReadOnlyPart>( mimetype->name(), QString::null, m_widget, 0, this );
+ m_part = KParts::ComponentFactory::createPartInstanceFromQuery<KParts::ReadOnlyPart>( mimetype->name(), TQString::null, m_widget, 0, this );
if ( m_part )
{
diff --git a/ark/arkviewer.h b/ark/arkviewer.h
index e0fda83..3720ffa 100644
--- a/ark/arkviewer.h
+++ b/ark/arkviewer.h
@@ -30,7 +30,7 @@ class ArkViewer : public KDialogBase
Q_OBJECT
public:
- ArkViewer( QWidget* parent = 0, const char * name = 0 );
+ ArkViewer( TQWidget* parent = 0, const char * name = 0 );
~ArkViewer();
bool view( const KURL& filename );
@@ -40,7 +40,7 @@ class ArkViewer : public KDialogBase
private:
KParts::ReadOnlyPart *m_part;
- QWidget *m_widget;
+ TQWidget *m_widget;
};
#endif // ARKVIEWER_H
diff --git a/ark/arkwidget.cpp b/ark/arkwidget.cpp
index 5720317..0809a6b 100644
--- a/ark/arkwidget.cpp
+++ b/ark/arkwidget.cpp
@@ -33,11 +33,11 @@
#include <sys/stat.h>
// Qt includes
-#include <qlayout.h>
-#include <qstringlist.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qdir.h>
+#include <tqlayout.h>
+#include <tqstringlist.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqdir.h>
// KDE includes
#include <kdebug.h>
@@ -83,13 +83,13 @@
static void viewInExternalViewer( ArkWidget* parent, const KURL& filename )
{
- QString mimetype = KMimeType::findByURL( filename )->name();
+ TQString mimetype = KMimeType::findByURL( filename )->name();
bool view = true;
if ( KRun::isExecutable( mimetype ) )
{
- QString text = i18n( "The file you're trying to view may be an executable. Running untrusted executables may compromise your system's security.\nAre you sure you want to run that file?" );
- view = ( KMessageBox::warningContinueCancel( parent, text, QString::null, i18n("Run Nevertheless") ) == KMessageBox::Continue );
+ TQString text = i18n( "The file you're trying to view may be an executable. Running untrusted executables may compromise your system's security.\nAre you sure you want to run that file?" );
+ view = ( KMessageBox::warningContinueCancel( parent, text, TQString::null, i18n("Run Nevertheless") ) == KMessageBox::Continue );
}
if ( view )
@@ -103,10 +103,10 @@ static void viewInExternalViewer( ArkWidget* parent, const KURL& filename )
//
//----------------------------------------------------------------------
-ArkWidget::ArkWidget( QWidget *parent, const char *name )
- : QVBox(parent, name), m_bBusy( false ), m_bBusyHold( false ),
+ArkWidget::ArkWidget( TQWidget *parent, const char *name )
+ : TQVBox(parent, name), m_bBusy( false ), m_bBusyHold( false ),
m_extractOnly( false ), m_extractRemote(false),
- m_openAsMimeType(QString::null), m_pTempAddList(NULL),
+ m_openAsMimeType(TQString::null), m_pTempAddList(NULL),
m_bArchivePopupEnabled( false ),
m_convert_tmpDir( NULL ), m_convertSuccess( false ),
m_createRealArchTmpDir( NULL ), m_extractRemoteTmpDir( NULL ),
@@ -130,7 +130,7 @@ ArkWidget::ArkWidget( QWidget *parent, const char *name )
m_searchToolBar = new KToolBar( this, "searchBar" );
m_searchToolBar->boxLayout()->setSpacing( KDialog::spacingHint() );
- QLabel * l1 = new QLabel( i18n( "&Search:" ), m_searchToolBar, "kde toolbar widget" );
+ TQLabel * l1 = new TQLabel( i18n( "&Search:" ), m_searchToolBar, "kde toolbar widget" );
m_searchBar = new SearchBar( m_searchToolBar, 0 );
l1->setBuddy( m_searchBar );
@@ -198,13 +198,13 @@ ArkWidget::updateStatusTotals()
m_nNumFiles = m_fileListView->totalFiles();
m_nSizeOfFiles = m_fileListView->totalSize();
- QString strInfo = i18n( "%n file %1", "%n files %1", m_nNumFiles )
+ TQString strInfo = i18n( "%n file %1", "%n files %1", m_nNumFiles )
.arg( KIO::convertSize( m_nSizeOfFiles ) );
emit setStatusBarText(strInfo);
}
void
-ArkWidget::busy( const QString & text )
+ArkWidget::busy( const TQString & text )
{
emit setBusy( text );
@@ -213,7 +213,7 @@ ArkWidget::busy( const QString & text )
m_fileListView->setEnabled( false );
- QApplication::setOverrideCursor( waitCursor );
+ TQApplication::setOverrideCursor( waitCursor );
m_bBusy = true;
}
@@ -224,7 +224,7 @@ ArkWidget::holdBusy()
return;
m_bBusyHold = true;
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
}
void
@@ -234,7 +234,7 @@ ArkWidget::resumeBusy()
return;
m_bBusyHold = false;
- QApplication::setOverrideCursor( waitCursor );
+ TQApplication::setOverrideCursor( waitCursor );
}
void
@@ -245,7 +245,7 @@ ArkWidget::ready()
m_fileListView->setEnabled( true );
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
emit setReady();
m_bBusyHold = false;
m_bBusy = false;
@@ -258,14 +258,14 @@ ArkWidget::ready()
KURL
ArkWidget::getSaveAsFileName()
{
- QString defaultMimeType;
+ TQString defaultMimeType;
if ( m_openAsMimeType.isNull() )
defaultMimeType = KMimeType::findByPath( m_strArchName )->name();
else
defaultMimeType = m_openAsMimeType;
KURL u;
- QString suggestedName;
+ TQString suggestedName;
if ( m_realURL.isLocalFile() )
suggestedName = m_realURL.url();
else
@@ -299,7 +299,7 @@ ArkWidget::convertTo( const KURL & u )
busy( i18n( "Saving..." ) );
m_convert_tmpDir = new KTempDir( tmpDir() + "convtmp" );
m_convert_tmpDir->setAutoDelete( true );
- connect( arch, SIGNAL( sigExtract( bool ) ), this, SLOT( convertSlotExtractDone( bool ) ) );
+ connect( arch, TQT_SIGNAL( sigExtract( bool ) ), this, TQT_SLOT( convertSlotExtractDone( bool ) ) );
m_convert_saveAsURL = u;
arch->unarchFile( 0, m_convert_tmpDir->name() );
}
@@ -308,16 +308,16 @@ void
ArkWidget::convertSlotExtractDone( bool )
{
kdDebug( 1601 ) << k_funcinfo << endl;
- disconnect( arch, SIGNAL( sigExtract( bool ) ), this, SLOT( convertSlotExtractDone( bool ) ) );
- QTimer::singleShot( 0, this, SLOT( convertSlotCreate() ) );
+ disconnect( arch, TQT_SIGNAL( sigExtract( bool ) ), this, TQT_SLOT( convertSlotExtractDone( bool ) ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( convertSlotCreate() ) );
}
void
ArkWidget::convertSlotCreate()
{
file_close();
- connect( this, SIGNAL( createDone( bool ) ), this, SLOT( convertSlotCreateDone( bool ) ) );
- QString archToCreate;
+ connect( this, TQT_SIGNAL( createDone( bool ) ), this, TQT_SLOT( convertSlotCreateDone( bool ) ) );
+ TQString archToCreate;
if ( m_convert_saveAsURL.isLocalFile() )
archToCreate = m_convert_saveAsURL.path();
else
@@ -330,18 +330,18 @@ ArkWidget::convertSlotCreate()
void
ArkWidget::convertSlotCreateDone( bool success )
{
- disconnect( this, SIGNAL( createDone( bool ) ), this, SLOT( convertSlotCreateDone( bool ) ) );
+ disconnect( this, TQT_SIGNAL( createDone( bool ) ), this, TQT_SLOT( convertSlotCreateDone( bool ) ) );
kdDebug( 1601 ) << k_funcinfo << endl;
if ( !success )
{
kdWarning( 1601 ) << "Error while converting. (convertSlotCreateDone)" << endl;
return;
}
- QDir dir( m_convert_tmpDir->name() );
- QStringList entries = dir.entryList();
+ TQDir dir( m_convert_tmpDir->name() );
+ TQStringList entries = dir.entryList();
entries.remove( ".." );
entries.remove( "." );
- QStringList::Iterator it = entries.begin();
+ TQStringList::Iterator it = entries.begin();
for ( ; it != entries.end(); ++it )
{
///////////////////////////////////////////////////////
@@ -351,13 +351,13 @@ ArkWidget::convertSlotCreateDone( bool success )
// and break the rest of the world' //
// hack. See also action_edit ... //
// addFile should be: //
- // addFile( const QString & baseDir, //
- // const QStringList & filesToAdd ) //
+ // addFile( const TQString & baseDir, //
+ // const TQStringList & filesToAdd ) //
//////////////////////////////////////////////////////
- *it = QString::fromLatin1( "file:" )+ m_convert_tmpDir->name() + *it;
+ *it = TQString::fromLatin1( "file:" )+ m_convert_tmpDir->name() + *it;
}
bool bOldRecVal = ArkSettings::rarRecurseSubdirs();
- connect( arch, SIGNAL( sigAdd( bool ) ), this, SLOT( convertSlotAddDone( bool ) ) );
+ connect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( convertSlotAddDone( bool ) ) );
arch->addFile( entries );
ArkSettings::setRarRecurseSubdirs( bOldRecVal );
}
@@ -365,11 +365,11 @@ ArkWidget::convertSlotCreateDone( bool success )
void
ArkWidget::convertSlotAddDone( bool success )
{
- disconnect( arch, SIGNAL( sigAdd( bool ) ), this, SLOT( convertSlotAddDone( bool ) ) );
+ disconnect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( convertSlotAddDone( bool ) ) );
kdDebug( 1601 ) << k_funcinfo << endl;
m_convertSuccess = success;
// needed ? (TarArch, lzo)
- QTimer::singleShot( 0, this, SLOT( convertFinish() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( convertFinish() ) );
}
void
@@ -406,10 +406,10 @@ ArkWidget::allowedArchiveName( const KURL & u )
if (u.isEmpty())
return false;
- QString archMimeType = KMimeType::findByURL( m_url )->name();
+ TQString archMimeType = KMimeType::findByURL( m_url )->name();
if ( !m_openAsMimeType.isNull() )
archMimeType = m_openAsMimeType;
- QString newArchMimeType = KMimeType::findByPath( u.path() )->name();
+ TQString newArchMimeType = KMimeType::findByPath( u.path() )->name();
if ( archMimeType == newArchMimeType )
return true;
@@ -423,7 +423,7 @@ ArkWidget::extractTo( const KURL & targetDirectory, const KURL & archive, bool b
if ( bGuessName ) // suggest an extract directory based on archive name
{
- const QString fileName = guessName( archive );
+ const TQString fileName = guessName( archive );
m_extractTo_targetDirectory.setPath( targetDirectory.path( 1 ) + fileName + '/' );
}
@@ -438,16 +438,16 @@ ArkWidget::extractTo( const KURL & targetDirectory, const KURL & archive, bool b
}
}
- connect( this, SIGNAL( openDone( bool ) ), this, SLOT( extractToSlotOpenDone( bool ) ) );
+ connect( this, TQT_SIGNAL( openDone( bool ) ), this, TQT_SLOT( extractToSlotOpenDone( bool ) ) );
}
const QString
ArkWidget::guessName( const KURL &archive )
{
- QString fileName = archive.fileName();
- QStringList list = KMimeType::findByPath( fileName )->patterns();
- QStringList::Iterator it = list.begin();
- QString ext;
+ TQString fileName = archive.fileName();
+ TQStringList list = KMimeType::findByPath( fileName )->patterns();
+ TQStringList::Iterator it = list.begin();
+ TQString ext;
for ( ; it != list.end(); ++it )
{
ext = (*it).remove( '*' );
@@ -464,7 +464,7 @@ ArkWidget::guessName( const KURL &archive )
void
ArkWidget::extractToSlotOpenDone( bool success )
{
- disconnect( this, SIGNAL( openDone( bool ) ), this, SLOT( extractToSlotOpenDone( bool ) ) );
+ disconnect( this, TQT_SIGNAL( openDone( bool ) ), this, TQT_SLOT( extractToSlotOpenDone( bool ) ) );
if ( !success )
{
KMessageBox::error( this, i18n( "An error occurred while opening the archive %1." ).arg( m_url.prettyURL() ) );
@@ -472,7 +472,7 @@ ArkWidget::extractToSlotOpenDone( bool success )
return;
}
- QString extractDir = m_extractTo_targetDirectory.path();
+ TQString extractDir = m_extractTo_targetDirectory.path();
// little code duplication from action_extract():
if ( !m_extractTo_targetDirectory.isLocalFile() )
{
@@ -491,8 +491,8 @@ ArkWidget::extractToSlotOpenDone( bool success )
}
}
- QStringList empty;
- QStringList alreadyExisting = existingFiles( extractDir, empty );
+ TQStringList empty;
+ TQStringList alreadyExisting = existingFiles( extractDir, empty );
kdDebug( 1601 ) << "Already existing files count: " << existingFiles( extractDir, empty ).count() << endl;
bool keepGoing = true;
if ( !ArkSettings::extractOverwrite() && !alreadyExisting.isEmpty() )
@@ -508,7 +508,7 @@ ArkWidget::extractToSlotOpenDone( bool success )
if ( ArkUtils::diskHasSpace( extractDir, m_nSizeOfFiles ) )
{
disableAll();
- connect( arch, SIGNAL( sigExtract( bool ) ), this, SLOT( extractToSlotExtractDone( bool ) ) );
+ connect( arch, TQT_SIGNAL( sigExtract( bool ) ), this, TQT_SLOT( extractToSlotExtractDone( bool ) ) );
arch->unarchFile( 0, extractDir );
}
else
@@ -525,7 +525,7 @@ ArkWidget::extractToSlotOpenDone( bool success )
void
ArkWidget::extractToSlotExtractDone( bool success )
{
- disconnect( arch, SIGNAL( sigExtract( bool ) ), this, SLOT( extractToSlotExtractDone( bool ) ) );
+ disconnect( arch, TQT_SIGNAL( sigExtract( bool ) ), this, TQT_SLOT( extractToSlotExtractDone( bool ) ) );
if ( !success )
{
kdDebug( 1601 ) << "Last Shell Output" << arch->getLastShellOutput() << endl;
@@ -536,7 +536,7 @@ ArkWidget::extractToSlotExtractDone( bool success )
if ( m_extractRemote )
{
- connect( this, SIGNAL( extractRemoteMovingDone() ), this, SIGNAL( request_file_quit() ) );
+ connect( this, TQT_SIGNAL( extractRemoteMovingDone() ), this, TQT_SIGNAL( request_file_quit() ) );
extractRemoteInitiateMoving( m_extractTo_targetDirectory );
}
else
@@ -552,9 +552,9 @@ ArkWidget::addToArchive( const KURL::List & filesToAdd, const KURL & archive)
{
if ( !m_openAsMimeType.isEmpty() )
{
- QStringList extensions = KMimeType::mimeType( m_openAsMimeType )->patterns();
- QStringList::Iterator it = extensions.begin();
- QString file = archive.path();
+ TQStringList extensions = KMimeType::mimeType( m_openAsMimeType )->patterns();
+ TQStringList::Iterator it = extensions.begin();
+ TQString file = archive.path();
for ( ; it != extensions.end() && !file.endsWith( ( *it ).remove( '*' ) ); ++it )
;
@@ -565,7 +565,7 @@ ArkWidget::addToArchive( const KURL::List & filesToAdd, const KURL & archive)
}
}
- connect( this, SIGNAL( createDone( bool ) ), this, SLOT( addToArchiveSlotCreateDone( bool ) ) );
+ connect( this, TQT_SIGNAL( createDone( bool ) ), this, TQT_SLOT( addToArchiveSlotCreateDone( bool ) ) );
// TODO: remote Archives should be handled by createArchive
if ( archive.isLocalFile() )
@@ -581,14 +581,14 @@ ArkWidget::addToArchive( const KURL::List & filesToAdd, const KURL & archive)
return true;
}
- connect( this, SIGNAL( openDone( bool ) ), this, SLOT( addToArchiveSlotOpenDone( bool ) ) );
+ connect( this, TQT_SIGNAL( openDone( bool ) ), this, TQT_SLOT( addToArchiveSlotOpenDone( bool ) ) );
return true;
}
void
ArkWidget::addToArchiveSlotCreateDone( bool success )
{
- disconnect( this, SIGNAL( createDone( bool ) ), this, SLOT( addToArchiveSlotCreateDone( bool ) ) );
+ disconnect( this, TQT_SIGNAL( createDone( bool ) ), this, TQT_SLOT( addToArchiveSlotCreateDone( bool ) ) );
if ( !success )
{
kdDebug( 1601 ) << "Could not create the archive" << endl;
@@ -602,7 +602,7 @@ void
ArkWidget::addToArchiveSlotOpenDone( bool success )
{
kdDebug( 1601 ) << k_funcinfo << endl;
- disconnect( this, SIGNAL( openDone( bool ) ), this, SLOT( addToArchiveSlotOpenDone( bool ) ) );
+ disconnect( this, TQT_SIGNAL( openDone( bool ) ), this, TQT_SLOT( addToArchiveSlotOpenDone( bool ) ) );
// TODO: handle dirs with addDir ( or better+easier: get rid of the need to do that entirely )
if ( !success )
{
@@ -612,12 +612,12 @@ ArkWidget::addToArchiveSlotOpenDone( bool success )
if ( m_bIsSimpleCompressedFile && (m_nNumFiles == 1))
{
- QString strFilename;
+ TQString strFilename;
KURL url = askToCreateRealArchive();
strFilename = url.path();
if (!strFilename.isEmpty())
{
- connect( this, SIGNAL( createRealArchiveDone( bool ) ), this, SLOT( addToArchiveSlotAddDone( bool ) ) );
+ connect( this, TQT_SIGNAL( createRealArchiveDone( bool ) ), this, TQT_SLOT( addToArchiveSlotAddDone( bool ) ) );
createRealArchive( strFilename, m_addToArchive_filesToAdd.toStringList() );
return;
}
@@ -628,7 +628,7 @@ ArkWidget::addToArchiveSlotOpenDone( bool success )
}
}
-/* QStringList list = m_addToArchive_filesToAdd.toStringList();
+/* TQStringList list = m_addToArchive_filesToAdd.toStringList();
if ( !ArkUtils::diskHasSpace( tmpDir(), ArkUtils::getSizes( &list ) ) )
{
KMessageBox::error( this, i18n( "Not enough free disc space to extract the archive." ) );
@@ -639,10 +639,10 @@ ArkWidget::addToArchiveSlotOpenDone( bool success )
disableAll();
// if they are URLs, we have to download them, replace the URLs
// with filenames, and remember to delete the temporaries later.
-/* for ( QStringList::Iterator it = list.begin();
+/* for ( TQStringList::Iterator it = list.begin();
it != list.end(); ++it)
{
- QString str = *it;
+ TQString str = *it;
KURL url( toLocalFile( str ) );
*it = url.prettyURL();
}
@@ -662,7 +662,7 @@ ArkWidget::addToArchiveSlotOpenDone( bool success )
kdDebug( 1601 ) << "Adding: " << list << endl;
- connect( arch, SIGNAL( sigAdd( bool ) ), this, SLOT( addToArchiveSlotAddDone( bool ) ) );
+ connect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( addToArchiveSlotAddDone( bool ) ) );
arch->addFile( list.toStringList() );
}
@@ -670,7 +670,7 @@ void
ArkWidget::addToArchiveSlotAddDone( bool success )
{
kdDebug( 1601 ) << k_funcinfo << endl;
- disconnect( this, SLOT( addToArchiveSlotAddDone( bool ) ) );
+ disconnect( this, TQT_SLOT( addToArchiveSlotAddDone( bool ) ) );
if ( !success )
{
KMessageBox::error( this, i18n( "An error occurred while adding the files to the archive." ) );
@@ -681,7 +681,7 @@ ArkWidget::addToArchiveSlotAddDone( bool success )
return;
}
-void ArkWidget::setOpenAsMimeType( const QString & mimeType )
+void ArkWidget::setOpenAsMimeType( const TQString & mimeType )
{
m_openAsMimeType = mimeType;
}
@@ -705,11 +705,11 @@ ArkWidget::file_open(const KURL& url)
}
- QString strFile = url.path();
+ TQString strFile = url.path();
kdDebug( 1601 ) << "File to open: " << strFile << endl;
- QFileInfo fileInfo( strFile );
+ TQFileInfo fileInfo( strFile );
if ( !fileInfo.exists() )
{
KMessageBox::error(this, i18n("The archive %1 does not exist.").arg(strFile));
@@ -746,17 +746,17 @@ ArkWidget::file_open(const KURL& url)
// File menu /////////////////////////////////////////////////////////
KURL
-ArkWidget::getCreateFilename(const QString & _caption,
- const QString & _defaultMimeType,
+ArkWidget::getCreateFilename(const TQString & _caption,
+ const TQString & _defaultMimeType,
bool allowCompressed,
- const QString & _suggestedName )
+ const TQString & _suggestedName )
{
int choice=0;
bool fileExists = true;
- QString strFile;
+ TQString strFile;
KURL url;
- KFileDialog dlg( ":ArkSaveAsDialog", QString::null, this, "SaveAsDialog", true );
+ KFileDialog dlg( ":ArkSaveAsDialog", TQString::null, this, "SaveAsDialog", true );
dlg.setCaption( _caption );
dlg.setOperationMode( KFileDialog::Saving );
dlg.setMimeFilter( ArchiveFormatInfo::self()->supportedMimeTypes( allowCompressed ),
@@ -775,16 +775,16 @@ ArkWidget::getCreateFilename(const QString & _caption,
strFile = url.path();
if (strFile.isEmpty())
- return QString::null;
+ return TQString::null;
//the user chose to save as the current archive
//or wanted to create a new one with the same name
//no need to do anything
if (strFile == m_strArchName && m_bIsArchiveOpen)
- return QString::null;
+ return TQString::null;
- QStringList extensions = dlg.currentFilterMimeType()->patterns();
- QStringList::Iterator it = extensions.begin();
+ TQStringList extensions = dlg.currentFilterMimeType()->patterns();
+ TQStringList::Iterator it = extensions.begin();
for ( ; it != extensions.end() && !strFile.endsWith( ( *it ).remove( '*' ) ); ++it )
;
@@ -795,7 +795,7 @@ ArkWidget::getCreateFilename(const QString & _caption,
}
kdDebug(1601) << "Trying to create an archive named " << strFile << endl;
- fileExists = QFile::exists( strFile );
+ fileExists = TQFile::exists( strFile );
if( fileExists )
{
choice = KMessageBox::warningYesNoCancel(0,
@@ -804,12 +804,12 @@ ArkWidget::getCreateFilename(const QString & _caption,
if ( choice == KMessageBox::Yes )
{
- QFile::remove( strFile );
+ TQFile::remove( strFile );
break;
}
else if ( choice == KMessageBox::Cancel )
{
- return QString::null;
+ return TQString::null;
}
else
{
@@ -822,7 +822,7 @@ ArkWidget::getCreateFilename(const QString & _caption,
KMessageBox::error( this,
i18n( "You do not have permission"
" to write to the directory %1" ).arg(url.directory() ) );
- return QString::null;
+ return TQString::null;
}
} // end of while loop
@@ -832,7 +832,7 @@ ArkWidget::getCreateFilename(const QString & _caption,
void
ArkWidget::file_new()
{
- QString strFile;
+ TQString strFile;
KURL url = getCreateFilename(i18n("Create New Archive") );
strFile = url.path();
if (!strFile.isEmpty())
@@ -858,8 +858,8 @@ ArkWidget::extractOnlyOpenDone()
void
ArkWidget::slotExtractDone(bool success)
{
- disconnect( arch, SIGNAL( sigExtract( bool ) ),
- this, SLOT( slotExtractDone(bool) ) );
+ disconnect( arch, TQT_SIGNAL( sigExtract( bool ) ),
+ this, TQT_SLOT( slotExtractDone(bool) ) );
ready();
if(m_extractList != 0)
@@ -894,19 +894,19 @@ ArkWidget::extractRemoteInitiateMoving( const KURL & target )
{
KURL srcDirURL;
KURL src;
- QString srcDir;
+ TQString srcDir;
srcDir = m_extractRemoteTmpDir->name();
srcDirURL.setPath( srcDir );
- QDir dir( srcDir );
- dir.setFilter( QDir::All | QDir::Hidden );
- QStringList lst( dir.entryList() );
+ TQDir dir( srcDir );
+ dir.setFilter( TQDir::All | TQDir::Hidden );
+ TQStringList lst( dir.entryList() );
lst.remove( "." );
lst.remove( ".." );
KURL::List srcList;
- for( QStringList::ConstIterator it = lst.begin(); it != lst.end() ; ++it)
+ for( TQStringList::ConstIterator it = lst.begin(); it != lst.end() ; ++it)
{
src = srcDirURL;
src.addPath( *it );
@@ -916,8 +916,8 @@ ArkWidget::extractRemoteInitiateMoving( const KURL & target )
m_extractURL.adjustPath( 1 );
KIO::CopyJob *job = KIO::copy( srcList, target, this );
- connect( job, SIGNAL(result(KIO::Job*)),
- this, SLOT(slotExtractRemoteDone(KIO::Job*)) );
+ connect( job, TQT_SIGNAL(result(KIO::Job*)),
+ this, TQT_SLOT(slotExtractRemoteDone(KIO::Job*)) );
m_extractRemote = false;
}
@@ -957,7 +957,7 @@ ArkWidget::file_close()
if ( isArchiveOpen() )
{
closeArch();
- emit setWindowCaption( QString::null );
+ emit setWindowCaption( TQString::null );
emit removeOpenArk( m_strArchName );
updateStatusTotals();
updateStatusSelection();
@@ -968,7 +968,7 @@ ArkWidget::file_close()
closeArch();
}
- m_strArchName = QString::null;
+ m_strArchName = TQString::null;
m_url = KURL();
}
@@ -984,22 +984,22 @@ ArkWidget::askToCreateRealArchive()
if (choice == KMessageBox::Yes)
{
url = getCreateFilename( i18n("Create New Archive"),
- QString::null, false );
+ TQString::null, false );
}
else
- url.setPath( QString::null );
+ url.setPath( TQString::null );
return url;
}
void
-ArkWidget::createRealArchive( const QString & strFilename, const QStringList & filesToAdd )
+ArkWidget::createRealArchive( const TQString & strFilename, const TQStringList & filesToAdd )
{
Arch * newArch = getNewArchive( strFilename );
busy( i18n( "Creating archive..." ) );
if ( !newArch )
return;
if ( !filesToAdd.isEmpty() )
- m_pTempAddList = new QStringList( filesToAdd );
+ m_pTempAddList = new TQStringList( filesToAdd );
m_compressedFile = static_cast< CompressedFile * >( arch )->tempFileName();
KURL u1, u2;
u1.setPath( m_compressedFile );
@@ -1007,28 +1007,28 @@ ArkWidget::createRealArchive( const QString & strFilename, const QStringList & f
u2.setPath( m_createRealArchTmpDir->name() + u1.fileName() );
KIO::NetAccess::copy( u1, u2, this );
m_compressedFile = "file:" + u2.path(); // AGAIN THE 5 SPACES Hack :-(
- connect( newArch, SIGNAL( sigCreate( Arch *, bool, const QString &, int ) ),
- this, SLOT( createRealArchiveSlotCreate( Arch *, bool,
- const QString &, int ) ) );
+ connect( newArch, TQT_SIGNAL( sigCreate( Arch *, bool, const TQString &, int ) ),
+ this, TQT_SLOT( createRealArchiveSlotCreate( Arch *, bool,
+ const TQString &, int ) ) );
file_close();
newArch->create();
}
void
ArkWidget::createRealArchiveSlotCreate( Arch * newArch, bool success,
- const QString & fileName, int nbr )
+ const TQString & fileName, int nbr )
{
slotCreate( newArch, success, fileName, nbr );
if ( !success )
return;
- QStringList listForCompressedFile;
+ TQStringList listForCompressedFile;
listForCompressedFile.append(m_compressedFile);
disableAll();
- connect( newArch, SIGNAL( sigAdd( bool ) ), this,
- SLOT( createRealArchiveSlotAddDone( bool ) ) );
+ connect( newArch, TQT_SIGNAL( sigAdd( bool ) ), this,
+ TQT_SLOT( createRealArchiveSlotAddDone( bool ) ) );
newArch->addFile(listForCompressedFile);
}
@@ -1037,8 +1037,8 @@ void
ArkWidget::createRealArchiveSlotAddDone( bool success )
{
kdDebug( 1601 ) << "createRealArchiveSlotAddDone+, success:" << success << endl;
- disconnect( arch, SIGNAL( sigAdd( bool ) ), this,
- SLOT( createRealArchiveSlotAddDone( bool ) ) );
+ disconnect( arch, TQT_SIGNAL( sigAdd( bool ) ), this,
+ TQT_SLOT( createRealArchiveSlotAddDone( bool ) ) );
m_createRealArchTmpDir->unlink();
delete m_createRealArchTmpDir;
@@ -1058,8 +1058,8 @@ ArkWidget::createRealArchiveSlotAddDone( bool success )
}
else
{
- connect( arch, SIGNAL( sigAdd( bool ) ), this,
- SLOT( createRealArchiveSlotAddFilesDone( bool ) ) );
+ connect( arch, TQT_SIGNAL( sigAdd( bool ) ), this,
+ TQT_SLOT( createRealArchiveSlotAddFilesDone( bool ) ) );
// files were dropped in
addFile( m_pTempAddList );
}
@@ -1069,8 +1069,8 @@ void
ArkWidget::createRealArchiveSlotAddFilesDone( bool success )
{
//kdDebug( 1601 ) << "createRealArchiveSlotAddFilesDone+, success:" << success << endl;
- disconnect( arch, SIGNAL( sigAdd( bool ) ), this,
- SLOT( createRealArchiveSlotAddFilesDone( bool ) ) );
+ disconnect( arch, TQT_SIGNAL( sigAdd( bool ) ), this,
+ TQT_SLOT( createRealArchiveSlotAddFilesDone( bool ) ) );
delete m_pTempAddList;
m_pTempAddList = NULL;
emit createRealArchiveDone( success );
@@ -1086,7 +1086,7 @@ ArkWidget::action_add()
{
if (m_bIsSimpleCompressedFile && (m_nNumFiles == 1))
{
- QString strFilename;
+ TQString strFilename;
KURL url = askToCreateRealArchive();
strFilename = url.path();
if (!strFilename.isEmpty())
@@ -1096,7 +1096,7 @@ ArkWidget::action_add()
return;
}
- KFileDialog fileDlg( ":ArkAddDir", QString::null, this, "adddlg", true );
+ KFileDialog fileDlg( ":ArkAddDir", TQString::null, this, "adddlg", true );
fileDlg.setMode( KFile::Mode( KFile::Files | KFile::ExistingOnly ) );
fileDlg.setCaption(i18n("Select Files to Add"));
@@ -1104,7 +1104,7 @@ ArkWidget::action_add()
{
KURL::List addList;
addList = fileDlg.selectedURLs();
- QStringList * list = new QStringList();
+ TQStringList * list = new TQStringList();
//Here we pre-calculate the end of the list
KURL::List::ConstIterator endList = addList.end();
for (KURL::List::ConstIterator it = addList.begin(); it != endList; ++it)
@@ -1114,7 +1114,7 @@ ArkWidget::action_add()
{
if ( m_bIsSimpleCompressedFile && list->count() > 1 )
{
- QString strFilename;
+ TQString strFilename;
KURL url = askToCreateRealArchive();
strFilename = url.path();
if (!strFilename.isEmpty())
@@ -1131,7 +1131,7 @@ ArkWidget::action_add()
}
void
-ArkWidget::addFile(QStringList *list)
+ArkWidget::addFile(TQStringList *list)
{
if ( !ArkUtils::diskHasSpace( tmpDir(), ArkUtils::getSizes( list ) ) )
return;
@@ -1140,14 +1140,14 @@ ArkWidget::addFile(QStringList *list)
busy( i18n( "Adding files..." ) );
// if they are URLs, we have to download them, replace the URLs
// with filenames, and remember to delete the temporaries later.
- for (QStringList::Iterator it = list->begin(); it != list->end(); ++it)
+ for (TQStringList::Iterator it = list->begin(); it != list->end(); ++it)
{
- QString str = *it;
+ TQString str = *it;
*it = toLocalFile(KURL(str)).prettyURL();
}
- connect( arch, SIGNAL( sigAdd( bool ) ), this, SLOT( slotAddDone( bool ) ) );
+ connect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( slotAddDone( bool ) ) );
arch->addFile( ( *list ) );
}
@@ -1158,13 +1158,13 @@ ArkWidget::action_add_dir()
false, this,
i18n("Select Folder to Add"));
- QString dir = KURL::decode_string( u.url(-1) );
+ TQString dir = KURL::decode_string( u.url(-1) );
if ( !dir.isEmpty() )
{
busy( i18n( "Adding folder..." ) );
disableAll();
u = toLocalFile(u);
- connect( arch, SIGNAL( sigAdd( bool ) ), this, SLOT( slotAddDone( bool ) ) );
+ connect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( slotAddDone( bool ) ) );
arch->addDir( u.prettyURL() );
}
@@ -1173,7 +1173,7 @@ ArkWidget::action_add_dir()
void
ArkWidget::slotAddDone(bool _bSuccess)
{
- disconnect( arch, SIGNAL( sigAdd( bool ) ), this, SLOT( slotAddDone( bool ) ) );
+ disconnect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( slotAddDone( bool ) ) );
m_fileListView->setUpdatesEnabled(true);
m_fileListView->triggerUpdate();
ready();
@@ -1201,9 +1201,9 @@ ArkWidget::toLocalFile( const KURL& url )
if(!url.isLocalFile())
{
- QString strURL = url.prettyURL();
+ TQString strURL = url.prettyURL();
- QString tempfile = tmpDir();
+ TQString tempfile = tmpDir();
tempfile += strURL.right(strURL.length() - strURL.findRev("/") - 1);
deleteAfterUse(tempfile); // remember for deletion
KURL tempurl; tempurl.setPath( tempfile );
@@ -1215,7 +1215,7 @@ ArkWidget::toLocalFile( const KURL& url )
}
void
-ArkWidget::deleteAfterUse( const QString& path )
+ArkWidget::deleteAfterUse( const TQString& path )
{
mpDownloadedList.append( path );
}
@@ -1228,10 +1228,10 @@ ArkWidget::removeDownloadedFiles()
// It is necessary to remove those files even if tmpDir() is getting deleted:
// not all files in mpDownloadedList are from tmpDir() - e.g. when using --tempfile
// But of course we could decide to not add files from tmpDir() into mpDownloadedList.
- QStringList::ConstIterator it = mpDownloadedList.begin();
- QStringList::ConstIterator end = mpDownloadedList.end();
+ TQStringList::ConstIterator it = mpDownloadedList.begin();
+ TQStringList::ConstIterator end = mpDownloadedList.end();
for ( ; it != end ; ++it )
- QFile::remove( *it );
+ TQFile::remove( *it );
mpDownloadedList.clear();
}
}
@@ -1249,13 +1249,13 @@ ArkWidget::action_delete()
return; // shouldn't happen - delete should have been disabled!
}
- QStringList list = m_fileListView->selectedFilenames();
+ TQStringList list = m_fileListView->selectedFilenames();
// ask for confirmation
if ( KMessageBox::warningContinueCancelList( this,
i18n( "Do you really want to delete the selected items?" ),
list,
- QString::null,
+ TQString::null,
KStdGuiItem::del(),
"confirmDelete" )
!= KMessageBox::Continue)
@@ -1264,7 +1264,7 @@ ArkWidget::action_delete()
}
// Remove the entries from the list view
- QListViewItemIterator it( m_fileListView );
+ TQListViewItemIterator it( m_fileListView );
while ( it.current() )
{
if ( it.current()->isSelected() )
@@ -1275,7 +1275,7 @@ ArkWidget::action_delete()
disableAll();
busy( i18n( "Removing..." ) );
- connect( arch, SIGNAL( sigDelete( bool ) ), this, SLOT( slotDeleteDone( bool ) ) );
+ connect( arch, TQT_SIGNAL( sigDelete( bool ) ), this, TQT_SLOT( slotDeleteDone( bool ) ) );
arch->remove(&list);
kdDebug(1601) << "-ArkWidget::action_delete" << endl;
}
@@ -1283,7 +1283,7 @@ ArkWidget::action_delete()
void
ArkWidget::slotDeleteDone(bool _bSuccess)
{
- disconnect( arch, SIGNAL( sigDelete( bool ) ), this, SLOT( slotDeleteDone( bool ) ) );
+ disconnect( arch, TQT_SIGNAL( sigDelete( bool ) ), this, TQT_SLOT( slotDeleteDone( bool ) ) );
kdDebug(1601) << "+ArkWidget::slotDeleteDone" << endl;
m_fileListView->setUpdatesEnabled(true);
m_fileListView->triggerUpdate();
@@ -1305,8 +1305,8 @@ ArkWidget::slotDeleteDone(bool _bSuccess)
void
ArkWidget::slotOpenWith()
{
- connect( arch, SIGNAL( sigExtract( bool ) ), this,
- SLOT( openWithSlotExtractDone( bool ) ) );
+ connect( arch, TQT_SIGNAL( sigExtract( bool ) ), this,
+ TQT_SLOT( openWithSlotExtractDone( bool ) ) );
showCurrentFile();
}
@@ -1314,14 +1314,14 @@ ArkWidget::slotOpenWith()
void
ArkWidget::openWithSlotExtractDone( bool success )
{
- disconnect( arch, SIGNAL( sigExtract( bool ) ), this,
- SLOT( openWithSlotExtractDone( bool ) ) );
+ disconnect( arch, TQT_SIGNAL( sigExtract( bool ) ), this,
+ TQT_SLOT( openWithSlotExtractDone( bool ) ) );
if ( success )
{
KURL::List list;
list.append(m_viewURL);
- KOpenWithDlg l( list, i18n("Open with:"), QString::null, (QWidget*)0L);
+ KOpenWithDlg l( list, i18n("Open with:"), TQString::null, (TQWidget*)0L);
if ( l.exec() )
{
KService::Ptr service = l.service();
@@ -1331,7 +1331,7 @@ ArkWidget::openWithSlotExtractDone( bool success )
}
else
{
- QString exec = l.text();
+ TQString exec = l.text();
exec += " %f";
KRun::run( exec, list );
}
@@ -1347,22 +1347,22 @@ ArkWidget::openWithSlotExtractDone( bool success )
void
-ArkWidget::prepareViewFiles( const QStringList & fileList )
+ArkWidget::prepareViewFiles( const TQStringList & fileList )
{
- QString destTmpDirectory;
+ TQString destTmpDirectory;
destTmpDirectory = tmpDir();
// Make sure to delete previous file already there...
- for(QStringList::ConstIterator it = fileList.begin();
+ for(TQStringList::ConstIterator it = fileList.begin();
it != fileList.end(); ++it)
- QFile::remove(destTmpDirectory + *it);
+ TQFile::remove(destTmpDirectory + *it);
- m_viewList = new QStringList( fileList );
+ m_viewList = new TQStringList( fileList );
arch->unarchFile( m_viewList, destTmpDirectory, true);
}
bool
-ArkWidget::reportExtractFailures( const QString & _dest, QStringList *_list )
+ArkWidget::reportExtractFailures( const TQString & _dest, TQStringList *_list )
{
// reports extract failures when Overwrite = False and the file
// exists already in the destination directory.
@@ -1370,10 +1370,10 @@ ArkWidget::reportExtractFailures( const QString & _dest, QStringList *_list )
// Otherwise the list contains the files we are to extract.
bool redoExtraction = false;
- QString strFilename;
+ TQString strFilename;
- QStringList list = *_list;
- QStringList filesExisting = existingFiles( _dest, list );
+ TQStringList list = *_list;
+ TQStringList filesExisting = existingFiles( _dest, list );
int numFilesToReport = filesExisting.count();
@@ -1390,11 +1390,11 @@ ArkWidget::reportExtractFailures( const QString & _dest, QStringList *_list )
}
QStringList
-ArkWidget::existingFiles( const QString & _dest, QStringList & _list )
+ArkWidget::existingFiles( const TQString & _dest, TQStringList & _list )
{
- QString strFilename, tmp;
+ TQString strFilename, tmp;
- QString strDestDir = _dest;
+ TQString strDestDir = _dest;
// make sure the destination directory has a / at the end.
if ( !strDestDir.endsWith( "/" ) )
@@ -1407,15 +1407,15 @@ ArkWidget::existingFiles( const QString & _dest, QStringList & _list )
_list = m_fileListView->fileNames();
}
- QStringList existingFiles;
+ TQStringList existingFiles;
// now the list contains all the names we must verify.
- for (QStringList::Iterator it = _list.begin(); it != _list.end(); ++it)
+ for (TQStringList::Iterator it = _list.begin(); it != _list.end(); ++it)
{
strFilename = *it;
- QString strFullName = strDestDir + strFilename;
+ TQString strFullName = strDestDir + strFilename;
// if the filename ends with an "/", it means it is a directory
- if ( QFile::exists( strFullName ) && !strFilename.endsWith("/") )
+ if ( TQFile::exists( strFullName ) && !strFilename.endsWith("/") )
{
existingFiles.append( strFilename );
}
@@ -1441,20 +1441,20 @@ ArkWidget::action_extract()
}
//if more than one entry in the archive is root level, suggest a path prefix
- QString prefix = m_fileListView->childCount() > 1 ?
- QChar( '/' ) + guessName( realURL() )
- : QString();
+ TQString prefix = m_fileListView->childCount() > 1 ?
+ TQChar( '/' ) + guessName( realURL() )
+ : TQString();
// Should the extraction dialog show an option for extracting only selected files?
bool enableSelected = ( m_nNumSelectedFiles > 0 ) &&
( m_fileListView->totalFiles() > 1);
- QString base = ArkSettings::extractionHistory().isEmpty()?
- QString() : ArkSettings::extractionHistory().first();
+ TQString base = ArkSettings::extractionHistory().isEmpty()?
+ TQString() : ArkSettings::extractionHistory().first();
if ( base.isEmpty() )
{
// Perhaps the KDE Documents folder is a better choice?
- base = QDir::homeDirPath();
+ base = TQDir::homeDirPath();
}
// Default URL shown in the extraction dialog;
@@ -1462,7 +1462,7 @@ ArkWidget::action_extract()
if ( m_extractOnly )
{
- defaultDir = KURL::fromPathOrURL( QDir::currentDirPath() );
+ defaultDir = KURL::fromPathOrURL( TQDir::currentDirPath() );
}
ExtractionDialog *dlg = new ExtractionDialog( this, 0, enableSelected, defaultDir, prefix, m_url.fileName() );
@@ -1479,7 +1479,7 @@ ArkWidget::action_extract()
//extractDir will either be the real, local extract dir,
//or in case of a extract to remote location, a local tmp dir
- QString extractDir;
+ TQString extractDir;
if ( !m_extractURL.isLocalFile() )
{
@@ -1519,7 +1519,7 @@ ArkWidget::action_extract()
{
disableAll();
busy( i18n( "Extracting..." ) );
- connect( arch, SIGNAL( sigExtract( bool ) ), this, SLOT( slotExtractDone(bool) ) );
+ connect( arch, TQT_SIGNAL( sigExtract( bool ) ), this, TQT_SLOT( slotExtractDone(bool) ) );
arch->unarchFile(0, extractDir);
}
}
@@ -1528,12 +1528,12 @@ ArkWidget::action_extract()
{
KIO::filesize_t nTotalSize = 0;
// make a list to send to unarchFile
- QStringList selectedFiles = m_fileListView->selectedFilenames();
- for ( QStringList::const_iterator it = selectedFiles.constBegin();
+ TQStringList selectedFiles = m_fileListView->selectedFilenames();
+ for ( TQStringList::const_iterator it = selectedFiles.constBegin();
it != selectedFiles.constEnd();
++it )
{
- m_extractList->append( QFile::encodeName( *it ) );
+ m_extractList->append( TQFile::encodeName( *it ) );
}
if (!bOvwrt)
@@ -1546,8 +1546,8 @@ ArkWidget::action_extract()
{
disableAll();
busy( i18n( "Extracting..." ) );
- connect( arch, SIGNAL( sigExtract( bool ) ),
- this, SLOT( slotExtractDone(bool) ) );
+ connect( arch, TQT_SIGNAL( sigExtract( bool ) ),
+ this, TQT_SLOT( slotExtractDone(bool) ) );
arch->unarchFile(m_extractList, extractDir); // extract selected files
}
}
@@ -1580,16 +1580,16 @@ ArkWidget::action_edit()
// [hmm, does that really make sense? I'll leave it for now.]
busy( i18n( "Extracting..." ) );
- connect( arch, SIGNAL( sigExtract( bool ) ), this,
- SLOT( editSlotExtractDone() ) );
+ connect( arch, TQT_SIGNAL( sigExtract( bool ) ), this,
+ TQT_SLOT( editSlotExtractDone() ) );
showCurrentFile();
}
void
ArkWidget::editSlotExtractDone()
{
- disconnect( arch, SIGNAL( sigExtract( bool ) ),
- this, SLOT( editSlotExtractDone() ) );
+ disconnect( arch, TQT_SIGNAL( sigExtract( bool ) ),
+ this, TQT_SLOT( editSlotExtractDone() ) );
ready();
editStart();
@@ -1608,14 +1608,14 @@ ArkWidget::editStart()
KURL::List list;
// edit will be in progress until the KProcess terminates.
KOpenWithDlg l( list, i18n("Edit with:"),
- QString::null, (QWidget*)0L );
+ TQString::null, (TQWidget*)0L );
if ( l.exec() )
{
KProcess *kp = new KProcess;
*kp << l.text() << m_strFileToView;
- connect( kp, SIGNAL(processExited(KProcess *)),
- this, SLOT(slotEditFinished(KProcess *)) );
+ connect( kp, TQT_SIGNAL(processExited(KProcess *)),
+ this, TQT_SLOT(slotEditFinished(KProcess *)) );
if ( kp->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false )
{
KMessageBox::error(0, i18n("Trouble editing the file..."));
@@ -1627,9 +1627,9 @@ void
ArkWidget::slotEditFinished(KProcess *kp)
{
kdDebug(1601) << "+ArkWidget::slotEditFinished" << endl;
- connect( arch, SIGNAL( sigAdd( bool ) ), this, SLOT( editSlotAddDone( bool ) ) );
+ connect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( editSlotAddDone( bool ) ) );
delete kp;
- QStringList list;
+ TQStringList list;
// now put the file back into the archive.
list.append(m_strFileToView);
disableAll();
@@ -1640,16 +1640,16 @@ ArkWidget::slotEditFinished(KProcess *kp)
// If the filename has more than three /'s then we should
// change to the first level directory so that the paths
// come out right.
- QStringList::Iterator it = list.begin();
- QString filename = *it;
- QString path;
+ TQStringList::Iterator it = list.begin();
+ TQString filename = *it;
+ TQString path;
if (filename.contains('/') > 3)
{
kdDebug(1601) << "Filename is originally: " << filename << endl;
int i = filename.find('/', 5);
path = filename.left(1+i);
kdDebug(1601) << "Changing to dir: " << path << endl;
- QDir::setCurrent(path);
+ TQDir::setCurrent(path);
filename = filename.right(filename.length()-i-1);
// HACK!! We need a relative path. If I have "file:", it
// will look like an absolute path. So five spaces here to get
@@ -1668,15 +1668,15 @@ void
ArkWidget::editSlotAddDone( bool success )
{
ready();
- disconnect( arch, SIGNAL( sigAdd( bool ) ), this, SLOT( editSlotAddDone( bool ) ) );
+ disconnect( arch, TQT_SIGNAL( sigAdd( bool ) ), this, TQT_SLOT( editSlotAddDone( bool ) ) );
slotAddDone( success );
}
void
ArkWidget::action_view()
{
- connect( arch, SIGNAL( sigExtract( bool ) ), this,
- SLOT( viewSlotExtractDone( bool ) ) );
+ connect( arch, TQT_SIGNAL( sigExtract( bool ) ), this,
+ TQT_SLOT( viewSlotExtractDone( bool ) ) );
busy( i18n( "Extracting file to view" ) );
showCurrentFile();
}
@@ -1686,7 +1686,7 @@ ArkWidget::viewSlotExtractDone( bool success )
{
if ( success )
{
- chmod( QFile::encodeName( m_strFileToView ), 0400 );
+ chmod( TQFile::encodeName( m_strFileToView ), 0400 );
bool view = true;
if ( ArkSettings::useIntegratedViewer() )
@@ -1695,8 +1695,8 @@ ArkWidget::viewSlotExtractDone( bool success )
if ( !viewer->view( m_viewURL ) )
{
- QString text = i18n( "The internal viewer is not able to display this file. Would you like to view it using an external program?" );
- view = ( KMessageBox::warningYesNo( this, text, QString::null, i18n("View Externally"), i18n("Do Not View") ) == KMessageBox::Yes );
+ TQString text = i18n( "The internal viewer is not able to display this file. Would you like to view it using an external program?" );
+ view = ( KMessageBox::warningYesNo( this, text, TQString::null, i18n("View Externally"), i18n("Do Not View") ) == KMessageBox::Yes );
if ( view )
viewInExternalViewer( this, m_viewURL );
@@ -1708,8 +1708,8 @@ ArkWidget::viewSlotExtractDone( bool success )
}
}
- disconnect( arch, SIGNAL( sigExtract( bool ) ), this,
- SLOT( viewSlotExtractDone( bool ) ) );
+ disconnect( arch, TQT_SIGNAL( sigExtract( bool ) ), this,
+ TQT_SLOT( viewSlotExtractDone( bool ) ) );
delete m_viewList;
@@ -1729,21 +1729,21 @@ ArkWidget::showCurrentFile()
if ( !m_fileListView->currentItem() )
return;
- QString name = m_fileListView->currentItem()->fileName();
+ TQString name = m_fileListView->currentItem()->fileName();
- QString fullname = tmpDir();
+ TQString fullname = tmpDir();
fullname += name;
if(fullname.contains("../"))
fullname.remove("../");
- //Convert the QString filename to KURL to escape the bad characters
+ //Convert the TQString filename to KURL to escape the bad characters
m_viewURL.setPath(fullname);
m_strFileToView = fullname;
kdDebug(1601) << "File to be extracted: " << m_viewURL << endl;
- QStringList extractList;
+ TQStringList extractList;
extractList.append(name);
if (ArkUtils::diskHasSpace( tmpDir(), m_fileListView->currentItem()->fileSize() ) )
@@ -1762,7 +1762,7 @@ ArkWidget::setArchivePopupEnabled( bool b )
}
void
-ArkWidget::doPopup( QListViewItem *pItem, const QPoint &pPoint, int nCol ) // slot
+ArkWidget::doPopup( TQListViewItem *pItem, const TQPoint &pPoint, int nCol ) // slot
// do the right-click popup menus
{
if ( nCol == 0 || !m_bArchivePopupEnabled )
@@ -1779,7 +1779,7 @@ ArkWidget::doPopup( QListViewItem *pItem, const QPoint &pPoint, int nCol ) // sl
void
-ArkWidget::viewFile( QListViewItem* item ) // slot
+ArkWidget::viewFile( TQListViewItem* item ) // slot
// show contents when double click
{
// Preview, if it is a file
@@ -1809,7 +1809,7 @@ ArkWidget::updateStatusSelection()
m_nNumSelectedFiles = m_fileListView->selectedFilesCount();
m_nSizeOfSelectedFiles = m_fileListView->selectedSize();
- QString strInfo;
+ TQString strInfo;
if (m_nNumSelectedFiles == 0)
{
strInfo = i18n("0 files selected");
@@ -1834,7 +1834,7 @@ ArkWidget::updateStatusSelection()
// Drag & Drop ////////////////////////////////////////////////////////
void
-ArkWidget::dragMoveEvent(QDragMoveEvent *e)
+ArkWidget::dragMoveEvent(TQDragMoveEvent *e)
{
if (KURLDrag::canDecode(e) && !m_bDropSourceIsSelf)
{
@@ -1844,7 +1844,7 @@ ArkWidget::dragMoveEvent(QDragMoveEvent *e)
void
-ArkWidget::dropEvent(QDropEvent* e)
+ArkWidget::dropEvent(TQDropEvent* e)
{
kdDebug( 1601 ) << "+ArkWidget::dropEvent" << endl;
@@ -1852,7 +1852,7 @@ ArkWidget::dropEvent(QDropEvent* e)
if ( KURLDrag::decode( e, list ) )
{
- QStringList urlList = list.toStringList();
+ TQStringList urlList = list.toStringList();
dropAction( urlList );
}
@@ -1864,7 +1864,7 @@ ArkWidget::dropEvent(QDropEvent* e)
//////////////////////////////////////////////////////////////////////
void
-ArkWidget::dropAction( QStringList & list )
+ArkWidget::dropAction( TQStringList & list )
{
// Called by dropEvent
@@ -1881,8 +1881,8 @@ ArkWidget::dropAction( QStringList & list )
// and don't forget about gzip files.
- QString str;
- QStringList urls; // to be sent to addFile
+ TQString str;
+ TQStringList urls; // to be sent to addFile
str = list.first();
@@ -1896,13 +1896,13 @@ ArkWidget::dropAction( QStringList & list )
// one or open it as the new current archive
int nRet = KMessageBox::warningYesNoCancel(this,
i18n("Do you wish to add this to the current archive or open it as a new archive?"),
- QString::null,
+ TQString::null,
i18n("&Add"), i18n("&Open"));
if (KMessageBox::Yes == nRet) // add it
{
if (m_bIsSimpleCompressedFile && (m_nNumFiles == 1))
{
- QString strFilename;
+ TQString strFilename;
KURL url = askToCreateRealArchive();
strFilename = url.path();
if (!strFilename.isEmpty())
@@ -1933,7 +1933,7 @@ ArkWidget::dropAction( QStringList & list )
{
if (m_bIsSimpleCompressedFile && (m_nNumFiles == 1))
{
- QString strFilename;
+ TQString strFilename;
KURL url = askToCreateRealArchive();
strFilename = url.path();
if (!strFilename.isEmpty())
@@ -1950,11 +1950,11 @@ ArkWidget::dropAction( QStringList & list )
// no archive is open, so we ask if the user wants to open one
// for this/these file/files.
- QString str;
+ TQString str;
str = (list.count() > 1)
? i18n("There is no archive currently open. Do you wish to create one now for these files?")
: i18n("There is no archive currently open. Do you wish to create one now for this file?");
- int nRet = KMessageBox::warningYesNo(this, str, QString::null, i18n("Create Archive"), i18n("Do Not Create"));
+ int nRet = KMessageBox::warningYesNo(this, str, TQString::null, i18n("Create Archive"), i18n("Do Not Create"));
if (nRet == KMessageBox::Yes) // yes
{
file_new();
@@ -1969,22 +1969,22 @@ ArkWidget::dropAction( QStringList & list )
}
void
-ArkWidget::startDrag( const QStringList & fileList )
+ArkWidget::startDrag( const TQStringList & fileList )
{
mDragFiles = fileList;
- connect( arch, SIGNAL( sigExtract( bool ) ), this, SLOT( startDragSlotExtractDone( bool ) ) );
+ connect( arch, TQT_SIGNAL( sigExtract( bool ) ), this, TQT_SLOT( startDragSlotExtractDone( bool ) ) );
prepareViewFiles( fileList );
}
void
ArkWidget::startDragSlotExtractDone( bool )
{
- disconnect( arch, SIGNAL( sigExtract( bool ) ),
- this, SLOT( startDragSlotExtractDone( bool ) ) );
+ disconnect( arch, TQT_SIGNAL( sigExtract( bool ) ),
+ this, TQT_SLOT( startDragSlotExtractDone( bool ) ) );
KURL::List list;
- for (QStringList::Iterator it = mDragFiles.begin(); it != mDragFiles.end(); ++it)
+ for (TQStringList::Iterator it = mDragFiles.begin(); it != mDragFiles.end(); ++it)
{
KURL url;
url.setPath( tmpDir() + *it );
@@ -1999,7 +1999,7 @@ ArkWidget::startDragSlotExtractDone( bool )
void
-ArkWidget::arkWarning(const QString& msg)
+ArkWidget::arkWarning(const TQString& msg)
{
KMessageBox::information(this, msg);
}
@@ -2012,26 +2012,26 @@ ArkWidget::createFileListView()
{
m_fileListView = new FileListView(this);
- connect( m_fileListView, SIGNAL( selectionChanged() ),
- this, SLOT( slotSelectionChanged() ) );
- connect( m_fileListView, SIGNAL( rightButtonPressed(QListViewItem *, const QPoint &, int) ),
- this, SLOT(doPopup(QListViewItem *, const QPoint &, int)));
- connect( m_fileListView, SIGNAL( startDragRequest( const QStringList & ) ),
- this, SLOT( startDrag( const QStringList & ) ) );
- connect( m_fileListView, SIGNAL( executed(QListViewItem *, const QPoint &, int ) ),
- this, SLOT( viewFile(QListViewItem*) ) );
- connect( m_fileListView, SIGNAL( returnPressed(QListViewItem * ) ),
- this, SLOT( viewFile(QListViewItem*) ) );
+ connect( m_fileListView, TQT_SIGNAL( selectionChanged() ),
+ this, TQT_SLOT( slotSelectionChanged() ) );
+ connect( m_fileListView, TQT_SIGNAL( rightButtonPressed(TQListViewItem *, const TQPoint &, int) ),
+ this, TQT_SLOT(doPopup(TQListViewItem *, const TQPoint &, int)));
+ connect( m_fileListView, TQT_SIGNAL( startDragRequest( const TQStringList & ) ),
+ this, TQT_SLOT( startDrag( const TQStringList & ) ) );
+ connect( m_fileListView, TQT_SIGNAL( executed(TQListViewItem *, const TQPoint &, int ) ),
+ this, TQT_SLOT( viewFile(TQListViewItem*) ) );
+ connect( m_fileListView, TQT_SIGNAL( returnPressed(TQListViewItem * ) ),
+ this, TQT_SLOT( viewFile(TQListViewItem*) ) );
}
m_fileListView->clear();
}
-Arch * ArkWidget::getNewArchive( const QString & _fileName, const QString& _mimetype )
+Arch * ArkWidget::getNewArchive( const TQString & _fileName, const TQString& _mimetype )
{
Arch * newArch = 0;
- QString type = _mimetype.isNull()? KMimeType::findByURL( KURL::fromPathOrURL(_fileName) )->name() : _mimetype;
+ TQString type = _mimetype.isNull()? KMimeType::findByURL( KURL::fromPathOrURL(_fileName) )->name() : _mimetype;
ArchType archtype = ArchiveFormatInfo::self()->archTypeForMimeType(type);
kdDebug( 1601 ) << "archtype is recognised as: " << archtype << endl;
if(0 == (newArch = Arch::archFactory(archtype, this,
@@ -2048,8 +2048,8 @@ Arch * ArkWidget::getNewArchive( const QString & _fileName, const QString& _mime
return NULL;
}
- connect( newArch, SIGNAL(headers(const ColumnList&)),
- m_fileListView, SLOT(setHeaders(const ColumnList&)));
+ connect( newArch, TQT_SIGNAL(headers(const ColumnList&)),
+ m_fileListView, TQT_SLOT(setHeaders(const ColumnList&)));
m_archType = archtype;
m_fileListView->setUpdatesEnabled(true);
@@ -2062,26 +2062,26 @@ Arch * ArkWidget::getNewArchive( const QString & _fileName, const QString& _mime
bool
-ArkWidget::createArchive( const QString & _filename )
+ArkWidget::createArchive( const TQString & _filename )
{
Arch * newArch = getNewArchive( _filename );
if ( !newArch )
return false;
busy( i18n( "Creating archive..." ) );
- connect( newArch, SIGNAL(sigCreate(Arch *, bool, const QString &, int) ),
- this, SLOT(slotCreate(Arch *, bool, const QString &, int) ) );
+ connect( newArch, TQT_SIGNAL(sigCreate(Arch *, bool, const TQString &, int) ),
+ this, TQT_SLOT(slotCreate(Arch *, bool, const TQString &, int) ) );
newArch->create();
return true;
}
void
-ArkWidget::slotCreate(Arch * _newarch, bool _success, const QString & _filename, int)
+ArkWidget::slotCreate(Arch * _newarch, bool _success, const TQString & _filename, int)
{
kdDebug( 1601 ) << k_funcinfo << endl;
- disconnect( _newarch, SIGNAL( sigCreate( Arch *, bool, const QString &, int ) ),
- this, SLOT(slotCreate(Arch *, bool, const QString &, int) ) );
+ disconnect( _newarch, TQT_SIGNAL( sigCreate( Arch *, bool, const TQString &, int ) ),
+ this, TQT_SLOT(slotCreate(Arch *, bool, const TQString &, int) ) );
ready();
if ( _success )
{
@@ -2115,7 +2115,7 @@ ArkWidget::slotCreate(Arch * _newarch, bool _success, const QString & _filename,
//////////////////////////////////////////////////////////////////////
void
-ArkWidget::openArchive( const QString & _filename )
+ArkWidget::openArchive( const TQString & _filename )
{
Arch *newArch = 0;
ArchType archtype;
@@ -2126,9 +2126,9 @@ ArkWidget::openArchive( const QString & _filename )
if ( info->wasUnknownExtension() )
{
ArchiveFormatDlg * dlg = new ArchiveFormatDlg( this, info->findMimeType( m_url ) );
- if ( !dlg->exec() == QDialog::Accepted )
+ if ( !dlg->exec() == TQDialog::Accepted )
{
- emit setWindowCaption( QString::null );
+ emit setWindowCaption( TQString::null );
emit removeRecentURL( m_realURL );
delete dlg;
file_close();
@@ -2148,7 +2148,7 @@ ArkWidget::openArchive( const QString & _filename )
if( 0 == ( newArch = Arch::archFactory( archtype, this,
_filename, m_openAsMimeType) ) )
{
- emit setWindowCaption( QString::null );
+ emit setWindowCaption( TQString::null );
emit removeRecentURL( m_realURL );
KMessageBox::error( this, i18n("Unknown archive format or corrupted archive") );
return;
@@ -2162,10 +2162,10 @@ ArkWidget::openArchive( const QString & _filename )
m_archType = archtype;
- connect( newArch, SIGNAL(sigOpen(Arch *, bool, const QString &, int)),
- this, SLOT(slotOpen(Arch *, bool, const QString &,int)) );
- connect( newArch, SIGNAL(headers(const ColumnList&)),
- m_fileListView, SLOT(setHeaders(const ColumnList&)));
+ connect( newArch, TQT_SIGNAL(sigOpen(Arch *, bool, const TQString &, int)),
+ this, TQT_SLOT(slotOpen(Arch *, bool, const TQString &,int)) );
+ connect( newArch, TQT_SIGNAL(headers(const ColumnList&)),
+ m_fileListView, TQT_SLOT(setHeaders(const ColumnList&)));
disableAll();
@@ -2177,7 +2177,7 @@ ArkWidget::openArchive( const QString & _filename )
}
void
-ArkWidget::slotOpen( Arch * /* _newarch */, bool _success, const QString & _filename, int )
+ArkWidget::slotOpen( Arch * /* _newarch */, bool _success, const TQString & _filename, int )
{
ready();
m_fileListView->setUpdatesEnabled(true);
@@ -2187,8 +2187,8 @@ ArkWidget::slotOpen( Arch * /* _newarch */, bool _success, const QString & _file
if ( _success )
{
- QFileInfo fi( _filename );
- QString path = fi.dirPath( true );
+ TQFileInfo fi( _filename );
+ TQString path = fi.dirPath( true );
if ( !fi.isWritable() )
{
@@ -2210,7 +2210,7 @@ ArkWidget::slotOpen( Arch * /* _newarch */, bool _success, const QString & _file
else
{
emit removeRecentURL( m_realURL );
- emit setWindowCaption( QString::null );
+ emit setWindowCaption( TQString::null );
KMessageBox::error( this, i18n( "An error occurred while trying to open the archive %1" ).arg( _filename ) );
if ( m_extractOnly )
@@ -2257,7 +2257,7 @@ void ArkWidget::showSettings(){
if ( offers.isEmpty() )
genPage->kcfg_KonquerorIntegration->setEnabled( false );
else
- genPage->konqIntegrationLabel->setText( QString::null );
+ genPage->konqIntegrationLabel->setText( TQString::null );
dialog->show();
diff --git a/ark/arkwidget.h b/ark/arkwidget.h
index 435fafa..75f5364 100644
--- a/ark/arkwidget.h
+++ b/ark/arkwidget.h
@@ -33,7 +33,7 @@
#include <kio/job.h>
#include <ktempdir.h>
-#include <qvbox.h>
+#include <tqvbox.h>
#include "arch.h"
class QPoint;
@@ -60,7 +60,7 @@ class ArkWidget : public QVBox
{
Q_OBJECT
public:
- ArkWidget( QWidget *parent=0, const char *name=0 );
+ ArkWidget( TQWidget *parent=0, const char *name=0 );
virtual ~ArkWidget();
bool isArchiveOpen() const { return m_bIsArchiveOpen; }
@@ -70,12 +70,12 @@ public:
void setArkInstanceId( int aid ) { m_arkInstanceId = aid; }
void cleanArkTmpDir();
- virtual QString getArchName() const { return m_strArchName; }
+ virtual TQString getArchName() const { return m_strArchName; }
const KURL& realURL() const { return m_realURL; }
void setRealURL( const KURL& url ) { m_realURL = url; }
- QString tmpDir() const { return m_tmpDir ? m_tmpDir->name() : QString::null; }
+ TQString tmpDir() const { return m_tmpDir ? m_tmpDir->name() : TQString::null; }
FileListView * fileList() const { return m_fileListView; }
SearchBar * searchBar() const { return m_searchBar; }
@@ -89,13 +89,13 @@ public:
void closeArch();
virtual void setExtractOnly(bool extOnly) { m_extractOnly = extOnly; }
- virtual void deleteAfterUse( const QString& path );
+ virtual void deleteAfterUse( const TQString& path );
bool allowedArchiveName( const KURL & u );
bool file_save_as( const KURL & u );
virtual KURL getSaveAsFileName();
- virtual void setOpenAsMimeType( const QString & mimeType );
- QString & openAsMimeType(){ return m_openAsMimeType; }
- void prepareViewFiles( const QStringList & fileList );
+ virtual void setOpenAsMimeType( const TQString & mimeType );
+ TQString & openAsMimeType(){ return m_openAsMimeType; }
+ void prepareViewFiles( const TQStringList & fileList );
virtual void setArchivePopupEnabled( bool b );
virtual void extractTo( const KURL & targetDirectory, const KURL & archive, bool bGuessName );
@@ -121,12 +121,12 @@ protected slots:
void slotOpenWith();
void action_edit();
- void doPopup(QListViewItem *, const QPoint &, int); // right-click menus
- void viewFile(QListViewItem*); // doubleClick view files
+ void doPopup(TQListViewItem *, const TQPoint &, int); // right-click menus
+ void viewFile(TQListViewItem*); // doubleClick view files
void slotSelectionChanged();
- void slotOpen(Arch *, bool, const QString &, int);
- void slotCreate(Arch *, bool, const QString &, int);
+ void slotOpen(Arch *, bool, const TQString &, int);
+ void slotCreate(Arch *, bool, const TQString &, int);
void slotDeleteDone(bool);
void slotExtractDone(bool);
void slotExtractRemoteDone(KIO::Job *job);
@@ -135,17 +135,17 @@ protected slots:
signals:
void openURLRequest( const KURL & url );
void request_file_quit();
- void setBusy( const QString & );
+ void setBusy( const TQString & );
void setReady();
void fixActions();
void disableAllActions();
- void signalFilePopup( const QPoint & pPoint );
- void signalArchivePopup( const QPoint & pPoint );
- void setStatusBarText( const QString & text );
- void setStatusBarSelectedFiles( const QString & text );
+ void signalFilePopup( const TQPoint & pPoint );
+ void signalArchivePopup( const TQPoint & pPoint );
+ void setStatusBarText( const TQString & text );
+ void setStatusBarSelectedFiles( const TQString & text );
void removeRecentURL( const KURL & url );
void addRecentURL( const KURL & url );
- void setWindowCaption( const QString &caption );
+ void setWindowCaption( const TQString &caption );
void removeOpenArk( const KURL & );
void addOpenArk( const KURL & );
void createDone( bool );
@@ -156,9 +156,9 @@ signals:
protected:
// DND
- void dragMoveEvent(QDragMoveEvent *e);
- void dropEvent(QDropEvent* event);
- void dropAction(QStringList & list);
+ void dragMoveEvent(TQDragMoveEvent *e);
+ void dropEvent(TQDropEvent* event);
+ void dropAction(TQStringList & list);
private: // methods
// disabling/enabling of buttons and menu items
@@ -168,7 +168,7 @@ private: // methods
void disableAll();
void updateStatusSelection();
void updateStatusTotals();
- void addFile(QStringList *list);
+ void addFile(TQStringList *list);
void removeDownloadedFiles();
// make sure that str is a local file/dir
@@ -177,31 +177,31 @@ private: // methods
// ask user whether to create a real archive from a compressed file
// returns filename if so. Otherwise, empty.
KURL askToCreateRealArchive();
- Arch * getNewArchive( const QString & _fileName, const QString& _mimetype = QString() );
- void createRealArchive( const QString &strFilename,
- const QStringList & filesToAdd = QStringList() );
- KURL getCreateFilename( const QString & _caption,
- const QString & _defaultMimeType = QString::null,
+ Arch * getNewArchive( const TQString & _fileName, const TQString& _mimetype = TQString() );
+ void createRealArchive( const TQString &strFilename,
+ const TQStringList & filesToAdd = TQStringList() );
+ KURL getCreateFilename( const TQString & _caption,
+ const TQString & _defaultMimeType = TQString::null,
bool allowCompressed = true,
- const QString & _suggestedName = QString::null );
+ const TQString & _suggestedName = TQString::null );
- bool reportExtractFailures(const QString & _dest, QStringList *_list);
- QStringList existingFiles( const QString & _dest, QStringList & _list );
+ bool reportExtractFailures(const TQString & _dest, TQStringList *_list);
+ TQStringList existingFiles( const TQString & _dest, TQStringList & _list );
void extractOnlyOpenDone();
void extractRemoteInitiateMoving( const KURL & target );
void editStart();
- void busy( const QString & text );
+ void busy( const TQString & text );
void holdBusy();
void resumeBusy();
void ready();
//suggests an extract directory based on archive name
- const QString guessName( const KURL & archive );
+ const TQString guessName( const KURL & archive );
private slots:
- void startDrag( const QStringList & fileList );
+ void startDrag( const TQStringList & fileList );
void startDragSlotExtractDone( bool );
void editSlotExtractDone();
void editSlotAddDone( bool success );
@@ -209,7 +209,7 @@ private slots:
void openWithSlotExtractDone( bool success );
void createRealArchiveSlotCreate( Arch * newArch, bool success,
- const QString & fileName, int nbr );
+ const TQString & fileName, int nbr );
void createRealArchiveSlotAddDone( bool success );
void createRealArchiveSlotAddFilesDone( bool success );
@@ -227,14 +227,14 @@ private slots:
void addToArchiveSlotAddDone( bool success );
protected:
- void arkWarning(const QString& msg);
- void arkError(const QString& msg);
+ void arkWarning(const TQString& msg);
+ void arkError(const TQString& msg);
- void newCaption(const QString& filename);
+ void newCaption(const TQString& filename);
void createFileListView();
- bool createArchive(const QString & name);
- void openArchive(const QString & name);
+ bool createArchive(const TQString & name);
+ void openArchive(const TQString & name);
void showCurrentFile();
@@ -245,10 +245,10 @@ private: // data
bool m_settingsAltered;
// for use in the edit methods: the url.
- QString m_strFileToView;
+ TQString m_strFileToView;
// the compressed file to be added into the new archive
- QString m_compressedFile;
+ TQString m_compressedFile;
// Set to true if we are doing an "Extract to Folder"
bool m_extractOnly;
@@ -263,15 +263,15 @@ private: // data
KURL m_viewURL;
// the mimetype the user wants to open this archive as
- QString m_openAsMimeType;
+ TQString m_openAsMimeType;
// if they're dragging in files, this is the temporary list for when
// we have to create an archive:
- QStringList *m_pTempAddList;
+ TQStringList *m_pTempAddList;
KRun *m_pKRunPtr;
- QStringList mpDownloadedList;
+ TQStringList mpDownloadedList;
bool m_bArchivePopupEnabled;
@@ -293,7 +293,7 @@ private: // data
SearchBar * m_searchBar;
Arch * arch;
- QString m_strArchName;
+ TQString m_strArchName;
KURL m_realURL;
KURL m_url;
ArchType m_archType;
@@ -309,9 +309,9 @@ private: // data
bool m_bIsSimpleCompressedFile;
bool m_bDropSourceIsSelf;
- QStringList mDragFiles;
- QStringList *m_extractList;
- QStringList *m_viewList;
+ TQStringList mDragFiles;
+ TQStringList *m_extractList;
+ TQStringList *m_viewList;
KTempDir *m_tmpDir;
};
diff --git a/ark/compressedfile.cpp b/ark/compressedfile.cpp
index 9ebe283..29d29a9 100644
--- a/ark/compressedfile.cpp
+++ b/ark/compressedfile.cpp
@@ -29,7 +29,7 @@
#include <fcntl.h>
// Qt includes
-#include <qdir.h>
+#include <tqdir.h>
// KDE includes
#include <kdebug.h>
@@ -53,21 +53,21 @@
// encapsulates the idea of a compressed file
-CompressedFile::CompressedFile( ArkWidget *_gui, const QString & _fileName, const QString & _openAsMimeType )
+CompressedFile::CompressedFile( ArkWidget *_gui, const TQString & _fileName, const TQString & _openAsMimeType )
: Arch( _gui, _fileName )
{
m_tempDirectory = NULL;
m_openAsMimeType = _openAsMimeType;
kdDebug(1601) << "CompressedFile constructor" << endl;
m_tempDirectory = new KTempDir( _gui->tmpDir()
- + QString::fromLatin1( "compressed_file_temp" ) );
+ + TQString::fromLatin1( "compressed_file_temp" ) );
m_tempDirectory->setAutoDelete( true );
m_tmpdir = m_tempDirectory->name();
initData();
verifyCompressUtilityIsAvailable( m_archiver_program );
verifyUncompressUtilityIsAvailable( m_unarchiver_program );
- if (!QFile::exists(_fileName))
+ if (!TQFile::exists(_fileName))
{
KMessageBox::information(0,
i18n("You are creating a simple compressed archive which contains only one input file.\n"
@@ -97,10 +97,10 @@ void CompressedFile::setHeaders()
void CompressedFile::initData()
{
- m_unarchiver_program = QString::null;
- m_archiver_program = QString::null;
+ m_unarchiver_program = TQString::null;
+ m_archiver_program = TQString::null;
- QString mimeType;
+ TQString mimeType;
if ( !m_openAsMimeType.isNull() )
mimeType = m_openAsMimeType;
else
@@ -138,12 +138,12 @@ void CompressedFile::initData()
}
-QString CompressedFile::extension()
+TQString CompressedFile::extension()
{
- QStringList::Iterator it = m_defaultExtensions.begin();
+ TQStringList::Iterator it = m_defaultExtensions.begin();
for( ; it != m_defaultExtensions.end(); ++it )
if( m_filename.endsWith( *it ) )
- return QString::null;
+ return TQString::null;
return m_defaultExtensions.first();
}
@@ -190,17 +190,17 @@ void CompressedFile::open()
kdDebug(1601) << "Command is " << m_unarchiver_program << " " << m_tmpfile<< endl;
- connect( kp, SIGNAL(receivedStdout(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect( kp, SIGNAL(receivedStderr(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect( kp, SIGNAL(processExited(KProcess*)), this,
- SLOT(slotUncompressDone(KProcess*)));
+ connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(processExited(KProcess*)), this,
+ TQT_SLOT(slotUncompressDone(KProcess*)));
if (kp->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false)
{
KMessageBox::error( 0, i18n("Could not start a subprocess.") );
- emit sigOpen(this, false, QString::null, 0 );
+ emit sigOpen(this, false, TQString::null, 0 );
}
kdDebug(1601) << "-CompressedFile::open" << endl;
@@ -223,12 +223,12 @@ void CompressedFile::slotUncompressDone(KProcess *_kp)
if ( !bSuccess )
{
- emit sigOpen( this, false, QString::null, 0 );
+ emit sigOpen( this, false, TQString::null, 0 );
return;
}
- QDir dir( m_tmpdir );
- QStringList lst( dir.entryList() );
+ TQDir dir( m_tmpdir );
+ TQStringList lst( dir.entryList() );
lst.remove( ".." );
lst.remove( "." );
KURL url;
@@ -237,7 +237,7 @@ void CompressedFile::slotUncompressDone(KProcess *_kp)
KIO::UDSEntry udsInfo;
KIO::NetAccess::stat( url, udsInfo, m_gui );
KFileItem fileItem( udsInfo, url );
- QStringList list;
+ TQStringList list;
list << fileItem.name();
list << fileItem.permissionsString();
list << fileItem.user();
@@ -256,7 +256,7 @@ void CompressedFile::create()
| Arch::View);
}
-void CompressedFile::addFile( const QStringList &urls )
+void CompressedFile::addFile( const TQStringList &urls )
{
// only used for adding ONE file to an EMPTY gzip file, i.e., one that
// has just been created
@@ -269,7 +269,7 @@ void CompressedFile::addFile( const QStringList &urls )
KURL url = KURL::fromPathOrURL(urls.first());
Q_ASSERT(url.isLocalFile());
- QString file;
+ TQString file;
file = url.path();
KProcess proc;
@@ -291,18 +291,18 @@ void CompressedFile::addFile( const QStringList &urls )
if ( m_archiver_program == "lzop")
kp->setUsePty( KProcess::Stdin, false );
- QString compressor = m_archiver_program;
+ TQString compressor = m_archiver_program;
*kp << compressor << "-c" << file;
- connect( kp, SIGNAL(receivedStdout(KProcess*, char*, int)),
- this, SLOT(slotAddInProgress(KProcess*, char*, int)));
- connect( kp, SIGNAL(receivedStderr(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect( kp, SIGNAL(processExited(KProcess*)), this,
- SLOT(slotAddDone(KProcess*)));
+ connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
+ this, TQT_SLOT(slotAddInProgress(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(processExited(KProcess*)), this,
+ TQT_SLOT(slotAddDone(KProcess*)));
- int f_desc = KDE_open(QFile::encodeName(m_filename), O_CREAT | O_TRUNC | O_WRONLY, 0666);
+ int f_desc = KDE_open(TQFile::encodeName(m_filename), O_CREAT | O_TRUNC | O_WRONLY, 0666);
if (f_desc != -1)
fd = fdopen( f_desc, "w" );
else
@@ -340,7 +340,7 @@ void CompressedFile::unarchFileInternal()
{
if (m_destDir != m_tmpdir)
{
- QString dest;
+ TQString dest;
if (m_destDir.isEmpty() || m_destDir.isNull())
{
kdError(1601) << "There was no extract directory given." << endl;
@@ -356,14 +356,14 @@ void CompressedFile::unarchFileInternal()
emit sigExtract(true);
}
-void CompressedFile::remove(QStringList *)
+void CompressedFile::remove(TQStringList *)
{
kdDebug(1601) << "+CompressedFile::remove" << endl;
- QFile::remove(m_tmpfile);
+ TQFile::remove(m_tmpfile);
// do not delete but truncate the compressed file in case someone
// does a reload and finds it no longer exists!
- truncate(QFile::encodeName(m_filename), 0);
+ truncate(TQFile::encodeName(m_filename), 0);
m_tmpfile = "";
emit sigDelete(true);
diff --git a/ark/compressedfile.h b/ark/compressedfile.h
index ceaee6c..9840923 100644
--- a/ark/compressedfile.h
+++ b/ark/compressedfile.h
@@ -45,19 +45,19 @@ class CompressedFile : public Arch
{
Q_OBJECT
public:
- CompressedFile( ArkWidget *_gui, const QString & _fileName, const QString &_openAsMimeType );
+ CompressedFile( ArkWidget *_gui, const TQString & _fileName, const TQString &_openAsMimeType );
virtual ~CompressedFile();
virtual void open();
virtual void create();
- virtual void addFile( const QStringList& );
- virtual void addDir(const QString &) { }
+ virtual void addFile( const TQStringList& );
+ virtual void addDir(const TQString &) { }
- virtual void remove(QStringList *);
+ virtual void remove(TQStringList *);
virtual void unarchFileInternal();
- QString tempFileName(){ return m_tmpfile; }
+ TQString tempFileName(){ return m_tmpfile; }
private slots:
void slotUncompressDone(KProcess *);
@@ -68,13 +68,13 @@ private:
void initExtract( bool, bool, bool );
void setHeaders();
void initData();
- QString extension();
+ TQString extension();
- QString m_openAsMimeType;
+ TQString m_openAsMimeType;
KTempDir * m_tempDirectory;
- QString m_tmpdir;
- QString m_tmpfile;
- QStringList m_defaultExtensions;
+ TQString m_tmpdir;
+ TQString m_tmpfile;
+ TQStringList m_defaultExtensions;
// for use with addFile
FILE *fd;
diff --git a/ark/extractiondialog.cpp b/ark/extractiondialog.cpp
index 7892efb..cf95d48 100644
--- a/ark/extractiondialog.cpp
+++ b/ark/extractiondialog.cpp
@@ -29,12 +29,12 @@
#include "extractiondialog.h"
-#include <qvbox.h>
-#include <qhbox.h>
-#include <qhbuttongroup.h>
-#include <qlabel.h>
-#include <qradiobutton.h>
-#include <qlayout.h>
+#include <tqvbox.h>
+#include <tqhbox.h>
+#include <tqhbuttongroup.h>
+#include <tqlabel.h>
+#include <tqradiobutton.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <kglobal.h>
@@ -51,11 +51,11 @@
#include "arkutils.h"
#include "settings.h"
-ExtractionDialog::ExtractionDialog( QWidget *parent, const char *name,
+ExtractionDialog::ExtractionDialog( TQWidget *parent, const char *name,
bool enableSelected,
const KURL& defaultExtractionDir,
- const QString &prefix,
- const QString &archiveName )
+ const TQString &prefix,
+ const TQString &archiveName )
: KDialogBase( parent, name, true, i18n( "Extract" ), Ok | Cancel, Ok ),
m_selectedButton( 0 ), m_allButton( 0 ),
m_selectedOnly( enableSelected ), m_extractionDirectory( defaultExtractionDir ),
@@ -66,37 +66,37 @@ ExtractionDialog::ExtractionDialog( QWidget *parent, const char *name,
setCaption( i18n( "Extract Files From %1" ).arg( archiveName ) );
}
- QVBox *vbox = makeVBoxMainWidget();
+ TQVBox *vbox = makeVBoxMainWidget();
- QHBox *header = new QHBox( vbox );
+ TQHBox *header = new TQHBox( vbox );
header->layout()->setSpacing( 10 );
- QLabel *icon = new QLabel( header );
+ TQLabel *icon = new TQLabel( header );
icon->setPixmap( DesktopIcon( "ark_extract" ) );
- icon->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Minimum );
+ icon->setSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Minimum );
if ( enableSelected )
{
- QVBox *whichFiles = new QVBox( header );
+ TQVBox *whichFiles = new TQVBox( header );
whichFiles->layout()->setSpacing( 6 );
- new QLabel( QString( "<qt><b><font size=\"+1\">%1</font></b></qt>" )
+ new TQLabel( TQString( "<qt><b><font size=\"+1\">%1</font></b></qt>" )
.arg( i18n( "Extract:" ) ), whichFiles );
- QHButtonGroup *filesGroup = new QHButtonGroup( whichFiles );
- m_selectedButton = new QRadioButton( i18n( "Selected files only" ), filesGroup );
- m_allButton = new QRadioButton( i18n( "All files" ), filesGroup );
+ TQHButtonGroup *filesGroup = new TQHButtonGroup( whichFiles );
+ m_selectedButton = new TQRadioButton( i18n( "Selected files only" ), filesGroup );
+ m_allButton = new TQRadioButton( i18n( "All files" ), filesGroup );
m_selectedButton->setChecked( true );
}
else
{
- new QLabel( QString( "<qt><b><font size=\"+2\">%1</font></b></qt>" )
+ new TQLabel( TQString( "<qt><b><font size=\"+2\">%1</font></b></qt>" )
.arg( i18n( "Extract all files" ) ), header );
}
- QHBox *destDirBox = new QHBox( vbox );
+ TQHBox *destDirBox = new TQHBox( vbox );
- QLabel *destFolderLabel = new QLabel( i18n( "Destination folder: " ), destDirBox );
- destFolderLabel->setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Fixed );
+ TQLabel *destFolderLabel = new TQLabel( i18n( "Destination folder: " ), destDirBox );
+ destFolderLabel->setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed );
KHistoryCombo *combobox = new KHistoryCombo( true, destDirBox );
combobox->setPixmapProvider( new KURLPixmapProvider );
@@ -108,10 +108,10 @@ ExtractionDialog::ExtractionDialog( QWidget *parent, const char *name,
comp->setCompletionMode( KGlobalSettings::CompletionAuto );
combobox->setCompletionObject( comp );
combobox->setMaxCount( 20 );
- combobox->setInsertionPolicy( QComboBox::AtTop );
+ combobox->setInsertionPolicy( TQComboBox::AtTop );
m_urlRequester = new KURLRequester( combobox, destDirBox );
- m_urlRequester->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed );
+ m_urlRequester->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed );
m_urlRequester->setMode( KFile::Directory );
if (!defaultExtractionDir.prettyURL().isEmpty() )
@@ -119,12 +119,12 @@ ExtractionDialog::ExtractionDialog( QWidget *parent, const char *name,
m_urlRequester->setKURL( defaultExtractionDir.prettyURL() + prefix );
}
- m_viewFolderAfterExtraction = new QCheckBox( i18n( "Open destination folder after extraction" ), vbox );
+ m_viewFolderAfterExtraction = new TQCheckBox( i18n( "Open destination folder after extraction" ), vbox );
m_viewFolderAfterExtraction->setChecked( ArkSettings::openDestinationFolder() );
- connect( combobox, SIGNAL( returnPressed( const QString& ) ), combobox, SLOT( addToHistory( const QString& ) ) );
- connect( combobox->lineEdit(), SIGNAL( textChanged( const QString& ) ),
- this, SLOT( extractDirChanged( const QString & ) ) );
+ connect( combobox, TQT_SIGNAL( returnPressed( const TQString& ) ), combobox, TQT_SLOT( addToHistory( const TQString& ) ) );
+ connect( combobox->lineEdit(), TQT_SIGNAL( textChanged( const TQString& ) ),
+ this, TQT_SLOT( extractDirChanged( const TQString & ) ) );
}
ExtractionDialog::~ExtractionDialog()
@@ -142,10 +142,10 @@ void ExtractionDialog::accept()
//if p isn't local KIO and friends will complain later on
if ( p.isLocalFile() )
{
- QFileInfo fi( p.path() );
+ TQFileInfo fi( p.path() );
if ( !fi.isDir() && !fi.exists() )
{
- QString ltext = i18n( "Create folder %1?").arg(p.path());
+ TQString ltext = i18n( "Create folder %1?").arg(p.path());
int createDir = KMessageBox::questionYesNo( this, ltext, i18n( "Missing Folder" ) , i18n("Create Folder"), i18n("Do Not Create"));
if( createDir == 4 )
{
@@ -170,7 +170,7 @@ void ExtractionDialog::accept()
m_selectedOnly = m_selectedButton == 0? false : m_selectedButton->isChecked();
// Determine what exactly should be added to the extraction combo list
- QString historyURL = p.prettyURL();
+ TQString historyURL = p.prettyURL();
if ( historyURL == KURL( m_defaultExtractionDir + m_prefix ).prettyURL() )
{
historyURL = m_defaultExtractionDir;
@@ -186,7 +186,7 @@ void ExtractionDialog::accept()
KDialogBase::accept();
}
-void ExtractionDialog::extractDirChanged(const QString &text )
+void ExtractionDialog::extractDirChanged(const TQString &text )
{
enableButtonOK(!text.isEmpty());
}
diff --git a/ark/extractiondialog.h b/ark/extractiondialog.h
index 822c085..b0619b1 100644
--- a/ark/extractiondialog.h
+++ b/ark/extractiondialog.h
@@ -29,7 +29,7 @@
#ifndef EXTRACTIONDIALOG_H
#define EXTRACTIONDIALOG_H
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
#include <kurl.h>
#include <kdialogbase.h>
@@ -45,11 +45,11 @@ class ExtractionDialog : public KDialogBase
/**
* Constructor.
*/
- ExtractionDialog( QWidget *parent = 0, const char *name = 0,
+ ExtractionDialog( TQWidget *parent = 0, const char *name = 0,
bool enableSelected = true,
const KURL &defaultExtractionDir = KURL(),
- const QString &prefix = QString(),
- const QString &archiveName = QString::null );
+ const TQString &prefix = TQString(),
+ const TQString &archiveName = TQString::null );
/**
* Destructor.
@@ -77,19 +77,19 @@ class ExtractionDialog : public KDialogBase
public slots:
void accept();
- void extractDirChanged( const QString & );
+ void extractDirChanged( const TQString & );
private:
- QRadioButton *m_selectedButton;
- QRadioButton *m_allButton;
- QCheckBox *m_viewFolderAfterExtraction;
+ TQRadioButton *m_selectedButton;
+ TQRadioButton *m_allButton;
+ TQCheckBox *m_viewFolderAfterExtraction;
bool m_selectedOnly;
KURL m_extractionDirectory;
KURLRequester *m_urlRequester;
- QString m_defaultExtractionDir;
- QString m_prefix;
+ TQString m_defaultExtractionDir;
+ TQString m_prefix;
};
#endif // EXTRACTIONDIALOG_H
diff --git a/ark/filelistview.cpp b/ark/filelistview.cpp
index 3668d11..165b128 100644
--- a/ark/filelistview.cpp
+++ b/ark/filelistview.cpp
@@ -27,9 +27,9 @@
*/
// Qt includes
-#include <qpainter.h>
-#include <qwhatsthis.h>
-#include <qheader.h>
+#include <tqpainter.h>
+#include <tqwhatsthis.h>
+#include <tqheader.h>
// KDE includes
#include <klocale.h>
@@ -47,26 +47,26 @@
FileLVI::FileLVI( KListView* lv )
: KListViewItem( lv ), m_fileSize( 0 ), m_packedFileSize( 0 ),
- m_ratio( 0 ), m_timeStamp( QDateTime() ), m_entryName( QString() )
+ m_ratio( 0 ), m_timeStamp( TQDateTime() ), m_entryName( TQString() )
{
}
FileLVI::FileLVI( KListViewItem* lvi )
: KListViewItem( lvi ), m_fileSize( 0 ), m_packedFileSize( 0 ),
- m_ratio( 0 ), m_timeStamp( QDateTime() ), m_entryName( QString() )
+ m_ratio( 0 ), m_timeStamp( TQDateTime() ), m_entryName( TQString() )
{
}
-QString FileLVI::key( int column, bool ascending ) const
+TQString FileLVI::key( int column, bool ascending ) const
{
if ( column == 0 )
return fileName();
else
- return QListViewItem::key( column, ascending );
+ return TQListViewItem::key( column, ascending );
}
-int FileLVI::compare( QListViewItem * i, int column, bool ascending ) const
+int FileLVI::compare( TQListViewItem * i, int column, bool ascending ) const
{
FileLVI * item = static_cast< FileLVI * >( i );
@@ -119,12 +119,12 @@ int FileLVI::compare( QListViewItem * i, int column, bool ascending ) const
}
}
-void FileLVI::setText( int column, const QString &text )
+void FileLVI::setText( int column, const TQString &text )
{
columnName colName = ( static_cast< FileListView * > ( listView() ) )->nameOfColumn( column );
if ( column == 0 )
{
- QString name = text;
+ TQString name = text;
if ( name.endsWith( "/" ) )
name = name.left( name.length() - 1 );
if ( name.startsWith( "/" ) )
@@ -132,18 +132,18 @@ void FileLVI::setText( int column, const QString &text )
int pos = name.findRev( '/' );
if ( pos != -1 )
name = name.right( name.length() - pos - 1 );
- QListViewItem::setText( column, name );
+ TQListViewItem::setText( column, name );
m_entryName = text;
}
else if ( colName == sizeCol )
{
m_fileSize = text.toULongLong();
- QListViewItem::setText( column, KIO::convertSize( m_fileSize ) );
+ TQListViewItem::setText( column, KIO::convertSize( m_fileSize ) );
}
else if ( colName == packedStrCol )
{
m_packedFileSize = text.toULongLong();
- QListViewItem::setText( column, KIO::convertSize( m_packedFileSize ) );
+ TQListViewItem::setText( column, KIO::convertSize( m_packedFileSize ) );
}
else if ( colName == ratioStrCol )
{
@@ -152,25 +152,25 @@ void FileLVI::setText( int column, const QString &text )
m_ratio = text.left(l).toDouble();
else
m_ratio = text.toDouble();
- QListViewItem::setText( column, i18n( "Packed Ratio", "%1 %" )
+ TQListViewItem::setText( column, i18n( "Packed Ratio", "%1 %" )
.arg(KGlobal::locale()->formatNumber( m_ratio, 1 ) )
);
}
else if ( colName == timeStampStrCol )
{
if ( text.isEmpty() )
- QListViewItem::setText(column, text);
+ TQListViewItem::setText(column, text);
else
{
- m_timeStamp = QDateTime::fromString( text, ISODate );
- QListViewItem::setText( column, KGlobal::locale()->formatDateTime( m_timeStamp ) );
+ m_timeStamp = TQDateTime::fromString( text, ISODate );
+ TQListViewItem::setText( column, KGlobal::locale()->formatDateTime( m_timeStamp ) );
}
}
else
- QListViewItem::setText(column, text);
+ TQListViewItem::setText(column, text);
}
-static FileLVI* folderLVI( KListViewItem *parent, const QString& name )
+static FileLVI* folderLVI( KListViewItem *parent, const TQString& name )
{
FileLVI *folder = new FileLVI( parent );
@@ -181,7 +181,7 @@ static FileLVI* folderLVI( KListViewItem *parent, const QString& name )
return folder;
}
-static FileLVI* folderLVI( KListView *parent, const QString& name )
+static FileLVI* folderLVI( KListView *parent, const TQString& name )
{
FileLVI *folder = new FileLVI( parent );
folder->setText( 0, name );
@@ -194,10 +194,10 @@ static FileLVI* folderLVI( KListView *parent, const QString& name )
/////////////////////////////////////////////////////////////////////
-FileListView::FileListView(QWidget *parent, const char* name)
+FileListView::FileListView(TQWidget *parent, const char* name)
: KListView(parent, name)
{
- QWhatsThis::add( this,
+ TQWhatsThis::add( this,
i18n( "This area is for displaying information about the files contained within an archive." )
);
@@ -212,7 +212,7 @@ FileListView::FileListView(QWidget *parent, const char* name)
m_pressed = false;
}
-int FileListView::addColumn ( const QString & label, int width )
+int FileListView::addColumn ( const TQString & label, int width )
{
int index = KListView::addColumn( label, width );
if ( label == SIZE_COLUMN.first )
@@ -254,9 +254,9 @@ columnName FileListView::nameOfColumn( int index )
return m_columnMap[ index ];
}
-QStringList FileListView::selectedFilenames()
+TQStringList FileListView::selectedFilenames()
{
- QStringList files;
+ TQStringList files;
FileLVI *item = static_cast<FileLVI*>( firstChild() );
@@ -299,11 +299,11 @@ QStringList FileListView::selectedFilenames()
return files;
}
-QStringList FileListView::fileNames()
+TQStringList FileListView::fileNames()
{
- QStringList files;
+ TQStringList files;
- QListViewItemIterator it( this );
+ TQListViewItemIterator it( this );
while ( it.current() )
{
FileLVI *item = static_cast<FileLVI*>( it.current() );
@@ -329,9 +329,9 @@ bool FileListView::isSelectionEmpty()
}
void
-FileListView::contentsMousePressEvent(QMouseEvent *e)
+FileListView::contentsMousePressEvent(TQMouseEvent *e)
{
- if( e->button()==QMouseEvent::LeftButton )
+ if( e->button()==TQMouseEvent::LeftButton )
{
m_pressed = true;
m_presspos = e->pos();
@@ -341,14 +341,14 @@ FileListView::contentsMousePressEvent(QMouseEvent *e)
}
void
-FileListView::contentsMouseReleaseEvent(QMouseEvent *e)
+FileListView::contentsMouseReleaseEvent(TQMouseEvent *e)
{
m_pressed = false;
KListView::contentsMouseReleaseEvent(e);
}
void
-FileListView::contentsMouseMoveEvent(QMouseEvent *e)
+FileListView::contentsMouseMoveEvent(TQMouseEvent *e)
{
if(!m_pressed)
{
@@ -361,20 +361,20 @@ FileListView::contentsMouseMoveEvent(QMouseEvent *e)
{
return;
}
- QStringList dragFiles = selectedFilenames();
+ TQStringList dragFiles = selectedFilenames();
emit startDragRequest( dragFiles );
KListView::contentsMouseMoveEvent(e);
}
}
FileLVI*
-FileListView::item(const QString& filename) const
+FileListView::item(const TQString& filename) const
{
FileLVI * flvi = (FileLVI*) firstChild();
while (flvi)
{
- QString curFilename = flvi->fileName();
+ TQString curFilename = flvi->fileName();
if (curFilename == filename)
return flvi;
flvi = (FileLVI*) flvi->nextSibling();
@@ -383,7 +383,7 @@ FileListView::item(const QString& filename) const
return 0;
}
-void FileListView::addItem( const QStringList & entries )
+void FileListView::addItem( const TQStringList & entries )
{
FileLVI *flvi, *parent = findParent( entries[0] );
if ( parent )
@@ -394,7 +394,7 @@ void FileListView::addItem( const QStringList & entries )
int i = 0;
- for (QStringList::ConstIterator it = entries.begin(); it != entries.end(); ++it)
+ for (TQStringList::ConstIterator it = entries.begin(); it != entries.end(); ++it)
{
flvi->setText(i, *it);
++i;
@@ -406,12 +406,12 @@ void FileListView::addItem( const QStringList & entries )
void FileListView::selectAll()
{
- QListView::selectAll( true );
+ TQListView::selectAll( true );
}
void FileListView::unselectAll()
{
- QListView::selectAll( false );
+ TQListView::selectAll( false );
}
void FileListView::setHeaders( const ColumnList& columns )
@@ -422,12 +422,12 @@ void FileListView::setHeaders( const ColumnList& columns )
it != columns.constEnd();
++it )
{
- QPair< QString, Qt::AlignmentFlags > pair = *it;
+ QPair< TQString, Qt::AlignmentFlags > pair = *it;
int colnum = addColumn( pair.first );
setColumnAlignment( colnum, pair.second );
}
- setResizeMode( QListView::LastColumn );
+ setResizeMode( TQListView::LastColumn );
header()->show();
}
@@ -445,7 +445,7 @@ int FileListView::totalFiles()
{
int numFiles = 0;
- QListViewItemIterator it( this );
+ TQListViewItemIterator it( this );
while ( it.current() )
{
if ( it.current()->childCount() == 0 )
@@ -460,7 +460,7 @@ int FileListView::selectedFilesCount()
{
int numFiles = 0;
- QListViewItemIterator it( this, QListViewItemIterator::Selected );
+ TQListViewItemIterator it( this, TQListViewItemIterator::Selected );
while ( it.current() )
{
++numFiles;
@@ -474,7 +474,7 @@ KIO::filesize_t FileListView::totalSize()
{
KIO::filesize_t size = 0;
- QListViewItemIterator it(this);
+ TQListViewItemIterator it(this);
while ( it.current() )
{
FileLVI *item = static_cast<FileLVI*>( it.current() );
@@ -489,7 +489,7 @@ KIO::filesize_t FileListView::selectedSize()
{
KIO::filesize_t size = 0;
- QListViewItemIterator it( this, QListViewItemIterator::Selected );
+ TQListViewItemIterator it( this, TQListViewItemIterator::Selected );
while ( it.current() )
{
FileLVI *item = static_cast<FileLVI*>( it.current() );
@@ -500,9 +500,9 @@ KIO::filesize_t FileListView::selectedSize()
return size;
}
-FileLVI* FileListView::findParent( const QString& fullname )
+FileLVI* FileListView::findParent( const TQString& fullname )
{
- QString name = fullname;
+ TQString name = fullname;
if ( name.endsWith( "/" ) )
name = name.left( name.length() -1 );
@@ -513,11 +513,11 @@ FileLVI* FileListView::findParent( const QString& fullname )
return static_cast< FileLVI* >( 0 );
// Get a list of ancestors
- QString parentFullname = name.left( name.findRev( '/' ) );
- QStringList ancestorList = QStringList::split( '/', parentFullname );
+ TQString parentFullname = name.left( name.findRev( '/' ) );
+ TQStringList ancestorList = TQStringList::split( '/', parentFullname );
// Checks if the listview contains the first item in the list of ancestors
- QListViewItem *item = firstChild();
+ TQListViewItem *item = firstChild();
while ( item )
{
if ( item->text( 0 ) == ancestorList[0] )
@@ -536,7 +536,7 @@ FileLVI* FileListView::findParent( const QString& fullname )
while ( ancestorList.count() > 0 )
{
- QString name = ancestorList[0];
+ TQString name = ancestorList[0];
FileLVI *parent = static_cast< FileLVI*>( item );
item = parent->firstChild();
@@ -559,10 +559,10 @@ FileLVI* FileListView::findParent( const QString& fullname )
return static_cast< FileLVI* >( item );
}
-QStringList FileListView::childrenOf( FileLVI* parent )
+TQStringList FileListView::childrenOf( FileLVI* parent )
{
Q_ASSERT( parent );
- QStringList children;
+ TQStringList children;
FileLVI *item = static_cast<FileLVI*>( parent->firstChild() );
diff --git a/ark/filelistview.h b/ark/filelistview.h
index 8ea0d48..1de8b7e 100644
--- a/ark/filelistview.h
+++ b/ark/filelistview.h
@@ -28,9 +28,9 @@
#ifndef FILELISTVIEW_H
#define FILELISTVIEW_H
-#include <qdatetime.h>
-#include <qpair.h>
-#include <qvaluelist.h>
+#include <tqdatetime.h>
+#include <tqpair.h>
+#include <tqvaluelist.h>
#include <klistview.h>
#include <kio/global.h>
@@ -51,50 +51,50 @@ class FileLVI : public KListViewItem
FileLVI( KListView* lv );
FileLVI( KListViewItem* lvi );
- QString fileName() const { return m_entryName; }
+ TQString fileName() const { return m_entryName; }
KIO::filesize_t fileSize() const { return m_fileSize; }
KIO::filesize_t packedFileSize() const { return m_packedFileSize; }
double ratio() const { return m_ratio; }
- QDateTime timeStamp() const { return m_timeStamp; }
+ TQDateTime timeStamp() const { return m_timeStamp; }
- int compare ( QListViewItem * i, int col, bool ascending ) const;
- virtual QString key( int column, bool ) const;
- virtual void setText( int column, const QString &text );
+ int compare ( TQListViewItem * i, int col, bool ascending ) const;
+ virtual TQString key( int column, bool ) const;
+ virtual void setText( int column, const TQString &text );
private:
KIO::filesize_t m_fileSize;
KIO::filesize_t m_packedFileSize;
double m_ratio;
- QDateTime m_timeStamp;
- QString m_entryName;
+ TQDateTime m_timeStamp;
+ TQString m_entryName;
};
-typedef QValueList< QPair< QString, Qt::AlignmentFlags > > ColumnList;
+typedef TQValueList< QPair< TQString, Qt::AlignmentFlags > > ColumnList;
class FileListView: public KListView
{
Q_OBJECT
public:
- FileListView( QWidget *parent = 0, const char* name = 0 );
+ FileListView( TQWidget *parent = 0, const char* name = 0 );
FileLVI *currentItem() {return ((FileLVI *) KListView::currentItem());}
/**
* Returns the full names of the selected files.
*/
- QStringList selectedFilenames();
+ TQStringList selectedFilenames();
/**
* Return the full names of all files.
*/
- QStringList fileNames();
+ TQStringList fileNames();
/**
* Returns true if no file is selected
*/
bool isSelectionEmpty();
- virtual int addColumn( const QString & label, int width = -1 );
+ virtual int addColumn( const TQString & label, int width = -1 );
virtual void removeColumn( int index );
columnName nameOfColumn( int index );
@@ -103,13 +103,13 @@ class FileListView: public KListView
* @param filename The filename in question to reference in the archive
* @return The requested file's FileLVI
*/
- FileLVI* item(const QString& filename) const;
+ FileLVI* item(const TQString& filename) const;
/**
* Adds a file and stats to the file listing
* @param entries A stringlist of the entries for each column of the list.
*/
- void addItem( const QStringList & entries );
+ void addItem( const TQStringList & entries );
/**
* Returns the number of files in the archive.
@@ -143,20 +143,20 @@ class FileListView: public KListView
void clearHeaders();
signals:
- void startDragRequest( const QStringList & fileList );
+ void startDragRequest( const TQStringList & fileList );
protected:
- virtual void contentsMouseReleaseEvent( QMouseEvent *e );
- virtual void contentsMousePressEvent( QMouseEvent *e );
- virtual void contentsMouseMoveEvent( QMouseEvent *e );
+ virtual void contentsMouseReleaseEvent( TQMouseEvent *e );
+ virtual void contentsMousePressEvent( TQMouseEvent *e );
+ virtual void contentsMouseMoveEvent( TQMouseEvent *e );
private:
- FileLVI* findParent( const QString& fullname );
- QStringList childrenOf( FileLVI* parent );
+ FileLVI* findParent( const TQString& fullname );
+ TQStringList childrenOf( FileLVI* parent );
- QMap<int, columnName> m_columnMap;
+ TQMap<int, columnName> m_columnMap;
bool m_pressed;
- QPoint m_presspos; // this will save the click pos to correctly recognize drag events
+ TQPoint m_presspos; // this will save the click pos to correctly recognize drag events
};
#endif
diff --git a/ark/lha.cpp b/ark/lha.cpp
index f890139..1bf3aac 100644
--- a/ark/lha.cpp
+++ b/ark/lha.cpp
@@ -35,8 +35,8 @@
#include <string.h>
// QT includes
-#include <qfile.h>
-#include <qdir.h>
+#include <tqfile.h>
+#include <tqdir.h>
// KDE includes
#include <kdebug.h>
@@ -52,7 +52,7 @@
#include "arkutils.h"
#include "filelistview.h"
-LhaArch::LhaArch( ArkWidget *_gui, const QString & _fileName )
+LhaArch::LhaArch( ArkWidget *_gui, const TQString & _fileName )
: Arch( _gui, _fileName )
{
m_archiver_program = "lha";
@@ -61,7 +61,7 @@ LhaArch::LhaArch( ArkWidget *_gui, const QString & _fileName )
m_headerString = "----";
}
-bool LhaArch::processLine( const QCString &line )
+bool LhaArch::processLine( const TQCString &line )
{
const char *_line = ( const char * ) line;
char columns[13][80];
@@ -95,13 +95,13 @@ bool LhaArch::processLine( const QCString &line )
}
// make the time stamp sortable
- QString massagedTimeStamp = ArkUtils::getTimeStamp( columns[6], columns[7],
+ TQString massagedTimeStamp = ArkUtils::getTimeStamp( columns[6], columns[7],
columns[8] );
strlcpy( columns[6], massagedTimeStamp.ascii(), sizeof( columns[6] ) );
// see if there was a link in filename
- QString file = filename;
- QString name, link;
+ TQString file = filename;
+ TQString name, link;
bool bLink = false;
int pos = file.find( " -> " );
if ( pos != -1 )
@@ -115,12 +115,12 @@ bool LhaArch::processLine( const QCString &line )
name = file;
}
- QStringList list;
+ TQStringList list;
list.append( name );
for ( int i = 0; i < 7; i++ )
{
- list.append( QString::fromLocal8Bit( columns[i] ) );
+ list.append( TQString::fromLocal8Bit( columns[i] ) );
}
if ( bLink )
@@ -144,17 +144,17 @@ void LhaArch::open()
KProcess *kp = m_currentProcess = new KProcess;
*kp << m_archiver_program << "v" << m_filename;
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedTOC(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotOpenExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedTOC(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotOpenExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
- emit sigOpen( this, false, QString::null, 0 );
+ emit sigOpen( this, false, TQString::null, 0 );
}
}
@@ -180,23 +180,23 @@ void LhaArch::create()
Arch::Extract | Arch::Delete | Arch::Add | Arch::View );
}
-void LhaArch::addDir( const QString & dirName )
+void LhaArch::addDir( const TQString & dirName )
{
if ( !dirName.isEmpty() )
{
- QStringList list;
+ TQStringList list;
list.append( dirName );
addFile( list );
}
}
-void LhaArch::addFile( const QStringList &urls )
+void LhaArch::addFile( const TQStringList &urls )
{
KProcess *kp = m_currentProcess = new KProcess;
kp->clearArguments();
*kp << m_archiver_program;
- QString strOptions;
+ TQString strOptions;
if ( ArkSettings::replaceOnlyWithNewer() )
strOptions = "u";
else
@@ -205,21 +205,21 @@ void LhaArch::addFile( const QStringList &urls )
*kp << strOptions << m_filename;
KURL url( urls.first() );
- QDir::setCurrent( url.directory() );
+ TQDir::setCurrent( url.directory() );
- QStringList::ConstIterator iter;
+ TQStringList::ConstIterator iter;
for ( iter = urls.begin(); iter != urls.end(); ++iter )
{
KURL fileURL( *iter );
*kp << fileURL.fileName();
}
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotAddExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotAddExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
@@ -248,19 +248,19 @@ void LhaArch::unarchFileInternal()
// and we then extract everything in the archive.
if ( m_fileList )
{
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = m_fileList->begin(); it != m_fileList->end(); ++it )
{
*kp << ( *it );
}
}
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotExtractExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotExtractExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
@@ -269,7 +269,7 @@ void LhaArch::unarchFileInternal()
}
}
-void LhaArch::remove( QStringList *list )
+void LhaArch::remove( TQStringList *list )
{
if ( !list )
return;
@@ -279,18 +279,18 @@ void LhaArch::remove( QStringList *list )
*kp << m_archiver_program << "df" << m_filename;
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = list->begin(); it != list->end(); ++it )
{
*kp << ( *it );
}
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotDeleteExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotDeleteExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
diff --git a/ark/lha.h b/ark/lha.h
index 98041fb..7e486a2 100644
--- a/ark/lha.h
+++ b/ark/lha.h
@@ -39,20 +39,20 @@ class LhaArch : public Arch
{
Q_OBJECT
public:
- LhaArch( ArkWidget *, const QString & );
+ LhaArch( ArkWidget *, const TQString & );
virtual ~LhaArch() { }
virtual void open();
virtual void create();
- virtual void addFile( const QStringList & );
- virtual void addDir( const QString & );
+ virtual void addFile( const TQStringList & );
+ virtual void addDir( const TQString & );
- virtual void remove( QStringList * );
+ virtual void remove( TQStringList * );
virtual void unarchFileInternal();
protected slots:
- virtual bool processLine( const QCString &line );
+ virtual bool processLine( const TQCString &line );
private:
void setHeaders();
diff --git a/ark/mainwindow.cpp b/ark/mainwindow.cpp
index b62422c..5866d18 100644
--- a/ark/mainwindow.cpp
+++ b/ark/mainwindow.cpp
@@ -22,7 +22,7 @@
*/
// QT includes
-#include <qlayout.h>
+#include <tqlayout.h>
// KDE includes
#include <kdebug.h>
@@ -45,7 +45,7 @@
#include "archiveformatinfo.h"
#include "arkwidget.h"
-MainWindow::MainWindow( QWidget * /*parent*/, const char *name )
+MainWindow::MainWindow( TQWidget * /*parent*/, const char *name )
: KParts::MainWindow(), progressDialog( 0 )
{
setXMLFile( "arkui.rc" );
@@ -58,29 +58,29 @@ MainWindow::MainWindow( QWidget * /*parent*/, const char *name )
setStandardToolBarMenuEnabled( true );
setupActions();
- connect( m_part->widget(), SIGNAL( request_file_quit() ), this, SLOT( file_quit() ) );
- connect( KParts::BrowserExtension::childObject( m_part ), SIGNAL( openURLRequestDelayed
+ connect( m_part->widget(), TQT_SIGNAL( request_file_quit() ), this, TQT_SLOT( file_quit() ) );
+ connect( KParts::BrowserExtension::childObject( m_part ), TQT_SIGNAL( openURLRequestDelayed
( const KURL &, const KParts::URLArgs & ) ),
- m_part, SLOT( openURL( const KURL & ) ) );
+ m_part, TQT_SLOT( openURL( const KURL & ) ) );
m_widget->setArchivePopupEnabled( true );
- connect( m_part->widget(), SIGNAL( signalArchivePopup( const QPoint & ) ), this,
- SLOT( slotArchivePopup( const QPoint & ) ) );
-
- connect( m_part, SIGNAL( removeRecentURL( const KURL & ) ), this,
- SLOT( slotRemoveRecentURL( const KURL & ) ) );
- connect( m_part, SIGNAL( addRecentURL( const KURL & ) ), this,
- SLOT( slotAddRecentURL( const KURL & ) ) );
- connect( m_part, SIGNAL( fixActionState( const bool & ) ), this,
- SLOT( slotFixActionState( const bool & ) ) );
- connect( m_widget, SIGNAL( disableAllActions() ), this,
- SLOT( slotDisableActions() ) );
+ connect( m_part->widget(), TQT_SIGNAL( signalArchivePopup( const TQPoint & ) ), this,
+ TQT_SLOT( slotArchivePopup( const TQPoint & ) ) );
+
+ connect( m_part, TQT_SIGNAL( removeRecentURL( const KURL & ) ), this,
+ TQT_SLOT( slotRemoveRecentURL( const KURL & ) ) );
+ connect( m_part, TQT_SIGNAL( addRecentURL( const KURL & ) ), this,
+ TQT_SLOT( slotAddRecentURL( const KURL & ) ) );
+ connect( m_part, TQT_SIGNAL( fixActionState( const bool & ) ), this,
+ TQT_SLOT( slotFixActionState( const bool & ) ) );
+ connect( m_widget, TQT_SIGNAL( disableAllActions() ), this,
+ TQT_SLOT( slotDisableActions() ) );
ArkApplication::getInstance()->addWindow();
- connect( m_widget, SIGNAL( removeOpenArk( const KURL &) ), this,
- SLOT( slotRemoveOpenArk( const KURL & ) ) );
- connect( m_widget, SIGNAL( addOpenArk( const KURL & ) ), this,
- SLOT( slotAddOpenArk( const KURL & ) ) );
+ connect( m_widget, TQT_SIGNAL( removeOpenArk( const KURL &) ), this,
+ TQT_SLOT( slotRemoveOpenArk( const KURL & ) ) );
+ connect( m_widget, TQT_SIGNAL( addOpenArk( const KURL & ) ), this,
+ TQT_SLOT( slotAddOpenArk( const KURL & ) ) );
setCentralWidget( m_part->widget() );
createGUI( m_part );
@@ -110,23 +110,23 @@ void
MainWindow::setupActions()
{
newWindowAction = new KAction(i18n("New &Window"), "window_new", KShortcut(), this,
- SLOT(file_newWindow()), actionCollection(), "new_window");
+ TQT_SLOT(file_newWindow()), actionCollection(), "new_window");
- newArchAction = KStdAction::openNew(this, SLOT(file_new()), actionCollection());
- openAction = KStdAction::open(this, SLOT(file_open()), actionCollection());
+ newArchAction = KStdAction::openNew(this, TQT_SLOT(file_new()), actionCollection());
+ openAction = KStdAction::open(this, TQT_SLOT(file_open()), actionCollection());
reloadAction = new KAction(i18n("Re&load"), "reload", KStdAccel::shortcut( KStdAccel::Reload ), this,
- SLOT(file_reload()), actionCollection(), "reload_arch");
- closeAction = KStdAction::close(this, SLOT(file_close()), actionCollection(), "file_close");
+ TQT_SLOT(file_reload()), actionCollection(), "reload_arch");
+ closeAction = KStdAction::close(this, TQT_SLOT(file_close()), actionCollection(), "file_close");
- recent = KStdAction::openRecent(this, SLOT(openURL(const KURL&)), actionCollection());
+ recent = KStdAction::openRecent(this, TQT_SLOT(openURL(const KURL&)), actionCollection());
recent->loadEntries(kapp->config());
createStandardStatusBarAction();
- KStdAction::quit(this, SLOT(window_close()), actionCollection());
- KStdAction::configureToolbars(this, SLOT(editToolbars()), actionCollection());
- KStdAction::keyBindings(this, SLOT( slotConfigureKeyBindings()), actionCollection());
+ KStdAction::quit(this, TQT_SLOT(window_close()), actionCollection());
+ KStdAction::configureToolbars(this, TQT_SLOT(editToolbars()), actionCollection());
+ KStdAction::keyBindings(this, TQT_SLOT( slotConfigureKeyBindings()), actionCollection());
openAction->setEnabled( true );
recent->setEnabled( true );
@@ -177,9 +177,9 @@ MainWindow::file_reload()
void
MainWindow::editToolbars()
{
- saveMainWindowSettings( KGlobal::config(), QString::fromLatin1("MainWindow") );
+ saveMainWindowSettings( KGlobal::config(), TQString::fromLatin1("MainWindow") );
KEditToolbar dlg( factory(), this );
- connect(&dlg, SIGNAL( newToolbarConfig() ), this, SLOT( slotNewToolbarConfig() ));
+ connect(&dlg, TQT_SIGNAL( newToolbarConfig() ), this, TQT_SLOT( slotNewToolbarConfig() ));
dlg.exec();
}
@@ -187,7 +187,7 @@ void
MainWindow::slotNewToolbarConfig()
{
createGUI( m_part );
- applyMainWindowSettings( KGlobal::config(), QString::fromLatin1("MainWindow") );
+ applyMainWindowSettings( KGlobal::config(), TQString::fromLatin1("MainWindow") );
}
void
@@ -202,7 +202,7 @@ MainWindow::slotConfigureKeyBindings()
}
void
-MainWindow::slotArchivePopup( const QPoint &pPoint)
+MainWindow::slotArchivePopup( const TQPoint &pPoint)
{
static_cast<KPopupMenu *>(factory()->container("archive_popup", this))->popup(pPoint);
}
@@ -240,29 +240,29 @@ MainWindow::openURL( const KURL & url, bool tempFile )
}
KURL
-MainWindow::getOpenURL( bool addOnly, const QString & caption,
- const QString & startDir, const QString & suggestedName )
+MainWindow::getOpenURL( bool addOnly, const TQString & caption,
+ const TQString & startDir, const TQString & suggestedName )
{
kdDebug( 1601 ) << "startDir is: " << startDir << endl;
- QWidget * forceFormatWidget = new QWidget( this );
- QHBoxLayout * l = new QHBoxLayout( forceFormatWidget );
+ TQWidget * forceFormatWidget = new TQWidget( this );
+ TQHBoxLayout * l = new TQHBoxLayout( forceFormatWidget );
- QLabel * label = new QLabel( forceFormatWidget );
+ TQLabel * label = new TQLabel( forceFormatWidget );
label->setText( i18n( "Open &as:" ) );
label->adjustSize();
KComboBox * combo = new KComboBox( forceFormatWidget );
- QStringList list;
+ TQStringList list;
list = ArchiveFormatInfo::self()->allDescriptions();
list.sort();
list.prepend( i18n( "Autodetect (default)" ) );
combo->insertStringList( list );
- QString filter = ArchiveFormatInfo::self()->filter();
+ TQString filter = ArchiveFormatInfo::self()->filter();
if ( !suggestedName.isEmpty() )
{
- filter = QString::null;
+ filter = TQString::null;
combo->setCurrentItem( list.findIndex( ArchiveFormatInfo::self()->descriptionForMimeType(
KMimeType::findByPath( suggestedName, 0, true )->name() ) ) );
}
@@ -272,7 +272,7 @@ MainWindow::getOpenURL( bool addOnly, const QString & caption,
l->addWidget( label );
l->addWidget( combo, 1 );
- QString dir;
+ TQString dir;
if ( addOnly )
dir = startDir;
else
@@ -296,7 +296,7 @@ MainWindow::getOpenURL( bool addOnly, const QString & caption,
m_widget->setOpenAsMimeType(
ArchiveFormatInfo::self()->mimeTypeForDescription( combo->currentText() ) );
else
- m_widget->setOpenAsMimeType( QString::null );
+ m_widget->setOpenAsMimeType( TQString::null );
return url;
}
@@ -355,7 +355,7 @@ MainWindow::saveProperties( KConfig* config )
void
MainWindow::readProperties( KConfig* config )
{
- QString file = config->readPathEntry("SMOpenedFile");
+ TQString file = config->readPathEntry("SMOpenedFile");
kdDebug(1601) << "ArkWidget::readProperties( KConfig* config ) file=" << file << endl;
if ( !file.isEmpty() )
openURL( KURL::fromPathOrURL( file ) );
@@ -402,7 +402,7 @@ MainWindow::extractTo( const KURL & targetDirectory, const KURL & archive, bool
}
void
-MainWindow::addToArchive( const KURL::List & filesToAdd, const QString & /*cwd*/,
+MainWindow::addToArchive( const KURL::List & filesToAdd, const TQString & /*cwd*/,
const KURL & archive, bool askForName )
{
KURL archiveFile;
@@ -416,7 +416,7 @@ MainWindow::addToArchive( const KURL::List & filesToAdd, const QString & /*cwd*/
// like: /dira> ark -add /dirb/file, but well...
KURL cwdURL;
cwdURL.setPath( filesToAdd.first().path() );
- QString dir = cwdURL.directory( false );
+ TQString dir = cwdURL.directory( false );
archiveFile = getOpenURL( true, i18n( "Select Archive to Add Files To" ),
dir /*cwd*/, archive.fileName() );
@@ -443,10 +443,10 @@ MainWindow::addToArchive( const KURL::List & filesToAdd, const QString & /*cwd*/
}
void
-MainWindow::startProgressDialog( const QString & text )
+MainWindow::startProgressDialog( const TQString & text )
{
if ( !progressDialog )
- progressDialog = new KProgressDialog( this, "progress_dialog", QString::null, text, false );
+ progressDialog = new KProgressDialog( this, "progress_dialog", TQString::null, text, false );
else
progressDialog->setLabel( text );
@@ -458,14 +458,14 @@ MainWindow::startProgressDialog( const QString & text )
progressDialog->progressBar()->setTotalSteps( 0 );
progressDialog->progressBar()->setPercentageVisible( false );
-// progressDialog->setInitialSize( QSize(200,100), true );
+// progressDialog->setInitialSize( TQSize(200,100), true );
progressDialog->setMinimumDuration( 500 );
progressDialog->show();
KDialog::centerOnScreen( progressDialog );
- connect( progressDialog, SIGNAL( cancelClicked() ), this, SLOT( window_close() ) );
+ connect( progressDialog, TQT_SIGNAL( cancelClicked() ), this, TQT_SLOT( window_close() ) );
- timer = new QTimer( this );
- connect( timer, SIGNAL( timeout() ), this, SLOT( slotProgress() ) );
+ timer = new TQTimer( this );
+ connect( timer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotProgress() ) );
timer->start( 200, false );
}
diff --git a/ark/mainwindow.h b/ark/mainwindow.h
index 2d25ed0..428167e 100644
--- a/ark/mainwindow.h
+++ b/ark/mainwindow.h
@@ -25,9 +25,9 @@
#define ARKMAINWINDOW_H
// QT includes
-#include <qstring.h>
-#include <qpopupmenu.h>
-#include <qtimer.h>
+#include <tqstring.h>
+#include <tqpopupmenu.h>
+#include <tqtimer.h>
// KDE includes
#include <kmainwindow.h>
@@ -42,12 +42,12 @@ MainWindow: public KParts::MainWindow
{
Q_OBJECT
public:
- MainWindow( QWidget *parent=0, const char *name=0 );
+ MainWindow( TQWidget *parent=0, const char *name=0 );
virtual ~MainWindow();
void setExtractOnly ( bool b );
void extractTo( const KURL & targetDirectory, const KURL & archive, bool guessName );
- void addToArchive( const KURL::List & filesToAdd, const QString & cwd = QString::null,
+ void addToArchive( const KURL::List & filesToAdd, const TQString & cwd = TQString::null,
const KURL & archive = KURL(), bool askForName = false );
public slots:
@@ -65,7 +65,7 @@ public slots:
virtual void saveProperties( KConfig* config );
virtual void readProperties( KConfig* config );
void slotSaveProperties();
- void slotArchivePopup( const QPoint &pPoint);
+ void slotArchivePopup( const TQPoint &pPoint);
void slotRemoveRecentURL( const KURL &url );
void slotAddRecentURL( const KURL &url );
void slotFixActionState( const bool & bHaveFiles );
@@ -81,14 +81,14 @@ private: // methods
void setupActions();
void setupMenuBar();
- void newCaption(const QString & filename);
+ void newCaption(const TQString & filename);
bool arkAlreadyOpen( const KURL & url );
- KURL getOpenURL( bool addOnly = false , const QString & caption = QString::null,
- const QString & startDir = QString::null,
- const QString & suggestedName = QString::null );
+ KURL getOpenURL( bool addOnly = false , const TQString & caption = TQString::null,
+ const TQString & startDir = TQString::null,
+ const TQString & suggestedName = TQString::null );
- void startProgressDialog( const QString & text );
+ void startProgressDialog( const TQString & text );
private slots:
void slotProgress();
@@ -106,7 +106,7 @@ private: // data
//progress dialog for konqs service menus / commmand line
KProgressDialog *progressDialog;
- QTimer *timer;
+ TQTimer *timer;
};
#endif /* ARKMAINWINDOW_H*/
diff --git a/ark/rar.cpp b/ark/rar.cpp
index 071dc9e..554fdfc 100644
--- a/ark/rar.cpp
+++ b/ark/rar.cpp
@@ -30,8 +30,8 @@
#include <string>
// QT includes
-#include <qfile.h>
-#include <qdir.h>
+#include <tqfile.h>
+#include <tqdir.h>
// KDE includes
#include <kdebug.h>
@@ -50,7 +50,7 @@
#include "arkutils.h"
#include "filelistview.h"
-RarArch::RarArch( ArkWidget *_gui, const QString & _fileName )
+RarArch::RarArch( ArkWidget *_gui, const TQString & _fileName )
: Arch( _gui, _fileName )
{
// Check if rar is available
@@ -87,26 +87,26 @@ RarArch::RarArch( ArkWidget *_gui, const QString & _fileName )
m_isFirstLine = true;
}
-bool RarArch::processLine( const QCString &line )
+bool RarArch::processLine( const TQCString &line )
{
if ( m_isFirstLine )
{
- m_entryFilename = QString::fromLocal8Bit( line );
+ m_entryFilename = TQString::fromLocal8Bit( line );
m_entryFilename.remove( 0, 1 );
m_isFirstLine = false;
return true;
}
- QStringList list;
+ TQStringList list;
- QStringList l2 = QStringList::split( ' ', line );
+ TQStringList l2 = TQStringList::split( ' ', line );
list << m_entryFilename; // filename
list << l2[ 0 ]; // size
list << l2[ 1 ]; // packed
list << l2[ 2 ]; // ratio
- QStringList date = QStringList::split( '-', l2[ 3 ] );
+ TQStringList date = TQStringList::split( '-', l2[ 3 ] );
list << ArkUtils::fixYear( date[ 2 ].latin1() ) + '-' + date[ 1 ] + '-' + date [ 0 ] + ' ' + l2[4]; // date
list << l2[ 5 ]; // attributes
list << l2[ 6 ]; // crc
@@ -137,17 +137,17 @@ void RarArch::open()
*kp << m_filename;
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedTOC(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotOpenExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedTOC(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotOpenExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
- emit sigOpen( this, false, QString::null, 0 );
+ emit sigOpen( this, false, TQString::null, 0 );
}
}
@@ -173,17 +173,17 @@ void RarArch::create()
Arch::Extract | Arch::Delete | Arch::Add | Arch::View );
}
-void RarArch::addDir( const QString & _dirName )
+void RarArch::addDir( const TQString & _dirName )
{
if ( !_dirName.isEmpty() )
{
- QStringList list;
+ TQStringList list;
list.append( _dirName );
addFile( list );
}
}
-void RarArch::addFile( const QStringList & urls )
+void RarArch::addFile( const TQStringList & urls )
{
KProcess *kp = m_currentProcess = new KProcess;
@@ -203,21 +203,21 @@ void RarArch::addFile( const QStringList & urls )
*kp << m_filename;
KURL dir( urls.first() );
- QDir::setCurrent( dir.directory() );
+ TQDir::setCurrent( dir.directory() );
- QStringList::ConstIterator iter;
+ TQStringList::ConstIterator iter;
for ( iter = urls.begin(); iter != urls.end(); ++iter )
{
KURL url( *iter );
*kp << url.fileName();
}
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotAddExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotAddExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
@@ -260,7 +260,7 @@ void RarArch::unarchFileInternal()
// and we then extract everything in the archive.
if ( m_fileList )
{
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = m_fileList->begin(); it != m_fileList->end(); ++it )
{
*kp << (*it);
@@ -269,12 +269,12 @@ void RarArch::unarchFileInternal()
*kp << m_destDir ;
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotExtractExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotExtractExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
@@ -288,7 +288,7 @@ bool RarArch::passwordRequired()
return m_lastShellOutput.findRev("password incorrect ?)")+1;
}
-void RarArch::remove( QStringList *list )
+void RarArch::remove( TQStringList *list )
{
if ( !list )
return;
@@ -298,19 +298,19 @@ void RarArch::remove( QStringList *list )
*kp << m_archiver_program << "d" << m_filename;
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = list->begin(); it != list->end(); ++it )
{
- QString str = *it;
+ TQString str = *it;
*kp << str;
}
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotDeleteExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotDeleteExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
diff --git a/ark/rar.h b/ark/rar.h
index d8a4ab4..5ffab3f 100644
--- a/ark/rar.h
+++ b/ark/rar.h
@@ -36,21 +36,21 @@ class RarArch : public Arch
{
Q_OBJECT
public:
- RarArch( ArkWidget *_gui, const QString & _fileName );
+ RarArch( ArkWidget *_gui, const TQString & _fileName );
virtual ~RarArch() {}
virtual void open();
virtual void create();
- virtual void addFile( const QStringList & );
- virtual void addDir( const QString & );
+ virtual void addFile( const TQStringList & );
+ virtual void addDir( const TQString & );
- virtual void remove( QStringList * );
+ virtual void remove( TQStringList * );
virtual void unarchFileInternal();
virtual bool passwordRequired();
protected slots:
- virtual bool processLine( const QCString & );
+ virtual bool processLine( const TQCString & );
private:
void setHeaders();
@@ -62,7 +62,7 @@ class RarArch : public Arch
* Therefore, the variables below are needed.
*/
bool m_isFirstLine;
- QString m_entryFilename;
+ TQString m_entryFilename;
};
#endif // RAR_H
diff --git a/ark/searchbar.cpp b/ark/searchbar.cpp
index 015a3bf..40fb522 100644
--- a/ark/searchbar.cpp
+++ b/ark/searchbar.cpp
@@ -28,14 +28,14 @@
#include <kaction.h>
#include <kactioncollection.h>
-#include <qlabel.h>
-#include <qapplication.h>
-#include <qvaluelist.h>
+#include <tqlabel.h>
+#include <tqapplication.h>
+#include <tqvaluelist.h>
-SearchBar::SearchBar( QWidget* parent, KActionCollection* aC, const char * name )
+SearchBar::SearchBar( TQWidget* parent, KActionCollection* aC, const char * name )
: KListViewSearchLine( parent, 0, name )
{
- KAction *resetSearch = new KAction( i18n( "Reset Search" ), QApplication::reverseLayout() ? "clear_left" : "locationbar_erase", 0, this, SLOT( clear() ), aC, "reset_search" );
+ KAction *resetSearch = new KAction( i18n( "Reset Search" ), TQApplication::reverseLayout() ? "clear_left" : "locationbar_erase", 0, this, TQT_SLOT( clear() ), aC, "reset_search" );
resetSearch->plug( parent );
resetSearch->setWhatsThis( i18n( "Reset Search\n"
diff --git a/ark/searchbar.h b/ark/searchbar.h
index 95857ae..c21b4d4 100644
--- a/ark/searchbar.h
+++ b/ark/searchbar.h
@@ -23,7 +23,7 @@
#include <klistviewsearchline.h>
-#include <qwidget.h>
+#include <tqwidget.h>
class KListView;
class KComboBox;
@@ -33,7 +33,7 @@ class SearchBar: public KListViewSearchLine
{
Q_OBJECT
public:
- SearchBar( QWidget* parent, KActionCollection* aC, const char * name = 0 );
+ SearchBar( TQWidget* parent, KActionCollection* aC, const char * name = 0 );
~SearchBar();
};
diff --git a/ark/sevenzip.cpp b/ark/sevenzip.cpp
index 30747a3..99170ac 100644
--- a/ark/sevenzip.cpp
+++ b/ark/sevenzip.cpp
@@ -24,7 +24,7 @@
*/
-#include <qdir.h>
+#include <tqdir.h>
#include <kglobal.h>
#include <klocale.h>
@@ -40,7 +40,7 @@
#include "arkutils.h"
#include "filelistview.h"
-SevenZipArch::SevenZipArch( ArkWidget *gui, const QString &filename )
+SevenZipArch::SevenZipArch( ArkWidget *gui, const TQString &filename )
: Arch( gui, filename ), m_nameColumnPos( -1 )
{
// Check if 7z is available
@@ -64,13 +64,13 @@ SevenZipArch::SevenZipArch( ArkWidget *gui, const QString &filename )
m_dateCol = 3;
m_numCols = 5;
- m_archCols.append( new ArchColumns( 5, QRegExp( "[0-2][0-9][0-9][0-9]" ), 4 ) ); // Year
- m_archCols.append( new ArchColumns( 6, QRegExp( "[01][0-9]" ), 2 ) ); // Month
- m_archCols.append( new ArchColumns( 7, QRegExp( "[0-3][0-9]" ), 2 ) ); // Day
- m_archCols.append( new ArchColumns( 8, QRegExp( "[0-9:]+" ), 8 ) ); // Time
- m_archCols.append( new ArchColumns( 4, QRegExp( "[^\\s]+" ) ) ); // Attributes
- m_archCols.append( new ArchColumns( 1, QRegExp( "[0-9]+" ) ) ); // Size
- m_archCols.append( new ArchColumns( 2, QRegExp( "[0-9]+" ), 64, true ) ); // Compressed Size
+ m_archCols.append( new ArchColumns( 5, TQRegExp( "[0-2][0-9][0-9][0-9]" ), 4 ) ); // Year
+ m_archCols.append( new ArchColumns( 6, TQRegExp( "[01][0-9]" ), 2 ) ); // Month
+ m_archCols.append( new ArchColumns( 7, TQRegExp( "[0-3][0-9]" ), 2 ) ); // Day
+ m_archCols.append( new ArchColumns( 8, TQRegExp( "[0-9:]+" ), 8 ) ); // Time
+ m_archCols.append( new ArchColumns( 4, TQRegExp( "[^\\s]+" ) ) ); // Attributes
+ m_archCols.append( new ArchColumns( 1, TQRegExp( "[0-9]+" ) ) ); // Size
+ m_archCols.append( new ArchColumns( 2, TQRegExp( "[0-9]+" ), 64, true ) ); // Compressed Size
}
SevenZipArch::~SevenZipArch()
@@ -100,17 +100,17 @@ void SevenZipArch::open()
KProcess *kp = m_currentProcess = new KProcess;
*kp << m_archiver_program << "l" << m_filename;
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedTOC(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotOpenExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedTOC(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotOpenExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
- emit sigOpen( this, false, QString::null, 0 );
+ emit sigOpen( this, false, TQString::null, 0 );
}
}
@@ -120,7 +120,7 @@ void SevenZipArch::create()
Arch::Extract | Arch::Delete | Arch::Add | Arch::View );
}
-void SevenZipArch::addFile( const QStringList & urls )
+void SevenZipArch::addFile( const TQStringList & urls )
{
KProcess *kp = m_currentProcess = new KProcess;
@@ -128,23 +128,23 @@ void SevenZipArch::addFile( const QStringList & urls )
*kp << m_archiver_program << "a" ;
KURL url( urls.first() );
- QDir::setCurrent( url.directory() );
+ TQDir::setCurrent( url.directory() );
*kp << m_filename;
- QStringList::ConstIterator iter;
+ TQStringList::ConstIterator iter;
for ( iter = urls.begin(); iter != urls.end(); ++iter )
{
KURL url( *iter );
*kp << url.fileName();
}
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotAddExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotAddExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
@@ -153,17 +153,17 @@ void SevenZipArch::addFile( const QStringList & urls )
}
}
-void SevenZipArch::addDir( const QString & dirName )
+void SevenZipArch::addDir( const TQString & dirName )
{
if ( !dirName.isEmpty() )
{
- QStringList list;
+ TQStringList list;
list.append( dirName );
addFile( list );
}
}
-void SevenZipArch::remove( QStringList *list )
+void SevenZipArch::remove( TQStringList *list )
{
if ( !list )
return;
@@ -173,18 +173,18 @@ void SevenZipArch::remove( QStringList *list )
*kp << m_archiver_program << "d" << m_filename;
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = list->begin(); it != list->end(); ++it )
{
*kp << *it;
}
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotDeleteExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotDeleteExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
@@ -218,7 +218,7 @@ void SevenZipArch::unarchFileInternal( )
// and we then extract everything in the archive.
if ( m_fileList )
{
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = m_fileList->begin(); it != m_fileList->end(); ++it )
{
*kp << (*it);
@@ -227,12 +227,12 @@ void SevenZipArch::unarchFileInternal( )
*kp << "-o" + m_destDir ;
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotExtractExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotExtractExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
@@ -241,10 +241,10 @@ void SevenZipArch::unarchFileInternal( )
}
}
-bool SevenZipArch::processLine( const QCString& _line )
+bool SevenZipArch::processLine( const TQCString& _line )
{
- QCString line( _line );
- QString columns[ 11 ];
+ TQCString line( _line );
+ TQString columns[ 11 ];
unsigned int pos = 0;
int strpos, len;
@@ -252,7 +252,7 @@ bool SevenZipArch::processLine( const QCString& _line )
line.truncate( m_nameColumnPos );
// Go through our columns, try to pick out data, return silently on failure
- for ( QPtrListIterator <ArchColumns>col( m_archCols ); col.current(); ++col )
+ for ( TQPtrListIterator <ArchColumns>col( m_archCols ); col.current(); ++col )
{
ArchColumns *curCol = *col;
@@ -278,14 +278,14 @@ bool SevenZipArch::processLine( const QCString& _line )
if ( m_dateCol >= 0 )
{
- QString year = ( m_repairYear >= 0 ) ?
+ TQString year = ( m_repairYear >= 0 ) ?
ArkUtils::fixYear( columns[ m_repairYear ].ascii())
: columns[ m_fixYear ];
- QString month = ( m_repairMonth >= 0 ) ?
- QString( "%1" )
+ TQString month = ( m_repairMonth >= 0 ) ?
+ TQString( "%1" )
.arg( ArkUtils::getMonth( columns[ m_repairMonth ].ascii() ) )
: columns[ m_fixMonth ];
- QString timestamp = QString::fromLatin1( "%1-%2-%3 %4" )
+ TQString timestamp = TQString::fromLatin1( "%1-%2-%3 %4" )
.arg( year )
.arg( month )
.arg( columns[ m_fixDay ] )
@@ -294,7 +294,7 @@ bool SevenZipArch::processLine( const QCString& _line )
columns[ m_dateCol ] = timestamp;
}
- QStringList list;
+ TQStringList list;
for ( int i = 0; i < m_numCols; ++i )
{
diff --git a/ark/sevenzip.h b/ark/sevenzip.h
index 4a34c48..f728768 100644
--- a/ark/sevenzip.h
+++ b/ark/sevenzip.h
@@ -30,20 +30,20 @@ class SevenZipArch : public Arch
{
Q_OBJECT
public:
- SevenZipArch( ArkWidget *, const QString & );
+ SevenZipArch( ArkWidget *, const TQString & );
virtual ~SevenZipArch();
virtual void open();
virtual void create();
- virtual void addFile( const QStringList & );
- virtual void addDir( const QString & );
+ virtual void addFile( const TQStringList & );
+ virtual void addDir( const TQString & );
- virtual void remove( QStringList * );
+ virtual void remove( TQStringList * );
virtual void unarchFileInternal( );
protected slots:
- virtual bool processLine( const QCString& line );
+ virtual bool processLine( const TQCString& line );
virtual void slotReceivedTOC( KProcess*, char*, int );
private:
diff --git a/ark/tar.cpp b/ark/tar.cpp
index 5f104ef..6e599c9 100644
--- a/ark/tar.cpp
+++ b/ark/tar.cpp
@@ -49,9 +49,9 @@
#include <stdlib.h>
// Qt includes
-#include <qdir.h>
-#include <qregexp.h>
-#include <qeventloop.h>
+#include <tqdir.h>
+#include <tqregexp.h>
+#include <tqeventloop.h>
// KDE includes
#include <kapplication.h>
@@ -74,13 +74,13 @@
#include "tarlistingthread.h"
TarArch::TarArch( ArkWidget *_gui,
- const QString & _filename, const QString & _openAsMimeType)
+ const TQString & _filename, const TQString & _openAsMimeType)
: Arch( _gui, _filename), m_tmpDir( 0 ), createTmpInProgress(false),
updateInProgress(false), deleteInProgress(false), fd(0),
m_pTmpProc( 0 ), m_pTmpProc2( 0 ), failed( false ),
m_dotslash( false ), m_listingThread( 0 )
{
- m_filesToAdd = m_filesToRemove = QStringList();
+ m_filesToAdd = m_filesToRemove = TQStringList();
m_archiver_program = m_unarchiver_program = ArkSettings::tarExe();
verifyCompressUtilityIsAvailable( m_archiver_program );
verifyUncompressUtilityIsAvailable( m_unarchiver_program );
@@ -106,12 +106,12 @@ TarArch::TarArch( ArkWidget *_gui,
{
compressed = true;
m_tmpDir = new KTempDir( _gui->tmpDir()
- + QString::fromLatin1( "temp_tar" ) );
+ + TQString::fromLatin1( "temp_tar" ) );
m_tmpDir->setAutoDelete( true );
m_tmpDir->qDir()->cd( m_tmpDir->name() );
// build the temp file name
KTempFile *pTempFile = new KTempFile( m_tmpDir->name(),
- QString::fromLatin1(".tar") );
+ TQString::fromLatin1(".tar") );
tmpfile = pTempFile->name();
delete pTempFile;
@@ -143,7 +143,7 @@ void TarArch::updateArch()
if (compressed)
{
updateInProgress = true;
- int f_desc = KDE_open(QFile::encodeName(m_filename), O_CREAT | O_TRUNC | O_WRONLY, 0666);
+ int f_desc = KDE_open(TQFile::encodeName(m_filename), O_CREAT | O_TRUNC | O_WRONLY, 0666);
if (f_desc != -1)
fd = fdopen( f_desc, "w" );
else
@@ -163,13 +163,13 @@ void TarArch::updateArch()
*kp << "cat" << tmpfile;
- connect(kp, SIGNAL(receivedStdout(KProcess*, char*, int)),
- this, SLOT(updateProgress( KProcess *, char *, int )));
- connect( kp, SIGNAL(receivedStderr(KProcess*, char*, int)),
- (Arch *)this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect(kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
+ this, TQT_SLOT(updateProgress( KProcess *, char *, int )));
+ connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)),
+ (Arch *)this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect(kp, SIGNAL(processExited(KProcess *)),
- this, SLOT(updateFinished(KProcess *)) );
+ connect(kp, TQT_SIGNAL(processExited(KProcess *)),
+ this, TQT_SLOT(updateFinished(KProcess *)) );
if ( !fd || kp->start(KProcess::NotifyOnExit, flag) == false)
{
@@ -197,46 +197,46 @@ void TarArch::updateProgress( KProcess * _proc, char *_buffer, int _bufflen )
-QString TarArch::getCompressor()
+TQString TarArch::getCompressor()
{
if ( m_fileMimeType == "application/x-tarz" )
- return QString( "compress" );
+ return TQString( "compress" );
if ( m_fileMimeType == "application/x-tgz" )
- return QString( "gzip" );
+ return TQString( "gzip" );
if ( m_fileMimeType == "application/x-tbz" )
- return QString( "bzip2" );
+ return TQString( "bzip2" );
if( m_fileMimeType == "application/x-tzo" )
- return QString( "lzop" );
+ return TQString( "lzop" );
- return QString::null;
+ return TQString::null;
}
-QString TarArch::getUnCompressor()
+TQString TarArch::getUnCompressor()
{
if ( m_fileMimeType == "application/x-tarz" )
- return QString( "uncompress" );
+ return TQString( "uncompress" );
if ( m_fileMimeType == "application/x-tgz" )
- return QString( "gunzip" );
+ return TQString( "gunzip" );
if ( m_fileMimeType == "application/x-tbz" )
- return QString( "bunzip2" );
+ return TQString( "bunzip2" );
if( m_fileMimeType == "application/x-tzo" )
- return QString( "lzop" );
+ return TQString( "lzop" );
- return QString::null;
+ return TQString::null;
}
void
TarArch::open()
{
if ( compressed )
- QFile::remove(tmpfile); // just to make sure
+ TQFile::remove(tmpfile); // just to make sure
setHeaders();
clearShellOutput();
@@ -260,12 +260,12 @@ TarArch::open()
m_header_removed = false;
m_finished = false;
- connect(kp, SIGNAL(processExited(KProcess *)),
- this, SLOT(slotListingDone(KProcess *)));
- connect(kp, SIGNAL(receivedStdout(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput( KProcess *, char *, int )));
- connect( kp, SIGNAL(receivedStderr(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect(kp, TQT_SIGNAL(processExited(KProcess *)),
+ this, TQT_SLOT(slotListingDone(KProcess *)));
+ connect(kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput( KProcess *, char *, int )));
+ connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
if (kp->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false)
{
@@ -282,7 +282,7 @@ TarArch::open()
}
else
{
- connect( this, SIGNAL( createTempDone() ), this, SLOT( openFirstCreateTempDone() ) );
+ connect( this, TQT_SIGNAL( createTempDone() ), this, TQT_SLOT( openFirstCreateTempDone() ) );
createTmp();
}
}
@@ -292,7 +292,7 @@ void TarArch::openFirstCreateTempDone()
if ( compressed && ( m_fileMimeType != "application/x-tgz" )
&& ( m_fileMimeType != "application/x-tbz" ) )
{
- disconnect( this, SIGNAL( createTempDone() ), this, SLOT( openFirstCreateTempDone() ) );
+ disconnect( this, TQT_SIGNAL( createTempDone() ), this, TQT_SLOT( openFirstCreateTempDone() ) );
}
Q_ASSERT( !m_listingThread );
@@ -302,19 +302,19 @@ void TarArch::openFirstCreateTempDone()
void TarArch::slotListingDone(KProcess *_kp)
{
- const QString list = getLastShellOutput();
+ const TQString list = getLastShellOutput();
FileListView *flv = m_gui->fileList();
if (flv!=NULL && flv->totalFiles()>0)
{
- const QString firstfile = ((FileLVI *) flv->firstChild())->fileName();
- if (list.find(QRegExp(QString("\\s\\./%1[/\\n]").arg(firstfile)))>=0)
+ const TQString firstfile = ((FileLVI *) flv->firstChild())->fileName();
+ if (list.find(TQRegExp(TQString("\\s\\./%1[/\\n]").arg(firstfile)))>=0)
{
m_dotslash = true;
kdDebug(1601) << k_funcinfo << "archive has dot-slash" << endl;
}
else
{
- if (list.find(QRegExp(QString("\\s%1[/\\n]").arg(firstfile)))>=0)
+ if (list.find(TQRegExp(TQString("\\s%1[/\\n]").arg(firstfile)))>=0)
{
// archive doesn't have dot-slash
m_dotslash = false;
@@ -356,15 +356,15 @@ void TarArch::createTmp()
{
if ( compressed )
{
- if ( !QFile::exists(tmpfile) )
+ if ( !TQFile::exists(tmpfile) )
{
- QString strUncompressor = getUnCompressor();
+ TQString strUncompressor = getUnCompressor();
// at least lzop doesn't want to pipe zerosize/nonexistent files
- QFile originalFile( m_filename );
+ TQFile originalFile( m_filename );
if ( strUncompressor != "gunzip" && strUncompressor !="bunzip2" &&
( !originalFile.exists() || originalFile.size() == 0 ) )
{
- QFile temp( tmpfile );
+ TQFile temp( tmpfile );
temp.open( IO_ReadWrite );
temp.close();
emit createTempDone();
@@ -372,7 +372,7 @@ void TarArch::createTmp()
}
// the tmpfile does not yet exist, so we create it.
createTmpInProgress = true;
- int f_desc = KDE_open(QFile::encodeName(tmpfile), O_CREAT | O_TRUNC | O_WRONLY, 0666);
+ int f_desc = KDE_open(TQFile::encodeName(tmpfile), O_CREAT | O_TRUNC | O_WRONLY, 0666);
if (f_desc != -1)
fd = fdopen( f_desc, "w" );
else
@@ -394,16 +394,16 @@ void TarArch::createTmp()
}
*kp << "-c" << m_filename;
- connect(kp, SIGNAL(processExited(KProcess *)),
- this, SLOT(createTmpFinished(KProcess *)));
- connect(kp, SIGNAL(receivedStdout(KProcess*, char*, int)),
- this, SLOT(createTmpProgress( KProcess *, char *, int )));
- connect( kp, SIGNAL(receivedStderr(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect(kp, TQT_SIGNAL(processExited(KProcess *)),
+ this, TQT_SLOT(createTmpFinished(KProcess *)));
+ connect(kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
+ this, TQT_SLOT(createTmpProgress( KProcess *, char *, int )));
+ connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
if (kp->start(KProcess::NotifyOnExit, flag ) == false)
{
KMessageBox::error(0, i18n("Unable to fork a decompressor"));
- emit sigOpen( this, false, QString::null, 0 );
+ emit sigOpen( this, false, TQString::null, 0 );
}
}
else
@@ -436,13 +436,13 @@ void TarArch::createTmpProgress( KProcess * _proc, char *_buffer, int _bufflen )
}
}
-void TarArch::deleteOldFiles(const QStringList &urls, bool bAddOnlyNew)
+void TarArch::deleteOldFiles(const TQStringList &urls, bool bAddOnlyNew)
// because tar is broken. Used when appending: see addFile.
{
- QStringList list;
- QString str;
+ TQStringList list;
+ TQString str;
- QStringList::ConstIterator iter;
+ TQStringList::ConstIterator iter;
for (iter = urls.begin(); iter != urls.end(); ++iter )
{
KURL url( *iter );
@@ -457,9 +457,9 @@ void TarArch::deleteOldFiles(const QStringList &urls, bool bAddOnlyNew)
// old. Otherwise we aren't adding it anyway, so we can go on to the next
// file with a "continue".
- QFileInfo fileInfo( url.path() );
- QDateTime addFileMTime = fileInfo.lastModified();
- QDateTime oldFileMTime = lv->timeStamp();
+ TQFileInfo fileInfo( url.path() );
+ TQDateTime addFileMTime = fileInfo.lastModified();
+ TQDateTime oldFileMTime = lv->timeStamp();
kdDebug(1601) << "Old file: " << oldFileMTime.date().year() << '-' <<
oldFileMTime.date().month() << '-' << oldFileMTime.date().day() <<
@@ -489,7 +489,7 @@ void TarArch::deleteOldFiles(const QStringList &urls, bool bAddOnlyNew)
}
-void TarArch::addFile( const QStringList& urls )
+void TarArch::addFile( const TQStringList& urls )
{
m_filesToAdd = urls;
// tar is broken. If you add a file that's already there, it gives you
@@ -499,23 +499,23 @@ void TarArch::addFile( const QStringList& urls )
// first. So we'll first delete all the old files matching the names of
// those in urls.
m_bNotifyWhenDeleteFails = false;
- connect( this, SIGNAL( removeDone() ), this, SLOT( deleteOldFilesDone() ) );
+ connect( this, TQT_SIGNAL( removeDone() ), this, TQT_SLOT( deleteOldFilesDone() ) );
deleteOldFiles(urls, ArkSettings::replaceOnlyWithNewer());
}
void TarArch::deleteOldFilesDone()
{
- disconnect( this, SIGNAL( removeDone() ), this, SLOT( deleteOldFilesDone() ) );
+ disconnect( this, TQT_SIGNAL( removeDone() ), this, TQT_SLOT( deleteOldFilesDone() ) );
m_bNotifyWhenDeleteFails = true;
- connect( this, SIGNAL( createTempDone() ), this, SLOT( addFileCreateTempDone() ) );
+ connect( this, TQT_SIGNAL( createTempDone() ), this, TQT_SLOT( addFileCreateTempDone() ) );
createTmp();
}
void TarArch::addFileCreateTempDone()
{
- disconnect( this, SIGNAL( createTempDone() ), this, SLOT( addFileCreateTempDone() ) );
- QStringList * urls = &m_filesToAdd;
+ disconnect( this, TQT_SIGNAL( createTempDone() ), this, TQT_SLOT( addFileCreateTempDone() ) );
+ TQStringList * urls = &m_filesToAdd;
KProcess *kp = m_currentProcess = new KProcess;
*kp << m_archiver_program;
@@ -530,9 +530,9 @@ void TarArch::addFileCreateTempDone()
else
*kp << m_filename;
- QStringList::ConstIterator iter;
+ TQStringList::ConstIterator iter;
KURL url( urls->first() );
- QDir::setCurrent( url.directory() );
+ TQDir::setCurrent( url.directory() );
for (iter = urls->begin(); iter != urls->end(); ++iter )
{
KURL fileURL( *iter );
@@ -540,20 +540,20 @@ void TarArch::addFileCreateTempDone()
}
// debugging info
- QValueList<QCString> list = kp->args();
- QValueList<QCString>::Iterator strTemp;
+ TQValueList<TQCString> list = kp->args();
+ TQValueList<TQCString>::Iterator strTemp;
for ( strTemp=list.begin(); strTemp != list.end(); ++strTemp )
{
kdDebug(1601) << *strTemp << " " << endl;
}
- connect( kp, SIGNAL(receivedStdout(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect( kp, SIGNAL(receivedStderr(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect( kp, SIGNAL(processExited(KProcess*)), this,
- SLOT(slotAddFinished(KProcess*)));
+ connect( kp, TQT_SIGNAL(processExited(KProcess*)), this,
+ TQT_SLOT(slotAddFinished(KProcess*)));
if (kp->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false)
{
@@ -564,13 +564,13 @@ void TarArch::addFileCreateTempDone()
void TarArch::slotAddFinished(KProcess *_kp)
{
- disconnect( _kp, SIGNAL(processExited(KProcess*)), this,
- SLOT(slotAddFinished(KProcess*)));
+ disconnect( _kp, TQT_SIGNAL(processExited(KProcess*)), this,
+ TQT_SLOT(slotAddFinished(KProcess*)));
m_pTmpProc = _kp;
- m_filesToAdd = QStringList();
+ m_filesToAdd = TQStringList();
if ( compressed )
{
- connect( this, SIGNAL( updateDone() ), this, SLOT( addFinishedUpdateDone() ) );
+ connect( this, TQT_SIGNAL( updateDone() ), this, TQT_SLOT( addFinishedUpdateDone() ) );
updateArch();
}
else
@@ -580,14 +580,14 @@ void TarArch::slotAddFinished(KProcess *_kp)
void TarArch::addFinishedUpdateDone()
{
if ( compressed )
- disconnect( this, SIGNAL( updateDone() ), this, SLOT( addFinishedUpdateDone() ) );
+ disconnect( this, TQT_SIGNAL( updateDone() ), this, TQT_SLOT( addFinishedUpdateDone() ) );
Arch::slotAddExited( m_pTmpProc ); // this will delete _kp
m_pTmpProc = NULL;
}
void TarArch::unarchFileInternal()
{
- QString dest;
+ TQString dest;
if (m_destDir.isEmpty() || m_destDir.isNull())
{
@@ -596,7 +596,7 @@ void TarArch::unarchFileInternal()
}
else dest = m_destDir;
- QString tmp;
+ TQString tmp;
KProcess *kp = m_currentProcess = new KProcess;
kp->clearArguments();
@@ -605,7 +605,7 @@ void TarArch::unarchFileInternal()
if (compressed)
*kp << "--use-compress-program="+getUnCompressor();
- QString options = "-x";
+ TQString options = "-x";
if (!ArkSettings::extractOverwrite())
options += "k";
if (ArkSettings::preservePerms())
@@ -619,20 +619,20 @@ void TarArch::unarchFileInternal()
// and we then extract everything in the archive.
if (m_fileList)
{
- for ( QStringList::Iterator it = m_fileList->begin();
+ for ( TQStringList::Iterator it = m_fileList->begin();
it != m_fileList->end(); ++it )
{
- *kp << QString(m_dotslash ? "./" : "")+(*it);
+ *kp << TQString(m_dotslash ? "./" : "")+(*it);
}
}
- connect( kp, SIGNAL(receivedStdout(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect( kp, SIGNAL(receivedStderr(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect( kp, SIGNAL(processExited(KProcess*)), this,
- SLOT(slotExtractExited(KProcess*)));
+ connect( kp, TQT_SIGNAL(processExited(KProcess*)), this,
+ TQT_SLOT(slotExtractExited(KProcess*)));
if (kp->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false)
{
@@ -642,19 +642,19 @@ void TarArch::unarchFileInternal()
}
-void TarArch::remove(QStringList *list)
+void TarArch::remove(TQStringList *list)
{
deleteInProgress = true;
m_filesToRemove = *list;
- connect( this, SIGNAL( createTempDone() ), this, SLOT( removeCreateTempDone() ) );
+ connect( this, TQT_SIGNAL( createTempDone() ), this, TQT_SLOT( removeCreateTempDone() ) );
createTmp();
}
void TarArch::removeCreateTempDone()
{
- disconnect( this, SIGNAL( createTempDone() ), this, SLOT( removeCreateTempDone() ) );
+ disconnect( this, TQT_SIGNAL( createTempDone() ), this, TQT_SLOT( removeCreateTempDone() ) );
- QString name, tmp;
+ TQString name, tmp;
KProcess *kp = m_currentProcess = new KProcess;
kp->clearArguments();
*kp << m_archiver_program << "--delete" << "-f" ;
@@ -663,20 +663,20 @@ void TarArch::removeCreateTempDone()
else
*kp << m_filename;
- QStringList::Iterator it = m_filesToRemove.begin();
+ TQStringList::Iterator it = m_filesToRemove.begin();
for ( ; it != m_filesToRemove.end(); ++it )
{
- *kp << QString(m_dotslash ? "./" : "")+(*it);
+ *kp << TQString(m_dotslash ? "./" : "")+(*it);
}
- m_filesToRemove = QStringList();
+ m_filesToRemove = TQStringList();
- connect( kp, SIGNAL(receivedStdout(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect( kp, SIGNAL(receivedStderr(KProcess*, char*, int)),
- this, SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ connect( kp, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)),
+ this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
- connect( kp, SIGNAL(processExited(KProcess*)), this,
- SLOT(slotDeleteExited(KProcess*)));
+ connect( kp, TQT_SIGNAL(processExited(KProcess*)), this,
+ TQT_SLOT(slotDeleteExited(KProcess*)));
if (kp->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false)
{
@@ -690,7 +690,7 @@ void TarArch::slotDeleteExited(KProcess *_kp)
m_pTmpProc2 = _kp;
if ( compressed )
{
- connect( this, SIGNAL( updateDone() ), this, SLOT( removeUpdateDone() ) );
+ connect( this, TQT_SIGNAL( updateDone() ), this, TQT_SLOT( removeUpdateDone() ) );
updateArch();
}
else
@@ -700,7 +700,7 @@ void TarArch::slotDeleteExited(KProcess *_kp)
void TarArch::removeUpdateDone()
{
if ( compressed )
- disconnect( this, SIGNAL( updateDone() ), this, SLOT( removeUpdateDone() ) );
+ disconnect( this, TQT_SIGNAL( updateDone() ), this, TQT_SLOT( removeUpdateDone() ) );
deleteInProgress = false;
emit removeDone();
@@ -708,9 +708,9 @@ void TarArch::removeUpdateDone()
m_pTmpProc = NULL;
}
-void TarArch::addDir(const QString & _dirName)
+void TarArch::addDir(const TQString & _dirName)
{
- QStringList list;
+ TQStringList list;
list.append(_dirName);
addFile(list);
}
@@ -742,7 +742,7 @@ void TarArch::updateFinished( KProcess *_kp )
emit updateDone();
}
-void TarArch::customEvent( QCustomEvent *ev )
+void TarArch::customEvent( TQCustomEvent *ev )
{
if ( ev->type() == 65442 )
{
@@ -757,7 +757,7 @@ void TarArch::customEvent( QCustomEvent *ev )
m_listingThread->wait();
delete m_listingThread;
m_listingThread = 0;
- emit sigOpen( this, false, QString::null, 0 );
+ emit sigOpen( this, false, TQString::null, 0 );
break;
case ListingEvent::ListingFinished:
diff --git a/ark/tar.h b/ark/tar.h
index 544949a..08f189b 100644
--- a/ark/tar.h
+++ b/ark/tar.h
@@ -57,22 +57,22 @@ class TarArch : public Arch
{
Q_OBJECT
public:
- TarArch( ArkWidget *_gui, const QString & _filename,
- const QString & _openAsMimeType );
+ TarArch( ArkWidget *_gui, const TQString & _filename,
+ const TQString & _openAsMimeType );
virtual ~TarArch();
virtual void open();
virtual void create();
- virtual void addFile( const QStringList & );
- virtual void addDir( const QString & );
- virtual void remove( QStringList* );
+ virtual void addFile( const TQStringList & );
+ virtual void addDir( const TQString & );
+ virtual void remove( TQStringList* );
virtual void unarchFileInternal();
virtual int getEditFlag();
- QString getCompressor();
- QString getUnCompressor();
+ TQString getCompressor();
+ TQString getUnCompressor();
public slots:
void updateProgress( KProcess *_kp, char *_buffer, int _bufflen );
@@ -98,21 +98,21 @@ class TarArch : public Arch
void removeUpdateDone();
protected:
- void customEvent( QCustomEvent * );
+ void customEvent( TQCustomEvent * );
private: // methods
void updateArch();
void createTmp();
void setHeaders();
- void processDir( const KTarDirectory *tardir, const QString & root );
- void deleteOldFiles( const QStringList &list, bool bAddOnlyNew );
- QString getEntry( const QString & filename );
+ void processDir( const KTarDirectory *tardir, const TQString & root );
+ void deleteOldFiles( const TQStringList &list, bool bAddOnlyNew );
+ TQString getEntry( const TQString & filename );
private: // data
// if the tar is compressed, this is the temporary uncompressed tar.
KTempDir * m_tmpDir;
- QString tmpfile;
- QString m_fileMimeType;
+ TQString tmpfile;
+ TQString m_fileMimeType;
bool compressed;
// for use with createTmp and updateArch
@@ -122,8 +122,8 @@ class TarArch : public Arch
// for use with deleteOldFiles
bool deleteInProgress;
FILE *fd;
- QStringList m_filesToAdd;
- QStringList m_filesToRemove;
+ TQStringList m_filesToAdd;
+ TQStringList m_filesToRemove;
KProcess * m_pTmpProc;
KProcess * m_pTmpProc2;
bool failed;
diff --git a/ark/tarlistingthread.cpp b/ark/tarlistingthread.cpp
index 2a98375..3045c4a 100644
--- a/ark/tarlistingthread.cpp
+++ b/ark/tarlistingthread.cpp
@@ -20,8 +20,8 @@
*/
-#include <qstring.h>
-#include <qapplication.h>
+#include <tqstring.h>
+#include <tqapplication.h>
#include <karchive.h>
#include <ktar.h>
@@ -78,8 +78,8 @@ static char *makeAccessString(mode_t mode)
return buffer;
}
-TarListingThread::TarListingThread( QObject *parent, const QString& filename )
- : QThread(), m_parent( parent )
+TarListingThread::TarListingThread( TQObject *parent, const TQString& filename )
+ : TQThread(), m_parent( parent )
{
Q_ASSERT( m_parent );
m_archive = new KTar( filename );
@@ -95,32 +95,32 @@ void TarListingThread::run()
{
if (!m_archive->open( IO_ReadOnly ))
{
- ListingEvent *ev = new ListingEvent( QStringList(), ListingEvent::Error );
+ ListingEvent *ev = new ListingEvent( TQStringList(), ListingEvent::Error );
qApp->postEvent( m_parent, ev );
return;
}
- processDir( m_archive->directory(), QString() );
+ processDir( m_archive->directory(), TQString() );
- // Send an empty QStringList in an Event to signal the listing end.
- ListingEvent *ev = new ListingEvent( QStringList(), ListingEvent::ListingFinished );
+ // Send an empty TQStringList in an Event to signal the listing end.
+ ListingEvent *ev = new ListingEvent( TQStringList(), ListingEvent::ListingFinished );
qApp->postEvent( m_parent, ev );
}
-void TarListingThread::processDir( const KTarDirectory *tardir, const QString & root )
+void TarListingThread::processDir( const KTarDirectory *tardir, const TQString & root )
{
- QStringList list = tardir->entries();
+ TQStringList list = tardir->entries();
- QStringList::const_iterator itEnd = list.constEnd();
+ TQStringList::const_iterator itEnd = list.constEnd();
- for ( QStringList::const_iterator it = list.constBegin(); it != itEnd; ++it )
+ for ( TQStringList::const_iterator it = list.constBegin(); it != itEnd; ++it )
{
const KTarEntry* tarEntry = tardir->entry((*it));
if (!tarEntry)
continue;
- QStringList col_list;
- QString name;
+ TQStringList col_list;
+ TQString name;
if (root.isEmpty() || root.isNull())
name = tarEntry->name();
else
@@ -128,7 +128,7 @@ void TarListingThread::processDir( const KTarDirectory *tardir, const QString &
if ( !tarEntry->isFile() )
name += '/';
col_list.append( name );
- QString perms = makeAccessString(tarEntry->permissions());
+ TQString perms = makeAccessString(tarEntry->permissions());
if (!tarEntry->isFile())
perms = "d" + perms;
else if (!tarEntry->symlink().isEmpty())
@@ -138,13 +138,13 @@ void TarListingThread::processDir( const KTarDirectory *tardir, const QString &
col_list.append(perms);
col_list.append( tarEntry->user() );
col_list.append( tarEntry->group() );
- QString strSize = "0";
+ TQString strSize = "0";
if (tarEntry->isFile())
{
strSize.sprintf("%d", ((KTarFile *)tarEntry)->size());
}
col_list.append(strSize);
- QString timestamp = tarEntry->datetime().toString(ISODate);
+ TQString timestamp = tarEntry->datetime().toString(ISODate);
col_list.append(timestamp);
col_list.append(tarEntry->symlink());
diff --git a/ark/tarlistingthread.h b/ark/tarlistingthread.h
index f9de02b..b79f10c 100644
--- a/ark/tarlistingthread.h
+++ b/ark/tarlistingthread.h
@@ -22,9 +22,9 @@
#ifndef TARLISTINGTHREAD_H
#define TARLISTINGTHREAD_H
-#include <qthread.h>
-#include <qstringlist.h>
-#include <qevent.h>
+#include <tqthread.h>
+#include <tqstringlist.h>
+#include <tqevent.h>
class QString;
class KArchive;
@@ -33,31 +33,31 @@ class ListingEvent: public QCustomEvent
{
public:
enum Status { Normal, Error, ListingFinished };
- ListingEvent( const QStringList& data, Status st = Normal )
- : QCustomEvent( 65442 ), m_data( data ), m_status( st ) {}
+ ListingEvent( const TQStringList& data, Status st = Normal )
+ : TQCustomEvent( 65442 ), m_data( data ), m_status( st ) {}
- const QStringList& columns() const { return m_data; }
+ const TQStringList& columns() const { return m_data; }
Status status() const { return m_status; }
private:
- QStringList m_data;
+ TQStringList m_data;
Status m_status;
};
class TarListingThread: public QThread
{
public:
- TarListingThread( QObject *parent, const QString& filename );
+ TarListingThread( TQObject *parent, const TQString& filename );
~TarListingThread();
protected:
void run();
private:
- void processDir( const KTarDirectory *tardir, const QString & root );
+ void processDir( const KTarDirectory *tardir, const TQString & root );
KArchive *m_archive;
- QObject *m_parent;
+ TQObject *m_parent;
};
#endif // TARLISTINGTHREAD_H
diff --git a/ark/zip.cpp b/ark/zip.cpp
index 3538d11..f223016 100644
--- a/ark/zip.cpp
+++ b/ark/zip.cpp
@@ -27,7 +27,7 @@
// Qt includes
-#include <qdir.h>
+#include <tqdir.h>
// KDE includes
#include <kdebug.h>
@@ -41,7 +41,7 @@
#include "settings.h"
-ZipArch::ZipArch( ArkWidget *_gui, const QString & _fileName )
+ZipArch::ZipArch( ArkWidget *_gui, const TQString & _fileName )
: Arch( _gui, _fileName )
{
m_archiver_program = "zip";
@@ -54,16 +54,16 @@ ZipArch::ZipArch( ArkWidget *_gui, const QString & _fileName )
m_dateCol = 5;
m_numCols = 7;
- m_archCols.append( new ArchColumns( 1, QRegExp( "[0-9]+" ) ) );
- m_archCols.append( new ArchColumns( 2, QRegExp( "[^\\s]+" ) ) );
- m_archCols.append( new ArchColumns( 3, QRegExp( "[0-9]+" ) ) );
- m_archCols.append( new ArchColumns( 4, QRegExp( "[0-9.]+%" ) ) );
- m_archCols.append( new ArchColumns( 7, QRegExp( "[01][0-9]" ), 2 ) );
- m_archCols.append( new ArchColumns( 8, QRegExp( "[0-3][0-9]" ), 2 ) );
- m_archCols.append( new ArchColumns( 9, QRegExp( "[0-9][0-9]" ), 2 ) );
- m_archCols.append( new ArchColumns( 10, QRegExp( "[0-9:]+" ), 6 ) );
- m_archCols.append( new ArchColumns( 6, QRegExp( "[a-fA-F0-9]+ {2}" ) ) );
- m_archCols.append( new ArchColumns( 0, QRegExp( "[^\\n]+" ), 4096 ) );
+ m_archCols.append( new ArchColumns( 1, TQRegExp( "[0-9]+" ) ) );
+ m_archCols.append( new ArchColumns( 2, TQRegExp( "[^\\s]+" ) ) );
+ m_archCols.append( new ArchColumns( 3, TQRegExp( "[0-9]+" ) ) );
+ m_archCols.append( new ArchColumns( 4, TQRegExp( "[0-9.]+%" ) ) );
+ m_archCols.append( new ArchColumns( 7, TQRegExp( "[01][0-9]" ), 2 ) );
+ m_archCols.append( new ArchColumns( 8, TQRegExp( "[0-3][0-9]" ), 2 ) );
+ m_archCols.append( new ArchColumns( 9, TQRegExp( "[0-9][0-9]" ), 2 ) );
+ m_archCols.append( new ArchColumns( 10, TQRegExp( "[0-9:]+" ), 6 ) );
+ m_archCols.append( new ArchColumns( 6, TQRegExp( "[a-fA-F0-9]+ {2}" ) ) );
+ m_archCols.append( new ArchColumns( 0, TQRegExp( "[^\\n]+" ), 4096 ) );
}
@@ -93,17 +93,17 @@ void ZipArch::open()
*kp << m_unarchiver_program << "-v" << m_filename;
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedTOC(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotOpenExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedTOC(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotOpenExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
- emit sigOpen( this, false, QString::null, 0 );
+ emit sigOpen( this, false, TQString::null, 0 );
}
}
@@ -114,7 +114,7 @@ void ZipArch::create()
Arch::Extract | Arch::Delete | Arch::Add | Arch::View );
}
-void ZipArch::addDir( const QString & _dirName )
+void ZipArch::addDir( const TQString & _dirName )
{
if ( !_dirName.isEmpty() )
{
@@ -122,14 +122,14 @@ void ZipArch::addDir( const QString & _dirName )
// must be true for add directory - otherwise why would user try?
ArkSettings::setRarRecurseSubdirs( true );
- QStringList list;
+ TQStringList list;
list.append( _dirName );
addFile( list );
ArkSettings::setRarRecurseSubdirs( bOldRecVal ); // reset to old val
}
}
-void ZipArch::addFile( const QStringList &urls )
+void ZipArch::addFile( const TQStringList &urls )
{
KProcess *kp = m_currentProcess = new KProcess;
kp->clearArguments();
@@ -156,21 +156,21 @@ void ZipArch::addFile( const QStringList &urls )
*kp << m_filename;
- QStringList::ConstIterator iter;
+ TQStringList::ConstIterator iter;
KURL url( urls.first() );
- QDir::setCurrent( url.directory() );
+ TQDir::setCurrent( url.directory() );
for ( iter = urls.begin(); iter != urls.end(); ++iter )
{
KURL fileURL( *iter );
*kp << fileURL.fileName();
}
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotAddExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotAddExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
@@ -214,7 +214,7 @@ void ZipArch::unarchFileInternal()
// and we then extract everything in the archive.
if ( m_fileList )
{
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = m_fileList->begin(); it != m_fileList->end(); ++it )
{
@@ -224,12 +224,12 @@ void ZipArch::unarchFileInternal()
*kp << "-d" << m_destDir;
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotExtractExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotExtractExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
@@ -243,7 +243,7 @@ bool ZipArch::passwordRequired()
return m_lastShellOutput.findRev("unable to get password\n")!=-1 || m_lastShellOutput.endsWith("password inflating\n") || m_lastShellOutput.findRev("password incorrect--reenter:")!=-1 || m_lastShellOutput.endsWith("incorrect password\n");
}
-void ZipArch::remove( QStringList *list )
+void ZipArch::remove( TQStringList *list )
{
if ( !list )
return;
@@ -253,19 +253,19 @@ void ZipArch::remove( QStringList *list )
*kp << m_archiver_program << "-d" << m_filename;
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = list->begin(); it != list->end(); ++it )
{
- QString str = *it;
+ TQString str = *it;
*kp << str;
}
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotDeleteExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotDeleteExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
diff --git a/ark/zip.h b/ark/zip.h
index 721d734..6fcb7e3 100644
--- a/ark/zip.h
+++ b/ark/zip.h
@@ -39,16 +39,16 @@ class ZipArch : public Arch
{
Q_OBJECT
public:
- ZipArch( ArkWidget *_gui, const QString & _fileName );
+ ZipArch( ArkWidget *_gui, const TQString & _fileName );
virtual ~ZipArch() { }
virtual void open();
virtual void create();
- virtual void addFile( const QStringList & );
- virtual void addDir( const QString & );
+ virtual void addFile( const TQStringList & );
+ virtual void addDir( const TQString & );
- virtual void remove( QStringList * );
+ virtual void remove( TQStringList * );
virtual void unarchFileInternal();
virtual bool passwordRequired();
private:
diff --git a/ark/zoo.cpp b/ark/zoo.cpp
index 9116ea5..8896251 100644
--- a/ark/zoo.cpp
+++ b/ark/zoo.cpp
@@ -32,8 +32,8 @@
#include <string.h>
// QT includes
-#include <qfile.h>
-#include <qdir.h>
+#include <tqfile.h>
+#include <tqdir.h>
// KDE includes
#include <kdebug.h>
@@ -49,9 +49,9 @@
#include "arkutils.h"
#include "filelistview.h"
-static QString fixTime( const QString &_strTime );
+static TQString fixTime( const TQString &_strTime );
-ZooArch::ZooArch( ArkWidget *gui, const QString & fileName )
+ZooArch::ZooArch( ArkWidget *gui, const TQString & fileName )
: Arch( gui, fileName )
{
m_archiver_program = m_unarchiver_program = "zoo";
@@ -61,7 +61,7 @@ ZooArch::ZooArch( ArkWidget *gui, const QString & fileName )
m_headerString = "----";
}
-bool ZooArch::processLine( const QCString &line )
+bool ZooArch::processLine( const TQCString &line )
{
const char *_line = ( const char * )line;
char columns[11][80];
@@ -74,9 +74,9 @@ bool ZooArch::processLine( const QCString &line )
columns[1], columns[0], columns[2], columns[3], columns[7],
columns[8], columns[9], columns[4], columns[10], filename );
- QString year = ArkUtils::fixYear( columns[8] );
+ TQString year = ArkUtils::fixYear( columns[8] );
- QString strDate;
+ TQString strDate;
strDate.sprintf( "%s-%.2d-%.2d", year.utf8().data(),
ArkUtils::getMonth( columns[7] ), atoi( columns[3] ) );
@@ -86,12 +86,12 @@ bool ZooArch::processLine( const QCString &line )
strlcat( columns[3], " ", sizeof( columns[3] ) );
strlcat( columns[3], fixTime( columns[4] ).ascii(), sizeof( columns[3] ) );
- QStringList list;
- list.append( QFile::decodeName( filename ) );
+ TQStringList list;
+ list.append( TQFile::decodeName( filename ) );
for ( int i=0; i<4; i++ )
{
- list.append( QString::fromLocal8Bit( columns[i] ) );
+ list.append( TQString::fromLocal8Bit( columns[i] ) );
}
m_gui->fileList()->addItem( list ); // send to GUI
@@ -110,17 +110,17 @@ void ZooArch::open()
KProcess *kp = m_currentProcess = new KProcess;
*kp << m_archiver_program << "l" << m_filename;
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedTOC(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotOpenExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedTOC(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotOpenExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
KMessageBox::error( 0, i18n( "Could not start a subprocess." ) );
- emit sigOpen( this, false, QString::null, 0 );
+ emit sigOpen( this, false, TQString::null, 0 );
}
}
@@ -143,17 +143,17 @@ void ZooArch::create()
Arch::Extract | Arch::Delete | Arch::Add | Arch::View);
}
-void ZooArch::addDir( const QString & _dirName )
+void ZooArch::addDir( const TQString & _dirName )
{
if ( ! _dirName.isEmpty() )
{
- QStringList list;
+ TQStringList list;
list.append( _dirName );
addFile( list );
}
}
-void ZooArch::addFile( const QStringList &urls )
+void ZooArch::addFile( const TQStringList &urls )
{
KProcess *kp = m_currentProcess = new KProcess;
kp->clearArguments();
@@ -167,9 +167,9 @@ void ZooArch::addFile( const QStringList &urls )
*kp << m_filename;
KURL url( urls.first() );
- QDir::setCurrent( url.directory() );
+ TQDir::setCurrent( url.directory() );
- QStringList::ConstIterator iter;
+ TQStringList::ConstIterator iter;
for ( iter = urls.begin(); iter != urls.end(); ++iter )
{
@@ -177,12 +177,12 @@ void ZooArch::addFile( const QStringList &urls )
*kp << fileURL.fileName();
}
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotAddExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotAddExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
@@ -205,7 +205,7 @@ void ZooArch::unarchFileInternal()
// zoo has no option to specify the destination directory
// so we have to change to it.
- bool ret = QDir::setCurrent( m_destDir );
+ bool ret = TQDir::setCurrent( m_destDir );
// We already checked the validity of the dir before coming here
Q_ASSERT(ret);
@@ -229,19 +229,19 @@ void ZooArch::unarchFileInternal()
// and we then extract everything in the archive.
if (m_fileList)
{
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = m_fileList->begin(); it != m_fileList->end(); ++it )
{
*kp << (*it);
}
}
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotExtractExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotExtractExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
@@ -250,7 +250,7 @@ void ZooArch::unarchFileInternal()
}
}
-void ZooArch::remove( QStringList *list )
+void ZooArch::remove( TQStringList *list )
{
if (!list)
return;
@@ -260,19 +260,19 @@ void ZooArch::remove( QStringList *list )
*kp << m_archiver_program << "D" << m_filename;
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for ( it = list->begin(); it != list->end(); ++it )
{
- QString str = *it;
+ TQString str = *it;
*kp << str;
}
- connect( kp, SIGNAL( receivedStdout(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( receivedStderr(KProcess*, char*, int) ),
- SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
- connect( kp, SIGNAL( processExited(KProcess*) ),
- SLOT( slotDeleteExited(KProcess*) ) );
+ connect( kp, TQT_SIGNAL( receivedStdout(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( receivedStderr(KProcess*, char*, int) ),
+ TQT_SLOT( slotReceivedOutput(KProcess*, char*, int) ) );
+ connect( kp, TQT_SIGNAL( processExited(KProcess*) ),
+ TQT_SLOT( slotDeleteExited(KProcess*) ) );
if ( !kp->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
{
@@ -281,17 +281,17 @@ void ZooArch::remove( QStringList *list )
}
}
-QString fixTime( const QString &_strTime )
+TQString fixTime( const TQString &_strTime )
{
// it may have come from a different time zone... get rid of trailing
// +3 or -3 etc.
- QString strTime = _strTime;
+ TQString strTime = _strTime;
if ( strTime.contains("+") || strTime.contains("-") )
{
- QCharRef c = strTime.at( 8 );
+ TQCharRef c = strTime.at( 8 );
int offset = strTime.right( strTime.length() - 9 ).toInt();
- QString strHour = strTime.left( 2 );
+ TQString strHour = strTime.left( 2 );
int nHour = strHour.toInt();
if ( c == '+' || c == '-' )
{
diff --git a/ark/zoo.h b/ark/zoo.h
index 0e83ce1..7083c8b 100644
--- a/ark/zoo.h
+++ b/ark/zoo.h
@@ -37,20 +37,20 @@ class ZooArch : public Arch
{
Q_OBJECT
public:
- ZooArch( ArkWidget *, const QString & );
+ ZooArch( ArkWidget *, const TQString & );
virtual ~ZooArch() { }
virtual void open();
virtual void create();
- virtual void addFile( const QStringList & );
- virtual void addDir( const QString & );
+ virtual void addFile( const TQStringList & );
+ virtual void addDir( const TQString & );
- virtual void remove( QStringList * );
+ virtual void remove( TQStringList * );
virtual void unarchFileInternal();
protected slots:
- virtual bool processLine( const QCString &line );
+ virtual bool processLine( const TQCString &line );
private:
void setHeaders();
diff --git a/charselectapplet/charselectapplet.cpp b/charselectapplet/charselectapplet.cpp
index f2fccbc..24cc55a 100644
--- a/charselectapplet/charselectapplet.cpp
+++ b/charselectapplet/charselectapplet.cpp
@@ -23,12 +23,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <math.h>
-#include <qlayout.h>
-#include <qpainter.h>
-#include <qclipboard.h>
-#include <qvbox.h>
-#include <qspinbox.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqpainter.h>
+#include <tqclipboard.h>
+#include <tqvbox.h>
+#include <tqspinbox.h>
+#include <tqlabel.h>
#include <klocale.h>
#include <kglobal.h>
@@ -41,7 +41,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
extern "C"
{
- KDE_EXPORT KPanelApplet* init(QWidget *parent, const QString& configFile)
+ KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile)
{
KGlobal::locale()->insertCatalogue("kcharselectapplet");
return new CharSelectApplet(configFile, KPanelApplet::Normal,
@@ -54,8 +54,8 @@ static int cell_width = 16;
static int cell_height = 16;
static int char_count = 0;
-CharSelectApplet::CharSelectApplet(const QString& configFile, Type type, int actions,
- QWidget *parent, const char *name)
+CharSelectApplet::CharSelectApplet(const TQString& configFile, Type type, int actions,
+ TQWidget *parent, const char *name)
: KPanelApplet(configFile, type, actions, parent, name),
_aboutData(0), _configDialog(0)
{
@@ -64,10 +64,10 @@ CharSelectApplet::CharSelectApplet(const QString& configFile, Type type, int act
c->setGroup("General");
cell_width = c->readNumEntry("CellWidth", cell_width);
cell_height = c->readNumEntry("CellHeight", cell_height);
- QString characters = c->readEntry("Characters", "ߩ");
+ TQString characters = c->readEntry("Characters", "ߩ");
// setup layout
- QHBoxLayout *_layout = new QHBoxLayout(this);
+ TQHBoxLayout *_layout = new TQHBoxLayout(this);
_layout->setAutoAdd(true);
// setup table view
@@ -118,7 +118,7 @@ void CharSelectApplet::preferences()
_configDialog->setCharacters(_table->characters());
_configDialog->setCellWidth(cell_width);
_configDialog->setCellHeight(cell_height);
- _configDialog->setInitialSize(QSize(300, 100));
+ _configDialog->setInitialSize(TQSize(300, 100));
_configDialog->exec();
cell_width = _configDialog->cellWidth();
@@ -151,14 +151,14 @@ void CharSelectApplet::about()
dialog.exec();
}
-CharTable::CharTable(QWidget* parent, const char* name)
- : QFrame(parent, name), _rows(2), _cols(2),
+CharTable::CharTable(TQWidget* parent, const char* name)
+ : TQFrame(parent, name), _rows(2), _cols(2),
_activeRow(-1), _activeCol(-1),
_cWidth(cell_width), _cHeight(cell_height)
{
- setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
- setFocusPolicy(QWidget::NoFocus);
- setBackgroundMode(QWidget::NoBackground);
+ setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken);
+ setFocusPolicy(TQWidget::NoFocus);
+ setBackgroundMode(TQWidget::NoBackground);
}
void CharTable::setRowsAndColumns(int r, int c)
@@ -167,27 +167,27 @@ void CharTable::setRowsAndColumns(int r, int c)
_cols = c;
}
-void CharTable::insertChar(QChar c)
+void CharTable::insertChar(TQChar c)
{
_map.insert(char_count++, c);
}
-void CharTable::insertString(QString s)
+void CharTable::insertString(TQString s)
{
for (unsigned int i = 0; i < s.length(); i++)
insertChar(s[i]);
}
-void CharTable::setCharacters(const QString& characters)
+void CharTable::setCharacters(const TQString& characters)
{
_map.clear();
char_count = 0;
insertString(characters);
}
-QString CharTable::characters()
+TQString CharTable::characters()
{
- QString characters;
+ TQString characters;
for (int r = 0; r <_rows; r++)
for (int c = 0; c <_cols; c++)
characters += _map[c + r * _cols];
@@ -205,15 +205,15 @@ int CharTable::findCol(int x)
return x / _cWidth;
}
-void CharTable::resizeEvent(QResizeEvent*)
+void CharTable::resizeEvent(TQResizeEvent*)
{
_cWidth = contentsRect().width() / _cols;
_cHeight = contentsRect().height() / _rows;
}
-void CharTable::paintEvent(QPaintEvent* e)
+void CharTable::paintEvent(TQPaintEvent* e)
{
- QPainter p(this);
+ TQPainter p(this);
int xoffset = contentsRect().x();
int yoffset = contentsRect().y();
@@ -225,12 +225,12 @@ void CharTable::paintEvent(QPaintEvent* e)
paintCell(&p, r, c);
}
}
- QFrame::paintEvent(e);
+ TQFrame::paintEvent(e);
}
void CharTable::repaintCell(int r, int c)
{
- QPainter p(this);
+ TQPainter p(this);
int xoffset = contentsRect().x();
int yoffset = contentsRect().y();
@@ -240,7 +240,7 @@ void CharTable::repaintCell(int r, int c)
paintCell(&p, r, c);
}
-void CharTable::paintCell(QPainter* p, int row, int col)
+void CharTable::paintCell(TQPainter* p, int row, int col)
{
int w = _cWidth;
int h = _cHeight;
@@ -251,28 +251,28 @@ void CharTable::paintCell(QPainter* p, int row, int col)
// draw background
if (active) {
- p->setBrush(QBrush(colorGroup().highlight()));
+ p->setBrush(TQBrush(colorGroup().highlight()));
p->setPen(NoPen);
p->drawRect(0, 0, w, h);
p->setPen(colorGroup().highlightedText());
}
else {
- p->setBrush(QBrush(colorGroup().base()));
+ p->setBrush(TQBrush(colorGroup().base()));
p->setPen(NoPen);
p->drawRect(0, 0, w, h);
p->setPen(colorGroup().text());
}
// set font
- QFont f = font();
+ TQFont f = font();
f.setPixelSize(10);
p->setFont(f);
// draw char
- p->drawText(0, 0, x2, y2, AlignHCenter | AlignVCenter, QString(_map[col + row * _cols]));
+ p->drawText(0, 0, x2, y2, AlignHCenter | AlignVCenter, TQString(_map[col + row * _cols]));
}
-void CharTable::mousePressEvent(QMouseEvent *e)
+void CharTable::mousePressEvent(TQMouseEvent *e)
{
int row = findRow(e->y());
if (row == -1) return;
@@ -283,7 +283,7 @@ void CharTable::mousePressEvent(QMouseEvent *e)
selectCell(row, col);
}
-void CharTable::mouseMoveEvent(QMouseEvent *e)
+void CharTable::mouseMoveEvent(TQMouseEvent *e)
{
if(!(e->state() & (LeftButton | RightButton | MidButton))) return;
@@ -310,16 +310,16 @@ void CharTable::selectCell(int row, int col)
repaintCell(oldRow, oldCol);
repaintCell(_activeRow, _activeCol);
- QClipboard *cb = QApplication::clipboard();
- QObject::disconnect( cb, SIGNAL(dataChanged()), this, SLOT(clearCell()) );
- QString text = QString(_map[col + row * _cols]);
+ QClipboard *cb = TQApplication::clipboard();
+ TQObject::disconnect( cb, TQT_SIGNAL(dataChanged()), this, TQT_SLOT(clearCell()) );
+ TQString text = TQString(_map[col + row * _cols]);
bool oldMode = cb->selectionModeEnabled();
cb->setSelectionMode( true );
cb->setText( text );
cb->setSelectionMode( false );
cb->setText( text );
cb->setSelectionMode( oldMode );
- QObject::connect( cb, SIGNAL(dataChanged()), this, SLOT(clearCell()) );
+ TQObject::connect( cb, TQT_SIGNAL(dataChanged()), this, TQT_SLOT(clearCell()) );
}
void CharTable::clearCell()
@@ -332,27 +332,27 @@ void CharTable::clearCell()
repaintCell(oldRow, oldCol);
- QObject::disconnect( QApplication::clipboard(), SIGNAL(dataChanged()), this, SLOT(clearCell()) );
+ TQObject::disconnect( TQApplication::clipboard(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(clearCell()) );
}
-ConfigDialog::ConfigDialog(QWidget* parent, const char* name)
+ConfigDialog::ConfigDialog(TQWidget* parent, const char* name)
: KDialogBase(parent, name, true, i18n("Configuration"),
Ok | Cancel, Ok, true)
{
- QVBox *page = makeVBoxMainWidget();
+ TQVBox *page = makeVBoxMainWidget();
- QHBox *whbox = new QHBox(page);
- QHBox *hhbox = new QHBox(page);
- QHBox *chbox = new QHBox(page);
+ TQHBox *whbox = new TQHBox(page);
+ TQHBox *hhbox = new TQHBox(page);
+ TQHBox *chbox = new TQHBox(page);
- QLabel *wlabel = new QLabel(i18n("Cell width:"), whbox);
- QLabel *hlabel = new QLabel(i18n("Cell height:"), hhbox);
- (void) new QLabel(i18n("Characters:"), chbox);
+ TQLabel *wlabel = new TQLabel(i18n("Cell width:"), whbox);
+ TQLabel *hlabel = new TQLabel(i18n("Cell height:"), hhbox);
+ (void) new TQLabel(i18n("Characters:"), chbox);
- _widthSpinBox = new QSpinBox(whbox);
+ _widthSpinBox = new TQSpinBox(whbox);
_widthSpinBox->setMinValue(1);
- _heightSpinBox = new QSpinBox(hhbox);
+ _heightSpinBox = new TQSpinBox(hhbox);
_heightSpinBox->setMinValue(1);
_characterInput = new KLineEdit(chbox);
diff --git a/charselectapplet/charselectapplet.h b/charselectapplet/charselectapplet.h
index b54dc55..12855a1 100644
--- a/charselectapplet/charselectapplet.h
+++ b/charselectapplet/charselectapplet.h
@@ -24,7 +24,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifndef __charselectapplet_h__
#define __charselectapplet_h__
-#include <qmap.h>
+#include <tqmap.h>
#include <kpanelapplet.h>
#include <kdialogbase.h>
@@ -38,19 +38,19 @@ class ConfigDialog : public KDialogBase
Q_OBJECT
public:
- ConfigDialog(QWidget* parent = 0, const char* name = 0);
+ ConfigDialog(TQWidget* parent = 0, const char* name = 0);
- void setCharacters(const QString& s) { _characterInput->setText(s); }
+ void setCharacters(const TQString& s) { _characterInput->setText(s); }
void setCellWidth(int w) { _widthSpinBox->setValue(w); }
void setCellHeight(int h) { _heightSpinBox->setValue(h); }
- QString characters() { return _characterInput->text(); }
+ TQString characters() { return _characterInput->text(); }
int cellWidth() { return _widthSpinBox->value(); }
int cellHeight() { return _heightSpinBox->value(); }
private:
- QSpinBox *_widthSpinBox;
- QSpinBox *_heightSpinBox;
+ TQSpinBox *_widthSpinBox;
+ TQSpinBox *_heightSpinBox;
KLineEdit *_characterInput;
};
@@ -59,25 +59,25 @@ class CharTable : public QFrame
Q_OBJECT
public:
- CharTable(QWidget* parent = 0, const char* name = 0);
+ CharTable(TQWidget* parent = 0, const char* name = 0);
void setRowsAndColumns(int, int);
- void setCharacters(const QString&);
- QString characters();
+ void setCharacters(const TQString&);
+ TQString characters();
protected:
- void paintEvent(QPaintEvent*);
- void resizeEvent(QResizeEvent*);
- void mousePressEvent(QMouseEvent*);
- void mouseMoveEvent(QMouseEvent*);
+ void paintEvent(TQPaintEvent*);
+ void resizeEvent(TQResizeEvent*);
+ void mousePressEvent(TQMouseEvent*);
+ void mouseMoveEvent(TQMouseEvent*);
- void paintCell(QPainter*, int, int);
+ void paintCell(TQPainter*, int, int);
void repaintCell(int, int);
void selectCell(int row, int col);
- void insertString(QString s);
- void insertChar(QChar c);
+ void insertString(TQString s);
+ void insertChar(TQChar c);
int findRow(int y);
int findCol(int x);
@@ -89,7 +89,7 @@ private:
int _activeRow, _activeCol;
int _cWidth, _cHeight;
int _charcount;
- QMap<int, QChar> _map;
+ TQMap<int, TQChar> _map;
};
class CharSelectApplet : public KPanelApplet
@@ -97,8 +97,8 @@ class CharSelectApplet : public KPanelApplet
Q_OBJECT
public:
- CharSelectApplet(const QString& configFile, Type t = Stretch, int actions = 0,
- QWidget *parent = 0, const char *name = 0);
+ CharSelectApplet(const TQString& configFile, Type t = Stretch, int actions = 0,
+ TQWidget *parent = 0, const char *name = 0);
int widthForHeight(int height) const;
int heightForWidth(int width) const;
diff --git a/kcalc/confvalues.h b/kcalc/confvalues.h
index 0ec1fae..fcfd5e1 100644
--- a/kcalc/confvalues.h
+++ b/kcalc/confvalues.h
@@ -28,21 +28,21 @@
typedef struct _DefStruct
{
- QColor forecolor;
- QColor backcolor;
- QColor numberButtonColor;
- QColor functionButtonColor;
- QColor statButtonColor;
- QColor hexButtonColor;
- QColor memoryButtonColor;
- QColor operationButtonColor;
+ TQColor forecolor;
+ TQColor backcolor;
+ TQColor numberButtonColor;
+ TQColor functionButtonColor;
+ TQColor statButtonColor;
+ TQColor hexButtonColor;
+ TQColor memoryButtonColor;
+ TQColor operationButtonColor;
int precision;
int fixedprecision;
bool fixed;
bool beep;
bool capres;
- QFont font;
+ TQFont font;
} DefStruct;
#endif // _CONF_VALUES_H_
diff --git a/kcalc/dlabel.cpp b/kcalc/dlabel.cpp
index 8c6c062..c4dbb17 100644
--- a/kcalc/dlabel.cpp
+++ b/kcalc/dlabel.cpp
@@ -23,7 +23,7 @@
*/
-#include <qglobal.h>
+#include <tqglobal.h>
#include <kactioncollection.h>
#include <kstdaction.h>
@@ -34,14 +34,14 @@
-DispLogic::DispLogic(QWidget *parent, const char *name,
+DispLogic::DispLogic(TQWidget *parent, const char *name,
KActionCollection *coll)
:KCalcDisplay(parent,name), _history_index(0)
{
KNumber::setDefaultFloatOutput(true);
KNumber::setDefaultFractionalInput(true);
- _back = KStdAction::undo(this, SLOT(history_back()), coll);
- _forward = KStdAction::redo(this, SLOT(history_forward()), coll);
+ _back = KStdAction::undo(this, TQT_SLOT(history_back()), coll);
+ _forward = KStdAction::redo(this, TQT_SLOT(history_forward()), coll);
_forward->setEnabled(false);
_back->setEnabled(false);
@@ -53,11 +53,11 @@ DispLogic::~DispLogic()
void DispLogic::changeSettings()
{
- QPalette pal = palette();
+ TQPalette pal = palette();
- pal.setColor(QColorGroup::Text, KCalcSettings::foreColor());
- pal.setColor(QColorGroup::Foreground, KCalcSettings::foreColor());
- pal.setColor(QColorGroup::Background, KCalcSettings::backColor());
+ pal.setColor(TQColorGroup::Text, KCalcSettings::foreColor());
+ pal.setColor(TQColorGroup::Foreground, KCalcSettings::foreColor());
+ pal.setColor(TQColorGroup::Background, KCalcSettings::backColor());
setPalette(pal);
setBackgroundColor(KCalcSettings::backColor());
diff --git a/kcalc/dlabel.h b/kcalc/dlabel.h
index a9c33c6..0a7c386 100644
--- a/kcalc/dlabel.h
+++ b/kcalc/dlabel.h
@@ -28,7 +28,7 @@
#ifndef _D_LABEL_H_
#define _D_LABEL_H_
-#include <qvaluevector.h>
+#include <tqvaluevector.h>
#include "kcalcdisplay.h"
class CalcEngine;
@@ -40,7 +40,7 @@ class DispLogic : public KCalcDisplay
Q_OBJECT
public:
- DispLogic(QWidget *parent, const char *name,
+ DispLogic(TQWidget *parent, const char *name,
KActionCollection *coll);
~DispLogic();
@@ -54,7 +54,7 @@ private slots:
void history_forward(void);
private:
- QValueVector<KNumber> _history_list;
+ TQValueVector<KNumber> _history_list;
int _history_index;
KAction *_forward;
diff --git a/kcalc/kcalc.cpp b/kcalc/kcalc.cpp
index e7599cf..515536f 100644
--- a/kcalc/kcalc.cpp
+++ b/kcalc/kcalc.cpp
@@ -28,15 +28,15 @@
#include <unistd.h>
-#include <qbuttongroup.h>
-#include <qfont.h>
-#include <qhbuttongroup.h>
-#include <qlayout.h>
-#include <qobjectlist.h>
-#include <qradiobutton.h>
-#include <qspinbox.h>
-#include <qstyle.h>
-#include <qtooltip.h>
+#include <tqbuttongroup.h>
+#include <tqfont.h>
+#include <tqhbuttongroup.h>
+#include <tqlayout.h>
+#include <tqobjectlist.h>
+#include <tqradiobutton.h>
+#include <tqspinbox.h>
+#include <tqstyle.h>
+#include <tqtooltip.h>
@@ -78,18 +78,18 @@ static const char description[] = I18N_NOOP("KDE Calculator");
static const char version[] = KCALCVERSION;
-KCalculator::KCalculator(QWidget *parent, const char *name)
+KCalculator::KCalculator(TQWidget *parent, const char *name)
: KMainWindow(parent, name), inverse(false),
hyp_mode(false), memory_num(0.0), calc_display(NULL),
mInternalSpacing(4), core()
{
/* central widget to contain all the elements */
- QWidget *central = new QWidget(this);
+ TQWidget *central = new TQWidget(this);
setCentralWidget(central);
KAcceleratorManager::setNoAccel( central );
// Detect color change
- connect(kapp,SIGNAL(kdisplayPaletteChanged()), SLOT(set_colors()));
+ connect(kapp,TQT_SIGNAL(kdisplayPaletteChanged()), TQT_SLOT(set_colors()));
calc_display = new DispLogic(central, "display", actionCollection());
@@ -104,32 +104,32 @@ KCalculator::KCalculator(QWidget *parent, const char *name)
toolBar()->close();
// Create Button to select BaseMode
- BaseChooseGroup = new QHButtonGroup(i18n("Base"), central);
- connect(BaseChooseGroup, SIGNAL(clicked(int)), SLOT(slotBaseSelected(int)));
- BaseChooseGroup->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed, false);
+ BaseChooseGroup = new TQHButtonGroup(i18n("Base"), central);
+ connect(BaseChooseGroup, TQT_SIGNAL(clicked(int)), TQT_SLOT(slotBaseSelected(int)));
+ BaseChooseGroup->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed, false);
- pbBaseChoose[0] = new QRadioButton(i18n("He&x"), BaseChooseGroup,
+ pbBaseChoose[0] = new TQRadioButton(i18n("He&x"), BaseChooseGroup,
"Hexadecimal-Switch");
- QToolTip::add(pbBaseChoose[0], i18n("Switch base to hexadecimal."));
+ TQToolTip::add(pbBaseChoose[0], i18n("Switch base to hexadecimal."));
- pbBaseChoose[1] = new QRadioButton(i18n("&Dec"), BaseChooseGroup,
+ pbBaseChoose[1] = new TQRadioButton(i18n("&Dec"), BaseChooseGroup,
"Decimal-Switch");
- QToolTip::add(pbBaseChoose[1], i18n("Switch base to decimal."));
+ TQToolTip::add(pbBaseChoose[1], i18n("Switch base to decimal."));
- pbBaseChoose[2] = new QRadioButton(i18n("&Oct"), BaseChooseGroup,
+ pbBaseChoose[2] = new TQRadioButton(i18n("&Oct"), BaseChooseGroup,
"Octal-Switch");
- QToolTip::add(pbBaseChoose[2], i18n("Switch base to octal."));
+ TQToolTip::add(pbBaseChoose[2], i18n("Switch base to octal."));
- pbBaseChoose[3] = new QRadioButton(i18n("&Bin"), BaseChooseGroup,
+ pbBaseChoose[3] = new TQRadioButton(i18n("&Bin"), BaseChooseGroup,
"Binary-Switch");
- QToolTip::add(pbBaseChoose[3], i18n("Switch base to binary."));
+ TQToolTip::add(pbBaseChoose[3], i18n("Switch base to binary."));
// Create Button to select AngleMode
- pbAngleChoose = new QPushButton(i18n("&Angle"),
+ pbAngleChoose = new TQPushButton(i18n("&Angle"),
central, "ChooseAngleMode-Button");
- QToolTip::add(pbAngleChoose, i18n("Choose the unit for the angle measure"));
+ TQToolTip::add(pbAngleChoose, i18n("Choose the unit for the angle measure"));
pbAngleChoose->setAutoDefault(false);
KPopupMenu *angle_menu = new KPopupMenu(pbAngleChoose, "AngleMode-Selection-Menu");
@@ -138,7 +138,7 @@ KCalculator::KCalculator(QWidget *parent, const char *name)
angle_menu->insertItem(i18n("Gradians"), 2);
angle_menu->setCheckable(true);
- connect(angle_menu, SIGNAL(activated(int)), SLOT(slotAngleSelected(int)));
+ connect(angle_menu, TQT_SIGNAL(activated(int)), TQT_SLOT(slotAngleSelected(int)));
pbAngleChoose->setPopup(angle_menu);
@@ -146,9 +146,9 @@ KCalculator::KCalculator(QWidget *parent, const char *name)
pbInv = new KCalcButton("Inv", central, "Inverse-Button",
i18n("Inverse mode"));
pbInv->setAccel(Key_I);
- connect(pbInv, SIGNAL(toggled(bool)), SLOT(slotInvtoggled(bool)));
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbInv, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(pbInv, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotInvtoggled(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbInv, TQT_SLOT(slotSetAccelDisplayMode(bool)));
pbInv->setToggleButton(true);
//
@@ -156,8 +156,8 @@ KCalculator::KCalculator(QWidget *parent, const char *name)
//
// First the widgets that are the parents of the buttons
- mSmallPage = new QWidget(central);
- mLargePage = new QWidget(central);
+ mSmallPage = new TQWidget(central);
+ mLargePage = new TQWidget(central);
mNumericPage = setupNumericKeys(central);
setupLogicKeys(mSmallPage);
@@ -170,25 +170,25 @@ KCalculator::KCalculator(QWidget *parent, const char *name)
pbMod->addMode(ModeNormal, "Mod", i18n("Modulo"));
pbMod->addMode(ModeInverse, "IntDiv", i18n("Integer division"));
pbMod->setAccel(Key_Colon);
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- pbMod, SLOT(slotSetMode(ButtonModeFlags,bool)));
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbMod, SLOT(slotSetAccelDisplayMode(bool)));
- connect(pbMod, SIGNAL(clicked(void)), SLOT(slotModclicked(void)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ pbMod, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbMod, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(pbMod, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotModclicked(void)));
pbReci = new KCalcButton(mSmallPage, "Reciprocal-Button");
pbReci->addMode(ModeNormal, "1/x", i18n("Reciprocal"));
pbReci->setAccel(Key_R);
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbReci, SLOT(slotSetAccelDisplayMode(bool)));
- connect(pbReci, SIGNAL(clicked(void)), SLOT(slotReciclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbReci, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(pbReci, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotReciclicked(void)));
pbFactorial = new KCalcButton(mSmallPage, "Factorial-Button");
pbFactorial->addMode(ModeNormal, "x!", i18n("Factorial"));
pbFactorial->setAccel(Key_Exclam);
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbFactorial, SLOT(slotSetAccelDisplayMode(bool)));
- connect(pbFactorial, SIGNAL(clicked(void)),SLOT(slotFactorialclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbFactorial, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(pbFactorial, TQT_SIGNAL(clicked(void)),TQT_SLOT(slotFactorialclicked(void)));
// Representation of x^2 is moved to the function
// changeRepresentation() that paints the letters When
@@ -197,20 +197,20 @@ KCalculator::KCalculator(QWidget *parent, const char *name)
pbSquare = new KCalcButton(mSmallPage, "Square-Button");
pbSquare->addMode(ModeNormal, "x<sup>2</sup>", i18n("Square"), true);
pbSquare->addMode(ModeInverse, "x<sup>3</sup>", i18n("Third power"), true);
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbSquare, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- pbSquare, SLOT(slotSetMode(ButtonModeFlags,bool)));
- connect(pbSquare, SIGNAL(clicked(void)), SLOT(slotSquareclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbSquare, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ pbSquare, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(pbSquare, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotSquareclicked(void)));
pbRoot = new KSquareButton(mSmallPage, "Square-Button");
pbRoot->addMode(ModeNormal, "sqrt(x)", i18n("Square root"));
pbRoot->addMode(ModeInverse, "sqrt[3](x)", i18n("Cube root"));
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbRoot, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- pbRoot, SLOT(slotSetMode(ButtonModeFlags,bool)));
- connect(pbRoot, SIGNAL(clicked(void)), SLOT(slotRootclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbRoot, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ pbRoot, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(pbRoot, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotRootclicked(void)));
// Representation of x^y is moved to the function
@@ -219,28 +219,28 @@ KCalculator::KCalculator(QWidget *parent, const char *name)
pbPower = new KCalcButton(mSmallPage, "Power-Button");
pbPower->addMode(ModeNormal, "x<sup>y</sup>", i18n("x to the power of y"), true);
pbPower->addMode(ModeInverse, "x<sup>1/y</sup>", i18n("x to the power of 1/y"), true);
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbPower, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- pbPower, SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbPower, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ pbPower, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
pbPower->setAccel(Key_AsciiCircum);
- connect(pbPower, SIGNAL(clicked(void)), SLOT(slotPowerclicked(void)));
+ connect(pbPower, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotPowerclicked(void)));
//
// All these layouts are needed because all the groups have their
- // own size per row so we can't use one huge QGridLayout (mosfet)
+ // own size per row so we can't use one huge TQGridLayout (mosfet)
//
- QGridLayout *smallBtnLayout = new QGridLayout(mSmallPage, 6, 4, 0,
+ TQGridLayout *smallBtnLayout = new TQGridLayout(mSmallPage, 6, 4, 0,
mInternalSpacing);
- QGridLayout *largeBtnLayout = new QGridLayout(mLargePage, 5, 2, 0,
+ TQGridLayout *largeBtnLayout = new TQGridLayout(mLargePage, 5, 2, 0,
mInternalSpacing);
- QHBoxLayout *topLayout = new QHBoxLayout();
- QHBoxLayout *btnLayout = new QHBoxLayout();
+ TQHBoxLayout *topLayout = new TQHBoxLayout();
+ TQHBoxLayout *btnLayout = new TQHBoxLayout();
// bring them all together
- QVBoxLayout *mainLayout = new QVBoxLayout(central, mInternalSpacing,
+ TQVBoxLayout *mainLayout = new TQVBoxLayout(central, mInternalSpacing,
mInternalSpacing);
mainLayout->addLayout(topLayout);
@@ -369,8 +369,8 @@ KCalculator::KCalculator(QWidget *parent, const char *name)
// Show the result in the app's caption in taskbar (wishlist - bug #52858)
if (KCalcSettings::captionResult() == true)
connect(calc_display,
- SIGNAL(changedText(const QString &)),
- SLOT(setCaption(const QString &)));
+ TQT_SIGNAL(changedText(const TQString &)),
+ TQT_SLOT(setCaption(const TQString &)));
calc_display->changeSettings();
set_precision();
@@ -409,48 +409,48 @@ KCalculator::~KCalculator()
void KCalculator::setupMainActions(void)
{
// file menu
- KStdAction::quit(this, SLOT(close()), actionCollection());
+ KStdAction::quit(this, TQT_SLOT(close()), actionCollection());
// edit menu
- KStdAction::cut(calc_display, SLOT(slotCut()), actionCollection());
- KStdAction::copy(calc_display, SLOT(slotCopy()), actionCollection());
- KStdAction::paste(calc_display, SLOT(slotPaste()), actionCollection());
+ KStdAction::cut(calc_display, TQT_SLOT(slotCut()), actionCollection());
+ KStdAction::copy(calc_display, TQT_SLOT(slotCopy()), actionCollection());
+ KStdAction::paste(calc_display, TQT_SLOT(slotPaste()), actionCollection());
// settings menu
actionStatshow = new KToggleAction(i18n("&Statistic Buttons"), 0,
actionCollection(), "show_stat");
actionStatshow->setChecked(true);
- connect(actionStatshow, SIGNAL(toggled(bool)),
- SLOT(slotStatshow(bool)));
+ connect(actionStatshow, TQT_SIGNAL(toggled(bool)),
+ TQT_SLOT(slotStatshow(bool)));
actionScientificshow = new KToggleAction(i18n("Science/&Engineering Buttons"),
0, actionCollection(), "show_science");
actionScientificshow->setChecked(true);
- connect(actionScientificshow, SIGNAL(toggled(bool)),
- SLOT(slotScientificshow(bool)));
+ connect(actionScientificshow, TQT_SIGNAL(toggled(bool)),
+ TQT_SLOT(slotScientificshow(bool)));
actionLogicshow = new KToggleAction(i18n("&Logic Buttons"), 0,
actionCollection(), "show_logic");
actionLogicshow->setChecked(true);
- connect(actionLogicshow, SIGNAL(toggled(bool)),
- SLOT(slotLogicshow(bool)));
+ connect(actionLogicshow, TQT_SIGNAL(toggled(bool)),
+ TQT_SLOT(slotLogicshow(bool)));
actionConstantsShow = new KToggleAction(i18n("&Constants Buttons"), 0,
actionCollection(), "show_constants");
actionConstantsShow->setChecked(true);
- connect(actionConstantsShow, SIGNAL(toggled(bool)),
- SLOT(slotConstantsShow(bool)));
+ connect(actionConstantsShow, TQT_SIGNAL(toggled(bool)),
+ TQT_SLOT(slotConstantsShow(bool)));
- (void) new KAction(i18n("&Show All"), 0, this, SLOT(slotShowAll()),
+ (void) new KAction(i18n("&Show All"), 0, this, TQT_SLOT(slotShowAll()),
actionCollection(), "show_all");
- (void) new KAction(i18n("&Hide All"), 0, this, SLOT(slotHideAll()),
+ (void) new KAction(i18n("&Hide All"), 0, this, TQT_SLOT(slotHideAll()),
actionCollection(), "hide_all");
- KStdAction::preferences(this, SLOT(showSettings()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(showSettings()), actionCollection());
- KStdAction::keyBindings(guiFactory(), SLOT(configureShortcuts()),
+ KStdAction::keyBindings(guiFactory(), TQT_SLOT(configureShortcuts()),
actionCollection());
}
@@ -471,141 +471,141 @@ void KCalculator::setupStatusbar(void)
statusBar()->setItemAlignment(3, AlignCenter);
}
-QWidget* KCalculator::setupNumericKeys(QWidget *parent)
+TQWidget* KCalculator::setupNumericKeys(TQWidget *parent)
{
Q_CHECK_PTR(mSmallPage);
Q_CHECK_PTR(mLargePage);
- QWidget *thisPage = new QWidget(parent);
+ TQWidget *thisPage = new TQWidget(parent);
KCalcButton *tmp_pb;
- NumButtonGroup = new QButtonGroup(0, "Num-Button-Group");
- connect(NumButtonGroup, SIGNAL(clicked(int)),
- SLOT(slotNumberclicked(int)));
+ NumButtonGroup = new TQButtonGroup(0, "Num-Button-Group");
+ connect(NumButtonGroup, TQT_SIGNAL(clicked(int)),
+ TQT_SLOT(slotNumberclicked(int)));
tmp_pb = new KCalcButton("0", thisPage, "0-Button");
tmp_pb->setAccel(Key_0);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
NumButtonGroup->insert(tmp_pb, 0);
tmp_pb = new KCalcButton("1", thisPage, "1-Button");
tmp_pb->setAccel(Key_1);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
NumButtonGroup->insert(tmp_pb, 1);
tmp_pb = new KCalcButton("2", thisPage, "2-Button");
tmp_pb->setAccel(Key_2);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
NumButtonGroup->insert(tmp_pb, 2);
tmp_pb = new KCalcButton("3", thisPage, "3-Button");
tmp_pb->setAccel(Key_3);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
NumButtonGroup->insert(tmp_pb, 3);
tmp_pb = new KCalcButton("4", thisPage, "4-Button");
tmp_pb->setAccel(Key_4);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
NumButtonGroup->insert(tmp_pb, 4);
tmp_pb = new KCalcButton("5", thisPage, "5-Button");
tmp_pb->setAccel(Key_5);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
NumButtonGroup->insert(tmp_pb, 5);
tmp_pb = new KCalcButton("6", thisPage, "6-Button");
tmp_pb->setAccel(Key_6);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
NumButtonGroup->insert(tmp_pb, 6);
tmp_pb = new KCalcButton("7", thisPage, "7-Button");
tmp_pb->setAccel(Key_7);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
NumButtonGroup->insert(tmp_pb, 7);
tmp_pb = new KCalcButton("8", thisPage, "8-Button");
tmp_pb->setAccel(Key_8);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
NumButtonGroup->insert(tmp_pb, 8);
tmp_pb = new KCalcButton("9", thisPage, "9-Button");
tmp_pb->setAccel(Key_9);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
NumButtonGroup->insert(tmp_pb, 9);
pbEE = new KCalcButton(thisPage, "EE-Button");
pbEE->addMode(ModeNormal, "x<small>" "\xb7" "10</small><sup>y</sup>",
i18n("Exponent"), true);
pbEE->setAccel(Key_E);
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbEE, SLOT(slotSetAccelDisplayMode(bool)));
- connect(pbEE, SIGNAL(clicked(void)), SLOT(slotEEclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbEE, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(pbEE, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotEEclicked(void)));
pbParenClose = new KCalcButton(")", mLargePage, "ParenClose-Button");
pbParenClose->setAccel(Key_ParenRight);
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbParenClose, SLOT(slotSetAccelDisplayMode(bool)));
- connect(pbParenClose,SIGNAL(clicked(void)),SLOT(slotParenCloseclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbParenClose, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(pbParenClose,TQT_SIGNAL(clicked(void)),TQT_SLOT(slotParenCloseclicked(void)));
pbX = new KCalcButton("X", thisPage, "Multiply-Button", i18n("Multiplication"));
pbX->setAccel(Key_multiply);
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbX, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbX, TQT_SLOT(slotSetAccelDisplayMode(bool)));
accel()->insert("Pressed '*'", i18n("Pressed Multiplication-Button"),
- 0, Key_Asterisk, pbX, SLOT(animateClick()));
- connect(pbX, SIGNAL(clicked(void)), SLOT(slotXclicked(void)));
+ 0, Key_Asterisk, pbX, TQT_SLOT(animateClick()));
+ connect(pbX, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotXclicked(void)));
pbDivision = new KCalcButton("/", thisPage, "Division-Button", i18n("Division"));
pbDivision->setAccel(Key_Slash);
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbDivision, SLOT(slotSetAccelDisplayMode(bool)));
- connect(pbDivision, SIGNAL(clicked(void)), SLOT(slotDivisionclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbDivision, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(pbDivision, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotDivisionclicked(void)));
pbPlus = new KCalcButton("+", thisPage, "Plus-Button", i18n("Addition"));
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbPlus, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbPlus, TQT_SLOT(slotSetAccelDisplayMode(bool)));
pbPlus->setAccel(Key_Plus);
- connect(pbPlus, SIGNAL(clicked(void)), SLOT(slotPlusclicked(void)));
+ connect(pbPlus, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotPlusclicked(void)));
pbMinus = new KCalcButton("-", thisPage, "Minus-Button", i18n("Subtraction"));
pbMinus->setAccel(Key_Minus);
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbMinus, SLOT(slotSetAccelDisplayMode(bool)));
- connect(pbMinus, SIGNAL(clicked(void)), SLOT(slotMinusclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbMinus, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(pbMinus, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotMinusclicked(void)));
pbPeriod = new KCalcButton(KGlobal::locale()->decimalSymbol(), thisPage,
"Period-Button", i18n("Decimal point"));
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbPeriod, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbPeriod, TQT_SLOT(slotSetAccelDisplayMode(bool)));
accel()->insert("Decimal Point (Period)", i18n("Pressed Decimal Point"),
- 0, Key_Period, pbPeriod, SLOT(animateClick()));
+ 0, Key_Period, pbPeriod, TQT_SLOT(animateClick()));
accel()->insert("Decimal Point (Comma)", i18n("Pressed Decimal Point"),
- 0, Key_Comma, pbPeriod, SLOT(animateClick()));
- connect(pbPeriod, SIGNAL(clicked(void)), SLOT(slotPeriodclicked(void)));
+ 0, Key_Comma, pbPeriod, TQT_SLOT(animateClick()));
+ connect(pbPeriod, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotPeriodclicked(void)));
pbEqual = new KCalcButton("=", thisPage, "Equal-Button", i18n("Result"));
pbEqual->setAccel(Key_Enter);
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbEqual, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbEqual, TQT_SLOT(slotSetAccelDisplayMode(bool)));
accel()->insert("Entered Equal", i18n("Pressed Equal-Button"),
- 0, Key_Equal, pbEqual, SLOT(animateClick()));
+ 0, Key_Equal, pbEqual, TQT_SLOT(animateClick()));
accel()->insert("Entered Return", i18n("Pressed Equal-Button"),
- 0, Key_Return, pbEqual, SLOT(animateClick()));
- connect(pbEqual, SIGNAL(clicked(void)), SLOT(slotEqualclicked(void)));
+ 0, Key_Return, pbEqual, TQT_SLOT(animateClick()));
+ connect(pbEqual, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotEqualclicked(void)));
- QGridLayout *thisLayout = new QGridLayout(thisPage, 5, 4, 0,
+ TQGridLayout *thisLayout = new TQGridLayout(thisPage, 5, 4, 0,
mInternalSpacing);
// large button layout
@@ -641,107 +641,107 @@ QWidget* KCalculator::setupNumericKeys(QWidget *parent)
pbMemRecall = new KCalcButton("MR", mLargePage, "MemRecall-Button", i18n("Memory recall"));
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbMemRecall, SLOT(slotSetAccelDisplayMode(bool)));
- connect(pbMemRecall, SIGNAL(clicked(void)),
- SLOT(slotMemRecallclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbMemRecall, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(pbMemRecall, TQT_SIGNAL(clicked(void)),
+ TQT_SLOT(slotMemRecallclicked(void)));
pbMemRecall->setDisabled(true); // At start, there is nothing in memory
pbMemPlusMinus = new KCalcButton(mLargePage, "MPlusMinus-Button");
pbMemPlusMinus->addMode(ModeNormal, "M+", i18n("Add display to memory"));
pbMemPlusMinus->addMode(ModeInverse, "M-", i18n("Subtract from memory"));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- pbMemPlusMinus, SLOT(slotSetMode(ButtonModeFlags,bool)));
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbMemPlusMinus, SLOT(slotSetAccelDisplayMode(bool)));
- connect(pbMemPlusMinus,SIGNAL(clicked(void)),
- SLOT(slotMemPlusMinusclicked(void)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ pbMemPlusMinus, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbMemPlusMinus, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(pbMemPlusMinus,TQT_SIGNAL(clicked(void)),
+ TQT_SLOT(slotMemPlusMinusclicked(void)));
pbMemStore = new KCalcButton("MS", mLargePage, "MemStore-Button",
i18n("Memory store"));
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbMemStore, SLOT(slotSetAccelDisplayMode(bool)));
- connect(pbMemStore, SIGNAL(clicked(void)), SLOT(slotMemStoreclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbMemStore, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(pbMemStore, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotMemStoreclicked(void)));
pbMC = new KCalcButton("MC", mLargePage, "MemClear-Button", i18n("Clear memory"));
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbMC, SLOT(slotSetAccelDisplayMode(bool)));
- connect(pbMC, SIGNAL(clicked(void)), SLOT(slotMCclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbMC, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(pbMC, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotMCclicked(void)));
pbClear = new KCalcButton("C", mLargePage, "Clear-Button", i18n("Clear"));
pbClear->setAccel(Key_Prior);
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbClear, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbClear, TQT_SLOT(slotSetAccelDisplayMode(bool)));
accel()->insert("Entered 'ESC'", i18n("Pressed ESC-Button"), 0,
- Key_Escape, pbClear, SLOT(animateClick()));
- connect(pbClear, SIGNAL(clicked(void)), SLOT(slotClearclicked(void)));
+ Key_Escape, pbClear, TQT_SLOT(animateClick()));
+ connect(pbClear, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotClearclicked(void)));
pbAC = new KCalcButton("AC", mLargePage, "AC-Button", i18n("Clear all"));
pbAC->setAccel(Key_Delete);
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbAC, SLOT(slotSetAccelDisplayMode(bool)));
- connect(pbAC, SIGNAL(clicked(void)), SLOT(slotACclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbAC, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(pbAC, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotACclicked(void)));
pbParenOpen = new KCalcButton("(", mLargePage, "ParenOpen-Button");
pbParenOpen->setAccel(Key_ParenLeft);
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbParenOpen, SLOT(slotSetAccelDisplayMode(bool)));
- connect(pbParenOpen, SIGNAL(clicked(void)),SLOT(slotParenOpenclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbParenOpen, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(pbParenOpen, TQT_SIGNAL(clicked(void)),TQT_SLOT(slotParenOpenclicked(void)));
pbPercent = new KCalcButton("%", mLargePage, "Percent-Button", i18n("Percent"));
pbPercent->setAccel(Key_Percent);
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbPercent, SLOT(slotSetAccelDisplayMode(bool)));
- connect(pbPercent, SIGNAL(clicked(void)), SLOT(slotPercentclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbPercent, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(pbPercent, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotPercentclicked(void)));
pbPlusMinus = new KCalcButton("\xb1", mLargePage, "Sign-Button", i18n("Change sign"));
pbPlusMinus->setAccel(Key_Backslash);
- connect(this, SIGNAL(switchShowAccels(bool)),
- pbPlusMinus, SLOT(slotSetAccelDisplayMode(bool)));
- connect(pbPlusMinus, SIGNAL(clicked(void)), SLOT(slotPlusMinusclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ pbPlusMinus, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(pbPlusMinus, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotPlusMinusclicked(void)));
tmp_pb = new KCalcButton("A", mSmallPage, "A-Button");
tmp_pb->setAccel(Key_A);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
NumButtonGroup->insert(tmp_pb, 0xA);
tmp_pb = new KCalcButton("B", mSmallPage, "B-Button");
tmp_pb->setAccel(Key_B);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
NumButtonGroup->insert(tmp_pb, 0xB);
tmp_pb = new KCalcButton("C", mSmallPage, "C-Button");
tmp_pb->setAccel(Key_C);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
NumButtonGroup->insert(tmp_pb, 0xC);
tmp_pb = new KCalcButton("D", mSmallPage, "D-Button");
tmp_pb->setAccel(Key_D);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
NumButtonGroup->insert(tmp_pb, 0xD);
tmp_pb = new KCalcButton("E", mSmallPage, "E-Button");
tmp_pb->setAccel(Key_E);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
NumButtonGroup->insert(tmp_pb, 0xE);
tmp_pb = new KCalcButton("F", mSmallPage, "F-Button");
tmp_pb->setAccel(Key_F);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
NumButtonGroup->insert(tmp_pb, 0xF);
return thisPage;
}
-void KCalculator::setupLogicKeys(QWidget *parent)
+void KCalculator::setupLogicKeys(TQWidget *parent)
{
Q_CHECK_PTR(parent);
@@ -750,51 +750,51 @@ void KCalculator::setupLogicKeys(QWidget *parent)
tmp_pb = new KCalcButton("AND", parent, "AND-Button", i18n("Bitwise AND"));
pbLogic.insert("AND", tmp_pb);
tmp_pb->setAccel(Key_Ampersand);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(tmp_pb, SIGNAL(clicked(void)), SLOT(slotANDclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotANDclicked(void)));
tmp_pb = new KCalcButton("OR", parent, "OR-Button", i18n("Bitwise OR"));
pbLogic.insert("OR", tmp_pb);
tmp_pb->setAccel(Key_Bar);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(tmp_pb, SIGNAL(clicked(void)), SLOT(slotORclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotORclicked(void)));
tmp_pb = new KCalcButton("XOR", parent, "XOR-Button", i18n("Bitwise XOR"));
pbLogic.insert("XOR", tmp_pb);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(tmp_pb, SIGNAL(clicked(void)), SLOT(slotXORclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotXORclicked(void)));
tmp_pb = new KCalcButton("Cmp", parent, "One-Complement-Button",
i18n("One's complement"));
pbLogic.insert("One-Complement", tmp_pb);
tmp_pb->setAccel(Key_AsciiTilde);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(tmp_pb, SIGNAL(clicked(void)), SLOT(slotNegateclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotNegateclicked(void)));
tmp_pb = new KCalcButton("Lsh", parent, "LeftBitShift-Button",
i18n("Left bit shift"));
tmp_pb->setAccel(Key_Less);
pbLogic.insert("LeftShift", tmp_pb);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(tmp_pb, SIGNAL(clicked(void)),
- SLOT(slotLeftShiftclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(tmp_pb, TQT_SIGNAL(clicked(void)),
+ TQT_SLOT(slotLeftShiftclicked(void)));
tmp_pb = new KCalcButton("Rsh", parent, "RightBitShift-Button",
i18n("Right bit shift"));
tmp_pb->setAccel(Key_Greater);
pbLogic.insert("RightShift", tmp_pb);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(tmp_pb, SIGNAL(clicked(void)),
- SLOT(slotRightShiftclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(tmp_pb, TQT_SIGNAL(clicked(void)),
+ TQT_SLOT(slotRightShiftclicked(void)));
}
-void KCalculator::setupScientificKeys(QWidget *parent)
+void KCalculator::setupScientificKeys(TQWidget *parent)
{
Q_CHECK_PTR(parent);
@@ -803,9 +803,9 @@ void KCalculator::setupScientificKeys(QWidget *parent)
tmp_pb = new KCalcButton("Hyp", parent, "Hyp-Button", i18n("Hyperbolic mode"));
pbScientific.insert("HypMode", tmp_pb);
tmp_pb->setAccel(Key_H);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(tmp_pb, SIGNAL(toggled(bool)), SLOT(slotHyptoggled(bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(tmp_pb, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotHyptoggled(bool)));
tmp_pb->setToggleButton(true);
tmp_pb = new KCalcButton(parent, "Sin-Button");
@@ -816,11 +816,11 @@ void KCalculator::setupScientificKeys(QWidget *parent)
tmp_pb->addMode(ButtonModeFlags(ModeInverse | ModeHyperbolic),
"Asinh", i18n("Inverse hyperbolic sine"));
tmp_pb->setAccel(Key_S);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- tmp_pb, SLOT(slotSetMode(ButtonModeFlags,bool)));
- connect(tmp_pb, SIGNAL(clicked(void)), SLOT(slotSinclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotSinclicked(void)));
tmp_pb = new KCalcButton(parent, "Cos-Button");
pbScientific.insert("Cosine", tmp_pb);
@@ -830,11 +830,11 @@ void KCalculator::setupScientificKeys(QWidget *parent)
tmp_pb->addMode(ButtonModeFlags(ModeInverse | ModeHyperbolic),
"Acosh", i18n("Inverse hyperbolic cosine"));
tmp_pb->setAccel(Key_C);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- tmp_pb, SLOT(slotSetMode(ButtonModeFlags,bool)));
- connect(tmp_pb, SIGNAL(clicked(void)), SLOT(slotCosclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotCosclicked(void)));
tmp_pb = new KCalcButton(parent, "Tan-Button");
pbScientific.insert("Tangent", tmp_pb);
@@ -844,11 +844,11 @@ void KCalculator::setupScientificKeys(QWidget *parent)
tmp_pb->addMode(ButtonModeFlags(ModeInverse | ModeHyperbolic),
"Atanh", i18n("Inverse hyperbolic tangent"));
tmp_pb->setAccel(Key_T);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- tmp_pb, SLOT(slotSetMode(ButtonModeFlags,bool)));
- connect(tmp_pb, SIGNAL(clicked(void)),SLOT(slotTanclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(tmp_pb, TQT_SIGNAL(clicked(void)),TQT_SLOT(slotTanclicked(void)));
tmp_pb = new KCalcButton(parent, "Ln-Button");
tmp_pb->addMode(ModeNormal, "Ln", i18n("Natural log"));
@@ -856,11 +856,11 @@ void KCalculator::setupScientificKeys(QWidget *parent)
true);
pbScientific.insert("LogNatural", tmp_pb);
tmp_pb->setAccel(Key_N);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- tmp_pb, SLOT(slotSetMode(ButtonModeFlags,bool)));
- connect(tmp_pb, SIGNAL(clicked(void)), SLOT(slotLnclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotLnclicked(void)));
tmp_pb = new KCalcButton(parent, "Log-Button");
tmp_pb->addMode(ModeNormal, "Log", i18n("Logarithm to base 10"));
@@ -868,15 +868,15 @@ void KCalculator::setupScientificKeys(QWidget *parent)
true);
pbScientific.insert("Log10", tmp_pb);
tmp_pb->setAccel(Key_L);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- tmp_pb, SLOT(slotSetMode(ButtonModeFlags,bool)));
- connect(tmp_pb, SIGNAL(clicked(void)), SLOT(slotLogclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotLogclicked(void)));
}
-void KCalculator::setupStatisticKeys(QWidget *parent)
+void KCalculator::setupStatisticKeys(TQWidget *parent)
{
Q_CHECK_PTR(parent);
@@ -884,132 +884,132 @@ void KCalculator::setupStatisticKeys(QWidget *parent)
tmp_pb = new KCalcButton(parent, "Stat.NumData-Button");
tmp_pb->addMode(ModeNormal, "N", i18n("Number of data entered"));
- tmp_pb->addMode(ModeInverse, QString::fromUtf8("\xce\xa3")
+ tmp_pb->addMode(ModeInverse, TQString::fromUtf8("\xce\xa3")
+ "x", i18n("Sum of all data items"));
pbStat.insert("NumData", tmp_pb);
mStatButtonList.append(tmp_pb);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- tmp_pb, SLOT(slotSetMode(ButtonModeFlags,bool)));
- connect(tmp_pb, SIGNAL(clicked(void)), SLOT(slotStatNumclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatNumclicked(void)));
tmp_pb = new KCalcButton(parent, "Stat.Median-Button");
tmp_pb->addMode(ModeNormal, "Med", i18n("Median"));
pbStat.insert("Median", tmp_pb);
mStatButtonList.append(tmp_pb);
- QToolTip::add(tmp_pb, i18n("Median"));
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(tmp_pb, SIGNAL(clicked(void)), SLOT(slotStatMedianclicked(void)));
+ TQToolTip::add(tmp_pb, i18n("Median"));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatMedianclicked(void)));
tmp_pb = new KCalcButton(parent, "Stat.Mean-Button");
tmp_pb->addMode(ModeNormal, "Mea", i18n("Mean"));
- tmp_pb->addMode(ModeInverse, QString::fromUtf8("\xce\xa3")
+ tmp_pb->addMode(ModeInverse, TQString::fromUtf8("\xce\xa3")
+ "x<sup>2</sup>",
i18n("Sum of all data items squared"), true);
pbStat.insert("Mean", tmp_pb);
mStatButtonList.append(tmp_pb);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- tmp_pb, SLOT(slotSetMode(ButtonModeFlags,bool)));
- connect(tmp_pb, SIGNAL(clicked(void)), SLOT(slotStatMeanclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatMeanclicked(void)));
tmp_pb = new KCalcButton(parent, "Stat.StandardDeviation-Button");
- tmp_pb->addMode(ModeNormal, QString::fromUtf8("σ",-1) + "<sub>N-1</sub>",
+ tmp_pb->addMode(ModeNormal, TQString::fromUtf8("σ",-1) + "<sub>N-1</sub>",
i18n("Sample standard deviation"), true);
- tmp_pb->addMode(ModeInverse, QString::fromUtf8("σ",-1) + "<sub>N</sub>",
+ tmp_pb->addMode(ModeInverse, TQString::fromUtf8("σ",-1) + "<sub>N</sub>",
i18n("Standard deviation"), true);
pbStat.insert("StandardDeviation", tmp_pb);
mStatButtonList.append(tmp_pb);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- tmp_pb, SLOT(slotSetMode(ButtonModeFlags,bool)));
- connect(tmp_pb, SIGNAL(clicked(void)), SLOT(slotStatStdDevclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatStdDevclicked(void)));
tmp_pb = new KCalcButton(parent, "Stat.DataInput-Button");
tmp_pb->addMode(ModeNormal, "Dat", i18n("Enter data"));
tmp_pb->addMode(ModeInverse, "CDat", i18n("Delete last data item"));
pbStat.insert("InputData", tmp_pb);
mStatButtonList.append(tmp_pb);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- tmp_pb, SLOT(slotSetMode(ButtonModeFlags,bool)));
- connect(tmp_pb, SIGNAL(clicked(void)), SLOT(slotStatDataInputclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatDataInputclicked(void)));
tmp_pb = new KCalcButton(parent, "Stat.ClearData-Button");
tmp_pb->addMode(ModeNormal, "CSt", i18n("Clear data store"));
pbStat.insert("ClearData", tmp_pb);
mStatButtonList.append(tmp_pb);
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(tmp_pb, SIGNAL(clicked(void)), SLOT(slotStatClearDataclicked(void)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatClearDataclicked(void)));
}
-void KCalculator::setupConstantsKeys(QWidget *parent)
+void KCalculator::setupConstantsKeys(TQWidget *parent)
{
Q_CHECK_PTR(parent);
- ConstButtonGroup = new QButtonGroup(0, "Const-Button-Group");
- connect(ConstButtonGroup, SIGNAL(clicked(int)), SLOT(slotConstclicked(int)));
+ ConstButtonGroup = new TQButtonGroup(0, "Const-Button-Group");
+ connect(ConstButtonGroup, TQT_SIGNAL(clicked(int)), TQT_SLOT(slotConstclicked(int)));
KCalcConstButton *tmp_pb;
tmp_pb = new KCalcConstButton(parent, 0, "C1");
tmp_pb->setAccel(ALT + Key_1);
pbConstant[0] = tmp_pb;
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- tmp_pb, SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
ConstButtonGroup->insert(tmp_pb, 0);
tmp_pb = new KCalcConstButton(parent, 1, "C2");
tmp_pb->setAccel(ALT + Key_2);
pbConstant[1] = tmp_pb;
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- tmp_pb, SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
ConstButtonGroup->insert(tmp_pb, 1);
tmp_pb = new KCalcConstButton(parent, 2, "C3");
tmp_pb->setAccel(ALT + Key_3);
pbConstant[2] = tmp_pb;
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- tmp_pb, SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
ConstButtonGroup->insert(tmp_pb, 2);
tmp_pb = new KCalcConstButton(parent, 3, "C4");
tmp_pb->setAccel(ALT + Key_4);
pbConstant[3] = tmp_pb;
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- tmp_pb, SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
ConstButtonGroup->insert(tmp_pb, 3);
tmp_pb = new KCalcConstButton(parent, 4, "C5");
tmp_pb->setAccel(ALT + Key_5);
pbConstant[4] = tmp_pb;
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- tmp_pb, SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
ConstButtonGroup->insert(tmp_pb, 4);
tmp_pb = new KCalcConstButton(parent, 5, "C6");
tmp_pb->setAccel(ALT + Key_6);
pbConstant[5] = tmp_pb;
- connect(this, SIGNAL(switchShowAccels(bool)),
- tmp_pb, SLOT(slotSetAccelDisplayMode(bool)));
- connect(this, SIGNAL(switchMode(ButtonModeFlags,bool)),
- tmp_pb, SLOT(slotSetMode(ButtonModeFlags,bool)));
+ connect(this, TQT_SIGNAL(switchShowAccels(bool)),
+ tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
+ connect(this, TQT_SIGNAL(switchMode(ButtonModeFlags,bool)),
+ tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
ConstButtonGroup->insert(tmp_pb, 5);
changeButtonNames();
@@ -1017,8 +1017,8 @@ void KCalculator::setupConstantsKeys(QWidget *parent)
// add menu with scientific constants
KCalcConstMenu *tmp_menu = new KCalcConstMenu(this);
menuBar()->insertItem(i18n("&Constants"), tmp_menu, -1, 2);
- connect(tmp_menu, SIGNAL(activated(int)), this,
- SLOT(slotConstantToDisplay(int)));
+ connect(tmp_menu, TQT_SIGNAL(activated(int)), this,
+ TQT_SLOT(slotConstantToDisplay(int)));
}
void KCalculator::slotConstantToDisplay(int constant)
@@ -1030,8 +1030,8 @@ void KCalculator::slotConstantToDisplay(int constant)
void KCalculator::updateGeometry(void)
{
- QObjectList *l;
- QSize s;
+ TQObjectList *l;
+ TQSize s;
int margin;
//
@@ -1041,16 +1041,16 @@ void KCalculator::updateGeometry(void)
s.setHeight(mSmallPage->fontMetrics().lineSpacing());
// why this stupid cast!
- l = const_cast<QObjectList *>(mSmallPage->children());
+ l = const_cast<TQObjectList *>(mSmallPage->children());
for(uint i=0; i < l->count(); i++)
{
- QObject *o = l->at(i);
+ TQObject *o = l->at(i);
if( o->isWidgetType() )
{
- QWidget *tmp_widget = dynamic_cast<QWidget *>(o);
- margin = QApplication::style().
- pixelMetric(QStyle::PM_ButtonMargin, (tmp_widget))*2;
+ TQWidget *tmp_widget = dynamic_cast<TQWidget *>(o);
+ margin = TQApplication::style().
+ pixelMetric(TQStyle::PM_ButtonMargin, (tmp_widget))*2;
tmp_widget->setFixedSize(s.width()+margin, s.height()+margin);
//tmp_widget->setMinimumSize(s.width()+margin, s.height()+margin);
tmp_widget->installEventFilter( this );
@@ -1059,21 +1059,21 @@ void KCalculator::updateGeometry(void)
}
// why this stupic cast !!
- l = const_cast<QObjectList*>(mLargePage->children());
+ l = const_cast<TQObjectList*>(mLargePage->children());
int h1 = (NumButtonGroup->find(0x0F))->minimumSize().height();
int h2 = static_cast<int>( (static_cast<float>(h1) + 4.0) / 5.0 );
s.setWidth(mLargePage->fontMetrics().width("MMM") +
- QApplication::style().
- pixelMetric(QStyle::PM_ButtonMargin, NumButtonGroup->find(0x0F))*2);
+ TQApplication::style().
+ pixelMetric(TQStyle::PM_ButtonMargin, NumButtonGroup->find(0x0F))*2);
s.setHeight(h1 + h2);
for(uint i = 0; i < l->count(); i++)
{
- QObject *o = l->at(i);
+ TQObject *o = l->at(i);
if(o->isWidgetType())
{
- QWidget *tmp_widget = dynamic_cast<QWidget *>(o);
+ TQWidget *tmp_widget = dynamic_cast<TQWidget *>(o);
tmp_widget->setFixedSize(s);
tmp_widget->installEventFilter(this);
tmp_widget->setAcceptDrops(true);
@@ -1086,21 +1086,21 @@ void KCalculator::updateGeometry(void)
- l = (QObjectList*)mNumericPage->children(); // silence please
+ l = (TQObjectList*)mNumericPage->children(); // silence please
h1 = (NumButtonGroup->find(0x0F))->minimumSize().height();
h2 = (int)((((float)h1 + 4.0) / 5.0));
s.setWidth(mLargePage->fontMetrics().width("MMM") +
- QApplication::style().
- pixelMetric(QStyle::PM_ButtonMargin, NumButtonGroup->find(0x0F))*2);
+ TQApplication::style().
+ pixelMetric(TQStyle::PM_ButtonMargin, NumButtonGroup->find(0x0F))*2);
s.setHeight(h1 + h2);
for(uint i = 0; i < l->count(); i++)
{
- QObject *o = l->at(i);
+ TQObject *o = l->at(i);
if(o->isWidgetType())
{
- QWidget *tmp_widget = dynamic_cast<QWidget *>(o);
+ TQWidget *tmp_widget = dynamic_cast<TQWidget *>(o);
tmp_widget->setFixedSize(s);
tmp_widget->installEventFilter(this);
tmp_widget->setAcceptDrops(true);
@@ -1108,7 +1108,7 @@ void KCalculator::updateGeometry(void)
}
// Set Buttons of double size
- QSize t(s);
+ TQSize t(s);
t.setWidth(2*s.width());
NumButtonGroup->find(0x00)->setFixedSize(t);
t = s;
@@ -1185,7 +1185,7 @@ void KCalculator::slotBaseSelected(int base)
}
}
-void KCalculator::keyPressEvent(QKeyEvent *e)
+void KCalculator::keyPressEvent(TQKeyEvent *e)
{
if ( ( e->state() & KeyButtonMask ) == 0 || ( e->state() & ShiftButton ) ) {
switch (e->key())
@@ -1215,7 +1215,7 @@ void KCalculator::keyPressEvent(QKeyEvent *e)
emit switchShowAccels(true);
}
-void KCalculator::keyReleaseEvent(QKeyEvent *e)
+void KCalculator::keyReleaseEvent(TQKeyEvent *e)
{
if (e->key() == Key_Control)
emit switchShowAccels(false);
@@ -1271,7 +1271,7 @@ void KCalculator::slotInvtoggled(bool flag)
else
{
statusBar()->changeItem("NORM", 0);
- calc_display->setStatusText(0, QString::null);
+ calc_display->setStatusText(0, TQString::null);
}
}
@@ -1544,7 +1544,7 @@ void KCalculator::slotMCclicked(void)
{
memory_num = 0;
statusBar()->changeItem(" \xa0\xa0 ",3);
- calc_display->setStatusText(3, QString::null);
+ calc_display->setStatusText(3, TQString::null);
pbMemRecall->setDisabled(true);
}
@@ -1824,10 +1824,10 @@ void KCalculator::showSettings()
general->kcfg_Precision->setMaxValue(maxprec);
dialog->addPage(general, i18n("General"), "package_settings", i18n("General Settings"));
- QWidget *fontWidget = new QWidget(0,"Font");
- QVBoxLayout *fontLayout = new QVBoxLayout(fontWidget);
+ TQWidget *fontWidget = new TQWidget(0,"Font");
+ TQVBoxLayout *fontLayout = new TQVBoxLayout(fontWidget);
KFontChooser *mFontChooser =
- new KFontChooser(fontWidget, "kcfg_Font", false, QStringList(), false, 6);
+ new KFontChooser(fontWidget, "kcfg_Font", false, TQStringList(), false, 6);
fontLayout->addWidget(mFontChooser);
dialog->addPage(fontWidget, i18n("Font"), "fonts", i18n("Select Display Font"));
@@ -1844,40 +1844,40 @@ void KCalculator::showSettings()
tmp_const = constant;
KCalcConstMenu *tmp_menu = new KCalcConstMenu(this);
- connect(tmp_menu, SIGNAL(activated(int)),
- SLOT(slotChooseScientificConst0(int)));
+ connect(tmp_menu, TQT_SIGNAL(activated(int)),
+ TQT_SLOT(slotChooseScientificConst0(int)));
(constant->kPushButton0)->setPopup(tmp_menu);
tmp_menu = new KCalcConstMenu(this);
- connect(tmp_menu, SIGNAL(activated(int)),
- SLOT(slotChooseScientificConst1(int)));
+ connect(tmp_menu, TQT_SIGNAL(activated(int)),
+ TQT_SLOT(slotChooseScientificConst1(int)));
(constant->kPushButton1)->setPopup(tmp_menu);
tmp_menu = new KCalcConstMenu(this);
- connect(tmp_menu, SIGNAL(activated(int)),
- SLOT(slotChooseScientificConst2(int)));
+ connect(tmp_menu, TQT_SIGNAL(activated(int)),
+ TQT_SLOT(slotChooseScientificConst2(int)));
(constant->kPushButton2)->setPopup(tmp_menu);
tmp_menu = new KCalcConstMenu(this);
- connect(tmp_menu, SIGNAL(activated(int)),
- SLOT(slotChooseScientificConst3(int)));
+ connect(tmp_menu, TQT_SIGNAL(activated(int)),
+ TQT_SLOT(slotChooseScientificConst3(int)));
(constant->kPushButton3)->setPopup(tmp_menu);
tmp_menu = new KCalcConstMenu(this);
- connect(tmp_menu, SIGNAL(activated(int)),
- SLOT(slotChooseScientificConst4(int)));
+ connect(tmp_menu, TQT_SIGNAL(activated(int)),
+ TQT_SLOT(slotChooseScientificConst4(int)));
(constant->kPushButton4)->setPopup(tmp_menu);
tmp_menu = new KCalcConstMenu(this);
- connect(tmp_menu, SIGNAL(activated(int)),
- SLOT(slotChooseScientificConst5(int)));
+ connect(tmp_menu, TQT_SIGNAL(activated(int)),
+ TQT_SLOT(slotChooseScientificConst5(int)));
(constant->kPushButton5)->setPopup(tmp_menu);
dialog->addPage(constant, i18n("Constants"), "constants");
// When the user clicks OK or Apply we want to update our settings.
- connect(dialog, SIGNAL(settingsChanged()), SLOT(updateSettings()));
+ connect(dialog, TQT_SIGNAL(settingsChanged()), TQT_SLOT(updateSettings()));
// Display the dialog.
dialog->show();
@@ -1983,7 +1983,7 @@ void KCalculator::slotScientificshow(bool toggled)
pbAngleChoose->hide();
if(statusBar()->hasItem(2))
statusBar()->removeItem(2);
- calc_display->setStatusText(2, QString::null);
+ calc_display->setStatusText(2, TQString::null);
}
adjustSize();
setFixedSize(sizeHint());
@@ -2022,7 +2022,7 @@ void KCalculator::slotLogicshow(bool toggled)
BaseChooseGroup->hide();
if(statusBar()->hasItem(1))
statusBar()->removeItem(1);
- calc_display->setStatusText(1, QString::null);
+ calc_display->setStatusText(1, TQString::null);
for (int i=10; i<16; i++)
(NumButtonGroup->find(i))->hide();
}
@@ -2094,17 +2094,17 @@ void KCalculator::updateSettings()
set_colors();
set_precision();
// Show the result in the app's caption in taskbar (wishlist - bug #52858)
- disconnect(calc_display, SIGNAL(changedText(const QString &)),
+ disconnect(calc_display, TQT_SIGNAL(changedText(const TQString &)),
this, 0);
if (KCalcSettings::captionResult())
{
connect(calc_display,
- SIGNAL(changedText(const QString &)),
- SLOT(setCaption(const QString &)));
+ TQT_SIGNAL(changedText(const TQString &)),
+ TQT_SLOT(setCaption(const TQString &)));
}
else
{
- setCaption(QString::null);
+ setCaption(TQString::null);
}
calc_display->changeSettings();
@@ -2136,44 +2136,44 @@ void KCalculator::UpdateDisplay(bool get_amount_from_core,
void KCalculator::set_colors()
{
- QPushButton *p = NULL;
+ TQPushButton *p = NULL;
calc_display->changeSettings();
- QColor bg = palette().active().background();
+ TQColor bg = palette().active().background();
- QPalette numPal(KCalcSettings::numberButtonsColor(), bg);
+ TQPalette numPal(KCalcSettings::numberButtonsColor(), bg);
for(int i=0; i<10; i++)
{
(NumButtonGroup->find(i))->setPalette(numPal);
}
- QPalette funcPal(KCalcSettings::functionButtonsColor(), bg);
+ TQPalette funcPal(KCalcSettings::functionButtonsColor(), bg);
for(p = mFunctionButtonList.first(); p;
p=mFunctionButtonList.next())
{
p->setPalette(funcPal);
}
- QPalette statPal(KCalcSettings::statButtonsColor(), bg);
+ TQPalette statPal(KCalcSettings::statButtonsColor(), bg);
for(p = mStatButtonList.first(); p; p=mStatButtonList.next())
{
p->setPalette(statPal);
}
- QPalette hexPal(KCalcSettings::hexButtonsColor(), bg);
+ TQPalette hexPal(KCalcSettings::hexButtonsColor(), bg);
for(int i=10; i<16; i++)
{
(NumButtonGroup->find(i))->setPalette(hexPal);
}
- QPalette memPal(KCalcSettings::memoryButtonsColor(), bg);
+ TQPalette memPal(KCalcSettings::memoryButtonsColor(), bg);
for(p = mMemButtonList.first(); p; p=mMemButtonList.next())
{
p->setPalette(memPal);
}
- QPalette opPal(KCalcSettings::operationButtonsColor(), bg);
+ TQPalette opPal(KCalcSettings::operationButtonsColor(), bg);
for(p = mOperationButtonList.first(); p;
p=mOperationButtonList.next())
{
@@ -2187,33 +2187,33 @@ void KCalculator::set_precision()
UpdateDisplay(false);
}
-bool KCalculator::eventFilter(QObject *o, QEvent *e)
+bool KCalculator::eventFilter(TQObject *o, TQEvent *e)
{
- if(e->type() == QEvent::DragEnter)
+ if(e->type() == TQEvent::DragEnter)
{
- QDragEnterEvent *ev = (QDragEnterEvent *)e;
+ TQDragEnterEvent *ev = (TQDragEnterEvent *)e;
ev->accept(KColorDrag::canDecode(ev));
return true;
}
- else if(e->type() == QEvent::DragLeave)
+ else if(e->type() == TQEvent::DragLeave)
{
return true;
}
- else if(e->type() == QEvent::Drop)
+ else if(e->type() == TQEvent::Drop)
{
if(!o->isA("KCalcButton"))
return false;
- QColor c;
- QDropEvent *ev = (QDropEvent *)e;
+ TQColor c;
+ TQDropEvent *ev = (TQDropEvent *)e;
if( KColorDrag::decode(ev, c))
{
- QPtrList<KCalcButton> *list;
+ TQPtrList<KCalcButton> *list;
int num_but;
if((num_but = NumButtonGroup->id((KCalcButton*)o))
!= -1)
{
- QPalette pal(c, palette().active().background());
+ TQPalette pal(c, palette().active().background());
// Was it hex-button or normal digit??
if (num_but <10)
@@ -2244,7 +2244,7 @@ bool KCalculator::eventFilter(QObject *o, QEvent *e)
else
return false;
- QPalette pal(c, palette().active().background());
+ TQPalette pal(c, palette().active().background());
for(KCalcButton *p = list->first(); p; p=list->next())
p->setPalette(pal);
@@ -2296,7 +2296,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char *argv[])
KCalculator *calc = new KCalculator;
app.setTopWidget(calc);
- calc->setCaption(QString::null);
+ calc->setCaption(TQString::null);
calc->show();
int exitCode = app.exec();
diff --git a/kcalc/kcalc.h b/kcalc/kcalc.h
index 0ede211..442937d 100644
--- a/kcalc/kcalc.h
+++ b/kcalc/kcalc.h
@@ -63,7 +63,7 @@ class KCalculator : public KMainWindow
Q_OBJECT
public:
- KCalculator(QWidget *parent = 0, const char *name = 0);
+ KCalculator(TQWidget *parent = 0, const char *name = 0);
~KCalculator();
signals:
@@ -72,17 +72,17 @@ signals:
void switchShowAccels(bool);
private:
- virtual bool eventFilter( QObject *o, QEvent *e );
+ virtual bool eventFilter( TQObject *o, TQEvent *e );
void updateGeometry();
void setupMainActions(void);
void setupStatusbar(void);
- QWidget *setupNumericKeys(QWidget *parent);
- void setupLogicKeys(QWidget *parent);
- void setupScientificKeys(QWidget *parent);
- void setupStatisticKeys(QWidget *parent);
- void setupConstantsKeys(QWidget *parent);
- void keyPressEvent(QKeyEvent *e);
- void keyReleaseEvent(QKeyEvent *e);
+ TQWidget *setupNumericKeys(TQWidget *parent);
+ void setupLogicKeys(TQWidget *parent);
+ void setupScientificKeys(TQWidget *parent);
+ void setupStatisticKeys(TQWidget *parent);
+ void setupConstantsKeys(TQWidget *parent);
+ void keyPressEvent(TQKeyEvent *e);
+ void keyReleaseEvent(TQKeyEvent *e);
void set_precision();
void set_style();
void resetBase(void) { (BaseChooseGroup->find(1))->animateClick();};
@@ -172,16 +172,16 @@ private:
private:
- QWidget *mSmallPage;
- QWidget *mLargePage;
- QWidget *mNumericPage;
+ TQWidget *mSmallPage;
+ TQWidget *mLargePage;
+ TQWidget *mNumericPage;
DispLogic* calc_display; // for historic reasons in "dlabel.h"
- QRadioButton* pbBaseChoose[4];
- QPushButton* pbAngleChoose;
- QDict<KCalcButton> pbStat;
- QDict<KCalcButton> pbScientific;
- QDict<KCalcButton> pbLogic;
+ TQRadioButton* pbBaseChoose[4];
+ TQPushButton* pbAngleChoose;
+ TQDict<KCalcButton> pbStat;
+ TQDict<KCalcButton> pbScientific;
+ TQDict<KCalcButton> pbLogic;
KCalcConstButton* pbConstant[10];
KCalcButton* pbAC;
KCalcButton* pbAND;
@@ -215,21 +215,21 @@ private:
// buttons would like to remove this, but
// don't know how
- QHButtonGroup* BaseChooseGroup;
+ TQHButtonGroup* BaseChooseGroup;
// NumButtonGroup: 0-9 = digits, 0xA-0xF = hex-keys
- QButtonGroup* NumButtonGroup;
+ TQButtonGroup* NumButtonGroup;
// ConstButtonGroup C1-C6
- QButtonGroup* ConstButtonGroup;
+ TQButtonGroup* ConstButtonGroup;
KToggleAction *actionStatshow;
KToggleAction *actionScientificshow;
KToggleAction *actionLogicshow;
KToggleAction *actionConstantsShow;
- QPtrList<KCalcButton> mFunctionButtonList;
- QPtrList<KCalcButton> mStatButtonList;
- QPtrList<KCalcButton> mMemButtonList;
- QPtrList<KCalcButton> mOperationButtonList;
+ TQPtrList<KCalcButton> mFunctionButtonList;
+ TQPtrList<KCalcButton> mStatButtonList;
+ TQPtrList<KCalcButton> mMemButtonList;
+ TQPtrList<KCalcButton> mOperationButtonList;
int mInternalSpacing;
diff --git a/kcalc/kcalc_button.cpp b/kcalc/kcalc_button.cpp
index 7021a1a..7472f92 100644
--- a/kcalc/kcalc_button.cpp
+++ b/kcalc/kcalc_button.cpp
@@ -20,32 +20,32 @@
*/
-#include <qsimplerichtext.h>
-#include <qtooltip.h>
-#include <qpainter.h>
+#include <tqsimplerichtext.h>
+#include <tqtooltip.h>
+#include <tqpainter.h>
-#include "qdom.h"
+#include "tqdom.h"
#include "kcalc_button.h"
-KCalcButton::KCalcButton(QWidget * parent, const char * name)
+KCalcButton::KCalcButton(TQWidget * parent, const char * name)
: KPushButton(parent, name), _show_accel_mode(false),
_mode_flags(ModeNormal)
{
setAutoDefault(false);
}
-KCalcButton::KCalcButton(const QString &label, QWidget * parent,
- const char * name, const QString &tooltip)
+KCalcButton::KCalcButton(const TQString &label, TQWidget * parent,
+ const char * name, const TQString &tooltip)
: KPushButton(label, parent, name), _show_accel_mode(false), _mode_flags(ModeNormal)
{
setAutoDefault(false);
addMode(ModeNormal, label, tooltip);
}
-void KCalcButton::addMode(ButtonModeFlags mode, QString label, QString tooltip, bool is_label_richtext)
+void KCalcButton::addMode(ButtonModeFlags mode, TQString label, TQString tooltip, bool is_label_richtext)
{
if (_mode.contains(mode)) _mode.remove(mode);
@@ -69,14 +69,14 @@ void KCalcButton::slotSetMode(ButtonModeFlags mode, bool flag)
if (_mode.contains(new_mode)) {
// save accel, because setting label erases accel
- QKeySequence _accel = accel();
+ TQKeySequence _accel = accel();
if(_mode[new_mode].is_label_richtext)
_label = _mode[new_mode].label;
else
setText(_mode[new_mode].label);
- QToolTip::remove(this);
- QToolTip::add(this, _mode[new_mode].tooltip);
+ TQToolTip::remove(this);
+ TQToolTip::add(this, _mode[new_mode].tooltip);
_mode_flags = new_mode;
// restore accel
@@ -90,7 +90,7 @@ void KCalcButton::slotSetMode(ButtonModeFlags mode, bool flag)
update();
}
-static QString escape(QString str)
+static TQString escape(TQString str)
{
str.replace('&', "&&");
return str;
@@ -102,10 +102,10 @@ void KCalcButton::slotSetAccelDisplayMode(bool flag)
_show_accel_mode = flag;
// save accel, because setting label erases accel
- QKeySequence _accel = accel();
+ TQKeySequence _accel = accel();
if (flag == true) {
- setText(escape(QString(accel())));
+ setText(escape(TQString(accel())));
} else {
setText(_mode[_mode_flags].label);
}
@@ -114,17 +114,17 @@ void KCalcButton::slotSetAccelDisplayMode(bool flag)
setAccel(_accel);
}
-void KCalcButton::paintLabel(QPainter *paint)
+void KCalcButton::paintLabel(TQPainter *paint)
{
if (_mode[_mode_flags].is_label_richtext) {
- QSimpleRichText _text(_label, font());
+ TQSimpleRichText _text(_label, font());
_text.draw(paint, width()/2-_text.width()/2, 0, childrenRegion(), colorGroup());
} else {
KPushButton::drawButtonLabel(paint);
}
}
-void KCalcButton::drawButtonLabel(QPainter *paint)
+void KCalcButton::drawButtonLabel(TQPainter *paint)
{
if (_show_accel_mode) {
KPushButton::drawButtonLabel(paint);
@@ -134,7 +134,7 @@ void KCalcButton::drawButtonLabel(QPainter *paint)
}
-void KSquareButton::paintLabel(QPainter *paint)
+void KSquareButton::paintLabel(TQPainter *paint)
{
int w = width();
int w2 = w/2 - 13;
@@ -155,7 +155,7 @@ void KSquareButton::paintLabel(QPainter *paint)
}
}
-void KSquareButton::drawButtonLabel(QPainter *paint)
+void KSquareButton::drawButtonLabel(TQPainter *paint)
{
if (_show_accel_mode) {
KPushButton::drawButtonLabel(paint);
diff --git a/kcalc/kcalc_button.h b/kcalc/kcalc_button.h
index 0998b5f..6f103a3 100644
--- a/kcalc/kcalc_button.h
+++ b/kcalc/kcalc_button.h
@@ -43,7 +43,7 @@ class ButtonMode
{
public:
ButtonMode(void) {};
- ButtonMode(QString &label, QString &tooltip, bool is_label_richtext)
+ ButtonMode(TQString &label, TQString &tooltip, bool is_label_richtext)
: is_label_richtext(is_label_richtext), tooltip(tooltip)
{
if (is_label_richtext)
@@ -52,9 +52,9 @@ public:
this->label = label;
};
- QString label;
+ TQString label;
bool is_label_richtext;
- QString tooltip;
+ TQString tooltip;
};
@@ -63,27 +63,27 @@ class KCalcButton : public KPushButton
Q_OBJECT
public:
- KCalcButton(QWidget *parent, const char * name = 0);
- KCalcButton(const QString &label, QWidget *parent, const char * name = 0,
- const QString &tooltip = QString());
+ KCalcButton(TQWidget *parent, const char * name = 0);
+ KCalcButton(const TQString &label, TQWidget *parent, const char * name = 0,
+ const TQString &tooltip = TQString());
- void addMode(ButtonModeFlags mode, QString label, QString tooltip, bool is_label_richtext = false);
+ void addMode(ButtonModeFlags mode, TQString label, TQString tooltip, bool is_label_richtext = false);
public slots:
void slotSetMode(ButtonModeFlags mode, bool flag);
void slotSetAccelDisplayMode(bool flag);
protected:
- virtual void drawButtonLabel(QPainter *paint);
- void paintLabel(QPainter *paint);
+ virtual void drawButtonLabel(TQPainter *paint);
+ void paintLabel(TQPainter *paint);
protected:
bool _show_accel_mode;
- QString _label;
+ TQString _label;
ButtonModeFlags _mode_flags;
- QMap<ButtonModeFlags, ButtonMode> _mode;
+ TQMap<ButtonModeFlags, ButtonMode> _mode;
};
class KSquareButton : public KCalcButton
@@ -91,15 +91,15 @@ class KSquareButton : public KCalcButton
Q_OBJECT
public:
- KSquareButton(QWidget *parent, const char * name = 0)
+ KSquareButton(TQWidget *parent, const char * name = 0)
: KCalcButton(parent, name) { };
- KSquareButton(const QString &label, QWidget *parent, const char * name = 0,
- const QString &tooltip = QString())
+ KSquareButton(const TQString &label, TQWidget *parent, const char * name = 0,
+ const TQString &tooltip = TQString())
: KCalcButton(label, parent, name, tooltip) { };
protected:
- virtual void drawButtonLabel(QPainter *paint);
- void paintLabel(QPainter *paint);
+ virtual void drawButtonLabel(TQPainter *paint);
+ void paintLabel(TQPainter *paint);
};
#endif // _KCALC_BUTTON_H
diff --git a/kcalc/kcalc_const_button.cpp b/kcalc/kcalc_const_button.cpp
index e9c4216..071bb71 100644
--- a/kcalc/kcalc_const_button.cpp
+++ b/kcalc/kcalc_const_button.cpp
@@ -19,7 +19,7 @@
*/
-#include <qstring.h>
+#include <tqstring.h>
#include <kcmenumngr.h>
@@ -31,7 +31,7 @@
#include "kcalc_settings.h"
-KCalcConstButton::KCalcConstButton(QWidget *parent, int but_num, const char * name)
+KCalcConstButton::KCalcConstButton(TQWidget *parent, int but_num, const char * name)
: KCalcButton(parent, name), _button_num(but_num)
{
addMode(ModeInverse, "Store", i18n("Write display data into memory"));
@@ -40,8 +40,8 @@ KCalcConstButton::KCalcConstButton(QWidget *parent, int but_num, const char * na
}
-KCalcConstButton::KCalcConstButton(const QString &label, QWidget *parent, int but_num,
- const char * name, const QString &tooltip)
+KCalcConstButton::KCalcConstButton(const TQString &label, TQWidget *parent, int but_num,
+ const char * name, const TQString &tooltip)
: KCalcButton(label, parent, name, tooltip), _button_num(but_num)
{
addMode(ModeInverse, "Store", i18n("Write display data into memory"));
@@ -49,15 +49,15 @@ KCalcConstButton::KCalcConstButton(const QString &label, QWidget *parent, int bu
initPopupMenu();
}
-QString KCalcConstButton::constant(void) const
+TQString KCalcConstButton::constant(void) const
{
return KCalcSettings::valueConstant(_button_num);
}
void KCalcConstButton::setLabelAndTooltip(void)
{
- QString new_label = QString("C") + QString().setNum(_button_num + 1);
- QString new_tooltip;
+ TQString new_label = TQString("C") + TQString().setNum(_button_num + 1);
+ TQString new_tooltip;
new_label = (KCalcSettings::nameConstant(_button_num).isNull() ? new_label : KCalcSettings::nameConstant(_button_num));
@@ -74,8 +74,8 @@ void KCalcConstButton::initPopupMenu(void)
_popup->insertItem(i18n("Set Name"), 0);
_popup->insertItem(i18n("Choose From List"), tmp_menu, 1);
- connect(_popup, SIGNAL(activated(int)), SLOT(slotConfigureButton(int)));
- connect(tmp_menu, SIGNAL(activated(int)), SLOT(slotChooseScientificConst(int)));
+ connect(_popup, TQT_SIGNAL(activated(int)), TQT_SLOT(slotConfigureButton(int)));
+ connect(tmp_menu, TQT_SIGNAL(activated(int)), TQT_SLOT(slotChooseScientificConst(int)));
KContextMenuManager::insert(this, _popup);
}
@@ -85,7 +85,7 @@ void KCalcConstButton::slotConfigureButton(int option)
if (option == 0)
{
bool yes_no;
- QString input = KInputDialog::text(i18n("New Name for Constant"), i18n("New name:"),
+ TQString input = KInputDialog::text(i18n("New Name for Constant"), i18n("New name:"),
text(), &yes_no, this, "nameUserConstants-Dialog");
if(yes_no) {
KCalcSettings::setNameConstant(_button_num, input);
diff --git a/kcalc/kcalc_const_button.h b/kcalc/kcalc_const_button.h
index 18ebf3e..110df3c 100644
--- a/kcalc/kcalc_const_button.h
+++ b/kcalc/kcalc_const_button.h
@@ -34,12 +34,12 @@ Q_OBJECT
public:
- KCalcConstButton(QWidget *parent, int but_num, const char * name = 0);
+ KCalcConstButton(TQWidget *parent, int but_num, const char * name = 0);
- KCalcConstButton(const QString &label, QWidget *parent, int but_num, const char * name = 0,
- const QString &tooltip = QString());
+ KCalcConstButton(const TQString &label, TQWidget *parent, int but_num, const char * name = 0,
+ const TQString &tooltip = TQString());
- QString constant(void) const;
+ TQString constant(void) const;
void setLabelAndTooltip(void);
diff --git a/kcalc/kcalc_const_menu.cpp b/kcalc/kcalc_const_menu.cpp
index 77bb02e..f758c9f 100644
--- a/kcalc/kcalc_const_menu.cpp
+++ b/kcalc/kcalc_const_menu.cpp
@@ -26,37 +26,37 @@
#define NUM_CONST 17
const struct science_constant KCalcConstMenu::Constants[] = {
- {QString::fromUtf8("π"), I18N_NOOP("Pi"), "",
+ {TQString::fromUtf8("π"), I18N_NOOP("Pi"), "",
"3.1415926535897932384626433832795028841971693993751"
"05820974944592307816406286208998628034825342117068", Mathematics},
{"e", I18N_NOOP("Euler Number"), "",
"2.7182818284590452353602874713526624977572470936999"
"59574966967627724076630353547594571382178525166427", Mathematics},
- {QString::fromUtf8("φ"), I18N_NOOP("Golden Ratio"), "", "1.61803398874989484820458683436563811", Mathematics},
+ {TQString::fromUtf8("φ"), I18N_NOOP("Golden Ratio"), "", "1.61803398874989484820458683436563811", Mathematics},
{"c", I18N_NOOP("Light Speed"), "", "2.99792458e8", Electromagnetic},
{"h", I18N_NOOP("Planck's Constant"), "", "6.6260693e-34", Nuclear},
{"G", I18N_NOOP("Constant of Gravitation"), "", "6.6742e-11", Gravitation},
{"g", I18N_NOOP("Earth Acceleration"), "", "9.80665", Gravitation},
{"e", I18N_NOOP("Elementary Charge"), "", "1.60217653e-19", ConstantCategory(Electromagnetic|Nuclear)},
{"Z_0", I18N_NOOP("Impedance of Vacuum"), "", "376.730313461", Electromagnetic},
- {QString::fromUtf8("α"), I18N_NOOP("Fine-Structure Constant"), "", "7.297352568e-3", Nuclear},
- {QString::fromUtf8("μ")+"_0", I18N_NOOP("Permeability of Vacuum"), "", "1.2566370614e-6", Electromagnetic},
- {QString::fromUtf8("ε")+"_0", I18N_NOOP("Permittivity of vacuum"), "", "8.854187817e-12", Electromagnetic},
+ {TQString::fromUtf8("α"), I18N_NOOP("Fine-Structure Constant"), "", "7.297352568e-3", Nuclear},
+ {TQString::fromUtf8("μ")+"_0", I18N_NOOP("Permeability of Vacuum"), "", "1.2566370614e-6", Electromagnetic},
+ {TQString::fromUtf8("ε")+"_0", I18N_NOOP("Permittivity of vacuum"), "", "8.854187817e-12", Electromagnetic},
{"k", I18N_NOOP("Boltzmann Constant"), "", "1.3806505e-23", Thermodynamics},
{"1u", I18N_NOOP("Atomic Mass Unit"), "", "1.66053886e-27", Thermodynamics},
{"R", I18N_NOOP("Molar Gas Constant"), "", "8.314472", Thermodynamics},
- {QString::fromUtf8("σ"), I18N_NOOP("Stefan-Boltzmann Constant"), "", "5.670400e-8", Thermodynamics},
+ {TQString::fromUtf8("σ"), I18N_NOOP("Stefan-Boltzmann Constant"), "", "5.670400e-8", Thermodynamics},
{"N_A", I18N_NOOP("Avogadro's Number"), "", "6.0221415e23", Thermodynamics}
};
-KCalcConstMenu::KCalcConstMenu(QWidget * parent, const char * name)
- : QPopupMenu(parent, name)
+KCalcConstMenu::KCalcConstMenu(TQWidget * parent, const char * name)
+ : TQPopupMenu(parent, name)
{
- QPopupMenu *math_menu = new QPopupMenu(this, "mathematical constants");
- QPopupMenu *em_menu = new QPopupMenu(this, "electromagnetic constants");
- QPopupMenu *nuclear_menu = new QPopupMenu(this, "nuclear constants");
- QPopupMenu *thermo_menu = new QPopupMenu(this, "thermodynamics constants");
- QPopupMenu *gravitation_menu = new QPopupMenu(this, "gravitation constants");
+ TQPopupMenu *math_menu = new TQPopupMenu(this, "mathematical constants");
+ TQPopupMenu *em_menu = new TQPopupMenu(this, "electromagnetic constants");
+ TQPopupMenu *nuclear_menu = new TQPopupMenu(this, "nuclear constants");
+ TQPopupMenu *thermo_menu = new TQPopupMenu(this, "thermodynamics constants");
+ TQPopupMenu *gravitation_menu = new TQPopupMenu(this, "gravitation constants");
insertItem(i18n("Mathematics"), math_menu);
insertItem(i18n("Electromagnetism"), em_menu);
@@ -64,11 +64,11 @@ KCalcConstMenu::KCalcConstMenu(QWidget * parent, const char * name)
insertItem(i18n("Thermodynamics"), thermo_menu);
insertItem(i18n("Gravitation"), gravitation_menu);
- connect(math_menu, SIGNAL(activated(int)), this, SLOT(slotPassActivate(int)));
- connect(em_menu, SIGNAL(activated(int)), this, SLOT(slotPassActivate(int)));
- connect(nuclear_menu, SIGNAL(activated(int)), this, SLOT(slotPassActivate(int)));
- connect(thermo_menu, SIGNAL(activated(int)), this, SLOT(slotPassActivate(int)));
- connect(gravitation_menu, SIGNAL(activated(int)), this, SLOT(slotPassActivate(int)));
+ connect(math_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotPassActivate(int)));
+ connect(em_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotPassActivate(int)));
+ connect(nuclear_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotPassActivate(int)));
+ connect(thermo_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotPassActivate(int)));
+ connect(gravitation_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotPassActivate(int)));
for (int i = 0; i<NUM_CONST; i++) {
diff --git a/kcalc/kcalc_const_menu.h b/kcalc/kcalc_const_menu.h
index 4ae8da3..94c8412 100644
--- a/kcalc/kcalc_const_menu.h
+++ b/kcalc/kcalc_const_menu.h
@@ -23,16 +23,16 @@
#ifndef _KCALC_CONST_MENU_H
#define _KCALC_CONST_MENU_H
-#include <qpopupmenu.h>
-#include <qstring.h>
+#include <tqpopupmenu.h>
+#include <tqstring.h>
enum ConstantCategory {Mathematics = 1, Electromagnetic = 2, Nuclear = 4, Thermodynamics = 8, Gravitation = 16};
struct science_constant{
- QString label;
+ TQString label;
const char * name;
- QString whatsthis;
- QString value;
+ TQString whatsthis;
+ TQString value;
ConstantCategory category;
};
@@ -41,7 +41,7 @@ class KCalcConstMenu : public QPopupMenu
Q_OBJECT
public:
- KCalcConstMenu(QWidget * parent = 0, const char * name = 0);
+ KCalcConstMenu(TQWidget * parent = 0, const char * name = 0);
static const struct science_constant Constants[];
diff --git a/kcalc/kcalc_core.h b/kcalc/kcalc_core.h
index edd33f3..fe818e9 100644
--- a/kcalc/kcalc_core.h
+++ b/kcalc/kcalc_core.h
@@ -26,7 +26,7 @@
#define _KCALC_CORE_H
#include "stats.h"
-#include <qvaluestack.h>
+#include <tqvaluestack.h>
#include "knumber.h"
#define POS_ZERO 1e-19L /* What we consider zero is */
@@ -153,7 +153,7 @@ class CalcEngine
// into the stack, each time the user opens one. When a bracket is
// closed, everything in the stack is evaluated until the first
// marker "FUNC_BRACKET" found.
- QValueStack<_node> _stack;
+ TQValueStack<_node> _stack;
KNumber _last_number;
diff --git a/kcalc/kcalcdisplay.cpp b/kcalc/kcalcdisplay.cpp
index 672c363..1f90e03 100644
--- a/kcalc/kcalcdisplay.cpp
+++ b/kcalc/kcalcdisplay.cpp
@@ -27,9 +27,9 @@
#include <stdlib.h>
#include <ctype.h>
-#include <qclipboard.h>
-#include <qpainter.h>
-#include <qregexp.h>
+#include <tqclipboard.h>
+#include <tqpainter.h>
+#include <tqregexp.h>
#include <kglobal.h>
#include <klocale.h>
@@ -39,22 +39,22 @@
#include "kcalcdisplay.moc"
-KCalcDisplay::KCalcDisplay(QWidget *parent, const char *name)
- :QLabel(parent,name), _beep(false), _groupdigits(false), _button(0), _lit(false),
+KCalcDisplay::KCalcDisplay(TQWidget *parent, const char *name)
+ :TQLabel(parent,name), _beep(false), _groupdigits(false), _button(0), _lit(false),
_num_base(NB_DECIMAL), _precision(9),
_fixed_precision(-1), _display_amount(0),
- selection_timer(new QTimer)
+ selection_timer(new TQTimer)
{
- setFrameStyle(QFrame::WinPanel | QFrame::Sunken);
+ setFrameStyle(TQFrame::WinPanel | TQFrame::Sunken);
setAlignment(AlignRight | AlignVCenter);
setFocus();
- setFocusPolicy(QWidget::StrongFocus);
- setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed, false);
+ setFocusPolicy(TQWidget::StrongFocus);
+ setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed, false);
- connect(this, SIGNAL(clicked()), this, SLOT(slotDisplaySelected()));
+ connect(this, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDisplaySelected()));
- connect(selection_timer, SIGNAL(timeout()),
- this, SLOT(slotSelectionTimedOut()));
+ connect(selection_timer, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(slotSelectionTimedOut()));
sendEvent(EventReset);
}
@@ -71,7 +71,7 @@ bool KCalcDisplay::sendEvent(Event const event)
case EventReset:
_display_amount = 0;
_str_int = "0";
- _str_int_exp = QString::null;
+ _str_int_exp = TQString::null;
_eestate = false;
_period = false;
@@ -102,16 +102,16 @@ void KCalcDisplay::slotCut(void)
void KCalcDisplay::slotCopy(void)
{
- QString txt = QLabel::text();
+ TQString txt = TQLabel::text();
if (_num_base == NB_HEX)
txt.prepend( "0x" );
- (QApplication::clipboard())->setText(txt, QClipboard::Clipboard);
- (QApplication::clipboard())->setText(txt, QClipboard::Selection);
+ (TQApplication::clipboard())->setText(txt, QClipboard::Clipboard);
+ (TQApplication::clipboard())->setText(txt, QClipboard::Selection);
}
void KCalcDisplay::slotPaste(bool bClipboard)
{
- QString tmp_str = (QApplication::clipboard())->text(bClipboard ? QClipboard::Clipboard : QClipboard::Selection);
+ TQString tmp_str = (TQApplication::clipboard())->text(bClipboard ? QClipboard::Clipboard : QClipboard::Selection);
if (tmp_str.isNull())
{
@@ -173,14 +173,14 @@ void KCalcDisplay::slotSelectionTimedOut(void)
void KCalcDisplay::invertColors()
{
- QColor tmp_col(paletteBackgroundColor());
+ TQColor tmp_col(paletteBackgroundColor());
setPaletteBackgroundColor(paletteForegroundColor());
setPaletteForegroundColor(tmp_col);
}
-void KCalcDisplay::mousePressEvent(QMouseEvent *e)
+void KCalcDisplay::mousePressEvent(TQMouseEvent *e)
{
if(e->button() == LeftButton) {
_lit = !_lit;
@@ -223,10 +223,10 @@ KNumber const & KCalcDisplay::getAmount(void) const
bool KCalcDisplay::setAmount(KNumber const & new_amount)
{
- QString display_str;
+ TQString display_str;
_str_int = "0";
- _str_int_exp = QString::null;
+ _str_int_exp = TQString::null;
_period = false;
_neg_sign = false;
_eestate = false;
@@ -236,7 +236,7 @@ bool KCalcDisplay::setAmount(KNumber const & new_amount)
_display_amount = new_amount.integerPart();
unsigned long long int tmp_workaround = static_cast<unsigned long long int>(_display_amount);
- display_str = QString::number(tmp_workaround, _num_base).upper();
+ display_str = TQString::number(tmp_workaround, _num_base).upper();
}
else // _num_base == NB_DECIMAL || new_amount.type() ==
// KNumber::SpecialType
@@ -246,9 +246,9 @@ bool KCalcDisplay::setAmount(KNumber const & new_amount)
display_str = _display_amount.toQString(KCalcSettings::precision(), _fixed_precision);
#if 0
else if (_display_amount > 1.0e+16)
- display_str = QCString().sprintf(PRINT_LONG_BIG, _precision + 1, _display_amount);
+ display_str = TQCString().sprintf(PRINT_LONG_BIG, _precision + 1, _display_amount);
else
- display_str = QCString().sprintf(PRINT_LONG_BIG, _precision, _display_amount);
+ display_str = TQCString().sprintf(PRINT_LONG_BIG, _precision, _display_amount);
#endif
}
@@ -257,9 +257,9 @@ bool KCalcDisplay::setAmount(KNumber const & new_amount)
}
-void KCalcDisplay::setText(QString const &string)
+void KCalcDisplay::setText(TQString const &string)
{
- QString localizedString = string;
+ TQString localizedString = string;
// If we aren't in decimal mode, we don't need to modify the string
if (_num_base == NB_DECIMAL && _groupdigits)
@@ -273,18 +273,18 @@ void KCalcDisplay::setText(QString const &string)
} else
localizedString = KGlobal::locale()->formatNumber(string, false, 0); // Note: rounding happened already above!
- QLabel::setText(localizedString);
+ TQLabel::setText(localizedString);
emit changedText(localizedString);
}
-QString KCalcDisplay::text() const
+TQString KCalcDisplay::text() const
{
if (_num_base != NB_DECIMAL)
- return QLabel::text();
- QString display_str = _display_amount.toQString(KCalcSettings::precision());
+ return TQLabel::text();
+ TQString display_str = _display_amount.toQString(KCalcSettings::precision());
return display_str;
- // return QCString().sprintf(PRINT_LONG_BIG, 40, _display_amount);
+ // return TQCString().sprintf(PRINT_LONG_BIG, 40, _display_amount);
}
/* change representation of display to new base (i.e. binary, decimal,
@@ -321,7 +321,7 @@ int KCalcDisplay::setBase(NumBase new_base)
return _num_base;
}
-void KCalcDisplay::setStatusText(uint i, const QString& text)
+void KCalcDisplay::setStatusText(uint i, const TQString& text)
{
if (i < NUM_STATUS_TEXT)
_str_status[i] = text;
@@ -331,7 +331,7 @@ void KCalcDisplay::setStatusText(uint i, const QString& text)
bool KCalcDisplay::updateDisplay(void)
{
// Put sign in front.
- QString tmp_string;
+ TQString tmp_string;
if(_neg_sign == true)
tmp_string = "-" + _str_int;
else
@@ -577,16 +577,16 @@ bool KCalcDisplay::changeSign(void)
return true;
}
-void KCalcDisplay::drawContents(QPainter *p)
+void KCalcDisplay::drawContents(TQPainter *p)
{
- QLabel::drawContents(p);
+ TQLabel::drawContents(p);
// draw the status texts using half of the normal
// font size but not smaller than 7pt
- QFont f(font());
+ TQFont f(font());
f.setPointSize(QMAX((f.pointSize() / 2), 7));
p->setFont(f);
- QFontMetrics fm(f);
+ TQFontMetrics fm(f);
uint w = fm.width("_____");
uint h = fm.height();
@@ -598,11 +598,11 @@ void KCalcDisplay::drawContents(QPainter *p)
// Return the QLabel's normal size hint vertically expanded
// by half the font height to make room for the status texts
-QSize KCalcDisplay::sizeHint() const
+TQSize KCalcDisplay::sizeHint() const
{
- QFont f(font());
+ TQFont f(font());
f.setPointSize(QMAX((f.pointSize() / 2), 7));
- QFontMetrics fm(f);
- return QLabel::sizeHint() + QSize(0, fm.height());
+ TQFontMetrics fm(f);
+ return TQLabel::sizeHint() + TQSize(0, fm.height());
}
diff --git a/kcalc/kcalcdisplay.h b/kcalc/kcalcdisplay.h
index 4f72fb7..6f7233c 100644
--- a/kcalc/kcalcdisplay.h
+++ b/kcalc/kcalcdisplay.h
@@ -27,8 +27,8 @@
#define _D_KCALCDISPLAY_H_
#include <stdlib.h>
-#include <qlabel.h>
-#include <qtimer.h>
+#include <tqlabel.h>
+#include <tqtimer.h>
#include "knumber.h"
#include "kcalctype.h"
@@ -81,12 +81,12 @@ class KCalcDisplay : public QLabel
Q_OBJECT
public:
- KCalcDisplay(QWidget *parent=0, const char *name=0);
+ KCalcDisplay(TQWidget *parent=0, const char *name=0);
~KCalcDisplay();
protected:
- void mousePressEvent ( QMouseEvent *);
- virtual void drawContents(QPainter *p);
+ void mousePressEvent ( TQMouseEvent *);
+ virtual void drawContents(TQPainter *p);
public:
enum Event {
@@ -105,11 +105,11 @@ public:
void setGroupDigits(bool flag);
void setFixedPrecision(int precision);
void setPrecision(int precision);
- void setText(QString const &string);
- QString text() const;
+ void setText(TQString const &string);
+ TQString text() const;
bool updateDisplay(void);
- void setStatusText(uint i, const QString& text);
- virtual QSize sizeHint() const;
+ void setStatusText(uint i, const TQString& text);
+ virtual TQSize sizeHint() const;
private:
bool _beep;
bool _groupdigits;
@@ -129,15 +129,15 @@ private:
bool _eestate;
bool _period;
bool _neg_sign;
- QString _str_int;
- QString _str_int_exp;
- QString _str_status[NUM_STATUS_TEXT];
+ TQString _str_int;
+ TQString _str_int_exp;
+ TQString _str_status[NUM_STATUS_TEXT];
- QTimer* selection_timer;
+ TQTimer* selection_timer;
signals:
void clicked(void);
- void changedText(QString const &);
+ void changedText(TQString const &);
public slots:
void slotCut(void);
diff --git a/kcalc/knumber/knumber.cpp b/kcalc/knumber/knumber.cpp
index d282b26..80bae1f 100644
--- a/kcalc/knumber/knumber.cpp
+++ b/kcalc/knumber/knumber.cpp
@@ -22,8 +22,8 @@
#include <config.h>
-#include <qregexp.h>
-#include <qstring.h>
+#include <tqregexp.h>
+#include <tqstring.h>
#include "knumber.h"
@@ -94,17 +94,17 @@ KNumber::KNumber(KNumber const & num)
}
-KNumber::KNumber(QString const & num)
+KNumber::KNumber(TQString const & num)
{
- if (QRegExp("^(inf|-inf|nan)$").exactMatch(num))
+ if (TQRegExp("^(inf|-inf|nan)$").exactMatch(num))
_num = new _knumerror(num);
- else if (QRegExp("^[+-]?\\d+$").exactMatch(num))
+ else if (TQRegExp("^[+-]?\\d+$").exactMatch(num))
_num = new _knuminteger(num);
- else if (QRegExp("^[+-]?\\d+/\\d+$").exactMatch(num)) {
+ else if (TQRegExp("^[+-]?\\d+/\\d+$").exactMatch(num)) {
_num = new _knumfraction(num);
simplifyRational();
}
- else if (QRegExp("^[+-]?\\d+(\\.\\d*)?(e[+-]?\\d+)?$").exactMatch(num))
+ else if (TQRegExp("^[+-]?\\d+(\\.\\d*)?(e[+-]?\\d+)?$").exactMatch(num))
if (_fraction_input == true) {
_num = new _knumfraction(num);
simplifyRational();
@@ -228,7 +228,7 @@ KNumber & KNumber::operator -=(KNumber const &arg)
}
// increase the digit at 'position' by one
-static void _inc_by_one(QString &str, int position)
+static void _inc_by_one(TQString &str, int position)
{
for (int i = position; i >= 0; i--)
{
@@ -274,7 +274,7 @@ static void _inc_by_one(QString &str, int position)
}
// Cut off if more digits in fractional part than 'precision'
-static void _round(QString &str, int precision)
+static void _round(TQString &str, int precision)
{
int decimalSymbolPos = str.find('.');
@@ -287,7 +287,7 @@ static void _round(QString &str, int precision)
}
// fill up with more than enough zeroes (in case fractional part too short)
- str.append(QString().fill('0', precision));
+ str.append(TQString().fill('0', precision));
// Now decide whether to round up or down
char last_char = str[decimalSymbolPos + precision + 1].latin1();
@@ -319,11 +319,11 @@ static void _round(QString &str, int precision)
if (precision == 0) str = str.section('.', 0, 0);
}
-static QString roundNumber(const QString &numStr, int precision)
+static TQString roundNumber(const TQString &numStr, int precision)
{
- QString tmpString = numStr;
+ TQString tmpString = numStr;
if (precision < 0 ||
- ! QRegExp("^[+-]?\\d+(\\.\\d+)*(e[+-]?\\d+)?$").exactMatch(tmpString))
+ ! TQRegExp("^[+-]?\\d+(\\.\\d+)*(e[+-]?\\d+)?$").exactMatch(tmpString))
return numStr;
@@ -333,12 +333,12 @@ static QString roundNumber(const QString &numStr, int precision)
// Split off exponential part (including 'e'-symbol)
- QString mantString = tmpString.section('e', 0, 0,
- QString::SectionCaseInsensitiveSeps);
- QString expString = tmpString.section('e', 1, 1,
- QString::SectionCaseInsensitiveSeps |
- QString::SectionIncludeLeadingSep);
- if (expString.length() == 1) expString = QString();
+ TQString mantString = tmpString.section('e', 0, 0,
+ TQString::SectionCaseInsensitiveSeps);
+ TQString expString = tmpString.section('e', 1, 1,
+ TQString::SectionCaseInsensitiveSeps |
+ TQString::SectionIncludeLeadingSep);
+ if (expString.length() == 1) expString = TQString();
_round(mantString, precision);
@@ -349,9 +349,9 @@ static QString roundNumber(const QString &numStr, int precision)
}
-QString const KNumber::toQString(int width, int prec) const
+TQString const KNumber::toQString(int width, int prec) const
{
- QString tmp_str;
+ TQString tmp_str;
if (*this == Zero) // important to avoid infinite loops below
return "0";
@@ -363,7 +363,7 @@ QString const KNumber::toQString(int width, int prec) const
tmp_str = (KNumber("1.0")*(*this)).toQString(width, -1);
_fraction_input = tmp_bool;
} else
- tmp_str = QString(_num->ascii());
+ tmp_str = TQString(_num->ascii());
break;
case FractionType:
if (_float_output) {
@@ -376,13 +376,13 @@ QString const KNumber::toQString(int width, int prec) const
// split off integer part
KNumber int_part = this->integerPart();
if (int_part == Zero)
- tmp_str = QString(_num->ascii());
+ tmp_str = TQString(_num->ascii());
else if (int_part < Zero)
tmp_str = int_part.toQString() + " " + (int_part - *this)._num->ascii();
else
tmp_str = int_part.toQString() + " " + (*this - int_part)._num->ascii();
} else
- tmp_str = QString(_num->ascii());
+ tmp_str = TQString(_num->ascii());
if (width > 0 && tmp_str.length() > width) {
//result needs to be cut-off
@@ -396,13 +396,13 @@ QString const KNumber::toQString(int width, int prec) const
break;
case FloatType:
if (width > 0)
- tmp_str = QString(_num->ascii(width));
+ tmp_str = TQString(_num->ascii(width));
else
// rough estimate for maximal decimal precision (10^3 = 2^10)
- tmp_str = QString(_num->ascii(3*mpf_get_default_prec()/10));
+ tmp_str = TQString(_num->ascii(3*mpf_get_default_prec()/10));
break;
default:
- return QString(_num->ascii());
+ return TQString(_num->ascii());
}
if (prec >= 0)
diff --git a/kcalc/knumber/knumber.h b/kcalc/knumber/knumber.h
index 489a579..b0b4444 100644
--- a/kcalc/knumber/knumber.h
+++ b/kcalc/knumber/knumber.h
@@ -115,7 +115,7 @@ class KDE_EXPORT KNumber
KNumber(KNumber const & num);
- KNumber(QString const & num);
+ KNumber(TQString const & num);
~KNumber()
{
@@ -142,7 +142,7 @@ class KDE_EXPORT KNumber
static void setDefaultFloatOutput(bool flag);
/**
- * Set whether a number constructed from a QString should be
+ * Set whether a number constructed from a TQString should be
* initialized as a fraction or as a float, e.g. "1.01" would be
* treated as 101/100, if this flag is set to true.
*
@@ -168,7 +168,7 @@ class KDE_EXPORT KNumber
static void setSplitoffIntegerForFractionOutput(bool flag);
/**
- * Return a QString representing the KNumber.
+ * Return a TQString representing the KNumber.
*
* @param width This number specifies the maximal length of the
* output, before the method switches to exponential notation and
@@ -179,7 +179,7 @@ class KDE_EXPORT KNumber
* is ignored.
*
*/
- QString const toQString(int width = -1, int prec = -1) const;
+ TQString const toQString(int width = -1, int prec = -1) const;
/**
* Compute the absolute value, i.e. @p x.abs() returns the value
diff --git a/kcalc/knumber/knumber_priv.cpp b/kcalc/knumber/knumber_priv.cpp
index 1326d44..56de7d3 100644
--- a/kcalc/knumber/knumber_priv.cpp
+++ b/kcalc/knumber/knumber_priv.cpp
@@ -23,8 +23,8 @@
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
-#include <qregexp.h>
-#include <qstring.h>
+#include <tqregexp.h>
+#include <tqstring.h>
#include "knumber_priv.h"
@@ -115,7 +115,7 @@ _knumfloat::_knumfloat(_knumber const & num)
-_knumerror::_knumerror(QString const & num)
+_knumerror::_knumerror(TQString const & num)
{
if (num == "nan")
_error = UndefinedNumber;
@@ -125,20 +125,20 @@ _knumerror::_knumerror(QString const & num)
_error = MinusInfinity;
}
-_knuminteger::_knuminteger(QString const & num)
+_knuminteger::_knuminteger(TQString const & num)
{
mpz_init(_mpz);
mpz_set_str(_mpz, num.ascii(), 10);
}
-_knumfraction::_knumfraction(QString const & num)
+_knumfraction::_knumfraction(TQString const & num)
{
mpq_init(_mpq);
- if (QRegExp("^[+-]?\\d+(\\.\\d*)?(e[+-]?\\d+)?$").exactMatch(num)) {
+ if (TQRegExp("^[+-]?\\d+(\\.\\d*)?(e[+-]?\\d+)?$").exactMatch(num)) {
// my hand-made conversion is terrible
// first me convert the mantissa
unsigned long int digits_after_dot = ((num.section( '.', 1, 1)).section('e', 0, 0)).length();
- QString tmp_num = num.section('e', 0, 0).remove('.');
+ TQString tmp_num = num.section('e', 0, 0).remove('.');
mpq_set_str(_mpq, tmp_num.ascii(), 10);
mpz_t tmp_int;
mpz_init(tmp_int);
@@ -163,7 +163,7 @@ _knumfraction::_knumfraction(QString const & num)
mpq_canonicalize(_mpq);
}
-_knumfloat::_knumfloat(QString const & num)
+_knumfloat::_knumfloat(TQString const & num)
{
mpf_init(_mpf);
mpf_set_str(_mpf, num.ascii(), 10);
@@ -178,51 +178,51 @@ _knuminteger const & _knuminteger::operator = (_knuminteger const & num)
return *this;
}
-QString const _knumerror::ascii(int prec) const
+TQString const _knumerror::ascii(int prec) const
{
static_cast<void>(prec);
switch(_error) {
case UndefinedNumber:
- return QString("nan");
+ return TQString("nan");
case Infinity:
- return QString("inf");
+ return TQString("inf");
case MinusInfinity:
- return QString("-inf");
+ return TQString("-inf");
default:
- return QString::null;
+ return TQString::null;
}
}
-QString const _knuminteger::ascii(int prec) const
+TQString const _knuminteger::ascii(int prec) const
{
static_cast<void>(prec);
char *tmp_ptr;
gmp_asprintf(&tmp_ptr, "%Zd", _mpz);
- QString ret_str = tmp_ptr;
+ TQString ret_str = tmp_ptr;
free(tmp_ptr);
return ret_str;
}
-QString const _knumfraction::ascii(int prec) const
+TQString const _knumfraction::ascii(int prec) const
{
static_cast<void>(prec);
char *tmp_ptr = mpq_get_str(0, 10, _mpq);
- QString ret_str = tmp_ptr;
+ TQString ret_str = tmp_ptr;
free(tmp_ptr);
return ret_str;
}
-QString const _knumfloat::ascii(int prec) const
+TQString const _knumfloat::ascii(int prec) const
{
- QString ret_str;
+ TQString ret_str;
char *tmp_ptr;
if (prec > 0)
- gmp_asprintf(&tmp_ptr, ("%." + QString().setNum(prec) + "Fg").ascii(), _mpf);
+ gmp_asprintf(&tmp_ptr, ("%." + TQString().setNum(prec) + "Fg").ascii(), _mpf);
else
gmp_asprintf(&tmp_ptr, "%Fg", _mpf);
diff --git a/kcalc/knumber/knumber_priv.h b/kcalc/knumber/knumber_priv.h
index 7dd58a6..cb6b13b 100644
--- a/kcalc/knumber/knumber_priv.h
+++ b/kcalc/knumber/knumber_priv.h
@@ -47,7 +47,7 @@ class _knumber
virtual NumType type(void) const = 0;
- virtual QString const ascii(int prec = -1) const = 0;
+ virtual TQString const ascii(int prec = -1) const = 0;
virtual _knumber * abs(void) const = 0;
virtual _knumber * intPart(void) const = 0;
@@ -79,7 +79,7 @@ class _knumerror : public _knumber
_knumerror(_knumber const & num);
- _knumerror(const QString & num);
+ _knumerror(const TQString & num);
//virtual ~_knumerror() { }
@@ -92,7 +92,7 @@ class _knumerror : public _knumber
virtual NumType type(void) const {return SpecialType;}
- virtual QString const ascii(int prec = -1) const;
+ virtual TQString const ascii(int prec = -1) const;
virtual _knumber * abs(void) const;
virtual _knumber * intPart(void) const;
@@ -150,7 +150,7 @@ class _knuminteger : public _knumber
_knuminteger(_knumber const & num);
- _knuminteger(const QString & num);
+ _knuminteger(const TQString & num);
virtual ~_knuminteger()
{
@@ -166,7 +166,7 @@ class _knuminteger : public _knumber
virtual NumType type(void) const {return IntegerType;}
- virtual QString const ascii(int prec = -1) const;
+ virtual TQString const ascii(int prec = -1) const;
virtual _knumber * abs(void) const;
virtual _knumber * intPart(void) const;
@@ -213,7 +213,7 @@ class _knumfraction : public _knumber
_knumfraction(_knumber const & num);
- _knumfraction(QString const & num);
+ _knumfraction(TQString const & num);
virtual ~_knumfraction()
{
@@ -227,7 +227,7 @@ class _knumfraction : public _knumber
virtual NumType type(void) const {return FractionType;}
- virtual QString const ascii(int prec = -1) const;
+ virtual TQString const ascii(int prec = -1) const;
bool isInteger(void) const;
@@ -267,7 +267,7 @@ class _knumfloat : public _knumber
_knumfloat(_knumber const & num);
- _knumfloat(QString const & num);
+ _knumfloat(TQString const & num);
virtual ~_knumfloat()
{
@@ -281,7 +281,7 @@ class _knumfloat : public _knumber
virtual NumType type(void) const {return FloatType;}
- virtual QString const ascii(int prec = -1) const;
+ virtual TQString const ascii(int prec = -1) const;
virtual _knumber * abs(void) const;
virtual _knumber * intPart(void) const;
diff --git a/kcalc/knumber/tests/knumbertest.cpp b/kcalc/knumber/tests/knumbertest.cpp
index 814410e..e34d94d 100644
--- a/kcalc/knumber/tests/knumbertest.cpp
+++ b/kcalc/knumber/tests/knumbertest.cpp
@@ -6,29 +6,29 @@
#include <stdio.h>
#include <iostream>
-#include <qstring.h>
+#include <tqstring.h>
#include "knumbertest.h"
-QString const numtypeToString(KNumber::NumType arg)
+TQString const numtypeToString(KNumber::NumType arg)
{
switch(arg) {
case KNumber::SpecialType:
- return QString("Special");
+ return TQString("Special");
case KNumber::IntegerType:
- return QString("Integer");
+ return TQString("Integer");
case KNumber::FractionType:
- return QString("Fraction");
+ return TQString("Fraction");
case KNumber::FloatType:
- return QString("Float");
+ return TQString("Float");
default:
- return QString("Unknown:") + QString::number(static_cast<int>(arg));
+ return TQString("Unknown:") + TQString::number(static_cast<int>(arg));
}
}
-void checkResult(QString const &string, KNumber const & result,
- QString const & desired_string, KNumber::NumType desired)
+void checkResult(TQString const &string, KNumber const & result,
+ TQString const & desired_string, KNumber::NumType desired)
{
std::cout << "Testing result of: " << string.ascii() <<
" should give " << desired_string.ascii() << " and gives " <<
@@ -47,7 +47,7 @@ void checkResult(QString const &string, KNumber const & result,
exit(1);
}
-void checkTruth(QString const &string, bool computation,
+void checkTruth(TQString const &string, bool computation,
bool desired_result)
{
std::cout << "Testing truth of: " << string.ascii() <<
@@ -64,7 +64,7 @@ void checkTruth(QString const &string, bool computation,
}
-void checkType(QString const &string, KNumber::NumType test_arg,
+void checkType(TQString const &string, KNumber::NumType test_arg,
KNumber::NumType desired)
{
std::cout << "Testing type of: " << string.ascii() << " should give " <<
diff --git a/kcalc/stats.cpp b/kcalc/stats.cpp
index 909bed6..45da5c3 100644
--- a/kcalc/stats.cpp
+++ b/kcalc/stats.cpp
@@ -64,7 +64,7 @@ void KStats::clearLast(void) {
KNumber KStats::sum(void) {
KNumber result = 0;
- QValueVector<KNumber>::iterator p;
+ TQValueVector<KNumber>::iterator p;
for(p = mData.begin(); p != mData.end(); ++p) {
result += *p;
@@ -94,7 +94,7 @@ KNumber KStats::median(void) {
return mData.at(0);
// need to copy mData-list, because sorting afterwards
- QValueVector<KNumber> tmp_mData(mData);
+ TQValueVector<KNumber> tmp_mData(mData);
qHeapSort(tmp_mData);
if( bound & 1) { // odd
@@ -113,7 +113,7 @@ KNumber KStats::std_kernel(void)
{
KNumber result = KNumber::Zero;
KNumber _mean;
- QValueVector<KNumber>::iterator p;
+ TQValueVector<KNumber>::iterator p;
_mean = mean();
@@ -128,7 +128,7 @@ KNumber KStats::std_kernel(void)
KNumber KStats::sum_of_squares() {
KNumber result = 0;
- QValueVector<KNumber>::iterator p;
+ TQValueVector<KNumber>::iterator p;
for(p = mData.begin(); p != mData.end(); ++p) {
result += ((*p) * (*p));
diff --git a/kcalc/stats.h b/kcalc/stats.h
index 48b7ddc..aba11f4 100644
--- a/kcalc/stats.h
+++ b/kcalc/stats.h
@@ -26,7 +26,7 @@
#ifndef KSTATS_H
#define KSTATS_H
-#include <qvaluevector.h>
+#include <tqvaluevector.h>
#include "knumber.h"
class KStats {
@@ -50,7 +50,7 @@ public:
bool error();
private:
- QValueVector<KNumber> mData;
+ TQValueVector<KNumber> mData;
bool error_flag;
};
diff --git a/kcharselect/kcharselectdia.cc b/kcharselect/kcharselectdia.cc
index 43e13b0..fec2f86 100644
--- a/kcharselect/kcharselectdia.cc
+++ b/kcharselect/kcharselectdia.cc
@@ -21,84 +21,84 @@
/******************************************************************/
//==================================================================
-KCharSelectDia::KCharSelectDia(QWidget *parent,const char *name,
- const QChar &_chr,const QString &_font,
+KCharSelectDia::KCharSelectDia(TQWidget *parent,const char *name,
+ const TQChar &_chr,const TQString &_font,
int _tableNum, bool direction)
: KMainWindow(parent,name), vChr(_chr), vFont(_font)
{
- setCaption(QString::null); // Standard caption
+ setCaption(TQString::null); // Standard caption
- QWidget *mainWidget = new QWidget(this);
+ TQWidget *mainWidget = new TQWidget(this);
setCentralWidget(mainWidget);
- grid = new QGridLayout( mainWidget, 3, 4, KDialog::marginHint(), KDialog::spacingHint() );
+ grid = new TQGridLayout( mainWidget, 3, 4, KDialog::marginHint(), KDialog::spacingHint() );
// Add character selection widget from library kdeui
charSelect = new KCharSelect(mainWidget,"",vFont,vChr,_tableNum);
charSelect->resize(charSelect->sizeHint());
- connect(charSelect,SIGNAL(highlighted(const QChar &)),
- SLOT(charChanged(const QChar &)));
- connect(charSelect,SIGNAL(activated(const QChar &)),
- SLOT(add(const QChar &)));
- connect(charSelect,SIGNAL(fontChanged(const QString &)),
- SLOT(fontSelected(const QString &)));
+ connect(charSelect,TQT_SIGNAL(highlighted(const TQChar &)),
+ TQT_SLOT(charChanged(const TQChar &)));
+ connect(charSelect,TQT_SIGNAL(activated(const TQChar &)),
+ TQT_SLOT(add(const TQChar &)));
+ connect(charSelect,TQT_SIGNAL(fontChanged(const TQString &)),
+ TQT_SLOT(fontSelected(const TQString &)));
grid->addMultiCellWidget(charSelect, 0, 0, 0, 3);
// Build line editor
- lined = new QLineEdit(mainWidget);
+ lined = new TQLineEdit(mainWidget);
lined->resize(lined->sizeHint());
- QFont font = lined->font();
+ TQFont font = lined->font();
font.setFamily( vFont );
lined->setFont( font );
- connect(lined,SIGNAL(textChanged(const QString &)),
- SLOT(lineEditChanged()));
+ connect(lined,TQT_SIGNAL(textChanged(const TQString &)),
+ TQT_SLOT(lineEditChanged()));
grid->addMultiCellWidget(lined, 1, 1, 0, 3);
// Build some buttons
bHelp = new KPushButton( KStdGuiItem::help(), mainWidget );
- connect(bHelp,SIGNAL(clicked()),this,SLOT(help()));
+ connect(bHelp,TQT_SIGNAL(clicked()),this,TQT_SLOT(help()));
bHelp->setFixedSize( bHelp->sizeHint() );
grid->addWidget( bHelp, 2, 0 );
- QSpacerItem *space = new QSpacerItem( 20, 20, QSizePolicy::Expanding );
+ TQSpacerItem *space = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding );
grid->addItem( space, 2, 1 );
bClear = new KPushButton( KStdGuiItem::clear(), mainWidget );
- connect(bClear,SIGNAL(clicked()),this,SLOT(clear()));
+ connect(bClear,TQT_SIGNAL(clicked()),this,TQT_SLOT(clear()));
bClear->setFixedSize( bClear->sizeHint() );
grid->addWidget( bClear, 2, 2 );
bClip = new KPushButton( KGuiItem( i18n( "&To Clipboard" ),
"editcopy" ), mainWidget );
bClip->setFixedSize( bClip->sizeHint() );
- connect(bClip,SIGNAL(clicked()),this,SLOT(toClip()));
+ connect(bClip,TQT_SIGNAL(clicked()),this,TQT_SLOT(toClip()));
grid->addWidget( bClip, 2, 3 );
// Build menu
- KStdAction::quit( this, SLOT(_exit()), actionCollection() );
+ KStdAction::quit( this, TQT_SLOT(_exit()), actionCollection() );
new KAction(i18n("&To Clipboard"), "editcopy",
- KStdAccel::shortcut(KStdAccel::Copy), this, SLOT(toClip()), actionCollection(), "copy_clip" );
+ KStdAccel::shortcut(KStdAccel::Copy), this, TQT_SLOT(toClip()), actionCollection(), "copy_clip" );
(void)new KAction(i18n("To Clipboard &UTF-8"), 0, this,
- SLOT(toClipUTF8()), actionCollection(), "copy_utf_8" );
+ TQT_SLOT(toClipUTF8()), actionCollection(), "copy_utf_8" );
(void)new KAction(i18n("To Clipboard &HTML"), 0, this,
- SLOT(toClipHTML()), actionCollection(), "copy_html" );
+ TQT_SLOT(toClipHTML()), actionCollection(), "copy_html" );
new KAction(i18n("&From Clipboard"), "editpaste",
- KStdAccel::shortcut(KStdAccel::Paste), this, SLOT(fromClip()), actionCollection(), "from_clip" );
+ KStdAccel::shortcut(KStdAccel::Paste), this, TQT_SLOT(fromClip()), actionCollection(), "from_clip" );
(void)new KAction(i18n("From Clipboard UTF-8"), 0, this,
- SLOT(fromClipUTF8()), actionCollection(), "from_clip_utf8" );
+ TQT_SLOT(fromClipUTF8()), actionCollection(), "from_clip_utf8" );
i18n("From Clipboard HTML"); // Intended for future use
- KStdAction::clear(this, SLOT(clear()), actionCollection(), "clear");
+ KStdAction::clear(this, TQT_SLOT(clear()), actionCollection(), "clear");
(void)new KAction(i18n("&Flip"), 0, this,
- SLOT(flipText()), actionCollection(), "flip" );
+ TQT_SLOT(flipText()), actionCollection(), "flip" );
(void)new KAction(i18n("&Alignment"), 0, this,
- SLOT(toggleEntryDirection()), actionCollection(), "alignment" );
+ TQT_SLOT(toggleEntryDirection()), actionCollection(), "alignment" );
charSelect->setFocus();
@@ -112,17 +112,17 @@ KCharSelectDia::KCharSelectDia(QWidget *parent,const char *name,
}
//==================================================================
-void KCharSelectDia::charChanged(const QChar &_chr)
+void KCharSelectDia::charChanged(const TQChar &_chr)
{
vChr = _chr;
}
//==================================================================
-void KCharSelectDia::fontSelected(const QString &_font)
+void KCharSelectDia::fontSelected(const TQString &_font)
{
charSelect->setFont(_font);
- QFont font = lined->font();
+ TQFont font = lined->font();
font.setFamily( _font );
lined->setFont( font );
@@ -130,9 +130,9 @@ void KCharSelectDia::fontSelected(const QString &_font)
}
//==================================================================
-void KCharSelectDia::add(const QChar &_chr)
+void KCharSelectDia::add(const TQChar &_chr)
{
- QString str;
+ TQString str;
int cursorPos;
charChanged(_chr);
@@ -148,7 +148,7 @@ void KCharSelectDia::add(const QChar &_chr)
//==================================================================
void KCharSelectDia::toClip()
{
- QClipboard *cb = QApplication::clipboard();
+ QClipboard *cb = TQApplication::clipboard();
cb->setSelectionMode( true );
cb->setText(lined->text());
cb->setSelectionMode( false );
@@ -161,8 +161,8 @@ void KCharSelectDia::toClip()
//
void KCharSelectDia::toClipUTF8()
{
- QClipboard *cb = QApplication::clipboard();
- QString str = lined->text();
+ QClipboard *cb = TQApplication::clipboard();
+ TQString str = lined->text();
cb->setText(str.utf8());
}
@@ -174,11 +174,11 @@ void KCharSelectDia::toClipUTF8()
//
void KCharSelectDia::toClipHTML()
{
- QClipboard *cb = QApplication::clipboard();
- QString input;
- QString html;
- QString tempstring;
- QChar tempchar;
+ QClipboard *cb = TQApplication::clipboard();
+ TQString input;
+ TQString html;
+ TQString tempstring;
+ TQChar tempchar;
uint i;
input = lined->text();
@@ -201,7 +201,7 @@ void KCharSelectDia::toClipHTML()
//
void KCharSelectDia::fromClip()
{
- QClipboard *cb = QApplication::clipboard();
+ QClipboard *cb = TQApplication::clipboard();
lined->setText( cb->text() );
}
@@ -213,8 +213,8 @@ void KCharSelectDia::fromClip()
//
void KCharSelectDia::fromClipUTF8()
{
- QClipboard *cb = QApplication::clipboard();
- QString str = cb->text();
+ QClipboard *cb = TQApplication::clipboard();
+ TQString str = cb->text();
lined->setText( str.fromUtf8( str.latin1() ) );
}
@@ -227,8 +227,8 @@ void KCharSelectDia::fromClipUTF8()
//
void KCharSelectDia::flipText()
{
- QString input;
- QString output;
+ TQString input;
+ TQString output;
uint i;
input = lined->text();
diff --git a/kcharselect/kcharselectdia.h b/kcharselect/kcharselectdia.h
index a3a0ea1..6427c40 100644
--- a/kcharselect/kcharselectdia.h
+++ b/kcharselect/kcharselectdia.h
@@ -8,9 +8,9 @@
#define kcharselectdia_h
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qclipboard.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqclipboard.h>
#include <kpushbutton.h>
#include <kcharselect.h>
@@ -27,33 +27,33 @@ class KCharSelectDia : public KMainWindow
Q_OBJECT
public:
- KCharSelectDia(QWidget *parent,const char *name,const QChar &_chr,const QString &_font,int _tableNum, bool direction);
+ KCharSelectDia(TQWidget *parent,const char *name,const TQChar &_chr,const TQString &_font,int _tableNum, bool direction);
- static bool selectChar(QString &_font,QChar &_chr,int _tableNum);
+ static bool selectChar(TQString &_font,TQChar &_chr,int _tableNum);
int chr() { return vChr; }
- QString font() { return vFont; }
+ TQString font() { return vFont; }
protected:
- void closeEvent(QCloseEvent *) { _exit(); }
+ void closeEvent(TQCloseEvent *) { _exit(); }
- QGridLayout *grid;
+ TQGridLayout *grid;
KCharSelect *charSelect;
- QLineEdit *lined;
+ TQLineEdit *lined;
KPushButton *bClip,*bClear;
KPushButton *bHelp;
- QChar vChr;
- QString vFont;
+ TQChar vChr;
+ TQString vFont;
int pointSize;
bool entryDirection;
protected slots:
- void charChanged(const QChar &_chr);
- void fontSelected(const QString &_font);
+ void charChanged(const TQChar &_chr);
+ void fontSelected(const TQString &_font);
void add()
{ add(vChr); }
- void add(const QChar &_chr);
+ void add(const TQChar &_chr);
void toClip();
void toClipUTF8();
void toClipHTML();
diff --git a/kcharselect/main.cc b/kcharselect/main.cc
index b3477cc..c3cdd4a 100644
--- a/kcharselect/main.cc
+++ b/kcharselect/main.cc
@@ -34,8 +34,8 @@ int main(int argc, char **argv)
KConfig *config = kapp->config();
config->setGroup("General");
- QString font(config->readEntry("selectedFont", KGlobalSettings::generalFont().family()));
- QChar c = QChar(static_cast<unsigned short>(config->readNumEntry("char",33)));
+ TQString font(config->readEntry("selectedFont", KGlobalSettings::generalFont().family()));
+ TQChar c = TQChar(static_cast<unsigned short>(config->readNumEntry("char",33)));
int tn = config->readNumEntry("table",0);
bool direction = config->readNumEntry("entryDirection",0);
diff --git a/kdelirc/irkick/irkick.cpp b/kdelirc/irkick/irkick.cpp
index 31ec93c..fdcfa3a 100644
--- a/kdelirc/irkick/irkick.cpp
+++ b/kdelirc/irkick/irkick.cpp
@@ -7,12 +7,12 @@
// This program is free software.
-#include <qwidget.h>
-#include <qdialog.h>
-#include <qtooltip.h>
-#include <qregexp.h>
-#include <qtimer.h>
-#include <qevent.h>
+#include <tqwidget.h>
+#include <tqdialog.h>
+#include <tqtooltip.h>
+#include <tqregexp.h>
+#include <tqtimer.h>
+#include <tqevent.h>
#include <kdeversion.h>
#include <kapplication.h>
@@ -42,12 +42,12 @@
#include "profileserver.h"
#include "irkick.h"
-void IRKTrayIcon::mousePressEvent(QMouseEvent *e)
+void IRKTrayIcon::mousePressEvent(TQMouseEvent *e)
{
- KSystemTray::mousePressEvent(new QMouseEvent(QEvent::MouseButtonPress, e->pos(), e->globalPos(), e->button() == LeftButton ? RightButton : e->button(), e->state()));
+ KSystemTray::mousePressEvent(new TQMouseEvent(TQEvent::MouseButtonPress, e->pos(), e->globalPos(), e->button() == LeftButton ? RightButton : e->button(), e->state()));
}
-IRKick::IRKick(const QCString &obj) : QObject(), DCOPObject(obj), npApp(QString::null)
+IRKick::IRKick(const TQCString &obj) : TQObject(), DCOPObject(obj), npApp(TQString::null)
{
kapp->dcopClient()->setDefaultObject(obj);
theClient = new KLircClient();
@@ -55,28 +55,28 @@ IRKick::IRKick(const QCString &obj) : QObject(), DCOPObject(obj), npApp(QString:
theTrayIcon = new IRKTrayIcon();
if(theClient->isConnected())
{ theTrayIcon->setPixmap(SmallIcon("irkick"));
- QToolTip::add(theTrayIcon, i18n("KDE Lirc Server: Ready."));
+ TQToolTip::add(theTrayIcon, i18n("KDE Lirc Server: Ready."));
}
else
{ theTrayIcon->setPixmap(SmallIcon("irkickoff"));
- QToolTip::add(theTrayIcon, i18n("KDE Lirc Server: No infra-red remote controls found."));
- QTimer::singleShot(10000, this, SLOT(checkLirc()));
+ TQToolTip::add(theTrayIcon, i18n("KDE Lirc Server: No infra-red remote controls found."));
+ TQTimer::singleShot(10000, this, TQT_SLOT(checkLirc()));
}
- theFlashOff = new QTimer(theTrayIcon);
- connect(theFlashOff, SIGNAL(timeout()), SLOT(flashOff()));
+ theFlashOff = new TQTimer(theTrayIcon);
+ connect(theFlashOff, TQT_SIGNAL(timeout()), TQT_SLOT(flashOff()));
theResetCount = 0;
slotReloadConfiguration();
- connect(theClient, SIGNAL(connectionClosed()), this, SLOT(slotClosed()));
- connect(theClient, SIGNAL(remotesRead()), this, SLOT(resetModes()));
- connect(theClient, SIGNAL(commandReceived(const QString &, const QString &, int)), this, SLOT(gotMessage(const QString &, const QString &, int)));
+ connect(theClient, TQT_SIGNAL(connectionClosed()), this, TQT_SLOT(slotClosed()));
+ connect(theClient, TQT_SIGNAL(remotesRead()), this, TQT_SLOT(resetModes()));
+ connect(theClient, TQT_SIGNAL(commandReceived(const TQString &, const TQString &, int)), this, TQT_SLOT(gotMessage(const TQString &, const TQString &, int)));
theTrayIcon->contextMenu()->changeTitle(0, "IRKick");
- theTrayIcon->contextMenu()->insertItem(SmallIcon( "configure" ), i18n("&Configure..."), this, SLOT(slotConfigure()));
+ theTrayIcon->contextMenu()->insertItem(SmallIcon( "configure" ), i18n("&Configure..."), this, TQT_SLOT(slotConfigure()));
theTrayIcon->contextMenu()->insertSeparator();
theTrayIcon->contextMenu()->insertItem(SmallIcon( "help" ), KStdGuiItem::help().text(), (new KHelpMenu(theTrayIcon, KGlobal::instance()->aboutData()))->menu());
- theTrayIcon->actionCollection()->action("file_quit")->disconnect(SIGNAL(activated()));
- connect(theTrayIcon->actionCollection()->action("file_quit"), SIGNAL(activated()), SLOT(doQuit()));
+ theTrayIcon->actionCollection()->action("file_quit")->disconnect(TQT_SIGNAL(activated()));
+ connect(theTrayIcon->actionCollection()->action("file_quit"), TQT_SIGNAL(activated()), TQT_SLOT(doQuit()));
theTrayIcon->show();
}
@@ -84,7 +84,7 @@ IRKick::IRKick(const QCString &obj) : QObject(), DCOPObject(obj), npApp(QString:
IRKick::~IRKick()
{
delete theTrayIcon;
- for(QMap<QString,IRKTrayIcon *>::iterator i = currentModeIcons.begin(); i != currentModeIcons.end(); ++i)
+ for(TQMap<TQString,IRKTrayIcon *>::iterator i = currentModeIcons.begin(); i != currentModeIcons.end(); ++i)
if(*i) delete *i;
}
@@ -92,7 +92,7 @@ void IRKick::slotClosed()
{
theTrayIcon->setPixmap(SmallIcon("irkickoff"));
KPassivePopup::message("IRKick", i18n("The infrared system has severed its connection. Remote controls are no longer available."), SmallIcon("irkick"), theTrayIcon);
- QTimer::singleShot(1000, this, SLOT(checkLirc()));
+ TQTimer::singleShot(1000, this, TQT_SLOT(checkLirc()));
}
void IRKick::checkLirc()
@@ -103,7 +103,7 @@ void IRKick::checkLirc()
theTrayIcon->setPixmap(SmallIcon("irkick"));
}
else
- QTimer::singleShot(10000, this, SLOT(checkLirc()));
+ TQTimer::singleShot(10000, this, TQT_SLOT(checkLirc()));
}
void IRKick::flashOff()
@@ -130,8 +130,8 @@ void IRKick::resetModes()
if(!theResetCount)
allModes.generateNulls(theClient->remotes());
- QStringList remotes = theClient->remotes();
- for(QStringList::iterator i = remotes.begin(); i != remotes.end(); ++i)
+ TQStringList remotes = theClient->remotes();
+ for(TQStringList::iterator i = remotes.begin(); i != remotes.end(); ++i)
{ currentModes[*i] = allModes.getDefault(*i).name();
if(theResetCount && currentModeIcons[*i]) delete currentModeIcons[*i];
currentModeIcons[*i] = 0;
@@ -157,7 +157,7 @@ void IRKick::slotConfigure()
void IRKick::updateModeIcons()
{
- for(QMap<QString,QString>::iterator i = currentModes.begin(); i != currentModes.end(); ++i)
+ for(TQMap<TQString,TQString>::iterator i = currentModes.begin(); i != currentModes.end(); ++i)
{ Mode mode = allModes.getMode(i.key(), i.data());
if(mode.iconFile().isNull() || mode.iconFile().isEmpty())
{ if(currentModeIcons[i.key()])
@@ -173,12 +173,12 @@ void IRKick::updateModeIcons()
currentModeIcons[i.key()]->actionCollection()->action("file_quit")->setEnabled(false);
}
currentModeIcons[i.key()]->setPixmap(KIconLoader().loadIcon(mode.iconFile(), KIcon::Panel));
- QToolTip::add(currentModeIcons[i.key()], mode.remoteName() + ": <b>" + mode.name() + "</b>");
+ TQToolTip::add(currentModeIcons[i.key()], mode.remoteName() + ": <b>" + mode.name() + "</b>");
}
}
}
-bool IRKick::getPrograms(const IRAction &action, QStringList &programs)
+bool IRKick::getPrograms(const IRAction &action, TQStringList &programs)
{
DCOPClient *theDC = KApplication::dcopClient();
programs.clear();
@@ -189,23 +189,23 @@ bool IRKick::getPrograms(const IRAction &action, QStringList &programs)
}
else
{
- QRegExp r = QRegExp("^" + action.program() + "-(\\d+)$");
+ TQRegExp r = TQRegExp("^" + action.program() + "-(\\d+)$");
// find all instances...
QCStringList buf = theDC->registeredApplications();
for(QCStringList::iterator i = buf.begin(); i != buf.end(); ++i)
{
- QString program = QString::fromUtf8(*i);
+ TQString program = TQString::fromUtf8(*i);
if(program.contains(r))
programs += program;
}
if(programs.size() > 1 && action.ifMulti() == IM_DONTSEND)
return false;
else if(programs.size() > 1 && action.ifMulti() == IM_SENDTOTOP)
- { QValueList<WId> s = KWinModule().stackingOrder();
+ { TQValueList<WId> s = KWinModule().stackingOrder();
// go through all the (ordered) window pids
- for(QValueList<WId>::iterator i = s.fromLast(); i != s.end(); i--)
+ for(TQValueList<WId>::iterator i = s.fromLast(); i != s.end(); i--)
{ int p = KWin::info(*i).pid;
- QString id = action.program() + "-" + QString().setNum(p);
+ TQString id = action.program() + "-" + TQString().setNum(p);
if(programs.contains(id))
{ programs.clear();
programs += id;
@@ -215,11 +215,11 @@ bool IRKick::getPrograms(const IRAction &action, QStringList &programs)
while(programs.size() > 1) programs.remove(programs.begin());
}
else if(programs.size() > 1 && action.ifMulti() == IM_SENDTOBOTTOM)
- { QValueList<WId> s = KWinModule().stackingOrder();
+ { TQValueList<WId> s = KWinModule().stackingOrder();
// go through all the (ordered) window pids
- for(QValueList<WId>::iterator i = s.begin(); i != s.end(); ++i)
+ for(TQValueList<WId>::iterator i = s.begin(); i != s.end(); ++i)
{ int p = KWin::info(*i).pid;
- QString id = action.program() + "-" + QString().setNum(p);
+ TQString id = action.program() + "-" + TQString().setNum(p);
if(programs.contains(id))
{ programs.clear();
programs += id;
@@ -235,13 +235,13 @@ bool IRKick::getPrograms(const IRAction &action, QStringList &programs)
void IRKick::executeAction(const IRAction &action)
{
DCOPClient *theDC = KApplication::dcopClient();
- QStringList programs;
+ TQStringList programs;
if(!getPrograms(action, programs)) return;
// if programs.size()==0 here, then the app is definately not running.
if(action.autoStart() && !programs.size())
- { QString sname = ProfileServer::profileServer()->getServiceName(action.program());
+ { TQString sname = ProfileServer::profileServer()->getServiceName(action.program());
if(!sname.isNull())
{
KPassivePopup::message("IRKick", i18n("Starting <b>%1</b>...").arg(action.application()), SmallIcon("irkick"), theTrayIcon);
@@ -252,20 +252,20 @@ void IRKick::executeAction(const IRAction &action)
if(!getPrograms(action, programs)) return;
- for(QStringList::iterator i = programs.begin(); i != programs.end(); ++i)
- { const QString &program = *i;
+ for(TQStringList::iterator i = programs.begin(); i != programs.end(); ++i)
+ { const TQString &program = *i;
if(theDC->isApplicationRegistered(program.utf8()))
- { QByteArray data; QDataStream arg(data, IO_WriteOnly);
+ { TQByteArray data; TQDataStream arg(data, IO_WriteOnly);
kdDebug() << "Sending data (" << program << ", " << action.object() << ", " << action.method().prototypeNR() << endl;
for(Arguments::const_iterator j = action.arguments().begin(); j != action.arguments().end(); ++j)
{ kdDebug() << "Got argument..." << endl;
switch((*j).type())
- { case QVariant::Int: arg << (*j).toInt(); break;
- case QVariant::CString: arg << (*j).toCString(); break;
- case QVariant::StringList: arg << (*j).toStringList(); break;
- case QVariant::UInt: arg << (*j).toUInt(); break;
- case QVariant::Bool: arg << (*j).toBool(); break;
- case QVariant::Double: arg << (*j).toDouble(); break;
+ { case TQVariant::Int: arg << (*j).toInt(); break;
+ case TQVariant::CString: arg << (*j).toCString(); break;
+ case TQVariant::StringList: arg << (*j).toStringList(); break;
+ case TQVariant::UInt: arg << (*j).toUInt(); break;
+ case TQVariant::Bool: arg << (*j).toBool(); break;
+ case TQVariant::Double: arg << (*j).toDouble(); break;
default: arg << (*j).toString(); break;
}
}
@@ -274,17 +274,17 @@ void IRKick::executeAction(const IRAction &action)
}
}
-void IRKick::gotMessage(const QString &theRemote, const QString &theButton, int theRepeatCounter)
+void IRKick::gotMessage(const TQString &theRemote, const TQString &theButton, int theRepeatCounter)
{
kdDebug() << "Got message: " << theRemote << ": " << theButton << " (" << theRepeatCounter << ")" << endl;
theTrayIcon->setPixmap(SmallIcon("irkickflash"));
theFlashOff->start(200, true);
if(!npApp.isNull())
{
- QString theApp = npApp;
- npApp = QString::null;
+ TQString theApp = npApp;
+ npApp = TQString::null;
// send notifier by DCOP to npApp/npModule/npMethod(theRemote, theButton);
- QByteArray data; QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data; TQDataStream arg(data, IO_WriteOnly);
arg << theRemote << theButton;
KApplication::dcopClient()->send(theApp.utf8(), npModule.utf8(), npMethod.utf8(), data);
}
@@ -321,7 +321,7 @@ void IRKick::gotMessage(const QString &theRemote, const QString &theButton, int
}
}
-void IRKick::stealNextPress(QString app, QString module, QString method)
+void IRKick::stealNextPress(TQString app, TQString module, TQString method)
{
npApp = app;
npModule = module;
@@ -330,7 +330,7 @@ void IRKick::stealNextPress(QString app, QString module, QString method)
void IRKick::dontStealNextPress()
{
- npApp = QString::null;
+ npApp = TQString::null;
}
#include "irkick.moc"
diff --git a/kdelirc/irkick/irkick.h b/kdelirc/irkick/irkick.h
index 875d039..bdcb57e 100644
--- a/kdelirc/irkick/irkick.h
+++ b/kdelirc/irkick/irkick.h
@@ -14,7 +14,7 @@
#ifndef __IRKICK_H
#define __IRKICK_H
-#include <qstring.h>
+#include <tqstring.h>
#include <ksystemtray.h>
#include <kdedmodule.h>
@@ -30,30 +30,30 @@ class QMouseEvent;
class IRKTrayIcon: public KSystemTray
{
- void mousePressEvent(QMouseEvent *e);
+ void mousePressEvent(TQMouseEvent *e);
public:
KPopupMenu* contextMenu() const { return KSystemTray::contextMenu(); }
KActionCollection* actionCollection() { return KSystemTray::actionCollection(); }
- IRKTrayIcon(QWidget *parent = 0, const char *name = 0): KSystemTray(parent, name) {}
+ IRKTrayIcon(TQWidget *parent = 0, const char *name = 0): KSystemTray(parent, name) {}
};
-class IRKick: public QObject, public DCOPObject
+class IRKick: public TQObject, public DCOPObject
{
Q_OBJECT
K_DCOP
- QString npApp, npModule, npMethod;
- QMap<QString, QString> currentModes;
- QMap<QString, IRKTrayIcon *> currentModeIcons;
+ TQString npApp, npModule, npMethod;
+ TQMap<TQString, TQString> currentModes;
+ TQMap<TQString, IRKTrayIcon *> currentModeIcons;
IRActions allActions;
int theResetCount;
Modes allModes;
IRKTrayIcon *theTrayIcon;
KAboutData *aboutData;
- QTimer *theFlashOff;
+ TQTimer *theFlashOff;
void updateModeIcons();
@@ -82,23 +82,23 @@ k_dcop:
*
* @returns said list.
*/
- virtual const QStringList remotes() { return theClient->remotes(); }
+ virtual const TQStringList remotes() { return theClient->remotes(); }
/**
* Retrieve list of buttons of a praticular remote control.
*
* @returns said list.
*/
- virtual const QStringList buttons(QString theRemote) { return theClient->buttons(theRemote); }
+ virtual const TQStringList buttons(TQString theRemote) { return theClient->buttons(theRemote); }
/**
* Sends next keypress to given application by DCOP.
*
* @param The receiving application.
* @param The receiving application module.
- * @param The method name. Must have two QString parameters.
+ * @param The method name. Must have two TQString parameters.
*/
- virtual void stealNextPress(QString app, QString module, QString method);
+ virtual void stealNextPress(TQString app, TQString module, TQString method);
/**
* Cancels the proceedings of the previous stealNextPress call, if any.
@@ -111,7 +111,7 @@ k_dcop:
virtual void reloadConfiguration() { slotReloadConfiguration(); }
private slots:
- void gotMessage(const QString &theRemote, const QString &theButton, int theRepeatCounter);
+ void gotMessage(const TQString &theRemote, const TQString &theButton, int theRepeatCounter);
void resetModes();
void doQuit();
void flashOff();
@@ -122,10 +122,10 @@ private slots:
void slotClosed();
private:
void executeAction(const IRAction &action);
- bool getPrograms(const IRAction &action, QStringList &populous);
+ bool getPrograms(const IRAction &action, TQStringList &populous);
public:
- IRKick(const QCString &obj);
+ IRKick(const TQCString &obj);
virtual ~IRKick();
};
diff --git a/kdelirc/irkick/kdedmodule_stub.h b/kdelirc/irkick/kdedmodule_stub.h
index 5f248f8..86f4640 100644
--- a/kdelirc/irkick/kdedmodule_stub.h
+++ b/kdelirc/irkick/kdedmodule_stub.h
@@ -14,7 +14,7 @@
#define __KDEDMODULE_STUB__
#include <dcopstub.h>
-#include <qobject.h>
+#include <tqobject.h>
#include <dcopobject.h>
#include <dcopref.h>
#include <ksharedptr.h>
@@ -23,8 +23,8 @@
class KDEDModule_stub : virtual public DCOPStub
{
public:
- KDEDModule_stub( const QCString& app, const QCString& id );
- KDEDModule_stub( DCOPClient* client, const QCString& app, const QCString& id );
+ KDEDModule_stub( const TQCString& app, const TQCString& id );
+ KDEDModule_stub( DCOPClient* client, const TQCString& app, const TQCString& id );
explicit KDEDModule_stub( const DCOPRef& ref );
protected:
KDEDModule_stub() : DCOPStub( never_use ) {};
diff --git a/kdelirc/irkick/klircclient.cpp b/kdelirc/irkick/klircclient.cpp
index 2876079..897d8fc 100644
--- a/kdelirc/irkick/klircclient.cpp
+++ b/kdelirc/irkick/klircclient.cpp
@@ -19,12 +19,12 @@
#include <sys/socket.h>
#include <errno.h>
-#include <qwidget.h>
-#include <qdialog.h>
-#include <qtooltip.h>
-#include <qsocket.h>
-#include <qsocketnotifier.h>
-#include <qfile.h>
+#include <tqwidget.h>
+#include <tqdialog.h>
+#include <tqtooltip.h>
+#include <tqsocket.h>
+#include <tqsocketnotifier.h>
+#include <tqfile.h>
#include <kapplication.h>
#include <ksystemtray.h>
@@ -43,7 +43,7 @@
#include "klircclient.h"
-KLircClient::KLircClient(QWidget *parent, const char *name) : QObject(parent, name), theSocket(0), listIsUpToDate(false)
+KLircClient::KLircClient(TQWidget *parent, const char *name) : TQObject(parent, name), theSocket(0), listIsUpToDate(false)
{
connectToLirc();
}
@@ -68,8 +68,8 @@ bool KLircClient::connectToLirc()
theSocket = new QSocket;
theSocket->setSocket(sock);
- connect(theSocket, SIGNAL(readyRead()), SLOT(slotRead()));
- connect(theSocket, SIGNAL(connectionClosed()), SLOT(slotClosed()));
+ connect(theSocket, TQT_SIGNAL(readyRead()), TQT_SLOT(slotRead()));
+ connect(theSocket, TQT_SIGNAL(connectionClosed()), TQT_SLOT(slotClosed()));
updateRemotes();
return true;
}
@@ -87,16 +87,16 @@ void KLircClient::slotClosed()
emit connectionClosed();
}
-const QStringList KLircClient::remotes() const
+const TQStringList KLircClient::remotes() const
{
- QStringList remotes;
- for(QMap<QString, QStringList>::ConstIterator i = theRemotes.begin(); i != theRemotes.end(); ++i)
+ TQStringList remotes;
+ for(TQMap<TQString, TQStringList>::ConstIterator i = theRemotes.begin(); i != theRemotes.end(); ++i)
remotes.append(i.key());
remotes.sort();
return remotes;
}
-const QStringList KLircClient::buttons(const QString &theRemote) const
+const TQStringList KLircClient::buttons(const TQString &theRemote) const
{
return theRemotes[theRemote];
}
@@ -105,7 +105,7 @@ void KLircClient::slotRead()
{
while (theSocket->bytesAvailable())
{
- QString line = readLine();
+ TQString line = readLine();
if (line == "BEGIN")
{
// BEGIN
@@ -133,7 +133,7 @@ void KLircClient::slotRead()
while (!line.isEmpty() && line != "END");
return;
}
- QStringList remotes;
+ TQStringList remotes;
int count = readLine().toInt();
for (int i = 0; i < count; ++i)
remotes.append(readLine());
@@ -141,7 +141,7 @@ void KLircClient::slotRead()
while (!line.isEmpty() && line != "END");
if (line.isEmpty())
return; // abort on corrupt data
- for (QStringList::ConstIterator it = remotes.begin(); it != remotes.end(); ++it)
+ for (TQStringList::ConstIterator it = remotes.begin(); it != remotes.end(); ++it)
sendCommand("LIST " + *it);
return;
}
@@ -154,13 +154,13 @@ void KLircClient::slotRead()
while (!line.isEmpty() && line != "END");
return;
}
- QString remote = line.mid(5);
- QStringList buttons;
+ TQString remote = line.mid(5);
+ TQStringList buttons;
int count = readLine().toInt();
for (int i = 0; i < count; ++i)
{
// <code> <name>
- QString btn = readLine().mid(17);
+ TQString btn = readLine().mid(17);
if(btn.isNull()) break;
if(btn.startsWith("'") && btn.endsWith("'"))
btn = btn.mid(1, btn.length() - 2);
@@ -186,7 +186,7 @@ void KLircClient::slotRead()
pos = line.find(' ');
if (pos < 0) return;
- QString btn = line.left(pos);
+ TQString btn = line.left(pos);
if(btn.startsWith("'") && btn.endsWith("'"))
btn = btn.mid(1, btn.length() - 2);
line.remove(0, pos + 1);
@@ -206,7 +206,7 @@ void KLircClient::updateRemotes()
bool KLircClient::isConnected() const
{
if(!theSocket) return false;
- return theSocket->state() == QSocket::Connected;
+ return theSocket->state() == TQSocket::Connected;
}
bool KLircClient::haveFullList() const
@@ -214,7 +214,7 @@ bool KLircClient::haveFullList() const
return listIsUpToDate;
}
-const QString KLircClient::readLine()
+const TQString KLircClient::readLine()
{
if (!theSocket->canReadLine())
{ bool timeout;
@@ -223,18 +223,18 @@ const QString KLircClient::readLine()
theSocket->waitForMore(500, &timeout);
if (timeout)
{ // something's wrong. there ain't no line comin!
- return QString::null;
+ return TQString::null;
}
}
- QString line = theSocket->readLine();
+ TQString line = theSocket->readLine();
line.truncate(line.length() - 1);
return line;
}
-void KLircClient::sendCommand(const QString &command)
+void KLircClient::sendCommand(const TQString &command)
{
- QString cmd = command + "\n";
- theSocket->writeBlock(QFile::encodeName( cmd ), cmd.length());
+ TQString cmd = command + "\n";
+ theSocket->writeBlock(TQFile::encodeName( cmd ), cmd.length());
}
diff --git a/kdelirc/irkick/klircclient.h b/kdelirc/irkick/klircclient.h
index ea5fa75..30f5fe5 100644
--- a/kdelirc/irkick/klircclient.h
+++ b/kdelirc/irkick/klircclient.h
@@ -13,10 +13,10 @@
#ifndef KLIRCCLIENT_H
#define KLIRCCLIENT_H
-#include <qobject.h>
-#include <qmap.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqobject.h>
+#include <tqmap.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
class QSocket;
class QSocketNotifier;
@@ -32,14 +32,14 @@ class KLircClient: public QObject
private:
struct lirc_config *theConfig;
- QSocket *theSocket;
- QSocketNotifier *theNotifier;
- QMap<QString, QStringList> theRemotes;
+ TQSocket *theSocket;
+ TQSocketNotifier *theNotifier;
+ TQMap<TQString, TQStringList> theRemotes;
bool listIsUpToDate;
void updateRemotes();
- void sendCommand(const QString &command);
- const QString readLine();
+ void sendCommand(const TQString &command);
+ const TQString readLine();
private slots:
void slotRead();
@@ -62,7 +62,7 @@ signals:
* The repeat counter starts with 0 and increases
* every time this signal is emitted.
*/
- void commandReceived(const QString &remote, const QString &button, int repeatCounter);
+ void commandReceived(const TQString &remote, const TQString &button, int repeatCounter);
/**
* Emitted when the Lirc connection is closed.
@@ -91,14 +91,14 @@ public:
*
* @returns said list.
*/
- const QStringList remotes() const;
+ const TQStringList remotes() const;
/**
* Retrieve list of buttons of a praticular remote control.
*
* @returns said list.
*/
- const QStringList buttons(const QString &theRemote) const;
+ const TQStringList buttons(const TQString &theRemote) const;
/**
* Connects to lirc.
@@ -107,7 +107,7 @@ public:
*/
bool connectToLirc();
- KLircClient(QWidget *parent = 0, const char *name = 0);
+ KLircClient(TQWidget *parent = 0, const char *name = 0);
~KLircClient();
};
diff --git a/kdelirc/kcmlirc/addaction.cpp b/kdelirc/kcmlirc/addaction.cpp
index 1a3ecef..f2d6ad3 100644
--- a/kdelirc/kcmlirc/addaction.cpp
+++ b/kdelirc/kcmlirc/addaction.cpp
@@ -8,12 +8,12 @@
* (at your option) any later version. *
***************************************************************************/
-#include <qregexp.h>
-#include <qlabel.h>
-#include <qradiobutton.h>
-#include <qwidgetstack.h>
-#include <qcheckbox.h>
-#include <qbuttongroup.h>
+#include <tqregexp.h>
+#include <tqlabel.h>
+#include <tqradiobutton.h>
+#include <tqwidgetstack.h>
+#include <tqcheckbox.h>
+#include <tqbuttongroup.h>
#include <kdebug.h>
#include <klineedit.h>
@@ -32,10 +32,10 @@
#include "profileserver.h"
#include "remoteserver.h"
-AddAction::AddAction(QWidget *parent, const char *name, const Mode &mode): AddActionBase(parent, name), theMode(mode)
+AddAction::AddAction(TQWidget *parent, const char *name, const Mode &mode): AddActionBase(parent, name), theMode(mode)
{
- connect(this, SIGNAL( selected(const QString &) ), SLOT( updateForPageChange() ));
- connect(this, SIGNAL( selected(const QString &) ), SLOT( slotCorrectPage() ));
+ connect(this, TQT_SIGNAL( selected(const TQString &) ), TQT_SLOT( updateForPageChange() ));
+ connect(this, TQT_SIGNAL( selected(const TQString &) ), TQT_SLOT( slotCorrectPage() ));
curPage = 0;
updateProfiles();
updateButtons();
@@ -64,23 +64,23 @@ void AddAction::slotCorrectPage()
curPage = indexOf(currentPage());
if(curPage == 2 && theUseProfile->isChecked())
- showPage(((QWizard *)this)->page(lastPage > 1 ? 1 : 3));
+ showPage(((TQWizard *)this)->page(lastPage > 1 ? 1 : 3));
if((curPage == 2 || curPage == 5) && theChangeMode->isChecked())
- showPage(((QWizard *)this)->page(lastPage > 1 ? 1 : 6));
+ showPage(((TQWizard *)this)->page(lastPage > 1 ? 1 : 6));
if(curPage == 3 && theUseDCOP->isChecked())
- showPage(((QWizard *)this)->page(lastPage == 4 ? 2 : 4));
+ showPage(((TQWizard *)this)->page(lastPage == 4 ? 2 : 4));
if(curPage == 4 && (
(theUseDCOP->isChecked() && theFunctions->currentItem() && !Prototype(theFunctions->currentItem()->text(2)).count()) ||
(theUseProfile->isChecked() && (theProfileFunctions->currentItem() && !theProfileFunctions->currentItem()->text(1).toInt() || theJustStart->isChecked()))
))
- showPage(((QWizard *)this)->page(lastPage == 5 ? (theUseDCOP->isChecked() ? 2 : 3) : 5));
+ showPage(((TQWizard *)this)->page(lastPage == 5 ? (theUseDCOP->isChecked() ? 2 : 3) : 5));
}
void AddAction::requestNextPress()
{
- IRKick_stub("irkick", "IRKick").stealNextPress(DCOPClient::mainClient()->appId(), "KCMLirc", "gotButton(QString, QString)");
+ IRKick_stub("irkick", "IRKick").stealNextPress(DCOPClient::mainClient()->appId(), "KCMLirc", "gotButton(TQString, TQString)");
}
void AddAction::cancelRequest()
@@ -88,7 +88,7 @@ void AddAction::cancelRequest()
IRKick_stub("irkick", "IRKick").dontStealNextPress();
}
-void AddAction::updateButton(const QString &remote, const QString &button)
+void AddAction::updateButton(const TQString &remote, const TQString &button)
{
if(theMode.remote() == remote)
{ // note this isn't the "correct" way of doing it; really i should iterate throughg the items and try to find the item which when put through buttonMap[item] returns the current button name. but i cant be arsed.
@@ -109,9 +109,9 @@ void AddAction::updateButtons()
theButtons->clear();
buttonMap.clear();
IRKick_stub IRKick("irkick", "IRKick");
- QStringList buttons = IRKick.buttons(theMode.remote());
- for(QStringList::iterator j = buttons.begin(); j != buttons.end(); ++j)
- buttonMap[new QListViewItem(theButtons, RemoteServer::remoteServer()->getButtonName(theMode.remote(), *j))] = *j;
+ TQStringList buttons = IRKick.buttons(theMode.remote());
+ for(TQStringList::iterator j = buttons.begin(); j != buttons.end(); ++j)
+ buttonMap[new TQListViewItem(theButtons, RemoteServer::remoteServer()->getButtonName(theMode.remote(), *j))] = *j;
}
void AddAction::updateForPageChange()
@@ -140,17 +140,17 @@ void AddAction::updateButtonStates()
}
}
-const QStringList AddAction::getFunctions(const QString app, const QString obj)
+const TQStringList AddAction::getFunctions(const TQString app, const TQString obj)
{
- QStringList ret;
+ TQStringList ret;
DCOPClient *theClient = KApplication::kApplication()->dcopClient();
QCStringList theApps = theClient->remoteFunctions(app.utf8(), obj.utf8());
for(QCStringList::iterator i = theApps.begin(); i != theApps.end(); ++i)
if( *i != "QCStringList interfaces()" &&
*i != "QCStringList functions()" &&
*i != "QCStringList objects()" &&
- *i != "QCStringList find(QCString)" )
- ret += QString::fromUtf8(*i);
+ *i != "QCStringList find(TQCString)" )
+ ret += TQString::fromUtf8(*i);
return ret;
}
@@ -160,10 +160,10 @@ void AddAction::updateProfiles()
theProfiles->clear();
profileMap.clear();
- QDict<Profile> dict = theServer->profiles();
- QDictIterator<Profile> i(dict);
+ TQDict<Profile> dict = theServer->profiles();
+ TQDictIterator<Profile> i(dict);
for(; i.current(); ++i)
- profileMap[new QListViewItem(theProfiles, i.current()->name())] = i.currentKey();
+ profileMap[new TQListViewItem(theProfiles, i.current()->name())] = i.currentKey();
}
void AddAction::updateOptions()
@@ -180,10 +180,10 @@ void AddAction::updateOptions()
else if(theUseDCOP->isChecked())
{
if(!theObjects->selectedItem()) return;
- QListViewItem* i = theObjects->selectedItem()->parent();
+ TQListViewItem* i = theObjects->selectedItem()->parent();
if(!i) return;
isUnique = uniqueProgramMap[i];
- QRegExp r("(.*)-[0-9]+");
+ TQRegExp r("(.*)-[0-9]+");
program = r.exactMatch(nameProgramMap[i]) ? r.cap(1) : nameProgramMap[i];
im = IM_DONTSEND;
}
@@ -213,9 +213,9 @@ void AddAction::updateProfileFunctions()
if(!theProfiles->currentItem()) return;
const Profile *p = theServer->profiles()[profileMap[theProfiles->currentItem()]];
- QDict<ProfileAction> dict = p->actions();
- for(QDictIterator<ProfileAction> i(dict); i.current(); ++i)
- profileFunctionMap[new QListViewItem(theProfileFunctions, i.current()->name(), QString().setNum(i.current()->arguments().count()), i.current()->comment())] = i.currentKey();
+ TQDict<ProfileAction> dict = p->actions();
+ for(TQDictIterator<ProfileAction> i(dict); i.current(); ++i)
+ profileFunctionMap[new TQListViewItem(theProfileFunctions, i.current()->name(), TQString().setNum(i.current()->arguments().count()), i.current()->comment())] = i.currentKey();
updateParameters();
updateOptions();
}
@@ -228,9 +228,9 @@ void AddAction::updateParameters()
{
Prototype p(theFunctions->currentItem()->text(2));
for(unsigned k = 0; k < p.count(); k++)
- { new KListViewItem(theParameters, p.name(k).isEmpty() ? i18n( "<anonymous>" ) : p.name(k), "", p.type(k), QString().setNum(k + 1));
- theArguments.append(QVariant(""));
- theArguments.back().cast(QVariant::nameToType(p.type(k).utf8()));
+ { new KListViewItem(theParameters, p.name(k).isEmpty() ? i18n( "<anonymous>" ) : p.name(k), "", p.type(k), TQString().setNum(k + 1));
+ theArguments.append(TQVariant(""));
+ theArguments.back().cast(TQVariant::nameToType(p.type(k).utf8()));
}
}
else if(theUseProfile->isChecked() && theProfiles->currentItem())
@@ -243,10 +243,10 @@ void AddAction::updateParameters()
const ProfileAction *pa = p->actions()[profileFunctionMap[theProfileFunctions->currentItem()]];
int index = 1;
- for(QValueList<ProfileActionArgument>::const_iterator i = pa->arguments().begin(); i != pa->arguments().end(); ++i, index++)
- { theArguments.append(QVariant((*i).getDefault()));
- theArguments.back().cast(QVariant::nameToType((*i).type().utf8()));
- new QListViewItem(theParameters, (*i).comment(), theArguments.back().toString(), (*i).type(), QString().setNum(index));
+ for(TQValueList<ProfileActionArgument>::const_iterator i = pa->arguments().begin(); i != pa->arguments().end(); ++i, index++)
+ { theArguments.append(TQVariant((*i).getDefault()));
+ theArguments.back().cast(TQVariant::nameToType((*i).type().utf8()));
+ new TQListViewItem(theParameters, (*i).comment(), theArguments.back().toString(), (*i).type(), TQString().setNum(index));
}
// quicky update options too...
@@ -260,7 +260,7 @@ void AddAction::updateParameters()
void AddAction::updateParameter()
{
if(theParameters->currentItem())
- { QString type = theParameters->currentItem()->text(2);
+ { TQString type = theParameters->currentItem()->text(2);
int index = theParameters->currentItem()->text(3).toInt() - 1;
if(type.find("int") != -1 || type.find("short") != -1 || type.find("long") != -1)
{ theValue->raiseWidget(2);
@@ -274,9 +274,9 @@ void AddAction::updateParameter()
{ theValue->raiseWidget(1);
theValueCheckBox->setChecked(theArguments[index].toBool());
}
- else if(type.find("QStringList") != -1)
+ else if(type.find("TQStringList") != -1)
{ theValue->raiseWidget(4);
- QStringList backup = theArguments[index].toStringList();
+ TQStringList backup = theArguments[index].toStringList();
// backup needed because calling clear will kill what ever has been saved.
theValueEditListBox->clear();
theValueEditListBox->insertStringList(backup);
@@ -306,31 +306,31 @@ void AddAction::slotParameterChanged()
{
if(!theParameters->currentItem()) return;
int index = theParameters->currentItem()->text(3).toInt() - 1;
- QString type = theParameters->currentItem()->text(2);
+ TQString type = theParameters->currentItem()->text(2);
if(type.find("int") != -1 || type.find("short") != -1 || type.find("long") != -1)
theArguments[index].asInt() = theValueIntNumInput->value();
else if(type.find("double") != -1 || type.find("float") != -1)
theArguments[index].asDouble() = theValueDoubleNumInput->value();
else if(type.find("bool") != -1)
theArguments[index].asBool() = theValueCheckBox->isChecked();
- else if(type.find("QStringList") != -1)
+ else if(type.find("TQStringList") != -1)
theArguments[index].asStringList() = theValueEditListBox->items();
else
theArguments[index].asString() = theValueLineEdit->text();
- theArguments[theParameters->currentItem()->text(3).toInt() - 1].cast(QVariant::nameToType(theParameters->currentItem()->text(2).utf8()));
+ theArguments[theParameters->currentItem()->text(3).toInt() - 1].cast(TQVariant::nameToType(theParameters->currentItem()->text(2).utf8()));
updateArgument(theParameters->currentItem());
}
// takes theArguments[theIndex] and puts it into theItem
-void AddAction::updateArgument(QListViewItem *theItem)
+void AddAction::updateArgument(TQListViewItem *theItem)
{
theItem->setText(1, theArguments[theItem->text(3).toInt() - 1].toString());
}
void AddAction::updateObjects()
{
- QStringList names;
+ TQStringList names;
theObjects->clear();
uniqueProgramMap.clear();
nameProgramMap.clear();
@@ -339,15 +339,15 @@ void AddAction::updateObjects()
QCStringList theApps = theClient->registeredApplications();
for(QCStringList::iterator i = theApps.begin(); i != theApps.end(); ++i)
{
- if(!QString(*i).find("anonymous")) continue;
- if(!QString(*i).find(i18n( "anonymous" ))) continue;
- QRegExp r("(.*)-[0-9]+");
- QString name = r.exactMatch(QString(*i)) ? r.cap(1) : *i;
+ if(!TQString(*i).find("anonymous")) continue;
+ if(!TQString(*i).find(i18n( "anonymous" ))) continue;
+ TQRegExp r("(.*)-[0-9]+");
+ TQString name = r.exactMatch(TQString(*i)) ? r.cap(1) : *i;
if(names.contains(name)) continue;
names += name;
KListViewItem *a = new KListViewItem(theObjects, name);
- uniqueProgramMap[a] = name == QString(*i);
+ uniqueProgramMap[a] = name == TQString(*i);
nameProgramMap[a] = *i;
QCStringList theObjects = theClient->remoteObjects(*i);
@@ -362,9 +362,9 @@ void AddAction::updateFunctions()
{
theFunctions->clear();
if(theObjects->currentItem() && theObjects->currentItem()->parent())
- { QStringList functions = getFunctions(nameProgramMap[theObjects->currentItem()->parent()], theObjects->currentItem()->text(0));
- for(QStringList::iterator i = functions.begin(); i != functions.end(); ++i)
- { Prototype p((QString)(*i));
+ { TQStringList functions = getFunctions(nameProgramMap[theObjects->currentItem()->parent()], theObjects->currentItem()->text(0));
+ for(TQStringList::iterator i = functions.begin(); i != functions.end(); ++i)
+ { Prototype p((TQString)(*i));
new KListViewItem(theFunctions, p.name(), p.argumentList(), *i);
}
}
diff --git a/kdelirc/kcmlirc/addaction.h b/kdelirc/kcmlirc/addaction.h
index 4d13659..df3d9c7 100644
--- a/kdelirc/kcmlirc/addaction.h
+++ b/kdelirc/kcmlirc/addaction.h
@@ -10,8 +10,8 @@
#ifndef ADDACTION_H
#define ADDACTION_H
-#include <qvaluelist.h>
-#include <qpair.h>
+#include <tqvaluelist.h>
+#include <tqpair.h>
#include <addactionbase.h>
@@ -39,7 +39,7 @@ public slots:
// connected to KCMLirc class to receive DCOP calls to tell it what button has been pressed
virtual void updateForPageChange();
- virtual void updateButton(const QString &remote, const QString &button);
+ virtual void updateButton(const TQString &remote, const TQString &button);
virtual void updateButtons();
virtual void updateFunctions();
virtual void updateObjects();
@@ -52,21 +52,21 @@ public slots:
public:
Arguments theArguments;
- QString program;
+ TQString program;
bool isUnique;
- static const QStringList getFunctions(const QString app, const QString obj);
- void updateArgument(QListViewItem *theItem);
+ static const TQStringList getFunctions(const TQString app, const TQString obj);
+ void updateArgument(TQListViewItem *theItem);
void requestNextPress();
void cancelRequest();
- QMap<QListViewItem *, QString> profileMap;
- QMap<QListViewItem *, QString> profileFunctionMap;
- QMap<QListViewItem *, QString> buttonMap;
- QMap<QListViewItem *, bool> uniqueProgramMap;
- QMap<QListViewItem *, QString> nameProgramMap;
+ TQMap<TQListViewItem *, TQString> profileMap;
+ TQMap<TQListViewItem *, TQString> profileFunctionMap;
+ TQMap<TQListViewItem *, TQString> buttonMap;
+ TQMap<TQListViewItem *, bool> uniqueProgramMap;
+ TQMap<TQListViewItem *, TQString> nameProgramMap;
- AddAction(QWidget *parent, const char *name, const Mode &mode);
+ AddAction(TQWidget *parent, const char *name, const Mode &mode);
~AddAction();
};
diff --git a/kdelirc/kcmlirc/editaction.cpp b/kdelirc/kcmlirc/editaction.cpp
index 5a2a28b..594e4a2 100644
--- a/kdelirc/kcmlirc/editaction.cpp
+++ b/kdelirc/kcmlirc/editaction.cpp
@@ -10,13 +10,13 @@
// Copyright: See COPYING file that comes with this distribution
//
//
-#include <qregexp.h>
-#include <qlabel.h>
-#include <qradiobutton.h>
-#include <qcombobox.h>
-#include <qcheckbox.h>
-#include <qwidgetstack.h>
-#include <qbuttongroup.h>
+#include <tqregexp.h>
+#include <tqlabel.h>
+#include <tqradiobutton.h>
+#include <tqcombobox.h>
+#include <tqcheckbox.h>
+#include <tqwidgetstack.h>
+#include <tqbuttongroup.h>
#include <kdebug.h>
#include <klineedit.h>
@@ -35,7 +35,7 @@
#include "editaction.h"
#include "addaction.h"
-EditAction::EditAction(IRAIt action, QWidget *parent, const char *name) : EditActionBase(parent, name)
+EditAction::EditAction(IRAIt action, TQWidget *parent, const char *name) : EditActionBase(parent, name)
{
theAction = action;
@@ -151,16 +151,16 @@ void EditAction::updateArguments()
theArguments->clear();
const ProfileAction *a = ProfileServer::profileServer()->getAction(applicationMap[theApplications->currentText()], functionMap[theFunctions->currentText()]);
if(!a) { arguments.clear(); return; }
- const QValueList<ProfileActionArgument> &p = a->arguments();
+ const TQValueList<ProfileActionArgument> &p = a->arguments();
if(p.count() != arguments.count())
{ arguments.clear();
for(unsigned i = 0; i < p.count(); i++)
- arguments.append(QVariant(""));
+ arguments.append(TQVariant(""));
}
theArguments->setEnabled(p.count());
for(unsigned i = 0; i < p.count(); i++)
{ theArguments->insertItem(p[i].comment() + " (" + p[i].type() + ")");
- arguments[i].cast(QVariant::nameToType(p[i].type().utf8()));
+ arguments[i].cast(TQVariant::nameToType(p[i].type().utf8()));
}
if(p.count()) updateArgument(0); else updateArgument(-1);
}
@@ -171,12 +171,12 @@ void EditAction::updateArguments()
if(p.count() != arguments.count())
{ arguments.clear();
for(unsigned i = 0; i < p.count(); i++)
- arguments.append(QVariant(""));
+ arguments.append(TQVariant(""));
}
theArguments->setEnabled(p.count());
for(unsigned i = 0; i < p.count(); i++)
- { theArguments->insertItem(QString().setNum(i + 1) + ": " + (p.name(i).isEmpty() ? p.type(i) : p.name(i) + " (" + p.type(i) + ")"));
- arguments[i].cast(QVariant::nameToType(p.type(i).utf8()));
+ { theArguments->insertItem(TQString().setNum(i + 1) + ": " + (p.name(i).isEmpty() ? p.type(i) : p.name(i) + " (" + p.type(i) + ")"));
+ arguments[i].cast(TQVariant::nameToType(p.type(i).utf8()));
}
if(p.count()) updateArgument(0); else updateArgument(-1);
}
@@ -216,22 +216,22 @@ void EditAction::slotParameterChanged()
kdDebug() << type << endl;
switch(type)
{
- case QVariant::Int: case QVariant::UInt:
+ case TQVariant::Int: case TQVariant::UInt:
arguments[theArguments->currentItem()].asInt() = theValueIntNumInput->value();
break;
- case QVariant::Double:
+ case TQVariant::Double:
arguments[theArguments->currentItem()].asDouble() = theValueDoubleNumInput->value();
break;
- case QVariant::Bool:
+ case TQVariant::Bool:
arguments[theArguments->currentItem()].asBool() = theValueCheckBox->isChecked();
break;
- case QVariant::StringList:
+ case TQVariant::StringList:
arguments[theArguments->currentItem()].asStringList() = theValueEditListBox->items();
break;
default:
arguments[theArguments->currentItem()].asString() = theValueLineEdit->text();
}
- arguments[theArguments->currentItem()].cast(QVariant::Type(type));
+ arguments[theArguments->currentItem()].cast(TQVariant::Type(type));
kdDebug() << "out: " << arguments[theArguments->currentItem()].toString() << endl;
}
@@ -242,21 +242,21 @@ void EditAction::updateArgument(int index)
if(index >= 0)
{ switch(arguments[index].type())
{
- case QVariant::Int: case QVariant::UInt:
+ case TQVariant::Int: case TQVariant::UInt:
theValue->raiseWidget(2);
theValueIntNumInput->setValue(arguments[index].toInt());
break;
- case QVariant::Double:
+ case TQVariant::Double:
theValue->raiseWidget(3);
theValueDoubleNumInput->setValue(arguments[index].toDouble());
break;
- case QVariant::Bool:
+ case TQVariant::Bool:
theValue->raiseWidget(1);
theValueCheckBox->setChecked(arguments[index].toBool());
break;
- case QVariant::StringList:
+ case TQVariant::StringList:
{ theValue->raiseWidget(4);
- QStringList backup = arguments[index].toStringList();
+ TQStringList backup = arguments[index].toStringList();
// backup needed because calling clear will kill what ever has been saved.
theValueEditListBox->clear();
theValueEditListBox->insertStringList(backup);
@@ -284,8 +284,8 @@ void EditAction::updateApplications()
theApplications->clear();
applicationMap.clear();
- QDict<Profile> dict = theServer->profiles();
- QDictIterator<Profile> i(dict);
+ TQDict<Profile> dict = theServer->profiles();
+ TQDictIterator<Profile> i(dict);
for(; i.current(); ++i)
{ theApplications->insertItem(i.current()->name());
applicationMap[i.current()->name()] = i.currentKey();
@@ -302,8 +302,8 @@ void EditAction::updateFunctions()
const Profile *p = theServer->profiles()[applicationMap[theApplications->currentText()]];
- QDict<ProfileAction> dict = p->actions();
- for(QDictIterator<ProfileAction> i(dict); i.current(); ++i)
+ TQDict<ProfileAction> dict = p->actions();
+ for(TQDictIterator<ProfileAction> i(dict); i.current(); ++i)
{ theFunctions->insertItem(i.current()->name());
functionMap[i.current()->name()] = i.currentKey();
}
@@ -312,21 +312,21 @@ void EditAction::updateFunctions()
void EditAction::updateDCOPApplications()
{
- QStringList names;
+ TQStringList names;
theDCOPApplications->clear();
DCOPClient *theClient = KApplication::kApplication()->dcopClient();
QCStringList theApps = theClient->registeredApplications();
for(QCStringList::iterator i = theApps.begin(); i != theApps.end(); ++i)
{
- if(!QString(*i).find("anonymous")) continue;
- QRegExp r("(.*)-[0-9]+");
- QString name = r.exactMatch(QString(*i)) ? r.cap(1) : *i;
+ if(!TQString(*i).find("anonymous")) continue;
+ TQRegExp r("(.*)-[0-9]+");
+ TQString name = r.exactMatch(TQString(*i)) ? r.cap(1) : *i;
if(names.contains(name)) continue;
names += name;
theDCOPApplications->insertItem(name);
- uniqueProgramMap[name] = name == QString(*i);
+ uniqueProgramMap[name] = name == TQString(*i);
nameProgramMap[name] = *i;
@@ -343,7 +343,7 @@ void EditAction::updateDCOPObjects()
if(!theObjects.size() && theDCOPApplications->currentText() == (*theAction).program()) theDCOPObjects->insertItem((*theAction).object());
for(QCStringList::iterator j = theObjects.begin(); j != theObjects.end(); ++j)
if(*j != "ksycoca" && *j != "qt" && AddAction::getFunctions(nameProgramMap[theDCOPApplications->currentText()], *j).count())
- theDCOPObjects->insertItem(QString::fromUtf8(*j));
+ theDCOPObjects->insertItem(TQString::fromUtf8(*j));
updateDCOPFunctions();
}
@@ -351,9 +351,9 @@ void EditAction::updateDCOPFunctions()
{
theDCOPFunctions->clear();
if(theDCOPApplications->currentText().isNull() || theDCOPApplications->currentText().isEmpty()) return;
- QStringList functions = AddAction::getFunctions(nameProgramMap[theDCOPApplications->currentText()], theDCOPObjects->currentText());
+ TQStringList functions = AddAction::getFunctions(nameProgramMap[theDCOPApplications->currentText()], theDCOPObjects->currentText());
if(!functions.size() && theDCOPApplications->currentText() == (*theAction).program()) theDCOPFunctions->insertItem((*theAction).method().prototype());
- for(QStringList::iterator i = functions.begin(); i != functions.end(); ++i)
+ for(TQStringList::iterator i = functions.begin(); i != functions.end(); ++i)
theDCOPFunctions->insertItem(*i);
updateArguments();
}
diff --git a/kdelirc/kcmlirc/editaction.h b/kdelirc/kcmlirc/editaction.h
index 1a7aa00..7efa7ca 100644
--- a/kdelirc/kcmlirc/editaction.h
+++ b/kdelirc/kcmlirc/editaction.h
@@ -13,7 +13,7 @@
#ifndef EDITACTION_H
#define EDITACTION_H
-#include <qstring.h>
+#include <tqstring.h>
#include "iractions.h"
#include "editactionbase.h"
@@ -27,11 +27,11 @@ class EditAction : public EditActionBase
{
Q_OBJECT
IRAIt theAction;
- QMap<QString, QString> applicationMap, functionMap;
- QMap<QString, QString> nameProgramMap;
- QMap<QString, bool> uniqueProgramMap;
+ TQMap<TQString, TQString> applicationMap, functionMap;
+ TQMap<TQString, TQString> nameProgramMap;
+ TQMap<TQString, bool> uniqueProgramMap;
Arguments arguments;
- QString program;
+ TQString program;
bool isUnique;
public:
@@ -48,7 +48,7 @@ public:
virtual void updateDCOPObjects();
virtual void updateDCOPFunctions();
- EditAction(IRAIt action, QWidget *parent = 0, const char *name = 0);
+ EditAction(IRAIt action, TQWidget *parent = 0, const char *name = 0);
~EditAction();
};
diff --git a/kdelirc/kcmlirc/editmode.cpp b/kdelirc/kcmlirc/editmode.cpp
index 3fba8f0..aad27da 100644
--- a/kdelirc/kcmlirc/editmode.cpp
+++ b/kdelirc/kcmlirc/editmode.cpp
@@ -16,7 +16,7 @@
#include "editmode.h"
-EditMode::EditMode(QWidget *parent, const char *name, bool modal, WFlags fl) : EditModeBase(parent, name, modal, fl)
+EditMode::EditMode(TQWidget *parent, const char *name, bool modal, WFlags fl) : EditModeBase(parent, name, modal, fl)
{
theIcon->setIconType(KIcon::Panel, KIcon::Any);
}
@@ -30,7 +30,7 @@ void EditMode::slotClearIcon()
theIcon->resetIcon();
}
-void EditMode::slotCheckText(const QString &newText)
+void EditMode::slotCheckText(const TQString &newText)
{
theOK->setEnabled(!newText.isEmpty());
}
diff --git a/kdelirc/kcmlirc/editmode.h b/kdelirc/kcmlirc/editmode.h
index 14a709d..df3c888 100644
--- a/kdelirc/kcmlirc/editmode.h
+++ b/kdelirc/kcmlirc/editmode.h
@@ -23,10 +23,10 @@ class EditMode : public EditModeBase
Q_OBJECT
public:
- void slotCheckText(const QString &newText);
+ void slotCheckText(const TQString &newText);
void slotClearIcon();
- EditMode(QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags fl = 0);
+ EditMode(TQWidget *parent = 0, const char *name = 0, bool modal = false, WFlags fl = 0);
~EditMode();
};
diff --git a/kdelirc/kcmlirc/kcmlirc.cpp b/kdelirc/kcmlirc/kcmlirc.cpp
index 1686bcd..b248127 100644
--- a/kdelirc/kcmlirc/kcmlirc.cpp
+++ b/kdelirc/kcmlirc/kcmlirc.cpp
@@ -8,14 +8,14 @@
* (at your option) any later version. *
***************************************************************************/
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qradiobutton.h>
-#include <qcombobox.h>
-#include <qevent.h>
-#include <qlistview.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqradiobutton.h>
+#include <tqcombobox.h>
+#include <tqevent.h>
+#include <tqlistview.h>
#include <kpushbutton.h>
#include <kapplication.h>
@@ -46,10 +46,10 @@
#include "modeslist.h"
#include "selectprofile.h"
-typedef KGenericFactory<KCMLirc, QWidget> theFactory;
+typedef KGenericFactory<KCMLirc, TQWidget> theFactory;
K_EXPORT_COMPONENT_FACTORY(kcmlirc, theFactory("kcmlirc"))
-KCMLirc::KCMLirc(QWidget *parent, const char *name, QStringList /*args*/) : DCOPObject("KCMLirc"), KCModule(parent, name)
+KCMLirc::KCMLirc(TQWidget *parent, const char *name, TQStringList /*args*/) : DCOPObject("KCMLirc"), KCModule(parent, name)
{
KGlobal::locale()->insertCatalogue( "kcmlirc" );
setAboutData(new KAboutData("kcmlirc", I18N_NOOP("KDE Lirc"), VERSION, I18N_NOOP("The KDE IR Remote Control System"), KAboutData::License_GPL_V2, "Copyright (c)2003 Gav Wood", I18N_NOOP("Use this to configure KDE's infrared remote control system in order to control any KDE application with your infrared remote control."), "http://www.kde.org"));
@@ -71,22 +71,22 @@ KCMLirc::KCMLirc(QWidget *parent, const char *name, QStringList /*args*/) : DCOP
kdDebug() << "OK" << ok << endl;
- (new QHBoxLayout(this))->setAutoAdd(true);
+ (new TQHBoxLayout(this))->setAutoAdd(true);
theKCMLircBase = new KCMLircBase(this);
- connect(theKCMLircBase->theModes, SIGNAL( selectionChanged(QListViewItem *) ), this, SLOT( updateActions() ));
- connect(theKCMLircBase->theModes, SIGNAL( selectionChanged(QListViewItem *) ), this, SLOT( updateModesStatus(QListViewItem *) ));
- connect(theKCMLircBase->theActions, SIGNAL( currentChanged(QListViewItem *) ), this, SLOT( updateActionsStatus(QListViewItem *) ));
- connect(theKCMLircBase->theExtensions, SIGNAL( selectionChanged(QListViewItem *) ), this, SLOT( updateInformation() ));
- connect(theKCMLircBase->theModes, SIGNAL( itemRenamed(QListViewItem *) ), this, SLOT( slotRenamed(QListViewItem *) ));
- connect(theKCMLircBase->theModes, SIGNAL(dropped(KListView*, QDropEvent*, QListViewItem*, QListViewItem*)), this, SLOT(slotDrop(KListView*, QDropEvent*, QListViewItem*, QListViewItem*)));
- connect((QObject *)(theKCMLircBase->theAddActions), SIGNAL( clicked() ), this, SLOT( slotAddActions() ));
- connect((QObject *)(theKCMLircBase->theAddAction), SIGNAL( clicked() ), this, SLOT( slotAddAction() ));
- connect((QObject *)(theKCMLircBase->theEditAction), SIGNAL( clicked() ), this, SLOT( slotEditAction() ));
- connect((QObject *)(theKCMLircBase->theActions), SIGNAL( doubleClicked(QListViewItem *) ), this, SLOT( slotEditAction() ));
- connect((QObject *)(theKCMLircBase->theRemoveAction), SIGNAL( clicked() ), this, SLOT( slotRemoveAction() ));
- connect((QObject *)(theKCMLircBase->theAddMode), SIGNAL( clicked() ), this, SLOT( slotAddMode() ));
- connect((QObject *)(theKCMLircBase->theEditMode), SIGNAL( clicked() ), this, SLOT( slotEditMode() ));
- connect((QObject *)(theKCMLircBase->theRemoveMode), SIGNAL( clicked() ), this, SLOT( slotRemoveMode() ));
+ connect(theKCMLircBase->theModes, TQT_SIGNAL( selectionChanged(TQListViewItem *) ), this, TQT_SLOT( updateActions() ));
+ connect(theKCMLircBase->theModes, TQT_SIGNAL( selectionChanged(TQListViewItem *) ), this, TQT_SLOT( updateModesStatus(TQListViewItem *) ));
+ connect(theKCMLircBase->theActions, TQT_SIGNAL( currentChanged(TQListViewItem *) ), this, TQT_SLOT( updateActionsStatus(TQListViewItem *) ));
+ connect(theKCMLircBase->theExtensions, TQT_SIGNAL( selectionChanged(TQListViewItem *) ), this, TQT_SLOT( updateInformation() ));
+ connect(theKCMLircBase->theModes, TQT_SIGNAL( itemRenamed(TQListViewItem *) ), this, TQT_SLOT( slotRenamed(TQListViewItem *) ));
+ connect(theKCMLircBase->theModes, TQT_SIGNAL(dropped(KListView*, TQDropEvent*, TQListViewItem*, TQListViewItem*)), this, TQT_SLOT(slotDrop(KListView*, TQDropEvent*, TQListViewItem*, TQListViewItem*)));
+ connect((TQObject *)(theKCMLircBase->theAddActions), TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddActions() ));
+ connect((TQObject *)(theKCMLircBase->theAddAction), TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddAction() ));
+ connect((TQObject *)(theKCMLircBase->theEditAction), TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotEditAction() ));
+ connect((TQObject *)(theKCMLircBase->theActions), TQT_SIGNAL( doubleClicked(TQListViewItem *) ), this, TQT_SLOT( slotEditAction() ));
+ connect((TQObject *)(theKCMLircBase->theRemoveAction), TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotRemoveAction() ));
+ connect((TQObject *)(theKCMLircBase->theAddMode), TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddMode() ));
+ connect((TQObject *)(theKCMLircBase->theEditMode), TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotEditMode() ));
+ connect((TQObject *)(theKCMLircBase->theRemoveMode), TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotRemoveMode() ));
load();
}
@@ -94,7 +94,7 @@ KCMLirc::~KCMLirc()
{
}
-void KCMLirc::updateModesStatus(QListViewItem *item)
+void KCMLirc::updateModesStatus(TQListViewItem *item)
{
theKCMLircBase->theModes->setItemsRenameable(item && item->parent());
theKCMLircBase->theAddActions->setEnabled(ProfileServer::profileServer()->profiles().count() && theKCMLircBase->theModes->selectedItem() && RemoteServer::remoteServer()->remotes()[modeMap[theKCMLircBase->theModes->selectedItem()].remote()]);
@@ -104,13 +104,13 @@ void KCMLirc::updateModesStatus(QListViewItem *item)
theKCMLircBase->theEditMode->setEnabled(item);
}
-void KCMLirc::updateActionsStatus(QListViewItem *item)
+void KCMLirc::updateActionsStatus(TQListViewItem *item)
{
theKCMLircBase->theRemoveAction->setEnabled(item);
theKCMLircBase->theEditAction->setEnabled(item);
}
-void KCMLirc::slotRenamed(QListViewItem *item)
+void KCMLirc::slotRenamed(TQListViewItem *item)
{
if(!item) return;
@@ -127,13 +127,13 @@ void KCMLirc::slotEditAction()
if(!theKCMLircBase->theActions->currentItem()) return;
EditAction theDialog(actionMap[theKCMLircBase->theActions->currentItem()], this);
- QListViewItem *item = theKCMLircBase->theModes->currentItem();
+ TQListViewItem *item = theKCMLircBase->theModes->currentItem();
if(item->parent()) item = item->parent();
theDialog.theModes->insertItem(i18n("[Exit current mode]"));
for(item = item->firstChild(); item; item = item->nextSibling())
theDialog.theModes->insertItem(item->text(0));
theDialog.readFrom();
- if(theDialog.exec() == QDialog::Accepted) { theDialog.writeBack(); emit changed(true); updateActions(); }
+ if(theDialog.exec() == TQDialog::Accepted) { theDialog.writeBack(); emit changed(true); updateActions(); }
}
void KCMLirc::slotAddActions()
@@ -144,11 +144,11 @@ void KCMLirc::slotAddActions()
SelectProfile theDialog(this, 0);
- QMap<QListViewItem *, Profile *> profileMap;
- QDict<Profile> dict = ProfileServer::profileServer()->profiles();
- for(QDictIterator<Profile> i(dict); i.current(); ++i) profileMap[new QListViewItem(theDialog.theProfiles, i.current()->name())] = i.current();
+ TQMap<TQListViewItem *, Profile *> profileMap;
+ TQDict<Profile> dict = ProfileServer::profileServer()->profiles();
+ for(TQDictIterator<Profile> i(dict); i.current(); ++i) profileMap[new TQListViewItem(theDialog.theProfiles, i.current()->name())] = i.current();
- if(theDialog.exec() == QDialog::Accepted && theDialog.theProfiles->currentItem())
+ if(theDialog.exec() == TQDialog::Accepted && theDialog.theProfiles->currentItem())
{ autoPopulate(*(profileMap[theDialog.theProfiles->currentItem()]), *(RemoteServer::remoteServer()->remotes()[m.remote()]), m.name());
updateActions();
emit changed(true);
@@ -162,10 +162,10 @@ void KCMLirc::slotAddAction()
Mode m = modeMap[theKCMLircBase->theModes->selectedItem()];
AddAction theDialog(this, 0, m);
- connect(this, SIGNAL(haveButton(const QString &, const QString &)), &theDialog, SLOT(updateButton(const QString &, const QString &)));
+ connect(this, TQT_SIGNAL(haveButton(const TQString &, const TQString &)), &theDialog, TQT_SLOT(updateButton(const TQString &, const TQString &)));
// populate the modes list box
- QListViewItem *item = theKCMLircBase->theModes->selectedItem();
+ TQListViewItem *item = theKCMLircBase->theModes->selectedItem();
if(item->parent()) item = item->parent();
theDialog.theModes->setEnabled(item->firstChild());
theDialog.theSwitchMode->setEnabled(item->firstChild());
@@ -174,7 +174,7 @@ void KCMLirc::slotAddAction()
if(item->isSelected()) { a->setSelected(true); theDialog.theModes->setCurrentItem(a); }
}
- if(theDialog.exec() == QDialog::Accepted && theDialog.theButtons->selectedItem())
+ if(theDialog.exec() == TQDialog::Accepted && theDialog.theButtons->selectedItem())
{ IRAction a;
a.setRemote(m.remote());
a.setMode(m.name());
@@ -246,10 +246,10 @@ void KCMLirc::slotRemoveAction()
emit changed(true);
}
-void KCMLirc::autoPopulate(const Profile &profile, const Remote &remote, const QString &mode)
+void KCMLirc::autoPopulate(const Profile &profile, const Remote &remote, const TQString &mode)
{
- QDict<RemoteButton> d = remote.buttons();
- for(QDictIterator<RemoteButton> i(d); i.current(); ++i)
+ TQDict<RemoteButton> d = remote.buttons();
+ for(TQDictIterator<RemoteButton> i(d); i.current(); ++i)
{ const ProfileAction *pa = profile.searchClass(i.current()->getClass());
if(pa)
{
@@ -267,8 +267,8 @@ void KCMLirc::autoPopulate(const Profile &profile, const Remote &remote, const Q
Arguments l;
// argument count should be either 0 or 1. undefined if > 1.
if(Prototype(pa->prototype()).argumentCount() == 1)
- { l.append(QString().setNum(i.current()->parameter().toFloat() * pa->multiplier()));
- l.back().cast(QVariant::nameToType(Prototype(pa->prototype()).type(0).utf8()));
+ { l.append(TQString().setNum(i.current()->parameter().toFloat() * pa->multiplier()));
+ l.back().cast(TQVariant::nameToType(Prototype(pa->prototype()).type(0).utf8()));
}
a.setArguments(l);
allActions.addAction(a);
@@ -281,15 +281,15 @@ void KCMLirc::slotAddMode()
if(!theKCMLircBase->theModes->selectedItem()) return;
NewMode theDialog(this, 0);
- QMap<QListViewItem *, QString> remoteMap;
- QListViewItem *tr = theKCMLircBase->theModes->selectedItem();
+ TQMap<TQListViewItem *, TQString> remoteMap;
+ TQListViewItem *tr = theKCMLircBase->theModes->selectedItem();
if(tr) if(tr->parent()) tr = tr->parent();
- for(QListViewItem *i = theKCMLircBase->theModes->firstChild(); i; i = i->nextSibling())
+ for(TQListViewItem *i = theKCMLircBase->theModes->firstChild(); i; i = i->nextSibling())
{ KListViewItem *a = new KListViewItem(theDialog.theRemotes, i->text(0));
remoteMap[a] = modeMap[i].remote();
if(i == tr) { a->setSelected(true); theDialog.theRemotes->setCurrentItem(a); }
}
- if(theDialog.exec() == QDialog::Accepted && theDialog.theRemotes->selectedItem() && !theDialog.theName->text().isEmpty())
+ if(theDialog.exec() == TQDialog::Accepted && theDialog.theRemotes->selectedItem() && !theDialog.theName->text().isEmpty())
{
allModes.add(Mode(remoteMap[theDialog.theRemotes->selectedItem()], theDialog.theName->text()));
updateModes();
@@ -313,9 +313,9 @@ void KCMLirc::slotEditMode()
theDialog.theDefault->setChecked(allModes.isDefault(mode));
theDialog.theDefault->setEnabled(!allModes.isDefault(mode));
- if(theDialog.exec() == QDialog::Accepted)
+ if(theDialog.exec() == TQDialog::Accepted)
{ kdDebug() << "Setting icon : " << theDialog.theIcon->icon() << endl;
- mode.setIconFile(theDialog.theIcon->icon().isEmpty() ? QString::null : theDialog.theIcon->icon());
+ mode.setIconFile(theDialog.theIcon->icon().isEmpty() ? TQString::null : theDialog.theIcon->icon());
allModes.updateMode(mode);
if(!mode.name().isEmpty())
{ allActions.renameMode(mode, theDialog.theName->text());
@@ -348,7 +348,7 @@ void KCMLirc::slotSetDefaultMode()
emit changed(true);
}
-void KCMLirc::slotDrop(KListView *, QDropEvent *, QListViewItem *, QListViewItem *after)
+void KCMLirc::slotDrop(KListView *, TQDropEvent *, TQListViewItem *, TQListViewItem *after)
{
Mode m = modeMap[after];
@@ -357,7 +357,7 @@ void KCMLirc::slotDrop(KListView *, QDropEvent *, QListViewItem *, QListViewItem
KMessageBox::error(this, i18n("You may only drag the selected items onto a mode of the same remote control"), i18n("You May Not Drag Here"));
return;
}
- for(QListViewItem *i = theKCMLircBase->theActions->firstChild(); i; i = i->nextSibling())
+ for(TQListViewItem *i = theKCMLircBase->theActions->firstChild(); i; i = i->nextSibling())
if(i->isSelected())
(*(actionMap[i])).setMode(m.name());
@@ -379,7 +379,7 @@ void KCMLirc::updateActions()
theKCMLircBase->theModeLabel->setText(m.remoteName() + ": " + (m.name().isEmpty() ? i18n("Actions <i>always</i> available") : i18n("Actions available only in mode <b>%1</b>").arg(m.name())));
IRAItList l = allActions.findByMode(m);
for(IRAItList::iterator i = l.begin(); i != l.end(); ++i)
- { QListViewItem *b = new KListViewItem(theKCMLircBase->theActions, (**i).buttonName(), (**i).application(), (**i).function(), (**i).arguments().toString(), (**i).notes());
+ { TQListViewItem *b = new KListViewItem(theKCMLircBase->theActions, (**i).b