Module Ui::NotesBrowserInterface
In: ui/widgets.rb

Interface to a widget that can be used to browse and display notes for different annotatable object types.

Methods

home   invalidate!   reload   show_notes  

Constants

HTML = { :home => '<center><br/><img src="ui/qt/images/dradis.jpg"><h1>dradis 1.1</h1>etdsoft \'08</center>', :bar => '<div><div>actions: <a href="add/#type#/#uid#">add note</a></div><div>show:#catlist# (<a href="filter/all">all</a>)</div></div>', :invalid => '<center><br/><img src="ui/qt/images/dradis.jpg"><p>please, wait until the new revision is downloaded from the server...</p></center>'

Public Instance methods

Display the default page. When a model update is received, the notes browser should be brought back to the default page.

[Source]

    # File ui/widgets.rb, line 43
43:     def home() raise 'unimplemented!'; end

Invalidate the current view as a result of an action performed by the user (i.e. add a new note, edit the current note, etc.). The widget should display some behaviour indicating that the current view is no longer valid and the user should wait until content is refreshed from the server.

[Source]

    # File ui/widgets.rb, line 37
37:     def invalidate!() raise 'unimplemented!'; end

[Source]

    # File ui/widgets.rb, line 39
39:     def reload() raise 'unimplemented!'; end

Given a set of notes (note_list) the widge should display them. Other attributes are passed to the widget in order to be returned when the widget signals editNote or addNote.

[Source]

    # File ui/widgets.rb, line 48
48:     def show_notes(annotatable_type, annotatable_id, note_list) 
49:       raise 'unimplemented!'; 
50:     end

[Validate]