Cute Chess  0.1
Public Member Functions | Protected Member Functions | List of all members
MoveNumberToken Class Reference

A fullmove number token in a PGN game. More...

#include <movenumbertoken.h>

Inheritance diagram for MoveNumberToken:
PgnToken

Public Member Functions

 MoveNumberToken (int ply, int startingSide)
 
virtual QString toString () const
 
- Public Member Functions inherited from PgnToken
void insert (QTextCursor &cursor)
 
bool isEmpty () const
 
int length () const
 
void mergeCharFormat (QTextCursor &cursor, const QTextCharFormat &format)
 
void move (int diff)
 
 PgnToken ()
 
void select (QTextCursor &cursor)
 
virtual ~PgnToken ()
 

Protected Member Functions

virtual void vInsert (QTextCursor &cursor)
 

Detailed Description

A fullmove number token in a PGN game.

Constructor & Destructor Documentation

MoveNumberToken::MoveNumberToken ( int  ply,
int  startingSide 
)

Creates a new MoveNumberToken at ply for a game started by startingSide.

Member Function Documentation

QString MoveNumberToken::toString ( ) const
virtual

Returns the token as a string.

Implements PgnToken.

void MoveNumberToken::vInsert ( QTextCursor cursor)
protectedvirtual

Subclasses must implement this function to insert the token into the document using cursor.

Implements PgnToken.


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