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

fix #116586: load sfz in background #2700

Closed
wants to merge 1 commit into from

Conversation

hpfmn
Copy link
Contributor

@hpfmn hpfmn commented Jun 27, 2016

load sfz files in background and display a progress bar in the status bar

@hpfmn hpfmn force-pushed the ZerberusLoadSFZBackground branch from e0cf890 to 4187b0a Compare June 27, 2016 15:45
_progressDialog->exec();
_progressDialog->open();
_progressBar = Ms::mscore->showProgressBar();
_progressBar->setFormat(tr("Loading sfz %p%"));

Choose a reason for hiding this comment

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

The last percent(%) in the format string should also be escaped!

@hpfmn hpfmn force-pushed the ZerberusLoadSFZBackground branch from 4187b0a to a2e8f1f Compare June 30, 2016 19:52
@lasconic
Copy link
Contributor

It's a good idea to use the MuseScore progress bar, so the UI is not blocked by a progress dialog. But from a code perspective, it's not really good to have Zerberus relying on MuseScore. It would maybe be better to send progress information in a signal and have someone listening to this information. For example, MuseScore could listen to it and display progress information in its progress bar. I close this PR, feel free to do a better one based on my comment (or not :)

@lasconic lasconic closed this Sep 14, 2016
@@ -14,8 +14,23 @@ include (${PROJECT_SOURCE_DIR}/build/gch.cmake)

QT5_WRAP_UI (zerberusUi zerberus_gui.ui)

include_directories(
Copy link
Contributor

Choose a reason for hiding this comment

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

Not really sure why all of this should be added here.

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.

3 participants