Elaztek Developer Hub
Blamite Game Engine - Keystone  00382.05.09.23.1235.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 };
BlamEditorDocument_Tag
Class representing a Tag document.
Definition: tag.h:15
ui_color_field::~ui_color_field
~ui_color_field()
Definition: color.cpp:76
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
tag_fields.h
ui_color_field
Definition: color.h:9