code_production/app/HGProductionTool/dialog_userinput.h

54 lines
1004 B
C++

#ifndef DIALOG_USERINPUT_H
#define DIALOG_USERINPUT_H
#include <QDialog>
#include "ui_helper.h"
#include <string>
namespace Ui {
class Dialog_UserInput;
}
class UserInputParams : public parameter
{
public:
UserInputParams(ui_helper::value_type type);
~UserInputParams();
size_t get_size();
void* get_data();
ui_helper::value_type m_type;
bool m_bData;
int m_iData;
float m_fData;
std::wstring m_sData;
};
class Dialog_UserInput : public QDialog
{
Q_OBJECT
public:
explicit Dialog_UserInput(ui_helper::value_type type, const QString &title, const wchar_t* desc, QWidget *parent = nullptr);
~Dialog_UserInput();
parameter *getParam();
void setDistortValue(double value);
void setFwLanguageMode();
void setDefaultSkewValue();
private slots:
void on_pbtn_yes_clicked();
void on_pbtn_no_clicked();
private:
Ui::Dialog_UserInput *ui;
ui_helper::value_type m_type;
QString m_title;
};
#endif // DIALOG_USERINPUT_H