Subversion Repositories TruePreview

[/] [trunk/] [Source/] [TruePreviewPreferencesModule.h] - Blame information for rev 18

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1 jhriggs
/*
2
 * Copyright (c) 2009, Jim Riggs, Christian Serving, L.L.C.
3
 * All rights reserved.
4
 *
5
 * Redistribution and use in source and binary forms, with or without
6
 * modification, are permitted provided that the following conditions are
7
 * met:
8
 *     * Redistributions of source code must retain the above copyright
9
 *       notice, this list of conditions and the following disclaimer.
10
 *     * Redistributions in binary form must reproduce the above
11
 *       copyright notice, this list of conditions and the following
12
 *       disclaimer in the documentation and/or other materials provided
13
 *       with the distribution.
14
 *     * Neither the name of Christian Serving, L.L.C. nor the names of
15
 *       its contributors may be used to endorse or promote products
16
 *       derived from this software without specific prior written
17
 *       permission.
18
 *
19
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
 */
31
 
32
/*!
33
 * @header
34
 * Defines the <code>TruePreviewPreferencesModule</code>
35
 * <code>NSPreferencesModule</code> subclass.
36
 * @copyright Copyright (c) 2009 Jim Riggs, Christian Serving, L.L.C. All rights reserved.
37
 * @version \@(#) $Id: TruePreviewPreferencesModule.h 17 2009-10-09 12:21:07Z jhriggs $
38
 * @updated $Date: 2009-10-09 07:21:07 -0500 (Fri, 09 Oct 2009) $
39
 */
40
 
41
#import <AppKit/NSPreferencesModule.h>
42
 
43
/*!
44
 * @class
45
 * The <code>TruePreviewPreferencesModule</code> class is the subclass of
46
 * <code>NSPreferencesModule</code> that displays and manages preferences
47
 * specific to the TruePreview plugin.
48
 * @version \@(#) $Id: TruePreviewPreferencesModule.h 17 2009-10-09 12:21:07Z jhriggs $
49
 * @updated $Date: 2009-10-09 07:21:07 -0500 (Fri, 09 Oct 2009) $
50
 */
51
@interface TruePreviewPreferencesModule : NSPreferencesModule {
52
#pragma mark IBOutlets
53
  /*! @group IBOutlets */
54
 
55
  /*!
56
   * The <code>NSArrayController</code> containing the account information
57
   * displayed in the TruePreview preferences panel.
58
   */
59
  IBOutlet NSArrayController* fldAccountArrayController;
60
}
61
 
62
#pragma mark NSPreferencesModule instance methods
63
/*! @group NSPreferencesModule instance methods */
64
 
65
/*!
66
 * Returns the name of the nib file containing the TruePreview preferences
67
 * panel.
68
 * @result
69
 *   <code>TruePreviewPreferencesPanel</code>.
70
 */
71
- (NSString*)preferencesNibName;
72
 
73
/*!
74
 * Loads the account information for the TruePreview preferences panel.
75
 */
76
- (void)willBeDisplayed;
77
 
78
#pragma mark NSKeyValueObserving instance methods
79
/*! @group NSKeyValueObserving instance methods */
80
 
81
/*!
82
 * Converts the account settings from the TruePreview preferences panel to a
83
 * dictionary and saves the dictionary into the user defaults.
84
 * @param inPath
85
 *   Unused.
86
 * @param inObject
87
 *   Unused.
88
 * @param inChange
89
 *   Unused.
90
 * @param inContext
91
 *   The <code>NSArray</code> containing the account settings from the
92
 *   TruePreview preferences panel.
93
 */
94
- (void)observeValueForKeyPath:(NSString*)inPath
95
    ofObject:(id)inObject
96
    change:(NSDictionary*)inChange
97
    context:(void*)inContext;
98
 
99
@end