-
Notifications
You must be signed in to change notification settings - Fork 1
/
GenericPreferencesWindowController.h
38 lines (30 loc) · 1.24 KB
/
GenericPreferencesWindowController.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
//
// GenericPreferencesWindowController.h
// Add Folder Icons
//
// Created by Andrew Hodgkinson on 12/01/2011.
// Copyright 2011 Hipposoft. All rights reserved.
//
// Based on ideas from "DBPrefsWindowController" by Dave Batton,
// http://www.Mere-Mortal-Software.com/blog/
//
// Unwanted features removed, some code reorganisation and some
// names changed for wider application code style consistency.
//
#import <Cocoa/Cocoa.h>
#define GENERIC_PREFERENCES_WINDOW_CONTROLLER_NIB_NAME @"Preferences"
#define GENERIC_PREFERENCES_WINDOW_CONTROLLER_TOOLBAR_IDENTIFIER @"PreferencesToolbar"
@interface GenericPreferencesWindowController : NSWindowController < NSToolbarDelegate >
{
NSMutableArray * toolbarLabels;
NSMutableDictionary * toolbarViews;
NSMutableDictionary * toolbarItems;
NSView * subview;
}
+ ( id ) allocPreferencesWindowController;
- ( void ) initToolbar;
- ( void ) addView: ( NSView * ) view label: ( NSString * ) label;
- ( void ) addView: ( NSView * ) view label: ( NSString * ) label image: ( NSImage * ) image;
- ( void ) displayViewForLabel: ( NSString * ) label animate: ( BOOL ) animate;
- ( NSRect ) frameForView: ( NSView * ) view;
@end