#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 () |
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 23 of file popup_manager.h.
yaze::editor::PopupManager::PopupManager | ( | EditorManager * | editor_manager | ) |
Definition at line 15 of file popup_manager.cc.
void yaze::editor::PopupManager::Initialize | ( | ) |
Definition at line 18 of file popup_manager.cc.
References DrawAboutPopup(), DrawAsarIntegrationPopup(), DrawBuildInstructionsPopup(), DrawCLIUsagePopup(), DrawContributingPopup(), DrawDisplaySettingsPopup(), DrawGettingStartedPopup(), DrawLayoutResetConfirmPopup(), DrawManageProjectPopup(), DrawNewProjectPopup(), DrawOpenRomHelpPopup(), DrawRomInfoPopup(), DrawSaveAsPopup(), DrawSessionLimitWarningPopup(), DrawSupportedFeaturesPopup(), DrawTroubleshootingPopup(), DrawWhatsNewPopup(), DrawWorkspaceHelpPopup(), and popups_.
void yaze::editor::PopupManager::DrawPopups | ( | ) |
Definition at line 46 of file popup_manager.cc.
References DrawStatusPopup(), and popups_.
void yaze::editor::PopupManager::Show | ( | const char * | name | ) |
Definition at line 69 of file popup_manager.cc.
References popups_.
Referenced by yaze::editor::MessageEditor::DrawExpandedMessageSettings().
void yaze::editor::PopupManager::Hide | ( | const char * | name | ) |
Definition at line 76 of file popup_manager.cc.
References popups_.
Referenced by DrawAboutPopup(), DrawAsarIntegrationPopup(), DrawBuildInstructionsPopup(), DrawCLIUsagePopup(), DrawContributingPopup(), DrawDisplaySettingsPopup(), DrawGettingStartedPopup(), DrawLayoutResetConfirmPopup(), DrawManageProjectPopup(), DrawNewProjectPopup(), DrawOpenRomHelpPopup(), DrawRomInfoPopup(), DrawSaveAsPopup(), DrawSessionLimitWarningPopup(), DrawSupportedFeaturesPopup(), DrawTroubleshootingPopup(), DrawWhatsNewPopup(), and DrawWorkspaceHelpPopup().
bool yaze::editor::PopupManager::IsVisible | ( | const char * | name | ) | const |
Definition at line 84 of file popup_manager.cc.
References popups_.
void yaze::editor::PopupManager::SetStatus | ( | const absl::Status & | status | ) |
Definition at line 92 of file popup_manager.cc.
References prev_status_, show_status_, and status_.
|
inline |
Definition at line 46 of file popup_manager.h.
References status_.
|
private |
Definition at line 100 of file popup_manager.cc.
Referenced by DrawStatusPopup().
|
private |
Definition at line 132 of file popup_manager.cc.
References editor_manager_, Hide(), yaze::gui::kDefaultModalSize, and yaze::editor::EditorManager::version().
Referenced by Initialize().
|
private |
Definition at line 144 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 110 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 156 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 170 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 210 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 270 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 283 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 298 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 312 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 327 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 344 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 359 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 373 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 389 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 441 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 470 of file popup_manager.cc.
References Hide(), ICON_MD_WARNING, and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 487 of file popup_manager.cc.
References Hide(), ICON_MD_WARNING, and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 504 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 93 of file popup_manager.h.
Referenced by DrawAboutPopup(), DrawDisplaySettingsPopup(), and DrawRomInfoPopup().
|
private |
Definition at line 94 of file popup_manager.h.
Referenced by DrawPopups(), Hide(), Initialize(), IsVisible(), and Show().
|
private |
Definition at line 95 of file popup_manager.h.
Referenced by DrawStatusPopup(), GetStatus(), and SetStatus().
|
private |
Definition at line 96 of file popup_manager.h.
Referenced by DrawStatusPopup(), and SetStatus().
|
private |
Definition at line 97 of file popup_manager.h.
Referenced by DrawStatusPopup(), and SetStatus().