From: mkr Date: Thu, 5 Jul 2007 13:14:22 +0000 (+0000) Subject: Porting to Qt4. X-Git-Tag: snapshot_171207~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=898b9898a4136f7ffc27fb98c9ff6f1dd39925ee;p=modules%2Fgeom.git Porting to Qt4. --- diff --git a/src/DisplayGUI/DisplayGUI.cxx b/src/DisplayGUI/DisplayGUI.cxx index 7ce28c184..c458fcec5 100644 --- a/src/DisplayGUI/DisplayGUI.cxx +++ b/src/DisplayGUI/DisplayGUI.cxx @@ -29,16 +29,16 @@ #include "DisplayGUI.h" #include "GeometryGUI.h" #include "GEOM_Displayer.h" +#include "GEOM_AISShape.hxx" #include -#include #include #include #include #include -#include +#include #include #include @@ -56,7 +56,7 @@ #include -#include +#include //======================================================================= @@ -94,7 +94,7 @@ bool DisplayGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent) { InvertDisplayMode(); int newMode = GetDisplayMode(); - getGeometryGUI()->action( 211 )->setMenuText + getGeometryGUI()->action( 211 )->setText ( newMode == 1 ? tr( "GEOM_MEN_WIREFRAME" ) : tr("GEOM_MEN_SHADING") ); getGeometryGUI()->menuMgr()->update(); break; diff --git a/src/DisplayGUI/DisplayGUI.h b/src/DisplayGUI/DisplayGUI.h index 9e31f223c..96d5b6044 100644 --- a/src/DisplayGUI/DisplayGUI.h +++ b/src/DisplayGUI/DisplayGUI.h @@ -29,7 +29,6 @@ #define DISPLAYGUI_H #include "GEOMGUI.h" -#include "GEOMBase.h" #ifdef WNT # if defined DISPLAYGUI_EXPORTS diff --git a/src/DisplayGUI/DisplayGUI.pro b/src/DisplayGUI/DisplayGUI.pro new file mode 100644 index 000000000..0d4e1c8f1 --- /dev/null +++ b/src/DisplayGUI/DisplayGUI.pro @@ -0,0 +1,47 @@ +TEMPLATE = lib +TARGET = DisplayGUI +DESTDIR = ../../lib +MOC_DIR = ../../moc +OBJECTS_DIR = ../../obj/$$TARGET + +QT_INCLUDES = $$(QTDIR)/include $$(QTDIR)/include/QtCore $$(QTDIR)/include/QtGui $$(QTDIR)/include/QtOpenGL $$(QTDIR)/include/QtXml + +VTK_INCLUDES = $$(VTKHOME)/include/vtk + +CASROOT = $$(CASROOT) +CAS_CPPFLAGS = $${CASROOT}/inc + +PYTHON_INCLUDES = $$(PYTHONHOME)/include/python2.4 + +BOOST_CPPFLAGS = $$(BOOSTDIR)/include + +KERNEL_CXXFLAGS = $$(KERNEL_ROOT_DIR)/include/salome + +GUI_CXXFLAGS = $$(GUI_ROOT_DIR)/include/salome + +CORBA_INCLUDES = $$(OMNIORBDIR)/include $$(OMNIORBDIR)/include/omniORB4 $$(OMNIORBDIR)/include/COS + +GUI_LDFLAGS = -L$$(GUI_ROOT_DIR)/lib/salome + +VTK_LIBS = -L$$(VTKHOME)/lib/vtk -L$$(VTKHOME)/lib/vtk/python -lvtkCommon -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkIO -lvtkRendering -lvtkHybrid -lvtkParallel -lvtkWidgets -lGL -L/usr/X11R6/lib -lGLU -L/usr/X11R6/lib -lX11 -lXt + +QT_MT_LIBS = -L$$(QTDIR)/lib -lQtCore -lQtXml -lQtGui -lQtOpenGL + +INCLUDEPATH += $${QT_INCLUDES} $${VTK_INCLUDES} $${CAS_CPPFLAGS} $${PYTHON_INCLUDES} $${BOOST_CPPFLAGS} $${KERNEL_CXXFLAGS} $${GUI_CXXFLAGS} $${CORBA_INCLUDES} ../OBJECT ../GEOMBase ../GEOMClient ../GEOMImpl ../GEOMGUI $$(GEOM_ROOT_DIR)/idl $$(GEOM_ROOT_DIR)/salome_adm/unix + +LIBS += -L$$(GEOM_ROOT_DIR)/lib -lGEOM -lGEOMToolsGUI $${GUI_LDFLAGS} -lsuit -lSVTK -lSOCC -lSalomePrs -lSalomeApp $${VTK_LIBS} $${QT_MT_LIBS} + +CONFIG -= debug release debug_and_release +CONFIG += qt thread debug dll shared + +win32:DEFINES += WIN32 +DEFINES += DISPLAYGUI_EXPORTS OCC_VERSION_MAJOR=6 OCC_VERSION_MINOR=1 OCC_VERSION_MAINTENANCE=1 LIN LINTEL CSFDB No_exception HAVE_CONFIG_H HAVE_LIMITS_H HAVE_WOK_CONFIG_H OCC_CONVERT_SIGNALS OMNIORB_VERSION=4 __x86__ __linux__ COMP_CORBA_DOUBLE COMP_CORBA_LONG + +HEADERS = DisplayGUI.h + +SOURCES = DisplayGUI.cxx + +includes.files = $$HEADERS +includes.path = ../../include + +INSTALLS += includes diff --git a/src/src.pro b/src/src.pro index 547f7e3bc..8f1277801 100644 --- a/src/src.pro +++ b/src/src.pro @@ -25,7 +25,7 @@ SUBDIRS += GEOMFiltersSelection SUBDIRS += GEOMGUI SUBDIRS += GEOMBase SUBDIRS += GEOMToolsGUI -#SUBDIRS += DisplayGUI +SUBDIRS += DisplayGUI #SUBDIRS += BasicGUI #SUBDIRS += PrimitiveGUI #SUBDIRS += GenerationGUI