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 "iGridRowItemBtn.h"
|
|
|
|
|
|
|
|
|
|
|
|
// 按钮-表格类,比如点击后,内部会存储表格数据,包括标题和数据
|
|
|
|
|
|
|
|
|
|
|
|
class X_GUI_GRIDPTY_EXPORT iGridRowItemBtnTable :
|
|
|
|
|
|
public iGridRowItemBtn
|
|
|
|
|
|
{
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
explicit iGridRowItemBtnTable(iGridRowItem* pParent = nullptr);
|
|
|
|
|
|
~iGridRowItemBtnTable();
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
// 序列化
|
|
|
|
|
|
virtual void onSerialize(ZxSerializer* ser);
|
|
|
|
|
|
virtual void onDeserialize(ZxSerializer* ser);
|
|
|
|
|
|
|
|
|
|
|
|
// 控件
|
|
|
|
|
|
virtual void initEditor();
|
|
|
|
|
|
virtual void configEditor();
|
|
|
|
|
|
virtual void initOtherEditors();
|
|
|
|
|
|
|
|
|
|
|
|
virtual void setParameter(iParameter* p);
|
|
|
|
|
|
|
|
|
|
|
|
// 从外部绑定数据
|
|
|
|
|
|
virtual void bindTableInfos(const QStringList& listTitles, \
|
|
|
|
|
|
const VVecVariant& vvec, \
|
|
|
|
|
|
bool bReadonly = true, \
|
|
|
|
|
|
bool bExpanded = false);
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
|
|
virtual void onCustomDataChanged();
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
|
|
// QStringList m_listTitles;
|
|
|
|
|
|
// VVecVariant m_vvecData;
|
|
|
|
|
|
};
|