theshell/background.h

70 lines
1.7 KiB
C
Raw Normal View History

2017-08-05 15:20:02 +10:00
/****************************************
*
* theShell - Desktop Environment
* Copyright (C) 2017 Victor Tran
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* *************************************/
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>
#include <QMenu>
#include <QDesktopWidget>
2016-07-01 14:01:19 +10:00
#include <QSvgRenderer>
#include "mainwindow.h"
#include "choosebackground.h"
#include <X11/Xlib.h>
class ChooseBackground;
2016-03-17 19:46:40 +11:00
namespace Ui {
class Background;
}
class Background : public QDialog
{
Q_OBJECT
public:
explicit Background(MainWindow* mainwindow, QRect screenGeometry, QWidget *parent = 0);
2016-03-17 19:46:40 +11:00
~Background();
void show();
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;
void reject();
MainWindow* mainwindow;
2016-03-17 19:46:40 +11:00
};
#endif // BACKGROUND_H