Author Topic: Using Actions in CB: a discussion  (Read 13283 times)

takeshimiya

  • Guest
Re: Using Actions in CB: a discussion
« Reply #15 on: December 19, 2005, 10:40:07 pm »
This assumes of course that plugins are able to obtain a list of the names of currently registered actions from the action manager. Mandrav's post didn't provide examples of this...
Oh well, I was only worried if the SDK wasn't going to provide that. :)

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Using Actions in CB: a discussion
« Reply #16 on: December 19, 2005, 11:35:39 pm »
Code
struct Action
{
    wxString title;
    ...
    ...
};
WX_DECLARE_STRING_HASH_MAP(Action, ActionsMap);

const ActionsMap& ActionsManager::GetActions();

Is this ok? ;)
Be patient!
This bug will be fixed soon...

takeshimiya

  • Guest
Re: Using Actions in CB: a discussion
« Reply #17 on: December 19, 2005, 11:46:56 pm »
It seems. :D

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Using Actions in CB: a discussion
« Reply #18 on: December 19, 2005, 11:59:39 pm »
So are you writing the mouse gestures plugin?
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

takeshimiya

  • Guest
Re: Using Actions in CB: a discussion
« Reply #19 on: December 20, 2005, 12:09:34 am »
No, I was only worried about future bindings like mouse gesture and VIM-like command entries. But there are far more important things like Unicode support now.