source: trunk/ICeCoffEE/ICeCoffEE/ICeCoffEE.h @ 106

Last change on this file since 106 was 106, checked in by Nicholas Riley, 18 years ago

ICeCoffEE 1.3.2b1

File size: 2.1 KB
[66]1/* ICeCoffEE */
3#import "ICeCoffEESuper.h"
4#import "ICeCoffEEShared.h"
[74]5#import "ICeCoffEEConfig.h"
7#define ICCF_OSErrAssert(err, context) NSAssert(err == noErr, ICCF_ErrString(err, context));
8#define ICCF_OSErrCAssert(err, context) NSCAssert(err == noErr, ICCF_ErrString(err, context));
[74]10// search for: (?<!ICCF_LocalizedString\()(?<!ICLog\()(?<!ICapeprintf("\()(?<!%)(@"(?!Internal error: )[^"]+") replace with: ICCF_LocalizedString(\1)
11#define ICCF_LocalizedString(key) \
12    [(NSString *)CFBundleCopyLocalizedString(ICCF_bundle, (CFStringRef)(key), CFSTR(""), NULL) autorelease]
[74]14// returns an explanation for the provided OSStatus in the supplied
15// if nil is returned, the error is harmless (e.g., user cancelled)
[66]16NSString *ICCF_ErrString(OSStatus err, NSString *context);
18// handles an exception as specified by ICError* preferences
19// if NO is returned, the exception is harmless (e.g., user cancelled)
20BOOL ICCF_HandleException(NSException *e);
22// returns YES if the event is a command-mouse down
[66]23BOOL ICCF_EventIsCommandMouseDown(NSEvent *e);
[106]25// returns the action determined by the current state of keyboard modifiers
26iccfURLAction ICCF_KeyboardAction();
28// throws an exception if the URL range is nonexistent or too big
[66]29void ICCF_CheckRange(NSRange range);
31// returns NSCharacterSets representing valid URL delimiters for left and right sides
[66]32void ICCF_Delimiters(NSCharacterSet **leftPtr, NSCharacterSet **rightPtr);
34// start Internet Config (before ICCF_LaunchURL)
[66]35void ICCF_StartIC();
37// stop Internet Config (after ICCF_LaunchURL)
[66]38void ICCF_StopIC();
40// calls ICParseURL, returns output range
[66]41void ICCF_ParseURL(NSString *string, NSRange *range);
[106]43// calls ICCF_DoURLAction
44void ICCF_LaunchURL(NSString *string, iccfURLAction action);
46// launch URL from on selected text view cursor position or selection
[66]47void ICCF_LaunchURLFromTextView(NSTextView *self);
49// returns contextual menu with Services item added, if selected
[66]50NSMenu *ICCF_MenuForEvent(NSTextView *self, NSMenu *contextMenu, NSEvent *e);
[74]52// adds or removes services menu in menu bar
53void ICCF_AddRemoveServicesMenu();
[66]55@interface ICeCoffEE : ICeCoffEESuper
Note: See TracBrowser for help on using the repository browser.