On 02/17/12 11:08 AM, Silver Salonen wrote: > On Friday 17 February 2012 10:36:50 Marco van Wieringen wrote: >> On 02/17/12 09:50 AM, Silver Salonen wrote: >>> Well, I plan to do some more work on usability besides sorting, so I >>> suspect I might need someone to discuss some other topic in the future too. >> I would start describing your feature request before doing any coding. >> You could otherwise end up with >> code that will never merge upstream. Not that it should hold you from >> trying to add features that you need. > > The tweaks I plan to do are really quite elementary UI usability > improvements, but when there will be something to discuss, I'll of cource > discuss it :) > > What I'm currently planning to look at (just some examples): > - enable sorting where-ever possible > - save order of columns everywhere > - ability to show/hide columns > - improve warning dialogs (currently there are multiple for one action, > the texts are not nicely punctuated etc.) > - improve brestore's interface (merge jobs, refresh etc.) > > And there's more :) Ok so your thinking about quite invasive changes which is good but keep in mind that its better to do this as small steps e.g. make a patch per item. If you like you can send me some code when you have it ready so I can check if it adheres the Bacula coding style. I also don't know if you did bigger Bacula coding before but there is a part of the documentation which describes the Bacula coding standard which is one of the first tollgates for merging code upstream.
> >>> But to my mind sorting should be implemented everywhere, including eg. >>> pools and brestore (these are two places I use quite frequently and miss >>> the ability to sort). >> I think sorting in the mediaview is more then enough I guess when you talk >> about sorting pools you are talking about the storage pane in which sorting >> for me makes no sense when you have a autoloader and double click >> on the storage you get the content of the autoloader and you can sort >> any field >> there. The tree view doesn't really have any interesting sorting options you >> also have to take into consideration that you only want to sort certain rows >> e.g. only the ones with a volume not the autoloader lines etc. Next to that >> the storage tree is mostly there to get a fast overview. > > I don't use autoloaders (but 100% file-based backups), so I can't really > comment on that. You can have disk based autoloaders which make this work. > > Actually I was talking about pools' view and in there I have felt the need to > sort volumes by their sizes, by their last written date etc. Currently I have > to sort them by going to the server and look at the files in command line. Ok both can be done in the media view but if you think you can get it working by extending the tree view I would say give it a try. I think it will be quite some work though but indeed you can borrow some of the stuff from the other widget class for sorting. > >>> As I undestand, it's disabled for pools, because pools tab uses >>> QTreeWidget, not QTableWidget and sorting correctly bytes/kbytes/Mbytes is >>> not so trivial. There's custom sorting code implemented also for >>> QTableWidget, so what has to be done, is expanding this custom code to >>> QTreeWidget too. >> See above I don't see a reason to sort in the storage view when we have >> the better >> autoloader content media view. So it will be a lot of work without much >> gain. >> But if you think it will add something then feel free to try to add it >> but it won't >> be obvious giving the problems described above. >> >> As to brestore sorting, yes that might be something I think its using >> the standard QTableWidget >> stuff so its should be obvious to add sorting. e.g. tag the fields with >> the correct types and >> enable sorting in the ui. > > Well, actually I did not yet look at brestore's code, but as the needed > custom code for sorting is already in place for Media View, I guess it would > also work in brestore. > I have not looked myself but I guess so. Marco ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel