50 lines
1.4 KiB
C
Raw Normal View History

2024-02-07 20:59:24 +08:00
#include"window.h"
#include"controls.h"
#include"processlistwindow.h"
#include"textthread.h"
2024-02-08 16:18:33 +08:00
#include"pluginmanager.h"
2024-02-09 09:25:26 +08:00
#include"confighelper.h"
class LunaHost;
class Pluginwindow:public mainwindow{
listbox* listplugins;
Pluginmanager* pluginmanager;
public:
Pluginwindow(mainwindow*,Pluginmanager*);
void on_size(int w,int h);
};
class Settingwindow:public mainwindow{
checkbox* ckbfilterrepeat;
spinbox* g_timeout;
spinbox* g_codepage;
2024-02-09 09:25:26 +08:00
checkbox* g_check_clipboard;
public:
Settingwindow(LunaHost*);
};
2024-02-07 20:59:24 +08:00
class LunaHost:public mainwindow{
2024-02-09 09:25:26 +08:00
Pluginwindow* pluginwindow=0;
2024-02-07 20:59:24 +08:00
std::map<int64_t,std::vector<std::wstring>>savetext;
std::vector<int>attachedprocess;
std::mutex settextmutex;
textedit* g_hEdit_userhook;
button* g_hButton_insert;
2024-02-09 09:25:26 +08:00
button* btnplugin;
2024-02-07 20:59:24 +08:00
listbox* g_hListBox_listtext;
textedit* g_showtexts;
button* g_selectprocessbutton;
2024-02-09 09:25:26 +08:00
button* btnshowsettionwindow;
2024-02-07 20:59:24 +08:00
void toclipboard(std::wstring& sentence);
processlistwindow *_processlistwindow=0;
2024-02-09 09:25:26 +08:00
Settingwindow *settingwindow=0;
Pluginmanager* plugins;
2024-02-08 16:18:33 +08:00
bool on_text_recv(TextThread& thread, std::wstring& sentence);
void on_thread_create(TextThread& thread);
void on_thread_delete(TextThread& thread);
2024-02-07 20:59:24 +08:00
public:
2024-02-09 09:25:26 +08:00
confighelper* configs;
2024-02-08 19:12:20 +08:00
int64_t currentselect=0;
bool check_toclipboard=false;
2024-02-07 20:59:24 +08:00
void on_size(int w,int h);
void on_close();
LunaHost();
2024-02-09 09:25:26 +08:00
};