2017-04-23 15:05:48 +02:00
|
|
|
#ifndef MAINWINDOW_HPP
|
|
|
|
#define MAINWINDOW_HPP
|
|
|
|
|
2017-04-25 22:36:33 +02:00
|
|
|
#include <QDoubleSpinBox>
|
2017-04-23 15:05:48 +02:00
|
|
|
#include <QMainWindow>
|
2017-04-26 22:00:13 +02:00
|
|
|
#include <QMap>
|
2017-04-23 15:05:48 +02:00
|
|
|
#include <QSystemTrayIcon>
|
2017-04-26 22:00:13 +02:00
|
|
|
#include <functional>
|
2017-04-23 15:05:48 +02:00
|
|
|
|
2017-06-04 01:04:42 +02:00
|
|
|
#include <recording/recordingcontroller.hpp>
|
2017-04-25 21:27:29 +02:00
|
|
|
#include <uploaders/uploader.hpp>
|
|
|
|
|
2017-05-06 13:21:12 +02:00
|
|
|
namespace Ui {
|
2017-04-23 15:05:48 +02:00
|
|
|
class MainWindow;
|
|
|
|
}
|
|
|
|
|
2017-05-06 13:21:12 +02:00
|
|
|
class MainWindow : public QMainWindow {
|
2017-05-09 17:26:00 +02:00
|
|
|
Q_OBJECT
|
2017-06-04 01:04:42 +02:00
|
|
|
private slots:
|
2017-05-09 17:26:00 +02:00
|
|
|
void quit();
|
|
|
|
void toggleVisible();
|
2017-04-23 15:05:48 +02:00
|
|
|
|
2017-05-09 17:26:00 +02:00
|
|
|
void on_actionQuit_triggered();
|
|
|
|
void on_actionFullscreen_triggered();
|
|
|
|
void on_actionArea_triggered();
|
2017-06-18 23:31:40 +02:00
|
|
|
void on_actionStart_triggered();
|
|
|
|
void on_actionStop_triggered();
|
2017-06-22 17:41:29 +02:00
|
|
|
void on_actionSettings_triggered();
|
2017-06-23 14:39:51 +02:00
|
|
|
void on_actionColor_Picker_triggered();
|
2017-06-22 17:41:29 +02:00
|
|
|
void on_actionAbout_triggered();
|
2017-06-17 17:32:47 +02:00
|
|
|
|
2017-06-27 18:29:08 +02:00
|
|
|
void on_actionActive_window_triggered();
|
|
|
|
|
2017-06-04 01:04:42 +02:00
|
|
|
public:
|
2017-06-22 17:41:29 +02:00
|
|
|
static MainWindow *inst();
|
2017-05-09 17:26:00 +02:00
|
|
|
explicit MainWindow(QWidget *parent = 0);
|
|
|
|
~MainWindow();
|
2017-06-22 17:41:29 +02:00
|
|
|
bool valid();
|
2017-05-09 17:26:00 +02:00
|
|
|
Ui::MainWindow *ui;
|
2017-06-22 17:41:29 +02:00
|
|
|
RecordingController *controller = new RecordingController;
|
2017-04-23 15:05:48 +02:00
|
|
|
|
2017-05-09 17:26:00 +02:00
|
|
|
QSystemTrayIcon *tray;
|
2017-06-22 17:41:29 +02:00
|
|
|
public slots:
|
|
|
|
void rec();
|
2017-04-25 22:17:36 +02:00
|
|
|
|
2017-06-04 01:04:42 +02:00
|
|
|
private:
|
2017-06-22 17:41:29 +02:00
|
|
|
bool val = false;
|
2017-05-09 17:26:00 +02:00
|
|
|
static MainWindow *instance;
|
2017-04-23 15:05:48 +02:00
|
|
|
|
2017-06-04 01:04:42 +02:00
|
|
|
protected:
|
2017-05-09 17:26:00 +02:00
|
|
|
void closeEvent(QCloseEvent *event);
|
2017-04-23 15:05:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_HPP
|