plugins/application/lib/application/dialog.rb in redcar-0.3.5 vs plugins/application/lib/application/dialog.rb in redcar-0.3.6
- old
+ new
@@ -73,11 +73,34 @@
def self.input(title, message, initial_value="", &validator)
Redcar.gui.dialog_adapter.input(title, message, initial_value, &validator)
end
# Shows a tool tip to the user, at the cursor location.
- def self.tool_tip(message)
- Redcar.gui.dialog_adapter.tool_tip(message)
+ #
+ # Allowed locations:
+ # * :cursor - the location of the text cursor in the focussed text widget
+ # * :pointer - the location of the mouse pointer
+ #
+ # If :cursor is specified with no open tab, it will default to :pointer.
+ #
+ # @param [String] message
+ # @param [Symbol] location
+ def self.tool_tip(message, location)
+ Redcar.gui.dialog_adapter.tool_tip(message, location)
+ end
+
+ # Shows a popup menu to the user.
+ #
+ # Allowed locations:
+ # * :cursor - the location of the text cursor in the focussed text widget
+ # * :pointer - the location of the mouse pointer
+ #
+ # If :cursor is specified with no open tab, it will default to :pointer.
+ #
+ # @param [Redcar::Menu] menu
+ # @param [Symbol] location
+ def self.popup_menu(menu, location)
+ Redcar.gui.dialog_adapter.popup_menu(menu, location)
end
end
end
end
\ No newline at end of file