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

The tag editor widget. More...

#include <tag_editor.h>

+ Inheritance diagram for tag_editor:
+ Collaboration diagram for tag_editor:

Public Slots

void FieldChangedSlot (BlamEditorTagFieldControl *_field)
 

Signals

void FieldChanged (BlamEditorTagFieldControl *_field)
 

Public Member Functions

 tag_editor (QString tag_file_path, bool binary, BlamTagTreeNode *tag_node, QWidget *parent=Q_NULLPTR)
 Initializes a new tag editor control. More...
 
 tag_editor (BlamTag *_tag, QWidget *parent=Q_NULLPTR)
 Initializes a new tag editor control. More...
 
 tag_editor (BlamTag *_tag, BlamEditorDocument *_document, QWidget *parent=Q_NULLPTR)
 Initializes a new tag editor control. More...
 
 tag_editor (std::vector< BlamTagField * > _fields, QWidget *parent=Q_NULLPTR)
 Initializes a new tag editor contorl, in "basic mode". More...
 
 ~tag_editor ()
 
BlamTag * GetTag ()
 Retrieves the tag associated with this editor. More...
 
void GenerateTagEditorUI ()
 Generates the UI for tag editing. More...
 
- Public Member Functions inherited from BlamEditorDocumentWidget
 BlamEditorDocumentWidget (QWidget *parent=nullptr)
 

Additional Inherited Members

- Public Attributes inherited from BlamEditorDocumentWidget
BlamEditorDocumentdocument = nullptr
 The document associated with this widget. More...
 

Detailed Description

The tag editor widget.

This widget is used as a container for tag editing controls. It is used with both MDI and Tab layouts.

Constructor & Destructor Documentation

◆ tag_editor() [1/4]

tag_editor::tag_editor ( QString  tag_file_path,
bool  binary,
BlamTagTreeNode *  tag_node,
QWidget *  parent = Q_NULLPTR 
)

Initializes a new tag editor control.

Parameters
tag_file_path- Path to the tag file to create an editor for.
binary- Whether or not to load the tag as a binary tag. Requires a compatiable plugin.
+ Here is the call graph for this function:

◆ tag_editor() [2/4]

tag_editor::tag_editor ( BlamTag *  _tag,
QWidget *  parent = Q_NULLPTR 
)

Initializes a new tag editor control.

Parameters
_tag- The tag to create an editor for.
+ Here is the call graph for this function:

◆ tag_editor() [3/4]

tag_editor::tag_editor ( BlamTag *  _tag,
BlamEditorDocument _document,
QWidget *  parent = Q_NULLPTR 
)

Initializes a new tag editor control.

Parameters
_tag- The tag to create an editor for.
_document- The document this tag belongs to.
+ Here is the call graph for this function:

◆ tag_editor() [4/4]

tag_editor::tag_editor ( std::vector< BlamTagField * >  _fields,
QWidget *  parent = Q_NULLPTR 
)

Initializes a new tag editor contorl, in "basic mode".

Basic mode allows for more generic editing of tag fields, without requiring a full tag or document context. This can allow for more specialized editing of tag data.

Parameters
_fields- The list of fields to create a tag control from.
+ Here is the call graph for this function:

◆ ~tag_editor()

tag_editor::~tag_editor ( )

Member Function Documentation

◆ FieldChanged

void tag_editor::FieldChanged ( BlamEditorTagFieldControl _field)
signal
+ Here is the caller graph for this function:

◆ FieldChangedSlot

void tag_editor::FieldChangedSlot ( BlamEditorTagFieldControl _field)
slot
+ Here is the caller graph for this function:

◆ GenerateTagEditorUI()

void tag_editor::GenerateTagEditorUI ( )

Generates the UI for tag editing.

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

◆ GetTag()

BlamTag * tag_editor::GetTag ( )

Retrieves the tag associated with this editor.

Returns
Pointer to the tag associated with this editor. Will return nullptr in basic mode.

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