Commit Graph

1409 Commits

Author SHA1 Message Date
David Sparer
b646e7ef70 Minor optimization tree refresh when dragging nodes between containers. There is still a small disruption in the UI (~200ms) when moving nodes between containers. 2016-09-22 10:36:37 -06:00
David Sparer
981919335d Resolved a severe performance issue with refreshing the tree after drag-n-drop operations 2016-09-21 14:06:05 -06:00
David Sparer
42fcdd2267 Renamed variable to be more in line with other uses in the class 2016-09-21 10:43:01 -06:00
David Sparer
2b6367a8a9 Fixed bug where connections/containers could be dragged between putty session nodes 2016-09-21 10:38:41 -06:00
David Sparer
cbe0c1a550 Created tests for model-dropped 2016-09-21 10:22:25 -06:00
David Sparer
759c072c11 Refactored ModelDropped handler to be more test-friendly 2016-09-21 10:22:10 -06:00
David Sparer
d39e2a506f Added tests 2016-09-21 09:55:46 -06:00
David Sparer
f035872592 Extracted a method to increase readability 2016-09-21 09:55:33 -06:00
David Sparer
0324225c38 Added new convenience/optimization functions to containerinfo 2016-09-21 09:40:33 -06:00
David Sparer
a352516176 Fixed a bug where you could try to drag connection/containers onto a root putty session node 2016-09-21 09:38:54 -06:00
David Sparer
07fab69221 Created more tests for drag and drop handler 2016-09-21 09:35:07 -06:00
David Sparer
82804c1390 Fixed small bug in the drag and drop handler refactor that was causing info messages to not refresh all the time. 2016-09-21 09:10:32 -06:00
David Sparer
536d6f7c29 Refactored ConnectionTreeDragAndDropHandler to be more unit-test friendly. Began creating unit tests for it 2016-09-21 09:03:11 -06:00
David Sparer
a4ec3291ca Small drop-n-drop optimization 2016-09-20 13:56:03 -06:00
David Sparer
10420d9e7f ConnectionTreeWindow now updates its treelistview based on eventing from its ConnectionTreeModel 2016-09-20 13:03:25 -06:00
David Sparer
522d139044 ConnectionTreeModel now listens for and propogates collection changed events on child members 2016-09-20 13:02:15 -06:00
David Sparer
81a944a95c ContainerInfo objects now subscribe to child collection changed events 2016-09-20 13:01:17 -06:00
David Sparer
75b4ea175b Small cleanup 2016-09-20 12:27:20 -06:00
David Sparer
62b1402b43 Removing putty sessions now updates the treelistview as expected 2016-09-20 12:23:55 -06:00
David Sparer
688dbd1ce9 Added a convenience property and a way to remove sessions that triggers eventing 2016-09-20 12:07:05 -06:00
David Sparer
941e3d5904 Added putty model update code to tree view. Adding putty sessions works as expected 2016-09-20 12:00:04 -06:00
David Sparer
a938e098e5 Added support for propogating child session collection changed events 2016-09-20 11:36:45 -06:00
David Sparer
1bda39bc7e Implemented collectionchanged event on puttysessionprovider 2016-09-20 11:29:05 -06:00
David Sparer
6c5fedb631 Made the puttyrootnode property on puttysessionsproviders virtual to allow overriding 2016-09-20 11:13:45 -06:00
David Sparer
55e48742a9 Code cleanup 2016-09-20 10:48:20 -06:00
David Sparer
9a13273726 Renamed event SessionChanged to PuttySessionChanged 2016-09-20 10:37:39 -06:00
David Sparer
45e641067b Renamed SessionChangedEventHandler to PuttySessionChangedEventHandler 2016-09-20 10:36:39 -06:00
David Sparer
6a7dedfe67 Renamed SessionChangedEventArgs to PuttySessionChangedEventArgs 2016-09-20 10:35:58 -06:00
David Sparer
28fa043b32 Added support to the SessionChangedEventArgs to allow providing which session changed 2016-09-20 10:35:20 -06:00
David Sparer
d7c339ccea Refactored some of the eventing code in AbstractPuttySessionsProvider to make it less complex 2016-09-20 10:24:42 -06:00
David Sparer
cdc6567628 Forgot to commit this change to the Args change 2016-09-20 10:23:46 -06:00
David Sparer
fb315fd782 Moved the SessionChangedEventArgs to its own class file. Embeded classes are generally not a good idea 2016-09-20 10:23:03 -06:00
David Sparer
0907a19821 Renamed PuttySessionManager.AddSessionsToTree to just AddSessions to reflect that it does not directly work on any tree objects. Implemented the CollectionChanged event for the sessions providers collection 2016-09-20 10:12:46 -06:00
David Sparer
00b0552e5e Made PuttySessionManager a singleton rather than static. Began implementing collectionchanged event to notify when the putty session list changes 2016-09-20 09:55:05 -06:00
David Sparer
9949907adc Slightly better way to set root nodes on the treelistview 2016-09-20 09:50:20 -06:00
David Sparer
94ab1ddfbc Slight optimization of the treelistview CanExpandGetter 2016-09-20 09:49:47 -06:00
David Sparer
c13ff71f9a Abstracted the way we refresh tree model objects 2016-09-20 09:36:39 -06:00
David Sparer
e64ebf06f1 Fixed bug with calling CollectionChanged when sorting container children 2016-09-20 09:34:22 -06:00
David Sparer
20f527ae94 Created more ContainerInfo tests 2016-09-20 09:07:30 -06:00
David Sparer
1b0f9fcd88 Created more ContainerInfo tests 2016-09-20 09:02:03 -06:00
David Sparer
05799767a0 Added more ContainerInfo tests. Refactored a bit 2016-09-20 08:54:41 -06:00
David Sparer
86cb233cf6 Implemented INotifyCollectionChanged on the container children list rather than the INotifyPropertyChanged. It makes more sense, though we will need to implement UI refresh listeners on the TreeListView manually now (objectlistview currently only respects INotifyPropertyChanged events) 2016-09-20 08:37:44 -06:00
David Sparer
5838ff045a Implemented INotifyPropertyChanged for the Children proptery of the ContainerInfo object 2016-09-19 13:00:23 -06:00
David Sparer
95ddca0d7c Implemented INotifyPropertyChanged on AbstractConnectionInfoData (and thus on every connectioninfo subtype) 2016-09-19 12:54:01 -06:00
David Sparer
a03e2783d4 Created another level of abstraction between the data shared by all connection info objects and the behavior shown by certain connection info objects 2016-09-19 11:25:58 -06:00
David Sparer
f0638b0dd8 Cleanup 2016-09-19 10:58:37 -06:00
David Sparer
ab3e00f42c Fixed issue with using the proper tree images for the putty nodes 2016-09-19 10:44:23 -06:00
David Sparer
c67971035d Only show putty provider if it has sessions 2016-09-19 10:40:40 -06:00
David Sparer
3c55446e86 Putty sessions now being shown in connection tree again 2016-09-19 10:38:08 -06:00
David Sparer
fd559b61b1 Renamed PuttySessionsProvider to AbstractPuttySessionsProvider 2016-09-19 08:44:08 -06:00