blob: bf661db6b2d3b31b1903ada135abe411bfb83c21 (
plain)
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
|
#ifndef NUMBERATOR_H
#define NUMBERATOR_H
#include "aboutdialog.h"
#include "sqlitebackend.h"
#include "taglistmodel.h"
#include "tagproptablemodel.h"
#include <QFileDialog>
#include <QMainWindow>
QT_BEGIN_NAMESPACE
namespace Ui {
class Numberator;
class TagListDock;
}
QT_END_NAMESPACE
class Numberator : public QMainWindow
{
Q_OBJECT
public:
Numberator(QWidget *parent = nullptr);
~Numberator();
bool showConfirmDiscardDialog();
public slots:
bool showSaveDialog(); /* return true if saved successfully (i.e. no error, not cancelled), false otherwise */
private:
Ui::Numberator *ui;
Ui::TagListDock *tagsDockUi;
QSettings settings;
QFileDialog loadImageDialog,
saveOpenDialog;
AboutDialog aboutDialog;
SQLiteSaveFile proj;
TagListModel tagListModel;
TagPropTableModel tagPropTableModel;
};
#endif // NUMBERATOR_H
|