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

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

Detailed Description

Definition at line 16 of file new_project_dialog.h.

Member Typedef Documentation

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

Member Function Documentation

◆ SetCreateCallback()

void yaze::editor::NewProjectDialog::SetCreateCallback ( CreateCallback cb)
inline

Definition at line 24 of file new_project_dialog.h.

References create_callback_.

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

◆ Open()

void yaze::editor::NewProjectDialog::Open ( const std::string & initial_template = "")

◆ Draw()

◆ IsOpen()

bool yaze::editor::NewProjectDialog::IsOpen ( ) const
inline

Definition at line 36 of file new_project_dialog.h.

References open_requested_.

◆ ApplyTemplateSelection()

void yaze::editor::NewProjectDialog::ApplyTemplateSelection ( const std::string & name)
private

Definition at line 83 of file new_project_dialog.cc.

References selected_template_.

◆ Reset()

void yaze::editor::NewProjectDialog::Reset ( )
private

Definition at line 77 of file new_project_dialog.cc.

References just_opened_, open_requested_, and status_message_.

Referenced by Draw().

Member Data Documentation

◆ create_callback_

CreateCallback yaze::editor::NewProjectDialog::create_callback_
private

Definition at line 42 of file new_project_dialog.h.

Referenced by Draw(), and SetCreateCallback().

◆ open_requested_

bool yaze::editor::NewProjectDialog::open_requested_ = false
private

Definition at line 44 of file new_project_dialog.h.

Referenced by Draw(), IsOpen(), Open(), and Reset().

◆ just_opened_

bool yaze::editor::NewProjectDialog::just_opened_ = false
private

Definition at line 45 of file new_project_dialog.h.

Referenced by Draw(), Open(), and Reset().

◆ selected_template_

int yaze::editor::NewProjectDialog::selected_template_ = 0
private

Definition at line 47 of file new_project_dialog.h.

Referenced by ApplyTemplateSelection(), Draw(), and Open().

◆ rom_path_buffer_

char yaze::editor::NewProjectDialog::rom_path_buffer_[1024] = {}
private

Definition at line 48 of file new_project_dialog.h.

Referenced by Draw(), and Open().

◆ project_name_buffer_

char yaze::editor::NewProjectDialog::project_name_buffer_[128] = {}
private

Definition at line 49 of file new_project_dialog.h.

Referenced by Draw(), and Open().

◆ status_message_

std::string yaze::editor::NewProjectDialog::status_message_
private

Definition at line 53 of file new_project_dialog.h.

Referenced by Draw(), Open(), and Reset().


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