909a2f75c7
Signed-off-by: Dušan Poizl <nou.spiro@gmail.com>
41 lines
910 B
C++
41 lines
910 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include <QSocketNotifier>
|
|
#include "imageringlist.h"
|
|
#include "imagescrollarea.h"
|
|
#include "database.h"
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
ImageScrollArea *m_image;
|
|
ImageRingList *m_ringList;
|
|
Database *m_database;
|
|
bool loading;
|
|
int queued;
|
|
static int socketPair[2];
|
|
QSocketNotifier *socketNotifier;
|
|
public:
|
|
MainWindow(QWidget *parent = 0);
|
|
~MainWindow();
|
|
protected:
|
|
void keyPressEvent(QKeyEvent *event);
|
|
void keyReleaseEvent(QKeyEvent *event);
|
|
void setupSigterm();
|
|
static void signalHandler(int);
|
|
protected slots:
|
|
void socketNotify();
|
|
void updateWindowTitle();
|
|
void pixmapLoaded(QPixmap pix);
|
|
void openFile();
|
|
void markImage();
|
|
void unmarkImage();
|
|
void markAndNext();
|
|
void unmarkAndNext();
|
|
void copyMarked();
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|