mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 01:35:46 +00:00
configuration: Add base class to tabs
Tabs that largely configure SwitchableSetting's are now Tabs and grouped together.
This commit is contained in:
parent
cea811f446
commit
b527f47bd6
18 changed files with 110 additions and 101 deletions
|
@ -3,6 +3,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <forward_list>
|
||||
#include <iterator>
|
||||
#include <memory>
|
||||
#include <QCheckBox>
|
||||
#include <QComboBox>
|
||||
#include <QWidget>
|
||||
|
@ -15,11 +18,14 @@ class Tab : public QWidget {
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit Tab(QWidget* parent = nullptr);
|
||||
explicit Tab(std::shared_ptr<std::forward_list<Tab*>> group_, QWidget* parent = nullptr);
|
||||
~Tab();
|
||||
|
||||
virtual void ApplyConfiguration() = 0;
|
||||
virtual void SetConfiguration() = 0;
|
||||
|
||||
private:
|
||||
std::shared_ptr<std::forward_list<Tab*>> group;
|
||||
};
|
||||
|
||||
constexpr int USE_GLOBAL_INDEX = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue