12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #ifndef MAINWIDGET_H
- #define MAINWIDGET_H
- #include <QWidget>
- #include "ui_mainwidget.h"
- #include "DataBaseService.h"
- #include "../SmartEvaluationLogic/ScanDll.h"
- #include <map>
- class MainWidget : public QWidget
- {
- Q_OBJECT
- public:
- MainWidget(QWidget *parent = 0);
- ~MainWidget();
- private slots:
- void slots_bindschool();
- void slots_handleclick();
- void slots_listclick(QListWidgetItem* item);
- void slots_listchange(QListWidgetItem* current, QListWidgetItem* pre);
- void slots_bindUnHandle(); // 项部异常按扭
- void slots_pageclick(); // 处理异常页面
- void slots_scanclick(); // 右部识别页面按扭
- void slots_checkUpdateclick(); // 检查更新
- private:
- virtual bool nativeEvent(const QByteArray &eventType, void *message, long *result);
-
- void bind_signlslot();
- void load_schoolinfo();
- void Save_FileAs();
- void clear_cache();
- void ParsePapers();
- void load_exception();
- void bind_unloadfaild(vector<paper_info>& vct);
- void CheckUpdate();
- void updateTableWidget(int, int, int);
- private:
- Ui::MainWidget ui;
- int m_nBorderWidth; //m_nBorder表示鼠标位于边框缩放范围的宽度
- CDataBaseService m_dataBaseService;
- batch_info m_curBatch;
- QMap<QString, int> m_mapUploadItemsStatus;
- QStringList m_batchpaperList;
- map<int, vector<paper_info>> m_mapPapers;
- QString m_localVersion;
- };
- #endif // MAINWIDGET_H
|