150 Commits

Author SHA1 Message Date
Joseph Lenox
f68231cdd9 Still playing with solarized, better setup (private constants with public functions) 2018-07-11 22:14:51 -05:00
Joseph Lenox
106c81a130 Implemented center_selected_object_on_bed and set_number_of_copies 2018-07-11 22:14:51 -05:00
Joseph Lenox
726dc9f4dc Implement more of Object menu 2018-07-11 22:14:51 -05:00
Joseph Lenox
5d57024a45 gcc please don't treat that as an initializer list. :( 2018-07-11 22:14:51 -05:00
Joseph Lenox
f3eceb72b0 Implement generic object rotation in all 3 axes with a slider and box. 2018-07-11 22:14:51 -05:00
Joseph Lenox
af4363f6e8 Implemented general rotate function for supplied function. 2018-07-11 22:14:51 -05:00
Joseph Lenox
c30901adf6 Reorganize includes 2018-07-11 22:14:51 -05:00
Joseph Lenox
2b933efa8e Moved AboutDialog into Dialogs subdir. 2018-07-11 22:14:51 -05:00
Joseph Lenox
520b2551a1 actually do functions right 2018-07-11 22:14:51 -05:00
Joseph Lenox
ea7a4e380b okay, you win this time clang 2018-07-11 22:14:51 -05:00
Joseph Lenox
e0f0e714ce fix signature 2018-07-11 22:14:51 -05:00
Joseph Lenox
212e2af210 Convert colors to base-255 2018-07-11 22:14:51 -05:00
Joseph Lenox
ffd838f3ba Fix assignment to not use copy constructor 2018-07-11 22:14:51 -05:00
Joseph Lenox
314cc26f27 Don't leak memory on the dc 2018-07-11 22:14:51 -05:00
Joseph Lenox
7190759d9e compiler misinterprets as initializer list -.- 2018-07-11 22:14:51 -05:00
Joseph Lenox
7fcf9b65ed Avoid gcc interpreting things as initializer lists. 2018-07-11 22:14:51 -05:00
Joseph Lenox
28881f8741 put the dc on the stack so it gets destroyed instead of on the heap. 2018-07-11 22:14:51 -05:00
Joseph Lenox
41648ef7e2 call Realize() function on toolbar. 2018-07-11 22:14:51 -05:00
Joseph Lenox
5cdc039d9f Abort arrange if no objects in plater. 2018-07-11 22:14:51 -05:00
Joseph Lenox
2357565e9f Stubbed undo ops for increase/decrease. 2018-07-11 22:14:51 -05:00
Joseph Lenox
5b29eea6d4 Add loaded objects to the Slic3r::Print reference. 2018-07-11 22:14:51 -05:00
Joseph Lenox
50345c3412 Implemented increase/decrease for instances. 2018-07-11 22:14:51 -05:00
Joseph Lenox
035ce47c4e Removed useless tooltip id 2018-07-11 22:14:51 -05:00
Joseph Lenox
d56ce183a4 Stubbed out toolbar with calling functions; Add, Delete, and Delete All work.
Plater object got a move constructor.
2018-07-11 22:14:51 -05:00
Joseph Lenox
b39edcde3f Stubbed out toolbar button graphics. 2018-07-11 22:14:51 -05:00
Joseph Lenox
2bdf87b926 Cleaned up header for Plate2D.hpp; added comments. 2018-07-11 22:14:51 -05:00
Joseph Lenox
8597ec9511 Forgot to check in a } 2018-07-11 22:14:51 -05:00
Joseph Lenox
471983d63a Draw skirt on 2D plater. 2018-07-11 22:14:51 -05:00
Joseph Lenox
0726e896ce Draw clearance area if necessary. 2018-07-11 22:14:51 -05:00
Joseph Lenox
50f1b40fa2 Implemented keyboard nudge in 2D plater. 2018-07-11 22:14:51 -05:00
Joseph Lenox
ccd49dcb69 Remembered to bind the right click mouse events, moved the associated comment.
capture [this] instead of [=] for lambdas.
2018-07-11 22:14:51 -05:00
Joseph Lenox
427c7c7027 Assign on_instances_moved and put a try/catch to not crash if it accidentally gets called while uninitialzed. 2018-07-11 22:14:51 -05:00
Joseph Lenox
5dc9fa1751 Comment update to be more clear as to what is going on 2018-07-11 22:14:51 -05:00
Joseph Lenox
249b319723 Use wxDateTime::Now() to initialze current date instead of default constructor (avoid runtime errors) 2018-07-11 22:14:51 -05:00
Joseph Lenox
5938a5bf4c 2D Plater: Added double-click handler. 2018-07-11 22:14:51 -05:00
Joseph Lenox
f8827b392d 2D Plater: Change cursor to hand cursor when over selectable items. Includes function to check if any instance in a PlaterObject includes a point (makes logic much more readable). 2018-07-11 22:14:51 -05:00
Joseph Lenox
56a9915e62 Mostly implemented mouseup on 2D player.
Someting through on_instances_moved causes an uncaught exception.
2018-07-11 22:14:51 -05:00
Joseph Lenox
9c02f3ab80 Set some default values. 2018-07-11 22:14:51 -05:00
Joseph Lenox
7be26f0dd3 2D click and drag functions now like in perl side. 2018-07-11 22:14:51 -05:00
Joseph Lenox
3e0e52bb1d Removed dead code and a spammy log message. 2018-07-11 22:14:51 -05:00
Joseph Lenox
73ee990e45 Cleaned up a pointless statement warning. 2018-07-11 22:14:51 -05:00
Joseph Lenox
87dadc9815 Object selection now functions on 2D plater. 2018-07-11 22:14:51 -05:00
Joseph Lenox
e8f9940062 Use correct range for range check on iterator. 2018-07-11 22:14:51 -05:00
Joseph Lenox
ef0dd3c7c9 Set typedef (via using directive) for object references (iterators) and object indices. 2018-07-11 22:14:51 -05:00
Joseph Lenox
ac7c93850a Moved assignable methods to std::function objects. 2018-07-11 22:14:51 -05:00
Joseph Lenox
27e4e4b8b5 stubbed methods to fire object_settings_dialog, retrieve the current selected object, etc. 2018-07-11 22:14:51 -05:00
Joseph Lenox
524ef920a6 be a little smarter about converting things (avoids confusing mingw 7.3) 2018-07-11 22:14:51 -05:00
Joseph Lenox
24bc7c28aa Define wxGTK as false under win32 or osx 2018-07-11 22:14:51 -05:00
Joseph Lenox
6aa0f4c442 Set the bitmap type (needed for wxMSW) and check that the load happens before trying to use it. 2018-07-11 22:14:51 -05:00
Joseph Lenox
375663c381 Stubbed out classes for 3D plater/preview, 2D preview (toolpaths), and DLP/SLA preview tabs. 2018-07-11 22:14:51 -05:00