~ubuntu-branches/ubuntu/quantal/kate/quantal-proposed

« back to all changes in this revision

Viewing changes to kate/plugins/findinfiles/katefindoptions.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-14 13:28:06 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: package-import@ubuntu.com-20111214132806-aa2uf6ri5w2p8ak3
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This file is part of the KDE project
2
 
   Copyright (C) 2008 Dominik Haumann <dhaumann kde org>
3
 
 
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.
7
 
 
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.
12
 
 
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.
17
 
*/
18
 
 
19
 
#ifndef KATE_FINDINFILES_OPTIONS_H
20
 
#define KATE_FINDINFILES_OPTIONS_H
21
 
 
22
 
#include <QString>
23
 
#include <QStringListModel>
24
 
 
25
 
class KConfigGroup;
26
 
 
27
 
class KateFindInFilesOptions
28
 
{
29
 
  public:
30
 
    KateFindInFilesOptions();
31
 
    ~KateFindInFilesOptions();
32
 
    
33
 
    KateFindInFilesOptions(const KateFindInFilesOptions& copy);
34
 
    KateFindInFilesOptions& operator=(const KateFindInFilesOptions& copy);
35
 
 
36
 
    static KateFindInFilesOptions& self();
37
 
 
38
 
    void load(const KConfigGroup& config);
39
 
    void save(KConfigGroup& config);
40
 
 
41
 
    QStringListModel* searchItems();
42
 
    QStringListModel* searchPaths();
43
 
    QStringListModel* searchFilters();
44
 
 
45
 
    bool recursive() const;
46
 
    void setRecursive(bool recursive);
47
 
 
48
 
    bool caseSensitive() const;
49
 
    void setCaseSensitive(bool casesensitive);
50
 
 
51
 
    bool regExp() const;
52
 
    void setRegExp(bool regexp);
53
 
 
54
 
    bool followDirectorySymlinks() const;
55
 
    void setFollowDirectorySymlinks(bool follow);
56
 
 
57
 
    bool includeHiddenFiles() const;
58
 
    void setIncludeHiddenFiles(bool include);
59
 
 
60
 
  private:
61
 
    bool m_recursive : 1;
62
 
    bool m_casesensitive : 1;
63
 
    bool m_regexp : 1;
64
 
    bool m_followDirectorySymlinks : 1;
65
 
    bool m_includeHiddenFiles : 1;
66
 
 
67
 
    QStringListModel m_searchItems;
68
 
    QStringListModel m_searchPaths;
69
 
    QStringListModel m_searchFilters;
70
 
};
71
 
 
72
 
#endif
73
 
 
74
 
// kate: space-indent on; indent-width 2; replace-tabs on;