Elaztek Developer Hub
Blamite Game Engine - Keystone  00378.04.17.23.1319.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"
7 
8 #ifndef KEYSTONE
9 #define KEYSTONE
10 #endif
11 
16 {
17 
18 public:
19 
20  BlamTag* tag = nullptr;
21  bool show_invisibles = false;
22  bool show_unused_fields = true;
23  bool is_compiled = false;
24  bool live_update = false;
25  bool needs_update = false;
26 
33  BlamEditorDocument_Tag(BlamEditorWindow* _window, BlamTag* _tag);
34 
41  BlamEditorDocument_Tag(BlamTag* _tag);
42 
43  bool Close();
44 
45  void Save();
46 
47  void SaveAs();
48 
49  void FlagAsModified(bool new_modified_state = true);
50 
51  bool ConfirmClose();
52 };
BlamEditorDocument_Tag
Class representing a Tag document.
Definition: tag.h:15
BlamEditorDocument_Tag::show_invisibles
bool show_invisibles
Whether or not to show invisible (hidden) fields in the editor.
Definition: tag.h:21
BlamEditorDocument_Tag::Save
void Save()
Attempts to save the document, replacing the original file.
Definition: tag.cpp:72
tag_editor.h
BlamEditorDocument_Tag::Close
bool Close()
Closes the document and releases any resources being used by it.
Definition: tag.cpp:55
BlamEditorDocument_Tag::SaveAs
void SaveAs()
Attempts to save the document, prompting the user to save as a new file.
Definition: tag.cpp:102
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:23
BlamEditorDocument_Tag::ConfirmClose
bool ConfirmClose()
Called immediately before closing a document.
Definition: tag.cpp:215
BlamEditorDocument::FlagAsModified
virtual void FlagAsModified()
Flags the document as being modified.
Definition: BlamEditorDocument.h:105
BlamEditorDocument
Interface class that any types of editor documents inherit from.
Definition: BlamEditorDocument.h:37
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:25
BlamEditorDocument_Tag::BlamEditorDocument_Tag
BlamEditorDocument_Tag(BlamEditorWindow *_window, BlamTag *_tag)
Constructs a new Tag document.
Definition: tag.cpp:15
BlamEditorWindow
Interface class that all main editing tool windows inherit from.
Definition: BlamEditorWindow.h:48
BlamEditorDocument_Tag::tag
BlamTag * tag
The tag associated with this document.
Definition: tag.h:20
BlamEditorDocument_Tag::live_update
bool live_update
Whether or not this tag should be continuously updated ingame for realtime editing.
Definition: tag.h:24
BlamEditorDocument_Tag::show_unused_fields
bool show_unused_fields
Whether or not to show unused fields in the editor.
Definition: tag.h:22