ROOT_Application
2.0
C++ Core modules and GUIStock
|
Show all data loaded in memory, allow to deal with Button. More...
#include <IndicatorFrame.h>
Public Member Functions | |
IndicatorFrame (const TGWindow *p, const char *name_frame, UInt_t w, UInt_t h) | |
virtual | ~IndicatorFrame () |
ControllerIndicatorTHStock * | GetController () |
void | SetController (ControllerIndicatorTHStock *controller) |
bool | CheckFirstPad (std::string fullname) |
bool | CheckFirstPad () |
void | AddIndicator (std::string, int color) |
Add an indicator , call MakeLineLabel now should be called by ControllerIndicatorTHStockFrame. More... | |
void | DeleteLines (std::string fullname) |
new unique for Label and Indicator More... | |
void | HideLines () |
hide/show all lines, except the first one More... | |
void | ShowLines () |
void | HandleButtons () |
manages all buttons of IndicatorFrameLabel. More... | |
void | PrintList () |
for debug More... | |
ClassDef (IndicatorFrame, 0) | |
Private Attributes | |
ControllerIndicatorTHStock * | fcontroller |
Show all data loaded in memory, allow to deal with Button.
Deal only with one set of data : CAC40_DAY
It is pointed directly by the sub-controller IndicatorTHStock
How to pass signal, from here ? from MainIndicatorFrame (seems not so good) ?
Definition at line 51 of file IndicatorFrame.h.
IndicatorFrame::IndicatorFrame | ( | const TGWindow * | p, |
const char * | name_frame, | ||
UInt_t | w, | ||
UInt_t | h | ||
) |
|
virtual |
Definition at line 43 of file IndicatorFrame.cxx.
void IndicatorFrame::AddIndicator | ( | std::string | fullname, |
int | color | ||
) |
Add an indicator , call MakeLineLabel now should be called by ControllerIndicatorTHStockFrame.
Add an indicator to the VerticalFrame.
Definition at line 86 of file IndicatorFrame.cxx.
References CheckFirstPad(), FullName::GetFrameName(), and FullName::GetShortName().
Referenced by ControllerIndicatorTHStock::AddData().
bool IndicatorFrame::CheckFirstPad | ( | std::string | fullname | ) |
Definition at line 53 of file IndicatorFrame.cxx.
bool IndicatorFrame::CheckFirstPad | ( | ) |
Definition at line 76 of file IndicatorFrame.cxx.
Referenced by AddIndicator(), and HandleButtons().
IndicatorFrame::ClassDef | ( | IndicatorFrame | , |
0 | |||
) |
void IndicatorFrame::DeleteLines | ( | std::string | fullname | ) |
new unique for Label and Indicator
delete a specific line
Definition at line 117 of file IndicatorFrame.cxx.
References Garbage::Add(), and Garbage::getInstance().
Referenced by HandleButtons().
|
inline |
Definition at line 67 of file IndicatorFrame.h.
References fcontroller.
void IndicatorFrame::HandleButtons | ( | ) |
manages all buttons of IndicatorFrameLabel.
Handle the buttons of IndicatorFrameLabel.
no more signal, send directly to the controller
Definition at line 202 of file IndicatorFrame.cxx.
References CheckFirstPad(), DeleteLines(), fcontroller, IndicatorFrameLabel::GetColorLabel(), HideLines(), ControllerIndicatorTHStock::ModifyColorIndic(), ShowLines(), and ControllerIndicatorTHStock::UpdateIndicator().
void IndicatorFrame::HideLines | ( | ) |
hide/show all lines, except the first one
Definition at line 154 of file IndicatorFrame.cxx.
Referenced by HandleButtons().
void IndicatorFrame::PrintList | ( | ) |
for debug
Definition at line 324 of file IndicatorFrame.cxx.
|
inline |
Definition at line 68 of file IndicatorFrame.h.
References fcontroller.
Referenced by ControllerIndicatorTHStock::ControllerIndicatorTHStock().
void IndicatorFrame::ShowLines | ( | ) |
Definition at line 179 of file IndicatorFrame.cxx.
Referenced by HandleButtons().
|
private |
Definition at line 58 of file IndicatorFrame.h.
Referenced by GetController(), HandleButtons(), and SetController().