50 lines
1.3 KiB
C
50 lines
1.3 KiB
C
|
|
#ifndef PST_SELECTDATADIALOG_H
|
|||
|
|
#define PST_SELECTDATADIALOG_H
|
|||
|
|
|
|||
|
|
#include <ElaWidget.h>
|
|||
|
|
#include <QModelIndexList>
|
|||
|
|
#include <QPair>
|
|||
|
|
#include <QList>
|
|||
|
|
|
|||
|
|
class ElaComboBox;
|
|||
|
|
namespace pst
|
|||
|
|
{
|
|||
|
|
class Curve2DKeySelcetBar;
|
|||
|
|
|
|||
|
|
class SelectDatatDialog : public ElaWidget
|
|||
|
|
{
|
|||
|
|
Q_OBJECT
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
SelectDatatDialog(QWidget* parent = nullptr);
|
|||
|
|
|
|||
|
|
void setDialogTitle(const QString& title);
|
|||
|
|
QString getDialogTitle() const;
|
|||
|
|
|
|||
|
|
/// @brief 设置所有数据
|
|||
|
|
void setDataList(const QList<QPair<QString, QList<double>>>& dataList);
|
|||
|
|
QList<QPair<QString, QList<double>>> getDataList() const;
|
|||
|
|
|
|||
|
|
void updateUI();
|
|||
|
|
|
|||
|
|
|
|||
|
|
public slots:
|
|||
|
|
void slot_sendChosenInfo();
|
|||
|
|
void slot_variableIndexChanged(int index);
|
|||
|
|
signals:
|
|||
|
|
/// @brief 发送选择的数据信息
|
|||
|
|
/// variableIndex 选择的变量下标
|
|||
|
|
/// chosenData 除variableIndex外,选择的每一个变量和对应的数据
|
|||
|
|
void signal_sendSelectedInfo(int& variableIndex, QList<QPair<int, QList<int>>>& chosenData);
|
|||
|
|
|
|||
|
|
//public slots:
|
|||
|
|
// void slot_getSelectedInfo(const QModelIndexList& ids);
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
QList<QPair<QString, QList<double>>> m_dataList;
|
|||
|
|
ElaComboBox* m_variableAxisValue;
|
|||
|
|
QList<Curve2DKeySelcetBar*> m_keySelectBarList;
|
|||
|
|
};
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#endif
|