numberator/numberator.h
2020-08-17 00:56:17 +02:00

49 lines
1.1 KiB
C++

#ifndef NUMBERATOR_H
#define NUMBERATOR_H
#include "aboutdialog.h"
#include "sqlitebackend.h"
#include "taglistmodel.h"
#include "tagproptablemodel.h"
#include "tagview.h"
#include <QFileDialog>
#include <QMainWindow>
#include <ui_TagEditDialog.h>
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;
Ui::TagEditDialog *tagEditUi;
QSettings settings;
QFileDialog loadImageDialog,
saveOpenDialog;
AboutDialog aboutDialog;
SQLiteSaveFile proj;
TagListModel tagListModel;
TagPropTableModel tagPropTableModel, dialogTagPropTableModel;
Tag m_tagBeingEdited;
};
#endif // NUMBERATOR_H