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.
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....
config.status: creating src/plugins/contrib/keybinder/MakefileI think there should be a src/plugins/contrib/keybinder/Makefile.am but 'svn update' did not show one. Am I right?
config.status: error: cannot find input file: src/plugins/contrib/keybinder/Makefile.in
It seems that there is no makefile for the new plugin. At least configure complains about some missing Makefile.in:
btw- does keybinder plugin assist personalities ?If it uses ConfigManager, it has no choice. Personalitites are transparent.
what i wanted to ask is - can you use different key-bindings for different personalities ?btw- does keybinder plugin assist personalities ?If it uses ConfigManager, it has no choice. Personalitites are transparent.
I was wrong on how to get the config folder above. It's a static function so you just call ConfigManager::GetConfigFolder()...Well, it seems as if '#include <configmanager.h>' is missing in either 'cbkeybinder.cpp' or 'cbkeybinder.h'. Without this include my compiler (gcc 3.4.4) complains about an incomplete type at the line you were talking about because he only knows 'ConfigManager' from a forward declaration in 'manager.h'. Adding this include-directive to one of the stated files seems to fix this problem.
@tiwag
yes, I too have experienced this "shifty" key assisgnment state.
I'm looking at it. You can solve the problem...
Re: multiple keybinder personalities.the proposal of Yiannis, to change the filename according to the personality, sounds good !
wxKeyBinder DOES have the ability to store multiple
key "profiles". I turned it off so debugging ...
It is too much hassle to save them right in the personality .conf?
any plugin can add menu items here and there
what when my plugin adds a menu item and keybinder saved the ini file
when this particular plugin wasn't loaded ? (--> shifted ???)
"wxString mystring = mystring << SDK_PLUGIN_MAJOR << SDK_PLUGIN_MAJOR;"