Cute Chess  0.1
Classes | Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
MoveList Class Reference
Inheritance diagram for MoveList:
QWidget

Public Slots

bool selectMove (int moveNum)
 
void setMove (int ply, const Chess::GenericMove &move, const QString &sanString, const QString &comment)
 

Signals

void commentClicked (int num, const QString &comment)
 
void moveClicked (int num, bool keyLeft)
 

Public Member Functions

 MoveList (QWidget *parent=nullptr)
 
void setGame (ChessGame *game, PgnGame *pgn=nullptr)
 

Protected Member Functions

virtual bool eventFilter (QObject *obj, QEvent *event)
 

Additional Inherited Members

- Public Types inherited from QWidget
enum  BackgroundOrigin
 

Constructor & Destructor Documentation

MoveList::MoveList ( QWidget parent = nullptr)

Constructs a move list with the given parent.

Member Function Documentation

void MoveList::commentClicked ( int  num,
const QString comment 
)
signal

Emitted when the user clicks comment num.

void MoveList::moveClicked ( int  num,
bool  keyLeft 
)
signal

Emitted when the user selects move num.

If keyLeft is true, the current move's reverse animation is shown; otherwise the previous move's animation is shown.

bool MoveList::selectMove ( int  moveNum)
slot

Highlights move moveNum.

Returns true if moveNum is a valid move index; otherwise returns false.

void MoveList::setGame ( ChessGame game,
PgnGame pgn = nullptr 
)

Associates game and pgn with this document.

Either game or pgn must not be NULL. If pgn is NULL, then the PGN data is retrieved from game.

void MoveList::setMove ( int  ply,
const Chess::GenericMove move,
const QString sanString,
const QString comment 
)
slot

Updates the move at ply


The documentation for this class was generated from the following files: