~ubuntu-branches/ubuntu/oneiric/kde4libs/oneiric-proposed

« back to all changes in this revision

Viewing changes to kate/vimode/katevirange.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-07-08 00:08:34 UTC
  • mto: This revision was merged to the branch mainline in revision 247.
  • Revision ID: package-import@ubuntu.com-20110708000834-dr9a8my4iml90qe5
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  This file is part of the KDE libraries and the Kate part.
2
 
 *
3
 
 *  Copyright (C) 2008 Erlend Hamberg <ehamberg@gmail.com>
4
 
 *
5
 
 *  This library is free software; you can redistribute it and/or
6
 
 *  modify it under the terms of the GNU Library General Public
7
 
 *  License as published by the Free Software Foundation; either
8
 
 *  version 2 of the License, or (at your option) any later version.
9
 
 *
10
 
 *  This library is distributed in the hope that it will be useful,
11
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 
 *  Library General Public License for more details.
14
 
 *
15
 
 *  You should have received a copy of the GNU Library General Public License
16
 
 *  along with this library; see the file COPYING.LIB.  If not, write to
17
 
 *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
 
 *  Boston, MA 02110-1301, USA.
19
 
 */
20
 
 
21
 
#ifndef KATE_VI_RANGE_INCLUDED
22
 
#define KATE_VI_RANGE_INCLUDED
23
 
 
24
 
namespace ViMotion {
25
 
    enum MotionType {
26
 
        ExclusiveMotion, InclusiveMotion
27
 
    };
28
 
}
29
 
 
30
 
class KateViRange
31
 
{
32
 
  public:
33
 
    KateViRange( int slin, int scol, int elin, int ecol, ViMotion::MotionType mt );
34
 
    KateViRange( int elin, int ecol, ViMotion::MotionType inc );
35
 
    KateViRange();
36
 
 
37
 
    void normalize();
38
 
    bool isInclusive() const { return motionType == ViMotion::InclusiveMotion; };
39
 
 
40
 
    int startLine, startColumn;
41
 
    int endLine, endColumn;
42
 
    ViMotion::MotionType motionType;
43
 
    bool valid;
44
 
    bool jump;
45
 
};
46
 
 
47
 
#endif