Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
cbKeyBinder Plugin for HEAD
Pecan:
@mandrav et al.
Please find attached cbKeyBndr0401.zip for HEAD
It is a much more efficient (and faster) version than
virgin wxKeyBinder. It attaches only to the first C::B frame
and any SCIwindow frames.
It avoids fooling around with disappearing wxMenuItems and
skips over menu items with file names (since c::b handles those
and keybinder shouldn't be replacing them from storage anyway).
Currently it stores the keys in %HOME% as:
"cbKeyBinder{pluginversion}{cbMajorMinor}.ini"
because I dont know where the proper place for a plugin to store
its data should be.
One problem. The main c::b frame has no recognizable name.
So cbKeyBinder is stuffing one in as "cbMainWindow" so that
it can recognize it in keyBinder.h::wxKeyBinder::Attach().
At least one window has to be attached to allow keyBinder to
activate when no SCIwindows are open. So I chose the first one.
If you would name the first frame, I'll yank out the frame naming
code.
Note that you do not have to close windows to add keys in
cbKeyBinder.
I'm open to any and all suggestions. I hope this helps out
with the project.
thanks
pecan
[attachment deleted by admin]
Pecan:
RE: cbKeyBinder
Another problem: it's loading the keys on a one shot timer.
As soon as I read some more of the HEAD code, I'll take
out the timer and replace it with a proper cbEVT....
thanks
pecan
mandrav:
Pecan,
--- Quote ---Currently it stores the keys in %HOME% as:
"cbKeyBinder{pluginversion}{cbMajorMinor}.ini"
because I dont know where the proper place for a plugin to store
its data should be.
--- End quote ---
In Manager::Get()->GetConfigManager(_T("app"))->GetConfigFolder() ConfigManager::GetConfigFolder() ;)
After I perform the mandatory tests, I suggest it is added in SVN (and the core wxKeyBinder be removed). Would you become its maintainer?
mandrav:
--- Quote from: Pecan on December 12, 2005, 06:08:04 pm ---RE: cbKeyBinder
Another problem: it's loading the keys on a one shot timer.
As soon as I read some more of the HEAD code, I'll take
out the timer and replace it with a proper cbEVT....
--- End quote ---
You might want to listen for EVT_APP_STARTUP_DONE
Pecan:
@mandrav
Acknowledged.
I'd be happy to maintain it AND work on its replacement.
Will now go test with EVT_APP_STARTUP_DONE
thanks
pecan
Navigation
[0] Message Index
[#] Next page
Go to full version