Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

cbEVT_EDITOR_NEW_LINE event ?

(1/1)

mmkider:
Hi codeblocks team,
Breakpoint and bookmark need cbEVT_EDITOR_NEW_LINE event for change location.
But I can't find cbEVT_EDITOR_NEW_LINE event.
Any solutions?

Thank you for your reply.


MortenMacFly:

--- Quote from: mmkider on January 04, 2009, 03:51:54 pm ---Any solutions?

--- End quote ---
You may want to provide a patch accordingly - have a look how the other cbEVT_EDITOR_XXX events are implemented.

But are you aware that this event would be thrown ~ a million times and would certainly cost performance?

thomas:
I would not worry about performance in this case, since an event is sent for every editor update already, which is whenever you hit a key or move the mouse.
It kind of makes a separate "new line" event obsolete, however. The editor implements the "smart indent" feature (which basically needs a "new line event") using the editor update event too.

dje:
Hi !

Don't forget to manage copy/paste events that can introduce new lines!
I don't know if new lines events are triggered only when a carriage return keypress is detected...

Dje

mmkider:
Now I have only thought of the three applications(Bookmarks、Breakpoint、Navigate Forward and Navigate Backward)

However, I think that the SDK of codeblocks more clearly in the delivery of cbEVT_EDITOR_NEW_LINE(S?).

I feel that many problems to be considered for the implementation of the cbEVT_EDITOR_NEW_LINE(S?).

Thank you for your response.

Navigation

[0] Message Index

Go to full version