// update Object browser
if ( dynamic_cast<SalomeApp_Application*>( app ) )
- dynamic_cast<SalomeApp_Application*>( app )->updateObjectBrowser( true );
+ dynamic_cast<SalomeApp_Application*>( app )->updateObjectBrowser( true );
}
};
{
SUIT_Application* app = SUIT_Session::session()->activeApplication();
if ( app ) {
- SUIT_ViewWindow* window = app->desktop()->activeWindow();
- if ( dynamic_cast<SVTK_ViewWindow*>( window ) )
- dynamic_cast<SVTK_ViewWindow*>( window )->onFitAll();
+ SUIT_ViewWindow* window = app->desktop()->activeWindow();
+ if ( dynamic_cast<SVTK_ViewWindow*>( window ) )
+ dynamic_cast<SVTK_ViewWindow*>( window )->onFitAll();
else if ( dynamic_cast<OCCViewer_ViewFrame*>( window ) )
- dynamic_cast<OCCViewer_ViewFrame*>( window )->onViewFitAll();
+ dynamic_cast<OCCViewer_ViewFrame*>( window )->onViewFitAll();
}
}
};
if ( !CORBA::is_nil( anObject ) ) {
GEOM::GEOM_Object_var aShape = GEOM::GEOM_Object::_narrow( anObject.in() );
if ( !CORBA::is_nil( aShape ) ) {
- GEOM::shape_type aType = aShape->GetShapeType();
- if ( aType >= GEOM::COMPOUND && aType < GEOM::SHAPE )
- anIcon = icons[ (int)aType ];
+ GEOM::shape_type aType = aShape->GetShapeType();
+ if ( aType >= GEOM::COMPOUND && aType < GEOM::SHAPE )
+ anIcon = icons[ (int)aType ];
}
}
}
public:
TSetPropertyEvent( const QString& _entry,
- const QString& _property,
- const QVariant& _value,
- bool _update = true );
+ const QString& _property,
+ const QVariant& _value,
+ bool _update = true );
virtual void Execute();
};
TSetPropertyEvent::TSetPropertyEvent( const QString& _entry,
- const QString& _property,
- const QVariant& _value,
- bool _update ):
+ const QString& _property,
+ const QVariant& _value,
+ bool _update ):
myEntry( _entry ),
myProperty( _property ),
myValue( _value ),
void GEOM_Swig::setDisplayMode( const char* theEntry, int theMode, bool theUpdateViewer )
{
ProcessVoidEvent( new TSetPropertyEvent( theEntry, GEOM::propertyName( GEOM::DisplayMode ),
- theMode, theUpdateViewer ) );
+ theMode, theUpdateViewer ) );
}
/*!
void GEOM_Swig::setVectorsMode( const char* theEntry, bool theOn, bool theUpdateViewer )
{
ProcessVoidEvent( new TSetPropertyEvent( theEntry, GEOM::propertyName( GEOM::EdgesDirection ),
- theOn, theUpdateViewer ) );
+ theOn, theUpdateViewer ) );
}
/*!
void GEOM_Swig::setColor( const char* theEntry, int theRed, int theGreen, int theBlue, bool theUpdateViewer )
{
ProcessVoidEvent( new TSetPropertyEvent( theEntry, GEOM::propertyName( GEOM::Color ),
- QColor( theRed, theGreen, theBlue ), theUpdateViewer ) );
+ QColor( theRed, theGreen, theBlue ), theUpdateViewer ) );
}
/*!
void GEOM_Swig::setIsos( const char* theEntry, int theNbU, int theNbV, bool theUpdateViewer )
{
ProcessVoidEvent( new TSetPropertyEvent( theEntry, GEOM::propertyName( GEOM::NbIsos ),
- QString( "%1%2%3" ).arg( theNbU ).arg( GEOM::subSectionSeparator() ).arg( theNbV ),
- theUpdateViewer ) );
+ QString( "%1%2%3" ).arg( theNbU ).arg( GEOM::subSectionSeparator() ).arg( theNbV ),
+ theUpdateViewer ) );
}
/*!
void GEOM_Swig::setTransparency( const char* theEntry, float theTransparency, bool theUpdateViewer )
{
ProcessVoidEvent( new TSetPropertyEvent( theEntry, GEOM::propertyName( GEOM::Transparency ),
- theTransparency, theUpdateViewer ) );
+ theTransparency, theUpdateViewer ) );
}
/*!
void GEOM_Swig::setDeflection( const char* theEntry, float theDeflection, bool theUpdateViewer )
{
ProcessVoidEvent( new TSetPropertyEvent( theEntry, GEOM::propertyName( GEOM::Deflection ),
- theDeflection, theUpdateViewer ) );
+ theDeflection, theUpdateViewer ) );
}
/*!
Material_Model material;
material.fromResources( theMaterial );
ProcessVoidEvent( new TSetPropertyEvent( theEntry, GEOM::propertyName( GEOM::Material ),
- material.toProperties(), theUpdateViewer ) );
+ material.toProperties(), theUpdateViewer ) );
}
/*!
void GEOM_Swig::setMaterialProperty( const char* theEntry, const char* theMaterial, bool theUpdateViewer )
{
ProcessVoidEvent( new TSetPropertyEvent( theEntry, GEOM::propertyName( GEOM::Material ),
- theMaterial, theUpdateViewer ) );
+ theMaterial, theUpdateViewer ) );
}
class TInitGeomGenEvent: public SALOME_Event