Textractor/GUI/mainwindow.h

44 lines
1.0 KiB
C
Raw Normal View History

2018-12-01 19:12:45 -05:00
#pragma once
2018-07-21 15:40:16 -07:00
2018-08-22 12:24:55 -04:00
#include "qtcommon.h"
#include "host/host.h"
2018-07-21 15:40:16 -07:00
2018-07-23 12:25:02 -07:00
namespace Ui
{
2018-07-25 10:46:59 -07:00
class MainWindow;
2018-07-21 15:40:16 -07:00
}
class MainWindow : public QMainWindow
{
public:
2018-07-25 10:46:59 -07:00
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
2018-07-21 15:40:16 -07:00
private:
inline static thread_local bool ok = false;
2018-12-18 12:14:54 -05:00
void closeEvent(QCloseEvent*) override;
void ProcessConnected(DWORD processId);
void ProcessDisconnected(DWORD processId);
void ThreadAdded(TextThread* thread);
void ThreadRemoved(TextThread* thread);
bool SentenceReceived(TextThread* thread, std::wstring& sentence);
2018-08-22 15:11:40 -04:00
QString TextThreadString(TextThread* thread);
ThreadParam ParseTextThreadString(QString ttString);
2018-08-22 15:11:40 -04:00
DWORD GetSelectedProcessId();
2019-01-01 17:50:22 -05:00
std::unordered_map<const char*, int64_t> GetMiscInfo(TextThread* thread);
2018-12-18 12:14:54 -05:00
void AttachProcess();
void LaunchProcess();
2018-12-18 12:14:54 -05:00
void DetachProcess();
void AddHook();
void SaveHooks();
void Settings();
void Extensions();
void ViewThread(int index);
2018-07-25 21:48:18 -07:00
2018-09-01 13:56:45 -04:00
Ui::MainWindow* ui;
QWidget* extenWindow;
2019-02-03 08:49:58 -05:00
std::pair<uint64_t, uint64_t> savedThreadCtx;
wchar_t savedThreadCode[1000];
2018-07-21 15:40:16 -07:00
};