Iterate in Model, Display in View
Hello,
I'm trying to generate some sample data in the model.
My problem is, it is a little bit tricky for a beginner - so I want to ask if there is any guide in text written, would be awesome, because videos are very quick.
=======
At the moment I have added a "Circle Process" in TouchGFX and a button which calls a virtual function.
Now what are the exact steps to iterate the value of the circle process (by tick - not by pressing the button :) )?
Some sample code would also be great, like:
1) Edit ScreenView.hpp
public:
...
virtual void setvalue();
...2) Edit ScreenView.cpp
...
void MainView::setvalue()
{
presenter->updatevalue(circleProgress1.getValue());
}
...3) Edit ScreenPresenter.hpp
...
public:
void updatevalue(int value);
...4) Edit ScreenPresenter.cpp
5) Edit Model.hpp
6) Edit Model.cpp
7) Edit ModelListener.hpp
I have seen the PoolDemo, and I'm trying to use this code, but it would be much easier seeing the code for each file in one text, for me.
thank you for your help! :)
best regards,
max
