Elaztek Developer Hub
Blamite Game Engine - Keystone  00390.07.02.23.1947.blamite
A library that enables the use of Qt in Blamite's editing tools.
alert_widget.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QWidget>
4 #include <qgraphicsscene.h>
5 #include <qpixmap.h>
6 #include <qgraphicsitem.h>
7 
9 #include "ui_alert_widget.h"
10 
11 class alert_widget : public QWidget
12 {
13  Q_OBJECT
14 
15 private:
16  Ui::alert_widget ui;
17 
19  QGraphicsScene* scene = nullptr;
20  QGraphicsPixmapItem* pixmap_item = nullptr;
21 
22  void RefreshIcon();
23 
24 public:
25  alert_widget(KeystoneMessageBoxType _type, std::string message, QWidget *parent = Q_NULLPTR);
26  ~alert_widget();
27 
31  void resizeEvent(QResizeEvent* event);
32 
36  void showEvent(QShowEvent* event);
37 };
ScenarioLoadingDialog_Loader
Definition: scenario_loading.h:8
editor_data.h
BlamEditorWindow::GetApplicationTitle
std::string GetApplicationTitle()
Definition: BlamEditorWindow.cpp:406
themes.h
KeystoneMessageBoxType::Error
@ Error
Dialog icon will be a red circle with an X.
ScenarioLoadingDialog_Loader::SetScenarioParams
void SetScenarioParams(std::string _project_name, std::string _tag_path)
Definition: ScenarioLoadingDialog_Loader.cpp:10
ScenarioLoadingDialog::ScenarioLoadingDialog
ScenarioLoadingDialog(QWidget *parent=Q_NULLPTR)
Definition: ScenarioLoadingDialog.cpp:14
alert_widget::showEvent
void showEvent(QShowEvent *event)
Called when the dialog is fully shown.
Definition: alert_widget.cpp:64
BlamKeystone::Utils::ShowMessageBox
KEYSTONE KeystoneDialogResult ShowMessageBox(std::string message)
Definition: utils.cpp:279
KeystoneMessageBoxType
KeystoneMessageBoxType
Enumerator containing different possible message box types, primarily used to control the icon that i...
Definition: qt_message_box.h:10
ScenarioLoadingDialog::showEvent
void showEvent(QShowEvent *event)
Definition: ScenarioLoadingDialog.cpp:38
ScenarioLoadingDialog::RefreshIcon
void RefreshIcon()
Definition: ScenarioLoadingDialog.cpp:134
utils.h
ScenarioLoadingDialog::LoadScenario
void LoadScenario(std::string _project_name, std::string _tag_path)
Definition: ScenarioLoadingDialog.cpp:44
alert_widget.h
KeystoneMessageBoxType::Warning
@ Warning
Dialog icon will be a yellow triangle with an exclamation mark.
BlamKeystone::Themes::GetActiveTheme
KEYSTONE BlamEditorTheme * GetActiveTheme()
Retrieves the currently selected theme.
Definition: themes.cpp:335
ScenarioLoadingDialog_Loader::ProgressStageChanged
void ProgressStageChanged(int stage)
qt_message_box.h
scenario_loading.h
alert_widget
Definition: alert_widget.h:11
BlamKeystone::EditorData::GetMainEditorWindow
KEYSTONE BlamEditorWindow * GetMainEditorWindow()
Retrieves the main editor window.
Definition: editor_data.cpp:32
ScenarioLoadingDialog::ScenarioLoadFinished
void ScenarioLoadFinished()
Definition: ScenarioLoadingDialog.cpp:129
alert_widget::~alert_widget
~alert_widget()
Definition: alert_widget.cpp:27
KeystoneMessageBoxType::None
@ None
The dialog will not contain an icon.
ScenarioLoadingDialog_Loader::LoadScenario
void LoadScenario()
Definition: ScenarioLoadingDialog_Loader.cpp:16
alert_widget::alert_widget
alert_widget(KeystoneMessageBoxType _type, std::string message, QWidget *parent=Q_NULLPTR)
Definition: alert_widget.cpp:5
ScenarioLoadingDialog::UpdateProgressStage
void UpdateProgressStage(int stage)
Definition: ScenarioLoadingDialog.cpp:65
ScenarioLoadingDialog::~ScenarioLoadingDialog
~ScenarioLoadingDialog()
Definition: ScenarioLoadingDialog.cpp:26
ScenarioLoadingDialog_Loader::LoadFinished
void LoadFinished()
alert_widget::resizeEvent
void resizeEvent(QResizeEvent *event)
Called when the dialog is resized.
Definition: alert_widget.cpp:59