yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_workbench_toolbar.cc File Reference
#include "app/editor/dungeon/widgets/dungeon_workbench_toolbar.h"
#include "util/i18n/tr.h"
#include <algorithm>
#include <cctype>
#include <cstdio>
#include <cstring>
#include <functional>
#include <string>
#include <vector>
#include "app/editor/dungeon/dungeon_canvas_viewer.h"
#include "app/editor/dungeon/dungeon_project_labels.h"
#include "app/editor/dungeon/dungeon_room_selector.h"
#include "app/editor/dungeon/ui/workbench/dungeon_workbench_chrome.h"
#include "app/editor/dungeon/widgets/dungeon_room_nav_widget.h"
#include "app/gui/core/icons.h"
#include "app/gui/core/input.h"
#include "app/gui/core/layout_helpers.h"
#include "app/gui/core/style_guard.h"
#include "app/gui/core/ui_config.h"
#include "app/gui/core/ui_helpers.h"
#include "imgui/imgui.h"
#include "imgui/imgui_internal.h"
#include "zelda3/resource_labels.h"

Go to the source code of this file.

Classes

struct  yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::ToolbarLayout
 
struct  yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::CompareDefaultResult
 

Namespaces

namespace  yaze
 
namespace  yaze::editor
 Editors are the view controllers for the application.
 
namespace  yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}
 

Functions

ToolbarLayout yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::ResolveToolbarLayout (float toolbar_width)
 
bool yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::DrawToolbarActionButton (const char *id, const char *label, const ImVec2 &size, const char *tooltip, bool active=false)
 
CompareDefaultResult yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::PickDefaultCompareRoom (int current_room, int previous_room, const std::function< const std::deque< int > &()> &get_recent_rooms)
 
bool yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::IconToggleButton (const char *id, const char *icon_on, const char *icon_off, bool *value, float btn_size, const char *tooltip_on, const char *tooltip_off)
 
void yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::DrawViewOptionsButton (DungeonCanvasViewer *viewer, const ToolbarLayout &layout)
 
void yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::DrawCanvasModeSelector (DungeonWorkbenchLayoutState *layout, const ToolbarLayout &toolbar_layout)
 
void yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::DrawComparePicker (int current_room_id, int *compare_room_id, const std::function< const std::deque< int > &()> &get_recent_rooms, char *search_buf, size_t search_buf_size, const project::YazeProject *project)
 
void yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::DrawCompareMenu (const DungeonWorkbenchToolbarParams &p, const ToolbarLayout &layout)
 

Variables

constexpr float yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kInlineCompareRoomIdToolbarWidth = 980.0f
 
constexpr float yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kCompactCompareButtonWidth = 34.0f
 
constexpr int yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kDungeonRoomCount = 0x128
 
constexpr float yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kDenseToolbarButtonWidth = 84.0f
 
constexpr float yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kMaxComparePickerWidth = 420.0f
 
constexpr float yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kCompareSearchListHeight = 220.0f
 
constexpr float yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kToolbarActionGap = 6.0f
 
constexpr float yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kToolbarClusterGap = 12.0f
 
constexpr char yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kToolbarPopupIdViewOptions [] = "##WorkbenchViewOptions"
 
constexpr char yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kToolbarPopupIdCompareSearchList [] = "##CompareSearchList"
 
constexpr char yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kToolbarPopupIdCompareMenu [] = "##WorkbenchCompareMenu"
 
constexpr char yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kToolbarStartCompareLabel [] = ICON_MD_COMPARE_ARROWS
 
constexpr char yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kToolbarViewOptionsLabel [] = ICON_MD_VISIBILITY
 
constexpr char yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kToolbarModeConnectedLabel [] = ICON_MD_VIEW_QUILT
 
constexpr char yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kToolbarRoomReviewLabel [] = ICON_MD_GRID_VIEW
 
constexpr char yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kToolbarRoomSearchHint [] = "Type to filter rooms..."
 
constexpr char yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kToolbarComparePickerTooltip [] = "Pick a room to compare"
 
constexpr char yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kToolbarCompareRoomIdTooltip [] = "Compare room ID"
 
constexpr char yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kToolbarPanelWorkflowTooltip []
 
constexpr char yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kToolbarRoomMatrixTooltip [] = "Open room review tools"
 
constexpr char yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kToolbarNoCompareHistoryMessage []
 
constexpr char yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::kToolbarNoCompareHistoryTooltip []