|
Cppcheck
|
A dialog that shows project and scan statistics. More...
#include <statsdialog.h>
Public Member Functions | |
| StatsDialog (QWidget *parent=0) | |
| void | setProject (const Project &project) |
| Sets the project to extract statistics from. | |
| void | setPathSelected (const QString &path) |
| Sets the string to display beside "Path Selected:". | |
| void | setNumberOfFilesScanned (int num) |
| Sets the number to display beside "Number of Files Scanned:". | |
| void | setScanDuration (double seconds) |
| Sets the number of seconds to display beside "Scan Duration:". | |
| void | setStatistics (const CheckStatistics *stats) |
| Sets the numbers of different error/warnings found. | |
Private Slots | |
| void | copyToClipboard () |
Private Attributes | |
| Ui::StatsDialog | mUI |
| CheckStatistics * | mStatistics |
A dialog that shows project and scan statistics.
Definition at line 35 of file statsdialog.h.
| StatsDialog::StatsDialog | ( | QWidget * | parent = 0 | ) |
Definition at line 29 of file statsdialog.cpp.
References copyToClipboard(), and mUI.
| void StatsDialog::copyToClipboard | ( | ) | [private, slot] |
Definition at line 92 of file statsdialog.cpp.
References CheckStatistics::GetCount(), mStatistics, mUI, ShowTypes::ShowErrors, ShowTypes::ShowInformation, ShowTypes::ShowPerformance, ShowTypes::ShowPortability, ShowTypes::ShowStyle, and ShowTypes::ShowWarnings.
Referenced by StatsDialog().
| void StatsDialog::setNumberOfFilesScanned | ( | int | num | ) |
Sets the number to display beside "Number of Files Scanned:".
Definition at line 58 of file statsdialog.cpp.
References mUI.
Referenced by MainWindow::ShowStatistics().
| void StatsDialog::setPathSelected | ( | const QString & | path | ) |
Sets the string to display beside "Path Selected:".
Definition at line 53 of file statsdialog.cpp.
References mUI.
Referenced by MainWindow::ShowStatistics().
| void StatsDialog::setProject | ( | const Project & | project | ) |
Sets the project to extract statistics from.
Definition at line 37 of file statsdialog.cpp.
References ProjectFile::GetCheckPaths(), ProjectFile::GetDefines(), ProjectFile::GetIncludeDirs(), Project::GetProjectFile(), ProjectFile::GetRootPath(), and mUI.
Referenced by MainWindow::ShowStatistics().
| void StatsDialog::setScanDuration | ( | double | seconds | ) |
Sets the number of seconds to display beside "Scan Duration:".
Definition at line 63 of file statsdialog.cpp.
References mUI.
Referenced by MainWindow::ShowStatistics().
| void StatsDialog::setStatistics | ( | const CheckStatistics * | stats | ) |
Sets the numbers of different error/warnings found.
"
Definition at line 239 of file statsdialog.cpp.
References CheckStatistics::GetCount(), mStatistics, mUI, ShowTypes::ShowErrors, ShowTypes::ShowInformation, ShowTypes::ShowPerformance, ShowTypes::ShowPortability, ShowTypes::ShowStyle, and ShowTypes::ShowWarnings.
Referenced by MainWindow::ShowStatistics().
CheckStatistics* StatsDialog::mStatistics [private] |
Definition at line 70 of file statsdialog.h.
Referenced by copyToClipboard(), and setStatistics().
Ui::StatsDialog StatsDialog::mUI [private] |
Definition at line 69 of file statsdialog.h.
Referenced by copyToClipboard(), setNumberOfFilesScanned(), setPathSelected(), setProject(), setScanDuration(), setStatistics(), and StatsDialog().
1.7.6.1