#include <qtoolbutton.h>
#include <qgroupbox.h>
#include <qcolordialog.h>
+
+#ifndef WNT
using namespace std;
+#endif
#define MARGIN_SIZE 11
#define SPACING_SIZE 6
Descr: Class for incapsulation of one preference item
*/
-class QtxResourceEdit::Item
+class QTX_EXPORT QtxResourceEdit::Item
{
public:
Item( QtxResourceEdit*, Item* = 0 );
// Module : SUIT
#include "SPlot2d_Prs.h"
+#ifndef WNT
using namespace std;
+#endif
//==========================================================
/*!
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() );
#include <qlabel.h>
#include <qmessagebox.h>
+#ifndef WNT
using namespace std;
+#endif
//================================================================================
/*!
#include <qlayout.h>
#include <qlistbox.h>
#include <qpushbutton.h>
+
+#ifndef WNT
using namespace std;
+#endif
#define SPACING_SIZE 6
#define MARGIN_SIZE 11
#include <qvariant.h>
#include <qdialog.h>
+#include <STD.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
* \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
// 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"*/ );
// Module : SALOME
// $Header$
-using namespace std;
#include "SUPERVGraph_ViewFrame.h"
#include "utilities.h"
#include <qlayout.h>
#include <qcolordialog.h>
+using namespace std;
+
SUPERVGraph_View::SUPERVGraph_View( QWidget* theParent ): QWidget( theParent )
{
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;
}
}
// 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);
}
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))
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);
//#include <GL/gl.h>
//#include <GL/glu.h>
//#include <qgl.h>
+#else
+#include <vtkRenderWindow.h>
#endif
#if QT_VERSION > 300
switch ( id )
{
case CT_Value:
+#ifndef WNT
if ( componentObject() != this )
+#else
+ if ( componentObject() != (SUIT_DataObject*)this )
+#endif
txt = value( referencedObject() );
break;
case CT_Entry:
#include <typeinfo.h>
#endif
-#include <iostream.h>
+#include <iostream>
/*!Constructor. Initialize by \a theEntry.*/
SalomeApp_DataOwner
#include "SalomeApp_ImportOperation.h"
#include <SUIT_Application.h>
+#ifndef WNT
using namespace std;
+#endif
/*!Constructor. Do nothing.*/
SalomeApp_ImportOperation::SalomeApp_ImportOperation( SUIT_Application* app ) :
#include <qpushbutton.h>
#include <qlayout.h>
#include <qpixmap.h>
+
+#ifndef WNT
using namespace std;
+#endif
/*!Default icon*/
static const char* const default_icon[] = {
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qlayout.h>
+
+#ifndef WNT
using namespace std;
+#endif
/*!
Constructor
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
}
/*!
// Module : SALOME
// $Header$
-using namespace std;
#include "InquireServersQThread.h"
#include <qapplication.h>
#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)
//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
{
#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:
class InquireServersGUI;
-class InquireServersQThread : public QThread
+class SALOME_WNT_EXPORT InquireServersQThread : public QThread
{
public:
InquireServersQThread( InquireServersGUI* r );
class QLabel;
class QFrame;
class QProgressBar;
-class InquireServersGUI : public QVBox
+class SALOME_WNT_EXPORT InquireServersGUI : public QVBox
{
Q_OBJECT
#include "InquireServersQThread.h" // splash
#include <iostream>
+#ifndef WNT
#include <unistd.h>
+#endif
#include <qdir.h>
#include <qfile.h>
#include "utilities.h"
-#include <iostream.h>
+#include <iostream>
+
+using namespace std;
SalomeApp_Engine_i* SalomeApp_Engine_i::myInstance = NULL;
#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:
#include <qthread.h>
#include <qwaitcondition.h>
+
+#ifdef WNT
+#include <SALOME_WNT.hxx>
+#else
+#define SALOME_WNT_EXPORT
+#endif
+
using namespace std;
class ServArg
_servType(servType),_firstArg(firstArg),_lastArg(lastArg)
{}
-class Session_ServerLauncher: public QThread
+class SALOME_WNT_EXPORT Session_ServerLauncher: public QThread
{
public:
Session_ServerLauncher();
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;
#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