summaryrefslogtreecommitdiffstats
path: root/ksirc/KSPrefs/page_font.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
commitbcb704366cb5e333a626c18c308c7e0448a8e69f (patch)
treef0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /ksirc/KSPrefs/page_font.h
downloadtdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz
tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.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/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/KSPrefs/page_font.h')
-rw-r--r--ksirc/KSPrefs/page_font.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/ksirc/KSPrefs/page_font.h b/ksirc/KSPrefs/page_font.h
new file mode 100644
index 00000000..0d2fa673
--- /dev/null
+++ b/ksirc/KSPrefs/page_font.h
@@ -0,0 +1,62 @@
+#ifndef _PAGE_FONT
+#define _PAGE_FONT
+#include <kfontdialog.h> // For the font selection widget
+#include <qlayout.h> // For the layout
+#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 QWidget
+{
+ Q_OBJECT
+
+ public:
+ /**
+ * Create the Widget
+ */
+ PageFont( QWidget *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:
+ KFontChooser* fontchooser; /** The font choosing widget from kdelib */
+ QHBoxLayout* layout;
+};
+
+#endif