mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 17:30:05 +00:00
36 lines
564 B
C++
36 lines
564 B
C++
#pragma once
|
|
|
|
#include <scwx/qt/settings/settings_interface_base.hpp>
|
|
|
|
#include <QWidget>
|
|
|
|
namespace scwx
|
|
{
|
|
namespace qt
|
|
{
|
|
namespace ui
|
|
{
|
|
|
|
class SettingsPageWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SettingsPageWidget(QWidget* parent = nullptr);
|
|
~SettingsPageWidget();
|
|
|
|
bool CommitChanges();
|
|
void DiscardChanges();
|
|
void ResetToDefault();
|
|
|
|
protected:
|
|
void AddSettingsInterface(settings::SettingsInterfaceBase* setting);
|
|
|
|
private:
|
|
class Impl;
|
|
std::shared_ptr<Impl> p;
|
|
};
|
|
|
|
} // namespace ui
|
|
} // namespace qt
|
|
} // namespace scwx
|