Package hsh :: Package curses_display :: Module search_view :: Class SearchView
[hide private]
[frames] | no frames]

Class SearchView

          object --+        
                   |        
           view.View --+    
                       |    
content_view.ContentView --+
                           |
                          SearchView

Instance Methods [hide private]
 
__init__(self, display)
Initialize the new ContentView.
 
get_pattern(self)
Return a compiled regular expression of the current search string.
 
highlight_regions(self, line, search_face)
Given a TextLine object, return a new one with the parts that match the search highlighted.
 
back_history(self, ki)
 
forward_history(self, ki)
 
main_handle(self, ki)
 
close_search(self, ki)
 
search_forward(self, ki)
 
search_backward(self, ki)
 
toggle_case_match(self, ki)

Inherited from content_view.ContentView: delete_left, delete_line, delete_right, draw, draw_cursor, insert, insert_text, is_dirty, move_bottom, move_down, move_end, move_left, move_right, move_search, move_start, move_top, move_up, page_down, page_up, paste, toggle_wrap

Inherited from view.View: change_view, current_job, delete_job, draw_header, draw_line, edit_job, get_face, get_name, has_terminal, header_info, min_height, min_width, next_job, next_window, prev_job, putch, quit, restart_job, set_dirty, set_focus, set_has_terminal, set_visible_job, show_search, wants_terminal

Inherited from view.View (private): _content_win

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, display)
(Constructor)

 

Initialize the new ContentView.

Parameters:
  • display - Where it will be drawn
  • text - What to draw
  • name - Optional unique name, defaulting to class name.
Overrides: object.__init__
(inherited documentation)