feat(ui): new progress_bar service
Description
Currently, the job_bar is a sight::ui::dialog_editor
and it places the related progress_bar is the statusBar() of the container which is managed by Qt.
We want to use an sight::ui::editor
, then we will be able to manage where we want to place the progress_bar.
Proposal
Create a service that is a QObject and editor.
Functional specifications
Should be the similar as previously. There is a label that informs the user about the pending job, a progress bar with percentage, and a button to cancel the action.
Technical specifications
Copy job_bar.cpp and make it like an sight editor. Make a separately new qt widget and don't set it in a statusBar. Set a QHBoxLayout
with a QProgressBarand
and a QPushButton
for a cancel button. Finally add it inside the qt_container.
Add an appropriate REGISTRY_KEY
to link the widget and the service.
After discussing, we decided to turn back in order to avoid difficulties. Ultimately, we will create a modules::ui:qt editor service that will directly manage the Qt implementation.
Add new test on this service.
Test plan
Run new tests related to the new service.