Ignore:
Timestamp:
01/30/03 05:31:29 (18 years ago)
Author:
Nicholas Riley
Message:

ICeCoffEE 1.3b2 plus some changes for 1.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ICeCoffEE/ICeCoffEE/ICeCoffEE.h

    r66 r74  
    33#import "ICeCoffEESuper.h"
    44#import "ICeCoffEEShared.h"
    5 
    6 #if ICCF_DEBUG
    7 #define ICLog NSLog
    8 #else
    9 #define ICLog (void)
    10 #endif
     5#import "ICeCoffEEConfig.h"
    116
    127#define ICCF_OSErrAssert(err, context) NSAssert(err == noErr, ICCF_ErrString(err, context));
    138#define ICCF_OSErrCAssert(err, context) NSCAssert(err == noErr, ICCF_ErrString(err, context));
    149
    15 extern const long ICCF_MAX_URL_LEN;
    16 extern BOOL ICCF_enabled;
     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]
    1713
    18 // functions shared between implementations
     14// returns an explanation for the provided OSStatus in the supplied
     15// if nil is returned, the error is harmless (e.g., user cancelled)
    1916NSString *ICCF_ErrString(OSStatus err, NSString *context);
    20 void ICCF_HandleException(NSException *e);
     17
     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);
     21
     22// returns YES if the event is a command-mouse down
    2123BOOL ICCF_EventIsCommandMouseDown(NSEvent *e);
     24
     25// returns YES if the current event's modifier flags include the option key
     26BOOL ICCF_OptionKeyIsDown();
     27
     28// throws an exception if the URL range is nonexistent or too big
    2229void ICCF_CheckRange(NSRange range);
     30
     31// returns NSCharacterSets representing valid URL delimiters for left and right sides
    2332void ICCF_Delimiters(NSCharacterSet **leftPtr, NSCharacterSet **rightPtr);
     33
     34// start Internet Config (before ICCF_LaunchURL)
    2435void ICCF_StartIC();
     36
     37// stop Internet Config (after ICCF_LaunchURL)
    2538void ICCF_StopIC();
     39
     40// calls ICParseURL, returns output range
    2641void ICCF_ParseURL(NSString *string, NSRange *range);
    27 void ICCF_LaunchURL(NSString *string);
     42
     43// calls ICLaunchURL or ICCF_LaunchURLWithApplication (if chooseApp)
     44void ICCF_LaunchURL(NSString *string, BOOL chooseApp);
     45
     46// launch URL from on selected text view cursor position or selection
    2847void ICCF_LaunchURLFromTextView(NSTextView *self);
     48
     49// returns contextual menu with Services item added, if selected
    2950NSMenu *ICCF_MenuForEvent(NSTextView *self, NSMenu *contextMenu, NSEvent *e);
     51
     52// adds or removes services menu in menu bar
     53void ICCF_AddRemoveServicesMenu();
    3054
    3155@interface ICeCoffEE : ICeCoffEESuper
Note: See TracChangeset for help on using the changeset viewer.