From 560ebd47c33706e4482a6c158fd795a4d0a6075f Mon Sep 17 00:00:00 2001 From: wumu <mayi@mayi.com> Date: 星期四, 28 十一月 2024 22:49:28 +0800 Subject: [PATCH] 1128 --- internal_system_v1/converinfo2.h | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/internal_system_v1/converinfo2.h b/internal_system_v1/converinfo2.h index 96c6384..c683c90 100644 --- a/internal_system_v1/converinfo2.h +++ b/internal_system_v1/converinfo2.h @@ -7,6 +7,8 @@ #include <QAxObject> #include "struct_data.h" #include <QSqlError> +#include "exporttofile.h" +#include <QMessageBox> namespace Ui { class ConverInfo2; @@ -22,21 +24,42 @@ void initUi(); void readInfo(); void addMenu(); + void readExcelFromPath(QString path); + + void addTreeWidgetNode(QVariant upName, QVariant name); + void createTreeNode(); + + // 澶勭悊婊氳疆鐨勬搷浣滐紝绂佺敤涓嬫媺妗嗙殑婊氳疆浜嬩欢 + void disableWheelEvent(); + + bool eventFilter(QObject *watched, QEvent *event); + +signals: + void loadFinished(); // 鍔犺浇瀹屾垚鐨勪俊鍙� + void loadProgress(int); // 鍔犺浇杩涘害 + void updateComboListSignal(QMap<QString,ComInfo> &); // 鏇存柊涓嬫媺妗嗙殑淇″彿 + private slots: void showMenu(QPoint p); void addInfo(); void deleteInfo(); + void saveInfo(); // 瀵煎嚭淇濆瓨 void on_treeWidget_doubleClicked(const QModelIndex &index); void on_pushButton_commit_clicked(); void on_pushButton_laodFile_clicked(); + void showExcelSlot(); // 鍔犺浇鏄剧ず鐢靛瓙琛ㄦ牸鐨勬Ы + + void on_pushButton_save_to_file_clicked(); // 瀵煎嚭淇濆瓨 + private: Ui::ConverInfo2 *ui; QMenu *m_menu; QTreeWidgetItem *m_curItem; QMap<QString,ComInfo> m_nameAndComInfos; // 鍗曚綅鏄犲皠淇℃伅琛� + QMap<QString,QVector<QString>> m_treeNodes; // 鍗曚綅鏍戝舰淇℃伅琛� }; #endif // CONVERINFO2_H -- Gitblit v1.8.0