summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--kamera/kcontrol/kamera.cpp92
-rw-r--r--kamera/kcontrol/kamera.h36
-rw-r--r--kamera/kcontrol/kameraconfigdialog.cpp100
-rw-r--r--kamera/kcontrol/kameraconfigdialog.h12
-rw-r--r--kamera/kcontrol/kameradevice.cpp122
-rw-r--r--kamera/kcontrol/kameradevice.h72
-rw-r--r--kamera/kioslave/kamera.cpp56
-rw-r--r--kamera/kioslave/kamera.h20
-rw-r--r--kcoloredit/color.cpp6
-rw-r--r--kcoloredit/color.h8
-rw-r--r--kcoloredit/colorselector.cpp70
-rw-r--r--kcoloredit/colorselector.h16
-rw-r--r--kcoloredit/gradientselection.cpp52
-rw-r--r--kcoloredit/gradientselection.h18
-rw-r--r--kcoloredit/imageselection.cpp2
-rw-r--r--kcoloredit/imageselection.h6
-rw-r--r--kcoloredit/kcolorchooser.cpp4
-rw-r--r--kcoloredit/kcoloredit.cpp64
-rw-r--r--kcoloredit/kcoloredit.h6
-rw-r--r--kcoloredit/kcoloreditdoc.cpp42
-rw-r--r--kcoloredit/kcoloreditdoc.h32
-rw-r--r--kcoloredit/kcoloreditview.cpp110
-rw-r--r--kcoloredit/kcoloreditview.h36
-rw-r--r--kcoloredit/kxycolorselector.cpp36
-rw-r--r--kcoloredit/kxycolorselector.h18
-rw-r--r--kcoloredit/kzcolorselector.cpp30
-rw-r--r--kcoloredit/kzcolorselector.h20
-rw-r--r--kcoloredit/loadpalettedlg.cpp42
-rw-r--r--kcoloredit/loadpalettedlg.h14
-rw-r--r--kcoloredit/main.h10
-rw-r--r--kcoloredit/palette.cpp62
-rw-r--r--kcoloredit/palette.h28
-rw-r--r--kcoloredit/paletteview.cpp24
-rw-r--r--kcoloredit/paletteview.h12
-rw-r--r--kcoloredit/paletteviewscrolledarea.cpp74
-rw-r--r--kcoloredit/paletteviewscrolledarea.h34
-rw-r--r--kcoloredit/texteditselection.cpp80
-rw-r--r--kcoloredit/texteditselection.h18
-rw-r--r--kcoloredit/textselection.cpp2
-rw-r--r--kdvi/TeXFont.h6
-rw-r--r--kdvi/TeXFontDefinition.cpp24
-rw-r--r--kdvi/TeXFontDefinition.h30
-rw-r--r--kdvi/TeXFont_PFB.cpp28
-rw-r--r--kdvi/TeXFont_PFB.h2
-rw-r--r--kdvi/TeXFont_PK.cpp28
-rw-r--r--kdvi/TeXFont_PK.h2
-rw-r--r--kdvi/TeXFont_TFM.cpp10
-rw-r--r--kdvi/TeXFont_TFM.h2
-rw-r--r--kdvi/bigEndianByteReader.h2
-rw-r--r--kdvi/dviFile.cpp34
-rw-r--r--kdvi/dviFile.h36
-rw-r--r--kdvi/dviRenderer.cpp158
-rw-r--r--kdvi/dviRenderer.h102
-rw-r--r--kdvi/dviRenderer_draw.cpp20
-rw-r--r--kdvi/dviRenderer_export.cpp84
-rw-r--r--kdvi/dviRenderer_prescan.cpp124
-rw-r--r--kdvi/dviWidget.cpp10
-rw-r--r--kdvi/dviWidget.h14
-rw-r--r--kdvi/dvisourcesplitter.cpp14
-rw-r--r--kdvi/dvisourcesplitter.h12
-rw-r--r--kdvi/fontEncoding.cpp24
-rw-r--r--kdvi/fontEncoding.h8
-rw-r--r--kdvi/fontEncodingPool.cpp2
-rw-r--r--kdvi/fontEncodingPool.h8
-rw-r--r--kdvi/fontMap.cpp48
-rw-r--r--kdvi/fontMap.h26
-rw-r--r--kdvi/fontpool.cpp100
-rw-r--r--kdvi/fontpool.h32
-rw-r--r--kdvi/fontprogress.cpp46
-rw-r--r--kdvi/fontprogress.h16
-rw-r--r--kdvi/glyph.h8
-rw-r--r--kdvi/infodialog.cpp84
-rw-r--r--kdvi/infodialog.h22
-rw-r--r--kdvi/kdvi_multipage.cpp58
-rw-r--r--kdvi/kdvi_multipage.h8
-rw-r--r--kdvi/kdvi_multipage_texthandling.cpp4
-rw-r--r--kdvi/kprinterwrapper.h2
-rw-r--r--kdvi/main.cpp24
-rw-r--r--kdvi/optionDialogFontsWidget.cpp14
-rw-r--r--kdvi/optionDialogFontsWidget.h2
-rw-r--r--kdvi/optionDialogSpecialWidget.cpp20
-rw-r--r--kdvi/optionDialogSpecialWidget.h12
-rw-r--r--kdvi/performanceMeasurement.h4
-rw-r--r--kdvi/prebookmark.h10
-rw-r--r--kdvi/psgs.cpp70
-rw-r--r--kdvi/psgs.h46
-rw-r--r--kdvi/renderedDviPagePixmap.h4
-rw-r--r--kdvi/special.cpp262
-rw-r--r--kdvi/util.cpp2
-rw-r--r--kdvi/vf.cpp2
-rw-r--r--kfax/faxinput.cpp22
-rw-r--r--kfax/kfax.cpp154
-rw-r--r--kfax/kfax.h42
-rw-r--r--kfax/kfax_printsettings.cpp32
-rw-r--r--kfax/kfax_printsettings.h8
-rw-r--r--kfax/options.cpp104
-rw-r--r--kfax/options.h66
-rw-r--r--kfax/viewfax.cpp16
-rw-r--r--kfaxview/faxmultipage.cpp8
-rw-r--r--kfaxview/faxmultipage.h8
-rw-r--r--kfaxview/faxrenderer.cpp20
-rw-r--r--kfaxview/faxrenderer.h4
-rw-r--r--kfaxview/libkfaximage/faxexpand.h10
-rw-r--r--kfaxview/libkfaximage/kfaximage.cpp58
-rw-r--r--kfaxview/libkfaximage/kfaximage.h44
-rw-r--r--kfaxview/main.cpp24
-rw-r--r--kfile-plugins/bmp/kfile_bmp.cpp32
-rw-r--r--kfile-plugins/bmp/kfile_bmp.h4
-rw-r--r--kfile-plugins/dds/kfile_dds.cpp46
-rw-r--r--kfile-plugins/dds/kfile_dds.h4
-rw-r--r--kfile-plugins/dvi/kfile_dvi.cpp32
-rw-r--r--kfile-plugins/dvi/kfile_dvi.h4
-rw-r--r--kfile-plugins/exr/kfile_exr.cpp160
-rw-r--r--kfile-plugins/exr/kfile_exr.h4
-rw-r--r--kfile-plugins/gif/kfile_gif.cpp32
-rw-r--r--kfile-plugins/gif/kfile_gif.h4
-rw-r--r--kfile-plugins/ico/kfile_ico.cpp36
-rw-r--r--kfile-plugins/ico/kfile_ico.h4
-rw-r--r--kfile-plugins/jpeg/exif.cpp26
-rw-r--r--kfile-plugins/jpeg/exif.h34
-rw-r--r--kfile-plugins/jpeg/kfile_jpeg.cpp126
-rw-r--r--kfile-plugins/jpeg/kfile_jpeg.h12
-rw-r--r--kfile-plugins/pcx/kfile_pcx.cpp30
-rw-r--r--kfile-plugins/pcx/kfile_pcx.h2
-rw-r--r--kfile-plugins/pdf/kfile_pdf.cpp30
-rw-r--r--kfile-plugins/pdf/kfile_pdf.h4
-rw-r--r--kfile-plugins/png/kfile_png.cpp42
-rw-r--r--kfile-plugins/png/kfile_png.h4
-rw-r--r--kfile-plugins/pnm/kfile_pnm.cpp28
-rw-r--r--kfile-plugins/pnm/kfile_pnm.h6
-rw-r--r--kfile-plugins/ps/gscreator.cpp38
-rw-r--r--kfile-plugins/ps/gscreator.h6
-rw-r--r--kfile-plugins/ps/kfile_ps.cpp18
-rw-r--r--kfile-plugins/ps/kfile_ps.h6
-rw-r--r--kfile-plugins/raw/kcamerarawplugin.cpp30
-rw-r--r--kfile-plugins/raw/kcamerarawplugin.h6
-rw-r--r--kfile-plugins/rgb/kfile_rgb.cpp50
-rw-r--r--kfile-plugins/rgb/kfile_rgb.h10
-rw-r--r--kfile-plugins/tga/kfile_tga.cpp32
-rw-r--r--kfile-plugins/tga/kfile_tga.h4
-rw-r--r--kfile-plugins/tiff/kfile_tiff.cpp138
-rw-r--r--kfile-plugins/tiff/kfile_tiff.h10
-rw-r--r--kfile-plugins/xbm/kfile_xbm.cpp22
-rw-r--r--kfile-plugins/xbm/kfile_xbm.h4
-rw-r--r--kfile-plugins/xpm/kfile_xpm.cpp10
-rw-r--r--kfile-plugins/xpm/kfile_xpm.h4
-rw-r--r--kgamma/kcmkgamma/displaynumber.cpp20
-rw-r--r--kgamma/kcmkgamma/displaynumber.h8
-rw-r--r--kgamma/kcmkgamma/gammactrl.cpp28
-rw-r--r--kgamma/kcmkgamma/gammactrl.h24
-rw-r--r--kgamma/kcmkgamma/kgamma.cpp162
-rw-r--r--kgamma/kcmkgamma/kgamma.h18
-rw-r--r--kghostview/displayoptions.cpp14
-rw-r--r--kghostview/displayoptions.h20
-rw-r--r--kghostview/dscparse_adapter.cpp28
-rw-r--r--kghostview/dscparse_adapter.h22
-rw-r--r--kghostview/fullscreenfilter.cpp8
-rw-r--r--kghostview/fullscreenfilter.h6
-rw-r--r--kghostview/gssettingswidget.ui.h2
-rw-r--r--kghostview/infodialog.cpp48
-rw-r--r--kghostview/infodialog.h14
-rw-r--r--kghostview/kdscerrordialog.cpp30
-rw-r--r--kghostview/kdscerrordialog.h22
-rw-r--r--kghostview/kgv.h4
-rw-r--r--kghostview/kgv_miniwidget.cpp92
-rw-r--r--kghostview/kgv_miniwidget.h18
-rw-r--r--kghostview/kgv_view.cpp272
-rw-r--r--kghostview/kgv_view.h44
-rw-r--r--kghostview/kgvconfigdialog.cpp38
-rw-r--r--kghostview/kgvdocument.cpp132
-rw-r--r--kghostview/kgvdocument.h46
-rw-r--r--kghostview/kgvfactory.cpp10
-rw-r--r--kghostview/kgvfactory.h6
-rw-r--r--kghostview/kgvmainwidget.cpp10
-rw-r--r--kghostview/kgvmainwidget.h10
-rw-r--r--kghostview/kgvpagedecorator.cpp48
-rw-r--r--kghostview/kgvpagedecorator.h22
-rw-r--r--kghostview/kgvpageview.cpp42
-rw-r--r--kghostview/kgvpageview.h34
-rw-r--r--kghostview/kgvshell.cpp48
-rw-r--r--kghostview/kgvshell.h6
-rw-r--r--kghostview/kpswidget.cpp50
-rw-r--r--kghostview/kpswidget.h30
-rw-r--r--kghostview/logwindow.cpp28
-rw-r--r--kghostview/logwindow.h16
-rw-r--r--kghostview/main.cpp4
-rw-r--r--kghostview/marklist.cpp52
-rw-r--r--kghostview/marklist.h28
-rw-r--r--kghostview/scrollbox.cpp34
-rw-r--r--kghostview/scrollbox.h32
-rw-r--r--kghostview/thumbnailservice.cpp22
-rw-r--r--kghostview/thumbnailservice.h28
-rw-r--r--kghostview/viewcontrol.cpp60
-rw-r--r--kghostview/viewcontrol.h16
-rw-r--r--kiconedit/kcolorgrid.cpp38
-rw-r--r--kiconedit/kcolorgrid.h24
-rw-r--r--kiconedit/kicon.cpp62
-rw-r--r--kiconedit/kicon.h30
-rw-r--r--kiconedit/kiconcolors.cpp22
-rw-r--r--kiconedit/kiconcolors.h16
-rw-r--r--kiconedit/kiconconfig.cpp176
-rw-r--r--kiconedit/kiconconfig.h42
-rw-r--r--kiconedit/kiconedit.cpp192
-rw-r--r--kiconedit/kiconedit.h40
-rw-r--r--kiconedit/kiconeditslots.cpp50
-rw-r--r--kiconedit/kicongrid.cpp246
-rw-r--r--kiconedit/kicongrid.h112
-rw-r--r--kiconedit/knew.cpp66
-rw-r--r--kiconedit/knew.h64
-rw-r--r--kiconedit/kresize.cpp28
-rw-r--r--kiconedit/kresize.h8
-rw-r--r--kiconedit/palettetoolbar.cpp70
-rw-r--r--kiconedit/palettetoolbar.h18
-rw-r--r--kiconedit/properties.cpp16
-rw-r--r--kiconedit/properties.h38
-rw-r--r--kiconedit/utils.cpp18
-rw-r--r--kiconedit/utils.h16
-rw-r--r--kmrml/kmrml/algorithmcombo.cpp8
-rw-r--r--kmrml/kmrml/algorithmcombo.h4
-rw-r--r--kmrml/kmrml/algorithmdialog.cpp56
-rw-r--r--kmrml/kmrml/algorithmdialog.h4
-rw-r--r--kmrml/kmrml/browser.cpp10
-rw-r--r--kmrml/kmrml/browser.h4
-rw-r--r--kmrml/kmrml/collectioncombo.cpp14
-rw-r--r--kmrml/kmrml/collectioncombo.h8
-rw-r--r--kmrml/kmrml/kcontrol/indexcleaner.cpp16
-rw-r--r--kmrml/kmrml/kcontrol/indexcleaner.h10
-rw-r--r--kmrml/kmrml/kcontrol/indexer.cpp46
-rw-r--r--kmrml/kmrml/kcontrol/indexer.h12
-rw-r--r--kmrml/kmrml/kcontrol/indextest.cpp8
-rw-r--r--kmrml/kmrml/kcontrol/indextest.h2
-rw-r--r--kmrml/kmrml/kcontrol/kcmkmrml.cpp36
-rw-r--r--kmrml/kmrml/kcontrol/kcmkmrml.h4
-rw-r--r--kmrml/kmrml/kcontrol/mainpage.cpp138
-rw-r--r--kmrml/kmrml/kcontrol/mainpage.h20
-rw-r--r--kmrml/kmrml/lib/kmrml_config.cpp62
-rw-r--r--kmrml/kmrml/lib/kmrml_config.h46
-rw-r--r--kmrml/kmrml/lib/mrml_shared.cpp220
-rw-r--r--kmrml/kmrml/lib/mrml_shared.h220
-rw-r--r--kmrml/kmrml/lib/mrml_utils.h2
-rw-r--r--kmrml/kmrml/lib/watcher_stub.cpp38
-rw-r--r--kmrml/kmrml/lib/watcher_stub.h22
-rw-r--r--kmrml/kmrml/loader.cpp18
-rw-r--r--kmrml/kmrml/loader.h18
-rw-r--r--kmrml/kmrml/mrml.cpp34
-rw-r--r--kmrml/kmrml/mrml.h28
-rw-r--r--kmrml/kmrml/mrml_creator.cpp36
-rw-r--r--kmrml/kmrml/mrml_creator.h20
-rw-r--r--kmrml/kmrml/mrml_elements.cpp98
-rw-r--r--kmrml/kmrml/mrml_elements.h148
-rw-r--r--kmrml/kmrml/mrml_part.cpp204
-rw-r--r--kmrml/kmrml/mrml_part.h60
-rw-r--r--kmrml/kmrml/mrml_view.cpp120
-rw-r--r--kmrml/kmrml/mrml_view.h68
-rw-r--r--kmrml/kmrml/mrmlsearch.cpp10
-rw-r--r--kmrml/kmrml/propertysheet.cpp26
-rw-r--r--kmrml/kmrml/propertysheet.h34
-rw-r--r--kmrml/kmrml/propertywidgets.cpp26
-rw-r--r--kmrml/kmrml/propertywidgets.h18
-rw-r--r--kmrml/kmrml/server/watcher.cpp50
-rw-r--r--kmrml/kmrml/server/watcher.h46
-rw-r--r--kolourpaint/cursors/kpcursorlightcross.cpp10
-rw-r--r--kolourpaint/cursors/kpcursorlightcross.h4
-rw-r--r--kolourpaint/cursors/kpcursorprovider.cpp6
-rw-r--r--kolourpaint/cursors/kpcursorprovider.h4
-rw-r--r--kolourpaint/kolourpaint.cpp6
-rw-r--r--kolourpaint/kpcolor.cpp14
-rw-r--r--kolourpaint/kpcolor.h22
-rw-r--r--kolourpaint/kpcommandhistory.cpp52
-rw-r--r--kolourpaint/kpcommandhistory.h28
-rw-r--r--kolourpaint/kpdefs.h108
-rw-r--r--kolourpaint/kpdocument.cpp184
-rw-r--r--kolourpaint/kpdocument.h76
-rw-r--r--kolourpaint/kpdocumentmetainfo.cpp42
-rw-r--r--kolourpaint/kpdocumentmetainfo.h30
-rw-r--r--kolourpaint/kpdocumentsaveoptions.cpp88
-rw-r--r--kolourpaint/kpdocumentsaveoptions.h28
-rw-r--r--kolourpaint/kpdocumentsaveoptionswidget.cpp168
-rw-r--r--kolourpaint/kpdocumentsaveoptionswidget.h64
-rw-r--r--kolourpaint/kpmainwindow.cpp164
-rw-r--r--kolourpaint/kpmainwindow.h102
-rw-r--r--kolourpaint/kpmainwindow_edit.cpp156
-rw-r--r--kolourpaint/kpmainwindow_file.cpp142
-rw-r--r--kolourpaint/kpmainwindow_help.cpp20
-rw-r--r--kolourpaint/kpmainwindow_image.cpp38
-rw-r--r--kolourpaint/kpmainwindow_settings.cpp18
-rw-r--r--kolourpaint/kpmainwindow_statusbar.cpp50
-rw-r--r--kolourpaint/kpmainwindow_text.cpp14
-rw-r--r--kolourpaint/kpmainwindow_tools.cpp120
-rw-r--r--kolourpaint/kpmainwindow_view.cpp110
-rw-r--r--kolourpaint/kpselection.cpp272
-rw-r--r--kolourpaint/kpselection.h106
-rw-r--r--kolourpaint/kpselectiondrag.cpp76
-rw-r--r--kolourpaint/kpselectiondrag.h16
-rw-r--r--kolourpaint/kpsinglekeytriggersaction.cpp4
-rw-r--r--kolourpaint/kpsinglekeytriggersaction.h4
-rw-r--r--kolourpaint/kptemppixmap.cpp12
-rw-r--r--kolourpaint/kptemppixmap.h18
-rw-r--r--kolourpaint/kptextstyle.cpp24
-rw-r--r--kolourpaint/kptextstyle.h24
-rw-r--r--kolourpaint/kpthumbnail.cpp42
-rw-r--r--kolourpaint/kpthumbnail.h6
-rw-r--r--kolourpaint/kptool.cpp192
-rw-r--r--kolourpaint/kptool.h148
-rw-r--r--kolourpaint/kpview.cpp342
-rw-r--r--kolourpaint/kpview.h106
-rw-r--r--kolourpaint/kpviewmanager.cpp74
-rw-r--r--kolourpaint/kpviewmanager.h38
-rw-r--r--kolourpaint/kpviewscrollablecontainer.cpp282
-rw-r--r--kolourpaint/kpviewscrollablecontainer.h112
-rw-r--r--kolourpaint/kpwidgetmapper.cpp22
-rw-r--r--kolourpaint/kpwidgetmapper.h14
-rw-r--r--kolourpaint/pixmapfx/kpcoloreffect.cpp32
-rw-r--r--kolourpaint/pixmapfx/kpcoloreffect.h22
-rw-r--r--kolourpaint/pixmapfx/kpeffectbalance.cpp90
-rw-r--r--kolourpaint/pixmapfx/kpeffectbalance.h14
-rw-r--r--kolourpaint/pixmapfx/kpeffectblursharpen.cpp48
-rw-r--r--kolourpaint/pixmapfx/kpeffectblursharpen.h14
-rw-r--r--kolourpaint/pixmapfx/kpeffectemboss.cpp44
-rw-r--r--kolourpaint/pixmapfx/kpeffectemboss.h14
-rw-r--r--kolourpaint/pixmapfx/kpeffectflatten.cpp70
-rw-r--r--kolourpaint/pixmapfx/kpeffectflatten.h42
-rw-r--r--kolourpaint/pixmapfx/kpeffectinvert.cpp64
-rw-r--r--kolourpaint/pixmapfx/kpeffectinvert.h24
-rw-r--r--kolourpaint/pixmapfx/kpeffectreducecolors.cpp82
-rw-r--r--kolourpaint/pixmapfx/kpeffectreducecolors.h24
-rw-r--r--kolourpaint/pixmapfx/kpeffectsdialog.cpp68
-rw-r--r--kolourpaint/pixmapfx/kpeffectsdialog.h18
-rw-r--r--kolourpaint/pixmapfx/kpfloodfill.cpp48
-rw-r--r--kolourpaint/pixmapfx/kpfloodfill.h24
-rw-r--r--kolourpaint/pixmapfx/kppixmapfx.cpp352
-rw-r--r--kolourpaint/pixmapfx/kppixmapfx.h194
-rw-r--r--kolourpaint/tools/kptoolaction.cpp12
-rw-r--r--kolourpaint/tools/kptoolaction.h12
-rw-r--r--kolourpaint/tools/kptoolairspray.cpp58
-rw-r--r--kolourpaint/tools/kptoolairspray.h28
-rw-r--r--kolourpaint/tools/kptoolautocrop.cpp70
-rw-r--r--kolourpaint/tools/kptoolautocrop.h24
-rw-r--r--kolourpaint/tools/kptoolclear.cpp10
-rw-r--r--kolourpaint/tools/kptoolclear.h8
-rw-r--r--kolourpaint/tools/kptoolcolorpicker.cpp16
-rw-r--r--kolourpaint/tools/kptoolcolorpicker.h14
-rw-r--r--kolourpaint/tools/kptoolconverttograyscale.cpp16
-rw-r--r--kolourpaint/tools/kptoolconverttograyscale.h8
-rw-r--r--kolourpaint/tools/kptoolcrop.cpp34
-rw-r--r--kolourpaint/tools/kptoolflip.cpp38
-rw-r--r--kolourpaint/tools/kptoolflip.h10
-rw-r--r--kolourpaint/tools/kptoolfloodfill.cpp30
-rw-r--r--kolourpaint/tools/kptoolfloodfill.h14
-rw-r--r--kolourpaint/tools/kptoolpen.cpp136
-rw-r--r--kolourpaint/tools/kptoolpen.h58
-rw-r--r--kolourpaint/tools/kptoolpolygon.cpp118
-rw-r--r--kolourpaint/tools/kptoolpolygon.h54
-rw-r--r--kolourpaint/tools/kptoolpreviewdialog.cpp74
-rw-r--r--kolourpaint/tools/kptoolpreviewdialog.h36
-rw-r--r--kolourpaint/tools/kptoolrectangle.cpp94
-rw-r--r--kolourpaint/tools/kptoolrectangle.h48
-rw-r--r--kolourpaint/tools/kptoolresizescale.cpp220
-rw-r--r--kolourpaint/tools/kptoolresizescale.h42
-rw-r--r--kolourpaint/tools/kptoolrotate.cpp120
-rw-r--r--kolourpaint/tools/kptoolrotate.h24
-rw-r--r--kolourpaint/tools/kptoolselection.cpp178
-rw-r--r--kolourpaint/tools/kptoolselection.h70
-rw-r--r--kolourpaint/tools/kptoolskew.cpp76
-rw-r--r--kolourpaint/tools/kptoolskew.h16
-rw-r--r--kolourpaint/tools/kptooltext.cpp132
-rw-r--r--kolourpaint/tools/kptooltext.h38
-rw-r--r--kolourpaint/views/kpthumbnailview.cpp6
-rw-r--r--kolourpaint/views/kpthumbnailview.h6
-rw-r--r--kolourpaint/views/kpunzoomedthumbnailview.cpp14
-rw-r--r--kolourpaint/views/kpunzoomedthumbnailview.h4
-rw-r--r--kolourpaint/views/kpzoomedthumbnailview.cpp6
-rw-r--r--kolourpaint/views/kpzoomedthumbnailview.h4
-rw-r--r--kolourpaint/views/kpzoomedview.cpp2
-rw-r--r--kolourpaint/views/kpzoomedview.h2
-rw-r--r--kolourpaint/widgets/kpcolorsimilaritycube.cpp82
-rw-r--r--kolourpaint/widgets/kpcolorsimilaritycube.h16
-rw-r--r--kolourpaint/widgets/kpcolorsimilaritydialog.cpp32
-rw-r--r--kolourpaint/widgets/kpcolorsimilaritydialog.h2
-rw-r--r--kolourpaint/widgets/kpcolortoolbar.cpp266
-rw-r--r--kolourpaint/widgets/kpcolortoolbar.h74
-rw-r--r--kolourpaint/widgets/kpresizesignallinglabel.cpp14
-rw-r--r--kolourpaint/widgets/kpresizesignallinglabel.h8
-rw-r--r--kolourpaint/widgets/kpsqueezedtextlabel.cpp38
-rw-r--r--kolourpaint/widgets/kpsqueezedtextlabel.h20
-rw-r--r--kolourpaint/widgets/kptooltoolbar.cpp108
-rw-r--r--kolourpaint/widgets/kptooltoolbar.h32
-rw-r--r--kolourpaint/widgets/kptoolwidgetbase.cpp62
-rw-r--r--kolourpaint/widgets/kptoolwidgetbase.h34
-rw-r--r--kolourpaint/widgets/kptoolwidgetbrush.cpp24
-rw-r--r--kolourpaint/widgets/kptoolwidgetbrush.h12
-rw-r--r--kolourpaint/widgets/kptoolwidgeterasersize.cpp30
-rw-r--r--kolourpaint/widgets/kptoolwidgeterasersize.h8
-rw-r--r--kolourpaint/widgets/kptoolwidgetfillstyle.cpp42
-rw-r--r--kolourpaint/widgets/kptoolwidgetfillstyle.h16
-rw-r--r--kolourpaint/widgets/kptoolwidgetlinewidth.cpp16
-rw-r--r--kolourpaint/widgets/kptoolwidgetlinewidth.h2
-rw-r--r--kolourpaint/widgets/kptoolwidgetopaqueortransparent.cpp2
-rw-r--r--kolourpaint/widgets/kptoolwidgetopaqueortransparent.h2
-rw-r--r--kolourpaint/widgets/kptoolwidgetspraycansize.cpp18
-rw-r--r--kolourpaint/widgets/kptoolwidgetspraycansize.h2
-rw-r--r--kooka/dwmenuaction.cpp10
-rw-r--r--kooka/dwmenuaction.h6
-rw-r--r--kooka/imageselectline.cpp30
-rw-r--r--kooka/imageselectline.h12
-rw-r--r--kooka/img_saver.cpp200
-rw-r--r--kooka/img_saver.h110
-rw-r--r--kooka/imgnamecombo.cpp26
-rw-r--r--kooka/imgnamecombo.h12
-rw-r--r--kooka/imgprintdialog.cpp88
-rw-r--r--kooka/imgprintdialog.h40
-rw-r--r--kooka/kadmosocr.cpp56
-rw-r--r--kooka/kadmosocr.h42
-rw-r--r--kooka/kocrbase.cpp116
-rw-r--r--kooka/kocrbase.h50
-rw-r--r--kooka/kocrgocr.cpp40
-rw-r--r--kooka/kocrgocr.h16
-rw-r--r--kooka/kocrkadmos.cpp122
-rw-r--r--kooka/kocrkadmos.h70
-rw-r--r--kooka/kocrocrad.cpp62
-rw-r--r--kooka/kocrocrad.h28
-rw-r--r--kooka/kooka.cpp118
-rw-r--r--kooka/kooka.h10
-rw-r--r--kooka/kookaimage.cpp42
-rw-r--r--kooka/kookaimage.h28
-rw-r--r--kooka/kookapref.cpp166
-rw-r--r--kooka/kookapref.h38
-rw-r--r--kooka/kookaprint.cpp106
-rw-r--r--kooka/kookaprint.h32
-rw-r--r--kooka/kookaview.cpp230
-rw-r--r--kooka/kookaview.h44
-rw-r--r--kooka/ksaneocr.cpp258
-rw-r--r--kooka/ksaneocr.h64
-rw-r--r--kooka/main.cpp6
-rw-r--r--kooka/ocrresedit.cpp30
-rw-r--r--kooka/ocrresedit.h22
-rw-r--r--kooka/ocrword.cpp42
-rw-r--r--kooka/ocrword.h44
-rw-r--r--kooka/scanpackager.cpp174
-rw-r--r--kooka/scanpackager.h70
-rw-r--r--kooka/thumbview.cpp64
-rw-r--r--kooka/thumbview.h40
-rw-r--r--kooka/thumbviewitem.cpp4
-rw-r--r--kooka/thumbviewitem.h6
-rw-r--r--kpdf/conf/dlggeneral.ui.h2
-rw-r--r--kpdf/conf/dlgperformance.ui.h2
-rw-r--r--kpdf/conf/preferencesdialog.cpp2
-rw-r--r--kpdf/conf/preferencesdialog.h4
-rw-r--r--kpdf/core/document.cpp302
-rw-r--r--kpdf/core/document.h38
-rw-r--r--kpdf/core/generator.h12
-rw-r--r--kpdf/core/generator_kimgio/generator_kimgio.cpp12
-rw-r--r--kpdf/core/generator_kimgio/generator_kimgio.h4
-rw-r--r--kpdf/core/generator_pdf/generator_pdf.cpp146
-rw-r--r--kpdf/core/generator_pdf/generator_pdf.h32
-rw-r--r--kpdf/core/generator_pdf/gp_outputdev.cpp36
-rw-r--r--kpdf/core/generator_pdf/gp_outputdev.h16
-rw-r--r--kpdf/core/link.cpp12
-rw-r--r--kpdf/core/link.h36
-rw-r--r--kpdf/core/observer.h6
-rw-r--r--kpdf/core/page.cpp46
-rw-r--r--kpdf/core/page.h32
-rw-r--r--kpdf/error.cpp6
-rw-r--r--kpdf/part.cpp220
-rw-r--r--kpdf/part.h48
-rw-r--r--kpdf/shell/shell.cpp32
-rw-r--r--kpdf/ui/minibar.cpp162
-rw-r--r--kpdf/ui/minibar.h10
-rw-r--r--kpdf/ui/pagepainter.cpp46
-rw-r--r--kpdf/ui/pagepainter.h6
-rw-r--r--kpdf/ui/pageview.cpp334
-rw-r--r--kpdf/ui/pageview.h42
-rw-r--r--kpdf/ui/pageviewutils.cpp46
-rw-r--r--kpdf/ui/pageviewutils.h26
-rw-r--r--kpdf/ui/presentationwidget.cpp216
-rw-r--r--kpdf/ui/presentationwidget.h56
-rw-r--r--kpdf/ui/propertiesdialog.cpp42
-rw-r--r--kpdf/ui/propertiesdialog.h2
-rw-r--r--kpdf/ui/searchwidget.cpp32
-rw-r--r--kpdf/ui/searchwidget.h6
-rw-r--r--kpdf/ui/thumbnaillist.cpp102
-rw-r--r--kpdf/ui/thumbnaillist.h44
-rw-r--r--kpdf/ui/toc.cpp40
-rw-r--r--kpdf/ui/toc.h12
-rw-r--r--kpdf/xpdf/xpdf/GlobalParams.cc22
-rw-r--r--kpovmodeler/pm2dcontrolpoint.cpp8
-rw-r--r--kpovmodeler/pm2dcontrolpoint.h6
-rw-r--r--kpovmodeler/pm3dcontrolpoint.cpp2
-rw-r--r--kpovmodeler/pm3dcontrolpoint.h2
-rw-r--r--kpovmodeler/pmactions.cpp82
-rw-r--r--kpovmodeler/pmactions.h44
-rw-r--r--kpovmodeler/pmbicubicpatch.cpp12
-rw-r--r--kpovmodeler/pmbicubicpatch.h8
-rw-r--r--kpovmodeler/pmbicubicpatchedit.cpp50
-rw-r--r--kpovmodeler/pmbicubicpatchedit.h10
-rw-r--r--kpovmodeler/pmblendmapmodifiers.cpp20
-rw-r--r--kpovmodeler/pmblendmapmodifiers.h8
-rw-r--r--kpovmodeler/pmblendmapmodifiersedit.cpp52
-rw-r--r--kpovmodeler/pmblendmapmodifiersedit.h24
-rw-r--r--kpovmodeler/pmblob.cpp6
-rw-r--r--kpovmodeler/pmblob.h8
-rw-r--r--kpovmodeler/pmblobcylinder.cpp6
-rw-r--r--kpovmodeler/pmblobcylinder.h8
-rw-r--r--kpovmodeler/pmblobcylinderedit.cpp34
-rw-r--r--kpovmodeler/pmblobcylinderedit.h2
-rw-r--r--kpovmodeler/pmblobedit.cpp22
-rw-r--r--kpovmodeler/pmblobedit.h8
-rw-r--r--kpovmodeler/pmblobsphere.cpp6
-rw-r--r--kpovmodeler/pmblobsphere.h8
-rw-r--r--kpovmodeler/pmblobsphereedit.cpp26
-rw-r--r--kpovmodeler/pmblobsphereedit.h2
-rw-r--r--kpovmodeler/pmboundedby.cpp6
-rw-r--r--kpovmodeler/pmboundedby.h8
-rw-r--r--kpovmodeler/pmboundedbyedit.cpp10
-rw-r--r--kpovmodeler/pmboundedbyedit.h8
-rw-r--r--kpovmodeler/pmbox.cpp6
-rw-r--r--kpovmodeler/pmbox.h8
-rw-r--r--kpovmodeler/pmboxedit.cpp16
-rw-r--r--kpovmodeler/pmboxedit.h2
-rw-r--r--kpovmodeler/pmbumpmap.cpp10
-rw-r--r--kpovmodeler/pmbumpmap.h14
-rw-r--r--kpovmodeler/pmbumpmapedit.cpp76
-rw-r--r--kpovmodeler/pmbumpmapedit.h30
-rw-r--r--kpovmodeler/pmcamera.cpp12
-rw-r--r--kpovmodeler/pmcamera.h12
-rw-r--r--kpovmodeler/pmcameraedit.cpp110
-rw-r--r--kpovmodeler/pmcameraedit.h24
-rw-r--r--kpovmodeler/pmclippedby.cpp6
-rw-r--r--kpovmodeler/pmclippedby.h8
-rw-r--r--kpovmodeler/pmclippedbyedit.cpp10
-rw-r--r--kpovmodeler/pmclippedbyedit.h8
-rw-r--r--kpovmodeler/pmcolor.cpp30
-rw-r--r--kpovmodeler/pmcolor.h16
-rw-r--r--kpovmodeler/pmcoloredit.cpp44
-rw-r--r--kpovmodeler/pmcoloredit.h8
-rw-r--r--kpovmodeler/pmcolorsettings.cpp46
-rw-r--r--kpovmodeler/pmcolorsettings.h2
-rw-r--r--kpovmodeler/pmcommand.h14
-rw-r--r--kpovmodeler/pmcommandmanager.cpp10
-rw-r--r--kpovmodeler/pmcommandmanager.h12
-rw-r--r--kpovmodeler/pmcomment.cpp22
-rw-r--r--kpovmodeler/pmcomment.h18
-rw-r--r--kpovmodeler/pmcommentedit.cpp12
-rw-r--r--kpovmodeler/pmcommentedit.h6
-rw-r--r--kpovmodeler/pmcompositeobject.cpp4
-rw-r--r--kpovmodeler/pmcompositeobject.h2
-rw-r--r--kpovmodeler/pmcone.cpp6
-rw-r--r--kpovmodeler/pmcone.h8
-rw-r--r--kpovmodeler/pmconeedit.cpp38
-rw-r--r--kpovmodeler/pmconeedit.h6
-rw-r--r--kpovmodeler/pmcontrolpoint.cpp2
-rw-r--r--kpovmodeler/pmcontrolpoint.h14
-rw-r--r--kpovmodeler/pmcsg.cpp22
-rw-r--r--kpovmodeler/pmcsg.h8
-rw-r--r--kpovmodeler/pmcsgedit.cpp18
-rw-r--r--kpovmodeler/pmcsgedit.h6
-rw-r--r--kpovmodeler/pmcylinder.cpp6
-rw-r--r--kpovmodeler/pmcylinder.h8
-rw-r--r--kpovmodeler/pmcylinderedit.cpp34
-rw-r--r--kpovmodeler/pmcylinderedit.h6
-rw-r--r--kpovmodeler/pmdatachangecommand.cpp2
-rw-r--r--kpovmodeler/pmdeclare.cpp28
-rw-r--r--kpovmodeler/pmdeclare.h18
-rw-r--r--kpovmodeler/pmdeclareedit.cpp52
-rw-r--r--kpovmodeler/pmdeclareedit.h20
-rw-r--r--kpovmodeler/pmdefaults.h36
-rw-r--r--kpovmodeler/pmdeletecommand.cpp8
-rw-r--r--kpovmodeler/pmdeletecommand.h8
-rw-r--r--kpovmodeler/pmdensity.cpp4
-rw-r--r--kpovmodeler/pmdensity.h6
-rw-r--r--kpovmodeler/pmdensityedit.cpp6
-rw-r--r--kpovmodeler/pmdensityedit.h2
-rw-r--r--kpovmodeler/pmdetailobject.cpp2
-rw-r--r--kpovmodeler/pmdetailobject.h2
-rw-r--r--kpovmodeler/pmdetailobjectedit.cpp22
-rw-r--r--kpovmodeler/pmdetailobjectedit.h14
-rw-r--r--kpovmodeler/pmdialogeditbase.cpp112
-rw-r--r--kpovmodeler/pmdialogeditbase.h60
-rw-r--r--kpovmodeler/pmdialogview.cpp82
-rw-r--r--kpovmodeler/pmdialogview.h44
-rw-r--r--kpovmodeler/pmdisc.cpp6
-rw-r--r--kpovmodeler/pmdisc.h8
-rw-r--r--kpovmodeler/pmdiscedit.cpp40
-rw-r--r--kpovmodeler/pmdiscedit.h2
-rw-r--r--kpovmodeler/pmdistancecontrolpoint.cpp4
-rw-r--r--kpovmodeler/pmdistancecontrolpoint.h4
-rw-r--r--kpovmodeler/pmdockwidget.cpp628
-rw-r--r--kpovmodeler/pmdockwidget.h186
-rw-r--r--kpovmodeler/pmdockwidget_private.cpp68
-rw-r--r--kpovmodeler/pmdockwidget_private.h40
-rw-r--r--kpovmodeler/pmdocumentationmap.cpp46
-rw-r--r--kpovmodeler/pmdocumentationmap.h46
-rw-r--r--kpovmodeler/pmdragwidget.cpp10
-rw-r--r--kpovmodeler/pmdragwidget.h12
-rw-r--r--kpovmodeler/pmenumproperty.cpp8
-rw-r--r--kpovmodeler/pmenumproperty.h10
-rw-r--r--kpovmodeler/pmerrordialog.cpp30
-rw-r--r--kpovmodeler/pmerrordialog.h22
-rw-r--r--kpovmodeler/pmface.h8
-rw-r--r--kpovmodeler/pmfactory.cpp6
-rw-r--r--kpovmodeler/pmfactory.h6
-rw-r--r--kpovmodeler/pmfiledialog.cpp32
-rw-r--r--kpovmodeler/pmfiledialog.h8
-rw-r--r--kpovmodeler/pmfinish.cpp6
-rw-r--r--kpovmodeler/pmfinish.h8
-rw-r--r--kpovmodeler/pmfinishedit.cpp152
-rw-r--r--kpovmodeler/pmfinishedit.h52
-rw-r--r--kpovmodeler/pmfog.cpp6
-rw-r--r--kpovmodeler/pmfog.h8
-rw-r--r--kpovmodeler/pmfogedit.cpp90
-rw-r--r--kpovmodeler/pmfogedit.h22
-rw-r--r--kpovmodeler/pmformulalabel.cpp72
-rw-r--r--kpovmodeler/pmformulalabel.h28
-rw-r--r--kpovmodeler/pmglobalphotons.cpp8
-rw-r--r--kpovmodeler/pmglobalphotons.h8
-rw-r--r--kpovmodeler/pmglobalphotonsedit.cpp118
-rw-r--r--kpovmodeler/pmglobalphotonsedit.h12
-rw-r--r--kpovmodeler/pmglobals.h4
-rw-r--r--kpovmodeler/pmglobalsettings.cpp8
-rw-r--r--kpovmodeler/pmglobalsettings.h8
-rw-r--r--kpovmodeler/pmglobalsettingsedit.cpp110
-rw-r--r--kpovmodeler/pmglobalsettingsedit.h14
-rw-r--r--kpovmodeler/pmglview.cpp188
-rw-r--r--kpovmodeler/pmglview.h92
-rw-r--r--kpovmodeler/pmgraphicalobject.cpp2
-rw-r--r--kpovmodeler/pmgraphicalobject.h2
-rw-r--r--kpovmodeler/pmgraphicalobjectedit.cpp52
-rw-r--r--kpovmodeler/pmgraphicalobjectedit.h24
-rw-r--r--kpovmodeler/pmgridsettings.cpp48
-rw-r--r--kpovmodeler/pmgridsettings.h2
-rw-r--r--kpovmodeler/pmheightfield.cpp32
-rw-r--r--kpovmodeler/pmheightfield.h18
-rw-r--r--kpovmodeler/pmheightfieldedit.cpp60
-rw-r--r--kpovmodeler/pmheightfieldedit.h22
-rw-r--r--kpovmodeler/pmheightfieldroam.cpp14
-rw-r--r--kpovmodeler/pmheightfieldroam.h6
-rw-r--r--kpovmodeler/pmimagemap.cpp32
-rw-r--r--kpovmodeler/pmimagemap.h26
-rw-r--r--kpovmodeler/pmimagemapedit.cpp186
-rw-r--r--kpovmodeler/pmimagemapedit.h56
-rw-r--r--kpovmodeler/pminserterrordialog.cpp18
-rw-r--r--kpovmodeler/pminserterrordialog.h14
-rw-r--r--kpovmodeler/pminsertpopup.cpp10
-rw-r--r--kpovmodeler/pminsertpopup.h4
-rw-r--r--kpovmodeler/pminsertrulesystem.cpp256
-rw-r--r--kpovmodeler/pminsertrulesystem.h222
-rw-r--r--kpovmodeler/pminterior.cpp6
-rw-r--r--kpovmodeler/pminterior.h8
-rw-r--r--kpovmodeler/pminterioredit.cpp48
-rw-r--r--kpovmodeler/pminterioredit.h18
-rw-r--r--kpovmodeler/pminteriortexture.cpp4
-rw-r--r--kpovmodeler/pminteriortexture.h6
-rw-r--r--kpovmodeler/pminteriortextureedit.cpp6
-rw-r--r--kpovmodeler/pminteriortextureedit.h2
-rw-r--r--kpovmodeler/pmiomanager.cpp8
-rw-r--r--kpovmodeler/pmiomanager.h44
-rw-r--r--kpovmodeler/pmisosurface.cpp14
-rw-r--r--kpovmodeler/pmisosurface.h14
-rw-r--r--kpovmodeler/pmisosurfaceedit.cpp96
-rw-r--r--kpovmodeler/pmisosurfaceedit.h30
-rw-r--r--kpovmodeler/pmjuliafractal.cpp22
-rw-r--r--kpovmodeler/pmjuliafractal.h16
-rw-r--r--kpovmodeler/pmjuliafractaledit.cpp64
-rw-r--r--kpovmodeler/pmjuliafractaledit.h12
-rw-r--r--kpovmodeler/pmlathe.cpp68
-rw-r--r--kpovmodeler/pmlathe.h30
-rw-r--r--kpovmodeler/pmlatheedit.cpp68
-rw-r--r--kpovmodeler/pmlatheedit.h26
-rw-r--r--kpovmodeler/pmlayoutsettings.cpp238
-rw-r--r--kpovmodeler/pmlayoutsettings.h74
-rw-r--r--kpovmodeler/pmlibrarybrowser.cpp92
-rw-r--r--kpovmodeler/pmlibrarybrowser.h46
-rw-r--r--kpovmodeler/pmlibraryentrypreview.cpp88
-rw-r--r--kpovmodeler/pmlibraryentrypreview.h42
-rw-r--r--kpovmodeler/pmlibraryhandle.cpp94
-rw-r--r--kpovmodeler/pmlibraryhandle.h50
-rw-r--r--kpovmodeler/pmlibraryhandleedit.cpp52
-rw-r--r--kpovmodeler/pmlibraryhandleedit.h24
-rw-r--r--kpovmodeler/pmlibraryiconview.cpp84
-rw-r--r--kpovmodeler/pmlibraryiconview.h36
-rw-r--r--kpovmodeler/pmlibrarymanager.cpp26
-rw-r--r--kpovmodeler/pmlibrarymanager.h16
-rw-r--r--kpovmodeler/pmlibraryobject.cpp94
-rw-r--r--kpovmodeler/pmlibraryobject.h44
-rw-r--r--kpovmodeler/pmlibraryobjectsearch.cpp42
-rw-r--r--kpovmodeler/pmlibraryobjectsearch.h14
-rw-r--r--kpovmodeler/pmlight.cpp8
-rw-r--r--kpovmodeler/pmlight.h8
-rw-r--r--kpovmodeler/pmlightedit.cpp130
-rw-r--r--kpovmodeler/pmlightedit.h50
-rw-r--r--kpovmodeler/pmlightgroup.cpp8
-rw-r--r--kpovmodeler/pmlightgroup.h8
-rw-r--r--kpovmodeler/pmlightgroupedit.cpp16
-rw-r--r--kpovmodeler/pmlightgroupedit.h6
-rw-r--r--kpovmodeler/pmline.h6
-rw-r--r--kpovmodeler/pmlineedits.cpp26
-rw-r--r--kpovmodeler/pmlineedits.h10
-rw-r--r--kpovmodeler/pmlinkedit.cpp42
-rw-r--r--kpovmodeler/pmlinkedit.h30
-rw-r--r--kpovmodeler/pmlistpattern.cpp26
-rw-r--r--kpovmodeler/pmlistpattern.h40
-rw-r--r--kpovmodeler/pmlistpatternedit.cpp40
-rw-r--r--kpovmodeler/pmlistpatternedit.h14
-rw-r--r--kpovmodeler/pmlookslike.cpp6
-rw-r--r--kpovmodeler/pmlookslike.h8
-rw-r--r--kpovmodeler/pmmapmemento.cpp4
-rw-r--r--kpovmodeler/pmmapmemento.h14
-rw-r--r--kpovmodeler/pmmaterial.cpp4
-rw-r--r--kpovmodeler/pmmaterial.h6
-rw-r--r--kpovmodeler/pmmaterialedit.cpp6
-rw-r--r--kpovmodeler/pmmaterialedit.h2
-rw-r--r--kpovmodeler/pmmaterialmap.cpp10
-rw-r--r--kpovmodeler/pmmaterialmap.h14
-rw-r--r--kpovmodeler/pmmaterialmapedit.cpp66
-rw-r--r--kpovmodeler/pmmaterialmapedit.h28
-rw-r--r--kpovmodeler/pmmatrix.cpp16
-rw-r--r--kpovmodeler/pmmatrix.h6
-rw-r--r--kpovmodeler/pmmedia.cpp6
-rw-r--r--kpovmodeler/pmmedia.h8
-rw-r--r--kpovmodeler/pmmediaedit.cpp128
-rw-r--r--kpovmodeler/pmmediaedit.h30
-rw-r--r--kpovmodeler/pmmemento.cpp10
-rw-r--r--kpovmodeler/pmmemento.h30
-rw-r--r--kpovmodeler/pmmesh.cpp24
-rw-r--r--kpovmodeler/pmmesh.h10
-rw-r--r--kpovmodeler/pmmeshedit.cpp22
-rw-r--r--kpovmodeler/pmmeshedit.h8
-rw-r--r--kpovmodeler/pmmessage.cpp2
-rw-r--r--kpovmodeler/pmmessage.h14
-rw-r--r--kpovmodeler/pmmetaobject.cpp6
-rw-r--r--kpovmodeler/pmmetaobject.h54
-rw-r--r--kpovmodeler/pmmovecommand.cpp14
-rw-r--r--kpovmodeler/pmmovecommand.h2
-rw-r--r--kpovmodeler/pmnamedobject.cpp4
-rw-r--r--kpovmodeler/pmnamedobject.h8
-rw-r--r--kpovmodeler/pmnamedobjectedit.cpp20
-rw-r--r--kpovmodeler/pmnamedobjectedit.h8
-rw-r--r--kpovmodeler/pmnormal.cpp6
-rw-r--r--kpovmodeler/pmnormal.h8
-rw-r--r--kpovmodeler/pmnormaledit.cpp28
-rw-r--r--kpovmodeler/pmnormaledit.h8
-rw-r--r--kpovmodeler/pmobject.cpp22
-rw-r--r--kpovmodeler/pmobject.h48
-rw-r--r--kpovmodeler/pmobjectaction.h10
-rw-r--r--kpovmodeler/pmobjectdrag.cpp72
-rw-r--r--kpovmodeler/pmobjectdrag.h18
-rw-r--r--kpovmodeler/pmobjectlibrarysettings.cpp62
-rw-r--r--kpovmodeler/pmobjectlibrarysettings.h24
-rw-r--r--kpovmodeler/pmobjectlink.cpp8
-rw-r--r--kpovmodeler/pmobjectlink.h8
-rw-r--r--kpovmodeler/pmobjectlinkedit.cpp8
-rw-r--r--kpovmodeler/pmobjectlinkedit.h2
-rw-r--r--kpovmodeler/pmobjectselect.cpp64
-rw-r--r--kpovmodeler/pmobjectselect.h50
-rw-r--r--kpovmodeler/pmobjectsettings.cpp128
-rw-r--r--kpovmodeler/pmobjectsettings.h6
-rw-r--r--kpovmodeler/pmopenglsettings.cpp14
-rw-r--r--kpovmodeler/pmopenglsettings.h6
-rw-r--r--kpovmodeler/pmoutputdevice.cpp40
-rw-r--r--kpovmodeler/pmoutputdevice.h26
-rw-r--r--kpovmodeler/pmpalettevalue.cpp6
-rw-r--r--kpovmodeler/pmpalettevalue.h4
-rw-r--r--kpovmodeler/pmpalettevalueedit.cpp34
-rw-r--r--kpovmodeler/pmpalettevalueedit.h2
-rw-r--r--kpovmodeler/pmpalettevaluememento.cpp16
-rw-r--r--kpovmodeler/pmpalettevaluememento.h14
-rw-r--r--kpovmodeler/pmparser.cpp30
-rw-r--r--kpovmodeler/pmparser.h48
-rw-r--r--kpovmodeler/pmpart.cpp406
-rw-r--r--kpovmodeler/pmpart.h68
-rw-r--r--kpovmodeler/pmpartiface.h18
-rw-r--r--kpovmodeler/pmpattern.cpp14
-rw-r--r--kpovmodeler/pmpattern.h18
-rw-r--r--kpovmodeler/pmpatternedit.cpp244
-rw-r--r--kpovmodeler/pmpatternedit.h68
-rw-r--r--kpovmodeler/pmphotons.cpp6
-rw-r--r--kpovmodeler/pmphotons.h8
-rw-r--r--kpovmodeler/pmphotonsedit.cpp48
-rw-r--r--kpovmodeler/pmphotonsedit.h22
-rw-r--r--kpovmodeler/pmpigment.cpp6
-rw-r--r--kpovmodeler/pmpigment.h8
-rw-r--r--kpovmodeler/pmpigmentedit.cpp10
-rw-r--r--kpovmodeler/pmpigmentedit.h6
-rw-r--r--kpovmodeler/pmplane.cpp6
-rw-r--r--kpovmodeler/pmplane.h8
-rw-r--r--kpovmodeler/pmplaneedit.cpp30
-rw-r--r--kpovmodeler/pmplaneedit.h4
-rw-r--r--kpovmodeler/pmplanenormalcontrolpoint.cpp2
-rw-r--r--kpovmodeler/pmplanenormalcontrolpoint.h2
-rw-r--r--kpovmodeler/pmpluginmanager.cpp22
-rw-r--r--kpovmodeler/pmpluginmanager.h18
-rw-r--r--kpovmodeler/pmpluginsettings.cpp36
-rw-r--r--kpovmodeler/pmpluginsettings.h14
-rw-r--r--kpovmodeler/pmpoint.h6
-rw-r--r--kpovmodeler/pmpolynom.cpp6
-rw-r--r--kpovmodeler/pmpolynom.h8
-rw-r--r--kpovmodeler/pmpolynomedit.cpp64
-rw-r--r--kpovmodeler/pmpolynomedit.h18
-rw-r--r--kpovmodeler/pmpolynomexponents.cpp8
-rw-r--r--kpovmodeler/pmpolynomexponents.h10
-rw-r--r--kpovmodeler/pmpovray31format.cpp24
-rw-r--r--kpovmodeler/pmpovray31format.h16
-rw-r--r--kpovmodeler/pmpovray31serialization.cpp202
-rw-r--r--kpovmodeler/pmpovray35format.cpp24
-rw-r--r--kpovmodeler/pmpovray35format.h16
-rw-r--r--kpovmodeler/pmpovray35serialization.cpp118
-rw-r--r--kpovmodeler/pmpovrayformat.cpp6
-rw-r--r--kpovmodeler/pmpovrayformat.h8
-rw-r--r--kpovmodeler/pmpovraymatrix.cpp6
-rw-r--r--kpovmodeler/pmpovraymatrix.h8
-rw-r--r--kpovmodeler/pmpovraymatrixedit.cpp18
-rw-r--r--kpovmodeler/pmpovraymatrixedit.h2
-rw-r--r--kpovmodeler/pmpovrayoutputwidget.cpp28
-rw-r--r--kpovmodeler/pmpovrayoutputwidget.h14
-rw-r--r--kpovmodeler/pmpovrayparser.cpp88
-rw-r--r--kpovmodeler/pmpovrayparser.h10
-rw-r--r--kpovmodeler/pmpovrayrenderwidget.cpp62
-rw-r--r--kpovmodeler/pmpovrayrenderwidget.h42
-rw-r--r--kpovmodeler/pmpovraysettings.cpp148
-rw-r--r--kpovmodeler/pmpovraysettings.h32
-rw-r--r--kpovmodeler/pmpovraywidget.cpp104
-rw-r--r--kpovmodeler/pmpovraywidget.h36
-rw-r--r--kpovmodeler/pmpreviewsettings.cpp76
-rw-r--r--kpovmodeler/pmpreviewsettings.h16
-rw-r--r--kpovmodeler/pmprism.cpp110
-rw-r--r--kpovmodeler/pmprism.h32
-rw-r--r--kpovmodeler/pmprismedit.cpp196
-rw-r--r--kpovmodeler/pmprismedit.h46
-rw-r--r--kpovmodeler/pmprismmemento.cpp10
-rw-r--r--kpovmodeler/pmprismmemento.h8
-rw-r--r--kpovmodeler/pmprojectedthrough.cpp6
-rw-r--r--kpovmodeler/pmprojectedthrough.h8
-rw-r--r--kpovmodeler/pmprototypemanager.cpp28
-rw-r--r--kpovmodeler/pmprototypemanager.h42
-rw-r--r--kpovmodeler/pmquickcolor.cpp6
-rw-r--r--kpovmodeler/pmquickcolor.h8
-rw-r--r--kpovmodeler/pmquickcoloredit.cpp12
-rw-r--r--kpovmodeler/pmquickcoloredit.h2
-rw-r--r--kpovmodeler/pmradiosity.cpp6
-rw-r--r--kpovmodeler/pmradiosity.h8
-rw-r--r--kpovmodeler/pmradiosityedit.cpp78
-rw-r--r--kpovmodeler/pmradiosityedit.h10
-rw-r--r--kpovmodeler/pmrainbow.cpp6
-rw-r--r--kpovmodeler/pmrainbow.h8
-rw-r--r--kpovmodeler/pmrainbowedit.cpp72
-rw-r--r--kpovmodeler/pmrainbowedit.h22
-rw-r--r--kpovmodeler/pmraw.cpp16
-rw-r--r--kpovmodeler/pmraw.h18
-rw-r--r--kpovmodeler/pmrawedit.cpp16
-rw-r--r--kpovmodeler/pmrawedit.h6
-rw-r--r--kpovmodeler/pmrendermanager.cpp52
-rw-r--r--kpovmodeler/pmrendermanager.h72
-rw-r--r--kpovmodeler/pmrendermode.cpp42
-rw-r--r--kpovmodeler/pmrendermode.h24
-rw-r--r--kpovmodeler/pmrendermodesdialog.cpp180
-rw-r--r--kpovmodeler/pmrendermodesdialog.h56
-rw-r--r--kpovmodeler/pmresourcelocator.cpp26
-rw-r--r--kpovmodeler/pmresourcelocator.h10
-rw-r--r--kpovmodeler/pmrotate.cpp8
-rw-r--r--kpovmodeler/pmrotate.h8
-rw-r--r--kpovmodeler/pmrotateedit.cpp6
-rw-r--r--kpovmodeler/pmrotateedit.h2
-rw-r--r--kpovmodeler/pmscale.cpp6
-rw-r--r--kpovmodeler/pmscale.h8
-rw-r--r--kpovmodeler/pmscaleedit.cpp6
-rw-r--r--kpovmodeler/pmscaleedit.h2
-rw-r--r--kpovmodeler/pmscanner.cpp6
-rw-r--r--kpovmodeler/pmscanner.h20
-rw-r--r--kpovmodeler/pmscene.cpp16
-rw-r--r--kpovmodeler/pmscene.h6
-rw-r--r--kpovmodeler/pmserializer.cpp8
-rw-r--r--kpovmodeler/pmserializer.h20
-rw-r--r--kpovmodeler/pmsettingsdialog.cpp42
-rw-r--r--kpovmodeler/pmsettingsdialog.h34
-rw-r--r--kpovmodeler/pmshell.cpp140
-rw-r--r--kpovmodeler/pmshell.h14
-rw-r--r--kpovmodeler/pmskysphere.cpp4
-rw-r--r--kpovmodeler/pmskysphere.h6
-rw-r--r--kpovmodeler/pmskysphereedit.cpp6
-rw-r--r--kpovmodeler/pmskysphereedit.h2
-rw-r--r--kpovmodeler/pmslope.cpp6
-rw-r--r--kpovmodeler/pmslope.h8
-rw-r--r--kpovmodeler/pmslopeedit.cpp26
-rw-r--r--kpovmodeler/pmslopeedit.h8
-rw-r--r--kpovmodeler/pmsolidcolor.cpp6
-rw-r--r--kpovmodeler/pmsolidcolor.h8
-rw-r--r--kpovmodeler/pmsolidcoloredit.cpp12
-rw-r--r--kpovmodeler/pmsolidcoloredit.h2
-rw-r--r--kpovmodeler/pmsolidobject.cpp2
-rw-r--r--kpovmodeler/pmsolidobject.h2
-rw-r--r--kpovmodeler/pmsolidobjectedit.cpp14
-rw-r--r--kpovmodeler/pmsolidobjectedit.h8
-rw-r--r--kpovmodeler/pmsor.cpp70
-rw-r--r--kpovmodeler/pmsor.h30
-rw-r--r--kpovmodeler/pmsorcontrolpoint.cpp2
-rw-r--r--kpovmodeler/pmsorcontrolpoint.h2
-rw-r--r--kpovmodeler/pmsoredit.cpp70
-rw-r--r--kpovmodeler/pmsoredit.h26
-rw-r--r--kpovmodeler/pmsphere.cpp6
-rw-r--r--kpovmodeler/pmsphere.h8
-rw-r--r--kpovmodeler/pmsphereedit.cpp20
-rw-r--r--kpovmodeler/pmsphereedit.h2
-rw-r--r--kpovmodeler/pmspheresweep.cpp80
-rw-r--r--kpovmodeler/pmspheresweep.h44
-rw-r--r--kpovmodeler/pmspheresweepedit.cpp84
-rw-r--r--kpovmodeler/pmspheresweepedit.h24
-rw-r--r--kpovmodeler/pmsplinememento.cpp8
-rw-r--r--kpovmodeler/pmsplinememento.h8
-rw-r--r--kpovmodeler/pmsplinesegment.h6
-rw-r--r--kpovmodeler/pmsqe.cpp6
-rw-r--r--kpovmodeler/pmsqe.h8
-rw-r--r--kpovmodeler/pmsqeedit.cpp20
-rw-r--r--kpovmodeler/pmsqeedit.h2
-rw-r--r--kpovmodeler/pmsymboltable.cpp18
-rw-r--r--kpovmodeler/pmsymboltable.h22
-rw-r--r--kpovmodeler/pmtext.cpp24
-rw-r--r--kpovmodeler/pmtext.h18
-rw-r--r--kpovmodeler/pmtextedit.cpp56
-rw-r--r--kpovmodeler/pmtextedit.h14
-rw-r--r--kpovmodeler/pmtexture.cpp6
-rw-r--r--kpovmodeler/pmtexture.h8
-rw-r--r--kpovmodeler/pmtexturebase.cpp4
-rw-r--r--kpovmodeler/pmtexturebase.h4
-rw-r--r--kpovmodeler/pmtexturebaseedit.cpp8
-rw-r--r--kpovmodeler/pmtexturebaseedit.h2
-rw-r--r--kpovmodeler/pmtextureedit.cpp10
-rw-r--r--kpovmodeler/pmtextureedit.h6
-rw-r--r--kpovmodeler/pmtexturemap.cpp54
-rw-r--r--kpovmodeler/pmtexturemap.h58
-rw-r--r--kpovmodeler/pmtexturemapedit.cpp32
-rw-r--r--kpovmodeler/pmtexturemapedit.h18
-rw-r--r--kpovmodeler/pmtorus.cpp6
-rw-r--r--kpovmodeler/pmtorus.h8
-rw-r--r--kpovmodeler/pmtorusedit.cpp28
-rw-r--r--kpovmodeler/pmtorusedit.h6
-rw-r--r--kpovmodeler/pmtranslate.cpp6
-rw-r--r--kpovmodeler/pmtranslate.h8
-rw-r--r--kpovmodeler/pmtranslateedit.cpp6
-rw-r--r--kpovmodeler/pmtranslateedit.h2
-rw-r--r--kpovmodeler/pmtreeview.cpp112
-rw-r--r--kpovmodeler/pmtreeview.h56
-rw-r--r--kpovmodeler/pmtreeviewitem.cpp32
-rw-r--r--kpovmodeler/pmtreeviewitem.h20
-rw-r--r--kpovmodeler/pmtriangle.cpp6
-rw-r--r--kpovmodeler/pmtriangle.h8
-rw-r--r--kpovmodeler/pmtriangleedit.cpp50
-rw-r--r--kpovmodeler/pmtriangleedit.h18
-rw-r--r--kpovmodeler/pmtruetypecache.cpp18
-rw-r--r--kpovmodeler/pmtruetypecache.h16
-rw-r--r--kpovmodeler/pmunknownview.cpp14
-rw-r--r--kpovmodeler/pmunknownview.h10
-rw-r--r--kpovmodeler/pmvariant.cpp56
-rw-r--r--kpovmodeler/pmvariant.h20
-rw-r--r--kpovmodeler/pmvector.cpp22
-rw-r--r--kpovmodeler/pmvector.h10
-rw-r--r--kpovmodeler/pmvectorcontrolpoint.cpp4
-rw-r--r--kpovmodeler/pmvectorcontrolpoint.h4
-rw-r--r--kpovmodeler/pmvectoredit.cpp94
-rw-r--r--kpovmodeler/pmvectoredit.h28
-rw-r--r--kpovmodeler/pmvectorlistedit.cpp102
-rw-r--r--kpovmodeler/pmvectorlistedit.h40
-rw-r--r--kpovmodeler/pmview.cpp28
-rw-r--r--kpovmodeler/pmview.h12
-rw-r--r--kpovmodeler/pmviewbase.h24
-rw-r--r--kpovmodeler/pmviewfactory.cpp10
-rw-r--r--kpovmodeler/pmviewfactory.h36
-rw-r--r--kpovmodeler/pmviewlayoutmanager.cpp170
-rw-r--r--kpovmodeler/pmviewlayoutmanager.h78
-rw-r--r--kpovmodeler/pmwarp.cpp8
-rw-r--r--kpovmodeler/pmwarp.h8
-rw-r--r--kpovmodeler/pmwarpedit.cpp132
-rw-r--r--kpovmodeler/pmwarpedit.h48
-rw-r--r--kpovmodeler/pmxmlhelper.cpp42
-rw-r--r--kpovmodeler/pmxmlhelper.h32
-rw-r--r--kpovmodeler/pmxmlparser.cpp28
-rw-r--r--kpovmodeler/pmxmlparser.h12
-rw-r--r--kruler/klineal.cpp204
-rw-r--r--kruler/klineal.h62
-rw-r--r--ksnapshot/ksnapshot.cpp156
-rw-r--r--ksnapshot/ksnapshot.h82
-rw-r--r--ksnapshot/ksnapshotiface.h6
-rw-r--r--ksnapshot/ksnapshotwidget.ui.h16
-rw-r--r--ksnapshot/regiongrabber.cpp80
-rw-r--r--ksnapshot/regiongrabber.h28
-rw-r--r--ksnapshot/windowgrabber.cpp74
-rw-r--r--ksnapshot/windowgrabber.h24
-rw-r--r--ksvg/core/CanvasFactory.cpp32
-rw-r--r--ksvg/core/CanvasFactory.h12
-rw-r--r--ksvg/core/CanvasItem.h18
-rw-r--r--ksvg/core/CanvasItems.cpp26
-rw-r--r--ksvg/core/CanvasItems.h6
-rw-r--r--ksvg/core/DocumentFactory.cpp8
-rw-r--r--ksvg/core/DocumentFactory.h4
-rw-r--r--ksvg/core/KSVGCanvas.cpp102
-rw-r--r--ksvg/core/KSVGCanvas.h54
-rw-r--r--ksvg/core/KSVGHelper.h14
-rw-r--r--ksvg/core/KSVGLoader.cpp112
-rw-r--r--ksvg/core/KSVGLoader.h20
-rw-r--r--ksvg/core/KSVGReader.cc82
-rw-r--r--ksvg/core/KSVGReader.h14
-rw-r--r--ksvg/core/KSVGTextChunk.cpp4
-rw-r--r--ksvg/core/KSVGTextChunk.h10
-rw-r--r--ksvg/ecma/ksvg_ecma.cpp28
-rw-r--r--ksvg/ecma/ksvg_ecma.h12
-rw-r--r--ksvg/ecma/ksvg_ecmaeventlistener.cpp8
-rw-r--r--ksvg/ecma/ksvg_ecmaeventlistener.h6
-rw-r--r--ksvg/ecma/ksvg_helper.cpp14
-rw-r--r--ksvg/ecma/ksvg_scriptinterpreter.h4
-rw-r--r--ksvg/ecma/ksvg_window.cpp30
-rw-r--r--ksvg/ecma/ksvg_window.h16
-rw-r--r--ksvg/impl/LRUCache.h4
-rw-r--r--ksvg/impl/SVGAngleImpl.cc2
-rw-r--r--ksvg/impl/SVGAnimateColorElementImpl.cc6
-rw-r--r--ksvg/impl/SVGAnimateColorElementImpl.h2
-rw-r--r--ksvg/impl/SVGAnimateElementImpl.cc4
-rw-r--r--ksvg/impl/SVGAnimateElementImpl.h4
-rw-r--r--ksvg/impl/SVGAnimateMotionElementImpl.cc6
-rw-r--r--ksvg/impl/SVGAnimateTransformElementImpl.cc14
-rw-r--r--ksvg/impl/SVGAnimateTransformElementImpl.h6
-rw-r--r--ksvg/impl/SVGAnimatedPointsImpl.cc12
-rw-r--r--ksvg/impl/SVGAnimatedPointsImpl.h4
-rw-r--r--ksvg/impl/SVGAnimationElementImpl.cc36
-rw-r--r--ksvg/impl/SVGAnimationElementImpl.h24
-rw-r--r--ksvg/impl/SVGColorImpl.cc20
-rw-r--r--ksvg/impl/SVGColorImpl.h2
-rw-r--r--ksvg/impl/SVGColorProfileElementImpl.cc14
-rw-r--r--ksvg/impl/SVGColorProfileElementImpl.h6
-rw-r--r--ksvg/impl/SVGContainerImpl.cc2
-rw-r--r--ksvg/impl/SVGDocumentImpl.cc34
-rw-r--r--ksvg/impl/SVGDocumentImpl.h42
-rw-r--r--ksvg/impl/SVGEcma.cc2
-rw-r--r--ksvg/impl/SVGElementImpl.cc44
-rw-r--r--ksvg/impl/SVGElementImpl.h28
-rw-r--r--ksvg/impl/SVGEventImpl.cc10
-rw-r--r--ksvg/impl/SVGEventImpl.h10
-rw-r--r--ksvg/impl/SVGFitToViewBoxImpl.cc10
-rw-r--r--ksvg/impl/SVGFitToViewBoxImpl.h4
-rw-r--r--ksvg/impl/SVGGlyphElementImpl.cc2
-rw-r--r--ksvg/impl/SVGGlyphElementImpl.h4
-rw-r--r--ksvg/impl/SVGGradientElementImpl.cc12
-rw-r--r--ksvg/impl/SVGGradientElementImpl.h4
-rw-r--r--ksvg/impl/SVGHelperImpl.cc42
-rw-r--r--ksvg/impl/SVGHelperImpl.h18
-rw-r--r--ksvg/impl/SVGImageElementImpl.cc32
-rw-r--r--ksvg/impl/SVGImageElementImpl.h20
-rw-r--r--ksvg/impl/SVGLangSpaceImpl.cc12
-rw-r--r--ksvg/impl/SVGLangSpaceImpl.h2
-rw-r--r--ksvg/impl/SVGLengthImpl.cc28
-rw-r--r--ksvg/impl/SVGLengthImpl.h6
-rw-r--r--ksvg/impl/SVGLinearGradientElementImpl.cc6
-rw-r--r--ksvg/impl/SVGLinearGradientElementImpl.h2
-rw-r--r--ksvg/impl/SVGList.h4
-rw-r--r--ksvg/impl/SVGMarkerElementImpl.cc2
-rw-r--r--ksvg/impl/SVGMaskElementImpl.cc24
-rw-r--r--ksvg/impl/SVGMaskElementImpl.h16
-rw-r--r--ksvg/impl/SVGMatrixImpl.cc32
-rw-r--r--ksvg/impl/SVGMatrixImpl.h12
-rw-r--r--ksvg/impl/SVGPaintImpl.cc2
-rw-r--r--ksvg/impl/SVGPaintImpl.h2
-rw-r--r--ksvg/impl/SVGPaintServerImpl.cc2
-rw-r--r--ksvg/impl/SVGPaintServerImpl.h2
-rw-r--r--ksvg/impl/SVGPathElementImpl.cc10
-rw-r--r--ksvg/impl/SVGPathElementImpl.h8
-rw-r--r--ksvg/impl/SVGPathSegArcImpl.h4
-rw-r--r--ksvg/impl/SVGPathSegClosePathImpl.h2
-rw-r--r--ksvg/impl/SVGPathSegCurvetoCubicImpl.h4
-rw-r--r--ksvg/impl/SVGPathSegCurvetoCubicSmoothImpl.h4
-rw-r--r--ksvg/impl/SVGPathSegCurvetoQuadraticImpl.h4
-rw-r--r--ksvg/impl/SVGPathSegCurvetoQuadraticSmoothImpl.h4
-rw-r--r--ksvg/impl/SVGPathSegImpl.h2
-rw-r--r--ksvg/impl/SVGPathSegLinetoHorizontalImpl.h4
-rw-r--r--ksvg/impl/SVGPathSegLinetoImpl.h4
-rw-r--r--ksvg/impl/SVGPathSegLinetoVerticalImpl.h4
-rw-r--r--ksvg/impl/SVGPathSegMovetoImpl.h4
-rw-r--r--ksvg/impl/SVGPatternElementImpl.cc28
-rw-r--r--ksvg/impl/SVGPatternElementImpl.h22
-rw-r--r--ksvg/impl/SVGPreserveAspectRatioImpl.cc8
-rw-r--r--ksvg/impl/SVGPreserveAspectRatioImpl.h4
-rw-r--r--ksvg/impl/SVGRadialGradientElementImpl.cc6
-rw-r--r--ksvg/impl/SVGRadialGradientElementImpl.h2
-rw-r--r--ksvg/impl/SVGRectImpl.cc10
-rw-r--r--ksvg/impl/SVGRectImpl.h8
-rw-r--r--ksvg/impl/SVGSVGElementImpl.cc32
-rw-r--r--ksvg/impl/SVGSVGElementImpl.h14
-rw-r--r--ksvg/impl/SVGScriptElementImpl.cc24
-rw-r--r--ksvg/impl/SVGScriptElementImpl.h12
-rw-r--r--ksvg/impl/SVGSetElementImpl.h2
-rw-r--r--ksvg/impl/SVGShapeImpl.cc4
-rw-r--r--ksvg/impl/SVGShapeImpl.h4
-rw-r--r--ksvg/impl/SVGStringListImpl.cc4
-rw-r--r--ksvg/impl/SVGStringListImpl.h4
-rw-r--r--ksvg/impl/SVGStylableImpl.cc74
-rw-r--r--ksvg/impl/SVGStylableImpl.h48
-rw-r--r--ksvg/impl/SVGTRefElementImpl.cc4
-rw-r--r--ksvg/impl/SVGTSpanElementImpl.cc2
-rw-r--r--ksvg/impl/SVGTSpanElementImpl.h2
-rw-r--r--ksvg/impl/SVGTestsImpl.cc8
-rw-r--r--ksvg/impl/SVGTestsImpl.h6
-rw-r--r--ksvg/impl/SVGTextContentElementImpl.cc10
-rw-r--r--ksvg/impl/SVGTextContentElementImpl.h2
-rw-r--r--ksvg/impl/SVGTextElementImpl.cc6
-rw-r--r--ksvg/impl/SVGTextElementImpl.h4
-rw-r--r--ksvg/impl/SVGTextPathElementImpl.cc10
-rw-r--r--ksvg/impl/SVGTextPathElementImpl.h2
-rw-r--r--ksvg/impl/SVGTimeScheduler.cc26
-rw-r--r--ksvg/impl/SVGTimeScheduler.h24
-rw-r--r--ksvg/impl/SVGTransformImpl.cc18
-rw-r--r--ksvg/impl/SVGTransformImpl.h4
-rw-r--r--ksvg/impl/SVGTransformableImpl.h2
-rw-r--r--ksvg/impl/SVGURIReferenceImpl.cc8
-rw-r--r--ksvg/impl/SVGURIReferenceImpl.h8
-rw-r--r--ksvg/impl/SVGUnitConverter.h12
-rw-r--r--ksvg/impl/SVGUseElementImpl.cc16
-rw-r--r--ksvg/impl/SVGViewSpecImpl.cc8
-rw-r--r--ksvg/impl/SVGViewSpecImpl.h2
-rw-r--r--ksvg/impl/SVGWindowImpl.cc22
-rw-r--r--ksvg/impl/SVGWindowImpl.h8
-rw-r--r--ksvg/impl/libs/libtext2path/src/QtUnicode.cpp4
-rw-r--r--ksvg/impl/svgpathparser.cc6
-rw-r--r--ksvg/impl/svgpathparser.h4
-rw-r--r--ksvg/plugin/backends/agg/AggCanvasFactory.cpp2
-rw-r--r--ksvg/plugin/backends/agg/AggCanvasFactory.h2
-rw-r--r--ksvg/plugin/backends/agg/AggCanvasItems.cpp64
-rw-r--r--ksvg/plugin/backends/agg/AggCanvasItems.h32
-rw-r--r--ksvg/plugin/backends/libart/BezierPathLibart.h4
-rw-r--r--ksvg/plugin/backends/libart/LibartCanvas.cpp22
-rw-r--r--ksvg/plugin/backends/libart/LibartCanvas.h10
-rw-r--r--ksvg/plugin/backends/libart/LibartCanvasFactory.cpp2
-rw-r--r--ksvg/plugin/backends/libart/LibartCanvasFactory.h2
-rw-r--r--ksvg/plugin/backends/libart/LibartCanvasItems.cpp82
-rw-r--r--ksvg/plugin/backends/libart/LibartCanvasItems.h64
-rw-r--r--ksvg/plugin/ksvg_factory.cpp14
-rw-r--r--ksvg/plugin/ksvg_factory.h4
-rw-r--r--ksvg/plugin/ksvg_plugin.cpp78
-rw-r--r--ksvg/plugin/ksvg_plugin.h22
-rw-r--r--ksvg/plugin/ksvg_widget.cpp38
-rw-r--r--ksvg/plugin/ksvg_widget.h28
-rw-r--r--ksvg/plugin/svgcreator.cpp10
-rw-r--r--ksvg/plugin/svgcreator.h4
-rw-r--r--ksvg/test/external/SVGTestWidget.cc34
-rw-r--r--ksvg/test/external/SVGTestWidget.h22
-rw-r--r--ksvg/test/external/printnodetest.cpp4
-rw-r--r--ksvg/test/external/printnodetest.h4
-rw-r--r--kuickshow/src/aboutwidget.cpp34
-rw-r--r--kuickshow/src/aboutwidget.h8
-rw-r--r--kuickshow/src/defaultswidget.cpp80
-rw-r--r--kuickshow/src/defaultswidget.h24
-rw-r--r--kuickshow/src/filecache.cpp14
-rw-r--r--kuickshow/src/filecache.h8
-rw-r--r--kuickshow/src/filefinder.cpp24
-rw-r--r--kuickshow/src/filefinder.h12
-rw-r--r--kuickshow/src/filewidget.cpp74
-rw-r--r--kuickshow/src/filewidget.h24
-rw-r--r--kuickshow/src/generalwidget.cpp52
-rw-r--r--kuickshow/src/generalwidget.h14
-rw-r--r--kuickshow/src/imagewindow.cpp176
-rw-r--r--kuickshow/src/imagewindow.h48
-rw-r--r--kuickshow/src/imlibwidget.cpp54
-rw-r--r--kuickshow/src/imlibwidget.h40
-rw-r--r--kuickshow/src/kuick.cpp2
-rw-r--r--kuickshow/src/kuick.h12
-rw-r--r--kuickshow/src/kuickconfigdlg.cpp10
-rw-r--r--kuickshow/src/kuickconfigdlg.h4
-rw-r--r--kuickshow/src/kuickdata.cpp2
-rw-r--r--kuickshow/src/kuickdata.h8
-rw-r--r--kuickshow/src/kuickfile.cpp28
-rw-r--r--kuickshow/src/kuickfile.h10
-rw-r--r--kuickshow/src/kuickimage.cpp16
-rw-r--r--kuickshow/src/kuickimage.h10
-rw-r--r--kuickshow/src/kuickshow.cpp248
-rw-r--r--kuickshow/src/kuickshow.h30
-rw-r--r--kuickshow/src/kurlwidget.cpp6
-rw-r--r--kuickshow/src/kurlwidget.h2
-rw-r--r--kuickshow/src/main.cpp2
-rw-r--r--kuickshow/src/mainwidget.cpp8
-rw-r--r--kuickshow/src/mainwidget.h10
-rw-r--r--kuickshow/src/printing.cpp98
-rw-r--r--kuickshow/src/printing.h30
-rw-r--r--kuickshow/src/slideshowwidget.cpp14
-rw-r--r--kuickshow/src/slideshowwidget.h8
-rw-r--r--kview/config/kviewconfmodules.cpp28
-rw-r--r--kview/config/kviewconfmodules.h6
-rw-r--r--kview/config/plugins/kviewpluginsconfig.cpp6
-rw-r--r--kview/config/plugins/kviewpluginsconfig.h2
-rw-r--r--kview/kimageviewer/canvas.h68
-rw-r--r--kview/kimageviewer/viewer.cpp2
-rw-r--r--kview/kimageviewer/viewer.h4
-rw-r--r--kview/kview.cpp216
-rw-r--r--kview/kview.h28
-rw-r--r--kview/kviewcanvas/config/confmodules.cpp44
-rw-r--r--kview/kviewcanvas/config/confmodules.h8
-rw-r--r--kview/kviewcanvas/config/defaults.h10
-rw-r--r--kview/kviewcanvas/kimagecanvas.cpp152
-rw-r--r--kview/kviewcanvas/kimagecanvas.h96
-rw-r--r--kview/kviewcanvas/kimageholder.cpp68
-rw-r--r--kview/kviewcanvas/kimageholder.h54
-rw-r--r--kview/kviewcanvas/test/test.cpp8
-rw-r--r--kview/kviewviewer/config/kviewviewerpluginsconfig.cpp8
-rw-r--r--kview/kviewviewer/config/kviewviewerpluginsconfig.h2
-rw-r--r--kview/kviewviewer/imagesettings.cpp18
-rw-r--r--kview/kviewviewer/imagesettings.h14
-rw-r--r--kview/kviewviewer/kviewkonqextension.cpp18
-rw-r--r--kview/kviewviewer/kviewviewer.cpp234
-rw-r--r--kview/kviewviewer/kviewviewer.h38
-rw-r--r--kview/kviewviewer/test/test.cpp2
-rw-r--r--kview/main.cpp2
-rw-r--r--kview/modules/browser/kmyfileitemlist.cpp8
-rw-r--r--kview/modules/browser/kmyfileitemlist.h10
-rw-r--r--kview/modules/browser/kviewbrowser.cpp18
-rw-r--r--kview/modules/browser/kviewbrowser.h2
-rw-r--r--kview/modules/effects/kvieweffects.cpp68
-rw-r--r--kview/modules/effects/kvieweffects.h12
-rw-r--r--kview/modules/presenter/config/kviewpresenterconfig.cpp16
-rw-r--r--kview/modules/presenter/config/kviewpresenterconfig.h6
-rw-r--r--kview/modules/presenter/imagelistitem.cpp16
-rw-r--r--kview/modules/presenter/imagelistitem.h12
-rw-r--r--kview/modules/presenter/kviewpresenter.cpp160
-rw-r--r--kview/modules/presenter/kviewpresenter.h18
-rw-r--r--kview/modules/presenter/kviewpresenterconfmodule.cpp14
-rw-r--r--kview/modules/presenter/kviewpresenterconfmodule.h8
-rw-r--r--kview/modules/scale/kfloatspinbox.cpp20
-rw-r--r--kview/modules/scale/kfloatspinbox.h6
-rw-r--r--kview/modules/scale/kview_scale.cpp94
-rw-r--r--kview/modules/scale/kview_scale.h2
-rw-r--r--kview/modules/scale/scaledlg.cpp98
-rw-r--r--kview/modules/scale/scaledlg.h22
-rw-r--r--kview/modules/scanner/kviewscanner.cpp18
-rw-r--r--kview/modules/scanner/kviewscanner.h4
-rw-r--r--kview/modules/template/kviewtemplate.cpp8
-rw-r--r--kview/modules/template/kviewtemplate.h2
-rw-r--r--kview/photobook/photobook.cpp52
-rw-r--r--kview/photobook/photobook.h14
-rw-r--r--kviewshell/bookmark.h14
-rw-r--r--kviewshell/documentPageCache.cpp36
-rw-r--r--kviewshell/documentPageCache.h24
-rw-r--r--kviewshell/documentRenderer.cpp28
-rw-r--r--kviewshell/documentRenderer.h42
-rw-r--r--kviewshell/documentWidget.cpp130
-rw-r--r--kviewshell/documentWidget.h48
-rw-r--r--kviewshell/emptyRenderer.cpp2
-rw-r--r--kviewshell/emptyRenderer.h4
-rw-r--r--kviewshell/empty_multipage.cpp4
-rw-r--r--kviewshell/empty_multipage.h6
-rw-r--r--kviewshell/history.cpp2
-rw-r--r--kviewshell/history.h8
-rw-r--r--kviewshell/hyperlink.h10
-rw-r--r--kviewshell/kmultipage.cpp196
-rw-r--r--kviewshell/kmultipage.h48
-rw-r--r--kviewshell/kmultipageInterface.h6
-rw-r--r--kviewshell/kprintDialogPage_pageoptions.cpp56
-rw-r--r--kviewshell/kprintDialogPage_pageoptions.h22
-rw-r--r--kviewshell/kviewpart.cpp374
-rw-r--r--kviewshell/kviewpart.h40
-rw-r--r--kviewshell/kviewpart_iface.h10
-rw-r--r--kviewshell/kviewshell.cpp70
-rw-r--r--kviewshell/kviewshell.h20
-rw-r--r--kviewshell/main.cpp24
-rw-r--r--kviewshell/marklist.cpp94
-rw-r--r--kviewshell/marklist.h42
-rw-r--r--kviewshell/pageNumber.h2
-rw-r--r--kviewshell/pageSize.cpp36
-rw-r--r--kviewshell/pageSize.h38
-rw-r--r--kviewshell/pageSizeDialog.cpp16
-rw-r--r--kviewshell/pageSizeDialog.h4
-rw-r--r--kviewshell/pageSizeWidget.cpp36
-rw-r--r--kviewshell/pageSizeWidget.h12
-rw-r--r--kviewshell/pageView.cpp88
-rw-r--r--kviewshell/pageView.h42
-rw-r--r--kviewshell/plugins/djvu/djvumultipage.cpp48
-rw-r--r--kviewshell/plugins/djvu/djvumultipage.h8
-rw-r--r--kviewshell/plugins/djvu/djvurenderer.cpp76
-rw-r--r--kviewshell/plugins/djvu/djvurenderer.h14
-rw-r--r--kviewshell/plugins/djvu/kprintDialogPage_DJVUconversionoptions.cpp24
-rw-r--r--kviewshell/plugins/djvu/kprintDialogPage_DJVUconversionoptions.h10
-rw-r--r--kviewshell/plugins/djvu/kprintDialogPage_DJVUpageoptions.cpp36
-rw-r--r--kviewshell/plugins/djvu/kprintDialogPage_DJVUpageoptions.h18
-rw-r--r--kviewshell/plugins/djvu/pageRangeWidget.cpp6
-rw-r--r--kviewshell/plugins/djvu/pageRangeWidget.h2
-rw-r--r--kviewshell/renderedDocumentPage.cpp36
-rw-r--r--kviewshell/renderedDocumentPage.h60
-rw-r--r--kviewshell/renderedDocumentPagePixmap.cpp18
-rw-r--r--kviewshell/renderedDocumentPagePixmap.h24
-rw-r--r--kviewshell/renderedDocumentPagePrinter.cpp14
-rw-r--r--kviewshell/renderedDocumentPagePrinter.h14
-rw-r--r--kviewshell/searchWidget.cpp50
-rw-r--r--kviewshell/searchWidget.h30
-rw-r--r--kviewshell/selection.cpp20
-rw-r--r--kviewshell/selection.h10
-rw-r--r--kviewshell/simplePageSize.cpp6
-rw-r--r--kviewshell/simplePageSize.h14
-rw-r--r--kviewshell/sizePreview.cpp16
-rw-r--r--kviewshell/sizePreview.h12
-rw-r--r--kviewshell/tableOfContents.cpp20
-rw-r--r--kviewshell/tableOfContents.h10
-rw-r--r--kviewshell/textBox.h10
-rw-r--r--kviewshell/units.cpp6
-rw-r--r--kviewshell/units.h4
-rw-r--r--kviewshell/zoom.cpp24
-rw-r--r--kviewshell/zoom.h16
-rw-r--r--libkscan/devselector.cpp70
-rw-r--r--libkscan/devselector.h28
-rw-r--r--libkscan/dispgamma.cpp22
-rw-r--r--libkscan/dispgamma.h24
-rw-r--r--libkscan/gammadialog.cpp32
-rw-r--r--libkscan/gammadialog.h10
-rw-r--r--libkscan/img_canvas.cpp164
-rw-r--r--libkscan/img_canvas.h80
-rw-r--r--libkscan/imgscaledialog.cpp48
-rw-r--r--libkscan/imgscaledialog.h8
-rw-r--r--libkscan/imgscaninfo.cpp8
-rw-r--r--libkscan/imgscaninfo.h14
-rw-r--r--libkscan/kgammatable.cpp2
-rw-r--r--libkscan/kgammatable.h8
-rw-r--r--libkscan/kscandevice.cpp174
-rw-r--r--libkscan/kscandevice.h104
-rw-r--r--libkscan/kscanoption.cpp126
-rw-r--r--libkscan/kscanoption.h50
-rw-r--r--libkscan/kscanoptset.cpp54
-rw-r--r--libkscan/kscanoptset.h36
-rw-r--r--libkscan/kscanslider.cpp116
-rw-r--r--libkscan/kscanslider.h60
-rw-r--r--libkscan/massscandialog.cpp58
-rw-r--r--libkscan/massscandialog.h24
-rw-r--r--libkscan/previewer.cpp212
-rw-r--r--libkscan/previewer.h58
-rw-r--r--libkscan/scandialog.cpp108
-rw-r--r--libkscan/scandialog.h22
-rw-r--r--libkscan/scanparams.cpp234
-rw-r--r--libkscan/scanparams.h40
-rw-r--r--libkscan/scansourcedialog.cpp50
-rw-r--r--libkscan/scansourcedialog.h22
-rw-r--r--libkscan/sizeindicator.cpp26
-rw-r--r--libkscan/sizeindicator.h8
1333 files changed, 24530 insertions, 24530 deletions
diff --git a/kamera/kcontrol/kamera.cpp b/kamera/kcontrol/kamera.cpp
index 0fdc416a..97338181 100644
--- a/kamera/kcontrol/kamera.cpp
+++ b/kamera/kcontrol/kamera.cpp
@@ -20,8 +20,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <kgenericfactory.h>
#include <ksimpleconfig.h>
@@ -41,14 +41,14 @@
#include "kamera.h"
#include "kamera.moc"
-typedef KGenericFactory<KKameraConfig, QWidget> KKameraConfigFactory;
+typedef KGenericFactory<KKameraConfig, TQWidget> KKameraConfigFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kamera, KKameraConfigFactory( "kcmkamera" ) )
// --------------- Camera control center module widget ---
KKameraConfig *KKameraConfig::m_instance = NULL;
-KKameraConfig::KKameraConfig(QWidget *parent, const char *name, const QStringList &)
+KKameraConfig::KKameraConfig(TQWidget *parent, const char *name, const TQStringList &)
: KCModule(KKameraConfigFactory::instance(), parent, name)
{
m_devicePopup = new KPopupMenu(this);
@@ -88,7 +88,7 @@ void KKameraConfig::defaults()
void KKameraConfig::displayGPFailureDialogue(void)
{
- new QLabel(i18n("Unable to initialize the gPhoto2 libraries."), this);
+ new TQLabel(i18n("Unable to initialize the gPhoto2 libraries."), this);
}
void KKameraConfig::displayGPSuccessDialogue(void)
@@ -97,7 +97,7 @@ void KKameraConfig::displayGPSuccessDialogue(void)
setButtons(Help | Apply | Cancel | Ok);
// create a layout with two vertical boxes
- QVBoxLayout *topLayout = new QVBoxLayout(this, 0, 0);
+ TQVBoxLayout *topLayout = new TQVBoxLayout(this, 0, 0);
topLayout->setAutoAdd(true);
m_toolbar = new KToolBar(this, "ToolBar");
@@ -106,36 +106,36 @@ void KKameraConfig::displayGPSuccessDialogue(void)
// create list of devices
m_deviceSel = new KIconView(this);
- connect(m_deviceSel, SIGNAL(rightButtonClicked(QIconViewItem *, const QPoint &)),
- SLOT(slot_deviceMenu(QIconViewItem *, const QPoint &)));
- connect(m_deviceSel, SIGNAL(doubleClicked(QIconViewItem *)),
- SLOT(slot_configureCamera()));
- connect(m_deviceSel, SIGNAL(selectionChanged(QIconViewItem *)),
- SLOT(slot_deviceSelected(QIconViewItem *)));
+ connect(m_deviceSel, TQT_SIGNAL(rightButtonClicked(TQIconViewItem *, const TQPoint &)),
+ TQT_SLOT(slot_deviceMenu(TQIconViewItem *, const TQPoint &)));
+ connect(m_deviceSel, TQT_SIGNAL(doubleClicked(TQIconViewItem *)),
+ TQT_SLOT(slot_configureCamera()));
+ connect(m_deviceSel, TQT_SIGNAL(selectionChanged(TQIconViewItem *)),
+ TQT_SLOT(slot_deviceSelected(TQIconViewItem *)));
- m_deviceSel->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding));
+ m_deviceSel->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
// create actions
KAction *act;
- act = new KAction(i18n("Add"), "camera", 0, this, SLOT(slot_addCamera()), m_actions, "camera_add");
+ act = new KAction(i18n("Add"), "camera", 0, this, TQT_SLOT(slot_addCamera()), m_actions, "camera_add");
act->setWhatsThis(i18n("Click this button to add a new camera."));
act->plug(m_toolbar);
m_toolbar->insertLineSeparator();
- act = new KAction(i18n("Test"), "camera_test", 0, this, SLOT(slot_testCamera()), m_actions, "camera_test");
+ act = new KAction(i18n("Test"), "camera_test", 0, this, TQT_SLOT(slot_testCamera()), m_actions, "camera_test");
act->setWhatsThis(i18n("Click this button to remove the selected camera from the list."));
act->plug(m_toolbar);
- act = new KAction(i18n("Remove"), "edittrash", 0, this, SLOT(slot_removeCamera()), m_actions, "camera_remove");
+ act = new KAction(i18n("Remove"), "edittrash", 0, this, TQT_SLOT(slot_removeCamera()), m_actions, "camera_remove");
act->setWhatsThis(i18n("Click this button to remove the selected camera from the list."));
act->plug(m_toolbar);
- act = new KAction(i18n("Configure..."), "configure", 0, this, SLOT(slot_configureCamera()), m_actions, "camera_configure");
+ act = new KAction(i18n("Configure..."), "configure", 0, this, TQT_SLOT(slot_configureCamera()), m_actions, "camera_configure");
act->setWhatsThis(i18n("Click this button to change the configuration of the selected camera.<br><br>The availability of this feature and the contents of the Configuration dialog depend on the camera model."));
act->plug(m_toolbar);
- act = new KAction(i18n("Information"), "hwinfo", 0, this, SLOT(slot_cameraSummary()), m_actions, "camera_summary");
+ act = new KAction(i18n("Information"), "hwinfo", 0, this, TQT_SLOT(slot_cameraSummary()), m_actions, "camera_summary");
act->setWhatsThis(i18n("Click this button to view a summary of the current status of the selected camera.<br><br>The availability of this feature and the contents of the Configuration dialog depend on the camera model."));
act->plug(m_toolbar);
m_toolbar->insertLineSeparator();
- act = new KAction(i18n("Cancel"), "stop", 0, this, SLOT(slot_cancelOperation()), m_actions, "camera_cancel");
+ act = new KAction(i18n("Cancel"), "stop", 0, this, TQT_SLOT(slot_cancelOperation()), m_actions, "camera_cancel");
act->setWhatsThis(i18n("Click this button to cancel the current camera operation."));
act->setEnabled(false);
act->plug(m_toolbar);
@@ -147,7 +147,7 @@ void KKameraConfig::populateDeviceListView(void)
CameraDevicesMap::Iterator it;
for (it = m_devices.begin(); it != m_devices.end(); it++) {
if (it.data()) {
- new QIconViewItem(m_deviceSel, it.key(), DesktopIcon("camera"));
+ new TQIconViewItem(m_deviceSel, it.key(), DesktopIcon("camera"));
}
}
slot_deviceSelected(m_deviceSel->currentItem());
@@ -172,8 +172,8 @@ void KKameraConfig::load(void)
void KKameraConfig::load(bool useDefaults )
{
m_config->setReadDefaults( useDefaults );
- QStringList groupList = m_config->groupList();
- QStringList::Iterator it;
+ TQStringList groupList = m_config->groupList();
+ TQStringList::Iterator it;
int i, count;
CameraList *list;
CameraAbilitiesList *al;
@@ -188,8 +188,8 @@ void KKameraConfig::load(bool useDefaults )
continue;
kcamera = new KCamera(*it,m_config->readEntry("Path"));
- connect(kcamera, SIGNAL(error(const QString &)), SLOT(slot_error(const QString &)));
- connect(kcamera, SIGNAL(error(const QString &, const QString &)), SLOT(slot_error(const QString &, const QString &)));
+ connect(kcamera, TQT_SIGNAL(error(const TQString &)), TQT_SLOT(slot_error(const TQString &)));
+ connect(kcamera, TQT_SIGNAL(error(const TQString &, const TQString &)), TQT_SLOT(slot_error(const TQString &, const TQString &)));
kcamera->load(m_config);
m_devices[*it] = kcamera;
}
@@ -208,7 +208,7 @@ void KKameraConfig::load(bool useDefaults )
count = gp_list_count (list);
- QMap<QString,QString> ports, names;
+ TQMap<TQString,TQString> ports, names;
for (i = 0 ; i<count ; i++) {
gp_list_get_name (list, i, &model);
@@ -221,14 +221,14 @@ void KKameraConfig::load(bool useDefaults )
if (ports.contains("usb:") && names[ports["usb:"]]!="usb:")
ports.remove("usb:");
- QMap<QString,QString>::iterator portit;
+ TQMap<TQString,TQString>::iterator portit;
for (portit = ports.begin() ; portit != ports.end(); portit++) {
/* kdDebug() << "Adding USB camera: " << portit.data() << " at " << portit.key() << endl; */
kcamera = new KCamera(portit.data(),portit.key());
- connect(kcamera, SIGNAL(error(const QString &)), SLOT(slot_error(const QString &)));
- connect(kcamera, SIGNAL(error(const QString &, const QString &)), SLOT(slot_error(const QString &, const QString &)));
+ connect(kcamera, TQT_SIGNAL(error(const TQString &)), TQT_SLOT(slot_error(const TQString &)));
+ connect(kcamera, TQT_SIGNAL(error(const TQString &, const TQString &)), TQT_SLOT(slot_error(const TQString &, const TQString &)));
m_devices[portit.data()] = kcamera;
}
populateDeviceListView();
@@ -265,9 +265,9 @@ void KKameraConfig::afterCameraOperation(void)
slot_deviceSelected(m_deviceSel->currentItem());
}
-QString KKameraConfig::suggestName(const QString &name)
+TQString KKameraConfig::suggestName(const TQString &name)
{
- QString new_name = name;
+ TQString new_name = name;
new_name.replace("/", ""); // we cannot have a slash in a URI's host
if (!m_devices.contains(new_name)) return new_name;
@@ -275,20 +275,20 @@ QString KKameraConfig::suggestName(const QString &name)
// try new names with a number appended until we find a free one
int i = 1;
while (i++ < 0xffff) {
- new_name = name + " (" + QString::number(i) + ")";
+ new_name = name + " (" + TQString::number(i) + ")";
if (!m_devices.contains(new_name)) return new_name;
}
- return QString::null;
+ return TQString::null;
}
void KKameraConfig::slot_addCamera()
{
- KCamera *m_device = new KCamera(QString::null,QString::null);
- connect(m_device, SIGNAL(error(const QString &)), SLOT(slot_error(const QString &)));
- connect(m_device, SIGNAL(error(const QString &, const QString &)), SLOT(slot_error(const QString &, const QString &)));
+ KCamera *m_device = new KCamera(TQString::null,TQString::null);
+ connect(m_device, TQT_SIGNAL(error(const TQString &)), TQT_SLOT(slot_error(const TQString &)));
+ connect(m_device, TQT_SIGNAL(error(const TQString &, const TQString &)), TQT_SLOT(slot_error(const TQString &, const TQString &)));
KameraDeviceSelectDialog dialog(this, m_device);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
dialog.save();
m_device->setName(suggestName(m_device->model()));
m_devices.insert(m_device->name(), m_device);
@@ -301,7 +301,7 @@ void KKameraConfig::slot_addCamera()
void KKameraConfig::slot_removeCamera()
{
- QString name = m_deviceSel->currentItem()->text();
+ TQString name = m_deviceSel->currentItem()->text();
if (m_devices.contains(name)) {
KCamera *m_device = m_devices[name];
m_devices.remove(name);
@@ -316,7 +316,7 @@ void KKameraConfig::slot_testCamera()
{
beforeCameraOperation();
- QString name = m_deviceSel->currentItem()->text();
+ TQString name = m_deviceSel->currentItem()->text();
if (m_devices.contains(name)) {
KCamera *m_device = m_devices[name];
if (m_device->test())
@@ -328,7 +328,7 @@ void KKameraConfig::slot_testCamera()
void KKameraConfig::slot_configureCamera()
{
- QString name = m_deviceSel->currentItem()->text();
+ TQString name = m_deviceSel->currentItem()->text();
if (m_devices.contains(name)) {
KCamera *m_device = m_devices[name];
m_device->configure();
@@ -337,8 +337,8 @@ void KKameraConfig::slot_configureCamera()
void KKameraConfig::slot_cameraSummary()
{
- QString summary;
- QString name = m_deviceSel->currentItem()->text();
+ TQString summary;
+ TQString name = m_deviceSel->currentItem()->text();
if (m_devices.contains(name)) {
KCamera *m_device = m_devices[name];
summary = m_device->summary();
@@ -357,7 +357,7 @@ void KKameraConfig::slot_cancelOperation()
qApp->setOverrideCursor(Qt::WaitCursor);
}
-void KKameraConfig::slot_deviceMenu(QIconViewItem *item, const QPoint &point)
+void KKameraConfig::slot_deviceMenu(TQIconViewItem *item, const TQPoint &point)
{
if (item) {
m_devicePopup->clear();
@@ -369,7 +369,7 @@ void KKameraConfig::slot_deviceMenu(QIconViewItem *item, const QPoint &point)
}
}
-void KKameraConfig::slot_deviceSelected(QIconViewItem *item)
+void KKameraConfig::slot_deviceSelected(TQIconViewItem *item)
{
m_actions->action("camera_test")->setEnabled(item);
m_actions->action("camera_remove")->setEnabled(item);
@@ -399,7 +399,7 @@ GPContextFeedback KKameraConfig::cbGPCancel(GPContext * /*context*/, void *data)
return GP_CONTEXT_FEEDBACK_OK;
}
-QString KKameraConfig::quickHelp() const
+TQString KKameraConfig::quickHelp() const
{
return i18n("<h1>Digital Camera</h1>\n"
"This module allows you to configure support for your digital camera.\n"
@@ -411,12 +411,12 @@ QString KKameraConfig::quickHelp() const
"<a href=\"camera:/\">camera:/</a> in Konqueror and other KDE applications.");
}
-void KKameraConfig::slot_error(const QString &message)
+void KKameraConfig::slot_error(const TQString &message)
{
KMessageBox::error(this, message);
}
-void KKameraConfig::slot_error(const QString &message, const QString &details)
+void KKameraConfig::slot_error(const TQString &message, const TQString &details)
{
KMessageBox::detailedError(this, message, details);
}
diff --git a/kamera/kcontrol/kamera.h b/kamera/kcontrol/kamera.h
index 35f93bc0..6e66d642 100644
--- a/kamera/kcontrol/kamera.h
+++ b/kamera/kcontrol/kamera.h
@@ -26,15 +26,15 @@
#include <kcmodule.h>
#include <gphoto2.h>
-class QWidget;
-class QRadioButton;
-class QPushButton;
-class QComboBox;
-class QVButtonGroup;
-class QLineEdit;
-class QWidgetStack;
-class QCheckBox;
-class QIconViewItem;
+class TQWidget;
+class TQRadioButton;
+class TQPushButton;
+class TQComboBox;
+class TQVButtonGroup;
+class TQLineEdit;
+class TQWidgetStack;
+class TQCheckBox;
+class TQIconViewItem;
class KCamera;
class KameraDeviceSelectDialog;
@@ -50,7 +50,7 @@ class KKameraConfig : public KCModule
friend class KameraDeviceSelectDialog;
public:
- KKameraConfig(QWidget *parent, const char *name, const QStringList &);
+ KKameraConfig(TQWidget *parent, const char *name, const TQStringList &);
virtual ~KKameraConfig();
// KCModule interface methods
@@ -59,22 +59,22 @@ public:
void save();
void defaults();
int buttons();
- QString quickHelp() const;
+ TQString quickHelp() const;
protected:
- QString suggestName(const QString &name);
+ TQString suggestName(const TQString &name);
protected slots:
- void slot_deviceMenu(QIconViewItem *item, const QPoint &point);
- void slot_deviceSelected(QIconViewItem *item);
+ void slot_deviceMenu(TQIconViewItem *item, const TQPoint &point);
+ void slot_deviceSelected(TQIconViewItem *item);
void slot_addCamera();
void slot_removeCamera();
void slot_configureCamera();
void slot_cameraSummary();
void slot_testCamera();
void slot_cancelOperation();
- void slot_error(const QString &message);
- void slot_error(const QString &message, const QString &details);
+ void slot_error(const TQString &message);
+ void slot_error(const TQString &message, const TQString &details);
private:
void displayGPFailureDialogue(void);
@@ -89,7 +89,7 @@ private:
static GPContextFeedback cbGPCancel(GPContext *context, void *data);
private:
- typedef QMap<QString, KCamera *> CameraDevicesMap;
+ typedef TQMap<TQString, KCamera *> CameraDevicesMap;
KSimpleConfig *m_config;
CameraDevicesMap m_devices;
@@ -101,7 +101,7 @@ private:
// widgets for the cameras listview
KIconView *m_deviceSel;
KActionCollection *m_actions;
- QPushButton *m_addCamera, *m_removeCamera, *m_testCamera, *m_configureCamera;
+ TQPushButton *m_addCamera, *m_removeCamera, *m_testCamera, *m_configureCamera;
KToolBar *m_toolbar;
KPopupMenu *m_devicePopup;
diff --git a/kamera/kcontrol/kameraconfigdialog.cpp b/kamera/kcontrol/kameraconfigdialog.cpp
index 5af0b33d..124ea991 100644
--- a/kamera/kcontrol/kameraconfigdialog.cpp
+++ b/kamera/kcontrol/kameraconfigdialog.cpp
@@ -20,20 +20,20 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qlayout.h>
-#include <qgrid.h>
-#include <qlabel.h>
-#include <qvgroupbox.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qlineedit.h>
-#include <qcombobox.h>
-#include <qslider.h>
-#include <qvbuttongroup.h>
-#include <qhbuttongroup.h>
-#include <qvbox.h>
-#include <qtabwidget.h>
-#include <qwhatsthis.h>
+#include <tqlayout.h>
+#include <tqgrid.h>
+#include <tqlabel.h>
+#include <tqvgroupbox.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqlineedit.h>
+#include <tqcombobox.h>
+#include <tqslider.h>
+#include <tqvbuttongroup.h>
+#include <tqhbuttongroup.h>
+#include <tqvbox.h>
+#include <tqtabwidget.h>
+#include <tqwhatsthis.h>
#include <klocale.h>
@@ -42,13 +42,13 @@
KameraConfigDialog::KameraConfigDialog(Camera */*camera*/,
CameraWidget *widget,
- QWidget *parent,
+ TQWidget *parent,
const char *name) :
-KDialogBase(parent, name, true, QString::null, Ok|Cancel, Ok ),
+KDialogBase(parent, name, true, TQString::null, Ok|Cancel, Ok ),
m_widgetRoot(widget)
{
- QFrame *main = makeMainWidget();
- QVBoxLayout *topLayout = new QVBoxLayout(main, 0, spacingHint());
+ TQFrame *main = makeMainWidget();
+ TQVBoxLayout *topLayout = new TQVBoxLayout(main, 0, spacingHint());
topLayout->setAutoAdd(true);
m_tabWidget = 0;
@@ -56,9 +56,9 @@ m_widgetRoot(widget)
appendWidget(main, widget);
}
-void KameraConfigDialog::appendWidget(QWidget *parent, CameraWidget *widget)
+void KameraConfigDialog::appendWidget(TQWidget *parent, CameraWidget *widget)
{
- QWidget *newParent = parent;
+ TQWidget *newParent = parent;
CameraWidgetType widget_type;
const char *widget_name;
@@ -72,7 +72,7 @@ void KameraConfigDialog::appendWidget(QWidget *parent, CameraWidget *widget)
gp_widget_get_info(widget, &widget_info);
gp_widget_get_name(widget, &widget_name);
- QString whats_this = QString::fromLocal8Bit(widget_info); // gphoto2 doesn't seem to have any standard for i18n
+ TQString whats_this = TQString::fromLocal8Bit(widget_info); // gphoto2 doesn't seem to have any standard for i18n
// Add this widget to parent
switch(widget_type) {
@@ -85,13 +85,13 @@ void KameraConfigDialog::appendWidget(QWidget *parent, CameraWidget *widget)
case GP_WIDGET_SECTION:
{
if (!m_tabWidget)
- m_tabWidget = new QTabWidget(parent);
- QWidget *tab = new QWidget(m_tabWidget);
+ m_tabWidget = new TQTabWidget(parent);
+ TQWidget *tab = new TQWidget(m_tabWidget);
// widgets are to be aligned vertically in the tab
- QVBoxLayout *tabLayout = new QVBoxLayout(tab, marginHint(),
+ TQVBoxLayout *tabLayout = new TQVBoxLayout(tab, marginHint(),
spacingHint());
m_tabWidget->insertTab(tab, widget_label);
- QVBox *tabContainer = new QVBox(tab);
+ TQVBox *tabContainer = new TQVBox(tab);
tabContainer->setSpacing(spacingHint());
tabLayout->addWidget(tabContainer);
newParent = tabContainer;
@@ -104,14 +104,14 @@ void KameraConfigDialog::appendWidget(QWidget *parent, CameraWidget *widget)
{
gp_widget_get_value(widget, &widget_value_string);
- QGrid *grid = new QGrid(2, Horizontal, parent);
+ TQGrid *grid = new TQGrid(2, Horizontal, parent);
grid->setSpacing(spacingHint());
- new QLabel(QString::fromLocal8Bit( widget_label )+":", grid);
- QLineEdit *lineEdit = new QLineEdit(widget_value_string, grid);
+ new TQLabel(TQString::fromLocal8Bit( widget_label )+":", grid);
+ TQLineEdit *lineEdit = new TQLineEdit(widget_value_string, grid);
m_wmap.insert(widget, lineEdit);
if (!whats_this.isEmpty())
- QWhatsThis::add(grid, whats_this);
+ TQWhatsThis::add(grid, whats_this);
break;
}
@@ -123,18 +123,18 @@ void KameraConfigDialog::appendWidget(QWidget *parent, CameraWidget *widget)
gp_widget_get_range(widget, &widget_low, &widget_high, &widget_increment);
gp_widget_get_value(widget, &widget_value_float);
- QGroupBox *groupBox = new QVGroupBox(widget_label, parent);
- QSlider *slider = new QSlider(
+ TQGroupBox *groupBox = new TQVGroupBox(widget_label, parent);
+ TQSlider *slider = new TQSlider(
( int )widget_low,
( int )widget_high,
( int )widget_increment,
( int )widget_value_float,
- QSlider::Horizontal,
+ TQSlider::Horizontal,
groupBox );
m_wmap.insert(widget, slider);
if (!whats_this.isEmpty())
- QWhatsThis::add(groupBox, whats_this);
+ TQWhatsThis::add(groupBox, whats_this);
break;
}
@@ -142,12 +142,12 @@ void KameraConfigDialog::appendWidget(QWidget *parent, CameraWidget *widget)
{
gp_widget_get_value(widget, &widget_value_int);
- QCheckBox *checkBox = new QCheckBox(widget_label, parent);
+ TQCheckBox *checkBox = new TQCheckBox(widget_label, parent);
checkBox->setChecked(widget_value_int);
m_wmap.insert(widget, checkBox);
if (!whats_this.isEmpty())
- QWhatsThis::add(checkBox, whats_this);
+ TQWhatsThis::add(checkBox, whats_this);
break;
}
@@ -158,24 +158,24 @@ void KameraConfigDialog::appendWidget(QWidget *parent, CameraWidget *widget)
int count = gp_widget_count_choices(widget);
// for less than 5 options, align them horizontally
- QButtonGroup *buttonGroup;
+ TQButtonGroup *buttonGroup;
if (count > 4)
- buttonGroup = new QVButtonGroup(widget_label, parent);
+ buttonGroup = new TQVButtonGroup(widget_label, parent);
else
- buttonGroup = new QHButtonGroup(widget_label, parent);
+ buttonGroup = new TQHButtonGroup(widget_label, parent);
for(int i = 0; i < count; ++i) {
const char *widget_choice;
gp_widget_get_choice(widget, i, &widget_choice);
- new QRadioButton(widget_choice, buttonGroup);
+ new TQRadioButton(widget_choice, buttonGroup);
if(!strcmp(widget_value_string, widget_choice))
buttonGroup->setButton(i);
}
m_wmap.insert(widget, buttonGroup);
if (!whats_this.isEmpty())
- QWhatsThis::add(buttonGroup, whats_this);
+ TQWhatsThis::add(buttonGroup, whats_this);
break;
}
@@ -183,7 +183,7 @@ void KameraConfigDialog::appendWidget(QWidget *parent, CameraWidget *widget)
{
gp_widget_get_value(widget, &widget_value_string);
- QComboBox *comboBox = new QComboBox(FALSE, parent);
+ TQComboBox *comboBox = new TQComboBox(FALSE, parent);
comboBox->clear();
for(int i = 0; i < gp_widget_count_choices(widget); ++i) {
const char *widget_choice;
@@ -196,7 +196,7 @@ void KameraConfigDialog::appendWidget(QWidget *parent, CameraWidget *widget)
m_wmap.insert(widget, comboBox);
if (!whats_this.isEmpty())
- QWhatsThis::add(comboBox, whats_this);
+ TQWhatsThis::add(comboBox, whats_this);
break;
}
@@ -206,14 +206,14 @@ void KameraConfigDialog::appendWidget(QWidget *parent, CameraWidget *widget)
// I can't see a way of implementing this. Since there is
// no way of telling which button sent you a signal, we
// can't map to the appropriate widget->callback
- new QLabel(i18n("Button (not supported by KControl)"), parent);
+ new TQLabel(i18n("Button (not supported by KControl)"), parent);
break;
}
case GP_WIDGET_DATE:
{
// TODO
- new QLabel(i18n("Date (not supported by KControl)"), parent);
+ new TQLabel(i18n("Date (not supported by KControl)"), parent);
break;
}
@@ -233,7 +233,7 @@ void KameraConfigDialog::appendWidget(QWidget *parent, CameraWidget *widget)
switch (widget_type) {
case GP_WIDGET_SECTION:
{
- tabLayout->addItem( new QSpacerItem(0, 0, QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding) );
+ tabLayout->addItem( new TQSpacerItem(0, 0, TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding) );
break;
}
}
@@ -254,14 +254,14 @@ void KameraConfigDialog::updateWidgetValue(CameraWidget *widget)
break;
case GP_WIDGET_TEXT:
{
- QLineEdit *lineEdit = static_cast<QLineEdit *>(m_wmap[widget]);
+ TQLineEdit *lineEdit = static_cast<TQLineEdit *>(m_wmap[widget]);
gp_widget_set_value(widget, (void *)lineEdit->text().local8Bit().data());
break;
}
case GP_WIDGET_RANGE:
{
- QSlider *slider = static_cast<QSlider *>(m_wmap[widget]);
+ TQSlider *slider = static_cast<TQSlider *>(m_wmap[widget]);
float value_float = slider->value();
gp_widget_set_value(widget, (void *)&value_float);
@@ -269,7 +269,7 @@ void KameraConfigDialog::updateWidgetValue(CameraWidget *widget)
}
case GP_WIDGET_TOGGLE:
{
- QCheckBox *checkBox = static_cast<QCheckBox *>(m_wmap[widget]);
+ TQCheckBox *checkBox = static_cast<TQCheckBox *>(m_wmap[widget]);
int value_int = checkBox->isChecked() ? 1 : 0;
gp_widget_set_value(widget, (void *)&value_int);
@@ -277,14 +277,14 @@ void KameraConfigDialog::updateWidgetValue(CameraWidget *widget)
}
case GP_WIDGET_RADIO:
{
- QButtonGroup *buttonGroup = static_cast<QVButtonGroup *>(m_wmap[widget]);
+ TQButtonGroup *buttonGroup = static_cast<TQVButtonGroup *>(m_wmap[widget]);
gp_widget_set_value(widget, (void *)buttonGroup->selected()->text().local8Bit().data());
break;
}
case GP_WIDGET_MENU:
{
- QComboBox *comboBox = static_cast<QComboBox *>(m_wmap[widget]);
+ TQComboBox *comboBox = static_cast<TQComboBox *>(m_wmap[widget]);
gp_widget_set_value(widget, (void *)comboBox->currentText().local8Bit().data());
break;
diff --git a/kamera/kcontrol/kameraconfigdialog.h b/kamera/kcontrol/kameraconfigdialog.h
index 73b2a012..575f4aad 100644
--- a/kamera/kcontrol/kameraconfigdialog.h
+++ b/kamera/kcontrol/kameraconfigdialog.h
@@ -23,9 +23,9 @@
#ifndef __kameraconfigdialog_h__
#define __kameraconfigdialog_h__
-#include <qmap.h>
+#include <tqmap.h>
#include <kdialogbase.h>
-#include <qtabwidget.h>
+#include <tqtabwidget.h>
extern "C" {
#include <gphoto2.h>
@@ -36,18 +36,18 @@ class KameraConfigDialog : public KDialogBase
Q_OBJECT
public:
KameraConfigDialog(Camera *camera, CameraWidget *widget,
- QWidget *parent = 0, const char *name = 0);
+ TQWidget *parent = 0, const char *name = 0);
private slots:
void slotOk();
private:
- void appendWidget(QWidget *parent, CameraWidget *widget);
+ void appendWidget(TQWidget *parent, CameraWidget *widget);
void updateWidgetValue(CameraWidget *widget);
- QMap<CameraWidget *, QWidget *> m_wmap;
+ TQMap<CameraWidget *, TQWidget *> m_wmap;
CameraWidget *m_widgetRoot;
- QTabWidget *m_tabWidget;
+ TQTabWidget *m_tabWidget;
};
#endif
diff --git a/kamera/kcontrol/kameradevice.cpp b/kamera/kcontrol/kameradevice.cpp
index 010bf694..9492934b 100644
--- a/kamera/kcontrol/kameradevice.cpp
+++ b/kamera/kcontrol/kameradevice.cpp
@@ -20,16 +20,16 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qlayout.h>
-#include <qwidgetstack.h>
-#include <qvbuttongroup.h>
-#include <qvgroupbox.h>
-#include <qcombobox.h>
-#include <qlineedit.h>
-#include <qradiobutton.h>
-#include <qwhatsthis.h>
-#include <qlabel.h>
-#include <qgrid.h>
+#include <tqlayout.h>
+#include <tqwidgetstack.h>
+#include <tqvbuttongroup.h>
+#include <tqvgroupbox.h>
+#include <tqcombobox.h>
+#include <tqlineedit.h>
+#include <tqradiobutton.h>
+#include <tqwhatsthis.h>
+#include <tqlabel.h>
+#include <tqgrid.h>
#include <klocale.h>
#include <kconfig.h>
@@ -54,7 +54,7 @@ static const int INDEX_SERIAL = 1;
static const int INDEX_USB= 3;
static GPContext *glob_context = 0;
-KCamera::KCamera(const QString &name, const QString &path)
+KCamera::KCamera(const TQString &name, const TQString &path)
{
m_name = name;
m_model = name;
@@ -143,7 +143,7 @@ Camera* KCamera::camera()
return m_camera;
}
-QString KCamera::summary()
+TQString KCamera::summary()
{
int result;
CameraText summary;
@@ -153,7 +153,7 @@ QString KCamera::summary()
result = gp_camera_get_summary(m_camera, &summary, glob_context);
if (result != GP_OK)
return i18n("No camera summary information is available.\n");
- return QString(summary.text);
+ return TQString(summary.text);
}
bool KCamera::configure()
@@ -207,27 +207,27 @@ void KCamera::save(KConfig *config)
config->writeEntry("Path", m_path);
}
-QString KCamera::portName()
+TQString KCamera::portName()
{
- QString port = m_path.left(m_path.find(":")).lower();
+ TQString port = m_path.left(m_path.find(":")).lower();
if (port == "serial") return i18n("Serial");
if (port == "usb") return i18n("USB");
return i18n("Unknown port");
}
-void KCamera::setName(const QString &name)
+void KCamera::setName(const TQString &name)
{
m_name = name;
}
-void KCamera::setModel(const QString &model)
+void KCamera::setModel(const TQString &model)
{
m_model = model;
invalidateCamera();
initInformation();
}
-void KCamera::setPath(const QString &path)
+void KCamera::setPath(const TQString &path)
{
m_path = path;
invalidateCamera();
@@ -252,10 +252,10 @@ bool KCamera::isConfigurable()
return m_abilities.operations & GP_OPERATION_CONFIG;
}
-QStringList KCamera::supportedPorts()
+TQStringList KCamera::supportedPorts()
{
initInformation();
- QStringList ports;
+ TQStringList ports;
if (m_abilities.port & GP_PORT_SERIAL)
ports.append("serial");
if (m_abilities.port & GP_PORT_USB)
@@ -270,70 +270,70 @@ CameraAbilities KCamera::abilities()
// ---------- KameraSelectCamera ------------
-KameraDeviceSelectDialog::KameraDeviceSelectDialog(QWidget *parent, KCamera *device)
+KameraDeviceSelectDialog::KameraDeviceSelectDialog(TQWidget *parent, KCamera *device)
: KDialogBase(parent, "kkameradeviceselect", true, i18n("Select Camera Device"), Ok | Cancel, Ok, true)
{
m_device = device;
- connect(m_device, SIGNAL(error(const QString &)),
- SLOT(slot_error(const QString &)));
- connect(m_device, SIGNAL(error(const QString &, const QString &)),
- SLOT(slot_error(const QString &, const QString &)));
+ connect(m_device, TQT_SIGNAL(error(const TQString &)),
+ TQT_SLOT(slot_error(const TQString &)));
+ connect(m_device, TQT_SIGNAL(error(const TQString &, const TQString &)),
+ TQT_SLOT(slot_error(const TQString &, const TQString &)));
- QWidget *page = new QWidget( this );
+ TQWidget *page = new TQWidget( this );
setMainWidget(page);
// a layout with vertical boxes
- QHBoxLayout *topLayout = new QHBoxLayout(page, 0, KDialog::spacingHint());
+ TQHBoxLayout *topLayout = new TQHBoxLayout(page, 0, KDialog::spacingHint());
// the models list
m_modelSel = new KListView(page);
topLayout->addWidget( m_modelSel );
m_modelSel->addColumn(i18n("Supported Cameras"));
- m_modelSel->setColumnWidthMode(0, QListView::Maximum);
- connect(m_modelSel, SIGNAL(selectionChanged(QListViewItem *)),
- SLOT(slot_setModel(QListViewItem *)));
+ m_modelSel->setColumnWidthMode(0, TQListView::Maximum);
+ connect(m_modelSel, TQT_SIGNAL(selectionChanged(TQListViewItem *)),
+ TQT_SLOT(slot_setModel(TQListViewItem *)));
// make sure listview only as wide as it needs to be
- m_modelSel->setSizePolicy(QSizePolicy(QSizePolicy::Maximum,
- QSizePolicy::Preferred));
+ m_modelSel->setSizePolicy(TQSizePolicy(TQSizePolicy::Maximum,
+ TQSizePolicy::Preferred));
- QVBoxLayout *rightLayout = new QVBoxLayout(0L, 0, KDialog::spacingHint());
+ TQVBoxLayout *rightLayout = new TQVBoxLayout(0L, 0, KDialog::spacingHint());
topLayout->addLayout( rightLayout );
- m_portSelectGroup = new QVButtonGroup(i18n("Port"), page);
+ m_portSelectGroup = new TQVButtonGroup(i18n("Port"), page);
rightLayout->addWidget(m_portSelectGroup);
- m_portSettingsGroup = new QVGroupBox(i18n("Port Settings"), page);
+ m_portSettingsGroup = new TQVGroupBox(i18n("Port Settings"), page);
rightLayout->addWidget(m_portSettingsGroup);
// Create port type selection radiobuttons.
- m_serialRB = new QRadioButton(i18n("Serial"), m_portSelectGroup);
+ m_serialRB = new TQRadioButton(i18n("Serial"), m_portSelectGroup);
m_portSelectGroup->insert(m_serialRB, INDEX_SERIAL);
- QWhatsThis::add(m_serialRB, i18n("If this option is checked, the camera would have to be connected one of the serial ports (known as COM in Microsoft Windows) in your computer."));
- m_USBRB = new QRadioButton(i18n("USB"), m_portSelectGroup);
+ TQWhatsThis::add(m_serialRB, i18n("If this option is checked, the camera would have to be connected one of the serial ports (known as COM in Microsoft Windows) in your computer."));
+ m_USBRB = new TQRadioButton(i18n("USB"), m_portSelectGroup);
m_portSelectGroup->insert(m_USBRB, INDEX_USB);
- QWhatsThis::add(m_USBRB, i18n("If this option is checked, the camera would have to be connected to one of the USB slots in your computer or USB hub."));
+ TQWhatsThis::add(m_USBRB, i18n("If this option is checked, the camera would have to be connected to one of the USB slots in your computer or USB hub."));
// Create port settings widget stack
- m_settingsStack = new QWidgetStack(m_portSettingsGroup);
- connect(m_portSelectGroup, SIGNAL(clicked(int)),
- m_settingsStack, SLOT(raiseWidget(int)));
+ m_settingsStack = new TQWidgetStack(m_portSettingsGroup);
+ connect(m_portSelectGroup, TQT_SIGNAL(clicked(int)),
+ m_settingsStack, TQT_SLOT(raiseWidget(int)));
// none tab
- m_settingsStack->addWidget(new QLabel(i18n("No port type selected."),
+ m_settingsStack->addWidget(new TQLabel(i18n("No port type selected."),
m_settingsStack), INDEX_NONE);
// serial tab
- QGrid *grid = new QGrid(2, m_settingsStack);
+ TQGrid *grid = new TQGrid(2, m_settingsStack);
grid->setSpacing(KDialog::spacingHint());
- new QLabel(i18n("Port:"), grid);
- m_serialPortCombo = new QComboBox(TRUE, grid);
- QWhatsThis::add(m_serialPortCombo, i18n("Here you should choose the serial port you connect the camera to."));
+ new TQLabel(i18n("Port:"), grid);
+ m_serialPortCombo = new TQComboBox(TRUE, grid);
+ TQWhatsThis::add(m_serialPortCombo, i18n("Here you should choose the serial port you connect the camera to."));
m_settingsStack->addWidget(grid, INDEX_SERIAL);
- grid = new QGrid(2, m_settingsStack);
+ grid = new TQGrid(2, m_settingsStack);
grid->setSpacing(KDialog::spacingHint());
- new QLabel(i18n("Port"), grid);
+ new TQLabel(i18n("Port"), grid);
m_settingsStack->addWidget(new
- QLabel(i18n("No further configuration is required for USB."),
+ TQLabel(i18n("No further configuration is required for USB."),
m_settingsStack), INDEX_USB);
// query gphoto2 for existing serial ports
@@ -347,7 +347,7 @@ KameraDeviceSelectDialog::KameraDeviceSelectDialog(QWidget *parent, KCamera *dev
for (int i = 0; i < gphoto_ports; i++) {
if (gp_port_info_list_get_info(list, i, &info) >= 0) {
if (strncmp(info.path, "serial:", 7) == 0)
- m_serialPortCombo->insertItem(QString::fromLatin1(info.path).mid(7));
+ m_serialPortCombo->insertItem(TQString::fromLatin1(info.path).mid(7));
}
}
gp_port_info_list_free(list);
@@ -376,7 +376,7 @@ bool KameraDeviceSelectDialog::populateCameraListView()
} else {
for(int x = 0; x < numCams; ++x) {
if(gp_abilities_list_get_abilities(m_device->m_abilitylist, x, &a) == GP_OK) {
- new QListViewItem(m_modelSel, a.model);
+ new TQListViewItem(m_modelSel, a.model);
}
}
return true;
@@ -388,7 +388,7 @@ void KameraDeviceSelectDialog::save()
m_device->setModel(m_modelSel->currentItem()->text(0));
if (m_portSelectGroup->selected()) {
- QString type = m_portSelectGroup->selected()->text();
+ TQString type = m_portSelectGroup->selected()->text();
if(type == i18n("Serial"))
m_device->setPath("serial:" + m_serialPortCombo->currentText());
@@ -402,13 +402,13 @@ void KameraDeviceSelectDialog::save()
void KameraDeviceSelectDialog::load()
{
- QString path = m_device->path();
- QString port = path.left(path.find(":")).lower();
+ TQString path = m_device->path();
+ TQString port = path.left(path.find(":")).lower();
if (port == "serial") setPortType(INDEX_SERIAL);
if (port == "usb") setPortType(INDEX_USB);
- QListViewItem *modelItem = m_modelSel->firstChild();
+ TQListViewItem *modelItem = m_modelSel->firstChild();
if( modelItem)
{
do {
@@ -420,13 +420,13 @@ void KameraDeviceSelectDialog::load()
}
}
-void KameraDeviceSelectDialog::slot_setModel(QListViewItem *item)
+void KameraDeviceSelectDialog::slot_setModel(TQListViewItem *item)
{
enableButtonOK(true);
m_portSelectGroup->setEnabled(true);
m_portSettingsGroup->setEnabled(true);
- QString model = item->text(0);
+ TQString model = item->text(0);
CameraAbilities abilities;
int index = gp_abilities_list_lookup_model(m_device->m_abilitylist, model.local8Bit().data());
@@ -441,7 +441,7 @@ void KameraDeviceSelectDialog::slot_setModel(QListViewItem *item)
m_USBRB->setEnabled(abilities.port & GP_PORT_USB);
// turn off any selected port
- QButton *selected = m_portSelectGroup->selected();
+ TQButton *selected = m_portSelectGroup->selected();
if(selected != NULL)
selected->toggle();
@@ -465,12 +465,12 @@ void KameraDeviceSelectDialog::setPortType(int type)
m_settingsStack->raiseWidget(type);
}
-void KameraDeviceSelectDialog::slot_error(const QString &message)
+void KameraDeviceSelectDialog::slot_error(const TQString &message)
{
KMessageBox::error(this, message);
}
-void KameraDeviceSelectDialog::slot_error(const QString &message, const QString &details)
+void KameraDeviceSelectDialog::slot_error(const TQString &message, const TQString &details)
{
KMessageBox::detailedError(this, message, details);
}
diff --git a/kamera/kcontrol/kameradevice.h b/kamera/kcontrol/kameradevice.h
index aae24e02..34594f4e 100644
--- a/kamera/kcontrol/kameradevice.h
+++ b/kamera/kcontrol/kameradevice.h
@@ -23,52 +23,52 @@
#ifndef __kameradevice_h__
#define __kameradevice_h__
-#include <qmap.h>
+#include <tqmap.h>
#include <kdialogbase.h>
#include <config.h>
class KConfig;
-class QString;
+class TQString;
class KListView;
-class QWidgetStack;
-class QVButtonGroup;
-class QVGroupBox;
-class QComboBox;
-class QLineEdit;
-class QRadioButton;
-
-class KCamera : public QObject {
+class TQWidgetStack;
+class TQVButtonGroup;
+class TQVGroupBox;
+class TQComboBox;
+class TQLineEdit;
+class TQRadioButton;
+
+class KCamera : public TQObject {
friend class KameraDeviceSelectDialog;
Q_OBJECT
public:
- KCamera(const QString &name, const QString &path);
+ KCamera(const TQString &name, const TQString &path);
~KCamera();
void invalidateCamera();
bool configure();
void load(KConfig *m_config);
void save(KConfig *m_config);
bool test();
- QStringList supportedPorts();
+ TQStringList supportedPorts();
Camera* camera();
- QString name() const { return m_name ; }
- QString model() const { return m_model; }
- QString path() const { return m_path; }
- QString portName();
+ TQString name() const { return m_name ; }
+ TQString model() const { return m_model; }
+ TQString path() const { return m_path; }
+ TQString portName();
- QString summary();
+ TQString summary();
CameraAbilities abilities();
- void setName(const QString &name);
- void setModel(const QString &model);
- void setPath(const QString &path);
+ void setName(const TQString &name);
+ void setModel(const TQString &model);
+ void setPath(const TQString &path);
bool isTestable() const;
bool isConfigurable();
signals:
- void error(const QString &message);
- void error(const QString &message, const QString &details);
+ void error(const TQString &message);
+ void error(const TQString &message, const TQString &details);
protected:
bool initInformation();
@@ -78,9 +78,9 @@ protected:
Camera *m_camera;
// KConfig *m_config;
- QString m_name; // the camera's real name
- QString m_model;
- QString m_path;
+ TQString m_name; // the camera's real name
+ TQString m_model;
+ TQString m_path;
CameraAbilities m_abilities;
CameraAbilitiesList *m_abilitylist;
};
@@ -89,13 +89,13 @@ class KameraDeviceSelectDialog : public KDialogBase
{
Q_OBJECT
public:
- KameraDeviceSelectDialog(QWidget *parent, KCamera *device);
+ KameraDeviceSelectDialog(TQWidget *parent, KCamera *device);
void save();
void load();
protected slots:
- void slot_setModel(QListViewItem *item);
- void slot_error(const QString &message);
- void slot_error(const QString &message, const QString &details);
+ void slot_setModel(TQListViewItem *item);
+ void slot_error(const TQString &message);
+ void slot_error(const TQString &message, const TQString &details);
protected:
KCamera *m_device;
@@ -104,14 +104,14 @@ protected:
// port settings widgets
KListView *m_modelSel;
- QLineEdit *m_nameEdit;
- QWidgetStack *m_settingsStack;
- QVButtonGroup *m_portSelectGroup;
- QVGroupBox *m_portSettingsGroup;
- QComboBox *m_serialPortCombo;
+ TQLineEdit *m_nameEdit;
+ TQWidgetStack *m_settingsStack;
+ TQVButtonGroup *m_portSelectGroup;
+ TQVGroupBox *m_portSettingsGroup;
+ TQComboBox *m_serialPortCombo;
// port selection radio buttons
- QRadioButton *m_serialRB;
- QRadioButton *m_USBRB;
+ TQRadioButton *m_serialRB;
+ TQRadioButton *m_USBRB;
};
#endif
diff --git a/kamera/kioslave/kamera.cpp b/kamera/kioslave/kamera.cpp
index ab4eb469..5aefd632 100644
--- a/kamera/kioslave/kamera.cpp
+++ b/kamera/kioslave/kamera.cpp
@@ -29,8 +29,8 @@
#include <signal.h>
#include <errno.h>
-#include <qfile.h>
-#include <qtextstream.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
#include <kdebug.h>
#include <kinstance.h>
@@ -79,7 +79,7 @@ int kdemain(int argc, char **argv)
return 0;
}
-KameraProtocol::KameraProtocol(const QCString &pool, const QCString &app)
+KameraProtocol::KameraProtocol(const TQCString &pool, const TQCString &app)
: SlaveBase("camera", pool, app),
m_camera(NULL)
{
@@ -104,7 +104,7 @@ m_camera(NULL)
//
// The existance of a lockfile is used to signify "please give up camera".
//
-void KameraProtocol::special(const QByteArray&) {
+void KameraProtocol::special(const TQByteArray&) {
kdDebug(7123) << "KameraProtocol::special() at " << getpid() << endl;
if (!actiondone && cameraopen) {
@@ -136,7 +136,7 @@ KameraProtocol::~KameraProtocol()
}
// initializes the camera for usage - should be done before operations over the wire
-bool KameraProtocol::openCamera(QString &str) {
+bool KameraProtocol::openCamera(TQString &str) {
idletime = 0;
actiondone = true;
if (!m_camera) {
@@ -188,8 +188,8 @@ void KameraProtocol::closeCamera(void)
return;
}
-static QString fix_foldername(QString ofolder) {
- QString folder = ofolder;
+static TQString fix_foldername(TQString ofolder) {
+ TQString folder = ofolder;
if (folder.length() > 1) {
while ((folder.length()>1) && (folder.right(1) == "/"))
folder = folder.left(folder.length()-1);
@@ -227,7 +227,7 @@ void KameraProtocol::get(const KURL &url)
error(KIO::ERR_DOES_NOT_EXIST, url.path()); \
return; \
} \
- QByteArray chunkDataBuffer; \
+ TQByteArray chunkDataBuffer; \
chunkDataBuffer.setRawData(xx.text, strlen(xx.text)); \
data(chunkDataBuffer); \
processedSize(strlen(xx.text)); \
@@ -329,7 +329,7 @@ void KameraProtocol::get(const KURL &url)
// already.
if ((fileSize > 0) && (fileSize - m_fileSize)>0) {
unsigned long written = 0;
- QByteArray chunkDataBuffer;
+ TQByteArray chunkDataBuffer;
// We need to split it up here. Someone considered it funny
// to discard any data() larger than 16MB.
@@ -518,9 +518,9 @@ void KameraProtocol::listDir(const KURL &url)
if (url.host().isEmpty()) {
KURL xurl;
// List the available cameras
- QStringList groupList = m_config->groupList();
+ TQStringList groupList = m_config->groupList();
kdDebug(7123) << "Found cameras: " << groupList.join(", ") << endl;
- QStringList::Iterator it;
+ TQStringList::Iterator it;
UDSEntry entry;
UDSAtom atom;
@@ -531,8 +531,8 @@ void KameraProtocol::listDir(const KURL &url)
* - List all saved and possible offline cameras.
* - List all autodetected and not yet printed cameras.
*/
- QMap<QString,QString> ports, names;
- QMap<QString,int> modelcnt;
+ TQMap<TQString,TQString> ports, names;
+ TQMap<TQString,int> modelcnt;
/* Autodetect USB cameras ... */
GPContext *glob_context = NULL;
@@ -578,7 +578,7 @@ void KameraProtocol::listDir(const KURL &url)
ports.remove("usb:");
for (it = groupList.begin(); it != groupList.end(); it++) {
- QString m_cfgPath;
+ TQString m_cfgPath;
if (*it == "<default>")
continue;
@@ -619,7 +619,7 @@ void KameraProtocol::listDir(const KURL &url)
listEntry(entry, false);
}
- QMap<QString,QString>::iterator portsit;
+ TQMap<TQString,TQString>::iterator portsit;
for (portsit = ports.begin(); portsit != ports.end(); portsit++) {
entry.clear();
@@ -699,7 +699,7 @@ void KameraProtocol::listDir(const KURL &url)
for(int i = 0; i < gp_list_count(dirList); ++i) {
gp_list_get_name(dirList, i, &name);
- translateDirectoryToUDS(entry, QString::fromLocal8Bit(name));
+ translateDirectoryToUDS(entry, TQString::fromLocal8Bit(name));
listEntry(entry, false);
}
@@ -709,7 +709,7 @@ void KameraProtocol::listDir(const KURL &url)
gp_list_get_name(fileList, i, &name);
// we want to know more info about files (size, type...)
gp_camera_file_get_info(m_camera, tocstr(url.path()), name, &info, m_context);
- translateFileToUDS(entry, info, QString::fromLocal8Bit(name));
+ translateFileToUDS(entry, info, TQString::fromLocal8Bit(name));
listEntry(entry, false);
}
if (!url.path().compare("/")) {
@@ -737,7 +737,7 @@ void KameraProtocol::listDir(const KURL &url)
finished();
}
-void KameraProtocol::setHost(const QString& host, int port, const QString& user, const QString& pass )
+void KameraProtocol::setHost(const TQString& host, int port, const TQString& user, const TQString& pass )
{
kdDebug(7123) << "KameraProtocol::setHost(" << host << ", " << port << ", " << user << ", " << pass << ")" << endl;
int gpr, idx;
@@ -805,7 +805,7 @@ void KameraProtocol::setHost(const QString& host, int port, const QString& user,
gp_camera_set_port_speed(m_camera, 0); // TODO: the value needs to be configurable
kdDebug(7123) << "Opening camera model " << user << " at " << host << endl;
- QString errstr;
+ TQString errstr;
if (!openCamera(errstr)) {
kdDebug(7123) << "Unable to init camera: " << gp_result_as_string(gpr) << endl;
error(KIO::ERR_SERVICE_NOT_AVAILABLE, errstr);
@@ -821,7 +821,7 @@ void KameraProtocol::reparseConfiguration(void)
}
// translate a simple text to a UDS entry
-void KameraProtocol::translateTextToUDS(UDSEntry &udsEntry, const QString &fn,
+void KameraProtocol::translateTextToUDS(UDSEntry &udsEntry, const TQString &fn,
const char *text
) {
UDSAtom atom;
@@ -846,7 +846,7 @@ void KameraProtocol::translateTextToUDS(UDSEntry &udsEntry, const QString &fn,
}
// translate a CameraFileInfo to a UDSEntry which we can return as a directory listing entry
-void KameraProtocol::translateFileToUDS(UDSEntry &udsEntry, const CameraFileInfo &info, QString name)
+void KameraProtocol::translateFileToUDS(UDSEntry &udsEntry, const CameraFileInfo &info, TQString name)
{
UDSAtom atom;
@@ -858,7 +858,7 @@ void KameraProtocol::translateFileToUDS(UDSEntry &udsEntry, const CameraFileInfo
atom.m_uds = UDS_NAME;
if (info.file.fields & GP_FILE_INFO_NAME)
- atom.m_str = QString::fromLocal8Bit(info.file.name);
+ atom.m_str = TQString::fromLocal8Bit(info.file.name);
else
atom.m_str = name;
udsEntry.append(atom);
@@ -881,7 +881,7 @@ void KameraProtocol::translateFileToUDS(UDSEntry &udsEntry, const CameraFileInfo
if (info.file.fields & GP_FILE_INFO_TYPE) {
atom.m_uds = UDS_MIME_TYPE;
- atom.m_str = QString::fromLatin1(info.file.type);
+ atom.m_str = TQString::fromLatin1(info.file.type);
udsEntry.append(atom);
}
@@ -903,7 +903,7 @@ void KameraProtocol::translateFileToUDS(UDSEntry &udsEntry, const CameraFileInfo
}
// translate a directory name to a UDSEntry which we can return as a directory listing entry
-void KameraProtocol::translateDirectoryToUDS(UDSEntry &udsEntry, const QString &dirname)
+void KameraProtocol::translateDirectoryToUDS(UDSEntry &udsEntry, const TQString &dirname)
{
UDSAtom atom;
@@ -942,7 +942,7 @@ bool KameraProtocol::cameraSupportsPreview(void)
return (m_abilities.file_operations & GP_FILE_OPERATION_PREVIEW);
}
-int KameraProtocol::readCameraFolder(const QString &folder, CameraList *dirList, CameraList *fileList)
+int KameraProtocol::readCameraFolder(const TQString &folder, CameraList *dirList, CameraList *fileList)
{
kdDebug(7123) << "KameraProtocol::readCameraFolder(" << folder << ")" << endl;
@@ -975,7 +975,7 @@ void frontendProgressUpdate(
if (fileSize > 0) {
// XXX using assign() here causes segfault, prolly because
// gp_file_free is called before chunkData goes out of scope
- QByteArray chunkDataBuffer;
+ TQByteArray chunkDataBuffer;
chunkDataBuffer.setRawData(fileData + object->getFileSize(), fileSize - object->getFileSize());
// Note: this will fail with sizes > 16MB ...
object->data(chunkDataBuffer);
@@ -1021,7 +1021,7 @@ unsigned int frontendProgressStart(
vsnprintf(status, 300, format, args);
#endif
- object->infoMessage(QString::fromLocal8Bit(status));
+ object->infoMessage(TQString::fromLocal8Bit(status));
delete [] status;
object->totalSize((int)totalsize); // hack: call slot directly
return GP_OK;
@@ -1061,6 +1061,6 @@ static void frontendCameraStatus(GPContext * /*context*/, const char *format, va
status=new char[300];
vsnprintf(status, 300, format, args);
#endif
- object->infoMessage(QString::fromLocal8Bit(status));
+ object->infoMessage(TQString::fromLocal8Bit(status));
delete [] status;
}
diff --git a/kamera/kioslave/kamera.h b/kamera/kioslave/kamera.h
index 765f6560..b75a0185 100644
--- a/kamera/kioslave/kamera.h
+++ b/kamera/kioslave/kamera.h
@@ -32,15 +32,15 @@ class KSimpleConfig;
class KameraProtocol : public KIO::SlaveBase
{
public:
- KameraProtocol(const QCString &pool, const QCString &app);
+ KameraProtocol(const TQCString &pool, const TQCString &app);
virtual ~KameraProtocol();
virtual void get(const KURL &url);
virtual void stat(const KURL &url);
virtual void del(const KURL &url, bool isFile);
- virtual void setHost(const QString& host, int port, const QString& user, const QString& pass );
+ virtual void setHost(const TQString& host, int port, const TQString& user, const TQString& pass );
virtual void listDir(const KURL &url);
- virtual void special(const QByteArray &data);
+ virtual void special(const TQByteArray &data);
CameraFile *getFile() { return m_file; }
int getFileSize() { return m_fileSize; }
@@ -54,24 +54,24 @@ private:
GPContext *m_context;
void reparseConfiguration(void);
- bool openCamera(QString& str);
+ bool openCamera(TQString& str);
bool openCamera(void ) {
- QString errstr;
+ TQString errstr;
return openCamera(errstr);
}
void closeCamera(void);
void statRoot(void);
void statRegular(const KURL &url);
- void translateTextToUDS(KIO::UDSEntry &udsEntry, const QString &info, const char *txt);
- void translateFileToUDS(KIO::UDSEntry &udsEntry, const CameraFileInfo &info, QString name);
- void translateDirectoryToUDS(KIO::UDSEntry &udsEntry, const QString &dirname);
+ void translateTextToUDS(KIO::UDSEntry &udsEntry, const TQString &info, const char *txt);
+ void translateFileToUDS(KIO::UDSEntry &udsEntry, const CameraFileInfo &info, TQString name);
+ void translateDirectoryToUDS(KIO::UDSEntry &udsEntry, const TQString &dirname);
bool cameraSupportsPreview(void);
bool cameraSupportsDel(void);
bool cameraSupportsPut(void);
- int readCameraFolder(const QString &folder, CameraList *dirList, CameraList *fileList);
+ int readCameraFolder(const TQString &folder, CameraList *dirList, CameraList *fileList);
- QString m_lockfile;
+ TQString m_lockfile;
int idletime;
int m_fileSize;
diff --git a/kcoloredit/color.cpp b/kcoloredit/color.cpp
index db18a5a5..eb06444b 100644
--- a/kcoloredit/color.cpp
+++ b/kcoloredit/color.cpp
@@ -21,7 +21,7 @@ Color::Color(){
setComponents(0, 0, 0);
setName("");
}
-Color::Color(const int red, const int green, const int blue, const QString& name) {
+Color::Color(const int red, const int green, const int blue, const TQString& name) {
setComponents(red, green, blue);
setName(name);
}
@@ -38,7 +38,7 @@ void Color::setComponents(const int red, const int green, const int blue) {
setComponent(BLUE_INDEX, blue);
}
-void Color::setName(const QString& name) {
+void Color::setName(const TQString& name) {
m_name = name;
}
@@ -50,7 +50,7 @@ const int* Color::components() const{
return m_components;
}
-const QString& Color::name() const {
+const TQString& Color::name() const {
return m_name;
}
diff --git a/kcoloredit/color.h b/kcoloredit/color.h
index 723ba2f0..e20bc1de 100644
--- a/kcoloredit/color.h
+++ b/kcoloredit/color.h
@@ -39,7 +39,7 @@ class Color {
Color();
/** constructs a color with given components and a name
*/
- Color(const int red, const int green, const int blue, const QString& name);
+ Color(const int red, const int green, const int blue, const TQString& name);
~Color();
/** sets a component
*/
@@ -49,7 +49,7 @@ class Color {
void setComponents(const int red, const int green, const int blue);
/** sets a name
*/
- void setName(const QString& name);
+ void setName(const TQString& name);
/** @return a component
*/
int component(const int index) const;
@@ -58,7 +58,7 @@ class Color {
const int* components() const;
/** @return a color name
*/
- const QString& name() const;
+ const TQString& name() const;
/** @return if is equal to color
*/
bool equals(const Color& color);
@@ -75,7 +75,7 @@ class Color {
int m_components[COMPONENTS_NUM];
/** a color name
*/
- QString m_name;
+ TQString m_name;
};
#endif
diff --git a/kcoloredit/colorselector.cpp b/kcoloredit/colorselector.cpp
index 2b0530d3..50288313 100644
--- a/kcoloredit/colorselector.cpp
+++ b/kcoloredit/colorselector.cpp
@@ -17,11 +17,11 @@
#include <math.h>
-#include <qlayout.h>
-/* #include <qtabwidget.h> */
-#include <qradiobutton.h>
-#include <qlabel.h>
-#include <qslider.h>
+#include <tqlayout.h>
+/* #include <tqtabwidget.h> */
+#include <tqradiobutton.h>
+#include <tqlabel.h>
+#include <tqslider.h>
#include <kseparator.h>
#include <klocale.h>
@@ -30,59 +30,59 @@
#include "texteditselection.h"
#include "colorselector.h"
-ColorSelector::ColorSelector(QWidget *parent, const char *name ) : QWidget(parent, name) {
+ColorSelector::ColorSelector(TQWidget *parent, const char *name ) : TQWidget(parent, name) {
fComponentsMode = false;
- QVBoxLayout* topLayout = new QVBoxLayout(this, 4);
+ TQVBoxLayout* topLayout = new TQVBoxLayout(this, 4);
/*
- QTabWidget* pages = new QTabWidget(this);
+ TQTabWidget* pages = new TQTabWidget(this);
*/
gradientSelection = new GradientSelection(this);
- connect(gradientSelection, SIGNAL( valueChanged(Color*) ),
- SLOT( slotGradientSelectionChangeColor(Color*) ));
- connect(gradientSelection, SIGNAL( synchronizeColor() ),
- SLOT( slotGradientSelectionSynchronizeColor() ));
- connect(this, SIGNAL( valueChanged(Color*) ), gradientSelection, SLOT( slotSetValue(Color*) ));
+ connect(gradientSelection, TQT_SIGNAL( valueChanged(Color*) ),
+ TQT_SLOT( slotGradientSelectionChangeColor(Color*) ));
+ connect(gradientSelection, TQT_SIGNAL( synchronizeColor() ),
+ TQT_SLOT( slotGradientSelectionSynchronizeColor() ));
+ connect(this, TQT_SIGNAL( valueChanged(Color*) ), gradientSelection, TQT_SLOT( slotSetValue(Color*) ));
/*
pages->addTab(gradientSelection, i18n( "Gradient" ));
ImageSelection* imageSelection = new ImageSelection(this);
- connect(imageSelection, SIGNAL( valueChanged(Color*) ), SLOT( slotSetColor(Color*) ));
- connect(this, SIGNAL( valueChanged(Color*) ), imageSelection, SLOT( slotSetValue(Color*) ));
+ connect(imageSelection, TQT_SIGNAL( valueChanged(Color*) ), TQT_SLOT( slotSetColor(Color*) ));
+ connect(this, TQT_SIGNAL( valueChanged(Color*) ), imageSelection, TQT_SLOT( slotSetValue(Color*) ));
pages->addTab(imageSelection, i18n( "Image" ));
topLayout->addWidget(pages, 10);
*/
topLayout->addWidget(gradientSelection, 10);
KSeparator* hLine = new KSeparator(KSeparator::HLine, this);
topLayout->addWidget(hLine);
- QHBoxLayout* layout = new QHBoxLayout();
+ TQHBoxLayout* layout = new TQHBoxLayout();
TextEditSelection* textEditSelection = new TextEditSelection(this);
- connect(textEditSelection, SIGNAL( valueChanged(Color*) ), SLOT( slotSetColor(Color*) ));
- connect(this, SIGNAL( valueChanged(Color*) ), textEditSelection, SLOT( slotSetValue(Color*) ));
- QVBoxLayout* colorChangeLayout = new QVBoxLayout();
+ connect(textEditSelection, TQT_SIGNAL( valueChanged(Color*) ), TQT_SLOT( slotSetColor(Color*) ));
+ connect(this, TQT_SIGNAL( valueChanged(Color*) ), textEditSelection, TQT_SLOT( slotSetValue(Color*) ));
+ TQVBoxLayout* colorChangeLayout = new TQVBoxLayout();
colorChangeLayout->setMargin(2);
- QRadioButton* replaceButton = new QRadioButton(i18n( "Replace" ), this);
- connect(replaceButton, SIGNAL( clicked() ), SLOT( slotColorReplace() ));
+ TQRadioButton* replaceButton = new TQRadioButton(i18n( "Replace" ), this);
+ connect(replaceButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotColorReplace() ));
replaceButton->setChecked(true);
colorChangeButtons.insert(replaceButton);
colorChangeLayout->addWidget(replaceButton);
- QRadioButton* changeButton = new QRadioButton(i18n( "Change" ) + ":", this);
- connect(changeButton, SIGNAL( clicked() ), SLOT( slotColorChange() ));
+ TQRadioButton* changeButton = new TQRadioButton(i18n( "Change" ) + ":", this);
+ connect(changeButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotColorChange() ));
colorChangeButtons.insert(changeButton);
colorChangeLayout->addWidget(changeButton);
colorChangeValue = 0;
- colorChangeSliderWidget = new QWidget(this);
- QVBoxLayout* colorChangeSliderLayout = new QVBoxLayout(colorChangeSliderWidget, 1);
+ colorChangeSliderWidget = new TQWidget(this);
+ TQVBoxLayout* colorChangeSliderLayout = new TQVBoxLayout(colorChangeSliderWidget, 1);
colorChangeSliderLayout->setMargin(0);
- QSlider* colorChangeSlider = new QSlider(0, MAX_COLOR_CHANGE_VALUE,
- MAX_COLOR_CHANGE_VALUE/4, colorChangeValue, QSlider::Horizontal, colorChangeSliderWidget);
+ TQSlider* colorChangeSlider = new TQSlider(0, MAX_COLOR_CHANGE_VALUE,
+ MAX_COLOR_CHANGE_VALUE/4, colorChangeValue, TQSlider::Horizontal, colorChangeSliderWidget);
colorChangeSlider->setTickInterval(colorChangeSlider->pageStep());
- colorChangeSlider->setTickmarks(QSlider::Above);
- connect(colorChangeSlider, SIGNAL( valueChanged(int) ), SLOT( slotColorChangeValueChanged(int) ));
+ colorChangeSlider->setTickmarks(TQSlider::Above);
+ connect(colorChangeSlider, TQT_SIGNAL( valueChanged(int) ), TQT_SLOT( slotColorChangeValueChanged(int) ));
colorChangeSliderLayout->addWidget(colorChangeSlider);
- QHBoxLayout* colorChangeSliderLabelsLayout = new QHBoxLayout(0);
- QLabel* subtractLabel = new QLabel(i18n( "0" ), colorChangeSliderWidget);
+ TQHBoxLayout* colorChangeSliderLabelsLayout = new TQHBoxLayout(0);
+ TQLabel* subtractLabel = new TQLabel(i18n( "0" ), colorChangeSliderWidget);
colorChangeSliderLabelsLayout->addWidget(subtractLabel);
colorChangeSliderLabelsLayout->addStretch(10);
- QLabel* addLabel = new QLabel(" " + i18n( "Replace" ), colorChangeSliderWidget);
+ TQLabel* addLabel = new TQLabel(" " + i18n( "Replace" ), colorChangeSliderWidget);
colorChangeSliderLabelsLayout->addWidget(addLabel);
colorChangeSliderLayout->addLayout(colorChangeSliderLabelsLayout);
colorChangeLayout->addStretch(10);
@@ -95,7 +95,7 @@ ColorSelector::ColorSelector(QWidget *parent, const char *name ) : QWidget(paren
layout->addWidget(vLine);
layout->addWidget(textEditSelection, 1);
colorPatch = new KColorPatch(this);
- connect(colorPatch, SIGNAL( colorChanged(const QColor&) ), SLOT( slotSetColor(const QColor&) ));
+ connect(colorPatch, TQT_SIGNAL( colorChanged(const TQColor&) ), TQT_SLOT( slotSetColor(const TQColor&) ));
colorPatch->setMinimumSize(80, 64);
layout->addWidget(colorPatch, 10);
topLayout->addLayout(layout);
@@ -105,7 +105,7 @@ ColorSelector::~ColorSelector() {
void ColorSelector::slotSetColor(Color color) {
m_color = color;
- colorPatch->setColor(QColor( m_color.component(Color::RED_INDEX),
+ colorPatch->setColor(TQColor( m_color.component(Color::RED_INDEX),
m_color.component(Color::GREEN_INDEX),
m_color.component(Color::BLUE_INDEX) ));
fComponentsMode = false;
@@ -116,7 +116,7 @@ void ColorSelector::slotSetColor(Color* color) {
slotSetColor(*color);
}
-void ColorSelector::slotSetColor(const QColor& color) {
+void ColorSelector::slotSetColor(const TQColor& color) {
m_color.setComponent(Color::RED_INDEX, color.red());
m_color.setComponent(Color::GREEN_INDEX, color.green());
m_color.setComponent(Color::BLUE_INDEX, color.blue());
diff --git a/kcoloredit/colorselector.h b/kcoloredit/colorselector.h
index 21b5902b..72d62ef6 100644
--- a/kcoloredit/colorselector.h
+++ b/kcoloredit/colorselector.h
@@ -18,9 +18,9 @@
#ifndef COLORSELECTOR_H
#define COLORSELECTOR_H
-#include <qwidget.h>
-#include <qcolor.h>
-#include <qbuttongroup.h>
+#include <tqwidget.h>
+#include <tqcolor.h>
+#include <tqbuttongroup.h>
#include <kcolordialog.h>
#include "color.h"
@@ -29,12 +29,12 @@
/** Color selector widget
* @author Artur Rataj
*/
-class ColorSelector : public QWidget {
+class ColorSelector : public TQWidget {
Q_OBJECT
public:
/** constructs a color selector widget */
- ColorSelector(QWidget *parent=0, const char *name=0);
+ ColorSelector(TQWidget *parent=0, const char *name=0);
~ColorSelector();
/** @return the selected color */
const Color& color();
@@ -49,7 +49,7 @@ public slots:
/** Called if a color changed */
void slotSetColor(Color* color);
/** called if a color changed in the color patch */
- void slotSetColor(const QColor& color);
+ void slotSetColor(const TQColor& color);
/** Called by the gradient selection, to replace or modify a color */
void slotGradientSelectionChangeColor(Color* gradientSelectionColor);
/** Called by the gradient selection, to synchronize its color */
@@ -69,9 +69,9 @@ private:
MAX_COLOR_CHANGE_VALUE = 16 };
/** A color change slider widget */
- QWidget* colorChangeSliderWidget;
+ TQWidget* colorChangeSliderWidget;
/** Color change buttons button group widget */
- QButtonGroup colorChangeButtons;
+ TQButtonGroup colorChangeButtons;
/** A color patch widget */
KColorPatch* colorPatch;
/** A gradient selection widget */
diff --git a/kcoloredit/gradientselection.cpp b/kcoloredit/gradientselection.cpp
index a8927c7d..f75547c1 100644
--- a/kcoloredit/gradientselection.cpp
+++ b/kcoloredit/gradientselection.cpp
@@ -15,39 +15,39 @@
* *
***************************************************************************/
-#include <qlayout.h>
-#include <qframe.h>
-#include <qradiobutton.h>
-#include <qcolor.h>
+#include <tqlayout.h>
+#include <tqframe.h>
+#include <tqradiobutton.h>
+#include <tqcolor.h>
#include <klocale.h>
#include "main.h"
#include "gradientselection.h"
-GradientSelection::GradientSelection(QWidget *parent, const char *name ) : QWidget(parent,name) {
- QGridLayout* topLayout = new QGridLayout(this, 2, 2, 0);
- QHBoxLayout* layout = new QHBoxLayout(0);
+GradientSelection::GradientSelection(TQWidget *parent, const char *name ) : TQWidget(parent,name) {
+ TQGridLayout* topLayout = new TQGridLayout(this, 2, 2, 0);
+ TQHBoxLayout* layout = new TQHBoxLayout(0);
layout->setMargin(3);
xyColorSelector = new KXYColorSelector(this);
- connect(xyColorSelector, SIGNAL( valueChanged(int, int) ),
- SLOT( slotXyColorSelectorPosChanged(int, int) ));
+ connect(xyColorSelector, TQT_SIGNAL( valueChanged(int, int) ),
+ TQT_SLOT( slotXyColorSelectorPosChanged(int, int) ));
layout->addWidget(xyColorSelector);
topLayout->addLayout(layout, 0, 0);
topLayout->setRowStretch(0, 10);
topLayout->setRowStretch(1, 0);
- QVBoxLayout* xyColorSelectorLayout = new QVBoxLayout();
- QHBoxLayout* checkBoxLayout = new QHBoxLayout();
+ TQVBoxLayout* xyColorSelectorLayout = new TQVBoxLayout();
+ TQHBoxLayout* checkBoxLayout = new TQHBoxLayout();
checkBoxLayout->setMargin(0);
- variableCheckBox = new QCheckBox(i18n( "Variable" ), this);
+ variableCheckBox = new TQCheckBox(i18n( "Variable" ), this);
variableGlobalComponent = false;
- connect(variableCheckBox, SIGNAL( toggled(bool) ), SLOT( slotSetVariableGlobalComponent(bool) ));
+ connect(variableCheckBox, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( slotSetVariableGlobalComponent(bool) ));
checkBoxLayout->addSpacing(2);
checkBoxLayout->addWidget(variableCheckBox);
xyColorSelectorLayout->addLayout(checkBoxLayout);
xyColorSelectorLayout->addStretch(10);
- QHBoxLayout* buttonsLayout = new QHBoxLayout();
- synchronizeColorButton = new QPushButton(i18n( "Synchronize" ), this);
- connect(synchronizeColorButton, SIGNAL( clicked() ), SLOT( slotSynchronizeColor() ));
+ TQHBoxLayout* buttonsLayout = new TQHBoxLayout();
+ synchronizeColorButton = new TQPushButton(i18n( "Synchronize" ), this);
+ connect(synchronizeColorButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotSynchronizeColor() ));
buttonsLayout->addSpacing(2);
buttonsLayout->addWidget(synchronizeColorButton);
buttonsLayout->addStretch(10);
@@ -55,19 +55,19 @@ GradientSelection::GradientSelection(QWidget *parent, const char *name ) : QWidg
xyColorSelectorLayout->addSpacing(2);
topLayout->addLayout(xyColorSelectorLayout, 1, 0);
zColorSelector = new KZColorSelector(KZColorSelector::Vertical, this);
- connect(zColorSelector, SIGNAL( valueChanged(int) ),
- SLOT( slotZColorSelectorPosChanged(int) ));
+ connect(zColorSelector, TQT_SIGNAL( valueChanged(int) ),
+ TQT_SLOT( slotZColorSelectorPosChanged(int) ));
zColorSelector->setFixedWidth(36);
topLayout->addWidget(zColorSelector, 0, 1);
- QVBoxLayout* zColorSelectorLayout = new QVBoxLayout(0);
- connect(&hsvButtons, SIGNAL( clicked(int) ), SLOT( slotSetColorSelectionMode(int) ));
- QRadioButton* hRadioButton = new QRadioButton("H", this);
+ TQVBoxLayout* zColorSelectorLayout = new TQVBoxLayout(0);
+ connect(&hsvButtons, TQT_SIGNAL( clicked(int) ), TQT_SLOT( slotSetColorSelectionMode(int) ));
+ TQRadioButton* hRadioButton = new TQRadioButton("H", this);
hsvButtons.insert(hRadioButton, H_COMPONENT);
zColorSelectorLayout->addWidget(hRadioButton);
- QRadioButton* sRadioButton = new QRadioButton("S", this);
+ TQRadioButton* sRadioButton = new TQRadioButton("S", this);
hsvButtons.insert(sRadioButton, S_COMPONENT);
zColorSelectorLayout->addWidget(sRadioButton);
- QRadioButton* vRadioButton = new QRadioButton("V", this);
+ TQRadioButton* vRadioButton = new TQRadioButton("V", this);
hsvButtons.insert(vRadioButton, V_COMPONENT);
vRadioButton->toggle();
zColorSelectorLayout->addWidget(vRadioButton);
@@ -88,7 +88,7 @@ void GradientSelection::slotSetValue(Color* color) {
int newHComponent;
int newSComponent;
int newVComponent;
- QColor hsvColor(this->color.component(Color::RED_INDEX),
+ TQColor hsvColor(this->color.component(Color::RED_INDEX),
this->color.component(Color::GREEN_INDEX),
this->color.component(Color::BLUE_INDEX));
hsvColor.hsv(&newHComponent, &newSComponent, &newVComponent);
@@ -210,7 +210,7 @@ void GradientSelection::slotXyColorSelectorPosChanged(int x, int y) {
break;
}
- QColor rgbColor;
+ TQColor rgbColor;
rgbColor.setHsv(hComponent, sComponent, vComponent);
color.setComponents(rgbColor.red(), rgbColor.green(), rgbColor.blue());
updateZColorSelector();
@@ -233,7 +233,7 @@ void GradientSelection::slotZColorSelectorPosChanged(int y) {
break;
}
- QColor rgbColor;
+ TQColor rgbColor;
rgbColor.setHsv(hComponent, sComponent, vComponent);
color.setComponents(rgbColor.red(), rgbColor.green(), rgbColor.blue());
updateXyColorSelector(false);
diff --git a/kcoloredit/gradientselection.h b/kcoloredit/gradientselection.h
index 24a3c5e1..0197f706 100644
--- a/kcoloredit/gradientselection.h
+++ b/kcoloredit/gradientselection.h
@@ -18,10 +18,10 @@
#ifndef GRADIENTSELECTION_H
#define GRADIENTSELECTION_H
-#include <qwidget.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
-#include <qbuttongroup.h>
+#include <tqwidget.h>
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
+#include <tqbuttongroup.h>
#include "kxycolorselector.h"
#include "kzcolorselector.h"
@@ -30,12 +30,12 @@
/** A widget for selecting colors from gradients
* @author Artur Rataj
*/
-class GradientSelection : public QWidget {
+class GradientSelection : public TQWidget {
Q_OBJECT
public:
/** Constructs the widget */
- GradientSelection(QWidget *parent=0, const char *name=0);
+ GradientSelection(TQWidget *parent=0, const char *name=0);
~GradientSelection();
/** Enables or disables the color synchronize button */
void enableSynchronizeColorButton(bool enable);
@@ -62,11 +62,11 @@ protected:
V_COMPONENT = KXYColorSelector::TYPE_HS };
/** Variable global component checkbox */
- QCheckBox* variableCheckBox;
+ TQCheckBox* variableCheckBox;
/** Synchronize color button */
- QPushButton* synchronizeColorButton;
+ TQPushButton* synchronizeColorButton;
/** HSV buttons button group widget */
- QButtonGroup hsvButtons;
+ TQButtonGroup hsvButtons;
/** The two components selector */
KXYColorSelector* xyColorSelector;
/** The gradient selector */
diff --git a/kcoloredit/imageselection.cpp b/kcoloredit/imageselection.cpp
index 39a8f2f0..b6d47c47 100644
--- a/kcoloredit/imageselection.cpp
+++ b/kcoloredit/imageselection.cpp
@@ -17,7 +17,7 @@
#include "imageselection.h"
-ImageSelection::ImageSelection(QWidget *parent, const char *name ) : QWidget(parent,name) {
+ImageSelection::ImageSelection(TQWidget *parent, const char *name ) : TQWidget(parent,name) {
}
ImageSelection::~ImageSelection(){
}
diff --git a/kcoloredit/imageselection.h b/kcoloredit/imageselection.h
index 3137fec7..dd6a9364 100644
--- a/kcoloredit/imageselection.h
+++ b/kcoloredit/imageselection.h
@@ -18,19 +18,19 @@
#ifndef IMAGESELECTION_H
#define IMAGESELECTION_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include "color.h"
/** This is a widget for selecting colors from an image
* @author Artur Rataj
*/
-class ImageSelection : public QWidget {
+class ImageSelection : public TQWidget {
Q_OBJECT
public:
/** constructs the widget */
- ImageSelection(QWidget *parent=0, const char *name=0);
+ ImageSelection(TQWidget *parent=0, const char *name=0);
~ImageSelection();
signals:
diff --git a/kcoloredit/kcolorchooser.cpp b/kcoloredit/kcolorchooser.cpp
index bf1204fb..cbd5292b 100644
--- a/kcoloredit/kcolorchooser.cpp
+++ b/kcoloredit/kcolorchooser.cpp
@@ -57,13 +57,13 @@ int main(int argc, char *argv[])
dlg.setColor(Qt::blue); // Just a color
- app.connect(&dlg, SIGNAL(finished()), SLOT(quit()));
+ app.connect(&dlg, TQT_SIGNAL(finished()), TQT_SLOT(quit()));
dlg.show();
app.exec();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
- const QColor c = dlg.color();
+ const TQColor c = dlg.color();
if ( args->isSet("print") && c.isValid() ) {
std::cout << c.name().utf8().data() << std::endl;
}
diff --git a/kcoloredit/kcoloredit.cpp b/kcoloredit/kcoloredit.cpp
index a5582436..9b093722 100644
--- a/kcoloredit/kcoloredit.cpp
+++ b/kcoloredit/kcoloredit.cpp
@@ -16,9 +16,9 @@
***************************************************************************/
// include files for QT
-#include <qdir.h>
-#include <qprinter.h>
-#include <qpainter.h>
+#include <tqdir.h>
+#include <tqprinter.h>
+#include <tqpainter.h>
// include files for KDE
#include <kiconloader.h>
@@ -64,40 +64,40 @@ KColorEditApp::~KColorEditApp() {
void KColorEditApp::initActions()
{
// File actiojns
- KStdAction::openNew( this, SLOT( slotFileNew() ), actionCollection() );
- KStdAction::open( this, SLOT( slotFileOpen() ), actionCollection() );
- KStdAction::saveAs( this, SLOT( slotFileSaveAs() ), actionCollection() );
- KStdAction::close( this, SLOT( slotClose() ), actionCollection() );
- KStdAction::quit( this, SLOT( slotQuit() ), actionCollection() );
- m_actSave = KStdAction::save( this, SLOT( slotFileSave() ),
+ KStdAction::openNew( this, TQT_SLOT( slotFileNew() ), actionCollection() );
+ KStdAction::open( this, TQT_SLOT( slotFileOpen() ), actionCollection() );
+ KStdAction::saveAs( this, TQT_SLOT( slotFileSaveAs() ), actionCollection() );
+ KStdAction::close( this, TQT_SLOT( slotClose() ), actionCollection() );
+ KStdAction::quit( this, TQT_SLOT( slotQuit() ), actionCollection() );
+ m_actSave = KStdAction::save( this, TQT_SLOT( slotFileSave() ),
actionCollection() );
m_actRecent = KStdAction::openRecent( this,
- SLOT( slotFileOpenRecent( const KURL& ) ), actionCollection() );
+ TQT_SLOT( slotFileOpenRecent( const KURL& ) ), actionCollection() );
( void ) new KAction( i18n("New &Window"), kapp->miniIcon(), KShortcut(),
- this, SLOT( slotFileNewWindow() ), actionCollection(),
+ this, TQT_SLOT( slotFileNewWindow() ), actionCollection(),
"file_new_window" );
// Edit actions
- m_actCut = KStdAction::cut( this, SLOT( slotEditCut() ),
+ m_actCut = KStdAction::cut( this, TQT_SLOT( slotEditCut() ),
actionCollection() );
- m_actCopy = KStdAction::copy( this, SLOT( slotEditCopy() ),
+ m_actCopy = KStdAction::copy( this, TQT_SLOT( slotEditCopy() ),
actionCollection() );
- m_actPaste = KStdAction::paste( this, SLOT( slotEditPaste() ),
+ m_actPaste = KStdAction::paste( this, TQT_SLOT( slotEditPaste() ),
actionCollection() );
m_actPaste->setEnabled( false );
// Color Menu
m_actNames = new KToggleAction( i18n("Show &Color Names"), KShortcut(), this,
- SLOT( slotViewColorNames() ), actionCollection(),
+ TQT_SLOT( slotViewColorNames() ), actionCollection(),
"color_view_names" );
m_actNames->setCheckedState(i18n("Hide &Color Names"));
m_actPalette = new KAction( i18n("From &Palette"), KShortcut(), this,
- SLOT( slotColorFromPalette() ), actionCollection(),
+ TQT_SLOT( slotColorFromPalette() ), actionCollection(),
"color_from_palette" );
( void ) new KAction( i18n("From &Screen"), KShortcut(), this,
- SLOT( slotColorFromScreen() ), actionCollection(),
+ TQT_SLOT( slotColorFromScreen() ), actionCollection(),
"color_from_screen" );
}
@@ -112,14 +112,14 @@ void KColorEditApp::initDocument()
doc = new KColorEditDoc(this);
doc->newDocument();
- connect( doc, SIGNAL( selectionChanged( int, int ) ),
- SLOT( slotSelectionChanged( int, int ) ) );
- connect( doc, SIGNAL( clipboardChanged() ),
- SLOT( slotClipboardChanged() ) );
- connect( doc, SIGNAL( modified( bool ) ),
- SLOT( slotModified( bool ) ) );
- connect( doc, SIGNAL( paletteAvailable( bool ) ),
- SLOT( slotPaletteAvailable( bool ) ) );
+ connect( doc, TQT_SIGNAL( selectionChanged( int, int ) ),
+ TQT_SLOT( slotSelectionChanged( int, int ) ) );
+ connect( doc, TQT_SIGNAL( clipboardChanged() ),
+ TQT_SLOT( slotClipboardChanged() ) );
+ connect( doc, TQT_SIGNAL( modified( bool ) ),
+ TQT_SLOT( slotModified( bool ) ) );
+ connect( doc, TQT_SIGNAL( paletteAvailable( bool ) ),
+ TQT_SLOT( slotPaletteAvailable( bool ) ) );
}
void KColorEditApp::initView()
@@ -178,7 +178,7 @@ bool KColorEditApp::queryExit()
}
/////////////////////////////////////////////////////////////////////
-// SLOT IMPLEMENTATION
+// TQT_SLOT IMPLEMENTATION
/////////////////////////////////////////////////////////////////////
void KColorEditApp::slotSelectionChanged( int begin, int end )
@@ -221,7 +221,7 @@ void KColorEditApp::slotFileOpen() {
if(doc->saveModified()) {
LoadPaletteDlg dialog(this);
if(dialog.exec()) {
- QString fileToOpen = dialog.getFileName();
+ TQString fileToOpen = dialog.getFileName();
if(!fileToOpen.isEmpty())
{
if(!doc->openDocument( fileToOpen )) {
@@ -255,12 +255,12 @@ bool KColorEditApp::slotFileSaveAs()
bool result = true;
while(result) {
- QString newName=KFileDialog::getSaveFileName(lastSavePaletteAsFileDir,
+ TQString newName=KFileDialog::getSaveFileName(lastSavePaletteAsFileDir,
"*|" + i18n("All Files"), this, i18n("Save As"));
if(newName.isEmpty())
result = false;
else {
- QFileInfo saveAsInfo(newName);
+ TQFileInfo saveAsInfo(newName);
if(!saveAsInfo.exists() ||
KMessageBox::questionYesNo( this,
i18n("A Document with this name already exists.\n"
@@ -291,7 +291,7 @@ void KColorEditApp::slotClose()
void KColorEditApp::slotFilePrint()
{
- QPrinter printer;
+ TQPrinter printer;
if (printer.setup(this))
{
view->print(&printer);
@@ -348,12 +348,12 @@ void KColorEditApp::slotViewColorNames()
doc->slotChangeViewMode(viewColorNames);
}
-void KColorEditApp::mouseReleaseEvent(QMouseEvent* event) {
+void KColorEditApp::mouseReleaseEvent(TQMouseEvent* event) {
if(gettingColorFromScreen) {
gettingColorFromScreen = false;
releaseMouse();
releaseKeyboard();
- QColor rgbColor = KColorDialog::grabColor(event->globalPos());
+ TQColor rgbColor = KColorDialog::grabColor(event->globalPos());
color.setComponents(rgbColor.red(), rgbColor.green(), rgbColor.blue());
view->chooseColor(&color);
} else
diff --git a/kcoloredit/kcoloredit.h b/kcoloredit/kcoloredit.h
index cd69cdaf..e30fff18 100644
--- a/kcoloredit/kcoloredit.h
+++ b/kcoloredit/kcoloredit.h
@@ -22,8 +22,8 @@
#include <config.h>
// include files for Qt
-#include <qevent.h>
-#include <qstringlist.h>
+#include <tqevent.h>
+#include <tqstringlist.h>
// include files for KDE
#include <kapplication.h>
@@ -109,7 +109,7 @@ class KColorEditApp : public KMainWindow
*/
virtual bool queryExit();
- void mouseReleaseEvent(QMouseEvent* event);
+ void mouseReleaseEvent(TQMouseEvent* event);
public slots:
diff --git a/kcoloredit/kcoloreditdoc.cpp b/kcoloredit/kcoloreditdoc.cpp
index 536300a5..ea9a0433 100644
--- a/kcoloredit/kcoloreditdoc.cpp
+++ b/kcoloredit/kcoloreditdoc.cpp
@@ -16,10 +16,10 @@
***************************************************************************/
// include files for Qt
-#include <qdir.h>
-#include <qfileinfo.h>
-#include <qwidget.h>
-#include <qclipboard.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
+#include <tqwidget.h>
+#include <tqclipboard.h>
// include files for KDE
#include <klocale.h>
@@ -31,9 +31,9 @@
#include "kcoloreditview.h"
#include "resource.h"
-KColorEditDoc::KColorEditDoc(QWidget *parent, const char *name) : QObject(parent, name),
+KColorEditDoc::KColorEditDoc(TQWidget *parent, const char *name) : TQObject(parent, name),
m_palette(), m_paletteHistory(&m_palette, 0) {
- m_pViewList = new QPtrList<KColorEditView>();
+ m_pViewList = new TQPtrList<KColorEditView>();
m_pViewList->setAutoDelete(true);
}
@@ -57,22 +57,22 @@ void KColorEditDoc::setModified(bool b) {
emit modified( b );
}
-void KColorEditDoc::setAbsFilePath(const QString &filename)
+void KColorEditDoc::setAbsFilePath(const TQString &filename)
{
m_absFilePath=filename;
}
-const QString &KColorEditDoc::absFilePath() const
+const TQString &KColorEditDoc::absFilePath() const
{
return m_absFilePath;
}
-void KColorEditDoc::setTitle(const QString &_t)
+void KColorEditDoc::setTitle(const TQString &_t)
{
m_title=_t;
}
-const QString &KColorEditDoc::title() const
+const TQString &KColorEditDoc::title() const
{
return m_title;
}
@@ -109,7 +109,7 @@ bool KColorEditDoc::saveModified()
KColorEditApp *window=(KColorEditApp *) parent();
int want_save = KMessageBox::warningYesNoCancel(window,
i18n("The current file has been modified.\n"
- "Do you want to save it?"), QString::null, KStdGuiItem::save(), i18n("Do Not Save"));
+ "Do you want to save it?"), TQString::null, KStdGuiItem::save(), i18n("Do Not Save"));
switch(want_save)
{
case KMessageBox::Yes:
@@ -151,7 +151,7 @@ bool KColorEditDoc::newDocument()
{
deleteContents();
setModified(false);
- setAbsFilePath( QDir::homeDirPath() );
+ setAbsFilePath( TQDir::homeDirPath() );
setTitle( i18n("Untitled") );
setPaletteCursorPos(0);
setPaletteSelection(0, 0);
@@ -159,12 +159,12 @@ bool KColorEditDoc::newDocument()
return true;
}
-bool KColorEditDoc::openDocument(const QString& filename) {
+bool KColorEditDoc::openDocument(const TQString& filename) {
if(filename.isEmpty())
return newDocument();
else {
deleteContents();
- QFileInfo fileInfo(filename);
+ TQFileInfo fileInfo(filename);
setAbsFilePath( fileInfo.absFilePath() );
if(!m_palette.load( absFilePath() )) {
setErrorString(m_palette.errorString());
@@ -181,7 +181,7 @@ bool KColorEditDoc::openDocument(const QString& filename) {
return true;
}
-bool KColorEditDoc::saveDocument(const QString& filename) {
+bool KColorEditDoc::saveDocument(const TQString& filename) {
if(!m_palette.save( filename )) {
setErrorString(m_palette.errorString());
return false;
@@ -194,11 +194,11 @@ void KColorEditDoc::deleteContents() {
m_palette.deleteContents();
}
-void KColorEditDoc::setErrorString(const QString& string) {
+void KColorEditDoc::setErrorString(const TQString& string) {
m_errorString = string;
}
-const QString& KColorEditDoc::errorString() const {
+const TQString& KColorEditDoc::errorString() const {
return m_errorString;
}
@@ -232,8 +232,8 @@ int KColorEditDoc::paletteSelectionEnd() const {
}
void KColorEditDoc::copyToClipboard(Palette& palette) {
- QString text;
- QTextOStream stream(&text);
+ TQString text;
+ TQTextOStream stream(&text);
palette.save(stream, 0, false);
KApplication::clipboard()->setText(text);
@@ -258,8 +258,8 @@ void KColorEditDoc::cut() {
void KColorEditDoc::paste() {
Palette palettePaste;
- QString text;
- QTextIStream stream(&text);
+ TQString text;
+ TQTextIStream stream(&text);
text = KApplication::clipboard()->text();
if(palettePaste.load( stream, false )) {
m_paletteHistory.paste(paletteCursorPos(), palettePaste);
diff --git a/kcoloredit/kcoloreditdoc.h b/kcoloredit/kcoloreditdoc.h
index 1d209f46..03d5ce70 100644
--- a/kcoloredit/kcoloreditdoc.h
+++ b/kcoloredit/kcoloreditdoc.h
@@ -23,9 +23,9 @@
#endif
// include files for QT
-#include <qobject.h>
-#include <qstring.h>
-#include <qptrlist.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqptrlist.h>
// application specific includes
#include "palette.h"
@@ -50,7 +50,7 @@ class KColorEditDoc : public QObject
public:
/** Constructor for the fileclass of the application */
- KColorEditDoc(QWidget *parent, const char *name=0);
+ KColorEditDoc(TQWidget *parent, const char *name=0);
/** Destructor for the fileclass of the application */
~KColorEditDoc();
@@ -71,19 +71,19 @@ class KColorEditDoc : public QObject
/** closes the actual document */
void closeDocument();
/** loads the document */
- bool openDocument(const QString& filename);
+ bool openDocument(const TQString& filename);
/** saves the document */
- bool saveDocument(const QString& filename);
+ bool saveDocument(const TQString& filename);
/** sets the path to the file connected with the document */
- void setAbsFilePath(const QString &filename);
+ void setAbsFilePath(const TQString &filename);
/** returns the pathname of the current document file*/
- const QString& absFilePath() const;
+ const TQString& absFilePath() const;
/** sets the filename of the document */
- void setTitle(const QString &_t);
+ void setTitle(const TQString &_t);
/** returns the title of the document */
- const QString& title() const;
+ const TQString& title() const;
/** @return a description of a possible unsuccessfull IO operation */
- const QString& errorString() const;
+ const TQString& errorString() const;
/** returns a pointer to paletteHistory */
PaletteHistory* paletteHistory();
/** sets a palette cursor position */
@@ -115,7 +115,7 @@ class KColorEditDoc : public QObject
protected:
/** Sets an error string if an IO operation was unsuccesfull */
- void setErrorString(const QString& string);
+ void setErrorString(const TQString& string);
/** Copies a palette to clipboard */
void copyToClipboard(Palette& palette);
@@ -136,14 +136,14 @@ class KColorEditDoc : public QObject
public:
/** the list of the views currently connected to the document */
- QPtrList<KColorEditView> *m_pViewList;
+ TQPtrList<KColorEditView> *m_pViewList;
private:
/** the modified flag of the current document */
bool m_modified;
- QString m_title;
- QString m_absFilePath;
- QString m_errorString;
+ TQString m_title;
+ TQString m_absFilePath;
+ TQString m_errorString;
protected:
Palette m_palette;
diff --git a/kcoloredit/kcoloreditview.cpp b/kcoloredit/kcoloreditview.cpp
index fe22f136..10484fe8 100644
--- a/kcoloredit/kcoloreditview.cpp
+++ b/kcoloredit/kcoloreditview.cpp
@@ -16,13 +16,13 @@
***************************************************************************/
// include files for Qt
-#include <qpainter.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qvgroupbox.h>
-#include <qlineedit.h>
-#include <qcolor.h>
-#include <qprinter.h>
+#include <tqpainter.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqvgroupbox.h>
+#include <tqlineedit.h>
+#include <tqcolor.h>
+#include <tqprinter.h>
// include files for KDE
#include <kseparator.h>
@@ -35,28 +35,28 @@
#include "kcoloredit.h"
#include "palette.h"
-KColorEditView::KColorEditView(QWidget *parent, const char *name) : QSplitter(parent, name) {
+KColorEditView::KColorEditView(TQWidget *parent, const char *name) : TQSplitter(parent, name) {
colorSelector = new ColorSelector(this);
colorSelector->slotSetColor(
Color( RGB_MAX_COMPONENT_VALUE, RGB_MAX_COMPONENT_VALUE, RGB_MAX_COMPONENT_VALUE, "" ));
- QWidget* paletteViewArea = new QWidget(this);
- QVBoxLayout* paletteLayout = new QVBoxLayout(paletteViewArea);
+ TQWidget* paletteViewArea = new TQWidget(this);
+ TQVBoxLayout* paletteLayout = new TQVBoxLayout(paletteViewArea);
paletteView = new PaletteView(16, 16, 2, this, paletteViewArea);
paletteLayout->addWidget(paletteView, 10);
- QHBoxLayout* layout = new QHBoxLayout();
- QVBoxLayout* addColorLayout = new QVBoxLayout(4);
+ TQHBoxLayout* layout = new TQHBoxLayout();
+ TQVBoxLayout* addColorLayout = new TQVBoxLayout(4);
addColorLayout->setMargin(8);
- QHBoxLayout* buttonsLayout = new QHBoxLayout(4);
- QPushButton* addColorButton = new QPushButton(i18n( "Add Color" ), paletteViewArea);
- connect(addColorButton, SIGNAL( clicked() ), SLOT( slotAddColor() ));
+ TQHBoxLayout* buttonsLayout = new TQHBoxLayout(4);
+ TQPushButton* addColorButton = new TQPushButton(i18n( "Add Color" ), paletteViewArea);
+ connect(addColorButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotAddColor() ));
buttonsLayout->addWidget(addColorButton);
buttonsLayout->addStretch(10);
addColorLayout->addLayout(buttonsLayout);
- QCheckBox* atCursorCheckBox = new QCheckBox(i18n( "At cursor" ), paletteViewArea);
- connect(atCursorCheckBox, SIGNAL( toggled(bool) ), SLOT( slotAddColorAtCursor(bool) ));
+ TQCheckBox* atCursorCheckBox = new TQCheckBox(i18n( "At cursor" ), paletteViewArea);
+ connect(atCursorCheckBox, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( slotAddColorAtCursor(bool) ));
addColorLayout->addWidget(atCursorCheckBox);
- overwriteCheckBox = new QCheckBox(i18n( "Overwrite" ), paletteViewArea);
- connect(overwriteCheckBox, SIGNAL( toggled(bool) ), SLOT( slotAddColorOverwrite(bool) ));
+ overwriteCheckBox = new TQCheckBox(i18n( "Overwrite" ), paletteViewArea);
+ connect(overwriteCheckBox, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( slotAddColorOverwrite(bool) ));
slotAddColorAtCursor(false);
slotAddColorOverwrite(false);
addColorLayout->addWidget(overwriteCheckBox);
@@ -64,66 +64,66 @@ KColorEditView::KColorEditView(QWidget *parent, const char *name) : QSplitter(pa
//KSeparator* hLine = new KSeparator(KSeparator::HLine, paletteViewArea);
//addColorLayout->addWidget(hLine);
//addColorLayout->addStretch(10);
- //QCheckBox* cursorFollowsChosenColor = new QCheckBox(i18n( "Cursor follows" ), paletteViewArea);
+ //TQCheckBox* cursorFollowsChosenColor = new TQCheckBox(i18n( "Cursor follows" ), paletteViewArea);
//addColorLayout->addWidget(cursorFollowsChosenColor);
- //connect(cursorFollowsChosenColor, SIGNAL( toggled(bool) ),
- // paletteView, SLOT( slotCursorFollowsChosenColor(bool) ));
+ //connect(cursorFollowsChosenColor, TQT_SIGNAL( toggled(bool) ),
+ // paletteView, TQT_SLOT( slotCursorFollowsChosenColor(bool) ));
//cursorFollowsChosenColor->toggle();
paletteView->slotCursorFollowsChosenColor(true);
layout->addLayout(addColorLayout, 0);
- QVGroupBox* colorAtCursorFrame = new QVGroupBox(i18n("Color at Cursor"), paletteViewArea);
- QWidget* colorAtCursorFrameArea = new QWidget(colorAtCursorFrame);
- QVBoxLayout* colorAtCursorLayout = new QVBoxLayout(colorAtCursorFrameArea, 4);
- QHBoxLayout* colorNameLayout = new QHBoxLayout(0);
- QLabel* nameLabel = new QLabel(i18n( "Name" ) + ": ", colorAtCursorFrameArea);
+ TQVGroupBox* colorAtCursorFrame = new TQVGroupBox(i18n("Color at Cursor"), paletteViewArea);
+ TQWidget* colorAtCursorFrameArea = new TQWidget(colorAtCursorFrame);
+ TQVBoxLayout* colorAtCursorLayout = new TQVBoxLayout(colorAtCursorFrameArea, 4);
+ TQHBoxLayout* colorNameLayout = new TQHBoxLayout(0);
+ TQLabel* nameLabel = new TQLabel(i18n( "Name" ) + ": ", colorAtCursorFrameArea);
colorNameLayout->addWidget(nameLabel, 0);
- colorName = new QLineEdit(colorAtCursorFrameArea);
- connect(colorName, SIGNAL( textChanged(const QString&) ), SLOT( slotSetColorName(const QString&) ));
+ colorName = new TQLineEdit(colorAtCursorFrameArea);
+ connect(colorName, TQT_SIGNAL( textChanged(const TQString&) ), TQT_SLOT( slotSetColorName(const TQString&) ));
colorNameLayout->addWidget(colorName, 10);
colorAtCursorLayout->addLayout(colorNameLayout);
- QGridLayout* colorAtCursorComponentsLayout = new QGridLayout(3, 6, 4);
+ TQGridLayout* colorAtCursorComponentsLayout = new TQGridLayout(3, 6, 4);
colorAtCursorLayout->addLayout(colorAtCursorComponentsLayout);
colorAtCursorComponentsLayout->setColStretch(1, 10);
colorAtCursorComponentsLayout->addColSpacing(2, 8);
colorAtCursorComponentsLayout->setColStretch(4, 10);
colorAtCursorComponentsLayout->setColStretch(5, 10);
- QLabel* hLabel = new QLabel("H: ", colorAtCursorFrameArea);
+ TQLabel* hLabel = new TQLabel("H: ", colorAtCursorFrameArea);
colorAtCursorComponentsLayout->addWidget(hLabel, 0, 0);
- colorAtCursorHValueLabel = new QLabel("", colorAtCursorFrameArea);
+ colorAtCursorHValueLabel = new TQLabel("", colorAtCursorFrameArea);
setColorAtCursorComponentValueLabelSizes(colorAtCursorHValueLabel);
colorAtCursorComponentsLayout->addWidget(colorAtCursorHValueLabel, 0, 1);
- QLabel* sLabel = new QLabel("S: ", colorAtCursorFrameArea);
+ TQLabel* sLabel = new TQLabel("S: ", colorAtCursorFrameArea);
colorAtCursorComponentsLayout->addWidget(sLabel, 1, 0);
- colorAtCursorSValueLabel = new QLabel("", colorAtCursorFrameArea);
+ colorAtCursorSValueLabel = new TQLabel("", colorAtCursorFrameArea);
setColorAtCursorComponentValueLabelSizes(colorAtCursorSValueLabel);
colorAtCursorComponentsLayout->addWidget(colorAtCursorSValueLabel, 1, 1);
- QLabel* vLabel = new QLabel("V: ", colorAtCursorFrameArea);
+ TQLabel* vLabel = new TQLabel("V: ", colorAtCursorFrameArea);
colorAtCursorComponentsLayout->addWidget(vLabel, 2, 0);
- colorAtCursorVValueLabel = new QLabel("", colorAtCursorFrameArea);
+ colorAtCursorVValueLabel = new TQLabel("", colorAtCursorFrameArea);
setColorAtCursorComponentValueLabelSizes(colorAtCursorVValueLabel);
colorAtCursorComponentsLayout->addWidget(colorAtCursorVValueLabel, 2, 1);
- QLabel* rLabel = new QLabel("R: ", colorAtCursorFrameArea);
+ TQLabel* rLabel = new TQLabel("R: ", colorAtCursorFrameArea);
colorAtCursorComponentsLayout->addWidget(rLabel, 0, 3);
- colorAtCursorRValueLabel = new QLabel("", colorAtCursorFrameArea);
+ colorAtCursorRValueLabel = new TQLabel("", colorAtCursorFrameArea);
setColorAtCursorComponentValueLabelSizes(colorAtCursorRValueLabel);
colorAtCursorComponentsLayout->addWidget(colorAtCursorRValueLabel, 0, 4);
- QLabel* gLabel = new QLabel("G: ", colorAtCursorFrameArea);
+ TQLabel* gLabel = new TQLabel("G: ", colorAtCursorFrameArea);
colorAtCursorComponentsLayout->addWidget(gLabel, 1, 3);
- colorAtCursorGValueLabel = new QLabel("", colorAtCursorFrameArea);
+ colorAtCursorGValueLabel = new TQLabel("", colorAtCursorFrameArea);
setColorAtCursorComponentValueLabelSizes(colorAtCursorGValueLabel);
colorAtCursorComponentsLayout->addWidget(colorAtCursorGValueLabel, 1, 4);
- QLabel* bLabel = new QLabel("B: ", colorAtCursorFrameArea);
+ TQLabel* bLabel = new TQLabel("B: ", colorAtCursorFrameArea);
colorAtCursorComponentsLayout->addWidget(bLabel, 2, 3);
- colorAtCursorBValueLabel = new QLabel("", colorAtCursorFrameArea);
+ colorAtCursorBValueLabel = new TQLabel("", colorAtCursorFrameArea);
setColorAtCursorComponentValueLabelSizes(colorAtCursorBValueLabel);
colorAtCursorComponentsLayout->addWidget(colorAtCursorBValueLabel, 2, 4);
- QHBoxLayout* colorAtCursorRgbStringLayout = new QHBoxLayout();
- QLabel* colorAtCursorRgbStringLabel =
- new QLabel("RGB " + i18n( "hex." ) + ": ", colorAtCursorFrameArea);
+ TQHBoxLayout* colorAtCursorRgbStringLayout = new TQHBoxLayout();
+ TQLabel* colorAtCursorRgbStringLabel =
+ new TQLabel("RGB " + i18n( "hex." ) + ": ", colorAtCursorFrameArea);
colorAtCursorRgbStringLayout->addWidget(colorAtCursorRgbStringLabel);
- colorAtCursorRgbStringValueLabel = new QLabel("", colorAtCursorFrameArea);
+ colorAtCursorRgbStringValueLabel = new TQLabel("", colorAtCursorFrameArea);
colorAtCursorRgbStringValueLabel->setFixedWidth(
- colorAtCursorRgbStringValueLabel->fontMetrics().width( QString("8888888") ));
+ colorAtCursorRgbStringValueLabel->fontMetrics().width( TQString("8888888") ));
colorAtCursorRgbStringLayout->addWidget(colorAtCursorRgbStringValueLabel);
colorAtCursorRgbStringLayout->addStretch();
colorAtCursorLayout->addLayout(colorAtCursorRgbStringLayout);
@@ -139,9 +139,9 @@ KColorEditView::KColorEditView(QWidget *parent, const char *name) : QSplitter(pa
KColorEditView::~KColorEditView() {
}
-void KColorEditView::setColorAtCursorComponentValueLabelSizes(QLabel* const label) {
- label->setMinimumWidth(label->fontMetrics().width( QString("888") ));
- label->setMaximumWidth(label->fontMetrics().width( QString("88888") ));
+void KColorEditView::setColorAtCursorComponentValueLabelSizes(TQLabel* const label) {
+ label->setMinimumWidth(label->fontMetrics().width( TQString("888") ));
+ label->setMaximumWidth(label->fontMetrics().width( TQString("88888") ));
}
KColorEditDoc *KColorEditView::document() const {
@@ -150,8 +150,8 @@ KColorEditDoc *KColorEditView::document() const {
return theApp->document();
}
-void KColorEditView::print(QPrinter *pPrinter) {
- QPainter printpainter;
+void KColorEditView::print(TQPrinter *pPrinter) {
+ TQPainter printpainter;
printpainter.begin(pPrinter);
// TODO: add your printing code here
@@ -167,7 +167,7 @@ void KColorEditView::slotCursorPosChanged(int position) {
Palette* palette = document()->paletteHistory()->editableStream();
if(position < palette->length()) {
Color* color = palette->color(position);
- QString string;
+ TQString string;
inColorNameChanging = true;
colorName->setText(color->name());
colorName->setEnabled(true);
@@ -178,7 +178,7 @@ void KColorEditView::slotCursorPosChanged(int position) {
colorAtCursorRValueLabel->setText(string.setNum( rComponent ));
colorAtCursorGValueLabel->setText(string.setNum( gComponent ));
colorAtCursorBValueLabel->setText(string.setNum( bComponent ));
- QColor hsvColor(rComponent, gComponent, bComponent);
+ TQColor hsvColor(rComponent, gComponent, bComponent);
int hComponent;
int sComponent;
int vComponent;
@@ -254,7 +254,7 @@ void KColorEditView::slotAddColorOverwrite(bool overwrite) {
addColorMode = INSERT_COLOR;
}
-void KColorEditView::slotSetColorName(const QString& name) {
+void KColorEditView::slotSetColorName(const TQString& name) {
if(!inColorNameChanging) {
/*
Palette* palette = getDocument()->getPaletteHistory()->getEditableStream();
diff --git a/kcoloredit/kcoloreditview.h b/kcoloredit/kcoloreditview.h
index ec0ca17f..0bc2a569 100644
--- a/kcoloredit/kcoloreditview.h
+++ b/kcoloredit/kcoloreditview.h
@@ -23,9 +23,9 @@
#endif
// include files for Qt
-#include <qsplitter.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
+#include <tqsplitter.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
// application specific includes
#include "colorselector.h"
@@ -34,19 +34,19 @@
class KColorEditDoc;
/** The KColorEditView class provides the view widget for the KColorEditApp instance.
- * The View instance inherits QWidget as a base class and represents the view object of a KMainWindow. As KColorEditView is part of the
+ * The View instance inherits TQWidget as a base class and represents the view object of a KMainWindow. As KColorEditView is part of the
* docuement-view model, it needs a reference to the document object connected with it by the KColorEditApp class to manipulate and display
* the document structure provided by the KColorEditDoc class.
*
* @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
* @version KDevelop version 0.4 code generation
*/
-class KColorEditView : public QSplitter {
+class KColorEditView : public TQSplitter {
Q_OBJECT
public:
/** Constructor for the main view */
- KColorEditView(QWidget *parent = 0, const char *name = 0);
+ KColorEditView(TQWidget *parent = 0, const char *name = 0);
/** Destructor for the main view */
~KColorEditView();
@@ -58,7 +58,7 @@ class KColorEditView : public QSplitter {
KColorEditDoc *document() const;
/** Contains the implementation for printing functionality */
- void print(QPrinter *pPrinter);
+ void print(TQPrinter *pPrinter);
/** Chooses a color to the color selector */
void chooseColor(Color* const color);
/** Updates the view after the document has been changed */
@@ -84,7 +84,7 @@ class KColorEditView : public QSplitter {
/** Sets whether insert or replace a color */
void slotAddColorOverwrite(bool overwrite);
/** Sets a color name */
- void slotSetColorName(const QString& name);
+ void slotSetColorName(const TQString& name);
protected:
/** Add color mode constants */
@@ -92,23 +92,23 @@ class KColorEditView : public QSplitter {
REPLACE_COLOR = 1 };
/** Color mode widget */
- QCheckBox* overwriteCheckBox;
+ TQCheckBox* overwriteCheckBox;
/** Color name widget */
- QLineEdit* colorName;
+ TQLineEdit* colorName;
/** H component value label of the color at cursor */
- QLabel* colorAtCursorHValueLabel;
+ TQLabel* colorAtCursorHValueLabel;
/** S component value label of the color at cursor */
- QLabel* colorAtCursorSValueLabel;
+ TQLabel* colorAtCursorSValueLabel;
/** V component value label of the color at cursor */
- QLabel* colorAtCursorVValueLabel;
+ TQLabel* colorAtCursorVValueLabel;
/** R component value label of the color at cursor */
- QLabel* colorAtCursorRValueLabel;
+ TQLabel* colorAtCursorRValueLabel;
/** G component value label of the color at cursor */
- QLabel* colorAtCursorGValueLabel;
+ TQLabel* colorAtCursorGValueLabel;
/** B component value label of the color at cursor */
- QLabel* colorAtCursorBValueLabel;
+ TQLabel* colorAtCursorBValueLabel;
/** RGB Hex string value label of the color at cursor */
- QLabel* colorAtCursorRgbStringValueLabel;
+ TQLabel* colorAtCursorRgbStringValueLabel;
/** If add a color at cursor */
bool addColorAtCursor;
/** Add color mode */
@@ -120,7 +120,7 @@ class KColorEditView : public QSplitter {
protected:
/** Sets component value label of the color at cursor sizes */
- void setColorAtCursorComponentValueLabelSizes(QLabel* const label);
+ void setColorAtCursorComponentValueLabelSizes(TQLabel* const label);
/** Updates color value labels */
void updateColorValueLabels();
};
diff --git a/kcoloredit/kxycolorselector.cpp b/kcoloredit/kxycolorselector.cpp
index e12f7987..4a717c5e 100644
--- a/kcoloredit/kxycolorselector.cpp
+++ b/kcoloredit/kxycolorselector.cpp
@@ -15,15 +15,15 @@
* *
***************************************************************************/
-#include <qpainter.h>
-#include <qpixmap.h>
-#include <qimage.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
+#include <tqimage.h>
#include <kimageeffect.h>
#include <kpalette.h>
#include "kxycolorselector.h"
-KXYColorSelector::KXYColorSelector(QWidget *parent, const char *name) : KXYSelector(parent,name) {
+KXYColorSelector::KXYColorSelector(TQWidget *parent, const char *name) : KXYSelector(parent,name) {
setBackgroundMode(NoBackground);
setRange(0, 0, COMPONENT_SELECTION_RESOLUTION - 1, COMPONENT_SELECTION_RESOLUTION - 1);
setType(TYPE_NONE);
@@ -45,17 +45,17 @@ void KXYColorSelector::updateContents() {
repaint();
}
-void KXYColorSelector::resizeEvent(QResizeEvent*) {
+void KXYColorSelector::resizeEvent(TQResizeEvent*) {
setValues(xValue(), yValue());
updateContents();
}
-void KXYColorSelector::drawContents(QPainter* painter) {
+void KXYColorSelector::drawContents(TQPainter* painter) {
painter->drawPixmap(contentsRect().x(), contentsRect().y(), pixmap);
}
-void KXYColorSelector::drawCursor(QPainter* painter, int x, int y) {
- QColor color;
+void KXYColorSelector::drawCursor(TQPainter* painter, int x, int y) {
+ TQColor color;
int colorX = x - contentsRect().x();
int colorY = y - contentsRect().y();
if(colorX < 0)
@@ -67,13 +67,13 @@ void KXYColorSelector::drawCursor(QPainter* painter, int x, int y) {
if(colorY > contentsRect().height() - 1)
colorY = contentsRect().height() - 1;
setColor(&color, colorX, colorY);
- QColor cursorColor;
+ TQColor cursorColor;
if(( 2*color.red() + 4*color.green() + 1*color.blue() )*1.0/
( 2*255 + 4*255 + 1*255 ) > 0.65)
cursorColor = Qt::black;
else
cursorColor = Qt::white;
- painter->setPen(QPen( cursorColor ));
+ painter->setPen(TQPen( cursorColor ));
const int lineBegin = 2;
const int lineEnd = 6;
painter->drawLine(x + lineBegin, y - lineBegin, x + lineEnd, y - lineEnd);
@@ -90,7 +90,7 @@ int KXYColorSelector::globalComponent() const{
return m_globalComponent;
}
-void KXYColorSelector::setColor(QColor* const color, const int x, const int y) {
+void KXYColorSelector::setColor(TQColor* const color, const int x, const int y) {
int xSize = contentsRect().width();
int ySize = contentsRect().height();
switch(type) {
@@ -131,8 +131,8 @@ void KXYColorSelector::setColor(QColor* const color, const int x, const int y) {
}
}
-QColor* KXYColorSelector::standardColorsPalette() {
- QColor* palette = new QColor[STANDARD_PALETTE_SIZE];
+TQColor* KXYColorSelector::standardColorsPalette() {
+ TQColor* palette = new QColor[STANDARD_PALETTE_SIZE];
int i = 0;
palette[i++] = Qt::red;
palette[i++] = Qt::green;
@@ -154,11 +154,11 @@ QColor* KXYColorSelector::standardColorsPalette() {
return palette;
}
-void KXYColorSelector::drawPalette(QPixmap* pixmap) {
+void KXYColorSelector::drawPalette(TQPixmap* pixmap) {
int xSize = contentsRect().width();
int ySize = contentsRect().height();
- QImage image(xSize, ySize, 32);
- QColor color;
+ TQImage image(xSize, ySize, 32);
+ TQColor color;
int x;
int y;
@@ -173,9 +173,9 @@ void KXYColorSelector::drawPalette(QPixmap* pixmap) {
++p;
}
}
- if (QColor::numBitPlanes() <= 8)
+ if (TQColor::numBitPlanes() <= 8)
{
- QColor* standardPalette = standardColorsPalette();
+ TQColor* standardPalette = standardColorsPalette();
KImageEffect::dither(image, standardPalette, STANDARD_PALETTE_SIZE);
delete[] standardPalette;
}
diff --git a/kcoloredit/kxycolorselector.h b/kcoloredit/kxycolorselector.h
index 3213c59c..6225d74f 100644
--- a/kcoloredit/kxycolorselector.h
+++ b/kcoloredit/kxycolorselector.h
@@ -18,7 +18,7 @@
#ifndef KXYCOLORSELECTOR_H
#define KXYCOLORSELECTOR_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kselect.h>
#include "main.h"
@@ -46,7 +46,7 @@ public:
/** Constructs a two-dimensional color component selector widget,
* with a type TYPE_NONE and ranges 0 .. MAX_COLOR_COMPONENT_VALUE
*/
- KXYColorSelector(QWidget *parent=0, const char *name=0);
+ KXYColorSelector(TQWidget *parent=0, const char *name=0);
~KXYColorSelector();
/** Set the type of the selector */
void setType(const int type);
@@ -72,26 +72,26 @@ protected:
/** Draws the contents of the widget on a pixmap,
* which is used for buffering.
*/
- virtual void drawPalette( QPixmap *pixmap );
+ virtual void drawPalette( TQPixmap *pixmap );
/** @reimplemented */
- virtual void resizeEvent( QResizeEvent * );
+ virtual void resizeEvent( TQResizeEvent * );
/** Reimplemented from KXYSelector. This drawing is
* buffered in a pixmap here. As real drawing
* routine, drawPalette() is used.
*/
- virtual void drawContents( QPainter *painter );
+ virtual void drawContents( TQPainter *painter );
/** Draws the cursor */
- virtual void drawCursor(QPainter* painter, int x, int y);
+ virtual void drawCursor(TQPainter* painter, int x, int y);
/** set a color at a given coordinate */
- virtual void setColor(QColor* const color, const int x, const int y);
+ virtual void setColor(TQColor* const color, const int x, const int y);
/** @return STANDARD_PALETTE_SIZE colors used to dither the
* pixmap if number of color planes <= 8
*/
- QColor* standardColorsPalette();
+ TQColor* standardColorsPalette();
private:
/* The buffering pixmap */
- QPixmap pixmap;
+ TQPixmap pixmap;
};
#endif
diff --git a/kcoloredit/kzcolorselector.cpp b/kcoloredit/kzcolorselector.cpp
index 36953180..b00991a2 100644
--- a/kcoloredit/kzcolorselector.cpp
+++ b/kcoloredit/kzcolorselector.cpp
@@ -15,20 +15,20 @@
* *
***************************************************************************/
-#include <qpainter.h>
-#include <qimage.h>
+#include <tqpainter.h>
+#include <tqimage.h>
#include <kimageeffect.h>
#include <kpalette.h>
#include "main.h"
#include "kzcolorselector.h"
-KZColorSelector::KZColorSelector(Orientation o, QWidget *parent, const char *name) :
+KZColorSelector::KZColorSelector(Orientation o, TQWidget *parent, const char *name) :
KSelector(o, parent, name) {
baseColorH = -1;
baseColorS = 0;
baseColorV = 0;
- pixmap.setOptimization( QPixmap::BestOptim );
+ pixmap.setOptimization( TQPixmap::BestOptim );
}
KZColorSelector::~KZColorSelector() {
}
@@ -56,15 +56,15 @@ void KZColorSelector::updateContents() {
repaint(false);
}
-void KZColorSelector::resizeEvent(QResizeEvent*) {
+void KZColorSelector::resizeEvent(TQResizeEvent*) {
updateContents();
}
-void KZColorSelector::drawContents(QPainter* painter) {
+void KZColorSelector::drawContents(TQPainter* painter) {
painter->drawPixmap(contentsRect().x(), contentsRect().y(), pixmap);
}
-void KZColorSelector::setBaseColor(const QColor& color) {
+void KZColorSelector::setBaseColor(const TQColor& color) {
color.hsv(&baseColorH, &baseColorS, &baseColorV);
}
@@ -100,7 +100,7 @@ void KZColorSelector::updatePointerPos() {
setValue(pos);
}
-void KZColorSelector::setColor(QColor* const color, const int y) {
+void KZColorSelector::setColor(TQColor* const color, const int y) {
int ySize = contentsRect().height();
switch(type) {
case TYPE_H:
@@ -118,8 +118,8 @@ void KZColorSelector::setColor(QColor* const color, const int y) {
}
}
-QColor* KZColorSelector::getStandardColorsPalette() {
- QColor* palette = new QColor[( int )STANDARD_PALETTE_SIZE];
+TQColor* KZColorSelector::getStandardColorsPalette() {
+ TQColor* palette = new QColor[( int )STANDARD_PALETTE_SIZE];
int i = 0;
palette[i++] = Qt::red;
palette[i++] = Qt::green;
@@ -141,11 +141,11 @@ QColor* KZColorSelector::getStandardColorsPalette() {
return palette;
}
-void KZColorSelector::drawPalette(QPixmap* pixmap) {
+void KZColorSelector::drawPalette(TQPixmap* pixmap) {
int xSize = contentsRect().width();
int ySize = contentsRect().height();
- QImage image(xSize, ySize, 32);
- QColor color;
+ TQImage image(xSize, ySize, 32);
+ TQColor color;
int x;
int y;
@@ -159,9 +159,9 @@ void KZColorSelector::drawPalette(QPixmap* pixmap) {
++p;
}
}
- if (QColor::numBitPlanes() <= 8)
+ if (TQColor::numBitPlanes() <= 8)
{
- QColor* standardPalette = getStandardColorsPalette();
+ TQColor* standardPalette = getStandardColorsPalette();
KImageEffect::dither(image, standardPalette, STANDARD_PALETTE_SIZE);
delete[] standardPalette;
}
diff --git a/kcoloredit/kzcolorselector.h b/kcoloredit/kzcolorselector.h
index cafdb254..60e32f0a 100644
--- a/kcoloredit/kzcolorselector.h
+++ b/kcoloredit/kzcolorselector.h
@@ -18,8 +18,8 @@
#ifndef KZCOLORSELECTOR_H
#define KZCOLORSELECTOR_H
-#include "qcolor.h"
-#include "qpixmap.h"
+#include "tqcolor.h"
+#include "tqpixmap.h"
#include "kselect.h"
#include "color.h"
@@ -37,14 +37,14 @@ public:
TYPE_V = 2 };
/** Constructs the widget */
- KZColorSelector(Orientation o, QWidget *parent=0, const char *name=0);
+ KZColorSelector(Orientation o, TQWidget *parent=0, const char *name=0);
~KZColorSelector();
/** Sets the selector type */
void setType(const int type);
/** Update the pixmap */
void updateContents();
/** Set the global components */
- void setBaseColor(const QColor& color);
+ void setBaseColor(const TQColor& color);
/** Set the global components using HSV components */
void setBaseColorHsv(const int colorH, const int colorS, const int colorV);
/** Updates a pointer position due to the base color */
@@ -69,21 +69,21 @@ protected:
/** Draws the contents of the widget on a pixmap,
* which is used for buffering.
*/
- virtual void drawPalette( QPixmap *pixmap );
+ virtual void drawPalette( TQPixmap *pixmap );
/** @reimplemented */
- virtual void resizeEvent( QResizeEvent * );
+ virtual void resizeEvent( TQResizeEvent * );
/** Draws a color gradient in the selector */
- virtual void drawContents( QPainter *painter );
+ virtual void drawContents( TQPainter *painter );
/** Sets a color at a given coordinate */
- virtual void setColor(QColor* const color, const int y);
+ virtual void setColor(TQColor* const color, const int y);
/** @return STANDARD_PALETTE_SIZE colors used to dither the
* pixmap if number of color planes <= 8
*/
- QColor* getStandardColorsPalette();
+ TQColor* getStandardColorsPalette();
private:
/* The buffering pixmap */
- QPixmap pixmap;
+ TQPixmap pixmap;
};
#endif
diff --git a/kcoloredit/loadpalettedlg.cpp b/kcoloredit/loadpalettedlg.cpp
index b426a874..23def4d5 100644
--- a/kcoloredit/loadpalettedlg.cpp
+++ b/kcoloredit/loadpalettedlg.cpp
@@ -17,11 +17,11 @@
#include <string.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqpushbutton.h>
#include <klocale.h>
#include <kstandarddirs.h>
#include <kpalette.h>
@@ -31,22 +31,22 @@
#include "palette.h"
#include "loadpalettedlg.h"
-LoadPaletteDlg::LoadPaletteDlg(QWidget *parent, const char *name)
+LoadPaletteDlg::LoadPaletteDlg(TQWidget *parent, const char *name)
: KDialogBase(parent, name, true, i18n( "Load Palette" ),
Ok|Cancel, Ok, true) {
fileName = "";
- QWidget *mainWidget = new QWidget( this );
+ TQWidget *mainWidget = new TQWidget( this );
setMainWidget( mainWidget );
- QVBoxLayout* topLayout = new QVBoxLayout(mainWidget, 0, spacingHint());
- QLabel* label = new QLabel(i18n( "Select a palette:" ), mainWidget);
+ TQVBoxLayout* topLayout = new TQVBoxLayout(mainWidget, 0, spacingHint());
+ TQLabel* label = new TQLabel(i18n( "Select a palette:" ), mainWidget);
topLayout->addWidget(label);
- paletteBox = new QComboBox(false, mainWidget);
+ paletteBox = new TQComboBox(false, mainWidget);
browseFileNameInserted = false;
- QStringList palettesList = Palette::kdePalettes();
- for(QStringList::Iterator palette = palettesList.begin();
+ TQStringList palettesList = Palette::kdePalettes();
+ for(TQStringList::Iterator palette = palettesList.begin();
palette != palettesList.end(); ++palette) {
bool prepend = (*palette).contains( "colors/Custom_Colors" );
- QString fileName = locate("config", (*palette));
+ TQString fileName = locate("config", (*palette));
if(prepend) {
palettesFileNames.prepend(fileName);
setFileName(&fileName);
@@ -55,7 +55,7 @@ LoadPaletteDlg::LoadPaletteDlg(QWidget *parent, const char *name)
if(palette == palettesList.begin())
setFileName(&fileName);
}
- QString paletteName = (*palette).mid(palettesDir.length() + 1);
+ TQString paletteName = (*palette).mid(palettesDir.length() + 1);
if(paletteName == "Custom_Colors")
paletteName = i18n("Custom Colors");
else if(paletteName == "Recent_Colors")
@@ -65,12 +65,12 @@ LoadPaletteDlg::LoadPaletteDlg(QWidget *parent, const char *name)
else
paletteBox->insertItem(paletteName);
}
- connect(paletteBox, SIGNAL( activated(int) ), SLOT( setFileName(int) ));
+ connect(paletteBox, TQT_SIGNAL( activated(int) ), TQT_SLOT( setFileName(int) ));
topLayout->addWidget(paletteBox);
- QHBoxLayout* browseLayout = new QHBoxLayout( mainWidget );
- QPushButton* browseButton = new QPushButton(i18n( "Browse..." ),
+ TQHBoxLayout* browseLayout = new TQHBoxLayout( mainWidget );
+ TQPushButton* browseButton = new TQPushButton(i18n( "Browse..." ),
mainWidget);
- connect(browseButton, SIGNAL( clicked() ), SLOT( browseFileNames() ));
+ connect(browseButton, TQT_SIGNAL( clicked() ), TQT_SLOT( browseFileNames() ));
browseLayout->addWidget(browseButton);
browseLayout->addStretch(10);
topLayout->addLayout(browseLayout);
@@ -80,7 +80,7 @@ LoadPaletteDlg::LoadPaletteDlg(QWidget *parent, const char *name)
LoadPaletteDlg::~LoadPaletteDlg() {
}
-void LoadPaletteDlg::setFileName(QString* fileName) {
+void LoadPaletteDlg::setFileName(TQString* fileName) {
this->fileName = *fileName;
}
@@ -89,7 +89,7 @@ void LoadPaletteDlg::setFileName(int index) {
}
void LoadPaletteDlg::browseFileNames() {
- QString fileToOpen = KFileDialog::getOpenFileName(lastOpenPaletteFileDir,
+ TQString fileToOpen = KFileDialog::getOpenFileName(lastOpenPaletteFileDir,
i18n("*|All Files"), this, i18n("Open File"));
if(!fileToOpen.isEmpty()) {
fileName = fileToOpen;
@@ -105,7 +105,7 @@ void LoadPaletteDlg::browseFileNames() {
}
}
-QString LoadPaletteDlg::getFileName() {
+TQString LoadPaletteDlg::getFileName() {
return fileName;
}
#include "loadpalettedlg.moc"
diff --git a/kcoloredit/loadpalettedlg.h b/kcoloredit/loadpalettedlg.h
index 3168ed68..f7dd50cb 100644
--- a/kcoloredit/loadpalettedlg.h
+++ b/kcoloredit/loadpalettedlg.h
@@ -18,7 +18,7 @@
#ifndef LOADPALETTEDLG_H
#define LOADPALETTEDLG_H
-#include <qcombobox.h>
+#include <tqcombobox.h>
#include <kdialog.h>
/**A dialog showing a list of installed palettes, with a possibility
@@ -31,16 +31,16 @@ class LoadPaletteDlg : public KDialogBase {
public:
/** constructs the dialog
*/
- LoadPaletteDlg(QWidget *parent = 0, const char *name = 0);
+ LoadPaletteDlg(TQWidget *parent = 0, const char *name = 0);
~LoadPaletteDlg();
/** @return the fetched file name
*/
- QString getFileName();
+ TQString getFileName();
protected slots:
/** sets fileName
*/
- void setFileName(QString* fileName);
+ void setFileName(TQString* fileName);
/** sets fileName to that at position index in palettesFileNames
*/
void setFileName(int index);
@@ -51,13 +51,13 @@ protected slots:
private:
/** A widget holding palettes names
*/
- QComboBox* paletteBox;
+ TQComboBox* paletteBox;
/** A list of KDE palettes file names
*/
- QStringList palettesFileNames;
+ TQStringList palettesFileNames;
/** A fetched palette file name
*/
- QString fileName;
+ TQString fileName;
/** whether a browse file name hab already been inserted into
* palettesFilenames
*/
diff --git a/kcoloredit/main.h b/kcoloredit/main.h
index 5e0b086a..3794f5ec 100644
--- a/kcoloredit/main.h
+++ b/kcoloredit/main.h
@@ -18,8 +18,8 @@
#ifndef __MAIN_H__
#define __MAIN_H__
-#include <qstring.h>
-#include <qdir.h>
+#include <tqstring.h>
+#include <tqdir.h>
/** The maximum red, green or blue component value in RGB scheme
*/
@@ -39,14 +39,14 @@ const int HSV_MAX_V_VALUE = 255;
/** name of KDE config directories containing palette files
*/
-static const QString palettesDir("colors");
+static const TQString palettesDir("colors");
/** last open file dialog path
*/
-static QString lastOpenPaletteFileDir = QDir::homeDirPath();
+static TQString lastOpenPaletteFileDir = TQDir::homeDirPath();
/** last save file as dialog path
*/
-static QString lastSavePaletteAsFileDir = QDir::homeDirPath();
+static TQString lastSavePaletteAsFileDir = TQDir::homeDirPath();
#endif /* !defined( __MAIN_H__ ) */
diff --git a/kcoloredit/palette.cpp b/kcoloredit/palette.cpp
index 1e11aa27..42758b41 100644
--- a/kcoloredit/palette.cpp
+++ b/kcoloredit/palette.cpp
@@ -15,10 +15,10 @@
* *
***************************************************************************/
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qtextstream.h>
-#include <qregexp.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqtextstream.h>
+#include <tqregexp.h>
#include <kglobal.h>
#include <kstandarddirs.h>
#include <klocale.h>
@@ -45,17 +45,17 @@ void Palette::init() {
colors.setAutoDelete(true);
}
-QStringList Palette::kdePalettes() {
- QStringList paletteList;
+TQStringList Palette::kdePalettes() {
+ TQStringList paletteList;
KGlobal::dirs()->findAllResources("config", palettesDir + "/*", false, true, paletteList);
return paletteList;
}
-void Palette::setName(const QString& name) {
+void Palette::setName(const TQString& name) {
m_name = name;
}
-const QString& Palette::name() const {
+const TQString& Palette::name() const {
return m_name;
}
@@ -102,20 +102,20 @@ void Palette::paste(const int index, Palette& palette) {
insert(index + colorIndex, new Color( *palette.color(colorIndex) ));
}
-bool Palette::load(QTextStream& stream, bool loadName /* = true */) {
+bool Palette::load(TQTextStream& stream, bool loadName /* = true */) {
bool result = true;
setName("KDE palette");
int lineNum = 0;
while (!stream.atEnd()) {
- QString string = stream.readLine().append(' ');
- if(string.find( QRegExp("[^\\s]") ) == -1 ||
+ TQString string = stream.readLine().append(' ');
+ if(string.find( TQRegExp("[^\\s]") ) == -1 ||
string.stripWhiteSpace().at( 0 ) == '#' ||
( loadName && lineNum == 0 )) {
if(loadName && lineNum == 0)
setName(string.stripWhiteSpace());
} else {
Color* newColor = new Color();
- int position = string.find(QRegExp( "[^\\s]" ));
+ int position = string.find(TQRegExp( "[^\\s]" ));
for(int componentIndex = 0; componentIndex < Color::COMPONENTS_NUM;
++componentIndex) {
if(position == -1) {
@@ -123,13 +123,13 @@ bool Palette::load(QTextStream& stream, bool loadName /* = true */) {
result = false;
break;
}
- int endPosition = string.find(QRegExp( "\\s" ), position);
+ int endPosition = string.find(TQRegExp( "\\s" ), position);
if(endPosition == -1) {
m_errorString = i18n("Invalid format");
result = false;
break;
}
- QString componentString = string.mid(position, endPosition - position);
+ TQString componentString = string.mid(position, endPosition - position);
int componentValue = componentString.toInt(&result);
if(!result ||
componentValue < 0 ||
@@ -139,7 +139,7 @@ bool Palette::load(QTextStream& stream, bool loadName /* = true */) {
break;
}
newColor->setComponent(componentIndex, componentValue);
- position = string.find(QRegExp( "[^\\s]" ), endPosition);
+ position = string.find(TQRegExp( "[^\\s]" ), endPosition);
}
if(!result) {
delete newColor;
@@ -156,44 +156,44 @@ bool Palette::load(QTextStream& stream, bool loadName /* = true */) {
return result;
}
-bool Palette::load(const QString& fileName) {
+bool Palette::load(const TQString& fileName) {
bool result = true;
- QFile file(fileName);
+ TQFile file(fileName);
if(!file.open( IO_ReadOnly )) {
m_errorString = i18n("Could not open file");
result = false;
} else {
- QTextStream stream(&file);
+ TQTextStream stream(&file);
result = load(stream);
file.close();
}
return result;
}
-bool Palette::save(QTextStream& stream, const QFile* file /* = 0 */,
+bool Palette::save(TQTextStream& stream, const TQFile* file /* = 0 */,
bool saveName /* = true */) {
bool result = true;
if(saveName)
- stream << name() + QString("\n");
+ stream << name() + TQString("\n");
if(file && file->status() != IO_Ok) {
m_errorString = i18n("Write error");
result = false;
} else
for(int colorIndex = 0; colorIndex < length(); ++colorIndex) {
Color* col = color(colorIndex);
- QString redComponentString;
- QString greenComponentString;
- QString blueComponentString;
+ TQString redComponentString;
+ TQString greenComponentString;
+ TQString blueComponentString;
redComponentString.setNum(col->component( Color::RED_INDEX ));
greenComponentString.setNum(col->component( Color::GREEN_INDEX ));
blueComponentString.setNum(col->component( Color::BLUE_INDEX ));
- QString nameString = col->name();
+ TQString nameString = col->name();
if(!nameString.isEmpty())
nameString.prepend(" ");
- stream << redComponentString + QString(" ") +
- greenComponentString + QString(" ") +
+ stream << redComponentString + TQString(" ") +
+ greenComponentString + TQString(" ") +
blueComponentString +
- nameString + QString("\n");
+ nameString + TQString("\n");
if(file && file->status() != IO_Ok) {
m_errorString = i18n("Write error");
result = false;
@@ -203,14 +203,14 @@ bool Palette::save(QTextStream& stream, const QFile* file /* = 0 */,
return result;
}
-bool Palette::save(const QString& fileName) {
+bool Palette::save(const TQString& fileName) {
bool result = true;
- QFile file(fileName);
+ TQFile file(fileName);
if(!file.open( IO_WriteOnly|IO_Truncate )) {
m_errorString = i18n("Could not open file for writing");
result = false;
} else {
- QTextStream stream(&file);
+ TQTextStream stream(&file);
result = save(stream);
file.close();
}
@@ -221,6 +221,6 @@ void Palette::deleteContents() {
colors.clear();
}
-const QString& Palette::errorString() const {
+const TQString& Palette::errorString() const {
return m_errorString;
}
diff --git a/kcoloredit/palette.h b/kcoloredit/palette.h
index 7b763296..a363ada4 100644
--- a/kcoloredit/palette.h
+++ b/kcoloredit/palette.h
@@ -18,9 +18,9 @@
#ifndef PALETTE_H
#define PALETTE_H
-#include <qstring.h>
-#include <qtextstream.h>
-#include <qfile.h>
+#include <tqstring.h>
+#include <tqtextstream.h>
+#include <tqfile.h>
#include "color.h"
@@ -35,11 +35,11 @@ public:
Palette(const Palette& palette);
~Palette();
/** @return A list of KDE palettes */
- static QStringList kdePalettes();
+ static TQStringList kdePalettes();
/** sets palette name */
- void setName(const QString& name);
+ void setName(const TQString& name);
/** @return palette name */
- const QString& name() const;
+ const TQString& name() const;
/** inserts a color at a given position */
void insert(const int index, Color* const color);
/** appends a color */
@@ -61,32 +61,32 @@ public:
/** Loads a palette from a text stream
* @return whether the load was succesfull
*/
- bool load(QTextStream& stream, bool loadName = true);
+ bool load(TQTextStream& stream, bool loadName = true);
/** Loads a palette from a file.
* If loadName is true, palette name is expected.
* @return whether the load was succesfull
*/
- bool load(const QString& fileName);
+ bool load(const TQString& fileName);
/** Saves a palette into a text stream.
* If file is given, it is checked for IO errors.
* If saveName is true, palette name is saved.
* @return whether save was succesfull
*/
- bool save(QTextStream& stream, const QFile* file = 0, bool saveName = true);
+ bool save(TQTextStream& stream, const TQFile* file = 0, bool saveName = true);
/** Saves a palette to a file
* @return whether save was succesfull
*/
- bool save(const QString& fileName);
+ bool save(const TQString& fileName);
/** Deletes contents of the palette */
void deleteContents();
/** @return A possible error description from the last unsuccessfull
* IO operation
*/
- const QString& errorString() const;
+ const TQString& errorString() const;
private:
/** The palette name */
- QString m_name;
+ TQString m_name;
private:
/** Initialization method called by constructors */
@@ -94,9 +94,9 @@ private:
protected:
/** A list of palette colors */
- QPtrList<Color> colors;
+ TQPtrList<Color> colors;
/** An IO error description */
- QString m_errorString;
+ TQString m_errorString;
};
#endif
diff --git a/kcoloredit/paletteview.cpp b/kcoloredit/paletteview.cpp
index 8e05a2d7..6648d88b 100644
--- a/kcoloredit/paletteview.cpp
+++ b/kcoloredit/paletteview.cpp
@@ -15,34 +15,34 @@
* *
***************************************************************************/
-#include <qlayout.h>
+#include <tqlayout.h>
#include "kcoloreditview.h"
#include "paletteview.h"
PaletteView::PaletteView(const int defaultCellWidth, const int defaultCellHeight, const int cellSpacing,
- KColorEditView* view, QWidget *parent, const char *name) :
- QFrame(parent, name, QWidget::WResizeNoErase*0) {
+ KColorEditView* view, TQWidget *parent, const char *name) :
+ TQFrame(parent, name, TQWidget::WResizeNoErase*0) {
setFrameStyle(StyledPanel|Sunken);
setLineWidth(2);
- QGridLayout* topLayout = new QGridLayout(this, 2, 2);
+ TQGridLayout* topLayout = new TQGridLayout(this, 2, 2);
topLayout->setMargin(2);
topLayout->setRowStretch(0, 10);
topLayout->setRowStretch(1, 0);
topLayout->setColStretch(0, 10);
topLayout->setColStretch(1, 0);
- scrollBar = new QScrollBar(this);
- hScrollBar = new QScrollBar(0, 1, 1, 1, 0, QScrollBar::Horizontal, this);
+ scrollBar = new TQScrollBar(this);
+ hScrollBar = new TQScrollBar(0, 1, 1, 1, 0, TQScrollBar::Horizontal, this);
scrolledArea = new PaletteViewScrolledArea(defaultCellWidth,
defaultCellHeight, cellSpacing, scrollBar, hScrollBar, view, this);
- connect(scrollBar, SIGNAL( valueChanged(int) ),
- SLOT( slotRepaintScrolledArea() ));
+ connect(scrollBar, TQT_SIGNAL( valueChanged(int) ),
+ TQT_SLOT( slotRepaintScrolledArea() ));
topLayout->addWidget(scrolledArea, 0, 0);
- connect(hScrollBar, SIGNAL( valueChanged(int) ),
- SLOT( slotRepaintScrolledArea() ));
- QHBoxLayout* hScrollBarLayout = new QHBoxLayout();
+ connect(hScrollBar, TQT_SIGNAL( valueChanged(int) ),
+ TQT_SLOT( slotRepaintScrolledArea() ));
+ TQHBoxLayout* hScrollBarLayout = new TQHBoxLayout();
hScrollBarLayout->addWidget(hScrollBar, 10);
- hScrollBarLayout->addWidget(new QWidget(this), 0);
+ hScrollBarLayout->addWidget(new TQWidget(this), 0);
topLayout->addLayout(hScrollBarLayout, 1, 0);
topLayout->addWidget(scrollBar, 0, 1);
}
diff --git a/kcoloredit/paletteview.h b/kcoloredit/paletteview.h
index 0032997f..9501de40 100644
--- a/kcoloredit/paletteview.h
+++ b/kcoloredit/paletteview.h
@@ -18,8 +18,8 @@
#ifndef PALETTEVIEW_H
#define PALETTEVIEW_H
-#include <qframe.h>
-#include <qscrollbar.h>
+#include <tqframe.h>
+#include <tqscrollbar.h>
#include "paletteviewscrolledarea.h"
@@ -29,7 +29,7 @@ class KColorEditView;
* Its parent is KColorEditView
* @author Artur Rataj
*/
-class PaletteView : public QFrame {
+class PaletteView : public TQFrame {
Q_OBJECT
public:
@@ -37,7 +37,7 @@ public:
* The effective cell sizes may be adjusted to fit the widget sizes.
*/
PaletteView(const int defaultCellWidth, const int defaultCellHeight, const int cellSpacing,
- KColorEditView* view, QWidget *parent = 0, const char *name=0);
+ KColorEditView* view, TQWidget *parent = 0, const char *name=0);
~PaletteView();
/** Calls redraw() in scrolledArea */
void redraw();
@@ -56,9 +56,9 @@ protected:
/** The scrolled area */
PaletteViewScrolledArea* scrolledArea;
/** The scroll bar widget */
- QScrollBar* scrollBar;
+ TQScrollBar* scrollBar;
/** The horizontal scroll bar widget */
- QScrollBar* hScrollBar;
+ TQScrollBar* hScrollBar;
};
#endif
diff --git a/kcoloredit/paletteviewscrolledarea.cpp b/kcoloredit/paletteviewscrolledarea.cpp
index dafb4d10..0b4f0ec4 100644
--- a/kcoloredit/paletteviewscrolledarea.cpp
+++ b/kcoloredit/paletteviewscrolledarea.cpp
@@ -16,18 +16,18 @@
***************************************************************************/
#include <stdlib.h>
-#include <qptrlist.h>
-#include <qcolor.h>
-#include <qcursor.h>
-#include <qbrush.h>
-#include <qpainter.h>
-#include <qpixmap.h>
-#include <qpen.h>
-#include <qfontmetrics.h>
-#include <qtimer.h>
+#include <tqptrlist.h>
+#include <tqcolor.h>
+#include <tqcursor.h>
+#include <tqbrush.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
+#include <tqpen.h>
+#include <tqfontmetrics.h>
+#include <tqtimer.h>
#include <kglobal.h>
#include <kcolordrag.h>
-#include <qscrollbar.h>
+#include <tqscrollbar.h>
#include "palette.h"
#include "palettehistory.h"
@@ -37,9 +37,9 @@
#include "paletteviewscrolledarea.moc"
PaletteViewScrolledArea::PaletteViewScrolledArea(const int defaultCellWidth,
- const int defaultCellHeight, const int cellSpacing, QScrollBar* scrollBar,
- QScrollBar* hScrollBar, KColorEditView* view, QWidget* parent, const char* name)
- : QFrame(parent, name) {
+ const int defaultCellHeight, const int cellSpacing, TQScrollBar* scrollBar,
+ TQScrollBar* hScrollBar, KColorEditView* view, TQWidget* parent, const char* name)
+ : TQFrame(parent, name) {
this->defaultCellWidth = defaultCellWidth;
this->defaultCellHeight = defaultCellHeight;
this->cellSpacing = cellSpacing;
@@ -47,8 +47,8 @@ PaletteViewScrolledArea::PaletteViewScrolledArea(const int defaultCellWidth,
this->hScrollBar = hScrollBar;
this->view = view;
setBackgroundMode(NoBackground);
- scrollTimeoutTimer = new QTimer(this);
- connect(scrollTimeoutTimer, SIGNAL( timeout() ), SLOT( slotScrollTimeout() ));
+ scrollTimeoutTimer = new TQTimer(this);
+ connect(scrollTimeoutTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( slotScrollTimeout() ));
scrollTimeout = true;
mousePressed = false;
cursorPositioning = false;
@@ -98,7 +98,7 @@ void PaletteViewScrolledArea::scrollPalette(const int amount, const int timeout)
void PaletteViewScrolledArea::slotScrollTimeout() {
scrollTimeout = true;
if(mousePressed) {
- QPoint cursorPoint = mapFromGlobal(QCursor::pos());
+ TQPoint cursorPoint = mapFromGlobal(TQCursor::pos());
setCursorPos(cursorPoint.x(), cursorPoint.y());
selectionEnd = cursorPos();
if(selectionEnd >= selectionBegin)
@@ -166,7 +166,7 @@ void PaletteViewScrolledArea::setCellsSizes() {
cellWidth = defaultCellWidth;
cellHeight = defaultCellHeight;
if(viewColorNames) {
- QPainter painter;
+ TQPainter painter;
painter.begin(this);
if(cellHeight < painter.fontMetrics().height()) {
int prevCellHeight = cellHeight;
@@ -216,12 +216,12 @@ int PaletteViewScrolledArea::selectionMax() const {
return document()->paletteSelectionEnd();
}
-void PaletteViewScrolledArea::paintEvent(QPaintEvent* /*event*/) {
+void PaletteViewScrolledArea::paintEvent(TQPaintEvent* /*event*/) {
setCellsSizes();
- QPixmap pixmap(size());
- QPainter painter;
+ TQPixmap pixmap(size());
+ TQPainter painter;
painter.begin(&pixmap, this);
- QFontMetrics fontMetrics = painter.fontMetrics();
+ TQFontMetrics fontMetrics = painter.fontMetrics();
int maxLineWidth;
if(viewColorNames) {
int maxTextLength = 0;
@@ -249,12 +249,12 @@ void PaletteViewScrolledArea::paintEvent(QPaintEvent* /*event*/) {
int lastRow = (posY + height() - 1 + rowHeight - 1)/rowHeight;
if(viewColorNames)
painter.fillRect(0, 0, rowWidth, height(),
- QBrush( QFrame::palette().active().base() ));
- QBrush normalBackgroundBrush(QFrame::palette().active().background());
- QBrush selectedBackgroundBrush(QFrame::palette().active().highlight());
- QBrush foregroundBrush;
- QBrush cursorBrush(QFrame::palette().active().foreground());
- QPen backgroundPen(QFrame::palette().active().foreground());
+ TQBrush( TQFrame::palette().active().base() ));
+ TQBrush normalBackgroundBrush(TQFrame::palette().active().background());
+ TQBrush selectedBackgroundBrush(TQFrame::palette().active().highlight());
+ TQBrush foregroundBrush;
+ TQBrush cursorBrush(TQFrame::palette().active().foreground());
+ TQPen backgroundPen(TQFrame::palette().active().foreground());
int min = selectionMin();
int max = selectionMax();
int fontAscent = fontMetrics.ascent();
@@ -270,14 +270,14 @@ void PaletteViewScrolledArea::paintEvent(QPaintEvent* /*event*/) {
for(int y = firstRow; y <= lastRow; ++y) {
int yBegin = y*rowHeight - posY;
int currCellNum = y*cellsInRow + x;
- QBrush* backgroundBrush;
+ TQBrush* backgroundBrush;
if(currCellNum >= min && currCellNum < max)
backgroundBrush = &selectedBackgroundBrush;
else
backgroundBrush = &normalBackgroundBrush;
if(currCellNum < palette()->length()) {
Color* color = palette()->color(currCellNum);
- QBrush foregroundBrush(QColor(
+ TQBrush foregroundBrush(TQColor(
color->component(Color::RED_INDEX),
color->component(Color::GREEN_INDEX),
color->component(Color::BLUE_INDEX) ));
@@ -285,7 +285,7 @@ void PaletteViewScrolledArea::paintEvent(QPaintEvent* /*event*/) {
*backgroundBrush);
painter.fillRect(xBegin, yBegin + rowHeight - cellSpacing, cellWithSpacingWidth, cellSpacing,
*backgroundBrush);
- QBrush* backgroundOrCursorBrush;
+ TQBrush* backgroundOrCursorBrush;
if(cursorPos() == currCellNum)
backgroundOrCursorBrush = &cursorBrush;
else
@@ -325,7 +325,7 @@ void PaletteViewScrolledArea::paintEvent(QPaintEvent* /*event*/) {
painter.end();
}
-int PaletteViewScrolledArea::colorIndex(const QPoint& point) const {
+int PaletteViewScrolledArea::colorIndex(const TQPoint& point) const {
int colorColumn = point.x()*cellsInRow/rowWidth;
int colorRow = (point.y() + scrollBar->value())/rowHeight;
int colorIndex = colorRow*cellsInRow + colorColumn;
@@ -335,14 +335,14 @@ int PaletteViewScrolledArea::colorIndex(const QPoint& point) const {
return colorIndex;
}
-QColor PaletteViewScrolledArea::color(const QPoint& point) const {
+TQColor PaletteViewScrolledArea::color(const TQPoint& point) const {
Color* color = palette()->color(colorIndex( point ));
- return QColor(color->component( Color::RED_INDEX ),
+ return TQColor(color->component( Color::RED_INDEX ),
color->component( Color::GREEN_INDEX ),
color->component( Color::BLUE_INDEX ));
}
-void PaletteViewScrolledArea::mousePressEvent(QMouseEvent* event) {
+void PaletteViewScrolledArea::mousePressEvent(TQMouseEvent* event) {
cursorPositioning = false;
if(( cursorPositioning = setCursorPos(event->x(), event->y()) )) {
selectionBegin = cursorPos();
@@ -356,7 +356,7 @@ void PaletteViewScrolledArea::mousePressEvent(QMouseEvent* event) {
mousePressed = true;
}
-void PaletteViewScrolledArea::mouseMoveEvent(QMouseEvent* event) {
+void PaletteViewScrolledArea::mouseMoveEvent(TQMouseEvent* event) {
if(cursorPositioning) {
setCursorPos(event->x(), event->y());
selectionEnd = cursorPos();
@@ -371,7 +371,7 @@ void PaletteViewScrolledArea::mouseMoveEvent(QMouseEvent* event) {
if(colorIndex( colorDragPoint ) != -1) {
if(abs( event->x() - colorDragPoint.x() ) > 2 ||
abs( event->y() - colorDragPoint.y() ) > 2) {
- QColor draggedColor = color(colorDragPoint);
+ TQColor draggedColor = color(colorDragPoint);
KColorDrag* colorDrag = KColorDrag::makeDrag(draggedColor, this);
colorDrag->dragCopy();
} else
@@ -380,7 +380,7 @@ void PaletteViewScrolledArea::mouseMoveEvent(QMouseEvent* event) {
}
}
-void PaletteViewScrolledArea::mouseReleaseEvent(QMouseEvent* /*event*/) {
+void PaletteViewScrolledArea::mouseReleaseEvent(TQMouseEvent* /*event*/) {
if(colorChosen) {
if(colorIndex( colorDragPoint ) != -1) {
int index = colorIndex(colorDragPoint);
diff --git a/kcoloredit/paletteviewscrolledarea.h b/kcoloredit/paletteviewscrolledarea.h
index 18bbae2b..db39e454 100644
--- a/kcoloredit/paletteviewscrolledarea.h
+++ b/kcoloredit/paletteviewscrolledarea.h
@@ -18,28 +18,28 @@
#ifndef PALETTEVIEWSCROLLEDAREA_H
#define PALETTEVIEWSCROLLEDAREA_H
-#include <qframe.h>
-#include <qevent.h>
+#include <tqframe.h>
+#include <tqevent.h>
#include "palette.h"
class KColorEditDoc;
class KColorEditView;
-class QScrollBar;
+class TQScrollBar;
/** This widget draws the palette view scrolled area.
* It has paste and cut features.
* @author Artur Rataj
*/
-class PaletteViewScrolledArea : public QFrame {
+class PaletteViewScrolledArea : public TQFrame {
Q_OBJECT
public:
/** Constructs the widget */
PaletteViewScrolledArea(const int defaultCellWidth, const int defaultCellHeight,
- const int cellSpacing, QScrollBar* scrollBar,
- QScrollBar* hScrollBar, KColorEditView* view,
- QWidget* parent = 0, const char* name = 0);
+ const int cellSpacing, TQScrollBar* scrollBar,
+ TQScrollBar* hScrollBar, KColorEditView* view,
+ TQWidget* parent = 0, const char* name = 0);
~PaletteViewScrolledArea();
/** Sets cells sizes and then calls repaintPalette() */
void redraw();
@@ -52,9 +52,9 @@ public slots:
protected:
/** The scrollbar widget */
- QScrollBar* scrollBar;
+ TQScrollBar* scrollBar;
/** The horizontal scrollbar widget */
- QScrollBar* hScrollBar;
+ TQScrollBar* hScrollBar;
/** Pointer to the document view */
KColorEditView* view;
/** Default cell width */
@@ -82,7 +82,7 @@ protected:
/** A position at which selection ended */
int selectionEnd;
/** Auto scroll timeout timer */
- QTimer* scrollTimeoutTimer;
+ TQTimer* scrollTimeoutTimer;
/** Whether there is auto scroll timeout */
bool scrollTimeout;
/** Whether a mouse has been pressed over the palette and not yet released */
@@ -90,7 +90,7 @@ protected:
/** Whether the cursor is being positioned */
bool cursorPositioning;
/** A color drag point */
- QPoint colorDragPoint;
+ TQPoint colorDragPoint;
/** Whether a color has been chosen and it is not dragged */
bool colorChosen;
/** Whether the cursor follows a chosen color */
@@ -108,9 +108,9 @@ protected:
/** repaints the palette */
void repaintPalette();
/** @return A color index at a given position, -1 if none */
- int colorIndex(const QPoint& point) const;
+ int colorIndex(const TQPoint& point) const;
/** @return A color at a given position */
- QColor color(const QPoint& point) const;
+ TQColor color(const TQPoint& point) const;
/** sets a palette cursor position */
void setCursorPos(const int pos);
/** Sets a cursor position due to a mouse position.
@@ -136,13 +136,13 @@ protected:
*/
void checkSelectionAutoScroll(const int mousePosY);
/** The widget painting */
- void paintEvent(QPaintEvent* event);
+ void paintEvent(TQPaintEvent* event);
/** Used to get mouse press events coordinates */
- void mousePressEvent(QMouseEvent* event);
+ void mousePressEvent(TQMouseEvent* event);
/** Used to get mouse move events coordinates */
- void mouseMoveEvent(QMouseEvent* event);
+ void mouseMoveEvent(TQMouseEvent* event);
/** Used to get mouse release events coordinates */
- void mouseReleaseEvent(QMouseEvent* event);
+ void mouseReleaseEvent(TQMouseEvent* event);
/** If there is a scroll timeout, scrolls palette,
* sets scrollTimeout to false and resets scroll timeout timer
*/
diff --git a/kcoloredit/texteditselection.cpp b/kcoloredit/texteditselection.cpp
index 65d4ecad..4b1d6a56 100644
--- a/kcoloredit/texteditselection.cpp
+++ b/kcoloredit/texteditselection.cpp
@@ -15,62 +15,62 @@
* *
***************************************************************************/
-#include <qlabel.h>
-#include <qvalidator.h>
-#include <qcolor.h>
+#include <tqlabel.h>
+#include <tqvalidator.h>
+#include <tqcolor.h>
#include <klocale.h>
#include "main.h"
#include "texteditselection.h"
-TextEditSelection::TextEditSelection(QWidget *parent, const char *name ) : QWidget(parent,name) {
+TextEditSelection::TextEditSelection(TQWidget *parent, const char *name ) : TQWidget(parent,name) {
inChangingComponents = false;
- QVBoxLayout* topLayout = new QVBoxLayout(this, 4);
- QGridLayout* componentsLayout = new QGridLayout(3, 5, 2);
+ TQVBoxLayout* topLayout = new TQVBoxLayout(this, 4);
+ TQGridLayout* componentsLayout = new TQGridLayout(3, 5, 2);
topLayout->addLayout(componentsLayout);
componentsLayout->setColStretch(1, 10);
componentsLayout->addColSpacing(2, 8);
componentsLayout->setColStretch(4, 10);
- QLineEdit* lineEdit;
- addComponent(H_INDEX, ( lineEdit = new QLineEdit(this) ), HSV_MAX_H_VALUE, "H:", 0, 0, componentsLayout);
- connect(lineEdit, SIGNAL( textChanged(const QString&) ), SLOT( slotHsvComponentChanged() ));
- addComponent(S_INDEX, ( lineEdit = new QLineEdit(this) ), HSV_MAX_S_VALUE, "S:", 1, 0, componentsLayout);
- connect(lineEdit, SIGNAL( textChanged(const QString&) ), SLOT( slotHsvComponentChanged() ));
- addComponent(V_INDEX, ( lineEdit = new QLineEdit(this) ), HSV_MAX_V_VALUE, "V:", 2, 0, componentsLayout);
- connect(lineEdit, SIGNAL( textChanged(const QString&) ), SLOT( slotHsvComponentChanged() ));
- addComponent(R_INDEX, ( lineEdit = new QLineEdit(this) ), RGB_MAX_COMPONENT_VALUE, "R:", 0, 1, componentsLayout);
- connect(lineEdit, SIGNAL( textChanged(const QString&) ), SLOT( slotRgbComponentChanged() ));
- addComponent(G_INDEX, ( lineEdit = new QLineEdit(this) ), RGB_MAX_COMPONENT_VALUE, "G:", 1, 1, componentsLayout);
- connect(lineEdit, SIGNAL( textChanged(const QString&) ), SLOT( slotRgbComponentChanged() ));
- addComponent(B_INDEX, ( lineEdit = new QLineEdit(this) ), RGB_MAX_COMPONENT_VALUE, "B:", 2, 1, componentsLayout);
- connect(lineEdit, SIGNAL( textChanged(const QString&) ), SLOT( slotRgbComponentChanged() ));
- QHBoxLayout* rgbStringLayout = new QHBoxLayout(2);
- QLabel* rgbStringLabel = new QLabel("RGB " + i18n( "hex." ) + ": ", this);
+ TQLineEdit* lineEdit;
+ addComponent(H_INDEX, ( lineEdit = new TQLineEdit(this) ), HSV_MAX_H_VALUE, "H:", 0, 0, componentsLayout);
+ connect(lineEdit, TQT_SIGNAL( textChanged(const TQString&) ), TQT_SLOT( slotHsvComponentChanged() ));
+ addComponent(S_INDEX, ( lineEdit = new TQLineEdit(this) ), HSV_MAX_S_VALUE, "S:", 1, 0, componentsLayout);
+ connect(lineEdit, TQT_SIGNAL( textChanged(const TQString&) ), TQT_SLOT( slotHsvComponentChanged() ));
+ addComponent(V_INDEX, ( lineEdit = new TQLineEdit(this) ), HSV_MAX_V_VALUE, "V:", 2, 0, componentsLayout);
+ connect(lineEdit, TQT_SIGNAL( textChanged(const TQString&) ), TQT_SLOT( slotHsvComponentChanged() ));
+ addComponent(R_INDEX, ( lineEdit = new TQLineEdit(this) ), RGB_MAX_COMPONENT_VALUE, "R:", 0, 1, componentsLayout);
+ connect(lineEdit, TQT_SIGNAL( textChanged(const TQString&) ), TQT_SLOT( slotRgbComponentChanged() ));
+ addComponent(G_INDEX, ( lineEdit = new TQLineEdit(this) ), RGB_MAX_COMPONENT_VALUE, "G:", 1, 1, componentsLayout);
+ connect(lineEdit, TQT_SIGNAL( textChanged(const TQString&) ), TQT_SLOT( slotRgbComponentChanged() ));
+ addComponent(B_INDEX, ( lineEdit = new TQLineEdit(this) ), RGB_MAX_COMPONENT_VALUE, "B:", 2, 1, componentsLayout);
+ connect(lineEdit, TQT_SIGNAL( textChanged(const TQString&) ), TQT_SLOT( slotRgbComponentChanged() ));
+ TQHBoxLayout* rgbStringLayout = new TQHBoxLayout(2);
+ TQLabel* rgbStringLabel = new TQLabel("RGB " + i18n( "hex." ) + ": ", this);
rgbStringLayout->addWidget(rgbStringLabel);
- rgbStringLineEdit = new QLineEdit(this);
- rgbStringLineEdit->setMinimumWidth(lineEdit->fontMetrics().width( QString("8888888") ));
- rgbStringLineEdit->setMaximumWidth(lineEdit->fontMetrics().width( QString("888888888") ));
- connect(rgbStringLineEdit, SIGNAL( textChanged(const QString&) ), SLOT( slotRgbStringChanged() ));
+ rgbStringLineEdit = new TQLineEdit(this);
+ rgbStringLineEdit->setMinimumWidth(lineEdit->fontMetrics().width( TQString("8888888") ));
+ rgbStringLineEdit->setMaximumWidth(lineEdit->fontMetrics().width( TQString("888888888") ));
+ connect(rgbStringLineEdit, TQT_SIGNAL( textChanged(const TQString&) ), TQT_SLOT( slotRgbStringChanged() ));
rgbStringLayout->addWidget(rgbStringLineEdit);
topLayout->addLayout(rgbStringLayout);
}
TextEditSelection::~TextEditSelection(){
}
-void TextEditSelection::addComponent(const int index, QLineEdit* lineEdit, const int maxValue,
- const QString& labelString, const int row, const int column, QGridLayout* layout) {
- QLabel* label = new QLabel(labelString, this);
- lineEdit->setValidator(new QIntValidator( 0, maxValue, lineEdit ));
+void TextEditSelection::addComponent(const int index, TQLineEdit* lineEdit, const int maxValue,
+ const TQString& labelString, const int row, const int column, TQGridLayout* layout) {
+ TQLabel* label = new TQLabel(labelString, this);
+ lineEdit->setValidator(new TQIntValidator( 0, maxValue, lineEdit ));
lineEditTable[index] = lineEdit;
- lineEdit->setMinimumWidth(lineEdit->fontMetrics().width( QString("8888") ));
- lineEdit->setMaximumWidth(lineEdit->fontMetrics().width( QString("8888888") ));
+ lineEdit->setMinimumWidth(lineEdit->fontMetrics().width( TQString("8888") ));
+ lineEdit->setMaximumWidth(lineEdit->fontMetrics().width( TQString("8888888") ));
layout->addWidget(label, row, column*3);
layout->addWidget(lineEdit, row, column*3 + 1);
}
void TextEditSelection::setRgbString(const int red, const int green, const int blue) {
- QString string;
+ TQString string;
string.sprintf("%02x%02x%02x", red, green, blue);
rgbStringLineEdit->setText(string);
}
@@ -81,12 +81,12 @@ void TextEditSelection::slotHsvComponentChanged() {
int hComponent = lineEditTable[H_INDEX]->text().toInt();
int sComponent = lineEditTable[S_INDEX]->text().toInt();
int vComponent = lineEditTable[V_INDEX]->text().toInt();
- QColor color;
+ TQColor color;
color.setHsv(hComponent, sComponent, vComponent);
int rComponent = color.red();
int gComponent = color.green();
int bComponent = color.blue();
- QString string;
+ TQString string;
lineEditTable[R_INDEX]->setText(string.setNum( rComponent ));
lineEditTable[G_INDEX]->setText(string.setNum( gComponent ));
lineEditTable[B_INDEX]->setText(string.setNum( bComponent ));
@@ -107,13 +107,13 @@ void TextEditSelection::slotRgbComponentChanged() {
int rComponent = lineEditTable[R_INDEX]->text().toInt();
int gComponent = lineEditTable[G_INDEX]->text().toInt();
int bComponent = lineEditTable[B_INDEX]->text().toInt();
- QColor color;
+ TQColor color;
color.setRgb(rComponent, gComponent, bComponent);
int hComponent;
int sComponent;
int vComponent;
color.hsv(&hComponent, &sComponent, &vComponent);
- QString string;
+ TQString string;
lineEditTable[H_INDEX]->setText(string.setNum( hComponent ));
lineEditTable[S_INDEX]->setText(string.setNum( sComponent ));
lineEditTable[V_INDEX]->setText(string.setNum( vComponent ));
@@ -131,7 +131,7 @@ void TextEditSelection::slotRgbComponentChanged() {
void TextEditSelection::slotRgbStringChanged() {
if(!inChangingComponents) {
inChangingComponents = true;
- QString string = rgbStringLineEdit->text().stripWhiteSpace();
+ TQString string = rgbStringLineEdit->text().stripWhiteSpace();
bool result;
int value = string.toInt(&result, 16);
if(result) {
@@ -144,7 +144,7 @@ void TextEditSelection::slotRgbStringChanged() {
int hComponent;
int sComponent;
int vComponent;
- QColor hsvColor;
+ TQColor hsvColor;
hsvColor.hsv(&hComponent, &sComponent, &vComponent);
lineEditTable[H_INDEX]->setText(string.setNum( hComponent ));
lineEditTable[S_INDEX]->setText(string.setNum( sComponent ));
@@ -164,14 +164,14 @@ void TextEditSelection::slotSetValue(Color* color) {
if(!color->equals( this->color )) {
inChangingComponents = true;
this->color = *color;
- QString string;
+ TQString string;
int rComponent = this->color.component(Color::RED_INDEX);
int gComponent = this->color.component(Color::GREEN_INDEX);
int bComponent = this->color.component(Color::BLUE_INDEX);
lineEditTable[R_INDEX]->setText(string.setNum( rComponent ));
lineEditTable[G_INDEX]->setText(string.setNum( gComponent ));
lineEditTable[B_INDEX]->setText(string.setNum( bComponent ));
- QColor hsvColor(rComponent, gComponent, bComponent);
+ TQColor hsvColor(rComponent, gComponent, bComponent);
int hComponent;
int sComponent;
int vComponent;
diff --git a/kcoloredit/texteditselection.h b/kcoloredit/texteditselection.h
index c2166098..e140a5dc 100644
--- a/kcoloredit/texteditselection.h
+++ b/kcoloredit/texteditselection.h
@@ -18,9 +18,9 @@
#ifndef TEXTEDITSELECTION_H
#define TEXTEDITSELECTION_H
-#include <qwidget.h>
-#include <qlineedit.h>
-#include <qlayout.h>
+#include <tqwidget.h>
+#include <tqlineedit.h>
+#include <tqlayout.h>
#include "color.h"
@@ -28,12 +28,12 @@
* can be set.
* @author Artur Rataj
*/
-class TextEditSelection : public QWidget {
+class TextEditSelection : public TQWidget {
Q_OBJECT
public:
/** Constructs the widget */
- TextEditSelection(QWidget *parent=0, const char *name=0);
+ TextEditSelection(TQWidget *parent=0, const char *name=0);
~TextEditSelection();
signals:
@@ -46,8 +46,8 @@ public slots:
protected:
/** Adds a component line edit */
- void addComponent(const int index, QLineEdit* lineEdit, const int maxValue, const QString& labelString,
- const int row, const int column, QGridLayout* layout);
+ void addComponent(const int index, TQLineEdit* lineEdit, const int maxValue, const TQString& labelString,
+ const int row, const int column, TQGridLayout* layout);
/** sets RGB string in rgbStringLineEdit */
void setRgbString(const int red, const int green, const int blue);
@@ -77,9 +77,9 @@ protected:
COMPONENTS_NUM = 6 };
/** Line edit widgets table */
- QLineEdit* lineEditTable[COMPONENTS_NUM];
+ TQLineEdit* lineEditTable[COMPONENTS_NUM];
/** RGB hex string line edit widgets table */
- QLineEdit* rgbStringLineEdit;
+ TQLineEdit* rgbStringLineEdit;
/** The selected color */
Color color;
/** A flag that components are matched */
diff --git a/kcoloredit/textselection.cpp b/kcoloredit/textselection.cpp
index 8a4225bc..f916d48f 100644
--- a/kcoloredit/textselection.cpp
+++ b/kcoloredit/textselection.cpp
@@ -17,7 +17,7 @@
#include "textselection.h"
-TextSelection::TextSelection(QWidget *parent, const char *name ) : QWidget(parent,name) {
+TextSelection::TextSelection(TQWidget *parent, const char *name ) : TQWidget(parent,name) {
}
TextSelection::~TextSelection(){
diff --git a/kdvi/TeXFont.h b/kdvi/TeXFont.h
index 8ff70499..d3ee51af 100644
--- a/kdvi/TeXFont.h
+++ b/kdvi/TeXFont.h
@@ -18,7 +18,7 @@ class TeXFont {
TeXFont(TeXFontDefinition *_parent)
{
parent = _parent;
- errorMessage = QString::null;
+ errorMessage = TQString::null;
};
virtual ~TeXFont();
@@ -29,7 +29,7 @@ class TeXFont {
glyphtable[i].shrunkenCharacter.resize(0, 0);
};
- virtual glyph* getGlyph(Q_UINT16 character, bool generateCharacterPixmap=false, const QColor& color=Qt::black) = 0;
+ virtual glyph* getGlyph(Q_UINT16 character, bool generateCharacterPixmap=false, const TQColor& color=Qt::black) = 0;
// Checksum of the font. Used e.g. by PK fonts. This field is filled
// in by the constructor, or set to 0.0, if the font format does not
@@ -38,7 +38,7 @@ class TeXFont {
// If the font or if some glyphs could not be loaded, error messages
// will be put here.
- QString errorMessage;
+ TQString errorMessage;
protected:
glyph glyphtable[TeXFontDefinition::max_num_of_chars_in_font];
diff --git a/kdvi/TeXFontDefinition.cpp b/kdvi/TeXFontDefinition.cpp
index 9b745c83..03dd1b72 100644
--- a/kdvi/TeXFontDefinition.cpp
+++ b/kdvi/TeXFontDefinition.cpp
@@ -3,7 +3,7 @@
#include <kdebug.h>
#include <klocale.h>
-#include <qfile.h>
+#include <tqfile.h>
#include "dviRenderer.h"
#include "fontpool.h"
@@ -31,7 +31,7 @@ extern const int MFResolutions[];
// #define DEBUG_FONT
-TeXFontDefinition::TeXFontDefinition(QString nfontname, double _displayResolution_in_dpi, Q_UINT32 chk, Q_INT32 _scaled_size_in_DVI_units,
+TeXFontDefinition::TeXFontDefinition(TQString nfontname, double _displayResolution_in_dpi, Q_UINT32 chk, Q_INT32 _scaled_size_in_DVI_units,
class fontPool *pool, double _enlargement)
{
#ifdef DEBUG_FONT
@@ -46,7 +46,7 @@ TeXFontDefinition::TeXFontDefinition(QString nfontname, double _displayResolutio
checksum = chk;
flags = TeXFontDefinition::FONT_IN_USE;
file = 0;
- filename = QString::null;
+ filename = TQString::null;
scaled_size_in_DVI_units = _scaled_size_in_DVI_units;
macrotable = 0;
@@ -84,7 +84,7 @@ TeXFontDefinition::~TeXFontDefinition()
}
-void TeXFontDefinition::fontNameReceiver(const QString& fname)
+void TeXFontDefinition::fontNameReceiver(const TQString& fname)
{
#ifdef DEBUG_FONT
kdDebug(4300) << "void TeXFontDefinition::fontNameReceiver( " << fname << " )" << endl;
@@ -93,17 +93,17 @@ void TeXFontDefinition::fontNameReceiver(const QString& fname)
flags |= TeXFontDefinition::FONT_LOADED;
filename = fname;
#ifdef HAVE_FREETYPE
- fullFontName = QString::null;
- fullEncodingName = QString::null;
+ fullFontName = TQString::null;
+ fullEncodingName = TQString::null;
#endif
- file = fopen(QFile::encodeName(filename), "r");
+ file = fopen(TQFile::encodeName(filename), "r");
// Check if the file could be opened. If not, try to find the file
// in the DVI file's directory. If that works, modify the filename
// accordingly and go on.
if (file == 0) {
- QString filename_test(font_pool->getExtraSearchPath() + "/" + filename);
- file = fopen( QFile::encodeName(filename_test), "r");
+ TQString filename_test(font_pool->getExtraSearchPath() + "/" + filename);
+ file = fopen( TQFile::encodeName(filename_test), "r");
if (file == 0) {
kdError(4300) << i18n("Cannot find font %1, file %2.").arg(fontname).arg(filename) << endl;
return;
@@ -149,7 +149,7 @@ void TeXFontDefinition::fontNameReceiver(const QString& fname)
file = 0;
#ifdef HAVE_FREETYPE
// Find the encoding for that font
- const QString &enc = font_pool->fontsByTeXName.findEncoding(fontname);
+ const TQString &enc = font_pool->fontsByTeXName.findEncoding(fontname);
if (enc.isEmpty() == false) {
#ifdef DEBUG_FONT
@@ -195,7 +195,7 @@ void TeXFontDefinition::reset()
vf_table.clear();
}
- filename = QString::null;
+ filename = TQString::null;
flags = TeXFontDefinition::FONT_IN_USE;
set_char_p = &dviRenderer::set_empty_char;
}
@@ -225,7 +225,7 @@ void TeXFontDefinition::mark_as_used()
// For virtual fonts, also go through the list of referred fonts
if (flags & TeXFontDefinition::FONT_VIRTUAL) {
- QIntDictIterator<TeXFontDefinition> it(vf_table);
+ TQIntDictIterator<TeXFontDefinition> it(vf_table);
while( it.current() ) {
it.current()->mark_as_used();
++it;
diff --git a/kdvi/TeXFontDefinition.h b/kdvi/TeXFontDefinition.h
index e3effc2a..d64e6d59 100644
--- a/kdvi/TeXFontDefinition.h
+++ b/kdvi/TeXFontDefinition.h
@@ -15,8 +15,8 @@
#ifndef _FONT_H
#define _FONT_H
-#include <qintdict.h>
-#include <qstring.h>
+#include <tqintdict.h>
+#include <tqstring.h>
#include <stdio.h>
@@ -56,12 +56,12 @@ class TeXFontDefinition {
};
- TeXFontDefinition(QString nfontname, double _displayResolution_in_dpi, Q_UINT32 chk, Q_INT32 _scaled_size_in_DVI_units,
+ TeXFontDefinition(TQString nfontname, double _displayResolution_in_dpi, Q_UINT32 chk, Q_INT32 _scaled_size_in_DVI_units,
class fontPool *pool, double _enlargement);
~TeXFontDefinition();
void reset();
- void fontNameReceiver(const QString&);
+ void fontNameReceiver(const TQString&);
// Members for character fonts
void setDisplayResolution(double _displayResolution_in_dpi);
@@ -71,7 +71,7 @@ class TeXFontDefinition {
void mark_as_used();
class fontPool *font_pool; // Pointer to the pool that contains this font.
- QString fontname; // name of font, such as "cmr10"
+ TQString fontname; // name of font, such as "cmr10"
unsigned char flags; // flags byte (see values below)
double enlargement;
Q_INT32 scaled_size_in_DVI_units; // Scaled size from the font definition command; in DVI units
@@ -82,34 +82,34 @@ class TeXFontDefinition {
double displayResolution_in_dpi;
FILE *file; // open font file or NULL
- QString filename; // name of font file
+ TQString filename; // name of font file
TeXFont *font;
macro *macrotable; // used by (loaded) virtual fonts
- QIntDict<TeXFontDefinition> vf_table; // used by (loaded) virtual fonts, list of fonts used by this vf,
+ TQIntDict<TeXFontDefinition> vf_table; // used by (loaded) virtual fonts, list of fonts used by this vf,
// acessible by number
TeXFontDefinition *first_font; // used by (loaded) virtual fonts, list of fonts used by this vf
#ifdef HAVE_FREETYPE
- const QString &getFullFontName() const {return fullFontName;}
- const QString &getFullEncodingName() const {return fullEncodingName;}
+ const TQString &getFullFontName() const {return fullFontName;}
+ const TQString &getFullEncodingName() const {return fullEncodingName;}
#endif
- const QString &getFontTypeName() const {return fontTypeName;}
+ const TQString &getFontTypeName() const {return fontTypeName;}
#ifdef HAVE_FREETYPE
/** For FREETYPE fonts, which use a map file, this field will
contain the full name of the font (e.g. 'Computer Modern'). If
the name does not exist, or cannot be found, this field will be
- QString::null. Only subclasses of TeXFont should write into this
+ TQString::null. Only subclasses of TeXFont should write into this
field. */
- QString fullFontName;
+ TQString fullFontName;
/** For FREETYPE fonts, which use a map file, this field will
contain the full name of the font encoding (e.g. 'TexBase1'). If
the encoding name does not exist, or cannot be found, this field
- will be QString::null. Only subclasses of TeXFont should write
+ will be TQString::null. Only subclasses of TeXFont should write
into this field. */
- QString fullEncodingName;
+ TQString fullEncodingName;
#endif
private:
@@ -117,7 +117,7 @@ class TeXFontDefinition {
/** This will be set to a human-readable description of the font,
e.g. "virtual" or "TeX PK", or "Type 1" */
- QString fontTypeName;
+ TQString fontTypeName;
// Functions related to virtual fonts
void read_VF_index(void );
diff --git a/kdvi/TeXFont_PFB.cpp b/kdvi/TeXFont_PFB.cpp
index 927c84bc..2b3883fe 100644
--- a/kdvi/TeXFont_PFB.cpp
+++ b/kdvi/TeXFont_PFB.cpp
@@ -14,7 +14,7 @@
#include <kdebug.h>
#include <klocale.h>
-#include <qimage.h>
+#include <tqimage.h>
#include "fontpool.h"
@@ -74,8 +74,8 @@ TeXFont_PFB::TeXFont_PFB(TeXFontDefinition *parent, fontEncoding *enc, double sl
// TeX is only able to address character codes 0-255 while
// e.g. Type1 fonts may contain several thousands of characters)
if (enc != 0) {
- parent->fullEncodingName = enc->encodingFullName.remove(QString::fromLatin1( "Encoding" ));
- parent->fullEncodingName = enc->encodingFullName.remove(QString::fromLatin1( "encoding" ));
+ parent->fullEncodingName = enc->encodingFullName.remove(TQString::fromLatin1( "Encoding" ));
+ parent->fullEncodingName = enc->encodingFullName.remove(TQString::fromLatin1( "encoding" ));
// An encoding vector is given for this font, i.e. an array of
// character names (such as: 'parenleft' or 'dotlessj'). We use
@@ -138,7 +138,7 @@ TeXFont_PFB::~TeXFont_PFB()
}
-glyph *TeXFont_PFB::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QColor& color)
+glyph *TeXFont_PFB::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const TQColor& color)
{
#ifdef DEBUG_PFB
kdDebug(4300) << "TeXFont_PFB::getGlyph( ch=" << ch << ", '" << (char)(ch) << "', generateCharacterPixmap=" << generateCharacterPixmap << " )" << endl;
@@ -168,12 +168,12 @@ glyph *TeXFont_PFB::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QC
long int characterSize_in_printers_points_by_64 = (long int)((64.0*72.0*parent->scaled_size_in_DVI_units*parent->font_pool->getCMperDVIunit())/2.54 + 0.5 );
error = FT_Set_Char_Size(face, 0, characterSize_in_printers_points_by_64, res, res );
if (error) {
- QString msg = i18n("FreeType reported an error when setting the character size for font file %1.").arg(parent->filename);
+ TQString msg = i18n("FreeType reported an error when setting the character size for font file %1.").arg(parent->filename);
if (errorMessage.isEmpty())
errorMessage = msg;
kdError(4300) << msg << endl;
g->shrunkenCharacter.resize(1,1);
- g->shrunkenCharacter.fill(QColor(255, 255, 255));
+ g->shrunkenCharacter.fill(TQColor(255, 255, 255));
return g;
}
@@ -184,24 +184,24 @@ glyph *TeXFont_PFB::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QC
error = FT_Load_Glyph(face, charMap[ch], FT_LOAD_NO_HINTING );
if (error) {
- QString msg = i18n("FreeType is unable to load glyph #%1 from font file %2.").arg(ch).arg(parent->filename);
+ TQString msg = i18n("FreeType is unable to load glyph #%1 from font file %2.").arg(ch).arg(parent->filename);
if (errorMessage.isEmpty())
errorMessage = msg;
kdError(4300) << msg << endl;
g->shrunkenCharacter.resize(1,1);
- g->shrunkenCharacter.fill(QColor(255, 255, 255));
+ g->shrunkenCharacter.fill(TQColor(255, 255, 255));
return g;
}
// convert to an anti-aliased bitmap
error = FT_Render_Glyph( face->glyph, ft_render_mode_normal );
if (error) {
- QString msg = i18n("FreeType is unable to render glyph #%1 from font file %2.").arg(ch).arg(parent->filename);
+ TQString msg = i18n("FreeType is unable to render glyph #%1 from font file %2.").arg(ch).arg(parent->filename);
if (errorMessage.isEmpty())
errorMessage = msg;
kdError(4300) << msg << endl;
g->shrunkenCharacter.resize(1,1);
- g->shrunkenCharacter.fill(QColor(255, 255, 255));
+ g->shrunkenCharacter.fill(TQColor(255, 255, 255));
return g;
}
@@ -212,11 +212,11 @@ glyph *TeXFont_PFB::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QC
errorMessage = i18n("Glyph #%1 is empty.").arg(ch);
kdError(4300) << i18n("Glyph #%1 from font file %2 is empty.").arg(ch).arg(parent->filename) << endl;
g->shrunkenCharacter.resize( 15, 15 );
- g->shrunkenCharacter.fill(QColor(255, 0, 0));
+ g->shrunkenCharacter.fill(TQColor(255, 0, 0));
g->x2 = 0;
g->y2 = 15;
} else {
- QImage imgi(slot->bitmap.width, slot->bitmap.rows, 32);
+ TQImage imgi(slot->bitmap.width, slot->bitmap.rows, 32);
imgi.setAlphaBuffer(true);
// Do QPixmaps fully support the alpha channel? If yes, we use
@@ -240,7 +240,7 @@ glyph *TeXFont_PFB::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QC
} else {
// If the alpha channel is not supported... QT seems to turn
// the alpha channel into a crude bitmap which is used to mask
- // the resulting QPixmap. In this case, we define the
+ // the resulting TQPixmap. In this case, we define the
// character outline using the image data, and use the alpha
// channel only to store "maximally opaque" or "completely
// transparent" values. When characters are rendered,
@@ -279,7 +279,7 @@ glyph *TeXFont_PFB::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QC
if (g->dvi_advance_in_units_of_design_size_by_2e20 == 0) {
int error = FT_Load_Glyph(face, charMap[ch], FT_LOAD_NO_SCALE);
if (error) {
- QString msg = i18n("FreeType is unable to load metric for glyph #%1 from font file %2.").arg(ch).arg(parent->filename);
+ TQString msg = i18n("FreeType is unable to load metric for glyph #%1 from font file %2.").arg(ch).arg(parent->filename);
if (errorMessage.isEmpty())
errorMessage = msg;
kdError(4300) << msg << endl;
diff --git a/kdvi/TeXFont_PFB.h b/kdvi/TeXFont_PFB.h
index 68211cdb..4e2d8122 100644
--- a/kdvi/TeXFont_PFB.h
+++ b/kdvi/TeXFont_PFB.h
@@ -26,7 +26,7 @@ class TeXFont_PFB : public TeXFont {
TeXFont_PFB(TeXFontDefinition *parent, fontEncoding *enc=0, double slant=0.0 );
~TeXFont_PFB();
- glyph* getGlyph(Q_UINT16 character, bool generateCharacterPixmap=false, const QColor& color=Qt::black);
+ glyph* getGlyph(Q_UINT16 character, bool generateCharacterPixmap=false, const TQColor& color=Qt::black);
private:
FT_Face face;
diff --git a/kdvi/TeXFont_PK.cpp b/kdvi/TeXFont_PK.cpp
index 6a3c9b3a..7e1ce60d 100644
--- a/kdvi/TeXFont_PK.cpp
+++ b/kdvi/TeXFont_PK.cpp
@@ -54,10 +54,10 @@
#include <kdebug.h>
#include <klocale.h>
#include <math.h>
-#include <qbitmap.h>
-#include <qfile.h>
-#include <qimage.h>
-#include <qpainter.h>
+#include <tqbitmap.h>
+#include <tqfile.h>
+#include <tqimage.h>
+#include <tqpainter.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -76,7 +76,7 @@
#define PK_MAGIC (PK_PRE << 8) + PK_ID
-extern void oops(QString message);
+extern void oops(TQString message);
@@ -89,7 +89,7 @@ TeXFont_PK::TeXFont_PK(TeXFontDefinition *parent)
for(unsigned int i=0; i<TeXFontDefinition::max_num_of_chars_in_font; i++)
characterBitmaps[i] = 0;
- file = fopen(QFile::encodeName(parent->filename), "r");
+ file = fopen(TQFile::encodeName(parent->filename), "r");
if (file == 0)
kdError(4300) << i18n("Cannot open font file %1.").arg(parent->filename) << endl;
#ifdef DEBUG_PK
@@ -116,7 +116,7 @@ TeXFont_PK::~TeXFont_PK()
}
-glyph* TeXFont_PK::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QColor& color)
+glyph* TeXFont_PK::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const TQColor& color)
{
#ifdef DEBUG_PK
kdDebug(4300) << "TeXFont_PK::getGlyph( ch=" << ch << ", generateCharacterPixmap=" << generateCharacterPixmap << " )" << endl;
@@ -158,7 +158,7 @@ glyph* TeXFont_PK::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QCo
}
// At this point, g points to a properly loaded character. Generate
- // a smoothly scaled QPixmap if the user asks for it.
+ // a smoothly scaled TQPixmap if the user asks for it.
if ((generateCharacterPixmap == true) &&
((g->shrunkenCharacter.isNull()) || (color != g->color)) &&
(characterBitmaps[ch]->w != 0)) {
@@ -208,7 +208,7 @@ glyph* TeXFont_PK::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QCo
int shrunk_height = (int)ceil( (characterBitmaps[ch]->h - srcYTrans)/shrinkFactor );
// Turn the image into 8 bit
- QByteArray translated(characterBitmaps[ch]->w * characterBitmaps[ch]->h);
+ TQByteArray translated(characterBitmaps[ch]->w * characterBitmaps[ch]->h);
Q_UINT8 *data = (Q_UINT8 *)translated.data();
for(int x=0; x<characterBitmaps[ch]->w; x++)
for(int y=0; y<characterBitmaps[ch]->h; y++) {
@@ -219,7 +219,7 @@ glyph* TeXFont_PK::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QCo
}
// Now shrink the image. We shrink the X-direction first
- QByteArray xshrunk(shrunk_width*characterBitmaps[ch]->h);
+ TQByteArray xshrunk(shrunk_width*characterBitmaps[ch]->h);
Q_UINT8 *xdata = (Q_UINT8 *)xshrunk.data();
// Do the shrinking. The pixel (x,y) that we want to calculate
@@ -247,7 +247,7 @@ glyph* TeXFont_PK::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QCo
}
// Now shrink the Y-direction
- QByteArray xyshrunk(shrunk_width*shrunk_height);
+ TQByteArray xyshrunk(shrunk_width*shrunk_height);
Q_UINT8 *xydata = (Q_UINT8 *)xyshrunk.data();
for(int x=0; x<shrunk_width; x++)
for(int y=0; y<shrunk_height; y++) {
@@ -266,7 +266,7 @@ glyph* TeXFont_PK::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QCo
xydata[shrunk_width*y + x] = (int)(value/shrinkFactor);
}
- QImage im32(shrunk_width, shrunk_height, 32);
+ TQImage im32(shrunk_width, shrunk_height, 32);
im32.setAlphaBuffer(true);
// Do QPixmaps fully support the alpha channel? If yes, we use
// that. Otherwise, use other routines as a fallback
@@ -284,7 +284,7 @@ glyph* TeXFont_PK::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QCo
} else {
// If the alpha channel is not supported... QT seems to turn the
// alpha channel into a crude bitmap which is used to mask the
- // resulting QPixmap. In this case, we define the character
+ // resulting TQPixmap. In this case, we define the character
// outline using the image data, and use the alpha channel only
// to store "maximally opaque" or "completely transparent"
// values. When characters are rendered, overlapping characters
@@ -313,7 +313,7 @@ glyph* TeXFont_PK::getGlyph(Q_UINT16 ch, bool generateCharacterPixmap, const QCo
}
g->shrunkenCharacter.convertFromImage(im32,0);
- g->shrunkenCharacter.setOptimization(QPixmap::BestOptim);
+ g->shrunkenCharacter.setOptimization(TQPixmap::BestOptim);
}
return g;
}
diff --git a/kdvi/TeXFont_PK.h b/kdvi/TeXFont_PK.h
index b555934e..80a0c0e1 100644
--- a/kdvi/TeXFont_PK.h
+++ b/kdvi/TeXFont_PK.h
@@ -12,7 +12,7 @@ class TeXFont_PK : public TeXFont {
TeXFont_PK(TeXFontDefinition *parent);
~TeXFont_PK();
- glyph* getGlyph(Q_UINT16 character, bool generateCharacterPixmap=false, const QColor& color=Qt::black);
+ glyph* getGlyph(Q_UINT16 character, bool generateCharacterPixmap=false, const TQColor& color=Qt::black);
private:
FILE *file; // open font file or NULL
diff --git a/kdvi/TeXFont_TFM.cpp b/kdvi/TeXFont_TFM.cpp
index 54edd2fc..c8268f01 100644
--- a/kdvi/TeXFont_TFM.cpp
+++ b/kdvi/TeXFont_TFM.cpp
@@ -11,8 +11,8 @@
#include <kdebug.h>
#include <klocale.h>
-#include <qdatastream.h>
-#include <qfile.h>
+#include <tqdatastream.h>
+#include <tqfile.h>
#include "glyph.h"
#include "TeXFont_TFM.h"
@@ -28,12 +28,12 @@ TeXFont_TFM::TeXFont_TFM(TeXFontDefinition *parent)
kdDebug(4300) << "TeXFont_TFM::TeXFont_TFM( parent=" << parent << " )" << endl;
#endif
- QFile file( parent->filename );
+ TQFile file( parent->filename );
if ( !file.open( IO_ReadOnly ) ) {
kdError(4300) << "TeXFont_TFM::TeXFont_TFM(): Could not read TFM file" << endl;
return;
}
- QDataStream stream( &file );
+ TQDataStream stream( &file );
// Data from the very beginning of the TFM file, as specified in
// "The DVI Driver Standard, Level 0", section D.2.1
@@ -122,7 +122,7 @@ TeXFont_TFM::~TeXFont_TFM()
}
-glyph *TeXFont_TFM::getGlyph(Q_UINT16 characterCode, bool generateCharacterPixmap, const QColor& color)
+glyph *TeXFont_TFM::getGlyph(Q_UINT16 characterCode, bool generateCharacterPixmap, const TQColor& color)
{
#ifdef DEBUG_TFM
kdDebug(4300) << "TeXFont_TFM::getGlyph( ch=" << ch << ", generateCharacterPixmap=" << generateCharacterPixmap << " )" << endl;
diff --git a/kdvi/TeXFont_TFM.h b/kdvi/TeXFont_TFM.h
index e68ba872..737c8bed 100644
--- a/kdvi/TeXFont_TFM.h
+++ b/kdvi/TeXFont_TFM.h
@@ -26,7 +26,7 @@ class TeXFont_TFM : public TeXFont {
TeXFont_TFM(TeXFontDefinition *parent);
~TeXFont_TFM();
- glyph* getGlyph(Q_UINT16 character, bool generateCharacterPixmap=false, const QColor& color=Qt::black);
+ glyph* getGlyph(Q_UINT16 character, bool generateCharacterPixmap=false, const TQColor& color=Qt::black);
private:
fix_word characterWidth_in_units_of_design_size[256];
diff --git a/kdvi/bigEndianByteReader.h b/kdvi/bigEndianByteReader.h
index 674ca1c1..06ef1b13 100644
--- a/kdvi/bigEndianByteReader.h
+++ b/kdvi/bigEndianByteReader.h
@@ -18,7 +18,7 @@
#ifndef _bigEndianByteReader_H
#define _bigEndianByteReader_H
-#include <qglobal.h>
+#include <tqglobal.h>
class bigEndianByteReader {
public:
diff --git a/kdvi/dviFile.cpp b/kdvi/dviFile.cpp
index 521fb39f..336507db 100644
--- a/kdvi/dviFile.cpp
+++ b/kdvi/dviFile.cpp
@@ -54,8 +54,8 @@
#include <kdebug.h>
#include <klocale.h>
#include <ktempfile.h>
-#include <qdir.h>
-#include <qfileinfo.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
#include <stdlib.h>
#include <kprocio.h>
@@ -71,7 +71,7 @@ extern "C" {
dvifile::dvifile(const dvifile *old, fontPool *fp)
{
- errorMsg = QString::null;
+ errorMsg = TQString::null;
errorCounter = 0;
page_offset = 0;
suggestedPageSize = 0;
@@ -267,13 +267,13 @@ void dvifile::prepare_pages()
}
-dvifile::dvifile(const QString& fname, fontPool* pool)
+dvifile::dvifile(const TQString& fname, fontPool* pool)
{
#ifdef DEBUG_DVIFILE
kdDebug(4300) << "init_dvi_file: " << fname << endl;
#endif
- errorMsg = QString::null;
+ errorMsg = TQString::null;
errorCounter = 0;
page_offset = 0;
suggestedPageSize = 0;
@@ -282,7 +282,7 @@ dvifile::dvifile(const QString& fname, fontPool* pool)
font_pool = pool;
sourceSpecialMarker = true;
- QFile file(fname);
+ TQFile file(fname);
filename = file.name();
file.open( IO_ReadOnly );
size_of_file = file.size();
@@ -319,9 +319,9 @@ dvifile::~dvifile()
#endif
// Delete converted PDF files
- QMap<QString, QString>::Iterator it;
+ TQMap<TQString, TQString>::Iterator it;
for ( it = convertedFiles.begin(); it != convertedFiles.end(); ++it )
- QFile::remove(it.data());
+ TQFile::remove(it.data());
if (suggestedPageSize != 0)
delete suggestedPageSize;
@@ -359,18 +359,18 @@ void dvifile::renumber()
}
-QString dvifile::convertPDFtoPS(const QString &PDFFilename)
+TQString dvifile::convertPDFtoPS(const TQString &PDFFilename)
{
// Check if the PDFFile is known
- QMap<QString, QString>::Iterator it = convertedFiles.find(PDFFilename);
+ TQMap<TQString, TQString>::Iterator it = convertedFiles.find(PDFFilename);
if (it != convertedFiles.end()) {
// PDF-File is known. Good.
return it.data();
}
// Get the name of a temporary file
- KTempFile tmpfile(QString::null, ".ps");
- QString convertedFileName = tmpfile.name();
+ KTempFile tmpfile(TQString::null, ".ps");
+ TQString convertedFileName = tmpfile.name();
tmpfile.close();
tmpfile.unlink();
@@ -378,9 +378,9 @@ QString dvifile::convertPDFtoPS(const QString &PDFFilename)
KProcIO proc;
proc << "pdf2ps" << PDFFilename << convertedFileName;
if (proc.start(KProcess::Block) == false)
- convertedFileName = QString::null; // Indicates that conversion failed, won't try again.
- if (!QFile::exists(convertedFileName))
- convertedFileName = QString::null; // Indicates that conversion failed, won't try again.
+ convertedFileName = TQString::null; // Indicates that conversion failed, won't try again.
+ if (!TQFile::exists(convertedFileName))
+ convertedFileName = TQString::null; // Indicates that conversion failed, won't try again.
// Save name of converted file to buffer, so PDF file won't be
// converted again, and files can be deleted when *this is
@@ -391,12 +391,12 @@ QString dvifile::convertPDFtoPS(const QString &PDFFilename)
}
-bool dvifile::saveAs(const QString &filename)
+bool dvifile::saveAs(const TQString &filename)
{
if (dvi_Data() == 0)
return false;
- QFile out(filename);
+ TQFile out(filename);
if (out.open( IO_Raw|IO_WriteOnly ) == false)
return false;
if (out.writeBlock ( (char *)(dvi_Data()), size_of_file ) == -1)
diff --git a/kdvi/dviFile.h b/kdvi/dviFile.h
index 069ae6d9..59ffe65c 100644
--- a/kdvi/dviFile.h
+++ b/kdvi/dviFile.h
@@ -13,10 +13,10 @@
#include "bigEndianByteReader.h"
-#include <qintdict.h>
-#include <qiodevice.h>
-#include <qmemarray.h>
-#include <qstring.h>
+#include <tqintdict.h>
+#include <tqiodevice.h>
+#include <tqmemarray.h>
+#include <tqstring.h>
class fontPool;
class pageSize;
@@ -28,25 +28,25 @@ class dvifile : public bigEndianByteReader
public:
/** Makes a deep copy of the old DVI file. */
dvifile(const dvifile *old, fontPool *fp );
- dvifile(const QString& fname, class fontPool* pool);
+ dvifile(const TQString& fname, class fontPool* pool);
~dvifile();
fontPool * font_pool;
- QString filename;
- QString generatorString;
+ TQString filename;
+ TQString generatorString;
Q_UINT16 total_pages;
- QMemArray<Q_UINT32> page_offset;
+ TQMemArray<Q_UINT32> page_offset;
/** Saves the DVI file. Returns true on success. */
- bool saveAs(const QString &filename);
+ bool saveAs(const TQString &filename);
// Returns a pointer to the DVI file's data, or 0 if no data has yet
// been allocated.
Q_UINT8 * dvi_Data() {return dviData.data();}
- QIODevice::Offset size_of_file;
- QString errorMsg;
+ TQIODevice::Offset size_of_file;
+ TQString errorMsg;
/** This field is set to zero when the DVI file is constructed, and
will be modified during the prescan phase (at this time the
@@ -68,7 +68,7 @@ class dvifile : public bigEndianByteReader
KDVI ensures that the user is only informed once. */
bool sourceSpecialMarker;
- QIntDict<TeXFontDefinition> tn_table;
+ TQIntDict<TeXFontDefinition> tn_table;
/** Returns the number of centimeters per DVI unit in this DVI
file. */
@@ -89,7 +89,7 @@ class dvifile : public bigEndianByteReader
/** Sets new DVI data; all old data is erased. EXPERIMENTAL, use
with care. */
- void setNewData(const QMemArray<Q_UINT8>& newData) {dviData = newData;}
+ void setNewData(const TQMemArray<Q_UINT8>& newData) {dviData = newData;}
/** Page numbers that appear in a DVI document need not be
ordered. Worse, page numbers need not be unique. This method
@@ -112,9 +112,9 @@ class dvifile : public bigEndianByteReader
name, the method will then NOT convert the file, but simply return
the name from the buffer
- @returns The name of the PS file, or QString::null on failure.
+ @returns The name of the PS file, or TQString::null on failure.
*/
- QString convertPDFtoPS(const QString &PDFFilename);
+ TQString convertPDFtoPS(const TQString &PDFFilename);
private:
/** process_preamble reads the information in the preamble and
@@ -134,17 +134,17 @@ class dvifile : public bigEndianByteReader
double cmPerDVIunit;
- QMemArray<Q_UINT8> dviData;
+ TQMemArray<Q_UINT8> dviData;
/** Map of filenames for converted PDF files
This map contains names of PDF files that were converted to
PostScript. The key is the name of the PDF file, the data the name
- of the associated PS file, or QString::null, if the file could not
+ of the associated PS file, or TQString::null, if the file could not
be converted. The PS files are deleted when the DVI-file is
destructed. */
- QMap<QString, QString> convertedFiles;
+ TQMap<TQString, TQString> convertedFiles;
};
#endif //ifndef _DVIFILE_H
diff --git a/kdvi/dviRenderer.cpp b/kdvi/dviRenderer.cpp
index b9bf6256..2e0b0512 100644
--- a/kdvi/dviRenderer.cpp
+++ b/kdvi/dviRenderer.cpp
@@ -14,19 +14,19 @@
#include <stdlib.h>
#include <string.h>
-#include <qcheckbox.h>
-#include <qclipboard.h>
-#include <qcursor.h>
-#include <qlabel.h>
-#include <qfileinfo.h>
-#include <qlayout.h>
-#include <qmessagebox.h>
-#include <qpaintdevice.h>
-#include <qpainter.h>
-#include <qptrstack.h>
-#include <qregexp.h>
-#include <qurl.h>
-#include <qvbox.h>
+#include <tqcheckbox.h>
+#include <tqclipboard.h>
+#include <tqcursor.h>
+#include <tqlabel.h>
+#include <tqfileinfo.h>
+#include <tqlayout.h>
+#include <tqmessagebox.h>
+#include <tqpaintdevice.h>
+#include <tqpainter.h>
+#include <tqptrstack.h>
+#include <tqregexp.h>
+#include <tqurl.h>
+#include <tqvbox.h>
#include <kapplication.h>
#include <kmessagebox.h>
@@ -62,12 +62,12 @@
//#define DEBUG_DVIRENDERER
-QPainter *foreGroundPainter; // QPainter used for text
+TQPainter *foreGroundPainter; // TQPainter used for text
//------ now comes the dviRenderer class implementation ----------
-dviRenderer::dviRenderer(QWidget *par)
+dviRenderer::dviRenderer(TQWidget *par)
: DocumentRenderer(par), info(new infoDialog(par))
{
#ifdef DEBUG_DVIRENDERER
@@ -77,14 +77,14 @@ dviRenderer::dviRenderer(QWidget *par)
// initialize the dvi machinery
dviFile = 0;
- connect(&font_pool, SIGNAL( setStatusBarText( const QString& ) ), this, SIGNAL( setStatusBarText( const QString& ) ) );
+ connect(&font_pool, TQT_SIGNAL( setStatusBarText( const TQString& ) ), this, TQT_SIGNAL( setStatusBarText( const TQString& ) ) );
parentWidget = par;
shrinkfactor = 3;
current_page = 0;
resolutionInDPI = 0.0;
- connect( &clearStatusBarTimer, SIGNAL(timeout()), this, SLOT(clearStatusBar()) );
+ connect( &clearStatusBarTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(clearStatusBar()) );
currentlyDrawnPage = 0;
editorCommand = "";
@@ -103,7 +103,7 @@ dviRenderer::dviRenderer(QWidget *par)
PS_interface = new ghostscript_interface();
// pass status bar messages through
- connect(PS_interface, SIGNAL( setStatusBarText( const QString& ) ), this, SIGNAL( setStatusBarText( const QString& ) ) );
+ connect(PS_interface, TQT_SIGNAL( setStatusBarText( const TQString& ) ), this, TQT_SIGNAL( setStatusBarText( const TQString& ) ) );
}
@@ -125,9 +125,9 @@ dviRenderer::~dviRenderer()
}
-void dviRenderer::setPrefs(bool flag_showPS, const QString &str_editorCommand, bool useFontHints )
+void dviRenderer::setPrefs(bool flag_showPS, const TQString &str_editorCommand, bool useFontHints )
{
- QMutexLocker locker(&mutex);
+ TQMutexLocker locker(&mutex);
_postscript = flag_showPS;
editorCommand = str_editorCommand;
font_pool.setParameters( useFontHints );
@@ -195,14 +195,14 @@ void dviRenderer::drawPage(double resolution, RenderedDocumentPage *page)
colorStack.clear();
globalColor = Qt::black;
- QApplication::setOverrideCursor( waitCursor );
+ TQApplication::setOverrideCursor( waitCursor );
foreGroundPainter = page->getPainter();
if (foreGroundPainter != 0) {
- errorMsg = QString::null;
+ errorMsg = TQString::null;
draw_page();
page->returnPainter(foreGroundPainter);
}
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
page->isEmpty = false;
if (errorMsg.isEmpty() != true) {
@@ -210,7 +210,7 @@ void dviRenderer::drawPage(double resolution, RenderedDocumentPage *page)
i18n("<qt><strong>File corruption!</strong> KDVI had trouble interpreting your DVI file. Most "
"likely this means that the DVI file is broken.</qt>"),
errorMsg, i18n("DVI File Error"));
- errorMsg = QString::null;
+ errorMsg = TQString::null;
currentlyDrawnPage = 0;
mutex.unlock();
return;
@@ -225,7 +225,7 @@ void dviRenderer::drawPage(double resolution, RenderedDocumentPage *page)
dviFile->sourceSpecialMarker = false;
// Show the dialog as soon as event processing is finished, and
// the program is idle
- QTimer::singleShot( 0, this, SLOT(showThatSourceInformationIsPresent()) );
+ TQTimer::singleShot( 0, this, TQT_SLOT(showThatSourceInformationIsPresent()) );
}
}
@@ -262,27 +262,27 @@ void dviRenderer::showThatSourceInformationIsPresent()
KDialogBase *dialog= new KDialogBase(i18n("KDVI: Information"), KDialogBase::Yes, KDialogBase::Yes, KDialogBase::Yes,
parentWidget, "information", true, true,KStdGuiItem::ok() );
- QVBox *topcontents = new QVBox (dialog);
+ TQVBox *topcontents = new TQVBox (dialog);
topcontents->setSpacing(KDialog::spacingHint()*2);
topcontents->setMargin(KDialog::marginHint()*2);
- QWidget *contents = new QWidget(topcontents);
- QHBoxLayout * lay = new QHBoxLayout(contents);
+ TQWidget *contents = new TQWidget(topcontents);
+ TQHBoxLayout * lay = new TQHBoxLayout(contents);
lay->setSpacing(KDialog::spacingHint()*2);
lay->addStretch(1);
- QLabel *label1 = new QLabel( contents);
- label1->setPixmap(QMessageBox::standardIcon(QMessageBox::Information));
+ TQLabel *label1 = new TQLabel( contents);
+ label1->setPixmap(TQMessageBox::standardIcon(TQMessageBox::Information));
lay->add( label1 );
- QLabel *label2 = new QLabel( i18n("<qt>This DVI file contains source file information. You may click into the text with the "
+ TQLabel *label2 = new TQLabel( i18n("<qt>This DVI file contains source file information. You may click into the text with the "
"middle mouse button, and an editor will open the TeX-source file immediately.</qt>"),
contents);
label2->setMinimumSize(label2->sizeHint());
lay->add( label2 );
lay->addStretch(1);
- QSize extraSize = QSize(50,30);
- QCheckBox *checkbox = new QCheckBox(i18n("Do not show this message again"), topcontents);
- extraSize = QSize(50,0);
+ TQSize extraSize = TQSize(50,30);
+ TQCheckBox *checkbox = new TQCheckBox(i18n("Do not show this message again"), topcontents);
+ extraSize = TQSize(50,0);
dialog->setHelpLinkText(i18n("Explain in more detail..."));
dialog->setHelp("inverse-search", "kdvi");
dialog->enableLinkedHelp(true);
@@ -312,7 +312,7 @@ void dviRenderer::embedPostScript()
return;
embedPS_progress = new KProgressDialog(parentWidget, "embedPSProgressDialog",
- i18n("Embedding PostScript Files"), QString::null, true);
+ i18n("Embedding PostScript Files"), TQString::null, true);
if (!embedPS_progress)
return;
embedPS_progress->setAllowCancel(false);
@@ -324,7 +324,7 @@ void dviRenderer::embedPostScript()
Q_UINT16 currPageSav = current_page;
- errorMsg = QString::null;
+ errorMsg = TQString::null;
for(current_page=0; current_page < dviFile->total_pages; current_page++) {
if (current_page < dviFile->total_pages) {
command_pointer = dviFile->dvi_Data() + dviFile->page_offset[current_page];
@@ -343,22 +343,22 @@ void dviRenderer::embedPostScript()
if (!errorMsg.isEmpty()) {
errorMsg = "<qt>" + errorMsg + "</qt>";
KMessageBox::detailedError(parentWidget, "<qt>" + i18n("Not all PostScript files could be embedded into your document.") + "</qt>", errorMsg);
- errorMsg = QString::null;
+ errorMsg = TQString::null;
} else
KMessageBox::information(parentWidget, "<qt>" + i18n("All external PostScript files were embedded into your document. You "
"will probably want to save the DVI file now.") + "</qt>",
- QString::null, "embeddingDone");
+ TQString::null, "embeddingDone");
// Prescan phase starts here
#ifdef PERFORMANCE_MEASUREMENT
kdDebug(4300) << "Time elapsed till prescan phase starts " << performanceTimer.elapsed() << "ms" << endl;
- QTime preScanTimer;
+ TQTime preScanTimer;
preScanTimer.start();
#endif
dviFile->numberOfExternalPSFiles = 0;
prebookmarks.clear();
for(current_page=0; current_page < dviFile->total_pages; current_page++) {
- PostScriptOutPutString = new QString();
+ PostScriptOutPutString = new TQString();
if (current_page < dviFile->total_pages) {
command_pointer = dviFile->dvi_Data() + dviFile->page_offset[current_page];
@@ -387,9 +387,9 @@ void dviRenderer::embedPostScript()
}
-bool dviRenderer::isValidFile(const QString& filename) const
+bool dviRenderer::isValidFile(const TQString& filename) const
{
- QFile f(filename);
+ TQFile f(filename);
if (!f.open(IO_ReadOnly))
return false;
@@ -411,16 +411,16 @@ bool dviRenderer::isValidFile(const QString& filename) const
}
-bool dviRenderer::setFile(const QString &fname, const KURL &base)
+bool dviRenderer::setFile(const TQString &fname, const KURL &base)
{
#ifdef DEBUG_DVIRENDERER
kdDebug(4300) << "dviRenderer::setFile( fname='" << fname << "', ref='" << ref << "', sourceMarker=" << sourceMarker << " )" << endl;
#endif
- QMutexLocker lock(&mutex);
+ TQMutexLocker lock(&mutex);
- QFileInfo fi(fname);
- QString filename = fi.absFilePath();
+ TQFileInfo fi(fname);
+ TQString filename = fi.absFilePath();
// If fname is the empty string, then this means: "close". Delete
// the dvifile and the pixmap.
@@ -446,7 +446,7 @@ bool dviRenderer::setFile(const QString &fname, const KURL &base)
// mime type, if the file is not DVI. Perhaps we should move the
// procedure later to the kviewpart, instead of the implementaton in
// the multipage.
- QString mimetype( KMimeMagic::self()->findFileType( fname )->mimeType() );
+ TQString mimetype( KMimeMagic::self()->findFileType( fname )->mimeType() );
if (mimetype != "application/x-dvi") {
KMessageBox::sorry( parentWidget,
i18n( "<qt>Could not open file <nobr><strong>%1</strong></nobr> which has "
@@ -466,7 +466,7 @@ bool dviRenderer::setFile(const QString &fname, const KURL &base)
return false;
}
- QApplication::setOverrideCursor( waitCursor );
+ TQApplication::setOverrideCursor( waitCursor );
dvifile *dviFile_new = new dvifile(filename, &font_pool);
if ((dviFile == 0) || (dviFile->filename != filename))
@@ -475,7 +475,7 @@ bool dviRenderer::setFile(const QString &fname, const KURL &base)
dviFile_new->sourceSpecialMarker = false;
if ((dviFile_new->dvi_Data() == NULL)||(dviFile_new->errorMsg.isEmpty() != true)) {
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
if (dviFile_new->errorMsg.isEmpty() != true)
KMessageBox::detailedError(parentWidget,
i18n("<qt>File corruption! KDVI had trouble interpreting your DVI file. Most "
@@ -504,7 +504,7 @@ bool dviRenderer::setFile(const QString &fname, const KURL &base)
// web server), we limit the PostScript files that can be accessed
// by this file to the download directory, in order to limit the
// possibilities of a denial of service attack.
- QString includePath;
+ TQString includePath;
if (!baseURL.isLocalFile()) {
includePath = filename;
includePath.truncate(includePath.findRev('/'));
@@ -534,7 +534,7 @@ bool dviRenderer::setFile(const QString &fname, const KURL &base)
// PRESCAN STARTS HERE
#ifdef PERFORMANCE_MEASUREMENT
kdDebug(4300) << "Time elapsed till prescan phase starts " << performanceTimer.elapsed() << "ms" << endl;
- QTime preScanTimer;
+ TQTime preScanTimer;
preScanTimer.start();
#endif
dviFile->numberOfExternalPSFiles = 0;
@@ -542,7 +542,7 @@ bool dviRenderer::setFile(const QString &fname, const KURL &base)
prebookmarks.clear();
for(current_page=0; current_page < dviFile->total_pages; current_page++) {
- PostScriptOutPutString = new QString();
+ PostScriptOutPutString = new TQString();
if (current_page < dviFile->total_pages) {
command_pointer = dviFile->dvi_Data() + dviFile->page_offset[current_page];
@@ -563,9 +563,9 @@ bool dviRenderer::setFile(const QString &fname, const KURL &base)
// Generate the list of bookmarks
bookmarks.clear();
- QPtrStack<Bookmark> stack;
+ TQPtrStack<Bookmark> stack;
stack.setAutoDelete (false);
- QValueVector<PreBookmark>::iterator it;
+ TQValueVector<PreBookmark>::iterator it;
for( it = prebookmarks.begin(); it != prebookmarks.end(); ++it ) {
Bookmark *bmk = new Bookmark((*it).title, findAnchor((*it).anchorName));
if (stack.isEmpty())
@@ -593,12 +593,12 @@ bool dviRenderer::setFile(const QString &fname, const KURL &base)
pageSizes.resize(dviFile->total_pages, *(dviFile->suggestedPageSize));
}
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
return true;
}
-Anchor dviRenderer::parseReference(const QString &reference)
+Anchor dviRenderer::parseReference(const TQString &reference)
{
mutex.lock();
@@ -634,7 +634,7 @@ Anchor dviRenderer::parseReference(const QString &reference)
// Extract the file name and the numeral part from the reference string
DVI_SourceFileSplitter splitter(reference, dviFile->filename);
Q_UINT32 refLineNumber = splitter.line();
- QString refFileName = splitter.filePath();
+ TQString refFileName = splitter.filePath();
if (sourceHyperLinkAnchors.isEmpty()) {
KMessageBox::sorry(parentWidget, i18n("<qt>You have asked KDVI to locate the place in the DVI file which corresponds to "
@@ -662,8 +662,8 @@ Anchor dviRenderer::parseReference(const QString &reference)
// document.
bool anchorForRefFileFound = false; // Flag that is set if source file anchors for the refFileName could be found at all
- QValueVector<DVI_SourceFileAnchor>::iterator bestMatch = sourceHyperLinkAnchors.end();
- QValueVector<DVI_SourceFileAnchor>::iterator it;
+ TQValueVector<DVI_SourceFileAnchor>::iterator bestMatch = sourceHyperLinkAnchors.end();
+ TQValueVector<DVI_SourceFileAnchor>::iterator it;
for( it = sourceHyperLinkAnchors.begin(); it != sourceHyperLinkAnchors.end(); ++it )
if (refFileName.stripWhiteSpace() == it->fileName.stripWhiteSpace()
|| refFileName.stripWhiteSpace() == it->fileName.stripWhiteSpace() + ".tex"
@@ -715,11 +715,11 @@ void dviRenderer::setResolution(double resolution_in_DPI)
void dviRenderer::clearStatusBar()
{
- emit setStatusBarText( QString::null );
+ emit setStatusBarText( TQString::null );
}
-void dviRenderer::handleSRCLink(const QString &linkText, QMouseEvent *e, DocumentWidget *win)
+void dviRenderer::handleSRCLink(const TQString &linkText, TQMouseEvent *e, DocumentWidget *win)
{
#ifdef DEBUG_SPECIAL
RenderedDviPagePixmap* currentDVIPage = dynamic_cast<RenderedDviPagePixmap*> currentlyDrawnPage;
@@ -730,25 +730,25 @@ void dviRenderer::handleSRCLink(const QString &linkText, QMouseEvent *e, Documen
#endif
DVI_SourceFileSplitter splitter(linkText, dviFile->filename);
- QString TeXfile = splitter.filePath();
+ TQString TeXfile = splitter.filePath();
if ( ! splitter.fileExists() )
{
- KMessageBox::sorry(parentWidget, QString("<qt>") +
+ KMessageBox::sorry(parentWidget, TQString("<qt>") +
i18n("The DVI-file refers to the TeX-file "
"<strong>%1</strong> which could not be found.").arg(KShellProcess::quote(TeXfile)) +
- QString("</qt>"),
+ TQString("</qt>"),
i18n( "Could Not Find File" ));
return;
}
- QString command = editorCommand;
+ TQString command = editorCommand;
if (command.isEmpty() == true) {
- int r = KMessageBox::warningContinueCancel(parentWidget, QString("<qt>") +
+ int r = KMessageBox::warningContinueCancel(parentWidget, TQString("<qt>") +
i18n("You have not yet specified an editor for inverse search. "
"Please choose your favorite editor in the "
"<strong>DVI options dialog</strong> "
"which you will find in the <strong>Settings</strong>-menu.") +
- QString("</qt>"),
+ TQString("</qt>"),
i18n("Need to Specify Editor"),
i18n("Use KDE's Editor Kate for Now"));
if (r == KMessageBox::Continue)
@@ -756,7 +756,7 @@ void dviRenderer::handleSRCLink(const QString &linkText, QMouseEvent *e, Documen
else
return;
}
- command = command.replace( "%l", QString::number(splitter.line()) ).replace( "%f", KShellProcess::quote(TeXfile) );
+ command = command.replace( "%l", TQString::number(splitter.line()) ).replace( "%f", KShellProcess::quote(TeXfile) );
#ifdef DEBUG_SPECIAL
kdDebug(4300) << "Calling program: " << command << endl;
@@ -767,8 +767,8 @@ void dviRenderer::handleSRCLink(const QString &linkText, QMouseEvent *e, Documen
// henceforth dimiss the output of the older programm. "If it
// hasn't failed until now, we don't care."
if (proc != 0) {
- qApp->disconnect(proc, SIGNAL(receivedStderr(KProcess *, char *, int)), 0, 0);
- qApp->disconnect(proc, SIGNAL(receivedStdout(KProcess *, char *, int)), 0, 0);
+ qApp->disconnect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), 0, 0);
+ qApp->disconnect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), 0, 0);
proc = 0;
}
@@ -778,9 +778,9 @@ void dviRenderer::handleSRCLink(const QString &linkText, QMouseEvent *e, Documen
kdError(4300) << "Could not allocate ShellProcess for the editor command." << endl;
return;
}
- qApp->connect(proc, SIGNAL(receivedStderr(KProcess *, char *, int)), this, SLOT(dvips_output_receiver(KProcess *, char *, int)));
- qApp->connect(proc, SIGNAL(receivedStdout(KProcess *, char *, int)), this, SLOT(dvips_output_receiver(KProcess *, char *, int)));
- qApp->connect(proc, SIGNAL(processExited(KProcess *)), this, SLOT(editorCommand_terminated(KProcess *)));
+ qApp->connect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(KProcess *, char *, int)));
+ qApp->connect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(KProcess *, char *, int)));
+ qApp->connect(proc, TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(editorCommand_terminated(KProcess *)));
// Merge the editor-specific editor message here.
export_errorString = i18n("<qt>The external program<br><br><tt><strong>%1</strong></tt><br/><br/>which was used to call the editor "
"for inverse search, reported an error. You might wish to look at the <strong>document info "
@@ -804,12 +804,12 @@ void dviRenderer::handleSRCLink(const QString &linkText, QMouseEvent *e, Documen
}
-QString dviRenderer::PDFencodingToQString(const QString& _pdfstring)
+TQString dviRenderer::PDFencodingToQString(const TQString& _pdfstring)
{
// This method locates special PDF characters in a string and
// replaces them by UTF8. See Section 3.2.3 of the PDF reference
// guide for information.
- QString pdfstring = _pdfstring;
+ TQString pdfstring = _pdfstring;
pdfstring = pdfstring.replace("\\n", "\n");
pdfstring = pdfstring.replace("\\r", "\n");
pdfstring = pdfstring.replace("\\t", "\t");
@@ -820,17 +820,17 @@ QString dviRenderer::PDFencodingToQString(const QString& _pdfstring)
// Now replace octal character codes with the characters they encode
int pos;
- QRegExp rx( "(\\\\)(\\d\\d\\d)" ); // matches "\xyz" where x,y,z are numbers
+ TQRegExp rx( "(\\\\)(\\d\\d\\d)" ); // matches "\xyz" where x,y,z are numbers
while((pos = rx.search( pdfstring )) != -1) {
- pdfstring = pdfstring.replace(pos, 4, QChar(rx.cap(2).toInt(0,8)));
+ pdfstring = pdfstring.replace(pos, 4, TQChar(rx.cap(2).toInt(0,8)));
}
rx.setPattern( "(\\\\)(\\d\\d)" ); // matches "\xy" where x,y are numbers
while((pos = rx.search( pdfstring )) != -1) {
- pdfstring = pdfstring.replace(pos, 3, QChar(rx.cap(2).toInt(0,8)));
+ pdfstring = pdfstring.replace(pos, 3, TQChar(rx.cap(2).toInt(0,8)));
}
rx.setPattern( "(\\\\)(\\d)" ); // matches "\x" where x is a number
while((pos = rx.search( pdfstring )) != -1) {
- pdfstring = pdfstring.replace(pos, 4, QChar(rx.cap(2).toInt(0,8)));
+ pdfstring = pdfstring.replace(pos, 4, TQChar(rx.cap(2).toInt(0,8)));
}
return pdfstring;
}
diff --git a/kdvi/dviRenderer.h b/kdvi/dviRenderer.h
index 98f0f4bd..863a2786 100644
--- a/kdvi/dviRenderer.h
+++ b/kdvi/dviRenderer.h
@@ -15,11 +15,11 @@
#include "fontpool.h"
#include <kurl.h>
-#include <qintdict.h>
-#include <qpointarray.h>
-#include <qtimer.h>
-#include <qvaluestack.h>
-#include <qvaluevector.h>
+#include <tqintdict.h>
+#include <tqpointarray.h>
+#include <tqtimer.h>
+#include <tqvaluestack.h>
+#include <tqvaluevector.h>
class Anchor;
class DocumentWidget;
@@ -41,11 +41,11 @@ extern const int MFResolutions[];
class DVI_SourceFileAnchor {
public:
DVI_SourceFileAnchor() {}
- DVI_SourceFileAnchor(const QString& name, Q_UINT32 ln, Q_UINT32 pg, const Length& _distance_from_top)
+ DVI_SourceFileAnchor(const TQString& name, Q_UINT32 ln, Q_UINT32 pg, const Length& _distance_from_top)
: fileName(name), line(ln), page(pg),
distance_from_top(_distance_from_top) {}
- QString fileName;
+ TQString fileName;
Q_UINT32 line;
Q_UINT32 page;
Length distance_from_top;
@@ -76,7 +76,7 @@ struct drawinf {
TeXFontDefinition *fontp;
set_char_proc set_char_p;
- QIntDict<TeXFontDefinition> *fonttable;
+ TQIntDict<TeXFontDefinition> *fonttable;
TeXFontDefinition *_virtual;
};
@@ -87,20 +87,20 @@ class dviRenderer : public DocumentRenderer, bigEndianByteReader
Q_OBJECT
public:
- dviRenderer(QWidget *parent);
+ dviRenderer(TQWidget *parent);
~dviRenderer();
- virtual bool setFile(const QString &fname, const KURL &base);
+ virtual bool setFile(const TQString &fname, const KURL &base);
class dvifile *dviFile;
- void setPrefs(bool flag_showPS, const QString &editorCommand, bool useFontHints );
+ void setPrefs(bool flag_showPS, const TQString &editorCommand, bool useFontHints );
virtual bool supportsTextSearch() const {return true;}
bool showPS() { return _postscript; }
int curr_page() { return current_page+1; }
- virtual bool isValidFile(const QString& fileName) const;
+ virtual bool isValidFile(const TQString& fileName) const;
/** This method will try to parse the reference part of the DVI
@@ -108,7 +108,7 @@ public:
number, or src:<line><filename>) and see if a corresponding
section of the DVI file can be found. If so, it returns an
anchor to that section. If not, it returns an invalid anchor. */
- virtual Anchor parseReference(const QString &reference);
+ virtual Anchor parseReference(const TQString &reference);
// These should not be public... only for the moment
void read_postamble();
@@ -120,23 +120,23 @@ public:
void applicationDoSpecial(char * cp);
void special(long nbytes);
- void printErrorMsgForSpecials(const QString& msg);
- void color_special(const QString& cp);
- void html_href_special(const QString& cp);
+ void printErrorMsgForSpecials(const TQString& msg);
+ void color_special(const TQString& cp);
+ void html_href_special(const TQString& cp);
void html_anchor_end();
void draw_page();
public slots:
- void exportPS(const QString& fname = QString::null, const QString& options = QString::null, KPrinter* printer = 0);
+ void exportPS(const TQString& fname = TQString::null, const TQString& options = TQString::null, KPrinter* printer = 0);
void exportPDF();
void showInfo();
- void handleSRCLink(const QString &linkText, QMouseEvent *e, DocumentWidget *widget);
+ void handleSRCLink(const TQString &linkText, TQMouseEvent *e, DocumentWidget *widget);
void embedPostScript();
void abortExternalProgramm();
- /** simply emits "setStatusBarText( QString::null )". This is used
+ /** simply emits "setStatusBarText( TQString::null )". This is used
in dviRenderer::mouseMoveEvent(), see the explanation there. */
void clearStatusBar();
@@ -150,7 +150,7 @@ public slots:
signals:
/** Passed through to the top-level kpart. */
- // void setStatusBarText( const QString& );
+ // void setStatusBarText( const TQString& );
private slots:
/** This method shows a dialog that tells the user that source
@@ -169,17 +169,17 @@ private:
/** This method parses a color specification of type "gray 0.5", "rgb
0.5 0.7 1.0", "hsb ...", "cmyk .." or "PineGreen". See the source
code for details. */
- QColor parseColorSpecification(const QString& colorSpec);
+ TQColor parseColorSpecification(const TQString& colorSpec);
/** This map contains the colors which are known by name. This field
is initialized in the method parseColorSpecification() as soon as
it is needed. */
- QMap<QString, QColor> namedColors;
+ TQMap<TQString, TQColor> namedColors;
/* This method locates special PDF characters in a string and
replaces them by UTF8. See Section 3.2.3 of the PDF reference
guide for information */
- QString PDFencodingToQString(const QString& pdfstring);
+ TQString PDFencodingToQString(const TQString& pdfstring);
void setResolution(double resolution_in_DPI);
@@ -193,19 +193,19 @@ private:
void prescan_embedPS(char *cp, Q_UINT8 *);
void prescan_removePageSizeInfo(char *cp, Q_UINT8 *);
void prescan_parseSpecials(char *cp, Q_UINT8 *);
- void prescan_ParsePapersizeSpecial(const QString& cp);
- void prescan_ParseBackgroundSpecial(const QString& cp);
- void prescan_ParseHTMLAnchorSpecial(const QString& cp);
- void prescan_ParsePSHeaderSpecial(const QString& cp);
- void prescan_ParsePSBangSpecial(const QString& cp);
- void prescan_ParsePSQuoteSpecial(const QString& cp);
- void prescan_ParsePSSpecial(const QString& cp);
- void prescan_ParsePSFileSpecial(const QString& cp);
- void prescan_ParseSourceSpecial(const QString& cp);
+ void prescan_ParsePapersizeSpecial(const TQString& cp);
+ void prescan_ParseBackgroundSpecial(const TQString& cp);
+ void prescan_ParseHTMLAnchorSpecial(const TQString& cp);
+ void prescan_ParsePSHeaderSpecial(const TQString& cp);
+ void prescan_ParsePSBangSpecial(const TQString& cp);
+ void prescan_ParsePSQuoteSpecial(const TQString& cp);
+ void prescan_ParsePSSpecial(const TQString& cp);
+ void prescan_ParsePSFileSpecial(const TQString& cp);
+ void prescan_ParseSourceSpecial(const TQString& cp);
void prescan_setChar(unsigned int ch);
/* */
- QValueVector<PreBookmark> prebookmarks;
+ TQValueVector<PreBookmark> prebookmarks;
@@ -216,15 +216,15 @@ private:
/** Shrink factor. Units are not quite clear */
double shrinkfactor;
- QString errorMsg;
+ TQString errorMsg;
/** Methods which handle certain special commands. */
- void epsf_special(const QString& cp);
- void source_special(const QString& cp);
+ void epsf_special(const TQString& cp);
+ void source_special(const TQString& cp);
/** TPIC specials */
- void TPIC_setPen_special(const QString& cp);
- void TPIC_addPath_special(const QString& cp);
+ void TPIC_setPen_special(const TQString& cp);
+ void TPIC_addPath_special(const TQString& cp);
void TPIC_flushPath_special();
/** This timer is used to delay clearing of the statusbar. Clearing
@@ -232,39 +232,39 @@ private:
mouse moves over a block of text that contains source
hyperlinks. The signal timeout() is connected to the method
clearStatusBar() of *this. */
- QTimer clearStatusBarTimer;
+ TQTimer clearStatusBarTimer;
// List of source-hyperlinks on all pages. This vector is generated
// when the DVI-file is first loaded, i.e. when draw_part is called
// with PostScriptOutPutString != NULL
- QValueVector<DVI_SourceFileAnchor> sourceHyperLinkAnchors;
+ TQValueVector<DVI_SourceFileAnchor> sourceHyperLinkAnchors;
// If not NULL, the text currently drawn represents a source
// hyperlink to the (relative) URL given in the string;
- QString *source_href;
+ TQString *source_href;
// If not NULL, the text currently drawn represents a hyperlink to
// the (relative) URL given in the string;
- QString *HTML_href;
+ TQString *HTML_href;
- QString editorCommand;
+ TQString editorCommand;
/** Stack for register compounds, used for the DVI-commands PUSH/POP
as explained in section 2.5 and 2.6.2 of the DVI driver standard,
Level 0, published by the TUG DVI driver standards committee. */
- QValueStack<struct framedata> stack;
+ TQValueStack<struct framedata> stack;
/** A stack where color are stored, according to the documentation of
DVIPS */
- QValueStack<QColor> colorStack;
+ TQValueStack<TQColor> colorStack;
/** The global color is to be used when the color stack is empty */
- QColor globalColor;
+ TQColor globalColor;
/** If PostScriptOutPutFile is non-zero, then no rendering takes
place. Instead, the PostScript code which is generated by the
\special-commands is written to the PostScriptString */
- QString *PostScriptOutPutString;
+ TQString *PostScriptOutPutString;
ghostscript_interface *PS_interface;
@@ -284,13 +284,13 @@ private:
fontProgressDialog *progress;
KShellProcess *proc;
KPrinter *export_printer;
- QString export_fileName;
- QString export_tmpFileName;
- QString export_errorString;
+ TQString export_fileName;
+ TQString export_tmpFileName;
+ TQString export_errorString;
/** Data required for handling TPIC specials */
float penWidth_in_mInch;
- QPointArray TPIC_path;
+ TQPointArray TPIC_path;
Q_UINT16 number_of_elements_in_path;
struct drawinf currinf;
diff --git a/kdvi/dviRenderer_draw.cpp b/kdvi/dviRenderer_draw.cpp
index d09caf6d..b65f240e 100644
--- a/kdvi/dviRenderer_draw.cpp
+++ b/kdvi/dviRenderer_draw.cpp
@@ -70,13 +70,13 @@
#include <klocale.h>
#include <kmessagebox.h>
#include <kprocess.h>
-#include <qpainter.h>
-#include <qbitmap.h>
-#include <qimage.h>
-#include <qpainter.h>
-#include <qfileinfo.h>
+#include <tqpainter.h>
+#include <tqbitmap.h>
+#include <tqimage.h>
+#include <tqpainter.h>
+#include <tqfileinfo.h>
-extern QPainter *foreGroundPainter;
+extern TQPainter *foreGroundPainter;
/** Routine to print characters. */
@@ -97,7 +97,7 @@ void dviRenderer::set_char(unsigned int cmd, unsigned int ch)
long dvi_h_sav = currinf.data.dvi_h;
- QPixmap pix = g->shrunkenCharacter;
+ TQPixmap pix = g->shrunkenCharacter;
int x = ((int) ((currinf.data.dvi_h) / (shrinkfactor * 65536))) - g->x2;
int y = currinf.data.pxl_v - g->y2;
@@ -117,7 +117,7 @@ void dviRenderer::set_char(unsigned int cmd, unsigned int ch)
dhl.linkText = *HTML_href;
currentlyDrawnPage->hyperLinkList.push_back(dhl);
} else {
- QRect dshunion = currentlyDrawnPage->hyperLinkList[currentlyDrawnPage->hyperLinkList.size()-1].box.unite(QRect(x, y, pix.width(), pix.height())) ;
+ TQRect dshunion = currentlyDrawnPage->hyperLinkList[currentlyDrawnPage->hyperLinkList.size()-1].box.unite(TQRect(x, y, pix.width(), pix.height())) ;
currentlyDrawnPage->hyperLinkList[currentlyDrawnPage->hyperLinkList.size()-1].box = dshunion;
}
}
@@ -141,7 +141,7 @@ void dviRenderer::set_char(unsigned int cmd, unsigned int ch)
dhl.linkText = "";
currentDVIPage->sourceHyperLinkList.push_back(dhl);
} else {
- QRect dshunion = currentDVIPage->sourceHyperLinkList[currentDVIPage->sourceHyperLinkList.size()-1].box.unite(QRect(x, y, pix.width(), pix.height())) ;
+ TQRect dshunion = currentDVIPage->sourceHyperLinkList[currentDVIPage->sourceHyperLinkList.size()-1].box.unite(TQRect(x, y, pix.width(), pix.height())) ;
currentDVIPage->sourceHyperLinkList[currentDVIPage->sourceHyperLinkList.size()-1].box = dshunion;
}
}
@@ -188,7 +188,7 @@ void dviRenderer::set_char(unsigned int cmd, unsigned int ch)
default:
if ((ch >= 0x21) && (ch <= 0x7a))
- currentlyDrawnPage->textBoxList[currentlyDrawnPage->textBoxList.size()-1].text += QChar(ch);
+ currentlyDrawnPage->textBoxList[currentlyDrawnPage->textBoxList.size()-1].text += TQChar(ch);
else
currentlyDrawnPage->textBoxList[currentlyDrawnPage->textBoxList.size()-1].text += "?";
break;
diff --git a/kdvi/dviRenderer_export.cpp b/kdvi/dviRenderer_export.cpp
index 4745bf18..5fbdbf35 100644
--- a/kdvi/dviRenderer_export.cpp
+++ b/kdvi/dviRenderer_export.cpp
@@ -36,8 +36,8 @@
#include <kprinter.h>
#include <kprocess.h>
#include <ktempfile.h>
-#include <qlabel.h>
-#include <qpainter.h>
+#include <tqlabel.h>
+#include <tqpainter.h>
#include "dviRenderer.h"
#include "dviFile.h"
@@ -45,7 +45,7 @@
#include "infodialog.h"
#include "kdvi_multipage.h"
-extern QPainter foreGroundPaint; // QPainter used for text
+extern TQPainter foreGroundPaint; // TQPainter used for text
@@ -60,8 +60,8 @@ void dviRenderer::exportPDF()
// has been called meanwhile. See also the exportPS method.
if (proc != 0) {
// Make sure all further output of the programm is ignored
- qApp->disconnect(proc, SIGNAL(receivedStderr(KProcess *, char *, int)), 0, 0);
- qApp->disconnect(proc, SIGNAL(receivedStdout(KProcess *, char *, int)), 0, 0);
+ qApp->disconnect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), 0, 0);
+ qApp->disconnect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), 0, 0);
proc = 0;
}
@@ -70,11 +70,11 @@ void dviRenderer::exportPDF()
return;
// Is the dvipdfm-Programm available ??
- QStringList texList = QStringList::split(":", QString::fromLocal8Bit(getenv("PATH")));
+ TQStringList texList = TQStringList::split(":", TQString::fromLocal8Bit(getenv("PATH")));
bool found = false;
- for (QStringList::Iterator it=texList.begin(); it!=texList.end(); ++it) {
- QString temp = (*it) + "/" + "dvipdfm";
- if (QFile::exists(temp)) {
+ for (TQStringList::Iterator it=texList.begin(); it!=texList.end(); ++it) {
+ TQString temp = (*it) + "/" + "dvipdfm";
+ if (TQFile::exists(temp)) {
found = true;
break;
}
@@ -92,13 +92,13 @@ void dviRenderer::exportPDF()
}
// Generate a suggestion for a reasonable file name
- QString suggestedName = dviFile->filename;
+ TQString suggestedName = dviFile->filename;
suggestedName = suggestedName.left(suggestedName.find(".")) + ".pdf";
- QString fileName = KFileDialog::getSaveFileName(suggestedName, i18n("*.pdf|Portable Document Format (*.pdf)"), parentWidget, i18n("Export File As"));
+ TQString fileName = KFileDialog::getSaveFileName(suggestedName, i18n("*.pdf|Portable Document Format (*.pdf)"), parentWidget, i18n("Export File As"));
if (fileName.isEmpty())
return;
- QFileInfo finfo(fileName);
+ TQFileInfo finfo(fileName);
if (finfo.exists()) {
int r = KMessageBox::warningContinueCancel (parentWidget, i18n("The file %1\nexists. Do you want to overwrite that file?").arg(fileName),
i18n("Overwrite File"), i18n("Overwrite"));
@@ -107,9 +107,9 @@ void dviRenderer::exportPDF()
}
// Initialize the progress dialog
- progress = new fontProgressDialog( QString::null,
+ progress = new fontProgressDialog( TQString::null,
i18n("Using dvipdfm to export the file to PDF"),
- QString::null,
+ TQString::null,
i18n("KDVI is currently using the external program 'dvipdfm' to "
"convert your DVI-file to PDF. Sometimes that can take "
"a while because dvipdfm needs to generate its own bitmap fonts "
@@ -119,7 +119,7 @@ void dviRenderer::exportPDF()
if (progress != 0) {
progress->TextLabel2->setText( i18n("Please be patient") );
progress->setTotalSteps( dviFile->total_pages );
- qApp->connect(progress, SIGNAL(finished()), this, SLOT(abortExternalProgramm()));
+ qApp->connect(progress, TQT_SIGNAL(finished()), this, TQT_SLOT(abortExternalProgramm()));
}
proc = new KShellProcess();
@@ -127,11 +127,11 @@ void dviRenderer::exportPDF()
kdError(4300) << "Could not allocate ShellProcess for the dvipdfm command." << endl;
return;
}
- qApp->disconnect( this, SIGNAL(mySignal()), 0, 0 );
+ qApp->disconnect( this, TQT_SIGNAL(mySignal()), 0, 0 );
- qApp->connect(proc, SIGNAL(receivedStderr(KProcess *, char *, int)), this, SLOT(dvips_output_receiver(KProcess *, char *, int)));
- qApp->connect(proc, SIGNAL(receivedStdout(KProcess *, char *, int)), this, SLOT(dvips_output_receiver(KProcess *, char *, int)));
- qApp->connect(proc, SIGNAL(processExited(KProcess *)), this, SLOT(dvips_terminated(KProcess *)));
+ qApp->connect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(KProcess *, char *, int)));
+ qApp->connect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(KProcess *, char *, int)));
+ qApp->connect(proc, TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(dvips_terminated(KProcess *)));
export_errorString = i18n("<qt>The external program 'dvipdf', which was used to export the file, reported an error. "
"You might wish to look at the <strong>document info dialog</strong> which you will "
@@ -140,8 +140,8 @@ void dviRenderer::exportPDF()
proc->clearArguments();
finfo.setFile(dviFile->filename);
- *proc << QString("cd %1; dvipdfm").arg(KShellProcess::quote(finfo.dirPath(true)));
- *proc << QString("-o %1").arg(KShellProcess::quote(fileName));
+ *proc << TQString("cd %1; dvipdfm").arg(KShellProcess::quote(finfo.dirPath(true)));
+ *proc << TQString("-o %1").arg(KShellProcess::quote(fileName));
*proc << KShellProcess::quote(dviFile->filename);
proc->closeStdin();
if (proc->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false) {
@@ -152,7 +152,7 @@ void dviRenderer::exportPDF()
}
-void dviRenderer::exportPS(const QString& fname, const QString& options, KPrinter* printer)
+void dviRenderer::exportPS(const TQString& fname, const TQString& options, KPrinter* printer)
{
// Safety check.
if (dviFile->page_offset.isEmpty() == true)
@@ -166,8 +166,8 @@ void dviRenderer::exportPS(const QString& fname, const QString& options, KPrinte
// enough to ignore the exit status of the editor if another command
// has been called meanwhile. See also the exportPDF method.
if (proc != 0) {
- qApp->disconnect(proc, SIGNAL(receivedStderr(KProcess *, char *, int)), 0, 0);
- qApp->disconnect(proc, SIGNAL(receivedStdout(KProcess *, char *, int)), 0, 0);
+ qApp->disconnect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), 0, 0);
+ qApp->disconnect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), 0, 0);
proc = 0;
}
@@ -188,16 +188,16 @@ void dviRenderer::exportPS(const QString& fname, const QString& options, KPrinte
return;
}
- QString fileName;
+ TQString fileName;
if (fname.isEmpty()) {
// Generate a suggestion for a reasonable file name
- QString suggestedName = dviFile->filename;
+ TQString suggestedName = dviFile->filename;
suggestedName = suggestedName.left(suggestedName.find(".")) + ".ps";
fileName = KFileDialog::getSaveFileName(suggestedName, i18n("*.ps|PostScript (*.ps)"), parentWidget, i18n("Export File As"));
if (fileName.isEmpty())
return;
- QFileInfo finfo(fileName);
+ TQFileInfo finfo(fileName);
if (finfo.exists()) {
int r = KMessageBox::warningYesNo (parentWidget, i18n("The file %1\nexists. Do you want to overwrite that file?").arg(fileName),
i18n("Overwrite File"));
@@ -210,9 +210,9 @@ void dviRenderer::exportPS(const QString& fname, const QString& options, KPrinte
export_printer = printer;
// Initialize the progress dialog
- progress = new fontProgressDialog( QString::null,
+ progress = new fontProgressDialog( TQString::null,
i18n("Using dvips to export the file to PostScript"),
- QString::null,
+ TQString::null,
i18n("KDVI is currently using the external program 'dvips' to "
"convert your DVI-file to PostScript. Sometimes that can take "
"a while because dvips needs to generate its own bitmap fonts "
@@ -222,7 +222,7 @@ void dviRenderer::exportPS(const QString& fname, const QString& options, KPrinte
if (progress != 0) {
progress->TextLabel2->setText( i18n("Please be patient") );
progress->setTotalSteps( dviFile->total_pages );
- qApp->connect(progress, SIGNAL(finished()), this, SLOT(abortExternalProgramm()));
+ qApp->connect(progress, TQT_SIGNAL(finished()), this, TQT_SLOT(abortExternalProgramm()));
}
// There is a major problem with dvips, at least 5.86 and lower: the
@@ -246,7 +246,7 @@ void dviRenderer::exportPS(const QString& fname, const QString& options, KPrinte
// Sourcefile is the name of the DVI which is used by dvips, either
// the original file, or a temporary file with a new numbering.
- QString sourceFileName = dviFile->filename;
+ TQString sourceFileName = dviFile->filename;
if ((options.isEmpty() == false) || (dviFile->suggestedPageSize != 0) ) {
// Get a name for a temporary file.
KTempFile export_tmpFile;
@@ -265,7 +265,7 @@ void dviRenderer::exportPS(const QString& fname, const QString& options, KPrinte
Q_UINT16 currPageSav = current_page;
dvifile *dvsav = dviFile;
dviFile = &newFile;
- errorMsg = QString::null;
+ errorMsg = TQString::null;
for(current_page=0; current_page < newFile.total_pages; current_page++) {
@@ -293,23 +293,23 @@ void dviRenderer::exportPS(const QString& fname, const QString& options, KPrinte
return;
}
- qApp->connect(proc, SIGNAL(receivedStderr(KProcess *, char *, int)), this, SLOT(dvips_output_receiver(KProcess *, char *, int)));
- qApp->connect(proc, SIGNAL(receivedStdout(KProcess *, char *, int)), this, SLOT(dvips_output_receiver(KProcess *, char *, int)));
- qApp->connect(proc, SIGNAL(processExited(KProcess *)), this, SLOT(dvips_terminated(KProcess *)));
+ qApp->connect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(KProcess *, char *, int)));
+ qApp->connect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(KProcess *, char *, int)));
+ qApp->connect(proc, TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(dvips_terminated(KProcess *)));
export_errorString = i18n("<qt>The external program 'dvips', which was used to export the file, reported an error. "
"You might wish to look at the <strong>document info dialog</strong> which you will "
"find in the File-Menu for a precise error report.</qt>") ;
info->clear(i18n("Export: %1 to PostScript").arg(KShellProcess::quote(dviFile->filename)));
proc->clearArguments();
- QFileInfo finfo(dviFile->filename);
- *proc << QString("cd %1; dvips").arg(KShellProcess::quote(finfo.dirPath(true)));
+ TQFileInfo finfo(dviFile->filename);
+ *proc << TQString("cd %1; dvips").arg(KShellProcess::quote(finfo.dirPath(true)));
if (printer == 0)
*proc << "-z"; // export Hyperlinks
if (options.isEmpty() == false)
*proc << options;
- *proc << QString("%1").arg(KShellProcess::quote(sourceFileName));
- *proc << QString("-o %1").arg(KShellProcess::quote(fileName));
+ *proc << TQString("%1").arg(KShellProcess::quote(sourceFileName));
+ *proc << TQString("-o %1").arg(KShellProcess::quote(fileName));
proc->closeStdin();
if (proc->start(KProcess::NotifyOnExit, KProcess::Stderr) == false) {
kdError(4300) << "dvips failed to start" << endl;
@@ -324,7 +324,7 @@ void dviRenderer::dvips_output_receiver(KProcess *, char *buffer, int buflen)
// Paranoia.
if (buflen < 0)
return;
- QString op = QString::fromLocal8Bit(buffer, buflen);
+ TQString op = TQString::fromLocal8Bit(buffer, buflen);
info->outputReceiver(op);
if (progress != 0)
@@ -343,7 +343,7 @@ void dviRenderer::dvips_terminated(KProcess *sproc)
KMessageBox::error( parentWidget, export_errorString );
if (export_printer != 0)
- export_printer->printFiles( QStringList(export_fileName), true );
+ export_printer->printFiles( TQStringList(export_fileName), true );
// Kill and delete the remaining process, delete the printer, etc.
abortExternalProgramm();
@@ -375,7 +375,7 @@ void dviRenderer::abortExternalProgramm()
proc = 0;
if (export_tmpFileName.isEmpty() != true) {
- unlink(QFile::encodeName(export_tmpFileName)); // That should delete the file.
+ unlink(TQFile::encodeName(export_tmpFileName)); // That should delete the file.
export_tmpFileName = "";
}
diff --git a/kdvi/dviRenderer_prescan.cpp b/kdvi/dviRenderer_prescan.cpp
index 59bdeb25..d0c35bbd 100644
--- a/kdvi/dviRenderer_prescan.cpp
+++ b/kdvi/dviRenderer_prescan.cpp
@@ -24,17 +24,17 @@
#include <kprocess.h>
#include <kprocio.h>
#include <kprogress.h>
-#include <qapplication.h>
-#include <qbitmap.h>
-#include <qdir.h>
-#include <qfileinfo.h>
-#include <qimage.h>
-#include <qpainter.h>
-#include <qpaintdevice.h>
+#include <tqapplication.h>
+#include <tqbitmap.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
+#include <tqimage.h>
+#include <tqpainter.h>
+#include <tqpaintdevice.h>
-extern QPainter foreGroundPaint;
-extern void parse_special_argument(const QString& strg, const char* argument_name, int* variable);
+extern TQPainter foreGroundPaint;
+extern void parse_special_argument(const TQString& strg, const char* argument_name, int* variable);
//#define DEBUG_PRESCAN
@@ -50,16 +50,16 @@ void dviRenderer::prescan_embedPS(char *cp, Q_UINT8 *beginningOfSpecialCommand)
if (strncasecmp(cp, "PSfile=", 7) != 0)
return;
- QString command(cp+7);
+ TQString command(cp+7);
- QString include_command = command.simplifyWhiteSpace();
+ TQString include_command = command.simplifyWhiteSpace();
// The line is supposed to start with "..ile=", and then comes the
// filename. Figure out what the filename is and stow it away. Of
// course, this does not work if the filename contains spaces
// (already the simplifyWhiteSpace() above is wrong). If you have
// files like this, go away.
- QString EPSfilename = include_command;
+ TQString EPSfilename = include_command;
EPSfilename.truncate(EPSfilename.find(' '));
// Strip enclosing quotation marks which are included by some LaTeX
@@ -73,7 +73,7 @@ void dviRenderer::prescan_embedPS(char *cp, Q_UINT8 *beginningOfSpecialCommand)
// The graphic file is later read when the page is rendered.
KMimeType::Ptr const mime_type =
KMimeType::findByFileContent(EPSfilename);
- QString const & mime_type_name = mime_type->name();
+ TQString const & mime_type_name = mime_type->name();
bool const is_ps_file = (mime_type_name == "application/postscript" ||
mime_type_name == "image/x-eps");
@@ -82,7 +82,7 @@ void dviRenderer::prescan_embedPS(char *cp, Q_UINT8 *beginningOfSpecialCommand)
if (!(is_ps_file || is_pdf_file))
return;
- QString originalFName = EPSfilename;
+ TQString originalFName = EPSfilename;
embedPS_progress->setLabel(i18n("Embedding %1").arg(EPSfilename));
qApp->processEvents();
@@ -95,7 +95,7 @@ void dviRenderer::prescan_embedPS(char *cp, Q_UINT8 *beginningOfSpecialCommand)
if (is_pdf_file)
EPSfilename = dviFile->convertPDFtoPS(EPSfilename);
- if (!QFile::exists(EPSfilename)) {
+ if (!TQFile::exists(EPSfilename)) {
// Find the number of the page
Q_UINT32 currentOffset = beginningOfSpecialCommand - dviFile->dvi_Data();
Q_UINT16 page;
@@ -131,20 +131,20 @@ void dviRenderer::prescan_embedPS(char *cp, Q_UINT8 *beginningOfSpecialCommand)
int clip=include_command.find(" clip"); // -1 if clip keyword is not present, >= 0 otherwise
// Generate the PostScript commands to be included
- QString PS = QString("ps: @beginspecial %1 @llx %2 @lly %3 @urx %4 @ury").arg(llx).arg(lly).arg(urx).arg(ury);
+ TQString PS = TQString("ps: @beginspecial %1 @llx %2 @lly %3 @urx %4 @ury").arg(llx).arg(lly).arg(urx).arg(ury);
if (rwi != 0)
- PS.append( QString(" %1 @rwi").arg(rwi) );
+ PS.append( TQString(" %1 @rwi").arg(rwi) );
if (rhi != 0)
- PS.append( QString(" %1 @rhi").arg(rhi) );
+ PS.append( TQString(" %1 @rhi").arg(rhi) );
if (angle != 0)
- PS.append( QString(" %1 @angle").arg(angle) );
+ PS.append( TQString(" %1 @angle").arg(angle) );
if (clip != -1)
PS.append(" @clip");
PS.append( " @setspecial\n" );
- QFile file( EPSfilename );
+ TQFile file( EPSfilename );
if ( file.open( IO_ReadOnly ) ) {
- QTextStream stream( &file );
+ TQTextStream stream( &file );
while ( !stream.atEnd() ) {
PS += stream.readLine().section( '%', 0, 0);
PS += "\n";
@@ -159,7 +159,7 @@ void dviRenderer::prescan_embedPS(char *cp, Q_UINT8 *beginningOfSpecialCommand)
Q_UINT32 lengthOfOldSpecial = command_pointer - beginningOfSpecialCommand;
Q_UINT32 lengthOfNewSpecial = PS.length()+5;
- QMemArray<Q_UINT8> newDVI(dviFile->size_of_file + lengthOfNewSpecial-lengthOfOldSpecial);
+ TQMemArray<Q_UINT8> newDVI(dviFile->size_of_file + lengthOfNewSpecial-lengthOfOldSpecial);
Q_UINT8 *commandPtrSav = command_pointer;
Q_UINT8 *endPtrSav = end_pointer;
@@ -239,13 +239,13 @@ void dviRenderer::prescan_removePageSizeInfo(char *cp, Q_UINT8 *beginningOfSpeci
}
-void dviRenderer::prescan_ParsePapersizeSpecial(const QString& _cp)
+void dviRenderer::prescan_ParsePapersizeSpecial(const TQString& _cp)
{
#ifdef DEBUG_PRESCAN
kdDebug(4300) << "Papersize-Special : papersize" << cp << endl;
#endif
- QString cp = _cp.simplifyWhiteSpace();
+ TQString cp = _cp.simplifyWhiteSpace();
if (cp[0] == '=') {
cp = cp.mid(1);
@@ -258,9 +258,9 @@ void dviRenderer::prescan_ParsePapersizeSpecial(const QString& _cp)
}
-void dviRenderer::prescan_ParseBackgroundSpecial(const QString& cp)
+void dviRenderer::prescan_ParseBackgroundSpecial(const TQString& cp)
{
- QColor col = parseColorSpecification(cp.stripWhiteSpace());
+ TQColor col = parseColorSpecification(cp.stripWhiteSpace());
if (col.isValid())
for(Q_UINT16 page=current_page; page < dviFile->total_pages; page++)
PS_interface->setBackgroundColor(page, col);
@@ -268,9 +268,9 @@ void dviRenderer::prescan_ParseBackgroundSpecial(const QString& cp)
}
-void dviRenderer::prescan_ParseHTMLAnchorSpecial(const QString& _cp)
+void dviRenderer::prescan_ParseHTMLAnchorSpecial(const TQString& _cp)
{
- QString cp = _cp;
+ TQString cp = _cp;
cp.truncate(cp.find('"'));
Length l;
l.setLength_in_inch(currinf.data.dvi_v/(resolutionInDPI*shrinkfactor));
@@ -278,17 +278,17 @@ void dviRenderer::prescan_ParseHTMLAnchorSpecial(const QString& _cp)
}
-void dviRenderer::prescan_ParsePSHeaderSpecial(const QString& cp)
+void dviRenderer::prescan_ParsePSHeaderSpecial(const TQString& cp)
{
#ifdef DEBUG_PRESCAN
kdDebug(4300) << "PostScript-special, header " << cp.latin1() << endl;
#endif
- QString _file = cp;
+ TQString _file = cp;
// If the file is not found in the current directory, use kpsewhich
// to find it.
- if (!QFile::exists(_file)) {
+ if (!TQFile::exists(_file)) {
// Otherwise, use kpsewhich to find the eps file.
KProcIO proc;
proc << "kpsewhich" << cp;
@@ -296,12 +296,12 @@ void dviRenderer::prescan_ParsePSHeaderSpecial(const QString& cp)
proc.readln(_file);
}
- if (QFile::exists(_file))
- PS_interface->PostScriptHeaderString->append( QString(" (%1) run\n").arg(_file) );
+ if (TQFile::exists(_file))
+ PS_interface->PostScriptHeaderString->append( TQString(" (%1) run\n").arg(_file) );
}
-void dviRenderer::prescan_ParsePSBangSpecial(const QString& cp)
+void dviRenderer::prescan_ParsePSBangSpecial(const TQString& cp)
{
#ifdef DEBUG_PRESCAN
kdDebug(4300) << "PostScript-special, literal header " << cp.latin1() << endl;
@@ -313,7 +313,7 @@ void dviRenderer::prescan_ParsePSBangSpecial(const QString& cp)
}
-void dviRenderer::prescan_ParsePSQuoteSpecial(const QString& cp)
+void dviRenderer::prescan_ParsePSQuoteSpecial(const TQString& cp)
{
#ifdef DEBUG_PRESCAN
kdError(4300) << "PostScript-special, literal PostScript " << cp.latin1() << endl;
@@ -321,14 +321,14 @@ void dviRenderer::prescan_ParsePSQuoteSpecial(const QString& cp)
double PS_H = (currinf.data.dvi_h*300.0)/(65536*1200)-300;
double PS_V = (currinf.data.dvi_v*300.0)/1200 - 300;
- PostScriptOutPutString->append( QString(" %1 %2 moveto\n").arg(PS_H).arg(PS_V) );
+ PostScriptOutPutString->append( TQString(" %1 %2 moveto\n").arg(PS_H).arg(PS_V) );
PostScriptOutPutString->append( " @beginspecial @setspecial \n" );
PostScriptOutPutString->append( cp );
PostScriptOutPutString->append( " @endspecial \n" );
}
-void dviRenderer::prescan_ParsePSSpecial(const QString& cp)
+void dviRenderer::prescan_ParsePSSpecial(const TQString& cp)
{
#ifdef DEBUG_PRESCAN
kdDebug(4300) << "PostScript-special, direct PostScript " << cp << endl;
@@ -356,7 +356,7 @@ void dviRenderer::prescan_ParsePSSpecial(const QString& cp)
return; // hyperref tries to work around Distiller bug
if (cp.startsWith("ps:SDict begin [") && cp.endsWith(" pdfmark end")) { // hyperref definition of link/anchor/bookmark/etc
if (cp.contains("/DEST")) { // The PostScript code defines an anchor
- QString anchorName = cp.section('(', 1, 1).section(')', 0, 0);
+ TQString anchorName = cp.section('(', 1, 1).section(')', 0, 0);
Length l;
l.setLength_in_inch(currinf.data.dvi_v/(resolutionInDPI*shrinkfactor));
anchorList[anchorName] = Anchor(current_page+1, l);
@@ -375,37 +375,37 @@ void dviRenderer::prescan_ParsePSSpecial(const QString& cp)
double PS_V = (currinf.data.dvi_v*300.0)/1200 - 300;
if (cp.find("ps::[begin]", 0, false) == 0) {
- PostScriptOutPutString->append( QString(" %1 %2 moveto\n").arg(PS_H).arg(PS_V) );
- PostScriptOutPutString->append( QString(" %1\n").arg(cp.mid(11)) );
+ PostScriptOutPutString->append( TQString(" %1 %2 moveto\n").arg(PS_H).arg(PS_V) );
+ PostScriptOutPutString->append( TQString(" %1\n").arg(cp.mid(11)) );
} else {
if (cp.find("ps::[end]", 0, false) == 0) {
- PostScriptOutPutString->append( QString(" %1\n").arg(cp.mid(9)) );
+ PostScriptOutPutString->append( TQString(" %1\n").arg(cp.mid(9)) );
} else {
if (cp.find("ps::", 0, false) == 0) {
- PostScriptOutPutString->append( QString(" %1\n").arg(cp.mid(4)) );
+ PostScriptOutPutString->append( TQString(" %1\n").arg(cp.mid(4)) );
} else {
- PostScriptOutPutString->append( QString(" %1 %2 moveto\n").arg(PS_H).arg(PS_V) );
- PostScriptOutPutString->append( QString(" %1\n").arg(cp.mid(3)) );
+ PostScriptOutPutString->append( TQString(" %1 %2 moveto\n").arg(PS_H).arg(PS_V) );
+ PostScriptOutPutString->append( TQString(" %1\n").arg(cp.mid(3)) );
}
}
}
}
-void dviRenderer::prescan_ParsePSFileSpecial(const QString& cp)
+void dviRenderer::prescan_ParsePSFileSpecial(const TQString& cp)
{
#ifdef DEBUG_PRESCAN
kdDebug(4300) << "epsf-special: psfile=" << cp <<endl;
#endif
- QString include_command = cp.simplifyWhiteSpace();
+ TQString include_command = cp.simplifyWhiteSpace();
// The line is supposed to start with "..ile=", and then comes the
// filename. Figure out what the filename is and stow it away. Of
// course, this does not work if the filename contains spaces
// (already the simplifyWhiteSpace() above is wrong). If you have
// files like this, go away.
- QString EPSfilename = include_command;
+ TQString EPSfilename = include_command;
EPSfilename.truncate(EPSfilename.find(' '));
// Strip enclosing quotation marks which are included by some LaTeX
@@ -418,7 +418,7 @@ void dviRenderer::prescan_ParsePSFileSpecial(const QString& cp)
// If the file name ends in 'png', 'gif', 'jpg' or 'jpeg', we assume
// that this is NOT a PostScript file, and we exit here.
- QString ending = EPSfilename.section('.', -1).lower();
+ TQString ending = EPSfilename.section('.', -1).lower();
if ((ending == "png") || (ending == "gif") || (ending == "jpg") || (ending == "jpeg")) {
dviFile->numberOfExternalNONPSFiles++;
return;
@@ -456,25 +456,25 @@ void dviRenderer::prescan_ParsePSFileSpecial(const QString& cp)
int clip=include_command.find(" clip"); // -1 if clip keyword is not present, >= 0 otherwise
- if (QFile::exists(EPSfilename)) {
+ if (TQFile::exists(EPSfilename)) {
double PS_H = (currinf.data.dvi_h*300.0)/(65536*1200)-300;
double PS_V = (currinf.data.dvi_v*300.0)/1200 - 300;
- PostScriptOutPutString->append( QString(" %1 %2 moveto\n").arg(PS_H).arg(PS_V) );
+ PostScriptOutPutString->append( TQString(" %1 %2 moveto\n").arg(PS_H).arg(PS_V) );
PostScriptOutPutString->append( "@beginspecial " );
- PostScriptOutPutString->append( QString(" %1 @llx").arg(llx) );
- PostScriptOutPutString->append( QString(" %1 @lly").arg(lly) );
- PostScriptOutPutString->append( QString(" %1 @urx").arg(urx) );
- PostScriptOutPutString->append( QString(" %1 @ury").arg(ury) );
+ PostScriptOutPutString->append( TQString(" %1 @llx").arg(llx) );
+ PostScriptOutPutString->append( TQString(" %1 @lly").arg(lly) );
+ PostScriptOutPutString->append( TQString(" %1 @urx").arg(urx) );
+ PostScriptOutPutString->append( TQString(" %1 @ury").arg(ury) );
if (rwi != 0)
- PostScriptOutPutString->append( QString(" %1 @rwi").arg(rwi) );
+ PostScriptOutPutString->append( TQString(" %1 @rwi").arg(rwi) );
if (rhi != 0)
- PostScriptOutPutString->append( QString(" %1 @rhi").arg(rhi) );
+ PostScriptOutPutString->append( TQString(" %1 @rhi").arg(rhi) );
if (angle != 0)
- PostScriptOutPutString->append( QString(" %1 @angle").arg(angle) );
+ PostScriptOutPutString->append( TQString(" %1 @angle").arg(angle) );
if (clip != -1)
PostScriptOutPutString->append(" @clip");
PostScriptOutPutString->append( " @setspecial \n" );
- PostScriptOutPutString->append( QString(" (%1) run\n").arg(EPSfilename) );
+ PostScriptOutPutString->append( TQString(" (%1) run\n").arg(EPSfilename) );
PostScriptOutPutString->append( "@endspecial \n" );
}
@@ -482,7 +482,7 @@ void dviRenderer::prescan_ParsePSFileSpecial(const QString& cp)
}
-void dviRenderer::prescan_ParseSourceSpecial(const QString& cp)
+void dviRenderer::prescan_ParseSourceSpecial(const TQString& cp)
{
// if no rendering takes place, i.e. when the DVI file is first
// loaded, generate a DVI_SourceFileAnchor. These anchors are used
@@ -495,8 +495,8 @@ void dviRenderer::prescan_ParseSourceSpecial(const QString& cp)
if (!cp.at(j).isNumber())
break;
Q_UINT32 sourceLineNumber = cp.left(j).toUInt();
- QFileInfo fi1(dviFile->filename);
- QString sourceFileName = QFileInfo(fi1.dir(), cp.mid(j).stripWhiteSpace()).absFilePath();
+ TQFileInfo fi1(dviFile->filename);
+ TQString sourceFileName = TQFileInfo(fi1.dir(), cp.mid(j).stripWhiteSpace()).absFilePath();
Length l;
l.setLength_in_inch(currinf.data.dvi_v/(resolutionInDPI*shrinkfactor));
DVI_SourceFileAnchor sfa(sourceFileName, sourceLineNumber, current_page+1, l);
@@ -506,7 +506,7 @@ void dviRenderer::prescan_ParseSourceSpecial(const QString& cp)
void dviRenderer::prescan_parseSpecials(char *cp, Q_UINT8 *)
{
- QString special_command(cp);
+ TQString special_command(cp);
// Now to those specials which are only interpreted during the
// prescan phase, and NOT during rendering.
diff --git a/kdvi/dviWidget.cpp b/kdvi/dviWidget.cpp
index 8475af92..ddcac8e6 100644
--- a/kdvi/dviWidget.cpp
+++ b/kdvi/dviWidget.cpp
@@ -22,13 +22,13 @@
#include "renderedDviPagePixmap.h"
#include "selection.h"
-DVIWidget::DVIWidget(QWidget* parent, PageView* sv, DocumentPageCache* cache, const char* name)
+DVIWidget::DVIWidget(TQWidget* parent, PageView* sv, DocumentPageCache* cache, const char* name)
: DocumentWidget(parent, sv, cache, name)
{
}
-void DVIWidget::mousePressEvent(QMouseEvent* e)
+void DVIWidget::mousePressEvent(TQMouseEvent* e)
{
// pageNr == 0 indicated an invalid page (e.g. page number not yet set)
if (pageNr == 0)
@@ -60,7 +60,7 @@ void DVIWidget::mousePressEvent(QMouseEvent* e)
return;
}
// Remember the closest source link
- QPoint center = pageData->sourceHyperLinkList[i].box.center();
+ TQPoint center = pageData->sourceHyperLinkList[i].box.center();
int dx = center.x() - e->pos().x();
int dy = center.y() - e->pos().y();
if (dx*dx + dy*dy < minimum || i == 0)
@@ -79,7 +79,7 @@ void DVIWidget::mousePressEvent(QMouseEvent* e)
}
-void DVIWidget::mouseMoveEvent(QMouseEvent* e)
+void DVIWidget::mouseMoveEvent(TQMouseEvent* e)
{
// pageNr == 0 indicated an invalid page (e.g. page number not yet set)
if (pageNr == 0)
@@ -105,7 +105,7 @@ void DVIWidget::mouseMoveEvent(QMouseEvent* e)
// The macro-package srcltx gives a special like "src:99 test.tex"
// while MikTeX gives "src:99test.tex". KDVI tries
// to understand both.
- QString cp = pageData->sourceHyperLinkList[i].linkText;
+ TQString cp = pageData->sourceHyperLinkList[i].linkText;
int max = cp.length();
int i;
for(i=0; i<max; i++)
diff --git a/kdvi/dviWidget.h b/kdvi/dviWidget.h
index 7c008d5a..5867b39e 100644
--- a/kdvi/dviWidget.h
+++ b/kdvi/dviWidget.h
@@ -14,9 +14,9 @@
class PageView;
class DocumentPageCache;
-class QPaintEvent;
-class QMouseEvent;
-class QWidget;
+class TQPaintEvent;
+class TQMouseEvent;
+class TQWidget;
class textSelection;
@@ -25,14 +25,14 @@ class DVIWidget : public DocumentWidget
Q_OBJECT
public:
- DVIWidget(QWidget* parent, PageView* sv, DocumentPageCache* cache, const char* name);
+ DVIWidget(TQWidget* parent, PageView* sv, DocumentPageCache* cache, const char* name);
signals:
- void SRCLink(const QString&, QMouseEvent* e, DocumentWidget*);
+ void SRCLink(const TQString&, TQMouseEvent* e, DocumentWidget*);
private:
- virtual void mousePressEvent(QMouseEvent* e);
- virtual void mouseMoveEvent(QMouseEvent* e);
+ virtual void mousePressEvent(TQMouseEvent* e);
+ virtual void mouseMoveEvent(TQMouseEvent* e);
};
#endif
diff --git a/kdvi/dvisourcesplitter.cpp b/kdvi/dvisourcesplitter.cpp
index a052a10a..e0d17aa1 100644
--- a/kdvi/dvisourcesplitter.cpp
+++ b/kdvi/dvisourcesplitter.cpp
@@ -8,7 +8,7 @@
#include <config.h>
-#include <qdir.h>
+#include <tqdir.h>
#include <kdebug.h>
#include "dvisourcesplitter.h"
@@ -16,9 +16,9 @@
//#define DEBUG_SOURCESPLITTER
-DVI_SourceFileSplitter::DVI_SourceFileSplitter(const QString &srclink, const QString &dviFile)
+DVI_SourceFileSplitter::DVI_SourceFileSplitter(const TQString &srclink, const TQString &dviFile)
{
- QString filepart = srclink, linepart;
+ TQString filepart = srclink, linepart;
bool possibleNumberMixUp = false; //if sourcefilename starts with a number
//then there could be a mix up, i.e. src:123file.tex
//line 123 and file.tex or line 12 and 3file.tex?
@@ -48,11 +48,11 @@ DVI_SourceFileSplitter::DVI_SourceFileSplitter(const QString &srclink, const QSt
#endif
//test if the file exists
- m_fileInfo.setFile(QFileInfo(dviFile).dir(true), filepart);
+ m_fileInfo.setFile(TQFileInfo(dviFile).dir(true), filepart);
bool fiExists = m_fileInfo.exists();
//if it doesn't exist, but adding ".tex"
- if ( !fiExists && QFileInfo(m_fileInfo.absFilePath() + ".tex").exists() )
+ if ( !fiExists && TQFileInfo(m_fileInfo.absFilePath() + ".tex").exists() )
m_fileInfo.setFile(m_fileInfo.absFilePath() + ".tex");
//if that doesn't help either, perhaps the file started with a
@@ -60,8 +60,8 @@ DVI_SourceFileSplitter::DVI_SourceFileSplitter(const QString &srclink, const QSt
//one by one (also try to add .tex repeatedly)
if ( possibleNumberMixUp && !fiExists )
{
- QFileInfo tempInfo(m_fileInfo);
- QString tempFileName = tempInfo.fileName();
+ TQFileInfo tempInfo(m_fileInfo);
+ TQString tempFileName = tempInfo.fileName();
Q_UINT32 index, maxindex = linepart.length();
bool found = false;
for ( index = 1; index < maxindex; ++index)
diff --git a/kdvi/dvisourcesplitter.h b/kdvi/dvisourcesplitter.h
index f0028bf2..5253ce4a 100644
--- a/kdvi/dvisourcesplitter.h
+++ b/kdvi/dvisourcesplitter.h
@@ -10,24 +10,24 @@
#ifndef DVI_SOURCEFILESPLITTER_H
#define DVI_SOURCEFILESPLITTER_H
-#include <qfileinfo.h>
+#include <tqfileinfo.h>
-class QString;
+class TQString;
class DVI_SourceFileSplitter
{
public:
- DVI_SourceFileSplitter(const QString & scrlink, const QString & dviFile);
+ DVI_SourceFileSplitter(const TQString & scrlink, const TQString & dviFile);
- QString fileName() { return m_fileInfo.fileName(); }
- QString filePath() { return m_fileInfo.absFilePath(); }
+ TQString fileName() { return m_fileInfo.fileName(); }
+ TQString filePath() { return m_fileInfo.absFilePath(); }
bool fileExists() { return m_fileInfo.exists(); }
Q_UINT32 line() { return m_line; }
private:
- QFileInfo m_fileInfo;
+ TQFileInfo m_fileInfo;
Q_UINT32 m_line;
bool m_exists;
};
diff --git a/kdvi/fontEncoding.cpp b/kdvi/fontEncoding.cpp
index 0ca83372..9f2d4de2 100644
--- a/kdvi/fontEncoding.cpp
+++ b/kdvi/fontEncoding.cpp
@@ -10,14 +10,14 @@
#include <kdebug.h>
#include <kprocio.h>
-#include <qfile.h>
-#include <qstringlist.h>
+#include <tqfile.h>
+#include <tqstringlist.h>
#include "fontEncoding.h"
//#define DEBUG_FONTENC
-fontEncoding::fontEncoding(const QString &encName)
+fontEncoding::fontEncoding(const TQString &encName)
{
#ifdef DEBUG_FONTENC
kdDebug(4300) << "fontEncoding( " << encName << " )" << endl;
@@ -26,7 +26,7 @@ fontEncoding::fontEncoding(const QString &encName)
_isValid = false;
// Use kpsewhich to find the encoding file.
KProcIO proc;
- QString encFileName;
+ TQString encFileName;
proc << "kpsewhich" << encName;
if (proc.start(KProcess::Block) == false) {
kdError(4300) << "fontEncoding::fontEncoding(...): kpsewhich could not be started." << endl;
@@ -36,7 +36,7 @@ fontEncoding::fontEncoding(const QString &encName)
encFileName = encFileName.stripWhiteSpace();
if (encFileName.isEmpty()) {
- kdError(4300) << QString("fontEncoding::fontEncoding(...): The file '%1' could not be found by kpsewhich.").arg(encName) << endl;
+ kdError(4300) << TQString("fontEncoding::fontEncoding(...): The file '%1' could not be found by kpsewhich.").arg(encName) << endl;
return;
}
@@ -44,12 +44,12 @@ fontEncoding::fontEncoding(const QString &encName)
kdDebug(4300) << "FileName of the encoding: " << encFileName << endl;
#endif
- QFile file( encFileName );
+ TQFile file( encFileName );
if ( file.open( IO_ReadOnly ) ) {
- // Read the file (excluding comments) into the QString variable
+ // Read the file (excluding comments) into the TQString variable
// 'fileContent'
- QTextStream stream( &file );
- QString fileContent;
+ TQTextStream stream( &file );
+ TQString fileContent;
while ( !stream.atEnd() )
fileContent += stream.readLine().section('%', 0, 0); // line of text excluding '\n' until first '%'-sign
file.close();
@@ -63,10 +63,10 @@ fontEncoding::fontEncoding(const QString &encName)
#endif
fileContent = fileContent.section('[', 1, 1).section(']',0,0).simplifyWhiteSpace();
- QStringList glyphNameList = QStringList::split( '/', fileContent );
+ TQStringList glyphNameList = TQStringList::split( '/', fileContent );
int i = 0;
- for ( QStringList::Iterator it = glyphNameList.begin(); (it != glyphNameList.end())&&(i<256); ++it ) {
+ for ( TQStringList::Iterator it = glyphNameList.begin(); (it != glyphNameList.end())&&(i<256); ++it ) {
glyphNameVector[i] = (*it).simplifyWhiteSpace();
#ifdef DEBUG_FONTENC
kdDebug(4300) << i << ": " << glyphNameVector[i] << endl;
@@ -76,7 +76,7 @@ fontEncoding::fontEncoding(const QString &encName)
for(; i<256; i++)
glyphNameVector[i] = ".notdef";
} else {
- kdError(4300) << QString("fontEncoding::fontEncoding(...): The file '%1' could not be opened.").arg(encFileName) << endl;
+ kdError(4300) << TQString("fontEncoding::fontEncoding(...): The file '%1' could not be opened.").arg(encFileName) << endl;
return;
}
diff --git a/kdvi/fontEncoding.h b/kdvi/fontEncoding.h
index b5ca1344..8ce0d18b 100644
--- a/kdvi/fontEncoding.h
+++ b/kdvi/fontEncoding.h
@@ -9,7 +9,7 @@
#ifndef _FONTENCODING_H
#define _FONTENCODING_H
-#include <qstring.h>
+#include <tqstring.h>
/**
@@ -63,15 +63,15 @@ class fontEncoding {
// located, opened or parsed, errors are printed using the kdError()
// channel, and the array glyphNameVector will contain empty
// strings.
- fontEncoding(const QString &encName);
+ fontEncoding(const TQString &encName);
// Full name of the encoding, as read from the encoding file
- QString encodingFullName;
+ TQString encodingFullName;
// List of 256 glyph names. The name can be '.notdef' to indicate
// that a certain position is left open, or empty, if the encoding
// file did not contain 256 characters or could not be properly read
- QString glyphNameVector[256];
+ TQString glyphNameVector[256];
// Returns 'true' if the encoding file was found and could
// successfully be loaded.
diff --git a/kdvi/fontEncodingPool.cpp b/kdvi/fontEncodingPool.cpp
index 0100ee90..59b38167 100644
--- a/kdvi/fontEncodingPool.cpp
+++ b/kdvi/fontEncodingPool.cpp
@@ -16,7 +16,7 @@ fontEncodingPool::fontEncodingPool()
}
-fontEncoding *fontEncodingPool::findByName(const QString &name)
+fontEncoding *fontEncodingPool::findByName(const TQString &name)
{
fontEncoding *ptr = dictionary.find( name );
diff --git a/kdvi/fontEncodingPool.h b/kdvi/fontEncodingPool.h
index b875bf52..05736137 100644
--- a/kdvi/fontEncodingPool.h
+++ b/kdvi/fontEncodingPool.h
@@ -11,19 +11,19 @@
#include "fontEncoding.h"
-#include <qdict.h>
+#include <tqdict.h>
-class QString;
+class TQString;
class fontEncodingPool {
public:
fontEncodingPool();
- fontEncoding *findByName(const QString &name);
+ fontEncoding *findByName(const TQString &name);
private:
- QDict<fontEncoding> dictionary;
+ TQDict<fontEncoding> dictionary;
};
#endif
diff --git a/kdvi/fontMap.cpp b/kdvi/fontMap.cpp
index cf5fa841..66d230d7 100644
--- a/kdvi/fontMap.cpp
+++ b/kdvi/fontMap.cpp
@@ -10,7 +10,7 @@
#include <kdebug.h>
#include <kprocio.h>
-#include <qfile.h>
+#include <tqfile.h>
#include "fontMap.h"
@@ -38,7 +38,7 @@ fontMap::fontMap()
return;
}
- QString map_fileName;
+ TQString map_fileName;
proc.readln(map_fileName);
map_fileName = map_fileName.stripWhiteSpace();
if (map_fileName.isEmpty()) {
@@ -59,19 +59,19 @@ fontMap::fontMap()
}
}
- QFile file( map_fileName );
+ TQFile file( map_fileName );
if ( file.open( IO_ReadOnly ) ) {
- QTextStream stream( &file );
- QString line;
+ TQTextStream stream( &file );
+ TQString line;
while ( !stream.atEnd() ) {
line = stream.readLine().simplifyWhiteSpace();
if (line.at(0) == '%')
continue;
- QString TeXName = line.section(' ', 0, 0);
- QString FullName = line.section(' ', 1, 1);
- QString fontFileName = line.section('<', -1).stripWhiteSpace().section(' ', 0, 0);
- QString encodingName = line.section('<', -2, -2).stripWhiteSpace().section(' ', 0, 0);
+ TQString TeXName = line.section(' ', 0, 0);
+ TQString FullName = line.section(' ', 1, 1);
+ TQString fontFileName = line.section('<', -1).stripWhiteSpace().section(' ', 0, 0);
+ TQString encodingName = line.section('<', -2, -2).stripWhiteSpace().section(' ', 0, 0);
// It seems that sometimes the encoding is prepended by the
// letter '[', which we ignore
if ((!encodingName.isEmpty()) && (encodingName[0] == '['))
@@ -81,7 +81,7 @@ fontMap::fontMap()
int i = line.find("SlantFont");
if (i >= 0) {
bool ok;
- slant = line.left(i).section(' ', -1, -1 ,QString::SectionSkipEmpty).toDouble(&ok);
+ slant = line.left(i).section(' ', -1, -1 ,TQString::SectionSkipEmpty).toDouble(&ok);
if (ok == false)
slant = 0.0;
}
@@ -94,15 +94,15 @@ fontMap::fontMap()
if (encodingName.endsWith(".enc"))
entry.fontEncoding = encodingName;
else
- entry.fontEncoding = QString::null;
+ entry.fontEncoding = TQString::null;
}
file.close();
} else
- kdError(4300) << QString("fontMap::fontMap(): The file '%1' could not be opened.").arg(map_fileName) << endl;
+ kdError(4300) << TQString("fontMap::fontMap(): The file '%1' could not be opened.").arg(map_fileName) << endl;
#ifdef DEBUG_FONTMAP
kdDebug(4300) << "FontMap file parsed. Results:" << endl;
- QMap<QString, fontMapEntry>::Iterator it;
+ TQMap<TQString, fontMapEntry>::Iterator it;
for ( it = fontMapEntries.begin(); it != fontMapEntries.end(); ++it )
kdDebug(4300) << "TeXName: " << it.key()
<< ", FontFileName=" << it.data().fontFileName
@@ -113,42 +113,42 @@ fontMap::fontMap()
}
-const QString &fontMap::findFileName(const QString &TeXName)
+const TQString &fontMap::findFileName(const TQString &TeXName)
{
- QMap<QString, fontMapEntry>::Iterator it = fontMapEntries.find(TeXName);
+ TQMap<TQString, fontMapEntry>::Iterator it = fontMapEntries.find(TeXName);
if (it != fontMapEntries.end())
return it.data().fontFileName;
else
- return QString::null;
+ return TQString::null;
}
-const QString &fontMap::findFontName(const QString &TeXName)
+const TQString &fontMap::findFontName(const TQString &TeXName)
{
- QMap<QString, fontMapEntry>::Iterator it = fontMapEntries.find(TeXName);
+ TQMap<TQString, fontMapEntry>::Iterator it = fontMapEntries.find(TeXName);
if (it != fontMapEntries.end())
return it.data().fullFontName;
else
- return QString::null;
+ return TQString::null;
}
-const QString &fontMap::findEncoding(const QString &TeXName)
+const TQString &fontMap::findEncoding(const TQString &TeXName)
{
- QMap<QString, fontMapEntry>::Iterator it = fontMapEntries.find(TeXName);
+ TQMap<TQString, fontMapEntry>::Iterator it = fontMapEntries.find(TeXName);
if (it != fontMapEntries.end())
return it.data().fontEncoding;
else
- return QString::null;
+ return TQString::null;
}
-double fontMap::findSlant(const QString &TeXName)
+double fontMap::findSlant(const TQString &TeXName)
{
- QMap<QString, fontMapEntry>::Iterator it = fontMapEntries.find(TeXName);
+ TQMap<TQString, fontMapEntry>::Iterator it = fontMapEntries.find(TeXName);
if (it != fontMapEntries.end())
return it.data().slant;
diff --git a/kdvi/fontMap.h b/kdvi/fontMap.h
index 55e44082..3e0177a8 100644
--- a/kdvi/fontMap.h
+++ b/kdvi/fontMap.h
@@ -9,8 +9,8 @@
#ifndef _FONTMAP_H
#define _FONTMAP_H
-#include <qmap.h>
-#include <qstring.h>
+#include <tqmap.h>
+#include <tqstring.h>
/**
* This class represents one line of a font map file, and contains
@@ -25,18 +25,18 @@ class fontMapEntry {
// File name of the font WITHOUT the path. The full path name must
// be looked by using the kpathsea library, e.g. by means of the
// kpsewhich command. A valid entry would be 'ubkd8a.pfb'
- QString fontFileName;
+ TQString fontFileName;
// This string contains the full name of the font,
// e.g. 'URWBookmanL-DemiBold'
- QString fullFontName;
+ TQString fullFontName;
// If the font requires an encoding (see fontEncoding.h for an
// explanation), this string is not empty and contains the name of
// the encoding, e.g. '8r'. The path of the associated encoding file
// (on the author's machine: /usr/share/texmf/dvips/psnfss/8r.enc)
// must be looked up using the kpsewhich comman.
- QString fontEncoding;
+ TQString fontEncoding;
// Some fonts need to be slanted, and the font map file defines by
// how much. This field is set to 0.0 if no slanting is specified in
@@ -92,27 +92,27 @@ class fontMap {
/** find the name of a font file (e.g. 'ubkd8a.pfb') from a TeX font
name (e.g. 'rpbkd'). This method return a reference to
- QString::null if the font could not be found. */
- const QString &findFileName(const QString &TeXName);
+ TQString::null if the font could not be found. */
+ const TQString &findFileName(const TQString &TeXName);
/** find the name of a font (e.g. 'URWBookmanL-DemiBold') from a TeX
font name (e.g. 'rpbkd'). This method return a reference to
- QString::null if the font could not be found. */
- const QString &findFontName(const QString &TeXName);
+ TQString::null if the font could not be found. */
+ const TQString &findFontName(const TQString &TeXName);
/** find the name of an encoding file for a font (e.g. '8r') from a
TeX font name (e.g. 'rpbkd'). This method return a reference to
- QString::null if the font could not be found. */
- const QString &findEncoding(const QString &TeXName);
+ TQString::null if the font could not be found. */
+ const TQString &findEncoding(const TQString &TeXName);
/** This method finds the slant of a font. Returns 0.0 if no slant
was defined. */
- double findSlant(const QString &TeXName);
+ double findSlant(const TQString &TeXName);
private:
/** This member maps TeX font names mapEntry classes that contain
the font's filenames, full font names and encodings. */
- QMap<QString, fontMapEntry> fontMapEntries;
+ TQMap<TQString, fontMapEntry> fontMapEntries;
};
#endif // ifndef _FONTMAP_H
diff --git a/kdvi/fontpool.cpp b/kdvi/fontpool.cpp
index adec497b..fecd2b0b 100644
--- a/kdvi/fontpool.cpp
+++ b/kdvi/fontpool.cpp
@@ -13,10 +13,10 @@
#include <kprocess.h>
#include <kprocio.h>
#include <math.h>
-#include <qapplication.h>
-#include <qfile.h>
-#include <qimage.h>
-#include <qpainter.h>
+#include <tqapplication.h>
+#include <tqfile.h>
+#include <tqimage.h>
+#include <tqpainter.h>
#include <stdlib.h>
#include "fontpool.h"
@@ -35,7 +35,7 @@
//const int MFResolutions[] = { 300, 600, 1200 };
#ifdef PERFORMANCE_MEASUREMENT
-QTime fontPoolTimer;
+TQTime fontPoolTimer;
bool fontPoolTimerFlag;
#endif
@@ -60,7 +60,7 @@ fontPool::fontPool()
displayResolution_in_dpi = 100.0; // A not-too-bad-default
useFontHints = true;
CMperDVIunit = 0;
- extraSearchPath = QString::null;
+ extraSearchPath = TQString::null;
fontList.setAutoDelete(true);
@@ -78,14 +78,14 @@ fontPool::fontPool()
// of QT at compile and runtime or the availability of the XFt
// extension, alpha channels are either supported, or silently
// converted to 1-bit masks.
- QImage start(1, 1, 32); // Generate a 1x1 image, black with alpha=0x10
+ TQImage start(1, 1, 32); // Generate a 1x1 image, black with alpha=0x10
start.setAlphaBuffer(true);
Q_UINT32 *destScanLine = (Q_UINT32 *)start.scanLine(0);
*destScanLine = 0x80000000;
- QPixmap intermediate(start);
- QPixmap dest(1,1);
+ TQPixmap intermediate(start);
+ TQPixmap dest(1,1);
dest.fill(Qt::white);
- QPainter paint( &dest );
+ TQPainter paint( &dest );
paint.drawPixmap(0, 0, intermediate);
paint.end();
start = dest.convertToImage().convertDepth(32);
@@ -93,12 +93,12 @@ fontPool::fontPool()
if ((result == 0xff) || (result == 0x00)) {
#ifdef DEBUG_FONTPOOL
- kdDebug(4300) << "fontPool::fontPool(): QPixmap does not support the alpha channel" << endl;
+ kdDebug(4300) << "fontPool::fontPool(): TQPixmap does not support the alpha channel" << endl;
#endif
QPixmapSupportsAlpha = false;
} else {
#ifdef DEBUG_FONTPOOL
- kdDebug(4300) << "fontPool::fontPool(): QPixmap supports the alpha channel" << endl;
+ kdDebug(4300) << "fontPool::fontPool(): TQPixmap supports the alpha channel" << endl;
#endif
QPixmapSupportsAlpha = true;
}
@@ -137,7 +137,7 @@ void fontPool::setParameters( bool _useFontHints )
}
-TeXFontDefinition* fontPool::appendx(const QString& fontname, Q_UINT32 checksum, Q_UINT32 scale, double enlargement)
+TeXFontDefinition* fontPool::appendx(const TQString& fontname, Q_UINT32 checksum, Q_UINT32 scale, double enlargement)
{
// Reuse font if possible: check if a font with that name and
// natural resolution is already in the fontpool, and use that, if
@@ -173,20 +173,20 @@ TeXFontDefinition* fontPool::appendx(const QString& fontname, Q_UINT32 checksum,
}
-QString fontPool::status()
+TQString fontPool::status()
{
#ifdef DEBUG_FONTPOOL
kdDebug(4300) << "fontPool::status() called" << endl;
#endif
- QString text;
- QStringList tmp;
+ TQString text;
+ TQStringList tmp;
if (fontList.isEmpty())
return i18n("The fontlist is currently empty.");
text.append("<table WIDTH=\"100%\" NOSAVE >");
- text.append( QString("<tr><td><b>%1</b></td> <td><b>%2</b></td> <td><b>%3</b></td> <td><b>%4</b> <td><b>%5</b></td> <td><b>%6</b></td></tr>")
+ text.append( TQString("<tr><td><b>%1</b></td> <td><b>%2</b></td> <td><b>%3</b></td> <td><b>%4</b> <td><b>%5</b></td> <td><b>%6</b></td></tr>")
.arg(i18n("TeX Name"))
.arg(i18n("Family"))
.arg(i18n("Zoom"))
@@ -196,7 +196,7 @@ QString fontPool::status()
TeXFontDefinition *fontp = fontList.first();
while ( fontp != 0 ) {
- QString errMsg, encoding;
+ TQString errMsg, encoding;
if (!(fontp->flags & TeXFontDefinition::FONT_VIRTUAL)) {
#ifdef HAVE_FREETYPE
@@ -209,7 +209,7 @@ QString fontPool::status()
}
#ifdef HAVE_FREETYPE
- tmp << QString ("<tr><td>%1</td> <td>%2</td> <td>%3%</td> <td>%4</td> <td>%5</td> <td>%6</td></tr>")
+ tmp << TQString ("<tr><td>%1</td> <td>%2</td> <td>%3%</td> <td>%4</td> <td>%5</td> <td>%6</td></tr>")
.arg(fontp->fontname)
.arg(fontp->getFullFontName())
.arg((int)(fontp->enlargement*100 + 0.5))
@@ -252,7 +252,7 @@ bool fontPool::areFontsLocated()
void fontPool::locateFonts()
{
- kpsewhichOutput = QString::null;
+ kpsewhichOutput = TQString::null;
// First, we try and find those fonts which exist on disk
// already. If virtual fonts are found, they will add new fonts to
@@ -280,7 +280,7 @@ void fontPool::locateFonts()
// present an error message to the user.
if (!areFontsLocated()) {
markFontsAsLocated();
- QString details = QString("<qt><p><b>PATH:</b> %1</p>%2</qt>").arg(getenv("PATH")).arg(kpsewhichOutput);
+ TQString details = TQString("<qt><p><b>PATH:</b> %1</p>%2</qt>").arg(getenv("PATH")).arg(kpsewhichOutput);
KMessageBox::detailedError( 0, i18n("<qt><p>KDVI was not able to locate all the font files "
"which are necessary to display the current DVI file. "
"Your document might be unreadable.</p></qt>"),
@@ -298,14 +298,14 @@ void fontPool::locateFonts(bool makePK, bool locateTFMonly, bool *virtualFontsFo
// enabled globally.
emit setStatusBarText(i18n("Locating fonts..."));
- QStringList shellProcessCmdLine;
+ TQStringList shellProcessCmdLine;
KProcIO kpsewhichIO;
// If PK fonts are generated, the kpsewhich command will re-route
// the output of MetaFont into its stderr. Here we make sure this
// output is intercepted and parsed.
- qApp->connect(&kpsewhichIO, SIGNAL(receivedStderr(KProcess *, char *, int)),
- this, SLOT(mf_output_receiver(KProcess *, char *, int)));
+ qApp->connect(&kpsewhichIO, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)),
+ this, TQT_SLOT(mf_output_receiver(KProcess *, char *, int)));
kpsewhichIO.setUseShell(true);
@@ -313,8 +313,8 @@ void fontPool::locateFonts(bool makePK, bool locateTFMonly, bool *virtualFontsFo
// Now generate the command line for the kpsewhich
// program. Unfortunately, this can be rather long and involved...
shellProcessCmdLine += "kpsewhich";
- shellProcessCmdLine += QString("--dpi 1200");
- shellProcessCmdLine += QString("--mode lexmarks");
+ shellProcessCmdLine += TQString("--dpi 1200");
+ shellProcessCmdLine += TQString("--mode lexmarks");
// Disable automatic pk-font generation.
if (makePK == true)
@@ -330,17 +330,17 @@ void fontPool::locateFonts(bool makePK, bool locateTFMonly, bool *virtualFontsFo
numFontsInJob++;
if (locateTFMonly == true)
- shellProcessCmdLine += KShellProcess::quote(QString("%1.tfm").arg(fontp->fontname));
+ shellProcessCmdLine += KShellProcess::quote(TQString("%1.tfm").arg(fontp->fontname));
else {
#ifdef HAVE_FREETYPE
if (FreeType_could_be_loaded == true) {
- const QString &filename = fontsByTeXName.findFileName(fontp->fontname);
+ const TQString &filename = fontsByTeXName.findFileName(fontp->fontname);
if (!filename.isEmpty())
- shellProcessCmdLine += KShellProcess::quote(QString("%1").arg(filename));
+ shellProcessCmdLine += KShellProcess::quote(TQString("%1").arg(filename));
}
#endif
- shellProcessCmdLine += KShellProcess::quote(QString("%1.vf").arg(fontp->fontname));
- shellProcessCmdLine += KShellProcess::quote(QString("%1.1200pk").arg(fontp->fontname));
+ shellProcessCmdLine += KShellProcess::quote(TQString("%1.vf").arg(fontp->fontname));
+ shellProcessCmdLine += KShellProcess::quote(TQString("%1.1200pk").arg(fontp->fontname));
}
}
fontp=fontList.next();
@@ -352,18 +352,18 @@ void fontPool::locateFonts(bool makePK, bool locateTFMonly, bool *virtualFontsFo
progress.setTotalSteps(numFontsInJob, &kpsewhichIO);
// Now run... kpsewhich. In case of error, kick up a fuss.
- MetafontOutput = QString::null;
+ MetafontOutput = TQString::null;
kpsewhichOutput += "<p><b>"+shellProcessCmdLine.join(" ")+"</b></p>";
kpsewhichIO << shellProcessCmdLine;
- QString importanceOfKPSEWHICH = i18n("<p>KDVI relies on the <b>kpsewhich</b> program to locate font files "
+ TQString importanceOfKPSEWHICH = i18n("<p>KDVI relies on the <b>kpsewhich</b> program to locate font files "
"on your hard disc and to generate PK fonts, if necessary.</p>");
if (kpsewhichIO.start(KProcess::NotifyOnExit, false) == false) {
- QString msg = i18n( "<p>The shell process for the kpsewhich program could not "
+ TQString msg = i18n( "<p>The shell process for the kpsewhich program could not "
"be started. Consequently, some font files could not be found, "
"and your document might by unreadable. If this error is reproducable "
"please report the issue to the KDVI developers using the 'Help' menu.<p>" );
- QApplication::restoreOverrideCursor();
- KMessageBox::error( 0, QString("<qt>%1%2</qt>").arg(importanceOfKPSEWHICH).arg(msg),
+ TQApplication::restoreOverrideCursor();
+ KMessageBox::error( 0, TQString("<qt>%1%2</qt>").arg(importanceOfKPSEWHICH).arg(msg),
i18n("Problem locating fonts - KDVI") );
markFontsAsLocated();
return;
@@ -390,8 +390,8 @@ void fontPool::locateFonts(bool makePK, bool locateTFMonly, bool *virtualFontsFo
if (kpsewhichIO.exitStatus() == 127) {
// An exit status of 127 means that the kpsewhich executable
// could not be found. We give extra explanation then.
- QApplication::restoreOverrideCursor();
- QString msg = i18n( "<p>There were problems running kpsewhich. As a result, "
+ TQApplication::restoreOverrideCursor();
+ TQString msg = i18n( "<p>There were problems running kpsewhich. As a result, "
"some font files could not be located, and your document might be unreadable.</p>"
"<p><b>Possible reason:</b> The kpsewhich program is perhaps not installed on your system, or it "
"cannot be found in the current search path.</p>"
@@ -399,9 +399,9 @@ void fontPool::locateFonts(bool makePK, bool locateTFMonly, bool *virtualFontsFo
"typesetting system. If TeX is not installed on your system, you could install the TeTeX distribution (www.tetex.org). "
"If you are sure that TeX is installed, please try to use the kpsewhich program from the command line to check if it "
"really works.</p>");
- QString details = QString("<qt><p><b>PATH:</b> %1</p>%2</qt>").arg(getenv("PATH")).arg(kpsewhichOutput);
+ TQString details = TQString("<qt><p><b>PATH:</b> %1</p>%2</qt>").arg(getenv("PATH")).arg(kpsewhichOutput);
- KMessageBox::detailedError( 0, QString("<qt>%1%2</qt>").arg(importanceOfKPSEWHICH).arg(msg), details,
+ KMessageBox::detailedError( 0, TQString("<qt>%1%2</qt>").arg(importanceOfKPSEWHICH).arg(msg), details,
i18n("Problem locating fonts - KDVI") );
// This makes sure the we don't try to run kpsewhich again
markFontsAsLocated();
@@ -409,8 +409,8 @@ void fontPool::locateFonts(bool makePK, bool locateTFMonly, bool *virtualFontsFo
}
// Create a list with all filenames found by the kpsewhich program.
- QStringList fileNameList;
- QString line;
+ TQStringList fileNameList;
+ TQString line;
while(kpsewhichIO.readln(line) >= 0)
fileNameList += line;
@@ -418,9 +418,9 @@ void fontPool::locateFonts(bool makePK, bool locateTFMonly, bool *virtualFontsFo
fontp=fontList.first();
while ( fontp != 0 ) {
if (fontp->filename.isEmpty() == true) {
- QStringList matchingFiles;
+ TQStringList matchingFiles;
#ifdef HAVE_FREETYPE
- const QString &fn = fontsByTeXName.findFileName(fontp->fontname);
+ const TQString &fn = fontsByTeXName.findFileName(fontp->fontname);
if (!fn.isEmpty())
matchingFiles = fileNameList.grep(fn);
#endif
@@ -431,7 +431,7 @@ void fontPool::locateFonts(bool makePK, bool locateTFMonly, bool *virtualFontsFo
#ifdef DEBUG_FONTPOOL
kdDebug(4300) << "Associated " << fontp->fontname << " to " << matchingFiles.first() << endl;
#endif
- QString fname = matchingFiles.first();
+ TQString fname = matchingFiles.first();
fontp->fontNameReceiver(fname);
fontp->flags |= TeXFontDefinition::FONT_KPSE_NAME;
if (fname.endsWith(".vf")) {
@@ -550,7 +550,7 @@ void fontPool::mf_output_receiver(KProcess *, char *buffer, int buflen)
if (buflen < 0)
return;
- QString op = QString::fromLocal8Bit(buffer, buflen);
+ TQString op = TQString::fromLocal8Bit(buffer, buflen);
kpsewhichOutput.append(op);
MetafontOutput.append(op);
@@ -559,7 +559,7 @@ void fontPool::mf_output_receiver(KProcess *, char *buffer, int buflen)
int numleft;
bool show_prog = false;
while( (numleft = MetafontOutput.find('\n')) != -1) {
- QString line = MetafontOutput.left(numleft+1);
+ TQString line = MetafontOutput.left(numleft+1);
#ifdef DEBUG_FONTPOOL
kdDebug(4300) << "MF OUTPUT RECEIVED: " << line;
#endif
@@ -575,16 +575,16 @@ void fontPool::mf_output_receiver(KProcess *, char *buffer, int buflen)
int startlineindex = line.find("kpathsea:");
if (startlineindex != -1) {
int endstartline = line.find("\n",startlineindex);
- QString startLine = line.mid(startlineindex,endstartline-startlineindex);
+ TQString startLine = line.mid(startlineindex,endstartline-startlineindex);
// The last word in the startline is the name of the font which we
// are generating. The second-to-last word is the resolution in
// dots per inch. Display this info in the text label below the
// progress bar.
int lastblank = startLine.findRev(' ');
- QString fontName = startLine.mid(lastblank+1);
+ TQString fontName = startLine.mid(lastblank+1);
int secondblank = startLine.findRev(' ',lastblank-1);
- QString dpi = startLine.mid(secondblank+1,lastblank-secondblank-1);
+ TQString dpi = startLine.mid(secondblank+1,lastblank-secondblank-1);
progress.show();
progress.increaseNumSteps( i18n("Currently generating %1 at %2 dpi").arg(fontName).arg(dpi) );
diff --git a/kdvi/fontpool.h b/kdvi/fontpool.h
index 2e9d25da..3edcaffe 100644
--- a/kdvi/fontpool.h
+++ b/kdvi/fontpool.h
@@ -12,8 +12,8 @@
#include "fontprogress.h"
#include "TeXFontDefinition.h"
-#include <qptrlist.h>
-#include <qobject.h>
+#include <tqptrlist.h>
+#include <tqobject.h>
#ifdef HAVE_FREETYPE
#include <ft2build.h>
@@ -36,7 +36,7 @@ class KShellProcess;
*
**/
-class fontPool : public QObject {
+class fontPool : public TQObject {
Q_OBJECT
public:
@@ -56,12 +56,12 @@ public:
current working directory for the kpsewhich command, so that
kpsewhich will find fonts that are stored in the DVI file's
directory. */
- void setExtraSearchPath( const QString &path ) {extraSearchPath = path;}
+ void setExtraSearchPath( const TQString &path ) {extraSearchPath = path;}
/** Returns the path that is set as the current working directory
for the kpsewhich command, so that kpsewhich will find fonts
that are stored in the DVI file's directory. */
- QString getExtraSearchPath( ) const {return extraSearchPath;}
+ TQString getExtraSearchPath( ) const {return extraSearchPath;}
/** Sets the resolution of the output device. */
void setDisplayResolution( double _displayResolution_in_dpi );
@@ -78,14 +78,14 @@ public:
// called. Since this is done using a concurrently running process,
// there is no guarantee that the loading is already performed when
// the method returns.
- TeXFontDefinition* appendx(const QString& fontname, Q_UINT32 checksum, Q_UINT32 scale, double enlargement);
+ TeXFontDefinition* appendx(const TQString& fontname, Q_UINT32 checksum, Q_UINT32 scale, double enlargement);
// Returns a string in a very basic HTML format which describes the
// fonts in the pool.
- QString status();
+ TQString status();
// This is the list which actually holds pointers to the fonts
- QPtrList<TeXFontDefinition> fontList;
+ TQPtrList<TeXFontDefinition> fontList;
// This method marks all fonts in the fontpool as "not in use". The
// fonts are, however, not removed from memory until the method
@@ -131,7 +131,7 @@ public:
signals:
/** Passed through to the top-level kpart. */
- void setStatusBarText( const QString& );
+ void setStatusBarText( const TQString& );
public slots:
// Locates font files on the disk using the kpsewhich program. If
@@ -177,18 +177,18 @@ private:
// virtual font is found, the variable remains untouched.
void locateFonts(bool makePK, bool locateTFMonly, bool *virtualFontsFound=0);
- // This QString is used internally by the mf_output_receiver()
- // method. This string is set to QString::null in locateFonts(bool,
+ // This TQString is used internally by the mf_output_receiver()
+ // method. This string is set to TQString::null in locateFonts(bool,
// bool, bool *). Values are set and read by the
// mf_output_receiver(...) method
- QString MetafontOutput;
+ TQString MetafontOutput;
- // This QString is used to collect the output of kpsewhich and
- // MetaFont. The string is set to QString::null in the
+ // This TQString is used to collect the output of kpsewhich and
+ // MetaFont. The string is set to TQString::null in the
// locateFonts()-method, and content is gathered by the
// mf_output_receiver(). This string is used by locateFonts() and
// locateFonts(bool, bool, bool *) to display error messages.
- QString kpsewhichOutput;
+ TQString kpsewhichOutput;
// This string is set to the DVI file's path. It is used to set the
// current working directory for the kpsewhich command, so that
@@ -196,7 +196,7 @@ private:
// directory. Used by the locateFonts() and the locateFonts(bool,
// bool, bool *) method. Values are set by the
// setExtraSearchPath(...) method
- QString extraSearchPath;
+ TQString extraSearchPath;
// FontProgress; the progress dialog used when generating fonts.
fontProgressDialog progress;
diff --git a/kdvi/fontprogress.cpp b/kdvi/fontprogress.cpp
index 3935ceba..e5e34270 100644
--- a/kdvi/fontprogress.cpp
+++ b/kdvi/fontprogress.cpp
@@ -11,24 +11,24 @@
#include <klocale.h>
#include <kprocio.h>
#include <kprogress.h>
-#include <qapplication.h>
-#include <qframe.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qvariant.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqapplication.h>
+#include <tqframe.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqvariant.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
-#include <qvbox.h>
+#include <tqvbox.h>
/*
* Constructs a fontProgressDialog which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
-fontProgressDialog::fontProgressDialog(const QString& helpIndex, const QString& label, const QString& abortTip, const QString& whatsThis, const QString& ttip, QWidget* parent, const QString& name, bool progressbar)
+fontProgressDialog::fontProgressDialog(const TQString& helpIndex, const TQString& label, const TQString& abortTip, const TQString& whatsThis, const TQString& ttip, TQWidget* parent, const TQString& name, bool progressbar)
: KDialogBase( parent, "Font Generation Progress Dialog", true, name, Cancel, Cancel, true )
{
- setCursor( QCursor( 3 ) );
+ setCursor( TQCursor( 3 ) );
setButtonCancel(KGuiItem(i18n("Abort"), "stop", abortTip));
@@ -39,29 +39,29 @@ fontProgressDialog::fontProgressDialog(const QString& helpIndex, const QString&
} else
enableLinkedHelp(false);
- QVBox *page = makeVBoxMainWidget();
+ TQVBox *page = makeVBoxMainWidget();
- TextLabel1 = new QLabel( label, page, "TextLabel2" );
- TextLabel1->setAlignment( int( QLabel::AlignCenter ) );
- QWhatsThis::add( TextLabel1, whatsThis );
- QToolTip::add( TextLabel1, ttip );
+ TextLabel1 = new TQLabel( label, page, "TextLabel2" );
+ TextLabel1->setAlignment( int( TQLabel::AlignCenter ) );
+ TQWhatsThis::add( TextLabel1, whatsThis );
+ TQToolTip::add( TextLabel1, ttip );
if (progressbar) {
ProgressBar1 = new KProgress( page, "ProgressBar1" );
ProgressBar1->setFormat(i18n("%v of %m"));
- QWhatsThis::add( ProgressBar1, whatsThis );
- QToolTip::add( ProgressBar1, ttip );
+ TQWhatsThis::add( ProgressBar1, whatsThis );
+ TQToolTip::add( ProgressBar1, ttip );
} else
ProgressBar1 = NULL;
- TextLabel2 = new QLabel( "", page, "TextLabel2" );
- TextLabel2->setAlignment( int( QLabel::AlignCenter ) );
- QWhatsThis::add( TextLabel2, whatsThis );
- QToolTip::add( TextLabel2, ttip );
+ TextLabel2 = new TQLabel( "", page, "TextLabel2" );
+ TextLabel2->setAlignment( int( TQLabel::AlignCenter ) );
+ TQWhatsThis::add( TextLabel2, whatsThis );
+ TQToolTip::add( TextLabel2, ttip );
progress = 0;
procIO = 0;
- qApp->connect(this, SIGNAL(finished()), this, SLOT(killProcIO()));
+ qApp->connect(this, TQT_SIGNAL(finished()), this, TQT_SLOT(killProcIO()));
}
@@ -75,7 +75,7 @@ fontProgressDialog::~fontProgressDialog()
}
-void fontProgressDialog::increaseNumSteps(const QString& explanation)
+void fontProgressDialog::increaseNumSteps(const TQString& explanation)
{
if (ProgressBar1 != 0)
ProgressBar1->setProgress(progress++);
diff --git a/kdvi/fontprogress.h b/kdvi/fontprogress.h
index f9c7232b..6f4267cc 100644
--- a/kdvi/fontprogress.h
+++ b/kdvi/fontprogress.h
@@ -9,11 +9,11 @@
#define FONT_GENERATION_H
#include <kdialogbase.h>
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
class KProcIO;
class KProgress;
-class QLabel;
+class TQLabel;
/**
@@ -33,13 +33,13 @@ class fontProgressDialog : public KDialogBase
Q_OBJECT
public:
- fontProgressDialog( const QString& helpIndex, const QString& label, const QString& abortTip, const QString& whatsThis, const QString& ttip,
- QWidget* parent = 0, const QString &name = 0, bool progressbar=true );
+ fontProgressDialog( const TQString& helpIndex, const TQString& label, const TQString& abortTip, const TQString& whatsThis, const TQString& ttip,
+ TQWidget* parent = 0, const TQString &name = 0, bool progressbar=true );
~fontProgressDialog();
/** The number of steps already done is increased, the text received
here is analyzed and presented to the user. */
- void increaseNumSteps(const QString& explanation);
+ void increaseNumSteps(const TQString& explanation);
/** Used to initialize the progress bar. If the argument proc is
non-zero, the associated process will be killed when the "abort"
@@ -47,7 +47,7 @@ public:
internally, so it is save to delete the KProcIO anytime. */
void setTotalSteps(int, KProcIO *proc=0);
- QLabel* TextLabel2;
+ TQLabel* TextLabel2;
private slots:
/** Calling this slot does nothing than to kill the process that is
@@ -55,10 +55,10 @@ private slots:
void killProcIO();
private:
- QLabel* TextLabel1;
+ TQLabel* TextLabel1;
KProgress* ProgressBar1;
int progress;
- QGuardedPtr<KProcIO> procIO;
+ TQGuardedPtr<KProcIO> procIO;
};
#endif // FONT_GENERATION_H
diff --git a/kdvi/glyph.h b/kdvi/glyph.h
index 1cc41823..65f86327 100644
--- a/kdvi/glyph.h
+++ b/kdvi/glyph.h
@@ -3,8 +3,8 @@
#ifndef _GLYPH_H
#define _GLYPH_H
-#include <qcolor.h>
-#include <qpixmap.h>
+#include <tqcolor.h>
+#include <tqpixmap.h>
struct bitmap {
@@ -21,7 +21,7 @@ class glyph {
// address of bitmap in font file
long addr;
- QColor color;
+ TQColor color;
// DVI units to move reference point
Q_INT32 dvi_advance_in_units_of_design_size_by_2e20;
@@ -29,7 +29,7 @@ class glyph {
// x and y offset in pixels
short x, y;
- QPixmap shrunkenCharacter;
+ TQPixmap shrunkenCharacter;
short x2, y2; /* x and y offset in pixels (shrunken bitmap) */
};
diff --git a/kdvi/infodialog.cpp b/kdvi/infodialog.cpp
index f645def8..91de53d3 100644
--- a/kdvi/infodialog.cpp
+++ b/kdvi/infodialog.cpp
@@ -8,73 +8,73 @@
#include <kdebug.h>
#include <kio/global.h>
#include <klocale.h>
-#include <qfile.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qregexp.h>
-#include <qtextview.h>
-#include <qtooltip.h>
-#include <qvariant.h>
-#include <qwhatsthis.h>
+#include <tqfile.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqregexp.h>
+#include <tqtextview.h>
+#include <tqtooltip.h>
+#include <tqvariant.h>
+#include <tqwhatsthis.h>
#include "dviFile.h"
#include "fontpool.h"
#include "infodialog.h"
-infoDialog::infoDialog( QWidget* parent )
+infoDialog::infoDialog( TQWidget* parent )
: KDialogBase( Tabbed, i18n("Document Info"), Ok, Ok, parent, "Document Info", false, false)
{
- QFrame *page1 = addPage( i18n("DVI File") );
- QVBoxLayout *topLayout1 = new QVBoxLayout( page1, 0, 6 );
- TextLabel1 = new QTextView( page1, "TextLabel1" );
- QToolTip::add( TextLabel1, i18n("Information on the currently loaded DVI-file.") );
+ TQFrame *page1 = addPage( i18n("DVI File") );
+ TQVBoxLayout *topLayout1 = new TQVBoxLayout( page1, 0, 6 );
+ TextLabel1 = new TQTextView( page1, "TextLabel1" );
+ TQToolTip::add( TextLabel1, i18n("Information on the currently loaded DVI-file.") );
topLayout1->addWidget( TextLabel1 );
- QFrame *page2 = addPage( i18n("Fonts") );
- QVBoxLayout *topLayout2 = new QVBoxLayout( page2, 0, 6 );
- TextLabel2 = new QTextView( page2, "TextLabel1" );
+ TQFrame *page2 = addPage( i18n("Fonts") );
+ TQVBoxLayout *topLayout2 = new TQVBoxLayout( page2, 0, 6 );
+ TextLabel2 = new TQTextView( page2, "TextLabel1" );
TextLabel2->setMinimumWidth(fontMetrics().maxWidth()*40);
TextLabel2->setMinimumHeight(fontMetrics().height()*10);
- QToolTip::add( TextLabel2, i18n("Information on currently loaded fonts.") );
- QWhatsThis::add( TextLabel2, i18n("This text field shows detailed information about the currently loaded fonts. "
+ TQToolTip::add( TextLabel2, i18n("Information on currently loaded fonts.") );
+ TQWhatsThis::add( TextLabel2, i18n("This text field shows detailed information about the currently loaded fonts. "
"This is useful for experts who want to locate problems in the setup of TeX or KDVI.") );
topLayout2->addWidget( TextLabel2 );
- QFrame *page3 = addPage( i18n("External Programs") );
- QVBoxLayout *topLayout3 = new QVBoxLayout( page3, 0, 6 );
- TextLabel3 = new QTextView( page3, "TextLabel1" );
+ TQFrame *page3 = addPage( i18n("External Programs") );
+ TQVBoxLayout *topLayout3 = new TQVBoxLayout( page3, 0, 6 );
+ TextLabel3 = new TQTextView( page3, "TextLabel1" );
TextLabel3->setText( i18n("No output from any external program received.") );
- QToolTip::add( TextLabel3, i18n("Output of external programs.") );
- QWhatsThis::add( TextLabel3, i18n("KDVI uses external programs, such as MetaFont, dvipdfm or dvips. "
+ TQToolTip::add( TextLabel3, i18n("Output of external programs.") );
+ TQWhatsThis::add( TextLabel3, i18n("KDVI uses external programs, such as MetaFont, dvipdfm or dvips. "
"This text field shows the output of these programs. "
"That is useful for experts who want to find problems in the setup of TeX or KDVI.") );
topLayout3->addWidget( TextLabel3 );
MFOutputReceived = false;
- headline = QString::null;
- pool = QString::null;
+ headline = TQString::null;
+ pool = TQString::null;
}
void infoDialog::setDVIData(dvifile *dviFile)
{
- QString text = "";
+ TQString text = "";
if (dviFile == NULL)
text = i18n("There is no DVI file loaded at the moment.");
else {
text.append("<table WIDTH=\"100%\" NOSAVE >");
- text.append(QString("<tr><td><b>%1</b></td> <td>%2</td></tr>").arg(i18n("Filename")).arg(dviFile->filename));
+ text.append(TQString("<tr><td><b>%1</b></td> <td>%2</td></tr>").arg(i18n("Filename")).arg(dviFile->filename));
- QFile file(dviFile->filename);
+ TQFile file(dviFile->filename);
if (file.exists())
- text.append(QString("<tr><td><b>%1</b></td> <td>%2</td></tr>").arg(i18n("File Size")).arg(KIO::convertSize(file.size())));
+ text.append(TQString("<tr><td><b>%1</b></td> <td>%2</td></tr>").arg(i18n("File Size")).arg(KIO::convertSize(file.size())));
else
- text.append(QString("<tr><td><b> </b></td> <td>%1</td></tr>").arg(i18n("The file does no longer exist.")));
+ text.append(TQString("<tr><td><b> </b></td> <td>%1</td></tr>").arg(i18n("The file does no longer exist.")));
- text.append(QString("<tr><td><b> </b></td> <td> </td></tr>"));
- text.append(QString("<tr><td><b>%1</b></td> <td>%2</td></tr>").arg(i18n("#Pages")).arg(dviFile->total_pages));
- text.append(QString("<tr><td><b>%1</b></td> <td>%2</td></tr>").arg(i18n("Generator/Date")).arg(dviFile->generatorString));
+ text.append(TQString("<tr><td><b> </b></td> <td> </td></tr>"));
+ text.append(TQString("<tr><td><b>%1</b></td> <td>%2</td></tr>").arg(i18n("#Pages")).arg(dviFile->total_pages));
+ text.append(TQString("<tr><td><b>%1</b></td> <td>%2</td></tr>").arg(i18n("Generator/Date")).arg(dviFile->generatorString));
} // else (dviFile == NULL)
TextLabel1->setText( text );
@@ -86,23 +86,23 @@ void infoDialog::setFontInfo(fontPool *fp)
TextLabel2->setText(fp->status());
}
-void infoDialog::outputReceiver(const QString& _op)
+void infoDialog::outputReceiver(const TQString& _op)
{
- QString op = _op;
- op = op.replace( QRegExp("<"), "&lt;" );
+ TQString op = _op;
+ op = op.replace( TQRegExp("<"), "&lt;" );
if (MFOutputReceived == false) {
TextLabel3->setText("<b>"+headline+"</b><br>");
- headline = QString::null;
+ headline = TQString::null;
}
- // It seems that the QTextView wants that we append only full lines.
+ // It seems that the TQTextView wants that we append only full lines.
// We see to that.
pool = p