You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
1.7 KiB
C++
72 lines
1.7 KiB
C++
#ifndef QCHECKDATADLG_H
|
|
#define QCHECKDATADLG_H
|
|
|
|
#include <QDialog>
|
|
#include "ui_qcheckdatadlg.h"
|
|
#include "stationdb.h"
|
|
#include "qsqlquery.h"
|
|
#include "qstandarditemmodel.h"
|
|
#include "qtableview.h"
|
|
#include "qdatetimeedit.h"
|
|
#include "QTextBrowser.h"
|
|
#include "cunstomgraphview.h"
|
|
#include <QTranslator>
|
|
|
|
class QCheckDataDlg : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QCheckDataDlg(QWidget *parent = 0);
|
|
~QCheckDataDlg();
|
|
void setDbPtr(StationDB *pDb){ m_db = pDb; };
|
|
void setStationNames(QStringList listNames);
|
|
|
|
private:
|
|
Q_SLOT void onChenckButton();
|
|
Q_SLOT void onCheckOutData();
|
|
Q_SLOT void onTBUI_ItemClick(const QModelIndex & index);
|
|
Q_SLOT void onSlowPixmap(QSqlQuery sql);
|
|
|
|
|
|
void SearchQmFile(const QString & strDir);
|
|
void rmTranslator();
|
|
void SetLanguage(QString strLangage);
|
|
void SetTranslator(const QString strPath);
|
|
private:
|
|
int getLimitNumber();
|
|
int getTotalNumber();
|
|
int getErrorType();
|
|
|
|
QString getStationName();
|
|
|
|
void createHeader();
|
|
void updateModelShowLog(QSqlQuery &sql);
|
|
void onCheckOutData(int nLimitNum, int nPrenum);
|
|
void setPageShow(int page, int totalPage);
|
|
protected:
|
|
virtual void changeEvent(QEvent *event);
|
|
private:
|
|
Ui::QCheckDataDlg ui;
|
|
|
|
QLabel *pShowName_label{ nullptr };
|
|
QLabel *check_showImg_label{ nullptr };
|
|
QTextBrowser *textBrowser{ nullptr };
|
|
StationDB *m_db{ nullptr };
|
|
QStandardItemModel *m_tableModel{ nullptr };
|
|
QTableView *tableView{ nullptr };
|
|
QDateTimeEdit *pStartTimeEdit{ nullptr };
|
|
QDateTimeEdit *pEndTimeEdit{ nullptr };
|
|
|
|
QMap<QString, QString> m_strMap;
|
|
int nPrevNum;
|
|
int nTotlaNumber;
|
|
|
|
QTpGraphView *m_ViewImg{ nullptr };
|
|
|
|
QVector<QTranslator* > m_VecTranPtr;
|
|
QString m_strCurLanguage{ "Chinese" };
|
|
};
|
|
|
|
#endif // QCHECKDATADLG_H
|