61 Commits

Author SHA1 Message Date
Joseph Lenox
9812e6a81c Pass-through apply and a version of apply_only for Slic3r::Configs so that it can be used with shared_ptr versions. 2018-11-18 19:02:56 -06:00
Joseph Lenox
a9bd65a4e9 Add passthroughs for Slic3r::ConfigBase::has and diff 2018-11-18 19:02:56 -06:00
Joseph Lenox
9411f5025d Implemented boolean set and some tests to check those values. 2018-07-25 22:26:04 -05:00
Joseph Lenox
65676215cc added getBool() to Slic3r::Config interface. 2018-07-15 10:24:57 -05:00
Joseph Lenox
846e46a130 Added apply() callthrough method to allow Slic3r::ConfigBase configs to be added to the local DynamicPrintConfig. 2018-07-15 10:18:20 -05:00
Joseph Lenox
9585a3e564 Default to pulling from defaults with get() functions. 2018-07-15 10:12:28 -05:00
Joseph Lenox
70cd35af31 Refactored Slic3r::Config to a composition style instead of direct inheritance of Slic3r::DynamicPrintConfig. 2018-07-14 21:48:22 -05:00
Joseph Lenox
7861037556 Wrote accessor tests and accompanying implementation. 2018-07-12 21:54:10 -05:00
Joseph Lenox
40cedc350c Basic validation for generic numeric types and its test. 2018-07-12 20:21:07 -05:00
Joseph Lenox
2aa97855c8 Fixed some paths and stubbed new_from_ini 2018-07-12 17:32:05 -05:00
Joseph Lenox
c3ff41b0c2 Moved read_ini and write_ini to cpp file, added more comments 2018-07-12 12:08:46 -05:00
Joseph Lenox
ff7ed5bd60 Begin stubbing in Config interface and tests for interface. 2018-07-12 00:14:10 -05:00
Joseph Lenox
5ff201c53f Adjusted functions so that SLIC3RXS and the perl-less builds can live side-by-side. 2018-07-11 22:14:51 -05:00
Joseph Lenox
8ec16388e0 refactored to accept a t_config_option_keys for initializer. 2018-07-11 22:14:51 -05:00
Joseph Lenox
65a1d57d05 Added template function to make getting references to ConfigOptions easier to write. 2018-07-11 22:14:51 -05:00
Joseph Lenox
1de6134101 Used correct inheritance for Config. 2018-07-11 22:14:51 -05:00
Joseph Lenox
eb563be888 Added factory function for new_from_defaults. Stubbed out new_from_cli. 2018-07-11 22:14:51 -05:00
Joseph Lenox
09394eac0a working on higher-level cpp Slic3r::Config that has a similar interface to the old Perl one. 2018-07-11 22:14:51 -05:00
Joseph Lenox
20d588e41f Added CATCH v2.2.2 header 2018-07-11 22:14:51 -05:00
Alessandro Ranellucci
9ddc0ff451 Merge branch 'master' into utf8 2017-05-19 10:47:31 +02:00
Alessandro Ranellucci
31115e0369 Use UTF-8 in libslic3r. Future-proof portable solution for non-ASCII files. #2955 2017-05-18 16:50:50 +02:00
Joseph Lenox
5f6214b645 Expanded comments for config options.
Also fixed tabs->spaces.
2017-05-16 21:56:09 -05:00
Joseph Lenox
28214209f6 Finished converting Config.hpp comments to doxygen 2017-05-16 19:53:38 -05:00
Joseph Lenox
05c2493b0e Converted existing comments to Doxygen format for descriptions. 2017-05-16 19:47:12 -05:00
Alessandro Ranellucci
85f84aa7dc Refactored the config/step invalidation code. Now we can take values into account in order to reduce unneeded recalculation 2017-03-28 17:37:49 +02:00
Alessandro Ranellucci
4ca5f9ee16 Allow dirty presets, and many more improvements including remembering the preset dialog position and closing it with the Esc key 2017-03-22 19:47:23 +01:00
Alessandro Ranellucci
1fadfd6fb8 Merge remote-tracking branch 'origin/master' into gui3
Conflicts:
	lib/Slic3r/GUI.pm
	lib/Slic3r/GUI/Plater.pm
	lib/Slic3r/GUI/PresetEditor.pm
	slic3r.pl
	xs/src/libslic3r/Config.cpp
	xs/src/libslic3r/Config.hpp
2017-03-20 17:00:42 +01:00
Joseph Lenox
35be0eefef Remove boost references from Config.hpp (this does not work on Windows!) 2017-03-18 11:44:06 -05:00
Alessandro Ranellucci
e7c854c919 Ported Config::_handle_legacy() to XS 2017-03-18 11:29:48 +01:00
Alessandro Ranellucci
90395f9394 Complete implementation of read_cli() 2017-03-18 00:48:24 +01:00
Alessandro Ranellucci
5d77c160c6 Changes to the GUI. New preset editor dialog. Option overrides in plater and between configs. More. 2017-03-17 01:22:54 +01:00
Alessandro Ranellucci
4b4a0c8a5c Split external_fill_pattern into top_infill_pattern and bottom_infill_pattern. Retrocompatibile change. #945 2017-03-12 13:01:14 +01:00
Alessandro Ranellucci
871f469c89 Fixed regression in the post_process GUI field. #3698 2017-03-05 16:13:19 +01:00
Alessandro Ranellucci
36e148929b More user-friendly inputs for speed and extrusion width options (explicit "auto" labels instead of having to write 0) 2017-03-05 03:20:39 +01:00
Alessandro Ranellucci
0c63bc0f83 Typo 2016-11-24 17:00:09 +01:00
Alessandro Ranellucci
9c7e4871db Fix conflict in recent merges 2016-11-24 16:20:04 +01:00
bubnikv
4773987b0f Added "Notes" page to the filament configuration.
Added "filament_max_volumetric_speed", a cap on the maximum volumetric
extrusion role, filament specific. This is very useful when mixing
rigid filament with a soft filament.

Extended the import / export of multi-string values into configuration
values, including the test cases. Multi-line strings will be enclosed
into quotes, quotes escaped using a C-style escape sequences. Single
word strings could still be stored without quotes.

Conflicts:

	xs/src/libslic3r/Config.hpp
2016-11-24 15:58:06 +01:00
Joseph Lenox
d9a92bc4dc Code documentation of options and functions for libslic3r internals, ported from Prusa3d fork (written by @bubnikv) 2016-11-21 18:40:44 +01:00
Joseph Lenox
b874915445 Fix/workaround for Boost issues in Config.hpp (#3572)
* Moved new deserialize functions (and their accompanying boost dependencies) into Config.cpp from Config.hpp.

Fixes #3539

* Forgot to save Config.hpp for removal of Boost
2016-11-12 15:30:20 -06:00
Alessandro Ranellucci
68acf19c09 New --scale-to-fit option in slic3r.cpp 2016-10-18 10:22:34 +02:00
Alessandro Ranellucci
1e71f438a1 Gracefully handle non existent options 2016-08-27 19:19:46 +02:00
Alessandro Ranellucci
30139fd647 Port --load and --save to XS 2016-07-17 16:53:37 +02:00
Alessandro Ranellucci
5346894acc New extrude-tin utility 2016-07-12 13:44:37 +02:00
Alessandro Ranellucci
7f2e774584 Removed dependency on TClap 2016-07-03 10:15:46 +02:00
Alessandro Ranellucci
6e5938c833 Fixed return value for deserialize() implementations. #3250 2016-03-13 15:26:52 +01:00
Alessandro Ranellucci
b8f0391934 Fix compilation with GCC 2015-12-18 13:40:57 +01:00
Alessandro Ranellucci
e381100812 More efficient syntax for the PrintConfigDef constructor 2015-12-16 13:09:25 +01:00
Alessandro Ranellucci
3c862836f2 Refactored the Config XS bindings 2015-12-16 12:33:19 +01:00
Alessandro Ranellucci
5cfa36f36e Fix typo #3152 2015-12-08 10:53:57 +01:00
Alessandro Ranellucci
4913e90e10 Remove any Perl related code from libslic3r 2015-12-08 00:39:54 +01:00