X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_CalculationDlg.h;h=07307c744ab465a48e758dcfdd7324779bd6e2e9;hb=60c1b803621af637e863bf91a54f59251a28552c;hp=e58dfa73bcec775f1dbe91d8282f47d8ac9a3739;hpb=c7917bada8643db80254fe2a3b3a91d25548b484;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_CalculationDlg.h b/src/HYDROGUI/HYDROGUI_CalculationDlg.h index e58dfa73..07307c74 100644 --- a/src/HYDROGUI/HYDROGUI_CalculationDlg.h +++ b/src/HYDROGUI/HYDROGUI_CalculationDlg.h @@ -1,12 +1,8 @@ -// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE -// -// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// +// Copyright (C) 2014-2015 EDF-R&D // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,11 +16,13 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // + #ifndef HYDROGUI_CALCULATIONDLG_H #define HYDROGUI_CALCULATIONDLG_H #include "HYDROGUI_Wizard.h" #include +#include class HYDROGUI_ObjSelector; class HYDROGUI_DataBrowser; @@ -56,7 +54,7 @@ public: void reset(); int getMode() const; - + void setObjectName( const QString& theName ); QString getObjectName() const; @@ -65,15 +63,27 @@ public: void setAllGeomObjects( const QStringList& theObjects, const QStringList& theObjectsEntries ); QStringList getAllGeomObjects() 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 getSelectedAvailableGeomObjects() 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 setMoveZonesEnabled( const bool theIsEnabled ); + void setAvailableBoundaryPolygons( const QStringList&, const QVector& ); + + void setEditZonesEnabled( const bool theIsEnabled ); + + HYDROData_ListOfRules getRules() const; + void setRules( const HYDROData_ListOfRules& theRules ) const; + + QList getGeometryObjects(bool GeomObjOnly = true); public slots: void setMode( int theMode ); @@ -82,10 +92,24 @@ 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(); void onDataChanged(); + void onOrderChanged(); + void onRuleChanged(); + + void setStricklerTable( const QString& theStricklerTableName, bool theBlockSignals = true ); + void setLandCoverMap( const QString& theLandCoverMapName, bool theBlockSignals = true ); + /** * Process items selection: hide/show bathymetry merge type selector. */ @@ -101,39 +125,59 @@ public slots: SUIT_DataObject* theTargetParent, int theTargetRow, Qt::DropAction theDropAction ); signals: - void changeMode( int theMode ); + void changeMode( int theMode ); void addObjects(); void removeObjects(); void objectsSelected(); + void orderChanged( bool& isConfirmed ); + void ruleChanged( bool& isConfirmed ); void addGroups(); 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 ); void clickedInZonesBrowser( SUIT_DataObject* ); + void landCoverMapSelected( const QString & theObjName ); + + void StricklerTableSelected( const QString & theObjName ); + + void regenerateColors(); + protected: virtual bool acceptCurrent() const; +protected slots: + void OnNewRegion(); + private: + QWizardPage* createObjectsPage(); QWizardPage* createGroupsPage(); - QWizardPage* createZonesPage(); + QWizardPage* createBoundaryPolygonsPage(); + QWizardPage* createLandCoverMapPage(); + QWizardPage* createZonesPage(); + QSplitter* mySplitter; - + QGroupBox* myObjectNameGroup; QLineEdit* myObjectName; HYDROGUI_NameValidator* myValidator; QComboBox* myPolylineName; + QComboBox* myLandCoverMapName; + QComboBox* myStricklerTableName; QButtonGroup* myModeButtons; @@ -145,10 +189,15 @@ private: QListWidget* myAvailableGroups; QListWidget* myGroups; + QListWidget* myAvailableBoundaryPolygons; + QListWidget* myBoundaryPolygons; + QListWidget* myISBoundaryPolygons; + + HYDROGUI_DataBrowser* myBrowser; Handle(HYDROData_CalculationCase) myEditedObject; QComboBox* myBathymetryChoice; - QLabel* myBatimetryLabel; + QLabel* myBathymetryLabel; HYDROGUI_Zone* myCurrentZone; };