49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
#ifndef WIDGET_H
|
|
#define WIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include <QTableView>
|
|
#include <QSqlQueryModel>
|
|
#include <QComboBox>
|
|
#include <QDateEdit>
|
|
#include <QDate>
|
|
#include <QGroupBox>
|
|
#include <QLineEdit>
|
|
|
|
class Widget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
Widget(QWidget *parent = 0);
|
|
~Widget();
|
|
private:
|
|
QTableView *m_ptableKeyword,*m_ptableGroup,*m_ptableCrawling;
|
|
QSqlQueryModel *m_pmodelKeyword,*m_pmodelGroup,*m_pmodelCrawling;
|
|
QDateEdit *m_pdeStart,*m_pdeEnd;
|
|
QComboBox *m_pcbRealTime;
|
|
QComboBox *m_pcbPlatform;
|
|
QLineEdit *m_pleKeyword,*m_pleAuthorship,*m_pleGroup;
|
|
private:
|
|
QGroupBox *setKeywordWidgets();
|
|
QGroupBox *setGroupWidgets();
|
|
QGroupBox *setCrawlingWidgets();
|
|
void SaveCsv(QString);
|
|
private slots:
|
|
void on_keyword_currentRowChanged(QModelIndex);
|
|
void on_keyword_button_insert();
|
|
void on_keyword_button_delete();
|
|
void on_keyword_button_modify();
|
|
|
|
void on_group_currentRowChanged(QModelIndex);
|
|
void on_group_button_insert();
|
|
void on_group_button_delete();
|
|
void on_group_button_clear();
|
|
void on_group_button_modify();
|
|
void on_group_button_export();
|
|
|
|
void on_crawling_button_insert();
|
|
void on_crawling_button_delete();
|
|
};
|
|
|
|
#endif // WIDGET_H
|