Commit Graph

863 Commits

Author SHA1 Message Date
Alessandro Ranellucci
7e34244b05 Refactored configuration handling.
Slic3r::Config is now an object. Multiple partial config objects are used throughout the codebase as local repositories, then merged and serialized when necessary.
2012-07-27 21:16:11 +02:00
Henrik Brix Andersen
f0579e59bd Include timestamp in .ini files 2012-07-27 14:33:14 +02:00
Henrik Brix Andersen
9f719d42bc Include preset name in confirmation dialog 2012-07-27 14:11:04 +02:00
Henrik Brix Andersen
9e1308c03f Ask for confirmation when deselecting a dirty preset. 2012-07-27 13:57:58 +02:00
Henrik Brix Andersen
848784ad95 Clear dirty when deleting preset. 2012-07-27 13:56:52 +02:00
Henrik Brix Andersen
40f1176346 Be careful not to change the current selection when working around http://trac.wxwidgets.org/ticket/13769 2012-07-27 13:54:45 +02:00
Henrik Brix Andersen
1cc0a79188 Allow the list and buttons to expand upon window resize 2012-07-26 16:50:57 +02:00
Henrik Brix Andersen
7b06255dca Center preset buttons 2012-07-26 16:48:28 +02:00
Henrik Brix Andersen
63e8299f14 Eliminate single-item wxSizer. 2012-07-26 16:41:22 +02:00
Henrik Brix Andersen
85603c1981 Highlight the dragged object. 2012-07-25 10:06:45 +02:00
Henrik Brix Andersen
affaee415b Reset mouse cursor on button up event. 2012-07-25 00:51:41 +02:00
Henrik Brix Andersen
5502537065 Change cursor when hoovering over a movable object. 2012-07-25 00:15:32 +02:00
Henrik Brix Andersen
e02ee17247 Respect multiline option flag. #559 2012-07-24 20:16:34 +02:00
Henrik Brix Andersen
0e6d6a9695 Force sane TAB key order on buttons in GridSizer. 2012-07-24 18:21:02 +02:00
Alessandro Ranellucci
1d364d7823 Refactor OptionsGroup to decouple it from the config repository, add ConfigOptionsGroup 2012-07-24 15:33:11 +02:00
Henrik Brix Andersen
09a222f8b2 Reshuffle code a bit to preserve TAB key order between toolbar and listctrl. 2012-07-24 14:42:38 +02:00
Henrik Brix Andersen
44f3b7d2b5 Allow TAB key navigation of controls. 2012-07-24 14:28:21 +02:00
Henrik Brix Andersen
0b0e531661 Use more generic EVT_KEY_DOWN(). 2012-07-24 14:17:10 +02:00
Henrik Brix Andersen
4bee713579 Add menuitems with keyboard shortcuts to quickly navigate between tabs. 2012-07-24 12:59:02 +02:00
Henrik Brix Andersen
4dc41d2ca3 Intercept TAB key events in the wxTreeCtrl and generate a wxNavigationKeyEvent. 2012-07-24 12:42:58 +02:00
Henrik Brix Andersen
69e075df82 Hidden Sizer items does not take up space, simply show/hide pages instead of removing/adding them. 2012-07-24 12:41:51 +02:00
Henrik Brix Andersen
642bb336eb Add the page before showing it. 2012-07-24 00:34:57 +02:00
Henrik Brix Andersen
37667d87ce Use Wx::Sizer::Detach() instead of Wx::Sizer::Remove() 2012-07-24 00:34:07 +02:00
Alessandro Ranellucci
ea604384dd Typo 2012-07-23 17:56:20 +02:00
Alessandro Ranellucci
ba475cae45 Fixed fatal error introduced after recent refactoring 2012-07-23 17:52:02 +02:00
Henrik Brix Andersen
6f6fb22657 Add menu item hints 2012-07-23 16:31:16 +02:00
Henrik Brix Andersen
ab9ffe9c19 Expose --external-perimeter-speed in the GUI. #556 2012-07-23 09:43:59 +02:00
Alessandro Ranellucci
67b415a2b3 Remove almost duplicated logic for small infill regions detection 2012-07-22 21:06:19 +02:00
Alessandro Ranellucci
144a704e3b Remove all id() and ordered_id() methods 2012-07-22 21:00:02 +02:00
Alessandro Ranellucci
1d04e15b63 Refactor/clean up. Merge remove_small_surfaces() into prepare_fill_surfaces(), rename infill_every_layers() to combine_infill(), remove $layer->fill_boundaries, initialize layer properties explicitely for clarity. 2012-07-22 21:00:02 +02:00
Henrik Brix Andersen
a5d683a9b9 Retire unused class variable 'fields'. 2012-07-22 15:23:42 +02:00
Henrik Brix Andersen
9486a629b3 Fix speling. 2012-07-22 15:06:56 +02:00
Alessandro Ranellucci
3edf42e98e Little workflow simplification 2012-07-21 15:53:38 +02:00
Alessandro Ranellucci
c7bc9bed46 Workaround for a perl 5.10 bug about leaked scalars. #503 2012-07-21 14:45:45 +02:00
Alessandro Ranellucci
f899deb6b6 Prevent internal infill at all when fill density is set to zero. #545 2012-07-21 14:41:21 +02:00
Alessandro Ranellucci
1fdbd2c0e1 Suggest repair in non-manifold warning 2012-07-21 12:07:02 +02:00
Alessandro Ranellucci
bce2663ed8 Restore thin walls and thin fills after last commit 2012-07-20 15:02:25 +02:00
Alessandro Ranellucci
e71472e5d7 Remove debugging statements 2012-07-20 14:41:27 +02:00
Alessandro Ranellucci
1697cb24a6 Memory optimization and code cleanup. Don't keep deserialized paths 2012-07-20 14:39:56 +02:00
Henrik Brix Andersen
52fb02f29d Turn nozzle count printf into debugf statement 2012-07-19 23:31:47 +02:00
Henrik Brix Andersen
35e6420ff5 Make the configuration wizard work on the first extruder. 2012-07-19 22:56:38 +02:00
Alessandro Ranellucci
30a2213fd9 Some multi-extruder options in GUI 2012-07-18 20:44:36 +02:00
Henrik Brix Andersen
9137a6b41e Queue a repaint when changing options page, fixes repaint issue on wxMSW. 2012-07-18 19:19:07 +02:00
Alessandro Ranellucci
b861560c71 Fix tooltips about extrusion widths 2012-07-18 18:16:27 +02:00
Alessandro Ranellucci
2495a77c0f Add to GUI the setting for support material extrusion width. Also, populate %Groups with new options 2012-07-18 18:15:18 +02:00
Alessandro Ranellucci
b209eab712 Bugfix: the delete button was deleting the wrong preset 2012-07-18 16:17:23 +02:00
Alessandro Ranellucci
f173096a6c Merge branch 'new-gui'
Conflicts:
	lib/Slic3r.pm
	lib/Slic3r/Config.pm
	lib/Slic3r/GUI/OptionsGroup.pm
	lib/Slic3r/GUI/SkeinPanel.pm
	lib/Slic3r/Print.pm
2012-07-18 15:48:04 +02:00
Alessandro Ranellucci
2d17a94a38 Prevent the left treectrl to grow if preset names are too long 2012-07-18 12:00:19 +02:00
Alessandro Ranellucci
42034ecb40 Autosize the main frame to workaround inconsistencies among wxGTK setups 2012-07-18 11:55:26 +02:00
Henrik Brix Andersen
fd88c164d2 Move Repeat Last Quick Slice below other Quick Slice items since it works for both. 2012-07-17 23:54:30 +02:00
Henrik Brix Andersen
a8d5ee3a74 Only enable Repeat Last Quick Slice menu item after the first quick slice. 2012-07-17 23:53:16 +02:00
Henrik Brix Andersen
c25a31ef98 Avoid SVG slicing interfering with repeating last quick slice. 2012-07-17 23:51:57 +02:00
Henrik Brix Andersen
bd16366d62 Default to "No" when prompting about discarding unsaved changes. 2012-07-17 23:24:21 +02:00
Henrik Brix Andersen
82cfc7c3d6 Check for unsaved presets before interactively loading an existing config file. 2012-07-17 23:16:58 +02:00
Henrik Brix Andersen
de47f5fe72 Use default desktop notification timeout. 2012-07-17 15:38:53 +02:00
Ryan Voots
19f4036d8a Time here is in milliseconds, setting it to 1500 to make it stay for at least 1.5 seconds. 2012-07-16 19:04:25 -04:00
Henrik Brix Andersen
3690b0798e Use Net::DBus instead of Gtk2::Notify due to less dependencies; recommended by @beanz. 2012-07-16 23:43:09 +02:00
Henrik Brix Andersen
095607a166 Remove excessive line breaks 2012-07-16 23:09:55 +02:00
Henrik Brix Andersen
99845955b3 Add support for libnotify notifications. 2012-07-16 22:37:31 +02:00
Henrik Brix Andersen
5d2fd17715 Use constants for menu item IDs. 2012-07-16 20:57:10 +02:00
Henrik Brix Andersen
e80d2813ed Add keyboard shortcut for SVG slicing. 2012-07-16 19:23:51 +02:00
Henrik Brix Andersen
225414724c Add keyboard accelerators to menus. 2012-07-16 19:13:35 +02:00
Henrik Brix Andersen
a6da019fc6 Adhere to various human interface guidelines. 2012-07-16 18:34:44 +02:00
Henrik Brix Andersen
fda21bd6f2 Only set $last_skein_dir from Plater, not $last_skein_file, to avoid interfering with Quick Slice. 2012-07-16 00:28:15 +02:00
Henrik Brix Andersen
b24e0370dd Remove unused argument. 2012-07-15 23:59:50 +02:00
Henrik Brix Andersen
da7a668c94 Remove confirmation dialog on plate slicing done, request user attention instead. #537 2012-07-15 23:57:31 +02:00
Henrik Brix Andersen
a2a35f47f6 Convert Slic3r::GUI::notify() from class method to instance method. 2012-07-15 23:36:18 +02:00
Henrik Brix Andersen
9f3031a069 Remove Quick Slice button, move update text to statusbar. 2012-07-15 23:06:07 +02:00
Henrik Brix Andersen
102aea4531 Sync message dialog title with SkeinPanel.pm changes. 2012-07-15 22:53:32 +02:00
Henrik Brix Andersen
c35b57fb0b Add spacer for correctly aligning top text under wxGTK. 2012-07-15 22:44:52 +02:00
Henrik Brix Andersen
e01b20ec8e Add shortcuts keys for often used menu items. 2012-07-15 22:38:58 +02:00
Henrik Brix Andersen
5ef495a601 Improve repeated quick slice menu item text 2012-07-15 22:28:05 +02:00
Henrik Brix Andersen
314772b314 Improve message dialog texts a bit. 2012-07-15 22:25:04 +02:00
Henrik Brix Andersen
8042d5d701 Add borders to toolbar and list view. 2012-07-15 22:14:34 +02:00
Henrik Brix Andersen
0ab7e7ad7f Show icons above text in toolbar. 2012-07-15 20:11:49 +02:00
Henrik Brix Andersen
bd77c33919 Add sunken border to tree controls. 2012-07-15 20:05:57 +02:00
Alessandro Ranellucci
1c6789e042 Remove duplicate_mode from options list 2012-07-15 19:36:56 +02:00
Alessandro Ranellucci
23fd8de1f5 Warn user if supplied preset name is not valid 2012-07-15 18:55:01 +02:00
Alessandro Ranellucci
b37a77ee63 Apply command line options to GUI 2012-07-15 18:37:00 +02:00
Alessandro Ranellucci
9210c708fc Compatibility with --load and new GUI 2012-07-15 17:55:58 +02:00
Henrik Brix Andersen
e228b834e2 Retire the 'important' flag for options now that we have a configuration wizard. 2012-07-15 16:37:59 +02:00
Alessandro Ranellucci
0aa3cc230f Merge branch 'new-flow' 2012-07-14 21:40:57 +02:00
Henrik Brix Andersen
4a94c64f7d Silence warning by importing Wx::Print before Wx::Html 2012-07-14 11:58:58 +02:00
Henrik Brix Andersen
57316a4ffa Add custom about dialog. 2012-07-13 23:46:39 +02:00
Alessandro Ranellucci
e703e78504 A typo caused no newline after Tn. #530 2012-07-11 21:48:30 +02:00
Henrik Brix Andersen
500e44f8ea Reposition of Slic3r::GUI::ProgressStatusBar fields are only needed in ::OnSize() 2012-07-11 16:55:47 +02:00
Henrik Brix Andersen
5e5dc02016 Add menu item shortcut for http://slic3r.org/ 2012-07-11 16:31:17 +02:00
Henrik Brix Andersen
772ee033e0 Remove dead code. 2012-07-10 23:17:03 +02:00
Henrik Brix Andersen
025c3a1b07 Fix statusbar cancel button size on wxGTK. #431 2012-07-10 23:09:11 +02:00
Alessandro Ranellucci
079f6072a6 Use M109 P1 for Teacup 2012-07-10 19:31:09 +02:00
Henrik Brix Andersen
c144afe52b Allow specifying --first-layer-height without leading zero. #518 2012-07-08 23:02:40 +02:00
Henrik Brix Andersen
37a4967883 Remove dead code. 2012-07-08 22:43:52 +02:00
Henrik Brix Andersen
023e7254c7 Make reports of time spent on slicing more user-friendly. 2012-07-08 22:16:46 +02:00
Henrik Brix Andersen
cd7ea418e2 Fix background logo on wxMSW.
Wx::StaticText + Wx::StaticBitmap does not support transparent backgrounds on wxMSW; fixed by using a custom paint routine instead.
2012-07-08 19:41:13 +02:00
Henrik Brix Andersen
0266729635 Merge branch 'master' into new-flow 2012-07-06 22:10:47 +02:00
Henrik Brix Andersen
9f4444a7d4 Add missing sprintf spotted by olasd
Fixes 3c00573805
2012-07-06 22:09:17 +02:00
Alessandro Ranellucci
4f6934bab8 Merge branch 'master' into new-flow 2012-07-06 20:06:09 +02:00
Alessandro Ranellucci
3c00573805 Reset E and compensate retraction after changing extruder 2012-07-06 19:57:58 +02:00
Alessandro Ranellucci
96574e601f Infill flow wasn't adjusted for non-solid surfaces 2012-07-05 10:34:02 +02:00
Alessandro Ranellucci
7656167a0a Infill flow wasn't adjusted for non-solid surfaces 2012-07-05 10:32:29 +02:00