|
| ui_comment_field (QString title, QString explanation, QWidget *parent=Q_NULLPTR) |
|
| ui_comment_field (QString title, QString explanation, BlamCommentType comment_type, QWidget *parent=Q_NULLPTR) |
|
| ui_comment_field (BlamTagField *_field, BlamEditorDocument_Tag *_document, QWidget *parent=Q_NULLPTR) |
|
| ui_comment_field (BlamPluginField_Comment *_template, BlamEditorDocument_Tag *_document, QWidget *parent=Q_NULLPTR) |
|
| ~ui_comment_field () |
|
bool | eventFilter (QObject *object, QEvent *event) |
|
void | SetDesignModeActive (drag_list *_drag_list, tag_designer *_designer) override |
| Instructs the field to be editable as a designer field. More...
|
|
void | SetDesignNameEditState (bool edit_state, bool save_changes=true) override |
| Enables or disables the label edit field for the current field. More...
|
|
void | SetDesignExplanationEditState (bool edit_state, bool save_changes=true) |
|
void | SetupUI () override |
| Configures the UI for the current field. More...
|
|
| BlamEditorTagFieldControl (QWidget *parent=Q_NULLPTR) |
|
A comment field control.
Comments are used to display useful information within a tag layout.
Instructs the field to be editable as a designer field.
This slightly tweaks how the field is displayed, and provides additional functionality to allow the field to be altered within the Tag Designer.
Once design mode is activated, it cannot be deactivated.
Reimplemented from BlamEditorTagFieldControl.
void ui_comment_field::SetDesignNameEditState |
( |
bool |
edit_state, |
|
|
bool |
save_changes = true |
|
) |
| |
|
overridevirtual |
Enables or disables the label edit field for the current field.
When enabled, this will replace the field display label with a text input, allowing the user to rename the field. When disabled, this will hide the edit field and optionally save any changes made.
This only has any effect when design mode is enabled.
- Parameters
-
edit_state | - Whether or not the edit field should be enabled. |
save_changes | - Whether or not any changes from the text input should be saved. Defaults to true . |
Reimplemented from BlamEditorTagFieldControl.
void ui_comment_field::SetupUI |
( |
| ) |
|
|
overridevirtual |
Configures the UI for the current field.
This will rebuild the control from its original data, identical to what happens when a control is first created. This is ideal in cases where the original field has been updated externally and needs to have its changes reflected in the UI, such as the tag designer.
- Parameters
-
resetting | - Whether or not the widget is resetting after being initialized. If true, some additional operations may be performed to clear any existing data. |
Reimplemented from BlamEditorTagFieldControl.