VirtualBox

Ignore:
Timestamp:
Apr 3, 2018 4:37:08 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9049: Initial commit for VBoxGlobal library (for now it works on X11 only).

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
1 added
71 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r71563 r71630  
    2525VBOX_VIRTUALBOX_SRC := $(PATH_SUB_CURRENT)
    2626VBOX_VIRTUALBOX_OUT_DIR := $(PATH_TARGET)/VirtualBox/misc
     27USES += qt5
    2728
    2829
     
    3637else
    3738PROGRAMS += VirtualBox
     39ifdef VBOX_GUI_WITH_SHARED_LIBRARY
     40DLLS += VBoxGlobal
     41endif
    3842endif
    3943INSTALLS += VirtualBox.nls
     
    96100# VirtualBox - GUI Application.
    97101#
    98 USES += qt5
    99102VirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE)
    100103VirtualBox_NAME = VirtualBox
     
    119122VirtualBox_DEFS.win       += UNICODE QT_DLL
    120123VirtualBox_DEFS           += \
     124        $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VBOX_GUI_WITH_SHARED_LIBRARY) \
    121125        $(if $(VBOX_WITH_ADDITIONS_AUTOUPDATE_UI),VBOX_WITH_ADDITIONS_AUTOUPDATE_UI) \
    122126        $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
     
    163167ifdef VBOX_WITH_ICHAT_THEATER
    164168 VirtualBox_DEFS.darwin   += VBOX_WITH_ICHAT_THEATER
     169endif
     170
     171
     172#
     173# VirtualBox - GUI Global Shared Library.
     174#
     175VBoxGlobal_TEMPLATE = VBOXQTGUI
     176VBoxGlobal_NAME = VBoxGlobal
     177VBoxGlobal_DEFS         =
     178VBoxGlobal_DEFS         += VBOX_GUI_LIBRARY
     179VBoxGlobal_DEFS.darwin  = VBOX_WS_MAC
     180VBoxGlobal_DEFS.freebsd = VBOX_WS_X11
     181VBoxGlobal_DEFS.linux   = VBOX_WS_X11
     182VBoxGlobal_DEFS.solaris = VBOX_WS_X11
     183VBoxGlobal_DEFS.win     = VBOX_WS_WIN
     184VBoxGlobal_DEFS.debug   = VBOX_CHECK_STATE # QT_FATAL_ASSERT
     185#VBoxGlobal_DEFS.win     += UNICODE QT_DLL
     186VBoxGlobal_DEFS         += \
     187        $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VBOX_GUI_WITH_SHARED_LIBRARY) \
     188        $(if $(VBOX_WITH_UPDATE_REQUEST),VBOX_WITH_UPDATE_REQUEST) \
     189        $(if $(VBOX_WITH_AUDIO_OSS),VBOX_WITH_AUDIO_OSS) \
     190        $(if $(VBOX_WITH_AUDIO_ALSA),VBOX_WITH_AUDIO_ALSA) \
     191        $(if $(VBOX_WITH_AUDIO_PULSE),VBOX_WITH_AUDIO_PULSE) \
     192        $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \
     193        $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \
     194        $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \
     195        $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \
     196        $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \
     197        $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \
     198        $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI) \
     199        $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO) \
     200        $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL) \
     201        $(if $(VBOX_GUI_WITH_PIDFILE),VBOX_GUI_WITH_PIDFILE) \
     202        $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE) \
     203        $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
     204ifdef VBOX_WITH_DEBUGGER_GUI
     205 VBoxGlobal_DEFS        += VBOX_WITH_DEBUGGER_GUI
     206 if "$(KBUILD_TYPE)" != "release"
     207  VBoxGlobal_DEFS       += VBOX_WITH_DEBUGGER_GUI_MENU
     208 endif
     209endif
     210ifdef VBOX_WITH_VIDEOHWACCEL
     211 VBoxGlobal_DEFS        += VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL
     212else ifdef VBOX_GUI_USE_QGL
     213 VBoxGlobal_DEFS        += VBOX_GUI_USE_QGL
     214endif
     215ifdef VBOX_WITH_LIBCURL
     216 VBoxGlobal_DEFS        += VBOX_GUI_WITH_NETWORK_MANAGER
     217 VBOX_GUI_WITH_NETWORK_MANAGER := 1
     218endif
     219ifneq ($(KBUILD_TYPE),release)
     220 VBoxGlobal_DEFS        += VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
     221endif
     222ifdef VBOX_WITH_ICHAT_THEATER
     223 VBoxGlobal_DEFS.darwin += VBOX_WITH_ICHAT_THEATER
    165224endif
    166225
     
    222281        $(VBOX_GRAPHICS_INCS)
    223282
     283#
     284# VirtualBox - GUI Global Shared Library.
     285# Include folders.
     286#
     287VBoxGlobal_INCS = \
     288        $(VBOX_GUI_INC_DIRS) \
     289        $(VirtualBox_0_OUTDIR)/include
     290
    224291
    225292#
     
    301368ifdef VBOX_WITH_CROGL
    302369 VirtualBox_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
     370endif
     371
     372# This one is global shared GUI library:
     373ifdef VBOX_GUI_WITH_SHARED_LIBRARY
     374 VirtualBox_LIBS += $(PATH_STAGE_DLL)/VBoxGlobal$(VBOX_SUFF_DLL)
     375endif
     376
     377
     378#
     379# VirtualBox - GUI Global Shared Library.
     380# Libraries.
     381#
     382
     383# Xinerama library required for multi-monitor support:
     384VBoxGlobal_LIBS.linux   += Xinerama
     385VBoxGlobal_LIBS.solaris += Xinerama
     386VBoxGlobal_LIBS.freebsd += Xinerama
     387
     388# VBox keyboard shared library for X11 hosts:
     389if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
     390 VBoxGlobal_LIBS += $(PATH_STAGE_DLL)/VBoxKeyboard$(VBOX_SUFF_DLL)
     391endif
     392
     393# These are 2D Video Acceleration and 3D Acceleration related libs:
     394ifdef VBOX_WITH_CROGL
     395 VBoxGlobal_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
    303396endif
    304397
     
    577670
    578671#
     672# VirtualBox - GUI Global Shared Library.
     673# Headers containing definitions of classes that use the Q_OBJECT macro.
     674#
     675VBoxGlobal_QT_MOCHDRS = \
     676        src/VBoxAboutDlg.h \
     677        src/VBoxLicenseViewer.h \
     678        src/extensions/QIArrowButtonPress.h \
     679        src/extensions/QIArrowSplitter.h \
     680        src/extensions/QIDialog.h \
     681        src/extensions/QIDialogButtonBox.h \
     682        src/extensions/QIFileDialog.h \
     683        src/extensions/QILabel.h \
     684        src/extensions/QIMainWindow.h \
     685        src/extensions/QIMessageBox.h \
     686        src/extensions/QIProcess.h \
     687        src/extensions/QIRichTextLabel.h \
     688        src/extensions/QIRichToolButton.h \
     689        src/extensions/QISplitter.h \
     690        src/extensions/QIStatusBarIndicator.h \
     691        src/extensions/QIToolButton.h \
     692        src/extensions/QIWidgetValidator.h \
     693        src/extradata/UIExtraDataDefs.h \
     694        src/extradata/UIExtraDataManager.h \
     695        src/globals/UIActionPool.h \
     696        src/globals/UIAnimationFramework.h \
     697        src/globals/UIDesktopWidgetWatchdog.h \
     698        src/globals/UIMainEventListener.h \
     699        src/globals/UIMessageCenter.h \
     700        src/globals/UIModalWindowManager.h \
     701        src/globals/UIPopupCenter.h \
     702        src/globals/UIShortcutPool.h \
     703        src/globals/UIThreadPool.h \
     704        src/globals/VBoxGlobal.h \
     705        src/globals/VBoxUtils.h \
     706        src/medium/UIMediumEnumerator.h \
     707        src/runtime/UIActionPoolRuntime.h \
     708        src/selector/UIActionPoolSelector.h \
     709        src/selector/UIVirtualBoxEventHandler.h \
     710        src/widgets/UIHostComboEditor.h \
     711        src/widgets/UIPopupBox.h \
     712        src/widgets/UIPopupPane.h \
     713        src/widgets/UIPopupPaneButtonPane.h \
     714        src/widgets/UIPopupPaneMessage.h \
     715        src/widgets/UIPopupPaneDetails.h \
     716        src/widgets/UIPopupStack.h \
     717        src/widgets/UIPopupStackViewport.h \
     718        src/widgets/UIProgressDialog.h \
     719        src/widgets/UISpecialControls.h \
     720        src/widgets/UIToolBar.h
     721
     722ifdef VBOX_GUI_WITH_NETWORK_MANAGER
     723 VBoxGlobal_QT_MOCHDRS += \
     724        src/net/UIDownloader.h \
     725        src/net/UIDownloaderAdditions.h \
     726        src/net/UIDownloaderExtensionPack.h \
     727        src/net/UIDownloaderUserManual.h \
     728        src/net/UINetworkCustomer.h \
     729        src/net/UINetworkManager.h \
     730        src/net/UINetworkManagerDialog.h \
     731        src/net/UINetworkManagerIndicator.h \
     732        src/net/UINetworkRequest.h \
     733        src/net/UINetworkRequestWidget.h \
     734        src/net/UINetworkReply.h \
     735        src/net/UIUpdateManager.h
     736endif
     737
     738
     739#
    579740# VirtualBox - GUI Application.
    580741# Sources containing local definitions of classes that use the Q_OBJECT macro.
    581742#
    582743VirtualBox_QT_MOCSRCS = \
    583         src/extensions/QIArrowSplitter.cpp \
    584         src/extensions/QISplitter.cpp \
    585         src/extradata/UIExtraDataManager.cpp \
    586         src/globals/UIActionPool.cpp \
    587         src/globals/UIMainEventListener.cpp \
    588         src/globals/UIThreadPool.cpp \
    589744        src/logviewer/UIVMLogViewerFilterPanel.cpp \
    590745        src/logviewer/UIVMLogViewerSearchPanel.cpp \
    591746        src/logviewer/UIVMLogViewerTextEdit.cpp \
    592         src/medium/UIMediumEnumerator.cpp \
    593         src/runtime/UIActionPoolRuntime.cpp \
    594747        src/runtime/UIAddDiskEncryptionPasswordDialog.cpp \
    595748        src/runtime/UIConsoleEventHandler.cpp \
     
    602755        src/runtime/guestctrl/UIGuestFileTable.cpp \
    603756        src/runtime/guestctrl/UIHostFileTable.cpp \
    604         src/selector/UIActionPoolSelector.cpp \
    605757        src/selector/UIDesktopPane.cpp \
    606         src/selector/UIVirtualBoxEventHandler.cpp \
    607758        src/selector/UISnapshotDetailsWidget.cpp \
    608759        src/selector/UISnapshotPane.cpp \
     
    616767        src/widgets/UIMiniToolBar.cpp \
    617768        src/widgets/UIPortForwardingTable.cpp \
    618         src/widgets/UIProgressDialog.cpp \
    619769        src/widgets/UITabBar.cpp \
    620770        src/wizards/importappliance/UIWizardImportApp.cpp
    621771
    622 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
     772VirtualBox_QT_MOCSRCS.darwin += \
     773        src/platform/darwin/UIWindowMenuManager.cpp
     774
     775ifndef VBOX_GUI_WITH_SHARED_LIBRARY
    623776 VirtualBox_QT_MOCSRCS += \
     777        src/extensions/QISplitter.cpp \
     778        src/extensions/QIArrowSplitter.cpp \
     779        src/extradata/UIExtraDataManager.cpp \
     780        src/globals/UIActionPool.cpp \
     781        src/globals/UIMainEventListener.cpp \
     782        src/globals/UIThreadPool.cpp \
     783        src/medium/UIMediumEnumerator.cpp \
     784        src/runtime/UIActionPoolRuntime.cpp \
     785        src/selector/UIActionPoolSelector.cpp \
     786        src/selector/UIVirtualBoxEventHandler.cpp \
     787        src/widgets/UIProgressDialog.cpp
     788
     789 VirtualBox_QT_MOCSRCS.linux += \
     790        src/globals/UIDesktopWidgetWatchdog.cpp
     791 VirtualBox_QT_MOCSRCS.solaris += \
     792        src/globals/UIDesktopWidgetWatchdog.cpp
     793 VirtualBox_QT_MOCSRCS.freebsd += \
     794        src/globals/UIDesktopWidgetWatchdog.cpp
     795
     796 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
     797  VirtualBox_QT_MOCSRCS += \
    624798        src/net/UINetworkReply.cpp \
    625799        src/net/UIUpdateManager.cpp
    626 endif
    627 
    628 VirtualBox_QT_MOCSRCS.darwin += \
    629         src/platform/darwin/UIWindowMenuManager.cpp
    630 VirtualBox_QT_MOCSRCS.linux += \
     800 endif
     801
     802 ifdef VBOX_WITH_XPCOM
     803  VirtualBox_QT_MOCSRCS += \
     804        src/globals/COMDefs.cpp
     805 endif
     806endif
     807
     808
     809#
     810# VirtualBox - GUI Global Shared Library.
     811# Sources.
     812#
     813VBoxGlobal_QT_MOCSRCS = \
     814        src/extensions/QISplitter.cpp \
     815        src/extensions/QIArrowSplitter.cpp \
     816        src/extradata/UIExtraDataManager.cpp \
     817        src/globals/UIActionPool.cpp \
     818        src/globals/UIMainEventListener.cpp \
     819        src/globals/UIThreadPool.cpp \
     820        src/medium/UIMediumEnumerator.cpp \
     821        src/runtime/UIActionPoolRuntime.cpp \
     822        src/selector/UIActionPoolSelector.cpp \
     823        src/selector/UIVirtualBoxEventHandler.cpp \
     824        src/widgets/UIProgressDialog.cpp
     825
     826VBoxGlobal_QT_MOCSRCS.linux += \
    631827        src/globals/UIDesktopWidgetWatchdog.cpp
    632 VirtualBox_QT_MOCSRCS.solaris += \
     828VBoxGlobal_QT_MOCSRCS.solaris += \
    633829        src/globals/UIDesktopWidgetWatchdog.cpp
    634 VirtualBox_QT_MOCSRCS.freebsd += \
     830VBoxGlobal_QT_MOCSRCS.freebsd += \
    635831        src/globals/UIDesktopWidgetWatchdog.cpp
    636832
     833ifdef VBOX_GUI_WITH_NETWORK_MANAGER
     834 VBoxGlobal_QT_MOCSRCS += \
     835        src/net/UINetworkReply.cpp \
     836        src/net/UIUpdateManager.cpp
     837endif
     838
    637839ifdef VBOX_WITH_XPCOM
    638  VirtualBox_QT_MOCSRCS += \
     840 VBoxGlobal_QT_MOCSRCS += \
    639841        src/globals/COMDefs.cpp
    640842endif
     
    647849VirtualBox_SOURCES = \
    648850        src/main.cpp \
    649         src/VBoxAboutDlg.cpp \
    650         src/VBoxLicenseViewer.cpp \
    651851        src/UITakeSnapshotDialog.cpp \
    652         src/converter/UIConverter.cpp \
    653         src/converter/UIConverterBackendCOM.cpp \
    654         src/converter/UIConverterBackendGlobal.cpp \
    655852        src/extensions/QIAdvancedSlider.cpp \
    656         src/extensions/QIArrowButtonPress.cpp \
    657         src/extensions/QIArrowButtonSwitch.cpp \
    658         src/extensions/QIArrowSplitter.cpp \
    659853        src/extensions/QIComboBox.cpp \
    660         src/extensions/QIDialog.cpp \
    661         src/extensions/QIDialogButtonBox.cpp \
    662         src/extensions/QIFileDialog.cpp \
    663854        src/extensions/QIFlowLayout.cpp \
    664         src/extensions/QILabel.cpp \
    665855        src/extensions/QILabelSeparator.cpp \
    666856        src/extensions/QILineEdit.cpp \
    667857        src/extensions/QIMainDialog.cpp \
    668         src/extensions/QIMainWindow.cpp \
    669858        src/extensions/QIManagerDialog.cpp \
    670859        src/extensions/QIMenu.cpp \
    671         src/extensions/QIMessageBox.cpp \
    672         src/extensions/QIProcess.cpp \
    673         src/extensions/QIRichTextLabel.cpp \
    674         src/extensions/QIRichToolButton.cpp \
    675         src/extensions/QISplitter.cpp \
    676860        src/extensions/QIStatusBar.cpp \
    677         src/extensions/QIStatusBarIndicator.cpp \
    678861        src/extensions/QITableView.cpp \
    679         src/extensions/QIToolButton.cpp \
    680862        src/extensions/QITreeView.cpp \
    681863        src/extensions/QITreeWidget.cpp \
    682         src/extensions/QIWidgetValidator.cpp \
    683864        src/extensions/graphics/QIGraphicsView.cpp \
    684865        src/extensions/graphics/QIGraphicsWidget.cpp \
    685         src/extradata/UIExtraDataDefs.cpp \
    686         src/extradata/UIExtraDataManager.cpp \
    687         src/globals/UIDefs.cpp \
    688         src/globals/COMDefs.cpp \
    689         src/globals/UIActionPool.cpp \
    690         src/globals/UIAnimationFramework.cpp \
    691         src/globals/UIDesktopWidgetWatchdog.cpp \
    692         src/globals/UIIconPool.cpp \
    693866        src/globals/UIImageTools.cpp \
    694         src/globals/UIMainEventListener.cpp \
    695         src/globals/UIMessageCenter.cpp \
    696         src/globals/UIErrorString.cpp \
    697         src/globals/UIModalWindowManager.cpp \
    698         src/globals/UIPopupCenter.cpp \
    699         src/globals/UIShortcutPool.cpp \
    700867        src/globals/UIStarter.cpp \
    701         src/globals/UIThreadPool.cpp \
    702         src/globals/VBoxGlobal.cpp \
    703868        src/hostnetwork/UIHostNetworkDetailsWidget.cpp \
    704869        src/hostnetwork/UIHostNetworkManager.cpp \
     
    713878        src/logviewer/UIVMLogViewerTextEdit.cpp \
    714879        src/logviewer/UIVMLogViewerWidget.cpp \
    715         src/medium/UIMediumDefs.cpp \
    716         src/medium/UIMedium.cpp \
    717880        src/medium/UIMediumDetailsWidget.cpp \
    718         src/medium/UIMediumEnumerator.cpp \
    719881        src/medium/UIMediumManager.cpp \
    720882        src/objects/UIRichTextString.cpp \
    721         src/runtime/UIActionPoolRuntime.cpp \
    722883        src/runtime/UIAddDiskEncryptionPasswordDialog.cpp \
    723884        src/runtime/UIConsoleEventHandler.cpp \
     
    768929        src/runtime/seamless/UIMachineViewSeamless.cpp \
    769930        src/runtime/seamless/UIMachineWindowSeamless.cpp \
    770         src/selector/UIActionPoolSelector.cpp \
    771931        src/selector/UIDesktopPane.cpp \
    772932        src/selector/UIVMItem.cpp \
    773         src/selector/UIVirtualBoxEventHandler.cpp \
    774933        src/selector/UISelectorWindow.cpp \
    775934        src/selector/UISnapshotDetailsWidget.cpp \
     
    795954        src/selector/graphics/details/UIGDetailsElements.cpp \
    796955        src/selector/graphics/details/UIGMachinePreview.cpp \
    797         src/settings/UISettingsDefs.cpp \
    798956        src/settings/UISettingsDialog.cpp \
    799957        src/settings/UISettingsDialogSpecific.cpp \
     
    828986        src/widgets/UIFilePathSelector.cpp \
    829987        src/widgets/UIEmptyFilePathSelector.cpp \
    830         src/widgets/UIHostComboEditor.cpp \
    831988        src/widgets/UIHotKeyEditor.cpp \
    832989        src/widgets/UILineTextEdit.cpp \
    833990        src/widgets/UIMediumSizeEditor.cpp \
    834991        src/widgets/UIMenuBar.cpp \
    835         src/widgets/UIPopupBox.cpp \
    836         src/widgets/UIPopupPane.cpp \
    837         src/widgets/UIPopupPaneMessage.cpp \
    838         src/widgets/UIPopupPaneDetails.cpp \
    839         src/widgets/UIPopupPaneButtonPane.cpp \
    840         src/widgets/UIPopupStack.cpp \
    841         src/widgets/UIPopupStackViewport.cpp \
    842992        src/widgets/UIPortForwardingTable.cpp \
    843         src/widgets/UIProgressDialog.cpp \
    844993        src/widgets/UISlidingWidget.cpp \
    845         src/widgets/UISpecialControls.cpp \
    846994        src/widgets/UITabBar.cpp \
    847         src/widgets/UIToolBar.cpp \
    848995        src/widgets/VBoxGuestRAMSlider.cpp \
    849996        src/widgets/VBoxMediaComboBox.cpp \
     
    8971044ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    8981045 VirtualBox_SOURCES += \
    899         src/net/UINetworkManager.cpp \
    900         src/net/UINetworkManagerDialog.cpp \
    901         src/net/UINetworkManagerIndicator.cpp \
    902         src/net/UINetworkRequest.cpp \
    903         src/net/UINetworkRequestWidget.cpp \
    904         src/net/UINetworkReply.cpp \
    905         src/net/UINetworkCustomer.cpp \
    906         src/net/UIDownloader.cpp \
    907         src/net/UIDownloaderAdditions.cpp \
    908         src/net/UIDownloaderExtensionPack.cpp \
    909         src/net/UIDownloaderUserManual.cpp \
    910         src/net/UIUpdateDefs.cpp \
    911         src/net/UIUpdateManager.cpp \
    9121046        src/settings/global/UIGlobalSettingsProxy.cpp \
    9131047        src/settings/global/UIGlobalSettingsUpdate.cpp
     
    9211055if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
    9221056 VirtualBox_SOURCES += \
    923         src/platform/x11/UIDesktopServices_x11.cpp \
    924         src/platform/x11/VBoxX11Helper.cpp \
    925         src/platform/x11/XKeyboard-new.cpp
     1057        src/platform/x11/UIDesktopServices_x11.cpp
    9261058endif
    9271059
     
    9291061        src/platform/win/VirtualBox.rc \
    9301062        src/platform/win/UIDesktopServices_win.cpp \
    931         src/platform/win/VBoxUtils-win.cpp \
    9321063        src/platform/win/WinKeyboard.cpp
    9331064
     
    9681099endif
    9691100
     1101ifndef VBOX_GUI_WITH_SHARED_LIBRARY
     1102 VirtualBox_SOURCES += \
     1103        src/VBoxAboutDlg.cpp \
     1104        src/VBoxLicenseViewer.cpp \
     1105        src/extensions/QIArrowButtonPress.cpp \
     1106        src/extensions/QIArrowButtonSwitch.cpp \
     1107        src/extensions/QIArrowSplitter.cpp \
     1108        src/extensions/QIDialog.cpp \
     1109        src/extensions/QIDialogButtonBox.cpp \
     1110        src/extensions/QIFileDialog.cpp \
     1111        src/extensions/QILabel.cpp \
     1112        src/extensions/QIMainWindow.cpp \
     1113        src/extensions/QIMessageBox.cpp \
     1114        src/extensions/QIProcess.cpp \
     1115        src/extensions/QIRichTextLabel.cpp \
     1116        src/extensions/QIRichToolButton.cpp \
     1117        src/extensions/QISplitter.cpp \
     1118        src/extensions/QIStatusBarIndicator.cpp \
     1119        src/extensions/QIToolButton.cpp \
     1120        src/extensions/QIWidgetValidator.cpp \
     1121        src/extradata/UIExtraDataDefs.cpp \
     1122        src/extradata/UIExtraDataManager.cpp \
     1123        src/converter/UIConverter.cpp \
     1124        src/converter/UIConverterBackendCOM.cpp \
     1125        src/converter/UIConverterBackendGlobal.cpp \
     1126        src/globals/COMDefs.cpp \
     1127        src/globals/UIActionPool.cpp \
     1128        src/globals/UIAnimationFramework.cpp \
     1129        src/globals/UIDefs.cpp \
     1130        src/globals/UIDesktopWidgetWatchdog.cpp \
     1131        src/globals/UIErrorString.cpp \
     1132        src/globals/UIIconPool.cpp \
     1133        src/globals/UIMainEventListener.cpp \
     1134        src/globals/UIMessageCenter.cpp \
     1135        src/globals/UIModalWindowManager.cpp \
     1136        src/globals/UIPopupCenter.cpp \
     1137        src/globals/UIShortcutPool.cpp \
     1138        src/globals/UIThreadPool.cpp \
     1139        src/globals/VBoxGlobal.cpp \
     1140        src/medium/UIMedium.cpp \
     1141        src/medium/UIMediumDefs.cpp \
     1142        src/medium/UIMediumEnumerator.cpp \
     1143        src/runtime/UIActionPoolRuntime.cpp \
     1144        src/selector/UIActionPoolSelector.cpp \
     1145        src/selector/UIVirtualBoxEventHandler.cpp \
     1146        src/settings/UISettingsDefs.cpp \
     1147        src/widgets/UIHostComboEditor.cpp \
     1148        src/widgets/UIPopupBox.cpp \
     1149        src/widgets/UIPopupPane.cpp \
     1150        src/widgets/UIPopupPaneButtonPane.cpp \
     1151        src/widgets/UIPopupPaneMessage.cpp \
     1152        src/widgets/UIPopupPaneDetails.cpp \
     1153        src/widgets/UIPopupStack.cpp \
     1154        src/widgets/UIPopupStackViewport.cpp \
     1155        src/widgets/UIProgressDialog.cpp \
     1156        src/widgets/UISpecialControls.cpp \
     1157        src/widgets/UIToolBar.cpp
     1158
     1159 ifdef VBOX_GUI_WITH_NETWORK_MANAGER
     1160  VirtualBox_SOURCES += \
     1161        src/net/UIDownloader.cpp \
     1162        src/net/UIDownloaderAdditions.cpp \
     1163        src/net/UIDownloaderExtensionPack.cpp \
     1164        src/net/UIDownloaderUserManual.cpp \
     1165        src/net/UINetworkCustomer.cpp \
     1166        src/net/UINetworkManager.cpp \
     1167        src/net/UINetworkManagerDialog.cpp \
     1168        src/net/UINetworkManagerIndicator.cpp \
     1169        src/net/UINetworkRequest.cpp \
     1170        src/net/UINetworkRequestWidget.cpp \
     1171        src/net/UINetworkReply.cpp \
     1172        src/net/UIUpdateDefs.cpp \
     1173        src/net/UIUpdateManager.cpp
     1174 endif
     1175
     1176 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
     1177  VirtualBox_SOURCES += \
     1178        src/platform/x11/VBoxX11Helper.cpp \
     1179        src/platform/x11/XKeyboard-new.cpp
     1180 endif
     1181
     1182 VirtualBox_SOURCES.win += \
     1183        src/platform/win/VBoxUtils-win.cpp
     1184endif
     1185
     1186
     1187#
     1188# VirtualBox - GUI Global Shared Library.
     1189# Sources.
     1190#
     1191VBoxGlobal_SOURCES = \
     1192        src/VBoxAboutDlg.cpp \
     1193        src/VBoxLicenseViewer.cpp \
     1194        src/extensions/QIArrowButtonPress.cpp \
     1195        src/extensions/QIArrowButtonSwitch.cpp \
     1196        src/extensions/QIArrowSplitter.cpp \
     1197        src/extensions/QIDialog.cpp \
     1198        src/extensions/QIDialogButtonBox.cpp \
     1199        src/extensions/QIFileDialog.cpp \
     1200        src/extensions/QILabel.cpp \
     1201        src/extensions/QIMainWindow.cpp \
     1202        src/extensions/QIMessageBox.cpp \
     1203        src/extensions/QIProcess.cpp \
     1204        src/extensions/QIRichTextLabel.cpp \
     1205        src/extensions/QIRichToolButton.cpp \
     1206        src/extensions/QISplitter.cpp \
     1207        src/extensions/QIStatusBarIndicator.cpp \
     1208        src/extensions/QIToolButton.cpp \
     1209        src/extensions/QIWidgetValidator.cpp \
     1210        src/extradata/UIExtraDataDefs.cpp \
     1211        src/extradata/UIExtraDataManager.cpp \
     1212        src/converter/UIConverter.cpp \
     1213        src/converter/UIConverterBackendCOM.cpp \
     1214        src/converter/UIConverterBackendGlobal.cpp \
     1215        src/globals/COMDefs.cpp \
     1216        src/globals/UIActionPool.cpp \
     1217        src/globals/UIAnimationFramework.cpp \
     1218        src/globals/UIDefs.cpp \
     1219        src/globals/UIDesktopWidgetWatchdog.cpp \
     1220        src/globals/UIErrorString.cpp \
     1221        src/globals/UIIconPool.cpp \
     1222        src/globals/UIMainEventListener.cpp \
     1223        src/globals/UIMessageCenter.cpp \
     1224        src/globals/UIModalWindowManager.cpp \
     1225        src/globals/UIPopupCenter.cpp \
     1226        src/globals/UIShortcutPool.cpp \
     1227        src/globals/UIThreadPool.cpp \
     1228        src/globals/VBoxGlobal.cpp \
     1229        src/medium/UIMedium.cpp \
     1230        src/medium/UIMediumDefs.cpp \
     1231        src/medium/UIMediumEnumerator.cpp \
     1232        src/runtime/UIActionPoolRuntime.cpp \
     1233        src/selector/UIActionPoolSelector.cpp \
     1234        src/selector/UIVirtualBoxEventHandler.cpp \
     1235        src/settings/UISettingsDefs.cpp \
     1236        src/widgets/UIHostComboEditor.cpp \
     1237        src/widgets/UIPopupBox.cpp \
     1238        src/widgets/UIPopupPane.cpp \
     1239        src/widgets/UIPopupPaneButtonPane.cpp \
     1240        src/widgets/UIPopupPaneMessage.cpp \
     1241        src/widgets/UIPopupPaneDetails.cpp \
     1242        src/widgets/UIPopupStack.cpp \
     1243        src/widgets/UIPopupStackViewport.cpp \
     1244        src/widgets/UIProgressDialog.cpp \
     1245        src/widgets/UISpecialControls.cpp \
     1246        src/widgets/UIToolBar.cpp
     1247
     1248ifdef VBOX_GUI_WITH_NETWORK_MANAGER
     1249 VBoxGlobal_SOURCES += \
     1250        src/net/UIDownloader.cpp \
     1251        src/net/UIDownloaderAdditions.cpp \
     1252        src/net/UIDownloaderExtensionPack.cpp \
     1253        src/net/UIDownloaderUserManual.cpp \
     1254        src/net/UINetworkCustomer.cpp \
     1255        src/net/UINetworkManager.cpp \
     1256        src/net/UINetworkManagerDialog.cpp \
     1257        src/net/UINetworkManagerIndicator.cpp \
     1258        src/net/UINetworkRequest.cpp \
     1259        src/net/UINetworkRequestWidget.cpp \
     1260        src/net/UINetworkReply.cpp \
     1261        src/net/UIUpdateDefs.cpp \
     1262        src/net/UIUpdateManager.cpp
     1263endif
     1264
     1265if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # X11
     1266 VBoxGlobal_SOURCES += \
     1267        src/platform/x11/VBoxX11Helper.cpp \
     1268        src/platform/x11/XKeyboard-new.cpp
     1269endif
     1270
     1271VBoxGlobal_SOURCES.win += \
     1272       src/platform/win/VBoxUtils-win.cpp
     1273
    9701274
    9711275#
     
    10001304if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
    10011305 VirtualBox_QT_MODULES += OpenGL
     1306endif
     1307
     1308
     1309#
     1310# VirtualBox - GUI Global Shared Library.
     1311# The Qt modules we're using.
     1312# (The include directory and lib/framework for each module will be added by the Qt unit.)
     1313#
     1314VBoxGlobal_QT_MODULES = Core Gui Widgets
     1315VBoxGlobal_QT_MODULES.linux   += X11Extras
     1316VBoxGlobal_QT_MODULES.solaris += X11Extras
     1317VBoxGlobal_QT_MODULES.freebsd += X11Extras
     1318VBoxGlobal_QT_MODULES.darwin  += MacExtras
     1319VBoxGlobal_QT_MODULES.win     += WinExtras
     1320if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL)
     1321 VBoxGlobal_QT_MODULES += OpenGL
    10021322endif
    10031323
     
    10611381#
    10621382VirtualBox_SOURCES       += $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp
     1383
     1384#
     1385# VirtualBox - GUI Global Shared Library.
     1386# Build generated COM wrappers as part of app.
     1387#
     1388VBoxGlobal_SOURCES += $(VirtualBox_0_OUTDIR)/include/COMWrappers.cpp
    10631389
    10641390## @todo kmk doesn't remake optional outputs when they are missing...
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.h

    r71553 r71630  
    2525#include "QIDialog.h"
    2626#include "QIWithRetranslateUI.h"
     27#include "UILibraryDefs.h"
    2728
    2829/* Forward declarations: */
     
    3334/** QIDialog extension
    3435  * used to show the About-VirtualBox dialog. */
    35 class VBoxAboutDlg : public QIWithRetranslateUI2<QIDialog>
     36class SHARED_LIBRARY_STUFF VBoxAboutDlg : public QIWithRetranslateUI2<QIDialog>
    3637{
    3738    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxLicenseViewer.h

    r71552 r71630  
    2424/* GUI includes: */
    2525#include "QIWithRetranslateUI.h"
     26#include "UILibraryDefs.h"
    2627
    2728/* Forward declarations: */
     
    3031
    3132/** QDialog subclass used to show a user license under linux. */
    32 class VBoxLicenseViewer : public QIWithRetranslateUI2<QDialog>
     33class SHARED_LIBRARY_STUFF VBoxLicenseViewer : public QIWithRetranslateUI2<QDialog>
    3334{
    3435    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverter.h

    r71427 r71630  
    2424/** High-level interface for different conversions between GUI classes.
    2525  * @todo Replace singleton with static template interface. */
    26 class UIConverter
     26class SHARED_LIBRARY_STUFF UIConverter
    2727{
    2828public:
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackend.h

    r71427 r71630  
    2727/* GUI includes: */
    2828#include "UIDefs.h"
     29#include "UILibraryDefs.h"
    2930#include "UIExtraDataDefs.h"
    3031
     
    7273
    7374/* Declare global canConvert specializations: */
    74 template<> bool canConvert<SizeSuffix>();
    75 template<> bool canConvert<StorageSlot>();
    76 template<> bool canConvert<UIExtraDataMetaDefs::MenuType>();
    77 template<> bool canConvert<UIExtraDataMetaDefs::MenuApplicationActionType>();
    78 template<> bool canConvert<UIExtraDataMetaDefs::MenuHelpActionType>();
    79 template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuMachineActionType>();
    80 template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuViewActionType>();
    81 template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuInputActionType>();
    82 template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType>();
     75template<> SHARED_LIBRARY_STUFF bool canConvert<SizeSuffix>();
     76template<> SHARED_LIBRARY_STUFF bool canConvert<StorageSlot>();
     77template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::MenuType>();
     78template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::MenuApplicationActionType>();
     79template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::MenuHelpActionType>();
     80template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::RuntimeMenuMachineActionType>();
     81template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::RuntimeMenuViewActionType>();
     82template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::RuntimeMenuInputActionType>();
     83template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType>();
    8384#ifdef VBOX_WITH_DEBUGGER_GUI
    84 template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>();
     85template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>();
    8586#endif /* VBOX_WITH_DEBUGGER_GUI */
    8687#ifdef VBOX_WS_MAC
    87 template<> bool canConvert<UIExtraDataMetaDefs::MenuWindowActionType>();
     88template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::MenuWindowActionType>();
    8889#endif /* VBOX_WS_MAC */
    89 template<> bool canConvert<ToolTypeMachine>();
    90 template<> bool canConvert<ToolTypeGlobal>();
    91 template<> bool canConvert<UIVisualStateType>();
    92 template<> bool canConvert<DetailsElementType>();
    93 template<> bool canConvert<PreviewUpdateIntervalType>();
    94 template<> bool canConvert<EventHandlingType>();
    95 template<> bool canConvert<GUIFeatureType>();
    96 template<> bool canConvert<GlobalSettingsPageType>();
    97 template<> bool canConvert<MachineSettingsPageType>();
    98 template<> bool canConvert<WizardType>();
    99 template<> bool canConvert<IndicatorType>();
    100 template<> bool canConvert<MachineCloseAction>();
    101 template<> bool canConvert<MouseCapturePolicy>();
    102 template<> bool canConvert<GuruMeditationHandlerType>();
    103 template<> bool canConvert<ScalingOptimizationType>();
     90template<> SHARED_LIBRARY_STUFF bool canConvert<ToolTypeMachine>();
     91template<> SHARED_LIBRARY_STUFF bool canConvert<ToolTypeGlobal>();
     92template<> SHARED_LIBRARY_STUFF bool canConvert<UIVisualStateType>();
     93template<> SHARED_LIBRARY_STUFF bool canConvert<DetailsElementType>();
     94template<> SHARED_LIBRARY_STUFF bool canConvert<PreviewUpdateIntervalType>();
     95template<> SHARED_LIBRARY_STUFF bool canConvert<EventHandlingType>();
     96template<> SHARED_LIBRARY_STUFF bool canConvert<GUIFeatureType>();
     97template<> SHARED_LIBRARY_STUFF bool canConvert<GlobalSettingsPageType>();
     98template<> SHARED_LIBRARY_STUFF bool canConvert<MachineSettingsPageType>();
     99template<> SHARED_LIBRARY_STUFF bool canConvert<WizardType>();
     100template<> SHARED_LIBRARY_STUFF bool canConvert<IndicatorType>();
     101template<> SHARED_LIBRARY_STUFF bool canConvert<MachineCloseAction>();
     102template<> SHARED_LIBRARY_STUFF bool canConvert<MouseCapturePolicy>();
     103template<> SHARED_LIBRARY_STUFF bool canConvert<GuruMeditationHandlerType>();
     104template<> SHARED_LIBRARY_STUFF bool canConvert<ScalingOptimizationType>();
    104105#ifndef VBOX_WS_MAC
    105 template<> bool canConvert<MiniToolbarAlignment>();
     106template<> SHARED_LIBRARY_STUFF bool canConvert<MiniToolbarAlignment>();
    106107#endif
    107 template<> bool canConvert<InformationElementType>();
    108 template<> bool canConvert<MaxGuestResolutionPolicy>();
     108template<> SHARED_LIBRARY_STUFF bool canConvert<InformationElementType>();
     109template<> SHARED_LIBRARY_STUFF bool canConvert<MaxGuestResolutionPolicy>();
    109110
    110111
    111112/* Declare COM canConvert specializations: */
    112 template<> bool canConvert<KMachineState>();
    113 template<> bool canConvert<KSessionState>();
    114 template<> bool canConvert<KParavirtProvider>();
    115 template<> bool canConvert<KDeviceType>();
    116 template<> bool canConvert<KClipboardMode>();
    117 template<> bool canConvert<KDnDMode>();
    118 template<> bool canConvert<KPointingHIDType>();
    119 template<> bool canConvert<KMediumType>();
    120 template<> bool canConvert<KMediumVariant>();
    121 template<> bool canConvert<KNetworkAttachmentType>();
    122 template<> bool canConvert<KNetworkAdapterType>();
    123 template<> bool canConvert<KNetworkAdapterPromiscModePolicy>();
    124 template<> bool canConvert<KPortMode>();
    125 template<> bool canConvert<KUSBControllerType>();
    126 template<> bool canConvert<KUSBDeviceState>();
    127 template<> bool canConvert<KUSBDeviceFilterAction>();
    128 template<> bool canConvert<KAudioDriverType>();
    129 template<> bool canConvert<KAudioControllerType>();
    130 template<> bool canConvert<KAuthType>();
    131 template<> bool canConvert<KStorageBus>();
    132 template<> bool canConvert<KStorageControllerType>();
    133 template<> bool canConvert<KChipsetType>();
    134 template<> bool canConvert<KNATProtocol>();
     113template<> SHARED_LIBRARY_STUFF bool canConvert<KMachineState>();
     114template<> SHARED_LIBRARY_STUFF bool canConvert<KSessionState>();
     115template<> SHARED_LIBRARY_STUFF bool canConvert<KParavirtProvider>();
     116template<> SHARED_LIBRARY_STUFF bool canConvert<KDeviceType>();
     117template<> SHARED_LIBRARY_STUFF bool canConvert<KClipboardMode>();
     118template<> SHARED_LIBRARY_STUFF bool canConvert<KDnDMode>();
     119template<> SHARED_LIBRARY_STUFF bool canConvert<KPointingHIDType>();
     120template<> SHARED_LIBRARY_STUFF bool canConvert<KMediumType>();
     121template<> SHARED_LIBRARY_STUFF bool canConvert<KMediumVariant>();
     122template<> SHARED_LIBRARY_STUFF bool canConvert<KNetworkAttachmentType>();
     123template<> SHARED_LIBRARY_STUFF bool canConvert<KNetworkAdapterType>();
     124template<> SHARED_LIBRARY_STUFF bool canConvert<KNetworkAdapterPromiscModePolicy>();
     125template<> SHARED_LIBRARY_STUFF bool canConvert<KPortMode>();
     126template<> SHARED_LIBRARY_STUFF bool canConvert<KUSBControllerType>();
     127template<> SHARED_LIBRARY_STUFF bool canConvert<KUSBDeviceState>();
     128template<> SHARED_LIBRARY_STUFF bool canConvert<KUSBDeviceFilterAction>();
     129template<> SHARED_LIBRARY_STUFF bool canConvert<KAudioDriverType>();
     130template<> SHARED_LIBRARY_STUFF bool canConvert<KAudioControllerType>();
     131template<> SHARED_LIBRARY_STUFF bool canConvert<KAuthType>();
     132template<> SHARED_LIBRARY_STUFF bool canConvert<KStorageBus>();
     133template<> SHARED_LIBRARY_STUFF bool canConvert<KStorageControllerType>();
     134template<> SHARED_LIBRARY_STUFF bool canConvert<KChipsetType>();
     135template<> SHARED_LIBRARY_STUFF bool canConvert<KNATProtocol>();
    135136
    136137
    137138/* Declare global conversion specializations: */
    138 template<> QString toString(const SizeSuffix &sizeSuffix);
    139 template<> SizeSuffix fromString<SizeSuffix>(const QString &strSizeSuffix);
    140 template<> QString toString(const StorageSlot &storageSlot);
    141 template<> StorageSlot fromString<StorageSlot>(const QString &strStorageSlot);
    142 template<> QString toInternalString(const UIExtraDataMetaDefs::MenuType &menuType);
    143 template<> UIExtraDataMetaDefs::MenuType fromInternalString<UIExtraDataMetaDefs::MenuType>(const QString &strMenuType);
    144 template<> QString toInternalString(const UIExtraDataMetaDefs::MenuApplicationActionType &menuApplicationActionType);
    145 template<> UIExtraDataMetaDefs::MenuApplicationActionType fromInternalString<UIExtraDataMetaDefs::MenuApplicationActionType>(const QString &strMenuApplicationActionType);
    146 template<> QString toInternalString(const UIExtraDataMetaDefs::MenuHelpActionType &menuHelpActionType);
    147 template<> UIExtraDataMetaDefs::MenuHelpActionType fromInternalString<UIExtraDataMetaDefs::MenuHelpActionType>(const QString &strMenuHelpActionType);
    148 template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuMachineActionType &runtimeMenuMachineActionType);
    149 template<> UIExtraDataMetaDefs::RuntimeMenuMachineActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuMachineActionType>(const QString &strRuntimeMenuMachineActionType);
    150 template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuViewActionType &runtimeMenuViewActionType);
    151 template<> UIExtraDataMetaDefs::RuntimeMenuViewActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuViewActionType>(const QString &strRuntimeMenuViewActionType);
    152 template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuInputActionType &runtimeMenuInputActionType);
    153 template<> UIExtraDataMetaDefs::RuntimeMenuInputActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuInputActionType>(const QString &strRuntimeMenuInputActionType);
    154 template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuDevicesActionType &runtimeMenuDevicesActionType);
    155 template<> UIExtraDataMetaDefs::RuntimeMenuDevicesActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType>(const QString &strRuntimeMenuDevicesActionType);
     139template<> SHARED_LIBRARY_STUFF QString toString(const SizeSuffix &sizeSuffix);
     140template<> SHARED_LIBRARY_STUFF SizeSuffix fromString<SizeSuffix>(const QString &strSizeSuffix);
     141template<> SHARED_LIBRARY_STUFF QString toString(const StorageSlot &storageSlot);
     142template<> SHARED_LIBRARY_STUFF StorageSlot fromString<StorageSlot>(const QString &strStorageSlot);
     143template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::MenuType &menuType);
     144template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::MenuType fromInternalString<UIExtraDataMetaDefs::MenuType>(const QString &strMenuType);
     145template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::MenuApplicationActionType &menuApplicationActionType);
     146template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::MenuApplicationActionType fromInternalString<UIExtraDataMetaDefs::MenuApplicationActionType>(const QString &strMenuApplicationActionType);
     147template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::MenuHelpActionType &menuHelpActionType);
     148template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::MenuHelpActionType fromInternalString<UIExtraDataMetaDefs::MenuHelpActionType>(const QString &strMenuHelpActionType);
     149template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuMachineActionType &runtimeMenuMachineActionType);
     150template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::RuntimeMenuMachineActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuMachineActionType>(const QString &strRuntimeMenuMachineActionType);
     151template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuViewActionType &runtimeMenuViewActionType);
     152template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::RuntimeMenuViewActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuViewActionType>(const QString &strRuntimeMenuViewActionType);
     153template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuInputActionType &runtimeMenuInputActionType);
     154template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::RuntimeMenuInputActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuInputActionType>(const QString &strRuntimeMenuInputActionType);
     155template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuDevicesActionType &runtimeMenuDevicesActionType);
     156template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::RuntimeMenuDevicesActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType>(const QString &strRuntimeMenuDevicesActionType);
    156157#ifdef VBOX_WITH_DEBUGGER_GUI
    157 template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType &runtimeMenuDebuggerActionType);
    158 template<> UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>(const QString &strRuntimeMenuDebuggerActionType);
     158template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType &runtimeMenuDebuggerActionType);
     159template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>(const QString &strRuntimeMenuDebuggerActionType);
    159160#endif /* VBOX_WITH_DEBUGGER_GUI */
    160161#ifdef VBOX_WS_MAC
    161 template<> QString toInternalString(const UIExtraDataMetaDefs::MenuWindowActionType &menuWindowActionType);
    162 template<> UIExtraDataMetaDefs::MenuWindowActionType fromInternalString<UIExtraDataMetaDefs::MenuWindowActionType>(const QString &strMenuWindowActionType);
     162template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::MenuWindowActionType &menuWindowActionType);
     163template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::MenuWindowActionType fromInternalString<UIExtraDataMetaDefs::MenuWindowActionType>(const QString &strMenuWindowActionType);
    163164#endif /* VBOX_WS_MAC */
    164 template<> QString toInternalString(const ToolTypeMachine &enmToolTypeMachine);
    165 template<> ToolTypeMachine fromInternalString<ToolTypeMachine>(const QString &strToolTypeMachine);
    166 template<> QString toInternalString(const ToolTypeGlobal &enmToolTypeGlobal);
    167 template<> ToolTypeGlobal fromInternalString<ToolTypeGlobal>(const QString &strToolTypeGlobal);
    168 template<> QString toInternalString(const UIVisualStateType &visualStateType);
    169 template<> UIVisualStateType fromInternalString<UIVisualStateType>(const QString &strVisualStateType);
    170 template<> QString toString(const DetailsElementType &detailsElementType);
    171 template<> DetailsElementType fromString<DetailsElementType>(const QString &strDetailsElementType);
    172 template<> QString toInternalString(const DetailsElementType &detailsElementType);
    173 template<> DetailsElementType fromInternalString<DetailsElementType>(const QString &strDetailsElementType);
    174 template<> QIcon toIcon(const DetailsElementType &detailsElementType);
    175 template<> QString toInternalString(const PreviewUpdateIntervalType &previewUpdateIntervalType);
    176 template<> PreviewUpdateIntervalType fromInternalString<PreviewUpdateIntervalType>(const QString &strPreviewUpdateIntervalType);
    177 template<> int toInternalInteger(const PreviewUpdateIntervalType &previewUpdateIntervalType);
    178 template<> PreviewUpdateIntervalType fromInternalInteger<PreviewUpdateIntervalType>(const int &iPreviewUpdateIntervalType);
    179 template<> EventHandlingType fromInternalString<EventHandlingType>(const QString &strEventHandlingType);
    180 template<> QString toInternalString(const GUIFeatureType &guiFeatureType);
    181 template<> GUIFeatureType fromInternalString<GUIFeatureType>(const QString &strGuiFeatureType);
    182 template<> QString toInternalString(const GlobalSettingsPageType &globalSettingsPageType);
    183 template<> GlobalSettingsPageType fromInternalString<GlobalSettingsPageType>(const QString &strGlobalSettingsPageType);
    184 template<> QPixmap toWarningPixmap(const GlobalSettingsPageType &globalSettingsPageType);
    185 template<> QString toInternalString(const MachineSettingsPageType &machineSettingsPageType);
    186 template<> MachineSettingsPageType fromInternalString<MachineSettingsPageType>(const QString &strMachineSettingsPageType);
    187 template<> QPixmap toWarningPixmap(const MachineSettingsPageType &machineSettingsPageType);
    188 template<> QString toInternalString(const WizardType &wizardType);
    189 template<> WizardType fromInternalString<WizardType>(const QString &strWizardType);
    190 template<> QString toInternalString(const IndicatorType &indicatorType);
    191 template<> IndicatorType fromInternalString<IndicatorType>(const QString &strIndicatorType);
    192 template<> QString toString(const IndicatorType &indicatorType);
    193 template<> QIcon toIcon(const IndicatorType &indicatorType);
    194 template<> QString toInternalString(const MachineCloseAction &machineCloseAction);
    195 template<> MachineCloseAction fromInternalString<MachineCloseAction>(const QString &strMachineCloseAction);
    196 template<> QString toInternalString(const MouseCapturePolicy &mouseCapturePolicy);
    197 template<> MouseCapturePolicy fromInternalString<MouseCapturePolicy>(const QString &strMouseCapturePolicy);
    198 template<> QString toInternalString(const GuruMeditationHandlerType &guruMeditationHandlerType);
    199 template<> GuruMeditationHandlerType fromInternalString<GuruMeditationHandlerType>(const QString &strGuruMeditationHandlerType);
    200 template<> QString toInternalString(const ScalingOptimizationType &optimizationType);
    201 template<> ScalingOptimizationType fromInternalString<ScalingOptimizationType>(const QString &strOptimizationType);
     165template<> SHARED_LIBRARY_STUFF QString toInternalString(const ToolTypeMachine &enmToolTypeMachine);
     166template<> SHARED_LIBRARY_STUFF ToolTypeMachine fromInternalString<ToolTypeMachine>(const QString &strToolTypeMachine);
     167template<> SHARED_LIBRARY_STUFF QString toInternalString(const ToolTypeGlobal &enmToolTypeGlobal);
     168template<> SHARED_LIBRARY_STUFF ToolTypeGlobal fromInternalString<ToolTypeGlobal>(const QString &strToolTypeGlobal);
     169template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIVisualStateType &visualStateType);
     170template<> SHARED_LIBRARY_STUFF UIVisualStateType fromInternalString<UIVisualStateType>(const QString &strVisualStateType);
     171template<> SHARED_LIBRARY_STUFF QString toString(const DetailsElementType &detailsElementType);
     172template<> SHARED_LIBRARY_STUFF DetailsElementType fromString<DetailsElementType>(const QString &strDetailsElementType);
     173template<> SHARED_LIBRARY_STUFF QString toInternalString(const DetailsElementType &detailsElementType);
     174template<> SHARED_LIBRARY_STUFF DetailsElementType fromInternalString<DetailsElementType>(const QString &strDetailsElementType);
     175template<> SHARED_LIBRARY_STUFF QIcon toIcon(const DetailsElementType &detailsElementType);
     176template<> SHARED_LIBRARY_STUFF QString toInternalString(const PreviewUpdateIntervalType &previewUpdateIntervalType);
     177template<> SHARED_LIBRARY_STUFF PreviewUpdateIntervalType fromInternalString<PreviewUpdateIntervalType>(const QString &strPreviewUpdateIntervalType);
     178template<> SHARED_LIBRARY_STUFF int toInternalInteger(const PreviewUpdateIntervalType &previewUpdateIntervalType);
     179template<> SHARED_LIBRARY_STUFF PreviewUpdateIntervalType fromInternalInteger<PreviewUpdateIntervalType>(const int &iPreviewUpdateIntervalType);
     180template<> SHARED_LIBRARY_STUFF EventHandlingType fromInternalString<EventHandlingType>(const QString &strEventHandlingType);
     181template<> SHARED_LIBRARY_STUFF QString toInternalString(const GUIFeatureType &guiFeatureType);
     182template<> SHARED_LIBRARY_STUFF GUIFeatureType fromInternalString<GUIFeatureType>(const QString &strGuiFeatureType);
     183template<> SHARED_LIBRARY_STUFF QString toInternalString(const GlobalSettingsPageType &globalSettingsPageType);
     184template<> SHARED_LIBRARY_STUFF GlobalSettingsPageType fromInternalString<GlobalSettingsPageType>(const QString &strGlobalSettingsPageType);
     185template<> SHARED_LIBRARY_STUFF QPixmap toWarningPixmap(const GlobalSettingsPageType &globalSettingsPageType);
     186template<> SHARED_LIBRARY_STUFF QString toInternalString(const MachineSettingsPageType &machineSettingsPageType);
     187template<> SHARED_LIBRARY_STUFF MachineSettingsPageType fromInternalString<MachineSettingsPageType>(const QString &strMachineSettingsPageType);
     188template<> SHARED_LIBRARY_STUFF QPixmap toWarningPixmap(const MachineSettingsPageType &machineSettingsPageType);
     189template<> SHARED_LIBRARY_STUFF QString toInternalString(const WizardType &wizardType);
     190template<> SHARED_LIBRARY_STUFF WizardType fromInternalString<WizardType>(const QString &strWizardType);
     191template<> SHARED_LIBRARY_STUFF QString toInternalString(const IndicatorType &indicatorType);
     192template<> SHARED_LIBRARY_STUFF IndicatorType fromInternalString<IndicatorType>(const QString &strIndicatorType);
     193template<> SHARED_LIBRARY_STUFF QString toString(const IndicatorType &indicatorType);
     194template<> SHARED_LIBRARY_STUFF QIcon toIcon(const IndicatorType &indicatorType);
     195template<> SHARED_LIBRARY_STUFF QString toInternalString(const MachineCloseAction &machineCloseAction);
     196template<> SHARED_LIBRARY_STUFF MachineCloseAction fromInternalString<MachineCloseAction>(const QString &strMachineCloseAction);
     197template<> SHARED_LIBRARY_STUFF QString toInternalString(const MouseCapturePolicy &mouseCapturePolicy);
     198template<> SHARED_LIBRARY_STUFF MouseCapturePolicy fromInternalString<MouseCapturePolicy>(const QString &strMouseCapturePolicy);
     199template<> SHARED_LIBRARY_STUFF QString toInternalString(const GuruMeditationHandlerType &guruMeditationHandlerType);
     200template<> SHARED_LIBRARY_STUFF GuruMeditationHandlerType fromInternalString<GuruMeditationHandlerType>(const QString &strGuruMeditationHandlerType);
     201template<> SHARED_LIBRARY_STUFF QString toInternalString(const ScalingOptimizationType &optimizationType);
     202template<> SHARED_LIBRARY_STUFF ScalingOptimizationType fromInternalString<ScalingOptimizationType>(const QString &strOptimizationType);
    202203#ifndef VBOX_WS_MAC
    203 template<> QString toInternalString(const MiniToolbarAlignment &miniToolbarAlignment);
    204 template<> MiniToolbarAlignment fromInternalString<MiniToolbarAlignment>(const QString &strMiniToolbarAlignment);
     204template<> SHARED_LIBRARY_STUFF QString toInternalString(const MiniToolbarAlignment &miniToolbarAlignment);
     205template<> SHARED_LIBRARY_STUFF MiniToolbarAlignment fromInternalString<MiniToolbarAlignment>(const QString &strMiniToolbarAlignment);
    205206#endif
    206 template<> QString toString(const InformationElementType &informationElementType);
    207 template<> InformationElementType fromString<InformationElementType>(const QString &strInformationElementType);
    208 template<> QString toInternalString(const InformationElementType &informationElementType);
    209 template<> InformationElementType fromInternalString<InformationElementType>(const QString &strInformationElementType);
    210 template<> QIcon toIcon(const InformationElementType &informationElementType);
    211 template<> QString toInternalString(const MaxGuestResolutionPolicy &enmMaxGuestResolutionPolicy);
    212 template<> MaxGuestResolutionPolicy fromInternalString<MaxGuestResolutionPolicy>(const QString &strMaxGuestResolutionPolicy);
     207template<> SHARED_LIBRARY_STUFF QString toString(const InformationElementType &informationElementType);
     208template<> SHARED_LIBRARY_STUFF InformationElementType fromString<InformationElementType>(const QString &strInformationElementType);
     209template<> SHARED_LIBRARY_STUFF QString toInternalString(const InformationElementType &informationElementType);
     210template<> SHARED_LIBRARY_STUFF InformationElementType fromInternalString<InformationElementType>(const QString &strInformationElementType);
     211template<> SHARED_LIBRARY_STUFF QIcon toIcon(const InformationElementType &informationElementType);
     212template<> SHARED_LIBRARY_STUFF QString toInternalString(const MaxGuestResolutionPolicy &enmMaxGuestResolutionPolicy);
     213template<> SHARED_LIBRARY_STUFF MaxGuestResolutionPolicy fromInternalString<MaxGuestResolutionPolicy>(const QString &strMaxGuestResolutionPolicy);
    213214
    214215
    215216/* Declare COM conversion specializations: */
    216 template<> QColor toColor(const KMachineState &state);
    217 template<> QIcon toIcon(const KMachineState &state);
    218 template<> QString toString(const KMachineState &state);
    219 template<> QString toString(const KSessionState &state);
    220 template<> QString toString(const KParavirtProvider &type);
    221 template<> QString toString(const KDeviceType &type);
    222 template<> QString toString(const KClipboardMode &mode);
    223 template<> QString toString(const KDnDMode &mode);
    224 template<> QString toString(const KPointingHIDType &type);
    225 template<> QString toString(const KMediumType &type);
    226 template<> QString toString(const KMediumVariant &variant);
    227 template<> QString toString(const KNetworkAttachmentType &type);
    228 template<> QString toString(const KNetworkAdapterType &type);
    229 template<> QString toString(const KNetworkAdapterPromiscModePolicy &policy);
    230 template<> QString toString(const KPortMode &mode);
    231 template<> QString toString(const KUSBControllerType &type);
    232 template<> QString toString(const KUSBDeviceState &state);
    233 template<> QString toString(const KUSBDeviceFilterAction &action);
    234 template<> QString toString(const KAudioDriverType &type);
    235 template<> QString toString(const KAudioControllerType &type);
    236 template<> QString toString(const KAuthType &type);
    237 template<> QString toString(const KStorageBus &bus);
    238 template<> QString toString(const KStorageControllerType &type);
    239 template<> QString toString(const KChipsetType &type);
    240 template<> QString toString(const KNATProtocol &protocol);
    241 template<> QString toInternalString(const KNATProtocol &protocol);
    242 template<> KNATProtocol fromInternalString<KNATProtocol>(const QString &strProtocol);
    243 template<> KPortMode fromString<KPortMode>(const QString &strMode);
    244 template<> KUSBDeviceFilterAction fromString<KUSBDeviceFilterAction>(const QString &strAction);
    245 template<> KAudioDriverType fromString<KAudioDriverType>(const QString &strType);
    246 template<> KAudioControllerType fromString<KAudioControllerType>(const QString &strType);
    247 template<> KAuthType fromString<KAuthType>(const QString &strType);
    248 template<> KStorageControllerType fromString<KStorageControllerType>(const QString &strType);
     217template<> SHARED_LIBRARY_STUFF QColor toColor(const KMachineState &state);
     218template<> SHARED_LIBRARY_STUFF QIcon toIcon(const KMachineState &state);
     219template<> SHARED_LIBRARY_STUFF QString toString(const KMachineState &state);
     220template<> SHARED_LIBRARY_STUFF QString toString(const KSessionState &state);
     221template<> SHARED_LIBRARY_STUFF QString toString(const KParavirtProvider &type);
     222template<> SHARED_LIBRARY_STUFF QString toString(const KDeviceType &type);
     223template<> SHARED_LIBRARY_STUFF QString toString(const KClipboardMode &mode);
     224template<> SHARED_LIBRARY_STUFF QString toString(const KDnDMode &mode);
     225template<> SHARED_LIBRARY_STUFF QString toString(const KPointingHIDType &type);
     226template<> SHARED_LIBRARY_STUFF QString toString(const KMediumType &type);
     227template<> SHARED_LIBRARY_STUFF QString toString(const KMediumVariant &variant);
     228template<> SHARED_LIBRARY_STUFF QString toString(const KNetworkAttachmentType &type);
     229template<> SHARED_LIBRARY_STUFF QString toString(const KNetworkAdapterType &type);
     230template<> SHARED_LIBRARY_STUFF QString toString(const KNetworkAdapterPromiscModePolicy &policy);
     231template<> SHARED_LIBRARY_STUFF QString toString(const KPortMode &mode);
     232template<> SHARED_LIBRARY_STUFF QString toString(const KUSBControllerType &type);
     233template<> SHARED_LIBRARY_STUFF QString toString(const KUSBDeviceState &state);
     234template<> SHARED_LIBRARY_STUFF QString toString(const KUSBDeviceFilterAction &action);
     235template<> SHARED_LIBRARY_STUFF QString toString(const KAudioDriverType &type);
     236template<> SHARED_LIBRARY_STUFF QString toString(const KAudioControllerType &type);
     237template<> SHARED_LIBRARY_STUFF QString toString(const KAuthType &type);
     238template<> SHARED_LIBRARY_STUFF QString toString(const KStorageBus &bus);
     239template<> SHARED_LIBRARY_STUFF QString toString(const KStorageControllerType &type);
     240template<> SHARED_LIBRARY_STUFF QString toString(const KChipsetType &type);
     241template<> SHARED_LIBRARY_STUFF QString toString(const KNATProtocol &protocol);
     242template<> SHARED_LIBRARY_STUFF QString toInternalString(const KNATProtocol &protocol);
     243template<> SHARED_LIBRARY_STUFF KNATProtocol fromInternalString<KNATProtocol>(const QString &strProtocol);
     244template<> SHARED_LIBRARY_STUFF KPortMode fromString<KPortMode>(const QString &strMode);
     245template<> SHARED_LIBRARY_STUFF KUSBDeviceFilterAction fromString<KUSBDeviceFilterAction>(const QString &strAction);
     246template<> SHARED_LIBRARY_STUFF KAudioDriverType fromString<KAudioDriverType>(const QString &strType);
     247template<> SHARED_LIBRARY_STUFF KAudioControllerType fromString<KAudioControllerType>(const QString &strType);
     248template<> SHARED_LIBRARY_STUFF KAuthType fromString<KAuthType>(const QString &strType);
     249template<> SHARED_LIBRARY_STUFF KStorageControllerType fromString<KStorageControllerType>(const QString &strType);
    249250
    250251
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIArrowButtonPress.h

    r71393 r71630  
    2222#include "QIRichToolButton.h"
    2323#include "QIWithRetranslateUI.h"
     24#include "UILibraryDefs.h"
    2425
    2526/** QIRichToolButton extension
    2627  * representing arrow tool-button with text-label,
    2728  * can be used as back/next buttons in various places. */
    28 class QIArrowButtonPress : public QIWithRetranslateUI<QIRichToolButton>
     29class SHARED_LIBRARY_STUFF QIArrowButtonPress : public QIWithRetranslateUI<QIRichToolButton>
    2930{
    3031    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIArrowButtonSwitch.h

    r71394 r71630  
    2424/* GUI includes: */
    2525#include "QIRichToolButton.h"
     26#include "UILibraryDefs.h"
    2627
    2728/** QIRichToolButton extension
    2829  * representing arrow tool-button with text-label,
    2930  * can be used as collaps/expand switch in various places. */
    30 class QIArrowButtonSwitch : public QIRichToolButton
     31class SHARED_LIBRARY_STUFF QIArrowButtonSwitch : public QIRichToolButton
    3132{
    3233    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIArrowSplitter.h

    r71395 r71630  
    2424/* GUI includes: */
    2525#include "QIWithRetranslateUI.h"
     26#include "UILibraryDefs.h"
    2627
    2728/* Forward declarations: */
     
    3738/** QWidget extension
    3839  * allowing to toggle visibility for any other child widget. */
    39 class QIArrowSplitter : public QIWithRetranslateUI<QWidget>
     40class SHARED_LIBRARY_STUFF QIArrowSplitter : public QIWithRetranslateUI<QWidget>
    4041{
    4142    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIDialog.h

    r71396 r71630  
    2323#include <QPointer>
    2424
     25/* GUI includes: */
     26#include "UILibraryDefs.h"
     27
    2528/* Forward declarations: */
    2629class QEventLoop;
     
    2831/** QDialog extension providing the GUI with
    2932  * the advanced capabilities like delayed show. */
    30 class QIDialog : public QDialog
     33class SHARED_LIBRARY_STUFF QIDialog : public QDialog
    3134{
    3235    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIDialogButtonBox.h

    r71348 r71630  
    2525/* GUI includes: */
    2626#include "QIWithRetranslateUI.h"
     27#include "UILibraryDefs.h"
    2728
    2829/* Forward declarations: */
     
    3233
    3334/** QDialogButtonBox subclass extending standard functionality. */
    34 class QIDialogButtonBox : public QIWithRetranslateUI<QDialogButtonBox>
     35class SHARED_LIBRARY_STUFF QIDialogButtonBox : public QIWithRetranslateUI<QDialogButtonBox>
    3536{
    3637    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIFileDialog.h

    r71392 r71630  
    2222#include <QFileDialog>
    2323
     24/* GUI includes: */
     25#include "UILibraryDefs.h"
     26
    2427/** QFileDialog subclass simplifying access to it's static stuff. */
    25 class QIFileDialog : public QFileDialog
     28class SHARED_LIBRARY_STUFF QIFileDialog : public QFileDialog
    2629{
    2730    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QILabel.h

    r71399 r71630  
    2626#include <QLabel>
    2727
     28/* GUI includes: */
     29#include "UILibraryDefs.h"
     30
    2831/** QLabel subclass extending it with advanced functionality. */
    29 class QILabel : public QLabel
     32class SHARED_LIBRARY_STUFF QILabel : public QLabel
    3033{
    3134    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMainWindow.h

    r71400 r71630  
    2222#include <QMainWindow>
    2323
     24/* GUI includes: */
     25#include "UILibraryDefs.h"
     26
    2427/** QMainWindow extension providing GUI
    2528  * with the extended geometry management support. */
    26 class QIMainWindow : public QMainWindow
     29class SHARED_LIBRARY_STUFF QIMainWindow : public QMainWindow
    2730{
    2831    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMessageBox.h

    r71401 r71630  
    2424/* GUI includes: */
    2525#include "QIDialog.h"
     26#include "UILibraryDefs.h"
    2627
    2728/* Forward declarations: */
     
    7879
    7980/** QIDialog extension representing GUI alerts. */
    80 class QIMessageBox : public QIDialog
     81class SHARED_LIBRARY_STUFF QIMessageBox : public QIDialog
    8182{
    8283    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIProcess.h

    r71402 r71630  
    2222#include <QProcess>
    2323
     24/* GUI includes: */
     25#include "UILibraryDefs.h"
     26
    2427/** QProcess extension for VBox GUI needs. */
    25 class QIProcess : public QProcess
     28class SHARED_LIBRARY_STUFF QIProcess : public QProcess
    2629{
    2730    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIRichTextLabel.h

    r71403 r71630  
    2222#include <QTextEdit>
    2323
     24/* GUI includes: */
     25#include "UILibraryDefs.h"
     26
    2427/** QLabel analog to reflect rich-text,
    2528 ** based on private QTextEdit functionality. */
    26 class QIRichTextLabel : public QWidget
     29class SHARED_LIBRARY_STUFF QIRichTextLabel : public QWidget
    2730{
    2831    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIRichToolButton.h

    r71404 r71630  
    2222#include <QWidget>
    2323
     24/* GUI includes: */
     25#include "UILibraryDefs.h"
     26
    2427/* Forward declarations: */
    2528class QLabel;
     
    2932/** QWidget extension
    3033  * representing tool-button with separate text-label. */
    31 class QIRichToolButton : public QWidget
     34class SHARED_LIBRARY_STUFF QIRichToolButton : public QWidget
    3235{
    3336    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QISplitter.h

    r71407 r71630  
    2222#include <QSplitter>
    2323
     24/* GUI includes: */
     25#include "UILibraryDefs.h"
     26
    2427/* Forward declarations: */
    2528class QSplitterHandle;
    2629
    2730/** QSplitter subclass with extended functionality. */
    28 class QISplitter : public QSplitter
     31class SHARED_LIBRARY_STUFF QISplitter : public QSplitter
    2932{
    3033    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIStatusBarIndicator.h

    r71408 r71630  
    2424#include <QWidget>
    2525
     26/* GUI includes: */
     27#include "UILibraryDefs.h"
     28
    2629/* Forward declarations: */
    2730class QIcon;
     
    3336
    3437/** QWidget extension used as status-bar indicator. */
    35 class QIStatusBarIndicator : public QWidget
     38class SHARED_LIBRARY_STUFF QIStatusBarIndicator : public QWidget
    3639{
    3740    Q_OBJECT;
     
    7073
    7174/** QIStatusBarIndicator extension used as status-bar state indicator. */
    72 class QIStateStatusBarIndicator : public QIStatusBarIndicator
     75class SHARED_LIBRARY_STUFF QIStateStatusBarIndicator : public QIStatusBarIndicator
    7376{
    7477    Q_OBJECT;
     
    112115
    113116/** QIStatusBarIndicator extension used as status-bar state indicator. */
    114 class QITextStatusBarIndicator : public QIStatusBarIndicator
     117class SHARED_LIBRARY_STUFF QITextStatusBarIndicator : public QIStatusBarIndicator
    115118{
    116119    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIToolButton.h

    r71346 r71630  
    2222#include <QToolButton>
    2323
     24/* GUI includes: */
     25#include "UILibraryDefs.h"
     26
    2427/** QToolButton subclass with extended functionality. */
    25 class QIToolButton : public QToolButton
     28class SHARED_LIBRARY_STUFF QIToolButton : public QToolButton
    2629{
    2730    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIWidgetValidator.h

    r71410 r71630  
    2424#include <QValidator>
    2525
     26/* GUI includes: */
     27#include "UILibraryDefs.h"
     28
    2629/* Forward declarations: */
    2730class QPixmap;
     
    3235/** QObject extension,
    3336  * providing passed QObject with validation routine. */
    34 class QObjectValidator : public QObject
     37class SHARED_LIBRARY_STUFF QObjectValidator : public QObject
    3538{
    3639    Q_OBJECT;
     
    7174/** QObject extension,
    7275  * which can group various QObjectValidator instances to operate on. */
    73 class QObjectValidatorGroup : public QObject
     76class SHARED_LIBRARY_STUFF QObjectValidatorGroup : public QObject
    7477{
    7578    Q_OBJECT;
     
    115118
    116119/** Page validator prototype. */
    117 class UIPageValidator : public QObject
     120class SHARED_LIBRARY_STUFF UIPageValidator : public QObject
    118121{
    119122    Q_OBJECT;
     
    176179/** QValidator extension,
    177180  * for long number validations. */
    178 class QIULongValidator : public QValidator
     181class SHARED_LIBRARY_STUFF QIULongValidator : public QValidator
    179182{
    180183public:
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h

    r71523 r71630  
    2323#include <QObject>
    2424
     25/* GUI includes: */
     26#include "UILibraryDefs.h"
     27
    2528/* Other VBox includes: */
    2629#include <iprt/cdefs.h>
     
    3336      * @{ */
    3437        /** Holds event handling type. */
    35         extern const char *GUI_EventHandlingType;
     38        SHARED_LIBRARY_STUFF extern const char *GUI_EventHandlingType;
    3639    /** @} */
    3740
     
    3942      * @{ */
    4043        /** Holds the list of supressed messages for the Message/Popup center frameworks. */
    41         extern const char *GUI_SuppressMessages;
     44        SHARED_LIBRARY_STUFF extern const char *GUI_SuppressMessages;
    4245        /** Holds the list of messages for the Message/Popup center frameworks with inverted check-box state. */
    43         extern const char *GUI_InvertMessageOption;
     46        SHARED_LIBRARY_STUFF extern const char *GUI_InvertMessageOption;
    4447#if !defined(VBOX_BLEEDING_EDGE) && !defined(DEBUG)
    4548        /** Holds version for which user wants to prevent BETA build warning. */
    46         extern const char *GUI_PreventBetaWarning;
     49        SHARED_LIBRARY_STUFF extern const char *GUI_PreventBetaWarning;
    4750#endif
    4851    /** @} */
     
    5255      * @{ */
    5356        /** Holds whether Application Update functionality enabled. */
    54         extern const char *GUI_PreventApplicationUpdate;
     57        SHARED_LIBRARY_STUFF extern const char *GUI_PreventApplicationUpdate;
    5558        /** Holds Application Update data. */
    56         extern const char *GUI_UpdateDate;
     59        SHARED_LIBRARY_STUFF extern const char *GUI_UpdateDate;
    5760        /** Holds Application Update check counter. */
    58         extern const char *GUI_UpdateCheckCount;
     61        SHARED_LIBRARY_STUFF extern const char *GUI_UpdateCheckCount;
    5962    /** @} */
    6063#endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
     
    6366      * @{ */
    6467        /** Holds whether legacy progress handling method is requested. */
    65         extern const char *GUI_Progress_LegacyMode;
     68        SHARED_LIBRARY_STUFF extern const char *GUI_Progress_LegacyMode;
    6669    /** @} */
    6770
     
    6972      * @{ */
    7073        /** Holds GUI feature list. */
    71         extern const char *GUI_Customizations;
     74        SHARED_LIBRARY_STUFF extern const char *GUI_Customizations;
    7275        /** Holds restricted Global Settings pages. */
    73         extern const char *GUI_RestrictedGlobalSettingsPages;
     76        SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedGlobalSettingsPages;
    7477        /** Holds restricted Machine Settings pages. */
    75         extern const char *GUI_RestrictedMachineSettingsPages;
     78        SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedMachineSettingsPages;
    7679    /** @} */
    7780
     
    7982      * @{ */
    8083        /** Holds whether host screen-saver should be disabled. */
    81         extern const char *GUI_HostScreenSaverDisabled;
     84        SHARED_LIBRARY_STUFF extern const char *GUI_HostScreenSaverDisabled;
    8285    /** @} */
    8386
     
    8588      * @{ */
    8689        /** Holds GUI language ID. */
    87         extern const char *GUI_LanguageID;
     90        SHARED_LIBRARY_STUFF extern const char *GUI_LanguageID;
    8891    /** @} */
    8992
     
    9194      * @{ */
    9295        /** Holds maximum guest-screen resolution policy/value. */
    93         extern const char *GUI_MaxGuestResolution;
     96        SHARED_LIBRARY_STUFF extern const char *GUI_MaxGuestResolution;
    9497        /** Holds whether hovered machine-window should be activated. */
    95         extern const char *GUI_ActivateHoveredMachineWindow;
     98        SHARED_LIBRARY_STUFF extern const char *GUI_ActivateHoveredMachineWindow;
    9699    /** @} */
    97100
     
    99102      * @{ */
    100103        /** Holds Selector UI shortcut overrides. */
    101         extern const char *GUI_Input_SelectorShortcuts;
     104        SHARED_LIBRARY_STUFF extern const char *GUI_Input_SelectorShortcuts;
    102105        /** Holds Runtime UI shortcut overrides. */
    103         extern const char *GUI_Input_MachineShortcuts;
     106        SHARED_LIBRARY_STUFF extern const char *GUI_Input_MachineShortcuts;
    104107        /** Holds Runtime UI host-key combination. */
    105         extern const char *GUI_Input_HostKeyCombination;
     108        SHARED_LIBRARY_STUFF extern const char *GUI_Input_HostKeyCombination;
    106109        /** Holds whether Runtime UI auto-capture is enabled. */
    107         extern const char *GUI_Input_AutoCapture;
     110        SHARED_LIBRARY_STUFF extern const char *GUI_Input_AutoCapture;
    108111        /** Holds Runtime UI remapped scan codes. */
    109         extern const char *GUI_RemapScancodes;
     112        SHARED_LIBRARY_STUFF extern const char *GUI_RemapScancodes;
    110113    /** @} */
    111114
     
    113116      * @{ */
    114117        /** Holds VBox proxy settings. */
    115         extern const char *GUI_ProxySettings;
     118        SHARED_LIBRARY_STUFF extern const char *GUI_ProxySettings;
    116119    /** @} */
    117120
     
    119122      * @{ */
    120123        /** Holds recent folder for hard-drives. */
    121         extern const char *GUI_RecentFolderHD;
     124        SHARED_LIBRARY_STUFF extern const char *GUI_RecentFolderHD;
    122125        /** Holds recent folder for optical-disks. */
    123         extern const char *GUI_RecentFolderCD;
     126        SHARED_LIBRARY_STUFF extern const char *GUI_RecentFolderCD;
    124127        /** Holds recent folder for floppy-disks. */
    125         extern const char *GUI_RecentFolderFD;
     128        SHARED_LIBRARY_STUFF extern const char *GUI_RecentFolderFD;
    126129        /** Holds recent folder for VISO creation content. */
    127         extern const char *GUI_RecentFolderVISOContent;
     130        SHARED_LIBRARY_STUFF extern const char *GUI_RecentFolderVISOContent;
    128131        /** Holds the list of recently used hard-drives. */
    129         extern const char *GUI_RecentListHD;
     132        SHARED_LIBRARY_STUFF extern const char *GUI_RecentListHD;
    130133        /** Holds the list of recently used optical-disks. */
    131         extern const char *GUI_RecentListCD;
     134        SHARED_LIBRARY_STUFF extern const char *GUI_RecentListCD;
    132135        /** Holds the list of recently used floppy-disks. */
    133         extern const char *GUI_RecentListFD;
     136        SHARED_LIBRARY_STUFF extern const char *GUI_RecentListFD;
    134137    /** @} */
    135138
     
    137140      * @{ */
    138141        /** Holds selector-window geometry. */
    139         extern const char *GUI_LastSelectorWindowPosition;
     142        SHARED_LIBRARY_STUFF extern const char *GUI_LastSelectorWindowPosition;
    140143        /** Holds selector-window splitter hints. */
    141         extern const char *GUI_SplitterSizes;
     144        SHARED_LIBRARY_STUFF extern const char *GUI_SplitterSizes;
    142145        /** Holds whether selector-window tool-bar visible. */
    143         extern const char *GUI_Toolbar;
     146        SHARED_LIBRARY_STUFF extern const char *GUI_Toolbar;
    144147        /** Holds whether selector-window tool-bar text visible. */
    145         extern const char *GUI_Toolbar_Text;
     148        SHARED_LIBRARY_STUFF extern const char *GUI_Toolbar_Text;
    146149        /** Holds the selector-window machine tools order. */
    147         extern const char *GUI_Toolbar_MachineTools_Order;
     150        SHARED_LIBRARY_STUFF extern const char *GUI_Toolbar_MachineTools_Order;
    148151        /** Holds the selector-window global tools order. */
    149         extern const char *GUI_Toolbar_GlobalTools_Order;
     152        SHARED_LIBRARY_STUFF extern const char *GUI_Toolbar_GlobalTools_Order;
    150153        /** Holds whether selector-window status-bar visible. */
    151         extern const char *GUI_Statusbar;
     154        SHARED_LIBRARY_STUFF extern const char *GUI_Statusbar;
    152155        /** Prefix used by composite extra-data keys,
    153156          * which holds selector-window chooser-pane' groups definitions. */
    154         extern const char *GUI_GroupDefinitions;
     157        SHARED_LIBRARY_STUFF extern const char *GUI_GroupDefinitions;
    155158        /** Holds last item chosen in selector-window chooser-pane. */
    156         extern const char *GUI_LastItemSelected;
     159        SHARED_LIBRARY_STUFF extern const char *GUI_LastItemSelected;
    157160        /** Holds selector-window details-pane' elements. */
    158         extern const char *GUI_DetailsPageBoxes;
     161        SHARED_LIBRARY_STUFF extern const char *GUI_DetailsPageBoxes;
    159162        /** Holds selector-window details-pane' preview update interval. */
    160         extern const char *GUI_PreviewUpdate;
     163        SHARED_LIBRARY_STUFF extern const char *GUI_PreviewUpdate;
    161164    /** @} */
    162165
     
    164167      * @{ */
    165168        /** Holds whether Snapshot Manager details expanded. */
    166         extern const char *GUI_SnapshotManager_Details_Expanded;
     169        SHARED_LIBRARY_STUFF extern const char *GUI_SnapshotManager_Details_Expanded;
    167170    /** @} */
    168171
     
    170173      * @{ */
    171174        /** Holds whether Virtual Media Manager details expanded. */
    172         extern const char *GUI_VirtualMediaManager_Details_Expanded;
     175        SHARED_LIBRARY_STUFF extern const char *GUI_VirtualMediaManager_Details_Expanded;
    173176    /** @} */
    174177
     
    176179      * @{ */
    177180        /** Holds whether Host Network Manager details expanded. */
    178         extern const char *GUI_HostNetworkManager_Details_Expanded;
     181        SHARED_LIBRARY_STUFF extern const char *GUI_HostNetworkManager_Details_Expanded;
    179182    /** @} */
    180183
     
    183186      * @{ */
    184187        /** Holds extra-data manager geometry. */
    185         extern const char *GUI_ExtraDataManager_Geometry;
     188        SHARED_LIBRARY_STUFF extern const char *GUI_ExtraDataManager_Geometry;
    186189        /** Holds extra-data manager splitter hints. */
    187         extern const char *GUI_ExtraDataManager_SplitterHints;
     190        SHARED_LIBRARY_STUFF extern const char *GUI_ExtraDataManager_SplitterHints;
    188191    /** @} */
    189192#endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */
     
    192195      * @{ */
    193196        /** Holds wizard types for which descriptions should be hidden. */
    194         extern const char *GUI_HideDescriptionForWizards;
     197        SHARED_LIBRARY_STUFF extern const char *GUI_HideDescriptionForWizards;
    195198    /** @} */
    196199
     
    198201      * @{ */
    199202        /** Holds whether machine shouldn't be shown in selector-window chooser-pane. */
    200         extern const char *GUI_HideFromManager;
     203        SHARED_LIBRARY_STUFF extern const char *GUI_HideFromManager;
    201204        /** Holds whether machine shouldn't be shown in selector-window details-pane. */
    202         extern const char *GUI_HideDetails;
     205        SHARED_LIBRARY_STUFF extern const char *GUI_HideDetails;
    203206        /** Holds whether machine reconfiguration disabled. */
    204         extern const char *GUI_PreventReconfiguration;
     207        SHARED_LIBRARY_STUFF extern const char *GUI_PreventReconfiguration;
    205208        /** Holds whether machine snapshot operations disabled. */
    206         extern const char *GUI_PreventSnapshotOperations;
     209        SHARED_LIBRARY_STUFF extern const char *GUI_PreventSnapshotOperations;
    207210        /** Holds whether this machine is first time started. */
    208         extern const char *GUI_FirstRun;
     211        SHARED_LIBRARY_STUFF extern const char *GUI_FirstRun;
    209212        /** Except Mac OS X: Holds redefined machine-window icon names. */
    210         extern const char *GUI_MachineWindowIcons;
     213        SHARED_LIBRARY_STUFF extern const char *GUI_MachineWindowIcons;
    211214#ifndef VBOX_WS_MAC
    212215        /** Except Mac OS X: Holds redefined machine-window name postfix. */
    213         extern const char *GUI_MachineWindowNamePostfix;
     216        SHARED_LIBRARY_STUFF extern const char *GUI_MachineWindowNamePostfix;
    214217#endif
    215218        /** Prefix used by composite extra-data keys,
    216219          * which holds normal machine-window geometry per screen-index. */
    217         extern const char *GUI_LastNormalWindowPosition;
     220        SHARED_LIBRARY_STUFF extern const char *GUI_LastNormalWindowPosition;
    218221        /** Prefix used by composite extra-data keys,
    219222          * which holds scaled machine-window geometry per screen-index. */
    220         extern const char *GUI_LastScaleWindowPosition;
     223        SHARED_LIBRARY_STUFF extern const char *GUI_LastScaleWindowPosition;
    221224        /** Holds machine-window geometry maximized state flag. */
    222         extern const char *GUI_Geometry_State_Max;
     225        SHARED_LIBRARY_STUFF extern const char *GUI_Geometry_State_Max;
    223226#ifndef VBOX_WS_MAC
    224227        /** Holds Runtime UI menu-bar availability status. */
    225         extern const char *GUI_MenuBar_Enabled;
     228        SHARED_LIBRARY_STUFF extern const char *GUI_MenuBar_Enabled;
    226229#endif
    227230        /** Holds Runtime UI menu-bar context-menu availability status. */
    228         extern const char *GUI_MenuBar_ContextMenu_Enabled;
     231        SHARED_LIBRARY_STUFF extern const char *GUI_MenuBar_ContextMenu_Enabled;
    229232        /** Holds restricted Runtime UI menu types. */
    230         extern const char *GUI_RestrictedRuntimeMenus;
     233        SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeMenus;
    231234        /** Holds restricted Runtime UI action types for 'Application' menu. */
    232         extern const char *GUI_RestrictedRuntimeApplicationMenuActions;
     235        SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeApplicationMenuActions;
    233236        /** Holds restricted Runtime UI action types for Machine menu. */
    234         extern const char *GUI_RestrictedRuntimeMachineMenuActions;
     237        SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeMachineMenuActions;
    235238        /** Holds restricted Runtime UI action types for View menu. */
    236         extern const char *GUI_RestrictedRuntimeViewMenuActions;
     239        SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeViewMenuActions;
    237240        /** Holds restricted Runtime UI action types for Input menu. */
    238         extern const char *GUI_RestrictedRuntimeInputMenuActions;
     241        SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeInputMenuActions;
    239242        /** Holds restricted Runtime UI action types for Devices menu. */
    240         extern const char *GUI_RestrictedRuntimeDevicesMenuActions;
     243        SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeDevicesMenuActions;
    241244#ifdef VBOX_WITH_DEBUGGER_GUI
    242245        /** Holds restricted Runtime UI action types for Debugger menu. */
    243         extern const char *GUI_RestrictedRuntimeDebuggerMenuActions;
     246        SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeDebuggerMenuActions;
    244247#endif
    245248#ifdef VBOX_WS_MAC
    246249        /** Mac OS X: Holds restricted Runtime UI action types for 'Window' menu. */
    247         extern const char *GUI_RestrictedRuntimeWindowMenuActions;
     250        SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeWindowMenuActions;
    248251#endif
    249252        /** Holds restricted Runtime UI action types for Help menu. */
    250         extern const char *GUI_RestrictedRuntimeHelpMenuActions;
     253        SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedRuntimeHelpMenuActions;
    251254        /** Holds restricted Runtime UI visual-states. */
    252         extern const char *GUI_RestrictedVisualStates;
     255        SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedVisualStates;
    253256        /** Holds whether full screen visual-state is requested. */
    254         extern const char *GUI_Fullscreen;
     257        SHARED_LIBRARY_STUFF extern const char *GUI_Fullscreen;
    255258        /** Holds whether seamless visual-state is requested. */
    256         extern const char *GUI_Seamless;
     259        SHARED_LIBRARY_STUFF extern const char *GUI_Seamless;
    257260        /** Holds whether scaled visual-state is requested. */
    258         extern const char *GUI_Scale;
     261        SHARED_LIBRARY_STUFF extern const char *GUI_Scale;
    259262#ifdef VBOX_WS_X11
    260263        /** Holds whether legacy full-screen mode is requested. */
    261         extern const char *GUI_Fullscreen_LegacyMode;
     264        SHARED_LIBRARY_STUFF extern const char *GUI_Fullscreen_LegacyMode;
    262265        /** Holds whether internal machine-window names should be unique. */
    263         extern const char *GUI_DistinguishMachineWindowGroups;
     266        SHARED_LIBRARY_STUFF extern const char *GUI_DistinguishMachineWindowGroups;
    264267#endif /* VBOX_WS_X11 */
    265268        /** Holds whether guest-screen auto-resize according machine-window size is enabled. */
    266         extern const char *GUI_AutoresizeGuest;
     269        SHARED_LIBRARY_STUFF extern const char *GUI_AutoresizeGuest;
    267270        /** Prefix used by composite extra-data keys,
    268271          * which holds last guest-screen visibility status per screen-index. */
    269         extern const char *GUI_LastVisibilityStatusForGuestScreen;
     272        SHARED_LIBRARY_STUFF extern const char *GUI_LastVisibilityStatusForGuestScreen;
    270273        /** Prefix used by composite extra-data keys,
    271274          * which holds last guest-screen size-hint per screen-index. */
    272         extern const char *GUI_LastGuestSizeHint;
     275        SHARED_LIBRARY_STUFF extern const char *GUI_LastGuestSizeHint;
    273276        /** Prefix used by composite extra-data keys,
    274277          * which holds host-screen index per guest-screen index. */
    275         extern const char *GUI_VirtualScreenToHostScreen;
     278        SHARED_LIBRARY_STUFF extern const char *GUI_VirtualScreenToHostScreen;
    276279        /** Holds whether automatic mounting/unmounting of guest-screens enabled. */
    277         extern const char *GUI_AutomountGuestScreens;
     280        SHARED_LIBRARY_STUFF extern const char *GUI_AutomountGuestScreens;
    278281#ifdef VBOX_WITH_VIDEOHWACCEL
    279282        /** Holds whether 2D acceleration should use linear sretch. */
    280         extern const char *GUI_Accelerate2D_StretchLinear;
     283        SHARED_LIBRARY_STUFF extern const char *GUI_Accelerate2D_StretchLinear;
    281284        /** Holds whether 2D acceleration should use YV12 pixel format. */
    282         extern const char *GUI_Accelerate2D_PixformatYV12;
     285        SHARED_LIBRARY_STUFF extern const char *GUI_Accelerate2D_PixformatYV12;
    283286        /** Holds whether 2D acceleration should use UYVY pixel format. */
    284         extern const char *GUI_Accelerate2D_PixformatUYVY;
     287        SHARED_LIBRARY_STUFF extern const char *GUI_Accelerate2D_PixformatUYVY;
    285288        /** Holds whether 2D acceleration should use YUY2 pixel format. */
    286         extern const char *GUI_Accelerate2D_PixformatYUY2;
     289        SHARED_LIBRARY_STUFF extern const char *GUI_Accelerate2D_PixformatYUY2;
    287290        /** Holds whether 2D acceleration should use AYUV pixel format. */
    288         extern const char *GUI_Accelerate2D_PixformatAYUV;
     291        SHARED_LIBRARY_STUFF extern const char *GUI_Accelerate2D_PixformatAYUV;
    289292#endif /* VBOX_WITH_VIDEOHWACCEL */
    290293#ifndef VBOX_WS_MAC
    291294        /** Holds whether mini-toolbar is enabled for full and seamless screens. */
    292         extern const char *GUI_ShowMiniToolBar;
     295        SHARED_LIBRARY_STUFF extern const char *GUI_ShowMiniToolBar;
    293296        /** Holds whether mini-toolbar should auto-hide itself. */
    294         extern const char *GUI_MiniToolBarAutoHide;
     297        SHARED_LIBRARY_STUFF extern const char *GUI_MiniToolBarAutoHide;
    295298        /** Holds mini-toolbar alignment. */
    296         extern const char *GUI_MiniToolBarAlignment;
     299        SHARED_LIBRARY_STUFF extern const char *GUI_MiniToolBarAlignment;
    297300#endif /* !VBOX_WS_MAC */
    298301        /** Holds Runtime UI status-bar availability status. */
    299         extern const char *GUI_StatusBar_Enabled;
     302        SHARED_LIBRARY_STUFF extern const char *GUI_StatusBar_Enabled;
    300303        /** Holds Runtime UI status-bar context-menu availability status. */
    301         extern const char *GUI_StatusBar_ContextMenu_Enabled;
     304        SHARED_LIBRARY_STUFF extern const char *GUI_StatusBar_ContextMenu_Enabled;
    302305        /** Holds restricted Runtime UI status-bar indicators. */
    303         extern const char *GUI_RestrictedStatusBarIndicators;
     306        SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedStatusBarIndicators;
    304307        /** Holds Runtime UI status-bar indicator order. */
    305         extern const char *GUI_StatusBar_IndicatorOrder;
     308        SHARED_LIBRARY_STUFF extern const char *GUI_StatusBar_IndicatorOrder;
    306309#ifdef VBOX_WS_MAC
    307310        /** Mac OS X: Holds whether Dock icon should be updated at runtime. */
    308         extern const char *GUI_RealtimeDockIconUpdateEnabled;
     311        SHARED_LIBRARY_STUFF extern const char *GUI_RealtimeDockIconUpdateEnabled;
    309312        /** Mac OS X: Holds guest-screen which Dock icon should reflect at runtime. */
    310         extern const char *GUI_RealtimeDockIconUpdateMonitor;
     313        SHARED_LIBRARY_STUFF extern const char *GUI_RealtimeDockIconUpdateMonitor;
    311314        /** Mac OS X: Holds whether Dock icon should have overlay disabled. */
    312         extern const char *GUI_DockIconDisableOverlay;
     315        SHARED_LIBRARY_STUFF extern const char *GUI_DockIconDisableOverlay;
    313316#endif /* VBOX_WS_MAC */
    314317        /** Holds whether machine should pass CAD to guest. */
    315         extern const char *GUI_PassCAD;
     318        SHARED_LIBRARY_STUFF extern const char *GUI_PassCAD;
    316319        /** Holds the mouse capture policy. */
    317         extern const char *GUI_MouseCapturePolicy;
     320        SHARED_LIBRARY_STUFF extern const char *GUI_MouseCapturePolicy;
    318321        /** Holds redefined guru-meditation handler type. */
    319         extern const char *GUI_GuruMeditationHandler;
     322        SHARED_LIBRARY_STUFF extern const char *GUI_GuruMeditationHandler;
    320323        /** Holds whether machine should perform HID LEDs synchronization. */
    321         extern const char *GUI_HidLedsSync;
     324        SHARED_LIBRARY_STUFF extern const char *GUI_HidLedsSync;
    322325        /** Holds the scale-factor. */
    323         extern const char *GUI_ScaleFactor;
     326        SHARED_LIBRARY_STUFF extern const char *GUI_ScaleFactor;
    324327        /** Holds the scaling optimization type. */
    325         extern const char *GUI_Scaling_Optimization;
     328        SHARED_LIBRARY_STUFF extern const char *GUI_Scaling_Optimization;
    326329    /** @} */
    327330
     
    329332      * @{ */
    330333        /** Holds information-window geometry. */
    331         extern const char *GUI_InformationWindowGeometry;
     334        SHARED_LIBRARY_STUFF extern const char *GUI_InformationWindowGeometry;
    332335        /** Holds information-window elements. */
    333         extern const char *GUI_InformationWindowElements;
     336        SHARED_LIBRARY_STUFF extern const char *GUI_InformationWindowElements;
    334337        extern const char *GUI_GuestSessionManagerTabSplitterHints;
    335338        extern const char *GUI_GuestFileManagerTabSplitterHints;
     
    339342      * @{ */
    340343        /** Holds default machine close action. */
    341         extern const char *GUI_DefaultCloseAction;
     344        SHARED_LIBRARY_STUFF extern const char *GUI_DefaultCloseAction;
    342345        /** Holds restricted machine close actions. */
    343         extern const char *GUI_RestrictedCloseActions;
     346        SHARED_LIBRARY_STUFF extern const char *GUI_RestrictedCloseActions;
    344347        /** Holds last machine close action. */
    345         extern const char *GUI_LastCloseAction;
     348        SHARED_LIBRARY_STUFF extern const char *GUI_LastCloseAction;
    346349        /** Holds machine close hook script name as simple string. */
    347         extern const char *GUI_CloseActionHook;
     350        SHARED_LIBRARY_STUFF extern const char *GUI_CloseActionHook;
    348351    /** @} */
    349352
     
    352355      * @{ */
    353356        /** Holds whether debugger UI enabled. */
    354         extern const char *GUI_Dbg_Enabled;
     357        SHARED_LIBRARY_STUFF extern const char *GUI_Dbg_Enabled;
    355358        /** Holds whether debugger UI should be auto-shown. */
    356         extern const char *GUI_Dbg_AutoShow;
     359        SHARED_LIBRARY_STUFF extern const char *GUI_Dbg_AutoShow;
    357360    /** @} */
    358361#endif /* VBOX_WITH_DEBUGGER_GUI */
     
    361364      * @{ */
    362365        /** Holds log-viewer geometry. */
    363         extern const char *GUI_LogWindowGeometry;
     366        SHARED_LIBRARY_STUFF extern const char *GUI_LogWindowGeometry;
    364367    /** @} */
    365368}
     
    367370
    368371/** Extra-data meta definitions. */
    369 class UIExtraDataMetaDefs : public QObject
     372class SHARED_LIBRARY_STUFF UIExtraDataMetaDefs : public QObject
    370373{
    371374    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h

    r71580 r71630  
    4444  * providing GUI with corresponding extra-data values,
    4545  * and notifying it whenever any of those values changed. */
    46 class UIExtraDataManager : public QObject
     46class SHARED_LIBRARY_STUFF UIExtraDataManager : public QObject
    4747{
    4848    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/COMDefs.h

    r70114 r71630  
    8383#include <QMetaType>
    8484
     85/* GUI includes: */
     86#include "UILibraryDefs.h"
     87
    8588/*
    8689 * Additional COM / XPCOM defines and includes
     
    104107
    105108/** Represents extended error information */
    106 class COMErrorInfo
     109class SHARED_LIBRARY_STUFF COMErrorInfo
    107110{
    108111public:
     
    187190 * from. Provides common functionality for all COM wrappers.
    188191 */
    189 class COMBase
     192class SHARED_LIBRARY_STUFF COMBase
    190193{
    191194public:
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h

    r71582 r71630  
    2626#include "QIWithRetranslateUI.h"
    2727#include "UIExtraDataDefs.h"
     28#include "UILibraryDefs.h"
    2829
    2930/* Forward declarations: */
     
    101102
    102103/** QMenu extension. */
    103 class UIMenu : public QMenu
     104class SHARED_LIBRARY_STUFF UIMenu : public QMenu
    104105{
    105106    Q_OBJECT;
     
    145146
    146147/** Abstract QAction extension. */
    147 class UIAction : public QAction
     148class SHARED_LIBRARY_STUFF UIAction : public QAction
    148149{
    149150    Q_OBJECT;
     
    225226
    226227/** Abstract UIAction extension for 'Menu' action type. */
    227 class UIActionMenu : public UIAction
     228class SHARED_LIBRARY_STUFF UIActionMenu : public UIAction
    228229{
    229230    Q_OBJECT;
     
    256257
    257258/** Abstract UIAction extension for 'Simple' action type. */
    258 class UIActionSimple : public UIAction
     259class SHARED_LIBRARY_STUFF UIActionSimple : public UIAction
    259260{
    260261    Q_OBJECT;
     
    284285
    285286/** Abstract UIAction extension for 'Toggle' action type. */
    286 class UIActionToggle : public UIAction
     287class SHARED_LIBRARY_STUFF UIActionToggle : public UIAction
    287288{
    288289    Q_OBJECT;
     
    316317
    317318/** Abstract UIAction extension for 'Polymorphic' action type. */
    318 class UIActionPolymorphic : public UIAction
     319class SHARED_LIBRARY_STUFF UIActionPolymorphic : public UIAction
    319320{
    320321    Q_OBJECT;
     
    355356
    356357/** Abstract UIAction extension for 'Polymorphic Menu' action type. */
    357 class UIActionPolymorphicMenu : public UIAction
     358class SHARED_LIBRARY_STUFF UIActionPolymorphicMenu : public UIAction
    358359{
    359360    Q_OBJECT;
     
    416417/** Abstract QObject extension
    417418  * representing action-pool interface and factory. */
    418 class UIActionPool : public QIWithRetranslateUI3<QObject>
     419class SHARED_LIBRARY_STUFF UIActionPool : public QIWithRetranslateUI3<QObject>
    419420{
    420421    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIAnimationFramework.h

    r71425 r71630  
    2222#include <QObject>
    2323
     24/* GUI includes: */
     25#include "UILibraryDefs.h"
     26
    2427/* Forward declaration: */
    2528class QPropertyAnimation;
     
    2932
    3033/** QObject subclass used as animation factory. */
    31 class UIAnimation : public QObject
     34class SHARED_LIBRARY_STUFF UIAnimation : public QObject
    3235{
    3336    Q_OBJECT;
     
    111114
    112115/** QObject subclass used as animation loop factory. */
    113 class UIAnimationLoop : public QObject
     116class SHARED_LIBRARY_STUFF UIAnimationLoop : public QObject
    114117{
    115118    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.h

    r71428 r71630  
    2222#include <QEvent>
    2323#include <QStringList>
     24
     25/* GUI includes: */
     26#include "UILibraryDefs.h"
    2427
    2528/* COM includes: */
     
    7780
    7881    /** Default guest additions image name. */
    79     extern const char* GUI_GuestAdditionsName;
     82    SHARED_LIBRARY_STUFF extern const char* GUI_GuestAdditionsName;
    8083    /** Default extension pack name. */
    81     extern const char* GUI_ExtPackName;
     84    SHARED_LIBRARY_STUFF extern const char* GUI_ExtPackName;
    8285
    8386    /** Allowed VBox file extensions. */
    84     extern QStringList VBoxFileExts;
     87    SHARED_LIBRARY_STUFF extern QStringList VBoxFileExts;
    8588    /** Allowed VBox Extension Pack file extensions. */
    86     extern QStringList VBoxExtPackFileExts;
     89    SHARED_LIBRARY_STUFF extern QStringList VBoxExtPackFileExts;
    8790    /** Allowed OVF file extensions. */
    88     extern QStringList OVFFileExts;
     91    SHARED_LIBRARY_STUFF extern QStringList OVFFileExts;
    8992    /** Allowed OPC file extensions. */
    90     extern QStringList OPCFileExts;
     93    SHARED_LIBRARY_STUFF extern QStringList OPCFileExts;
    9194}
    9295using namespace UIDefs /* if header included */;
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.h

    r71429 r71630  
    2626#endif
    2727
     28/* GUI includes: */
     29#include "UILibraryDefs.h"
     30
    2831/* Forward declarations: */
    2932class QScreen;
     
    3134/** Singleton QObject extension used as desktop-widget
    3235  * watchdog aware of the host-screen geometry changes. */
    33 class UIDesktopWidgetWatchdog : public QObject
     36class SHARED_LIBRARY_STUFF UIDesktopWidgetWatchdog : public QObject
    3437{
    3538    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIErrorString.h

    r71436 r71630  
    2222#include <QString>
    2323
     24/* GUI includes: */
     25#include "UILibraryDefs.h"
     26
    2427/* Other VBox includes: */
    2528#include <VBox/com/defs.h>
     
    3336
    3437/** Namespace simplifying COM error formatting. */
    35 class UIErrorString
     38class SHARED_LIBRARY_STUFF UIErrorString
    3639{
    3740public:
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIIconPool.h

    r71452 r71630  
    2424#include <QHash>
    2525
     26/* GUI includes: */
     27#include "UILibraryDefs.h"
     28
    2629/* Forward declarations: */
    2730class CMachine;
     
    3033/** Interface which provides GUI with static API
    3134  * allowing to dynamically compose icons at runtime. */
    32 class UIIconPool
     35class SHARED_LIBRARY_STUFF UIIconPool
    3336{
    3437public:
     
    103106/** UIIconPool interface extension used as general GUI icon-pool.
    104107  * Provides GUI with guest OS types pixmap cache. */
    105 class UIIconPoolGeneral : public UIIconPool
     108class SHARED_LIBRARY_STUFF UIIconPoolGeneral : public UIIconPool
    106109{
    107110public:
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.h

    r71454 r71630  
    2222#include <QList>
    2323#include <QObject>
     24
     25/* GUI includes: */
     26#include "UILibraryDefs.h"
    2427
    2528/* COM includes: */
     
    5861
    5962/** Main event listener. */
    60 class UIMainEventListener : public QObject
     63class SHARED_LIBRARY_STUFF UIMainEventListener : public QObject
    6164{
    6265    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h

    r71459 r71630  
    2323
    2424/* GUI includes: */
     25#include "UILibraryDefs.h"
    2526#include "UIMediumDefs.h"
    2627
     
    5253/** Singleton QObject extension
    5354  * providing GUI with corresponding messages. */
    54 class UIMessageCenter : public QObject
     55class SHARED_LIBRARY_STUFF UIMessageCenter : public QObject
    5556{
    5657    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIModalWindowManager.h

    r71375 r71630  
    2424#include <QList>
    2525
     26/* GUI includes: */
     27#include "UILibraryDefs.h"
     28
    2629/** QObject subclass which contains a stack(s) of guarded-pointer(s) to the current top-level
    2730  * modal-window(s) which could be used to determine parents for new top-level modal-dialog(s). */
    28 class UIModalWindowManager : public QObject
     31class SHARED_LIBRARY_STUFF UIModalWindowManager : public QObject
    2932{
    3033    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.h

    r71489 r71630  
    2525
    2626/* GUI includes: */
     27#include "UILibraryDefs.h"
    2728#include "UIMediumDefs.h"
    2829
     
    5758/** Singleton QObject extension
    5859  * providing GUI with various popup messages. */
    59 class UIPopupCenter: public QObject
     60class SHARED_LIBRARY_STUFF UIPopupCenter: public QObject
    6061{
    6162    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIShortcutPool.h

    r71525 r71630  
    2424/* GUI includes: */
    2525#include "QIWithRetranslateUI.h"
     26#include "UILibraryDefs.h"
    2627
    2728/* Forward declarations: */
     
    3334
    3435/** Shortcut descriptor prototype. */
    35 class UIShortcut
     36class SHARED_LIBRARY_STUFF UIShortcut
    3637{
    3738public:
     
    8586
    8687/** QObject extension used as shortcut pool singleton. */
    87 class UIShortcutPool : public QIWithRetranslateUI3<QObject>
     88class SHARED_LIBRARY_STUFF UIShortcutPool : public QIWithRetranslateUI3<QObject>
    8889{
    8990    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIThreadPool.h

    r71526 r71630  
    2828#include <QWaitCondition>
    2929
     30/* GUI includes: */
     31#include "UILibraryDefs.h"
     32
    3033/* Forward declarations: */
    3134class UITask;
     
    3538/** QObject extension used as worker-thread pool.
    3639  * Schedules COM-related GUI tasks to multiple worker-threads. */
    37 class UIThreadPool : public QObject
     40class SHARED_LIBRARY_STUFF UIThreadPool : public QObject
    3841{
    3942    Q_OBJECT;
     
    114117/** QObject extension used as worker-thread task interface.
    115118  * Describes task to be executed by the UIThreadWorker object. */
    116 class UITask : public QObject
     119class SHARED_LIBRARY_STUFF UITask : public QObject
    117120{
    118121    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r71461 r71630  
    2525/* GUI includes: */
    2626#include "UIDefs.h"
     27#include "UILibraryDefs.h"
    2728#include "UIMediumDefs.h"
    2829#ifdef VBOX_WS_X11
     
    5859
    5960/** QObject subclass containing common GUI functionality. */
    60 class VBoxGlobal : public QObject
     61class SHARED_LIBRARY_STUFF VBoxGlobal : public QObject
    6162{
    6263    Q_OBJECT
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxUtils.h

    r71551 r71630  
    2525
    2626/* GUI includes: */
     27#include "UILibraryDefs.h"
    2728#ifdef VBOX_WS_MAC
    2829# include "VBoxUtils-darwin.h"
     
    3536/** QObject subclass,
    3637  * allowing to apply string-property value for a certain QObject. */
    37 class QObjectPropertySetter : public QObject
     38class SHARED_LIBRARY_STUFF QObjectPropertySetter : public QObject
    3839{
    3940    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.h

    r69568 r71630  
    2424
    2525/* GUI includes: */
     26#include "UILibraryDefs.h"
    2627#include "UIMediumDefs.h"
    2728
     
    7980  * from the accessible medium. The real KMediumState_NotCreated state is not necessary because
    8081  * this class is only used with created (existing) mediums. */
    81 class UIMedium
     82class SHARED_LIBRARY_STUFF UIMedium
    8283{
    8384public:
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumDefs.h

    r70111 r71630  
    2222#include <QString>
    2323
     24/* GUI includes: */
     25#include "UILibraryDefs.h"
     26
    2427/* COM includes: */
    2528#include "COMEnums.h"
     
    4346
    4447    /** Converts global medium type (KDeviceType) to local (UIMediumType). */
    45     UIMediumType mediumTypeToLocal(KDeviceType globalType);
     48    SHARED_LIBRARY_STUFF UIMediumType mediumTypeToLocal(KDeviceType globalType);
    4649
    4750    /** Convert local medium type (UIMediumType) to global (KDeviceType). */
    48     KDeviceType mediumTypeToGlobal(UIMediumType localType);
     51    SHARED_LIBRARY_STUFF KDeviceType mediumTypeToGlobal(UIMediumType localType);
    4952}
    5053/* Using this namespace globally: */
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.h

    r69500 r71630  
    2424
    2525/* GUI includes: */
     26#include "UILibraryDefs.h"
    2627#include "UIMedium.h"
    2728#include "QIWithRetranslateUI.h"
     
    3637/* Medium-enumerator prototype.
    3738 * Manages access to medium information using thread-pool interface. */
    38 class UIMediumEnumerator : public QIWithRetranslateUI3<QObject>
     39class SHARED_LIBRARY_STUFF UIMediumEnumerator : public QIWithRetranslateUI3<QObject>
    3940{
    4041    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UIDownloader.h

    r71434 r71630  
    2424
    2525/* GUI includes: */
     26#include "UILibraryDefs.h"
    2627#include "UINetworkCustomer.h"
    2728#include "UINetworkDefs.h"
     
    3334/** Downloader interface.
    3435  * UINetworkCustomer class extension which allows background http downloading. */
    35 class UIDownloader : public UINetworkCustomer
     36class SHARED_LIBRARY_STUFF UIDownloader : public UINetworkCustomer
    3637{
    3738    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UIDownloaderAdditions.h

    r71434 r71630  
    2626
    2727/** UIDownloader extension for background additions downloading. */
    28 class UIDownloaderAdditions : public UIDownloader
     28class SHARED_LIBRARY_STUFF UIDownloaderAdditions : public UIDownloader
    2929{
    3030    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UIDownloaderExtensionPack.h

    r71434 r71630  
    2626
    2727/** UIDownloader extension for background extension-pack downloading. */
    28 class UIDownloaderExtensionPack : public UIDownloader
     28class SHARED_LIBRARY_STUFF UIDownloaderExtensionPack : public UIDownloader
    2929{
    3030    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UIDownloaderUserManual.h

    r71434 r71630  
    2323
    2424/** UIDownloader extension for background user-manual downloading. */
    25 class UIDownloaderUserManual : public UIDownloader
     25class SHARED_LIBRARY_STUFF UIDownloaderUserManual : public UIDownloader
    2626{
    2727    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkCustomer.h

    r71466 r71630  
    2323
    2424/* GUI includes: */
     25#include "UILibraryDefs.h"
    2526#include "UINetworkDefs.h"
    2627
     
    3031
    3132/** Interface to access UINetworkManager protected functionality. */
    32 class UINetworkCustomer : public QObject
     33class SHARED_LIBRARY_STUFF UINetworkCustomer : public QObject
    3334{
    3435    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkManager.h

    r71466 r71630  
    2424
    2525/* GUI inludes: */
     26#include "UILibraryDefs.h"
    2627#include "UINetworkDefs.h"
    2728
     
    3637/** QObject class extension.
    3738  * Providing network access for VirtualBox application purposes. */
    38 class UINetworkManager : public QObject
     39class SHARED_LIBRARY_STUFF UINetworkManager : public QObject
    3940{
    4041    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkManagerDialog.h

    r71466 r71630  
    2626/* GUI includes: */
    2727#include "QIWithRetranslateUI.h"
     28#include "UILibraryDefs.h"
    2829
    2930/* Forward declarations: */
     
    3637
    3738/** QMainWindow reimplementation to reflect network-requests. */
    38 class UINetworkManagerDialog : public QIWithRetranslateUI<QMainWindow>
     39class SHARED_LIBRARY_STUFF UINetworkManagerDialog : public QIWithRetranslateUI<QMainWindow>
    3940{
    4041    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkManagerIndicator.h

    r71466 r71630  
    2626#include "QIStatusBarIndicator.h"
    2727#include "QIWithRetranslateUI.h"
     28#include "UILibraryDefs.h"
    2829
    2930/* Forward declarations: */
     
    4142
    4243/** QIStateStatusBarIndicator extension for network-manager indicator. */
    43 class UINetworkManagerIndicator : public QIWithRetranslateUI<QIStateStatusBarIndicator>
     44class SHARED_LIBRARY_STUFF UINetworkManagerIndicator : public QIWithRetranslateUI<QIStateStatusBarIndicator>
    4445{
    4546    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkReply.h

    r71466 r71630  
    2424
    2525/* GUI includes: */
     26#include "UILibraryDefs.h"
    2627#include "UINetworkDefs.h"
    2728
     
    3132/** QObject extension
    3233  * used as network-reply interface. */
    33 class UINetworkReply : public QObject
     34class SHARED_LIBRARY_STUFF UINetworkReply : public QObject
    3435{
    3536    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkRequest.h

    r71466 r71630  
    2424
    2525/* GUI inludes: */
     26#include "UILibraryDefs.h"
    2627#include "UINetworkDefs.h"
    2728#include "UINetworkReply.h"
     
    3536
    3637/** QObject extension used as network-request container. */
    37 class UINetworkRequest : public QObject
     38class SHARED_LIBRARY_STUFF UINetworkRequest : public QObject
    3839{
    3940    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkRequestWidget.h

    r71466 r71630  
    2121/* GUI inludes: */
    2222#include "QIWithRetranslateUI.h"
     23#include "UILibraryDefs.h"
    2324#include "UIPopupBox.h"
    2425
     
    3435
    3536/** UIPopupBox reimplementation to reflect network-request status. */
    36 class UINetworkRequestWidget : public QIWithRetranslateUI<UIPopupBox>
     37class SHARED_LIBRARY_STUFF UINetworkRequestWidget : public QIWithRetranslateUI<UIPopupBox>
    3738{
    3839    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UIUpdateDefs.h

    r71528 r71630  
    2323
    2424/* GUI includes: */
     25#include "UILibraryDefs.h"
    2526#include "UIVersion.h"
    2627
     
    4142
    4243/** Class used to encode/decode update data. */
    43 class VBoxUpdateData
     44class SHARED_LIBRARY_STUFF VBoxUpdateData
    4445{
    4546public:
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UIUpdateManager.h

    r71461 r71630  
    2222#include <QObject>
    2323
     24/* GUI includes: */
     25#include "UILibraryDefs.h"
     26
    2427/* Forward declarations: */
    2528class UIUpdateQueue;
     
    2730/** Singleton to perform new version checks
    2831  * and update of various VirtualBox parts. */
    29 class UIUpdateManager : public QObject
     32class SHARED_LIBRARY_STUFF UIUpdateManager : public QObject
    3033{
    3134    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/x11/VBoxX11Helper.h

    r71544 r71630  
    1919#define ___VBoxX11Helpers_h___
    2020
     21/* GUI includes: */
     22#include "UILibraryDefs.h"
     23
    2124
    2225/** X11: Known Window Manager types. */
     
    3437
    3538/** X11: Determines and returns whether the compositing manager is running. */
    36 bool X11IsCompositingManagerRunning();
     39SHARED_LIBRARY_STUFF bool X11IsCompositingManagerRunning();
    3740
    3841/** X11: Determines and returns current Window Manager type. */
    39 X11WMType X11WindowManagerType();
     42SHARED_LIBRARY_STUFF X11WMType X11WindowManagerType();
    4043
    4144/** X11: Inits the screen saver save/restore mechanism. */
    42 void X11ScreenSaverSettingsInit();
     45SHARED_LIBRARY_STUFF void X11ScreenSaverSettingsInit();
    4346/** X11: Saves screen saver settings. */
    44 void X11ScreenSaverSettingsSave();
     47SHARED_LIBRARY_STUFF void X11ScreenSaverSettingsSave();
    4548/** X11: Restores previously saved screen saver settings. */
    46 void X11ScreenSaverSettingsRestore();
     49SHARED_LIBRARY_STUFF void X11ScreenSaverSettingsRestore();
    4750
    4851
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/x11/XKeyboard.h

    r71540 r71630  
    1919#define ___XKeyboard_h___
    2020
     21/* GUI includes: */
     22#include "UILibraryDefs.h"
     23
    2124/* Forward declarations: */
    2225class QString;
     
    2427
    2528/** Initializes the X keyboard subsystem. */
    26 void initMappedX11Keyboard(Display *pDisplay, const QString &remapScancodes);
     29SHARED_LIBRARY_STUFF void initMappedX11Keyboard(Display *pDisplay, const QString &remapScancodes);
    2730
    2831/** Handles native XKey events. */
    29 unsigned handleXKeyEvent(Display *pDisplay, unsigned int iDetail);
     32SHARED_LIBRARY_STUFF unsigned handleXKeyEvent(Display *pDisplay, unsigned int iDetail);
    3033
    3134/** Handles log requests from initXKeyboard after release logging is started. */
    32 void doXKeyboardLogging(Display *pDisplay);
     35SHARED_LIBRARY_STUFF void doXKeyboardLogging(Display *pDisplay);
    3336
    3437/** Wraps for the XkbKeycodeToKeysym(3) API which falls back to the deprecated XKeycodeToKeysym(3) if it is unavailable. */
    35 unsigned long wrapXkbKeycodeToKeysym(Display *pDisplay, unsigned char cCode,
    36                                      unsigned int cGroup, unsigned int cIndex);
     38SHARED_LIBRARY_STUFF unsigned long wrapXkbKeycodeToKeysym(Display *pDisplay, unsigned char cCode,
     39                                                          unsigned int cGroup, unsigned int cIndex);
    3740
    3841#endif /* !___XKeyboard_h___ */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.h

    r71624 r71630  
    2626#include "UIActionPool.h"
    2727#include "UIExtraDataDefs.h"
     28#include "UILibraryDefs.h"
    2829
    2930/* Forward declarations: */
     
    138139/** UIActionPool extension
    139140  * representing action-pool singleton for Runtime UI. */
    140 class UIActionPoolRuntime : public UIActionPool
     141class SHARED_LIBRARY_STUFF UIActionPoolRuntime : public UIActionPool
    141142{
    142143    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UIActionPoolSelector.h

    r71621 r71630  
    2121/* GUI includes: */
    2222#include "UIActionPool.h"
     23#include "UILibraryDefs.h"
    2324
    2425
     
    113114/** UIActionPool extension
    114115  * representing action-pool singleton for Selector UI. */
    115 class UIActionPoolSelector : public UIActionPool
     116class SHARED_LIBRARY_STUFF UIActionPoolSelector : public UIActionPool
    116117{
    117118    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVirtualBoxEventHandler.h

    r71571 r71630  
    2222#include <QObject>
    2323
     24/* GUI includes: */
     25#include "UILibraryDefs.h"
     26
    2427/* COM includes: */
    2528#include "COMEnums.h"
     
    3033/** Singleton QObject extension
    3134  * providing GUI with the CVirtualBoxClient and CVirtualBox event-sources. */
    32 class UIVirtualBoxEventHandler : public QObject
     35class SHARED_LIBRARY_STUFF UIVirtualBoxEventHandler : public QObject
    3336{
    3437    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDefs.h

    r71524 r71630  
    2424#include <QString>
    2525
     26/* GUI includes: */
     27#include "UILibraryDefs.h"
     28
    2629/* COM includes: */
    2730#include "COMEnums.h"
     
    4750
    4851    /** Determines configuration access level for passed @a enmSessionState and @a enmMachineState. */
    49     ConfigurationAccessLevel configurationAccessLevel(KSessionState enmSessionState,
    50                                                       KMachineState enmMachineState);
     52    SHARED_LIBRARY_STUFF ConfigurationAccessLevel configurationAccessLevel(KSessionState enmSessionState,
     53                                                                           KMachineState enmMachineState);
    5154}
    5255
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHostComboEditor.h

    r71451 r71630  
    2727/* GUI includes: */
    2828#include "QIWithRetranslateUI.h"
     29#include "UILibraryDefs.h"
    2930
    3031/* Forward declarations: */
     
    4445{
    4546    /** Translates passed @a iKeyCode to string. */
    46     QString toString(int iKeyCode);
     47    SHARED_LIBRARY_STUFF QString toString(int iKeyCode);
    4748
    4849    /** Returns whether passed @a iKeyCode is valid. */
    49     bool isValidKey(int iKeyCode);
     50    SHARED_LIBRARY_STUFF bool isValidKey(int iKeyCode);
    5051
    5152    /** Translates passed @a iKeyCode in host platform
    5253      * encoding to the corresponding set 1 PC scan code.
    5354      * @note  Non-modifier keys will return zero. */
    54     unsigned modifierToSet1ScanCode(int iKeyCode);
     55    SHARED_LIBRARY_STUFF unsigned modifierToSet1ScanCode(int iKeyCode);
    5556
    5657#if defined(VBOX_WS_WIN)
    5758    /** Distinguishes modifier VKey by @a wParam and @a lParam. */
    58     int distinguishModifierVKey(int wParam, int lParam);
     59    SHARED_LIBRARY_STUFF int distinguishModifierVKey(int wParam, int lParam);
    5960#elif defined(VBOX_WS_X11)
    6061    /** Retranslates key names. */
    61     void retranslateKeyNames();
     62    SHARED_LIBRARY_STUFF void retranslateKeyNames();
    6263#endif
    6364}
     
    6970{
    7071    /** Returns host-combo modifier index. */
    71     int hostComboModifierIndex();
     72    SHARED_LIBRARY_STUFF int hostComboModifierIndex();
    7273    /** Returns host-combo modifier name. */
    73     QString hostComboModifierName();
     74    SHARED_LIBRARY_STUFF QString hostComboModifierName();
    7475    /** Returns host-combo cached key. */
    75     QString hostComboCacheKey();
     76    SHARED_LIBRARY_STUFF QString hostComboCacheKey();
    7677
    7778    /** Translates passed @strKeyCombo to readable string. */
    78     QString toReadableString(const QString &strKeyCombo);
     79    SHARED_LIBRARY_STUFF QString toReadableString(const QString &strKeyCombo);
    7980    /** Translates passed @strKeyCombo to key codes list. */
    80     QList<int> toKeyCodeList(const QString &strKeyCombo);
     81    SHARED_LIBRARY_STUFF QList<int> toKeyCodeList(const QString &strKeyCombo);
    8182
    8283    /** Returns a sequence of the set 1 PC scan codes for all
    8384      * modifiers contained in the (host platform format) sequence passed. */
    84     QList<unsigned> modifiersToScanCodes(const QString &strKeyCombo);
     85    SHARED_LIBRARY_STUFF QList<unsigned> modifiersToScanCodes(const QString &strKeyCombo);
    8586
    8687    /** Returns whether passed @a strKeyCombo is valid. */
    87     bool isValidKeyCombo(const QString &strKeyCombo);
     88    SHARED_LIBRARY_STUFF bool isValidKeyCombo(const QString &strKeyCombo);
    8889}
    8990
    9091
    9192/** Host-combo QString wrapper. */
    92 class UIHostComboWrapper
     93class SHARED_LIBRARY_STUFF UIHostComboWrapper
    9394{
    9495public:
     
    111112
    112113/** Host-combo editor widget. */
    113 class UIHostComboEditor : public QIWithRetranslateUI<QWidget>
     114class SHARED_LIBRARY_STUFF UIHostComboEditor : public QIWithRetranslateUI<QWidget>
    114115{
    115116    Q_OBJECT;
     
    154155
    155156/** Host-combo editor widget private stuff. */
    156 class UIHostComboEditorPrivate : public QLineEdit
     157class SHARED_LIBRARY_STUFF UIHostComboEditorPrivate : public QLineEdit
    157158{
    158159    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupBox.h

    r71484 r71630  
    2323#include <QWidget>
    2424
     25/* GUI includes: */
     26#include "UILibraryDefs.h"
     27
    2528/* Forward declarations: */
    2629class QEvent;
     
    3841/** QWidget extension,
    3942  * wrapping content-widget with nice collapsable frame. */
    40 class UIPopupBox : public QWidget
     43class SHARED_LIBRARY_STUFF UIPopupBox : public QWidget
    4144{
    4245    Q_OBJECT;
     
    174177/** QObject extension,
    175178  * provides a container to organize groups of popup-boxes. */
    176 class UIPopupBoxGroup : public QObject
     179class SHARED_LIBRARY_STUFF UIPopupBoxGroup : public QObject
    177180{
    178181    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPane.h

    r71490 r71630  
    2525/* GUI includes: */
    2626#include "QIWithRetranslateUI.h"
     27#include "UILibraryDefs.h"
    2728
    2829/* Forward declaration: */
     
    4243
    4344/** QWidget extension used as popup-center pane prototype. */
    44 class UIPopupPane : public QIWithRetranslateUI<QWidget>
     45class SHARED_LIBRARY_STUFF UIPopupPane : public QIWithRetranslateUI<QWidget>
    4546{
    4647    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPaneButtonPane.h

    r71513 r71630  
    2323#include <QMap>
    2424
     25/* GUI includes: */
     26#include "UILibraryDefs.h"
     27
    2528/* Forward declarations: */
    2629class QHBoxLayout;
     
    3134
    3235/** QWidget extension providing GUI with popup-pane button-pane prototype class. */
    33 class UIPopupPaneButtonPane : public QWidget
     36class SHARED_LIBRARY_STUFF UIPopupPaneButtonPane : public QWidget
    3437{
    3538    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPaneDetails.h

    r71515 r71630  
    2222#include <QWidget>
    2323
     24/* GUI includes: */
     25#include "UILibraryDefs.h"
     26
    2427/* Forward declarations: */
    2528class QTextEdit;
     
    2730
    2831/** QWidget extension providing GUI with popup-pane details-pane prototype class. */
    29 class UIPopupPaneDetails : public QWidget
     32class SHARED_LIBRARY_STUFF UIPopupPaneDetails : public QWidget
    3033{
    3134    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPaneMessage.h

    r71515 r71630  
    2222#include <QWidget>
    2323
     24/* GUI includes: */
     25#include "UILibraryDefs.h"
     26
    2427/* Forward declarations: */
    2528class QLabel;
     
    2730
    2831/** QWidget extension providing GUI with popup-pane message-pane prototype class. */
    29 class UIPopupPaneMessage : public QWidget
     32class SHARED_LIBRARY_STUFF UIPopupPaneMessage : public QWidget
    3033{
    3134    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupStack.h

    r71521 r71630  
    2424
    2525/* GUI includes: */
     26#include "UILibraryDefs.h"
    2627#include "UIPopupCenter.h"
    2728
     
    3738
    3839/** QWidget extension providing GUI with popup-stack prototype class. */
    39 class UIPopupStack : public QWidget
     40class SHARED_LIBRARY_STUFF UIPopupStack : public QWidget
    4041{
    4142    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupStackViewport.h

    r71521 r71630  
    2323#include <QMap>
    2424
     25/* GUI includes: */
     26#include "UILibraryDefs.h"
     27
    2528/* Forward declaration: */
    2629class QSize;
     
    2932
    3033/** QWidget extension providing GUI with popup-stack viewport prototype class. */
    31 class UIPopupStackViewport : public QWidget
     34class SHARED_LIBRARY_STUFF UIPopupStackViewport : public QWidget
    3235{
    3336    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIProgressDialog.h

    r71578 r71630  
    2222#include "QIDialog.h"
    2323#include "QIWithRetranslateUI.h"
     24#include "UILibraryDefs.h"
    2425
    2526/* Forward declarations: */
     
    3839  * @note The CProgress instance is passed as a non-const reference to the constructor (to memorize COM errors if they happen),
    3940  *       and therefore must not be destroyed before the created UIProgressDialog instance is destroyed. */
    40 class UIProgressDialog : public QIWithRetranslateUI2<QIDialog>
     41class SHARED_LIBRARY_STUFF UIProgressDialog : public QIWithRetranslateUI2<QIDialog>
    4142{
    4243    Q_OBJECT;
     
    170171  *       before the created UIProgress instance is destroyed.
    171172  * @todo To be moved to separate files. */
    172 class UIProgress : public QObject
     173class SHARED_LIBRARY_STUFF UIProgress : public QObject
    173174{
    174175    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UISpecialControls.h

    r71577 r71630  
    2727/* GUI includes: */
    2828#include "QIWithRetranslateUI.h"
     29#include "UILibraryDefs.h"
    2930#ifdef VBOX_DARWIN_USE_NATIVE_CONTROLS
    3031# include "UICocoaSpecialControls.h"
     
    4243
    4344/** QAbstractButton subclass, used as mini cancel button. */
    44 class UIMiniCancelButton : public QAbstractButton
     45class SHARED_LIBRARY_STUFF UIMiniCancelButton : public QAbstractButton
    4546{
    4647    Q_OBJECT;
     
    7374
    7475/** QAbstractButton subclass, used as mini cancel button. */
    75 class UIHelpButton : public QPushButton
     76class SHARED_LIBRARY_STUFF UIHelpButton : public QPushButton
    7677{
    7778    Q_OBJECT;
     
    102103
    103104/** QAbstractButton subclass, used as mini cancel button. */
    104 class UIMiniCancelButton : public QIWithRetranslateUI<QIToolButton>
     105class SHARED_LIBRARY_STUFF UIMiniCancelButton : public QIWithRetranslateUI<QIToolButton>
    105106{
    106107    Q_OBJECT;
     
    119120
    120121/** QAbstractButton subclass, used as mini cancel button. */
    121 class UIHelpButton : public QIWithRetranslateUI<QPushButton>
     122class SHARED_LIBRARY_STUFF UIHelpButton : public QIWithRetranslateUI<QPushButton>
    122123{
    123124    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIToolBar.h

    r71527 r71630  
    2222#include <QToolBar>
    2323
     24/* GUI includes: */
     25#include "UILibraryDefs.h"
     26
    2427/* Forward declarations: */
    2528class QMainWindow;
     
    2730/** QToolBar extension
    2831  * with few settings presets. */
    29 class UIToolBar : public QToolBar
     32class SHARED_LIBRARY_STUFF UIToolBar : public QToolBar
    3033{
    3134    Q_OBJECT;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette