Elaztek Developer Hub
Blamite Game Engine - Keystone  00384.05.11.23.0458.blamite
A library that enables the use of Qt in Blamite's editing tools.
color.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/color/color.h>
5 
7 #include "ui_color.h"
8 
10 {
11  Q_OBJECT
12 
13 private:
14 
15  Ui::color ui;
16  bool is_template = false;
17  BlamPluginField* template_field = nullptr;
18 
19  void update_color_button();
20  void color_text_field_edit_helper(QString text, QLineEdit* edit_control, byte* out_value);
21 
22 public:
23 
24  ui_color_field(BlamTagField_Color* _field, BlamEditorDocument_Tag* _document, QWidget* parent = Q_NULLPTR);
25  ui_color_field(BlamPluginField* _template, BlamEditorDocument_Tag* _document);
27 
28 private slots:
29  void TextFieldChanged_Red(QString text);
30  void TextFieldChanged_Green(QString text);
31  void TextFieldChanged_Blue(QString text);
32  void TextFieldChanged_Alpha(QString text);
33 
34  void ColorPickerButtonClicked();
35 };
block.h
BlamEditorDocument_Tag
Class representing a Tag document.
Definition: tag.h:15
editor_data.h
BlamEditorDocument_Tag::FlagAsModified
void FlagAsModified(bool new_modified_state=true)
Definition: tag.cpp:126
ui_color_field::~ui_color_field
~ui_color_field()
Definition: color.cpp:76
BlamEditorTagFieldControl::document
BlamEditorDocument_Tag * document
The document this field belongs to.
Definition: tag_fields.h:24
BlamEditorTagFieldControl
Interface used as a base for all tag field controls.
Definition: tag_fields.h:18
ui_color_field::ui_color_field
ui_color_field(BlamTagField_Color *_field, BlamEditorDocument_Tag *_document, QWidget *parent=Q_NULLPTR)
Definition: color.cpp:11
BlamTagDesignerFieldMenu
Class representing the Tag Designer 'Add Field' menu.
Definition: field_menu.h:17
field_menu.h
BlamEditorTagFieldControl::design_mode
bool design_mode
Whether or not this field is currently in design mode.
Definition: tag_fields.h:25
tag.h
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
color.h
BlamEditorTagFieldControl::field
BlamTagField * field
The field associated with this control.
Definition: tag_fields.h:23
tag_fields.h
BlamEditorTagFieldControl::designer
tag_designer * designer
The active tag designer that owns this control. Only used when design_mode is enabled.
Definition: tag_fields.h:27
ui_color_field
Definition: color.h:9