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
|
3d52dd53ad
|
YAGNI - sizer-types don't need a passed-in window ID.
|
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
|
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
|
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
|
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
|
dc256eb989
|
Implement tests for on_change and on_kill_focus.
|
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
|
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
|
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 |
|
Joseph Lenox
|
04f5dbe419
|
settings to ui_settings
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
586e911363
|
Cleanup of Settings usage/propagation
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
c97a7cb42b
|
Refactoring Settings store.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
590d66b59b
|
Refactoring Settings store.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
a3d38494f0
|
Cleaning up settings to ui_settings
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
8cf4d5fe40
|
Fix _update() signature.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
991c601d8f
|
Fixed how bitmap was instantiated, forgot a }
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
d4f73ff1aa
|
Fixed some typos, working on getting code to build.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
b12b656bf7
|
Update now takes an argument, added accessor functions to get the type as both a preset enum and integer (index into vector)
Stubbed in more functions.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
4b92bb4ebf
|
Match prototype for add_options_page
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
2f74ea3a44
|
Add GUI.hpp to include list.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
e78d1fe802
|
Stubbed out more functions in PresetEditor
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
6b4b59da74
|
Fixed signatures for on_save_preset and on_value_change function objects.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
ac03e67605
|
Added more functions to PresetEditor interface
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
9650035463
|
Added LogChannel interface function (pure virtual) to PresetEditor
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
21c2e4c58c
|
Moved presets vector to public from private.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
af99159642
|
Quick reference macro to GUI with the cast applied so access is available
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
745a1d6fb3
|
Bring in Preset reference file
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
deba961bf7
|
finished removing local settings in favor of singleton ui_settings
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
ce4330e868
|
Made Preset methods public (as originally intended), added == for wxString and std::string to let std::find behave nicely.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
8933e76719
|
Added comment for prompt_unsaved_changes
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
a7ce242496
|
pages is PresetPage, not wxString
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
ac62b78943
|
Added overriding and overridable options.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
f13fbf3cee
|
Moved to C++14 syntax with string literals.
|
2018-07-11 22:14:51 -05:00 |
|
Joseph Lenox
|
650bcc8c4c
|
Push GUI config/settings store out to a singleton unique_ptr that is instantiated during OnInit.
|
2018-07-11 22:14:51 -05:00 |
|