-
-
Notifications
You must be signed in to change notification settings - Fork 198
/
Copy pathPrefsWindowController.h
executable file
·108 lines (97 loc) · 4.33 KB
/
PrefsWindowController.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/* PrefsWindowController */
/*Copyright (c) 2010, Zachary Schneirov. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted
provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions
and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of
conditions and the following disclaimer in the documentation and/or other materials provided with
the distribution.
- Neither the name of Notational Velocity nor the names of its contributors may be used to endorse
or promote products derived from this software without specific prior written permission. */
#import <Cocoa/Cocoa.h>
@class NotationPrefsViewController;
@class GlobalPrefs;
@interface PrefsWindowController : NSObject
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
<NSWindowDelegate, NSToolbarDelegate>
#endif
{
IBOutlet NSButton *useETScrollbarsOnLionButton;
IBOutlet NSPopUpButton *folderLocationsMenuButton;
IBOutlet NSTextField *bodyTextFontField;
IBOutlet NSMatrix *tabKeyRadioMatrix;
IBOutlet NSPopUpButton *tableTextMenuButton;
IBOutlet NSPopUpButton *externalEditorMenuButton;
IBOutlet NSTextField *tableTextSizeField;
IBOutlet NSTextField *appShortcutField;
IBOutlet NSButton *completeNoteTitlesButton;
IBOutlet NSButton *checkSpellingButton;
IBOutlet NSButton *confirmDeletionButton;
IBOutlet NSButton *quitWhenClosingButton;
IBOutlet NSButton *styledTextButton;
IBOutlet NSButton *autoSuggestLinksButton;
IBOutlet NSButton *softTabsButton;
IBOutlet NSButton *makeURLsClickable;
IBOutlet NSButton *highlightSearchTermsButton;
IBOutlet NSColorWell *searchHighlightColorWell, *foregroundColorWell, *backgroundColorWell;
IBOutlet NSButton *togDockButton;
IBOutlet NSTextField *togDockLabel;
IBOutlet NSSlider *maxWidthSlider;
IBOutlet NotationPrefsViewController *notationPrefsViewController;
IBOutlet NSComboBox *appList;
IBOutlet NSButton *useMarkdownImportButton;
IBOutlet NSButton *useReadabilityButton;
IBOutlet NSButton *showGridButton;
IBOutlet NSButton *altRowsButton;
NSMutableParagraphStyle *centerStyle;
NSMutableDictionary *items;
NSToolbar *toolbar;
BOOL fontPanelWasOpen;
IBOutlet NSWindow *window;
IBOutlet NSView *editingView, *generalView, *fontsColorsView, *databaseView, *notationPrefsView;
IBOutlet NSButton *rtlButton;
IBOutlet NSButton *autoPairButton;
GlobalPrefs *prefsController;
}
- (void)showWindow:(id)sender;
- (IBAction)changedUseETScrollbarsOnLion:(id)sender;
- (IBAction)changedBackgroundTextColorWell:(id)sender;
- (IBAction)changedForegroundTextColorWell:(id)sender;
- (IBAction)changedHighlightSearchTerms:(id)sender;
- (IBAction)changedSearchHighlightColorWell:(id)sender;
- (IBAction)changedMakeURLsClickable:(id)sender;
- (IBAction)changedStyledTextBehavior:(id)sender;
- (IBAction)changedAutoSuggestLinks:(id)sender;
- (IBAction)setAppShortcut:(id)sender;
- (IBAction)changeBodyFont:(id)sender;
- (IBAction)changedRTL:(id)sender;
- (void)previewNoteBodyFont;
- (IBAction)changedNoteDeletion:(id)sender;
- (IBAction)changedNotesFolderLocation:(id)sender;
- (IBAction)changedQuitBehavior:(id)sender;
- (IBAction)changedSpellChecking:(id)sender;
- (IBAction)changedTabBehavior:(id)sender;
- (IBAction)changedTableText:(id)sender;
- (IBAction)changedExternalEditorsMenu:(id)sender;
- (IBAction)changedTitleCompletion:(id)sender;
- (IBAction)changedSoftTabs:(id)sender;
- (IBAction)changedUseMarkdownImport:(id)sender;
- (IBAction)changedUseReadability:(id)sender;
- (IBAction)changedShowGrid:(id)sender;
- (IBAction)changedAltRows:(id)sender;
- (IBAction)changedAutoPairing:(id)sender;
- (IBAction)toggleStatusItem:(id)sender;
- (void)_selectDefaultExternalEditor;
- (NSMenu*)directorySelectionMenu;
- (void)changeDefaultDirectory;
- (BOOL)getNewNotesRefFromOpenPanel:(FSRef*)notesDirectoryRef returnedPath:(NSString**)path;
- (NotationPrefsViewController*)notationPrefsViewController;
- (NSView*)databaseView;
- (void)addToolbarItemWithName:(NSString*)name;
- (void)switchViews:(NSToolbarItem *)item;
NSRect ScaleRectWithFactor(NSRect rect, float factor);
- (IBAction)toggleHideDockIcon:(id)sender;
- (IBAction)toggleKeepsTextWidthInWindow:(id)sender;
- (IBAction)setMaxWidth:(id)sender;
@end