return;
HYDROData_SequenceOfObjects aRegions = GetRegions( false );
- aRegions.Append( GetRegions( true ) );
+ HYDROData_SequenceOfObjects aRegionsLC = GetRegions( true );
+ aRegions.Append( aRegionsLC );
HYDROData_SequenceOfObjects::Iterator anIter( aRegions );
for ( ; anIter.More(); anIter.Next() )
}
-bool HYDROData_SinusX::Export(const QString& theFilePath, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities)
+bool HYDROData_SinusX::Export(const QString& theFilePath, const NCollection_Sequence<Handle_HYDROData_Entity>& theEntities)
{
if ( theFilePath.isEmpty() )
{
}
-void HYDROData_SinusX::HydroToSX(QFile& theFile, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities)
+void HYDROData_SinusX::HydroToSX(QFile& theFile, const NCollection_Sequence<Handle_HYDROData_Entity>& theEntities)
{
QTextStream aTextStream(&theFile);
aTextStream << "C Generated by HYDRO Module\n";
HYDROData_SinusX( );
virtual ~HYDROData_SinusX();
bool Import (const QString& theFilePath, Handle(HYDROData_Document) theDocument, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
- bool Export(const QString& theFilePath, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
+ bool Export(const QString& theFilePath, const NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
private:
void SXToHydro(Handle(HYDROData_Document) theDocument, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
bool Parse( QFile& theFile );
void CollectExistingNames(Handle_HYDROData_Document theDocument);
QString GetName(const QString& theName);
- void HydroToSX(QFile& theFile, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
+ void HydroToSX( QFile& theFile, const NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
private:
#include "HYDROGUI_Module.h"
#include <CAM_Application.h>
#include <SUIT_Desktop.h>
-#include <QListWidget.h>
+#include <QListWidget>
#include <HYDROGUI_ObjListBox.h>
#ifdef WNT
tmpdir = "C:\\";
#else
- tmpdir = "/tmp";
+ tmpdir = strdup( "/tmp" );
#endif
}
aRes = tmpdir;