* changed help texts * use help buttons instead of descriptions in dialogs * fixed show files button not up-to-date with directory list box * fixed source file extensions shown in cdb setup * refactored size and content setting for project content classes
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
#ifndef QT_PROJECT_WIZZARD_CONTENT_SELECT_H
|
|
#define QT_PROJECT_WIZZARD_CONTENT_SELECT_H
|
|
|
|
#include "qt/window/project_wizzard/QtProjectWizzardContent.h"
|
|
|
|
class QButtonGroup;
|
|
class SolutionParserManager;
|
|
|
|
class QtProjectWizzardContentSelect
|
|
: public QtProjectWizzardContent
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
enum ProjectType : int
|
|
{
|
|
PROJECT_EMPTY = 0,
|
|
PROJECT_CDB = 1,
|
|
PROJECT_MANAGED = 2 // use this type for all standard parser (parsers that are handled by the parser manager)
|
|
};
|
|
|
|
QtProjectWizzardContentSelect(
|
|
std::shared_ptr<ProjectSettings> settings,
|
|
QtProjectWizzardWindow* window,
|
|
std::weak_ptr<SolutionParserManager> solutionParserManager);
|
|
|
|
// QtProjectWizzardContent implementation
|
|
virtual void populate(QGridLayout* layout, int& row) override;
|
|
|
|
virtual void save() override;
|
|
virtual bool check() override;
|
|
|
|
signals:
|
|
void selected(LanguageType, QtProjectWizzardContentSelect::ProjectType);
|
|
|
|
private:
|
|
QButtonGroup* m_languages;
|
|
QButtonGroup* m_buttons;
|
|
|
|
QLabel* m_title;
|
|
QLabel* m_description;
|
|
|
|
std::vector<std::string> m_projectTypeNames;
|
|
std::vector<std::string> m_projectTypeDescriptions;
|
|
std::vector<std::string> m_projectTypeIconPaths;
|
|
|
|
std::weak_ptr<SolutionParserManager> m_solutionParserManager;
|
|
std::vector<std::string> m_solutionDescription;
|
|
};
|
|
|
|
#endif // QT_PROJECT_WIZZARD_CONTENT_SELECT_H
|