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.

57 lines
856B

  1. //-----------------------------------------------------------------------------
  2. //
  3. // kblankscrn - Basic screen saver for KDE
  4. //
  5. // Copyright (c) Martin R. Jones 1996
  6. //
  7. #ifndef __BLANKSCRN_H__
  8. #define __BLANKSCRN_H__
  9. #include <tqcolor.h>
  10. #include <kdialogbase.h>
  11. #include <tdescreensaver.h>
  12. class KColorButton;
  13. class KBlankSaver : public KScreenSaver
  14. {
  15. Q_OBJECT
  16. public:
  17. KBlankSaver( WId drawable );
  18. virtual ~KBlankSaver();
  19. void setColor( const TQColor &col );
  20. private:
  21. void readSettings();
  22. void blank();
  23. private:
  24. TQColor color;
  25. };
  26. class KBlankSetup : public KDialogBase
  27. {
  28. Q_OBJECT
  29. public:
  30. KBlankSetup( TQWidget *parent = NULL, const char *name = NULL );
  31. protected:
  32. void readSettings();
  33. private slots:
  34. void slotColor( const TQColor & );
  35. void slotOk();
  36. private:
  37. TQWidget *preview;
  38. KBlankSaver *saver;
  39. TQColor color;
  40. };
  41. #endif