/
UIManager.h
69 lines (48 loc) · 1.39 KB
/
UIManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#pragma once
#include "imodule.h"
#include "iradiant.h"
#include "iuimanager.h"
#include "idialogmanager.h"
#include "menu/MenuManager.h"
#include "ToolbarManager.h"
#include "StatusBarManager.h"
#include "DialogManager.h"
#include "colourscheme/ColourSchemeManager.h"
namespace ui
{
class LocalBitmapArtProvider;
class UIManager :
public IUIManager,
public std::enable_shared_from_this<UIManager>
{
private:
// Local helper class taking care of the menu
MenuManager _menuManager;
ToolbarManager _toolbarManager;
StatusBarManager _statusBarManager;
DialogManagerPtr _dialogManager;
LocalBitmapArtProvider* _bitmapArtProvider;
public:
UIManager() :
_bitmapArtProvider(NULL)
{}
/** greebo: Retrieves the helper class to manipulate the menu.
*/
IMenuManager& getMenuManager();
IToolbarManager& getToolbarManager();
IColourSchemeManager& getColourSchemeManager();
IGroupDialog& getGroupDialog();
IStatusBarManager& getStatusBarManager();
IDialogManager& getDialogManager();
IFilterMenuPtr createFilterMenu();
const std::string& ArtIdPrefix() const;
// Called on radiant shutdown
void clear();
// RegisterableModule implementation
const std::string& getName() const;
const StringSet& getDependencies() const;
void initialiseModule(const ApplicationContext& ctx);
void shutdownModule();
}; // class UIManager
typedef std::shared_ptr<ui::UIManager> UIManagerPtr;
} // namespace ui