<table><tr><td style="">ngraham created this revision.<br />ngraham added reviewers: rkflx, VDG, Frameworks, Dolphin.<br />Restricted Application added a project: Frameworks.<br />ngraham requested review of this revision.
</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/D11569">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This patch adjusts the <span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Open With</span></span></span> UI to improve the strings and display apps inline (without a sub-menu) when there are four or fewer.</p>

<p>This presents the following advantages over the status quo:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">All the <span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">open with</span></span></span> menu items form a complete sentence: "Open With Gwenview"; "Open With Application..."; "Open With Other Application..."; "Open With > Other Application..."</li>
<li class="remarkup-list-item">We only use a sub-menu when there are more than 4 entries (which is when the inline app list would start to become unmanageable). This improves speed and usability, since sub-menus are slow and error-prone for all but expert mousers</li>
</ul></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">Right-click on a folder in Dolphin:</li>
<li class="remarkup-list-item">Right-click on an image in Dolphin when there are 4 image handlers registered:</li>
<li class="remarkup-list-item">Right-click on an image in Dolphin when there are 5 image handlers registered:</li>
<li class="remarkup-list-item">Click on any of the menu items in the above cases; all work</li>
<li class="remarkup-list-item"><span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Opened Gwenview</span></span><span style="color: #92969D;"> → </span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">navigated to an image</span></span><span style="color: #92969D;"> → </span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">right-click</span></span></span>: no change, Gwenview uses a custom implementation in <tt style="background: #ebebeb; font-size: 13px;">fileopscontextmanageritem.cpp</tt> rather than this nice API, boo</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>open-with-usability (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11569">https://phabricator.kde.org/D11569</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/widgets/kfileitemactions.cpp</div></div></div><br /><div><strong>To: </strong>ngraham, rkflx, VDG, Frameworks, Dolphin<br /><strong>Cc: </strong>michaelh, ngraham<br /></div>