#include <new_project_dialog.h>
Definition at line 16 of file new_project_dialog.h.
◆ CreateCallback
Initial value: std::function<void(const std::string& template_name,
const std::string& rom_path,
const std::string& project_name)>
Definition at line 20 of file new_project_dialog.h.
◆ SetCreateCallback()
| void yaze::editor::NewProjectDialog::SetCreateCallback |
( |
CreateCallback | cb | ) |
|
|
inline |
◆ Open()
| void yaze::editor::NewProjectDialog::Open |
( |
const std::string & | initial_template = "" | ) |
|
◆ Draw()
| bool yaze::editor::NewProjectDialog::Draw |
( |
| ) |
|
Definition at line 88 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().
◆ IsOpen()
| bool yaze::editor::NewProjectDialog::IsOpen |
( |
| ) |
const |
|
inline |
◆ ApplyTemplateSelection()
| void yaze::editor::NewProjectDialog::ApplyTemplateSelection |
( |
const std::string & | name | ) |
|
|
private |
◆ Reset()
| void yaze::editor::NewProjectDialog::Reset |
( |
| ) |
|
|
private |
◆ create_callback_
◆ open_requested_
| bool yaze::editor::NewProjectDialog::open_requested_ = false |
|
private |
◆ just_opened_
| bool yaze::editor::NewProjectDialog::just_opened_ = false |
|
private |
◆ selected_template_
| int yaze::editor::NewProjectDialog::selected_template_ = 0 |
|
private |
◆ rom_path_buffer_
| char yaze::editor::NewProjectDialog::rom_path_buffer_[1024] = {} |
|
private |
◆ project_name_buffer_
| char yaze::editor::NewProjectDialog::project_name_buffer_[128] = {} |
|
private |
◆ status_message_
| std::string yaze::editor::NewProjectDialog::status_message_ |
|
private |
The documentation for this class was generated from the following files: