~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to src/sdk/wxscintilla/src/scintilla/src/Decoration.h

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** @file Decoration.h
 
2
 ** Visual elements added over text.
 
3
 **/
 
4
// Copyright 1998-2007 by Neil Hodgson <neilh@scintilla.org>
 
5
// The License.txt file describes the conditions under which this software may be distributed.
 
6
 
 
7
#ifndef DECORATION_H
 
8
#define DECORATION_H
 
9
 
 
10
#ifdef SCI_NAMESPACE
 
11
namespace Scintilla {
 
12
#endif
 
13
 
 
14
class Decoration {
 
15
public:
 
16
        Decoration *next;
 
17
        RunStyles rs;
 
18
        int indicator;
 
19
 
 
20
        Decoration(int indicator_);
 
21
        ~Decoration();
 
22
 
 
23
        bool Empty();
 
24
};
 
25
 
 
26
class DecorationList {
 
27
        int currentIndicator;
 
28
        int currentValue;
 
29
        Decoration *current;
 
30
        int lengthDocument;
 
31
        Decoration *DecorationFromIndicator(int indicator);
 
32
        Decoration *Create(int indicator, int length);
 
33
        void Delete(int indicator);
 
34
        void DeleteAnyEmpty();
 
35
public:
 
36
        Decoration *root;
 
37
        bool clickNotified;
 
38
 
 
39
        DecorationList();
 
40
        ~DecorationList();
 
41
 
 
42
        void SetCurrentIndicator(int indicator);
 
43
        int GetCurrentIndicator() { return currentIndicator; }
 
44
 
 
45
        void SetCurrentValue(int value);
 
46
        int GetCurrentValue() { return currentValue; }
 
47
 
 
48
        // Returns true if some values may have changed
 
49
        bool FillRange(int &position, int value, int &fillLength);
 
50
 
 
51
        void InsertSpace(int position, int insertLength);
 
52
        void DeleteRange(int position, int deleteLength);
 
53
 
 
54
        int AllOnFor(int position);
 
55
        int ValueAt(int indicator, int position);
 
56
        int Start(int indicator, int position);
 
57
        int End(int indicator, int position);
 
58
};
 
59
 
 
60
#ifdef SCI_NAMESPACE
 
61
}
 
62
#endif
 
63
 
 
64
#endif