InaSAFE Disaster risk assessment tool by AusAid - Dispatcher gui example.
Contact : email@example.com
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
A simple message queue
Clear dynamic message log.
Slot automatically called by Qt on right click on the WebView.
|Parameters:||event – the event that caused the context menu to be called.|
Dynamic event handler - set message state based on event.
Dynamic messages don’t clear the message buffer.
Error message event handler - set message state based on event.
Error messages are treated as dynamic messages - they don’t clear the message buffer.
Slot called when the page is loaded.
|Parameters:||ok (bool) – Flag indicating if the html is loaded.|
Getter to impact path.
Load HTML to this class with the mode specified.
Load html file into webkit.
|Parameters:||file_path (str) – The path of the html file|
Open current selected impact report in browser.
Return the current page contents as html.
Print to console the current page contents as plain text.
Return the current page contents as plain text.
Helper to write the log out as an html file.
Save report in the dock to html.
Show all messages.
Static message event handler - set message state based on event.
Static message events will clear the message buffer before displaying themselves.
Collate all message elements to a single message.