Repository navigation
Conversation
…ExcerptNotation, IMasterNotation and INotationElements
…staffTypeToString
…:possibleZoomPercentageList
…s in INotationConfiguration
…iew as ViewOptions
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
03a1002 to
0aaadca
Compare
…ContinuousPanel, remove the wallpapers from INotationConfiguration
0aaadca to
c6cf0e4
Compare
The public interfaces of
notation(INotation,IExcerptNotation,IMasterNotation,INotationParts,INotationElements,INotationInteraction,INotationContextConfiguration,INotationConfiguration,INotationPainting) usedQString,QColor,QPixmap,QListandqreal, so a host without Qt could not implement or call them. This PR replaces them withmuse::String,muse::draw::Color,std::vectoranddouble. The conversion to the Qt types is done by the callers in the Qt layer (notationscene,preferences,playback,project,instrumentsscene,converter,print,importexport).The wallpapers are the only place where it is not just a type replacement.
INotationConfigurationloaded them asQPixmap, but they are only used to paint the screen (the printing fills the page with white). So the loading is moved to the view:AbstractNotationPaintViewloads and caches them, and passes the page wallpaper toINotationPainting::paintViewandContinuousPanelasstd::shared_ptr<const muse::draw::Pixmap>. The pixmap is shared, so it stays valid for the one who is painting even if the path is changed meanwhile, and it is not copied on every paint.INotationConfigurationonly returns the paths now.Not in this PR: the implementations inside
notationstill use Qt (ValofQColor,SearchCommandsParser, the cursor flash timer,NotationMidiInput), and the models of the Qt layer still useQStringandQColor.Changes
doubleinstead ofqrealinINotationInteraction::addStretchandINotationContextConfigurationStringinstead ofQStringfor the instrument names inINotationParts, for the names inINotation,IExcerptNotation,IMasterNotation::createEmptyExcerptand forINotationElements::searchStringinstead ofQStringinformatInstrumentTitleandstaffTypeToString; the translations usemtrcinstead ofqtrcColorinstead ofQColorandstd::vector<int>instead ofQList<int>inINotationConfigurationINotationPainting::paintViewtakesViewOptions(frameRect,isPrinting,isAutomation,pageWallpaper) instead of the separate parametersAbstractNotationPaintViewloads and caches the wallpapers (QtWallpaperCache);backgroundWallpaper()andforegroundWallpaper()are removed fromINotationConfiguration