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

okular

  • Okular
  • TextDocumentSettingsWidget
Public Member Functions | List of all members
Okular::TextDocumentSettingsWidget Class Reference

#include <textdocumentsettings.h>

Inheritance diagram for Okular::TextDocumentSettingsWidget:
Inheritance graph
[legend]

Public Member Functions

 TextDocumentSettingsWidget (QWidget *parent=0)
 
virtual ~TextDocumentSettingsWidget ()
 
void addRow (const QString &labelText, QWidget *widget)
 

Detailed Description

Here is example of how you can add custom settings per-backend:

In .h header: {code} class KIntSpinBox; ...

class YourGenerator { ... public: bool reparseConfig(); void addPages( KConfigDialog* dlg ); ... private: QString customArgument; KIntSpinBox *customArgumentWidget; ... } {/code}

In .cpp module: {code} #include <KIntSpinBox> ... bool YourGenerator::reparseConfig() { ... Do something with customArgumentWidget and customArgument ... } void YourGenerator::addPages( KConfigDialog* dlg ) { Okular::TextDocumentSettingsWidget *widget = new Okular::TextDocumentSettingsWidget();

KIntSpinBox *customArgumentWidget = new KIntSpinBox( dlg ); customArgumentWidget->setObjectName( QString::fromUtf8( "kcfg_CustomArgument" ) ); widget->addRow( "Custom argument", customArgumentWidget );

Okular::TextDocumentSettings *settings = generalSettings(); settings->addItemString( "CustomArgument", customArgument );

dlg->addPage( widget, settings, ... ); } {/code} TextDocumentSettingsWidget

Contain default settings for text based documents. (all generators that inherited from TextDocumentGenerator) Generator can add settings to this object individually.

Since
0.17 (KDE 4.11)

Definition at line 82 of file textdocumentsettings.h.

Constructor & Destructor Documentation

TextDocumentSettingsWidget::TextDocumentSettingsWidget ( QWidget *  parent = 0)

TextDocumentSettingsWidget.

Definition at line 27 of file textdocumentsettings.cpp.

TextDocumentSettingsWidget::~TextDocumentSettingsWidget ( )
virtual

Definition at line 45 of file textdocumentsettings.cpp.

Member Function Documentation

void TextDocumentSettingsWidget::addRow ( const QString &  labelText,
QWidget *  widget 
)

Definition at line 52 of file textdocumentsettings.cpp.


The documentation for this class was generated from the following files:
  • textdocumentsettings.h
  • textdocumentsettings.cpp
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