Hi,This patch enables the user to choose a device from a combo box in the main window, instead from a pop-up dialog. What the old version does is that when the user has no device plugged in, barrybackup automatically closes itself. I think this behaviour is rather abrupt and it somehow breaks user experience, since the user may just run in and want to see what this application does. And if there are more than one devices, user must choose one to operate on. Now I added a combo box for user to choose his/her device from, and will not exit when there's none plugged in, and under the circumstances of multiple devices, the user can backup/restore one after another without exiting the main program. When there's only one device, it's not selected by default, which could pop up a dialog for password.
On code level, the main thing I have done is to split the ScanAndConnect() function into Scan() and Connect(), and remove the `goto' statement, using a static member as replacement, and Connect() is triggered only when the value combo box is changed. Also changed the layout of the window, removed the Fixed widget, making the whole thing much easier to extend.
There must be bugs and inconveniences, and I hope to hear your opinions. Regards, Ryan Li
0002-GUI-User-Experience-enhanced-provided-device-choo.patch.tar.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------------
_______________________________________________ Barry-devel mailing list Barry-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/barry-devel