Elaztek Developer Hub
Blamite Game Engine - Keystone  00390.07.02.23.1947.blamite
A library that enables the use of Qt in Blamite's editing tools.
vector.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <HEKGuerilla/components/tags/fields/vector/vector.h>
4 
6 #include "../generic/generic.h"
7 
14 {
15 private slots:
21  void TextChangedX(QString text);
22 
28  void TextChangedY(QString text);
29 
35  void TextChangedZ(QString text);
36 
42  void TextChangedW(QString text);
43 
44 private:
45  QLineEdit* input_control_x = nullptr;
46  QLineEdit* input_control_y = nullptr;
47  QLineEdit* input_control_z = nullptr;
48  QLineEdit* input_control_w = nullptr;
49 
50  void text_edit_helper(QString text, QLineEdit* input_control, float* out_value);
51 
52  void DeleteInputControls();
53 
54 public:
60  ui_vector_field(BlamTagField_Vector* _field, BlamEditorDocument_Tag* _document);
61 
67  ui_vector_field(BlamPluginField* _template, BlamEditorDocument_Tag* _document);
68 
70 
71  void SetupUI() override;
72 };
BlamEditorDocument_Tag
Class representing a Tag document.
Definition: tag.h:15
BlamEditorDocument_Tag::FlagAsModified
void FlagAsModified(bool new_modified_state=true) override
Flags the document as being modified.
Definition: tag.cpp:130
ui_vector_field::~ui_vector_field
~ui_vector_field()
Definition: vector.cpp:18
BlamEditorTagFieldControl::document
BlamEditorDocument_Tag * document
The document this field belongs to.
Definition: tag_fields.h:24
ui_generic_field::template_field
BlamPluginField * template_field
The plugin field associated with this control.
Definition: generic.h:35
ui_vector_field::SetupUI
void SetupUI() override
Configures the UI for the current field.
Definition: vector.cpp:105
ui_generic_field::ui
Ui::basic_tag_field ui
Definition: generic.h:24
ui_generic_field::field
BlamTagField * field
The field associated with this control.
Definition: generic.h:30
ui_vector_field
A vector input field.
Definition: vector.h:13
ui_generic_field::is_template
bool is_template
Whether or not this field is displaying as a template.
Definition: generic.h:36
vector.h
ui_vector_field::ui_vector_field
ui_vector_field(BlamTagField_Vector *_field, BlamEditorDocument_Tag *_document)
Initializes a new Vector field.
Definition: vector.cpp:8
ui_generic_field
A generic tag field control template.
Definition: generic.h:19
BlamKeystone::UI::TagFields::SetWidgetValidAppearance
KEYSTONE void SetWidgetValidAppearance(QWidget *widget, bool valid)
Applies the configured invalid field colors to a given widget.
Definition: tag_fields.cpp:146
tag_fields.h