TDE base libraries and programs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.8 KiB

  1. /* vi: ts=8 sts=4 sw=4
  2. This file is part of the KDE project, module kcmbackground.
  3. Copyright (C) 1999 Geert Jansen <g.t.jansen@stud.tue.nl>
  4. 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.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public License
  13. along with this library; see the file COPYING.LIB. If not, write to
  14. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  15. Boston, MA 02110-1301, USA.
  16. */
  17. #ifndef _BGWALLPAPER_H_
  18. #define _BGWALLPAPER_H_
  19. #include <tqlistbox.h>
  20. #include <tqstringlist.h>
  21. #include <kdialogbase.h>
  22. class BGMultiWallpaperBase;
  23. class KBackgroundSettings;
  24. class BGMultiWallpaperList : public TQListBox
  25. {
  26. public:
  27. BGMultiWallpaperList(TQWidget *parent, const char *name);
  28. void dragEnterEvent(TQDragEnterEvent *ev);
  29. void dropEvent(TQDropEvent *ev);
  30. bool hasSelection();
  31. void ensureSelectionVisible();
  32. };
  33. class BGMultiWallpaperDialog : public KDialogBase
  34. {
  35. Q_OBJECT
  36. public:
  37. BGMultiWallpaperDialog(KBackgroundSettings *settings, TQWidget *parent, const char *name=0);
  38. public slots:
  39. void slotAdd();
  40. void slotRemove();
  41. void slotMoveUp();
  42. void slotMoveDown();
  43. void slotOk();
  44. void slotItemSelected( TQListBoxItem * );
  45. private:
  46. void setEnabledMoveButtons();
  47. KBackgroundSettings *m_pSettings;
  48. BGMultiWallpaperBase *dlg;
  49. };
  50. #endif