dtor first
[personal-kdebase.git] / workspace / plasma / shells / desktop / backgrounddialog.h
blob94590aef12d8dd848c24d0951bd471a2bf79a4ef
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
3 Copyright (c) 2008 by Petri Damsten <damu@iki.fi>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #ifndef BACKGROUNDDIALOG_H
12 #define BACKGROUNDDIALOG_H
14 #include <KDialog>
15 #include "ui_BackgroundDialog.h"
17 namespace Plasma {
18 class Wallpaper;
19 class Containment;
20 class View;
22 class ThemeModel;
23 class WallpaperPreview;
24 class QStandardItemModel;
26 class BackgroundDialog : public KDialog, public Ui::BackgroundDialog
28 Q_OBJECT
29 public:
30 BackgroundDialog(const QSize &res, Plasma::Containment *containment,
31 Plasma::View *view, QWidget *parent = 0);
32 ~BackgroundDialog();
34 void reloadConfig();
36 public slots:
37 void saveConfig();
39 private:
40 KConfigGroup wallpaperConfig(const QString &plugin);
42 private slots:
43 void getNewThemes();
44 void changeBackgroundMode(int mode);
45 void cleanup();
47 private:
48 ThemeModel* m_themeModel;
49 QStandardItemModel* m_containmentModel;
50 Plasma::Wallpaper* m_wallpaper;
51 Plasma::View* m_view;
52 Plasma::Containment* m_containment;
53 WallpaperPreview* m_preview;
56 #endif // BACKGROUNDDIALOG_H