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

kiten/lib

Public Slots | Signals | Public Member Functions | Protected Attributes | List of all members
DictionaryPreferenceDialog Class Referenceabstract

#include <dictionarypreferencedialog.h>

Inheritance diagram for DictionaryPreferenceDialog:
Inheritance graph
[legend]

Public Slots

virtual void updateSettings ()=0
 
virtual void updateWidgets ()=0
 
virtual void updateWidgetsDefault ()=0
 

Signals

void widgetChanged ()
 

Public Member Functions

 DictionaryPreferenceDialog (QWidget *parent, const QString &name)
 
virtual ~DictionaryPreferenceDialog ()
 
QString name () const
 

Protected Attributes

QString m_name
 

Detailed Description

This abstract base class specifies the interface for dictionary preference dialogs in user applications.

The DictionaryManager class can be asked for a list of these objects for the current session, and the appropriate signal/slot connections can be made to handle dictionary preferences transparently to the user application.

One annoying caveat is that the user application still has to add preference elements to it's own kcfg file, or the preference code will crash when trying to work with it. Sadly, at the moment the only way to figure out what needs to be added to the kcfg is to read the code, or the kiten.kcfg implementation.

Author
Joseph Kerian <jkeri.nosp@m.an@g.nosp@m.mail..nosp@m.com>

Definition at line 42 of file dictionarypreferencedialog.h.

Constructor & Destructor Documentation

DictionaryPreferenceDialog::DictionaryPreferenceDialog ( QWidget *  parent,
const QString &  name 
)

Basic constructor.

Used by internal classes only. Implement if you are adding your own dictionary type.

Parameters
parentthe parent widget, as per normal Qt Widget handling
namethe name of your widget, as understood by the preference code

Definition at line 25 of file dictionarypreferencedialog.cpp.

DictionaryPreferenceDialog::~DictionaryPreferenceDialog ( )
virtual

Basic destructor.

Definition at line 31 of file dictionarypreferencedialog.cpp.

Member Function Documentation

QString DictionaryPreferenceDialog::name ( ) const

Get the dictionary type name associated with this dialog.

Definition at line 35 of file dictionarypreferencedialog.cpp.

virtual void DictionaryPreferenceDialog::updateSettings ( )
pure virtualslot

Connect the signal of your preferenes dialog to this updateSettings slot, to handle saving user's preference information.

virtual void DictionaryPreferenceDialog::updateWidgets ( )
pure virtualslot

Connect the signal of your preferenes dialog to this updateWidgets slot, to handle reading preference settings cleanly.

You can also call this slot directly from your own updateWidgets slot.

virtual void DictionaryPreferenceDialog::updateWidgetsDefault ( )
pure virtualslot

Connect the signal of your preferenes dialog to this updateWidgetsDefault slot, to handle setting preference settings back to their default settings easily.

void DictionaryPreferenceDialog::widgetChanged ( )
signal

When the user edits something on this preference page, this signal should be emitted.

Member Data Documentation

QString DictionaryPreferenceDialog::m_name
protected

A place to store the name, passed in the constructor.

Definition at line 91 of file dictionarypreferencedialog.h.


The documentation for this class was generated from the following files:
  • dictionarypreferencedialog.h
  • dictionarypreferencedialog.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kiten/lib

Skip menu "kiten/lib"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

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