Touch Screens

Some entry widgets like MDI and Touch Off have a touch screen popup available to make it easier to use a Touch Screen.

Tool Bar

To add a button to the tool bar without having a menu item that creates an action you just have to create an action yourself.

_images/new-action-01.png

The action creating window, when you type in the Text name the Object name is created for you.

_images/new-action-02.png

Warning

Make sure the Object name matches the Action Name created when you create a menu item see the Menu section for the Action Names.

Now you just drag the action into the tool bar to create a new tool bar button.

_images/new-action-03.png

Another option is to just use QPushButtons in a QFrame as every menu action has a QPushButton as well that executes the same function.

MDI

To enable the G code popup for the MDI entry the QLineEdit object name must be either mdi_command_gc_le for the G code popup or mdi_command_kb_le for the keyboard popup.

_images/touch-01.png

The G code Dialog will appear when you touch the MDI entry box.

_images/touch-02.png

The Arrow Buttons change the bottom section to different letters.

_images/touch-03.png

Touch Off

The Coordinate System Touch Off offset is a QLineEdit named touchoff_le. To enable the number pad popup for the offset entry add a Dynamic Property named input to the and set the value to number.

_images/touch-04.png

Touch Off

_images/touch-05.png

Tool Touch Off

The Tool Touch Off offset is a QLineEdit named tool_touchoff_le. To enable the number pad popup for the offset entry add a Dynamic Property named input to the and set the value to number.

Spin Boxes

QDoubleSpinBox and QSpinBox can use the popup numbers keypad by adding a Dynamic Property named input and seting the value to number. If you enter a float value for a QSpinBox the value will get converted to an integer.

Line Edits

A QLineEdit can have a popup entry for numbers, G code or a full keyboard. Add a Dynamic Property named input and set the value to one of these number, gcode or keyboard.

File Navigator

If a QListWidget with an objectName of file_lw is found a touch friendly file selector is added. A Parent Directory and possibly a directory name with an ellipsis can be used to change directories. Touch a file name and it’s loaded into the GUI.

If PROGRAM_PREFIX is specified that will be the starting directory.

_images/touch-06.png