28 #include <QStringList>
65 void clear(
bool results);
70 void clear(
const QString &filename);
91 void save(
const QString &filename,
Report::Type type,
const QString& productName)
const;
111 bool showNoErrorsMessage,
113 bool showInconclusive);
299 void progress(
int value,
const QString& description);
329 void print(QPrinter* printer);
339 void log(
const QString &str);
List of applications user has specified to open errors with.
A class for check statistics.
A class containing error data for one error.
Widget to show cppcheck progressbar and result.
void progress(int value, const QString &description)
Slot for updating the checking progress.
void logClear()
Clear log messages.
bool isSuccess() const
Are there successful results?
bool hasResults() const
Do we have results from check?
void updateSettings(bool showFullPath, bool saveFullPath, bool saveAllErrors, bool showNoErrorsMessage, bool showErrorId, bool showInconclusive)
Update tree settings.
bool hasVisibleResults() const
Do we have visible results to show?
void showResults(ShowTypes::ShowType type, bool show)
Show/hide certain type of errors Refreshes the tree.
void checkSelected(QStringList selectedFilesList)
Signal to perform recheck of selected files.
void setCheckSettings(const Settings &settings)
Set settings used in checking.
void suppressIds(QStringList ids)
Suppress Ids.
bool mShowNoErrorsMessage
Should we show a "No errors found dialog" every time no errors were found?
void save(const QString &filename, Report::Type type, const QString &productName) const
Save results to a file.
void updateStyleSetting(QSettings *settings)
Update Code Editor Style.
void setCheckDirectory(const QString &dir)
Set the directory we are checking.
void showCppcheckResults(bool show)
Show/hide cppcheck errors.
QString mCriticalErrors
Critical error ids.
void collapseAllResults()
Collapse all results in the result list.
void readErrorsXml(const QString &filename)
Read errors from report XML file.
ResultsView(QWidget *parent=nullptr)
void updateDetails(const QModelIndex &index)
Update detailed message when selected item is changed.
void printPreview()
Slot opening a print preview dialog.
CheckStatistics * mStatistics
void checkingFinished()
Inform the view that checking finished.
void print()
Slot opening a print dialog to print the current report.
void clear(bool results)
Clear results and statistics and reset progressinfo.
void disableProgressbar()
void showHiddenResults()
Show hidden results in the result list.
void showClangResults(bool show)
Show/hide clang-tidy/clang-analyzer errors.
void resultsHidden(bool hidden)
Signal that results have been hidden or shown.
ResultsView(const ResultsView &)=delete
void error(const ErrorItem &item)
Slot for new error to be displayed.
Settings * mCheckSettings
void gotResults()
Signal to be emitted when we have results.
void on_mListLog_customContextMenuRequested(const QPoint &pos)
Custom context menu for Analysis Log.
void expandAllResults()
Expand all results in the result list.
bool mSuccess
Set to true when checking finish successfully.
void translate()
Translate this view.
void logCopyComplete()
Copy all log messages.
void log(const QString &str)
Log message.
void clearRecheckFile(const QString &filename)
Remove a recheck file from the results.
void checkingStarted(int count)
Inform the view that checking has started.
void saveSettings(QSettings *settings)
Save View's settings.
void debugError(const ErrorItem &item)
debug message
void updateFromOldReport(const QString &filename) const
Update results from old report (tag, sinceDate)
const CheckStatistics * getStatistics() const
Return checking statistics.
const ShowTypes & getShowTypes() const
Return Showtypes.
void saveStatistics(const QString &filename) const
Write statistics in file.
void logCopyEntry()
Copy selected log message entry.
ResultsView & operator=(const ResultsView &)=delete
void stopAnalysis()
This function should be called when analysis is stopped.
void filterResults(const QString &filter)
Filters the results in the result list.
QString getCheckDirectory()
Get the directory we are checking.
void handleCriticalError(const ErrorItem &item)
If provided ErrorItem is a critical error then display warning message in the resultsview.
void initialize(QSettings *settings, ApplicationList *list, ThreadHandler *checkThreadHandler)
This is just a container for general settings so that we don't need to pass individual values to func...
A class for different show types we have.
ShowType
Show types we have (i.e.
This class handles creating threadresult and starting threads.