 |
Blamite Game Engine - Keystone
00402.09.29.23.0627.blamite
A library that enables the use of Qt in Blamite's editing tools.
|
Go to the documentation of this file.
5 #include <HEKGuerilla/components/tags/tags.h>
6 #include <Strings/components/settings/config/config.h>
7 #include <qmainwindow.h>
64 std::vector<BlamEditorToolWindow*>
open_tool_windows = std::vector<BlamEditorToolWindow*>();
65 std::vector<BlamEditorDocument*>
open_documents = std::vector<BlamEditorDocument*>();
67 BlamConfigurationFile*
config =
nullptr;
Class representing a Tag document.
Definition: tag.h:15
Class representing a Game Window "document".
Definition: game_window.h:18
BlamEditorWindow * parent_window
The parent window that owns this document.
Definition: BlamEditorDocument.h:47
BlamEditorDocument * GetActiveDocument()
Get the current active document.
Definition: BlamEditorWindow.cpp:343
Class representing a Tag Designer "document".
Definition: tag_designer.h:20
@ GameWindow
Special document type used for the Game Viewport window.
@ Tool
The editor window is the GUI for Tool (see tool_gui_window).
BlamEditorWindowType
Enumerator used to identify the type of the main editor window.
Definition: BlamEditorWindow.h:33
@ Tabs
Sub-windows will be organized using tabs, similar to more modern editing tools.
BlamWorkspaceLayoutType workspace_type
The layout type the window is currently using.
Definition: BlamEditorWindow.h:59
QHash< QSourceHighliter::Token, QTextCharFormat > theme(QSourceHighliter::Themes)
Definition: qsourcehighliterthemes.cpp:63
BlamEditorWindowType GetEditorWindowType()
Retrieves the type of the editor window.
Definition: BlamEditorWindow.cpp:89
@ Sapien
The editor window is the main window for Sapien (see sapien_main_window).
std::string GetApplicationTitle()
Definition: BlamEditorWindow.cpp:406
std::vector< BlamEditorDocument * > open_documents
The list of open documents.
Definition: BlamEditorWindow.h:65
BlamEditorDocumentType
Enumerator containing all possible editor document types.
Definition: BlamEditorDocument.h:23
void SetupWindow()
Prepares the main window layout.
Definition: BlamEditorWindow.cpp:21
BlamEditorWindow(BlamEditorWindowType window_type)
Constructs a new editor window.
Definition: BlamEditorWindow.cpp:16
Class representing a Blamite Editor Theme.
Definition: themes.h:47
@ Guerilla
The editor window is the main window for Guerilla (see guerilla_window).
Wrapper class around a QMdiArea, made to simplify skinning.
Definition: SkinnableMdiArea.h:20
BlamWorkspaceLayoutType
Enumerator used to specify the workspace layout method that an application should use.
Definition: BlamEditorWindow.h:21
@ TagDesigner
Special document type used for the Tag Designer window.
@ Tag
Indicates the document represents a tag file.
KEYSTONE BlamEditorToolWindow * GetToolWindow(BlamEditorToolWindowType type)
Retrieves a desired tool window.
Definition: editor_data.cpp:37
void CloseToolWindow(BlamEditorToolWindowType tool_type)
Closes the specified tool window.
Definition: BlamEditorWindow.cpp:275
KEYSTONE BlamEditorTheme * GetActiveTheme()
Retrieves the currently selected theme.
Definition: themes.cpp:335
void UpdateDefaultIcon()
Definition: BlamEditorWindow.cpp:372
BlamConfigurationFile * config
The configuration file for this editor window.
Definition: BlamEditorWindow.h:67
@ MDI
Sub-windows will be organized using MDI (Multiple Document Interface).
bool IsToolWindowOpen(BlamEditorToolWindowType tool_type)
Checks if a given tool window type is open.
Definition: BlamEditorWindow.cpp:317
bool OpenToolWindow(BlamEditorToolWindowType tool_type, Qt::DockWidgetArea position)
Opens the specified tool window within the main window.
Definition: BlamEditorWindow.cpp:235
std::vector< BlamEditorToolWindow * > open_tool_windows
The list of open tool windows.
Definition: BlamEditorWindow.h:64
KEYSTONE BlamEditorTheme * GetTheme(std::string name)
Retrieves a theme.
Definition: themes.cpp:320
virtual void OnThemeChange(BlamEditorTheme *new_theme)
Called when the active theme is changed.
Definition: BlamEditorWindow.cpp:94
Interface class that any types of editor documents inherit from.
Definition: BlamEditorDocument.h:37
void CloseAllDocuments()
Closes all open documents.
Definition: BlamEditorWindow.cpp:216
QTabWidget * tab_area
The tab widget used for documents. Only set when using Tab layout.
Definition: BlamEditorWindow.h:62
SkinnableMdiArea * mdi_area
The MDI area used for documents. Only set when using MDI layout.
Definition: BlamEditorWindow.h:61
void Show()
Shows the document within the parent window.
Definition: BlamEditorDocument.cpp:22
bool loaded
Whether or not the document was able to be successfully loaded.
Definition: BlamEditorDocument.h:51
Interface class that all main editing tool windows inherit from.
Definition: BlamEditorWindow.h:48
@ Unspecified
Indicates the document type is unspecified or invalid.
void CloseAllToolWindows()
Closes all tool windows.
Definition: BlamEditorWindow.cpp:294
void ToggleToolWindow(BlamEditorToolWindowType tool_type)
Toggles the specified tool window.
Definition: BlamEditorWindow.cpp:305
void SaveAllDocuments()
Attempts to save all open documents.
Definition: BlamEditorWindow.cpp:227
virtual bool Close()
Closes the document and releases any resources being used by it.
Definition: BlamEditorDocument.cpp:158
bool OpenDocument(std::string file_path, BlamTagTreeNode *tree_node, BlamEditorDocumentType doctype)
Attempts to open the specified document in the main window.
Definition: BlamEditorWindow.cpp:99
void CloseDocument(int index)
Attempts to close the specified document.
Definition: BlamEditorWindow.cpp:203
@ Foundry
The editor window is the main window for Foundry (see foundry_main_window).
BlamEditorToolWindow * GetToolWindow(BlamEditorToolWindowType tool_type)
Definition: BlamEditorWindow.cpp:330
Class representing the Tag Designer.
Definition: tag_designer.h:24
@ Unspecified
Indicates that the editor window type is unknown. This should never happen.
KEYSTONE BlamConfigurationFile * GetDocumentTypeConfiguration(BlamEditorDocumentType type)
Attempts to locate the configuration file for the specified document type.
Definition: document_config.cpp:107