HYDROGUI_StricklerTableOp.h
HYDROGUI_StricklerTypeComboBox.h
HYDROGUI_SubmersibleOp.h
- HYDROGUI_UnSubmersibleOp.h
HYDROGUI_Tool.h
HYDROGUI_Tool2.h
HYDROGUI_TwoImagesDlg.h
HYDROGUI_PolylineStyleOp.h
HYDROGUI_PolylineStyleDlg.h
HYDROGUI_ZoneTool.h
- HYDROGUI_RegenerateRegionColorsOp.h
)
QT_WRAP_MOC(PROJECT_HEADERS_MOC ${PROJECT_HEADERS})
HYDROGUI_SplitPolylinesDlg.cxx
HYDROGUI_SplitPolylinesOp.cxx
HYDROGUI_SubmersibleOp.cxx
- HYDROGUI_UnSubmersibleOp.cxx
HYDROGUI_Tool.cxx
HYDROGUI_Tool2.cxx
HYDROGUI_TwoImagesDlg.cxx
HYDROGUI_PolylineStyleOp.cxx
HYDROGUI_PolylineStyleDlg.cxx
HYDROGUI_ZoneTool.cxx
- HYDROGUI_RegenerateRegionColorsOp.cxx
)
add_definitions(
}
theMenu->addSeparator();
}
- else
- {
- Handle(HYDROData_CalculationCase) aCalcCase;
- QString outStr;
- HYDROGUI_Tool::IsSelectedPartOfCalcCase(this, aCalcCase, outStr);
- if (outStr == HYDROGUI_DataModel::partitionName( KIND_REGION ))
- theMenu->addAction( action( RegenerateRegionColorsId ) );
- }
}
if( anIsSelectedDataObjects )
#include "HYDROGUI_ProfileInterpolateOp.h"
#include "HYDROGUI_RecognizeContoursOp.h"
#include "HYDROGUI_SubmersibleOp.h"
-#include "HYDROGUI_UnSubmersibleOp.h"
#include "HYDROGUI_StricklerTableOp.h"
#include "HYDROGUI_DuplicateOp.h"
#include "HYDROGUI_LandCoverMapOp.h"
#include "HYDROGUI_BathymetrySelectionOp.h"
#include "HYDROGUI_BathymetryOp.h"
#include "HYDROGUI_PolylineStyleOp.h"
-#include "HYDROGUI_RegenerateRegionColorsOp.h"
#include <HYDROData_Document.h>
#include <HYDROData_Obstacle.h>
createAction( LandCoverScalarMapModeOffId, "LC_SCALARMAP_COLORING_OFF" );
createAction( ShowHideArrows, "SHOW_HIDE_ARROWS" );
- createAction( RegenerateRegionColorsId, "REGENERATE_REGION_COLORS" );
-
}
void HYDROGUI_Module::createMenus()
anOp = new HYDROGUI_ShowHideOp( aModule, theId );
break;
case SubmersibleId:
- anOp = new HYDROGUI_SubmersibleOp( aModule );
+ anOp = new HYDROGUI_SubmersibleOp( aModule, true );
break;
case UnSubmersibleId:
- anOp = new HYDROGUI_UnSubmersibleOp( aModule );
+ anOp = new HYDROGUI_SubmersibleOp( aModule, false );
break;
case PolylineExtractionId:
anOp = new HYDROGUI_PolylineExtractionOp( aModule );
case LandCoverScalarMapModeOffId:
anOp = new HYDROGUI_LandCoverColoringOp( aModule, theId );
break;
- case RegenerateRegionColorsId:
- anOp = new HYDROGUI_RegenerateRegionColorsOp( aModule );
}
if( !anOp )
BathymetryRescaleDefaultId,
ShowHideArrows,
- RegenerateRegionColorsId
};
#endif
#include <HYDROGUI_Tool2.h>
#include <HYDROGUI_Module.h>
-HYDROGUI_SubmersibleOp::HYDROGUI_SubmersibleOp( HYDROGUI_Module* theModule )
- : HYDROGUI_Operation( theModule )
+HYDROGUI_SubmersibleOp::HYDROGUI_SubmersibleOp( HYDROGUI_Module* theModule, bool isSubmersible )
+ : HYDROGUI_Operation( theModule ), myIsSubmersible( isSubmersible )
{
}
theUpdateFlags = 0;
if( isOK )
{
- bool IsSubmersible = myObject->IsSubmersible();
- if (!IsSubmersible)
- myObject->SetIsSubmersible( true );
+ myObject->SetIsSubmersible( myIsSubmersible );
theUpdateFlags = 0;
}
return isOK;
Q_OBJECT
public:
- HYDROGUI_SubmersibleOp( HYDROGUI_Module* theModule );
+ HYDROGUI_SubmersibleOp( HYDROGUI_Module* theModule, bool isSubmersible );
virtual ~HYDROGUI_SubmersibleOp();
protected:
private:
Handle(HYDROData_Object) myObject;
+ bool myIsSubmersible;
};
#endif
+++ /dev/null
-// 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, 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
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-//
-
-#include <HYDROGUI_UnSubmersibleOp.h>
-#include <HYDROGUI_Tool2.h>
-#include <HYDROGUI_Module.h>
-
-HYDROGUI_UnSubmersibleOp::HYDROGUI_UnSubmersibleOp( HYDROGUI_Module* theModule )
- : HYDROGUI_Operation( theModule )
-{
-}
-
-HYDROGUI_UnSubmersibleOp::~HYDROGUI_UnSubmersibleOp()
-{
-}
-
-void HYDROGUI_UnSubmersibleOp::startOperation()
-{
- HYDROGUI_Operation::startOperation();
- myObject = Handle(HYDROData_Object)::DownCast( HYDROGUI_Tool::GetSelectedObject( module() ) );
- if( myObject.IsNull() )
- onCancel();
- else
- onApply();
-}
-
-bool HYDROGUI_UnSubmersibleOp::processApply( int& theUpdateFlags, QString& theErrorMsg, QStringList& theBrowseObjectsEntries )
-{
- theUpdateFlags = 0;
- if( !myObject.IsNull() )
- {
- bool IsSubmersible = myObject->IsSubmersible();
- if (IsSubmersible)
- myObject->SetIsSubmersible( false );
- return true;
- }
- return false;
-}
-
+++ /dev/null
-// 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, 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
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-//
-
-#ifndef HYDROGUI_UNSubmersibleOP_H
-#define HYDROGUI_UNSubmersibleOP_H
-
-#include <HYDROGUI_Operation.h>
-#include <HYDROData_Object.h>
-
-class HYDROGUI_UnSubmersibleOp : public HYDROGUI_Operation
-{
- Q_OBJECT
-
-public:
- HYDROGUI_UnSubmersibleOp( HYDROGUI_Module* theModule );
- virtual ~HYDROGUI_UnSubmersibleOp();
-
-protected:
- virtual void startOperation();
- virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg,
- QStringList& theBrowseObjectsEntries );
-
-private:
- Handle(HYDROData_Object) myObject;
-};
-
-#endif