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

Using Actions in CB: a discussion

<< < (2/4) > >>

Michael:

--- Quote from: mandrav on December 18, 2005, 07:05:02 pm ---In other words, the user will be able to restructure all the menus (main menubar, context menus, etc) by adding/removing actions to them. The same goes for the toolbar.
Also, the user will be able to add actions that call user-defined scripts. That is, add functionality not known to C::B at compile-time.

--- End quote ---

Personally, I think that this is a very good idea. Actions would enable C::B to adpat itself to the different user's requirements and prefernces and therefore make its use easier and more pleasant.

Michael

takeshimiya:
I guess you know my comment: This is really amazing! :o

I don't know how it'll handle the logic separation of the bindings (toolbars, menus, etc) from the actions (idActionOpen, etc).
So, itsn't missing a BindingsManager counterpart? Or the handling of bindings would be done in another way?

Because I'm thinking that the actions would be the same, but doing a pluggable architecture, the user can add another bindings (a mouse gesture, vim-like command, voice recognition, etc) through plugins.
That would be even more flexible and powerful. :D

But I must say I'm surprised, Yiannis you're so fast! I though this would made in 2.0 or so being optimistic, but I was wrong :D

Pecan:

--- Quote from: mandrav on December 17, 2005, 08:44:47 pm ---Actions not registered by the application will not be serialized. The exception to this are script-actions. The user will be able to add script actions freely.

--- End quote ---

Does this mean a user/plugin could record the scintilla macros
(using the macro recorder) and add/delete them as individual actions
at the users whim?

Does this mean a set of macros could be loaded from an external
source (eg, {Ctrl+Enter}={END+ENTER+TAB+TAB}) and register each as an action?

Edit:
Will there be plugin fights over menu/taskbar items? Is arbitration needed?
Nothin' like a good plugin fight! :)
thanks
pecan

jmccay:
Just adding a reply to the feature request post to allow people to backtrack what's being discussed to get relavent information to form an informed opinion.

http://forums.codeblocks.org/index.php?topic=1377.0

jmccay

mandrav:

--- Quote from: Pecan on December 19, 2005, 12:50:58 am ---
--- Quote from: mandrav on December 17, 2005, 08:44:47 pm ---Actions not registered by the application will not be serialized. The exception to this are script-actions. The user will be able to add script actions freely.

--- End quote ---

Does this mean a user/plugin could record the scintilla macros
(using the macro recorder) and add/delete them as individual actions
at the users whim?

Does this mean a set of macros could be loaded from an external
source (eg, {Ctrl+Enter}={END+ENTER+TAB+TAB}) and register each as an action?

--- End quote ---

Yes, plugins will be able to register/unregister actions. Actually it will be the only way to add menu/toolbar items.


--- Quote from: Pecan on December 19, 2005, 12:50:58 am ---Edit:
Will there be plugin fights over menu/taskbar items? Is arbitration needed?
Nothin' like a good plugin fight! :)

--- End quote ---

This is handled by the ActionsManager.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version