1
/* This file is part of the KDE project
2
Copyright (C) 2008 Dominik Haumann <dhaumann kde org>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License version 2 as published by the Free Software Foundation.
8
This library is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
Library General Public License for more details.
13
You should have received a copy of the GNU Library General Public License
14
along with this library; see the file COPYING.LIB. If not, write to
15
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16
Boston, MA 02110-1301, USA.
19
#ifndef KATE_FINDINFILES_OPTIONS_H
20
#define KATE_FINDINFILES_OPTIONS_H
23
#include <QStringListModel>
27
class KateFindInFilesOptions
30
KateFindInFilesOptions();
31
~KateFindInFilesOptions();
33
KateFindInFilesOptions(const KateFindInFilesOptions& copy);
34
KateFindInFilesOptions& operator=(const KateFindInFilesOptions& copy);
36
static KateFindInFilesOptions& self();
38
void load(const KConfigGroup& config);
39
void save(KConfigGroup& config);
41
QStringListModel* searchItems();
42
QStringListModel* searchPaths();
43
QStringListModel* searchFilters();
45
bool recursive() const;
46
void setRecursive(bool recursive);
48
bool caseSensitive() const;
49
void setCaseSensitive(bool casesensitive);
52
void setRegExp(bool regexp);
54
bool followDirectorySymlinks() const;
55
void setFollowDirectorySymlinks(bool follow);
57
bool includeHiddenFiles() const;
58
void setIncludeHiddenFiles(bool include);
62
bool m_casesensitive : 1;
64
bool m_followDirectorySymlinks : 1;
65
bool m_includeHiddenFiles : 1;
67
QStringListModel m_searchItems;
68
QStringListModel m_searchPaths;
69
QStringListModel m_searchFilters;
74
// kate: space-indent on; indent-width 2; replace-tabs on;