X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_CalculationDlg.h;h=07307c744ab465a48e758dcfdd7324779bd6e2e9;hb=60c1b803621af637e863bf91a54f59251a28552c;hp=c0e972c190c70d0c083174fa6b3e7c5ff8b87d04;hpb=1a34f38dc2200f3ebf8b7d54858f320ca080945b;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_CalculationDlg.h b/src/HYDROGUI/HYDROGUI_CalculationDlg.h index c0e972c1..07307c74 100644 --- a/src/HYDROGUI/HYDROGUI_CalculationDlg.h +++ b/src/HYDROGUI/HYDROGUI_CalculationDlg.h @@ -22,7 +22,7 @@ #include "HYDROGUI_Wizard.h" #include -#include +#include class HYDROGUI_ObjSelector; class HYDROGUI_DataBrowser; @@ -54,8 +54,7 @@ public: void reset(); int getMode() const; - int getLandCoverMode() const; - + void setObjectName( const QString& theName ); QString getObjectName() const; @@ -63,28 +62,28 @@ public: void setAllGeomObjects( const QStringList& theObjects, const QStringList& theObjectsEntries ); QStringList getAllGeomObjects() const; - void setAllLandCovers( const QStringList& theObjects, const QStringList& theObjectsEntries ); - QStringList getAllLandCovers() const; void setPolylineNames( const QStringList& theObjects, const QStringList& theObjectsEntries ); + void setLandCoverMapsNames( const QStringList& theObjects, const QStringList& theObjectsEntries ); void setStricklerTableNames( const QStringList& theObjects, const QStringList& theObjectsEntries ); QStringList getSelectedGeomObjects() const; - QStringList getSelectedLandCovers() const; QStringList getSelectedAvailableGeomObjects() const; - QStringList getSelectedAvailableLandCovers() const; QStringList getSelectedGroups() const; QStringList getSelectedAvailableGroups() const; + QStringList getSelectedBoundaryPolygons() const; + QStringList getSelectedISBoundaryPolygons() const; + QStringList getSelectedAvailableBoundaryPolygons() const; HYDROGUI_Zone* getCurrentZone() const; void setAvailableGroups( const QStringList& ); + void setAvailableBoundaryPolygons( const QStringList&, const QVector& ); + void setEditZonesEnabled( const bool theIsEnabled ); - void setEditLandCoverZonesEnabled( const bool theIsEnabled ); HYDROData_ListOfRules getRules() const; void setRules( const HYDROData_ListOfRules& theRules ) const; - HYDROData_ListOfRules getLandCoverRules() const; - void setLandCoverRules( const HYDROData_ListOfRules& theRules ) const; + QList getGeometryObjects(bool GeomObjOnly = true); public slots: void setMode( int theMode ); @@ -93,6 +92,14 @@ public slots: void excludeGeomObjects( const QStringList& theObjects ); void includeGroups( const QStringList& theObjects ); void excludeGroups( const QStringList& theObjects ); + + void includeBoundaryPolygons( const QStringList& theObjects ); + void includeISBoundaryPolygons( const QStringList& theObjects ); + + void excludeBoundaryPolygons( const QStringList& theObjects ); + void excludeISBoundaryPolygons( const QStringList& theObjects ); + + void onEmptyName(); void onAlreadyExists( QString theName ); void refreshZonesBrowser(); @@ -100,15 +107,9 @@ public slots: void onOrderChanged(); void onRuleChanged(); - void setLandCoverMode( int theMode ); void setStricklerTable( const QString& theStricklerTableName, bool theBlockSignals = true ); - void includeLandCovers( const QStringList& theLandCovers, bool theReset ); - void excludeLandCovers( const QStringList& theLandCovers ); - void refreshLandCoverZonesBrowser(); - void onDataLandCoverChanged(); - void onOrderLandCoverChanged(); - void onLandCoverRuleChanged(); - + void setLandCoverMap( const QString& theLandCoverMapName, bool theBlockSignals = true ); + /** * Process items selection: hide/show bathymetry merge type selector. */ @@ -123,20 +124,6 @@ public slots: void onZonesDropped( const QList& theList, SUIT_DataObject* theTargetParent, int theTargetRow, Qt::DropAction theDropAction ); - /** - * Process items selection: hide/show Strickler type merge type selector. - */ - void onLandCoverZoneSelected( SUIT_DataObject* theObject ); - /** - * Process merge type selection: set the selected Strickler type merge type for the currently selected zone. - */ - void onMergeStricklerTypeSelected( int theIndex ); - /** - * Process land cover zones moving. Create a new region with dropped zones or add to existing one. - */ - void onLandCoverZonesDropped( const QList& theList, - SUIT_DataObject* theTargetParent, int theTargetRow, Qt::DropAction theDropAction ); - signals: void changeMode( int theMode ); @@ -150,24 +137,20 @@ signals: void removeGroups(); void groupsSelected(); + void addBoundaryPolygons(); + void removeBoundaryPolygons(); + void boundarySelected( const QString & theObjName ); void setMergeType( int theMergeType, QString& theBathymetryName ); void createRegion( const QList& theZonesList ); - void moveZones( SUIT_DataObject* theRegion, const QList& theZonesList, bool theLandCover ); + void moveZones( SUIT_DataObject* theRegion, const QList& theZonesList ); void clickedInZonesBrowser( SUIT_DataObject* ); - void changeLandCoverMode( int theMode ); - - void addLandCovers(); - void removeLandCovers(); - void landCoversSelected(); - void orderLandCoverChanged( bool& isConfirmed ); - void ruleLandCoverChanged( bool& isConfirmed ); + void landCoverMapSelected( const QString & theObjName ); - void createLandCoverRegion( const QList& theLandCoverZonesList ); - void StricklerTableSelected( const QString & theObjName ); - void setMergeStricklerType( int theMergeType, QString& theStricklerTypeName ); + + void regenerateColors(); protected: @@ -175,52 +158,47 @@ protected: protected slots: void OnNewRegion(); - void OnNewLandCoverRegion(); private: - QList getGeometryObjects(); - QList getLandCovers(); + QWizardPage* createObjectsPage(); QWizardPage* createGroupsPage(); - QWizardPage* createLandCoversPage(); - QWizardPage* createZonesPage(); - QWizardPage* createLandCoverZonesPage(); + QWizardPage* createBoundaryPolygonsPage(); + QWizardPage* createLandCoverMapPage(); + QWizardPage* createZonesPage(); + QSplitter* mySplitter; - QSplitter* myLandCoverSplitter; - + QGroupBox* myObjectNameGroup; QLineEdit* myObjectName; HYDROGUI_NameValidator* myValidator; QComboBox* myPolylineName; + QComboBox* myLandCoverMapName; QComboBox* myStricklerTableName; QButtonGroup* myModeButtons; - QButtonGroup* myLandCoverModeButtons; QListWidget* myAvailableGeomObjects; HYDROGUI_OrderedListWidget* myGeomObjects; HYDROGUI_PriorityWidget* myPriorityWidget; - HYDROGUI_PriorityWidget* myLandCoverPriorityWidget; QListWidget* myAvailableGroups; QListWidget* myGroups; - QListWidget* myAvailableLandCovers; - HYDROGUI_OrderedListWidget* myLandCovers; + QListWidget* myAvailableBoundaryPolygons; + QListWidget* myBoundaryPolygons; + QListWidget* myISBoundaryPolygons; + HYDROGUI_DataBrowser* myBrowser; Handle(HYDROData_CalculationCase) myEditedObject; QComboBox* myBathymetryChoice; QLabel* myBathymetryLabel; HYDROGUI_Zone* myCurrentZone; - - HYDROGUI_DataBrowser* myLandCoverBrowser; - QComboBox* myStricklerTypeChoice; - QLabel* myStricklerTypeLabel; }; #endif