3 This file is part of the KDE project, module kcmbackground.
5 Copyright (C) 1999 Geert Jansen <g.t.jansen@stud.tue.nl>
6 Copyright (C) 2003 Waldo Bastian <bastian@kde.org>
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 version 2 as published by the Free Software Foundation.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
23 #ifndef _BGWALLPAPER_H_
24 #define _BGWALLPAPER_H_
26 #include <QListWidget>
27 #include <QDragEnterEvent>
30 class BGMultiWallpaperBase
;
33 class KBackgroundSettings
;
35 class BGMultiWallpaperList
: public QListWidget
38 explicit BGMultiWallpaperList(QWidget
*parent
, const char *name
= 0);
40 void dragEnterEvent(QDragEnterEvent
*ev
);
41 void dropEvent(QDropEvent
*ev
);
43 void ensureSelectionVisible();
46 class BGMultiWallpaperDialog
: public KDialog
50 BGMultiWallpaperDialog(KBackgroundSettings
*settings
, QWidget
*parent
, const char *name
=0);
58 void slotItemSelected( QListWidgetItem
* );
60 void setEnabledMoveButtons();
62 KBackgroundSettings
*m_pSettings
;
64 BGMultiWallpaperBase
*dlg
;