 |
Blamite Game Engine - Keystone
00433.02.16.25.2127.blamite
A library that enables the use of Qt in Blamite's editing tools.
|
Go to the documentation of this file.
3 #include <HEKGuerilla/components/tags/tags.h>
5 #include "../BlamEditorDocument.h"
27 bool Close()
override;
int mdi_default_height
The default starting height of the document's MDI window.
Definition: BlamEditorDocument.h:63
int mdi_default_width
The default starting width of the document's MDI window.
Definition: BlamEditorDocument.h:62
std::string file_path
The path to the file associated with this document.
Definition: BlamEditorDocument.h:59
std::map< BlamEditorDocumentType, BlamConfigurationFile * > document_type_configs
Definition: document_config.cpp:10
BlamEditorWindowType GetEditorWindowType()
Retrieves the type of the editor window.
Definition: BlamEditorWindow.cpp:124
Font Awesome Free License Font Awesome Free is free
Definition: LICENSE.txt:4
BlamEditorDocumentType
Enumerator containing all possible editor document types.
Definition: BlamEditorDocument.h:23
std::string document_title
The title of this document.
Definition: BlamEditorDocument.h:50
KEYSTONE void UnloadDocumentConfigurations()
Unloads all document type configurations.
Definition: document_config.cpp:91
@ Sapien
The editor window is the main window for Sapien (see #sapien_main_window).
virtual void FlagAsModified(bool new_modified_state=true)
Flags the document as being modified.
Definition: BlamEditorDocument.cpp:79
void * binary_address
Definition: file.h:18
void Save() override
Attempts to save the document, replacing the original file.
Definition: file.cpp:152
@ TagDesigner
Special document type used for the Tag Designer window.
@ Tag
Indicates the document represents a tag file.
BlamEditorDocument * document
The document associated with this widget.
Definition: BlamEditorDocument.h:157
BlamEditorWindowType
Enumerator used to identify the type of the main editor window.
Definition: keystone_api.h:53
KEYSTONE void LoadDocumentConfigurations()
Loads all document type configurations.
Definition: document_config.cpp:83
bool Close() override
Closes the document and releases any resources being used by it.
Definition: file.cpp:137
bool is_binary
Definition: file.h:17
bool is_new
Definition: file.h:21
bool is_plaintext_file(std::string file_path)
Definition: file.cpp:18
KEYSTONE BlamEditorWindow * GetMainEditorWindow()
Retrieves the main editor window.
Definition: editor_data.cpp:34
@ Foundry
The editor window is the main window for Foundry (see foundry_main_window).
Interface class that any types of editor documents inherit from.
Definition: BlamEditorDocument.h:38
void load_document_config(BlamEditorDocumentType type, std::string filename)
Definition: document_config.cpp:12
int64_t binary_size
Definition: file.h:19
KEYSTONE std::map< BlamEditorDocumentType, BlamConfigurationFile * > GetDocumentTypeConfigurations()
Retrieves the list of loaded document type configuration files.
Definition: document_config.cpp:117
Interface class that all main editing tool windows inherit from.
Definition: BlamEditorWindow.h:34
void closeEvent(QCloseEvent *closeEvent)
Definition: BlamEditorDocumentSubWindow.cpp:5
void SaveAs() override
Attempts to save the document, prompting the user to save as a new file.
Definition: file.cpp:181
virtual bool Close()
Closes the document and releases any resources being used by it.
Definition: BlamEditorDocument.cpp:178
Class representing a File document.
Definition: file.h:14
@ Tool
The editor window is the GUI for Tool (see tool_gui_window).
BlamEditorDocument_File(BlamEditorWindow *_window, std::string _file_path)
Definition: file.cpp:63
@ File
Indicates the document represents a generic file.
@ Guerilla
The editor window is the main window for Guerilla (see guerilla_window).
BlamEditorDocumentWidget * ui
The GUI widget associated with this document.
Definition: BlamEditorDocument.h:51
KEYSTONE BlamConfigurationFile * GetDocumentTypeConfiguration(BlamEditorDocumentType type)
Attempts to locate the configuration file for the specified document type.
Definition: document_config.cpp:107