Analysis
Overview
Create a status bar that allows status messages to be displayed. The messages will be stored in a stack, and pushed onto the stack and popped off.
The status bar can decide to show all of the messages on the stack, or only the last item, allowing for a "default" message, whichever is put on the stack first. Or, messages can be put on the status list with a priority, allowing different display options.
The status bar will be small, no more than 12 pixels tall and be placed across the bottom of the Sophie application window, much the same way browser status bars are displayed.
Task requirements
- Add a status bar across the bottom of the Sophie window
- Make the status bar display the last message added to the status bar
- Make messages consist of an ID and a message.
- Make the default message be the currently selected book
- Use the status bar to display loading status of a book
Task result
The result is code
Implementation idea
- message IDs are considered unique to the status bar. Adding a message with the same ID as an existing message removes the existing message and adds the new one
- Messages can be removed from the status bar via the ID
Related
(Add links to related tasks that could be useful or helpful.)
How to demo
- Show the status bar
- Use features that cause the status bar to change
Design
(Describe your design here.)
Implementation
(Describe and link the implementation results here (from the wiki or the repository).)
Testing
(Place the testing results here.)
Comments
Future Options
- The status bar can be hidden or shown via the window menu "Status Bar" menu item.