~ubuntu-branches/ubuntu/vivid/kate/vivid-proposed

« back to all changes in this revision

Viewing changes to addons/kate/kate-ctags/tags.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-12-04 16:49:41 UTC
  • mfrom: (1.6.6)
  • Revision ID: package-import@ubuntu.com-20141204164941-l3qbvsly83hhlw2v
Tags: 4:14.11.97-0ubuntu1
* New upstream release
* Update build-deps and use pkg-kde v3 for Qt 5 build
* kate-data now kate5-data for co-installability

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright (C) 2004 by Jens Dagerbo                                    *
3
 
 *   jens.dagerbo@swipnet.se                                               *
4
 
 *                                                                         *
5
 
 *   This program is free software; you can redistribute it and/or modify  *
6
 
 *   it under the terms of the GNU General Public License as published by  *
7
 
 *   the Free Software Foundation; either version 2 of the License, or     *
8
 
 *   (at your option) any later version.                                   *
9
 
 *                                                                         *
10
 
 ***************************************************************************/
11
 
 
12
 
#ifndef TAGS_H
13
 
#define TAGS_H
14
 
 
15
 
#include <QString>
16
 
#include <QStringList>
17
 
#include <QList>
18
 
 
19
 
class Tags
20
 
{
21
 
public:
22
 
 
23
 
        struct TagEntry
24
 
        {
25
 
                TagEntry();
26
 
                TagEntry( const QString & tag, const QString & type, const QString & file, const QString & pattern );
27
 
 
28
 
                QString tag;
29
 
                QString type;
30
 
                QString file;
31
 
                QString pattern;
32
 
        };
33
 
 
34
 
        typedef QList<TagEntry> TagList;
35
 
 
36
 
        /**
37
 
         *    Method to set the tag database filename
38
 
         * @param file the tag database filename
39
 
         */
40
 
        static void setTagsFile( const QString & file );
41
 
 
42
 
        static QString getTagsFile();
43
 
 
44
 
        /**
45
 
         *    Method to check if the tag database contains a specific tag
46
 
         * @param tag Tag to look up
47
 
         * @return returns true if tag database contains 'tag'
48
 
         */
49
 
        static bool hasTag( const QString & tag );
50
 
 
51
 
        static unsigned int numberOfPartialMatches( const QString & tagpart );
52
 
        static unsigned int numberOfExactMatches( const QString & tag );
53
 
        static unsigned int numberOfMatches( const QString & tagpart, bool partial );
54
 
 
55
 
        static TagList getPartialMatches( const QString & tagpart );
56
 
        static TagList getExactMatches( const QString & tag );
57
 
        static TagList getMatches( const QString & tagpart, bool partial, const QStringList & types = QStringList() );
58
 
 
59
 
        static TagList getPartialMatches( const QString & file, const QString & tagpart );
60
 
        static TagList getExactMatches( const QString & file, const QString & tag );
61
 
        static TagList getMatches( const QString & file, const QString & tagpart, bool partial, const QStringList & types = QStringList() );
62
 
 
63
 
private:
64
 
        static QString _tagsfile;
65
 
};
66
 
 
67
 
#endif
68
 
 
69
 
// kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;