diff --git a/snapshotmanager.h b/snapshotmanager.h new file mode 100644 --- /dev/null +++ b/snapshotmanager.h @@ -0,0 +1,44 @@ + +#ifndef SNAPSHOTMANAGER_H +#define SNAPSHOTMANAGER_H + +#include +#include +#include + +#include "framebuffer.h" +#include "snapshot.h" + +// class MainWindow; + +class SnapshotManager : public QObject +{ + Q_OBJECT + +public: + SnapshotManager(QMainWindow* mainWindow, QList* channelBuffers); + ~SnapshotManager(); + + QMenu* menu(); + QAction* takeSnapshotAction(); + +private: + QMainWindow* _mainWindow; + QList* _channelBuffers; + + QList snapshots; + + QMenu _menu; + QAction _takeSnapshotAction; + QAction clearAction; + + void updateMenu(); + +private slots: + void takeSnapshot(); + void clearSnapshots(); + void deleteSnapshot(SnapShot* snapshot); + +}; + +#endif /* SNAPSHOTMANAGER_H */