 |
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/settings/config/config.h>
4 #include <HEKGuerilla/components/tags/fields/tagref/tagref.h>
22 BlamPluginField_Tagref* template_field =
nullptr;
23 bool is_template =
false;
25 bool use_classic_ui =
false;
27 bool generating_class_list =
false;
28 bool generating_tag_list =
false;
30 void RefreshTagClassSelectionUI();
31 void RefreshTagSelectionUI();
35 BlamTagField_Tagref*
field =
nullptr;
51 void btn_browse_Click();
52 void btn_open_Click();
53 void btn_import_Click();
54 void btn_search_Click();
55 void btn_clear_Click();
57 void cbox_m_tag_dropdown_IndexChanged(
int index);
58 void cbox_m_tag_class_IndexChanged(
int index);
60 void LabelEditEnterPressed();
62 void SetupUI()
override;
void SetDesignModeActive(drag_list *_drag_list, tag_designer *_designer) override
Instructs the field to be editable as a designer field.
Definition: tagref.cpp:425
Class representing a Tag document.
Definition: tag.h:15
BlamPlugin * GetSelectedClass()
Definition: tagref.cpp:382
void FlagAsModified(bool new_modified_state=true) override
Flags the document as being modified.
Definition: tag.cpp:130
bool HasTag()
Definition: SelectTagDialog.cpp:62
void SetDesignNameEditState(bool edit_state, bool save_changes=true) override
Enables or disables the label edit field for the current field.
Definition: tagref.cpp:446
~ui_tagref_field()
Definition: tagref.cpp:57
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
bool GetResult()
Definition: TagSearchDialog.cpp:105
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.
Definition: TagSearchDialog.h:15
std::string GetTagClass()
Definition: SelectTagDialog.cpp:72
BlamTagField_Tagref * field
The field associated with this control.
Definition: tagref.h:35
std::string GetTagPath()
Definition: SelectTagDialog.cpp:67
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
KEYSTONE BlamEditorWindow * GetMainEditorWindow()
Retrieves the main editor window.
Definition: editor_data.cpp:34
Definition: SelectTagDialog.h:8
A basic interface class which can be used for drag and drop behaviors.
Definition: drag_container.h:19
bool eventFilter(QObject *object, QEvent *event)
Definition: tagref.cpp:397
bool design_mode
Whether or not this field is currently in design mode.
Definition: tag_fields.h:25
BlamTagTreeNode * GetReferencedTagNode()
Definition: tagref.cpp:347
KEYSTONE void SetWidgetValidAppearance(QWidget *widget, bool valid)
Applies the configured invalid field colors to a given widget.
Definition: tag_fields.cpp:157
BlamTagTreeNode * selected_tag
Definition: TagSearchDialog.h:28
ui_tagref_field(BlamTagField_Tagref *_field, BlamEditorDocument_Tag *_document, QWidget *parent=Q_NULLPTR)
Definition: tagref.cpp:13
bool OpenDocument(std::string file_path, BlamTagTreeNode *tree_node, BlamEditorDocumentType doctype)
Attempts to open the specified document in the main window.
Definition: BlamEditorWindow.cpp:134
tag_designer * designer
The active tag designer that owns this control. Only used when design_mode is enabled.
Definition: tag_fields.h:27
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