#include <kardselection.h>
Public Member Functions | |
KardSelection (const QString &caption, int number, const CardSequence &choices, const QString &cardImagePath="", const QString &cardBackImage="", QWidget *parent=0, bool modal=true) | |
const CardSequence & | selection () const |
~KardSelection () |
KardSelection::KardSelection | ( | const QString & | caption, | |
int | number, | |||
const CardSequence & | choices, | |||
const QString & | cardImagePath = "" , |
|||
const QString & | cardBackImage = "" , |
|||
QWidget * | parent = 0 , |
|||
bool | modal = true | |||
) |
Creates a dialogue to select a specific number of presented cards.
caption | is the caption to display for the user, usually explaining what they need to do. | |
number | is how many cards the user must select. | |
choices | are the cards that a user can choose from. | |
cardImagePath | is the path to the directory that holds the images for the front of the kards. | |
cardBackImage | is the filename of the image for the back of our kards. | |
parent | is the parent of the dialogue. | |
modal | determines if the dialogue should be modal or not. |
KardSelection::~KardSelection | ( | ) |
Widget destructor.
const CardSequence & KardSelection::selection | ( | ) | const |
Gives the selection that the user has made.
KardsGTError | if a selection has not been made by a user. |