• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

okular

  • sources
  • kde-4.12
  • kdegraphics
  • okular
  • core
textdocumentsettings.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2013 by Azat Khuzhin <a3at.mail@gmail.com> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  ***************************************************************************/
9 
10 
11 #ifndef _OKULAR_TEXTDOCUMENTSETTINGS_H_
12 #define _OKULAR_TEXTDOCUMENTSETTINGS_H_
13 
14 
15 #include "okular_export.h"
16 
17 #include <QFont>
18 #include <QWidget>
19 #include <QObject>
20 #include <KConfigSkeleton>
21 
22 namespace Okular {
23 
24 class TextDocumentSettingsWidgetPrivate;
25 class TextDocumentSettingsPrivate;
26 
82 class OKULAR_EXPORT TextDocumentSettingsWidget : public QWidget
83 {
84  public:
85  TextDocumentSettingsWidget( QWidget *parent = 0 );
86  virtual ~TextDocumentSettingsWidget();
87 
88  void addRow( const QString& labelText, QWidget *widget );
89 
90  private:
91  friend class TextDocumentGenerator;
92 
93  TextDocumentSettingsWidgetPrivate *d_ptr;
94  Q_DECLARE_PRIVATE( TextDocumentSettingsWidget )
95  Q_DISABLE_COPY( TextDocumentSettingsWidget )
96 };
97 
106 class OKULAR_EXPORT TextDocumentSettings : public KConfigSkeleton
107 {
108  public:
109  QFont font() const;
110 
111  private:
112  friend class TextDocumentGenerator;
113 
114  TextDocumentSettings( const QString& config, QObject *parent );
115 
116  TextDocumentSettingsPrivate *d_ptr;
117  Q_DECLARE_PRIVATE( TextDocumentSettings )
118  Q_DISABLE_COPY( TextDocumentSettings )
119 };
120 
121 }
122 
123 #endif
Okular::TextDocumentSettingsPrivate
Definition: textdocumentsettings_p.h:34
QWidget
Okular::TextDocumentSettingsWidget
Here is example of how you can add custom settings per-backend:
Definition: textdocumentsettings.h:82
KConfigSkeleton
QObject
okular_export.h
Okular::TextDocumentSettingsWidgetPrivate
Definition: textdocumentsettings_p.h:19
Okular::TextDocumentGenerator
QTextDocument-based Generator.
Definition: textdocumentgenerator.h:136
OKULAR_EXPORT
#define OKULAR_EXPORT
Definition: okular_export.h:30
Okular::TextDocumentSettings
TextDocumentSettings.
Definition: textdocumentsettings.h:106
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal