Parent

Class/Module Index [+]

Quicksearch

Rabbit::SearchWindow

Attributes

direction[RW]
entry[RW]
window[RW]

Public Class Methods

new(canvas) click to toggle source
# File lib/rabbit/search-window.rb, line 9
def initialize(canvas)
  @canvas = canvas
  @searcher = Searcher.new(canvas)
  init_window
end

Public Instance Methods

empty?() click to toggle source
# File lib/rabbit/search-window.rb, line 33
def empty?
  /\A\s*\z/ =~ @entry.text
end
forward=(forward) click to toggle source
# File lib/rabbit/search-window.rb, line 25
def forward=(forward)
  @direction.active = forward
end
forward?() click to toggle source
# File lib/rabbit/search-window.rb, line 29
def forward?
  @direction.active?
end
hide() click to toggle source
# File lib/rabbit/search-window.rb, line 20
def hide
  send_focus_change(false)
  @window.hide
end
regexp() click to toggle source
# File lib/rabbit/search-window.rb, line 37
def regexp
  @searcher.regexp(@entry.text)
end
show() click to toggle source
# File lib/rabbit/search-window.rb, line 15
def show
  send_focus_change(true)
  @window.show
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.