11 #ifndef GUIMAINCONTROLLER_H_
12 #define GUIMAINCONTROLLER_H_
94 virtual void Updated( std::vector<std::string> & message );
Singleton class, stores all loaded stocks.
GUIMainFrame * gui_mainframe
direct link to an unique GUIMainFrame
Controller for a dual frame containing Indicator+THStock(s).
virtual void Updated(std::vector< std::string > &message)
Called through the timer RT2, when new data are present.
void UpdateGUIFromController()
only gui_mainframe->Resize(), but seems necessary when a new frame created
GUIMainController()
Constructor.
void AddObserver_Message(std::vector< std::string > &message)
Only used to setup current_controller, really needed ? not really.
Main controller of the application, linked to the view GUIMainFrame.
void DeleteControllerIndicatorTHStock(MainControllerIndicatorTHStock *control)
Concrete class of an observer.
ControllerBase * fcurrent_controller
most general, may use a more specialized ? seems fine here really needed ?? seems use can be avoided...
MainControllerIndicatorTHStock * CreateMainControllerIndicatorTHStock(bool kmain=false)
Creates child controllers, contains Indicator+THStock(s).
GUIObserver * gui_observer
Observer for receiving messages from StockManager.
Base class for controllers of the graphical application.
StockManager * fstockmanager
keep a pointer to StockManager from constructor.
virtual GUIMainController * GetParentController()
overwrite the ControllerBase function, no parent for this one, this or 0 from ControllerBase ...
see remark below, much easier if composition than derivation in the case of ListController, same for parent_controller as member <U> easily extends to View as well ( ListView possible ), but strong coupling again
GUIMainFrame * GetFrame() const
StockManager * GetStockManager() const
needed here
virtual ~GUIMainController()