2 This file is part of the KDE libraries
3 Copyright (c) 2003 Waldo Bastian <bastian@kde.org>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 version 2 as published by the Free Software Foundation.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
23 #include <Qt3Support/Q3PtrVector>
26 #include "ui_bgdialog_ui.h"
28 #include "bgsettings.h"
29 #include "bgdefaults.h"
31 class BGMonitorArrangement
;
33 class BGMultiWallpaperList
;
35 class BGDialog_UI
: public QWidget
, public Ui::BGDialog_UI
38 BGDialog_UI( QWidget
*parent
) : QWidget( parent
) {
43 class BGDialog
: public BGDialog_UI
47 BGDialog(QWidget
* parent
, const KSharedConfigPtr
& _config
);
56 QString
quickHelp() const;
64 KBackgroundRenderer
* eRenderer();
66 void setWallpaper(const QString
&);
68 void loadWallpaperFilesList();
71 void slotIdentifyScreens();
72 void slotSelectScreen(int screen
);
73 void slotWallpaperTypeChanged(int i
);
74 void slotWallpaper(int i
);
75 void slotWallpaperPos(int);
76 void slotWallpaperSelection();
77 void slotSetupMulti();
78 void slotPrimaryColor(const QColor
&color
);
79 void slotSecondaryColor(const QColor
&color
);
80 void slotPattern(int pattern
);
81 void slotImageDropped(const QString
&uri
);
82 void slotPreviewDone(int screen
);
84 void slotGetNewStuff();
85 void slotBlendMode(int mode
);
86 void slotBlendBalance(int value
);
87 void slotBlendReverse(bool b
);
88 void desktopResized();
89 void setBlendingEnabled(bool);
93 KGlobalBackgroundSettings
*m_pGlobals
;
94 KStandardDirs
*m_pDirs
;
96 unsigned m_numScreens
;
99 Q3PtrVector
<KBackgroundRenderer
> m_renderer
; // m_renderer[screen]
100 QMap
<QString
,int> m_wallpaper
;
101 QStringList m_patterns
;
102 int m_slideShowRandom
; // Remembers last Slide Show setting
103 int m_wallpaperPos
; // Remembers last wallpaper pos
105 BGMonitorArrangement
* m_pMonitorArrangement
;
107 bool m_previewUpdates
;
108 bool m_copyAllScreens
;