diff options
Diffstat (limited to 'Swift/Controllers/HighlightManager.h')
| -rw-r--r-- | Swift/Controllers/HighlightManager.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Swift/Controllers/HighlightManager.h b/Swift/Controllers/HighlightManager.h index 3da72eb..07a3fe3 100644 --- a/Swift/Controllers/HighlightManager.h +++ b/Swift/Controllers/HighlightManager.h @@ -33,6 +33,9 @@ namespace Swift { const HighlightRule& getRule(const size_t index) const { return list_[index]; } - void addRule(const HighlightRule &rule) { list_.push_back(rule); } - void combineRules(const HighlightRulesList &rhs) { + void addRule(const HighlightRule& rule) { list_.push_back(rule); } + void combineRules(const HighlightRulesList& rhs) { list_.insert(list_.end(), rhs.list_.begin(), rhs.list_.end()); } + void setRule(const size_t index, const HighlightRule& rule) { + list_[index] = rule; + } private: @@ -51,2 +54,3 @@ namespace Swift { void removeRule(int index); + void swapRules(const size_t first, const size_t second); void storeSettings(); |
Swift