GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#include <TGo4Browser.h>
Public Slots | |
void | RequestDragObjectSlot (QDrag **) |
void | ItemDropAcceptSlot (void *item, void *mime, bool *res) |
void | ItemDropProcessSlot (void *item, void *e) |
void | updateListViewItems () |
void | ListView_doubleClicked (QTreeWidgetItem *item, int ncol) |
void | ListView_customContextMenuRequested (const QPoint &) |
void | Header_customContextMenuRequested (const QPoint &) |
void | ColumnToggled (int indx) |
void | HeaderSectionResizedSlot (int, int, int) |
void | ContextMenuActivated (int id) |
Public Slots inherited from QGo4Widget | |
void | ResetWidgetSlot () |
void | CloseMDIParentSlot () |
Public Member Functions | |
TGo4Browser (QWidget *parent=0, const char *name=0) | |
void | StartWorking () |
void | linkedObjectUpdated (const char *linkname, TObject *obj) |
void | ResetWidget () |
TGo4BrowserProxy * | BrowserProxy () |
QString | FullItemName (QTreeWidgetItem *item) |
QTreeWidgetItem * | FindItemFor (TGo4Slot *slot) |
void | SetViewItemProperties (TGo4Slot *itemslot, QTreeWidgetItem *item) |
void | checkVisisbilityFlags (bool showall) |
void | DisplaySelectedItems () |
void | SuperImposeSelectedItems () |
bool | canDrawItem (QTreeWidgetItem *item) |
void | ExpandItem (const QString &itemname) |
void | ExecuteItem (const QString &itemname) |
void | ShootUpdateTimer () |
void | SaveSelectedItems () |
void | ExportSelectedItems (const char *filtername) |
void | ExportSelectedItems (const char *filename, const char *filedir, const char *format, const char *description) |
Public Member Functions inherited from QGo4Widget | |
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) |
void | ObjectCreatedByWidget (const char *itemname, TClass *cl) |
void | ProcessSignal (const char *linkname, bool assigned, TObject *obj, TGo4Slot *slot) |
Protected Attributes | |
bool | fbUpdateTimerActive |
bool | fVisibleColumns [7] |
Additional Inherited Members | |
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 } |
Signals inherited from QGo4Widget | |
void | widgetService (QGo4Widget *editor, int serviceid, const char *str, void *par) |
Protected Member Functions inherited from QGo4Widget | |
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) |
TGo4Slot * | AddLink (const char *itemname, TGo4Slot *parent) |
TGo4Slot * | GetTopSlot (bool force=false) |
TGo4Slot * | AddSlot (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) |
TGo4BrowserProxy * | Browser () |
void | StatusMessage (const QString &message) |
void | AskToCreateObject (TClass *cl, int isremote) |
void | ShowItemInfo (const QString &itemname) |
TGo4ViewPanel * | CreateViewPanel (int ndiv=0) |
TGo4ViewPanel * | DrawItem (const QString &itemname, TGo4ViewPanel *panel=0, TPad *pad=0, bool activate=true, int updatelevel=-1) |
TGo4ViewPanel * | WhereItemDrawn (const char *itemname) |
void | HelpWindow (const char *filename, const char *msg=0) |
void | UndrawItem (const char *itemname) |
TGo4ViewPanel * | LastActivePanel () |
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) |
TGo4ServerProxy * | GetAnalysis (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 | 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 |
Definition at line 23 of file TGo4Browser.h.
TGo4Browser::TGo4Browser | ( | QWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
Definition at line 65 of file TGo4Browser.cpp.
References ColumnAllign, ColumnNames, ColumnWidths, fbUpdateTimerActive, fVisibleColumns, TGo4QSettings::getBrowserColumn(), go4sett, Header_customContextMenuRequested(), HeaderSectionResizedSlot(), ItemDropProcessSlot(), NColumns, RequestDragObjectSlot(), and QGo4Widget::setCanDestroyWidget().
TGo4BrowserProxy * TGo4Browser::BrowserProxy | ( | ) |
Definition at line 193 of file TGo4Browser.cpp.
References QGo4Widget::GetLinked().
Referenced by canDrawItem(), ContextMenuActivated(), DisplaySelectedItems(), ExecuteItem(), ExpandItem(), ExportSelectedItems(), FindItemFor(), ListView_customContextMenuRequested(), ListView_doubleClicked(), SetViewItemProperties(), and updateListViewItems().
bool TGo4Browser::canDrawItem | ( | QTreeWidgetItem * | item | ) |
Definition at line 1032 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 448 of file TGo4Browser.cpp.
References NColumns.
Referenced by updateListViewItems().
|
slot |
Definition at line 822 of file TGo4Browser.cpp.
References fVisibleColumns, HeaderSectionResizedSlot(), NColumns, and ShootUpdateTimer().
Referenced by Header_customContextMenuRequested(), and ListView_customContextMenuRequested().
|
slot |
Definition at line 845 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(), TGo4QSettings::getFetchDataWhenCopy(), 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 460 of file TGo4Browser.cpp.
References BrowserProxy(), 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 1116 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 1111 of file TGo4Browser.cpp.
References BrowserProxy(), and TGo4BrowserProxy::GetBrowserObject().
Referenced by ContextMenuActivated(), and ListView_doubleClicked().
void TGo4Browser::ExportSelectedItems | ( | const char * | filtername | ) |
Definition at line 1080 of file TGo4Browser.cpp.
Referenced by ContextMenuActivated(), and SaveSelectedItems().
void TGo4Browser::ExportSelectedItems | ( | const char * | filename, |
const char * | filedir, | ||
const char * | format, | ||
const char * | description | ||
) |
Definition at line 1096 of file TGo4Browser.cpp.
References BrowserProxy(), TGo4BrowserProxy::ExportItemsTo(), FullItemName(), TGo4QSettings::getFetchDataWhenSave(), and go4sett.
QTreeWidgetItem * TGo4Browser::FindItemFor | ( | TGo4Slot * | slot | ) |
Definition at line 211 of file TGo4Browser.cpp.
References TGo4BrowserProxy::BrowserItemName(), BrowserProxy(), and FullItemName().
Referenced by linkedObjectUpdated().
QString TGo4Browser::FullItemName | ( | QTreeWidgetItem * | item | ) |
Definition at line 198 of file TGo4Browser.cpp.
Referenced by canDrawItem(), ContextMenuActivated(), DisplaySelectedItems(), ExportSelectedItems(), FindItemFor(), ItemDropAcceptSlot(), ItemDropProcessSlot(), ListView_customContextMenuRequested(), ListView_doubleClicked(), RequestDragObjectSlot(), and SuperImposeSelectedItems().
|
slot |
Definition at line 561 of file TGo4Browser.cpp.
References AddIdAction(), ColumnNames, ColumnToggled(), fVisibleColumns, and NColumns.
Referenced by TGo4Browser().
|
slot |
Definition at line 832 of file TGo4Browser.cpp.
References ColumnNames, ColumnWidths, fVisibleColumns, go4sett, NColumns, and TGo4QSettings::setBrowserColumn().
Referenced by ColumnToggled(), and TGo4Browser().
|
slot |
Definition at line 161 of file TGo4Browser.cpp.
References QGo4Widget::Browser(), FullItemName(), TGo4Slot::GetParent(), TGo4BrowserProxy::ItemKind(), TGo4BrowserProxy::ItemSlot(), and TGo4Access::kndFolder.
|
slot |
Definition at line 181 of file TGo4Browser.cpp.
References QGo4Widget::Browser(), FullItemName(), TGo4QSettings::getFetchDataWhenCopy(), go4sett, and TGo4BrowserProxy::ProduceExplicitCopy().
Referenced by TGo4Browser().
|
virtual |
Reimplemented from QGo4Widget.
Definition at line 132 of file TGo4Browser.cpp.
References FindItemFor(), SetViewItemProperties(), and ShootUpdateTimer().
|
slot |
Definition at line 575 of file TGo4Browser.cpp.
References AddIdAction(), TGo4BrowserProxy::BrowserMemorySlot(), BrowserProxy(), TGo4BrowserProxy::CanClearItem(), TGo4BrowserProxy::CanCloseItem(), TGo4BrowserProxy::CanDrawItem(), TGo4BrowserProxy::CanEditItem(), TGo4BrowserProxy::CanExecuteItem(), TGo4BrowserProxy::CanExpandItem(), TGo4BrowserProxy::CanExportItem(), TGo4BrowserProxy::CanInfoItem(), ColumnNames, ColumnToggled(), ContextMenuActivated(), TGo4BrowserProxy::FindServerSlot(), FullItemName(), fVisibleColumns, TGo4Slot::GetAssignedObject(), TGo4BrowserProxy::GetProtectionBits(), TGo4BrowserProxy::IsCanDelete(), TGo4BrowserProxy::IsClipboard(), TGo4BrowserProxy::IsItemMonitored(), TGo4BrowserProxy::IsItemRemote(), TGo4Slot::IsParent(), TGo4BrowserProxy::ItemCanDo(), TGo4BrowserProxy::ItemClassName(), TGo4BrowserProxy::ItemKind(), TGo4BrowserProxy::ItemSlot(), TGo4Access::kndFolder, TGo4Access::kndObject, and NColumns.
|
slot |
Definition at line 514 of file TGo4Browser.cpp.
References BrowserProxy(), TGo4BrowserProxy::CanDrawItem(), TGo4BrowserProxy::CanEditItem(), TGo4BrowserProxy::CanExecuteItem(), TGo4BrowserProxy::CanExpandItem(), QGo4Widget::DrawItem(), QGo4Widget::EditItem(), ExecuteItem(), ExpandItem(), FullItemName(), TGo4QSettings::getDrawOnceFlag(), go4sett, TGo4BrowserProxy::ItemCanDo(), TGo4BrowserProxy::ItemSlot(), and QGo4Widget::WhereItemDrawn().
|
slot |
Definition at line 146 of file TGo4Browser.cpp.
References FullItemName().
Referenced by TGo4Browser().
|
virtual |
Reimplemented from QGo4Widget.
Definition at line 189 of file TGo4Browser.cpp.
void TGo4Browser::SaveSelectedItems | ( | ) |
Definition at line 1048 of file TGo4Browser.cpp.
References ExportSelectedItems().
Referenced by ContextMenuActivated().
void TGo4Browser::SetViewItemProperties | ( | TGo4Slot * | itemslot, |
QTreeWidgetItem * | item | ||
) |
Definition at line 228 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 1039 of file TGo4Browser.cpp.
References fbUpdateTimerActive, and updateListViewItems().
Referenced by ColumnToggled(), ContextMenuActivated(), linkedObjectUpdated(), and StartWorking().
void TGo4Browser::StartWorking | ( | ) |
Definition at line 126 of file TGo4Browser.cpp.
References QGo4Widget::AddLink(), and ShootUpdateTimer().
void TGo4Browser::SuperImposeSelectedItems | ( | ) |
Definition at line 494 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, TGo4QSettings::getHideTGo4EventElement(), 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(), and SetViewItemProperties().
Referenced by ShootUpdateTimer().
|
protected |
Definition at line 28 of file TGo4Browser.h.
Referenced by ShootUpdateTimer(), TGo4Browser(), and updateListViewItems().
|
protected |
Definition at line 29 of file TGo4Browser.h.
Referenced by ColumnToggled(), Header_customContextMenuRequested(), HeaderSectionResizedSlot(), ListView_customContextMenuRequested(), TGo4Browser(), and updateListViewItems().