![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
Inheritance diagram for fix_enabler_item:
Collaboration diagram for fix_enabler_item:Public Member Functions | |
| fix_enabler_item (struct action_enabler *enabler) | |
| Construct fix_enabler_item to help req_vec_fix with the action enabler unique stuff. More... | |
| virtual | ~fix_enabler_item () |
| Destructor for fix_enabler_item. More... | |
| void | close () override |
| Tell the helper that it has outlived its usefulnes. More... | |
| const void * | item () override |
| Returns a pointer to the ruleset item. More... | |
| void * | item_working_copy () override |
| Returns a pointer to the working copy of the ruleset item. More... | |
| const char * | name () override |
| Returns a name to describe the item, hopefully good enough to distinguish it from other items. More... | |
| struct req_vec_problem * | find_next_problem () override |
| Returns the next detected requirement vector problem for the ruleset item or nullptr if no fix is found to be needed. More... | |
| void | apply_accepted_changes () override |
| Do all the changes the user has accepted to the ruleset item. More... | |
| void | undo_accepted_changes () override |
| Undo all the changes the user has accepted to the ruleset item. More... | |
| int | num_vectors () override |
| Returns the number of requirement vectors in this item. More... | |
| requirement_vector_namer | vector_namer () override |
| Returns a function pointer to a function that names this item kind's requirement vector number number. More... | |
| requirement_vector_by_number | vector_getter () override |
| Returns a function pointer to a function that returns a writable pointer to the specified requirement vector in the specified parent item. More... | |
| bool | vector_in_item (const struct requirement_vector *vec) override |
| Check if the specified vector belongs to this item. More... | |
Private Attributes | |
| struct action_enabler * | current_enabler |
| struct action_enabler * | local_copy |
| QString | my_name |
Definition at line 36 of file tab_enablers.cpp.
|
explicit |
Construct fix_enabler_item to help req_vec_fix with the action enabler unique stuff.
Definition at line 416 of file tab_enablers.cpp.
|
virtual |
Destructor for fix_enabler_item.
Definition at line 440 of file tab_enablers.cpp.
|
overridevirtual |
Do all the changes the user has accepted to the ruleset item.
N.B.: This could be called before all problems are fixed if the user wishes to try to fix problems by hand or to come back and fix the remaining problems later.
Implements req_vec_fix_item.
Definition at line 488 of file tab_enablers.cpp.
|
overridevirtual |
Tell the helper that it has outlived its usefulnes.
Implements req_vec_fix_item.
Definition at line 445 of file tab_enablers.cpp.
|
overridevirtual |
Returns the next detected requirement vector problem for the ruleset item or nullptr if no fix is found to be needed.
Implements req_vec_fix_item.
Definition at line 472 of file tab_enablers.cpp.
|
overridevirtual |
Returns a pointer to the ruleset item.
Implements req_vec_fix_item.
Definition at line 451 of file tab_enablers.cpp.
|
overridevirtual |
Returns a pointer to the working copy of the ruleset item.
Implements req_vec_fix_item.
Definition at line 457 of file tab_enablers.cpp.
|
overridevirtual |
Returns a name to describe the item, hopefully good enough to distinguish it from other items.
Must be short enough for a quick mention.
Implements req_vec_fix_item.
Definition at line 465 of file tab_enablers.cpp.
|
overridevirtual |
Returns the number of requirement vectors in this item.
Implements req_vec_fix_item.
Definition at line 517 of file tab_enablers.cpp.
|
overridevirtual |
Undo all the changes the user has accepted to the ruleset item.
N.B.: This could be called after all problems are fixed if the user wishes to see all problems and try to fix them by hand.
Implements req_vec_fix_item.
Definition at line 503 of file tab_enablers.cpp.
|
overridevirtual |
Returns a function pointer to a function that returns a writable pointer to the specified requirement vector in the specified parent item.
Implements req_vec_fix_item.
Definition at line 536 of file tab_enablers.cpp.
|
overridevirtual |
Check if the specified vector belongs to this item.
| vec | the requirement vector that may belong to this item. |
Implements req_vec_fix_item.
Definition at line 546 of file tab_enablers.cpp.
|
overridevirtual |
Returns a function pointer to a function that names this item kind's requirement vector number number.
Useful when there is more than one requirement vector.
Implements req_vec_fix_item.
Definition at line 525 of file tab_enablers.cpp.
|
private |
Definition at line 54 of file tab_enablers.cpp.
Referenced by apply_accepted_changes(), fix_enabler_item(), item(), undo_accepted_changes(), and vector_in_item().
|
private |
Definition at line 55 of file tab_enablers.cpp.
Referenced by apply_accepted_changes(), find_next_problem(), fix_enabler_item(), item_working_copy(), undo_accepted_changes(), and ~fix_enabler_item().
|
private |
Definition at line 56 of file tab_enablers.cpp.
Referenced by fix_enabler_item(), and name().