Elaztek Developer Hub
Blamite Game Engine - Keystone  00385.05.12.23.0209.blamite
A library that enables the use of Qt in Blamite's editing tools.
ui_color_field Class Reference

#include <color.h>

+ Inheritance diagram for ui_color_field:
+ Collaboration diagram for ui_color_field:

Public Member Functions

 ui_color_field (BlamTagField_Color *_field, BlamEditorDocument_Tag *_document, QWidget *parent=Q_NULLPTR)
 
 ui_color_field (BlamPluginField *_template, BlamEditorDocument_Tag *_document)
 
 ~ui_color_field ()
 
void SetDesignModeActive (drag_list *_drag_list, tag_designer *_designer)
 Instructs the field to be editable as a designer field. More...
 
bool eventFilter (QObject *object, QEvent *event)
 
- Public Member Functions inherited from BlamEditorTagFieldControl
 BlamEditorTagFieldControl (QWidget *parent=Q_NULLPTR)
 
virtual void SetDesignNameEditState (bool edit_state, bool save_changes=true)
 Enables or disables the label edit field for the current field. More...
 

Additional Inherited Members

- Public Attributes inherited from BlamEditorTagFieldControl
BlamTagField * field = nullptr
 The field associated with this control. More...
 
BlamEditorDocument_Tagdocument = nullptr
 The document this field belongs to. More...
 
bool design_mode = false
 Whether or not this field is currently in design mode. More...
 
drag_listdrag_drop_list = nullptr
 The active drag list that owns this control. Only used when design_mode is enabled. More...
 
tag_designerdesigner = nullptr
 The active tag designer that owns this control. Only used when design_mode is enabled. More...
 

Constructor & Destructor Documentation

◆ ui_color_field() [1/2]

ui_color_field::ui_color_field ( BlamTagField_Color *  _field,
BlamEditorDocument_Tag _document,
QWidget *  parent = Q_NULLPTR 
)

◆ ui_color_field() [2/2]

ui_color_field::ui_color_field ( BlamPluginField *  _template,
BlamEditorDocument_Tag _document 
)

◆ ~ui_color_field()

ui_color_field::~ui_color_field ( )

Member Function Documentation

◆ eventFilter()

bool ui_color_field::eventFilter ( QObject *  object,
QEvent *  event 
)
+ Here is the call graph for this function:

◆ SetDesignModeActive()

void ui_color_field::SetDesignModeActive ( drag_list _drag_list,
tag_designer _designer 
)
virtual

Instructs the field to be editable as a designer field.

This slightly tweaks how the field is displayed, and provides additional functionality to allow the field to be altered within the Tag Designer.

Once design mode is activated, it cannot be deactivated.

Reimplemented from BlamEditorTagFieldControl.


The documentation for this class was generated from the following files: