├── Frameworks ├── regexp │ ├── onig-latest │ ├── onig-5.9.2 │ │ ├── .deps │ │ │ ├── st.Plo │ │ │ ├── ascii.Plo │ │ │ ├── big5.Plo │ │ │ ├── cp1251.Plo │ │ │ ├── euc_jp.Plo │ │ │ ├── euc_kr.Plo │ │ │ ├── euc_tw.Plo │ │ │ ├── gb18030.Plo │ │ │ ├── koi8_r.Plo │ │ │ ├── regcomp.Plo │ │ │ ├── regenc.Plo │ │ │ ├── regexec.Plo │ │ │ ├── regext.Plo │ │ │ ├── reggnu.Plo │ │ │ ├── regtrav.Plo │ │ │ ├── sjis.Plo │ │ │ ├── testc.Po │ │ │ ├── testu.Po │ │ │ ├── unicode.Plo │ │ │ ├── utf8.Plo │ │ │ ├── iso8859_1.Plo │ │ │ ├── iso8859_10.Plo │ │ │ ├── iso8859_11.Plo │ │ │ ├── iso8859_13.Plo │ │ │ ├── iso8859_14.Plo │ │ │ ├── iso8859_15.Plo │ │ │ ├── iso8859_16.Plo │ │ │ ├── iso8859_2.Plo │ │ │ ├── iso8859_3.Plo │ │ │ ├── iso8859_4.Plo │ │ │ ├── iso8859_5.Plo │ │ │ ├── iso8859_6.Plo │ │ │ ├── iso8859_7.Plo │ │ │ ├── iso8859_8.Plo │ │ │ ├── iso8859_9.Plo │ │ │ ├── regerror.Plo │ │ │ ├── regparse.Plo │ │ │ ├── regposerr.Plo │ │ │ ├── regposix.Plo │ │ │ ├── regsyntax.Plo │ │ │ ├── regversion.Plo │ │ │ ├── testp-testc.Po │ │ │ ├── utf16_be.Plo │ │ │ ├── utf16_le.Plo │ │ │ ├── utf32_be.Plo │ │ │ └── utf32_le.Plo │ │ ├── sample │ │ │ └── .deps │ │ │ │ ├── crnl.Po │ │ │ │ ├── encode.Po │ │ │ │ ├── names.Po │ │ │ │ ├── posix.Po │ │ │ │ ├── simple.Po │ │ │ │ ├── sql.Po │ │ │ │ ├── syntax.Po │ │ │ │ └── listcap.Po │ │ ├── stamp-h1 │ │ ├── AUTHORS │ │ ├── testc.c │ │ ├── README.ja │ │ ├── doc │ │ │ ├── API.ja │ │ │ ├── FAQ.ja │ │ │ ├── RE.ja │ │ │ └── FAQ │ │ └── win32 │ │ │ └── testc.c │ ├── .gitignore │ ├── src │ │ ├── private.h │ │ ├── parser_base.h │ │ ├── pthread.c │ │ ├── glob.h │ │ └── parser_fwd.h │ └── target ├── target ├── BundleEditor │ ├── gfx │ │ └── Bundle Item Icons │ │ │ ├── Proxy.png │ │ │ ├── Macro.png │ │ │ ├── Theme.png │ │ │ ├── Bundle.png │ │ │ ├── Command.png │ │ │ ├── Grammar.png │ │ │ ├── Snippet.png │ │ │ ├── Settings.png │ │ │ └── Drag Command.png │ ├── templates │ │ ├── Settings.plist │ │ ├── Proxy.plist │ │ ├── Snippet.plist │ │ ├── Command.plist │ │ ├── Drag Command.plist │ │ ├── Bundle.plist │ │ └── Grammar.plist │ ├── src │ │ ├── OakRot13Transformer.h │ │ ├── PropertiesViewController.h │ │ ├── OakRot13Transformer.mm │ │ └── PropertiesViewController.mm │ ├── target │ └── resources │ │ └── Info.plist ├── settings │ ├── src │ │ ├── track_paths.cc │ │ └── volume.h │ └── target ├── OakAppKit │ ├── src │ │ ├── OakBorderlessPanel.h │ │ ├── OakPreview.h │ │ ├── NSAlert Additions.h │ │ ├── OakPopOutAnimation.h │ │ ├── NSMenu Additions.h │ │ ├── NSWindow Additions.h │ │ ├── OakOpenWithMenu.h │ │ ├── NSScreen Additions.h │ │ ├── NSView Additions.h │ │ ├── NSColor Additions.h │ │ ├── OakEncodingPopUpButton.h │ │ ├── NSEvent Additions.h │ │ ├── NSSavePanel Additions.h │ │ ├── OakSound.h │ │ ├── NSMenuItem Additions.h │ │ ├── OakZoomingIcon.h │ │ ├── OakWindowFrameHelper.h │ │ ├── NSAlert Additions.mm │ │ ├── OakSubmenuController.h │ │ ├── OakImageAndTextCell.h │ │ ├── OakSavePanel.h │ │ ├── NSImage Additions.h │ │ ├── OakView.h │ │ ├── OakBorderlessPanel.mm │ │ ├── OakImage.h │ │ ├── OakFinderLabelChooser.h │ │ ├── OakKeyEquivalentView.h │ │ ├── OakPasteboardSelector.h │ │ ├── OakFileIconImage.h │ │ ├── NSView Additions.mm │ │ ├── OakToolTip.h │ │ ├── NSWindow Additions.mm │ │ ├── OakAppKit.h │ │ └── OakLayoutView.h │ ├── icons │ │ ├── c.icns │ │ ├── log.icns │ │ ├── red.icns │ │ ├── web.icns │ │ ├── Blank.icns │ │ ├── blue.icns │ │ ├── brown.icns │ │ ├── green.icns │ │ ├── grey.icns │ │ ├── grid.icns │ │ ├── latex.icns │ │ ├── list.icns │ │ ├── ruby.icns │ │ ├── text.icns │ │ ├── brackets.icns │ │ ├── charcoal.icns │ │ ├── header.icns │ │ ├── orange.icns │ │ ├── purple.icns │ │ ├── python.icns │ │ ├── template.icns │ │ ├── yellow.icns │ │ ├── javascript.icns │ │ ├── latex_alt.icns │ │ ├── config_file.icns │ │ ├── structured_text.icns │ │ ├── tree_structure.icns │ │ ├── angle_brackets_brown.icns │ │ └── angle_brackets_green.icns │ ├── gfx │ │ ├── TabClose.png │ │ ├── SpellingDot.tiff │ │ ├── TabClose_Pressed.png │ │ ├── SCM Badges │ │ │ ├── Added.icns │ │ │ ├── Deleted.icns │ │ │ ├── Modified.icns │ │ │ ├── Conflicted.icns │ │ │ └── Unversioned.icns │ │ ├── TabClose_Modified.png │ │ ├── TabClose_Rollover.png │ │ ├── Statusbar Background.png │ │ ├── Statusbar Separator.png │ │ ├── Statusbar Popup Arrows.png │ │ ├── Statusbar Dropdown Arrow.tiff │ │ ├── TabClose_ModifiedPressed.png │ │ ├── TabClose_ModifiedRollover.png │ │ └── Statusbar Background Pressed.png │ ├── target │ ├── tests │ │ └── t_pop_out.mm │ └── resources │ │ └── Info.plist ├── OakFoundation │ ├── src │ │ ├── NSArray Additions.h │ │ ├── NSDate Additions.h │ │ ├── OakFoundation.h │ │ ├── NSArray Additions.mm │ │ ├── OakStringListTransformer.h │ │ ├── OakFoundation.mm │ │ ├── NSString Additions.h │ │ └── OakTimer.h │ └── target ├── OakSystem │ ├── target │ └── src │ │ ├── reader.h │ │ └── application.h ├── undo │ └── target ├── Find │ ├── resources │ │ ├── Gear.png │ │ ├── Down Arrow.png │ │ ├── Right Arrow.png │ │ ├── Down Arrow Pressed.png │ │ ├── Right Arrow Pressed.png │ │ ├── English.lproj │ │ │ └── Find.strings │ │ └── Info.plist │ ├── target │ └── src │ │ ├── FFFolderMenu.h │ │ ├── FFFindWindow.h │ │ ├── FFFilePathCell.h │ │ └── FFFindResultsContainerView.mm ├── theme │ └── target ├── Preferences │ ├── icons │ │ ├── Light-off.png │ │ ├── Light-on.png │ │ ├── Projects.icns │ │ ├── Terminal.tiff │ │ ├── Variables.tiff │ │ └── Software Update.tiff │ ├── src │ │ ├── ProjectsPreferences.h │ │ ├── Preferences.h │ │ ├── FilesPreferences.h │ │ ├── GeneralPreferences.h │ │ ├── SoftwareUpdatePreferences.h │ │ ├── GeneralPreferences.mm │ │ ├── VariablesPreferences.h │ │ ├── TerminalPreferences.h │ │ ├── PreferencesPane.h │ │ ├── ProjectsPreferences.mm │ │ └── BundlesPreferences.h │ └── target ├── scope │ ├── target │ └── src │ │ └── parse.h ├── OakFileBrowser │ ├── gfx │ │ ├── CloseFile.png │ │ ├── CloseFileOver.png │ │ ├── CloseFilePressed.png │ │ └── Header Icons │ │ │ ├── Gear.png │ │ │ ├── Home.png │ │ │ ├── Mount.png │ │ │ ├── Computer.png │ │ │ ├── Background.png │ │ │ ├── Favorites.png │ │ │ ├── Left Arrow.png │ │ │ ├── Separator.png │ │ │ ├── Home Pressed.png │ │ │ ├── PopUp Arrow.png │ │ │ ├── Right Arrow.png │ │ │ ├── SmartFolder.tiff │ │ │ ├── Background Normal.png │ │ │ ├── Background Pressed.png │ │ │ ├── Computer Pressed.png │ │ │ ├── Favorites Pressed.png │ │ │ ├── Left Arrow Pressed.png │ │ │ ├── Background Separator.png │ │ │ ├── Right Arrow Pressed.png │ │ │ └── SmartFolder Pressed.tiff │ ├── resources │ │ └── SplitViewThumb.tiff │ ├── src │ │ ├── io │ │ │ ├── FSSearchDataSource.h │ │ │ ├── FSVolumesDataSource.h │ │ │ ├── FSSCMDataSource.h │ │ │ └── FSDirectoryDataSource.h │ │ ├── ui │ │ │ ├── OFBOutlineView.h │ │ │ └── OFBPathInfoCell.h │ │ └── OakHistoryController.h │ └── target ├── OakTextView │ ├── resources │ │ ├── Bookmark.png │ │ ├── Languages.png │ │ ├── Folding Top.png │ │ ├── IBeam white.png │ │ ├── Search Mark.png │ │ ├── Folding Bottom.png │ │ ├── RecordingMacro.tiff │ │ ├── Statusbar Gear.png │ │ ├── Bookmark Hover Add.png │ │ ├── Bookmark Pressed.png │ │ ├── Folding Collapsed.png │ │ ├── Folding Top Hoover.png │ │ ├── Folding Top Pressed.png │ │ ├── Bookmark Hover Remove.png │ │ ├── Folding Bottom Hoover.png │ │ ├── Folding Bottom Pressed.png │ │ ├── Folding Collapsed Hoover.png │ │ ├── Folding Collapsed Pressed.png │ │ └── Horizontal SplitView Thumb.png │ ├── src │ │ ├── OakPasteboardWrapper.h │ │ └── OakChoiceMenu.h │ └── target ├── text │ ├── target │ ├── src │ │ ├── types.cc │ │ ├── encode.h │ │ ├── trim.h │ │ ├── classification.h │ │ ├── classification.cc │ │ ├── ranker.h │ │ ├── case.h │ │ ├── encode.cc │ │ ├── decode.h │ │ ├── trim.cc │ │ ├── format.cc │ │ └── indent.cc │ └── tests │ │ ├── t_case.cc │ │ ├── t_encode.cc │ │ ├── t_format.cc │ │ └── t_tokenize.cc ├── HTMLOutput │ ├── resources │ │ ├── Left Arrow.png │ │ ├── Right Arrow.png │ │ ├── Left Arrow Pressed.png │ │ ├── Right Arrow Pressed.png │ │ ├── error_not_found.html │ │ └── Info.plist │ ├── src │ │ ├── helpers │ │ │ ├── HOAutoScroll.h │ │ │ └── HOJSBridge.h │ │ ├── browser │ │ │ ├── HOWebViewDelegateHelper.h │ │ │ ├── HOBrowserView.h │ │ │ └── HOStatusBar.h │ │ ├── OakHTMLOutputView.h │ │ └── HTMLOutput.h │ └── target ├── OakDebug │ ├── target │ ├── src │ │ ├── OakDebugMenu.h │ │ ├── OakDebug.h │ │ └── OakBenchmark.h │ └── Bundles │ │ └── OakDebug.tmbundle │ │ ├── Snippets │ │ └── OAK_DEBUG_VAR(…);.tmSnippet │ │ └── info.plist ├── DocumentWindow │ ├── resources │ │ ├── BottomBar.tiff │ │ └── SplitViewThumb.tiff │ ├── target │ └── src │ │ ├── EncodingView.h │ │ ├── DocumentCommand.h │ │ └── DocumentOpenHelper.h ├── authorization │ ├── target │ └── src │ │ ├── server.h │ │ └── constants.h ├── SoftwareUpdate │ ├── resources │ │ └── Update Badge.tiff │ ├── target │ └── src │ │ ├── ReleaseNotesWindowController.h │ │ └── sw_update.h ├── cf │ ├── target │ └── src │ │ ├── image.h │ │ ├── cf.cc │ │ └── run_loop.h ├── HTMLOutputWindow │ ├── target │ └── src │ │ └── HTMLOutputWindow.h ├── updater │ ├── target │ └── src │ │ └── download.h ├── selection │ ├── target │ ├── src │ │ └── types.cc │ └── tests │ │ └── t_column_movement.cc ├── BundlesManager │ └── target ├── command │ └── target ├── ns │ ├── target │ └── src │ │ ├── to_dictionary.h │ │ ├── ns.h │ │ └── event.h ├── parse │ ├── target │ └── src │ │ └── parse.h ├── plist │ ├── target │ ├── src │ │ ├── ascii.h │ │ ├── delta.h │ │ ├── stl.h │ │ └── uuid.h │ └── tests │ │ └── t_date.cc ├── layout │ ├── target │ └── src │ │ ├── render.h │ │ └── render.cc ├── network │ ├── src │ │ ├── constants.cc │ │ ├── user_agent.h │ │ ├── post.h │ │ ├── constants.h │ │ ├── tbz.h │ │ ├── filter_etag.h │ │ ├── network.h │ │ ├── download_tbz.h │ │ ├── proxy.h │ │ └── network.cc │ └── target ├── scm │ ├── target │ ├── src │ │ ├── drivers │ │ │ ├── utility.h │ │ │ └── p4.cc │ │ └── server.h │ └── tests │ │ └── t_fs_snapshot.cc ├── CrashReporter │ ├── target │ └── src │ │ ├── find_reports.h │ │ └── CrashReporter.h ├── buffer │ └── target ├── bundles │ ├── target │ └── src │ │ ├── bundles.h │ │ ├── menu.h │ │ ├── locations.h │ │ ├── fsevents │ │ └── fs_controller.h │ │ └── query.h ├── editor │ ├── target │ ├── src │ │ ├── write.h │ │ └── indent.cc │ └── tests │ │ ├── t_command.cc │ │ └── t_clipboard.cc ├── file │ ├── target │ ├── src │ │ ├── constants.cc │ │ ├── constants.h │ │ ├── path_info.h │ │ ├── type.h │ │ ├── status.h │ │ ├── encoding.h │ │ └── bytes.cc │ └── tests │ │ └── t_type.cc ├── io │ ├── src │ │ ├── io.h │ │ ├── pipe.h │ │ ├── swap_file_data.h │ │ ├── resource.h │ │ ├── pipe.cc │ │ ├── move_path.h │ │ ├── intermediate.h │ │ ├── socket.h │ │ ├── fsref.h │ │ └── events.h │ ├── target │ └── tests │ │ ├── t_xattr.cc │ │ └── t_identifier.cc ├── document │ ├── src │ │ ├── merge.h │ │ ├── session.h │ │ ├── watch.h │ │ └── session.cc │ ├── target │ └── tests │ │ ├── t_save.cc │ │ ├── t_inode.cc │ │ └── t_symlinks.cc └── OakFilterList │ ├── target │ └── src │ ├── highlight_ranges.h │ ├── OakAbbreviations.h │ ├── datasources │ ├── OakBundleItemCell.h │ └── SymbolChooser.h │ └── OakFilterListView.h ├── Shared ├── include │ └── oak │ │ ├── debug │ │ ├── debug.h │ │ ├── oak.h │ │ ├── misc.h │ │ └── duration.h └── PCH │ ├── prelude.mm │ ├── prelude.m │ └── prelude-mac.h ├── vendor ├── target ├── MASPreferences │ ├── .tm_properties │ ├── target │ └── Info.plist └── MGScopeBar │ └── target ├── Applications ├── TextMate │ ├── templates │ │ ├── footer.html │ │ └── header.html │ ├── references.md │ ├── resources │ │ ├── English.lproj │ │ │ ├── InfoPlist.strings │ │ │ └── TextMate Help │ │ │ │ ├── images │ │ │ │ ├── tm_small.png │ │ │ │ └── terminal_preferences.png │ │ │ │ ├── css │ │ │ │ └── stylesheet.css │ │ │ │ ├── load_encoding.md │ │ │ │ ├── format_string_syntax.md │ │ │ │ ├── events.md │ │ │ │ ├── scope_selector_syntax.md │ │ │ │ └── glob_string_syntax.md │ │ ├── TextMate.scriptTerminology │ │ ├── TextMate.scriptSuite │ │ └── Default.tmProperties │ ├── src │ │ ├── RMateServer.h │ │ ├── CreditsWindowController.h │ │ ├── TMPlugInController.h │ │ ├── AppStartup.h │ │ ├── Favorites.h │ │ └── GetURLScriptCommand.mm │ ├── target │ └── support │ │ └── Bundles │ │ └── Avian.tmbundle │ │ └── Commands │ │ ├── SCM Warning (Git).tmCommand │ │ └── SCM Warning (Subversion).tmCommand ├── bl │ ├── .tm_properties │ └── target ├── scmls │ └── target ├── gtm │ └── target ├── pretty_plist │ └── target ├── NewApplication │ ├── src │ │ ├── MyView.h │ │ ├── MyView.mm │ │ └── main.mm │ ├── target │ └── resources │ │ ├── English.lproj │ │ └── InfoPlist.strings │ │ └── Info.plist ├── decompile_as │ ├── target │ └── src │ │ └── decompile_as.mm ├── PrivilegedTool │ ├── target │ └── src │ │ ├── launchd.h │ │ └── install.h ├── indent │ └── target ├── .tm_properties ├── mate │ └── target └── target ├── .gitignore ├── COPYING ├── bin └── create_default_bundles_tbz └── .gitmodules /Frameworks/regexp/onig-latest: -------------------------------------------------------------------------------- 1 | onig-5.9.2 -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/st.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/ascii.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/big5.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/cp1251.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/euc_jp.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/euc_kr.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/euc_tw.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/gb18030.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/koi8_r.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/regcomp.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/regenc.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/regexec.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/regext.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/reggnu.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/regtrav.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/sjis.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/testc.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/testu.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/unicode.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/utf8.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/target: -------------------------------------------------------------------------------- 1 | BUILD = lib 2 | TARGETS = */target 3 | -------------------------------------------------------------------------------- /Shared/include/oak/debug: -------------------------------------------------------------------------------- 1 | ../../../Frameworks/OakDebug/src -------------------------------------------------------------------------------- /Shared/include/oak/debug.h: -------------------------------------------------------------------------------- 1 | #include "debug/OakDebug.h" 2 | -------------------------------------------------------------------------------- /vendor/target: -------------------------------------------------------------------------------- 1 | BUILD = lib 2 | TARGETS = */target 3 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/iso8859_1.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/iso8859_10.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/iso8859_11.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/iso8859_13.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/iso8859_14.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/iso8859_15.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/iso8859_16.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/iso8859_2.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/iso8859_3.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/iso8859_4.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/iso8859_5.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/iso8859_6.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/iso8859_7.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/iso8859_8.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/iso8859_9.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/regerror.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/regparse.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/regposerr.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/regposix.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/regsyntax.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/regversion.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/testp-testc.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/utf16_be.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/utf16_le.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/utf32_be.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/.deps/utf32_le.Plo: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/sample/.deps/crnl.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/sample/.deps/encode.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/sample/.deps/names.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/sample/.deps/posix.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/sample/.deps/simple.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/sample/.deps/sql.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/sample/.deps/syntax.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Applications/TextMate/templates/footer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Applications/bl/.tm_properties: -------------------------------------------------------------------------------- 1 | BL_RUN_ARGUMENTS = "--version" 2 | -------------------------------------------------------------------------------- /Frameworks/BundleEditor/gfx/Bundle Item Icons/Proxy.png: -------------------------------------------------------------------------------- 1 | Settings.png -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/sample/.deps/listcap.Po: -------------------------------------------------------------------------------- 1 | # dummy 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/stamp-h1: -------------------------------------------------------------------------------- 1 | timestamp for config.h 2 | -------------------------------------------------------------------------------- /Frameworks/settings/src/track_paths.cc: -------------------------------------------------------------------------------- 1 | #include "track_paths.h" 2 | -------------------------------------------------------------------------------- /Applications/scmls/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | LINK += scm io 3 | -------------------------------------------------------------------------------- /Frameworks/BundleEditor/templates/Settings.plist: -------------------------------------------------------------------------------- 1 | { settings = { }; 2 | } 3 | -------------------------------------------------------------------------------- /Applications/gtm/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | LINK += bundles parse 3 | -------------------------------------------------------------------------------- /Applications/pretty_plist/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | LINK += plist 3 | -------------------------------------------------------------------------------- /Frameworks/BundleEditor/templates/Proxy.plist: -------------------------------------------------------------------------------- 1 | { content = 'action.build'; } 2 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/AUTHORS: -------------------------------------------------------------------------------- 1 | sndgk393 AT ybb DOT ne DOT jp (K.Kosako) 2 | -------------------------------------------------------------------------------- /Applications/TextMate/references.md: -------------------------------------------------------------------------------- 1 | 2 | [Apple]: http://apple.com/ "Apple Inc." 3 | -------------------------------------------------------------------------------- /Applications/NewApplication/src/MyView.h: -------------------------------------------------------------------------------- 1 | @interface MyView : NSView 2 | { 3 | } 4 | @end 5 | -------------------------------------------------------------------------------- /Applications/bl/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | LINK += text io updater regexp 3 | -------------------------------------------------------------------------------- /Applications/decompile_as/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.mm 2 | FRAMEWORKS = Foundation OSAKit 3 | -------------------------------------------------------------------------------- /Applications/PrivilegedTool/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | LINK += authorization 3 | -------------------------------------------------------------------------------- /Applications/indent/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | LINK += text io regexp plist 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | build.ninja 3 | cache 4 | Applications/TextMate/resources/DefaultBundles.tbz 5 | -------------------------------------------------------------------------------- /Frameworks/BundleEditor/templates/Snippet.plist: -------------------------------------------------------------------------------- 1 | { content = "Hello \\${1|world,universe|}"; 2 | } 3 | -------------------------------------------------------------------------------- /vendor/MASPreferences/.tm_properties: -------------------------------------------------------------------------------- 1 | tabSize = 4 2 | softTabs = true 3 | TM_C_POINTER = " *" 4 | -------------------------------------------------------------------------------- /Applications/.tm_properties: -------------------------------------------------------------------------------- 1 | TM_NINJA_TARGET = '${TM_DIRECTORY/^.*\/Applications\/([^\/]+)(\/.*)?$/$1\/run/}' 2 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakBorderlessPanel.h: -------------------------------------------------------------------------------- 1 | @interface OakBorderlessPanel : NSPanel 2 | { 3 | } 4 | @end 5 | -------------------------------------------------------------------------------- /Frameworks/OakFoundation/src/NSArray Additions.h: -------------------------------------------------------------------------------- 1 | @interface NSArray (Other) 2 | - (id)firstObject; 3 | @end 4 | -------------------------------------------------------------------------------- /Frameworks/OakSystem/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | LINK += text cf io 3 | EXPORT = src/*.h -------------------------------------------------------------------------------- /Frameworks/undo/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | LINK += buffer selection 3 | EXPORT = src/undo.h 4 | -------------------------------------------------------------------------------- /Frameworks/BundleEditor/templates/Command.plist: -------------------------------------------------------------------------------- 1 | { command = '#!/usr/bin/env ruby -wKU\nputs "Hello world"\n'; 2 | } 3 | -------------------------------------------------------------------------------- /Frameworks/Find/resources/Gear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/Find/resources/Gear.png -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/c.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/c.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/log.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/log.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/red.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/red.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/web.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/web.icns -------------------------------------------------------------------------------- /Applications/mate/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | LINK += authorization 3 | FRAMEWORKS = ApplicationServices Security 4 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/gfx/TabClose.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/gfx/TabClose.png -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/Blank.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/Blank.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/blue.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/blue.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/brown.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/brown.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/green.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/green.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/grey.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/grey.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/grid.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/grid.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/latex.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/latex.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/list.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/list.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/ruby.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/ruby.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/text.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/text.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakPreview.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | PUBLIC void OakShowPreviewForURLs (NSArray* someURLs); 4 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/testc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/regexp/onig-5.9.2/testc.c -------------------------------------------------------------------------------- /Frameworks/theme/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | LINK += text bundles cf plist scope 3 | EXPORT = src/*.h 4 | -------------------------------------------------------------------------------- /Frameworks/Find/resources/Down Arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/Find/resources/Down Arrow.png -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/brackets.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/brackets.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/charcoal.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/charcoal.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/header.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/header.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/orange.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/orange.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/purple.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/purple.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/python.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/python.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/template.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/template.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/yellow.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/yellow.icns -------------------------------------------------------------------------------- /Frameworks/OakFoundation/src/NSDate Additions.h: -------------------------------------------------------------------------------- 1 | @interface NSDate (HumanDates) 2 | - (NSString*)humanReadableTimeElapsed; 3 | @end -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/README.ja: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/regexp/onig-5.9.2/README.ja -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/doc/API.ja: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/regexp/onig-5.9.2/doc/API.ja -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/doc/FAQ.ja: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/regexp/onig-5.9.2/doc/FAQ.ja -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/doc/RE.ja: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/regexp/onig-5.9.2/doc/RE.ja -------------------------------------------------------------------------------- /Frameworks/Find/resources/Right Arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/Find/resources/Right Arrow.png -------------------------------------------------------------------------------- /Frameworks/OakAppKit/gfx/SpellingDot.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/gfx/SpellingDot.tiff -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/javascript.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/javascript.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/latex_alt.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/latex_alt.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/NSAlert Additions.h: -------------------------------------------------------------------------------- 1 | @interface NSAlert (Other) 2 | - (void)addButtons:(NSString*)firstTitle, ...; 3 | @end 4 | -------------------------------------------------------------------------------- /Frameworks/Preferences/icons/Light-off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/Preferences/icons/Light-off.png -------------------------------------------------------------------------------- /Frameworks/Preferences/icons/Light-on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/Preferences/icons/Light-on.png -------------------------------------------------------------------------------- /Frameworks/Preferences/icons/Projects.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/Preferences/icons/Projects.icns -------------------------------------------------------------------------------- /Frameworks/Preferences/icons/Terminal.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/Preferences/icons/Terminal.tiff -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/win32/testc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/regexp/onig-5.9.2/win32/testc.c -------------------------------------------------------------------------------- /Frameworks/scope/target: -------------------------------------------------------------------------------- 1 | TEST_SOURCES = tests/*.cc 2 | SOURCES = src/*.cc 3 | LINK += text 4 | EXPORT = src/scope.h 5 | -------------------------------------------------------------------------------- /Applications/target: -------------------------------------------------------------------------------- 1 | BUILD = app 2 | FLAGS += -D'APP_REVISION=$APP_REVISION' -DCOMPILE_DATE=\"`date +%Y-%m-%d`\" 3 | TARGETS = */target 4 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/gfx/TabClose_Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/gfx/TabClose_Pressed.png -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/config_file.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/config_file.icns -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/CloseFile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/CloseFile.png -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/Bookmark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/Bookmark.png -------------------------------------------------------------------------------- /Frameworks/Preferences/icons/Variables.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/Preferences/icons/Variables.tiff -------------------------------------------------------------------------------- /Frameworks/text/target: -------------------------------------------------------------------------------- 1 | TEST_SOURCES = tests/*.cc 2 | SOURCES = src/*.cc 3 | EXPORT = src/*.h 4 | FRAMEWORKS = CoreFoundation 5 | -------------------------------------------------------------------------------- /Frameworks/BundleEditor/src/OakRot13Transformer.h: -------------------------------------------------------------------------------- 1 | @interface OakRot13Transformer : NSValueTransformer 2 | { 3 | } 4 | + (void)register; 5 | @end 6 | -------------------------------------------------------------------------------- /Frameworks/HTMLOutput/resources/Left Arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/HTMLOutput/resources/Left Arrow.png -------------------------------------------------------------------------------- /Frameworks/HTMLOutput/resources/Right Arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/HTMLOutput/resources/Right Arrow.png -------------------------------------------------------------------------------- /Frameworks/OakAppKit/gfx/SCM Badges/Added.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/gfx/SCM Badges/Added.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/gfx/TabClose_Modified.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/gfx/TabClose_Modified.png -------------------------------------------------------------------------------- /Frameworks/OakAppKit/gfx/TabClose_Rollover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/gfx/TabClose_Rollover.png -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/structured_text.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/structured_text.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/tree_structure.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/tree_structure.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakPopOutAnimation.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | PUBLIC void OakShowPopOutAnimation (NSRect aRect, NSImage* image); 4 | -------------------------------------------------------------------------------- /Frameworks/OakDebug/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.{cc,mm} 2 | LINK = 3 | FRAMEWORKS = Cocoa ExceptionHandling 4 | EXPORT = src/*.h 5 | -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/CloseFileOver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/CloseFileOver.png -------------------------------------------------------------------------------- /Frameworks/OakFoundation/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.mm 2 | LINK += text io regexp 3 | EXPORT = src/*.h 4 | FRAMEWORKS = Cocoa 5 | -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/Languages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/Languages.png -------------------------------------------------------------------------------- /Frameworks/DocumentWindow/resources/BottomBar.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/DocumentWindow/resources/BottomBar.tiff -------------------------------------------------------------------------------- /Frameworks/Find/resources/Down Arrow Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/Find/resources/Down Arrow Pressed.png -------------------------------------------------------------------------------- /Frameworks/Find/resources/Right Arrow Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/Find/resources/Right Arrow Pressed.png -------------------------------------------------------------------------------- /Frameworks/OakAppKit/gfx/SCM Badges/Deleted.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/gfx/SCM Badges/Deleted.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/gfx/SCM Badges/Modified.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/gfx/SCM Badges/Modified.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/gfx/Statusbar Background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/gfx/Statusbar Background.png -------------------------------------------------------------------------------- /Frameworks/OakAppKit/gfx/Statusbar Separator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/gfx/Statusbar Separator.png -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/NSMenu Additions.h: -------------------------------------------------------------------------------- 1 | @interface NSMenu (Additions) 2 | - (NSMenuItem*)parentMenuItem; 3 | - (void)enableTabTriggers; 4 | @end 5 | -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/CloseFilePressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/CloseFilePressed.png -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/Folding Top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/Folding Top.png -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/IBeam white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/IBeam white.png -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/Search Mark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/Search Mark.png -------------------------------------------------------------------------------- /Frameworks/OakTextView/src/OakPasteboardWrapper.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | PUBLIC clipboard_ptr get_clipboard (NSString* pboardName); 4 | -------------------------------------------------------------------------------- /Frameworks/Preferences/icons/Software Update.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/Preferences/icons/Software Update.tiff -------------------------------------------------------------------------------- /Frameworks/regexp/.gitignore: -------------------------------------------------------------------------------- 1 | onig-5.9.2/Makefile.am 2 | onig-5.9.2/Makefile.in 3 | onig-5.9.2/sample/Makefile.am 4 | onig-5.9.2/sample/Makefile.in 5 | -------------------------------------------------------------------------------- /Frameworks/Find/resources/English.lproj/Find.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/Find/resources/English.lproj/Find.strings -------------------------------------------------------------------------------- /Frameworks/OakAppKit/gfx/SCM Badges/Conflicted.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/gfx/SCM Badges/Conflicted.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/gfx/SCM Badges/Unversioned.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/gfx/SCM Badges/Unversioned.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/gfx/Statusbar Popup Arrows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/gfx/Statusbar Popup Arrows.png -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/angle_brackets_brown.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/angle_brackets_brown.icns -------------------------------------------------------------------------------- /Frameworks/OakAppKit/icons/angle_brackets_green.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/icons/angle_brackets_green.icns -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/Gear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/Gear.png -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/Home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/Home.png -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/Mount.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/Mount.png -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/Folding Bottom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/Folding Bottom.png -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/RecordingMacro.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/RecordingMacro.tiff -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/Statusbar Gear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/Statusbar Gear.png -------------------------------------------------------------------------------- /Frameworks/authorization/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | TEST_SOURCES = tests/t_*.cc 3 | EXPORT = src/*.h 4 | LINK += io text OakSystem 5 | -------------------------------------------------------------------------------- /vendor/MASPreferences/target: -------------------------------------------------------------------------------- 1 | SOURCES = vendor/*.m 2 | EXPORT = vendor/*.h 3 | CP_Resources = vendor/*.xib Info.plist 4 | FRAMEWORKS = Cocoa 5 | -------------------------------------------------------------------------------- /Frameworks/BundleEditor/gfx/Bundle Item Icons/Macro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/BundleEditor/gfx/Bundle Item Icons/Macro.png -------------------------------------------------------------------------------- /Frameworks/BundleEditor/gfx/Bundle Item Icons/Theme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/BundleEditor/gfx/Bundle Item Icons/Theme.png -------------------------------------------------------------------------------- /Frameworks/DocumentWindow/resources/SplitViewThumb.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/DocumentWindow/resources/SplitViewThumb.tiff -------------------------------------------------------------------------------- /Frameworks/HTMLOutput/resources/Left Arrow Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/HTMLOutput/resources/Left Arrow Pressed.png -------------------------------------------------------------------------------- /Frameworks/HTMLOutput/resources/Right Arrow Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/HTMLOutput/resources/Right Arrow Pressed.png -------------------------------------------------------------------------------- /Frameworks/OakAppKit/gfx/Statusbar Dropdown Arrow.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/gfx/Statusbar Dropdown Arrow.tiff -------------------------------------------------------------------------------- /Frameworks/OakAppKit/gfx/TabClose_ModifiedPressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/gfx/TabClose_ModifiedPressed.png -------------------------------------------------------------------------------- /Frameworks/OakAppKit/gfx/TabClose_ModifiedRollover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/gfx/TabClose_ModifiedRollover.png -------------------------------------------------------------------------------- /Frameworks/OakDebug/src/OakDebugMenu.h: -------------------------------------------------------------------------------- 1 | #ifndef NDEBUG 2 | 3 | #ifdef __OBJC__ 4 | @interface OakDebugMenu : NSObject { } 5 | @end 6 | #endif 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/Computer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/Computer.png -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/resources/SplitViewThumb.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/resources/SplitViewThumb.tiff -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/Bookmark Hover Add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/Bookmark Hover Add.png -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/Bookmark Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/Bookmark Pressed.png -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/Folding Collapsed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/Folding Collapsed.png -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/Folding Top Hoover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/Folding Top Hoover.png -------------------------------------------------------------------------------- /Frameworks/Preferences/src/ProjectsPreferences.h: -------------------------------------------------------------------------------- 1 | #import "PreferencesPane.h" 2 | 3 | @interface ProjectsPreferences : PreferencesPane 4 | { 5 | } 6 | @end 7 | -------------------------------------------------------------------------------- /Frameworks/SoftwareUpdate/resources/Update Badge.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/SoftwareUpdate/resources/Update Badge.tiff -------------------------------------------------------------------------------- /Frameworks/cf/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | TEST_SOURCES = tests/*.cc 3 | FRAMEWORKS = CoreFoundation ApplicationServices 4 | EXPORT = src/*.h 5 | -------------------------------------------------------------------------------- /Frameworks/BundleEditor/gfx/Bundle Item Icons/Bundle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/BundleEditor/gfx/Bundle Item Icons/Bundle.png -------------------------------------------------------------------------------- /Frameworks/BundleEditor/gfx/Bundle Item Icons/Command.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/BundleEditor/gfx/Bundle Item Icons/Command.png -------------------------------------------------------------------------------- /Frameworks/BundleEditor/gfx/Bundle Item Icons/Grammar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/BundleEditor/gfx/Bundle Item Icons/Grammar.png -------------------------------------------------------------------------------- /Frameworks/BundleEditor/gfx/Bundle Item Icons/Snippet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/BundleEditor/gfx/Bundle Item Icons/Snippet.png -------------------------------------------------------------------------------- /Frameworks/HTMLOutputWindow/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.mm 2 | EXPORT = src/HTMLOutputWindow.h 3 | LINK += HTMLOutput command 4 | FRAMEWORKS = Cocoa 5 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/gfx/Statusbar Background Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakAppKit/gfx/Statusbar Background Pressed.png -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/Background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/Background.png -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/Favorites.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/Favorites.png -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/Left Arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/Left Arrow.png -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/Separator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/Separator.png -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/Folding Top Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/Folding Top Pressed.png -------------------------------------------------------------------------------- /Frameworks/BundleEditor/gfx/Bundle Item Icons/Settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/BundleEditor/gfx/Bundle Item Icons/Settings.png -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/NSWindow Additions.h: -------------------------------------------------------------------------------- 1 | @interface NSWindow (Other) 2 | - (void)toggleVisibility; 3 | - (void)setPrivateBottomCornerRounded:(BOOL)flag; 4 | @end 5 | -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/Home Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/Home Pressed.png -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/PopUp Arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/PopUp Arrow.png -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/Right Arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/Right Arrow.png -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/SmartFolder.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/SmartFolder.tiff -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/Bookmark Hover Remove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/Bookmark Hover Remove.png -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/Folding Bottom Hoover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/Folding Bottom Hoover.png -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/Folding Bottom Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/Folding Bottom Pressed.png -------------------------------------------------------------------------------- /Frameworks/updater/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | FLAGS += -DREST_API='"$rest_api"' 3 | LINK += text io network plist 4 | EXPORT = src/updater.h 5 | -------------------------------------------------------------------------------- /Applications/NewApplication/src/MyView.mm: -------------------------------------------------------------------------------- 1 | #import "MyView.h" 2 | 3 | @implementation MyView 4 | - (void)drawRect:(NSRect)aRect 5 | { 6 | NSEraseRect(aRect); 7 | } 8 | @end 9 | -------------------------------------------------------------------------------- /Frameworks/BundleEditor/gfx/Bundle Item Icons/Drag Command.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/BundleEditor/gfx/Bundle Item Icons/Drag Command.png -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakOpenWithMenu.h: -------------------------------------------------------------------------------- 1 | @interface OakOpenWithMenu : NSObject 2 | + (void)addOpenWithMenuForPaths:(NSSet*)paths toMenuItem:(NSMenuItem*)aMenuItem; 3 | @end 4 | -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/Folding Collapsed Hoover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/Folding Collapsed Hoover.png -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/Folding Collapsed Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/Folding Collapsed Pressed.png -------------------------------------------------------------------------------- /Frameworks/selection/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | TEST_SOURCES = tests/*.cc 3 | LINK += text buffer bundles regexp 4 | EXPORT = src/selection.h src/types.h 5 | -------------------------------------------------------------------------------- /Applications/NewApplication/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.{cc,mm} 2 | CP_Resources = resources/* 3 | LINK += OakFoundation OakAppKit OakSystem 4 | FRAMEWORKS = Cocoa 5 | -------------------------------------------------------------------------------- /Applications/TextMate/resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Applications/TextMate/resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /Frameworks/BundlesManager/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.mm 2 | LINK += updater network OakFoundation 3 | EXPORT = src/BundlesManager.h 4 | FRAMEWORKS = Foundation 5 | -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/Background Normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/Background Normal.png -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/Background Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/Background Pressed.png -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/Computer Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/Computer Pressed.png -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/Favorites Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/Favorites Pressed.png -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/Left Arrow Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/Left Arrow Pressed.png -------------------------------------------------------------------------------- /Frameworks/OakTextView/resources/Horizontal SplitView Thumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakTextView/resources/Horizontal SplitView Thumb.png -------------------------------------------------------------------------------- /Frameworks/command/target: -------------------------------------------------------------------------------- 1 | TEST_SOURCES = tests/*.cc 2 | SOURCES = src/*.cc 3 | EXPORT = src/*.h 4 | LINK += text regexp io bundles plist OakSystem settings buffer selection 5 | -------------------------------------------------------------------------------- /Frameworks/ns/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.mm 2 | TEST_SOURCES = tests/*.{cc,mm} 3 | LINK += text OakFoundation plist 4 | FRAMEWORKS = Cocoa 5 | EXPORT = src/*.h 6 | -------------------------------------------------------------------------------- /Frameworks/parse/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | TEST_SOURCES = tests/t_*.cc 3 | LINK += text bundles plist regexp scope 4 | EXPORT = src/parse.h src/grammar.h 5 | -------------------------------------------------------------------------------- /Frameworks/plist/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.{cc,rl} 2 | TEST_SOURCES = tests/*.cc 3 | LINK += text cf io 4 | FRAMEWORKS = CoreFoundation 5 | EXPORT = src/*.h 6 | -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/Background Separator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/Background Separator.png -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/Right Arrow Pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/Right Arrow Pressed.png -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/gfx/Header Icons/SmartFolder Pressed.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Frameworks/OakFileBrowser/gfx/Header Icons/SmartFolder Pressed.tiff -------------------------------------------------------------------------------- /Applications/NewApplication/resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Applications/NewApplication/resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/NSScreen Additions.h: -------------------------------------------------------------------------------- 1 | @interface NSScreen (Additions) 2 | + (NSScreen*)screenWithFrame:(NSRect)rect; 3 | - (NSRect)restrainFrameToVisibleScreen:(NSRect)aFrame; 4 | @end -------------------------------------------------------------------------------- /Applications/PrivilegedTool/src/launchd.h: -------------------------------------------------------------------------------- 1 | #ifndef LAUNCHD_H_SP1GJCZ 2 | #define LAUNCHD_H_SP1GJCZ 3 | 4 | int launchd_sockets (); 5 | 6 | #endif /* end of include guard: LAUNCHD_H_SP1GJCZ */ 7 | -------------------------------------------------------------------------------- /Frameworks/layout/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | EXPORT = src/{layout,paragraph,ct}.h 3 | LINK += text buffer selection bundles theme cf ns 4 | TEST_SOURCES = tests/*.{cc,mm} 5 | -------------------------------------------------------------------------------- /Frameworks/settings/target: -------------------------------------------------------------------------------- 1 | TEST_SOURCES = tests/*.cc 2 | SOURCES = src/*.{cc,rl} 3 | EXPORT = src/{settings,volume,track_paths}.h 4 | LINK += io plist OakSystem regexp scope 5 | -------------------------------------------------------------------------------- /Frameworks/network/src/constants.cc: -------------------------------------------------------------------------------- 1 | #include "constants.h" 2 | 3 | std::string const kHTTPSignatureHeader = "x-amz-meta-x-signature"; 4 | std::string const kHTTPSigneeHeader = "x-amz-meta-x-signee"; 5 | -------------------------------------------------------------------------------- /Frameworks/scm/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/**/*.cc 2 | TEST_SOURCES = tests/t_*.cc 3 | EXPORT = src/{scm,snapshot}.h 4 | LINK += text cf io settings OakSystem 5 | FRAMEWORKS = Carbon Security 6 | -------------------------------------------------------------------------------- /vendor/MGScopeBar/target: -------------------------------------------------------------------------------- 1 | SOURCES = vendor/MGScopeBar.m vendor/MGRecessedPopUpButtonCell.m 2 | EXPORT = vendor/MGScopeBar.h vendor/MGScopeBarDelegateProtocol.h 3 | FRAMEWORKS = Carbon Cocoa 4 | -------------------------------------------------------------------------------- /Applications/TextMate/resources/English.lproj/TextMate Help/images/tm_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Applications/TextMate/resources/English.lproj/TextMate Help/images/tm_small.png -------------------------------------------------------------------------------- /Frameworks/BundleEditor/templates/Drag Command.plist: -------------------------------------------------------------------------------- 1 | { draggedFileExtensions = ( txt ); 2 | command = '#!/usr/bin/env ruby -wKU\nputs "» #{ENV[\'TM_DROPPED_FILE\']}"\n'; 3 | output = insertAsSnippet; 4 | } 5 | -------------------------------------------------------------------------------- /Frameworks/CrashReporter/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.{mm,cc} 2 | EXPORT = src/CrashReporter.h 3 | LINK += cf ns io plist network 4 | FRAMEWORKS = Foundation AddressBook 5 | LIBS += z 6 | -------------------------------------------------------------------------------- /Frameworks/buffer/target: -------------------------------------------------------------------------------- 1 | TEST_SOURCES = tests/*.{cc,mm} 2 | SOURCES = src/*.cc 3 | LINK += text bundles ns parse regexp scope plist 4 | EXPORT = src/buffer.h src/indexed_map.h src/storage.h 5 | -------------------------------------------------------------------------------- /Applications/NewApplication/src/main.mm: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | int main (int argc, char const* argv[]) 4 | { 5 | oak::application_t app(argc, argv); 6 | return NSApplicationMain(argc, argv); 7 | } 8 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/NSView Additions.h: -------------------------------------------------------------------------------- 1 | @interface NSView (PopupAddition) 2 | - (void)showMenu:(NSMenu*)menu inRect:(NSRect)rect withSelectedIndex:(NSInteger)index font:(NSFont*)font popup:(BOOL)isPopup; 3 | @end 4 | -------------------------------------------------------------------------------- /Frameworks/network/src/user_agent.h: -------------------------------------------------------------------------------- 1 | #ifndef USER_AGENT_H_S2EYS361 2 | #define USER_AGENT_H_S2EYS361 3 | 4 | std::string create_agent_info_string (); 5 | 6 | #endif /* end of include guard: USER_AGENT_H_S2EYS361 */ 7 | -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/src/io/FSSearchDataSource.h: -------------------------------------------------------------------------------- 1 | #import "FSDataSource.h" 2 | 3 | @interface FSSearchDataSource : FSDataSource 4 | { 5 | } 6 | - (id)initWithURL:(NSURL*)anURL options:(NSUInteger)someOptions; 7 | @end 8 | -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/src/io/FSVolumesDataSource.h: -------------------------------------------------------------------------------- 1 | #import "FSDataSource.h" 2 | 3 | @interface FSVolumesDataSource : FSDataSource 4 | { 5 | } 6 | - (id)initWithURL:(NSURL*)anURL options:(NSUInteger)someOptions; 7 | @end 8 | -------------------------------------------------------------------------------- /Shared/include/oak/oak.h: -------------------------------------------------------------------------------- 1 | #ifndef OAK_H_9YB2FRDQ 2 | #define OAK_H_9YB2FRDQ 3 | 4 | #include "misc.h" 5 | #include "iterator_macros.h" 6 | #include "algorithm.h" 7 | 8 | #endif /* end of include guard: OAK_H_9YB2FRDQ */ 9 | -------------------------------------------------------------------------------- /Frameworks/BundleEditor/templates/Bundle.plist: -------------------------------------------------------------------------------- 1 | { name = "${TM_FULLNAME/^(\\S+).*$/$1/}’s Bundle"; 2 | contactName = "$TM_FULLNAME"; 3 | contactEmailRot13 = "$TM_ROT13_EMAIL"; 4 | description = "New shiny bundle for X."; 5 | } 6 | -------------------------------------------------------------------------------- /Applications/TextMate/resources/English.lproj/TextMate Help/images/terminal_preferences.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basuke/textmate/master/Applications/TextMate/resources/English.lproj/TextMate Help/images/terminal_preferences.png -------------------------------------------------------------------------------- /Frameworks/HTMLOutput/src/helpers/HOAutoScroll.h: -------------------------------------------------------------------------------- 1 | @interface HOAutoScroll : NSObject 2 | { 3 | WebFrameView* webFrame; 4 | NSRect lastFrame, lastVisibleRect; 5 | } 6 | @property (nonatomic, retain) WebFrameView* webFrame; 7 | @end 8 | -------------------------------------------------------------------------------- /Frameworks/HTMLOutput/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/**/*.mm 2 | EXPORT = src/HTMLOutput.h 3 | CP_Resources = resources/* 4 | LINK += text ns document command OakAppKit OakFoundation OakSystem 5 | FRAMEWORKS = Cocoa WebKit 6 | -------------------------------------------------------------------------------- /Frameworks/bundles/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/**/*.cc 2 | TEST_SOURCES = tests/*.cc 3 | LINK += text cf io plist OakSystem regexp scope 4 | FRAMEWORKS = CoreFoundation Carbon 5 | EXPORT = src/*.h src/fsevents/fs_tree.h 6 | -------------------------------------------------------------------------------- /Shared/PCH/prelude.mm: -------------------------------------------------------------------------------- 1 | #ifndef PRELUDE_MM_PCH_ERBQ6W0T 2 | #define PRELUDE_MM_PCH_ERBQ6W0T 3 | 4 | #include "prelude.c" 5 | #include "prelude.m" 6 | #include "prelude.cc" 7 | 8 | #endif /* end of include guard: PRELUDE_MM_PCH_ERBQ6W0T */ 9 | -------------------------------------------------------------------------------- /Applications/TextMate/src/RMateServer.h: -------------------------------------------------------------------------------- 1 | #ifndef RMATESERVER_H_UPCJJJ8U 2 | #define RMATESERVER_H_UPCJJJ8U 3 | 4 | void setup_rmate_server (bool enabled, uint32_t ip, uint16_t port); 5 | 6 | #endif /* end of include guard: RMATESERVER_H_UPCJJJ8U */ 7 | -------------------------------------------------------------------------------- /Frameworks/BundleEditor/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.{cc,mm} 2 | LINK += bundles ns OakFoundation OakTextView 3 | EXPORT = src/BundleEditor.h 4 | CP_Resources = resources/* templates/*.plist gfx/**/*.png 5 | FRAMEWORKS = Cocoa AddressBook 6 | -------------------------------------------------------------------------------- /Frameworks/Find/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.{cc,mm} 2 | TEST_SOURCES = tests/*.cc 3 | EXPORT = src/Find.h 4 | CP_Resources = resources/* 5 | LINK += text editor io ns OakAppKit OakFoundation regexp scope 6 | FRAMEWORKS = Cocoa QuartzCore 7 | -------------------------------------------------------------------------------- /Frameworks/editor/target: -------------------------------------------------------------------------------- 1 | TEST_SOURCES = tests/*.cc 2 | SOURCES = src/*.cc 3 | EXPORT = src/editor.h src/snippets.h src/clipboard.h src/write.h 4 | LINK += text buffer selection document regexp command bundles theme OakSystem cf layout 5 | -------------------------------------------------------------------------------- /Frameworks/file/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | TEST_SOURCES = tests/*.cc 3 | EXPORT = src/{bytes,open,save,status,encoding,type,path_info}.h 4 | LINK += io authorization plist scm settings text bundles command 5 | LIBS = iconv 6 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/NSColor Additions.h: -------------------------------------------------------------------------------- 1 | @interface NSColor (Creation) 2 | + (NSColor*)colorWithString:(NSString*)aString; 3 | + (NSColor*)colorWithCGColor:(CGColorRef)aColor; 4 | @end 5 | 6 | @interface NSColor (OakColor) 7 | - (BOOL)isDark; 8 | @end 9 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakEncodingPopUpButton.h: -------------------------------------------------------------------------------- 1 | @interface OakEncodingPopUpButton : NSPopUpButton 2 | { 3 | NSArray* availableEncodings; 4 | NSString* encoding; 5 | NSMenuItem* firstMenuItem; 6 | } 7 | @property (nonatomic, retain) NSString* encoding; 8 | @end 9 | -------------------------------------------------------------------------------- /Frameworks/io/src/io.h: -------------------------------------------------------------------------------- 1 | #ifndef IO_H_VLV818VO 2 | #define IO_H_VLV818VO 3 | 4 | #import "path.h" 5 | #import "move_path.h" 6 | #import "swap_file_data.h" 7 | #import "socket.h" 8 | #import "pipe.h" 9 | 10 | #endif /* end of include guard: IO_H_VLV818VO */ 11 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/NSEvent Additions.h: -------------------------------------------------------------------------------- 1 | @interface NSEvent (SnowLeopardCompatibilityWrappers) 2 | + (NSTimeInterval)slDoubleClickInterval; 3 | + (NSTimeInterval)caretBlinkInterval; 4 | + (NSUInteger)slPressedMouseButtons; 5 | + (NSUInteger)slModifierFlags; 6 | @end 7 | -------------------------------------------------------------------------------- /Frameworks/text/src/types.cc: -------------------------------------------------------------------------------- 1 | #include "types.h" 2 | 3 | namespace text 4 | { 5 | pos_t pos_t::zero = pos_t(0, 0); 6 | pos_t pos_t::undefined = pos_t(SIZE_T_MAX, SIZE_T_MAX); 7 | range_t range_t::undefined = range_t(pos_t::undefined, pos_t::undefined); 8 | }; -------------------------------------------------------------------------------- /Frameworks/OakAppKit/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.{cc,mm} 2 | CP_Resources = resources/* gfx/**/*.{png,tiff,icns} icons/* 3 | TEST_SOURCES = tests/*.{cc,mm} 4 | LINK += text ns io OakFoundation regexp scm 5 | EXPORT = src/*.h 6 | FRAMEWORKS = Carbon Cocoa AudioToolbox 7 | -------------------------------------------------------------------------------- /Frameworks/SoftwareUpdate/target: -------------------------------------------------------------------------------- 1 | TEST_SOURCES = tests/*.cc 2 | SOURCES = src/*.{cc,mm} 3 | EXPORT = src/SoftwareUpdate.h src/sw_update.h 4 | CP_Resources = resources/* 5 | LINK += OakAppKit OakFoundation OakSystem network ns cf plist 6 | FRAMEWORKS = Cocoa WebKit 7 | -------------------------------------------------------------------------------- /Applications/TextMate/resources/English.lproj/TextMate Help/css/stylesheet.css: -------------------------------------------------------------------------------- 1 | body { 2 | font: 12px "Lucida Grande", sans-serif; 3 | } 4 | 5 | pre { 6 | background-color: #E2E2E2; 7 | border: 1px solid #919699; 8 | padding: 10px 20px 10px 20px; 9 | overflow: auto; 10 | } 11 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/NSSavePanel Additions.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSSavePanel (DeselectExtension) 4 | - (void)deselectExtension; 5 | @end 6 | 7 | @interface NSSavePanel (HiddenFiles) 8 | - (void)setShowsHiddenFilesCheckBox:(BOOL)flag; 9 | @end -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakSound.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | enum OakSoundIdentifier 4 | { 5 | OakSoundDidMoveItemUISound, 6 | OakSoundDidTrashItemUISound, 7 | OakSoundDidCompleteSomethingUISound 8 | }; 9 | 10 | PUBLIC void OakPlayUISound (OakSoundIdentifier aSound); 11 | -------------------------------------------------------------------------------- /Frameworks/network/src/post.h: -------------------------------------------------------------------------------- 1 | #ifndef POST_H_HD2H7K9B 2 | #define POST_H_HD2H7K9B 3 | 4 | #include 5 | 6 | PUBLIC long post_to_server (std::string const& url, std::map const& payload); 7 | 8 | #endif /* end of include guard: POST_H_HD2H7K9B */ 9 | -------------------------------------------------------------------------------- /Applications/PrivilegedTool/src/install.h: -------------------------------------------------------------------------------- 1 | #ifndef PRIVILEGED_TOOL_INSTALL_H_4IAOPZ4H 2 | #define PRIVILEGED_TOOL_INSTALL_H_4IAOPZ4H 3 | 4 | int install_tool (std::string const& toolPath); 5 | int uninstall_tool (); 6 | 7 | #endif /* end of include guard: PRIVILEGED_TOOL_INSTALL_H_4IAOPZ4H */ 8 | -------------------------------------------------------------------------------- /Frameworks/OakFoundation/src/OakFoundation.h: -------------------------------------------------------------------------------- 1 | #import "OakFindProtocol.h" 2 | #import 3 | 4 | PUBLIC extern NSNumber* const YES_obj; 5 | PUBLIC extern NSNumber* const NO_obj; 6 | 7 | PUBLIC BOOL NSIsEmptyString (NSString* str); 8 | PUBLIC BOOL NSNotEmptyString (NSString* str); 9 | -------------------------------------------------------------------------------- /Frameworks/bundles/src/bundles.h: -------------------------------------------------------------------------------- 1 | #ifndef BUNDLES_H_Q267K08K 2 | #define BUNDLES_H_Q267K08K 3 | 4 | #include "index.h" 5 | #include "wrappers.h" 6 | #include "locations.h" 7 | #include "query.h" 8 | #include "menu.h" 9 | 10 | #endif /* end of include guard: BUNDLES_H_Q267K08K */ 11 | -------------------------------------------------------------------------------- /Frameworks/document/src/merge.h: -------------------------------------------------------------------------------- 1 | #ifndef MERGE_H_G9U6AOAI 2 | #define MERGE_H_G9U6AOAI 3 | 4 | std::string merge (std::string const& oldContent, std::string const& myContent, std::string const& yourContent, bool* conflict = NULL); 5 | 6 | #endif /* end of include guard: MERGE_H_G9U6AOAI */ 7 | -------------------------------------------------------------------------------- /Frameworks/network/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | TEST_SOURCES = tests/*.cc 3 | LINK += text cf io plist OakSystem 4 | LIBS = curl crypto 5 | EXPORT = src/{constants,download{,_tbz},filter_*,key_chain,network,post,proxy,tbz}.h 6 | FRAMEWORKS = SystemConfiguration Security 7 | -------------------------------------------------------------------------------- /Frameworks/CrashReporter/src/find_reports.h: -------------------------------------------------------------------------------- 1 | #ifndef FIND_REPORTS_H_DX8YASDO 2 | #define FIND_REPORTS_H_DX8YASDO 3 | 4 | #include 5 | 6 | std::map find_reports (std::string const& process); 7 | 8 | #endif /* end of include guard: FIND_REPORTS_H_DX8YASDO */ 9 | -------------------------------------------------------------------------------- /Frameworks/plist/src/ascii.h: -------------------------------------------------------------------------------- 1 | #ifndef ASCII_PARSER_H_D3YVICTX 2 | #define ASCII_PARSER_H_D3YVICTX 3 | 4 | #include "plist.h" 5 | 6 | namespace plist 7 | { 8 | PUBLIC plist::any_t parse_ascii (std::string const& str); 9 | } 10 | 11 | #endif /* end of include guard: ASCII_PARSER_H_D3YVICTX */ 12 | -------------------------------------------------------------------------------- /Frameworks/document/src/session.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCUMENT_SESSION_H_9Q0NS7JT 2 | #define DOCUMENT_SESSION_H_9Q0NS7JT 3 | 4 | #include 5 | 6 | namespace document 7 | { 8 | PUBLIC void schedule_session_backup (); 9 | } 10 | 11 | #endif /* end of include guard: DOCUMENT_SESSION_H_9Q0NS7JT */ 12 | -------------------------------------------------------------------------------- /Frameworks/io/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.cc 2 | TEST_SOURCES = tests/* 3 | LINK += text cf regexp 4 | FRAMEWORKS = Carbon Security 5 | EXPORT = src/io.h src/path.h src/entries.h src/events.h src/intermediate.h src/pipe.h src/move_path.h src/icon.h src/resource.h src/socket.h src/swap_file_data.h 6 | -------------------------------------------------------------------------------- /Frameworks/OakTextView/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.{cc,mm} 2 | EXPORT = src/OakDocumentView.h src/GutterView.h src/OakTextView.h 3 | CP_Resources = resources/* 4 | LINK += layout text bundles editor document theme ns plist OakAppKit OakFoundation OakSystem regexp scope settings 5 | FRAMEWORKS = Cocoa 6 | -------------------------------------------------------------------------------- /Frameworks/file/src/constants.cc: -------------------------------------------------------------------------------- 1 | #include "constants.h" 2 | 3 | std::string const kLF = "\n"; 4 | std::string const kCR = "\r"; 5 | std::string const kCRLF = "\r\n"; 6 | std::string const kMIX = "•"; 7 | 8 | std::string const kFileTypePlainText = "text.plain"; 9 | -------------------------------------------------------------------------------- /Applications/TextMate/src/CreditsWindowController.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | @interface CreditsWindowController : NSWindowController 4 | { 5 | OBJC_WATCH_LEAKS(CreditsWindowController); 6 | 7 | IBOutlet WebView* webView; 8 | NSURL* creditsURL; 9 | } 10 | + (void)showPath:(NSString*)aPath; 11 | @end 12 | -------------------------------------------------------------------------------- /Frameworks/CrashReporter/src/CrashReporter.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | PUBLIC extern NSString* const kUserDefaultsDisableCrashReportingKey; 4 | PUBLIC extern NSString* const kUserDefaultsCrashReportsContactInfoKey; 5 | 6 | PUBLIC void OakSubmitNewCrashReportsInBackground (NSString* url, NSString* processName = nil); 7 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/NSMenuItem Additions.h: -------------------------------------------------------------------------------- 1 | @interface NSMenuItem (FileIcon) 2 | - (void)setIconForFile:(NSString*)path; 3 | - (void)setKeyEquivalentCxxString:(std::string const&)aKeyEquivalent; 4 | - (void)setTabTriggerCxxString:(std::string const&)aTabTrigger; 5 | - (void)setModifiedState:(BOOL)flag; 6 | @end 7 | 8 | -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/**/*.{cc,mm} 2 | EXPORT = src/OakFileBrowser.h 3 | CP_Resources = resources/* gfx/**/* 4 | LINK += text cf document editor io regexp settings ns plist OakAppKit OakFoundation scm OakSystem Preferences 5 | FRAMEWORKS = Cocoa Carbon SystemConfiguration 6 | -------------------------------------------------------------------------------- /Frameworks/OakFoundation/src/NSArray Additions.mm: -------------------------------------------------------------------------------- 1 | #import "NSArray Additions.h" 2 | #import "NSString Additions.h" 3 | #import 4 | #import 5 | 6 | @implementation NSArray (Other) 7 | - (id)firstObject 8 | { 9 | return [self count] ? [self objectAtIndex:0] : nil; 10 | } 11 | @end 12 | -------------------------------------------------------------------------------- /Frameworks/Preferences/src/Preferences.h: -------------------------------------------------------------------------------- 1 | @class MASPreferencesWindowController; 2 | 3 | @interface Preferences : NSResponder 4 | { 5 | MASPreferencesWindowController* windowController; 6 | NSArray* viewControllers; 7 | } 8 | + (Preferences*)sharedInstance; 9 | 10 | - (void)showWindow:(id)sender; 11 | @end 12 | -------------------------------------------------------------------------------- /Frameworks/io/src/pipe.h: -------------------------------------------------------------------------------- 1 | #ifndef IO_PIPE_H_CZY71GYP 2 | #define IO_PIPE_H_CZY71GYP 3 | 4 | #include 5 | 6 | namespace io 7 | { 8 | PUBLIC void create_pipe (int& read_pipe, int& write_pipe, bool close_on_exec); 9 | 10 | } /* io */ 11 | 12 | #endif /* end of include guard: IO_PIPE_H_CZY71GYP */ 13 | -------------------------------------------------------------------------------- /Frameworks/Preferences/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.mm 2 | EXPORT = src/{Preferences,Keys}.h 3 | CP_Resources = resources/* icons/* ../../rmate/rmate 4 | LINK = MASPreferences MGScopeBar BundlesManager OakAppKit OakFoundation plist ns file bundles SoftwareUpdate CrashReporter 5 | FRAMEWORKS = Cocoa AddressBook 6 | -------------------------------------------------------------------------------- /Frameworks/OakFoundation/src/OakStringListTransformer.h: -------------------------------------------------------------------------------- 1 | @interface OakStringListTransformer : NSValueTransformer 2 | { 3 | NSArray* stringList; 4 | } 5 | + (void)createTransformerWithName:(NSString*)aName andObjectsArray:(NSArray*)aList; 6 | + (void)createTransformerWithName:(NSString*)aName andObjects:(id)firstObj, ...; 7 | @end 8 | -------------------------------------------------------------------------------- /Frameworks/scm/src/drivers/utility.h: -------------------------------------------------------------------------------- 1 | #ifndef SCM_RUN_CMD_H_KWBO3WHV 2 | #define SCM_RUN_CMD_H_KWBO3WHV 3 | 4 | // takes NULL-terminated list of arguments 5 | std::string run_cmd (std::map const& environment, std::string const& cmd, ...); 6 | 7 | #endif /* end of include guard: SCM_RUN_CMD_H_KWBO3WHV */ 8 | -------------------------------------------------------------------------------- /Frameworks/text/src/encode.h: -------------------------------------------------------------------------------- 1 | #ifndef ENCODE_H_HXIAH61Z 2 | #define ENCODE_H_HXIAH61Z 3 | 4 | #include 5 | 6 | namespace encode 7 | { 8 | PUBLIC std::string url_part (std::string const& src, std::string const& excl = ""); 9 | 10 | } /* encode */ 11 | 12 | #endif /* end of include guard: ENCODE_H_HXIAH61Z */ 13 | -------------------------------------------------------------------------------- /Frameworks/OakFilterList/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.mm src/datasources/*.{cc,mm} 2 | EXPORT = src/OakFilterList.h src/datasources/*.h 3 | CP_Resources = resources/* 4 | LINK += text bundles document io plist MGScopeBar ns OakAppKit OakFoundation OakSystem OakTextView regexp scope 5 | FRAMEWORKS = Cocoa Carbon QuartzCore 6 | -------------------------------------------------------------------------------- /Frameworks/document/target: -------------------------------------------------------------------------------- 1 | TEST_SOURCES = tests/*.cc 2 | SOURCES = src/*.cc 3 | EXPORT = src/document.h src/directory.h src/collection.h src/reader.h src/session.h 4 | LINK += file text buffer selection bundles command cf io file scm plist OakSystem regexp settings authorization undo 5 | FRAMEWORKS = ApplicationServices 6 | -------------------------------------------------------------------------------- /Frameworks/network/src/constants.h: -------------------------------------------------------------------------------- 1 | #ifndef NETWORK_CONSTANTS_H_R7DVBN2M 2 | #define NETWORK_CONSTANTS_H_R7DVBN2M 3 | 4 | #include 5 | 6 | PUBLIC extern std::string const kHTTPSignatureHeader; 7 | PUBLIC extern std::string const kHTTPSigneeHeader; 8 | 9 | #endif /* end of include guard: NETWORK_CONSTANTS_H_R7DVBN2M */ 10 | -------------------------------------------------------------------------------- /Frameworks/regexp/src/private.h: -------------------------------------------------------------------------------- 1 | #ifndef ONIGURUMA_PRIVATE_H_IXPGSI3B 2 | #define ONIGURUMA_PRIVATE_H_IXPGSI3B 3 | 4 | #include "oniguruma.h" 5 | 6 | std::map extract_captures (UChar const* buffer, OnigRegion const* match, regex_t* regexp); 7 | 8 | #endif /* end of include guard: ONIGURUMA_PRIVATE_H_IXPGSI3B */ 9 | -------------------------------------------------------------------------------- /Frameworks/text/src/trim.h: -------------------------------------------------------------------------------- 1 | #ifndef TEXT_TRIM_H_5NIIFUM8 2 | #define TEXT_TRIM_H_5NIIFUM8 3 | 4 | #include 5 | 6 | namespace text 7 | { 8 | PUBLIC std::string trim (std::string const& str, std::string const& trimChars = " \t\n"); 9 | 10 | } /* text */ 11 | 12 | #endif /* end of include guard: TEXT_TRIM_H_5NIIFUM8 */ 13 | -------------------------------------------------------------------------------- /Frameworks/Find/src/FFFolderMenu.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface FFFolderMenu : NSObject 4 | + (void)addFolderMenuAtPath:(NSString*)path toMenuItem:(NSMenuItem*)item withOwner:(id)owner; 5 | @end 6 | 7 | @protocol FolderMenuDelegate 8 | - (void)userDidSelectFolder:(NSString*)folder inMenu:(NSMenu*)menu; 9 | @end 10 | -------------------------------------------------------------------------------- /Frameworks/Preferences/src/FilesPreferences.h: -------------------------------------------------------------------------------- 1 | #import "PreferencesPane.h" 2 | #import 3 | 4 | @interface FilesPreferences : PreferencesPane 5 | { 6 | IBOutlet NSPopUpButton* documentTypesPopUp; 7 | IBOutlet OakEncodingPopUpButton* encodingPopUp; 8 | IBOutlet NSMenu* documentTypesMenu; 9 | } 10 | @end 11 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakZoomingIcon.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface OakZoomingIcon : NSWindow 4 | { 5 | OBJC_WATCH_LEAKS(OakZoomingIcon); 6 | @private 7 | NSRect startFrame; 8 | NSDate* startTime; 9 | NSTimeInterval duration; 10 | NSTimer* animationTimer; 11 | } 12 | + (void)zoomIcon:(NSImage*)icon fromRect:(NSRect)aRect; 13 | @end 14 | -------------------------------------------------------------------------------- /Frameworks/io/src/swap_file_data.h: -------------------------------------------------------------------------------- 1 | #ifndef IO_SWAP_FILE_DATA_H_8EWSI2E5 2 | #define IO_SWAP_FILE_DATA_H_8EWSI2E5 3 | 4 | #include 5 | 6 | namespace path 7 | { 8 | PUBLIC bool swap_and_unlink (std::string const& src, std::string const& dst); 9 | 10 | } /* path */ 11 | 12 | #endif /* end of include guard: IO_SWAP_FILE_DATA_H_8EWSI2E5 */ 13 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakWindowFrameHelper.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface OakWindowFrameHelper : NSObject 4 | { 5 | OBJC_WATCH_LEAKS(OakWindowFrameHelper); 6 | 7 | NSWindow* window; 8 | NSString* autosaveName; 9 | Class windowDelegateClass; 10 | } 11 | + (OakWindowFrameHelper*)windowFrameHelperWithWindow:(NSWindow*)aWindow; 12 | @end 13 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/NSAlert Additions.mm: -------------------------------------------------------------------------------- 1 | #import "NSAlert Additions.h" 2 | 3 | @implementation NSAlert (Other) 4 | - (void)addButtons:(NSString*)firstTitle, ... 5 | { 6 | va_list ap; 7 | va_start(ap, firstTitle); 8 | do { 9 | [self addButtonWithTitle:firstTitle]; 10 | } while(firstTitle = va_arg(ap, NSString*)); 11 | va_end(ap); 12 | } 13 | @end 14 | -------------------------------------------------------------------------------- /Frameworks/authorization/src/server.h: -------------------------------------------------------------------------------- 1 | #ifndef AUTH_SERVER_H_G3FZ07F2 2 | #define AUTH_SERVER_H_G3FZ07F2 3 | 4 | #include "authorization.h" 5 | #include "connection.h" 6 | #include 7 | 8 | PUBLIC connection_t connect_to_auth_server (osx::authorization_t const& auth, bool retry = false); 9 | 10 | #endif /* end of include guard: AUTH_SERVER_H_G3FZ07F2 */ 11 | -------------------------------------------------------------------------------- /Frameworks/file/src/constants.h: -------------------------------------------------------------------------------- 1 | #ifndef FILE_CONSTANTS_H_M6UXWBQX 2 | #define FILE_CONSTANTS_H_M6UXWBQX 3 | 4 | extern std::string const kLF; 5 | extern std::string const kCR; 6 | extern std::string const kCRLF; 7 | extern std::string const kMIX; 8 | 9 | extern std::string const kFileTypePlainText; 10 | 11 | #endif /* end of include guard: FILE_CONSTANTS_H_M6UXWBQX */ 12 | -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/src/io/FSSCMDataSource.h: -------------------------------------------------------------------------------- 1 | #import "FSDataSource.h" 2 | #import 3 | 4 | @interface FSSCMDataSource : FSDataSource 5 | { 6 | NSUInteger options; 7 | 8 | scm::info_ptr scmInfo; 9 | scm::callback_t* scmCallback; 10 | } 11 | + (NSURL*)scmURLWithPath:(NSString*)aPath; 12 | - (id)initWithURL:(NSURL*)anURL options:(NSUInteger)someOptions; 13 | @end 14 | -------------------------------------------------------------------------------- /Frameworks/SoftwareUpdate/src/ReleaseNotesWindowController.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | @interface ReleaseNotesWindowController : NSWindowController 4 | { 5 | OBJC_WATCH_LEAKS(ReleaseNotesWindowController); 6 | 7 | IBOutlet WebView* webView; 8 | NSURL* releaseNotesURL; 9 | } 10 | + (void)showPath:(NSString*)aPath; 11 | + (void)showPathIfUpdated:(NSString*)aPath; 12 | @end 13 | -------------------------------------------------------------------------------- /Frameworks/bundles/src/menu.h: -------------------------------------------------------------------------------- 1 | #ifndef BUNDLES_MENU_H_7ZK5UHKQ 2 | #define BUNDLES_MENU_H_7ZK5UHKQ 3 | 4 | #include "index.h" 5 | #include 6 | 7 | namespace bundles 8 | { 9 | PUBLIC item_ptr show_menu_for_items (std::vector const& items, CGPoint const& pos); 10 | 11 | } /* bundles */ 12 | 13 | #endif /* end of include guard: BUNDLES_MENU_H_7ZK5UHKQ */ 14 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakSubmenuController.h: -------------------------------------------------------------------------------- 1 | @interface OakSubmenuController : NSObject 2 | { 3 | IBOutlet NSMenu* goToMenu; 4 | IBOutlet NSMenu* marksMenu; 5 | 6 | NSInteger tag; 7 | id representedObject; 8 | } 9 | + (OakSubmenuController*)sharedInstance; 10 | - (NSInteger)tagForSender:(id)aSender; 11 | - (id)representedObjectForSender:(id)aSender; 12 | @end 13 | -------------------------------------------------------------------------------- /Frameworks/OakFilterList/src/highlight_ranges.h: -------------------------------------------------------------------------------- 1 | extern NSString* const FLMatchingTextAttributeName; 2 | 3 | NSAttributedString* AttributedStringWithMarkedUpRanges (std::string const& string, std::vector< std::pair > const& ranges, size_t offset = 0); 4 | void HighlightRangesWithAttribute (NSMutableAttributedString* text, NSString* attribute, NSDictionary* highlightAttributes); 5 | -------------------------------------------------------------------------------- /Frameworks/text/src/classification.h: -------------------------------------------------------------------------------- 1 | #ifndef TEXT_CLASSIFICATION_H_A8ZZ9LQU 2 | #define TEXT_CLASSIFICATION_H_A8ZZ9LQU 3 | 4 | #include 5 | 6 | namespace text 7 | { 8 | PUBLIC bool is_word_char (std::string const& str); 9 | PUBLIC bool is_whitespace (std::string const& str); 10 | 11 | } /* text */ 12 | 13 | #endif /* end of include guard: TEXT_CLASSIFICATION_H_A8ZZ9LQU */ 14 | -------------------------------------------------------------------------------- /Frameworks/DocumentWindow/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.mm 2 | CP_Resources = resources/* 3 | LINK += command text authorization scm bundles cf Find HTMLOutputWindow io ns OakAppKit OakFileBrowser OakFilterList OakFoundation OakSystem OakTextView BundleEditor network 4 | EXPORT = src/DocumentController.h src/DocumentOpenHelper.h src/FileTypeDialog.h 5 | FRAMEWORKS = Cocoa 6 | -------------------------------------------------------------------------------- /Frameworks/OakFilterList/src/OakAbbreviations.h: -------------------------------------------------------------------------------- 1 | @interface OakAbbreviations : NSObject 2 | { 3 | @private 4 | NSString* name; 5 | NSMutableArray* bindings; 6 | } 7 | + (OakAbbreviations*)abbreviationsForName:(NSString*)aName; 8 | 9 | - (NSArray*)stringsForAbbreviation:(NSString*)anAbbreviation; 10 | - (void)learnAbbreviation:(NSString*)anAbbreviation forString:(NSString*)aString; 11 | @end 12 | -------------------------------------------------------------------------------- /Frameworks/OakFilterList/src/datasources/OakBundleItemCell.h: -------------------------------------------------------------------------------- 1 | @interface OakBundleItemCell : NSTextFieldCell 2 | { 3 | NSString* keyEquivalent; 4 | NSAttributedString* attributedTabTrigger; 5 | } 6 | @property (nonatomic, retain) NSString* keyEquivalent; 7 | @property (nonatomic, retain) NSString* tabTrigger; 8 | @property (nonatomic, retain) NSAttributedString* attributedTabTrigger; 9 | @end 10 | -------------------------------------------------------------------------------- /Frameworks/Preferences/src/GeneralPreferences.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface GeneralPreferences : NSViewController 4 | { 5 | } 6 | @property (nonatomic, readonly) NSString* identifier; 7 | @property (nonatomic, readonly) NSImage* toolbarItemImage; 8 | @property (nonatomic, readonly) NSString* toolbarItemLabel; 9 | @end 10 | -------------------------------------------------------------------------------- /Frameworks/io/src/resource.h: -------------------------------------------------------------------------------- 1 | #ifndef IO_RESOURCE_H_6LC0FV3L 2 | #define IO_RESOURCE_H_6LC0FV3L 3 | 4 | #include 5 | 6 | namespace path 7 | { 8 | PUBLIC bool is_text_clipping (std::string const& path); 9 | PUBLIC std::string resource (std::string const& path, ResType theType, ResID theID); 10 | 11 | } /* path */ 12 | 13 | #endif /* end of include guard: IO_RESOURCE_H_6LC0FV3L */ 14 | -------------------------------------------------------------------------------- /Frameworks/ns/src/to_dictionary.h: -------------------------------------------------------------------------------- 1 | #ifndef NS_PLIST_H_JY52POBO 2 | #define NS_PLIST_H_JY52POBO 3 | 4 | #include 5 | 6 | namespace ns 7 | { 8 | PUBLIC NSDictionary* to_dictionary (plist::any_t const& plist); 9 | PUBLIC NSMutableDictionary* to_mutable_dictionary (plist::any_t const& plist); 10 | 11 | } /* ns */ 12 | 13 | #endif /* end of include guard: NS_PLIST_H_JY52POBO */ 14 | -------------------------------------------------------------------------------- /Frameworks/text/src/classification.cc: -------------------------------------------------------------------------------- 1 | #include "classification.h" 2 | #include "ctype.h" 3 | #include "utf8.h" 4 | 5 | namespace text 6 | { 7 | bool is_word_char (std::string const& str) 8 | { 9 | return text::is_word_char(utf8::to_ch(str)); 10 | } 11 | 12 | bool is_whitespace (std::string const& str) 13 | { 14 | return text::is_space(utf8::to_ch(str)); 15 | } 16 | 17 | } /* text */ 18 | -------------------------------------------------------------------------------- /Frameworks/file/src/path_info.h: -------------------------------------------------------------------------------- 1 | #ifndef FILE_PATH_INFO_H_ZBW25L1B 2 | #define FILE_PATH_INFO_H_ZBW25L1B 3 | 4 | #include 5 | 6 | namespace file 7 | { 8 | PUBLIC std::string path_attributes (std::string const& path); 9 | std::map variables (std::string const& path); 10 | 11 | } /* file */ 12 | 13 | #endif /* end of include guard: FILE_PATH_INFO_H_ZBW25L1B */ 14 | -------------------------------------------------------------------------------- /Frameworks/io/src/pipe.cc: -------------------------------------------------------------------------------- 1 | #include "pipe.h" 2 | 3 | namespace io 4 | { 5 | void create_pipe (int& read_pipe, int& write_pipe, bool close_on_exec) 6 | { 7 | int pipes[2]; 8 | pipe(&pipes[0]); 9 | read_pipe = pipes[0]; 10 | write_pipe = pipes[1]; 11 | if(close_on_exec) 12 | { 13 | fcntl(pipes[0], F_SETFD, 1); 14 | fcntl(pipes[1], F_SETFD, 1); 15 | } 16 | } 17 | 18 | } /* io */ 19 | -------------------------------------------------------------------------------- /Applications/TextMate/src/TMPlugInController.h: -------------------------------------------------------------------------------- 1 | @interface TMPlugInController : NSObject 2 | { 3 | NSMutableArray* loadedPlugIns; 4 | NSMutableSet* plugInBundleIdentifiers; 5 | BOOL didLoadAllPlugIns; 6 | } 7 | + (TMPlugInController*)sharedInstance; 8 | - (void)loadAllPlugIns:(id)sender; 9 | - (void)loadPlugIn:(NSString*)aPath; 10 | // - (void)installPlugIn:(NSString*)aPath; 11 | - (float)version; 12 | @end 13 | -------------------------------------------------------------------------------- /Frameworks/HTMLOutput/src/browser/HOWebViewDelegateHelper.h: -------------------------------------------------------------------------------- 1 | @protocol HOWebViewDelegateHelperProtocol 2 | - (NSString*)statusText; 3 | - (void)setStatusText:(NSString*)text; 4 | @end 5 | 6 | @interface HOWebViewDelegateHelper : NSObject 7 | { 8 | id delegate; 9 | NSString* projectUUID; 10 | } 11 | @property (nonatomic, assign) id delegate; 12 | @property (nonatomic, retain) NSString* projectUUID; 13 | @end 14 | -------------------------------------------------------------------------------- /Frameworks/bundles/src/locations.h: -------------------------------------------------------------------------------- 1 | #ifndef BUNDLES_LOCATIONS_H_27A5BP94 2 | #define BUNDLES_LOCATIONS_H_27A5BP94 3 | 4 | #include 5 | 6 | namespace bundles 7 | { 8 | PUBLIC std::vector const& locations (); 9 | PUBLIC void set_locations (std::vector const& newLocations); 10 | 11 | } /* bundles */ 12 | 13 | #endif /* end of include guard: BUNDLES_LOCATIONS_H_27A5BP94 */ 14 | -------------------------------------------------------------------------------- /Frameworks/text/src/ranker.h: -------------------------------------------------------------------------------- 1 | #ifndef RANKER_KFO7JS5A 2 | #define RANKER_KFO7JS5A 3 | 4 | #include 5 | 6 | namespace oak 7 | { 8 | PUBLIC std::string normalize_filter (std::string const& filter); 9 | PUBLIC double rank (std::string const& filter, std::string const& candidate, std::vector< std::pair >* out = NULL); 10 | } 11 | 12 | #endif /* end of include guard: RANKER_KFO7JS5A */ 13 | -------------------------------------------------------------------------------- /Frameworks/layout/src/render.h: -------------------------------------------------------------------------------- 1 | #ifndef RENDER_H_V8XB081V 2 | #define RENDER_H_V8XB081V 3 | 4 | #include 5 | #include 6 | 7 | namespace render 8 | { 9 | void fill_rect (CGContextRef context, CGColorRef color, CGRect const& rect); 10 | void draw_spelling_dot (CGContextRef context, CGRect const& rect); 11 | 12 | } /* render */ 13 | 14 | #endif /* end of include guard: RENDER_H_V8XB081V */ 15 | -------------------------------------------------------------------------------- /Applications/TextMate/src/AppStartup.h: -------------------------------------------------------------------------------- 1 | @class AppController; 2 | 3 | @interface AppStartupController : NSObject 4 | { 5 | IBOutlet AppController* appController; 6 | 7 | NSAppleEventDescriptor* openEvent; 8 | NSArray* openDocumentsArray; 9 | BOOL disableSessionRestore; 10 | } 11 | @property (nonatomic, retain) NSAppleEventDescriptor* openEvent; 12 | @property (nonatomic, retain) NSArray* openDocumentsArray; 13 | @end 14 | -------------------------------------------------------------------------------- /Frameworks/OakFoundation/src/OakFoundation.mm: -------------------------------------------------------------------------------- 1 | #import "OakFoundation.h" 2 | 3 | NSNumber* const YES_obj = [[NSNumber alloc] initWithBool:YES]; 4 | NSNumber* const NO_obj = [[NSNumber alloc] initWithBool:NO]; 5 | 6 | BOOL NSIsEmptyString (NSString* str) 7 | { 8 | return !str || [str isEqualToString:@""]; 9 | } 10 | 11 | BOOL NSNotEmptyString (NSString* str) 12 | { 13 | return str && ![str isEqualToString:@""]; 14 | } 15 | -------------------------------------------------------------------------------- /Frameworks/text/src/case.h: -------------------------------------------------------------------------------- 1 | #ifndef TEXT_CASE_H_O81ZKTAF 2 | #define TEXT_CASE_H_O81ZKTAF 3 | 4 | #include 5 | 6 | namespace text 7 | { 8 | PUBLIC std::string uppercase (std::string const& str); 9 | PUBLIC std::string lowercase (std::string const& str); 10 | PUBLIC std::string opposite_case (std::string const& str); 11 | 12 | } /* text */ 13 | 14 | #endif /* end of include guard: TEXT_CASE_H_O81ZKTAF */ 15 | -------------------------------------------------------------------------------- /Frameworks/Find/src/FFFindWindow.h: -------------------------------------------------------------------------------- 1 | @interface FFFindWindow : NSPanel 2 | { 3 | IBOutlet NSView* collapsibleView; 4 | IBOutlet NSView* collapsibleViewPlaceholder; 5 | 6 | // Window resizing state 7 | BOOL isExpanded; 8 | NSSize shrinkedFindPanelSize; 9 | NSSize expandedFindPanelSize; 10 | CGFloat maxContentHeight; 11 | 12 | NSViewAnimation* resizeAnimation; 13 | } 14 | @property (nonatomic, assign) BOOL isExpanded; 15 | @end 16 | -------------------------------------------------------------------------------- /Frameworks/HTMLOutput/src/OakHTMLOutputView.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "browser/HOBrowserView.h" 3 | 4 | @class HOAutoScroll; 5 | 6 | @interface OakHTMLOutputView : HOBrowserView 7 | { 8 | HOAutoScroll* autoScrollHelper; 9 | std::map environment; 10 | BOOL runningCommand; 11 | } 12 | @property (nonatomic, readonly) BOOL runningCommand; 13 | @property (nonatomic, readonly) WebView* webView; 14 | @end 15 | -------------------------------------------------------------------------------- /Frameworks/network/src/tbz.h: -------------------------------------------------------------------------------- 1 | #ifndef NETWORK_TBZ_H_NEU56OWR 2 | #define NETWORK_TBZ_H_NEU56OWR 3 | 4 | #include 5 | 6 | namespace network 7 | { 8 | PUBLIC pid_t launch_tbz (std::string const& dest, int& input, int& output, std::string& error); 9 | PUBLIC bool finish_tbz (pid_t pid, int& input, int& output, std::string& error); 10 | 11 | } /* network */ 12 | 13 | #endif /* end of include guard: NETWORK_TBZ_H_NEU56OWR */ 14 | -------------------------------------------------------------------------------- /Frameworks/DocumentWindow/src/EncodingView.h: -------------------------------------------------------------------------------- 1 | @class OakEncodingPopUpButton; 2 | 3 | @interface EncodingViewController : NSViewController 4 | { 5 | IBOutlet OakEncodingPopUpButton* popUpButton; 6 | IBOutlet NSTextView* textView; 7 | 8 | char const* first; 9 | char const* last; 10 | } 11 | @property (nonatomic, readonly) NSString* currentEncoding; 12 | - (id)initWithFirst:(char const*)firstPointer last:(char const*)lastPointer; 13 | @end 14 | -------------------------------------------------------------------------------- /Frameworks/document/tests/t_save.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | class SaveTests : public CxxTest::TestSuite 5 | { 6 | public: 7 | void test_save () 8 | { 9 | test::jail_t jail; 10 | 11 | document::document_ptr doc = document::from_content("Æblegrød"); 12 | doc->set_path(jail.path("test.txt")); 13 | doc->save(); 14 | TS_ASSERT_EQUALS(path::content(jail.path("test.txt")), "Æblegrød"); 15 | } 16 | }; 17 | -------------------------------------------------------------------------------- /Frameworks/plist/src/delta.h: -------------------------------------------------------------------------------- 1 | #ifndef PLIST_DELTA_H_10G60Z84 2 | #define PLIST_DELTA_H_10G60Z84 3 | 4 | #include "plist.h" 5 | #include 6 | 7 | namespace plist 8 | { 9 | PUBLIC dictionary_t create_delta (dictionary_t const& oldDict, dictionary_t const& newDict); 10 | PUBLIC dictionary_t merge_delta (std::vector const& plists); 11 | 12 | } /* plist */ 13 | 14 | #endif /* end of include guard: PLIST_DELTA_H_10G60Z84 */ 15 | -------------------------------------------------------------------------------- /Frameworks/BundleEditor/templates/Grammar.plist: -------------------------------------------------------------------------------- 1 | { fileTypes = ( src ); 2 | scopeName = 'source.untitled'; 3 | 4 | patterns = ( 5 | { name = 'keyword.control.untitled'; 6 | match = '\\b(if|while|for|return)\\b'; 7 | }, 8 | { name = 'string.quoted.double.untitled'; 9 | begin = '\"'; end = '\"'; 10 | patterns = ( 11 | { name = 'constant.character.escape.untitled'; 12 | match = '\\\\.'; 13 | } 14 | ); 15 | }, 16 | ); 17 | } 18 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakImageAndTextCell.h: -------------------------------------------------------------------------------- 1 | enum { 2 | OakImageAndTextCellHitImage = (1 << 10), 3 | OakImageAndTextCellHitText = (1 << 11), 4 | }; 5 | 6 | @interface OakImageAndTextCell : NSTextFieldCell 7 | { 8 | NSImage* image; 9 | } 10 | @property (nonatomic, retain) NSImage* image; 11 | - (NSRect)imageFrameWithFrame:(NSRect)aRect inControlView:(NSView*)aView; 12 | - (NSRect)textFrameWithFrame:(NSRect)aRect inControlView:(NSView*)aView; 13 | @end 14 | -------------------------------------------------------------------------------- /Frameworks/OakFoundation/src/NSString Additions.h: -------------------------------------------------------------------------------- 1 | @interface NSString (Path) 2 | + (NSString*)stringWithUTF8String:(char const*)aString length:(unsigned)aLength; 3 | + (NSString*)stringWithCxxString:(std::string const&)aString; 4 | - (NSString*)stringByDeletingPathExtensions; 5 | - (BOOL)existsAsPath; 6 | - (BOOL)isDirectory; 7 | @end 8 | 9 | @interface NSString (FinderSorting) 10 | - (NSComparisonResult)displayNameCompare:(NSString*)otherString; 11 | @end 12 | -------------------------------------------------------------------------------- /Frameworks/io/src/move_path.h: -------------------------------------------------------------------------------- 1 | #ifndef MOVE_PATH_H_PC1KPBCB 2 | #define MOVE_PATH_H_PC1KPBCB 3 | 4 | #include 5 | 6 | namespace path 7 | { 8 | PUBLIC bool copy (std::string const& src, std::string const& dst); 9 | PUBLIC bool move (std::string const& src, std::string const& dst, bool overwrite = false); 10 | PUBLIC bool remove (std::string const& path); 11 | 12 | } /* path */ 13 | 14 | #endif /* end of include guard: MOVE_PATH_H_PC1KPBCB */ 15 | -------------------------------------------------------------------------------- /Frameworks/updater/src/download.h: -------------------------------------------------------------------------------- 1 | #ifndef UPDATER_DOWNLOAD_H_842XT36M 2 | #define UPDATER_DOWNLOAD_H_842XT36M 3 | 4 | #include 5 | #include 6 | 7 | namespace bundles_db 8 | { 9 | key_chain_t key_chain (); 10 | std::string download_etag (std::string const& url, std::string* etag, double* progress, double min, double max); 11 | 12 | } /* bundles_db */ 13 | 14 | #endif /* end of include guard: UPDATER_DOWNLOAD_H_842XT36M */ 15 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakSavePanel.h: -------------------------------------------------------------------------------- 1 | @interface OakSavePanel : NSObject 2 | { 3 | id delegate; 4 | void* contextInfo; 5 | } 6 | + (void)showWithPath:(NSString*)aPathSuggestion directory:(NSString*)aDirectorySuggestion fowWindow:(NSWindow*)aWindow delegate:(id)aDelegate contextInfo:(void*)info; 7 | @end 8 | 9 | @interface NSObject (OakSavePanelDelegate) 10 | - (void)savePanelDidEnd:(OakSavePanel*)sheet path:(NSString*)aPath contextInfo:(void*)info; 11 | @end 12 | -------------------------------------------------------------------------------- /Frameworks/network/src/filter_etag.h: -------------------------------------------------------------------------------- 1 | #ifndef FILTER_ETAG_H_TKYP6FQQ 2 | #define FILTER_ETAG_H_TKYP6FQQ 3 | 4 | #include "download.h" // filter_t 5 | 6 | struct etag_t : filter_t 7 | { 8 | bool receive_header (std::string const& header, std::string const& value) 9 | { 10 | if(header == "etag") 11 | etag = value; 12 | return true; 13 | } 14 | 15 | std::string etag = NULL_STR; 16 | }; 17 | 18 | #endif /* end of include guard: FILTER_ETAG_H_TKYP6FQQ */ 19 | -------------------------------------------------------------------------------- /Frameworks/Find/src/FFFilePathCell.h: -------------------------------------------------------------------------------- 1 | @interface FFFilePathCell : NSCell 2 | { 3 | NSImage* icon; 4 | NSString* path; 5 | NSString* base; 6 | NSUInteger count; 7 | BOOL mouseDownInIcon; 8 | } 9 | @property (nonatomic, retain) NSImage* icon; 10 | @property (nonatomic, retain) NSString* path; 11 | @property (nonatomic, retain) NSString* base; 12 | @property (nonatomic, assign) NSUInteger count; 13 | 14 | - (NSRect)iconFrameInCellFrame:(NSRect)cellFrame; 15 | @end 16 | -------------------------------------------------------------------------------- /Frameworks/file/src/type.h: -------------------------------------------------------------------------------- 1 | #ifndef FILE_TYPE_H_2Z10CFJ1 2 | #define FILE_TYPE_H_2Z10CFJ1 3 | 4 | #include "bytes.h" 5 | #include 6 | 7 | namespace file 8 | { 9 | PUBLIC std::string type (std::string const& path, io::bytes_ptr const& bytes, std::string const& virtualPath = NULL_STR); 10 | PUBLIC void set_type (std::string const& path, std::string const& fileType); 11 | 12 | } /* file */ 13 | 14 | #endif /* end of include guard: FILE_TYPE_H_2Z10CFJ1 */ 15 | -------------------------------------------------------------------------------- /Frameworks/Preferences/src/SoftwareUpdatePreferences.h: -------------------------------------------------------------------------------- 1 | #import "PreferencesPane.h" 2 | 3 | @interface SoftwareUpdatePreferences : PreferencesPane 4 | { 5 | NSString* lastCheck; 6 | NSTimer* updateLastCheckTimer; 7 | 8 | BOOL isChecking; 9 | NSDate* lastPoll; 10 | NSString* errorString; 11 | } 12 | @property (nonatomic, readonly) NSString* lastCheck; 13 | @property (nonatomic, readonly) BOOL isChecking; 14 | 15 | - (IBAction)performSoftwareUpdateCheck:(id)sender; 16 | @end 17 | -------------------------------------------------------------------------------- /Frameworks/network/src/network.h: -------------------------------------------------------------------------------- 1 | #ifndef NETWORK_H_L3XXH7J6 2 | #define NETWORK_H_L3XXH7J6 3 | 4 | #include "constants.h" 5 | #include "download.h" 6 | #include "filter_save.h" 7 | #include "filter_tbz.h" 8 | #include "filter_check_signature.h" 9 | #include "filter_etag.h" 10 | #include 11 | 12 | namespace network 13 | { 14 | PUBLIC bool can_reach_host (char const* host); 15 | 16 | } /* network */ 17 | 18 | #endif /* end of include guard: NETWORK_H_L3XXH7J6 */ 19 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/NSImage Additions.h: -------------------------------------------------------------------------------- 1 | @interface NSImage (ImageFromBundle) 2 | + (NSImage*)imageNamed:(NSString*)aName inSameBundleAsClass:(id)anObject; 3 | + (NSImage*)imageWithCGImage:(CGImageRef)cgImage; 4 | 5 | - (void)drawAdjustedAtPoint:(NSPoint)aPoint fromRect:(NSRect)srcRect operation:(NSCompositingOperation)op fraction:(CGFloat)delta; 6 | - (void)drawAdjustedInRect:(NSRect)dstRect fromRect:(NSRect)srcRect operation:(NSCompositingOperation)op fraction:(CGFloat)delta; 7 | @end 8 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakView.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | PUBLIC extern NSUInteger const OakViewApplicationIsActiveMask; 4 | PUBLIC extern NSUInteger const OakViewWindowIsMainMask; 5 | PUBLIC extern NSUInteger const OakViewWindowIsKeyMask; 6 | PUBLIC extern NSUInteger const OakViewViewIsFirstResponderMask; 7 | 8 | @interface OakView : NSView 9 | { 10 | BOOL isFirstResponder; 11 | NSUInteger keyState; 12 | } 13 | @property (nonatomic, assign) NSUInteger keyState; 14 | @end 15 | -------------------------------------------------------------------------------- /Frameworks/Preferences/src/GeneralPreferences.mm: -------------------------------------------------------------------------------- 1 | #import "GeneralPreferences.h" 2 | 3 | @implementation GeneralPreferences 4 | - (id)init { return [super initWithNibName:@"GeneralPreferences" bundle:[NSBundle bundleForClass:[self class]]]; } 5 | - (NSString*)identifier { return @"General"; } 6 | - (NSImage*)toolbarItemImage { return [NSImage imageNamed:NSImageNamePreferencesGeneral]; } 7 | - (NSString*)toolbarItemLabel { return @"General"; } 8 | @end 9 | -------------------------------------------------------------------------------- /Frameworks/HTMLOutputWindow/src/HTMLOutputWindow.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | 5 | @interface HTMLOutputWindowController : NSObject 6 | { 7 | OBJC_WATCH_LEAKS(HTMLOutputWindowController); 8 | 9 | NSWindow* window; 10 | OakHTMLOutputView* htmlOutputView; 11 | command::runner_ptr runner; 12 | } 13 | + (HTMLOutputWindowController*)HTMLOutputWindowWithRunner:(command::runner_ptr const&)aRunner; 14 | @end 15 | -------------------------------------------------------------------------------- /Frameworks/ns/src/ns.h: -------------------------------------------------------------------------------- 1 | #ifndef NS_H_SEBJ2BBY 2 | #define NS_H_SEBJ2BBY 3 | 4 | #include 5 | #include "event.h" 6 | #include "to_dictionary.h" 7 | 8 | PUBLIC std::string to_s (NSString* aString); 9 | PUBLIC std::string to_s (NSData* aString); 10 | PUBLIC std::string to_s (NSEvent* anEvent); 11 | 12 | namespace ns 13 | { 14 | PUBLIC std::string create_event_string (NSString* key, NSUInteger flags); 15 | 16 | } /* ns */ 17 | 18 | #endif /* end of include guard: NS_H_SEBJ2BBY */ 19 | -------------------------------------------------------------------------------- /Frameworks/HTMLOutput/src/browser/HOBrowserView.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class HOStatusBar; 4 | @class HOWebViewDelegateHelper; 5 | 6 | @interface HOBrowserView : NSView 7 | { 8 | OBJC_WATCH_LEAKS(HOBrowserView); 9 | WebView* webView; 10 | HOStatusBar* statusBar; 11 | HOWebViewDelegateHelper* webViewDelegateHelper; 12 | } 13 | @property (nonatomic, readonly) WebView* webView; 14 | @property (nonatomic, retain) NSString* projectUUID; 15 | - (void)setUpdatesProgress:(BOOL)flag; 16 | @end 17 | -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/src/ui/OFBOutlineView.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @protocol OFBOutlineViewMenuDelegate; 4 | 5 | @interface OFBOutlineView : NSOutlineView 6 | { 7 | OBJC_WATCH_LEAKS(OFBOutlineView); 8 | 9 | id menuDelegate; 10 | BOOL fieldEditorWasUp; 11 | NSRect mouseHoverRect; 12 | NSIndexSet* draggedRows; 13 | } 14 | @property (nonatomic, assign) id menuDelegate; 15 | - (void)performEditSelectedRow:(id)sender; 16 | @end 17 | -------------------------------------------------------------------------------- /Frameworks/BundleEditor/src/PropertiesViewController.h: -------------------------------------------------------------------------------- 1 | @class OakKeyEquivalentView; 2 | 3 | @interface PropertiesViewController : NSViewController 4 | { 5 | IBOutlet NSObjectController* objectController; 6 | IBOutlet NSView* alignmentView; 7 | IBOutlet OakKeyEquivalentView* keyEquivalentView; 8 | NSMutableDictionary* properties; 9 | } 10 | - (id)initWithName:(NSString*)aName; 11 | @property (nonatomic, retain) NSMutableDictionary* properties; 12 | @property (nonatomic, readonly) CGFloat indent; 13 | @end 14 | -------------------------------------------------------------------------------- /Frameworks/ns/src/event.h: -------------------------------------------------------------------------------- 1 | #ifndef NS_EVENT_H_KLE3JJCO 2 | #define NS_EVENT_H_KLE3JJCO 3 | 4 | #include 5 | 6 | namespace ns 7 | { 8 | PUBLIC std::string normalize_event_string (std::string const& eventString, size_t* startOfKey = NULL); 9 | PUBLIC std::string glyphs_for_event_string (std::string const& eventString, size_t* startOfKey = NULL); 10 | PUBLIC std::string glyphs_for_flags (NSUInteger flags); 11 | 12 | } /* ns */ 13 | 14 | #endif /* end of include guard: NS_EVENT_H_KLE3JJCO */ 15 | -------------------------------------------------------------------------------- /Frameworks/regexp/target: -------------------------------------------------------------------------------- 1 | TEST_SOURCES = tests/*.cc 2 | SOURCES = "{src/*.{c,cc},onig-latest/{enc/{ascii,euc_jp,iso8859_1,sjis,unicode,utf*},{reg*,st}}.c}" 3 | LINK += text cf 4 | EXPORT = src/{find,format_string,parser_fwd,regexp,snippet,glob,indent}.h onig-latest/oniguruma.h 5 | LIBS = iconv 6 | 7 | FLAGS += -IFrameworks/regexp/onig-latest 8 | C_FLAGS += -Wno-pointer-sign -Wno-char-subscripts -Wno-conversion -Wno-error 9 | C_FLAGS += -Wno-incompatible-pointer-types 10 | -------------------------------------------------------------------------------- /Frameworks/text/src/encode.cc: -------------------------------------------------------------------------------- 1 | #include "encode.h" 2 | #include "format.h" 3 | 4 | namespace encode 5 | { 6 | std::string url_part (std::string const& src, std::string const& excl) 7 | { 8 | std::string res = ""; 9 | iterate(ch, src) 10 | { 11 | if(strchr("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.!~*'()", *ch) || excl.find(*ch) != std::string::npos) 12 | res += *ch; 13 | else res += text::format("%%%02X", *ch); 14 | } 15 | return res; 16 | } 17 | 18 | } /* encode */ -------------------------------------------------------------------------------- /Frameworks/text/tests/t_case.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace text; 4 | 5 | class CaseTests : public CxxTest::TestSuite 6 | { 7 | public: 8 | void test_upcase () 9 | { 10 | TS_ASSERT_EQUALS(uppercase("æbleGRØD"), "ÆBLEGRØD"); 11 | } 12 | 13 | void test_downcase () 14 | { 15 | TS_ASSERT_EQUALS(lowercase("æbleGRØD"), "æblegrød"); 16 | } 17 | 18 | void test_togglecase () 19 | { 20 | TS_ASSERT_EQUALS(opposite_case("Den Grønne æbleGRØD"), "dEN gRØNNE ÆBLEgrød"); 21 | } 22 | }; 23 | -------------------------------------------------------------------------------- /Frameworks/text/src/decode.h: -------------------------------------------------------------------------------- 1 | #ifndef DECODE_H_53UK6QRW 2 | #define DECODE_H_53UK6QRW 3 | 4 | #include 5 | 6 | namespace decode 7 | { 8 | PUBLIC std::string base32 (std::string const& src); 9 | PUBLIC std::string base64 (std::string const& src); 10 | PUBLIC std::string rot13 (std::string src); 11 | PUBLIC std::string entities (std::string const& src); 12 | PUBLIC std::string url_part (std::string const& src); 13 | 14 | } /* decode */ 15 | 16 | #endif /* end of include guard: DECODE_H_53UK6QRW */ 17 | -------------------------------------------------------------------------------- /Frameworks/OakSystem/src/reader.h: -------------------------------------------------------------------------------- 1 | #ifndef IO_READER_H_EX4Z6E26 2 | #define IO_READER_H_EX4Z6E26 3 | 4 | #include 5 | 6 | namespace io 7 | { 8 | struct PUBLIC reader_t 9 | { 10 | reader_t (int fd = -1); 11 | virtual ~reader_t (); 12 | void set_fd (int fd); 13 | virtual void receive_data (char const* bytes, size_t len) = 0; 14 | 15 | protected: 16 | int fd; 17 | private: 18 | size_t client_key; 19 | }; 20 | 21 | } /* oak */ 22 | 23 | #endif /* end of include guard: IO_READER_H_EX4Z6E26 */ 24 | -------------------------------------------------------------------------------- /Frameworks/scm/src/server.h: -------------------------------------------------------------------------------- 1 | #ifndef SCM_SERVER_H_BND4Y51 2 | #define SCM_SERVER_H_BND4Y51 3 | 4 | #include "snapshot.h" 5 | #include "scm.h" 6 | #include 7 | 8 | namespace scm 9 | { 10 | PUBLIC void background_status (std::string const& path, driver_t const* driver, oak::date_t const& updated, fs::snapshot_t const& snapshot, void(*callback)(bool, std::string const&, fs::snapshot_t const&, scm::status_map_t const&)); 11 | 12 | } /* scm */ 13 | 14 | #endif /* end of include guard: SCM_SERVER_H_BND4Y51 */ 15 | -------------------------------------------------------------------------------- /Shared/include/oak/misc.h: -------------------------------------------------------------------------------- 1 | #ifndef OAK_MISC_H_35H67VAO 2 | #define OAK_MISC_H_35H67VAO 3 | 4 | #ifndef PUBLIC 5 | #define PUBLIC __attribute__((__visibility__("default"))) 6 | #endif 7 | 8 | #ifndef sizeofA 9 | #define sizeofA(a) (sizeof(a)/sizeof(a[0])) 10 | #endif 11 | 12 | #ifndef SQ 13 | #define SQ(x) ((x)*(x)) 14 | #endif 15 | 16 | #ifndef STRINGIFY 17 | #define xSTRINGIFY(number) #number 18 | #define STRINGIFY(number) xSTRINGIFY(number) 19 | #endif 20 | 21 | #endif /* end of include guard: OAK_MISC_H_35H67VAO */ 22 | -------------------------------------------------------------------------------- /Frameworks/Find/src/FFFindResultsContainerView.mm: -------------------------------------------------------------------------------- 1 | @interface FFFindResultsContainerView : NSView 2 | { 3 | NSView* header; 4 | NSView* list; 5 | } 6 | @end 7 | 8 | @implementation FFFindResultsContainerView 9 | - (void)setFrame:(NSRect)frame 10 | { 11 | [super setFrame:frame]; 12 | [header setFrame:NSMakeRect(0, frame.size.height - header.frame.size.height, frame.size.width, header.frame.size.height)]; 13 | [list setFrame:NSMakeRect(0, 0, frame.size.width, frame.size.height - header.frame.size.height+1)]; 14 | } 15 | @end 16 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakBorderlessPanel.mm: -------------------------------------------------------------------------------- 1 | #import "OakBorderlessPanel.h" 2 | 3 | @implementation OakBorderlessPanel 4 | - (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag 5 | { 6 | styleMask |= NSBorderlessWindowMask; 7 | styleMask &= ~NSTitledWindowMask; 8 | return [super initWithContentRect:contentRect styleMask:styleMask backing:backingType defer:flag]; 9 | } 10 | 11 | - (BOOL)isKeyWindow 12 | { 13 | return YES; 14 | } 15 | @end 16 | -------------------------------------------------------------------------------- /Frameworks/regexp/src/parser_base.h: -------------------------------------------------------------------------------- 1 | #ifndef PARSER_BASE_H_ELAFLOAQ 2 | #define PARSER_BASE_H_ELAFLOAQ 3 | 4 | struct parser_base_t 5 | { 6 | parser_base_t (std::string const& str); 7 | 8 | bool parse_char (char const* ch); 9 | bool parse_chars (char const* chars, std::string& res); 10 | bool parse_int (size_t& res); 11 | bool parse_until (char const* stopChars, std::string& res); 12 | 13 | protected: 14 | char const* it; 15 | char const* last; 16 | }; 17 | 18 | #endif /* end of include guard: PARSER_BASE_H_ELAFLOAQ */ 19 | -------------------------------------------------------------------------------- /Applications/TextMate/resources/English.lproj/TextMate Help/load_encoding.md: -------------------------------------------------------------------------------- 1 | # Encodings 2 | 3 | TextMate will do a few tests against your file: 4 | 5 | 1. Does it have an UTF-8/16/32 BE/LE BOM? 6 | _Do not take this to mean that UTF-8 BOMs are fine!_ 7 | 2. Does it have a `com.apple.TextEncoding` extended attribute? 8 | 3. Does it have an `encoding` setting via `.tm_properties`? 9 | 4. Is it valid ASCII/UTF-8? 10 | 11 | If all of these tests fail, it will ask you to pick the proper encoding. 12 | -------------------------------------------------------------------------------- /Frameworks/OakDebug/src/OakDebug.h: -------------------------------------------------------------------------------- 1 | #ifndef OAKDEBUG_H 2 | #define OAKDEBUG_H 3 | 4 | #ifndef PUBLIC 5 | #define PUBLIC __attribute__((__visibility__("default"))) 6 | #endif 7 | 8 | #ifdef OakDebug_EXPORTS 9 | #undef NDEBUG 10 | #endif 11 | 12 | #include "OakAssert.h" 13 | #include "OakDebugLog.h" 14 | #include "OakWatchLeaks.h" 15 | #include "OakBenchmark.h" 16 | 17 | #ifndef NDEBUG 18 | #define DB(code) code 19 | #define DB_VAR 20 | #else 21 | #define DB(code) 22 | #define DB_VAR __attribute__ ((unused)) 23 | #endif 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakImage.h: -------------------------------------------------------------------------------- 1 | @interface OakImage : NSImage 2 | { 3 | NSImage* base; 4 | NSImage* badge; 5 | CGRectEdge edge; 6 | } 7 | @property (nonatomic, retain) NSImage* base; 8 | @property (nonatomic, retain) NSImage* badge; 9 | @property (nonatomic, assign) CGRectEdge edge; 10 | 11 | + (OakImage*)imageWithBase:(NSImage*)imageBase; 12 | + (OakImage*)imageWithBase:(NSImage*)imageBase badge:(NSImage*)badgeImage; 13 | + (OakImage*)imageWithBase:(NSImage*)imageBase badge:(NSImage*)badgeImage edge:(CGRectEdge)badgeEdge; 14 | @end 15 | -------------------------------------------------------------------------------- /Frameworks/file/src/status.h: -------------------------------------------------------------------------------- 1 | #ifndef FILE_STATUS_H_CIXQCEQO 2 | #define FILE_STATUS_H_CIXQCEQO 3 | 4 | #include 5 | 6 | enum file_status_t 7 | { 8 | kFileTestWritable, 9 | kFileTestWritableByRoot, 10 | kFileTestNotWritable, 11 | kFileTestNotWritableButOwner, 12 | kFileTestNoParent, 13 | kFileTestReadOnly, 14 | kFileTestUnhandled, 15 | }; 16 | 17 | namespace file 18 | { 19 | PUBLIC file_status_t status (std::string const& path); 20 | 21 | } /* file */ 22 | 23 | #endif /* end of include guard: FILE_STATUS_H_CIXQCEQO */ 24 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakFinderLabelChooser.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface OakFinderLabelChooser : NSView 4 | { 5 | OBJC_WATCH_LEAKS(OakFinderLabelChooser); 6 | 7 | NSInteger selectedIndex; 8 | NSInteger highlightedIndex; 9 | NSMutableArray* labelNames; 10 | 11 | BOOL enabled; 12 | id target; 13 | SEL action; 14 | } 15 | @property (nonatomic, assign) BOOL enabled; 16 | @property (nonatomic, assign) id target; 17 | @property (nonatomic, assign) SEL action; 18 | @property (nonatomic, assign) NSInteger selectedIndex; 19 | @end 20 | -------------------------------------------------------------------------------- /Frameworks/text/src/trim.cc: -------------------------------------------------------------------------------- 1 | #include "trim.h" 2 | 3 | namespace text 4 | { 5 | std::string trim (std::string const& str, std::string const& trimChars) 6 | { 7 | std::string::size_type first = str.find_first_not_of(trimChars); 8 | std::string::size_type last = str.find_last_not_of(trimChars); 9 | if(first == std::string::npos) 10 | first = str.size(); 11 | if(last == std::string::npos) 12 | last = str.size(); 13 | else ++last; 14 | return first <= last ? str.substr(first, last - first) : ""; 15 | } 16 | 17 | } /* text */ 18 | -------------------------------------------------------------------------------- /Frameworks/network/src/download_tbz.h: -------------------------------------------------------------------------------- 1 | #ifndef NETWORK_DOWNLOAD_TBZ_H_MYCOASC1 2 | #define NETWORK_DOWNLOAD_TBZ_H_MYCOASC1 3 | 4 | #include "key_chain.h" 5 | #include 6 | 7 | namespace network 8 | { 9 | PUBLIC std::string download_tbz (std::string const& url, key_chain_t const& keyChain, std::string const& destination, std::string& error, double* progress, double progressStart = 0, double progressStop = 1, bool const* stopFlag = NULL); 10 | 11 | } /* network */ 12 | 13 | #endif /* end of include guard: NETWORK_DOWNLOAD_TBZ_H_MYCOASC1 */ 14 | -------------------------------------------------------------------------------- /Applications/TextMate/src/Favorites.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @class FavoritesViewController; 5 | 6 | @interface FavoritesDataSource : NSObject 7 | { 8 | OBJC_WATCH_LEAKS(FavoritesDataSource); 9 | std::string favoritesPath; 10 | std::multimap favorites; 11 | std::string filterString; 12 | FavoritesViewController* viewController; 13 | } 14 | + (FavoritesDataSource*)favoritesDataSource; 15 | @property (nonatomic, readonly) NSString* filterString; 16 | @end 17 | -------------------------------------------------------------------------------- /Frameworks/document/src/watch.h: -------------------------------------------------------------------------------- 1 | #ifndef IO_WATCH_H_T0171LAJ 2 | #define IO_WATCH_H_T0171LAJ 3 | 4 | #include 5 | 6 | #ifndef NOTE_CREATE 7 | #define NOTE_CREATE (NOTE_REVOKE << 1) 8 | #endif 9 | 10 | namespace document 11 | { 12 | struct PUBLIC watch_base_t 13 | { 14 | watch_base_t (std::string const& path); 15 | virtual ~watch_base_t (); 16 | virtual void callback (int flags, std::string const& newPath); 17 | 18 | private: 19 | size_t client_id; 20 | }; 21 | 22 | } /* document */ 23 | 24 | #endif /* end of include guard: IO_WATCH_H_T0171LAJ */ 25 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakKeyEquivalentView.h: -------------------------------------------------------------------------------- 1 | #import "OakView.h" 2 | 3 | @interface OakKeyEquivalentView : OakView 4 | { 5 | NSString* eventString; 6 | NSString* displayString; 7 | NSMutableArray* observers; 8 | NSRect clearButtonRect; 9 | void* hotkeyToken; 10 | BOOL disableGlobalHotkeys; 11 | BOOL showClearButton; 12 | BOOL mouseInClearButton; 13 | BOOL recording; 14 | BOOL mouseDown; 15 | } 16 | @property (nonatomic, retain) NSString* eventString; 17 | @property (nonatomic, assign) BOOL disableGlobalHotkeys; 18 | @property (nonatomic, assign) BOOL recording; 19 | @end 20 | -------------------------------------------------------------------------------- /Frameworks/scope/src/parse.h: -------------------------------------------------------------------------------- 1 | #ifndef SCOPE_PARSE_H_MMVW7L5U 2 | #define SCOPE_PARSE_H_MMVW7L5U 3 | 4 | #include "types.h" 5 | 6 | namespace scope 7 | { 8 | namespace parse 9 | { 10 | char const* scope (char const* first, char const* last, scope::types::scope_t& scope); 11 | char const* path (char const* first, char const* last, scope::types::path_t& path); 12 | char const* selector (char const* first, char const* last, scope::types::selector_t& selector); 13 | 14 | } /* parse */ 15 | 16 | } /* scope */ 17 | 18 | #endif /* end of include guard: SCOPE_PARSE_H_MMVW7L5U */ 19 | -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/src/io/FSDirectoryDataSource.h: -------------------------------------------------------------------------------- 1 | #import "FSDataSource.h" 2 | #import 3 | #import 4 | #import 5 | 6 | @interface FSDirectoryDataSource : FSDataSource 7 | { 8 | NSUInteger dataSourceOptions; 9 | 10 | fs::event_callback_t* callback; 11 | std::map< std::string, objc_ptr > visible; 12 | 13 | scm::callback_t* scmCallback; 14 | std::map scmDrivers; 15 | std::map scmReferenceCounts; 16 | } 17 | - (id)initWithURL:(NSURL*)anURL options:(NSUInteger)someOptions; 18 | @end 19 | -------------------------------------------------------------------------------- /Frameworks/parse/src/parse.h: -------------------------------------------------------------------------------- 1 | #ifndef GRAMMAR_TYPES_H_4M8CRK03 2 | #define GRAMMAR_TYPES_H_4M8CRK03 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | namespace parse 9 | { 10 | struct stack_t; 11 | typedef std::tr1::shared_ptr stack_ptr; 12 | 13 | PUBLIC stack_ptr parse (char const* first, char const* last, stack_ptr stack, std::map& scopes, bool firstLine, size_t i = 0); 14 | PUBLIC bool equal (stack_ptr lhs, stack_ptr rhs); 15 | 16 | } /* parse */ 17 | 18 | #endif /* end of include guard: GRAMMAR_TYPES_H_4M8CRK03 */ 19 | -------------------------------------------------------------------------------- /Frameworks/document/tests/t_inode.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | class InodeTests : public CxxTest::TestSuite 5 | { 6 | public: 7 | void test_inode () 8 | { 9 | test::jail_t jail; 10 | jail.touch("file_1.txt"); 11 | 12 | document::document_ptr doc_1 = document::create(jail.path("file_1.txt")); 13 | path::move(jail.path("file_1.txt"), jail.path("file_2.txt")); 14 | document::document_ptr doc_2 = document::create(jail.path("file_2.txt")); 15 | TS_ASSERT(*doc_1 == *doc_2); 16 | TS_ASSERT_EQUALS(path::name(doc_2->path()), "file_2.txt"); 17 | } 18 | }; 19 | -------------------------------------------------------------------------------- /Frameworks/editor/src/write.h: -------------------------------------------------------------------------------- 1 | #ifndef NG_WRITE_H_N8L9UVMF 2 | #define NG_WRITE_H_N8L9UVMF 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | namespace ng 9 | { 10 | PUBLIC text::range_t write_unit_to_fd (buffer_t const& buffer, range_t const& ranges, size_t tabSize, int fd, input::type unit, input::type fallbackUnit, input_format::type format, scope::selector_t const& scopeSelector, std::map& variables, bool* inputWasSelection); 11 | 12 | } /* ng */ 13 | 14 | #endif /* end of include guard: NG_WRITE_H_N8L9UVMF */ 15 | -------------------------------------------------------------------------------- /Frameworks/scm/src/drivers/p4.cc: -------------------------------------------------------------------------------- 1 | #include "api.h" 2 | #include 3 | 4 | OAK_DEBUG_VAR(SCM_Perforce); 5 | 6 | namespace scm 7 | { 8 | struct p4_driver_t : driver_t 9 | { 10 | p4_driver_t () : driver_t("p4", "%s/.p4config") { } 11 | 12 | std::string branch_name (std::string const& wcPath) const 13 | { 14 | return NULL_STR; 15 | } 16 | 17 | status_map_t status (std::string const& wcPath) const 18 | { 19 | D(DBF_SCM_Perforce, bug("%s\n", wcPath.c_str());); 20 | return status_map_t(); 21 | } 22 | }; 23 | 24 | driver_t* p4_driver () { return new p4_driver_t; } 25 | } 26 | -------------------------------------------------------------------------------- /Frameworks/HTMLOutput/resources/error_not_found.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | File Not Found 7 | 8 | 9 | 10 |

File Not Found

11 | 12 |

The requested file was not found:

18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakPasteboardSelector.h: -------------------------------------------------------------------------------- 1 | @class OakPasteboardSelectorTableViewHelper; 2 | 3 | @interface OakPasteboardSelector : NSWindowController 4 | { 5 | @private 6 | IBOutlet NSTableView* tableView; 7 | OakPasteboardSelectorTableViewHelper* tableViewHelper; 8 | } 9 | + (OakPasteboardSelector*)sharedInstance; 10 | - (void)setIndex:(unsigned)index; 11 | - (void)setEntries:(NSArray*)entries; 12 | 13 | - (unsigned)showAtLocation:(NSPoint)aLocation; 14 | - (void)setWidth:(CGFloat)width; 15 | - (void)setPerformsActionOnSingleClick; 16 | - (BOOL)shouldSendAction; 17 | - (NSArray*)entries; 18 | @end 19 | -------------------------------------------------------------------------------- /Frameworks/document/src/session.cc: -------------------------------------------------------------------------------- 1 | #include "session.h" 2 | #include "collection.h" 3 | #include 4 | #include 5 | 6 | OAK_DEBUG_VAR(Session); 7 | 8 | namespace document 9 | { 10 | static void perform_session_backup (void* dummy) 11 | { 12 | D(DBF_Session, bug("\n");); 13 | save_session(true); 14 | } 15 | 16 | void schedule_session_backup () 17 | { 18 | static cf::timer_ptr SessionBackupTimer; 19 | 20 | D(DBF_Session, bug("\n");); 21 | SessionBackupTimer = cf::setup_timer(0.5, cf::create_callback(&perform_session_backup, NULL)); 22 | } 23 | 24 | } /* document */ -------------------------------------------------------------------------------- /Frameworks/text/tests/t_encode.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | class EncodeTests : public CxxTest::TestSuite 4 | { 5 | public: 6 | void test_url () 7 | { 8 | TS_ASSERT_EQUALS("http://host/" + encode::url_part("æblegrød.html"), "http://host/%C3%A6blegr%C3%B8d.html"); 9 | TS_ASSERT_EQUALS(encode::url_part("http://example?a=b&c=d"), "http%3A%2F%2Fexample%3Fa%3Db%26c%3Dd"); 10 | TS_ASSERT_EQUALS(encode::url_part("me@example.org"), "me%40example.org"); 11 | TS_ASSERT_EQUALS("file://localhost" + encode::url_part("/foo/bar/file name.txt", "/"), "file://localhost/foo/bar/file%20name.txt"); 12 | } 13 | }; 14 | -------------------------------------------------------------------------------- /Frameworks/authorization/src/constants.h: -------------------------------------------------------------------------------- 1 | #ifndef AUTH_CONSTANTS_H_7R7B65WN 2 | #define AUTH_CONSTANTS_H_7R7B65WN 3 | 4 | #define kAuthJobName "com.macromates.auth_server" 5 | #define kAuthToolPath "/Library/PrivilegedHelperTools/com.macromates.auth_server" 6 | #define kAuthSocketPath "/var/run/com.macromates.auth_server.sock" 7 | #define kAuthPlistPath "/Library/LaunchDaemons/com.macromates.auth_server.plist" 8 | #define kAuthRightName "com.macromates.textmate.openfile" 9 | #define kAuthServerMajor 3 10 | #define kAuthServerMinor 0 11 | 12 | #endif /* end of include guard: AUTH_CONSTANTS_H_7R7B65WN */ 13 | -------------------------------------------------------------------------------- /Frameworks/io/src/intermediate.h: -------------------------------------------------------------------------------- 1 | #ifndef INTERMEDIATE_H_LWU9YRUW 2 | #define INTERMEDIATE_H_LWU9YRUW 3 | 4 | #include 5 | 6 | namespace path 7 | { 8 | struct PUBLIC intermediate_t 9 | { 10 | intermediate_t (std::string const& dest); 11 | bool commit () const; 12 | 13 | operator std::string const& () const { return _intermediate; } 14 | operator char const* () const { return _intermediate.c_str(); } 15 | 16 | private: 17 | std::string _resolved; 18 | std::string _intermediate; 19 | }; 20 | 21 | } /* path */ 22 | 23 | #endif /* end of include guard: INTERMEDIATE_H_LWU9YRUW */ 24 | -------------------------------------------------------------------------------- /Frameworks/DocumentWindow/src/DocumentCommand.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCUMENT_COMMAND_H_KLPQDYHU 2 | #define DOCUMENT_COMMAND_H_KLPQDYHU 3 | 4 | #import 5 | #import 6 | #import 7 | 8 | void run (bundle_command_t const& command, ng::buffer_t const& buffer, ng::ranges_t const& selection, document::document_ptr document, std::map env, document::run_callback_ptr callback); 9 | void show_command_error (std::string const& message, oak::uuid_t const& uuid, NSWindow* window = nil); 10 | 11 | #endif /* end of include guard: DOCUMENT_COMMAND_H_KLPQDYHU */ 12 | -------------------------------------------------------------------------------- /Frameworks/plist/tests/t_date.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | class DateTests : public CxxTest::TestSuite 4 | { 5 | public: 6 | void test_date_value () 7 | { 8 | oak::date_t now = oak::date_t::now(); 9 | oak::date_t stillNow(now.time_value()); 10 | TS_ASSERT_DELTA(now.value(), stillNow.value(), 0.5); 11 | } 12 | 13 | void test_date_time_value () 14 | { 15 | oak::date_t now = oak::date_t(time(NULL)); 16 | oak::date_t stillNow(now.value()); 17 | TS_ASSERT_EQUALS(now.value(), stillNow.value()); 18 | 19 | stillNow = oak::date_t(to_s(now)); 20 | TS_ASSERT_EQUALS(now.value(), stillNow.value()); 21 | } 22 | }; 23 | -------------------------------------------------------------------------------- /Frameworks/OakFilterList/src/datasources/SymbolChooser.h: -------------------------------------------------------------------------------- 1 | #ifndef OakFilterList_EXPORTS 2 | #import 3 | #else 4 | #import "../OakFilterList.h" 5 | #endif 6 | #import 7 | 8 | @class SymbolChooserViewController; 9 | 10 | @interface SymbolChooser : NSObject 11 | { 12 | OBJC_WATCH_LEAKS(SymbolChooser); 13 | document::document_ptr document; 14 | std::string filterString; 15 | SymbolChooserViewController* viewController; 16 | } 17 | + (id)symbolChooserForDocument:(document::document_ptr)aDocument; 18 | @property (nonatomic, readonly) NSString* filterString; 19 | @end 20 | -------------------------------------------------------------------------------- /Frameworks/Preferences/src/VariablesPreferences.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface VariablesPreferences : NSViewController 4 | { 5 | IBOutlet NSTableView* variablesTableView; 6 | NSMutableArray* variables; 7 | BOOL canRemove; 8 | } 9 | @property (nonatomic, readonly) NSString* identifier; 10 | @property (nonatomic, readonly) NSImage* toolbarItemImage; 11 | @property (nonatomic, readonly) NSString* toolbarItemLabel; 12 | 13 | @property (nonatomic, assign) BOOL canRemove; 14 | 15 | - (IBAction)addVariable:(id)sender; 16 | - (IBAction)delete:(id)sender; 17 | @end 18 | -------------------------------------------------------------------------------- /Frameworks/cf/src/image.h: -------------------------------------------------------------------------------- 1 | #ifndef CF_IMAGE_H_KU6HL51 2 | #define CF_IMAGE_H_KU6HL51 3 | 4 | #include 5 | 6 | namespace cf 7 | { 8 | struct PUBLIC image_t 9 | { 10 | image_t (std::string const& path, std::string const& bundleId = NULL_STR); 11 | image_t () { } 12 | operator CGImageRef () const { return _value.get(); } 13 | EXPLICIT operator bool () const { return _value.get() ? true : false; } 14 | private: 15 | typedef std::tr1::shared_ptr CGImagePtr; 16 | CGImagePtr _value; 17 | }; 18 | 19 | } /* cf */ 20 | 21 | #endif /* end of include guard: CF_IMAGE_H_KU6HL51 */ 22 | -------------------------------------------------------------------------------- /Frameworks/scm/tests/t_fs_snapshot.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | class FsTreeTests : public CxxTest::TestSuite 5 | { 6 | public: 7 | void test_fs_tree () 8 | { 9 | std::string path = path::join(__FILE__, "../../../.."); 10 | TS_ASSERT_EQUALS(fs::snapshot_t(path), fs::snapshot_t(path)); 11 | 12 | test::jail_t jail; 13 | fs::snapshot_t jailSnapshot(jail.path()); 14 | TS_ASSERT_DIFFERS(jailSnapshot, fs::snapshot_t(path)); 15 | TS_ASSERT_EQUALS(jailSnapshot, fs::snapshot_t(jail.path())); 16 | jail.touch("foo"); 17 | TS_ASSERT_DIFFERS(jailSnapshot, fs::snapshot_t(jail.path())); 18 | } 19 | }; 20 | -------------------------------------------------------------------------------- /Applications/TextMate/resources/TextMate.scriptTerminology: -------------------------------------------------------------------------------- 1 | { 2 | Classes = { 3 | NSApplication = { 4 | Description = "TextMate's top-level object."; 5 | Name = application; 6 | PluralName = applications; 7 | }; 8 | }; 9 | Commands = { 10 | GetURL = { 11 | Description = "Open an URL"; 12 | Name = "get url"; 13 | UnnamedArgument = { Description = "url to open, should start with txmt://"; }; 14 | }; 15 | }; 16 | Description = "AppleScript commands and classes specific to TextMate."; 17 | Name = "TextMate suite"; 18 | } 19 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakFileIconImage.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface OakFileIconImage : NSImage 4 | { 5 | scm::info_ptr scmDriver; 6 | 7 | NSString* path; 8 | BOOL isModified; 9 | BOOL existsOnDisk; 10 | scm::status::type scmStatus; 11 | 12 | NSImage* base; 13 | NSImage* badge; 14 | } 15 | + (id)fileIconImageWithPath:(NSString*)aPath isModified:(BOOL)flag size:(NSSize)aSize; 16 | + (id)fileIconImageWithPath:(NSString*)aPath isModified:(BOOL)flag; 17 | + (id)fileIconImageWithPath:(NSString*)aPath size:(NSSize)aSize; 18 | @property (nonatomic, retain) NSString* path; 19 | @property (nonatomic, assign) BOOL isModified; 20 | @end 21 | -------------------------------------------------------------------------------- /Frameworks/OakDebug/Bundles/OakDebug.tmbundle/Snippets/OAK_DEBUG_VAR(…);.tmSnippet: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | content 6 | OAK_DEBUG_VAR(${TM_FILENAME/^(.*?)(\..+)?$/\u$1/}$1); 7 | name 8 | OAK_DEBUG_VAR(…); 9 | scope 10 | source.c++, source.objc++ 11 | tabTrigger 12 | V 13 | uuid 14 | BEE69D89-0541-420A-BEE1-82DF9C180BFE 15 | 16 | 17 | -------------------------------------------------------------------------------- /Frameworks/file/tests/t_type.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | class TypeTests : public CxxTest::TestSuite 6 | { 7 | public: 8 | void test_file_type () 9 | { 10 | test::jail_t jail; 11 | 12 | std::string const xmlPlist = jail.path("xml.plist"); 13 | TS_ASSERT(plist::save(xmlPlist, true, plist::kPlistFormatXML)); 14 | TS_ASSERT_EQUALS(file::type(xmlPlist, io::bytes_ptr(new io::bytes_t(path::content(xmlPlist)))), "source.xml.plist"); 15 | TS_ASSERT_EQUALS(file::type(jail.path("ascii.plist"), io::bytes_ptr(new io::bytes_t("{ foo = 'bar'; }"))), "source.plist"); 16 | } 17 | }; 18 | 19 | -------------------------------------------------------------------------------- /Frameworks/regexp/src/pthread.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | static pthread_mutex_t OnigMutex; 5 | 6 | void lock_mutex () { pthread_mutex_lock(&OnigMutex); } 7 | void unlock_mutex () { pthread_mutex_unlock(&OnigMutex); } 8 | 9 | __attribute__((constructor)) static void initializer() 10 | { 11 | pthread_mutexattr_t attr; 12 | pthread_mutexattr_init(&attr); 13 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); 14 | pthread_mutex_init(&OnigMutex, &attr); 15 | pthread_mutexattr_destroy(&attr); 16 | } 17 | 18 | __attribute__((destructor)) static void finalizer() 19 | { 20 | pthread_mutex_destroy(&OnigMutex); 21 | } 22 | -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- 1 | This program is free software: you can redistribute it and/or modify 2 | it under the terms of the GNU General Public License as published by 3 | the Free Software Foundation, either version 3 of the License, or 4 | (at your option) any later version. 5 | 6 | This program is distributed in the hope that it will be useful, 7 | but WITHOUT ANY WARRANTY; without even the implied warranty of 8 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 9 | GNU General Public License for more details. 10 | 11 | You should have received a copy of the GNU General Public License 12 | along with this program. If not, see . 13 | -------------------------------------------------------------------------------- /Frameworks/Preferences/src/TerminalPreferences.h: -------------------------------------------------------------------------------- 1 | #import "PreferencesPane.h" 2 | 3 | @interface TerminalPreferences : PreferencesPane 4 | { 5 | IBOutlet NSTextField* installStatusText; 6 | IBOutlet NSTextField* installSummaryText; 7 | IBOutlet NSPopUpButton* installPathPopUp; 8 | IBOutlet NSButton* installButton; 9 | NSImage* installIndicaitorImage; 10 | IBOutlet NSTextField* rmateSummaryText; 11 | 12 | std::string statusTextFormat; 13 | std::string summaryTextFormat; 14 | } 15 | @property (nonatomic, retain) NSImage* installIndicaitorImage; 16 | - (IBAction)performInstallMate:(id)sender; 17 | - (IBAction)performUninstallMate:(id)sender; 18 | @end 19 | -------------------------------------------------------------------------------- /Shared/PCH/prelude.m: -------------------------------------------------------------------------------- 1 | #ifndef PRELUDE_M_PCH_KZLXVFRT 2 | #define PRELUDE_M_PCH_KZLXVFRT 3 | 4 | #include "prelude.c" 5 | #include "prelude-mac.h" 6 | 7 | #import 8 | #import 9 | #import 10 | #import 11 | #import 12 | #import // this includes CoreAnimation (Cocoa classes), at least with the 10.4 SDK 13 | 14 | #if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4 15 | typedef int NSInteger; 16 | typedef unsigned int NSUInteger; 17 | #endif 18 | 19 | #endif /* end of include guard: PRELUDE_M_PCH_KZLXVFRT */ 20 | -------------------------------------------------------------------------------- /Applications/TextMate/target: -------------------------------------------------------------------------------- 1 | SOURCES = src/*.{cc,mm} 2 | CP_Resources = resources/* icons/*.icns @PrivilegedTool 3 | CP_SharedSupport = support/* 4 | CP_PlugIns = @Dialog @Dialog2 5 | FLAGS += -DREST_API='@"$rest_api"' 6 | LINK += bundles cf command document editor io network ns plist settings text 7 | LINK += BundleEditor BundlesManager CrashReporter DocumentWindow Find HTMLOutputWindow OakAppKit OakFilterList OakFoundation OakSystem OakTextView Preferences SoftwareUpdate 8 | FRAMEWORKS = Cocoa 9 | HTML_HEADER = templates/header.html 10 | HTML_FOOTER = templates/footer.html 11 | MARKDOWN_FOOTER = references.md 12 | -------------------------------------------------------------------------------- /Frameworks/HTMLOutput/src/helpers/HOJSBridge.h: -------------------------------------------------------------------------------- 1 | @protocol HOJSBridgeDelegate 2 | @property (nonatomic, assign) BOOL isBusy; 3 | @property (nonatomic, assign) double progress; 4 | @end 5 | 6 | @interface HOJSBridge : NSObject 7 | { 8 | id delegate; 9 | std::map environment; 10 | BOOL isBusy; // dummy key 11 | float progress; // dummy key 12 | } 13 | - (id)system:(NSString*)aCommand handler:(id)aHandler; 14 | - (void)log:(NSString*)aMessage; 15 | - (std::map const&)environment; 16 | - (void)setDelegate:(id)aDelegate; 17 | - (void)setEnvironment:(const std::map&)variables; 18 | @end 19 | -------------------------------------------------------------------------------- /Applications/TextMate/src/GetURLScriptCommand.mm: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | #import 5 | 6 | @interface GetURLScriptCommand : NSScriptCommand 7 | @end 8 | 9 | @implementation GetURLScriptCommand 10 | - (id)performDefaultImplementation 11 | { 12 | NSString* urlString = [self directParameter]; 13 | if([urlString hasPrefix:@"txmt:"] && ![urlString hasPrefix:@"txmt://"]) 14 | urlString = [@"txmt://" stringByAppendingString:[urlString substringFromIndex:5]]; 15 | [NSApp sendAction:@selector(handleTxMtURL:) to:nil from:[NSURL URLWithString:urlString]]; 16 | return nil; 17 | } 18 | @end 19 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/NSView Additions.mm: -------------------------------------------------------------------------------- 1 | #import "NSView Additions.h" 2 | 3 | @implementation NSView (PopupAddition) 4 | - (void)showMenu:(NSMenu*)menu inRect:(NSRect)rect withSelectedIndex:(NSInteger)index font:(NSFont*)font popup:(BOOL)isPopup 5 | { 6 | NSPopUpButtonCell* cell = [[[NSPopUpButtonCell alloc] init] autorelease]; 7 | [cell setPullsDown:!isPopup]; 8 | if(!isPopup) 9 | [menu insertItemWithTitle:@"dummy title item" action:NULL keyEquivalent:@"" atIndex:0]; 10 | [cell setFont:font]; 11 | [cell setAltersStateOfSelectedItem:NO]; 12 | [cell setMenu:menu]; 13 | [cell selectItemAtIndex:index]; 14 | [cell performClickWithFrame:rect inView:self]; 15 | } 16 | @end 17 | -------------------------------------------------------------------------------- /Shared/PCH/prelude-mac.h: -------------------------------------------------------------------------------- 1 | #ifndef PRELUDE_MAC_H_X1SR1JB2 2 | #define PRELUDE_MAC_H_X1SR1JB2 3 | 4 | #import "prelude.c" 5 | 6 | #if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4 7 | typedef float CGFloat; 8 | #endif 9 | 10 | #import 11 | #import 12 | #import 13 | #import 14 | #import 15 | #import 16 | #import 17 | 18 | #import 19 | #import 20 | #import 21 | 22 | #endif /* end of include guard: PRELUDE_MAC_H_X1SR1JB2 */ 23 | -------------------------------------------------------------------------------- /Frameworks/editor/tests/t_command.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | class CommandTests : public CxxTest::TestSuite 4 | { 5 | public: 6 | void test_replace_selection_command () 7 | { 8 | static std::string const plistSrc = 9 | "{ command = '#!/bin/sh\necho Hello';" 10 | " input = 'document';" 11 | " output = 'insertAsSnippet';" 12 | "}"; 13 | 14 | ng::buffer_t buf; 15 | ng::editor_t editor(buf); 16 | editor.insert("to be replaced"); 17 | editor.perform(ng::kSelectAll); 18 | editor.execute_dispatch(boost::get(plist::parse(plistSrc)), std::map()); 19 | // TS_ASSERT_EQUALS(editor.as_string(), "Hello\n"); 20 | } 21 | }; 22 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakToolTip.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface OakToolTip : NSWindow 5 | { 6 | OBJC_WATCH_LEAKS(OakToolTip); 7 | 8 | NSTextField* field; 9 | NSTimer* animationTimer; 10 | NSDate* animationStart; 11 | 12 | NSDate* didOpenAtDate; // ignore mouse moves for the next second 13 | NSPoint mousePositionWhenOpened; 14 | BOOL enforceMouseThreshold; 15 | } 16 | - (void)setEnforceMouseThreshold:(BOOL)flag; 17 | - (void)setFont:(NSFont*)aFont; 18 | - (void)setStringValue:(NSString*)aString; 19 | 20 | - (void)showAtLocation:(NSPoint)aPoint forScreen:(NSScreen*)aScreen; 21 | @end 22 | 23 | PUBLIC void OakShowToolTip (NSString* msg, NSPoint location); 24 | -------------------------------------------------------------------------------- /Applications/TextMate/resources/TextMate.scriptSuite: -------------------------------------------------------------------------------- 1 | { 2 | AppleEventCode = AviN; 3 | Classes = { 4 | NSApplication = { 5 | AppleEventCode = capp; 6 | Superclass = "NSCoreSuite.NSApplication"; 7 | }; 8 | }; 9 | Commands = { 10 | GetURL = { 11 | AppleEventClassCode = GURL; 12 | AppleEventCode = GURL; 13 | CommandClass = GetURLScriptCommand; 14 | Type = ""; 15 | UnnamedArgument = { 16 | Type = NSString; 17 | Optional = NO; 18 | }; 19 | }; 20 | }; 21 | Name = TextMate; 22 | UsedFeatures = (UnnamedArguments); 23 | } 24 | -------------------------------------------------------------------------------- /Frameworks/network/src/proxy.h: -------------------------------------------------------------------------------- 1 | #ifndef PROXY_H_S8ZWZPU8 2 | #define PROXY_H_S8ZWZPU8 3 | 4 | #include 5 | 6 | struct proxy_settings_t 7 | { 8 | proxy_settings_t (bool enabled = false, std::string const& server = NULL_STR, long port = 0, std::string const& user = NULL_STR, std::string const& password = NULL_STR) : enabled(enabled), server(server), port(port), user(user), password(password) { } 9 | EXPLICIT operator bool () const { return enabled; } 10 | 11 | bool enabled; 12 | std::string server; 13 | long port; 14 | std::string user; 15 | std::string password; 16 | }; 17 | 18 | PUBLIC proxy_settings_t get_proxy_settings (); 19 | 20 | #endif /* end of include guard: PROXY_H_S8ZWZPU8 */ 21 | -------------------------------------------------------------------------------- /Frameworks/selection/src/types.cc: -------------------------------------------------------------------------------- 1 | #include "types.h" 2 | #include 3 | 4 | namespace ng 5 | { 6 | std::string to_s (index_t const& index) 7 | { 8 | return index ? (index.carry ? text::format("%zu:%zu", index.index, index.carry) : text::format("%zu", index.index)) : "«undefined»"; 9 | } 10 | 11 | std::string to_s (range_t const& range) 12 | { 13 | return "[" + to_s(range.min()) + (range.empty() ? "" : "-" + to_s(range.max())) + "]"; 14 | } 15 | 16 | std::string to_s (ranges_t const& ranges) 17 | { 18 | std::vector v; 19 | iterate(range, ranges) 20 | v.push_back(to_s(*range)); 21 | return v.empty() ? "(empty)" : text::join(v, "&"); 22 | } 23 | 24 | } /* ng */ 25 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/NSWindow Additions.mm: -------------------------------------------------------------------------------- 1 | #import "NSWindow Additions.h" 2 | 3 | @interface NSWindow (Private) 4 | - (void)setBottomCornerRounded:(BOOL)flag; 5 | @end 6 | 7 | @implementation NSWindow (Other) 8 | - (void)toggleVisibility 9 | { 10 | if([self isVisible]) 11 | { 12 | [self makeFirstResponder:nil]; 13 | [self selectNextKeyView:self]; 14 | [self makeKeyAndOrderFront:self]; 15 | } 16 | else 17 | { 18 | [self makeFirstResponder:nil]; 19 | [self makeKeyAndOrderFront:self]; 20 | } 21 | } 22 | 23 | - (void)setPrivateBottomCornerRounded:(BOOL)flag 24 | { 25 | if([self respondsToSelector:@selector(setBottomCornerRounded:)]) 26 | [self setBottomCornerRounded:flag]; 27 | } 28 | @end 29 | -------------------------------------------------------------------------------- /Frameworks/Preferences/src/PreferencesPane.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface PreferencesPane : NSViewController 4 | { 5 | NSString* label; 6 | NSImage* image; 7 | NSDictionary* defaultsProperties; // property → defaults key 8 | } 9 | @property (nonatomic, readonly) NSString* identifier; 10 | @property (nonatomic, readonly) NSString* toolbarItemLabel; 11 | @property (nonatomic, readonly) NSImage* toolbarItemImage; 12 | @property (nonatomic, retain) NSDictionary* defaultsProperties; 13 | 14 | - (id)initWithNibName:(NSString*)aNibName label:(NSString*)aLabel image:(NSImage*)anImage; 15 | 16 | - (IBAction)help:(id)sender; 17 | @end 18 | -------------------------------------------------------------------------------- /Frameworks/settings/src/volume.h: -------------------------------------------------------------------------------- 1 | #ifndef VOLUME_H_3HE6P24J 2 | #define VOLUME_H_3HE6P24J 3 | 4 | #include 5 | 6 | namespace volume 7 | { 8 | struct settings_t 9 | { 10 | bool extended_attributes () const { return _extended_attributes; } 11 | 12 | private: 13 | static std::map create (); 14 | friend volume::settings_t const& settings (std::string const& path); 15 | 16 | bool _extended_attributes = true; 17 | bool _scm_badges = true; 18 | bool _display_names = true; 19 | }; 20 | 21 | PUBLIC volume::settings_t const& settings (std::string const& path); 22 | 23 | } /* volume */ 24 | 25 | #endif /* end of include guard: VOLUME_H_3HE6P24J */ 26 | -------------------------------------------------------------------------------- /Frameworks/text/src/format.cc: -------------------------------------------------------------------------------- 1 | #include "format.h" 2 | 3 | namespace text 4 | { 5 | std::string format_size (size_t inBytes) 6 | { 7 | double size = (double)inBytes; 8 | char const* unitStr = inBytes == 1 ? "byte" : "bytes"; 9 | 10 | if(inBytes > 1000 * 1024*1024) 11 | { 12 | size /= 1024*1024*1024; 13 | unitStr = "GiB"; 14 | } 15 | else if(inBytes > 1000 * 1024) 16 | { 17 | size /= 1024*1024; 18 | unitStr = "MiB"; 19 | } 20 | else if(inBytes > 1000) 21 | { 22 | size /= 1024; 23 | unitStr = "KiB"; 24 | } 25 | else 26 | { 27 | return text::format("%zu %s", inBytes, unitStr); 28 | } 29 | 30 | return text::format("%.1f %s", size, unitStr); 31 | } 32 | 33 | } /* text */ -------------------------------------------------------------------------------- /Frameworks/HTMLOutput/src/HTMLOutput.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern NSString* const kCommandRunnerURLScheme; 4 | 5 | @interface OakHTMLOutputView : NSView 6 | - (void)setEnvironment:(std::map const&)anEnvironment; 7 | - (void)loadRequest:(NSURLRequest*)aRequest autoScrolls:(BOOL)flag; 8 | - (void)stopLoading; 9 | 10 | @property (nonatomic, readonly) BOOL runningCommand; 11 | 12 | // Read-only access to the webview is given to allow reading page title, etc. 13 | @property (nonatomic, readonly) WebView* webView; 14 | @end 15 | 16 | namespace command { struct runner_t; typedef std::tr1::shared_ptr runner_ptr; } 17 | PUBLIC NSURLRequest* URLRequestForCommandRunner (command::runner_ptr aRunner); 18 | -------------------------------------------------------------------------------- /Frameworks/OakFoundation/src/OakTimer.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class OakTimerHelper; 4 | 5 | @interface OakTimer : NSObject 6 | { 7 | OBJC_WATCH_LEAKS(OakTimer); 8 | 9 | OakTimerHelper* helper; 10 | NSTimer* timer; 11 | id target; 12 | SEL selector; 13 | id userInfo; 14 | } 15 | + (id)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds target:(id)target selector:(SEL)aSelector repeats:(BOOL)repeats; 16 | + (id)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds target:(id)target selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)repeats; 17 | - (void)fire; 18 | @property (nonatomic, assign) id target; 19 | @property (nonatomic, assign) SEL selector; 20 | @property (nonatomic, retain) id userInfo; 21 | @end 22 | -------------------------------------------------------------------------------- /Frameworks/cf/src/cf.cc: -------------------------------------------------------------------------------- 1 | #include "cf.h" 2 | 3 | namespace cf 4 | { 5 | std::string to_s (CFStringRef aString) 6 | { 7 | CFIndex byteCount; 8 | if(!CFStringGetBytes(aString, CFRangeMake(0, CFStringGetLength(aString)), kCFStringEncodingUTF8, 0, false, NULL, 0, &byteCount)) 9 | return ""; 10 | 11 | std::string res(byteCount, ' '); 12 | CFStringGetBytes(aString, CFRangeMake(0, CFStringGetLength(aString)), kCFStringEncodingUTF8, 0, false, (UInt8*)&res[0], byteCount, NULL); 13 | return res; 14 | } 15 | 16 | string_t::string_t (std::string const& str) 17 | { 18 | string.reset(CFStringCreateWithBytes(kCFAllocatorDefault, (UInt8*)str.data(), str.size(), kCFStringEncodingUTF8, false), CFRelease); 19 | } 20 | 21 | } /* cf */ 22 | -------------------------------------------------------------------------------- /Applications/NewApplication/resources/Info.plist: -------------------------------------------------------------------------------- 1 | { CFBundleName = "${TARGET_NAME}"; 2 | CFBundleVersion = "1.0"; 3 | CFBundleIdentifier = "org.example.${TARGET_NAME}"; 4 | 5 | CFBundleExecutable = "${TARGET_NAME}"; 6 | CFBundleIconFile = ""; 7 | 8 | // CFBundleHelpBookName 9 | // CFBundleHelpBookFolder 10 | // LSMinimumSystemVersion 11 | // NSContactsUsageDescription 12 | 13 | CFBundleDevelopmentRegion = "English"; 14 | CFBundleInfoDictionaryVersion = "6.0"; 15 | CFBundlePackageType = "APPL"; 16 | CFBundleSignature = "????"; 17 | 18 | NSMainNibFile = "MainMenu"; 19 | NSPrincipalClass = "NSApplication"; 20 | } 21 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakAppKit.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | PUBLIC extern NSString* const OakCursorDidHideNotification; 4 | 5 | PUBLIC void OakRunIOAlertPanel (char const* format, ...) __attribute__ ((format (printf, 1, 2))); 6 | PUBLIC BOOL OakIsAlternateKeyOrMouseEvent (NSUInteger flags = NSAlternateKeyMask, NSEvent* anEvent = [NSApp currentEvent]); 7 | 8 | #if !defined(MAC_OS_X_VERSION_10_7) || (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7) 9 | enum { 10 | NSScrollerKnobStyleDefault = 0, 11 | NSScrollerKnobStyleDark = 1, 12 | NSScrollerKnobStyleLight = 2 13 | }; 14 | typedef NSInteger NSScrollerKnobStyle; 15 | #endif 16 | 17 | PUBLIC void SetLionScrollerKnobStyle (NSScrollView* scrollView, NSScrollerKnobStyle style); 18 | -------------------------------------------------------------------------------- /Frameworks/OakDebug/Bundles/OakDebug.tmbundle/info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | name 6 | OakDebug 7 | ordering 8 | 9 | BEE69D89-0541-420A-BEE1-82DF9C180BFE 10 | 7B199EAF-AC6E-415E-B2B6-25BEB950237D 11 | DE20927C-73A5-41ED-ADE0-265A3E2BBE92 12 | A1CFAA0F-BE78-4ED1-82B7-58200EED9B42 13 | 5B90AF99-1971-4121-84A8-866BA048473B 14 | 15 | uuid 16 | 25E716D9-DE89-4095-93CA-060B0E44222C 17 | 18 | 19 | -------------------------------------------------------------------------------- /Frameworks/BundleEditor/src/OakRot13Transformer.mm: -------------------------------------------------------------------------------- 1 | #import "OakRot13Transformer.h" 2 | #import 3 | #import 4 | 5 | @implementation OakRot13Transformer 6 | + (void)register { [NSValueTransformer setValueTransformer:[[OakRot13Transformer new] autorelease] forName:@"OakRot13Transformer"]; } 7 | + (Class)transformedValueClass { return [NSString class]; } 8 | + (BOOL)allowsReverseTransformation { return YES; } 9 | - (id)transformedValue:(id)value { return [NSString stringWithCxxString:decode::rot13([value UTF8String] ?: "")]; } 10 | - (id)reverseTransformedValue:(id)value { return [NSString stringWithCxxString:decode::rot13([value UTF8String] ?: "")]; } 11 | @end 12 | -------------------------------------------------------------------------------- /Frameworks/layout/src/render.cc: -------------------------------------------------------------------------------- 1 | #include "render.h" 2 | #include 3 | #include 4 | 5 | namespace render 6 | { 7 | void fill_rect (CGContextRef context, CGColorRef color, CGRect const& rect) 8 | { 9 | ASSERT(color); 10 | CGContextSetFillColorWithColor(context, color); 11 | CGContextFillRect(context, rect); 12 | } 13 | 14 | void draw_spelling_dot (CGContextRef context, CGRect const& rect) 15 | { 16 | static cf::image_t image("SpellingDot.tiff", "com.macromates.TextMate.OakAppKit"); 17 | if(!image) 18 | return; 19 | 20 | for(CGFloat x = rect.origin.x; x < rect.origin.x + rect.size.width - 0.5; x += 4) 21 | CGContextDrawImage(context, CGRectMake(x, rect.origin.y, 4, 3), image); 22 | } 23 | 24 | } /* render */ 25 | -------------------------------------------------------------------------------- /Frameworks/regexp/src/glob.h: -------------------------------------------------------------------------------- 1 | #ifndef GLOB_H_1FT86H1L 2 | #define GLOB_H_1FT86H1L 3 | 4 | #include "regexp.h" 5 | 6 | namespace path 7 | { 8 | struct PUBLIC glob_t 9 | { 10 | glob_t (const char* glob) { setup(glob); } 11 | glob_t (std::string const& glob) { setup(glob); } 12 | 13 | bool does_match (std::string const& filename) const; 14 | 15 | private: 16 | friend std::string to_s (glob_t const& glob); 17 | void setup (std::string const& glob); 18 | bool _negate; 19 | regexp::pattern_t _compiled; 20 | }; 21 | 22 | PUBLIC std::vector expand_braces (std::string const& glob); 23 | PUBLIC std::string to_s (glob_t const& glob); 24 | 25 | } /* path */ 26 | 27 | #endif /* end of include guard: GLOB_H_1FT86H1L */ 28 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/src/OakLayoutView.h: -------------------------------------------------------------------------------- 1 | #include "box.h" 2 | 3 | struct OakResizeInfo 4 | { 5 | int width, height; 6 | enum { kTopLeft, kTopRight, kBottomLeft, kBottomRight } corner; 7 | enum { kWidth, kHeight } adjustable; 8 | }; 9 | 10 | @interface OakLayoutView : NSView 11 | { 12 | box_t* box; 13 | std::map views; 14 | std::multimap resize_info; 15 | } 16 | - (void)addView:(NSView*)aView; 17 | - (void)addView:(NSView*)aView atEdge:(NSRectEdge)anEdge ofView:(NSView*)otherView; 18 | - (void)removeView:(NSView*)aView; 19 | - (void)setLocked:(BOOL)flag forView:(NSView*)aView; 20 | - (void)addResizeInfo:(OakResizeInfo)info forView:(NSView*)aView; 21 | - (void)removeResizeInfoForView:(NSView*)aView; 22 | @end 23 | -------------------------------------------------------------------------------- /Applications/TextMate/templates/header.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | <%- meta_data.each do |key, value| -%> 9 | 10 | <%- end -%> 11 | 12 | <%- css_files.each do |css| -%> 13 | 14 | <%- end -%> 15 | <%- js_files.each do |js| -%> 16 | 17 | <%- end -%> 18 | <%= page_title %> 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Shared/include/oak/duration.h: -------------------------------------------------------------------------------- 1 | #ifndef OAK_DURATION_H_NQISZ9T7 2 | #define OAK_DURATION_H_NQISZ9T7 3 | 4 | namespace oak 5 | { 6 | struct duration_t 7 | { 8 | duration_t () 9 | { 10 | reset(); 11 | } 12 | 13 | void reset () 14 | { 15 | struct timeval now; 16 | gettimeofday(&now, NULL); 17 | start_time = (double)now.tv_sec + (double)now.tv_usec / 1000000.0; 18 | } 19 | 20 | double duration () const 21 | { 22 | struct timeval now; 23 | gettimeofday(&now, NULL); 24 | double elapsed = (double)now.tv_sec + (double)now.tv_usec / 1000000.0; 25 | return elapsed - start_time; 26 | } 27 | 28 | private: 29 | double start_time; 30 | }; 31 | 32 | } /* oak */ 33 | 34 | #endif /* end of include guard: OAK_DURATION_H_NQISZ9T7 */ 35 | -------------------------------------------------------------------------------- /Applications/TextMate/resources/English.lproj/TextMate Help/format_string_syntax.md: -------------------------------------------------------------------------------- 1 | # Format String Syntax 2 | 3 | ## In Snippets 4 | 5 | ### Placeholders 6 | 7 | $«int» 8 | ${«int»} 9 | ${«int»:«snippet»} 10 | ${«int»/«regexp»/«format»/«options»} 11 | ${«int»|«choice 1»,…,«choice n»|} # parsed but not handled 12 | 13 | ### Code 14 | 15 | `«code»` 16 | 17 | ## In Format Strings 18 | 19 | $0-n 20 | 21 | \U, \L, \E, \u, \l 22 | \n, \t 23 | 24 | «variables» 25 | 26 | (?«var»:«if»:«else»} 27 | (?«var»:«if»} 28 | 29 | ## In Both 30 | 31 | ### Variables 32 | 33 | ${«var»:?«if»:«else»} 34 | ${«var»:+«if»} 35 | ${«var»:-«else»} 36 | ${«var»:«else»} 37 | ${«var»/«regexp»/«format»/«options»} 38 | ${«var»:[/upcase][/downcase][/capitalize][/asciify]} 39 | -------------------------------------------------------------------------------- /Frameworks/HTMLOutput/src/browser/HOStatusBar.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @protocol HOStatusBarDelegate 4 | - (void)goBack:(id)sender; 5 | - (void)goForward:(id)sender; 6 | @end 7 | 8 | @interface HOStatusBar : OakStatusBar 9 | { 10 | BOOL isBusy; 11 | NSString* statusText; 12 | BOOL canGoBack; 13 | BOOL canGoForward; 14 | 15 | NSProgressIndicator* spinner; 16 | NSProgressIndicator* progressIndicator; 17 | 18 | id delegate; 19 | } 20 | @property (nonatomic, assign) BOOL isBusy; 21 | @property (nonatomic, assign) double progress; 22 | @property (nonatomic, copy) NSString* statusText; 23 | @property (nonatomic, assign) BOOL canGoBack; 24 | @property (nonatomic, assign) BOOL canGoForward; 25 | 26 | @property (nonatomic, assign) id delegate; 27 | @end 28 | -------------------------------------------------------------------------------- /Applications/TextMate/resources/English.lproj/TextMate Help/events.md: -------------------------------------------------------------------------------- 1 | # Events / Filters 2 | 3 | ## Events 4 | 5 | Presently the only event fired is `event.document.did_save`. 6 | 7 | Catching an event is done by adding an `eventSpecifier` key to a regular command and setting the value to the event which should be catched. 8 | 9 | An example of this is the “Make Script Executable” in the included Avian bundle. This is scoped to `source.ruby` so if you create a new ruby file and save it, it should automatically get the executable bit set. 10 | 11 | ## Filters 12 | 13 | Filters are like events but their output is used. Examples of filters are in the included Avian bundle, there are filters to decompile AppleScript, pretty print tmCommand files, and encrypt/decrypt the content. 14 | -------------------------------------------------------------------------------- /Frameworks/bundles/src/fsevents/fs_controller.h: -------------------------------------------------------------------------------- 1 | #ifndef FS_CONTROLLER_H_GF1Y738P 2 | #define FS_CONTROLLER_H_GF1Y738P 3 | 4 | #include "fs_tree.h" 5 | #include 6 | 7 | namespace fs 8 | { 9 | struct callback_t 10 | { 11 | virtual void did_change (std::map const& heads, std::map< std::string, std::vector > const& changes) = 0; 12 | }; 13 | 14 | struct watch_info_t; 15 | typedef std::tr1::shared_ptr watch_info_ptr; 16 | 17 | watch_info_ptr watch_paths (std::set rootPaths, callback_t* callback, path::glob_t const& dirGlob = "*", path::glob_t const& fileGlob = "*", std::string const& cacheFile = NULL_STR); 18 | 19 | } /* fs */ 20 | 21 | #endif /* end of include guard: FS_CONTROLLER_H_GF1Y738P */ 22 | -------------------------------------------------------------------------------- /Frameworks/plist/src/stl.h: -------------------------------------------------------------------------------- 1 | #ifndef PLIST_STL_H_O6LA7E77 2 | #define PLIST_STL_H_O6LA7E77 3 | 4 | #include 5 | 6 | namespace plist 7 | { 8 | template 9 | any_t to_plist (T const& value) 10 | { 11 | return value; 12 | } 13 | 14 | template 15 | array_t to_plist (std::vector const& v) 16 | { 17 | array_t res; 18 | iterate(it, v) 19 | res.push_back(to_plist(*it)); 20 | return res; 21 | } 22 | 23 | template 24 | dictionary_t to_plist (std::map const& map) 25 | { 26 | dictionary_t res; 27 | iterate(it, map) 28 | res.insert(std::make_pair(it->first, to_plist(it->second))); 29 | return res; 30 | } 31 | 32 | } /* plist */ 33 | 34 | #endif /* end of include guard: PLIST_STL_H_O6LA7E77 */ 35 | -------------------------------------------------------------------------------- /Applications/TextMate/resources/English.lproj/TextMate Help/scope_selector_syntax.md: -------------------------------------------------------------------------------- 1 | # Scope Selector Syntax 2 | 3 | atom: «string» | '*' 4 | scope: «atom» ('.' «atom»)* 5 | path: '^'? «scope» ('>'? «scope»)* '$'? 6 | group: '(' «selector» ')' 7 | filter: ("L:"|"R:"|"B:") («group» | «path») 8 | expression: '-'? («filter» | «group» | «path») 9 | composite: «expression» ([|&-] «expression»)* 10 | selector: «composite» (',' «composite»)* 11 | 12 | We need to add priority (to `path` rule): `(':' «integer»)?`. This is when multiple commands handle the same event and are using same scope (which can be the case when chaining e.g. documentation commands). 13 | 14 | We probably need `~` for negative-look ahead, e.g.: `text.html ~ meta.embedded`. 15 | -------------------------------------------------------------------------------- /Frameworks/file/src/encoding.h: -------------------------------------------------------------------------------- 1 | #ifndef FILE_ENCODING_H_CM7CPD1M 2 | #define FILE_ENCODING_H_CM7CPD1M 3 | 4 | #include "bytes.h" 5 | 6 | PUBLIC extern std::string const kCharsetNoEncoding; 7 | PUBLIC extern std::string const kCharsetASCII; 8 | PUBLIC extern std::string const kCharsetUTF8; 9 | PUBLIC extern std::string const kCharsetUTF16BE; 10 | PUBLIC extern std::string const kCharsetUTF16LE; 11 | PUBLIC extern std::string const kCharsetUTF32BE; 12 | PUBLIC extern std::string const kCharsetUTF32LE; 13 | PUBLIC extern std::string const kCharsetUnknown; 14 | 15 | namespace encoding 16 | { 17 | PUBLIC io::bytes_ptr convert (io::bytes_ptr content, std::string const& from, std::string const& to); 18 | 19 | } /* encoding */ 20 | 21 | #endif /* end of include guard: FILE_ENCODING_H_CM7CPD1M */ 22 | -------------------------------------------------------------------------------- /Frameworks/network/src/network.cc: -------------------------------------------------------------------------------- 1 | #include "network.h" 2 | 3 | namespace network 4 | { 5 | bool can_reach_host (char const* host) 6 | { 7 | #if !defined(MAC_OS_X_VERSION_10_6) || (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6) 8 | SCNetworkConnectionFlags flags; 9 | return SCNetworkCheckReachabilityByName(host, &flags) && (flags & kSCNetworkFlagsReachable); 10 | #else 11 | bool res = false; 12 | if(SCNetworkReachabilityRef ref = SCNetworkReachabilityCreateWithName(kCFAllocatorDefault, host)) 13 | { 14 | SCNetworkReachabilityFlags flags; 15 | if(SCNetworkReachabilityGetFlags(ref, &flags)) 16 | { 17 | if(flags & kSCNetworkReachabilityFlagsReachable) 18 | res = true; 19 | } 20 | CFRelease(ref); 21 | } 22 | return res; 23 | #endif 24 | } 25 | 26 | } /* network */ -------------------------------------------------------------------------------- /Frameworks/SoftwareUpdate/src/sw_update.h: -------------------------------------------------------------------------------- 1 | #ifndef SW_UPDATE_H_TW02442V 2 | #define SW_UPDATE_H_TW02442V 3 | 4 | #include 5 | #include 6 | 7 | namespace sw_update 8 | { 9 | struct version_info_t 10 | { 11 | version_info_t (long version = 0, std::string const& url = NULL_STR) : version(version), url(url) { } 12 | 13 | long version; 14 | std::string url; 15 | }; 16 | 17 | PUBLIC version_info_t download_info (std::string const& url, std::string* error = NULL); 18 | PUBLIC std::string download_update (std::string const& url, key_chain_t const& keyChain, std::string* error, double* progress = NULL, bool const* stopFlag = NULL); 19 | PUBLIC std::string install_update (std::string const& src); 20 | } 21 | 22 | #endif /* end of include guard: SW_UPDATE_H_TW02442V */ 23 | -------------------------------------------------------------------------------- /Frameworks/Preferences/src/ProjectsPreferences.mm: -------------------------------------------------------------------------------- 1 | #import "ProjectsPreferences.h" 2 | #import "Keys.h" 3 | #import 4 | 5 | @implementation ProjectsPreferences 6 | - (id)init 7 | { 8 | if(self = [super initWithNibName:@"ProjectsPreferences" label:@"Projects" image:[NSImage imageNamed:@"Projects" inSameBundleAsClass:[self class]]]) 9 | { 10 | self.defaultsProperties = [NSDictionary dictionaryWithObjectsAndKeys: 11 | kUserDefaultsFoldersOnTopKey, @"foldersOnTop", 12 | kUserDefaultsShowFileExtensionsKey, @"showFileExtensions", 13 | kUserDefaultsExcludePatternKey, @"excludePattern", 14 | kUserDefaultsIncludePatternKey, @"includePattern", 15 | kUserDefaultsBinaryPatternKey, @"binaryPattern", 16 | nil]; 17 | } 18 | return self; 19 | } 20 | @end 21 | -------------------------------------------------------------------------------- /Frameworks/BundleEditor/src/PropertiesViewController.mm: -------------------------------------------------------------------------------- 1 | #import "PropertiesViewController.h" 2 | 3 | @implementation PropertiesViewController 4 | @synthesize properties; 5 | 6 | - (id)initWithName:(NSString*)aName 7 | { 8 | if((self = [super initWithNibName:aName bundle:[NSBundle bundleForClass:[self class]]])) 9 | { 10 | properties = [NSMutableDictionary new]; 11 | } 12 | return self; 13 | } 14 | 15 | - (CGFloat)indent 16 | { 17 | return alignmentView ? NSMaxX([alignmentView frame]) + 5 : 20; 18 | } 19 | 20 | - (NSDictionary*)properties 21 | { 22 | [objectController commitEditing]; 23 | return properties; 24 | } 25 | 26 | - (void)loadView 27 | { 28 | [super loadView]; 29 | [keyEquivalentView bind:@"value" toObject:objectController withKeyPath:@"selection.keyEquivalent" options:nil]; 30 | } 31 | @end 32 | -------------------------------------------------------------------------------- /Frameworks/text/tests/t_format.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | class format_tests : public CxxTest::TestSuite 4 | { 5 | public: 6 | void test_format_number () 7 | { 8 | TS_ASSERT_EQUALS(text::format_size(1), "1 byte"); 9 | TS_ASSERT_EQUALS(text::format_size(2), "2 bytes"); 10 | TS_ASSERT_EQUALS(text::format_size(600), "600 bytes"); 11 | TS_ASSERT_EQUALS(text::format_size(1024), "1.0 KiB"); 12 | TS_ASSERT_EQUALS(text::format_size(5*1024), "5.0 KiB"); 13 | TS_ASSERT_EQUALS(text::format_size(5*1024+512), "5.5 KiB"); 14 | TS_ASSERT_EQUALS(text::format_size(1024*1024), "1.0 MiB"); 15 | TS_ASSERT_EQUALS(text::format_size(5*1024*1024), "5.0 MiB"); 16 | TS_ASSERT_EQUALS(text::format_size(1024*1024*1024), "1.0 GiB"); 17 | } 18 | }; 19 | -------------------------------------------------------------------------------- /Frameworks/text/tests/t_tokenize.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | class TokenizeTests : public CxxTest::TestSuite 4 | { 5 | std::string replace_token (std::string const& str, char token, std::string const& replacement) 6 | { 7 | std::vector v; 8 | citerate(component, text::tokenize(str.begin(), str.end(), token)) 9 | v.push_back(*component); 10 | return text::join(v, replacement); 11 | } 12 | 13 | public: 14 | void test_tokenize () 15 | { 16 | TS_ASSERT_EQUALS(replace_token( "foo/bar", '/', " » "), "foo » bar" ); 17 | TS_ASSERT_EQUALS(replace_token("/foo/bar", '/', " » "), " » foo » bar" ); 18 | TS_ASSERT_EQUALS(replace_token( "foo/bar/", '/', " » "), "foo » bar » "); 19 | TS_ASSERT_EQUALS(replace_token("/foo/bar/", '/', " » "), " » foo » bar » "); 20 | } 21 | }; 22 | -------------------------------------------------------------------------------- /bin/create_default_bundles_tbz: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -u 3 | 4 | builddir="${builddir:-$HOME/build/TextMate}" 5 | bl="$builddir/Applications/bl/bl" 6 | TBZ_DST="Applications/TextMate/resources/DefaultBundles.tbz" 7 | BUNDLES_DST="$(mktemp -dt bundles)" 8 | BZIP2_FLAG="-j" 9 | 10 | if which -s pbzip2; then 11 | BZIP2_FLAG="--use-compress-prog=pbzip2" 12 | fi 13 | 14 | ninja "$bl" && \ 15 | mkdir -p "$BUNDLES_DST/Managed" && \ 16 | "$bl" -C "$BUNDLES_DST/Managed" install Apache Bundle\ Development Bundle\ Support C CSS Diff Git HTML Hyperlink\ Helper JavaScript JSON Mail Make Markdown Math Mercurial Objective-C PHP Property\ List Python Ruby SCM Shell\ Script Source SQL Subversion Text TextMate Themes TODO XML && \ 17 | gnutar -cf "$TBZ_DST" "$BZIP2_FLAG" -C "$BUNDLES_DST" "Managed" 18 | 19 | rm -rf "$BUNDLES_DST" 20 | -------------------------------------------------------------------------------- /Frameworks/io/src/socket.h: -------------------------------------------------------------------------------- 1 | #ifndef IO_SOCKET_H_TNW4NXOL 2 | #define IO_SOCKET_H_TNW4NXOL 3 | 4 | #include 5 | 6 | struct socket_t 7 | { 8 | WATCH_LEAKS(socket_t); 9 | 10 | socket_t () { } 11 | socket_t (int fd) { helper.reset(new helper_t(fd)); } 12 | operator int () const { ASSERT(helper); return helper->fd; } 13 | EXPLICIT operator bool () const { return helper ? helper->fd != -1 : false; } 14 | 15 | private: 16 | struct helper_t 17 | { 18 | WATCH_LEAKS(helper_t); 19 | 20 | helper_t (int fd) : fd(fd) { if(fd != -1) fcntl(fd, F_SETFD, 1); } 21 | ~helper_t () { if(fd != -1) close(fd); } 22 | int fd; 23 | }; 24 | 25 | std::tr1::shared_ptr helper; 26 | }; 27 | 28 | #endif /* end of include guard: IO_SOCKET_H_TNW4NXOL */ 29 | -------------------------------------------------------------------------------- /Frameworks/editor/src/indent.cc: -------------------------------------------------------------------------------- 1 | #include "indent.h" 2 | #include 3 | 4 | OAK_DEBUG_VAR(Indent); 5 | 6 | namespace indent 7 | { 8 | patterns_t patterns_for_scope (scope::context_t const& scope) 9 | { 10 | D(DBF_Indent, bug("scope: %s\n", to_s(scope).c_str());); 11 | 12 | static std::string const settings[] = { "increaseIndentPattern", "decreaseIndentPattern", "indentNextLinePattern", "unIndentedLinePattern" }; 13 | patterns_t res; 14 | iterate(it, settings) 15 | { 16 | plist::any_t const& plist = bundles::value_for_setting(*it, scope); 17 | if(std::string const* value = boost::get(&plist)) 18 | { 19 | D(DBF_Indent, bug("%s = %s\n", it->c_str(), value->c_str());); 20 | res.array[it - settings] = *value; 21 | } 22 | } 23 | return res; 24 | } 25 | 26 | } /* indent */ -------------------------------------------------------------------------------- /Frameworks/OakAppKit/tests/t_pop_out.mm: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | 5 | @interface MyView : NSView 6 | { 7 | } 8 | @end 9 | 10 | @implementation MyView 11 | - (BOOL)acceptsFirstResponder { return YES; } 12 | 13 | - (void)drawRect:(NSRect)aRect 14 | { 15 | NSEraseRect(aRect); 16 | } 17 | 18 | - (void)mouseDown:(NSEvent*)anEvent 19 | { 20 | NSPoint p = [[self window] convertBaseToScreen:[anEvent locationInWindow]]; 21 | OakShowPopOutAnimation((NSRect){ p, NSMakeSize(48, 48) }, [NSImage imageNamed:NSImageNameComputer]); 22 | } 23 | @end 24 | 25 | class PopOutTests : public CxxTest::TestSuite 26 | { 27 | public: 28 | void test_layout () 29 | { 30 | OakSetupApplicationWithView([[MyView alloc] initWithFrame:NSMakeRect(0, 0, 200, 50)], "pop_out"); 31 | } 32 | }; 33 | -------------------------------------------------------------------------------- /Frameworks/OakFilterList/src/OakFilterListView.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface OakFilterListView : NSTableView 5 | { 6 | OBJC_WATCH_LEAKS(OakFilterListView) 7 | NSArray* items; 8 | NSAttributedString* infoString; 9 | id filterDataSource; 10 | BOOL isWaitingForItems; 11 | NSUInteger sourceIndex; 12 | } 13 | @property (nonatomic, retain) id filterDataSource; 14 | @property (nonatomic, retain, readonly) NSAttributedString* infoString; 15 | @property (nonatomic, readonly) NSArray* selectedItems; 16 | @property (nonatomic, assign) NSUInteger sourceIndex; 17 | @property (nonatomic, retain) NSButtonCell* accessoryButton; 18 | 19 | - (void)waitForAllItems; 20 | - (void)makeSelectedItemsBestMatch; 21 | @end 22 | -------------------------------------------------------------------------------- /Frameworks/cf/src/run_loop.h: -------------------------------------------------------------------------------- 1 | #ifndef CF_RUN_LOOP_H_YH1AM5OH 2 | #define CF_RUN_LOOP_H_YH1AM5OH 3 | 4 | #include 5 | 6 | namespace cf 7 | { 8 | struct PUBLIC run_loop_t 9 | { 10 | run_loop_t (CFStringRef mode = kCFRunLoopDefaultMode, double timeout = DBL_MAX); 11 | ~run_loop_t (); 12 | 13 | bool start () const; // call from main thread 14 | void stop () const; // call from worker thread 15 | 16 | void set_timeout (double value) { _timeout = value; } 17 | 18 | private: 19 | run_loop_t (run_loop_t const& rhs); 20 | run_loop_t& operator= (run_loop_t const& rhs); 21 | 22 | CFStringRef _mode; 23 | CFRunLoopSourceRef _source; 24 | CFRunLoopRef _run_loop; 25 | bool _should_stop; 26 | double _timeout; 27 | }; 28 | 29 | } /* cf */ 30 | 31 | #endif /* end of include guard: CF_RUN_LOOP_H_YH1AM5OH */ 32 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "bin/CxxTest"] 2 | path = bin/CxxTest 3 | url = git://github.com/textmate/cxxtest.git 4 | [submodule "vendor/MASPreferences/vendor"] 5 | path = vendor/MASPreferences/vendor 6 | url = git://github.com/textmate/MASPreferences.git 7 | [submodule "rmate"] 8 | path = rmate 9 | url = git://github.com/textmate/rmate.git 10 | [submodule "vendor/MGScopeBar/vendor"] 11 | path = vendor/MGScopeBar/vendor 12 | url = git://github.com/textmate/MGScopeBar.git 13 | [submodule "Applications/TextMate/icons"] 14 | path = Applications/TextMate/icons 15 | url = git://github.com/textmate/document-icons.git 16 | [submodule "PlugIns/dialog-1.x"] 17 | path = PlugIns/dialog-1.x 18 | url = git://github.com/textmate/dialog-1.x.git 19 | [submodule "PlugIns/dialog"] 20 | path = PlugIns/dialog 21 | url = git://github.com/textmate/dialog.git 22 | -------------------------------------------------------------------------------- /Frameworks/io/tests/t_xattr.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | class XattrTests : public CxxTest::TestSuite 4 | { 5 | public: 6 | void test_xattr () 7 | { 8 | // This isn’t a test per se, it’s more to keep the code around that tests volume capabilities (which is something we presently do anywhere in Avian). 9 | struct statfs buf; 10 | struct { u_int32_t length; vol_capabilities_attr_t attr; } attrBuf; 11 | TS_ASSERT_EQUALS(statfs(path::home().c_str(), &buf), 0); 12 | TS_ASSERT_EQUALS(getattrlist(buf.f_mntonname, &(attrlist){ ATTR_BIT_MAP_COUNT, 0, 0, ATTR_VOL_INFO|ATTR_VOL_CAPABILITIES, 0, 0, 0 }, &attrBuf, sizeof(attrBuf), 0), 0); 13 | TS_ASSERT_EQUALS(attrBuf.length, sizeof(attrBuf)); 14 | TS_ASSERT_EQUALS(attrBuf.attr.capabilities[VOL_CAPABILITIES_INTERFACES] & VOL_CAP_INT_EXCHANGEDATA, VOL_CAP_INT_EXCHANGEDATA); 15 | } 16 | }; 17 | -------------------------------------------------------------------------------- /Frameworks/file/src/bytes.cc: -------------------------------------------------------------------------------- 1 | #include "bytes.h" 2 | 3 | namespace io 4 | { 5 | bytes_t::bytes_t (size_t size) : _dispose(true) 6 | { 7 | _bytes = new char[size]; 8 | _size = size; 9 | } 10 | 11 | bytes_t::bytes_t (std::string const& str) : _dispose(true) 12 | { 13 | _bytes = new char[_size = str.size()]; 14 | memcpy(_bytes, str.data(), _size); 15 | } 16 | 17 | bytes_t::bytes_t (char const* bytes, size_t size, bool dispose) : _bytes((char*)bytes), _size(size), _dispose(dispose) 18 | { 19 | } 20 | 21 | bytes_t::~bytes_t () 22 | { 23 | if(_dispose) 24 | delete[] _bytes; 25 | } 26 | 27 | void bytes_t::set_string (std::string const& str) 28 | { 29 | if(_dispose) 30 | delete[] _bytes; 31 | _bytes = new char[_size = str.size()]; 32 | _dispose = true; 33 | memcpy(_bytes, str.data(), _size); 34 | } 35 | 36 | } /* io */ -------------------------------------------------------------------------------- /Frameworks/io/src/fsref.h: -------------------------------------------------------------------------------- 1 | #ifndef FSREF_H_LMA1F8SI 2 | #define FSREF_H_LMA1F8SI 3 | 4 | inline std::string to_s (FSRef const& ref) 5 | { 6 | UInt8 buf[PATH_MAX]; 7 | if(noErr == FSRefMakePath(&ref, buf, sizeof(buf))) 8 | return std::string(buf, std::find(buf, buf + sizeof(buf), '\0')); 9 | fprintf(stderr, "unable to get path from FSRef\n"); 10 | return NULL_STR; 11 | } 12 | 13 | struct fsref_t 14 | { 15 | fsref_t () {} 16 | fsref_t (std::string const& path) { FSPathMakeRefWithOptions((UInt8 const*)path.c_str(), kFSPathMakeRefDoNotFollowLeafSymlink, &ref, NULL); } 17 | 18 | operator FSRef const* () const { return &ref; } 19 | operator FSRef* () { return &ref; } 20 | std::string path () const { return to_s(ref); } 21 | private: 22 | FSRef ref; 23 | }; 24 | 25 | #endif /* end of include guard: FSREF_H_LMA1F8SI */ 26 | -------------------------------------------------------------------------------- /Frameworks/text/src/indent.cc: -------------------------------------------------------------------------------- 1 | #include "indent.h" 2 | 3 | namespace text 4 | { 5 | std::string indent_t::create (size_t atColumn, size_t units) const 6 | { 7 | size_t baseColumn = atColumn - (atColumn % indent_size()); 8 | size_t desiredColumn = baseColumn + units * indent_size(); 9 | 10 | if(soft_tabs()) 11 | { 12 | return std::string(desiredColumn - atColumn, ' '); 13 | } 14 | else if(indent_size() == tab_size()) 15 | { 16 | return std::string(units, '\t'); 17 | } 18 | else 19 | { 20 | size_t desiredBase = desiredColumn - (desiredColumn % tab_size()); 21 | if(desiredBase <= atColumn) 22 | return std::string(desiredColumn - atColumn, ' '); 23 | return std::string(desiredBase / tab_size() - baseColumn / tab_size(), '\t') + std::string(desiredColumn - desiredBase, ' '); 24 | } 25 | } 26 | 27 | } /* text */ -------------------------------------------------------------------------------- /Frameworks/Preferences/src/BundlesPreferences.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | 5 | @class BundlesManager; 6 | 7 | @interface BundlesPreferences : NSViewController 8 | { 9 | IBOutlet MGScopeBar* categoriesScopeBar; 10 | IBOutlet NSTableView* bundlesTableView; 11 | IBOutlet NSTextField* activityTextField; 12 | BundlesManager* bundlesManager; 13 | 14 | std::vector categories; 15 | std::set enabledCategories; 16 | std::vector bundles; 17 | } 18 | @property (nonatomic, readonly) NSString* identifier; 19 | @property (nonatomic, readonly) NSImage* toolbarItemImage; 20 | @property (nonatomic, readonly) NSString* toolbarItemLabel; 21 | @end 22 | -------------------------------------------------------------------------------- /Frameworks/document/tests/t_symlinks.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | class SymlinksTests : public CxxTest::TestSuite 5 | { 6 | public: 7 | void test_symlinks () 8 | { 9 | test::jail_t jail; 10 | 11 | jail.touch("test.txt"); 12 | jail.ln("link.txt", "test.txt"); 13 | 14 | TS_ASSERT_EQUALS(path::exists(jail.path("test.txt")), true); 15 | TS_ASSERT_EQUALS(path::exists(jail.path("link.txt")), true); 16 | 17 | document::document_ptr srcDoc = document::create(jail.path("test.txt")); 18 | document::document_ptr linkDoc = document::create(jail.path("link.txt")); 19 | TS_ASSERT_EQUALS(srcDoc->identifier(), linkDoc->identifier()); 20 | 21 | document::document_ptr aliasDoc = document::create(jail.path("./test.txt")); 22 | TS_ASSERT_EQUALS(srcDoc->identifier(), aliasDoc->identifier()); 23 | } 24 | }; 25 | -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/src/OakHistoryController.h: -------------------------------------------------------------------------------- 1 | @interface OakHistoryController : NSObject 2 | { 3 | NSMutableArray* historyArray; 4 | NSMutableArray* recentLocationsArray; 5 | NSInteger historyIndex; 6 | } 7 | @property (nonatomic, retain) NSDictionary* state; 8 | 9 | @property (nonatomic, readonly) NSURL* previousURL; 10 | @property (nonatomic, readonly) NSURL* nextURL; 11 | @property (nonatomic, readonly) NSURL* currentURL; 12 | 13 | @property (nonatomic, assign) CGFloat currentURLScrollOffset; 14 | 15 | - (void)addURLToHistory:(NSURL*)path; 16 | - (BOOL)advance:(id)sender; 17 | - (BOOL)retreat:(id)sender; 18 | 19 | @property (nonatomic, readonly) NSArray* recentLocations; 20 | 21 | @property (nonatomic, assign) NSInteger historyIndex; 22 | @property (nonatomic, readonly) NSInteger historyCount; 23 | - (NSURL*)urlAtIndex:(NSInteger)index; 24 | @end 25 | -------------------------------------------------------------------------------- /Frameworks/regexp/src/parser_fwd.h: -------------------------------------------------------------------------------- 1 | #ifndef PARSER_FWD_H_T20BLRIP 2 | #define PARSER_FWD_H_T20BLRIP 3 | 4 | namespace parser 5 | { 6 | struct text_t; 7 | struct placeholder_t; 8 | struct placeholder_transform_t; 9 | struct placeholder_choice_t; 10 | struct variable_t; 11 | struct variable_transform_t; 12 | struct variable_fallback_t; 13 | struct variable_condition_t; 14 | struct variable_change_t; 15 | struct case_change_t; 16 | struct code_t; 17 | 18 | typedef boost::variant< 19 | text_t, 20 | placeholder_t, placeholder_transform_t, placeholder_choice_t, 21 | variable_t, variable_transform_t, variable_fallback_t, variable_condition_t, variable_change_t, 22 | case_change_t, 23 | code_t 24 | > node_t; 25 | 26 | typedef std::vector nodes_t; 27 | 28 | } /* parser */ 29 | 30 | #endif /* end of include guard: PARSER_FWD_H_T20BLRIP */ 31 | -------------------------------------------------------------------------------- /Applications/TextMate/resources/English.lproj/TextMate Help/glob_string_syntax.md: -------------------------------------------------------------------------------- 1 | # Glob String Syntax 2 | 3 | \«char» -- Literal «char» 4 | ? -- Match one character 5 | * -- Match zero or more characters¹ 6 | ** -- Match zero or more path components 7 | {«a»,«b»,«c»} -- Match «a» or «b» or «c» 8 | [«a»«b»«c»] -- Match an «a», «b» or «c» character 9 | [«a»-«b»] -- Match one character in the range «a»-«b» 10 | [^«a»-«b»] -- Match one character not in the range «a»-«b» 11 | 12 | Braces can be nested and contain other glob characters. Example: 13 | 14 | {*.{cc,mm,h},target,Makefile,.tm_properties} 15 | 16 | Will match these files: 17 | 18 | source.cc 19 | source.mm 20 | source.h 21 | target 22 | Makefile 23 | .tm_properties 24 | 25 | ¹ The asterisk will not match slashes nor a leading period. 26 | -------------------------------------------------------------------------------- /Frameworks/OakSystem/src/application.h: -------------------------------------------------------------------------------- 1 | #ifndef APPLICATION_H_J6YAXEQE 2 | #define APPLICATION_H_J6YAXEQE 3 | 4 | #include 5 | 6 | namespace oak 7 | { 8 | struct PUBLIC application_t 9 | { 10 | application_t (int argc, char const* argv[]); 11 | 12 | static void relaunch (); 13 | static std::string name (); 14 | static std::string path (std::string const& relativePath = "."); 15 | static void set_name (std::string const& newName); 16 | static void set_path (std::string const& newPath); 17 | static void set_support (std::string const& newPath); 18 | static std::string support (std::string const& relativePath = "."); 19 | static std::string revision (); 20 | private: 21 | static void create_pid_file (); 22 | static void remove_pid_file (); 23 | }; 24 | 25 | } /* oak */ 26 | 27 | #endif /* end of include guard: APPLICATION_H_J6YAXEQE */ 28 | -------------------------------------------------------------------------------- /Frameworks/OakTextView/src/OakChoiceMenu.h: -------------------------------------------------------------------------------- 1 | extern NSUInteger const OakChoiceMenuKeyUnused; 2 | extern NSUInteger const OakChoiceMenuKeyReturn; 3 | extern NSUInteger const OakChoiceMenuKeyTab; 4 | extern NSUInteger const OakChoiceMenuKeyCancel; 5 | extern NSUInteger const OakChoiceMenuKeyMovement; 6 | 7 | @interface OakChoiceMenu : NSResponder 8 | { 9 | NSWindow* window; 10 | NSTableView* tableView; 11 | NSArray* choices; 12 | NSUInteger choiceIndex; 13 | NSUInteger keyAction; 14 | NSPoint topLeftPosition; 15 | } 16 | @property (nonatomic, retain) NSArray* choices; 17 | @property (nonatomic, assign) NSUInteger choiceIndex; 18 | @property (nonatomic, readonly) NSString* selectedChoice; 19 | - (void)showAtTopLeftPoint:(NSPoint)aPoint forView:(NSView*)aView; 20 | - (BOOL)isVisible; 21 | - (NSUInteger)didHandleKeyEvent:(NSEvent*)anEvent; 22 | @end 23 | -------------------------------------------------------------------------------- /Frameworks/OakAppKit/resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${TARGET_NAME} 9 | CFBundleName 10 | ${TARGET_NAME} 11 | CFBundleIdentifier 12 | com.macromates.${APP_NAME}.${TARGET_NAME} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleSignature 18 | ???? 19 | CFBundleShortVersionString 20 | 1.0.0 21 | CFBundleVersion 22 | 1.0 23 | 24 | 25 | -------------------------------------------------------------------------------- /Applications/TextMate/support/Bundles/Avian.tmbundle/Commands/SCM Warning (Git).tmCommand: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | beforeRunningCommand 6 | nop 7 | command 8 | #!/bin/sh 9 | echo 'This is a Subversion repository, use ⌘Y.' 10 | 11 | hideFromUser 12 | 1 13 | input 14 | none 15 | keyEquivalent 16 | ^G 17 | name 18 | SCM Warning (Git) 19 | output 20 | showAsTooltip 21 | scope 22 | attr.scm.svn 23 | uuid 24 | E9240402-203E-46FB-A99B-AF5C732B98FD 25 | 26 | 27 | -------------------------------------------------------------------------------- /Applications/TextMate/support/Bundles/Avian.tmbundle/Commands/SCM Warning (Subversion).tmCommand: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | beforeRunningCommand 6 | nop 7 | command 8 | #!/bin/sh 9 | echo 'This is a Git repository, use ⌘Y.' 10 | 11 | hideFromUser 12 | 1 13 | input 14 | none 15 | keyEquivalent 16 | ^A 17 | name 18 | SCM Warning (Subversion) 19 | output 20 | showAsTooltip 21 | scope 22 | attr.scm.git 23 | uuid 24 | 2DD9AAFF-72F4-4BF0-AE56-C4792B0EB5C5 25 | 26 | 27 | -------------------------------------------------------------------------------- /Frameworks/OakDebug/src/OakBenchmark.h: -------------------------------------------------------------------------------- 1 | #ifndef OAKBENCHMARK_H_RNPP99KX 2 | #define OAKBENCHMARK_H_RNPP99KX 3 | 4 | #include 5 | #include "OakDebug.h" 6 | 7 | namespace oak 8 | { 9 | template 10 | struct benchmark_t 11 | { 12 | typedef std::tr1::shared_ptr< benchmark_t > ptr; 13 | 14 | benchmark_t (DBF flag, std::string const& message) : flag(flag), message(message), timer() { } 15 | ~benchmark_t () 16 | { 17 | D(flag, bug("%s ran in %.2fs\n", message.c_str(), timer.duration());); 18 | } 19 | 20 | private: 21 | DBF flag; 22 | std::string message; 23 | oak::duration_t timer; 24 | }; 25 | } 26 | 27 | #define BENCHMARK(DBF, message) \ 28 | if(oak::benchmark_t::ptr _benchmark = oak::benchmark_t::ptr(new oak::benchmark_t(DBF, message))) 29 | 30 | #endif /* end of include guard: OAKBENCHMARK_H_RNPP99KX */ 31 | -------------------------------------------------------------------------------- /Frameworks/selection/tests/t_column_movement.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | class ColumnMovementTests : public CxxTest::TestSuite 5 | { 6 | public: 7 | void test_column_movement () 8 | { 9 | ng::buffer_t buf( 10 | " lorem\n" // 1: 0-08 11 | " sit\n" // 2: 8-14 12 | " ipsum\n" // 3: 14-22 13 | "\n" // 4: 22-23 14 | " dollar\n" // 5: 23-32 15 | " it\n" // 6: 32-37 16 | ); 17 | 18 | TS_ASSERT_EQUALS(ng::to_s(buf, ng::move(buf, ng::ranges_t( 2), kSelectionMoveToEndOfColumn)), "3:3"); 19 | TS_ASSERT_EQUALS(ng::to_s(buf, ng::move(buf, ng::ranges_t( 5), kSelectionMoveToEndOfColumn)), "3:6"); 20 | TS_ASSERT_EQUALS(ng::to_s(buf, ng::move(buf, ng::ranges_t( 7), kSelectionMoveToEndOfColumn)), "3:8"); 21 | TS_ASSERT_EQUALS(ng::to_s(buf, ng::move(buf, ng::ranges_t(21), kSelectionMoveToEndOfColumn)), "5:8"); 22 | } 23 | }; 24 | -------------------------------------------------------------------------------- /Frameworks/regexp/onig-5.9.2/doc/FAQ: -------------------------------------------------------------------------------- 1 | FAQ 2006/11/14 2 | 3 | 1. Lognest match 4 | 5 | You can execute longest match by using ONIG_OPTION_FIND_LONGEST option 6 | in onig_new(). 7 | 8 | 9 | 2. Thread safe 10 | 11 | In order to make thread safe, which of (A) or (B) must be done. 12 | 13 | (A) Oniguruma Layer 14 | 15 | Define the macro below in oniguruma/regint.h. 16 | 17 | USE_MULTI_THREAD_SYSTEM 18 | THREAD_ATOMIC_START 19 | THREAD_ATOMIC_END 20 | THREAD_PASS 21 | 22 | THREAD_SYSTEM_INIT 23 | THREAD_SYSTEM_END 24 | 25 | 26 | (B) Application Layer 27 | 28 | The plural threads should not do simultaneously that making 29 | new regexp objects or re-compiling objects or freeing objects, 30 | even if these objects are differ. 31 | 32 | 33 | 3. Mailing list 34 | 35 | There is no mailing list about Oniguruma. 36 | 37 | // END 38 | -------------------------------------------------------------------------------- /Applications/TextMate/resources/Default.tmProperties: -------------------------------------------------------------------------------- 1 | exclude = "{*.{o,pyc},Icon\r,CVS,_darcs,_MTN,\{arch\},blib,*~.nib}" 2 | include = "{.tm_properties,.htaccess}" 3 | binary = "{*.{icns,ico,jpg,jpeg,m4v,nib,o,pdf,png,psd,pyc,rtf,tif,tiff,xib},Icon\r}" 4 | 5 | LANG = "en_US.UTF-8" 6 | LC_CTYPE = "en_US.UTF-8" 7 | TM_APP_PATH = "${CWD/\/Contents\/Resources$//}" 8 | 9 | [ "/usr/include/{**/,}*" ] 10 | tabSize = 8 11 | 12 | [ text ] 13 | softWrap = true 14 | 15 | [ .git/COMMIT_EDITMSG ] 16 | spellChecking = true 17 | spellingLanguage = 'en' 18 | 19 | [ source.ruby ] 20 | softTabs = true 21 | tabSize = 2 22 | 23 | [ source.python ] 24 | softTabs = true 25 | tabSize = 4 26 | 27 | [ "/System/Library/Frameworks/**/Headers/**/*" ] 28 | encoding = "MACROMAN" 29 | 30 | [ "{BUILD,README,INSTALL,LICENSE,COPYING,TODO}" ] 31 | fileType = "text.plain" 32 | -------------------------------------------------------------------------------- /Frameworks/editor/tests/t_clipboard.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | class ClipboardTests : public CxxTest::TestSuite 4 | { 5 | public: 6 | void setUp () 7 | { 8 | cb = create_simple_clipboard(); 9 | } 10 | 11 | void test_empty () 12 | { 13 | TS_ASSERT(cb->empty()); 14 | TS_ASSERT(!cb->previous()); 15 | TS_ASSERT(!cb->current()); 16 | TS_ASSERT(!cb->next()); 17 | } 18 | 19 | void test_non_empty () 20 | { 21 | cb->push_back("foo"); 22 | cb->push_back("bar"); 23 | cb->push_back("fud"); 24 | 25 | TS_ASSERT_EQUALS(cb->current()->content(), "fud"); 26 | TS_ASSERT_EQUALS(cb->previous()->content(), "bar"); 27 | TS_ASSERT_EQUALS(cb->previous()->content(), "foo"); 28 | TS_ASSERT(!cb->previous()); 29 | TS_ASSERT_EQUALS(cb->next()->content(), "bar"); 30 | TS_ASSERT_EQUALS(cb->next()->content(), "fud"); 31 | TS_ASSERT(!cb->next()); 32 | } 33 | 34 | clipboard_ptr cb; 35 | }; 36 | -------------------------------------------------------------------------------- /Applications/decompile_as/src/decompile_as.mm: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | static double const AppVersion = 1.0; 4 | static size_t const AppRevision = APP_REVISION; 5 | 6 | int main (int argc, char const* argv[]) 7 | { 8 | if(argc == 2 && (strcmp(argv[1], "--version") == 0 || strcmp(argv[1], "-v") == 0)) 9 | { 10 | fprintf(stdout, "%1$s %2$.1f (" COMPILE_DATE " revision %3$zu)\n", getprogname(), AppVersion, AppRevision); 11 | return 0; 12 | } 13 | 14 | NSAutoreleasePool* pool = [NSAutoreleasePool new]; 15 | NSDictionary* errorInfo = nil; 16 | OSAScript* script = [[OSAScript alloc] initWithCompiledData:[[NSFileHandle fileHandleWithStandardInput] readDataToEndOfFile] error:&errorInfo]; 17 | std::string str = [[script source] UTF8String]; 18 | [pool drain]; 19 | 20 | std::replace(str.begin(), str.end(), '\r', '\n'); 21 | write(STDOUT_FILENO, str.data(), str.size()); 22 | 23 | return 0; 24 | } 25 | -------------------------------------------------------------------------------- /Frameworks/io/tests/t_identifier.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | class IdentifierTests : public CxxTest::TestSuite 5 | { 6 | public: 7 | void test_identifier () 8 | { 9 | test::jail_t jail; 10 | 11 | jail.touch("test.txt"); 12 | jail.ln("link.txt", "test.txt"); 13 | 14 | TS_ASSERT_EQUALS(path::exists(jail.path("test.txt")), true); 15 | TS_ASSERT_EQUALS(path::exists(jail.path("link.txt")), true); 16 | 17 | path::identifier_t id_1(jail.path("test.txt")); 18 | path::identifier_t id_2(jail.path("link.txt")); 19 | path::identifier_t id_3(jail.path("./test.txt")); 20 | path::identifier_t id_4(jail.path("./link.txt")); 21 | path::identifier_t id_5(jail.path("./link.txt"), true); 22 | 23 | TS_ASSERT_EQUALS(id_1, id_3); 24 | TS_ASSERT_EQUALS(id_1, id_5); 25 | TS_ASSERT_DIFFERS(id_1, id_2); 26 | TS_ASSERT_EQUALS(id_2, id_4); 27 | TS_ASSERT_DIFFERS(id_3, id_4); 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /Frameworks/OakFileBrowser/src/ui/OFBPathInfoCell.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @class OakTimer; 5 | 6 | enum { 7 | OFBPathInfoCellHitCloseButton = (12 << 1), 8 | }; 9 | 10 | @interface OFBPathInfoCell : OakImageAndTextCell 11 | { 12 | OBJC_WATCH_LEAKS(OFBPathInfoCell); 13 | NSUInteger labelIndex; 14 | BOOL mouseDownInCloseButton; 15 | BOOL isOpen; 16 | BOOL isVisible; 17 | BOOL isLoading; 18 | double spinnerValue; 19 | OakTimer* spinTimer; 20 | } 21 | @property (nonatomic, assign) NSUInteger labelIndex; 22 | 23 | @property (nonatomic, assign) BOOL isOpen; 24 | @property (nonatomic, assign) BOOL isVisible; 25 | @property (nonatomic, assign) BOOL isLoading; 26 | @property (nonatomic, assign) BOOL mouseDownInCloseButton; 27 | 28 | - (NSRect)closeButtonRectInFrame:(NSRect)cellFrame; 29 | - (BOOL)isMouseInCloseButtonInFrame:(NSRect)cellFrame controlView:(NSView*)controlView; 30 | @end 31 | -------------------------------------------------------------------------------- /Frameworks/io/src/events.h: -------------------------------------------------------------------------------- 1 | #ifndef FS_EVENTS_H_E5F4DSTS 2 | #define FS_EVENTS_H_E5F4DSTS 3 | 4 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 5 | 6 | #include 7 | 8 | namespace fs 9 | { 10 | struct event_callback_t 11 | { 12 | virtual ~event_callback_t () { } 13 | virtual void set_replaying_history (bool flag, std::string const& observedPath, uint64_t eventId) { } 14 | virtual void did_change (std::string const& path, std::string const& observedPath, uint64_t eventId, bool recursive) = 0; 15 | }; 16 | 17 | PUBLIC void watch (std::string const& path, event_callback_t* callback, uint64_t eventId = kFSEventStreamEventIdSinceNow, CFTimeInterval latency = 1.0); 18 | PUBLIC void unwatch (std::string const& path, event_callback_t* callback); 19 | 20 | } /* fs */ 21 | 22 | #endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 */ 23 | 24 | #endif /* end of include guard: FS_EVENTS_H_E5F4DSTS */ 25 | -------------------------------------------------------------------------------- /Frameworks/DocumentWindow/src/DocumentOpenHelper.h: -------------------------------------------------------------------------------- 1 | #import "FileTypeDialog.h" 2 | #import 3 | 4 | @protocol DocumentOpenHelperDelegate; 5 | 6 | @interface DocumentOpenHelper : NSObject 7 | { 8 | id delegate; 9 | } 10 | @property (nonatomic, assign) id delegate; 11 | - (void)tryOpenDocument:(document::document_ptr const&)aDocument forWindow:(NSWindow*)aWindow delegate:(id )aDelegate; 12 | @end 13 | 14 | @protocol DocumentOpenHelperDelegate 15 | @optional 16 | - (void)documentOpenHelper:(DocumentOpenHelper*)documentOpenHelper didOpenDocument:(document::document_ptr const&)aDocument; 17 | - (void)documentOpenHelper:(DocumentOpenHelper*)documentOpenHelper failedToOpenDocument:(document::document_ptr const&)aDocument error:(std::string const&)aMessage usingFilter:(oak::uuid_t const&)filterUUID; 18 | @end 19 | -------------------------------------------------------------------------------- /Frameworks/plist/src/uuid.h: -------------------------------------------------------------------------------- 1 | #ifndef UUID_H_7R1D1FHT 2 | #define UUID_H_7R1D1FHT 3 | 4 | #include 5 | 6 | namespace oak 7 | { 8 | struct PUBLIC uuid_t 9 | { 10 | uuid_t (); 11 | uuid_t (char const* str); 12 | uuid_t (std::string const& str); 13 | uuid_t (CFUUIDBytes const& bytes); 14 | uuid_t (::uuid_t const& uuid); 15 | uuid_t (uuid_t const& rhs); 16 | 17 | uuid_t& generate (); 18 | 19 | bool operator< (uuid_t const& rhs) const; 20 | bool operator== (uuid_t const& rhs) const; 21 | bool operator!= (uuid_t const& rhs) const; 22 | 23 | EXPLICIT operator bool () const; 24 | operator std::string () const; 25 | 26 | static bool is_valid (std::string const& str); 27 | 28 | ::uuid_t data; 29 | private: 30 | void reset (std::string const& str); 31 | }; 32 | 33 | PUBLIC std::string to_s (oak::uuid_t const& uuid); 34 | 35 | } /* oak */ 36 | 37 | #endif /* end of include guard: UUID_H_7R1D1FHT */ 38 | 39 | -------------------------------------------------------------------------------- /vendor/MASPreferences/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${TARGET_NAME} 9 | CFBundleName 10 | ${TARGET_NAME} 11 | CFBundleIdentifier 12 | com.macromates.${APP_NAME}.${TARGET_NAME} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleSignature 18 | ???? 19 | CFBundleShortVersionString 20 | 1.0.0 21 | CFBundleVersion 22 | 1.0 23 | NSPrincipalClass 24 | ${TARGET_NAME} 25 | 26 | 27 | -------------------------------------------------------------------------------- /Frameworks/Find/resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${TARGET_NAME} 9 | CFBundleName 10 | ${TARGET_NAME} 11 | CFBundleIdentifier 12 | com.macromates.${APP_NAME}.${TARGET_NAME} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleSignature 18 | ???? 19 | CFBundleShortVersionString 20 | 1.0.0 21 | CFBundleVersion 22 | 1.0 23 | NSPrincipalClass 24 | ${TARGET_NAME} 25 | 26 | 27 | -------------------------------------------------------------------------------- /Frameworks/bundles/src/query.h: -------------------------------------------------------------------------------- 1 | #ifndef BUNDLES_QUERY_H_7L9NPR0I 2 | #define BUNDLES_QUERY_H_7L9NPR0I 3 | 4 | #include "index.h" 5 | 6 | namespace bundles 7 | { 8 | PUBLIC bool set_index (std::vector const& items, std::map< oak::uuid_t, std::vector > const& menus); 9 | inline bool set_index (std::vector const& items) { return set_index(items, std::map< oak::uuid_t, std::vector >()); } 10 | 11 | PUBLIC std::vector query (std::string const& field, std::string const& value, scope::context_t const& scope = scope::wildcard, int kind = kItemTypeCommand|kItemTypeDragCommand|kItemTypeGrammar|kItemTypeMacro|kItemTypeSnippet|kItemTypeProxy|kItemTypeTheme, oak::uuid_t const& bundle = oak::uuid_t(), bool filter = true, bool includeDisabledItems = false); 12 | PUBLIC item_ptr lookup (oak::uuid_t const& uuid); 13 | 14 | } /* bundles */ 15 | 16 | #endif /* end of include guard: BUNDLES_QUERY_H_7L9NPR0I */ 17 | -------------------------------------------------------------------------------- /Frameworks/BundleEditor/resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${TARGET_NAME} 9 | CFBundleName 10 | ${TARGET_NAME} 11 | CFBundleIdentifier 12 | com.macromates.${APP_NAME}.${TARGET_NAME} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleSignature 18 | ???? 19 | CFBundleShortVersionString 20 | 1.0.0 21 | CFBundleVersion 22 | 1.0 23 | NSPrincipalClass 24 | ${TARGET_NAME} 25 | 26 | 27 | -------------------------------------------------------------------------------- /Frameworks/HTMLOutput/resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${TARGET_NAME} 9 | CFBundleName 10 | ${TARGET_NAME} 11 | CFBundleIdentifier 12 | com.macromates.${APP_NAME}.${TARGET_NAME} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleSignature 18 | ???? 19 | CFBundleShortVersionString 20 | 1.0.0 21 | CFBundleVersion 22 | 1.0 23 | NSPrincipalClass 24 | ${TARGET_NAME} 25 | 26 | 27 | --------------------------------------------------------------------------------