00001 // ============================================================================ 00002 // $Id: TRecordDisplayComponent.hh,v 1.1 2004/03/01 02:36:25 goiwai Exp $ 00003 // $Name: CLDAQ-1-12-00 $ 00004 // $Log: TRecordDisplayComponent.hh,v $ 00005 // Revision 1.1 2004/03/01 02:36:25 goiwai 00006 // RecordDisplay用のクラス群を置きました. 00007 // お蔵入りになってたものに手直しを加えたものですが, 00008 // まだ不充分な点も在ります.徐々に修正していきたいと思います. 00009 // DataRecordオブジェクトを表示するためのツール群なのでRecordDisplayと呼 00010 // んでいます,多分にオフライン要素が強いです. 00011 // オンラインよりにしたものを後でEventDisplay(Eventを表示)としてコミット 00012 // します. 00013 // 00014 // ============================================================================ 00015 #ifdef __CLDAQ_ROOT_USE 00016 #ifndef CLDAQ__TRECORDDISPLAYCOMPONENT_HH 00017 #define CLDAQ__TRECORDDISPLAYCOMPONENT_HH 00018 00019 #include <TGFrame.h> 00020 #include "Tglobals.h" 00021 00022 class TRecordDisplay; 00023 class TGCompositeFrame; 00024 00025 class TRecordDisplayComponent 00026 { 00027 00028 protected: 00029 TRecordDisplay* theRecordDisplay; 00030 TGCompositeFrame* theParentFrame; 00031 Tbool theFinishBuild; 00032 00033 public: 00034 TRecordDisplayComponent( TRecordDisplay* evd ); 00035 TRecordDisplayComponent( TRecordDisplay* evd, TGCompositeFrame* frame ); 00036 00037 protected: 00038 virtual ~TRecordDisplayComponent(); 00039 00040 public: 00041 virtual Tvoid Build() = 0; 00042 00043 public: 00044 Tbool IsBuild() const; 00045 const TRecordDisplay* GetRecordDisplay() const; 00046 virtual Tvoid SetRecordDisplay( TRecordDisplay* evd ); 00047 const TGCompositeFrame* GetParentFrame() const; 00048 virtual Tvoid SetParentFrame( TGCompositeFrame* frame ); 00049 00050 }; 00051 00052 inline Tbool TRecordDisplayComponent::IsBuild() const 00053 { 00054 return theFinishBuild; 00055 } 00056 00057 inline const TRecordDisplay* TRecordDisplayComponent::GetRecordDisplay() const 00058 { 00059 return theRecordDisplay; 00060 } 00061 00062 inline Tvoid TRecordDisplayComponent::SetRecordDisplay( TRecordDisplay* evd ) 00063 { 00064 theRecordDisplay = evd; 00065 return; 00066 } 00067 00068 inline const TGCompositeFrame* TRecordDisplayComponent::GetParentFrame() const 00069 { 00070 return theParentFrame; 00071 } 00072 00073 inline Tvoid TRecordDisplayComponent::SetParentFrame( TGCompositeFrame* frame ) 00074 { 00075 theParentFrame = frame; 00076 if ( IsBuild() ) { 00077 Build(); 00078 } 00079 return; 00080 } 00081 00082 #endif 00083 #endif