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

parley

StdButton Class Reference

A button that toggles between showing "Check Answer" and "Continue". More...

#include <stdbuttons.h>

Inheritance diagram for StdButton:

Inheritance graph
[legend]

List of all members.


Public Slots

void slotActivated ()
void slotToggleText (int state)

Signals

void signalCheckAnswer ()
void signalContinue ()

Public Member Functions

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

Detailed Description

A button that toggles between showing "Check Answer" and "Continue".

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

Definition at line 34 of file stdbuttons.h.


Constructor & Destructor Documentation

StdButton::StdButton ( const QString &  text,
KSvgRenderer *  renderer,
ActiveArea *  area,
const QString &  elementId,
QWidget *  parent = 0 
) [explicit]

Definition at line 26 of file stdbuttons.cpp.


Member Function Documentation

void StdButton::signalCheckAnswer (  )  [signal]

Emitted when the user wants to check their answer.

Using this will make the continue option appears. This should be connected to the CheckAnswer Action

void StdButton::signalContinue (  )  [signal]

Emitted when the user wants to continue.

The user should only be able to use the continue function after the question was been answered and corrected. This should be connected to the Continue Action

void StdButton::slotActivated (  )  [slot]

Called internally when it is pushed.

Definition at line 58 of file stdbuttons.cpp.

void StdButton::slotToggleText ( int  state  )  [slot]

Toggles the text between "Check Answer" and "Continue" based on state.

Definition at line 70 of file stdbuttons.cpp.


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