GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
#include <TGo4Browser.h>
Public Slots | |
void | ColumnToggled (int indx) |
void | ContextMenuActivated (int id) |
void | Header_customContextMenuRequested (const QPoint &) |
void | HeaderSectionResizedSlot (int, int, int) |
void | ItemDropAcceptSlot (void *item, void *mime, bool *res) |
void | ItemDropProcessSlot (void *item, void *e) |
void | ListView_customContextMenuRequested (const QPoint &) |
void | ListView_doubleClicked (QTreeWidgetItem *item, int ncol) |
void | RequestDragObjectSlot (QDrag **) |
void | updateListViewItems () |
![]() | |
void | CloseMDIParentSlot () |
Public Member Functions | |
TGo4Browser (QWidget *parent=nullptr, const char *name=nullptr) | |
TGo4BrowserProxy * | BrowserProxy () |
bool | canDrawItem (QTreeWidgetItem *item) |
void | checkVisisbilityFlags (bool showall) |
void | DisplaySelectedItems () |
void | ExecuteItem (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 *filtername) |
QTreeWidgetItem * | FindItemFor (TGo4Slot *slot) |
QString | FullItemName (QTreeWidgetItem *item) |
void | linkedObjectUpdated (const char *linkname, TObject *obj) override |
void | ResetWidget () override |
void | SaveSelectedItems () |
void | SetViewItemProperties (TGo4Slot *itemslot, QTreeWidgetItem *item) |
void | ShootUpdateTimer () |
void | StartWorking () |
void | SuperImposeSelectedItems () |
![]() | |
QGo4Widget (QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags f=Qt::Widget) | |
virtual | ~QGo4Widget () |
virtual void | DropItem (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 | 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 | |
![]() | |
void | widgetService (QGo4Widget *editor, int serviceid, const char *str, void *par) |
![]() | |
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 * | CreateChkAction (QMenu *menu, const QString &text, bool checked, bool enabled=true) |
static QAction * | SetIdAction (QSignalMapper *map, int id, int enabled=-1, int checked=-1) |
![]() | |
void | AddLink (const char *itemname, const char *linkname) |
create link for item with name linkname | |
TGo4Slot * | AddLink (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 | |
TGo4Slot * | AddSlot (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. | |
TGo4BrowserProxy * | Browser () |
bool | BrowserItemRemote (const char *itemname) |
void | CallPanelFunc (int id, TPad *pad=nullptr) |
void | CallServiceFunc (int id, const char *str=nullptr, void *par=nullptr) |
void | closeEvent (QCloseEvent *e) override |
void | ConnectPad (TPad *pad) |
connect pad axis change signals to react on such signals | |
TGo4ViewPanel * | CreateViewPanel (int ndiv=0) |
void | dragEnterEvent (QDragEnterEvent *e) override |
void | dragMoveEvent (QDragMoveEvent *e) override |
TGo4ViewPanel * | DrawItem (const QString &itemname, TGo4ViewPanel *panel=nullptr, TPad *pad=nullptr, bool activate=true, int updatelevel=-1) |
void | dropEvent (QDropEvent *e) override |
void | EditItem (const QString &itemname) |
void | EditObjectInSlot (TGo4Slot *slot) |
TGo4ServerProxy * | GetAnalysis (const char *itemname=nullptr) |
TObject * | GetLinked (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 (TGo4Slot *slot) |
returns name of item, which was linked in that slot | |
TGo4Slot * | GetTopSlot (bool force=false) |
return top slot of structure, corresponding to this widget | |
void | HelpWindow (const char *filename, const char *msg=nullptr) |
void | InformThatObjectCreated (const char *itemname, TClass *cl) |
bool | IsUpdateBlocked () const |
TGo4ViewPanel * | LastActivePanel () |
virtual void | linkedObjectRemoved (const char *linkname) |
virtual void | linkedRemoved (TGo4Slot *slot, TObject *obj) |
virtual void | linkedUpdated (TGo4Slot *slot, TObject *obj) |
void | RemoveAllLinks (bool blockreset=true) |
void | RemoveLink (const char *linkname, bool blockreset=true) |
void | RemoveLinksMasked (const char *startedwith=nullptr, bool blockreset=true) |
virtual void | requestedObjectCreated (const char *itemname, TClass *cl) |
bool | SaveItemToFile (const char *itemname, const char *subfolder=nullptr) |
QString | SaveObjectInMemory (const char *foldername, TObject *obj) |
void | ServiceCall (const char *name, void *par=nullptr) |
void | setCanDestroyWidget (bool on=true) |
void | SetLinkedName (TGo4Slot *slot, const char *itemname) |
set name of item, which was linked by this slot | |
void | ShootCloseWidget (bool closeparent=false) |
void | ShootResetWidget () |
void | ShowItemInfo (const QString &itemname) |
void | StartHotstart (const char *filename) |
void | StatusMessage (const QString &message) |
void | UndrawItem (const char *itemname) |
bool | UpdateItemInAnalysis (const char *itemname, TObject *obj=nullptr) |
TGo4ViewPanel * | WhereItemDrawn (const char *itemname) |
Definition at line 23 of file TGo4Browser.h.
anonymous enum |
Enumerator | |
---|---|
NColumns |
Definition at line 28 of file TGo4Browser.h.
TGo4Browser::TGo4Browser | ( | QWidget * | parent = nullptr, |
const char * | name = nullptr ) |
Definition at line 64 of file TGo4Browser.cpp.
References QGo4Widget::QGo4Widget(), ColumnAllign, ColumnNames, ColumnWidths, fbUpdateTimerActive, fVisibleColumns, go4sett, Header_customContextMenuRequested(), HeaderSectionResizedSlot(), QGo4BrowserTreeWidget::ItemDropProcess(), ItemDropProcessSlot(), ListView_customContextMenuRequested(), ListView_doubleClicked(), NColumns, QGo4BrowserTreeWidget::RequestDragObject(), RequestDragObjectSlot(), and QGo4Widget::setCanDestroyWidget().
TGo4BrowserProxy * TGo4Browser::BrowserProxy | ( | ) |
Definition at line 191 of file TGo4Browser.cpp.
References QGo4Widget::GetLinkedCast().
Referenced by canDrawItem(), ContextMenuActivated(), ExecuteItem(), ExpandItem(), ExportSelectedItems(), FindItemFor(), ListView_customContextMenuRequested(), ListView_doubleClicked(), SetViewItemProperties(), and updateListViewItems().
bool TGo4Browser::canDrawItem | ( | QTreeWidgetItem * | item | ) |
Definition at line 995 of file TGo4Browser.cpp.
References BrowserProxy(), TGo4BrowserProxy::CanDrawItem(), FullItemName(), and TGo4BrowserProxy::ItemCanDo().
Referenced by DisplaySelectedItems(), and SuperImposeSelectedItems().
void TGo4Browser::checkVisisbilityFlags | ( | bool | showall | ) |
Definition at line 446 of file TGo4Browser.cpp.
References NColumns.
Referenced by updateListViewItems().
|
slot |
Definition at line 785 of file TGo4Browser.cpp.
References fVisibleColumns, HeaderSectionResizedSlot(), NColumns, and ShootUpdateTimer().
Referenced by Header_customContextMenuRequested().
|
slot |
Definition at line 808 of file TGo4Browser.cpp.
References TGo4BrowserProxy::AddToClipboard(), BrowserProxy(), TGo4BrowserProxy::CanEditItem(), TGo4BrowserProxy::CanExecuteItem(), TGo4BrowserProxy::CanExpandItem(), TGo4BrowserProxy::CanInfoItem(), TGo4ServerProxy::ChageObjectProtection(), TGo4ServerProxy::ClearAnalysisObject(), TGo4BrowserProxy::ClearClipboard(), TGo4BrowserProxy::ClearMemoryItem(), TGo4BrowserProxy::CopyClipboard(), TGo4BrowserProxy::CreateMemorySubfolder(), TGo4BrowserProxy::DefineAnalysisObject(), TGo4BrowserProxy::DefineServerProxy(), TGo4BrowserProxy::DeleteDataSource(), DisplaySelectedItems(), QGo4Widget::EditItem(), ExecuteItem(), ExpandItem(), ExportSelectedItems(), TGo4BrowserProxy::FetchItem(), FullItemName(), TGo4Slot::GetAssignedObject(), TGo4Iter::getslot(), go4sett, TGo4BrowserProxy::ItemCanDo(), TGo4BrowserProxy::ItemKind(), TGo4BrowserProxy::ItemSlot(), TGo4Access::kndFolder, TGo4Iter::next(), TGo4BrowserProxy::ProduceExplicitCopy(), TGo4ServerProxy::RefreshNamesList(), TGo4ServerProxy::RemoveObjectFromAnalysis(), TGo4BrowserProxy::RenameMemoryItem(), SaveSelectedItems(), TGo4BrowserProxy::SetItemMonitored(), ShootUpdateTimer(), QGo4Widget::ShowItemInfo(), SuperImposeSelectedItems(), and TGo4Slot::Update().
Referenced by ListView_customContextMenuRequested().
void TGo4Browser::DisplaySelectedItems | ( | ) |
Definition at line 458 of file TGo4Browser.cpp.
References canDrawItem(), QGo4Widget::CreateViewPanel(), QGo4Widget::DrawItem(), FullItemName(), TGo4ViewPanel::GetCanvas(), TGo4ViewPanel::GetSubPad(), and TGo4ViewPanel::ShootRepaintTimer().
Referenced by ContextMenuActivated().
void TGo4Browser::ExecuteItem | ( | const QString & | itemname | ) |
Definition at line 1081 of file TGo4Browser.cpp.
References BrowserProxy(), TGo4BrowserProxy::DefineServerObject(), TGo4ServerProxy::NumCommandArgs(), QGo4Widget::StatusMessage(), and TGo4ServerProxy::SubmitCommand().
Referenced by ContextMenuActivated(), and ListView_doubleClicked().
void TGo4Browser::ExpandItem | ( | const QString & | itemname | ) |
Definition at line 1076 of file TGo4Browser.cpp.
References BrowserProxy(), and TGo4BrowserProxy::GetBrowserObject().
Referenced by ContextMenuActivated(), and ListView_doubleClicked().
void TGo4Browser::ExportSelectedItems | ( | const char * | filename, |
const char * | filedir, | ||
const char * | format, | ||
const char * | description ) |
Definition at line 1061 of file TGo4Browser.cpp.
References BrowserProxy(), TGo4BrowserProxy::ExportItemsTo(), FullItemName(), and go4sett.
void TGo4Browser::ExportSelectedItems | ( | const char * | filtername | ) |
Definition at line 1043 of file TGo4Browser.cpp.
References ExportSelectedItems().
Referenced by ContextMenuActivated(), ExportSelectedItems(), and SaveSelectedItems().
QTreeWidgetItem * TGo4Browser::FindItemFor | ( | TGo4Slot * | slot | ) |
Definition at line 209 of file TGo4Browser.cpp.
References TGo4BrowserProxy::BrowserItemName(), BrowserProxy(), and FullItemName().
Referenced by linkedObjectUpdated().
QString TGo4Browser::FullItemName | ( | QTreeWidgetItem * | item | ) |
Definition at line 196 of file TGo4Browser.cpp.
Referenced by canDrawItem(), ContextMenuActivated(), DisplaySelectedItems(), ExportSelectedItems(), FindItemFor(), ItemDropAcceptSlot(), ItemDropProcessSlot(), ListView_customContextMenuRequested(), ListView_doubleClicked(), RequestDragObjectSlot(), and SuperImposeSelectedItems().
|
slot |
Definition at line 546 of file TGo4Browser.cpp.
References ColumnNames, ColumnToggled(), QGo4Widget::CreateChkAction(), fVisibleColumns, and NColumns.
Referenced by TGo4Browser(), and ListView_customContextMenuRequested().
|
slot |
Definition at line 795 of file TGo4Browser.cpp.
References ColumnNames, ColumnWidths, fVisibleColumns, go4sett, and NColumns.
Referenced by TGo4Browser(), and ColumnToggled().
|
slot |
Definition at line 159 of file TGo4Browser.cpp.
References QGo4Widget::Browser(), FullItemName(), TGo4Slot::GetParent(), TGo4BrowserProxy::ItemSlot(), and TGo4Access::kndFolder.
|
slot |
Definition at line 179 of file TGo4Browser.cpp.
References QGo4Widget::Browser(), FullItemName(), go4sett, and TGo4BrowserProxy::ProduceExplicitCopy().
Referenced by TGo4Browser().
|
overridevirtual |
Reimplemented from QGo4Widget.
Definition at line 132 of file TGo4Browser.cpp.
References FindItemFor(), SetViewItemProperties(), and ShootUpdateTimer().
|
slot |
Definition at line 558 of file TGo4Browser.cpp.
References TGo4BrowserProxy::BrowserMemorySlot(), BrowserProxy(), TGo4BrowserProxy::CanClearItem(), TGo4BrowserProxy::CanCloseItem(), TGo4BrowserProxy::CanDrawItem(), TGo4BrowserProxy::CanEditItem(), TGo4BrowserProxy::CanExecuteItem(), TGo4BrowserProxy::CanExpandItem(), TGo4BrowserProxy::CanExportItem(), TGo4BrowserProxy::CanInfoItem(), ContextMenuActivated(), TGo4BrowserProxy::FindServerSlot(), FullItemName(), TGo4Slot::GetAssignedObject(), TGo4BrowserProxy::GetProtectionBits(), Header_customContextMenuRequested(), TGo4BrowserProxy::IsCanDelete(), TGo4BrowserProxy::IsClipboard(), TGo4BrowserProxy::IsItemMonitored(), TGo4BrowserProxy::IsItemRemote(), TGo4Slot::IsParent(), TGo4BrowserProxy::ItemCanDo(), TGo4BrowserProxy::ItemClassName(), TGo4BrowserProxy::ItemKind(), TGo4BrowserProxy::ItemSlot(), TGo4Access::kndFolder, and TGo4Access::kndObject.
Referenced by TGo4Browser().
|
slot |
Definition at line 508 of file TGo4Browser.cpp.
References BrowserProxy(), TGo4BrowserProxy::CanDrawItem(), TGo4BrowserProxy::CanEditItem(), TGo4BrowserProxy::CanExecuteItem(), TGo4BrowserProxy::CanExpandItem(), QGo4Widget::DrawItem(), QGo4Widget::EditItem(), ExecuteItem(), ExpandItem(), FullItemName(), go4sett, TGo4BrowserProxy::ItemCanDo(), and QGo4Widget::WhereItemDrawn().
Referenced by TGo4Browser().
|
slot |
Definition at line 144 of file TGo4Browser.cpp.
References FullItemName().
Referenced by TGo4Browser().
|
overridevirtual |
Reimplemented from QGo4Widget.
Definition at line 187 of file TGo4Browser.cpp.
void TGo4Browser::SaveSelectedItems | ( | ) |
Definition at line 1011 of file TGo4Browser.cpp.
References ExportSelectedItems().
Referenced by ContextMenuActivated().
void TGo4Browser::SetViewItemProperties | ( | TGo4Slot * | itemslot, |
QTreeWidgetItem * | item ) |
Definition at line 226 of file TGo4Browser.cpp.
References TGo4BrowserProxy::BrowserMemorySlot(), BrowserProxy(), TGo4BrowserProxy::CanDragItem(), TGo4Slot::GetAssignedObject(), TGo4BrowserProxy::GetCalcSize(), TGo4BrowserProxy::GetItemFilter(), TGo4BrowserProxy::GetProtectionBits(), TGo4BrowserProxy::IsItemMonitored(), TGo4BrowserProxy::IsItemRemote(), TGo4Slot::IsParent(), TGo4BrowserProxy::ItemCanDo(), TGo4BrowserProxy::ItemClassName(), TGo4BrowserProxy::ItemDate(), TGo4BrowserProxy::ItemInfo(), TGo4BrowserProxy::ItemKind(), TGo4BrowserProxy::ItemSizeInfo(), TGo4BrowserProxy::ItemTime(), TGo4Access::kndFolder, TGo4Access::kndObject, and NColumns.
Referenced by linkedObjectUpdated(), and updateListViewItems().
void TGo4Browser::ShootUpdateTimer | ( | ) |
Definition at line 1002 of file TGo4Browser.cpp.
References fbUpdateTimerActive, and updateListViewItems().
Referenced by ColumnToggled(), ContextMenuActivated(), linkedObjectUpdated(), StartWorking(), and TGo4MainWindow::UpdateBrowser().
void TGo4Browser::StartWorking | ( | ) |
Definition at line 126 of file TGo4Browser.cpp.
References QGo4Widget::AddLink(), and ShootUpdateTimer().
Referenced by TGo4MainWindow::TGo4MainWindow().
void TGo4Browser::SuperImposeSelectedItems | ( | ) |
Definition at line 488 of file TGo4Browser.cpp.
References canDrawItem(), QGo4Widget::CreateViewPanel(), QGo4Widget::DrawItem(), FullItemName(), TGo4ViewPanel::GetCanvas(), TGo4ViewPanel::SetPadSuperImpose(), and TGo4ViewPanel::ShootRepaintTimer().
Referenced by ContextMenuActivated().
|
slot |
Definition at line 314 of file TGo4Browser.cpp.
References BrowserProxy(), TGo4BrowserProxy::BrowserTopSlot(), checkVisisbilityFlags(), TGo4BrowserProxy::DefineItemProperties(), fbUpdateTimerActive, fVisibleColumns, TGo4BrowserProxy::GetItemFilter(), TGo4Iter::getname(), TGo4Iter::getslot(), go4sett, TGo4Iter::isfolder(), TGo4BrowserProxy::ItemClassName(), TGo4BrowserProxy::ItemKind(), TGo4Access::kndFolder, TGo4Access::kndTreeBranch, TGo4Iter::levelchange(), NColumns, TGo4Iter::next(), nextSibling(), QGo4Widget::ServiceCall(), TGo4BrowserProxy::SetItemCanDo(), SetViewItemProperties(), and TGo4LockGuard.
Referenced by ShootUpdateTimer().
|
protected |
Definition at line 90 of file TGo4Browser.h.
Referenced by TGo4Browser(), ShootUpdateTimer(), and updateListViewItems().
|
protected |
Definition at line 91 of file TGo4Browser.h.
Referenced by TGo4Browser(), ColumnToggled(), Header_customContextMenuRequested(), HeaderSectionResizedSlot(), and updateListViewItems().