NEWS
LinuxCNC 2.5.2 Release
LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 

Welcome, Guest
Username: Password: Remember me

TOPIC: Creating a GUI

Re:Creating a GUI 01 Sep 2012 10:19 #23834

  • Rick G
  • Rick G's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1069
  • Thank you received: 15
  • Karma: 80
Hi John,

Looking good, let me know when gui 6 is ready!

Rick G
The administrator has disabled public write access.

Re:Creating a GUI 01 Sep 2012 12:44 #23835

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 86
  • Karma: 134
Ready for?

I'm working on the gui 6 tutorial now and upload as I go if you want to take a look. It starts totally from scratch so it does not depend on prior tutorials.

John
The administrator has disabled public write access.

Re:Creating a GUI 02 Sep 2012 01:45 #23840

  • Rick G
  • Rick G's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1069
  • Thank you received: 15
  • Karma: 80
Did not know you were uploading as you go, will have to take a look.

Rick G
The administrator has disabled public write access.

Re:Creating a GUI 04 Sep 2012 10:28 #23888

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 86
  • Karma: 134
So I've been thinking organizational thoughts after successfully adding a library to the installed version of gui6. What makes sense to be in a library? I see touchy has several libraries, from a running standpoint does it make any difference what is in the libraries? Sorry if this too general a question...

John
The administrator has disabled public write access.

Re:Creating a GUI 04 Sep 2012 23:59 #23903

  • ArcEye
  • ArcEye's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1326
  • Thank you received: 102
  • Karma: 129
Hi John

Generally libraries do these sort of things.

They can provide a wrapper around various low-level functions to make the process higher level, more productive and more usable.
All API's do this sort of thing.

They also allow re-usable code without repeating it, reducing code size and increasing convenience.
A function or class can do this in one project, but a library can be re-used in all your projects.

The criteria will probably be, are you using the same code to do something in several places in your program?
If so abstract it into a function or class and then call that each time you do the task.

Do you foresee this same task arising in other programs?
If so put it into a library and then you save yourself cutting and pasting, not to mention re-reading the code to try and figure out what it does 2 yrs later, for life

regards
The administrator has disabled public write access.

Re:Creating a GUI 05 Sep 2012 04:40 #23909

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 86
  • Karma: 134
Thanks, that gives me something to think about for a while.

Just off the top of my head say I had a manual class with a jog method I could call that method with the axis and the type of jog and the rest of the parameters needed... things that make you say hmmm.

John
The administrator has disabled public write access.
Time to create page: 0.981 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.