#ifndef LEGENDFORM_H #define LEGENDFORM_H #include #include #include "BaseWgt.h" class QTableWidgetItem; namespace Ui { class LegendForm; } class LegendForm : public BaseWgt { Q_OBJECT public: explicit LegendForm(QWidget *parent = nullptr); ~LegendForm(); void SetChannelIDs(const QStringList &strIDList); void SetValue(QString strID, QString strValue); private: void Init(); QTableWidgetItem * AddTableWgtItem(QString strText, QString strID); private: Ui::LegendForm *ui; QStringList m_strIDList; QMap m_mapChannelIDtoItem; }; #endif // LEGENDFORM_H