#ifndef MAINWINDOW_H #define MAINWINDOW_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "window.h" #include "menu.h" #include "notificationdbus.h" #include "upowerdbus.h" #include "UGlobalHotkey-master/uglobalhotkeys.h" #include "infopanedropdown.h" #include "thewave.h" #include "touchkeyboard.h" #include "powermanager.h" #include "systrayicons.h" #include "FlowLayout/flowlayout.h" #include #include #include #include #include #include #include #include #undef Bool namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT Q_PROPERTY(QRect geometry READ geometry WRITE setGeometry) public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); void setGeometry(int x, int y, int w, int h); void setGeometry(QRect geometry); InfoPaneDropdown* getInfoPane(); private slots: void on_pushButton_clicked(); void reloadWindows(); void activateWindow(QString windowTitle); void on_time_clicked(); void on_date_clicked(); void on_pushButton_2_clicked(); void internetLabelChanged(QString display); void on_networkLabel_clicked(); void on_notifications_clicked(); void on_batteryLabel_clicked(); void on_volumeFrame_MouseEnter(); void on_volumeFrame_MouseExit(); void on_volumeSlider_sliderMoved(int position); void on_volumeSlider_valueChanged(int value); void on_brightnessFrame_MouseEnter(); void on_brightnessFrame_MouseExit(); void on_brightnessSlider_sliderMoved(int position); void on_brightnessSlider_valueChanged(int value); void on_volumeSlider_sliderReleased(); void numNotificationsChanged(int notifications); void pullDownGesture(); void on_pushButton_4_clicked(); void setTimer(QString timer); void setTimerVisible(bool visible); void setTimerEnabled(bool enable); void on_timerIcon_clicked(); void on_timer_clicked(); void DBusNewService(QString name); void on_mprisPause_clicked(); void on_mprisBack_clicked(); void on_pushButton_3_clicked(); void on_mprisSongName_clicked(); void ActivateWindow(); private: Ui::MainWindow *ui; QList *windowList; int hideTop = 0; bool hiding = false; bool lockHide = false; int attentionDemandingWindows = 0; bool borderBlinkOn = true; bool warningAnimCreated = false; int warningWidth = 0; QString mprisCurrentAppName = ""; QStringList mprisDetectedApps; void closeEvent(QCloseEvent*); InfoPaneDropdown *infoPane; void paintEvent(QPaintEvent *event); }; #endif // MAINWINDOW_H