@ -47,188 +47,188 @@
PMObjectSettings : : PMObjectSettings ( TQWidget * parent , const char * name )
PMObjectSettings : : PMObjectSettings ( TQWidget * parent , const char * name )
: PMSettingsDialogPage ( parent , name )
: PMSettingsDialogPage ( parent , name )
{
{
TQHBoxLayout * h tq layout;
TQHBoxLayout * h layout;
TQVBoxLayout * v tq layout;
TQVBoxLayout * v layout;
TQVBoxLayout * gvl ;
TQVBoxLayout * gvl ;
TQGridLayout * grid ;
TQGridLayout * grid ;
TQGroupBox * gb ;
TQGroupBox * gb ;
v tq layout = new TQVBoxLayout ( this , 0 , KDialog : : spacingHint ( ) ) ;
v layout = new TQVBoxLayout ( this , 0 , KDialog : : spacingHint ( ) ) ;
gb = new TQGroupBox ( i18n ( " Subdivisions " ) , this ) ;
gb = new TQGroupBox ( i18n ( " Subdivisions " ) , this ) ;
v tq layout- > addWidget ( gb ) ;
v layout- > addWidget ( gb ) ;
gvl = new TQVBoxLayout ( gb , KDialog : : marginHint ( ) , KDialog : : spacingHint ( ) ) ;
gvl = new TQVBoxLayout ( gb , KDialog : : marginHint ( ) , KDialog : : spacingHint ( ) ) ;
gvl - > addSpacing ( 10 ) ;
gvl - > addSpacing ( 10 ) ;
grid = new TQGridLayout ( gvl , 13 , 3 ) ;
grid = new TQGridLayout ( gvl , 13 , 3 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Sphere: " ) , gb ) , 0 , 0 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Sphere: " ) , gb ) , 0 , 0 ) ;
h tq layout = new TQHBoxLayout ( ) ;
h layout = new TQHBoxLayout ( ) ;
grid - > addLayout ( h tq layout, 0 , 2 ) ;
grid - > addLayout ( h layout, 0 , 2 ) ;
grid - > addWidget ( new TQLabel ( " u " , gb ) , 0 , 1 ) ;
grid - > addWidget ( new TQLabel ( " u " , gb ) , 0 , 1 ) ;
m_pSphereUSteps = new PMIntEdit ( gb ) ;
m_pSphereUSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pSphereUSteps ) ;
h layout- > addWidget ( m_pSphereUSteps ) ;
m_pSphereUSteps - > setValidation ( true , 2 , true , 32 ) ;
m_pSphereUSteps - > setValidation ( true , 2 , true , 32 ) ;
h tq layout- > addWidget ( new TQLabel ( " v " , gb ) ) ;
h layout- > addWidget ( new TQLabel ( " v " , gb ) ) ;
m_pSphereVSteps = new PMIntEdit ( gb ) ;
m_pSphereVSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pSphereVSteps ) ;
h layout- > addWidget ( m_pSphereVSteps ) ;
m_pSphereVSteps - > setValidation ( true , 4 , true , 64 ) ;
m_pSphereVSteps - > setValidation ( true , 4 , true , 64 ) ;
h tq layout- > addStretch ( 1 ) ;
h layout- > addStretch ( 1 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Cylinder: " ) , gb ) , 1 , 0 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Cylinder: " ) , gb ) , 1 , 0 ) ;
h tq layout = new TQHBoxLayout ( ) ;
h layout = new TQHBoxLayout ( ) ;
grid - > addLayout ( h tq layout, 1 , 2 ) ;
grid - > addLayout ( h layout, 1 , 2 ) ;
m_pCylinderSteps = new PMIntEdit ( gb ) ;
m_pCylinderSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pCylinderSteps ) ;
h layout- > addWidget ( m_pCylinderSteps ) ;
m_pCylinderSteps - > setValidation ( true , 4 , true , 64 ) ;
m_pCylinderSteps - > setValidation ( true , 4 , true , 64 ) ;
h tq layout- > addStretch ( 1 ) ;
h layout- > addStretch ( 1 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Cone: " ) , gb ) , 2 , 0 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Cone: " ) , gb ) , 2 , 0 ) ;
h tq layout = new TQHBoxLayout ( ) ;
h layout = new TQHBoxLayout ( ) ;
grid - > addLayout ( h tq layout, 2 , 2 ) ;
grid - > addLayout ( h layout, 2 , 2 ) ;
m_pConeSteps = new PMIntEdit ( gb ) ;
m_pConeSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pConeSteps ) ;
h layout- > addWidget ( m_pConeSteps ) ;
m_pConeSteps - > setValidation ( true , 4 , true , 64 ) ;
m_pConeSteps - > setValidation ( true , 4 , true , 64 ) ;
h tq layout- > addStretch ( 1 ) ;
h layout- > addStretch ( 1 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Torus: " ) , gb ) , 3 , 0 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Torus: " ) , gb ) , 3 , 0 ) ;
h tq layout = new TQHBoxLayout ( ) ;
h layout = new TQHBoxLayout ( ) ;
grid - > addLayout ( h tq layout, 3 , 2 ) ;
grid - > addLayout ( h layout, 3 , 2 ) ;
grid - > addWidget ( new TQLabel ( " u " , gb ) , 3 , 1 ) ;
grid - > addWidget ( new TQLabel ( " u " , gb ) , 3 , 1 ) ;
m_pTorusUSteps = new PMIntEdit ( gb ) ;
m_pTorusUSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pTorusUSteps ) ;
h layout- > addWidget ( m_pTorusUSteps ) ;
m_pTorusUSteps - > setValidation ( true , 2 , true , 16 ) ;
m_pTorusUSteps - > setValidation ( true , 2 , true , 16 ) ;
h tq layout- > addWidget ( new TQLabel ( " v " , gb ) ) ;
h layout- > addWidget ( new TQLabel ( " v " , gb ) ) ;
m_pTorusVSteps = new PMIntEdit ( gb ) ;
m_pTorusVSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pTorusVSteps ) ;
h layout- > addWidget ( m_pTorusVSteps ) ;
m_pTorusVSteps - > setValidation ( true , 4 , true , 64 ) ;
m_pTorusVSteps - > setValidation ( true , 4 , true , 64 ) ;
h tq layout- > addStretch ( 1 ) ;
h layout- > addStretch ( 1 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Disc: " ) , gb ) , 4 , 0 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Disc: " ) , gb ) , 4 , 0 ) ;
h tq layout = new TQHBoxLayout ( ) ;
h layout = new TQHBoxLayout ( ) ;
grid - > addLayout ( h tq layout, 4 , 2 ) ;
grid - > addLayout ( h layout, 4 , 2 ) ;
m_pDiscSteps = new PMIntEdit ( gb ) ;
m_pDiscSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pDiscSteps ) ;
h layout- > addWidget ( m_pDiscSteps ) ;
m_pDiscSteps - > setValidation ( true , 4 , true , 64 ) ;
m_pDiscSteps - > setValidation ( true , 4 , true , 64 ) ;
h tq layout- > addStretch ( 1 ) ;
h layout- > addStretch ( 1 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Blob sphere: " ) , gb ) , 5 , 0 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Blob sphere: " ) , gb ) , 5 , 0 ) ;
h tq layout = new TQHBoxLayout ( ) ;
h layout = new TQHBoxLayout ( ) ;
grid - > addLayout ( h tq layout, 5 , 2 ) ;
grid - > addLayout ( h layout, 5 , 2 ) ;
grid - > addWidget ( new TQLabel ( " u " , gb ) , 5 , 1 ) ;
grid - > addWidget ( new TQLabel ( " u " , gb ) , 5 , 1 ) ;
m_pBlobSphereUSteps = new PMIntEdit ( gb ) ;
m_pBlobSphereUSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pBlobSphereUSteps ) ;
h layout- > addWidget ( m_pBlobSphereUSteps ) ;
m_pBlobSphereUSteps - > setValidation ( true , 2 , true , 32 ) ;
m_pBlobSphereUSteps - > setValidation ( true , 2 , true , 32 ) ;
h tq layout- > addWidget ( new TQLabel ( " v " , gb ) ) ;
h layout- > addWidget ( new TQLabel ( " v " , gb ) ) ;
m_pBlobSphereVSteps = new PMIntEdit ( gb ) ;
m_pBlobSphereVSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pBlobSphereVSteps ) ;
h layout- > addWidget ( m_pBlobSphereVSteps ) ;
m_pBlobSphereVSteps - > setValidation ( true , 4 , true , 64 ) ;
m_pBlobSphereVSteps - > setValidation ( true , 4 , true , 64 ) ;
h tq layout- > addStretch ( 1 ) ;
h layout- > addStretch ( 1 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Blob cylinder: " ) , gb ) , 6 , 0 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Blob cylinder: " ) , gb ) , 6 , 0 ) ;
h tq layout = new TQHBoxLayout ( ) ;
h layout = new TQHBoxLayout ( ) ;
grid - > addLayout ( h tq layout, 6 , 2 ) ;
grid - > addLayout ( h layout, 6 , 2 ) ;
grid - > addWidget ( new TQLabel ( " u " , gb ) , 6 , 1 ) ;
grid - > addWidget ( new TQLabel ( " u " , gb ) , 6 , 1 ) ;
m_pBlobCylinderUSteps = new PMIntEdit ( gb ) ;
m_pBlobCylinderUSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pBlobCylinderUSteps ) ;
h layout- > addWidget ( m_pBlobCylinderUSteps ) ;
m_pBlobCylinderUSteps - > setValidation ( true , 2 , true , 32 ) ;
m_pBlobCylinderUSteps - > setValidation ( true , 2 , true , 32 ) ;
h tq layout- > addWidget ( new TQLabel ( " v " , gb ) ) ;
h layout- > addWidget ( new TQLabel ( " v " , gb ) ) ;
m_pBlobCylinderVSteps = new PMIntEdit ( gb ) ;
m_pBlobCylinderVSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pBlobCylinderVSteps ) ;
h layout- > addWidget ( m_pBlobCylinderVSteps ) ;
m_pBlobCylinderVSteps - > setValidation ( true , 4 , true , 64 ) ;
m_pBlobCylinderVSteps - > setValidation ( true , 4 , true , 64 ) ;
h tq layout- > addStretch ( 1 ) ;
h layout- > addStretch ( 1 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Lathe: " ) , gb ) , 7 , 0 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Lathe: " ) , gb ) , 7 , 0 ) ;
h tq layout = new TQHBoxLayout ( ) ;
h layout = new TQHBoxLayout ( ) ;
grid - > addLayout ( h tq layout, 7 , 2 ) ;
grid - > addLayout ( h layout, 7 , 2 ) ;
grid - > addWidget ( new TQLabel ( " u " , gb ) , 7 , 1 ) ;
grid - > addWidget ( new TQLabel ( " u " , gb ) , 7 , 1 ) ;
m_pLatheUSteps = new PMIntEdit ( gb ) ;
m_pLatheUSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pLatheUSteps ) ;
h layout- > addWidget ( m_pLatheUSteps ) ;
m_pLatheUSteps - > setValidation ( true , 1 , true , 16 ) ;
m_pLatheUSteps - > setValidation ( true , 1 , true , 16 ) ;
h tq layout- > addWidget ( new TQLabel ( " v " , gb ) ) ;
h layout- > addWidget ( new TQLabel ( " v " , gb ) ) ;
m_pLatheRSteps = new PMIntEdit ( gb ) ;
m_pLatheRSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pLatheRSteps ) ;
h layout- > addWidget ( m_pLatheRSteps ) ;
m_pLatheRSteps - > setValidation ( true , 4 , true , 64 ) ;
m_pLatheRSteps - > setValidation ( true , 4 , true , 64 ) ;
h tq layout- > addStretch ( 1 ) ;
h layout- > addStretch ( 1 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Surface of revolution: " ) , gb ) , 8 , 0 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Surface of revolution: " ) , gb ) , 8 , 0 ) ;
h tq layout = new TQHBoxLayout ( ) ;
h layout = new TQHBoxLayout ( ) ;
grid - > addLayout ( h tq layout, 8 , 2 ) ;
grid - > addLayout ( h layout, 8 , 2 ) ;
grid - > addWidget ( new TQLabel ( " u " , gb ) , 8 , 1 ) ;
grid - > addWidget ( new TQLabel ( " u " , gb ) , 8 , 1 ) ;
m_pSorUSteps = new PMIntEdit ( gb ) ;
m_pSorUSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pSorUSteps ) ;
h layout- > addWidget ( m_pSorUSteps ) ;
m_pSorUSteps - > setValidation ( true , 1 , true , 16 ) ;
m_pSorUSteps - > setValidation ( true , 1 , true , 16 ) ;
h tq layout- > addWidget ( new TQLabel ( " v " , gb ) ) ;
h layout- > addWidget ( new TQLabel ( " v " , gb ) ) ;
m_pSorRSteps = new PMIntEdit ( gb ) ;
m_pSorRSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pSorRSteps ) ;
h layout- > addWidget ( m_pSorRSteps ) ;
m_pSorRSteps - > setValidation ( true , 4 , true , 64 ) ;
m_pSorRSteps - > setValidation ( true , 4 , true , 64 ) ;
h tq layout- > addStretch ( 1 ) ;
h layout- > addStretch ( 1 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Prism: " ) , gb ) , 9 , 0 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Prism: " ) , gb ) , 9 , 0 ) ;
h tq layout = new TQHBoxLayout ( ) ;
h layout = new TQHBoxLayout ( ) ;
grid - > addLayout ( h tq layout, 9 , 2 ) ;
grid - > addLayout ( h layout, 9 , 2 ) ;
m_pPrismSteps = new PMIntEdit ( gb ) ;
m_pPrismSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pPrismSteps ) ;
h layout- > addWidget ( m_pPrismSteps ) ;
m_pPrismSteps - > setValidation ( true , 1 , true , 16 ) ;
m_pPrismSteps - > setValidation ( true , 1 , true , 16 ) ;
h tq layout- > addStretch ( 1 ) ;
h layout- > addStretch ( 1 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Superquadric ellipsoid: " ) , gb ) , 10 , 0 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Superquadric ellipsoid: " ) , gb ) , 10 , 0 ) ;
h tq layout = new TQHBoxLayout ( ) ;
h layout = new TQHBoxLayout ( ) ;
grid - > addLayout ( h tq layout, 10 , 2 ) ;
grid - > addLayout ( h layout, 10 , 2 ) ;
grid - > addWidget ( new TQLabel ( " u " , gb ) , 10 , 1 ) ;
grid - > addWidget ( new TQLabel ( " u " , gb ) , 10 , 1 ) ;
m_pSqeUSteps = new PMIntEdit ( gb ) ;
m_pSqeUSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pSqeUSteps ) ;
h layout- > addWidget ( m_pSqeUSteps ) ;
m_pSqeUSteps - > setValidation ( true , 2 , true , 8 ) ;
m_pSqeUSteps - > setValidation ( true , 2 , true , 8 ) ;
h tq layout- > addWidget ( new TQLabel ( " v " , gb ) ) ;
h layout- > addWidget ( new TQLabel ( " v " , gb ) ) ;
m_pSqeVSteps = new PMIntEdit ( gb ) ;
m_pSqeVSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pSqeVSteps ) ;
h layout- > addWidget ( m_pSqeVSteps ) ;
m_pSqeVSteps - > setValidation ( true , 2 , true , 8 ) ;
m_pSqeVSteps - > setValidation ( true , 2 , true , 8 ) ;
h tq layout- > addStretch ( 1 ) ;
h layout- > addStretch ( 1 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Sphere sweep: " ) , gb ) , 11 , 0 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Sphere sweep: " ) , gb ) , 11 , 0 ) ;
h tq layout = new TQHBoxLayout ( ) ;
h layout = new TQHBoxLayout ( ) ;
grid - > addLayout ( h tq layout, 11 , 2 ) ;
grid - > addLayout ( h layout, 11 , 2 ) ;
grid - > addWidget ( new TQLabel ( " r " , gb ) , 11 , 1 ) ;
grid - > addWidget ( new TQLabel ( " r " , gb ) , 11 , 1 ) ;
m_pSphereSweepRSteps = new PMIntEdit ( gb ) ;
m_pSphereSweepRSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pSphereSweepRSteps ) ;
h layout- > addWidget ( m_pSphereSweepRSteps ) ;
m_pSphereSweepRSteps - > setValidation ( true , 4 , true , 64 ) ;
m_pSphereSweepRSteps - > setValidation ( true , 4 , true , 64 ) ;
h tq layout- > addWidget ( new TQLabel ( " s " , gb ) ) ;
h layout- > addWidget ( new TQLabel ( " s " , gb ) ) ;
m_pSphereSweepSSteps = new PMIntEdit ( gb ) ;
m_pSphereSweepSSteps = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pSphereSweepSSteps ) ;
h layout- > addWidget ( m_pSphereSweepSSteps ) ;
m_pSphereSweepSSteps - > setValidation ( true , 1 , true , 16 ) ;
m_pSphereSweepSSteps - > setValidation ( true , 1 , true , 16 ) ;
h tq layout- > addStretch ( 1 ) ;
h layout- > addStretch ( 1 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Heightfield: " ) , gb ) , 12 , 0 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Heightfield: " ) , gb ) , 12 , 0 ) ;
h tq layout = new TQHBoxLayout ( ) ;
h layout = new TQHBoxLayout ( ) ;
grid - > addLayout ( h tq layout, 12 , 2 ) ;
grid - > addLayout ( h layout, 12 , 2 ) ;
m_pHeightFieldVariance = new PMIntEdit ( gb ) ;
m_pHeightFieldVariance = new PMIntEdit ( gb ) ;
h tq layout- > addWidget ( m_pHeightFieldVariance ) ;
h layout- > addWidget ( m_pHeightFieldVariance ) ;
m_pHeightFieldVariance - > setValidation ( true , 1 , true , 16 ) ;
m_pHeightFieldVariance - > setValidation ( true , 1 , true , 16 ) ;
h tq layout- > addStretch ( 1 ) ;
h layout- > addStretch ( 1 ) ;
gb = new TQGroupBox ( i18n ( " Sizes " ) , this ) ;
gb = new TQGroupBox ( i18n ( " Sizes " ) , this ) ;
v tq layout- > addWidget ( gb ) ;
v layout- > addWidget ( gb ) ;
gvl = new TQVBoxLayout ( gb , KDialog : : marginHint ( ) , KDialog : : spacingHint ( ) ) ;
gvl = new TQVBoxLayout ( gb , KDialog : : marginHint ( ) , KDialog : : spacingHint ( ) ) ;
gvl - > addSpacing ( 10 ) ;
gvl - > addSpacing ( 10 ) ;
grid = new TQGridLayout ( gvl , 1 , 2 ) ;
grid = new TQGridLayout ( gvl , 1 , 2 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Plane: " ) , gb ) , 0 , 0 ) ;
grid - > addWidget ( new TQLabel ( i18n ( " Plane: " ) , gb ) , 0 , 0 ) ;
h tq layout = new TQHBoxLayout ( ) ;
h layout = new TQHBoxLayout ( ) ;
grid - > addLayout ( h tq layout, 0 , 1 ) ;
grid - > addLayout ( h layout, 0 , 1 ) ;
m_pPlaneSize = new PMFloatEdit ( gb ) ;
m_pPlaneSize = new PMFloatEdit ( gb ) ;
h tq layout- > addWidget ( m_pPlaneSize ) ;
h layout- > addWidget ( m_pPlaneSize ) ;
m_pPlaneSize - > setValidation ( true , 0.1 , false , 0.0 ) ;
m_pPlaneSize - > setValidation ( true , 0.1 , false , 0.0 ) ;
h tq layout- > addStretch ( 1 ) ;
h layout- > addStretch ( 1 ) ;
gb = new TQGroupBox ( i18n ( " Camera Views " ) , this ) ;
gb = new TQGroupBox ( i18n ( " Camera Views " ) , this ) ;
v tq layout- > addWidget ( gb ) ;
v layout- > addWidget ( gb ) ;
gvl = new TQVBoxLayout ( gb , KDialog : : marginHint ( ) , KDialog : : spacingHint ( ) ) ;
gvl = new TQVBoxLayout ( gb , KDialog : : marginHint ( ) , KDialog : : spacingHint ( ) ) ;
gvl - > addSpacing ( 10 ) ;
gvl - > addSpacing ( 10 ) ;
m_pHighDetailCameraViews = new TQCheckBox ( i18n ( " High detail for enhanced projections " ) , gb ) ;
m_pHighDetailCameraViews = new TQCheckBox ( i18n ( " High detail for enhanced projections " ) , gb ) ;
gvl - > addWidget ( m_pHighDetailCameraViews ) ;
gvl - > addWidget ( m_pHighDetailCameraViews ) ;
v tq layout- > addStretch ( 1 ) ;
v layout- > addStretch ( 1 ) ;
}
}
void PMObjectSettings : : displaySettings ( )
void PMObjectSettings : : displaySettings ( )