~ubuntu-branches/ubuntu/wily/geany/wily

« back to all changes in this revision

Viewing changes to scintilla/LineMarker.h

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2011-12-10 07:43:26 UTC
  • mfrom: (3.3.7 sid)
  • Revision ID: package-import@ubuntu.com-20111210074326-s8yqbew5i20h33tf
Tags: 0.21-1ubuntu1
* Merge from Debian Unstable, remaining changes:
  - debian/patches/20_use_evince_viewer.patch:
     + use evince as viewer for pdf and dvi files
  - debian/patches/20_use_x_terminal_emulator.patch:
     + use x-terminal-emulator as terminal
  - debian/control
     + Add breaks on geany-plugins-common << 0.20
* Also fixes bugs:
  - Filter for MATLAB/Octave files filters everythign (LP: 885505)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Scintilla source code edit control
2
 
/** @file LineMarker.h
3
 
 ** Defines the look of a line marker in the margin .
4
 
 **/
5
 
// Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
6
 
// The License.txt file describes the conditions under which this software may be distributed.
7
 
 
8
 
#ifndef LINEMARKER_H
9
 
#define LINEMARKER_H
10
 
 
11
 
#ifdef SCI_NAMESPACE
12
 
namespace Scintilla {
13
 
#endif
14
 
 
15
 
/**
16
 
 */
17
 
class LineMarker {
18
 
public:
19
 
        int markType;
20
 
        ColourPair fore;
21
 
        ColourPair back;
22
 
        int alpha;
23
 
        XPM *pxpm;
24
 
        LineMarker() {
25
 
                markType = SC_MARK_CIRCLE;
26
 
                fore = ColourDesired(0,0,0);
27
 
                back = ColourDesired(0xff,0xff,0xff);
28
 
                alpha = SC_ALPHA_NOALPHA;
29
 
                pxpm = NULL;
30
 
        }
31
 
        LineMarker(const LineMarker &) {
32
 
                // Defined to avoid pxpm being blindly copied, not as real copy constructor
33
 
                markType = SC_MARK_CIRCLE;
34
 
                fore = ColourDesired(0,0,0);
35
 
                back = ColourDesired(0xff,0xff,0xff);
36
 
                alpha = SC_ALPHA_NOALPHA;
37
 
                pxpm = NULL;
38
 
        }
39
 
        ~LineMarker() {
40
 
                delete pxpm;
41
 
        }
42
 
        LineMarker &operator=(const LineMarker &) {
43
 
                // Defined to avoid pxpm being blindly copied, not as real assignment operator
44
 
                markType = SC_MARK_CIRCLE;
45
 
                fore = ColourDesired(0,0,0);
46
 
                back = ColourDesired(0xff,0xff,0xff);
47
 
                alpha = SC_ALPHA_NOALPHA;
48
 
                delete pxpm;
49
 
                pxpm = NULL;
50
 
                return *this;
51
 
        }
52
 
        void RefreshColourPalette(Palette &pal, bool want);
53
 
        void SetXPM(const char *textForm);
54
 
        void SetXPM(const char *const *linesForm);
55
 
        void Draw(Surface *surface, PRectangle &rc, Font &fontForCharacter);
56
 
};
57
 
 
58
 
#ifdef SCI_NAMESPACE
59
 
}
60
 
#endif
61
 
 
62
 
#endif