-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCSVPreferencesController.h
131 lines (110 loc) · 3.89 KB
/
CSVPreferencesController.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
//
// CSVPreferencesController.h
// CSV Touch
//
// Created by Simon Wigzell on 14/07/2008.
// Copyright 2008 Ozymandias. All rights reserved.
//
#import "OzymandiasAdditions.h"
#import <UIKit/UIKit.h>
typedef enum FixedWidthAlternative{
NO_FIXED_WIDTHS = 0,
PREDEFINED_FIXED_WIDTHS,
AUTOMATIC_FIXED_WIDTHS
}FixedWidthAlternative;
@interface CSVPreferencesController : NSObject
+ (void) applicationDidFinishLaunching;
// Setting with nil -> smart delimiter
+ (void) setDelimiter:(NSString *)delimiter;
+ (NSString *) delimiter;
+ (BOOL) smartDelimiter;
+ (CGFloat) itemsListFontSize;
+ (void) increaseItemsListFontSize;
+ (void) decreaseItemsListFontSize;
+ (void) changeItemsListFontSize:(int)change;
+ (BOOL) canIncreaseItemsListFontSize;
+ (BOOL) canDecreaseItemsListFontSize;
+ (CGFloat) detailsFontSize;
+ (void) increaseDetailsFontSize;
+ (void) decreaseDetailsFontSize;
+ (void) changeDetailsFontSize:(int)change;
+ (BOOL) canIncreaseDetailsFontSize;
+ (BOOL) canDecreaseDetailsFontSize;
+ (void) setStringEncoding:(NSStringEncoding)encoding;
+ (NSStringEncoding) encoding;
+ (void) setUseGroupingForItems:(BOOL)yn;
+ (BOOL) useGroupingForItems;
+ (void) setGroupNumbers:(BOOL)yn;
+ (BOOL) groupNumbers;
+ (void) setUseMonospacedFont:(BOOL)yn;
+ (BOOL) useMonospacedFont;
+ (void) setFixedWidthsAlternative:(FixedWidthAlternative)alt;
+ (FixedWidthAlternative) fixedWidthsAlternative;
+ (void) setKeepQuotes:(BOOL)yn;
+ (BOOL) keepQuotes;
+ (void) setUseCorrectParsing:(BOOL)yn;
+ (BOOL) useCorrectParsing;
+ (void) setShowInlineImages:(BOOL)yn;
+ (BOOL) showInlineImages;
+ (void) setSmartSearchClearing:(BOOL)yn;
+ (BOOL) smartSeachClearing;
+ (BOOL) useAutomatedDownload;
+ (void) setUseAutomatedDownload:(BOOL)yn;
+ (void) setConfiguredDownloadHour:(NSInteger)hour minute:(NSInteger)minute;
+ (NSInteger) configuredDownloadHour; // 0-23
+ (NSInteger) configuredDownloadMinute; // 0-59
+ (NSDate *) nextDownload; // Returns nil if none set
+ (NSDate *) lastDownload;
+ (void) setLastDownload:(NSDate *)lastDownload;
+ (void) setBlankWordSeparator:(BOOL)yn;
+ (BOOL) blankWordSeparator;
+ (NSURL *) lastUsedListURL;
+ (void) setLastUsedListURL:(NSURL *)URL;
+ (void) setShouldSort:(BOOL)yn;
+ (BOOL) shouldSort;
+ (void) setCaseSensitiveSort:(BOOL)yn;
+ (BOOL) caseSensitiveSort;
+ (void) setNumericSort:(BOOL)yn;
+ (BOOL) numericSort;
+ (void) setLiteralSort:(BOOL)yn;
+ (BOOL) literalSort;
+ (void) setCorrectSort:(BOOL)yn;
+ (BOOL) correctSort;
+ (void) setMultilineItemCells:(BOOL)yn;
+ (BOOL) multilineItemCells;
+ (void) setSynchronizeDownloadedFiles:(BOOL)yn;
+ (BOOL) synchronizeDownloadedFiles;
+ (BOOL) canSynchronizeFiles; // Convenience, checks that we do have a last used URL to use
+ (NSInteger) selectedDetailsView;
+ (void) setSelectedDetailsView:(NSInteger) view;
+ (BOOL) showDeletedColumns;
+ (void) setShowDeletedColumns:(BOOL)yn;
+ (BOOL) hideEmptyColumns;
+ (void) setHideEmptyColumns:(BOOL)yn;
// This is temporary, while downloading a file with addresses to CSV files
+ (BOOL) hideAddress;
+ (void) setHideAddress:(BOOL)hide;
+ (void) applySettings:(NSArray *)settings;
+ (BOOL) restrictedDataVersionRunning;
// This is not stored so restart of app -> back to default
+ (void) toggleReverseItemSorting;
+ (BOOL) reverseItemSorting;
+ (BOOL) hasShownHowTo;
+ (void) setHasShownHowTo;
+ (BOOL) hasShown40Notes;
+ (void) setHasShown40Notes;
+ (BOOL) hasShown42ResizingNotes;
+ (void) setHasShown42ResizingNotes;
+ (void) updateSortingMask; // Needs to be called as part of initialization
+ (NSUInteger) sortingMask;
extern NSUInteger sortingMask; // This is available for performance-critical operations
// Number of times app has started
+ (NSInteger) numberOfStarts;
// Internal use
+ (NSString *) lastUsedURL;
+ (void) setLastUsedURL:(NSString *)URL;
// Check if prefs have changed while in background
+ (BOOL) defaultsHaveChanged;
+ (void) resetDefaultsHaveChanges;
+ (UIColor *) systemBackgroundColor;
@end