Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmitkViewNavigatorWidget.h>
Public Slots | |
void | CustomMenuRequested (QPoint pos) |
void | ItemClicked (const QModelIndex &index) |
void | SaveCurrentPerspectiveAs () |
void | ResetCurrentPerspective () |
void | CloseAllPerspectives () |
void | ClosePerspective () |
void | ExpandAll () |
void | CollapseAll () |
void | FilterChanged () |
Public Member Functions | |
QmitkViewNavigatorWidget (berry::IWorkbenchWindow::Pointer window, QWidget *parent=nullptr, Qt::WindowFlags f=nullptr) | |
virtual | ~QmitkViewNavigatorWidget () |
virtual void | CreateQtPartControl (QWidget *parent) |
void | setFocus () |
bool | FillTreeList () |
void | UpdateTreeList (QStandardItem *item=nullptr, berry::IWorkbenchPartReference *partRef=nullptr, const std::string &changeId="") |
Public Attributes | |
QScopedPointer< berry::IPerspectiveListener > | m_PerspectiveListener |
QScopedPointer< berry::IWindowListener > | m_WindowListener |
Protected Attributes | |
Ui::QmitkViewNavigatorWidgetControls | m_Controls |
QWidget * | m_Parent |
QStandardItemModel * | m_TreeModel |
ClassFilterProxyModel * | m_FilterProxyModel |
QMenu * | m_ContextMenu |
berry::IPerspectiveDescriptor::Pointer | m_ActivePerspective |
bool | m_Generated |
Definition at line 41 of file QmitkViewNavigatorWidget.h.
QmitkViewNavigatorWidget::QmitkViewNavigatorWidget | ( | berry::IWorkbenchWindow::Pointer | window, |
QWidget * | parent = nullptr , |
||
Qt::WindowFlags | f = nullptr |
||
) |
Definition at line 260 of file QmitkViewNavigatorWidget.cpp.
References CreateQtPartControl(), and m_Generated.
|
virtual |
Definition at line 269 of file QmitkViewNavigatorWidget.cpp.
References m_PerspectiveListener.
|
slot |
Definition at line 626 of file QmitkViewNavigatorWidget.cpp.
References berry::IWorkbench::GetActiveWorkbenchWindow(), and berry::PlatformUI::GetWorkbench().
Referenced by CustomMenuRequested().
|
slot |
Definition at line 611 of file QmitkViewNavigatorWidget.cpp.
Referenced by CustomMenuRequested().
|
slot |
Definition at line 643 of file QmitkViewNavigatorWidget.cpp.
References m_Controls.
Referenced by CustomMenuRequested().
|
virtual |
Definition at line 279 of file QmitkViewNavigatorWidget.cpp.
References CustomMenuRequested(), FilterChanged(), ItemClicked(), m_ContextMenu, m_Controls, m_FilterProxyModel, m_Parent, m_PerspectiveListener, m_TreeModel, UpdateTreeList(), and ViewNavigatorPerspectiveListener.
Referenced by QmitkViewNavigatorWidget().
|
slot |
Definition at line 648 of file QmitkViewNavigatorWidget.cpp.
References CloseAllPerspectives(), ClosePerspective(), CollapseAll(), ExpandAll(), berry::SmartPointer< TObjectType >::IsNotNull(), m_ActivePerspective, m_ContextMenu, m_Controls, m_FilterProxyModel, m_TreeModel, ResetCurrentPerspective(), and SaveCurrentPerspectiveAs().
Referenced by CreateQtPartControl().
|
slot |
Definition at line 638 of file QmitkViewNavigatorWidget.cpp.
References m_Controls.
Referenced by CustomMenuRequested().
bool QmitkViewNavigatorWidget::FillTreeList | ( | ) |
Definition at line 350 of file QmitkViewNavigatorWidget.cpp.
References comparePerspectives(), compareQStandardItems(), compareViews(), berry::IWorkbench::GetPerspectiveRegistry(), berry::IPerspectiveRegistry::GetPerspectives(), berry::IWorkbench::GetViewRegistry(), berry::IViewRegistry::GetViews(), berry::PlatformUI::GetWorkbench(), berry::SmartPointer< TObjectType >::IsNotNull(), berry::SmartPointer< TObjectType >::IsNull(), m_Controls, mitk::QtViewItem::m_Description, mitk::QtPerspectiveItem::m_Description, mitk::QtPerspectiveItem::m_Perspective, mitk::QtPerspectiveItem::m_Tags, mitk::QtViewItem::m_Tags, m_TreeModel, mitk::QtViewItem::m_View, m_WindowListener, and berry::IWorkbench::RemoveWindowListener().
Referenced by SaveCurrentPerspectiveAs(), and UpdateTreeList().
|
slot |
Definition at line 537 of file QmitkViewNavigatorWidget.cpp.
References m_Controls, and m_FilterProxyModel.
Referenced by CreateQtPartControl().
|
slot |
Definition at line 553 of file QmitkViewNavigatorWidget.cpp.
References BERRY_ERROR, berry::IWorkbench::GetActiveWorkbenchWindow(), berry::PlatformUI::GetWorkbench(), berry::SmartPointer< TObjectType >::IsNotNull(), m_FilterProxyModel, mitk::QtPerspectiveItem::m_Perspective, m_TreeModel, mitk::QtViewItem::m_View, and berry::IWorkbench::ShowPerspective().
Referenced by CreateQtPartControl().
|
slot |
Definition at line 605 of file QmitkViewNavigatorWidget.cpp.
References berry::IWorkbench::GetActiveWorkbenchWindow(), and berry::PlatformUI::GetWorkbench().
Referenced by CustomMenuRequested().
|
slot |
Definition at line 588 of file QmitkViewNavigatorWidget.cpp.
References berry::IHandlerService::ExecuteCommand(), FillTreeList(), MITK_ERROR, and berry::IWorkbenchCommandConstants::WINDOW_SAVE_PERSPECTIVE_AS.
Referenced by CustomMenuRequested().
void QmitkViewNavigatorWidget::setFocus | ( | ) |
Definition at line 274 of file QmitkViewNavigatorWidget.cpp.
References m_Controls.
void QmitkViewNavigatorWidget::UpdateTreeList | ( | QStandardItem * | item = nullptr , |
berry::IWorkbenchPartReference * | partRef = nullptr , |
||
const std::string & | changeId = "" |
||
) |
Definition at line 304 of file QmitkViewNavigatorWidget.cpp.
References FillTreeList(), berry::IWorkbenchPartReference::GetId(), berry::SmartPointer< TObjectType >::IsNotNull(), berry::SmartPointer< TObjectType >::IsNull(), m_Generated, mitk::QtPerspectiveItem::m_Perspective, m_TreeModel, and mitk::QtViewItem::m_View.
Referenced by CreateQtPartControl().
|
protected |
Definition at line 83 of file QmitkViewNavigatorWidget.h.
Referenced by CustomMenuRequested().
|
protected |
Definition at line 82 of file QmitkViewNavigatorWidget.h.
Referenced by CreateQtPartControl(), and CustomMenuRequested().
|
protected |
Definition at line 78 of file QmitkViewNavigatorWidget.h.
Referenced by CollapseAll(), CreateQtPartControl(), CustomMenuRequested(), ExpandAll(), FillTreeList(), FilterChanged(), and setFocus().
|
protected |
Definition at line 81 of file QmitkViewNavigatorWidget.h.
Referenced by CreateQtPartControl(), CustomMenuRequested(), FilterChanged(), and ItemClicked().
|
protected |
Definition at line 84 of file QmitkViewNavigatorWidget.h.
Referenced by QmitkViewNavigatorWidget(), and UpdateTreeList().
|
protected |
Definition at line 79 of file QmitkViewNavigatorWidget.h.
Referenced by CreateQtPartControl().
QScopedPointer<berry::IPerspectiveListener> QmitkViewNavigatorWidget::m_PerspectiveListener |
Definition at line 58 of file QmitkViewNavigatorWidget.h.
Referenced by CreateQtPartControl(), and ~QmitkViewNavigatorWidget().
|
protected |
Definition at line 80 of file QmitkViewNavigatorWidget.h.
Referenced by CreateQtPartControl(), CustomMenuRequested(), FillTreeList(), ItemClicked(), and UpdateTreeList().
QScopedPointer<berry::IWindowListener> QmitkViewNavigatorWidget::m_WindowListener |
Definition at line 59 of file QmitkViewNavigatorWidget.h.
Referenced by FillTreeList().