Separate kritaui_export.h out of krita_export.h

parent ccfc1e71
......@@ -35,14 +35,6 @@
# endif
#endif
#ifndef KRITAUI_EXPORT
# ifdef MAKE_KRITAUI_LIB
# define KRITAUI_EXPORT KDE_EXPORT
# else
# define KRITAUI_EXPORT KDE_IMPORT
# endif
#endif
#ifndef KRITAIMAGE_EXPORT
# ifdef MAKE_KRITAIMAGE_LIB
# define KRITAIMAGE_EXPORT KDE_EXPORT
......@@ -54,7 +46,6 @@
#else // not windows
#define KRITASKETCH_EXPORT KDE_EXPORT
#define KRITAUI_EXPORT KDE_EXPORT
#define KRITAIMAGE_EXPORT KDE_EXPORT
#endif /* not windows */
......@@ -62,20 +53,16 @@
/* Now the same for Krita*_TEST_EXPORT, if compiling with unit tests enabled */
#ifdef COMPILING_TESTS
# if defined _WIN32 || defined _WIN64
# if defined(MAKE_KRITAUI_LIB) || defined(MAKE_KRITAIMAGE_LIB)
# if defined(MAKE_KRITAIMAGE_LIB)
# define KRITAIMAGE_TEST_EXPORT KDE_EXPORT
# define KRITAUI_TEST_EXPORT KDE_EXPORT
# else
# define KRITAIMAGE_TEST_EXPORT KDE_IMPORT
# define KRITAUI_TEST_EXPORT KDE_IMPORT
# endif
# else /* not windows */
# define KRITAIMAGE_TEST_EXPORT KDE_EXPORT
# define KRITAUI_TEST_EXPORT KDE_EXPORT
# endif
#else /* not compiling tests */
# define KRITAIMAGE_TEST_EXPORT
# define KRITAUI_TEST_EXPORT
#endif
#endif /* KRITA_EXPORT_H */
......@@ -484,6 +484,7 @@ if (APPLE)
endif ()
install( FILES
kritaui_export.h
canvas/kis_canvas2.h
canvas/kis_canvas_decoration.h
canvas/kis_coordinates_converter.h
......
......@@ -21,7 +21,7 @@
#define KIS_APPLICATION_H
#include <qtsingleapplication/qtsingleapplication.h>
#include "krita_export.h"
#include "kritaui_export.h"
class KisMainWindow;
class KisApplicationPrivate;
......
......@@ -41,7 +41,7 @@
#include <kis_painting_assistant.h>
#include <kis_debug.h>
#include "krita_export.h"
#include "kritaui_export.h"
class QString;
......
......@@ -24,7 +24,7 @@
#include <kservice.h>
#include <ksharedptr.h>
#include <QList>
#include "krita_export.h"
#include "kritaui_export.h"
class QStringList;
class KisDocument;
......
......@@ -21,7 +21,7 @@
#define KIS_DOCUMENT_SECTION_VIEW_H
#include <QTreeView>
#include "krita_export.h"
#include "kritaui_export.h"
class QStyleOptionViewItem;
class KisDocumentSectionModel;
......
......@@ -27,7 +27,7 @@ Boston, MA 02110-1301, USA.
#include "KisImportExportFilter.h"
#include "KisFilterEntry.h"
#include <KoStoreDevice.h>
#include "krita_export.h"
#include "kritaui_export.h"
#include "KisFilterChainLinkList.h"
class KTemporaryFile;
......
......@@ -24,7 +24,7 @@ Boston, MA 02110-1301, USA.
#include <kservice.h>
#include <ksharedptr.h>
#include <QList>
#include "krita_export.h"
#include "kritaui_export.h"
class QObject;
class QStringList;
......
......@@ -19,7 +19,7 @@ Boston, MA 02110-1301, USA.
#ifndef KIS_FILTERGRAPH_H
#define KIS_FILTERGRAPH_H
#include "krita_export.h"
#include "kritaui_export.h"
#include "KisFilterChain.h"
#include "KisFilterVertex.h"
#include <QByteArray>
......
......@@ -25,7 +25,7 @@ Boston, MA 02110-1301, USA.
#include <QMap>
#include <QPointer>
#include "krita_export.h"
#include "kritaui_export.h"
class KisFilterChain;
class KoUpdater;
......
......@@ -29,7 +29,7 @@ Boston, MA 02110-1301, USA.
#include "KisFilterChain.h"
#include "KisFilterGraph.h"
#include "krita_export.h"
#include "kritaui_export.h"
class KisDocument;
class KoProgressUpdater;
......
......@@ -21,7 +21,7 @@
#ifndef KIS_MAIN_WINDOW_H
#define KIS_MAIN_WINDOW_H
#include "krita_export.h"
#include "kritaui_export.h"
#include <QPointer>
......
......@@ -21,7 +21,7 @@
#ifndef KISPAGEWIDGETITEM_H
#define KISPAGEWIDGETITEM_H
#include "krita_export.h"
#include "kritaui_export.h"
class QWidget;
class QString;
......
......@@ -30,7 +30,7 @@
#include <kurl.h>
#include <kxmlguiclient.h>
#include "krita_export.h"
#include "kritaui_export.h"
#include <KisMainWindow.h>
......
......@@ -25,7 +25,7 @@
#include <QAbstractPrintDialog>
#include <QPrinter>
#include "krita_export.h"
#include "kritaui_export.h"
#include <kis_types.h>
......
......@@ -23,7 +23,7 @@
#define KIS_TEMPLATE_CREATE_DIA_H
#include <kdialog.h>
#include "krita_export.h"
#include "kritaui_export.h"
class QString;
class QPixmap;
......
......@@ -24,7 +24,7 @@
#include <QList>
#include <QStringList>
#include "krita_export.h"
#include "kritaui_export.h"
class KisTemplate;
......
......@@ -23,7 +23,7 @@
#include <QList>
#include <kcomponentdata.h>
#include "krita_export.h"
#include "kritaui_export.h"
class KisTemplate;
class KisTemplateGroup;
......
......@@ -27,7 +27,7 @@
#include <KoColorProfile.h>
#include <kis_types.h>
#include "krita_export.h"
#include "kritaui_export.h"
#include "widgets/kis_floating_message.h"
......
......@@ -28,7 +28,7 @@
#include <KoProgressUpdater.h>
#include <KoToolManager.h>
#include <krita_export.h>
#include <kritaui_export.h>
#include <kis_types.h>
#include "kis_floating_message.h"
......
......@@ -27,7 +27,7 @@
#include <KoColorConversionTransformation.h>
#include <KoCanvasBase.h>
#include <krita_export.h>
#include <kritaui_export.h>
#include <kis_types.h>
#include <KoPointerEvent.h>
......
......@@ -21,7 +21,7 @@
#include <KoCanvasControllerWidget.h>
#include "krita_export.h"
#include "kritaui_export.h"
#include "kis_types.h"
class KisView;
......
......@@ -22,7 +22,7 @@
#include <QObject>
#include <QPointer>
#include <krita_export.h>
#include <kritaui_export.h>
#include <kis_image.h>
#include <kis_canvas2.h>
#include <KisView.h>
......
......@@ -32,7 +32,7 @@ class QVariant;
class KisCoordinatesConverter;
class KisDisplayFilter;
#include "krita_export.h"
#include "kritaui_export.h"
class KRITAUI_EXPORT KisCanvasWidgetBase : public KisAbstractCanvasWidget
{
......
......@@ -23,7 +23,7 @@
#include <QTransform>
#include <KoZoomHandler.h>
#include "krita_export.h"
#include "kritaui_export.h"
#include "kis_types.h"
#define EPSILON 1e-6
......
......@@ -23,7 +23,7 @@
#include <QSharedPointer>
#include <opengl/kis_opengl.h>
#include <krita_export.h>
#include <kritaui_export.h>
#include "kis_exposure_gamma_correction_interface.h"
......
......@@ -20,7 +20,7 @@
#define __KIS_EXPOSURE_GAMMA_CORRECTION_INTERFACE_H
#include <QtGlobal>
#include <krita_export.h>
#include <kritaui_export.h>
/**
* A special interface for OCIO filter providing functionality for the
......
......@@ -25,7 +25,7 @@
#include <QPainter>
#include "kis_types.h"
#include <krita_export.h>
#include <kritaui_export.h>
#include "kis_action_manager.h"
#include "kis_action.h"
......
......@@ -24,7 +24,7 @@
#define KIS_PERSPECTIVE_GRID_DECORATION_H
#include "kis_canvas_decoration.h"
#include <krita_export.h>
#include <kritaui_export.h>
class KisView;
......
......@@ -24,7 +24,7 @@
#include "kis_canvas_decoration.h"
#include <QPainter>
#include <krita_export.h>
#include <kritaui_export.h>
class KisPerspectiveGridDecoration;
class KAction;
......
......@@ -20,7 +20,7 @@
#include <QObject>
#include <krita_export.h>
#include <kritaui_export.h>
#include <kis_shared.h>
#include "kis_update_info.h"
......
......@@ -22,7 +22,7 @@
#include <QObject>
#include "kis_types.h"
#include "krita_export.h"
#include "kritaui_export.h"
class KisNodeDummy;
......
......@@ -22,7 +22,7 @@
#include <QList>
#include <QMap>
#include "krita_export.h"
#include "kritaui_export.h"
#include "kis_types.h"
#include "kis_node.h"
......
......@@ -23,7 +23,7 @@
#include <KoShapeLayer.h>
#include <krita_export.h>
#include <kritaui_export.h>
#include <kis_types.h>
class KoViewConverter;
......
......@@ -24,7 +24,7 @@
#include <kis_types.h>
#include <kis_external_layer_iface.h>
#include <krita_export.h>
#include <kritaui_export.h>
class QRect;
class QIcon;
......
......@@ -26,7 +26,7 @@
#include <kis_selection_component.h>
#include <kis_types.h>
#include <krita_export.h>
#include <kritaui_export.h>
class KoStore;
class KoShapeManager;
......
......@@ -23,7 +23,7 @@
#include "kundo2command.h"
#include "krita_export.h"
#include "kritaui_export.h"
#include "kis_types.h"
class KoShape;
......
......@@ -20,7 +20,7 @@
#define KIS_ABSTRACT_INPUT_ACTION_H
#include <QHash>
#include "krita_export.h"
#include "kritaui_export.h"
class QPointF;
class QEvent;
......
......@@ -22,7 +22,7 @@
#include <Qt>
#include <QList>
#include <krita_export.h>
#include <kritaui_export.h>
class KisAbstractInputAction;
......
......@@ -20,7 +20,7 @@
#define KIS_INPUTMANAGER_H
#include <QObject>
#include <krita_export.h>
#include <kritaui_export.h>
class QPointF;
class QTabletEvent;
......
......@@ -22,7 +22,7 @@
#include <QObject>
#include "krita_export.h"
#include "kritaui_export.h"
class KisAbstractInputAction;
class KisInputProfile;
......
......@@ -22,7 +22,7 @@
#define KIS_TABLET_SUPPORT_WIN_H
#include <Qt>
#include <krita_export.h>
#include <kritaui_export.h>
#ifndef _WINDEF_
typedef unsigned long DWORD;
......
......@@ -19,7 +19,7 @@
#ifndef __KIS_TABLET_SUPPORT_X11_H
#define __KIS_TABLET_SUPPORT_X11_H
#include <krita_export.h>
#include <kritaui_export.h>
class KRITAUI_EXPORT KisTabletSupportX11
......
......@@ -24,7 +24,7 @@
#include <QPointF>
#include <QObject>
#include "krita_export.h"
#include "kritaui_export.h"
class KRITAUI_EXPORT KisAbstractPerspectiveGrid : public QObject
{
......
......@@ -20,7 +20,7 @@
#define KIS_ACTION_H
#include <kaction.h>
#include <krita_export.h>
#include <kritaui_export.h>
#include <kdebug.h>
class KisActionManager;
......
......@@ -20,7 +20,7 @@
#ifndef KIS_ACTION_MANAGER_H
#define KIS_ACTION_MANAGER_H
#include <krita_export.h>
#include <kritaui_export.h>
#include <QPointer>
......
......@@ -19,7 +19,7 @@
#ifndef __KIS_ASL_LAYER_STYLE_SERIALIZER_H
#define __KIS_ASL_LAYER_STYLE_SERIALIZER_H
#include "krita_export.h"
#include "kritaui_export.h"
class QIODevice;
class KoPattern;
......
......@@ -20,7 +20,7 @@
#define _KIS_BOOKMARKED_CONFIGURATIONS_EDITOR_H_
#include <QDialog>
#include <krita_export.h>
#include <kritaui_export.h>
class KisBookmarkedConfigurationsModel;
class KisSerializableConfiguration;
......
......@@ -21,7 +21,7 @@
#include <QAbstractListModel>
#include <krita_export.h>
#include <kritaui_export.h>
class KLocalizedString;
......
......@@ -23,7 +23,7 @@
#include <QObject>
#include <QPointer>
#include <krita_export.h>
#include <kritaui_export.h>
class KisViewManager;
class KisActionManager;
......
......@@ -26,7 +26,7 @@
#include <KoCanvasResourceManager.h>
#include "kis_types.h"
#include "krita_export.h"
#include "kritaui_export.h"
class KisWorkspaceResource;
class KoColorProfile;
......
......@@ -21,7 +21,7 @@
#include <QObject>
#include <QScopedPointer>
#include <krita_export.h>
#include <kritaui_export.h>
/**
......
......@@ -21,7 +21,7 @@
#ifndef _KIS_CATEGORIZED_ITEM_DELEGATE_H_
#define _KIS_CATEGORIZED_ITEM_DELEGATE_H_
#include <krita_export.h>
#include <kritaui_export.h>
#include <QIcon>
#include <QStyledItemDelegate>
......
......@@ -23,7 +23,7 @@
#include <QObject>
#include <QSize>
#include "kis_types.h"
#include <krita_export.h>
#include <kritaui_export.h>
class QImage;
class QRect;
......
......@@ -28,7 +28,7 @@
#include "kis_global.h"
#include "kis_properties_configuration.h"
#include "krita_export.h"
#include "kritaui_export.h"
class KoColorProfile;
class KoColorSpace;
......
......@@ -20,7 +20,7 @@
#include <QObject>
#include "krita_export.h"
#include "kritaui_export.h"
/**
* An object that emits a signal to inform interested parties that the
......
......@@ -22,7 +22,7 @@
#ifndef __kis_cursor_h__
#define __kis_cursor_h__
#include <krita_export.h>
#include <kritaui_export.h>
#include <QCursor>
......
......@@ -20,6 +20,7 @@
#define __KIS_DOCUMENT_UNDO_STORE_H
#include "kis_undo_store.h"
#include "kritaui_export.h"
class KisDocument;
......
......@@ -23,7 +23,7 @@
#include <QStringList>
#include <krita_export.h>
#include <kritaui_export.h>
#include <kcomponentdata.h>
#include <kaboutdata.h>
......
......@@ -18,7 +18,7 @@
#ifndef KIS_FILE_LAYER_H
#define KIS_FILE_LAYER_H
#include "krita_export.h"