Elaztek Developer Hub
Blamite Game Engine - Keystone  00305.01.23.21.0442.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 <guerilla/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 private:
24  Ui::ui_tag_block ui;
25  BlamTagField_Block* field = nullptr;
26  int active_entry_index = -1;
27 
28  std::vector<KeystoneTagFieldControl*> fields_ui;
29 
30  void ClearEntryUI();
31  void GenerateEntryUI(int index);
32 
33 public:
34  ui_tag_block_field(BlamTagField_Block* _field, QWidget *parent = Q_NULLPTR);
36 };
KeystoneTagFieldControl
Interface used as a base for all tag field controls.
Definition: KeystoneTagFieldControl.h:10
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:7
ui_tag_block_field::~ui_tag_block_field
~ui_tag_block_field()
Definition: block.cpp:48