#include <project.h>
Classes | |
struct | ResourceType |
Public Member Functions | |
bool | LoadLabels (const std::string &filename) |
bool | SaveLabels () |
void | DisplayLabels (bool *p_open) |
void | EditLabel (const std::string &type, const std::string &key, const std::string &newValue) |
void | SelectableLabelWithNameEdit (bool selected, const std::string &type, const std::string &key, const std::string &defaultValue) |
std::string | GetLabel (const std::string &type, const std::string &key) |
std::string | CreateOrGetLabel (const std::string &type, const std::string &key, const std::string &defaultValue) |
Public Attributes | |
bool | labels_loaded_ = false |
std::string | filename_ |
std::unordered_map< std::string, std::unordered_map< std::string, std::string > > | labels_ |
bool yaze::app::ResourceLabelManager::LoadLabels | ( | const std::string & | filename | ) |
Definition at line 65 of file project.cc.
References filename_, labels_, and labels_loaded_.
Referenced by yaze::app::Rom::LoadFromFile().
bool yaze::app::ResourceLabelManager::SaveLabels | ( | ) |
Definition at line 94 of file project.cc.
References filename_, labels_, and labels_loaded_.
Referenced by DisplayLabels().
void yaze::app::ResourceLabelManager::DisplayLabels | ( | bool * | p_open | ) |
Definition at line 112 of file project.cc.
References labels_, labels_loaded_, and SaveLabels().
void yaze::app::ResourceLabelManager::EditLabel | ( | const std::string & | type, |
const std::string & | key, | ||
const std::string & | newValue ) |
Definition at line 141 of file project.cc.
References labels_.
void yaze::app::ResourceLabelManager::SelectableLabelWithNameEdit | ( | bool | selected, |
const std::string & | type, | ||
const std::string & | key, | ||
const std::string & | defaultValue ) |
Definition at line 147 of file project.cc.
References CreateOrGetLabel(), ICON_MD_CLOSE, and labels_.
std::string yaze::app::ResourceLabelManager::GetLabel | ( | const std::string & | type, |
const std::string & | key ) |
Definition at line 171 of file project.cc.
References labels_.
std::string yaze::app::ResourceLabelManager::CreateOrGetLabel | ( | const std::string & | type, |
const std::string & | key, | ||
const std::string & | defaultValue ) |
Definition at line 176 of file project.cc.
References labels_.
Referenced by SelectableLabelWithNameEdit().
bool yaze::app::ResourceLabelManager::labels_loaded_ = false |
Definition at line 74 of file project.h.
Referenced by DisplayLabels(), LoadLabels(), and SaveLabels().
std::string yaze::app::ResourceLabelManager::filename_ |
Definition at line 75 of file project.h.
Referenced by LoadLabels(), and SaveLabels().
std::unordered_map<std::string, std::unordered_map<std::string, std::string> > yaze::app::ResourceLabelManager::labels_ |
Definition at line 82 of file project.h.
Referenced by CreateOrGetLabel(), DisplayLabels(), EditLabel(), GetLabel(), LoadLabels(), SaveLabels(), and SelectableLabelWithNameEdit().