yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
project_workflow_output_panel.h
Go to the documentation of this file.
1
#ifndef YAZE_APP_EDITOR_HACK_WORKFLOW_PROJECT_WORKFLOW_OUTPUT_PANEL_H_
2
#define YAZE_APP_EDITOR_HACK_WORKFLOW_PROJECT_WORKFLOW_OUTPUT_PANEL_H_
3
4
#include <string>
5
6
#include "
app/editor/core/content_registry.h
"
7
#include "
app/editor/system/editor_panel.h
"
8
#include "
app/gui/core/icons.h
"
9
10
namespace
yaze::editor::workflow
{
11
12
class
ProjectWorkflowOutputPanel
:
public
WindowContent
{
13
public
:
14
std::string
GetId
()
const override
{
return
"workflow.output"
; }
15
std::string
GetDisplayName
()
const override
{
return
"Workflow Output"
; }
16
std::string
GetIcon
()
const override
{
return
ICON_MD_TERMINAL
; }
17
std::string
GetEditorCategory
()
const override
{
return
"Agent"
; }
18
WindowScope
GetScope
()
const override
{
return
WindowScope::kGlobal
; }
19
std::string
GetWorkflowGroup
()
const override
{
return
"Build & Run"
; }
20
std::string
GetWorkflowDescription
()
const override
{
21
return
"Review build/run status and the latest workflow output log"
;
22
}
23
int
GetWorkflowPriority
()
const override
{
return
15; }
24
WindowLifecycle
GetWindowLifecycle
()
const override
{
25
return
WindowLifecycle::CrossEditor
;
26
}
27
28
void
Draw
(
bool
* p_open)
override
;
29
30
private
:
31
void
DrawStatusCard
(
const
char
* fallback_icon,
32
const
ProjectWorkflowStatus
& status);
33
void
DrawHistoryEntry
(
const
ProjectWorkflowHistoryEntry
& entry,
int
index);
34
};
35
36
}
// namespace yaze::editor::workflow
37
38
#endif
// YAZE_APP_EDITOR_HACK_WORKFLOW_PROJECT_WORKFLOW_OUTPUT_PANEL_H_
yaze::editor::WindowContent
Base interface for all logical window content components.
Definition
editor_panel.h:89
yaze::editor::workflow::ProjectWorkflowOutputPanel
Definition
project_workflow_output_panel.h:12
yaze::editor::workflow::ProjectWorkflowOutputPanel::GetWindowLifecycle
WindowLifecycle GetWindowLifecycle() const override
Get the lifecycle category for this window.
Definition
project_workflow_output_panel.h:24
yaze::editor::workflow::ProjectWorkflowOutputPanel::GetWorkflowPriority
int GetWorkflowPriority() const override
Optional workflow ordering priority (lower sorts first).
Definition
project_workflow_output_panel.h:23
yaze::editor::workflow::ProjectWorkflowOutputPanel::GetDisplayName
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
Definition
project_workflow_output_panel.h:15
yaze::editor::workflow::ProjectWorkflowOutputPanel::GetEditorCategory
std::string GetEditorCategory() const override
Editor category this panel belongs to.
Definition
project_workflow_output_panel.h:17
yaze::editor::workflow::ProjectWorkflowOutputPanel::GetScope
WindowScope GetScope() const override
Get the registration scope for this window.
Definition
project_workflow_output_panel.h:18
yaze::editor::workflow::ProjectWorkflowOutputPanel::GetIcon
std::string GetIcon() const override
Material Design icon for this panel.
Definition
project_workflow_output_panel.h:16
yaze::editor::workflow::ProjectWorkflowOutputPanel::DrawStatusCard
void DrawStatusCard(const char *fallback_icon, const ProjectWorkflowStatus &status)
Definition
project_workflow_output_panel.cc:73
yaze::editor::workflow::ProjectWorkflowOutputPanel::GetId
std::string GetId() const override
Unique identifier for this panel.
Definition
project_workflow_output_panel.h:14
yaze::editor::workflow::ProjectWorkflowOutputPanel::GetWorkflowDescription
std::string GetWorkflowDescription() const override
Optional workflow description for menus/command palette.
Definition
project_workflow_output_panel.h:20
yaze::editor::workflow::ProjectWorkflowOutputPanel::GetWorkflowGroup
std::string GetWorkflowGroup() const override
Optional workflow group for hack-centric actions.
Definition
project_workflow_output_panel.h:19
yaze::editor::workflow::ProjectWorkflowOutputPanel::Draw
void Draw(bool *p_open) override
Draw the panel content.
Definition
project_workflow_output_panel.cc:10
yaze::editor::workflow::ProjectWorkflowOutputPanel::DrawHistoryEntry
void DrawHistoryEntry(const ProjectWorkflowHistoryEntry &entry, int index)
Definition
project_workflow_output_panel.cc:87
content_registry.h
editor_panel.h
icons.h
ICON_MD_TERMINAL
#define ICON_MD_TERMINAL
Definition
icons.h:1951
yaze::editor::workflow
Definition
editor_manager.h:68
yaze::editor::WindowLifecycle
WindowLifecycle
Defines lifecycle behavior for editor windows.
Definition
editor_panel.h:24
yaze::editor::WindowLifecycle::CrossEditor
@ CrossEditor
User can pin to persist across editors.
yaze::editor::WindowScope
WindowScope
Defines whether a window is session-scoped or global.
Definition
editor_panel.h:52
yaze::editor::WindowScope::kGlobal
@ kGlobal
yaze::editor::ProjectWorkflowHistoryEntry
Definition
project_workflow_status.h:27
yaze::editor::ProjectWorkflowStatus
Definition
project_workflow_status.h:17
src
app
editor
hack
workflow
project_workflow_output_panel.h
Generated by
1.10.0