You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.1 KiB

5 years ago
#ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP
#include <QDoubleSpinBox>
5 years ago
#include <QMainWindow>
#include <QMap>
5 years ago
#include <QSystemTrayIcon>
#include <functional>
5 years ago
#include <uploaders/uploader.hpp>
5 years ago
namespace Ui
{
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
private slots:
void quit();
void toggleVisible();
void newUploader(Uploader *u);
5 years ago
void on_actionQuit_triggered();
void on_actionFullscreen_triggered();
void on_actionArea_triggered();
void on_uploaderList_clicked(const QModelIndex &);
5 years ago
void on_nameScheme_textEdited(const QString &arg1);
5 years ago
void on_delay_valueChanged(double arg1);
void on_hotkeys_doubleClicked(const QModelIndex &index);
5 years ago
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
Ui::MainWindow *ui;
5 years ago
5 years ago
QSystemTrayIcon *tray;
5 years ago
void setScheme(QString scheme);
QDoubleSpinBox *delay();
5 years ago
5 years ago
static MainWindow *inst();
QMap<QString, std::function<void()> *> fncs;
5 years ago
5 years ago
private:
5 years ago
static MainWindow *instance;
5 years ago
protected:
void closeEvent(QCloseEvent *event);
};
#endif // MAINWINDOW_HPP