Commit 733efc20 authored by Timothy M. Shead's avatar Timothy M. Shead
Browse files

COMP: ParaQ builds successfully using shared libs on Win32 (required to...

COMP: ParaQ builds successfully using shared libs on Win32 (required to support PVS Python wrappings)
parent 7b3ac0e6
......@@ -76,6 +76,7 @@ ADD_LIBRARY(QtTesting
pqSpinBoxEventTranslator.h
pqWidgetEventPlayer.h
pqWidgetEventTranslator.h
QtTestingExport.h
${MOC_BUILT_SOURCES}
${UI_BUILT_SOURCES}
)
......
/*
* Copyright 2004 Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
* license for use of this work by or on behalf of the
* U.S. Government. Redistribution and use in source and binary forms, with
* or without modification, are permitted provided that this Notice and any
* statement of authorship are reproduced on all copies.
*/
#ifndef _QtTestingExport_h
#define _QtTestingExport_h
#if defined(WIN32) && defined(PARAQ_BUILD_SHARED_LIBS)
# if defined(QtTesting_EXPORTS)
# define QTTESTING_EXPORT __declspec(dllexport)
# else
# define QTTESTING_EXPORT __declspec(dllimport)
# endif
#else
# define QTTESTING_EXPORT
#endif
#endif // !_QtTestingExport_h
......@@ -10,6 +10,8 @@
#ifndef _pqEventPlayer_h
#define _pqEventPlayer_h
#include "QtTestingExport.h"
#include <QString>
#include <QVector>
......@@ -17,7 +19,7 @@ class QObject;
class pqWidgetEventPlayer;
/// Manages translation of high-level ParaQ events to low-level Qt events, for playback of test-cases, demos, tutorials, etc.
class pqEventPlayer
class QTTESTING_EXPORT pqEventPlayer
{
public:
pqEventPlayer(QObject& RootObject);
......
......@@ -10,11 +10,12 @@
#ifndef _pqEventPlayerXML_h
#define _pqEventPlayerXML_h
#include "QtTestingExport.h"
#include <QString>
class pqEventPlayer;
class pqEventPlayerXML
class QTTESTING_EXPORT pqEventPlayerXML
{
public:
/// Loads an XML test case from a file, and plays it with the given player, returning true iff every command was successfully executed
......
......@@ -10,13 +10,14 @@
#ifndef _pqImageComparison_h
#define _pqImageComparison_h
#include "QtTestingExport.h"
#include <vtkIOStream.h>
class QString;
class vtkRenderWindow;
bool pqSaveScreenshot(vtkRenderWindow* RenderWindow, const QString& File);
bool pqCompareImage(vtkRenderWindow* RenderWindow, const QString& ReferenceImage, double Threshold, ostream& Output, const QString& TempDirectory);
QTTESTING_EXPORT bool pqSaveScreenshot(vtkRenderWindow* RenderWindow, const QString& File);
QTTESTING_EXPORT bool pqCompareImage(vtkRenderWindow* RenderWindow, const QString& ReferenceImage, double Threshold, ostream& Output, const QString& TempDirectory);
#endif // !_pqImageComparison_h
......@@ -10,9 +10,10 @@
#ifndef _pqRecordEventsDialog_h
#define _pqRecordEventsDialog_h
#include "QtTestingExport.h"
#include <QDialog>
class pqRecordEventsDialog :
class QTTESTING_EXPORT pqRecordEventsDialog :
public QDialog
{
Q_OBJECT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment