initial commit
This commit is contained in:
42
mainwindow.h
Normal file
42
mainwindow.h
Normal file
@ -0,0 +1,42 @@
|
||||
#ifndef MAINWINDOW_H
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <vector>
|
||||
#include <QStatusBar>
|
||||
|
||||
#include "imagemeta.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui {
|
||||
class MainWindow;
|
||||
}
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
bool modified = false;
|
||||
std::vector<ImageMeta> imageMetas;
|
||||
size_t index = 0;
|
||||
std::filesystem::path dir;
|
||||
QStatusBar status;
|
||||
|
||||
public:
|
||||
MainWindow(QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
|
||||
private slots:
|
||||
void open();
|
||||
void save();
|
||||
|
||||
private:
|
||||
void openDir(const std::filesystem::path& path);
|
||||
bool loadMetadata(const std::filesystem::path& path);
|
||||
bool imageIsKnown(const std::filesystem::path& path);
|
||||
void setImage(ssize_t index);
|
||||
|
||||
Ui::MainWindow *ui;
|
||||
};
|
||||
#endif // MAINWINDOW_H
|
Reference in New Issue
Block a user