ui: Removed Code Blocks project type button
This commit is contained in:
@@ -112,7 +112,6 @@
|
||||
border-top-right-radius: 0px;
|
||||
font-size: 15pt;
|
||||
margin-right: 0px;
|
||||
margin-bottom: 7px;
|
||||
height: 25px;
|
||||
width: 90px;
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ public:
|
||||
virtual ProjectSettings getProjectSettings(const std::string& solutionFilePath) = 0;
|
||||
|
||||
virtual std::string getIdeName() const = 0;
|
||||
virtual std::string getButtonText() const = 0;
|
||||
virtual std::string getDescription() const = 0;
|
||||
virtual std::string getIconPath() const = 0;
|
||||
virtual std::string getFileExtension() const = 0;
|
||||
|
||||
@@ -208,6 +208,11 @@ std::string SolutionParserCodeBlocks::getIdeName() const
|
||||
return "Code Blocks";
|
||||
}
|
||||
|
||||
std::string SolutionParserCodeBlocks::getButtonText() const
|
||||
{
|
||||
return "from Code\nBlocks Project";
|
||||
}
|
||||
|
||||
std::string SolutionParserCodeBlocks::getDescription() const
|
||||
{
|
||||
return "idunno";
|
||||
|
||||
@@ -24,6 +24,7 @@ public:
|
||||
virtual ProjectSettings getProjectSettings(const std::string& solutionFilePath);
|
||||
|
||||
virtual std::string getIdeName() const;
|
||||
virtual std::string getButtonText() const;
|
||||
virtual std::string getDescription() const;
|
||||
virtual std::string getIconPath() const;
|
||||
virtual std::string getFileExtension() const;
|
||||
|
||||
@@ -77,6 +77,18 @@ std::string SolutionParserManager::getParserName(const unsigned int idx) const
|
||||
return "";
|
||||
}
|
||||
|
||||
std::string SolutionParserManager::getParserButtonText(const unsigned int idx) const
|
||||
{
|
||||
if (checkIndex(idx))
|
||||
{
|
||||
return m_solutionParsers[idx]->getButtonText();
|
||||
}
|
||||
|
||||
LOG_WARNING_STREAM(<< "Index is out of range, was " << idx << ". Max is " << m_solutionParsers.size() - 1);
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
std::string SolutionParserManager::getParserDescription(const unsigned int idx) const
|
||||
{
|
||||
if (checkIndex(idx))
|
||||
|
||||
@@ -20,6 +20,7 @@ public:
|
||||
unsigned int getParserCount() const;
|
||||
|
||||
std::string getParserName(const unsigned int idx) const;
|
||||
std::string getParserButtonText(const unsigned int idx) const;
|
||||
std::string getParserDescription(const unsigned int idx) const;
|
||||
std::string getParserFileEnding(const unsigned int idx) const;
|
||||
std::string getParserIdeId(const unsigned int idx) const;
|
||||
|
||||
@@ -204,6 +204,11 @@ std::string SolutionParserVisualStudio::getIdeName() const
|
||||
return "Visual Studio";
|
||||
}
|
||||
|
||||
std::string SolutionParserVisualStudio::getButtonText() const
|
||||
{
|
||||
return "from Visual\nStudio Solution";
|
||||
}
|
||||
|
||||
std::string SolutionParserVisualStudio::getDescription() const
|
||||
{
|
||||
return "Create a new project from an existing Visual Studio Solution file.";
|
||||
@@ -462,7 +467,7 @@ std::vector<std::string> SolutionParserVisualStudio::getProjectBlocks(const std:
|
||||
|
||||
blockStart = subSolution.find(solutionOpenTag);
|
||||
blockEnd = subSolution.find(solutionCloseTag);
|
||||
|
||||
|
||||
blocks.push_back(block);
|
||||
}
|
||||
|
||||
@@ -490,7 +495,7 @@ std::string SolutionParserVisualStudio::getProjectFilePath(const std::string& pr
|
||||
std::vector<std::string> SolutionParserVisualStudio::seperateIncludePaths(const std::vector<std::string>& includePaths) const
|
||||
{
|
||||
std::vector<std::string> seperatedPaths;
|
||||
|
||||
|
||||
for (unsigned int i = 0; i < includePaths.size(); i++)
|
||||
{
|
||||
std::vector<std::string> paths = seperateIncludePaths(includePaths[i]);
|
||||
|
||||
@@ -24,6 +24,7 @@ public:
|
||||
virtual ProjectSettings getProjectSettings(const std::string& solutionFilePath);
|
||||
|
||||
virtual std::string getIdeName() const;
|
||||
virtual std::string getButtonText() const;
|
||||
virtual std::string getDescription() const;
|
||||
virtual std::string getIconPath() const;
|
||||
virtual std::string getFileExtension() const;
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "utility/messaging/type/MessageLoadProject.h"
|
||||
|
||||
#include "utility/solution/SolutionParserVisualStudio.h"
|
||||
#include "utility/solution/SolutionParserCodeBlocks.h"
|
||||
// #include "utility/solution/SolutionParserCodeBlocks.h"
|
||||
|
||||
#include "utility/messaging/type/MessageStatus.h"
|
||||
|
||||
@@ -38,7 +38,7 @@ QtProjectWizzard::QtProjectWizzard(QWidget* parent)
|
||||
|
||||
// wip
|
||||
m_parserManager->pushSolutionParser(std::make_shared<SolutionParserVisualStudio>());
|
||||
m_parserManager->pushSolutionParser(std::make_shared<SolutionParserCodeBlocks>());
|
||||
// m_parserManager->pushSolutionParser(std::make_shared<SolutionParserCodeBlocks>());
|
||||
}
|
||||
|
||||
void QtProjectWizzard::showWindow()
|
||||
|
||||
@@ -100,7 +100,7 @@ void QtProjectWizzardContentSelect::populateWindow(QGridLayout* layout)
|
||||
{
|
||||
for (unsigned int i = 0; i < manager->getParserCount(); i++)
|
||||
{
|
||||
std::string name = manager->getParserName(i);
|
||||
std::string name = manager->getParserButtonText(i);
|
||||
|
||||
QToolButton* button = createProjectButton(name.c_str(),
|
||||
(ResourcePaths::getGuiPath() + "icon/project_vs_256_256.png").c_str());
|
||||
@@ -142,7 +142,7 @@ void QtProjectWizzardContentSelect::populateWindow(QGridLayout* layout)
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
QFrame* container = new QFrame();
|
||||
container->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
|
||||
|
||||
Reference in New Issue
Block a user