swift
settingsguicomponent.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_GUI_COMPONENTS_SETTINGSGUICOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_SETTINGSGUICOMPONENT_H
8 
9 #include <QFrame>
10 #include <QScopedPointer>
11 
13 
14 namespace Ui
15 {
16  class CSettingsGuiComponent;
17 }
18 namespace swift::gui::components
19 {
23  class CSettingsGuiComponent : public QFrame
24  {
25  Q_OBJECT
26 
27  public:
29  explicit CSettingsGuiComponent(QWidget *parent = nullptr);
30 
32  virtual ~CSettingsGuiComponent();
33 
35  void hideOpacity(bool hide);
36 
38  void setGuiOpacity(double value);
39 
40  signals:
42  void changedWindowsOpacity(int opacity);
43 
44  private:
46  void selectionChanged();
47 
49  void guiSettingsChanged();
50 
52  void widgetStyleChanged(int index);
53 
54  QScopedPointer<Ui::CSettingsGuiComponent> ui;
55  swift::misc::CSetting<settings::TGeneralGui> m_guiSettings { this, &CSettingsGuiComponent::guiSettingsChanged };
56  };
57 } // namespace swift::gui::components
58 #endif // SWIFT_GUI_COMPONENTS_SETTINGSGUICOMPONENT_H
void changedWindowsOpacity(int opacity)
Change the windows opacity 0..100.
CSettingsGuiComponent(QWidget *parent=nullptr)
Constructor.
void setGuiOpacity(double value)
GUI Opacity 0-100%.
void hideOpacity(bool hide)
Hide opacity elements.
Class template for accessing a specific value in the CSettingsCache.
Definition: settingscache.h:68
High level reusable GUI components.
Definition: aboutdialog.cpp:13