#ifndef ASCOPE_H #define ASCOPE_H #include #include #include #include #include #include #include "aplot.h" #include "matrixData.h" class AScope:public QMainWindow { Q_OBJECT public: AScope( 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 APlot object. public slots: void updateWindow(); void scaleWindow(); 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: void setStatusBarText(); // Sets the message displayed in the status bar of the Plot window. enum { numButtons = 2 }; APlot* aScopePlot; //APlot pointer to the object used to plot the A-Scope in the window. PlotOptions* plot; MatrixData* d; QString statusText; //Text shown in the status bar of the window. QPushButton* buttons[ numButtons ]; QGroupBox* buttonBox; void createMenus(); // Create a menu for the window. }; #endif // ASCOPE_H