Elaztek Developer Hub
Blamite Game Engine - Keystone  00382.05.09.23.1235.blamite
A library that enables the use of Qt in Blamite's editing tools.
tagref.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <HEKGuerilla/components/settings/config/config.h>
4 #include <HEKGuerilla/components/tags/fields/tagref/tagref.h>
5 
7 #include "ui_tagref.h"
8 
9 class BlamTagTreeNode;
10 
12 {
13  Q_OBJECT
14 
15 private:
16 
17  Ui::tagref ui;
18 
19  BlamPluginField_Tagref* template_field = nullptr;
20  bool is_template = false;
21 
22  bool use_classic_ui = false;
23 
24  bool generating_class_list = false;
25  bool generating_tag_list = false;
26 
27  void RefreshTagClassSelectionUI();
28  void RefreshTagSelectionUI();
29 
30 public:
31 
32  BlamTagField_Tagref* field = nullptr;
33 
34  BlamTagTreeNode* GetReferencedTagNode();
35  BlamPlugin* GetSelectedClass();
36 
37  ui_tagref_field(BlamTagField_Tagref* _field, BlamEditorDocument_Tag* _document, QWidget* parent = Q_NULLPTR);
38  ui_tagref_field(BlamPluginField_Tagref* _template, BlamEditorDocument_Tag* _document);
40 
41 private slots:
42 
43  void btn_browse_Click();
44  void btn_open_Click();
45  void btn_import_Click();
46  void btn_search_Click();
47  void btn_clear_Click();
48 
49  void cbox_m_tag_dropdown_IndexChanged(int index);
50  void cbox_m_tag_class_IndexChanged(int index);
51 };
BlamEditorDocument_Tag
Class representing a Tag document.
Definition: tag.h:15
ui_tagref_field::GetSelectedClass
BlamPlugin * GetSelectedClass()
Definition: tagref.cpp:388
ui_tagref_field
Definition: tagref.h:11
ui_tagref_field::~ui_tagref_field
~ui_tagref_field()
Definition: tagref.cpp:112
BlamEditorTagFieldControl
Interface used as a base for all tag field controls.
Definition: tag_fields.h:18
ui_tagref_field::field
BlamTagField_Tagref * field
The field associated with this control.
Definition: tagref.h:32
ui_tagref_field::GetReferencedTagNode
BlamTagTreeNode * GetReferencedTagNode()
Definition: tagref.cpp:353
ui_tagref_field::ui_tagref_field
ui_tagref_field(BlamTagField_Tagref *_field, BlamEditorDocument_Tag *_document, QWidget *parent=Q_NULLPTR)
Definition: tagref.cpp:10
tag_fields.h