2022-12-09 07:31:09 +00:00
|
|
|
|
//
|
|
|
|
|
#pragma once
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <utility/known_file.h>
|
|
|
|
|
#pragma comment(lib, "base_util.lib")
|
|
|
|
|
|
|
|
|
|
#define WM_GET_TEST_ITEM_NAME WM_USER + 100 // WPARAM: (wchar_t*)title, LPARAM: (ITEM*)item
|
2022-12-09 08:56:15 +00:00
|
|
|
|
#define WM_GET_TEST_ITEM_TITLE WM_USER + 101 // WPARAM: (wchar_t*)name, LPARAM: (ITEM*)item
|
|
|
|
|
#define WM_TO_ITEM_MGR_TAB WM_USER + 102
|
|
|
|
|
#define WM_TEST_ITEM_CHANGED WM_USER + 103
|
2022-12-09 07:31:09 +00:00
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <algorithm>
|
|
|
|
|
|
|
|
|
|
class page_config
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
page_config()
|
|
|
|
|
{}
|
|
|
|
|
virtual ~page_config()
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
typedef struct _item
|
|
|
|
|
{
|
|
|
|
|
std::wstring name;
|
|
|
|
|
std::wstring title;
|
2022-12-14 09:59:02 +00:00
|
|
|
|
std::wstring desc;
|
2022-12-09 07:31:09 +00:00
|
|
|
|
bool man;
|
|
|
|
|
bool fatal;
|
|
|
|
|
|
|
|
|
|
bool operator==(const wchar_t* t)
|
|
|
|
|
{
|
|
|
|
|
return title == t;
|
|
|
|
|
}
|
|
|
|
|
}ITEM;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
virtual std::wstring export_config(bool *ok/*return error message if this returned false*/, bool used_in_code = false, int code_ver = 1) = 0;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern INTER_MODULE_CALLBACK(got_wstr);
|
|
|
|
|
extern INTER_MODULE_CALLBACK(got_str);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|