#ifndef __IUIMANAGER_H__ #define __IUIMANAGER_H__ #include "WindowsSupport/WindowsSupport.pkg" #include "MarshalSupport/MarshalSupport.pkg" #include "HierarchicalStorageInterface/HierarchicalStorageInterface.pkg" #include "IViewPresenter.h" using namespace MarshalSupport::Operators; class IUIManager { public: // Enumerations enum class WindowType; enum class InitialDockingLocation; public: // Constructors inline virtual ~IUIManager() = 0; // Interface version functions static inline unsigned int ThisIUIManagerVersion() { return 1; } virtual unsigned int GetIUIManagerVersion() const = 0; // Main window functions virtual HWND GetMainWindow() const = 0; // Native window creation functions virtual HWND CreateDialogWindow(IView& view, IViewPresenter& viewPresenter, HINSTANCE assemblyHandle, DLGPROC windowProcedure, LPCWSTR templateName) = 0; virtual HWND CreateNativeWindow(IView& view, IViewPresenter& viewPresenter, HINSTANCE assemblyHandle, WNDPROC windowProcedure, DWORD windowStyle, DWORD extendedWindowStyle) = 0; // Window management functions virtual bool ShowWindowFirstTime(IView& view, IViewPresenter& viewPresenter, HWND windowHandle, const Marshal::In& windowTitle, IHierarchicalStorageNode* windowState = 0) = 0; virtual void CloseWindow(IView& view, IViewPresenter& viewPresenter, HWND windowHandle) = 0; virtual void ShowWindow(IView& view, IViewPresenter& viewPresenter, HWND windowHandle) = 0; virtual void HideWindow(IView& view, IViewPresenter& viewPresenter, HWND windowHandle) = 0; virtual void ActivateWindow(IView& view, IViewPresenter& viewPresenter, HWND windowHandle) = 0; virtual void NotifyWindowDestroyed(IView& view, IViewPresenter& viewPresenter, HWND windowHandle) = 0; // Window state functions virtual bool LoadWindowState(IView& view, IViewPresenter& viewPresenter, HWND windowHandle, IHierarchicalStorageNode& windowState) = 0; virtual bool SaveWindowState(const IView& view, const IViewPresenter& viewPresenter, HWND windowHandle, IHierarchicalStorageNode& windowState) const = 0; // Window size functions virtual void ResizeWindowToTargetClientSize(IView& view, IViewPresenter& viewPresenter, HWND windowHandle, unsigned int windowClientWidth, unsigned int windowClientHeight) = 0; // Window title functions virtual void UpdateWindowTitle(IView& view, IViewPresenter& viewPresenter, HWND windowHandle, const Marshal::In& windowTitle) = 0; // Dialog management functions virtual void NotifyDialogActivated(HWND dialogWindow) = 0; virtual void NotifyDialogDeactivated(HWND dialogWindow) = 0; }; IUIManager::~IUIManager() { } #include "IUIManager.inl" #endif