What do I change to include a lib in the build process ?
Posted: Thu Apr 14, 2011 5:33 pm
Hi.
I made changes in almost all prgs in order to introduce NEW() methods in all controls in order to instanciate the corresponding QT object sooner.
This pusshed me to also made kind of big changes in the code in order to permit controls to have children.
In the way it was coded, we have a main "parent" that was the "main Window" and this window was the parent of everything else.
If a control is inside another control the container control should be the parent but it was the main Window.
And when this didn´t work the workaround was to set a "container" that, in fact, was the real parent...
Part of the problem was that I had to know the control parent without knowing it name.
And since all source is coded in WITH OBJECT nested structures I extracted the parent from the WITH OBJECT control stack.
One great problem was with tabs and tabpages. Tabpages inherited from tabs when they should inherit from control and tabpages have inner controls that must point to it as parents.
Changing this, letting controls have child controls, I eliminated the need of the weird oCurrentTab, oPriorTab, oCurrentPage, oPriorPage controlling stuff.
Another big one was SplitBox. It inherited from Window and should be from Control.
Also Statusbar.
I took 2 weeks changing the code and testing every sample in order to be sure of the compatibility with older code.
I am ready to up the changings but I need a function in a Harbour lib to be linked in.
The function is HB_QWith() and the lib XHB.LIB
But I do not know where do I set this...
Where should I change to include this lib in the building process ?
I made all the changes passing the lib as a parameter to BUILD.BAT...
I made changes in almost all prgs in order to introduce NEW() methods in all controls in order to instanciate the corresponding QT object sooner.
This pusshed me to also made kind of big changes in the code in order to permit controls to have children.
In the way it was coded, we have a main "parent" that was the "main Window" and this window was the parent of everything else.
If a control is inside another control the container control should be the parent but it was the main Window.
And when this didn´t work the workaround was to set a "container" that, in fact, was the real parent...
Part of the problem was that I had to know the control parent without knowing it name.
And since all source is coded in WITH OBJECT nested structures I extracted the parent from the WITH OBJECT control stack.
One great problem was with tabs and tabpages. Tabpages inherited from tabs when they should inherit from control and tabpages have inner controls that must point to it as parents.
Changing this, letting controls have child controls, I eliminated the need of the weird oCurrentTab, oPriorTab, oCurrentPage, oPriorPage controlling stuff.
Another big one was SplitBox. It inherited from Window and should be from Control.
Also Statusbar.
I took 2 weeks changing the code and testing every sample in order to be sure of the compatibility with older code.
I am ready to up the changings but I need a function in a Harbour lib to be linked in.
The function is HB_QWith() and the lib XHB.LIB
But I do not know where do I set this...
Where should I change to include this lib in the building process ?
I made all the changes passing the lib as a parameter to BUILD.BAT...