1#ifndef YAZE_APP_EDITOR_HACK_WORKFLOW_WORKFLOW_ACTIVITY_WIDGETS_H_
2#define YAZE_APP_EDITOR_HACK_WORKFLOW_WORKFLOW_ACTIVITY_WIDGETS_H_
10#include "imgui/imgui.h"
24 ImVec2
min = ImVec2(0.0f, 0.0f);
25 ImVec2
max = ImVec2(0.0f, 0.0f);
28 return ImVec2((
min.x +
max.x) * 0.5f, (
min.y +
max.y) * 0.5f);
44 std::chrono::system_clock::time_point timestamp);
47 const char* fallback_icon);
49 const std::string& output_log);
56 const std::vector<ProjectWorkflowHistoryEntry>& history,
WorkflowButtonRect DrawCopyCurrentLogButton(const std::string &build_log)
std::string FormatHistoryTime(std::chrono::system_clock::time_point timestamp)
const char * WorkflowIcon(const ProjectWorkflowStatus &status, const char *fallback_icon)
std::string BuildCopyPayload(const ProjectWorkflowStatus &status, const std::string &output_log)
WorkflowActionRowResult DrawHistoryActionRow(const ProjectWorkflowHistoryEntry &entry, const WorkflowActionCallbacks &callbacks, const WorkflowActionRowOptions &options)
std::vector< ProjectWorkflowHistoryEntry > SelectWorkflowPreviewEntries(const std::vector< ProjectWorkflowHistoryEntry > &history, size_t max_entries)
ImVec4 WorkflowColor(ProjectWorkflowState state)
std::function< void()> run_project
std::function< void()> show_output
std::function< void()> cancel_build
std::function< void()> start_build
WorkflowButtonRect copy_log
WorkflowButtonRect open_output
WorkflowButtonRect primary_action