-
Notifications
You must be signed in to change notification settings - Fork 0
/
BSImagePreviewerInterface.h
42 lines (36 loc) · 1.5 KB
/
BSImagePreviewerInterface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// BSImagePreviewerInterface.h
// BathyScaphe
//
// Created by Tsutomu Sawada on 05/10/15, Last Modified on 07/10/24.
// Copyright 2005-2007 BathyScaphe Project. All rights reserved.
// encoding="UTF-8"
//
@class AppDefaults;
@protocol BSImagePreviewerProtocol
// Designated Initializer
- (id)initWithPreferences:(AppDefaults *)prefs;
// Accessor
- (AppDefaults *)preferences;
- (void)setPreferences:(AppDefaults *)aPreferences;
// Action
- (BOOL)showImageWithURL:(NSURL *)imageURL;
- (BOOL)validateLink:(NSURL *)anURL;
@end
@interface NSObject(BSImagePreviewerInformalProtocol)
// MeteorSweeper Addition - optional method information
// このメソッドはプロトコル定義には含まれませんが、BathyScaphe 1.3 以降でプラグインの Principal class に
// このメソッドを実装しておくと、BathyScaphe の「ウインドウ」>「プレビュー」メニュー項目が有効になります。
// BathyScaphe は「ウインドウ」>「プレビュー」が選択されると、プラグインに対してこのメソッドを実行するようメッセージを送信します。
- (IBAction)togglePreviewPanel:(id)sender;
// Available in BathyScaphe 1.6 and later.
- (BOOL)showImagesWithURLs:(NSArray *)urls;
- (IBAction)showPreviewerPreferences:(id)sender;
@end
@interface NSObject(IPPAdditions)
// Storage for plugin-specific settings
- (NSMutableDictionary *)imagePreviewerPrefsDict;
// Accessor for useful BathyScaphe global settings
- (BOOL)openInBg;
- (BOOL)isOnlineMode;
@end