Hello experts,
When I write my first application how i can test it ? I know my code right but I need to integrate to GUI how I can call the function to from button and run the code ?
any one can help on that ?
Hello experts,
When I write my first application how i can test it ? I know my code right but I need to integrate to GUI how I can call the function to from button and run the code ?
any one can help on that ?
If you generate a new GUI application with Carbide.c++, it is going to have a menu. You can simply replace/extend the handler code for menu commands in AppUi::HandleCommandL and invoke your own code.
Probably yes (note that I do not know what your code is going to do). #include "example.h", then you can invoke functions from it.
I have question , when I generate the GUI s60 application in carbicde c++ , I get the following :
ExampleAppUi.cpp
ExampleApplication.cpp
ExampleContaner.cpp
ExampleDcoument.cpp
ExampleContainerView.cpp
What the corresponding each of them I got confused !!
ExampleApplication.cpp is your entry point, and application class file, application then makes document class that is in ExampleDcoument.cpp, which then makes the Appui class that is located in ExampleAppUi.cpp.
Basically you don't need to care too much on application or document, Appui class could then be used for commands handling, though I suppose you are using view based, thus then you could do it in the view located in your ExampleContainerView.cpp.
in your ExampleContainerView.cpp you would then handle the actual UI screens such the the one implemented in the ExampleContaner.cpp.
You could always just put breakpoints into the code and see how it gets executed.