Elaztek Developer Hub
Blamite Game Engine - Keystone  00326.06.27.21.0407.blamite
A library that enables the use of Qt in Blamite's editing tools.
block.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QWidget>
4 #include <vector>
5 #include <HEKGuerilla/components/tags/fields/block/block.h>
6 
8 #include "ui_block.h"
9 
17 {
18  Q_OBJECT
19 
20 private slots:
21  void EntryChanged(int new_index);
22 
23  void btn_add_Click();
24  void btn_duplicate_Click();
25  void btn_insert_Click();
26  void btn_delete_Click();
27  void btn_delete_all_Click();
28  void btn_rename_Click();
29  void btn_expand_collapse_Click();
30 
31 private:
32  Ui::ui_tag_block ui;
33  BlamTagField_Block* field = nullptr;
34  BlamPluginField_Block* template_field = nullptr;
35 
36  int active_entry_index = -1;
37  bool collapsed = true;
38 
39  std::vector<KeystoneTagFieldControl*> fields_ui;
40  bool ui_ready = false;
41 
42  void ClearEntryUI();
43  void GenerateEntryUI(int index);
44 
45 public:
46  ui_tag_block_field(BlamTagField_Block* _field, QWidget *parent = Q_NULLPTR);
47  ui_tag_block_field(BlamPluginField_Block* _template, QWidget* parent = Q_NULLPTR);
49 };
KeystoneTagFieldControl
Interface used as a base for all tag field controls.
Definition: KeystoneTagFieldControl.h:9
ui_tag_block_field
A tag block control.
Definition: block.h:16
KeystoneTagFieldControl.h
ui_tag_block_field::ui_tag_block_field
ui_tag_block_field(BlamTagField_Block *_field, QWidget *parent=Q_NULLPTR)
Definition: block.cpp:9
ui_tag_block_field::~ui_tag_block_field
~ui_tag_block_field()
Definition: block.cpp:74