~alanbell/dasher/ircfix-lp579181

« back to all changes in this revision

Viewing changes to Src/DasherCore/AlphabetManager.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-11-14 12:03:42 UTC
  • mfrom: (1.2.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20061114120342-pebcosas78lczcgz
Tags: 4.3.1-0ubuntu1
* New upstream release:
  - 4.3.1:
    - Bugfixes
    - Translation updates
  - 4.3.0:
    - Mainly work on two button dynamic mode to provide a platform for 
      user tests
* debian/patches/10_remove-extra-qualifier.patch:
  - fix FTBFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
#include "Parameters.h"
8
8
 
 
9
class CNodeCreationManager;
 
10
 
9
11
namespace Dasher {
10
12
 
11
 
  class CDasherModel;
12
 
 
13
13
  ///
14
14
  /// A node manager which deals with alphabets and language models.
15
15
  ///
17
17
  class CAlphabetManager : public CNodeManager {
18
18
  public:
19
19
 
20
 
    CAlphabetManager( CDasherModel *pModel, CLanguageModel *pLanguageModel, bool bGameMode, const std::string &strGameModeText );
 
20
    CAlphabetManager(CNodeCreationManager *pNCManager, CLanguageModel *pLanguageModel, CLanguageModel::Context iLearnContext, bool bGameMode, const std::string &strGameModeText);
21
21
 
22
22
    ///
23
23
    /// Does nothing - alphabet manager isn't reference counted.
55
55
 
56
56
    virtual CDasherNode *RebuildParent(CDasherNode *pNode, int iGeneration);
57
57
 
 
58
    virtual void SetFlag(CDasherNode *pNode, int iFlag, bool bValue);
 
59
 
58
60
  private:
59
61
    CLanguageModel *m_pLanguageModel;
60
 
    CDasherModel *m_pModel;
61
 
 
 
62
    CNodeCreationManager *m_pNCManager;
 
63
    CLanguageModel::Context m_iLearnContext;
62
64
    std::string m_strGameString;
63
65
    bool m_bGameMode;
64
66
 
65
67
    struct SAlphabetData {
66
68
      symbol iSymbol;
67
69
      int iPhase;
 
70
      CLanguageModel *pLanguageModel;
 
71
      CLanguageModel::Context iContext;
68
72
      int iGameOffset;
69
73
    };
70
74