ui: Added show files button to summary of compilation database project setup (issue 354)
bug id = 354
This commit is contained in:
@@ -294,6 +294,8 @@ void QtProjectWizzard::selectedProjectType(SourceGroupType sourceGroupType)
|
||||
m_sourceGroupSettings = std::make_shared<SourceGroupSettingsJava>(sourceGroupId, sourceGroupType, m_projectSettings.get());
|
||||
emptyProjectJavaMaven();
|
||||
break;
|
||||
case SOURCE_GROUP_UNKNOWN:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -322,7 +324,10 @@ void QtProjectWizzard::emptyProject()
|
||||
);
|
||||
connect(window, SIGNAL(next()), this, SLOT(sourcePathsJava()));
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
window->updateSubTitle("Project Data");
|
||||
}
|
||||
|
||||
@@ -535,6 +540,7 @@ void QtProjectWizzard::showSummary()
|
||||
else
|
||||
{
|
||||
summary->addContent(new QtProjectWizzardContentDataCDB(m_projectSettings, m_sourceGroupSettings, window, m_editing));
|
||||
summary->addContent(new QtProjectWizzardContentCDBSource(m_sourceGroupSettings, window));
|
||||
summary->addSpace();
|
||||
|
||||
summary->addContent(new QtProjectWizzardContentPathsCDBHeader(m_sourceGroupSettings, window));
|
||||
|
||||
@@ -36,7 +36,8 @@ void QtProjectWizzardContentCDBSource::load()
|
||||
std::shared_ptr<SourceGroupSettingsCxx> cxxSettings = std::dynamic_pointer_cast<SourceGroupSettingsCxx>(m_settings);
|
||||
if (cxxSettings)
|
||||
{
|
||||
std::vector<FilePath> filePaths = IndexerCommandCxxCdb::getSourceFilesFromCDB(cxxSettings->getAbsoluteCompilationDatabasePath());
|
||||
std::vector<FilePath> filePaths =
|
||||
IndexerCommandCxxCdb::getSourceFilesFromCDB(cxxSettings->getAbsoluteCompilationDatabasePath());
|
||||
|
||||
for (FilePath path : filePaths)
|
||||
{
|
||||
|
||||
@@ -291,6 +291,9 @@ void QtProjectWizzardContentDataCDB::pickedCDBPath()
|
||||
m_buildFilePicker->setText(relPath.str().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
m_window->saveContent();
|
||||
m_window->loadContent();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -45,6 +45,11 @@ void QtProjectWizzardWindow::saveContent()
|
||||
m_content->save();
|
||||
}
|
||||
|
||||
void QtProjectWizzardWindow::loadContent()
|
||||
{
|
||||
m_content->load();
|
||||
}
|
||||
|
||||
void QtProjectWizzardWindow::populateWindow(QWidget* widget)
|
||||
{
|
||||
QGridLayout* layout = new QGridLayout();
|
||||
|
||||
@@ -21,6 +21,7 @@ public:
|
||||
void setPreferredSize(QSize size);
|
||||
|
||||
void saveContent();
|
||||
void loadContent();
|
||||
|
||||
static const int FRONT_COL = 0;
|
||||
static const int HELP_COL = 1;
|
||||
|
||||
Reference in New Issue
Block a user