You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
743 B
C++
35 lines
743 B
C++
#ifndef CUICONFIG_H
|
|
#define CUICONFIG_H
|
|
|
|
#include "CUIPropertyAPI.h"
|
|
#include <QMap>
|
|
#include <QString>
|
|
#include <QVariant>
|
|
|
|
class CUISigsCenter;
|
|
|
|
class CUIPropertyAPI CUIConfig {
|
|
public:
|
|
CUIConfig(QMap<QString, QVariant> temp);
|
|
CUIConfig(QMap<QString, QVariant> temp, QVector<CUIConfig *> sub);
|
|
void printConfig();
|
|
|
|
void setValue(QVariant);
|
|
QString getPropertyValue(QString);
|
|
QVariant getPropertyOriginValue(QString);
|
|
QVector<CUIConfig *> getSub();
|
|
|
|
private:
|
|
void setDefault();
|
|
void setDefault(QString key, QVariant val);
|
|
|
|
private:
|
|
QMap<QString, QVariant> property;
|
|
QVector<CUIConfig *> sub;
|
|
static int labelMinWidth;
|
|
|
|
CUISigsCenter *m_sigsCenter = nullptr;
|
|
};
|
|
|
|
#endif // CUICONFIG_H
|