summaryrefslogtreecommitdiffstats
path: root/kcontrol/konqhtml/appearance.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /kcontrol/konqhtml/appearance.h
downloadtdebase-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 'kcontrol/konqhtml/appearance.h')
-rw-r--r--kcontrol/konqhtml/appearance.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/kcontrol/konqhtml/appearance.h b/kcontrol/konqhtml/appearance.h
new file mode 100644
index 000000000..dd16626bd
--- /dev/null
+++ b/kcontrol/konqhtml/appearance.h
@@ -0,0 +1,70 @@
+// -*- c-basic-offset: 2 -*-
+// (c) Martin R. Jones 1996
+// (c) Bernd Wuebben 1998
+// KControl port & modifications
+// (c) Torben Weis 1998
+// End of the KControl port, added 'kfmclient configure' call.
+// (c) David Faure 1998
+// Cleanup and modifications for KDE 2.1
+// (c) Daniel Molkentin 2000
+
+#ifndef __APPEARANCE_H__
+#define __APPEARANCE_H__
+
+#include <qwidget.h>
+#include <qmap.h>
+
+#include <kcmodule.h>
+
+class QSpinBox;
+class KFontCombo;
+
+class KAppearanceOptions : public KCModule
+{
+ Q_OBJECT
+public:
+ KAppearanceOptions(KConfig *config, QString group, QWidget *parent=0, const char *name=0);
+ ~KAppearanceOptions();
+
+ virtual void load();
+ virtual void load( bool useDefaults );
+ virtual void save();
+ virtual void defaults();
+
+public slots:
+ void slotFontSize( int );
+ void slotMinimumFontSize( int );
+ void slotStandardFont(const QString& n);
+ void slotFixedFont(const QString& n);
+ void slotSerifFont( const QString& n );
+ void slotSansSerifFont( const QString& n );
+ void slotCursiveFont( const QString& n );
+ void slotFantasyFont( const QString& n );
+ void slotEncoding( const QString& n);
+ void slotFontSizeAdjust( int value );
+
+private:
+ void updateGUI();
+
+private:
+
+ KConfig *m_pConfig;
+ QString m_groupname;
+ QStringList m_families;
+
+ KIntNumInput* m_minSize;
+ KIntNumInput* m_MedSize;
+ KIntNumInput* m_pageDPI;
+ KFontCombo* m_pFonts[6];
+ QComboBox* m_pEncoding;
+ QSpinBox *m_pFontSizeAdjust;
+
+ int fSize;
+ int fMinSize;
+ QStringList encodings;
+ QStringList fonts;
+ QStringList defaultFonts;
+ QString encodingName;
+};
+
+#endif // __APPEARANCE_H__