ROOT_Application
2.0
C++ Core modules and GUIStock
|
Frame contains Indicator and THStock. More...
#include <MainIndicatorTHStockFrame.h>
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) |
TGVerticalFrame * | GetIndicatorFrame () const |
get the important child frames for drawing More... | |
TGHorizontalFrame * | GetTHStockFrame () 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 | |
MainControllerIndicatorTHStock * | fcontroller |
pointer to the parent controller More... | |
TGVerticalFrame * | fVframe_indicator |
frame for all indicators More... | |
TGHorizontalFrame * | fHframe_c_stock |
frame for all THStockFrame ( 1 canvas stock inside each ) More... | |
TGHorizontalFrame * | fHframe_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... | |
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.
|
private |
Enumerator | |
---|---|
kTextSearch | |
kChoiceTime | |
kChoiceIndic | |
kParamEntry0 | |
kParamEntry1 | |
kParamEntry2 | |
kAddCanvas | |
kMakeMain | |
kValidB | |
ktoto |
Definition at line 49 of file MainIndicatorTHStockFrame.h.
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.
|
virtual |
Definition at line 131 of file MainIndicatorTHStockFrame.cxx.
References fcontroller.
MainIndicatorTHStockFrame::ClassDef | ( | MainIndicatorTHStockFrame | , |
0 | |||
) |
|
virtual |
Definition at line 145 of file MainIndicatorTHStockFrame.cxx.
References MainControllerIndicatorTHStock::DeleteIndicatorTHstock(), and fcontroller.
|
private |
Entry for parameters
Definition at line 159 of file MainIndicatorTHStockFrame.cxx.
References check_to_add_canvas, check_to_make_main, fComboIndic, fComboTime, fHframe_toolbar, fLabelSearch, fParamEntry, fTextResearch, ftoolbar, fValidB, Indicator::GetListAllIndicator(), kAddCanvas, kChoiceIndic, kChoiceTime, kMakeMain, kParamEntry0, kParamEntry1, kParamEntry2, kTextSearch, kValidB, ListTimeScaleLabel, tips, and xpms.
Referenced by MainIndicatorTHStockFrame().
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.
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().
|
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().
|
inline |
Definition at line 120 of file MainIndicatorTHStockFrame.h.
References fHframe_c_stock.
Referenced by MainControllerIndicatorTHStock::AddCouple_Indicator_THStock(), and MainControllerIndicatorTHStock::UpdateIndicator().
void MainIndicatorTHStockFrame::HandleButtons | ( | Int_t | id = -1 | ) |
Definition at line 381 of file MainIndicatorTHStockFrame.cxx.
References ExtractInfoForValidation(), fcontroller, kAddCanvas, kMakeMain, kTextSearch, kValidB, MainControllerIndicatorTHStock::Validation(), and GUIException::what().
void MainIndicatorTHStockFrame::HandleComboBox | ( | Int_t | widgetId, |
Int_t | id | ||
) |
Definition at line 446 of file MainIndicatorTHStockFrame.cxx.
References kChoiceIndic, kChoiceTime, and ResetEntries().
void MainIndicatorTHStockFrame::HandleToolBar | ( | Int_t | id | ) |
Definition at line 476 of file MainIndicatorTHStockFrame.cxx.
References ftoolbar, EditorObjStock::SetAnchor(), and EditorObjStock::SetMode().
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().
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().
|
inline |
need for controller to set up
Definition at line 114 of file MainIndicatorTHStockFrame.h.
References fTextResearch.
Referenced by MainControllerIndicatorTHStock::GetSelected().
|
inline |
Definition at line 116 of file MainIndicatorTHStockFrame.h.
References fComboTime.
Referenced by MainControllerIndicatorTHStock::GetSelected().
|
inline |
check state of button
Definition at line 128 of file MainIndicatorTHStockFrame.h.
References check_to_add_canvas.
Referenced by MainControllerIndicatorTHStock::Validation().
|
inline |
Definition at line 129 of file MainIndicatorTHStockFrame.h.
References check_to_make_main.
Referenced by MainControllerIndicatorTHStock::Validation().
|
private |
Definition at line 81 of file MainIndicatorTHStockFrame.h.
Referenced by CreateToolBar(), ResetEntries(), and ToAddCanvas().
|
private |
Definition at line 83 of file MainIndicatorTHStockFrame.h.
Referenced by CreateToolBar(), ResetEntries(), and ToMakeMain().
|
private |
Definition at line 77 of file MainIndicatorTHStockFrame.h.
Referenced by CreateToolBar(), ExtractInfoForValidation(), MainIndicatorTHStockFrame(), and ResetEntries().
|
private |
Definition at line 75 of file MainIndicatorTHStockFrame.h.
Referenced by CreateToolBar(), ExtractInfoForValidation(), MainIndicatorTHStockFrame(), and SetTimeScale().
|
private |
pointer to the parent controller
Definition at line 55 of file MainIndicatorTHStockFrame.h.
Referenced by CloseWindow(), ExtractInfoForValidation(), HandleButtons(), and ~MainIndicatorTHStockFrame().
|
private |
frame for all THStockFrame ( 1 canvas stock inside each )
Definition at line 60 of file MainIndicatorTHStockFrame.h.
Referenced by GetTHStockFrame(), and MainIndicatorTHStockFrame().
|
private |
Definition at line 67 of file MainIndicatorTHStockFrame.h.
Referenced by CreateToolBar(), ExtractInfoForValidation(), and ResetEntries().
|
private |
For selection and validation of a new indicator.
Definition at line 72 of file MainIndicatorTHStockFrame.h.
Referenced by CreateToolBar().
|
private |
Definition at line 79 of file MainIndicatorTHStockFrame.h.
Referenced by CreateToolBar(), ExtractInfoForValidation(), and ResetEntries().
|
private |
Definition at line 90 of file MainIndicatorTHStockFrame.h.
Referenced by MainIndicatorTHStockFrame(), and SetStatusBar().
|
private |
Definition at line 73 of file MainIndicatorTHStockFrame.h.
Referenced by CreateToolBar(), ExtractInfoForValidation(), and SetTextResearch().
|
private |
Definition at line 68 of file MainIndicatorTHStockFrame.h.
Referenced by CreateToolBar(), and HandleToolBar().
|
private |
Validation button, after update of search and combo.
Definition at line 87 of file MainIndicatorTHStockFrame.h.
Referenced by CreateToolBar().
|
private |
frame for all indicators
Definition at line 58 of file MainIndicatorTHStockFrame.h.
Referenced by GetIndicatorFrame(), and MainIndicatorTHStockFrame().
|
staticprivate |
for TimeScale ComboxBox
Definition at line 95 of file MainIndicatorTHStockFrame.h.
Referenced by CreateToolBar(), and ExtractInfoForValidation().
|
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().
|
staticprivate |
For ToolBar, define text.
Definition at line 94 of file MainIndicatorTHStockFrame.h.
Referenced by CreateToolBar().
|
staticprivate |
Definition at line 93 of file MainIndicatorTHStockFrame.h.
Referenced by CreateToolBar().