Elaztek Developer Hub
Blamite Game Engine - Keystone  00305.01.23.21.0442.blamite
A library that enables the use of Qt in Blamite's editing tools.
guerilla_settings.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QDialog>
4 #include <qpixmap.h>
5 #include <qgraphicsitem>
6 #include <Strings/components/settings/config/config.h>
7 
8 #include "ui_guerilla_settings.h"
10 
16 class guerilla_settings : public QDialog
17 {
18  Q_OBJECT
19 
20 private slots:
21  void btn_theme_editor_Click();
22  void btn_open_themes_dir_Click();
23  void btn_edit_current_theme_Click();
24  void btn_theme_preview_Click();
25  void cbox_appearance_theme_IndexChanged(int index);
26  void cbox_theme_variant_IndexChanged(int index);
27 
28  void cbox_explorer_dock_pos_IndexChanged(int index);
29  void radio_workspace_mdi_CheckChanged();
30  void radio_workspace_tabs_CheckChanged();
31 
32  void btn_cancel_Click();
33  void btn_reset_config_Click();
34  void btn_open_data_dir_Click();
35  void btn_save_close_Click();
36 
37 private:
38  Ui::guerilla_settings ui;
39  BlamConfigurationFile* guerilla_config;
40 
41  QGraphicsScene* scene;
42  QGraphicsPixmapItem* pixmap_item;
43 
44  qt_style_editor* style_editor;
45 
46  bool dialog_ready = false;
47  int current_theme_index = 0;
48  int current_theme_variant_index = 0;
49 
53  void resizeEvent(QResizeEvent* event);
54 
58  void showEvent(QShowEvent* event);
59 
65  void UpdateWorkspacePreview();
66 
74  void UpdateThemeMenus();
75 
76 public:
82  guerilla_settings(BlamConfigurationFile* config, QWidget *parent = Q_NULLPTR);
84 };
guerilla_settings::guerilla_settings
guerilla_settings(BlamConfigurationFile *config, QWidget *parent=Q_NULLPTR)
Initializes the settings dialog.
Definition: guerilla_settings.cpp:8
guerilla_settings::~guerilla_settings
~guerilla_settings()
Definition: guerilla_settings.cpp:167
guerilla_settings
The Guerilla settings dialog.
Definition: guerilla_settings.h:16
qt_style_editor
A style editing window.
Definition: qt_style_editor.h:15
qt_style_editor.h