-TEMPLATE = lib
+unix:TEMPLATE = lib
+win32:TEMPLATE = vclib
DESTDIR = ../../$(CONFIG_ID)/lib
MOC_DIR = ../../moc
INCLUDEPATH += ../../include $$(QWTINC) $$(PYTHONINC)
INCLUDEPATH += ../Qtx ../SUIT
unix:LIBS += -L$$(QWTLIB) -lqwt
-win32:LIBS += /LIBPATH:$$(QWTLIB)
+win32:LIBS += /LIBPATH:$$(QWTLIB) -lqwt5
LIBS += -L../../$(CONFIG_ID)/lib -lQtx -lSUIT
CONFIG -= debug release debug_and_release
CONFIG += qt thread debug dll shared
-win32:DEFINES += WIN32
+win32:DEFINES += WNT WIN32 QWT_DLL
DEFINES += PLOT2D_EXPORTS
HEADERS = *.h
unix:GUIResources = ../../resources
win32:GUIResources = ..\\..\\resources
+win32:copy_hdr.name = Install headers ${QMAKE_FILE_IN}
+win32:copy_hdr.commands = type ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}
+win32:copy_hdr.output = ../../include/${QMAKE_FILE_BASE}.h
+win32:copy_hdr.input = HEADERS
+win32:QMAKE_EXTRA_COMPILERS += copy_hdr
+
lrelease.name = LRELASE ${QMAKE_FILE_IN}
-unix:lrelease.commands = $(QTDIR)/bin/lrelease ${QMAKE_FILE_NAME} -qm $${GUIResources}/${QMAKE_FILE_BASE}.qm
-win32:lrelease.commands = $(QTDIR)\\bin\\lrelease ${QMAKE_FILE_NAME} -qm $${GUIResources}\\${QMAKE_FILE_BASE}.qm
+unix:lrelease.commands = $(QTDIR)/bin/lrelease ${QMAKE_FILE_NAME} -qm ${QMAKE_FILE_OUT}
+win32:lrelease.commands = $(QTDIR)\\bin\\lrelease ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT}
unix:lrelease.output = $${GUIResources}/${QMAKE_FILE_BASE}.qm
win32:lrelease.output = $${GUIResources}\\${QMAKE_FILE_BASE}.qm
lrelease.input = TRANSLATIONS
ICONS = resources/*.png
+win32:Resource=$$ICONS
+win32:copy_res.name = Install resources ${QMAKE_FILE_IN}
+win32:copy_res.commands = type ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}
+win32:copy_res.output = $${GUIResources}\\${QMAKE_FILE_BASE}.png
+win32:copy_res.input = Resource
+win32:QMAKE_EXTRA_COMPILERS += copy_res
+
includes.files = $$HEADERS
includes.path = ../../include
#include <QList>
#include <qwt_plot.h>
-typedef struct
+struct PLOT2D_EXPORT Plot2d_Point
{
double x;
double y;
QString text;
-} Plot2d_Point;
+};
typedef QList<Plot2d_Point> pointList;
Q_OBJECT
public:
Plot2d_Plot2d( QWidget* parent );
+ virtual ~Plot2d_Plot2d() {};
void setLogScale( int axisId, bool log10 );
-TEMPLATE = lib
+unix:TEMPLATE = lib
+win32:TEMPLATE = vclib
DESTDIR = ../../$(CONFIG_ID)/lib
MOC_DIR = ../../moc
CONFIG -= debug release debug_and_release
CONFIG += qt thread debug dll shared
-win32:DEFINES += WIN32
+win32:DEFINES += WNT WIN32
DEFINES += PRS_EXPORTS
HEADERS = *.h
SOURCES = *.cxx
+win32:copy_hdr.name = Install ${QMAKE_FILE_IN}
+win32:copy_hdr.commands = type ${QMAKE_FILE_IN} > ../../include/${QMAKE_FILE_BASE}.h
+win32:copy_hdr.output = ../../include/${QMAKE_FILE_BASE}.h
+win32:copy_hdr.input = HEADERS
+win32:QMAKE_EXTRA_COMPILERS += copy_hdr
+
includes.files = $$HEADERS
includes.path = ../../include
-TEMPLATE = lib
+unix:TEMPLATE = lib
+win32:TEMPLATE = vclib
DESTDIR = ../../$(CONFIG_ID)/lib
MOC_DIR = ../../moc
INCLUDEPATH += ../../include $$(PYTHONINC)
unix:LIBS += -L../../$(CONFIG_ID)/lib -L$$(PYTHONLIB) -lpython2.5 -lSUIT -lPyInterp
-win32:LIBS += /LIBPATH:$$(PYTHONLIB) ../../lib/pyinterp.lib ../../lib/suit.lib
+win32:LIBS += -L../../$(CONFIG_ID)/lib -L$$(PYTHONLIB) -lpython25_d -lSUIT -lPyInterp
CONFIG -= debug release debug_and_release
CONFIG += qt thread debug dll shared
-win32:DEFINES += WIN32
+win32:DEFINES += WNT WIN32
DEFINES += PYCONSOLE_EXPORTS
HEADERS = *.h
lrelease.name = LRELASE ${QMAKE_FILE_IN}
unix:lrelease.commands = $(QTDIR)/bin/lrelease ${QMAKE_FILE_NAME} -qm $${GUIResources}/${QMAKE_FILE_BASE}.qm
-win32:lrelease.commands = $(QTDIR)\\bin\\lrelease ${QMAKE_FILE_NAME} -qm $${GUIResources}\\${QMAKE_FILE_BASE}.qm
+win32:lrelease.commands = $(QTDIR)\\bin\\lrelease ${QMAKE_FILE_IN} ${QMAKE_FILE_NAME} -qm $${GUIResources}\\${QMAKE_FILE_BASE}.qm
unix:lrelease.output = $${GUIResources}/${QMAKE_FILE_BASE}.qm
win32:lrelease.output = $${GUIResources}\\${QMAKE_FILE_BASE}.qm
lrelease.input = TRANSLATIONS
lrelease.CONFIG += no_link target_predeps
QMAKE_EXTRA_COMPILERS += lrelease
+win32:copy_hdr.name = Install ${QMAKE_FILE_IN}
+win32:copy_hdr.commands = type ${QMAKE_FILE_IN} > ../../include/${QMAKE_FILE_BASE}.h
+win32:copy_hdr.output = ../../include/${QMAKE_FILE_BASE}.h
+win32:copy_hdr.input = HEADERS
+win32:QMAKE_EXTRA_COMPILERS += copy_hdr
+
includes.files = $$HEADERS
includes.path = ../../include
// SUIT_Session::SetPythonExecuted( true ); // disable GUI user actions
int ret = getInterp()->run( myCommand.toLatin1() );
// SUIT_Session::SetPythonExecuted(false); // enable GUI user actions
- if ( ret < 0 )
- myState = PyInterp_Event::ERROR;
+ if ( ret < 0 ) {
+ myState =
+#ifdef WIN32
+ PyInterp_Event::EV_ERROR;
+#else
+ PyInterp_Event::ERROR;
+#endif
+ }
else if ( ret > 0 )
myState = PyInterp_Event::INCOMPLETE;
myError = getInterp()->getverr().c_str();
{
switch( event->type() )
{
- case PyInterp_Event::OK:
+#ifdef WIN32
+ case PyInterp_Event::EV_ERROR:
+#else
case PyInterp_Event::ERROR:
+#endif
{
PyInterp_Event* pe = dynamic_cast<PyInterp_Event*>( event );
if ( pe )
// ========================================================
// little trick - we do not have debug python libraries
+#ifndef WIN32
#ifdef _DEBUG
#undef _DEBUG
#endif // _DEBUG
+#endif // WIN32
// ========================================================
// avoid warning messages
#ifdef WIN32
-TEMPLATE = lib
+unix:TEMPLATE = lib
+win32:TEMPLATE = vclib
DESTDIR = ../../$(CONFIG_ID)/lib
MOC_DIR = ../../moc
INCLUDEPATH += ../../include $$(PYTHONINC)
unix:LIBS += -L$$(PYTHONLIB) -lpython2.5
-win32:LIBS += /LIBPATH:$$(PYTHONLIB)
+win32:LIBS += -L$$(PYTHONLIB) -lpython25_d
CONFIG -= debug release debug_and_release
CONFIG += qt thread debug dll shared
-win32:DEFINES += WIN32
+win32:DEFINES += WNT WIN32
DEFINES += PYINTERP_EXPORTS
HEADERS = *.h
SOURCES = *.cxx
+win32:copy_hdr.name = Install ${QMAKE_FILE_IN}
+win32:copy_hdr.commands = type ${QMAKE_FILE_IN} > ../../include/${QMAKE_FILE_BASE}.h
+win32:copy_hdr.output = ../../include/${QMAKE_FILE_BASE}.h
+win32:copy_hdr.input = HEADERS
+win32:QMAKE_EXTRA_COMPILERS += copy_hdr
+
includes.files = $$HEADERS
includes.path = ../../include
PyInterp_Event( const PyInterp_Event& );
public:
- enum { NOTIFY = QEvent::User + 5000, OK, ERROR, INCOMPLETE, LAST };
+ enum { NOTIFY = QEvent::User + 5000, OK,
+#ifdef WIN32
+ EV_ERROR,
+#else
+ ERROR,
+#endif
+ INCOMPLETE, LAST };
PyInterp_Event( int type, PyInterp_Request* request )
: QEvent( (QEvent::Type)type ), myRequest( request ) {}
-TEMPLATE = lib
+win32:TEMPLATE = vclib
+unix:TEMPLATE = lib
+
+CONFIG += embed_manifest_exe
DESTDIR = ../../$(CONFIG_ID)/lib
MOC_DIR = ../../moc
CONFIG -= debug release debug_and_release
CONFIG += qt thread debug dll shared
-win32:DEFINES += WIN32
+win32:DEFINES += WNT WIN32
DEFINES += QTX_EXPORTS
HEADERS = *.h
SOURCES = *.cxx
+win32:copy_hdr.name = Install ${QMAKE_FILE_IN}
+win32:copy_hdr.commands = type ${QMAKE_FILE_IN} > ../../include/${QMAKE_FILE_BASE}.h
+win32:copy_hdr.output = ../../include/${QMAKE_FILE_BASE}.h
+win32:copy_hdr.input = HEADERS
+win32:QMAKE_EXTRA_COMPILERS += copy_hdr
+
includes.files = $$HEADERS
includes.path = ../../include