19 #ifndef PROJECTFILE_DIALOG_H
20 #define PROJECTFILE_DIALOG_H
28 #include <QStringList>
173 void setSuppressions(
const QList<SuppressionList::Suppression> &suppressions);
A dialog for editing project file data.
int getSuppressionIndex(const QString &shortText) const
Get mSuppressions index that match the given short text.
void updatePathsAndDefines()
Enable and disable widgets in the 'Paths and Defines' tab.
ProjectFileDialog(ProjectFile *projectFile, bool premium, QWidget *parent=nullptr)
bool mPremium
Is this Cppcheck Premium?
void ok()
ok button pressed, save changes and accept
void browseBuildDir()
Browse for build dir.
void setExcludedPaths(const QStringList &paths)
Set excluded paths to dialog control.
QStringList getLibraries() const
Return selected libraries from the dialog control.
QString getExistingDirectory(const QString &caption, bool trailingSlash)
QString getBuildDir() const
Get Cppcheck build dir.
void setCheckPaths(const QStringList &paths)
Set check paths to dialog control.
void moveIncludePathUp()
Move include path up in the list.
void addExcludePath()
Add new path to exclude list.
void editSuppression(const QModelIndex &index)
Edit suppression (double clicking on suppression)
void saveSettings() const
Load dialog settings.
void removeExcludePath()
Remove excluded path from the list.
QString getImportProject() const
void setBuildDir(const QString &buildDir)
Set build dir.
QStringList getExcludedPaths() const
Return excluded paths from the dialog control.
void addExcludeFile()
Add new file to exclude list.
static QStringList getProjectConfigs(const QString &fileName)
void clearImportProject()
Clear 'import project'.
void moveIncludePathDown()
Move include path down in the list.
void loadFromProjectFile(const ProjectFile *projectFile)
void addCheckPath()
Add new path to check.
void addSuppression()
Add suppression to the list.
void setImportProject(const QString &importProject)
void editExcludePath()
Edit excluded path in the list.
void loadSettings()
Save dialog settings.
void setProjectConfigurations(const QStringList &configs)
void browseImportProject()
Browse for solution / project / compile database.
QStringList getCheckPaths() const
Return check paths from the dialog control.
void removeIncludeDir()
Remove include directory from the list.
void setIncludepaths(const QStringList &includes)
Set include paths to dialog control.
const QList< SuppressionList::Suppression > & getSuppressions() const
Return suppressions from the dialog control.
void setRootPath(const QString &root)
Set project root path to dialog control.
QStringList getProjectConfigurations() const
void addIncludeDir()
Browse for include directory.
void addSingleSuppression(const SuppressionList::Suppression &suppression)
Add a single suppression to dialog control.
QStringList getDefines() const
Return define names from the dialog control.
void browseMisraFile()
Browse for misra file.
void checkAllVSConfigs()
Check for all VS configurations.
~ProjectFileDialog() override
void saveToProjectFile(ProjectFile *projectFile) const
QString getRootPath() const
Return project root path from the dialog control.
QStringList getIncludePaths() const
Return include paths from the dialog control.
void removeSuppression()
Remove selected suppression from the list.
void editIncludeDir()
Edit include directory in the list.
void setUndefines(const QStringList &undefines)
Set undefine names to dialog control.
void removeCheckPath()
Remove path from the list.
void setLibraries(const QStringList &libraries)
Set libraries to dialog control.
void setSuppressions(const QList< SuppressionList::Suppression > &suppressions)
Set suppressions to dialog control.
QStringList getUndefines() const
Return undefine names from the dialog control.
QList< SuppressionList::Suppression > mSuppressions
void setDefines(const QStringList &defines)
Set define names to dialog control.
void editCheckPath()
Edit path in the list.
ProjectFile * mProjectFile
Projectfile path.
A class that reads and writes project files.