43 lines
751 B
C
43 lines
751 B
C
|
#ifndef _BCUSERDEF_H_
|
|||
|
#define _BCUSERDEF_H_
|
|||
|
|
|||
|
#include "BCBase.h"
|
|||
|
#include <QString>
|
|||
|
#include <QIcon>
|
|||
|
|
|||
|
class QDomElement;
|
|||
|
class QDomDocument;
|
|||
|
|
|||
|
namespace BCBase
|
|||
|
{
|
|||
|
/**
|
|||
|
* @brief 用户自定义的边界条件
|
|||
|
* @since 2.5.0
|
|||
|
*/
|
|||
|
class BCBASEAPI BCUserDef : public BCBase
|
|||
|
{
|
|||
|
public:
|
|||
|
BCUserDef();
|
|||
|
~BCUserDef() = default;
|
|||
|
|
|||
|
void copy(DataBase *data) override;
|
|||
|
|
|||
|
QString getName();
|
|||
|
void setName(QString s);
|
|||
|
QString getChinese();
|
|||
|
void setChinese(QString s);
|
|||
|
void setIcon(QString icon);
|
|||
|
QString getIcon();
|
|||
|
|
|||
|
QDomElement &writeToProjectFile(QDomDocument *doc, QDomElement *parent) override;
|
|||
|
void readDataFromProjectFile(QDomElement *ele) override;
|
|||
|
|
|||
|
private:
|
|||
|
QString _name{};
|
|||
|
QString _chinese{};
|
|||
|
QString _icon{};
|
|||
|
};
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
#endif
|