Author Topic: wxKeyBinder problems/solutions discussion  (Read 19627 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: wxKeyBinder problems/solutions discussion
« Reply #15 on: January 12, 2006, 05:11:30 pm »

but there exists another problem, i can't save any new keyboard settings,

after applying the changes, keybinder pops up a messagebox, saying the
new keyboard layout is saved under "/home/tiwag//.codeblocks/cbKeyBinder04v16.ini"
but there is no such file existing :?

did you notice the double slashes in the directory-path   /home/tiwag//.codeblocks  ?

it seems, that this
Code
    //memorize the key file name as {%HOME%}\cbKeyBinder+{vers}.ini
    m_sKeyFilename = ConfigManager::GetConfigFolder();
    // remove the dots from version string (using first 3 chars)
    wxString sPluginVersion=m_PluginInfo.version.BeforeLast('.'); //+v0.4.1
    sPluginVersion.Replace(_T("."),_T(""));
    m_sKeyFilename = m_sKeyFilename<<wxFILE_SEP_PATH<<m_PluginInfo.name<<sPluginVersion
        <<_T("v")<<SDKverStr<<_T(".ini"); //+v0.4.1
has to be handled differently in win32 and unix OS's

HTH
tiwag

But.. But.. Isn't every thing but cbKeybinder04v16.ini handed to me by
ConfigManager::GetConfigFolder() ??

How can I change that ??

thanks
pecan

EDIT:
Oh, there's a <<wxFILE_SEP_PATH in there.
Now how did that get there?
« Last Edit: January 13, 2006, 01:12:20 am by Pecan »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: wxKeyBinder problems/solutions discussion
« Reply #16 on: January 18, 2006, 03:55:42 am »
1/17/2006 9:54 PM

Have commited KeyBinder v0.4.11 (svn 1791)

Fixed GTK Update()/File Open crash
Fixed GTK not savings key bindings
Modified Attach/UpdateAllCmd for speed

Thanks
pecan

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: wxKeyBinder problems/solutions discussion
« Reply #17 on: January 23, 2006, 03:07:41 pm »
I am aware that keybinder is broken with the new
"settings scheme" in svn 1838.

I'll put it back together as soon as I figure out where
all the pieces went.

thanks
pecan

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: wxKeyBinder problems/solutions discussion
« Reply #18 on: January 23, 2006, 05:22:11 pm »
I am aware that keybinder is broken with the new "settings scheme" in svn 1838.
Ah yes, I only just finished that one... :lol:

[attachment deleted by admin]
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

sethjackson

  • Guest
Re: wxKeyBinder problems/solutions discussion
« Reply #19 on: January 23, 2006, 05:57:54 pm »
I am aware that keybinder is broken with the new "settings scheme" in svn 1838.
Ah yes, I only just finished that one... :lol:

That is soooo cool.  :lol: You have me cryin' thomas.

Offline Urxae

  • Regular
  • ***
  • Posts: 376
Re: wxKeyBinder problems/solutions discussion
« Reply #20 on: January 23, 2006, 11:22:14 pm »
Ah yes, I only just finished that one... :lol:

Very cool icon, but you might want to replace that "Strg" key with one that appears on more keyboard layouts. I've only ever seen Strg keys on German keyboards1. Using another key would make it more recognizable to more people, I think.
Maybe Alt?


1) According to Wikipedia that keyboard layout is used in Austria as well, but I don't see Strg on any of the other keyboard layouts they show.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: wxKeyBinder problems/solutions discussion
« Reply #21 on: January 23, 2006, 11:25:05 pm »
Keybinder v0.4.13 1/23/2006 5:06 PM

Have commited KeyBinder v0.4.13 (svn 1844)


Fixed key updating broken by new settings scheme
Cleaned up code and comments
Added operator== to keybinder.h to avoid unnecessary
 updates and writes.

Thanks
pecan

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: wxKeyBinder problems/solutions discussion
« Reply #22 on: January 23, 2006, 11:38:27 pm »
Very cool icon, but you might want to replace that "Strg" key with one that appears on more keyboard layouts. I've only ever seen Strg keys on German keyboards1. Using another key would make it more recognizable to more people, I think.
Maybe Alt?
Funny, now that you mention it, I have been wondering for many years why the "control" key is not labelled "control" on PC keyboards... buf of course I haven't used an English keyboard in a decade, so I wouldn't remember :)
Macintosh calls it "control", I think.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Urxae

  • Regular
  • ***
  • Posts: 376
Re: wxKeyBinder problems/solutions discussion
« Reply #23 on: January 24, 2006, 12:18:36 am »
Very cool icon, but you might want to replace that "Strg" key with one that appears on more keyboard layouts. I've only ever seen Strg keys on German keyboards1. Using another key would make it more recognizable to more people, I think.
Maybe Alt?
Funny, now that you mention it, I have been wondering for many years why the "control" key is not labelled "control" on PC keyboards... buf of course I haven't used an English keyboard in a decade, so I wouldn't remember :)

Heh :). Germans and their translations :P.

I've heard of such a thing as a Dutch keyboard layout, but as far as I'm concerned that's just the most annoying thing ever to happen to my Windows keyboard settings. Dead keys are evil, especially when programming in languages that use ' and " as delimiters for character/string constants :(.

Quote
Macintosh calls it "control", I think.

During the Google searches I did to investigate for that post1, I saw mac keyboards with both "Ctl" and "Ctrl". Didn't see any "Control" though. And I wouldn't know from personal experience, given that I've only used macs like two times (both > 5 years ago) in my entire life.


1) Before I noticed that Strg was Ctrl, not Shift. (I initially wanted to recommend Ctrl or Alt for use in the icon)