Commit Graph

59 Commits

Author SHA1 Message Date
53dc2efea5 Undo/Redo buttons moved into their own toolbar 2019-07-19 15:36:55 +02:00
e8e35579dd Merge remote-tracking branch 'remotes/origin/vb_undo_redo' 2019-07-15 11:34:18 +02:00
2f43e228f3 Tech ENABLE_SVG_ICONS set as default 2019-07-12 10:13:35 +02:00
cbf50ccdca Follow-up of 4c6c608342 -> refactoring 2019-07-12 09:26:19 +02:00
9c184f5112 GLToolbar and GLToolbarItem refactored to allow two different actions when left/right clicking on items.
Stack dialog for undo and redo items is now shown on right click only
2019-07-11 15:29:46 +02:00
747900c308 Deactivate undo/redo toolbar items when leaving the 3D scene or clicking into it 2019-07-11 07:46:40 +02:00
0b5725b5cb Disable remaining toolbar items when one of them is toggable and pressed 2019-07-10 11:59:25 +02:00
1c68eb1fa3 Modified toolbar to call RenderCallback only when the item is toggable and pressed 2019-07-10 10:52:12 +02:00
0af1af0ae2 Next improvements of an undo/redo from a toolbar 2019-07-09 19:39:36 +02:00
8cfe03033f Added undo/redo icons. Fist step to implementation Undo/Redo list for toolbar 2019-07-08 18:01:14 +02:00
e9909eb95e Removed GLVolume non-VBO rendering 2019-07-01 12:28:16 +02:00
9d732e318d Fixed conflicts after merge with branch et_perpsective_camera 2019-06-24 11:08:42 +02:00
0af66cfe82 ENABLE_COMPRESSED_TEXTURES set as default 2019-06-24 09:54:58 +02:00
eff108c58b More camera related functionalities moved from GLCanvas3D to Camera 2019-06-19 14:18:51 +02:00
9877945e2a Tighter camera frustrum to reduce z-fighting 2019-06-14 10:38:09 +02:00
4ab6ee114c Texture compression set as an option 2019-05-28 12:53:16 +02:00
32cbe5c7b1 Implemented a possibility to set a custom toolbars icon size (related to #2247 and same others) 2019-05-22 13:51:02 +02:00
61ef36805f Copy and paste -> Added items for copy and paste on the toolbar 2019-04-11 13:20:34 +02:00
0f657b772b Camera refactoring
1) All camera related OpenGL calls moved into class

2) The Camera class now stores the view matrix, the projection matrix and the viewport

3) The Camera class now exposes methods to get the camera orientation vectors, the camera position, the view matrix, the projection matrix and the viewport

4) All the code operating on the camera or requiring camera data has been modified to use the new methods
2019-04-01 10:00:10 +02:00
910605864a Added glsafe() around OpenGL calls where missing 2019-03-27 14:42:09 +01:00
48f4831ffc Code cleanup 2019-03-26 09:10:35 +01:00
0337ac0839 1st installment of gizmos refactoring
1) GLCanvas3D::Gizmos moved into a standalone class GLGizmosManager

2) GLGizmosManager handles mouse events by calling its on_mouse method (wip)
2019-03-26 09:01:04 +01:00
c50986d7fd Code cleanup 2019-03-25 14:13:20 +01:00
c0db8a6bfd Yet another tweak to the logic for releasing mouse capture into GLToolbar::on_mouse() 2019-03-25 08:48:41 +01:00
3733410e55 Another tweak to the logic for releasing mouse capture into GLToolbar::on_mouse() 2019-03-22 14:35:26 +01:00
584f7ad296 Changed logic for releasing mouse capture into GLToolbar::on_mouse() 2019-03-22 13:03:34 +01:00
7cc04be0ec Fix into GLToolbar::on_mouse() 2019-03-20 15:30:03 +01:00
e65dbcabb5 Tech ENABLE_CANVAS_GUI_REFACTORING set as default 2019-03-20 09:33:30 +01:00
1c8e93e480 Code cleanup 2019-03-19 09:21:27 +01:00
8841d4260e Toolbar refactoring
1) toolbar items define 3 callback functions for setting the visibility, setting the enabling state and defining their action which are set while adding a new item to the toolbar

2) the toolbar takes care to update all its items visibility and enabled states through a new update method to be called by the parent idle event handler

3) the toolbar handles mouse events by calling its on_mouse method
2019-03-14 13:54:05 +01:00
e2f265128e ENABLE_MODE_AWARE_TOOLBAR_ITEMS set as default 2019-02-28 12:21:36 +01:00
fd3c1e11f6 Automatic generation of variants of icons for toolbars and gizmos 2019-02-26 12:56:13 +01:00
6e2f981f1e Fixed build when ENABLE_SVG_ICONS is disabled 2019-02-26 10:57:37 +01:00
3174e37841 Allow non-squared textures for toolbars and gizmo icons 2019-02-26 10:40:00 +01:00
419e951a7e 1st installment of svg icons for toolbars and gizmos 2019-02-26 09:56:23 +01:00
8130c2d08f Code cleanup 2019-02-22 12:06:56 +01:00
e9c4175a99 Gizmos overlay using a single png texture 2019-02-22 10:01:34 +01:00
0fd82f7fa0 User mode-aware toolbar items 2019-01-31 13:19:26 +01:00
d1f6266955 Mac: Retina OpenGL: Fix toolbar mouse hover 2019-01-24 20:03:12 +01:00
7bd509fc6d Mac: Retina OpenGL: Fix ImGui font switch, dynamic switching, toolbar fixes 2019-01-24 20:03:12 +01:00
fc85c101be Show gizmos and toolbars tooltips when hovering on a disabled item 2019-01-16 11:10:24 +01:00
4011138999 Removal of wxNotebook from plater set as default 2019-01-03 12:59:06 +01:00
15dcc9972d Background texture for toolbars set as default 2019-01-02 16:26:22 +01:00
1067faec4a Scalable toolbar icons 2018-12-17 11:11:49 +01:00
b2b84a85a3 Added background texture to toolbars 2018-12-17 10:55:14 +01:00
87759588b1 include "libslic3r" from slic3r project directly, not as "../../libslicer"
(rely on -Ilibslic3r set correctly) for the slic3r project.
2018-12-06 12:52:28 +01:00
0166643a62 Removal of tabs from plater -> Fixed buttons update when switching between views using keyboard 2018-12-06 12:37:39 +01:00
8ce353056d Removal of tabs from plater -> added buttons to scene to switch between views 2018-12-06 10:38:19 +01:00
6f3e386e85 Cutting 2018-11-18 21:20:47 +01:00
fff76c6aae New selection set as default 2018-11-01 10:06:55 +01:00