DAWorkbench 0.0.1
DAWorkbench API
载入中...
搜索中...
未找到
DADialogInsertNewColumn.h
1#ifndef DADIALOGINSERTNEWCOLUMN_H
2#define DADIALOGINSERTNEWCOLUMN_H
3
4#include <QDialog>
5#include "DAGuiAPI.h"
6#include "numpy/DAPyDType.h"
7namespace Ui
8{
9class DADialogInsertNewColumn;
10}
11namespace DA
12{
13class DAGUI_API DADialogInsertNewColumn : public QDialog
14{
15 Q_OBJECT
16
17public:
18 explicit DADialogInsertNewColumn(QWidget* parent = nullptr);
20 DAPyDType getDType() const;
21 //是否是填充模式
22 bool isFullValueMode() const;
23 //是否是范围模式
24 bool isRangeMode() const;
25 //获取列名
26 QString getName() const;
27 //获取默认值
28 QVariant getDefaultValue() const;
29 //获取start值
30 QVariant getStartValue() const;
31 //获取stop值
32 QVariant getStopValue() const;
33
34private:
35 //从字符串获取值
36 QVariant fromString(const QString& str, const DAPyDType& dt) const;
37private slots:
38 //当前类型变化
39 void onCurrentDtypeChanged(const DAPyDType& dt);
40
41private:
42 Ui::DADialogInsertNewColumn* ui;
43};
44} // end of namespace DA
45#endif // DADIALOGINSERTNEWCOLUMN_H
Definition DADialogInsertNewColumn.h:14
对numpy.dtype的封装
Definition DAPyDType.h:37
序列化类都是带异常的,使用中需要处理异常
Definition AppMainWindow.cpp:44