mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 21:30:37 +00:00
More data link implementation details.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20850 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
288beea76f
commit
45f40695b6
8 changed files with 329 additions and 93 deletions
|
@ -33,7 +33,7 @@
|
|||
|
||||
@class NSString;
|
||||
@class NSEnumerator;
|
||||
@class NSMutableDictionary;
|
||||
@class NSMutableArray;
|
||||
@class NSDataLink;
|
||||
@class NSSelection;
|
||||
@class NSPasteboard;
|
||||
|
@ -44,12 +44,16 @@
|
|||
// Attributes
|
||||
id delegate;
|
||||
NSString *filename;
|
||||
BOOL delegateVerifiesLinks;
|
||||
BOOL interactsWithUser;
|
||||
BOOL isEdited;
|
||||
BOOL areLinkOutlinesVisible;
|
||||
NSMutableDictionary *sourceLinks;
|
||||
NSMutableDictionary *destinationLinks;
|
||||
NSMutableArray *sourceLinks;
|
||||
NSMutableArray *destinationLinks;
|
||||
|
||||
struct __dlmFlags {
|
||||
unsigned areLinkOutlinesVisible:1;
|
||||
unsigned delegateVerifiesLinks:1;
|
||||
unsigned interactsWithUser:1;
|
||||
unsigned isEdited:1;
|
||||
} _flags;
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -108,9 +112,7 @@
|
|||
// Methods Implemented by the Delegate
|
||||
//
|
||||
@interface NSObject (NSDataLinkManagerDelegate)
|
||||
- (BOOL)copyToPasteboard:(NSPasteboard *)pasteboard
|
||||
at:(NSSelection *)selection
|
||||
cheapCopyAllowed:(BOOL)flag;
|
||||
// data link management methods.
|
||||
- (void)dataLinkManager:(NSDataLinkManager *)sender
|
||||
didBreakLink:(NSDataLink *)link;
|
||||
- (BOOL)dataLinkManager:(NSDataLinkManager *)sender
|
||||
|
@ -123,6 +125,11 @@
|
|||
- (void)dataLinkManagerDidEditLinks:(NSDataLinkManager *)sender;
|
||||
- (void)dataLinkManagerRedrawLinkOutlines:(NSDataLinkManager *)sender;
|
||||
- (BOOL)dataLinkManagerTracksLinksIndividually:(NSDataLinkManager *)sender;
|
||||
|
||||
// selection management methods.
|
||||
- (BOOL)copyToPasteboard:(NSPasteboard *)pasteboard
|
||||
at:(NSSelection *)selection
|
||||
cheapCopyAllowed:(BOOL)flag;
|
||||
- (BOOL)importFile:(NSString *)filename
|
||||
at:(NSSelection *)selection;
|
||||
- (BOOL)pasteFromPasteboard:(NSPasteboard *)pasteboard
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue