ui: Revised project setup to customer feedback
* Support environment variables in compilation database path * Moved advanced option (compiler flags & exclude paths) to separate dialog * Allow environment variables that contain multiple paths * Renamed 'Project Name' to 'Coati Project Name' * Renamed 'Project File Location' to 'Coati Project Location' * Renamed 'Project Paths' to 'Indexed Paths' * Make all paths chosen by path picker relative to the project location * Disabled name and location changing in project editing and removed project moving * Added sub-titles to project setup dialogs * Warn user when no Indexed Header Paths were set * Deprecated lazy include search: It's only useable and visible to projects holding the key * Split default file extensions for C++ and C bug ids = 234 254 283 293 312 335
This commit is contained in:
@@ -54,6 +54,17 @@ QString QtListItemWidget::getText()
|
||||
|
||||
void QtListItemWidget::setText(QString text)
|
||||
{
|
||||
FilePath relativeRoot = m_list->getRelativeRootDirectory();
|
||||
if (!relativeRoot.empty())
|
||||
{
|
||||
FilePath path(text.toStdString());
|
||||
FilePath relPath(path.relativeTo(relativeRoot));
|
||||
if (relPath.str().size() < path.str().size())
|
||||
{
|
||||
text = QString::fromStdString(relPath.str());
|
||||
}
|
||||
}
|
||||
|
||||
m_data->setText(text);
|
||||
}
|
||||
|
||||
@@ -283,6 +294,16 @@ bool QtDirectoryListBox::isForStrings() const
|
||||
return m_forStrings;
|
||||
}
|
||||
|
||||
const FilePath& QtDirectoryListBox::getRelativeRootDirectory() const
|
||||
{
|
||||
return m_relativeRootDirectory;
|
||||
}
|
||||
|
||||
void QtDirectoryListBox::setRelativeRootDirectory(const FilePath& dir)
|
||||
{
|
||||
m_relativeRootDirectory = dir;
|
||||
}
|
||||
|
||||
void QtDirectoryListBox::resize()
|
||||
{
|
||||
int height = m_list->height() - m_list->viewport()->height();
|
||||
|
||||
Reference in New Issue
Block a user