From: <sl...@li...> - 2007-07-20 20:45:14
|
Le jeudi 19 juillet 2007, Alex Gontmakher a =E9crit=A0: > > Actually, I'd be a grateful if some tiny task was pointed out to me, > > something well suited for a QT newbie. It might kickstart my > > understanding on the code better than just reading, and trying to > > figure out how it works. > > It might not be tiny (i.e., it might require quite some understanding of > the design - prepare for 2-3 hours of wading through the code), but the > actual amount of code involved should not be large. Some toughts/indications: Yes, all note types (text, image, link...) inherit the Note class, and they= =20 can reimplement a function to return a tooltip, or at least informations=20 displayable in the tooltip (as I remember). So you can grab the screenshot when BasKet Note Pads ask to the link note w= hat=20 informations to display in the tooltip. Possibly modifying the code so that this information can be a HTML markup, = not=20 only plain-text. While easy, the disadvantage of this method is that the interface is blocke= d=20 while the LinkNote retreive the website capture, and user must have a good= =20 internet connexion, and the code must be sure enough to not hang up forever= =20 when no internet connexion is available. Ideally, the image should be retreived in another thread, the tooltip shoul= d=20 be immediatly shown, and when the capture is received, the program update t= he=20 tooltip to include the image. I don't think updating the tooltip is doable in Qt3, but you can search. =46or instance, when you listen to a music in Amarok and move your cursor o= ver=20 the Amarok systray icon, the "current time" is updated every second. So this can perhapse be possible. I advise you to look at the SVN code of Amarok to know how they do that. > There is the following annoying thing that need to be fixed... I don't > think I'll get around to do that myself very soon... So: In a popup menu = of > a basket, there is an action called "Add sibling basket". Problem is, what > it does is not really adding a sibling, but rather adding another node to > the parent of a current basket (i.e., the new node, instead of appearing > next to the given basket, appears at the end of the list). > > I believe you get what the desired behavior is :) Ah, very good idea. I should have tought to that before: Junior Jobs, as they are called in KDE. An excellent way to start discovering the code. I will think about that and post ideas I find. |