Elaztek Developer Hub
Blamite Game Engine - Keystone  00311.03.29.21.1456.blamite
A library that enables the use of Qt in Blamite's editing tools.
guerilla_window.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QMainWindow>
4 #include <qmdisubwindow.h>
5 #include <Strings/components/settings/config/config.h>
6 
7 #include "../windows/explorer_bar/explorer_bar.h"
8 #include "../widgets/menubar/guerilla_menubar.h"
13 #include "ui_guerilla_window.h"
14 
18 class guerilla_window : public QMainWindow, public KeystoneThemeChangeReceiver
19 {
20  Q_OBJECT
21 
22 private:
23  Ui::guerilla_window ui;
24 
25  guerilla_menubar* menu_bar = nullptr;
26  explorer_bar* explorer = nullptr;
27  console_output* output = nullptr;
28 
32  void CreateMdiLayout();
33 
37  void CreateTabLayout();
38 
44  void ShowTagEditor(tag_editor* editor);
45 
46 public:
47  BlamConfigurationFile* config;
48 
49  bool show_explorer = false;
50  bool show_output_window = false;
51 
53  QTabWidget* tab_area = nullptr;
55 
61  guerilla_window(BlamConfigurationFile* guerilla_config, QWidget* parent = Q_NULLPTR);
63 
71  BlamResult OpenTag(QString file_path, bool binary);
72 
78  void OpenNewTag(BlamTag* new_tag);
79 
83  void ToggleExplorer();
84 
88  void ToggleOutput();
89 
95  void OnThemeChange(BlamEditorTheme* new_theme);
96 
98 };
KeystoneThemeChangeReceiver
Interface used to listen to theme change events.
Definition: KeystoneThemeChangeReceiver.h:8
guerilla_window::mdi_area
SkinnableMdiArea * mdi_area
The MDI area used for tag documents. Only set when using MDI layout.
Definition: guerilla_window.h:52
SkinnableMdiArea.h
guerilla_window::tab_area
QTabWidget * tab_area
The tab widget used for tag documents. Only set when using Tab layout.
Definition: guerilla_window.h:53
console_output
The console output window.
Definition: console_output.h:13
guerilla_window::layout_type
BlamWorkspaceLayoutType layout_type
The layout type the window is currently using.
Definition: guerilla_window.h:54
console_output.h
guerilla_window::OpenNewTag
void OpenNewTag(BlamTag *new_tag)
Opens a tag for editing.
Definition: guerilla_window.cpp:159
tag_editor
The tag editor widget.
Definition: tag_editor.h:15
BlamEditorTheme
Class representing a Blamite Editor Theme.
Definition: themes.h:47
tag_editor.h
guerilla_menubar
The Guerilla menu bar.
Definition: guerilla_menubar.h:13
new_tag
Definition: new_tag.h:9
SkinnableMdiArea
Wrapper class around a QMdiArea, made to simplify skinning.
Definition: SkinnableMdiArea.h:18
BlamWorkspaceLayoutType
BlamWorkspaceLayoutType
Enumerator used to specify the workspace layout method that an application should use.
Definition: ui_shared.h:6
guerilla_window::GetCurrentTagEditor
tag_editor * GetCurrentTagEditor()
Definition: guerilla_window.cpp:246
guerilla_window::OnThemeChange
void OnThemeChange(BlamEditorTheme *new_theme)
Updates the window icon when the active theme changes.
Definition: guerilla_window.cpp:241
guerilla_window::config
BlamConfigurationFile * config
Pointer to the Guerilla configuration file.
Definition: guerilla_window.h:47
ui_shared.h
guerilla_window::ToggleOutput
void ToggleOutput()
Toggles the console output window.
Definition: guerilla_window.cpp:218
guerilla_window::ToggleExplorer
void ToggleExplorer()
Toggles the Explorer Bar.
Definition: guerilla_window.cpp:164
guerilla_window::show_explorer
bool show_explorer
Whether or not the Explorer Bar is currently being displayed.
Definition: guerilla_window.h:49
guerilla_window::guerilla_window
guerilla_window(BlamConfigurationFile *guerilla_config, QWidget *parent=Q_NULLPTR)
Initializes the application window.
Definition: guerilla_window.cpp:5
explorer_bar
The Guerilla Explorer Bar.
Definition: explorer_bar.h:11
guerilla_window::~guerilla_window
~guerilla_window()
Definition: guerilla_window.cpp:92
guerilla_window::OpenTag
BlamResult OpenTag(QString file_path, bool binary)
Attempts to open a tag for editing.
Definition: guerilla_window.cpp:150
guerilla_window
The main Guerilla window.
Definition: guerilla_window.h:18
guerilla_window::show_output_window
bool show_output_window
Whether or not the output window is currently being displayed.
Definition: guerilla_window.h:50