add more spacing
[personal-kdebase.git] / workspace / kcontrol / kdm / background / bgwallpaper.h
blob0b1aefb802b54bb9191faa929485e9a8868c8fb5
1 /* vi: ts=8 sts=4 sw=4
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>
28 #include <QDropEvent>
30 class BGMultiWallpaperBase;
31 #include <kdialog.h>
33 class KBackgroundSettings;
35 class BGMultiWallpaperList : public QListWidget
37 public:
38 explicit BGMultiWallpaperList(QWidget *parent, const char *name = 0);
40 void dragEnterEvent(QDragEnterEvent *ev);
41 void dropEvent(QDropEvent *ev);
42 bool hasSelection();
43 void ensureSelectionVisible();
46 class BGMultiWallpaperDialog : public KDialog
48 Q_OBJECT
49 public:
50 BGMultiWallpaperDialog(KBackgroundSettings *settings, QWidget *parent, const char *name=0);
52 public Q_SLOTS:
53 void slotAdd();
54 void slotRemove();
55 void slotMoveUp();
56 void slotMoveDown();
57 void slotOk();
58 void slotItemSelected( QListWidgetItem * );
59 private:
60 void setEnabledMoveButtons();
62 KBackgroundSettings *m_pSettings;
64 BGMultiWallpaperBase *dlg;
67 #endif