From: Francesco M. <f18...@ya...> - 2008-12-02 19:18:09
|
Hi, Frans Schreuder ha scritto: > Hi Francesco, >> I'd put there >> - a "Current status: connected to XX on port YY" label >> - a wxListBox which shows the programmers/bootloaders detected, their firmware >> versions and the USB ports to which they are attached. >> - "Connect", "Disconnect", "Close" buttons >> >> > I think we can just create one connect button / menu item (and of course > a disconnect) > After all I don't think it makes sense to be able to have multiple > programmers connected at the same time. Well, in fact I proposed making a dialog for connection/disconnection mainly to be able to show some additional info about the attached hw: firmware version, USB port, etc. In future maybe it could be expanded to show realtime monitoring data, e.g. the voltage of the pump (this could be done easily using a PIC pin as A/D, isn't it?), etc... However you're right that probably two simple menu items which do a wxLogMessage with some info (e.g. "Usbpicprog v.xx connect on port yy") could be enough for now... > I think it's a good idea that you made the wxLogMessages "usbpicprog > connected" etc, but don't you think they need a checkbox like "don't > show this message again"? indeed, it would be very useful. > I don't know if there is a dialog in wxWidgets which has it by default, > or if the wxLogMessage has a function like that. > We can also make an option for it in the preferences dialog. I think I've made in the past a small utility for both loading/saving into a wxConfig such messages; it also included a wxLog modification IIRC... I'll search it in my past projects. Francesco -- |