Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit e695c65

Browse files
committed
Added comments
1 parent cedcd3b commit e695c65

File tree

2 files changed

+57
-12
lines changed

2 files changed

+57
-12
lines changed

Visual Studio Project Template C#/Integration/MenuCmdID_h.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,14 +355,11 @@ public enum NppMenuCmd : uint
355355
IDM_LANG_POWERSHELL = (IDM_LANG + 53),
356356
IDM_LANG_R = (IDM_LANG + 54),
357357
IDM_LANG_JSP = (IDM_LANG + 55),
358-
359358
IDM_LANG_EXTERNAL = (IDM_LANG + 65),
360359
IDM_LANG_EXTERNAL_LIMIT = (IDM_LANG + 79),
361-
362360
IDM_LANG_USER = (IDM_LANG + 80), //46080
363361
IDM_LANG_USER_LIMIT = (IDM_LANG + 110), //46110
364362

365-
366363
IDM_ABOUT = (IDM + 7000),
367364
IDM_HOMESWEETHOME = (IDM_ABOUT + 1),
368365
IDM_PROJECTPAGE = (IDM_ABOUT + 2),
@@ -373,7 +370,6 @@ public enum NppMenuCmd : uint
373370
IDM_WIKIFAQ = (IDM_ABOUT + 7),
374371
IDM_HELP = (IDM_ABOUT + 8),
375372

376-
377373
IDM_SETTING = (IDM + 8000),
378374
IDM_SETTING_TAB_SIZE = (IDM_SETTING + 1),
379375
IDM_SETTING_TAB_REPLCESPACE = (IDM_SETTING + 2),

Visual Studio Project Template C#/Integration/Scintilla_iface.cs

Lines changed: 57 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ public struct Sci_NotifyHeader
1616
/* Compatible with Windows NMHDR.
1717
* hwndFrom is really an environment specific window handle or pointer
1818
* but most clients of Scintilla.h do not have this type visible. */
19-
public IntPtr hwndFrom;
20-
public uint idFrom;
21-
public uint code;
19+
public IntPtr hwndFrom; //! environment specific window handle/pointer
20+
public uint idFrom; //! CtrlID of the window issuing the notification
21+
public uint code; //! The SCN_* notification code
2222
}
2323

2424
[StructLayout(LayoutKind.Sequential)]
2525
public struct SCNotification
2626
{
2727
public Sci_NotifyHeader nmhdr;
28-
public int position; /* SCN_STYLENEEDED, SCN_MODIFIED, SCN_DWELLSTART, SCN_DWELLEND */
29-
public int ch; /* SCN_CHARADDED, SCN_KEY */
30-
public int modifiers; /* SCN_KEY */
28+
public int position; /* SCN_STYLENEEDED, SCN_DOUBLECLICK, SCN_MODIFIED, SCN_MARGINCLICK, SCN_NEEDSHOWN, SCN_DWELLSTART, SCN_DWELLEND, SCN_CALLTIPCLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION */
29+
public int ch; /* SCN_CHARADDED, SCN_KEY, SCN_AUTOCCOMPLETE, SCN_AUTOCSELECTION, SCN_USERLISTSELECTION */
30+
public int modifiers; /* SCN_KEY, SCN_DOUBLECLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE */
3131
public int modificationType; /* SCN_MODIFIED */
32-
public IntPtr text; /* SCN_MODIFIED, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION */
32+
public IntPtr text; /* SCN_MODIFIED, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION, SCN_URIDROPPED */
3333
public int length; /* SCN_MODIFIED */
3434
public int linesAdded; /* SCN_MODIFIED */
3535
public int message; /* SCN_MACRORECORD */
@@ -44,6 +44,8 @@ public struct SCNotification
4444
public int y; /* SCN_DWELLSTART, SCN_DWELLEND */
4545
public int token; /* SCN_MODIFIED with SC_MOD_CONTAINER */
4646
public int annotationLinesAdded;/* SC_MOD_CHANGEANNOTATION */
47+
public int updated; /* SCN_UPDATEUI */
48+
public int listCompletionMethod; /* SCN_AUTOCSELECTION, SCN_AUTOCCOMPLETED, SCN_USERLISTSELECTION */
4749
}
4850

4951
[Flags]
@@ -53,31 +55,78 @@ public enum SciMsg : uint
5355
SCI_START = 2000,
5456
SCI_OPTIONAL_START = 3000,
5557
SCI_LEXER_START = 4000,
58+
/// Add text to the document at current position.
5659
SCI_ADDTEXT = 2001,
60+
/// Add array of cells to document.
5761
SCI_ADDSTYLEDTEXT = 2002,
62+
/// Insert string at a position.
5863
SCI_INSERTTEXT = 2003,
64+
/// Change the text that is being inserted in response to SC_MOD_INSERTCHECK
65+
SCI_CHANGEINSERTION = 2672,
66+
/// Delete all text in the document.
5967
SCI_CLEARALL = 2004,
68+
/// Delete a range of text in the document.
69+
SCI_DELETERANGE = 2645,
70+
71+
/// Set all style bytes to 0, remove all folding information.
6072
SCI_CLEARDOCUMENTSTYLE = 2005,
73+
/// Returns the number of bytes in the document.
6174
SCI_GETLENGTH = 2006,
75+
76+
/// Returns the character byte at the position.
6277
SCI_GETCHARAT = 2007,
78+
79+
/// Returns the position of the caret.
6380
SCI_GETCURRENTPOS = 2008,
81+
82+
/// Returns the position of the opposite end of the selection to the caret.
6483
SCI_GETANCHOR = 2009,
84+
85+
/// Returns the style byte at the position.
6586
SCI_GETSTYLEAT = 2010,
87+
88+
/// Redoes the next action on the undo history.
6689
SCI_REDO = 2011,
90+
91+
/// Choose between collecting actions into the undo
92+
/// history and discarding them.
6793
SCI_SETUNDOCOLLECTION = 2012,
94+
95+
/// Select all the text in the document.
6896
SCI_SELECTALL = 2013,
97+
/// Remember the current position in the undo history as the position
98+
/// at which the document was saved.
6999
SCI_SETSAVEPOINT = 2014,
100+
101+
/// Retrieve a buffer of cells.
102+
/// Returns the number of bytes in the buffer not including terminating NULs.
70103
SCI_GETSTYLEDTEXT = 2015,
104+
/// Are there any redoable actions in the undo history?
71105
SCI_CANREDO = 2016,
106+
/// Retrieve the line number at which a particular marker is located.
72107
SCI_MARKERLINEFROMHANDLE = 2017,
108+
/// Delete a marker.
73109
SCI_MARKERDELETEHANDLE = 2018,
110+
111+
/// Is undo history being collected?
74112
SCI_GETUNDOCOLLECTION = 2019,
113+
75114
SCWS_INVISIBLE = 0,
76115
SCWS_VISIBLEALWAYS = 1,
77116
SCWS_VISIBLEAFTERINDENT = 2,
117+
118+
/// Are white space characters currently visible?
119+
/// Returns one of SCWS_* constants.
78120
SCI_GETVIEWWS = 2020,
121+
122+
/// Make white space characters invisible, always visible or visible outside indentation.
79123
SCI_SETVIEWWS = 2021,
124+
125+
/// Find the position from a point within the window.
80126
SCI_POSITIONFROMPOINT = 2022,
127+
128+
/// Find the position from a point within the window but return
129+
/// INVALID_POSITION if not close to text.
81130
SCI_POSITIONFROMPOINTCLOSE = 2023,
82131
SCI_GOTOLINE = 2024,
83132
SCI_GOTOPOS = 2025,
@@ -988,4 +1037,4 @@ public void Dispose()
9881037
Dispose();
9891038
}
9901039
}
991-
}
1040+
}

0 commit comments

Comments
 (0)