Re: [bme-develop] icon loading
Status: Planning
Brought to you by:
sirmik
|
From: Simon T. <sim...@ga...> - 2004-03-31 13:17:49
|
> Hi, > > I think I'm going to rewrite the code a bit today so we only need > tabs and > spaces in the text file... OK. > 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. > >--in icon prefs file---- > >/icons/standard/angel.png (a) (A) ; Angel > >[...] > >/icons/standard/wink.anim ;) ;-) ; Winking smiley > >--------- > Uhm, the file format is currently like this :D : > /icons/standard/angel.png Angel ; (a) (A) > like you suggested.... Ah good, I was trying to make my example match the current format. > > > >--in wink.anim---- > >icons/standard/wink1.png 10 > >icons/standard/wink2.png 50 > >icons/standard/wink3.png 10 > >0 > >---------- > > > >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! > >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 > regards, > > Tim Simon > P.s. Daniel did you upload your latest code into cvs? |