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 | e9ae80694875f869892f13f4fcaf1170a00dea41 (patch) | |
tree | aa2f8d8a217e2d376224c8d46b7397b68d35de2d /quanta/components/csseditor/fontfamilychooser.h | |
download | tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.tar.gz tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.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/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/components/csseditor/fontfamilychooser.h')
-rw-r--r-- | quanta/components/csseditor/fontfamilychooser.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/quanta/components/csseditor/fontfamilychooser.h b/quanta/components/csseditor/fontfamilychooser.h new file mode 100644 index 00000000..c812e774 --- /dev/null +++ b/quanta/components/csseditor/fontfamilychooser.h @@ -0,0 +1,52 @@ +/*************************************************************************** + fontfamilychooser.h - description + ------------------- + begin : mer lug 23 11:20:17 CEST 2003 + copyright : (C) |YEAR| by si2003 email : [email protected] + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef FONTFAMILYCHOOSER_H +#define FONTFAMILYCHOOSER_H + +#include "fontfamilychoosers.h" +#include <qmap.h> +class QStringList; + +class fontFamilyChooser : public fontFamilyChooserS +{ + Q_OBJECT + private: + enum FontOrigin { available, generic }; + QString m_currentSelectedFont; + FontOrigin m_fontOrigin; + int m_currentSelectedFontIndex; + QMap<QString,FontOrigin> m_selectedFontMap; + + private slots: + void updatePreview(const QString &); + void setCurrentSelectedAvailableFamilyFont(const QString&); + void setCurrentSelectedGenericFamilyFont(const QString&); + void setCurrentSelectedFont( int i) { m_currentSelectedFontIndex = i; } + void setCurrentSelectedFont( const QString& f ) { m_currentSelectedFont = f; } + void addFont(); + void removeFont(); + void moveFontUp(); + void moveFontDown(); + + public: + fontFamilyChooser(QWidget* parent, const char *name=0); + ~fontFamilyChooser(); + QStringList fontList(); + void setInitialValue(const QString& s); +}; + +#endif |