mainwidget.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef MAINWIDGET_H
  2. #define MAINWIDGET_H
  3. #include <QWidget>
  4. #include "ui_mainwidget.h"
  5. #include "DataBaseService.h"
  6. #include "../SmartEvaluationLogic/ScanDll.h"
  7. #include <map>
  8. class MainWidget : public QWidget
  9. {
  10. Q_OBJECT
  11. public:
  12. MainWidget(QWidget *parent = 0);
  13. ~MainWidget();
  14. private slots:
  15. void slots_bindschool();
  16. void slots_handleclick();
  17. void slots_listclick(QListWidgetItem* item);
  18. void slots_listchange(QListWidgetItem* current, QListWidgetItem* pre);
  19. void slots_bindUnHandle(); // 项部异常按扭
  20. void slots_pageclick(); // 处理异常页面
  21. void slots_scanclick(); // 右部识别页面按扭
  22. void slots_checkUpdateclick(); // 检查更新
  23. private:
  24. virtual bool nativeEvent(const QByteArray &eventType, void *message, long *result);
  25. void bind_signlslot();
  26. void load_schoolinfo();
  27. void Save_FileAs();
  28. void clear_cache();
  29. void ParsePapers();
  30. void load_exception();
  31. void bind_unloadfaild(vector<paper_info>& vct);
  32. void CheckUpdate();
  33. void updateTableWidget(int, int, int);
  34. private:
  35. Ui::MainWidget ui;
  36. int m_nBorderWidth; //m_nBorder表示鼠标位于边框缩放范围的宽度
  37. CDataBaseService m_dataBaseService;
  38. batch_info m_curBatch;
  39. QMap<QString, int> m_mapUploadItemsStatus;
  40. QStringList m_batchpaperList;
  41. map<int, vector<paper_info>> m_mapPapers;
  42. QString m_localVersion;
  43. };
  44. #endif // MAINWIDGET_H