From 1731660f26d1990cbc98f168c430da7301059224 Mon Sep 17 00:00:00 2001
From: nyamatongwe There may be up to three margins to the left of the text display, plus a gap either side of
+ There may be up to five margins to the left of the text display, plus a gap either side of
the text. Each margin can be set to display either symbols or line numbers with . The markers
that can be displayed in each margin are set with notification to the container or
selects a line of text. The margins are numbered 0 to 2. Using a margin number outside the valid range has no
+ The margins are numbered 0 to 4. Using a margin number outside the valid range has no
effect. By default, margin 0 is set to display line numbers, but is given a width of 0, so it
is hidden. Margin 1 is set to display non-folding symbols and is given a width of 16 pixels, so
it is visible. Margin 2 is set to display the folding symbols, but is given a width of 0, so it
@@ -2269,10 +2269,10 @@ struct TextToFind {
SCI_SETMARGINTYPEN(int margin, int iType)Margins
-
SCI_GETMARGINTYPEN(int margin)
- These two routines set and get the type of a margin. The margin argument should be 0, 1 or 2.
+ These two routines set and get the type of a margin. The margin argument should be 0, 1, 2, 3 or 4.
You can use the predefined constants SC_MARGIN_SYMBOL (0) and
SC_MARGIN_NUMBER (1) to set a margin as either a line number or a symbol margin.
- By convention, margin 0 is used for line numbers and the other two are used for symbols.
SCI_SETMARGINWIDTHN(int margin, int pixelWidth)
SCI_GETMARGINWIDTHN(int margin)
@@ -2312,7 +2312,7 @@ struct TextToFind {
SCI_SETMARGINSENSITIVEN(int margin, bool
sensitive)
SCI_GETMARGINSENSITIVEN(int margin)
- Each of the three margins can be set sensitive or insensitive to mouse clicks. A click in a
+ Each of the five margins can be set sensitive or insensitive to mouse clicks. A click in a
sensitive margin sends a notification to the container. Margins that are not sensitive act as
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index 930427bb8..3de85c6be 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -17,7 +17,7 @@
#include "ViewStyle.h"
MarginStyle::MarginStyle() :
- symbol(false), width(16), mask(0xffffffff), sensitive(false) {
+ symbol(false), width(0), mask(0), sensitive(false) {
}
// A list of the fontnames - avoids wasting space in each style
diff --git a/src/ViewStyle.h b/src/ViewStyle.h
index d0cb87f21..892fdc59d 100644
--- a/src/ViewStyle.h
+++ b/src/ViewStyle.h
@@ -71,7 +71,7 @@ public:
bool hotspotUnderline;
bool hotspotSingleLine;
/// Margins are ordered: Line Numbers, Selection Margin, Spacing Margin
- enum { margins=3 };
+ enum { margins=5 };
int leftMarginWidth; ///< Spacing margin on left of text
int rightMarginWidth; ///< Spacing margin on left of text
bool symbolMargin;
--
cgit v1.2.3