Subversion リポジトリの参照
Diff of /aquaskk/trunk/platform/mac/src/server/MacInputModeWindow.mm
Parent Directory
| Revision Log
| Patch
83 |
InputModeWindow* window_; |
InputModeWindow* window_; |
84 |
SKKLayoutManager* layout_; |
SKKLayoutManager* layout_; |
85 |
SKKInputMode mode_; |
SKKInputMode mode_; |
86 |
|
BOOL active_; |
87 |
} |
} |
88 |
|
|
89 |
- (id)initWithLayoutManager:(SKKLayoutManager*)layout; |
- (id)initWithLayoutManager:(SKKLayoutManager*)layout; |
106 |
|
|
107 |
[window_ changeMode:mode_]; |
[window_ changeMode:mode_]; |
108 |
[window_ showAt:pt level:layout_->WindowLevel()]; |
[window_ showAt:pt level:layout_->WindowLevel()]; |
109 |
|
active_ = NO; |
110 |
} |
} |
111 |
|
|
112 |
- (void)cancel { |
- (void)cancel { |
118 |
if(self) { |
if(self) { |
119 |
window_ = [InputModeWindow sharedWindow]; |
window_ = [InputModeWindow sharedWindow]; |
120 |
layout_ = layout; |
layout_ = layout; |
121 |
|
active_ = NO; |
122 |
} |
} |
123 |
|
|
124 |
return self; |
return self; |
125 |
} |
} |
126 |
|
|
127 |
- (void)show:(SKKInputMode)mode { |
- (void)show:(SKKInputMode)mode { |
128 |
|
if(active_) return; |
129 |
|
|
130 |
|
active_ = YES; |
131 |
[self cancel]; |
[self cancel]; |
132 |
mode_ = mode; |
mode_ = mode; |
133 |
[self performSelector:@selector(activate:) withObject:self afterDelay:0.1]; |
[self performSelector:@selector(activate:) withObject:self afterDelay:0.1]; |
|
Legend:
Removed from v.113 |
|
changed lines |
|
Added in v.126 |
|
|
|