|
Cppcheck
|
A class that contains project data and manages projects. More...
#include <project.h>
Public Member Functions | |
| Project (QWidget *parent=0) | |
| Project (const QString &filename, QWidget *parent=0) | |
| ~Project () | |
| QString | Filename () const |
| Return the filename of the project. | |
| void | SetFilename (const QString &filename) |
| Set filename for the project file. | |
| bool | IsOpen () const |
| Is the project open? The project is considered to be open if it has an opened project file. | |
| bool | Open () |
| Open existing project file. | |
| bool | Edit () |
| Edit the project file. | |
| void | Create () |
| Create new project file. | |
| ProjectFile * | GetProjectFile () const |
| Return current project file. | |
Private Attributes | |
| QString | mFilename |
| ProjectFile * | mPFile |
| QWidget * | mParentWidget |
A class that contains project data and manages projects.
Currently only project file creation and editing is implemented.
| Project::Project | ( | QWidget * | parent = 0 | ) |
Definition at line 30 of file project.cpp.
| Project::Project | ( | const QString & | filename, |
| QWidget * | parent = 0 |
||
| ) |
Definition at line 37 of file project.cpp.
Definition at line 45 of file project.cpp.
References mPFile.
| void Project::Create | ( | ) |
Create new project file.
Definition at line 126 of file project.cpp.
References mFilename, and mPFile.
Referenced by MainWindow::NewProjectFile().
| bool Project::Edit | ( | ) |
Edit the project file.
Definition at line 85 of file project.cpp.
References ProjectFile::GetCheckPaths(), ProjectFileDialog::GetDefines(), ProjectFile::GetDefines(), ProjectFileDialog::GetExcludedPaths(), ProjectFile::GetExcludedPaths(), ProjectFile::GetIncludeDirs(), ProjectFileDialog::GetIncludePaths(), ProjectFileDialog::GetPaths(), ProjectFileDialog::GetRootPath(), ProjectFile::GetRootPath(), mFilename, mParentWidget, mPFile, ProjectFile::SetCheckPaths(), ProjectFileDialog::SetDefines(), ProjectFile::SetDefines(), ProjectFileDialog::SetExcludedPaths(), ProjectFile::SetExcludedPaths(), ProjectFileDialog::SetIncludepaths(), ProjectFile::SetIncludes(), ProjectFileDialog::SetPaths(), ProjectFileDialog::SetRootPath(), ProjectFile::SetRootPath(), and ProjectFile::Write().
Referenced by MainWindow::EditProjectFile(), and MainWindow::NewProjectFile().
| QString Project::Filename | ( | ) | const |
Return the filename of the project.
Definition at line 50 of file project.cpp.
References mFilename.
Referenced by MainWindow::CheckProject().
| ProjectFile* Project::GetProjectFile | ( | ) | const [inline] |
Return current project file.
Definition at line 82 of file project.h.
References mPFile.
Referenced by MainWindow::CheckProject(), MainWindow::DoCheckFiles(), MainWindow::GetCppcheckSettings(), MainWindow::ReCheck(), and StatsDialog::setProject().
| bool Project::IsOpen | ( | ) | const |
Is the project open? The project is considered to be open if it has an opened project file.
Definition at line 60 of file project.cpp.
References mPFile.
Referenced by MainWindow::CheckProject().
| bool Project::Open | ( | ) |
Open existing project file.
Definition at line 65 of file project.cpp.
References mFilename, mParentWidget, mPFile, ProjectFile::Read(), and ProjectFile::SetFilename().
Referenced by MainWindow::CheckProject().
| void Project::SetFilename | ( | const QString & | filename | ) |
Set filename for the project file.
| filename | Filename. |
Definition at line 55 of file project.cpp.
References mFilename.
QString Project::mFilename [private] |
Definition at line 88 of file project.h.
Referenced by Create(), Edit(), Filename(), Open(), and SetFilename().
QWidget* Project::mParentWidget [private] |
ProjectFile* Project::mPFile [private] |
Definition at line 89 of file project.h.
Referenced by Create(), Edit(), GetProjectFile(), IsOpen(), Open(), and ~Project().
1.7.6.1