#include <histaction.h>
Inheritance diagram for HistAction:
Definition at line 57 of file histaction.h.
anonymous enum [private] |
Definition at line 60 of file histaction.h.
Definition at line 42 of file histaction.cxx.
References TGCompositeFrame::AddFrame(), cA, cB, SetWindowAttributes_t::fBackgroundPixel, SetWindowAttributes_t::fMask, TString::Form(), gClient, TPad::GetCanvas(), TGClient::GetColorByName(), gSystem, gVirtualX, i, kButtonEngaged, kButtonUp, kHorizontalFrame, kLHintsCenterX, kLHintsExpandX, kLHintsExpandY, kLHintsLeft, kLHintsTop, kLVDetails, kSortByName, kTRUE, kVerticalFrame, kWABackPixel, M_CDUP, M_CLEAR_A, M_CLEAR_B, M_CLOSE, M_DETAIL_MODE, M_DRAW, M_EDIT, M_FILTER, M_IMPORT, M_LIST_A, M_LIST_B, M_LIST_MODE, M_MULTI, M_NEXT_A, M_NEXT_B, M_PREV_A, M_PREV_B, M_SAVE, M_SELECT, MapSubwindows(), MapWindow(), NULL, TAttFill::SetFillColor(), SetWindowName(), snprintf, and TSystem::WorkingDirectory().
HistAction::~HistAction | ( | ) | [virtual] |
Definition at line 555 of file histaction.cxx.
References fA1, fA2, fA3, fA4, fA5, fB1, fB2, fB3, fB4, fB5, fBinCont, fBinRange, fC1, fC2, fCanvasA, fCanvasB, fCdup, fChan, fClearButtonA, fClearButtonB, fCloseButton, fDetailMode, fDir, fDrawButton, fEditButton, fEntries, fF0, fFA, fFB, fFilterBox, fGetButton, fLayoutButton, fListBoxA, fListBoxB, fListMode, fMultiButton, fName, fNextButtonA, fNextButtonB, fPrevButtonA, fPrevButtonB, fRange, fSaveButton, fSelectButton, fTab, and fTitle.
Definition at line 1022 of file histaction.cxx.
References SetWindowAttributes_t::fBackgroundPixel, SetWindowAttributes_t::fMask, gClient, TGClient::GetColorByName(), gVirtualX, kTRUE, and kWABackPixel.
Referenced by ProcessMessage().
Definition at line 999 of file histaction.cxx.
References SetWindowAttributes_t::fBackgroundPixel, SetWindowAttributes_t::fMask, TGFrame::GetDefaultFrameBackground(), gVirtualX, kTRUE, and kWABackPixel.
Referenced by ProcessMessage().
Bool_t HistAction::isOverlap | ( | ) | [private] |
Definition at line 1039 of file histaction.cxx.
References histInd, horLay, i, j, kFALSE, kTRUE, and verLay.
Referenced by paintHist().
Bool_t HistAction::isLayout | ( | ) | [private] |
Definition at line 1065 of file histaction.cxx.
References horLay, i, kFALSE, kTRUE, and verLay.
Referenced by paintHist().
void HistAction::toScan | ( | ) | [private] |
Definition at line 804 of file histaction.cxx.
References TGListBox::AddEntry(), TGTextBuffer::AddText(), array, cB, TCanvas::cd(), TGTextBuffer::Clear(), clearScan(), entries, fChan, fChanBuf, TGObject::fClient, fEntries, fEntriesBuf, fListBoxB, fName, fNameBuf, TString::Form(), fRange, fRangeBuf, fTitle, fTitleBuf, TGClient::GetRoot(), gPad, hist, i, kMBIconExclamation, kMBOk, TGListBox::Layout(), TGCompositeFrame::MapSubwindows(), TGClient::NeedRedraw(), p, retval, totalB, and TCanvas::Update().
Referenced by ProcessMessage().
void HistAction::CloseWindow | ( | ) | [virtual] |
Reimplemented from TGMainFrame.
Definition at line 626 of file histaction.cxx.
Referenced by ProcessMessage().
Reimplemented from TGCompositeFrame.
Definition at line 1200 of file histaction.cxx.
References TGLBEntry::Activate(), TGListBox::AddEntry(), cA, TCanvas::cd(), TSystem::ChangeDirectory(), TGFileContainer::ChangeDirectory(), TCanvas::Clear(), clearScan(), CloseWindow(), command, cursA, cursB, TString::Data(), TGFileContainer::DisplayDirectory(), drawHist(), TCanvas::EditorBar(), TSystem::Exec(), TGObject::fClient, fDetailMode, fDir, fFileCont, fFileView, flags, fLayoutButton, fListBoxA, fListBoxB, fListMode, fMultiButton, TString::Form(), GET_MSG(), GET_SUBMSG(), TGObject::GetId(), TGListBox::GetMultipleSelections(), TGContainer::GetNextSelected(), TGClient::GetRoot(), TGListBox::GetSelectedEntry(), TGCompositeFrame::GetState(), TGButton::GetState(), gSystem, histInd, horLay, i, importFromFile(), indi, indj, j, k, kButton1, kButtonDown, kButtonUp, kC_COMMAND, kC_CONTAINER, kCM_BUTTON, kCM_CHECKBUTTON, kCM_COMBOBOX, kCM_LISTBOX, kCT_ITEMDBLCLICK, kFALSE, kLVDetails, kLVList, kMBIconExclamation, kMBIconQuestion, kMBNo, kMBOk, kMBYes, kTRUE, TString::Last(), TGListBox::Layout(), TString::Length(), M_CDUP, M_CLEAR_A, M_CLEAR_B, M_CLOSE, M_DETAIL_MODE, M_DRAW, M_EDIT, M_FILTER, M_IMPORT, M_LIST_A, M_LIST_B, M_LIST_MODE, M_MULTI, M_NEXT_A, M_NEXT_B, M_PREV_A, M_PREV_B, M_SAVE, M_SELECT, TGCompositeFrame::MapSubwindows(), MK_MSG(), TGClient::NeedRedraw(), NULL, TGContainer::NumSelected(), p, pads, paintHist(), processBoxB(), TGListBox::RemoveEntry(), resetFlags(), retval, S_ISDIR, TGListBox::Select(), TGFrame::SendMessage(), TGFileContainer::SetFilter(), TGListBox::SetMultipleSelections(), TGButton::SetState(), TGCheckButton::SetState(), TGListBox::SetTopEntry(), TGListView::SetViewMode(), toDefault(), toGreen(), toScan(), totalA, totalB, TCanvas::Update(), verLay, and TSystem::WorkingDirectory().
int HistAction::getNextTrueIndex | ( | ) |
Definition at line 723 of file histaction.cxx.
References cursorIter, flags, and kMaxHist.
Referenced by drawHist(), and paintHist().
void HistAction::resetIter | ( | ) | [inline] |
Definition at line 113 of file histaction.h.
References cursorIter.
Referenced by drawHist(), and paintHist().
void HistAction::resetFlags | ( | ) | [inline] |
Definition at line 114 of file histaction.h.
References flags, i, kFALSE, and kMaxHist.
Referenced by ProcessMessage().
void HistAction::setCanvasDivision | ( | Int_t | number | ) |
Definition at line 743 of file histaction.cxx.
References i, j, k, xDiv, and yDiv.
Referenced by drawHist().
void HistAction::drawHist | ( | ) |
Definition at line 774 of file histaction.cxx.
References TObjArray::At(), cA, TCanvas::cd(), TCanvas::Clear(), TPad::Divide(), TObject::Draw(), fHisto, getNextTrueIndex(), i, TPad::Modified(), number, resetIter(), setCanvasDivision(), TCanvas::Update(), xDiv, and yDiv.
Referenced by ProcessMessage().
void HistAction::processBoxB | ( | Int_t | par | ) |
Definition at line 885 of file histaction.cxx.
References TGTextBuffer::AddText(), array, cB, TCanvas::cd(), TGTextBuffer::Clear(), TH1::Draw(), fBinCont, fBinContBuf, fBinRange, fBinRangeBuf, TGObject::fClient, TString::Form(), hist, kRed, TGClient::NeedRedraw(), NULL, TH1F::SetBinContent(), TAttFill::SetFillColor(), TAttLine::SetLineColor(), temph, and TCanvas::Update().
Referenced by ProcessMessage().
void HistAction::doubleclickedBoxA | ( | const char * | text | ) |
Bool_t HistAction::importHist | ( | const char * | name | ) |
Definition at line 640 of file histaction.cxx.
References TObjArray::AddAt(), TGListBox::AddEntry(), fHisto, TROOT::FindObject(), fListBoxA, gROOT, h, kFALSE, kMaxHist, kTRUE, TGListBox::Layout(), TGCompositeFrame::MapSubwindows(), position, and totalA.
Bool_t HistAction::importFromFile | ( | const char * | filename | ) |
Definition at line 674 of file histaction.cxx.
References TObjArray::AddAt(), TGListBox::AddEntry(), TObjArray::At(), TGObject::fClient, fHisto, fListBoxA, TKey::GetClassName(), TObject::GetName(), TGClient::GetRoot(), kFALSE, kMaxHist, kMBIconExclamation, kMBOk, kTRUE, l, TGListBox::Layout(), TGCompositeFrame::MapSubwindows(), NULL, position, TKey::ReadObj(), retval, and totalA.
Referenced by ProcessMessage().
void HistAction::clearScan | ( | ) |
Definition at line 936 of file histaction.cxx.
References array, cB, TCanvas::Clear(), TGTextBuffer::Clear(), cursB, fBinCont, fBinContBuf, fBinRange, fBinRangeBuf, fChan, fChanBuf, TGObject::fClient, fEntries, fEntriesBuf, fListBoxB, fName, fNameBuf, fRange, fRangeBuf, fTitle, fTitleBuf, gPad, hist, TGListBox::Layout(), TGCompositeFrame::MapSubwindows(), TGClient::NeedRedraw(), NULL, TGListBox::RemoveEntries(), temph, totalB, and TCanvas::Update().
Referenced by ProcessMessage(), and toScan().
void HistAction::paintHist | ( | ) |
Definition at line 1084 of file histaction.cxx.
References TObjArray::At(), cA, TCanvas::cd(), TPad::cd(), TPad::Draw(), TObject::Draw(), TGObject::fClient, fHisto, getNextTrueIndex(), TGClient::GetRoot(), histInd, horLay, i, isLayout(), isOverlap(), j, kMBIconExclamation, kMBOk, TPad::Modified(), NULL, pads, ratio, resetIter(), retval, TAttFill::SetFillColor(), TCanvas::Update(), verLay, xmax, xmin, ymax, and ymin.
Referenced by doubleclickedBoxA(), and ProcessMessage().
TGCompositeFrame* HistAction::fF0 [private] |
TGCompositeFrame * HistAction::fFA [private] |
TGCompositeFrame * HistAction::fFB [private] |
TRootEmbeddedCanvas* HistAction::fCanvasA [private] |
TRootEmbeddedCanvas * HistAction::fCanvasB [private] |
TGListBox* HistAction::fListBoxA [private] |
Definition at line 63 of file histaction.h.
Referenced by importFromFile(), importHist(), ProcessMessage(), and ~HistAction().
TGListBox * HistAction::fListBoxB [private] |
Definition at line 63 of file histaction.h.
Referenced by clearScan(), ProcessMessage(), toScan(), and ~HistAction().
TGCompositeFrame* HistAction::fA1 [private] |
TGCompositeFrame * HistAction::fA2 [private] |
TGCompositeFrame * HistAction::fA3 [private] |
TGCompositeFrame * HistAction::fA4 [private] |
TGCompositeFrame * HistAction::fA5 [private] |
TGCompositeFrame* HistAction::fB1 [private] |
TGCompositeFrame * HistAction::fB2 [private] |
TGCompositeFrame * HistAction::fB3 [private] |
TGCompositeFrame * HistAction::fB4 [private] |
TGCompositeFrame * HistAction::fB5 [private] |
TGButton* HistAction::fCloseButton [private] |
TGButton* HistAction::fSaveButton [private] |
TGButton * HistAction::fEditButton [private] |
TGButton* HistAction::fDrawButton [private] |
TGButton * HistAction::fSelectButton [private] |
TGButton * HistAction::fClearButtonA [private] |
TGButton* HistAction::fPrevButtonA [private] |
TGButton * HistAction::fNextButtonA [private] |
TGButton* HistAction::fGetButton [private] |
TGButton * HistAction::fClearButtonB [private] |
TGButton * HistAction::fPrevButtonB [private] |
TGButton * HistAction::fNextButtonB [private] |
TGButton* HistAction::fLayoutButton[16] [private] |
TGCheckButton* HistAction::fMultiButton [private] |
TGTextEntry* HistAction::fName [private] |
Reimplemented from TGWindow.
Definition at line 73 of file histaction.h.
Referenced by clearScan(), toScan(), and ~HistAction().
TGTextEntry * HistAction::fTitle [private] |
TGTextEntry * HistAction::fChan [private] |
TGTextEntry * HistAction::fRange [private] |
TGTextEntry * HistAction::fEntries [private] |
TGTextBuffer* HistAction::fNameBuf [private] |
TGTextBuffer * HistAction::fTitleBuf [private] |
TGTextBuffer * HistAction::fChanBuf [private] |
TGTextBuffer * HistAction::fRangeBuf [private] |
TGTextBuffer * HistAction::fEntriesBuf [private] |
TGTextEntry* HistAction::fBinCont [private] |
Definition at line 75 of file histaction.h.
Referenced by clearScan(), processBoxB(), and ~HistAction().
TGTextEntry * HistAction::fBinRange [private] |
Definition at line 75 of file histaction.h.
Referenced by clearScan(), processBoxB(), and ~HistAction().
TGTextBuffer* HistAction::fBinContBuf [private] |
TGTextBuffer * HistAction::fBinRangeBuf [private] |
TGTab* HistAction::fTab [private] |
TGCompositeFrame* HistAction::fC1 [private] |
TGCompositeFrame * HistAction::fC2 [private] |
const TGPicture* HistAction::fPcdup [private] |
Definition at line 79 of file histaction.h.
const TGPicture* HistAction::fPlist [private] |
Definition at line 80 of file histaction.h.
const TGPicture* HistAction::fPdetail [private] |
Definition at line 81 of file histaction.h.
TGPictureButton* HistAction::fCdup [private] |
TGPictureButton * HistAction::fListMode [private] |
TGPictureButton * HistAction::fDetailMode [private] |
TGListBox* HistAction::fDir [private] |
TGListView* HistAction::fFileView [private] |
TGFileContainer* HistAction::fFileCont [private] |
TGComboBox* HistAction::fFilterBox [private] |
TObjArray* HistAction::fHisto [private] |
Definition at line 88 of file histaction.h.
Referenced by drawHist(), importFromFile(), importHist(), and paintHist().
Int_t HistAction::position [private] |
Bool_t HistAction::flags[kMaxHist] [private] |
Definition at line 90 of file histaction.h.
Referenced by getNextTrueIndex(), ProcessMessage(), and resetFlags().
TPad* HistAction::pads[16] [private] |
Int_t HistAction::histInd[16] [private] |
Definition at line 93 of file histaction.h.
Referenced by isOverlap(), paintHist(), and ProcessMessage().
Int_t HistAction::horLay[4] [private] |
Definition at line 94 of file histaction.h.
Referenced by isLayout(), isOverlap(), paintHist(), and ProcessMessage().
Int_t HistAction::verLay[4] [private] |
Definition at line 95 of file histaction.h.
Referenced by isLayout(), isOverlap(), paintHist(), and ProcessMessage().
Int_t HistAction::cursorIter [private] |
Int_t HistAction::xDiv [private] |
Int_t HistAction::yDiv [private] |