Re:KeyChoice - Axis Key-Binding editor

More
24 Aug 2012 16:28 - 25 Aug 2012 09:37 #23629 by ArcEye
KeyChoice - Axis Key-Binding editor was created by ArcEye
Hi

Originally from this thread
www.linuxcnc.org/index.php/english/compo...562&limit=6&start=12

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.

So I wrote one and it seems to work OK.



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
Attachments:
Last edit: 25 Aug 2012 09:37 by ArcEye.

Please Log in or Create an account to join the conversation.

More
24 Aug 2012 16:54 #23633 by ArcEye
Replied by ArcEye on topic Re:KeyChoice - Axis Key-Binding editor
Hi

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.

More
24 Aug 2012 17:42 - 25 Aug 2012 09:36 #23637 by ArcEye
Replied by ArcEye on topic Re:KeyChoice - Axis Key-Binding editor
Post superseded - see below for download
Last edit: 25 Aug 2012 09:36 by ArcEye.

Please Log in or Create an account to join the conversation.

More
25 Aug 2012 03:46 #23648 by bjames28
Replied by bjames28 on topic Re:KeyChoice - Axis Key-Binding editor
Hi,

It's amazing ! Really cool tool. Works perfectly.
Many thanks ArcEye.

Regards:
James

Please Log in or Create an account to join the conversation.

More
25 Aug 2012 09:34 - 03 Sep 2012 13:11 #23651 by ArcEye
Replied by ArcEye on topic Re:KeyChoice - Axis Key-Binding editor
bjames28 wrote:

It's amazing ! Really cool tool. Works perfectly.
Many thanks ArcEye.

You are welcome - thanks for the feedback.

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)
Attachments:
Last edit: 03 Sep 2012 13:11 by ArcEye.

Please Log in or Create an account to join the conversation.

More
25 Aug 2012 10:54 #23655 by BigJohnT
Replied by BigJohnT on topic Re:KeyChoice - Axis Key-Binding editor
This is really cool!

John

Please Log in or Create an account to join the conversation.

More
29 Aug 2012 09:36 - 03 Sep 2012 13:09 #23743 by ArcEye
Replied by ArcEye on topic Re:KeyChoice - Axis Key-Binding editor
I have ported KeyChoice to Qt4 for those of you that already have this installed.
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 )
Attachments:
Last edit: 03 Sep 2012 13:09 by ArcEye.

Please Log in or Create an account to join the conversation.

More
03 Sep 2012 13:09 #23858 by ArcEye
Replied by ArcEye on topic Re:KeyChoice - Axis Key-Binding editor
Hi

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

File Attachment:

File Name: keychoice_v2.zip
File Size:43 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
12 Oct 2012 14:57 #25267 by LAIR82
Replied by LAIR82 on topic Re:KeyChoice - Axis Key-Binding editor
Hello Arceye

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.

More
12 Oct 2012 15:07 - 12 Oct 2012 15:09 #25268 by ArcEye
Replied by ArcEye on topic Re:KeyChoice - Axis Key-Binding editor
Hi

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?

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 paths

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
Last edit: 12 Oct 2012 15:09 by ArcEye.

Please Log in or Create an account to join the conversation.

Time to create page: 0.092 seconds
Powered by Kunena Forum