#ifndef CHANNELMASKS_H #define CHANNELMASKS_H #include #include #include #include #include #include #include #include class ChannelMasks : public QMainWindow { Q_OBJECT public: ChannelMasks( int chans, QWidget* parentCP, QWidget* parent ); // Default constructor. ~ChannelMasks(); // Default destructor. bool chanMasked( int num ); // Return whether the specified channel is masked. bool hddMasked( int num ); // Return whether the specified channe's HDDs are masked. int chanMaskedNum(); // Return the number of masked channels. int hddMaskedNum(); // Return the number of masked hdds. public slots: void closeEvent( QCloseEvent* event ); void checked(); // Check if a channel has been masked, and mask the corresponding hdd. void closeWindow(); // When the Close Window button is clicked. private: enum { cLabels = 3 }; void saveMasksToFile(); // Save the masks to a file. QGridLayout* layout; QLabel* colLabels[ cLabels ]; QLabel** rowLabels; QCheckBox** chanCheck; QCheckBox** hddCheck; QPushButton* closeButton; //QCheckBox** hddCheck0; //QCheckBox** hddCheck1; int channels; }; #endif // CHANNELMASKS_H