GSI Object Oriented Online Offline (Go4) GO4-6.4.5
Loading...
Searching...
No Matches
TGo4ParaEdit Class Reference

#include <TGo4ParaEdit.h>

Inheritance diagram for TGo4ParaEdit:

Public Types

enum  ParEditColumns {
  fiColName = 0 , fiColType = 1 , fiColValue = 2 , fiColComment = 3 ,
  fiColName = 0 , fiColType = 1 , fiColValue = 2 , fiColComment = 3
}
enum  ParEditColumns {
  fiColName = 0 , fiColType = 1 , fiColValue = 2 , fiColComment = 3 ,
  fiColName = 0 , fiColType = 1 , fiColValue = 2 , fiColComment = 3
}
Public Types inherited from QGo4Widget
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
}
 pointer on browser proxy More...
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
}
 pointer on browser proxy More...

Public Slots

virtual void ApplyClicked ()
virtual void ApplyClicked ()
virtual void ChangedTable (int row, int col)
virtual void ChangedTable (int row, int col)
virtual void clearTextFields ()
virtual void clearTextFields ()
virtual void DecArrayIndex ()
virtual void DecArrayIndex ()
virtual void EditFitter ()
virtual void EditFitter ()
virtual void ExpandShrinkArray ()
virtual void ExpandShrinkArray ()
virtual void GetFitterFromEditor ()
virtual void GetFitterFromEditor ()
virtual void IncArrayIndex ()
virtual void IncArrayIndex ()
virtual void RefreshClicked ()
virtual void RefreshClicked ()
virtual void saveFile ()
virtual void saveFile ()
virtual void TableContextMenu (const QPoint &)
virtual void TableContextMenu (const QPoint &)
virtual void TableDoubleClick (int row, int col)
virtual void TableDoubleClick (int row, int col)
Public Slots inherited from QGo4Widget
void CloseMDIParentSlot ()
void CloseMDIParentSlot ()

Public Member Functions

 TGo4ParaEdit (QWidget *parent=nullptr, const char *name=nullptr)
 TGo4ParaEdit (QWidget *parent=nullptr, const char *name=nullptr)
virtual ~TGo4ParaEdit ()
virtual ~TGo4ParaEdit ()
void DropItem (const char *itemname, TClass *cl, int kind) override
void DropItem (const char *itemname, TClass *cl, int kind) override
bool IsAcceptDrag (const char *itemname, TClass *cl, int kind) override
bool IsAcceptDrag (const char *itemname, TClass *cl, int kind) override
void linkedObjectRemoved (const char *linkname) override
void linkedObjectRemoved (const char *linkname) override
void linkedObjectUpdated (const char *linkname, TObject *obj) override
void linkedObjectUpdated (const char *linkname, TObject *obj) override
virtual void RefreshWidget (TGo4Parameter *par)
virtual void RefreshWidget (TGo4Parameter *par)
virtual void RefreshWidget (TGo4ParameterStatus *parstatus)
virtual void RefreshWidget (TGo4ParameterStatus *parstatus)
void ResetWidget () override
void ResetWidget () override
virtual void ShowVisibleItems ()
virtual void ShowVisibleItems ()
virtual void WorkWithParameter (const char *itemname, bool isrefresh)
virtual void WorkWithParameter (const char *itemname, bool isrefresh)
Public Member Functions inherited from QGo4Widget
 QGo4Widget (QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags f=Qt::Widget)
 QGo4Widget (QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags f=Qt::Widget)
virtual ~QGo4Widget ()
virtual ~QGo4Widget ()
void ObjectCreatedByWidget (const char *itemname, TClass *cl)
void ObjectCreatedByWidget (const char *itemname, TClass *cl)
void ProcessSignal (const char *linkname, bool assigned, TObject *obj, TGo4Slot *slot)
void ProcessSignal (const char *linkname, bool assigned, TObject *obj, TGo4Slot *slot)

Protected Attributes

bool fFillingTable {false}
int fiCurrentRow {0}
QString fItemName
TObjArray * fItems {nullptr}

Additional Inherited Members

Signals inherited from QGo4Widget
void widgetService (QGo4Widget *editor, int serviceid, const char *str, void *par)
void widgetService (QGo4Widget *editor, int serviceid, const char *str, void *par)
Static Public Member Functions inherited from QGo4Widget
static QAction * AddIdAction (QMenu *menu, QSignalMapper *map, const QIcon &icon, const QString &text, int id, int enabled=-1, int checked=-1)
static QAction * AddIdAction (QMenu *menu, QSignalMapper *map, const QIcon &icon, const QString &text, int id, int enabled=-1, int checked=-1)
static QAction * AddIdAction (QMenu *menu, QSignalMapper *map, const QString &text, int id, int enabled=-1, int checked=-1)
static QAction * AddIdAction (QMenu *menu, QSignalMapper *map, const QString &text, int id, int enabled=-1, int checked=-1)
static QAction * CreateChkAction (QMenu *menu, const QString &text, bool checked, bool enabled=true)
static QAction * CreateChkAction (QMenu *menu, const QString &text, bool checked, bool enabled=true)
static QAction * SetIdAction (QSignalMapper *map, int id, int enabled=-1, int checked=-1)
static QAction * SetIdAction (QSignalMapper *map, int id, int enabled=-1, int checked=-1)
Protected Member Functions inherited from QGo4Widget
void AddLink (const char *itemname, const char *linkname)
 create link for item with name linkname
void AddLink (const char *itemname, const char *linkname)
 create link for item with name linkname
TGo4SlotAddLink (const char *itemname, TGo4Slot *parent)
 create link for item in dedicated slot parent
TGo4SlotAddLink (const char *itemname, TGo4Slot *parent)
 create link for item in dedicated slot parent
void AddLink (TGo4Slot *slot, const char *linkname)
 create link for object in slot with name linkname
void AddLink (TGo4Slot *slot, const char *linkname)
 create link for object in slot with name linkname
TGo4SlotAddSlot (const char *slotname)
 add slot with specific name to widget top folder
TGo4SlotAddSlot (const char *slotname)
 add slot with specific name to widget top folder
void AskToCreateObject (TClass *cl, int isremote)
 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 informed isremote == -1 - activate creation dialog without restriction (remote or local), widget will not be informed.
void AskToCreateObject (TClass *cl, int isremote)
 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 informed isremote == -1 - activate creation dialog without restriction (remote or local), widget will not be informed.
TGo4BrowserProxyBrowser ()
TGo4BrowserProxyBrowser ()
bool BrowserItemRemote (const char *itemname)
bool BrowserItemRemote (const char *itemname)
void CallPanelFunc (int id, TPad *pad=nullptr)
void CallPanelFunc (int id, TPad *pad=nullptr)
void CallServiceFunc (int id, const char *str=nullptr, void *par=nullptr)
void CallServiceFunc (int id, const char *str=nullptr, void *par=nullptr)
void closeEvent (QCloseEvent *e) override
void closeEvent (QCloseEvent *e) override
void ConnectPad (TPad *pad)
 connect pad axis change signals to react on such signals
void ConnectPad (TPad *pad)
 connect pad axis change signals to react on such signals
TGo4ViewPanelCreateViewPanel (int ndiv=0)
TGo4ViewPanelCreateViewPanel (int ndiv=0)
void dragEnterEvent (QDragEnterEvent *e) override
void dragEnterEvent (QDragEnterEvent *e) override
void dragMoveEvent (QDragMoveEvent *e) override
void dragMoveEvent (QDragMoveEvent *e) override
TGo4ViewPanelDrawItem (const QString &itemname, TGo4ViewPanel *panel=nullptr, TPad *pad=nullptr, bool activate=true, int updatelevel=-1)
TGo4ViewPanelDrawItem (const QString &itemname, TGo4ViewPanel *panel=nullptr, TPad *pad=nullptr, bool activate=true, int updatelevel=-1)
void dropEvent (QDropEvent *e) override
void dropEvent (QDropEvent *e) override
void EditItem (const QString &itemname)
void EditItem (const QString &itemname)
void EditObjectInSlot (TGo4Slot *slot)
void EditObjectInSlot (TGo4Slot *slot)
TGo4ServerProxyGetAnalysis (const char *itemname=nullptr)
TGo4ServerProxyGetAnalysis (const char *itemname=nullptr)
TObject * GetLinked (const char *linkname, int updatelevel=0)
TObject * GetLinked (const char *linkname, int updatelevel=0)
template<class T>
T * GetLinkedCast (const char *linkname, int updatelevel=0)
template<class T>
T * GetLinkedCast (const char *linkname, int updatelevel=0)
const char * GetLinkedName (const char *linkname)
 returns name of item, which was linked with linkname
const char * GetLinkedName (const char *linkname)
 returns name of item, which was linked with linkname
const char * GetLinkedName (TGo4Slot *slot)
 returns name of item, which was linked in that slot
const char * GetLinkedName (TGo4Slot *slot)
 returns name of item, which was linked in that slot
TGo4SlotGetTopSlot (bool force=false)
 return top slot of structure, corresponding to this widget
TGo4SlotGetTopSlot (bool force=false)
 return top slot of structure, corresponding to this widget
void HelpWindow (const char *filename, const char *msg=nullptr)
void HelpWindow (const char *filename, const char *msg=nullptr)
void InformThatObjectCreated (const char *itemname, TClass *cl)
void InformThatObjectCreated (const char *itemname, TClass *cl)
bool IsUpdateBlocked () const
bool IsUpdateBlocked () const
TGo4ViewPanelLastActivePanel ()
TGo4ViewPanelLastActivePanel ()
virtual void linkedRemoved (TGo4Slot *slot, TObject *obj)
virtual void linkedRemoved (TGo4Slot *slot, TObject *obj)
virtual void linkedUpdated (TGo4Slot *slot, TObject *obj)
virtual void linkedUpdated (TGo4Slot *slot, TObject *obj)
void RemoveAllLinks (bool blockreset=true)
void RemoveAllLinks (bool blockreset=true)
void RemoveLink (const char *linkname, bool blockreset=true)
void RemoveLink (const char *linkname, bool blockreset=true)
void RemoveLinksMasked (const char *startedwith=nullptr, bool blockreset=true)
void RemoveLinksMasked (const char *startedwith=nullptr, bool blockreset=true)
virtual void requestedObjectCreated (const char *itemname, TClass *cl)
virtual void requestedObjectCreated (const char *itemname, TClass *cl)
bool SaveItemToFile (const char *itemname, const char *subfolder=nullptr)
bool SaveItemToFile (const char *itemname, const char *subfolder=nullptr)
QString SaveObjectInMemory (const char *foldername, TObject *obj)
QString SaveObjectInMemory (const char *foldername, TObject *obj)
void ServiceCall (const char *name, void *par=nullptr)
void ServiceCall (const char *name, void *par=nullptr)
void setCanDestroyWidget (bool on=true)
void setCanDestroyWidget (bool on=true)
void SetLinkedName (TGo4Slot *slot, const char *itemname)
 set name of item, which was linked by this slot
void SetLinkedName (TGo4Slot *slot, const char *itemname)
 set name of item, which was linked by this slot
void ShootCloseWidget (bool closeparent=false)
void ShootCloseWidget (bool closeparent=false)
void ShootResetWidget ()
void ShootResetWidget ()
void ShowItemInfo (const QString &itemname)
void ShowItemInfo (const QString &itemname)
void StartHotstart (const char *filename)
void StartHotstart (const char *filename)
void StatusMessage (const QString &message)
void StatusMessage (const QString &message)
void UndrawItem (const char *itemname)
void UndrawItem (const char *itemname)
bool UpdateItemInAnalysis (const char *itemname, TObject *obj=nullptr)
bool UpdateItemInAnalysis (const char *itemname, TObject *obj=nullptr)
TGo4ViewPanelWhereItemDrawn (const char *itemname)
TGo4ViewPanelWhereItemDrawn (const char *itemname)

Detailed Description

Definition at line 30 of file TGo4ParaEdit.h.

Member Enumeration Documentation

◆ ParEditColumns [1/2]

Enumerator
fiColName 
fiColType 
fiColValue 
fiColComment 
fiColName 
fiColType 
fiColValue 
fiColComment 

Definition at line 36 of file TGo4ParaEdit.h.

◆ ParEditColumns [2/2]

Enumerator
fiColName 
fiColType 
fiColValue 
fiColComment 
fiColName 
fiColType 
fiColValue 
fiColComment 

Definition at line 36 of file TGo4ParaEdit.h.

Constructor & Destructor Documentation

◆ TGo4ParaEdit() [1/2]

TGo4ParaEdit::TGo4ParaEdit ( QWidget * parent = nullptr,
const char * name = nullptr )

◆ ~TGo4ParaEdit() [1/2]

TGo4ParaEdit::~TGo4ParaEdit ( )
virtual

Definition at line 60 of file TGo4ParaEdit.cpp.

References fItems.

◆ TGo4ParaEdit() [2/2]

TGo4ParaEdit::TGo4ParaEdit ( QWidget * parent = nullptr,
const char * name = nullptr )

◆ ~TGo4ParaEdit() [2/2]

virtual TGo4ParaEdit::~TGo4ParaEdit ( )
virtual

Member Function Documentation

◆ ApplyClicked [1/2]

◆ ApplyClicked [2/2]

virtual void TGo4ParaEdit::ApplyClicked ( )
virtualslot

References fiCurrentRow.

◆ ChangedTable [1/2]

void TGo4ParaEdit::ChangedTable ( int row,
int col )
virtualslot

Definition at line 284 of file TGo4ParaEdit.cpp.

References fFillingTable, fiColValue, fItems, and TGo4ParameterMember::SetStrValue().

Referenced by TGo4ParaEdit().

◆ ChangedTable [2/2]

virtual void TGo4ParaEdit::ChangedTable ( int row,
int col )
virtualslot

◆ clearTextFields [1/2]

void TGo4ParaEdit::clearTextFields ( )
virtualslot

Definition at line 270 of file TGo4ParaEdit.cpp.

References fItems, TGo4ParameterMember::SetStrValue(), and ShowVisibleItems().

Referenced by TGo4ParaEdit().

◆ clearTextFields [2/2]

virtual void TGo4ParaEdit::clearTextFields ( )
virtualslot

◆ DecArrayIndex [1/2]

void TGo4ParaEdit::DecArrayIndex ( )
virtualslot

◆ DecArrayIndex [2/2]

virtual void TGo4ParaEdit::DecArrayIndex ( )
virtualslot

◆ DropItem() [1/2]

void TGo4ParaEdit::DropItem ( const char * itemname,
TClass * cl,
int kind )
overridevirtual

Reimplemented from QGo4Widget.

Definition at line 75 of file TGo4ParaEdit.cpp.

References TGo4Access::kndGo4Param, and WorkWithParameter().

◆ DropItem() [2/2]

void TGo4ParaEdit::DropItem ( const char * itemname,
TClass * cl,
int kind )
overridevirtual

Reimplemented from QGo4Widget.

◆ EditFitter [1/2]

◆ EditFitter [2/2]

virtual void TGo4ParaEdit::EditFitter ( )
virtualslot

◆ ExpandShrinkArray [1/2]

void TGo4ParaEdit::ExpandShrinkArray ( )
virtualslot

◆ ExpandShrinkArray [2/2]

virtual void TGo4ParaEdit::ExpandShrinkArray ( )
virtualslot

◆ GetFitterFromEditor [1/2]

void TGo4ParaEdit::GetFitterFromEditor ( )
virtualslot

◆ GetFitterFromEditor [2/2]

virtual void TGo4ParaEdit::GetFitterFromEditor ( )
virtualslot

◆ IncArrayIndex [1/2]

void TGo4ParaEdit::IncArrayIndex ( )
virtualslot

◆ IncArrayIndex [2/2]

virtual void TGo4ParaEdit::IncArrayIndex ( )
virtualslot

◆ IsAcceptDrag() [1/2]

bool TGo4ParaEdit::IsAcceptDrag ( const char * itemname,
TClass * cl,
int kind )
overridevirtual

Reimplemented from QGo4Widget.

Definition at line 68 of file TGo4ParaEdit.cpp.

References TGo4Access::kndGo4Param.

◆ IsAcceptDrag() [2/2]

bool TGo4ParaEdit::IsAcceptDrag ( const char * itemname,
TClass * cl,
int kind )
overridevirtual

Reimplemented from QGo4Widget.

◆ linkedObjectRemoved() [1/2]

void TGo4ParaEdit::linkedObjectRemoved ( const char * linkname)
overridevirtual

Reimplemented from QGo4Widget.

Definition at line 91 of file TGo4ParaEdit.cpp.

References QGo4Widget::ShootCloseWidget().

◆ linkedObjectRemoved() [2/2]

void TGo4ParaEdit::linkedObjectRemoved ( const char * linkname)
overridevirtual

Reimplemented from QGo4Widget.

◆ linkedObjectUpdated() [1/2]

void TGo4ParaEdit::linkedObjectUpdated ( const char * linkname,
TObject * obj )
overridevirtual

Reimplemented from QGo4Widget.

Definition at line 82 of file TGo4ParaEdit.cpp.

References RefreshWidget().

◆ linkedObjectUpdated() [2/2]

void TGo4ParaEdit::linkedObjectUpdated ( const char * linkname,
TObject * obj )
overridevirtual

Reimplemented from QGo4Widget.

◆ RefreshClicked [1/2]

void TGo4ParaEdit::RefreshClicked ( )
virtualslot

Definition at line 473 of file TGo4ParaEdit.cpp.

References WorkWithParameter().

Referenced by TGo4ParaEdit(), and ApplyClicked().

◆ RefreshClicked [2/2]

virtual void TGo4ParaEdit::RefreshClicked ( )
virtualslot

◆ RefreshWidget() [1/4]

void TGo4ParaEdit::RefreshWidget ( TGo4Parameter * par)
virtual

◆ RefreshWidget() [2/4]

virtual void TGo4ParaEdit::RefreshWidget ( TGo4Parameter * par)
virtual

◆ RefreshWidget() [3/4]

◆ RefreshWidget() [4/4]

virtual void TGo4ParaEdit::RefreshWidget ( TGo4ParameterStatus * parstatus)
virtual

◆ ResetWidget() [1/2]

void TGo4ParaEdit::ResetWidget ( )
overridevirtual

Reimplemented from QGo4Widget.

Definition at line 147 of file TGo4ParaEdit.cpp.

References fItemName, fItems, QGo4Widget::ResetWidget(), and ShowVisibleItems().

Referenced by WorkWithParameter().

◆ ResetWidget() [2/2]

void TGo4ParaEdit::ResetWidget ( )
overridevirtual

Reimplemented from QGo4Widget.

◆ saveFile [1/2]

◆ saveFile [2/2]

virtual void TGo4ParaEdit::saveFile ( )
virtualslot

◆ ShowVisibleItems() [1/2]

◆ ShowVisibleItems() [2/2]

virtual void TGo4ParaEdit::ShowVisibleItems ( )
virtual

◆ TableContextMenu [1/2]

◆ TableContextMenu [2/2]

virtual void TGo4ParaEdit::TableContextMenu ( const QPoint & )
virtualslot

◆ TableDoubleClick [1/2]

void TGo4ParaEdit::TableDoubleClick ( int row,
int col )
virtualslot

◆ TableDoubleClick [2/2]

virtual void TGo4ParaEdit::TableDoubleClick ( int row,
int col )
virtualslot

◆ WorkWithParameter() [1/2]

◆ WorkWithParameter() [2/2]

virtual void TGo4ParaEdit::WorkWithParameter ( const char * itemname,
bool isrefresh )
virtual

Field Documentation

◆ fFillingTable

bool TGo4ParaEdit::fFillingTable {false}
protected

Definition at line 69 of file TGo4ParaEdit.h.

Referenced by TGo4ParaEdit(), ChangedTable(), and ShowVisibleItems().

◆ fiCurrentRow

int TGo4ParaEdit::fiCurrentRow {0}
protected

◆ fItemName

QString TGo4ParaEdit::fItemName
protected

◆ fItems


The documentation for this class was generated from the following files: