-
Notifications
You must be signed in to change notification settings - Fork 0
/
PZPreferencesWindowController.h
47 lines (38 loc) · 1.4 KB
/
PZPreferencesWindowController.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
//
// PZPreferencesWindowController.h
// PzzApp
//
// Created by Ana Cañizares on 01.04.12.
// Copyright 2012 PilPel Soft. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface PZDropImageView : NSImageView
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender;
- (void)draggingExited:(id <NSDraggingInfo>)sender;
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;
@end
@interface PZPreferencesWindowController : NSWindowController <NSToolbarDelegate> {
IBOutlet NSToolbar *bar;
IBOutlet NSView *generalPreferenceView;
IBOutlet NSView *currentPuzzlePreferenceView;
IBOutlet PZDropImageView *generalImageView;
IBOutlet NSTextField *generalImageViewLabel;
IBOutlet NSPopUpButton *generalLevelPopUp;
IBOutlet NSPopUpButton *generalSizePopUp;
IBOutlet NSColorWell *generalColorWell;
IBOutlet NSButton *showAlertCheckBox;
int currentViewTag;
}
+ (PZPreferencesWindowController *) sharedPZPreferencesWindowController;
-(NSView *) viewForTag:(int)tag;
-(IBAction) switchView:(id)sender;
-(NSRect) newFrameForNewContentView:(NSView *)view;
- (IBAction) changeLevel: (id) sender;
- (IBAction) changeSize: (id) sender;
- (IBAction) chooseImage: (id) sender;
- (IBAction) changeBackgroundColor: (id) sender;
- (IBAction) configureAlertDialogs: (id) sender;
- (void) imageDropped: (NSURL *) url;
- (void) imageRemoved;
- (IBAction) restorePreferences: (id) sender;
@end