# Encoding: UTF-8 [{beforeRunningCommand: "nop", command: "${TM_RUBY:-ruby} \"$TM_BUNDLE_SUPPORT/bin/add_file.rb\"", fallbackInput: "word", input: "selection", keyEquivalent: "@u", name: "Add File", output: "replaceSelectedText", scope: "source.qmake", uuid: "82073EA0-7D10-4A6C-AF49-54B29FA3AF1E"}, {beforeRunningCommand: "nop", command: "\"${TM_BUNDLE_SUPPORT}/bin/build_qt_project.rb\"", input: "none", keyEquivalent: "@b", name: "Build", output: "showAsHTML", scope: "source.c++.qt, source.qmake", uuid: "AAAD64D1-8C69-4645-853E-B6DD3D04AC67"}, {beforeRunningCommand: "nop", command: "#!/bin/sh\n\"${TM_BUNDLE_SUPPORT}/bin/build_qt_project.rb\" && \"${TM_BUNDLE_SUPPORT}/bin/run_qt_project.rb\"", input: "none", keyEquivalent: "@R", name: "Build & Run", output: "showAsHTML", scope: "source.c++.qt, source.qmake", uuid: "22F431D0-0CB5-4CAB-951F-8C0E7396891F"}, {beforeRunningCommand: "nop", command: "${TM_RUBY:-ruby} \"$TM_BUNDLE_SUPPORT/bin/insert_class.rb\"", input: "none", name: "Class", output: "insertAsSnippet", scope: "source.c++.qt", tabTrigger: "qclass", uuid: "1DB2A2E8-5E25-4442-9DE1-335E09854C9F"}, {beforeRunningCommand: "nop", command: "${TM_RUBY:-ruby} \"$TM_BUNDLE_SUPPORT/bin/insert_class.rb\" doxygen", input: "none", name: "Class (with Doxygen)", output: "insertAsSnippet", scope: "source.c++.qt", tabTrigger: "qclassdoxy", uuid: "BFD08AAF-3AB2-4C55-9A57-2EB75ECD9CD1"}, {beforeRunningCommand: "nop", command: "# Converts method declarations to their\n# out-of-class-declaration implementations.\n#\n# Could be applied to bunch of methods in\n# selection.\n\n${TM_RUBY:-ruby} \"$TM_BUNDLE_SUPPORT/bin/declaration_to_implementation.rb\"", fallbackInput: "line", input: "selection", keyEquivalent: "@u", name: "Declaration to Implementation", output: "insertAsSnippet", scope: "source.c++.qt", uuid: "C4517F03-DB1A-434E-BF29-F13DA337B20F"}, {beforeRunningCommand: "nop", command: "# Converts method declarations to their\n# out-of-class-declaration implementations\n# with Doxygen placeholders in place.\n#\n# Could be applied to bunch of methods in\n# selection.\n#\n# It's possible to override Doxygen placeholders\n# after specifying name of the class.\n\n${TM_RUBY:-ruby} \"$TM_BUNDLE_SUPPORT/bin/declaration_to_implementation.rb\" doxygen", fallbackInput: "line", input: "selection", keyEquivalent: "@u", name: "Declaration to Implementation (with Doxygen)", output: "insertAsSnippet", scope: "source.c++.qt", uuid: "97D13B6C-9CC2-4CAD-8CD3-80DC9CBC1968"}, {beforeRunningCommand: "nop", command: "${TM_RUBY:-ruby} \"$TM_BUNDLE_SUPPORT/bin/search.rb\" input", fallbackInput: "word", input: "selection", keyEquivalent: "^@h", name: "Display Documentation", output: "showAsHTML", scope: "source.c++.qt", uuid: "D4885A64-9FF5-43BA-8D5E-AEB71E9E08C2"}, {beforeRunningCommand: "nop", command: "${TM_RUBY:-ruby} \"$TM_BUNDLE_SUPPORT/bin/search.rb\" fuzzy input", fallbackInput: "word", input: "selection", keyEquivalent: "^~@h", name: "Display Fuzzy Documentation", output: "showAsHTML", scope: "source.c++.qt", uuid: "F34F4BC0-C09C-4DAC-9B0C-EE7173964090"}, {beforeRunningCommand: "nop", command: "#!/usr/bin/env ruby\nrequire ENV['TM_SUPPORT_PATH']+'/lib/exit_codes'\n\nword = (ENV['TM_SELECTED_TEXT'] or ENV['TM_CURRENT_WORD'] or '')\ndir = (ENV['TM_QT_DOC_DIR'] or '/usr/local/Trolltech/Qt-4.2.0/doc/html')\n\nword.strip! unless word.frozen?\n\nif word.nil?\n puts \"Nothing given to search for.\"\n \nelse\n doc_file = \"\#{dir}/\#{word.downcase}.html\"\n \n if File.exists? doc_file\n TextMate::exit_show_html \"\"\n else\n spotted = `mdfind \#{word}`\n files = spotted.grep %r{^\#{Regexp::escape dir}/.+\\.html$}\n \n unless files.any?\n puts \"No Documentation found for '\#{word}'.\"\n else\n puts %{\n \n
(.{16,})<\\/p>/).first\n \n unless intro.nil?\n intro = intro.first.gsub(/<.+?>/, '')[0..(107-title.size)]+'…'\n end\n \n puts %{