yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
about_panel.h
Go to the documentation of this file.
1
#ifndef YAZE_APP_EDITOR_SHELL_WINDOWS_ABOUT_PANEL_H_
2
#define YAZE_APP_EDITOR_SHELL_WINDOWS_ABOUT_PANEL_H_
3
4
#include "
app/editor/system/workspace/editor_panel.h
"
5
#include "
app/gui/core/icons.h
"
6
#include "imgui/imgui.h"
7
#include "
util/i18n/tr.h
"
8
#include "yaze_config.h"
9
10
namespace
yaze::editor
{
11
12
class
AboutPanel
:
public
WindowContent
{
13
public
:
14
std::string
GetId
()
const override
{
return
"yaze.about"
; }
15
std::string
GetDisplayName
()
const override
{
return
"About Yaze"
; }
16
std::string
GetIcon
()
const override
{
return
ICON_MD_INFO
; }
17
std::string
GetEditorCategory
()
const override
{
return
"Settings"
; }
18
WindowPresentationPolicy
GetPresentationPolicy
()
const override
{
19
return
WindowPresentationPolicy::OptionalPopOut
();
20
}
21
WindowScope
GetScope
()
const override
{
return
WindowScope::kGlobal
; }
22
23
void
Draw
(
bool
* p_open)
override
{
24
ImGui::Text(tr(
"Yaze - Yet Another Zelda Editor"
));
25
ImGui::Separator();
26
ImGui::Text(tr(
"Version: %d.%d.%d"
), YAZE_VERSION_MAJOR, YAZE_VERSION_MINOR,
27
YAZE_VERSION_PATCH);
28
ImGui::Text(tr(
"Architecture: Unified Panel System"
));
29
30
if
(ImGui::Button(tr(
"Close"
))) {
31
if
(p_open)
32
*p_open =
false
;
33
}
34
}
35
};
36
37
}
// namespace yaze::editor
38
39
#endif
// YAZE_APP_EDITOR_SHELL_WINDOWS_ABOUT_PANEL_H_
yaze::editor::AboutPanel
Definition
about_panel.h:12
yaze::editor::AboutPanel::GetId
std::string GetId() const override
Unique identifier for this panel.
Definition
about_panel.h:14
yaze::editor::AboutPanel::GetIcon
std::string GetIcon() const override
Material Design icon for this panel.
Definition
about_panel.h:16
yaze::editor::AboutPanel::GetEditorCategory
std::string GetEditorCategory() const override
Editor category this panel belongs to.
Definition
about_panel.h:17
yaze::editor::AboutPanel::GetPresentationPolicy
WindowPresentationPolicy GetPresentationPolicy() const override
How this content is hosted and advertised by workspace chrome.
Definition
about_panel.h:18
yaze::editor::AboutPanel::GetDisplayName
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
Definition
about_panel.h:15
yaze::editor::AboutPanel::GetScope
WindowScope GetScope() const override
Get the registration scope for this window.
Definition
about_panel.h:21
yaze::editor::AboutPanel::Draw
void Draw(bool *p_open) override
Draw the panel content.
Definition
about_panel.h:23
yaze::editor::WindowContent
Base interface for all logical window content components.
Definition
editor_panel.h:199
icons.h
ICON_MD_INFO
#define ICON_MD_INFO
Definition
icons.h:993
yaze::editor
Editors are the view controllers for the application.
Definition
patch_export_usage.cc:9
yaze::editor::WindowScope
WindowScope
Defines whether a window is session-scoped or global.
Definition
editor_panel.h:54
yaze::editor::WindowScope::kGlobal
@ kGlobal
yaze::editor::WindowPresentationPolicy
Definition
editor_panel.h:102
yaze::editor::WindowPresentationPolicy::OptionalPopOut
static WindowPresentationPolicy OptionalPopOut()
Definition
editor_panel.h:149
tr.h
editor_panel.h
src
app
editor
shell
windows
about_panel.h
Generated by
1.10.0