2022-12-27 08:25:47 +00:00
|
|
|
#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;
|
2023-01-05 11:33:10 +00:00
|
|
|
float m_fData;
|
2022-12-27 08:25:47 +00:00
|
|
|
std::wstring m_sData;
|
|
|
|
};
|
|
|
|
|
|
|
|
class Dialog_UserInput : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-12-28 13:03:01 +00:00
|
|
|
explicit Dialog_UserInput(ui_helper::value_type type, const QString &title, const wchar_t* desc, QWidget *parent = nullptr);
|
2022-12-27 08:25:47 +00:00
|
|
|
~Dialog_UserInput();
|
|
|
|
|
|
|
|
parameter *getParam();
|
2023-02-08 10:24:19 +00:00
|
|
|
void setDistortValue(double value);
|
2024-01-19 01:10:31 +00:00
|
|
|
void setFwLanguageMode();
|
2024-07-11 02:08:51 +00:00
|
|
|
void setDefaultSkewValue();
|
2022-12-27 08:25:47 +00:00
|
|
|
|
|
|
|
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
|