Cute Chess 0.1
MoveToken Class Reference

A chessmove (usually SAN) token in a PGN game. More...

#include <movetoken.h>

Inheritance diagram for MoveToken:
PgnToken

Public Member Functions

 MoveToken (int ply, const QString &text)
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 chessmove (usually SAN) token in a PGN game.

Constructor & Destructor Documentation

◆ MoveToken()

MoveToken::MoveToken ( int ply,
const QString & text )

Creates a new MoveToken with text text at \ply.

Member Function Documentation

◆ toString()

QString MoveToken::toString ( ) const
virtual

Returns the token as a string.

Implements PgnToken.

◆ vInsert()

void MoveToken::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: