Files @ 099df007158d
Branch filter:

Location: tempo-plotter/snapshot.h - annotation

Hasan Yavuz ÖZDERYA
implemented delete snapshot function and showing snapshot name in the title
#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 */