#ifndef CHANNELFEEDBACK_H #define CHANNELFEEDBACK_H #include #include #include #include #include #include #include #include class ChannelFeedback : public QWidget { Q_OBJECT public: ChannelFeedback(); // Default constructor. ~ChannelFeedback(); // Defautl destructor. QGroupBox* getGroupBox( QString title ); // Return the QGroupBox containing the module. // Functions to set either one LED light or all of them. void setAllLED( QColor color ); void setPPSLED( QColor color ); void setEPRILED( QColor color ); void setRefreshLED( QColor color ); // Functions to change the value displayed in the appropriate text box. void setUTC( QString value ); void setPPS( QString value ); void setEPRI( QString value ); void setRefresh( QString value ); void setMaxPPS( long int pps ); // Set the maximum value for a good pps. private: enum{ numStatus = 4, numStatusLEDs = 3, PPS = 0, EPRI = 1, REFRESH = 2 }; QGroupBox* feedbackBox; QLabel* statusLabels[ numStatus ]; QLabel* statusLabelLEDs[ numStatusLEDs ]; QLineEdit* statusLines[ numStatus ]; QFrame* statusLED[ numStatusLEDs ]; QVBoxLayout* layout; QGroupBox* chBox; long int maxPPS; // The max pps value. long int currentEPRI; // The current EPRI value. }; #endif // CHANNELFEEDBACK_H