#include <QColorDialog>
#include <QColormap>
#include <QCoreApplication>
-#include <QX11Info>
#include <stdlib.h>
#if !defined WNT
+#include <QX11Info>
#include <GL/glx.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
static QEvent* l_mbPressEvent = 0;
+#ifdef WIN32
+# include <QWindowsStyle>
+#endif
+
const char* imageZoomCursor[] = {
"32 32 3 1",
". c None",
{
if ( !myRectBand ) {
myRectBand = new QRubberBand( QRubberBand::Rectangle, myViewPort );
+#ifdef WIN32
+ myRectBand->setStyle(new QWindowsStyle);
+#endif
QPalette palette;
palette.setColor(myRectBand->foregroundRole(), Qt::white);
myRectBand->setPalette(palette);
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 )
// QT Includes
// Put Qt includes before the X11 includes which #define the symbol None
// (see SVTK_SpaceMouse.h) to avoid the compilation error.
-#include <QX11Info>
+#ifndef WIN32
+# include <QX11Info>
+#endif
#include <QMouseEvent>
#include "SVTK_SpaceMouse.h"
/*!
To handle native Win32 events (from such devices as SpaceMouse)
*/
-bool QVTK_RenderWindowInteractor::winEvent( MSG* msg )
+bool QVTK_RenderWindowInteractor::winEvent( MSG* msg, long* result )
{
// TODO: Implement event handling for SpaceMouse
- return QWidget::winEvent( msg );
+ return QWidget::winEvent( msg, result);
}
#else
//! To handle native events (from such devices as SpaceMouse)
#ifdef WIN32
- virtual bool winEvent( MSG* );
+ virtual bool winEvent( MSG*, long* );
#else
virtual bool x11Event( XEvent *e );
#endif
#include <SUIT_ResourceMgr.h>
#include <SUIT_ExceptionHandler.h>
+#include <Standard_Version.hxx>
+
/*! - read arguments, define list of server to launch with their arguments.
* - wait for naming service
* - create and run a thread for launch of all servers
#include "SALOME_Event.h"
#include "SUIT_Session.h"
-//#include "SUIT_Application.h"
#include "SUIT_Desktop.h"
#include "SUIT_Study.h"
-//#include <QApplication>
#include <QMutex>
#include <QWaitCondition>
#include <OSD_SharedLibrary.hxx>
#include <OSD_Function.hxx>
+#ifdef WNT
+# include <process.h>
+#endif
+
+
using namespace std;
/*!
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 {
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);