#include <new_project_dialog.h>
Public Types | |
| using | CreateCallback |
Public Member Functions | |
| void | SetCreateCallback (CreateCallback cb) |
| void | Open (const std::string &initial_template="") |
| bool | Draw () |
| bool | IsOpen () const |
Private Member Functions | |
| void | ApplyTemplateSelection (const std::string &name) |
| void | Reset () |
Private Attributes | |
| CreateCallback | create_callback_ |
| bool | open_requested_ = false |
| bool | just_opened_ = false |
| int | selected_template_ = 0 |
| char | rom_path_buffer_ [1024] = {} |
| char | project_name_buffer_ [128] = {} |
| std::string | status_message_ |
Definition at line 18 of file new_project_dialog.h.
Definition at line 22 of file new_project_dialog.h.
|
inline |
Definition at line 26 of file new_project_dialog.h.
References create_callback_.
Referenced by yaze::editor::UICoordinator::UICoordinator().
| void yaze::editor::NewProjectDialog::Open | ( | const std::string & | initial_template = "" | ) |
Definition at line 68 of file new_project_dialog.cc.
References just_opened_, open_requested_, project_name_buffer_, rom_path_buffer_, selected_template_, and status_message_.
Referenced by yaze::editor::UICoordinator::InitializeCommandPalette(), yaze::editor::UICoordinator::OpenNewProjectDialog(), and yaze::editor::UICoordinator::UICoordinator().
| bool yaze::editor::NewProjectDialog::Draw | ( | ) |
Definition at line 91 of file new_project_dialog.cc.
References yaze::gui::ConvertColorToImVec4(), create_callback_, yaze::gui::ThemeManager::Get(), yaze::gui::GetTextSecondaryVec4(), ICON_MD_CLOSE, ICON_MD_EDIT, ICON_MD_FOLDER_OPEN, ICON_MD_INFO, ICON_MD_LIGHTBULB, ICON_MD_ROCKET_LAUNCH, ICON_MD_WARNING, just_opened_, yaze::editor::anonymous_namespace{new_project_dialog.cc}::TemplateDescriptor::name, open_requested_, project_name_buffer_, Reset(), rom_path_buffer_, selected_template_, yaze::util::FileDialogWrapper::ShowOpenFileDialog(), and status_message_.
Referenced by yaze::editor::UICoordinator::DrawWelcomeScreen().
|
inline |
Definition at line 38 of file new_project_dialog.h.
References open_requested_.
Referenced by yaze::editor::UICoordinator::IsNewProjectDialogOpen().
|
private |
Definition at line 86 of file new_project_dialog.cc.
References selected_template_.
|
private |
Definition at line 80 of file new_project_dialog.cc.
References just_opened_, open_requested_, and status_message_.
Referenced by Draw().
|
private |
Definition at line 44 of file new_project_dialog.h.
Referenced by Draw(), and SetCreateCallback().
|
private |
|
private |
Definition at line 47 of file new_project_dialog.h.
|
private |
Definition at line 49 of file new_project_dialog.h.
Referenced by ApplyTemplateSelection(), Draw(), and Open().
|
private |
Definition at line 50 of file new_project_dialog.h.
|
private |
Definition at line 51 of file new_project_dialog.h.
|
private |
Definition at line 55 of file new_project_dialog.h.