File: PrefBox.h

package info (click to toggle)
lusernet.app 0.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 828 kB
  • sloc: objc: 8,495; makefile: 22
file content (37 lines) | stat: -rw-r--r-- 884 bytes parent folder | download | duplicates (6)
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
/*
copyright 2002 Alexander Malmberg <alexander@malmberg.org>
*/

#ifndef PrefBox_h
#define PrefBox_h

@class NSView,NSButton,NSString;

@protocol PrefBox

-(void) setupButton: (NSButton *)b;
/* Called when the PrefBox is added to a preferences panel. It should
add a label or an image or something to the button. */

-(void) willHide;
/* Called just before another PrefBox will be displayed if this one
is currently displayed.*/

-(NSView *) willShow;
/* Called before this PrefBox will be displayed. Should return the
top-level NSView that should be displayed. (This view should probably
be cached, but creating it on demand is nice.) */

-(void) save;
-(void) revert;
/* Called on all PrefBox:s when the user clicks the save or revert
button. */

-(NSString *) name;
/* Return the name that is displayed in the header of the NSBox when
this PrefBox is displayed. */

@end

#endif