Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 71 lines (56 sloc) 3.22 kb
544c9ac @tjw Initial import of LinkBack 1.0 alpha from <http://linkbackproject.org/fi...
tjw authored
1 // SKTGridPanelController.h
2 // Sketch Example
3 //
4
5 #import <AppKit/AppKit.h>
6
7 @class SKTGridView;
8 @class SKTGraphicView;
9
10 @interface SKTGridPanelController : NSWindowController {
11 @private
12 IBOutlet NSButton *snapsToGridCheckbox;
13 IBOutlet NSButton *showsGridCheckbox;
14 IBOutlet NSSlider *gridSpacingSlider;
15 IBOutlet NSColorWell *gridColorWell;
16 IBOutlet SKTGridView *gridView;
17
18 SKTGraphicView *_inspectingGraphicView;
19 }
20
21 + (id)sharedGridPanelController;
22
23 - (void)updatePanel;
24
25 - (BOOL)snapsToGrid;
26 - (BOOL)showsGrid;
27 - (float)gridSpacing;
28 - (NSColor *)gridColor;
29
30 - (IBAction)snapsToGridCheckboxAction:(id)sender;
31 - (IBAction)showsGridCheckboxAction:(id)sender;
32 - (IBAction)gridSpacingSliderAction:(id)sender;
33 - (IBAction)gridColorWellAction:(id)sender;
34
35 @end
36
37 extern void SKTDrawGridWithSettingsInRect(float spacing, NSColor *color, NSRect rect, NSPoint gridOrigin);
38
39 /*
40 IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
41 consideration of your agreement to the following terms, and your use, installation,
42 modification or redistribution of this Apple software constitutes acceptance of these
43 terms. If you do not agree with these terms, please do not use, install, modify or
44 redistribute this Apple software.
45
46 In consideration of your agreement to abide by the following terms, and subject to these
47 terms, Apple grants you a personal, non-exclusive license, under Apple's copyrights in
48 this original Apple software (the "Apple Software"), to use, reproduce, modify and
49 redistribute the Apple Software, with or without modifications, in source and/or binary
50 forms; provided that if you redistribute the Apple Software in its entirety and without
51 modifications, you must retain this notice and the following text and disclaimers in all
52 such redistributions of the Apple Software. Neither the name, trademarks, service marks
53 or logos of Apple Computer, Inc. may be used to endorse or promote products derived from
54 the Apple Software without specific prior written permission from Apple. Except as expressly
55 stated in this notice, no other rights or licenses, express or implied, are granted by Apple
56 herein, including but not limited to any patent rights that may be infringed by your
57 derivative works or by other works in which the Apple Software may be incorporated.
58
59 The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES,
60 EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT,
61 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS
62 USE AND OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
63
64 IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
65 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
66 OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
67 REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND
68 WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR
69 OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
70 */
Something went wrong with that request. Please try again.