yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::PopupManager Class Reference

#include <popup_manager.h>

Collaboration diagram for yaze::editor::PopupManager:

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

EditorManagereditor_manager_
 
std::unordered_map< std::string, PopupParamspopups_
 
absl::Status status_
 
bool show_status_ = false
 
absl::Status prev_status_
 

Detailed Description

Definition at line 99 of file popup_manager.h.

Constructor & Destructor Documentation

◆ PopupManager()

yaze::editor::PopupManager::PopupManager ( EditorManager editor_manager)

Definition at line 16 of file popup_manager.cc.

Member Function Documentation

◆ Initialize()

void yaze::editor::PopupManager::Initialize ( )

◆ DrawPopups()

void yaze::editor::PopupManager::DrawPopups ( )

Definition at line 130 of file popup_manager.cc.

References DrawStatusPopup(), and popups_.

Referenced by yaze::editor::UICoordinator::DrawAllPopups().

Here is the call graph for this function:

◆ Show()

◆ Hide()

◆ IsVisible()

bool yaze::editor::PopupManager::IsVisible ( const char *  name) const

Definition at line 183 of file popup_manager.cc.

References popups_.

◆ SetStatus()

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_.

◆ GetStatus()

absl::Status yaze::editor::PopupManager::GetStatus ( ) const
inline

Definition at line 122 of file popup_manager.h.

References status_.

◆ BeginCentered()

bool yaze::editor::PopupManager::BeginCentered ( const char *  name)
private

Definition at line 204 of file popup_manager.cc.

Referenced by DrawStatusPopup().

◆ DrawAboutPopup()

void yaze::editor::PopupManager::DrawAboutPopup ( )
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().

Here is the call graph for this function:

◆ DrawRomInfoPopup()

void yaze::editor::PopupManager::DrawRomInfoPopup ( )
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().

Here is the call graph for this function:

◆ DrawStatusPopup()

void yaze::editor::PopupManager::DrawStatusPopup ( )
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().

Here is the call graph for this function:

◆ DrawSaveAsPopup()

◆ DrawNewProjectPopup()

◆ DrawSupportedFeaturesPopup()

void yaze::editor::PopupManager::DrawSupportedFeaturesPopup ( )
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().

Here is the call graph for this function:

◆ DrawOpenRomHelpPopup()

void yaze::editor::PopupManager::DrawOpenRomHelpPopup ( )
private

Definition at line 449 of file popup_manager.cc.

References Hide(), and yaze::gui::kDefaultModalSize.

Referenced by Initialize().

Here is the call graph for this function:

◆ DrawManageProjectPopup()

void yaze::editor::PopupManager::DrawManageProjectPopup ( )
private

Definition at line 462 of file popup_manager.cc.

References Hide(), and yaze::gui::kDefaultModalSize.

Referenced by Initialize().

Here is the call graph for this function:

◆ DrawGettingStartedPopup()

void yaze::editor::PopupManager::DrawGettingStartedPopup ( )
private

Definition at line 477 of file popup_manager.cc.

References Hide(), and yaze::gui::kDefaultModalSize.

Referenced by Initialize().

Here is the call graph for this function:

◆ DrawAsarIntegrationPopup()

void yaze::editor::PopupManager::DrawAsarIntegrationPopup ( )
private

Definition at line 491 of file popup_manager.cc.

References Hide(), and yaze::gui::kDefaultModalSize.

Referenced by Initialize().

Here is the call graph for this function:

◆ DrawBuildInstructionsPopup()

void yaze::editor::PopupManager::DrawBuildInstructionsPopup ( )
private

Definition at line 506 of file popup_manager.cc.

References Hide(), and yaze::gui::kDefaultModalSize.

Referenced by Initialize().

Here is the call graph for this function:

◆ DrawCLIUsagePopup()

void yaze::editor::PopupManager::DrawCLIUsagePopup ( )
private

Definition at line 523 of file popup_manager.cc.

References Hide(), and yaze::gui::kDefaultModalSize.

Referenced by Initialize().

Here is the call graph for this function:

◆ DrawTroubleshootingPopup()

void yaze::editor::PopupManager::DrawTroubleshootingPopup ( )
private

Definition at line 538 of file popup_manager.cc.

References Hide(), and yaze::gui::kDefaultModalSize.

Referenced by Initialize().

Here is the call graph for this function:

◆ DrawContributingPopup()

void yaze::editor::PopupManager::DrawContributingPopup ( )
private

Definition at line 552 of file popup_manager.cc.

References Hide(), and yaze::gui::kDefaultModalSize.

Referenced by Initialize().

Here is the call graph for this function:

◆ DrawWhatsNewPopup()

void yaze::editor::PopupManager::DrawWhatsNewPopup ( )
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().

Here is the call graph for this function:

◆ DrawWorkspaceHelpPopup()

void yaze::editor::PopupManager::DrawWorkspaceHelpPopup ( )
private

Definition at line 620 of file popup_manager.cc.

References Hide(), and yaze::gui::kDefaultModalSize.

Referenced by Initialize().

Here is the call graph for this function:

◆ DrawSessionLimitWarningPopup()

void yaze::editor::PopupManager::DrawSessionLimitWarningPopup ( )
private

Definition at line 649 of file popup_manager.cc.

References Hide(), ICON_MD_WARNING, and yaze::gui::kDefaultModalSize.

Referenced by Initialize().

Here is the call graph for this function:

◆ DrawLayoutResetConfirmPopup()

void yaze::editor::PopupManager::DrawLayoutResetConfirmPopup ( )
private

Definition at line 666 of file popup_manager.cc.

References Hide(), ICON_MD_WARNING, and yaze::gui::kDefaultModalSize.

Referenced by Initialize().

Here is the call graph for this function:

◆ DrawDisplaySettingsPopup()

◆ DrawFeatureFlagsPopup()

◆ DrawDataIntegrityPopup()

void yaze::editor::PopupManager::DrawDataIntegrityPopup ( )
private

Definition at line 764 of file popup_manager.cc.

References Hide(), yaze::editor::PopupID::kDataIntegrity, and yaze::gui::kDefaultModalSize.

Referenced by Initialize().

Here is the call graph for this function:

Member Data Documentation

◆ editor_manager_

EditorManager* yaze::editor::PopupManager::editor_manager_
private

◆ popups_

std::unordered_map<std::string, PopupParams> yaze::editor::PopupManager::popups_
private

Definition at line 174 of file popup_manager.h.

Referenced by DrawPopups(), Hide(), Initialize(), IsVisible(), and Show().

◆ status_

absl::Status yaze::editor::PopupManager::status_
private

Definition at line 175 of file popup_manager.h.

Referenced by DrawStatusPopup(), GetStatus(), and SetStatus().

◆ show_status_

bool yaze::editor::PopupManager::show_status_ = false
private

Definition at line 176 of file popup_manager.h.

Referenced by DrawStatusPopup(), and SetStatus().

◆ prev_status_

absl::Status yaze::editor::PopupManager::prev_status_
private

Definition at line 177 of file popup_manager.h.

Referenced by DrawStatusPopup(), and SetStatus().


The documentation for this class was generated from the following files: