DiagramDesigner/diagramCavas/source/baseInfoDlg.cpp

66 lines
1.4 KiB
C++
Raw Normal View History

2025-05-16 19:20:46 +08:00
#include "baseInfoDlg.h"
#include "ui_baseInfoDlg.h"
BaseInfoDlg::BaseInfoDlg(QWidget *parent)
: BaseContentDlg(parent)
, ui(new Ui::baseInfoDlg)
{
ui->setupUi(this);
//this->setWindowFlags(Qt::FramelessWindowHint | windowFlags());
}
BaseInfoDlg::~BaseInfoDlg()
{
delete ui;
}
void BaseInfoDlg::createGroupView(groupStateInfo infos)
{
}
QMap<QString,propertyStateInfo> BaseInfoDlg::getPropertyValue()
{
QMap<QString,propertyStateInfo> map;
propertyStateInfo uuid;
uuid.type = "UUID";
uuid.name = "global_uuid";
uuid.defaultValue = ui->le_uuid->text();
map.insert(uuid.name,uuid);
propertyStateInfo tag;
tag.type = "VARCHAR";
tag.name = "tag";
tag.defaultValue = ui->le_tag->text();
map.insert(tag.name,tag);
propertyStateInfo nsPath;
nsPath.type = "VARCHAR";
nsPath.name = "nspath";
nsPath.defaultValue = ui->le_nameSpace->text();
map.insert(nsPath.name,nsPath);
propertyStateInfo pName;
pName.type = "VARCHAR";
pName.name = "name";
pName.defaultValue = ui->le_name->text();
map.insert(pName.name,pName);
propertyStateInfo label;
label.type = "JSONB";
label.name = "label";
label.defaultValue = ui->le_label->text();
map.insert(label.name,label);
return map;
}
void BaseInfoDlg::setPropertyValue(QMap<QString,propertyStateInfo> map)
{
for(auto &info:map)
{
propertyContentInfo pro = _mapPro[info.name];
}
}