14 #if QT_VERSION >= 0x050000
15 #include <QtWidgets/QMainWindow>
17 #include <QtGui/QMainWindow>
24 class HistogramBackend;
70 virtual void print()
const;
virtual void print() const
print the plot
void viewerClosed(DataViewer *viewer)
signal emitted when viewer is about to be destroyed
virtual QList< Data * > data()=0
retrieve the data displayed by this viewer
QwtPlot * _plot
the plot inside which the data will be displayed
virtual ~DataViewer()
destructor
void resizeEvent(QResizeEvent *event)
receive resize events to store the current size to the settings
void closeEvent(QCloseEvent *event)
react when a close event is send to this viewer
DataViewer(QString title, QWidget *parent)
constructor
virtual QString type() const =0
retrieve the type of the data viewer
virtual QStringList dataFileSuffixes() const =0
the list of file types that the data can be stored as by this viewer
virtual void saveData(const QString &filename)=0
save the data to file
virtual void dataChanged()
use this to tell that the data has changed
void moveEvent(QMoveEvent *event)
receive move events to store the current position to the settings