#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 () |
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 14 of file popup_manager.cc.
References editor_manager_, and status_.
void yaze::editor::PopupManager::Initialize | ( | ) |
Definition at line 17 of file popup_manager.cc.
References DrawAboutPopup(), DrawManageProjectPopup(), DrawNewProjectPopup(), DrawOpenRomHelpPopup(), DrawRomInfoPopup(), DrawSaveAsPopup(), DrawSupportedFeaturesPopup(), and popups_.
void yaze::editor::PopupManager::DrawPopups | ( | ) |
Definition at line 28 of file popup_manager.cc.
References DrawStatusPopup(), and popups_.
void yaze::editor::PopupManager::Show | ( | const char * | name | ) |
Definition at line 44 of file popup_manager.cc.
References popups_.
void yaze::editor::PopupManager::Hide | ( | const char * | name | ) |
Definition at line 51 of file popup_manager.cc.
References popups_.
Referenced by DrawAboutPopup(), DrawManageProjectPopup(), DrawNewProjectPopup(), DrawOpenRomHelpPopup(), DrawRomInfoPopup(), DrawSaveAsPopup(), and DrawSupportedFeaturesPopup().
bool yaze::editor::PopupManager::IsVisible | ( | const char * | name | ) | const |
Definition at line 59 of file popup_manager.cc.
References popups_.
void yaze::editor::PopupManager::SetStatus | ( | const absl::Status & | status | ) |
Definition at line 67 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 75 of file popup_manager.cc.
Referenced by DrawStatusPopup().
|
private |
Definition at line 107 of file popup_manager.cc.
References editor_manager_, Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 119 of file popup_manager.cc.
References editor_manager_, yaze::util::HexLongLong(), Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 85 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 131 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 145 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 185 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 214 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 227 of file popup_manager.cc.
References Hide(), and yaze::gui::kDefaultModalSize.
Referenced by Initialize().
|
private |
Definition at line 76 of file popup_manager.h.
Referenced by DrawAboutPopup(), DrawRomInfoPopup(), and PopupManager().
|
private |
Definition at line 77 of file popup_manager.h.
Referenced by DrawPopups(), Hide(), Initialize(), IsVisible(), and Show().
|
private |
Definition at line 78 of file popup_manager.h.
Referenced by DrawStatusPopup(), GetStatus(), PopupManager(), and SetStatus().
|
private |
Definition at line 79 of file popup_manager.h.
Referenced by DrawStatusPopup(), and SetStatus().
|
private |
Definition at line 80 of file popup_manager.h.
Referenced by DrawStatusPopup(), and SetStatus().