2019-11-10 02:37:54 +01:00
|
|
|
#ifndef SETTINGSTAB_H
|
|
|
|
#define SETTINGSTAB_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <json.hpp>
|
|
|
|
|
|
|
|
using json = nlohmann::json;
|
|
|
|
|
|
|
|
class SettingsTab : public QWidget
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SettingsTab(std::string _name, json _data);
|
|
|
|
std::string name;
|
|
|
|
json data = nullptr;
|
|
|
|
virtual json tabSettings() = 0;
|
2019-11-10 15:22:15 +01:00
|
|
|
virtual void reset() = 0;
|
2019-11-10 02:37:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SETTINGSTAB_H
|