Salome HOME
Some classes from library SalomeApp moved to library LightApp. Replace its. BR_LightConf_dev
authornds <nds@opencascade.com>
Wed, 28 Sep 2005 08:01:27 +0000 (08:01 +0000)
committernds <nds@opencascade.com>
Wed, 28 Sep 2005 08:01:27 +0000 (08:01 +0000)
src/SUPERVGUI/SUPERVGUI.cxx
src/SUPERVGUI/SUPERVGUI.h
src/SUPERVGUI/SUPERVGUI_BrowseNodeDlg.cxx
src/SUPERVGUI/SUPERVGUI_CanvasNode.cxx
src/SUPERVGUI/SUPERVGUI_DataModel.cxx
src/SUPERVGUI/SUPERVGUI_DataModel.h
src/SUPERVGUI/SUPERVGUI_Selection.cxx
src/SUPERVGUI/SUPERVGUI_Selection.h

index be668d781c65be310efd9e0a3bdce39ca6791713..857453b1ccf4b5baf1acc1b03abf391275765e42 100644 (file)
@@ -39,8 +39,8 @@ using namespace boost;
 #include "OB_ListItem.h"
 #include "SalomeApp_Application.h"
 #include "SalomeApp_ImportOperation.h"
-#include "SalomeApp_NameDlg.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_NameDlg.h"
+#include "LightApp_SelectionMgr.h"
 #include "SalomeApp_Study.h"
 #include "SUIT_Desktop.h"
 #include "SUIT_FileDlg.h"
@@ -266,7 +266,7 @@ CAM_DataModel* SUPERVGUI::createDataModel()
   return new SUPERVGUI_DataModel( this );
 }
 
-SalomeApp_Selection* SUPERVGUI::createSelection() const
+LightApp_Selection* SUPERVGUI::createSelection() const
 {
   return new SUPERVGUI_Selection();
 }
@@ -507,7 +507,7 @@ void SUPERVGUI::renameDataflow() {
       if ( obj->FindAttribute(anAttr, "AttributeName") ) {
        _PTR(AttributeName) aName ( anAttr );
        QString nm = QString( aName->Value().c_str() );
-       nm = SalomeApp_NameDlg::getName( application()->desktop(), nm );
+       nm = LightApp_NameDlg::getName( application()->desktop(), nm );
        if ( !nm.isEmpty() ) {
          // sak : 24.11.04 : fix for PAL6898 : if rename fails (study locked), 
          // a message box is displayed, and cursor is "wait cursor".  We think that "wait cursor"
index d5239a90f03a2c13556e2403d5c60af2016b20e9..470a4d4a4c828ed803703228a0941c3b21c2b1f6 100644 (file)
@@ -134,7 +134,7 @@ class SUPERVGUI: public SalomeApp_Module {
       
   protected:
     virtual CAM_DataModel* createDataModel();
-    virtual SalomeApp_Selection* createSelection() const;
+    virtual LightApp_Selection* createSelection() const;
 
   private:
     void loadEngine(SALOME_NamingService* namingService);
index 50362a770440d09093b001ac913f7649c3697387..334b7c3413510e01279c7fe68df157f9cabf7bec 100644 (file)
@@ -17,7 +17,7 @@ using namespace std;
 using namespace boost;
 
 #include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 #include "SalomeApp_Study.h"
 #include "SUIT_Session.h"
 
index 3eaa873bf72adefcb1547ea416ce7ae917f77ac4..3a924b82d7ebbd763008552c0a3be8a8620199f1 100644 (file)
@@ -18,7 +18,7 @@ using namespace std;
 #include "SUPERVGUI_Information.h"
 #include "SUPERVGUI_Library.h"
 
-#include "SalomeApp_NameDlg.h"
+#include "LightApp_NameDlg.h"
 #include "SUIT_MessageBox.h"
 #include "LogWindow.h"
 #include "SUIT_Session.h"
@@ -348,7 +348,7 @@ bool SUPERVGUI_CanvasNode::setNodeName(QString aName)  {
 }
 
 void SUPERVGUI_CanvasNode::rename()  {
-  QString aName = SalomeApp_NameDlg::getName( SUIT_Session::session()->activeApplication()->desktop(), myNode->Name() );
+  QString aName = LightApp_NameDlg::getName( SUIT_Session::session()->activeApplication()->desktop(), myNode->Name() );
   if (!aName.isEmpty()) {
     setNodeName(aName);
   }
index 5929d35e0484901ab2f0a8ba84b6ac39062aa8fe..145712c9908794df35abd454f19cc9df337bdf08 100644 (file)
@@ -21,27 +21,27 @@ SUPERVGUI_DataModel::~SUPERVGUI_DataModel()
 // Function : open
 // Purpose  : 
 //================================================================
-bool SUPERVGUI_DataModel::open( const QString& str, CAM_Study* study )
+bool SUPERVGUI_DataModel::open( const QString& str, CAM_Study* study, QStringList list )
 {
-  return SalomeApp_DataModel::open( str, study );
+  return SalomeApp_DataModel::open( str, study, list );
 }
 
 //================================================================
 // Function : save
 // Purpose  : 
 //================================================================
-bool SUPERVGUI_DataModel::save()
+bool SUPERVGUI_DataModel::save(QStringList& list)
 {
-  return SalomeApp_DataModel::save();
+  return SalomeApp_DataModel::save(list);
 }
 
 //================================================================
 // Function : saveAs
 // Purpose  : 
 //================================================================
-bool SUPERVGUI_DataModel::saveAs( const QString& str, CAM_Study* study )
+bool SUPERVGUI_DataModel::saveAs( const QString& str, CAM_Study* study, QStringList& list )
 {
-  return SalomeApp_DataModel::saveAs( str, study );
+  return SalomeApp_DataModel::saveAs( str, study, list );
 }
 
 //================================================================
index b21a692e07d510fea168d97fe692ceb0fd4a0855..59d707edb5b0c5ddf98675460ad0d56596c429eb 100644 (file)
@@ -14,9 +14,9 @@ public:
                                       SUPERVGUI_DataModel ( CAM_Module* theModule );
   virtual                             ~SUPERVGUI_DataModel();
 
-  virtual bool                        open( const QString&, CAM_Study* );
-  virtual bool                        save();
-  virtual bool                        saveAs( const QString&, CAM_Study* );
+  virtual bool                        open( const QString&, CAM_Study*, QStringList );
+  virtual bool                        save( QStringList& );
+  virtual bool                        saveAs( const QString&, CAM_Study*, QStringList& );
   virtual bool                        close();
 
   virtual bool                        isModified() const ;
index f361615dc062055a0814be9f86e2bbc1eb38e3e3..dc745172cac4e46955a348cc604431057fb1ab60 100644 (file)
@@ -1,7 +1,7 @@
 #include "SUPERVGUI_Selection.h"
 #include "SUPERVGUI.h"
 
-#include <SalomeApp_DataOwner.h>
+#include <LightApp_DataOwner.h>
 #include <SalomeApp_Study.h>
 
 #include <SUIT_Session.h>
@@ -29,7 +29,7 @@ SUPERVGUI_Selection::~SUPERVGUI_Selection()
 
 QtxValue SUPERVGUI_Selection::param( const int ind, const QString& p ) const
 {
-  QtxValue val( SalomeApp_Selection::param( ind, p ) );
+  QtxValue val( LightApp_Selection::param( ind, p ) );
   if ( !val.isValid() ) {
     if ( p == "type" )  val = QtxValue( typeName( ind ) );
   }
index 6c7c2f3c391c5e7c94471cf59cbdbc6377a84b17..74f97162617e7acca4a1750e38ca2f3c119139d2 100644 (file)
@@ -28,7 +28,7 @@
 #ifndef SUPERVGUI_SELECTION_HeaderFile
 #define SUPERVGUI_SELECTION_HeaderFile
 
-#include <SalomeApp_Selection.h>
+#include <LightApp_Selection.h>
 
 #include <SALOMEconfig.h>
 
@@ -38,7 +38,7 @@ using namespace boost;
 
 class SALOME_InteractiveObject;
 
-class SUPERVGUI_Selection : public SalomeApp_Selection
+class SUPERVGUI_Selection : public LightApp_Selection
 {
 public:
   SUPERVGUI_Selection();