Changeset View
Changeset View
Standalone View
Standalone View
shell/problemstore.h
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Line(s) | 75 | public: | |||
---|---|---|---|---|---|
77 | ~ProblemStore() override; | 77 | ~ProblemStore() override; | ||
78 | 78 | | |||
79 | /// Adds a problem | 79 | /// Adds a problem | ||
80 | virtual void addProblem(const IProblem::Ptr &problem); | 80 | virtual void addProblem(const IProblem::Ptr &problem); | ||
81 | 81 | | |||
82 | /// Clears the current problems, and adds new ones from a list | 82 | /// Clears the current problems, and adds new ones from a list | ||
83 | virtual void setProblems(const QVector<IProblem::Ptr> &problems); | 83 | virtual void setProblems(const QVector<IProblem::Ptr> &problems); | ||
84 | 84 | | |||
85 | /// Retrieve problems for selected document | ||||
86 | QVector<IProblem::Ptr> problems(const KDevelop::IndexedString& document) const; | ||||
87 | | ||||
85 | /// Finds the specified node | 88 | /// Finds the specified node | ||
86 | virtual const ProblemStoreNode* findNode(int row, ProblemStoreNode *parent = nullptr) const; | 89 | virtual const ProblemStoreNode* findNode(int row, ProblemStoreNode *parent = nullptr) const; | ||
87 | 90 | | |||
88 | /// Returns the number of problems | 91 | /// Returns the number of problems | ||
89 | virtual int count(ProblemStoreNode *parent = nullptr) const; | 92 | virtual int count(ProblemStoreNode *parent = nullptr) const; | ||
90 | 93 | | |||
91 | /// Clears the problems | 94 | /// Clears the problems | ||
92 | virtual void clear(); | 95 | virtual void clear(); | ||
Show All 25 Lines | |||||
118 | 121 | | |||
119 | /// Sets the currently shown document (in the editor, it's triggered by the IDE) | 122 | /// Sets the currently shown document (in the editor, it's triggered by the IDE) | ||
120 | void setCurrentDocument(const IndexedString &doc); | 123 | void setCurrentDocument(const IndexedString &doc); | ||
121 | 124 | | |||
122 | /// Retrives the path of the current document | 125 | /// Retrives the path of the current document | ||
123 | const KDevelop::IndexedString& currentDocument() const; | 126 | const KDevelop::IndexedString& currentDocument() const; | ||
124 | 127 | | |||
125 | signals: | 128 | signals: | ||
126 | /// Emitted when the problems change | 129 | /// Emitted when any store setting (grouping, scope, severity, document) is changed | ||
kfunk: Typo, better: "when any store setting ..."? | |||||
127 | void changed(); | 130 | void changed(); | ||
128 | 131 | | |||
132 | /// Emitted when the stored problems are changed with clear(), addProblem() and setProblems() | ||||
133 | /// methods. This signal emitted only when internal problems storage is really changed: | ||||
134 | /// for example, it is not emitted when we call clear() method for empty storage. | ||||
135 | void problemsChanged(); | ||||
136 | | ||||
129 | /// Emitted before the problemlist is rebuilt | 137 | /// Emitted before the problemlist is rebuilt | ||
130 | void beginRebuild(); | 138 | void beginRebuild(); | ||
131 | 139 | | |||
132 | /// Emitted once the problemlist has been rebuilt | 140 | /// Emitted once the problemlist has been rebuilt | ||
133 | void endRebuild(); | 141 | void endRebuild(); | ||
134 | 142 | | |||
135 | private slots: | 143 | private slots: | ||
136 | /// Triggered when the watched document set changes. E.g.:document closed, new one added, etc | 144 | /// Triggered when the watched document set changes. E.g.:document closed, new one added, etc | ||
Show All 13 Lines |
Typo, better: "when any store setting ..."?