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

okular

Okular::FormFieldChoice

Okular::FormFieldChoice Class Reference

#include <form.h>

Inheritance diagram for Okular::FormFieldChoice:

Inheritance graph
[legend]

List of all members.


Detailed Description

Interface of a choice form field.

This is the base interface to reimplement to represent a choice field, ie a field where the user can select one (of more) element(s) among a set of choices.

Definition at line 192 of file form.h.


Public Types

enum  ChoiceType { ComboBox, ListBox }

Public Member Functions

virtual ~FormFieldChoice ()
virtual ChoiceType choiceType () const =0
virtual QStringList choices () const =0
virtual bool isEditable () const
virtual bool multiSelect () const
virtual QList< int > currentChoices () const =0
virtual void setCurrentChoices (const QList< int > &choices)
virtual Qt::Alignment textAlignment () const
virtual bool canBeSpellChecked () const

Protected Member Functions

 FormFieldChoice ()

Member Enumeration Documentation

enum Okular::FormFieldChoice::ChoiceType

The types of choice field.

Enumerator:
ComboBox  A combo box choice field.
ListBox  A list box choice field.

Definition at line 198 of file form.h.


Constructor & Destructor Documentation

FormFieldChoice::~FormFieldChoice (  )  [virtual]

Definition at line 170 of file form.cpp.

FormFieldChoice::FormFieldChoice (  )  [protected]

Definition at line 165 of file form.cpp.


Member Function Documentation

virtual ChoiceType Okular::FormFieldChoice::choiceType (  )  const [pure virtual]

The particular type of the choice field.

virtual QStringList Okular::FormFieldChoice::choices (  )  const [pure virtual]

The possible choices of the choice field.

bool FormFieldChoice::isEditable (  )  const [virtual]

Whether this ComboBox is editable, ie the user can type in a custom value.

Always false for the other types of choices.

Definition at line 174 of file form.cpp.

bool FormFieldChoice::multiSelect (  )  const [virtual]

Whether more than one choice of this ListBox can be selected at the same time.

Always false for the other types of choices.

Definition at line 179 of file form.cpp.

virtual QList< int > Okular::FormFieldChoice::currentChoices (  )  const [pure virtual]

The currently selected choices.

Always one element in the list in case of single choice elements.

void FormFieldChoice::setCurrentChoices ( const QList< int > &  choices  )  [virtual]

Sets the selected choices to choices .

Definition at line 184 of file form.cpp.

Qt::Alignment FormFieldChoice::textAlignment (  )  const [virtual]

The alignment of the text within the field.

Definition at line 188 of file form.cpp.

bool FormFieldChoice::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 193 of file form.cpp.


The documentation for this class was generated from the following files:
  • form.h
  • form.cpp

okular

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

kdegraphics

Skip menu "kdegraphics"
  • okular
Generated for kdegraphics by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal