Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
wxKeyBinder problems/solutions discussion
takeshimiya:
--- Quote from: mandrav on December 09, 2005, 07:06:05 pm ---I just hope you have time to work on it ;)
--- End quote ---
Unfortunately I don't have the skills yet =(
--- Quote from: Pecan on December 09, 2005, 07:14:03 pm ---A better way, I think, is for C::B to be the "server" for a bunch of
keybinder type plugins. C::B could provide the services AND
verifications/validations
--- End quote ---
Yes, something like that is more or less what I had in mind, but in a paradigm of "commands" and "bindings".
Thus, you could provide a "command" cmdSaveFile, and you could bind it to a menu, or a keyboard, or a mouse gesture.
And suppose you write an AngelScript macro that when you press {Ctrl-Enter} = {\n}{Tab}{Tab}. You could call that function (command) cmdCtrlEnter.
And then you could bind it to a menu entry, toolbar icon, etc.
Pecan:
1/10/2006 6:28 PM
Have commited KeyBinder v0.4.8 (svn 1708)
Fixed disappearing accerators when two menuitems have
the same label.
Fixed potential crash when panels are destroyed.
You may have to delete cbKeybinder04v16.ini from your
home directory if you get messages like "Keybinder file is corrupt, please delete".
This is because the code started honoring/matching the menuitems' id if the
text field *and* id match the file data. That way menuitems with identical text
can be differentiated. Eg., File->save project vs Project->save project.
You guys trying to throw curve balls again..?
It ain't gonna work. I may be the slowest turtle in the pond, but I
can tread water forever....
thanks
pecan
tiwag:
--- Quote from: Pecan on January 11, 2006, 12:40:49 am ---...Have commited KeyBinder v0.4.8 (svn 1708)...
--- End quote ---
you've used wxMenuItem::SetFont & ::GetFont
these are windows-only ! your plugin doesn't build under linux :(
--- Code: ---menuutils.cpp: In member function 'void wxMenuCmd::RebuildMenuitem()':
menuutils.cpp:162: error: 'class wxMenuItem' has no member named 'SetFont'
menuutils.cpp:162: error: 'class wxMenuItem' has no member named 'GetFont'
--- End code ---
Pecan:
Sorry
I should have surrounded that routine with #if defined( __WXMSW__ )
Will correct and recommit. Thanks for the heads up...
thanks
pecan
tiwag:
--- Quote from: Pecan on January 11, 2006, 07:15:33 pm ---I should have surrounded that routine with #if defined( __WXMSW__ )
--- End quote ---
i fear, that will not be enough ...
that'll be the result... :?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version