mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refactor: Rename blackgui to swift::gui
This commit is contained in:
60
src/gui/components/settingsguicomponent.h
Normal file
60
src/gui/components/settingsguicomponent.h
Normal file
@@ -0,0 +1,60 @@
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef SWIFT_GUI_COMPONENTS_SETTINGSGUICOMPONENT_H
|
||||
#define SWIFT_GUI_COMPONENTS_SETTINGSGUICOMPONENT_H
|
||||
|
||||
#include "gui/singleapplicationui.h"
|
||||
#include "gui/settings/guisettings.h"
|
||||
#include <QFrame>
|
||||
#include <QScopedPointer>
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
class CSettingsGuiComponent;
|
||||
}
|
||||
namespace swift::gui::components
|
||||
{
|
||||
/*!
|
||||
* General GUI settings
|
||||
*/
|
||||
class CSettingsGuiComponent :
|
||||
public QFrame,
|
||||
public swift::gui::CSingleApplicationUi
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CSettingsGuiComponent(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
virtual ~CSettingsGuiComponent();
|
||||
|
||||
//! Hide opacity elements
|
||||
void hideOpacity(bool hide);
|
||||
|
||||
//! GUI Opacity 0-100%
|
||||
void setGuiOpacity(double value);
|
||||
|
||||
signals:
|
||||
//! Change the windows opacity 0..100
|
||||
void changedWindowsOpacity(int opacity);
|
||||
|
||||
private:
|
||||
//! Selection radio buttons changed
|
||||
void selectionChanged();
|
||||
|
||||
//! GUI settings changed
|
||||
void guiSettingsChanged();
|
||||
|
||||
//! Widget style has changed
|
||||
void widgetStyleChanged(int index);
|
||||
|
||||
QScopedPointer<Ui::CSettingsGuiComponent> ui;
|
||||
swift::misc::CSetting<settings::TGeneralGui> m_guiSettings { this, &CSettingsGuiComponent::guiSettingsChanged };
|
||||
};
|
||||
} // ns
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user