• Skip to content
  • Skip to link menu
KDE 4.2 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 258 of file form.h.


Public Types

enum  ChoiceType { ComboBox, ListBox }

Public Member Functions

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

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 264 of file form.h.


Constructor & Destructor Documentation

FormFieldChoice::~FormFieldChoice (  )  [virtual]

Definition at line 224 of file form.cpp.

FormFieldChoice::FormFieldChoice (  )  [protected]

Definition at line 219 of file form.cpp.


Member Function Documentation

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 247 of file form.cpp.

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

The possible choices of the choice field.

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

The particular type of the choice field.

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.

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 228 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 233 of file form.cpp.

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

Sets the selected choices to choices .

Definition at line 238 of file form.cpp.

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

The alignment of the text within the field.

Definition at line 242 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