Added a HTML tooltip method to tm_dialog, invoked with -h
It takes a single key (content) in the input plist (provided with -p or stdin).
The value is the HTML to display. Any keystrokes in the editor will dismiss the
tooltip.
The content is actually wrapped in an empty document with some basic styling
(this is necessary to allow automatic sizing of the tooltip). The content given
could include more styles.
You can add this method to TextMate::UI to use it from Ruby:
def show_tool_tip(options = Hash.new)
options = {'content' => options} if options.is_a? String
IO.popen('"$DIALOG" -h', 'w') do |proc|
proc << options.to_plist
proc.close_write
end
end
Note: RUN THIS THROUGH A TEXTMATE COMMAND *ONLY* as it seems to crash otherwise
(this includes using RubyMate or Terminal to run it)
Changed:
U branches/WIP/Tools/Dialog PlugIn/Dialog.h
U branches/WIP/Tools/Dialog PlugIn/Dialog.mm
U branches/WIP/Tools/Dialog PlugIn/Dialog.xcodeproj/project.pbxproj
A branches/WIP/Tools/Dialog PlugIn/HTMLTip.nib/
A branches/WIP/Tools/Dialog PlugIn/HTMLTip.nib/classes.nib
A branches/WIP/Tools/Dialog PlugIn/HTMLTip.nib/info.nib
A branches/WIP/Tools/Dialog PlugIn/HTMLTip.nib/keyedobjects.nib
A branches/WIP/Tools/Dialog PlugIn/TMDHTMLTips.h
A branches/WIP/Tools/Dialog PlugIn/TMDHTMLTips.mm
U branches/WIP/Tools/Dialog PlugIn/tm_dialog.mm
_______________________________________________
textmate-dev mailing list
[email protected]
http://lists.macromates.com/mailman/listinfo/textmate-dev