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:
@@ -15,6 +15,7 @@ QtWindow::QtWindow(QWidget* parent)
|
||||
: QtWindowStackElement(parent)
|
||||
, m_window(nullptr)
|
||||
, m_title(nullptr)
|
||||
, m_subTitle(nullptr)
|
||||
, m_nextButton(nullptr)
|
||||
, m_previousButton(nullptr)
|
||||
, m_closeButton(nullptr)
|
||||
@@ -81,9 +82,23 @@ void QtWindow::setup()
|
||||
QVBoxLayout* layout = new QVBoxLayout();
|
||||
layout->setContentsMargins(25, 30, 25, 0);
|
||||
|
||||
m_title = new QLabel();
|
||||
m_title->setObjectName("title");
|
||||
layout->addWidget(m_title);
|
||||
{
|
||||
QHBoxLayout* hlayout = new QHBoxLayout();
|
||||
hlayout->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
m_title = new QLabel();
|
||||
m_title->setObjectName("title");
|
||||
hlayout->addWidget(m_title);
|
||||
|
||||
hlayout->addStretch();
|
||||
|
||||
m_subTitle = new QLabel();
|
||||
m_subTitle->setObjectName("subTitle");
|
||||
hlayout->addWidget(m_subTitle);
|
||||
|
||||
layout->addLayout(hlayout);
|
||||
}
|
||||
|
||||
layout->addSpacing(10);
|
||||
|
||||
QWidget* contentWidget = new QWidget();
|
||||
@@ -175,6 +190,14 @@ void QtWindow::updateTitle(QString title)
|
||||
}
|
||||
}
|
||||
|
||||
void QtWindow::updateSubTitle(QString subTitle)
|
||||
{
|
||||
if (m_subTitle)
|
||||
{
|
||||
m_subTitle->setText(subTitle);
|
||||
}
|
||||
}
|
||||
|
||||
void QtWindow::updateNextButton(QString text)
|
||||
{
|
||||
if (m_nextButton)
|
||||
|
||||
Reference in New Issue
Block a user