Salome HOME
Dump Image data to python script (Feature #13).
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_DataModel.h
index 07cca59b62d8b979e1bf02767cedd4d1b1f11915..1c5de1d7d7534bb2a77804c5713c163ddf079ccc 100644 (file)
@@ -80,6 +80,14 @@ public:
    */
   virtual bool close();
 
+  /**
+   * Dump study data to Python script. Reimplemented.
+   */
+  virtual bool                        dumpPython( const QString& theURL,
+                                                  CAM_Study*     theStudy,
+                                                  bool           isMultiFile,
+                                                  QStringList&   theListOfFiles );
+
   /**
    * Returns modification status. Reimplemented.
    * \return boolean value of modification status
@@ -140,26 +148,47 @@ public:
    * Find a data object by the specified entry and kind
    */
   Handle(HYDROData_Object) objectByEntry( const QString& theEntry,
-                                          const ObjectKind theObjectKind );
+                                          const ObjectKind theObjectKind = KIND_UNKNOWN );
 
   /**
    * Check if it is possible to perform 'undo' operation
    */
   bool canUndo() const;
+
+  /**
+   * Check if it is possible to perform 'redo' operation
+   */
   bool canRedo() const;
 
   /**
    * Returns the list of names of available 'undo' actions
    */
   QStringList undoNames() const;
+
+  /**
+   * Returns the list of names of available 'redo' actions
+   */
   QStringList redoNames() const;
 
+  /**
+   * Clear the list of stored 'undo' actions
+   */
   void clearUndos();
+
+  /**
+   * Clear the list of stored 'redo' actions
+   */
   void clearRedos();
 
+  /**
+   * Perform the 'undo' operation
+   */
   bool undo();
-  bool redo();
 
+  /**
+   * Perform the 'redo' operation
+   */
+  bool redo();
 
 protected:
   /**
@@ -173,7 +202,8 @@ protected:
    * \param theObject model object
    */
   LightApp_DataObject* createObject( SUIT_DataObject* theParent,
-                                     Handle(HYDROData_Object) theModelObject );
+                                     Handle(HYDROData_Object) theModelObject,
+                                     const QString& theParentEntry = QString() );
 
   /**
    * Creates the GUI data object without corresponding model object: just by name