Public Member Functions

PromotionDialog Class Reference

Interface to select the piece to get when promotion of a pawn. More...

#include <UI/PromotionDialog.hpp>

List of all members.

Public Member Functions

 PromotionDialog (int color, QWidget *parent)
char getChoice () const

Detailed Description

Interface to select the piece to get when promotion of a pawn.

The interface displays four radio button to select which piece has to be used for the promotion of a pawn. The choice can be getted as the letter representating the piece with the function getChoice().


Constructor & Destructor Documentation

PromotionDialog::PromotionDialog ( int  color,
QWidget *  parent 
) [explicit]
Parameters:
color the color of the piece to display (0 : white / 1 : black)
parent the parent for this UI

Member Function Documentation

char PromotionDialog::getChoice (  )  const

Get the choice of the user of the piece

Returns:
return the char corresponding to the pice selected

The documentation for this class was generated from the following files:
 All Classes Functions Variables