code_app/modules/twainui/dialog_source_select.h

42 lines
939 B
C
Raw Normal View History

2023-08-12 07:30:33 +00:00
#ifndef DIALOG_SOURCE_SELECT_H
#define DIALOG_SOURCE_SELECT_H
#include <QDialog>
#include <string>
#include <vector>
#include "twainui.h"
namespace Ui {
class Dialog_Source_Select;
}
class Dialog_Source_Select : public QDialog
{
Q_OBJECT
public:
explicit Dialog_Source_Select(const std::vector<std::pair<std::string, std::string> > &source, QWidget *parent = 0);
~Dialog_Source_Select();
std::string GetManuName();
HGDll GetDll();
void GetSaneAPI(SANEAPI *saneAPI);
private slots:
void on_pushButton_OK_clicked();
void on_pushButton_Cancel_clicked();
private:
HGResult FindFunctions(HGDll dll, const HGChar* saneManu, SANEAPI *saneAPI);
private:
Ui::Dialog_Source_Select *ui;
std::vector<std::pair<std::string, std::string> > m_vSource;
std::string m_strManuName;
HGDll m_dll;
SANEAPI m_saneApi;
};
#endif // DIALOG_SOURCE_SELECT_H