Class Ui::Qt4::Widgets::NotesBrowser
In: ui/qt/widgets/notesbrowser.rb
Parent: Qt::Widget

Methods

home   invalidate!   new   reload   show_notes  

Included Modules

NotesBrowserInterface

Public Class methods

[Source]

    # File ui/qt/widgets/notesbrowser.rb, line 36
36:         def initialize(parent=nil)
37:           super(parent)
38:           @layout = Qt::GridLayout.new(self)
39:           @t = Qt::TextBrowser.new
40:           @layout.addWidget(@t, 0, 0, 1, 1)
41:           @layout.margin = @layout.spacing = 0
42:           
43:           @html_default='<center><br/><img src="ui/qt/images/dradis.jpg"><h1>dradis 1.0</h1>etdsoft \'07</center>'
44:           @html_bar='<div><div>actions: <a href="add/#type#/#uid#">add note</a></div><div>show:#catlist# (<a href="filter/all">all</a>)</div></div>'
45:           @html_invalid='<center><br/><img src="ui/qt/images/dradis.jpg"><p>please, wait until the new revision is downloaded from the server...</p></center>'
46:           
47:           #@t = self
48:           @t.html= @last_html = @html_default
49:           connect @t, SIGNAL('anchorClicked(QUrl)'), self, SLOT('anchor_clicked(QUrl)')
50:           #self.openExternalLinks=  false
51:         end

Public Instance methods

[Source]

     # File ui/qt/widgets/notesbrowser.rb, line 130
130:         def home() @t.html = @html_default; end

[Source]

     # File ui/qt/widgets/notesbrowser.rb, line 128
128:         def invalidate!() @t.html = @html_invalid; end

[Source]

     # File ui/qt/widgets/notesbrowser.rb, line 129
129:         def reload() @t.reload; end

[Source]

     # File ui/qt/widgets/notesbrowser.rb, line 132
132:         def show_notes(annotatable_type, annotatable_id, note_list)
133:           @type = annotatable_type
134:           @id = annotatable_id
135:           @notes = note_list
136:           
137:           filter_and_display()
138:         end

[Validate]