 |
Blamite Game Engine - Keystone
00433.02.16.25.2127.blamite
A library that enables the use of Qt in Blamite's editing tools.
|
Go to the documentation of this file.
3 #include <HEKGuerilla/components/tags/fields/dataref/dataref.h>
6 #include "ui_dataref.h"
15 BlamTagField_Dataref* field =
nullptr;
16 BlamPluginField* template_field =
nullptr;
17 bool is_template =
false;
18 bool ui_refreshing =
false;
20 void RefreshFieldUI();
35 void OnLineTextChanged();
36 void OnDataTextChanged();
37 void OnSizeTextChanged(QString text);
38 void OnViewAsSelectionChanged(
int new_index);
40 void LabelEditEnterPressed();
42 void HexEditorButtonClicked();
44 void HexEditorMenuItemClicked();
45 void CodeEditorMenuItemClicked();
Class representing a Tag document.
Definition: tag.h:15
~ui_dataref_field()
Definition: dataref.cpp:65
void FlagAsModified(bool new_modified_state=true) override
Flags the document as being modified.
Definition: tag.cpp:130
bool eventFilter(QObject *object, QEvent *event)
Definition: dataref.cpp:253
Font Awesome Free License Font Awesome Free is free
Definition: LICENSE.txt:4
BlamEditorDocument_Tag * document
The document this field belongs to.
Definition: tag_fields.h:24
Interface used as a base for all tag field controls.
Definition: tag_fields.h:18
virtual void FlagAsModified(bool new_modified_state=true)
Flags the document as being modified.
Definition: BlamEditorDocument.cpp:79
@ Tag
Indicates the document represents a tag file.
drag_list * drag_drop_list
The active drag list that owns this control. Only used when design_mode is enabled.
Definition: tag_fields.h:26
void * GetDataAddress()
Definition: HexEditorDialog.cpp:65
ui_dataref_field(BlamTagField_Dataref *_field, BlamEditorDocument_Tag *_document, QWidget *parent=Q_NULLPTR)
Definition: dataref.cpp:12
void SetDesignNameEditState(bool edit_state, bool save_changes=true) override
Enables or disables the label edit field for the current field.
Definition: dataref.cpp:363
int64_t GetDataSize()
Definition: HexEditorDialog.cpp:70
BlamDatarefValueHintType GetDatarefValueHintType()
Definition: CodeEditorDialog.cpp:27
bool IsCancelled()
Definition: HexEditorDialog.cpp:37
A basic interface class which can be used for drag and drop behaviors.
Definition: drag_container.h:19
Definition: HexEditorDialog.h:12
bool design_mode
Whether or not this field is currently in design mode.
Definition: tag_fields.h:25
A dialog used for general-purpose text and code editing.
Definition: CodeEditorDialog.h:18
bool IsCancelled()
Checks if the dialog was cancelled.
Definition: CodeEditorDialog.cpp:32
std::string GetText()
Retrieves the updated text.
Definition: CodeEditorDialog.cpp:22
tag_designer * designer
The active tag designer that owns this control. Only used when design_mode is enabled.
Definition: tag_fields.h:27
void SetDesignModeActive(drag_list *_drag_list, tag_designer *_designer) override
Instructs the field to be editable as a designer field.
Definition: dataref.cpp:340
void SetupUI() override
Configures the UI for the current field.
Definition: dataref.cpp:394
Class representing the Tag Designer.
Definition: tag_designer.h:24
KEYSTONE BlamConfigurationFile * GetDocumentTypeConfiguration(BlamEditorDocumentType type)
Attempts to locate the configuration file for the specified document type.
Definition: document_config.cpp:107