not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / plasma / shells / screensaver / backgrounddialog.h
blob77212f990b8174d8642b03c90da553316f7612ed
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 WallpaperPreview;
24 class BackgroundDialog : public KDialog, public Ui::BackgroundDialog
26 Q_OBJECT
27 public:
28 BackgroundDialog(const QSize &res, Plasma::Containment *containment,
29 Plasma::View *view, QWidget *parent = 0);
30 ~BackgroundDialog();
32 void reloadConfig();
34 public slots:
35 void saveConfig();
37 private:
38 KConfigGroup wallpaperConfig(const QString &plugin);
40 private slots:
41 void changeBackgroundMode(int mode);
42 void cleanup();
44 private:
45 Plasma::Wallpaper* m_wallpaper;
46 Plasma::View* m_view;
47 Plasma::Containment* m_containment;
48 WallpaperPreview* m_preview;
51 #endif // BACKGROUNDDIALOG_H