37 lines
646 B
C
Raw Permalink Normal View History

2022-07-30 11:50:01 +08:00
#ifndef LEGENDFORM_H
#define LEGENDFORM_H
#include <QWidget>
#include <QMap>
#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<QString, QTableWidgetItem*> m_mapChannelIDtoItem;
};
#endif // LEGENDFORM_H