@@ -49,15 +49,57 @@ public slots:
4949 *
5050 */
5151 void CheckFiles ();
52+
53+ /* *
54+ * @brief Slot to recheck files
55+ *
56+ */
5257 void ReCheck ();
58+
59+ /* *
60+ * @brief Slot to clear all search results
61+ *
62+ */
5363 void ClearResults ();
5464
65+ /* *
66+ * @brief Show errors with type "all"
67+ * @param checked Should errors be shown (truw) or hidden (false)
68+ */
5569 void ShowAll (bool checked);
70+
71+ /* *
72+ * @brief Show errors with type "security"
73+ * @param checked Should errors be shown (truw) or hidden (false)
74+ */
5675 void ShowSecurity (bool checked);
76+
77+ /* *
78+ * @brief Show errors with type "style"
79+ * @param checked Should errors be shown (truw) or hidden (false)
80+ */
5781 void ShowStyle (bool checked);
82+
83+ /* *
84+ * @brief Show errors with type "unused"
85+ * @param checked Should errors be shown (truw) or hidden (false)
86+ */
5887 void ShowUnused (bool checked);
88+
89+ /* *
90+ * @brief Show errors with type "error"
91+ * @param checked Should errors be shown (truw) or hidden (false)
92+ */
5993 void ShowErrors (bool checked);
94+
95+ /* *
96+ * @brief Slot to check all "Show errors" menu items
97+ */
6098 void CheckAll ();
99+
100+ /* *
101+ * @brief Slot to uncheck all "Show errors" menu items
102+ */
61103 void UncheckAll ();
62104
63105 /* *
@@ -66,6 +108,10 @@ public slots:
66108 */
67109 void CheckDirectory ();
68110
111+ /* *
112+ * @brief Slot to open program's settings dialog
113+ *
114+ */
69115 void ProgramSettings ();
70116
71117protected slots:
@@ -76,11 +122,47 @@ protected slots:
76122 */
77123 void CheckDone ();
78124protected:
125+
126+ /* *
127+ * @brief Helper function to toggle all show error menu items
128+ * @param checked Should all errors be shown (true) or hidden (false)
129+ */
79130 void ToggleAllChecked (bool checked);
131+
132+ /* *
133+ * @brief Helper function to enable/disable all check,recheck buttons
134+ *
135+ */
80136 void EnableCheckButtons (bool enable);
137+
138+ /* *
139+ * @brief Helper function to open a dialog to ask user to select files to check
140+ *
141+ * @param mode Dialog open mode (files or directories)
142+ */
81143 void DoCheckFiles (QFileDialog::FileMode mode);
144+
145+ /* *
146+ * @brief Get all files recursively from given path
147+ *
148+ * @param path Path to get files from
149+ * @return List of file paths
150+ */
82151 QStringList GetFilesRecursively (const QString &path);
152+
153+ /* *
154+ * @brief Get our default cppcheck settings
155+ *
156+ * @return Default cppcheck settings
157+ */
83158 Settings GetCppCheckSettings ();
159+
160+ /* *
161+ * @brief Removes all unaccepted (by cppcheck core) files from the list
162+ *
163+ * @param list List to remove unaccepted files from
164+ * @return List of files that are all accepted by cppcheck core
165+ */
84166 QStringList RemoveUnacceptedFiles (const QStringList &list);
85167
86168 /* *
@@ -138,12 +220,46 @@ protected slots:
138220 */
139221 QAction mActionSettings ;
140222
223+ /* *
224+ * @brief Action to show errors with type "all"
225+ *
226+ */
141227 QAction mActionShowAll ;
228+
229+ /* *
230+ * @brief Action to show errors with type "security"
231+ *
232+ */
142233 QAction mActionShowSecurity ;
234+
235+ /* *
236+ * @brief Action to show errors with type "style"
237+ *
238+ */
143239 QAction mActionShowStyle ;
240+
241+ /* *
242+ * @brief Action to show errors with type "unused"
243+ *
244+ */
144245 QAction mActionShowUnused ;
246+
247+ /* *
248+ * @brief Action to show errors with type "error"
249+ *
250+ */
145251 QAction mActionShowErrors ;
252+
253+ /* *
254+ * @brief Action to check all "show error" menu items
255+ *
256+ */
146257 QAction mActionShowCheckAll ;
258+
259+ /* *
260+ * @brief Action to uncheck all "show error" menu items
261+ *
262+ */
147263 QAction mActionShowUncheckAll ;
148264
149265
@@ -160,6 +276,10 @@ protected slots:
160276 */
161277 ThreadHandler mThread ;
162278
279+ /* *
280+ * @brief List of user defined applications to open errors with
281+ *
282+ */
163283 ApplicationList mApplications ;
164284
165285private:
0 commit comments