Files
tenmon/mainwindow.h
T

47 lines
1.1 KiB
C++

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QSocketNotifier>
#include "imageringlist.h"
#include "imagescrollarea.h"
#include "database.h"
#include "imageinfo.h"
class MainWindow : public QMainWindow
{
Q_OBJECT
ImageScrollArea *m_image;
ImageRingList *m_ringList;
Database *m_database;
ImageInfo *m_info;
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();
void liveMode(bool active);
void imageStats(bool imageStats);
void peakFinder(bool findPeaks);
void starFinder(bool findStars);
};
#endif // MAINWINDOW_H