yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
overworld_item_list_view.h
Go to the documentation of this file.
1
#ifndef YAZE_APP_EDITOR_OVERWORLD_UI_ITEMS_OVERWORLD_ITEM_LIST_VIEW_H
2
#define YAZE_APP_EDITOR_OVERWORLD_UI_ITEMS_OVERWORLD_ITEM_LIST_VIEW_H
3
4
#include "
app/editor/system/workspace/editor_panel.h
"
5
#include "
app/gui/core/icons.h
"
6
7
namespace
yaze::editor
{
8
13
class
OverworldItemListView
:
public
WindowContent
{
14
public
:
15
OverworldItemListView
() =
default
;
16
17
std::string
GetId
()
const override
{
return
"overworld.item_list"
; }
18
std::string
GetDisplayName
()
const override
{
return
"Item List"
; }
19
std::string
GetIcon
()
const override
{
return
ICON_MD_LIST
; }
20
std::string
GetEditorCategory
()
const override
{
return
"Overworld"
; }
21
std::string
GetShortcutHint
()
const override
{
return
"Ctrl+Shift+I"
; }
22
int
GetPriority
()
const override
{
return
26; }
23
float
GetPreferredWidth
()
const override
{
return
420.0f; }
24
25
void
Draw
(
bool
* p_open)
override
;
26
};
27
28
}
// namespace yaze::editor
29
30
#endif
// YAZE_APP_EDITOR_OVERWORLD_UI_ITEMS_OVERWORLD_ITEM_LIST_VIEW_H
yaze::editor::OverworldItemListView
Filterable list view for overworld items with quick selection/actions.
Definition
overworld_item_list_view.h:13
yaze::editor::OverworldItemListView::GetShortcutHint
std::string GetShortcutHint() const override
Get keyboard shortcut hint for display.
Definition
overworld_item_list_view.h:21
yaze::editor::OverworldItemListView::OverworldItemListView
OverworldItemListView()=default
yaze::editor::OverworldItemListView::Draw
void Draw(bool *p_open) override
Draw the panel content.
Definition
overworld_item_list_view.cc:59
yaze::editor::OverworldItemListView::GetPreferredWidth
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
Definition
overworld_item_list_view.h:23
yaze::editor::OverworldItemListView::GetPriority
int GetPriority() const override
Get display priority for menu ordering.
Definition
overworld_item_list_view.h:22
yaze::editor::OverworldItemListView::GetIcon
std::string GetIcon() const override
Material Design icon for this panel.
Definition
overworld_item_list_view.h:19
yaze::editor::OverworldItemListView::GetEditorCategory
std::string GetEditorCategory() const override
Editor category this panel belongs to.
Definition
overworld_item_list_view.h:20
yaze::editor::OverworldItemListView::GetId
std::string GetId() const override
Unique identifier for this panel.
Definition
overworld_item_list_view.h:17
yaze::editor::OverworldItemListView::GetDisplayName
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
Definition
overworld_item_list_view.h:18
yaze::editor::WindowContent
Base interface for all logical window content components.
Definition
editor_panel.h:89
icons.h
ICON_MD_LIST
#define ICON_MD_LIST
Definition
icons.h:1094
yaze::editor
Editors are the view controllers for the application.
Definition
patch_export_usage.cc:9
editor_panel.h
src
app
editor
overworld
ui
items
overworld_item_list_view.h
Generated by
1.10.0