玉兔远程控制 0.1.0-bate6
载入中...
搜索中...
未找到
FrmHistory.h
1// Author: Kang Lin <kl222@126.com>
2
3#pragma once
4
5#include <QWidget>
6#include <QDateEdit>
7#include "HistoryModel.h"
8
9namespace Ui {
10class CFrmHistory;
11}
12
13class CFrmHistory : public QWidget
14{
15 Q_OBJECT
16
17public:
18 explicit CFrmHistory(CParameterWebBrowser* pPara,
19 QWidget *parent = nullptr);
21
22Q_SIGNALS:
23 void sigOpenUrl(const QString& url);
24 void sigOpenUrlInNewTab(const QString& url);
25
26private slots:
27 void on_tableView_doubleClicked(const QModelIndex &index);
28 void slotCustomContextMenuRequested(const QPoint& pos);
29 void slotRefresh();
30 void slotImport();
31 void slotExport();
32 void slotComboxIndexChanged(int index);
33 void slotLimit(int v);
34private:
35 QString extractDomain(const QString &url);
36 void onDeleteHistoryItem(const QModelIndex &index);
37 void onDeleteHistoryByDomain(const QString &domain);
38 void onShowHistoryProperties(const QModelIndex &index);
39 void onOpenSelectedUrls(const QModelIndexList &indexes);
40 void onDeleteSelectedItems(const QModelIndexList &indexes);
41
42private:
43 Ui::CFrmHistory *ui;
44 CHistoryModel* m_pModelHistory;
45 CParameterWebBrowser* m_pPara;
46 QDateEdit* m_pDateStart;
47 QDateEdit* m_pDateEnd;
48};