Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / konqueror / settings / konqhtml / appearance.h
blob2db19c9676eb54eb1b679bbe7dd9d284c5cc9015
1 // -*- c-basic-offset: 2 -*-
2 /*
3 * Copyright (c) Martin R. Jones 1996
4 * Copyright (c) Bernd Wuebben 1998
6 * Copyright (c) Torben Weis 1998
7 * KControl port & modifications
9 * Copyright (c) David Faure 1998
10 * End of the KControl port, added 'kfmclient configure' call.
12 * Copyright (c) Daniel Molkentin 2000
13 * Cleanup and modifications for KDE 2.1
17 #ifndef APPEARANCE_H
18 #define APPEARANCE_H
20 #include <QtGui/QWidget>
21 #include <QtCore/QMap>
23 #include <kcmodule.h>
24 #include <kconfig.h>
26 class QSpinBox;
27 class KFontComboBox;
28 class QComboBox;
29 class QCheckBox;
30 class CSSConfig;
33 class KAppearanceOptions : public KCModule
35 Q_OBJECT
36 public:
37 KAppearanceOptions(QWidget *parent, const QVariantList&);
38 ~KAppearanceOptions();
40 virtual void load();
41 virtual void save();
42 virtual void defaults();
44 public Q_SLOTS:
45 void slotFontSize( int );
46 void slotMinimumFontSize( int );
47 void slotStandardFont(const QFont& n);
48 void slotFixedFont(const QFont& n);
49 void slotSerifFont( const QFont& n );
50 void slotSansSerifFont( const QFont& n );
51 void slotCursiveFont( const QFont& n );
52 void slotFantasyFont( const QFont& n );
53 void slotEncoding( const QString& n);
54 void slotFontSizeAdjust( int value );
56 private:
57 void updateGUI();
59 private:
60 CSSConfig* cssConfig;
62 QCheckBox* m_pAutoLoadImagesCheckBox;
63 QCheckBox* m_pUnfinishedImageFrameCheckBox;
64 QComboBox* m_pAnimationsCombo;
65 QComboBox* m_pUnderlineCombo;
66 QComboBox* m_pSmoothScrollingCombo;
70 KSharedConfig::Ptr m_pConfig;
71 QString m_groupname;
73 KIntNumInput* m_minSize;
74 KIntNumInput* m_MedSize;
75 KIntNumInput* m_pageDPI;
76 KFontComboBox* m_pFonts[6];
77 QComboBox* m_pEncoding;
78 QSpinBox *m_pFontSizeAdjust;
80 int fSize;
81 int fMinSize;
82 QStringList encodings;
83 QStringList fonts;
84 QStringList defaultFonts;
85 QString encodingName;
88 #endif // APPEARANCE_H