ROOT_Application
2.0
C++ Core modules and GUIStock
|
GUIMainframe definition. More...
#include <GUIMainFrame.h>
Public Member Functions | |
GUIMainFrame (const TGWindow *p, UInt_t w, UInt_t h, GUIMainController *control) | |
virtual | ~GUIMainFrame () |
TGCompositeFrame * | GetFrame () |
void | CloseWindow () |
void | HandleMenu (Int_t id) |
slots More... | |
void | HandlePopup () |
void | HandlePopdown () |
void | UpdateRT (std::vector< std::string > &message) |
set by thread of fstockmanger, register the message in frealtime2 and quit More... | |
void | CheckUpdateRT () |
Slot for TimeOut of ReaTime2. More... | |
void | PrintList () |
for info, depreceated, only one frame0 here More... | |
ClassDef (GUIMainFrame, 0) | |
Private Types | |
enum | EMainFrameIdentifier { kLoadStock, kQuit, kUpdateCSV, kUpdatedCSV } |
try to use as private More... | |
Private Member Functions | |
void | CreateMenu () |
private methods More... | |
Private Attributes | |
GUIMainController * | fcontroller |
need a pointer to the controller to send messages, validation, click... More... | |
RealTime2 * | frealtime2 |
RealTime, singleton, initialized in constructor, set to on by default keep in main frame because ROOT dependence, but could be in main controller. More... | |
TGHorizontalFrame * | fHframe0 |
main sub-window for both IndicatorFrame and THStockFrame, owns by GUIMainFrame now will be the main frame for anything, pass as argument to be able to draw in it More... | |
TGMenuBar * | fMenuBar |
TGPopupMenu * | fMenuFile |
TGPopupMenu * | fMenuUpdate |
TGLayoutHints * | fMenuBarLayout |
TGLayoutHints * | fMenuBarItemLayout |
GUIMainframe definition.
New GUIMainFrame should be restricted to the view. So should give many access to its Widget, indirectly to limit coupling.
Definition at line 31 of file GUIMainFrame.h.
|
private |
try to use as private
Enumerator | |
---|---|
kLoadStock | |
kQuit | |
kUpdateCSV | |
kUpdatedCSV |
Definition at line 38 of file GUIMainFrame.h.
GUIMainFrame::GUIMainFrame | ( | const TGWindow * | p, |
UInt_t | w, | ||
UInt_t | h, | ||
GUIMainController * | control | ||
) |
|
virtual |
Definition at line 76 of file GUIMainFrame.cxx.
void GUIMainFrame::CheckUpdateRT | ( | ) |
Slot for TimeOut of ReaTime2.
Slot from RealTime2, event-loop checks if a message is stored in RT.
Definition at line 247 of file GUIMainFrame.cxx.
References fcontroller, frealtime2, RealTime2::GetMessage(), and GUIMainController::Updated().
GUIMainFrame::ClassDef | ( | GUIMainFrame | , |
0 | |||
) |
void GUIMainFrame::CloseWindow | ( | ) |
Definition at line 133 of file GUIMainFrame.cxx.
Referenced by HandleMenu().
|
private |
private methods
Definition at line 97 of file GUIMainFrame.cxx.
References fMenuBar, fMenuBarItemLayout, fMenuBarLayout, fMenuFile, fMenuUpdate, kLoadStock, kQuit, kUpdateCSV, and kUpdatedCSV.
|
inline |
Definition at line 78 of file GUIMainFrame.h.
References fHframe0.
Referenced by GUIMainController::CreateMainControllerIndicatorTHStock(), and GUIMainController::GUIMainController().
void GUIMainFrame::HandleMenu | ( | Int_t | id | ) |
slots
Handle Top Menu Items : Main, Update.
developed to be able to close Dialog as well, call gTerminate.
Definition at line 146 of file GUIMainFrame.cxx.
References CloseWindow(), kLoadStock, kQuit, kUpdateCSV, and kUpdatedCSV.
|
inline |
Definition at line 85 of file GUIMainFrame.h.
|
inline |
Definition at line 84 of file GUIMainFrame.h.
void GUIMainFrame::PrintList | ( | ) |
for info, depreceated, only one frame0 here
Print info.
Definition at line 273 of file GUIMainFrame.cxx.
References fHframe0.
void GUIMainFrame::UpdateRT | ( | std::vector< std::string > & | message | ) |
set by thread of fstockmanger, register the message in frealtime2 and quit
Set the message to RealTime Register the message to be retrieved by the event-loop when awaken @ param message : message received by SM to store in RT.
Definition at line 237 of file GUIMainFrame.cxx.
References frealtime2, and RealTime2::SetMessage().
Referenced by GUIMainController::AddObserver_Message().
|
private |
need a pointer to the controller to send messages, validation, click...
Definition at line 45 of file GUIMainFrame.h.
Referenced by CheckUpdateRT().
|
private |
main sub-window for both IndicatorFrame and THStockFrame, owns by GUIMainFrame now will be the main frame for anything, pass as argument to be able to draw in it
Definition at line 56 of file GUIMainFrame.h.
Referenced by GetFrame(), and PrintList().
|
private |
Definition at line 61 of file GUIMainFrame.h.
Referenced by CreateMenu().
|
private |
Definition at line 66 of file GUIMainFrame.h.
Referenced by CreateMenu().
|
private |
Definition at line 65 of file GUIMainFrame.h.
Referenced by CreateMenu().
|
private |
Definition at line 62 of file GUIMainFrame.h.
Referenced by CreateMenu().
|
private |
Definition at line 63 of file GUIMainFrame.h.
Referenced by CreateMenu().
|
private |
RealTime, singleton, initialized in constructor, set to on by default keep in main frame because ROOT dependence, but could be in main controller.
Definition at line 51 of file GUIMainFrame.h.
Referenced by CheckUpdateRT(), and UpdateRT().