Cute Chess 0.1
Public Types | Public Member Functions | Protected Types | Protected Member Functions | List of all members
PgnHighlighter Class Reference
Inheritance diagram for PgnHighlighter:
QSyntaxHighlighter

Public Types

enum  Construct {
  Tag , String , MoveNumber , Result ,
  Comment , LastConstrcut = Comment
}
 

Public Member Functions

QTextCharFormat formatFor (Construct construct) const
 
 PgnHighlighter (QTextDocument *document)
 
void setFormatFor (Construct construct, const QTextCharFormat &format)
 

Protected Types

enum  State {
  NormalState = -1 , InTag , InString , InMoveNumber ,
  InComment
}
 

Protected Member Functions

void highlightBlock (const QString &text)
 

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