Files
@ 099df007158d
Branch filter:
Location: tempo-plotter/snapshot.h - annotation
099df007158d
705 B
text/plain
implemented delete snapshot function and showing snapshot name in the title
77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 7c41467702e0 77513ca7b1d4 77513ca7b1d4 099df007158d 099df007158d 099df007158d 099df007158d 77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 099df007158d 099df007158d 099df007158d 77513ca7b1d4 099df007158d 099df007158d 099df007158d 77513ca7b1d4 77513ca7b1d4 7c41467702e0 7c41467702e0 7c41467702e0 099df007158d 099df007158d 77513ca7b1d4 77513ca7b1d4 77513ca7b1d4 | #ifndef SNAPSHOT_H
#define SNAPSHOT_H
#include <QObject>
#include <QMainWindow>
#include <QAction>
#include <QVector>
class SnapShotView;
class SnapShot : public QObject
{
Q_OBJECT
public:
SnapShot(QMainWindow* parent, QString name);
~SnapShot();
QVector<QVector<QPointF>> data;
QAction* showAction();
QAction* deleteAction();
QString name();
public slots:
void show();
void hide();
signals:
void deleteRequested(SnapShot*);
private:
QString _name;
QAction _showAction;
QAction _deleteAction;
QMainWindow* mainWindow;
SnapShotView* view;
private slots:
void viewClosed();
void onDeleteTriggered();
};
#endif /* SNAPSHOT_H */
|