Commit graph

58 commits

Author SHA1 Message Date
John Lewin
844c601f8a Preserve selection on selected items, require control key to unselect
- Issue MatterHackers/MCCentral#3960
ListView selection behavior inconsistent with expectations
2018-08-07 07:35:51 -07:00
Lars Brubaker
b76f65a875 making sure we don't try to access a null
issue: MatterHackers/MCCentral#3723
Null reference exception in recently revised statement
2018-06-26 10:09:55 -07:00
John Lewin
a2c65cfbff Use theme aware 'rebuilding' icon
- Issue MatterHackers/MCCentral#3759
rebuilding icon should be theme aware
2018-06-26 08:40:28 -07:00
John Lewin
a6272635b4 Load from library thumbnail cache 2018-06-21 21:52:47 -07:00
John Lewin
6dea15a6d7 Consolidate thumbnails behavior into new Thumbnails class 2018-06-21 10:50:40 -07:00
John Lewin
b491cc8e5a Add type for thumbnail cache, move to ApplicationController 2018-06-21 10:03:13 -07:00
John Lewin
a71ced7dcd Move raytracePending reset into MeshContentProvider result assignment 2018-06-20 22:34:24 -07:00
John Lewin
0e574131a9 Revise IContentProvider GetThumbnail signature
- Issue MatterHackers/MCCentral#3695
ContentProvider GetThumbnail fails for non-mesh content
2018-06-20 22:34:24 -07:00
John Lewin
5760ac0166 Remove ThumbnailKey 2018-06-20 21:11:37 -07:00
John Lewin
cc2fa957d9 Allow non-MeshContent providers to supply thumbnails 2018-06-20 16:28:10 -07:00
John Lewin
e6ac6d30ff Reschedule Raytracing when applicable 2018-06-20 16:27:00 -07:00
John Lewin
3ad00853b0 Extract Raytrace scheduling to dedicated method 2018-06-20 16:26:25 -07:00
John Lewin
1d5f64d22b Revert to non-async OnLoad/OnDraw methods 2018-06-20 16:19:40 -07:00
John Lewin
64d3a11586 Remove redundant LoadItemThumbnail method, 'shouldGenerate' Func 2018-06-20 16:18:08 -07:00
John Lewin
a10251c057 Rename variable to match behavior 2018-06-20 16:18:00 -07:00
John Lewin
eba2cfb0a5 Remove delegate parameter, use SetItemThumbnail instance member 2018-06-20 14:44:36 -07:00
Lars Brubaker
c1588fcd04 Created the data to allow thumbnails to be cached by mesh id
Estimated memory size for mesh
Mesh Render Id
Get long hash for color
default constructor for face and vertex

issue: MatterHackers/MCCentral#3519
Improve thumbnail generation for complicated models
2018-06-19 17:04:20 -07:00
Lars Brubaker
4c15d3e7ad guard for image not changed 2018-05-31 09:22:08 -07:00
Lars Brubaker
25883fc0bc Working on mesh wrapper and rebuild issues 2018-05-31 09:05:08 -07:00
John Lewin
f2a36f28d9 Update PrintHistoryListItem for recent changes
- Issue MatterHackers/MCCentral#3472
Print History folder multiplies
2018-05-31 06:43:32 -07:00
John Lewin
9a2afeecf6 Requeue raytracing if off-screen when dequeued
- Issue MatterHackers/MCCentral#3412
Add ability to re-try thumbnail generation after canceling due to
not-visible on screen
2018-05-21 14:46:22 -07:00
John Lewin
86abcaaf3a Remove indirection, assume defaults set correctly from provider 2018-05-21 14:46:22 -07:00
John Lewin
f1614ba82d Remove specialized case for MeshContentProvider 2018-05-21 14:46:22 -07:00
John Lewin
f5cf6c48eb Revise IContentProvider.GetThumbnail signature 2018-05-21 14:46:22 -07:00
John Lewin
e934bb40ff Move OnLoad to base type 2018-05-21 14:46:22 -07:00
Lars Brubaker
1936b69cc8 Put TreeView into MatterContrlol 2018-05-21 13:30:06 -07:00
Lars Brubaker
030b97a558 Put icon is the tree view 2018-05-18 12:02:02 -07:00
John Lewin
7d8bb2d964 Decouple thumb generation for ListView control
- Issue MatterHackers/MCCentral#3357
ListView ActiveContainer_Changed fires far more than expected

- Issue MatterHackers/MCCentral#3363
Start page -> Part icon -> Click does not load workspace
2018-05-11 18:41:50 -07:00
John Lewin
6558003511 Remove ListView instance coupling, revise to ILibraryContainer 2018-05-11 18:41:50 -07:00
John Lewin
fd63b2c5fc Restore borders for hovered/selected list view items, use native borders
- Issue MatterHackers/MCCentral#3345
Restore borders for selected items, replace owner drawn with native
2018-05-09 20:39:53 -07:00
John Lewin
d86f49a3a7 Remove IsActivePrint property from ListViewItemBase 2018-05-05 08:52:17 -07:00
John Lewin
3cf6f4a80b Guard for null
- Issue MatterHackers/MCCentral#3246
Null reference exception on listview drag when only start page is open
2018-04-27 18:38:57 -07:00
John Lewin
e5584ac618 Scale thumbnails if required, before calling ImageWidget setter
- Issue MatterHackers/MCCentral#3205
Folders and part icons don't scale with theme
2018-04-24 07:59:46 -07:00
John Lewin
8d9db18d69 Improve stroke weighs and balancing, add missing SetPreMultiply() 2018-04-21 14:59:45 -07:00
John Lewin
37a0b64b02 Use dedicated theme for menus, prefer theme colors over explicit refs
- Revise icon loader to take an Invert bool instead of custom enum
- Remove icon loader static ref to ActiveTheme.Instance
- Pass contextual theme.InvertIcons for theme specific invert behavior
2018-04-12 13:17:17 -07:00
John Lewin
16ed93f518 Remove unnecessary async specifiers 2018-03-27 09:27:07 -07:00
John Lewin
78341ef3e2 Use specialized type for missing files in Queue
- Prevent DragDrop with filter for MissingFileItem
- Allow MissingFileItem in ListView in addition to IsContentFileType
2018-02-15 14:27:01 -08:00
John Lewin
f440981e51 Rename ILibraryContentStream -> ILibraryAssetStream 2018-02-12 19:26:38 -08:00
John Lewin
7a4d4df4c0 Rename ILibraryContentItem -> ILibraryObject3D
- Rename member .GetContent() -> .GetObject3D()
2018-02-12 19:26:38 -08:00
Lars Brubaker
81f7cdb8b2 Removing secondary accent color 2018-01-24 09:30:05 -08:00
John Lewin
00c0be94c2 Fix library performance issues due to resize on display
- Issue MatterHackers/MCCentral#2435
Large thumbnail images behind poorly performing ListView control
2017-12-18 10:53:26 -08:00
John Lewin
494c2b6d82 Remove redundant helper method 2017-12-15 14:55:10 -08:00
Lars Brubaker
8d1fecab8c Changed RGBA_Bytes -> Color 2017-10-31 11:43:25 -07:00
John Lewin
882a389495 Fix listview selection duplication bug
- Issue MatterHackers/MCCentral#2022
Investigate AddToQueueFromLibraryButtonAddsItemsToQueue regression
2017-10-01 23:17:51 -07:00
John Lewin
61426af1ed Revise drag selection to prevent continuous toggle 2017-09-29 18:31:31 -07:00
John Lewin
123f21dcab Wire up notification system for ContentChanged -> UI listeners 2017-09-29 17:26:45 -07:00
John Lewin
040d3dc934 Prevent acquisition of content streams for remote only data 2017-09-28 17:36:42 -07:00
John Lewin
74c561f656 Rewrite library/view3D DragDrop for multi-select and clarity 2017-09-19 20:01:22 -07:00
John Lewin
af38676244 Make View3DWidget.Scene private 2017-09-16 01:19:07 -07:00
John Lewin
5a4b0e249a Add guards for active processing 2017-08-08 14:12:03 -07:00