Samstag, 8. Oktober 2016

multiple projects :)

Trying somehow to get  the QT Port of Abiword running in haiku ... is not the nicest work... so i use my time when i am frustraded
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

  • 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 

the libgsf again

Trying to build libgsf
i did a checkout of the lates source and tried to compiled it without haikuporter..
no succsess error
 /packages/gettext_x86-0.18.1.1-6/.self/develop/lib/x86/libintl.la:

so i again tried it over haikuporter
i needed to fix the recepie 1.14.18

ARCHITECTURES="!x86_gcc2" to ARCHITECTURES="!x86_gcc2 x86"
and added SECONDARY_ARCHITECTURES="x86"

at least it now recepie where take from haikuporter without warning
but i got
/sources/libgsf-1.14.18/gsf/gsf-output.h:41: argument format specified for non-function `Vprintf'

So maybe a newer version solved this problem:

Updated the recepie to 1.14.4

SOURCE_URI="http://ftp.acc.umu.se/pub/GNOME/sources/libgsf/1.14/libgsf-$portVersion.tar.bz2"
CHECKSUM_SHA256="e68ee826bda241ac847420043f0335c1c84cdf7ee772d672ae392ff21815e7f0"
REVISION="1"
ARCHITECTURES="!x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86"

no sucsess

So i followed PulkoMandys hint and enabled chroot


haikuporter -E --get-dependencies libgsf_x86
tried to work directly on the source
because vprintf is in stdio.h i added this header to /libgsf-1.14.18/gsf/gsf-output.h
only to be greeted with a nother error: 

/sources/libgsf-1.14.18/gsf/gsf-output.h:42: argument format specified for non-function `Vprintf'