TextMate is a graphical text editor for OS X 10.7+
Revision | 3c79f275f1a504aa3fedf6b4aca600fc7ed808f6 (tree) |
---|---|
Time | 2012-08-24 00:15:12 |
Author | Allan Odgaard <git@abet...> |
Commiter | Allan Odgaard |
Use constants for settings keys
@@ -601,7 +601,7 @@ NSString* const kUserDefaultsFileBrowserPlacementKey = @"fileBrowserPlacement"; | ||
601 | 601 | { |
602 | 602 | D(DBF_DocumentController, bug("\n");); |
603 | 603 | scratchDocument = oak::uuid_t(); |
604 | - [self addDocuments:std::vector<document::document_ptr>(1, document::from_content("", settings_for_path(NULL_STR, file::path_attributes(NULL_STR), to_s(self.fileBrowserPath)).get("fileType", "text.plain"))) atIndex:documentTabs.size() andSelect:kSelectDocumentFirst closeOther:NO pruneTabBar:NO]; | |
604 | + [self addDocuments:std::vector<document::document_ptr>(1, document::from_content("", settings_for_path(NULL_STR, file::path_attributes(NULL_STR), to_s(self.fileBrowserPath)).get(kSettingsFileTypeKey, "text.plain"))) atIndex:documentTabs.size() andSelect:kSelectDocumentFirst closeOther:NO pruneTabBar:NO]; | |
605 | 605 | } |
606 | 606 | |
607 | 607 | // ========================= |
@@ -612,7 +612,7 @@ NSString* const kUserDefaultsFileBrowserPlacementKey = @"fileBrowserPlacement"; | ||
612 | 612 | { |
613 | 613 | D(DBF_DocumentController, bug("\n");); |
614 | 614 | scratchDocument = oak::uuid_t(); |
615 | - [self addDocuments:std::vector<document::document_ptr>(1, document::from_content("", settings_for_path(NULL_STR, file::path_attributes(NULL_STR), to_s(self.fileBrowserPath)).get("fileType", "text.plain"))) andSelect:kSelectDocumentFirst closeOther:NO pruneTabBar:YES]; | |
615 | + [self addDocuments:std::vector<document::document_ptr>(1, document::from_content("", settings_for_path(NULL_STR, file::path_attributes(NULL_STR), to_s(self.fileBrowserPath)).get(kSettingsFileTypeKey, "text.plain"))) andSelect:kSelectDocumentFirst closeOther:NO pruneTabBar:YES]; | |
616 | 616 | } |
617 | 617 | |
618 | 618 | - (BOOL)openFile:(NSString*)aPath |
@@ -651,8 +651,8 @@ NSString* const kUserDefaultsFileBrowserPlacementKey = @"fileBrowserPlacement"; | ||
651 | 651 | } |
652 | 652 | |
653 | 653 | settings_t const settings = [self selectedDocument]->settings(); |
654 | - path::glob_t const excludeGlob(settings.get("exclude", "")); | |
655 | - path::glob_t const binaryGlob(settings.get("binary", "")); | |
654 | + path::glob_t const excludeGlob(settings.get(kSettingsExcludeKey, "")); | |
655 | + path::glob_t const binaryGlob(settings.get(kSettingsBinaryKey, "")); | |
656 | 656 | |
657 | 657 | std::vector<std::string> v; |
658 | 658 | iterate(path, candidates) |
@@ -1220,7 +1220,7 @@ static std::string parent_or_home (std::string const& path) | ||
1220 | 1220 | - (NSString*)projectPath |
1221 | 1221 | { |
1222 | 1222 | settings_t const& settings = documentTabs.empty() || [self selectedDocument]->path() == NULL_STR ? settings_for_path(NULL_STR, "", to_s(self.fileBrowserPath)) : [self selectedDocument]->settings(); |
1223 | - return [NSString stringWithCxxString:settings.get("projectDirectory", NULL_STR)] ?: self.fileBrowserPath ?: self.documentPath; | |
1223 | + return [NSString stringWithCxxString:settings.get(kSettingsProjectDirectoryKey, NULL_STR)] ?: self.fileBrowserPath ?: self.documentPath; | |
1224 | 1224 | } |
1225 | 1225 | |
1226 | 1226 | - (NSString*)fileBrowserPath |
@@ -1335,7 +1335,7 @@ static std::string parent_or_home (std::string const& path) | ||
1335 | 1335 | static std::string file_chooser_glob (std::string const& path) |
1336 | 1336 | { |
1337 | 1337 | settings_t const& settings = settings_for_path(NULL_STR, "", path); |
1338 | - std::string const propertyKeys[] = { "includeFilesInFileChooser", "includeInFileChooser", "includeFiles", "include" }; | |
1338 | + std::string const propertyKeys[] = { kSettingsIncludeFilesInFileChooserKey, kSettingsIncludeInFileChooserKey, kSettingsIncludeFilesKey, kSettingsIncludeKey }; | |
1339 | 1339 | iterate(key, propertyKeys) |
1340 | 1340 | { |
1341 | 1341 | if(settings.has(*key)) |
@@ -42,7 +42,7 @@ namespace | ||
42 | 42 | |
43 | 43 | // This is also set after open succeeds |
44 | 44 | settings_t const& settings = [self selectedDocument]->settings(); |
45 | - self.windowTitle = [NSString stringWithCxxString:settings.get("windowTitle", [self selectedDocument]->display_name())]; | |
45 | + self.windowTitle = [NSString stringWithCxxString:settings.get(kSettingsWindowTitleKey, [self selectedDocument]->display_name())]; | |
46 | 46 | self.representedFile = [NSString stringWithCxxString:[self selectedDocument]->path()]; |
47 | 47 | self.isDocumentEdited = [self selectedDocument]->is_modified(); |
48 | 48 |
@@ -77,7 +77,7 @@ namespace | ||
77 | 77 | if(*aDocument == *[self selectedDocument]) |
78 | 78 | { |
79 | 79 | settings_t const& settings = [self selectedDocument]->settings(); |
80 | - self.windowTitle = [NSString stringWithCxxString:settings.get("windowTitle", [self selectedDocument]->display_name())]; | |
80 | + self.windowTitle = [NSString stringWithCxxString:settings.get(kSettingsWindowTitleKey, [self selectedDocument]->display_name())]; | |
81 | 81 | self.representedFile = [NSString stringWithCxxString:[self selectedDocument]->path()]; |
82 | 82 | self.isDocumentEdited = [self selectedDocument]->is_modified(); |
83 | 83 | } |
@@ -284,7 +284,7 @@ namespace | ||
284 | 284 | } |
285 | 285 | |
286 | 286 | settings_t const& settings = aDocument->settings(); |
287 | - self.windowTitle = [NSString stringWithCxxString:settings.get("windowTitle", aDocument->display_name())]; | |
287 | + self.windowTitle = [NSString stringWithCxxString:settings.get(kSettingsWindowTitleKey, aDocument->display_name())]; | |
288 | 288 | self.representedFile = [NSString stringWithCxxString:aDocument->path()]; |
289 | 289 | self.isDocumentEdited = aDocument->is_modified(); |
290 | 290 |
@@ -245,7 +245,7 @@ NSString* const FolderOptionsDefaultsKey = @"Folder Search Options"; | ||
245 | 245 | std::string excludeGlob = ""; |
246 | 246 | if(![controller.searchIn isEqualToString:FFSearchInOpenFiles]) |
247 | 247 | { |
248 | - static std::string const excludeKeys[] = { "excludeInFolderSearch", "exclude" }; | |
248 | + static std::string const excludeKeys[] = { kSettingsExcludeInFolderSearchKey, kSettingsExcludeKey }; | |
249 | 249 | for(size_t i = 0; i < sizeofA(excludeKeys) && excludeGlob == ""; ++i) |
250 | 250 | excludeGlob = settings_for_path(NULL_STR, "", to_s(controller.searchFolder)).get(excludeKeys[i], ""); |
251 | 251 | } |
@@ -91,10 +91,10 @@ namespace | ||
91 | 91 | { |
92 | 92 | request_t (std::string const& path = NULL_STR, NSUInteger options = 0) : _path(path), _options(options), _include_file_glob(""), _include_folder_glob(""), _exclude_file_glob(""), _exclude_folder_glob("") |
93 | 93 | { |
94 | - static std::string const includeFileKeys[] = { "includeFilesInBrowser", "includeInBrowser", "includeFiles", "include" }; | |
95 | - static std::string const includeFolderKeys[] = { "includeDirectoriesInBrowser", "includeInBrowser", "includeDirectories", "include" }; | |
96 | - static std::string const excludeFileKeys[] = { "excludeFilesInBrowser", "excludeInBrowser", "excludeFiles", "exclude" }; | |
97 | - static std::string const excludeFolderKeys[] = { "excludeDirectoriesInBrowser", "excludeInBrowser", "excludeDirectories", "exclude" }; | |
94 | + static std::string const includeFileKeys[] = { kSettingsIncludeFilesInBrowserKey, kSettingsIncludeInBrowserKey, kSettingsIncludeFilesKey, kSettingsIncludeKey }; | |
95 | + static std::string const includeFolderKeys[] = { kSettingsIncludeDirectoriesInBrowserKey, kSettingsIncludeInBrowserKey, kSettingsIncludeDirectoriesKey, kSettingsIncludeKey }; | |
96 | + static std::string const excludeFileKeys[] = { kSettingsExcludeFilesInBrowserKey, kSettingsExcludeInBrowserKey, kSettingsExcludeFilesKey, kSettingsExcludeKey }; | |
97 | + static std::string const excludeFolderKeys[] = { kSettingsExcludeDirectoriesInBrowserKey, kSettingsExcludeInBrowserKey, kSettingsExcludeDirectoriesKey, kSettingsExcludeKey }; | |
98 | 98 | |
99 | 99 | settings_t const& settings = settings_for_path(NULL_STR, "", path); |
100 | 100 |
@@ -177,7 +177,7 @@ void file_chooser_t::set_path (std::string const& path) | ||
177 | 177 | _ranked_items.clear(); |
178 | 178 | |
179 | 179 | std::string excludeGlob = ""; |
180 | - static std::string const excludeKeys[] = { "excludeInFileChooser", "exclude" }; | |
180 | + static std::string const excludeKeys[] = { kSettingsExcludeInFileChooserKey, kSettingsExcludeKey }; | |
181 | 181 | for(size_t i = 0; i < sizeofA(excludeKeys) && excludeGlob == ""; ++i) |
182 | 182 | excludeGlob = settings_for_path(NULL_STR, "", path).get(excludeKeys[i], ""); |
183 | 183 |
@@ -127,7 +127,7 @@ private: | ||
127 | 127 | |
128 | 128 | std::string themeUUID = to_s([[NSUserDefaults standardUserDefaults] stringForKey:kUserDefaultsThemeUUIDKey]); |
129 | 129 | if(themeUUID == NULL_STR) |
130 | - themeUUID = settings.get("theme", "71D40D9D-AE48-11D9-920A-000D93589AF6"); | |
130 | + themeUUID = settings.get(kSettingsThemeKey, "71D40D9D-AE48-11D9-920A-000D93589AF6"); | |
131 | 131 | |
132 | 132 | [self setThemeWithUUID:[NSString stringWithCxxString:themeUUID]]; |
133 | 133 |
@@ -386,9 +386,9 @@ static std::string shell_quote (std::vector<std::string> paths) | ||
386 | 386 | settings_t const& settings = document->settings(); |
387 | 387 | |
388 | 388 | editor = ng::editor_for_document(document); |
389 | - wrapColumn = settings.get("wrapColumn", wrapColumn); | |
390 | - layout.reset(new ng::layout_t(document->buffer(), theme, fontName, fontSize, settings.get("softWrap", false), wrapColumn, document->folded())); | |
391 | - if(settings.get("showWrapColumn", false)) | |
389 | + wrapColumn = settings.get(kSettingsWrapColumnKey, wrapColumn); | |
390 | + layout.reset(new ng::layout_t(document->buffer(), theme, fontName, fontSize, settings.get(kSettingsSoftWrapKey, false), wrapColumn, document->folded())); | |
391 | + if(settings.get(kSettingsShowWrapColumnKey, false)) | |
392 | 392 | layout->set_draw_wrap_column(true); |
393 | 393 | |
394 | 394 | BOOL hasFocus = (self.keyState & (OakViewViewIsFirstResponderMask|OakViewWindowIsKeyMask|OakViewApplicationIsActiveMask)) == (OakViewViewIsFirstResponderMask|OakViewWindowIsKeyMask|OakViewApplicationIsActiveMask); |
@@ -439,9 +439,9 @@ static std::string shell_quote (std::vector<std::string> paths) | ||
439 | 439 | CGFloat defaultFontSize = [[NSUserDefaults standardUserDefaults] floatForKey:kUserDefaultsFontSizeKey] ?: [defaultFont pointSize]; |
440 | 440 | |
441 | 441 | theme = parse_theme(bundles::item_ptr()); // set a fallback theme, OakDocumentView will call setThemeWithUUID: later |
442 | - fontName = settings.get("fontName", to_s(defaultFontName)); | |
443 | - fontSize = settings.get("fontSize", (int32_t)defaultFontSize); | |
444 | - showInvisibles = settings.get("showInvisibles", false); | |
442 | + fontName = settings.get(kSettingsFontNameKey, to_s(defaultFontName)); | |
443 | + fontSize = settings.get(kSettingsFontSizeKey, (int32_t)defaultFontSize); | |
444 | + showInvisibles = settings.get(kSettingsShowInvisiblesKey, false); | |
445 | 445 | antiAlias = ![[NSUserDefaults standardUserDefaults] boolForKey:kUserDefaultsDisableAntiAliasKey]; |
446 | 446 | |
447 | 447 | [self registerForDraggedTypes:[[self class] dropTypes]]; |
@@ -485,10 +485,10 @@ namespace document | ||
485 | 485 | return false; |
486 | 486 | |
487 | 487 | settings_t const& settings = settings_for_path(path); |
488 | - if(settings.has("binary")) | |
488 | + if(settings.has(kSettingsBinaryKey)) | |
489 | 489 | { |
490 | - D(DBF_Document_Binary, bug(".tm_properties reports it as binary: %s\n", BSTR(path::glob_t(settings.get("binary", "")).does_match(path)));); | |
491 | - return path::glob_t(settings.get("binary", "")).does_match(path); | |
490 | + D(DBF_Document_Binary, bug(".tm_properties reports it as binary: %s\n", BSTR(path::glob_t(settings.get(kSettingsBinaryKey, "")).does_match(path)));); | |
491 | + return path::glob_t(settings.get(kSettingsBinaryKey, "")).does_match(path); | |
492 | 492 | } |
493 | 493 | |
494 | 494 | return false; |
@@ -546,9 +546,9 @@ namespace document | ||
546 | 546 | } |
547 | 547 | |
548 | 548 | settings_t const& settings = this->settings(); |
549 | - _buffer->indent() = text::indent_t(settings.get("tabSize", 4), SIZE_T_MAX, settings.get("softTabs", false)); | |
550 | - _buffer->set_spelling_language(settings.get("spellingLanguage", "en")); | |
551 | - _buffer->set_live_spelling(settings.get("spellChecking", false)); | |
549 | + _buffer->indent() = text::indent_t(settings.get(kSettingsTabSizeKey, 4), SIZE_T_MAX, settings.get(kSettingsSoftTabsKey, false)); | |
550 | + _buffer->set_spelling_language(settings.get(kSettingsSpellingLanguageKey, "en")); | |
551 | + _buffer->set_live_spelling(settings.get(kSettingsSpellCheckingKey, false)); | |
552 | 552 | |
553 | 553 | const_cast<document_t*>(this)->broadcast(callback_t::did_change_indent_settings); |
554 | 554 |
@@ -436,7 +436,7 @@ namespace | ||
436 | 436 | break; |
437 | 437 | |
438 | 438 | case kEstimateEncodingStatePathSettings: |
439 | - _encoding = settings_for_path(_path, "attr.file.unknown-encoding " + file::path_attributes(_path)).get("encoding", kCharsetUnknown); | |
439 | + _encoding = settings_for_path(_path, "attr.file.unknown-encoding " + file::path_attributes(_path)).get(kSettingsEncodingKey, kCharsetUnknown); | |
440 | 440 | break; |
441 | 441 | |
442 | 442 | case kEstimateEncodingStateAskUser: |
@@ -144,7 +144,7 @@ namespace file | ||
144 | 144 | } |
145 | 145 | } |
146 | 146 | |
147 | - res.push_back(settings_for_path(path, text::join(res, " ")).get("scopeAttributes", "")); | |
147 | + res.push_back(settings_for_path(path, text::join(res, " ")).get(kSettingsScopeAttributesKey, "")); | |
148 | 148 | res.erase(std::remove(res.begin(), res.end(), ""), res.end()); |
149 | 149 | return text::join(res, " "); |
150 | 150 | } |
@@ -332,11 +332,11 @@ namespace | ||
332 | 332 | _select_encoding_state = kSelectEncodingStateAskUser; |
333 | 333 | |
334 | 334 | settings_t const& settings = settings_for_path(_path); |
335 | - std::string encoding = settings.get("encoding", kCharsetNoEncoding); | |
335 | + std::string encoding = settings.get(kSettingsEncodingKey, kCharsetNoEncoding); | |
336 | 336 | if(encoding != kCharsetNoEncoding) |
337 | 337 | { |
338 | 338 | _encoding = encoding; |
339 | - _bom = settings.get("useBOM", false); | |
339 | + _bom = settings.get(kSettingsUseBOMKey, false); | |
340 | 340 | } |
341 | 341 | else if(_encoding == kCharsetNoEncoding) |
342 | 342 | { |
@@ -469,7 +469,7 @@ namespace file | ||
469 | 469 | // ============== |
470 | 470 | |
471 | 471 | // bool hasEncoding = path::get_attr(path, "com.apple.TextEncoding") != NULL_STR; |
472 | - // bool storeEncoding = dstSettings.get("storeEncodingPerFile", hasEncoding); | |
472 | + // bool storeEncoding = dstSettings.get(kSettingsStoreEncodingPerFileKey, hasEncoding); | |
473 | 473 | // if(storeEncoding || hasEncoding) |
474 | 474 | // path::set_attr(path, "com.apple.TextEncoding", storeEncoding ? encoding : NULL_STR); |
475 | 475 |
@@ -136,7 +136,7 @@ static std::string file_type_from_bytes (io::bytes_ptr const& bytes) | ||
136 | 136 | static std::string find_file_type (std::string const& path, io::bytes_ptr const& bytes, std::string const& virtualPath = NULL_STR) |
137 | 137 | { |
138 | 138 | // FIXME we need to use “current” folder when getting (fileType) settings |
139 | - std::string res = settings_for_path(path, file::path_attributes(path)).get("fileType", NULL_STR); | |
139 | + std::string res = settings_for_path(path, file::path_attributes(path)).get(kSettingsFileTypeKey, NULL_STR); | |
140 | 140 | |
141 | 141 | if(res == NULL_STR && (virtualPath != NULL_STR || path != NULL_STR)) |
142 | 142 | res = user_bindings().grammar_for(virtualPath != NULL_STR ? virtualPath : path); |
@@ -148,7 +148,7 @@ static std::string find_file_type (std::string const& path, io::bytes_ptr const& | ||
148 | 148 | res = file_type_from_path(virtualPath != NULL_STR ? virtualPath : path); |
149 | 149 | |
150 | 150 | if(res == NULL_STR) |
151 | - res = settings_for_path(path, "attr.file.unknown-type " + file::path_attributes(path)).get("fileType", NULL_STR); | |
151 | + res = settings_for_path(path, "attr.file.unknown-type " + file::path_attributes(path)).get(kSettingsFileTypeKey, NULL_STR); | |
152 | 152 | |
153 | 153 | return res; |
154 | 154 | } |
@@ -0,0 +1,44 @@ | ||
1 | +#include "keys.h" | |
2 | + | |
3 | +std::string const kSettingsFileTypeKey = "fileType"; | |
4 | + | |
5 | +std::string const kSettingsTabSizeKey = "tabSize"; | |
6 | +std::string const kSettingsSoftTabsKey = "softTabs"; | |
7 | + | |
8 | +std::string const kSettingsSpellCheckingKey = "spellChecking"; | |
9 | +std::string const kSettingsSpellingLanguageKey = "spellingLanguage"; | |
10 | + | |
11 | +std::string const kSettingsThemeKey = "theme"; | |
12 | +std::string const kSettingsFontNameKey = "fontName"; | |
13 | +std::string const kSettingsFontSizeKey = "fontSize"; | |
14 | +std::string const kSettingsSoftWrapKey = "softWrap"; | |
15 | +std::string const kSettingsWrapColumnKey = "wrapColumn"; | |
16 | +std::string const kSettingsShowWrapColumnKey = "showWrapColumn"; | |
17 | +std::string const kSettingsShowInvisiblesKey = "showInvisibles"; | |
18 | + | |
19 | +std::string const kSettingsProjectDirectoryKey = "projectDirectory"; | |
20 | +std::string const kSettingsWindowTitleKey = "windowTitle"; | |
21 | +std::string const kSettingsScopeAttributesKey = "scopeAttributes"; | |
22 | + | |
23 | +std::string const kSettingsBinaryKey = "binary"; | |
24 | +std::string const kSettingsEncodingKey = "encoding"; | |
25 | +std::string const kSettingsUseBOMKey = "useBOM"; | |
26 | +std::string const kSettingsStoreEncodingPerFileKey = "storeEncodingPerFile"; | |
27 | + | |
28 | +std::string const kSettingsIncludeKey = "include"; | |
29 | +std::string const kSettingsIncludeDirectoriesKey = "includeDirectories"; | |
30 | +std::string const kSettingsIncludeDirectoriesInBrowserKey = "includeDirectoriesInBrowser"; | |
31 | +std::string const kSettingsIncludeFilesKey = "includeFiles"; | |
32 | +std::string const kSettingsIncludeFilesInBrowserKey = "includeFilesInBrowser"; | |
33 | +std::string const kSettingsIncludeFilesInFileChooserKey = "includeFilesInFileChooser"; | |
34 | +std::string const kSettingsIncludeInBrowserKey = "includeInBrowser"; | |
35 | +std::string const kSettingsIncludeInFileChooserKey = "includeInFileChooser"; | |
36 | + | |
37 | +std::string const kSettingsExcludeKey = "exclude"; | |
38 | +std::string const kSettingsExcludeDirectoriesKey = "excludeDirectories"; | |
39 | +std::string const kSettingsExcludeDirectoriesInBrowserKey = "excludeDirectoriesInBrowser"; | |
40 | +std::string const kSettingsExcludeFilesKey = "excludeFiles"; | |
41 | +std::string const kSettingsExcludeFilesInBrowserKey = "excludeFilesInBrowser"; | |
42 | +std::string const kSettingsExcludeInBrowserKey = "excludeInBrowser"; | |
43 | +std::string const kSettingsExcludeInFileChooserKey = "excludeInFileChooser"; | |
44 | +std::string const kSettingsExcludeInFolderSearchKey = "excludeInFolderSearch"; |
@@ -0,0 +1,49 @@ | ||
1 | +#ifndef SETTINGS_KEYS_H_7IGXFQJ6 | |
2 | +#define SETTINGS_KEYS_H_7IGXFQJ6 | |
3 | + | |
4 | +#include <oak/misc.h> | |
5 | + | |
6 | +PUBLIC extern std::string const kSettingsFileTypeKey; | |
7 | + | |
8 | +PUBLIC extern std::string const kSettingsTabSizeKey; | |
9 | +PUBLIC extern std::string const kSettingsSoftTabsKey; | |
10 | + | |
11 | +PUBLIC extern std::string const kSettingsSpellCheckingKey; | |
12 | +PUBLIC extern std::string const kSettingsSpellingLanguageKey; | |
13 | + | |
14 | +PUBLIC extern std::string const kSettingsThemeKey; | |
15 | +PUBLIC extern std::string const kSettingsFontNameKey; | |
16 | +PUBLIC extern std::string const kSettingsFontSizeKey; | |
17 | +PUBLIC extern std::string const kSettingsSoftWrapKey; | |
18 | +PUBLIC extern std::string const kSettingsWrapColumnKey; | |
19 | +PUBLIC extern std::string const kSettingsShowWrapColumnKey; | |
20 | +PUBLIC extern std::string const kSettingsShowInvisiblesKey; | |
21 | + | |
22 | +PUBLIC extern std::string const kSettingsProjectDirectoryKey; | |
23 | +PUBLIC extern std::string const kSettingsWindowTitleKey; | |
24 | +PUBLIC extern std::string const kSettingsScopeAttributesKey; | |
25 | + | |
26 | +PUBLIC extern std::string const kSettingsBinaryKey; | |
27 | +PUBLIC extern std::string const kSettingsEncodingKey; | |
28 | +PUBLIC extern std::string const kSettingsUseBOMKey; | |
29 | +PUBLIC extern std::string const kSettingsStoreEncodingPerFileKey; | |
30 | + | |
31 | +PUBLIC extern std::string const kSettingsIncludeKey; | |
32 | +PUBLIC extern std::string const kSettingsIncludeDirectoriesKey; | |
33 | +PUBLIC extern std::string const kSettingsIncludeDirectoriesInBrowserKey; | |
34 | +PUBLIC extern std::string const kSettingsIncludeFilesKey; | |
35 | +PUBLIC extern std::string const kSettingsIncludeFilesInBrowserKey; | |
36 | +PUBLIC extern std::string const kSettingsIncludeFilesInFileChooserKey; | |
37 | +PUBLIC extern std::string const kSettingsIncludeInBrowserKey; | |
38 | +PUBLIC extern std::string const kSettingsIncludeInFileChooserKey; | |
39 | + | |
40 | +PUBLIC extern std::string const kSettingsExcludeKey; | |
41 | +PUBLIC extern std::string const kSettingsExcludeDirectoriesKey; | |
42 | +PUBLIC extern std::string const kSettingsExcludeDirectoriesInBrowserKey; | |
43 | +PUBLIC extern std::string const kSettingsExcludeFilesKey; | |
44 | +PUBLIC extern std::string const kSettingsExcludeFilesInBrowserKey; | |
45 | +PUBLIC extern std::string const kSettingsExcludeInBrowserKey; | |
46 | +PUBLIC extern std::string const kSettingsExcludeInFileChooserKey; | |
47 | +PUBLIC extern std::string const kSettingsExcludeInFolderSearchKey; | |
48 | + | |
49 | +#endif /* end of include guard: SETTINGS_KEYS_H_7IGXFQJ6 */ |
@@ -1,6 +1,7 @@ | ||
1 | 1 | #ifndef SETTINGS_H_F99MMG5F |
2 | 2 | #define SETTINGS_H_F99MMG5F |
3 | 3 | |
4 | +#include "keys.h" | |
4 | 5 | #include <io/io.h> |
5 | 6 | #include <oak/oak.h> |
6 | 7 | #include <text/format.h> |
@@ -1,4 +1,4 @@ | ||
1 | 1 | TEST_SOURCES = tests/*.cc |
2 | 2 | SOURCES = src/*.{cc,rl} |
3 | -EXPORT = src/{settings,volume,track_paths}.h | |
3 | +EXPORT = src/{settings,volume,track_paths,keys}.h | |
4 | 4 | LINK += io plist OakSystem regexp scope |