42 lines
882 B
C++
42 lines
882 B
C++
#ifndef DIALOG_SOURCE_SELECT_H
|
|
#define DIALOG_SOURCE_SELECT_H
|
|
|
|
#include <QDialog>
|
|
#include <string>
|
|
#include <vector>
|
|
#include "HGSaneUI.h"
|
|
|
|
namespace Ui {
|
|
class Dialog_Source_Select;
|
|
}
|
|
|
|
class Dialog_Source_Select : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Dialog_Source_Select(const char **manuNames, const char **sanePaths, 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
|