37 lines
646 B
C++
37 lines
646 B
C++
#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
|