4952 Commits

Author SHA1 Message Date
Joseph Lenox
ccba4d6ebf add log function to build strings for vectors 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
17a02a9041 Added generic error message to Log; print error type to console. 2018-07-11 22:14:51 -05:00
Joseph Lenox
58f84f21e6 Fixed arguments for Polygon::new_scale 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
65a1d57d05 Added template function to make getting references to ConfigOptions easier to write. 2018-07-11 22:14:51 -05:00
Joseph Lenox
e4aa624ccb Add static method to create scaled Polygons from Pointf arrays. 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
1ffd57d37a not using var rel because its expansion needs to be fixed in misc_ui.hpp 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
b8c34866f0 fix the startup script to point at the binary. 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
ef9a0871d1 ripped out most of the perl-dependent stuff from Slic3r's archive build script on Linux (do less useless stuff on Travis). 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
Joseph Lenox
e77e3bb683 Overloaded append() to add single ExPolygons (avoids having to create a vector for no purpose) 2018-07-11 22:14:51 -05:00
Joseph Lenox
efedbc6c4e Plater2DObject->PlaterObject 2018-07-11 22:14:51 -05:00
Joseph Lenox
9efe92acaa Added point_to_model_units() and clarified a couple comments. 2018-07-11 22:14:51 -05:00
Joseph Lenox
1ededf8481 added Selected_instance field to Plater2DObject, also added reference to object index to Plater. 2018-07-11 22:14:51 -05:00
Joseph Lenox
dcb5b46bd4 Finished update_bed_size, shuffled LogChannel position in the class.
updated a few comments.
2018-07-11 22:14:51 -05:00
Joseph Lenox
1f5e6ccb67 more work on repaint() event handler. Now draws grid based on bed polygon in config. 2018-07-11 22:14:51 -05:00
Joseph Lenox
71ac9cfba3 Set BackgroundStyle because wxWidgets wants us to. 2018-07-11 22:14:51 -05:00
Joseph Lenox
fd6eec82fd Easter egg: Change Canvas text based on the current date (Sep 13). 2018-07-11 22:14:51 -05:00
Joseph Lenox
2a72485387 Ported scaled_points_to_pixel, made Polygon and Polylines versions. 2018-07-11 22:14:51 -05:00
Joseph Lenox
dd3547c7fb Fixed unscale point->pixel rescale function. 2018-07-11 22:14:51 -05:00
Joseph Lenox
ac92b13e52 scale Pointf array into Points array. 2018-07-11 22:14:51 -05:00
Joseph Lenox
1de6134101 Used correct inheritance for Config. 2018-07-11 22:14:51 -05:00
Joseph Lenox
508ae3ba55 further fleshing out of 2d plater 2018-07-11 22:14:51 -05:00
Joseph Lenox
c3edae8fe4 added warn() to log 2018-07-11 22:14:51 -05:00
Joseph Lenox
2bb202e2ec Set LogChannel for Slic3r::GUI::Plater 2018-07-11 22:14:51 -05:00
Joseph Lenox
4e74249511 Staged the 2D plater on its tab. 2018-07-11 22:14:51 -05:00