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

A bitfield control. More...

#include <bitfield.h>

+ Inheritance diagram for ui_bitfield_field:
+ Collaboration diagram for ui_bitfield_field:

Public Member Functions

 ui_bitfield_field (BlamTagField_Bitfield *_field, BlamEditorDocument_Tag *_document)
 Constructs a new Bitfield control. More...
 
 ui_bitfield_field (BlamPluginField_Bitfield *_template, BlamEditorDocument_Tag *_document)
 
 ~ui_bitfield_field ()
 Cleans up any data used by the control. More...
 
void SetupUI () override
 Configures the UI for the current field. More...
 
- Public Member Functions inherited from ui_generic_field
 ui_generic_field (BlamTagField *_field, BlamEditorDocument_Tag *_document, QWidget *parent=Q_NULLPTR)
 
 ui_generic_field (BlamPluginField *_template, BlamEditorDocument_Tag *_document)
 
 ~ui_generic_field ()
 
bool eventFilter (QObject *object, QEvent *event) override
 
void SetDesignModeActive (drag_list *_drag_list, tag_designer *_designer) override
 Instructs the field to be editable as a designer field. More...
 
void SetDesignNameEditState (bool edit_state, bool save_changes=true) override
 Enables or disables the label edit field for the current field. More...
 
void SetupUI () override
 Configures the UI for the current field. More...
 
- Public Member Functions inherited from BlamEditorTagFieldControl
 BlamEditorTagFieldControl (QWidget *parent=Q_NULLPTR)
 

Additional Inherited Members

- Public Attributes inherited from ui_generic_field
BlamTagField * field = nullptr
 The field associated with this control. More...
 
BlamPluginField * template_field = nullptr
 The plugin field associated with this control. More...
 
bool is_template = false
 Whether or not this field is displaying as a template. More...
 
- 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...
 
- Protected Attributes inherited from ui_generic_field
Ui::basic_tag_field ui
 

Detailed Description

A bitfield control.

Bitfields contain a series of boolean values (aka 'bits').

Constructor & Destructor Documentation

◆ ui_bitfield_field() [1/2]

ui_bitfield_field::ui_bitfield_field ( BlamTagField_Bitfield *  _field,
BlamEditorDocument_Tag _document 
)

Constructs a new Bitfield control.

Parameters
_field- The field to generate a control for.
+ Here is the call graph for this function:

◆ ui_bitfield_field() [2/2]

ui_bitfield_field::ui_bitfield_field ( BlamPluginField_Bitfield *  _template,
BlamEditorDocument_Tag _document 
)
+ Here is the call graph for this function:

◆ ~ui_bitfield_field()

ui_bitfield_field::~ui_bitfield_field ( )

Cleans up any data used by the control.

Member Function Documentation

◆ SetupUI()

void ui_bitfield_field::SetupUI ( )
overridevirtual

Configures the UI for the current field.

This will rebuild the control from its original data, identical to what happens when a control is first created. This is ideal in cases where the original field has been updated externally and needs to have its changes reflected in the UI, such as the tag designer.

Parameters
resetting- Whether or not the widget is resetting after being initialized. If true, some additional operations may be performed to clear any existing data.

Reimplemented from BlamEditorTagFieldControl.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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