-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement task progress indicator (and dialog) in the toolbar (#6443)
* First draft of a task progress dialog Implemented a task progress dialog using a TaskProgressView. Tasks show up, but without info. Neither the progress nor title and message are shown. * Added progress indicator in JabRefFrame There now i a progress indicator at the rightmost postition of JabRefs toolbar. It shows the average progress of all running background tasks. Clicking it will show a TaskProgressDialog. still looks ugly and the binding to the average progress does not seem to be working. * Beautified progressindicator and added localization * Changed to Task<?> in the Tasklist. This makes the view work with download tasks for example. Most other tasks are still shown without title, message (because none are set) and progress. Also, there are a lot of tasks somehow. The progress indicator in the main view still does not work as I can't get the bindings to work. * Resolved typing issues for bindings The progress indicator is now successfully bound to the list of tasks. However, tasks do not show up in the dialogue any more. * Converted list of Properties to tasks for listbind When using ObjectProperties in the list of tasks, we can use EasyBind to convert the list into a list of tasks which in turn can be bound to the list of tasks in the view. With this, the basic functionality works. There is a progress indicator in the toolbar that shows the average progress of all running background tasks. It is indeterminate if any task has indeterminate progress and shows 100% if no tasks are running. Clicking it opens an overview of all running tasks and their progress. Currently, there are many tasks running all the time. The only tasks that were adapted for this to be pretty are the download tasks, and they are also still missing an icon. * New Tasks are first in the list * Use a PopOver instead of a dialog * Only show download tasks * Better messages for download tasks These are shorter and therefore the task progress view does not need a horizontal scroll bar. * Type Witnesses are not needed any more. * Added extractor to task list * Made anyTaskRunningBinding public For consistency with other variables * Removed ObjectProperty wrapping * NOT WORKING: quit dialogue * Cleanup * Fix in dialog service Make showProgressDialogAndWait actually not only show but also wait. * Add extractor for isRunning * More informative (and working) quit dialog The dialog that is shown when the user quits JabRef during ongoing background tasks now shows which background tasks are still running. When all of them complete or the user chooses to quit anyway, JabRef quits. The user can also cancel the dialog. In that case, the dialog closes and JobRef remains running. * Added graphics callback * Fixed some style issues There are still some ImportOrder errors though where I can see no issue. * Registered the save task as background task This makes the dialog that pops up if background tasks are running wait for pending saves. * Revert "Registered the save task as background task" This reverts commit d7442cc. * Added note on dialog-order upon close * Updated changelog * Fixed style * Quickfix for resizing indicator when indeterminate Set the pref-width when the indicator is determinate to keep the indeterminate state from making the indicator wider. * Styled dialog waiting for background tasks * Minor style fix * Removed Globals from DefaultTaskExecutor Addresses #6443 (comment) * Removed WaitForBackgroundtasksFinishedDialog More in line with the other JabRef dialogs Addresses #6443 (comment) * Made Bindings in StateManager private Addresses #6443 (comment) * Added tooltip to progress indicator Addresses #6443 (comment) * Not working: own styleclass for toolbar progress indicator Tries to address #6443 (comment) * Changed callback to method in BackgroundTask Addresses #6443 (comment) * Fixed progress-indicator styling * Improve getIcon method * Well, I said hopefully ;-) * Revert "Well, I said hopefully ;-)" This reverts commit 0557c67. * Revert "Improve getIcon method" This reverts commit 478ee05. * Improved readability in JabRefFrame Co-authored-by: Benedikt Tutzer <benedikt.tutzer@gmail.com> Co-authored-by: Tobias Diez <tobiasdiez@gmx.de>
- Loading branch information
1 parent
9a62760
commit 4423d27
Showing
12 changed files
with
254 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.