From 5d638eed45805178afb99739d84ae925b2cf08e9 Mon Sep 17 00:00:00 2001 From: abd Date: Fri, 4 Apr 2008 11:25:19 +0000 Subject: [PATCH] Firts executable version --- src/SVTK/SALOME_Actor.h | 4 ++-- src/SVTK/SVTK_Extension.cxx | 1 + src/SalomeApp/SalomeApp_ExitDlg.h | 3 ++- src/Session/Session_Session_i.cxx | 14 ++++++++++++++ src/Session/Session_Session_i.hxx | 2 +- src/VTKViewer/VTKViewer_ViewWindow.cxx | 4 ++-- 6 files changed, 22 insertions(+), 6 deletions(-) diff --git a/src/SVTK/SALOME_Actor.h b/src/SVTK/SALOME_Actor.h index a44acc9fd..97a828530 100644 --- a/src/SVTK/SALOME_Actor.h +++ b/src/SVTK/SALOME_Actor.h @@ -54,8 +54,8 @@ class SVTK_Actor; class SVTK_RectPicker; class SVTK_InteractorStyle; -extern int SALOME_POINT_SIZE; -extern int SALOME_LINE_WIDTH; +SVTK_EXPORT extern int SALOME_POINT_SIZE; +SVTK_EXPORT extern int SALOME_LINE_WIDTH; #ifdef WIN32 #pragma warning ( disable:4251 ) diff --git a/src/SVTK/SVTK_Extension.cxx b/src/SVTK/SVTK_Extension.cxx index a26dac111..363fe1d5f 100755 --- a/src/SVTK/SVTK_Extension.cxx +++ b/src/SVTK/SVTK_Extension.cxx @@ -28,6 +28,7 @@ #include "SVTK_Extension.h" #ifdef WIN32 +#undef NOGDI #include #else #include diff --git a/src/SalomeApp/SalomeApp_ExitDlg.h b/src/SalomeApp/SalomeApp_ExitDlg.h index e046291e1..06a25195b 100644 --- a/src/SalomeApp/SalomeApp_ExitDlg.h +++ b/src/SalomeApp/SalomeApp_ExitDlg.h @@ -23,6 +23,7 @@ #ifndef SALOMEAPP_EXITDLG_H #define SALOMEAPP_EXITDLG_H +#include "SalomeApp.h" #include class QCheckBox; @@ -30,7 +31,7 @@ class QCheckBox; /*!\class SalomeApp_ExitDlg * \brief Describes a dialog box shown on question about quit application */ -class SalomeApp_ExitDlg: public QDialog +class SALOMEAPP_EXPORT SalomeApp_ExitDlg: public QDialog { Q_OBJECT diff --git a/src/Session/Session_Session_i.cxx b/src/Session/Session_Session_i.cxx index 92da744bc..def398b6c 100755 --- a/src/Session/Session_Session_i.cxx +++ b/src/Session/Session_Session_i.cxx @@ -44,6 +44,11 @@ #include #include +#ifdef WNT +# include +#endif + + using namespace std; /*! @@ -201,6 +206,15 @@ CORBA::Long SALOME_Session_i::GetActiveStudyId() return aStudyId; } +CORBA::Long SALOME_Session_i::getPID() { + return (CORBA::Long) +#ifndef WNT + getpid(); +#else + _getpid(); +#endif +} + bool SALOME_Session_i::restoreVisualState(CORBA::Long theSavePoint) { class TEvent: public SALOME_Event { diff --git a/src/Session/Session_Session_i.hxx b/src/Session/Session_Session_i.hxx index 58f5fdb31..64f031cfb 100755 --- a/src/Session/Session_Session_i.hxx +++ b/src/Session/Session_Session_i.hxx @@ -68,7 +68,7 @@ public: CORBA::Long GetActiveStudyId(); void ping(){}; - CORBA::Long getPID() { return (CORBA::Long)getpid(); }; + CORBA::Long getPID(); //! Restors a visual state of the study at theSavePoint bool restoreVisualState(CORBA::Long theSavePoint); diff --git a/src/VTKViewer/VTKViewer_ViewWindow.cxx b/src/VTKViewer/VTKViewer_ViewWindow.cxx index 0e1ab38bb..f28c446b1 100755 --- a/src/VTKViewer/VTKViewer_ViewWindow.cxx +++ b/src/VTKViewer/VTKViewer_ViewWindow.cxx @@ -455,8 +455,8 @@ void VTKViewer_ViewWindow::onAdjustTrihedron(){ (bnd[5]-bnd[4])*(bnd[5]-bnd[4])); }else{ aLength = bnd[1]-bnd[0]; - aLength = max((bnd[3]-bnd[2]),aLength); - aLength = max((bnd[5]-bnd[4]),aLength); + aLength = QMAX((bnd[3]-bnd[2]),aLength); + aLength = QMAX((bnd[5]-bnd[4]),aLength); } static vtkFloatingPointType aSizeInPercents = 105; -- 2.39.2