Changeset View
Changeset View
Standalone View
Standalone View
addons/project/kateprojectinfoviewcodeanalysis.h
Show All 17 Lines | |||||
18 | * Boston, MA 02110-1301, USA. | 18 | * Boston, MA 02110-1301, USA. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef KATE_PROJECT_INFO_VIEW_CODE_ANALYSIS_H | 21 | #ifndef KATE_PROJECT_INFO_VIEW_CODE_ANALYSIS_H | ||
22 | #define KATE_PROJECT_INFO_VIEW_CODE_ANALYSIS_H | 22 | #define KATE_PROJECT_INFO_VIEW_CODE_ANALYSIS_H | ||
23 | 23 | | |||
24 | #include "kateproject.h" | 24 | #include "kateproject.h" | ||
25 | 25 | | |||
26 | #include <QPushButton> | 26 | #include <QComboBox> | ||
27 | #include <QLabel> | ||||
27 | #include <QProcess> | 28 | #include <QProcess> | ||
29 | #include <QPushButton> | ||||
28 | #include <QTreeView> | 30 | #include <QTreeView> | ||
29 | #include <QComboBox> | | |||
30 | 31 | | |||
31 | class KateProjectPluginView; | 32 | class KateProjectPluginView; | ||
32 | class KateProjectCodeAnalysisTool; | 33 | class KateProjectCodeAnalysisTool; | ||
33 | class KMessageWidget; | 34 | class KMessageWidget; | ||
34 | 35 | | |||
35 | /** | 36 | /** | ||
36 | * View for Code Analysis. | 37 | * View for Code Analysis. | ||
37 | * cppcheck and perhaps later more... | 38 | * cppcheck and perhaps later more... | ||
Show All 19 Lines | 44 | public: | |||
57 | * our project. | 58 | * our project. | ||
58 | * @return project | 59 | * @return project | ||
59 | */ | 60 | */ | ||
60 | KateProject *project() const { | 61 | KateProject *project() const { | ||
61 | return m_project; | 62 | return m_project; | ||
62 | } | 63 | } | ||
63 | 64 | | |||
64 | private Q_SLOTS: | 65 | private Q_SLOTS: | ||
65 | /** | 66 | /** | ||
dhaumann: Everything in this file has comments. This function should have one as well. | |||||
67 | * Called if the tool is changed (currently via Combobox) | ||||
68 | */ | ||||
69 | void slotToolSelectionChanged(int); | ||||
70 | | ||||
71 | /** | ||||
66 | * Called if start/stop button is clicked. | 72 | * Called if start/stop button is clicked. | ||
67 | */ | 73 | */ | ||
68 | void slotStartStopClicked(); | 74 | void slotStartStopClicked(); | ||
69 | 75 | | |||
70 | /** | 76 | /** | ||
71 | * More checker output is available | 77 | * More checker output is available | ||
72 | */ | 78 | */ | ||
73 | void slotReadyRead(); | 79 | void slotReadyRead(); | ||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 94 | private: | |||
116 | */ | 122 | */ | ||
117 | QStandardItemModel *m_model; | 123 | QStandardItemModel *m_model; | ||
118 | 124 | | |||
119 | /** | 125 | /** | ||
120 | * running analyzer process | 126 | * running analyzer process | ||
121 | */ | 127 | */ | ||
122 | QProcess *m_analyzer; | 128 | QProcess *m_analyzer; | ||
123 | 129 | | |||
130 | /** | ||||
131 | * currently selected tool | ||||
132 | */ | ||||
124 | KateProjectCodeAnalysisTool *m_analysisTool; | 133 | KateProjectCodeAnalysisTool *m_analysisTool; | ||
125 | 134 | | |||
135 | /** | ||||
136 | * UI element to select the tool | ||||
137 | */ | ||||
126 | QComboBox *m_toolSelector; | 138 | QComboBox *m_toolSelector; | ||
127 | 139 | | |||
140 | /** | ||||
141 | * contains a rich text to explain what the current tool does | ||||
142 | */ | ||||
143 | QString m_toolInfoText; | ||||
128 | }; | 144 | }; | ||
129 | 145 | | |||
130 | #endif | 146 | #endif | ||
131 | 147 | |
Everything in this file has comments. This function should have one as well.