Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Dasher::CAlphabet Class Reference

#include </home/clem/local/src/opie/inputmethods/dasher/Alphabet.h>

Inheritance diagram for Dasher::CAlphabet:

Inheritance graph
[legend]
Collaboration diagram for Dasher::CAlphabet:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CAlphabet ()
 ~CAlphabet ()
int GetNumberSymbols () const
Opts::ScreenOrientations GetOrientation ()
Opts::AlphabetTypes GetType ()
std::string & GetTrainingFile ()
symbol GetSpaceSymbol ()
const std::string & GetDisplayText (symbol i) const
const std::string & GetText (symbol i) const
const std::string & GetColour (symbol i) const
int GetTextColour (symbol i)
const std::string & GetForeground (symbol i) const
int get_group (symbol i) const
void GetSymbols (std::vector< symbol > *Symbols, std::string *Input, bool IsMore)
void dump () const

Protected Member Functions

void AddChar (const std::string NewCharacter, const std::string Display, const std::string Colour, const std::string Foreground)
void StartNewGroup ()
void SetSpaceSymbol ()
void SetSpaceSymbol (symbol SpaceSymbol)
void SetOrientation (Opts::ScreenOrientations Orientation)
void SetLanguage (Opts::AlphabetTypes Group)
void SetTrainingFile (std::string TrainingFile)

Private Attributes

Opts::AlphabetTypes m_DefaultEncoding
Opts::ScreenOrientations m_Orientation
symbol m_SpaceSymbol
std::string m_TrainingFile
std::vector< std::string > m_Characters
std::vector< std::string > m_Display
std::vector< std::string > m_Colours
std::vector< std::string > m_Foreground
std::vector< int > m_Group
int m_Groups
alphabet_map TextMap

Constructor & Destructor Documentation

CAlphabet::CAlphabet  ) 
 

Definition at line 19 of file Alphabet.cpp.

References m_Characters, m_Colours, m_Display, m_Foreground, and m_Group.

Dasher::CAlphabet::~CAlphabet  )  [inline]
 

Definition at line 29 of file Alphabet.h.


Member Function Documentation

void CAlphabet::AddChar const std::string  NewCharacter,
const std::string  Display,
const std::string  Colour,
const std::string  Foreground
[protected]
 

Definition at line 99 of file Alphabet.cpp.

References Dasher::alphabet_map::Add(), m_Characters, m_Colours, m_Display, m_Foreground, m_Group, m_Groups, and TextMap.

Referenced by Dasher::CCustomAlphabet::CCustomAlphabet().

void CAlphabet::dump  )  const
 

Definition at line 119 of file Alphabet.cpp.

int Dasher::CAlphabet::get_group symbol  i  )  const [inline]
 

Definition at line 43 of file Alphabet.h.

References m_Group.

Referenced by Dasher::CLanguageModel::GetNodeProbs().

const std::string& Dasher::CAlphabet::GetColour symbol  i  )  const [inline]
 

Definition at line 40 of file Alphabet.h.

References m_Colours.

Referenced by Dasher::CLanguageModel::GetColour().

const std::string& Dasher::CAlphabet::GetDisplayText symbol  i  )  const [inline]
 

Definition at line 38 of file Alphabet.h.

References m_Display.

Referenced by Dasher::CDasherInterface::GetDisplayText().

const std::string& Dasher::CAlphabet::GetForeground symbol  i  )  const [inline]
 

Definition at line 42 of file Alphabet.h.

References m_Foreground.

int Dasher::CAlphabet::GetNumberSymbols  )  const [inline]
 

Definition at line 31 of file Alphabet.h.

References m_Characters.

Referenced by Dasher::CLanguageModel::CLanguageModel(), Dasher::CLanguageModel::GetNodeProbs(), Dasher::CLanguageModel::GetNumberModelChars(), and Dasher::CDasherInterface::GetNumberSymbols().

Opts::ScreenOrientations Dasher::CAlphabet::GetOrientation  )  [inline]
 

Definition at line 33 of file Alphabet.h.

References m_Orientation.

Referenced by Dasher::CDasherInterface::GetAlphabetOrientation().

symbol Dasher::CAlphabet::GetSpaceSymbol  )  [inline]
 

Definition at line 37 of file Alphabet.h.

References m_SpaceSymbol.

Referenced by Dasher::CLanguageModel::GetSpaceSymbol().

void CAlphabet::GetSymbols std::vector< symbol > *  Symbols,
std::string *  Input,
bool  IsMore
 

Definition at line 29 of file Alphabet.cpp.

References Dasher::alphabet_map::Get(), i, size, Opie::Internal::string(), and TextMap.

Referenced by Dasher::CLanguageModel::EnterText(), and Dasher::CLanguageModel::LearnText().

const std::string& Dasher::CAlphabet::GetText symbol  i  )  const [inline]
 

Definition at line 39 of file Alphabet.h.

References m_Characters.

Referenced by Dasher::CDasherInterface::GetEditText().

int CAlphabet::GetTextColour symbol  i  ) 
 

Definition at line 132 of file Alphabet.cpp.

References m_Foreground, and Opie::Internal::string().

Referenced by Dasher::CDasherInterface::GetTextColour().

std::string& Dasher::CAlphabet::GetTrainingFile  )  [inline]
 

Definition at line 35 of file Alphabet.h.

References m_TrainingFile.

Referenced by Dasher::CDasherInterface::ChangeAlphabet(), and Dasher::CDasherInterface::SetUserLocation().

Opts::AlphabetTypes Dasher::CAlphabet::GetType  )  [inline]
 

Definition at line 34 of file Alphabet.h.

References m_DefaultEncoding.

Referenced by Dasher::CDasherInterface::GetAlphabetType().

void Dasher::CAlphabet::SetLanguage Opts::AlphabetTypes  Group  )  [inline, protected]
 

Definition at line 65 of file Alphabet.h.

References m_DefaultEncoding.

Referenced by Dasher::CCustomAlphabet::CCustomAlphabet().

void Dasher::CAlphabet::SetOrientation Opts::ScreenOrientations  Orientation  )  [inline, protected]
 

Definition at line 64 of file Alphabet.h.

References m_Orientation.

Referenced by Dasher::CCustomAlphabet::CCustomAlphabet().

void Dasher::CAlphabet::SetSpaceSymbol symbol  SpaceSymbol  )  [inline, protected]
 

Definition at line 63 of file Alphabet.h.

References m_SpaceSymbol.

void Dasher::CAlphabet::SetSpaceSymbol  )  [inline, protected]
 

Definition at line 62 of file Alphabet.h.

References m_Characters, and m_SpaceSymbol.

Referenced by Dasher::CCustomAlphabet::CCustomAlphabet().

void Dasher::CAlphabet::SetTrainingFile std::string  TrainingFile  )  [inline, protected]
 

Definition at line 66 of file Alphabet.h.

References m_TrainingFile.

Referenced by Dasher::CCustomAlphabet::CCustomAlphabet().

void CAlphabet::StartNewGroup  )  [protected]
 

Definition at line 112 of file Alphabet.cpp.

References m_Groups.

Referenced by Dasher::CCustomAlphabet::CCustomAlphabet().


Member Data Documentation

std::vector<std::string> Dasher::CAlphabet::m_Characters [private]
 

Definition at line 73 of file Alphabet.h.

Referenced by AddChar(), CAlphabet(), GetNumberSymbols(), GetText(), and SetSpaceSymbol().

std::vector<std::string> Dasher::CAlphabet::m_Colours [private]
 

Definition at line 75 of file Alphabet.h.

Referenced by AddChar(), CAlphabet(), and GetColour().

Opts::AlphabetTypes Dasher::CAlphabet::m_DefaultEncoding [private]
 

Definition at line 68 of file Alphabet.h.

Referenced by GetType(), and SetLanguage().

std::vector<std::string> Dasher::CAlphabet::m_Display [private]
 

Definition at line 74 of file Alphabet.h.

Referenced by AddChar(), CAlphabet(), and GetDisplayText().

std::vector<std::string> Dasher::CAlphabet::m_Foreground [private]
 

Definition at line 76 of file Alphabet.h.

Referenced by AddChar(), CAlphabet(), GetForeground(), and GetTextColour().

std::vector<int> Dasher::CAlphabet::m_Group [private]
 

Definition at line 77 of file Alphabet.h.

Referenced by AddChar(), CAlphabet(), and get_group().

int Dasher::CAlphabet::m_Groups [private]
 

Definition at line 78 of file Alphabet.h.

Referenced by AddChar(), and StartNewGroup().

Opts::ScreenOrientations Dasher::CAlphabet::m_Orientation [private]
 

Definition at line 69 of file Alphabet.h.

Referenced by GetOrientation(), and SetOrientation().

symbol Dasher::CAlphabet::m_SpaceSymbol [private]
 

Definition at line 70 of file Alphabet.h.

Referenced by GetSpaceSymbol(), and SetSpaceSymbol().

std::string Dasher::CAlphabet::m_TrainingFile [private]
 

Definition at line 71 of file Alphabet.h.

Referenced by GetTrainingFile(), and SetTrainingFile().

alphabet_map Dasher::CAlphabet::TextMap [private]
 

Definition at line 79 of file Alphabet.h.

Referenced by AddChar(), and GetSymbols().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:58:23 2005 for OPIE by  doxygen 1.4.2