Re: [bme-develop] icon loading
Status: Planning
Brought to you by:
sirmik
|
From: Daniel G. <al7...@ma...> - 2004-04-02 07:15:15
|
Hello guys, sorry I have not reply till now, it's been a busy week. > > maybe also write a BHandler to handle the > > icons...IconManager or something...My idea is this: the handler > > will > > be > > owned by the main application object and the windows will send > > messages to > > that app to request for: > > -the entire list of emoticon objects > > -a message item representing an entire text with emoticons in it > > -a bitmap for one part of text(can be used when typing text in a > > textbox and > > instantly changing that to emoticons) > > > > what do you guys think? > > I agree with a BHandler owned by the be_app, that sounds fine. I > think > we need a class to parse text that is passed a simple char * or > BString > of a bit of text, and returns some kind of custom structure > containing > processed text - ie the raw characters along with emoticons and thier > offsets, plus maybe url detection and things like that. > It sounds ok, but does it really need to be a BHandler, why not just a Class with some methods to do the parsing, load the images, convert strings to icon enabled messages, etc. What are the benefits of using a BHandler instead of just regular class? Don't get me wrong, I am not saying it's a bad idea, just want to know the reasons why either approach would be better. > > > > > >Where the number after each frame represents the number of > > > hundreths > > > of > > >seconds to display the frame for, and the final 0 means to loop > > >forever. > > > > > We can do it like this....but why? If we do it like this we better > > use the > > gifs(get some gif animation code from the web)...I think converting > > gifs to > > a file like this is a lot of work, and we're just working around > > the > > problem, introducing another file format in stead of the > > gifs....anyway it > > can be done, but it's a lot of work... > > How else are we going to load the animated images? The translation > kit > doesn't support animated images, and I couldn't find a free library > on > the web to handle reading GIFs (probably due to patent restrictions > of > the GIF format). If you have easier ideas that will work, by all > means > implement them! > I thought there was a translator for GIFs, isn't there? But I don't know how we are going to paint animated gifs into the views, there should be some code out there we could use as examples, I never dealt with animated gifs before. All the animations I have worked on have always involved threads looping through a bunch of images. > > >Other news: > > > > > >I've finally got a BListItem class that does proper automatic text > > >wrapping, performance seems similar to a BTextView on resizing a > > > lot > > > of > > >items. > > > > > Nice work! have a screenshot? > > http://si-msn.port5.com/bme2.png > Great work! It looks good. > > P.s. Daniel did you upload your latest code into cvs? > Not yet... mmm... I have made some changes in the Network handlers code, change some things to get p2p messages again (somehow it got broken when I changed to BLoopers), and a few other changes. So far.. looks good! There might be an improvement on stability ... maybe.. je, I need you guys to test it because you do a better work on testing than I :D . I promise I will get it up there on friday evening (my time). Good work team!! Regards, Daniel |