ui: Extended wizzard with simple setup and vs solution parsing
* removed blurry coati background * added language selection to project type window * search for headers in project paths option as part of simple setup * show popup containing list of all analyzed symbols * show build file path in summary and allow refreshing * only force refresh after editing project and something changed
This commit is contained in:
@@ -18,6 +18,11 @@ std::shared_ptr<ConfigManager> ConfigManager::createAndLoad(const std::shared_pt
|
||||
return configManager;
|
||||
}
|
||||
|
||||
std::shared_ptr<ConfigManager> ConfigManager::createCopy()
|
||||
{
|
||||
return std::shared_ptr<ConfigManager>(new ConfigManager(*this));
|
||||
}
|
||||
|
||||
void ConfigManager::clear()
|
||||
{
|
||||
m_values.clear();
|
||||
@@ -215,6 +220,13 @@ void ConfigManager::setValues(const std::string& key, const std::vector<bool>& v
|
||||
setValues(key, stringValues);
|
||||
}
|
||||
|
||||
bool ConfigManager::isValueDefined(const std::string& key) const
|
||||
{
|
||||
std::multimap<std::string, std::string>::const_iterator it = m_values.find(key);
|
||||
|
||||
return (it != m_values.end());
|
||||
}
|
||||
|
||||
bool ConfigManager::load(const std::shared_ptr<TextAccess> textAccess)
|
||||
{
|
||||
std::string text = textAccess->getText();
|
||||
@@ -258,6 +270,12 @@ ConfigManager::ConfigManager()
|
||||
{
|
||||
}
|
||||
|
||||
ConfigManager::ConfigManager(const ConfigManager& other)
|
||||
: m_values(other.m_values)
|
||||
, m_warnOnEmptyKey(other.m_warnOnEmptyKey)
|
||||
{
|
||||
}
|
||||
|
||||
bool ConfigManager::createXmlDocument(bool saveAsFile, const std::string filepath, std::string& output)
|
||||
{
|
||||
bool success = true;
|
||||
|
||||
@@ -14,6 +14,7 @@ class ConfigManager
|
||||
public:
|
||||
static std::shared_ptr<ConfigManager> createEmpty();
|
||||
static std::shared_ptr<ConfigManager> createAndLoad(const std::shared_ptr<TextAccess> textAccess);
|
||||
std::shared_ptr<ConfigManager> createCopy();
|
||||
|
||||
void clear();
|
||||
|
||||
@@ -37,6 +38,8 @@ public:
|
||||
void setValues(const std::string& key, const std::vector<float>& values);
|
||||
void setValues(const std::string& key, const std::vector<bool>& values);
|
||||
|
||||
bool isValueDefined(const std::string& key) const;
|
||||
|
||||
bool load(const std::shared_ptr<TextAccess> textAccess);
|
||||
void save(const std::string filepath);
|
||||
std::string toString();
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
#ifndef MESSAGE_NEW_PROJECT_H
|
||||
#define MESSAGE_NEW_PROJECT_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
|
||||
class MessageNewProject : public Message<MessageNewProject>
|
||||
{
|
||||
public:
|
||||
MessageNewProject(const std::string& projectName, const std::string projectLocation,
|
||||
const std::vector<std::string>& sourceFiles, const std::vector<std::string>& includePaths)
|
||||
: projectName(projectName)
|
||||
, projectLocation(projectLocation)
|
||||
, projectSourceFiles(sourceFiles)
|
||||
, projectIncludePaths(includePaths)
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageNewProject";
|
||||
}
|
||||
|
||||
virtual void print(std::ostream& os) const
|
||||
{
|
||||
}
|
||||
|
||||
const std::string projectName;
|
||||
const std::string projectLocation;
|
||||
const std::vector<std::string> projectSourceFiles;
|
||||
const std::vector<std::string> projectIncludePaths;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_NEW_PROJECT_H
|
||||
@@ -0,0 +1,32 @@
|
||||
#ifndef MESSAGE_PROJECT_NEW_H
|
||||
#define MESSAGE_PROJECT_NEW_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
|
||||
class MessageProjectNew
|
||||
: public Message<MessageProjectNew>
|
||||
{
|
||||
public:
|
||||
MessageProjectNew()
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageProjectNew";
|
||||
}
|
||||
|
||||
bool fromVisualStudioSolution() const
|
||||
{
|
||||
return visualStudioSolutionPath.size() > 0;
|
||||
}
|
||||
|
||||
void setVisualStudioSolutionPath(const std::string& path)
|
||||
{
|
||||
visualStudioSolutionPath = path;
|
||||
}
|
||||
|
||||
std::string visualStudioSolutionPath;
|
||||
};
|
||||
|
||||
#endif // MESSAGE_PROJECT_NEW_H
|
||||
Reference in New Issue
Block a user