 |
Blamite Game Engine - Keystone
00326.06.27.21.0407.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 <qmainwindow.h>
63 std::vector<BlamEditorToolWindow*>
open_tool_windows = std::vector<BlamEditorToolWindow*>();
64 std::vector<BlamEditorDocument*>
open_documents = std::vector<BlamEditorDocument*>();
BlamEditorDocument * GetActiveDocument()
Get the current active document.
Definition: BlamEditorWindow.cpp:210
@ 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:32
@ 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:58
BlamEditorWindowType GetEditorWindowType()
Retrieves the type of the editor window.
Definition: BlamEditorWindow.cpp:34
@ Sapien
The editor window is the main window for Sapien (see sapien_main_window).
std::vector< BlamEditorDocument * > open_documents
The list of open documents.
Definition: BlamEditorWindow.h:64
BlamEditorDocumentType
Enumerator containing all possible editor document types.
Definition: BlamEditorDocument.h:21
void SetupWindow()
Prepares the main window layout.
Definition: BlamEditorWindow.cpp:15
BlamEditorWindow(BlamEditorWindowType window_type)
Constructs a new editor window.
Definition: BlamEditorWindow.cpp:10
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:18
BlamWorkspaceLayoutType
Enumerator used to specify the workspace layout method that an application should use.
Definition: BlamEditorWindow.h:20
void CloseToolWindow(BlamEditorToolWindowType tool_type)
Closes the specified tool window.
Definition: BlamEditorWindow.cpp:172
@ 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:197
bool OpenToolWindow(BlamEditorToolWindowType tool_type, Qt::DockWidgetArea position)
Opens the specified tool window within the main window.
Definition: BlamEditorWindow.cpp:136
std::vector< BlamEditorToolWindow * > open_tool_windows
The list of open tool windows.
Definition: BlamEditorWindow.h:63
virtual void OnThemeChange(BlamEditorTheme *new_theme)
Called when the active theme is changed.
Definition: BlamEditorWindow.cpp:39
Interface class that any types of editor documents inherit from.
Definition: BlamEditorDocument.h:33
QTabWidget * tab_area
The tab widget used for documents. Only set when using Tab layout.
Definition: BlamEditorWindow.h:61
SkinnableMdiArea * mdi_area
The MDI area used for documents. Only set when using MDI layout.
Definition: BlamEditorWindow.h:60
Interface class that all main editing tool windows inherit from.
Definition: BlamEditorWindow.h:47
void ToggleToolWindow(BlamEditorToolWindowType tool_type)
Toggles the specified tool window.
Definition: BlamEditorWindow.cpp:185
void SaveAllDocuments()
Attempts to save all open documents.
Definition: BlamEditorWindow.cpp:128
bool OpenDocument(std::string file_path, BlamTagTreeNode *tree_node, BlamEditorDocumentType doctype)
Attempts to open the specified document in the main window.
Definition: BlamEditorWindow.cpp:79
void CloseDocument(int index)
Attempts to close the specified document.
Definition: BlamEditorWindow.cpp:115
@ Foundry
The editor window is the main window for Foundry (see foundry_main_window).
@ Unspecified
Indicates that the editor window type is unknown. This should never happen.