parley
StdButton Class Reference
A button that toggles between showing "Check Answer" and "Continue". More...
#include <stdbuttons.h>
Inheritance diagram for StdButton:

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".
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] |
| 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:
KDE 4.2 API Reference