#ifndef REFPULSE_H #define REFPULSE_H #include #include #include #include #include #include #include "ref.h" #include "matrixData.h" #include #include #include #include #include #include #include "ref.h" #include "matrixData.h" class RefPulse:public QMainWindow { Q_OBJECT public: RefPulse( PlotOptions* p, QWidget* parent = NULL, MatrixData* data = NULL ); //Default Constructor void redraw(); //Redraws the window and widgets displayed inside. void resetCurves(); // Reset the curves being displayed in the Ref object. public slots: void updateWindow(); signals: void windowClosed( QObject* win ); //Signal that the window has been closed by the user. void updateWin( PlotOptions* p ); // Signal that the plot options need to be updated. protected: void closeEvent( QCloseEvent* event ); //Redefinition of the closeEvent function to clean up the window vector. private: enum { numButtons = 1 }; Ref* refPulsePlot; //APlot pointer to the object used to plot the Reference Pulse in the window. PlotOptions* plot; MatrixData* d; QString statusText; //Text shown in the status bar of the window. QPushButton* buttons[ numButtons ]; QGroupBox* buttonBox; void createButtons(); // Create a menu for the window. }; #endif // REFPULSE_H