Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Replace popups with non-intrusive notifications #3855

Merged

Conversation

irgolic
Copy link
Member

@irgolic irgolic commented Jun 6, 2019

Issue

The first of (likely) three pull requests implementing #3372

Description of changes

Implements notifications in the bottom right-hand corner of the canvas, allowing a user to accept, reject or dismiss the notification at their own leisure, as opposed to being interrupted by a pop-up pausing the program.

Includes
  • Code changes
  • Tests
  • Documentation

@irgolic irgolic requested a review from ales-erjavec June 6, 2019 12:42
@irgolic irgolic force-pushed the popups-to-non-intrusive-notifications branch 4 times, most recently from 74be9ca to 7596426 Compare June 7, 2019 08:32
@codecov
Copy link

codecov bot commented Jun 7, 2019

Codecov Report

Merging #3855 into master will increase coverage by 0.68%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##           master    #3855      +/-   ##
==========================================
+ Coverage   84.28%   84.97%   +0.68%     
==========================================
  Files         384      378       -6     
  Lines       72736    70496    -2240     
==========================================
- Hits        61307    59905    -1402     
+ Misses      11429    10591     -838

@irgolic irgolic force-pushed the popups-to-non-intrusive-notifications branch 7 times, most recently from 6f7b171 to e323faa Compare June 11, 2019 14:05
@irgolic irgolic changed the title [WIP] Replace popups with non-intrusive notifications Replace popups with non-intrusive notifications Jun 11, 2019
@irgolic irgolic force-pushed the popups-to-non-intrusive-notifications branch 4 times, most recently from cc8145a to 7124a97 Compare June 12, 2019 13:04
Orange/canvas/utils/overlay.py Outdated Show resolved Hide resolved
def handle_response(result):
if result == QMessageBox.Yes:
surveyDialogButtons = NotificationWidget.Ok | NotificationWidget.Close
surveyDialog = NotificationWidget(icon=QIcon("Orange/widgets/icons/information.png"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These icon paths must be absolute. They will not be located unless running at top level installation directory.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used Orange.widgets.gui.resource_filename() in place of absolute paths. Consider this temporary until we receive custom made icons, which will be placed in Orange/canvas/icons, retrieved with canvas_icons().

Orange/canvas/utils/overlay.py Outdated Show resolved Hide resolved
@irgolic irgolic force-pushed the popups-to-non-intrusive-notifications branch from 7124a97 to b344240 Compare June 13, 2019 11:28
@irgolic irgolic force-pushed the popups-to-non-intrusive-notifications branch from b344240 to 2b216b4 Compare June 17, 2019 07:27
@ales-erjavec ales-erjavec changed the title Replace popups with non-intrusive notifications [ENH] Replace popups with non-intrusive notifications Jun 17, 2019
@ales-erjavec ales-erjavec merged commit 67fafb0 into biolab:master Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants