DAWorkbench 0.0.1
DAWorkbench API
载入中...
搜索中...
未找到
DATxtFileImportDialog.h
1#ifndef DATXTFILEIMPORTDIALOG_H
2#define DATXTFILEIMPORTDIALOG_H
3#include "DAGuiAPI.h"
4#include <QDialog>
5#include "DATextReadWriter.h"
6namespace Ui
7{
8class DATxtFileImportDialog;
9}
10
11namespace DA
12{
13
14class DAPyDataFrameTableModel;
15
16class DAGUI_API DATxtFileImportDialog : public QDialog
17{
18 Q_OBJECT
19
20public:
21 explicit DATxtFileImportDialog(QWidget* parent = nullptr);
23 // 获取路径
24 QString getTextFilePath() const;
25 void setTextFilePath(const QString& p);
26 // 获取设置内容
27 QVariantMap getSetting();
28public slots:
29 // 刷新
30 void refresh();
31private slots:
32 // 文件路径选择选择了路径
33 void onFilePathEditSelectedPath(const QString& p);
34 // 读取文本回调
35 void onTextReadComplete(const QString& txt, bool isReadAll);
36 // 文本读取完成回调
37 void onTextReadFinished(int code);
38 // 跳过脚注数值变化槽函数,这个是为了和max——row互斥
39 void onSpinBoxSkipFooterValueChanged(int v);
40
41protected:
42 void changeEvent(QEvent* e);
43 // 读取文本
44 void readTextFile(const QString& p);
45
46private:
47 Ui::DATxtFileImportDialog* ui;
48#if DA_ENABLE_PYTHON
49 DAPyDataFrameTableModel* mModule { nullptr };
50#endif
51};
52}
53
54#endif // DATXTFILEIMPORTDIALOG_H
针对DAPyDataFrame的table model
Definition DAPyDataFrameTableModel.h:22
Definition DATxtFileImportDialog.h:17
序列化类都是带异常的,使用中需要处理异常
Definition AppMainWindow.cpp:44