func:添加选择文件功能并自动记录

This commit is contained in:
2024-05-17 22:46:33 +08:00
parent 0ca591c238
commit f9fd64d90f
34 changed files with 1220 additions and 127 deletions

View File

@@ -30,7 +30,7 @@ public:
void push_content(const std::vector<Element_t*>& eles, std::size_t page = 1);
private:
void read();
void read(const QString& file_path);
void search();
void item_changed_handle(QTableWidgetItem* item);
void save();
@@ -43,6 +43,7 @@ private:
bool edit_property(Element_t* target, int row);
void init_menu();
void ele_update_gui(Element_t* target, int row);
void show_custom_menu();
protected:
void closeEvent(QCloseEvent* event);
@@ -72,5 +73,6 @@ private:
std::size_t cur_page_{1};
std::size_t all_page_{1};
CAttributeEdit* attri_edit_{};
OprBase base_{};
};
#endif // MAINWIDGET_H