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.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <HEKGuerilla/components/tags/tags.h>
4 
5 #include "../BlamEditorDocument.h"
6 
7 #ifndef KEYSTONE
8 #define KEYSTONE
9 #endif
10 
15 {
16 public:
17 
18  BlamTag* tag = nullptr;
19  bool show_invisibles = false;
20  bool show_unused_fields = true;
21  bool is_compiled = false;
22  bool live_update = false;
23  bool needs_update = false;
24 
34  BlamEditorDocument_Tag(BlamEditorWindow* _window, BlamTag* _tag, std::string _editor_id = "");
35 
42  BlamEditorDocument_Tag(BlamTag* _tag);
43 
44  bool Close() override;
45  void Save() override;
46  void SaveAs() override;
47  void FlagAsModified(bool new_modified_state = true) override;
48  bool ConfirmClose(std::string confirmation_message = "") override;
49 };
BlamEditorDocument::mdi_default_height
int mdi_default_height
The default starting height of the document's MDI window.
Definition: BlamEditorDocument.h:64
BlamEditorDocument::mdi_default_width
int mdi_default_width
The default starting width of the document's MDI window.
Definition: BlamEditorDocument.h:63
BlamEditorDocument_Tag
Class representing a Tag document.
Definition: tag.h:14
BlamEditorDocument::GetDocumentType
BlamEditorDocumentType GetDocumentType()
Retrieves the type of this document.
Definition: BlamEditorDocument.cpp:18
editor_data.h
BlamEditorDocument::file_path
std::string file_path
The path to the file associated with this document.
Definition: BlamEditorDocument.h:60
BlamEditorDocument_Tag::FlagAsModified
void FlagAsModified(bool new_modified_state=true) override
Flags the document as being modified.
Definition: tag.cpp:141
custom_tag_editor.h
BlamEditorDocument_Tag::show_invisibles
bool show_invisibles
Whether or not to show invisible (hidden) fields in the editor.
Definition: tag.h:19
BlamEditorDocumentType
BlamEditorDocumentType
Enumerator containing all possible editor document types.
Definition: BlamEditorDocument.h:23
BlamEditorDocument::document_title
std::string document_title
The title of this document.
Definition: BlamEditorDocument.h:51
BlamEditorDocument_Tag::ConfirmClose
bool ConfirmClose(std::string confirmation_message="") override
Called immediately before closing a document.
Definition: tag.cpp:147
BlamEditorDocument_Tag::SaveAs
void SaveAs() override
Attempts to save the document, prompting the user to save as a new file.
Definition: tag.cpp:117
BlamKeystone::TagHasCustomEditors
KEYSTONE bool TagHasCustomEditors(BlamTag *tag)
Definition: custom_tag_editor.cpp:21
tag_editor
The tag editor widget.
Definition: tag_editor.h:18
tag_editor.h
BlamEditorWindow.h
BlamEditorDocumentType::Tag
@ Tag
Indicates the document represents a tag file.
BlamEditorDocument_Tag::is_compiled
bool is_compiled
Whether or not this tag was loaded from a compiled/binary tag, rather than a decompiled/XML tag.
Definition: tag.h:21
BlamEditorDocument_Tag::Save
void Save() override
Attempts to save the document, replacing the original file.
Definition: tag.cpp:87
BlamEditorDocument::document_context
std::string document_context
The context of this document. Will generally be a project or tag folder.
Definition: BlamEditorDocument.h:61
BlamKeystone::CreateCustomTagEditor
KEYSTONE CustomTagEditor * CreateCustomTagEditor(BlamTag *tag, std::string editor_id)
Definition: custom_tag_editor.cpp:56
BlamEditorDocument
Interface class that any types of editor documents inherit from.
Definition: BlamEditorDocument.h:39
BlamEditorDocument_Tag::Close
bool Close() override
Closes the document and releases any resources being used by it.
Definition: tag.cpp:70
BlamEditorDocument_Tag::needs_update
bool needs_update
Whether or not this tag needs to be updated in-engine. Ignored if live_update is false.
Definition: tag.h:23
BlamEditorWindow
Interface class that all main editing tool windows inherit from.
Definition: BlamEditorWindow.h:34
tag.h
BlamEditorDocument_Tag::BlamEditorDocument_Tag
BlamEditorDocument_Tag(BlamEditorWindow *_window, BlamTag *_tag, std::string _editor_id="")
Constructs a new Tag document.
Definition: tag.cpp:17
engine.h
BlamEditorDocument_Tag::tag
BlamTag * tag
The tag associated with this document.
Definition: tag.h:18
BlamKeystone::Engine::GetEngineActiveState
KEYSTONE bool GetEngineActiveState()
Checks whether or not the engine is currently running.
Definition: engine.cpp:117
BlamEditorDocument::Close
virtual bool Close()
Closes the document and releases any resources being used by it.
Definition: BlamEditorDocument.cpp:178
BlamEditorDocument_Tag::live_update
bool live_update
Whether or not this tag should be continuously updated ingame for realtime editing.
Definition: tag.h:22
BlamEditorDocument_Tag::show_unused_fields
bool show_unused_fields
Whether or not to show unused fields in the editor.
Definition: tag.h:20
BlamEditorDocument::ui
BlamEditorDocumentWidget * ui
The GUI widget associated with this document.
Definition: BlamEditorDocument.h:52
BlamKeystone::EditorData::GetDocumentTypeConfiguration
KEYSTONE BlamConfigurationFile * GetDocumentTypeConfiguration(BlamEditorDocumentType type)
Attempts to locate the configuration file for the specified document type.
Definition: document_config.cpp:108