From: Jacek S. <arn...@gm...> - 2007-10-16 07:21:37
|
Fredrik Ullner wrote: > This patch will add a new window, "Recent hubs". The window will list > the last connected hubs, and the data will be stored in Favorites.xml. > The following format is used for Favorites.xml; > <Recent> > <Hub Name="" Description="" Server="" Time="" Encoding=""/> > </Recent> RecentHubs? (in case we add recentPMs, recentSearches etc) > Note; A line in MainWindow.cpp is commented out. This is because I was > unsure on with what application to alter the toolbar .BMPs to keep the > pictures intact. The line isn't required if it's not desired to have the > window accessable through the toolbar (and only the menu). However, the > window's icon will then default to (I believe) the hub icon. > > Note2; Each hub is added to the WidgetDataGrid. However, this patch > doesn't remove the old hub (one that's already in the list, that is, it > should only be updated) from the WidgetDataGrid. I wasn't sure what > strategy should be used. Any suggestions? > Is a window really needed for recent hubs? Maybe a menu would be enough (with just the hub name, no description)... as to the dupes, I'd update the last accessed time (so if default sort is by last access they move up to the top once sorting works =), to avoid multiple entries with the same hub. An upper limit or maximum time from last visit isn't needed? It would also be nice to have a "session" ability, so that the recent hubs have a flag "connected" which is set for open hubs when shutting down, so that all open hubs reopen on startup, but I'll accept the patch without. /J |