58 Commits

Author SHA1 Message Date
Joseph Lenox
b541bc208f Avoid using wxString Printf, instead use Format() and use wxRealPoint (floating point) instead of wxPoint (integer) 2018-05-06 17:55:59 -05:00
Joseph Lenox
904e7d749e Implemented load_model_objects, fleshed out add() more.
Implemented bed_centerf().
2018-05-05 17:37:13 -05:00
Joseph Lenox
b0d552ce4e Add macro to take advantage of wxString << 2018-05-05 17:35:28 -05:00
Joseph Lenox
2c2ad2c992 Changed identifier type to size_t (needs to be numerical to do math on it) 2018-05-05 16:13:58 -05:00
Joseph Lenox
2b91524619 Remember to actually set the sizer. 2018-05-05 12:57:31 -05:00
Joseph Lenox
91edf908f2 Stubbed restore_window_pos 2018-05-05 12:56:24 -05:00
Joseph Lenox
0af528845c Finished implementing ProgressStatusBar class 2018-05-05 12:48:24 -05:00
Joseph Lenox
ea94cb7506 Fleshed out a StartBusy() function and moved Run to be public.
Also added functional as a header.
2018-05-04 23:20:03 -05:00
Joseph Lenox
9235a52dce stubbed out Plater::select_object() and uncommented its use in a lambda being assigned to on_select_object. 2018-05-04 22:47:49 -05:00
Joseph Lenox
e2fdb00bb0 removed commented Perl code from MainFrame 2018-05-04 22:47:06 -05:00
Joseph Lenox
c012ea6a00 Implemented ProgressStatusBar 2018-05-04 22:46:50 -05:00
Joseph Lenox
85bfd86bb3 Handle wxEVT_WINDOW_CLOSE 2018-05-04 22:39:28 -05:00
Joseph Lenox
c68cadbefa Properly pull slic3r version string from libslic3r 2018-05-04 22:39:03 -05:00
Joseph Lenox
e263ca2b38 Stubbed out save_window_pos 2018-05-04 22:35:20 -05:00
Joseph Lenox
2bab9f27e1 Moved statusbar up to public (allow children to manipulate the statusbar) 2018-05-03 07:55:41 -05:00
Joseph Lenox
33d2232f09 stubbed in load_model_objects, load_file should be implemented now. 2018-05-02 22:51:08 -05:00
Joseph Lenox
131e6d8d8d Initial load status bar, apparently layout broke for plater. 2018-05-02 22:50:22 -05:00
Joseph Lenox
434fc0aa2e Define new event to post status text messages to a status bar; meant for child items to post information to the status bar that propagate up 2018-05-02 22:49:54 -05:00
Joseph Lenox
4d9d2c88dc added file filters to add dialog 2018-05-02 16:16:19 -05:00
Joseph Lenox
ff1fa38b31 Stubbed out load_file, some work on add to call load_file().
Added some comments for canvas2D.
2018-05-01 22:51:07 -05:00
Joseph Lenox
3b17844fba partially implemented open_model as a free function in misc_ui. Initial dir and the file patterns are not implemented yet. 2018-05-01 22:50:10 -05:00
Joseph Lenox
a998324962 Stubbed out mouse events for left up/down/dclick. 2018-05-01 22:32:42 -05:00
Joseph Lenox
76b86c807b Implemented make_thumbnail and transform_thumbnail; neither is tested yet. 2018-05-01 22:32:09 -05:00
Joseph Lenox
5f405b60e9 Plater2DObject->PlaterObject 2018-05-01 21:51:28 -05:00
Joseph Lenox
14097656e9 Added point_to_model_units() and clarified a couple comments. 2018-04-30 23:38:12 -05:00
Joseph Lenox
7afbb6978a added Selected_instance field to Plater2DObject, also added reference to object index to Plater. 2018-04-30 22:34:30 -05:00
Joseph Lenox
352183131a Finished update_bed_size, shuffled LogChannel position in the class.
updated a few comments.
2018-04-30 22:33:54 -05:00
Joseph Lenox
2116dfa178 more work on repaint() event handler. Now draws grid based on bed polygon in config. 2018-04-30 22:22:36 -05:00
Joseph Lenox
fb3250997b Set BackgroundStyle because wxWidgets wants us to. 2018-04-30 22:18:53 -05:00
Joseph Lenox
953977be4b Easter egg: Change Canvas text based on the current date (Sep 13). 2018-04-30 22:18:17 -05:00
Joseph Lenox
aef1bf7f37 Ported scaled_points_to_pixel, made Polygon and Polylines versions. 2018-04-30 22:17:42 -05:00
Joseph Lenox
456212918f Fixed unscale point->pixel rescale function. 2018-04-30 22:16:50 -05:00
Joseph Lenox
4eec78e1bf further fleshing out of 2d plater 2018-04-29 22:50:06 -05:00
Joseph Lenox
0a963ea0df Set LogChannel for Slic3r::GUI::Plater 2018-04-29 18:03:13 -05:00
Joseph Lenox
1548066318 Staged the 2D plater on its tab. 2018-04-29 18:02:48 -05:00
Joseph Lenox
7126d13850 Push Settings down so it's available to the plater (for color choices, etc). 2018-04-29 14:40:15 -05:00
Joseph Lenox
197b4f265f Stubbed out Solarized, added ColorScheme for default (needed for plater) 2018-04-29 14:39:44 -05:00
Joseph Lenox
d07aaa87fd Further implementation of Plater and Plater2D. 2018-04-29 12:16:31 -05:00
Joseph Lenox
48b13aa1c7 Stubbed Plater constructor. 2018-04-29 10:13:39 -05:00
Joseph Lenox
31ed51de00 added descriptive comment to GUI 2018-04-29 10:13:00 -05:00
Joseph Lenox
72703ca0e8 Added menu mechanism to load 3d models. 2018-04-28 23:39:00 -05:00
Joseph Lenox
ce77ade904 Added handling to deal with if the lambda function passed in is a nullptr type. 2018-04-28 23:38:27 -05:00
Joseph Lenox
c2d10aeeed Moved plater stubs to its own cpp 2018-04-28 23:37:27 -05:00
Joseph Lenox
87b3f9582e Ensure unknown revision still works. 2018-04-28 23:13:12 -05:00
Joseph Lenox
8fb78ca5d7 Spit out the result of git rev-parse --short HEAD in AboutDialog. 2018-04-28 21:40:37 -05:00
Joseph Lenox
ac24ab827e Add AboutDialog to GUI and menu. 2018-04-28 20:53:49 -05:00
Joseph Lenox
47354beacc Added stdexcept include, convert VAR_ABS_PATH and VAR_REL to wxStrings. 2018-04-28 18:53:14 -05:00
Joseph Lenox
c0d8e68606 working on higher-level cpp Slic3r::Config that has a similar interface to the old Perl one. 2018-04-28 18:18:10 -05:00
Joseph Lenox
d24001b92d Check for datadir in OnInit(). 2018-04-28 18:17:10 -05:00
Joseph Lenox
399db5902c More misc functions (used to live as static functions in Slic3r::GUI perl file).
Passing -DVAR_ABS and -DVAR_ABS_PATH=/path/to/slic3r/var on compile redirects where Slic3r expects to find its var directory.
2018-04-28 18:15:16 -05:00