#include <TGo4ConditionEditor.h>
Public Slots | |
virtual void | PleaseUpdateSlot () |
virtual void | SelectedCond (int t) |
virtual void | ArrayAll () |
virtual void | SetResultMode (int mode) |
virtual void | SetInvertMode (int mode) |
virtual void | ClearCounters () |
virtual void | LimitsChanged (const QString &) |
virtual void | LimitsReturnPressed () |
virtual void | SetLabel (bool on) |
virtual void | SetDrawLimits (bool on) |
virtual void | SetIntDraw (bool on) |
virtual void | SetXMeanDraw (bool on) |
virtual void | SetXRMSDraw (bool on) |
virtual void | SetYRMSDraw (bool on) |
virtual void | SetYMeanDraw (bool on) |
virtual void | SetXMaxDraw (bool on) |
virtual void | SetYMaxDraw (bool on) |
virtual void | SetCMaxDraw (bool on) |
virtual void | SetCondVisible (bool on) |
virtual void | RefreshClicked () |
virtual void | DisplayPressed () |
virtual void | UpdatePressed () |
virtual void | SaveCondition () |
virtual void | PrintConditionLog () |
virtual void | ModifyButton_clicked () |
virtual void | NPointsSpin_valueChanged (int npoint) |
virtual void | CutTable_valueChanged (int ncol, int nrow) |
virtual void | CutTable_contextMenuRequested (const QPoint &) |
virtual void | ContextMenuSlot (int) |
Public Member Functions | |
TGo4ConditionEditor (QWidget *parent=0, const char *name=0) | |
virtual bool | IsAcceptDrag (const char *itemname, TClass *cl, int kind) |
virtual void | DropItem (const char *itemname, TClass *cl, int kind) |
virtual void | linkedObjectUpdated (const char *linkname, TObject *obj) |
virtual void | linkedObjectRemoved (const char *linkname) |
virtual void | WorkWithCondition (const char *itemname) |
virtual void | ResetWidget () |
virtual void | RefreshWidget (bool checkindex) |
virtual TGo4Condition * | SelectedCondition () |
virtual bool | UpdateLimits () |
virtual void | ChangeConditionProperty (int id, bool on) |
virtual void | enterEvent (QEvent *) |
virtual void | leaveEvent (QEvent *) |
virtual void | SetChangeFlag (bool changed) |
virtual void | DrawCondition (bool useactive) |
virtual void | RedrawCondition () |
virtual bool | PrepareForAnalysis () |
virtual void | FillCutWidget (TCutG *cut) |
Protected Attributes | |
bool | fbTypingMode |
int | fiSelectedIndex |
bool | fbDrawOnNextRefresh |
int | fiLastChangeValue |
Definition at line 24 of file TGo4ConditionEditor.h.
TGo4ConditionEditor::TGo4ConditionEditor | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 | |||
) |
Definition at line 37 of file TGo4ConditionEditor.cpp.
References fbDrawOnNextRefresh, fiLastChangeValue, fiSelectedIndex, and ResetWidget().
void TGo4ConditionEditor::ArrayAll | ( | ) | [virtual, slot] |
Definition at line 410 of file TGo4ConditionEditor.cpp.
void TGo4ConditionEditor::ChangeConditionProperty | ( | int | id, | |
bool | on | |||
) | [virtual] |
Definition at line 492 of file TGo4ConditionEditor.cpp.
References fbTypingMode, PleaseUpdateSlot(), RedrawCondition(), SelectedCondition(), TGo4Condition::SetCMaxDraw(), TGo4Condition::SetIntDraw(), TGo4Condition::SetLabelDraw(), TGo4Condition::SetLimitsDraw(), TGo4Condition::SetVisible(), TGo4Condition::SetXMaxDraw(), TGo4Condition::SetXMeanDraw(), TGo4Condition::SetXRMSDraw(), TGo4Condition::SetYMaxDraw(), TGo4Condition::SetYMeanDraw(), and TGo4Condition::SetYRMSDraw().
Referenced by SetCMaxDraw(), SetCondVisible(), SetDrawLimits(), SetIntDraw(), SetLabel(), SetXMaxDraw(), SetXMeanDraw(), SetXRMSDraw(), SetYMaxDraw(), SetYMeanDraw(), and SetYRMSDraw().
void TGo4ConditionEditor::ClearCounters | ( | ) | [virtual, slot] |
Definition at line 436 of file TGo4ConditionEditor.cpp.
References QGo4Widget::Browser(), TGo4AnalysisProxy::ClearAnalysisObject(), TGo4BrowserProxy::DefineAnalysisObject(), QGo4Widget::GetLinked(), QGo4Widget::GetLinkedName(), PleaseUpdateSlot(), RefreshWidget(), and TGo4Condition::ResetCounts().
void TGo4ConditionEditor::ContextMenuSlot | ( | int | id | ) | [virtual, slot] |
Definition at line 855 of file TGo4ConditionEditor.cpp.
References FillCutWidget(), TGo4PolyCond::GetCut(), PleaseUpdateSlot(), RedrawCondition(), and SelectedCondition().
Referenced by CutTable_contextMenuRequested().
void TGo4ConditionEditor::CutTable_contextMenuRequested | ( | const QPoint & | pos | ) | [virtual, slot] |
Definition at line 834 of file TGo4ConditionEditor.cpp.
References AddIdAction(), ContextMenuSlot(), fbTypingMode, TGo4PolyCond::GetCut(), and SelectedCondition().
void TGo4ConditionEditor::CutTable_valueChanged | ( | int | ncol, | |
int | nrow | |||
) | [virtual, slot] |
Definition at line 805 of file TGo4ConditionEditor.cpp.
References fbTypingMode, TGo4PolyCond::GetCut(), PleaseUpdateSlot(), RedrawCondition(), and SelectedCondition().
void TGo4ConditionEditor::DisplayPressed | ( | ) | [virtual, slot] |
Definition at line 591 of file TGo4ConditionEditor.cpp.
References DrawCondition().
void TGo4ConditionEditor::DrawCondition | ( | bool | useactive | ) | [virtual] |
Definition at line 624 of file TGo4ConditionEditor.cpp.
References QGo4Widget::AddLink(), QGo4Widget::Browser(), TGo4BrowserProxy::DefineRelatedObject(), QGo4Widget::DrawItem(), TGo4ViewPanel::FindPadWithItem(), fiSelectedIndex, TGo4ViewPanel::GetActivePad(), QGo4Widget::GetLinked(), TGo4Condition::GetLinkedHistogram(), QGo4Widget::GetLinkedName(), TGo4Condition::IsHistogramLink(), QGo4Widget::LastActivePanel(), TGo4ViewPanel::MarkPadModified(), RedrawCondition(), RefreshWidget(), QGo4Widget::RemoveLink(), TGo4ViewPanel::SetSelectedMarker(), TGo4ViewPanel::ShootRepaintTimer(), and QGo4Widget::WhereItemDrawn().
Referenced by DisplayPressed(), and RefreshWidget().
void TGo4ConditionEditor::DropItem | ( | const char * | itemname, | |
TClass * | cl, | |||
int | kind | |||
) | [virtual] |
Reimplemented from QGo4Widget.
Definition at line 68 of file TGo4ConditionEditor.cpp.
References WorkWithCondition().
void TGo4ConditionEditor::enterEvent | ( | QEvent * | ) | [virtual] |
Definition at line 572 of file TGo4ConditionEditor.cpp.
References fiLastChangeValue, QGo4Widget::GetLinked(), TGo4Condition::IsChanged(), and RefreshWidget().
void TGo4ConditionEditor::FillCutWidget | ( | TCutG * | cut | ) | [virtual] |
Definition at line 742 of file TGo4ConditionEditor.cpp.
References fbTypingMode.
Referenced by ContextMenuSlot(), NPointsSpin_valueChanged(), and RefreshWidget().
bool TGo4ConditionEditor::IsAcceptDrag | ( | const char * | itemname, | |
TClass * | cl, | |||
int | kind | |||
) | [virtual] |
Reimplemented from QGo4Widget.
Definition at line 60 of file TGo4ConditionEditor.cpp.
void TGo4ConditionEditor::leaveEvent | ( | QEvent * | ) | [virtual] |
Definition at line 581 of file TGo4ConditionEditor.cpp.
void TGo4ConditionEditor::LimitsChanged | ( | const QString & | ) | [virtual, slot] |
Definition at line 455 of file TGo4ConditionEditor.cpp.
References UpdateLimits().
void TGo4ConditionEditor::LimitsReturnPressed | ( | ) | [virtual, slot] |
Definition at line 460 of file TGo4ConditionEditor.cpp.
References RedrawCondition(), and UpdateLimits().
void TGo4ConditionEditor::linkedObjectRemoved | ( | const char * | linkname | ) | [virtual] |
Reimplemented from QGo4Widget.
Definition at line 105 of file TGo4ConditionEditor.cpp.
References QGo4Widget::ShootCloseWidget().
void TGo4ConditionEditor::linkedObjectUpdated | ( | const char * | linkname, | |
TObject * | obj | |||
) | [virtual] |
Reimplemented from QGo4Widget.
Definition at line 95 of file TGo4ConditionEditor.cpp.
References RefreshWidget(), and TGo4Condition::SetChanged().
void TGo4ConditionEditor::ModifyButton_clicked | ( | ) | [virtual, slot] |
Definition at line 722 of file TGo4ConditionEditor.cpp.
References TGo4ViewPanel::FindPadWithItem(), fiSelectedIndex, QGo4Widget::GetLinked(), QGo4Widget::GetLinkedName(), TGo4ViewPanel::SetActivePad(), TGo4ViewPanel::SetSelectedMarker(), TGo4ViewPanel::StartConditionEditing(), and QGo4Widget::WhereItemDrawn().
void TGo4ConditionEditor::NPointsSpin_valueChanged | ( | int | npoint | ) | [virtual, slot] |
Definition at line 765 of file TGo4ConditionEditor.cpp.
References fbTypingMode, FillCutWidget(), TGo4PolyCond::GetCut(), PleaseUpdateSlot(), RedrawCondition(), SelectedCondition(), and TGo4PolyCond::SetValues().
void TGo4ConditionEditor::PleaseUpdateSlot | ( | ) | [virtual, slot] |
Definition at line 393 of file TGo4ConditionEditor.cpp.
References QGo4Widget::GetLinked(), and SetChangeFlag().
Referenced by ChangeConditionProperty(), ClearCounters(), ContextMenuSlot(), CutTable_valueChanged(), NPointsSpin_valueChanged(), SetInvertMode(), SetResultMode(), and UpdateLimits().
bool TGo4ConditionEditor::PrepareForAnalysis | ( | ) | [virtual] |
Definition at line 706 of file TGo4ConditionEditor.cpp.
References QGo4Widget::GetLinked(), TGo4Condition::GetLinkedHistogram(), TGo4Slot::ProduceFolderAndName(), SetChangeFlag(), and TGo4Condition::SetHistogram().
Referenced by SaveCondition(), and UpdatePressed().
void TGo4ConditionEditor::PrintConditionLog | ( | ) | [virtual, slot] |
Definition at line 700 of file TGo4ConditionEditor.cpp.
References QGo4Widget::GetLinked(), and TGo4Condition::Print().
void TGo4ConditionEditor::RedrawCondition | ( | ) | [virtual] |
Definition at line 681 of file TGo4ConditionEditor.cpp.
References TGo4ViewPanel::FindPadWithItem(), fiSelectedIndex, QGo4Widget::GetLinked(), QGo4Widget::GetLinkedName(), TGo4ViewPanel::MarkPadModified(), TGo4ViewPanel::SetSelectedMarker(), TGo4ViewPanel::ShootRepaintTimer(), and QGo4Widget::WhereItemDrawn().
Referenced by ChangeConditionProperty(), ContextMenuSlot(), CutTable_valueChanged(), DrawCondition(), LimitsReturnPressed(), NPointsSpin_valueChanged(), and SelectedCond().
void TGo4ConditionEditor::RefreshClicked | ( | ) | [virtual, slot] |
Definition at line 585 of file TGo4ConditionEditor.cpp.
References QGo4Widget::GetLinked(), and RefreshWidget().
Referenced by UpdatePressed().
void TGo4ConditionEditor::RefreshWidget | ( | bool | checkindex | ) | [virtual] |
Definition at line 194 of file TGo4ConditionEditor.cpp.
References QGo4Widget::Browser(), TGo4Condition::Counts(), TGo4BrowserProxy::DefineRelatedObject(), DrawCondition(), fbDrawOnNextRefresh, fbTypingMode, fiLastChangeValue, FillCutWidget(), TGo4ViewPanel::FindPadWithItem(), fiSelectedIndex, TGo4Condition::FixedResult(), TGo4ViewPanel::GetCanvas(), TGo4Condition::GetCMax(), TGo4PolyCond::GetCut(), TGo4Condition::GetDimension(), TGo4ViewPanel::GetDrawObjectLinkName(), TGo4Condition::GetIntegral(), QGo4Widget::GetLinked(), TGo4Condition::GetLinkedHistogram(), QGo4Widget::GetLinkedName(), TGo4Condition::GetMean(), TGo4CondArray::GetNumber(), TGo4ViewPanel::GetPadHistogram(), TGo4Condition::GetRMS(), TGo4ViewPanel::GetSelectedMarkerIndex(), TGo4ViewPanel::GetSelectedMarkerName(), TGo4Condition::GetXLow(), TGo4Condition::GetXMax(), TGo4Condition::GetXUp(), TGo4Condition::GetYLow(), TGo4Condition::GetYMax(), TGo4Condition::GetYUp(), TGo4Condition::IsChanged(), TGo4Condition::IsCMaxDraw(), TGo4Condition::IsEnabled(), TGo4Condition::IsHistogramLink(), TGo4Condition::IsIntDraw(), TGo4Condition::IsLabelDraw(), TGo4Condition::IsLimitsDraw(), TGo4Condition::IsTrue(), TGo4Condition::IsVisible(), TGo4Condition::IsXMaxDraw(), TGo4Condition::IsXMeanDraw(), TGo4Condition::IsXRMSDraw(), TGo4Condition::IsYMaxDraw(), TGo4Condition::IsYMeanDraw(), TGo4Condition::IsYRMSDraw(), SelectedCondition(), TGo4Condition::TrueCounts(), and QGo4Widget::WhereItemDrawn().
Referenced by ClearCounters(), DrawCondition(), TGo4MainWindow::editorServiceSlot(), enterEvent(), linkedObjectUpdated(), RefreshClicked(), SaveCondition(), SelectedCond(), UpdatePressed(), and WorkWithCondition().
void TGo4ConditionEditor::ResetWidget | ( | ) | [virtual] |
Reimplemented from QGo4Widget.
Definition at line 160 of file TGo4ConditionEditor.cpp.
Referenced by TGo4ConditionEditor(), and WorkWithCondition().
void TGo4ConditionEditor::SaveCondition | ( | ) | [virtual, slot] |
Definition at line 615 of file TGo4ConditionEditor.cpp.
References QGo4Widget::GetLinkedName(), PrepareForAnalysis(), RefreshWidget(), QGo4Widget::SaveItemToFile(), and SetChangeFlag().
void TGo4ConditionEditor::SelectedCond | ( | int | t | ) | [virtual, slot] |
Definition at line 400 of file TGo4ConditionEditor.cpp.
References fbTypingMode, fiSelectedIndex, RedrawCondition(), and RefreshWidget().
TGo4Condition * TGo4ConditionEditor::SelectedCondition | ( | ) | [virtual] |
Definition at line 378 of file TGo4ConditionEditor.cpp.
References TGo4CondArray::At(), fiSelectedIndex, and QGo4Widget::GetLinked().
Referenced by ChangeConditionProperty(), ContextMenuSlot(), CutTable_contextMenuRequested(), CutTable_valueChanged(), NPointsSpin_valueChanged(), RefreshWidget(), SetInvertMode(), SetResultMode(), and UpdateLimits().
void TGo4ConditionEditor::SetChangeFlag | ( | bool | changed | ) | [virtual] |
Definition at line 596 of file TGo4ConditionEditor.cpp.
References QGo4Widget::GetLinked(), and TGo4Condition::SetChanged().
Referenced by PleaseUpdateSlot(), PrepareForAnalysis(), SaveCondition(), and UpdatePressed().
void TGo4ConditionEditor::SetCMaxDraw | ( | bool | on | ) | [virtual, slot] |
Definition at line 561 of file TGo4ConditionEditor.cpp.
References ChangeConditionProperty().
void TGo4ConditionEditor::SetCondVisible | ( | bool | on | ) | [virtual, slot] |
Definition at line 566 of file TGo4ConditionEditor.cpp.
References ChangeConditionProperty().
void TGo4ConditionEditor::SetDrawLimits | ( | bool | on | ) | [virtual, slot] |
Definition at line 521 of file TGo4ConditionEditor.cpp.
References ChangeConditionProperty().
void TGo4ConditionEditor::SetIntDraw | ( | bool | on | ) | [virtual, slot] |
Definition at line 526 of file TGo4ConditionEditor.cpp.
References ChangeConditionProperty().
void TGo4ConditionEditor::SetInvertMode | ( | int | mode | ) | [virtual, slot] |
Definition at line 428 of file TGo4ConditionEditor.cpp.
References fbTypingMode, TGo4Condition::Invert(), PleaseUpdateSlot(), and SelectedCondition().
void TGo4ConditionEditor::SetLabel | ( | bool | on | ) | [virtual, slot] |
Definition at line 515 of file TGo4ConditionEditor.cpp.
References ChangeConditionProperty().
void TGo4ConditionEditor::SetResultMode | ( | int | mode | ) | [virtual, slot] |
Definition at line 415 of file TGo4ConditionEditor.cpp.
References TGo4Condition::Disable(), TGo4Condition::Enable(), fbTypingMode, PleaseUpdateSlot(), and SelectedCondition().
void TGo4ConditionEditor::SetXMaxDraw | ( | bool | on | ) | [virtual, slot] |
Definition at line 551 of file TGo4ConditionEditor.cpp.
References ChangeConditionProperty().
void TGo4ConditionEditor::SetXMeanDraw | ( | bool | on | ) | [virtual, slot] |
Definition at line 531 of file TGo4ConditionEditor.cpp.
References ChangeConditionProperty().
void TGo4ConditionEditor::SetXRMSDraw | ( | bool | on | ) | [virtual, slot] |
Definition at line 536 of file TGo4ConditionEditor.cpp.
References ChangeConditionProperty().
void TGo4ConditionEditor::SetYMaxDraw | ( | bool | on | ) | [virtual, slot] |
Definition at line 556 of file TGo4ConditionEditor.cpp.
References ChangeConditionProperty().
void TGo4ConditionEditor::SetYMeanDraw | ( | bool | on | ) | [virtual, slot] |
Definition at line 546 of file TGo4ConditionEditor.cpp.
References ChangeConditionProperty().
void TGo4ConditionEditor::SetYRMSDraw | ( | bool | on | ) | [virtual, slot] |
Definition at line 541 of file TGo4ConditionEditor.cpp.
References ChangeConditionProperty().
bool TGo4ConditionEditor::UpdateLimits | ( | ) | [virtual] |
Definition at line 466 of file TGo4ConditionEditor.cpp.
References fbTypingMode, TGo4Condition::GetDimension(), PleaseUpdateSlot(), SelectedCondition(), and TGo4Condition::SetValues().
Referenced by LimitsChanged(), and LimitsReturnPressed().
void TGo4ConditionEditor::UpdatePressed | ( | ) | [virtual, slot] |
Definition at line 602 of file TGo4ConditionEditor.cpp.
References QGo4Widget::BrowserItemRemote(), QGo4Widget::GetLinkedName(), PrepareForAnalysis(), RefreshClicked(), RefreshWidget(), SetChangeFlag(), and QGo4Widget::UpdateItemInAnalysis().
void TGo4ConditionEditor::WorkWithCondition | ( | const char * | itemname | ) | [virtual] |
Definition at line 111 of file TGo4ConditionEditor.cpp.
References QGo4Widget::AddLink(), QGo4Widget::BrowserItemRemote(), fbDrawOnNextRefresh, TGo4ViewPanel::FindPadWithItem(), fiSelectedIndex, QGo4Widget::GetLinked(), QGo4Widget::GetLinkedName(), TGo4ViewPanel::GetSelectedMarkerIndex(), TGo4Condition::IsChanged(), RefreshWidget(), ResetWidget(), and QGo4Widget::WhereItemDrawn().
Referenced by DropItem(), and TGo4MainWindow::editorServiceSlot().
bool TGo4ConditionEditor::fbDrawOnNextRefresh [protected] |
Definition at line 85 of file TGo4ConditionEditor.h.
Referenced by RefreshWidget(), TGo4ConditionEditor(), and WorkWithCondition().
bool TGo4ConditionEditor::fbTypingMode [protected] |
Definition at line 83 of file TGo4ConditionEditor.h.
Referenced by ChangeConditionProperty(), CutTable_contextMenuRequested(), CutTable_valueChanged(), FillCutWidget(), NPointsSpin_valueChanged(), RefreshWidget(), SelectedCond(), SetInvertMode(), SetResultMode(), and UpdateLimits().
int TGo4ConditionEditor::fiLastChangeValue [protected] |
Definition at line 86 of file TGo4ConditionEditor.h.
Referenced by enterEvent(), RefreshWidget(), and TGo4ConditionEditor().
int TGo4ConditionEditor::fiSelectedIndex [protected] |
Definition at line 84 of file TGo4ConditionEditor.h.
Referenced by DrawCondition(), ModifyButton_clicked(), RedrawCondition(), RefreshWidget(), SelectedCond(), SelectedCondition(), TGo4ConditionEditor(), and WorkWithCondition().