Regenerate wxSTC files after recent changes

This commit is contained in:
New Pagodi
2019-03-17 01:49:30 -05:00
parent 8be4f7dde6
commit f4e0c1aaee
3 changed files with 48 additions and 36 deletions

View File

@@ -3090,7 +3090,7 @@ public:
int MarkerPrevious(int lineStart, int markerMask); int MarkerPrevious(int lineStart, int markerMask);
// Define a marker from a bitmap // Define a marker from a bitmap
void MarkerDefineBitmap(int markerNumber, const wxBitmap& bmp); void MarkerDefinePixmap(int markerNumber, const char* const* xpmData);
// Add a set of markers to a line. // Add a set of markers to a line.
void MarkerAddSet(int line, int markerSet); void MarkerAddSet(int line, int markerSet);
@@ -3441,7 +3441,7 @@ public:
bool AutoCompGetDropRestOfWord() const; bool AutoCompGetDropRestOfWord() const;
// Register an image for use in autocompletion lists. // Register an image for use in autocompletion lists.
void RegisterImage(int type, const wxBitmap& bmp); void RegisterImage(int type, const char* const* xpmData);
// Clear all the registered images. // Clear all the registered images.
void ClearRegisteredImages(); void ClearRegisteredImages();
@@ -3883,19 +3883,19 @@ public:
// Set the display mode of visual flags for wrapped lines. // Set the display mode of visual flags for wrapped lines.
void SetWrapVisualFlags(int wrapVisualFlags); void SetWrapVisualFlags(int wrapVisualFlags);
// Retrive the display mode of visual flags for wrapped lines. // Retrieve the display mode of visual flags for wrapped lines.
int GetWrapVisualFlags() const; int GetWrapVisualFlags() const;
// Set the location of visual flags for wrapped lines. // Set the location of visual flags for wrapped lines.
void SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation); void SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation);
// Retrive the location of visual flags for wrapped lines. // Retrieve the location of visual flags for wrapped lines.
int GetWrapVisualFlagsLocation() const; int GetWrapVisualFlagsLocation() const;
// Set the start indent for wrapped lines. // Set the start indent for wrapped lines.
void SetWrapStartIndent(int indent); void SetWrapStartIndent(int indent);
// Retrive the start indent for wrapped lines. // Retrieve the start indent for wrapped lines.
int GetWrapStartIndent() const; int GetWrapStartIndent() const;
// Sets how wrapped sublines are placed. Default is wxSTC_WRAPINDENT_FIXED. // Sets how wrapped sublines are placed. Default is wxSTC_WRAPINDENT_FIXED.
@@ -5181,6 +5181,12 @@ public:
// Clear annotations from the given line. // Clear annotations from the given line.
void AnnotationClearLine(int line); void AnnotationClearLine(int line);
// Define a marker from a bitmap.
void MarkerDefineBitmap(int markerNumber, const wxBitmap& bmp);
// Register an image for use in autocompletion lists.
void RegisterImage(int type, const wxBitmap& bmp);
// The following methods are nearly equivalent to their similarly named // The following methods are nearly equivalent to their similarly named

View File

@@ -5360,6 +5360,8 @@ public:
/** /**
@member_group_name{Markers, Markers} @member_group_name{Markers, Markers}
@see MarkerDefineBitmap
*/ */
//@{ //@{
@@ -5437,8 +5439,10 @@ public:
/** /**
Define a marker from a bitmap Define a marker from a bitmap
@since 3.1.3
*/ */
void MarkerDefineBitmap(int markerNumber, const wxBitmap& bmp); void MarkerDefinePixmap(int markerNumber, const char* const* xpmData);
/** /**
Add a set of markers to a line. Add a set of markers to a line.
@@ -5644,6 +5648,8 @@ public:
/** /**
@member_group_name{Autocompletion, Autocompletion} @member_group_name{Autocompletion, Autocompletion}
@see RegisterImage(int, const wxBitmap&)
*/ */
//@{ //@{
@@ -5756,8 +5762,10 @@ public:
/** /**
Register an image for use in autocompletion lists. Register an image for use in autocompletion lists.
@since 3.1.3
*/ */
void RegisterImage(int type, const wxBitmap& bmp); void RegisterImage(int type, const char* const* xpmData);
/** /**
Clear all the registered images. Clear all the registered images.
@@ -7405,6 +7413,16 @@ public:
*/ */
void AnnotationClearLine(int line); void AnnotationClearLine(int line);
/**
Define a marker with a wxBitmap.
*/
void MarkerDefineBitmap(int markerNumber, const wxBitmap& bmp);
/**
Register an image for use in autocompletion lists.
*/
void RegisterImage(int type, const wxBitmap& bmp);
//@} //@}

View File

@@ -662,19 +662,8 @@ int wxStyledTextCtrl::MarkerPrevious(int lineStart, int markerMask)
} }
// Define a marker from a bitmap // Define a marker from a bitmap
void wxStyledTextCtrl::MarkerDefineBitmap(int markerNumber, const wxBitmap& bmp) { void wxStyledTextCtrl::MarkerDefinePixmap(int markerNumber, const char* const* xpmData) {
// convert bmp to a xpm in a string SendMsg(SCI_MARKERDEFINEPIXMAP, markerNumber, (sptr_t)xpmData);
wxMemoryOutputStream strm;
wxImage img = bmp.ConvertToImage();
if (img.HasAlpha())
img.ConvertAlphaToMask();
img.SaveFile(strm, wxBITMAP_TYPE_XPM);
size_t len = strm.GetSize();
char* buff = new char[len+1];
strm.CopyTo(buff, len);
buff[len] = 0;
SendMsg(SCI_MARKERDEFINEPIXMAP, markerNumber, (sptr_t)buff);
delete [] buff;
} }
// Add a set of markers to a line. // Add a set of markers to a line.
@@ -1464,19 +1453,8 @@ bool wxStyledTextCtrl::AutoCompGetDropRestOfWord() const
} }
// Register an image for use in autocompletion lists. // Register an image for use in autocompletion lists.
void wxStyledTextCtrl::RegisterImage(int type, const wxBitmap& bmp) { void wxStyledTextCtrl::RegisterImage(int type, const char* const* xpmData) {
// convert bmp to a xpm in a string SendMsg(SCI_REGISTERIMAGE, type, (sptr_t)xpmData);
wxMemoryOutputStream strm;
wxImage img = bmp.ConvertToImage();
if (img.HasAlpha())
img.ConvertAlphaToMask();
img.SaveFile(strm, wxBITMAP_TYPE_XPM);
size_t len = strm.GetSize();
char* buff = new char[len+1];
strm.CopyTo(buff, len);
buff[len] = 0;
SendMsg(SCI_REGISTERIMAGE, type, (sptr_t)buff);
delete [] buff;
} }
// Clear all the registered images. // Clear all the registered images.
@@ -2384,7 +2362,7 @@ void wxStyledTextCtrl::SetWrapVisualFlags(int wrapVisualFlags)
SendMsg(SCI_SETWRAPVISUALFLAGS, wrapVisualFlags, 0); SendMsg(SCI_SETWRAPVISUALFLAGS, wrapVisualFlags, 0);
} }
// Retrive the display mode of visual flags for wrapped lines. // Retrieve the display mode of visual flags for wrapped lines.
int wxStyledTextCtrl::GetWrapVisualFlags() const int wxStyledTextCtrl::GetWrapVisualFlags() const
{ {
return SendMsg(SCI_GETWRAPVISUALFLAGS, 0, 0); return SendMsg(SCI_GETWRAPVISUALFLAGS, 0, 0);
@@ -2396,7 +2374,7 @@ void wxStyledTextCtrl::SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation)
SendMsg(SCI_SETWRAPVISUALFLAGSLOCATION, wrapVisualFlagsLocation, 0); SendMsg(SCI_SETWRAPVISUALFLAGSLOCATION, wrapVisualFlagsLocation, 0);
} }
// Retrive the location of visual flags for wrapped lines. // Retrieve the location of visual flags for wrapped lines.
int wxStyledTextCtrl::GetWrapVisualFlagsLocation() const int wxStyledTextCtrl::GetWrapVisualFlagsLocation() const
{ {
return SendMsg(SCI_GETWRAPVISUALFLAGSLOCATION, 0, 0); return SendMsg(SCI_GETWRAPVISUALFLAGSLOCATION, 0, 0);
@@ -2408,7 +2386,7 @@ void wxStyledTextCtrl::SetWrapStartIndent(int indent)
SendMsg(SCI_SETWRAPSTARTINDENT, indent, 0); SendMsg(SCI_SETWRAPSTARTINDENT, indent, 0);
} }
// Retrive the start indent for wrapped lines. // Retrieve the start indent for wrapped lines.
int wxStyledTextCtrl::GetWrapStartIndent() const int wxStyledTextCtrl::GetWrapStartIndent() const
{ {
return SendMsg(SCI_GETWRAPSTARTINDENT, 0, 0); return SendMsg(SCI_GETWRAPSTARTINDENT, 0, 0);
@@ -5058,6 +5036,16 @@ void wxStyledTextCtrl::AnnotationClearLine(int line) {
SendMsg(SCI_ANNOTATIONSETTEXT, line, (sptr_t)NULL); SendMsg(SCI_ANNOTATIONSETTEXT, line, (sptr_t)NULL);
} }
void wxStyledTextCtrl::MarkerDefineBitmap(int markerNumber,
const wxBitmap& bmp) {
m_swx->DoMarkerDefineBitmap(markerNumber, bmp);
}
void wxStyledTextCtrl::RegisterImage(int type, const wxBitmap& bmp)
{
m_swx->DoRegisterImage(type, bmp);
}