diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 4aed2c8219774f5d797760606b8489a92ddc5163 (patch) | |
tree | 3f8c130f7d269626bf6a9447407ef6c35954426a /ksplashml/themeengine/redmond/themeredmond.h | |
download | tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksplashml/themeengine/redmond/themeredmond.h')
-rw-r--r-- | ksplashml/themeengine/redmond/themeredmond.h | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/ksplashml/themeengine/redmond/themeredmond.h b/ksplashml/themeengine/redmond/themeredmond.h new file mode 100644 index 000000000..a35662181 --- /dev/null +++ b/ksplashml/themeengine/redmond/themeredmond.h @@ -0,0 +1,103 @@ +/*************************************************************************** + * Copyright Brian Ledbetter 2001-2003 <[email protected]> * + * Copyright Ravikiran Rajagopal 2003 * + * [email protected] * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License (version 2) as * + * published by the Free Software Foundation. (The original KSplash/ML * + * codebase (upto version 0.95.3) is BSD-licensed.) * + * * + ***************************************************************************/ + +#ifndef __THEMEREDMOND_H__ +#define __THEMEREDMOND_H__ + +#include <kdebug.h> +#include <kpixmap.h> + +#include <themeengine.h> + +class KFontCombo; +class QCheckBox; + +class CfgRedmond: public ThemeEngineConfig +{ + Q_OBJECT +public: + CfgRedmond( QWidget *, KConfig * ); + +protected: + QCheckBox *mShowUsername; + QCheckBox *mShowIcon; + QCheckBox *mShowWelcome; + KFontCombo *mWelcomeFont; + KFontCombo *mUsernameFont; + KFontCombo *mActionFont; +}; + +class ObjKsTheme; +class ThemeRedmond: public ThemeEngine +{ + Q_OBJECT +public: + ThemeRedmond( QWidget *, const char *, const QStringList& ); + + inline const QString name() { return( QString("Redmond") ); } + static QStringList names() + { + QStringList Names; + Names << "Redmond"; + return( Names ); + }; + +public slots: + inline void slotSetText( const QString& s ) + { + if( mText != s ) + { + mText = s; + repaint( false ); + } + }; + +private: + void paintEvent( QPaintEvent * ); + + void _initUi(); + void _readSettings(); + + QString mText; + QPixmap mPixmap; + bool mRedrawKonqi; + QPoint mMsgPos; + KPixmap mImage; + + // ThemeEngine configuration. + bool mShowWelcomeText; + bool mShowWelcomeTextShadow; + bool mWelcomeFontItalic; + bool mShowUsernameText; + bool mShowActionText; + bool mShowIcon; + bool mUseKdmUserIcon; + QString mBackgroundImage; + QString mWelcomeText; + QString mUsernameText; // Leave this undefined to autodetect the username. + QString mIcon; + QFont mWelcomeFont; + QFont mUsernameFont; + QFont mActionFont; + QColor mWelcomeTextColor; + QColor mWelcomeTextShadowColor; + QColor mUsernameTextColor; + QColor mActionTextColor; + QPoint mWelcomeTextPosition; // Set this to (0,0) to autoposition the text. + QPoint mUsernameTextPosition; // Likewise. + QPoint mActionTextPosition; // Likewise likewise. + QPoint mIconPosition; // ... + +} +; + +#endif |