Elaztek Developer Hub
Blamite Game Engine - Keystone  00386.06.16.23.0646.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  void cb_disable_plugin_version_checks_CheckChanged(int state);
38 
39 private:
40  Ui::guerilla_settings ui;
41  BlamConfigurationFile* guerilla_config;
42 
43  QGraphicsScene* scene;
44  QGraphicsPixmapItem* pixmap_item;
45 
46  qt_style_editor* style_editor;
47 
48  bool dialog_ready = false;
49  int current_theme_index = 0;
50  int current_theme_variant_index = 0;
51 
55  void resizeEvent(QResizeEvent* event);
56 
60  void showEvent(QShowEvent* event);
61 
67  void UpdateWorkspacePreview();
68 
76  void UpdateThemeMenus();
77 
78 public:
84  guerilla_settings(BlamConfigurationFile* config, QWidget *parent = Q_NULLPTR);
86 };
themes.h
BlamEditorTheme
Class representing a Blamite Editor Theme.
Definition: themes.h:47
BlamEditorTheme::GetVariants
std::vector< BlamEditorThemeVariant > GetVariants()
Retrieves the list of theme variants.
Definition: BlamEditorTheme.cpp:153
guerilla_settings.h
BlamKeystone::Themes::GetActiveTheme
KEYSTONE BlamEditorTheme * GetActiveTheme()
Retrieves the currently selected theme.
Definition: themes.cpp:335
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:179
guerilla_settings
The Guerilla settings dialog.
Definition: guerilla_settings.h:16
BlamEditorTheme::GetName
std::string GetName()
Retrieves the theme name.
Definition: BlamEditorTheme.cpp:123
BlamEditorTheme::GetThemeType
BlamEditorThemeType GetThemeType()
Retrieves the theme type.
Definition: BlamEditorTheme.cpp:143
QtTheme
@ QtTheme
Indicates the theme is a default theme made available from Qt.
Definition: themes.h:26
BlamKeystone::Themes::GetThemeList
KEYSTONE std::vector< BlamEditorTheme > * GetThemeList()
Retrieves the list of loaded themes.
Definition: themes.cpp:315
qt_style_editor
A style editing window.
Definition: qt_style_editor.h:15
qt_style_editor.h