~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

Viewing changes to deprecated/management/profile-editor/src/wxStyledTextCtrl/CallTip.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-04-27 10:38:07 UTC
  • mfrom: (5.1.118 natty)
  • Revision ID: james.westby@ubuntu.com-20110427103807-ym3rhwys6o84ith0
Tags: 2.6.1-2
debian/copyright: clarify for some full organization names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Scintilla source code edit control
 
2
/** @file CallTip.h
 
3
 ** Interface to the call tip control.
 
4
 **/
 
5
// Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
 
6
// The License.txt file describes the conditions under which this software may be distributed.
 
7
 
 
8
#ifndef CALLTIP_H
 
9
#define CALLTIP_H
 
10
 
 
11
/**
 
12
 */
 
13
class CallTip {
 
14
        int startHighlight;
 
15
        int endHighlight;
 
16
        char *val;
 
17
        Font font;
 
18
        PRectangle rectUp;
 
19
        PRectangle rectDown;
 
20
        int lineHeight;
 
21
        int offsetMain;
 
22
        // Private so CallTip objects can not be copied
 
23
        CallTip(const CallTip &) {}
 
24
        CallTip &operator=(const CallTip &) { return *this; }
 
25
        void DrawChunk(Surface *surface, int &x, const char *s,
 
26
                int posStart, int posEnd, int ytext, PRectangle rcClient,
 
27
                bool highlight, bool draw);
 
28
        int PaintContents(Surface *surfaceWindow, bool draw);
 
29
 
 
30
public:
 
31
        Window wCallTip;
 
32
        Window wDraw;
 
33
        bool inCallTipMode;
 
34
        int posStartCallTip;
 
35
        ColourPair colourBG;
 
36
        ColourPair colourUnSel;
 
37
        ColourPair colourSel;
 
38
        ColourPair colourShade;
 
39
        ColourPair colourLight;
 
40
        int codePage;
 
41
        int clickPlace;
 
42
 
 
43
        CallTip();
 
44
        ~CallTip();
 
45
 
 
46
        /// Claim or accept palette entries for the colours required to paint a calltip.
 
47
        void RefreshColourPalette(Palette &pal, bool want);
 
48
 
 
49
        void PaintCT(Surface *surfaceWindow);
 
50
 
 
51
        void MouseClick(Point pt);
 
52
 
 
53
        /// Setup the calltip and return a rectangle of the area required.
 
54
        PRectangle CallTipStart(int pos, Point pt, const char *defn,
 
55
                const char *faceName, int size, int codePage_, 
 
56
                int characterSet, Window &wParent);
 
57
 
 
58
        void CallTipCancel();
 
59
 
 
60
        /// Set a range of characters to be displayed in a highlight style.
 
61
        /// Commonly used to highlight the current parameter.
 
62
        void SetHighlight(int start, int end);
 
63
};
 
64
 
 
65
#endif