Elaztek Developer Hub
Blamite Game Engine - Keystone  00326.06.27.21.0407.blamite
A library that enables the use of Qt in Blamite's editing tools.
BlamEditorToolWindow.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <qdockwidget.h>
5 #include <Strings/components/settings/config/config.h>
6 
8 
9 #ifndef KEYSTONE
10 #define KEYSTONE
11 #endif
12 
13 class BlamEditorWindow;
14 
22 {
23  Output,
26 };
27 
31 class BlamEditorToolWindow : public QDockWidget
32 {
33 protected:
34 
36 
41 
42 public:
43 
44  std::string config_filename = "";
45  BlamConfigurationFile* config = nullptr;
46 
47  Qt::DockWidgetArea dock_position = Qt::DockWidgetArea::LeftDockWidgetArea;
48 
56 
61 
68 
72  void LoadConfig();
73 
79  virtual void OnThemeChange(BlamEditorTheme* new_theme) {};
80 };
BlamEditorToolWindow
Definition: BlamEditorToolWindow.h:31
BlamEditorToolWindow::OnThemeChange
virtual void OnThemeChange(BlamEditorTheme *new_theme)
Called when the active theme is changed.
Definition: BlamEditorToolWindow.h:79
BlamEditorToolWindowType::Unspecified
@ Unspecified
BlamEditorToolWindow::dock_position
Qt::DockWidgetArea dock_position
Definition: BlamEditorToolWindow.h:47
BlamEditorToolWindow::GetToolWindowType
BlamEditorToolWindowType GetToolWindowType()
Retrieves the type of tool window that this tool window represents.
Definition: BlamEditorToolWindow.cpp:22
BlamEditorToolWindow::window_type
BlamEditorToolWindowType window_type
The tool window type.
Definition: BlamEditorToolWindow.h:40
themes.h
BlamEditorToolWindowType::ExplorerClassic
@ ExplorerClassic
BlamEditorTheme
Class representing a Blamite Editor Theme.
Definition: themes.h:47
BlamEditorToolWindow::BlamEditorToolWindow
BlamEditorToolWindow(BlamEditorWindow *_window, BlamEditorToolWindowType _window_type)
Constructs a new tool window.
Definition: BlamEditorToolWindow.cpp:9
BlamEditorToolWindow::~BlamEditorToolWindow
~BlamEditorToolWindow()
Releases a tool window.
Definition: BlamEditorToolWindow.cpp:15
BlamEditorToolWindowType
BlamEditorToolWindowType
Enumerator containing all possible editor tool window types.
Definition: BlamEditorToolWindow.h:21
BlamEditorToolWindow::LoadConfig
void LoadConfig()
Loads or creates the configuration file for this tool window.
Definition: BlamEditorToolWindow.cpp:27
BlamEditorToolWindow::config_filename
std::string config_filename
The name of the configuration filename.
Definition: BlamEditorToolWindow.h:44
BlamEditorToolWindow::parent_window
BlamEditorWindow * parent_window
The parent window that owns this tool window.
Definition: BlamEditorToolWindow.h:35
BlamEditorWindow
Interface class that all main editing tool windows inherit from.
Definition: BlamEditorWindow.h:47
BlamEditorToolWindowType::Output
@ Output
BlamEditorToolWindow::config
BlamConfigurationFile * config
The configuration file for this tool window. Not always used.
Definition: BlamEditorToolWindow.h:45
BlamEditorWindowType::Unspecified
@ Unspecified
Indicates that the editor window type is unknown. This should never happen.