Implement toolTip/setToolTip for NSTabViewItem - NOT TIED IN YET

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35506 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2012-09-03 20:39:02 +00:00
parent 781794e998
commit 0520b35f07
2 changed files with 20 additions and 0 deletions

View file

@ -52,6 +52,7 @@ typedef enum {
NSView *_first_responder;
NSTabView *_tabview;
NSRect _rect; // cached
NSString *_toolTip;
}
- (id) initWithIdentifier:(id)identifier;
@ -76,6 +77,12 @@ typedef enum {
- (void)drawLabel:(BOOL)shouldTruncateLabel
inRect:(NSRect)tabRect;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
- (NSString *)toolTip;
- (void) setToolTip:(NSString *)newToolTip;
#endif
@end
@interface NSTabViewItem (GNUstep)
@ -85,6 +92,7 @@ typedef enum {
- (void)_setTabView:(NSTabView *)tabView;
- (NSRect) _tabRect;
- (NSString*)_truncatedLabel;
@end
#endif // _GNUstep_H_NSTabViewItem

View file

@ -249,6 +249,18 @@
return self;
}
- (NSString *)toolTip
{
return _toolTip;
}
- (void) setToolTip:(NSString *)newToolTip
{
// FIXME: Need to find out how to link this to display
ASSIGN(_toolTip, newToolTip);
}
@end
@implementation NSTabViewItem (GNUstep)