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

okular

  • Okular
  • FormFieldText
Public Types | Public Member Functions | Protected Member Functions | List of all members
Okular::FormFieldText Class Referenceabstract

#include <form.h>

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

Public Types

enum  TextType { Normal, Multiline, FileSelect }
 
- Public Types inherited from Okular::FormField
enum  FieldType { FormButton, FormText, FormChoice, FormSignature }
 

Public Member Functions

virtual ~FormFieldText ()
 
virtual bool canBeSpellChecked () const
 
virtual bool isPassword () const
 
virtual bool isRichText () const
 
virtual int maximumLength () const
 
virtual void setText (const QString &text)
 
virtual QString text () const =0
 
virtual Qt::Alignment textAlignment () const
 
virtual TextType textType () const =0
 
- Public Member Functions inherited from Okular::FormField
virtual ~FormField ()
 
Action * activationAction () const
 
virtual int id () const =0
 
virtual bool isReadOnly () const
 
virtual bool isVisible () const
 
virtual QString name () const =0
 
virtual NormalizedRect rect () const =0
 
FieldType type () const
 
virtual QString uiName () const =0
 

Protected Member Functions

 FormFieldText ()
 
- Protected Member Functions inherited from Okular::FormField
void setActivationAction (Action *action)
 

Detailed Description

Interface of a text form field.

This is the base interface to reimplement to represent a text field, ie a field where the user insert text.

Definition at line 176 of file form.h.

Member Enumeration Documentation

enum Okular::FormFieldText::TextType

The types of text field.

Enumerator
Normal 

A simple singleline text field.

Multiline 

A multiline text field.

FileSelect 

An input field to select the path of a file on disk.

Definition at line 182 of file form.h.

Constructor & Destructor Documentation

FormFieldText::~FormFieldText ( )
virtual

Definition at line 144 of file form.cpp.

FormFieldText::FormFieldText ( )
protected

Definition at line 139 of file form.cpp.

Member Function Documentation

bool FormFieldText::canBeSpellChecked ( ) const
virtual

Whether the text inserted manually in the field (where possible) can be spell-checked.

Note
meaningful only if the field is editable.

Definition at line 172 of file form.cpp.

bool FormFieldText::isPassword ( ) const
virtual

Whether this text field is a password input, eg its text must be replaced with asterisks.

Always false for FileSelect text fields.

Definition at line 152 of file form.cpp.

bool FormFieldText::isRichText ( ) const
virtual

Whether this text field should allow rich text.

Definition at line 157 of file form.cpp.

int FormFieldText::maximumLength ( ) const
virtual

The maximum length allowed for the text of text field, or -1 if there is no limitation for the text.

Definition at line 162 of file form.cpp.

void FormFieldText::setText ( const QString &  text)
virtual

Sets the new text in the text field.

The default implementation does nothing.

Reimplemented only if the setting of new text is supported.

Definition at line 148 of file form.cpp.

virtual QString Okular::FormFieldText::text ( ) const
pure virtual

The text of text field.

Qt::Alignment FormFieldText::textAlignment ( ) const
virtual

The alignment of the text within the field.

Definition at line 167 of file form.cpp.

virtual TextType Okular::FormFieldText::textType ( ) const
pure virtual

The particular type of the text field.


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