#include "SalomeApp_Tools.h"
#include "SalomeApp_Study.h"
-#include "SalomeApp_NameDlg.h"
-#include "SalomeApp_DataOwner.h"
+#include "LightApp_NameDlg.h"
+#include "LightApp_DataOwner.h"
#include "SalomeApp_Application.h"
-#include "SalomeApp_Preferences.h"
-#include "SalomeApp_VTKSelector.h"
-#include "SalomeApp_Operation.h"
-#include "SalomeApp_UpdateFlags.h"
+#include "LightApp_Preferences.h"
+#include "LightApp_VTKSelector.h"
+#include "LightApp_Operation.h"
+#include "LightApp_UpdateFlags.h"
#include "SalomeApp_ImportOperation.h"
void ExportMeshToFile( int theCommandID )
{
- SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
SALOME_ListIO selected;
if( aSel )
aSel->selectedObjects( selected );
}
void SetDisplayEntity(int theCommandID){
- SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
SALOME_ListIO selected;
if( aSel )
aSel->selectedObjects( selected );
}
void SetDisplayMode(int theCommandID){
- SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
SALOME_ListIO selected;
if( aSel )
aSel->selectedObjects( selected );
void Control( int theCommandID )
{
- SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
SALOME_ListIO selected;
if( aSel )
aSel->selectedObjects( selected );
if( !theIO.IsNull() )
{
entry = theIO->getEntry();
- SalomeApp_DataOwner owner( entry );
+ LightApp_DataOwner owner( entry );
if ( aTypeFilter.isOk( &owner )) {
theOutTypeName = theInTypeName;
return true;
QString CheckHomogeneousSelection()
{
//SUIT_Study* aStudy = SMESH::GetActiveStudy();
- SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
SALOME_ListIO selected;
if( aSel )
aSel->selectedObjects( selected );
void SMESHGUI::OnEditDelete()
{
// VSR 17/11/04: check if all objects selected belong to SMESH component --> start
- SalomeApp_SelectionMgr* aSel = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr* aSel = SMESHGUI::selectionMgr();
SALOME_ListIO selected; aSel->selectedObjects( selected, QString::null, false );
QString aParentComponent = QString::null;
*
*/
//=============================================================================
-SalomeApp_SelectionMgr* SMESHGUI::selectionMgr()
+LightApp_SelectionMgr* SMESHGUI::selectionMgr()
{
SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>( SUIT_Session::session()->activeApplication() );
if( anApp )
- return dynamic_cast<SalomeApp_SelectionMgr*>( anApp->selectionMgr() );
+ return dynamic_cast<LightApp_SelectionMgr*>( anApp->selectionMgr() );
else
return 0;
}
case 200: // SCALAR BAR
{
- SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
SALOME_ListIO selected;
if( aSel )
aSel->selectedObjects( selected );
SMESH::UpdateView();
SALOME_ListIO l;
- SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
aSel->setSelectedObjects( l );
break;
}
case 302: anAction = SMESH::eDisplayOnly; break;
}
- SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
SALOME_ListIO sel_objects, to_process;
if (aSel)
aSel->selectedObjects( sel_objects );
{
if(checkLock(aStudy)) break;
if ( vtkwnd ) {
- SalomeApp_SelectionMgr *Sel = selectionMgr();
+ LightApp_SelectionMgr *Sel = selectionMgr();
SALOME_ListIO selected; Sel->selectedObjects( selected );
int nbSel = selected.Extent();
EmitSignalDeactivateDialog();
SMESH::SMESH_Mesh_var aMesh = SMESH::SMESH_Mesh::_nil();
- SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
SALOME_ListIO selected;
if( aSel )
aSel->selectedObjects( selected );
if(checkLock(aStudy)) break;
EmitSignalDeactivateDialog();
- SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
SALOME_ListIO selected;
if( aSel )
aSel->selectedObjects( selected );
if(checkLock(aStudy)) break;
EmitSignalDeactivateDialog();
- SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
SALOME_ListIO selected;
if( aSel )
aSel->selectedObjects( selected );
case 900: // MESH INFOS
{
EmitSignalDeactivateDialog();
- SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
SALOME_ListIO selected;
if( aSel )
aSel->selectedObjects( selected );
case 902: // STANDARD MESH INFOS
{
EmitSignalDeactivateDialog();
- SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
SALOME_ListIO selected;
if( aSel )
aSel->selectedObjects( selected );
{
if(checkLock(aStudy)) break;
- SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
SALOME_ListIO selected;
if( aSel )
aSel->selectedObjects( selected );
if ( checkLock( aStudy ) )
break;
- SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
SALOME_ListIO selected;
if( aSel )
aSel->selectedObjects( selected );
{
aName = anAttr;
QString newName = QString(aName->Value().c_str());
- newName = SalomeApp_NameDlg::getName( desktop(), newName );
+ newName = LightApp_NameDlg::getName( desktop(), newName );
if ( !newName.isEmpty() )
{
//old source: aStudy->renameIObject( IObject, newName );
if(checkLock(aStudy)) break;
SUIT_OverrideCursor wc;
- SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
SALOME_ListIO selected;
if( aSel )
aSel->selectedObjects( selected, QString::null, false );
case 6009:
if ( vtkwnd ) {
- SalomeApp_SelectionMgr* mgr = selectionMgr();
+ LightApp_SelectionMgr* mgr = selectionMgr();
SALOME_ListIO selected; mgr->selectedObjects( selected );
if ( selected.Extent() == 1 && selected.First()->hasEntry() ) {
break;
case 9010:
{
- SalomeApp_SelectionMgr* mgr = selectionMgr();
+ LightApp_SelectionMgr* mgr = selectionMgr();
SALOME_ListIO selected; mgr->selectedObjects( selected );
if (selected.Extent() == 1) {
}
case 9011:
{
- SalomeApp_SelectionMgr* mgr = selectionMgr();
+ LightApp_SelectionMgr* mgr = selectionMgr();
SALOME_ListIO selected; mgr->selectedObjects( selected );
if (selected.Extent() == 1) {
int genTab = addPreference( tr( "PREF_TAB_GENERAL" ) );
int updateGroup = addPreference( tr( "PREF_GROUP_UPDATE" ), genTab );
- addPreference( tr( "PREF_AUTO_UPDATE" ), updateGroup, SalomeApp_Preferences::Bool, "SMESH", "auto_update" );
+ addPreference( tr( "PREF_AUTO_UPDATE" ), updateGroup, LightApp_Preferences::Bool, "SMESH", "auto_update" );
int qaGroup = addPreference( tr( "PREF_GROUP_QUALITY" ), genTab );
- addPreference( tr( "PREF_DISPLAY_ENTITY" ), qaGroup, SalomeApp_Preferences::Bool, "SMESH", "display_entity" );
- addPreference( tr( "PREF_PRECISION_USE" ), qaGroup, SalomeApp_Preferences::Bool, "SMESH", "use_precision" );
+ addPreference( tr( "PREF_DISPLAY_ENTITY" ), qaGroup, LightApp_Preferences::Bool, "SMESH", "display_entity" );
+ addPreference( tr( "PREF_PRECISION_USE" ), qaGroup, LightApp_Preferences::Bool, "SMESH", "use_precision" );
int precGroup = addPreference( tr( "PREF_GROUP_PRECISION" ), genTab );
setPreferenceProperty( precGroup, "columns", 1 );
- int prec = addPreference( tr( "PREF_PRECISION_VALUE" ), precGroup, SalomeApp_Preferences::IntSpin, "SMESH", "controls_precision" );
+ int prec = addPreference( tr( "PREF_PRECISION_VALUE" ), precGroup, LightApp_Preferences::IntSpin, "SMESH", "controls_precision" );
setPreferenceProperty( prec, "min", 0 );
setPreferenceProperty( prec, "max", 16 );
int dispgroup = addPreference( tr( "PREF_DISPLAY_MODE" ), genTab );
- int dispmode = addPreference( tr( "PREF_DISPLAY_MODE" ), dispgroup, SalomeApp_Preferences::Selector, "SMESH", "display_mode" );
+ int dispmode = addPreference( tr( "PREF_DISPLAY_MODE" ), dispgroup, LightApp_Preferences::Selector, "SMESH", "display_mode" );
QStringList modes;
modes.append( "Wireframe" );
modes.append( "Shading" );
int meshTab = addPreference( tr( "PREF_TAB_MESH" ) );
int nodeGroup = addPreference( tr( "PREF_GROUP_NODES" ), meshTab );
- addPreference( tr( "PREF_COLOR" ), nodeGroup, SalomeApp_Preferences::Color, "SMESH", "node_color" );
- int nodeSz = addPreference( tr( "PREF_SIZE" ), nodeGroup, SalomeApp_Preferences::IntSpin, "SMESH", "node_size" );
+ addPreference( tr( "PREF_COLOR" ), nodeGroup, LightApp_Preferences::Color, "SMESH", "node_color" );
+ int nodeSz = addPreference( tr( "PREF_SIZE" ), nodeGroup, LightApp_Preferences::IntSpin, "SMESH", "node_size" );
setPreferenceProperty( nodeSz, "min", 1 );
setPreferenceProperty( nodeSz, "max", 5 );
int elemGroup = addPreference( tr( "PREF_GROUP_ELEMENTS" ), meshTab );
- addPreference( tr( "PREF_FILL" ), elemGroup, SalomeApp_Preferences::Color, "SMESH", "fill_color" );
- addPreference( tr( "PREF_OUTLINE" ), elemGroup, SalomeApp_Preferences::Color, "SMESH", "outline_color" );
- addPreference( tr( "PREF_BACKFACE" ), elemGroup, SalomeApp_Preferences::Color, "SMESH", "backface_color" );
- addPreference( "", elemGroup, SalomeApp_Preferences::Space );
+ addPreference( tr( "PREF_FILL" ), elemGroup, LightApp_Preferences::Color, "SMESH", "fill_color" );
+ addPreference( tr( "PREF_OUTLINE" ), elemGroup, LightApp_Preferences::Color, "SMESH", "outline_color" );
+ addPreference( tr( "PREF_BACKFACE" ), elemGroup, LightApp_Preferences::Color, "SMESH", "backface_color" );
+ addPreference( "", elemGroup, LightApp_Preferences::Space );
- int elemW = addPreference( tr( "PREF_WIDTH" ), elemGroup, SalomeApp_Preferences::IntSpin, "SMESH", "element_width" );
- int shrink = addPreference( tr( "PREF_SHRINK_COEFF" ), elemGroup, SalomeApp_Preferences::IntSpin, "SMESH", "shrink_coeff" );
+ int elemW = addPreference( tr( "PREF_WIDTH" ), elemGroup, LightApp_Preferences::IntSpin, "SMESH", "element_width" );
+ int shrink = addPreference( tr( "PREF_SHRINK_COEFF" ), elemGroup, LightApp_Preferences::IntSpin, "SMESH", "shrink_coeff" );
setPreferenceProperty( elemW, "min", 1 );
setPreferenceProperty( elemW, "max", 5 );
int selGroup = addPreference( tr( "PREF_GROUP_SELECTION" ), selTab );
- addPreference( tr( "PREF_OBJECT_COLOR" ), selGroup, SalomeApp_Preferences::Color, "SMESH", "selection_object_color" );
- addPreference( tr( "PREF_ELEMENT_COLOR" ), selGroup, SalomeApp_Preferences::Color, "SMESH", "selection_element_color" );
- int selW = addPreference( tr( "PREF_WIDTH" ), selGroup, SalomeApp_Preferences::IntSpin, "SMESH", "selection_width" );
+ addPreference( tr( "PREF_OBJECT_COLOR" ), selGroup, LightApp_Preferences::Color, "SMESH", "selection_object_color" );
+ addPreference( tr( "PREF_ELEMENT_COLOR" ), selGroup, LightApp_Preferences::Color, "SMESH", "selection_element_color" );
+ int selW = addPreference( tr( "PREF_WIDTH" ), selGroup, LightApp_Preferences::IntSpin, "SMESH", "selection_width" );
setPreferenceProperty( selW, "min", 1 );
setPreferenceProperty( selW, "max", 5 );
int preGroup = addPreference( tr( "PREF_GROUP_PRESELECTION" ), selTab );
- addPreference( tr( "PREF_HIGHLIGHT_COLOR" ), preGroup, SalomeApp_Preferences::Color, "SMESH", "highlight_color" );
- int preW = addPreference( tr( "PREF_WIDTH" ), preGroup, SalomeApp_Preferences::IntSpin, "SMESH", "highlight_width" );
+ addPreference( tr( "PREF_HIGHLIGHT_COLOR" ), preGroup, LightApp_Preferences::Color, "SMESH", "highlight_color" );
+ int preW = addPreference( tr( "PREF_WIDTH" ), preGroup, LightApp_Preferences::IntSpin, "SMESH", "highlight_width" );
setPreferenceProperty( preW, "min", 1 );
setPreferenceProperty( preW, "max", 5 );
int precSelGroup = addPreference( tr( "PREF_GROUP_PRECISION" ), selTab );
- addPreference( tr( "PREF_NODES" ), precSelGroup, SalomeApp_Preferences::Double, "SMESH", "selection_precision_node" );
- addPreference( tr( "PREF_ELEMENTS" ), precSelGroup, SalomeApp_Preferences::Double, "SMESH", "selection_precision_element" );
+ addPreference( tr( "PREF_NODES" ), precSelGroup, LightApp_Preferences::Double, "SMESH", "selection_precision_node" );
+ addPreference( tr( "PREF_ELEMENTS" ), precSelGroup, LightApp_Preferences::Double, "SMESH", "selection_precision_element" );
int sbarTab = addPreference( tr( "SMESH_SCALARBAR" ) );
int fontGr = addPreference( tr( "SMESH_FONT_SCALARBAR" ), sbarTab );
- int tfont = addPreference( tr( "SMESH_TITLE" ), fontGr, SalomeApp_Preferences::Font, "SMESH", "scalar_bar_title_font" );
- addPreference( tr( "SMESH_TITLE" ), fontGr, SalomeApp_Preferences::Color, "SMESH", "scalar_bar_title_color" );
- int lfont = addPreference( tr( "SMESH_LABELS" ), fontGr, SalomeApp_Preferences::Font, "SMESH", "scalar_bar_label_font" );
- addPreference( tr( "SMESH_LABELS" ), fontGr, SalomeApp_Preferences::Color, "SMESH", "scalar_bar_label_color" );
+ int tfont = addPreference( tr( "SMESH_TITLE" ), fontGr, LightApp_Preferences::Font, "SMESH", "scalar_bar_title_font" );
+ addPreference( tr( "SMESH_TITLE" ), fontGr, LightApp_Preferences::Color, "SMESH", "scalar_bar_title_color" );
+ int lfont = addPreference( tr( "SMESH_LABELS" ), fontGr, LightApp_Preferences::Font, "SMESH", "scalar_bar_label_font" );
+ addPreference( tr( "SMESH_LABELS" ), fontGr, LightApp_Preferences::Color, "SMESH", "scalar_bar_label_color" );
QStringList fam;
fam.append( tr( "SMESH_FONT_ARIAL" ) );
int colorsLabelsGr = addPreference( tr( "SMESH_LABELS_COLORS_SCALARBAR" ), sbarTab );
- int numcol = addPreference( tr( "SMESH_NUMBEROFCOLORS" ), colorsLabelsGr, SalomeApp_Preferences::IntSpin, "SMESH", "scalar_bar_num_colors" );
+ int numcol = addPreference( tr( "SMESH_NUMBEROFCOLORS" ), colorsLabelsGr, LightApp_Preferences::IntSpin, "SMESH", "scalar_bar_num_colors" );
setPreferenceProperty( numcol, "min", 2 );
setPreferenceProperty( numcol, "max", 256 );
- int numlab = addPreference( tr( "SMESH_NUMBEROFLABELS" ), colorsLabelsGr, SalomeApp_Preferences::IntSpin, "SMESH", "scalar_bar_num_labels" );
+ int numlab = addPreference( tr( "SMESH_NUMBEROFLABELS" ), colorsLabelsGr, LightApp_Preferences::IntSpin, "SMESH", "scalar_bar_num_labels" );
setPreferenceProperty( numlab, "min", 2 );
setPreferenceProperty( numlab, "max", 65 );
int orientGr = addPreference( tr( "SMESH_ORIENTATION" ), sbarTab );
- int orient = addPreference( tr( "SMESH_ORIENTATION" ), orientGr, SalomeApp_Preferences::Selector, "SMESH", "scalar_bar_orientation" );
+ int orient = addPreference( tr( "SMESH_ORIENTATION" ), orientGr, LightApp_Preferences::Selector, "SMESH", "scalar_bar_orientation" );
QStringList orients;
orients.append( tr( "SMESH_VERTICAL" ) );
orients.append( tr( "SMESH_HORIZONTAL" ) );
setPreferenceProperty( orient, "indexes", indices );
int posVSizeGr = addPreference( tr( "SMESH_POSITION_SIZE_SCALARBAR" ) + " " + tr( "SMESH_VERTICAL" ), sbarTab );
- int xv = addPreference( tr( "SMESH_X_SCALARBAR" ), posVSizeGr, SalomeApp_Preferences::DblSpin, "SMESH", "scalar_bar_vertical_x" );
- int yv = addPreference( tr( "SMESH_Y_SCALARBAR" ), posVSizeGr, SalomeApp_Preferences::DblSpin, "SMESH", "scalar_bar_vertical_y" );
- int wv = addPreference( tr( "SMESH_WIDTH" ), posVSizeGr, SalomeApp_Preferences::DblSpin, "SMESH", "scalar_bar_vertical_width" );
- int hv = addPreference( tr( "SMESH_HEIGHT" ), posVSizeGr, SalomeApp_Preferences::DblSpin, "SMESH", "scalar_bar_vertical_height" );
+ int xv = addPreference( tr( "SMESH_X_SCALARBAR" ), posVSizeGr, LightApp_Preferences::DblSpin, "SMESH", "scalar_bar_vertical_x" );
+ int yv = addPreference( tr( "SMESH_Y_SCALARBAR" ), posVSizeGr, LightApp_Preferences::DblSpin, "SMESH", "scalar_bar_vertical_y" );
+ int wv = addPreference( tr( "SMESH_WIDTH" ), posVSizeGr, LightApp_Preferences::DblSpin, "SMESH", "scalar_bar_vertical_width" );
+ int hv = addPreference( tr( "SMESH_HEIGHT" ), posVSizeGr, LightApp_Preferences::DblSpin, "SMESH", "scalar_bar_vertical_height" );
setPreferenceProperty( xv, "step", 0.1 );
setPreferenceProperty( xv, "min", 0.0 );
setPreferenceProperty( xv, "max", 1.0 );
setPreferenceProperty( hv, "step", 0.1 );
int posHSizeGr = addPreference( tr( "SMESH_POSITION_SIZE_SCALARBAR" ) + " " + tr( "SMESH_HORIZONTAL" ), sbarTab );
- int xh = addPreference( tr( "SMESH_X_SCALARBAR" ), posHSizeGr, SalomeApp_Preferences::DblSpin, "SMESH", "scalar_bar_horizontal_x" );
- int yh = addPreference( tr( "SMESH_Y_SCALARBAR" ), posHSizeGr, SalomeApp_Preferences::DblSpin, "SMESH", "scalar_bar_horizontal_y" );
- int wh = addPreference( tr( "SMESH_WIDTH" ), posHSizeGr, SalomeApp_Preferences::DblSpin, "SMESH", "scalar_bar_horizontal_width" );
- int hh = addPreference( tr( "SMESH_HEIGHT" ), posHSizeGr, SalomeApp_Preferences::DblSpin, "SMESH", "scalar_bar_horizontal_height" );
+ int xh = addPreference( tr( "SMESH_X_SCALARBAR" ), posHSizeGr, LightApp_Preferences::DblSpin, "SMESH", "scalar_bar_horizontal_x" );
+ int yh = addPreference( tr( "SMESH_Y_SCALARBAR" ), posHSizeGr, LightApp_Preferences::DblSpin, "SMESH", "scalar_bar_horizontal_y" );
+ int wh = addPreference( tr( "SMESH_WIDTH" ), posHSizeGr, LightApp_Preferences::DblSpin, "SMESH", "scalar_bar_horizontal_width" );
+ int hh = addPreference( tr( "SMESH_HEIGHT" ), posHSizeGr, LightApp_Preferences::DblSpin, "SMESH", "scalar_bar_horizontal_height" );
setPreferenceProperty( xv, "min", 0.0 );
setPreferenceProperty( xv, "max", 1.0 );
setPreferenceProperty( xv, "step", 0.1 );
* \param theFlags - update flags
*
* Update viewer or/and object browser etc. in accordance with update flags ( see
-* SalomeApp_UpdateFlags enumeration ).
+* LightApp_UpdateFlags enumeration ).
*/
//================================================================================
void SMESHGUI::update( const int flags )
* It is called called automatically from startOperation method of base class.
*/
//================================================================================
-SalomeApp_Operation* SMESHGUI::createOperation( const int id ) const
+LightApp_Operation* SMESHGUI::createOperation( const int id ) const
{
- SalomeApp_Operation* op = 0;
+ LightApp_Operation* op = 0;
// to do : create operation here
switch( id )
{
return op;
}
-SalomeApp_Displayer* SMESHGUI::displayer()
+LightApp_Displayer* SMESHGUI::displayer()
{
if( !myDisplayer )
myDisplayer = new SMESHGUI_Displayer( dynamic_cast<SalomeApp_Study*>( getApp()->activeStudy() ) );
class SUIT_ResourceMgr;
class SUIT_ViewManager;
-class SalomeApp_Operation;
+class LightApp_Operation;
class SalomeApp_Study;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
//=================================================================================
static SMESH::SMESH_Gen_var GetSMESHGen();
static SMESHGUI* GetSMESHGUI();
- static SalomeApp_SelectionMgr* selectionMgr();
+ static LightApp_SelectionMgr* selectionMgr();
static SUIT_ResourceMgr* resourceMgr();
static SUIT_Desktop* desktop() ;
static SalomeApp_Study* activeStudy();
static bool automaticUpdate();
- virtual SalomeApp_Displayer* displayer();
+ virtual LightApp_Displayer* displayer();
virtual QString engineIOR() const;
virtual void initialize( CAM_Application* );
virtual void windows( QMap<int, int>& ) const;
void createPopupItem( const int, const QString&, const QString&,
const QString& = QString::null, const int = -1 );
- virtual SalomeApp_Operation* createOperation( const int ) const;
+ virtual LightApp_Operation* createOperation( const int ) const;
private:
void OnEditDelete();
QDialog* myActiveDialogBox;
int myState;
QMap<int,QString> myRules;
- SalomeApp_Displayer* myDisplayer;
+ LightApp_Displayer* myDisplayer;
};
#endif
#ifndef DIALOGBOX_ADD_FACE_H
#define DIALOGBOX_ADD_FACE_H
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SMDSAbs_ElementType.hxx"
void displaySimulation();
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
- SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
+ LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
int myNbOkNodes; /* to check when arguments is defined */
bool myBusy;
SVTK_Selector* mySelector;
#include "SALOME_ListIteratorOfListIO.hxx"
#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SVTK_Selector.h"
#include "SVTK_ViewWindow.h"
class QCheckBox;
class QComboBox;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
class SVTK_Selector;
class SMESHGUI;
private:
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
SVTK_Selector* mySelector;
SMESHGUI* mySMESHGUI;
SMESH_Actor* myActor;
#include "SUIT_FileDlg.h"\r
\r
#include "SalomeApp_Study.h"\r
-#include "SalomeApp_DataOwner.h"\r
-#include "SalomeApp_SelectionMgr.h"\r
+#include "LightApp_DataOwner.h"\r
+#include "LightApp_SelectionMgr.h"\r
#include "SalomeApp_Tools.h"\r
\r
#include "SALOMEDS_SObject.hxx"\r
_PTR(SObject) aSobj = SMESH::FindSObject(myMesh.in());\r
//Handle(SALOME_InteractiveObject) anIObj =\r
// new SALOME_InteractiveObject(aSobj->GetID().c_str(), "SMESH");\r
- SUIT_DataOwnerPtr anIObj (new SalomeApp_DataOwner(aSobj->GetID().c_str()));\r
+ SUIT_DataOwnerPtr anIObj (new LightApp_DataOwner(aSobj->GetID().c_str()));\r
\r
isValidMesh = mySelectionMgr->isOk(anIObj);\r
}\r
class QLineEdit;
class SMESHGUI_SpinBox;
class QPushButton;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
class QRadioButton;
class QCheckBox;
class QButtonGroup;
SMESHGUI* mySMESHGUI;
SVTK_Selector* mySelector;
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
int myNbPoints;
int myType;
#include "SalomeApp_Study.h"
#include "SUIT_Desktop.h"
#include "SUIT_MessageBox.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "utilities.h"
#include "SVTK_ViewWindow.h"
class SMESH_Actor;
class SVTK_Selector;
class SVTK_ViewWindow;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
namespace SMESH{
struct TPolySimulation;
void displaySimulation();
SMESHGUI* mySMESHGUI ; /* Current SMESHGUI object */
- SalomeApp_SelectionMgr* mySelectionMgr ; /* User shape selection */
+ LightApp_SelectionMgr* mySelectionMgr ; /* User shape selection */
SVTK_Selector* mySelector;
QString myIDs;
int myNbOkElements ; /* to check when elements are defined */
#include "SUIT_Desktop.h"
#include "SalomeApp_Study.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SALOME_ListIO.hxx"
#include "SALOME_ListIteratorOfListIO.hxx"
class SMESHGUI;
class SVTK_ViewWindow;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
/*!
* Class : SMESHGUI_DeleteGroupDlg
QListBox* myListBox;
SMESHGUI* mySMESHGUI;
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
QValueList<SMESH::SMESH_GroupBase_var> myListGrp;
bool myBlockSelection;
//=================================================================================
SMESHGUI_Dialog::SMESHGUI_Dialog( QWidget* parent, const bool modal,
const bool allowResize, const int flags )
-: SalomeApp_Dialog( parent == 0 ? desktop() : parent, "", modal, allowResize, flags )
+: LightApp_Dialog( parent == 0 ? desktop() : parent, "", modal, allowResize, flags )
{
int pr = prefix( "SMESH" );
typeName( pr + MESH ) = tr( "DLG_MESH" );
int x = abs( PP->x() + PP->size().width() - size().width() - 10 ),
y = abs( PP->y() + PP->size().height() - size().height() - 10 );
move(x, y);
- SalomeApp_Dialog::show();
+ LightApp_Dialog::show();
}
//=================================================================================
#ifndef SMESHGUI_DIALOG_H
#define SMESHGUI_DIALOG_H
-#include <SalomeApp_Dialog.h>
+#include <LightApp_Dialog.h>
class SUIT_Desktop;
class SUIT_ResourceMgr;
// class : SMESHGUI_Dialog
// purpose : Base dialog for all SMESHGUI dialogs
//=================================================================================
-class SMESHGUI_Dialog : public SalomeApp_Dialog
+class SMESHGUI_Dialog : public LightApp_Dialog
{
Q_OBJECT
#include <SVTK_ViewWindow.h>
SMESHGUI_Displayer::SMESHGUI_Displayer( SalomeApp_Study* st )
-: SalomeApp_Displayer(),
+: LightApp_Displayer(),
myStudy( st )
{
}
if( anActor )
{
SMESH::DisplayActor( wnd, anActor );
- prs = SalomeApp_Displayer::buildPresentation( entry.latin1(), aViewFrame );
+ prs = LightApp_Displayer::buildPresentation( entry.latin1(), aViewFrame );
}
if( prs )
UpdatePrs( prs );
#ifndef SMESHGUI_DISPLAYER_HEADER
#define SMESHGUI_DISPLAYER_HEADER
-#include <SalomeApp_Displayer.h>
+#include <LightApp_Displayer.h>
class SalomeApp_Study;
-class SMESHGUI_Displayer : public SalomeApp_Displayer
+class SMESHGUI_Displayer : public LightApp_Displayer
{
public:
SMESHGUI_Displayer( SalomeApp_Study* );
//#include "SMESH_TypeFilter.hxx"
#include "SUIT_SelectionFilter.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
// QT Includes
#include <qdialog.h>
private:
SMESHGUI* mySMESHGUI;
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
GEOM::GEOM_Object_var myGeomShape;
QLineEdit* myEditCurrentArgument;
#ifndef DIALOGBOX_GETMESH_H
#define DIALOGBOX_GETMESH_H
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SUIT_SelectionFilter.h"
// QT Includes
private:
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
- SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
+ LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
SMESH::SMESH_Mesh_var myMesh;
SUIT_SelectionFilter* myMeshFilter;
#ifndef DIALOGBOX_EXTRUSION_PATH_H
#define DIALOGBOX_EXTRUSION_PATH_H
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SUIT_SelectionFilter.h"
// QT Includes
void SetEditCurrentArgument (QToolButton* button);
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
- SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
+ LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
SVTK_Selector* mySelector;
QWidget* myEditCurrentArgument; /* Current argument */
#ifndef DIALOGBOX_EXTRUSION_H
#define DIALOGBOX_EXTRUSION_H
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SUIT_SelectionFilter.h"
// QT Includes
//void hideEvent (QHideEvent*); /* ESC key */
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
- SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
+ LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
QLineEdit* myEditCurrentArgument; /* Current LineEdit */
QString myElementsId;
int myNbOkElements; /* to check when elements are defined */
#include <qmap.h>
#include <qvaluelist.h>
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SALOME_InteractiveObject.hxx"
#include "SALOME_DataMapOfIOMapOfInteger.hxx"
#include "SVTK_Selection.h"
class QTable;
class QTableItem;
class QWidgetStack;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
class SMESHGUI;
class SMESHGUI_FilterLibraryDlg;
class SVTK_Selector;
// initial fields
QValueList<int> myTypes;
SMESHGUI* mySMESHGUI;
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
SVTK_Selector* mySelector;
SMESH::SMESH_Mesh_ptr myMesh;
QWidget* mySourceWg;
#ifndef DIALOGBOX_GROUP_H
#define DIALOGBOX_GROUP_H
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
//#include "SMESH_TypeFilter.hxx"
#include "SUIT_SelectionFilter.h"
void updateButtons();
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
- SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
+ LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
SMESH_Actor* myActor; /* Current mesh actor */
int myGrpTypeId; /* Current group type id : standalone or group on geometry */
int myTypeId; /* Current type id = radio button id */
#include "SUIT_ResourceMgr.h"
#include "SUIT_Desktop.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SVTK_Selection.h"
#include "SVTK_ViewWindow.h"
#include "SVTK_Selector.h"
class QLabel;
class QFrame;
class QPushButton;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
class QLineEdit;
class SMESHGUI;
class SVTK_ViewWindow;
QPushButton* myBtn2;
SMESHGUI* mySMESHGUI;
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
int myMode;
SVTK_Selector* mySelector;
#ifndef DIALOGBOX_MERGENODES_H
#define DIALOGBOX_MERGENODES_H
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
//#include "SMESH_TypeFilter.hxx"
#include "SUIT_SelectionFilter.h"
void onEditNodesGroup();
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
- SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
+ LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
SVTK_Selector* mySelector;
QWidget* myEditCurrentArgument;
#include "SUIT_ResourceMgr.h"
#include "SUIT_OverrideCursor.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SALOMEDSClient_Study.hxx"
#include "SALOME_ListIO.hxx"
class QPushButton;
class QWidgetStack;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
class SMESHGUI;
class SMESHGUI_MeshInfosDlg : public QDialog
private:
SMESHGUI* mySMESHGUI;
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
bool myStartSelection;
bool myIsActiveWindow;
#include "SALOMEDS_SObject.hxx"
-#include "SalomeApp_SelectionMgr.h"
-#include "SalomeApp_UpdateFlags.h"
+#include "LightApp_SelectionMgr.h"
+#include "LightApp_UpdateFlags.h"
#include "SUIT_MessageBox.h"
#include "SUIT_Desktop.h"
#include "SUIT_OverrideCursor.h"
//================================================================================
/*!
* \brief Gets dialog of this operation
- * \retval SalomeApp_Dialog* - pointer to dialog of this operation
+ * \retval LightApp_Dialog* - pointer to dialog of this operation
*/
//================================================================================
-SalomeApp_Dialog* SMESHGUI_MeshOp::dlg() const
+LightApp_Dialog* SMESHGUI_MeshOp::dlg() const
{
return myDlg;
}
SMESHGUI_MeshOp( const bool theToCreate, const bool theIsMesh = true );
virtual ~SMESHGUI_MeshOp();
- virtual SalomeApp_Dialog* dlg() const;
+ virtual LightApp_Dialog* dlg() const;
protected:
virtual void startOperation();
#include "SUIT_Desktop.h"
#include "SUIT_FileDlg.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SalomeApp_Tools.h"
#include "SalomeApp_Study.h"
class QLineEdit;
class SMESHGUI_SpinBox;
class QPushButton;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
class QRadioButton;
class QCheckBox;
class QButtonGroup;
SMESHGUI* mySMESHGUI;
SVTK_Selector* mySelector;
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
int mySelInput;
int myNbPoints;
int myType;
#include "SMDS_Mesh.hxx"
#include "SMDS_MeshNode.hxx"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SUIT_ResourceMgr.h"
#include "SUIT_Desktop.h"
#ifndef DIALOGBOX_MOVE_NODES_H
#define DIALOGBOX_MOVE_NODES_H
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include <qdialog.h>
SMESHGUI_SpinBox* myY;
SMESHGUI_SpinBox* myZ;
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
SVTK_Selector* mySelector;
SMESHGUI* mySMESHGUI;
#include "SUIT_ResourceMgr.h"
#include "SUIT_Desktop.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SALOME_ListIO.hxx"
#include "SALOME_ListIteratorOfListIO.hxx"
class SMESH_Actor;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
class SALOME_Actor;
class SVTK_Selector;
class SVTK_ViewWindow;
SMESH_Actor* myActor;
SMESH::SMESH_Mesh_var myMesh;
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
SVTK_Selector* mySelector;
SMESHGUI* mySMESHGUI;
#include "SUIT_Desktop.h"
#include "SalomeApp_Study.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SVTK_Selector.h"
#include "SVTK_ViewWindow.h"
class SVTK_Selector;
class SVTK_ViewWindow;
class SMESHGUI_SpinBox;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
namespace SMESH{
struct TNodeSimulation;
~SMESHGUI_NodesDlg();
private:
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
SVTK_Selector* mySelector;
SMESHGUI* mySMESHGUI;
// Purpose : Constructor
//=======================================================================
SMESHGUI_Operation::SMESHGUI_Operation()
-: SalomeApp_Operation()
+: LightApp_Operation()
{
}
initDialog();
}
- SalomeApp_Operation::startOperation();
+ LightApp_Operation::startOperation();
}
//=======================================================================
//=======================================================================
bool SMESHGUI_Operation::isReadyToStart() const
{
- if ( !SalomeApp_Operation::isReadyToStart() )
+ if ( !LightApp_Operation::isReadyToStart() )
return false;
else if ( getSMESHGUI() == 0 )
{
//=======================================================================
void SMESHGUI_Operation::setDialogActive( const bool active )
{
- SalomeApp_Operation::setDialogActive( active );
+ LightApp_Operation::setDialogActive( active );
SMESHGUI_Dialog* d = dynamic_cast<SMESHGUI_Dialog*>( dlg() );
if( d )
#ifndef SMESHGUI_Operation_H
#define SMESHGUI_Operation_H
-#include <SalomeApp_Operation.h>
+#include <LightApp_Operation.h>
#include <SALOMEDSClient.hxx>
class SMESHGUI;
Description : Base class for all SMESH operations
*/
-class SMESHGUI_Operation : public SalomeApp_Operation
+class SMESHGUI_Operation : public LightApp_Operation
{
Q_OBJECT
#include "SUIT_Desktop.h"
#include "SUIT_ResourceMgr.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SALOME_ListIO.hxx"
#include <QtxDblSpinBox.h>
class QtxDblSpinBox;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
class SMESH_Actor;
private:
SMESHGUI* mySMESHGUI;
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
SMESH_Actor* myActor;
double myIniX, myIniY, myIniW, myIniH;
int myIniOrientation;
#ifndef DIALOGBOX_REMOVE_ELEMENTS_H
#define DIALOGBOX_REMOVE_ELEMENTS_H
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
// QT Includes
#include <qvariant.h>
void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
void hideEvent ( QHideEvent * ); /* ESC key */
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
SVTK_Selector* mySelector;
SMESHGUI* mySMESHGUI;
#ifndef DIALOGBOX_REMOVE_NODES_H
#define DIALOGBOX_REMOVE_NODES_H
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
// QT Includes
#include <qvariant.h>
void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
void hideEvent ( QHideEvent * ); /* ESC key */
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
SVTK_Selector* mySelector;
SMESHGUI* mySMESHGUI;
#ifndef DIALOGBOX_RENUMBERING_H
#define DIALOGBOX_RENUMBERING_H
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
//#include "SMESH_TypeFilter.hxx"
#include "SUIT_SelectionFilter.h"
void hideEvent ( QHideEvent * ); /* ESC key */
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
- SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
+ LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
int myConstructorId; /* Current constructor id = radio button id */
QLineEdit* myEditCurrentArgument; /* Current LineEdit */
#ifndef DIALOGBOX_REVOLUTION_H
#define DIALOGBOX_REVOLUTION_H
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SMESH_LogicalFilter.hxx"
bool IsAxisOk();
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
- SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
+ LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
int myNbOkElements; /* to check when elements are defined */
QString myElementsId;
QWidget* myEditCurrentArgument; /* Current argument */
#ifndef DIALOGBOX_ROTATION_H
#define DIALOGBOX_ROTATION_H
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SMESH_LogicalFilter.hxx"
bool IsAxisOk();
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
- SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
+ LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
int myNbOkElements; /* to check when elements are defined */
QString myElementsId;
SVTK_Selector* mySelector;
#include "SMESH_Type.h"
#include "SMESH_Actor.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SalomeApp_Study.h"
-#include "SalomeApp_VTKSelector.h"
+#include "LightApp_VTKSelector.h"
#include "SUIT_Session.h"
//purpose :
//=======================================================================
SMESHGUI_Selection::SMESHGUI_Selection()
-: SalomeApp_Selection()
+: LightApp_Selection()
{
}
//function : init
//purpose :
//=======================================================================
-void SMESHGUI_Selection::init( const QString& client, SalomeApp_SelectionMgr* mgr )
+void SMESHGUI_Selection::init( const QString& client, LightApp_SelectionMgr* mgr )
{
- SalomeApp_Selection::init( client, mgr );
+ LightApp_Selection::init( client, mgr );
if( mgr && study() )
{
- _PTR(Study) aStudy = study()->studyDS();
+ SalomeApp_Study* aSStudy = dynamic_cast<SalomeApp_Study*>(study());
+ if (!aSStudy)
+ return;
+ _PTR(Study) aStudy = aSStudy->studyDS();
for( int i=0, n=count(); i<n; i++ )
myTypes.append( typeName( type( entry( i ), aStudy ) ) );
//function : processOwner
//purpose :
//=======================================================================
-void SMESHGUI_Selection::processOwner( const SalomeApp_DataOwner* ow )
+void SMESHGUI_Selection::processOwner( const LightApp_DataOwner* ow )
{
- const SalomeApp_SVTKDataOwner* owner =
- dynamic_cast<const SalomeApp_SVTKDataOwner*> ( ow );
+ const LightApp_SVTKDataOwner* owner =
+ dynamic_cast<const LightApp_SVTKDataOwner*> ( ow );
if( owner )
myActors.append( dynamic_cast<SMESH_Actor*>( owner->GetActor() ) );
else
if( val.isValid() )
return val;
else
- return SalomeApp_Selection::param( ind, p );
+ return LightApp_Selection::param( ind, p );
}
//=======================================================================
if ( ind >= 0 && ind < myTypes.count() && myTypes[ind] != "Unknown" )
{
/* Handle(SALOME_InteractiveObject) io =
- static_cast<SalomeApp_DataOwner*>( myDataOwners[ ind ].get() )->IO();
+ static_cast<LightApp_DataOwner*>( myDataOwners[ ind ].get() )->IO();
if ( !io.IsNull() ) {
SMESH::SMESH_Mesh_var mesh = SMESH::GetMeshByIO(io) ; // m,sm,gr->m
if ( !mesh->_is_nil() ) {*/
#ifndef SMESHGUI_SELECTION_HeaderFile
#define SMESHGUI_SELECTION_HeaderFile
-#include "SalomeApp_Selection.h"
+#include "LightApp_Selection.h"
#include "SALOMEDSClient_definitions.hxx"
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
class SALOMEDSClient_Study;
-class SalomeApp_DataOwner;
+class LightApp_DataOwner;
class SMESH_Actor;
-class SMESHGUI_Selection : public SalomeApp_Selection
+class SMESHGUI_Selection : public LightApp_Selection
{
public:
SMESHGUI_Selection();
virtual ~SMESHGUI_Selection();
- virtual void init( const QString&, SalomeApp_SelectionMgr* );
+ virtual void init( const QString&, LightApp_SelectionMgr* );
virtual QtxValue param( const int , const QString& paramName ) const;
- virtual void processOwner( const SalomeApp_DataOwner* );
+ virtual void processOwner( const LightApp_DataOwner* );
// got from object, not from actor
virtual int numberOfNodes( int ind ) const;
#include <SMESHGUI_Selection.h>
#include <SMESHGUI.h>
#include <SUIT_SelectionFilter.h>
-#include <SalomeApp_SelectionMgr.h>
+#include <LightApp_SelectionMgr.h>
#include <SalomeApp_Study.h>
-#include <SalomeApp_VTKSelector.h>
+#include <LightApp_VTKSelector.h>
#include <SVTK_ViewWindow.h>
#include <SVTK_ViewModel.h>
#include <SVTK_Selector.h>
/*
Class : SMESHGUI_SelectionOp
Description : Base operation for all operations using object selection in viewer or objectbrowser
- through common widgets created by SalomeApp_Dialog::createObject
+ through common widgets created by LightApp_Dialog::createObject
*/
//=================================================================================
//=================================================================================
void SMESHGUI_SelectionOp::removeCustomFilters() const
{
- SalomeApp_SelectionMgr* mgr = selectionMgr();
+ LightApp_SelectionMgr* mgr = selectionMgr();
if( !mgr )
return;
}
QStringList names, ids;
- SalomeApp_Dialog::TypesList types;
+ LightApp_Dialog::TypesList types;
selected( names, types, ids );
dlg()->selectObject( names, types, ids );
}
//=================================================================================
void SMESHGUI_SelectionOp::onActivateObject( int id )
{
- SalomeApp_SelectionMgr* mgr = selectionMgr();
+ LightApp_SelectionMgr* mgr = selectionMgr();
if( !mgr )
return;
//=================================================================================
void SMESHGUI_SelectionOp::onDeactivateObject( int id )
{
- SalomeApp_SelectionMgr* mgr = selectionMgr();
+ LightApp_SelectionMgr* mgr = selectionMgr();
if( mgr && myFilters.contains( id ) && myFilters[ id ] )
mgr->removeFilter( myFilters[ id ] );
}
// Purpose : Get names, types and ids of selected objects
//=======================================================================
void SMESHGUI_SelectionOp::selected( QStringList& names,
- SalomeApp_Dialog::TypesList& types,
+ LightApp_Dialog::TypesList& types,
QStringList& ids ) const
{
/* SUIT_DataOwnerPtrList list; selectionMgr()->selected( list );
aLast = list.end();
for( ; anIt!=aLast; anIt++ )
{
- SalomeApp_DataOwner* owner = dynamic_cast<SalomeApp_DataOwner*>( (*anIt).operator->() );
- SalomeApp_SVTKDataOwner* vtkowner = dynamic_cast<SalomeApp_SVTKDataOwner*>( (*anIt).operator->() );
+ LightApp_DataOwner* owner = dynamic_cast<LightApp_DataOwner*>( (*anIt).operator->() );
+ LightApp_SVTKDataOwner* vtkowner = dynamic_cast<LightApp_SVTKDataOwner*>( (*anIt).operator->() );
if( vtkowner )
{
selector()->AddOrRemoveIndex( sel.First(), newIndices, false );
highlight( sel.First(), true, true );
- QStringList names, _ids; SalomeApp_Dialog::TypesList types;
+ QStringList names, _ids; LightApp_Dialog::TypesList types;
selected( names, types, _ids );
dlg()->selectObject( names, types, _ids, false );
}
/*
Class : SMESHGUI_SelectionOp
Description : Base operation for all operations using object selection in viewer or objectbrowser
- through common widgets created by SalomeApp_Dialog::createObject
+ through common widgets created by LightApp_Dialog::createObject
*/
class SMESHGUI_SelectionOp : public SMESHGUI_Operation
{
#ifndef DIALOGBOX_SEWING_H
#define DIALOGBOX_SEWING_H
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
// QT Includes
#include <qdialog.h>
bool IsValid();
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
- SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
+ LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
int myOk1, myOk2, myOk3, myOk4, myOk5, myOk6;
QLineEdit* myEditCurrentArgument; /* Current LineEdit */
SVTK_Selector* mySelector;
#include "SMESH_Actor.h"
#include "SMDS_Mesh.hxx"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SUIT_ResourceMgr.h"
#include "SUIT_MessageBox.h"
#include "SUIT_Desktop.h"
class SMESH_Actor;
class SVTK_Selector;
class SVTK_ViewWindow;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
/*!
* Class : SMESHGUI_SingleEditDlg
QLineEdit* myEdge;
SMESH_Actor* myActor;
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
SVTK_Selector* mySelector;
SMESHGUI* mySMESHGUI;
};
#ifndef DIALOGBOX_SMOOTHING_H
#define DIALOGBOX_SMOOTHING_H
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SMESH_LogicalFilter.hxx"
void hideEvent (QHideEvent*); /* ESC key */
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
- SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
+ LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
QString myElementsId;
int myNbOkElements; /* to check when elements are defined */
int myNbOkNodes; /* to check when fixed nodes are defined */
#include "SUIT_Session.h"
#include "SUIT_OverrideCursor.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SALOME_ListIO.hxx"
#include "utilities.h"
class QPushButton;
class QLineEdit;
class QTextBrowser;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
class SMESHGUI;
private:
SMESHGUI* mySMESHGUI;
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
bool myStartSelection;
bool myIsActiveWindow;
#ifndef DIALOGBOX_SYMMETRY_H
#define DIALOGBOX_SYMMETRY_H
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SMESH_LogicalFilter.hxx"
bool IsMirrorOk();
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
- SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
+ LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
int myNbOkElements; /* to check when elements are defined */
QString myElementsId;
SVTK_Selector* mySelector;
#ifndef DIALOGBOX_TRANSLATION_H
#define DIALOGBOX_TRANSLATION_H
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SMESH_LogicalFilter.hxx"
int GetConstructorId();
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
- SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
+ LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
QString myElementsId;
int myNbOkElements; /* to check when elements are defined */
#include "SALOME_InteractiveObject.hxx"
#include "SalomeApp_Study.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SVTK_ViewWindow.h"
class QLabel;
class QPushButton;
class QSlider;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
class SVTK_Selector;
class SVTK_ViewWindow;
class SMESHGUI;
private :
SMESHGUI* mySMESHGUI;
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
SVTK_ViewWindow* myViewWindow;
QPushButton* buttonOk;
#include "SUIT_Application.h"
#include "SUIT_Session.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SalomeApp_Application.h"
#include "SalomeApp_Module.h"
#include "SalomeApp_Study.h"
return theModule->application()->desktop();
}
- SalomeApp_SelectionMgr*
+ LightApp_SelectionMgr*
GetSelectionMgr(const SalomeApp_Module* theModule)
{
return theModule->getApp()->selectionMgr();
}
CORBA::Object_var
- DataOwnerToObject(const SalomeApp_DataOwnerPtr& theOwner)
+ DataOwnerToObject(const LightApp_DataOwnerPtr& theOwner)
{
CORBA::Object_var anObj;
if(theOwner){
return app->orb()->string_to_object(theIOR);
}
- int GetNameOfSelectedIObjects(SalomeApp_SelectionMgr* theMgr, QString& theName)
+ int GetNameOfSelectedIObjects(LightApp_SelectionMgr* theMgr, QString& theName)
{
if (!theMgr)
return 0;
#include "SALOMEDSClient_definitions.hxx"
#include "SALOME_InteractiveObject.hxx"
-#include "SalomeApp_DataOwner.h"
+#include "LightApp_DataOwner.h"
class QString;
class SalomeApp_Study;
class SalomeApp_Module;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
namespace SMESH {
SUIT_Desktop*
GetDesktop(const CAM_Module* theModule);
- SalomeApp_SelectionMgr*
+ LightApp_SelectionMgr*
GetSelectionMgr(const SalomeApp_Module* theModule);
SalomeApp_Study*
_PTR(Study)
GetCStudy(const SalomeApp_Study* theStudy);
- CORBA::Object_var DataOwnerToObject(const SalomeApp_DataOwnerPtr& theOwner);
+ CORBA::Object_var DataOwnerToObject(const LightApp_DataOwnerPtr& theOwner);
template<class TInterface> typename TInterface::_var_type
- DataOwnerToInterface(const SalomeApp_DataOwnerPtr& theDataOwner)
+ DataOwnerToInterface(const LightApp_DataOwnerPtr& theDataOwner)
{
CORBA::Object_var anObj = DataOwnerToObject(theDataOwner);
if(!CORBA::is_nil(anObj))
return TInterface::_nil();
}
- int GetNameOfSelectedIObjects (SalomeApp_SelectionMgr*, QString& theName);
+ int GetNameOfSelectedIObjects (LightApp_SelectionMgr*, QString& theName);
_PTR(SObject) GetMeshOrSubmesh (_PTR(SObject) theSObject);
#include <SUIT_Session.h>
#include <SUIT_Study.h>
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SVTK_Selector.h"
#include "SVTK_ViewModel.h"
#include "SMESH_ObjectDef.h"
#include <SalomeApp_Application.h>
-#include <SalomeApp_SelectionMgr.h>
+#include <LightApp_SelectionMgr.h>
#include <SalomeApp_Study.h>
#include <SALOMEDSClient_Study.hxx>
void UpdateView(){
if(SVTK_ViewWindow* aWnd = SMESH::GetCurrentVtkView()){
- SalomeApp_SelectionMgr* mgr = SMESHGUI::selectionMgr();
+ LightApp_SelectionMgr* mgr = SMESHGUI::selectionMgr();
SALOME_ListIO selected; mgr->selectedObjects( selected );
if( selected.Extent() == 0){
}
//----------------------------------------------------------------------------
- int GetNameOfSelectedNodes(SalomeApp_SelectionMgr *theMgr,
+ int GetNameOfSelectedNodes(LightApp_SelectionMgr *theMgr,
const Handle(SALOME_InteractiveObject)& theIO,
QString& theName)
{
return -1;
}
- int GetNameOfSelectedNodes(SalomeApp_SelectionMgr *theMgr, QString& theName){
+ int GetNameOfSelectedNodes(LightApp_SelectionMgr *theMgr, QString& theName){
theName = "";
SALOME_ListIO selected; theMgr->selectedObjects( selected );
if(selected.Extent() == 1){
}
- int GetNameOfSelectedElements(SalomeApp_SelectionMgr *theMgr,
+ int GetNameOfSelectedElements(LightApp_SelectionMgr *theMgr,
const Handle(SALOME_InteractiveObject)& theIO,
QString& theName)
{
}
- int GetNameOfSelectedElements(SalomeApp_SelectionMgr *theMgr, QString& theName)
+ int GetNameOfSelectedElements(LightApp_SelectionMgr *theMgr, QString& theName)
{
theName = "";
SALOME_ListIO selected; theMgr->selectedObjects( selected );
return -1;
}
- int GetSelected(SalomeApp_SelectionMgr* theMgr,
+ int GetSelected(LightApp_SelectionMgr* theMgr,
TColStd_IndexedMapOfInteger& theMap,
const bool theIsElement)
{
}
- int GetEdgeNodes( SalomeApp_SelectionMgr* theMgr, int& theId1, int& theId2 )
+ int GetEdgeNodes( LightApp_SelectionMgr* theMgr, int& theId1, int& theId2 )
{
SALOME_ListIO selected; theMgr->selectedObjects( selected );
class SVTK_ViewWindow;
class SVTK_Selector;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
class SMESHGUI;
#include <CORBA.h>
int& theId2);
//----------------------------------------------------------------------------
- int GetNameOfSelectedNodes (SalomeApp_SelectionMgr*,
+ int GetNameOfSelectedNodes (LightApp_SelectionMgr*,
const Handle(SALOME_InteractiveObject)& theIO,
QString& theName);
- int GetNameOfSelectedNodes (SalomeApp_SelectionMgr*,
+ int GetNameOfSelectedNodes (LightApp_SelectionMgr*,
QString& aName);
- int GetNameOfSelectedElements (SalomeApp_SelectionMgr*,
+ int GetNameOfSelectedElements (LightApp_SelectionMgr*,
const Handle(SALOME_InteractiveObject)& theIO,
QString& theName);
- int GetNameOfSelectedElements (SalomeApp_SelectionMgr*,
+ int GetNameOfSelectedElements (LightApp_SelectionMgr*,
QString& aName);
- int GetSelected (SalomeApp_SelectionMgr*,
+ int GetSelected (LightApp_SelectionMgr*,
TColStd_IndexedMapOfInteger& theMap,
const bool theIsElement = true );
- int GetEdgeNodes (SalomeApp_SelectionMgr*, int& theId1, int& theId2);
+ int GetEdgeNodes (LightApp_SelectionMgr*, int& theId1, int& theId2);
void SetControlsPrecision (const long theVal);
};