├── .gitignore
├── Init.qml
├── LICENSE
├── Machineface.pro
├── Machineface
├── AboutDialog.qml
├── ApplicationMenu.qml
├── ApplicationToolBar.qml
├── ButtonJog.qml
├── CustomButtonStyle.qml
├── DisplayPanel.qml
├── DisplayPanelBase.qml
├── ExtruderJogButton.qml
├── FanControl.qml
├── FontIcon.qml
├── GCodeTab.qml
├── GantryConfigControl.qml
├── HomeButton.qml
├── JogControlTab.qml
├── JogKeyHandler.qml
├── JogKnob.qml
├── JogVelocityKnob.qml
├── LightControl.qml
├── Machineface.qml
├── MdiTab.qml
├── OverlayDialog.qml
├── PreviewTab.qml
├── SettingsTab.qml
├── Singletons
│ ├── Info.qml
│ └── qmldir
├── TemperatureControl.qml
├── ToggleSettingCheck.qml
├── VelocityExtrusionControl.qml
├── VideoTab.qml
├── description.ini
├── icons
│ ├── MaterialIcons-Regular.ttf
│ └── README.org
└── translations
│ ├── machineface_de.qm
│ ├── machineface_en.qm
│ ├── machineface_es.qm
│ └── machineface_ru.qm
├── README.md
├── doc
└── Machineface.png
├── main.cpp
├── main.qml
├── qml.qrc
├── translation.pri
└── translations
├── machineface_de.ts
├── machineface_en.ts
├── machineface_es.ts
└── machineface_ru.ts
/.gitignore:
--------------------------------------------------------------------------------
1 | # C++ objects and libs
2 |
3 | *.slo
4 | *.lo
5 | *.o
6 | *.a
7 | *.la
8 | *.lai
9 | *.so
10 | *.dll
11 | *.dylib
12 |
13 | # Qt-es
14 |
15 | /.qmake.cache
16 | /.qmake.stash
17 | *.pro.user
18 | *.pro.user.*
19 | *.moc
20 | moc_*.cpp
21 | qrc_*.cpp
22 | ui_*.h
23 | Makefile*
24 | *-build-*
25 | *.qmlc
26 |
27 | # QtCreator
28 |
29 | *.autosave
30 |
31 | #QtCtreator Qml
32 | *.qmlproject.user
33 | *.qmlproject.user.*
34 |
35 | # Linux
36 | .directory
--------------------------------------------------------------------------------
/Init.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Controls 1.1
3 | import Machinekit.Application 1.0
4 | import Machinekit.Application.Controls 1.0
5 | import Machinekit.Service 1.0
6 |
7 | Item {
8 | property alias title: connectionWindow.title
9 | property alias toolBar: connectionWindow.toolBar
10 | property alias statusBar: connectionWindow.statusBar
11 | property alias menuBar: connectionWindow.menuBar
12 |
13 | id: applicationWindow
14 | width: 1280
15 | height: 800
16 |
17 | ConnectionWindow {
18 | id: connectionWindow
19 |
20 | anchors.fill: parent
21 | color: "white"
22 | defaultTitle: "Machineface"
23 | autoSelectInstance: true
24 | autoSelectApplication: true
25 | localVisible: true
26 | remoteVisible: false
27 | lookupMode: ServiceDiscovery.MulticastDNS
28 | instanceFilter { name: "" }
29 |
30 | ApplicationDescription {
31 | sourceDir: "./Machineface/"
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU AFFERO GENERAL PUBLIC LICENSE
2 | Version 3, 19 November 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU Affero General Public License is a free, copyleft license for
11 | software and other kinds of works, specifically designed to ensure
12 | cooperation with the community in the case of network server software.
13 |
14 | The licenses for most software and other practical works are designed
15 | to take away your freedom to share and change the works. By contrast,
16 | our General Public Licenses are intended to guarantee your freedom to
17 | share and change all versions of a program--to make sure it remains free
18 | software for all its users.
19 |
20 | When we speak of free software, we are referring to freedom, not
21 | price. Our General Public Licenses are designed to make sure that you
22 | have the freedom to distribute copies of free software (and charge for
23 | them if you wish), that you receive source code or can get it if you
24 | want it, that you can change the software or use pieces of it in new
25 | free programs, and that you know you can do these things.
26 |
27 | Developers that use our General Public Licenses protect your rights
28 | with two steps: (1) assert copyright on the software, and (2) offer
29 | you this License which gives you legal permission to copy, distribute
30 | and/or modify the software.
31 |
32 | A secondary benefit of defending all users' freedom is that
33 | improvements made in alternate versions of the program, if they
34 | receive widespread use, become available for other developers to
35 | incorporate. Many developers of free software are heartened and
36 | encouraged by the resulting cooperation. However, in the case of
37 | software used on network servers, this result may fail to come about.
38 | The GNU General Public License permits making a modified version and
39 | letting the public access it on a server without ever releasing its
40 | source code to the public.
41 |
42 | The GNU Affero General Public License is designed specifically to
43 | ensure that, in such cases, the modified source code becomes available
44 | to the community. It requires the operator of a network server to
45 | provide the source code of the modified version running there to the
46 | users of that server. Therefore, public use of a modified version, on
47 | a publicly accessible server, gives the public access to the source
48 | code of the modified version.
49 |
50 | An older license, called the Affero General Public License and
51 | published by Affero, was designed to accomplish similar goals. This is
52 | a different license, not a version of the Affero GPL, but Affero has
53 | released a new version of the Affero GPL which permits relicensing under
54 | this license.
55 |
56 | The precise terms and conditions for copying, distribution and
57 | modification follow.
58 |
59 | TERMS AND CONDITIONS
60 |
61 | 0. Definitions.
62 |
63 | "This License" refers to version 3 of the GNU Affero General Public License.
64 |
65 | "Copyright" also means copyright-like laws that apply to other kinds of
66 | works, such as semiconductor masks.
67 |
68 | "The Program" refers to any copyrightable work licensed under this
69 | License. Each licensee is addressed as "you". "Licensees" and
70 | "recipients" may be individuals or organizations.
71 |
72 | To "modify" a work means to copy from or adapt all or part of the work
73 | in a fashion requiring copyright permission, other than the making of an
74 | exact copy. The resulting work is called a "modified version" of the
75 | earlier work or a work "based on" the earlier work.
76 |
77 | A "covered work" means either the unmodified Program or a work based
78 | on the Program.
79 |
80 | To "propagate" a work means to do anything with it that, without
81 | permission, would make you directly or secondarily liable for
82 | infringement under applicable copyright law, except executing it on a
83 | computer or modifying a private copy. Propagation includes copying,
84 | distribution (with or without modification), making available to the
85 | public, and in some countries other activities as well.
86 |
87 | To "convey" a work means any kind of propagation that enables other
88 | parties to make or receive copies. Mere interaction with a user through
89 | a computer network, with no transfer of a copy, is not conveying.
90 |
91 | An interactive user interface displays "Appropriate Legal Notices"
92 | to the extent that it includes a convenient and prominently visible
93 | feature that (1) displays an appropriate copyright notice, and (2)
94 | tells the user that there is no warranty for the work (except to the
95 | extent that warranties are provided), that licensees may convey the
96 | work under this License, and how to view a copy of this License. If
97 | the interface presents a list of user commands or options, such as a
98 | menu, a prominent item in the list meets this criterion.
99 |
100 | 1. Source Code.
101 |
102 | The "source code" for a work means the preferred form of the work
103 | for making modifications to it. "Object code" means any non-source
104 | form of a work.
105 |
106 | A "Standard Interface" means an interface that either is an official
107 | standard defined by a recognized standards body, or, in the case of
108 | interfaces specified for a particular programming language, one that
109 | is widely used among developers working in that language.
110 |
111 | The "System Libraries" of an executable work include anything, other
112 | than the work as a whole, that (a) is included in the normal form of
113 | packaging a Major Component, but which is not part of that Major
114 | Component, and (b) serves only to enable use of the work with that
115 | Major Component, or to implement a Standard Interface for which an
116 | implementation is available to the public in source code form. A
117 | "Major Component", in this context, means a major essential component
118 | (kernel, window system, and so on) of the specific operating system
119 | (if any) on which the executable work runs, or a compiler used to
120 | produce the work, or an object code interpreter used to run it.
121 |
122 | The "Corresponding Source" for a work in object code form means all
123 | the source code needed to generate, install, and (for an executable
124 | work) run the object code and to modify the work, including scripts to
125 | control those activities. However, it does not include the work's
126 | System Libraries, or general-purpose tools or generally available free
127 | programs which are used unmodified in performing those activities but
128 | which are not part of the work. For example, Corresponding Source
129 | includes interface definition files associated with source files for
130 | the work, and the source code for shared libraries and dynamically
131 | linked subprograms that the work is specifically designed to require,
132 | such as by intimate data communication or control flow between those
133 | subprograms and other parts of the work.
134 |
135 | The Corresponding Source need not include anything that users
136 | can regenerate automatically from other parts of the Corresponding
137 | Source.
138 |
139 | The Corresponding Source for a work in source code form is that
140 | same work.
141 |
142 | 2. Basic Permissions.
143 |
144 | All rights granted under this License are granted for the term of
145 | copyright on the Program, and are irrevocable provided the stated
146 | conditions are met. This License explicitly affirms your unlimited
147 | permission to run the unmodified Program. The output from running a
148 | covered work is covered by this License only if the output, given its
149 | content, constitutes a covered work. This License acknowledges your
150 | rights of fair use or other equivalent, as provided by copyright law.
151 |
152 | You may make, run and propagate covered works that you do not
153 | convey, without conditions so long as your license otherwise remains
154 | in force. You may convey covered works to others for the sole purpose
155 | of having them make modifications exclusively for you, or provide you
156 | with facilities for running those works, provided that you comply with
157 | the terms of this License in conveying all material for which you do
158 | not control copyright. Those thus making or running the covered works
159 | for you must do so exclusively on your behalf, under your direction
160 | and control, on terms that prohibit them from making any copies of
161 | your copyrighted material outside their relationship with you.
162 |
163 | Conveying under any other circumstances is permitted solely under
164 | the conditions stated below. Sublicensing is not allowed; section 10
165 | makes it unnecessary.
166 |
167 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168 |
169 | No covered work shall be deemed part of an effective technological
170 | measure under any applicable law fulfilling obligations under article
171 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172 | similar laws prohibiting or restricting circumvention of such
173 | measures.
174 |
175 | When you convey a covered work, you waive any legal power to forbid
176 | circumvention of technological measures to the extent such circumvention
177 | is effected by exercising rights under this License with respect to
178 | the covered work, and you disclaim any intention to limit operation or
179 | modification of the work as a means of enforcing, against the work's
180 | users, your or third parties' legal rights to forbid circumvention of
181 | technological measures.
182 |
183 | 4. Conveying Verbatim Copies.
184 |
185 | You may convey verbatim copies of the Program's source code as you
186 | receive it, in any medium, provided that you conspicuously and
187 | appropriately publish on each copy an appropriate copyright notice;
188 | keep intact all notices stating that this License and any
189 | non-permissive terms added in accord with section 7 apply to the code;
190 | keep intact all notices of the absence of any warranty; and give all
191 | recipients a copy of this License along with the Program.
192 |
193 | You may charge any price or no price for each copy that you convey,
194 | and you may offer support or warranty protection for a fee.
195 |
196 | 5. Conveying Modified Source Versions.
197 |
198 | You may convey a work based on the Program, or the modifications to
199 | produce it from the Program, in the form of source code under the
200 | terms of section 4, provided that you also meet all of these conditions:
201 |
202 | a) The work must carry prominent notices stating that you modified
203 | it, and giving a relevant date.
204 |
205 | b) The work must carry prominent notices stating that it is
206 | released under this License and any conditions added under section
207 | 7. This requirement modifies the requirement in section 4 to
208 | "keep intact all notices".
209 |
210 | c) You must license the entire work, as a whole, under this
211 | License to anyone who comes into possession of a copy. This
212 | License will therefore apply, along with any applicable section 7
213 | additional terms, to the whole of the work, and all its parts,
214 | regardless of how they are packaged. This License gives no
215 | permission to license the work in any other way, but it does not
216 | invalidate such permission if you have separately received it.
217 |
218 | d) If the work has interactive user interfaces, each must display
219 | Appropriate Legal Notices; however, if the Program has interactive
220 | interfaces that do not display Appropriate Legal Notices, your
221 | work need not make them do so.
222 |
223 | A compilation of a covered work with other separate and independent
224 | works, which are not by their nature extensions of the covered work,
225 | and which are not combined with it such as to form a larger program,
226 | in or on a volume of a storage or distribution medium, is called an
227 | "aggregate" if the compilation and its resulting copyright are not
228 | used to limit the access or legal rights of the compilation's users
229 | beyond what the individual works permit. Inclusion of a covered work
230 | in an aggregate does not cause this License to apply to the other
231 | parts of the aggregate.
232 |
233 | 6. Conveying Non-Source Forms.
234 |
235 | You may convey a covered work in object code form under the terms
236 | of sections 4 and 5, provided that you also convey the
237 | machine-readable Corresponding Source under the terms of this License,
238 | in one of these ways:
239 |
240 | a) Convey the object code in, or embodied in, a physical product
241 | (including a physical distribution medium), accompanied by the
242 | Corresponding Source fixed on a durable physical medium
243 | customarily used for software interchange.
244 |
245 | b) Convey the object code in, or embodied in, a physical product
246 | (including a physical distribution medium), accompanied by a
247 | written offer, valid for at least three years and valid for as
248 | long as you offer spare parts or customer support for that product
249 | model, to give anyone who possesses the object code either (1) a
250 | copy of the Corresponding Source for all the software in the
251 | product that is covered by this License, on a durable physical
252 | medium customarily used for software interchange, for a price no
253 | more than your reasonable cost of physically performing this
254 | conveying of source, or (2) access to copy the
255 | Corresponding Source from a network server at no charge.
256 |
257 | c) Convey individual copies of the object code with a copy of the
258 | written offer to provide the Corresponding Source. This
259 | alternative is allowed only occasionally and noncommercially, and
260 | only if you received the object code with such an offer, in accord
261 | with subsection 6b.
262 |
263 | d) Convey the object code by offering access from a designated
264 | place (gratis or for a charge), and offer equivalent access to the
265 | Corresponding Source in the same way through the same place at no
266 | further charge. You need not require recipients to copy the
267 | Corresponding Source along with the object code. If the place to
268 | copy the object code is a network server, the Corresponding Source
269 | may be on a different server (operated by you or a third party)
270 | that supports equivalent copying facilities, provided you maintain
271 | clear directions next to the object code saying where to find the
272 | Corresponding Source. Regardless of what server hosts the
273 | Corresponding Source, you remain obligated to ensure that it is
274 | available for as long as needed to satisfy these requirements.
275 |
276 | e) Convey the object code using peer-to-peer transmission, provided
277 | you inform other peers where the object code and Corresponding
278 | Source of the work are being offered to the general public at no
279 | charge under subsection 6d.
280 |
281 | A separable portion of the object code, whose source code is excluded
282 | from the Corresponding Source as a System Library, need not be
283 | included in conveying the object code work.
284 |
285 | A "User Product" is either (1) a "consumer product", which means any
286 | tangible personal property which is normally used for personal, family,
287 | or household purposes, or (2) anything designed or sold for incorporation
288 | into a dwelling. In determining whether a product is a consumer product,
289 | doubtful cases shall be resolved in favor of coverage. For a particular
290 | product received by a particular user, "normally used" refers to a
291 | typical or common use of that class of product, regardless of the status
292 | of the particular user or of the way in which the particular user
293 | actually uses, or expects or is expected to use, the product. A product
294 | is a consumer product regardless of whether the product has substantial
295 | commercial, industrial or non-consumer uses, unless such uses represent
296 | the only significant mode of use of the product.
297 |
298 | "Installation Information" for a User Product means any methods,
299 | procedures, authorization keys, or other information required to install
300 | and execute modified versions of a covered work in that User Product from
301 | a modified version of its Corresponding Source. The information must
302 | suffice to ensure that the continued functioning of the modified object
303 | code is in no case prevented or interfered with solely because
304 | modification has been made.
305 |
306 | If you convey an object code work under this section in, or with, or
307 | specifically for use in, a User Product, and the conveying occurs as
308 | part of a transaction in which the right of possession and use of the
309 | User Product is transferred to the recipient in perpetuity or for a
310 | fixed term (regardless of how the transaction is characterized), the
311 | Corresponding Source conveyed under this section must be accompanied
312 | by the Installation Information. But this requirement does not apply
313 | if neither you nor any third party retains the ability to install
314 | modified object code on the User Product (for example, the work has
315 | been installed in ROM).
316 |
317 | The requirement to provide Installation Information does not include a
318 | requirement to continue to provide support service, warranty, or updates
319 | for a work that has been modified or installed by the recipient, or for
320 | the User Product in which it has been modified or installed. Access to a
321 | network may be denied when the modification itself materially and
322 | adversely affects the operation of the network or violates the rules and
323 | protocols for communication across the network.
324 |
325 | Corresponding Source conveyed, and Installation Information provided,
326 | in accord with this section must be in a format that is publicly
327 | documented (and with an implementation available to the public in
328 | source code form), and must require no special password or key for
329 | unpacking, reading or copying.
330 |
331 | 7. Additional Terms.
332 |
333 | "Additional permissions" are terms that supplement the terms of this
334 | License by making exceptions from one or more of its conditions.
335 | Additional permissions that are applicable to the entire Program shall
336 | be treated as though they were included in this License, to the extent
337 | that they are valid under applicable law. If additional permissions
338 | apply only to part of the Program, that part may be used separately
339 | under those permissions, but the entire Program remains governed by
340 | this License without regard to the additional permissions.
341 |
342 | When you convey a copy of a covered work, you may at your option
343 | remove any additional permissions from that copy, or from any part of
344 | it. (Additional permissions may be written to require their own
345 | removal in certain cases when you modify the work.) You may place
346 | additional permissions on material, added by you to a covered work,
347 | for which you have or can give appropriate copyright permission.
348 |
349 | Notwithstanding any other provision of this License, for material you
350 | add to a covered work, you may (if authorized by the copyright holders of
351 | that material) supplement the terms of this License with terms:
352 |
353 | a) Disclaiming warranty or limiting liability differently from the
354 | terms of sections 15 and 16 of this License; or
355 |
356 | b) Requiring preservation of specified reasonable legal notices or
357 | author attributions in that material or in the Appropriate Legal
358 | Notices displayed by works containing it; or
359 |
360 | c) Prohibiting misrepresentation of the origin of that material, or
361 | requiring that modified versions of such material be marked in
362 | reasonable ways as different from the original version; or
363 |
364 | d) Limiting the use for publicity purposes of names of licensors or
365 | authors of the material; or
366 |
367 | e) Declining to grant rights under trademark law for use of some
368 | trade names, trademarks, or service marks; or
369 |
370 | f) Requiring indemnification of licensors and authors of that
371 | material by anyone who conveys the material (or modified versions of
372 | it) with contractual assumptions of liability to the recipient, for
373 | any liability that these contractual assumptions directly impose on
374 | those licensors and authors.
375 |
376 | All other non-permissive additional terms are considered "further
377 | restrictions" within the meaning of section 10. If the Program as you
378 | received it, or any part of it, contains a notice stating that it is
379 | governed by this License along with a term that is a further
380 | restriction, you may remove that term. If a license document contains
381 | a further restriction but permits relicensing or conveying under this
382 | License, you may add to a covered work material governed by the terms
383 | of that license document, provided that the further restriction does
384 | not survive such relicensing or conveying.
385 |
386 | If you add terms to a covered work in accord with this section, you
387 | must place, in the relevant source files, a statement of the
388 | additional terms that apply to those files, or a notice indicating
389 | where to find the applicable terms.
390 |
391 | Additional terms, permissive or non-permissive, may be stated in the
392 | form of a separately written license, or stated as exceptions;
393 | the above requirements apply either way.
394 |
395 | 8. Termination.
396 |
397 | You may not propagate or modify a covered work except as expressly
398 | provided under this License. Any attempt otherwise to propagate or
399 | modify it is void, and will automatically terminate your rights under
400 | this License (including any patent licenses granted under the third
401 | paragraph of section 11).
402 |
403 | However, if you cease all violation of this License, then your
404 | license from a particular copyright holder is reinstated (a)
405 | provisionally, unless and until the copyright holder explicitly and
406 | finally terminates your license, and (b) permanently, if the copyright
407 | holder fails to notify you of the violation by some reasonable means
408 | prior to 60 days after the cessation.
409 |
410 | Moreover, your license from a particular copyright holder is
411 | reinstated permanently if the copyright holder notifies you of the
412 | violation by some reasonable means, this is the first time you have
413 | received notice of violation of this License (for any work) from that
414 | copyright holder, and you cure the violation prior to 30 days after
415 | your receipt of the notice.
416 |
417 | Termination of your rights under this section does not terminate the
418 | licenses of parties who have received copies or rights from you under
419 | this License. If your rights have been terminated and not permanently
420 | reinstated, you do not qualify to receive new licenses for the same
421 | material under section 10.
422 |
423 | 9. Acceptance Not Required for Having Copies.
424 |
425 | You are not required to accept this License in order to receive or
426 | run a copy of the Program. Ancillary propagation of a covered work
427 | occurring solely as a consequence of using peer-to-peer transmission
428 | to receive a copy likewise does not require acceptance. However,
429 | nothing other than this License grants you permission to propagate or
430 | modify any covered work. These actions infringe copyright if you do
431 | not accept this License. Therefore, by modifying or propagating a
432 | covered work, you indicate your acceptance of this License to do so.
433 |
434 | 10. Automatic Licensing of Downstream Recipients.
435 |
436 | Each time you convey a covered work, the recipient automatically
437 | receives a license from the original licensors, to run, modify and
438 | propagate that work, subject to this License. You are not responsible
439 | for enforcing compliance by third parties with this License.
440 |
441 | An "entity transaction" is a transaction transferring control of an
442 | organization, or substantially all assets of one, or subdividing an
443 | organization, or merging organizations. If propagation of a covered
444 | work results from an entity transaction, each party to that
445 | transaction who receives a copy of the work also receives whatever
446 | licenses to the work the party's predecessor in interest had or could
447 | give under the previous paragraph, plus a right to possession of the
448 | Corresponding Source of the work from the predecessor in interest, if
449 | the predecessor has it or can get it with reasonable efforts.
450 |
451 | You may not impose any further restrictions on the exercise of the
452 | rights granted or affirmed under this License. For example, you may
453 | not impose a license fee, royalty, or other charge for exercise of
454 | rights granted under this License, and you may not initiate litigation
455 | (including a cross-claim or counterclaim in a lawsuit) alleging that
456 | any patent claim is infringed by making, using, selling, offering for
457 | sale, or importing the Program or any portion of it.
458 |
459 | 11. Patents.
460 |
461 | A "contributor" is a copyright holder who authorizes use under this
462 | License of the Program or a work on which the Program is based. The
463 | work thus licensed is called the contributor's "contributor version".
464 |
465 | A contributor's "essential patent claims" are all patent claims
466 | owned or controlled by the contributor, whether already acquired or
467 | hereafter acquired, that would be infringed by some manner, permitted
468 | by this License, of making, using, or selling its contributor version,
469 | but do not include claims that would be infringed only as a
470 | consequence of further modification of the contributor version. For
471 | purposes of this definition, "control" includes the right to grant
472 | patent sublicenses in a manner consistent with the requirements of
473 | this License.
474 |
475 | Each contributor grants you a non-exclusive, worldwide, royalty-free
476 | patent license under the contributor's essential patent claims, to
477 | make, use, sell, offer for sale, import and otherwise run, modify and
478 | propagate the contents of its contributor version.
479 |
480 | In the following three paragraphs, a "patent license" is any express
481 | agreement or commitment, however denominated, not to enforce a patent
482 | (such as an express permission to practice a patent or covenant not to
483 | sue for patent infringement). To "grant" such a patent license to a
484 | party means to make such an agreement or commitment not to enforce a
485 | patent against the party.
486 |
487 | If you convey a covered work, knowingly relying on a patent license,
488 | and the Corresponding Source of the work is not available for anyone
489 | to copy, free of charge and under the terms of this License, through a
490 | publicly available network server or other readily accessible means,
491 | then you must either (1) cause the Corresponding Source to be so
492 | available, or (2) arrange to deprive yourself of the benefit of the
493 | patent license for this particular work, or (3) arrange, in a manner
494 | consistent with the requirements of this License, to extend the patent
495 | license to downstream recipients. "Knowingly relying" means you have
496 | actual knowledge that, but for the patent license, your conveying the
497 | covered work in a country, or your recipient's use of the covered work
498 | in a country, would infringe one or more identifiable patents in that
499 | country that you have reason to believe are valid.
500 |
501 | If, pursuant to or in connection with a single transaction or
502 | arrangement, you convey, or propagate by procuring conveyance of, a
503 | covered work, and grant a patent license to some of the parties
504 | receiving the covered work authorizing them to use, propagate, modify
505 | or convey a specific copy of the covered work, then the patent license
506 | you grant is automatically extended to all recipients of the covered
507 | work and works based on it.
508 |
509 | A patent license is "discriminatory" if it does not include within
510 | the scope of its coverage, prohibits the exercise of, or is
511 | conditioned on the non-exercise of one or more of the rights that are
512 | specifically granted under this License. You may not convey a covered
513 | work if you are a party to an arrangement with a third party that is
514 | in the business of distributing software, under which you make payment
515 | to the third party based on the extent of your activity of conveying
516 | the work, and under which the third party grants, to any of the
517 | parties who would receive the covered work from you, a discriminatory
518 | patent license (a) in connection with copies of the covered work
519 | conveyed by you (or copies made from those copies), or (b) primarily
520 | for and in connection with specific products or compilations that
521 | contain the covered work, unless you entered into that arrangement,
522 | or that patent license was granted, prior to 28 March 2007.
523 |
524 | Nothing in this License shall be construed as excluding or limiting
525 | any implied license or other defenses to infringement that may
526 | otherwise be available to you under applicable patent law.
527 |
528 | 12. No Surrender of Others' Freedom.
529 |
530 | If conditions are imposed on you (whether by court order, agreement or
531 | otherwise) that contradict the conditions of this License, they do not
532 | excuse you from the conditions of this License. If you cannot convey a
533 | covered work so as to satisfy simultaneously your obligations under this
534 | License and any other pertinent obligations, then as a consequence you may
535 | not convey it at all. For example, if you agree to terms that obligate you
536 | to collect a royalty for further conveying from those to whom you convey
537 | the Program, the only way you could satisfy both those terms and this
538 | License would be to refrain entirely from conveying the Program.
539 |
540 | 13. Remote Network Interaction; Use with the GNU General Public License.
541 |
542 | Notwithstanding any other provision of this License, if you modify the
543 | Program, your modified version must prominently offer all users
544 | interacting with it remotely through a computer network (if your version
545 | supports such interaction) an opportunity to receive the Corresponding
546 | Source of your version by providing access to the Corresponding Source
547 | from a network server at no charge, through some standard or customary
548 | means of facilitating copying of software. This Corresponding Source
549 | shall include the Corresponding Source for any work covered by version 3
550 | of the GNU General Public License that is incorporated pursuant to the
551 | following paragraph.
552 |
553 | Notwithstanding any other provision of this License, you have
554 | permission to link or combine any covered work with a work licensed
555 | under version 3 of the GNU General Public License into a single
556 | combined work, and to convey the resulting work. The terms of this
557 | License will continue to apply to the part which is the covered work,
558 | but the work with which it is combined will remain governed by version
559 | 3 of the GNU General Public License.
560 |
561 | 14. Revised Versions of this License.
562 |
563 | The Free Software Foundation may publish revised and/or new versions of
564 | the GNU Affero General Public License from time to time. Such new versions
565 | will be similar in spirit to the present version, but may differ in detail to
566 | address new problems or concerns.
567 |
568 | Each version is given a distinguishing version number. If the
569 | Program specifies that a certain numbered version of the GNU Affero General
570 | Public License "or any later version" applies to it, you have the
571 | option of following the terms and conditions either of that numbered
572 | version or of any later version published by the Free Software
573 | Foundation. If the Program does not specify a version number of the
574 | GNU Affero General Public License, you may choose any version ever published
575 | by the Free Software Foundation.
576 |
577 | If the Program specifies that a proxy can decide which future
578 | versions of the GNU Affero General Public License can be used, that proxy's
579 | public statement of acceptance of a version permanently authorizes you
580 | to choose that version for the Program.
581 |
582 | Later license versions may give you additional or different
583 | permissions. However, no additional obligations are imposed on any
584 | author or copyright holder as a result of your choosing to follow a
585 | later version.
586 |
587 | 15. Disclaimer of Warranty.
588 |
589 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597 |
598 | 16. Limitation of Liability.
599 |
600 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608 | SUCH DAMAGES.
609 |
610 | 17. Interpretation of Sections 15 and 16.
611 |
612 | If the disclaimer of warranty and limitation of liability provided
613 | above cannot be given local legal effect according to their terms,
614 | reviewing courts shall apply local law that most closely approximates
615 | an absolute waiver of all civil liability in connection with the
616 | Program, unless a warranty or assumption of liability accompanies a
617 | copy of the Program in return for a fee.
618 |
619 | END OF TERMS AND CONDITIONS
620 |
621 | How to Apply These Terms to Your New Programs
622 |
623 | If you develop a new program, and you want it to be of the greatest
624 | possible use to the public, the best way to achieve this is to make it
625 | free software which everyone can redistribute and change under these terms.
626 |
627 | To do so, attach the following notices to the program. It is safest
628 | to attach them to the start of each source file to most effectively
629 | state the exclusion of warranty; and each file should have at least
630 | the "copyright" line and a pointer to where the full notice is found.
631 |
632 |
633 | Copyright (C)
634 |
635 | This program is free software: you can redistribute it and/or modify
636 | it under the terms of the GNU Affero General Public License as published
637 | by the Free Software Foundation, either version 3 of the License, or
638 | (at your option) any later version.
639 |
640 | This program is distributed in the hope that it will be useful,
641 | but WITHOUT ANY WARRANTY; without even the implied warranty of
642 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643 | GNU Affero General Public License for more details.
644 |
645 | You should have received a copy of the GNU Affero General Public License
646 | along with this program. If not, see .
647 |
648 | Also add information on how to contact you by electronic and paper mail.
649 |
650 | If your software can interact with users remotely through a computer
651 | network, you should also make sure that it provides a way for users to
652 | get its source. For example, if your program is a web application, its
653 | interface could display a "Source" link that leads users to an archive
654 | of the code. There are many ways you could offer source, and different
655 | solutions will be better for different programs; see section 13 for the
656 | specific requirements.
657 |
658 | You should also get your employer (if you work as a programmer) or school,
659 | if any, to sign a "copyright disclaimer" for the program, if necessary.
660 | For more information on this, and how to apply and follow the GNU AGPL, see
661 | .
662 |
663 |
--------------------------------------------------------------------------------
/Machineface.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | NAME = Machineface
3 |
4 | QT += qml quick widgets
5 |
6 | SOURCES += main.cpp
7 |
8 | RESOURCES += qml.qrc
9 |
10 | QML_FILES = $$PWD/$$NAME/*.qml
11 | OTHER_FILES += $$QML_FILES
12 |
13 | # Additional import path used to resolve QML modules in Qt Creator's code model
14 | QML_IMPORT_PATH =
15 |
16 | ios: {
17 | LIBS += -L$$PROTOBUF_LIB_PATH
18 | LIBS += -L$$ZEROMQ_LIB_PATH
19 | LIBS += -L$$LIBSODIUM_LIB_PATH
20 | LIBS += -lsodium -lzmq -lprotobuf
21 | }
22 |
23 | android: {
24 | LIBS += -lmachinetalk-protobuf
25 | }
26 |
27 | TRANSLATIONS_PATH = $$PWD/translations
28 | TRANSLATIONS_OUT_PATH = $$PWD/$$NAME/translations
29 | include(translation.pri)
30 |
--------------------------------------------------------------------------------
/Machineface/AboutDialog.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Controls 1.2
3 | import QtQuick.Dialogs 1.2
4 | import QtQuick.Layouts 1.1
5 | import QtQuick.Window 2.0
6 | import Machinekit.Application 1.0
7 | import "./Singletons"
8 |
9 | Dialog {
10 | id: aboutDialog
11 | title: qsTr("About Machineface")
12 |
13 | SystemPalette { id: systemPalette }
14 |
15 | contentItem: Rectangle {
16 | implicitWidth: Screen.pixelDensity * 140
17 | implicitHeight: dialogColumn.implicitHeight + Screen.pixelDensity*2
18 | color: systemPalette.window
19 |
20 | Label {
21 | id: dummyLabel
22 | }
23 |
24 | ColumnLayout {
25 | id: dialogColumn
26 | anchors.left: parent.left
27 | anchors.right: parent.right
28 | anchors.top: parent.top
29 | anchors.margins: Screen.pixelDensity
30 |
31 | Label {
32 | Layout.fillWidth: true
33 | text: "Machineface " + Info.version
34 | font.pixelSize: dummyLabel.font.pixelSize * 1.5
35 | font.bold: true
36 | }
37 |
38 | Label {
39 | id: infoText
40 | Layout.fillWidth: true
41 | text: "Copyright 2014-2017 by Alexander Rössler
"
42 | + "This UI is based on QtQuickVcp Revision: " + Revision.name + "
"
43 | + "
"
44 | + "Development sponsored by:
"
45 | + "TheCoolTool GmbH (http://www.thecooltool.com/)
"
46 | + "
"
47 | + "Machineface is licensed under the GNU Affero General Public License, version 3."
48 | textFormat: Text.StyledText
49 | elide: Text.ElideRight
50 | onLinkActivated: Qt.openUrlExternally(link)
51 | }
52 |
53 | RowLayout {
54 | Layout.fillWidth: true
55 |
56 | Item {
57 | Layout.fillWidth: true
58 | }
59 |
60 | Button {
61 | Layout.alignment: Layout.Right
62 | text: qsTr("Close")
63 | onClicked: aboutDialog.close()
64 | }
65 | }
66 | }
67 | }
68 |
69 | standardButtons: StandardButton.Close
70 | }
71 |
--------------------------------------------------------------------------------
/Machineface/ApplicationMenu.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Controls 1.1
3 | import Machinekit.Application.Controls 1.0
4 |
5 | Menu {
6 | id: testMenu
7 | title: qsTr("Menu")
8 |
9 | MenuItem {
10 | text: qsTr("&Disconnect from Session")
11 | iconName: "network-disconnect"
12 | onTriggered: window.disconnect()
13 | }
14 |
15 | MenuItem {
16 | text: qsTr("&About Machineface")
17 | iconName: "help-about"
18 | onTriggered: aboutDialog.open()
19 | }
20 |
21 | MenuItem {
22 | text: qsTr("Sh&utdown Session")
23 | action: ShutdownAction {}
24 | onTriggered: window.shutdown()
25 | }
26 |
27 | MenuItem {
28 | text: qsTr("E&xit User Interface")
29 | iconName: "application-exit"
30 | shortcut: "Ctrl+Q"
31 | onTriggered: Qt.quit()
32 | }
33 | }
34 |
35 |
--------------------------------------------------------------------------------
/Machineface/ApplicationToolBar.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Layouts 1.1
3 | import QtQuick.Window 2.0
4 | import QtQuick.Controls 1.2
5 | import QtQuick.Dialogs 1.2
6 | import Machinekit.Controls 1.0
7 | import Machinekit.Application.Controls 1.0
8 |
9 | Rectangle {
10 | color: systemPalette.dark
11 |
12 | SystemPalette { id: systemPalette }
13 |
14 | ColumnLayout {
15 | id: toolBar
16 | anchors.fill: parent
17 | anchors.margins: Screen.pixelDensity / 2
18 |
19 | TouchButton {
20 | Layout.fillWidth: true
21 | Layout.preferredHeight: width
22 | action : EstopPowerAction { }
23 | iconSource: ""
24 | FontIcon { // settings-power
25 | text: "\ue8c6"; color: systemPalette.light
26 | }
27 | }
28 | TouchButton {
29 | Layout.fillWidth: true
30 | Layout.preferredHeight: width
31 | action : OpenAction { fileDialog: applicationFileDialog }
32 | iconSource: ""
33 | FontIcon { // folder-open
34 | text: "\ue2c8"; color: systemPalette.light
35 | }
36 | }
37 | TouchButton {
38 | Layout.fillWidth: true
39 | Layout.preferredHeight: width
40 | action : OpenAction {
41 | fileDialog: applicationRemoteFileDialog
42 | shortcut: "Shift+O"
43 | }
44 | iconSource: ""
45 | FontIcon { // folder-open
46 | text: "\ue2c2"; color: systemPalette.light
47 | }
48 | }
49 | TouchButton {
50 | Layout.fillWidth: true
51 | Layout.preferredHeight: width
52 | action : RunProgramAction { }
53 | iconSource: ""
54 | FontIcon { // play_arrow
55 | text: "\ue037"; color: systemPalette.light
56 | }
57 | }
58 | TouchButton {
59 | Layout.fillWidth: true
60 | Layout.preferredHeight: width
61 | action : PauseResumeProgramAction { }
62 | iconSource: ""
63 | FontIcon { // pause
64 | text: "\ue034"; color: systemPalette.light
65 | }
66 | }
67 | TouchButton {
68 | Layout.fillWidth: true
69 | Layout.preferredHeight: width
70 | action : StopProgramAction { }
71 | iconSource: ""
72 | FontIcon { // stop
73 | text: "\ue047"; color: systemPalette.light
74 | }
75 | }
76 |
77 | Item {
78 | Layout.fillHeight: true
79 | }
80 |
81 | TouchButton {
82 | Layout.fillWidth: true
83 | Layout.preferredHeight: width
84 | onClicked: applicationMenu.popup()
85 | iconSource: ""
86 | FontIcon { // more_horiz
87 | text: "\ue5d3"; color: systemPalette.light
88 | }
89 | }
90 |
91 | ApplicationMenu {
92 | id: applicationMenu
93 | }
94 |
95 | AboutDialog {
96 | id: aboutDialog
97 | }
98 | }
99 | }
100 |
--------------------------------------------------------------------------------
/Machineface/ButtonJog.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Layouts 1.1
3 | import QtQuick.Controls 1.2
4 | import QtQuick.Controls.Styles 1.2
5 | import QtQuick.Window 2.0
6 | import QtQml 2.2
7 | import Machinekit.Application 1.0
8 | import Machinekit.Application.Controls 1.0
9 | import Machinekit.Service 1.0
10 | import Machinekit.HalRemote 1.0
11 | import Machinekit.HalRemote.Controls 1.0
12 |
13 | ApplicationItem {
14 | property var numberModel: defaultHandler.incrementsModel
15 | property var numberModelReverse: defaultHandler.incrementsModelReverse
16 | property var axisColors: ["#F5A9A9", "#A9F5F2", "#81F781", "#D2B48C", "#D28ED0", "#CFCC67"]
17 | property color allColor: "#DDD"
18 | property color specialColor: "#BBBBBB"
19 | property var axisNames: ["X", "Y", "Z", "A", "B", "C", "U", "V", "W"] // should come from INI/config
20 | property string eName: "E"
21 | property string eUnits: "mm/s"
22 | property bool zVisible: status.synced ? status.config.axes > 2 : true
23 | property bool aVisible: status.synced ? status.config.axes > 3 : true
24 | property bool eVisible: halRemoteComponent.connected || eWasConnected
25 | property bool eWasConnected: false
26 | property bool eEnabled: halRemoteComponent.connected
27 | property int buttonBaseHeight: container.height / (numberModel.length*2+1)
28 |
29 | property int baseSize: Math.min(width, height)
30 | property int fontSize: baseSize * 0.028
31 |
32 | id: root
33 |
34 | HalRemoteComponent {
35 | id: halRemoteComponent
36 | halrcmdUri: halrcmdService.uri
37 | halrcompUri: halrcompService.uri
38 | ready: (halrcmdService.ready && halrcompService.ready) || connected
39 | name: "fdm-ve-jog"
40 | containerItem: extruderControl
41 | create: false
42 | onErrorStringChanged: console.log(errorString)
43 | onConnectedChanged: root.eWasConnected = true
44 | }
45 |
46 | JogDistanceHandler {
47 | id: defaultHandler
48 | continuousText: "inf"
49 | core: root.core
50 | axis: -1
51 | }
52 |
53 | ColumnLayout {
54 | anchors.fill: parent
55 | anchors.margins: Screen.pixelDensity
56 | visible: root.status.synced
57 |
58 | Item {
59 | id: container
60 | Layout.fillWidth: true
61 | Layout.fillHeight: true
62 | Layout.preferredHeight: Math.min(width / 1.6, parent.height)
63 |
64 | Item {
65 | id: mainItem
66 | anchors.top: parent.top
67 | anchors.left: parent.left
68 | anchors.bottom: parent.bottom
69 | width: height
70 |
71 | JogDistanceHandler {
72 | readonly property int buttonBaseSize: container.height / (incrementsModel.length*2+1)
73 |
74 | id: xyHandler
75 | continuousText: "inf"
76 | core: root.core
77 | axis: 0
78 | }
79 |
80 | JogKeyHandler {
81 | baseKey: "Right"
82 | axis: 0
83 | axisHandler: xyHandler
84 | direction: 1
85 | }
86 |
87 | JogKeyHandler {
88 | baseKey: "Left"
89 | axis: 0
90 | axisHandler: xyHandler
91 | direction: -1
92 | }
93 |
94 | JogKeyHandler {
95 | baseKey: "Up"
96 | axis: 1
97 | axisHandler: xyHandler
98 | direction: 1
99 | }
100 |
101 | JogKeyHandler {
102 | baseKey: "Down"
103 | axis: 1
104 | axisHandler: xyHandler
105 | direction: -1
106 | }
107 |
108 | Button {
109 | anchors.centerIn: parent
110 | height: xyHandler.buttonBaseSize * 0.95
111 | width: height
112 | text: axisNames[0] + axisNames[1]
113 | style: CustomButtonStyle { baseColor: root.specialColor; radius: 1000; boldFont: true; fontSize: root.fontSize }
114 | enabled: xyZeroAction.enabled
115 | tooltip: qsTr("Move ") + axisNames[0] + qsTr(" and ") + axisNames[1] + qsTr(" axis to 0")
116 |
117 | onClicked: xyZeroAction.trigger()
118 |
119 | MdiCommandAction {
120 | id: xyZeroAction
121 | mdiCommand: "G0 " + axisNames[0] + "0 " + axisNames[1] + "0"
122 | enableHistory: false
123 | }
124 | }
125 |
126 | HomeButton {
127 | id: homeXButton
128 | anchors.left: parent.left
129 | anchors.top: parent.top
130 | width: parent.height * 0.2
131 | height: width
132 | axis: 0
133 | axisName: axisNames[0]
134 | color: axisColors[0]
135 | fontSize: root.fontSize
136 | }
137 |
138 | HomeButton {
139 | anchors.right: parent.right
140 | anchors.top: parent.top
141 | width: parent.height * 0.2
142 | height: width
143 | axis: 1
144 | axisName: axisNames[1]
145 | color: axisColors[1]
146 | fontSize: root.fontSize
147 | }
148 |
149 | HomeButton {
150 | anchors.right: parent.right
151 | anchors.bottom: parent.bottom
152 | width: parent.height * 0.2
153 | height: width
154 | axis: 2
155 | axisName: axisNames[2]
156 | color: axisColors[2]
157 | fontSize: root.fontSize
158 | }
159 |
160 | HomeButton {
161 | anchors.left: parent.left
162 | anchors.bottom: parent.bottom
163 | width: parent.height * 0.2
164 | height: width
165 | axis: -1
166 | axisName: "All"
167 | color: "white"
168 | fontSize: root.fontSize
169 | }
170 |
171 | RowLayout {
172 | id: xAxisRightLayout
173 | anchors.right: parent.right
174 | anchors.verticalCenter: parent.verticalCenter
175 | width: xyHandler.buttonBaseSize * xyHandler.incrementsModel.length
176 | height: width
177 | spacing: 0
178 |
179 | Repeater {
180 | model: xyHandler.incrementsModel
181 | JogButton {
182 | property string modelText: xyHandler.incrementsModel[index]
183 | Layout.fillWidth: true
184 | Layout.preferredHeight: xAxisRightLayout.height / xyHandler.incrementsModel.length * (index+1)
185 | text: modelText === "inf" ? "" : modelText
186 | axis: 0
187 | distance: modelText === "inf" ? 0 : modelText
188 | direction: 1
189 | style: CustomButtonStyle {
190 | baseColor: axisColors[0]
191 | darkness: index*0.06
192 | fontSize: root.fontSize
193 | fontIcon: modelText == "inf" ? "\ue315" : ""
194 | fontIconSize: root.fontSize * 2.5
195 | }
196 | }
197 | }
198 | }
199 |
200 | RowLayout {
201 | id: xAxisLeftLayout
202 | anchors.left: parent.left
203 | anchors.verticalCenter: parent.verticalCenter
204 | width: xyHandler.buttonBaseSize * xyHandler.incrementsModelReverse.length
205 | height: width
206 | spacing: 0
207 | Repeater {
208 | model: xyHandler.incrementsModelReverse
209 | JogButton {
210 | property string modelText: xyHandler.incrementsModelReverse[index]
211 | Layout.fillWidth: true
212 | Layout.preferredHeight: xAxisLeftLayout.width / xyHandler.incrementsModelReverse.length * (xyHandler.incrementsModelReverse.length-index)
213 | text: modelText === "inf" ? "" : "-" + modelText
214 | axis: 0
215 | distance: modelText === "inf" ? 0 : modelText
216 | direction: -1
217 | style: CustomButtonStyle {
218 | baseColor: axisColors[0]
219 | darkness: (numberModel.length-index-1)*0.06
220 | fontSize: root.fontSize
221 | fontIcon: modelText == "inf" ? "\ue314" : ""
222 | fontIconSize: root.fontSize * 2.5
223 | }
224 | }
225 | }
226 | }
227 |
228 | ColumnLayout {
229 | id: yAxisTopLayout
230 | anchors.top: parent.top
231 | anchors.horizontalCenter: parent.horizontalCenter
232 | width: xyHandler.buttonBaseSize * xyHandler.incrementsModelReverse.length
233 | height: width
234 | spacing: 0
235 | Repeater {
236 | model: xyHandler.incrementsModelReverse
237 | JogButton {
238 | property string modelText: xyHandler.incrementsModelReverse[index]
239 | Layout.preferredWidth: yAxisTopLayout.width / xyHandler.incrementsModelReverse.length * (xyHandler.incrementsModelReverse.length-index)
240 | Layout.fillHeight: true
241 | Layout.alignment: Qt.AlignHCenter
242 | text: modelText == "inf" ? "" : modelText
243 | axis: 1
244 | distance: modelText == "inf" ? 0 : modelText
245 | direction: 1
246 | style: CustomButtonStyle {
247 | baseColor: axisColors[1]
248 | darkness: (xyHandler.incrementsModelReverse.length-index-1)*0.06
249 | fontSize: root.fontSize
250 | fontIcon: modelText == "inf" ? "\ue316" : ""
251 | fontIconSize: root.fontSize * 2.5
252 | }
253 | }
254 | }
255 | }
256 |
257 | ColumnLayout {
258 | id: yAxisBottomLayout
259 | anchors.bottom: parent.bottom
260 | anchors.horizontalCenter: parent.horizontalCenter
261 | height: xyHandler.buttonBaseSize * xyHandler.incrementsModel.length
262 | width: height
263 | spacing: 0
264 | Repeater {
265 | model: xyHandler.incrementsModel
266 | JogButton {
267 | property string modelText: xyHandler.incrementsModel[index]
268 | Layout.preferredWidth: yAxisBottomLayout.width / xyHandler.incrementsModel.length * (index+1)
269 | Layout.fillHeight: true
270 | Layout.alignment: Qt.AlignHCenter
271 | text: modelText == "inf" ? "" : "-" + modelText
272 | axis: 1
273 | distance: modelText == "inf" ? 0 : modelText
274 | direction: -1
275 | style: CustomButtonStyle {
276 | baseColor: axisColors[1]
277 | darkness: index*0.06
278 | fontSize: root.fontSize
279 | fontIcon: modelText == "inf" ? "\ue313" : ""
280 | fontIconSize: root.fontSize * 2.5
281 | }
282 | }
283 | }
284 | }
285 | }
286 |
287 | RowLayout {
288 | property int axes: status.synced ? status.config.axes - 2 : 1
289 |
290 | id: axisRowLayout
291 | anchors.left: mainItem.right
292 | anchors.bottom: parent.bottom
293 | anchors.top: parent.top
294 | anchors.leftMargin: parent.height * 0.03
295 | width: parent.height * 0.20 * axisRowLayout.axes
296 | spacing: parent.height * 0.03
297 |
298 | Repeater {
299 | model: axisRowLayout.axes
300 |
301 | Item {
302 | property int axisIndex: index
303 | Layout.fillWidth: true
304 | Layout.fillHeight: true
305 |
306 | JogDistanceHandler {
307 | property int buttonBaseHeight: container.height / (incrementsModel.length*2+1)
308 |
309 | id: axisHandler
310 | continuousText: "inf"
311 | core: root.core
312 | axis: axisIndex+2
313 | }
314 |
315 | JogKeyHandler {
316 | baseKey: "PgUp"
317 | axis: axisIndex+2
318 | axisHandler: axisHandler
319 | direction: 1
320 | enabled: axis == 2
321 | }
322 |
323 | JogKeyHandler {
324 | baseKey: "PgDown"
325 | axis: axisIndex+2
326 | axisHandler: axisHandler
327 | direction: -1
328 | enabled: axis == 2
329 | }
330 |
331 | Button {
332 | anchors.centerIn: parent
333 | height: axisHandler.buttonBaseHeight * 0.95
334 | width: height
335 | text: axisNames[2+index]
336 | style: CustomButtonStyle { baseColor: root.axisColors[2+index]; radius: 1000; boldFont: true; fontSize: root.fontSize }
337 | enabled: zZeroAction.enabled
338 | tooltip: qsTr("Select axis action")
339 |
340 | onClicked: zActionMenu.popup()
341 |
342 | MdiCommandAction {
343 | id: zZeroAction
344 | enableHistory: false
345 | }
346 |
347 | Menu {
348 | id: zActionMenu
349 | title: qsTr("Select Action")
350 |
351 | MenuItem {
352 | text: qsTr("Touch off ") + axisNames[2+index] + qsTr(" axis")
353 | onTriggered: {
354 | zZeroAction.mdiCommand = "G10 L20 P0 " + axisNames[2+index] + "0"
355 | zZeroAction.trigger()
356 | }
357 | }
358 |
359 | MenuItem {
360 | text: qsTr("Move ") + axisNames[2+index] + qsTr(" axis to 0")
361 | onTriggered: {
362 | zZeroAction.mdiCommand = "G0 " + axisNames[2+index] + "0"
363 | zZeroAction.trigger()
364 | }
365 | }
366 | }
367 | }
368 |
369 | ColumnLayout {
370 | id: axisTopLayout
371 | anchors.top: parent.top
372 | anchors.left: parent.left
373 | height: axisHandler.buttonBaseHeight * axisHandler.incrementsModelReverse.length
374 | width: parent.width
375 | spacing: 0
376 | Repeater {
377 | model: axisHandler.incrementsModelReverse
378 | JogButton {
379 | property string modelText: axisHandler.incrementsModelReverse[index]
380 | Layout.preferredWidth: axisTopLayout.height / axisHandler.incrementsModelReverse.length * ((axisHandler.incrementsModelReverse.length - index - 1) * 0.2 + 1)
381 | Layout.fillHeight: true
382 | Layout.alignment: Qt.AlignHCenter
383 | text: modelText == "inf" ? "" : modelText
384 | axis: 2 + axisIndex
385 | distance: modelText === "inf" ? 0 : modelText
386 | direction: 1
387 | style: CustomButtonStyle {
388 | baseColor: axisColors[axisIndex+2]
389 | darkness: (axisHandler.incrementsModelReverse.length-index-1)*0.06
390 | fontSize: root.fontSize
391 | fontIcon: modelText == "inf" ? "\ue316" : ""
392 | fontIconSize: root.fontSize * 2.5
393 | }
394 | }
395 | }
396 | }
397 |
398 | ColumnLayout {
399 | id: axisBottomLayout
400 | anchors.bottom: parent.bottom
401 | anchors.horizontalCenter: parent.horizontalCenter
402 | height: axisHandler.buttonBaseHeight * axisHandler.incrementsModel.length
403 | width: parent.width
404 | spacing: 0
405 | Repeater {
406 | model: axisHandler.incrementsModel
407 | JogButton {
408 | property string modelText: axisHandler.incrementsModel[index]
409 | Layout.preferredWidth: axisBottomLayout.height / axisHandler.incrementsModel.length * (index*0.2+1)
410 | Layout.fillHeight: true
411 | Layout.alignment: Qt.AlignHCenter
412 | text: modelText == "inf" ? "" : "-" + modelText
413 | axis: axisIndex + 2
414 | distance: modelText === "inf" ? 0 : modelText
415 | direction: -1
416 | style: CustomButtonStyle {
417 | baseColor: axisColors[axisIndex+2]
418 | darkness: index*0.06
419 | fontSize: root.fontSize
420 | fontIcon: modelText == "inf" ? "\ue313" : ""
421 | fontIconSize: root.fontSize * 2.5
422 | }
423 | }
424 | }
425 | }
426 | }
427 | }
428 | }
429 |
430 | Item {
431 | property int axisIndex: status.synced ? status.config.axes : 0
432 | property double extruderVelocity: 5.0
433 |
434 | id: extruderControl
435 | anchors.left: axisRowLayout.right
436 | anchors.bottom: parent.bottom
437 | anchors.top: parent.top
438 | anchors.leftMargin: parent.height * 0.03
439 | width: parent.height * 0.20
440 | visible: eVisible
441 | enabled: eEnabled
442 |
443 | HalPin {
444 | id: jogVelocityPin
445 | name: "velocity"
446 | direction: HalPin.IO
447 | type: HalPin.Float
448 | }
449 |
450 | HalPin {
451 | id: jogDistancePin
452 | name: "distance"
453 | direction: HalPin.IO
454 | type: HalPin.Float
455 | }
456 |
457 | HalPin {
458 | id: jogDirectionPin
459 | name: "direction"
460 | direction: HalPin.IO
461 | type: HalPin.Bit
462 | }
463 |
464 | HalPin {
465 | id: jogTriggerPin
466 | name: "trigger"
467 | direction: HalPin.IO
468 | type: HalPin.Bit
469 | }
470 |
471 | HalPin {
472 | id: jogContinuousPin
473 | name: "continuous"
474 | direction: HalPin.IO
475 | type: HalPin.Bit
476 | }
477 |
478 | HalPin {
479 | id: jogDtgPin
480 | name: "dtg"
481 | direction: HalPin.In
482 | type: HalPin.Float
483 | }
484 |
485 | HalPin {
486 | id: jogMaxVelocityPin
487 | name: "max-velocity"
488 | direction: HalPin.In
489 | type: HalPin.Float
490 | }
491 |
492 | HalPin {
493 | id: jogExtruderCountPin
494 | name: "extruder-count"
495 | direction: HalPin.In
496 | type: HalPin.U32
497 | }
498 |
499 | HalPin {
500 | id: jogExtruderSelPin
501 | name: "extruder-sel"
502 | direction: HalPin.In
503 | type: HalPin.S32
504 | }
505 |
506 | Button {
507 | anchors.centerIn: parent
508 | height: root.buttonBaseHeight * 0.95
509 | width: height
510 | text: eName + jogExtruderSelPin.value
511 | style: CustomButtonStyle {
512 | baseColor: axisColors[extruderControl.axisIndex];
513 | radius: 1000
514 | boldFont: true
515 | fontSize: root.fontSize
516 | }
517 | onClicked: toolSelectMenu.popup()
518 | enabled: toolSelectAction.enabled
519 | tooltip: qsTr("Change extruder")
520 |
521 | MdiCommandAction {
522 | property int index: 0
523 |
524 | id: toolSelectAction
525 | mdiCommand: "T" + index
526 | enableHistory: false
527 | }
528 |
529 | Menu {
530 | id: toolSelectMenu
531 | title: qsTr("Select extruder")
532 |
533 | Instantiator {
534 | model: jogExtruderCountPin.value
535 | MenuItem {
536 | text: qsTr("Extruder ") + index
537 | checkable: true
538 | checked: jogExtruderSelPin.value === index
539 | onTriggered: {
540 | toolSelectAction.index = index
541 | toolSelectAction.trigger()
542 | }
543 | }
544 | onObjectAdded: toolSelectMenu.insertItem(index, object)
545 | onObjectRemoved: toolSelectMenu.removeItem(object)
546 | }
547 | }
548 | }
549 |
550 | ColumnLayout {
551 | id: extruderTopLayout
552 | anchors.top: parent.top
553 | anchors.left: parent.left
554 | height: root.buttonBaseHeight * numberModel.length
555 | width: parent.width
556 | spacing: 0
557 |
558 | Repeater {
559 | model: numberModelReverse
560 | ExtruderJogButton {
561 | property string modelText: numberModelReverse[index]
562 | Layout.preferredWidth: extruderBottomLayout.height / numberModel.length * ((numberModel.length - index - 1) * 0.2 + 1)
563 | Layout.fillHeight: true
564 | Layout.alignment: Qt.AlignHCenter
565 | distance: modelText === "inf" ? 0 : modelText
566 | direction: true
567 | enabled: homeXButton.enabled && !jogTriggerPin.value
568 | && (!jogContinuousPin.value || (distance == 0 && jogDirectionPin.value))
569 | text: modelText == "inf" ? "" : "-" + modelText
570 | style: CustomButtonStyle {
571 | baseColor: axisColors[extruderControl.axisIndex];
572 | darkness: (numberModel.length-index-1)*0.06
573 | fontSize: root.fontSize
574 | fontIcon: modelText == "inf" ? "\ue316" : ""
575 | fontIconSize: root.fontSize * 2.5
576 | }
577 | }
578 | }
579 | }
580 |
581 | ColumnLayout {
582 | id: extruderBottomLayout
583 | anchors.bottom: parent.bottom
584 | anchors.horizontalCenter: parent.horizontalCenter
585 | height: root.buttonBaseHeight * numberModel.length
586 | width: parent.width
587 | spacing: 0
588 |
589 | Repeater {
590 | model: numberModel
591 | ExtruderJogButton {
592 | property string modelText: numberModel[index]
593 | Layout.preferredWidth: extruderBottomLayout.height / numberModel.length * (index*0.2+1)
594 | Layout.fillHeight: true
595 | Layout.alignment: Qt.AlignHCenter
596 | distance: modelText === "inf" ? 0 : modelText
597 | direction: false
598 | enabled: homeXButton.enabled && !jogTriggerPin.value
599 | && (!jogContinuousPin.value || (distance == 0 && !jogDirectionPin.value))
600 | text: modelText == "inf" ? "" : modelText
601 | style: CustomButtonStyle {
602 | baseColor: axisColors[extruderControl.axisIndex];
603 | darkness: index*0.06
604 | fontSize: root.fontSize
605 | fontIcon: modelText == "inf" ? "\ue313" : ""
606 | fontIconSize: root.fontSize * 2.5
607 | }
608 | }
609 | }
610 | }
611 | }
612 | }
613 |
614 | RowLayout {
615 | spacing: Screen.pixelDensity * 3
616 | Layout.fillHeight: false
617 | Layout.fillWidth: true
618 | Layout.preferredHeight: root.baseSize * 0.18
619 |
620 | Label {
621 | text: qsTr("Velocity" )
622 | font.bold: true
623 | font.pixelSize: root.fontSize
624 | }
625 |
626 | Repeater {
627 | model: status.synced ? status.config.axes : 0
628 |
629 | JogVelocityKnob {
630 | Layout.fillHeight: true
631 | Layout.preferredWidth: height
632 | color: axisColors[index]
633 | axis: index
634 | axisName: axisNames[index]
635 | font.pixelSize: root.fontSize
636 | }
637 | }
638 |
639 | JogKnob {
640 | id: jogVelocityKnob
641 | Layout.fillHeight: true
642 | Layout.preferredWidth: height
643 | visible: eVisible
644 | enabled: eEnabled
645 | minimumValue: 1
646 | maximumValue: jogMaxVelocityPin.value
647 | defaultValue: 3.0
648 | color: axisColors[extruderControl.axisIndex]
649 | axisName: eName + jogExtruderSelPin.value
650 | font.pixelSize: root.fontSize
651 |
652 | Binding { target: jogVelocityPin; property: "value"; value: jogVelocityKnob.value }
653 | Binding { target: jogVelocityKnob; property: "value"; value: jogVelocityPin.value }
654 | }
655 |
656 | JogKnob {
657 | id: feedrateKnob
658 | Layout.fillHeight: true
659 | Layout.preferredWidth: height
660 | minimumValue: feedrateHandler.minimumValue
661 | maximumValue: feedrateHandler.maximumValue
662 | defaultValue: 1.0
663 | enabled: feedrateHandler.enabled
664 | color: allColor
665 | axisName: ""
666 | font.pixelSize: root.fontSize
667 | stepSize: 0.05
668 | decimals: 2
669 | text: (value * 100).toFixed(0) + "%"
670 |
671 | FeedrateHandler {
672 | id: feedrateHandler
673 | }
674 |
675 | Binding { target: feedrateKnob; property: "value"; value: feedrateHandler.value }
676 | Binding { target: feedrateHandler; property: "value"; value: feedrateKnob.value }
677 | }
678 |
679 | Item {
680 | Layout.fillWidth: true
681 | }
682 | }
683 | }
684 | }
685 |
--------------------------------------------------------------------------------
/Machineface/CustomButtonStyle.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Controls.Styles 1.2
3 | import QtQuick.Controls 1.2
4 | import QtQuick.Window 2.0
5 |
6 | ButtonStyle {
7 | property double darkness: 0.0
8 | property color baseColor: "red"
9 | property color textColor: systemPalette.text
10 | property int radius: -1
11 | property bool boldFont: false
12 | property int fontSize: 10
13 | property string fontIcon: ""
14 | property color fontIconColor: systemPalette.text
15 | property int fontIconSize: Math.min(control.width, control.height) * 0.5
16 |
17 | id: root
18 |
19 | SystemPalette {
20 | id: systemPalette
21 | }
22 |
23 | background: Rectangle {
24 | id: rect
25 | implicitWidth: 100
26 | implicitHeight: 25
27 | border.width: control.activeFocus ? 2 : 1
28 | border.color: Qt.darker(baseColor, 1.1+darkness)
29 | radius: root.radius == -1 ? Math.min(control.width, control.height) * 0.1 : root.radius
30 | gradient: Gradient {
31 | GradientStop { position: 0 ; color: (control.pressed || control.checked) ?
32 | Qt.darker(baseColor, 1.05+darkness) :
33 | Qt.darker(baseColor, 0.85+darkness) }
34 | GradientStop { position: 1 ; color: (control.pressed || control.checked) ?
35 | Qt.darker(baseColor, 1.2+darkness) :
36 | Qt.darker(baseColor, 1+darkness) }
37 | }
38 | }
39 | label: Item {
40 | opacity: control.enabled ? 1.0 : 0.4
41 | Label {
42 | id: label
43 | anchors.fill: parent
44 | anchors.margins: control.iconSource == "" ? 0 : parent.width * 0.06
45 | horizontalAlignment: control.iconSource == "" ? "AlignHCenter" : "AlignRight"
46 | verticalAlignment: control.iconSource == "" ? "AlignVCenter" : "AlignBottom"
47 | text: control.text
48 | color: root.textColor
49 | font.bold: root.boldFont
50 | font.pixelSize: root.fontSize
51 | }
52 |
53 | FontIcon {
54 | font.pixelSize: root.fontIconSize
55 | text: root.fontIcon; color: root.fontIconColor
56 | visible: root.fontIcon != ""
57 | }
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/Machineface/DisplayPanel.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Layouts 1.1
3 | import QtQuick.Controls 1.2
4 | import QtQuick.Window 2.0
5 | import Machinekit.Application.Controls 1.0
6 |
7 | DisplayPanelBase {
8 | id: root
9 |
10 | DigitalReadOut {
11 | Layout.fillWidth: true
12 | }
13 |
14 | TemperatureControl {
15 | componentName: "fdm-hbp"
16 | labelName: qsTr("Heated Bed")
17 | logHeight: parent.height * 0.25
18 | }
19 |
20 | TemperatureControl {
21 | componentName: "fdm-hbc"
22 | labelName: qsTr("Heated Chamber")
23 | logHeight: parent.height * 0.25
24 | }
25 |
26 | Repeater {
27 | model: 10
28 | TemperatureControl {
29 | componentName: "fdm-e" + index
30 | labelName: qsTr("Extruder %1").arg(index)
31 | logHeight: parent.height * 0.25
32 | }
33 | }
34 |
35 | Repeater {
36 | model: 10
37 | FanControl {
38 | componentName: "fdm-f" + index
39 | labelName: qsTr("Fan %1").arg(index)
40 | }
41 | }
42 |
43 | Repeater {
44 | model: 3
45 | LightControl {
46 | componentName: "fdm-l" + index
47 | labelName: qsTr("Light %1").arg(index)
48 | }
49 | }
50 |
51 | Item {
52 | Layout.fillHeight: true
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/Machineface/DisplayPanelBase.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Controls 1.4
3 | import QtQuick.Layouts 1.1
4 | import QtQuick.Window 2.0
5 |
6 | ScrollView {
7 | default property alias data: container.data
8 | id: root
9 | horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff
10 |
11 | ColumnLayout {
12 | id: container
13 | width: root.width - Screen.pixelDensity * 4
14 | spacing: Screen.pixelDensity
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Machineface/ExtruderJogButton.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Controls 1.2
3 |
4 | Button {
5 | property double distance: 0
6 | property bool direction: false
7 | property bool activated: false
8 | property variant _pressTime
9 |
10 | onClicked: {
11 | if (distance !== 0) {
12 | jogDistancePin.value = distance
13 | jogDirectionPin.value = direction
14 | jogTriggerPin.value = true
15 | }
16 | }
17 | onPressedChanged: {
18 | if (distance === 0) {
19 | jogDirectionPin.value = direction
20 |
21 | if (pressed) {
22 | _pressTime = Date.now()
23 | jogContinuousPin.value = true
24 | }
25 | else {
26 | var currentTime = Date.now()
27 | var timeDiff = currentTime - _pressTime
28 |
29 | if (timeDiff < 300) {
30 | if (!activated) {
31 | activated = true
32 | checkable = true
33 | checked = true
34 | }
35 | else {
36 | jogContinuousPin.value = false
37 | activated = false
38 | checkable = false
39 | }
40 | }
41 | else {
42 | jogContinuousPin.value = false
43 | }
44 | }
45 | }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/Machineface/FanControl.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Layouts 1.1
3 | import QtQuick.Controls 1.2
4 | import QtQuick.Window 2.0
5 | import Machinekit.HalRemote 1.0
6 | import Machinekit.HalRemote.Controls 1.0
7 | import Machinekit.Controls 1.0
8 | import Machinekit.Application.Controls 1.0
9 | import Machinekit.Service 1.0
10 |
11 | ColumnLayout {
12 | id: root
13 | property string componentName: "fdm-f0"
14 | property string labelName: "Fan"
15 | property bool wasConnected: false
16 |
17 | visible: halRemoteComponent.connected || wasConnected
18 | enabled: halRemoteComponent.connected
19 |
20 | HalRemoteComponent {
21 | id: halRemoteComponent
22 | halrcmdUri: halrcmdService.uri
23 | halrcompUri: halrcompService.uri
24 | ready: (halrcmdService.ready && halrcompService.ready) || connected
25 | name: root.componentName
26 | containerItem: root
27 | create: false
28 | onErrorStringChanged: console.log(errorString)
29 | onConnectedChanged: root.wasConnected = true
30 | }
31 |
32 | Label {
33 | text: root.labelName
34 | font.bold: true
35 | }
36 |
37 | Gauge {
38 | id: fanSpeedGauge
39 | Layout.fillWidth: true
40 | value: fanSpeedSlider.value
41 | suffix: "%"
42 | valueLabel.text: (value / 2.55 ).toFixed(decimals) + suffix
43 | decimals: 0
44 | minimumValueVisible: false
45 | maximumValueVisible: false
46 | minimumValue: 0
47 | maximumValue: 255
48 | z0BorderValue: 1
49 | z1BorderValue: 1
50 | z0Color: "#C9FDFF"
51 | z1Color: "#9ADAFF"
52 | z2Color: "#9ADAFF"
53 |
54 | MouseArea {
55 | anchors.fill: parent
56 | onClicked: fanSpeedSlider.visible = !fanSpeedSlider.visible
57 | cursorShape: "PointingHandCursor"
58 | }
59 | }
60 |
61 | HalSlider {
62 | id: fanSpeedSlider
63 | Layout.fillWidth: true
64 | name: "set"
65 | halPin.direction: HalPin.IO
66 | visible: false
67 | minimumValue: 0
68 | maximumValue: 255
69 | stepSize: 1
70 | updateValueWhileDragging: true
71 | tickmarksEnabled: false
72 | minimumValueVisible: false
73 | maximumValueVisible: false
74 | valueVisible: false
75 | }
76 | }
77 |
78 |
--------------------------------------------------------------------------------
/Machineface/FontIcon.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 |
3 | Text { // using icon fonts is an alternative
4 | font.family: "Material Icons"
5 | anchors.fill: parent
6 | font.pixelSize: parent.width * 0.95
7 | verticalAlignment: Text.AlignVCenter
8 | horizontalAlignment: Text.AlignHCenter
9 | opacity: enabled ? 1.0 : 0.4
10 | }
11 |
--------------------------------------------------------------------------------
/Machineface/GCodeTab.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Controls 1.2
3 | import QtQuick.Window 2.0
4 | import Machinekit.PathView 1.0
5 |
6 | Tab {
7 | title: qsTr("GCode")
8 |
9 | SourceView {
10 | anchors.fill: parent
11 | anchors.margins: Screen.pixelDensity * 1
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Machineface/GantryConfigControl.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Layouts 1.1
3 | import QtQuick.Controls 1.2
4 | import QtQuick.Window 2.0
5 | import Machinekit.HalRemote 1.0
6 | import Machinekit.HalRemote.Controls 1.0
7 | import Machinekit.Controls 1.0
8 | import Machinekit.Service 1.0
9 |
10 | ColumnLayout {
11 | id: root
12 | property string labelName: "Gantry Configuration"
13 | property bool wasConnected: false
14 |
15 | visible: halRemoteComponent.ready || wasConnected
16 | enabled: halRemoteComponent.connected
17 |
18 | HalRemoteComponent {
19 | id: halRemoteComponent
20 | halrcmdUri: halrcmdService.uri
21 | halrcompUri: halrcompService.uri
22 | ready: (halrcmdService.ready && halrcompService.ready) || connected
23 | name: "gantry-config"
24 | containerItem: root
25 | create: false
26 | onErrorStringChanged: console.log(errorString)
27 | onConnectedChanged: root.wasConnected = true
28 | }
29 |
30 | Label {
31 | font.bold: true
32 | text: root.labelName
33 | }
34 |
35 | GridLayout {
36 | columns: 2
37 |
38 | Label {
39 | text: qsTr("Left offset:")
40 | }
41 |
42 | HalSpinBox {
43 | Layout.fillWidth: true
44 | name: "offset-left"
45 | suffix: "mm"
46 | minimumValue: 0.0
47 | maximumValue: 999.9
48 | decimals: 3
49 | stepSize: 0.05
50 | halPin.direction: HalPin.IO
51 | }
52 |
53 | Label {
54 | text: qsTr("Right offset:")
55 | }
56 |
57 | HalSpinBox {
58 | Layout.fillWidth: true
59 | name: "offset-right"
60 | suffix: "mm"
61 | minimumValue: 0.0
62 | maximumValue: 999.9
63 | decimals: 3
64 | stepSize: 0.05
65 | halPin.direction: HalPin.IO
66 | }
67 | }
68 | }
69 |
70 |
--------------------------------------------------------------------------------
/Machineface/HomeButton.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Controls 1.1
3 | import Machinekit.Application.Controls 1.0
4 |
5 | Button {
6 | property int axis: 0
7 | property string axisName: "X"
8 | property string color: "green"
9 | property int fontSize: 10
10 |
11 | id: root
12 |
13 | SystemPalette { id: systemPalette }
14 |
15 | action: HomeAxisAction { id: homeAction; axis: root.axis }
16 | text: axisName
17 | style: CustomButtonStyle {
18 | baseColor: color
19 | textColor: !homeAction.homed ? systemPalette.text : "gray"
20 | boldFont: true
21 | fontSize: root.fontSize
22 | fontIcon: "\ue88a"
23 | fontIconColor: !homeAction.homed ? systemPalette.text : "gray"
24 | }
25 | iconSource: " "
26 | }
27 |
28 |
--------------------------------------------------------------------------------
/Machineface/JogControlTab.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Controls 1.2
3 | import QtQuick.Layouts 1.1
4 | import QtQuick.Window 2.0
5 |
6 | Tab {
7 | id: tab
8 | title: qsTr("Jog")
9 |
10 | Item {
11 | ButtonJog {
12 | width: Math.min(parent.width * 0.85, parent.height)
13 | height: width
14 | anchors.left: parent.left
15 | anchors.verticalCenter: parent.verticalCenter
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Machineface/JogKeyHandler.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import Machinekit.Application.Controls 1.0
3 |
4 | Item {
5 | id: keyHandler
6 | property string baseKey: "Right"
7 | property int axis: 0
8 | property var axisHandler: xyHandler
9 | property int direction: 1
10 |
11 | enabled: visible // disable jog keys when not visible
12 |
13 | JogAction {
14 | property int index: 0
15 | property bool available: (keyHandler.axisHandler.distanceModel.length-1) > index
16 | shortcut: available ? "Alt+" + keyHandler.baseKey : ""
17 | axis: keyHandler.axis
18 | distance: available ? keyHandler.axisHandler.distanceModel[index] * keyHandler.direction : 0
19 | }
20 |
21 | JogAction {
22 | property int index: 1
23 | property bool available: (keyHandler.axisHandler.distanceModel.length-1) > index
24 | shortcut: available ? keyHandler.baseKey : ""
25 | axis: keyHandler.axis
26 | distance: available ? keyHandler.axisHandler.distanceModel[index] * keyHandler.direction : 0
27 | }
28 |
29 | JogAction {
30 | property int index: 2
31 | property bool available: (keyHandler.axisHandler.distanceModel.length-1) > index
32 | shortcut: available ? "Shift+" + keyHandler.baseKey : ""
33 | axis: keyHandler.axis
34 | distance: available ? keyHandler.axisHandler.distanceModel[index] * keyHandler.direction : 0
35 | }
36 |
37 | JogAction {
38 | property int index: 3
39 | property bool available: (keyHandler.axisHandler.distanceModel.length-1) > index
40 | shortcut: available ? "Ctrl+" + keyHandler.baseKey : ""
41 | axis: keyHandler.axis
42 | distance: available ? keyHandler.axisHandler.distanceModel[index] * keyHandler.direction : 0
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Machineface/JogKnob.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Controls 1.1
3 | import Machinekit.Controls 1.0
4 | import Machinekit.Application.Controls 1.0
5 |
6 | Knob {
7 | property string axisName: ""
8 |
9 | id: root
10 | style: "Pie"
11 | pieType: "Flat"
12 | suffix: ""
13 | foregroundColor: Qt.lighter(root.color, 1.2)
14 | borderColor: Qt.darker(root.color, 1.1)
15 | backgroundColor: systemPalette.light
16 | stepSize: 1.0
17 | decimals: 0
18 |
19 | SystemPalette {
20 | id: systemPalette
21 | }
22 |
23 | Label {
24 | anchors.left: parent.left
25 | anchors.top: parent.top
26 | anchors.leftMargin: -parent.width * 0.1
27 | font.bold: true
28 | font.pixelSize: root.font.pixelSize
29 | text: root.axisName
30 | }
31 | }
32 |
33 |
--------------------------------------------------------------------------------
/Machineface/JogVelocityKnob.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import Machinekit.Controls 1.0
3 | import Machinekit.Application.Controls 1.0
4 |
5 | JogKnob {
6 | property int axis: 0
7 | property alias units: velocityHandler.units
8 |
9 | id: root
10 | enabled: velocityHandler.enabled
11 | minimumValue: velocityHandler.minimumValue
12 | maximumValue: velocityHandler.maximumValue
13 |
14 | Binding { target: root; property: "value"; value: velocityHandler.value }
15 | Binding { target: velocityHandler; property: "value"; value: root.value }
16 |
17 | JogVelocityHandler {
18 | id: velocityHandler
19 | axis: root.axis
20 | }
21 |
22 | TooltipArea {
23 | text: qsTr("Set " + axis + " axis velocity")
24 | interval: 1000
25 | }
26 | }
27 |
28 |
--------------------------------------------------------------------------------
/Machineface/LightControl.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Layouts 1.1
3 | import QtQuick.Controls 1.2
4 | import QtQuick.Window 2.0
5 | import QtQuick.Dialogs 1.2
6 | import Machinekit.HalRemote 1.0
7 | import Machinekit.HalRemote.Controls 1.0
8 | import Machinekit.Controls 1.0
9 | import Machinekit.Application.Controls 1.0
10 | import Machinekit.Service 1.0
11 |
12 | ColumnLayout {
13 | id: root
14 | property string componentName: "fdm-l0"
15 | property string labelName: "Light"
16 | property bool wasConnected: false
17 |
18 | visible: halRemoteComponent.connected || wasConnected
19 | enabled: halRemoteComponent.connected
20 |
21 | HalRemoteComponent {
22 | id: halRemoteComponent
23 | halrcmdUri: halrcmdService.uri
24 | halrcompUri: halrcompService.uri
25 | ready: (halrcmdService.ready && halrcompService.ready) || connected
26 | name: root.componentName
27 | containerItem: root
28 | create: false
29 | onErrorStringChanged: console.log(errorString)
30 | onConnectedChanged: root.wasConnected = true
31 | }
32 |
33 | Label {
34 | text: qsTr("" + root.labelName + "")
35 | }
36 |
37 | RowLayout {
38 | Led {
39 | Layout.preferredHeight: pickColorButton.height * 0.8
40 | Layout.preferredWidth: pickColorButton.height * 0.8
41 | color: Qt.rgba(lightColorItem.color.r, lightColorItem.color.g, lightColorItem.color.b, 1.0)
42 | }
43 |
44 | Led {
45 | Layout.preferredHeight: pickColorButton.height * 0.8
46 | Layout.preferredWidth: pickColorButton.height * 0.8
47 | color: Qt.rgba(lightColorItem.color.a, lightColorItem.color.a, lightColorItem.color.a, 1.0)
48 | }
49 |
50 | Button {
51 | id: pickColorButton
52 | Layout.fillWidth: true
53 | text: qsTr("Pick Color")
54 | onClicked: colorDialog.visible = true
55 | }
56 | }
57 |
58 | Item {
59 | property color color: Qt.rgba(r,g,b,w)
60 | property real r
61 | property real g
62 | property real b
63 | property real w
64 |
65 | id: lightColorItem
66 |
67 | ColorDialog {
68 | property color saveColor
69 |
70 | id: colorDialog
71 | showAlphaChannel: true
72 |
73 | onVisibleChanged: {
74 | if (visible) {
75 | saveColor = lightColorItem.color
76 | color = saveColor
77 | }
78 | }
79 | onAccepted: {
80 | lightColorItem.r = color.r
81 | lightColorItem.g = color.g
82 | lightColorItem.b = color.b
83 | lightColorItem.w = color.a
84 | }
85 | onRejected: {
86 | lightColorItem.r = saveColor.r
87 | lightColorItem.g = saveColor.g
88 | lightColorItem.b = saveColor.b
89 | lightColorItem.w = saveColor.a
90 | }
91 | onCurrentColorChanged: {
92 | if (visible) {
93 | lightColorItem.r = currentColor.r
94 | lightColorItem.g = currentColor.g
95 | lightColorItem.b = currentColor.b
96 | lightColorItem.w = currentColor.a
97 | }
98 | }
99 | }
100 |
101 | Binding { target: lightColorItem; property: "r"; value: rHalPin.value }
102 | Binding { target: rHalPin; property: "value"; value: lightColorItem.r }
103 | Binding { target: lightColorItem; property: "g"; value: gHalPin.value }
104 | Binding { target: gHalPin; property: "value"; value: lightColorItem.g }
105 | Binding { target: lightColorItem; property: "b"; value: bHalPin.value }
106 | Binding { target: bHalPin; property: "value"; value: lightColorItem.b }
107 | Binding { target: lightColorItem; property: "w"; value: wHalPin.value }
108 | Binding { target: wHalPin; property: "value"; value: lightColorItem.w }
109 |
110 | HalPin {
111 | id: rHalPin
112 | type: HalPin.Float
113 | direction: HalPin.IO
114 | name: "r"
115 | }
116 |
117 | HalPin {
118 | id: gHalPin
119 | type: HalPin.Float
120 | direction: HalPin.IO
121 | name: "g"
122 | }
123 |
124 | HalPin {
125 | id: bHalPin
126 | type: HalPin.Float
127 | direction: HalPin.IO
128 | name: "b"
129 | }
130 |
131 | HalPin {
132 | id: wHalPin
133 | type: HalPin.Float
134 | direction: HalPin.IO
135 | name: "w"
136 | }
137 | }
138 | }
139 |
140 |
--------------------------------------------------------------------------------
/Machineface/Machineface.qml:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2014 Alexander Rössler
4 | ** License: LGPL version 2.1
5 | **
6 | ** This file is part of QtQuickVcp.
7 | **
8 | ** All rights reserved. This program and the accompanying materials
9 | ** are made available under the terms of the GNU Lesser General Public License
10 | ** (LGPL) version 2.1 which accompanies this distribution, and is available at
11 | ** http://www.gnu.org/licenses/lgpl-2.1.html
12 | **
13 | ** This library is distributed in the hope that it will be useful,
14 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 | ** Lesser General Public License for more details.
17 | **
18 | ** Contributors:
19 | ** Alexander Rössler @ The Cool Tool GmbH
20 | **
21 | ****************************************************************************/
22 | import QtQuick 2.0
23 | import QtQuick.Controls 1.1
24 | import QtQuick.Layouts 1.1
25 | import QtQuick.Window 2.0
26 | import Machinekit.Controls 1.0
27 | import Machinekit.Application 1.0
28 | import Machinekit.Application.Controls 1.0
29 | import Machinekit.PathView 1.0
30 | import Machinekit.Service 1.0
31 |
32 | ServiceWindow {
33 | id: window
34 | visible: true
35 | width: 800
36 | height: 600
37 | title: applicationCore.applicationName + (d.machineName == "" ? "" :" - " + d.machineName)
38 |
39 | QtObject {
40 | id: d
41 | readonly property string machineName: applicationCore.status.config.name
42 | }
43 |
44 | FontLoader {
45 | id: iconFont
46 | source: "icons/MaterialIcons-Regular.ttf"
47 | }
48 |
49 | Service {
50 | id: halrcompService
51 | type: "halrcomp"
52 | }
53 |
54 | Service {
55 | id: halrcmdService
56 | type: "halrcmd"
57 | }
58 |
59 | ApplicationCore {
60 | id: applicationCore
61 | notifications: applicationNotifications
62 | applicationName: "Machineface"
63 | }
64 |
65 | PathViewCore {
66 | id: pathViewCore
67 | }
68 |
69 | ApplicationToolBar {
70 | id: toolBar
71 | anchors.top: parent.top
72 | anchors.bottom: parent.bottom
73 | anchors.left: parent.left
74 | width: window.height * 0.1
75 | }
76 |
77 | ApplicationRemoteFileDialog {
78 | id: applicationRemoteFileDialog
79 | width: window.width
80 | height: window.height
81 | fileDialog: applicationFileDialog
82 | }
83 |
84 | ApplicationFileDialog {
85 | id: applicationFileDialog
86 | }
87 |
88 | TabView {
89 | id: mainTab
90 | frameVisible: false
91 | anchors.left: toolBar.right
92 | anchors.right: displayPanel.left
93 | anchors.top: parent.top
94 | anchors.bottom: parent.bottom
95 | anchors.rightMargin: Screen.pixelDensity
96 | anchors.leftMargin: Screen.pixelDensity / 2
97 |
98 | JogControlTab { }
99 | MdiTab { }
100 | GCodeTab { }
101 | /*PreviewTab { }*/
102 | VideoTab { }
103 | SettingsTab { }
104 | }
105 |
106 | DisplayPanel {
107 | id: displayPanel
108 | anchors.right: parent.right
109 | anchors.top: parent.top
110 | anchors.bottom: applicationProgressBar.top
111 | width: parent.width * 0.20
112 | anchors.margins: Screen.pixelDensity
113 | }
114 |
115 | ApplicationProgressBar {
116 | id: applicationProgressBar
117 | anchors.right: parent.right
118 | anchors.bottom: parent.bottom
119 | width: displayPanel.width
120 | anchors.margins: Screen.pixelDensity
121 | }
122 |
123 | ApplicationNotifications {
124 | id: applicationNotifications
125 | anchors.right: parent.right
126 | anchors.bottom: parent.bottom
127 | anchors.top: parent.top
128 | anchors.margins: Screen.pixelDensity
129 | messageWidth: parent.width * 0.25
130 | }
131 | }
132 |
133 |
--------------------------------------------------------------------------------
/Machineface/MdiTab.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Controls 1.2
3 | import QtQuick.Layouts 1.1
4 | import QtQuick.Window 2.0
5 | import Machinekit.Application.Controls 1.0
6 |
7 | Tab {
8 | id: tab
9 | title: qsTr("MDI")
10 |
11 | ColumnLayout {
12 | anchors.fill: parent
13 | anchors.margins: Screen.pixelDensity
14 |
15 | RowLayout {
16 | MdiHistoryTable {
17 | Layout.fillHeight: true
18 | Layout.fillWidth: true
19 | onCommandSelected: {
20 | mdiCommandEdit.text = command
21 | }
22 |
23 | onCommandTriggered: {
24 | mdiCommandEdit.text = command
25 | mdiCommandEdit.action.trigger()
26 | }
27 | }
28 |
29 | ListView {
30 | Layout.fillHeight: true
31 | Layout.preferredWidth: dummyButton.width // 20 characters
32 | visible: count > 0
33 | model: userCommandAction.commands
34 | spacing: Screen.pixelDensity
35 | enabled: userCommandAction.enabled
36 |
37 | delegate: Button {
38 | Layout.fillWidth: true
39 | anchors.left: parent.left
40 | anchors.right: parent.right
41 | text: userCommandAction.commands[index].name
42 | onClicked: userCommandAction.executeCommand(index)
43 | }
44 |
45 | Button {
46 | id: dummyButton
47 | text: "12345678901234567890"
48 | visible: false
49 | }
50 |
51 | UserCommandAction {
52 | id: userCommandAction
53 | }
54 | }
55 | }
56 |
57 | MdiCommandEdit {
58 | Layout.fillWidth: true
59 | id: mdiCommandEdit
60 | }
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/Machineface/OverlayDialog.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.3
2 | import QtQuick.Controls 1.2
3 | import QtQuick.Layouts 1.1
4 | import QtQuick.Window 2.0
5 | import Machinekit.HalRemote 1.0
6 | import Machinekit.Service 1.0
7 | import Machinekit.HalRemote.Controls 1.0
8 |
9 | Rectangle {
10 | property color lightColor: lightColorDialog.color
11 |
12 | id: root
13 |
14 | border.color: systemPalette.shadow
15 | border.width: 1
16 | color: systemPalette.window
17 | visible: false
18 |
19 | SystemPalette { id: systemPalette }
20 |
21 | ColumnLayout {
22 | anchors.fill: parent
23 | anchors.margins: Screen.pixelDensity
24 | spacing: Screen.pixelDensity
25 |
26 | RowLayout {
27 | Layout.fillWidth: true
28 | Layout.fillHeight: false
29 |
30 | Item {
31 | Layout.fillWidth: true
32 | }
33 |
34 | Button {
35 | text: qsTr("Ok")
36 | onClicked: root.visible = false
37 | }
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Machineface/PreviewTab.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Controls 1.2
3 | import QtQuick.Layouts 1.1
4 | import QtQuick.Window 2.0
5 | import Machinekit.Controls 1.0
6 | import Machinekit.PathView 1.0
7 |
8 | Tab {
9 | title: qsTr("Preview")
10 |
11 | Rectangle {
12 | anchors.fill: parent
13 | anchors.margins: Screen.pixelDensity
14 | color: "transparent"
15 | border.width: 1
16 | border.color: systemPalette.shadow
17 |
18 | SystemPalette { id: systemPalette }
19 |
20 | RowLayout {
21 | anchors.fill: parent
22 | spacing: 0
23 |
24 | PathView3D {
25 | id: pathView
26 | Layout.fillHeight: true
27 | Layout.fillWidth: true
28 | onViewModeChanged: {
29 | cameraZoom = 0.95
30 | cameraOffset = Qt.vector3d(0,0,0)
31 | cameraPitch = 60
32 | cameraHeading = -135
33 | }
34 | }
35 |
36 | Item {
37 | Layout.fillHeight: true
38 | Layout.preferredWidth: height * 0.1
39 | visible: pathView.visible
40 |
41 | ColumnLayout {
42 | id: viewModeLayout
43 | anchors.fill: parent
44 | anchors.leftMargin: Screen.pixelDensity / 2
45 | anchors.margins: Screen.pixelDensity
46 | spacing: Screen.pixelDensity
47 |
48 | TouchButton {
49 | Layout.fillWidth: true
50 | Layout.preferredHeight: width
51 | action: ZoomOutAction { view: pathView }
52 | }
53 | TouchButton {
54 | Layout.fillWidth: true
55 | Layout.preferredHeight: width
56 | action: ZoomInAction { view: pathView }
57 | }
58 | TouchButton {
59 | Layout.fillWidth: true
60 | Layout.preferredHeight: width
61 | action: ZoomOriginalAction { view: pathView }
62 | }
63 | TouchButton {
64 | Layout.fillWidth: true
65 | Layout.preferredHeight: width
66 | action: ViewModeAction { view: pathView; viewMode: "Top"}
67 | }
68 | TouchButton {
69 | Layout.fillWidth: true
70 | Layout.preferredHeight: width
71 | action: ViewModeAction { view: pathView; viewMode: "RotatedTop"}
72 | }
73 | TouchButton {
74 | Layout.fillWidth: true
75 | Layout.preferredHeight: width
76 | action: ViewModeAction { view: pathView; viewMode: "Front"}
77 | }
78 | TouchButton {
79 | Layout.fillWidth: true
80 | Layout.preferredHeight: width
81 | action: ViewModeAction { view: pathView; viewMode: "Side"}
82 | }
83 | TouchButton {
84 | Layout.fillWidth: true
85 | Layout.preferredHeight: width
86 | action: ViewModeAction { view: pathView; viewMode: "Perspective"}
87 | }
88 | Item {
89 | Layout.fillHeight: true
90 | }
91 | }
92 | }
93 | }
94 | }
95 | }
96 |
--------------------------------------------------------------------------------
/Machineface/SettingsTab.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Controls 1.2
3 | import QtQuick.Layouts 1.1
4 | import QtQuick.Window 2.0
5 | import Machinekit.Application.Controls 1.0
6 |
7 | Tab {
8 | title: qsTr("Settings")
9 |
10 | ScrollView {
11 | id: scrollView
12 | anchors.fill: parent
13 | anchors.margins: Screen.pixelDensity
14 | horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff
15 | contentItem:
16 |
17 | ColumnLayout {
18 | id: column1
19 | width: scrollView.width - Screen.pixelDensity * 4
20 | spacing: Screen.pixelDensity
21 |
22 | VelocityExtrusionControl {
23 | Layout.fillWidth: false
24 | id: velocityExtrusionControl
25 | }
26 |
27 | GantryConfigControl {
28 | Layout.fillWidth: false
29 | id: gantryConfigControl
30 | }
31 |
32 | Label {
33 | text: qsTr("Digital Read Out")
34 | font.bold: true
35 | }
36 |
37 | ToggleSettingCheck {
38 | groupName: "dro"
39 | valueName: "showOffsets"
40 | text: qsTr("Show offsets")
41 | }
42 |
43 | ToggleSettingCheck {
44 | id: showVelocityAction
45 | groupName: "dro"
46 | valueName: "showVelocity"
47 | text: qsTr("Show velocity")
48 | }
49 |
50 | ToggleSettingCheck {
51 | id: showDistanceToGoAction
52 | groupName: "dro"
53 | valueName: "showDistanceToGo"
54 | text: qsTr("Show distance to go")
55 | }
56 |
57 | Label {
58 | text: qsTr("Other")
59 | font.bold: true
60 | }
61 |
62 | // temporarily disable preview until it is working in a better way
63 | ToggleSettingCheck {
64 | id: enablePreviewAction
65 | groupName: "preview"
66 | valueName: "enable"
67 | text: qsTr("Enable preview")
68 | visible: checked // in case preview was accidentally enabled show this check box
69 | }
70 |
71 | CheckBox {
72 | id: teleopCheck
73 | Layout.fillWidth: true
74 | checked: teleopAction.checked
75 | text: teleopAction.text
76 | enabled: teleopAction.enabled
77 | onClicked: teleopAction.trigger()
78 |
79 | TeleopAction {
80 | id: teleopAction
81 | }
82 | }
83 |
84 | CheckBox {
85 | id: overrideLimitsCheck
86 | Layout.fillWidth: true
87 | checked: overrideLimitsAction.checked
88 | text: overrideLimitsAction.text
89 | onClicked: overrideLimitsAction.trigger()
90 |
91 | OverrideLimitsAction {
92 | id: overrideLimitsAction
93 | }
94 | }
95 |
96 | RowLayout {
97 | Layout.fillWidth: true
98 | Label {
99 | text: qsTr("Maximum Velocity:")
100 | }
101 |
102 | MaximumVelocitySlider {
103 | id: maximumVelocitySlider
104 | Layout.fillWidth: true
105 | }
106 |
107 | Label {
108 | Layout.preferredWidth: Screen.pixelDensity * 10
109 | text: maximumVelocitySlider.displayValue.toFixed(0) + maximumVelocitySlider.units
110 | }
111 | }
112 | }
113 | }
114 | }
115 |
--------------------------------------------------------------------------------
/Machineface/Singletons/Info.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | pragma Singleton
3 |
4 | Item {
5 | readonly property string version: "1.0"
6 | }
7 |
--------------------------------------------------------------------------------
/Machineface/Singletons/qmldir:
--------------------------------------------------------------------------------
1 | singleton Info 1.0 Info.qml
2 |
--------------------------------------------------------------------------------
/Machineface/TemperatureControl.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Layouts 1.1
3 | import QtQuick.Controls 1.2
4 | import QtQuick.Window 2.0
5 | import Machinekit.HalRemote 1.0
6 | import Machinekit.HalRemote.Controls 1.0
7 | import Machinekit.Controls 1.0
8 | import Machinekit.Service 1.0
9 |
10 | ColumnLayout {
11 | id: root
12 | property string componentName: "fdm-e0"
13 | property string labelName: "E0"
14 | property double spinMinimumValue: minTemperaturePin.value
15 | property double spinMaximumValue: maxTemperaturePin.value
16 | property double gaugeMinimumValue: spinMinimumValue
17 | property double gaugeMaximumValue: spinMaximumValue * 1.1
18 | property double gaugeZ0BorderValue: 50.0
19 | property double gaugeZ1BorderValue: spinMaximumValue * 0.9
20 | property int logHeight: 200
21 | property bool wasConnected: false
22 |
23 | visible: halRemoteComponent.connected || wasConnected
24 | enabled: halRemoteComponent.connected
25 |
26 | HalRemoteComponent {
27 | id: halRemoteComponent
28 | halrcmdUri: halrcmdService.uri
29 | halrcompUri: halrcompService.uri
30 | ready: (halrcmdService.ready && halrcompService.ready) || connected
31 | name: root.componentName
32 | containerItem: root
33 | create: false
34 | onErrorStringChanged: console.log(errorString)
35 | onConnectedChanged: root.wasConnected = true
36 | }
37 |
38 | RowLayout {
39 | Label {
40 | id: tempSetLabel
41 | font.bold: true
42 | text: root.labelName
43 | }
44 |
45 | Item {
46 | Layout.fillWidth: true
47 | }
48 |
49 | HalLed {
50 | id: activeLed
51 | name: "active"
52 | onColor: "orange"
53 | Layout.preferredHeight: tempSetLabel.height * 0.9
54 | Layout.preferredWidth: tempSetLabel.height * 0.9
55 | }
56 |
57 | HalLed {
58 | id: inTempRangeLed
59 | name: "temp.in-range"
60 | onColor: "green"
61 | Layout.preferredHeight: tempSetLabel.height * 0.9
62 | Layout.preferredWidth: tempSetLabel.height * 0.9
63 | }
64 |
65 | HalLed {
66 | id: errorLed
67 | name: "error"
68 | onColor: "red"
69 | Layout.preferredHeight: tempSetLabel.height * 0.9
70 | Layout.preferredWidth: tempSetLabel.height * 0.9
71 | }
72 | }
73 |
74 | HalPin {
75 | id: maxTemperaturePin
76 | name: "temp.limit.max"
77 | direction: HalPin.In
78 | type: HalPin.Float
79 | }
80 |
81 | HalPin {
82 | id: minTemperaturePin
83 | name: "temp.limit.min"
84 | direction: HalPin.In
85 | type: HalPin.Float
86 | }
87 |
88 | HalPin {
89 | id: standbyTemperaturePin
90 | name: "temp.standby"
91 | direction: HalPin.In
92 | type: HalPin.Float
93 | }
94 |
95 | HalGauge {
96 | id: tempGauge
97 | Layout.fillWidth: true
98 | name: "temp.meas"
99 | suffix: "°C"
100 | decimals: 1
101 | valueVisible: !errorLed.value
102 | minimumValueVisible: false
103 | maximumValueVisible: false
104 | minimumValue: root.gaugeMinimumValue
105 | maximumValue: root.gaugeMaximumValue
106 | z0BorderValue: root.gaugeZ0BorderValue
107 | z1BorderValue: root.gaugeZ1BorderValue
108 | z0Color: valueVisible ? "green" : "white"
109 | z1Color: valueVisible ? "yellow" : "white"
110 | z2Color: valueVisible ? "red" : "white"
111 |
112 | Label {
113 | anchors.centerIn: parent
114 | text: qsTr("N/A")
115 | visible: !tempGauge.valueVisible
116 | }
117 |
118 | MouseArea {
119 | anchors.fill: parent
120 | onDoubleClicked: tempChart.visible = !tempChart.visible
121 | onClicked: control.visible = !control.visible
122 | cursorShape: "PointingHandCursor"
123 | }
124 | }
125 |
126 | LogChart {
127 | id: tempChart
128 | Layout.fillWidth: true
129 | Layout.preferredHeight: root.logHeight
130 | visible: false
131 | value: tempGauge.value
132 | minimumValue: tempGauge.minimumValue
133 | maximumValue: tempGauge.maximumValue
134 | leftTextVisible: false
135 | rightTextVisible: false
136 | autoSampling: (tempGauge.halPin.synced) && visible
137 | autoUpdate: autoSampling
138 | updateInterval: 500
139 | timeSpan: 120000
140 | }
141 |
142 | RowLayout {
143 | Layout.fillWidth: true
144 | id: control
145 | visible: true
146 |
147 | HalSpinBox {
148 | Layout.fillWidth: true
149 | id: tempSetSpin
150 | enabled: errorLed.value === false
151 | name: "temp.set"
152 | halPin.direction: HalPin.IO
153 | minimumValue: root.spinMinimumValue
154 | maximumValue: root.spinMaximumValue
155 | decimals: 1
156 | suffix: "°C"
157 |
158 | onEditingFinished: { // remove the focus from this control
159 | parent.forceActiveFocus()
160 | parent.focus = true
161 | }
162 | }
163 |
164 | Switch {
165 | id: onOffSwitch
166 | enabled: errorLed.value === false
167 | onCheckedChanged: {
168 | if (checked) {
169 | if (tempSetSpin.value == 0) {
170 | tempSetSpin.value = standbyTemperaturePin.value
171 | }
172 | }
173 | else {
174 | tempSetSpin.value = 0
175 | }
176 | }
177 |
178 | Binding {
179 | target: onOffSwitch
180 | property: "checked"
181 | value: tempSetSpin.value > 0.0
182 | }
183 | }
184 | }
185 | }
186 |
187 |
--------------------------------------------------------------------------------
/Machineface/ToggleSettingCheck.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Controls 1.2
3 |
4 | CheckBox {
5 | property string groupName: "group"
6 | property string valueName: "value"
7 | text: "Group Value"
8 | checked: applicationCore.settings.initialized && applicationCore.settings.values[groupName][valueName]
9 | onClicked: {
10 | applicationCore.settings.setValue(groupName + "." + valueName, !applicationCore.settings.values[groupName][valueName])
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Machineface/VelocityExtrusionControl.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Layouts 1.1
3 | import QtQuick.Controls 1.2
4 | import QtQuick.Window 2.0
5 | import Machinekit.HalRemote 1.0
6 | import Machinekit.HalRemote.Controls 1.0
7 | import Machinekit.Controls 1.0
8 | import Machinekit.Service 1.0
9 |
10 | ColumnLayout {
11 | id: root
12 | property string labelName: qsTr("Velocity Extrusion")
13 | property bool wasConnected: false
14 |
15 | visible: halRemoteComponent.ready || wasConnected
16 | enabled: halRemoteComponent.connected
17 |
18 | HalRemoteComponent {
19 | id: halRemoteComponent
20 | halrcmdUri: halrcmdService.uri
21 | halrcompUri: halrcompService.uri
22 | ready: (halrcmdService.ready && halrcompService.ready) || connected
23 | name: "fdm-ve-params"
24 | containerItem: root
25 | create: false
26 | onErrorStringChanged: console.log(errorString)
27 | onConnectedChanged: root.wasConnected = true
28 | }
29 |
30 | Label {
31 | font.bold: true
32 | text: root.labelName
33 | }
34 |
35 | GridLayout {
36 | columns: 2
37 |
38 | Label {
39 | text: qsTr("Filament diameter:")
40 | }
41 |
42 | HalSpinBox {
43 | Layout.fillWidth: true
44 | name: "filament-dia"
45 | suffix: "mm"
46 | minimumValue: 0.0
47 | maximumValue: 10.0
48 | decimals: 3
49 | stepSize: 0.05
50 | halPin.direction: HalPin.IO
51 | }
52 |
53 | Label {
54 | text: qsTr("Retract velocity:")
55 | }
56 |
57 | HalSpinBox {
58 | Layout.fillWidth: true
59 | name: "retract-vel"
60 | suffix: "mm/s"
61 | minimumValue: 0.0
62 | maximumValue: 100.0
63 | decimals: 1
64 | stepSize: 1.0
65 | halPin.direction: HalPin.IO
66 | }
67 |
68 | Label {
69 | text: qsTr("Retract length:")
70 | }
71 |
72 | HalSpinBox {
73 | Layout.fillWidth: true
74 | name: "retract-len"
75 | suffix: "mm"
76 | minimumValue: 0.0
77 | maximumValue: 10.0
78 | decimals: 2
79 | stepSize: 0.05
80 | halPin.direction: HalPin.IO
81 | }
82 |
83 | Label {
84 | text: qsTr("Extrude scale:")
85 | }
86 |
87 | HalSpinBox {
88 | Layout.fillWidth: true
89 | name: "extrude-scale"
90 | minimumValue: 0.0
91 | maximumValue: 10.0
92 | decimals: 2
93 | stepSize: 0.05
94 | halPin.direction: HalPin.IO
95 | }
96 |
97 | Label {
98 | text: qsTr("Accel. adj. gain:")
99 | }
100 |
101 | HalSpinBox {
102 | Layout.fillWidth: true
103 | name: "accel-adj-gain"
104 | minimumValue: 0.0
105 | maximumValue: 10.0
106 | decimals: 3
107 | stepSize: 0.01
108 | halPin.direction: HalPin.IO
109 | }
110 | }
111 | }
112 |
--------------------------------------------------------------------------------
/Machineface/VideoTab.qml:
--------------------------------------------------------------------------------
1 | import QtQuick 2.0
2 | import QtQuick.Controls 1.2
3 | import QtQuick.Window 2.0
4 | import Machinekit.Service 1.0
5 | import Machinekit.VideoView 1.0
6 |
7 | Tab {
8 | id: tab
9 | title: qsTr("Video")
10 | active: true
11 |
12 | Item {
13 | Service {
14 | id: videoService
15 | type: "video"
16 | }
17 |
18 | MjpegStreamerClient {
19 | property bool videoEnabled: false
20 |
21 | id: mjpegStreamerClient
22 |
23 | anchors.fill: parent
24 | visible: videoService.ready
25 | videoUri: videoService.uri
26 | ready: videoService.ready && videoEnabled
27 |
28 | Label {
29 | anchors.right: parent.right
30 | anchors.bottom: parent.bottom
31 | anchors.margins: Screen.pixelDensity
32 | text: parent.fps
33 | }
34 |
35 | Label {
36 | anchors.left: parent.left
37 | anchors.bottom: parent.bottom
38 | anchors.margins: Screen.pixelDensity
39 | text: parent.time.toTimeString()
40 | }
41 |
42 | FontIcon {
43 | anchors.centerIn: parent
44 | font.pixelSize: Screen.pixelDensity * 30
45 | visible: !parent.videoEnabled
46 | color: "white"
47 | text: "\ue037"
48 | }
49 |
50 | MouseArea {
51 | anchors.fill: parent
52 | onClicked: {
53 | parent.videoEnabled = !parent.videoEnabled
54 | }
55 | }
56 | }
57 |
58 | Label {
59 | id: infoLabel
60 |
61 | anchors.fill: parent
62 | visible: !videoService.ready
63 | text: qsTr("Webcam not available")
64 | horizontalAlignment: Text.AlignHCenter
65 | verticalAlignment: Text.AlignVCenter
66 | }
67 | }
68 | }
69 |
70 |
--------------------------------------------------------------------------------
/Machineface/description.ini:
--------------------------------------------------------------------------------
1 | [Default]
2 | name=Machineface
3 | description=Lightweight and fast user interface for mobile and embedded platforms
4 | type=QT5_QML
5 |
6 |
--------------------------------------------------------------------------------
/Machineface/icons/MaterialIcons-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machinekit/Machineface/dd15610a6452a8ad1e930a7f7c49a729e8ea3287/Machineface/icons/MaterialIcons-Regular.ttf
--------------------------------------------------------------------------------
/Machineface/icons/README.org:
--------------------------------------------------------------------------------
1 | * Material Design icons by Google
2 | Contains the Material Design icon font by Google. Visit
3 | https://github.com/google/material-design-icons and
4 | http://google.github.io/material-design-icons/ for more information.
5 |
6 | ** License
7 | These icons are licensed by under the [[http://creativecommons.org/licenses/by/4.0/][Creative Common Attribution 4.0
8 | International License (CC-BY 4.0)]]. Thanks to Google and the designers
9 | of this beautiful icon set.
10 |
--------------------------------------------------------------------------------
/Machineface/translations/machineface_de.qm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machinekit/Machineface/dd15610a6452a8ad1e930a7f7c49a729e8ea3287/Machineface/translations/machineface_de.qm
--------------------------------------------------------------------------------
/Machineface/translations/machineface_en.qm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machinekit/Machineface/dd15610a6452a8ad1e930a7f7c49a729e8ea3287/Machineface/translations/machineface_en.qm
--------------------------------------------------------------------------------
/Machineface/translations/machineface_es.qm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machinekit/Machineface/dd15610a6452a8ad1e930a7f7c49a729e8ea3287/Machineface/translations/machineface_es.qm
--------------------------------------------------------------------------------
/Machineface/translations/machineface_ru.qm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machinekit/Machineface/dd15610a6452a8ad1e930a7f7c49a729e8ea3287/Machineface/translations/machineface_ru.qm
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Machineface
2 | ===========
3 |
4 | Machineface is a remote user interface for Machinekit optimized for 3D printers and mobile devices.
5 |
6 | This UI uses the [QtQuickVcp](https://github.com/machinekoder/QtQuickVcp) QtQuick modules.
7 |
8 | 
9 |
10 |
11 | ## Using Machineface
12 |
13 | To use Machineface you have to clone the repository on your Machinekit computer:
14 |
15 | ``` bash
16 | cd ~/
17 | git clone https://github.com/qtquickvcp/Machineface.git
18 | ```
19 |
20 | Next, you have to supply the path to the directory to the *configserver*.
21 |
22 | ``` bash
23 | configserver -n 'My Machine' ~/Machineface
24 | ```
25 |
26 | The UI is then automatically deployed to the [Machinekit Client](https://github.com/qtquickvcp/QtQuickVcp#download)
27 |
28 | For more information about using Machinekit with remote user interfaces please read the [QtQuickVcp documentation](https://github.com/machinekoder/QtQuickVcp#using_mkwrapper).
29 |
--------------------------------------------------------------------------------
/doc/Machineface.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/machinekit/Machineface/dd15610a6452a8ad1e930a7f7c49a729e8ea3287/doc/Machineface.png
--------------------------------------------------------------------------------
/main.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 | #include
5 |
6 | int main(int argc, char *argv[])
7 | {
8 | QApplication app(argc, argv);
9 |
10 | QQmlApplicationEngine engine;
11 | engine.addImportPath(QStringLiteral("imports"));
12 | engine.addImportPath(QStringLiteral("assets:/imports"));
13 | engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
14 |
15 | QTranslator translator;
16 | if (translator.load(QLocale(), QLatin1String("machineface"),
17 | QLatin1String("_"), QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
18 | {
19 | QCoreApplication::installTranslator(&translator);
20 | }
21 |
22 | return app.exec();
23 | }
24 |
25 |
--------------------------------------------------------------------------------
/main.qml:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2014 Alexander Rössler
4 | ** License: LGPL version 2.1
5 | **
6 | ** This file is part of QtQuickVcp.
7 | **
8 | ** All rights reserved. This program and the accompanying materials
9 | ** are made available under the terms of the GNU Lesser General Public License
10 | ** (LGPL) version 2.1 which accompanies this distribution, and is available at
11 | ** http://www.gnu.org/licenses/lgpl-2.1.html
12 | **
13 | ** This library is distributed in the hope that it will be useful,
14 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 | ** Lesser General Public License for more details.
17 | **
18 | ** Contributors:
19 | ** Alexander Rössler @ The Cool Tool GmbH
20 | **
21 | ****************************************************************************/
22 | import QtQuick 2.0
23 | import QtQuick.Controls 1.1
24 | import QtQuick.Window 2.0
25 |
26 | ApplicationWindow {
27 | id: applicationWindow
28 |
29 | visibility: (Qt.platform.os === "android") ? ApplicationWindow.FullScreen: ApplicationWindow.AutomaticVisibility
30 | visible: true
31 | width: (Qt.platform.os == "android") ? Screen.width : Screen.width * 0.7
32 | height: (Qt.platform.os == "android") ? Screen.height : Screen.height * 0.7
33 | title: connectionWindow.title
34 | toolBar: connectionWindow.toolBar
35 | statusBar: connectionWindow.statusBar
36 | menuBar: connectionWindow.menuBar
37 |
38 | Init {
39 | id: connectionWindow
40 | anchors.fill: parent
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/qml.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | main.qml
4 | Machineface/Machineface.qml
5 | Machineface/description.ini
6 | Machineface/ButtonJog.qml
7 | Machineface/DisplayPanel.qml
8 | Machineface/PreviewTab.qml
9 | Machineface/JogControlTab.qml
10 | Machineface/ApplicationToolBar.qml
11 | Machineface/MdiTab.qml
12 | Machineface/GCodeTab.qml
13 | Machineface/SettingsTab.qml
14 | Machineface/ToggleSettingCheck.qml
15 | Machineface/OverlayDialog.qml
16 | Machineface/AboutDialog.qml
17 | Machineface/TemperatureControl.qml
18 | Machineface/FanControl.qml
19 | Machineface/LightControl.qml
20 | Machineface/VelocityExtrusionControl.qml
21 | Machineface/GantryConfigControl.qml
22 | Machineface/VideoTab.qml
23 | Machineface/ApplicationMenu.qml
24 | Machineface/ExtruderJogButton.qml
25 | Machineface/HomeButton.qml
26 | Machineface/JogVelocityKnob.qml
27 | Machineface/JogKnob.qml
28 | Machineface/FontIcon.qml
29 | Machineface/icons/MaterialIcons-Regular.ttf
30 | Machineface/JogKeyHandler.qml
31 | Init.qml
32 | Machineface/CustomButtonStyle.qml
33 | Machineface/DisplayPanelBase.qml
34 | Machineface/Singletons/Info.qml
35 | Machineface/Singletons/qmldir
36 |
37 |
38 |
--------------------------------------------------------------------------------
/translation.pri:
--------------------------------------------------------------------------------
1 | TARGET_NAME = $$lower($$NAME)
2 | LANGUAGES = en ru de es
3 | OUTPUT_DIR = $$TRANSLATIONS_OUT_PATH
4 |
5 | defineReplace(prependAll) {
6 | for(a,$$1):result += $$2$${a}$$3
7 | return($$result)
8 | }
9 |
10 | TRANSLATIONS = $$prependAll(LANGUAGES, $${TRANSLATIONS_PATH}/$${TARGET_NAME}_, .ts)
11 | TRANSLATIONS_OUT = $$prependAll(LANGUAGES, $${OUTPUT_DIR}/$${TARGET_NAME}_, .qm)
12 |
13 | isEmpty(QMAKE_LUPDATE) {
14 | win32:QMAKE_LUPDATE = $$[QT_INSTALL_BINS]\lupdate.exe
15 | else:QMAKE_LUPDATE = $$[QT_INSTALL_BINS]/lupdate
16 | }
17 |
18 | for(a,TRANSLATIONS): {
19 | system($$QMAKE_LUPDATE $$join(QML_FILES, " ") -locations none -no-ui-lines -ts $${a})
20 | }
21 |
22 | isEmpty(QMAKE_LRELEASE) {
23 | win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe
24 | else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
25 | }
26 | updateqm.input = TRANSLATIONS
27 | updateqm.output = $${OUTPUT_DIR}/${QMAKE_FILE_BASE}.qm
28 | updateqm.commands = $$QMAKE_MKDIR $$shell_path($$dirname(updateqm.output)) $$escape_expand(\n\t)
29 | updateqm.commands = $$QMAKE_LRELEASE $$shell_path(${QMAKE_FILE_IN}) -qm $$shell_path($${OUTPUT_DIR}/${QMAKE_FILE_BASE}.qm)
30 | updateqm.CONFIG += no_link
31 | updateqm.variable_out = PRE_TARGETDEPS
32 | QMAKE_EXTRA_COMPILERS += updateqm
33 |
34 | updateqm_install.files = $$TRANSLATIONS_OUT
35 | updateqm_install.path = $$[QT_INSTALL_TRANSLATIONS]
36 | INSTALLS += updateqm_install
37 |
38 | OTHER_FILES += $$TRANSLATIONS_OUT
39 |
--------------------------------------------------------------------------------
/translations/machineface_de.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AboutDialog
6 |
7 | Close
8 | Schließen
9 |
10 |
11 | About Machineface
12 | Über Machineface
13 |
14 |
15 |
16 | ApplicationMenu
17 |
18 | Menu
19 | Menü
20 |
21 |
22 | &Disconnect
23 | &Verbindung trennen
24 |
25 |
26 | &About Machineface
27 | Über &Machineface
28 |
29 |
30 | Sh&utdown
31 | &Herunterfahren
32 |
33 |
34 | E&xit
35 | &Beenden
36 |
37 |
38 | &Disconnect from Session
39 | Von Sitzung &trennen
40 |
41 |
42 | Sh&utdown Session
43 | Sitzung &beenden
44 |
45 |
46 | E&xit User Interface
47 | Benutzeroberfläche schli&eßen
48 |
49 |
50 |
51 | ButtonJog
52 |
53 | Move
54 | Bewegen
55 |
56 |
57 | and
58 | und
59 |
60 |
61 | axis to 0
62 | Achse zu 0
63 |
64 |
65 | Select axis action
66 | Achse auswählen
67 |
68 |
69 | Select Action
70 | Achse auswählen
71 |
72 |
73 | Touch off
74 | Referenzieren
75 |
76 |
77 | axis
78 | Achse
79 |
80 |
81 | Change extruder
82 | Extrudierer wechseln
83 |
84 |
85 | Select extruder
86 | Extrudierer auswählen
87 |
88 |
89 | Extruder
90 | Extrudierer
91 |
92 |
93 | Velocity
94 | Geschwindigkeit
95 |
96 |
97 |
98 | DisplayPanel
99 |
100 | Heated Bed
101 | Heizbett
102 |
103 |
104 | Heated Chamber
105 | Heizkammer
106 |
107 |
108 | Extruder %1
109 | Extrudierer %1
110 |
111 |
112 | Light %1
113 | Licht %1
114 |
115 |
116 | Fan %1
117 | Lüfter %1
118 |
119 |
120 |
121 | GCodeTab
122 |
123 | GCode
124 | GCode
125 |
126 |
127 |
128 | GantryConfigControl
129 |
130 | Left offset:
131 | Linke Abweichung:
132 |
133 |
134 | Right offset:
135 | Rechte Abweichung:
136 |
137 |
138 |
139 | JogControlTab
140 |
141 | Jog
142 | Jog
143 |
144 |
145 |
146 | LightControl
147 |
148 | Pick Color
149 | Farbe auswählen
150 |
151 |
152 |
153 | MdiTab
154 |
155 | MDI
156 | MDI
157 |
158 |
159 |
160 | OverlayDialog
161 |
162 | Ok
163 | Ok
164 |
165 |
166 |
167 | PreviewTab
168 |
169 | Preview
170 | Vorschau
171 |
172 |
173 |
174 | SettingsTab
175 |
176 | Settings
177 | Einstellungen
178 |
179 |
180 | Digital Read Out
181 | Digitale Anzeige
182 |
183 |
184 | Show offsets
185 | Abweichungen anzeigen
186 |
187 |
188 | Show velocity
189 | Geschwindigkeit anzeigen
190 |
191 |
192 | Show distance to go
193 | Verbleibende Strecke anzeigen
194 |
195 |
196 | Other
197 | Andere
198 |
199 |
200 | Enable preview
201 | Vorschau einschalten
202 |
203 |
204 | Maximum Velocity:
205 | Maximale Geschwindigkeit:
206 |
207 |
208 |
209 | TemperatureControl
210 |
211 | N/A
212 | N/A
213 |
214 |
215 |
216 | ToggleSettingCheck
217 |
218 | Group Value
219 | Gruppenwert
220 |
221 |
222 |
223 | VelocityExtrusionControl
224 |
225 | Filament diameter:
226 | Filament Durchmesser:
227 |
228 |
229 | Retract velocity:
230 | Rückzugsgeschwindigkeit:
231 |
232 |
233 | Retract length:
234 | Rückzugslänge:
235 |
236 |
237 | Extrude scale:
238 | Extrudierer Skalierungsfaktor:
239 |
240 |
241 | Accel. adj. gain:
242 | Beschleunigungsfaktor:
243 |
244 |
245 | Velocity Extrusion
246 | Geschwindigkeitsbasierte Extrudierung
247 |
248 |
249 |
250 | VideoTab
251 |
252 | Video
253 | Video
254 |
255 |
256 | Webcam not available
257 | Kamera nicht verfügbar
258 |
259 |
260 |
261 |
--------------------------------------------------------------------------------
/translations/machineface_en.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AboutDialog
6 |
7 | Close
8 |
9 |
10 |
11 | About Machineface
12 |
13 |
14 |
15 |
16 | ApplicationMenu
17 |
18 | Menu
19 |
20 |
21 |
22 | &About Machineface
23 |
24 |
25 |
26 | &Disconnect from Session
27 |
28 |
29 |
30 | Sh&utdown Session
31 |
32 |
33 |
34 | E&xit User Interface
35 |
36 |
37 |
38 |
39 | ButtonJog
40 |
41 | Move
42 |
43 |
44 |
45 | and
46 |
47 |
48 |
49 | axis to 0
50 |
51 |
52 |
53 | Select axis action
54 |
55 |
56 |
57 | Select Action
58 |
59 |
60 |
61 | Touch off
62 |
63 |
64 |
65 | axis
66 |
67 |
68 |
69 | Change extruder
70 |
71 |
72 |
73 | Select extruder
74 |
75 |
76 |
77 | Extruder
78 |
79 |
80 |
81 | Velocity
82 |
83 |
84 |
85 |
86 | DisplayPanel
87 |
88 | Heated Bed
89 |
90 |
91 |
92 | Heated Chamber
93 |
94 |
95 |
96 | Extruder %1
97 |
98 |
99 |
100 | Light %1
101 |
102 |
103 |
104 | Fan %1
105 |
106 |
107 |
108 |
109 | GCodeTab
110 |
111 | GCode
112 |
113 |
114 |
115 |
116 | GantryConfigControl
117 |
118 | Left offset:
119 |
120 |
121 |
122 | Right offset:
123 |
124 |
125 |
126 |
127 | JogControlTab
128 |
129 | Jog
130 |
131 |
132 |
133 |
134 | LightControl
135 |
136 | Pick Color
137 |
138 |
139 |
140 |
141 | MdiTab
142 |
143 | MDI
144 |
145 |
146 |
147 |
148 | OverlayDialog
149 |
150 | Ok
151 |
152 |
153 |
154 |
155 | PreviewTab
156 |
157 | Preview
158 |
159 |
160 |
161 |
162 | SettingsTab
163 |
164 | Settings
165 |
166 |
167 |
168 | Digital Read Out
169 |
170 |
171 |
172 | Show offsets
173 |
174 |
175 |
176 | Show velocity
177 |
178 |
179 |
180 | Show distance to go
181 |
182 |
183 |
184 | Other
185 |
186 |
187 |
188 | Enable preview
189 |
190 |
191 |
192 | Maximum Velocity:
193 |
194 |
195 |
196 |
197 | TemperatureControl
198 |
199 | N/A
200 |
201 |
202 |
203 |
204 | VelocityExtrusionControl
205 |
206 | Filament diameter:
207 |
208 |
209 |
210 | Retract velocity:
211 |
212 |
213 |
214 | Retract length:
215 |
216 |
217 |
218 | Extrude scale:
219 |
220 |
221 |
222 | Accel. adj. gain:
223 |
224 |
225 |
226 | Velocity Extrusion
227 |
228 |
229 |
230 |
231 | VideoTab
232 |
233 | Video
234 |
235 |
236 |
237 | Webcam not available
238 |
239 |
240 |
241 |
242 |
--------------------------------------------------------------------------------
/translations/machineface_es.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AboutDialog
6 |
7 | About Machineface
8 |
9 |
10 |
11 | Close
12 |
13 |
14 |
15 |
16 | ApplicationMenu
17 |
18 | Menu
19 |
20 |
21 |
22 | &Disconnect from Session
23 |
24 |
25 |
26 | &About Machineface
27 |
28 |
29 |
30 | Sh&utdown Session
31 |
32 |
33 |
34 | E&xit User Interface
35 |
36 |
37 |
38 |
39 | ButtonJog
40 |
41 | Move
42 |
43 |
44 |
45 | and
46 |
47 |
48 |
49 | axis to 0
50 |
51 |
52 |
53 | Select axis action
54 |
55 |
56 |
57 | Select Action
58 |
59 |
60 |
61 | Touch off
62 |
63 |
64 |
65 | axis
66 |
67 |
68 |
69 | Change extruder
70 |
71 |
72 |
73 | Select extruder
74 |
75 |
76 |
77 | Extruder
78 |
79 |
80 |
81 | Velocity
82 |
83 |
84 |
85 |
86 | DisplayPanel
87 |
88 | Heated Bed
89 |
90 |
91 |
92 | Heated Chamber
93 |
94 |
95 |
96 | Extruder %1
97 |
98 |
99 |
100 | Fan %1
101 |
102 |
103 |
104 | Light %1
105 |
106 |
107 |
108 |
109 | GCodeTab
110 |
111 | GCode
112 |
113 |
114 |
115 |
116 | GantryConfigControl
117 |
118 | Left offset:
119 |
120 |
121 |
122 | Right offset:
123 |
124 |
125 |
126 |
127 | JogControlTab
128 |
129 | Jog
130 |
131 |
132 |
133 |
134 | LightControl
135 |
136 | Pick Color
137 |
138 |
139 |
140 |
141 | MdiTab
142 |
143 | MDI
144 |
145 |
146 |
147 |
148 | OverlayDialog
149 |
150 | Ok
151 |
152 |
153 |
154 |
155 | PreviewTab
156 |
157 | Preview
158 |
159 |
160 |
161 |
162 | SettingsTab
163 |
164 | Settings
165 |
166 |
167 |
168 | Digital Read Out
169 |
170 |
171 |
172 | Show offsets
173 |
174 |
175 |
176 | Show velocity
177 |
178 |
179 |
180 | Show distance to go
181 |
182 |
183 |
184 | Other
185 |
186 |
187 |
188 | Enable preview
189 |
190 |
191 |
192 | Maximum Velocity:
193 |
194 |
195 |
196 |
197 | TemperatureControl
198 |
199 | N/A
200 |
201 |
202 |
203 |
204 | VelocityExtrusionControl
205 |
206 | Velocity Extrusion
207 |
208 |
209 |
210 | Filament diameter:
211 |
212 |
213 |
214 | Retract velocity:
215 |
216 |
217 |
218 | Retract length:
219 |
220 |
221 |
222 | Extrude scale:
223 |
224 |
225 |
226 | Accel. adj. gain:
227 |
228 |
229 |
230 |
231 | VideoTab
232 |
233 | Video
234 |
235 |
236 |
237 | Webcam not available
238 |
239 |
240 |
241 |
242 |
--------------------------------------------------------------------------------
/translations/machineface_ru.ts:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | AboutDialog
6 |
7 | Close
8 | Закрыть
9 |
10 |
11 | About Machineface
12 | О машине
13 |
14 |
15 |
16 | ApplicationMenu
17 |
18 | Menu
19 | Меню
20 |
21 |
22 | &About Machineface
23 | О Machineface
24 |
25 |
26 | &Disconnect from Session
27 | Отключиться от сессии
28 |
29 |
30 | Sh&utdown Session
31 | Прервать сессию
32 |
33 |
34 | E&xit User Interface
35 | Выйти из пользовательского интерфейса
36 |
37 |
38 |
39 | ButtonJog
40 |
41 | Move
42 | Переместить
43 |
44 |
45 | and
46 | и
47 |
48 |
49 | axis to 0
50 | оси на 0
51 |
52 |
53 | Select axis action
54 | Выбрать действие по оси
55 |
56 |
57 | Select Action
58 | Выбрать действие
59 |
60 |
61 | Touch off
62 | Касание откл.
63 |
64 |
65 | axis
66 | ось
67 |
68 |
69 | Change extruder
70 | Заменить экструдер
71 |
72 |
73 | Select extruder
74 | Выбрать экструдер
75 |
76 |
77 | Extruder
78 | Экструдер
79 |
80 |
81 | Velocity
82 | Скорость
83 |
84 |
85 |
86 | DisplayPanel
87 |
88 | Heated Bed
89 | Подогрев подложки
90 |
91 |
92 | Heated Chamber
93 | Подогрев камеры
94 |
95 |
96 | Extruder %1
97 | Экструдер %1
98 |
99 |
100 | Light %1
101 | Подсветка %1
102 |
103 |
104 | Fan %1
105 | Вентилятор %1
106 |
107 |
108 |
109 | GCodeTab
110 |
111 | GCode
112 | G-код
113 |
114 |
115 |
116 | GantryConfigControl
117 |
118 | Left offset:
119 | Отступ слева:
120 |
121 |
122 | Right offset:
123 | Отступ справа:
124 |
125 |
126 |
127 | JogControlTab
128 |
129 | Jog
130 | Толчковый режим
131 |
132 |
133 |
134 | LightControl
135 |
136 | Pick Color
137 | Выбор цвета
138 |
139 |
140 |
141 | MdiTab
142 |
143 | MDI
144 | MDI
145 |
146 |
147 |
148 | OverlayDialog
149 |
150 | Ok
151 | Ок
152 |
153 |
154 |
155 | PreviewTab
156 |
157 | Preview
158 | Предпросмотр
159 |
160 |
161 |
162 | SettingsTab
163 |
164 | Settings
165 | Настройки
166 |
167 |
168 | Digital Read Out
169 | Цифровое считывание
170 |
171 |
172 | Show offsets
173 | Показать отступы
174 |
175 |
176 | Show velocity
177 | Показать скорость
178 |
179 |
180 | Show distance to go
181 | Показать оставшееся расстояние
182 |
183 |
184 | Other
185 | Прочее
186 |
187 |
188 | Enable preview
189 | Предпросмотр
190 |
191 |
192 | Maximum Velocity:
193 | Максимальная скорость:
194 |
195 |
196 |
197 | TemperatureControl
198 |
199 | N/A
200 | н.д.
201 |
202 |
203 |
204 | VelocityExtrusionControl
205 |
206 | Filament diameter:
207 | Диаметр заполнителя:
208 |
209 |
210 | Retract velocity:
211 | Скорость вытягивания:
212 |
213 |
214 | Retract length:
215 | Длина вытягивания:
216 |
217 |
218 | Extrude scale:
219 | Масштаб экструдера:
220 |
221 |
222 | Accel. adj. gain:
223 | Усил. уск. настр.:
224 |
225 |
226 | Velocity Extrusion
227 | Скорость экструзии
228 |
229 |
230 |
231 | VideoTab
232 |
233 | Video
234 | Видео
235 |
236 |
237 | Webcam not available
238 | Веб-камера не обнаружена
239 |
240 |
241 |
242 |
--------------------------------------------------------------------------------