5691 Commits

Author SHA1 Message Date
Joseph Lenox
a5df41042f Revert "Put build system back the way it was so we don't break things when merging in cppgui stuff"
This reverts commit 961dd6b06fba9ce7f2fd46e52db241e256531f4a.
2018-07-11 22:14:51 -05:00
Joseph Lenox
667af0be2a Put build system back the way it was so we don't break things when merging in cppgui stuff 2018-07-11 22:14:51 -05:00
Joseph Lenox
a3327df92f Add CMAKE option to turn on the gui when building slic3r.cpp (defaults to off) 2018-07-11 22:14:51 -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
2ed48de491 Don't create extra, redundant points in the mesh. 2018-07-11 22:14:51 -05:00
Joseph Lenox
4d6deea6cb Return a moveable copy of the mesh and repair it prior to returning. 2018-07-11 22:14:51 -05:00
Joseph Lenox
0fc288b6d7 Pushed ::slice and ::stats() and ::bb3() into TriangleMesh.
Added more tests to TriangleMesh.
2018-07-11 22:14:51 -05:00
Joseph Lenox
0facb7dcb2 Update pushed to main travis file.
Quiet down wxmac install as well.
2018-07-11 22:14:51 -05:00
Joseph Lenox
093a621187 Make brew louder so that it doesn't trip Travis timeouts. 2018-07-11 22:14:51 -05:00
Joseph Lenox
784437ea7d Be louder about brew update 2018-07-11 22:14:51 -05:00
Joseph Lenox
ff2e2476b3 Derp, it's travis_wait 2018-07-11 22:14:51 -05:00
Joseph Lenox
60e29a4c44 Save the Homebrew cache on OSX 2018-07-11 22:14:51 -05:00
Joseph Lenox
065820a06e extend wait time for setup to 30 minutes 2018-07-11 22:14:51 -05:00
Joseph Lenox
017e3af98d Issue brew update before install. 2018-07-11 22:14:51 -05:00
Joseph Lenox
19c5fa0545 Added more tests for center(), and cut(). Added functions to access functionality (used to be in Perl interface). 2018-07-11 22:14:51 -05:00
Joseph Lenox
21946dc1a1 Implemented some of the tests and additional object code to pass tests.
Using [!mayfail] to indicate that test may fail (so as to not crash build).
2018-07-11 22:14:51 -05:00
Joseph Lenox
83af35b7c4 Give alias for vector of Point3. 2018-07-11 22:14:51 -05:00
Joseph Lenox
c6966c077e Starting to port 01_trianglemesh tests to Catch. 2018-07-11 22:14:51 -05:00
Joseph Lenox
d18b975195 Added tests for trim_zeroes() 2018-07-11 22:14:51 -05:00
Joseph Lenox
9f83da9519 Implemented UI_Point3, fixed tests. 2018-07-11 22:14:51 -05:00
Joseph Lenox
4fa9f5ee2a use make_tuple instead of make_pair 2018-07-11 22:14:51 -05:00
Joseph Lenox
9dc4343029 Move trim_zeroes to misc_ui 2018-07-11 22:14:51 -05:00
Joseph Lenox
e66cda51bf Add get_point3 to interface; add I/O 2018-07-11 22:14:51 -05:00
Joseph Lenox
fbdccb0c96 Fix a typo in description. 2018-07-11 22:14:51 -05:00
Joseph Lenox
3d52dd53ad YAGNI - sizer-types don't need a passed-in window ID. 2018-07-11 22:14:51 -05:00
Joseph Lenox
e337c5ad89 Test setting a 2D Point from a 3D point (narrowing, remove Z coordinate) and using get_point3 on a 2D point. 2018-07-11 22:14:51 -05:00
Joseph Lenox
d78b386135 Added Point3 tests. 2018-07-11 22:14:51 -05:00
Joseph Lenox
d612bf02a4 C++11/14 code cleanup: NULL to nullptr for default_value options. 2018-07-11 22:14:51 -05:00
Joseph Lenox
a16bb63821 Refactored to push up the common items into UI_Field and have separate UI_Window and UI_Sizer. UI_Sizers should not set window and vice-versa. 2018-07-11 22:14:51 -05:00
Joseph Lenox
8077100658 UI_Point is 4 items in a single sizer.
Implemented the draw code for the sizer as well.
2018-07-11 22:14:51 -05:00
Joseph Lenox
c2c80ecd92 Adding event handling for on_change and on_kill_focus 2018-07-11 22:14:51 -05:00
Joseph Lenox
e4fd688c78 Split on ; token instead of trying to capture submatches. 2018-07-11 22:14:51 -05:00
Joseph Lenox
1d63925bda Actually test event receipt properly. 2018-07-11 22:14:51 -05:00
Joseph Lenox
2c7b39f0fd Partially implemented UI_Point. Tests do not all pass (set_value is inserting garbage when a serialized string is passed in). 2018-07-11 22:14:51 -05:00
Joseph Lenox
04bc767421 Added Pointf equality operator (scales for comparison). 2018-07-11 22:14:51 -05:00
Joseph Lenox
4d6188e0d1 Moved implementation of most UI_Choice methods into its own file. 2018-07-11 22:14:51 -05:00
Joseph Lenox
14fc049c6f Forgot to add a destructor to UI_Choice. 2018-07-11 22:14:51 -05:00
Joseph Lenox
4cb2930b54 Comment for parent cache. 2018-07-11 22:14:51 -05:00
Joseph Lenox
e8bb3f7e37 Added NumericChoice implementation along with tests.
Also added get_double() to interface.
2018-07-11 22:14:51 -05:00
Joseph Lenox
dea6896c8e Implemented UI_Choice (a combobox) with tests. 2018-07-11 22:14:51 -05:00
Joseph Lenox
880b17703d all tests pass 2018-07-11 22:14:51 -05:00
Joseph Lenox
20d3f69982 Trigger on_change when focus is lost for Spinctrls and textctrls. 2018-07-11 22:14:51 -05:00
Joseph Lenox
3b938d13b7 Fixed destructors for wxwidget objects, moved on_change to the derived objects.
Added test and initial implementation for textctrl
2018-07-11 22:14:51 -05:00
Joseph Lenox
e13eb18455 Implemented UI_SpinCtrl and refactored common components to UI_Window. Added tests.
Replaced click tests in UI_Checkbox with event pushes.
2018-07-11 22:14:51 -05:00
Joseph Lenox
dbff12c4e0 Further implementation of UI_Checkbox, tying it to a Slic3r::ConfigOptionDef.
Implemented (with tests) mechanisms for enable/disable and the on_change and on_kill_focus widgets.

Implemented set_value with boost::any.
2018-07-11 22:14:51 -05:00
Joseph Lenox
30b5635068 Add utils to build and disable perl-only includes. 2018-07-11 22:14:51 -05:00
Joseph Lenox
9a38d96dd4 Provide an alternate use for confess_at to call Slic3r::Log instead of perl xs. 2018-07-11 22:14:51 -05:00
Joseph Lenox
dc256eb989 Implement tests for on_change and on_kill_focus. 2018-07-11 22:14:51 -05:00
Joseph Lenox
8d352aed1c added back in tests to test disable_change_event 2018-07-11 22:14:51 -05:00
Joseph Lenox
97793d2269 Don't run gui tests on build server for now. 2018-07-11 22:14:51 -05:00