HYDROGUI_PolylineOp* aPolylineOp = dynamic_cast<HYDROGUI_PolylineOp*>( anOp );
if ( aPolylineOp && aPolylineOp->deleteEnabled() )
theMenu->addAction( action( DeleteId ) );
+
+ theMenu->addSeparator();
+ theMenu->addAction( action( SetZLevelId ) );
+ theMenu->addSeparator();
}
if( anIsObjectBrowser || anIsGraphicsView || anIsOCCView || anIsVTKView )
theMenu->addAction( action( HideAllId ) );
theMenu->addSeparator();
}
- if ( anIsOCCView || anIsVTKView ) {
+
+ if ( anIsOCCView || anIsVTKView )
+ {
theMenu->addSeparator();
theMenu->addAction( action( CopyViewerPositionId ) );
}
#include "HYDROGUI_SetColorOp.h"
#include "HYDROGUI_BathymetryBoundsOp.h"
#include "HYDROGUI_Tool.h"
+#include "HYDROGUI_ZLevelsOp.h"
#include <HYDROData_Document.h>
#include <HYDROData_Obstacle.h>
SLOT( onDelete() ) );
createAction( SetColorId, "COLOR" );
+ createAction( SetZLevelId, "ZLEVEL" );
createAction( ShowId, "SHOW" );
createAction( ShowOnlyId, "SHOW_ONLY" );
case SetColorId:
anOp = new HYDROGUI_SetColorOp( aModule );
break;
+ case SetZLevelId:
+ anOp = new HYDROGUI_ZLevelsOp( aModule );
+ break;
case ShowId:
case ShowOnlyId:
case ShowAllId:
HideId,
HideAllId,
- SetColorId
+ SetColorId,
+ SetZLevelId,
+
};
#endif
--- /dev/null
+// 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
+//
+// 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.
+//
+// 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_ZLevelsOp.h"
+
+#include "HYDROGUI_ZLevelsDlg.h"
+#include "HYDROGUI_DataModel.h"
+#include "HYDROGUI_Module.h"
+#include "HYDROGUI_Tool.h"
+#include "HYDROGUI_UpdateFlags.h"
+
+#include <HYDROData_Entity.h>
+
+#include <LightApp_Application.h>
+#include <LightApp_UpdateFlags.h>
+
+#include <SUIT_Desktop.h>
+
+HYDROGUI_ZLevelsOp::HYDROGUI_ZLevelsOp( HYDROGUI_Module* theModule )
+: HYDROGUI_Operation( theModule ),
+ myZLevelsDlg( NULL )
+{
+ setName( tr( "SET_Z_LEVELS" ) );
+}
+
+HYDROGUI_ZLevelsOp::~HYDROGUI_ZLevelsOp()
+{
+}
+
+void HYDROGUI_ZLevelsOp::startOperation()
+{
+ HYDROGUI_Operation::startOperation();
+
+ // TODO
+ abort();
+}
+
+bool HYDROGUI_ZLevelsOp::processApply( int& theUpdateFlags,
+ QString& theErrorMsg )
+{
+ // TODO
+ return false;
+}
--- /dev/null
+// 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
+//
+// 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.
+//
+// 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_ZLEVELSOP_H
+#define HYDROGUI_ZLEVELSOP_H
+
+#include "HYDROGUI_Operation.h"
+
+#include <HYDROData_Entity.h>
+
+class HYDROGUI_ZLevelsDlg;
+
+class HYDROGUI_ZLevelsOp : public HYDROGUI_Operation
+{
+ Q_OBJECT
+
+public:
+
+ HYDROGUI_ZLevelsOp( HYDROGUI_Module* theModule );
+ virtual ~HYDROGUI_ZLevelsOp();
+
+protected:
+
+ virtual void startOperation();
+
+ virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg );
+
+private:
+ HYDROGUI_ZLevelsDlg* myZLevelsDlg;
+
+};
+
+#endif
\ No newline at end of file
<source>DSK_COLOR</source>
<translation>Set object color</translation>
</message>
+ <message>
+ <source>DSK_ZLEVEL</source>
+ <translation>Change layer order</translation>
+ </message>
<message>
<source>MEN_CREATE_CALCULATION</source>
<translation>Create calculation case</translation>
<source>MEN_COLOR</source>
<translation>Color</translation>
</message>
+ <message>
+ <source>MEN_ZLEVEL</source>
+ <translation>Change layer order</translation>
+ </message>
<message>
<source>STB_CREATE_CALCULATION</source>
<translation>Create calculation case</translation>
<source>STB_COLOR</source>
<translation>Set object color</translation>
</message>
+ <message>
+ <source>STB_ZLEVEL</source>
+ <translation>Change layer order</translation>
+ </message>
</context>
<context>