Salome HOME
Rename classes NewGEOM_ to SHAPERGUI_
authornds <nds@opencascade.com>
Wed, 24 Feb 2016 07:37:21 +0000 (10:37 +0300)
committernds <nds@opencascade.com>
Wed, 24 Feb 2016 07:37:21 +0000 (10:37 +0300)
12 files changed:
src/ModuleBase/ModuleBase_IViewer.h
src/SHAPERGUI/SHAPERGUI.cpp
src/SHAPERGUI/SHAPERGUI.h
src/SHAPERGUI/SHAPERGUI_DataModel.cpp
src/SHAPERGUI/SHAPERGUI_DataModel.h
src/SHAPERGUI/SHAPERGUI_NestedButton.cpp
src/SHAPERGUI/SHAPERGUI_NestedButton.h
src/SHAPERGUI/SHAPERGUI_OCCSelector.cpp
src/SHAPERGUI/SHAPERGUI_OCCSelector.h
src/SHAPERGUI/SHAPERGUI_SalomeViewer.cpp
src/SHAPERGUI/SHAPERGUI_SalomeViewer.h
src/SHAPERGUI/SHAPER_SHAPERGUI.h

index 30c233969e81d99f803e5883d11de3d16534a53c..51dc03daefcd5c6eaf9c0424d25b7cd3d56c7dc1 100644 (file)
@@ -18,7 +18,7 @@ class ModuleBase_IViewWindow;
 /**
  * \ingroup GUI
  * A Base object for definition of connector object to
- * Salome Viewer. Reimplemented in NewGeom_SalomeViewer class
+ * Salome Viewer. Reimplemented in SHAPERGUI_SalomeViewer class
  */
 class MODULEBASE_EXPORT ModuleBase_IViewer : public QObject
 {
index 7361accf94421d29e9b30b002e81130a35d37007..5c0a2833a0e410ef991534dd291ba8152a3f3f35 100644 (file)
@@ -1,10 +1,10 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
 
-#include "NewGeom_Module.h"
-#include "NewGeom_DataModel.h"
-#include "NewGeom_OCCSelector.h"
-#include <NewGeom_NestedButton.h>
+#include "SHAPERGUI.h"
+#include "SHAPERGUI_DataModel.h"
+#include "SHAPERGUI_OCCSelector.h"
+#include <SHAPERGUI_NestedButton.h>
 
 #include <XGUI_Workshop.h>
 #include <XGUI_PropertyPanel.h>
 
 
 extern "C" {
-NewGeom_EXPORT CAM_Module* createModule()
+SHAPERGUI_EXPORT CAM_Module* createModule()
 {
-  return new NewGeom_Module();
+  return new SHAPERGUI();
 }
 
-NewGeom_EXPORT char* getModuleVersion()
+SHAPERGUI_EXPORT char* getModuleVersion()
 {
   return (char*)"0.0";
 }
@@ -61,13 +61,13 @@ NewGeom_EXPORT char* getModuleVersion()
 /** 
 * Class for preferences management
 */
-class NewGeom_PrefMgr: public ModuleBase_IPrefMgr
+class SHAPERGUI_PrefMgr: public ModuleBase_IPrefMgr
 {
 public:
   /// Constructor
   /// \param theMgr preferences manager of SALOME
   /// \param theModName name of the module
-  NewGeom_PrefMgr(LightApp_Preferences* theMgr, const QString& theModName):myMgr(theMgr), myModName(theModName) {}
+  SHAPERGUI_PrefMgr(LightApp_Preferences* theMgr, const QString& theModName):myMgr(theMgr), myModName(theModName) {}
 
   virtual int addPreference(const QString& theLbl, int pId, 
                             SUIT_PreferenceMgr::PrefItemType theType,
@@ -95,7 +95,7 @@ private:
 
 
 //******************************************************
-NewGeom_Module::NewGeom_Module()
+SHAPERGUI::SHAPERGUI()
     : LightApp_Module("NewGeom"),
       mySelector(0), myIsOpened(0), myPopupMgr(0)
 {
@@ -103,19 +103,19 @@ NewGeom_Module::NewGeom_Module()
   connect(myWorkshop, SIGNAL(commandStatusUpdated()),
           this, SLOT(onUpdateCommandStatus()));
 
-  myProxyViewer = new NewGeom_SalomeViewer(this);
+  myProxyViewer = new SHAPERGUI_SalomeViewer(this);
 
   ModuleBase_Preferences::setResourceMgr(application()->resourceMgr());
   ModuleBase_Preferences::loadCustomProps();
 }
 
 //******************************************************
-NewGeom_Module::~NewGeom_Module()
+SHAPERGUI::~SHAPERGUI()
 {
 }
 
 //******************************************************
-void NewGeom_Module::initialize(CAM_Application* theApp)
+void SHAPERGUI::initialize(CAM_Application* theApp)
 {
   LightApp_Module::initialize(theApp);
   inspectSalomeModules();
@@ -129,19 +129,19 @@ void NewGeom_Module::initialize(CAM_Application* theApp)
 }
 
 //******************************************************
-void NewGeom_Module::windows(QMap<int, int>& theWndMap) const
+void SHAPERGUI::windows(QMap<int, int>& theWndMap) const
 {
   theWndMap.insert(LightApp_Application::WT_PyConsole, Qt::BottomDockWidgetArea);
 }
 
 //******************************************************
-void NewGeom_Module::viewManagers(QStringList& theList) const
+void SHAPERGUI::viewManagers(QStringList& theList) const
 {
   theList.append(OCCViewer_Viewer::Type());
 }
 
 //******************************************************
-void NewGeom_Module::connectToStudy(CAM_Study* theStudy)
+void SHAPERGUI::connectToStudy(CAM_Study* theStudy)
 {
   // if there are created viewer managers, we should try to create viewer
   // selector and initialize viewer with it. It sets interactive contect to the 
@@ -160,10 +160,10 @@ void NewGeom_Module::connectToStudy(CAM_Study* theStudy)
 }
 
 //******************************************************
-bool NewGeom_Module::activateModule(SUIT_Study* theStudy)
+bool SHAPERGUI::activateModule(SUIT_Study* theStudy)
 {
   bool isDone = LightApp_Module::activateModule(theStudy);
-  NewGeom_DataModel* aDataModel = dynamic_cast<NewGeom_DataModel*>(dataModel());
+  SHAPERGUI_DataModel* aDataModel = dynamic_cast<SHAPERGUI_DataModel*>(dataModel());
   aDataModel->initRootObject();
 
   if (isDone) {
@@ -248,7 +248,7 @@ bool NewGeom_Module::activateModule(SUIT_Study* theStudy)
 }
 
 //******************************************************
-bool NewGeom_Module::deactivateModule(SUIT_Study* theStudy)
+bool SHAPERGUI::deactivateModule(SUIT_Study* theStudy)
 {
   myProxyViewer->activateViewer(false);
   setMenuShown(false);
@@ -292,7 +292,7 @@ bool NewGeom_Module::deactivateModule(SUIT_Study* theStudy)
 }
 
 //******************************************************
-void NewGeom_Module::onViewManagerAdded(SUIT_ViewManager* theMgr)
+void SHAPERGUI::onViewManagerAdded(SUIT_ViewManager* theMgr)
 {
   if (!mySelector) {
     mySelector = createSelector(theMgr);
@@ -302,7 +302,7 @@ void NewGeom_Module::onViewManagerAdded(SUIT_ViewManager* theMgr)
 }
 
 //******************************************************
-void NewGeom_Module::onViewManagerRemoved(SUIT_ViewManager* theMgr)
+void SHAPERGUI::onViewManagerRemoved(SUIT_ViewManager* theMgr)
 {
   if (mySelector) {
     if (theMgr->getType() == OCCViewer_Viewer::Type()) {
@@ -324,7 +324,7 @@ void NewGeom_Module::onViewManagerRemoved(SUIT_ViewManager* theMgr)
 }
 
 //******************************************************
-QtxPopupMgr* NewGeom_Module::popupMgr()
+QtxPopupMgr* SHAPERGUI::popupMgr()
 {
   if (!myPopupMgr)
     myPopupMgr = new QtxPopupMgr( 0, this );
@@ -332,7 +332,7 @@ QtxPopupMgr* NewGeom_Module::popupMgr()
 }
 
 //******************************************************
-void NewGeom_Module::onDefaultPreferences()
+void SHAPERGUI::onDefaultPreferences()
 {
   // reset main resources
   ModuleBase_Preferences::resetResourcePreferences(preferences());
@@ -343,17 +343,17 @@ void NewGeom_Module::onDefaultPreferences()
 }
 
 //******************************************************
-void NewGeom_Module::onUpdateCommandStatus()
+void SHAPERGUI::onUpdateCommandStatus()
 {
   getApp()->updateActions();
 }
 
 //******************************************************
-NewGeom_OCCSelector* NewGeom_Module::createSelector(SUIT_ViewManager* theMgr)
+SHAPERGUI_OCCSelector* SHAPERGUI::createSelector(SUIT_ViewManager* theMgr)
 {
   if (theMgr->getType() == OCCViewer_Viewer::Type()) {
     OCCViewer_Viewer* aViewer = static_cast<OCCViewer_Viewer*>(theMgr->getViewModel());
-    NewGeom_OCCSelector* aSelector = new NewGeom_OCCSelector(aViewer, getApp()->selectionMgr());
+    SHAPERGUI_OCCSelector* aSelector = new SHAPERGUI_OCCSelector(aViewer, getApp()->selectionMgr());
     LightApp_SelectionMgr* aMgr = getApp()->selectionMgr();
     QList<SUIT_Selector*> aList;
     aMgr->selectors(aList);
@@ -368,12 +368,12 @@ NewGeom_OCCSelector* NewGeom_Module::createSelector(SUIT_ViewManager* theMgr)
 }
 
 //******************************************************
-CAM_DataModel* NewGeom_Module::createDataModel()
+CAM_DataModel* SHAPERGUI::createDataModel()
 {
-  return new NewGeom_DataModel(this);
+  return new SHAPERGUI_DataModel(this);
 }
 
-QAction* NewGeom_Module::addFeature(const QString& theWBName, const ActionInfo& theInfo)
+QAction* SHAPERGUI::addFeature(const QString& theWBName, const ActionInfo& theInfo)
 {
   return addFeature(theWBName,
                     theInfo.id,
@@ -385,7 +385,7 @@ QAction* NewGeom_Module::addFeature(const QString& theWBName, const ActionInfo&
 }
 
 //******************************************************
-QAction* NewGeom_Module::addFeature(const QString& theWBName, const QString& theId,
+QAction* SHAPERGUI::addFeature(const QString& theWBName, const QString& theId,
                                     const QString& theTitle, const QString& theTip,
                                     const QIcon& theIcon, const QKeySequence& theKeys,
                                     bool isCheckable)
@@ -421,12 +421,12 @@ QAction* NewGeom_Module::addFeature(const QString& theWBName, const QString& the
   return aAction;
 }
 
-bool NewGeom_Module::isFeatureOfNested(const QAction* theAction)
+bool SHAPERGUI::isFeatureOfNested(const QAction* theAction)
 {
-  return dynamic_cast<const NewGeom_NestedButton*>(theAction);
+  return dynamic_cast<const SHAPERGUI_NestedButton*>(theAction);
 }
 
-QAction* NewGeom_Module::addFeatureOfNested(const QString& theWBName,
+QAction* SHAPERGUI::addFeatureOfNested(const QString& theWBName,
                                             const ActionInfo& theInfo,
                                             const QList<QAction*>& theNestedActions)
 {
@@ -436,7 +436,7 @@ QAction* NewGeom_Module::addFeatureOfNested(const QString& theWBName,
   int aId = myActionsList.size();
   myActionsList.append(theInfo.id);
   SUIT_Desktop* aDesk = application()->desktop();
-  NewGeom_NestedButton* anAction = new NewGeom_NestedButton(aDesk, theNestedActions);
+  SHAPERGUI_NestedButton* anAction = new SHAPERGUI_NestedButton(aDesk, theNestedActions);
   anAction->setData(theInfo.id);
   anAction->setCheckable(theInfo.checkable);
   anAction->setChecked(theInfo.checked);
@@ -456,7 +456,7 @@ QAction* NewGeom_Module::addFeatureOfNested(const QString& theWBName,
 
 
 //******************************************************
-QAction* NewGeom_Module::addDesktopCommand(const QString& theId, const QString& theTitle,
+QAction* SHAPERGUI::addDesktopCommand(const QString& theId, const QString& theTitle,
                                            const QString& theTip, const QIcon& theIcon,
                                            const QKeySequence& theKeys, bool isCheckable,
                                            const char* theMenuSourceText, const int theMenuPosition)
@@ -477,13 +477,13 @@ QAction* NewGeom_Module::addDesktopCommand(const QString& theId, const QString&
 }
 
 //******************************************************
-void NewGeom_Module::addDesktopMenuSeparator(const char* theMenuSourceText, const int theMenuPosition)
+void SHAPERGUI::addDesktopMenuSeparator(const char* theMenuSourceText, const int theMenuPosition)
 {
   int aMenu = createMenu(tr(theMenuSourceText), -1, -1);
   createMenu(separator(), aMenu, -1, theMenuPosition);
 }
 
-bool NewGeom_Module::addActionInToolbar( QAction* theAction, const QString& theToolBarTitle )
+bool SHAPERGUI::addActionInToolbar( QAction* theAction, const QString& theToolBarTitle )
 {
   if( !theAction )
     return false;
@@ -501,7 +501,7 @@ bool NewGeom_Module::addActionInToolbar( QAction* theAction, const QString& theT
 }
 
 //******************************************************
-QList<QAction*> NewGeom_Module::commandList() const
+QList<QAction*> SHAPERGUI::commandList() const
 {
   QList<QAction*> aActions;
   for (int i = 0; i < myActionsList.size(); i++) {
@@ -513,19 +513,19 @@ QList<QAction*> NewGeom_Module::commandList() const
 }
 
 //******************************************************
-QStringList NewGeom_Module::commandIdList() const
+QStringList SHAPERGUI::commandIdList() const
 {
   return myActionsList;
 }
 
 //******************************************************
-QMainWindow* NewGeom_Module::desktop() const
+QMainWindow* SHAPERGUI::desktop() const
 {
   return application()->desktop();
 }
 
 //******************************************************
-QString NewGeom_Module::commandId(const QAction* theCmd) const
+QString SHAPERGUI::commandId(const QAction* theCmd) const
 {
   int aId = actionId(theCmd);
   if (aId < myActionsList.size())
@@ -534,7 +534,7 @@ QString NewGeom_Module::commandId(const QAction* theCmd) const
 }
 
 //******************************************************
-QAction* NewGeom_Module::command(const QString& theId) const
+QAction* SHAPERGUI::command(const QString& theId) const
 {
   int aId = myActionsList.indexOf(theId);
   if ((aId != -1) && (aId < myActionsList.size())) {
@@ -544,13 +544,13 @@ QAction* NewGeom_Module::command(const QString& theId) const
 }
 
 //******************************************************
-void NewGeom_Module::setNestedActions(const QString& theId, const QStringList& theActions)
+void SHAPERGUI::setNestedActions(const QString& theId, const QStringList& theActions)
 {
   myNestedActions[theId] = theActions;
 }
 
 //******************************************************
-QStringList NewGeom_Module::nestedActions(const QString& theId) const
+QStringList SHAPERGUI::nestedActions(const QString& theId) const
 {
   if (myNestedActions.contains(theId))
     return myNestedActions[theId];
@@ -558,13 +558,13 @@ QStringList NewGeom_Module::nestedActions(const QString& theId) const
 }
 
 //******************************************************
-void NewGeom_Module::setDocumentKind(const QString& theId, const QString& theKind)
+void SHAPERGUI::setDocumentKind(const QString& theId, const QString& theKind)
 {
   myDocumentType[theId] = theKind;
 }
 
 //******************************************************
-QString NewGeom_Module::documentKind(const QString& theId) const
+QString SHAPERGUI::documentKind(const QString& theId) const
 {
   if (myDocumentType.contains(theId))
     return myDocumentType[theId];
@@ -573,14 +573,14 @@ QString NewGeom_Module::documentKind(const QString& theId) const
 }
 
 //******************************************************
-void NewGeom_Module::selectionChanged()
+void SHAPERGUI::selectionChanged()
 {
   LightApp_Module::selectionChanged();
   myWorkshop->salomeViewerSelectionChanged();
 }
 
 //******************************************************
-void NewGeom_Module::contextMenuPopup(const QString& theClient, QMenu* theMenu, QString& theTitle)
+void SHAPERGUI::contextMenuPopup(const QString& theClient, QMenu* theMenu, QString& theTitle)
 {
   myWorkshop->contextMenuMgr()->updateViewerMenu();
   myWorkshop->contextMenuMgr()->addViewerMenu(theMenu);
@@ -589,7 +589,7 @@ void NewGeom_Module::contextMenuPopup(const QString& theClient, QMenu* theMenu,
 
 
 //******************************************************
-void NewGeom_Module::createPreferences()
+void SHAPERGUI::createPreferences()
 {
   LightApp_Preferences* pref = preferences();
   if (!pref)
@@ -606,13 +606,13 @@ void NewGeom_Module::createPreferences()
   int catId = pref->addPreference(aModName, -1 );
   if ( catId == -1 )
     return;
-  NewGeom_PrefMgr aMgr(pref, aModName);
+  SHAPERGUI_PrefMgr aMgr(pref, aModName);
   ModuleBase_Preferences::createEditContent(&aMgr, catId);
   pref->retrieve();
 }
 
 //******************************************************
-void NewGeom_Module::preferencesChanged(const QString& theSection, const QString& theParam)
+void SHAPERGUI::preferencesChanged(const QString& theSection, const QString& theParam)
 {
   SUIT_ResourceMgr* aResMgr = application()->resourceMgr();
   QString aVal = aResMgr->stringValue(theSection, theParam);
@@ -631,7 +631,7 @@ void NewGeom_Module::preferencesChanged(const QString& theSection, const QString
   myWorkshop->displayer()->redisplayObjects();
 }
 
-void NewGeom_Module::inspectSalomeModules()
+void SHAPERGUI::inspectSalomeModules()
 {
   QStringList aModuleNames;
   getApp()->modules(aModuleNames, false);
@@ -640,7 +640,7 @@ void NewGeom_Module::inspectSalomeModules()
   }
 }
 
-bool NewGeom_Module::abortAllOperations()
+bool SHAPERGUI::abortAllOperations()
 {
   return workshop()->operationMgr()->abortAllOperations();
 }
index 4920b1bee4347a5033cadfbb49bc5b9a9af2639d..eb993b0c7c835a44ea4681a42affef1b8b263241 100644 (file)
@@ -1,11 +1,11 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
 
-#ifndef NewGeom_Module_H
-#define NewGeom_Module_H
+#ifndef SHAPERGUI_H
+#define SHAPERGUI_H
 
-#include "NewGeom.h"
-#include "NewGeom_SalomeViewer.h"
+#include "SHAPER_SHAPERGUI.h"
+#include "SHAPERGUI_SalomeViewer.h"
 
 #include <LightApp_Module.h>
 #include <XGUI_SalomeConnector.h>
@@ -16,7 +16,7 @@
 #include <QMap>
 
 class XGUI_Workshop;
-class NewGeom_OCCSelector;
+class SHAPERGUI_OCCSelector;
 class OCCViewer_Viewer;
 class CAM_Study;
 
@@ -25,12 +25,12 @@ class CAM_Study;
  * An implementation of SALOME connector class for implementation of
  * XGUI functionality as a module of SALOME
  */
-class NewGeom_EXPORT NewGeom_Module : public LightApp_Module, public XGUI_SalomeConnector
+class SHAPERGUI_EXPORT SHAPERGUI : public LightApp_Module, public XGUI_SalomeConnector
 {
 Q_OBJECT
  public:
-  NewGeom_Module();
-  virtual ~NewGeom_Module();
+  SHAPERGUI();
+  virtual ~SHAPERGUI();
 
   //----- LightAPP_Module interface ---------------
 
@@ -183,7 +183,7 @@ Q_OBJECT
  private:
    /// Create selector for OCC Viewer
    /// \param theMgr view manager
-  NewGeom_OCCSelector* createSelector(SUIT_ViewManager* theMgr);
+  SHAPERGUI_OCCSelector* createSelector(SUIT_ViewManager* theMgr);
 
   /// List of registered actions
   QStringList myActionsList;
@@ -192,10 +192,10 @@ Q_OBJECT
   XGUI_Workshop* myWorkshop;
 
   /// OCC viewer selector instance
-  NewGeom_OCCSelector* mySelector;
+  SHAPERGUI_OCCSelector* mySelector;
 
   /// Proxy viewer for connection to OCC Viewer in SALOME
-  NewGeom_SalomeViewer* myProxyViewer;
+  SHAPERGUI_SalomeViewer* myProxyViewer;
 
   /// Map of nested actions [ActionID: list of nested actions Id]
   QMap<QString, QStringList> myNestedActions;
index 2f208950957e1f9f039777b22cb411fa563daf36..2aa2ef034201050593351f25e32326d2be521f1b 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-#include "NewGeom_DataModel.h"
-#include "NewGeom_Module.h"
+#include "SHAPERGUI_DataModel.h"
+#include "SHAPERGUI.h"
 
 #include <XGUI_Workshop.h>
 
 #include <QFile>
 #include <QDir>
 
-NewGeom_DataModel::NewGeom_DataModel(NewGeom_Module* theModule)
+SHAPERGUI_DataModel::SHAPERGUI_DataModel(SHAPERGUI* theModule)
     : LightApp_DataModel(theModule), myStudyPath(""), myModule(theModule)
 {
 }
 
-NewGeom_DataModel::~NewGeom_DataModel()
+SHAPERGUI_DataModel::~SHAPERGUI_DataModel()
 {
 }
 
-bool NewGeom_DataModel::open(const QString& thePath, CAM_Study* theStudy, QStringList theFiles)
+bool SHAPERGUI_DataModel::open(const QString& thePath, CAM_Study* theStudy, QStringList theFiles)
 {
   LightApp_DataModel::open( thePath, theStudy, theFiles );
   if (theFiles.size() == 0)
@@ -70,7 +70,7 @@ bool NewGeom_DataModel::open(const QString& thePath, CAM_Study* theStudy, QStrin
   return true;
 }
 
-bool NewGeom_DataModel::save(QStringList& theFiles)
+bool SHAPERGUI_DataModel::save(QStringList& theFiles)
 {
   LightApp_DataModel::save( theFiles );
   XGUI_Workshop* aWorkShop = myModule->workshop();
@@ -100,13 +100,13 @@ bool NewGeom_DataModel::save(QStringList& theFiles)
   return true;
 }
 
-bool NewGeom_DataModel::saveAs(const QString& thePath, CAM_Study* theStudy, QStringList& theFiles)
+bool SHAPERGUI_DataModel::saveAs(const QString& thePath, CAM_Study* theStudy, QStringList& theFiles)
 {
   myStudyPath = thePath;
   return save(theFiles);
 }
 
-bool NewGeom_DataModel::close()
+bool SHAPERGUI_DataModel::close()
 {
   myModule->workshop()->closeDocument();
   removeDirectory(myTmpDirectory);
@@ -114,30 +114,30 @@ bool NewGeom_DataModel::close()
   return LightApp_DataModel::close();
 }
 
-bool NewGeom_DataModel::create(CAM_Study* theStudy)
+bool SHAPERGUI_DataModel::create(CAM_Study* theStudy)
 {
   return true;
 }
 
-bool NewGeom_DataModel::isModified() const
+bool SHAPERGUI_DataModel::isModified() const
 {
   SessionPtr aMgr = ModelAPI_Session::get();
   return aMgr->isModified();
 }
 
-bool NewGeom_DataModel::isSaved() const
+bool SHAPERGUI_DataModel::isSaved() const
 {
   return !isModified();
 }
 
-void NewGeom_DataModel::update(LightApp_DataObject* theObj, LightApp_Study* theStudy)
+void SHAPERGUI_DataModel::update(LightApp_DataObject* theObj, LightApp_Study* theStudy)
 {
   // Nothing to do here: we always keep the data tree in the up-to-date state
   // The only goal of this method is to hide default behavior from LightApp_DataModel
   return;
 }
 
-void NewGeom_DataModel::initRootObject()
+void SHAPERGUI_DataModel::initRootObject()
 {
   LightApp_Study* study = dynamic_cast<LightApp_Study*>( module()->application()->activeStudy() );
   CAM_ModuleObject *aModelRoot = dynamic_cast<CAM_ModuleObject*>(root());
@@ -148,7 +148,7 @@ void NewGeom_DataModel::initRootObject()
   }
 }
 
-void NewGeom_DataModel::removeDirectory(const QString& theDirectoryName)
+void SHAPERGUI_DataModel::removeDirectory(const QString& theDirectoryName)
 {
   Qtx::rmDir(theDirectoryName);
 }
index e553f8cccda533b43e45d0778cd7ab09196e0df2..f07b913bf03a45092bd94e8f734f781cefbbe862 100644 (file)
@@ -4,23 +4,23 @@
 #ifndef NEWGEOM_DATAMODEL_H
 #define NEWGEOM_DATAMODEL_H
 
-#include "NewGeom.h"
+#include "SHAPER_SHAPERGUI.h"
 #include <LightApp_DataModel.h>
 
-class NewGeom_Module;
+class SHAPERGUI;
 
 /**
 * \ingroup Salome
 * A Data Model class provides a connection of SALOME data structure and OpenParts application data model
 */
-class NewGeom_EXPORT NewGeom_DataModel : public LightApp_DataModel
+class SHAPERGUI_EXPORT SHAPERGUI_DataModel : public LightApp_DataModel
 {
   Q_OBJECT
  public:
    /// Constructor
    /// \param theModule a module instance
-  NewGeom_DataModel(NewGeom_Module* theModule);
-  virtual ~NewGeom_DataModel();
+  SHAPERGUI_DataModel(SHAPERGUI* theModule);
+  virtual ~SHAPERGUI_DataModel();
 
   /// Open a data file
   /// \param thePath a path to the directory
@@ -77,7 +77,7 @@ protected:
 
   /// it should be created because the files reading is postponed in the module. The directory
   // should be removed after the model document is closed.
-  NewGeom_Module* myModule;
+  SHAPERGUI* myModule;
 };
 
 #endif
index 1440d92e9705c64505f5e19367fbdf45d590bf13..0ce9e0133694861dd1a8924ac3ce54101817767c 100644 (file)
@@ -1,11 +1,11 @@
 /*
- * NewGeom_NestedButton.cpp
+ * SHAPERGUI_NestedButton.cpp
  *
  *  Created on: Apr 13, 2015
  *      Author: sbh
  */
 
-#include <NewGeom_NestedButton.h>
+#include <SHAPERGUI_NestedButton.h>
 
 #include <QAction>
 #include <QFrame>
@@ -13,7 +13,7 @@
 #include <QToolButton>
 #include <QEvent>
 
-NewGeom_NestedButton::NewGeom_NestedButton(QObject* theParent,
+SHAPERGUI_NestedButton::SHAPERGUI_NestedButton(QObject* theParent,
                                            const QList<QAction*>& theNestedActions)
 : QWidgetAction(theParent),
   myNestedActions(theNestedActions),
@@ -23,11 +23,11 @@ NewGeom_NestedButton::NewGeom_NestedButton(QObject* theParent,
 {
 }
 
-NewGeom_NestedButton::~NewGeom_NestedButton()
+SHAPERGUI_NestedButton::~SHAPERGUI_NestedButton()
 {
 }
 
-void NewGeom_NestedButton::showAdditionalButtons(bool isShow)
+void SHAPERGUI_NestedButton::showAdditionalButtons(bool isShow)
 {
   myAdditionalButtonsWidget->setVisible(isShow);
   if (isShow) {
@@ -41,7 +41,7 @@ void NewGeom_NestedButton::showAdditionalButtons(bool isShow)
   }
 }
 
-QWidget * NewGeom_NestedButton::createWidget(QWidget * theParent)
+QWidget * SHAPERGUI_NestedButton::createWidget(QWidget * theParent)
 {
   myButtonFrame = new QFrame(theParent);
   QHBoxLayout* aBoxLay = new QHBoxLayout(myButtonFrame);
@@ -77,7 +77,7 @@ QWidget * NewGeom_NestedButton::createWidget(QWidget * theParent)
   return myButtonFrame;
 }
 
-bool NewGeom_NestedButton::event(QEvent* theEvent)
+bool SHAPERGUI_NestedButton::event(QEvent* theEvent)
 {
   if (theEvent->type() == QEvent::ActionChanged) {
     if (myThisButton) {
@@ -89,7 +89,7 @@ bool NewGeom_NestedButton::event(QEvent* theEvent)
 }
 
 
-void NewGeom_NestedButton::actionStateChanged()
+void SHAPERGUI_NestedButton::actionStateChanged()
 {
   if (isEnabled()) {
     QString s = "true";
index eb4eb2ea1245aa561d2443233a178dff8159e384..bb2bb7cb490a28c5a9b490bb2cb3359c1ed14cfb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * NewGeom_NestedButton.h
+ * SHAPERGUI_NestedButton.h
  *
  *  Created on: Apr 13, 2015
  *      Author: sbh
@@ -19,15 +19,15 @@ class QToolButton;
  * \ingroup Salome
  * Custom (nested) button in salome mode.
  */
-class NewGeom_NestedButton : public QWidgetAction
+class SHAPERGUI_NestedButton : public QWidgetAction
 {
   Q_OBJECT
  public:
    /// Constructor
    /// \param theParent a parent objects
    /// \param theNestedActions a list of nested actions
-  NewGeom_NestedButton(QObject* theParent, const QList<QAction*>& theNestedActions);
-  virtual ~NewGeom_NestedButton();
+  SHAPERGUI_NestedButton(QObject* theParent, const QList<QAction*>& theNestedActions);
+  virtual ~SHAPERGUI_NestedButton();
 
  private slots:
   /// Shows/hides the additional buttons widget
index 2331662bf97a3bcfa267859495d68f5b9922a26c..4efed4d82250ab7e79eb12ee141c6146da589998 100644 (file)
@@ -1,24 +1,24 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-#include "NewGeom_OCCSelector.h"
+#include "SHAPERGUI_OCCSelector.h"
 
-NewGeom_OCCSelector::NewGeom_OCCSelector(OCCViewer_Viewer* theViewer, SUIT_SelectionMgr* theMgr)
+SHAPERGUI_OCCSelector::SHAPERGUI_OCCSelector(OCCViewer_Viewer* theViewer, SUIT_SelectionMgr* theMgr)
     : LightApp_OCCSelector(theViewer, theMgr)
 {
 }
 
-NewGeom_OCCSelector::~NewGeom_OCCSelector()
+SHAPERGUI_OCCSelector::~SHAPERGUI_OCCSelector()
 {
 }
 
-void NewGeom_OCCSelector::getSelection(SUIT_DataOwnerPtrList& thePtrList) const
+void SHAPERGUI_OCCSelector::getSelection(SUIT_DataOwnerPtrList& thePtrList) const
 {
   OCCViewer_Viewer* vw = viewer();
   if (!vw)
     return;
 }
 
-void NewGeom_OCCSelector::setSelection(const SUIT_DataOwnerPtrList& thePtrList)
+void SHAPERGUI_OCCSelector::setSelection(const SUIT_DataOwnerPtrList& thePtrList)
 {
   OCCViewer_Viewer* vw = viewer();
   if (!vw)
index d27a62c79d54fd8720b257839eba0a7da6df3492..9d9e44e31433097f2a98276f83cd72ceef8222a2 100644 (file)
@@ -1,9 +1,9 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-#ifndef NewGeom_OCCSelector_H
-#define NewGeom_OCCSelector_H
+#ifndef SHAPERGUI_OCCSelector_H
+#define SHAPERGUI_OCCSelector_H
 
-#include "NewGeom.h"
+#include "SHAPER_SHAPERGUI.h"
 
 #include <LightApp_OCCSelector.h>
 
 * \ingroup Salome
 * Redefinition of standard OCC selector in order to adapt it to NewGeom needs
 */
-class NewGeom_EXPORT NewGeom_OCCSelector : public LightApp_OCCSelector
+class SHAPERGUI_EXPORT SHAPERGUI_OCCSelector : public LightApp_OCCSelector
 {
  public:
    /// Constructor
    /// \param theViewer a viewer
    /// \param theMgr a selection manager
-  NewGeom_OCCSelector(OCCViewer_Viewer* theViewer, SUIT_SelectionMgr* theMgr);
-  virtual ~NewGeom_OCCSelector();
+  SHAPERGUI_OCCSelector(OCCViewer_Viewer* theViewer, SUIT_SelectionMgr* theMgr);
+  virtual ~SHAPERGUI_OCCSelector();
 
  protected:
    /// Redifinition of virtual function
index f116db2333d94f09e03568feb2945f5f11c8d614..b4a65ead87a200e4461b9420f3638b637b3ecd7c 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-#include "NewGeom_SalomeViewer.h"
-#include "NewGeom_OCCSelector.h"
+#include "SHAPERGUI_SalomeViewer.h"
+#include "SHAPERGUI_OCCSelector.h"
 
 #include <OCCViewer_ViewPort3d.h>
 #include <OCCViewer_ViewFrame.h>
 #include <QMouseEvent>
 #include <QContextMenuEvent>
 
-NewGeom_SalomeView::NewGeom_SalomeView(OCCViewer_Viewer* theViewer)
+SHAPERGUI_SalomeView::SHAPERGUI_SalomeView(OCCViewer_Viewer* theViewer)
 : ModuleBase_IViewWindow(), myCurrentView(0)
 {
   myViewer = theViewer;
 }
 
 
-Handle(V3d_View) NewGeom_SalomeView::v3dView() const
+Handle(V3d_View) SHAPERGUI_SalomeView::v3dView() const
 {
   Handle(V3d_View) aView;
   if (myCurrentView) {
@@ -32,7 +32,7 @@ Handle(V3d_View) NewGeom_SalomeView::v3dView() const
   return aView;
 }
 
-QWidget* NewGeom_SalomeView::viewPort() const
+QWidget* SHAPERGUI_SalomeView::viewPort() const
 {
   QWidget* aViewPort = 0;
   if (myCurrentView) {
@@ -48,13 +48,13 @@ QWidget* NewGeom_SalomeView::viewPort() const
 
 
 
-NewGeom_SalomeViewer::NewGeom_SalomeViewer(QObject* theParent)
+SHAPERGUI_SalomeViewer::SHAPERGUI_SalomeViewer(QObject* theParent)
     : ModuleBase_IViewer(theParent),
       mySelector(0), myView(0), myIsSelectionChanged(false)
 {
 }
 
-NewGeom_SalomeViewer::~NewGeom_SalomeViewer()
+SHAPERGUI_SalomeViewer::~SHAPERGUI_SalomeViewer()
 {
   if (myView)
     delete myView;
@@ -62,7 +62,7 @@ NewGeom_SalomeViewer::~NewGeom_SalomeViewer()
 
 
 //**********************************************
-Handle(AIS_InteractiveContext) NewGeom_SalomeViewer::AISContext() const
+Handle(AIS_InteractiveContext) SHAPERGUI_SalomeViewer::AISContext() const
 {
   if (mySelector && mySelector->viewer())
     return mySelector->viewer()->getAISContext();
@@ -71,7 +71,7 @@ Handle(AIS_InteractiveContext) NewGeom_SalomeViewer::AISContext() const
 }
 
 //**********************************************
-Handle(V3d_Viewer) NewGeom_SalomeViewer::v3dViewer() const
+Handle(V3d_Viewer) SHAPERGUI_SalomeViewer::v3dViewer() const
 {
   if (mySelector)
     return mySelector->viewer()->getViewer3d();
@@ -79,13 +79,13 @@ Handle(V3d_Viewer) NewGeom_SalomeViewer::v3dViewer() const
 }
 
 //**********************************************
-Handle(AIS_Trihedron) NewGeom_SalomeViewer::trihedron() const
+Handle(AIS_Trihedron) SHAPERGUI_SalomeViewer::trihedron() const
 {
   return mySelector->viewer()->getTrihedron();
 }
 
 //**********************************************
-Handle(V3d_View) NewGeom_SalomeViewer::activeView() const
+Handle(V3d_View) SHAPERGUI_SalomeViewer::activeView() const
 {
   if (mySelector) {
     OCCViewer_Viewer* aViewer = mySelector->viewer();
@@ -97,7 +97,7 @@ Handle(V3d_View) NewGeom_SalomeViewer::activeView() const
 }
 
 //**********************************************
-QWidget* NewGeom_SalomeViewer::activeViewPort() const
+QWidget* SHAPERGUI_SalomeViewer::activeViewPort() const
 {
   QWidget* aViewPort;
   if (mySelector) {
@@ -110,7 +110,7 @@ QWidget* NewGeom_SalomeViewer::activeViewPort() const
 }
 
 //**********************************************
-void NewGeom_SalomeViewer::setSelector(NewGeom_OCCSelector* theSel)
+void SHAPERGUI_SalomeViewer::setSelector(SHAPERGUI_OCCSelector* theSel)
 {
   if (mySelector) {
     if (mySelector == theSel)
@@ -128,7 +128,7 @@ void NewGeom_SalomeViewer::setSelector(NewGeom_OCCSelector* theSel)
   OCCViewer_Viewer* aViewer = mySelector->viewer();
   SUIT_ViewManager* aMgr = aViewer->getViewManager();
 
-  myView = new NewGeom_SalomeView(mySelector->viewer());
+  myView = new SHAPERGUI_SalomeView(mySelector->viewer());
 
   // TODO: Provide ModuleBase_IViewWindow interface
   connect(aMgr, SIGNAL(lastViewClosed(SUIT_ViewManager*)), this, SIGNAL(lastViewClosed()));
@@ -160,21 +160,21 @@ void NewGeom_SalomeViewer::setSelector(NewGeom_OCCSelector* theSel)
 }
 
 //**********************************************
-void NewGeom_SalomeViewer::onSelectionChanged()
+void SHAPERGUI_SalomeViewer::onSelectionChanged()
 {
   // Selection event must be sent only after mouse release
   myIsSelectionChanged = true;
 }
 
 //**********************************************
-void NewGeom_SalomeViewer::onMousePress(SUIT_ViewWindow* theView, QMouseEvent* theEvent)
+void SHAPERGUI_SalomeViewer::onMousePress(SUIT_ViewWindow* theView, QMouseEvent* theEvent)
 {
   myView->setCurrentView(theView);
   emit mousePress(myView, theEvent);
 }
 
 //**********************************************
-void NewGeom_SalomeViewer::onMouseRelease(SUIT_ViewWindow* theView, QMouseEvent* theEvent)
+void SHAPERGUI_SalomeViewer::onMouseRelease(SUIT_ViewWindow* theView, QMouseEvent* theEvent)
 {
   myView->setCurrentView(theView);
   emit mouseRelease(myView, theEvent);
@@ -185,21 +185,21 @@ void NewGeom_SalomeViewer::onMouseRelease(SUIT_ViewWindow* theView, QMouseEvent*
 }
 
 //**********************************************
-void NewGeom_SalomeViewer::onMouseDoubleClick(SUIT_ViewWindow* theView, QMouseEvent* theEvent)
+void SHAPERGUI_SalomeViewer::onMouseDoubleClick(SUIT_ViewWindow* theView, QMouseEvent* theEvent)
 {
   myView->setCurrentView(theView);
   emit mouseDoubleClick(myView, theEvent);
 }
 
 //**********************************************
-void NewGeom_SalomeViewer::onMouseMove(SUIT_ViewWindow* theView, QMouseEvent* theEvent)
+void SHAPERGUI_SalomeViewer::onMouseMove(SUIT_ViewWindow* theView, QMouseEvent* theEvent)
 {
   myView->setCurrentView(theView);
   emit mouseMove(myView, theEvent);
 }
 
 //**********************************************
-bool NewGeom_SalomeViewer::canDragByMouse() const
+bool SHAPERGUI_SalomeViewer::canDragByMouse() const
 {
   OCCViewer_Viewer* aViewer = mySelector->viewer();
   SUIT_ViewWindow* aWnd = aViewer->getViewManager()->getActiveView();
@@ -212,25 +212,25 @@ bool NewGeom_SalomeViewer::canDragByMouse() const
 
 
 //**********************************************
-void NewGeom_SalomeViewer::onKeyPress(SUIT_ViewWindow* theView, QKeyEvent* theEvent)
+void SHAPERGUI_SalomeViewer::onKeyPress(SUIT_ViewWindow* theView, QKeyEvent* theEvent)
 {
   emit keyPress(myView, theEvent);
 }
 
 //**********************************************
-void NewGeom_SalomeViewer::onKeyRelease(SUIT_ViewWindow* theView, QKeyEvent* theEvent)
+void SHAPERGUI_SalomeViewer::onKeyRelease(SUIT_ViewWindow* theView, QKeyEvent* theEvent)
 {
   emit keyRelease(myView, theEvent);
 }
 
 //**********************************************
-void NewGeom_SalomeViewer::onTryCloseView(SUIT_ViewWindow*)
+void SHAPERGUI_SalomeViewer::onTryCloseView(SUIT_ViewWindow*)
 {
   emit tryCloseView(myView);
 }
 
 //**********************************************
-void NewGeom_SalomeViewer::onDeleteView(SUIT_ViewWindow*)
+void SHAPERGUI_SalomeViewer::onDeleteView(SUIT_ViewWindow*)
 {
   if(myWindowScale.contains(myView->v3dView()))
     myWindowScale.remove(myView->v3dView());
@@ -238,7 +238,7 @@ void NewGeom_SalomeViewer::onDeleteView(SUIT_ViewWindow*)
 }
 
 //**********************************************
-void NewGeom_SalomeViewer::onViewCreated(SUIT_ViewWindow* theView)
+void SHAPERGUI_SalomeViewer::onViewCreated(SUIT_ViewWindow* theView)
 {
   myView->setCurrentView(theView);
 
@@ -262,14 +262,14 @@ void NewGeom_SalomeViewer::onViewCreated(SUIT_ViewWindow* theView)
 }
 
 //**********************************************
-void NewGeom_SalomeViewer::onActivated(SUIT_ViewManager* theMgr)
+void SHAPERGUI_SalomeViewer::onActivated(SUIT_ViewManager* theMgr)
 {
   myView->setCurrentView(theMgr->getActiveView());
   emit activated(myView);
 }
 
 //**********************************************
-void NewGeom_SalomeViewer::enableSelection(bool isEnabled)
+void SHAPERGUI_SalomeViewer::enableSelection(bool isEnabled)
 {
   if (mySelector)
     if (mySelector->viewer()->isSelectionEnabled() != isEnabled)
@@ -281,7 +281,7 @@ void NewGeom_SalomeViewer::enableSelection(bool isEnabled)
 }
 
 //**********************************************
-bool NewGeom_SalomeViewer::isSelectionEnabled() const
+bool SHAPERGUI_SalomeViewer::isSelectionEnabled() const
 {
   if (mySelector)
     return mySelector->viewer()->isSelectionEnabled();
@@ -289,14 +289,14 @@ bool NewGeom_SalomeViewer::isSelectionEnabled() const
 }
 
 //**********************************************
-void NewGeom_SalomeViewer::enableMultiselection(bool isEnable)
+void SHAPERGUI_SalomeViewer::enableMultiselection(bool isEnable)
 {
   if (mySelector)
     mySelector->viewer()->enableMultiselection(isEnable);
 }
 
 //**********************************************
-bool NewGeom_SalomeViewer::isMultiSelectionEnabled() const
+bool SHAPERGUI_SalomeViewer::isMultiSelectionEnabled() const
 {
   if (mySelector)
     return mySelector->viewer()->isMultiSelectionEnabled();
@@ -304,7 +304,7 @@ bool NewGeom_SalomeViewer::isMultiSelectionEnabled() const
 }
 
 //**********************************************
-bool NewGeom_SalomeViewer::enableDrawMode(bool isEnabled)
+bool SHAPERGUI_SalomeViewer::enableDrawMode(bool isEnabled)
 {
   // TODO: Has to be replaced when SALOME patch become available
   if (mySelector)
@@ -313,7 +313,7 @@ bool NewGeom_SalomeViewer::enableDrawMode(bool isEnabled)
 }
 
 //**********************************************
-void NewGeom_SalomeViewer::reconnectActions(SUIT_ViewWindow* theWindow,
+void SHAPERGUI_SalomeViewer::reconnectActions(SUIT_ViewWindow* theWindow,
                                             const bool theUseNewGeomSlot)
 {
   OCCViewer_ViewWindow* aWindow = dynamic_cast<OCCViewer_ViewWindow*>(theWindow);
@@ -339,7 +339,7 @@ void NewGeom_SalomeViewer::reconnectActions(SUIT_ViewWindow* theWindow,
 }
 
 //**********************************************
-void NewGeom_SalomeViewer::fitAll()
+void SHAPERGUI_SalomeViewer::fitAll()
 {
   if (mySelector) {
     SUIT_ViewManager* aMgr = mySelector->viewer()->getViewManager();
@@ -351,7 +351,7 @@ void NewGeom_SalomeViewer::fitAll()
 }
 
 //**********************************************
-void NewGeom_SalomeViewer::setViewProjection(double theX, double theY, double theZ, double theTwist)
+void SHAPERGUI_SalomeViewer::setViewProjection(double theX, double theY, double theZ, double theTwist)
 {
   if (!mySelector) 
     return;
@@ -372,7 +372,7 @@ void NewGeom_SalomeViewer::setViewProjection(double theX, double theY, double th
 }
 
 //***************************************
-void NewGeom_SalomeViewer::addSelectionFilter(const Handle(SelectMgr_Filter)& theFilter)
+void SHAPERGUI_SalomeViewer::addSelectionFilter(const Handle(SelectMgr_Filter)& theFilter)
 {
   Handle(AIS_InteractiveContext) aContext = AISContext();
   if (!aContext.IsNull()) {
@@ -381,7 +381,7 @@ void NewGeom_SalomeViewer::addSelectionFilter(const Handle(SelectMgr_Filter)& th
 }
 
 //***************************************
-void NewGeom_SalomeViewer::removeSelectionFilter(const Handle(SelectMgr_Filter)& theFilter)
+void SHAPERGUI_SalomeViewer::removeSelectionFilter(const Handle(SelectMgr_Filter)& theFilter)
 {
   Handle(AIS_InteractiveContext) aContext = AISContext();
   if (!aContext.IsNull()) {
@@ -390,7 +390,7 @@ void NewGeom_SalomeViewer::removeSelectionFilter(const Handle(SelectMgr_Filter)&
 }
 
 //***************************************
-bool NewGeom_SalomeViewer::hasSelectionFilter(const Handle(SelectMgr_Filter)& theFilter)
+bool SHAPERGUI_SalomeViewer::hasSelectionFilter(const Handle(SelectMgr_Filter)& theFilter)
 {
   bool aFoundFilter = false;
   Handle(AIS_InteractiveContext) aContext = AISContext();
@@ -405,7 +405,7 @@ bool NewGeom_SalomeViewer::hasSelectionFilter(const Handle(SelectMgr_Filter)& th
 }
 
 //***************************************
-void NewGeom_SalomeViewer::clearSelectionFilters()
+void SHAPERGUI_SalomeViewer::clearSelectionFilters()
 {
   Handle(AIS_InteractiveContext) aContext = AISContext();
   if (!aContext.IsNull()) {
@@ -414,7 +414,7 @@ void NewGeom_SalomeViewer::clearSelectionFilters()
 }
 
 //***************************************
-void NewGeom_SalomeViewer::update()
+void SHAPERGUI_SalomeViewer::update()
 {
   Handle(AIS_InteractiveContext) aContext = AISContext();
   if (!aContext.IsNull()) {
@@ -423,19 +423,19 @@ void NewGeom_SalomeViewer::update()
 }
 
 //***************************************
-void NewGeom_SalomeViewer::onViewTransformed(OCCViewer_ViewWindow::OperationType theType)
+void SHAPERGUI_SalomeViewer::onViewTransformed(OCCViewer_ViewWindow::OperationType theType)
 {
   emit viewTransformed((int) theType);
 }
 
 //***************************************
-void NewGeom_SalomeViewer::onViewPortMapped()
+void SHAPERGUI_SalomeViewer::onViewPortMapped()
 {
   emit trihedronVisibilityChanged(true);
 }
 
 //***************************************
-void NewGeom_SalomeViewer::activateViewer(bool toActivate)
+void SHAPERGUI_SalomeViewer::activateViewer(bool toActivate)
 {
   if (!mySelector || !mySelector->viewer())
     return;
@@ -460,7 +460,7 @@ void NewGeom_SalomeViewer::activateViewer(bool toActivate)
   }
 }
 
-void NewGeom_SalomeViewer::Zfitall()
+void SHAPERGUI_SalomeViewer::Zfitall()
 {
   if (!mySelector || !mySelector->viewer())
     return;
index e32cfbbdf9c8526bb6590b8b383f112a71d89136..3e34b603aebf3b8dc3d142767d876b387dd28888 100644 (file)
@@ -1,10 +1,10 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
 
-#ifndef NewGeom_SalomeViewer_H
-#define NewGeom_SalomeViewer_H
+#ifndef SHAPERGUI_SalomeViewer_H
+#define SHAPERGUI_SalomeViewer_H
 
-#include "NewGeom.h"
+#include "SHAPER_SHAPERGUI.h"
 
 #include <ModuleBase_IViewer.h>
 #include <ModuleBase_IViewWindow.h>
@@ -18,7 +18,7 @@ class SUIT_ViewWindow;
 class QMouseEvent;
 class QKeyEvent;
 
-class NewGeom_OCCSelector;
+class SHAPERGUI_OCCSelector;
 class OCCViewer_Viewer;
 class SUIT_ViewManager;
 
@@ -27,12 +27,12 @@ class SUIT_ViewManager;
 * A class for providing access of NewGeom functionality to 
 * SALOME view window functionality
 */
-class NewGeom_SalomeView: public ModuleBase_IViewWindow
+class SHAPERGUI_SalomeView: public ModuleBase_IViewWindow
 {
 public:
   /// Constructor
   /// \param theViewer a reference to a viewer
-  NewGeom_SalomeView(OCCViewer_Viewer* theViewer);
+  SHAPERGUI_SalomeView(OCCViewer_Viewer* theViewer);
 
   virtual Handle(V3d_View) v3dView() const;
 
@@ -61,15 +61,15 @@ private:
 * A class for providing access of NewGeom functionality to 
 * SALOME viewer functionality
 */
-class NewGeom_SalomeViewer : public ModuleBase_IViewer
+class SHAPERGUI_SalomeViewer : public ModuleBase_IViewer
 {
 Q_OBJECT
  public:
    /// Constructor
    /// \param theParent a parent object
-  NewGeom_SalomeViewer(QObject* theParent);
+  SHAPERGUI_SalomeViewer(QObject* theParent);
 
-  ~NewGeom_SalomeViewer();
+  ~SHAPERGUI_SalomeViewer();
 
   //! Returns AIS_InteractiveContext from current OCCViewer
   virtual Handle(AIS_InteractiveContext) AISContext() const;
@@ -117,7 +117,7 @@ Q_OBJECT
 
   /// Set selector
   /// \param theSel a selector instance
-  void setSelector(NewGeom_OCCSelector* theSel);
+  void setSelector(SHAPERGUI_OCCSelector* theSel);
 
   /// Add selection filter to the viewer
   virtual void addSelectionFilter(const Handle(SelectMgr_Filter)& theFilter);
@@ -133,7 +133,7 @@ Q_OBJECT
   virtual void clearSelectionFilters();
 
   /// Returns current selector
-  NewGeom_OCCSelector* selector() const
+  SHAPERGUI_OCCSelector* selector() const
   {
     return mySelector;
   }
@@ -173,8 +173,8 @@ Q_OBJECT
   void onViewPortMapped();
 
  private:
-  NewGeom_OCCSelector* mySelector;
-  NewGeom_SalomeView* myView;
+  SHAPERGUI_OCCSelector* mySelector;
+  SHAPERGUI_SalomeView* myView;
   bool myIsSelectionChanged;
 };
 
index a8c6978f4f4ece7154be5ffc58843b7b80168b04..f10984a92fd36eb2c2081bace3e5804cec12a127 100644 (file)
@@ -1,19 +1,19 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-#ifndef NewGeom_H
-#define NewGeom_H
+#ifndef SHAPER_SHAPERGUI_H
+#define SHAPER_SHAPERGUI_H
 
-#if defined NewGeom_EXPORTS
+#if defined SHAPERGUI_EXPORTS
 #if defined WIN32
-#define NewGeom_EXPORT     __declspec( dllexport )
+#define SHAPERGUI_EXPORT     __declspec( dllexport )
 #else
-#define NewGeom_EXPORT
+#define SHAPERGUI_EXPORT
 #endif
 #else
 #if defined WIN32
-#define NewGeom_EXPORT     __declspec( dllimport )
+#define SHAPERGUI_EXPORT     __declspec( dllimport )
 #else
-#define NewGeom_EXPORT
+#define SHAPERGUI_EXPORT
 #endif
 #endif