StyleEditorPanel¶Main panel for the editor portion of the StyleEditor
Methods Summary¶| __init__ | |
| ChangeStyleSheet | Change the style sheet that is being edited |
| DiffStyles | Checks if the current style set is different from the |
| EnableSettings | Enables/Disables all settings controls |
| GenerateStyleSheet | Generates a style sheet from the dialogs style data |
| OnCheck | Update Model for changes to styling settings |
| OnChoice | Update Model for changes to styling settings |
| OnColor | Handles color selection events |
| OnListBox | Catches the selection of a style tag in the listbox |
| OnTextRegion | Processes clicks in the preview control and sets the style |
| ResetTransientStyleData | Reset the transient style data to mark the changes as not dirty |
| SetBlankStyle | Clear all the transient style data to a blank style set |
| UpdateSettingsPane | Updates all the settings controls to hold the |
| UpdateStyleSet | Updates the value of the style tag to reflect any changes |
Class API¶Main panel for the editor portion of the StyleEditor
Change the style sheet that is being edited
| Parameters: | sheet_name – style sheet name (without extension) |
|---|
Checks if the current style set is different from the original set. Used internally to check if a save prompt needs to be brought up. Returns True if the style sets are different.
| Returns: | whether style set has been modified or not |
|---|---|
| Returns: | bool |
Enables/Disables all settings controls
| Parameters: | enable – whether to enable/disable settings controls |
|---|
Generates a style sheet from the dialogs style data
| Returns: | The dictionary of StyleItem in self.styles_new transformed into a string that is in Editra Style Sheet format. |
|---|
Update Model for changes to styling settings
Update Model for changes to styling settings
Handles color selection events
| Parameters: | evt – event that called this handler |
|---|
Catches the selection of a style tag in the listbox and updates the style window appropriately.
| Parameters: | evt – event that called this handler |
|---|
Processes clicks in the preview control and sets the style selection in the style tags list to the style tag of the area the cursor has moved into.
| Parameters: | evt – event that called this handler |
|---|
Reset the transient style data to mark the changes as not dirty
Clear all the transient style data to a blank style set
Updates all the settings controls to hold the values of the selected tag.
| Parameters: | syntax_data – syntax data set to configure panel from |
|---|
Updates the value of the style tag to reflect any changes made in the settings controls.
| Parameters: | id – identifier of the style tag in the list |
|---|