Plasma
backgrounddialog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef BACKGROUNDDIALOG_H
00012 #define BACKGROUNDDIALOG_H
00013
00014 #include <KDialog>
00015 #include "ui_BackgroundDialog.h"
00016
00017 namespace Plasma {
00018 class Wallpaper;
00019 class Containment;
00020 class View;
00021 }
00022
00023 class ScreenPreviewWidget;
00024
00025 class BackgroundDialog : public KDialog, public Ui::BackgroundDialog
00026 {
00027 Q_OBJECT
00028 public:
00029 BackgroundDialog(const QSize &res, Plasma::Containment *containment,
00030 Plasma::View *view, QWidget *parent = 0);
00031 ~BackgroundDialog();
00032
00033 void reloadConfig();
00034
00035 public slots:
00036 void saveConfig();
00037
00038 private:
00039 KConfigGroup wallpaperConfig(const QString &plugin);
00040
00041 private slots:
00042 void changeBackgroundMode(int mode);
00043 void cleanup();
00044
00045 private:
00046 Plasma::Wallpaper* m_wallpaper;
00047 Plasma::View* m_view;
00048 Plasma::Containment* m_containment;
00049 ScreenPreviewWidget* m_preview;
00050 };
00051
00052 #endif // BACKGROUNDDIALOG_H