I added a directory called 'Iota' under branches. This is a package for the
editor widget. I didn't add it to the trunk because it is so terribly
incomplete, I'm not sure it's of any use to anyone yet.
I named it iota because that's a synonym for scintilla, so it seemed fitting
for something that's just an iota of Scintilla :)
As a means of accessing the text buffer/contents in the widget, I added the
classes BufferSequence, to access the text as a sequence of characters and
BufferLines to access the text as a sequence of lines. Another idea I had
(not implemented at all) is to be able to access the text/buffer as if it
were a file/stream object. That is what the BufferStream class is going to
be. This is all in the file bufferaccess.py. The widget itself is the
class named EditorWidget in the file iota.py and the BufferSequence and
BufferLines instances are attributes of the EditorWidget class. See to the
test.py file for a super basic usage.
I think accessing the text/document contents like this makes a lot of sense
and will provide a lot of versatility when dealing with the raw characters.
I have not even thought about the styles at all yet.
I did have one question which I described in comments in the bufferaccess.py
file but I'll also ask it here. I would like to get the EOL character(s)
used in the text which apparently Scintilla offers as SCI_GETEOLMODE (
http://www.scintilla.org/ScintillaDoc.html#SCI_GETEOLMODE) but I could not
find this in the wrapper. Am I missing something or has this not been
implemented? If it's not implemented yet, how hard would it be to do so?
I'm still trying to understand the pygtksci code, particularly what those
numbers/constants are and where they described, so I couldn't figure out
exactly how to add this.
If you guys have a chance to look through the code, please let me know if
I've done anything completely stupid as I often do (keeping in mind I
haven't finished a lot of the code yet). Also let me know if you have any
other ideas/suggestions for Iota.