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.
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
#include "iGridRowItemSub.h"
|
|
|
|
|
|
|
|
|
|
|
|
// 常规的Sub,比如层数据
|
|
|
|
|
|
|
|
|
|
|
|
class X_GUI_GRIDPTY_EXPORT iGridRowItemSubNormal :
|
|
|
|
|
|
public iGridRowItemSub
|
|
|
|
|
|
{
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
explicit iGridRowItemSubNormal(iGridRowItem* pParent = nullptr);
|
|
|
|
|
|
~iGridRowItemSubNormal();
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
// 序列化
|
|
|
|
|
|
virtual void onSerialize(ZxSerializer* ser);
|
|
|
|
|
|
virtual void onDeserialize(ZxSerializer* ser);
|
|
|
|
|
|
|
|
|
|
|
|
// 控件
|
|
|
|
|
|
virtual void initEditor();
|
|
|
|
|
|
virtual void configEditor();
|
|
|
|
|
|
virtual void initOtherEditors();
|
|
|
|
|
|
virtual bool isInputOk();
|
|
|
|
|
|
|
|
|
|
|
|
virtual void setParameter(iParameter* p);
|
|
|
|
|
|
|
|
|
|
|
|
// 根据当前数据,构造默认的数据体
|
|
|
|
|
|
virtual void defaultSubInfos();
|
|
|
|
|
|
|
|
|
|
|
|
// 刷新
|
|
|
|
|
|
// n:数
|
|
|
|
|
|
virtual void freshSubChild(int n, bool bBySegCount);
|
|
|
|
|
|
|
|
|
|
|
|
// 从外部设置数据
|
|
|
|
|
|
virtual void setAllSubInfos(QStringList& listTagRows, \
|
|
|
|
|
|
VVecVariant& vvec, \
|
|
|
|
|
|
bool bReadonly = true, \
|
|
|
|
|
|
bool bExpanded = false);
|
|
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
|
|
QStringList m_listTagRows;
|
|
|
|
|
|
// QStringList m_listTagCols;
|
|
|
|
|
|
VVecVariant m_vvecSubInfos;
|
|
|
|
|
|
};
|