-
Notifications
You must be signed in to change notification settings - Fork 47
/
UIManager.h
47 lines (33 loc) · 964 Bytes
/
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
#pragma once
#include "imodule.h"
#include "iradiant.h"
#include "iuimanager.h"
#include "idialogmanager.h"
#include "DialogManager.h"
#include <memory>
namespace ui
{
class LocalBitmapArtProvider;
class UIManager :
public IUIManager,
public std::enable_shared_from_this<UIManager>
{
// Sub-manager classes, constructed in initialiseModule to avoid being
// called before the main window is ready.
DialogManagerPtr _dialogManager;
LocalBitmapArtProvider* _bitmapArtProvider;
public:
UIManager() :
_bitmapArtProvider(nullptr)
{}
IGroupDialog& getGroupDialog() override;
IDialogManager& getDialogManager() override;
const std::string& ArtIdPrefix() const override;
// Called on radiant shutdown
void clear();
// RegisterableModule implementation
const std::string& getName() const override;
const StringSet& getDependencies() const override;
void initialiseModule(const IApplicationContext& ctx) override;
};
} // namespace ui