53 lines
1.1 KiB
C
53 lines
1.1 KiB
C
|
#pragma once
|
|||
|
|
|||
|
#include <Windows.h>
|
|||
|
#include <string>
|
|||
|
#include <vector>
|
|||
|
|
|||
|
#include "DlgBase.h"
|
|||
|
|
|||
|
// CDlgIndicator 对话框
|
|||
|
|
|||
|
typedef struct _read_eof
|
|||
|
{
|
|||
|
bool ret_eof;
|
|||
|
std::wstring name;
|
|||
|
}readeof;
|
|||
|
enum { NOTIFY_AUTO = 0, NOTIFY_ALWAYS, NOTIFY_NONE };
|
|||
|
class dlg_adv_cfg : public dlg_base
|
|||
|
{
|
|||
|
std::wstring log_method_ = L"file";
|
|||
|
std::wstring log_level_ = L"all";
|
|||
|
std::wstring log_file_;
|
|||
|
int twain_log_level_ = 1;
|
|||
|
bool twain_log_all_triples_ = false;
|
|||
|
std::wstring tmp_img_path_;
|
|||
|
bool dump_images_;
|
|||
|
std::wstring dump_img_path_;
|
|||
|
std::vector<readeof> eof_procs_;
|
|||
|
int max_mem_ = 1000;
|
|||
|
|
|||
|
int notify_close_ = 0;
|
|||
|
bool enable_opencv_adv_ = true;
|
|||
|
std::wstring debug_cfg_path_;
|
|||
|
|
|||
|
BOOL handle_message(UINT msg, WPARAM wp, LPARAM lp) override;
|
|||
|
void handle_command(WORD code, WORD id, HANDLE ctrl);
|
|||
|
BOOL on_notify(int ctrl_id, LPNMHDR pnmh);
|
|||
|
|
|||
|
void on_init_dlg(void);
|
|||
|
void on_lost_focus(HWND wnd);
|
|||
|
void on_combox_sel_changed(HWND wnd);
|
|||
|
void on_button_clicked(HWND wnd, WORD id);
|
|||
|
|
|||
|
void init(void);
|
|||
|
void load_from_file(const wchar_t* file);
|
|||
|
void save_to_file(const wchar_t* file);
|
|||
|
|
|||
|
public:
|
|||
|
dlg_adv_cfg(HWND parent);
|
|||
|
~dlg_adv_cfg();
|
|||
|
|
|||
|
public:
|
|||
|
};
|