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