<table><tr><td style="">rjvbb created this revision.<br />rjvbb added a project: KDevelop.
</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/D9344" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This is a WIP aiming to make KDevelop use the user-specified project name consistently and throughout.</p>
<p>Currently, that name is used only in a few places, the projects toolview and in the titlebar. In all other places where projects are listed by *a* name, the project file name is used which isn't always enough. QMake-based projects in particular will often show up with an ambiguous name like "src" (qtbase, qttools, qtwhatever components imported as projects; their toplevel .pro files don't support that).</p>
<p>Ideally, the user-selected project name should also be used</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">to name the .kdev4 project files</li>
<li class="remarkup-list-item">in the output of kdevelop -l and kdevelop --ps</li>
</ul>
<p>This will remove any ambiguity that could arise from seeing projects listed by their directory name. It will also make it possible to have multiple projects defined for a single source tree (e.g. for separate components in different subfolders, for building mutually-exclusive Qt4, Qt5 or GTk variants, etc.)</p>
<p>It is currently already possible to achieve this goal by renaming and editing the generated .kdev4 files (after closing/unloading the corresponding project).</p>
<hr class="remarkup-hr" />
<p>The current patch is just the first step: generating the project file name with minimal code/API changes. It can be used "as is" but then the "override or use existing file?" dialog will pop up when the project is closed and reloaded.</p>
<p>BUG: 384955</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">figure out how to integrate the new naming with the code that puts up the "override/use existing" dialog (<tt style="background: #ebebeb; font-size: 13px;">equalProjectFile()</tt> called by <tt style="background: #ebebeb; font-size: 13px;">ProjectDialogProvider::askProjectConfigLocation()</tt>)</li>
<li class="remarkup-list-item">nothing should change if the user selects the predetermined project name; verify if this is indeed the case (esp. for the QMake proj. manager)</li>
<li class="remarkup-list-item">check what happens with projects that have different project filename and name (e.g. <tt style="background: #ebebeb; font-size: 13px;">src.kdev4</tt> for a project called <tt style="background: #ebebeb; font-size: 13px;">qtbase</tt>).</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9344" rel="noreferrer">https://phabricator.kde.org/D9344</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kdevplatform/shell/openprojectdialog.cpp</div></div></div><br /><div><strong>To: </strong>rjvbb<br /><strong>Cc: </strong>kdevelop-devel, vbspam, njensen, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger<br /></div>