オープンソース・ソフトウェアの開発とダウンロード

Subversion リポジトリの参照

Diff of /aquaskk/trunk/platform/mac/src/server/MacInputModeWindow.mm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 113 by t-suwa, Thu Aug 20 14:07:36 2009 UTC revision 126 by t-suwa, Sat Oct 10 13:07:15 2009 UTC
# Line 83  namespace { Line 83  namespace {
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;
# Line 105  namespace { Line 106  namespace {
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 {
# Line 116  namespace { Line 118  namespace {
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

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26