#include <popup_manager.h>

Public Member Functions | |
| PopupManager (EditorManager *editor_manager) | |
| void | Initialize () |
| void | DrawPopups () |
| void | Show (const char *name) |
| void | Hide (const char *name) |
| bool | IsVisible (const char *name) const |
| void | SetStatus (const absl::Status &status) |
| absl::Status | GetStatus () const |
Private Member Functions | |
| bool | BeginCentered (const char *name) |
| void | DrawAboutPopup () |
| void | DrawRomInfoPopup () |
| void | DrawStatusPopup () |
| void | DrawSaveAsPopup () |
| void | DrawNewProjectPopup () |
| void | DrawSupportedFeaturesPopup () |
| void | DrawOpenRomHelpPopup () |
| void | DrawManageProjectPopup () |
| void | DrawGettingStartedPopup () |
| void | DrawAsarIntegrationPopup () |
| void | DrawBuildInstructionsPopup () |
| void | DrawCLIUsagePopup () |
| void | DrawTroubleshootingPopup () |
| void | DrawContributingPopup () |
| void | DrawWhatsNewPopup () |
| void | DrawWorkspaceHelpPopup () |
| void | DrawSessionLimitWarningPopup () |
| void | DrawLayoutResetConfirmPopup () |
| void | DrawDisplaySettingsPopup () |
| void | DrawFeatureFlagsPopup () |
| void | DrawDataIntegrityPopup () |
Private Attributes | |
| EditorManager * | editor_manager_ |
| std::unordered_map< std::string, PopupParams > | popups_ |
| absl::Status | status_ |
| bool | show_status_ = false |
| absl::Status | prev_status_ |
Definition at line 99 of file popup_manager.h.
| yaze::editor::PopupManager::PopupManager | ( | EditorManager * | editor_manager | ) |
Definition at line 16 of file popup_manager.cc.
| void yaze::editor::PopupManager::Initialize | ( | ) |
Definition at line 19 of file popup_manager.cc.
References DrawAboutPopup(), DrawAsarIntegrationPopup(), DrawBuildInstructionsPopup(), DrawCLIUsagePopup(), DrawContributingPopup(), DrawDataIntegrityPopup(), DrawDisplaySettingsPopup(), DrawFeatureFlagsPopup(), DrawGettingStartedPopup(), DrawLayoutResetConfirmPopup(), DrawManageProjectPopup(), DrawNewProjectPopup(), DrawOpenRomHelpPopup(), DrawRomInfoPopup(), DrawSaveAsPopup(), DrawSessionLimitWarningPopup(), DrawSupportedFeaturesPopup(), DrawTroubleshootingPopup(), DrawWhatsNewPopup(), DrawWorkspaceHelpPopup(), yaze::editor::PopupID::kAbout, yaze::editor::PopupID::kAsarIntegration, yaze::editor::PopupID::kBuildInstructions, yaze::editor::PopupID::kCLIUsage, yaze::editor::kConfirmation, yaze::editor::PopupID::kContributing, yaze::editor::PopupID::kDataIntegrity, yaze::editor::PopupID::kDisplaySettings, yaze::editor::PopupID::kFeatureFlags, yaze::editor::kFileOperation, yaze::editor::PopupID::kGettingStarted, yaze::editor::kHelp, yaze::editor::kInfo, yaze::editor::PopupID::kLayoutResetConfirm, yaze::editor::PopupID::kManageProject, yaze::editor::PopupID::kNewProject, yaze::editor::PopupID::kOpenRomHelp, yaze::editor::PopupID::kRomInfo, yaze::editor::PopupID::kSaveAs, yaze::editor::PopupID::kSessionLimitWarning, yaze::editor::kSettings, yaze::editor::PopupID::kSupportedFeatures, yaze::editor::PopupID::kTroubleshooting, yaze::editor::kWarning, yaze::editor::PopupID::kWhatsNew, yaze::editor::PopupID::kWorkspaceHelp, and popups_.
| void yaze::editor::PopupManager::DrawPopups | ( | ) |
Definition at line 130 of file popup_manager.cc.
References DrawStatusPopup(), and popups_.
Referenced by yaze::editor::UICoordinator::DrawAllPopups().

| void yaze::editor::PopupManager::Show | ( | const char * | name | ) |
Definition at line 151 of file popup_manager.cc.
References popups_.
Referenced by yaze::editor::MenuOrchestrator::AddDebugMenuItems(), yaze::editor::MenuOrchestrator::OnSaveRomAs(), yaze::editor::MenuOrchestrator::OnShowAbout(), yaze::editor::MenuOrchestrator::OnShowAsarIntegration(), yaze::editor::MenuOrchestrator::OnShowBuildInstructions(), yaze::editor::MenuOrchestrator::OnShowCLIUsage(), yaze::editor::MenuOrchestrator::OnShowContributing(), yaze::editor::MenuOrchestrator::OnShowDisplaySettings(), yaze::editor::MenuOrchestrator::OnShowGettingStarted(), yaze::editor::MenuOrchestrator::OnShowRomInfo(), yaze::editor::MenuOrchestrator::OnShowSupportedFeatures(), yaze::editor::MenuOrchestrator::OnShowTroubleshooting(), yaze::editor::MenuOrchestrator::OnShowWhatsNew(), yaze::editor::UICoordinator::ShowDisplaySettings(), and yaze::editor::UICoordinator::ShowPopup().
| void yaze::editor::PopupManager::Hide | ( | const char * | name | ) |
Definition at line 170 of file popup_manager.cc.
References popups_.
Referenced by DrawAboutPopup(), DrawAsarIntegrationPopup(), DrawBuildInstructionsPopup(), DrawCLIUsagePopup(), DrawContributingPopup(), DrawDataIntegrityPopup(), DrawDisplaySettingsPopup(), DrawFeatureFlagsPopup(), DrawGettingStartedPopup(), DrawLayoutResetConfirmPopup(), DrawManageProjectPopup(), DrawNewProjectPopup(), DrawOpenRomHelpPopup(), DrawRomInfoPopup(), DrawSaveAsPopup(), DrawSessionLimitWarningPopup(), DrawSupportedFeaturesPopup(), DrawTroubleshootingPopup(), DrawWhatsNewPopup(), DrawWorkspaceHelpPopup(), and yaze::editor::UICoordinator::HidePopup().
| bool yaze::editor::PopupManager::IsVisible | ( | const char * | name | ) | const |
Definition at line 183 of file popup_manager.cc.
References popups_.
| void yaze::editor::PopupManager::SetStatus | ( | const absl::Status & | status | ) |
Definition at line 196 of file popup_manager.cc.
References prev_status_, show_status_, and status_.
|
inline |
Definition at line 122 of file popup_manager.h.
References status_.
|
private |
Definition at line 204 of file popup_manager.cc.
Referenced by DrawStatusPopup().
|
private |
Definition at line 236 of file popup_manager.cc.
References editor_manager_, Hide(), yaze::gui::kDefaultModalSize, and yaze::editor::EditorManager::version().
Referenced by Initialize().

|
private |
Definition at line 248 of file popup_manager.cc.
References editor_manager_, yaze::editor::EditorManager::GetCurrentRom(), yaze::util::HexLongLong(), Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().

|
private |
Definition at line 214 of file popup_manager.cc.
References BeginCentered(), ICON_MD_CONTENT_COPY, ICON_MD_ERROR, yaze::gui::kDefaultModalSize, prev_status_, show_status_, and status_.
Referenced by DrawPopups().

|
private |
Definition at line 260 of file popup_manager.cc.
References editor_manager_, yaze::editor::EditorManager::GetCurrentRom(), Hide(), ICON_MD_CANCEL, ICON_MD_FOLDER_OPEN, ICON_MD_SAVE, ICON_MD_SAVE_AS, yaze::gui::kDefaultModalSize, yaze::editor::PopupID::kSaveAs, yaze::editor::EditorManager::SaveRomAs(), and yaze::util::FileDialogWrapper::ShowSaveFileDialog().
Referenced by Initialize().

|
private |
Definition at line 309 of file popup_manager.cc.
References yaze::editor::EditorManager::CreateNewProject(), editor_manager_, Hide(), ICON_MD_ADD, ICON_MD_CANCEL, ICON_MD_CODE, ICON_MD_FOLDER, ICON_MD_LABEL, ICON_MD_SAVE, ICON_MD_VIDEOGAME_ASSET, yaze::gui::kDefaultModalSize, yaze::editor::PopupID::kNewProject, yaze::util::FileDialogWrapper::ShowOpenFileDialog(), yaze::util::FileDialogWrapper::ShowOpenFolderDialog(), and yaze::util::FileDialogWrapper::ShowSaveFileDialog().
Referenced by Initialize().
|
private |
Definition at line 389 of file popup_manager.cc.
References Hide(), ICON_MD_BUILD, ICON_MD_CASTLE, ICON_MD_COLOR_LENS, ICON_MD_FOLDER, ICON_MD_LAYERS, ICON_MD_PALETTE, ICON_MD_SAVE, and yaze::gui::kDefaultModalSize.
Referenced by Initialize().

|
private |
Definition at line 449 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().

|
private |
Definition at line 462 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().

|
private |
Definition at line 477 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().

|
private |
Definition at line 491 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().

|
private |
Definition at line 506 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().

|
private |
Definition at line 523 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().

|
private |
Definition at line 538 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().

|
private |
Definition at line 552 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().

|
private |
Definition at line 568 of file popup_manager.cc.
References Hide(), ICON_MD_BUILD, ICON_MD_EDIT, ICON_MD_PALETTE, ICON_MD_SETTINGS, and yaze::gui::kDefaultModalSize.
Referenced by Initialize().

|
private |
Definition at line 620 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().

|
private |
Definition at line 649 of file popup_manager.cc.
References Hide(), ICON_MD_WARNING, and yaze::gui::kDefaultModalSize.
Referenced by Initialize().

|
private |
Definition at line 666 of file popup_manager.cc.
References Hide(), ICON_MD_WARNING, and yaze::gui::kDefaultModalSize.
Referenced by Initialize().

|
private |
Definition at line 683 of file popup_manager.cc.
References yaze::gui::DrawDisplaySettingsForPopup(), yaze::gui::DrawFontManager(), editor_manager_, Hide(), ICON_MD_DISPLAY_SETTINGS, yaze::gui::kDefaultModalSize, yaze::editor::EditorManager::SetFontGlobalScale(), and yaze::gui::TextWithSeparators().
Referenced by Initialize().
|
private |
Definition at line 724 of file popup_manager.cc.
References yaze::gui::FlagsMenu::DrawDungeonFlags(), yaze::gui::FlagsMenu::DrawOverworldFlags(), yaze::gui::FlagsMenu::DrawResourceFlags(), yaze::gui::FlagsMenu::DrawSystemFlags(), Hide(), yaze::gui::kDefaultModalSize, and yaze::editor::PopupID::kFeatureFlags.
Referenced by Initialize().
|
private |
Definition at line 764 of file popup_manager.cc.
References Hide(), yaze::editor::PopupID::kDataIntegrity, and yaze::gui::kDefaultModalSize.
Referenced by Initialize().

|
private |
Definition at line 173 of file popup_manager.h.
Referenced by DrawAboutPopup(), DrawDisplaySettingsPopup(), DrawNewProjectPopup(), DrawRomInfoPopup(), and DrawSaveAsPopup().
|
private |
Definition at line 174 of file popup_manager.h.
Referenced by DrawPopups(), Hide(), Initialize(), IsVisible(), and Show().
|
private |
Definition at line 175 of file popup_manager.h.
Referenced by DrawStatusPopup(), GetStatus(), and SetStatus().
|
private |
Definition at line 176 of file popup_manager.h.
Referenced by DrawStatusPopup(), and SetStatus().
|
private |
Definition at line 177 of file popup_manager.h.
Referenced by DrawStatusPopup(), and SetStatus().