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.

113 lines
3.0 KiB

  1. /*
  2. This file is part of the KDE libraries
  3. Copyright (c) 2003 Waldo Bastian <bastian@kde.org>
  4. This program is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU General Public License
  6. version 2 as published by the Free Software Foundation.
  7. This library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Library General Public License for more details.
  11. You should have received a copy of the GNU Library General Public License
  12. along with this library; see the file COPYING.LIB. If not, write to
  13. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  14. Boston, MA 02110-1301, USA.
  15. */
  16. #ifndef _BGDIALOG_H_
  17. #define _BGDIALOG_H_
  18. #include <tqptrvector.h>
  19. #include <tqmap.h>
  20. #include <tqvaluevector.h>
  21. #include "bgdialog_ui.h"
  22. #include "bgrender.h"
  23. #include "bgsettings.h"
  24. #include "bgdefaults.h"
  25. class BGMonitorArrangement;
  26. class TDEStandardDirs;
  27. class BGDialog : public BGDialog_UI
  28. {
  29. Q_OBJECT
  30. public:
  31. BGDialog(TQWidget* parent, TDEConfig* _config, bool _multidesktop = true);
  32. ~BGDialog();
  33. void load( bool useDefaults );
  34. void save();
  35. void defaults();
  36. void makeReadOnly();
  37. TQString quickHelp() const;
  38. signals:
  39. void changed(bool);
  40. protected:
  41. void initUI();
  42. void updateUI();
  43. KBackgroundRenderer * eRenderer();
  44. void setWallpaper(const TQString &);
  45. void loadWallpaperFilesList();
  46. protected slots:
  47. void slotIdentifyScreens();
  48. void slotSelectScreen(int screen);
  49. void slotSelectDesk(int desk);
  50. void slotWallpaperTypeChanged(int i);
  51. void slotWallpaper(int i);
  52. void slotWallpaperPos(int);
  53. void slotWallpaperSelection();
  54. void slotSetupMulti();
  55. void slotPrimaryColor(const TQColor &color);
  56. void slotSecondaryColor(const TQColor &color);
  57. void slotPattern(int pattern);
  58. void slotImageDropped(const TQString &uri);
  59. void slotPreviewDone(int desk, int screen);
  60. void slotAdvanced();
  61. void slotGetNewStuff();
  62. void slotBlendMode(int mode);
  63. void slotBlendBalance(int value);
  64. void slotBlendReverse(bool b);
  65. void desktopResized();
  66. void setBlendingEnabled(bool);
  67. void slotCrossFadeBg(bool);
  68. protected:
  69. void getEScreen();
  70. TDEGlobalBackgroundSettings *m_pGlobals;
  71. TDEStandardDirs *m_pDirs;
  72. bool m_multidesktop;
  73. bool m_useViewports;
  74. int m_curDesk;
  75. unsigned m_numDesks;
  76. unsigned m_numViewports;
  77. unsigned m_numScreens;
  78. int m_desk;
  79. int m_screen;
  80. int m_eDesk;
  81. int m_eScreen;
  82. TQValueVector< TQPtrVector<KBackgroundRenderer> > m_renderer; // m_renderer[desk][screen]
  83. TQMap<TQString,int> m_wallpaper;
  84. TQStringList m_patterns;
  85. int m_slideShowRandom; // Remembers last Slide Show setting
  86. int m_wallpaperPos; // Remembers last wallpaper pos
  87. BGMonitorArrangement * m_pMonitorArrangement;
  88. bool m_previewUpdates;
  89. bool m_copyAllDesktops;
  90. bool m_copyAllScreens;
  91. };
  92. #endif