2
JuffEd - An advanced text editor
3
Copyright 2007-2010 Mikhail Murzin
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public License
7
version 2 as published by the Free Software Foundation.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
#ifndef __JUFFED_SEARCH_RESULTS_H__
20
#define __JUFFED_SEARCH_RESULTS_H__
22
#include "LibConfig.h"
30
struct SearchOccurence {
37
startRow = startCol = endRow = endCol = -1;
39
SearchOccurence(int row1, int col1, int row2, int col2) {
47
class LIBJUFF_EXPORT SearchResults {
49
SearchResults(const Juff::SearchParams&);
52
SearchOccurence occurence(int) const;
53
int findIndexByCursorPos(int row, int col, bool forward);
54
void addOccurence(int, int, int, int);
55
const Juff::SearchParams& params() const;
56
// void setVisible(bool visible);
57
// bool isVisible() const;
60
Juff::SearchParams params_;
61
QVector<SearchOccurence> occurences_;
67
#endif // __JUFFED_SEARCH_RESULTS_H__