Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

wxScintilla 2.01

(1/6) > >>

cgarcia109:
i merged scintilla 2.01 with cb wxscintilla

http://www.megaupload.com/?d=Q9HTFWP0

wxscintilla.h line 4019
/* TODO
    // This is already done through SendMsg
    SciFnDirect GetDirectFunction(); direct function
    sptr_t GetDirectPointer();  scintilla object
    // getting an raw text pointer is done too?
    uptr_t GetCharacterPointer();
    void GrabSCIFocus();
    bool LoadLexerLibrary(const wxString& path): Currently not implemented!

SetSelection confusing, theres actually another function
old msg SCI_SETSEL(anchor,pos)              void SetSelection(int,int)
new msg SCI_SETSELECTION(caret, anchor)     void _SetSelection(int,int)
*/

keep changebar code
keep codeblocks stuff (wxsmith ...)
keep INCLUDE_DEPRECATED_FEATURES that are removed in scintilla 2.01
keep some functions in Editor.cxx
    PositionFromLocationClose
    NotifyMove
    CopySelectionFromRange
keep some code in LexD.cxx line 81
keep in LexHTML
    LexerModule lmASP
    LexerModule lmPHP
    and related code
    they are removed in 2.01 and its use is discouraged
keep SVector.h
    allocFailure and related code
keep SCNotification scn = {{0}}; ScintillaBase.cxx Editor.cxx
    SCNotification scn = {0}; in scintilla 2.01 lots of warnings
keep in RunStyles.cxx|.h
    char *PersistantForm() const;
    void FromPersistant(const char *form);
    static bool PersistantSame(const char *form1, const char *form2);
keep all around the code checks like:
    var = 0
    type var = new type[x];
    if (!var) return; // all these checks are removed in scintilla 2.01
   
I keeped some of this stuff cos i dont know if its used by codeblocks in any way or indirectly by changebar, i could look into it but im tired of this thing

Jenna:
We already have a test-branch including Scintilla 2.01:


--- Code: ---svn co svn://svn.berlios.de/codeblocks/branches/scintilla
--- End code ---

should work for anonymous svn-access.

cgarcia109:
connection failed
connection is read only :(

dunno if you noticed (maybe you already fixed someway) that when you clear a rectangular seleccion, caret is placed in the mainRange but when selecting up-down
mainRange is the lower one, a Paste will start there, maybe this is not the desired behavior. Downloaded precompiled SciTE and works the same way so is something about scintilla itself.

[attachment deleted by admin]

cgarcia109:
Well if someone is interested

Implemented all missing func
wxSciFnDirect GetDirectFunction()
wxUIntPtr GetDirectPointer()
void GrabSCIFocus()
bool LoadLexerLibrary(const wxString& path)

not really very useful just to have them done

Events:
wxEVT_SCI_AUTOCOMP_CANCELLED
wxEVT_SCI_AUTOCOMP_CHARDELETED
wxEVT_SCI_SETFOCUS
wxEVT_SCI_KILLFOCUS

Implemented DynamicLibrary in PlatWX.h that is not currently implemented
Ive build LexMarkDown as external lexer and tested to load it with
LoadLexerLibrary() works fine

http://www.megaupload.com/?d=WZQD8FIN

If you plan to use external lexers build with SCIMAKINGDLL defined, that will export some Scintilla symbols ( WindowAccesor, PropSetSimple, WordList, LexerModule )
When building an external lexer define SCIUSINGDLL and link against scintila lib (i.e. wxScintilla.a).

-------------------

// Multiple selections
SetMultipleSelection(true);
// Type to multiple selections at the same time
SetAdditionalSelectionTyping(true);
// virtual spaces (go anywhere in the line even without text)
SetVirtualSpaceOptions(wxSCI_SCVS_RECTANGULARSELECTION
    | wxSCI_SCVS_USERACCESSIBLE); // I dont like this one for coding

[attachment deleted by admin]

MortenMacFly:

--- Quote from: cgarcia109 on September 29, 2009, 05:10:54 am ---Well if someone is interested

--- End quote ---
Are you aware that we have a scintilla branch that uses 2.01 already?

Navigation

[0] Message Index

[#] Next page

Go to full version