8 #ifndef _MAININDICATORTHSTOCKFRAME_H_
9 #define _MAININDICATORTHSTOCKFRAME_H_
16 #include <TGNumberEntry.h>
18 #include <TGToolBar.h>
20 #include <TGComboBox.h>
21 #include <TGStatusBar.h>
22 #include <TGComboBox.h>
23 #include <TGTextEntry.h>
93 static const char *
xpms[];
94 static const char *
tips[];
107 std::string name_frame, UInt_t w,UInt_t h );
143 void SetStatusBar ( std::vector<std::string> & vec_str_text );
static const char * ListTimeScaleLabel[]
for TimeScale ComboxBox
void SetTextResearch(std::string new_text)
need for controller to set up
void HandleButtons(Int_t id=-1)
TGVerticalFrame * fVframe_indicator
frame for all indicators
Controller for a dual frame containing Indicator+THStock(s).
MainControllerIndicatorTHStock * fcontroller
pointer to the parent controller
void ResetEntries()
reset all widget entries, may add options
void SetTimeScale(int tmscl)
void CreateToolBar(TGVerticalFrame *fVMain)
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.
static const char * xpms[]
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 ...
bool ToAddCanvas()
check state of button
TGCheckButton * check_to_add_canvas
TGTextButton * fValidB
Validation button, after update of search and combo.
TGHorizontalFrame * GetTHStockFrame() const
TGLabel * fLabelSearch
For selection and validation of a new indicator.
Contains an EmbeddedCanvas and a CanvasStock.
void ExtractInfoForValidation(std::string &longname)
Extract symbol, timescale, indicator and paramaters from input.
virtual void CloseWindow()
void HandleToolBar(Int_t id)
Frame contains Indicator and THStock.
TGVerticalFrame * GetIndicatorFrame() const
get the important child frames for drawing
Show all data loaded in memory, allow to deal with Button.
ClassDef(MainIndicatorTHStockFrame, 0)
TGCheckButton * check_to_make_main
TGTextEntry * fTextResearch
TGHorizontalFrame * fHframe_toolbar
void HandleComboBox(Int_t widgetId, Int_t id)
TGTextEntry * fParamEntry[3]
static Int_t statbar_parts[]
for Status Bar, place in %, no in a namespace, need to be static
virtual ~MainIndicatorTHStockFrame()
TGHorizontalFrame * fHframe_c_stock
frame for all THStockFrame ( 1 canvas stock inside each )
void SetStatusBar(std::vector< std::string > &vec_str_text)
print data from EventInfo in the status bar
static const char * tips[]
For ToolBar, define text.