return false;
}
-void HYDROData_Entity::SetZLevel( int theLevel )
+void HYDROData_Entity::SetZLevel( const Standard_Integer& theLevel )
{
Handle(TDataStd_Integer) A = TDataStd_Integer::Set( myLab.FindChild( DataTag_ZLevel ), theLevel );
A->SetID(TDataStd_Integer::GetID());
/**
* Set the z-level for object presentation.
*/
- HYDRODATA_EXPORT virtual void SetZLevel( int theLevel );
+ HYDRODATA_EXPORT virtual void SetZLevel( const Standard_Integer& theLevel );
/**
* Remove the z-level of object presentation.
void Init( const HYDROData_LandCoverMap& );
HYDRODATA_EXPORT bool More() const;
HYDRODATA_EXPORT void Next();
-
+
int Index() const;
HYDRODATA_EXPORT TopoDS_Face Face() const;
HYDRODATA_EXPORT QString StricklerType() const;
HYDRODATA_EXPORT bool ImportSHP( const QString& theSHPFileName,
const QList<int>& theIndices = QList<int>() );
-
+
HYDRODATA_EXPORT bool ExportSHP( const QString& theSHPFileName, bool bUseDiscr = false, double theDefl = 0.1) const;
- HYDRODATA_EXPORT DBFStatus ImportDBF( const QString& theDBFFileName,
- const QString& theFieldName,
+ HYDRODATA_EXPORT DBFStatus ImportDBF( const QString& theDBFFileName,
+ const QString& theFieldName,
const QStringList& DBFValues,
const QStringList& StricklerTypes,
const QList<int>& theIndices = QList<int>() );
HYDRODATA_EXPORT void ExportDBF( const QString& theDBFFileName,
- const QString& theFieldName,
+ const QString& theFieldName,
const QStringList& theDBFValues,
const QStringList& theStricklerTypes ) const;
using HYDROData_Entity::Remove;
HYDRODATA_EXPORT bool Remove( const TopoDS_Face& );
HYDRODATA_EXPORT bool Remove( const TopTools_ListOfShape& );
- using HYDROData_Entity::Remove;
HYDRODATA_EXPORT bool Split( const Handle( HYDROData_PolylineXY )& );
HYDRODATA_EXPORT bool Split( const TopoDS_Shape& );
std::vector<int>& theTypes ) const;
HYDRODATA_EXPORT void ClassifyPoints( const std::vector<gp_XY>& thePoints,
- const Handle(HYDROData_StricklerTable)& theTable,
+ const Handle(HYDROData_StricklerTable)& theTable,
std::vector<double>& theCoeffs, double DefValue, bool UseMax ) const;
protected:
static TopoDS_Shape MergeFaces(const TopTools_ListOfShape& theFaces,
bool IsToUnify,
- TopTools_IndexedDataMapOfShapeListOfShape* theShHistory = NULL,
+ TopTools_IndexedDataMapOfShapeListOfShape* theShHistory = NULL,
double theTolerance = 1E-5 );
public:
#include(../../CMake/CommonInstall.cmake)
# resources
-IF (SalomeGUI_VERSION VERSION_LESS "8.0.0")
- QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${SALOME_HYDRO_INSTALL_RES_DATA}")
-ELSE()
- QT_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${SALOME_HYDRO_INSTALL_RES_DATA}")
-ENDIF()
+QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${SALOME_HYDRO_INSTALL_RES_DATA}")
FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
FILE(GLOB GUIXML_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.xml")
#include "HYDROGUI_DataBrowser.h"
#include "HYDROGUI_Module.h"
#include "HYDROGUI_DataObject.h"
-#include "HYDROGUI_Tool.h"
#include <LightApp_Application.h>
#include <LightApp_OBSelector.h>
#include <SUIT_Session.h>
#include <SUIT_FileDlg.h>
#include <HYDROGUI_Module.h>
-#include <HYDROGUI_Tool.h>
#include <SUIT_MessageBox.h>
#include <LightApp_Application.h>
#include <QTableWidget>
*/
void HYDROGUI_ListModel::removeObjectByName( const QString& theObjectName )
{
- beginResetModel();
Object2Visible anItem;
foreach( anItem, myObjects ) {
if ( anItem.first->GetName() == theObjectName ) {
const int HYDROGUI_VisibleRole = Qt::UserRole + 1;
const int HYDROGUI_EntryRole = Qt::UserRole + 2;
-/**
+/**
* \class HYDROGUI_ListModel
* \brief The class representing custom list model for the Z levels
*/
HYDROGUI_ListModel( QObject* theParent = 0 );
virtual ~HYDROGUI_ListModel();
- virtual QVariant data( const QModelIndex &theIndex, int theRole = Qt::DisplayRole ) const;
+ virtual QVariant data( const QModelIndex &theIndex, int theRole = Qt::DisplayRole ) const;
virtual int rowCount( const QModelIndex &theParent = QModelIndex() ) const;
virtual QStringList mimeTypes() const;
virtual bool dropMimeData( const QMimeData* theData, Qt::DropAction theAction,
int theRow, int theColumn, const QModelIndex& theParent );
- virtual Qt::DropActions supportedDragActions() const;
virtual Qt::DropActions supportedDropActions() const;
virtual Qt::DropActions supportedDragActions() const;
//
#include "HYDROGUI_PriorityWidget.h"
+
#include "HYDROGUI_PriorityTableModel.h"
-#include "HYDROGUI_Tool.h"
+
#include "HYDROData_PriorityQueue.h"
#include <SUIT_MessageBox.h>
#include <QStringList>
#include <QTextCodec>
#include <QWidget>
-#include <QHeaderView>
// Definition of this id allows to use 'latin1' (Qt alias for 'ISO-8859-1')
// encoding instead of default 'System'
return pix;
}
-void HYDROGUI_Tool::setResizeMode( QHeaderView* theHeader, int theSection, int theMode )
-{
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
- theHeader->setResizeMode( theSection, (QHeaderView::ResizeMode)theMode );
-#else
- theHeader->setSectionResizeMode( theSection, (QHeaderView::ResizeMode)theMode );
-#endif
-}
-
-void HYDROGUI_Tool::setResizeMode( QHeaderView* theHeader, int theMode )
-{
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
- theHeader->setResizeMode( (QHeaderView::ResizeMode)theMode );
-#else
- theHeader->setSectionResizeMode( (QHeaderView::ResizeMode)theMode );
-#endif
-}
class QDockWidget;
class QImage;
class QWidget;
-class QHeaderView;
namespace HYDROGUI_Tool
{
/**
* Set the z-level for object presentation.
*/
- virtual void SetZLevel( int theLevel );
+ virtual void SetZLevel( const int& theLevel ) [void ( const Standard_Integer& )];
/**
* Remove the z-level of object presentation.