HYDROGUI_Actor.h
HYDROGUI_BathymetryBoundsOp.h
HYDROGUI_BathymetrySelectionOp.h
+ HYDROGUI_BathymetryOp.h
HYDROGUI_TranslateObstacleDlg.h
HYDROGUI_TranslateObstacleOp.h
HYDROGUI_ListModel.h
HYDROGUI_Actor.cxx
HYDROGUI_BathymetryBoundsOp.cxx
HYDROGUI_BathymetrySelectionOp.cxx
+ HYDROGUI_BathymetryOp.cxx
HYDROGUI_TranslateObstacleDlg.cxx
HYDROGUI_TranslateObstacleOp.cxx
HYDROGUI_ListModel.cxx
--- /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
+//See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+#include <HYDROGUI_BathymetryOp.h>
+
+HYDROGUI_BathymetryOp::HYDROGUI_BathymetryOp( HYDROGUI_Module* theModule, int theMode )
+: HYDROGUI_Operation( theModule ), myMode( theMode )
+{
+}
+
+HYDROGUI_BathymetryOp::~HYDROGUI_BathymetryOp()
+{
+}
+
+void HYDROGUI_BathymetryOp::startOperation()
+{
+ //TODO
+}
+
+void HYDROGUI_BathymetryOp::abortOperation()
+{
+ //TODO
+}
--- /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_BATHYMETRY_OP_H
+#define HYDROGUI_BATHYMETRY_OP_H
+
+#include <HYDROGUI_Operation.h>
+
+class HYDROGUI_BathymetryOp : public HYDROGUI_Operation
+{
+ Q_OBJECT
+
+public:
+ HYDROGUI_BathymetryOp( HYDROGUI_Module* theModule, int theMode );
+ virtual ~HYDROGUI_BathymetryOp();
+
+protected:
+ virtual void startOperation();
+ virtual void abortOperation();
+
+private:
+ int myMode;
+};
+
+#endif
activateSelection( false );
}
-void HYDROGUI_BathymetrySelectionOp::commitOperation()
-{
- activateSelection( false );
-}
-
-void HYDROGUI_BathymetrySelectionOp::stopOperation()
-{
- activateSelection( false );
-}
-
void HYDROGUI_BathymetrySelectionOp::activateSelection( bool isActive )
{
if( myIsActive==isActive )
protected:
virtual void startOperation();
virtual void abortOperation();
- virtual void commitOperation();
- virtual void stopOperation();
void activateSelection( bool );
void onOperation();
void onDelete();
void onBathymetrySelection();
+ void onBathymetryText();
bool onUndo( int theNumActions );
#include "HYDROGUI_SetTransparencyOp.h"
#include "HYDROGUI_ImportLandCoverMapOp.h"
#include "HYDROGUI_BathymetrySelectionOp.h"
+#include "HYDROGUI_BathymetryOp.h"
#include <HYDROData_Document.h>
#include <HYDROData_Obstacle.h>
createAction( BathymetrySelectionId, "BATHYMETRY_SELECTION", "BATHYMETRY_SELECTION_ICO",
0, true, SLOT( onBathymetrySelection() ) );
+ createAction( BathymetryTextId, "BATHYMETRY_TEXT", "BATHYMETRY_TEXT_ICO",
+ 0, true, SLOT( onBathymetryText() ) );
+
+ createAction( BathymetryRescaleSelectionId, "BATHYMETRY_RESCALE_SELECTION", "BATHYMETRY_RESCALE_SELECTION_ICO" );
+ createAction( BathymetryRescaleVisibleId, "BATHYMETRY_RESCALE_VISIBLE", "BATHYMETRY_RESCALE_VISIBLE_ICO" );
+ createAction( BathymetryRescaleUserId, "BATHYMETRY_RESCALE_USER", "BATHYMETRY_RESCALE_USER_ICO" );
+ createAction( BathymetryRescaleDefaultId, "BATHYMETRY_RESCALE_DEFAULT", "BATHYMETRY_RESCALE_DEFAULT_ICO" );
+
createAction( CreateImmersibleZoneId, "CREATE_IMMERSIBLE_ZONE", "CREATE_IMMERSIBLE_ZONE_ICO" );
createAction( EditImmersibleZoneId, "EDIT_IMMERSIBLE_ZONE", "EDIT_IMMERSIBLE_ZONE_ICO" );
createTool( separator(), aToolBar );
createTool( BathymetrySelectionId, aToolBar );
+ createTool( BathymetryTextId, aToolBar );
+ createTool( BathymetryRescaleSelectionId, aToolBar );
+ createTool( BathymetryRescaleVisibleId, aToolBar );
+ createTool( BathymetryRescaleUserId, aToolBar );
+ createTool( BathymetryRescaleDefaultId, aToolBar );
}
void HYDROGUI_Module::createUndoRedoActions()
case BathymetrySelectionId:
anOp = new HYDROGUI_BathymetrySelectionOp( aModule );
break;
+ case BathymetryTextId:
+ case BathymetryRescaleSelectionId:
+ case BathymetryRescaleVisibleId:
+ case BathymetryRescaleUserId:
+ case BathymetryRescaleDefaultId:
+ anOp = new HYDROGUI_BathymetryOp( aModule, theId );
+ break;
+
case CreateImmersibleZoneId:
case EditImmersibleZoneId:
anOp = new HYDROGUI_ImmersibleZoneOp( aModule, theId == EditImmersibleZoneId );
else
operation( BathymetrySelectionId )->abort();
}
+
+void HYDROGUI_Module::onBathymetryText()
+{
+ //TODO
+}
LandCoverScalarMapModeOffId,
BathymetrySelectionId,
+ BathymetryTextId,
+ BathymetryRescaleSelectionId,
+ BathymetryRescaleVisibleId,
+ BathymetryRescaleUserId,
+ BathymetryRescaleDefaultId,
};
#endif
<source>ICON_CURSOR_18</source>
<translation>icon_cursor_18.png</translation>
</message>
-
+ <message>
+ <source>BATHYMETRY_SELECTION_ICO</source>
+ <translation>icon_bathymetry_selection.png</translation>
+ </message>
</context>
</TS>
<source>DSK_BATHYMETRY_BOUNDS</source>
<translation>Create boundary polyline</translation>
</message>
+ <message>
+ <source>DSK_BATHYMETRY_SELECTION</source>
+ <translation>Selection on bathymetry</translation>
+ </message>
<message>
<source>DSK_IMPORT_IMAGE</source>
<translation>Import image</translation>
<source>MEN_BATHYMETRY_BOUNDS</source>
<translation>Create boundary polyline</translation>
</message>
+ <message>
+ <source>MEN_BATHYMETRY_SELECTION</source>
+ <translation>Selection on bathymetry</translation>
+ </message>
<message>
<source>MEN_IMPORT_IMAGE</source>
<translation>Import image</translation>
<source>STB_BATHYMETRY_BOUNDS</source>
<translation>Create boundary polyline</translation>
</message>
+ <message>
+ <source>STB_BATHYMETRY_SELECTION</source>
+ <translation>Selection on bathymetry</translation>
+ </message>
<message>
<source>STB_IMPORT_IMAGE</source>
<translation>Import image</translation>