/[hegemonie]/hegemonie/Interface/UiTextField.m
ViewVC logotype

Diff of /hegemonie/Interface/UiTextField.m

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

revision 1.3 by zaral, Tue Aug 5 12:24:54 2003 UTC revision 1.4 by zaral, Thu Aug 7 08:50:43 2003 UTC
# Line 22  Line 22 
22   */   */
23    
24  #include <Foundation/NSException.h>  #include <Foundation/NSException.h>
25    #include <AppKit/NSEvent.h>
26    
27  #include "Interface/UiTextField.h"  #include "Interface/UiTextField.h"
28    
29    @interface UiTextField (Delegate)
30    
31    - (BOOL) leftMouse: (NSEvent *)event;
32    - (void) key: (NSEvent *)event;
33    
34    @end
35    
36  /**  /**
37   * UiTextField implementation   * UiTextField implementation
38   */   */
# Line 54  Line 62 
62        _color = blueColor;        _color = blueColor;
63        _renderText = [[UiText alloc] initWithText: text        _renderText = [[UiText alloc] initWithText: text
64                                            height: _height];                                            height: _height];
65          [self sizeToFit];
66      }      }
67    
68    return self;    return self;
# Line 112  Line 121 
121    _height = height;    _height = height;
122  }  }
123    
124    - (BOOL) canHaveFocus
125    {
126      return YES;
127    }
128    
129    - (BOOL) leftMouseDown: (NSEvent *)event
130    {
131      /* FIXME - change the name of leftMouse */
132      [self leftMouse: event];
133    
134      return YES;
135    }
136    
137    - (BOOL) keyDown: (NSEvent *)event
138    {
139      /* FIXME - change the name of key */
140      [self key: event];
141    
142      return YES;
143    }
144    
145  @end  @end

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26