1 //-----------------------------------------------------------------------------
3 // kbanner - Basic screen saver for KDE
5 // Copyright (c) Martin R. Jones 1996
14 #include <Q3ValueList>
16 #include <kscreensaver.h>
17 #include <kdialogbase.h>
19 #define SATURATION 150
24 class KRandomSequence
;
26 class KBannerSaver
: public KScreenSaver
30 KBannerSaver( WId id
);
31 virtual ~KBannerSaver();
33 void setSpeed( int spd
);
34 void setFont( const QString
&family
, int size
, const QColor
&color
,
36 void setMessage( const QString
&msg
);
37 void setTimeDisplay();
38 void setCyclingColor(bool on
);
39 void setColor( QColor
&color
);
62 int xpos
, ypos
, step
, fsize
;
63 KRandomSequence
*krnd
;
71 class KBannerSetup
: public KDialogBase
75 KBannerSetup( QWidget
*parent
= NULL
, const char *name
= NULL
);
82 void slotFamily( const QString
& );
84 void slotSizeEdit(const QString
&);
85 void slotColor(const QColor
&);
86 void slotCyclingColor(bool on
);
87 void slotBold( bool );
88 void slotItalic( bool );
89 void slotSpeed( int );
90 void slotMessage( const QString
& );
93 void slotTimeToggled(bool on
);
97 KColorButton
*colorPush
;
100 QComboBox
* comboSizes
;
111 Q3ValueList
<int> sizes
;