From a3cfcf58c882383a190aa26f87ebcc663087b1a5 Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Fri, 10 Apr 2015 21:55:20 +0200 Subject: [PATCH] refs #403 add BlackGui shared library build --- src/blackgui/blackgui.pro | 2 +- src/blackgui/blackguiexport.h | 27 +++++++++++++++++++ src/blackgui/components/aircraftcomponent.h | 3 ++- src/blackgui/components/atcstationcomponent.h | 3 ++- src/blackgui/components/audiocomponent.h | 3 ++- src/blackgui/components/audiosetupcomponent.h | 3 ++- .../components/audiovolumecomponent.h | 3 ++- src/blackgui/components/cockpitcomcomponent.h | 3 ++- src/blackgui/components/cockpitcomponent.h | 3 ++- .../components/cockpitinfoareacomponent.h | 3 ++- .../cockpittranspondermodeledscomponent.h | 3 ++- .../components/enablefordockwidgetinfoarea.h | 3 ++- src/blackgui/components/enableforruntime.h | 3 ++- src/blackgui/components/flightplancomponent.h | 3 ++- .../components/infobarstatuscomponent.h | 3 ++- src/blackgui/components/infowindowcomponent.h | 3 ++- src/blackgui/components/internalscomponent.h | 3 ++- .../components/invisibleinfoareacomponent.h | 3 ++- src/blackgui/components/logcomponent.h | 3 ++- src/blackgui/components/logincomponent.h | 3 ++- .../components/maininfoareacomponent.h | 3 ++- .../components/mainkeypadareacomponent.h | 3 ++- src/blackgui/components/mappingcomponent.h | 3 ++- src/blackgui/components/navigatordockwidget.h | 3 ++- .../components/remoteaircraftselector.h | 3 ++- src/blackgui/components/settingscomponent.h | 3 ++- .../components/settingsfsxcomponent.h | 3 ++- .../components/settingsnetworkcomponent.h | 3 ++- .../settingsnetworkserverscomponent.h | 3 ++- .../components/settingssimulatorcomponent.h | 3 ++- src/blackgui/components/simulatorcomponent.h | 3 ++- .../components/textmessagecomponent.h | 3 ++- src/blackgui/components/updatetimer.h | 3 ++- src/blackgui/components/usercomponent.h | 3 ++- src/blackgui/components/voiceroomscomponent.h | 3 ++- src/blackgui/dockwidget.h | 3 ++- src/blackgui/dockwidgetinfoarea.h | 3 ++- src/blackgui/dockwidgetinfobar.h | 3 ++- src/blackgui/enableforframelesswindow.h | 3 ++- src/blackgui/foreignwindows.h | 3 ++- src/blackgui/guiutility.h | 3 ++- src/blackgui/infoarea.h | 3 ++- src/blackgui/led.h | 3 ++- src/blackgui/levelmeter.h | 3 ++- src/blackgui/loginmodebuttons.h | 3 ++- src/blackgui/managedstatusbar.h | 3 ++- src/blackgui/models/aircraftmodelfilter.h | 3 ++- src/blackgui/models/aircraftmodellistmodel.h | 3 ++- src/blackgui/models/airportlistmodel.h | 3 ++- src/blackgui/models/atcstationlistmodel.h | 3 ++- src/blackgui/models/clientlistmodel.h | 3 ++- src/blackgui/models/columnformatters.h | 3 ++- src/blackgui/models/columns.h | 5 ++-- src/blackgui/models/keyboardkeylistmodel.h | 7 ++--- src/blackgui/models/listmodelbase.h | 3 ++- src/blackgui/models/listmodelfilter.h | 1 + .../models/namevariantpairlistmodel.h | 3 ++- src/blackgui/models/serverlistmodel.h | 3 ++- .../models/simulatedaircraftlistmodel.h | 3 ++- src/blackgui/models/statusmessagelistmodel.h | 3 ++- src/blackgui/models/textmessagelistmodel.h | 3 ++- src/blackgui/models/userlistmodel.h | 3 ++- src/blackgui/selcalcodeselector.h | 3 ++- src/blackgui/serverform.h | 3 ++- src/blackgui/serverlistselector.h | 3 ++- src/blackgui/showhidebar.h | 3 ++- src/blackgui/stylesheetutility.h | 3 ++- src/blackgui/textmessagetextedit.h | 3 ++- src/blackgui/ticklabel.h | 3 ++- src/blackgui/transpondercodespinbox.h | 3 ++- src/blackgui/transpondermodeselector.h | 3 ++- src/blackgui/uppercasevalidator.h | 3 ++- src/blackgui/views/aircraftmodelfilterform.h | 3 ++- src/blackgui/views/aircraftmodelview.h | 3 ++- src/blackgui/views/airportview.h | 3 ++- src/blackgui/views/atcstationview.h | 3 ++- src/blackgui/views/checkboxdelegate.h | 3 ++- src/blackgui/views/clientview.h | 3 ++- src/blackgui/views/filterdialog.h | 3 ++- src/blackgui/views/keyboardkeyview.h | 3 ++- src/blackgui/views/namevariantpairview.h | 3 ++- src/blackgui/views/serverview.h | 3 ++- src/blackgui/views/simulatedaircraftview.h | 3 ++- src/blackgui/views/statusmessageview.h | 3 ++- src/blackgui/views/textmessageview.h | 3 ++- src/blackgui/views/userview.h | 3 ++- src/blackgui/views/viewbase.h | 3 ++- src/blackgui/win/windowfinder_win.h | 3 ++- src/blackgui/windowfinder.h | 3 ++- 89 files changed, 204 insertions(+), 90 deletions(-) create mode 100644 src/blackgui/blackguiexport.h diff --git a/src/blackgui/blackgui.pro b/src/blackgui/blackgui.pro index c3548c8ee..1c254f824 100644 --- a/src/blackgui/blackgui.pro +++ b/src/blackgui/blackgui.pro @@ -20,7 +20,7 @@ precompile_header:!isEmpty(PRECOMPILED_HEADER) { DEFINES += USING_PCH } -DEFINES += LOG_IN_FILE +DEFINES += LOG_IN_FILE BUILD_BLACKGUI_LIB HEADERS += *.h SOURCES += *.cpp diff --git a/src/blackgui/blackguiexport.h b/src/blackgui/blackguiexport.h new file mode 100644 index 000000000..221578b7c --- /dev/null +++ b/src/blackgui/blackguiexport.h @@ -0,0 +1,27 @@ +/* Copyright (C) 2015 + * swift project Community / Contributors + * + * This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level + * directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project, + * including this file, may be copied, modified, propagated, or distributed except according to the terms + * contained in the LICENSE file. + */ + +//! \file + +#ifndef BLACKGUI_MACROS_H +#define BLACKGUI_MACROS_H + +#include + +#ifndef WITH_STATIC +# if defined(BUILD_BLACKGUI_LIB) +# define BLACKGUI_EXPORT Q_DECL_EXPORT +# else +# define BLACKGUI_EXPORT Q_DECL_IMPORT +# endif +#else +# define BLACKGUI_EXPORT +#endif + +#endif // BLACKGUI_MACROS_H diff --git a/src/blackgui/components/aircraftcomponent.h b/src/blackgui/components/aircraftcomponent.h index dad0787f5..1ba22b3d5 100644 --- a/src/blackgui/components/aircraftcomponent.h +++ b/src/blackgui/components/aircraftcomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_AIRCRAFTCOMPONENT_H #define BLACKGUI_AIRCRAFTCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "blackgui/components/enableforruntime.h" #include "blackgui/components/enablefordockwidgetinfoarea.h" #include "blackgui/components/updatetimer.h" @@ -26,7 +27,7 @@ namespace BlackGui namespace Components { //! Aircraft widget - class CAircraftComponent : + class BLACKGUI_EXPORT CAircraftComponent : public QTabWidget, public CEnableForDockWidgetInfoArea, public CEnableForRuntime diff --git a/src/blackgui/components/atcstationcomponent.h b/src/blackgui/components/atcstationcomponent.h index 2a46bd78c..c3862a08d 100644 --- a/src/blackgui/components/atcstationcomponent.h +++ b/src/blackgui/components/atcstationcomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_ATCSTATIONCOMPONENT_H #define BLACKGUI_ATCSTATIONCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "blackgui/components/enableforruntime.h" #include "blackgui/components/enablefordockwidgetinfoarea.h" #include "blackgui/components/updatetimer.h" @@ -29,7 +30,7 @@ namespace BlackGui /*! * ATC stations component */ - class CAtcStationComponent : + class BLACKGUI_EXPORT CAtcStationComponent : public QTabWidget, public CEnableForDockWidgetInfoArea, public CEnableForRuntime diff --git a/src/blackgui/components/audiocomponent.h b/src/blackgui/components/audiocomponent.h index b39a01b30..ac8a15c77 100644 --- a/src/blackgui/components/audiocomponent.h +++ b/src/blackgui/components/audiocomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_AUDIOCOMPONENT_H #define BLACKGUI_AUDIOCOMPONENT_H +#include "blackgui/blackguiexport.h" #include #include @@ -22,7 +23,7 @@ namespace BlackGui namespace Components { //! Audio component, volume, ... - class CAudioComponent : public QFrame + class BLACKGUI_EXPORT CAudioComponent : public QFrame { Q_OBJECT diff --git a/src/blackgui/components/audiosetupcomponent.h b/src/blackgui/components/audiosetupcomponent.h index 23bb5dce2..1964978a9 100644 --- a/src/blackgui/components/audiosetupcomponent.h +++ b/src/blackgui/components/audiosetupcomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_AUDIOSETUPCOMPONENT_H #define BLACKGUI_AUDIOSETUPCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "enableforruntime.h" #include "blackmisc/audio/audiodeviceinfolist.h" #include @@ -24,7 +25,7 @@ namespace BlackGui namespace Components { //! Audio setup such as input / output devices - class CAudioSetupComponent : + class BLACKGUI_EXPORT CAudioSetupComponent : public QFrame, public CEnableForRuntime { diff --git a/src/blackgui/components/audiovolumecomponent.h b/src/blackgui/components/audiovolumecomponent.h index 89c1c3a86..dd13c71e7 100644 --- a/src/blackgui/components/audiovolumecomponent.h +++ b/src/blackgui/components/audiovolumecomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_AUDIOVOLUME_H #define BLACKGUI_AUDIOVOLUME_H +#include "blackgui/blackguiexport.h" #include #include #include "enableforruntime.h" @@ -23,7 +24,7 @@ namespace BlackGui { //! Audio volume, mixer - class CAudioVolumeComponent : + class BLACKGUI_EXPORT CAudioVolumeComponent : public QFrame, public CEnableForRuntime { diff --git a/src/blackgui/components/cockpitcomcomponent.h b/src/blackgui/components/cockpitcomcomponent.h index 82a08603f..1978135a9 100644 --- a/src/blackgui/components/cockpitcomcomponent.h +++ b/src/blackgui/components/cockpitcomcomponent.h @@ -10,6 +10,7 @@ #ifndef BLACKGUI_COCKPITCOMCOMPONENT_H #define BLACKGUI_COCKPITCOMCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "enablefordockwidgetinfoarea.h" #include "enableforruntime.h" #include "blackmisc/aviation/aircraft.h" @@ -25,7 +26,7 @@ namespace BlackGui namespace Components { //! The main cockpit area - class CCockpitComComponent : + class BLACKGUI_EXPORT CCockpitComComponent : public QFrame, public CEnableForDockWidgetInfoArea, public CEnableForRuntime diff --git a/src/blackgui/components/cockpitcomponent.h b/src/blackgui/components/cockpitcomponent.h index 232d00624..c0dd132ee 100644 --- a/src/blackgui/components/cockpitcomponent.h +++ b/src/blackgui/components/cockpitcomponent.h @@ -10,6 +10,7 @@ #ifndef BLACKGUI_COCKPITCOMPONENT_H #define BLACKGUI_COCKPITCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "enablefordockwidgetinfoarea.h" #include #include @@ -21,7 +22,7 @@ namespace BlackGui namespace Components { //! Cockpit component: COM unit, show / hide bar, voice rooms - class CCockpitComponent : + class BLACKGUI_EXPORT CCockpitComponent : public QWidget, public CEnableForDockWidgetInfoArea { diff --git a/src/blackgui/components/cockpitinfoareacomponent.h b/src/blackgui/components/cockpitinfoareacomponent.h index a9b77d8d4..d2f348e5a 100644 --- a/src/blackgui/components/cockpitinfoareacomponent.h +++ b/src/blackgui/components/cockpitinfoareacomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_COCKPITINFOAREACOMPONENT_H #define BLACKGUI_COCKPITINFOAREACOMPONENT_H +#include "blackgui/blackguiexport.h" #include "../infoarea.h" #include #include @@ -23,7 +24,7 @@ namespace BlackGui { //! The cockpit itself is part of the main info area, but itself also an info area. //! hence windows can be docked in the cockpit too. - class CCockpitInfoAreaComponent : public BlackGui::CInfoArea + class BLACKGUI_EXPORT CCockpitInfoAreaComponent : public BlackGui::CInfoArea { Q_OBJECT diff --git a/src/blackgui/components/cockpittranspondermodeledscomponent.h b/src/blackgui/components/cockpittranspondermodeledscomponent.h index 34b736436..300b41399 100644 --- a/src/blackgui/components/cockpittranspondermodeledscomponent.h +++ b/src/blackgui/components/cockpittranspondermodeledscomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKMISC_COCKPITTRANSPONDERMODELEDSCOMPONENT_H #define BLACKMISC_COCKPITTRANSPONDERMODELEDSCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "enableforruntime.h" #include "../led.h" #include "blackmisc/aviation/aircraft.h" @@ -24,7 +25,7 @@ namespace BlackGui { //! LEDs representing transponder mode state - class CCockpitTransponderModeLedsComponent : public QFrame, public CEnableForRuntime + class BLACKGUI_EXPORT CCockpitTransponderModeLedsComponent : public QFrame, public CEnableForRuntime { Q_OBJECT diff --git a/src/blackgui/components/enablefordockwidgetinfoarea.h b/src/blackgui/components/enablefordockwidgetinfoarea.h index 80de906d2..e376687af 100644 --- a/src/blackgui/components/enablefordockwidgetinfoarea.h +++ b/src/blackgui/components/enablefordockwidgetinfoarea.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_ENABLEFORDOCKWIDGETINFOAREA_H #define BLACKGUI_ENABLEFORDOCKWIDGETINFOAREA_H +#include "blackgui/blackguiexport.h" #include "blackgui/dockwidgetinfoarea.h" #include "blackgui/infoarea.h" #include "blackgui/enableforframelesswindow.h" @@ -24,7 +25,7 @@ namespace BlackGui //! Helper class: If a component is residing in an dockable widget. //! This class provides access to its info area and dockable widget. - class CEnableForDockWidgetInfoArea + class BLACKGUI_EXPORT CEnableForDockWidgetInfoArea { public: //! Corresponding dockable widget in info area diff --git a/src/blackgui/components/enableforruntime.h b/src/blackgui/components/enableforruntime.h index 5c4f64217..fa4ee4a2a 100644 --- a/src/blackgui/components/enableforruntime.h +++ b/src/blackgui/components/enableforruntime.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_ENABLEFORRUNTIME_H #define BLACKGUI_ENABLEFORRUNTIME_H +#include "blackgui/blackguiexport.h" #include "blackcore/context_runtime.h" #include "blackmisc/notificationsounds.h" #include @@ -39,7 +40,7 @@ namespace BlackGui * the component widely independent from a central data provideer * \sa BlackCore::CRuntime */ - class CEnableForRuntime + class BLACKGUI_EXPORT CEnableForRuntime { public: //! Set runtime, usually set by runtime owner (must only be one, usually main window) diff --git a/src/blackgui/components/flightplancomponent.h b/src/blackgui/components/flightplancomponent.h index 4232e5419..cb37673dd 100644 --- a/src/blackgui/components/flightplancomponent.h +++ b/src/blackgui/components/flightplancomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_FLIGHTPLANCOMPONENT_H #define BLACKGUI_FLIGHTPLANCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "blackgui/components/enableforruntime.h" #include "blackmisc/aviation/aircraft.h" #include "blackmisc/aviation/flightplan.h" @@ -25,7 +26,7 @@ namespace BlackGui { //! Flight plan widget - class CFlightPlanComponent : + class BLACKGUI_EXPORT CFlightPlanComponent : public QTabWidget, public CEnableForRuntime { diff --git a/src/blackgui/components/infobarstatuscomponent.h b/src/blackgui/components/infobarstatuscomponent.h index f7bbea62b..9e74eaf1d 100644 --- a/src/blackgui/components/infobarstatuscomponent.h +++ b/src/blackgui/components/infobarstatuscomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_INFOBARSTATUSCOMPONENT_H #define BLACKGUI_INFOBARSTATUSCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "enableforruntime.h" #include "../led.h" #include @@ -23,7 +24,7 @@ namespace BlackGui namespace Components { //! Info bar displaying status (Network, Simulator, DBus) - class CInfoBarStatusComponent : + class BLACKGUI_EXPORT CInfoBarStatusComponent : public QFrame, public CEnableForRuntime { diff --git a/src/blackgui/components/infowindowcomponent.h b/src/blackgui/components/infowindowcomponent.h index 2a400c4c6..6763cfd29 100644 --- a/src/blackgui/components/infowindowcomponent.h +++ b/src/blackgui/components/infowindowcomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_INFOWINDOW_H #define BLACKGUI_INFOWINDOW_H +#include "blackgui/blackguiexport.h" #include "blackmisc/network/textmessage.h" #include "blackmisc/statusmessage.h" #include "blackmisc/variant.h" @@ -29,7 +30,7 @@ namespace BlackGui /*! * Multi purpose info window (like pop up window) */ - class CInfoWindowComponent : public QWizardPage + class BLACKGUI_EXPORT CInfoWindowComponent : public QWizardPage { Q_OBJECT diff --git a/src/blackgui/components/internalscomponent.h b/src/blackgui/components/internalscomponent.h index ea76ee02f..447330ade 100644 --- a/src/blackgui/components/internalscomponent.h +++ b/src/blackgui/components/internalscomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_INTERNALSCOMPONENT_H #define BLACKGUI_INTERNALSCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "enableforruntime.h" #include #include @@ -24,7 +25,7 @@ namespace BlackGui { //! Internals for debugging, statistics - class CInternalsComponent : + class BLACKGUI_EXPORT CInternalsComponent : public QWidget, public CEnableForRuntime { diff --git a/src/blackgui/components/invisibleinfoareacomponent.h b/src/blackgui/components/invisibleinfoareacomponent.h index 18e6978fa..48f03378d 100644 --- a/src/blackgui/components/invisibleinfoareacomponent.h +++ b/src/blackgui/components/invisibleinfoareacomponent.h @@ -10,6 +10,7 @@ #ifndef BLACKGUI_COMPONENTS_INVISIBLEINFOAREACOMPONENT_H #define BLACKGUI_COMPONENTS_INVISIBLEINFOAREACOMPONENT_H +#include "blackgui/blackguiexport.h" #include "blackgui/infoarea.h" #include "blackgui/components/navigatordockwidget.h" #include @@ -22,7 +23,7 @@ namespace BlackGui { //! Info area to carry info areas on visibile when floating - class CInvisibleInfoAreaComponent : public BlackGui::CInfoArea + class BLACKGUI_EXPORT CInvisibleInfoAreaComponent : public BlackGui::CInfoArea { Q_OBJECT diff --git a/src/blackgui/components/logcomponent.h b/src/blackgui/components/logcomponent.h index c508ffd1e..91791cf5a 100644 --- a/src/blackgui/components/logcomponent.h +++ b/src/blackgui/components/logcomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_LOGCOMPONENT_H #define BLACKGUI_LOGCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "enableforruntime.h" #include "blackmisc/statusmessagelist.h" @@ -26,7 +27,7 @@ namespace BlackGui { //! GUI displaying log and status messages - class CLogComponent : + class BLACKGUI_EXPORT CLogComponent : public QFrame, public CEnableForRuntime { diff --git a/src/blackgui/components/logincomponent.h b/src/blackgui/components/logincomponent.h index bd95f62ce..53cf89bbb 100644 --- a/src/blackgui/components/logincomponent.h +++ b/src/blackgui/components/logincomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_LOGINCOMPONENT_H #define BLACKGUI_LOGINCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "enableforruntime.h" #include "blackmisc/aviation/aircraft.h" #include "blackmisc/network/server.h" @@ -26,7 +27,7 @@ namespace BlackGui { //! Login component - class CLoginComponent : + class BLACKGUI_EXPORT CLoginComponent : public QFrame, public CEnableForRuntime { diff --git a/src/blackgui/components/maininfoareacomponent.h b/src/blackgui/components/maininfoareacomponent.h index b5d511694..9393cee93 100644 --- a/src/blackgui/components/maininfoareacomponent.h +++ b/src/blackgui/components/maininfoareacomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_MAININFOAREACOMPONENT_H #define BLACKGUI_MAININFOAREACOMPONENT_H +#include "blackgui/blackguiexport.h" #include "../infoarea.h" #include "allmaininfoareacomponents.h" #include @@ -24,7 +25,7 @@ namespace BlackGui namespace Components { //! Main info area - class CMainInfoAreaComponent : public BlackGui::CInfoArea + class BLACKGUI_EXPORT CMainInfoAreaComponent : public BlackGui::CInfoArea { Q_OBJECT diff --git a/src/blackgui/components/mainkeypadareacomponent.h b/src/blackgui/components/mainkeypadareacomponent.h index e4a76474c..23ac3a8f7 100644 --- a/src/blackgui/components/mainkeypadareacomponent.h +++ b/src/blackgui/components/mainkeypadareacomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_MAINKEYPADAREACOMPONENT_H #define BLACKGUI_MAINKEYPADAREACOMPONENT_H +#include "blackgui/blackguiexport.h" #include "maininfoareacomponent.h" #include "enableforruntime.h" #include "blackmisc/aviation/aircraft.h" @@ -29,7 +30,7 @@ namespace BlackGui //! Main keypad area as used with main info area //! \sa CMainInfoAreaComponent - class CMainKeypadAreaComponent : + class BLACKGUI_EXPORT CMainKeypadAreaComponent : public QFrame, public CEnableForRuntime { diff --git a/src/blackgui/components/mappingcomponent.h b/src/blackgui/components/mappingcomponent.h index 450539b93..30f64c56c 100644 --- a/src/blackgui/components/mappingcomponent.h +++ b/src/blackgui/components/mappingcomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_MAPPINGCOMPONENT_H #define BLACKGUI_MAPPINGCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "blackgui/components/enableforruntime.h" #include "blackgui/components/enablefordockwidgetinfoarea.h" #include "blackgui/views/checkboxdelegate.h" @@ -28,7 +29,7 @@ namespace BlackGui namespace Components { //! Mappings, models etc. - class CMappingComponent : + class BLACKGUI_EXPORT CMappingComponent : public QFrame, public CEnableForDockWidgetInfoArea, public CEnableForRuntime diff --git a/src/blackgui/components/navigatordockwidget.h b/src/blackgui/components/navigatordockwidget.h index 0a94adae1..3ed68a264 100644 --- a/src/blackgui/components/navigatordockwidget.h +++ b/src/blackgui/components/navigatordockwidget.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_COMPONENTS_NAVIGATORDOCKWIDGET_H #define BLACKGUI_COMPONENTS_NAVIGATORDOCKWIDGET_H +#include "blackgui/blackguiexport.h" #include "blackgui/dockwidgetinfoarea.h" #include #include @@ -24,7 +25,7 @@ namespace BlackGui { //! Dock widget for navigators - class CNavigatorDockWidget : public BlackGui::CDockWidgetInfoArea + class BLACKGUI_EXPORT CNavigatorDockWidget : public BlackGui::CDockWidgetInfoArea { Q_OBJECT diff --git a/src/blackgui/components/remoteaircraftselector.h b/src/blackgui/components/remoteaircraftselector.h index f9dde2bc5..0612fee41 100644 --- a/src/blackgui/components/remoteaircraftselector.h +++ b/src/blackgui/components/remoteaircraftselector.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_REMOTEAIRCRAFTSELECTOR_H #define BLACKGUI_REMOTEAIRCRAFTSELECTOR_H +#include "blackgui/blackguiexport.h" #include "enableforruntime.h" #include "blackmisc/aviation/callsign.h" #include "blackmisc/simulation/simulatedaircraftlist.h" @@ -27,7 +28,7 @@ namespace BlackGui namespace Components { //! Select a remote aircraft - class CRemoteAircraftSelector : public QFrame, public CEnableForRuntime + class BLACKGUI_EXPORT CRemoteAircraftSelector : public QFrame, public CEnableForRuntime { Q_OBJECT diff --git a/src/blackgui/components/settingscomponent.h b/src/blackgui/components/settingscomponent.h index c19436f3c..f2dc986d0 100644 --- a/src/blackgui/components/settingscomponent.h +++ b/src/blackgui/components/settingscomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_SETTINGSCOMPONENT_H #define BLACKGUI_SETTINGSCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "blackgui/components/enableforruntime.h" #include "blackmisc/network/server.h" #include "blackmisc/aviation/aircrafticao.h" @@ -28,7 +29,7 @@ namespace BlackGui { //! Settings component - class CSettingsComponent : + class BLACKGUI_EXPORT CSettingsComponent : public QTabWidget, public CEnableForRuntime { diff --git a/src/blackgui/components/settingsfsxcomponent.h b/src/blackgui/components/settingsfsxcomponent.h index 495afe5e6..e8df770b2 100644 --- a/src/blackgui/components/settingsfsxcomponent.h +++ b/src/blackgui/components/settingsfsxcomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_SETTINGSFSXCOMPONENT_H #define BLACKGUI_SETTINGSFSXCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "blackgui/components/enableforruntime.h" #include #include @@ -23,7 +24,7 @@ namespace BlackGui namespace Components { //! Settings for FSX - class CSettingsFsxComponent : public QFrame, public CEnableForRuntime + class BLACKGUI_EXPORT CSettingsFsxComponent : public QFrame, public CEnableForRuntime { Q_OBJECT diff --git a/src/blackgui/components/settingsnetworkcomponent.h b/src/blackgui/components/settingsnetworkcomponent.h index d9071bdb8..db5f1ef0c 100644 --- a/src/blackgui/components/settingsnetworkcomponent.h +++ b/src/blackgui/components/settingsnetworkcomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_SETTINGSNETWORKCOMPONENT_H #define BLACKGUI_SETTINGSNETWORKCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "blackgui/components/enableforruntime.h" #include @@ -23,7 +24,7 @@ namespace BlackGui { //! General settings for network - class CSettingsNetworkComponent : + class BLACKGUI_EXPORT CSettingsNetworkComponent : public QFrame, public CEnableForRuntime { diff --git a/src/blackgui/components/settingsnetworkserverscomponent.h b/src/blackgui/components/settingsnetworkserverscomponent.h index 74078635f..4bfbe9b50 100644 --- a/src/blackgui/components/settingsnetworkserverscomponent.h +++ b/src/blackgui/components/settingsnetworkserverscomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_SETTINGSNETWORKSERVERSCOMPONENT_H #define BLACKGUI_SETTINGSNETWORKSERVERSCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "blackgui/components/enableforruntime.h" #include #include @@ -23,7 +24,7 @@ namespace BlackGui namespace Components { //! Settings for network servers - class CSettingsNetworkServersComponent : + class BLACKGUI_EXPORT CSettingsNetworkServersComponent : public QFrame, public CEnableForRuntime { diff --git a/src/blackgui/components/settingssimulatorcomponent.h b/src/blackgui/components/settingssimulatorcomponent.h index f36565276..0309022ad 100644 --- a/src/blackgui/components/settingssimulatorcomponent.h +++ b/src/blackgui/components/settingssimulatorcomponent.h @@ -10,6 +10,7 @@ #ifndef BLACKGUI_SETTINGSSIMULATORCOMPONENT_H #define BLACKGUI_SETTINGSSIMULATORCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "blackmisc/simulation/setsimulator.h" #include "enableforruntime.h" #include "enableforruntime.h" @@ -24,7 +25,7 @@ namespace BlackGui /*! * All simulator settings component (GUI) */ - class CSettingsSimulatorComponent : public QFrame, public CEnableForRuntime + class BLACKGUI_EXPORT CSettingsSimulatorComponent : public QFrame, public CEnableForRuntime { Q_OBJECT diff --git a/src/blackgui/components/simulatorcomponent.h b/src/blackgui/components/simulatorcomponent.h index 7b442c78f..00d9011a5 100644 --- a/src/blackgui/components/simulatorcomponent.h +++ b/src/blackgui/components/simulatorcomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_SIMULATORCOMPONENT_H #define BLACKGUI_SIMULATORCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "enableforruntime.h" #include "blackmisc/icon.h" #include "blackgui/components/enablefordockwidgetinfoarea.h" @@ -27,7 +28,7 @@ namespace BlackGui { //! Simulator component - class CSimulatorComponent : + class BLACKGUI_EXPORT CSimulatorComponent : public QTabWidget, public CEnableForDockWidgetInfoArea, public CEnableForRuntime diff --git a/src/blackgui/components/textmessagecomponent.h b/src/blackgui/components/textmessagecomponent.h index 2109f6a96..3001ba990 100644 --- a/src/blackgui/components/textmessagecomponent.h +++ b/src/blackgui/components/textmessagecomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_TEXTMESSAGECOMPONENT_H #define BLACKGUI_TEXTMESSAGECOMPONENT_H +#include "blackgui/blackguiexport.h" #include "blackgui/components/enableforruntime.h" #include "blackgui/components/enablefordockwidgetinfoarea.h" #include "blackgui/textmessagetextedit.h" @@ -30,7 +31,7 @@ namespace BlackGui namespace Components { //! Text message widget - class CTextMessageComponent : + class BLACKGUI_EXPORT CTextMessageComponent : public QFrame, public CEnableForRuntime, public CEnableForDockWidgetInfoArea diff --git a/src/blackgui/components/updatetimer.h b/src/blackgui/components/updatetimer.h index be77d7a2f..1d2a5337f 100644 --- a/src/blackgui/components/updatetimer.h +++ b/src/blackgui/components/updatetimer.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_UPDATETIMER_H #define BLACKGUI_UPDATETIMER_H +#include "blackgui/blackguiexport.h" #include #include @@ -20,7 +21,7 @@ namespace BlackGui namespace Components { //! Timer used in components for updates - class CUpdateTimer: public QObject + class BLACKGUI_EXPORT CUpdateTimer: public QObject { Q_OBJECT diff --git a/src/blackgui/components/usercomponent.h b/src/blackgui/components/usercomponent.h index da1b87a6b..86df10945 100644 --- a/src/blackgui/components/usercomponent.h +++ b/src/blackgui/components/usercomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_USERCOMPONENT_H #define BLACKGUI_USERCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "blackgui/components/enableforruntime.h" #include "blackgui/components/enablefordockwidgetinfoarea.h" #include "blackgui/components/updatetimer.h" @@ -27,7 +28,7 @@ namespace BlackGui namespace Components { //! User componenet (users, clients) - class CUserComponent : + class BLACKGUI_EXPORT CUserComponent : public QTabWidget, public CEnableForDockWidgetInfoArea, public CEnableForRuntime diff --git a/src/blackgui/components/voiceroomscomponent.h b/src/blackgui/components/voiceroomscomponent.h index 8bf7112cc..8f0956eb2 100644 --- a/src/blackgui/components/voiceroomscomponent.h +++ b/src/blackgui/components/voiceroomscomponent.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_VOICEROOMSCOMPONENT_H #define BLACKGUI_VOICEROOMSCOMPONENT_H +#include "blackgui/blackguiexport.h" #include "enableforruntime.h" #include "blackmisc/audio/voiceroomlist.h" #include @@ -24,7 +25,7 @@ namespace BlackGui namespace Components { //! Displays the voice rooms - class CVoiceRoomsComponent : + class BLACKGUI_EXPORT CVoiceRoomsComponent : public QFrame, public CEnableForRuntime { diff --git a/src/blackgui/dockwidget.h b/src/blackgui/dockwidget.h index 4fe9880b4..56319fa7f 100644 --- a/src/blackgui/dockwidget.h +++ b/src/blackgui/dockwidget.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_DOCKWIDGET_H #define BLACKGUI_DOCKWIDGET_H +#include "blackguiexport.h" #include "managedstatusbar.h" #include "enableforframelesswindow.h" @@ -32,7 +33,7 @@ namespace BlackGui //! \sa CInfoArea //! \sa CDockWidgetInfoArea //! \sa CDockWidgetInfoBar - class CDockWidget : + class BLACKGUI_EXPORT CDockWidget : public QDockWidget, public CEnableForFramelessWindow { diff --git a/src/blackgui/dockwidgetinfoarea.h b/src/blackgui/dockwidgetinfoarea.h index 7fb0d62f4..6693d8bc1 100644 --- a/src/blackgui/dockwidgetinfoarea.h +++ b/src/blackgui/dockwidgetinfoarea.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_DOCKWIDGETINFOAREA_H #define BLACKGUI_DOCKWIDGETINFOAREA_H +#include "blackgui/blackguiexport.h" #include "blackgui/dockwidget.h" namespace BlackGui @@ -23,7 +24,7 @@ namespace BlackGui //! Specialized class for dock widgets serving as info area. //! \sa CDockWidgetInfoBar //! \sa CInfoArea - class CDockWidgetInfoArea : public CDockWidget + class BLACKGUI_EXPORT CDockWidgetInfoArea : public CDockWidget { Q_OBJECT diff --git a/src/blackgui/dockwidgetinfobar.h b/src/blackgui/dockwidgetinfobar.h index b6082dad6..112ed5f50 100644 --- a/src/blackgui/dockwidgetinfobar.h +++ b/src/blackgui/dockwidgetinfobar.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_DOCKWIDGETINFOBAR_H #define BLACKGUI_DOCKWIDGETINFOBAR_H +#include "blackgui/blackguiexport.h" #include "blackgui/dockwidget.h" namespace BlackGui @@ -20,7 +21,7 @@ namespace BlackGui //! Class for dock widgets in the info area, containing some specialized functionality //! \sa CDockWidgetInfoArea //! \sa CInfoArea - class CDockWidgetInfoBar : public CDockWidget + class BLACKGUI_EXPORT CDockWidgetInfoBar : public CDockWidget { Q_OBJECT diff --git a/src/blackgui/enableforframelesswindow.h b/src/blackgui/enableforframelesswindow.h index f0cdaaca6..a3034bc67 100644 --- a/src/blackgui/enableforframelesswindow.h +++ b/src/blackgui/enableforframelesswindow.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_ENABLEFORFRAMLESSWINDOW_H #define BLACKGUI_ENABLEFORFRAMLESSWINDOW_H +#include "blackgui/blackguiexport.h" #include #include #include @@ -26,7 +27,7 @@ namespace BlackGui //! Main window which can be frameless //! \details QMainWindows cannot be promoted. Hence a derived class does not work properly here. //! Furthermore frameless functionality is also required for CDockWidgets as well. - class CEnableForFramelessWindow + class BLACKGUI_EXPORT CEnableForFramelessWindow { public: //! Window modes diff --git a/src/blackgui/foreignwindows.h b/src/blackgui/foreignwindows.h index ea82d95a7..c5c08e35a 100644 --- a/src/blackgui/foreignwindows.h +++ b/src/blackgui/foreignwindows.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_FOREIGNWINDOWS_H #define BLACKGUI_FOREIGNWINDOWS_H +#include "blackgui/blackguiexport.h" #include "blackmisc/simulation/simulatorplugininfo.h" #include "windowfinder.h" #include @@ -21,7 +22,7 @@ namespace BlackGui { //! Foreign windows - class CForeignWindows + class BLACKGUI_EXPORT CForeignWindows { public: diff --git a/src/blackgui/guiutility.h b/src/blackgui/guiutility.h index a8e7d8567..2512a16b1 100644 --- a/src/blackgui/guiutility.h +++ b/src/blackgui/guiutility.h @@ -12,13 +12,14 @@ #ifndef BLACKGUI_GUIUTILITY_H #define BLACKGUI_GUIUTILITY_H +#include "blackgui/blackguiexport.h" #include #include "enableforframelesswindow.h" namespace BlackGui { //! GUI utilities - class CGuiUtility + class BLACKGUI_EXPORT CGuiUtility { public: diff --git a/src/blackgui/infoarea.h b/src/blackgui/infoarea.h index 7923fb658..547cd1754 100644 --- a/src/blackgui/infoarea.h +++ b/src/blackgui/infoarea.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_INFOAREA_H #define BLACKGUI_INFOAREA_H +#include "blackgui/blackguiexport.h" #include "dockwidgetinfoarea.h" #include "enableforframelesswindow.h" #include @@ -23,7 +24,7 @@ namespace BlackGui { //! Info area, hosting dockable widgets //! \sa CDockWidgetInfoArea - class CInfoArea : public QMainWindow, CEnableForFramelessWindow + class BLACKGUI_EXPORT CInfoArea : public QMainWindow, CEnableForFramelessWindow { Q_OBJECT diff --git a/src/blackgui/led.h b/src/blackgui/led.h index 68bc35094..73b7131da 100644 --- a/src/blackgui/led.h +++ b/src/blackgui/led.h @@ -14,6 +14,7 @@ #ifndef BLACKGUI_LED_H #define BLACKGUI_LED_H +#include "blackgui/blackguiexport.h" #include #include #include @@ -23,7 +24,7 @@ namespace BlackGui { //! Displaying an LED as widget. Non copyable. //! \remarks Based on qLed - class CLedWidget : public QWidget + class BLACKGUI_EXPORT CLedWidget : public QWidget { Q_OBJECT Q_ENUMS(LedColor) diff --git a/src/blackgui/levelmeter.h b/src/blackgui/levelmeter.h index aabc7d93f..34efbd6fe 100644 --- a/src/blackgui/levelmeter.h +++ b/src/blackgui/levelmeter.h @@ -14,6 +14,7 @@ #ifndef BLACKGUI_LEVELMETER_H #define BLACKGUI_LEVELMETER_H +#include "blackgui/blackguiexport.h" #include #include @@ -23,7 +24,7 @@ namespace BlackGui //! Widget which displays a vertical audio level meter, indicating the //! RMS and peak levels of the window of audio samples most recently analyzed //! by the Engine. - class CLevelMeter : public QWidget + class BLACKGUI_EXPORT CLevelMeter : public QWidget { Q_OBJECT public: diff --git a/src/blackgui/loginmodebuttons.h b/src/blackgui/loginmodebuttons.h index a3b9b2883..6d37458f7 100644 --- a/src/blackgui/loginmodebuttons.h +++ b/src/blackgui/loginmodebuttons.h @@ -12,6 +12,7 @@ #ifndef BLACKMISC_LOGINMODEBUTTONS_H #define BLACKMISC_LOGINMODEBUTTONS_H +#include "blackgui/blackguiexport.h" #include "blackcore/network.h" #include #include @@ -22,7 +23,7 @@ namespace Ui { class CLoginModeButtons; } namespace BlackGui { //! Display login modes (normal, stealth, ...) - class CLoginModeButtons : public QGroupBox + class BLACKGUI_EXPORT CLoginModeButtons : public QGroupBox { Q_OBJECT diff --git a/src/blackgui/managedstatusbar.h b/src/blackgui/managedstatusbar.h index de2926b86..f3ead616d 100644 --- a/src/blackgui/managedstatusbar.h +++ b/src/blackgui/managedstatusbar.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_MANAGEDSTATUSBAR_H #define BLACKGUI_MANAGEDSTATUSBAR_H +#include "blackgui/blackguiexport.h" #include "blackmisc/statusmessagelist.h" #include "blackmisc/statusmessage.h" @@ -24,7 +25,7 @@ namespace BlackGui { //! Managed status bar - class CManagedStatusBar : public QObject + class BLACKGUI_EXPORT CManagedStatusBar : public QObject { Q_OBJECT diff --git a/src/blackgui/models/aircraftmodelfilter.h b/src/blackgui/models/aircraftmodelfilter.h index e1cd684a9..37483445d 100644 --- a/src/blackgui/models/aircraftmodelfilter.h +++ b/src/blackgui/models/aircraftmodelfilter.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_AIRCRAFTMODELFILTER_H #define BLACKGUI_AIRCRAFTMODELFILTER_H +#include "blackgui/blackguiexport.h" #include "listmodelfilter.h" #include "blackmisc/simulation/aircraftmodellist.h" @@ -21,7 +22,7 @@ namespace BlackGui { //! Filter for aircraft models - class CAircraftModelFilter : public IModelFilter + class BLACKGUI_EXPORT CAircraftModelFilter : public IModelFilter { public: //! Constructor diff --git a/src/blackgui/models/aircraftmodellistmodel.h b/src/blackgui/models/aircraftmodellistmodel.h index 3b924d2f5..6bfb5d41c 100644 --- a/src/blackgui/models/aircraftmodellistmodel.h +++ b/src/blackgui/models/aircraftmodellistmodel.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_AIRCRAFTMODELLISTMODEL_H #define BLACKGUI_AIRCRAFTMODELLISTMODEL_H +#include "blackgui/blackguiexport.h" #include "blackmisc/simulation/aircraftmodellist.h" #include "blackgui/models/listmodelbase.h" #include @@ -23,7 +24,7 @@ namespace BlackGui { //! Aircraft model list model - class CAircraftModelListModel : public CListModelBase + class BLACKGUI_EXPORT CAircraftModelListModel : public CListModelBase { public: diff --git a/src/blackgui/models/airportlistmodel.h b/src/blackgui/models/airportlistmodel.h index c6a0c3b03..ca17e038f 100644 --- a/src/blackgui/models/airportlistmodel.h +++ b/src/blackgui/models/airportlistmodel.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_AIRPORTLISTMODEL_H #define BLACKGUI_AIRPORTLISTMODEL_H +#include "blackgui/blackguiexport.h" #include #include "blackmisc/aviation/airportlist.h" #include "blackgui/models/listmodelbase.h" @@ -24,7 +25,7 @@ namespace BlackGui /*! * Airport list model */ - class CAirportListModel : public CListModelBase + class BLACKGUI_EXPORT CAirportListModel : public CListModelBase { public: diff --git a/src/blackgui/models/atcstationlistmodel.h b/src/blackgui/models/atcstationlistmodel.h index 8ad2ff11b..394f4a772 100644 --- a/src/blackgui/models/atcstationlistmodel.h +++ b/src/blackgui/models/atcstationlistmodel.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_ATCLISTMODEL_H #define BLACKGUI_ATCLISTMODEL_H +#include "blackgui/blackguiexport.h" #include "blackmisc/aviation/atcstationlist.h" #include "blackgui/models/listmodelbase.h" #include @@ -23,7 +24,7 @@ namespace BlackGui namespace Models { //! ATC list model - class CAtcStationListModel : public CListModelBase + class BLACKGUI_EXPORT CAtcStationListModel : public CListModelBase { public: diff --git a/src/blackgui/models/clientlistmodel.h b/src/blackgui/models/clientlistmodel.h index 8ee22e8da..6be7a2196 100644 --- a/src/blackgui/models/clientlistmodel.h +++ b/src/blackgui/models/clientlistmodel.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_CLIENTLISTMODEL_H #define BLACKGUI_CLIENTLISTMODEL_H +#include "blackgui/blackguiexport.h" #include #include "blackmisc/network/clientlist.h" #include "blackgui/models/listmodelbase.h" @@ -21,7 +22,7 @@ namespace BlackGui namespace Models { //! Client list model - class CClientListModel : public CListModelBase + class BLACKGUI_EXPORT CClientListModel : public CListModelBase { public: diff --git a/src/blackgui/models/columnformatters.h b/src/blackgui/models/columnformatters.h index 0ce3f3112..da649e522 100644 --- a/src/blackgui/models/columnformatters.h +++ b/src/blackgui/models/columnformatters.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_COLUMNFORMATTERS_H #define BLACKGUI_COLUMNFORMATTERS_H +#include "blackgui/blackguiexport.h" #include "blackgui/led.h" #include "blackmisc/pq/pq.h" #include "blackmisc/aviation/comsystem.h" @@ -26,7 +27,7 @@ namespace BlackGui namespace Models { //! Column formatter default implementation, also serving as interface - class CDefaultFormatter + class BLACKGUI_EXPORT CDefaultFormatter { public: //! Constructor diff --git a/src/blackgui/models/columns.h b/src/blackgui/models/columns.h index 7f35b8ec7..19ed1fa6e 100644 --- a/src/blackgui/models/columns.h +++ b/src/blackgui/models/columns.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_COLUMNS_H #define BLACKGUI_COLUMNS_H +#include "blackgui/blackguiexport.h" #include "blackmisc/valueobject.h" // for qHash overload, include before Qt stuff due GCC issue #include "blackmisc/collection.h" #include "blackmisc/propertyindex.h" @@ -26,7 +27,7 @@ namespace BlackGui namespace Models { //! Single column - class CColumn + class BLACKGUI_EXPORT CColumn { public: //! Constructor @@ -118,7 +119,7 @@ namespace BlackGui /*! * Header data for a table */ - class CColumns : public QObject + class BLACKGUI_EXPORT CColumns : public QObject { public: /*! diff --git a/src/blackgui/models/keyboardkeylistmodel.h b/src/blackgui/models/keyboardkeylistmodel.h index a19382983..3e3a60e1b 100644 --- a/src/blackgui/models/keyboardkeylistmodel.h +++ b/src/blackgui/models/keyboardkeylistmodel.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_KEYBOARDKEYLISTMODEL_H #define BLACKGUI_KEYBOARDKEYLISTMODEL_H +#include "blackgui/blackguiexport.h" #include "blackmisc/hardware/keyboardkeylist.h" #include "blackmisc/setkeyboardhotkeylist.h" #include "blackgui/models/listmodelbase.h" @@ -27,7 +28,7 @@ namespace BlackGui /*! * Keyboard key list model */ - class CKeyboardKeyListModel : public CListModelBase + class BLACKGUI_EXPORT CKeyboardKeyListModel : public CListModelBase { public: @@ -51,7 +52,7 @@ namespace BlackGui /*! * Special edit delegate for key sequence */ - class CKeyboardKeyItemDelegate : public QItemDelegate + class BLACKGUI_EXPORT CKeyboardKeyItemDelegate : public QItemDelegate { Q_OBJECT @@ -79,7 +80,7 @@ namespace BlackGui /*! * Special edit widget for key sequence */ - class CKeyboardLineEdit : public QLineEdit + class BLACKGUI_EXPORT CKeyboardLineEdit : public QLineEdit { Q_OBJECT diff --git a/src/blackgui/models/listmodelbase.h b/src/blackgui/models/listmodelbase.h index 0e5001f03..089048ff4 100644 --- a/src/blackgui/models/listmodelbase.h +++ b/src/blackgui/models/listmodelbase.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_LISTMODELBASE_H #define BLACKGUI_LISTMODELBASE_H +#include "blackgui/blackguiexport.h" #include "blackgui/models/columns.h" #include "blackgui/models/listmodelfilter.h" #include "blackmisc/worker.h" @@ -26,7 +27,7 @@ namespace BlackGui namespace Models { //! Non templated base class, allows Q_OBJECT and signals to be used - class CListModelBaseNonTemplate : public QAbstractItemModel + class BLACKGUI_EXPORT CListModelBaseNonTemplate : public QAbstractItemModel { Q_OBJECT diff --git a/src/blackgui/models/listmodelfilter.h b/src/blackgui/models/listmodelfilter.h index f1e907678..8e6dbeab6 100644 --- a/src/blackgui/models/listmodelfilter.h +++ b/src/blackgui/models/listmodelfilter.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_LISTMODELFILTER_H #define BLACKGUI_LISTMODELFILTER_H +#include "blackgui/blackguiexport.h" #include namespace BlackGui diff --git a/src/blackgui/models/namevariantpairlistmodel.h b/src/blackgui/models/namevariantpairlistmodel.h index 9a3f2ca9f..f7dd7ad08 100644 --- a/src/blackgui/models/namevariantpairlistmodel.h +++ b/src/blackgui/models/namevariantpairlistmodel.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_NAMEVARIANTLISTMODEL_H #define BLACKGUI_NAMEVARIANTLISTMODEL_H +#include "blackgui/blackguiexport.h" #include "blackmisc/namevariantpairlist.h" #include "blackgui/models/listmodelbase.h" #include @@ -23,7 +24,7 @@ namespace BlackGui { //! Simple model displaying name / variant values - class CNameVariantPairModel : public CListModelBase + class BLACKGUI_EXPORT CNameVariantPairModel : public CListModelBase { public: diff --git a/src/blackgui/models/serverlistmodel.h b/src/blackgui/models/serverlistmodel.h index b0beedb53..3cb74554b 100644 --- a/src/blackgui/models/serverlistmodel.h +++ b/src/blackgui/models/serverlistmodel.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_SERVERLISTMODEL_H #define BLACKGUI_SERVERLISTMODEL_H +#include "blackgui/blackguiexport.h" #include "blackmisc/network/serverlist.h" #include "blackgui/models/listmodelbase.h" #include @@ -21,7 +22,7 @@ namespace BlackGui namespace Models { //! Server list model - class CServerListModel : public CListModelBase + class BLACKGUI_EXPORT CServerListModel : public CListModelBase { public: diff --git a/src/blackgui/models/simulatedaircraftlistmodel.h b/src/blackgui/models/simulatedaircraftlistmodel.h index 86e3f23e4..cb250c2b0 100644 --- a/src/blackgui/models/simulatedaircraftlistmodel.h +++ b/src/blackgui/models/simulatedaircraftlistmodel.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_SIMULATEDAIRCRAFTLISTMODEL_H #define BLACKGUI_SIMULATEDAIRCRAFTLISTMODEL_H +#include "blackgui/blackguiexport.h" #include "blackmisc/simulation/simulatedaircraftlist.h" #include "blackgui/models/listmodelbase.h" #include @@ -23,7 +24,7 @@ namespace BlackGui { //! Aircraft list model - class CSimulatedAircraftListModel : public CListModelBase + class BLACKGUI_EXPORT CSimulatedAircraftListModel : public CListModelBase { public: diff --git a/src/blackgui/models/statusmessagelistmodel.h b/src/blackgui/models/statusmessagelistmodel.h index 3cbe5eabc..a4de65d8c 100644 --- a/src/blackgui/models/statusmessagelistmodel.h +++ b/src/blackgui/models/statusmessagelistmodel.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_STATUSMESSAGELISTMODEL_H #define BLACKGUI_STATUSMESSAGELISTMODEL_H +#include "blackgui/blackguiexport.h" #include #include #include "blackmisc/statusmessagelist.h" @@ -24,7 +25,7 @@ namespace BlackGui /*! * Server list model */ - class CStatusMessageListModel : public CListModelBase + class BLACKGUI_EXPORT CStatusMessageListModel : public CListModelBase { public: diff --git a/src/blackgui/models/textmessagelistmodel.h b/src/blackgui/models/textmessagelistmodel.h index 4fd180c80..bee42abc8 100644 --- a/src/blackgui/models/textmessagelistmodel.h +++ b/src/blackgui/models/textmessagelistmodel.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_TEXTMESSAGELISTMODEL_H #define BLACKGUI_TEXTMESSAGELISTMODEL_H +#include "blackgui/blackguiexport.h" #include "blackmisc/network/textmessagelist.h" #include "blackgui/models/listmodelbase.h" #include @@ -23,7 +24,7 @@ namespace BlackGui namespace Models { //! ATC list model - class CTextMessageListModel : public CListModelBase + class BLACKGUI_EXPORT CTextMessageListModel : public CListModelBase { public: diff --git a/src/blackgui/models/userlistmodel.h b/src/blackgui/models/userlistmodel.h index f06ee450a..7785fd9b2 100644 --- a/src/blackgui/models/userlistmodel.h +++ b/src/blackgui/models/userlistmodel.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_USERLISTMODEL_H #define BLACKGUI_USERLISTMODEL_H +#include "blackgui/blackguiexport.h" #include #include "blackmisc/network/userlist.h" #include "blackgui/models/listmodelbase.h" @@ -23,7 +24,7 @@ namespace BlackGui /*! * User list model */ - class CUserListModel : public CListModelBase + class BLACKGUI_EXPORT CUserListModel : public CListModelBase { public: diff --git a/src/blackgui/selcalcodeselector.h b/src/blackgui/selcalcodeselector.h index f741cd16e..fb7df25ac 100644 --- a/src/blackgui/selcalcodeselector.h +++ b/src/blackgui/selcalcodeselector.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_SELCALCODESELECTOR_H #define BLACKGUI_SELCALCODESELECTOR_H +#include "blackgui/blackguiexport.h" #include "blackmisc/aviation/selcal.h" #include #include @@ -21,7 +22,7 @@ namespace BlackGui { //! SELCAL mode selector - class CSelcalCodeSelector : public QFrame + class BLACKGUI_EXPORT CSelcalCodeSelector : public QFrame { Q_OBJECT diff --git a/src/blackgui/serverform.h b/src/blackgui/serverform.h index 43445e5aa..6ea313257 100644 --- a/src/blackgui/serverform.h +++ b/src/blackgui/serverform.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_NETWORKSERVERFORM_H #define BLACKGUI_NETWORKSERVERFORM_H +#include "blackgui/blackguiexport.h" #include "blackmisc/network/server.h" #include "blackmisc/statusmessagelist.h" #include @@ -23,7 +24,7 @@ namespace BlackGui { //! Server form - class CServerForm : public QFrame + class BLACKGUI_EXPORT CServerForm : public QFrame { Q_OBJECT diff --git a/src/blackgui/serverlistselector.h b/src/blackgui/serverlistselector.h index 7a65ab13c..cb3ad775d 100644 --- a/src/blackgui/serverlistselector.h +++ b/src/blackgui/serverlistselector.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_SERVERLISTSELECTOR_H #define BLACKGUI_SERVERLISTSELECTOR_H +#include "blackgui/blackguiexport.h" #include #include @@ -20,7 +21,7 @@ namespace BlackGui { //! List of servers - class CServerListSelector : public QComboBox + class BLACKGUI_EXPORT CServerListSelector : public QComboBox { Q_OBJECT diff --git a/src/blackgui/showhidebar.h b/src/blackgui/showhidebar.h index b8f9de92b..352142b85 100644 --- a/src/blackgui/showhidebar.h +++ b/src/blackgui/showhidebar.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_SHOWHIDEBAR_H #define BLACKGUI_SHOWHIDEBAR_H +#include "blackgui/blackguiexport.h" #include namespace Ui { class CShowHideBar; } @@ -19,7 +20,7 @@ namespace Ui { class CShowHideBar; } namespace BlackGui { //! Show or hide (expand / collapse) another section - class CShowHideBar : public QFrame + class BLACKGUI_EXPORT CShowHideBar : public QFrame { Q_OBJECT diff --git a/src/blackgui/stylesheetutility.h b/src/blackgui/stylesheetutility.h index dc1080445..28b7bf7c1 100644 --- a/src/blackgui/stylesheetutility.h +++ b/src/blackgui/stylesheetutility.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_STYLESHEETUTILITY_H #define BLACKGUI_STYLESHEETUTILITY_H +#include "blackgui/blackguiexport.h" #include #include #include @@ -23,7 +24,7 @@ namespace BlackGui { //! Reads and provides style sheets - class CStyleSheetUtility : public QObject + class BLACKGUI_EXPORT CStyleSheetUtility : public QObject { Q_OBJECT diff --git a/src/blackgui/textmessagetextedit.h b/src/blackgui/textmessagetextedit.h index 930f53043..89419bc05 100644 --- a/src/blackgui/textmessagetextedit.h +++ b/src/blackgui/textmessagetextedit.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_TEXTMESSAGETEXTEDIT_H #define BLACKGUI_TEXTMESSAGETEXTEDIT_H +#include "blackgui/blackguiexport.h" #include "blackmisc/network/textmessagelist.h" #include #include @@ -19,7 +20,7 @@ namespace BlackGui { //! Specialized text edit for displaying text messages - class CTextMessageTextEdit : public QTextEdit + class BLACKGUI_EXPORT CTextMessageTextEdit : public QTextEdit { public: //! Constructor diff --git a/src/blackgui/ticklabel.h b/src/blackgui/ticklabel.h index b689a7999..7aae5a649 100644 --- a/src/blackgui/ticklabel.h +++ b/src/blackgui/ticklabel.h @@ -12,6 +12,7 @@ #ifndef TICKLABEL_H #define TICKLABEL_H +#include "blackgui/blackguiexport.h" #include "blackmisc/icons.h" #include #include @@ -19,7 +20,7 @@ namespace BlackGui { //! Representing a ticked or crossed icon - class CTickLabel : public QLabel + class BLACKGUI_EXPORT CTickLabel : public QLabel { Q_OBJECT diff --git a/src/blackgui/transpondercodespinbox.h b/src/blackgui/transpondercodespinbox.h index 76890f31f..77b9f0ede 100644 --- a/src/blackgui/transpondercodespinbox.h +++ b/src/blackgui/transpondercodespinbox.h @@ -12,13 +12,14 @@ #ifndef BLACKGUI_TRANSPONDERCODESPINBOX_H #define BLACKGUI_TRANSPONDERCODESPINBOX_H +#include "blackgui/blackguiexport.h" #include namespace BlackGui { //! Specialized spin box for Transponder codes - class CTransponderCodeSpinBox : public QSpinBox + class BLACKGUI_EXPORT CTransponderCodeSpinBox : public QSpinBox { Q_OBJECT public: diff --git a/src/blackgui/transpondermodeselector.h b/src/blackgui/transpondermodeselector.h index b467a5177..05edd80d8 100644 --- a/src/blackgui/transpondermodeselector.h +++ b/src/blackgui/transpondermodeselector.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_TRANSPONDERMODESELECTOR_H #define BLACKGUI_TRANSPONDERMODESELECTOR_H +#include "blackgui/blackguiexport.h" #include "blackmisc/aviation/transponder.h" #include #include @@ -23,7 +24,7 @@ namespace BlackGui //! Selector for the transponder mode //! \remarks features ident reset - class CTransponderModeSelector : public QComboBox + class BLACKGUI_EXPORT CTransponderModeSelector : public QComboBox { Q_OBJECT diff --git a/src/blackgui/uppercasevalidator.h b/src/blackgui/uppercasevalidator.h index 3dff68ea7..c81d2c245 100644 --- a/src/blackgui/uppercasevalidator.h +++ b/src/blackgui/uppercasevalidator.h @@ -12,12 +12,13 @@ #ifndef BLACKGUI_UPPERCASEVALIDATOR_H #define BLACKGUI_UPPERCASEVALIDATOR_H +#include "blackgui/blackguiexport.h" #include namespace BlackGui { //! Forces uppercase - class CUpperCaseValidator : public QValidator + class BLACKGUI_EXPORT CUpperCaseValidator : public QValidator { public: diff --git a/src/blackgui/views/aircraftmodelfilterform.h b/src/blackgui/views/aircraftmodelfilterform.h index 27291710f..97159fe3a 100644 --- a/src/blackgui/views/aircraftmodelfilterform.h +++ b/src/blackgui/views/aircraftmodelfilterform.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_AIRCRAFTMODELFILTERFORM_H #define BLACKGUI_AIRCRAFTMODELFILTERFORM_H +#include "blackgui/blackguiexport.h" #include "filterdialog.h" #include "blackgui/models/aircraftmodelfilter.h" #include @@ -26,7 +27,7 @@ namespace BlackGui namespace Views { //! Form for a aircraft model filter - class CAircraftModelFilterForm : public CFilterDialog + class BLACKGUI_EXPORT CAircraftModelFilterForm : public CFilterDialog { Q_OBJECT diff --git a/src/blackgui/views/aircraftmodelview.h b/src/blackgui/views/aircraftmodelview.h index 43cf586d9..6700e61bf 100644 --- a/src/blackgui/views/aircraftmodelview.h +++ b/src/blackgui/views/aircraftmodelview.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_AIRCRAFTMODELVIEW_H #define BLACKGUI_AIRCRAFTMODELVIEW_H +#include "blackgui/blackguiexport.h" #include "aircraftmodelfilterform.h" #include "viewbase.h" #include "../models/aircraftmodellistmodel.h" @@ -21,7 +22,7 @@ namespace BlackGui namespace Views { //! Aircrafts view - class CAircraftModelView : public CViewBase + class BLACKGUI_EXPORT CAircraftModelView : public CViewBase { Q_OBJECT diff --git a/src/blackgui/views/airportview.h b/src/blackgui/views/airportview.h index adcab540d..10fb287c1 100644 --- a/src/blackgui/views/airportview.h +++ b/src/blackgui/views/airportview.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_AIRPORTVIEW_H #define BLACKGUI_AIRPORTVIEW_H +#include "blackgui/blackguiexport.h" #include "viewbase.h" #include "../models/airportlistmodel.h" @@ -20,7 +21,7 @@ namespace BlackGui namespace Views { //! Airports view - class CAirportView : public CViewBase + class BLACKGUI_EXPORT CAirportView : public CViewBase { public: diff --git a/src/blackgui/views/atcstationview.h b/src/blackgui/views/atcstationview.h index 8c3a2f787..0bb9b1ffc 100644 --- a/src/blackgui/views/atcstationview.h +++ b/src/blackgui/views/atcstationview.h @@ -12,6 +12,7 @@ //! \file +#include "blackgui/blackguiexport.h" #include "viewbase.h" #include "../models/atcstationlistmodel.h" #include "blackmisc/project.h" @@ -21,7 +22,7 @@ namespace BlackGui namespace Views { //! ATC stations view - class CAtcStationView : public CViewBase + class BLACKGUI_EXPORT CAtcStationView : public CViewBase { Q_OBJECT diff --git a/src/blackgui/views/checkboxdelegate.h b/src/blackgui/views/checkboxdelegate.h index 882cd86d1..965332d53 100644 --- a/src/blackgui/views/checkboxdelegate.h +++ b/src/blackgui/views/checkboxdelegate.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_CCOLUMNCHECKBOXDELEGATE_H #define BLACKGUI_CCOLUMNCHECKBOXDELEGATE_H +#include "blackgui/blackguiexport.h" #include #include @@ -21,7 +22,7 @@ namespace BlackGui { //! CheckBox for single column - class CCheckBoxDelegate : public QItemDelegate + class BLACKGUI_EXPORT CCheckBoxDelegate : public QItemDelegate { Q_OBJECT diff --git a/src/blackgui/views/clientview.h b/src/blackgui/views/clientview.h index 6325bc7a3..ef0b77ce5 100644 --- a/src/blackgui/views/clientview.h +++ b/src/blackgui/views/clientview.h @@ -12,6 +12,7 @@ //! \file +#include "blackgui/blackguiexport.h" #include "viewbase.h" #include "../models/clientlistmodel.h" @@ -20,7 +21,7 @@ namespace BlackGui namespace Views { //! Client view - class CClientView : public CViewBase + class BLACKGUI_EXPORT CClientView : public CViewBase { public: //! Constructor diff --git a/src/blackgui/views/filterdialog.h b/src/blackgui/views/filterdialog.h index 9d0b87e52..80fa5c3c0 100644 --- a/src/blackgui/views/filterdialog.h +++ b/src/blackgui/views/filterdialog.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_FILTERDIALOG_H #define BLACKGUI_FILTERDIALOG_H +#include "blackgui/blackguiexport.h" #include namespace BlackGui @@ -19,7 +20,7 @@ namespace BlackGui namespace Views { //! Base for filter dialog - class CFilterDialog : public QDialog + class BLACKGUI_EXPORT CFilterDialog : public QDialog { public: //! Constructor diff --git a/src/blackgui/views/keyboardkeyview.h b/src/blackgui/views/keyboardkeyview.h index 298847dd2..a585b7170 100644 --- a/src/blackgui/views/keyboardkeyview.h +++ b/src/blackgui/views/keyboardkeyview.h @@ -12,6 +12,7 @@ //! \file +#include "blackgui/blackguiexport.h" #include "viewbase.h" #include "../models/keyboardkeylistmodel.h" @@ -20,7 +21,7 @@ namespace BlackGui namespace Views { //! Keyboard key view - class CKeyboardKeyView : public CViewBase + class BLACKGUI_EXPORT CKeyboardKeyView : public CViewBase { public: diff --git a/src/blackgui/views/namevariantpairview.h b/src/blackgui/views/namevariantpairview.h index 911f61185..c99b5f4f6 100644 --- a/src/blackgui/views/namevariantpairview.h +++ b/src/blackgui/views/namevariantpairview.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_NAMEVARIANTPAIRVIEW_H #define BLACKGUI_NAMEVARIANTPAIRVIEW_H +#include "blackgui/blackguiexport.h" #include "viewbase.h" #include "../models/namevariantpairlistmodel.h" @@ -20,7 +21,7 @@ namespace BlackGui namespace Views { //! User view - class CNameVariantPairView : public CViewBase + class BLACKGUI_EXPORT CNameVariantPairView : public CViewBase { public: diff --git a/src/blackgui/views/serverview.h b/src/blackgui/views/serverview.h index 6f78c466f..781f4b43f 100644 --- a/src/blackgui/views/serverview.h +++ b/src/blackgui/views/serverview.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_SERVERVIEW_H #define BLACKGUI_SERVERVIEW_H +#include "blackgui/blackguiexport.h" #include "viewbase.h" #include "../models/serverlistmodel.h" @@ -20,7 +21,7 @@ namespace BlackGui namespace Views { //! Network servers - class CServerView : public CViewBase + class BLACKGUI_EXPORT CServerView : public CViewBase { public: diff --git a/src/blackgui/views/simulatedaircraftview.h b/src/blackgui/views/simulatedaircraftview.h index b05221216..1e4db4abb 100644 --- a/src/blackgui/views/simulatedaircraftview.h +++ b/src/blackgui/views/simulatedaircraftview.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_SIMULATEDAIRCRAFTVIEW_H #define BLACKGUI_SIMULATEDAIRCRAFTVIEW_H +#include "blackgui/blackguiexport.h" #include "viewbase.h" #include "../models/simulatedaircraftlistmodel.h" #include @@ -21,7 +22,7 @@ namespace BlackGui namespace Views { //! Aircrafts view - class CSimulatedAircraftView : public CViewBase + class BLACKGUI_EXPORT CSimulatedAircraftView : public CViewBase { Q_OBJECT diff --git a/src/blackgui/views/statusmessageview.h b/src/blackgui/views/statusmessageview.h index 7013bc62f..1e3cd1aac 100644 --- a/src/blackgui/views/statusmessageview.h +++ b/src/blackgui/views/statusmessageview.h @@ -12,6 +12,7 @@ //! \file +#include "blackgui/blackguiexport.h" #include "viewbase.h" #include "../models/statusmessagelistmodel.h" @@ -20,7 +21,7 @@ namespace BlackGui namespace Views { //! Status message view - class CStatusMessageView : public CViewBase + class BLACKGUI_EXPORT CStatusMessageView : public CViewBase { public: diff --git a/src/blackgui/views/textmessageview.h b/src/blackgui/views/textmessageview.h index 01cfbdd41..52d973eab 100644 --- a/src/blackgui/views/textmessageview.h +++ b/src/blackgui/views/textmessageview.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_TEXTMESSAGEVIEW_H #define BLACKGUI_TEXTMESSAGEVIEW_H +#include "blackgui/blackguiexport.h" #include "viewbase.h" #include "../models/textmessagelistmodel.h" @@ -20,7 +21,7 @@ namespace BlackGui namespace Views { //! Airports view - class CTextMessageView : public CViewBase + class BLACKGUI_EXPORT CTextMessageView : public CViewBase { public: diff --git a/src/blackgui/views/userview.h b/src/blackgui/views/userview.h index 24e8765d2..86148f918 100644 --- a/src/blackgui/views/userview.h +++ b/src/blackgui/views/userview.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_USERVIEW_H #define BLACKGUI_USERVIEW_H +#include "blackgui/blackguiexport.h" #include "viewbase.h" #include "../models/userlistmodel.h" @@ -20,7 +21,7 @@ namespace BlackGui namespace Views { //! User view - class CUserView : public CViewBase + class BLACKGUI_EXPORT CUserView : public CViewBase { public: diff --git a/src/blackgui/views/viewbase.h b/src/blackgui/views/viewbase.h index 47ce33fb2..114964a28 100644 --- a/src/blackgui/views/viewbase.h +++ b/src/blackgui/views/viewbase.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_VIEWBASE_H #define BLACKGUI_VIEWBASE_H +#include "blackgui/blackguiexport.h" #include "blackmisc/icons.h" #include "blackmisc/worker.h" #include "blackmisc/variant.h" @@ -29,7 +30,7 @@ namespace BlackGui { //! Non templated base class, allows Q_OBJECT and signals / slots to be used - class CViewBaseNonTemplate : public QTableView + class BLACKGUI_EXPORT CViewBaseNonTemplate : public QTableView { Q_OBJECT diff --git a/src/blackgui/win/windowfinder_win.h b/src/blackgui/win/windowfinder_win.h index d3956e317..9fcaeb69f 100644 --- a/src/blackgui/win/windowfinder_win.h +++ b/src/blackgui/win/windowfinder_win.h @@ -12,12 +12,13 @@ #ifndef BLACKGUI_WINDOWFINDERWINDOWS_H #define BLACKGUI_WINDOWFINDERWINDOWS_H +#include "blackgui/blackguiexport.h" #include "../windowfinder.h" namespace BlackGui { //! Foreign windows - class CWindowFinderWindows : public IWindowFinder + class BLACKGUI_EXPORT CWindowFinderWindows : public IWindowFinder { public: diff --git a/src/blackgui/windowfinder.h b/src/blackgui/windowfinder.h index 7abbc71e5..7ad570754 100644 --- a/src/blackgui/windowfinder.h +++ b/src/blackgui/windowfinder.h @@ -12,6 +12,7 @@ #ifndef BLACKGUI_WINDOWFINDER_H #define BLACKGUI_WINDOWFINDER_H +#include "blackgui/blackguiexport.h" #include class QWindow; @@ -19,7 +20,7 @@ class QWindow; namespace BlackGui { //! Finder for foreign windows - class IWindowFinder + class BLACKGUI_EXPORT IWindowFinder { public: