mycnc-screen:1366_series_screen_configuration_examples
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mycnc-screen:1366_series_screen_configuration_examples [2019/10/10 09:40] – ivan | mycnc-screen:1366_series_screen_configuration_examples [2022/03/29 15:53] (current) – ivan | ||
---|---|---|---|
Line 1: | Line 1: | ||
======1366 Series Screen Configuration Examples===== | ======1366 Series Screen Configuration Examples===== | ||
+ | |||
+ | //**NOTE**: The myCNC team recommends utilizing the examples provided in this manual (as well as other manuals in this documentation) as a starting point for your machine setup. When possible (and applicable), | ||
The following examples show some of the available settings that were discussed in the [[mycnc: | The following examples show some of the available settings that were discussed in the [[mycnc: | ||
Line 183: | Line 185: | ||
* This is followed by similar code for x-log and x-nclist, and outlines the basics of each of the three already existing tabs. First of all, it is necessary to add a fourth chunk of code, which we will call '' | * This is followed by similar code for x-log and x-nclist, and outlines the basics of each of the three already existing tabs. First of all, it is necessary to add a fourth chunk of code, which we will call '' | ||
- | <code XML>< | + | <code XML>< |
- | | + | |
- | | + | |
| | ||
| | ||
Line 198: | Line 200: | ||
* Next, the button to switch to the Map tab will be added. It is done through the following code: | * Next, the button to switch to the Map tab will be added. It is done through the following code: | ||
- | <code XML>< | + | <code XML>< |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
* Note that this refers to an **image** that is not used anywhere else in the application, | * Note that this refers to an **image** that is not used anywhere else in the application, | ||
Line 215: | Line 217: | ||
* Next, the frame around the buttons inside the x-mapping tab will be inserted using the following code: | * Next, the frame around the buttons inside the x-mapping tab will be inserted using the following code: | ||
- | <code XML>< | + | <code XML>< |
- | | + | |
| | ||
| | ||
- | | + | |
The frame will appear in the previously blank Map tab (not filling in the entire tab, as its width and height have only been specified to be 360,160) | The frame will appear in the previously blank Map tab (not filling in the entire tab, as its width and height have only been specified to be 360,160) | ||
Line 228: | Line 230: | ||
<code XML>< | <code XML>< | ||
| | ||
- | | + | |
| | ||
Line 244: | Line 246: | ||
<gitem where=" | <gitem where=" | ||
| | ||
- | | + | |
| | ||
| | ||
Line 255: | Line 257: | ||
| | ||
| | ||
- | | + | |
| | ||
</ | </ | ||
Line 272: | Line 274: | ||
| | ||
| | ||
- | < | + | < |
</ | </ | ||
Line 305: | Line 307: | ||
From here on, it is possible to continue adding display elements to this tab in the remaining space, by creating subsections similar to the '' | From here on, it is possible to continue adding display elements to this tab in the remaining space, by creating subsections similar to the '' | ||
- | ====Example 3: | + | |
+ | ====Example | ||
+ | |||
+ | The orientation changes for your visualization and workflow (by rotating the visualization 90/180/270 degrees, etc) are done in three major ways: | ||
+ | |||
+ | * The 2D screen visualization (for example, on plasma/gas profiles) | ||
+ | * For your hotkeys (matching the arrow keys to the new visualization that you have rotated by +-90/ | ||
+ | * Adjusting the movement within the Part Rotation widget. | ||
+ | |||
+ | Going through these step by step: | ||
+ | |||
+ | 1) Head into //Settings -> Config -> Screen//, and then locate and enable the **2D visualization: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 2) Hotkeys settings can be found in //Settings -> Config -> Panel/ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 3) Rotation widget editing is done through the .xml file (x-rotate.xml) which can be found in your profile' | ||
+ | |||
+ | Scroll down to the following section: | ||
+ | |||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | and change the **table-rotation** value. By default it is set to 0, changing it to -90, for example, will rotate the motion setup for the jog buttons in the Rotation tab by -90 degrees: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | ====Example 5: Add a custom client logo to the main myCNC screen==== | ||
+ | |||
+ | This example is similar to Examples 1 and 2 (adding a single element to the main myCNC screen). However, it is geared specifically towards clients wanting to customize myCNC with their logo, and the code provided here can be used without changes, provided the naming scheme for the files and the folders is maintained by the user. | ||
+ | |||
+ | //WARNING: It is often recommended to create a backup of your profile folder, in case you'd like to revert back to the original profile for any reason.// | ||
+ | |||
+ | The screen below is what the original screen in this example looks like. We aim to add a small 3x2 logo in the top left corner of the screen (by moving the top strip of buttons to the right to provide some extra space): | ||
+ | |||
+ | {{: | ||
+ | |||
+ | In this example, we will be using a 120x80 pixel custom logo. If the user does not want to modify the code below, they have to maintain a 3 by 2 width/ | ||
+ | |||
+ | 1) To begin with, navigate to your myCNC profile folder (located in '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 2) Within your profile folder, locate and open the '' | ||
+ | |||
+ | 3) Next, we will insert the following block of code into an empty line (not between existing < | ||
+ | |||
+ | <code XML> | ||
+ | < | ||
+ | < | ||
+ | skin=" | ||
+ | position=" | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 4) Next, move every button in the top row of the screen by 120 pixels to the right relative to their old position - this is done by changing the '' | ||
+ | |||
+ | <code XML> | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <!-- | ||
+ | <gitem where=" | ||
+ | image=" | ||
+ | action=" | ||
+ | --> | ||
+ | |||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | tooltip_ru=" | ||
+ | action=" | ||
+ | </ | ||
+ | |||
+ | to something akin to this: | ||
+ | |||
+ | <code XML> | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <!-- | ||
+ | <gitem where=" | ||
+ | action=" | ||
+ | --> | ||
+ | |||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | action=" | ||
+ | <gitem where=" | ||
+ | tooltip=" | ||
+ | tooltip_ru=" | ||
+ | action=" | ||
+ | </ | ||
+ | |||
+ | Notice how the only change between the two blocks of code is in the '' | ||
+ | |||
+ | 5) Additionally, | ||
+ | |||
+ | In that file ('' | ||
+ | |||
+ | <code XML> <gitem where=" | ||
+ | tooltip=" | ||
+ | </ | ||
+ | |||
+ | to this: | ||
+ | |||
+ | <code XML>< | ||
+ | tooltip=" | ||
+ | |||
+ | and save the file. The exact line may look a little different depending on the profile, however if in doubt, search for the words '' | ||
+ | |||
+ | 6) Next, we need to add our 120x80 px logo to the right folder. Navigate to ''/ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | After this is done, reload the myCNC applications. The changes should now take effect: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ====Editing the fonts in built-in menus using x.style==== | ||
+ | |||
+ | It is possible to edit the fonts and font sizes for built-in menus (like the G-code Open file menu shown below): | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Adjusting the font size for this window can be done using the x.style file in your profile folder. To edit it: | ||
+ | |||
+ | 1) Navigate to your profile folder (in this manual, X1366M will be used as an example) and open '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 2) Locate the // | ||
+ | |||
+ | //**Note**: on certain profiles (such as the plasma cutting series) you will have to edit the two first instances of QTreeView in the code instead. Do not delete the QTreeView lines that deal with background color:// | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 3) Add the following block of code for QTreeView instead: | ||
+ | |||
+ | < | ||
+ | { | ||
+ | border: 1px solid ## | ||
+ | border-radius: | ||
+ | border-style: | ||
+ | padding: 0px 0px 0px 0px; | ||
+ | |||
+ | font: bold 14px; | ||
+ | font-family: | ||
+ | }</ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | In the code above you can edit the font line to have the font size you need (instead of 14px). | ||
+ | |||
+ | 4) Save the x.style file and reload the myCNC application. The changes should now take effect: | ||
+ | |||
+ | {{:mycnc:screen-config-046-font-size-4.png}} | ||
+ | |||
+ | Editing the font (instead of the font size) can be done in a similar manner. |
mycnc-screen/1366_series_screen_configuration_examples.1570714837.txt.gz · Last modified: 2019/10/10 09:40 by ivan