ASAPCabinetFE
 
Loading...
Searching...
No Matches
TableOverrideEditor Class Reference
+ Collaboration diagram for TableOverrideEditor:

Public Member Functions

 TableOverrideEditor (TableData &table, TableOverrideManager &overrideManager)
 Constructs a TableOverrideEditor for a specific table.
 
bool render ()
 Renders the ImGui panel for editing overrides.
 
bool wasSaved () const
 Checks if changes were saved.
 

Constructor & Destructor Documentation

◆ TableOverrideEditor()

TableOverrideEditor::TableOverrideEditor ( TableData table,
TableOverrideManager overrideManager 
)

Constructs a TableOverrideEditor for a specific table.

Initializes the editor with the table's current TableData values, prefilled in text fields.

Parameters
tableThe TableData object to edit.
overrideManagerThe TableOverrideManager for saving overrides.

Member Function Documentation

◆ render()

bool TableOverrideEditor::render ( )

Renders the ImGui panel for editing overrides.

Displays text fields for overrideable fields, prefilled with current values, and buttons for Save, Discard, and Reset. Returns false if the panel should close (e.g., Discard pressed).

Returns
True if the panel should remain open, false if it should close.

◆ wasSaved()

bool TableOverrideEditor::wasSaved ( ) const
inline

Checks if changes were saved.

Returns
True if Save was clicked, false otherwise (e.g., Discard or Reset).

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