summaryrefslogtreecommitdiffstats
path: root/kcontrol/konqhtml/appearance.h
blob: 6bca1908f49f095ff6d0674395104c87cd718a7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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 <tqwidget.h>
#include <tqmap.h>

#include <kcmodule.h>

class TQSpinBox;
class KFontCombo;

class KAppearanceOptions : public TDECModule
{
  Q_OBJECT
public:
  KAppearanceOptions(TDEConfig *config, TQString group, TQWidget *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 TQString& n);
  void slotFixedFont(const TQString& n);
  void slotSerifFont( const TQString& n );
  void slotSansSerifFont( const TQString& n );
  void slotCursiveFont( const TQString& n );
  void slotFantasyFont( const TQString& n );
  void slotEncoding( const TQString& n);
  void slotFontSizeAdjust( int value );

private:
  void updateGUI();

private:

  TDEConfig *m_pConfig;
  TQString m_groupname;
  TQStringList m_families;

  KIntNumInput* m_minSize;
  KIntNumInput* m_MedSize;
  KIntNumInput* m_pageDPI;
  KFontCombo* m_pFonts[6];
  TQComboBox* m_pEncoding;
  TQSpinBox *m_pFontSizeAdjust;

  int fSize;
  int fMinSize;
  TQStringList encodings;
  TQStringList fonts;
  TQStringList defaultFonts;
  TQString encodingName;
};

#endif // __APPEARANCE_H__