<table><tr><td style="">rjvbb added a comment.
</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/D6531" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>I must admit I use split mode so infrequently that I never really registered that each view has its own document list menu.</p>
<p>How can we integrate these two features? I see two global approaches:</p>
<ol class="remarkup-list">
<li class="remarkup-list-item">Let the Dock menu reflect the doc list of the active view</li>
<li class="remarkup-list-item">Somehow merge all document list menus and show an exhaustive menu in the Dock</li>
</ol>
<p>Option 1) will be the simpler one to implement provided there is (or can be) a Container method/slot that gets called when you activate one of its documents. I tried <tt style="background: #ebebeb; font-size: 13px;">Container::widgetActivated()</tt> but that one apparently doesn't get called when you click in a document that was already open (but in a different container than the current one). It could also be the more confusing implementation.</p>
<p>Option 2) will depend on whether user Dock menus can have submenus (I think but to be confirmed) or else we'd need to use separators between the lists from different containers. Do these containers have internal names that have meaning for the user or else how to name the submenus? And of course, who will own the merged menu (or do we make it a global static)?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R33 KDevPlatform</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D6531" rel="noreferrer">https://phabricator.kde.org/D6531</a></div></div><br /><div><strong>To: </strong>rjvbb, KDevelop, kfunk<br /><strong>Cc: </strong>kfunk, kdevelop-devel, kde-mac, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger<br /></div>