2022-12-03 22:27:49 +01:00
|
|
|
#ifndef MAINPICKER_H
|
|
|
|
#define MAINPICKER_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QEvent>
|
2022-12-10 21:19:22 +01:00
|
|
|
#include <unordered_map>
|
2022-12-03 22:27:49 +01:00
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
namespace Ui { class MainPicker; }
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
class MainPicker : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
MainPicker(QWidget *parent = nullptr);
|
|
|
|
~MainPicker();
|
|
|
|
|
|
|
|
void onMonitorButtonClicked(QObject* target, QEvent* event);
|
|
|
|
|
2022-12-10 21:19:22 +01:00
|
|
|
std::unordered_map<void*, int> windowIDs; // button -> id
|
|
|
|
|
2022-12-03 22:27:49 +01:00
|
|
|
private:
|
|
|
|
Ui::MainPicker *ui;
|
|
|
|
};
|
|
|
|
#endif // MAINPICKER_H
|