#ifndef WAVEFORMPARAMS_H #define WAVEFORMPARAMS_H #include #include #include #include #include #include #include #include #include #include #include #include "constants.h" class WaveformParams : public QWidget { Q_OBJECT public: WaveformParams( int wf, WaveformParams* sib, QWidget* parent ); // Default constructor. ~WaveformParams(); // Default destructor. void setValue( int table, int row, int column, QString value ); // Set the value in a cell for a specific table. QString getValue( int table, int row, int column ); // Get the value in a cell for a specific table. int getNumber(); // Get the waveform number. public slots: void dChanged( int r, int c ); // Function to perform actions when a cell's value is changed from the dds table. //void pChanged( int r, int c ); // Function to perform actions when a cell's value is changed from the pulse table. //void aChanged( int r, int c ); // Function to perform actions when a cell's value is changed from the attention table. void gChanged(); // Functoin to perform actions when a QLineEdit's value is changed. signals: void writeMsg( QString text, int type ); // Signal to write to a log file. void valueChanged( int table); // Signal that a value has changed. private: enum{ genNum = 9 }; void setZeros(); // Set all the values to 0. void copyVals(); // Copy the values from one object to the other. WaveformParams* sibling; // Waveform tab to copy values from when creating a new object. QTableWidget* ddsTable; // Table for DDS parameters. QTableWidget* pulseTable; // Table for the pulse parameters. QTableWidget* attentionTable; // Table for the attention parameters. QLabel* genLabels[ genNum ]; // Labels for the general parameters. QLineEdit* genLines[ genNum ]; // Lines for the general parameters. QComboBox* genComboMod; // Combo box for the Zero Mod Pi field. int wfNum; // The number of the waveform at creation. }; #endif // WAVEFORMPARAMS_H