summaryrefslogtreecommitdiffstats
path: root/ksirc/KSPrefs/page_font.h
blob: 54b9d505ce1391eb6f803d4a33b8d1d386fd9225 (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
#ifndef _PAGE_FONT
#define _PAGE_FONT
#include <tdefontdialog.h> // For the font selection widget
#include <tqlayout.h> // For the tqlayout
#include "ksopts.h"  // For storing the info.

/**
 * A page for the preferences dialog to set the standard font
 *
 * @author Markus Weimer <markus.weimer@web.de>
 */
class PageFont : public TQWidget
{
 TQ_OBJECT
  

 public:
  /**
   * Create the Widget
   */
  PageFont( TQWidget *parent = 0, const char *name = 0 );


  /*
   * Standard destructor
   */
  ~PageFont();


  /**
   * Save the config set by the user to the global ksopts object.
   *
   */
  void saveConfig( void );


  /**
   * Reset the current user config to the one stored in the global
   * ksopts object.
   *
   */
  void defaultConfig( void );


  /**
   * Read the configuration from the given KSOptions object
   *
   * @param opts the KSOptions object to modify
   */
  void readConfig( const KSOColors* opts=ksopts );

 public slots:
  void update( void );

 signals:
  void modified();

 private:
  TDEFontChooser* fontchooser; /** The font choosing widget from kdelib */
  TQHBoxLayout* layout;
};

#endif