49 Commits

Author SHA1 Message Date
YuSanka
18e56c3d53 Localization: Fixes for some phrases
+ Added/Fixed comments where it's needed
2023-03-23 22:55:38 +01:00
YuSanka
f9de995f9e Remove '_utf8' makro.
(Initially, it was used because of using of boost::format for localized lines. But now It's better to use format and formal_wxstr functions)

+ Fixed missed marks for localization
+ Added missed filed to localization to the list.txt
2023-03-23 22:55:38 +01:00
David Kocik
7a14406902 Missing overrides in PrusaConnect class. 2023-03-16 12:02:27 +01:00
David Kocik
3700738123 Accept-Language when getting PrusaLink storage 2023-03-02 09:04:03 +01:00
David Kocik
61b31bfbc3 PrusaLink storage names in Upload dialog 2023-03-02 09:04:03 +01:00
David Kocik
db9e6368bd PrusaLink: getting storages reads also "ro" as it is used instead of "read_only" in PrusaLink 0.7.0RC2 2023-02-16 13:34:57 +01:00
YuSanka
b71e0bfd34 Follow-up 8913fdf6ab
* Deleted/Temporary commented redundant call of app_config->save()
 * Use app_config->get_bool() function on all places
2023-02-13 17:23:49 +01:00
David Kocik
3b2271c585 PrusaLink: changed value string for "true" value of Print-After-Upload 2023-01-27 09:34:14 +01:00
David Kocik
5f75d61d49 fix of compilation warnings 2022-12-19 15:56:58 +01:00
David Kocik
b9b4edb129 Upload changes
PrusaLink: Use PUT or POST based on information read during test connection (upload-by-put). If put - do additional GET for storage_list and let user to choose where to upload or show name if only 1 is possible. Allow PrusaLink for MK2.5 and MK2.5S.
PrusaConnect: New host type PrusaConnect inherited from PrusaLink class with filled host address, disabled http diggest. After upload read header information - status message and pass it to notification and Printhost upload dialog via events, this message can be shown as warning notification and is recieved in localized lang. Pass accept-language shortcut in upload header. 3 option to upload. (upload, to queue, to print)
Upload Notification: Showing status text, changes in text, not showing close button, Completed state on special call (not 100%) and other design changes.
Right panel: Open URL button.
2022-12-19 14:17:48 +01:00
David Kocik
cd30e8f2e7 get_host_from_url function 2022-07-17 18:40:07 +02:00
David Kocik
8481de43cc Improved error message if both ipv4 and ipv6 upload fails. 2022-07-17 18:40:07 +02:00
David Kocik
d9058b2a92 Cancel upload priority before error showing. 2022-07-17 18:40:07 +02:00
David Kocik
89e288dcf8 Propagate resolved ip address to the UI layer (both upload dialog and notification) 2022-07-17 18:40:07 +02:00
David Kocik
bc167ce90b Decision tree for different types and numbers of resolved IPs. 2022-07-17 18:40:07 +02:00
David Kocik
9fd3108726 Resolved IP dialog before uploading - needs better design and to not show if only 1x v4 and v6 is resolved. 2022-07-17 18:40:07 +02:00
David Kocik
36f473c984 Bonjour lookup function in same style as resolve function.
Includes refactoring of resolve function. 
refactor
2022-07-17 18:40:07 +02:00
David Kocik
457a5d4a65 system ifdefs 2022-07-17 18:40:07 +02:00
David Kocik
d2c6f597d2 Bonjour - resolve hostname to IP using mdns.
Octoprint - on Windows use Bonjour resolving to get IP address before the http connection. Only use Windows address resolving if Bonjour couldn't resolve.
2022-07-17 18:40:07 +02:00
David Kocik
60b8a8245c Deleted unused function in Octoprint 2021-12-03 09:47:56 +01:00
Vojtech Bubnik
4d1ce89c22 Follow-up to f4dfbb69e2e4397ff7369fd1709ecf6da17aab83
Now that libcurl is used for URL host substitution,
we want to make sure that the new code compiles on Windows only
because that is where we need to do the URL host substitution
due to Windows 10/11 mDNS resolve issues and
because we have a control on the libcurl version statically linked
on Windows, so we are sure the URL API is available.
2021-12-03 08:12:47 +01:00
Vojtech Bubnik
f4dfbb69e2 Replaced the code to substitute host address part in URL
with libcurl library calls. This solution should be more robust
than a homebrew URL parser solution.
2021-12-03 08:02:16 +01:00
David Kocik
a840f8020f Substitution of host during ip resolve: correct handling of ipv6 2021-12-02 16:31:19 +01:00
David Kocik
a4b4af8a1a Change of 71082adbc9ac2101c39f46218d666e46ab4ecb7c
Instead of just adding port, take original address and replace just host with resolved host.
fix of #7389
2021-12-02 10:25:31 +01:00
David Kocik
0939dab807 allow_ip_resolve in app config 2021-12-02 10:25:04 +01:00
David Kocik
9788a80c6f Added port number to resolved ip address if specified.
fix of #7361
2021-12-02 10:25:04 +01:00
Vojtech Bubnik
c514f45260 Fix of #7386, missing include 2021-11-30 13:17:56 +01:00
Vojtech Bubnik
8967ee57ed Start Simulation for Duet
Author: Martin Loidl <martin.loidl@gmail.com>

    * PrintHost can now return a set of possible actions to be done after a
      upload is finished
    * Added new Button for starting a simulation after upload
    * Duet Hosts are now able to start a simulation after upload instead of
      starting a print
    * removed now unneeded config key 'printhost_print'
2021-11-30 08:43:39 +01:00
David Kocik
e276b70851 Resolve IP address from last curl connection and use it as address for next Octoprint upload
IP resolve only for non secure connection and on windows.
2021-11-25 15:18:15 +01:00
Vojtech Bubnik
d3f11a6ab7 Follow-up to OctoPrint upload: ignore certificate revocation checks
6b03b66167dd17bc6c804f58b9af124082e80287

Renamed the new "printhost_ignore_check" option to "printhost_ssl_ignore_revoke"

Improved the Physical Printers dialog in regard to the new option checkbox
(added tooltip to the checkbox, moved it to the end of options).

Disabled the host_xxx options at the command line interface, they no
more work after these options were separated to Physical Printers profiles.

Little refactoring of Http.cpp/hpp, OctoPrint.cpp/hpp
Private local variables prefixed with m_, some renaming for clarity.
2021-08-24 13:57:52 +02:00
Vojtech Bubnik
6b03b66167 OctoPrint upload: ignore certificate revocation checks
Fixes Hostname incorrect While test is positive (Bonjour discovery not
supported for the address field) #1781
(partial fix of #1781)
2021-08-24 11:24:48 +02:00
Vojtech Bubnik
a25d2d1de4 Support for SL1S printer:
Where SL1 is mentioned, mention it as SL1 / SL1S.
Support loading / saving of SL1S files in addition to SL1.
2021-08-13 13:40:13 +02:00
David Kocik
b14345012d PrusaLink - cherrypick pick from stable branch
Added to config enums, visible in Physical Printer Dialog and class derived from Octoprint
2021-06-28 12:36:01 +02:00
Yuri D'Elia
ad20e369fa Include PrintConfig for the definition of AuthorizationType 2020-09-11 16:51:05 +02:00
Vojtech Bubnik
ce06fc6cb7 Added networking support for SL1 Digest authorization.
Renamed login/password/authorization_type to printhost_user/printhost_password/printhost_authorization_type.
Added initialization of physical printer preset with default values.
2020-09-08 15:31:10 +02:00
Lukas Matena
f2b98bddee Fixing wxString::Format encoding mismatches (part 3) 2020-03-03 10:54:17 +01:00
bubnikv
791f487c76 Clean-up of the "Upload to" code (AstroBox, Duet, FlashAir, OctoPrint) 2020-01-06 10:59:57 +01:00
Vojtech Kral
f937209619 Refactor catch(...) handlers in Http, OctoPrint, PrintHost, and Serial 2019-08-19 17:04:14 +02:00
bubnikv
1efe743834 Modified texts of the "Change language" dialog. 2019-05-09 15:24:08 +02:00
Vojtech Kral
857b68a82a PrintHost: Fix host type configuration, refactor, fix #1687 2019-03-05 16:12:15 +01:00
Vojtech Kral
bd725a47f4 PrintHost: Don't offer print start for SL1 2019-03-05 16:12:15 +01:00
Vojtech Kral
af08626398 Duet: Implement upload() (refactoring from old code) 2018-12-20 17:09:44 +01:00
Vojtech Kral
3b2c28fa89 Printhost: Polish error handling, bugfixes 2018-12-19 18:49:34 +01:00
Vojtech Kral
0ac4d13015 Print host: Check OctoPrint vs SLA 2018-12-19 15:15:29 +01:00
Vojtech Kral
66b5deccf5 PrintHost: Basic SL1 support 2018-12-18 14:37:35 +01:00
Vojtech Kral
862217a6b3 OctoPrint basics working, niceties to-do 2018-12-17 17:14:00 +01:00
Vojtech Kral
2350fb62b9 WIP OctoPrint integration 2018-12-12 13:17:01 +01:00
bubnikv
a378bb7bed Removed some obsolete Perl bindings.
Removed libslic3r from the default include paths for all modules but
libslic3r. Now headers from libslic3r need to be included with an
explicit path (libslic3r/libslic3r.h etc)
Split the localization macros into I18N.{cpp,h}
2018-11-26 14:41:58 +01:00
bubnikv
0558b53493 WIP: Moved sources int src/, separated most of the source code from Perl.
The XS was left only for the unit / integration tests, and it links
libslic3r only. No wxWidgets are allowed to be used from Perl starting
from now.
2018-09-19 11:02:24 +02:00