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 Types | Private Member Functions | Private Attributes | Static Private Attributes
MainIndicatorTHStockFrame Class Reference

Frame contains Indicator and THStock. More...

#include <MainIndicatorTHStockFrame.h>

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

Public Member Functions

 MainIndicatorTHStockFrame (const TGWindow *p, MainControllerIndicatorTHStock *parent_control, std::string name_frame, UInt_t w, UInt_t h)
 Constructor, create only generic frames to design the output, but empty inserted in a generic frames as TGWindow (either Horizontal frame or 0 if independent frame) save main frames in data_member : fVframe_indicator, fHframe_c_stock, (childs of fHIndicTHStock) More...
 
virtual ~MainIndicatorTHStockFrame ()
 
virtual void CloseWindow ()
 
void SetTextResearch (std::string new_text)
 need for controller to set up More...
 
void SetTimeScale (int tmscl)
 
TGVerticalFrameGetIndicatorFrame () const
 get the important child frames for drawing More...
 
TGHorizontalFrameGetTHStockFrame () const
 
void ResetEntries ()
 reset all widget entries, may add options More...
 
bool ToAddCanvas ()
 check state of button More...
 
bool ToMakeMain ()
 
void ExtractInfoForValidation (std::string &longname)
 Extract symbol, timescale, indicator and paramaters from input. More...
 
void HandleButtons (Int_t id=-1)
 
void HandleComboBox (Int_t widgetId, Int_t id)
 
void HandleToolBar (Int_t id)
 
void EventInfo (Int_t, Int_t px, Int_t py, TObject *selected)
 Called after DistancetoPrimitive for the selection of "objects" Done by the system, appends after a gPad->SetSelected( obj_stock ) in THistPainterStock::DtP. More...
 
void SetStatusBar (std::vector< std::string > &vec_str_text)
 print data from EventInfo in the status bar More...
 
 ClassDef (MainIndicatorTHStockFrame, 0)
 

Private Types

enum  EMainFrameIdentifier2 {
  kTextSearch, kChoiceTime, kChoiceIndic, kParamEntry0,
  kParamEntry1, kParamEntry2, kAddCanvas, kMakeMain,
  kValidB, ktoto
}
 

Private Member Functions

void CreateToolBar (TGVerticalFrame *fVMain)
 

Private Attributes

MainControllerIndicatorTHStockfcontroller
 pointer to the parent controller More...
 
TGVerticalFramefVframe_indicator
 frame for all indicators More...
 
TGHorizontalFramefHframe_c_stock
 frame for all THStockFrame ( 1 canvas stock inside each ) More...
 
TGHorizontalFramefHframe_toolbar
 
TGToolBar * ftoolbar
 
TGLabel * fLabelSearch
 For selection and validation of a new indicator. More...
 
TGTextEntry * fTextResearch
 
TGComboBox * fComboTime
 
TGComboBox * fComboIndic
 
TGTextEntry * fParamEntry [3]
 
TGCheckButton * check_to_add_canvas
 
TGCheckButton * check_to_make_main
 
TGTextButton * fValidB
 Validation button, after update of search and combo. More...
 
TGStatusBar * fStatusBar
 

Static Private Attributes

static const char * xpms []
 
static const char * tips []
 For ToolBar, define text. More...
 
static const char * ListTimeScaleLabel [] = { "INST", "M5", "M10", "M30", "H1", "DAY", "WEEK", "MONTH", "TRIM", "YEAR" }
 for TimeScale ComboxBox More...
 
static Int_t statbar_parts [] = {17, 12, 15, 56}
 for Status Bar, place in %, no in a namespace, need to be static More...
 

Detailed Description

Frame contains Indicator and THStock.

\ Can be integrated in :

Owns always 2 Frames :

derive of TGVerticalFrame, try to change with kMainFrame

Definition at line 45 of file MainIndicatorTHStockFrame.h.

Member Enumeration Documentation

Enumerator
kTextSearch 
kChoiceTime 
kChoiceIndic 
kParamEntry0 
kParamEntry1 
kParamEntry2 
kAddCanvas 
kMakeMain 
kValidB 
ktoto 

Definition at line 49 of file MainIndicatorTHStockFrame.h.

Constructor & Destructor Documentation

MainIndicatorTHStockFrame::MainIndicatorTHStockFrame ( const TGWindow *  p,
MainControllerIndicatorTHStock parent_control,
std::string  name_frame,
UInt_t  w,
UInt_t  h 
)

Constructor, create only generic frames to design the output, but empty inserted in a generic frames as TGWindow (either Horizontal frame or 0 if independent frame) save main frames in data_member : fVframe_indicator, fHframe_c_stock, (childs of fHIndicTHStock)

Definition at line 55 of file MainIndicatorTHStockFrame.cxx.

References CreateToolBar(), fComboIndic, fComboTime, fHframe_c_stock, fStatusBar, fVframe_indicator, and statbar_parts.

Here is the call graph for this function:

MainIndicatorTHStockFrame::~MainIndicatorTHStockFrame ( )
virtual

Definition at line 131 of file MainIndicatorTHStockFrame.cxx.

References fcontroller.

Member Function Documentation

MainIndicatorTHStockFrame::ClassDef ( MainIndicatorTHStockFrame  ,
 
)
void MainIndicatorTHStockFrame::CloseWindow ( )
virtual

Definition at line 145 of file MainIndicatorTHStockFrame.cxx.

References MainControllerIndicatorTHStock::DeleteIndicatorTHstock(), and fcontroller.

Here is the call graph for this function:

void MainIndicatorTHStockFrame::CreateToolBar ( TGVerticalFrame fVMain)
private
void MainIndicatorTHStockFrame::EventInfo ( Int_t  event,
Int_t  px,
Int_t  py,
TObject selected 
)

Called after DistancetoPrimitive for the selection of "objects" Done by the system, appends after a gPad->SetSelected( obj_stock ) in THistPainterStock::DtP.

Definition at line 612 of file MainIndicatorTHStockFrame.cxx.

References AbstractObjectStock::MakeStringForStatusBar(), SetStatusBar(), Utils::toString(), and values.

Here is the call graph for this function:

void MainIndicatorTHStockFrame::ExtractInfoForValidation ( std::string &  longname)

Extract symbol, timescale, indicator and paramaters from input.

Definition at line 342 of file MainIndicatorTHStockFrame.cxx.

References fComboIndic, fComboTime, fcontroller, fHframe_toolbar, fParamEntry, fTextResearch, Indicator::GetListAllIndicator(), and ListTimeScaleLabel.

Referenced by HandleButtons().

Here is the call graph for this function:

Here is the caller graph for this function:

TGVerticalFrame* MainIndicatorTHStockFrame::GetIndicatorFrame ( ) const
inline

get the important child frames for drawing

Definition at line 119 of file MainIndicatorTHStockFrame.h.

References fVframe_indicator.

Referenced by MainControllerIndicatorTHStock::AddCouple_Indicator_THStock(), and MainControllerIndicatorTHStock::UpdateIndicator().

Here is the caller graph for this function:

TGHorizontalFrame* MainIndicatorTHStockFrame::GetTHStockFrame ( ) const
inline

Definition at line 120 of file MainIndicatorTHStockFrame.h.

References fHframe_c_stock.

Referenced by MainControllerIndicatorTHStock::AddCouple_Indicator_THStock(), and MainControllerIndicatorTHStock::UpdateIndicator().

Here is the caller graph for this function:

void MainIndicatorTHStockFrame::HandleButtons ( Int_t  id = -1)
void MainIndicatorTHStockFrame::HandleComboBox ( Int_t  widgetId,
Int_t  id 
)

Definition at line 446 of file MainIndicatorTHStockFrame.cxx.

References kChoiceIndic, kChoiceTime, and ResetEntries().

Here is the call graph for this function:

void MainIndicatorTHStockFrame::HandleToolBar ( Int_t  id)

Definition at line 476 of file MainIndicatorTHStockFrame.cxx.

References ftoolbar, EditorObjStock::SetAnchor(), and EditorObjStock::SetMode().

Here is the call graph for this function:

void MainIndicatorTHStockFrame::ResetEntries ( )

reset all widget entries, may add options

Definition at line 293 of file MainIndicatorTHStockFrame.cxx.

References check_to_add_canvas, check_to_make_main, fComboIndic, fHframe_toolbar, fParamEntry, Indicator::GetDefaultValues(), Indicator::GetIndicator(), Indicator::GetListAllIndicator(), Indicator::HasDefaultValues(), and Indicator::nb_param().

Referenced by HandleComboBox(), and MainControllerIndicatorTHStock::Validation().

Here is the call graph for this function:

Here is the caller graph for this function:

void MainIndicatorTHStockFrame::SetStatusBar ( std::vector< std::string > &  vec_str_text)

print data from EventInfo in the status bar

Definition at line 566 of file MainIndicatorTHStockFrame.cxx.

References fStatusBar.

Referenced by EventInfo().

Here is the caller graph for this function:

void MainIndicatorTHStockFrame::SetTextResearch ( std::string  new_text)
inline

need for controller to set up

Definition at line 114 of file MainIndicatorTHStockFrame.h.

References fTextResearch.

Referenced by MainControllerIndicatorTHStock::GetSelected().

Here is the caller graph for this function:

void MainIndicatorTHStockFrame::SetTimeScale ( int  tmscl)
inline

Definition at line 116 of file MainIndicatorTHStockFrame.h.

References fComboTime.

Referenced by MainControllerIndicatorTHStock::GetSelected().

Here is the caller graph for this function:

bool MainIndicatorTHStockFrame::ToAddCanvas ( )
inline

check state of button

Definition at line 128 of file MainIndicatorTHStockFrame.h.

References check_to_add_canvas.

Referenced by MainControllerIndicatorTHStock::Validation().

Here is the caller graph for this function:

bool MainIndicatorTHStockFrame::ToMakeMain ( )
inline

Definition at line 129 of file MainIndicatorTHStockFrame.h.

References check_to_make_main.

Referenced by MainControllerIndicatorTHStock::Validation().

Here is the caller graph for this function:

Field Documentation

TGCheckButton* MainIndicatorTHStockFrame::check_to_add_canvas
private

Definition at line 81 of file MainIndicatorTHStockFrame.h.

Referenced by CreateToolBar(), ResetEntries(), and ToAddCanvas().

TGCheckButton* MainIndicatorTHStockFrame::check_to_make_main
private

Definition at line 83 of file MainIndicatorTHStockFrame.h.

Referenced by CreateToolBar(), ResetEntries(), and ToMakeMain().

TGComboBox* MainIndicatorTHStockFrame::fComboIndic
private
TGComboBox* MainIndicatorTHStockFrame::fComboTime
private
MainControllerIndicatorTHStock* MainIndicatorTHStockFrame::fcontroller
private

pointer to the parent controller

Definition at line 55 of file MainIndicatorTHStockFrame.h.

Referenced by CloseWindow(), ExtractInfoForValidation(), HandleButtons(), and ~MainIndicatorTHStockFrame().

TGHorizontalFrame* MainIndicatorTHStockFrame::fHframe_c_stock
private

frame for all THStockFrame ( 1 canvas stock inside each )

Definition at line 60 of file MainIndicatorTHStockFrame.h.

Referenced by GetTHStockFrame(), and MainIndicatorTHStockFrame().

TGHorizontalFrame* MainIndicatorTHStockFrame::fHframe_toolbar
private
TGLabel* MainIndicatorTHStockFrame::fLabelSearch
private

For selection and validation of a new indicator.

Definition at line 72 of file MainIndicatorTHStockFrame.h.

Referenced by CreateToolBar().

TGTextEntry* MainIndicatorTHStockFrame::fParamEntry[3]
private
TGStatusBar* MainIndicatorTHStockFrame::fStatusBar
private

Definition at line 90 of file MainIndicatorTHStockFrame.h.

Referenced by MainIndicatorTHStockFrame(), and SetStatusBar().

TGTextEntry* MainIndicatorTHStockFrame::fTextResearch
private
TGToolBar* MainIndicatorTHStockFrame::ftoolbar
private

Definition at line 68 of file MainIndicatorTHStockFrame.h.

Referenced by CreateToolBar(), and HandleToolBar().

TGTextButton* MainIndicatorTHStockFrame::fValidB
private

Validation button, after update of search and combo.

Definition at line 87 of file MainIndicatorTHStockFrame.h.

Referenced by CreateToolBar().

TGVerticalFrame* MainIndicatorTHStockFrame::fVframe_indicator
private

frame for all indicators

Definition at line 58 of file MainIndicatorTHStockFrame.h.

Referenced by GetIndicatorFrame(), and MainIndicatorTHStockFrame().

const char * MainIndicatorTHStockFrame::ListTimeScaleLabel = { "INST", "M5", "M10", "M30", "H1", "DAY", "WEEK", "MONTH", "TRIM", "YEAR" }
staticprivate

for TimeScale ComboxBox

Definition at line 95 of file MainIndicatorTHStockFrame.h.

Referenced by CreateToolBar(), and ExtractInfoForValidation().

Int_t MainIndicatorTHStockFrame::statbar_parts = {17, 12, 15, 56}
staticprivate

for Status Bar, place in %, no in a namespace, need to be static

Definition at line 97 of file MainIndicatorTHStockFrame.h.

Referenced by MainIndicatorTHStockFrame().

const char * MainIndicatorTHStockFrame::tips
staticprivate
Initial value:
= {
"Support/Resistance",
"Line Tendance",
"Anchor",
"Real Time",
0
}

For ToolBar, define text.

Definition at line 94 of file MainIndicatorTHStockFrame.h.

Referenced by CreateToolBar().

const char* MainIndicatorTHStockFrame::xpms[]
staticprivate

Definition at line 93 of file MainIndicatorTHStockFrame.h.

Referenced by CreateToolBar().


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