diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:16:15 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:16:15 -0600 |
commit | 7e09b5c2efae58399621a938de26b9675b8ba621 (patch) | |
tree | de2c9535e1f4c48ae91910492d298eba1d593fd5 /tdescreensaver/kdesavers/banner.h | |
parent | 159f7e147ac33c924b3ce9050c8f03cbc54916ee (diff) | |
download | tdeartwork-7e09b5c2efae58399621a938de26b9675b8ba621.tar.gz tdeartwork-7e09b5c2efae58399621a938de26b9675b8ba621.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdescreensaver/kdesavers/banner.h')
-rw-r--r-- | tdescreensaver/kdesavers/banner.h | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/tdescreensaver/kdesavers/banner.h b/tdescreensaver/kdesavers/banner.h new file mode 100644 index 00000000..6b953e58 --- /dev/null +++ b/tdescreensaver/kdesavers/banner.h @@ -0,0 +1,114 @@ +//----------------------------------------------------------------------------- +// +// kbanner - Basic screen saver for KDE +// +// Copyright (c) Martin R. Jones 1996 +// + +#ifndef __BANNER_H__ +#define __BANNER_H__ + +#include <tqtimer.h> + +#include <tdescreensaver.h> +#include <kdialogbase.h> + +#define SATURATION 150 +#define VALUE 255 + +class TQLineEdit; +class KColorButton; +class KRandomSequence; + +class KBannerSaver : public KScreenSaver +{ + Q_OBJECT + +public: + KBannerSaver( WId id ); + virtual ~KBannerSaver(); + + void setSpeed( int spd ); + void setFont( const TQString &family, int size, const TQColor &color, + bool b, bool i ); + void setMessage( const TQString &msg ); + void setTimeDisplay(); + void setCyclingColor(bool on); + void setColor( TQColor &color); + +private: + void readSettings(); + void initialize(); + +protected slots: + void slotTimeout(); + +protected: + TQFont font; + TQTimer timer; + TQString fontFamily; + int fontSize; + bool bold; + bool italic; + TQColor fontColor; + bool cyclingColor; + int currentHue; + bool needUpdate; + bool needBlank; + TQString message; + bool showTime; + int xpos, ypos, step, fsize; + KRandomSequence *krnd; + int speed; + int colorContext; + TQPixmap pixmap; + TQSize pixmapSize; +}; + + +class KBannerSetup : public KDialogBase +{ + Q_OBJECT + +public: + KBannerSetup( TQWidget *parent = NULL, const char *name = NULL ); + +protected: + void readSettings(); + void fillFontSizes(); + +private slots: + void slotFamily( const TQString & ); + void slotSize( int ); + void slotSizeEdit(const TQString &); + void slotColor(const TQColor &); + void slotCyclingColor(bool on); + void slotBold( bool ); + void slotItalic( bool ); + void slotSpeed( int ); + void slotMessage( const TQString & ); + void slotOk(); + void slotHelp(); + void slotTimeToggled(bool on); + +private: + TQWidget *preview; + KColorButton *colorPush; + KBannerSaver *saver; + TQLineEdit *ed; + TQComboBox* comboSizes; + + TQString message; + bool showTime; + TQString fontFamily; + int fontSize; + TQColor fontColor; + bool cyclingColor; + bool bold; + bool italic; + int speed; + TQValueList<int> sizes; +}; + +#endif + |