So i look into my other projects
One of them is getting familiar with the TextView from HaikuDepot.
Stippi implemented it and its already far developed. It supports Paragraphs and so on
I wrote took the source and experimented with it a little.. thinking about to make a improoved StyleEdit out of it...
But there are a lot of stuff missing like
- Setting Charaker Styles / Font of a an exisiting Paragraph
- Undo and Redo
- and some more Stuff
During my "Test" i found that a good fonpanle would be necessary for a improoved StyleEdit, since i also need one for projectconceptor and there is a need also for other projects for a good fontpanel i decided to take the step and start to develop one.
A Keypart of a Fontpanel and maybe later also of a FontComboBox would be a BView wich displays the FontName.
So My idea was / is now to show not only the name, but also a preview string wich shows how the Font looks
i started to implement it as a BList. The only thing is i need to calculate the size of the font name..
Thinking about what haiku offerst i took the decision to use BColumnListView
and started to implement a FontField for it and also a FontColumn and so on.
Only to understand that BColumnListView maybe does the calculation for you but also you will always have a Title above the List. This is something wich is not really good if i also want to use it e.g. for a FontComboxo.
So reverted everything went back to the BList Implementation and wrote the calculation buy myself.
Still its far away from perfekt its missing
But for now i am happy and can start implementing the the FontPanel
So My idea was / is now to show not only the name, but also a preview string wich shows how the Font looks
i started to implement it as a BList. The only thing is i need to calculate the size of the font name..
Thinking about what haiku offerst i took the decision to use BColumnListView
and started to implement a FontField for it and also a FontColumn and so on.
Only to understand that BColumnListView maybe does the calculation for you but also you will always have a Title above the List. This is something wich is not really good if i also want to use it e.g. for a FontComboxo.
So reverted everything went back to the BList Implementation and wrote the calculation buy myself.
Still its far away from perfekt its missing
- disable and enabling the fontpreview Colum
- the position of the previewString is not correct calculated (need an rewrite)
- Truncating the Strings if the Widht is not big enought isnt implemented at all
So still a lot of work there but its kind of working for now..
But for now i am happy and can start implementing the the FontPanel
TestProgramm for the haikudepottextview with added fontlist |