Hello all,
I have a question about coupling C++ classes to a GUI, in a nice Object Oriented solution.
The problem is as follows:
I have designed a GUI application in a separate class Gui for instance, in a other source file I designed a hierarchical statemachine for my GUI application.
Now has my Gui class a serial port interface object in it as pointer member, when data is received by the serial port a event is raised and a function is called.
This function calls the statemachine, but in the statemachine I want to make changes in the Gui class based on the state, for intstance refreshing the screen or showing a dialog.
Whats a good solution to couple these two classes??
Marcel