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
775 B
C++
35 lines
775 B
C++
#ifndef CUICONFIG_H
|
|
#define CUICONFIG_H
|
|
|
|
#include <QString>
|
|
#include <QMap>
|
|
#include <QVariant>
|
|
#include "CUIPropertyAPI.h"
|
|
|
|
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();
|
|
QString getOriginValueString();
|
|
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
|