 |
Blamite Game Engine - Keystone
00352.03.28.22.1329.blamite
A library that enables the use of Qt in Blamite's editing tools.
|
Go to the documentation of this file.
4 #include <qmdisubwindow.h>
6 #include <Strings/components/settings/config/config.h>
108 virtual bool Close();
std::string custom_icon_id
The resource ID of the custom icon. Only used when override_icon is true.
Definition: BlamEditorDocument.h:55
BlamEditorDocumentType GetDocumentType()
Retrieves the type of this document.
Definition: BlamEditorDocument.cpp:16
BlamEditorWindow * parent_window
The parent window that owns this document.
Definition: BlamEditorDocument.h:46
BlamEditorDocumentType
Enumerator containing all possible editor document types.
Definition: BlamEditorDocument.h:23
std::string document_title
The title of this document.
Definition: BlamEditorDocument.h:48
KEYSTONE void UnloadDocumentConfigurations()
Unloads all document type configurations.
Definition: document_config.cpp:90
virtual bool ConfirmClose()
Called immediately before closing a document.
Definition: BlamEditorDocument.h:96
Class representing a Blamite Editor Theme.
Definition: themes.h:47
BlamEditorDocument(BlamEditorWindow *_window, BlamEditorDocumentType doctype)
Constructs a new BlamEditorDocument.
Definition: BlamEditorDocument.cpp:10
void UpdateDefaultIcon()
Updates the document's icon.
Definition: BlamEditorDocument.cpp:109
bool modified
Whether or not the document has been modified.
Definition: BlamEditorDocument.h:51
@ Tag
Indicates the document represents a tag file.
BlamEditorDocument * document
The document associated with this widget.
Definition: BlamEditorDocument.h:128
KEYSTONE void LoadDocumentConfigurations()
Loads all document type configurations.
Definition: document_config.cpp:83
virtual void SaveAs()
Attempts to save the document, prompting the user to save as a new file.
Definition: BlamEditorDocument.h:118
virtual void FlagAsModified()
Flags the document as being modified.
Definition: BlamEditorDocument.h:101
virtual void OnUnfocused()
Definition: BlamEditorDocument.h:122
BlamEditorDocumentSubWindow(QWidget *parent=nullptr)
Definition: BlamEditorDocument.h:130
virtual void Save()
Attempts to save the document, replacing the original file.
Definition: BlamEditorDocument.h:113
Interface class that any types of editor documents inherit from.
Definition: BlamEditorDocument.h:36
std::string custom_icon_group
The resource group containing the custom icon name. Only used when override_icon is true.
Definition: BlamEditorDocument.h:54
KEYSTONE std::map< BlamEditorDocumentType, BlamConfigurationFile * > GetDocumentTypeConfigurations()
Retrieves the list of loaded document type configuration files.
Definition: document_config.cpp:116
virtual void OnThemeChange(BlamEditorTheme *new_theme)
Called when the active theme is changed.
Definition: BlamEditorDocument.h:77
void Show()
Shows the document within the parent window.
Definition: BlamEditorDocument.cpp:21
bool loaded
Whether or not the document was able to be successfully loaded.
Definition: BlamEditorDocument.h:50
Interface class that all main editing tool windows inherit from.
Definition: BlamEditorWindow.h:47
@ Unspecified
Indicates the document type is unspecified or invalid.
void closeEvent(QCloseEvent *closeEvent)
Definition: BlamEditorDocumentSubWindow.cpp:5
#define KEYSTONE
Definition: BlamEditorDocument.h:11
Definition: BlamEditorDocument.h:125
virtual bool Close()
Closes the document and releases any resources being used by it.
Definition: BlamEditorDocument.cpp:77
Namespace contianing functions for accessing common editor data.
Definition: BlamEditorDocument.h:148
bool override_icon
Whether or not this document uses a custom icon other than the application default.
Definition: BlamEditorDocument.h:53
virtual void OnFocused()
Definition: BlamEditorDocument.h:120
BlamEditorDocumentWidget * ui
The GUI widget associated with this document.
Definition: BlamEditorDocument.h:49
KEYSTONE BlamConfigurationFile * GetDocumentTypeConfiguration(BlamEditorDocumentType type)
Attempts to locate the configuration file for the specified document type.
Definition: document_config.cpp:106