Elaztek Developer Hub
Blamite Game Engine - Keystone  00424.10.27.24.1841.blamite
A library that enables the use of Qt in Blamite's editing tools.
sapien_main_window.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QMainWindow>
4 #include <qlabel.h>
5 
6 #include <Strings/components/classes/events/events.h>
7 
9 #include "api/keystone_api.h"
10 
11 #include "ui_sapien_main_window.h"
12 
16 class SapienMainWindow : public BlamEditorWindow, BlamEventListener
17 {
18  Q_OBJECT
19 
20 private:
21  Ui::sapien_main_window ui;
22  QLabel* status_text = nullptr;
23 
24 public:
25  SapienMainWindow(QWidget* parent = Q_NULLPTR);
27 
33  void SetStatusBarText(const char* status);
34 
40  void closeEvent(QCloseEvent* closeEvent) override;
41 
42  void OnMouseClickEvent(MouseClickEvent* event) override;
43  void OnKeyPressEvent(KeyPressEvent* event) override;
44 };
BlamEditorToolWindow
Base class for all editor tool windows.
Definition: BlamEditorToolWindow.h:38
editor_data.h
SelectProjectDialog.h
SapienMainWindow
Class representing the main window for Sapien.
Definition: sapien_main_window.h:16
SapienMainWindow::OnMouseClickEvent
void OnMouseClickEvent(MouseClickEvent *event) override
Definition: sapien_main_window.cpp:72
BlamEditorToolWindow_ToolWindow::GetCurrentPalette
std::string GetCurrentPalette()
Definition: tool_window.cpp:66
BlamEditorToolWindowType::HierarchyView
@ HierarchyView
The hierarchy view, used to view objects within a scenario. Used in Sapien.
SelectProjectDialog::ShouldExit
bool ShouldExit()
Definition: SelectProjectDialog.cpp:26
KeystoneMessageBoxButtons::Ok
@ Ok
Dialog is shown with an [OK] button.
KeystoneMessageBoxType::Error
@ Error
Dialog icon will be a red circle with an X.
BlamEditorWindowType::Sapien
@ Sapien
The editor window is the main window for Sapien (see #sapien_main_window).
BlamEditorWindow::SetupWindow
void SetupWindow()
Prepares the main window layout.
Definition: BlamEditorWindow.cpp:23
hierarchy_view.h
BlamEditorToolWindow_ToolWindow
Definition: tool_window.h:7
BlamKeystone::Engine::StartEngine
KEYSTONE int StartEngine()
Initializes the game engine and starts the main loop thread.
Definition: engine.cpp:47
BlamEditorToolWindowType::ToolWindow
@ ToolWindow
The tool window, used to configure tool options. Used in Sapien.
BlamKeystone::Utils::ShowMessageBox
KEYSTONE KeystoneDialogResult ShowMessageBox(std::string message)
Definition: utils.cpp:294
SapienMainWindow::~SapienMainWindow
~SapienMainWindow()
Definition: sapien_main_window.cpp:55
utils.h
BlamEditorWindow.h
BlamKeystone::EditorData::GetToolWindow
KEYSTONE BlamEditorToolWindow * GetToolWindow(BlamEditorToolWindowType type)
Retrieves a desired tool window.
Definition: editor_data.cpp:39
keystone_api.h
SapienMainWindow::OnKeyPressEvent
void OnKeyPressEvent(KeyPressEvent *event) override
Definition: sapien_main_window.cpp:117
BlamEditorWindowType
BlamEditorWindowType
Enumerator used to identify the type of the main editor window.
Definition: keystone_api.h:53
BlamEditorToolWindow_ToolWindow::GetCurrentPaletteIndex
int GetCurrentPaletteIndex()
Definition: tool_window.cpp:71
BlamEditorToolWindow_HierarchyView
Definition: hierarchy_view.h:9
SelectProjectDialog
Definition: SelectProjectDialog.h:9
BlamEditorToolWindow_HierarchyView::GetCurrentFolderIndex
int GetCurrentFolderIndex()
Definition: hierarchy_view.cpp:141
SapienMainWindow::SetStatusBarText
void SetStatusBarText(const char *status)
Updates the current status bar text.
Definition: sapien_main_window.cpp:60
BlamKeystone::Engine::ShutdownEngine
KEYSTONE void ShutdownEngine()
Shuts down the engine.
Definition: engine.cpp:90
SapienMainWindow::SapienMainWindow
SapienMainWindow(QWidget *parent=Q_NULLPTR)
Definition: sapien_main_window.cpp:19
tool_window.h
BlamEditorWindow
Interface class that all main editing tool windows inherit from.
Definition: BlamEditorWindow.h:34
engine.h
sapien_main_window.h
SapienMenubar
Class used for the Sapien menu bar.
Definition: sapien_menubar.h:11
SapienMainWindow::closeEvent
void closeEvent(QCloseEvent *closeEvent) override
Called when the window is closed.
Definition: sapien_main_window.cpp:65