|
Player12
An open source football management simulator
|
#include <runtime_editor_dialog.h>
Classes | |
| struct | Field |
| struct | PopupState |
Public Types | |
| enum class | Request { None , Apply , Undo } |
Public Member Functions | |
| RuntimeEditorDialog (GameController &owner) | |
| ~RuntimeEditorDialog () | |
| RuntimeEditorDialog (const RuntimeEditorDialog &)=delete | |
| RuntimeEditorDialog & | operator= (const RuntimeEditorDialog &)=delete |
| RuntimeEditorDialog (RuntimeEditorDialog &&)=delete | |
| RuntimeEditorDialog & | operator= (RuntimeEditorDialog &&)=delete |
| void | open (const std::optional< NavEntry > &context) |
| void | open (const EditorContext &context) |
| void | render () |
| bool | isOpen () const |
| Request | takeRequest () |
| const std::vector< RuntimeEditor::Change > & | changes () const |
| std::shared_ptr< GameController::EditorSession > | session () const |
| void | finish (bool success, std::string message) |
Private Member Functions | |
| void | refresh () |
| void | chooseTable (const std::string &name) |
| void | selectRow (std::size_t index) |
| void | stage () |
| void | renderForm () |
| void | renderSection (std::string_view section, const std::vector< EditorField > &descriptors) |
| void | renderNavigation () |
| void | renderBody (float footer) |
| void | renderActions () |
| void | renderConfirmation () |
| const EditorField * | fieldDescriptor (const std::string &name) const |
| void | limitToGameplay () |
| void | renderBrowser () |
| bool | formDirty () const |
| void | close () |
Static Private Member Functions | |
| static void | renderAttributes (Field &field) |
| static void | renderField (Field &field, const EditorField &descriptor) |
| static void | renderNumber (Field &field, const EditorField &descriptor) |
| static void | renderChoice (Field &field, const EditorField &descriptor) |
Private Attributes | |
| GameController & | controller |
| std::shared_ptr< GameController::EditorSession > | editor_session |
| std::vector< RuntimeEditor::Table > | tables |
| RuntimeEditor::Page | page |
| std::string | selected_table |
| PlayerID | context_player = 0 |
| TeamID | context_team = 0 |
| std::map< std::string, RuntimeEditor::Value, std::less<> > | context_filter |
| std::map< std::string, std::map< std::string, RuntimeEditor::Value, std::less<> >, std::less<> > | scoped_filters |
| std::array< char, 128 > | search {} |
| int | offset = 0 |
| std::optional< RuntimeEditor::Row > | original |
| std::vector< Field > | fields |
| std::map< std::string, std::vector< EditorField >, std::less<> > | presentations |
| bool | show_records = false |
| std::string | focus_label |
| PopupState | popup |
| std::string | error |
| Request | request = Request::None |
| std::vector< RuntimeEditor::Change > | pending_changes |
Friends | |
| class | GameFlowTest_GUIFlowLifecycle_Test |
Contextual gameplay editor with feature-owned presentation. Owns a draft; apply requests are consumed by GUIView at the next frame boundary.
|
strong |
|
explicit |
| RuntimeEditorDialog::~RuntimeEditorDialog | ( | ) |
|
delete |
|
delete |
|
inline |
|
private |
|
private |
|
private |
| void RuntimeEditorDialog::finish | ( | bool | success, |
| std::string | message | ||
| ) |
|
private |
|
inline |
|
private |
| void RuntimeEditorDialog::open | ( | const EditorContext & | context | ) |
| void RuntimeEditorDialog::open | ( | const std::optional< NavEntry > & | context | ) |
|
delete |
|
delete |
|
private |
| void RuntimeEditorDialog::render | ( | ) |
|
private |
|
staticprivate |
|
private |
|
private |
|
staticprivate |
|
private |
|
staticprivate |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
inline |
|
private |
| RuntimeEditorDialog::Request RuntimeEditorDialog::takeRequest | ( | ) |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |