Commit Graph
70 Commits
Author SHA1 Message Date
OcraftyoneandYuSanka 015d9c7c40 add UndoValueUIManager from PS
from prusa3d/PrusaSlicer@32ff20d

Co-authored-by: YuSanka <yusanka@gmail.com>
2023-12-20 00:29:06 -05:00
Ocraftyone 4f5c185d56 Merge branch 'main' into enh-edit-gcode-dlg
# Conflicts:
#	deps/NanoSVG/NanoSVG.cmake
#	src/slic3r/GUI/BitmapCache.cpp
#	src/slic3r/GUI/BitmapCache.hpp
#	src/slic3r/GUI/GUI_Factories.cpp
#	src/slic3r/GUI/GUI_Factories.hpp
#	src/slic3r/GUI/GUI_ObjectLayers.cpp
#	src/slic3r/GUI/ObjectDataViewModel.cpp
#	src/slic3r/GUI/ObjectDataViewModel.hpp
#	src/slic3r/GUI/PresetComboBoxes.cpp
#	src/slic3r/GUI/SelectMachine.cpp
#	src/slic3r/GUI/Tab.cpp
#	src/slic3r/GUI/Widgets/ComboBox.cpp
#	src/slic3r/GUI/wxExtensions.cpp
#	src/slic3r/GUI/wxExtensions.hpp
2023-12-20 00:14:02 -05:00
Ocraftyone 75b1a30293 fix pwsh variable in CICD (#3188) 2023-12-19 16:07:30 +08:00
25a055491e Update wxWidgets to v3.2.1 (#2905)
* Upgrade wxWidgets to 3.2.1
Based on prusa3d/PrusaSlicer@9a7e024

Co-authored-by: tamasmeszaros <meszaros.q@gmail.com>

* Implement BitmapCache

* update wxExtensions while keeping legacy items

* update dc.DrawBitmap calls to use get_bitmap

* Fix GetSize/Width/Height calls

* update BitmapComboBox

* fix ifndef in wxExtensions.hpp

* update my todos to OcraftyoneTODO

* Get to a compilable state
Everything seems to be working (including the plater). I am not seeing any graphical issues

* fix extruder color icons

* fix crash on opening support tab

* remove GetBmpSize method from DropDown.cpp

* Update TextInput to use bitmap bundles

* update a TODO after testing

* fix the rendering of the icons on combobox

* fix a few todos

* fix WipeTowerDialog.cpp

* Overhaul WipeTowerDialog

Removed simple version of the dialog since BBS removed the functionality but left the code.
Center the table (only seen when the table is smaller than the minimum size of the dialog)
Fix issue where editing a value causes the m_min_flush_label to change colors slightly
Fix an issue where changing a value or running an auto calc changes the disabled value from "-" to "0"

* update a few todos

* Update some todos

* Show dropdown when editing is started

* Update NanoSVG.cmake

Update NanoSVG to work with PR #2780

* Dim the icon on ComboBox when disabled

* solve ObjectDataViewModel todos

leaving colPrint and colEditing cases alone as it does not seem to impact anything

* Update names in wxExtensions

-Rename msw_rescale to sys_color_changed
-Replace GetBmpSize, GetBmpWidth, GetBmpHeight with renamed version (same name without "Bmp")

Both of these changes were also made by PrusaSlicer.

Original Commit: Prusa3D/PrusaSlicer@066b567
Co-authored-by: YuSanka <yusanka@gmail.com>

* update BitmapCache::from_svg

disable finding bundle in the cache to match load_svg
update to match values used in load_svg

* Update ScalableButton

change the signature and remove functions/vars pertaining to a default bmp
fix TODOs in ScalableButton

Original Commit: Prusa3D/PrusaSlicer@066b567
Co-authored-by: YuSanka <yusanka@gmail.com>

* fix up some more todos in wxExtensions

* update ScalableBitmap to use bmp bundles

use wxBitmapBundle by default
add flag to use old scaled bitmap function (specifically to solve issue with advanced toggle)

* attempt to fix macos deps build

* fix ubuntu build

* Revert "attempt to fix macos deps build"

Mistakenly made change to wrong file

This reverts commit d9c20b5121.

* update wxWidgets patch

an attempt to fix macOS build

* Remove duplicate variable from OrcaSlicer.cpp

* Fix macOS build issue

* Fix blank DataViewItem being added to objects list

* Filament ComboBox editor updates

-Add show drop down feature to ObjectTable
-Call finish editing when ComboBox is closed in ObjectList

* remove Apple specific declarations missed during refactor

* delete old wxWidgets patch

* fix ubuntu seg fault

* include patch from #2926

* update patch to include wxWidgets/wxWidgets@991a74c

* fix deps not compiling on Windows

* update WipeTowerDialog

relocates the recalculate button back to its previous position
changes the wording of the tip message label
add spacing below the matrix

* finish patching wxWidgets

from prusa3d/PrusaSlicer@f8477d1 and prusa3d/PrusaSlicer@066b567

Co-authored-by: YuSanka <yusanka@gmail.com>

* fix combobox crash

* revert outside plate changes

---------

Co-authored-by: tamasmeszaros <meszaros.q@gmail.com>
Co-authored-by: YuSanka <yusanka@gmail.com>
2023-12-04 15:21:49 +00:00
Ocraftyone 6ba1e6d6ae Set PointerAlignment to Left (#2948)
A lot of the codebase that I have seen typically uses a left justified pointer character. This would update the formatter to also follow that.
2023-12-01 15:32:48 +00:00
Ocraftyone cd95c8d15a update WipeTowerDialog
relocates the recalculate button back to its previous position
changes the wording of the tip message label
add spacing below the matrix
2023-12-01 09:07:30 -05:00
Ocraftyone 6312da243c fix deps not compiling on Windows 2023-12-01 08:55:51 -05:00
Ocraftyone 1b48a9bd7e Merge branch 'main' into enh-update-wxwidgets
# Conflicts:
#	src/slic3r/GUI/AmsMappingPopup.cpp
#	src/slic3r/GUI/BitmapCache.cpp
#	src/slic3r/GUI/BitmapCache.hpp
#	src/slic3r/GUI/ImageGrid.cpp
#	src/slic3r/GUI/SelectMachine.cpp
#	src/slic3r/GUI/WipeTowerDialog.cpp
#	src/slic3r/GUI/WipeTowerDialog.hpp
2023-12-01 07:05:10 -05:00
Ocraftyone 887ab5d833 update patch to include wxWidgets/wxWidgets@991a74c 2023-11-30 23:06:09 -05:00
Ocraftyone 5ad3ce7924 Merge branch 'main' into enh-update-wxwidgets 2023-11-30 23:03:58 -05:00
Ocraftyone d70a0f0eea Merge remote-tracking branch 'ocraftyone_origin/enh-update-wxwidgets' into enh-update-wxwidgets 2023-11-30 03:28:26 -05:00
Ocraftyone 4308fad525 include patch from #2926 2023-11-30 03:28:02 -05:00
Ocraftyone 308eeff244 Merge branch 'main' into enh-update-wxwidgets 2023-11-30 02:44:22 -05:00
Ocraftyone 6835f8732b fix ubuntu seg fault 2023-11-30 02:40:16 -05:00
Ocraftyone cfc67dd411 Merge branch 'main' into enh-update-wxwidgets 2023-11-29 05:17:59 -05:00
Ocraftyone b86b8ea810 Update BuildLinux.sh (#2919)
getting the value for FOUND_GTK* variables seems to cause an error which prevents using the -u option to install the needed packages. This is fixed by moving the "exit on first error" flag to after setting these vars.
2023-11-29 10:25:00 +08:00
Ocraftyone 6a97dfcb58 Merge branch 'main' into enh-update-wxwidgets 2023-11-28 04:36:30 -05:00
Ocraftyone fbf97cd0a0 delete old wxWidgets patch 2023-11-28 04:28:55 -05:00
Ocraftyone 03f000a071 remove Apple specific declarations missed during refactor 2023-11-27 23:16:47 -05:00
Ocraftyone 07a637d35a Filament ComboBox editor updates
-Add show drop down feature to ObjectTable
-Call finish editing when ComboBox is closed in ObjectList
2023-11-27 07:34:55 -05:00
Ocraftyone d13bbb1890 Fix blank DataViewItem being added to objects list 2023-11-27 05:42:01 -05:00
Ocraftyone 8e26df2815 Fix macOS build issue 2023-11-27 04:34:01 -05:00
Ocraftyone a3d292ff71 Remove duplicate variable from OrcaSlicer.cpp 2023-11-27 02:50:36 -05:00
Ocraftyone bbf9b5f558 update wxWidgets patch
an attempt to fix macOS build
2023-11-27 02:35:55 -05:00
Ocraftyone 0e2f88d386 Revert "attempt to fix macos deps build"
Mistakenly made change to wrong file

This reverts commit d9c20b5121.
2023-11-27 02:34:08 -05:00
Ocraftyone 0944c4254b fix ubuntu build 2023-11-25 23:10:07 +00:00
Ocraftyone d9c20b5121 attempt to fix macos deps build 2023-11-25 05:05:18 -05:00
Ocraftyone 8a0b3953ed update ScalableBitmap to use bmp bundles
use wxBitmapBundle by default
add flag to use old scaled bitmap function (specifically to solve issue with advanced toggle)
2023-11-23 05:05:13 -05:00
Ocraftyone 7f83f460e1 fix up some more todos in wxExtensions 2023-11-22 06:00:55 -05:00
Ocraftyone 2b9cb53676 Update ScalableButton
change the signature and remove functions/vars pertaining to a default bmp
fix TODOs in ScalableButton

Original Commit: Prusa3D/PrusaSlicer@066b567
Co-authored-by: YuSanka <yusanka@gmail.com>
2023-11-22 05:43:35 -05:00
Ocraftyone 3a3301b051 update BitmapCache::from_svg
disable finding bundle in the cache to match load_svg
update to match values used in load_svg
2023-11-22 05:35:00 -05:00
Ocraftyone 01398dd848 Update names in wxExtensions
-Rename msw_rescale to sys_color_changed
-Replace GetBmpSize, GetBmpWidth, GetBmpHeight with renamed version (same name without "Bmp")

Both of these changes were also made by PrusaSlicer.

Original Commit: Prusa3D/PrusaSlicer@066b567
Co-authored-by: YuSanka <yusanka@gmail.com>
2023-11-22 04:12:26 -05:00
Ocraftyone 3b5c571b1c Merge branch 'main' into enh-update-wxwidgets 2023-11-22 00:52:43 -05:00
Ocraftyone 51622326bf solve ObjectDataViewModel todos
leaving colPrint and colEditing cases alone as it does not seem to impact anything
2023-11-22 00:36:16 -05:00
Ocraftyone bc21ab61f5 Dim the icon on ComboBox when disabled 2023-11-21 07:38:40 -05:00
Ocraftyone 53bc949580 Merge branch 'main' into enh-update-wxwidgets
# Conflicts:
#	src/nanosvg/README.txt
#	src/nanosvg/nanosvg.h
#	src/nanosvg/nanosvgrast.h
#	src/slic3r/GUI/BitmapCache.cpp
#	src/slic3r/GUI/BitmapCache.hpp
#	src/slic3r/GUI/ImGuiWrapper.cpp
2023-11-19 19:34:50 -05:00
Ocraftyone 7b1f49f921 Update NanoSVG.cmake
Update NanoSVG to work with PR #2780
2023-11-19 03:56:50 -05:00
Ocraftyone 6e7dfc54e4 Show dropdown when editing is started 2023-11-19 02:10:15 -05:00
Ocraftyone 3f0083c5a7 Update some todos 2023-11-19 02:04:29 -05:00
OcraftyoneandSoftFever cbb7c3381c Rework Github Build Actions (#2566)
update workflows from dev branch

Co-authored-by: SoftFever <softfeverever@gmail.com>
2023-11-18 15:30:06 +08:00
Ocraftyone c0386d786c Fix macOS deps build issues (#2541)
update deps/CMakeLists.txt and MPFR.cmake
2023-11-17 21:59:18 +08:00
Ocraftyone cbbeb55989 update a few todos 2023-11-13 13:54:13 -05:00
Ocraftyone 62d689b03e Merge branch 'main' into enh-update-wxwidgets 2023-11-13 00:58:46 -05:00
Ocraftyone 553f72a2ac Overhaul WipeTowerDialog
Removed simple version of the dialog since BBS removed the functionality but left the code.
Center the table (only seen when the table is smaller than the minimum size of the dialog)
Fix issue where editing a value causes the m_min_flush_label to change colors slightly
Fix an issue where changing a value or running an auto calc changes the disabled value from "-" to "0"
2023-11-13 00:56:25 -05:00
Ocraftyone c9284ccf09 fix WipeTowerDialog.cpp 2023-11-11 14:04:45 -05:00
Ocraftyoneandsupermerill 120a3576a0 SS port - Change extrusion role gcode (#2459)
implement custom gcode for when the extrusion role is changed

Co-authored-by: supermerill <merill@free.fr>
2023-11-09 22:30:30 +08:00
Ocraftyone 506e1f4508 fix a few todos 2023-11-09 09:01:07 -05:00
Ocraftyone 413e8751c0 fix the rendering of the icons on combobox 2023-11-08 12:26:23 -05:00
Ocraftyone 6d149e0698 update a TODO after testing 2023-11-08 12:25:11 -05:00
Ocraftyone 510a4a02ab Update TextInput to use bitmap bundles 2023-11-08 11:42:31 -05:00
Ocraftyone 7cfa854981 remove GetBmpSize method from DropDown.cpp 2023-11-08 11:08:38 -05:00
Ocraftyone 92c9a537d8 fix crash on opening support tab 2023-11-08 10:20:53 -05:00
Ocraftyone 7acae72219 fix extruder color icons 2023-11-08 07:50:37 -05:00
Ocraftyone 03754b5213 Get to a compilable state
Everything seems to be working (including the plater). I am not seeing any graphical issues
2023-11-08 06:33:32 -05:00
Ocraftyone dc062f1a1a update my todos to OcraftyoneTODO 2023-11-07 06:03:55 -05:00
Ocraftyone d4676ee9cb fix ifndef in wxExtensions.hpp 2023-11-07 05:54:31 -05:00
Ocraftyone eba3fe207f update BitmapComboBox 2023-11-07 05:44:17 -05:00
Ocraftyone 77a143a8ff Fix GetSize/Width/Height calls 2023-11-07 05:15:44 -05:00
Ocraftyone cdff9ba9fa update dc.DrawBitmap calls to use get_bitmap 2023-11-07 05:15:09 -05:00
Ocraftyone e114881ed5 update wxExtensions while keeping legacy items 2023-11-07 05:03:27 -05:00
Ocraftyone a977c69a81 Implement BitmapCache 2023-11-07 03:47:39 -05:00
Ocraftyone 961629b766 Merge branch 'main' into enh-update-wxwidgets 2023-11-05 04:11:05 -05:00
Ocraftyoneandtamasmeszaros 23022456b8 Upgrade wxWidgets to 3.2.1
Based on prusa3d/PrusaSlicer@9a7e024

Co-authored-by: tamasmeszaros <meszaros.q@gmail.com>
2023-11-05 03:45:42 -05:00
Ocraftyone d574816aef Add default page selection (#2569)
Add option to change default page
2023-11-02 18:28:13 +08:00
Ocraftyone 06f966e43a Add splash screen toggle (#2568)
Add preferences option to toggle splash screen
2023-11-01 16:47:14 +08:00
f84e94faf7 Add "Manual filament change" option and logic (#2379)
* Add "Manual filament change" option and logic

* make suggested changes

* make suggested changes

* change tag from "CHANGE_TOOL" to "MANUAL_TOOL_CHANGE"

* some tweaks

* More fixes

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
Co-authored-by: SoftFever <103989404+SoftFever@users.noreply.github.com>
2023-10-22 19:31:09 +08:00
OcraftyoneandSoftFever 4d14ee15ce Thumbnail Formats Option Ported from PrusaSlicer and add BIQU/BTT format (#2405)
* Add needed src files and update CMake files

* Implementation of GCodeThumbnailsFormat for PNG, JPG, and QOI complete

* Implement BIQU (Big Tree Tech) Thumbnail Format

* have GCodeProcessor.post_process pass through original line end characters

* fix biqu thumbnail output
use \r\n for new lines in the biqu thumbnail portion. the firmware requires these end characters to function properly.
update names of variables and add comments to be more descriptive
replace modified Qt pixel algorithm with much simpler algorithm from BTT TFT firmware

* rename BiQU to BTT_TFT for better clarity

* remove underscore from GUI option

---------

Co-authored-by: SoftFever <103989404+SoftFever@users.noreply.github.com>
2023-10-17 20:00:38 +08:00
Ocraftyone ee9f651511 Fix M141 S0 at end of gcode (#2328)
* remove hardcoded set chamber temp gcode

* Revert "remove hardcoded set chamber temp gcode"

This reverts commit 8fc1f4a38113087a8fb11901981ca8c9cfdf7777.

* disable heated chamber only if chamber is used/defined
2023-10-05 22:02:15 +08:00
Ocraftyone 709504a2d1 toggle visibility of ironing_pattern on selection of ironing type (#2321)
* toggle visibility of ironing_pattern on selection of ironing type

* add a tooltip to ironing_pattern
2023-10-05 20:14:53 +08:00
Ocraftyone a523979ac3 add ironing angle (#2320) 2023-10-04 22:48:35 +08:00