188 Commits

Author SHA1 Message Date
Joseph Lenox
f4a90f6742 remember to add the prototype for make_thumbnail 2018-07-11 22:14:51 -05:00
Joseph Lenox
e37ce981e7 be more specific about what is getting used. 2018-07-11 22:14:51 -05:00
Joseph Lenox
d1bc99f514 Get access to LOG_WSTRING. 2018-07-11 22:14:51 -05:00
Joseph Lenox
02a932a3a6 Fixed inverted logic; abort if there aren't any transformed thumbnails. 2018-07-11 22:14:51 -05:00
Joseph Lenox
4c1922a943 Add LogChannel designation as a protected member. 2018-07-11 22:14:51 -05:00
Joseph Lenox
462fe51ffb Pass bool when we mean bool, not int. 2018-07-11 22:14:51 -05:00
Joseph Lenox
053fe2b9ed Being more specific about units. 2018-07-11 22:14:51 -05:00
Joseph Lenox
03b6402d8a Work on shared::ptr of Model instead of trying to be clever. 2018-07-11 22:14:51 -05:00
Joseph Lenox
2a01efbf81 Make update_bed_size() public. 2018-07-11 22:14:51 -05:00
Joseph Lenox
e880d9d3ee Actually unscale instead of doing silly things. 2018-07-11 22:14:51 -05:00
Joseph Lenox
bb9ce8dd6f call update_bed_size during instantiation 2018-07-11 22:14:51 -05:00
Joseph Lenox
59af3c8a86 Stub out more of the sizers so people implementing can see their work immediately. 2018-07-11 22:14:51 -05:00
Joseph Lenox
c720619382 avoid magic numbers 2018-07-11 22:14:51 -05:00
Joseph Lenox
cacaa365c3 Added make_thumbnail and on_thumbnail_made 2018-07-11 22:14:51 -05:00
Joseph Lenox
6741a6cc0a Added canvas refresh utility function. Additional previews/canvases should update here. 2018-07-11 22:14:51 -05:00
Joseph Lenox
4cb35029a3 stubbed in constant for turning on/off threading (mostly to reduce complexity when testing feature code) 2018-07-11 22:14:51 -05:00
Joseph Lenox
deb0cfb273 Added bare-bones stubs for 3D plater and 3D preview. 2018-07-11 22:14:51 -05:00
Joseph Lenox
816910f7be Stubbed out the different draw brushes being set; flattened loops slightly and posted a note 2018-07-11 22:14:51 -05:00
Joseph Lenox
c6d0536268 Remember to put the event skip in during repaint. 2018-07-11 22:14:51 -05:00
Joseph Lenox
f3d128e9c2 Started work on component to draw thumbnails from repaint() method. 2018-07-11 22:14:51 -05:00
Joseph Lenox
6f3f231cb9 Ported clean_instance_thumbnails 2018-07-11 22:14:51 -05:00
Joseph Lenox
bbbe7e7560 Use std::string internally instead of wxString. 2018-07-11 22:14:51 -05:00
Joseph Lenox
8ba681538d Use .at() instead of [] because that'll throw an exception if out of bounds instead of a hard-to-find memory crash. 2018-07-11 22:14:51 -05:00
Joseph Lenox
3d57da105d Remember that std::vector<>.size() needs to be offset by 1 if it's being used to find the last index. 2018-07-11 22:14:51 -05:00
Joseph Lenox
a559c57a81 Avoid using wxString Printf, instead use Format() and use wxRealPoint (floating point) instead of wxPoint (integer) 2018-07-11 22:14:51 -05:00
Joseph Lenox
97cb562890 Implemented load_model_objects, fleshed out add() more.
Implemented bed_centerf().
2018-07-11 22:14:51 -05:00
Joseph Lenox
2a41f8afd1 Add macro to take advantage of wxString << 2018-07-11 22:14:51 -05:00
Joseph Lenox
2e404c5b36 Changed identifier type to size_t (needs to be numerical to do math on it) 2018-07-11 22:14:51 -05:00
Joseph Lenox
facf46f790 Remember to actually set the sizer. 2018-07-11 22:14:51 -05:00
Joseph Lenox
1bf2be568c Stubbed restore_window_pos 2018-07-11 22:14:51 -05:00
Joseph Lenox
c6696782b6 sorted GUI files 2018-07-11 22:14:51 -05:00
Joseph Lenox
1e8655bf24 Finished implementing ProgressStatusBar class 2018-07-11 22:14:51 -05:00
Joseph Lenox
d9e4b2f246 Set compile configuration variables if they are in the environment for the path to slic3r var dir 2018-07-11 22:14:51 -05:00
Joseph Lenox
7bed1fcfb1 Look for static wxwidgets and static boost if SLIC3R_STATIC is defined. 2018-07-11 22:14:51 -05:00
Joseph Lenox
4bf2a7d3dc Fleshed out a StartBusy() function and moved Run to be public.
Also added functional as a header.
2018-07-11 22:14:51 -05:00
Joseph Lenox
5b13c5a134 stubbed out Plater::select_object() and uncommented its use in a lambda being assigned to on_select_object. 2018-07-11 22:14:51 -05:00
Joseph Lenox
7391103a0b removed commented Perl code from MainFrame 2018-07-11 22:14:51 -05:00
Joseph Lenox
a37117113e Implemented ProgressStatusBar 2018-07-11 22:14:51 -05:00
Joseph Lenox
c9e831b68c Handle wxEVT_WINDOW_CLOSE 2018-07-11 22:14:51 -05:00
Joseph Lenox
4e22bb3caf Properly pull slic3r version string from libslic3r 2018-07-11 22:14:51 -05:00
Joseph Lenox
140c195da5 Stubbed out save_window_pos 2018-07-11 22:14:51 -05:00
Joseph Lenox
67451c03b5 Moved statusbar up to public (allow children to manipulate the statusbar) 2018-07-11 22:14:51 -05:00
Joseph Lenox
97961812f5 stubbed in load_model_objects, load_file should be implemented now. 2018-07-11 22:14:51 -05:00
Joseph Lenox
547206aa4f Initial load status bar, apparently layout broke for plater. 2018-07-11 22:14:51 -05:00
Joseph Lenox
121f467251 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-07-11 22:14:51 -05:00
Joseph Lenox
a63b3e559b added file filters to add dialog 2018-07-11 22:14:51 -05:00
Joseph Lenox
404618ecca Stubbed out load_file, some work on add to call load_file().
Added some comments for canvas2D.
2018-07-11 22:14:51 -05:00
Joseph Lenox
224f25172d partially implemented open_model as a free function in misc_ui. Initial dir and the file patterns are not implemented yet. 2018-07-11 22:14:51 -05:00
Joseph Lenox
55a8f548ca Stubbed out mouse events for left up/down/dclick. 2018-07-11 22:14:51 -05:00
Joseph Lenox
3f18687916 Implemented make_thumbnail and transform_thumbnail; neither is tested yet. 2018-07-11 22:14:51 -05:00