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

parley

MCInput Class Reference

The widget that provides a multiple choice-style user input method. More...

#include <mcinput.h>

Inheritance diagram for MCInput:

Inheritance graph
[legend]

List of all members.


Public Slots

void slotEmitAnswer ()
void slotSetChoices (const QStringList &choices)
void slotShortcutTriggered (int shortcutNumber)
void slotShowHint (const QString &solution)
void slotShowSolution (const QString &solution)

Signals

void signalAnswer (const QString &answer)
void triggered ()

Public Member Functions

 MCInput (KSvgRenderer *renderer, ActiveArea *area, const QString &elementId, QWidget *parent=0)

Detailed Description

The widget that provides a multiple choice-style user input method.

Author:
David Capel <wot.narg@gmail.com>

Definition at line 37 of file mcinput.h.


Constructor & Destructor Documentation

MCInput::MCInput ( KSvgRenderer *  renderer,
ActiveArea *  area,
const QString &  elementId,
QWidget *  parent = 0 
)

Definition at line 38 of file mcinput.cpp.


Member Function Documentation

void MCInput::signalAnswer ( const QString &  answer  )  [signal]

Gives the users answer.

void MCInput::slotEmitAnswer (  )  [slot]

Emits the currently selected answer using signalAnswer().

Definition at line 125 of file mcinput.cpp.

void MCInput::slotSetChoices ( const QStringList &  choices  )  [slot]

Sets the QRadioButton choices to the.

Parameters:
choices. 

Definition at line 90 of file mcinput.cpp.

void MCInput::slotShortcutTriggered ( int  shortcutNumber  )  [slot]

Checks to see if the given shortcut was valid, and if so, emits triggered().

Definition at line 52 of file mcinput.cpp.

void MCInput::slotShowHint ( const QString &  solution  )  [slot]

Shows a hint by disabling distrator choices.

Definition at line 140 of file mcinput.cpp.

void MCInput::slotShowSolution ( const QString &  solution  )  [slot]

Shows the solution by disabling all distractors.

Definition at line 162 of file mcinput.cpp.

void MCInput::triggered (  )  [signal]

Signals that a shortcut was successfully triggered.


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

parley

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

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.7
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