Elaztek Developer Hub
Blamite Game Engine - Keystone  00453.06.08.26.0624.blamite
A library that enables the use of Qt in Blamite's editing tools.
int.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <HEKGuerilla/components/tags/fields/int/int.h>
4 #include <qspinbox.h>
5 
7 #include "../generic/generic.h"
8 
15 {
16 private slots:
22  void textChanged(QString text);
23 
24 private:
25  QLineEdit* input_control = nullptr;
26  QDoubleSpinBox* input_control_sb = nullptr;
27 
28 public:
34  ui_int_field(BlamTagField_Int* _field, BlamEditorDocument_Tag* _document);
35 
41  ui_int_field(BlamPluginField* _template, BlamEditorDocument_Tag* _document);
42 
43  ~ui_int_field();
44 
45  void SetupUI() override;
46 };
BlamEditorDocument_Tag
Class representing a Tag document.
Definition: tag.h:14
ui_int_field::~ui_int_field
~ui_int_field()
Definition: int.cpp:62
BlamEditorDocument_Tag::FlagAsModified
void FlagAsModified(bool new_modified_state=true) override
Flags the document as being modified.
Definition: tag.cpp:141
BlamEditorTagFieldControl::FieldChanged
void FieldChanged(BlamEditorTagFieldControl *_field)
BlamEditorTagFieldControl::document
BlamEditorDocument_Tag * document
The document this field belongs to.
Definition: tag_fields.h:27
ui_int_field
An integer input field.
Definition: int.h:14
ui_generic_field::template_field
BlamPluginField * template_field
The plugin field associated with this control.
Definition: generic.h:35
BlamEditorDocumentType::Tag
@ Tag
Indicates the document represents a tag file.
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_int_field::ui_int_field
ui_int_field(BlamTagField_Int *_field, BlamEditorDocument_Tag *_document)
Initializes a new Int field.
Definition: int.cpp:8
ui_generic_field::is_template
bool is_template
Whether or not this field is displaying as a template.
Definition: generic.h:36
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:157
ui_int_field::SetupUI
void SetupUI() override
Configures the UI for the current field.
Definition: int.cpp:128
tag_fields.h
int.h
BlamKeystone::EditorData::GetDocumentTypeConfiguration
KEYSTONE BlamConfigurationFile * GetDocumentTypeConfiguration(BlamEditorDocumentType type)
Attempts to locate the configuration file for the specified document type.
Definition: document_config.cpp:108