theshell/mainwindow.h

56 lines
1 KiB
C
Raw Normal View History

2016-02-17 17:24:00 +11:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
2016-03-17 19:46:40 +11:00
#include <QTimer>
#include <QList>
#include <QProcess>
#include <QSignalMapper>
#include <QDesktopWidget>
#include <QDateTime>
#include <QtDBus/QDBusConnection>
#include <QMessageBox>
#include "window.h"
#include "menu.h"
#include "notificationdbus.h"
#include "upowerdbus.h"
#include "UGlobalHotkey-master/uglobalhotkeys.h"
#include "infopanedropdown.h"
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/keysym.h>
#include <QX11Info>
2016-02-17 17:24:00 +11:00
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
2016-03-17 19:46:40 +11:00
private slots:
void on_pushButton_clicked();
void reloadWindows();
void activateWindow(QString windowTitle);
void on_time_clicked();
2016-02-17 17:24:00 +11:00
private:
Ui::MainWindow *ui;
2016-03-17 19:46:40 +11:00
QList<WmWindow*> *windowList;
int hideTop = 0;
bool hiding = false;
void keyPressEvent(QKeyEvent* event);
void grabKeys();
2016-02-17 17:24:00 +11:00
};
#endif // MAINWINDOW_H