Back end for the variable editor.
More...
|
Variable | result [get, private set] |
| the variable with all modifications applied
|
|
|
Variable | base_ |
| The variable that is being edited.
|
|
readonly string | invalid_chars = "@:\\|&#!*()[] {};'.<>?/$%~-+" |
| List of chars that are forbidden in the textboxes.
|
|
readonly VariableList | owner_ |
| The owner of the variable we're editing.
|
|
ulong [] | ascii_mask |
| Mask of invalid ascii characters created from the invalid chars string. used for validation.
|
|
Back end for the variable editor.
- Author
- Stan Pepels
◆ VariableEditor()
Constructor for the editor sets the appropriate datacontext and sets up callbacks.
- Parameters
-
[in] | varaiable | (cpg.Variable) Varibale to edit. |
[in] | owner | (spg.VariableList) The owner of the variable we're editing. |
◆ CancelButton_Click()
void cpg.VariableEditor.CancelButton_Click |
( |
object |
sender, |
|
|
RoutedEventArgs |
e |
|
) |
| |
|
inlineprivate |
Callback for when the 'cancel' button is pressed. this closes the editor and sets the dialg result to false.
- Parameters
-
[in] | sender | (object) The sender of the event. |
[in] | e | (RoutedEventArgs) Arguments send with the event |
◆ List_editor_OnListItemChanged()
void cpg.VariableEditor.List_editor_OnListItemChanged |
( |
ListEditor |
sender, |
|
|
string |
new_value, |
|
|
string |
old_value |
|
) |
| |
|
inlineprivate |
Callback for when the value of a list item changes.
- Parameters
-
[in] | sender | (ListEditor) The list editor that edited the variable |
[in] | new_value | (string) The new value of the list item. |
[in] | old_value | (string) The previous value of the list item. |
◆ name_value_FinalTextChanged()
Callback for when the name of the varable was changed.
- Parameters
-
◆ OkButton_Click()
void cpg.VariableEditor.OkButton_Click |
( |
object |
sender, |
|
|
RoutedEventArgs |
e |
|
) |
| |
|
inlineprivate |
Callback for when the 'ok' button is pressed. this closes the editor and sets the dialg result to true.
- Parameters
-
[in] | sender | (object) The sender of the event. |
[in] | e | (RoutedEventArgs) Arguments send with the event |
◆ SetupVariable()
void cpg.VariableEditor.SetupVariable |
( |
VariableTypes |
type | ) |
|
|
inlineprivate |
Sets up a new variable.
- Parameters
-
[in] | type | (cpg.VariableTypes) The type of variable to be created. |
◆ type_selector_SelectionChanged()
void cpg.VariableEditor.type_selector_SelectionChanged |
( |
object |
sender, |
|
|
SelectionChangedEventArgs |
e |
|
) |
| |
|
inlineprivate |
Callback for when the type the variable was changed.
- Parameters
-
[in] | sender | (object) The sender of the event. |
[in] | e | (SelectionChangedEventArgs) Information about how the selection changed. |
◆ ValidateString()
bool cpg.VariableEditor.ValidateString |
( |
string |
value | ) |
|
|
inlineprivate |
Checks if a string contaains an invalid charcater. Used for validating the name of varibles.
- Parameters
-
[in] | value | (string) The string to be validated. |
- Returns
- (bool) results in true if the string does not contain any invalid characters.
The documentation for this class was generated from the following file:
- D:/PerforceLocal/Workspaces/CrossPlatformGenerator/cross-platform-generator/vs/cross-platform-generator/editors/variable-editor.xaml.cs