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 |
|
Joseph Lenox
|
0ae15512fd
|
initial test, see if Travis osx fails too.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
34b7987696
|
Admitting defeat vs: Travis for now
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
3bf2841d3f
|
try one last time to run gui tests on travis
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
870c06e53c
|
Test GUI functions on osx travis until I figure out what is up with linux. Run TestSlic3r on both.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
2861c8aa08
|
use xvfb-run instead of starting it by hand
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
9dcaaf8ef8
|
refactor libslic3r dependencies
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
e7d72c1b2c
|
add all of the library dependencies that Slic3r needs to the test as well.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
464f696f9e
|
Added a test with a tiny bit of meaning (cribbed from wxWidgets tests).
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
0838fbb73d
|
spliced test harness wxApp class from wxWidgets tests
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
6b9891067b
|
start xvfb on osx?
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
fda1023276
|
Build and run tests. Also use correct location for catch header.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
c41c9e1d50
|
Detect if running on Travis
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
9a13cf1238
|
Fetch Catch via cmake instead of clone + own.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
5bcf807909
|
Start building tests with Catch; also use ON/OFF syntax for build options.
testableframe borrowed from wxWidgets tests.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
333a27aada
|
Make xs/gui name correct/consistent
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
310d82ea2b
|
Rename GUI.hpp to xsGUI.hpp
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
c9ed2ca7c3
|
Renaming xs/../GUI.hpp to xsGUI.hpp to avoid conflicts
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
7cbf4b6d5f
|
stubbed out preset editor changes.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
ecdffcc08a
|
Made ui_settings extern.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
b69b47b8e2
|
Last pieces of refactor
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
1209da02d5
|
Fix typo.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
f0adf1c7ab
|
What's that semicolon?!?
|
2018-07-11 22:14:51 -05:00 |
|