#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 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 | ShootUpdateTimer () |
void | SaveSelectedItems () |
void | ExportSelectedItems (const char *filtername) |
void | ExportSelectedItems (const char *filename, const char *filedir, const char *format, const char *description) |
Protected Attributes | |
bool | fbUpdateTimerActive |
bool | fVisibleColumns [7] |
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(), ExportSelectedItems(), FindItemFor(), ListView_customContextMenuRequested(), ListView_doubleClicked(), SetViewItemProperties(), and updateListViewItems().
bool TGo4Browser::canDrawItem | ( | QTreeWidgetItem * | item | ) |
Definition at line 1012 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().
void TGo4Browser::ColumnToggled | ( | int | indx | ) | [slot] |
Definition at line 811 of file TGo4Browser.cpp.
References fVisibleColumns, HeaderSectionResizedSlot(), NColumns, and ShootUpdateTimer().
Referenced by Header_customContextMenuRequested(), and ListView_customContextMenuRequested().
void TGo4Browser::ContextMenuActivated | ( | int | id | ) | [slot] |
Definition at line 834 of file TGo4Browser.cpp.
References TGo4BrowserProxy::AddToClipboard(), BrowserProxy(), TGo4BrowserProxy::CanEditItem(), TGo4BrowserProxy::CanInfoItem(), TGo4AnalysisProxy::ChageObjectProtection(), TGo4AnalysisProxy::ClearAnalysisObject(), TGo4BrowserProxy::ClearClipboard(), TGo4BrowserProxy::ClearMemoryItem(), TGo4BrowserProxy::CopyClipboard(), TGo4BrowserProxy::CreateMemorySubfolder(), TGo4BrowserProxy::DefineAnalysisObject(), TGo4BrowserProxy::DefineDabcProxy(), TGo4BrowserProxy::DefineHServerProxy(), TGo4BrowserProxy::DeleteDataSource(), DisplaySelectedItems(), QGo4Widget::EditItem(), ExportSelectedItems(), TGo4BrowserProxy::FetchItem(), FullItemName(), TGo4Slot::GetAssignedObject(), TGo4QSettings::getFetchDataWhenCopy(), TGo4Iter::getslot(), go4sett, TGo4BrowserProxy::ItemCanDo(), TGo4BrowserProxy::ItemClass(), TGo4BrowserProxy::ItemKind(), TGo4BrowserProxy::ItemSlot(), TGo4Access::kndFolder, TGo4Iter::next(), TGo4BrowserProxy::ProduceExplicitCopy(), TGo4DabcProxy::RefreshNamesList(), TGo4AnalysisProxy::RefreshNamesList(), TGo4AnalysisProxy::RemoveObjectFromAnalysis(), TGo4BrowserProxy::RenameMemoryItem(), TGo4HServProxy::RequestHistosList(), 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::ExportSelectedItems | ( | const char * | filtername | ) |
Definition at line 1060 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 1076 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().
void TGo4Browser::Header_customContextMenuRequested | ( | const QPoint & | pos | ) | [slot] |
Definition at line 552 of file TGo4Browser.cpp.
References AddIdAction(), ColumnNames, ColumnToggled(), fVisibleColumns, and NColumns.
Referenced by TGo4Browser().
void TGo4Browser::HeaderSectionResizedSlot | ( | int | , | |
int | , | |||
int | ||||
) | [slot] |
Definition at line 821 of file TGo4Browser.cpp.
References ColumnNames, ColumnWidths, fVisibleColumns, go4sett, NColumns, and TGo4QSettings::setBrowserColumn().
Referenced by ColumnToggled(), and TGo4Browser().
void TGo4Browser::ItemDropAcceptSlot | ( | void * | item, | |
void * | mime, | |||
bool * | res | |||
) | [slot] |
Definition at line 161 of file TGo4Browser.cpp.
References QGo4Widget::Browser(), FullItemName(), TGo4Slot::GetParent(), TGo4BrowserProxy::ItemKind(), and TGo4BrowserProxy::ItemSlot().
void TGo4Browser::ItemDropProcessSlot | ( | void * | item, | |
void * | e | |||
) | [slot] |
Definition at line 181 of file TGo4Browser.cpp.
References QGo4Widget::Browser(), FullItemName(), TGo4QSettings::getFetchDataWhenCopy(), go4sett, and TGo4BrowserProxy::ProduceExplicitCopy().
Referenced by TGo4Browser().
void TGo4Browser::linkedObjectUpdated | ( | const char * | linkname, | |
TObject * | obj | |||
) | [virtual] |
Reimplemented from QGo4Widget.
Definition at line 132 of file TGo4Browser.cpp.
References FindItemFor(), SetViewItemProperties(), and ShootUpdateTimer().
void TGo4Browser::ListView_customContextMenuRequested | ( | const QPoint & | pos | ) | [slot] |
Definition at line 566 of file TGo4Browser.cpp.
References AddIdAction(), TGo4BrowserProxy::BrowserMemorySlot(), BrowserProxy(), TGo4BrowserProxy::CanClearItem(), TGo4BrowserProxy::CanCloseItem(), TGo4BrowserProxy::CanDrawItem(), TGo4BrowserProxy::CanEditItem(), TGo4BrowserProxy::CanExportItem(), TGo4BrowserProxy::CanInfoItem(), ColumnNames, ColumnToggled(), ContextMenuActivated(), TGo4BrowserProxy::FindAnalysisSlot(), 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.
void TGo4Browser::ListView_doubleClicked | ( | QTreeWidgetItem * | item, | |
int | ncol | |||
) | [slot] |
Definition at line 514 of file TGo4Browser.cpp.
References BrowserProxy(), TGo4BrowserProxy::CanDrawItem(), TGo4BrowserProxy::CanEditItem(), QGo4Widget::DrawItem(), QGo4Widget::EditItem(), FullItemName(), TGo4QSettings::getDrawOnceFlag(), go4sett, TGo4BrowserProxy::ItemCanDo(), TGo4BrowserProxy::ItemSlot(), and QGo4Widget::WhereItemDrawn().
void TGo4Browser::RequestDragObjectSlot | ( | QDrag ** | res | ) | [slot] |
Definition at line 146 of file TGo4Browser.cpp.
References FullItemName().
Referenced by TGo4Browser().
void TGo4Browser::ResetWidget | ( | ) | [virtual] |
Reimplemented from QGo4Widget.
Definition at line 189 of file TGo4Browser.cpp.
void TGo4Browser::SaveSelectedItems | ( | ) |
Definition at line 1028 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 1019 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 494 of file TGo4Browser.cpp.
References canDrawItem(), QGo4Widget::CreateViewPanel(), QGo4Widget::DrawItem(), FullItemName(), TGo4ViewPanel::GetCanvas(), TGo4ViewPanel::SetPadSuperImpose(), and TGo4ViewPanel::ShootRepaintTimer().
Referenced by ContextMenuActivated().
void TGo4Browser::updateListViewItems | ( | ) | [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, TGo4Iter::levelchange(), NColumns, TGo4Iter::next(), nextSibling(), QGo4Widget::ServiceCall(), TGo4BrowserProxy::SetItemCanDo(), and SetViewItemProperties().
Referenced by ShootUpdateTimer().
bool TGo4Browser::fbUpdateTimerActive [protected] |
Definition at line 28 of file TGo4Browser.h.
Referenced by ShootUpdateTimer(), TGo4Browser(), and updateListViewItems().
bool TGo4Browser::fVisibleColumns[7] [protected] |
Definition at line 29 of file TGo4Browser.h.
Referenced by ColumnToggled(), Header_customContextMenuRequested(), HeaderSectionResizedSlot(), ListView_customContextMenuRequested(), TGo4Browser(), and updateListViewItems().