]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
ENV: Windows porting
authorenv <env@opencascade.com>
Wed, 3 Aug 2005 08:21:57 +0000 (08:21 +0000)
committerenv <env@opencascade.com>
Wed, 3 Aug 2005 08:21:57 +0000 (08:21 +0000)
26 files changed:
src/Plot2d/Plot2d_SetupCurveDlg.cxx
src/Qtx/QtxResourceEdit.h
src/SPlot2d/SPlot2d_Prs.cxx
src/SPlot2d/SPlot2d_SetupPlot2dDlg.cxx
src/STD/STD_CloseDlg.cxx
src/STD/STD_LoadStudiesDlg.cxx
src/STD/STD_LoadStudiesDlg.h
src/SUPERVGraph/SUPERVGraph.cxx
src/SUPERVGraph/SUPERVGraph_ViewFrame.cxx
src/SVTK/SVTK_CubeAxesActor2D.cxx
src/SVTK/SVTK_CubeAxesActor2D.h
src/SVTK/SVTK_RenderWindow.cxx
src/SalomeApp/SalomeApp_DataObject.cxx
src/SalomeApp/SalomeApp_DataOwner.cxx
src/SalomeApp/SalomeApp_ImportOperation.cxx
src/SalomeApp/SalomeApp_ModuleDlg.cxx
src/SalomeApp/SalomeApp_NameDlg.cxx
src/SalomeApp/SalomeApp_Selection.cxx
src/Session/InquireServersQThread.cxx
src/Session/InquireServersQThread.h
src/Session/SALOME_Session_Server.cxx
src/Session/SalomeApp_Engine_i.cxx
src/Session/SalomeApp_Engine_i.hxx
src/Session/Session_ServerLauncher.hxx
src/Session/Session_ServerThread.cxx
src/VTKViewer/VTKViewer_Utilities.h

index c0f0d5a0ce10262dcbc7fc0fef685cf8ab46229e..1f6c3729d7fa402fd2a729b96804de37fd0c7c01 100644 (file)
 #include <qtoolbutton.h>
 #include <qgroupbox.h>
 #include <qcolordialog.h>
+
+#ifndef WNT
 using namespace std;
+#endif
 
 #define MARGIN_SIZE      11
 #define SPACING_SIZE     6
index 3aaca30d65a27bad57dbec77279670f08a648e44..6855f22b6aa585377352fa215ca0a742f98c4039 100644 (file)
@@ -91,7 +91,7 @@ private:
   Descr: Class for incapsulation of one preference item
 */
 
-class QtxResourceEdit::Item
+class QTX_EXPORT QtxResourceEdit::Item
 {
 public:
   Item( QtxResourceEdit*, Item* = 0 );
index 3f9fdc6b6a0955ac5d1e84fa44a3f93089e75d93..980877d2dc1d44b5622dd3b93660f032bdce37e8 100644 (file)
@@ -3,7 +3,9 @@
 //  Module : SUIT
 
 #include "SPlot2d_Prs.h"
+#ifndef WNT
 using namespace std;
+#endif
 
 //==========================================================
 /*!
index 0e1cb4b64c0d3f9ace43f81c832231b90229d738..d53a8f9f9be946cd4491242d5326aa3641178dce 100644 (file)
@@ -439,7 +439,11 @@ void SPlot2d_SetupPlot2dDlg::enableControls()
       break;
     }
   }
+#ifndef WNT
   for ( int i = 0; i < myItems.count(); i++ ) {
+#else
+  for ( i = 0; i < myItems.count(); i++ ) {
+#endif
     if ( myItems.at( i )->isVerticalOn() )
       bVSet = true;
     myItems.at( i )->enableWidgets( bHSet && myItems.at( i )->isVerticalOn() );
index ab78c0795ad1f3c2085947aefd626b1e979435fd..a894f54b3a78d60f4d691b7a98691cf818761bfd 100644 (file)
@@ -6,7 +6,9 @@
 #include <qlabel.h> 
 #include <qmessagebox.h>
 
+#ifndef WNT
 using namespace std;
+#endif
 
 //================================================================================
 /*!
index 96c8882f8fae77ca8605d31eab41121b3089df35..f34716a591c31b35b7b54cf2b6da7e198185a03a 100644 (file)
@@ -4,7 +4,10 @@
 #include <qlayout.h>
 #include <qlistbox.h>
 #include <qpushbutton.h>
+
+#ifndef WNT
 using namespace std;
+#endif
 
 #define SPACING_SIZE             6
 #define MARGIN_SIZE             11
index c05ea22268521289c0270583035853e91c0da520..52786808f785ddbf8aaa620548f2305ed9649848 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <qvariant.h>
 #include <qdialog.h>
+#include <STD.h>
 class QVBoxLayout; 
 class QHBoxLayout; 
 class QGridLayout; 
@@ -15,7 +16,7 @@ class QPushButton;
  * \brief Describes a dialog box that gives a list of opened studies.
  * 
  */
-class STD_LoadStudiesDlg : public QDialog
+class STD_EXPORT STD_LoadStudiesDlg : public QDialog
 { 
    Q_OBJECT
 
index 35105cfe8bee6d4097717efa54c6f46f0b3615f9..2b8f3d87f102f53878ae32d6141ced237589e18e 100755 (executable)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SUPERVGraph.h"
 #include "SUPERVGraph_ViewFrame.h"
 
+using namespace std;
+
 SUIT_ViewWindow* SUPERVGraph::createView(SUIT_Desktop* parent)
 {
   return new SUPERVGraph_ViewFrame( parent/*, "vtkView"*/ ); 
index b468104832d3fb91c0cbe56203ccd3a8da87ac77..b98788db7be3333b7143fe78437ff080237390c6 100755 (executable)
@@ -26,7 +26,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SUPERVGraph_ViewFrame.h"
 
 #include "utilities.h"
@@ -35,6 +34,8 @@ using namespace std;
 #include <qlayout.h>
 #include <qcolordialog.h>
 
+using namespace std;
+
 
 SUPERVGraph_View::SUPERVGraph_View( QWidget* theParent ): QWidget( theParent )
 {
index 55eb8df7da36f89132a99c04d444102b9ec9592f..3fdcf72f38f5c111b99a3ea52be5ca1d8df093ce 100644 (file)
@@ -204,7 +204,11 @@ static void ChangeValues(float* aArray1,float* aArray2,float *aRange1,float* aRa
     for (int i=0; i<4; i++){
       tmp = aArray1[i]; aArray1[i] = aArray2[i]; aArray2[i] = tmp;
     }
+#ifndef WNT
     for(int i=0;i<2; i++){
+#else
+    for(i=0;i<2; i++){
+#endif
       tmp = aRange1[i]; aRange1[i] = aRange2[i]; aRange2[i] = tmp;
     }
   }
@@ -440,19 +444,31 @@ int SVTK_CubeAxesActor2D::RenderOpaqueGeometry(vtkViewport *viewport)
 
   // XCoords coordinates for X grid
   vtkFloatArray *XCoords = vtkFloatArray::New();
+#ifndef WNT
   for(int i=0;i<numOfLabelsX;i++){
+#else
+  for(i=0;i<numOfLabelsX;i++){
+#endif
     float val = bounds[0]+i*(bounds[1]-bounds[0])/(numOfLabelsX-1);
     XCoords->InsertNextValue(val);
   }
   // YCoords coordinates for Y grid
   vtkFloatArray *YCoords = vtkFloatArray::New();
+#ifndef WNT
   for(int i=0;i<numOfLabelsX;i++){
+#else
+  for(i=0;i<numOfLabelsX;i++){
+#endif
     float val = bounds[2]+i*(bounds[3]-bounds[2])/(numOfLabelsY-1);
     YCoords->InsertNextValue(val);
   }
   // ZCoords coordinates for Z grid
   vtkFloatArray *ZCoords = vtkFloatArray::New();
+#ifndef WNT
   for(int i=0;i<numOfLabelsZ;i++){
+#else
+  for(i=0;i<numOfLabelsZ;i++){
+#endif
     float val = bounds[4]+i*(bounds[5]-bounds[4])/(numOfLabelsZ-1);
     ZCoords->InsertNextValue(val);
   }
@@ -512,7 +528,11 @@ int SVTK_CubeAxesActor2D::RenderOpaqueGeometry(vtkViewport *viewport)
   p[5][1] = YCoords->GetValue(numOfLabelsY-1);
   p[5][2] = aMiddleZ;
 
+#ifndef WNT
   for(int i=0;i<3;i++) 
+#else
+  for(i=0;i<3;i++) 
+#endif
     for(int j=0;j<6;j++) vecs[j][i] = p[j][i] - aCPosition[i];
 
   if ( vtkMath::Dot(vecs[0],aCDirection) < vtkMath::Dot(vecs[1],aCDirection))
index 69d5efd8c414ecd690a9561debaf9b7d3dab1bec..1de1c1ce84ef02cba8887db89704a7457fca5774 100644 (file)
@@ -41,7 +41,13 @@ class vtkPolyDataMapper;
 class vtkRectilinearGridGeometryFilter;
 class VTKViewer_Transform;
 
+#include <SVTK.h>
+
+#ifndef WNT
 class VTK_HYBRID_EXPORT SVTK_CubeAxesActor2D : public vtkCubeAxesActor2D
+#else
+class SVTK_EXPORT SVTK_CubeAxesActor2D : public vtkCubeAxesActor2D
+#endif
 {
 public:
   vtkTypeRevisionMacro(SVTK_CubeAxesActor2D,vtkCubeAxesActor2D);
index f2472a7307a2d2cf88725368470431dabb1ca327..ef58739a7e90177ac97c8d24b101007fda9ca6d7 100644 (file)
@@ -14,6 +14,8 @@
 //#include <GL/gl.h>
 //#include <GL/glu.h>
 //#include <qgl.h>
+#else
+#include <vtkRenderWindow.h>
 #endif
 
 #if QT_VERSION > 300
index 70e0e154662cf0cfbee894898f22bcbc287d131a..235115a12d3e850ea4554beb6533badddfbc6088 100644 (file)
@@ -148,7 +148,11 @@ QString SalomeApp_DataObject::text( const int id ) const
   switch ( id )
   {
   case CT_Value:
+#ifndef WNT
     if ( componentObject() != this )
+#else
+    if ( componentObject() != (SUIT_DataObject*)this )
+#endif
       txt = value( referencedObject() );
     break;
   case CT_Entry:
index fe7c6b19f0bb798925d22f2f134092aa1bc2009d..4035b214f9a0a6c4ddfe9d970c58e19c58f2488a 100644 (file)
@@ -6,7 +6,7 @@
 #include <typeinfo.h>
 #endif
 
-#include <iostream.h>
+#include <iostream>
 
 /*!Constructor. Initialize by \a theEntry.*/
 SalomeApp_DataOwner
index ae1cb54adaa418ae2d9fa6a009bf7cedc3e2b078..5543f903f4c8400a0fc26f61566193aaadaa95a1 100644 (file)
@@ -29,7 +29,9 @@
 #include "SalomeApp_ImportOperation.h"
 #include <SUIT_Application.h>
 
+#ifndef WNT
 using namespace std;
+#endif
 
 /*!Constructor. Do nothing.*/
 SalomeApp_ImportOperation::SalomeApp_ImportOperation( SUIT_Application* app ) :
index f9c2d1e48683697a2067906d35f325cc17a7b3ab..0b1ebc7e7803c80b334b9408876f851a49cfdf10 100644 (file)
 #include <qpushbutton.h>
 #include <qlayout.h>
 #include <qpixmap.h>
+
+#ifndef WNT
 using namespace std;
+#endif
 
 /*!Default icon*/
 static const char* const default_icon[] = { 
index 4380e3006e824da67d9297053ba83bf6ac0b9826..632404f527bf6adc726b6f23648e700632363593 100644 (file)
 #include <qlineedit.h>
 #include <qpushbutton.h>
 #include <qlayout.h>
+
+#ifndef WNT
 using namespace std;
+#endif
 
 /*!
   Constructor
index 2395fc377ed6da10d6cf9b1587c828ef68f54958..8115b435c9da68c703c6707d13e2b3c316e166e6 100644 (file)
@@ -75,7 +75,11 @@ QtxValue SalomeApp_Selection::globalParam( const QString& p ) const
   if      ( p == "client" )        return QtxValue( myPopupClient );
   else if ( p == "isActiveView" )  return QtxValue( (bool)activeVW() );
   else if ( p == "activeView" )    return QtxValue( activeViewType() );
+#ifndef WNT
   else                             return QtxPopupMgr::Selection::globalParam( p );
+#else
+  else                             return Selection::globalParam( p );
+#endif
 }
 
 /*!
index 997a73ab7d3bfec75d175a9832f41a5b037cd8eb..3a4b9ddd69f331f5716cda140a139e49d8d5946e 100755 (executable)
@@ -7,7 +7,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "InquireServersQThread.h"
 
 #include <qapplication.h>
@@ -39,6 +38,8 @@ using namespace std;
 #include "utilities.h"
 #include "OpUtil.hxx"
 
+using namespace std;
+
 #include CORBA_CLIENT_HEADER(SALOME_Session)
 #include CORBA_CLIENT_HEADER(SALOME_Registry)
 #include CORBA_CLIENT_HEADER(SALOMEDS)
@@ -324,11 +325,18 @@ bool InquireServersQThread::AskServer(int iteration, QString ** errMessage)
   //will be set true if we get response from server
   bool IsPassed = false;
   QString errDescription;
+#ifdef WNT
+  int i;
+#endif
   switch (iteration)
     {
     case 1:
       //First checking - existence of Naming Service
+#ifndef WNT
       for (int i = myRepeat; i ; i--)
+#else
+         for (i = myRepeat; i ; i--)
+#endif
        {
          try
            {
index d1d3c31b81d3fe4e24e80af7021393f397f5ce14..b97bfd012c1cb736fd06247360e9d6e4cd4fc191 100755 (executable)
 #include <qvbox.h> 
 #include <qguardedptr.h> 
 
+#ifdef WNT
+#include <SALOME_WNT.hxx>
+#else
+#define SALOME_WNT_EXPORT
+#endif
+
 /**********************************************************
 **  Class:   InquireEvent
 **  Descr:   Contains QCustomEvents for posting to InquireServersQThread
 **  Level:   Private
 ***********************************************************/
-class InquireEvent : public QCustomEvent
+class SALOME_WNT_EXPORT InquireEvent : public QCustomEvent
 {
 public:
 
@@ -33,7 +39,7 @@ public:
 
 class InquireServersGUI;
 
-class InquireServersQThread : public QThread
+class SALOME_WNT_EXPORT InquireServersQThread : public QThread
 {
 public:
   InquireServersQThread( InquireServersGUI* r );
@@ -78,7 +84,7 @@ private:
 class QLabel;
 class QFrame;
 class QProgressBar;
-class InquireServersGUI : public QVBox
+class SALOME_WNT_EXPORT InquireServersGUI : public QVBox
 {
     Q_OBJECT
 
index b52c9b040d2a28d7cd15082dc7950df4a6ab52a3..c6e3aefe9be9b68a3ad35e8fce8399625b974299 100755 (executable)
@@ -34,7 +34,9 @@
 #include "InquireServersQThread.h" // splash
 
 #include <iostream>
+#ifndef WNT
 #include <unistd.h>
+#endif
 
 #include <qdir.h>
 #include <qfile.h>
index 07fd509451c89517d949c376eb0745d52bee1537..27cc1cdd35a38a6bdc95bdc6bc48a7f48b4a9d09 100644 (file)
@@ -32,7 +32,9 @@
 
 #include "utilities.h"
 
-#include <iostream.h>
+#include <iostream>
+
+using namespace std;
 
 SalomeApp_Engine_i* SalomeApp_Engine_i::myInstance = NULL;
 
index fe840692c983a9535f7e7c3f3595cd26d22d3232..b3c79a101761f7efe76dbcab0591161a108b118e 100755 (executable)
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SalomeApp_Engine)
 
-class SalomeApp_Engine_i: public POA_SalomeApp::Engine,
+#ifdef WNT
+#include <SALOME_WNT.hxx>
+#else
+#define SALOME_WNT_EXPORT
+#endif
+
+class SALOME_WNT_EXPORT SalomeApp_Engine_i: public POA_SalomeApp::Engine,
                           public Engines_Component_i
 {
 public:
index cb3bec809e1523f58e99ff9afb5a03fc9d1d0c50..8791b6698e74e078e5a41d58b5093fd4dcd17afb 100755 (executable)
 #include <qthread.h>
 #include <qwaitcondition.h>
 
+
+#ifdef WNT
+#include <SALOME_WNT.hxx>
+#else
+#define SALOME_WNT_EXPORT
+#endif
+
 using namespace std;
 
 class ServArg
@@ -53,7 +60,7 @@ inline ServArg::ServArg(int servType, int firstArg, int lastArg):
   _servType(servType),_firstArg(firstArg),_lastArg(lastArg)
 {}
 
-class Session_ServerLauncher: public QThread
+class SALOME_WNT_EXPORT Session_ServerLauncher: public QThread
 {
 public:
   Session_ServerLauncher();
index af3956a5f252507e6038fe60f3c50600fb8c81a3..47f8bff0f0daba352e84960473242ac2e9b38e61 100755 (executable)
@@ -118,7 +118,11 @@ void Session_ServerThread::Init()
   MESSAGE("Session_ServerThread::Init "<< _argv[0]); 
 
   for (int i=0; i<_argc; i++) SCRUTE(_argv[i]);
+#ifndef WNT
   for (int i=0; i<NB_SRV_TYP; i++)
+#else
+  for (i=0; i<NB_SRV_TYP; i++)
+#endif
     if (strcmp(_argv[0],_serverTypes[i])==0)
       {
        _servType = i;
index 24b837b8af3aa14887786eee11d5400705617641..d733fc541fa3268c2e8e317d0e5c997f64aa434a 100755 (executable)
@@ -1,12 +1,14 @@
 #ifndef VTKVIEWER_UTILITIES_H
 #define VTKVIEWER_UTILITIES_H
 
+#include <VTKViewer.h>
+
 class vtkRenderer;
 
-extern void  ResetCamera(vtkRenderer* theRenderer, int theUsingZeroFocalPoint = false);
-extern int   ComputeVisiblePropBounds(vtkRenderer* theRenderer, float theBounds[6]);
-extern void  ResetCameraClippingRange(vtkRenderer* theRenderer);
-extern bool  ComputeTrihedronSize(vtkRenderer* theRenderer, double& theNewSize, 
+VTKVIEWER_EXPORT extern void  ResetCamera(vtkRenderer* theRenderer, int theUsingZeroFocalPoint = false);
+VTKVIEWER_EXPORT extern int   ComputeVisiblePropBounds(vtkRenderer* theRenderer, float theBounds[6]);
+VTKVIEWER_EXPORT extern void  ResetCameraClippingRange(vtkRenderer* theRenderer);
+VTKVIEWER_EXPORT extern bool  ComputeTrihedronSize(vtkRenderer* theRenderer, double& theNewSize, 
                                  const double theSize, const float theSizeInPercents);
 
 #ifndef max