]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Changes in source code within porting on CentOS 6.3
authorSergey BELASH <belash.sergey@opencascade.com>
Fri, 11 Apr 2014 16:10:08 +0000 (20:10 +0400)
committerSergey BELASH <belash.sergey@opencascade.com>
Fri, 11 Apr 2014 16:10:08 +0000 (20:10 +0400)
26 files changed:
CMakeCommon/FindPython.cmake
CMakeCommon/XMLProcessing.cmake
CMakeLists.txt
centos6_env.sh
src/Config/Config_FeatureReader.cpp
src/Config/Config_ModuleReader.cpp
src/Config/Config_WidgetAPI.cpp
src/Config/Config_WidgetReader.cpp
src/Config/Config_XMLReader.cpp
src/Event/Event_Loop.cxx
src/Model/Model_Document.cxx
src/Model/Model_Iterator.cxx
src/Model/Model_Iterator.h
src/ModelAPI/ModelAPI_Iterator.h
src/ModelAPI/ModelAPI_PluginManager.cxx
src/ModelAPI/ModelAPI_PluginManager.h
src/PyConsole/CMakeLists.txt
src/PyInterp/CMakeLists.txt
src/XGUI/CMakeLists.txt
src/XGUI/XGUI_PartDataModel.cpp
src/XGUI/XGUI_SelectionMgr.h
src/XGUI/XGUI_ViewPort.cpp
src/XGUI/XGUI_ViewWindow.cpp
src/XGUI/XGUI_ViewWindow.h
src/XGUI/XGUI_Workbench.h
src/XGUI/XGUI_Workshop.cpp

index 5b8f5f04dd34e8de71ed7a21edfda0011b5ef412..d33eae0dd5fd4731072877a7d365b6183c159539 100644 (file)
@@ -1,19 +1,19 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.10)
 
-
 IF(WIN32)
     IF(CMAKE_BUILD_TYPE STREQUAL "Debug")
-      SET(PYTHON_LIBRARY_DLL "python27_d.lib")
+      SET(PYTHON_LIBRARY_FILE "python27_d.lib")
     ElSE()
-      SET(PYTHON_LIBRARY_DLL "python27.lib")
+      SET(PYTHON_LIBRARY_FILE "python27.lib")
     ENDIF()
 ElSE()
-    SET(PYTHON_LIBRARY_DLL "libpython27.so")
+    SET(PYTHON_LIBRARY_FILE "libpython2.7.so")
 ENDIF()
 
-FILE(TO_CMAKE_PATH "$ENV{PYTHON_LIB_DIR}/${PYTHON_LIBRARY_DLL}" PYTHON_LIBRARY)
+FILE(TO_CMAKE_PATH "$ENV{PYTHON_LIB_DIR}/${PYTHON_LIBRARY_FILE}" PYTHON_LIBRARY)
 FILE(TO_CMAKE_PATH $ENV{PYTHON_INC_DIR} PYTHON_INCLUDE_DIR)
-
 FIND_PACKAGE(PythonLibs)
 
-INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIRS})
+INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIR})
+MESSAGE(STATUS "PYTHON_LIBRARIES: " ${PYTHON_LIBRARIES})
+MESSAGE(STATUS "PYTHON_INCLUDE_DIR: " ${PYTHON_INCLUDE_DIR})
index 7a512165b919924ea7d88342e4c71fe5cd790943..f54729b865d60666258599a92723526329b2926a 100644 (file)
@@ -1,29 +1,21 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.10)
 
 SET(LIBXMLDIR $ENV{LIBXML2_ROOT_DIR})
-INCLUDE_DIRECTORIES(${LIBXMLDIR}/include/libxml2)
-LINK_DIRECTORIES (${LIBXMLDIR}/lib)
 IF(WIN32)
     SET(LIBXML2_LIBRARIES ${LIBXMLDIR}/lib/libxml2.lib)
+    INCLUDE_DIRECTORIES(${LIBXMLDIR}/include/libxml2)
 ELSE()
     SET(LIBXML2_LIBRARIES ${LIBXMLDIR}/lib/libxml2.so)
+    SET(LIBXML2_INCLUDE_DIR ${LIBXMLDIR}/include/libxml2)
+       FIND_PACKAGE(LibXml2 REQUIRED)
+       if(LIBXML2_FOUND)
+           message(STATUS "Found libxml2 ver. " ${LIBXML2_VERSION_STRING})
+           message(STATUS "LIBXML2_LIBRARIES " ${LIBXML2_LIBRARIES})
+           message(STATUS "LIBXML2_INCLUDE_DIR " ${LIBXML2_INCLUDE_DIR})
+       endif(LIBXML2_FOUND)
+       
+       INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
+       ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
 ENDIF()
+LINK_DIRECTORIES (${LIBXMLDIR}/lib)
 
-
-#set(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} ${LIBXMLDIR}/lib/libxml2.lib)
-
-#FILE(TO_CMAKE_PATH $ENV{PC_LIBXML_INCLUDEDIR} PC_LIBXML_INCLUDEDIR)
-#FILE(TO_CMAKE_PATH $ENV{PC_LIBXML_INCLUDEDIR} PC_LIBXML_INCLUDEDIR)
-#FILE(TO_CMAKE_PATH $ENV{PC_LIBXML_LIBDIR} PC_LIBXML_LIBDIR)
-#message(STATUS "PC_LIBXML_INCLUDEDIR " ${PC_LIBXML_INCLUDEDIR})
-#message(STATUS "PC_LIBXML_LIBDIR " ${PC_LIBXML_LIBDIR})
-#FIND_PACKAGE(LibXml2 REQUIRED)
-#if(LIBXML2_FOUND)
-#    message(STATUS "Found libxml2 ver. " ${LIBXML2_VERSION_STRING})
-#    message(STATUS "LIBXML2_LIBRARIES " ${LIBXML2_LIBRARIES})
-#    message(STATUS "LIBXML2_INCLUDE_DIR " ${LIBXML2_INCLUDE_DIR})
-#endif(LIBXML2_FOUND)
-
-#INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
-#ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
index fcea072deabf04a3ffc92b211dbdaf7dfb0271a0..eeaee08cf380263b3d74689200c95c5a782147ca 100644 (file)
@@ -8,6 +8,16 @@ INCLUDE(Common)
 INCLUDE(FindQt)
 INCLUDE(FindPython)
 
+IF(UNIX)
+    IF(CMAKE_COMPILER_IS_GNUCC)
+        SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
+        MESSAGE(STATUS "Setting -std=c++0x flag for the gcc...")
+        MESSAGE(STATUS "Now gcc flags are: " ${CMAKE_CXX_FLAGS})
+        
+    ENDIF(CMAKE_COMPILER_IS_GNUCC)
+ENDIF(UNIX)
+
+
 ADD_SUBDIRECTORY (src/Config)
 ADD_SUBDIRECTORY (src/Event)
 ADD_SUBDIRECTORY (src/Model)
index f9ec06de4800c00092c8f4bb7167bb94e6620f8e..31f1c68d34ba5bb27bd363231823a69a6cb9a40f 100644 (file)
@@ -66,6 +66,7 @@ export CAS_ROOT_DIR=${INST_ROOT}/OCCT-6.7.0
 
 export PATH=${CAS_ROOT_DIR}:${CAS_ROOT_DIR}/bin:${PATH}
 export LD_LIBRARY_PATH=${CAS_ROOT_DIR}:${CAS_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
+export CSF_GraphicShr=${CAS_ROOT_DIR}/lib/libTKOpenGl.so
 # Variable for Foundation Classes : 
 export CSF_UnitsLexicon=${CAS_ROOT_DIR}/src/UnitsAPI/Lexi_Expr.dat 
 export CSF_UnitsDefinition=${CAS_ROOT_DIR}/src/UnitsAPI/Units.dat 
@@ -82,4 +83,5 @@ export CASROOT=${CAS_ROOT_DIR}
 ##
 export LIB=${LD_LIBRARY_PATH}
 
-
+export PATH=${INST_ROOT}/../install/bin:${PATH}
+export LD_LIBRARY_PATH=${INST_ROOT}/../install/bin:${INST_ROOT}/../install/swig:${LD_LIBRARY_PATH}
index 1cb2ef83da1768002d6d7df81ad528b8c6e61bea..71ecc7afa1048de5b59b77b81cf2548b6c20dbb4 100644 (file)
@@ -11,9 +11,9 @@
 #include <Event_Message.h>
 #include <Event_Loop.h>
 
-#include <libxml\parser.h>
-#include <libxml\tree.h>
-#include <libxml\xmlstring.h>
+#include <libxml/parser.h>
+#include <libxml/tree.h>
+#include <libxml/xmlstring.h>
 
 #include <string>
 
index d77e6b830fd7ee091cf6d1ab7b5083c768d65de9..642bb6bf536775939d04bbf50be4f340e8001937 100644 (file)
@@ -9,8 +9,8 @@
 #include <Config_ModuleReader.h>
 #include <Config_FeatureReader.h>
 
-#include <libxml\parser.h>
-#include <libxml\tree.h>
+#include <libxml/parser.h>
+#include <libxml/tree.h>
 
 #ifdef _DEBUG
 #include <iostream>
index 65d4b14cad33bd13191fd5730a56ffd6b1405234..80eb568111877703e67921312149ef32a20bc05a 100644 (file)
@@ -7,8 +7,8 @@
 
 #include <Config_WidgetAPI.h>
 
-#include <libxml\parser.h>
-#include <libxml\tree.h>
+#include <libxml/parser.h>
+#include <libxml/tree.h>
 
 
 Config_WidgetAPI::Config_WidgetAPI(std::string theRawXml)
index d746eb64eb0b4c8ba6556f394c65cd0b97e0578b..032acb000dba27983941511ed518c3670bd3d68c 100644 (file)
@@ -8,10 +8,10 @@
 #include <Config_WidgetReader.h>
 #include <Config_Keywords.h>
 
-#include <libxml\parser.h>
-#include <libxml\tree.h>
-#include <libxml\xpath.h>
-#include <libxml\xmlstring.h>
+#include <libxml/parser.h>
+#include <libxml/tree.h>
+#include <libxml/xpath.h>
+#include <libxml/xmlstring.h>
 
 #ifdef _DEBUG
 #include <iostream>
index 0261f2551600b54fd7dec93cd03f81247c6763f6..085871fdd66d6549a75c15f18104596611fb63e5 100644 (file)
@@ -8,8 +8,8 @@
 #include <Config_XMLReader.h>
 
 #include <Event_Loop.h>
-#include <libxml\parser.h>
-#include <libxml\tree.h>
+#include <libxml/parser.h>
+#include <libxml/tree.h>
 
 /*
 #ifdef WIN32
index c5cadce448a9c687508757504dc231ddf97d90ab..c938dbe95cce2dd0dcb83eb7da97bbd39dc0a6d7 100644 (file)
@@ -3,7 +3,9 @@
 // Author:     Mikhail PONIKAROV
 
 #include <Event_Loop.h>
+
 #include <string>
+#include <cstring>
 
 using namespace std;
 
index 0e976420c45652ec8dd63448b16428dce0790e84..479de79a6792de8745656c7c09c354cacb6a9f51 100644 (file)
@@ -15,6 +15,8 @@
 #include <TDataStd_Comment.hxx>
 #include <TDF_ChildIDIterator.hxx>
 
+#include <climits>
+
 static const int UNDO_LIMIT = 10; // number of possible undo operations
 
 static const int TAG_GENERAL = 1; // general properties tag
@@ -387,7 +389,7 @@ void Model_Document::synchronizeFeatures()
     TDF_ChildIDIterator aFLabIter(
       aGroupsIter.Value()->Label(), TDataStd_Comment::GetID(), Standard_False);
     while(aFIter != aFeatures.end() || aFLabIter.More()) {
-      static const int INFINITE_TAG = MAXINT; // no label means that it exists somwhere in infinite
+      static const int INFINITE_TAG = INT_MAX; // no label means that it exists somwhere in infinite
       int aFeatureTag = INFINITE_TAG; 
       if (aFIter != aFeatures.end()) { // existing tag for feature
         shared_ptr<Model_Data> aData = dynamic_pointer_cast<Model_Data>((*aFIter)->data());
index b8a765d91a577ae16745f99f41b1a10f009794b0..001ebdff8146c3d2bab6e71cc80cbca487696fa2 100644 (file)
@@ -51,7 +51,7 @@ int Model_Iterator::numIterationsLeft()
   return aResult;
 }
 
-bool Model_Iterator::is(std::shared_ptr<ModelAPI_Feature> theFeature)
+bool Model_Iterator::isEqual(std::shared_ptr<ModelAPI_Feature> theFeature)
 {
   return (myIter.Value()->Label() == 
     dynamic_pointer_cast<Model_Data>(theFeature->data())->label()) == Standard_True;
index b28423bcf5e23dc2fa14243b37da1504e57032fb..5d8c61baec0c7a8fbb413d1e6a414c04da3d0ecb 100644 (file)
@@ -39,7 +39,7 @@ public:
 
   /// Compares the current feature with the given one
   /// \returns true if given feature equals to the current one
-  MODEL_EXPORT virtual bool is(std::shared_ptr<ModelAPI_Feature> theFeature);
+  MODEL_EXPORT virtual bool isEqual(std::shared_ptr<ModelAPI_Feature> theFeature);
 
 protected:
   /// Creates an empty iterator that alway returns More false
index 41032c2fbbf6a86d0399bb0f666a4ac52d059c74..8a128a59db5bc1e19536f06873aef01cd5ffada1 100644 (file)
@@ -36,7 +36,7 @@ public:
   virtual int numIterationsLeft() = 0;
   /// Compares the current feature with the given one
   /// \returns true if given feature equals to the current one
-  virtual bool is(std::shared_ptr<ModelAPI_Feature> theFeature) = 0;
+  virtual bool isEqual(std::shared_ptr<ModelAPI_Feature> theFeature) = 0;
 
   /// To virtually destroy the fields of successors
   virtual ~ModelAPI_Iterator() {}
index 47623f0915fc597532b889467e8b4299be88e808..f3e7e9b9d5f13b377247169f802d41162eed67bb 100644 (file)
@@ -58,7 +58,7 @@ string library(const string& theLibName)
 #ifndef WIN32
   static string aLibExt( ".so" );
   if (aLibName.size() < 3 || aLibName.substr(0, 3) !="lib")
-    aLibName = ".lib" + aLibName;
+    aLibName = "lib" + aLibName;
 #else
   static string aLibExt( ".dll" );
 #endif
index 8aab3f6f40d8525510612b61cad659634794ed61..f5236491913dd0f0b4776f01a9e004e5db237ee9 100644 (file)
@@ -41,7 +41,7 @@ public:
   virtual void setCurrentDocument(std::shared_ptr<ModelAPI_Document> theDoc) = 0;
 
   /// loads the library with specific name, appends "lib*.dll" or "*.so" depending on the platform
-  static void ModelAPI_PluginManager::loadLibrary(const std::string theLibName);
+  static void loadLibrary(const std::string theLibName);
 
   /// Is needed for python wrapping by swig, call Get to get an instance
   ModelAPI_PluginManager();
index b623b64cfea6fb467aab85ed75c8e94af6f3a039..8cd815158e043db3616e0ac0f5528f839aa20a16 100644 (file)
@@ -37,6 +37,7 @@ SET(PROJECT_SOURCES
 SET(PROJECT_LIBRARIES
        PyInterp
        ${QT_LIBRARIES}
+       ${PYTHON_LIBRARIES}
 )
 
 QT4_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
index d7f7a53d6c02ef6447d832582a118431db4a5aed..7684af37fdc49fd74a20114626947bb53d2e7942 100644 (file)
@@ -26,6 +26,7 @@ SET(PROJECT_SOURCES
 SET(PROJECT_LIBRARIES
        PyEvent
        ${QT_LIBRARIES}
+       ${PYTHON_LIBRARIES}
 )
 
 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC})
index 3e4556b6204667b91707963b361f0100acd822d1..dae4dd16b957d89207091db5838e9e577dc7e031 100644 (file)
@@ -60,7 +60,6 @@ SET(PROJECT_RESOURCES
 #)
 
 SET(PROJECT_LIBRARIES
-       opengl32
     Event
     Config
        ${QT_LIBRARIES}
@@ -74,6 +73,12 @@ SET(PROJECT_LIBRARIES
        ModuleBase
 )
 
+IF(WIN32) 
+    SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} opengl32)
+ELSE()
+    SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} GL)
+ENDIF()
+
 QT4_ADD_RESOURCES(PROJECT_COMPILED_RESOURCES ${PROJECT_RESOURCES})
 #QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
 
index f68b5fc4a0bc80549363786452244953ecbde345..1e79322ca2afcd871885938b10fc4c86051268dc 100644 (file)
@@ -90,16 +90,16 @@ QModelIndex XGUI_TopDataModel::index(int theRow, int theColumn, const QModelInde
   if (!theParent.isValid()) {
     switch (theRow) {
     case 0:
-      return createIndex(theRow, theColumn, (quintptr) ParamsFolder);
+      return createIndex(theRow, theColumn, (qint32) ParamsFolder);
     case 1:
-      return createIndex(theRow, theColumn, (quintptr) ConstructFolder);
+      return createIndex(theRow, theColumn, (qint32) ConstructFolder);
     }
   } else {
     if (theParent.internalId() == ParamsFolder)
-      return createIndex(theRow, theColumn, (quintptr) ParamObject);
+      return createIndex(theRow, theColumn, (qint32) ParamObject);
 
     if (theParent.internalId() == ConstructFolder)
-      return createIndex(theRow, theColumn, (quintptr) ConstructObject);
+      return createIndex(theRow, theColumn, (qint32) ConstructObject);
   }
   return QModelIndex();
 }
@@ -112,9 +112,9 @@ QModelIndex XGUI_TopDataModel::parent(const QModelIndex& theIndex) const
   case ConstructFolder:
     return QModelIndex();
   case ParamObject:
-    return createIndex(0, 0, (quintptr) ParamsFolder);
+    return createIndex(0, 0, (qint32) ParamsFolder);
   case ConstructObject:
-    return createIndex(1, 0, (quintptr) ConstructFolder);
+    return createIndex(1, 0, (qint32) ConstructFolder);
   }
   return QModelIndex();
 }
@@ -129,13 +129,13 @@ FeaturePtr XGUI_TopDataModel::feature(const QModelIndex& theIndex) const
   switch (theIndex.internalId()) {
   case ParamsFolder:
   case ConstructFolder:
-    return 0;
+    return FeaturePtr();
   case ParamObject:
     return myDocument->feature(PARAMETERS_GROUP, theIndex.row());
   case ConstructObject:
     return myDocument->feature(CONSTRUCTIONS_GROUP, theIndex.row());
   }
-  return 0;
+  return FeaturePtr();
 }
 
 
@@ -232,21 +232,21 @@ int XGUI_PartDataModel::columnCount(const QModelIndex &parent) const
 QModelIndex XGUI_PartDataModel::index(int theRow, int theColumn, const QModelIndex &theParent) const
 {
   if (!theParent.isValid())
-    return createIndex(theRow, 0, (quintptr) MyRoot);
+    return createIndex(theRow, 0, (qint32) MyRoot);
 
   int aId = (int)theParent.internalId();
   switch (aId) {
   case MyRoot:
     switch (theRow) {
     case 0:
-      return createIndex(0, 0, (quintptr) ParamsFolder);
+      return createIndex(0, 0, (qint32) ParamsFolder);
     case 1:
-      return createIndex(1, 0, (quintptr) ConstructFolder);
+      return createIndex(1, 0, (qint32) ConstructFolder);
     }
   case ParamsFolder:
-    return createIndex(theRow, 0, (quintptr) ParamObject);
+    return createIndex(theRow, 0, (qint32) ParamObject);
   case ConstructFolder:
-    return createIndex(theRow, 0, (quintptr) ConstructObject);
+    return createIndex(theRow, 0, (qint32) ConstructObject);
   }
   return QModelIndex();
 }
@@ -258,11 +258,11 @@ QModelIndex XGUI_PartDataModel::parent(const QModelIndex& theIndex) const
     return QModelIndex();
   case ParamsFolder:
   case ConstructFolder:
-    return createIndex(0, 0, (quintptr) MyRoot);
+    return createIndex(0, 0, (qint32) MyRoot);
   case ParamObject:
-    return createIndex(0, 0, (quintptr) ParamsFolder);
+    return createIndex(0, 0, (qint32) ParamsFolder);
   case ConstructObject:
-    return createIndex(1, 0, (quintptr) ConstructFolder);
+    return createIndex(1, 0, (qint32) ConstructFolder);
   }
   return QModelIndex();
 }
@@ -286,11 +286,11 @@ FeaturePtr XGUI_PartDataModel::feature(const QModelIndex& theIndex) const
     return myDocument->feature(PARTS_GROUP, myId);
   case ParamsFolder:
   case ConstructFolder:
-    return 0;
+    return FeaturePtr();
   case ParamObject:
     return featureDocument()->feature(PARAMETERS_GROUP, theIndex.row());
   case ConstructObject:
     return featureDocument()->feature(CONSTRUCTIONS_GROUP, theIndex.row());
   }
-  return 0;
+  return FeaturePtr();
 }
index 58af58ea0515878ba974481329f58e539ec0a8f4..3b2bc7aa36c10a2fea429ee00f8200ca05adf854 100644 (file)
@@ -35,4 +35,4 @@ private:
   QFeatureList mySelectedData;
 };
 
-#endif;
\ No newline at end of file
+#endif
index 21552a55dc41197dec1bef8d9072edff1a050cf0..f7edd5d5e297eedfa9f57f9df423408b86c420c4 100644 (file)
@@ -1,10 +1,4 @@
-#ifndef WIN32
-# ifndef GLX_GLXEXT_LEGACY
-#  define GLX_GLXEXT_LEGACY
-# endif
-# include <GL/glx.h>
-# include <dlfcn.h>
-#else
+#ifdef WIN32
 # include <windows.h>
 # include <wingdi.h>
 #endif
@@ -21,6 +15,7 @@
 #include <V3d_OrthographicView.hxx>
 #include <V3d_PerspectiveView.hxx>
 #include <Visual3d_View.hxx>
+#include <Graphic3d_GraphicDriver.hxx>
 
 #ifdef WIN32
 #include <WNT_Window.hxx>
 #endif
 
 #include <GL/gl.h>
+//qmetatype.h must be included before any header file that defines Bool
+//see /QtCore/qmetatype.h:53 for more info
+#ifndef WIN32
+# ifndef GLX_GLXEXT_LEGACY
+#  define GLX_GLXEXT_LEGACY
+# endif
+# include <GL/glx.h>
+# include <dlfcn.h>
+#endif
 
 static double rx = 0.;
 static double ry = 0.;
index fd8f1dc9e19149df50af3e01ac84694438a9ca2b..3803cabeaaeb9876d2c1a6e6f6d7aa1833800391 100644 (file)
@@ -136,7 +136,7 @@ XGUI_ViewWindow::XGUI_ViewWindow(XGUI_Viewer* theViewer, V3d_TypeOfView theType)
     myClosable(true),
     myStartX(0), myStartY(0), myCurrX(0), myCurrY(0), myCurScale(0.0), myCurSketch(0),
     myDrawRect(false), myEnableDrawMode(false), myCursorIsHand(false), myEventStarted(false),
-    myLastState(NormalState), myOperation(NOTHING)
+    myLastState(WindowNormalState), myOperation(NOTHING)
 {
   mySelectedPoint = gp_Pnt(0., 0., 0.);
   setFrameStyle(QFrame::Raised);
@@ -345,7 +345,7 @@ void XGUI_ViewWindow::onMinimize()
     int aNewH = int(aH / aR);
     myPicture->setPixmap(aPMap.scaled(100,  aNewH));
 
-  myLastState = isMaximized() ? MaximizedState : NormalState;
+  myLastState = isMaximized() ? MaximizedState : WindowNormalState;
   showMinimized();
     parentWidget()->setGeometry(parentWidget()->x(), parentWidget()->y(),
                                 100, aNewH);
@@ -964,9 +964,9 @@ void XGUI_ViewWindow::dumpView()
 
     Handle(Visual3d_View) a3dView = myViewPort->getView()->View();
     if (aFmt == "PS")
-      a3dView->Export(_strdup(qPrintable(aFileName)), Graphic3d_EF_PostScript);
+      a3dView->Export(strdup(qPrintable(aFileName)), Graphic3d_EF_PostScript);
     else if (aFmt == "EPS")
-      a3dView->Export(_strdup(qPrintable(aFileName)), Graphic3d_EF_EnhPostScript);
+      a3dView->Export(strdup(qPrintable(aFileName)), Graphic3d_EF_EnhPostScript);
     else
       aPicture.save( aFileName, aFmt.toLatin1() );
     QApplication::restoreOverrideCursor();
index be28c95a0aba45dd6c337c1349379fa580c8572b..0c3ae8a1766f7a266634ab9cb198f90ad9750d5a 100644 (file)
@@ -196,7 +196,9 @@ private slots:
 private:
   enum WindowState
   {
-    MinimizedState, MaximizedState, NormalState
+    MinimizedState,
+    MaximizedState,
+    WindowNormalState
   };
 
   bool processWindowControls(QObject *theObj, QEvent *theEvent);
index 57b17d3bea7a58a963685c8737058d4508b7078a..67b3bde7d43dc3b9b144f6fa9e453063f1241f3a 100644 (file)
@@ -43,4 +43,4 @@ private:
   QPushButton* myLeftButton;
 };
 
-#endif;
+#endif
index 0aa5bde710846343163a4df7c4d99633bf027d40..1a1f7382dc25522e745ffb81c72455c91de0c9e3 100644 (file)
@@ -314,7 +314,7 @@ XGUI_Module* XGUI_Workshop::loadModule(const QString& theModule)
   err = QString( "Can not load library %1. %2" ).arg( libName ).arg( dlerror() );
   else
   {
-    crtInst = (CREATE_FUNC)dlsym( modLib, GET_MODULE_NAME );
+    crtInst = (CREATE_FUNC)dlsym( modLib, CREATE_MODULE );
     if ( !crtInst )
     err = QString( "Failed to find function %1. %2" ).arg( CREATE_MODULE ).arg( dlerror() );
   }