Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Attributes | Friends

QGo4Widget Class Reference

#include <QGo4Widget.h>

Inheritance diagram for QGo4Widget:
QUserPanel TGo4AnalysisConfiguration TGo4AnalysisStatusMonitor TGo4AnalysisWindow TGo4Browser TGo4BrowserOptions TGo4CommandLine TGo4ConditionEditor TGo4ConditionInfo TGo4DabcMonitor TGo4EditDynEntry TGo4EventInfo TGo4FitPanel TGo4HisDrawOptionsShort TGo4HistogramInfo TGo4LogInfo TGo4MBSViewer TGo4ParaEdit TGo4ScaleOptions TGo4TreeViewer TGo4ViewPanel

List of all members.

Public Types

enum  {
  service_DragEnter = 1, service_DropEvent = 2, service_CreateItem = 3, service_DrawItem = 4,
  service_EditItem = 5, service_ShowInfo = 6, service_EditInSlot = 7, service_SaveItem = 8,
  service_UpdateAnalysisItem = 9, service_StatusMessage = 15, service_CreateViewPanel = 17, service_BrowserItemRemote = 18,
  service_Browser = 19, service_SaveToMemory = 20, service_GetAnalysis = 21, service_AddEditorLink = 22,
  service_AddDirectLink = 23, service_AddLinkInSlot = 24, service_GetTopSlot = 25, service_AddEditorSlot = 26,
  service_SetLinkedName = 27, service_GetLinkedName = 28, service_GetLinkedName2 = 29, service_GetLinked0 = 30,
  service_GetLinked1 = 31, service_GetLinked2 = 32, service_RemoveLink = 33, service_RemoveAllLinks = 34,
  service_ObjectCreated = 35, service_ConnectPad = 36, service_LastActivePanel = 37, service_WhereItemDrawn = 38,
  service_UndrawItem = 39, service_General = 40, service_PanelTimer = 41, service_HelpWindow = 42,
  service_HotStart = 43, panel_Activated = 101, panel_Modified = 102, panel_Updated = 103,
  panel_ActiveUpdated = 104, panel_PadDeleted = 105, panel_Deleted = 106
}

Public Slots

void ResetWidgetSlot ()

Signals

void widgetService (QGo4Widget *editor, int serviceid, const char *str, void *par)

Public Member Functions

 QGo4Widget (QWidget *parent=0, const char *name=0, Qt::WindowFlags f=0)
virtual ~QGo4Widget ()
virtual bool IsAcceptDrag (const char *itemname, TClass *cl, int kind)
virtual void DropItem (const char *itemname, TClass *cl, int kind)
virtual void ResetWidget ()
void ObjectCreatedByWidget (const char *itemname, TClass *cl)
void ProcessSignal (const char *linkname, bool assigned, TObject *obj, TGo4Slot *slot)

Protected Member Functions

virtual void closeEvent (QCloseEvent *e)
virtual void dragEnterEvent (QDragEnterEvent *e)
virtual void dragMoveEvent (QDragMoveEvent *e)
virtual void dropEvent (QDropEvent *e)
void AddLink (const char *itemname, const char *linkname)
void AddLink (TGo4Slot *slot, const char *linkname)
TGo4SlotAddLink (const char *itemname, TGo4Slot *parent)
TGo4SlotGetTopSlot (bool force=false)
TGo4SlotAddSlot (const char *slotname)
void SetLinkedName (TGo4Slot *slot, const char *itemname)
const char * GetLinkedName (const char *linkname)
const char * GetLinkedName (TGo4Slot *slot)
TObject * GetLinked (const char *linkname, int updatelevel)
void RemoveLink (const char *linkname, bool blockreset=true)
void RemoveAllLinks (bool blockreset=true)
void RemoveLinksMasked (const char *startedwith=0, bool blockreset=true)
bool BrowserItemRemote (const char *itemname)
TGo4BrowserProxyBrowser ()
void StatusMessage (const QString &message)
void AskToCreateObject (TClass *cl, int isremote)
void ShowItemInfo (const QString &itemname)
TGo4ViewPanelCreateViewPanel (int ndiv=0)
TGo4ViewPanelDrawItem (const QString &itemname, TGo4ViewPanel *panel=0, TPad *pad=0, bool activate=true, int updatelevel=-1)
TGo4ViewPanelWhereItemDrawn (const char *itemname)
void HelpWindow (const char *filename, const char *msg=0)
void UndrawItem (const char *itemname)
TGo4ViewPanelLastActivePanel ()
void EditItem (const QString &itemname)
void EditObjectInSlot (TGo4Slot *slot)
QString SaveObjectInMemory (const char *foldername, TObject *obj)
bool SaveItemToFile (const char *itemname, const char *subfolder=0)
bool UpdateItemInAnalysis (const char *itemname, TObject *obj=0)
void InformThatObjectCreated (const char *itemname, TClass *cl)
TGo4AnalysisProxyGetAnalysis (const char *itemname=0)
void StartHotstart (const char *filename)
void ConnectPad (TPad *pad)
void CallServiceFunc (int id, const char *str=0, void *par=0)
void ServiceCall (const char *name, void *par=0)
virtual void requestedObjectCreated (const char *itemname, TClass *cl)
virtual void linkedObjectUpdated (const char *linkname, TObject *obj)
virtual void linkedObjectRemoved (const char *linkname)
virtual void linkedUpdated (TGo4Slot *slot, TObject *obj)
virtual void linkedRemoved (TGo4Slot *slot, TObject *obj)
void setCanDestroyWidget (bool on=true)
void CallPanelFunc (int id, TPad *pad=0)
void ShootResetWidget ()
void ShootCloseWidget (bool closeparent=false)
bool IsUpdateBlocked () const

Private Attributes

bool fWaitsForObjectCreation
bool fCanDestroyWidget
bool fResetWidgetShooted
 indicate that widget can be destroyed
bool fBlockUpdate
 indicates that reset widget timer is shoot
TGo4BrowserProxyfBrowserProxy
 set when automatic reset must be blocked

Friends

class TGo4MainWindow

Detailed Description

Definition at line 55 of file QGo4Widget.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
service_DragEnter 
service_DropEvent 
service_CreateItem 
service_DrawItem 
service_EditItem 
service_ShowInfo 
service_EditInSlot 
service_SaveItem 
service_UpdateAnalysisItem 
service_StatusMessage 
service_CreateViewPanel 
service_BrowserItemRemote 
service_Browser 
service_SaveToMemory 
service_GetAnalysis 
service_AddEditorLink 
service_AddDirectLink 
service_AddLinkInSlot 
service_GetTopSlot 
service_AddEditorSlot 
service_SetLinkedName 
service_GetLinkedName 
service_GetLinkedName2 
service_GetLinked0 
service_GetLinked1 
service_GetLinked2 
service_RemoveLink 
service_RemoveAllLinks 
service_ObjectCreated 
service_ConnectPad 
service_LastActivePanel 
service_WhereItemDrawn 
service_UndrawItem 
service_General 
service_PanelTimer 
service_HelpWindow 
service_HotStart 
panel_Activated 
panel_Modified 
panel_Updated 
panel_ActiveUpdated 
panel_PadDeleted 
panel_Deleted 

Definition at line 63 of file QGo4Widget.h.


Constructor & Destructor Documentation

QGo4Widget::QGo4Widget ( QWidget *  parent = 0,
const char *  name = 0,
Qt::WindowFlags  f = 0 
)

Definition at line 25 of file QGo4Widget.cpp.

QGo4Widget::~QGo4Widget (  )  [virtual]

Definition at line 37 of file QGo4Widget.cpp.

References RemoveLinksMasked().


Member Function Documentation

void QGo4Widget::AddLink ( TGo4Slot slot,
const char *  linkname 
) [protected]

create link for object in slot with name linkname

Definition at line 122 of file QGo4Widget.cpp.

References service_AddDirectLink, and widgetService().

TGo4Slot * QGo4Widget::AddLink ( const char *  itemname,
TGo4Slot parent 
) [protected]

create link for item in dedicated slot parent

Definition at line 127 of file QGo4Widget.cpp.

References service_AddLinkInSlot, and widgetService().

TGo4Slot * QGo4Widget::AddSlot ( const char *  slotname  )  [protected]

add slot with specific name to widget top folder

Definition at line 141 of file QGo4Widget.cpp.

References service_AddEditorSlot, and widgetService().

Referenced by TGo4ParaEdit::EditFitter(), TGo4EventInfo::RefreshClicked(), TGo4HistogramInfo::WorkWithHistogram(), and TGo4ParaEdit::WorkWithParameter().

void QGo4Widget::AskToCreateObject ( TClass *  cl,
int  isremote 
) [protected]

Function call dialog to create object of appropriate class isremote==0 - object should be created localy and widget will be informed isremote==1 - object should be created on analysis side and widget should be informaed isremote==-1 - activate creation dialog without restriction (remote or local), widget will not be informed

Definition at line 277 of file QGo4Widget.cpp.

References fWaitsForObjectCreation, service_CreateItem, and widgetService().

Referenced by TGo4EditDynEntry::ConNewButton_clicked(), TGo4EditDynEntry::HisCreateButton_clicked(), and TGo4TreeViewer::NewHistBtn_clicked().

TGo4BrowserProxy * QGo4Widget::Browser (  )  [protected]

Definition at line 219 of file QGo4Widget.cpp.

References fBrowserProxy, service_Browser, and widgetService().

Referenced by TGo4ViewPanel::AddDrawObject(), TGo4ParaEdit::ApplyClicked(), TGo4BrowserOptions::ClearBtn_clicked(), TGo4ConditionEditor::ClearCounters(), TGo4EditDynEntry::ClearHistogramClicked(), TGo4ConditionEditor::DrawCondition(), TGo4ViewPanel::DropOnPad(), TGo4BrowserOptions::FilterBox_activated(), TGo4ViewPanel::GetConditionBtn_clicked(), TGo4ViewPanel::IsAcceptDrag(), TGo4Browser::ItemDropAcceptSlot(), TGo4Browser::ItemDropProcessSlot(), TGo4AnalysisStatusMonitor::linkedObjectRemoved(), TGo4AnalysisWindow::linkedObjectUpdated(), TGo4EventInfo::MbsButton_clicked(), TGo4ViewPanel::MenuCommandExecutedSlot(), TGo4EditDynEntry::PrintDynList(), TGo4TreeViewer::ProcessDropEvent(), TGo4EditDynEntry::ProcessDropEvent(), TGo4ViewPanel::ProcessPictureRedraw(), TGo4EditDynEntry::ProcessTreeDropEvent(), TGo4BrowserOptions::RefreshBtn_clicked(), TGo4EventInfo::RefreshClicked(), TGo4EditDynEntry::RefreshWidget(), TGo4ConditionEditor::RefreshWidget(), TGo4ParaEdit::saveFile(), TGo4BrowserOptions::StartMonitorBtn_clicked(), TGo4BrowserOptions::StopMonitorBtn_clicked(), TGo4TreeViewer::TreeDrawBtn_clicked(), TGo4MBSViewer::TrendHisto(), TGo4DabcMonitor::updateStats(), TGo4DabcMonitor::updateTrending(), TGo4BrowserOptions::UpdateView(), TGo4EventInfo::WorkWithEvent(), TGo4HistogramInfo::WorkWithHistogram(), TGo4ParaEdit::WorkWithParameter(), and TGo4AnalysisWindow::~TGo4AnalysisWindow().

void QGo4Widget::CallServiceFunc ( int  id,
const char *  str = 0,
void *  par = 0 
) [protected]

Definition at line 393 of file QGo4Widget.cpp.

References widgetService().

Referenced by ServiceCall(), and TGo4ViewPanel::ShootRepaintTimer().

void QGo4Widget::closeEvent ( QCloseEvent *  e  )  [protected, virtual]

Definition at line 93 of file QGo4Widget.cpp.

References fCanDestroyWidget.

void QGo4Widget::ConnectPad ( TPad *  pad  )  [protected]

connect pad axis change signals to react on such signals

Definition at line 229 of file QGo4Widget.cpp.

References service_ConnectPad, and widgetService().

Referenced by TGo4ViewPanel::SetSlotPad().

TGo4ViewPanel * QGo4Widget::CreateViewPanel ( int  ndiv = 0  )  [protected]
void QGo4Widget::dragEnterEvent ( QDragEnterEvent *  e  )  [protected, virtual]

Definition at line 102 of file QGo4Widget.cpp.

References service_DragEnter, and widgetService().

void QGo4Widget::dragMoveEvent ( QDragMoveEvent *  e  )  [protected, virtual]

Definition at line 107 of file QGo4Widget.cpp.

void QGo4Widget::dropEvent ( QDropEvent *  e  )  [protected, virtual]

Definition at line 112 of file QGo4Widget.cpp.

References service_DropEvent, and widgetService().

void QGo4Widget::DropItem ( const char *  itemname,
TClass *  cl,
int  kind 
) [virtual]
void QGo4Widget::EditObjectInSlot ( TGo4Slot slot  )  [protected]

Definition at line 352 of file QGo4Widget.cpp.

References service_EditInSlot, and widgetService().

Referenced by TGo4ParaEdit::EditFitter().

TGo4AnalysisProxy * QGo4Widget::GetAnalysis ( const char *  itemname = 0  )  [protected]
TObject * QGo4Widget::GetLinked ( const char *  linkname,
int  updatelevel 
) [protected]

Definition at line 172 of file QGo4Widget.cpp.

References widgetService().

Referenced by TGo4Browser::BrowserProxy(), TGo4ConditionEditor::ClearCounters(), TGo4EditDynEntry::ClearHistogramClicked(), TGo4EditDynEntry::ConXnameEdit_textChanged(), TGo4EditDynEntry::ConYnameEdit_textChanged(), TGo4FitPanel::CreateFitSlotLink(), TGo4EditDynEntry::CutExprEdit_textChanged(), TGo4ConditionEditor::DrawCondition(), TGo4EditDynEntry::DrawExprEdit_textChanged(), QUserPanel::DrawObjectOnCanvas(), TGo4EditDynEntry::DropCondition(), TGo4EditDynEntry::DropHistogram(), QUserPanel::DropItem(), TGo4EditDynEntry::DropTree(), TGo4EditDynEntry::DynIntervalSpin_valueChanged(), TGo4AnalysisConfiguration::EnableAutoSaveSlot(), TGo4ConditionEditor::enterEvent(), TGo4EditDynEntry::EntryEnabledButton_toggled(), TGo4EditDynEntry::EvXnameEdit_textChanged(), TGo4EditDynEntry::EvYnameEdit_textChanged(), TGo4EditDynEntry::EvZnameEdit_textChanged(), TGo4FitPanel::GetFitter(), TGo4AnalysisConfiguration::LineEdit_AutoSaveFile(), TGo4AnalysisConfiguration::linkedObjectUpdated(), TGo4AnalysisConfiguration::LoadConfiguration(), TGo4ConditionEditor::ModifyButton_clicked(), TGo4ConditionEditor::PleaseUpdateSlot(), TGo4EditDynEntry::PrepareEntryForAnalysis(), TGo4ConditionEditor::PrepareForAnalysis(), TGo4ConditionEditor::PrintConditionLog(), TGo4ConditionEditor::RedrawCondition(), TGo4EditDynEntry::RefreshClicked(), TGo4ConditionEditor::RefreshClicked(), TGo4EditDynEntry::RefreshWidget(), TGo4ConditionEditor::RefreshWidget(), TGo4AnalysisConfiguration::RefreshWidget(), TGo4AnalysisConfiguration::RequestAnalysisStatus(), TGo4AnalysisConfiguration::SaveConfiguration(), TGo4ParaEdit::saveFile(), TGo4ConditionEditor::SelectedCondition(), TGo4AnalysisConfiguration::SetAutoSaveInterval(), TGo4AnalysisConfiguration::SetAutoSaveOverwrite(), TGo4ConditionEditor::SetChangeFlag(), TGo4AnalysisConfiguration::SetCompressionLevel(), TGo4FitPanel::UpdateObjectReferenceInSlot(), TGo4ConditionInfo::WorkWithCondition(), TGo4ConditionEditor::WorkWithCondition(), TGo4EditDynEntry::WorkWithEntry(), TGo4FitPanel::WorkWithFitter(), TGo4FitPanel::WorkWithFitterInSlot(), TGo4HistogramInfo::WorkWithHistogram(), TGo4ParaEdit::WorkWithParameter(), and TGo4AnalysisConfiguration::WriteAutoSave().

const char * QGo4Widget::GetLinkedName ( TGo4Slot slot  )  [protected]

returns name of item, which was linked in that slot

Definition at line 162 of file QGo4Widget.cpp.

References service_GetLinkedName2, and widgetService().

TGo4Slot * QGo4Widget::GetTopSlot ( bool  force = false  )  [protected]

return top slot of structure, corresponding to this widget

Definition at line 134 of file QGo4Widget.cpp.

References service_GetTopSlot, and widgetService().

Referenced by TGo4ViewPanel::GetPanelSlot().

void QGo4Widget::HelpWindow ( const char *  filename,
const char *  msg = 0 
) [protected]

Definition at line 330 of file QGo4Widget.cpp.

References service_HelpWindow, and widgetService().

Referenced by TGo4CommandLine::PrintHelp().

void QGo4Widget::InformThatObjectCreated ( const char *  itemname,
TClass *  cl 
) [protected]

Definition at line 284 of file QGo4Widget.cpp.

References service_ObjectCreated, and widgetService().

Referenced by TGo4AnalysisWindow::linkedObjectUpdated().

bool QGo4Widget::IsAcceptDrag ( const char *  itemname,
TClass *  cl,
int  kind 
) [virtual]
bool QGo4Widget::IsUpdateBlocked (  )  const [inline, protected]

Definition at line 204 of file QGo4Widget.h.

Referenced by ProcessSignal().

void QGo4Widget::linkedObjectRemoved ( const char *  linkname  )  [protected, virtual]
void QGo4Widget::linkedObjectUpdated ( const char *  linkname,
TObject *  obj 
) [protected, virtual]
void QGo4Widget::linkedRemoved ( TGo4Slot slot,
TObject *  obj 
) [protected, virtual]

Reimplemented in TGo4FitPanel, and TGo4ViewPanel.

Definition at line 273 of file QGo4Widget.cpp.

Referenced by ProcessSignal().

void QGo4Widget::linkedUpdated ( TGo4Slot slot,
TObject *  obj 
) [protected, virtual]

Reimplemented in TGo4ViewPanel.

Definition at line 269 of file QGo4Widget.cpp.

Referenced by ProcessSignal().

void QGo4Widget::ObjectCreatedByWidget ( const char *  itemname,
TClass *  cl 
)

Definition at line 42 of file QGo4Widget.cpp.

References fWaitsForObjectCreation, and requestedObjectCreated().

Referenced by TGo4MainWindow::editorServiceSlot().

void QGo4Widget::ProcessSignal ( const char *  linkname,
bool  assigned,
TObject *  obj,
TGo4Slot slot 
)
void QGo4Widget::RemoveAllLinks ( bool  blockreset = true  )  [protected]
void QGo4Widget::RemoveLink ( const char *  linkname,
bool  blockreset = true 
) [protected]
void QGo4Widget::RemoveLinksMasked ( const char *  startedwith = 0,
bool  blockreset = true 
) [protected]
void QGo4Widget::requestedObjectCreated ( const char *  itemname,
TClass *  cl 
) [protected, virtual]

Reimplemented in TGo4EditDynEntry, and TGo4TreeViewer.

Definition at line 289 of file QGo4Widget.cpp.

Referenced by ObjectCreatedByWidget().

void QGo4Widget::ResetWidgetSlot (  )  [slot]

Definition at line 79 of file QGo4Widget.cpp.

References ResetWidget().

Referenced by ShootResetWidget().

bool QGo4Widget::SaveItemToFile ( const char *  itemname,
const char *  subfolder = 0 
) [protected]
QString QGo4Widget::SaveObjectInMemory ( const char *  foldername,
TObject *  obj 
) [protected]
void QGo4Widget::setCanDestroyWidget ( bool  on = true  )  [inline, protected]
void QGo4Widget::SetLinkedName ( TGo4Slot slot,
const char *  itemname 
) [protected]

set name of item, which was linked by this slot

Definition at line 148 of file QGo4Widget.cpp.

References service_SetLinkedName, and widgetService().

Referenced by TGo4ViewPanel::AddDrawObject(), and TGo4MainWindow::editorServiceSlot().

void QGo4Widget::ShootResetWidget (  )  [protected]

Definition at line 60 of file QGo4Widget.cpp.

References fResetWidgetShooted, and ResetWidgetSlot().

Referenced by linkedObjectRemoved().

void QGo4Widget::ShowItemInfo ( const QString &  itemname  )  [protected]
void QGo4Widget::StartHotstart ( const char *  filename  )  [protected]

Definition at line 335 of file QGo4Widget.cpp.

References service_HotStart, and widgetService().

Referenced by TGo4CommandLine::enterPressedSlot().

void QGo4Widget::StatusMessage ( const QString &  message  )  [protected]
void QGo4Widget::UndrawItem ( const char *  itemname  )  [protected]

Definition at line 325 of file QGo4Widget.cpp.

References service_UndrawItem, and widgetService().

Referenced by TGo4ViewPanel::AddDrawObject().

bool QGo4Widget::UpdateItemInAnalysis ( const char *  itemname,
TObject *  obj = 0 
) [protected]

Friends And Related Function Documentation

friend class TGo4MainWindow [friend]

Definition at line 60 of file QGo4Widget.h.


Member Data Documentation

bool QGo4Widget::fBlockUpdate [private]

indicates that reset widget timer is shoot

Definition at line 210 of file QGo4Widget.h.

Referenced by RemoveAllLinks(), RemoveLink(), and RemoveLinksMasked().

set when automatic reset must be blocked

Definition at line 212 of file QGo4Widget.h.

Referenced by Browser().

Definition at line 208 of file QGo4Widget.h.

Referenced by closeEvent().

indicate that widget can be destroyed

Definition at line 209 of file QGo4Widget.h.

Referenced by ResetWidget(), ShootCloseWidget(), and ShootResetWidget().

Definition at line 207 of file QGo4Widget.h.

Referenced by AskToCreateObject(), ObjectCreatedByWidget(), and ResetWidget().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines