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

#include <TGo4Browser.h>

Inheritance diagram for TGo4Browser:

Public Types

enum  { NColumns = 7 }
enum  { NColumns = 7 }
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

void ColumnToggled (int indx)
void ColumnToggled (int indx)
void ContextMenuActivated (int id)
void ContextMenuActivated (int id)
void Header_customContextMenuRequested (const QPoint &)
void Header_customContextMenuRequested (const QPoint &)
void HeaderSectionResizedSlot (int, int, int)
void HeaderSectionResizedSlot (int, int, int)
void ItemDropAcceptSlot (void *item, void *mime, bool *res)
void ItemDropAcceptSlot (void *item, void *mime, bool *res)
void ItemDropProcessSlot (void *item, void *e)
void ItemDropProcessSlot (void *item, void *e)
void ListView_customContextMenuRequested (const QPoint &)
void ListView_customContextMenuRequested (const QPoint &)
void ListView_doubleClicked (QTreeWidgetItem *item, int ncol)
void ListView_doubleClicked (QTreeWidgetItem *item, int ncol)
void RequestDragObjectSlot (QDrag **)
void RequestDragObjectSlot (QDrag **)
void updateListViewItems ()
void updateListViewItems ()
Public Slots inherited from QGo4Widget
void CloseMDIParentSlot ()
void CloseMDIParentSlot ()

Public Member Functions

 TGo4Browser (QWidget *parent=nullptr, const char *name=nullptr)
 TGo4Browser (QWidget *parent=nullptr, const char *name=nullptr)
TGo4BrowserProxyBrowserProxy ()
TGo4BrowserProxyBrowserProxy ()
bool canDrawItem (QTreeWidgetItem *item)
bool canDrawItem (QTreeWidgetItem *item)
void checkVisisbilityFlags (bool showall)
void checkVisisbilityFlags (bool showall)
void DisplaySelectedItems ()
void DisplaySelectedItems ()
void ExecuteItem (const QString &itemname)
void ExecuteItem (const QString &itemname)
void ExpandItem (const QString &itemname)
void ExpandItem (const QString &itemname)
void ExportSelectedItems (const char *filename, const char *filedir, const char *format, const char *description)
void ExportSelectedItems (const char *filename, const char *filedir, const char *format, const char *description)
void ExportSelectedItems (const char *filtername)
void ExportSelectedItems (const char *filtername)
QTreeWidgetItem * FindItemFor (TGo4Slot *slot)
QTreeWidgetItem * FindItemFor (TGo4Slot *slot)
QString FullItemName (QTreeWidgetItem *item)
QString FullItemName (QTreeWidgetItem *item)
void linkedObjectUpdated (const char *linkname, TObject *obj) override
void linkedObjectUpdated (const char *linkname, TObject *obj) override
void ResetWidget () override
void ResetWidget () override
void SaveSelectedItems ()
void SaveSelectedItems ()
void SetViewItemProperties (TGo4Slot *itemslot, QTreeWidgetItem *item)
void SetViewItemProperties (TGo4Slot *itemslot, QTreeWidgetItem *item)
void ShootUpdateTimer ()
void ShootUpdateTimer ()
void StartWorking ()
void StartWorking ()
void SuperImposeSelectedItems ()
void SuperImposeSelectedItems ()
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 ()
virtual void DropItem (const char *itemname, TClass *cl, int kind)
virtual void DropItem (const char *itemname, TClass *cl, int kind)
virtual bool IsAcceptDrag (const char *itemname, TClass *cl, int kind)
virtual bool IsAcceptDrag (const char *itemname, TClass *cl, int kind)
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 fbUpdateTimerActive {false}
bool fVisibleColumns [NColumns] = { false, false, false, false, false, false, false }

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 linkedObjectRemoved (const char *linkname)
virtual void linkedObjectRemoved (const char *linkname)
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 23 of file TGo4Browser.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NColumns 

Definition at line 28 of file TGo4Browser.h.

◆ anonymous enum

anonymous enum
Enumerator
NColumns 

Definition at line 28 of file TGo4Browser.h.

Constructor & Destructor Documentation

◆ TGo4Browser() [1/2]

◆ TGo4Browser() [2/2]

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

Member Function Documentation

◆ BrowserProxy() [1/2]

◆ BrowserProxy() [2/2]

TGo4BrowserProxy * TGo4Browser::BrowserProxy ( )

◆ canDrawItem() [1/2]

bool TGo4Browser::canDrawItem ( QTreeWidgetItem * item)

◆ canDrawItem() [2/2]

bool TGo4Browser::canDrawItem ( QTreeWidgetItem * item)

◆ checkVisisbilityFlags() [1/2]

void TGo4Browser::checkVisisbilityFlags ( bool showall)

Definition at line 446 of file TGo4Browser.cpp.

References NColumns.

Referenced by updateListViewItems().

◆ checkVisisbilityFlags() [2/2]

void TGo4Browser::checkVisisbilityFlags ( bool showall)

◆ ColumnToggled [1/2]

void TGo4Browser::ColumnToggled ( int indx)
slot

◆ ColumnToggled [2/2]

void TGo4Browser::ColumnToggled ( int indx)
slot

◆ ContextMenuActivated [1/2]

◆ ContextMenuActivated [2/2]

void TGo4Browser::ContextMenuActivated ( int id)
slot

References fbUpdateTimerActive.

◆ DisplaySelectedItems() [1/2]

◆ DisplaySelectedItems() [2/2]

void TGo4Browser::DisplaySelectedItems ( )

◆ ExecuteItem() [1/2]

◆ ExecuteItem() [2/2]

void TGo4Browser::ExecuteItem ( const QString & itemname)

◆ ExpandItem() [1/2]

void TGo4Browser::ExpandItem ( const QString & itemname)

◆ ExpandItem() [2/2]

void TGo4Browser::ExpandItem ( const QString & itemname)

◆ ExportSelectedItems() [1/4]

void TGo4Browser::ExportSelectedItems ( const char * filename,
const char * filedir,
const char * format,
const char * description )

◆ ExportSelectedItems() [2/4]

void TGo4Browser::ExportSelectedItems ( const char * filename,
const char * filedir,
const char * format,
const char * description )

◆ ExportSelectedItems() [3/4]

void TGo4Browser::ExportSelectedItems ( const char * filtername)

Definition at line 1045 of file TGo4Browser.cpp.

References ExportSelectedItems().

Referenced by ContextMenuActivated(), ExportSelectedItems(), and SaveSelectedItems().

◆ ExportSelectedItems() [4/4]

void TGo4Browser::ExportSelectedItems ( const char * filtername)

◆ FindItemFor() [1/2]

QTreeWidgetItem * TGo4Browser::FindItemFor ( TGo4Slot * slot)

Definition at line 209 of file TGo4Browser.cpp.

References TGo4BrowserProxy::BrowserItemName(), BrowserProxy(), and FullItemName().

Referenced by linkedObjectUpdated().

◆ FindItemFor() [2/2]

QTreeWidgetItem * TGo4Browser::FindItemFor ( TGo4Slot * slot)

◆ FullItemName() [1/2]

◆ FullItemName() [2/2]

QString TGo4Browser::FullItemName ( QTreeWidgetItem * item)

◆ Header_customContextMenuRequested [1/2]

void TGo4Browser::Header_customContextMenuRequested ( const QPoint & pos)
slot

◆ Header_customContextMenuRequested [2/2]

void TGo4Browser::Header_customContextMenuRequested ( const QPoint & )
slot

◆ HeaderSectionResizedSlot [1/2]

void TGo4Browser::HeaderSectionResizedSlot ( int ,
int ,
int  )
slot

Definition at line 797 of file TGo4Browser.cpp.

References ColumnNames, ColumnWidths, fVisibleColumns, go4sett, and NColumns.

Referenced by TGo4Browser(), and ColumnToggled().

◆ HeaderSectionResizedSlot [2/2]

void TGo4Browser::HeaderSectionResizedSlot ( int ,
int ,
int  )
slot

◆ ItemDropAcceptSlot [1/2]

void TGo4Browser::ItemDropAcceptSlot ( void * item,
void * mime,
bool * res )
slot

◆ ItemDropAcceptSlot [2/2]

void TGo4Browser::ItemDropAcceptSlot ( void * item,
void * mime,
bool * res )
slot

◆ ItemDropProcessSlot [1/2]

void TGo4Browser::ItemDropProcessSlot ( void * item,
void * e )
slot

◆ ItemDropProcessSlot [2/2]

void TGo4Browser::ItemDropProcessSlot ( void * item,
void * e )
slot

◆ linkedObjectUpdated() [1/2]

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

Reimplemented from QGo4Widget.

Definition at line 132 of file TGo4Browser.cpp.

References FindItemFor(), SetViewItemProperties(), and ShootUpdateTimer().

◆ linkedObjectUpdated() [2/2]

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

Reimplemented from QGo4Widget.

◆ ListView_customContextMenuRequested [1/2]

◆ ListView_customContextMenuRequested [2/2]

void TGo4Browser::ListView_customContextMenuRequested ( const QPoint & )
slot

◆ ListView_doubleClicked [1/2]

◆ ListView_doubleClicked [2/2]

void TGo4Browser::ListView_doubleClicked ( QTreeWidgetItem * item,
int ncol )
slot

◆ RequestDragObjectSlot [1/2]

void TGo4Browser::RequestDragObjectSlot ( QDrag ** res)
slot

Definition at line 144 of file TGo4Browser.cpp.

References FullItemName().

Referenced by TGo4Browser().

◆ RequestDragObjectSlot [2/2]

void TGo4Browser::RequestDragObjectSlot ( QDrag ** )
slot

◆ ResetWidget() [1/2]

void TGo4Browser::ResetWidget ( )
overridevirtual

Reimplemented from QGo4Widget.

Definition at line 187 of file TGo4Browser.cpp.

◆ ResetWidget() [2/2]

void TGo4Browser::ResetWidget ( )
overridevirtual

Reimplemented from QGo4Widget.

◆ SaveSelectedItems() [1/2]

void TGo4Browser::SaveSelectedItems ( )

Definition at line 1013 of file TGo4Browser.cpp.

References ExportSelectedItems().

Referenced by ContextMenuActivated().

◆ SaveSelectedItems() [2/2]

void TGo4Browser::SaveSelectedItems ( )

◆ SetViewItemProperties() [1/2]

◆ SetViewItemProperties() [2/2]

void TGo4Browser::SetViewItemProperties ( TGo4Slot * itemslot,
QTreeWidgetItem * item )

◆ ShootUpdateTimer() [1/2]

void TGo4Browser::ShootUpdateTimer ( )

◆ ShootUpdateTimer() [2/2]

void TGo4Browser::ShootUpdateTimer ( )

◆ StartWorking() [1/2]

void TGo4Browser::StartWorking ( )

Definition at line 126 of file TGo4Browser.cpp.

References QGo4Widget::AddLink(), and ShootUpdateTimer().

Referenced by TGo4MainWindow::TGo4MainWindow().

◆ StartWorking() [2/2]

void TGo4Browser::StartWorking ( )

◆ SuperImposeSelectedItems() [1/2]

◆ SuperImposeSelectedItems() [2/2]

void TGo4Browser::SuperImposeSelectedItems ( )

◆ updateListViewItems [1/2]

◆ updateListViewItems [2/2]

void TGo4Browser::updateListViewItems ( )
slot

Field Documentation

◆ fbUpdateTimerActive

bool TGo4Browser::fbUpdateTimerActive {false}
protected

◆ fVisibleColumns

bool TGo4Browser::fVisibleColumns = { false, false, false, false, false, false, false }
protected

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