6 #ifndef _MAINCONTROLLERINDICATORTHSTOCK_H_
7 #define _MAINCONTROLLERINDICATORTHSTOCK_H_
25 class TGCompositeFrame;
66 TGCompositeFrame * associated_frame,
bool b_mainframe );
112 virtual void Updated( std::vector<std::string> & message );
Singleton class, stores all loaded stocks.
MainControllerIndicatorTHStock(GUIMainController *parent_control, std::string name, TGCompositeFrame *associated_frame, bool b_mainframe)
Constructor.
Controller for a dual frame containing Indicator+THStock(s).
bool kMainFrame
link to StockManager, singleton, initialized in constructor
Main controller of the application, linked to the view GUIMainFrame.
virtual ~MainControllerIndicatorTHStock()
MainIndicatorTHStockFrame * findic_thstock
void DeleteIndicatorTHstock()
Delete all couples of frames and thstocks Call by MainControllerIndicatorStock::CloseWindow() ...
Final controller class, does not derive from ListController.
ControllerIndicatorTHStock * fcurrent_controller
MainIndicatorTHStockFrame * GetFrame() const
Sub-controller : assure drawing and coupling of 1 IndicatorFrame and 1 THStock.
virtual void Updated(std::vector< std::string > &message)
Call by parent controller, when a new message is available.
StockManager * GetStockManager() const
void GetSelected(ControllerIndicatorTHStock *child_controller)
receive indirectly the IndicatorFrame Selected, can set the current_frame ( can get pad also ) ...
Frame contains Indicator and THStock.
void Update()
coming from StockManager, through observer pattern no should come from gui_maincontroller now ...
void UpdateIndicator(ControllerIndicatorTHStock *child_controller, std::string mode)
called by controller child for some tasks child cannot do.
void AddCouple_Indicator_THStock(std::string frame_name)
Create a new sub-controller and update views for adding a new frame Does not add any data...
void Validation(std::string fullname)
Load stock or indicator after pressing the Validation button.
Base class for controllers of the graphical application.
GUIMainController * GetGUIMainController() const
ControllerIndicatorTHStock * GetCurrentController() const
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
std::string name
name Controller_X, initialized to "" by default
GUIMainController * myparent_controller