Textractor_test/GUI/mainwindow.h

39 lines
802 B
C
Raw Normal View History

2018-07-22 06:40:16 +08:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
2018-07-24 13:57:54 +08:00
#include <Windows.h>
#include "../texthook/textthread.h"
#include "hostsignaller.h"
2018-07-22 06:40:16 +08:00
2018-07-24 03:25:02 +08:00
namespace Ui
{
2018-07-26 01:46:59 +08:00
class MainWindow;
2018-07-22 06:40:16 +08:00
}
class MainWindow : public QMainWindow
{
2018-07-26 01:46:59 +08:00
Q_OBJECT
2018-07-22 06:40:16 +08:00
public:
2018-07-26 01:46:59 +08:00
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
2018-07-22 06:40:16 +08:00
2018-07-26 01:46:59 +08:00
QString ProcessOutput(TextThread *thread, QString output);
2018-07-24 03:25:02 +08:00
private slots:
2018-07-26 01:46:59 +08:00
void on_attachButton_clicked();
void on_detachButton_clicked();
void on_ttCombo_activated(int index);
void AddProcess(unsigned int processId);
void RemoveProcess(unsigned int processId);
void AddThread(TextThread* thread);
void RemoveThread(TextThread* thread);
void ThreadOutput(TextThread* thread, QString output);
2018-07-24 03:25:02 +08:00
2018-07-22 06:40:16 +08:00
private:
2018-07-26 01:46:59 +08:00
Ui::MainWindow *ui;
HostSignaller* hostSignaller;
2018-07-22 06:40:16 +08:00
};
#endif // MAINWINDOW_H