26 |
#include "GenericStateMachine.h" |
#include "GenericStateMachine.h" |
27 |
#include "SKKInputMode.h" |
#include "SKKInputMode.h" |
28 |
#include "SKKEvent.h" |
#include "SKKEvent.h" |
|
#include "SKKComposingEditor.h" |
|
|
#include "SKKOkuriEditor.h" |
|
|
#include "SKKCandidateEditor.h" |
|
|
#include "SKKEntryRemoveEditor.h" |
|
29 |
#include "SKKCompleter.h" |
#include "SKKCompleter.h" |
30 |
#include "SKKSelector.h" |
#include "SKKSelector.h" |
31 |
|
|
32 |
using namespace statemachinecxx_sourceforge_jp; |
using namespace statemachinecxx_sourceforge_jp; |
33 |
|
|
34 |
class SKKEditorStack; |
class SKKInputEngine; |
35 |
class SKKCandidateWindow; |
class SKKCandidateWindow; |
36 |
class SKKStateConfiguration; |
class SKKStateConfiguration; |
37 |
|
|
38 |
// 状態コンテナ |
// 状態コンテナ |
39 |
class SKKState : public BaseStateContainer<SKKState, SKKEvent> { |
class SKKState : public BaseStateContainer<SKKState, SKKEvent> { |
40 |
SKKStateConfiguration* configuration_; |
SKKStateConfiguration* configuration_; |
41 |
SKKEditorStack* editor_; |
SKKInputEngine* editor_; |
42 |
SKKCandidateWindow* window_; |
SKKCandidateWindow* window_; |
43 |
SKKInputMode inputMode_; |
SKKInputMode inputMode_; |
|
SKKComposingEditor composingEditor_; |
|
|
SKKOkuriEditor okuriEditor_; |
|
|
SKKCandidateEditor candidateEditor_; |
|
|
SKKEntryRemoveEditor entryRemoveEditor_; |
|
44 |
SKKCompleter completer_; |
SKKCompleter completer_; |
45 |
SKKSelector selector_; |
SKKSelector selector_; |
46 |
|
|
47 |
public: |
public: |
48 |
SKKState(SKKStateConfiguration* configuration, SKKEditorStack* editor, SKKCandidateWindow* window); |
SKKState(SKKStateConfiguration* configuration, SKKInputEngine* editor, SKKCandidateWindow* window); |
49 |
SKKState(const SKKState& src); |
SKKState(const SKKState& src); |
50 |
|
|
51 |
virtual const Handler InitialState() const { return &SKKState::Primary; } |
virtual const Handler InitialState() const { return &SKKState::Primary; } |