ROOT_Application  2.0
C++ Core modules and GUIStock
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes
IndicatorFrame Class Reference

Show all data loaded in memory, allow to deal with Button. More...

#include <IndicatorFrame.h>

Inheritance diagram for IndicatorFrame:
Inheritance graph
[legend]
Collaboration diagram for IndicatorFrame:
Collaboration graph
[legend]

Public Member Functions

 IndicatorFrame (const TGWindow *p, const char *name_frame, UInt_t w, UInt_t h)
 
virtual ~IndicatorFrame ()
 
ControllerIndicatorTHStockGetController ()
 
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

ControllerIndicatorTHStockfcontroller
 

Detailed Description

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.

Constructor & Destructor Documentation

IndicatorFrame::IndicatorFrame ( const TGWindow *  p,
const char *  name_frame,
UInt_t  w,
UInt_t  h 
)
IndicatorFrame::~IndicatorFrame ( )
virtual

Definition at line 43 of file IndicatorFrame.cxx.

Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

IndicatorFrame::ClassDef ( IndicatorFrame  ,
 
)
void IndicatorFrame::DeleteLines ( std::string  fullname)

new unique for Label and Indicator

delete a specific line

Bug:
cannot delete really the object, error in signals

Definition at line 117 of file IndicatorFrame.cxx.

References Garbage::Add(), and Garbage::getInstance().

Referenced by HandleButtons().

Here is the call graph for this function:

Here is the caller graph for this function:

ControllerIndicatorTHStock* IndicatorFrame::GetController ( )
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().

Here is the call graph for this function:

void IndicatorFrame::HideLines ( )

hide/show all lines, except the first one

Definition at line 154 of file IndicatorFrame.cxx.

Referenced by HandleButtons().

Here is the caller graph for this function:

void IndicatorFrame::PrintList ( )

for debug

Definition at line 324 of file IndicatorFrame.cxx.

void IndicatorFrame::SetController ( ControllerIndicatorTHStock controller)
inline

Definition at line 68 of file IndicatorFrame.h.

References fcontroller.

Referenced by ControllerIndicatorTHStock::ControllerIndicatorTHStock().

Here is the caller graph for this function:

void IndicatorFrame::ShowLines ( )

Definition at line 179 of file IndicatorFrame.cxx.

Referenced by HandleButtons().

Here is the caller graph for this function:

Field Documentation

ControllerIndicatorTHStock* IndicatorFrame::fcontroller
private

Definition at line 58 of file IndicatorFrame.h.

Referenced by GetController(), HandleButtons(), and SetController().


The documentation for this class was generated from the following files: