-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathSSYPrefsWindowController.h
58 lines (44 loc) · 2.04 KB
/
SSYPrefsWindowController.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@interface SSYPrefsWindowController : NSWindowController
#if (MAC_OS_X_VERSION_MAX_ALLOWED >= 1060)
<NSToolbarDelegate>
#endif
{
IBOutlet NSTabView* ibOutlet_tabView ; ///< The tabless tab-view that we're a switcher for.
NSMutableDictionary* itemsList ; ///< Auto-generated from tab view's items.
NSString* baseWindowName ; ///< Auto-fetched at awakeFromNib time. We append a colon and the name of the current page to the actual window title.
NSString* autosaveName ; ///< Identifier used for saving toolbar state and current selected page of prefs window.
}
+ (NSSet*)standardToolbarIdentifiers ;
-(void) setAutosaveName: (NSString*)name;
-(NSString*) autosaveName;
// Action for hooking up this object and the menu item:
-(IBAction) orderFrontPrefsPanel: (id)sender;
/*!
@brief Subclasses should override this method to provide a localized
string for the given key.
@details Do not return nil. If the given key cannot be localized,
return the key itself.
The strings which will be passed to this method are:
• The 'label' of any tab in the nib file, for which this method
should return the localized title of the tab.
• The string @"windowTitlePrefs", for which this method should return
the title of the Preferences window
*/
-(NSString*)localizeString:(NSString*)key ;
/*!
@brief Subclasses should over-ride this to provide tooltips for
a given toolbar item identifier.
@details The default implementation returns nil.
*/
-(NSString*)toolTipForIdentifier:(NSString*)identifier ;
- (BOOL)revealTabViewIdentifier:(NSString*)identifier ;
/*!
@brief Returns a special image for certain tab view items
@details Subclasses may override this to provide a special image for
certain tab view items, for example if you want to use a home-made vector
image. For other tab view items, return nil and the default
[NSImage imageNamed:<item-identifier>] will be used. The default
implementation returns nil regardless of the passed-ib identifier.
*/
- (NSImage*)specialImageForTabViewIdentifier:(NSString*)identifier;
@end