Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refs #562: basic logic for Strickler table operation and dialog.
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_Module.cxx
diff --git
a/src/HYDROGUI/HYDROGUI_Module.cxx
b/src/HYDROGUI/HYDROGUI_Module.cxx
index 95d4a5906ae7c107171efe75d5a97257bf039e5b..2fadc91100629997bd96d46f12c3e9e606e4539f 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_Module.cxx
+++ b/
src/HYDROGUI/HYDROGUI_Module.cxx
@@
-336,6
+336,7
@@
void HYDROGUI_Module::contextMenuPopup( const QString& theClient,
bool anIsRegion = false;
bool anIsZone = false;
bool anIsObstacle = false;
bool anIsRegion = false;
bool anIsZone = false;
bool anIsObstacle = false;
+ bool anIsStricklerTable = false;
bool anIsStream = false;
bool anIsChannel = false;
bool anIsDigue = false;
bool anIsStream = false;
bool anIsChannel = false;
bool anIsDigue = false;
@@
-454,6
+455,8
@@
void HYDROGUI_Module::contextMenuPopup( const QString& theClient,
anIsBathymetry = true;
else if( anObjectKind == KIND_OBSTACLE )
anIsObstacle = true;
anIsBathymetry = true;
else if( anObjectKind == KIND_OBSTACLE )
anIsObstacle = true;
+ else if( anObjectKind == KIND_STRICKLER_TABLE )
+ anIsStricklerTable = true;
else if( anObjectKind == KIND_STREAM )
{
anIsStream = true;
else if( anObjectKind == KIND_STREAM )
{
anIsStream = true;
@@
-507,6
+510,9
@@
void HYDROGUI_Module::contextMenuPopup( const QString& theClient,
theMenu->addAction( action( CreateBoxId ) );
theMenu->addAction( action( CreateCylinderId ) );
break;
theMenu->addAction( action( CreateBoxId ) );
theMenu->addAction( action( CreateCylinderId ) );
break;
+ case KIND_STRICKLER_TABLE:
+ theMenu->addAction( action( ImportStricklerTableFromFileId ) );
+ break;
case KIND_CALCULATION:
theMenu->addAction( action( CreateCalculationId ) );
break;
case KIND_CALCULATION:
theMenu->addAction( action( CreateCalculationId ) );
break;
@@
-633,6
+639,12
@@
void HYDROGUI_Module::contextMenuPopup( const QString& theClient,
theMenu->addAction( action( TranslateObstacleId ) );
theMenu->addSeparator();
}
theMenu->addAction( action( TranslateObstacleId ) );
theMenu->addSeparator();
}
+ else if( anIsStricklerTable )
+ {
+ theMenu->addAction( action( EditStricklerTableId ) );
+ theMenu->addAction( action( ExportStricklerTableFromFileId ) );
+ theMenu->addSeparator();
+ }
else if( anIsVisualState && anIsObjectBrowser )
{
theMenu->addAction( action( SaveVisualStateId ) );
else if( anIsVisualState && anIsObjectBrowser )
{
theMenu->addAction( action( SaveVisualStateId ) );