![]() |
Blamite Game Engine - Keystone
00386.06.16.23.0646.blamite
A library that enables the use of Qt in Blamite's editing tools.
|
Base class for all editor tool windows. More...
#include <BlamEditorToolWindow.h>
Public Member Functions | |
BlamEditorToolWindow (BlamEditorToolWindowType _window_type) | |
Constructs a new tool window. More... | |
~BlamEditorToolWindow () | |
Releases a tool window. More... | |
BlamEditorToolWindowType | GetToolWindowType () |
Retrieves the type of tool window that this tool window represents. More... | |
void | LoadConfig () |
Loads or creates the configuration file for this tool window. More... | |
virtual void | OnThemeChange (BlamEditorTheme *new_theme) |
Called when the active theme is changed. More... | |
virtual void | OnToolOpen () |
Called when the tool window is being opened. More... | |
virtual void | OnToolClose () |
Called when the tool window is being closed. More... | |
void | closeEvent (QCloseEvent *event) |
Overrides the close event. More... | |
void | OnDockAreaChanged (Qt::DockWidgetArea area) |
Called when the dock area of the tool window is changed. More... | |
Qt::DockWidgetArea | GetDockWidgetArea () |
Public Attributes | |
std::string | config_filename = "" |
The name of the configuration filename. More... | |
BlamConfigurationFile * | config = nullptr |
The configuration file for this tool window. Not always used. More... | |
Protected Attributes | |
BlamEditorToolWindowType | window_type = BlamEditorToolWindowType::Unspecified |
The tool window type. More... | |
Qt::DockWidgetArea | dock_position = Qt::DockWidgetArea::LeftDockWidgetArea |
Base class for all editor tool windows.
Tool windows refer to any dockable window within the editing kit. The functionality of these can vary widely, and serve as the primary way to interact with the editing kit.
BlamEditorToolWindow::BlamEditorToolWindow | ( | BlamEditorToolWindowType | _window_type | ) |
Constructs a new tool window.
_window_type | - The type of the new tool window. |
BlamEditorToolWindow::~BlamEditorToolWindow | ( | ) |
Releases a tool window.
This will ensure that the parent window no longer lists this window as an open tool window.
void BlamEditorToolWindow::closeEvent | ( | QCloseEvent * | event | ) |
Overrides the close event.
This will stop any default window close functionality and will instead instruct the parent window to close the tool window itself - preventing a scenario where the tool window is closed and unable to be reopened later.
Qt::DockWidgetArea BlamEditorToolWindow::GetDockWidgetArea | ( | ) |
BlamEditorToolWindowType BlamEditorToolWindow::GetToolWindowType | ( | ) |
Retrieves the type of tool window that this tool window represents.
void BlamEditorToolWindow::LoadConfig | ( | ) |
Loads or creates the configuration file for this tool window.
void BlamEditorToolWindow::OnDockAreaChanged | ( | Qt::DockWidgetArea | area | ) |
Called when the dock area of the tool window is changed.
area | - The new dock area of the tool window. |
|
inlinevirtual |
Called when the active theme is changed.
new_theme | - The newly applied theme. |
|
inlinevirtual |
Called when the tool window is being closed.
|
inlinevirtual |
Called when the tool window is being opened.
Reimplemented in BlamEditorToolWindow_ExplorerBar.
BlamConfigurationFile* BlamEditorToolWindow::config = nullptr |
The configuration file for this tool window. Not always used.
std::string BlamEditorToolWindow::config_filename = "" |
The name of the configuration filename.
|
protected |
|
protected |
The tool window type.
See BlamEditorToolWindowType for details.