Minor consistency fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14802 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-10-20 18:23:10 +00:00
parent feaf4828d5
commit b57494baea
2 changed files with 52 additions and 47 deletions

View file

@ -1,3 +1,8 @@
2002-10-20 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/gnustep/gui/NSComboBox.h: Add APPKIT_EXPORT and make layout
a bit more consistent.
2002-10-18 Adam Fedor <fedor@gnu.org> 2002-10-18 Adam Fedor <fedor@gnu.org>
* Documentation/announce.texi: Fix grammer. * Documentation/announce.texi: Fix grammer.

View file

@ -34,79 +34,79 @@
{ {
} }
- (BOOL)hasVerticalScroller; - (BOOL) hasVerticalScroller;
- (void)setHasVerticalScroller:(BOOL)flag; - (void) setHasVerticalScroller: (BOOL)flag;
- (NSSize)intercellSpacing; - (NSSize) intercellSpacing;
- (void)setIntercellSpacing:(NSSize)aSize; - (void) setIntercellSpacing: (NSSize)aSize;
- (float)itemHeight; - (float) itemHeight;
- (void)setItemHeight:(float)itemHeight; - (void) setItemHeight: (float)itemHeight;
- (int)numberOfVisibleItems; - (int) numberOfVisibleItems;
- (void)setNumberOfVisibleItems:(int)visibleItems; - (void) setNumberOfVisibleItems: (int)visibleItems;
- (void)reloadData; - (void) reloadData;
- (void)noteNumberOfItemsChanged; - (void) noteNumberOfItemsChanged;
- (BOOL)usesDataSource; - (BOOL) usesDataSource;
- (void)setUsesDataSource:(BOOL)flag; - (void) setUsesDataSource: (BOOL)flag;
- (void)scrollItemAtIndexToTop:(int)index; - (void) scrollItemAtIndexToTop: (int)index;
- (void)scrollItemAtIndexToVisible:(int)index; - (void) scrollItemAtIndexToVisible: (int)index;
- (void)selectItemAtIndex:(int)index; - (void) selectItemAtIndex: (int)index;
- (void)deselectItemAtIndex:(int)index; - (void) deselectItemAtIndex: (int)index;
- (int)indexOfSelectedItem; - (int) indexOfSelectedItem;
- (int)numberOfItems; - (int) numberOfItems;
/* These two methods can only be used when usesDataSource is YES */ /* These two methods can only be used when usesDataSource is YES */
- (id)dataSource; - (id) dataSource;
- (void)setDataSource:(id)aSource; - (void) setDataSource: (id)aSource;
/* These methods can only be used when usesDataSource is NO */ /* These methods can only be used when usesDataSource is NO */
- (void)addItemWithObjectValue:(id)object; - (void) addItemWithObjectValue: (id)object;
- (void)addItemsWithObjectValues:(NSArray *)objects; - (void) addItemsWithObjectValues: (NSArray *)objects;
- (void)insertItemWithObjectValue:(id)object atIndex:(int)index; - (void) insertItemWithObjectValue: (id)object atIndex:(int)index;
- (void)removeItemWithObjectValue:(id)object; - (void) removeItemWithObjectValue: (id)object;
- (void)removeItemAtIndex:(int)index; - (void) removeItemAtIndex: (int)index;
- (void)removeAllItems; - (void) removeAllItems;
- (void)selectItemWithObjectValue:(id)object; - (void) selectItemWithObjectValue: (id)object;
- (id)itemObjectValueAtIndex:(int)index; - (id) itemObjectValueAtIndex: (int)index;
- (id)objectValueOfSelectedItem; - (id) objectValueOfSelectedItem;
- (int)indexOfItemWithObjectValue:(id)object; - (int) indexOfItemWithObjectValue: (id)object;
- (NSArray *)objectValues; - (NSArray *) objectValues;
#ifndef STRICT_OPENSTEP #ifndef STRICT_OPENSTEP
/* text completion */ /* text completion */
- (void)setCompletes:(BOOL)completes; - (void) setCompletes: (BOOL)completes;
- (BOOL)completes; - (BOOL) completes;
#endif #endif
@end @end
@interface NSObject (NSComboBoxDataSource) @interface NSObject (NSComboBoxDataSource)
- (int)numberOfItemsInComboBox:(NSComboBox *)aComboBox; - (int) numberOfItemsInComboBox: (NSComboBox *)aComboBox;
- (id)comboBox:(NSComboBox *)aComboBox objectValueForItemAtIndex:(int)index; - (id) comboBox: (NSComboBox *)aComboBox objectValueForItemAtIndex:(int)index;
- (unsigned int)comboBox:(NSComboBox *)aComboBox - (unsigned int) comboBox: (NSComboBox *)aComboBox
indexOfItemWithStringValue:(NSString *)string; indexOfItemWithStringValue: (NSString *)string;
#ifndef STRICT_OPENSTEP #ifndef STRICT_OPENSTEP
/* text completion */ /* text completion */
- (NSString *)comboBox:(NSComboBox *)aComboBox - (NSString *) comboBox: (NSComboBox *)aComboBox
completedString:(NSString *)aString; completedString: (NSString *)aString;
#endif #endif
@end @end
@interface NSObject (NSComboBoxNotifications) @interface NSObject (NSComboBoxNotifications)
- (void)comboBoxWillPopUp:(NSNotification *)notification; - (void) comboBoxWillPopUp: (NSNotification *)notification;
- (void)comboBoxWillDismiss:(NSNotification *)notification; - (void) comboBoxWillDismiss: (NSNotification *)notification;
- (void)comboBoxSelectionDidChange:(NSNotification *)notification; - (void) comboBoxSelectionDidChange: (NSNotification *)notification;
- (void)comboBoxSelectionIsChanging:(NSNotification *)notification; - (void) comboBoxSelectionIsChanging: (NSNotification *)notification;
@end @end
NSString *NSComboBoxWillPopUpNotification; APPKIT_EXPORT NSString *NSComboBoxWillPopUpNotification;
NSString *NSComboBoxWillDismissNotification; APPKIT_EXPORT NSString *NSComboBoxWillDismissNotification;
NSString *NSComboBoxSelectionDidChangeNotification; APPKIT_EXPORT NSString *NSComboBoxSelectionDidChangeNotification;
NSString *NSComboBoxSelectionIsChangingNotification; APPKIT_EXPORT NSString *NSComboBoxSelectionIsChangingNotification;
#endif /* _GNUstep_H_NSComboBox */ #endif /* _GNUstep_H_NSComboBox */