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 class WallpaperPreview;
00023
00024 class BackgroundDialog : public KDialog, public Ui::BackgroundDialog
00025 {
00026 Q_OBJECT
00027 public:
00028 BackgroundDialog(const QSize &res, Plasma::Containment *containment,
00029 Plasma::View *view, QWidget *parent = 0);
00030 ~BackgroundDialog();
00031
00032 void reloadConfig();
00033
00034 public slots:
00035 void saveConfig();
00036
00037 private:
00038 KConfigGroup wallpaperConfig(const QString &plugin);
00039
00040 private slots:
00041 void changeBackgroundMode(int mode);
00042 void cleanup();
00043
00044 private:
00045 Plasma::Wallpaper* m_wallpaper;
00046 Plasma::View* m_view;
00047 Plasma::Containment* m_containment;
00048 WallpaperPreview* m_preview;
00049 };
00050
00051 #endif // BACKGROUNDDIALOG_H