gwenview2: event image is loaded
Carles Pina i Estany <[email protected]>
| Newsgroups | gmane.comp.kde.gwenview |
|---|---|
| Message-ID | <[email protected]> |
Hello, I am doing the Exif patch (to display Exif information in fullscreen). This time I will pack some more Exif information in a structure, so will be more easy to add other Exif fields without create methods "in all path". Also I see that will be easily possible to show this information in other places (like photo information, on right side by default). I can get the Exif information in Jpeg level, and I can _mainly_ transmit this information to MainWindow. I already added a label in Full Screen OSD, etc. I have a problem: first time that photo is loaded, I don't have the Exif information available in the time that OSD menu is painted (other times that photo is loaded yes). The reason, if I have understood correctly, is that gwenview is using threads. I should write the Exif information when LoadingDocumentImpl::slotImageLoaded is finished. But I don't see any SLOT in MainWindow that is called after this one, this one is called after other slots in MainWindow. I have some ways to try to fix it: -Send the label to LoadingDocumentImpl and write Exif information in this object (I don't like) -LoadingDocumentImpl sends some signal that arrives in MainWindow and MainWindow writes Exif information -your suggestions :-) If I have time I will try to implement suggestion 2... but I wonder if it is correct, in developers mind, etc. or if I am confusing something. Thank you, -- Carles Pina i Estany GPG id: 0x8CBDAE64 http://pinux.info Manresa - Barcelona ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/