![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <PanelManager.h>
Classes | |
| struct | Panel |
Public Member Functions | |
| PanelManager () | |
| virtual | ~PanelManager () |
| void | Initialize () |
| void | Shutdown () |
| void | CreateLogWindow () |
| void | CreateObjectInspectorWindow () |
| void | CreateTreeViewWindow () |
| void | CreateInputsInspectorWindow () |
| void | CreateMainMenuWindow () |
| void | ShowPanel (const std::string &id) |
| void | HidePanel (const std::string &id) |
| bool | IsPanelVisible (const std::string &id) const |
| void | AppendLog (const std::string &text) |
| void | AttachToSDLWindow (SDL_Window *sdlWindow) |
| void | HandleEvent (const SDL_Event *ev) |
| virtual void | OnEvent (const Message &msg) |
Static Public Member Functions | |
| static PanelManager & | GetInstance () |
| static PanelManager & | Get () |
Static Public Attributes | |
| static int | LogPanelWidth = 400 |
| static int | LogPanelHeight = 200 |
| static int | LogPanelPosX = 50 |
| static int | LogPanelPosY = 50 |
| static int | InspectorPanelWidth = 300 |
| static int | InspectorPanelHeight = 400 |
| static int | InspectorPanelPosX = 100 |
| static int | InspectorPanelPosY = 100 |
| static int | TreeViewPanelWidth = 300 |
| static int | TreeViewPanelHeight = 400 |
| static int | TreeViewPanelPosX = 150 |
| static int | TreeViewPanelPosY = 150 |
Private Member Functions | |
| void | CreatePanel (const std::string &id, const std::string &title) |
| void | UpdateInputsInspectorList () |
Private Attributes | |
| std::string | name |
| std::unordered_map< std::string, Panel > | m_panels_ |
| std::vector< std::string > | m_pendingLogs_ |
| std::mutex | m_mutex_ |
Definition at line 34 of file PanelManager.h.
| PanelManager::PanelManager | ( | ) |
Definition at line 48 of file PanelManager.cpp.
References name.
|
virtual |
Definition at line 53 of file PanelManager.cpp.
References Shutdown(), and SYSTEM_LOG.
Here is the call graph for this function:Definition at line 271 of file PanelManager.cpp.
References GetComponentTypeID_Static(), and m_panels_.
Referenced by SystemLogSink::AppendToLogWindow().
Here is the call graph for this function:
Here is the caller graph for this function:| void PanelManager::AttachToSDLWindow | ( | SDL_Window * | sdlWindow | ) |
| void PanelManager::CreateInputsInspectorWindow | ( | ) |
Definition at line 460 of file PanelManager.cpp.
References CreatePanel(), GetComponentTypeID_Static(), InspectorPanelHeight, InspectorPanelPosX, InspectorPanelPosY, InspectorPanelWidth, m_panels_, and UpdateInputsInspectorList().
Here is the call graph for this function:| void PanelManager::CreateLogWindow | ( | ) |
Definition at line 174 of file PanelManager.cpp.
References CreatePanel(), GetComponentTypeID_Static(), LogPanelHeight, LogPanelPosX, LogPanelPosY, LogPanelWidth, and m_panels_.
Here is the call graph for this function:| void PanelManager::CreateMainMenuWindow | ( | ) |
Definition at line 203 of file PanelManager.cpp.
References CreatePanel(), GetComponentTypeID_Static(), IsPanelVisible(), and m_panels_.
Here is the call graph for this function:| void PanelManager::CreateObjectInspectorWindow | ( | ) |
Definition at line 193 of file PanelManager.cpp.
References CreatePanel().
Here is the call graph for this function:Definition at line 116 of file PanelManager.cpp.
References GetComponentTypeID_Static(), PanelManager::Panel::id, and m_panels_.
Referenced by CreateInputsInspectorWindow(), CreateLogWindow(), CreateMainMenuWindow(), CreateObjectInspectorWindow(), and CreateTreeViewWindow().
Here is the call graph for this function:
Here is the caller graph for this function:| void PanelManager::CreateTreeViewWindow | ( | ) |
Definition at line 198 of file PanelManager.cpp.
References CreatePanel().
Here is the call graph for this function:
|
inlinestatic |
Definition at line 41 of file PanelManager.h.
References GetInstance().
Referenced by SDL_AppInit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 59 of file PanelManager.cpp.
References GetComponentTypeID_Static().
Referenced by SystemLogSink::AppendToLogWindow(), and Get().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 286 of file PanelManager.cpp.
References GetComponentTypeID_Static(), HidePanel(), IsPanelVisible(), m_panels_, ShowPanel(), SYSTEM_LOG, and UpdateInputsInspectorList().
Here is the call graph for this function:Definition at line 253 of file PanelManager.cpp.
References GetComponentTypeID_Static(), and m_panels_.
Referenced by HandleEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| void PanelManager::Initialize | ( | ) |
Definition at line 65 of file PanelManager.cpp.
References EventManager::Get(), GetComponentTypeID_Static(), Olympe_EventType_Joystick_Connected, Olympe_EventType_Joystick_Disconnected, Olympe_EventType_Keyboard_Connected, Olympe_EventType_Keyboard_Disconnected, Olympe_EventType_Mouse_Connected, Olympe_EventType_Mouse_Disconnected, EventManager::Register(), and SYSTEM_LOG.
Referenced by SDL_AppInit().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 264 of file PanelManager.cpp.
References GetComponentTypeID_Static(), and m_panels_.
Referenced by CreateMainMenuWindow(), HandleEvent(), and OnEvent().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 350 of file PanelManager.cpp.
References GetComponentTypeID_Static(), IsPanelVisible(), m_panels_, Olympe_EventType_Joystick_Connected, Olympe_EventType_Joystick_Disconnected, Olympe_EventType_Keyboard_Connected, Olympe_EventType_Keyboard_Disconnected, Olympe_EventType_Mouse_Connected, Olympe_EventType_Mouse_Disconnected, and UpdateInputsInspectorList().
Here is the call graph for this function:Definition at line 242 of file PanelManager.cpp.
References GetComponentTypeID_Static(), and m_panels_.
Referenced by HandleEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| void PanelManager::Shutdown | ( | ) |
Definition at line 91 of file PanelManager.cpp.
References GetComponentTypeID_Static(), and m_panels_.
Referenced by ~PanelManager().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 483 of file PanelManager.cpp.
References InputsManager::Get(), GetComponentTypeID_Static(), InputsManager::GetDevicesStatusUpdate(), and m_panels_.
Referenced by CreateInputsInspectorWindow(), HandleEvent(), and OnEvent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 77 of file PanelManager.h.
Referenced by CreateInputsInspectorWindow(), and LoadOlympeConfig().
|
static |
Definition at line 78 of file PanelManager.h.
Referenced by CreateInputsInspectorWindow(), and LoadOlympeConfig().
|
static |
Definition at line 79 of file PanelManager.h.
Referenced by CreateInputsInspectorWindow(), and LoadOlympeConfig().
|
static |
Definition at line 76 of file PanelManager.h.
Referenced by CreateInputsInspectorWindow(), and LoadOlympeConfig().
|
static |
Definition at line 72 of file PanelManager.h.
Referenced by CreateLogWindow(), and LoadOlympeConfig().
|
static |
Definition at line 73 of file PanelManager.h.
Referenced by CreateLogWindow(), and LoadOlympeConfig().
|
static |
Definition at line 74 of file PanelManager.h.
Referenced by CreateLogWindow(), and LoadOlympeConfig().
|
static |
Definition at line 71 of file PanelManager.h.
Referenced by CreateLogWindow(), and LoadOlympeConfig().
|
mutableprivate |
Definition at line 108 of file PanelManager.h.
|
private |
Definition at line 106 of file PanelManager.h.
Referenced by AppendLog(), CreateInputsInspectorWindow(), CreateLogWindow(), CreateMainMenuWindow(), CreatePanel(), HandleEvent(), HidePanel(), IsPanelVisible(), OnEvent(), ShowPanel(), Shutdown(), and UpdateInputsInspectorList().
|
private |
Definition at line 107 of file PanelManager.h.
|
private |
Definition at line 87 of file PanelManager.h.
Referenced by PanelManager().
|
static |
Definition at line 82 of file PanelManager.h.
Referenced by LoadOlympeConfig().
|
static |
Definition at line 83 of file PanelManager.h.
Referenced by LoadOlympeConfig().
|
static |
Definition at line 84 of file PanelManager.h.
Referenced by LoadOlympeConfig().
|
static |
Definition at line 81 of file PanelManager.h.
Referenced by LoadOlympeConfig().