forked from foldynl/QLog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathImportDialog.h
48 lines (40 loc) · 1.19 KB
/
ImportDialog.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
#ifndef QLOG_UI_IMPORTDIALOG_H
#define QLOG_UI_IMPORTDIALOG_H
#include <QDialog>
#include <QSqlRecord>
#include <logformat/LogFormat.h>
#include "data/StationProfile.h"
#include "core/LogLocale.h"
namespace Ui {
class ImportDialog;
}
class ImportDialog : public QDialog
{
Q_OBJECT
public:
explicit ImportDialog(QWidget *parent = 0);
~ImportDialog();
private slots:
void browse();
void toggleAll();
void toggleComment();
void runImport();
void computeProgress(qint64 position);
void stationProfileTextChanged(const QString&);
void rigProfileTextChanged(const QString&);
void toggleMyProfile();
void toggleMyRig();
void commentChanged(const QString&);
private:
Ui::ImportDialog *ui;
qint64 size;
StationProfile selectedStationProfile;
LogLocale locale;
static LogFormat::duplicateQSOBehaviour showDuplicateDialog(QSqlRecord *, QSqlRecord *);
void saveImportDetails(const QString &importDetail,
const QString &filename,
const int count,
const unsigned long warnings,
const unsigned long errors);
};
#endif // QLOG_UI_IMPORTDIALOG_H