<table><tr><td style="">amantia created this revision.<br />amantia added reviewers: Plasma, ervin, mlaurent, dvratil, hein, aacid.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8493" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When using multiple screen with a Folder View as a desktop containment, we need to make sure a file belongs only to one screen. The patch adds support for this by:</p>

<ol class="remarkup-list">
<li class="remarkup-list-item">Introducing a ScreenMapper object shared acrossed all Folder Views</li>
<li class="remarkup-list-item">FolderModel registers the screen it resides on if used as a containment</li>
<li class="remarkup-list-item">FolderModel filters out items not on the current screen (if used as a containment)</li>
<li class="remarkup-list-item">FolderModel adds mapping for the newly appeared files. The new files will go to the registered screen having the smallest id. This also means by default all files appear on the screen with the smallest id.</li>
<li class="remarkup-list-item">url/screen mapping is stored in the configuration of each folder view applet. This means duplication of the information, and although they should be in sync unless manually modified, the logic is that the last view's mapping option is used.</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8493" rel="noreferrer">https://phabricator.kde.org/D8493</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>containments/desktop/package/contents/config/main.xml<br />
containments/desktop/package/contents/ui/FolderView.qml<br />
containments/desktop/package/contents/ui/FolderViewLayer.qml<br />
containments/desktop/plugins/folder/CMakeLists.txt<br />
containments/desktop/plugins/folder/foldermodel.cpp<br />
containments/desktop/plugins/folder/foldermodel.h<br />
containments/desktop/plugins/folder/folderplugin.cpp<br />
containments/desktop/plugins/folder/folderplugin.h<br />
containments/desktop/plugins/folder/screenmapper.cpp<br />
containments/desktop/plugins/folder/screenmapper.h</div></div></div><br /><div><strong>To: </strong>amantia, Plasma, ervin, mlaurent, dvratil, hein, aacid<br /><strong>Cc: </strong>plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>