Module | Ui::Qt4::Widgets::NotesBrowserInterface |
In: |
ui/qt/widgets.rb
|
Interface to a widget that can be used to browse and display notes for different annotatable object types.
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.
# File ui/qt/widgets.rb, line 30 def invalidate!() raise 'invalidate!() must be overriden'; 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.
# File ui/qt/widgets.rb, line 39 def show_notes(annotatable_type, annotatable_id, note_list) raise 'show_notes(annotatable_type, annotatable_id, note_list)' + 'must be overriden'; end