#ifndef ECHOGRAM_H #define ECHOGRAM_H #include #include #include #include #include #include #include "plot.h" #include "matrixData.h" #include class Echogram:public QMainWindow { Q_OBJECT public: Echogram( PlotOptions* p, int chanSize, QWidget* parent = NULL, MatrixData* data = NULL ); ~Echogram(); void redraw(); // Calls the plot window's redraw function. public slots: void updateWindow(); // Emits the updateWin signal. void printWindow(); // Print the Echogram plot. signals: void windowClosed( QObject* win ); void updateWin( PlotOptions* p ); protected: void closeEvent( QCloseEvent* event ); // Redefine the closeEvent function for cleanup of the window. private: void createMenus(); // Creates the menu for the window. void reset(); void setStatusBarText(); // Sets the message displayed in the status bar of the Echogram window. enum { numButtons = 2 }; Plot* echoPlot; PlotOptions* plot; QPushButton* buttons[ numButtons ]; QGroupBox* buttonBox; }; #endif // ECHOGRAM_H