Okay. In the beginning we've discussed that hbxbp shouldn't
directly rely on QT libs, only on hbqt interface lib, I think
we should stick with this. The other important and related
thing is that hbxbp will only contain .prg code.

To resolve this situation and keep proper component separation
along original plans, I think you should add some sort of
helper / worker functions to hbqt, which doesn't rely directly
on appevent.ch constants, but get them via parameters, or
create an middle layer with xbp independent hbqt constant,
and/or you should decompose the function in question (hbqt_QKeyEventToAppEvent)
to smaller *generic* .cpp parts and move these to hbqt lib,
while keeping Xbase++ specific logic in hbxbp lib.

Probably the easiest way to achieve that is to add Qt::Key_*
constants to hbqt.ch with names HBQT_KEY_*, and do the rest
along above lines.

Brgds,
Viktor

On 2009.06.26., at 18:40, Pritpal Bedi wrote:


Hi


Viktor Szakáts wrote:

xbpappevents.cpp
=============
#include "appevents.ch"

appevents.ch is an Xbase++ file, so it must go to hbxbp.

If you need to place any logic depending on that file,
you should place that logic in hbxbp, too.


appevent.ch is already in hbxbp.
New file is xbpappevents.cpp.
I have placed it in hbxbp only. How will look
Makefile of hbxbp if I add it there?
I mean I have added these lines in it

CPP_SOURCES=\
        xbpappevents.cpp \

Now, what else in make system I have to add
to get it compiled. At this moment it terminated with


mingw32-make[1]: Entering directory `C:/harbour/contrib/hbxbp/win/ mingw' gcc -I. -I../../../../include -Wall -W -O3 -fomit-frame-pointer - march=i586
-mtune=pentiumpro    -c ../../xbpappevents.cpp -oxbpappevents.o
../../xbpappevents.cpp:84:51: warning: missing terminating ' character
../../xbpappevents.cpp:89:23: error: QtGui/QtGui: No such file or directory
../../xbpappevents.cpp:97: error: 'Qt' has not been declared
../../xbpappevents.cpp:97: error: expected primary-expression before 'int' ../../xbpappevents.cpp:97: error: expected primary-expression before 'int' ../../xbpappevents.cpp:97: error: expected primary-expression before 'int' ../../xbpappevents.cpp:97: error: expected primary-expression before 'int' ../../xbpappevents.cpp:97: error: initializer expression list treated as
compound expression
../../xbpappevents.cpp:98: error: expected ',' or ';' before '{' token
../../xbpappevents.cpp:97: warning: 'hbqt_QTranslateKey' defined but not
used
mingw32-make[1]: *** [xbpappevents.o] Error 1
mingw32-make[1]: Leaving directory `C:/harbour/contrib/hbxbp/win/ mingw'
mingw32-make: *** [descend] Error 2


Attached is the .cpp. Can you do the needful that it is included in the
make.

Regards
Pritpal Bedi

http://www.nabble.com/file/p24223592/xbpappevents.cpp xbpappevents.cpp
http://www.nabble.com/file/p24223592/appevent.ch appevent.ch
--
View this message in context: 
http://www.nabble.com/QT---HBXBP---appevents-%7C-inkeys---.cpp---placeholder-tp24223195p24223592.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to