Re:KeyChoice - Axis Key-Binding editor
- ArcEye
- Offline
- Junior Member
- Posts: 25
- Thank you received: 761
Originally from this thread
www.linuxcnc.org/index.php/english/compo...562&limit=6&start=12
So I wrote one and it seems to work OK.I was looking a the feasibility of a menu based GUI, which allowed assignment and re-assignment of key combinations.
Some would probably need to be reserved, but a lot are up for grabs.
You can add extra commands as well as keys, but you will need to make them commands that Axis will understand and in the same format as the commands column
( with the root_window.bind() bit stripped, because the editor adds this in)
I have reserved the most universal key-bindings. They are so commonly used that to make them replaceable is potentially dangerous.
What if [Esc] doesn't halt the current task, are you going to guess what does before the tool collides with the chuck!?
It is written in QT3, so you will need to install the libraries first
sudo apt-get install libqt3-mt
Then from wherever you extracted the keychoice_0.1-2_i386.deb to, run
sudo dpkg -i keychoice_0.1-2_i386.deb
That's it, if its of use enjoy, I just wrote it to explore Axis a bit deeper and keep my hand in with QT.
regards
See post below for revised download
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
- Posts: 25
- Thank you received: 761
Bear with me for a bit on this one
Just tried installing on a vanilla install from Live CD and found more qt libs were required
Trouble is I have a full development environment on the other machine and it was obviously finding what it needed by other means.
Will update soonest
regards
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
- Posts: 25
- Thank you received: 761
Please Log in or Create an account to join the conversation.
- bjames28
- Offline
- Senior Member
- Posts: 77
- Thank you received: 0
It's amazing ! Really cool tool. Works perfectly.
Many thanks ArcEye.
Regards:
James
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
- Posts: 25
- Thank you received: 761
You are welcome - thanks for the feedback.It's amazing ! Really cool tool. Works perfectly.
Many thanks ArcEye.
I have now sorted the Qt libraries issue.
Ubuntu just builds and links against the threaded Qt libraries, but the default build of Qt is non-threaded.
Even when you build the threaded libraries, qmake's default is to link against non-threaded.
I recently re-built Qt3 for development, but because I have every library under the sun installed, I missed that it was linking against non-threaded libs, as it worked.
The new deb has been tested installing on 8.04 and 10.04
Instructions are the same
You will need to install the libraries first
sudo apt-get install libqt3-mt
Then from wherever you extracted the keychoice_0.1-2_i386.deb to, run
sudo dpkg -i keychoice_0.1-2_i386.deb
regards
( Download now at post 23858 on next page)
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
- Posts: 7330
- Thank you received: 1176
John
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
- Posts: 25
- Thank you received: 761
There are no dependencies in the .deb, if you have the Qt4 libraries installed it will work.**
(I did it as an exercise in discovering what Trolltech did to make Qt4 completely backwardly incompatible with Qt3 (without transition libraries).
Suppose I will have to start using Qt4 now, before support for Qt3 finishes in many distros. )
regards
** Ensure that libQt3Support is installed
( Download now at next post )
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
- Posts: 25
- Thank you received: 761
Updated versions of both the Qt3 and the Qt4 port of KeyChoice attached.
It now appends the new key bindings to the end of ~/.axisrc, if it already exists.
It still backs up .axisrc as well, found this was more convenient, even though I don't have anything much in it any more.
regards
Please Log in or Create an account to join the conversation.
- LAIR82
- Offline
- Platinum Member
- Posts: 336
- Thank you received: 9
I downloaded your editor, installed "sudo apt-get install libqt3-mt" in my "srt@Cinci:~/linuxcnc-dev$ " directory.
Do I do the "sudo dpkg -i keychoice_0.1-2_i386.deb" on that same line or do I need to go to
"srt@Cinci:~/linuxcnc-dev/src$" to apply it?
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
- Posts: 25
- Thank you received: 761
It does not matter which directory you are in, so long as that is where the .deb is. dpkg will copy files to the correct absolute pathsDo I do the "sudo dpkg -i keychoice_0.1-2_i386.deb" on that same line or do I need to go to
"srt@Cinci:~/linuxcnc-dev/src$" to apply it?
If you wanted to keep it in a logical place, move the deb to /var/cache/apt/archives, as that is where the other packages you have downloaded since installation will be.
regards
Please Log in or Create an account to join the conversation.