159 Commits

Author SHA1 Message Date
Joseph Lenox
a8a15cdb25 added info box 2018-07-11 22:14:51 -05:00
Joseph Lenox
70bd713353 added comment to append_menu_item and append_submenu. 2018-07-11 22:14:51 -05:00
Joseph Lenox
372b5c8ef3 Enable/disable toolbar on selection 2018-07-11 22:14:51 -05:00
Joseph Lenox
57f684a1c4 Populate and set/unset select menu. 2018-07-11 22:14:51 -05:00
Joseph Lenox
353a7fcaef Return the wxMenuItem* from append_menu_item, we do need it for some methods. 2018-07-11 22:14:51 -05:00
Joseph Lenox
148316f211 Stubbed in Plater menu. 2018-07-11 22:14:51 -05:00
Joseph Lenox
94d428ef12 back to c++11 semantics for initialization. 2018-07-11 22:14:51 -05:00
Joseph Lenox
3097a072e2 gcc, pls 2018-07-11 22:14:51 -05:00
Joseph Lenox
5431b5c2c5 Handle possible narrowing of data type between unsigned long and signed long 2018-07-11 22:14:51 -05:00
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