KShare/mainwindow.hpp

55 lines
1.1 KiB
C++
Raw Normal View History

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
#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 {
Q_OBJECT
private slots:
void quit();
void toggleVisible();
2017-04-23 15:05:48 +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();
void on_actionSettings_triggered();
2017-06-23 14:39:51 +02:00
void on_actionColor_Picker_triggered();
void on_actionAbout_triggered();
2017-06-17 17:32:47 +02:00
void on_actionActive_window_triggered();
public:
static MainWindow *inst();
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
bool valid();
Ui::MainWindow *ui;
RecordingController *controller = new RecordingController;
2017-04-23 15:05:48 +02:00
QSystemTrayIcon *tray;
public slots:
void rec();
2017-04-25 22:17:36 +02:00
private:
bool val = false;
static MainWindow *instance;
2017-04-23 15:05:48 +02:00
protected:
void closeEvent(QCloseEvent *event);
2017-04-23 15:05:48 +02:00
};
#endif // MAINWINDOW_HPP