summaryrefslogtreecommitdiffstats
path: root/kpovmodeler
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 /kpovmodeler
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
Diffstat (limited to 'kpovmodeler')
-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
491 files changed, 7601 insertions, 7601 deletions
diff --git a/kpovmodeler/pm2dcontrolpoint.cpp b/kpovmodeler/pm2dcontrolpoint.cpp
index 66e7a85a..f8450715 100644
--- a/kpovmodeler/pm2dcontrolpoint.cpp
+++ b/kpovmodeler/pm2dcontrolpoint.cpp
@@ -21,7 +21,7 @@
PM2DControlPoint::PM2DControlPoint( const PMVector& point,
PM2DControlPoint::CPType type, int id,
- const QString& description )
+ const TQString& description )
: PMControlPoint( id, description )
{
m_point = point;
@@ -34,7 +34,7 @@ PM2DControlPoint::PM2DControlPoint( const PMVector& point,
void PM2DControlPoint::graphicalChangeStarted( )
{
- QPtrListIterator<PM2DControlPoint> it( m_linkedPoints );
+ TQPtrListIterator<PM2DControlPoint> it( m_linkedPoints );
for( ; *it; ++it )
if( !( *it )->selected( ) )
( *it )->graphicalChangeStarted( );
@@ -63,7 +63,7 @@ void PM2DControlPoint::graphicalChange( const PMVector& startPoint,
m_point = op;
}
- QPtrListIterator<PM2DControlPoint> it( m_linkedPoints );
+ TQPtrListIterator<PM2DControlPoint> it( m_linkedPoints );
for( ; *it; ++it )
{
( *it )->m_point = m_point + ( *it )->m_original2DPoint
@@ -110,7 +110,7 @@ void PM2DControlPoint::snapToGrid( )
if( diff )
m_point += m_pBasePoint->m_point;
- QPtrListIterator<PM2DControlPoint> it( m_linkedPoints );
+ TQPtrListIterator<PM2DControlPoint> it( m_linkedPoints );
for( ; *it; ++it )
{
( *it )->m_point += change;
diff --git a/kpovmodeler/pm2dcontrolpoint.h b/kpovmodeler/pm2dcontrolpoint.h
index f949570b..40b26d85 100644
--- a/kpovmodeler/pm2dcontrolpoint.h
+++ b/kpovmodeler/pm2dcontrolpoint.h
@@ -25,7 +25,7 @@
#include "pmcontrolpoint.h"
-#include <qptrlist.h>
+#include <tqptrlist.h>
/**
* Class for free moveable control points
@@ -41,7 +41,7 @@ public:
* Creates a PM2DControlPoint with id. Point has to be a 2D vector.
*/
PM2DControlPoint( const PMVector& point, CPType type,
- int id, const QString& description );
+ int id, const TQString& description );
/**
* Deletes the PM2DControlPoint
*/
@@ -128,7 +128,7 @@ private:
double m_thirdCoordinate;
double m_scale;
PM2DControlPoint* m_pBasePoint;
- QPtrList<PM2DControlPoint> m_linkedPoints;
+ TQPtrList<PM2DControlPoint> m_linkedPoints;
PM2DControlPoint* m_pLatheLink;
};
diff --git a/kpovmodeler/pm3dcontrolpoint.cpp b/kpovmodeler/pm3dcontrolpoint.cpp
index 7bd4e10e..d430eac7 100644
--- a/kpovmodeler/pm3dcontrolpoint.cpp
+++ b/kpovmodeler/pm3dcontrolpoint.cpp
@@ -20,7 +20,7 @@
#include <math.h>
PM3DControlPoint::PM3DControlPoint( const PMVector& point, int id,
- const QString& description )
+ const TQString& description )
: PMControlPoint( id, description )
{
m_point = point;
diff --git a/kpovmodeler/pm3dcontrolpoint.h b/kpovmodeler/pm3dcontrolpoint.h
index 765c4e43..3af82a28 100644
--- a/kpovmodeler/pm3dcontrolpoint.h
+++ b/kpovmodeler/pm3dcontrolpoint.h
@@ -35,7 +35,7 @@ public:
/**
* Creates a PM3DControlPoint with id.
*/
- PM3DControlPoint( const PMVector& point, int id, const QString& description );
+ PM3DControlPoint( const PMVector& point, int id, const TQString& description );
/**
* Deletes the PM3DControlPoint
*/
diff --git a/kpovmodeler/pmactions.cpp b/kpovmodeler/pmactions.cpp
index b84e42da..12bb479b 100644
--- a/kpovmodeler/pmactions.cpp
+++ b/kpovmodeler/pmactions.cpp
@@ -17,12 +17,12 @@
#include "pmactions.h"
-#include <qcombobox.h>
-#include <qwhatsthis.h>
-#include <qspinbox.h>
-#include <qlabel.h>
-#include <qstyle.h>
-#include <qpainter.h>
+#include <tqcombobox.h>
+#include <tqwhatsthis.h>
+#include <tqspinbox.h>
+#include <tqlabel.h>
+#include <tqstyle.h>
+#include <tqpainter.h>
#include <ktoolbar.h>
#include <ktoolbarbutton.h>
@@ -34,25 +34,25 @@
class PMComboBox : public QComboBox
{
public:
- PMComboBox( QWidget* parent, const char* name = 0 )
- : QComboBox( parent, name )
+ PMComboBox( TQWidget* parent, const char* name = 0 )
+ : TQComboBox( parent, name )
{
}
- virtual QSize minimumSizeHint( ) const
+ virtual TQSize minimumSizeHint( ) const
{
- QSize s = QComboBox::minimumSizeHint( );
+ TQSize s = TQComboBox::minimumSizeHint( );
return s.expandedTo( minimumSize( ) );
}
- virtual QSize sizeHint( ) const
+ virtual TQSize sizeHint( ) const
{
- QSize s = QComboBox::sizeHint( );
+ TQSize s = TQComboBox::sizeHint( );
return s.expandedTo( minimumSize( ) );
}
};
-PMComboAction::PMComboAction( const QString& text, int accel, const QObject* receiver, const char* member,
- QObject* parent, const char* name )
+PMComboAction::PMComboAction( const TQString& text, int accel, const TQObject* receiver, const char* member,
+ TQObject* parent, const char* name )
: KAction( text, accel, parent, name )
{
m_receiver = receiver;
@@ -65,7 +65,7 @@ PMComboAction::~PMComboAction( )
{
}
-int PMComboAction::plug( QWidget* w, int index )
+int PMComboAction::plug( TQWidget* w, int index )
{
if( !w->inherits( "KToolBar" ) )
return -1;
@@ -74,7 +74,7 @@ int PMComboAction::plug( QWidget* w, int index )
int id = KAction::getToolButtonID( );
- QComboBox* comboBox = new PMComboBox( toolBar );
+ TQComboBox* comboBox = new PMComboBox( toolBar );
if( m_minWidth > 0 )
comboBox->setMinimumWidth( m_minWidth );
if( m_maxWidth > 0 )
@@ -82,11 +82,11 @@ int PMComboAction::plug( QWidget* w, int index )
toolBar->insertWidget( id, m_minWidth > 0 ? m_minWidth : 300,
comboBox, index );
- connect( comboBox, SIGNAL( activated( int ) ), m_receiver, m_member );
+ connect( comboBox, TQT_SIGNAL( activated( int ) ), m_receiver, m_member );
addContainer( toolBar, id );
- connect( toolBar, SIGNAL( destroyed( ) ), this, SLOT( slotDestroyed( ) ) );
+ connect( toolBar, TQT_SIGNAL( destroyed( ) ), this, TQT_SLOT( slotDestroyed( ) ) );
//toolBar->setItemAutoSized( id, true );
@@ -94,12 +94,12 @@ int PMComboAction::plug( QWidget* w, int index )
emit plugged( );
- QWhatsThis::add( comboBox, whatsThis( ) );
+ TQWhatsThis::add( comboBox, whatsThis( ) );
return containerCount( ) - 1;
}
-void PMComboAction::unplug( QWidget *w )
+void PMComboAction::unplug( TQWidget *w )
{
if( !w->inherits( "KToolBar" ) )
return;
@@ -120,40 +120,40 @@ void PMComboAction::unplug( QWidget *w )
class PMToolBarLabel : public QToolButton
{
public:
- PMToolBarLabel( const QString& text, QWidget* parent = 0, const char* name = 0 )
- : QToolButton( parent, name )
+ PMToolBarLabel( const TQString& text, TQWidget* parent = 0, const char* name = 0 )
+ : TQToolButton( parent, name )
{
setText( text );
}
protected:
- QSize sizeHint( ) const
+ TQSize sizeHint( ) const
{
int w = fontMetrics( ).width( text( ) );
int h = fontMetrics( ).height( );
- return QSize( w, h );
+ return TQSize( w, h );
}
- void drawButton( QPainter* p )
+ void drawButton( TQPainter* p )
{
#if ( QT_VERSION >= 300 )
// Draw the background
- style( ).drawComplexControl( QStyle::CC_ToolButton, p, this, rect( ), colorGroup( ),
- QStyle::Style_Enabled, QStyle::SC_ToolButton );
+ style( ).drawComplexControl( TQStyle::CC_ToolButton, p, this, rect( ), colorGroup( ),
+ TQStyle::Style_Enabled, TQStyle::SC_ToolButton );
// Draw the label
- style( ).drawControl( QStyle::CE_ToolButtonLabel, p, this, rect( ), colorGroup( ),
- QStyle::Style_Enabled );
+ style( ).drawControl( TQStyle::CE_ToolButtonLabel, p, this, rect( ), colorGroup( ),
+ TQStyle::Style_Enabled );
#else
p->drawText( rect( ), Qt::AlignVCenter | Qt::AlignLeft, text( ) );
#endif
}
};
-PMLabelAction::PMLabelAction( const QString &text, QObject *parent, const char *name )
+PMLabelAction::PMLabelAction( const TQString &text, TQObject *parent, const char *name )
: KAction( text, 0, parent, name )
{
m_button = 0;
}
-int PMLabelAction::plug( QWidget *widget, int index )
+int PMLabelAction::plug( TQWidget *widget, int index )
{
//do not call the previous implementation here
@@ -168,7 +168,7 @@ int PMLabelAction::plug( QWidget *widget, int index )
addContainer( tb, id );
- connect( tb, SIGNAL( destroyed( ) ), this, SLOT( slotDestroyed( ) ) );
+ connect( tb, TQT_SIGNAL( destroyed( ) ), this, TQT_SLOT( slotDestroyed( ) ) );
return containerCount( ) - 1;
}
@@ -176,7 +176,7 @@ int PMLabelAction::plug( QWidget *widget, int index )
return -1;
}
-void PMLabelAction::unplug( QWidget *widget )
+void PMLabelAction::unplug( TQWidget *widget )
{
if( widget->inherits( "KToolBar" ) )
{
@@ -196,8 +196,8 @@ void PMLabelAction::unplug( QWidget *widget )
}
-PMSpinBoxAction::PMSpinBoxAction( const QString& text, int accel, const QObject* receiver, const char* member,
- QObject* parent, const char* name )
+PMSpinBoxAction::PMSpinBoxAction( const TQString& text, int accel, const TQObject* receiver, const char* member,
+ TQObject* parent, const char* name )
: KAction( text, accel, parent, name )
{
m_receiver = receiver;
@@ -208,7 +208,7 @@ PMSpinBoxAction::~PMSpinBoxAction( )
{
}
-int PMSpinBoxAction::plug( QWidget* w, int index )
+int PMSpinBoxAction::plug( TQWidget* w, int index )
{
if( !w->inherits( "KToolBar" ) )
return -1;
@@ -217,26 +217,26 @@ int PMSpinBoxAction::plug( QWidget* w, int index )
int id = KAction::getToolButtonID( );
- QSpinBox* spinBox = new QSpinBox( -1000, 1000, 1, w );
+ TQSpinBox* spinBox = new TQSpinBox( -1000, 1000, 1, w );
toolBar->insertWidget( id, 70, spinBox, index );
- connect( spinBox, SIGNAL( valueChanged( int ) ), m_receiver, m_member );
+ connect( spinBox, TQT_SIGNAL( valueChanged( int ) ), m_receiver, m_member );
addContainer( toolBar, id );
- connect( toolBar, SIGNAL( destroyed( ) ), this, SLOT( slotDestroyed( ) ) );
+ connect( toolBar, TQT_SIGNAL( destroyed( ) ), this, TQT_SLOT( slotDestroyed( ) ) );
//toolBar->setItemAutoSized( id, false );
m_spinBox = spinBox;
emit plugged( );
- QWhatsThis::add( spinBox, whatsThis( ) );
+ TQWhatsThis::add( spinBox, whatsThis( ) );
return containerCount( ) - 1;
}
-void PMSpinBoxAction::unplug( QWidget *w )
+void PMSpinBoxAction::unplug( TQWidget *w )
{
if( !w->inherits( "KToolBar" ) )
return;
diff --git a/kpovmodeler/pmactions.h b/kpovmodeler/pmactions.h
index f4f8e9e4..6575caa8 100644
--- a/kpovmodeler/pmactions.h
+++ b/kpovmodeler/pmactions.h
@@ -20,13 +20,13 @@
#ifndef PMACTIONS_H
#define PMACTIONS_H
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include <kaction.h>
-class QComboBox;
-class QSpinBox;
-class QLabel;
-class QToolButton;
+class TQComboBox;
+class TQSpinBox;
+class TQLabel;
+class TQToolButton;
/**
* Combobox action for the toolbar.
@@ -37,14 +37,14 @@ class PMComboAction : public KAction
{
Q_OBJECT
public:
- PMComboAction( const QString& text, int accel, const QObject* receiver, const char* member, QObject* parent, const char* name );
+ PMComboAction( const TQString& text, int accel, const TQObject* receiver, const char* member, TQObject* parent, const char* name );
~PMComboAction( );
- virtual int plug( QWidget* w, int index = -1 );
+ virtual int plug( TQWidget* w, int index = -1 );
- virtual void unplug( QWidget* w );
+ virtual void unplug( TQWidget* w );
- QGuardedPtr<QComboBox> combo( ) { return m_combo; }
+ TQGuardedPtr<TQComboBox> combo( ) { return m_combo; }
void setMaximumWidth( int w ) { m_maxWidth = w; }
void setMinimumWidth( int w ) { m_minWidth = w; }
@@ -53,8 +53,8 @@ signals:
void plugged( );
private:
- QGuardedPtr<QComboBox> m_combo;
- const QObject* m_receiver;
+ TQGuardedPtr<TQComboBox> m_combo;
+ const TQObject* m_receiver;
const char* m_member;
int m_minWidth, m_maxWidth;
};
@@ -68,14 +68,14 @@ class PMLabelAction : public KAction
{
Q_OBJECT
public:
- PMLabelAction( const QString &text, QObject *parent = 0, const char *name = 0 );
+ PMLabelAction( const TQString &text, TQObject *parent = 0, const char *name = 0 );
- virtual int plug( QWidget *widget, int index = -1 );
- virtual void unplug( QWidget *widget );
- QToolButton* button( ) { return m_button; }
+ virtual int plug( TQWidget *widget, int index = -1 );
+ virtual void unplug( TQWidget *widget );
+ TQToolButton* button( ) { return m_button; }
private:
- QToolButton* m_button;
+ TQToolButton* m_button;
};
/**
@@ -85,20 +85,20 @@ class PMSpinBoxAction : public KAction
{
Q_OBJECT
public:
- PMSpinBoxAction( const QString& text, int accel, const QObject* receiver, const char* member, QObject* parent, const char* name );
+ PMSpinBoxAction( const TQString& text, int accel, const TQObject* receiver, const char* member, TQObject* parent, const char* name );
~PMSpinBoxAction( );
- virtual int plug( QWidget* w, int index = -1 );
- virtual void unplug( QWidget* w );
+ virtual int plug( TQWidget* w, int index = -1 );
+ virtual void unplug( TQWidget* w );
- QGuardedPtr<QSpinBox> spinBox( ) { return m_spinBox; }
+ TQGuardedPtr<TQSpinBox> spinBox( ) { return m_spinBox; }
signals:
void plugged( );
private:
- QGuardedPtr<QSpinBox> m_spinBox;
- const QObject* m_receiver;
+ TQGuardedPtr<TQSpinBox> m_spinBox;
+ const TQObject* m_receiver;
const char* m_member;
};
diff --git a/kpovmodeler/pmbicubicpatch.cpp b/kpovmodeler/pmbicubicpatch.cpp
index cbc633a9..2c1c99dd 100644
--- a/kpovmodeler/pmbicubicpatch.cpp
+++ b/kpovmodeler/pmbicubicpatch.cpp
@@ -161,12 +161,12 @@ PMBicubicPatch::~PMBicubicPatch( )
{
}
-QString PMBicubicPatch::description( ) const
+TQString PMBicubicPatch::description( ) const
{
return i18n( "bicubic patch" );
}
-void PMBicubicPatch::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMBicubicPatch::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
int i;
@@ -177,10 +177,10 @@ void PMBicubicPatch::serialize( QDomElement& e, QDomDocument& doc ) const
e.setAttribute( "uvEnabled", m_uvEnabled );
for( i = 0; i < 16; i++ )
- e.setAttribute( QString( "cp%1" ).arg( i ), m_point[i].serializeXML( ) );
+ e.setAttribute( TQString( "cp%1" ).arg( i ), m_point[i].serializeXML( ) );
for( i = 0; i < 4; ++i )
- e.setAttribute( QString( "uv%1" ).arg( i ), m_uvVectors[i].serializeXML( ) );
+ e.setAttribute( TQString( "uv%1" ).arg( i ), m_uvVectors[i].serializeXML( ) );
Base::serialize( e, doc );
}
@@ -198,7 +198,7 @@ void PMBicubicPatch::readAttributes( const PMXMLHelper& h )
for( v = 0; v < 4; v++ )
for( u = 0; u < 4; u++ )
- m_point[u+v*4] = h.vectorAttribute( QString( "cp%1" ).arg( u+v*4 ),
+ m_point[u+v*4] = h.vectorAttribute( TQString( "cp%1" ).arg( u+v*4 ),
PMVector( o + s * u, 0, o + s * v ) );
m_uvVectors[0] = h.vectorAttribute( "uv0", c_defaultUVVector0 );
@@ -365,7 +365,7 @@ PMVector PMBicubicPatch::uvVector( int i ) const
return PMVector( 0.0, 0.0 );
}
-PMDialogEditBase* PMBicubicPatch::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMBicubicPatch::editWidget( TQWidget* parent ) const
{
return new PMBicubicPatchEdit( parent );
}
diff --git a/kpovmodeler/pmbicubicpatch.h b/kpovmodeler/pmbicubicpatch.h
index c7ca6b3b..d14f7821 100644
--- a/kpovmodeler/pmbicubicpatch.h
+++ b/kpovmodeler/pmbicubicpatch.h
@@ -53,25 +53,25 @@ public:
/** */
virtual PMObject* copy( ) const { return new PMBicubicPatch( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
/** */
virtual void cleanUp( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMBicubicPatchEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/**
* Returns the name of the pixmap that is displayed in the tree view
* and dialog view
*/
- virtual QString pixmap( ) const { return QString( "pmbicubicpatch" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmbicubicpatch" ); }
/** */
virtual void restoreMemento( PMMemento* s );
diff --git a/kpovmodeler/pmbicubicpatchedit.cpp b/kpovmodeler/pmbicubicpatchedit.cpp
index 6ead96ae..8dff49b0 100644
--- a/kpovmodeler/pmbicubicpatchedit.cpp
+++ b/kpovmodeler/pmbicubicpatchedit.cpp
@@ -23,13 +23,13 @@
#include "pmvectorlistedit.h"
#include "pmpart.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcombobox.h>
-#include <qcheckbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
+#include <tqcheckbox.h>
#include <klocale.h>
-PMBicubicPatchEdit::PMBicubicPatchEdit( QWidget* parent, const char* name )
+PMBicubicPatchEdit::PMBicubicPatchEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -39,54 +39,54 @@ void PMBicubicPatchEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- QHBoxLayout* layout;
+ TQHBoxLayout* layout;
- m_pType = new QComboBox( false, this );
+ m_pType = new TQComboBox( false, this );
m_pType->insertItem( i18n( "Normal (type 0)" ) );
m_pType->insertItem( i18n( "Preprocessed (type 1)" ) );
- layout = new QHBoxLayout( topLayout( ) );
- layout->addWidget( new QLabel( i18n( "Type:" ), this ) );
+ layout = new TQHBoxLayout( topLayout( ) );
+ layout->addWidget( new TQLabel( i18n( "Type:" ), this ) );
layout->addWidget( m_pType );
layout->addStretch( 1 );
m_pUSteps = new PMIntEdit( this );
m_pUSteps->setValidation( true, 0, false, 0 );
- layout = new QHBoxLayout( topLayout( ) );
- layout->addWidget( new QLabel( i18n( "Steps:" ) + " u", this ) );
+ layout = new TQHBoxLayout( topLayout( ) );
+ layout->addWidget( new TQLabel( i18n( "Steps:" ) + " u", this ) );
layout->addWidget( m_pUSteps );
m_pVSteps = new PMIntEdit( this );
m_pVSteps->setValidation( true, 0, false, 0 );
- layout->addWidget( new QLabel( "v", this ) );
+ layout->addWidget( new TQLabel( "v", this ) );
layout->addWidget( m_pVSteps );
m_pFlatness = new PMFloatEdit( this );
m_pFlatness->setValidation( true, 0.0, false, 0.0 );
- layout = new QHBoxLayout( topLayout( ) );
- layout->addWidget( new QLabel( i18n( "Flatness:" ), this ) );
+ layout = new TQHBoxLayout( topLayout( ) );
+ layout->addWidget( new TQLabel( i18n( "Flatness:" ), this ) );
layout->addWidget( m_pFlatness );
layout->addStretch( 1 );
- topLayout( )->addWidget( new QLabel( i18n( "Points:" ), this ) );
+ topLayout( )->addWidget( new TQLabel( i18n( "Points:" ), this ) );
m_pPoints = new PMVectorListEdit( "x", "y", "z", this );
m_pPoints->setSize( 16 );
topLayout( )->addWidget( m_pPoints );
- m_pUVEnabled = new QCheckBox( i18n( "UV vectors" ), this );
+ m_pUVEnabled = new TQCheckBox( i18n( "UV vectors" ), this );
topLayout( )->addWidget( m_pUVEnabled );
m_pUVVectors = new PMVectorListEdit( "u", "v", this );
m_pUVVectors->setSize( 4 );
topLayout( )->addWidget( m_pUVVectors );
- connect( m_pType, SIGNAL( highlighted( int ) ), SLOT( slotTypeSelected( int ) ) );
- connect( m_pUSteps, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pVSteps, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pFlatness, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pPoints, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pPoints, SIGNAL( selectionChanged( ) ),
- SLOT( slotSelectionChanged( ) ) );
- connect( m_pUVEnabled, SIGNAL( clicked( ) ), SLOT( slotUVEnabledClicked( ) ) );
- connect( m_pUVVectors, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pType, TQT_SIGNAL( highlighted( int ) ), TQT_SLOT( slotTypeSelected( int ) ) );
+ connect( m_pUSteps, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pVSteps, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pFlatness, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pPoints, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pPoints, TQT_SIGNAL( selectionChanged( ) ),
+ TQT_SLOT( slotSelectionChanged( ) ) );
+ connect( m_pUVEnabled, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotUVEnabledClicked( ) ) );
+ connect( m_pUVVectors, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
}
void PMBicubicPatchEdit::displayObject( PMObject* o )
diff --git a/kpovmodeler/pmbicubicpatchedit.h b/kpovmodeler/pmbicubicpatchedit.h
index 41d173c1..ac00f00a 100644
--- a/kpovmodeler/pmbicubicpatchedit.h
+++ b/kpovmodeler/pmbicubicpatchedit.h
@@ -30,8 +30,8 @@ class PMBicubicPatch;
class PMIntEdit;
class PMFloatEdit;
class PMVectorListEdit;
-class QComboBox;
-class QCheckBox;
+class TQComboBox;
+class TQCheckBox;
/**
* Dialog edit class for @ref PMBicubicPatch
@@ -44,7 +44,7 @@ public:
/**
* Creates a PMBicubicPatchEdit with parent and name
*/
- PMBicubicPatchEdit( QWidget* parent, const char* name = 0 );
+ PMBicubicPatchEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -65,12 +65,12 @@ protected:
virtual void saveContents( );
private:
- QComboBox* m_pType;
+ TQComboBox* m_pType;
PMIntEdit* m_pUSteps;
PMIntEdit* m_pVSteps;
PMFloatEdit* m_pFlatness;
PMVectorListEdit* m_pPoints;
- QCheckBox* m_pUVEnabled;
+ TQCheckBox* m_pUVEnabled;
PMVectorListEdit* m_pUVVectors;
PMBicubicPatch* m_pDisplayedObject;
diff --git a/kpovmodeler/pmblendmapmodifiers.cpp b/kpovmodeler/pmblendmapmodifiers.cpp
index 0259fb90..9d26419e 100644
--- a/kpovmodeler/pmblendmapmodifiers.cpp
+++ b/kpovmodeler/pmblendmapmodifiers.cpp
@@ -85,12 +85,12 @@ PMMetaObject* PMBlendMapModifiers::metaObject( ) const
PMWaveFormProperty* p = new PMWaveFormProperty(
"waveForm", &PMBlendMapModifiers::setWaveFormType,
&PMBlendMapModifiers::waveFormType );
- p->addEnumValue( QString( "RampWave" ), RampWave );
- p->addEnumValue( QString( "TriangleWave" ), TriangleWave );
- p->addEnumValue( QString( "SineWave" ), SineWave );
- p->addEnumValue( QString( "ScallopWave" ), ScallopWave );
- p->addEnumValue( QString( "CubicWave" ), CubicWave );
- p->addEnumValue( QString( "PolyWave" ), PolyWave );
+ p->addEnumValue( TQString( "RampWave" ), RampWave );
+ p->addEnumValue( TQString( "TriangleWave" ), TriangleWave );
+ p->addEnumValue( TQString( "SineWave" ), SineWave );
+ p->addEnumValue( TQString( "ScallopWave" ), ScallopWave );
+ p->addEnumValue( TQString( "CubicWave" ), CubicWave );
+ p->addEnumValue( TQString( "PolyWave" ), PolyWave );
s_pMetaObject->addProperty( p );
}
return s_pMetaObject;
@@ -106,12 +106,12 @@ void PMBlendMapModifiers::cleanUp( ) const
Base::cleanUp( );
}
-QString PMBlendMapModifiers::description( ) const
+TQString PMBlendMapModifiers::description( ) const
{
return i18n( "blend map modifiers" );
}
-void PMBlendMapModifiers::serialize( QDomElement& e, QDomDocument& ) const
+void PMBlendMapModifiers::serialize( TQDomElement& e, TQDomDocument& ) const
{
e.setAttribute( "frequency", m_frequency );
e.setAttribute( "phase", m_phase );
@@ -144,7 +144,7 @@ void PMBlendMapModifiers::serialize( QDomElement& e, QDomDocument& ) const
void PMBlendMapModifiers::readAttributes( const PMXMLHelper& h )
{
- QString str = h.stringAttribute( "waveform_type", "ramp" );
+ TQString str = h.stringAttribute( "waveform_type", "ramp" );
if( str == "ramp" )
m_waveFormType = RampWave;
@@ -236,7 +236,7 @@ void PMBlendMapModifiers::setWaveFormType( PMWaveFormType c )
}
}
-PMDialogEditBase* PMBlendMapModifiers::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMBlendMapModifiers::editWidget( TQWidget* parent ) const
{
return new PMBlendMapModifiersEdit( parent );
}
diff --git a/kpovmodeler/pmblendmapmodifiers.h b/kpovmodeler/pmblendmapmodifiers.h
index 1fa45528..ecf0bfed 100644
--- a/kpovmodeler/pmblendmapmodifiers.h
+++ b/kpovmodeler/pmblendmapmodifiers.h
@@ -54,7 +54,7 @@ public:
virtual PMObject* copy( ) const { return new PMBlendMapModifiers( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
@@ -62,16 +62,16 @@ public:
virtual void cleanUp( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMBlendMapModifiersEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/** */
- virtual QString pixmap( ) const { return QString( "pmblendmapmodifiers" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmblendmapmodifiers" ); }
/** */
virtual void restoreMemento( PMMemento* s );
diff --git a/kpovmodeler/pmblendmapmodifiersedit.cpp b/kpovmodeler/pmblendmapmodifiersedit.cpp
index 8e8ff150..fd443623 100644
--- a/kpovmodeler/pmblendmapmodifiersedit.cpp
+++ b/kpovmodeler/pmblendmapmodifiersedit.cpp
@@ -24,20 +24,20 @@
#include "pmlineedits.h"
#include "pmvector.h"
-#include <qwidget.h>
-#include <qlayout.h>
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
+#include <tqwidget.h>
+#include <tqlayout.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
#include <ktabctl.h>
#include <klocale.h>
#include <kmessagebox.h>
#include <kdialog.h>
#include <kfiledialog.h>
-PMBlendMapModifiersEdit::PMBlendMapModifiersEdit( QWidget* parent, const char* name )
+PMBlendMapModifiersEdit::PMBlendMapModifiersEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -45,27 +45,27 @@ PMBlendMapModifiersEdit::PMBlendMapModifiersEdit( QWidget* parent, const char* n
void PMBlendMapModifiersEdit::createTopWidgets( )
{
- QHBoxLayout* hl;
+ TQHBoxLayout* hl;
Base::createTopWidgets( );
- hl = new QHBoxLayout( topLayout( ) );
- m_pEnableFrequencyEdit = new QCheckBox( i18n( "Frequency:" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ m_pEnableFrequencyEdit = new TQCheckBox( i18n( "Frequency:" ), this );
m_pFrequencyEdit = new PMFloatEdit( this );
hl->addWidget( m_pEnableFrequencyEdit );
hl->addWidget( m_pFrequencyEdit );
hl->addStretch( 1 );
- hl = new QHBoxLayout( topLayout( ) );
- m_pEnablePhaseEdit = new QCheckBox( i18n( "Phase:" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ m_pEnablePhaseEdit = new TQCheckBox( i18n( "Phase:" ), this );
m_pPhaseEdit = new PMFloatEdit( this );
hl->addWidget( m_pEnablePhaseEdit );
hl->addWidget( m_pPhaseEdit );
hl->addStretch( 1 );
- hl = new QHBoxLayout( topLayout( ) );
- m_pEnableWaveFormEdit = new QCheckBox( i18n( "Wave form:" ), this );
- m_pWaveTypeCombo = new QComboBox( this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ m_pEnableWaveFormEdit = new TQCheckBox( i18n( "Wave form:" ), this );
+ m_pWaveTypeCombo = new TQComboBox( this );
m_pWaveTypeCombo->insertItem( i18n( "Ramp" ) );
m_pWaveTypeCombo->insertItem( i18n( "Triangle" ) );
m_pWaveTypeCombo->insertItem( i18n( "Sine" ) );
@@ -76,25 +76,25 @@ void PMBlendMapModifiersEdit::createTopWidgets( )
hl->addWidget( m_pWaveTypeCombo );
hl->addStretch( 1 );
- hl = new QHBoxLayout( topLayout( ) );
- m_pWaveExponentLabel = new QLabel( i18n( "Exponent:" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ m_pWaveExponentLabel = new TQLabel( i18n( "Exponent:" ), this );
m_pWaveExponentEdit = new PMFloatEdit( this );
hl->addWidget( m_pWaveExponentLabel );
hl->addWidget( m_pWaveExponentEdit );
hl->addStretch( 1 );
- connect( m_pEnableFrequencyEdit, SIGNAL( clicked( ) ), SLOT( slotFrequencyClicked( ) ) );
- connect( m_pFrequencyEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pEnablePhaseEdit, SIGNAL( clicked( ) ), SLOT( slotPhaseClicked( ) ) );
- connect( m_pPhaseEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pEnableWaveFormEdit, SIGNAL( clicked( ) ), SLOT( slotWaveFormClicked( ) ) );
- connect( m_pWaveExponentEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pWaveTypeCombo, SIGNAL( activated( int ) ), SLOT( slotTypeComboChanged( int ) ) );
+ connect( m_pEnableFrequencyEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotFrequencyClicked( ) ) );
+ connect( m_pFrequencyEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pEnablePhaseEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotPhaseClicked( ) ) );
+ connect( m_pPhaseEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pEnableWaveFormEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotWaveFormClicked( ) ) );
+ connect( m_pWaveExponentEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pWaveTypeCombo, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotTypeComboChanged( int ) ) );
}
void PMBlendMapModifiersEdit::displayObject( PMObject* o )
{
- QString str;
+ TQString str;
if( o->isA( "BlendMapModifiers" ) )
{
diff --git a/kpovmodeler/pmblendmapmodifiersedit.h b/kpovmodeler/pmblendmapmodifiersedit.h
index eb4e40b5..18f3fa87 100644
--- a/kpovmodeler/pmblendmapmodifiersedit.h
+++ b/kpovmodeler/pmblendmapmodifiersedit.h
@@ -28,14 +28,14 @@
class PMBlendMapModifiers;
class PMVectorEdit;
-class QComboBox;
+class TQComboBox;
class PMFloatEdit;
class PMIntEdit;
-class QLabel;
-class QCheckBox;
-class QWidget;
-class QLineEdit;
-class QPushButton;
+class TQLabel;
+class TQCheckBox;
+class TQWidget;
+class TQLineEdit;
+class TQPushButton;
/**
* Dialog edit class for @ref PMBlendMapModifiers.
@@ -48,7 +48,7 @@ public:
/**
* Creates a PMBlendMapModifiersEdit with parent and name
*/
- PMBlendMapModifiersEdit( QWidget* parent, const char* name = 0 );
+ PMBlendMapModifiersEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -86,14 +86,14 @@ private:
void setBlendMapModifiersType( int i );
PMBlendMapModifiers* m_pDisplayedObject;
- QComboBox* m_pWaveTypeCombo;
+ TQComboBox* m_pWaveTypeCombo;
PMFloatEdit* m_pFrequencyEdit;
PMFloatEdit* m_pPhaseEdit;
PMFloatEdit* m_pWaveExponentEdit;
- QLabel* m_pWaveExponentLabel;
- QCheckBox* m_pEnableFrequencyEdit;
- QCheckBox* m_pEnablePhaseEdit;
- QCheckBox* m_pEnableWaveFormEdit;
+ TQLabel* m_pWaveExponentLabel;
+ TQCheckBox* m_pEnableFrequencyEdit;
+ TQCheckBox* m_pEnablePhaseEdit;
+ TQCheckBox* m_pEnableWaveFormEdit;
};
diff --git a/kpovmodeler/pmblob.cpp b/kpovmodeler/pmblob.cpp
index 800c3b5a..6621cadf 100644
--- a/kpovmodeler/pmblob.cpp
+++ b/kpovmodeler/pmblob.cpp
@@ -56,12 +56,12 @@ PMBlob::~PMBlob( )
{
}
-QString PMBlob::description( ) const
+TQString PMBlob::description( ) const
{
return i18n( "blob" );
}
-void PMBlob::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMBlob::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
e.setAttribute( "threshold", m_threshold );
e.setAttribute( "sturm", m_sturm );
@@ -139,7 +139,7 @@ void PMBlob::setHierarchy( bool h )
}
}
-PMDialogEditBase* PMBlob::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMBlob::editWidget( TQWidget* parent ) const
{
return new PMBlobEdit( parent );
}
diff --git a/kpovmodeler/pmblob.h b/kpovmodeler/pmblob.h
index 986cec8c..2c764590 100644
--- a/kpovmodeler/pmblob.h
+++ b/kpovmodeler/pmblob.h
@@ -50,25 +50,25 @@ public:
/** */
virtual PMObject* copy( ) const { return new PMBlob( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
/** */
virtual void cleanUp( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMBlobEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/**
* Returns the name of the pixmap that is displayed in the tree view
* and dialog view
*/
- virtual QString pixmap( ) const { return QString( "pmblob" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmblob" ); }
/**
* Returns the threshold
diff --git a/kpovmodeler/pmblobcylinder.cpp b/kpovmodeler/pmblobcylinder.cpp
index 687ce132..d166a6a3 100644
--- a/kpovmodeler/pmblobcylinder.cpp
+++ b/kpovmodeler/pmblobcylinder.cpp
@@ -70,12 +70,12 @@ PMBlobCylinder::~PMBlobCylinder( )
{
}
-QString PMBlobCylinder::description( ) const
+TQString PMBlobCylinder::description( ) const
{
return i18n( "blob cylinder" );
}
-void PMBlobCylinder::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMBlobCylinder::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
e.setAttribute( "end_a", m_end1.serializeXML( ) );
e.setAttribute( "end_b", m_end2.serializeXML( ) );
@@ -160,7 +160,7 @@ void PMBlobCylinder::setStrength( double s )
}
}
-PMDialogEditBase* PMBlobCylinder::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMBlobCylinder::editWidget( TQWidget* parent ) const
{
return new PMBlobCylinderEdit( parent );
}
diff --git a/kpovmodeler/pmblobcylinder.h b/kpovmodeler/pmblobcylinder.h
index 80986cfe..1e9a10f1 100644
--- a/kpovmodeler/pmblobcylinder.h
+++ b/kpovmodeler/pmblobcylinder.h
@@ -54,23 +54,23 @@ public:
virtual PMObject* copy( ) const { return new PMBlobCylinder( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMBlobCylinderEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/**
* Returns the name of the pixmap that is displayed in the tree view and dialog view
*/
- virtual QString pixmap( ) const { return QString( "pmblobcylinder" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmblobcylinder" ); }
/**
* Return the end_1
diff --git a/kpovmodeler/pmblobcylinderedit.cpp b/kpovmodeler/pmblobcylinderedit.cpp
index 9313b8af..34910df0 100644
--- a/kpovmodeler/pmblobcylinderedit.cpp
+++ b/kpovmodeler/pmblobcylinderedit.cpp
@@ -21,12 +21,12 @@
#include "pmvectoredit.h"
#include "pmlineedits.h"
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klocale.h>
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
-PMBlobCylinderEdit::PMBlobCylinderEdit( QWidget* parent, const char* name )
+PMBlobCylinderEdit::PMBlobCylinderEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -36,32 +36,32 @@ void PMBlobCylinderEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- QHBoxLayout* layout;
- QGridLayout* gl;
+ TQHBoxLayout* layout;
+ TQGridLayout* gl;
m_pEnd1 = new PMVectorEdit( "x", "y", "z", this );
m_pEnd2 = new PMVectorEdit( "x", "y", "z", this );
m_pRadius = new PMFloatEdit( this );
m_pStrength = new PMFloatEdit( this );
- gl = new QGridLayout( topLayout( ), 2, 2 );
- gl->addWidget( new QLabel( i18n( "End 1:" ), this ), 0, 0 );
+ gl = new TQGridLayout( topLayout( ), 2, 2 );
+ gl->addWidget( new TQLabel( i18n( "End 1:" ), this ), 0, 0 );
gl->addWidget( m_pEnd1, 0, 1 );
- gl->addWidget( new QLabel( i18n( "End 2:" ), this ), 1, 0 );
+ gl->addWidget( new TQLabel( i18n( "End 2:" ), this ), 1, 0 );
gl->addWidget( m_pEnd2, 1, 1 );
- layout = new QHBoxLayout( topLayout( ) );
- gl = new QGridLayout( layout, 2, 2 );
- gl->addWidget( new QLabel( i18n( "Radius:" ), this ), 0, 0 );
+ layout = new TQHBoxLayout( topLayout( ) );
+ gl = new TQGridLayout( layout, 2, 2 );
+ gl->addWidget( new TQLabel( i18n( "Radius:" ), this ), 0, 0 );
gl->addWidget( m_pRadius, 0, 1 );
- gl->addWidget( new QLabel( i18n( "Strength:" ), this ), 1, 0 );
+ gl->addWidget( new TQLabel( i18n( "Strength:" ), this ), 1, 0 );
gl->addWidget( m_pStrength, 1, 1 );
layout->addStretch( 1 );
- connect( m_pEnd1, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pEnd2, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pRadius, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pStrength, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pEnd1, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pEnd2, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pRadius, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pStrength, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
}
void PMBlobCylinderEdit::displayObject( PMObject* o )
diff --git a/kpovmodeler/pmblobcylinderedit.h b/kpovmodeler/pmblobcylinderedit.h
index d156e412..b9ab169e 100644
--- a/kpovmodeler/pmblobcylinderedit.h
+++ b/kpovmodeler/pmblobcylinderedit.h
@@ -38,7 +38,7 @@ public:
/**
* Creates a PMBlobCylinderEdit with parent and name
*/
- PMBlobCylinderEdit( QWidget* parent, const char* name = 0 );
+ PMBlobCylinderEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
diff --git a/kpovmodeler/pmblobedit.cpp b/kpovmodeler/pmblobedit.cpp
index 80ebd510..a38d9639 100644
--- a/kpovmodeler/pmblobedit.cpp
+++ b/kpovmodeler/pmblobedit.cpp
@@ -20,12 +20,12 @@
#include "pmblob.h"
#include "pmlineedits.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
#include <klocale.h>
-PMBlobEdit::PMBlobEdit( QWidget* parent, const char* name )
+PMBlobEdit::PMBlobEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -35,8 +35,8 @@ void PMBlobEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- QHBoxLayout* hl = new QHBoxLayout( topLayout( ) );
- hl->addWidget( new QLabel( i18n( "Threshold:" ), this ) );
+ TQHBoxLayout* hl = new TQHBoxLayout( topLayout( ) );
+ hl->addWidget( new TQLabel( i18n( "Threshold:" ), this ) );
m_pThreshold = new PMFloatEdit( this );
hl->addWidget( m_pThreshold );
m_pThreshold->setValidation( true, 0.0, false, 0 );
@@ -44,14 +44,14 @@ void PMBlobEdit::createTopWidgets( )
PMFloatEdit::OpLess );
hl->addStretch( 1 );
- m_pSturm = new QCheckBox( i18n( "Sturm" ), this );
+ m_pSturm = new TQCheckBox( i18n( "Sturm" ), this );
topLayout( )->addWidget( m_pSturm );
- m_pHierarchy = new QCheckBox( i18n( "Hierarchy" ), this );
+ m_pHierarchy = new TQCheckBox( i18n( "Hierarchy" ), this );
topLayout( )->addWidget( m_pHierarchy );
- connect( m_pThreshold, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pHierarchy, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pSturm, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pThreshold, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pHierarchy, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pSturm, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
}
void PMBlobEdit::displayObject( PMObject* o )
diff --git a/kpovmodeler/pmblobedit.h b/kpovmodeler/pmblobedit.h
index df07ba30..5677fb9b 100644
--- a/kpovmodeler/pmblobedit.h
+++ b/kpovmodeler/pmblobedit.h
@@ -28,7 +28,7 @@
class PMBlob;
class PMFloatEdit;
-class QCheckBox;
+class TQCheckBox;
/**
* Dialog edit class for @ref PMBlob
@@ -41,7 +41,7 @@ public:
/**
* Creates a PMBlobEdit with parent and name
*/
- PMBlobEdit( QWidget* parent, const char* name = 0 );
+ PMBlobEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -57,8 +57,8 @@ protected:
private:
PMBlob* m_pDisplayedObject;
PMFloatEdit* m_pThreshold;
- QCheckBox* m_pSturm;
- QCheckBox* m_pHierarchy;
+ TQCheckBox* m_pSturm;
+ TQCheckBox* m_pHierarchy;
};
diff --git a/kpovmodeler/pmblobsphere.cpp b/kpovmodeler/pmblobsphere.cpp
index 6ca96769..cbcd33a4 100644
--- a/kpovmodeler/pmblobsphere.cpp
+++ b/kpovmodeler/pmblobsphere.cpp
@@ -67,7 +67,7 @@ PMBlobSphere::~PMBlobSphere( )
}
-QString PMBlobSphere::description( ) const
+TQString PMBlobSphere::description( ) const
{
return i18n( "blob sphere" );
}
@@ -91,7 +91,7 @@ PMMetaObject* PMBlobSphere::metaObject( ) const
return s_pMetaObject;
}
-void PMBlobSphere::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMBlobSphere::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
e.setAttribute( "centre", m_centre.serializeXML( ) );
e.setAttribute( "radius", m_radius );
@@ -107,7 +107,7 @@ void PMBlobSphere::readAttributes( const PMXMLHelper& h )
Base::readAttributes( h );
}
-PMDialogEditBase* PMBlobSphere::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMBlobSphere::editWidget( TQWidget* parent ) const
{
return new PMBlobSphereEdit( parent );
}
diff --git a/kpovmodeler/pmblobsphere.h b/kpovmodeler/pmblobsphere.h
index bb75b856..0abe983e 100644
--- a/kpovmodeler/pmblobsphere.h
+++ b/kpovmodeler/pmblobsphere.h
@@ -52,24 +52,24 @@ public:
/** */
virtual PMObject* copy( ) const { return new PMBlobSphere( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMBlobSphereEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/**
* Returns the name of the pixmap that is displayed in the tree view
* and dialog view
*/
- virtual QString pixmap( ) const { return QString( "pmblobsphere" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmblobsphere" ); }
/**
* Returns the centre of the sphere
diff --git a/kpovmodeler/pmblobsphereedit.cpp b/kpovmodeler/pmblobsphereedit.cpp
index 26291248..ba4e226b 100644
--- a/kpovmodeler/pmblobsphereedit.cpp
+++ b/kpovmodeler/pmblobsphereedit.cpp
@@ -20,11 +20,11 @@
#include "pmvectoredit.h"
#include "pmlineedits.h"
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klocale.h>
-PMBlobSphereEdit::PMBlobSphereEdit( QWidget* parent, const char* name )
+PMBlobSphereEdit::PMBlobSphereEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -34,27 +34,27 @@ void PMBlobSphereEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- QHBoxLayout* layout;
+ TQHBoxLayout* layout;
m_pCentre = new PMVectorEdit( "x", "y", "z", this );
m_pRadius = new PMFloatEdit( this );
m_pStrength = new PMFloatEdit( this );
- layout = new QHBoxLayout( topLayout( ) );
- layout->addWidget( new QLabel( i18n( "Center:" ), this ) );
+ layout = new TQHBoxLayout( topLayout( ) );
+ layout->addWidget( new TQLabel( i18n( "Center:" ), this ) );
layout->addWidget( m_pCentre );
- layout = new QHBoxLayout( topLayout( ) );
- QGridLayout* gl = new QGridLayout( layout, 2, 2 );
- gl->addWidget( new QLabel( i18n( "Radius:" ), this ), 0, 0 );
+ layout = new TQHBoxLayout( topLayout( ) );
+ TQGridLayout* gl = new TQGridLayout( layout, 2, 2 );
+ gl->addWidget( new TQLabel( i18n( "Radius:" ), this ), 0, 0 );
gl->addWidget( m_pRadius, 0, 1 );
- gl->addWidget( new QLabel( i18n( "Strength:" ), this ), 1, 0 );
+ gl->addWidget( new TQLabel( i18n( "Strength:" ), this ), 1, 0 );
gl->addWidget( m_pStrength, 1, 1 );
layout->addStretch( 1 );
- connect( m_pCentre, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pRadius, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pStrength, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pCentre, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pRadius, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pStrength, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
}
void PMBlobSphereEdit::displayObject( PMObject* o )
diff --git a/kpovmodeler/pmblobsphereedit.h b/kpovmodeler/pmblobsphereedit.h
index 08f0f1d4..53b65ab2 100644
--- a/kpovmodeler/pmblobsphereedit.h
+++ b/kpovmodeler/pmblobsphereedit.h
@@ -39,7 +39,7 @@ public:
/**
* Creates a PMBlobSphereEdit with parent and name
*/
- PMBlobSphereEdit( QWidget* parent, const char* name = 0 );
+ PMBlobSphereEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
diff --git a/kpovmodeler/pmboundedby.cpp b/kpovmodeler/pmboundedby.cpp
index 127a05f8..5cc66e55 100644
--- a/kpovmodeler/pmboundedby.cpp
+++ b/kpovmodeler/pmboundedby.cpp
@@ -62,7 +62,7 @@ void PMBoundedBy::cleanUp( ) const
Base::cleanUp( );
}
-QString PMBoundedBy::description( ) const
+TQString PMBoundedBy::description( ) const
{
return i18n( "bounded by" );
}
@@ -79,7 +79,7 @@ bool PMBoundedBy::clippedBy( ) const
return cb;
}
-void PMBoundedBy::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMBoundedBy::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
// no extra data at the moment
Base::serialize( e, doc );
@@ -91,7 +91,7 @@ void PMBoundedBy::readAttributes( const PMXMLHelper& h )
Base::readAttributes( h );
}
-PMDialogEditBase* PMBoundedBy::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMBoundedBy::editWidget( TQWidget* parent ) const
{
return new PMBoundedByEdit( parent );
}
diff --git a/kpovmodeler/pmboundedby.h b/kpovmodeler/pmboundedby.h
index 22ac3fb4..7c88a6aa 100644
--- a/kpovmodeler/pmboundedby.h
+++ b/kpovmodeler/pmboundedby.h
@@ -46,7 +46,7 @@ public:
virtual PMObject* copy( ) const { return new PMBoundedBy( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
@@ -57,19 +57,19 @@ public:
virtual bool dataChangeOnInsertRemove( ) const { return true; }
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMBoundedByEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/**
* Returns the name of the pixmap that is displayed in the tree view
* and dialog view
*/
- virtual QString pixmap( ) const { return QString( "pmboundedby" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmboundedby" ); }
/** */
virtual void childRemoved( PMObject* );
diff --git a/kpovmodeler/pmboundedbyedit.cpp b/kpovmodeler/pmboundedbyedit.cpp
index 2bf1409e..8a41fa52 100644
--- a/kpovmodeler/pmboundedbyedit.cpp
+++ b/kpovmodeler/pmboundedbyedit.cpp
@@ -19,11 +19,11 @@
#include "pmboundedbyedit.h"
#include "pmboundedby.h"
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klocale.h>
-PMBoundedByEdit::PMBoundedByEdit( QWidget* parent, const char* name )
+PMBoundedByEdit::PMBoundedByEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -33,9 +33,9 @@ void PMBoundedByEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- m_pChildLabel = new QLabel( i18n( "No child objects" ), this );
+ m_pChildLabel = new TQLabel( i18n( "No child objects" ), this );
topLayout( )->addWidget( m_pChildLabel );
- m_pClippedByLabel = new QLabel( i18n( "(= clipped by)" ), this );
+ m_pClippedByLabel = new TQLabel( i18n( "(= clipped by)" ), this );
topLayout( )->addWidget( m_pClippedByLabel );
}
diff --git a/kpovmodeler/pmboundedbyedit.h b/kpovmodeler/pmboundedbyedit.h
index f4d24a41..53da66f2 100644
--- a/kpovmodeler/pmboundedbyedit.h
+++ b/kpovmodeler/pmboundedbyedit.h
@@ -27,7 +27,7 @@
#include "pmdialogeditbase.h"
class PMBoundedBy;
-class QLabel;
+class TQLabel;
/**
* Dialog edit class for @ref PMBoundedBy
@@ -40,7 +40,7 @@ public:
/**
* Creates a PMBoundedByEdit with parent and name
*/
- PMBoundedByEdit( QWidget* parent, const char* name = 0 );
+ PMBoundedByEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -51,8 +51,8 @@ protected:
private:
PMBoundedBy* m_pDisplayedObject;
- QLabel* m_pChildLabel;
- QLabel* m_pClippedByLabel;
+ TQLabel* m_pChildLabel;
+ TQLabel* m_pClippedByLabel;
};
diff --git a/kpovmodeler/pmbox.cpp b/kpovmodeler/pmbox.cpp
index 045389bb..155ebc68 100644
--- a/kpovmodeler/pmbox.cpp
+++ b/kpovmodeler/pmbox.cpp
@@ -57,12 +57,12 @@ PMBox::~PMBox( )
{
}
-QString PMBox::description( ) const
+TQString PMBox::description( ) const
{
return i18n( "box" );
}
-void PMBox::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMBox::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
e.setAttribute( "corner_a", m_corner1.serializeXML( ) );
e.setAttribute( "corner_b", m_corner2.serializeXML( ) );
@@ -114,7 +114,7 @@ void PMBox::setCorner2( const PMVector& p )
}
}
-PMDialogEditBase* PMBox::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMBox::editWidget( TQWidget* parent ) const
{
return new PMBoxEdit( parent );
}
diff --git a/kpovmodeler/pmbox.h b/kpovmodeler/pmbox.h
index d6627ffe..e6abcf75 100644
--- a/kpovmodeler/pmbox.h
+++ b/kpovmodeler/pmbox.h
@@ -53,24 +53,24 @@ public:
/** */
virtual PMObject* copy( ) const { return new PMBox( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMBoxEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/**
* Returns the name of the pixmap that is displayed in the tree view
* and dialog view
*/
- virtual QString pixmap( ) const { return QString( "pmbox" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmbox" ); }
/**
* Returns Corner_1
diff --git a/kpovmodeler/pmboxedit.cpp b/kpovmodeler/pmboxedit.cpp
index 2db1eb79..6b6a2f2a 100644
--- a/kpovmodeler/pmboxedit.cpp
+++ b/kpovmodeler/pmboxedit.cpp
@@ -20,11 +20,11 @@
#include "pmbox.h"
#include "pmvectoredit.h"
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klocale.h>
-PMBoxEdit::PMBoxEdit( QWidget* parent, const char* name )
+PMBoxEdit::PMBoxEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -37,14 +37,14 @@ void PMBoxEdit::createTopWidgets( )
m_pCorner1 = new PMVectorEdit( "x", "y", "z", this );
m_pCorner2 = new PMVectorEdit( "x", "y", "z", this );
- QGridLayout* gl = new QGridLayout( topLayout( ), 2, 2 );
- gl->addWidget( new QLabel( i18n( "Corner 1:" ), this ), 0, 0 );
+ TQGridLayout* gl = new TQGridLayout( topLayout( ), 2, 2 );
+ gl->addWidget( new TQLabel( i18n( "Corner 1:" ), this ), 0, 0 );
gl->addWidget( m_pCorner1, 0, 1 );
- gl->addWidget( new QLabel( i18n( "Corner 2:" ), this ), 1, 0 );
+ gl->addWidget( new TQLabel( i18n( "Corner 2:" ), this ), 1, 0 );
gl->addWidget( m_pCorner2, 1, 1 );
- connect( m_pCorner1, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pCorner2, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pCorner1, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pCorner2, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
}
void PMBoxEdit::displayObject( PMObject* o )
diff --git a/kpovmodeler/pmboxedit.h b/kpovmodeler/pmboxedit.h
index 4f87ceac..7fd6fadc 100644
--- a/kpovmodeler/pmboxedit.h
+++ b/kpovmodeler/pmboxedit.h
@@ -40,7 +40,7 @@ public:
/**
* Creates a PMBoxEdit with parent and name
*/
- PMBoxEdit( QWidget* parent, const char* name = 0 );
+ PMBoxEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
diff --git a/kpovmodeler/pmbumpmap.cpp b/kpovmodeler/pmbumpmap.cpp
index e9549bd9..21fb29a3 100644
--- a/kpovmodeler/pmbumpmap.cpp
+++ b/kpovmodeler/pmbumpmap.cpp
@@ -82,7 +82,7 @@ PMBumpMap::~PMBumpMap( )
{
}
-void PMBumpMap::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMBumpMap::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
switch( m_bitmapType )
{
@@ -151,7 +151,7 @@ void PMBumpMap::serialize( QDomElement& e, QDomDocument& doc ) const
void PMBumpMap::readAttributes( const PMXMLHelper& h )
{
- QString str;
+ TQString str;
str = h.stringAttribute( "bitmap_type", "sys" );
if( str == "gif" )
@@ -261,7 +261,7 @@ void PMBumpMap::cleanUp( ) const
}
-QString PMBumpMap::description( ) const
+TQString PMBumpMap::description( ) const
{
return i18n( "bump map" );
}
@@ -276,7 +276,7 @@ void PMBumpMap::setBitmapType( PMBitmapType c )
}
}
-void PMBumpMap::setBitmapFileName( const QString& c )
+void PMBumpMap::setBitmapFileName( const TQString& c )
{
if( c != m_bitmapFile )
{
@@ -336,7 +336,7 @@ void PMBumpMap::setBumpSize( double c )
}
}
-PMDialogEditBase* PMBumpMap::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMBumpMap::editWidget( TQWidget* parent ) const
{
return new PMBumpMapEdit( parent );
}
diff --git a/kpovmodeler/pmbumpmap.h b/kpovmodeler/pmbumpmap.h
index 69bf53a3..ccdf5b98 100644
--- a/kpovmodeler/pmbumpmap.h
+++ b/kpovmodeler/pmbumpmap.h
@@ -69,7 +69,7 @@ public:
/** */
virtual PMObject* copy( ) const { return new PMBumpMap( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
@@ -77,17 +77,17 @@ public:
virtual void cleanUp( ) const;
/** */
- virtual QString pixmap( ) const { return QString( "pmbumpmap" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmbumpmap" ); }
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMBumpMapEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/**
* Gets the bitmap type
@@ -96,7 +96,7 @@ public:
/**
* Gets the bitmap file name
*/
- QString bitmapFile( ) const { return m_bitmapFile; }
+ TQString bitmapFile( ) const { return m_bitmapFile; }
/**
* Returns true if use_index is enabled
*/
@@ -125,7 +125,7 @@ public:
void setBitmapType( PMBitmapType c );
/**
* Sets the bitmap file name*/
- void setBitmapFileName( const QString& c );
+ void setBitmapFileName( const TQString& c );
/**
* Sets if use_index is enabled
*/
@@ -159,7 +159,7 @@ private:
* BumpMap type
*/
PMBitmapType m_bitmapType;
- QString m_bitmapFile;
+ TQString m_bitmapFile;
bool m_once;
PMMapType m_mapType;
PMInterpolateType m_interpolateType;
diff --git a/kpovmodeler/pmbumpmapedit.cpp b/kpovmodeler/pmbumpmapedit.cpp
index d792cec2..f5de7a55 100644
--- a/kpovmodeler/pmbumpmapedit.cpp
+++ b/kpovmodeler/pmbumpmapedit.cpp
@@ -23,14 +23,14 @@
#include "pmpalettevalueedit.h"
#include "pmvector.h"
-#include <qwidget.h>
-#include <qlayout.h>
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
-#include <qtooltip.h>
+#include <tqwidget.h>
+#include <tqlayout.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
+#include <tqtooltip.h>
#include <ktabctl.h>
#include <klocale.h>
#include <kmessagebox.h>
@@ -38,7 +38,7 @@
#include <kfiledialog.h>
#include <kiconloader.h>
-PMBumpMapEdit::PMBumpMapEdit( QWidget* parent, const char* name )
+PMBumpMapEdit::PMBumpMapEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -46,14 +46,14 @@ PMBumpMapEdit::PMBumpMapEdit( QWidget* parent, const char* name )
void PMBumpMapEdit::createTopWidgets( )
{
- QLabel* lbl;
- QHBoxLayout* hl;
+ TQLabel* lbl;
+ TQHBoxLayout* hl;
Base::createTopWidgets( );
- hl = new QHBoxLayout( topLayout( ) );
- lbl = new QLabel( i18n( "File type:" ), this );
- m_pImageFileTypeEdit = new QComboBox( this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ lbl = new TQLabel( i18n( "File type:" ), this );
+ m_pImageFileTypeEdit = new TQComboBox( this );
m_pImageFileTypeEdit->insertItem( "gif" );
m_pImageFileTypeEdit->insertItem( "tga" );
m_pImageFileTypeEdit->insertItem( "iff" );
@@ -66,22 +66,22 @@ void PMBumpMapEdit::createTopWidgets( )
hl->addWidget( lbl );
hl->addWidget( m_pImageFileTypeEdit );
- hl = new QHBoxLayout( topLayout( ) );
- lbl = new QLabel( i18n( "File name:" ), this );
- m_pImageFileNameEdit = new QLineEdit( this );
- m_pImageFileNameBrowse = new QPushButton( this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ lbl = new TQLabel( i18n( "File name:" ), this );
+ m_pImageFileNameEdit = new TQLineEdit( this );
+ m_pImageFileNameBrowse = new TQPushButton( this );
m_pImageFileNameBrowse->setPixmap( SmallIcon( "fileopen" ) );
hl->addWidget( lbl );
hl->addWidget( m_pImageFileNameEdit );
hl->addWidget( m_pImageFileNameBrowse );
hl->addStretch( 1 );
- m_pOnceEdit = new QCheckBox( i18n( "Once" ), this );
+ m_pOnceEdit = new TQCheckBox( i18n( "Once" ), this );
topLayout( )->addWidget( m_pOnceEdit );
- hl = new QHBoxLayout( topLayout( ) );
- lbl = new QLabel( i18n( "Interpolate:" ), this );
- m_pInterpolateTypeEdit = new QComboBox( this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ lbl = new TQLabel( i18n( "Interpolate:" ), this );
+ m_pInterpolateTypeEdit = new TQComboBox( this );
m_pInterpolateTypeEdit->insertItem( i18n( "None" ) );
m_pInterpolateTypeEdit->insertItem( i18n( "Bilinear" ) );
m_pInterpolateTypeEdit->insertItem( i18n( "Normalized" ) );
@@ -89,9 +89,9 @@ void PMBumpMapEdit::createTopWidgets( )
hl->addWidget( m_pInterpolateTypeEdit );
hl->addStretch( 1 );
- hl = new QHBoxLayout( topLayout( ) );
- lbl = new QLabel( i18n( "Map type:" ), this );
- m_pMapTypeEdit = new QComboBox( this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ lbl = new TQLabel( i18n( "Map type:" ), this );
+ m_pMapTypeEdit = new TQComboBox( this );
m_pMapTypeEdit->insertItem( i18n( "Planar" ) );
m_pMapTypeEdit->insertItem( i18n( "Spherical" ) );
m_pMapTypeEdit->insertItem( i18n( "Cylindrical" ) );
@@ -100,24 +100,24 @@ void PMBumpMapEdit::createTopWidgets( )
hl->addWidget( m_pMapTypeEdit );
hl->addStretch( 1 );
- m_pUseIndexEdit = new QCheckBox( i18n( "Use index" ), this );
+ m_pUseIndexEdit = new TQCheckBox( i18n( "Use index" ), this );
topLayout( )->addWidget( m_pUseIndexEdit );
- hl = new QHBoxLayout( topLayout( ) );
- lbl = new QLabel( i18n( "Bump size:" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ lbl = new TQLabel( i18n( "Bump size:" ), this );
m_pBumpSizeEdit = new PMFloatEdit( this );
hl->addWidget( lbl );
hl->addWidget( m_pBumpSizeEdit );
hl->addStretch( 1 );
- connect( m_pImageFileTypeEdit, SIGNAL( activated( int ) ), SLOT( slotImageFileTypeChanged( int ) ) );
- connect( m_pMapTypeEdit, SIGNAL( activated( int ) ), SLOT( slotMapTypeChanged( int ) ) );
- connect( m_pInterpolateTypeEdit, SIGNAL( activated( int ) ), SLOT( slotInterpolateTypeChanged( int ) ) );
- connect( m_pImageFileNameBrowse, SIGNAL( clicked( ) ), SLOT( slotImageFileBrowseClicked( ) ) );
- connect( m_pImageFileNameEdit, SIGNAL( textChanged( const QString& ) ), SLOT( slotImageFileNameChanged( const QString& ) ) );
- connect( m_pOnceEdit, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pUseIndexEdit, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pBumpSizeEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pImageFileTypeEdit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotImageFileTypeChanged( int ) ) );
+ connect( m_pMapTypeEdit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotMapTypeChanged( int ) ) );
+ connect( m_pInterpolateTypeEdit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotInterpolateTypeChanged( int ) ) );
+ connect( m_pImageFileNameBrowse, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotImageFileBrowseClicked( ) ) );
+ connect( m_pImageFileNameEdit, TQT_SIGNAL( textChanged( const TQString& ) ), TQT_SLOT( slotImageFileNameChanged( const TQString& ) ) );
+ connect( m_pOnceEdit, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pUseIndexEdit, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pBumpSizeEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
}
void PMBumpMapEdit::displayObject( PMObject* o )
@@ -300,14 +300,14 @@ void PMBumpMapEdit::slotMapTypeChanged( const int /*a*/ )
emit dataChanged( );
}
-void PMBumpMapEdit::slotImageFileNameChanged( const QString& /*a*/ )
+void PMBumpMapEdit::slotImageFileNameChanged( const TQString& /*a*/ )
{
emit dataChanged( );
}
void PMBumpMapEdit::slotImageFileBrowseClicked( )
{
- QString str = KFileDialog::getOpenFileName( QString::null, QString::null );
+ TQString str = KFileDialog::getOpenFileName( TQString::null, TQString::null );
if( !str.isEmpty() )
{
diff --git a/kpovmodeler/pmbumpmapedit.h b/kpovmodeler/pmbumpmapedit.h
index cceb2b84..109128d6 100644
--- a/kpovmodeler/pmbumpmapedit.h
+++ b/kpovmodeler/pmbumpmapedit.h
@@ -30,14 +30,14 @@
class PMBumpMap;
class PMPaletteValue;
class PMVectorEdit;
-class QComboBox;
+class TQComboBox;
class PMFloatEdit;
class PMIntEdit;
-class QLabel;
-class QCheckBox;
-class QWidget;
-class QLineEdit;
-class QPushButton;
+class TQLabel;
+class TQCheckBox;
+class TQWidget;
+class TQLineEdit;
+class TQPushButton;
/**
* Dialog edit class for @ref PMBumpMap.
@@ -50,7 +50,7 @@ public:
/**
* Creates a PMBumpMapEdit with parent and name
*/
- PMBumpMapEdit( QWidget* parent, const char* name = 0 );
+ PMBumpMapEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
/** */
@@ -68,18 +68,18 @@ private slots:
/** */
void slotInterpolateTypeChanged( int a );
/** */
- void slotImageFileNameChanged( const QString& a );
+ void slotImageFileNameChanged( const TQString& a );
/** */
void slotImageFileBrowseClicked( );
private:
PMBumpMap* m_pDisplayedObject;
- QComboBox* m_pImageFileTypeEdit;
- QLineEdit* m_pImageFileNameEdit;
- QPushButton* m_pImageFileNameBrowse;
- QCheckBox* m_pOnceEdit;
- QComboBox* m_pMapTypeEdit;
- QComboBox* m_pInterpolateTypeEdit;
- QCheckBox* m_pUseIndexEdit;
+ TQComboBox* m_pImageFileTypeEdit;
+ TQLineEdit* m_pImageFileNameEdit;
+ TQPushButton* m_pImageFileNameBrowse;
+ TQCheckBox* m_pOnceEdit;
+ TQComboBox* m_pMapTypeEdit;
+ TQComboBox* m_pInterpolateTypeEdit;
+ TQCheckBox* m_pUseIndexEdit;
PMFloatEdit* m_pBumpSizeEdit;
};
diff --git a/kpovmodeler/pmcamera.cpp b/kpovmodeler/pmcamera.cpp
index b224f340..ca37f751 100644
--- a/kpovmodeler/pmcamera.cpp
+++ b/kpovmodeler/pmcamera.cpp
@@ -114,12 +114,12 @@ PMCamera::~PMCamera( )
{
}
-QString PMCamera::description( ) const
+TQString PMCamera::description( ) const
{
return i18n( "camera" );
}
-void PMCamera::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMCamera::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
e.setAttribute( "camera_type", cameraTypeToString( m_cameraType ) );
e.setAttribute( "cylinder_type", m_cylinderType );
@@ -443,7 +443,7 @@ void PMCamera::setExportPovray( bool ex )
}
}
-PMDialogEditBase* PMCamera::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMCamera::editWidget( TQWidget* parent ) const
{
return new PMCameraEdit( parent );
}
@@ -699,9 +699,9 @@ void PMCamera::calculateLookAtAngle( PMVector& right, PMVector& up, PMVector& di
up *= upLen;
}
-QString PMCamera::cameraTypeToString( PMCamera::CameraType t )
+TQString PMCamera::cameraTypeToString( PMCamera::CameraType t )
{
- QString str( "perspective" );
+ TQString str( "perspective" );
switch( t )
{
case Perspective:
@@ -728,7 +728,7 @@ QString PMCamera::cameraTypeToString( PMCamera::CameraType t )
return str;
}
-PMCamera::CameraType PMCamera::stringToCameraType( const QString& str )
+PMCamera::CameraType PMCamera::stringToCameraType( const TQString& str )
{
CameraType t = Perspective;
diff --git a/kpovmodeler/pmcamera.h b/kpovmodeler/pmcamera.h
index 9f09ee58..7d385909 100644
--- a/kpovmodeler/pmcamera.h
+++ b/kpovmodeler/pmcamera.h
@@ -57,22 +57,22 @@ public:
/** */
virtual PMObject* copy( ) const { return new PMCamera( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMCameraEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/** */
- virtual QString pixmap( ) const { return QString( "pmcamera" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmcamera" ); }
/**
* Returns the location
@@ -243,11 +243,11 @@ public:
/**
* Converts the camera type to a string
*/
- static QString cameraTypeToString( CameraType t );
+ static TQString cameraTypeToString( CameraType t );
/**
* Converts a string to the camera type
*/
- static CameraType stringToCameraType( const QString& s );
+ static CameraType stringToCameraType( const TQString& s );
/** */
virtual void cleanUp( ) const;
diff --git a/kpovmodeler/pmcameraedit.cpp b/kpovmodeler/pmcameraedit.cpp
index 676c9f8b..471fa19a 100644
--- a/kpovmodeler/pmcameraedit.cpp
+++ b/kpovmodeler/pmcameraedit.cpp
@@ -21,16 +21,16 @@
#include "pmvectoredit.h"
#include "pmlineedits.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcombobox.h>
-#include <qcheckbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
+#include <tqcheckbox.h>
#include <klocale.h>
#include <kmessagebox.h>
-PMCameraEdit::PMCameraEdit( QWidget* parent, const char* name )
+PMCameraEdit::PMCameraEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -40,10 +40,10 @@ void PMCameraEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- QGridLayout* layout;
- QLabel* label;
+ TQGridLayout* layout;
+ TQLabel* label;
- m_pCameraType = new QComboBox( false, this );
+ m_pCameraType = new TQComboBox( false, this );
m_pCameraType->insertItem( i18n( "Perspective" ) );
m_pCameraType->insertItem( i18n( "Orthographic" ) );
m_pCameraType->insertItem( i18n( "Fish Eye" ) );
@@ -52,7 +52,7 @@ void PMCameraEdit::createTopWidgets( )
m_pCameraType->insertItem( i18n( "Panoramic" ) );
m_pCameraType->insertItem( i18n( "Cylinder" ) );
- m_pCylinderType = new QComboBox( false, this );
+ m_pCylinderType = new TQComboBox( false, this );
m_pCylinderType->insertItem( i18n( "1: Vertical, Fixed Viewpoint" ) );
m_pCylinderType->insertItem( i18n( "2: Horizontal, Fixed Viewpoint" ) );
m_pCylinderType->insertItem( i18n( "3: Vertical, Variable Viewpoint" ) );
@@ -67,38 +67,38 @@ void PMCameraEdit::createTopWidgets( )
m_pAngle = new PMFloatEdit( this );
m_pAngle->setValidation( true, 0.0, true, 360.0 );
- QHBoxLayout* hl = new QHBoxLayout( topLayout( ) );
- hl->addWidget( new QLabel( i18n( "Camera type:" ), this ) );
+ TQHBoxLayout* hl = new TQHBoxLayout( topLayout( ) );
+ hl->addWidget( new TQLabel( i18n( "Camera type:" ), this ) );
hl->addWidget( m_pCameraType );
- hl = new QHBoxLayout( topLayout( ) );
- m_pCylinderTypeLabel = new QLabel( i18n( "Cylinder type:" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ m_pCylinderTypeLabel = new TQLabel( i18n( "Cylinder type:" ), this );
hl->addWidget( m_pCylinderTypeLabel );
hl->addWidget( m_pCylinderType );
- layout = new QGridLayout( topLayout( ), 7, 2 );
- layout->addWidget( new QLabel( i18n( "Location:" ), this ), 0, 0 );
+ layout = new TQGridLayout( topLayout( ), 7, 2 );
+ layout->addWidget( new TQLabel( i18n( "Location:" ), this ), 0, 0 );
layout->addWidget( m_pLocation, 0, 1 );
- layout->addWidget( new QLabel( i18n( "Sky:" ), this ), 1, 0 );
+ layout->addWidget( new TQLabel( i18n( "Sky:" ), this ), 1, 0 );
layout->addWidget( m_pSky, 1, 1 );
- layout->addWidget( new QLabel( i18n( "Direction:" ), this ), 2, 0 );
+ layout->addWidget( new TQLabel( i18n( "Direction:" ), this ), 2, 0 );
layout->addWidget( m_pDirection, 2, 1 );
- layout->addWidget( new QLabel( i18n( "Right:" ), this ), 3, 0 );
+ layout->addWidget( new TQLabel( i18n( "Right:" ), this ), 3, 0 );
layout->addWidget( m_pRight, 3, 1 );
- layout->addWidget( new QLabel( i18n( "Up:" ), this ), 4, 0 );
+ layout->addWidget( new TQLabel( i18n( "Up:" ), this ), 4, 0 );
layout->addWidget( m_pUp, 4, 1 );
- layout->addWidget( new QLabel( i18n( "Look at:" ), this ), 5, 0 );
+ layout->addWidget( new TQLabel( i18n( "Look at:" ), this ), 5, 0 );
layout->addWidget( m_pLookAt, 5, 1 );
- m_pEnableAngle = new QCheckBox( i18n( "Angle:" ), this );
+ m_pEnableAngle = new TQCheckBox( i18n( "Angle:" ), this );
layout->addWidget( m_pEnableAngle, 6, 0 );
layout->addWidget( m_pAngle, 6, 1, AlignLeft );
- m_pFocalBlur = new QCheckBox( i18n( "Focal blur" ), this );
+ m_pFocalBlur = new TQCheckBox( i18n( "Focal blur" ), this );
topLayout( )->addWidget( m_pFocalBlur );
m_pAperture = new PMFloatEdit( this );
@@ -116,54 +116,54 @@ void PMCameraEdit::createTopWidgets( )
m_pVariance->setValidation( true, 0, false, 0 );
m_focalWidgets.append( m_pVariance );
- layout = new QGridLayout( topLayout( ), 5, 2 );
- label = new QLabel( i18n( "Aperture:" ), this );
+ layout = new TQGridLayout( topLayout( ), 5, 2 );
+ label = new TQLabel( i18n( "Aperture:" ), this );
m_focalWidgets.append( label );
layout->addWidget( label, 0, 0 );
layout->addWidget( m_pAperture, 0, 1 );
- label = new QLabel( i18n( "Blur samples:" ), this );
+ label = new TQLabel( i18n( "Blur samples:" ), this );
m_focalWidgets.append( label );
layout->addWidget( label, 1, 0 );
layout->addWidget( m_pBlurSamples, 1, 1 );
- label = new QLabel( i18n( "Focal point:" ), this );
+ label = new TQLabel( i18n( "Focal point:" ), this );
m_focalWidgets.append( label );
layout->addWidget( label, 2, 0 );
layout->addWidget( m_pFocalPoint, 2, 1 );
- label = new QLabel( i18n( "Confidence:" ), this );
+ label = new TQLabel( i18n( "Confidence:" ), this );
m_focalWidgets.append( label );
layout->addWidget( label, 3, 0 );
layout->addWidget( m_pConfidence, 3, 1 );
- label = new QLabel( i18n( "Variance:" ), this );
+ label = new TQLabel( i18n( "Variance:" ), this );
m_focalWidgets.append( label );
layout->addWidget( label, 4, 0 );
layout->addWidget( m_pVariance, 4, 1 );
- m_pExport = new QCheckBox( i18n( "Export to renderer" ), this );
+ m_pExport = new TQCheckBox( i18n( "Export to renderer" ), this );
topLayout( )->addWidget( m_pExport );
- connect( m_pLocation, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pDirection, SIGNAL( dataChanged( ) ), SLOT( slotDirectionChanged( ) ) );
- connect( m_pRight, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pRight, SIGNAL( dataChanged( ) ), SLOT( slotRightChanged( ) ) );
- connect( m_pUp, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pSky, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pLookAt, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pEnableAngle, SIGNAL( toggled( bool ) ),
- SLOT( slotAngleToggled( bool ) ) );
- connect( m_pAngle, SIGNAL( dataChanged( ) ), SLOT( slotAngleChanged( ) ) );
- connect( m_pCameraType, SIGNAL( activated( int ) ),
- SLOT( slotCameraTypeActivated( int ) ) );
- connect( m_pCylinderType, SIGNAL( activated( int ) ),
- SLOT( slotCylinderTypeActivated( int ) ) );
-
- connect( m_pFocalBlur, SIGNAL( toggled( bool ) ),
- SLOT( slotFocalBlurToggled( bool ) ) );
- connect( m_pAperture, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pBlurSamples, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pFocalPoint, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pVariance, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pConfidence, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pExport, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pLocation, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pDirection, TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotDirectionChanged( ) ) );
+ connect( m_pRight, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pRight, TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotRightChanged( ) ) );
+ connect( m_pUp, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pSky, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pLookAt, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pEnableAngle, TQT_SIGNAL( toggled( bool ) ),
+ TQT_SLOT( slotAngleToggled( bool ) ) );
+ connect( m_pAngle, TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotAngleChanged( ) ) );
+ connect( m_pCameraType, TQT_SIGNAL( activated( int ) ),
+ TQT_SLOT( slotCameraTypeActivated( int ) ) );
+ connect( m_pCylinderType, TQT_SIGNAL( activated( int ) ),
+ TQT_SLOT( slotCylinderTypeActivated( int ) ) );
+
+ connect( m_pFocalBlur, TQT_SIGNAL( toggled( bool ) ),
+ TQT_SLOT( slotFocalBlurToggled( bool ) ) );
+ connect( m_pAperture, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pBlurSamples, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pFocalPoint, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pVariance, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pConfidence, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pExport, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
}
void PMCameraEdit::displayObject( PMObject* o )
@@ -385,9 +385,9 @@ void PMCameraEdit::slotAngleChanged( )
if( ( m_pCameraType->currentItem( ) == 0 ) && m_pEnableAngle->isChecked( ) )
{
// Only change direction's value in perspective and with an enabled angle
- disconnect( m_pDirection, SIGNAL( dataChanged( ) ), 0, 0 );
+ disconnect( m_pDirection, TQT_SIGNAL( dataChanged( ) ), 0, 0 );
m_pDirection->setVector( 0.5 * m_pRight->vector( ) / tan( 2 * deg2Rad( m_pAngle->value( ) ) ) );
- connect( m_pDirection, SIGNAL( dataChanged( ) ), SLOT( slotDirectionChanged( ) ) );
+ connect( m_pDirection, TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotDirectionChanged( ) ) );
}
*/
emit dataChanged( );
@@ -424,7 +424,7 @@ void PMCameraEdit::calculateCameraAngle( )
void PMCameraEdit::enableFocalWidgets( bool on )
{
- QPtrListIterator<QWidget> it( m_focalWidgets );
+ TQPtrListIterator<TQWidget> it( m_focalWidgets );
for( ; it.current( ); ++it )
{
diff --git a/kpovmodeler/pmcameraedit.h b/kpovmodeler/pmcameraedit.h
index 7b787683..a9ed5ee9 100644
--- a/kpovmodeler/pmcameraedit.h
+++ b/kpovmodeler/pmcameraedit.h
@@ -25,15 +25,15 @@
#endif
#include "pmnamedobjectedit.h"
-#include <qptrlist.h>
+#include <tqptrlist.h>
class PMCamera;
class PMVectorEdit;
class PMFloatEdit;
class PMIntEdit;
-class QComboBox;
-class QLabel;
-class QCheckBox;
+class TQComboBox;
+class TQLabel;
+class TQCheckBox;
/**
* Dialog edit class for @ref PMCamera
@@ -46,7 +46,7 @@ public:
/**
* Creates a PMCameraEdit with parent and name
*/
- PMCameraEdit( QWidget* parent, const char* name = 0 );
+ PMCameraEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -80,19 +80,19 @@ private:
PMVectorEdit* m_pUp;
PMVectorEdit* m_pSky;
PMVectorEdit* m_pLookAt;
- QCheckBox* m_pEnableAngle;
+ TQCheckBox* m_pEnableAngle;
PMFloatEdit* m_pAngle;
- QComboBox* m_pCameraType;
- QComboBox* m_pCylinderType;
- QLabel* m_pCylinderTypeLabel;
- QCheckBox* m_pFocalBlur;
+ TQComboBox* m_pCameraType;
+ TQComboBox* m_pCylinderType;
+ TQLabel* m_pCylinderTypeLabel;
+ TQCheckBox* m_pFocalBlur;
PMFloatEdit* m_pAperture;
PMIntEdit* m_pBlurSamples;
PMVectorEdit* m_pFocalPoint;
PMFloatEdit* m_pConfidence;
PMFloatEdit* m_pVariance;
- QPtrList<QWidget> m_focalWidgets;
- QCheckBox* m_pExport;
+ TQPtrList<TQWidget> m_focalWidgets;
+ TQCheckBox* m_pExport;
};
diff --git a/kpovmodeler/pmclippedby.cpp b/kpovmodeler/pmclippedby.cpp
index fc00bc51..24ea4e46 100644
--- a/kpovmodeler/pmclippedby.cpp
+++ b/kpovmodeler/pmclippedby.cpp
@@ -62,7 +62,7 @@ void PMClippedBy::cleanUp( ) const
Base::cleanUp( );
}
-QString PMClippedBy::description( ) const
+TQString PMClippedBy::description( ) const
{
return i18n( "clipped by" );
}
@@ -79,7 +79,7 @@ bool PMClippedBy::boundedBy( ) const
return cb;
}
-void PMClippedBy::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMClippedBy::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
// no extra data at the moment
Base::serialize( e, doc );
@@ -91,7 +91,7 @@ void PMClippedBy::readAttributes( const PMXMLHelper& h )
Base::readAttributes( h );
}
-PMDialogEditBase* PMClippedBy::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMClippedBy::editWidget( TQWidget* parent ) const
{
return new PMClippedByEdit( parent );
}
diff --git a/kpovmodeler/pmclippedby.h b/kpovmodeler/pmclippedby.h
index 39c5081a..0e76e2cf 100644
--- a/kpovmodeler/pmclippedby.h
+++ b/kpovmodeler/pmclippedby.h
@@ -45,7 +45,7 @@ public:
/** */
virtual PMObject* copy( ) const { return new PMClippedBy( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
@@ -56,19 +56,19 @@ public:
virtual bool dataChangeOnInsertRemove( ) const { return true; }
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMClippedByEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/**
* Returns the name of the pixmap that is displayed in the tree view
* and dialog view
*/
- virtual QString pixmap( ) const { return QString( "pmclippedby" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmclippedby" ); }
/** */
virtual void childRemoved( PMObject* );
diff --git a/kpovmodeler/pmclippedbyedit.cpp b/kpovmodeler/pmclippedbyedit.cpp
index 18a9d4db..8afa0285 100644
--- a/kpovmodeler/pmclippedbyedit.cpp
+++ b/kpovmodeler/pmclippedbyedit.cpp
@@ -19,11 +19,11 @@
#include "pmclippedbyedit.h"
#include "pmclippedby.h"
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klocale.h>
-PMClippedByEdit::PMClippedByEdit( QWidget* parent, const char* name )
+PMClippedByEdit::PMClippedByEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -33,9 +33,9 @@ void PMClippedByEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- m_pChildLabel = new QLabel( i18n( "No child objects" ), this );
+ m_pChildLabel = new TQLabel( i18n( "No child objects" ), this );
topLayout( )->addWidget( m_pChildLabel );
- m_pBoundedByLabel = new QLabel( i18n( "(= bounded by)" ), this );
+ m_pBoundedByLabel = new TQLabel( i18n( "(= bounded by)" ), this );
topLayout( )->addWidget( m_pBoundedByLabel );
}
diff --git a/kpovmodeler/pmclippedbyedit.h b/kpovmodeler/pmclippedbyedit.h
index 3dc0c38f..5b22f564 100644
--- a/kpovmodeler/pmclippedbyedit.h
+++ b/kpovmodeler/pmclippedbyedit.h
@@ -27,7 +27,7 @@
#include "pmdialogeditbase.h"
class PMClippedBy;
-class QLabel;
+class TQLabel;
/**
* Dialog edit class for @ref PMClippedBy
@@ -40,7 +40,7 @@ public:
/**
* Creates a PMClippedByEdit with parent and name
*/
- PMClippedByEdit( QWidget* parent, const char* name = 0 );
+ PMClippedByEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -51,8 +51,8 @@ protected:
private:
PMClippedBy* m_pDisplayedObject;
- QLabel* m_pChildLabel;
- QLabel* m_pBoundedByLabel;
+ TQLabel* m_pChildLabel;
+ TQLabel* m_pBoundedByLabel;
};
diff --git a/kpovmodeler/pmcolor.cpp b/kpovmodeler/pmcolor.cpp
index 0eb38b79..cac668e7 100644
--- a/kpovmodeler/pmcolor.cpp
+++ b/kpovmodeler/pmcolor.cpp
@@ -22,8 +22,8 @@
#include "pmdebug.h"
-#include <qtextstream.h>
-#include <qstring.h>
+#include <tqtextstream.h>
+#include <tqstring.h>
PMColor::PMColor( )
{
@@ -67,7 +67,7 @@ PMColor::PMColor( const PMVector& v )
}
}
-PMColor::PMColor( const QColor& c )
+PMColor::PMColor( const TQColor& c )
{
m_colorValue[0] = c.red( ) / 255.0;
m_colorValue[1] = c.green( ) / 255.0;
@@ -76,7 +76,7 @@ PMColor::PMColor( const QColor& c )
m_colorValue[4] = 0.0;
}
-QColor PMColor::toQColor( ) const
+TQColor PMColor::toQColor( ) const
{
double r, g, b, max = 0;
r = red( );
@@ -99,14 +99,14 @@ QColor PMColor::toQColor( ) const
g /= max;
b /= max;
}
- return QColor( ( int ) ( r * 255 + 0.5 ), ( int ) ( g * 255 + 0.5 ),
+ return TQColor( ( int ) ( r * 255 + 0.5 ), ( int ) ( g * 255 + 0.5 ),
( int ) ( b * 255 + 0.5 ) );
}
-QString PMColor::serialize( bool addColorKeyword ) const
+TQString PMColor::serialize( bool addColorKeyword ) const
{
- QString result;
- QTextStream str( &result, IO_WriteOnly );
+ TQString result;
+ TQTextStream str( &result, IO_WriteOnly );
if( addColorKeyword )
str << "color ";
@@ -146,10 +146,10 @@ QString PMColor::serialize( bool addColorKeyword ) const
return result;
}
-QString PMColor::serializeXML( ) const
+TQString PMColor::serializeXML( ) const
{
- QString result;
- QTextStream str( &result, IO_WriteOnly );
+ TQString result;
+ TQTextStream str( &result, IO_WriteOnly );
int i;
for( i = 0; i < 5; i++ )
@@ -177,11 +177,11 @@ bool PMColor::operator== ( const PMColor& c ) const
return true;
}
-bool PMColor::loadXML( const QString& str )
+bool PMColor::loadXML( const TQString& str )
{
- QString tmp( str );
- QTextStream s( &tmp, IO_ReadOnly );
- QString val;
+ TQString tmp( str );
+ TQTextStream s( &tmp, IO_ReadOnly );
+ TQString val;
bool ok;
int i;
diff --git a/kpovmodeler/pmcolor.h b/kpovmodeler/pmcolor.h
index 7ae0eeab..5c3c4ec8 100644
--- a/kpovmodeler/pmcolor.h
+++ b/kpovmodeler/pmcolor.h
@@ -19,8 +19,8 @@
#ifndef PMCOLOR_H
#define PMCOLOR_H
-#include <qstring.h>
-#include <qcolor.h>
+#include <tqstring.h>
+#include <tqcolor.h>
class PMVector;
@@ -48,10 +48,10 @@ public:
*/
PMColor( const PMVector& v );
/**
- * Creates a color from a @ref QColor object.
+ * Creates a color from a @ref TQColor object.
* filter and transmit are set to 0
*/
- PMColor( const QColor& c );
+ PMColor( const TQColor& c );
/**
* Sets the red value
@@ -97,20 +97,20 @@ public:
/**
* Returns the rgb value as QColor
*/
- QColor toQColor( ) const;
+ TQColor toQColor( ) const;
/**
* Returns a string for serialization
*/
- QString serialize( bool addColorKeyword = false ) const;
+ TQString serialize( bool addColorKeyword = false ) const;
/**
* Returns a string for xml output
*/
- QString serializeXML( ) const;
+ TQString serializeXML( ) const;
/**
* loads the color data from the xml string
*/
- bool loadXML( const QString& str );
+ bool loadXML( const TQString& str );
/**
* Returns true if the colors are equal*/
diff --git a/kpovmodeler/pmcoloredit.cpp b/kpovmodeler/pmcoloredit.cpp
index 06ac4d0f..9695f9eb 100644
--- a/kpovmodeler/pmcoloredit.cpp
+++ b/kpovmodeler/pmcoloredit.cpp
@@ -19,13 +19,13 @@
#include "pmlineedits.h"
#include <kcolorbutton.h>
#include <klocale.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qcolor.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqcolor.h>
#include <kdialog.h>
-PMColorEdit::PMColorEdit( bool filterAndTransmit, QWidget* parent, const char* name )
- : QWidget( parent, name )
+PMColorEdit::PMColorEdit( bool filterAndTransmit, TQWidget* parent, const char* name )
+ : TQWidget( parent, name )
{
m_bFilterAndTransmit = filterAndTransmit;
@@ -44,35 +44,35 @@ PMColorEdit::PMColorEdit( bool filterAndTransmit, QWidget* parent, const char* n
}
m_pButton = new KColorButton( this );
- QVBoxLayout* topLayout = new QVBoxLayout( this, 0, KDialog::spacingHint( ) );
- QHBoxLayout* l = new QHBoxLayout( topLayout );
+ TQVBoxLayout* topLayout = new TQVBoxLayout( this, 0, KDialog::spacingHint( ) );
+ TQHBoxLayout* l = new TQHBoxLayout( topLayout );
l->addWidget( m_pButton );
- l = new QHBoxLayout( topLayout );
- l->addWidget( new QLabel( i18n( "red:" ), this ) );
+ l = new TQHBoxLayout( topLayout );
+ l->addWidget( new TQLabel( i18n( "red:" ), this ) );
l->addWidget( m_edits[0] );
- l->addWidget( new QLabel( i18n( "green:" ), this ) );
+ l->addWidget( new TQLabel( i18n( "green:" ), this ) );
l->addWidget( m_edits[1] );
- l->addWidget( new QLabel( i18n( "blue:" ), this ) );
+ l->addWidget( new TQLabel( i18n( "blue:" ), this ) );
l->addWidget( m_edits[2] );
if( filterAndTransmit )
{
- l = new QHBoxLayout( topLayout );
- l->addWidget( new QLabel( i18n( "filter" ), this ) );
+ l = new TQHBoxLayout( topLayout );
+ l->addWidget( new TQLabel( i18n( "filter" ), this ) );
l->addWidget( m_edits[3] );
- l->addWidget( new QLabel( i18n( "transmit" ), this ) );
+ l->addWidget( new TQLabel( i18n( "transmit" ), this ) );
l->addWidget( m_edits[4] );
}
- connect( m_edits[0], SIGNAL( dataChanged( ) ), SLOT( slotEditChanged( ) ) );
- connect( m_edits[1], SIGNAL( dataChanged( ) ), SLOT( slotEditChanged( ) ) );
- connect( m_edits[2], SIGNAL( dataChanged( ) ), SLOT( slotEditChanged( ) ) );
+ connect( m_edits[0], TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotEditChanged( ) ) );
+ connect( m_edits[1], TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotEditChanged( ) ) );
+ connect( m_edits[2], TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotEditChanged( ) ) );
if( filterAndTransmit )
{
- connect( m_edits[3], SIGNAL( dataChanged( ) ), SLOT( slotEditChanged( ) ) );
- connect( m_edits[4], SIGNAL( dataChanged( ) ), SLOT( slotEditChanged( ) ) );
+ connect( m_edits[3], TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotEditChanged( ) ) );
+ connect( m_edits[4], TQT_SIGNAL( dataChanged( ) ), TQT_SLOT( slotEditChanged( ) ) );
}
- connect( m_pButton, SIGNAL( changed( const QColor& ) ),
- SLOT( slotColorChanged( const QColor& ) ) );
+ connect( m_pButton, TQT_SIGNAL( changed( const TQColor& ) ),
+ TQT_SLOT( slotColorChanged( const TQColor& ) ) );
}
void PMColorEdit::setColor( const PMColor& c )
@@ -141,7 +141,7 @@ void PMColorEdit::setReadOnly( bool yes )
m_pButton->setEnabled( !yes );
}
-void PMColorEdit::slotColorChanged( const QColor& c )
+void PMColorEdit::slotColorChanged( const TQColor& c )
{
int i;
bool blocked[3];
diff --git a/kpovmodeler/pmcoloredit.h b/kpovmodeler/pmcoloredit.h
index 4b581a0f..a4be0083 100644
--- a/kpovmodeler/pmcoloredit.h
+++ b/kpovmodeler/pmcoloredit.h
@@ -24,12 +24,12 @@
#include <config.h>
#endif
-#include <qwidget.h>
+#include <tqwidget.h>
#include "pmcolor.h"
class KColorButton;
class PMFloatEdit;
-class QColor;
+class TQColor;
/**
* Edit widget for @ref PMColor
@@ -41,7 +41,7 @@ public:
/**
* Creates an edit widget for rgbft colors.
*/
- PMColorEdit( bool filterAndTransmit, QWidget* parent, const char* name = 0 );
+ PMColorEdit( bool filterAndTransmit, TQWidget* parent, const char* name = 0 );
/**
* Sets the displayed color
@@ -69,7 +69,7 @@ signals:
void dataChanged( );
protected slots:
- void slotColorChanged( const QColor& c );
+ void slotColorChanged( const TQColor& c );
void slotEditChanged( );
private:
void updateButton( );
diff --git a/kpovmodeler/pmcolorsettings.cpp b/kpovmodeler/pmcolorsettings.cpp
index d5924d4b..c0dafa37 100644
--- a/kpovmodeler/pmcolorsettings.cpp
+++ b/kpovmodeler/pmcolorsettings.cpp
@@ -20,64 +20,64 @@
#include "pmrendermanager.h"
#include "pmdefaults.h"
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <kcolorbutton.h>
#include <klocale.h>
-PMColorSettings::PMColorSettings( QWidget* parent, const char* name )
+PMColorSettings::PMColorSettings( TQWidget* parent, const char* name )
: PMSettingsDialogPage( parent, name )
{
- QHBoxLayout* hlayout;
- QVBoxLayout* vlayout;
- QGridLayout* grid;
+ TQHBoxLayout* hlayout;
+ TQVBoxLayout* vlayout;
+ TQGridLayout* grid;
- vlayout = new QVBoxLayout( this, 0, KDialog::spacingHint( ) );
- grid = new QGridLayout( vlayout, 6, 3 );
+ vlayout = new TQVBoxLayout( this, 0, KDialog::spacingHint( ) );
+ grid = new TQGridLayout( vlayout, 6, 3 );
- grid->addWidget( new QLabel( i18n( "Background:" ), this ), 0, 0 );
- hlayout = new QHBoxLayout( );
+ grid->addWidget( new TQLabel( i18n( "Background:" ), this ), 0, 0 );
+ hlayout = new TQHBoxLayout( );
grid->addLayout( hlayout, 0, 2 );
m_pBackgroundColor = new KColorButton( this );
hlayout->addWidget( m_pBackgroundColor );
hlayout->addStretch( 1 );
- grid->addWidget( new QLabel( i18n( "Wire frame:" ), this ), 1, 0 );
- hlayout = new QHBoxLayout( );
+ grid->addWidget( new TQLabel( i18n( "Wire frame:" ), this ), 1, 0 );
+ hlayout = new TQHBoxLayout( );
grid->addLayout( hlayout, 1, 2 );
m_pGraphicalObjectsColor[0] = new KColorButton( this );
hlayout->addWidget( m_pGraphicalObjectsColor[0] );
- hlayout->addWidget( new QLabel( i18n( "Selected:" ), this ) );
+ hlayout->addWidget( new TQLabel( i18n( "Selected:" ), this ) );
m_pGraphicalObjectsColor[1] = new KColorButton( this );
hlayout->addWidget( m_pGraphicalObjectsColor[1] );
hlayout->addStretch( 1 );
- grid->addWidget( new QLabel( i18n( "Control points:" ), this ), 2, 0 );
- hlayout = new QHBoxLayout( );
+ grid->addWidget( new TQLabel( i18n( "Control points:" ), this ), 2, 0 );
+ hlayout = new TQHBoxLayout( );
grid->addLayout( hlayout, 2, 2 );
m_pControlPointsColor[0] = new KColorButton( this );
hlayout->addWidget( m_pControlPointsColor[0] );
- hlayout->addWidget( new QLabel( i18n( "Selected:" ), this ) );
+ hlayout->addWidget( new TQLabel( i18n( "Selected:" ), this ) );
m_pControlPointsColor[1] = new KColorButton( this );
hlayout->addWidget( m_pControlPointsColor[1] );
hlayout->addStretch( 1 );
- grid->addWidget( new QLabel( i18n( "Axes:" ), this ), 3, 0 );
- hlayout = new QHBoxLayout( );
+ grid->addWidget( new TQLabel( i18n( "Axes:" ), this ), 3, 0 );
+ hlayout = new TQHBoxLayout( );
grid->addLayout( hlayout, 3, 2 );
- grid->addWidget( new QLabel( "x", this ), 3, 1 );
+ grid->addWidget( new TQLabel( "x", this ), 3, 1 );
m_pAxesColor[0] = new KColorButton( this );
hlayout->addWidget( m_pAxesColor[0] );
- hlayout->addWidget( new QLabel( "y", this ) );
+ hlayout->addWidget( new TQLabel( "y", this ) );
m_pAxesColor[1] = new KColorButton( this );
hlayout->addWidget( m_pAxesColor[1] );
- hlayout->addWidget( new QLabel( "z", this ) );
+ hlayout->addWidget( new TQLabel( "z", this ) );
m_pAxesColor[2] = new KColorButton( this );
hlayout->addWidget( m_pAxesColor[2] );
hlayout->addStretch( 1 );
- grid->addWidget( new QLabel( i18n( "Field of view:" ), this ), 4, 0 );
- hlayout = new QHBoxLayout( );
+ grid->addWidget( new TQLabel( i18n( "Field of view:" ), this ), 4, 0 );
+ hlayout = new TQHBoxLayout( );
grid->addLayout( hlayout, 4, 2 );
m_pFieldOfViewColor = new KColorButton( this );
hlayout->addWidget( m_pFieldOfViewColor );
diff --git a/kpovmodeler/pmcolorsettings.h b/kpovmodeler/pmcolorsettings.h
index 9ad628e0..8b903d47 100644
--- a/kpovmodeler/pmcolorsettings.h
+++ b/kpovmodeler/pmcolorsettings.h
@@ -36,7 +36,7 @@ public:
/**
* Default constructor
*/
- PMColorSettings( QWidget* parent, const char* name = 0 );
+ PMColorSettings( TQWidget* parent, const char* name = 0 );
/** */
virtual void displaySettings( );
/** */
diff --git a/kpovmodeler/pmcommand.h b/kpovmodeler/pmcommand.h
index 9bdca16f..5d32b9d4 100644
--- a/kpovmodeler/pmcommand.h
+++ b/kpovmodeler/pmcommand.h
@@ -24,8 +24,8 @@
#include <config.h>
#endif
-#include <qstring.h>
-#include <qptrlist.h>
+#include <tqstring.h>
+#include <tqptrlist.h>
#include "pmmessage.h"
#include "pmerrorflags.h"
@@ -93,7 +93,7 @@ public:
/**
* Creates a command with command text text
*/
- PMCommand( const QString &text )
+ PMCommand( const TQString &text )
{ m_text = text; }
/**
* Deletes the command.
@@ -103,11 +103,11 @@ public:
/**
* Command text shown in the undo/redo menues
*/
- QString text( ) const { return m_text; }
+ TQString text( ) const { return m_text; }
/**
* Sets the command text
*/
- void setText( const QString& s ) { m_text = s; }
+ void setText( const TQString& s ) { m_text = s; }
/**
* Checks if the command is valid and sets the error message
@@ -138,9 +138,9 @@ private:
/**
* The command text.
*/
- QString m_text;
+ TQString m_text;
};
-typedef QPtrList<PMCommand> PMCommandList;
+typedef TQPtrList<PMCommand> PMCommandList;
#endif
diff --git a/kpovmodeler/pmcommandmanager.cpp b/kpovmodeler/pmcommandmanager.cpp
index 333468e3..f122a7a4 100644
--- a/kpovmodeler/pmcommandmanager.cpp
+++ b/kpovmodeler/pmcommandmanager.cpp
@@ -45,7 +45,7 @@ void PMCommandManager::execute( PMCommand* cmd )
m_commands.removeFirst( );
m_redoCommands.clear( );
- emit updateUndoRedo( cmd->text( ), QString::null );
+ emit updateUndoRedo( cmd->text( ), TQString::null );
}
void PMCommandManager::undo( )
@@ -58,7 +58,7 @@ void PMCommandManager::undo( )
m_redoCommands.append( m_commands.take( ) );
if( m_commands.isEmpty( ) )
- emit updateUndoRedo( QString::null, last->text( ) );
+ emit updateUndoRedo( TQString::null, last->text( ) );
else
emit updateUndoRedo( m_commands.last( )->text( ), last->text( ) );
}
@@ -74,7 +74,7 @@ void PMCommandManager::redo( )
m_commands.append( m_redoCommands.take( ) );
if( m_redoCommands.isEmpty( ) )
- emit updateUndoRedo( last->text( ), QString::null );
+ emit updateUndoRedo( last->text( ), TQString::null );
else
emit updateUndoRedo( last->text( ), m_redoCommands.last( )->text( ) );
}
@@ -84,7 +84,7 @@ void PMCommandManager::clear( )
{
m_redoCommands.clear( );
m_commands.clear( );
- emit updateUndoRedo( QString::null, QString::null );
+ emit updateUndoRedo( TQString::null, TQString::null );
}
void PMCommandManager::cmdObjectChanged( PMObject* obj, const int mode )
@@ -92,7 +92,7 @@ void PMCommandManager::cmdObjectChanged( PMObject* obj, const int mode )
emit objectChanged( obj, mode, this );
}
-void PMCommandManager::cmdIDChanged( PMObject* obj, const QString& oldID )
+void PMCommandManager::cmdIDChanged( PMObject* obj, const TQString& oldID )
{
emit idChanged( obj, oldID );
}
diff --git a/kpovmodeler/pmcommandmanager.h b/kpovmodeler/pmcommandmanager.h
index 2ef2fbbc..5fc960d1 100644
--- a/kpovmodeler/pmcommandmanager.h
+++ b/kpovmodeler/pmcommandmanager.h
@@ -25,8 +25,8 @@
#endif
#include "pmcommand.h"
-#include <qptrstack.h>
-#include <qobject.h>
+#include <tqptrstack.h>
+#include <tqobject.h>
class PMPart;
@@ -80,7 +80,7 @@ public:
/**
* Called by an executed command. Will emit idChanged( )
*/
- void cmdIDChanged( PMObject* obj, const QString& oldID );
+ void cmdIDChanged( PMObject* obj, const TQString& oldID );
/**
* Returns a pointer to the part. For commands that need to access the
* part directly.
@@ -90,16 +90,16 @@ signals:
/**
* emmited, when the undo and redo command texts change
*/
- void updateUndoRedo( const QString& undo, const QString& redo );
+ void updateUndoRedo( const TQString& undo, const TQString& redo );
/**
* Signal that is emitted when an object is changed.
* Mode is a bit combination of @ref PMChange constants.
*/
- void objectChanged( PMObject* obj, const int mode, QObject* sender );
+ void objectChanged( PMObject* obj, const int mode, TQObject* sender );
/**
* Signal that is emitted when the id of the object is changed
*/
- void idChanged( PMObject* obj, const QString& oldID );
+ void idChanged( PMObject* obj, const TQString& oldID );
private:
/**
* The executed commands.
diff --git a/kpovmodeler/pmcomment.cpp b/kpovmodeler/pmcomment.cpp
index e4783ae5..90c817fd 100644
--- a/kpovmodeler/pmcomment.cpp
+++ b/kpovmodeler/pmcomment.cpp
@@ -22,7 +22,7 @@
#include "pmcommentedit.h"
#include "pmmemento.h"
-#include <qtextstream.h>
+#include <tqtextstream.h>
#include <klocale.h>
PMDefinePropertyClass( PMComment, PMCommentProperty );
@@ -40,7 +40,7 @@ PMComment::PMComment( PMPart* part )
{
}
-PMComment::PMComment( PMPart* part, const QString& t )
+PMComment::PMComment( PMPart* part, const TQString& t )
: Base( part )
{
m_text = t;
@@ -56,13 +56,13 @@ PMComment::~PMComment( )
{
}
-QString PMComment::description( ) const
+TQString PMComment::description( ) const
{
if( !m_text.isEmpty( ) )
{
- QString copy = m_text;
- QTextStream str( &copy, IO_ReadOnly );
- QString tmp, desc;
+ TQString copy = m_text;
+ TQTextStream str( &copy, IO_ReadOnly );
+ TQString tmp, desc;
bool stop = false;
bool truncated = false;
@@ -95,7 +95,7 @@ QString PMComment::description( ) const
return i18n( "comment" );
}
-void PMComment::setText( const QString& text )
+void PMComment::setText( const TQString& text )
{
if( text != m_text )
{
@@ -130,20 +130,20 @@ void PMComment::cleanUp( ) const
Base::cleanUp( );
}
-void PMComment::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMComment::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
- QDomText t = doc.createTextNode( m_text );
+ TQDomText t = doc.createTextNode( m_text );
e.appendChild( t );
}
void PMComment::readAttributes( const PMXMLHelper& h )
{
- QDomNode e = h.element( ).firstChild( );
+ TQDomNode e = h.element( ).firstChild( );
if( e.isText( ) )
m_text = e.toText( ).data( );
}
-PMDialogEditBase* PMComment::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMComment::editWidget( TQWidget* parent ) const
{
return new PMCommentEdit( parent );
}
diff --git a/kpovmodeler/pmcomment.h b/kpovmodeler/pmcomment.h
index 82c62fa8..d435423d 100644
--- a/kpovmodeler/pmcomment.h
+++ b/kpovmodeler/pmcomment.h
@@ -21,7 +21,7 @@
#define PMCOMMENT_H
#include "pmobject.h"
-#include <qstring.h>
+#include <tqstring.h>
/**
@@ -39,7 +39,7 @@ public:
/**
* Creates a comment with text t
*/
- PMComment( PMPart* part, const QString& t );
+ PMComment( PMPart* part, const TQString& t );
/**
* Copy constructor
*/
@@ -52,11 +52,11 @@ public:
/**
* Sets the comment text
*/
- void setText( const QString& text );
+ void setText( const TQString& text );
/**
* Returns the comment text
*/
- QString text( ) const { return m_text; }
+ TQString text( ) const { return m_text; }
/** */
virtual PMObject* copy( ) const { return new PMComment( *this ); }
@@ -67,17 +67,17 @@ public:
virtual void cleanUp( ) const;
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/** */
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/** */
- virtual QString pixmap( ) const { return QString( "pmcomment" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmcomment" ); }
/** */
virtual void restoreMemento( PMMemento* s );
private:
@@ -85,7 +85,7 @@ private:
* IDs for @ref PMMementoData
*/
enum PMCommentMementoID { PMTextID };
- QString m_text;
+ TQString m_text;
static PMMetaObject* s_pMetaObject;
};
diff --git a/kpovmodeler/pmcommentedit.cpp b/kpovmodeler/pmcommentedit.cpp
index 6fa5ba9e..28e98ed3 100644
--- a/kpovmodeler/pmcommentedit.cpp
+++ b/kpovmodeler/pmcommentedit.cpp
@@ -19,11 +19,11 @@
#include "pmcommentedit.h"
#include "pmcomment.h"
-#include <qlayout.h>
-#include <qmultilineedit.h>
+#include <tqlayout.h>
+#include <tqmultilineedit.h>
#include <kglobalsettings.h>
-PMCommentEdit::PMCommentEdit( QWidget* parent, const char* name )
+PMCommentEdit::PMCommentEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -33,15 +33,15 @@ void PMCommentEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- m_pEdit = new QMultiLineEdit( this );
+ m_pEdit = new TQMultiLineEdit( this );
#if ( QT_VERSION >= 300 )
m_pEdit->setTextFormat( Qt::PlainText );
- m_pEdit->setWordWrap( QTextEdit::NoWrap );
+ m_pEdit->setWordWrap( TQTextEdit::NoWrap );
#endif
m_pEdit->setFont( KGlobalSettings::fixedFont( ) );
topLayout( )->addWidget( m_pEdit, 2 );
- connect( m_pEdit, SIGNAL( textChanged( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pEdit, TQT_SIGNAL( textChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
}
void PMCommentEdit::displayObject( PMObject* o )
diff --git a/kpovmodeler/pmcommentedit.h b/kpovmodeler/pmcommentedit.h
index b3dc1d25..3d3fb0c1 100644
--- a/kpovmodeler/pmcommentedit.h
+++ b/kpovmodeler/pmcommentedit.h
@@ -27,7 +27,7 @@
#include "pmdialogeditbase.h"
class PMComment;
-class QMultiLineEdit;
+class TQMultiLineEdit;
/**
* Dialog edit class for @ref PMComment.
@@ -40,7 +40,7 @@ public:
/**
* Creates a PMCommentEdit with parent and name
*/
- PMCommentEdit( QWidget* parent, const char* name = 0 );
+ PMCommentEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -55,7 +55,7 @@ protected:
private:
PMComment* m_pDisplayedObject;
- QMultiLineEdit* m_pEdit;
+ TQMultiLineEdit* m_pEdit;
};
diff --git a/kpovmodeler/pmcompositeobject.cpp b/kpovmodeler/pmcompositeobject.cpp
index c1ab704d..d8b61e8c 100644
--- a/kpovmodeler/pmcompositeobject.cpp
+++ b/kpovmodeler/pmcompositeobject.cpp
@@ -21,7 +21,7 @@
#include "pmmemento.h"
#include "pmviewstructure.h"
-#include <qdom.h>
+#include <tqdom.h>
PMMetaObject* PMCompositeObject::s_pMetaObject = 0;
@@ -279,7 +279,7 @@ bool PMCompositeObject::takeChild( uint i )
return false;
}
-void PMCompositeObject::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMCompositeObject::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
PMObject* tmp;
diff --git a/kpovmodeler/pmcompositeobject.h b/kpovmodeler/pmcompositeobject.h
index c2e2da58..350180db 100644
--- a/kpovmodeler/pmcompositeobject.h
+++ b/kpovmodeler/pmcompositeobject.h
@@ -109,7 +109,7 @@ public:
virtual bool takeChild( uint i );
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/**
* Returns the number of selected child items. All selected items in
diff --git a/kpovmodeler/pmcone.cpp b/kpovmodeler/pmcone.cpp
index 2772eda5..c6fd719e 100644
--- a/kpovmodeler/pmcone.cpp
+++ b/kpovmodeler/pmcone.cpp
@@ -75,12 +75,12 @@ PMCone::~PMCone( )
{
}
-QString PMCone::description( ) const
+TQString PMCone::description( ) const
{
return i18n( "cone" );
}
-void PMCone::serialize( QDomElement & e, QDomDocument & doc ) const
+void PMCone::serialize( TQDomElement & e, TQDomDocument & doc ) const
{
e.setAttribute( "end_a", m_end1.serializeXML( ) );
e.setAttribute( "end_b", m_end2.serializeXML( ) );
@@ -176,7 +176,7 @@ void PMCone::setOpen( bool op )
}
}
-PMDialogEditBase* PMCone::editWidget( QWidget * parent ) const
+PMDialogEditBase* PMCone::editWidget( TQWidget * parent ) const
{
return new PMConeEdit( parent );
}
diff --git a/kpovmodeler/pmcone.h b/kpovmodeler/pmcone.h
index 445846f3..c41f9325 100644
--- a/kpovmodeler/pmcone.h
+++ b/kpovmodeler/pmcone.h
@@ -59,23 +59,23 @@ public:
virtual PMObject* copy( ) const { return new PMCone( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMConeEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/**
* Returns the name of the pixmap that is displayed in the tree view and dialog view
*/
- virtual QString pixmap( ) const { return QString( "pmcone" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmcone" ); }
/**
* Return the end_1
diff --git a/kpovmodeler/pmconeedit.cpp b/kpovmodeler/pmconeedit.cpp
index 2dbcfc7c..9969e4d7 100644
--- a/kpovmodeler/pmconeedit.cpp
+++ b/kpovmodeler/pmconeedit.cpp
@@ -21,12 +21,12 @@
#include "pmvectoredit.h"
#include "pmlineedits.h"
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klocale.h>
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
-PMConeEdit::PMConeEdit( QWidget* parent, const char* name )
+PMConeEdit::PMConeEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -36,36 +36,36 @@ void PMConeEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- QHBoxLayout* layout;
- QGridLayout* gl;
+ TQHBoxLayout* layout;
+ TQGridLayout* gl;
m_pEnd1 = new PMVectorEdit( "x", "y", "z", this );
m_pEnd2 = new PMVectorEdit( "x", "y", "z", this );
m_pRadius1 = new PMFloatEdit( this );
m_pRadius2 = new PMFloatEdit( this );
- m_pOpen = new QCheckBox( i18n( "type of the object", "Open" ), this );
+ m_pOpen = new TQCheckBox( i18n( "type of the object", "Open" ), this );
- gl = new QGridLayout( topLayout( ), 2, 2 );
- gl->addWidget( new QLabel( i18n( "End 1:" ), this ), 0, 0 );
+ gl = new TQGridLayout( topLayout( ), 2, 2 );
+ gl->addWidget( new TQLabel( i18n( "End 1:" ), this ), 0, 0 );
gl->addWidget( m_pEnd1, 0, 1 );
- gl->addWidget( new QLabel( i18n( "End 2:" ), this ), 1, 0 );
+ gl->addWidget( new TQLabel( i18n( "End 2:" ), this ), 1, 0 );
gl->addWidget( m_pEnd2, 1, 1 );
- layout = new QHBoxLayout( topLayout( ) );
- gl = new QGridLayout( layout, 2, 2 );
- gl->addWidget( new QLabel( i18n( "Radius 1:" ), this ), 0, 0 );
+ layout = new TQHBoxLayout( topLayout( ) );
+ gl = new TQGridLayout( layout, 2, 2 );
+ gl->addWidget( new TQLabel( i18n( "Radius 1:" ), this ), 0, 0 );
gl->addWidget( m_pRadius1, 0, 1 );
- gl->addWidget( new QLabel( i18n( "Radius 2:" ), this ), 1, 0 );
+ gl->addWidget( new TQLabel( i18n( "Radius 2:" ), this ), 1, 0 );
gl->addWidget( m_pRadius2, 1, 1 );
layout->addStretch( 1 );
topLayout( )->addWidget( m_pOpen );
- connect( m_pEnd1, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pEnd2, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pRadius1, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pRadius2, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pOpen, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pEnd1, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pEnd2, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pRadius1, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pRadius2, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pOpen, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
}
void PMConeEdit::displayObject( PMObject* o )
diff --git a/kpovmodeler/pmconeedit.h b/kpovmodeler/pmconeedit.h
index f39f95c6..f4e689fc 100644
--- a/kpovmodeler/pmconeedit.h
+++ b/kpovmodeler/pmconeedit.h
@@ -26,7 +26,7 @@
#include "pmsolidobjectedit.h"
-class QCheckBox;
+class TQCheckBox;
class PMVectorEdit;
class PMFloatEdit;
@@ -40,7 +40,7 @@ public:
/**
* Creates a PMConeEdit with parent and name
*/
- PMConeEdit( QWidget* parent, const char* name = 0 );
+ PMConeEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -59,6 +59,6 @@ private:
PMVectorEdit* m_pEnd2;
PMFloatEdit* m_pRadius1;
PMFloatEdit* m_pRadius2;
- QCheckBox* m_pOpen;
+ TQCheckBox* m_pOpen;
};
#endif
diff --git a/kpovmodeler/pmcontrolpoint.cpp b/kpovmodeler/pmcontrolpoint.cpp
index 8617ae27..18e5953d 100644
--- a/kpovmodeler/pmcontrolpoint.cpp
+++ b/kpovmodeler/pmcontrolpoint.cpp
@@ -25,7 +25,7 @@ double PMControlPoint::s_moveGrid = c_defaultMoveGrid;
double PMControlPoint::s_scaleGrid = c_defaultScaleGrid;
double PMControlPoint::s_rotateGrid = c_defaultRotateGrid;
-PMControlPoint::PMControlPoint( int id, const QString& description )
+PMControlPoint::PMControlPoint( int id, const TQString& description )
{
m_id = id;
m_bChanged = false;
diff --git a/kpovmodeler/pmcontrolpoint.h b/kpovmodeler/pmcontrolpoint.h
index 8d3e9e66..dbc52c6d 100644
--- a/kpovmodeler/pmcontrolpoint.h
+++ b/kpovmodeler/pmcontrolpoint.h
@@ -25,8 +25,8 @@
#endif
#include "pmvector.h"
-#include <qptrlist.h>
-#include <qstring.h>
+#include <tqptrlist.h>
+#include <tqstring.h>
class KConfig;
@@ -50,7 +50,7 @@ public:
/**
* Creates a PMControlPoint with an id and a description.
*/
- PMControlPoint( int id, const QString& description );
+ PMControlPoint( int id, const TQString& description );
/**
* Deletes the PMControlPoint
*/
@@ -98,7 +98,7 @@ public:
/**
* Returns the description
*/
- QString description( ) const { return m_description; }
+ TQString description( ) const { return m_description; }
/**
* Selects/deselects the control point
*/
@@ -177,14 +177,14 @@ private:
PMVector m_normalVector;
bool m_bChanged;
bool m_bSelected;
- QString m_description;
+ TQString m_description;
static double s_moveGrid;
static double s_rotateGrid;
static double s_scaleGrid;
};
-typedef QPtrList<PMControlPoint> PMControlPointList;
-typedef QPtrListIterator<PMControlPoint> PMControlPointListIterator;
+typedef TQPtrList<PMControlPoint> PMControlPointList;
+typedef TQPtrListIterator<PMControlPoint> PMControlPointListIterator;
#endif
diff --git a/kpovmodeler/pmcsg.cpp b/kpovmodeler/pmcsg.cpp
index 3af76740..0ac7e58a 100644
--- a/kpovmodeler/pmcsg.cpp
+++ b/kpovmodeler/pmcsg.cpp
@@ -54,7 +54,7 @@ PMCSG::~PMCSG( )
{
}
-QString PMCSG::description( ) const
+TQString PMCSG::description( ) const
{
switch( m_type )
{
@@ -71,30 +71,30 @@ QString PMCSG::description( ) const
return i18n( "merge" );
break;
}
- return QString( "" );
+ return TQString( "" );
}
-QString PMCSG::pixmap( ) const
+TQString PMCSG::pixmap( ) const
{
switch( m_type )
{
case CSGUnion:
- return QString( "pmunion" );
+ return TQString( "pmunion" );
break;
case CSGIntersection:
- return QString( "pmintersection" );
+ return TQString( "pmintersection" );
break;
case CSGDifference:
- return QString( "pmdifference" );
+ return TQString( "pmdifference" );
break;
case CSGMerge:
- return QString( "pmmerge" );
+ return TQString( "pmmerge" );
break;
}
- return QString( "" );
+ return TQString( "" );
}
-void PMCSG::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMCSG::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
switch( m_type )
{
@@ -117,7 +117,7 @@ void PMCSG::serialize( QDomElement& e, QDomDocument& doc ) const
void PMCSG::readAttributes( const PMXMLHelper& h )
{
- QString str = h.stringAttribute( "csgtype", "union" );
+ TQString str = h.stringAttribute( "csgtype", "union" );
if( str == "union" )
m_type = CSGUnion;
else if( str == "intersection" )
@@ -169,7 +169,7 @@ void PMCSG::setCSGType( const PMCSGType t )
}
}
-PMDialogEditBase* PMCSG::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMCSG::editWidget( TQWidget* parent ) const
{
return new PMCSGEdit( parent );
}
diff --git a/kpovmodeler/pmcsg.h b/kpovmodeler/pmcsg.h
index e8ce741e..380bf0ef 100644
--- a/kpovmodeler/pmcsg.h
+++ b/kpovmodeler/pmcsg.h
@@ -59,7 +59,7 @@ public:
/** */
virtual PMObject* copy( ) const { return new PMCSG( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
@@ -67,19 +67,19 @@ public:
virtual void cleanUp( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMCSGEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/**
* Returns the name of the pixmap that is displayed in the tree view
* and dialog view
*/
- virtual QString pixmap( ) const;
+ virtual TQString pixmap( ) const;
/**
* Returns the type of the csg
diff --git a/kpovmodeler/pmcsgedit.cpp b/kpovmodeler/pmcsgedit.cpp
index 9a6e0a39..114e22f6 100644
--- a/kpovmodeler/pmcsgedit.cpp
+++ b/kpovmodeler/pmcsgedit.cpp
@@ -19,12 +19,12 @@
#include "pmcsgedit.h"
#include "pmcsg.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcombobox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
#include <klocale.h>
-PMCSGEdit::PMCSGEdit( QWidget* parent, const char* name )
+PMCSGEdit::PMCSGEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -34,19 +34,19 @@ void PMCSGEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- QHBoxLayout* layout;
- m_pTypeCombo = new QComboBox( false, this );
+ TQHBoxLayout* layout;
+ m_pTypeCombo = new TQComboBox( false, this );
m_pTypeCombo->insertItem( i18n( "Union" ) );
m_pTypeCombo->insertItem( i18n( "Intersection" ) );
m_pTypeCombo->insertItem( i18n( "Difference" ) );
m_pTypeCombo->insertItem( i18n( "Merge" ) );
- layout = new QHBoxLayout( topLayout( ) );
- layout->addWidget( new QLabel( i18n( "Type:" ), this ) );
+ layout = new TQHBoxLayout( topLayout( ) );
+ layout->addWidget( new TQLabel( i18n( "Type:" ), this ) );
layout->addWidget( m_pTypeCombo );
layout->addStretch( 1 );
- connect( m_pTypeCombo, SIGNAL( activated( int ) ), SLOT( slotTypeSelected( int ) ) );
+ connect( m_pTypeCombo, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotTypeSelected( int ) ) );
}
void PMCSGEdit::displayObject( PMObject* o )
diff --git a/kpovmodeler/pmcsgedit.h b/kpovmodeler/pmcsgedit.h
index 8aeaddc6..d7efc75d 100644
--- a/kpovmodeler/pmcsgedit.h
+++ b/kpovmodeler/pmcsgedit.h
@@ -27,7 +27,7 @@
#include "pmsolidobjectedit.h"
class PMCSG;
-class QComboBox;
+class TQComboBox;
/**
* Dialog edit class for @ref PMCSG
@@ -40,7 +40,7 @@ public:
/**
* Creates a PMCSGEdit with parent and name
*/
- PMCSGEdit( QWidget* parent, const char* name = 0 );
+ PMCSGEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -56,7 +56,7 @@ protected slots:
void slotTypeSelected( int index );
private:
PMCSG* m_pDisplayedObject;
- QComboBox* m_pTypeCombo;
+ TQComboBox* m_pTypeCombo;
};
diff --git a/kpovmodeler/pmcylinder.cpp b/kpovmodeler/pmcylinder.cpp
index 1a119004..358cb542 100644
--- a/kpovmodeler/pmcylinder.cpp
+++ b/kpovmodeler/pmcylinder.cpp
@@ -74,12 +74,12 @@ PMCylinder::~PMCylinder( )
{
}
-QString PMCylinder::description( ) const
+TQString PMCylinder::description( ) const
{
return i18n( "cylinder" );
}
-void PMCylinder::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMCylinder::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
e.setAttribute( "end_a", m_end1.serializeXML( ) );
e.setAttribute( "end_b", m_end2.serializeXML( ) );
@@ -160,7 +160,7 @@ void PMCylinder::setOpen( bool op )
}
}
-PMDialogEditBase* PMCylinder::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMCylinder::editWidget( TQWidget* parent ) const
{
return new PMCylinderEdit( parent );
}
diff --git a/kpovmodeler/pmcylinder.h b/kpovmodeler/pmcylinder.h
index ba98ae40..1bd10901 100644
--- a/kpovmodeler/pmcylinder.h
+++ b/kpovmodeler/pmcylinder.h
@@ -56,22 +56,22 @@ public:
virtual PMObject* copy( ) const { return new PMCylinder( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMCylinderEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/**
* Returns the name of the pixmap that is displayed in the tree view and dialog view
*/
- virtual QString pixmap( ) const { return QString( "pmcylinder" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmcylinder" ); }
/**
* Return the end_1
diff --git a/kpovmodeler/pmcylinderedit.cpp b/kpovmodeler/pmcylinderedit.cpp
index 623b2b4f..b15a0d16 100644
--- a/kpovmodeler/pmcylinderedit.cpp
+++ b/kpovmodeler/pmcylinderedit.cpp
@@ -21,12 +21,12 @@
#include "pmvectoredit.h"
#include "pmlineedits.h"
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klocale.h>
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
-PMCylinderEdit::PMCylinderEdit( QWidget* parent, const char* name )
+PMCylinderEdit::PMCylinderEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -36,32 +36,32 @@ void PMCylinderEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- QHBoxLayout* layout;
- QGridLayout* gl;
+ TQHBoxLayout* layout;
+ TQGridLayout* gl;
m_pEnd1 = new PMVectorEdit( "x", "y", "z", this );
m_pEnd2 = new PMVectorEdit( "x", "y", "z", this );
m_pRadius = new PMFloatEdit( this );
- m_pOpen = new QCheckBox( i18n( "type of the object", "Open" ), this );
+ m_pOpen = new TQCheckBox( i18n( "type of the object", "Open" ), this );
- gl = new QGridLayout( topLayout( ), 2, 2 );
- gl->addWidget( new QLabel( i18n( "End 1:" ), this ), 0, 0 );
+ gl = new TQGridLayout( topLayout( ), 2, 2 );
+ gl->addWidget( new TQLabel( i18n( "End 1:" ), this ), 0, 0 );
gl->addWidget( m_pEnd1, 0, 1 );
- gl->addWidget( new QLabel( i18n( "End 2:" ), this ), 1, 0 );
+ gl->addWidget( new TQLabel( i18n( "End 2:" ), this ), 1, 0 );
gl->addWidget( m_pEnd2, 1, 1 );
- layout = new QHBoxLayout( topLayout( ) );
- layout->addWidget( new QLabel( i18n( "Radius:" ), this ) );
+ layout = new TQHBoxLayout( topLayout( ) );
+ layout->addWidget( new TQLabel( i18n( "Radius:" ), this ) );
layout->addWidget( m_pRadius );
layout->addStretch( 1 );
- layout = new QHBoxLayout( topLayout( ) );
+ layout = new TQHBoxLayout( topLayout( ) );
layout->addWidget( m_pOpen );
- connect( m_pEnd1, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pEnd2, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pRadius, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pOpen, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pEnd1, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pEnd2, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pRadius, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pOpen, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
}
void PMCylinderEdit::displayObject( PMObject* o )
diff --git a/kpovmodeler/pmcylinderedit.h b/kpovmodeler/pmcylinderedit.h
index aec05df5..9f2c0993 100644
--- a/kpovmodeler/pmcylinderedit.h
+++ b/kpovmodeler/pmcylinderedit.h
@@ -29,7 +29,7 @@
class PMVectorEdit;
class PMFloatEdit;
class PMCylinder;
-class QCheckBox;
+class TQCheckBox;
class PMCylinderEdit : public PMSolidObjectEdit
{
@@ -39,7 +39,7 @@ public:
/**
* Creates a PMCylinderEdit with parent and name
*/
- PMCylinderEdit( QWidget* parent, const char* name = 0 );
+ PMCylinderEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -57,7 +57,7 @@ private:
PMVectorEdit* m_pEnd1;
PMVectorEdit* m_pEnd2;
PMFloatEdit* m_pRadius;
- QCheckBox* m_pOpen;
+ TQCheckBox* m_pOpen;
};
#endif
diff --git a/kpovmodeler/pmdatachangecommand.cpp b/kpovmodeler/pmdatachangecommand.cpp
index 0793986e..99ac75d3 100644
--- a/kpovmodeler/pmdatachangecommand.cpp
+++ b/kpovmodeler/pmdatachangecommand.cpp
@@ -25,7 +25,7 @@
PMDataChangeCommand::PMDataChangeCommand( PMMemento* memento )
: PMCommand( )
{
- QString text = memento->originator( )->name( );
+ TQString text = memento->originator( )->name( );
if( text.isEmpty( ) )
text = memento->originator( )->description( );
setText( i18n( "Change %1" ).arg( text ) );
diff --git a/kpovmodeler/pmdeclare.cpp b/kpovmodeler/pmdeclare.cpp
index 2b698f0e..3f290e2f 100644
--- a/kpovmodeler/pmdeclare.cpp
+++ b/kpovmodeler/pmdeclare.cpp
@@ -22,7 +22,7 @@
#include "pmprototypemanager.h"
#include "pmpart.h"
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include <klocale.h>
PMDefinePropertyClass( PMDeclare, PMDeclareProperty );
@@ -73,16 +73,16 @@ PMDeclare::~PMDeclare( )
{
}
-QString PMDeclare::description( ) const
+TQString PMDeclare::description( ) const
{
PMPart* pPart = part( );
- QString d = i18n( "declaration" );
+ TQString d = i18n( "declaration" );
if( m_pDeclareType && pPart )
{
- const QValueList<PMDeclareDescription>& descriptions
+ const TQValueList<PMDeclareDescription>& descriptions
= pPart->prototypeManager( )->declarationTypes( );
- QValueList<PMDeclareDescription>::const_iterator it;
+ TQValueList<PMDeclareDescription>::const_iterator it;
bool found = false;
for( it = descriptions.begin( ); it != descriptions.end( ) && !found; ++it )
{
@@ -96,16 +96,16 @@ QString PMDeclare::description( ) const
return d;
}
-QString PMDeclare::pixmap( ) const
+TQString PMDeclare::pixmap( ) const
{
PMPart* pPart = part( );
- QString d = "pmdeclare";
+ TQString d = "pmdeclare";
if( m_pDeclareType && pPart )
{
- const QValueList<PMDeclareDescription>& descriptions
+ const TQValueList<PMDeclareDescription>& descriptions
= pPart->prototypeManager( )->declarationTypes( );
- QValueList<PMDeclareDescription>::const_iterator it;
+ TQValueList<PMDeclareDescription>::const_iterator it;
bool found = false;
for( it = descriptions.begin( ); it != descriptions.end( ) && !found; ++it )
{
@@ -119,7 +119,7 @@ QString PMDeclare::pixmap( ) const
return d;
}
-void PMDeclare::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMDeclare::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
e.setAttribute( "id", m_id );
Base::serialize( e, doc );
@@ -131,12 +131,12 @@ void PMDeclare::readAttributes( const PMXMLHelper& h )
Base::readAttributes( h );
}
-PMDialogEditBase* PMDeclare::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMDeclare::editWidget( TQWidget* parent ) const
{
return new PMDeclareEdit( parent );
}
-void PMDeclare::setID( const QString& newID )
+void PMDeclare::setID( const TQString& newID )
{
if( newID != m_id )
{
@@ -150,10 +150,10 @@ void PMDeclare::setID( const QString& newID )
}
}
-QString PMDeclare::declareType( ) const
+TQString PMDeclare::declareType( ) const
{
if( !m_pDeclareType )
- return QString( "None" );
+ return TQString( "None" );
return m_pDeclareType->className( );
}
diff --git a/kpovmodeler/pmdeclare.h b/kpovmodeler/pmdeclare.h
index d466e60e..89468bf4 100644
--- a/kpovmodeler/pmdeclare.h
+++ b/kpovmodeler/pmdeclare.h
@@ -50,9 +50,9 @@ public:
virtual PMObject* copy( ) const { return new PMDeclare( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
- virtual QString pixmap( ) const;
+ virtual TQString pixmap( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
@@ -62,31 +62,31 @@ public:
/** */
virtual bool dataChangeOnInsertRemove( ) const { return true; }
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMDeclareEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/**
* Returns the id of the declare
*/
- virtual QString name( ) const { return m_id; }
+ virtual TQString name( ) const { return m_id; }
/**
* Returns the id of the declare
*/
- QString id( ) const { return m_id; }
+ TQString id( ) const { return m_id; }
/**
* Returns the declare type
*/
- QString declareType( ) const;
+ TQString declareType( ) const;
/**
* Sets the id of the object.
*/
- void setID( const QString& id );
+ void setID( const TQString& id );
/** */
virtual bool canHaveName( ) const { return true; }
@@ -131,7 +131,7 @@ private:
/**
* id of the declare
*/
- QString m_id;
+ TQString m_id;
/**
* The linked objects
*/
diff --git a/kpovmodeler/pmdeclareedit.cpp b/kpovmodeler/pmdeclareedit.cpp
index 5f9e9c67..a461d710 100644
--- a/kpovmodeler/pmdeclareedit.cpp
+++ b/kpovmodeler/pmdeclareedit.cpp
@@ -23,17 +23,17 @@
#include "pmscanner.h"
#include "pmobjectselect.h"
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qlabel.h>
-#include <qtextstream.h>
-#include <qpushbutton.h>
-#include <qlistbox.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqlabel.h>
+#include <tqtextstream.h>
+#include <tqpushbutton.h>
+#include <tqlistbox.h>
#include <klocale.h>
#include <kmessagebox.h>
-PMDeclareEdit::PMDeclareEdit( QWidget* parent, const char* name )
+PMDeclareEdit::PMDeclareEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -44,34 +44,34 @@ void PMDeclareEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- QHBoxLayout* layout = new QHBoxLayout( topLayout( ) );
- m_pNameEdit = new QLineEdit( this );
+ TQHBoxLayout* layout = new TQHBoxLayout( topLayout( ) );
+ m_pNameEdit = new TQLineEdit( this );
m_pNameEdit->setMaxLength( 40 );
- QLabel* label = new QLabel( i18n( "Identifier:" ), this );
+ TQLabel* label = new TQLabel( i18n( "Identifier:" ), this );
layout->addWidget( label );
layout->addWidget( m_pNameEdit );
- connect( m_pNameEdit, SIGNAL( textChanged( const QString& ) ),
- SLOT( slotNameChanged( const QString& ) ) );
+ connect( m_pNameEdit, TQT_SIGNAL( textChanged( const TQString& ) ),
+ TQT_SLOT( slotNameChanged( const TQString& ) ) );
}
void PMDeclareEdit::createBottomWidgets( )
{
- QLabel* l = new QLabel( i18n( "Linked objects:" ), this );
+ TQLabel* l = new TQLabel( i18n( "Linked objects:" ), this );
topLayout( )->addWidget( l );
- m_pLinkedObjects = new QListBox( this );
+ m_pLinkedObjects = new TQListBox( this );
m_pLinkedObjects->setMinimumHeight( 100 );
- connect( m_pLinkedObjects, SIGNAL( highlighted( QListBoxItem* ) ),
- SLOT( slotItemSelected( QListBoxItem* ) ) );
+ connect( m_pLinkedObjects, TQT_SIGNAL( highlighted( TQListBoxItem* ) ),
+ TQT_SLOT( slotItemSelected( TQListBoxItem* ) ) );
topLayout( )->addWidget( m_pLinkedObjects, 1 );
- QHBoxLayout* layout = new QHBoxLayout( topLayout( ) );
- m_pSelectButton = new QPushButton( i18n( "Select..." ), this );
+ TQHBoxLayout* layout = new TQHBoxLayout( topLayout( ) );
+ m_pSelectButton = new TQPushButton( i18n( "Select..." ), this );
m_pSelectButton->setEnabled( false );
- connect( m_pSelectButton, SIGNAL( clicked( ) ), SLOT( slotSelect( ) ) );
+ connect( m_pSelectButton, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotSelect( ) ) );
layout->addStretch( );
layout->addWidget( m_pSelectButton );
@@ -83,7 +83,7 @@ void PMDeclareEdit::displayObject( PMObject* o )
if( o->isA( "Declare" ) )
{
m_pDisplayedObject = ( PMDeclare* ) o;
- m_pNameEdit->setText( QString( m_pDisplayedObject->id( ) ) );
+ m_pNameEdit->setText( TQString( m_pDisplayedObject->id( ) ) );
m_pNameEdit->setReadOnly( m_pDisplayedObject->isReadOnly( ) );
@@ -117,7 +117,7 @@ bool PMDeclareEdit::isDataValid( )
if( !Base::isDataValid( ) )
return false;
- QString text = m_pNameEdit->text( );
+ TQString text = m_pNameEdit->text( );
if( text.length( ) == 0 )
{
KMessageBox::error( this, i18n( "Please enter an identifier!" ),
@@ -128,8 +128,8 @@ bool PMDeclareEdit::isDataValid( )
if( text == m_pDisplayedObject->id( ) )
return true;
- QTextStream str( &text, IO_ReadOnly );
- QChar c;
+ TQTextStream str( &text, IO_ReadOnly );
+ TQChar c;
int ac;
bool ok = true;
int i = 0;
@@ -137,7 +137,7 @@ bool PMDeclareEdit::isDataValid( )
{
str >> c;
ac = c.latin1( );
- // QChar::category can't be used because umlauts are not allowed
+ // TQChar::category can't be used because umlauts are not allowed
if( i == 0 )
ok = ( ( ( ac >= 'a' ) && ( ac <= 'z' ) ) ||
( ( ac >= 'A' ) && ( ac <= 'Z' ) ) ||
@@ -187,12 +187,12 @@ bool PMDeclareEdit::isDataValid( )
return true;
}
-void PMDeclareEdit::slotNameChanged( const QString& )
+void PMDeclareEdit::slotNameChanged( const TQString& )
{
emit dataChanged( );
}
-void PMDeclareEdit::slotItemSelected( QListBoxItem* item )
+void PMDeclareEdit::slotItemSelected( TQListBoxItem* item )
{
m_pSelectedObject = ( ( PMListBoxObject* ) item )->object( );
m_pSelectButton->setEnabled( true );
diff --git a/kpovmodeler/pmdeclareedit.h b/kpovmodeler/pmdeclareedit.h
index 9ee2fc83..2a40b869 100644
--- a/kpovmodeler/pmdeclareedit.h
+++ b/kpovmodeler/pmdeclareedit.h
@@ -27,10 +27,10 @@
#include "pmdialogeditbase.h"
class PMDeclare;
-class QLineEdit;
-class QListBox;
-class QPushButton;
-class QListBoxItem;
+class TQLineEdit;
+class TQListBox;
+class TQPushButton;
+class TQListBoxItem;
/**
* Dialog edit class for @ref PMDeclare.
@@ -43,7 +43,7 @@ public:
/**
* Creates a PMDeclareEdit with parent and name
*/
- PMDeclareEdit( QWidget* parent, const char* name = 0 );
+ PMDeclareEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -59,14 +59,14 @@ protected:
virtual void saveContents( );
private slots:
- void slotNameChanged( const QString& );
- void slotItemSelected( QListBoxItem* );
+ void slotNameChanged( const TQString& );
+ void slotItemSelected( TQListBoxItem* );
void slotSelect( );
private:
PMDeclare* m_pDisplayedObject;
- QLineEdit* m_pNameEdit;
- QListBox* m_pLinkedObjects;
- QPushButton* m_pSelectButton;
+ TQLineEdit* m_pNameEdit;
+ TQListBox* m_pLinkedObjects;
+ TQPushButton* m_pSelectButton;
PMObject* m_pSelectedObject;
};
diff --git a/kpovmodeler/pmdefaults.h b/kpovmodeler/pmdefaults.h
index 32c9675c..894433b3 100644
--- a/kpovmodeler/pmdefaults.h
+++ b/kpovmodeler/pmdefaults.h
@@ -22,29 +22,29 @@
#include <config.h>
#endif
-#include <qcolor.h>
+#include <tqcolor.h>
#include <math.h>
// PMRenderManager
-const QColor c_defaultGraphicalObjectColor0 = QColor( 148, 148, 148 );
-const QColor c_defaultGraphicalObjectColor1 = QColor( 255, 255, 128 );
-const QColor c_defaultTextureColor0 = QColor( 64, 192, 64 );
-const QColor c_defaultTextureColor1 = QColor( 192, 255, 128 );
-const QColor c_defaultAxesColorX = QColor( 255, 0, 0 );
-const QColor c_defaultAxesColorY = QColor( 0, 255, 0 );
-const QColor c_defaultAxesColorZ = QColor( 0, 0, 255 );
-const QColor c_defaultControlPointColor0 = QColor( 255, 255, 148 );
-const QColor c_defaultControlPointColor1 = QColor( 92, 255, 92 );
-const QColor c_defaultBackgroundColor = QColor( 0, 0, 0 );
-const QColor c_defaultFieldOfViewColor = QColor( 128, 128, 255 );
+const TQColor c_defaultGraphicalObjectColor0 = TQColor( 148, 148, 148 );
+const TQColor c_defaultGraphicalObjectColor1 = TQColor( 255, 255, 128 );
+const TQColor c_defaultTextureColor0 = TQColor( 64, 192, 64 );
+const TQColor c_defaultTextureColor1 = TQColor( 192, 255, 128 );
+const TQColor c_defaultAxesColorX = TQColor( 255, 0, 0 );
+const TQColor c_defaultAxesColorY = TQColor( 0, 255, 0 );
+const TQColor c_defaultAxesColorZ = TQColor( 0, 0, 255 );
+const TQColor c_defaultControlPointColor0 = TQColor( 255, 255, 148 );
+const TQColor c_defaultControlPointColor1 = TQColor( 92, 255, 92 );
+const TQColor c_defaultBackgroundColor = TQColor( 0, 0, 0 );
+const TQColor c_defaultFieldOfViewColor = TQColor( 128, 128, 255 );
const bool c_defaultHighDetailCameraView = true;
// PMGLView
const int c_defaultGridDistance = 50;
-const QColor c_defaultGridColor = QColor( 40, 120, 40 );
+const TQColor c_defaultGridColor = TQColor( 40, 120, 40 );
// PovrayRenderWidget
-const QString c_defaultPovrayCommand = QString( "povray" );
+const TQString c_defaultPovrayCommand = TQString( "povray" );
// PMDetailObject
const int c_defaultDetailObjectGlobalDetailLevel = 1;
@@ -112,10 +112,10 @@ const int c_defaultTPAADepth = 2;
const double c_defaultTPAAThreshold = 0.3;
const bool c_defaultTPShowFloor = true;
const bool c_defaultTPShowWall = true;
-const QColor c_defaultTPWallColor1 = QColor( 255, 255, 255 );
-const QColor c_defaultTPWallColor2 = QColor( 0, 0, 0 );
-const QColor c_defaultTPFloorColor1 = QColor( 192, 0, 0 );
-const QColor c_defaultTPFloorColor2 = QColor( 255, 255, 255 );
+const TQColor c_defaultTPWallColor1 = TQColor( 255, 255, 255 );
+const TQColor c_defaultTPWallColor2 = TQColor( 0, 0, 0 );
+const TQColor c_defaultTPFloorColor1 = TQColor( 192, 0, 0 );
+const TQColor c_defaultTPFloorColor2 = TQColor( 255, 255, 255 );
const double c_defaultTPGamma = 1.5;
// PM3DControlPoint
diff --git a/kpovmodeler/pmdeletecommand.cpp b/kpovmodeler/pmdeletecommand.cpp
index fa5ff47b..a4629728 100644
--- a/kpovmodeler/pmdeletecommand.cpp
+++ b/kpovmodeler/pmdeletecommand.cpp
@@ -24,7 +24,7 @@
#include <klocale.h>
#include <kmessagebox.h>
-#include <qptrdict.h>
+#include <tqptrdict.h>
PMDeleteCommand::PMDeleteCommand( PMObject* obj )
: PMCommand( i18n( "Delete %1" ).arg( obj->name( ) ) )
@@ -140,7 +140,7 @@ void PMDeleteCommand::execute( PMCommandManager* theManager )
}
}
- QPtrListIterator<PMMemento> mit( m_dataChanges );
+ TQPtrListIterator<PMMemento> mit( m_dataChanges );
for( ; mit.current( ); ++mit )
{
PMObjectChangeListIterator change = mit.current( )->changedObjects( );
@@ -182,7 +182,7 @@ void PMDeleteCommand::undo( PMCommandManager* theManager )
for( ; dit.current( ); ++dit )
theManager->cmdObjectChanged( dit.current( ), PMCData );
- QPtrListIterator<PMMemento> mit( m_dataChanges );
+ TQPtrListIterator<PMMemento> mit( m_dataChanges );
for( ; mit.current( ); ++mit )
{
mit.current( )->originator( )->restoreMemento( mit.current( ) );
@@ -206,7 +206,7 @@ int PMDeleteCommand::errorFlags( PMPart* )
bool error = false;
// dictionary of deleted objects
- QPtrDict<bool> m_deletedObjects( 1009 );
+ TQPtrDict<bool> m_deletedObjects( 1009 );
m_deletedObjects.setAutoDelete( true );
PMDeleteInfoListIterator it( m_infoList );
for( ; it.current( ); ++it )
diff --git a/kpovmodeler/pmdeletecommand.h b/kpovmodeler/pmdeletecommand.h
index ff67c0bc..d11cf348 100644
--- a/kpovmodeler/pmdeletecommand.h
+++ b/kpovmodeler/pmdeletecommand.h
@@ -25,7 +25,7 @@
#endif
#include "pmcommand.h"
-#include <qstring.h>
+#include <tqstring.h>
#include "pmobject.h"
@@ -79,8 +79,8 @@ private:
bool m_insertError;
};
-typedef QPtrList<PMDeleteInfo> PMDeleteInfoList;
-typedef QPtrListIterator<PMDeleteInfo> PMDeleteInfoListIterator;
+typedef TQPtrList<PMDeleteInfo> PMDeleteInfoList;
+typedef TQPtrListIterator<PMDeleteInfo> PMDeleteInfoListIterator;
/**
* Command class for removing PMObjects
@@ -120,7 +120,7 @@ private:
PMObjectList m_links;
PMObjectList m_linkedDeclares;
bool m_linksCreated;
- QPtrList<PMMemento> m_dataChanges;
+ TQPtrList<PMMemento> m_dataChanges;
};
#endif
diff --git a/kpovmodeler/pmdensity.cpp b/kpovmodeler/pmdensity.cpp
index 1cc1d638..3935b6be 100644
--- a/kpovmodeler/pmdensity.cpp
+++ b/kpovmodeler/pmdensity.cpp
@@ -63,13 +63,13 @@ void PMDensity::cleanUp( ) const
Base::cleanUp( );
}
-QString PMDensity::description( ) const
+TQString PMDensity::description( ) const
{
return i18n( "density" );
}
-PMDialogEditBase* PMDensity::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMDensity::editWidget( TQWidget* parent ) const
{
return new PMDensityEdit( parent );
}
diff --git a/kpovmodeler/pmdensity.h b/kpovmodeler/pmdensity.h
index 72a76bb7..b1502fe2 100644
--- a/kpovmodeler/pmdensity.h
+++ b/kpovmodeler/pmdensity.h
@@ -49,7 +49,7 @@ public:
/** */
virtual PMObject* copy( ) const { return new PMDensity( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
@@ -59,9 +59,9 @@ public:
/**
* Returns a new @ref PMDensityEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/** */
- virtual QString pixmap( ) const { return QString( "pmdensity" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmdensity" ); }
private:
/**
diff --git a/kpovmodeler/pmdensityedit.cpp b/kpovmodeler/pmdensityedit.cpp
index 9c7ff732..407a4f80 100644
--- a/kpovmodeler/pmdensityedit.cpp
+++ b/kpovmodeler/pmdensityedit.cpp
@@ -20,12 +20,12 @@
#include "pmdensity.h"
#include "pmlinkedit.h"
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klocale.h>
-PMDensityEdit::PMDensityEdit( QWidget* parent, const char* name )
+PMDensityEdit::PMDensityEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
diff --git a/kpovmodeler/pmdensityedit.h b/kpovmodeler/pmdensityedit.h
index 093a750c..a3963ca9 100644
--- a/kpovmodeler/pmdensityedit.h
+++ b/kpovmodeler/pmdensityedit.h
@@ -39,7 +39,7 @@ public:
/**
* Creates a PMDensityEdit with parent and name
*/
- PMDensityEdit( QWidget* parent, const char* name = 0 );
+ PMDensityEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
diff --git a/kpovmodeler/pmdetailobject.cpp b/kpovmodeler/pmdetailobject.cpp
index eae526cb..5abc7e22 100644
--- a/kpovmodeler/pmdetailobject.cpp
+++ b/kpovmodeler/pmdetailobject.cpp
@@ -70,7 +70,7 @@ void PMDetailObject::cleanUp( ) const
Base::cleanUp( );
}
-void PMDetailObject::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMDetailObject::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
e.setAttribute( "global_detail", m_globalDetail );
e.setAttribute( "local_detail_level", m_localDetailLevel );
diff --git a/kpovmodeler/pmdetailobject.h b/kpovmodeler/pmdetailobject.h
index 7994cdff..846ef8c0 100644
--- a/kpovmodeler/pmdetailobject.h
+++ b/kpovmodeler/pmdetailobject.h
@@ -48,7 +48,7 @@ public:
virtual void cleanUp( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
diff --git a/kpovmodeler/pmdetailobjectedit.cpp b/kpovmodeler/pmdetailobjectedit.cpp
index d42c668c..661cd892 100644
--- a/kpovmodeler/pmdetailobjectedit.cpp
+++ b/kpovmodeler/pmdetailobjectedit.cpp
@@ -17,13 +17,13 @@
#include "pmdetailobjectedit.h"
#include "pmdetailobject.h"
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qcombobox.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
#include <klocale.h>
-PMDetailObjectEdit::PMDetailObjectEdit( QWidget* parent, const char* name )
+PMDetailObjectEdit::PMDetailObjectEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -33,10 +33,10 @@ void PMDetailObjectEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- QHBoxLayout* layout = new QHBoxLayout( topLayout( ) );
- m_pGlobalDetail = new QCheckBox( i18n( "Global detail" ), this );
- m_pLocalDetailLevelLabel = new QLabel( i18n( "Detail level:" ), this );
- m_pLocalDetailLevel = new QComboBox( this );
+ TQHBoxLayout* layout = new TQHBoxLayout( topLayout( ) );
+ m_pGlobalDetail = new TQCheckBox( i18n( "Global detail" ), this );
+ m_pLocalDetailLevelLabel = new TQLabel( i18n( "Detail level:" ), this );
+ m_pLocalDetailLevel = new TQComboBox( this );
m_pLocalDetailLevel->insertItem( i18n( "Very Low" ) );
m_pLocalDetailLevel->insertItem( i18n( "Low" ) );
m_pLocalDetailLevel->insertItem( i18n( "Medium" ) );
@@ -48,8 +48,8 @@ void PMDetailObjectEdit::createTopWidgets( )
layout->addWidget( m_pLocalDetailLevel );
layout->addStretch( );
- connect( m_pGlobalDetail, SIGNAL( clicked( ) ), SLOT( slotGlobalDetailClicked( ) ) );
- connect( m_pLocalDetailLevel, SIGNAL( activated( int ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pGlobalDetail, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotGlobalDetailClicked( ) ) );
+ connect( m_pLocalDetailLevel, TQT_SIGNAL( activated( int ) ), TQT_SIGNAL( dataChanged( ) ) );
}
void PMDetailObjectEdit::displayObject( PMObject* o )
diff --git a/kpovmodeler/pmdetailobjectedit.h b/kpovmodeler/pmdetailobjectedit.h
index 7a585034..74aa3a29 100644
--- a/kpovmodeler/pmdetailobjectedit.h
+++ b/kpovmodeler/pmdetailobjectedit.h
@@ -25,9 +25,9 @@
#include "pmnamedobjectedit.h"
class PMDetailObject;
-class QCheckBox;
-class QLabel;
-class QComboBox;
+class TQCheckBox;
+class TQLabel;
+class TQComboBox;
/**
* Dialog edit class for @ref PMNamedObject.
@@ -40,7 +40,7 @@ public:
/**
* Creates a PMNamedObjectEdit with parent and name
*/
- PMDetailObjectEdit( QWidget* parent, const char* name = 0 );
+ PMDetailObjectEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -59,9 +59,9 @@ private slots:
private:
PMDetailObject* m_pDisplayedObject;
- QCheckBox* m_pGlobalDetail;
- QLabel* m_pLocalDetailLevelLabel;
- QComboBox* m_pLocalDetailLevel;
+ TQCheckBox* m_pGlobalDetail;
+ TQLabel* m_pLocalDetailLevelLabel;
+ TQComboBox* m_pLocalDetailLevel;
};
diff --git a/kpovmodeler/pmdialogeditbase.cpp b/kpovmodeler/pmdialogeditbase.cpp
index 9defd762..ea601be3 100644
--- a/kpovmodeler/pmdialogeditbase.cpp
+++ b/kpovmodeler/pmdialogeditbase.cpp
@@ -18,13 +18,13 @@
#include "pmdialogeditbase.h"
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
-#include <qlabel.h>
-#include <qvbox.h>
-#include <qbuffer.h>
-#include <qptrdict.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
+#include <tqlabel.h>
+#include <tqvbox.h>
+#include <tqbuffer.h>
+#include <tqptrdict.h>
#include <kdialog.h>
#include <kconfig.h>
#include <klocale.h>
@@ -51,52 +51,52 @@ int PMDialogEditBase::s_previewAADepth = c_defaultTPAADepth;
double PMDialogEditBase::s_previewAAThreshold = c_defaultTPAAThreshold;
bool PMDialogEditBase::s_showFloor = c_defaultTPShowFloor;
bool PMDialogEditBase::s_showWall = c_defaultTPShowWall;
-QColor PMDialogEditBase::s_wallColor1 = c_defaultTPWallColor1;
-QColor PMDialogEditBase::s_wallColor2 = c_defaultTPWallColor2;
-QColor PMDialogEditBase::s_floorColor1 = c_defaultTPFloorColor1;
-QColor PMDialogEditBase::s_floorColor2 = c_defaultTPFloorColor2;
+TQColor PMDialogEditBase::s_wallColor1 = c_defaultTPWallColor1;
+TQColor PMDialogEditBase::s_wallColor2 = c_defaultTPWallColor2;
+TQColor PMDialogEditBase::s_floorColor1 = c_defaultTPFloorColor1;
+TQColor PMDialogEditBase::s_floorColor2 = c_defaultTPFloorColor2;
bool PMDialogEditBase::s_previewLocal = false;
double PMDialogEditBase::s_previewGamma = c_defaultTPGamma;
/** Constants for texture preview */
-const QString c_wallCode = QString(
+const TQString c_wallCode = TQString(
"plane { <0, 0, -1>, -2\n"
" pigment { checker %1 %2\n"
" scale <0.5, 0.5, 0.5>\n"
" translate <0.5, 0, 0>\n"
" }\n"
"}\n" );
-const QString c_floorCode = QString(
+const TQString c_floorCode = TQString(
"plane { <0, 1, 0>, 0\n"
" pigment { checker %1 %2\n"
" scale <0.5, 0.5, 0.5>\n"
" }\n"
"}\n" );
-const QString c_lightCode = QString(
+const TQString c_lightCode = TQString(
"light_source { <-2.5, 3, -1.5>, rgb <1, 1, 1> }\n"
"light_source { <3, 3, -3>, rgb <0.6, 0.6, 0.6> shadowless }\n" );
-const QString c_cameraCode[3] = {
- QString( "camera { location <-1, 1.25, -2> right <1, 0, 0>\n"
+const TQString c_cameraCode[3] = {
+ TQString( "camera { location <-1, 1.25, -2> right <1, 0, 0>\n"
" look_at <0.0, 0.5, 0> angle 45 }\n" ),
- QString( "camera { location <-1, 2, -3> right <1, 0, 0>\n"
+ TQString( "camera { location <-1, 2, -3> right <1, 0, 0>\n"
" look_at <0.0, 1, 0> angle 45 }\n" ),
- QString( "camera { location <-2, 2.5, -4> right <1, 0, 0>\n"
+ TQString( "camera { location <-2, 2.5, -4> right <1, 0, 0>\n"
" look_at <0.0, 1.5, 0> angle 45 }\n" )
};
-const QString c_sphereCode = QString(
+const TQString c_sphereCode = TQString(
"sphere { <0, 0.5, 0>, 0.5 translate <0, %1, 0> }\n" );
-const QString c_cylinderCode = QString(
+const TQString c_cylinderCode = TQString(
"cylinder { <0, 0, 0>, <0, 1, 0>, 0.5 translate <0, %1, 0> }\n" );
-const QString c_boxCode = QString(
+const TQString c_boxCode = TQString(
"box { <-0.5, 0, -0.5>, <0.5, 1, 0.5> translate <0, %1, 0> }\n" );
-const QString c_globalSettingsCode = QString(
+const TQString c_globalSettingsCode = TQString(
"global_settings { assumed_gamma %1 }\n" );
-PMDialogEditBase::PMDialogEditBase( QWidget* parent, const char* name )
- : QWidget( parent, name )
+PMDialogEditBase::PMDialogEditBase( TQWidget* parent, const char* name )
+ : TQWidget( parent, name )
{
m_pDisplayedObject = 0;
m_pPart = 0;
@@ -118,7 +118,7 @@ PMDialogEditBase::~PMDialogEditBase( )
void PMDialogEditBase::createWidgets( )
{
- m_pTopLayout = new QBoxLayout( this, QBoxLayout::TopToBottom,
+ m_pTopLayout = new TQBoxLayout( this, TQBoxLayout::TopToBottom,
KDialog::spacingHint( ) );
createTopWidgets( );
@@ -130,7 +130,7 @@ void PMDialogEditBase::createWidgets( )
void PMDialogEditBase::createBottomWidgets( )
{
- m_pTexturePreviewWidget = new QWidget( this );
+ m_pTexturePreviewWidget = new TQWidget( this );
m_pTexturePreviewWidget->hide( );
m_pTopLayout->addWidget( m_pTexturePreviewWidget );
}
@@ -163,43 +163,43 @@ void PMDialogEditBase::displayObject( PMObject* o )
// is the preview widget created?
if( !m_pRenderWidget )
{
- QVBoxLayout* vl = new QVBoxLayout( m_pTexturePreviewWidget, 0,
+ TQVBoxLayout* vl = new TQVBoxLayout( m_pTexturePreviewWidget, 0,
KDialog::spacingHint( ) );
vl->addSpacing( 10 );
- QFrame* hline = new QFrame( m_pTexturePreviewWidget );
- hline->setFrameStyle( QFrame::HLine | QFrame::Plain );
+ TQFrame* hline = new TQFrame( m_pTexturePreviewWidget );
+ hline->setFrameStyle( TQFrame::HLine | TQFrame::Plain );
hline->setLineWidth( 1 );
vl->addWidget( hline );
- vl->addWidget( new QLabel( i18n( "Texture preview:" ), m_pTexturePreviewWidget ) );
- m_pRenderFrame = new QVBox( m_pTexturePreviewWidget );
- m_pRenderFrame->setFrameStyle( QFrame::StyledPanel | QFrame::Sunken );
+ vl->addWidget( new TQLabel( i18n( "Texture preview:" ), m_pTexturePreviewWidget ) );
+ m_pRenderFrame = new TQVBox( m_pTexturePreviewWidget );
+ m_pRenderFrame->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken );
m_pRenderFrame->setLineWidth( 2 );
m_pRenderFrame->hide( );
vl->addWidget( m_pRenderFrame );
m_pRenderWidget = new PMPovrayRenderWidget( m_pRenderFrame );
- connect( m_pRenderWidget, SIGNAL( finished( int ) ),
- SLOT( slotPreviewFinished( int ) ) );
- m_pPreviewLocalBox = new QCheckBox( i18n( "local" ), m_pTexturePreviewWidget );
+ connect( m_pRenderWidget, TQT_SIGNAL( finished( int ) ),
+ TQT_SLOT( slotPreviewFinished( int ) ) );
+ m_pPreviewLocalBox = new TQCheckBox( i18n( "local" ), m_pTexturePreviewWidget );
m_pPreviewLocalBox->setChecked( s_previewLocal );
- connect( m_pPreviewLocalBox, SIGNAL( toggled( bool ) ),
- SLOT( slotPreviewLocal( bool ) ) );
+ connect( m_pPreviewLocalBox, TQT_SIGNAL( toggled( bool ) ),
+ TQT_SLOT( slotPreviewLocal( bool ) ) );
vl->addWidget( m_pPreviewLocalBox );
- QHBoxLayout* hl = new QHBoxLayout( vl );
- m_pPreviewButton = new QPushButton( i18n( "&Preview" ), m_pTexturePreviewWidget );
+ TQHBoxLayout* hl = new TQHBoxLayout( vl );
+ m_pPreviewButton = new TQPushButton( i18n( "&Preview" ), m_pTexturePreviewWidget );
hl->addWidget( m_pPreviewButton );
- connect( m_pPreviewButton, SIGNAL( clicked( ) ),
- SLOT( slotTexturePreview( ) ) );
- m_pOutputButton = new QPushButton( i18n( "Povray Output" ), m_pTexturePreviewWidget );
+ connect( m_pPreviewButton, TQT_SIGNAL( clicked( ) ),
+ TQT_SLOT( slotTexturePreview( ) ) );
+ m_pOutputButton = new TQPushButton( i18n( "Povray Output" ), m_pTexturePreviewWidget );
hl->addWidget( m_pOutputButton );
- connect( m_pOutputButton, SIGNAL( clicked( ) ),
- SLOT( slotPovrayOutput( ) ) );
+ connect( m_pOutputButton, TQT_SIGNAL( clicked( ) ),
+ TQT_SLOT( slotPovrayOutput( ) ) );
hl->addStretch( 1 );
m_pOutputWidget = new PMPovrayOutputWidget( );
- connect( m_pRenderWidget, SIGNAL( povrayMessage( const QString& ) ),
- m_pOutputWidget, SLOT( slotText( const QString& ) ) );
+ connect( m_pRenderWidget, TQT_SIGNAL( povrayMessage( const TQString& ) ),
+ m_pOutputWidget, TQT_SLOT( slotText( const TQString& ) ) );
}
m_pTexturePreviewWidget->show( );
@@ -217,7 +217,7 @@ void PMDialogEditBase::displayObject( PMObject* o )
}
}
-void PMDialogEditBase::setHelp( const QString& anchor )
+void PMDialogEditBase::setHelp( const TQString& anchor )
{
m_helpTopic = anchor;
}
@@ -228,7 +228,7 @@ void PMDialogEditBase::redisplay( )
displayObject( m_pDisplayedObject );
}
-void PMDialogEditBase::setCheckBox( QCheckBox* box, PMThreeState state )
+void PMDialogEditBase::setCheckBox( TQCheckBox* box, PMThreeState state )
{
switch( state )
{
@@ -244,18 +244,18 @@ void PMDialogEditBase::setCheckBox( QCheckBox* box, PMThreeState state )
}
}
-PMThreeState PMDialogEditBase::checkBoxState( QCheckBox* box )
+PMThreeState PMDialogEditBase::checkBoxState( TQCheckBox* box )
{
PMThreeState st = PMTrue;
switch( box->state( ) )
{
- case QCheckBox::On:
+ case TQCheckBox::On:
st = PMTrue;
break;
- case QCheckBox::Off:
+ case TQCheckBox::Off:
st = PMFalse;
break;
- case QCheckBox::NoChange:
+ case TQCheckBox::NoChange:
st = PMUnspecified;
break;
}
@@ -385,15 +385,15 @@ void PMDialogEditBase::slotTexturePreview( )
s_showSphere = true;
int numObjects = 0;
- QByteArray scene;
- QBuffer buffer( scene );
+ TQByteArray scene;
+ TQBuffer buffer( scene );
buffer.open( IO_WriteOnly );
- QTextStream str( &buffer );
+ TQTextStream str( &buffer );
PMPovray31Format format;
PMSerializer* dev = format.newSerializer( &buffer );
PMRenderMode mode;
PMObjectList neededDeclares, objectsToCheck;
- QPtrDict<PMObject> objectsToSerialize( 101 );
+ TQPtrDict<PMObject> objectsToSerialize( 101 );
PMObject* link;
// find needed declares
diff --git a/kpovmodeler/pmdialogeditbase.h b/kpovmodeler/pmdialogeditbase.h
index 547946f5..6057648e 100644
--- a/kpovmodeler/pmdialogeditbase.h
+++ b/kpovmodeler/pmdialogeditbase.h
@@ -24,16 +24,16 @@
#include <config.h>
#endif
-#include <qwidget.h>
-#include <qstring.h>
+#include <tqwidget.h>
+#include <tqstring.h>
#include "pmobject.h"
-class QBoxLayout;
-class QCheckBox;
-class QLayout;
-class QPushButton;
-class QVBox;
+class TQBoxLayout;
+class TQCheckBox;
+class TQLayout;
+class TQPushButton;
+class TQVBox;
class KConfig;
class PMPart;
class PMPovrayRenderWidget;
@@ -62,7 +62,7 @@ public:
* No widgets are created within the constructor! You have to call
* @ref createWidgets after creating a new edit widget.
*/
- PMDialogEditBase( QWidget* parent, const char* name = 0 );
+ PMDialogEditBase( TQWidget* parent, const char* name = 0 );
/**
* Destructor
*/
@@ -108,7 +108,7 @@ public:
/**
* Returns the help topic
*/
- const QString& helpTopic( ) { return m_helpTopic; }
+ const TQString& helpTopic( ) { return m_helpTopic; }
/**
* Discards changes and redisplays the object
@@ -123,11 +123,11 @@ public:
/**
* Sets the check box to state s
*/
- static void setCheckBox( QCheckBox* box, PMThreeState s );
+ static void setCheckBox( TQCheckBox* box, PMThreeState s );
/**
* Gets the state of the checkbox
*/
- static PMThreeState checkBoxState( QCheckBox* box );
+ static PMThreeState checkBoxState( TQCheckBox* box );
/**
* Sets the part
@@ -215,35 +215,35 @@ public:
/**
* Returns the first wall color
*/
- static QColor previewWallColor1( ) { return s_wallColor1; }
+ static TQColor previewWallColor1( ) { return s_wallColor1; }
/**
* Sets the first wall color
*/
- static void setPreviewWallColor1( const QColor& c ) { s_wallColor1 = c; }
+ static void setPreviewWallColor1( const TQColor& c ) { s_wallColor1 = c; }
/**
* Returns the second wall color
*/
- static QColor previewWallColor2( ) { return s_wallColor2; }
+ static TQColor previewWallColor2( ) { return s_wallColor2; }
/**
* Sets the second wall color
*/
- static void setPreviewWallColor2( const QColor& c ) { s_wallColor2 = c; }
+ static void setPreviewWallColor2( const TQColor& c ) { s_wallColor2 = c; }
/**
* Returns the first floor color
*/
- static QColor previewFloorColor1( ) { return s_floorColor1; }
+ static TQColor previewFloorColor1( ) { return s_floorColor1; }
/**
* Sets the first floor color
*/
- static void setPreviewFloorColor1( const QColor& c ) { s_floorColor1 = c; }
+ static void setPreviewFloorColor1( const TQColor& c ) { s_floorColor1 = c; }
/**
* Returns the second floor color
*/
- static QColor previewFloorColor2( ) { return s_floorColor2; }
+ static TQColor previewFloorColor2( ) { return s_floorColor2; }
/**
* Sets the second floor color
*/
- static void setPreviewFloorColor2( const QColor& c ) { s_floorColor2 = c; }
+ static void setPreviewFloorColor2( const TQColor& c ) { s_floorColor2 = c; }
/**
* Returns the local flag for texture preview
*/
@@ -268,7 +268,7 @@ protected:
* Sets the help topic
* @param anchor Defined anchor in your docbook sources
*/
- void setHelp( const QString& anchor );
+ void setHelp( const TQString& anchor );
/**
* Create widgets here, that should be placed on top of the widgets
@@ -297,7 +297,7 @@ protected:
/**
* Returns a pointer to the top layout
*/
- QBoxLayout* topLayout( ) const { return m_pTopLayout; }
+ TQBoxLayout* topLayout( ) const { return m_pTopLayout; }
protected slots:
void slotTexturePreview( );
@@ -326,16 +326,16 @@ private:
void findTextures( PMObject*& global, PMObject*& local ) const;
PMObject* m_pDisplayedObject;
- QBoxLayout* m_pTopLayout;
- QString m_helpTopic;
+ TQBoxLayout* m_pTopLayout;
+ TQString m_helpTopic;
PMPart* m_pPart;
- QWidget* m_pTexturePreviewWidget;
+ TQWidget* m_pTexturePreviewWidget;
PMPovrayRenderWidget* m_pRenderWidget;
PMPovrayOutputWidget* m_pOutputWidget;
- QVBox* m_pRenderFrame;
- QCheckBox* m_pPreviewLocalBox;
- QPushButton* m_pPreviewButton;
- QPushButton* m_pOutputButton;
+ TQVBox* m_pRenderFrame;
+ TQCheckBox* m_pPreviewLocalBox;
+ TQPushButton* m_pPreviewButton;
+ TQPushButton* m_pOutputButton;
static int s_previewSize;
static bool s_showSphere;
@@ -346,8 +346,8 @@ private:
static double s_previewAAThreshold;
static bool s_showFloor;
static bool s_showWall;
- static QColor s_wallColor1, s_wallColor2;
- static QColor s_floorColor1, s_floorColor2;
+ static TQColor s_wallColor1, s_wallColor2;
+ static TQColor s_floorColor1, s_floorColor2;
static bool s_previewLocal;
static double s_previewGamma;
};
diff --git a/kpovmodeler/pmdialogview.cpp b/kpovmodeler/pmdialogview.cpp
index f88a0272..243427b5 100644
--- a/kpovmodeler/pmdialogview.cpp
+++ b/kpovmodeler/pmdialogview.cpp
@@ -33,14 +33,14 @@
#include <krun.h>
#include <kstdguiitem.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qgroupbox.h>
-#include <qscrollview.h>
-#include <qlabel.h>
-
-PMDialogEditContent::PMDialogEditContent( QWidget* parent, const char* name )
- : QScrollView( parent, name )
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqgroupbox.h>
+#include <tqscrollview.h>
+#include <tqlabel.h>
+
+PMDialogEditContent::PMDialogEditContent( TQWidget* parent, const char* name )
+ : TQScrollView( parent, name )
{
m_pContents = 0;
setVScrollBarMode( AlwaysOff );
@@ -50,7 +50,7 @@ PMDialogEditContent::PMDialogEditContent( QWidget* parent, const char* name )
setResizePolicy( Manual );
}
-void PMDialogEditContent::setContents( QWidget* wid )
+void PMDialogEditContent::setContents( TQWidget* wid )
{
if( m_pContents )
removeChild( m_pContents );
@@ -69,7 +69,7 @@ void PMDialogEditContent::calculateSize( )
int fw = lineWidth( ) * 2;
if( m_pContents )
{
- QSize newSize = m_pContents->minimumSizeHint( );
+ TQSize newSize = m_pContents->minimumSizeHint( );
setVScrollBarMode( AlwaysOff );
setHScrollBarMode( AlwaysOff );
@@ -106,12 +106,12 @@ void PMDialogEditContent::calculateSize( )
}
}
-void PMDialogEditContent::resizeEvent( QResizeEvent* /* ev */ )
+void PMDialogEditContent::resizeEvent( TQResizeEvent* /* ev */ )
{
calculateSize( );
}
-PMDialogView::PMDialogView( PMPart* part, QWidget* parent, const char* name )
+PMDialogView::PMDialogView( PMPart* part, TQWidget* parent, const char* name )
: PMViewBase( parent, name )
{
m_pDisplayedWidget = 0;
@@ -120,12 +120,12 @@ PMDialogView::PMDialogView( PMPart* part, QWidget* parent, const char* name )
m_pHelper->show( );
m_pPart = part;
- m_pLayout = new QVBoxLayout( this, KDialog::marginHint( ),
+ m_pLayout = new TQVBoxLayout( this, KDialog::marginHint( ),
KDialog::spacingHint( ) );
- QHBoxLayout* labelLayout = new QHBoxLayout( m_pLayout );
- m_pPixmapLabel = new QLabel( this );
- m_pObjectTypeLabel = new QLabel( this );
+ TQHBoxLayout* labelLayout = new TQHBoxLayout( m_pLayout );
+ m_pPixmapLabel = new TQLabel( this );
+ m_pObjectTypeLabel = new TQLabel( this );
labelLayout->addWidget( m_pPixmapLabel );
labelLayout->addWidget( m_pObjectTypeLabel );
labelLayout->addStretch( );
@@ -133,34 +133,34 @@ PMDialogView::PMDialogView( PMPart* part, QWidget* parent, const char* name )
m_pLayout->addWidget( m_pHelper, 2 );
m_pLayout->addStretch( );
- QHBoxLayout* buttonLayout = new QHBoxLayout( m_pLayout );
+ TQHBoxLayout* buttonLayout = new TQHBoxLayout( m_pLayout );
m_pHelpButton = new KPushButton( KStdGuiItem::help(), this );
buttonLayout->addWidget( m_pHelpButton );
- connect( m_pHelpButton, SIGNAL( clicked( ) ), this, SLOT( slotHelp( ) ) );
+ connect( m_pHelpButton, TQT_SIGNAL( clicked( ) ), this, TQT_SLOT( slotHelp( ) ) );
m_pHelpButton->setEnabled( false );
m_pApplyButton = new KPushButton( KStdGuiItem::apply(), this );
buttonLayout->addWidget( m_pApplyButton );
- connect( m_pApplyButton, SIGNAL( clicked( ) ), this, SLOT( slotApply( ) ) );
+ connect( m_pApplyButton, TQT_SIGNAL( clicked( ) ), this, TQT_SLOT( slotApply( ) ) );
m_pApplyButton->setEnabled( false );
buttonLayout->addStretch( );
m_pCancelButton = new KPushButton( KStdGuiItem::cancel(), this );
buttonLayout->addWidget( m_pCancelButton );
- connect( m_pCancelButton, SIGNAL( clicked( ) ), this, SLOT( slotCancel( ) ) );
+ connect( m_pCancelButton, TQT_SIGNAL( clicked( ) ), this, TQT_SLOT( slotCancel( ) ) );
m_pCancelButton->setEnabled( false );
m_pLayout->activate( );
- connect( part, SIGNAL( refresh( ) ), SLOT( slotRefresh( ) ) );
- connect( part, SIGNAL( objectChanged( PMObject*, const int, QObject* ) ),
- SLOT( slotObjectChanged( PMObject*, const int, QObject* ) ) );
- connect( part, SIGNAL( clear( ) ), SLOT( slotClear( ) ) );
- connect( part, SIGNAL( aboutToRender( ) ), SLOT( slotAboutToRender( ) ) );
- connect( part, SIGNAL( aboutToSave( ) ), SLOT( slotAboutToRender( ) ) );
- connect( this, SIGNAL( objectChanged( PMObject*, const int, QObject* ) ),
- part, SLOT( slotObjectChanged( PMObject*, const int, QObject* ) ) );
+ connect( part, TQT_SIGNAL( refresh( ) ), TQT_SLOT( slotRefresh( ) ) );
+ connect( part, TQT_SIGNAL( objectChanged( PMObject*, const int, TQObject* ) ),
+ TQT_SLOT( slotObjectChanged( PMObject*, const int, TQObject* ) ) );
+ connect( part, TQT_SIGNAL( clear( ) ), TQT_SLOT( slotClear( ) ) );
+ connect( part, TQT_SIGNAL( aboutToRender( ) ), TQT_SLOT( slotAboutToRender( ) ) );
+ connect( part, TQT_SIGNAL( aboutToSave( ) ), TQT_SLOT( slotAboutToRender( ) ) );
+ connect( this, TQT_SIGNAL( objectChanged( PMObject*, const int, TQObject* ) ),
+ part, TQT_SLOT( slotObjectChanged( PMObject*, const int, TQObject* ) ) );
displayObject( m_pPart->activeObject( ) );
}
@@ -172,7 +172,7 @@ PMDialogView::~PMDialogView( )
emit destroyed( this );
}
-void PMDialogView::slotObjectChanged( PMObject* obj, const int mode, QObject* sender )
+void PMDialogView::slotObjectChanged( PMObject* obj, const int mode, TQObject* sender )
{
if( sender == this )
return;
@@ -275,7 +275,7 @@ void PMDialogView::slotHelp( )
{
if( m_pDisplayedWidget && m_pDisplayedWidget->displayedObject( ) )
{
- QString url = PMDocumentationMap::theMap( )->documentation(
+ TQString url = PMDocumentationMap::theMap( )->documentation(
m_pDisplayedWidget->displayedObject( )->className( ) );
if( !url.isEmpty( ) )
{
@@ -371,15 +371,15 @@ void PMDialogView::displayObject( PMObject* obj, bool updateDescription )
if( m_pDisplayedWidget )
{
- connect( m_pDisplayedWidget, SIGNAL( dataChanged( ) ),
- this, SLOT( slotDataChanged( ) ) );
- connect( m_pDisplayedWidget, SIGNAL( sizeChanged( ) ),
- this, SLOT( slotSizeChanged( ) ) );
- connect( m_pDisplayedWidget, SIGNAL( aboutToRender( ) ),
- this, SLOT( slotAboutToRender( ) ) );
+ connect( m_pDisplayedWidget, TQT_SIGNAL( dataChanged( ) ),
+ this, TQT_SLOT( slotDataChanged( ) ) );
+ connect( m_pDisplayedWidget, TQT_SIGNAL( sizeChanged( ) ),
+ this, TQT_SLOT( slotSizeChanged( ) ) );
+ connect( m_pDisplayedWidget, TQT_SIGNAL( aboutToRender( ) ),
+ this, TQT_SLOT( slotAboutToRender( ) ) );
connect( m_pDisplayedWidget,
- SIGNAL( controlPointSelectionChanged( ) ),
- SLOT( slotControlPointSelectionChanged( ) ) );
+ TQT_SIGNAL( controlPointSelectionChanged( ) ),
+ TQT_SLOT( slotControlPointSelectionChanged( ) ) );
}
}
@@ -415,7 +415,7 @@ void PMDialogView::displayObject( PMObject* obj, bool updateDescription )
m_unsavedData = false;
}
-void PMDialogView::keyPressEvent( QKeyEvent* ev )
+void PMDialogView::keyPressEvent( TQKeyEvent* ev )
{
if( ( ev->key( ) == Key_Return ) || ( ev->key( ) == Key_Enter ) )
slotApply( );
@@ -428,12 +428,12 @@ void PMDialogView::slotAboutToRender( )
slotApply( );
}
-QString PMDialogView::description( ) const
+TQString PMDialogView::description( ) const
{
return i18n( "Object Properties" );
}
-QString PMDialogViewFactory::description( ) const
+TQString PMDialogViewFactory::description( ) const
{
return i18n( "Object Properties" );
}
diff --git a/kpovmodeler/pmdialogview.h b/kpovmodeler/pmdialogview.h
index aef224eb..680cbbc9 100644
--- a/kpovmodeler/pmdialogview.h
+++ b/kpovmodeler/pmdialogview.h
@@ -23,8 +23,8 @@
#include <config.h>
#endif
-#include <qwidget.h>
-#include <qscrollview.h>
+#include <tqwidget.h>
+#include <tqscrollview.h>
#include <kpushbutton.h>
#include "pmviewbase.h"
@@ -33,9 +33,9 @@
class PMDialogEditBase;
class PMObject;
class PMPart;
-class QGroupBox;
-class QBoxLayout;
-class QLabel;
+class TQGroupBox;
+class TQBoxLayout;
+class TQLabel;
/**
* Helper class for @ref PMDialogView
@@ -44,13 +44,13 @@ class PMDialogEditContent : public QScrollView
{
Q_OBJECT
public:
- PMDialogEditContent( QWidget* parent, const char* name = 0 );
- void setContents( QWidget* wid );
+ PMDialogEditContent( TQWidget* parent, const char* name = 0 );
+ void setContents( TQWidget* wid );
void calculateSize( );
protected:
- void resizeEvent( QResizeEvent* );
+ void resizeEvent( TQResizeEvent* );
private:
- QWidget* m_pContents;
+ TQWidget* m_pContents;
};
/**
@@ -67,23 +67,23 @@ public:
/**
* Creates a new PMDialogView widget
*/
- PMDialogView( PMPart* part, QWidget* parent, const char* name = 0 );
+ PMDialogView( PMPart* part, TQWidget* parent, const char* name = 0 );
/**
* Deletes the widget
*/
~PMDialogView( );
/** */
- virtual QString viewType( ) const { return QString( "dialogview" ); }
+ virtual TQString viewType( ) const { return TQString( "dialogview" ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
public slots:
/**
* Called when an object is changed.
* Mode is a bit combination of @ref PMChange constants
*/
- void slotObjectChanged( PMObject* obj, const int mode, QObject* sender );
+ void slotObjectChanged( PMObject* obj, const int mode, TQObject* sender );
/**
* Called before the scene is rendered
*/
@@ -101,14 +101,14 @@ signals:
* Signal that is emitted when an object is changed.
* Mode is a bit combination of @ref PMChange constants.
*/
- void objectChanged( PMObject* obj, const int mode, QObject* sender );
+ void objectChanged( PMObject* obj, const int mode, TQObject* sender );
/**
* Emitted in the destructor
*/
void destroyed( PMDialogView* v );
protected:
- virtual void keyPressEvent( QKeyEvent* );
+ virtual void keyPressEvent( TQKeyEvent* );
private slots:
void slotApply( );
@@ -129,14 +129,14 @@ private:
void displayObject( PMObject* obj, bool updateDescription = true );
PMDialogEditBase* m_pDisplayedWidget;
- QBoxLayout* m_pLayout;
+ TQBoxLayout* m_pLayout;
KPushButton* m_pApplyButton;
KPushButton* m_pCancelButton;
KPushButton* m_pHelpButton;
- QLabel* m_pPixmapLabel;
- QLabel* m_pObjectTypeLabel;
+ TQLabel* m_pPixmapLabel;
+ TQLabel* m_pObjectTypeLabel;
PMDialogEditContent* m_pHelper;
@@ -151,10 +151,10 @@ class PMDialogViewFactory : public PMViewTypeFactory
{
public:
PMDialogViewFactory( ) { }
- virtual QString viewType( ) const { return QString( "dialogview" ); }
- virtual QString description( ) const;
- virtual QString iconName( ) const { return QString( "pmdialogview" ); }
- virtual PMViewBase* newInstance( QWidget* parent, PMPart* part ) const
+ virtual TQString viewType( ) const { return TQString( "dialogview" ); }
+ virtual TQString description( ) const;
+ virtual TQString iconName( ) const { return TQString( "pmdialogview" ); }
+ virtual PMViewBase* newInstance( TQWidget* parent, PMPart* part ) const
{
return new PMDialogView( part, parent );
}
diff --git a/kpovmodeler/pmdisc.cpp b/kpovmodeler/pmdisc.cpp
index d276e541..bda89579 100644
--- a/kpovmodeler/pmdisc.cpp
+++ b/kpovmodeler/pmdisc.cpp
@@ -73,12 +73,12 @@ PMDisc::~PMDisc( )
{
}
-QString PMDisc::description( ) const
+TQString PMDisc::description( ) const
{
return i18n( "disc" );
}
-void PMDisc::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMDisc::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
e.setAttribute( "center", m_center.serializeXML( ) );
e.setAttribute( "normal", m_normal.serializeXML( ) );
@@ -176,7 +176,7 @@ void PMDisc::setHoleRadius( double hradius )
}
}
-PMDialogEditBase* PMDisc::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMDisc::editWidget( TQWidget* parent ) const
{
return new PMDiscEdit( parent );
}
diff --git a/kpovmodeler/pmdisc.h b/kpovmodeler/pmdisc.h
index 35cb0081..62201bcf 100644
--- a/kpovmodeler/pmdisc.h
+++ b/kpovmodeler/pmdisc.h
@@ -56,22 +56,22 @@ public:
virtual PMObject* copy( ) const { return new PMDisc( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMDiscEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/**
* Returns the name of the pixmap that is displayed in the tree view and dialog view
*/
- virtual QString pixmap( ) const { return QString( "pmdisc" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmdisc" ); }
/**
* Return the center
diff --git a/kpovmodeler/pmdiscedit.cpp b/kpovmodeler/pmdiscedit.cpp
index 109c3d66..0197a806 100644
--- a/kpovmodeler/pmdiscedit.cpp
+++ b/kpovmodeler/pmdiscedit.cpp
@@ -21,13 +21,13 @@
#include "pmvectoredit.h"
#include "pmlineedits.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
#include <klocale.h>
#include <kmessagebox.h>
-PMDiscEdit::PMDiscEdit( QWidget* parent, const char* name )
+PMDiscEdit::PMDiscEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -37,8 +37,8 @@ void PMDiscEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- QHBoxLayout* layout;
- QGridLayout* gl;
+ TQHBoxLayout* layout;
+ TQGridLayout* gl;
m_pCenter = new PMVectorEdit( "x", "y", "z", this );
m_pNormal = new PMVectorEdit( "x", "y", "z", this );
@@ -47,30 +47,30 @@ void PMDiscEdit::createTopWidgets( )
m_pRadius = new PMFloatEdit( this );
m_pRadius->setValidation( true, 0.0, false, 0.0 );
- gl = new QGridLayout( topLayout( ), 2, 2 );
- gl->addWidget( new QLabel( i18n( "Center:" ), this ), 0, 0 );
+ gl = new TQGridLayout( topLayout( ), 2, 2 );
+ gl->addWidget( new TQLabel( i18n( "Center:" ), this ), 0, 0 );
gl->addWidget( m_pCenter, 0, 1 );
- gl->addWidget( new QLabel( i18n( "Normal:" ), this ), 1, 0 );
+ gl->addWidget( new TQLabel( i18n( "Normal:" ), this ), 1, 0 );
gl->addWidget( m_pNormal, 1, 1 );
- layout = new QHBoxLayout( topLayout( ) );
- gl = new QGridLayout( layout, 2, 2 );
- gl->addWidget( new QLabel( i18n( "Radius:" ), this ), 0, 0 );
+ layout = new TQHBoxLayout( topLayout( ) );
+ gl = new TQGridLayout( layout, 2, 2 );
+ gl->addWidget( new TQLabel( i18n( "Radius:" ), this ), 0, 0 );
gl->addWidget( m_pRadius, 0, 1 );
- gl->addWidget( new QLabel( i18n( "Hole radius:" ), this ), 1, 0 );
+ gl->addWidget( new TQLabel( i18n( "Hole radius:" ), this ), 1, 0 );
gl->addWidget( m_pHRadius, 1, 1 );
layout->addStretch( 1 );
- QPushButton* nb = new QPushButton( i18n( "Normalize" ), this );
- layout = new QHBoxLayout( topLayout( ) );
+ TQPushButton* nb = new TQPushButton( i18n( "Normalize" ), this );
+ layout = new TQHBoxLayout( topLayout( ) );
layout->addWidget( nb );
layout->addStretch( 1 );
- connect( m_pCenter, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pNormal, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pRadius, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pHRadius, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( nb, SIGNAL( clicked( ) ), SLOT( slotNormalize( ) ) );
+ connect( m_pCenter, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pNormal, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pRadius, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pHRadius, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( nb, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotNormalize( ) ) );
}
void PMDiscEdit::slotNormalize( )
diff --git a/kpovmodeler/pmdiscedit.h b/kpovmodeler/pmdiscedit.h
index bc603ddc..5ce4d111 100644
--- a/kpovmodeler/pmdiscedit.h
+++ b/kpovmodeler/pmdiscedit.h
@@ -38,7 +38,7 @@ public:
/**
* Creates a PMPlaneEdit with parent and name
*/
- PMDiscEdit( QWidget* parent, const char* name = 0 );
+ PMDiscEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
diff --git a/kpovmodeler/pmdistancecontrolpoint.cpp b/kpovmodeler/pmdistancecontrolpoint.cpp
index dbd8b881..8f49bb18 100644
--- a/kpovmodeler/pmdistancecontrolpoint.cpp
+++ b/kpovmodeler/pmdistancecontrolpoint.cpp
@@ -23,7 +23,7 @@
PMDistanceControlPoint::PMDistanceControlPoint( PMControlPoint* base,
const PMVector& direction, double distance,
- int id, const QString& description,
+ int id, const TQString& description,
bool showExtraLine )
: PMControlPoint( id, description )
{
@@ -36,7 +36,7 @@ PMDistanceControlPoint::PMDistanceControlPoint( PMControlPoint* base,
PMDistanceControlPoint::PMDistanceControlPoint( const PMVector& base,
const PMVector& direction, double distance,
- int id, const QString& description,
+ int id, const TQString& description,
bool showExtraLine )
: PMControlPoint( id, description )
{
diff --git a/kpovmodeler/pmdistancecontrolpoint.h b/kpovmodeler/pmdistancecontrolpoint.h
index f5e28fff..afc39fbd 100644
--- a/kpovmodeler/pmdistancecontrolpoint.h
+++ b/kpovmodeler/pmdistancecontrolpoint.h
@@ -38,7 +38,7 @@ public:
* The base point of the vector is given by the control point location.
*/
PMDistanceControlPoint( PMControlPoint* location, const PMVector& direction,
- double distance, int id, const QString& description,
+ double distance, int id, const TQString& description,
bool extraLine = false );
/**
* Creates a PMDistanceControlPoint with id.
@@ -46,7 +46,7 @@ public:
* The base point of the vector is given by the vector p.
*/
PMDistanceControlPoint( const PMVector& location, const PMVector& direction,
- double distance, int id, const QString& description,
+ double distance, int id, const TQString& description,
bool extraLine = false );
/**
diff --git a/kpovmodeler/pmdockwidget.cpp b/kpovmodeler/pmdockwidget.cpp
index 625ea6bc..499d1cef 100644
--- a/kpovmodeler/pmdockwidget.cpp
+++ b/kpovmodeler/pmdockwidget.cpp
@@ -19,15 +19,15 @@
#include "pmdockwidget.h"
#include "pmdockwidget_private.h"
-#include <qapplication.h>
-#include <qlayout.h>
-#include <qpainter.h>
-#include <qobjectlist.h>
-#include <qstrlist.h>
-#include <qcursor.h>
-#include <qwidgetlist.h>
-#include <qtabwidget.h>
-#include <qstyle.h>
+#include <tqapplication.h>
+#include <tqlayout.h>
+#include <tqpainter.h>
+#include <tqobjectlist.h>
+#include <tqstrlist.h>
+#include <tqcursor.h>
+#include <tqwidgetlist.h>
+#include <tqtabwidget.h>
+#include <tqstyle.h>
#ifndef NO_KDE2
#include <kconfig.h>
@@ -41,9 +41,9 @@
#include <X11/Xlib.h>
#endif
#else
-#include <qapplication.h>
-#include <qtoolbar.h>
-#include <qpopupmenu.h>
+#include <tqapplication.h>
+#include <tqtoolbar.h>
+#include <tqpopupmenu.h>
#endif
#include "pmdebug.h"
@@ -56,7 +56,7 @@
#include <kinstance.h>
#include <khelpmenu.h>
#include <kstandarddirs.h>
-#include <qapplication.h>
+#include <tqapplication.h>
#include <kdebug.h>
#include <kxmlguifactory.h>
@@ -119,7 +119,7 @@ public:
{
}
- QGuardedPtr<Part> m_activePart;
+ TQGuardedPtr<Part> m_activePart;
bool m_bShellGUIActivated;
KHelpMenu *m_helpMenu;
};
@@ -134,10 +134,10 @@ public:
*
* @author Max Judin.
*/
-PMDockMainWindow::PMDockMainWindow( QWidget* parent, const char *name, WFlags f)
+PMDockMainWindow::PMDockMainWindow( TQWidget* parent, const char *name, WFlags f)
:KMainWindow( parent, name, f )
{
- QString new_name = QString(name) + QString("_DockManager");
+ TQString new_name = TQString(name) + TQString("_DockManager");
dockManager = new PMDockManager( this, new_name.latin1() );
mainDockWidget = 0L;
@@ -154,27 +154,27 @@ PMDockMainWindow::~PMDockMainWindow()
// kparts/dockmainwindow stuff
void PMDockMainWindow::createGUI( Part * part )
{
- kdDebug(1000) << QString("DockMainWindow::createGUI for %1").arg(part?part->name():"0L") << endl;
+ kdDebug(1000) << TQString("DockMainWindow::createGUI for %1").arg(part?part->name():"0L") << endl;
KXMLGUIFactory *factory = guiFactory();
setUpdatesEnabled( false );
- QPtrList<Plugin> plugins;
+ TQPtrList<Plugin> plugins;
if ( d->m_activePart )
{
- kdDebug(1000) << QString("deactivating GUI for %1").arg(d->m_activePart->name()) << endl;
+ kdDebug(1000) << TQString("deactivating GUI for %1").arg(d->m_activePart->name()) << endl;
GUIActivateEvent ev( false );
- QApplication::sendEvent( d->m_activePart, &ev );
+ TQApplication::sendEvent( d->m_activePart, &ev );
factory->removeClient( d->m_activePart );
- disconnect( d->m_activePart, SIGNAL( setWindowCaption( const QString & ) ),
- this, SLOT( setCaption( const QString & ) ) );
- disconnect( d->m_activePart, SIGNAL( setStatusBarText( const QString & ) ),
- this, SLOT( slotSetStatusBarText( const QString & ) ) );
+ disconnect( d->m_activePart, TQT_SIGNAL( setWindowCaption( const TQString & ) ),
+ this, TQT_SLOT( setCaption( const TQString & ) ) );
+ disconnect( d->m_activePart, TQT_SIGNAL( setStatusBarText( const TQString & ) ),
+ this, TQT_SLOT( slotSetStatusBarText( const TQString & ) ) );
}
if( !d->m_bShellGUIActivated )
@@ -187,15 +187,15 @@ void PMDockMainWindow::createGUI( Part * part )
if ( part )
{
// do this before sending the activate event
- connect( part, SIGNAL( setWindowCaption( const QString & ) ),
- this, SLOT( setCaption( const QString & ) ) );
- connect( part, SIGNAL( setStatusBarText( const QString & ) ),
- this, SLOT( slotSetStatusBarText( const QString & ) ) );
+ connect( part, TQT_SIGNAL( setWindowCaption( const TQString & ) ),
+ this, TQT_SLOT( setCaption( const TQString & ) ) );
+ connect( part, TQT_SIGNAL( setStatusBarText( const TQString & ) ),
+ this, TQT_SLOT( slotSetStatusBarText( const TQString & ) ) );
factory->addClient( part );
GUIActivateEvent ev( true );
- QApplication::sendEvent( part, &ev );
+ TQApplication::sendEvent( part, &ev );
}
@@ -204,7 +204,7 @@ void PMDockMainWindow::createGUI( Part * part )
d->m_activePart = part;
}
-void PMDockMainWindow::slotSetStatusBarText( const QString & text )
+void PMDockMainWindow::slotSetStatusBarText( const TQString & text )
{
statusBar()->message( text );
}
@@ -220,18 +220,18 @@ void PMDockMainWindow::createShellGUI( bool create )
if ( isHelpMenuEnabled() && !d->m_helpMenu )
d->m_helpMenu = new KHelpMenu( this, instance()->aboutData(), true, actionCollection() );
- QString f = xmlFile();
+ TQString f = xmlFile();
setXMLFile( locate( "config", "ui/ui_standards.rc", instance() ) );
if ( !f.isEmpty() )
setXMLFile( f, true );
else
{
- QString auto_file( instance()->instanceName() + "ui.rc" );
+ TQString auto_file( instance()->instanceName() + "ui.rc" );
setXMLFile( auto_file, true );
}
GUIActivateEvent ev( true );
- QApplication::sendEvent( this, &ev );
+ TQApplication::sendEvent( this, &ev );
guiFactory()->addClient( this );
@@ -239,7 +239,7 @@ void PMDockMainWindow::createShellGUI( bool create )
else
{
GUIActivateEvent ev( false );
- QApplication::sendEvent( this, &ev );
+ TQApplication::sendEvent( this, &ev );
guiFactory()->removeClient( this );
}
@@ -253,7 +253,7 @@ void PMDockMainWindow::setMainDockWidget( PMDockWidget* mdw )
mainDockWidget = mdw;
}
-void PMDockMainWindow::setView( QWidget *view )
+void PMDockMainWindow::setView( TQWidget *view )
{
if ( view->isA("PMDockWidget") ){
if ( view->parent() != this ) ((PMDockWidget*)view)->applyToWidget( this );
@@ -262,11 +262,11 @@ void PMDockMainWindow::setView( QWidget *view )
#ifndef NO_KDE2
KMainWindow::setCentralWidget(view);
#else
- QMainWindow::setCentralWidget(view);
+ TQMainWindow::setCentralWidget(view);
#endif
}
-PMDockWidget* PMDockMainWindow::createDockWidget( const QString& name, const QPixmap &pixmap, QWidget* parent, const QString& strCaption, const QString& strTabPageLabel)
+PMDockWidget* PMDockMainWindow::createDockWidget( const TQString& name, const TQPixmap &pixmap, TQWidget* parent, const TQString& strCaption, const TQString& strTabPageLabel)
{
return new PMDockWidget( dockManager, name.latin1(), pixmap, parent, strCaption, strTabPageLabel );
}
@@ -283,28 +283,28 @@ void PMDockMainWindow::makeDockInvisible( PMDockWidget* dock )
dock->undock();
}
-void PMDockMainWindow::makeWidgetDockVisible( QWidget* widget )
+void PMDockMainWindow::makeWidgetDockVisible( TQWidget* widget )
{
makeDockVisible( dockManager->findWidgetParentDock(widget) );
}
-void PMDockMainWindow::writeDockConfig(QDomElement &base)
+void PMDockMainWindow::writeDockConfig(TQDomElement &base)
{
dockManager->writeConfig(base);
}
-void PMDockMainWindow::readDockConfig(QDomElement &base)
+void PMDockMainWindow::readDockConfig(TQDomElement &base)
{
dockManager->readConfig(base);
}
#ifndef NO_KDE2
-void PMDockMainWindow::writeDockConfig( KConfig* c, QString group )
+void PMDockMainWindow::writeDockConfig( KConfig* c, TQString group )
{
dockManager->writeConfig( c, group );
}
-void PMDockMainWindow::readDockConfig( KConfig* c, QString group )
+void PMDockMainWindow::readDockConfig( KConfig* c, TQString group )
{
dockManager->readConfig( c, group );
}
@@ -312,7 +312,7 @@ void PMDockMainWindow::readDockConfig( KConfig* c, QString group )
void PMDockMainWindow::slotDockWidgetUndocked()
{
- QObject* pSender = (QObject*) sender();
+ TQObject* pSender = (TQObject*) sender();
if (!pSender->inherits("PMDockWidget")) return;
PMDockWidget* pDW = (PMDockWidget*) pSender;
emit dockWidgetHasUndocked( pDW);
@@ -320,7 +320,7 @@ void PMDockMainWindow::slotDockWidgetUndocked()
/*************************************************************************/
PMDockWidgetAbstractHeaderDrag::PMDockWidgetAbstractHeaderDrag( PMDockWidgetAbstractHeader* parent, PMDockWidget* dock, const char* name )
-:QFrame( parent, name )
+:TQFrame( parent, name )
{
dw = dock;
installEventFilter( dock->dockManager() );
@@ -331,27 +331,27 @@ PMDockWidgetHeaderDrag::PMDockWidgetHeaderDrag( PMDockWidgetAbstractHeader* pare
{
}
-void PMDockWidgetHeaderDrag::paintEvent( QPaintEvent* )
+void PMDockWidgetHeaderDrag::paintEvent( TQPaintEvent* )
{
- QPainter paint;
+ TQPainter paint;
paint.begin( this );
- style().drawPrimitive (QStyle::PE_DockWindowHandle, &paint, QRect(0,0,width(), height()), colorGroup());
+ style().drawPrimitive (TQStyle::PE_DockWindowHandle, &paint, TQRect(0,0,width(), height()), colorGroup());
paint.end();
}
/*************************************************************************/
PMDockWidgetAbstractHeader::PMDockWidgetAbstractHeader( PMDockWidget* parent, const char* name )
-:QFrame( parent, name )
+:TQFrame( parent, name )
{
}
/*************************************************************************/
PMDockWidgetHeader::PMDockWidgetHeader( PMDockWidget* parent, const char* name )
:PMDockWidgetAbstractHeader( parent, name )
{
- layout = new QHBoxLayout( this );
- layout->setResizeMode( QLayout::Minimum );
+ layout = new TQHBoxLayout( this );
+ layout->setResizeMode( TQLayout::Minimum );
drag = new PMDockWidgetHeaderDrag( this, parent );
@@ -359,24 +359,24 @@ PMDockWidgetHeader::PMDockWidgetHeader( PMDockWidget* parent, const char* name )
closeButton->setPixmap( const_cast< const char** >(close_xpm) );
int buttonWidth = 9, buttonHeight = 9;
closeButton->setFixedSize(buttonWidth,buttonHeight);
- connect( closeButton, SIGNAL(clicked()), parent, SIGNAL(headerCloseButtonClicked()));
+ connect( closeButton, TQT_SIGNAL(clicked()), parent, TQT_SIGNAL(headerCloseButtonClicked()));
// MODIFICATION (zehender)
// The shell will delete the widget
// undock is unnecessary
- // connect( closeButton, SIGNAL(clicked()), parent, SLOT(undock()));
+ // connect( closeButton, TQT_SIGNAL(clicked()), parent, TQT_SLOT(undock()));
stayButton = new PMDockButton_Private( this, "DockStayButton" );
stayButton->setToggleButton( true );
stayButton->setPixmap( const_cast< const char** >(not_close_xpm) );
stayButton->setFixedSize(buttonWidth,buttonHeight);
- connect( stayButton, SIGNAL(clicked()), this, SLOT(slotStayClicked()));
+ connect( stayButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotStayClicked()));
stayButton->hide( );
dockbackButton = new PMDockButton_Private( this, "DockbackButton" );
dockbackButton->setPixmap( const_cast< const char** >(dockback_xpm));
dockbackButton->setFixedSize(buttonWidth,buttonHeight);
- connect( dockbackButton, SIGNAL(clicked()), parent, SIGNAL(headerDockbackButtonClicked()));
- connect( dockbackButton, SIGNAL(clicked()), parent, SLOT(dockBack()));
+ connect( dockbackButton, TQT_SIGNAL(clicked()), parent, TQT_SIGNAL(headerDockbackButtonClicked()));
+ connect( dockbackButton, TQT_SIGNAL(clicked()), parent, TQT_SLOT(dockBack()));
// MODIFICATION (zehender)
// Add a button to undock the widget and dock it as top level
@@ -384,7 +384,7 @@ PMDockWidgetHeader::PMDockWidgetHeader( PMDockWidget* parent, const char* name )
toDesktopButton = new PMDockButton_Private( this, "ToDesktopButton" );
toDesktopButton->setPixmap( const_cast< const char** >(todesktop_xpm));
toDesktopButton->setFixedSize(buttonWidth,buttonHeight);
- connect( toDesktopButton, SIGNAL(clicked()), parent, SLOT(toDesktop()));
+ connect( toDesktopButton, TQT_SIGNAL(clicked()), parent, TQT_SLOT(toDesktop()));
layout->addWidget( drag );
layout->addWidget( dockbackButton );
@@ -424,8 +424,8 @@ void PMDockWidgetHeader::setDragPanel( PMDockWidgetHeaderDrag* nd )
if ( !nd ) return;
delete layout;
- layout = new QHBoxLayout( this );
- layout->setResizeMode( QLayout::Minimum );
+ layout = new TQHBoxLayout( this );
+ layout->setResizeMode( TQLayout::Minimum );
delete drag;
drag = nd;
@@ -459,30 +459,30 @@ void PMDockWidgetHeader::setDragEnabled(bool b)
#ifndef NO_KDE2
void PMDockWidgetHeader::saveConfig( KConfig* c )
{
- c->writeEntry( QString("%1%2").arg(parent()->name()).arg(":stayButton"), stayButton->isOn() );
+ c->writeEntry( TQString("%1%2").arg(parent()->name()).arg(":stayButton"), stayButton->isOn() );
}
void PMDockWidgetHeader::loadConfig( KConfig* c )
{
- setDragEnabled( !c->readBoolEntry( QString("%1%2").arg(parent()->name()).arg(":stayButton"), false ) );
+ setDragEnabled( !c->readBoolEntry( TQString("%1%2").arg(parent()->name()).arg(":stayButton"), false ) );
}
#endif
/*************************************************************************/
-PMDockWidget::PMDockWidget( PMDockManager* dockManager, const char* name, const QPixmap &pixmap, QWidget* parent, const QString& strCaption, const QString& strTabPageLabel, WFlags f)
-: QWidget( parent, name, f )
+PMDockWidget::PMDockWidget( PMDockManager* dockManager, const char* name, const TQPixmap &pixmap, TQWidget* parent, const TQString& strCaption, const TQString& strTabPageLabel, WFlags f)
+: TQWidget( parent, name, f )
,formerBrotherDockWidget(0L)
,currentDockPos(DockNone)
,formerDockPos(DockNone)
- ,pix(new QPixmap(pixmap))
+ ,pix(new TQPixmap(pixmap))
,prevSideDockPosBeforeDrag(DockNone)
{
d = new PMDockWidgetPrivate(); // create private data
d->_parent = parent;
- layout = new QVBoxLayout( this );
- layout->setResizeMode( QLayout::Minimum );
+ layout = new TQVBoxLayout( this );
+ layout->setResizeMode( TQLayout::Minimum );
manager = dockManager;
manager->childDock->append( this );
@@ -509,11 +509,11 @@ PMDockWidget::PMDockWidget( PMDockManager* dockManager, const char* name, const
setIcon( pixmap);
widget = 0L;
- QObject::connect(this, SIGNAL(hasUndocked()), manager->main, SLOT(slotDockWidgetUndocked()) );
- applyToWidget( parent, QPoint(0,0) );
+ TQObject::connect(this, TQT_SIGNAL(hasUndocked()), manager->main, TQT_SLOT(slotDockWidgetUndocked()) );
+ applyToWidget( parent, TQPoint(0,0) );
}
-void PMDockWidget::slotSetCaption( const QString& str )
+void PMDockWidget::slotSetCaption( const TQString& str )
{
setTabPageLabel( str );
setCaption( str );
@@ -540,8 +540,8 @@ void PMDockWidget::setHeader( PMDockWidgetAbstractHeader* h )
delete header;
delete layout;
header = h;
- layout = new QVBoxLayout( this );
- layout->setResizeMode( QLayout::Minimum );
+ layout = new TQVBoxLayout( this );
+ layout->setResizeMode( TQLayout::Minimum );
layout->addWidget( header );
setWidget( widget );
} else {
@@ -571,12 +571,12 @@ void PMDockWidget::updateHeader()
}
}
-void PMDockWidget::applyToWidget( QWidget* s, const QPoint& p )
+void PMDockWidget::applyToWidget( TQWidget* s, const TQPoint& p )
{
if ( parent() != s )
{
hide();
- reparent(s, 0, QPoint(0,0), false);
+ reparent(s, 0, TQPoint(0,0), false);
}
if ( s && s->inherits("PMDockMainWindow") ){
@@ -584,7 +584,7 @@ void PMDockWidget::applyToWidget( QWidget* s, const QPoint& p )
}
if ( s == manager->main ){
- setGeometry( QRect(QPoint(0,0), manager->main->geometry().size()) );
+ setGeometry( TQRect(TQPoint(0,0), manager->main->geometry().size()) );
}
if ( !s )
@@ -615,10 +615,10 @@ void PMDockWidget::show()
if ( parent() ){
makeDockVisible();
} else {
- QWidget::show();
+ TQWidget::show();
}
} else {
- QWidget::show();
+ TQWidget::show();
}
}
@@ -627,42 +627,42 @@ void PMDockWidget::show()
void PMDockWidget::setDockWindowType (NET::WindowType windowType)
{
d->windowType = windowType;
- applyToWidget( parentWidget(), QPoint(0,0) );
+ applyToWidget( parentWidget(), TQPoint(0,0) );
}
#endif
-void PMDockWidget::setDockWindowTransient (QWidget *parent, bool transientEnabled)
+void PMDockWidget::setDockWindowTransient (TQWidget *parent, bool transientEnabled)
{
d->_parent = parent;
d->transient = transientEnabled;
- applyToWidget( parentWidget(), QPoint(0,0) );
+ applyToWidget( parentWidget(), TQPoint(0,0) );
}
-bool PMDockWidget::event( QEvent* pevent )
+bool PMDockWidget::event( TQEvent* pevent )
{
switch ( pevent->type() )
{
#undef FocusIn
- case QEvent::FocusIn:
+ case TQEvent::FocusIn:
if (widget && !d->pendingFocusInEvent) {
d->pendingFocusInEvent = true;
widget->setFocus();
}
d->pendingFocusInEvent = false;
break;
- case QEvent::ChildRemoved:
- if ( widget == ((QChildEvent*)pevent)->child() ) widget = 0L;
+ case TQEvent::ChildRemoved:
+ if ( widget == ((TQChildEvent*)pevent)->child() ) widget = 0L;
break;
- case QEvent::Show:
+ case TQEvent::Show:
if ( widget ) widget->show();
emit manager->change();
break;
- case QEvent::Hide:
+ case TQEvent::Hide:
if ( widget ) widget->hide();
emit manager->change();
break;
- case QEvent::CaptionChange:
+ case TQEvent::CaptionChange:
if ( parentWidget() ){
if ( parent()->inherits("PMDockSplitter") ){
((PMDockSplitter*)(parent()))->updateName();
@@ -673,7 +673,7 @@ bool PMDockWidget::event( QEvent* pevent )
}
}
break;
- case QEvent::Close:
+ case TQEvent::Close:
// MODIFICATION (zehender)
// Top level widget is closed
// emit same signal as if the widget is docked and closed with
@@ -685,8 +685,8 @@ bool PMDockWidget::event( QEvent* pevent )
break;
}
#undef KeyPress
- bool processed = QWidget::event( pevent );
- if( pevent->type( ) == QEvent::AccelOverride && !processed && !parent( ) ){
+ bool processed = TQWidget::event( pevent );
+ if( pevent->type( ) == TQEvent::AccelOverride && !processed && !parent( ) ){
// MODIFICATION (zehender)
// floating widget, post event to main window
processed = qApp->sendEvent( manager->dockMainWidget( ), pevent );
@@ -694,7 +694,7 @@ bool PMDockWidget::event( QEvent* pevent )
return processed;
}
-PMDockWidget* PMDockWidget::manualDock( PMDockWidget* target, DockPosition dockPos, int spliPos, QPoint pos, bool check, int tabIndex )
+PMDockWidget* PMDockWidget::manualDock( PMDockWidget* target, DockPosition dockPos, int spliPos, TQPoint pos, bool check, int tabIndex )
{
if (this == target)
return 0L; // docking to itself not possible
@@ -724,7 +724,7 @@ PMDockWidget* PMDockWidget::manualDock( PMDockWidget* target, DockPosition dockP
if( target && ( dockPos != PMDockWidget::DockCenter )
&& ( dockPos != PMDockWidget::DockNone ) )
{
- QWidget* pdt = target->parentDockTabGroup( );
+ TQWidget* pdt = target->parentDockTabGroup( );
if( pdt )
return manualDock( ( PMDockWidget* ) ( pdt->parent( ) ),
dockPos, spliPos, pos, check, tabIndex );
@@ -763,7 +763,7 @@ PMDockWidget* PMDockWidget::manualDock( PMDockWidget* target, DockPosition dockP
if ( parentTab ){
// add to existing TabGroup
applyToWidget( parentTab );
- parentTab->insertTab( this, icon() ? *icon() : QPixmap(),
+ parentTab->insertTab( this, icon() ? *icon() : TQPixmap(),
tabPageLabel(), tabIndex );
setDockTabName( parentTab );
if( !toolTipStr.isEmpty())
@@ -785,14 +785,14 @@ PMDockWidget* PMDockWidget::manualDock( PMDockWidget* target, DockPosition dockP
{
PMDockWidget* newTarget = target;
bool found = false;
- QWidget* wtarget = target;
+ TQWidget* wtarget = target;
while( wtarget && !found )
{
if( wtarget->inherits( "PMDockWidget" ) )
{
PMDockWidget* dw = ( PMDockWidget* ) wtarget;
newTarget = dw;
- QWidget* pw = wtarget->parentWidget( );
+ TQWidget* pw = wtarget->parentWidget( );
if( pw )
{
if( pw->inherits( "PMDockSplitter" ) )
@@ -813,8 +813,8 @@ PMDockWidget* PMDockWidget::manualDock( PMDockWidget* target, DockPosition dockP
// END MODIFICATION
// create a new dockwidget that will contain the target and this
- QWidget* parentDock = target->parentWidget();
- PMDockWidget* newDock = new PMDockWidget( manager, "tempName", QPixmap(""), parentDock );
+ TQWidget* parentDock = target->parentWidget();
+ PMDockWidget* newDock = new PMDockWidget( manager, "tempName", TQPixmap(""), parentDock );
newDock->currentDockPos = target->currentDockPos;
if ( dockPos == PMDockWidget::DockCenter ){
@@ -837,8 +837,8 @@ PMDockWidget* PMDockWidget::manualDock( PMDockWidget* target, DockPosition dockP
if( target->formerBrotherDockWidget != 0L) {
newDock->formerBrotherDockWidget = target->formerBrotherDockWidget;
if( formerBrotherDockWidget != 0L)
- QObject::connect( newDock->formerBrotherDockWidget, SIGNAL(iMBeingClosed()),
- newDock, SLOT(loseFormerBrotherDockWidget()) );
+ TQObject::connect( newDock->formerBrotherDockWidget, TQT_SIGNAL(iMBeingClosed()),
+ newDock, TQT_SLOT(loseFormerBrotherDockWidget()) );
target->loseFormerBrotherDockWidget();
}
newDock->formerDockPos = target->formerDockPos;
@@ -846,19 +846,19 @@ PMDockWidget* PMDockWidget::manualDock( PMDockWidget* target, DockPosition dockP
if ( dockPos == PMDockWidget::DockCenter )
{
PMDockTabGroup* tab = new PMDockTabGroup( newDock, "_dock_tab");
- QObject::connect(tab, SIGNAL(currentChanged(QWidget*)), d, SLOT(slotFocusEmbeddedWidget(QWidget*)));
+ TQObject::connect(tab, TQT_SIGNAL(currentChanged(TQWidget*)), d, TQT_SLOT(slotFocusEmbeddedWidget(TQWidget*)));
newDock->setWidget( tab );
target->applyToWidget( tab );
applyToWidget( tab );
- tab->insertTab( target, target->icon() ? *(target->icon()) : QPixmap(),
+ tab->insertTab( target, target->icon() ? *(target->icon()) : TQPixmap(),
target->tabPageLabel() );
if( !target->toolTipString().isEmpty())
tab->setTabToolTip( target, target->toolTipString());
- tab->insertTab( this, icon() ? *icon() : QPixmap(),
+ tab->insertTab( this, icon() ? *icon() : TQPixmap(),
tabPageLabel(), tabIndex );
if( !toolTipString().isEmpty())
tab->setTabToolTip( this, toolTipString());
@@ -931,14 +931,14 @@ PMDockWidget* PMDockWidget::manualDock( PMDockWidget* target, DockPosition dockP
PMDockTabGroup* PMDockWidget::parentDockTabGroup() const
{
if ( !parent() ) return 0L;
- QWidget* candidate = parentWidget()->parentWidget();
+ TQWidget* candidate = parentWidget()->parentWidget();
if ( candidate && candidate->inherits("PMDockTabGroup") ) return (PMDockTabGroup*)candidate;
return 0L;
}
void PMDockWidget::toDesktop()
{
- QPoint p = mapToGlobal( QPoint( -30, -30 ) );
+ TQPoint p = mapToGlobal( TQPoint( -30, -30 ) );
if( p.x( ) < 0 )
p.setX( 0 );
if( p.y( ) < 0 )
@@ -948,7 +948,7 @@ void PMDockWidget::toDesktop()
void PMDockWidget::undock()
{
- QWidget* parentW = parentWidget();
+ TQWidget* parentW = parentWidget();
if ( !parentW ){
hide();
if (!d->blockHasUndockedSignal)
@@ -969,8 +969,8 @@ void PMDockWidget::undock()
d->index = parentTab->indexOf( this); // memorize the page position in the tab widget
parentTab->removePage( this );
formerBrotherDockWidget = (PMDockWidget*)parentTab->page(0);
- QObject::connect( formerBrotherDockWidget, SIGNAL(iMBeingClosed()),
- this, SLOT(loseFormerBrotherDockWidget()) );
+ TQObject::connect( formerBrotherDockWidget, TQT_SIGNAL(iMBeingClosed()),
+ this, TQT_SLOT(loseFormerBrotherDockWidget()) );
applyToWidget( 0L );
if ( parentTab->count() == 1 ){
@@ -984,7 +984,7 @@ void PMDockWidget::undock()
PMDockWidget* parentOfTab = (PMDockWidget*)parentTab->parent();
delete parentTab; // PMDockTabGroup
- QWidget* parentOfDockWidget = parentOfTab->parentWidget();
+ TQWidget* parentOfDockWidget = parentOfTab->parentWidget();
if ( parentOfDockWidget == 0L ){
if ( isV ) lastTab->show();
} else {
@@ -1034,14 +1034,14 @@ void PMDockWidget::undock()
group->hide();
if( formerBrotherDockWidget != 0L)
- QObject::connect( formerBrotherDockWidget, SIGNAL(iMBeingClosed()),
- this, SLOT(loseFormerBrotherDockWidget()) );
+ TQObject::connect( formerBrotherDockWidget, TQT_SIGNAL(iMBeingClosed()),
+ this, TQT_SLOT(loseFormerBrotherDockWidget()) );
if ( !group->parentWidget() ){
secondWidget->applyToWidget( 0L, group->frameGeometry().topLeft() );
secondWidget->resize( group->width(), group->height() );
} else {
- QWidget* obj = group->parentWidget();
+ TQWidget* obj = group->parentWidget();
secondWidget->applyToWidget( obj );
if ( obj->inherits("PMDockSplitter") ){
PMDockSplitter* parentOfGroup = (PMDockSplitter*)obj;
@@ -1077,19 +1077,19 @@ void PMDockWidget::undock()
emit hasUndocked();
}
-void PMDockWidget::setWidget( QWidget* mw )
+void PMDockWidget::setWidget( TQWidget* mw )
{
if ( !mw ) return;
if ( mw->parent() != this ){
- mw->reparent(this, 0, QPoint(0,0), false);
+ mw->reparent(this, 0, TQPoint(0,0), false);
}
widget = mw;
delete layout;
- layout = new QVBoxLayout( this );
- layout->setResizeMode( QLayout::Minimum );
+ layout = new TQVBoxLayout( this );
+ layout->setResizeMode( TQLayout::Minimum );
layout->addWidget( header );
layout->addWidget( widget,1 );
@@ -1097,10 +1097,10 @@ void PMDockWidget::setWidget( QWidget* mw )
void PMDockWidget::setDockTabName( PMDockTabGroup* tab )
{
- QString listOfName;
- QString listOfCaption;
+ TQString listOfName;
+ TQString listOfCaption;
for ( int i = 0; i < tab->count(); ++i ) {
- QWidget *w = tab->page( i );
+ TQWidget *w = tab->page( i );
listOfCaption.append( w->caption() ).append(",");
listOfName.append( w->name() ).append(",");
}
@@ -1151,7 +1151,7 @@ void PMDockWidget::makeDockVisible()
}
if ( isVisible() ) return;
- QWidget* p = parentWidget();
+ TQWidget* p = parentWidget();
while ( p ){
if ( !p->isVisible() )
p->show();
@@ -1165,8 +1165,8 @@ void PMDockWidget::makeDockVisible()
void PMDockWidget::loseFormerBrotherDockWidget()
{
if( formerBrotherDockWidget != 0L)
- QObject::disconnect( formerBrotherDockWidget, SIGNAL(iMBeingClosed()),
- this, SLOT(loseFormerBrotherDockWidget()) );
+ TQObject::disconnect( formerBrotherDockWidget, TQT_SIGNAL(iMBeingClosed()),
+ this, TQT_SLOT(loseFormerBrotherDockWidget()) );
formerBrotherDockWidget = 0L;
repaint();
}
@@ -1176,12 +1176,12 @@ void PMDockWidget::dockBack()
if( formerBrotherDockWidget) {
// search all children if it tries to dock back to a child
bool found = false;
- QObjectList* cl = queryList("PMDockWidget");
- QObjectListIt it( *cl );
- QObject * obj;
+ TQObjectList* cl = queryList("PMDockWidget");
+ TQObjectListIt it( *cl );
+ TQObject * obj;
while ( !found && (obj=it.current()) != 0 ) {
++it;
- QWidget* widg = (QWidget*)obj;
+ TQWidget* widg = (TQWidget*)obj;
if( widg == formerBrotherDockWidget)
found = true;
}
@@ -1189,7 +1189,7 @@ void PMDockWidget::dockBack()
if( !found) {
// can dock back to the former brother dockwidget
- manualDock( formerBrotherDockWidget, formerDockPos, d->splitPosInPercent, QPoint(0,0), false, d->index);
+ manualDock( formerBrotherDockWidget, formerDockPos, d->splitPosInPercent, TQPoint(0,0), false, d->index);
formerBrotherDockWidget = 0L;
makeDockVisible();
return;
@@ -1197,7 +1197,7 @@ void PMDockWidget::dockBack()
}
// else dockback to the dockmainwindow (default behaviour)
- manualDock( ((PMDockMainWindow*)manager->main)->getMainDockWidget(), formerDockPos, d->splitPosInPercent, QPoint(0,0), false, d->index);
+ manualDock( ((PMDockMainWindow*)manager->main)->getMainDockWidget(), formerDockPos, d->splitPosInPercent, TQPoint(0,0), false, d->index);
formerBrotherDockWidget = 0L;
if (parent())
makeDockVisible();
@@ -1219,12 +1219,12 @@ public:
/**
* This rectangle is used to highlight the current dockposition. It stores global screen coordinates.
*/
- QRect dragRect;
+ TQRect dragRect;
/**
* This rectangle is used to erase the previously highlighted dockposition. It stores global screen coordinates.
*/
- QRect oldDragRect;
+ TQRect oldDragRect;
/**
* This flag stores the information if dragging is ready to start. Used between mousePress and mouseMove event.
@@ -1234,7 +1234,7 @@ public:
/**
* This variable stores the offset of the mouse cursor to the upper left edge of the current drag widget.
*/
- QPoint dragOffset;
+ TQPoint dragOffset;
/**
* These flags store information about the splitter behaviour
@@ -1244,8 +1244,8 @@ public:
bool splitterHighResolution;
};
-PMDockManager::PMDockManager( QWidget* mainWindow , const char* name )
-:QObject( mainWindow, name )
+PMDockManager::PMDockManager( TQWidget* mainWindow , const char* name )
+:TQObject( mainWindow, name )
,main(mainWindow)
,currentDragWidget(0L)
,currentMoveWidget(0L)
@@ -1266,20 +1266,20 @@ PMDockManager::PMDockManager( QWidget* mainWindow , const char* name )
undockProcess = false;
- menuData = new QPtrList<MenuDockData>;
+ menuData = new TQPtrList<MenuDockData>;
menuData->setAutoDelete( true );
menuData->setAutoDelete( true );
#ifndef NO_KDE2
menu = new KPopupMenu();
#else
- menu = new QPopupMenu();
+ menu = new TQPopupMenu();
#endif
- connect( menu, SIGNAL(aboutToShow()), SLOT(slotMenuPopup()) );
- connect( menu, SIGNAL(activated(int)), SLOT(slotMenuActivated(int)) );
+ connect( menu, TQT_SIGNAL(aboutToShow()), TQT_SLOT(slotMenuPopup()) );
+ connect( menu, TQT_SIGNAL(activated(int)), TQT_SLOT(slotMenuActivated(int)) );
- childDock = new QObjectList();
+ childDock = new TQObjectList();
childDock->setAutoDelete( false );
}
@@ -1288,7 +1288,7 @@ PMDockManager::~PMDockManager()
delete menuData;
delete menu;
- QObjectListIt it( *childDock );
+ TQObjectListIt it( *childDock );
PMDockWidget * obj;
while ( (obj=(PMDockWidget*)it.current()) ) {
@@ -1300,7 +1300,7 @@ PMDockManager::~PMDockManager()
void PMDockManager::activate()
{
- QObjectListIt it( *childDock );
+ TQObjectListIt it( *childDock );
PMDockWidget * obj;
while ( (obj=(PMDockWidget*)it.current()) ) {
@@ -1310,27 +1310,27 @@ void PMDockManager::activate()
obj->show();
}
}
- if ( !main->inherits("QDialog") ) main->show();
+ if ( !main->inherits("TQDialog") ) main->show();
}
-bool PMDockManager::eventFilter( QObject *obj, QEvent *event )
+bool PMDockManager::eventFilter( TQObject *obj, TQEvent *event )
{
/* This doesn't seem to fullfill any sense, other than breaking
QMainWindow's layout all over the place
The first child of the mainwindow is not necessarily a meaningful
- content widget but in Qt3's QMainWindow it can easily be a QToolBar.
- In short: QMainWindow knows how to layout its children, no need to
+ content widget but in Qt3's TQMainWindow it can easily be a TQToolBar.
+ In short: TQMainWindow knows how to layout its children, no need to
mess that up.
>>>>>I need this in the PMDockArea at the moment (JoWenn)
- if ( obj == main && event->type() == QEvent::Resize && dynamic_cast<PMDockArea*>(main) && main->children() ){
+ if ( obj == main && event->type() == TQEvent::Resize && dynamic_cast<PMDockArea*>(main) && main->children() ){
#ifndef NO_KDE2
kdDebug()<<"PMDockManager::eventFilter(): main is a PMDockArea and there are children"<<endl;
#endif
- QWidget* fc = (QWidget*)main->children()->getFirst();
+ TQWidget* fc = (TQWidget*)main->children()->getFirst();
if ( fc )
- fc->setGeometry( QRect(QPoint(0,0), main->geometry().size()) );
+ fc->setGeometry( TQRect(TQPoint(0,0), main->geometry().size()) );
}
*/
@@ -1338,12 +1338,12 @@ bool PMDockManager::eventFilter( QObject *obj, QEvent *event )
PMDockWidget* pDockWdgAtCursor = 0L;
PMDockWidget* curdw = ((PMDockWidgetAbstractHeaderDrag*)obj)->dockWidget();
switch ( event->type() ){
- case QEvent::MouseButtonDblClick:
+ case TQEvent::MouseButtonDblClick:
if (curdw->currentDockPos == PMDockWidget::DockDesktop) curdw->dockBack();
else curdw->toDesktop( );
break;
- case QEvent::MouseButtonPress:
- if ( ((QMouseEvent*)event)->button() == LeftButton ){
+ case TQEvent::MouseButtonPress:
+ if ( ((TQMouseEvent*)event)->button() == LeftButton ){
if ( curdw->eDocking != (int)PMDockWidget::DockNone ){
dropCancel = true;
curdw->setFocus();
@@ -1351,23 +1351,23 @@ bool PMDockManager::eventFilter( QObject *obj, QEvent *event )
currentDragWidget = curdw;
currentMoveWidget = 0L;
- childDockWidgetList = new QWidgetList();
+ childDockWidgetList = new TQWidgetList();
childDockWidgetList->append( curdw );
findChildDockWidget( curdw, *childDockWidgetList );
- d->oldDragRect = QRect();
- d->dragRect = QRect(curdw->geometry());
- QPoint p = curdw->mapToGlobal(QPoint(0,0));
+ d->oldDragRect = TQRect();
+ d->dragRect = TQRect(curdw->geometry());
+ TQPoint p = curdw->mapToGlobal(TQPoint(0,0));
d->dragRect.moveTopLeft(p);
drawDragRectangle();
d->readyToDrag = true;
- d->dragOffset = QCursor::pos()-currentDragWidget->mapToGlobal(QPoint(0,0));
+ d->dragOffset = TQCursor::pos()-currentDragWidget->mapToGlobal(TQPoint(0,0));
}
}
break;
- case QEvent::MouseButtonRelease:
- if ( ((QMouseEvent*)event)->button() == LeftButton ){
+ case TQEvent::MouseButtonRelease:
+ if ( ((TQMouseEvent*)event)->button() == LeftButton ){
if ( draging ){
if ( !dropCancel )
drop();
@@ -1376,9 +1376,9 @@ bool PMDockManager::eventFilter( QObject *obj, QEvent *event )
}
if (d->readyToDrag) {
d->readyToDrag = false;
- d->oldDragRect = QRect();
- d->dragRect = QRect(curdw->geometry());
- QPoint p = curdw->mapToGlobal(QPoint(0,0));
+ d->oldDragRect = TQRect();
+ d->dragRect = TQRect(curdw->geometry());
+ TQPoint p = curdw->mapToGlobal(TQPoint(0,0));
d->dragRect.moveTopLeft(p);
drawDragRectangle();
currentDragWidget = 0L;
@@ -1389,20 +1389,20 @@ bool PMDockManager::eventFilter( QObject *obj, QEvent *event )
dropCancel = true;
}
break;
- case QEvent::MouseMove:
+ case TQEvent::MouseMove:
if ( draging ) {
- pDockWdgAtCursor = findDockWidgetAt( QCursor::pos() );
+ pDockWdgAtCursor = findDockWidgetAt( TQCursor::pos() );
PMDockWidget* oldMoveWidget = currentMoveWidget;
if ( currentMoveWidget && pDockWdgAtCursor == currentMoveWidget ) { //move
- dragMove( currentMoveWidget, currentMoveWidget->mapFromGlobal( QCursor::pos() ) );
+ dragMove( currentMoveWidget, currentMoveWidget->mapFromGlobal( TQCursor::pos() ) );
break;
} else {
if (dropCancel && curdw) {
- d->dragRect = QRect(curdw->geometry());
- QPoint p = curdw->mapToGlobal(QPoint(0,0));
+ d->dragRect = TQRect(curdw->geometry());
+ TQPoint p = curdw->mapToGlobal(TQPoint(0,0));
d->dragRect.moveTopLeft(p);
}else
- d->dragRect = QRect();
+ d->dragRect = TQRect();
drawDragRectangle();
}
@@ -1426,7 +1426,7 @@ bool PMDockManager::eventFilter( QObject *obj, QEvent *event )
if (d->readyToDrag) {
d->readyToDrag = false;
}
- if ( (((QMouseEvent*)event)->state() == LeftButton) &&
+ if ( (((TQMouseEvent*)event)->state() == LeftButton) &&
(curdw->eDocking != (int)PMDockWidget::DockNone) ) {
startDrag( curdw);
}
@@ -1436,10 +1436,10 @@ bool PMDockManager::eventFilter( QObject *obj, QEvent *event )
break;
}
}
- return QObject::eventFilter( obj, event );
+ return TQObject::eventFilter( obj, event );
}
-PMDockWidget* PMDockManager::findDockWidgetAt( const QPoint& pos )
+PMDockWidget* PMDockManager::findDockWidgetAt( const TQPoint& pos )
{
dropCancel = true;
@@ -1448,7 +1448,7 @@ PMDockWidget* PMDockManager::findDockWidgetAt( const QPoint& pos )
if (currentDragWidget->eDocking == (int)PMDockWidget::DockNone ) return 0L;
- QWidget* p = QApplication::widgetAt( pos );
+ TQWidget* p = TQApplication::widgetAt( pos );
if ( !p ) {
dropCancel = false;
return 0L;
@@ -1456,7 +1456,7 @@ PMDockWidget* PMDockManager::findDockWidgetAt( const QPoint& pos )
#if defined(_OS_WIN32_) || defined(Q_OS_WIN32)
p = p->topLevelWidget();
#endif
- QWidget* w = 0L;
+ TQWidget* w = 0L;
findChildDockWidget( w, p, p->mapFromGlobal(pos) );
if ( !w ){
if ( !p->inherits("PMDockWidget") ) {
@@ -1474,7 +1474,7 @@ PMDockWidget* PMDockManager::findDockWidgetAt( const QPoint& pos )
if ( www->dockSite( ) == (int)PMDockWidget::DockNone ) return 0L;
PMDockWidget::DockPosition curPos = PMDockWidget::DockDesktop;
- QPoint cpos = www->mapFromGlobal( pos );
+ TQPoint cpos = www->mapFromGlobal( pos );
int ww = www->widget->width() / 3;
int hh = www->widget->height() / 3;
@@ -1501,15 +1501,15 @@ PMDockWidget* PMDockManager::findDockWidgetAt( const QPoint& pos )
return www;
}
-void PMDockManager::findChildDockWidget( QWidget*& ww, const QWidget* p, const QPoint& pos )
+void PMDockManager::findChildDockWidget( TQWidget*& ww, const TQWidget* p, const TQPoint& pos )
{
if ( p->children() ) {
- QWidget *w;
- QObjectListIt it( *p->children() );
+ TQWidget *w;
+ TQObjectListIt it( *p->children() );
it.toLast();
while ( it.current() ) {
if ( it.current()->isWidgetType() ) {
- w = (QWidget*)it.current();
+ w = (TQWidget*)it.current();
if ( w->isVisible() && w->geometry().contains(pos) ) {
if ( w->inherits("PMDockWidget") ) ww = w;
findChildDockWidget( ww, w, w->mapFromParent(pos) );
@@ -1522,15 +1522,15 @@ void PMDockManager::findChildDockWidget( QWidget*& ww, const QWidget* p, const Q
return;
}
-void PMDockManager::findChildDockWidget( const QWidget* p, QWidgetList& list )
+void PMDockManager::findChildDockWidget( const TQWidget* p, TQWidgetList& list )
{
if ( p->children() ) {
- QWidget *w;
- QObjectListIt it( *p->children() );
+ TQWidget *w;
+ TQObjectListIt it( *p->children() );
it.toLast();
while ( it.current() ) {
if ( it.current()->isWidgetType() ) {
- w = (QWidget*)it.current();
+ w = (TQWidget*)it.current();
if ( w->isVisible() ) {
if ( w->inherits("PMDockWidget") ) list.append( w );
findChildDockWidget( w, list );
@@ -1542,9 +1542,9 @@ void PMDockManager::findChildDockWidget( const QWidget* p, QWidgetList& list )
return;
}
-void PMDockManager::findFloatingWidgets( QPtrList<PMDockWidget>& l )
+void PMDockManager::findFloatingWidgets( TQPtrList<PMDockWidget>& l )
{
- QObjectListIt it( *childDock );
+ TQObjectListIt it( *childDock );
for( ; it.current( ); ++it )
if( it.current( )->inherits( "PMDockWidget" ) &&
!it.current( )->parent( ) )
@@ -1566,15 +1566,15 @@ void PMDockManager::startDrag( PMDockWidget* w )
curPos = PMDockWidget::DockDesktop;
draging = true;
- QApplication::setOverrideCursor(QCursor(sizeAllCursor));
+ TQApplication::setOverrideCursor(TQCursor(sizeAllCursor));
}
-void PMDockManager::dragMove( PMDockWidget* dw, QPoint pos )
+void PMDockManager::dragMove( PMDockWidget* dw, TQPoint pos )
{
- QPoint p = dw->mapToGlobal( dw->widget->pos() );
+ TQPoint p = dw->mapToGlobal( dw->widget->pos() );
PMDockWidget::DockPosition oldPos = curPos;
- QSize r = dw->widget->size();
+ TQSize r = dw->widget->size();
if ( dw->parentDockTabGroup() ){
curPos = PMDockWidget::DockCenter;
if ( oldPos != curPos ) {
@@ -1587,8 +1587,8 @@ void PMDockManager::dragMove( PMDockWidget* dw, QPoint pos )
int h = r.height() / 3;
PMDockMainWindow* mw = ( PMDockMainWindow* ) parent( );
- QWidget* cw = mw->centralWidget( );
- QPoint cwp = cw->mapToGlobal( QPoint( 0, 0 ) );
+ TQWidget* cw = mw->centralWidget( );
+ TQPoint cwp = cw->mapToGlobal( TQPoint( 0, 0 ) );
int cwh = cw->height( );
if ( pos.y() <= h )
@@ -1632,34 +1632,34 @@ void PMDockManager::dragMove( PMDockWidget* dw, QPoint pos )
void PMDockManager::cancelDrop()
{
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
delete childDockWidgetList;
childDockWidgetList = 0L;
- d->dragRect = QRect(); // cancel drawing
+ d->dragRect = TQRect(); // cancel drawing
drawDragRectangle(); // only the old rect will be deleted
}
void PMDockManager::drop()
{
- d->dragRect = QRect(); // cancel drawing
+ d->dragRect = TQRect(); // cancel drawing
drawDragRectangle(); // only the old rect will be deleted
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
delete childDockWidgetList;
childDockWidgetList = 0L;
if ( dropCancel ) return;
if ( !currentMoveWidget && ((currentDragWidget->eDocking & (int)PMDockWidget::DockDesktop) == 0) ) {
- d->dragRect = QRect(); // cancel drawing
+ d->dragRect = TQRect(); // cancel drawing
drawDragRectangle(); // only the old rect will be deleted
return;
}
if ( !currentMoveWidget && !currentDragWidget->parent() ) {
- currentDragWidget->move( QCursor::pos() - d->dragOffset );
+ currentDragWidget->move( TQCursor::pos() - d->dragOffset );
}
else {
int splitPos = currentDragWidget->d->splitPosInPercent;
@@ -1673,63 +1673,63 @@ void PMDockManager::drop()
default: break;
}
}
- currentDragWidget->manualDock( currentMoveWidget, curPos , splitPos, QCursor::pos() - d->dragOffset );
+ currentDragWidget->manualDock( currentMoveWidget, curPos , splitPos, TQCursor::pos() - d->dragOffset );
currentDragWidget->makeDockVisible();
}
}
-static QDomElement createStringEntry(QDomDocument &doc, const QString &tagName, const QString &str)
+static TQDomElement createStringEntry(TQDomDocument &doc, const TQString &tagName, const TQString &str)
{
- QDomElement el = doc.createElement(tagName);
+ TQDomElement el = doc.createElement(tagName);
el.appendChild(doc.createTextNode(str));
return el;
}
-static QDomElement createBoolEntry(QDomDocument &doc, const QString &tagName, bool b)
+static TQDomElement createBoolEntry(TQDomDocument &doc, const TQString &tagName, bool b)
{
- return createStringEntry(doc, tagName, QString::fromLatin1(b? "true" : "false"));
+ return createStringEntry(doc, tagName, TQString::fromLatin1(b? "true" : "false"));
}
-static QDomElement createNumberEntry(QDomDocument &doc, const QString &tagName, int n)
+static TQDomElement createNumberEntry(TQDomDocument &doc, const TQString &tagName, int n)
{
- return createStringEntry(doc, tagName, QString::number(n));
+ return createStringEntry(doc, tagName, TQString::number(n));
}
-static QDomElement createRectEntry(QDomDocument &doc, const QString &tagName, const QRect &rect)
+static TQDomElement createRectEntry(TQDomDocument &doc, const TQString &tagName, const TQRect &rect)
{
- QDomElement el = doc.createElement(tagName);
+ TQDomElement el = doc.createElement(tagName);
- QDomElement xel = doc.createElement("x");
- xel.appendChild(doc.createTextNode(QString::number(rect.x())));
+ TQDomElement xel = doc.createElement("x");
+ xel.appendChild(doc.createTextNode(TQString::number(rect.x())));
el.appendChild(xel);
- QDomElement yel = doc.createElement("y");
- yel.appendChild(doc.createTextNode(QString::number(rect.y())));
+ TQDomElement yel = doc.createElement("y");
+ yel.appendChild(doc.createTextNode(TQString::number(rect.y())));
el.appendChild(yel);
- QDomElement wel = doc.createElement("width");
- wel.appendChild(doc.createTextNode(QString::number(rect.width())));
+ TQDomElement wel = doc.createElement("width");
+ wel.appendChild(doc.createTextNode(TQString::number(rect.width())));
el.appendChild(wel);
- QDomElement hel = doc.createElement("height");
- hel.appendChild(doc.createTextNode(QString::number(rect.height())));
+ TQDomElement hel = doc.createElement("height");
+ hel.appendChild(doc.createTextNode(TQString::number(rect.height())));
el.appendChild(hel);
return el;
}
-static QDomElement createListEntry(QDomDocument &doc, const QString &tagName,
- const QString &subTagName, const QStrList &list)
+static TQDomElement createListEntry(TQDomDocument &doc, const TQString &tagName,
+ const TQString &subTagName, const TQStrList &list)
{
- QDomElement el = doc.createElement(tagName);
+ TQDomElement el = doc.createElement(tagName);
- QStrListIterator it(list);
+ TQStrListIterator it(list);
for (; it.current(); ++it) {
- QDomElement subel = doc.createElement(subTagName);
- subel.appendChild(doc.createTextNode(QString::fromLatin1(it.current())));
+ TQDomElement subel = doc.createElement(subTagName);
+ subel.appendChild(doc.createTextNode(TQString::fromLatin1(it.current())));
el.appendChild(subel);
}
@@ -1737,42 +1737,42 @@ static QDomElement createListEntry(QDomDocument &doc, const QString &tagName,
}
-static QString stringEntry(QDomElement &base, const QString &tagName)
+static TQString stringEntry(TQDomElement &base, const TQString &tagName)
{
return base.namedItem(tagName).firstChild().toText().data();
}
-static bool boolEntry(QDomElement &base, const QString &tagName)
+static bool boolEntry(TQDomElement &base, const TQString &tagName)
{
return base.namedItem(tagName).firstChild().toText().data() == "true";
}
-static int numberEntry(QDomElement &base, const QString &tagName)
+static int numberEntry(TQDomElement &base, const TQString &tagName)
{
return stringEntry(base, tagName).toInt();
}
-static QRect rectEntry(QDomElement &base, const QString &tagName)
+static TQRect rectEntry(TQDomElement &base, const TQString &tagName)
{
- QDomElement el = base.namedItem(tagName).toElement();
+ TQDomElement el = base.namedItem(tagName).toElement();
int x = numberEntry(el, "x");
int y = numberEntry(el, "y");
int width = numberEntry(el, "width");
int height = numberEntry(el, "height");
- return QRect(x, y, width, height);
+ return TQRect(x, y, width, height);
}
-static QStrList listEntry(QDomElement &base, const QString &tagName, const QString &subTagName)
+static TQStrList listEntry(TQDomElement &base, const TQString &tagName, const TQString &subTagName)
{
- QStrList list;
+ TQStrList list;
- QDomElement subel = base.namedItem(tagName).firstChild().toElement();
+ TQDomElement subel = base.namedItem(tagName).firstChild().toElement();
while (!subel.isNull()) {
if (subel.tagName() == subTagName)
list.append(subel.firstChild().toText().data().latin1());
@@ -1783,23 +1783,23 @@ static QStrList listEntry(QDomElement &base, const QString &tagName, const QStri
}
-void PMDockManager::writeConfig(QDomElement &base)
+void PMDockManager::writeConfig(TQDomElement &base)
{
// First of all, clear the tree under base
while (!base.firstChild().isNull())
base.removeChild(base.firstChild());
- QDomDocument doc = base.ownerDocument();
+ TQDomDocument doc = base.ownerDocument();
- QStrList nameList;
- QString mainWidgetStr;
+ TQStrList nameList;
+ TQString mainWidgetStr;
// collect widget names
- QStrList nList;
- QObjectListIt it(*childDock);
+ TQStrList nList;
+ TQObjectListIt it(*childDock);
PMDockWidget *obj1;
while ( (obj1=(PMDockWidget*)it.current()) ) {
if ( obj1->parent() == main )
- mainWidgetStr = QString::fromLatin1(obj1->name());
+ mainWidgetStr = TQString::fromLatin1(obj1->name());
nList.append(obj1->name());
++it;
}
@@ -1815,7 +1815,7 @@ void PMDockManager::writeConfig(QDomElement &base)
continue;
}
- QDomElement groupEl;
+ TQDomElement groupEl;
if (obj->isGroup) {
//// Save a group
@@ -1829,7 +1829,7 @@ void PMDockManager::writeConfig(QDomElement &base)
//// Save a tab group
groupEl = doc.createElement("tabGroup");
- QStrList list;
+ TQStrList list;
for ( int i = 0; i < ((PMDockTabGroup*)obj->widget)->count(); ++i )
list.append( ((PMDockTabGroup*)obj->widget)->page( i )->name() );
groupEl.appendChild(createListEntry(doc, "tabs", "tab", list));
@@ -1839,10 +1839,10 @@ void PMDockManager::writeConfig(QDomElement &base)
groupEl = doc.createElement("dock");
}
- groupEl.appendChild(createStringEntry(doc, "name", QString::fromLatin1(obj->name())));
+ groupEl.appendChild(createStringEntry(doc, "name", TQString::fromLatin1(obj->name())));
groupEl.appendChild(createBoolEntry(doc, "hasParent", obj->parent()));
if ( !obj->parent() ) {
- groupEl.appendChild(createRectEntry(doc, "geometry", QRect(main->frameGeometry().topLeft(), main->size())));
+ groupEl.appendChild(createRectEntry(doc, "geometry", TQRect(main->frameGeometry().topLeft(), main->size())));
groupEl.appendChild(createBoolEntry(doc, "visible", obj->isVisible()));
}
if (obj->header && obj->header->inherits("PMDockWidgetHeader")) {
@@ -1858,19 +1858,19 @@ void PMDockManager::writeConfig(QDomElement &base)
if (main->inherits("PMDockMainWindow")) {
PMDockMainWindow *dmain = (PMDockMainWindow*)main;
- QString centralWidgetStr = QString(dmain->centralWidget()? dmain->centralWidget()->name() : "");
+ TQString centralWidgetStr = TQString(dmain->centralWidget()? dmain->centralWidget()->name() : "");
base.appendChild(createStringEntry(doc, "centralWidget", centralWidgetStr));
- QString mainDockWidgetStr = QString(dmain->getMainDockWidget()? dmain->getMainDockWidget()->name() : "");
+ TQString mainDockWidgetStr = TQString(dmain->getMainDockWidget()? dmain->getMainDockWidget()->name() : "");
base.appendChild(createStringEntry(doc, "mainDockWidget", mainDockWidgetStr));
} else {
base.appendChild(createStringEntry(doc, "mainWidget", mainWidgetStr));
}
- base.appendChild(createRectEntry(doc, "geometry", QRect(main->frameGeometry().topLeft(), main->size())));
+ base.appendChild(createRectEntry(doc, "geometry", TQRect(main->frameGeometry().topLeft(), main->size())));
}
-void PMDockManager::readConfig(QDomElement &base)
+void PMDockManager::readConfig(TQDomElement &base)
{
if (base.namedItem("group").isNull()
&& base.namedItem("tabgroup").isNull()
@@ -1879,13 +1879,13 @@ void PMDockManager::readConfig(QDomElement &base)
return;
}
- autoCreateDock = new QObjectList();
+ autoCreateDock = new TQObjectList();
autoCreateDock->setAutoDelete( true );
bool isMainVisible = main->isVisible();
main->hide();
- QObjectListIt it(*childDock);
+ TQObjectListIt it(*childDock);
PMDockWidget *obj1;
while ( (obj1=(PMDockWidget*)it.current()) ) {
if ( !obj1->isGroup && !obj1->isTabGroup ) {
@@ -1897,15 +1897,15 @@ void PMDockManager::readConfig(QDomElement &base)
++it;
}
- QDomElement childEl = base.firstChild().toElement();
+ TQDomElement childEl = base.firstChild().toElement();
while (!childEl.isNull() ) {
PMDockWidget *obj = 0;
if (childEl.tagName() == "splitGroup") {
// Read a group
- QString name = stringEntry(childEl, "name");
- QString firstName = stringEntry(childEl, "firstName");
- QString secondName = stringEntry(childEl, "secondName");
+ TQString name = stringEntry(childEl, "name");
+ TQString firstName = stringEntry(childEl, "firstName");
+ TQString secondName = stringEntry(childEl, "secondName");
int orientation = numberEntry(childEl, "orientation");
int separatorPos = numberEntry(childEl, "separatorPos");
@@ -1920,8 +1920,8 @@ void PMDockManager::readConfig(QDomElement &base)
}
} else if (childEl.tagName() == "tabGroup") {
// Read a tab group
- QString name = stringEntry(childEl, "name");
- QStrList list = listEntry(childEl, "tabs", "tab");
+ TQString name = stringEntry(childEl, "name");
+ TQStrList list = listEntry(childEl, "tabs", "tab");
PMDockWidget *d1 = getDockWidgetFromName( list.first() );
list.next();
@@ -1947,12 +1947,12 @@ void PMDockManager::readConfig(QDomElement &base)
}
if (!boolEntry(childEl, "hasParent")) {
- QRect r = rectEntry(childEl, "geometry");
+ TQRect r = rectEntry(childEl, "geometry");
obj = getDockWidgetFromName(stringEntry(childEl, "name"));
obj->applyToWidget(0);
obj->setGeometry(r);
if (boolEntry(childEl, "visible"))
- obj->QWidget::show();
+ obj->TQWidget::show();
}
if (obj && obj->header && obj->header->inherits("PMDockWidgetHeader")) {
@@ -1966,20 +1966,20 @@ void PMDockManager::readConfig(QDomElement &base)
if (main->inherits("PMDockMainWindow")) {
PMDockMainWindow *dmain = (PMDockMainWindow*)main;
- QString mv = stringEntry(base, "centralWidget");
+ TQString mv = stringEntry(base, "centralWidget");
if (!mv.isEmpty() && getDockWidgetFromName(mv) ) {
PMDockWidget *mvd = getDockWidgetFromName(mv);
mvd->applyToWidget(dmain);
mvd->show();
dmain->setCentralWidget(mvd);
}
- QString md = stringEntry(base, "mainDockWidget");
+ TQString md = stringEntry(base, "mainDockWidget");
if (!md.isEmpty() && getDockWidgetFromName(md)) {
PMDockWidget *mvd = getDockWidgetFromName(md);
dmain->setMainDockWidget(mvd);
}
} else {
- QString mv = stringEntry(base, "mainWidget");
+ TQString mv = stringEntry(base, "mainWidget");
if (!mv.isEmpty() && getDockWidgetFromName(mv)) {
PMDockWidget *mvd = getDockWidgetFromName(mv);
mvd->applyToWidget(main);
@@ -1987,7 +1987,7 @@ void PMDockManager::readConfig(QDomElement &base)
}
}
- QRect mr = rectEntry(base, "geometry");
+ TQRect mr = rectEntry(base, "geometry");
main->setGeometry(mr);
if (isMainVisible)
main->show();
@@ -1998,7 +1998,7 @@ void PMDockManager::readConfig(QDomElement &base)
#ifndef NO_KDE2
-void PMDockManager::writeConfig( KConfig* c, QString group )
+void PMDockManager::writeConfig( KConfig* c, TQString group )
{
//debug("BEGIN Write Config");
if ( !c ) c = KGlobal::config();
@@ -2007,13 +2007,13 @@ void PMDockManager::writeConfig( KConfig* c, QString group )
c->setGroup( group );
c->writeEntry( "Version", DOCK_CONFIG_VERSION );
- QStrList nameList;
- QStrList findList;
- QObjectListIt it( *childDock );
+ TQStrList nameList;
+ TQStrList findList;
+ TQObjectListIt it( *childDock );
PMDockWidget * obj;
// collect PMDockWidget's name
- QStrList nList;
+ TQStrList nList;
while ( (obj=(PMDockWidget*)it.current()) ) {
++it;
//debug(" +Add subdock %s", obj->name());
@@ -2026,7 +2026,7 @@ void PMDockManager::writeConfig( KConfig* c, QString group )
while ( nList.current() ){
//debug(" -Try to save %s", nList.current());
obj = getDockWidgetFromName( nList.current() );
- QString cname = obj->name();
+ TQString cname = obj->name();
if ( obj->header ){
obj->header->saveConfig( c );
}
@@ -2037,7 +2037,7 @@ void PMDockManager::writeConfig( KConfig* c, QString group )
c->writeEntry( cname+":type", "GROUP");
if ( !obj->parent() ){
c->writeEntry( cname+":parent", "___null___");
- c->writeEntry( cname+":geometry", QRect(obj->frameGeometry().topLeft(), obj->size()) );
+ c->writeEntry( cname+":geometry", TQRect(obj->frameGeometry().topLeft(), obj->size()) );
c->writeEntry( cname+":visible", obj->isVisible());
} else {
c->writeEntry( cname+":parent", "yes");
@@ -2068,12 +2068,12 @@ void PMDockManager::writeConfig( KConfig* c, QString group )
c->writeEntry( cname+":type", "TAB_GROUP");
if ( !obj->parent() ){
c->writeEntry( cname+":parent", "___null___");
- c->writeEntry( cname+":geometry", QRect(obj->frameGeometry().topLeft(), obj->size()) );
+ c->writeEntry( cname+":geometry", TQRect(obj->frameGeometry().topLeft(), obj->size()) );
c->writeEntry( cname+":visible", obj->isVisible());
} else {
c->writeEntry( cname+":parent", "yes");
}
- QStrList list;
+ TQStrList list;
for ( int i = 0; i < ((PMDockTabGroup*)obj->widget)->count(); ++i )
list.append( ((PMDockTabGroup*)obj->widget)->page( i )->name() );
c->writeEntry( cname+":tabNames", list );
@@ -2088,7 +2088,7 @@ void PMDockManager::writeConfig( KConfig* c, QString group )
/*************************************************************************************************/
if ( !obj->parent() ){
c->writeEntry( cname+":type", "NULL_DOCK");
- c->writeEntry( cname+":geometry", QRect(obj->frameGeometry().topLeft(), obj->size()) );
+ c->writeEntry( cname+":geometry", TQRect(obj->frameGeometry().topLeft(), obj->size()) );
c->writeEntry( cname+":visible", obj->isVisible());
} else {
c->writeEntry( cname+":type", "DOCK");
@@ -2103,7 +2103,7 @@ void PMDockManager::writeConfig( KConfig* c, QString group )
}
c->writeEntry( "NameList", nameList );
- c->writeEntry( "Main:Geometry", QRect(main->frameGeometry().topLeft(), main->size()) );
+ c->writeEntry( "Main:Geometry", TQRect(main->frameGeometry().topLeft(), main->size()) );
c->writeEntry( "Main:visible", main->isVisible()); // curently nou use
if ( main->inherits("PMDockMainWindow") ){
@@ -2116,31 +2116,31 @@ void PMDockManager::writeConfig( KConfig* c, QString group )
c->sync();
//debug("END Write Config");
}
-#include <qmessagebox.h>
-void PMDockManager::readConfig( KConfig* c, QString group )
+#include <tqmessagebox.h>
+void PMDockManager::readConfig( KConfig* c, TQString group )
{
if ( !c ) c = KGlobal::config();
if ( group.isEmpty() ) group = "dock_setting_default";
c->setGroup( group );
- QStrList nameList;
+ TQStrList nameList;
c->readListEntry( "NameList", nameList );
- QString ver = c->readEntry( "Version", "0.0.1" );
+ TQString ver = c->readEntry( "Version", "0.0.1" );
nameList.first();
if ( !nameList.current() || ver != DOCK_CONFIG_VERSION ){
activate();
return;
}
- autoCreateDock = new QObjectList();
+ autoCreateDock = new TQObjectList();
autoCreateDock->setAutoDelete( true );
bool isMainVisible = main->isVisible();
// if (isMainVisible) // CCC
- //QMessageBox::information(0,"","hallo");
+ //TQMessageBox::information(0,"","hallo");
//COMMENTED4TESTING main->hide();
- QObjectListIt it( *childDock );
+ TQObjectListIt it( *childDock );
PMDockWidget * obj;
while ( (obj=(PMDockWidget*)it.current()) ){
@@ -2153,9 +2153,9 @@ void PMDockManager::readConfig( KConfig* c, QString group )
nameList.first();
while ( nameList.current() ){
- QString oname = nameList.current();
+ TQString oname = nameList.current();
c->setGroup( group );
- QString type = c->readEntry( oname + ":type" );
+ TQString type = c->readEntry( oname + ":type" );
obj = 0L;
if ( type == "GROUP" ){
@@ -2173,7 +2173,7 @@ void PMDockManager::readConfig( KConfig* c, QString group )
}
if ( type == "TAB_GROUP" ){
- QStrList list;
+ TQStrList list;
PMDockWidget* tabDockGroup = 0L;
c->readListEntry( oname+":tabNames", list );
PMDockWidget* d1 = getDockWidgetFromName( list.first() );
@@ -2198,14 +2198,14 @@ void PMDockManager::readConfig( KConfig* c, QString group )
}
if ( type == "NULL_DOCK" || c->readEntry( oname + ":parent") == "___null___" ){
- QRect r = c->readRectEntry( oname + ":geometry" );
+ TQRect r = c->readRectEntry( oname + ":geometry" );
obj = getDockWidgetFromName( oname );
obj->applyToWidget( 0L );
obj->setGeometry(r);
c->setGroup( group );
if ( c->readBoolEntry( oname + ":visible" ) ){
- obj->QWidget::show();
+ obj->TQWidget::show();
}
}
@@ -2223,7 +2223,7 @@ void PMDockManager::readConfig( KConfig* c, QString group )
PMDockMainWindow* dmain = (PMDockMainWindow*)main;
c->setGroup( group );
- QString mv = c->readEntry( "Main:view" );
+ TQString mv = c->readEntry( "Main:view" );
if ( !mv.isEmpty() && getDockWidgetFromName( mv ) ){
PMDockWidget* mvd = getDockWidgetFromName( mv );
mvd->applyToWidget( dmain );
@@ -2231,14 +2231,14 @@ void PMDockManager::readConfig( KConfig* c, QString group )
dmain->setView( mvd );
}
c->setGroup( group );
- QString md = c->readEntry( "Main:dock" );
+ TQString md = c->readEntry( "Main:dock" );
if ( !md.isEmpty() && getDockWidgetFromName( md ) ){
PMDockWidget* mvd = getDockWidgetFromName( md );
dmain->setMainDockWidget( mvd );
}
} else {
c->setGroup( group );
- QString mv = c->readEntry( "Main:view" );
+ TQString mv = c->readEntry( "Main:view" );
if ( !mv.isEmpty() && getDockWidgetFromName( mv ) ){
PMDockWidget* mvd = getDockWidgetFromName( mv );
mvd->applyToWidget( main );
@@ -2251,24 +2251,24 @@ void PMDockManager::readConfig( KConfig* c, QString group )
autoCreateDock = 0L;
c->setGroup( group );
- QRect mr = c->readRectEntry("Main:Geometry");
+ TQRect mr = c->readRectEntry("Main:Geometry");
main->setGeometry(mr);
if ( isMainVisible ) main->show();
}
#endif
-PMDockWidget* PMDockManager::getDockWidgetFromName( const QString& dockName )
+PMDockWidget* PMDockManager::getDockWidgetFromName( const TQString& dockName )
{
- QObjectListIt it( *childDock );
+ TQObjectListIt it( *childDock );
PMDockWidget * obj;
while ( (obj=(PMDockWidget*)it.current()) ) {
++it;
- if ( QString(obj->name()) == dockName ) return obj;
+ if ( TQString(obj->name()) == dockName ) return obj;
}
PMDockWidget* autoCreate = 0L;
if ( autoCreateDock ){
- autoCreate = new PMDockWidget( this, dockName.latin1(), QPixmap("") );
+ autoCreate = new PMDockWidget( this, dockName.latin1(), TQPixmap("") );
autoCreateDock->append( autoCreate );
}
return autoCreate;
@@ -2308,20 +2308,20 @@ void PMDockManager::slotMenuPopup()
menu->clear();
menuData->clear();
- QObjectListIt it( *childDock );
+ TQObjectListIt it( *childDock );
PMDockWidget * obj;
int numerator = 0;
while ( (obj=(PMDockWidget*)it.current()) ) {
++it;
if ( obj->mayBeHide() )
{
- menu->insertItem( obj->icon() ? *(obj->icon()) : QPixmap(), QString("Hide ") + obj->caption(), numerator++ );
+ menu->insertItem( obj->icon() ? *(obj->icon()) : TQPixmap(), TQString("Hide ") + obj->caption(), numerator++ );
menuData->append( new MenuDockData( obj, true ) );
}
if ( obj->mayBeShow() )
{
- menu->insertItem( obj->icon() ? *(obj->icon()) : QPixmap(), QString("Show ") + obj->caption(), numerator++ );
+ menu->insertItem( obj->icon() ? *(obj->icon()) : TQPixmap(), TQString("Show ") + obj->caption(), numerator++ );
menuData->append( new MenuDockData( obj, false ) );
}
}
@@ -2333,9 +2333,9 @@ void PMDockManager::slotMenuActivated( int id )
data->dock->changeHideShowState();
}
-PMDockWidget* PMDockManager::findWidgetParentDock( QWidget* w ) const
+PMDockWidget* PMDockManager::findWidgetParentDock( TQWidget* w ) const
{
- QObjectListIt it( *childDock );
+ TQObjectListIt it( *childDock );
PMDockWidget * dock;
PMDockWidget * found = 0L;
@@ -2352,7 +2352,7 @@ void PMDockManager::drawDragRectangle()
return;
int i;
- QRect oldAndNewDragRect[2];
+ TQRect oldAndNewDragRect[2];
oldAndNewDragRect[0] = d->oldDragRect;
oldAndNewDragRect[1] = d->dragRect;
@@ -2361,7 +2361,7 @@ void PMDockManager::drawDragRectangle()
if (oldAndNewDragRect[i].isEmpty())
continue;
- PMDockWidget* pDockWdgAtRect = (PMDockWidget*) QApplication::widgetAt( oldAndNewDragRect[i].topLeft(), true );
+ PMDockWidget* pDockWdgAtRect = (PMDockWidget*) TQApplication::widgetAt( oldAndNewDragRect[i].topLeft(), true );
if (!pDockWdgAtRect)
continue;
@@ -2369,7 +2369,7 @@ void PMDockManager::drawDragRectangle()
bool unclipped;
PMDockMainWindow* pMain = 0L;
PMDockWidget* pTLDockWdg = 0L;
- QWidget* topWdg;
+ TQWidget* topWdg;
if (pDockWdgAtRect->topLevelWidget() == main) {
isOverMainWdg = true;
topWdg = pMain = (PMDockMainWindow*) main;
@@ -2383,7 +2383,7 @@ void PMDockManager::drawDragRectangle()
}
// draw the rectangle unclipped over the main dock window
- QPainter p;
+ TQPainter p;
p.begin( topWdg );
if ( !unclipped ) {
if (isOverMainWdg)
@@ -2393,8 +2393,8 @@ void PMDockManager::drawDragRectangle()
}
// draw the rectangle
p.setRasterOp(Qt::NotXorROP);
- QRect r = oldAndNewDragRect[i];
- r.moveTopLeft( r.topLeft() - topWdg->mapToGlobal(QPoint(0,0)) );
+ TQRect r = oldAndNewDragRect[i];
+ r.moveTopLeft( r.topLeft() - topWdg->mapToGlobal(TQPoint(0,0)) );
p.drawRect(r.x(), r.y(), r.width(), r.height());
p.end();
}
@@ -2406,10 +2406,10 @@ void PMDockManager::drawDragRectangle()
#ifdef _JOWENN_EXPERIMENTAL_
-PMDockArea::PMDockArea( QWidget* parent, const char *name)
-:QWidget( parent, name)
+PMDockArea::PMDockArea( TQWidget* parent, const char *name)
+:TQWidget( parent, name)
{
- QString new_name = QString(name) + QString("_DockManager");
+ TQString new_name = TQString(name) + TQString("_DockManager");
dockManager = new PMDockManager( this, new_name.latin1() );
mainDockWidget = 0L;
}
@@ -2419,7 +2419,7 @@ PMDockArea::~PMDockArea()
delete dockManager;
}
-PMDockWidget* PMDockArea::createDockWidget( const QString& name, const QPixmap &pixmap, QWidget* parent, const QString& strCaption, const QString& strTabPageLabel)
+PMDockWidget* PMDockArea::createDockWidget( const TQString& name, const TQPixmap &pixmap, TQWidget* parent, const TQString& strCaption, const TQString& strTabPageLabel)
{
return new PMDockWidget( dockManager, name.latin1(), pixmap, parent, strCaption, strTabPageLabel );
}
@@ -2436,44 +2436,44 @@ void PMDockArea::makeDockInvisible( PMDockWidget* dock )
dock->undock();
}
-void PMDockArea::makeWidgetDockVisible( QWidget* widget )
+void PMDockArea::makeWidgetDockVisible( TQWidget* widget )
{
makeDockVisible( dockManager->findWidgetParentDock(widget) );
}
-void PMDockArea::writeDockConfig(QDomElement &base)
+void PMDockArea::writeDockConfig(TQDomElement &base)
{
dockManager->writeConfig(base);
}
-void PMDockArea::readDockConfig(QDomElement &base)
+void PMDockArea::readDockConfig(TQDomElement &base)
{
dockManager->readConfig(base);
}
void PMDockArea::slotDockWidgetUndocked()
{
- QObject* pSender = (QObject*) sender();
+ TQObject* pSender = (TQObject*) sender();
if (!pSender->inherits("PMDockWidget")) return;
PMDockWidget* pDW = (PMDockWidget*) pSender;
emit dockWidgetHasUndocked( pDW);
}
-void PMDockArea::resizeEvent(QResizeEvent *rsize)
+void PMDockArea::resizeEvent(TQResizeEvent *rsize)
{
- QWidget::resizeEvent(rsize);
+ TQWidget::resizeEvent(rsize);
if (children()){
#ifndef NO_KDE2
kdDebug()<<"PMDockArea::resize"<<endl;
#endif
- QObjectList *list=queryList("QWidget",0,false);
+ TQObjectList *list=queryList("TQWidget",0,false);
- QObjectListIt it( *list ); // iterate over the buttons
- QObject *obj;
+ TQObjectListIt it( *list ); // iterate over the buttons
+ TQObject *obj;
while ( (obj = it.current()) != 0 ) {
// for each found object...
- ((QWidget*)obj)->setGeometry(QRect(QPoint(0,0),size()));
+ ((TQWidget*)obj)->setGeometry(TQRect(TQPoint(0,0),size()));
break;
}
delete list;
@@ -2481,12 +2481,12 @@ void PMDockArea::resizeEvent(QResizeEvent *rsize)
PMDockSplitter *split;
// for (unsigned int i=0;i<children()->count();i++)
{
-// QPtrList<QObject> list(children());
-// QObject *obj=((QPtrList<QObject*>)children())->at(i);
- QObject *obj=children()->getFirst();
+// TQPtrList<TQObject> list(children());
+// TQObject *obj=((TQPtrList<TQObject*>)children())->at(i);
+ TQObject *obj=children()->getFirst();
if (split=dynamic_cast<PMDockSplitter*>(obj))
{
- split->setGeometry( QRect(QPoint(0,0), size() ));
+ split->setGeometry( TQRect(TQPoint(0,0), size() ));
// break;
}
}
@@ -2495,12 +2495,12 @@ void PMDockArea::resizeEvent(QResizeEvent *rsize)
}
#ifndef NO_KDE2
-void PMDockArea::writeDockConfig( KConfig* c, QString group )
+void PMDockArea::writeDockConfig( KConfig* c, TQString group )
{
dockManager->writeConfig( c, group );
}
-void PMDockArea::readDockConfig( KConfig* c, QString group )
+void PMDockArea::readDockConfig( KConfig* c, TQString group )
{
dockManager->readConfig( c, group );
}
diff --git a/kpovmodeler/pmdockwidget.h b/kpovmodeler/pmdockwidget.h
index 29f6c34f..d6c083f2 100644
--- a/kpovmodeler/pmdockwidget.h
+++ b/kpovmodeler/pmdockwidget.h
@@ -57,11 +57,11 @@
#define _KDOCKWIDGET_2_2_
-#include <qpoint.h>
-#include <qptrlist.h>
-#include <qframe.h>
-#include <qdom.h>
-#include <qtabwidget.h>
+#include <tqpoint.h>
+#include <tqptrlist.h>
+#include <tqframe.h>
+#include <tqdom.h>
+#include <tqtabwidget.h>
#ifndef NO_KDE2
#include <kmainwindow.h>
@@ -69,7 +69,7 @@
#undef EXPORT_DOCKCLASS
#define EXPORT_DOCKCLASS
#else
-#include <qmainwindow.h>
+#include <tqmainwindow.h>
#include "exportdockclass.h"
#include "dummykmainwindow.h"
#endif
@@ -86,17 +86,17 @@ class PMDockWidgetPrivate;
class PMDockArea;
class PMDockMainWindowPrivate;
-class QObjectList;
-class QPopupMenu;
-class QVBoxLayout;
-class QHBoxLayout;
-class QPixmap;
+class TQObjectList;
+class TQPopupMenu;
+class TQVBoxLayout;
+class TQHBoxLayout;
+class TQPixmap;
#ifndef NO_KDE2
class KToolBar;
class KConfig;
#else
-class QToolBar;
+class TQToolBar;
#endif
/**
@@ -225,7 +225,7 @@ protected:
/**
* Draws the drag panel (a double line)
*/
- virtual void paintEvent( QPaintEvent* );
+ virtual void paintEvent( TQPaintEvent* );
protected:
virtual void virtual_hook( int id, void* data );
@@ -303,7 +303,7 @@ protected:
/**
* A layout manager for placing the embedded buttons (close and stay)
*/
- QHBoxLayout* layout;
+ TQHBoxLayout* layout;
/**
* a little button for closing (undocking and hiding) the dockwidget
@@ -341,7 +341,7 @@ private:
/**
* It just hides the special implementation of a dockwidget tab groups (and is member of the dockwidget class set).
* An abstraction what it is currently.
- * In general it is like @ref QTabWidget but is more useful for the dockwidget class set.
+ * In general it is like @ref TQTabWidget but is more useful for the dockwidget class set.
* More or less a minor helper class for the dockwidget class set.
*
* @author Max Judin (documentation: Falk Brettschneider).
@@ -353,8 +353,8 @@ public:
/**
* Constructs this. It just calls the method of the base class.
*/
- PMDockTabGroup( QWidget *parent = 0, const char *name = 0 )
- :QTabWidget( parent, name ){};
+ PMDockTabGroup( TQWidget *parent = 0, const char *name = 0 )
+ :TQTabWidget( parent, name ){};
/**
* Destructs a PMDockTabGroup.
@@ -393,7 +393,7 @@ private:
* ...
* PMDockWidget* dock = 0L;
* dock = mainWidget->createDockWidget( "Any window caption", nicePixmap, 0L, i18n("window caption")); // 0L==no parent
- * QWidget* actualWidget = new QWidget( dock);
+ * TQWidget* actualWidget = new TQWidget( dock);
* dock->setWidget( actualWidget); // embed it
* dock->setToolTipString(i18n("That's me")); // available when appearing as tab page
* ...
@@ -428,8 +428,8 @@ public:
* @param strTabPageLabel The title of the tab page (shown when in tab page mode), if it is "", only the icon will be shown, if it is 0L, the label is set to strCaption
*/
PMDockWidget( PMDockManager* dockManager, const char* name,
- const QPixmap &pixmap, QWidget* parent = 0L, const QString& strCaption = 0L,
- const QString& strTabPageLabel = " ", WFlags f = 0);
+ const TQPixmap &pixmap, TQWidget* parent = 0L, const TQString& strCaption = 0L,
+ const TQString& strTabPageLabel = " ", WFlags f = 0);
/**
* Destructs a dockwidget.
@@ -473,7 +473,7 @@ public:
* @param tabIndex The position index of the tab widget (when in tab page mode), -1 (default) means append
* @return result The group dockwidget that replaces the target dockwidget and will be grandparent of target and @p this.
*/
- PMDockWidget* manualDock( PMDockWidget* target, DockPosition dockPos, int spliPos = 50, QPoint pos = QPoint(0,0), bool check = false, int tabIndex = -1);
+ PMDockWidget* manualDock( PMDockWidget* target, DockPosition dockPos, int spliPos = 50, TQPoint pos = TQPoint(0,0), bool check = false, int tabIndex = -1);
/**
* Specify where it is either possible or impossible for this to dock to another dockwidget.
@@ -508,23 +508,23 @@ public:
/**
* Sets the embedded widget.
*
- * A QLayout takes care about proper resizing, automatically.
+ * A TQLayout takes care about proper resizing, automatically.
*
* @param w The pointer to the dockwidget's child widget.
*/
- void setWidget( QWidget* w);
+ void setWidget( TQWidget* w);
/**
* Get the embedded widget.
*
* @return The pointer to the dockwidget's child widget, 0L if there's no such child.
*/
- QWidget* getWidget() const { return widget; };
+ TQWidget* getWidget() const { return widget; };
/**
* Sets the header of this dockwidget.
*
- * A @ref QLayout takes care about proper resizing, automatically.
+ * A @ref TQLayout takes care about proper resizing, automatically.
* The header contains the drag panel, the close button and the stay button.
*
* @param ah A base class pointer to the dockwidget header
@@ -573,12 +573,12 @@ public:
*
* @param ttStr A string for the tooltip on the tab.
*/
- void setToolTipString(const QString& ttStr) { toolTipStr = ttStr; };
+ void setToolTipString(const TQString& ttStr) { toolTipStr = ttStr; };
/**
* @return The tooltip string being shown on the appropriate tab page header when in dock-centered mode.
*/
- const QString& toolTipString() const { return toolTipStr; };
+ const TQString& toolTipString() const { return toolTipStr; };
/**
* @return result @p true, if a dockback is possible, otherwise @p false.
@@ -589,20 +589,20 @@ public:
* Sets a string that is used for the label of the tab page when in tab page mode
* @param label The new tab page label.
*/
- void setTabPageLabel( const QString& label) { tabPageTitle = label; };
+ void setTabPageLabel( const TQString& label) { tabPageTitle = label; };
/**
* @return A string that is used for the label of the tab page when in tab page mode.
*/
- const QString& tabPageLabel() const { return tabPageTitle; };
+ const TQString& tabPageLabel() const { return tabPageTitle; };
/**
- * Catches and processes some @ref QWidget events that are interesting for dockwidgets.
+ * Catches and processes some @ref TQWidget events that are interesting for dockwidgets.
*/
- virtual bool event( QEvent * );
+ virtual bool event( TQEvent * );
/**
- * Add dockwidget management actions to @ref QWidget::show.
+ * Add dockwidget management actions to @ref TQWidget::show.
*/
virtual void show();
/**
@@ -626,7 +626,7 @@ public:
*
* @param windowType is type of dock window
*/
- void setDockWindowTransient (QWidget *parent, bool transientEnabled);
+ void setDockWindowTransient (TQWidget *parent, bool transientEnabled);
// MODIFICATION (lpassos)
/**
@@ -662,7 +662,7 @@ public slots:
/**
* Sets the caption and tab label
*/
- void slotSetCaption( const QString& );
+ void slotSetCaption( const TQString& );
protected:
@@ -733,11 +733,11 @@ protected:
/**
* a string used as tooltip for the tab page header when in dock-centered mode.
*/
- QString toolTipStr;
+ TQString toolTipStr;
/**
* a string used as title of the tab page when in tab page mode
*/
- QString tabPageTitle;
+ TQString tabPageTitle;
private:
/**
@@ -754,7 +754,7 @@ private:
* @param s the target widget to reparent to
* @param p the point to move to (if it doesn't reparent)
*/
- void applyToWidget( QWidget* s, const QPoint& p = QPoint(0,0) );
+ void applyToWidget( TQWidget* s, const TQPoint& p = TQPoint(0,0) );
/**
* A base class pointer to the header of this dockwidget
@@ -764,12 +764,12 @@ private:
/**
* the embedded widget
*/
- QWidget* widget;
+ TQWidget* widget;
/**
* the layout manager that takes care about proper resizing and moving the embedded widget and the header
*/
- QVBoxLayout* layout;
+ TQVBoxLayout* layout;
/**
* the responsible dockmanager
@@ -779,7 +779,7 @@ private:
/**
* an icon for the tab widget header
*/
- QPixmap* pix;
+ TQPixmap* pix;
/**
* Information about the ability for docking to another dockwidget.
@@ -797,8 +797,8 @@ private:
PMDockWidget::DockPosition prevSideDockPosBeforeDrag;
// GROUP data
- QString firstName;
- QString lastName;
+ TQString firstName;
+ TQString lastName;
Orientation splitterOrientation;
bool isGroup;
bool isTabGroup;
@@ -838,7 +838,7 @@ public:
* @param mainWindow the main window controlled by this
* @param name the internal QOject name
*/
- PMDockManager( QWidget* mainWindow, const char* name = 0L );
+ PMDockManager( TQWidget* mainWindow, const char* name = 0L );
/**
* Destructs a dockmanager.
@@ -855,14 +855,14 @@ public:
* @param c the KDE configuration saver
* @param group the name of the section in KConfig
*/
- void writeConfig( KConfig* c = 0L, QString group = QString::null );
+ void writeConfig( KConfig* c = 0L, TQString group = TQString::null );
/**
* Like writeConfig but reads the whole stuff in.
*
* In order to restore a window configuration
* from a config file, it looks up widgets by name
- * (QObject::name) in the childDock variable of
+ * (TQObject::name) in the childDock variable of
* PMDockManager. This list in turn contains all
* PMDockWidgets (according to the PMDockWidget constructor).
* So in principle, in order to restore a window layout,
@@ -873,17 +873,17 @@ public:
* @param c the KDE configuration saver
* @param group the name of the section in KConfig
*/
- void readConfig ( KConfig* c = 0L, QString group = QString::null );
+ void readConfig ( KConfig* c = 0L, TQString group = TQString::null );
#endif
/**
* Saves the current dock window layout into a DOM tree below the given element.
*/
- void writeConfig(QDomElement &base);
+ void writeConfig(TQDomElement &base);
/**
* Reads the current dock window layout from a DOM tree below the given element.
*/
- void readConfig(QDomElement &base);
+ void readConfig(TQDomElement &base);
/**
* Shows all encapsulated widgets of all controlled dockwidgets and shows all dockwidgets which are
@@ -899,7 +899,7 @@ public:
* @param _ the event
* @return the return value of the method call of the base class method
*/
- virtual bool eventFilter( QObject *, QEvent * );
+ virtual bool eventFilter( TQObject *, TQEvent * );
/**
* This method finds out what a widgets' dockwidget is. That means the dockmanager has a look at all
@@ -908,25 +908,25 @@ public:
* @param w any widget that is supposed to be encapsulated by one of the controlled dockwidgets
* @return the dockwidget that encapsulates that widget, otherwise 0
*/
- PMDockWidget* findWidgetParentDock( QWidget* w) const;
+ PMDockWidget* findWidgetParentDock( TQWidget* w) const;
/**
* Works like makeDockVisible() but can be called for widgets that covered by a dockwidget.
*
* @param w the widget that is encapsulated by a dockwidget that turns to visible.
*/
- void makeWidgetDockVisible( QWidget* w ){ findWidgetParentDock(w)->makeDockVisible(); }
+ void makeWidgetDockVisible( TQWidget* w ){ findWidgetParentDock(w)->makeDockVisible(); }
/**
* @return the popupmenu for showing/hiding dockwidgets
*/
- QPopupMenu* dockHideShowMenu() const { return menu; }
+ TQPopupMenu* dockHideShowMenu() const { return menu; }
/**
- * @param dockName an internal QObject name
- * @return the dockwidget that has got that internal QObject name
+ * @param dockName an internal TQObject name
+ * @return the dockwidget that has got that internal TQObject name
*/
- PMDockWidget* getDockWidgetFromName( const QString& dockName );
+ PMDockWidget* getDockWidgetFromName( const TQString& dockName );
/**
* Enables opaque resizing. Opaque resizing is initially turned off.
@@ -941,7 +941,7 @@ public:
/**
* Try to preserve the widget's size. Works like KeepSize resize mode
- * of QSplitter. Off by default.
+ * of TQSplitter. Off by default.
* Call this method before you create any dock widgets!
*/
void setSplitterKeepSize(bool b=true);
@@ -967,7 +967,7 @@ public:
/**
* Returns the main dock widget
*/
- QWidget* dockMainWidget( ) const { return main; }
+ TQWidget* dockMainWidget( ) const { return main; }
signals:
@@ -1030,16 +1030,16 @@ private:
* @param pos global (desktop) position of the wanted dockwidget
* @return the dockwidget at that position
*/
- PMDockWidget* findDockWidgetAt( const QPoint& pos );
+ PMDockWidget* findDockWidgetAt( const TQPoint& pos );
/**
- * Finds the QWidget recursively at the position given as parameter
+ * Finds the TQWidget recursively at the position given as parameter
*
- * @param w a variable where the method puts the QWidget at that position (instead of a return value)
+ * @param w a variable where the method puts the TQWidget at that position (instead of a return value)
* @param p the parent widget where the recursive search should start from
* @param pos global (desktop) position of the wanted dockwidget
*/
- void findChildDockWidget( QWidget*& w, const QWidget* p, const QPoint& pos );
+ void findChildDockWidget( TQWidget*& w, const TQWidget* p, const TQPoint& pos );
// MODIFICATION (lpassos)
// Made findChildDockWidget public
public:
@@ -1049,11 +1049,11 @@ public:
* @param p the parent widget where the recursive search starts from
* @param l the widget list that contains the search result after the return of this method
*/
- void findChildDockWidget( const QWidget* p, QWidgetList& l);
+ void findChildDockWidget( const TQWidget* p, TQWidgetList& l);
/**
* Returns all floating dock widgets
*/
- void findFloatingWidgets( QPtrList<PMDockWidget>& l );
+ void findFloatingWidgets( TQPtrList<PMDockWidget>& l );
private:
/**
@@ -1067,7 +1067,7 @@ private:
* @param d the dockwidget which is dragged
* @param pos the new position of the dragged dockwidget
*/
- void dragMove( PMDockWidget* d, QPoint pos );
+ void dragMove( PMDockWidget* d, TQPoint pos );
/**
* Aborts the drag mode. Restores the cursor and hides the drag indicator.
@@ -1085,7 +1085,7 @@ private:
/**
* Usually the PMDockMainWindow but not necessarily.
*/
- QWidget* main;
+ TQWidget* main;
/**
* The dockwidget that is being dragged at the moment
@@ -1100,7 +1100,7 @@ private:
/**
* It is of interest during the dock process. Then it contains all child dockwidgets.
*/
- QWidgetList* childDockWidgetList;
+ TQWidgetList* childDockWidgetList;
/**
* The dockposition where the dockwidget would be docked to, if we dropped it here.
@@ -1111,12 +1111,12 @@ private:
* A QList of all objects that are important for docking.
* Some serve as group widgets of dockwidgets, others encapsulate normal widgets.
*/
- QObjectList* childDock;
+ TQObjectList* childDock;
/**
* Contains dockwidgets that are created automatically by the dockmanager. For internal use.
*/
- QObjectList* autoCreateDock;
+ TQObjectList* autoCreateDock;
/**
* For storing the width during the dragging of a dockwidget.
@@ -1148,12 +1148,12 @@ private:
* A popup menu that contains one menuitem for each dockwidget that shows the current visibility state and
* to show or hide the appropriate dockwidget.
*/
- QPopupMenu* menu;
+ TQPopupMenu* menu;
/**
* An internal list containing data for the menuitems for the visibility popup menu.
*/
- QPtrList<MenuDockData> *menuData;
+ TQPtrList<MenuDockData> *menuData;
protected:
virtual void virtual_hook( int id, void* data );
@@ -1223,7 +1223,7 @@ public:
*
* @param name object name
*/
- PMDockMainWindow( QWidget* parent = 0L, const char *name = 0L, WFlags f = WType_TopLevel | WDestructiveClose );
+ PMDockMainWindow( TQWidget* parent = 0L, const char *name = 0L, WFlags f = WType_TopLevel | WDestructiveClose );
/**
* Destructs a dockmainwindow.
@@ -1256,23 +1256,23 @@ public:
* The PMDockMainWindow creates a new dockwidget object here that usually should encapsulate the user's widget.
* The new dockwidget is automatically taken under control by the dockmanager of the dockmainwindow.
*
- * @param name QObject name (default dockwidget caption)
+ * @param name TQObject name (default dockwidget caption)
* @param pixmap window icon (for instance shown when docked as tabwidget entry)
* @param parent parent widget for the new dockwidget
* @param strCaption window title (shown when toplevel)
* @param strTabPageLabel title of the tab page (visible when in tab page mode), if it is "", only the icon will be shown; if it is 0L, the label is set to strCaption
* @return a pointer to the new created dockwidget
*/
- PMDockWidget* createDockWidget( const QString& name, const QPixmap &pixmap, QWidget* parent = 0L, const QString& strCaption = 0L, const QString& strTabPageLabel = " ");
+ PMDockWidget* createDockWidget( const TQString& name, const TQPixmap &pixmap, TQWidget* parent = 0L, const TQString& strCaption = 0L, const TQString& strTabPageLabel = " ");
/**
* Saves the current dock window layout into a DOM tree below the given element.
*/
- void writeDockConfig(QDomElement &base);
+ void writeDockConfig(TQDomElement &base);
/**
* Reads the current dock window layout from a DOM tree below the given element.
*/
- void readDockConfig(QDomElement &base);
+ void readDockConfig(TQDomElement &base);
#ifndef NO_KDE2
/**
@@ -1281,7 +1281,7 @@ public:
* @param c KDE class for saving configurations
* @param group name of section to write to
*/
- void writeDockConfig( KConfig* c = 0L, QString group = QString::null );
+ void writeDockConfig( KConfig* c = 0L, TQString group = TQString::null );
/**
* It reads the current dock state from the given section of KConfig.
@@ -1289,13 +1289,13 @@ public:
* @param c KDE class for saving configurations
* @param group name of section to read from
*/
- void readDockConfig ( KConfig* c = 0L, QString group = QString::null );
+ void readDockConfig ( KConfig* c = 0L, TQString group = TQString::null );
#endif
/**
* It runs through all dockwidgets which are under control of the dockmanager and calls show() for every
* encapsulated widget and show() for the dockwidget itself if it is not in tab mode.
- * Additionally, if the main dockwidget is not a QDialog, it will be shown.
+ * Additionally, if the main dockwidget is not a TQDialog, it will be shown.
*/
void activateDock(){ dockManager->activate(); }
@@ -1305,7 +1305,7 @@ public:
*
* @return the wanted popup menu
*/
- QPopupMenu* dockHideShowMenu() const { return dockManager->dockHideShowMenu(); }
+ TQPopupMenu* dockHideShowMenu() const { return dockManager->dockHideShowMenu(); }
/**
* This method shows the given dockwidget.
@@ -1327,7 +1327,7 @@ public:
* This is an overloaded member function, provided for convenience.
* It differs from the above function only in what argument(s) it accepts.
*/
- void makeWidgetDockVisible( QWidget* widget );
+ void makeWidgetDockVisible( TQWidget* widget );
/**
* This method calls the base class method.
@@ -1335,7 +1335,7 @@ public:
*
* @param _ any widget that should become the main view
*/
- void setView( QWidget* );
+ void setView( TQWidget* );
signals:
/**
@@ -1379,7 +1379,7 @@ protected slots:
* Reimplement if your dock-mainwindow has a complex statusbar
* (with several items)
*/
- virtual void slotSetStatusBarText( const QString & );
+ virtual void slotSetStatusBarText( const TQString & );
protected:
virtual void createShellGUI( bool create = true );
@@ -1406,7 +1406,7 @@ private:
#ifdef _JOWENN_EXPERIMENTAL_
-/* Joseph Wenninger jowenn@kde.org Experimental (Just all KMainWindow references changed to QWidget, otherwise nearly exactly the
+/* Joseph Wenninger jowenn@kde.org Experimental (Just all KMainWindow references changed to TQWidget, otherwise nearly exactly the
same as PMDockMainWindow*/
class EXPORT_DOCKCLASS PMDockArea : public QWidget
@@ -1418,7 +1418,7 @@ friend class PMDockManager;
public:
- PMDockArea( QWidget* parent = 0L, const char *name = 0L);
+ PMDockArea( TQWidget* parent = 0L, const char *name = 0L);
virtual ~PMDockArea();
@@ -1428,24 +1428,24 @@ public:
void setMainDockWidget( PMDockWidget* );
PMDockWidget* getMainDockWidget(){ return mainDockWidget; }
- PMDockWidget* createDockWidget( const QString& name, const QPixmap &pixmap, QWidget* parent = 0L, const QString& strCaption = 0L, const QString& strTabPageLabel = " ");
+ PMDockWidget* createDockWidget( const TQString& name, const TQPixmap &pixmap, TQWidget* parent = 0L, const TQString& strCaption = 0L, const TQString& strTabPageLabel = " ");
- void writeDockConfig(QDomElement &base);
- void readDockConfig(QDomElement &base);
+ void writeDockConfig(TQDomElement &base);
+ void readDockConfig(TQDomElement &base);
#ifndef NO_KDE2
- void writeDockConfig( KConfig* c = 0L, QString group = QString::null );
- void readDockConfig ( KConfig* c = 0L, QString group = QString::null );
+ void writeDockConfig( KConfig* c = 0L, TQString group = TQString::null );
+ void readDockConfig ( KConfig* c = 0L, TQString group = TQString::null );
#endif
void activateDock(){ dockManager->activate(); }
- QPopupMenu* dockHideShowMenu(){ return dockManager->dockHideShowMenu(); }
+ TQPopupMenu* dockHideShowMenu(){ return dockManager->dockHideShowMenu(); }
void makeDockVisible( PMDockWidget* dock );
void makeDockInvisible( PMDockWidget* dock );
- void makeWidgetDockVisible( QWidget* widget );
- //void setView( QWidget* );
+ void makeWidgetDockVisible( TQWidget* widget );
+ //void setView( TQWidget* );
signals:
/**
@@ -1462,7 +1462,7 @@ protected slots:
void slotDockWidgetUndocked();
public:
- virtual void resizeEvent(QResizeEvent *);
+ virtual void resizeEvent(TQResizeEvent *);
protected:
virtual void virtual_hook( int id, void* data );
diff --git a/kpovmodeler/pmdockwidget_private.cpp b/kpovmodeler/pmdockwidget_private.cpp
index cdf21930..7fd72420 100644
--- a/kpovmodeler/pmdockwidget_private.cpp
+++ b/kpovmodeler/pmdockwidget_private.cpp
@@ -19,11 +19,11 @@
#include "pmdockwidget.h"
#include "pmdockwidget_private.h"
-#include <qpainter.h>
-#include <qcursor.h>
+#include <tqpainter.h>
+#include <tqcursor.h>
-PMDockSplitter::PMDockSplitter(QWidget *parent, const char *name, Orientation orient, int pos, bool highResolution)
-: QWidget(parent, name)
+PMDockSplitter::PMDockSplitter(TQWidget *parent, const char *name, Orientation orient, int pos, bool highResolution)
+: TQWidget(parent, name)
{
divider = 0L;
child0 = 0L;
@@ -36,7 +36,7 @@ PMDockSplitter::PMDockSplitter(QWidget *parent, const char *name, Orientation or
initialised = false;
}
-void PMDockSplitter::activate(QWidget *c0, QWidget *c1)
+void PMDockSplitter::activate(TQWidget *c0, TQWidget *c1)
{
if ( c0 ) child0 = c0;
if ( c1 ) child1 = c1;
@@ -44,15 +44,15 @@ void PMDockSplitter::activate(QWidget *c0, QWidget *c1)
setupMinMaxSize();
if (divider) delete divider;
- divider = new QFrame(this, "pannerdivider");
- divider->setFrameStyle(QFrame::Panel | QFrame::Raised);
+ divider = new TQFrame(this, "pannerdivider");
+ divider->setFrameStyle(TQFrame::Panel | TQFrame::Raised);
divider->setLineWidth(1);
divider->raise();
if (orientation == Horizontal)
- divider->setCursor(QCursor(sizeVerCursor));
+ divider->setCursor(TQCursor(sizeVerCursor));
else
- divider->setCursor(QCursor(sizeHorCursor));
+ divider->setCursor(TQCursor(sizeHorCursor));
divider->installEventFilter(this);
@@ -112,7 +112,7 @@ int PMDockSplitter::separatorPos() const
return xpos;
}
-void PMDockSplitter::resizeEvent(QResizeEvent *ev)
+void PMDockSplitter::resizeEvent(TQResizeEvent *ev)
{
if (initialised){
int factor = (mHighResolution)? 10000:100;
@@ -165,15 +165,15 @@ int PMDockSplitter::checkValue( int position ) const
return position;
}
-bool PMDockSplitter::eventFilter(QObject *o, QEvent *e)
+bool PMDockSplitter::eventFilter(TQObject *o, TQEvent *e)
{
- QMouseEvent *mev;
+ TQMouseEvent *mev;
bool handled = false;
int factor = (mHighResolution)? 10000:100;
switch (e->type()) {
- case QEvent::MouseMove:
- mev= (QMouseEvent*)e;
+ case TQEvent::MouseMove:
+ mev= (TQMouseEvent*)e;
child0->setUpdatesEnabled(mOpaqueResize);
child1->setUpdatesEnabled(mOpaqueResize);
if (orientation == Horizontal) {
@@ -187,7 +187,7 @@ bool PMDockSplitter::eventFilter(QObject *o, QEvent *e)
}
} else {
if (!mOpaqueResize) {
- int position = checkValue( mapFromGlobal(QCursor::pos()).x() );
+ int position = checkValue( mapFromGlobal(TQCursor::pos()).x() );
divider->move( position, 0 );
} else {
xpos = factor * checkValue( mapFromGlobal( mev->globalPos()).x() ) / width();
@@ -197,10 +197,10 @@ bool PMDockSplitter::eventFilter(QObject *o, QEvent *e)
}
handled= true;
break;
- case QEvent::MouseButtonRelease:
+ case TQEvent::MouseButtonRelease:
child0->setUpdatesEnabled(true);
child1->setUpdatesEnabled(true);
- mev= (QMouseEvent*)e;
+ mev= (TQMouseEvent*)e;
if (orientation == Horizontal){
xpos = factor* checkValue( mapFromGlobal(mev->globalPos()).y() ) / height();
resizeEvent(0);
@@ -215,20 +215,20 @@ bool PMDockSplitter::eventFilter(QObject *o, QEvent *e)
default:
break;
}
- return (handled) ? true : QWidget::eventFilter( o, e );
+ return (handled) ? true : TQWidget::eventFilter( o, e );
}
-bool PMDockSplitter::event( QEvent* e )
+bool PMDockSplitter::event( TQEvent* e )
{
- if ( e->type() == QEvent::LayoutHint ){
+ if ( e->type() == TQEvent::LayoutHint ){
// change children min/max size
setupMinMaxSize();
setSeparatorPos(xpos);
}
- return QWidget::event(e);
+ return TQWidget::event(e);
}
-QWidget* PMDockSplitter::getAnother( QWidget* w ) const
+TQWidget* PMDockSplitter::getAnother( TQWidget* w ) const
{
return ( w == child0 ) ? child1 : child0;
}
@@ -237,7 +237,7 @@ void PMDockSplitter::updateName()
{
if ( !initialised ) return;
- QString new_name = QString( child0->name() ) + "," + child1->name();
+ TQString new_name = TQString( child0->name() ) + "," + child1->name();
parentWidget()->setName( new_name.latin1() );
parentWidget()->setCaption( child0->caption() + "," + child1->caption() );
parentWidget()->repaint( false );
@@ -246,7 +246,7 @@ void PMDockSplitter::updateName()
((PMDockWidget*)parentWidget())->lastName = child1->name();
((PMDockWidget*)parentWidget())->splitterOrientation = orientation;
- QWidget* p = parentWidget()->parentWidget();
+ TQWidget* p = parentWidget()->parentWidget();
if ( p != 0L && p->inherits("PMDockSplitter" ) )
((PMDockSplitter*)p)->updateName();
}
@@ -288,8 +288,8 @@ bool PMDockSplitter::highResolution() const
/*************************************************************************/
-PMDockButton_Private::PMDockButton_Private( QWidget *parent, const char * name )
-:QPushButton( parent, name )
+PMDockButton_Private::PMDockButton_Private( TQWidget *parent, const char * name )
+:TQPushButton( parent, name )
{
moveMouse = false;
setFocusPolicy( NoFocus );
@@ -299,9 +299,9 @@ PMDockButton_Private::~PMDockButton_Private()
{
}
-void PMDockButton_Private::drawButton( QPainter* p )
+void PMDockButton_Private::drawButton( TQPainter* p )
{
- p->fillRect( 0,0, width(), height(), QBrush(colorGroup().brush(QColorGroup::Background)) );
+ p->fillRect( 0,0, width(), height(), TQBrush(colorGroup().brush(TQColorGroup::Background)) );
p->drawPixmap( (width() - pixmap()->width()) / 2, (height() - pixmap()->height()) / 2, *pixmap() );
if ( moveMouse && !isDown() ){
p->setPen( white );
@@ -325,13 +325,13 @@ void PMDockButton_Private::drawButton( QPainter* p )
}
}
-void PMDockButton_Private::enterEvent( QEvent * )
+void PMDockButton_Private::enterEvent( TQEvent * )
{
moveMouse = true;
repaint();
}
-void PMDockButton_Private::leaveEvent( QEvent * )
+void PMDockButton_Private::leaveEvent( TQEvent * )
{
moveMouse = false;
repaint();
@@ -339,7 +339,7 @@ void PMDockButton_Private::leaveEvent( QEvent * )
/*************************************************************************/
PMDockWidgetPrivate::PMDockWidgetPrivate()
- : QObject()
+ : TQObject()
,index(-1)
,splitPosInPercent(50)
,pendingFocusInEvent(false)
@@ -357,11 +357,11 @@ PMDockWidgetPrivate::~PMDockWidgetPrivate()
{
}
-void PMDockWidgetPrivate::slotFocusEmbeddedWidget(QWidget* w)
+void PMDockWidgetPrivate::slotFocusEmbeddedWidget(TQWidget* w)
{
if (w) {
- QWidget* embeddedWdg = ((PMDockWidget*)w)->getWidget();
- if (embeddedWdg && ((embeddedWdg->focusPolicy() == QWidget::ClickFocus) || (embeddedWdg->focusPolicy() == QWidget::StrongFocus))) {
+ TQWidget* embeddedWdg = ((PMDockWidget*)w)->getWidget();
+ if (embeddedWdg && ((embeddedWdg->focusPolicy() == TQWidget::ClickFocus) || (embeddedWdg->focusPolicy() == TQWidget::StrongFocus))) {
embeddedWdg->setFocus();
}
}
diff --git a/kpovmodeler/pmdockwidget_private.h b/kpovmodeler/pmdockwidget_private.h
index 353eb390..efd8cd14 100644
--- a/kpovmodeler/pmdockwidget_private.h
+++ b/kpovmodeler/pmdockwidget_private.h
@@ -24,17 +24,17 @@
#ifndef KDOCKWIDGET_PRIVATE_H
#define KDOCKWIDGET_PRIVATE_H
-#include <qwidget.h>
-#include <qpushbutton.h>
+#include <tqwidget.h>
+#include <tqpushbutton.h>
#ifndef NO_KDE2
#include <netwm_def.h>
#endif
-class QFrame;
+class TQFrame;
/**
- * Like QSplitter but specially designed for dockwidgets stuff.
+ * Like TQSplitter but specially designed for dockwidgets stuff.
* @internal
*
* @author Max Judin.
@@ -43,21 +43,21 @@ class PMDockSplitter : public QWidget
{
Q_OBJECT
public:
- PMDockSplitter(QWidget *parent= 0, const char *name= 0, Orientation orient= Vertical, int pos= 50, bool highResolution=false);
+ PMDockSplitter(TQWidget *parent= 0, const char *name= 0, Orientation orient= Vertical, int pos= 50, bool highResolution=false);
virtual ~PMDockSplitter(){};
- void activate(QWidget *c0, QWidget *c1 = 0L);
+ void activate(TQWidget *c0, TQWidget *c1 = 0L);
void deactivate();
int separatorPos() const;
void setSeparatorPos(int pos, bool do_resize = true);
- virtual bool eventFilter(QObject *, QEvent *);
- virtual bool event( QEvent * );
+ virtual bool eventFilter(TQObject *, TQEvent *);
+ virtual bool event( TQEvent * );
- QWidget* getFirst() const { return child0; }
- QWidget* getLast() const { return child1; }
- QWidget* getAnother( QWidget* ) const;
+ TQWidget* getFirst() const { return child0; }
+ TQWidget* getLast() const { return child1; }
+ TQWidget* getAnother( TQWidget* ) const;
void updateName();
void setOpaqueResize(bool b=true);
@@ -74,15 +74,15 @@ public:
protected:
int checkValue( int ) const;
- virtual void resizeEvent(QResizeEvent *);
+ virtual void resizeEvent(TQResizeEvent *);
private:
void setupMinMaxSize();
- QWidget *child0, *child1;
+ TQWidget *child0, *child1;
Orientation orientation;
bool initialised;
- QFrame* divider;
+ TQFrame* divider;
int xpos;
bool mOpaqueResize, mKeepSize, mHighResolution;
};
@@ -97,13 +97,13 @@ class PMDockButton_Private : public QPushButton
{
Q_OBJECT
public:
- PMDockButton_Private( QWidget *parent=0, const char *name=0 );
+ PMDockButton_Private( TQWidget *parent=0, const char *name=0 );
~PMDockButton_Private();
protected:
- virtual void drawButton( QPainter * );
- virtual void enterEvent( QEvent * );
- virtual void leaveEvent( QEvent * );
+ virtual void drawButton( TQPainter * );
+ virtual void enterEvent( TQEvent * );
+ virtual void leaveEvent( TQEvent * );
private:
bool moveMouse;
@@ -123,7 +123,7 @@ public slots:
/**
* Especially used for Tab page docking. Switching the pages requires additional setFocus() for the embedded widget.
*/
- void slotFocusEmbeddedWidget(QWidget* w = 0L);
+ void slotFocusEmbeddedWidget(TQWidget* w = 0L);
public:
int index;
@@ -135,7 +135,7 @@ public:
NET::WindowType windowType;
#endif
- QWidget *_parent;
+ TQWidget *_parent;
bool transient;
};
diff --git a/kpovmodeler/pmdocumentationmap.cpp b/kpovmodeler/pmdocumentationmap.cpp
index 9c898c4c..df2bf620 100644
--- a/kpovmodeler/pmdocumentationmap.cpp
+++ b/kpovmodeler/pmdocumentationmap.cpp
@@ -20,35 +20,35 @@
#include <kconfig.h>
#include <kstandarddirs.h>
-#include <qfile.h>
-#include <qdom.h>
+#include <tqfile.h>
+#include <tqdom.h>
#include "pmdebug.h"
PMDocumentationMap* PMDocumentationMap::s_pInstance = 0;
KStaticDeleter<PMDocumentationMap> PMDocumentationMap::s_staticDeleter;
-QString PMDocumentationVersion::documentation( const QString& className ) const
+TQString PMDocumentationVersion::documentation( const TQString& className ) const
{
if( m_map.contains( className ) )
return m_map[className];
return m_index;
}
-void PMDocumentationVersion::loadData( QDomElement& e )
+void PMDocumentationVersion::loadData( TQDomElement& e )
{
- QString className;
- QString target;
+ TQString className;
+ TQString target;
m_version = e.attribute( "number", "3.1" );
m_index = e.attribute( "index", "index.htm" );
- QDomNode m = e.firstChild( );
+ TQDomNode m = e.firstChild( );
while( !m.isNull( ) )
{
if( m.isElement( ) )
{
- QDomElement me = m.toElement( );
+ TQDomElement me = m.toElement( );
className = me.attribute( "className", "" );
target = me.attribute( "target", "" );
if( !className.isEmpty( ) && !target.isEmpty( ) )
@@ -84,20 +84,20 @@ void PMDocumentationMap::restoreConfig( KConfig* cfg )
m_currentVersion = cfg->readEntry( "DocumentationVersion", "3.1" );
}
-void PMDocumentationMap::setDocumentationVersion( const QString& v )
+void PMDocumentationMap::setDocumentationVersion( const TQString& v )
{
m_currentVersion = v;
if( m_mapLoaded )
findVersion( );
}
-QValueList<QString> PMDocumentationMap::availableVersions( )
+TQValueList<TQString> PMDocumentationMap::availableVersions( )
{
if( !m_mapLoaded )
loadMap( );
- QValueList<QString> result;
- QPtrListIterator<PMDocumentationVersion> it( m_maps );
+ TQValueList<TQString> result;
+ TQPtrListIterator<PMDocumentationVersion> it( m_maps );
for( ; it.current( ); ++it )
result.push_back( it.current( )->version( ) );
@@ -105,15 +105,15 @@ QValueList<QString> PMDocumentationMap::availableVersions( )
return result;
}
-QString PMDocumentationMap::documentation( const QString& objectName )
+TQString PMDocumentationMap::documentation( const TQString& objectName )
{
if( !m_mapLoaded )
loadMap( );
- QString url;
+ TQString url;
if( !m_documentationPath.isEmpty( ) )
- if( !m_documentationPath.endsWith( QString( "/" ) ) )
+ if( !m_documentationPath.endsWith( TQString( "/" ) ) )
m_documentationPath += "/";
if( !m_documentationPath.isEmpty( ) && m_pCurrentVersion )
@@ -129,14 +129,14 @@ void PMDocumentationMap::loadMap( )
{
m_mapLoaded = true;
- QString fileName = locate( "data", "kpovmodeler/povraydocmap.xml" );
+ TQString fileName = locate( "data", "kpovmodeler/povraydocmap.xml" );
if( fileName.isEmpty( ) )
{
kdError( PMArea ) << "Povray documentation map not found" << endl;
return;
}
- QFile file( fileName );
+ TQFile file( fileName );
if( !file.open( IO_ReadOnly ) )
{
kdError( PMArea ) << "Could not open the povray documentation map file"
@@ -144,19 +144,19 @@ void PMDocumentationMap::loadMap( )
return;
}
- QDomDocument doc( "DOCMAP" );
+ TQDomDocument doc( "DOCMAP" );
doc.setContent( &file );
- QDomElement e = doc.documentElement( );
- QDomNode c = e.firstChild( );
+ TQDomElement e = doc.documentElement( );
+ TQDomNode c = e.firstChild( );
- QString str;
+ TQString str;
while( !c.isNull( ) )
{
if( c.isElement( ) )
{
- QDomElement ce = c.toElement( );
+ TQDomElement ce = c.toElement( );
PMDocumentationVersion* v = new PMDocumentationVersion( );
m_maps.append( v );
v->loadData( ce );
@@ -170,7 +170,7 @@ void PMDocumentationMap::loadMap( )
void PMDocumentationMap::findVersion( )
{
- QPtrListIterator< PMDocumentationVersion > it( m_maps );
+ TQPtrListIterator< PMDocumentationVersion > it( m_maps );
bool found = false;
m_pCurrentVersion = 0;
diff --git a/kpovmodeler/pmdocumentationmap.h b/kpovmodeler/pmdocumentationmap.h
index 3027095c..19654089 100644
--- a/kpovmodeler/pmdocumentationmap.h
+++ b/kpovmodeler/pmdocumentationmap.h
@@ -23,14 +23,14 @@
#include <config.h>
#endif
-#include <qstring.h>
-#include <qmap.h>
-#include <qptrlist.h>
-#include <qvaluelist.h>
+#include <tqstring.h>
+#include <tqmap.h>
+#include <tqptrlist.h>
+#include <tqvaluelist.h>
#include <kstaticdeleter.h>
class KConfig;
-class QDomElement;
+class TQDomElement;
/**
* Class used internally by @ref PMDocumentationMap
@@ -47,19 +47,19 @@ public:
*/
~PMDocumentationVersion( ) { }
- QString version( ) const { return m_version; }
- void setVersion( const QString& str ) { m_version = str; }
- QString index( ) const { return m_index; }
- void setIndex( const QString& str ) { m_index = str; }
+ TQString version( ) const { return m_version; }
+ void setVersion( const TQString& str ) { m_version = str; }
+ TQString index( ) const { return m_index; }
+ void setIndex( const TQString& str ) { m_index = str; }
- QString documentation( const QString& className ) const;
+ TQString documentation( const TQString& className ) const;
- void loadData( QDomElement& e );
+ void loadData( TQDomElement& e );
private:
- QString m_version;
- QString m_index;
- QMap< QString, QString > m_map;
+ TQString m_version;
+ TQString m_index;
+ TQMap< TQString, TQString > m_map;
};
/**
@@ -81,14 +81,14 @@ public:
/**
* Sets the path to the povray user documentation
*/
- void setPovrayDocumentationPath( const QString& s )
+ void setPovrayDocumentationPath( const TQString& s )
{
m_documentationPath = s;
}
/**
* Returns the path to the povray user documentation
*/
- QString povrayDocumentationPath( )
+ TQString povrayDocumentationPath( )
{
return m_documentationPath;
}
@@ -96,22 +96,22 @@ public:
/**
* Sets the povray documentation version
*/
- void setDocumentationVersion( const QString& str );
+ void setDocumentationVersion( const TQString& str );
/**
* Returns the povray documentation version
*/
- QString documentationVersion( ) const { return m_currentVersion; }
+ TQString documentationVersion( ) const { return m_currentVersion; }
/**
* Returns the list of available documentation versions
*/
- QValueList<QString> availableVersions( );
+ TQValueList<TQString> availableVersions( );
/**
* Returns the povray documentation file for the
* given object type
*/
- QString documentation( const QString& objectName );
+ TQString documentation( const TQString& objectName );
void saveConfig( KConfig* cfg );
void restoreConfig( KConfig* cfg );
@@ -125,11 +125,11 @@ private:
void loadMap( );
void findVersion( );
- QString m_documentationPath;
+ TQString m_documentationPath;
bool m_mapLoaded;
- QPtrList< PMDocumentationVersion > m_maps;
+ TQPtrList< PMDocumentationVersion > m_maps;
PMDocumentationVersion* m_pCurrentVersion;
- QString m_currentVersion;
+ TQString m_currentVersion;
static PMDocumentationMap* s_pInstance;
static KStaticDeleter<PMDocumentationMap> s_staticDeleter;
diff --git a/kpovmodeler/pmdragwidget.cpp b/kpovmodeler/pmdragwidget.cpp
index 7b63baf5..bc097c46 100644
--- a/kpovmodeler/pmdragwidget.cpp
+++ b/kpovmodeler/pmdragwidget.cpp
@@ -17,23 +17,23 @@
#include "pmdragwidget.h"
-PMDragWidget::PMDragWidget( QWidget* parent, const char* name, WFlags f )
- : QWidget( parent, name, f )
+PMDragWidget::PMDragWidget( TQWidget* parent, const char* name, WFlags f )
+ : TQWidget( parent, name, f )
{
dragging = false;
}
-void PMDragWidget::mousePressEvent( QMouseEvent* )
+void PMDragWidget::mousePressEvent( TQMouseEvent* )
{
dragging = true;
}
-void PMDragWidget::mouseReleaseEvent( QMouseEvent* )
+void PMDragWidget::mouseReleaseEvent( TQMouseEvent* )
{
dragging = false;
}
-void PMDragWidget::mouseMoveEvent( QMouseEvent* )
+void PMDragWidget::mouseMoveEvent( TQMouseEvent* )
{
if( dragging )
{
diff --git a/kpovmodeler/pmdragwidget.h b/kpovmodeler/pmdragwidget.h
index 30b15045..10c30e16 100644
--- a/kpovmodeler/pmdragwidget.h
+++ b/kpovmodeler/pmdragwidget.h
@@ -22,8 +22,8 @@
#include <config.h>
#endif
-#include <qwidget.h>
-#include <qstring.h>
+#include <tqwidget.h>
+#include <tqstring.h>
/**
* This class implements a widget that exposes a signal for drag
@@ -35,14 +35,14 @@ class PMDragWidget : public QWidget
{
Q_OBJECT
public:
- PMDragWidget( QWidget* parent = 0, const char* name = 0, WFlags f = 0 );
+ PMDragWidget( TQWidget* parent = 0, const char* name = 0, WFlags f = 0 );
virtual void startDrag( );
protected:
- void mousePressEvent( QMouseEvent* );
- void mouseReleaseEvent( QMouseEvent* );
- void mouseMoveEvent( QMouseEvent* );
+ void mousePressEvent( TQMouseEvent* );
+ void mouseReleaseEvent( TQMouseEvent* );
+ void mouseMoveEvent( TQMouseEvent* );
private:
bool dragging;
diff --git a/kpovmodeler/pmenumproperty.cpp b/kpovmodeler/pmenumproperty.cpp
index 72a03788..f82579ad 100644
--- a/kpovmodeler/pmenumproperty.cpp
+++ b/kpovmodeler/pmenumproperty.cpp
@@ -23,15 +23,15 @@ PMEnumProperty::PMEnumProperty( const char* name, bool readOnly,
{
}
-void PMEnumProperty::addEnumValue( const QString& str, int value )
+void PMEnumProperty::addEnumValue( const TQString& str, int value )
{
m_valueMap[value] = str;
m_stringMap[str] = value;
}
-QStringList PMEnumProperty::enumValues( ) const
+TQStringList PMEnumProperty::enumValues( ) const
{
- QStringList l;
+ TQStringList l;
PMEnumStringValueMap::const_iterator it;
for( it = m_stringMap.begin( ); it != m_stringMap.end( ); ++it )
l.append( it.key( ) );
@@ -52,6 +52,6 @@ PMVariant PMEnumProperty::getProtected( const PMObject* obj )
int v = getEnum( obj );
PMEnumValueStringMap::const_iterator it = m_valueMap.find( v );
if( it == m_valueMap.end( ) )
- return PMVariant( QString::null );
+ return PMVariant( TQString::null );
return it.data( );
}
diff --git a/kpovmodeler/pmenumproperty.h b/kpovmodeler/pmenumproperty.h
index a8d6085e..0de2efb3 100644
--- a/kpovmodeler/pmenumproperty.h
+++ b/kpovmodeler/pmenumproperty.h
@@ -20,10 +20,10 @@
#define PMENUMPROPERTY_H
#include "pmmetaobject.h"
-#include <qmap.h>
+#include <tqmap.h>
-typedef QMap<int, QString> PMEnumValueStringMap;
-typedef QMap<QString, int> PMEnumStringValueMap;
+typedef TQMap<int, TQString> PMEnumValueStringMap;
+typedef TQMap<TQString, int> PMEnumStringValueMap;
/**
* Base class for enum properties
@@ -41,7 +41,7 @@ public:
* Adds the string to the list of enum values and sets the enum flag
* to true
*/
- void addEnumValue( const QString& str, int value );
+ void addEnumValue( const TQString& str, int value );
/**
* Returns true if the property is an enum
@@ -50,7 +50,7 @@ public:
/**
* Returns the list of enum values
*/
- virtual QStringList enumValues( ) const;
+ virtual TQStringList enumValues( ) const;
protected:
/**
diff --git a/kpovmodeler/pmerrordialog.cpp b/kpovmodeler/pmerrordialog.cpp
index 721cd302..eb920fb0 100644
--- a/kpovmodeler/pmerrordialog.cpp
+++ b/kpovmodeler/pmerrordialog.cpp
@@ -20,24 +20,24 @@
#include "pmerrorflags.h"
#include <klocale.h>
-#include <qlabel.h>
-#include <qtextedit.h>
+#include <tqlabel.h>
+#include <tqtextedit.h>
#include <kconfig.h>
-QSize PMErrorDialog::s_size = QSize( 150, 200 );
+TQSize PMErrorDialog::s_size = TQSize( 150, 200 );
PMErrorDialog::PMErrorDialog( const PMMessageList& messages, int errorFlags,
- QWidget* parent, const char* name )
+ TQWidget* parent, const char* name )
: KDialogBase( parent, name, true, i18n( "Messages" ),
Ok | Cancel, Cancel )
{
- QVBox* page = makeVBoxMainWidget( );
- QLabel* text = new QLabel( QString( "" ), ( QWidget* )page );
+ TQVBox* page = makeVBoxMainWidget( );
+ TQLabel* text = new TQLabel( TQString( "" ), ( TQWidget* )page );
- m_pTextView = new QTextEdit( ( QWidget* )page );
+ m_pTextView = new TQTextEdit( ( TQWidget* )page );
m_pTextView->setReadOnly( true );
m_messageDict.setAutoDelete( true );
@@ -47,16 +47,16 @@ PMErrorDialog::PMErrorDialog( const PMMessageList& messages, int errorFlags,
for( it = messages.begin( ); it != messages.end( ); ++it )
m_messages.append( new PMMessage( *it ) );
- QPtrListIterator<PMMessage> pit( m_messages );
+ TQPtrListIterator<PMMessage> pit( m_messages );
for( ; pit.current( ); ++pit )
{
PMObject* obj = pit.current( )->linkedObject( );
for( ; obj; obj = obj->parent( ) )
{
- QPtrList<PMMessage>* pList = m_messageDict.find( obj );
+ TQPtrList<PMMessage>* pList = m_messageDict.find( obj );
if( !pList )
{
- pList = new QPtrList<PMMessage>;
+ pList = new TQPtrList<PMMessage>;
m_messageDict.insert( obj, pList );
}
pList->append( pit.current( ) );
@@ -95,15 +95,15 @@ PMErrorDialog::PMErrorDialog( const PMMessageList& messages, int errorFlags,
if( errorFlags & PMEFatal )
showButtonOK( false );
else
- new QLabel( i18n( "Still try to proceed?" ), ( QWidget* )page );
+ new TQLabel( i18n( "Still try to proceed?" ), ( TQWidget* )page );
resize( s_size );
}
void PMErrorDialog::displayMessages( )
{
- QPtrListIterator<PMMessage> pit( m_messages );
- QString text;
+ TQPtrListIterator<PMMessage> pit( m_messages );
+ TQString text;
text = "<qt>\n";
@@ -125,11 +125,11 @@ void PMErrorDialog::restoreConfig( KConfig* cfg )
{
cfg->setGroup( "Appearance" );
- QSize defaultSize( 150, 200 );
+ TQSize defaultSize( 150, 200 );
s_size = cfg->readSizeEntry( "ErrorDialogSize", &defaultSize );
}
-void PMErrorDialog::resizeEvent( QResizeEvent* ev )
+void PMErrorDialog::resizeEvent( TQResizeEvent* ev )
{
s_size = ev->size( );
}
diff --git a/kpovmodeler/pmerrordialog.h b/kpovmodeler/pmerrordialog.h
index 972d55ab..93981eab 100644
--- a/kpovmodeler/pmerrordialog.h
+++ b/kpovmodeler/pmerrordialog.h
@@ -25,12 +25,12 @@
#endif
#include <kdialogbase.h>
-#include <qvaluelist.h>
-#include <qptrdict.h>
-#include <qptrlist.h>
+#include <tqvaluelist.h>
+#include <tqptrdict.h>
+#include <tqptrlist.h>
class KConfig;
-class QTextEdit;
+class TQTextEdit;
class PMObject;
#include "pmmessage.h"
@@ -49,25 +49,25 @@ public:
* messages is the message list. If the list contains a message of type
* FatalError, the 'Proceed" button will not be shown.
*
- * PMErrorDialog::exec( ) returns QDialog::Accepted if the command
+ * PMErrorDialog::exec( ) returns TQDialog::Accepted if the command
* should be continued.
*/
PMErrorDialog( const PMMessageList& messages, int errorFlags,
- QWidget* parent = 0, const char* name = 0 );
+ TQWidget* parent = 0, const char* name = 0 );
static void saveConfig( KConfig* cfg );
static void restoreConfig( KConfig* cfg );
protected:
- virtual void resizeEvent( QResizeEvent* ev );
+ virtual void resizeEvent( TQResizeEvent* ev );
private:
void displayMessages( );
- static QSize s_size;
- QTextEdit* m_pTextView;
- QPtrDict< QPtrList<PMMessage> > m_messageDict;
- QPtrList<PMMessage> m_messages;
+ static TQSize s_size;
+ TQTextEdit* m_pTextView;
+ TQPtrDict< TQPtrList<PMMessage> > m_messageDict;
+ TQPtrList<PMMessage> m_messages;
};
#endif
diff --git a/kpovmodeler/pmface.h b/kpovmodeler/pmface.h
index 46da64bb..a93a4636 100644
--- a/kpovmodeler/pmface.h
+++ b/kpovmodeler/pmface.h
@@ -18,8 +18,8 @@
#ifndef PMFACE_H
#define PMFACE_H
-#include <qptrlist.h>
-#include <qvaluevector.h>
+#include <tqptrlist.h>
+#include <tqvaluevector.h>
#include <GL/gl.h>
#include "pmdebug.h"
#include "pmvector.h"
@@ -117,7 +117,7 @@ private:
static GLuint s_dummy;
};
-typedef QPtrListIterator<PMFace> PMFaceListIterator;
+typedef TQPtrListIterator<PMFace> PMFaceListIterator;
/**
* A list of @ref PMFace objects.
@@ -125,6 +125,6 @@ typedef QPtrListIterator<PMFace> PMFaceListIterator;
* This class stores all faces of a @ref PMViewStructure. Only the indices
* in a @ref PMPointArray are stored.
*/
-typedef QValueVector<PMFace> PMFaceArray;
+typedef TQValueVector<PMFace> PMFaceArray;
#endif
diff --git a/kpovmodeler/pmfactory.cpp b/kpovmodeler/pmfactory.cpp
index 4a3631ae..488db1ce 100644
--- a/kpovmodeler/pmfactory.cpp
+++ b/kpovmodeler/pmfactory.cpp
@@ -54,11 +54,11 @@ PMFactory::~PMFactory( )
s_aboutData = 0L;
}
-KParts::Part* PMFactory::createPartObject( QWidget* parentWidget,
+KParts::Part* PMFactory::createPartObject( TQWidget* parentWidget,
const char* widgetName,
- QObject* parent, const char* name,
+ TQObject* parent, const char* name,
const char* classname,
- const QStringList& /*args*/ )
+ const TQStringList& /*args*/ )
{
kdDebug( ) << "PMFactory: Created new part\n";
diff --git a/kpovmodeler/pmfactory.h b/kpovmodeler/pmfactory.h
index b44c6bd3..56797935 100644
--- a/kpovmodeler/pmfactory.h
+++ b/kpovmodeler/pmfactory.h
@@ -32,11 +32,11 @@ public:
PMFactory( );
virtual ~PMFactory( );
- virtual KParts::Part* createPartObject( QWidget* parentWidget,
+ virtual KParts::Part* createPartObject( TQWidget* parentWidget,
const char* widgetName,
- QObject* parent, const char* name,
+ TQObject* parent, const char* name,
const char* classname,
- const QStringList& args );
+ const TQStringList& args );
static KInstance* instance( );
static const KAboutData* aboutData( );
diff --git a/kpovmodeler/pmfiledialog.cpp b/kpovmodeler/pmfiledialog.cpp
index 68030f8c..d8da0f4d 100644
--- a/kpovmodeler/pmfiledialog.cpp
+++ b/kpovmodeler/pmfiledialog.cpp
@@ -22,26 +22,26 @@
#include <kfilefiltercombo.h>
-PMFileDialog::PMFileDialog( const QString& startDir, const QString& filter, QWidget* parent, const char* name, bool modal )
+PMFileDialog::PMFileDialog( const TQString& startDir, const TQString& filter, TQWidget* parent, const char* name, bool modal )
: KFileDialog( startDir, filter, parent, name, modal )
{
}
-QString PMFileDialog::getImportFileName( QWidget* parent, PMPart* part,
+TQString PMFileDialog::getImportFileName( TQWidget* parent, PMPart* part,
PMIOFormat*& format )
{
PMIOManager* manager = part->ioManager( );
- QString filter;
- QPtrListIterator<PMIOFormat> it( manager->formats( ) );
- QPtrList<PMIOFormat> formats;
+ TQString filter;
+ TQPtrListIterator<PMIOFormat> it( manager->formats( ) );
+ TQPtrList<PMIOFormat> formats;
for( ; it.current( ); ++it )
{
if( it.current( )->services( ) & PMIOFormat::Import )
{
- QStringList patterns = it.current( )->importPatterns( );
- QStringList::Iterator pit;
+ TQStringList patterns = it.current( )->importPatterns( );
+ TQStringList::Iterator pit;
for( pit = patterns.begin( ); pit != patterns.end( ); ++pit )
{
if( !filter.isEmpty( ) )
@@ -52,7 +52,7 @@ QString PMFileDialog::getImportFileName( QWidget* parent, PMPart* part,
}
}
- PMFileDialog dlg( QString::null, filter, parent, "import file dialog", true );
+ PMFileDialog dlg( TQString::null, filter, parent, "import file dialog", true );
dlg.setOperationMode( Opening );
dlg.setMode( KFile::File | KFile::LocalOnly );
dlg.setCaption( i18n( "Import" ) );
@@ -64,20 +64,20 @@ QString PMFileDialog::getImportFileName( QWidget* parent, PMPart* part,
return dlg.selectedFile( );
}
-QString PMFileDialog::getExportFileName( QWidget* parent, PMPart* part,
- PMIOFormat*& format, QString& selectedFilter )
+TQString PMFileDialog::getExportFileName( TQWidget* parent, PMPart* part,
+ PMIOFormat*& format, TQString& selectedFilter )
{
PMIOManager* manager = part->ioManager( );
- QString filter;
- QPtrListIterator<PMIOFormat> it( manager->formats( ) );
- QPtrList<PMIOFormat> formats;
+ TQString filter;
+ TQPtrListIterator<PMIOFormat> it( manager->formats( ) );
+ TQPtrList<PMIOFormat> formats;
for( ; it.current( ); ++it )
{
if( it.current( )->services( ) & PMIOFormat::Export )
{
- QStringList patterns = it.current( )->exportPatterns( );
- QStringList::Iterator pit;
+ TQStringList patterns = it.current( )->exportPatterns( );
+ TQStringList::Iterator pit;
for( pit = patterns.begin( ); pit != patterns.end( ); ++pit )
{
if( !filter.isEmpty( ) )
@@ -88,7 +88,7 @@ QString PMFileDialog::getExportFileName( QWidget* parent, PMPart* part,
}
}
- PMFileDialog dlg( QString::null, filter, parent, "export file dialog", true );
+ PMFileDialog dlg( TQString::null, filter, parent, "export file dialog", true );
dlg.setOperationMode( Saving );
dlg.setMode( KFile::File | KFile::LocalOnly );
dlg.setCaption( i18n( "Export" ) );
diff --git a/kpovmodeler/pmfiledialog.h b/kpovmodeler/pmfiledialog.h
index e98a84ab..7843b73d 100644
--- a/kpovmodeler/pmfiledialog.h
+++ b/kpovmodeler/pmfiledialog.h
@@ -43,18 +43,18 @@ public:
* Default constructor, use the static methods
* @ref getImportFileName or @ref getExportFileName instead
*/
- PMFileDialog( const QString& startDir, const QString& filter, QWidget* parent, const char* name, bool modal );
+ PMFileDialog( const TQString& startDir, const TQString& filter, TQWidget* parent, const char* name, bool modal );
/**
* Opens a modal file dialog and returns a selected file and the chosen
* file format.
*/
- static QString getImportFileName( QWidget* parent, PMPart* part, PMIOFormat*& format );
+ static TQString getImportFileName( TQWidget* parent, PMPart* part, PMIOFormat*& format );
/**
* Opens a modal file dialog and returns a selected file and the chosen
* file format and filter.
*/
- static QString getExportFileName( QWidget* parent, PMPart* part,
- PMIOFormat*& format, QString& filter );
+ static TQString getExportFileName( TQWidget* parent, PMPart* part,
+ PMIOFormat*& format, TQString& filter );
};
#endif
diff --git a/kpovmodeler/pmfinish.cpp b/kpovmodeler/pmfinish.cpp
index a98b9a2c..52bd92c8 100644
--- a/kpovmodeler/pmfinish.cpp
+++ b/kpovmodeler/pmfinish.cpp
@@ -214,12 +214,12 @@ void PMFinish::cleanUp( ) const
Base::cleanUp( );
}
-QString PMFinish::description( ) const
+TQString PMFinish::description( ) const
{
return i18n( "finish" );
}
-void PMFinish::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMFinish::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
Base::serialize( e, doc );
e.setAttribute( "enable_ambient", m_enableAmbient );
@@ -637,7 +637,7 @@ void PMFinish::setIridTurbulence( double c )
}
}
-PMDialogEditBase* PMFinish::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMFinish::editWidget( TQWidget* parent ) const
{
return new PMFinishEdit( parent );
}
diff --git a/kpovmodeler/pmfinish.h b/kpovmodeler/pmfinish.h
index 072a0f7c..c12f31b1 100644
--- a/kpovmodeler/pmfinish.h
+++ b/kpovmodeler/pmfinish.h
@@ -50,7 +50,7 @@ public:
/** */
virtual PMObject* copy( ) const { return new PMFinish( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
@@ -58,16 +58,16 @@ public:
virtual void cleanUp( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMFinishEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/** */
- virtual QString pixmap( ) const { return QString( "pmfinish" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmfinish" ); }
/** */
virtual void restoreMemento( PMMemento* s );
diff --git a/kpovmodeler/pmfinishedit.cpp b/kpovmodeler/pmfinishedit.cpp
index 809cbd66..38766f94 100644
--- a/kpovmodeler/pmfinishedit.cpp
+++ b/kpovmodeler/pmfinishedit.cpp
@@ -21,15 +21,15 @@
#include "pmlineedits.h"
#include "pmcoloredit.h"
-#include <qwidget.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
+#include <tqwidget.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
#include <klocale.h>
#include <kdialog.h>
-PMFinishEdit::PMFinishEdit( QWidget* parent, const char* name )
+PMFinishEdit::PMFinishEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -37,44 +37,44 @@ PMFinishEdit::PMFinishEdit( QWidget* parent, const char* name )
void PMFinishEdit::createTopWidgets( )
{
- QHBoxLayout* hl;
+ TQHBoxLayout* hl;
Base::createTopWidgets( );
- hl = new QHBoxLayout( topLayout( ) );
- QGridLayout* layout = new QGridLayout( hl, 2, 2 );
- m_pEnableAmbientEdit = new QCheckBox( i18n( "Ambient color" ), this );
- m_pAmbientColorLabel = new QLabel( i18n( "Color:" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ TQGridLayout* layout = new TQGridLayout( hl, 2, 2 );
+ m_pEnableAmbientEdit = new TQCheckBox( i18n( "Ambient color" ), this );
+ m_pAmbientColorLabel = new TQLabel( i18n( "Color:" ), this );
m_pAmbientColorEdit = new PMColorEdit( true, this );
layout->addMultiCellWidget( m_pEnableAmbientEdit, 0, 0, 0, 1 );
layout->addWidget( m_pAmbientColorLabel, 1, 0, AlignTop );
layout->addWidget( m_pAmbientColorEdit, 1, 1 );
hl->addStretch( 1 );
- hl = new QHBoxLayout( topLayout( ) );
- layout = new QGridLayout( hl, 4, 2 );
- m_pEnableDiffuseEdit = new QCheckBox( i18n( "Diffuse:" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ layout = new TQGridLayout( hl, 4, 2 );
+ m_pEnableDiffuseEdit = new TQCheckBox( i18n( "Diffuse:" ), this );
m_pDiffuseEdit = new PMFloatEdit( this );
layout->addWidget( m_pEnableDiffuseEdit, 0, 0 );
layout->addWidget( m_pDiffuseEdit, 0, 1 );
- m_pEnableBrillianceEdit = new QCheckBox( i18n( "Brilliance:" ), this );
+ m_pEnableBrillianceEdit = new TQCheckBox( i18n( "Brilliance:" ), this );
m_pBrillianceEdit = new PMFloatEdit( this );
layout->addWidget( m_pEnableBrillianceEdit, 1, 0 );
layout->addWidget( m_pBrillianceEdit, 1, 1 );
- m_pEnableCrandEdit = new QCheckBox( i18n( "Crand:" ), this );
+ m_pEnableCrandEdit = new TQCheckBox( i18n( "Crand:" ), this );
m_pCrandEdit = new PMFloatEdit( this );
layout->addWidget( m_pEnableCrandEdit, 2, 0 );
layout->addWidget( m_pCrandEdit, 2, 1 );
- m_pConserveEnergyEdit = new QCheckBox(
+ m_pConserveEnergyEdit = new TQCheckBox(
i18n( "Conserve energy for reflection" ), this );
layout->addMultiCellWidget( m_pConserveEnergyEdit, 3, 3, 0, 1 );
hl->addStretch( 1 );
- hl = new QHBoxLayout( topLayout( ) );
- layout = new QGridLayout( hl, 2, 2 );
- m_pEnablePhongEdit = new QCheckBox( i18n( "Phong:" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ layout = new TQGridLayout( hl, 2, 2 );
+ m_pEnablePhongEdit = new TQCheckBox( i18n( "Phong:" ), this );
m_pPhongEdit = new PMFloatEdit( this );
- m_pEnablePhongSizeEdit = new QCheckBox( i18n( "Phong size:" ), this );
+ m_pEnablePhongSizeEdit = new TQCheckBox( i18n( "Phong size:" ), this );
m_pPhongSizeEdit = new PMFloatEdit( this );
layout->addWidget( m_pEnablePhongEdit, 0, 0 );
layout->addWidget( m_pPhongEdit, 0, 1 );
@@ -82,70 +82,70 @@ void PMFinishEdit::createTopWidgets( )
layout->addWidget( m_pPhongSizeEdit, 1, 1 );
hl->addStretch( 1 );
- hl = new QHBoxLayout( topLayout( ) );
- layout = new QGridLayout( hl, 3, 2 );
- m_pEnableSpecularEdit = new QCheckBox( i18n( "Specular:" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ layout = new TQGridLayout( hl, 3, 2 );
+ m_pEnableSpecularEdit = new TQCheckBox( i18n( "Specular:" ), this );
m_pSpecularEdit = new PMFloatEdit( this );
layout->addWidget( m_pEnableSpecularEdit, 0, 0 );
layout->addWidget( m_pSpecularEdit, 0, 1 );
- m_pEnableRoughnessEdit = new QCheckBox( i18n( "Roughness:" ), this );
+ m_pEnableRoughnessEdit = new TQCheckBox( i18n( "Roughness:" ), this );
m_pRoughnessEdit = new PMFloatEdit( this );
layout->addWidget( m_pEnableRoughnessEdit, 1, 0 );
layout->addWidget( m_pRoughnessEdit, 1, 1 );
- m_pEnableMetallicEdit = new QCheckBox( i18n( "Metallic:" ), this );
+ m_pEnableMetallicEdit = new TQCheckBox( i18n( "Metallic:" ), this );
m_pMetallicEdit = new PMFloatEdit( this );
layout->addWidget( m_pEnableMetallicEdit, 2, 0 );
layout->addWidget( m_pMetallicEdit, 2, 1 );
hl->addStretch( 1 );
- hl = new QHBoxLayout( topLayout( ) );
- layout = new QGridLayout( hl, 6, 2 );
- m_pIridEdit = new QCheckBox( i18n( "Iridiscence" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ layout = new TQGridLayout( hl, 6, 2 );
+ m_pIridEdit = new TQCheckBox( i18n( "Iridiscence" ), this );
layout->addMultiCellWidget( m_pIridEdit, 0, 0, 0, 1 );
- m_pIridAmountLabel = new QLabel( i18n( "Amount:" ), this );
+ m_pIridAmountLabel = new TQLabel( i18n( "Amount:" ), this );
m_pIridAmountEdit = new PMFloatEdit( this );
layout->addWidget( m_pIridAmountLabel, 1, 0 );
layout->addWidget( m_pIridAmountEdit, 1, 1 );
- m_pIridThicknessLabel = new QLabel( i18n( "Thickness:" ), this );
+ m_pIridThicknessLabel = new TQLabel( i18n( "Thickness:" ), this );
m_pIridThicknessEdit = new PMFloatEdit( this );
layout->addWidget( m_pIridThicknessLabel, 2, 0 );
layout->addWidget( m_pIridThicknessEdit, 2, 1 );
m_pIridTurbulenceEdit = new PMFloatEdit( this );
- m_pIridTurbulenceLabel = new QLabel( i18n( "Turbulence:" ), this );
+ m_pIridTurbulenceLabel = new TQLabel( i18n( "Turbulence:" ), this );
layout->addWidget( m_pIridTurbulenceLabel, 3, 0 );
layout->addWidget( m_pIridTurbulenceEdit, 3, 1 );
- m_pEnableReflectionEdit = new QCheckBox( i18n( "Reflection" ), this );
+ m_pEnableReflectionEdit = new TQCheckBox( i18n( "Reflection" ), this );
layout->addMultiCellWidget( m_pEnableReflectionEdit, 4, 4, 0, 1 );
hl->addStretch( 1 );
- m_pReflectionWidget = new QWidget( this );
- QVBoxLayout* vl = new QVBoxLayout( m_pReflectionWidget, 0, KDialog::spacingHint( ) );
- QGridLayout* gl = new QGridLayout( vl, 2, 2 );
- m_pEnableReflectionMinEdit = new QCheckBox( i18n( "Minimum:" ),
+ m_pReflectionWidget = new TQWidget( this );
+ TQVBoxLayout* vl = new TQVBoxLayout( m_pReflectionWidget, 0, KDialog::spacingHint( ) );
+ TQGridLayout* gl = new TQGridLayout( vl, 2, 2 );
+ m_pEnableReflectionMinEdit = new TQCheckBox( i18n( "Minimum:" ),
m_pReflectionWidget );
m_pReflectionMinColorEdit = new PMColorEdit( false, m_pReflectionWidget );
gl->addWidget( m_pEnableReflectionMinEdit, 0, 0, AlignTop );
gl->addWidget( m_pReflectionMinColorEdit, 0, 1 );
- QLabel* label = new QLabel( i18n( "Maximum:" ), m_pReflectionWidget );
+ TQLabel* label = new TQLabel( i18n( "Maximum:" ), m_pReflectionWidget );
m_pReflectionColorEdit = new PMColorEdit( false, m_pReflectionWidget );
gl->addWidget( label, 1, 0, AlignTop );
gl->addWidget( m_pReflectionColorEdit, 1, 1 );
- gl = new QGridLayout( vl, 4, 2 );
- m_pReflectionFresnelEdit = new QCheckBox( i18n( "Fresnel reflectivity" ),
+ gl = new TQGridLayout( vl, 4, 2 );
+ m_pReflectionFresnelEdit = new TQCheckBox( i18n( "Fresnel reflectivity" ),
m_pReflectionWidget );
gl->addMultiCellWidget( m_pReflectionFresnelEdit, 0, 0, 0, 1 );
- m_pEnableRefFalloffEdit = new QCheckBox( i18n( "Falloff:" ),
+ m_pEnableRefFalloffEdit = new TQCheckBox( i18n( "Falloff:" ),
m_pReflectionWidget );
m_pReflectionFalloffEdit = new PMFloatEdit( m_pReflectionWidget );
gl->addWidget( m_pEnableRefFalloffEdit, 1, 0 );
gl->addWidget( m_pReflectionFalloffEdit, 1, 1 );
- m_pEnableRefExponentEdit = new QCheckBox( i18n( "Exponent:" ),
+ m_pEnableRefExponentEdit = new TQCheckBox( i18n( "Exponent:" ),
m_pReflectionWidget );
m_pReflectionExponentEdit = new PMFloatEdit( m_pReflectionWidget );
gl->addWidget( m_pEnableRefExponentEdit, 2, 0 );
gl->addWidget( m_pReflectionExponentEdit, 2, 1 );
- m_pEnableRefMetallicEdit = new QCheckBox( i18n( "Metallic:" ),
+ m_pEnableRefMetallicEdit = new TQCheckBox( i18n( "Metallic:" ),
m_pReflectionWidget );
m_pReflectionMetallicEdit = new PMFloatEdit( m_pReflectionWidget );
gl->addWidget( m_pEnableRefMetallicEdit, 3, 0 );
@@ -154,41 +154,41 @@ void PMFinishEdit::createTopWidgets( )
layout->addMultiCellWidget( m_pReflectionWidget, 5, 5, 0, 1 );
- connect( m_pAmbientColorEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pDiffuseEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pBrillianceEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pCrandEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pConserveEnergyEdit, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pPhongEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pPhongSizeEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pMetallicEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pSpecularEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pRoughnessEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pIridAmountEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pIridThicknessEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pIridTurbulenceEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pIridEdit, SIGNAL( clicked( ) ), SLOT( slotIridClicked( ) ) );
- connect( m_pReflectionColorEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pReflectionMinColorEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pReflectionFresnelEdit, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pReflectionFalloffEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pReflectionExponentEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pReflectionMetallicEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pAmbientColorEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pDiffuseEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pBrillianceEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pCrandEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pConserveEnergyEdit, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pPhongEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pPhongSizeEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pMetallicEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pSpecularEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pRoughnessEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pIridAmountEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pIridThicknessEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pIridTurbulenceEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pIridEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotIridClicked( ) ) );
+ connect( m_pReflectionColorEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pReflectionMinColorEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pReflectionFresnelEdit, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pReflectionFalloffEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pReflectionExponentEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pReflectionMetallicEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
- connect( m_pEnableAmbientEdit, SIGNAL( clicked( ) ), SLOT( slotAmbientClicked( ) ) );
- connect( m_pEnablePhongEdit, SIGNAL( clicked( ) ), SLOT( slotPhongClicked( ) ) );
- connect( m_pEnablePhongSizeEdit, SIGNAL( clicked( ) ), SLOT( slotPhongSizeClicked( ) ) );
- connect( m_pEnableDiffuseEdit, SIGNAL( clicked( ) ), SLOT( slotDiffuseClicked( ) ) );
- connect( m_pEnableBrillianceEdit, SIGNAL( clicked( ) ), SLOT( slotBrillianceClicked( ) ) );
- connect( m_pEnableCrandEdit, SIGNAL( clicked( ) ), SLOT( slotCrandClicked( ) ) );
- connect( m_pEnableSpecularEdit, SIGNAL( clicked( ) ), SLOT( slotSpecularClicked( ) ) );
- connect( m_pEnableRoughnessEdit, SIGNAL( clicked( ) ), SLOT( slotRoughnessClicked( ) ) );
- connect( m_pEnableMetallicEdit, SIGNAL( clicked( ) ), SLOT( slotMetallicClicked( ) ) );
- connect( m_pEnableReflectionEdit, SIGNAL( clicked( ) ), SLOT( slotReflectionClicked( ) ) );
- connect( m_pEnableReflectionMinEdit, SIGNAL( clicked( ) ), SLOT( slotReflectionMinClicked( ) ) );
- connect( m_pEnableRefFalloffEdit, SIGNAL( clicked( ) ), SLOT( slotRefFalloffClicked( ) ) );
- connect( m_pEnableRefExponentEdit, SIGNAL( clicked( ) ), SLOT( slotRefExponentClicked( ) ) );
- connect( m_pEnableRefMetallicEdit, SIGNAL( clicked( ) ), SLOT( slotRefMetallicClicked( ) ) );
+ connect( m_pEnableAmbientEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotAmbientClicked( ) ) );
+ connect( m_pEnablePhongEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotPhongClicked( ) ) );
+ connect( m_pEnablePhongSizeEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotPhongSizeClicked( ) ) );
+ connect( m_pEnableDiffuseEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotDiffuseClicked( ) ) );
+ connect( m_pEnableBrillianceEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotBrillianceClicked( ) ) );
+ connect( m_pEnableCrandEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotCrandClicked( ) ) );
+ connect( m_pEnableSpecularEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotSpecularClicked( ) ) );
+ connect( m_pEnableRoughnessEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotRoughnessClicked( ) ) );
+ connect( m_pEnableMetallicEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotMetallicClicked( ) ) );
+ connect( m_pEnableReflectionEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotReflectionClicked( ) ) );
+ connect( m_pEnableReflectionMinEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotReflectionMinClicked( ) ) );
+ connect( m_pEnableRefFalloffEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotRefFalloffClicked( ) ) );
+ connect( m_pEnableRefExponentEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotRefExponentClicked( ) ) );
+ connect( m_pEnableRefMetallicEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotRefMetallicClicked( ) ) );
}
void PMFinishEdit::displayObject( PMObject* o )
diff --git a/kpovmodeler/pmfinishedit.h b/kpovmodeler/pmfinishedit.h
index 313b35dc..e72aef73 100644
--- a/kpovmodeler/pmfinishedit.h
+++ b/kpovmodeler/pmfinishedit.h
@@ -29,9 +29,9 @@
class PMFinish;
class PMFloatEdit;
class PMColorEdit;
-class QCheckBox;
-class QLabel;
-class QWidget;
+class TQCheckBox;
+class TQLabel;
+class TQWidget;
/**
* Dialog edit class for @ref PMFinish
@@ -44,7 +44,7 @@ public:
/**
* Creates a PMFinishEdit with parent and name
*/
- PMFinishEdit( QWidget* parent, const char* name = 0 );
+ PMFinishEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -77,45 +77,45 @@ protected slots:
private:
PMFinish* m_pDisplayedObject;
PMColorEdit* m_pAmbientColorEdit;
- QLabel* m_pAmbientColorLabel;
+ TQLabel* m_pAmbientColorLabel;
PMFloatEdit* m_pDiffuseEdit;
PMFloatEdit* m_pBrillianceEdit;
PMFloatEdit* m_pCrandEdit;
- QCheckBox* m_pConserveEnergyEdit;
+ TQCheckBox* m_pConserveEnergyEdit;
PMFloatEdit* m_pPhongEdit;
PMFloatEdit* m_pPhongSizeEdit;
PMFloatEdit* m_pMetallicEdit;
PMFloatEdit* m_pSpecularEdit;
PMFloatEdit* m_pRoughnessEdit;
- QCheckBox* m_pIridEdit;
+ TQCheckBox* m_pIridEdit;
PMFloatEdit* m_pIridAmountEdit;
PMFloatEdit* m_pIridThicknessEdit;
PMFloatEdit* m_pIridTurbulenceEdit;
- QLabel* m_pIridAmountLabel;
- QLabel* m_pIridThicknessLabel;
- QLabel* m_pIridTurbulenceLabel;
- QCheckBox* m_pEnableAmbientEdit;
- QCheckBox* m_pEnablePhongEdit;
- QCheckBox* m_pEnablePhongSizeEdit;
- QCheckBox* m_pEnableDiffuseEdit;
- QCheckBox* m_pEnableBrillianceEdit;
- QCheckBox* m_pEnableCrandEdit;
- QCheckBox* m_pEnableSpecularEdit;
- QCheckBox* m_pEnableRoughnessEdit;
- QCheckBox* m_pEnableMetallicEdit;
+ TQLabel* m_pIridAmountLabel;
+ TQLabel* m_pIridThicknessLabel;
+ TQLabel* m_pIridTurbulenceLabel;
+ TQCheckBox* m_pEnableAmbientEdit;
+ TQCheckBox* m_pEnablePhongEdit;
+ TQCheckBox* m_pEnablePhongSizeEdit;
+ TQCheckBox* m_pEnableDiffuseEdit;
+ TQCheckBox* m_pEnableBrillianceEdit;
+ TQCheckBox* m_pEnableCrandEdit;
+ TQCheckBox* m_pEnableSpecularEdit;
+ TQCheckBox* m_pEnableRoughnessEdit;
+ TQCheckBox* m_pEnableMetallicEdit;
- QWidget* m_pReflectionWidget;
+ TQWidget* m_pReflectionWidget;
PMColorEdit* m_pReflectionColorEdit;
PMColorEdit* m_pReflectionMinColorEdit;
- QCheckBox* m_pReflectionFresnelEdit;
+ TQCheckBox* m_pReflectionFresnelEdit;
PMFloatEdit* m_pReflectionFalloffEdit;
PMFloatEdit* m_pReflectionExponentEdit;
PMFloatEdit* m_pReflectionMetallicEdit;
- QCheckBox* m_pEnableReflectionEdit;
- QCheckBox* m_pEnableReflectionMinEdit;
- QCheckBox* m_pEnableRefFalloffEdit;
- QCheckBox* m_pEnableRefExponentEdit;
- QCheckBox* m_pEnableRefMetallicEdit;
+ TQCheckBox* m_pEnableReflectionEdit;
+ TQCheckBox* m_pEnableReflectionMinEdit;
+ TQCheckBox* m_pEnableRefFalloffEdit;
+ TQCheckBox* m_pEnableRefExponentEdit;
+ TQCheckBox* m_pEnableRefMetallicEdit;
};
diff --git a/kpovmodeler/pmfog.cpp b/kpovmodeler/pmfog.cpp
index 5f2f1581..6af4a2cb 100644
--- a/kpovmodeler/pmfog.cpp
+++ b/kpovmodeler/pmfog.cpp
@@ -125,12 +125,12 @@ void PMFog::cleanUp( ) const
Base::cleanUp( );
}
-QString PMFog::description( ) const
+TQString PMFog::description( ) const
{
return i18n( "fog" );
}
-void PMFog::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMFog::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
Base::serialize( e, doc );
e.setAttribute( "fog_type", m_fogType );
@@ -284,7 +284,7 @@ void PMFog::setUp( const PMVector& c )
}
}
-PMDialogEditBase* PMFog::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMFog::editWidget( TQWidget* parent ) const
{
return new PMFogEdit( parent );
}
diff --git a/kpovmodeler/pmfog.h b/kpovmodeler/pmfog.h
index 444fa54a..fc6d7095 100644
--- a/kpovmodeler/pmfog.h
+++ b/kpovmodeler/pmfog.h
@@ -51,7 +51,7 @@ public:
/** */
virtual PMObject* copy( ) const { return new PMFog( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
@@ -59,16 +59,16 @@ public:
virtual void cleanUp( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMFogEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/** */
- virtual QString pixmap( ) const { return QString( "pmfog" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmfog" ); }
/** */
virtual void restoreMemento( PMMemento* s );
diff --git a/kpovmodeler/pmfogedit.cpp b/kpovmodeler/pmfogedit.cpp
index 64cb915e..ec9880c1 100644
--- a/kpovmodeler/pmfogedit.cpp
+++ b/kpovmodeler/pmfogedit.cpp
@@ -22,15 +22,15 @@
#include "pmvectoredit.h"
#include "pmcoloredit.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
#include <klocale.h>
#include <kmessagebox.h>
#include <kdialog.h>
-PMFogEdit::PMFogEdit( QWidget* parent, const char* name )
+PMFogEdit::PMFogEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -38,73 +38,73 @@ PMFogEdit::PMFogEdit( QWidget* parent, const char* name )
void PMFogEdit::createTopWidgets( )
{
- QHBoxLayout* hl;
- QVBoxLayout* vl;
- QGridLayout* gl;
- QLabel* lbl;
+ TQHBoxLayout* hl;
+ TQVBoxLayout* vl;
+ TQGridLayout* gl;
+ TQLabel* lbl;
Base::createTopWidgets( );
- lbl = new QLabel( i18n( "Fog type:" ), this );
- m_pFogTypeEdit = new QComboBox( this );
+ lbl = new TQLabel( i18n( "Fog type:" ), this );
+ m_pFogTypeEdit = new TQComboBox( this );
m_pFogTypeEdit->insertItem( i18n( "Constant" ) );
m_pFogTypeEdit->insertItem( i18n( "Ground" ) );
- hl = new QHBoxLayout( topLayout( ) );
+ hl = new TQHBoxLayout( topLayout( ) );
hl->addWidget( lbl );
hl->addWidget( m_pFogTypeEdit );
hl->addStretch( 1 );
- lbl = new QLabel( i18n( "Distance:" ), this );
+ lbl = new TQLabel( i18n( "Distance:" ), this );
m_pDistance = new PMFloatEdit( this );
- hl = new QHBoxLayout( topLayout( ) );
+ hl = new TQHBoxLayout( topLayout( ) );
hl->addWidget( lbl );
hl->addWidget( m_pDistance );
hl->addStretch( 1 );
- lbl = new QLabel( i18n( "Color:" ), this );
+ lbl = new TQLabel( i18n( "Color:" ), this );
m_pColor = new PMColorEdit( false, this );
- hl = new QHBoxLayout( topLayout( ) );
+ hl = new TQHBoxLayout( topLayout( ) );
hl->addWidget( lbl );
hl->addWidget( m_pColor );
hl->addStretch( 1 );
- m_pTurbulenceCheck = new QCheckBox( i18n( "Turbulence" ), this );
+ m_pTurbulenceCheck = new TQCheckBox( i18n( "Turbulence" ), this );
topLayout( )->addWidget( m_pTurbulenceCheck );
- m_pTurbulenceWidget = new QWidget( this );
- vl = new QVBoxLayout( m_pTurbulenceWidget, 0, KDialog::spacingHint( ) );
- hl = new QHBoxLayout( vl );
- lbl = new QLabel( i18n( "Value: " ), m_pTurbulenceWidget );
+ m_pTurbulenceWidget = new TQWidget( this );
+ vl = new TQVBoxLayout( m_pTurbulenceWidget, 0, KDialog::spacingHint( ) );
+ hl = new TQHBoxLayout( vl );
+ lbl = new TQLabel( i18n( "Value: " ), m_pTurbulenceWidget );
m_pTurbulenceVector = new PMVectorEdit( "x", "y", "z", m_pTurbulenceWidget);
hl->addWidget( lbl );
hl->addWidget( m_pTurbulenceVector );
hl->addStretch( 1 );
- hl = new QHBoxLayout( vl );
- gl = new QGridLayout( hl, 4, 2 );
- lbl = new QLabel( i18n( "Octaves:" ), m_pTurbulenceWidget );
+ hl = new TQHBoxLayout( vl );
+ gl = new TQGridLayout( hl, 4, 2 );
+ lbl = new TQLabel( i18n( "Octaves:" ), m_pTurbulenceWidget );
m_pOctaves = new PMIntEdit( m_pTurbulenceWidget );
gl->addWidget( lbl, 0, 0 );
gl->addWidget( m_pOctaves, 0, 1 );
- lbl = new QLabel( i18n( "Omega:" ), m_pTurbulenceWidget );
+ lbl = new TQLabel( i18n( "Omega:" ), m_pTurbulenceWidget );
m_pOmega = new PMFloatEdit( m_pTurbulenceWidget );
gl->addWidget( lbl, 1, 0 );
gl->addWidget( m_pOmega, 1, 1 );
- lbl = new QLabel( i18n( "Lambda:" ), m_pTurbulenceWidget );
+ lbl = new TQLabel( i18n( "Lambda:" ), m_pTurbulenceWidget );
m_pLambda = new PMFloatEdit( m_pTurbulenceWidget );
gl->addWidget( lbl, 2, 0 );
gl->addWidget( m_pLambda, 2, 1 );
- lbl = new QLabel( i18n( "Depth:" ), m_pTurbulenceWidget );
+ lbl = new TQLabel( i18n( "Depth:" ), m_pTurbulenceWidget );
m_pDepth = new PMFloatEdit( m_pTurbulenceWidget );
gl->addWidget( lbl, 3, 0 );
gl->addWidget( m_pDepth, 3, 1 );
hl->addStretch( 1 );
topLayout( )->addWidget( m_pTurbulenceWidget );
- hl = new QHBoxLayout( topLayout( ) );
- gl = new QGridLayout( hl, 2, 2 );
- m_pFogOffsetLabel = new QLabel( i18n( "Offset: " ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ gl = new TQGridLayout( hl, 2, 2 );
+ m_pFogOffsetLabel = new TQLabel( i18n( "Offset: " ), this );
m_pFogOffset = new PMFloatEdit( this );
- m_pFogAltLabel = new QLabel( i18n( "Altitude: " ), this );
+ m_pFogAltLabel = new TQLabel( i18n( "Altitude: " ), this );
m_pFogAlt = new PMFloatEdit( this );
gl->addWidget( m_pFogOffsetLabel, 0, 0 );
gl->addWidget( m_pFogOffset, 0, 1 );
@@ -112,24 +112,24 @@ void PMFogEdit::createTopWidgets( )
gl->addWidget( m_pFogAlt, 1, 1 );
hl->addStretch( 1 );
- hl = new QHBoxLayout( topLayout( ) );
- m_pUpLabel = new QLabel( i18n( "Up: " ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ m_pUpLabel = new TQLabel( i18n( "Up: " ), this );
m_pUp = new PMVectorEdit( "x", "y", "z", this );
hl->addWidget( m_pUpLabel );
hl->addWidget( m_pUp );
- connect( m_pFogTypeEdit, SIGNAL( activated( int ) ), SLOT( slotFogTypeChanged( int ) ) );
- connect( m_pDistance, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pColor, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pTurbulenceCheck, SIGNAL( clicked( ) ), SLOT( slotTurbulenceClicked( ) ) );
- connect( m_pTurbulenceVector, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pOctaves, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pOmega, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pLambda, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pDepth, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pFogOffset, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pFogAlt, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pUp, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pFogTypeEdit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotFogTypeChanged( int ) ) );
+ connect( m_pDistance, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pColor, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pTurbulenceCheck, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotTurbulenceClicked( ) ) );
+ connect( m_pTurbulenceVector, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pOctaves, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pOmega, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pLambda, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pDepth, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pFogOffset, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pFogAlt, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pUp, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
}
void PMFogEdit::displayObject( PMObject* o )
diff --git a/kpovmodeler/pmfogedit.h b/kpovmodeler/pmfogedit.h
index 880b578c..5a33cf95 100644
--- a/kpovmodeler/pmfogedit.h
+++ b/kpovmodeler/pmfogedit.h
@@ -31,10 +31,10 @@ class PMVectorEdit;
class PMFloatEdit;
class PMIntEdit;
class PMColorEdit;
-class QCheckBox;
-class QComboBox;
-class QWidget;
-class QLabel;
+class TQCheckBox;
+class TQComboBox;
+class TQWidget;
+class TQLabel;
/**
* Dialog edit class for @ref PMFog
@@ -47,7 +47,7 @@ public:
/**
* Creates a PMFogEdit with parent and name
*/
- PMFogEdit( QWidget* parent, const char* name = 0 );
+ PMFogEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -73,21 +73,21 @@ protected slots:
private:
PMFog* m_pDisplayedObject;
- QComboBox* m_pFogTypeEdit;
+ TQComboBox* m_pFogTypeEdit;
PMFloatEdit* m_pDistance;
PMColorEdit* m_pColor;
- QCheckBox* m_pTurbulenceCheck;
- QWidget* m_pTurbulenceWidget;
+ TQCheckBox* m_pTurbulenceCheck;
+ TQWidget* m_pTurbulenceWidget;
PMVectorEdit* m_pTurbulenceVector;
PMIntEdit* m_pOctaves;
PMFloatEdit* m_pOmega;
PMFloatEdit* m_pLambda;
PMFloatEdit* m_pDepth;
- QLabel* m_pFogOffsetLabel;
+ TQLabel* m_pFogOffsetLabel;
PMFloatEdit* m_pFogOffset;
- QLabel* m_pFogAltLabel;
+ TQLabel* m_pFogAltLabel;
PMFloatEdit* m_pFogAlt;
- QLabel* m_pUpLabel;
+ TQLabel* m_pUpLabel;
PMVectorEdit* m_pUp;
};
diff --git a/kpovmodeler/pmformulalabel.cpp b/kpovmodeler/pmformulalabel.cpp
index ac2e98d3..71ba62b6 100644
--- a/kpovmodeler/pmformulalabel.cpp
+++ b/kpovmodeler/pmformulalabel.cpp
@@ -18,36 +18,36 @@
#include "pmformulalabel.h"
#include "pmpolynomexponents.h"
-#include <qapplication.h>
-#include <qsimplerichtext.h>
-#include <qpainter.h>
+#include <tqapplication.h>
+#include <tqsimplerichtext.h>
+#include <tqpainter.h>
const int c_indent = 3;
const int c_dotSize = 3;
-QString PMFormulaLabel::s_xyz[3] =
+TQString PMFormulaLabel::s_xyz[3] =
{
- QString( "x" ), QString( "y" ), QString( "z" )
+ TQString( "x" ), TQString( "y" ), TQString( "z" )
};
-QString PMFormulaLabel::s_digit[10] =
+TQString PMFormulaLabel::s_digit[10] =
{
- QString( "0" ),
- QString( "1" ),
- QString( "2" ),
- QString( "3" ),
- QString( "4" ),
- QString( "5" ),
- QString( "6" ),
- QString( "7" ),
- QString( "8" ),
- QString( "9" )
+ TQString( "0" ),
+ TQString( "1" ),
+ TQString( "2" ),
+ TQString( "3" ),
+ TQString( "4" ),
+ TQString( "5" ),
+ TQString( "6" ),
+ TQString( "7" ),
+ TQString( "8" ),
+ TQString( "9" )
};
-QString PMFormulaLabel::s_nullString = QString( "= 0" );
+TQString PMFormulaLabel::s_nullString = TQString( "= 0" );
-PMFormulaLabel::PMFormulaLabel( const PMPolynomExponents& exp, QWidget* parent, const char* name )
- : QWidget( parent, name )
+PMFormulaLabel::PMFormulaLabel( const PMPolynomExponents& exp, TQWidget* parent, const char* name )
+ : TQWidget( parent, name )
{
m_exponents[0] = exp.exponent( 0 );
m_exponents[1] = exp.exponent( 1 );
@@ -56,8 +56,8 @@ PMFormulaLabel::PMFormulaLabel( const PMPolynomExponents& exp, QWidget* parent,
calculateSizeHint( );
}
-PMFormulaLabel::PMFormulaLabel( int x, int y, int z, QWidget* parent, const char* name )
- : QWidget( parent, name )
+PMFormulaLabel::PMFormulaLabel( int x, int y, int z, TQWidget* parent, const char* name )
+ : TQWidget( parent, name )
{
m_exponents[0] = x;
m_exponents[1] = y;
@@ -70,9 +70,9 @@ PMFormulaLabel::~PMFormulaLabel( )
{
}
-void PMFormulaLabel::drawContents( QPainter* p )
+void PMFormulaLabel::drawContents( TQPainter* p )
{
- QRect cr = rect( );
+ TQRect cr = rect( );
int i;
cr.setLeft( cr.left( ) + c_indent );
@@ -84,13 +84,13 @@ void PMFormulaLabel::drawContents( QPainter* p )
// draw dot
int center = ( cr.top( ) + cr.bottom( ) ) / 2;
int rad = c_dotSize / 2;
- p->setBrush( QBrush( colorGroup( ).text( ) ) );
+ p->setBrush( TQBrush( colorGroup( ).text( ) ) );
p->drawEllipse( cr.left( ), center - rad, c_dotSize, c_dotSize );
cr.setLeft( cr.left( ) + c_dotSize + c_indent );
- QFontMetrics m1( font( ) );
- QFont f2 = exponentFont( );
- QFontMetrics m2( f2 );
+ TQFontMetrics m1( font( ) );
+ TQFont f2 = exponentFont( );
+ TQFontMetrics m2( f2 );
int up = m1.height( ) / 2;
for( i = 0; i < 3; i++ )
@@ -115,9 +115,9 @@ void PMFormulaLabel::drawContents( QPainter* p )
}
}
-void PMFormulaLabel::paintEvent( QPaintEvent* ev )
+void PMFormulaLabel::paintEvent( TQPaintEvent* ev )
{
- QPainter paint( this );
+ TQPainter paint( this );
if( ev->rect( ).intersects( rect( ) ) )
{
paint.setClipRegion( ev->region( ).intersect( rect( ) ) );
@@ -129,12 +129,12 @@ void PMFormulaLabel::calculateSizeHint( )
{
int sum = m_exponents[0] + m_exponents[1] + m_exponents[2];
- QFontMetrics m1( font( ) );
+ TQFontMetrics m1( font( ) );
if( sum == 0 )
m_sizeHint.setWidth( m1.width( s_nullString ) );
else
{
- QFontMetrics m2( exponentFont( ) );
+ TQFontMetrics m2( exponentFont( ) );
int width = c_indent * 3 + c_dotSize;
int i;
for( i = 0; i < 3; i++ )
@@ -151,25 +151,25 @@ void PMFormulaLabel::calculateSizeHint( )
m_sizeHint.setHeight( m1.height( ) + 7 );
}
-QSize PMFormulaLabel::sizeHint( ) const
+TQSize PMFormulaLabel::sizeHint( ) const
{
return minimumSizeHint( );
}
-QSize PMFormulaLabel::minimumSizeHint( ) const
+TQSize PMFormulaLabel::minimumSizeHint( ) const
{
return m_sizeHint;
}
-void PMFormulaLabel::fontChange( const QFont& )
+void PMFormulaLabel::fontChange( const TQFont& )
{
calculateSizeHint( );
}
-QFont PMFormulaLabel::exponentFont( ) const
+TQFont PMFormulaLabel::exponentFont( ) const
{
- QFont small = font( );
+ TQFont small = font( );
int fs = small.pointSize( );
if( fs > 0 )
{
diff --git a/kpovmodeler/pmformulalabel.h b/kpovmodeler/pmformulalabel.h
index 329ba639..ee2cace5 100644
--- a/kpovmodeler/pmformulalabel.h
+++ b/kpovmodeler/pmformulalabel.h
@@ -23,12 +23,12 @@
#include <config.h>
#endif
-#include <qwidget.h>
+#include <tqwidget.h>
class PMPolynomExponents;
/**
- * QLabel with a rich text to display a polynom for the quadric,
+ * TQLabel with a rich text to display a polynom for the quadric,
* cubic, quartic and polynom objects.
*/
class PMFormulaLabel : public QWidget
@@ -37,33 +37,33 @@ public:
/**
* Displays the exponents of the @ref PMPolynomExponents
*/
- PMFormulaLabel( const PMPolynomExponents& exp, QWidget* parent, const char* name = 0 );
+ PMFormulaLabel( const PMPolynomExponents& exp, TQWidget* parent, const char* name = 0 );
/**
* Displays the given exponents
*/
- PMFormulaLabel( int x, int y, int z, QWidget* parent, const char* name = 0 );
+ PMFormulaLabel( int x, int y, int z, TQWidget* parent, const char* name = 0 );
/**
* Destructor
*/
~PMFormulaLabel( );
- virtual QSize sizeHint( ) const;
- virtual QSize minimumSizeHint( ) const;
+ virtual TQSize sizeHint( ) const;
+ virtual TQSize minimumSizeHint( ) const;
protected:
- virtual void drawContents( QPainter* p );
- virtual void paintEvent( QPaintEvent* e );
- virtual void fontChange( const QFont& oldFont );
+ virtual void drawContents( TQPainter* p );
+ virtual void paintEvent( TQPaintEvent* e );
+ virtual void fontChange( const TQFont& oldFont );
private:
- QFont exponentFont( ) const;
+ TQFont exponentFont( ) const;
void calculateSizeHint( );
- QSize m_sizeHint;
+ TQSize m_sizeHint;
int m_exponents[3];
- static QString s_xyz[3];
- static QString s_digit[10];
- static QString s_nullString;
+ static TQString s_xyz[3];
+ static TQString s_digit[10];
+ static TQString s_nullString;
};
#endif
diff --git a/kpovmodeler/pmglobalphotons.cpp b/kpovmodeler/pmglobalphotons.cpp
index 4a24855f..ddf32258 100644
--- a/kpovmodeler/pmglobalphotons.cpp
+++ b/kpovmodeler/pmglobalphotons.cpp
@@ -164,12 +164,12 @@ void PMGlobalPhotons::cleanUp( ) const
Base::cleanUp( );
}
-QString PMGlobalPhotons::description( ) const
+TQString PMGlobalPhotons::description( ) const
{
return i18n( "global photons" );
}
-void PMGlobalPhotons::serialize( QDomElement& e, QDomDocument& ) const
+void PMGlobalPhotons::serialize( TQDomElement& e, TQDomDocument& ) const
{
if( m_numberType == Spacing )
{
@@ -202,7 +202,7 @@ void PMGlobalPhotons::serialize( QDomElement& e, QDomDocument& ) const
void PMGlobalPhotons::readAttributes( const PMXMLHelper& h )
{
- QString str;
+ TQString str;
str = h.stringAttribute( "number_type", "spacing" );
if( str == "count" )
@@ -437,7 +437,7 @@ void PMGlobalPhotons::setRadiusMediaMulti( double rmm )
}
}
-PMDialogEditBase* PMGlobalPhotons::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMGlobalPhotons::editWidget( TQWidget* parent ) const
{
return new PMGlobalPhotonsEdit( parent );
}
diff --git a/kpovmodeler/pmglobalphotons.h b/kpovmodeler/pmglobalphotons.h
index b56cc6b1..549e6efc 100644
--- a/kpovmodeler/pmglobalphotons.h
+++ b/kpovmodeler/pmglobalphotons.h
@@ -52,7 +52,7 @@ public:
/** */
virtual PMObject* copy( ) const { return new PMGlobalPhotons( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
@@ -60,19 +60,19 @@ public:
virtual void cleanUp( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMGlobalPhotonsEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/**
* Returns the name of the pixmap that is displayed in the tree view
* and dialog view
*/
- virtual QString pixmap( ) const { return QString( "pmglobalphotons" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmglobalphotons" ); }
/**
* Returns the number type
diff --git a/kpovmodeler/pmglobalphotonsedit.cpp b/kpovmodeler/pmglobalphotonsedit.cpp
index e241f597..5a4a5572 100644
--- a/kpovmodeler/pmglobalphotonsedit.cpp
+++ b/kpovmodeler/pmglobalphotonsedit.cpp
@@ -20,16 +20,16 @@
#include "pmglobalphotons.h"
#include "pmlineedits.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
#include <klocale.h>
#include <kdialog.h>
#include <kmessagebox.h>
-PMGlobalPhotonsEdit::PMGlobalPhotonsEdit( QWidget* parent, const char* name )
+PMGlobalPhotonsEdit::PMGlobalPhotonsEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -37,15 +37,15 @@ PMGlobalPhotonsEdit::PMGlobalPhotonsEdit( QWidget* parent, const char* name )
void PMGlobalPhotonsEdit::createTopWidgets( )
{
- QHBoxLayout* hl;
- QGridLayout* gl;
- QLabel* lbl;
+ TQHBoxLayout* hl;
+ TQGridLayout* gl;
+ TQLabel* lbl;
Base::createTopWidgets( );
- hl = new QHBoxLayout( topLayout( ) );
- lbl = new QLabel( i18n( "Photon numbers" ), this );
- m_pNumberType = new QComboBox( false, this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ lbl = new TQLabel( i18n( "Photon numbers" ), this );
+ m_pNumberType = new TQComboBox( false, this );
m_pNumberType->insertItem( i18n( "Spacing" ) );
m_pNumberType->insertItem( i18n( "Count" ) );
m_pSpacing = new PMFloatEdit( this );
@@ -58,128 +58,128 @@ void PMGlobalPhotonsEdit::createTopWidgets( )
hl->addWidget( m_pCount );
hl->addStretch( 1 );
- gl = new QGridLayout( topLayout( ), 2, 5 );
- lbl = new QLabel( i18n( "Gather" ), this );
+ gl = new TQGridLayout( topLayout( ), 2, 5 );
+ lbl = new TQLabel( i18n( "Gather" ), this );
gl->addWidget( lbl, 0, 0 );
- lbl = new QLabel( i18n( "Min:" ), this );
+ lbl = new TQLabel( i18n( "Min:" ), this );
gl->addWidget( lbl, 0, 1 );
m_pGatherMin = new PMIntEdit( this );
m_pGatherMin->setValidation( true, 0, false, 0 );
gl->addWidget( m_pGatherMin, 0, 2 );
- lbl = new QLabel( i18n( "Max:" ), this );
+ lbl = new TQLabel( i18n( "Max:" ), this );
gl->addWidget( lbl, 0, 3 );
m_pGatherMax = new PMIntEdit( this );
m_pGatherMax->setValidation( true, 0, false, 0 );
gl->addWidget( m_pGatherMax, 0, 4 );
- lbl = new QLabel( i18n( "Media" ), this );
+ lbl = new TQLabel( i18n( "Media" ), this );
gl->addWidget( lbl, 1, 0 );
- lbl = new QLabel( i18n( "Max stop:" ), this );
+ lbl = new TQLabel( i18n( "Max stop:" ), this );
gl->addWidget( lbl, 1, 1 );
m_pMediaMaxSteps = new PMIntEdit( this );
m_pMediaMaxSteps->setValidation( true, 0, false, 0 );
gl->addWidget( m_pMediaMaxSteps, 1, 2 );
- lbl = new QLabel( i18n( "Factor:" ), this );
+ lbl = new TQLabel( i18n( "Factor:" ), this );
gl->addWidget( lbl,1, 3 );
m_pMediaFactor = new PMFloatEdit( this );
m_pMediaFactor->setValidation( true, 0, false, 0 );
gl->addWidget( m_pMediaFactor, 1, 4 );
- hl = new QHBoxLayout( topLayout( ) );
- lbl = new QLabel( i18n( "Jitter:" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ lbl = new TQLabel( i18n( "Jitter:" ), this );
m_pJitter = new PMFloatEdit( this );
m_pJitter->setValidation ( true, 0, false, 0 );
hl->addWidget( lbl );
hl->addWidget( m_pJitter );
hl->addStretch( 1 );
- gl = new QGridLayout( topLayout( ), 2, 3 );
- lbl = new QLabel( i18n( "Max trace level:" ), this );
+ gl = new TQGridLayout( topLayout( ), 2, 3 );
+ lbl = new TQLabel( i18n( "Max trace level:" ), this );
m_pMaxTraceLevel = new PMIntEdit ( this );
m_pMaxTraceLevel->setValidation( true, 0, false, 0 );
- m_pMaxTraceLevelGlobal = new QCheckBox( i18n( "Use global" ), this );
+ m_pMaxTraceLevelGlobal = new TQCheckBox( i18n( "Use global" ), this );
gl->addWidget( lbl, 0, 0 );
gl->addWidget( m_pMaxTraceLevel, 0, 1 );
gl->addWidget( m_pMaxTraceLevelGlobal, 0, 2 );
- lbl = new QLabel( i18n( "Adc bailout:" ), this );
+ lbl = new TQLabel( i18n( "Adc bailout:" ), this );
m_pAdcBailout = new PMFloatEdit ( this );
m_pAdcBailout->setValidation( true, 0, true, 1 );
- m_pAdcBailoutGlobal = new QCheckBox( i18n( "Use global" ), this );
+ m_pAdcBailoutGlobal = new TQCheckBox( i18n( "Use global" ), this );
gl->addWidget( lbl, 1, 0 );
gl->addWidget( m_pAdcBailout, 1, 1 );
gl->addWidget( m_pAdcBailoutGlobal, 1, 2 );
- hl = new QHBoxLayout( topLayout( ) );
- lbl = new QLabel( i18n( "Autostop:" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ lbl = new TQLabel( i18n( "Autostop:" ), this );
m_pAutostop = new PMFloatEdit ( this );
m_pAutostop->setValidation( true, 0, true, 1 );
hl->addWidget( lbl );
hl->addWidget( m_pAutostop );
hl->addStretch( 1 );
- gl = new QGridLayout( topLayout( ), 3, 5 );
- lbl = new QLabel( i18n( "Expand" ), this );
+ gl = new TQGridLayout( topLayout( ), 3, 5 );
+ lbl = new TQLabel( i18n( "Expand" ), this );
gl->addWidget( lbl, 0, 0 );
- lbl = new QLabel( i18n( "Increase:" ), this );
+ lbl = new TQLabel( i18n( "Increase:" ), this );
gl->addWidget( lbl, 0, 1 );
m_pExpandIncrease = new PMFloatEdit( this );
m_pExpandIncrease->setValidation( true, 0, true, 1 );
gl->addWidget( m_pExpandIncrease, 0, 2 );
- lbl = new QLabel( i18n( "Minimum:" ), this );
+ lbl = new TQLabel( i18n( "Minimum:" ), this );
gl->addWidget( lbl, 0, 3 );
m_pExpandMin = new PMIntEdit( this );
m_pExpandMin->setValidation( true, 0, false, 0 );
gl->addWidget( m_pExpandMin, 0, 4 );
- lbl = new QLabel( i18n( "Gather" ), this );
+ lbl = new TQLabel( i18n( "Gather" ), this );
gl->addWidget( lbl, 1, 0 );
- lbl = new QLabel( i18n( "Radius:" ), this );
+ lbl = new TQLabel( i18n( "Radius:" ), this );
gl->addWidget( lbl, 1, 1 );
m_pRadiusGather = new PMFloatEdit( this );
m_pRadiusGather->setValidation( true, 0, false, 0 );
gl->addWidget( m_pRadiusGather, 1, 2 );
- lbl = new QLabel( i18n( "Multiplier:" ), this );
+ lbl = new TQLabel( i18n( "Multiplier:" ), this );
gl->addWidget( lbl, 1, 3 );
m_pRadiusGatherMulti = new PMFloatEdit( this );
m_pRadiusGatherMulti->setValidation( true, 0, false, 0 );
gl->addWidget( m_pRadiusGatherMulti, 1, 4 );
- lbl = new QLabel( i18n( "Media" ), this );
+ lbl = new TQLabel( i18n( "Media" ), this );
gl->addWidget( lbl, 2, 0 );
- lbl = new QLabel( i18n( "Radius:" ), this );
+ lbl = new TQLabel( i18n( "Radius:" ), this );
gl->addWidget( lbl, 2, 1 );
m_pRadiusMedia = new PMFloatEdit( this );
m_pRadiusMedia->setValidation( true, 0, false, 0 );
gl->addWidget( m_pRadiusMedia, 2, 2 );
- lbl = new QLabel( i18n( "Multiplier:" ), this );
+ lbl = new TQLabel( i18n( "Multiplier:" ), this );
gl->addWidget( lbl, 2, 3 );
m_pRadiusMediaMulti = new PMFloatEdit( this );
m_pRadiusMediaMulti->setValidation( true, 0, false, 0 );
gl->addWidget( m_pRadiusMediaMulti, 2, 4 );
- connect( m_pNumberType, SIGNAL( activated( int ) ),
- SLOT( slotNumberTypeActivated( int ) ) );
- connect( m_pSpacing, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pCount, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pGatherMin, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pGatherMax, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pMediaMaxSteps, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pMediaFactor, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pJitter, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pMaxTraceLevelGlobal, SIGNAL( clicked( ) ),
- SLOT( slotMaxTraceLevelGlobalClicked( ) ) );
- connect( m_pMaxTraceLevel, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pAdcBailoutGlobal, SIGNAL( clicked( ) ),
- SLOT( slotAdcBailoutGlobalClicked( ) ) );
- connect( m_pAdcBailout, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pAutostop, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pExpandIncrease, SIGNAL( dataChanged( ) ), SIGNAL ( dataChanged( ) ) );
- connect( m_pExpandMin, SIGNAL( dataChanged( ) ), SIGNAL ( dataChanged( ) ) );
- connect( m_pRadiusGather, SIGNAL( dataChanged( ) ), SIGNAL ( dataChanged( ) ) );
- connect( m_pRadiusGatherMulti, SIGNAL( dataChanged( ) ), SIGNAL ( dataChanged( ) ) );
- connect( m_pRadiusMedia, SIGNAL( dataChanged( ) ), SIGNAL ( dataChanged( ) ) );
- connect( m_pRadiusMediaMulti, SIGNAL( dataChanged( ) ), SIGNAL ( dataChanged( ) ) );
+ connect( m_pNumberType, TQT_SIGNAL( activated( int ) ),
+ TQT_SLOT( slotNumberTypeActivated( int ) ) );
+ connect( m_pSpacing, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pCount, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pGatherMin, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pGatherMax, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pMediaMaxSteps, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pMediaFactor, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pJitter, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pMaxTraceLevelGlobal, TQT_SIGNAL( clicked( ) ),
+ TQT_SLOT( slotMaxTraceLevelGlobalClicked( ) ) );
+ connect( m_pMaxTraceLevel, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pAdcBailoutGlobal, TQT_SIGNAL( clicked( ) ),
+ TQT_SLOT( slotAdcBailoutGlobalClicked( ) ) );
+ connect( m_pAdcBailout, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pAutostop, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pExpandIncrease, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL ( dataChanged( ) ) );
+ connect( m_pExpandMin, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL ( dataChanged( ) ) );
+ connect( m_pRadiusGather, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL ( dataChanged( ) ) );
+ connect( m_pRadiusGatherMulti, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL ( dataChanged( ) ) );
+ connect( m_pRadiusMedia, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL ( dataChanged( ) ) );
+ connect( m_pRadiusMediaMulti, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL ( dataChanged( ) ) );
}
void PMGlobalPhotonsEdit::displayObject( PMObject* o )
diff --git a/kpovmodeler/pmglobalphotonsedit.h b/kpovmodeler/pmglobalphotonsedit.h
index ec06f749..e2ae8f7b 100644
--- a/kpovmodeler/pmglobalphotonsedit.h
+++ b/kpovmodeler/pmglobalphotonsedit.h
@@ -29,8 +29,8 @@
class PMGlobalPhotons;
class PMFloatEdit;
class PMIntEdit;
-class QComboBox;
-class QCheckBox;
+class TQComboBox;
+class TQCheckBox;
/**
* Dialog edit class for @ref PMGlobalPhotons.
@@ -43,7 +43,7 @@ public:
/**
* Creates a PMGlobalPhotonsEdit with parent and name
*/
- PMGlobalPhotonsEdit( QWidget* parent, const char* name = 0 );
+ PMGlobalPhotonsEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -73,7 +73,7 @@ protected slots:
private:
PMGlobalPhotons* m_pDisplayedObject;
- QComboBox* m_pNumberType;
+ TQComboBox* m_pNumberType;
PMFloatEdit* m_pSpacing;
PMIntEdit* m_pCount;
PMIntEdit* m_pGatherMin;
@@ -81,9 +81,9 @@ private:
PMIntEdit* m_pMediaMaxSteps;
PMFloatEdit* m_pMediaFactor;
PMFloatEdit* m_pJitter;
- QCheckBox* m_pMaxTraceLevelGlobal;
+ TQCheckBox* m_pMaxTraceLevelGlobal;
PMIntEdit* m_pMaxTraceLevel;
- QCheckBox* m_pAdcBailoutGlobal;
+ TQCheckBox* m_pAdcBailoutGlobal;
PMFloatEdit* m_pAdcBailout;
PMFloatEdit* m_pAutostop;
PMFloatEdit* m_pExpandIncrease;
diff --git a/kpovmodeler/pmglobals.h b/kpovmodeler/pmglobals.h
index 0a50b2b6..4e59547c 100644
--- a/kpovmodeler/pmglobals.h
+++ b/kpovmodeler/pmglobals.h
@@ -19,8 +19,8 @@
#define PMGLOBALS_H
#ifdef PMEnableSimpleProfiling
-#include <qdatetime.h>
-extern QTime PMDebugTime;
+#include <tqdatetime.h>
+extern TQTime PMDebugTime;
#endif
#define PMArea 0 // no area for debug messages yet
diff --git a/kpovmodeler/pmglobalsettings.cpp b/kpovmodeler/pmglobalsettings.cpp
index a4740378..efa7db36 100644
--- a/kpovmodeler/pmglobalsettings.cpp
+++ b/kpovmodeler/pmglobalsettings.cpp
@@ -168,12 +168,12 @@ void PMGlobalSettings::cleanUp( ) const
Base::cleanUp( );
}
-QString PMGlobalSettings::description( ) const
+TQString PMGlobalSettings::description( ) const
{
return i18n( "global settings" );
}
-void PMGlobalSettings::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMGlobalSettings::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
e.setAttribute( "adc_bailout", m_adcBailout );
e.setAttribute( "ambient_light", m_ambientLight.serializeXML( ) );
@@ -211,7 +211,7 @@ void PMGlobalSettings::serialize( QDomElement& e, QDomDocument& doc ) const
void PMGlobalSettings::readAttributes( const PMXMLHelper& h )
{
- QString str;
+ TQString str;
m_adcBailout = h.doubleAttribute( "adc_bailout", adcBailoutDefault );
m_ambientLight = h.colorAttribute( "ambient_light", ambientLightDefault );
@@ -432,7 +432,7 @@ void PMGlobalSettings::setRecursionLimit( int c )
}
}
-PMDialogEditBase* PMGlobalSettings::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMGlobalSettings::editWidget( TQWidget* parent ) const
{
return new PMGlobalSettingsEdit( parent );
}
diff --git a/kpovmodeler/pmglobalsettings.h b/kpovmodeler/pmglobalsettings.h
index e552293e..a95f86d7 100644
--- a/kpovmodeler/pmglobalsettings.h
+++ b/kpovmodeler/pmglobalsettings.h
@@ -53,7 +53,7 @@ public:
/** */
virtual PMObject* copy( ) const { return new PMGlobalSettings( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
@@ -61,19 +61,19 @@ public:
virtual void cleanUp( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMGlobalSettingsEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/**
* Returns the name of the pixmap that is displayed in the tree view
* and dialog view
*/
- virtual QString pixmap( ) const { return QString( "pmglobalsettings" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmglobalsettings" ); }
/**
* Returns the adc bailout
diff --git a/kpovmodeler/pmglobalsettingsedit.cpp b/kpovmodeler/pmglobalsettingsedit.cpp
index 8a297738..7c8eddad 100644
--- a/kpovmodeler/pmglobalsettingsedit.cpp
+++ b/kpovmodeler/pmglobalsettingsedit.cpp
@@ -21,15 +21,15 @@
#include "pmlineedits.h"
#include "pmcoloredit.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
#include <klocale.h>
#include <kdialog.h>
#include <kmessagebox.h>
-PMGlobalSettingsEdit::PMGlobalSettingsEdit( QWidget* parent, const char* name )
+PMGlobalSettingsEdit::PMGlobalSettingsEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -37,58 +37,58 @@ PMGlobalSettingsEdit::PMGlobalSettingsEdit( QWidget* parent, const char* name )
void PMGlobalSettingsEdit::createTopWidgets( )
{
- QHBoxLayout* hl;
- QLabel* lbl;
+ TQHBoxLayout* hl;
+ TQLabel* lbl;
Base::createTopWidgets( );
- hl = new QHBoxLayout( topLayout( ) );
- lbl = new QLabel( i18n( "Adc bailout:" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ lbl = new TQLabel( i18n( "Adc bailout:" ), this );
m_pAdcBailoutEdit = new PMFloatEdit( this );
hl->addWidget( lbl );
hl->addWidget( m_pAdcBailoutEdit );
hl->addStretch( 1 );
- hl = new QHBoxLayout( topLayout( ) );
- lbl = new QLabel( i18n( "Ambient light:" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ lbl = new TQLabel( i18n( "Ambient light:" ), this );
m_pAmbientLightEdit = new PMColorEdit( false, this );
topLayout( )->addWidget( lbl );
topLayout( )->addWidget( m_pAmbientLightEdit );
hl->addStretch( 1 );
- hl = new QHBoxLayout( topLayout( ) );
- lbl = new QLabel( i18n( "Assumed gamma:" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ lbl = new TQLabel( i18n( "Assumed gamma:" ), this );
m_pAssumedGammaEdit = new PMFloatEdit( this );
hl->addWidget( lbl );
hl->addWidget( m_pAssumedGammaEdit );
hl->addStretch( 1 );
- m_pHfGray16Edit = new QCheckBox( i18n( "Hf gray 16" ), this );
+ m_pHfGray16Edit = new TQCheckBox( i18n( "Hf gray 16" ), this );
topLayout( )->addWidget( m_pHfGray16Edit );
- hl = new QHBoxLayout( topLayout( ) );
- lbl = new QLabel( i18n( "Iridiscence wave length:" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ lbl = new TQLabel( i18n( "Iridiscence wave length:" ), this );
m_pIridWaveLengthEdit = new PMColorEdit( false, this );
topLayout( )->addWidget( lbl );
topLayout( )->addWidget( m_pIridWaveLengthEdit );
hl->addStretch( 1 );
- hl = new QHBoxLayout( topLayout( ) );
- QGridLayout* layout = new QGridLayout( hl, 4, 2 );
- lbl = new QLabel( i18n( "Maximum intersections:" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ TQGridLayout* layout = new TQGridLayout( hl, 4, 2 );
+ lbl = new TQLabel( i18n( "Maximum intersections:" ), this );
m_pMaxIntersectionsEdit = new PMIntEdit( this );
layout->addWidget( lbl, 0, 0 );
layout->addWidget( m_pMaxIntersectionsEdit, 0, 1 );
- lbl = new QLabel( i18n( "Maximum trace level:" ), this );
+ lbl = new TQLabel( i18n( "Maximum trace level:" ), this );
m_pMaxTraceLevelEdit = new PMIntEdit( this );
layout->addWidget( lbl, 1, 0 );
layout->addWidget( m_pMaxTraceLevelEdit, 1, 1 );
- lbl = new QLabel( i18n( "Number of waves:" ), this );
+ lbl = new TQLabel( i18n( "Number of waves:" ), this );
m_pNumberWavesEdit = new PMIntEdit( this );
layout->addWidget( lbl, 2, 0 );
layout->addWidget( m_pNumberWavesEdit, 2, 1 );
- lbl = new QLabel( i18n( "Noise generator:" ), this );
- m_pNoiseGeneratorEdit = new QComboBox( false, this );
+ lbl = new TQLabel( i18n( "Noise generator:" ), this );
+ m_pNoiseGeneratorEdit = new TQComboBox( false, this );
m_pNoiseGeneratorEdit->insertItem( i18n( "Original" ) );
m_pNoiseGeneratorEdit->insertItem( i18n( "Range Corrected" ) );
m_pNoiseGeneratorEdit->insertItem( i18n( "Perlin" ) );
@@ -96,45 +96,45 @@ void PMGlobalSettingsEdit::createTopWidgets( )
layout->addWidget( m_pNoiseGeneratorEdit, 3, 1 );
hl->addStretch( 1 );
- m_pRadiosityEdit = new QCheckBox( i18n( "Radiosity (Povray 3.1)" ), this );
+ m_pRadiosityEdit = new TQCheckBox( i18n( "Radiosity (Povray 3.1)" ), this );
topLayout( )->addWidget( m_pRadiosityEdit );
- m_pRadiosityWidget = new QWidget( this );
- hl = new QHBoxLayout( m_pRadiosityWidget, 0, KDialog::spacingHint( ) );
- layout = new QGridLayout( hl, 7, 2 );
- lbl = new QLabel( i18n( "Brightness:" ), m_pRadiosityWidget );
+ m_pRadiosityWidget = new TQWidget( this );
+ hl = new TQHBoxLayout( m_pRadiosityWidget, 0, KDialog::spacingHint( ) );
+ layout = new TQGridLayout( hl, 7, 2 );
+ lbl = new TQLabel( i18n( "Brightness:" ), m_pRadiosityWidget );
m_pBrightnessEdit = new PMFloatEdit( m_pRadiosityWidget );
layout->addWidget( lbl, 0, 0 );
layout->addWidget( m_pBrightnessEdit, 0, 1 );
- lbl = new QLabel( i18n( "Count:" ), m_pRadiosityWidget );
+ lbl = new TQLabel( i18n( "Count:" ), m_pRadiosityWidget );
m_pCountEdit = new PMIntEdit( m_pRadiosityWidget );
layout->addWidget( lbl, 1, 0 );
layout->addWidget( m_pCountEdit, 1, 1 );
- lbl = new QLabel( i18n( "Maximum distance:" ), m_pRadiosityWidget );
+ lbl = new TQLabel( i18n( "Maximum distance:" ), m_pRadiosityWidget );
m_pDistanceMaximumEdit = new PMFloatEdit( m_pRadiosityWidget );
layout->addWidget( lbl, 2, 0 );
layout->addWidget( m_pDistanceMaximumEdit, 2, 1 );
- lbl = new QLabel( i18n( "Error boundary:" ), m_pRadiosityWidget );
+ lbl = new TQLabel( i18n( "Error boundary:" ), m_pRadiosityWidget );
m_pErrorBoundEdit = new PMFloatEdit( m_pRadiosityWidget );
layout->addWidget( lbl, 3, 0 );
layout->addWidget( m_pErrorBoundEdit, 3, 1 );
- lbl = new QLabel( i18n( "Gray threshold:" ), m_pRadiosityWidget );
+ lbl = new TQLabel( i18n( "Gray threshold:" ), m_pRadiosityWidget );
m_pGrayThresholdEdit = new PMFloatEdit( m_pRadiosityWidget );
layout->addWidget( lbl, 4, 0 );
layout->addWidget( m_pGrayThresholdEdit, 4, 1 );
- lbl = new QLabel( i18n( "Low error factor:" ), m_pRadiosityWidget );
+ lbl = new TQLabel( i18n( "Low error factor:" ), m_pRadiosityWidget );
m_pLowErrorFactorEdit = new PMFloatEdit( m_pRadiosityWidget );
layout->addWidget( lbl, 5, 0 );
layout->addWidget( m_pLowErrorFactorEdit, 5, 1 );
- lbl = new QLabel( i18n( "Minimum reuse:" ), m_pRadiosityWidget );
+ lbl = new TQLabel( i18n( "Minimum reuse:" ), m_pRadiosityWidget );
m_pMinimumReuseEdit = new PMFloatEdit( m_pRadiosityWidget );
layout->addWidget( lbl, 6, 0 );
layout->addWidget( m_pMinimumReuseEdit, 6, 1 );
- lbl = new QLabel( i18n( "Nearest count:" ), m_pRadiosityWidget );
+ lbl = new TQLabel( i18n( "Nearest count:" ), m_pRadiosityWidget );
m_pNearestCountEdit = new PMIntEdit( m_pRadiosityWidget );
layout->addWidget( lbl, 7, 0 );
layout->addWidget( m_pNearestCountEdit, 7, 1 );
- lbl = new QLabel( i18n( "Recursion limit:" ), m_pRadiosityWidget );
+ lbl = new TQLabel( i18n( "Recursion limit:" ), m_pRadiosityWidget );
m_pRecursionLimitEdit = new PMIntEdit( m_pRadiosityWidget );
layout->addWidget( lbl, 8, 0 );
layout->addWidget( m_pRecursionLimitEdit, 8, 1 );
@@ -142,25 +142,25 @@ void PMGlobalSettingsEdit::createTopWidgets( )
topLayout( )->addWidget( m_pRadiosityWidget );
- connect( m_pAdcBailoutEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pAmbientLightEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pAssumedGammaEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pHfGray16Edit, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pIridWaveLengthEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pMaxIntersectionsEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pMaxTraceLevelEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pNumberWavesEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pNoiseGeneratorEdit, SIGNAL( activated( int ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pRadiosityEdit, SIGNAL( clicked( ) ), SLOT( slotRadiosityClicked( ) ) );
- connect( m_pBrightnessEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pCountEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pDistanceMaximumEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pErrorBoundEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pGrayThresholdEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pLowErrorFactorEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pMinimumReuseEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pNearestCountEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pRecursionLimitEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pAdcBailoutEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pAmbientLightEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pAssumedGammaEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pHfGray16Edit, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pIridWaveLengthEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pMaxIntersectionsEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pMaxTraceLevelEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pNumberWavesEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pNoiseGeneratorEdit, TQT_SIGNAL( activated( int ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pRadiosityEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotRadiosityClicked( ) ) );
+ connect( m_pBrightnessEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pCountEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pDistanceMaximumEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pErrorBoundEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pGrayThresholdEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pLowErrorFactorEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pMinimumReuseEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pNearestCountEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pRecursionLimitEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
}
void PMGlobalSettingsEdit::displayObject( PMObject* o )
diff --git a/kpovmodeler/pmglobalsettingsedit.h b/kpovmodeler/pmglobalsettingsedit.h
index 2a439617..df0f99b0 100644
--- a/kpovmodeler/pmglobalsettingsedit.h
+++ b/kpovmodeler/pmglobalsettingsedit.h
@@ -30,8 +30,8 @@ class PMGlobalSettings;
class PMColorEdit;
class PMFloatEdit;
class PMIntEdit;
-class QCheckBox;
-class QComboBox;
+class TQCheckBox;
+class TQComboBox;
/**
* Dialog edit class for @ref PMGlobalSettings.
@@ -44,7 +44,7 @@ public:
/**
* Creates a PMGlobalSettingsEdit with parent and name
*/
- PMGlobalSettingsEdit( QWidget* parent, const char* name = 0 );
+ PMGlobalSettingsEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -70,14 +70,14 @@ private:
PMFloatEdit* m_pAdcBailoutEdit;
PMColorEdit* m_pAmbientLightEdit;
PMFloatEdit* m_pAssumedGammaEdit;
- QCheckBox* m_pHfGray16Edit;
+ TQCheckBox* m_pHfGray16Edit;
PMColorEdit* m_pIridWaveLengthEdit;
PMIntEdit* m_pMaxIntersectionsEdit;
PMIntEdit* m_pMaxTraceLevelEdit;
PMIntEdit* m_pNumberWavesEdit;
- QComboBox* m_pNoiseGeneratorEdit;
- QCheckBox* m_pRadiosityEdit;
- QWidget* m_pRadiosityWidget;
+ TQComboBox* m_pNoiseGeneratorEdit;
+ TQCheckBox* m_pRadiosityEdit;
+ TQWidget* m_pRadiosityWidget;
PMFloatEdit* m_pBrightnessEdit;
PMIntEdit* m_pCountEdit;
PMFloatEdit* m_pDistanceMaximumEdit;
diff --git a/kpovmodeler/pmglview.cpp b/kpovmodeler/pmglview.cpp
index 43102de9..e4a53088 100644
--- a/kpovmodeler/pmglview.cpp
+++ b/kpovmodeler/pmglview.cpp
@@ -25,16 +25,16 @@
#include "pmdefaults.h"
#include <math.h>
-#include <qpopupmenu.h>
-#include <qpainter.h>
-#include <qapplication.h>
-#include <qcursor.h>
-#include <qcolor.h>
-#include <qglobal.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcombobox.h>
-#include <qdom.h>
+#include <tqpopupmenu.h>
+#include <tqpainter.h>
+#include <tqapplication.h>
+#include <tqcursor.h>
+#include <tqcolor.h>
+#include <tqglobal.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
+#include <tqdom.h>
#include <kxmlguifactory.h>
#include <kaction.h>
@@ -106,7 +106,7 @@ bool PMGLView::s_bDirect = true;
PMGLView::PMGLView( PMPart* part, PMViewType t,
- QWidget* parent, const char* name, WFlags f )
+ TQWidget* parent, const char* name, WFlags f )
: PMViewBase( parent, name, f | Qt::WWinOwnDC | Qt::WRepaintNoErase )
{
m_pPart = part;
@@ -150,33 +150,33 @@ PMGLView::PMGLView( PMPart* part, PMViewType t,
setMinimumSize( 50, 50 );
- connect( part, SIGNAL( refresh( ) ), SLOT( slotRefresh( ) ) );
- connect( part, SIGNAL( clear( ) ), SLOT( slotClear( ) ) );
+ connect( part, TQT_SIGNAL( refresh( ) ), TQT_SLOT( slotRefresh( ) ) );
+ connect( part, TQT_SIGNAL( clear( ) ), TQT_SLOT( slotClear( ) ) );
- connect( this, SIGNAL( objectChanged( PMObject*, const int, QObject* ) ),
- part, SLOT( slotObjectChanged( PMObject*, const int, QObject* ) ) );
- connect( part, SIGNAL( objectChanged( PMObject*, const int, QObject* ) ),
- SLOT( slotObjectChanged( PMObject*, const int, QObject* ) ) );
+ connect( this, TQT_SIGNAL( objectChanged( PMObject*, const int, TQObject* ) ),
+ part, TQT_SLOT( slotObjectChanged( PMObject*, const int, TQObject* ) ) );
+ connect( part, TQT_SIGNAL( objectChanged( PMObject*, const int, TQObject* ) ),
+ TQT_SLOT( slotObjectChanged( PMObject*, const int, TQObject* ) ) );
- connect( part, SIGNAL( activeRenderModeChanged( ) ),
- SLOT( slotActiveRenderModeChanged( ) ) );
+ connect( part, TQT_SIGNAL( activeRenderModeChanged( ) ),
+ TQT_SLOT( slotActiveRenderModeChanged( ) ) );
- connect( &m_startTimer, SIGNAL( timeout( ) ),
- SLOT( slotMouseChangeTimer( ) ) );
- connect( &m_autoScrollTimer, SIGNAL( timeout( ) ),
- SLOT( slotAutoScroll( ) ) );
+ connect( &m_startTimer, TQT_SIGNAL( timeout( ) ),
+ TQT_SLOT( slotMouseChangeTimer( ) ) );
+ connect( &m_autoScrollTimer, TQT_SIGNAL( timeout( ) ),
+ TQT_SLOT( slotAutoScroll( ) ) );
- connect( rm, SIGNAL( renderingStarted( PMGLView* ) ),
- SLOT( slotRenderingStarted( PMGLView* ) ) );
- connect( rm, SIGNAL( aboutToUpdate( PMGLView* ) ),
- SLOT( slotAboutToUpdate( PMGLView* ) ) );
- connect( rm, SIGNAL( renderingFinished( PMGLView* ) ),
- SLOT( slotRenderingFinished( PMGLView* ) ) );
- connect( rm, SIGNAL( renderingSettingsChanged( ) ),
- SLOT( slotRefresh( ) ) );
+ connect( rm, TQT_SIGNAL( renderingStarted( PMGLView* ) ),
+ TQT_SLOT( slotRenderingStarted( PMGLView* ) ) );
+ connect( rm, TQT_SIGNAL( aboutToUpdate( PMGLView* ) ),
+ TQT_SLOT( slotAboutToUpdate( PMGLView* ) ) );
+ connect( rm, TQT_SIGNAL( renderingFinished( PMGLView* ) ),
+ TQT_SLOT( slotRenderingFinished( PMGLView* ) ) );
+ connect( rm, TQT_SIGNAL( renderingSettingsChanged( ) ),
+ TQT_SLOT( slotRefresh( ) ) );
- connect( this, SIGNAL( controlPointMessage( const QString& ) ),
- m_pPart, SIGNAL( controlPointMessage( const QString& ) ) );
+ connect( this, TQT_SIGNAL( controlPointMessage( const TQString& ) ),
+ m_pPart, TQT_SIGNAL( controlPointMessage( const TQString& ) ) );
updateControlPoints( );
}
@@ -206,10 +206,10 @@ void PMGLView::initializeGL( )
// check if we can use the global colormap
// should be the default ?
if( vi->visualid ==
- XVisualIDFromVisual( ( Visual* ) QPaintDevice::x11AppVisual( ) ) )
+ XVisualIDFromVisual( ( Visual* ) TQPaintDevice::x11AppVisual( ) ) )
{
kdDebug( PMArea ) << "PMGLView: Default colormap used\n";
- s_pSharedData->m_colormap = QPaintDevice::x11AppColormap();
+ s_pSharedData->m_colormap = TQPaintDevice::x11AppColormap();
s_pSharedData->m_colormapAllocated = false;
}
@@ -312,7 +312,7 @@ void PMGLView::initializeGL( )
Window p;
p = RootWindow( display, vi->screen );
- QWidget* pw = parentWidget( );
+ TQWidget* pw = parentWidget( );
if( pw )
p = pw->winId( );
@@ -365,8 +365,8 @@ void PMGLView::initializeGL( )
}
else
{
- QVBoxLayout* topLayout = new QVBoxLayout( this );
- QLabel* label = new QLabel( i18n( "No OpenGL support" ), this );
+ TQVBoxLayout* topLayout = new TQVBoxLayout( this );
+ TQLabel* label = new TQLabel( i18n( "No OpenGL support" ), this );
label->setAlignment( Qt::AlignCenter );
topLayout->addWidget( label );
}
@@ -424,12 +424,12 @@ void PMGLView::setTranslationY( double d )
invalidateProjection( );
}
-void PMGLView::resizeEvent( QResizeEvent* )
+void PMGLView::resizeEvent( TQResizeEvent* )
{
invalidateProjection( );
}
-void PMGLView::paintEvent( QPaintEvent* )
+void PMGLView::paintEvent( TQPaintEvent* )
{
repaint( );
}
@@ -503,7 +503,7 @@ void PMGLView::enableScaleMode( bool yes )
}
}
-void PMGLView::mousePressEvent( QMouseEvent* e )
+void PMGLView::mousePressEvent( TQMouseEvent* e )
{
if( m_bScaleMode || m_bTranslateMode )
{
@@ -550,7 +550,7 @@ void PMGLView::mousePressEvent( QMouseEvent* e )
m_bGraphicalChangeMode = true;
m_bMementoCreated = false;
m_changeStartPos = e->pos( );
- m_changeStartTime = QTime::currentTime( );
+ m_changeStartTime = TQTime::currentTime( );
m_currentMousePos = m_changeStartPos;
m_startTimer.start( c_mouseChangeDelayMs, true );
}
@@ -606,7 +606,7 @@ void PMGLView::mousePressEvent( QMouseEvent* e )
}
}
-void PMGLView::mouseReleaseEvent( QMouseEvent* e )
+void PMGLView::mouseReleaseEvent( TQMouseEvent* e )
{
m_bMousePressed = false;
if( m_bGraphicalChangeMode )
@@ -640,7 +640,7 @@ void PMGLView::mouseReleaseEvent( QMouseEvent* e )
{
int sx, sy, ex, ey, w, h;
double isx, isy, iex, iey;
- QPtrListIterator<PMVector> pit( m_controlPointsPosition );
+ TQPtrListIterator<PMVector> pit( m_controlPointsPosition );
PMControlPointListIterator cit( m_controlPoints );
PMVector p;
@@ -677,14 +677,14 @@ void PMGLView::mouseReleaseEvent( QMouseEvent* e )
m_autoScrollTimer.stop( );
}
- if( e->button( ) & QEvent::MidButton )
+ if( e->button( ) & TQEvent::MidButton )
m_bMidMousePressed = false;
m_bSelectUnderMouse = false;
m_bDeselectUnderMouse = false;
}
-void PMGLView::mouseMoveEvent( QMouseEvent* e )
+void PMGLView::mouseMoveEvent( TQMouseEvent* e )
{
if( m_bMousePressed )
{
@@ -722,8 +722,8 @@ void PMGLView::mouseMoveEvent( QMouseEvent* e )
m_currentMousePos = e->pos( );
if( !m_bMementoCreated )
{
- QPoint movement = e->pos( ) - m_changeStartPos;
- if( ( m_changeStartTime.msecsTo( QTime::currentTime( ) ) > c_mouseChangeDelayMs )
+ TQPoint movement = e->pos( ) - m_changeStartPos;
+ if( ( m_changeStartTime.msecsTo( TQTime::currentTime( ) ) > c_mouseChangeDelayMs )
|| ( movement.manhattanLength( ) > c_mouseChangeDelayPixel ) )
{
m_startTimer.stop( );
@@ -780,7 +780,7 @@ void PMGLView::mouseMoveEvent( QMouseEvent* e )
if( m_bAutoScroll && !as )
{
- m_lastAutoScrollUpdate = QTime::currentTime( );
+ m_lastAutoScrollUpdate = TQTime::currentTime( );
m_autoScrollTimer.start( c_minAutoScrollUpdateTime, true );
}
if( !m_bAutoScroll && as )
@@ -788,7 +788,7 @@ void PMGLView::mouseMoveEvent( QMouseEvent* e )
}
}
-void PMGLView::wheelEvent( QWheelEvent* e )
+void PMGLView::wheelEvent( TQWheelEvent* e )
{
if( m_type != PMViewCamera )
{
@@ -803,7 +803,7 @@ void PMGLView::wheelEvent( QWheelEvent* e )
}
}
-void PMGLView::keyPressEvent( QKeyEvent* e )
+void PMGLView::keyPressEvent( TQKeyEvent* e )
{
bool accept = true;
@@ -867,7 +867,7 @@ void PMGLView::slotAutoScroll( )
{
if( m_bAutoScroll )
{
- QTime now = QTime::currentTime( );
+ TQTime now = TQTime::currentTime( );
int msecs = m_lastAutoScrollUpdate.msecsTo( now );
int pixels = ( int ) ( m_autoScrollSpeed * msecs / 1000.0 );
@@ -890,7 +890,7 @@ void PMGLView::slotAutoScroll( )
if( m_bGraphicalChangeMode )
if( m_bMultipleSelectionMode )
{
- m_selectionStart += QPoint( pixels * m_autoScrollDirectionX,
+ m_selectionStart += TQPoint( pixels * m_autoScrollDirectionX,
pixels * m_autoScrollDirectionY );
saveSelectionBox( );
@@ -898,7 +898,7 @@ void PMGLView::slotAutoScroll( )
}
if( m_bGraphicalChangeMode )
- graphicalChange( mapFromGlobal( QCursor::pos( ) ) );
+ graphicalChange( mapFromGlobal( TQCursor::pos( ) ) );
else
repaint( );
@@ -918,7 +918,7 @@ void PMGLView::slotMouseChangeTimer( )
}
}
-void PMGLView::startChange( const QPoint& mousePos )
+void PMGLView::startChange( const TQPoint& mousePos )
{
m_pActiveObject->createMemento( );
m_bMementoCreated = true;
@@ -937,7 +937,7 @@ void PMGLView::startChange( const QPoint& mousePos )
m_pUnderMouse->startChange( p, m_normal );
}
-void PMGLView::graphicalChange( const QPoint& mousePos )
+void PMGLView::graphicalChange( const TQPoint& mousePos )
{
PMVector p = mousePosition( m_pUnderMouse, mousePos.x( ), mousePos.y( ) );
p.transform( m_inversePointsTransformation );
@@ -1145,7 +1145,7 @@ void PMGLView::slotStopRendering( )
}
void PMGLView::slotObjectChanged( PMObject* obj, const int mode,
- QObject* sender )
+ TQObject* sender )
{
bool redraw = false;
@@ -1414,7 +1414,7 @@ void PMGLView::paintSelectionBox( )
{
int sx, sy, ex, ey, w, h;
calculateSelectionBox( sx, sy, ex, ey, w, h );
- QPainter p;
+ TQPainter p;
p.begin( this );
p.setPen( PMRenderManager::theManager( )->controlPointColor( 1 ) );
p.drawRect( sx, sy, w, h );
@@ -1484,7 +1484,7 @@ void PMGLView::slotRenderingFinished( PMGLView* view )
if( m_bAutoScroll )
{
- QTime now = QTime::currentTime( );
+ TQTime now = TQTime::currentTime( );
int msecs = m_lastAutoScrollUpdate.msecsTo( now );
if( msecs < c_minAutoScrollUpdateTime )
@@ -1495,9 +1495,9 @@ void PMGLView::slotRenderingFinished( PMGLView* view )
}
}
-QString PMGLView::viewTypeAsString( PMViewType t )
+TQString PMGLView::viewTypeAsString( PMViewType t )
{
- QString str;
+ TQString str;
switch( t )
{
@@ -1536,17 +1536,17 @@ void PMGLView::restoreConfig( KConfig* /*cfg*/ )
void PMGLView::contextMenu( )
{
- QPopupMenu* m = new QPopupMenu( );
- m->insertItem( i18n( "Left View" ), this, SLOT( slotSetTypePosX( ) ) );
- m->insertItem( i18n( "Right View" ), this, SLOT( slotSetTypeNegX( ) ) );
- m->insertItem( i18n( "Top View" ), this, SLOT( slotSetTypeNegY( ) ) );
- m->insertItem( i18n( "Bottom View" ), this, SLOT( slotSetTypePosY( ) ) );
- m->insertItem( i18n( "Front View" ), this, SLOT( slotSetTypePosZ( ) ) );
- m->insertItem( i18n( "Back View" ), this, SLOT( slotSetTypeNegZ( ) ) );
-
- QPopupMenu* cm = new QPopupMenu( m );
- QPtrListIterator<PMCamera> it = m_pPart->cameras( );
- QString name;
+ TQPopupMenu* m = new TQPopupMenu( );
+ m->insertItem( i18n( "Left View" ), this, TQT_SLOT( slotSetTypePosX( ) ) );
+ m->insertItem( i18n( "Right View" ), this, TQT_SLOT( slotSetTypeNegX( ) ) );
+ m->insertItem( i18n( "Top View" ), this, TQT_SLOT( slotSetTypeNegY( ) ) );
+ m->insertItem( i18n( "Bottom View" ), this, TQT_SLOT( slotSetTypePosY( ) ) );
+ m->insertItem( i18n( "Front View" ), this, TQT_SLOT( slotSetTypePosZ( ) ) );
+ m->insertItem( i18n( "Back View" ), this, TQT_SLOT( slotSetTypeNegZ( ) ) );
+
+ TQPopupMenu* cm = new TQPopupMenu( m );
+ TQPtrListIterator<PMCamera> it = m_pPart->cameras( );
+ TQString name;
if( !it.current( ) )
cm->insertItem( i18n( "No Cameras" ) );
else
@@ -1560,13 +1560,13 @@ void PMGLView::contextMenu( )
cm->insertItem( name, cnr );
}
}
- connect( cm, SIGNAL( activated( int ) ), SLOT( slotCameraView( int ) ) );
+ connect( cm, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotCameraView( int ) ) );
m->insertItem( SmallIconSet( "pmcamera" ), i18n( "Camera" ), cm );
m->insertSeparator( );
- m->insertItem( i18n( "Snap to Grid" ), this, SLOT( slotSnapToGrid( ) ) );
+ m->insertItem( i18n( "Snap to Grid" ), this, TQT_SLOT( slotSnapToGrid( ) ) );
m_objectActions.clear( );
if( m_pActiveObject )
{
@@ -1574,7 +1574,7 @@ void PMGLView::contextMenu( )
if( !m_objectActions.isEmpty( ) )
{
PMObjectAction* oa = 0;
- QPtrListIterator<PMObjectAction> ait( m_objectActions );
+ TQPtrListIterator<PMObjectAction> ait( m_objectActions );
for( ; ait.current( ); ++ait )
{
@@ -1583,11 +1583,11 @@ void PMGLView::contextMenu( )
}
}
}
- connect( m, SIGNAL( activated( int ) ), SLOT( slotObjectAction( int ) ) );
+ connect( m, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotObjectAction( int ) ) );
m->insertSeparator( );
- QPopupMenu* menu = new QPopupMenu( m );
+ TQPopupMenu* menu = new TQPopupMenu( m );
PMControlPointListIterator pit( m_controlPoints );
if( !pit.current( ) )
@@ -1598,18 +1598,18 @@ void PMGLView::contextMenu( )
for( ; pit.current( ); ++pit, ++cnr )
menu->insertItem( pit.current( )->description( ), cnr );
}
- connect( menu, SIGNAL( activated( int ) ), SLOT( slotControlPoint( int ) ) );
+ connect( menu, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotControlPoint( int ) ) );
m->insertItem( i18n( "Control Points" ), menu );
- m->exec( QCursor::pos( ) );
+ m->exec( TQCursor::pos( ) );
delete m;
}
void PMGLView::slotCameraView( int id )
{
int i;
- QPtrListIterator<PMCamera> it = m_pPart->cameras( );
+ TQPtrListIterator<PMCamera> it = m_pPart->cameras( );
for( i = 0; i < id; i++ )
++it;
@@ -1622,7 +1622,7 @@ void PMGLView::slotCameraView( int id )
void PMGLView::slotObjectAction( int id )
{
- QPtrListIterator<PMObjectAction> it( m_objectActions );
+ TQPtrListIterator<PMObjectAction> it( m_objectActions );
PMObjectAction* oa = 0;
for( ; it.current( ) && !oa; ++it )
@@ -1677,7 +1677,7 @@ void PMGLView::slotSnapToGrid( )
}
}
-QString PMGLView::description( ) const
+TQString PMGLView::description( ) const
{
return viewTypeAsString( m_type );
}
@@ -1700,9 +1700,9 @@ void PMGLView::saveViewConfig( PMViewOptions* vo ) const
}
}
-void PMGLViewOptions::loadData( QDomElement& e )
+void PMGLViewOptions::loadData( TQDomElement& e )
{
- QString s = e.attribute( "type", "Camera" );
+ TQString s = e.attribute( "type", "Camera" );
if( s == "Camera" ) m_glViewType = PMGLView::PMViewCamera;
else if( s == "X" ) m_glViewType = PMGLView::PMViewPosX;
else if( s == "Y" ) m_glViewType = PMGLView::PMViewPosY;
@@ -1712,7 +1712,7 @@ void PMGLViewOptions::loadData( QDomElement& e )
else if( s == "NegZ" ) m_glViewType = PMGLView::PMViewNegZ;
}
-void PMGLViewOptions::saveData( QDomElement& e )
+void PMGLViewOptions::saveData( TQDomElement& e )
{
switch( m_glViewType )
{
@@ -1744,12 +1744,12 @@ void PMGLViewOptions::saveData( QDomElement& e )
}
}
-QString PMGLViewFactory::description( ) const
+TQString PMGLViewFactory::description( ) const
{
return i18n( "3D View" );
}
-QString PMGLViewFactory::description( PMViewOptions* vo ) const
+TQString PMGLViewFactory::description( PMViewOptions* vo ) const
{
if( vo && vo->viewType( ) == "glview" )
{
@@ -1760,7 +1760,7 @@ QString PMGLViewFactory::description( PMViewOptions* vo ) const
return description( );
}
-PMViewOptionsWidget* PMGLViewFactory::newOptionsWidget( QWidget* parent,
+PMViewOptionsWidget* PMGLViewFactory::newOptionsWidget( TQWidget* parent,
PMViewOptions* o )
{
return new PMGLViewOptionsWidget( parent, o );
@@ -1772,17 +1772,17 @@ PMViewOptions* PMGLViewFactory::newOptionsInstance( ) const
return o;
}
-PMGLViewOptionsWidget::PMGLViewOptionsWidget( QWidget* parent,
+PMGLViewOptionsWidget::PMGLViewOptionsWidget( TQWidget* parent,
PMViewOptions* o )
: PMViewOptionsWidget( parent )
{
m_pOptions = ( PMGLViewOptions* ) o;
- QHBoxLayout* hl = new QHBoxLayout( this, 0, KDialog::spacingHint( ) );
- QLabel* l = new QLabel( i18n( "3D view type:" ), this );
+ TQHBoxLayout* hl = new TQHBoxLayout( this, 0, KDialog::spacingHint( ) );
+ TQLabel* l = new TQLabel( i18n( "3D view type:" ), this );
hl->addWidget( l );
- m_pGLViewType = new QComboBox( false, this );
+ m_pGLViewType = new TQComboBox( false, this );
m_pGLViewType->insertItem( i18n( "Top" ) );
m_pGLViewType->insertItem( i18n( "Bottom" ) );
m_pGLViewType->insertItem( i18n( "Left" ) );
@@ -1816,8 +1816,8 @@ PMGLViewOptionsWidget::PMGLViewOptionsWidget( QWidget* parent,
break;
}
- connect( m_pGLViewType, SIGNAL( activated( int ) ),
- SLOT( slotGLViewTypeChanged( int ) ) );
+ connect( m_pGLViewType, TQT_SIGNAL( activated( int ) ),
+ TQT_SLOT( slotGLViewTypeChanged( int ) ) );
hl->addWidget( m_pGLViewType );
}
diff --git a/kpovmodeler/pmglview.h b/kpovmodeler/pmglview.h
index b33eeb2b..521d6911 100644
--- a/kpovmodeler/pmglview.h
+++ b/kpovmodeler/pmglview.h
@@ -24,11 +24,11 @@
#include <config.h>
#endif
-#include <qwidget.h>
-#include <qpoint.h>
-#include <qdatetime.h>
-#include <qtimer.h>
-#include <qpixmap.h>
+#include <tqwidget.h>
+#include <tqpoint.h>
+#include <tqdatetime.h>
+#include <tqtimer.h>
+#include <tqpixmap.h>
#include "pmviewbase.h"
#include "pmviewfactory.h"
@@ -43,7 +43,7 @@ class PMObject;
class PMPart;
class PMCamera;
class KConfig;
-class QComboBox;
+class TQComboBox;
/**
* Widget for rendering the scene with OpenGL
@@ -61,16 +61,16 @@ public:
* Constructor
*/
PMGLView( PMPart* part, PMViewType t,
- QWidget* parent = 0, const char* name = 0, WFlags f = 0 );
+ TQWidget* parent = 0, const char* name = 0, WFlags f = 0 );
/**
* Destructor
*/
~PMGLView( );
/** */
- virtual QString viewType( ) const { return QString( "glview" ); }
+ virtual TQString viewType( ) const { return TQString( "glview" ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual void restoreViewConfig( PMViewOptions* );
/** */
@@ -122,7 +122,7 @@ public:
/**
* Returns the 2D control points position in the view
*/
- const QPtrList<PMVector>& controlPointsPosition( ) const
+ const TQPtrList<PMVector>& controlPointsPosition( ) const
{
return m_controlPointsPosition;
}
@@ -173,7 +173,7 @@ public:
/**
* Returns the view type as string
*/
- static QString viewTypeAsString( PMViewType t );
+ static TQString viewTypeAsString( PMViewType t );
/**
* Sets the direct rendering flag
*/
@@ -212,7 +212,7 @@ public slots:
* Called when an object is changed.
* @see PMPart::objectChanged( )
*/
- void slotObjectChanged( PMObject* obj, const int mode, QObject* sender );
+ void slotObjectChanged( PMObject* obj, const int mode, TQObject* sender );
/**
* Restarts rendering
*/
@@ -272,11 +272,11 @@ signals:
/**
* Emitted when an object is changed
*/
- void objectChanged( PMObject* obj, const int mode, QObject* sender );
+ void objectChanged( PMObject* obj, const int mode, TQObject* sender );
/**
* Emitted when the mouse is over a control point
*/
- void controlPointMessage( const QString& msg );
+ void controlPointMessage( const TQString& msg );
/**
* Emitted in the destructor
*/
@@ -284,7 +284,7 @@ signals:
/**
* Emitted when the view type changes
*/
- void viewTypeChanged( const QString& str );
+ void viewTypeChanged( const TQString& str );
protected:
/**
@@ -292,21 +292,21 @@ protected:
*/
virtual void initializeGL( );
/** */
- virtual void resizeEvent( QResizeEvent* e );
+ virtual void resizeEvent( TQResizeEvent* e );
/** */
- virtual void paintEvent( QPaintEvent* e );
+ virtual void paintEvent( TQPaintEvent* e );
/** */
- virtual void mousePressEvent( QMouseEvent* e );
+ virtual void mousePressEvent( TQMouseEvent* e );
/** */
- virtual void mouseReleaseEvent( QMouseEvent* e );
+ virtual void mouseReleaseEvent( TQMouseEvent* e );
/** */
- virtual void mouseMoveEvent( QMouseEvent* e );
+ virtual void mouseMoveEvent( TQMouseEvent* e );
/** */
- virtual void keyPressEvent( QKeyEvent* e );
+ virtual void keyPressEvent( TQKeyEvent* e );
/**
* Event to zoom in / zoom out the viewport by mouse wheel
*/
- virtual void wheelEvent( QWheelEvent* e );
+ virtual void wheelEvent( TQWheelEvent* e );
private:
/**
@@ -339,11 +339,11 @@ private:
/**
* Starts a graphical change
*/
- void startChange( const QPoint& mousePos );
+ void startChange( const TQPoint& mousePos );
/**
* Graphical Change
*/
- void graphicalChange( const QPoint& mousePos );
+ void graphicalChange( const TQPoint& mousePos );
/**
* Selects/deselecs the control point. If cp is 0, all control points are
* selected/deselected.
@@ -421,19 +421,19 @@ private:
/**
* The old mouse position
*/
- QPoint m_mousePos;
- QPoint m_changeStartPos;
- QPoint m_currentMousePos;
- QTimer m_startTimer;
- QTime m_changeStartTime;
+ TQPoint m_mousePos;
+ TQPoint m_changeStartPos;
+ TQPoint m_currentMousePos;
+ TQTimer m_startTimer;
+ TQTime m_changeStartTime;
bool m_bDeselectUnderMouse;
bool m_bSelectUnderMouse;
/**
* Member variables for multiple selection mode
*/
- QPixmap m_selectionPixmap[4];
- QPoint m_selectionStart, m_selectionEnd;
+ TQPixmap m_selectionPixmap[4];
+ TQPoint m_selectionStart, m_selectionEnd;
bool m_bMultipleSelectionMode;
bool m_bSelectionStarted;
@@ -442,8 +442,8 @@ private:
*/
bool m_bAutoScroll;
double m_autoScrollSpeed;
- QTimer m_autoScrollTimer;
- QTime m_lastAutoScrollUpdate;
+ TQTimer m_autoScrollTimer;
+ TQTime m_lastAutoScrollUpdate;
int m_autoScrollDirectionX, m_autoScrollDirectionY;
/**
* Rendering
@@ -474,7 +474,7 @@ private:
/**
* Position of the control points on the screen
*/
- QPtrList<PMVector> m_controlPointsPosition;
+ TQPtrList<PMVector> m_controlPointsPosition;
/**
* Position of the last right mouse click
*/
@@ -518,7 +518,7 @@ private:
/**
* The current object actions
*/
- QPtrList<PMObjectAction> m_objectActions;
+ TQPtrList<PMObjectAction> m_objectActions;
static bool s_bDirect;
};
@@ -537,11 +537,11 @@ public:
m_glViewType = t;
}
virtual PMViewOptions* copy( ) const { return new PMGLViewOptions( *this ); }
- virtual QString viewType( ) const { return QString( "glview" ); }
+ virtual TQString viewType( ) const { return TQString( "glview" ); }
PMGLView::PMViewType glViewType( ) const { return m_glViewType; }
void setGLViewType( PMGLView::PMViewType t ) { m_glViewType = t; }
- virtual void loadData( QDomElement& e );
- virtual void saveData( QDomElement& e );
+ virtual void loadData( TQDomElement& e );
+ virtual void saveData( TQDomElement& e );
private:
PMGLView::PMViewType m_glViewType;
@@ -554,16 +554,16 @@ class PMGLViewFactory : public PMViewTypeFactory
{
public:
PMGLViewFactory( ) { }
- virtual QString viewType( ) const { return QString( "glview" ); }
- virtual QString description( ) const;
- virtual QString description( PMViewOptions* ) const;
- virtual QString iconName( ) const { return QString( "pmglview" ); }
- virtual PMViewBase* newInstance( QWidget* parent, PMPart* part ) const
+ virtual TQString viewType( ) const { return TQString( "glview" ); }
+ virtual TQString description( ) const;
+ virtual TQString description( PMViewOptions* ) const;
+ virtual TQString iconName( ) const { return TQString( "pmglview" ); }
+ virtual PMViewBase* newInstance( TQWidget* parent, PMPart* part ) const
{
return new PMGLView( part, PMGLView::PMViewPosX, parent );
}
virtual PMViewOptions* newOptionsInstance( ) const;
- virtual PMViewOptionsWidget* newOptionsWidget( QWidget*, PMViewOptions* );
+ virtual PMViewOptionsWidget* newOptionsWidget( TQWidget*, PMViewOptions* );
};
/**
@@ -576,14 +576,14 @@ public:
/**
* Default constructor
*/
- PMGLViewOptionsWidget( QWidget* parent, PMViewOptions* o );
+ PMGLViewOptionsWidget( TQWidget* parent, PMViewOptions* o );
protected slots:
void slotGLViewTypeChanged( int );
private:
PMGLViewOptions* m_pOptions;
- QComboBox* m_pGLViewType;
+ TQComboBox* m_pGLViewType;
};
#endif
diff --git a/kpovmodeler/pmgraphicalobject.cpp b/kpovmodeler/pmgraphicalobject.cpp
index 85f4ad22..c60c40cb 100644
--- a/kpovmodeler/pmgraphicalobject.cpp
+++ b/kpovmodeler/pmgraphicalobject.cpp
@@ -100,7 +100,7 @@ void PMGraphicalObject::cleanUp( ) const
Base::cleanUp( );
}
-void PMGraphicalObject::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMGraphicalObject::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
e.setAttribute( "no_shadow", m_noShadow );
e.setAttribute( "no_image", m_noImage );
diff --git a/kpovmodeler/pmgraphicalobject.h b/kpovmodeler/pmgraphicalobject.h
index f07ac46f..399e351d 100644
--- a/kpovmodeler/pmgraphicalobject.h
+++ b/kpovmodeler/pmgraphicalobject.h
@@ -56,7 +56,7 @@ public:
virtual void cleanUp( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
diff --git a/kpovmodeler/pmgraphicalobjectedit.cpp b/kpovmodeler/pmgraphicalobjectedit.cpp
index 2a06485c..c623c51f 100644
--- a/kpovmodeler/pmgraphicalobjectedit.cpp
+++ b/kpovmodeler/pmgraphicalobjectedit.cpp
@@ -19,16 +19,16 @@
#include "pmgraphicalobjectedit.h"
#include "pmgraphicalobject.h"
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qspinbox.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqspinbox.h>
#include <klocale.h>
const int c_minValue = -1000;
const int c_maxValue = 1000;
-PMGraphicalObjectEdit::PMGraphicalObjectEdit( QWidget* parent, const char* name )
+PMGraphicalObjectEdit::PMGraphicalObjectEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -36,38 +36,38 @@ PMGraphicalObjectEdit::PMGraphicalObjectEdit( QWidget* parent, const char* name
void PMGraphicalObjectEdit::createBottomWidgets( )
{
- QGridLayout* gl = new QGridLayout( topLayout( ), 2, 2 );
- m_pNoShadowButton = new QCheckBox( i18n( "No shadow" ), this );
+ TQGridLayout* gl = new TQGridLayout( topLayout( ), 2, 2 );
+ m_pNoShadowButton = new TQCheckBox( i18n( "No shadow" ), this );
gl->addWidget( m_pNoShadowButton, 0, 0 );
- m_pNoImageButton = new QCheckBox( i18n( "No image" ), this );
+ m_pNoImageButton = new TQCheckBox( i18n( "No image" ), this );
gl->addWidget( m_pNoImageButton, 0, 1 );
- m_pNoReflectionButton = new QCheckBox( i18n( "No reflection" ), this );
+ m_pNoReflectionButton = new TQCheckBox( i18n( "No reflection" ), this );
gl->addWidget( m_pNoReflectionButton, 1, 0 );
- m_pDoubleIlluminateButton = new QCheckBox( i18n( "Double illuminate" ), this );
+ m_pDoubleIlluminateButton = new TQCheckBox( i18n( "Double illuminate" ), this );
gl->addWidget( m_pDoubleIlluminateButton, 1, 1 );
- m_pExport = new QCheckBox( i18n( "Export to renderer" ), this );
+ m_pExport = new TQCheckBox( i18n( "Export to renderer" ), this );
topLayout( )->addWidget( m_pExport );
- QHBoxLayout* hl = new QHBoxLayout( topLayout( ) );
- hl->addWidget( new QLabel( i18n( "Visibility level: " ), this ) );
- m_pVisibilityLevel = new QSpinBox( c_minValue, c_maxValue, 1, this );
+ TQHBoxLayout* hl = new TQHBoxLayout( topLayout( ) );
+ hl->addWidget( new TQLabel( i18n( "Visibility level: " ), this ) );
+ m_pVisibilityLevel = new TQSpinBox( c_minValue, c_maxValue, 1, this );
hl->addWidget( m_pVisibilityLevel );
- m_pResultingVisibility = new QLabel( QString( "( )" ), this );
+ m_pResultingVisibility = new TQLabel( TQString( "( )" ), this );
hl->addWidget( m_pResultingVisibility );
hl->addSpacing( 10 );
- m_pRelativeVisibility = new QCheckBox( i18n( "Relative" ), this );
+ m_pRelativeVisibility = new TQCheckBox( i18n( "Relative" ), this );
hl->addWidget( m_pRelativeVisibility );
hl->addStretch( 1 );
- connect( m_pNoShadowButton, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pNoImageButton, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pNoReflectionButton, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pDoubleIlluminateButton, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pRelativeVisibility, SIGNAL( clicked( ) ),
- SLOT( slotRelativeChanged( ) ) );
- connect( m_pVisibilityLevel, SIGNAL( valueChanged( int ) ),
- SLOT( slotLevelChanged( int ) ) );
- connect( m_pExport, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pNoShadowButton, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pNoImageButton, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pNoReflectionButton, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pDoubleIlluminateButton, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pRelativeVisibility, TQT_SIGNAL( clicked( ) ),
+ TQT_SLOT( slotRelativeChanged( ) ) );
+ connect( m_pVisibilityLevel, TQT_SIGNAL( valueChanged( int ) ),
+ TQT_SLOT( slotLevelChanged( int ) ) );
+ connect( m_pExport, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
Base::createBottomWidgets( );
@@ -162,7 +162,7 @@ void PMGraphicalObjectEdit::recalculateResultingVisibility( )
absoluteFound = true;
}
}
- m_pResultingVisibility->setText( QString( "(%1)" ).arg( level ) );
+ m_pResultingVisibility->setText( TQString( "(%1)" ).arg( level ) );
}
#include "pmgraphicalobjectedit.moc"
diff --git a/kpovmodeler/pmgraphicalobjectedit.h b/kpovmodeler/pmgraphicalobjectedit.h
index 3b31a794..29f53a0f 100644
--- a/kpovmodeler/pmgraphicalobjectedit.h
+++ b/kpovmodeler/pmgraphicalobjectedit.h
@@ -27,9 +27,9 @@
#include "pmdetailobjectedit.h"
class PMGraphicalObject;
-class QCheckBox;
-class QSpinBox;
-class QLabel;
+class TQCheckBox;
+class TQSpinBox;
+class TQLabel;
/**
* Dialog edit class for @ref PMGraphicalObject.
@@ -42,7 +42,7 @@ public:
/**
* Creates a PMGraphicalObjectEdit with parent and name
*/
- PMGraphicalObjectEdit( QWidget* parent, const char* name = 0 );
+ PMGraphicalObjectEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -64,14 +64,14 @@ private:
private:
PMGraphicalObject* m_pDisplayedObject;
- QCheckBox* m_pNoShadowButton;
- QCheckBox* m_pNoImageButton;
- QCheckBox* m_pNoReflectionButton;
- QCheckBox* m_pDoubleIlluminateButton;
- QSpinBox* m_pVisibilityLevel;
- QCheckBox* m_pRelativeVisibility;
- QLabel* m_pResultingVisibility;
- QCheckBox* m_pExport;
+ TQCheckBox* m_pNoShadowButton;
+ TQCheckBox* m_pNoImageButton;
+ TQCheckBox* m_pNoReflectionButton;
+ TQCheckBox* m_pDoubleIlluminateButton;
+ TQSpinBox* m_pVisibilityLevel;
+ TQCheckBox* m_pRelativeVisibility;
+ TQLabel* m_pResultingVisibility;
+ TQCheckBox* m_pExport;
};
diff --git a/kpovmodeler/pmgridsettings.cpp b/kpovmodeler/pmgridsettings.cpp
index 20973935..04bdbdd3 100644
--- a/kpovmodeler/pmgridsettings.cpp
+++ b/kpovmodeler/pmgridsettings.cpp
@@ -22,58 +22,58 @@
#include "pmcontrolpoint.h"
#include "pmdefaults.h"
-#include <qlayout.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
#include <kcolorbutton.h>
#include <klocale.h>
-PMGridSettings::PMGridSettings( QWidget* parent, const char* name )
+PMGridSettings::PMGridSettings( TQWidget* parent, const char* name )
: PMSettingsDialogPage( parent, name )
{
- QHBoxLayout* hlayout;
- QVBoxLayout* vlayout;
- QVBoxLayout* gvl;
- QGridLayout* grid;
- QGroupBox* gb;
-
- vlayout = new QVBoxLayout( this, 0, KDialog::spacingHint( ) );
- gb = new QGroupBox( i18n( "Displayed Grid" ), this );
+ TQHBoxLayout* hlayout;
+ TQVBoxLayout* vlayout;
+ TQVBoxLayout* gvl;
+ TQGridLayout* grid;
+ TQGroupBox* gb;
+
+ vlayout = new TQVBoxLayout( this, 0, KDialog::spacingHint( ) );
+ gb = new TQGroupBox( i18n( "Displayed Grid" ), this );
vlayout->addWidget( gb );
- gvl = new QVBoxLayout( gb, KDialog::marginHint( ), KDialog::spacingHint( ) );
+ gvl = new TQVBoxLayout( gb, KDialog::marginHint( ), KDialog::spacingHint( ) );
gvl->addSpacing( 10 );
- hlayout = new QHBoxLayout( gvl );
- hlayout->addWidget( new QLabel( i18n( "Color:" ), gb ) );
+ hlayout = new TQHBoxLayout( gvl );
+ hlayout->addWidget( new TQLabel( i18n( "Color:" ), gb ) );
m_pGridColor = new KColorButton( gb );
hlayout->addWidget( m_pGridColor );
hlayout->addStretch( 1 );
- hlayout = new QHBoxLayout( gvl );
- hlayout->addWidget( new QLabel( i18n( "Distance:" ), gb ) );
+ hlayout = new TQHBoxLayout( gvl );
+ hlayout->addWidget( new TQLabel( i18n( "Distance:" ), gb ) );
m_pGridDistance = new PMIntEdit( gb );
m_pGridDistance->setValidation( true, 20, false, 0 );
hlayout->addWidget( m_pGridDistance );
hlayout->addStretch( 1 );
- gb = new QGroupBox( i18n( "Control Point Grid" ), this );
+ gb = new TQGroupBox( i18n( "Control Point Grid" ), this );
vlayout->addWidget( gb );
- gvl = new QVBoxLayout( gb, KDialog::marginHint( ), KDialog::spacingHint( ) );
+ gvl = new TQVBoxLayout( gb, KDialog::marginHint( ), KDialog::spacingHint( ) );
gvl->addSpacing( 10 );
- hlayout = new QHBoxLayout( gvl );
- grid = new QGridLayout( hlayout, 3, 2 );
- grid->addWidget( new QLabel( i18n( "2D/3D movement:" ), gb ), 0, 0 );
+ hlayout = new TQHBoxLayout( gvl );
+ grid = new TQGridLayout( hlayout, 3, 2 );
+ grid->addWidget( new TQLabel( i18n( "2D/3D movement:" ), gb ), 0, 0 );
m_pMoveGrid = new PMFloatEdit( gb );
m_pMoveGrid->setValidation( true, 0.001, true, 100 );
grid->addWidget( m_pMoveGrid, 0, 1 );
- grid->addWidget( new QLabel( i18n( "Scale:" ), gb ), 1, 0 );
+ grid->addWidget( new TQLabel( i18n( "Scale:" ), gb ), 1, 0 );
m_pScaleGrid = new PMFloatEdit( gb );
m_pScaleGrid->setValidation( true, 0.001, true, 100 );
grid->addWidget( m_pScaleGrid, 1, 1 );
- grid->addWidget( new QLabel( i18n( "Rotation:" ), gb ), 2, 0 );
+ grid->addWidget( new TQLabel( i18n( "Rotation:" ), gb ), 2, 0 );
m_pRotateGrid = new PMFloatEdit( gb );
m_pRotateGrid->setValidation( true, 0.001, true, 180 );
grid->addWidget( m_pRotateGrid, 2, 1 );
diff --git a/kpovmodeler/pmgridsettings.h b/kpovmodeler/pmgridsettings.h
index 724ade35..214f3af3 100644
--- a/kpovmodeler/pmgridsettings.h
+++ b/kpovmodeler/pmgridsettings.h
@@ -38,7 +38,7 @@ public:
/**
* Default constructor
*/
- PMGridSettings( QWidget* parent, const char* name = 0 );
+ PMGridSettings( TQWidget* parent, const char* name = 0 );
/** */
virtual void displaySettings( );
/** */
diff --git a/kpovmodeler/pmheightfield.cpp b/kpovmodeler/pmheightfield.cpp
index e729282a..6806437a 100644
--- a/kpovmodeler/pmheightfield.cpp
+++ b/kpovmodeler/pmheightfield.cpp
@@ -29,8 +29,8 @@
#include <klocale.h>
const PMHeightField::HeightFieldType c_defaultType = PMHeightField::HFgif;
-const QString c_defaultTypeText = QString( "gif" );
-const QString c_defaultFileName = QString( "" );
+const TQString c_defaultTypeText = TQString( "gif" );
+const TQString c_defaultFileName = TQString( "" );
const bool c_defaultHierarchy = true;
const bool c_defaultSmooth = false;
const double c_defaultWaterLevel = 0.0;
@@ -82,12 +82,12 @@ PMHeightField::~PMHeightField( )
delete m_pROAM;
}
-QString PMHeightField::description( ) const
+TQString PMHeightField::description( ) const
{
return i18n( "height field" );
}
-void PMHeightField::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMHeightField::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
e.setAttribute( "hf_type", typeToString( m_hfType ) );
e.setAttribute( "file_name", m_fileName );
@@ -146,7 +146,7 @@ void PMHeightField::setHeightFieldType( PMHeightField::HeightFieldType t )
}
}
-void PMHeightField::setFileName( const QString& f )
+void PMHeightField::setFileName( const TQString& f )
{
if( f != m_fileName )
{
@@ -200,7 +200,7 @@ void PMHeightField::setWaterLevel( double wl )
}
}
-PMDialogEditBase* PMHeightField::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMHeightField::editWidget( TQWidget* parent ) const
{
return new PMHeightFieldEdit( parent );
}
@@ -396,37 +396,37 @@ PMViewStructure* PMHeightField::defaultViewStructure( ) const
return s_pDefaultViewStructure;
}
-QString PMHeightField::typeToString( PMHeightField::HeightFieldType t )
+TQString PMHeightField::typeToString( PMHeightField::HeightFieldType t )
{
- QString s;
+ TQString s;
switch( t )
{
case HFgif:
- s = QString( "gif" );
+ s = TQString( "gif" );
break;
case HFtga:
- s = QString( "tga" );
+ s = TQString( "tga" );
break;
case HFpot:
- s = QString( "pot" );
+ s = TQString( "pot" );
break;
case HFpng:
- s = QString( "png" );
+ s = TQString( "png" );
break;
case HFpgm:
- s = QString( "pgm" );
+ s = TQString( "pgm" );
break;
case HFppm:
- s = QString( "ppm" );
+ s = TQString( "ppm" );
break;
case HFsys:
- s = QString( "sys" );
+ s = TQString( "sys" );
break;
}
return s;
}
-PMHeightField::HeightFieldType PMHeightField::stringToType( const QString &str )
+PMHeightField::HeightFieldType PMHeightField::stringToType( const TQString &str )
{
HeightFieldType t = HFgif;
if( str == "gif" )
diff --git a/kpovmodeler/pmheightfield.h b/kpovmodeler/pmheightfield.h
index 4ab961c8..443226ba 100644
--- a/kpovmodeler/pmheightfield.h
+++ b/kpovmodeler/pmheightfield.h
@@ -57,24 +57,24 @@ public:
/** */
virtual PMObject* copy( ) const { return new PMHeightField( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMHeightFieldEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/**
* Returns the name of the pixmap that is displayed in the tree view
* and dialog view
*/
- virtual QString pixmap( ) const { return QString( "pmheightfield" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmheightfield" ); }
/**
* Returns the height field type
@@ -87,11 +87,11 @@ public:
/**
* Returns the file name
*/
- QString fileName( ) const { return m_fileName; }
+ TQString fileName( ) const { return m_fileName; }
/**
* Sets the file name
*/
- void setFileName( const QString& name );
+ void setFileName( const TQString& name );
/**
* Returns the hierarchy flag
*/
@@ -133,8 +133,8 @@ public:
/** */
virtual void cleanUp( ) const;
- static QString typeToString( HeightFieldType t );
- static HeightFieldType stringToType( const QString &str );
+ static TQString typeToString( HeightFieldType t );
+ static HeightFieldType stringToType( const TQString &str );
protected:
/** */
@@ -159,7 +159,7 @@ private:
PMHierarchyID, PMSmoothID, PMWaterLevelID };
HeightFieldType m_hfType;
- QString m_fileName;
+ TQString m_fileName;
bool m_hierarchy;
bool m_smooth;
double m_waterLevel;
diff --git a/kpovmodeler/pmheightfieldedit.cpp b/kpovmodeler/pmheightfieldedit.cpp
index c5a65998..5f9346f0 100644
--- a/kpovmodeler/pmheightfieldedit.cpp
+++ b/kpovmodeler/pmheightfieldedit.cpp
@@ -20,18 +20,18 @@
#include "pmheightfield.h"
#include "pmlineedits.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qslider.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqslider.h>
#include <klocale.h>
#include <kiconloader.h>
#include <kfiledialog.h>
-PMHeightFieldEdit::PMHeightFieldEdit( QWidget* parent, const char* name )
+PMHeightFieldEdit::PMHeightFieldEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -41,9 +41,9 @@ void PMHeightFieldEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- QHBoxLayout* hl = new QHBoxLayout( topLayout( ) );
- hl->addWidget( new QLabel( i18n( "Type:" ), this ) );
- m_pHeightFieldType = new QComboBox( false, this );
+ TQHBoxLayout* hl = new TQHBoxLayout( topLayout( ) );
+ hl->addWidget( new TQLabel( i18n( "Type:" ), this ) );
+ m_pHeightFieldType = new TQComboBox( false, this );
hl->addWidget( m_pHeightFieldType );
hl->addStretch( 0 );
m_pHeightFieldType->insertItem( "gif" );
@@ -54,36 +54,36 @@ void PMHeightFieldEdit::createTopWidgets( )
m_pHeightFieldType->insertItem( "ppm" );
m_pHeightFieldType->insertItem( "sys" );
- hl = new QHBoxLayout( topLayout( ) );
- hl->addWidget( new QLabel( i18n( "File name:" ), this ) );
- m_pFileName = new QLineEdit( this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ hl->addWidget( new TQLabel( i18n( "File name:" ), this ) );
+ m_pFileName = new TQLineEdit( this );
hl->addWidget( m_pFileName );
- m_pChooseFileName = new QPushButton( this );
+ m_pChooseFileName = new TQPushButton( this );
m_pChooseFileName->setPixmap( SmallIcon( "fileopen" ) );
hl->addWidget( m_pChooseFileName );
- hl = new QHBoxLayout( topLayout( ) );
- hl->addWidget( new QLabel( i18n( "Water level:" ), this ) );
+ hl = new TQHBoxLayout( topLayout( ) );
+ hl->addWidget( new TQLabel( i18n( "Water level:" ), this ) );
m_pWaterLevel = new PMFloatEdit( this );
m_pWaterLevel->setValidation( true, 0.0, true, 1.0 );
hl->addWidget( m_pWaterLevel );
hl->addStretch( 1 );
- m_pHierarchy = new QCheckBox( i18n( "Hierarchy" ), this );
+ m_pHierarchy = new TQCheckBox( i18n( "Hierarchy" ), this );
topLayout( )->addWidget( m_pHierarchy );
- m_pSmooth = new QCheckBox( i18n( "Smooth" ), this );
+ m_pSmooth = new TQCheckBox( i18n( "Smooth" ), this );
topLayout( )->addWidget( m_pSmooth );
- connect( m_pHeightFieldType, SIGNAL( activated( int ) ),
- SLOT( slotTypeChanged( int ) ) );
- connect( m_pFileName, SIGNAL( textChanged( const QString& ) ),
- SLOT( slotFileNameChanged( const QString& ) ) );
- connect( m_pChooseFileName, SIGNAL( clicked( ) ),
- SLOT( slotFileNameClicked( ) ) );
- connect( m_pWaterLevel, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pHierarchy, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pSmooth, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pHeightFieldType, TQT_SIGNAL( activated( int ) ),
+ TQT_SLOT( slotTypeChanged( int ) ) );
+ connect( m_pFileName, TQT_SIGNAL( textChanged( const TQString& ) ),
+ TQT_SLOT( slotFileNameChanged( const TQString& ) ) );
+ connect( m_pChooseFileName, TQT_SIGNAL( clicked( ) ),
+ TQT_SLOT( slotFileNameClicked( ) ) );
+ connect( m_pWaterLevel, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pHierarchy, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pSmooth, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
}
void PMHeightFieldEdit::displayObject( PMObject* o )
@@ -182,14 +182,14 @@ void PMHeightFieldEdit::slotTypeChanged( int )
emit dataChanged( );
}
-void PMHeightFieldEdit::slotFileNameChanged( const QString& )
+void PMHeightFieldEdit::slotFileNameChanged( const TQString& )
{
emit dataChanged( );
}
void PMHeightFieldEdit::slotFileNameClicked( )
{
- QString str = KFileDialog::getOpenFileName( QString::null, QString::null );
+ TQString str = KFileDialog::getOpenFileName( TQString::null, TQString::null );
if( !str.isEmpty() )
{
diff --git a/kpovmodeler/pmheightfieldedit.h b/kpovmodeler/pmheightfieldedit.h
index 24ea2e6e..8a32aa00 100644
--- a/kpovmodeler/pmheightfieldedit.h
+++ b/kpovmodeler/pmheightfieldedit.h
@@ -28,10 +28,10 @@
class PMHeightField;
class PMFloatEdit;
-class QCheckBox;
-class QComboBox;
-class QLineEdit;
-class QPushButton;
+class TQCheckBox;
+class TQComboBox;
+class TQLineEdit;
+class TQPushButton;
/**
* Dialog edit class for @ref PMHeightField
@@ -44,7 +44,7 @@ public:
/**
* Creates a PMHeightFieldEdit with parent and name
*/
- PMHeightFieldEdit( QWidget* parent, const char* name = 0 );
+ PMHeightFieldEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -60,7 +60,7 @@ protected slots:
/**
* Slot called when the file name is changed
*/
- void slotFileNameChanged( const QString& s );
+ void slotFileNameChanged( const TQString& s );
/**
* Slot called when the choose file button is pressed
*/
@@ -74,11 +74,11 @@ protected:
private:
PMHeightField* m_pDisplayedObject;
- QComboBox* m_pHeightFieldType;
- QLineEdit* m_pFileName;
- QPushButton* m_pChooseFileName;
- QCheckBox* m_pSmooth;
- QCheckBox* m_pHierarchy;
+ TQComboBox* m_pHeightFieldType;
+ TQLineEdit* m_pFileName;
+ TQPushButton* m_pChooseFileName;
+ TQCheckBox* m_pSmooth;
+ TQCheckBox* m_pHierarchy;
PMFloatEdit* m_pWaterLevel;
};
diff --git a/kpovmodeler/pmheightfieldroam.cpp b/kpovmodeler/pmheightfieldroam.cpp
index eb2790a5..d4809aac 100644
--- a/kpovmodeler/pmheightfieldroam.cpp
+++ b/kpovmodeler/pmheightfieldroam.cpp
@@ -19,13 +19,13 @@
#include <cstdlib>
#include <new>
-#include <qstring.h>
-#include <qimage.h>
-#include <qcolor.h>
+#include <tqstring.h>
+#include <tqimage.h>
+#include <tqcolor.h>
#include <kdebug.h>
-PMHeightFieldROAM::PMHeightFieldROAM( const QString &fileName )
+PMHeightFieldROAM::PMHeightFieldROAM( const TQString &fileName )
{
m_size = 0;
m_numLines = m_usedPoints = 0;
@@ -142,10 +142,10 @@ bool PMHeightFieldROAM::lineExist( int x, int y, int line ) const
else return false;
}
-bool PMHeightFieldROAM::imageToData(const QString &fileName)
+bool PMHeightFieldROAM::imageToData(const TQString &fileName)
{
- QImage scaledMap;
- QImage mapFile( fileName );
+ TQImage scaledMap;
+ TQImage mapFile( fileName );
if ( mapFile.isNull( ) )
return false;
diff --git a/kpovmodeler/pmheightfieldroam.h b/kpovmodeler/pmheightfieldroam.h
index e2802c6b..3f21c630 100644
--- a/kpovmodeler/pmheightfieldroam.h
+++ b/kpovmodeler/pmheightfieldroam.h
@@ -18,7 +18,7 @@
#ifndef PMHEIGHTFIELDROAM_H
#define PMHEIGHTFIELDROAM_H
-class QString;
+class TQString;
/**
* ROAM display class for @ref PMHeightField
@@ -81,7 +81,7 @@ class PMHeightFieldROAM
* @param filename The name of the file to load
* @return true if succesful false it it fails
*/
- bool imageToData( const QString &fileName );
+ bool imageToData( const TQString &fileName );
/**
* Sets the Maximum Level of the tree.
@@ -174,7 +174,7 @@ public:
* Constructor for class
* @param fileName Source file for the map
*/
- PMHeightFieldROAM( const QString &fileName );
+ PMHeightFieldROAM( const TQString &fileName );
/**
* Class Destructor relases all the memory
*/
diff --git a/kpovmodeler/pmimagemap.cpp b/kpovmodeler/pmimagemap.cpp
index 7fcaeb64..5f28c49a 100644
--- a/kpovmodeler/pmimagemap.cpp
+++ b/kpovmodeler/pmimagemap.cpp
@@ -86,7 +86,7 @@ PMImageMap::~PMImageMap( )
{
}
-void PMImageMap::serialize( QDomElement& e, QDomDocument& doc ) const
+void PMImageMap::serialize( TQDomElement& e, TQDomDocument& doc ) const
{
switch( m_bitmapType )
{
@@ -125,12 +125,12 @@ void PMImageMap::serialize( QDomElement& e, QDomDocument& doc ) const
e.setAttribute( "transmit_all", m_transmitAll );
e.setAttribute( "once", m_once );
- QDomElement extra_data = doc.createElement( "extra_data" );
+ TQDomElement extra_data = doc.createElement( "extra_data" );
- QDomElement data = doc.createElement( "indexed_filters" );
- QDomElement p;
+ TQDomElement data = doc.createElement( "indexed_filters" );
+ TQDomElement p;
- QValueList<PMPaletteValue>::ConstIterator it;
+ TQValueList<PMPaletteValue>::ConstIterator it;
for( it = m_filters.begin( ); it != m_filters.end( ); ++it )
{
p = doc.createElement( "index_filter" );
@@ -182,7 +182,7 @@ void PMImageMap::serialize( QDomElement& e, QDomDocument& doc ) const
void PMImageMap::readAttributes( const PMXMLHelper& h )
{
- QString str;
+ TQString str;
str = h.stringAttribute( "bitmap_type", "sys" );
if( str == "gif" )
@@ -211,19 +211,19 @@ void PMImageMap::readAttributes( const PMXMLHelper& h )
m_transmitAll = h.doubleAttribute( "transmit_all", transmitAllDefault );
m_once = h.boolAttribute( "once", onceDefault );
- QDomElement e = h.extraData( );
+ TQDomElement e = h.extraData( );
if( !e.isNull( ) )
{
- QDomNode c = e.firstChild( );
+ TQDomNode c = e.firstChild( );
while( !c.isNull( ) )
{
if( c.isElement( ) )
{
- QDomElement ce = c.toElement( );
+ TQDomElement ce = c.toElement( );
if( ce.tagName( ) == "indexed_filters" )
{
m_filters.clear( );
- QDomNode cd = ce.firstChild( );
+ TQDomNode cd = ce.firstChild( );
while( !cd.isNull( ) )
{
if( cd.isElement( ) )
@@ -238,7 +238,7 @@ void PMImageMap::readAttributes( const PMXMLHelper& h )
if( ce.tagName( ) == "indexed_transmits" )
{
m_transmits.clear( );
- QDomNode cd = ce.firstChild( );
+ TQDomNode cd = ce.firstChild( );
while( !cd.isNull( ) )
{
if( cd.isElement( ) )
@@ -344,7 +344,7 @@ void PMImageMap::cleanUp( ) const
Base::cleanUp( );
}
-QString PMImageMap::description( ) const
+TQString PMImageMap::description( ) const
{
return i18n( "imagemap" );
}
@@ -359,7 +359,7 @@ void PMImageMap::setBitmapType( PMBitmapType c )
}
}
-void PMImageMap::setBitmapFileName( const QString& c )
+void PMImageMap::setBitmapFileName( const TQString& c )
{
if( c != m_bitmapFile )
{
@@ -439,7 +439,7 @@ void PMImageMap::setInterpolateType( PMInterpolateType c )
}
}
-void PMImageMap::setFilters( const QValueList<PMPaletteValue>& c )
+void PMImageMap::setFilters( const TQValueList<PMPaletteValue>& c )
{
if( m_filters != c )
{
@@ -449,7 +449,7 @@ void PMImageMap::setFilters( const QValueList<PMPaletteValue>& c )
}
}
-void PMImageMap::setTransmits( const QValueList<PMPaletteValue>& c )
+void PMImageMap::setTransmits( const TQValueList<PMPaletteValue>& c )
{
if( m_transmits != c )
{
@@ -459,7 +459,7 @@ void PMImageMap::setTransmits( const QValueList<PMPaletteValue>& c )
}
}
-PMDialogEditBase* PMImageMap::editWidget( QWidget* parent ) const
+PMDialogEditBase* PMImageMap::editWidget( TQWidget* parent ) const
{
return new PMImageMapEdit( parent );
}
diff --git a/kpovmodeler/pmimagemap.h b/kpovmodeler/pmimagemap.h
index 3291994d..3a43d949 100644
--- a/kpovmodeler/pmimagemap.h
+++ b/kpovmodeler/pmimagemap.h
@@ -68,7 +68,7 @@ public:
/** */
virtual PMObject* copy( ) const { return new PMImageMap( *this ); }
/** */
- virtual QString description( ) const;
+ virtual TQString description( ) const;
/** */
virtual PMMetaObject* metaObject( ) const;
@@ -76,17 +76,17 @@ public:
virtual void cleanUp( ) const;
/** */
- virtual QString pixmap( ) const { return QString( "pmimagemap" ); }
+ virtual TQString pixmap( ) const { return TQString( "pmimagemap" ); }
/** */
- virtual void serialize( QDomElement& e, QDomDocument& doc ) const;
+ virtual void serialize( TQDomElement& e, TQDomDocument& doc ) const;
/** */
virtual void readAttributes( const PMXMLHelper& h );
/**
* Returns a new @ref PMImageMapEdit
*/
- virtual PMDialogEditBase* editWidget( QWidget* parent ) const;
+ virtual PMDialogEditBase* editWidget( TQWidget* parent ) const;
/**
* Gets the bitmap type
@@ -95,7 +95,7 @@ public:
/**
* Gets the bitmap file name
*/
- QString bitmapFile( ) const { return m_bitmapFile; }
+ TQString bitmapFile( ) const { return m_bitmapFile; }
/**
* Returns true if filter all is enabled
*/
@@ -127,11 +127,11 @@ public:
/**
* Gets the list of indexed filters
*/
- QValueList<PMPaletteValue> filters( ) const { return m_filters; }
+ TQValueList<PMPaletteValue> filters( ) const { return m_filters; }
/**
* Gets the list of indexed transmits
*/
- QValueList<PMPaletteValue> transmits( ) const { return m_transmits; }
+ TQValueList<PMPaletteValue> transmits( ) const { return m_transmits; }
/**
* Sets the imagemap type
@@ -139,7 +139,7 @@ public:
void setBitmapType( PMBitmapType c );
/**
* Sets the bitmap file name*/
- void setBitmapFileName( const QString& c );
+ void setBitmapFileName( const TQString& c );
/**
* Enables/Disables Filter All
*/
@@ -171,11 +171,11 @@ public:
/**
* Set the list of indexed filters
*/
- void setFilters( const QValueList<PMPaletteValue>& filters );
+ void setFilters( const TQValueList<PMPaletteValue>& filters );
/**
* Set the list of indexed transmits
*/
- void setTransmits( const QValueList<PMPaletteValue>& transmits );
+ void setTransmits( const TQValueList<PMPaletteValue>& transmits );
/** */
virtual void restoreMemento( PMMemento* s );
private:
@@ -192,7 +192,7 @@ private:
* ImageMap type
*/
PMBitmapType m_bitmapType;
- QString m_bitmapFile;
+ TQString m_bitmapFile;
bool m_enableFilterAll;
float m_filterAll;
bool m_enableTransmitAll;
@@ -200,8 +200,8 @@ private:
bool m_once;
PMMapType m_mapType;
PMInterpolateType m_interpolateType;
- QValueList<PMPaletteValue> m_filters;
- QValueList<PMPaletteValue> m_transmits;
+ TQValueList<PMPaletteValue> m_filters;
+ TQValueList<PMPaletteValue> m_transmits;
static PMMetaObject* s_pMetaObject;
};
diff --git a/kpovmodeler/pmimagemapedit.cpp b/kpovmodeler/pmimagemapedit.cpp
index c43443df..09d5eb0a 100644
--- a/kpovmodeler/pmimagemapedit.cpp
+++ b/kpovmodeler/pmimagemapedit.cpp
@@ -23,14 +23,14 @@
#include "pmpalettevalueedit.h"
#include "pmvector.h"
-#include <qwidget.h>
-#include <qlayout.h>
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
-#include <qtooltip.h>
+#include <tqwidget.h>
+#include <tqlayout.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
+#include <tqtooltip.h>
#include <ktabctl.h>
#include <klocale.h>
#include <kmessagebox.h>
@@ -38,7 +38,7 @@
#include <kfiledialog.h>
#include <kiconloader.h>
-PMImageMapEdit::PMImageMapEdit( QWidget* parent, const char* name )
+PMImageMapEdit::PMImageMapEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -46,14 +46,14 @@ PMImageMapEdit::PMImageMapEdit( QWidget* parent, const char* name )
void PMImageMapEdit::createTopWidgets( )
{
- QLabel* lbl;
- QHBoxLayout* hl;
+ TQLabel* lbl;
+ TQHBoxLayout* hl;
Base::createTopWidgets( );
- hl = new QHBoxLayout( topLayout( ) );
- lbl = new QLabel( i18n( "File type:" ), this );
- m_pImageFileTypeEdit = new QComboBox( this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ lbl = new TQLabel( i18n( "File type:" ), this );
+ m_pImageFileTypeEdit = new TQComboBox( this );
m_pImageFileTypeEdit->insertItem( "gif" );
m_pImageFileTypeEdit->insertItem( "tga" );
m_pImageFileTypeEdit->insertItem( "iff" );
@@ -66,44 +66,44 @@ void PMImageMapEdit::createTopWidgets( )
hl->addWidget( lbl );
hl->addWidget( m_pImageFileTypeEdit );
- hl = new QHBoxLayout( topLayout( ) );
- lbl = new QLabel( i18n( "File name:" ), this );
- m_pImageFileNameEdit = new QLineEdit( this );
- m_pImageFileNameBrowse = new QPushButton( this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ lbl = new TQLabel( i18n( "File name:" ), this );
+ m_pImageFileNameEdit = new TQLineEdit( this );
+ m_pImageFileNameBrowse = new TQPushButton( this );
m_pImageFileNameBrowse->setPixmap( SmallIcon( "fileopen" ) );
hl->addWidget( lbl );
hl->addWidget( m_pImageFileNameEdit );
hl->addWidget( m_pImageFileNameBrowse );
- hl = new QHBoxLayout( topLayout( ) );
- m_pEnableFilterAllEdit = new QCheckBox( i18n( "Filter all" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ m_pEnableFilterAllEdit = new TQCheckBox( i18n( "Filter all" ), this );
m_pFilterAllEdit = new PMFloatEdit( this );
hl->addWidget( m_pEnableFilterAllEdit );
hl->addWidget( m_pFilterAllEdit );
hl->addStretch( 1 );
- hl = new QHBoxLayout( topLayout( ) );
- m_pEnableTransmitAllEdit = new QCheckBox( i18n( "Transmit all" ), this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ m_pEnableTransmitAllEdit = new TQCheckBox( i18n( "Transmit all" ), this );
m_pTransmitAllEdit = new PMFloatEdit( this );
hl->addWidget( m_pEnableTransmitAllEdit );
hl->addWidget( m_pTransmitAllEdit );
hl->addStretch( 1 );
- m_pOnceEdit = new QCheckBox( i18n( "Once" ), this );
+ m_pOnceEdit = new TQCheckBox( i18n( "Once" ), this );
topLayout( )->addWidget( m_pOnceEdit );
- hl = new QHBoxLayout( topLayout( ) );
- lbl = new QLabel( i18n( "Interpolate:" ), this );
- m_pInterpolateTypeEdit = new QComboBox( this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ lbl = new TQLabel( i18n( "Interpolate:" ), this );
+ m_pInterpolateTypeEdit = new TQComboBox( this );
m_pInterpolateTypeEdit->insertItem( i18n( "None" ) );
m_pInterpolateTypeEdit->insertItem( i18n( "Bilinear" ) );
m_pInterpolateTypeEdit->insertItem( i18n( "Normalized" ) );
hl->addWidget( lbl );
hl->addWidget( m_pInterpolateTypeEdit );
- hl = new QHBoxLayout( topLayout( ) );
- lbl = new QLabel( i18n( "Map type:" ), this );
- m_pMapTypeEdit = new QComboBox( this );
+ hl = new TQHBoxLayout( topLayout( ) );
+ lbl = new TQLabel( i18n( "Map type:" ), this );
+ m_pMapTypeEdit = new TQComboBox( this );
m_pMapTypeEdit->insertItem( i18n( "Planar" ) );
m_pMapTypeEdit->insertItem( i18n( "Spherical" ) );
m_pMapTypeEdit->insertItem( i18n( "Cylindrical" ) );
@@ -111,25 +111,25 @@ void PMImageMapEdit::createTopWidgets( )
hl->addWidget( lbl );
hl->addWidget( m_pMapTypeEdit );
- connect( m_pImageFileTypeEdit, SIGNAL( activated( int ) ), SLOT( slotImageFileTypeChanged( int ) ) );
- connect( m_pMapTypeEdit, SIGNAL( activated( int ) ), SLOT( slotMapTypeChanged( int ) ) );
- connect( m_pInterpolateTypeEdit, SIGNAL( activated( int ) ), SLOT( slotInterpolateTypeChanged( int ) ) );
- connect( m_pImageFileNameBrowse, SIGNAL( clicked( ) ), SLOT( slotImageFileBrowseClicked( ) ) );
- connect( m_pImageFileNameEdit, SIGNAL( textChanged( const QString& ) ), SLOT( slotImageFileNameChanged( const QString& ) ) );
- connect( m_pEnableFilterAllEdit, SIGNAL( clicked( ) ), SLOT( slotFilterAllClicked( ) ) );
- connect( m_pEnableTransmitAllEdit, SIGNAL( clicked( ) ), SLOT( slotTransmitAllClicked( ) ) );
- connect( m_pFilterAllEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pTransmitAllEdit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pOnceEdit, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pImageFileTypeEdit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotImageFileTypeChanged( int ) ) );
+ connect( m_pMapTypeEdit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotMapTypeChanged( int ) ) );
+ connect( m_pInterpolateTypeEdit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotInterpolateTypeChanged( int ) ) );
+ connect( m_pImageFileNameBrowse, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotImageFileBrowseClicked( ) ) );
+ connect( m_pImageFileNameEdit, TQT_SIGNAL( textChanged( const TQString& ) ), TQT_SLOT( slotImageFileNameChanged( const TQString& ) ) );
+ connect( m_pEnableFilterAllEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotFilterAllClicked( ) ) );
+ connect( m_pEnableTransmitAllEdit, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotTransmitAllClicked( ) ) );
+ connect( m_pFilterAllEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pTransmitAllEdit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pOnceEdit, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) );
}
void PMImageMapEdit::createBottomWidgets( )
{
- topLayout( )->addWidget( new QLabel( i18n( "Indexed filters" ), this ) );
- m_pFiltersWidget = new QWidget( this );
+ topLayout( )->addWidget( new TQLabel( i18n( "Indexed filters" ), this ) );
+ m_pFiltersWidget = new TQWidget( this );
topLayout( )->addWidget( m_pFiltersWidget );
- topLayout( )->addWidget( new QLabel( i18n( "Indexed transmits" ), this ) );
- m_pTransmitsWidget = new QWidget( this );
+ topLayout( )->addWidget( new TQLabel( i18n( "Indexed transmits" ), this ) );
+ m_pTransmitsWidget = new TQWidget( this );
topLayout( )->addWidget( m_pTransmitsWidget );
@@ -231,8 +231,8 @@ void PMImageMapEdit::displayObject( PMObject* o )
}
-void PMImageMapEdit::displayPaletteEntries( const QValueList<PMPaletteValue>& filters,
- const QValueList<PMPaletteValue>& transmits )
+void PMImageMapEdit::displayPaletteEntries( const TQValueList<PMPaletteValue>& filters,
+ const TQValueList<PMPaletteValue>& transmits )
{
bool readOnly = m_pDisplayedObject->isReadOnly( );
@@ -241,10 +241,10 @@ void PMImageMapEdit::displayPaletteEntries( const QValueList<PMPaletteValue>& fi
int i;
PMPaletteValueEdit* edit;
- QPushButton* button;
- QGridLayout* gl;
- QPixmap addButtonPixmap = SmallIcon( "pmaddpoint" );
- QPixmap removeButtonPixmap = SmallIcon( "pmremovepoint" );
+ TQPushButton* button;
+ TQGridLayout* gl;
+ TQPixmap addButtonPixmap = SmallIcon( "pmaddpoint" );
+ TQPixmap removeButtonPixmap = SmallIcon( "pmremovepoint" );
// First let's deal with the filter entries...
if( m_pFiltersWidget->layout( ) )
@@ -260,45 +260,45 @@ void PMImageMapEdit::displayPaletteEntries( const QValueList<PMPaletteValue>& fi
m_filterAddButtons.setAutoDelete( false );
m_filterRemoveButtons.setAutoDelete( false );
- gl = new QGridLayout( m_pFiltersWidget, nfilters + 1, 3, 0, KDialog::spacingHint( ) );
+ gl = new TQGridLayout( m_pFiltersWidget, nfilters + 1, 3, 0, KDialog::spacingHint( ) );
- button = new QPushButton( m_pFiltersWidget );
+ button = new TQPushButton( m_pFiltersWidget );
button->setPixmap( addButtonPixmap );
m_filterAddButtons.append( button );
- connect( button, SIGNAL( clicked( ) ), SLOT( slotAddFilterEntry( ) ) );
+ connect( button, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotAddFilterEntry( ) ) );
gl->addWidget( button, 0, 1 );
button->show( );
button->setEnabled( !readOnly );
- QToolTip::add( button, i18n( "Add new filter" ) );
+ TQToolTip::add( button, i18n( "Add new filter" ) );
for( i = 0; i < nfilters; i ++ )
{
edit = new PMPaletteValueEdit( m_pFiltersWidget );
m_filterEntries.append( edit );
- connect( edit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
+ connect( edit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
gl->addWidget( edit, i+1, 0 );
edit->setIndex( filters[ i ].index( ) );
edit->setValue( filters[ i ].value( ) );
edit->show( );
edit->setReadOnly( readOnly );
- button = new QPushButton( m_pFiltersWidget );
+ button = new TQPushButton( m_pFiltersWidget );
button->setPixmap( addButtonPixmap );
m_filterAddButtons.append( button );
- connect( button, SIGNAL( clicked( ) ), SLOT( slotAddFilterEntry( ) ) );
+ connect( button, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotAddFilterEntry( ) ) );
gl->addWidget( button, i+1, 1 );
button->show( );
button->setEnabled( !readOnly );
- QToolTip::add( button, i18n( "Add new filter" ) );
+ TQToolTip::add( button, i18n( "Add new filter" ) );
- button = new QPushButton( m_pFiltersWidget );
+ button = new TQPushButton( m_pFiltersWidget );
button->setPixmap( removeButtonPixmap );
m_filterRemoveButtons.append( button );
- connect( button, SIGNAL( clicked( ) ), SLOT( slotRemoveFilterEntry( ) ) );
+ connect( button, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotRemoveFilterEntry( ) ) );
gl->addWidget( button, i+1, 2 );
button->show( );
button->setEnabled( !readOnly );
- QToolTip::add( button, i18n( "Remove filter" ) );
+ TQToolTip::add( button, i18n( "Remove filter" ) );
}
// ...next the transmit entries
@@ -316,45 +316,45 @@ void PMImageMapEdit::displayPaletteEntries( const QValueList<PMPaletteValue>& fi
if( m_pTransmitsWidget->layout( ) )
delete m_pTransmitsWidget->layout( );
- gl = new QGridLayout( m_pTransmitsWidget, ntransmits + 1, 3, 0, KDialog::spacingHint( ) );
+ gl = new TQGridLayout( m_pTransmitsWidget, ntransmits + 1, 3, 0, KDialog::spacingHint( ) );
- button = new QPushButton( m_pTransmitsWidget );
+ button = new TQPushButton( m_pTransmitsWidget );
button->setPixmap( addButtonPixmap );
m_transmitAddButtons.append( button );
- connect( button, SIGNAL( clicked( ) ), SLOT( slotAddTransmitEntry( ) ) );
+ connect( button, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotAddTransmitEntry( ) ) );
gl->addWidget( button, 0, 1 );
button->show( );
button->setEnabled( !readOnly );
- QToolTip::add( button, i18n( "Add new transmit" ) );
+ TQToolTip::add( button, i18n( "Add new transmit" ) );
for( i = 0; i < ntransmits; i ++ )
{
edit = new PMPaletteValueEdit( m_pTransmitsWidget );
m_transmitEntries.append( edit );
- connect( edit, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
+ connect( edit, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
gl->addWidget( edit, i+1, 0 );
edit->setIndex( transmits[ i ].index( ) );
edit->setValue( transmits[ i ].value( ) );
edit->show( );
edit->setReadOnly( readOnly );
- button = new QPushButton( m_pTransmitsWidget );
+ button = new TQPushButton( m_pTransmitsWidget );
button->setPixmap( addButtonPixmap );
m_transmitAddButtons.append( button );
- connect( button, SIGNAL( clicked( ) ), SLOT( slotAddTransmitEntry( ) ) );
+ connect( button, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotAddTransmitEntry( ) ) );
gl->addWidget( button, i+1, 1 );
button->show( );
button->setEnabled( !readOnly );
- QToolTip::add( button, i18n( "Add new transmit" ) );
+ TQToolTip::add( button, i18n( "Add new transmit" ) );
- button = new QPushButton( m_pTransmitsWidget );
+ button = new TQPushButton( m_pTransmitsWidget );
button->setPixmap( removeButtonPixmap );
m_transmitRemoveButtons.append( button );
- connect( button, SIGNAL( clicked( ) ), SLOT( slotRemoveTransmitEntry( ) ) );
+ connect( button, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotRemoveTransmitEntry( ) ) );
gl->addWidget( button, i+1, 2 );
button->show( );
button->setEnabled( !readOnly );
- QToolTip::add( button, i18n( "Remove transmit" ) );
+ TQToolTip::add( button, i18n( "Remove transmit" ) );
}
}
@@ -440,12 +440,12 @@ bool PMImageMapEdit::isDataValid( )
if( !m_pFilterAllEdit->isDataValid( ) ) return false;
if( !m_pTransmitAllEdit->isDataValid( ) ) return false;
- QPtrListIterator<PMPaletteValueEdit> it_filters( m_filterEntries );
+ TQPtrListIterator<PMPaletteValueEdit> it_filters( m_filterEntries );
for( ; it_filters.current( ); ++it_filters )
if( !( it_filters.current( )->isDataValid( ) ) )
return false;
- QPtrListIterator<PMPaletteValueEdit> it_transmits( m_transmitEntries );
+ TQPtrListIterator<PMPaletteValueEdit> it_transmits( m_transmitEntries );
for( ; it_transmits.current( ); ++it_transmits )
if( !( it_transmits.current( )->isDataValid( ) ) )
return false;
@@ -468,14 +468,14 @@ void PMImageMapEdit::slotMapTypeChanged( const int /*a*/ )
emit dataChanged( );
}
-void PMImageMapEdit::slotImageFileNameChanged( const QString& /*a*/ )
+void PMImageMapEdit::slotImageFileNameChanged( const TQString& /*a*/ )
{
emit dataChanged( );
}
void PMImageMapEdit::slotImageFileBrowseClicked( )
{
- QString str = KFileDialog::getOpenFileName( QString::null, QString::null );
+ TQString str = KFileDialog::getOpenFileName( TQString::null, TQString::null );
if( !str.isEmpty() )
{
@@ -504,10 +504,10 @@ void PMImageMapEdit::slotTransmitAllClicked( )
emit dataChanged( );
}
-QValueList<PMPaletteValue> PMImageMapEdit::filters( )
+TQValueList<PMPaletteValue> PMImageMapEdit::filters( )
{
- QValueList<PMPaletteValue> entries;
- QPtrListIterator<PMPaletteValueEdit> it( m_filterEntries );
+ TQValueList<PMPaletteValue> entries;
+ TQPtrListIterator<PMPaletteValueEdit> it( m_filterEntries );
for( ; it.current( ); ++it )
entries.append( PMPaletteValue( it.current( )->index( ), it.current( )->value( ) ) );
@@ -515,10 +515,10 @@ QValueList<PMPaletteValue> PMImageMapEdit::filters( )
return entries;
}
-QValueList<PMPaletteValue> PMImageMapEdit::transmits( )
+TQValueList<PMPaletteValue> PMImageMapEdit::transmits( )
{
- QValueList<PMPaletteValue> entries;
- QPtrListIterator<PMPaletteValueEdit> it( m_transmitEntries );
+ TQValueList<PMPaletteValue> entries;
+ TQPtrListIterator<PMPaletteValueEdit> it( m_transmitEntries );
for( ; it.current( ); ++it )
entries.append( PMPaletteValue( it.current( )->index( ), it.current( )->value( ) ) );
@@ -528,10 +528,10 @@ QValueList<PMPaletteValue> PMImageMapEdit::transmits( )
void PMImageMapEdit::slotAddFilterEntry( )
{
- QValueList<PMPaletteValue> entriesFilters;
- QValueListIterator<PMPaletteValue> it;
+ TQValueList<PMPaletteValue> entriesFilters;
+ TQValueListIterator<PMPaletteValue> it;
PMPaletteValue newEntry;
- QPushButton* button = ( QPushButton* ) sender( );
+ TQPushButton* button = ( TQPushButton* ) sender( );
if( button )
{
@@ -555,9 +555,9 @@ void PMImageMapEdit::slotAddFilterEntry( )
void PMImageMapEdit::slotRemoveFilterEntry( )
{
- QValueList<PMPaletteValue> entriesFilters;
- QValueListIterator<PMPaletteValue> it;
- QPushButton* button = ( QPushButton* ) sender( );
+ TQValueList<PMPaletteValue> entriesFilters;
+ TQValueListIterator<PMPaletteValue> it;
+ TQPushButton* button = ( TQPushButton* ) sender( );
if( button )
{
@@ -576,10 +576,10 @@ void PMImageMapEdit::slotRemoveFilterEntry( )
void PMImageMapEdit::slotAddTransmitEntry( )
{
- QValueList<PMPaletteValue> entriesTransmits;
- QValueListIterator<PMPaletteValue> it;
+ TQValueList<PMPaletteValue> entriesTransmits;
+ TQValueListIterator<PMPaletteValue> it;
PMPaletteValue newEntry;
- QPushButton* button = ( QPushButton* ) sender( );
+ TQPushButton* button = ( TQPushButton* ) sender( );
if( button )
{
@@ -603,9 +603,9 @@ void PMImageMapEdit::slotAddTransmitEntry( )
void PMImageMapEdit::slotRemoveTransmitEntry( )
{
- QValueList<PMPaletteValue> entriesTransmits;
- QValueListIterator<PMPaletteValue> it;
- QPushButton* button = ( QPushButton* ) sender( );
+ TQValueList<PMPaletteValue> entriesTransmits;
+ TQValueListIterator<PMPaletteValue> it;
+ TQPushButton* button = ( TQPushButton* ) sender( );
if( button )
{
diff --git a/kpovmodeler/pmimagemapedit.h b/kpovmodeler/pmimagemapedit.h
index 86055ea2..49ce3d8c 100644
--- a/kpovmodeler/pmimagemapedit.h
+++ b/kpovmodeler/pmimagemapedit.h
@@ -30,14 +30,14 @@
class PMImageMap;
class PMPaletteValue;
class PMVectorEdit;
-class QComboBox;
+class TQComboBox;
class PMFloatEdit;
class PMIntEdit;
-class QLabel;
-class QCheckBox;
-class QWidget;
-class QLineEdit;
-class QPushButton;
+class TQLabel;
+class TQCheckBox;
+class TQWidget;
+class TQLineEdit;
+class TQPushButton;
/**
* Dialog edit class for @ref PMImageMap.
@@ -50,7 +50,7 @@ public:
/**
* Creates a PMImageMapEdit with parent and name
*/
- PMImageMapEdit( QWidget* parent, const char* name = 0 );
+ PMImageMapEdit( TQWidget* parent, const char* name = 0 );
/** */
virtual void displayObject( PMObject* o );
@@ -65,12 +65,12 @@ protected:
/** */
virtual void saveContents( );
/** */
- QValueList<PMPaletteValue> filters( );
+ TQValueList<PMPaletteValue> filters( );
/** */
- QValueList<PMPaletteValue> transmits( );
+ TQValueList<PMPaletteValue> transmits( );
/** */
- void displayPaletteEntries( const QValueList<PMPaletteValue>& filters,
- const QValueList<PMPaletteValue>& transmits );
+ void displayPaletteEntries( const TQValueList<PMPaletteValue>& filters,
+ const TQValueList<PMPaletteValue>& transmits );
private slots:
/** */
@@ -80,7 +80,7 @@ private slots:
/** */
void slotInterpolateTypeChanged( int a );
/** */
- void slotImageFileNameChanged( const QString& a );
+ void slotImageFileNameChanged( const TQString& a );
/** */
void slotImageFileBrowseClicked( );
/** */
@@ -97,25 +97,25 @@ private slots:
void slotRemoveTransmitEntry( );
private:
PMImageMap* m_pDisplayedObject;
- QComboBox* m_pImageFileTypeEdit;
- QLineEdit* m_pImageFileNameEdit;
- QPushButton* m_pImageFileNameBrowse;
- QCheckBox* m_pOnceEdit;
- QComboBox* m_pMapTypeEdit;
- QComboBox* m_pInterpolateTypeEdit;
- QCheckBox* m_pEnableFilterAllEdit;
- QCheckBox* m_pEnableTransmitAllEdit;
+ TQComboBox* m_pImageFileTypeEdit;
+ TQLineEdit* m_pImageFileNameEdit;
+ TQPushButton* m_pImageFileNameBrowse;
+ TQCheckBox* m_pOnceEdit;
+ TQComboBox* m_pMapTypeEdit;
+ TQComboBox* m_pInterpolateTypeEdit;
+ TQCheckBox* m_pEnableFilterAllEdit;
+ TQCheckBox* m_pEnableTransmitAllEdit;
PMFloatEdit* m_pFilterAllEdit;
PMFloatEdit* m_pTransmitAllEdit;
- QWidget* m_pFiltersWidget;
- QWidget* m_pTransmitsWidget;
+ TQWidget* m_pFiltersWidget;
+ TQWidget* m_pTransmitsWidget;
- QPtrList<PMPaletteValueEdit> m_filterEntries;
- QPtrList<QPushButton> m_filterAddButtons;
- QPtrList<QPushButton> m_filterRemoveButtons;
- QPtrList<PMPaletteValueEdit> m_transmitEntries;
- QPtrList<QPushButton> m_transmitAddButtons;
- QPtrList<QPushButton> m_transmitRemoveButtons;
+ TQPtrList<PMPaletteValueEdit> m_filterEntries;
+ TQPtrList<TQPushButton> m_filterAddButtons;
+ TQPtrList<TQPushButton> m_filterRemoveButtons;
+ TQPtrList<PMPaletteValueEdit> m_transmitEntries;
+ TQPtrList<TQPushButton> m_transmitAddButtons;
+ TQPtrList<TQPushButton> m_transmitRemoveButtons;
};
#endif
diff --git a/kpovmodeler/pminserterrordialog.cpp b/kpovmodeler/pminserterrordialog.cpp
index 766db20a..9dd7867a 100644
--- a/kpovmodeler/pminserterrordialog.cpp
+++ b/kpovmodeler/pminserterrordialog.cpp
@@ -18,25 +18,25 @@
#include "pminserterrordialog.h"
#include <klocale.h>
-#include <qlabel.h>
-#include <qlistbox.h>
-#include <qvbox.h>
+#include <tqlabel.h>
+#include <tqlistbox.h>
+#include <tqvbox.h>
PMInsertErrorDialog::PMInsertErrorDialog(
int numObj, int numErrors,
- const QStringList& details,
- QWidget* parent /*= 0*/, const char* name /*= 0*/ )
+ const TQStringList& details,
+ TQWidget* parent /*= 0*/, const char* name /*= 0*/ )
: KDialogBase( parent, name, true, i18n( "Insert Errors" ),
Help | Ok | User1, Ok, false, i18n( "Details" ) )
{
- QVBox* page = makeVBoxMainWidget( );
- new QLabel( i18n( "%1 of %2 objects couldn't be inserted." )
+ TQVBox* page = makeVBoxMainWidget( );
+ new TQLabel( i18n( "%1 of %2 objects couldn't be inserted." )
.arg( numErrors ).arg( numObj ), page );
- m_pDetailsLabel = new QLabel( i18n( "Objects not inserted:" ), page );
+ m_pDetailsLabel = new TQLabel( i18n( "Objects not inserted:" ), page );
m_pDetailsLabel->hide( );
- m_pDetails = new QListBox( page );
+ m_pDetails = new TQListBox( page );
m_pDetails->insertStringList( details, 0 );
m_pDetails->setMinimumHeight( 150 );
m_pDetails->hide( );
diff --git a/kpovmodeler/pminserterrordialog.h b/kpovmodeler/pminserterrordialog.h
index d94be0f6..9a2c1d2e 100644
--- a/kpovmodeler/pminserterrordialog.h
+++ b/kpovmodeler/pminserterrordialog.h
@@ -25,10 +25,10 @@
#endif
#include <kdialogbase.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
-class QListBox;
-class QLabel;
+class TQListBox;
+class TQLabel;
/**
* Dialog that is shown if not all objects could be inserted
@@ -41,14 +41,14 @@ public:
* Creates a modal PMInsertErrorDialog with parent and name.
*/
PMInsertErrorDialog( int NumberOfObjects, int NumberOfInsertErrors,
- const QStringList& details,
- QWidget* parent = 0, const char* name = 0 );
+ const TQStringList& details,
+ TQWidget* parent = 0, const char* name = 0 );
protected slots:
void slotUser1( );
private:
- QListBox* m_pDetails;
- QLabel* m_pDetailsLabel;
+ TQListBox* m_pDetails;
+ TQLabel* m_pDetailsLabel;
};
#endif
diff --git a/kpovmodeler/pminsertpopup.cpp b/kpovmodeler/pminsertpopup.cpp
index be6a527d..0f8ffb23 100644
--- a/kpovmodeler/pminsertpopup.cpp
+++ b/kpovmodeler/pminsertpopup.cpp
@@ -19,15 +19,15 @@
#include "pminsertpopup.h"
#include <klocale.h>
#include <kiconloader.h>
-#include <qcursor.h>
+#include <tqcursor.h>
-PMInsertPopup::PMInsertPopup( QWidget* parent, bool multipleObjects,
+PMInsertPopup::PMInsertPopup( TQWidget* parent, bool multipleObjects,
int items, bool canInsertAllAsFirstChildren,
bool canInsertAllAsLastChildren,
bool canInsertAllAsSiblings, const char* name )
: KPopupMenu( parent, name )
{
- QString itemText;
+ TQString itemText;
if( multipleObjects )
{
insertTitle( i18n( "Insert Objects As" ) );
@@ -71,7 +71,7 @@ PMInsertPopup::PMInsertPopup( QWidget* parent, bool multipleObjects,
}
}
-int PMInsertPopup::choosePlace( QWidget* parent, bool multipleObjects,
+int PMInsertPopup::choosePlace( TQWidget* parent, bool multipleObjects,
int items, bool canInsertAllAsFirstChildren,
bool canInsertAllAsLastChildren,
bool canInsertAllAsSiblings )
@@ -81,7 +81,7 @@ int PMInsertPopup::choosePlace( QWidget* parent, bool multipleObjects,
canInsertAllAsFirstChildren,
canInsertAllAsLastChildren,
canInsertAllAsSiblings );
- result = popup->exec( QCursor::pos( ) );
+ result = popup->exec( TQCursor::pos( ) );
if( result < 0 )
result = 0;
delete popup;
diff --git a/kpovmodeler/pminsertpopup.h b/kpovmodeler/pminsertpopup.h
index c5e99dac..09aa796a 100644
--- a/kpovmodeler/pminsertpopup.h
+++ b/kpovmodeler/pminsertpopup.h
@@ -45,7 +45,7 @@ public:
* of PMIFirstChild, PMILastChild, PMISibling.
* @param name Internal name of the popup menu
*/
- PMInsertPopup( QWidget* parent, bool multipleObjects,
+ PMInsertPopup( TQWidget* parent, bool multipleObjects,
int items = PMIFirstChild | PMILastChild | PMISibling,
bool canInsertAllAsFirstChildren = true,
bool canInsertAllAsLastChildren = true,
@@ -70,7 +70,7 @@ public:
*
* Returns the selected item or 0 if no item was selected.
*/
- static int choosePlace( QWidget* parent, bool multipleObjects,
+ static int choosePlace( TQWidget* parent, bool multipleObjects,
int items = PMIFirstChild | PMILastChild
| PMISibling,
bool canInsertAllAsFirstChildren = true,
diff --git a/kpovmodeler/pminsertrulesystem.cpp b/kpovmodeler/pminsertrulesystem.cpp
index 0e7b7be2..3c601df7 100644
--- a/kpovmodeler/pminsertrulesystem.cpp
+++ b/kpovmodeler/pminsertrulesystem.cpp
@@ -21,17 +21,17 @@
#include "pmvariant.h"
#include "pmdebug.h"
-#include <qfile.h>
+#include <tqfile.h>
#include <kstandarddirs.h>
-bool isCategory( QDomElement& e )
+bool isCategory( TQDomElement& e )
{
return( e.tagName( ) == "class" || e.tagName( ) == "group" );
}
-PMRuleCategory* newCategory( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups )
+PMRuleCategory* newCategory( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups )
{
if( e.tagName( ) == "class" )
return new PMRuleClass( e );
@@ -42,7 +42,7 @@ PMRuleCategory* newCategory( QDomElement& e,
PMPrototypeManager* PMRuleClass::s_pPrototypeManager = 0;
-PMRuleClass::PMRuleClass( QDomElement& e )
+PMRuleClass::PMRuleClass( TQDomElement& e )
: PMRuleCategory( )
{
m_pPrototypeManager = s_pPrototypeManager;
@@ -54,26 +54,26 @@ PMRuleClass::PMRuleClass( QDomElement& e )
<< m_className << endl;
}
-bool PMRuleClass::matches( const QString& className )
+bool PMRuleClass::matches( const TQString& className )
{
return m_pPrototypeManager->isA( className, m_className );
}
-PMRuleGroup::PMRuleGroup( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups )
+PMRuleGroup::PMRuleGroup( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups )
: PMRuleCategory( )
{
m_pGroup = 0;
- QString groupName = e.attribute( "name" );
+ TQString groupName = e.attribute( "name" );
if( groupName.isEmpty( ) )
kdError( PMArea ) << "RuleSystem: Invalid group name" << endl;
// find group
- QPtrListIterator<PMRuleDefineGroup> lit( localGroups );
+ TQPtrListIterator<PMRuleDefineGroup> lit( localGroups );
for( ; lit.current( ) && !m_pGroup; ++lit )
if( lit.current( )->name( ) == groupName )
m_pGroup = lit.current( );
- QPtrListIterator<PMRuleDefineGroup> git( globalGroups );
+ TQPtrListIterator<PMRuleDefineGroup> git( globalGroups );
for( ; git.current( ) && !m_pGroup; ++git )
if( git.current( )->name( ) == groupName )
m_pGroup = git.current( );
@@ -82,27 +82,27 @@ PMRuleGroup::PMRuleGroup( QDomElement& e,
<< groupName << endl;
}
-bool PMRuleGroup::matches( const QString& className )
+bool PMRuleGroup::matches( const TQString& className )
{
if( m_pGroup )
return m_pGroup->matches( className );
return false;
}
-PMRuleDefineGroup::PMRuleDefineGroup( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups )
+PMRuleDefineGroup::PMRuleDefineGroup( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups )
{
m_name = e.attribute( "name" );
if( m_name.isEmpty( ) )
kdError( PMArea ) << "RuleSystem: Invalid group name" << endl;
- QDomNode m = e.firstChild( );
+ TQDomNode m = e.firstChild( );
while( !m.isNull( ) )
{
if( m.isElement( ) )
{
- QDomElement me = m.toElement( );
+ TQDomElement me = m.toElement( );
if( isCategory( me ) )
m_categories.append( newCategory( me, globalGroups, localGroups ) );
}
@@ -116,23 +116,23 @@ PMRuleDefineGroup::~PMRuleDefineGroup( )
m_categories.clear( );
}
-bool PMRuleDefineGroup::matches( const QString& className )
+bool PMRuleDefineGroup::matches( const TQString& className )
{
bool m = false;
- QPtrListIterator<PMRuleCategory> it( m_categories );
+ TQPtrListIterator<PMRuleCategory> it( m_categories );
for( ; it.current( ) && !m; ++it )
m = it.current( )->matches( className );
return m;
}
-bool isValue( QDomElement& e )
+bool isValue( TQDomElement& e )
{
return( e.tagName( ) == "property" || e.tagName( ) == "const" ||
e.tagName( ) == "count" );
}
-bool isCondition( QDomElement& e )
+bool isCondition( TQDomElement& e )
{
return( e.tagName( ) == "not" || e.tagName( ) == "and" ||
e.tagName( ) == "or" || e.tagName( ) == "before" ||
@@ -141,9 +141,9 @@ bool isCondition( QDomElement& e )
e.tagName( ) == "equal" );
}
-PMRuleValue* newValue( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups )
+PMRuleValue* newValue( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups )
{
if( e.tagName( ) == "property" )
return new PMRuleProperty( e );
@@ -154,9 +154,9 @@ PMRuleValue* newValue( QDomElement& e,
return 0;
}
-PMRuleCondition* newCondition( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups )
+PMRuleCondition* newCondition( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups )
{
if( e.tagName( ) == "not" )
return new PMRuleNot( e, globalGroups, localGroups );
@@ -185,11 +185,11 @@ PMRuleBase::~PMRuleBase( )
m_children.clear( );
}
-void PMRuleBase::countChild( const QString& className, bool afterInsertPoint )
+void PMRuleBase::countChild( const TQString& className, bool afterInsertPoint )
{
countChildProtected( className, afterInsertPoint );
- QPtrListIterator<PMRuleBase> it( m_children );
+ TQPtrListIterator<PMRuleBase> it( m_children );
for( ; it.current( ); ++it )
it.current( )->countChild( className, afterInsertPoint );
}
@@ -198,12 +198,12 @@ void PMRuleBase::reset( )
{
resetProtected( );
- QPtrListIterator<PMRuleBase> it( m_children );
+ TQPtrListIterator<PMRuleBase> it( m_children );
for( ; it.current( ); ++it )
it.current( )->reset( );
}
-PMRuleProperty::PMRuleProperty( QDomElement& e )
+PMRuleProperty::PMRuleProperty( TQDomElement& e )
: PMRuleValue( )
{
m_property = e.attribute( "name" );
@@ -221,10 +221,10 @@ PMVariant PMRuleProperty::evaluate( const PMObject* o )
}
-PMRuleConstant::PMRuleConstant( QDomElement& e )
+PMRuleConstant::PMRuleConstant( TQDomElement& e )
: PMRuleValue( )
{
- QString v = e.attribute( "value" );
+ TQString v = e.attribute( "value" );
if( v.isNull( ) )
kdError( PMArea ) << "RuleSystem: Invalid value" << endl;
@@ -242,18 +242,18 @@ bool PMRuleConstant::convertTo( PMVariant::PMVariantDataType type )
}
-PMRuleCount::PMRuleCount( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups )
+PMRuleCount::PMRuleCount( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups )
: PMRuleValue( )
{
m_number = 0;
- QDomNode m = e.firstChild( );
+ TQDomNode m = e.firstChild( );
while( !m.isNull( ) )
{
if( m.isElement( ) )
{
- QDomElement me = m.toElement( );
+ TQDomElement me = m.toElement( );
if( isCategory( me ) )
m_categories.append( newCategory( me, globalGroups, localGroups ) );
}
@@ -272,10 +272,10 @@ PMVariant PMRuleCount::evaluate( const PMObject* )
return PMVariant( m_number );
}
-void PMRuleCount::countChildProtected( const QString& className, bool )
+void PMRuleCount::countChildProtected( const TQString& className, bool )
{
bool m = false;
- QPtrListIterator<PMRuleCategory> it( m_categories );
+ TQPtrListIterator<PMRuleCategory> it( m_categories );
for( ; it.current( ) && !m; ++it )
m = it.current( )->matches( className );
if( m )
@@ -287,18 +287,18 @@ void PMRuleCount::resetProtected( )
m_number = 0;
}
-PMRuleNot::PMRuleNot( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups )
+PMRuleNot::PMRuleNot( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups )
: PMRuleCondition( )
{
m_pChild = 0;
- QDomNode m = e.firstChild( );
+ TQDomNode m = e.firstChild( );
while( !m.isNull( ) && !m_pChild )
{
if( m.isElement( ) )
{
- QDomElement me = m.toElement( );
+ TQDomElement me = m.toElement( );
if( isCondition( me ) )
{
m_pChild = newCondition( me, globalGroups, localGroups );
@@ -316,17 +316,17 @@ bool PMRuleNot::evaluate( const PMObject* object )
return true;
}
-PMRuleAnd::PMRuleAnd( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups )
+PMRuleAnd::PMRuleAnd( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups )
: PMRuleCondition( )
{
- QDomNode m = e.firstChild( );
+ TQDomNode m = e.firstChild( );
while( !m.isNull( ) )
{
if( m.isElement( ) )
{
- QDomElement me = m.toElement( );
+ TQDomElement me = m.toElement( );
if( isCondition( me ) )
{
PMRuleCondition* c = newCondition( me, globalGroups, localGroups );
@@ -341,23 +341,23 @@ PMRuleAnd::PMRuleAnd( QDomElement& e,
bool PMRuleAnd::evaluate( const PMObject* object )
{
bool b = true;
- QPtrListIterator<PMRuleCondition> it( m_conditions );
+ TQPtrListIterator<PMRuleCondition> it( m_conditions );
for( ; it.current( ) && b; ++it )
b = it.current( )->evaluate( object );
return b;
}
-PMRuleOr::PMRuleOr( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups )
+PMRuleOr::PMRuleOr( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups )
: PMRuleCondition( )
{
- QDomNode m = e.firstChild( );
+ TQDomNode m = e.firstChild( );
while( !m.isNull( ) )
{
if( m.isElement( ) )
{
- QDomElement me = m.toElement( );
+ TQDomElement me = m.toElement( );
if( isCondition( me ) )
{
PMRuleCondition* c = newCondition( me, globalGroups, localGroups );
@@ -372,24 +372,24 @@ PMRuleOr::PMRuleOr( QDomElement& e,
bool PMRuleOr::evaluate( const PMObject* object )
{
bool b = false;
- QPtrListIterator<PMRuleCondition> it( m_conditions );
+ TQPtrListIterator<PMRuleCondition> it( m_conditions );
for( ; it.current( ) && !b; ++it )
b = it.current( )->evaluate( object );
return b;
}
-PMRuleBefore::PMRuleBefore( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups )
+PMRuleBefore::PMRuleBefore( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups )
: PMRuleCondition( )
{
m_contains = false;
- QDomNode m = e.firstChild( );
+ TQDomNode m = e.firstChild( );
while( !m.isNull( ) )
{
if( m.isElement( ) )
{
- QDomElement me = m.toElement( );
+ TQDomElement me = m.toElement( );
if( isCategory( me ) )
m_categories.append( newCategory( me, globalGroups, localGroups ) );
}
@@ -408,12 +408,12 @@ bool PMRuleBefore::evaluate( const PMObject* )
return m_contains;
}
-void PMRuleBefore::countChildProtected( const QString& className,
+void PMRuleBefore::countChildProtected( const TQString& className,
bool afterInsertPoint )
{
if( afterInsertPoint && !m_contains )
{
- QPtrListIterator<PMRuleCategory> it( m_categories );
+ TQPtrListIterator<PMRuleCategory> it( m_categories );
for( ; it.current( ) && !m_contains; ++it )
m_contains = it.current( )->matches( className );
}
@@ -424,18 +424,18 @@ void PMRuleBefore::resetProtected( )
m_contains = false;
}
-PMRuleAfter::PMRuleAfter( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups )
+PMRuleAfter::PMRuleAfter( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups )
: PMRuleCondition( )
{
m_contains = false;
- QDomNode m = e.firstChild( );
+ TQDomNode m = e.firstChild( );
while( !m.isNull( ) )
{
if( m.isElement( ) )
{
- QDomElement me = m.toElement( );
+ TQDomElement me = m.toElement( );
if( isCategory( me ) )
m_categories.append( newCategory( me, globalGroups, localGroups ) );
}
@@ -454,12 +454,12 @@ bool PMRuleAfter::evaluate( const PMObject* )
return m_contains;
}
-void PMRuleAfter::countChildProtected( const QString& className,
+void PMRuleAfter::countChildProtected( const TQString& className,
bool afterInsertPoint )
{
if( !afterInsertPoint && !m_contains )
{
- QPtrListIterator<PMRuleCategory> it( m_categories );
+ TQPtrListIterator<PMRuleCategory> it( m_categories );
for( ; it.current( ) && !m_contains; ++it )
m_contains = it.current( )->matches( className );
}
@@ -470,18 +470,18 @@ void PMRuleAfter::resetProtected( )
m_contains = false;
}
-PMRuleContains::PMRuleContains( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups )
+PMRuleContains::PMRuleContains( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups )
: PMRuleCondition( )
{
m_contains = false;
- QDomNode m = e.firstChild( );
+ TQDomNode m = e.firstChild( );
while( !m.isNull( ) )
{
if( m.isElement( ) )
{
- QDomElement me = m.toElement( );
+ TQDomElement me = m.toElement( );
if( isCategory( me ) )
m_categories.append( newCategory( me, globalGroups, localGroups ) );
}
@@ -500,11 +500,11 @@ bool PMRuleContains::evaluate( const PMObject* )
return m_contains;
}
-void PMRuleContains::countChildProtected( const QString& className, bool )
+void PMRuleContains::countChildProtected( const TQString& className, bool )
{
if( !m_contains )
{
- QPtrListIterator<PMRuleCategory> it( m_categories );
+ TQPtrListIterator<PMRuleCategory> it( m_categories );
for( ; it.current( ) && !m_contains; ++it )
m_contains = it.current( )->matches( className );
}
@@ -515,21 +515,21 @@ void PMRuleContains::resetProtected( )
m_contains = false;
}
-PMRuleCompare::PMRuleCompare( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups )
+PMRuleCompare::PMRuleCompare( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups )
: PMRuleCondition( )
{
m_pValue[0] = 0;
m_pValue[1] = 0;
int i = 0;
- QDomNode m = e.firstChild( );
+ TQDomNode m = e.firstChild( );
while( !m.isNull( ) && !m_pValue[1] )
{
if( m.isElement( ) )
{
- QDomElement me = m.toElement( );
+ TQDomElement me = m.toElement( );
if( isValue( me ) )
{
m_pValue[i] = newValue( me, globalGroups, localGroups );
@@ -585,9 +585,9 @@ bool PMRuleCompare::evaluate( const PMObject* object )
return compare( v[0], v[1] );
}
-PMRuleLess::PMRuleLess( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups )
+PMRuleLess::PMRuleLess( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups )
: PMRuleCompare( e, globalGroups, localGroups )
{
}
@@ -632,9 +632,9 @@ bool PMRuleLess::compare( const PMVariant& v1, const PMVariant& v2 )
return c;
}
-PMRuleGreater::PMRuleGreater( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups )
+PMRuleGreater::PMRuleGreater( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups )
: PMRuleCompare( e, globalGroups, localGroups )
{
}
@@ -679,9 +679,9 @@ bool PMRuleGreater::compare( const PMVariant& v1, const PMVariant& v2 )
return c;
}
-PMRuleEqual::PMRuleEqual( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups )
+PMRuleEqual::PMRuleEqual( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups )
: PMRuleCompare( e, globalGroups, localGroups )
{
}
@@ -727,19 +727,19 @@ bool PMRuleEqual::compare( const PMVariant& v1, const PMVariant& v2 )
}
-PMRule::PMRule( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups )
+PMRule::PMRule( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups )
: PMRuleBase( )
{
m_pCondition = 0;
- QDomNode m = e.firstChild( );
+ TQDomNode m = e.firstChild( );
while( !m.isNull( ) && !m_pCondition )
{
if( m.isElement( ) )
{
- QDomElement me = m.toElement( );
+ TQDomElement me = m.toElement( );
if( isCategory( me ) )
m_categories.append( newCategory( me, globalGroups, localGroups ) );
else if( isCondition( me ) )
@@ -758,10 +758,10 @@ PMRule::~PMRule( )
m_categories.clear( );
}
-bool PMRule::matches( const QString& className )
+bool PMRule::matches( const TQString& className )
{
bool m = false;
- QPtrListIterator<PMRuleCategory> it( m_categories );
+ TQPtrListIterator<PMRuleCategory> it( m_categories );
for( ; it.current( ) && !m; ++it )
m = it.current( )->matches( className );
return m;
@@ -775,8 +775,8 @@ bool PMRule::evaluate( const PMObject* parent )
return m_pCondition->evaluate( parent );
}
-PMRuleTargetClass::PMRuleTargetClass( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups )
+PMRuleTargetClass::PMRuleTargetClass( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups )
{
m_class = e.attribute( "name" );
if( m_class.isEmpty( ) )
@@ -785,15 +785,15 @@ PMRuleTargetClass::PMRuleTargetClass( QDomElement& e,
appendRules( e, globalGroups );
}
-void PMRuleTargetClass::appendRules( QDomElement& e,
- QPtrList<PMRuleDefineGroup>& globalGroups )
+void PMRuleTargetClass::appendRules( TQDomElement& e,
+ TQPtrList<PMRuleDefineGroup>& globalGroups )
{
- QDomNode m = e.firstChild( );
+ TQDomNode m = e.firstChild( );
while( !m.isNull( ) )
{
if( m.isElement( ) )
{
- QDomElement me = m.toElement( );
+ TQDomElement me = m.toElement( );
if( me.tagName( ) == "definegroup" )
m_groups.append( new PMRuleDefineGroup( me, globalGroups, m_groups ) );
if( me.tagName( ) == "rule" )
@@ -826,7 +826,7 @@ PMInsertRuleSystem::~PMInsertRuleSystem( )
m_classRules.clear( );
}
-void PMInsertRuleSystem::loadRules( const QString& fileName )
+void PMInsertRuleSystem::loadRules( const TQString& fileName )
{
PMRuleClass::s_pPrototypeManager = m_pPart->prototypeManager( );
if( m_loadedFiles.find( fileName ) != m_loadedFiles.end( ) )
@@ -834,7 +834,7 @@ void PMInsertRuleSystem::loadRules( const QString& fileName )
m_loadedFiles.push_back( fileName );
- QString ruleFile = locate( "data", QString( "kpovmodeler/" + fileName ) );
+ TQString ruleFile = locate( "data", TQString( "kpovmodeler/" + fileName ) );
if( ruleFile.isEmpty( ) )
{
kdError( PMArea ) << "Rule file 'kpovmodeler/" << fileName
@@ -842,7 +842,7 @@ void PMInsertRuleSystem::loadRules( const QString& fileName )
return;
}
- QFile file( ruleFile );
+ TQFile file( ruleFile );
if( !file.open( IO_ReadOnly ) )
{
kdError( PMArea ) << "Could not open rule file 'kpovmodeler/" << fileName
@@ -850,29 +850,29 @@ void PMInsertRuleSystem::loadRules( const QString& fileName )
return;
}
- QDomDocument doc( "insertrules" );
+ TQDomDocument doc( "insertrules" );
doc.setContent( &file );
- QDomElement e = doc.documentElement( );
+ TQDomElement e = doc.documentElement( );
if( e.attribute( "format" ) != "1.0" )
kdError( PMArea ) << "Rule format " << e.attribute( "format" )
<< " not supported." << endl;
else
{
- QDomNode c = e.firstChild( );
- QPtrList<PMRuleDefineGroup> dummyLocalGroups;
+ TQDomNode c = e.firstChild( );
+ TQPtrList<PMRuleDefineGroup> dummyLocalGroups;
while( !c.isNull( ) )
{
if( c.isElement( ) )
{
- QDomElement ce = c.toElement( );
+ TQDomElement ce = c.toElement( );
if( ce.tagName( ) == "definegroup" )
m_groups.append( new PMRuleDefineGroup( ce, m_groups,
dummyLocalGroups ) );
else if( ce.tagName( ) == "targetclass" )
{
- QString className = ce.attribute( "name" );
+ TQString className = ce.attribute( "name" );
// find a target class with the same name
PMRuleTargetClass* target = 0;
@@ -898,7 +898,7 @@ void PMInsertRuleSystem::loadRules( const QString& fileName )
}
bool PMInsertRuleSystem::canInsert( const PMObject* parentObject,
- const QString& className,
+ const TQString& className,
const PMObject* after,
const PMObjectList* objectsBetween )
{
@@ -912,9 +912,9 @@ bool PMInsertRuleSystem::canInsert( const PMObject* parentObject,
if( tc )
{
// check the exception list
- QStringList exceptions = tc->exceptions( );
+ TQStringList exceptions = tc->exceptions( );
bool exceptionFound = false;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for( it = exceptions.begin( );
it != exceptions.end( ) && !exceptionFound; ++it )
if( parentObject->isA( *it ) )
@@ -922,7 +922,7 @@ bool PMInsertRuleSystem::canInsert( const PMObject* parentObject,
if( !exceptionFound )
{
- QPtrListIterator<PMRule> rit = tc->rules( );
+ TQPtrListIterator<PMRule> rit = tc->rules( );
// find matching rules for class name
for( ; rit.current( ) && !possible; ++rit )
{
@@ -975,14 +975,14 @@ int PMInsertRuleSystem::canInsert( const PMObject* parentObject,
const PMObject* after )
{
PMObjectListIterator it( list );
- QStringList classes;
+ TQStringList classes;
for( ; it.current( ); ++it )
classes.append( it.current( )->type( ) );
return canInsert( parentObject, classes, after );
}
int PMInsertRuleSystem::canInsert( const PMObject* parentObject,
- const QStringList& list,
+ const TQStringList& list,
const PMObject* after )
{
if( list.size( ) == 1 )
@@ -995,7 +995,7 @@ int PMInsertRuleSystem::canInsert( const PMObject* parentObject,
}
// find rules for target class
- QPtrList<PMRuleTargetClass> targetClassList;
+ TQPtrList<PMRuleTargetClass> targetClassList;
PMMetaObject* meta = parentObject->metaObject( );
for( ; meta; meta = meta->superClass( ) )
{
@@ -1007,10 +1007,10 @@ int PMInsertRuleSystem::canInsert( const PMObject* parentObject,
return 0; // not rules found
// count already inserted children
- QPtrListIterator<PMRuleTargetClass> tit( targetClassList );
+ TQPtrListIterator<PMRuleTargetClass> tit( targetClassList );
for( ; tit.current( ); ++tit ) // ... for all target classes
{
- QPtrListIterator<PMRule> rit = tit.current( )->rules( );
+ TQPtrListIterator<PMRule> rit = tit.current( )->rules( );
for( ; rit.current( ); ++rit ) // ... and all rules
{
rit.current( )->reset( );
@@ -1028,14 +1028,14 @@ int PMInsertRuleSystem::canInsert( const PMObject* parentObject,
}
int number = 0;
- QStringList::const_iterator oit;
+ TQStringList::const_iterator oit;
for( oit = list.begin( ); oit != list.end( ); ++oit )
{
bool possible = false;
for( tit.toFirst( ); tit.current( ) && !possible; ++tit )
{
- QPtrListIterator<PMRule> rit = tit.current( )->rules( );
+ TQPtrListIterator<PMRule> rit = tit.current( )->rules( );
for( ; rit.current( ) && !possible; ++rit )
{
@@ -1049,7 +1049,7 @@ int PMInsertRuleSystem::canInsert( const PMObject* parentObject,
// object can be inserted, count it
for( ; tit.current( ); ++tit )
{
- QPtrListIterator<PMRule> rit = tit.current( )->rules( );
+ TQPtrListIterator<PMRule> rit = tit.current( )->rules( );
for( ; rit.current( ); ++rit )
rit.current( )->countChild( *oit, false );
}
diff --git a/kpovmodeler/pminsertrulesystem.h b/kpovmodeler/pminsertrulesystem.h
index 499cbc8e..69f78deb 100644
--- a/kpovmodeler/pminsertrulesystem.h
+++ b/kpovmodeler/pminsertrulesystem.h
@@ -25,10 +25,10 @@
#include "pmobject.h"
-#include <qstringlist.h>
-#include <qptrlist.h>
-#include <qdict.h>
-#include <qdom.h>
+#include <tqstringlist.h>
+#include <tqptrlist.h>
+#include <tqdict.h>
+#include <tqdom.h>
class PMInsertRuleSystem;
class PMPrototypeManager;
@@ -51,7 +51,7 @@ public:
/**
* Returns true if the given class types matches the category.
*/
- virtual bool matches( const QString& className ) = 0;
+ virtual bool matches( const TQString& className ) = 0;
};
/**
@@ -66,13 +66,13 @@ public:
*/
static PMPrototypeManager* s_pPrototypeManager;
/**
- * Reads the data from the QDomElement.
+ * Reads the data from the TQDomElement.
*/
- PMRuleClass( QDomElement& e );
+ PMRuleClass( TQDomElement& e );
/** */
- virtual bool matches( const QString& className );
+ virtual bool matches( const TQString& className );
private:
- QString m_className;
+ TQString m_className;
PMPrototypeManager* m_pPrototypeManager;
};
@@ -84,10 +84,10 @@ class PMRuleDefineGroup
{
public:
/**
- * Reads the data from the QDomElement.
+ * Reads the data from the TQDomElement.
*/
- PMRuleDefineGroup( QDomElement& e, QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups );
+ PMRuleDefineGroup( TQDomElement& e, TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups );
/**
* Destructor
*/
@@ -95,14 +95,14 @@ public:
/**
* Returns true if the given class types matches the category.
*/
- virtual bool matches( const QString& className );
+ virtual bool matches( const TQString& className );
/**
* Returns the group's name
*/
- QString name( ) const { return m_name; }
+ TQString name( ) const { return m_name; }
private:
- QPtrList<PMRuleCategory> m_categories;
- QString m_name;
+ TQPtrList<PMRuleCategory> m_categories;
+ TQString m_name;
};
/**
@@ -112,12 +112,12 @@ class PMRuleGroup : public PMRuleCategory
{
public:
/**
- * Reads the data from the QDomElement.
+ * Reads the data from the TQDomElement.
*/
- PMRuleGroup( QDomElement& e, QPtrList<PMRuleDefineGroup>& globalGroups,
- QPtrList<PMRuleDefineGroup>& localGroups );
+ PMRuleGroup( TQDomElement& e, TQPtrList<PMRuleDefineGroup>& globalGroups,
+ TQPtrList<PMRuleDefineGroup>& localGroups );
/** */
- bool matches( const QString& className );
+ bool matches( const TQString& className );
private:
PMRuleDefineGroup* m_pGroup;
};
@@ -140,11 +140,11 @@ public:
/**
* Returns the node type.
*/
- virtual QString type( ) const = 0;
+ virtual TQString type( ) const = 0;
/**
* Calls countChildProtected for this node and all child nodes
*/
- void countChild( const QString& className, bool afterInsertPoint );
+ void countChild( const TQString& className, bool afterInsertPoint );
/**
* Calls resetProtected for this node and all child nodes
*/
@@ -152,16 +152,16 @@ public:
/**
* Returns an iterator to all child nodes
*/
- QPtrListIterator<PMRuleBase> childIterator( ) const
+ TQPtrListIterator<PMRuleBase> childIterator( ) const
{
- return QPtrListIterator<PMRuleBase>( m_children );
+ return TQPtrListIterator<PMRuleBase>( m_children );
}
protected:
/**
* Reimplement this method if the nodes value depends
* on already inserted child objects.
*/
- virtual void countChildProtected( const QString&, bool ) { }
+ virtual void countChildProtected( const TQString&, bool ) { }
/**
* Reset all cached data (like counted child objects) here.
*/
@@ -170,7 +170,7 @@ protected:
/**
* Add all child nodes to this list.
*/
- QPtrList<PMRuleBase> m_children;
+ TQPtrList<PMRuleBase> m_children;
};
/**