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
GUIMainFrame Class Reference

GUIMainframe definition. More...

#include <GUIMainFrame.h>

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

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

GUIMainControllerfcontroller
 need a pointer to the controller to send messages, validation, click... More...
 
RealTime2frealtime2
 RealTime, singleton, initialized in constructor, set to on by default keep in main frame because ROOT dependence, but could be in main controller. More...
 
TGHorizontalFramefHframe0
 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
 

Detailed Description

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.

Member Enumeration Documentation

try to use as private

Enumerator
kLoadStock 
kQuit 
kUpdateCSV 
kUpdatedCSV 

Definition at line 38 of file GUIMainFrame.h.

Constructor & Destructor Documentation

GUIMainFrame::GUIMainFrame ( const TGWindow *  p,
UInt_t  w,
UInt_t  h,
GUIMainController control 
)
GUIMainFrame::~GUIMainFrame ( )
virtual

Definition at line 76 of file GUIMainFrame.cxx.

Member Function Documentation

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

Here is the call graph for this function:

GUIMainFrame::ClassDef ( GUIMainFrame  ,
 
)
void GUIMainFrame::CloseWindow ( )

Definition at line 133 of file GUIMainFrame.cxx.

Referenced by HandleMenu().

Here is the caller graph for this function:

void GUIMainFrame::CreateMenu ( )
private

private methods

Definition at line 97 of file GUIMainFrame.cxx.

References fMenuBar, fMenuBarItemLayout, fMenuBarLayout, fMenuFile, fMenuUpdate, kLoadStock, kQuit, kUpdateCSV, and kUpdatedCSV.

TGCompositeFrame* GUIMainFrame::GetFrame ( )
inline

Definition at line 78 of file GUIMainFrame.h.

References fHframe0.

Referenced by GUIMainController::CreateMainControllerIndicatorTHStock(), and GUIMainController::GUIMainController().

Here is the caller graph for this function:

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.

Here is the call graph for this function:

void GUIMainFrame::HandlePopdown ( )
inline

Definition at line 85 of file GUIMainFrame.h.

void GUIMainFrame::HandlePopup ( )
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().

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

GUIMainController* GUIMainFrame::fcontroller
private

need a pointer to the controller to send messages, validation, click...

Definition at line 45 of file GUIMainFrame.h.

Referenced by CheckUpdateRT().

TGHorizontalFrame* GUIMainFrame::fHframe0
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().

TGMenuBar* GUIMainFrame::fMenuBar
private

Definition at line 61 of file GUIMainFrame.h.

Referenced by CreateMenu().

TGLayoutHints* GUIMainFrame::fMenuBarItemLayout
private

Definition at line 66 of file GUIMainFrame.h.

Referenced by CreateMenu().

TGLayoutHints* GUIMainFrame::fMenuBarLayout
private

Definition at line 65 of file GUIMainFrame.h.

Referenced by CreateMenu().

TGPopupMenu* GUIMainFrame::fMenuFile
private

Definition at line 62 of file GUIMainFrame.h.

Referenced by CreateMenu().

TGPopupMenu* GUIMainFrame::fMenuUpdate
private

Definition at line 63 of file GUIMainFrame.h.

Referenced by CreateMenu().

RealTime2* GUIMainFrame::frealtime2
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().


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