Salome HOME
refs #453: scalar bar is invisible
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_CalculationDlg.h
index 627c9fe7d95cdff89d24033b60e3910481031f5f..eaf3aa26aa6a52a2e81a437d88753c6953b79619 100644 (file)
@@ -53,15 +53,26 @@ public:
 
   void                       setEditedObject( const Handle(HYDROData_CalculationCase) theCase );
 
-  void                       setGeomObjects( const QStringList& theObjects );
-  void                       setSelectedGeomObjects( const QStringList& theObjects );
+  void                       setAllGeomObjects( const QStringList& theObjects, const QStringList& theObjectsEntries );
+  void                       setPolylineNames( const QStringList& theObjects, const QStringList& theObjectsEntries );
   QStringList                getSelectedGeomObjects() const;
+  QStringList                getSelectedAvailableGeomObjects() const;
+  QStringList                getSelectedGroups() const;
+  QStringList                getSelectedAvailableGroups() const;
   HYDROGUI_Zone*             getCurrentZone() const;
 
+  void                       setAvailableGroups( const QStringList& );
+
 public slots:
+  void                       setBoundary( const QString& theObjName );
+  void                       includeGeomObjects( const QStringList& theObjects );
+  void                       excludeGeomObjects( const QStringList& theObjects );
+  void                       includeGroups( const QStringList& theObjects );
+  void                       excludeGroups( const QStringList& theObjects );
   void                       onEmptyName();
   void                       onAlreadyExists( QString theName );
   void                       refreshZonesBrowser();
+  void                       onDataChanged();
   /**
    * Process items selection: hide/show bathymetry merge type selector.
    */
@@ -79,22 +90,40 @@ public slots:
 signals:
   void                       addObjects();
   void                       removeObjects();
-  void                       splitZones();
+  void                       objectsSelected();
+
+  void                       addGroups();
+  void                       removeGroups();
+  void                       groupsSelected();
+
+  void                       boundarySelected( const QString & theObjName );
   void                       setMergeType( int theMergeType, QString& theBathymetryName );
   void                       createRegion( const QList<SUIT_DataObject*>& theZonesList );
   void                       moveZones( SUIT_DataObject* theRegion, const QList<SUIT_DataObject*>& theZonesList );
+  void                       clickedInZonesBrowser( SUIT_DataObject* );
+
+protected:
+
+  virtual bool               acceptCurrent() const;
 
 private:
 
   QWizardPage*               createObjectsPage();
+  QWizardPage*               createGroupsPage();
   QWizardPage*               createZonesPage();
 
   QGroupBox*                 myObjectNameGroup;
   QLineEdit*                 myObjectName;
   HYDROGUI_NameValidator*    myValidator;
 
+  QComboBox*                 myPolylineName;
+
+  QListWidget*               myAvailableGeomObjects;
   QListWidget*               myGeomObjects;
 
+  QListWidget*               myAvailableGroups;
+  QListWidget*               myGroups;
+
   HYDROGUI_DataBrowser*      myBrowser;
   Handle(HYDROData_CalculationCase) myEditedObject;
   QComboBox*                 myBathymetryChoice;