Report problems to ATLAS LXR Team (with time and IP address indicated)

The LXR Cross Referencer

source navigation ]
diff markup ]
identifier search ]
general search ]
 
 
Architecture: linux ]
Version: head ] [ nightly ] [ GaudiDev ]
  Links to LXR source navigation pages for stable releases [ 12.*.* ]   [ 13.*.* ]   [ 14.*.* ]   [ 15.*.* ] 

001 #include "FMDisplayControl.h"
002 
003 #ifdef WIN32
004  #include <Riostream.h>
005 #else
006  #include <iostream.h>
007 #endif
008 
009 using std::cout;
010 using std::endl;
011 
012 FMDisplayControl::FMDisplayControl(IDisplayFrame* parentFrame):
013         m_pParentFrame(parentFrame)
014 {   
015         TGVerticalFrame* fToolFrame = parentFrame->modulesFrame();
016 
017         TGGroupFrame* fDisplayControlGroupFrame = new TGGroupFrame(fToolFrame, "Display options", kVerticalFrame);
018         
019         m_pDisplayBackgroundCheckButton = new TGCheckButton(fDisplayControlGroupFrame, "background");
020         fDisplayControlGroupFrame->AddFrame(m_pDisplayBackgroundCheckButton, new TGLayoutHints(kLHintsBottom | kLHintsExpandX, -5, -5, 0, 0));
021         m_pDisplayBackgroundCheckButton->Connect("Clicked()", "FMDisplayControl", this, "OnDisplayBackground()");
022         m_pDisplayBackgroundCheckButton->SetState(kButtonUp);
023 
024         m_pDisplayGridCheckButton = new TGCheckButton(fDisplayControlGroupFrame, "grid");
025         fDisplayControlGroupFrame->AddFrame(m_pDisplayGridCheckButton, new TGLayoutHints(kLHintsBottom | kLHintsExpandX, -5, -5, 0, 0));
026         m_pDisplayGridCheckButton->Connect("Clicked()", "FMDisplayControl", this, "OnDisplayGrid()");
027         m_pDisplayGridCheckButton->SetState(kButtonDown);
028 
029         fToolFrame->AddFrame(fDisplayControlGroupFrame, new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX,2,2,0,0));
030 }
031 
032 void FMDisplayControl::OnDisplayBackground(void) {
033         m_pParentFrame->onDisplayBackground(m_pDisplayBackgroundCheckButton->GetState());
034 }
035 
036 void FMDisplayControl::OnDisplayGrid(void) {
037         m_pParentFrame->onDisplayGrid(m_pDisplayGridCheckButton->GetState());
038 }
039 
040 bool FMDisplayControl::getGridState() {
041         return (m_pDisplayGridCheckButton->GetState()==kButtonDown);
042 }
043 
044 bool FMDisplayControl::getBackgroundState() {
045         return (m_pDisplayBackgroundCheckButton->GetState()==kButtonDown);
046 }

source navigation ] diff markup ] identifier search ] general search ]

Due to the LXR bug, the updates fail sometimes to remove references to deleted files. The Saturday's full rebuilds fix these problems
This page was automatically generated by the LXR engine. Valid HTML 4.01!