/
dialog.h
48 lines (37 loc) · 845 Bytes
/
dialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* SPDX-FileCopyrightText: 2012 Giuseppe Calà <gcala@mailbox.org>
*
* SPDX-License-Identifier: GPL-3.0-only
*/
#ifndef DIALOG_H
#define DIALOG_H
#include "pkgnamecompleter.h"
#include <QDialog>
#include <QDate>
namespace Ui {
class Dialog;
}
class QSqlTableModel;
class Dialog : public QDialog
{
Q_OBJECT
public:
explicit Dialog(QWidget *parent = nullptr);
~Dialog();
private slots:
void applyFilters();
void selectCustomLogFile();
private:
Ui::Dialog *ui;
QSqlTableModel *m_model;
PkgNameCompleter *m_pkgNameCompleter;
QAction *m_customLogAction;
QAction *m_aboutAction;
QAction *m_reloadAction;
QString m_lastPath;
QDate m_oldestDate;
void loadSettings();
void readPacmanLogFile(const QString &logFile);
void setupTranslations();
};
#endif // DIALOG_H