2018-11-05 05:37:23 +08:00
|
|
|
#ifndef WINDOW_H
|
|
|
|
#define WINDOW_H
|
|
|
|
|
2018-11-05 10:19:00 +08:00
|
|
|
#include "common.h"
|
2018-11-05 05:37:23 +08:00
|
|
|
#include <QMainWindow>
|
|
|
|
#include <QListWidget>
|
|
|
|
|
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class Window;
|
|
|
|
}
|
|
|
|
|
|
|
|
class Window : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit Window(QWidget *parent = nullptr);
|
|
|
|
~Window();
|
|
|
|
|
|
|
|
Ui::Window* ui;
|
|
|
|
std::mutex m;
|
|
|
|
std::unordered_map<int64_t, std::unordered_multiset<int64_t>> linkedTextHandles;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_linkButton_clicked();
|
|
|
|
void on_unlinkButton_clicked();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QListWidget* threadLinkList;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // WINDOW_H
|