KShare/mainwindow.hpp
2017-06-23 14:39:51 +02:00

53 lines
1.1 KiB
C++

#ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP
#include <QDoubleSpinBox>
#include <QMainWindow>
#include <QMap>
#include <QSystemTrayIcon>
#include <functional>
#include <recording/recordingcontroller.hpp>
#include <uploaders/uploader.hpp>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow {
Q_OBJECT
private slots:
void quit();
void toggleVisible();
void on_actionQuit_triggered();
void on_actionFullscreen_triggered();
void on_actionArea_triggered();
void on_actionStart_triggered();
void on_actionStop_triggered();
void on_actionSettings_triggered();
void on_actionColor_Picker_triggered();
void on_actionAbout_triggered();
public:
static MainWindow *inst();
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
bool valid();
Ui::MainWindow *ui;
RecordingController *controller = new RecordingController;
QSystemTrayIcon *tray;
public slots:
void rec();
private:
bool val = false;
static MainWindow *instance;
protected:
void closeEvent(QCloseEvent *event);
};
#endif // MAINWINDOW_HPP