2016-03-17 19:46:40 +11:00
|
|
|
#ifndef BACKGROUND_H
|
|
|
|
#define BACKGROUND_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
2016-03-29 17:42:24 +11:00
|
|
|
#include <QSettings>
|
2016-05-01 22:01:03 +10:00
|
|
|
#include <QMenu>
|
|
|
|
#include <QDesktopWidget>
|
2016-07-01 14:01:19 +10:00
|
|
|
#include <QSvgRenderer>
|
2016-05-01 22:01:03 +10:00
|
|
|
#include "mainwindow.h"
|
|
|
|
#include "choosebackground.h"
|
|
|
|
|
2016-06-29 21:29:55 +10:00
|
|
|
#include <X11/Xlib.h>
|
|
|
|
|
2016-05-01 22:01:03 +10:00
|
|
|
class ChooseBackground;
|
2016-03-17 19:46:40 +11:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class Background;
|
|
|
|
}
|
|
|
|
|
|
|
|
class Background : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2016-06-29 21:29:55 +10:00
|
|
|
explicit Background(MainWindow* mainwindow, QRect screenGeometry, QWidget *parent = 0);
|
2016-03-17 19:46:40 +11:00
|
|
|
~Background();
|
|
|
|
|
2016-06-29 21:29:55 +10:00
|
|
|
void show();
|
|
|
|
|
2016-05-01 22:01:03 +10:00
|
|
|
private slots:
|
|
|
|
void on_graphicsView_customContextMenuRequested(const QPoint &pos);
|
|
|
|
|
|
|
|
void on_actionOpen_Status_Center_triggered();
|
|
|
|
|
|
|
|
void on_actionOpen_theShell_Settings_triggered();
|
|
|
|
|
|
|
|
void on_actionOpen_System_Settings_triggered();
|
|
|
|
|
|
|
|
void on_actionChange_Background_triggered();
|
|
|
|
|
2016-03-17 19:46:40 +11:00
|
|
|
private:
|
|
|
|
Ui::Background *ui;
|
2016-05-01 22:01:03 +10:00
|
|
|
|
|
|
|
MainWindow* mainwindow;
|
2016-03-17 19:46:40 +11:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BACKGROUND_H
|