47 lines
878 B
C++
47 lines
878 B
C++
#pragma once
|
|
|
|
#include <QWidget>
|
|
#include "ui_AddParamSetting.h"
|
|
|
|
class AddParamSetting : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AddParamSetting(const QString& strDir, QWidget *parent = nullptr);
|
|
~AddParamSetting();
|
|
|
|
void AttachDock(class DockWidget* dockWidget);
|
|
|
|
protected:
|
|
void InitTable();
|
|
void InsertRow();
|
|
void InsertRow(QStringList values);
|
|
void RemoveRow();
|
|
|
|
void ResetTable();
|
|
|
|
protected slots:
|
|
void slotSelectDataType(const QString& strType);
|
|
|
|
void slotButtonAdd();
|
|
void slotButtonRemove();
|
|
void slotButtonCommit();
|
|
|
|
|
|
void slotIntMaxValueChanged(int iValue);
|
|
void slotIntMinValueChanged(int iValue);
|
|
|
|
void slotFloatMaxValueChanged(double fValue);
|
|
void slotFloatMinValueChanged(double fValue);
|
|
void slotDecimalsChanged(int iValue);
|
|
|
|
private:
|
|
Ui::AddParamSettingClass ui;
|
|
|
|
QString m_strDir;
|
|
|
|
QStringList listType;
|
|
QMap<QString, QString> mapDataDes;
|
|
};
|