X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_CalculationDlg.h;h=15b7578baca31ffc6f291ffe1d347e9ec22da044;hb=de7cf9bb0a7a41d6487013c87f4a54d0664cd303;hp=3e1374790ea67b0458cf387d98fd75ba40ccabde;hpb=0c76593b1d11353467fe978da4ad99549c59899e;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_CalculationDlg.h b/src/HYDROGUI/HYDROGUI_CalculationDlg.h index 3e137479..15b7578b 100644 --- a/src/HYDROGUI/HYDROGUI_CalculationDlg.h +++ b/src/HYDROGUI/HYDROGUI_CalculationDlg.h @@ -53,14 +53,19 @@ 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; HYDROGUI_Zone* getCurrentZone() const; public slots: + void setBoundary( const QString& theObjName ); + void includeGeomObjects( const QStringList& theObjects ); + void excludeGeomObjects( const QStringList& theObjects ); void onEmptyName(); void onAlreadyExists( QString theName ); + void refreshZonesBrowser(); /** * Process items selection: hide/show bathymetry merge type selector. */ @@ -69,12 +74,23 @@ public slots: * Process merge type selection: set the selected bathymetry merge type for the currently selected zone. */ void onMergeTypeSelected( int theIndex ); + /** + * Process zones moving. Create a new region with dropped zones or add to existing one. + */ + void onZonesDropped( const QList& theList, + SUIT_DataObject* theTargetParent, int theTargetRow, Qt::DropAction theDropAction ); signals: void addObjects(); void removeObjects(); + void objectSelected( const QString & theObjName ); + void boundarySelected( const QString & theObjName ); void splitZones(); - void setMergeType( int theMergeType, QString theBathymetryName ); + void hideZones(); + void setMergeType( int theMergeType, QString& theBathymetryName ); + void createRegion( const QList& theZonesList ); + void moveZones( SUIT_DataObject* theRegion, const QList& theZonesList ); + void clickedInZonesBrowser( SUIT_DataObject* ); private: @@ -85,6 +101,9 @@ private: QLineEdit* myObjectName; HYDROGUI_NameValidator* myValidator; + QComboBox* myPolylineName; + + QListWidget* myAvailableGeomObjects; QListWidget* myGeomObjects; HYDROGUI_DataBrowser* myBrowser;