@ -227,7 +227,7 @@ void PMPart::initCopyPasteActions( )
m_pPasteAction = KStdAction : : paste ( this , TQT_SLOT ( slotEditPaste ( ) ) , actionCollection ( ) ) ;
m_pDeleteAction =
new K Action( i18n ( " Delete " ) , " edittrash " , TQt : : Key_Delete ,
new TDE Action( i18n ( " Delete " ) , " edittrash " , TQt : : Key_Delete ,
this , TQT_SLOT ( slotEditDelete ( ) ) ,
actionCollection ( ) , " edit_delete " ) ;
@ -241,10 +241,10 @@ void PMPart::initCopyPasteActions( )
void PMPart : : initActions ( )
{
// file menu
m_pImportAction = new K Action( i18n ( " Import... " ) , 0 , this ,
m_pImportAction = new TDE Action( i18n ( " Import... " ) , 0 , this ,
TQT_SLOT ( slotFileImport ( ) ) , actionCollection ( ) ,
" file_import " ) ;
m_pExportAction = new K Action( i18n ( " &Export... " ) , 0 , this ,
m_pExportAction = new TDE Action( i18n ( " &Export... " ) , 0 , this ,
TQT_SLOT ( slotFileExport ( ) ) , actionCollection ( ) ,
" file_export " ) ;
@ -256,11 +256,11 @@ void PMPart::initActions( )
m_pRenderComboAction - > setMinimumWidth ( 250 ) ;
connect ( m_pRenderComboAction , TQT_SIGNAL ( plugged ( ) ) ,
TQT_SLOT ( slotRenderModeActionPlugged ( ) ) ) ;
m_pRenderAction = new K Action( i18n ( " Render " ) , " pmrender " , 0 , this , TQT_SLOT ( slotRender ( ) ) ,
m_pRenderAction = new TDE Action( i18n ( " Render " ) , " pmrender " , 0 , this , TQT_SLOT ( slotRender ( ) ) ,
actionCollection ( ) , " view_render " ) ;
m_pRenderSettingsAction = new K Action( i18n ( " Render Modes... " ) , " pmrendersettings " , 0 , this , TQT_SLOT ( slotRenderSettings ( ) ) ,
m_pRenderSettingsAction = new TDE Action( i18n ( " Render Modes... " ) , " pmrendersettings " , 0 , this , TQT_SLOT ( slotRenderSettings ( ) ) ,
actionCollection ( ) , " view_render_settings " ) ;
m_pViewRenderWindowAction = new K Action( i18n ( " Render Window " ) , 0 , this , TQT_SLOT ( slotViewRenderWindow ( ) ) ,
m_pViewRenderWindowAction = new TDE Action( i18n ( " Render Window " ) , 0 , this , TQT_SLOT ( slotViewRenderWindow ( ) ) ,
actionCollection ( ) , " view_render_window " ) ;
m_pVisibilityLabelAction = new PMLabelAction ( i18n ( " Visibility level: " ) + TQString ( " " ) , actionCollection ( ) , " view_visibility_label " ) ;
m_pVisibilityLevelAction = new PMSpinBoxAction ( i18n ( " Visibility Level " ) ,
@ -270,7 +270,7 @@ void PMPart::initActions( )
TQT_SLOT ( slotVisibilityActionPlugged ( ) ) ) ;
m_pGlobalDetailLabelAction = new PMLabelAction ( i18n ( " Global detail: " ) + TQString ( " " ) , actionCollection ( ) , " global_detail_label " ) ;
m_pGlobalDetailAction = new K SelectAction( i18n ( " Global Detail Level " ) , K Shortcut( ) , actionCollection ( ) , " global_detail_level " ) ;
m_pGlobalDetailAction = new TDE SelectAction( i18n ( " Global Detail Level " ) , TDE Shortcut( ) , actionCollection ( ) , " global_detail_level " ) ;
TQStringList strList ;
strList . append ( i18n ( " Very Low " ) ) ;
strList . append ( i18n ( " Low " ) ) ;
@ -283,264 +283,264 @@ void PMPart::initActions( )
// new objects
if ( isReadWrite ( ) )
{
m_pNewGlobalSettingsAction = new K Action( i18n ( " Global Settings " ) , " pmglobalsettings " , 0 , this , TQT_SLOT ( slotNewGlobalSettings ( ) ) ,
m_pNewGlobalSettingsAction = new TDE Action( i18n ( " Global Settings " ) , " pmglobalsettings " , 0 , this , TQT_SLOT ( slotNewGlobalSettings ( ) ) ,
actionCollection ( ) , " new_globalsettings " ) ;
m_readWriteActions . append ( m_pNewGlobalSettingsAction ) ;
m_pNewSkySphereAction = new K Action( i18n ( " Sky Sphere " ) , " pmskysphere " , 0 , this , TQT_SLOT ( slotNewSkySphere ( ) ) ,
m_pNewSkySphereAction = new TDE Action( i18n ( " Sky Sphere " ) , " pmskysphere " , 0 , this , TQT_SLOT ( slotNewSkySphere ( ) ) ,
actionCollection ( ) , " new_skysphere " ) ;
m_readWriteActions . append ( m_pNewSkySphereAction ) ;
m_pNewRainbowAction = new K Action( i18n ( " Rainbow " ) , " pmrainbow " , 0 , this , TQT_SLOT ( slotNewRainbow ( ) ) ,
m_pNewRainbowAction = new TDE Action( i18n ( " Rainbow " ) , " pmrainbow " , 0 , this , TQT_SLOT ( slotNewRainbow ( ) ) ,
actionCollection ( ) , " new_rainbow " ) ;
m_readWriteActions . append ( m_pNewRainbowAction ) ;
m_pNewFogAction = new K Action( i18n ( " Fog " ) , " pmfog " , 0 , this , TQT_SLOT ( slotNewFog ( ) ) ,
m_pNewFogAction = new TDE Action( i18n ( " Fog " ) , " pmfog " , 0 , this , TQT_SLOT ( slotNewFog ( ) ) ,
actionCollection ( ) , " new_fog " ) ;
m_readWriteActions . append ( m_pNewFogAction ) ;
m_pNewInteriorAction = new K Action( i18n ( " Interior " ) , " pminterior " , 0 , this , TQT_SLOT ( slotNewInterior ( ) ) ,
m_pNewInteriorAction = new TDE Action( i18n ( " Interior " ) , " pminterior " , 0 , this , TQT_SLOT ( slotNewInterior ( ) ) ,
actionCollection ( ) , " new_interior " ) ;
m_readWriteActions . append ( m_pNewInteriorAction ) ;
m_pNewMediaAction = new K Action( i18n ( " Media " ) , " pmmedia " , 0 , this , TQT_SLOT ( slotNewMedia ( ) ) ,
m_pNewMediaAction = new TDE Action( i18n ( " Media " ) , " pmmedia " , 0 , this , TQT_SLOT ( slotNewMedia ( ) ) ,
actionCollection ( ) , " new_media " ) ;
m_readWriteActions . append ( m_pNewMediaAction ) ;
m_pNewDensityAction = new K Action( i18n ( " Density " ) , " pmdensity " , 0 , this , TQT_SLOT ( slotNewDensity ( ) ) ,
m_pNewDensityAction = new TDE Action( i18n ( " Density " ) , " pmdensity " , 0 , this , TQT_SLOT ( slotNewDensity ( ) ) ,
actionCollection ( ) , " new_density " ) ;
m_readWriteActions . append ( m_pNewDensityAction ) ;
m_pNewMaterialAction = new K Action( i18n ( " Material " ) , " pmmaterial " , 0 , this , TQT_SLOT ( slotNewMaterial ( ) ) ,
m_pNewMaterialAction = new TDE Action( i18n ( " Material " ) , " pmmaterial " , 0 , this , TQT_SLOT ( slotNewMaterial ( ) ) ,
actionCollection ( ) , " new_material " ) ;
m_readWriteActions . append ( m_pNewMaterialAction ) ;
m_pNewBoxAction = new K Action( i18n ( " Box " ) , " pmbox " , 0 , this , TQT_SLOT ( slotNewBox ( ) ) ,
m_pNewBoxAction = new TDE Action( i18n ( " Box " ) , " pmbox " , 0 , this , TQT_SLOT ( slotNewBox ( ) ) ,
actionCollection ( ) , " new_box " ) ;
m_readWriteActions . append ( m_pNewBoxAction ) ;
m_pNewSphereAction = new K Action( i18n ( " Sphere " ) , " pmsphere " , 0 , this , TQT_SLOT ( slotNewSphere ( ) ) ,
m_pNewSphereAction = new TDE Action( i18n ( " Sphere " ) , " pmsphere " , 0 , this , TQT_SLOT ( slotNewSphere ( ) ) ,
actionCollection ( ) , " new_sphere " ) ;
m_readWriteActions . append ( m_pNewSphereAction ) ;
m_pNewCylinderAction = new K Action( i18n ( " Cylinder " ) , " pmcylinder " , 0 , this , TQT_SLOT ( slotNewCylinder ( ) ) ,
m_pNewCylinderAction = new TDE Action( i18n ( " Cylinder " ) , " pmcylinder " , 0 , this , TQT_SLOT ( slotNewCylinder ( ) ) ,
actionCollection ( ) , " new_cylinder " ) ;
m_readWriteActions . append ( m_pNewCylinderAction ) ;
m_pNewConeAction = new K Action( i18n ( " Cone " ) , " pmcone " , 0 , this , TQT_SLOT ( slotNewCone ( ) ) ,
m_pNewConeAction = new TDE Action( i18n ( " Cone " ) , " pmcone " , 0 , this , TQT_SLOT ( slotNewCone ( ) ) ,
actionCollection ( ) , " new_cone " ) ;
m_readWriteActions . append ( m_pNewConeAction ) ;
m_pNewTorusAction = new K Action( i18n ( " Torus " ) , " pmtorus " , 0 , this , TQT_SLOT ( slotNewTorus ( ) ) ,
m_pNewTorusAction = new TDE Action( i18n ( " Torus " ) , " pmtorus " , 0 , this , TQT_SLOT ( slotNewTorus ( ) ) ,
actionCollection ( ) , " new_torus " ) ;
m_readWriteActions . append ( m_pNewTorusAction ) ;
m_pNewLatheAction = new K Action( i18n ( " Lathe " ) , " pmlathe " , 0 , this , TQT_SLOT ( slotNewLathe ( ) ) ,
m_pNewLatheAction = new TDE Action( i18n ( " Lathe " ) , " pmlathe " , 0 , this , TQT_SLOT ( slotNewLathe ( ) ) ,
actionCollection ( ) , " new_lathe " ) ;
m_readWriteActions . append ( m_pNewLatheAction ) ;
m_pNewPrismAction = new K Action( i18n ( " Prism " ) , " pmprism " , 0 , this , TQT_SLOT ( slotNewPrism ( ) ) ,
m_pNewPrismAction = new TDE Action( i18n ( " Prism " ) , " pmprism " , 0 , this , TQT_SLOT ( slotNewPrism ( ) ) ,
actionCollection ( ) , " new_prism " ) ;
m_readWriteActions . append ( m_pNewPrismAction ) ;
m_pNewSurfaceOfRevolutionAction = new K Action( i18n ( " Surface of Revolution " ) , " pmsor " , 0 , this , TQT_SLOT ( slotNewSurfaceOfRevolution ( ) ) ,
m_pNewSurfaceOfRevolutionAction = new TDE Action( i18n ( " Surface of Revolution " ) , " pmsor " , 0 , this , TQT_SLOT ( slotNewSurfaceOfRevolution ( ) ) ,
actionCollection ( ) , " new_surfaceofrevolution " ) ;
m_readWriteActions . append ( m_pNewSurfaceOfRevolutionAction ) ;
m_pNewSuperquadricEllipsoidAction = new K Action( i18n ( " Superquadric Ellipsoid " ) , " pmsqe " , 0 , this , TQT_SLOT ( slotNewSuperquadricEllipsoid ( ) ) ,
m_pNewSuperquadricEllipsoidAction = new TDE Action( i18n ( " Superquadric Ellipsoid " ) , " pmsqe " , 0 , this , TQT_SLOT ( slotNewSuperquadricEllipsoid ( ) ) ,
actionCollection ( ) , " new_superquadricellipsoid " ) ;
m_readWriteActions . append ( m_pNewSuperquadricEllipsoidAction ) ;
m_pNewJuliaFractalAction = new K Action( i18n ( " Julia Fractal " ) , " pmjuliafractal " , 0 , this , TQT_SLOT ( slotNewJuliaFractal ( ) ) ,
m_pNewJuliaFractalAction = new TDE Action( i18n ( " Julia Fractal " ) , " pmjuliafractal " , 0 , this , TQT_SLOT ( slotNewJuliaFractal ( ) ) ,
actionCollection ( ) , " new_juliafractal " ) ;
m_readWriteActions . append ( m_pNewJuliaFractalAction ) ;
m_pNewHeightFieldAction = new K Action( i18n ( " Height Field " ) , " pmheightfield " , 0 , this , TQT_SLOT ( slotNewHeightField ( ) ) ,
m_pNewHeightFieldAction = new TDE Action( i18n ( " Height Field " ) , " pmheightfield " , 0 , this , TQT_SLOT ( slotNewHeightField ( ) ) ,
actionCollection ( ) , " new_heightfield " ) ;
m_readWriteActions . append ( m_pNewHeightFieldAction ) ;
m_pNewTextAction = new K Action( i18n ( " Text " ) , " pmtext " , 0 , this , TQT_SLOT ( slotNewText ( ) ) ,
m_pNewTextAction = new TDE Action( i18n ( " Text " ) , " pmtext " , 0 , this , TQT_SLOT ( slotNewText ( ) ) ,
actionCollection ( ) , " new_text " ) ;
m_readWriteActions . append ( m_pNewTextAction ) ;
m_pNewBlobAction = new K Action( i18n ( " Blob " ) , " pmblob " , 0 , this , TQT_SLOT ( slotNewBlob ( ) ) ,
m_pNewBlobAction = new TDE Action( i18n ( " Blob " ) , " pmblob " , 0 , this , TQT_SLOT ( slotNewBlob ( ) ) ,
actionCollection ( ) , " new_blob " ) ;
m_readWriteActions . append ( m_pNewBlobAction ) ;
m_pNewBlobSphereAction = new K Action( i18n ( " Blob Sphere " ) , " pmblobsphere " , 0 , this , TQT_SLOT ( slotNewBlobSphere ( ) ) ,
m_pNewBlobSphereAction = new TDE Action( i18n ( " Blob Sphere " ) , " pmblobsphere " , 0 , this , TQT_SLOT ( slotNewBlobSphere ( ) ) ,
actionCollection ( ) , " new_blobsphere " ) ;
m_readWriteActions . append ( m_pNewBlobSphereAction ) ;
m_pNewBlobCylinderAction = new K Action( i18n ( " Blob Cylinder " ) , " pmblobcylinder " , 0 , this , TQT_SLOT ( slotNewBlobCylinder ( ) ) ,
m_pNewBlobCylinderAction = new TDE Action( i18n ( " Blob Cylinder " ) , " pmblobcylinder " , 0 , this , TQT_SLOT ( slotNewBlobCylinder ( ) ) ,
actionCollection ( ) , " new_blobcylinder " ) ;
m_readWriteActions . append ( m_pNewBlobCylinderAction ) ;
m_pNewPlaneAction = new K Action( i18n ( " Plane " ) , " pmplane " , 0 , this , TQT_SLOT ( slotNewPlane ( ) ) ,
m_pNewPlaneAction = new TDE Action( i18n ( " Plane " ) , " pmplane " , 0 , this , TQT_SLOT ( slotNewPlane ( ) ) ,
actionCollection ( ) , " new_plane " ) ;
m_readWriteActions . append ( m_pNewPlaneAction ) ;
m_pNewPolynomAction = new K Action( i18n ( " Polynom " ) , " pmpolynom " , 0 , this , TQT_SLOT ( slotNewPolynom ( ) ) ,
m_pNewPolynomAction = new TDE Action( i18n ( " Polynom " ) , " pmpolynom " , 0 , this , TQT_SLOT ( slotNewPolynom ( ) ) ,
actionCollection ( ) , " new_polynom " ) ;
m_readWriteActions . append ( m_pNewPolynomAction ) ;
m_pNewDeclareAction = new K Action( i18n ( " Declaration " ) , " pmdeclare " , 0 , this , TQT_SLOT ( slotNewDeclare ( ) ) ,
m_pNewDeclareAction = new TDE Action( i18n ( " Declaration " ) , " pmdeclare " , 0 , this , TQT_SLOT ( slotNewDeclare ( ) ) ,
actionCollection ( ) , " new_declare " ) ;
m_readWriteActions . append ( m_pNewDeclareAction ) ;
m_pNewObjectLinkAction = new K Action( i18n ( " Object Link " ) , " pmobjectlink " , 0 , this , TQT_SLOT ( slotNewObjectLink ( ) ) ,
m_pNewObjectLinkAction = new TDE Action( i18n ( " Object Link " ) , " pmobjectlink " , 0 , this , TQT_SLOT ( slotNewObjectLink ( ) ) ,
actionCollection ( ) , " new_objectlink " ) ;
m_readWriteActions . append ( m_pNewObjectLinkAction ) ;
m_pNewUnionAction = new K Action( i18n ( " Union " ) , " pmunion " , 0 , this , TQT_SLOT ( slotNewUnion ( ) ) ,
m_pNewUnionAction = new TDE Action( i18n ( " Union " ) , " pmunion " , 0 , this , TQT_SLOT ( slotNewUnion ( ) ) ,
actionCollection ( ) , " new_union " ) ;
m_readWriteActions . append ( m_pNewUnionAction ) ;
m_pNewIntersectionAction = new K Action( i18n ( " Intersection " ) , " pmintersection " , 0 , this , TQT_SLOT ( slotNewIntersection ( ) ) ,
m_pNewIntersectionAction = new TDE Action( i18n ( " Intersection " ) , " pmintersection " , 0 , this , TQT_SLOT ( slotNewIntersection ( ) ) ,
actionCollection ( ) , " new_intersection " ) ;
m_readWriteActions . append ( m_pNewIntersectionAction ) ;
m_pNewDifferenceAction = new K Action( i18n ( " Difference " ) , " pmdifference " , 0 , this , TQT_SLOT ( slotNewDifference ( ) ) ,
m_pNewDifferenceAction = new TDE Action( i18n ( " Difference " ) , " pmdifference " , 0 , this , TQT_SLOT ( slotNewDifference ( ) ) ,
actionCollection ( ) , " new_difference " ) ;
m_readWriteActions . append ( m_pNewDifferenceAction ) ;
m_pNewMergeAction = new K Action( i18n ( " Merge " ) , " pmmerge " , 0 , this , TQT_SLOT ( slotNewMerge ( ) ) ,
m_pNewMergeAction = new TDE Action( i18n ( " Merge " ) , " pmmerge " , 0 , this , TQT_SLOT ( slotNewMerge ( ) ) ,
actionCollection ( ) , " new_merge " ) ;
m_readWriteActions . append ( m_pNewMergeAction ) ;
m_pNewBoundedByAction = new K Action( i18n ( " Bounded By " ) , " pmboundedby " , 0 , this , TQT_SLOT ( slotNewBoundedBy ( ) ) ,
m_pNewBoundedByAction = new TDE Action( i18n ( " Bounded By " ) , " pmboundedby " , 0 , this , TQT_SLOT ( slotNewBoundedBy ( ) ) ,
actionCollection ( ) , " new_boundedby " ) ;
m_readWriteActions . append ( m_pNewBoundedByAction ) ;
m_pNewClippedByAction = new K Action( i18n ( " Clipped By " ) , " pmclippedby " , 0 , this , TQT_SLOT ( slotNewClippedBy ( ) ) ,
m_pNewClippedByAction = new TDE Action( i18n ( " Clipped By " ) , " pmclippedby " , 0 , this , TQT_SLOT ( slotNewClippedBy ( ) ) ,
actionCollection ( ) , " new_clippedby " ) ;
m_readWriteActions . append ( m_pNewClippedByAction ) ;
m_pNewLightAction = new K Action( i18n ( " Light " ) , " pmlight " , 0 , this , TQT_SLOT ( slotNewLight ( ) ) ,
m_pNewLightAction = new TDE Action( i18n ( " Light " ) , " pmlight " , 0 , this , TQT_SLOT ( slotNewLight ( ) ) ,
actionCollection ( ) , " new_light " ) ;
m_readWriteActions . append ( m_pNewLightAction ) ;
m_pNewLooksLikeAction = new K Action( i18n ( " Looks Like " ) , " pmlookslike " , 0 , this , TQT_SLOT ( slotNewLooksLike ( ) ) ,
m_pNewLooksLikeAction = new TDE Action( i18n ( " Looks Like " ) , " pmlookslike " , 0 , this , TQT_SLOT ( slotNewLooksLike ( ) ) ,
actionCollection ( ) , " new_lookslike " ) ;
m_readWriteActions . append ( m_pNewLooksLikeAction ) ;
m_pNewProjectedThroughAction = new K Action( i18n ( " Projected Through " ) , " pmprojectedthrough " , 0 , this , TQT_SLOT ( slotNewProjectedThrough ( ) ) ,
m_pNewProjectedThroughAction = new TDE Action( i18n ( " Projected Through " ) , " pmprojectedthrough " , 0 , this , TQT_SLOT ( slotNewProjectedThrough ( ) ) ,
actionCollection ( ) , " new_projectedthrough " ) ;
m_readWriteActions . append ( m_pNewProjectedThroughAction ) ;
m_pNewBicubicPatchAction = new K Action( i18n ( " Bicubic Patch " ) , " pmbicubicpatch " , 0 , this , TQT_SLOT ( slotNewBicubicPatch ( ) ) ,
m_pNewBicubicPatchAction = new TDE Action( i18n ( " Bicubic Patch " ) , " pmbicubicpatch " , 0 , this , TQT_SLOT ( slotNewBicubicPatch ( ) ) ,
actionCollection ( ) , " new_bicubicpatch " ) ;
m_readWriteActions . append ( m_pNewBicubicPatchAction ) ;
m_pNewDiscAction = new K Action( i18n ( " Disc " ) , " pmdisc " , 0 , this , TQT_SLOT ( slotNewDisc ( ) ) ,
m_pNewDiscAction = new TDE Action( i18n ( " Disc " ) , " pmdisc " , 0 , this , TQT_SLOT ( slotNewDisc ( ) ) ,
actionCollection ( ) , " new_disc " ) ;
m_readWriteActions . append ( m_pNewDiscAction ) ;
m_pNewTriangleAction = new K Action( i18n ( " Triangle " ) , " pmtriangle " , 0 , this , TQT_SLOT ( slotNewTriangle ( ) ) ,
m_pNewTriangleAction = new TDE Action( i18n ( " Triangle " ) , " pmtriangle " , 0 , this , TQT_SLOT ( slotNewTriangle ( ) ) ,
actionCollection ( ) , " new_triangle " ) ;
m_readWriteActions . append ( m_pNewTriangleAction ) ;
m_pNewCameraAction = new K Action( i18n ( " Camera " ) , " pmcamera " , 0 , this , TQT_SLOT ( slotNewCamera ( ) ) ,
m_pNewCameraAction = new TDE Action( i18n ( " Camera " ) , " pmcamera " , 0 , this , TQT_SLOT ( slotNewCamera ( ) ) ,
actionCollection ( ) , " new_camera " ) ;
m_readWriteActions . append ( m_pNewCameraAction ) ;
m_pNewTextureAction = new K Action( i18n ( " Texture " ) , " pmtexture " , 0 , this , TQT_SLOT ( slotNewTexture ( ) ) ,
m_pNewTextureAction = new TDE Action( i18n ( " Texture " ) , " pmtexture " , 0 , this , TQT_SLOT ( slotNewTexture ( ) ) ,
actionCollection ( ) , " new_texture " ) ;
m_readWriteActions . append ( m_pNewTextureAction ) ;
m_pNewPigmentAction = new K Action( i18n ( " Pigment " ) , " pmpigment " , 0 , this , TQT_SLOT ( slotNewPigment ( ) ) ,
m_pNewPigmentAction = new TDE Action( i18n ( " Pigment " ) , " pmpigment " , 0 , this , TQT_SLOT ( slotNewPigment ( ) ) ,
actionCollection ( ) , " new_pigment " ) ;
m_readWriteActions . append ( m_pNewPigmentAction ) ;
m_pNewNormalAction = new K Action( i18n ( " Normal " ) , " pmnormal " , 0 , this , TQT_SLOT ( slotNewNormal ( ) ) ,
m_pNewNormalAction = new TDE Action( i18n ( " Normal " ) , " pmnormal " , 0 , this , TQT_SLOT ( slotNewNormal ( ) ) ,
actionCollection ( ) , " new_normal " ) ;
m_readWriteActions . append ( m_pNewNormalAction ) ;
m_pNewSolidColorAction = new K Action( i18n ( " Solid Color " ) , " pmsolidcolor " , 0 , this , TQT_SLOT ( slotNewSolidColor ( ) ) ,
m_pNewSolidColorAction = new TDE Action( i18n ( " Solid Color " ) , " pmsolidcolor " , 0 , this , TQT_SLOT ( slotNewSolidColor ( ) ) ,
actionCollection ( ) , " new_solidcolor " ) ;
m_readWriteActions . append ( m_pNewSolidColorAction ) ;
m_pNewTextureListAction = new K Action( i18n ( " Texture List " ) , " pmtexturelist " , 0 , this , TQT_SLOT ( slotNewTextureList ( ) ) ,
m_pNewTextureListAction = new TDE Action( i18n ( " Texture List " ) , " pmtexturelist " , 0 , this , TQT_SLOT ( slotNewTextureList ( ) ) ,
actionCollection ( ) , " new_texturelist " ) ;
m_readWriteActions . append ( m_pNewTextureListAction ) ;
m_pNewColorListAction = new K Action( i18n ( " Color List " ) , " pmcolorlist " , 0 , this , TQT_SLOT ( slotNewColorList ( ) ) ,
m_pNewColorListAction = new TDE Action( i18n ( " Color List " ) , " pmcolorlist " , 0 , this , TQT_SLOT ( slotNewColorList ( ) ) ,
actionCollection ( ) , " new_colorlist " ) ;
m_readWriteActions . append ( m_pNewColorListAction ) ;
m_pNewPigmentListAction = new K Action( i18n ( " Pigment List " ) , " pmpigmentlist " , 0 , this , TQT_SLOT ( slotNewPigmentList ( ) ) ,
m_pNewPigmentListAction = new TDE Action( i18n ( " Pigment List " ) , " pmpigmentlist " , 0 , this , TQT_SLOT ( slotNewPigmentList ( ) ) ,
actionCollection ( ) , " new_pigmentlist " ) ;
m_readWriteActions . append ( m_pNewPigmentListAction ) ;
m_pNewNormalListAction = new K Action( i18n ( " Normal List " ) , " pmnormallist " , 0 , this , TQT_SLOT ( slotNewNormalList ( ) ) ,
m_pNewNormalListAction = new TDE Action( i18n ( " Normal List " ) , " pmnormallist " , 0 , this , TQT_SLOT ( slotNewNormalList ( ) ) ,
actionCollection ( ) , " new_normallist " ) ;
m_readWriteActions . append ( m_pNewNormalListAction ) ;
m_pNewDensityListAction = new K Action( i18n ( " Density List " ) , " pmdensitylist " , 0 , this , TQT_SLOT ( slotNewDensityList ( ) ) ,
m_pNewDensityListAction = new TDE Action( i18n ( " Density List " ) , " pmdensitylist " , 0 , this , TQT_SLOT ( slotNewDensityList ( ) ) ,
actionCollection ( ) , " new_densitylist " ) ;
m_readWriteActions . append ( m_pNewDensityListAction ) ;
m_pNewFinishAction = new K Action( i18n ( " Finish " ) , " pmfinish " , 0 , this , TQT_SLOT ( slotNewFinish ( ) ) ,
m_pNewFinishAction = new TDE Action( i18n ( " Finish " ) , " pmfinish " , 0 , this , TQT_SLOT ( slotNewFinish ( ) ) ,
actionCollection ( ) , " new_finish " ) ;
m_readWriteActions . append ( m_pNewFinishAction ) ;
m_pNewPatternAction = new K Action( i18n ( " Pattern " ) , " pmpattern " , 0 , this , TQT_SLOT ( slotNewPattern ( ) ) ,
m_pNewPatternAction = new TDE Action( i18n ( " Pattern " ) , " pmpattern " , 0 , this , TQT_SLOT ( slotNewPattern ( ) ) ,
actionCollection ( ) , " new_pattern " ) ;
m_readWriteActions . append ( m_pNewPatternAction ) ;
m_pNewBlendMapModifiersAction = new K Action( i18n ( " Blend Map Modifiers " ) , " pmblendmapmodifiers " , 0 , this , TQT_SLOT ( slotNewBlendMapModifiers ( ) ) ,
m_pNewBlendMapModifiersAction = new TDE Action( i18n ( " Blend Map Modifiers " ) , " pmblendmapmodifiers " , 0 , this , TQT_SLOT ( slotNewBlendMapModifiers ( ) ) ,
actionCollection ( ) , " new_blendmapmodifiers " ) ;
m_readWriteActions . append ( m_pNewBlendMapModifiersAction ) ;
m_pNewTextureMapAction = new K Action( i18n ( " Texture Map " ) , " pmtexturemap " , 0 , this , TQT_SLOT ( slotNewTextureMap ( ) ) ,
m_pNewTextureMapAction = new TDE Action( i18n ( " Texture Map " ) , " pmtexturemap " , 0 , this , TQT_SLOT ( slotNewTextureMap ( ) ) ,
actionCollection ( ) , " new_texturemap " ) ;
m_readWriteActions . append ( m_pNewTextureMapAction ) ;
m_pNewMaterialMapAction = new K Action( i18n ( " Material Map " ) , " pmmaterialmap " , 0 , this , TQT_SLOT ( slotNewMaterialMap ( ) ) ,
m_pNewMaterialMapAction = new TDE Action( i18n ( " Material Map " ) , " pmmaterialmap " , 0 , this , TQT_SLOT ( slotNewMaterialMap ( ) ) ,
actionCollection ( ) , " new_materialmap " ) ;
m_readWriteActions . append ( m_pNewMaterialMapAction ) ;
m_pNewPigmentMapAction = new K Action( i18n ( " Pigment Map " ) , " pmpigmentmap " , 0 , this , TQT_SLOT ( slotNewPigmentMap ( ) ) ,
m_pNewPigmentMapAction = new TDE Action( i18n ( " Pigment Map " ) , " pmpigmentmap " , 0 , this , TQT_SLOT ( slotNewPigmentMap ( ) ) ,
actionCollection ( ) , " new_pigmentmap " ) ;
m_readWriteActions . append ( m_pNewPigmentMapAction ) ;
m_pNewColorMapAction = new K Action( i18n ( " Color Map " ) , " pmcolormap " , 0 , this , TQT_SLOT ( slotNewColorMap ( ) ) ,
m_pNewColorMapAction = new TDE Action( i18n ( " Color Map " ) , " pmcolormap " , 0 , this , TQT_SLOT ( slotNewColorMap ( ) ) ,
actionCollection ( ) , " new_colormap " ) ;
m_readWriteActions . append ( m_pNewColorMapAction ) ;
m_pNewNormalMapAction = new K Action( i18n ( " Normal Map " ) , " pmnormalmap " , 0 , this , TQT_SLOT ( slotNewNormalMap ( ) ) ,
m_pNewNormalMapAction = new TDE Action( i18n ( " Normal Map " ) , " pmnormalmap " , 0 , this , TQT_SLOT ( slotNewNormalMap ( ) ) ,
actionCollection ( ) , " new_normalmap " ) ;
m_readWriteActions . append ( m_pNewNormalMapAction ) ;
m_pNewBumpMapAction = new K Action( i18n ( " Bump Map " ) , " pmbumpmap " , 0 , this , TQT_SLOT ( slotNewBumpMap ( ) ) ,
m_pNewBumpMapAction = new TDE Action( i18n ( " Bump Map " ) , " pmbumpmap " , 0 , this , TQT_SLOT ( slotNewBumpMap ( ) ) ,
actionCollection ( ) , " new_bumpmap " ) ;
m_readWriteActions . append ( m_pNewBumpMapAction ) ;
m_pNewSlopeMapAction = new K Action( i18n ( " Slope Map " ) , " pmslopemap " , 0 , this , TQT_SLOT ( slotNewSlopeMap ( ) ) ,
m_pNewSlopeMapAction = new TDE Action( i18n ( " Slope Map " ) , " pmslopemap " , 0 , this , TQT_SLOT ( slotNewSlopeMap ( ) ) ,
actionCollection ( ) , " new_slopemap " ) ;
m_readWriteActions . append ( m_pNewSlopeMapAction ) ;
m_pNewDensityMapAction = new K Action( i18n ( " Density Map " ) , " pmdensitymap " , 0 , this , TQT_SLOT ( slotNewDensityMap ( ) ) ,
m_pNewDensityMapAction = new TDE Action( i18n ( " Density Map " ) , " pmdensitymap " , 0 , this , TQT_SLOT ( slotNewDensityMap ( ) ) ,
actionCollection ( ) , " new_densitymap " ) ;
m_readWriteActions . append ( m_pNewDensityMapAction ) ;
m_pNewSlopeAction = new K Action( i18n ( " Slope " ) , " pmslope " , 0 , this , TQT_SLOT ( slotNewSlope ( ) ) ,
m_pNewSlopeAction = new TDE Action( i18n ( " Slope " ) , " pmslope " , 0 , this , TQT_SLOT ( slotNewSlope ( ) ) ,
actionCollection ( ) , " new_slope " ) ;
m_readWriteActions . append ( m_pNewSlopeAction ) ;
m_pNewWarpAction = new K Action( i18n ( " Warp " ) , " pmwarp " , 0 , this , TQT_SLOT ( slotNewWarp ( ) ) ,
m_pNewWarpAction = new TDE Action( i18n ( " Warp " ) , " pmwarp " , 0 , this , TQT_SLOT ( slotNewWarp ( ) ) ,
actionCollection ( ) , " new_warp " ) ;
m_readWriteActions . append ( m_pNewWarpAction ) ;
m_pNewImageMapAction = new K Action( i18n ( " Image Map " ) , " pmimagemap " , 0 , this , TQT_SLOT ( slotNewImageMap ( ) ) ,
m_pNewImageMapAction = new TDE Action( i18n ( " Image Map " ) , " pmimagemap " , 0 , this , TQT_SLOT ( slotNewImageMap ( ) ) ,
actionCollection ( ) , " new_imagemap " ) ;
m_readWriteActions . append ( m_pNewImageMapAction ) ;
m_pNewQuickColorAction = new K Action( i18n ( " QuickColor " ) , " pmquickcolor " , 0 , this , TQT_SLOT ( slotNewQuickColor ( ) ) ,
m_pNewQuickColorAction = new TDE Action( i18n ( " QuickColor " ) , " pmquickcolor " , 0 , this , TQT_SLOT ( slotNewQuickColor ( ) ) ,
actionCollection ( ) , " new_quickcolor " ) ;
m_readWriteActions . append ( m_pNewQuickColorAction ) ;
m_pNewTranslateAction = new K Action( i18n ( " Translate " ) , " pmtranslate " , 0 , this , TQT_SLOT ( slotNewTranslate ( ) ) ,
m_pNewTranslateAction = new TDE Action( i18n ( " Translate " ) , " pmtranslate " , 0 , this , TQT_SLOT ( slotNewTranslate ( ) ) ,
actionCollection ( ) , " new_translate " ) ;
m_readWriteActions . append ( m_pNewTranslateAction ) ;
m_pNewScaleAction = new K Action( i18n ( " Scale " ) , " pmscale " , 0 , this , TQT_SLOT ( slotNewScale ( ) ) ,
m_pNewScaleAction = new TDE Action( i18n ( " Scale " ) , " pmscale " , 0 , this , TQT_SLOT ( slotNewScale ( ) ) ,
actionCollection ( ) , " new_scale " ) ;
m_readWriteActions . append ( m_pNewScaleAction ) ;
m_pNewRotateAction = new K Action( i18n ( " Rotate " ) , " pmrotate " , 0 , this , TQT_SLOT ( slotNewRotate ( ) ) ,
m_pNewRotateAction = new TDE Action( i18n ( " Rotate " ) , " pmrotate " , 0 , this , TQT_SLOT ( slotNewRotate ( ) ) ,
actionCollection ( ) , " new_rotate " ) ;
m_readWriteActions . append ( m_pNewRotateAction ) ;
m_pNewMatrixAction = new K Action( i18n ( " Matrix " ) , " pmmatrix " , 0 , this , TQT_SLOT ( slotNewMatrix ( ) ) ,
m_pNewMatrixAction = new TDE Action( i18n ( " Matrix " ) , " pmmatrix " , 0 , this , TQT_SLOT ( slotNewMatrix ( ) ) ,
actionCollection ( ) , " new_povraymatrix " ) ;
m_readWriteActions . append ( m_pNewMatrixAction ) ;
m_pNewCommentAction = new K Action( i18n ( " Comment " ) , " pmcomment " , 0 , this , TQT_SLOT ( slotNewComment ( ) ) ,
m_pNewCommentAction = new TDE Action( i18n ( " Comment " ) , " pmcomment " , 0 , this , TQT_SLOT ( slotNewComment ( ) ) ,
actionCollection ( ) , " new_comment " ) ;
m_readWriteActions . append ( m_pNewCommentAction ) ;
m_pNewRawAction = new K Action( i18n ( " Raw Povray " ) , " pmraw " , 0 , this , TQT_SLOT ( slotNewRaw ( ) ) ,
m_pNewRawAction = new TDE Action( i18n ( " Raw Povray " ) , " pmraw " , 0 , this , TQT_SLOT ( slotNewRaw ( ) ) ,
actionCollection ( ) , " new_raw " ) ;
m_readWriteActions . append ( m_pNewRawAction ) ;
// POV-Ray 3.5 objects
m_pNewIsoSurfaceAction = new K Action( i18n ( " Iso Surface " ) , " pmisosurface " , 0 , this , TQT_SLOT ( slotNewIsoSurface ( ) ) ,
m_pNewIsoSurfaceAction = new TDE Action( i18n ( " Iso Surface " ) , " pmisosurface " , 0 , this , TQT_SLOT ( slotNewIsoSurface ( ) ) ,
actionCollection ( ) , " new_isosurface " ) ;
m_readWriteActions . append ( m_pNewIsoSurfaceAction ) ;
m_pNewRadiosityAction = new K Action( i18n ( " Radiosity " ) , " pmradiosity " , 0 , this , TQT_SLOT ( slotNewRadiosity ( ) ) ,
m_pNewRadiosityAction = new TDE Action( i18n ( " Radiosity " ) , " pmradiosity " , 0 , this , TQT_SLOT ( slotNewRadiosity ( ) ) ,
actionCollection ( ) , " new_radiosity " ) ;
m_readWriteActions . append ( m_pNewRadiosityAction ) ;
m_pNewGlobalPhotonsAction = new K Action( i18n ( " Global Photons " ) , " pmglobalphotons " , 0 , this , TQT_SLOT ( slotNewGlobalPhotons ( ) ) ,
m_pNewGlobalPhotonsAction = new TDE Action( i18n ( " Global Photons " ) , " pmglobalphotons " , 0 , this , TQT_SLOT ( slotNewGlobalPhotons ( ) ) ,
actionCollection ( ) , " new_globalphotons " ) ;
m_readWriteActions . append ( m_pNewGlobalPhotonsAction ) ;
m_pNewPhotonsAction = new K Action( i18n ( " Photons " ) , " pmphotons " , 0 , this , TQT_SLOT ( slotNewPhotons ( ) ) ,
m_pNewPhotonsAction = new TDE Action( i18n ( " Photons " ) , " pmphotons " , 0 , this , TQT_SLOT ( slotNewPhotons ( ) ) ,
actionCollection ( ) , " new_photons " ) ;
m_readWriteActions . append ( m_pNewPhotonsAction ) ;
m_pNewLightGroupAction = new K Action( i18n ( " Light Group " ) , " pmlightgroup " , 0 , this , TQT_SLOT ( slotNewLightGroup ( ) ) ,
m_pNewLightGroupAction = new TDE Action( i18n ( " Light Group " ) , " pmlightgroup " , 0 , this , TQT_SLOT ( slotNewLightGroup ( ) ) ,
actionCollection ( ) , " new_lightgroup " ) ;
m_readWriteActions . append ( m_pNewLightGroupAction ) ;
m_pNewInteriorTextureAction = new K Action( i18n ( " Interior Texture " ) , " pminteriortexture " , 0 , this , TQT_SLOT ( slotNewInteriorTexture ( ) ) ,
m_pNewInteriorTextureAction = new TDE Action( i18n ( " Interior Texture " ) , " pminteriortexture " , 0 , this , TQT_SLOT ( slotNewInteriorTexture ( ) ) ,
actionCollection ( ) , " new_interiortexture " ) ;
m_readWriteActions . append ( m_pNewInteriorTextureAction ) ;
m_pNewSphereSweepAction = new K Action( i18n ( " Sphere Sweep " ) , " pmspheresweep " , 0 , this , TQT_SLOT ( slotNewSphereSweep ( ) ) ,
m_pNewSphereSweepAction = new TDE Action( i18n ( " Sphere Sweep " ) , " pmspheresweep " , 0 , this , TQT_SLOT ( slotNewSphereSweep ( ) ) ,
actionCollection ( ) , " new_spheresweep " ) ;
m_readWriteActions . append ( m_pNewSphereSweepAction ) ;
m_pNewMeshAction = new K Action( i18n ( " Mesh " ) , " pmmesh " , 0 , this , TQT_SLOT ( slotNewMesh ( ) ) ,
m_pNewMeshAction = new TDE Action( i18n ( " Mesh " ) , " pmmesh " , 0 , this , TQT_SLOT ( slotNewMesh ( ) ) ,
actionCollection ( ) , " new_mesh " ) ;
m_readWriteActions . append ( m_pNewMeshAction ) ;
# ifdef KPM_WITH_OBJECT_LIBRARY
m_pSearchLibraryObjectAction = new K Action( i18n ( " Search Object " ) , " pmsearchlibrary " , 0 , this , TQT_SLOT ( slotSearchLibraryObject ( ) ) ,
m_pSearchLibraryObjectAction = new TDE Action( i18n ( " Search Object " ) , " pmsearchlibrary " , 0 , this , TQT_SLOT ( slotSearchLibraryObject ( ) ) ,
actionCollection ( ) , " search_library_object " ) ;
m_readWriteActions . append ( m_pSearchLibraryObjectAction ) ;
# endif
@ -657,7 +657,7 @@ void PMPart::updateNewObjectActions( )
{
TQPtrListIterator < PMMetaObject > it =
m_pPrototypeManager - > prototypeIterator ( ) ;
K Action* action ;
TDE Action* action ;
bool enable ;
bool readWriteParent = false ;
@ -715,7 +715,7 @@ void PMPart::updateNewObjectActions( )
void PMPart : : disableReadWriteActions ( )
{
TQPtrListIterator < K Action> it ( m_readWriteActions ) ;
TQPtrListIterator < TDE Action> it ( m_readWriteActions ) ;
for ( ; it . current ( ) ; + + it )
it . current ( ) - > setEnabled ( false ) ;
}