Interface to select the piece to get when promotion of a pawn. More...
#include <UI/PromotionDialog.hpp>
Public Member Functions | |
PromotionDialog (int color, QWidget *parent) | |
char | getChoice () const |
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().
PromotionDialog::PromotionDialog | ( | int | color, | |
QWidget * | parent | |||
) | [explicit] |
color | the color of the piece to display (0 : white / 1 : black) | |
parent | the parent for this UI |
char PromotionDialog::getChoice | ( | ) | const |
Get the choice of the user of the piece