Public Member Functions | Friends

QmitkPropertyListView Class Reference

#include <QmitkPropertyListView.h>

Inheritance diagram for QmitkPropertyListView:
Inheritance graph
[legend]
Collaboration diagram for QmitkPropertyListView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

berryObjectMacro(QmitkPropertyListView)
static const std 
QmitkPropertyListView ()
 Standard ctor.
virtual ~QmitkPropertyListView ()
 Standard dtor.
void CreateQtPartControl (QWidget *parent)
 Create the view here.
virtual bool IsExclusiveFunctionality () const
virtual void OnSelectionChanged (std::vector< mitk::DataNode * > nodes)

Friends

struct berry::SelectionChangedAdapter< QmitkPropertyListView >

Detailed Description

A view to show

Definition at line 33 of file QmitkPropertyListView.h.


Constructor & Destructor Documentation

berryObjectMacro (QmitkPropertyListView) static const std QmitkPropertyListView::QmitkPropertyListView (  )

Standard ctor.

The unique ID of this view

QmitkPropertyListView::~QmitkPropertyListView (  ) [virtual]

Standard dtor.

Definition at line 34 of file QmitkPropertyListView.cpp.

{
}

Member Function Documentation

void QmitkPropertyListView::CreateQtPartControl ( QWidget *  parent ) [virtual]

Create the view here.

Implements berry::QtViewPart.

Definition at line 38 of file QmitkPropertyListView.cpp.

{
  m_NodePropertiesTableEditor = new QmitkPropertiesTableEditor;

  QVBoxLayout* layout = new QVBoxLayout;
  layout->addWidget(m_NodePropertiesTableEditor);

  parent->setLayout(layout);
}
bool QmitkPropertyListView::IsExclusiveFunctionality (  ) const [virtual]

This is not a standalone functionality (can be easily used with other functionalities open) -> return false

Reimplemented from QmitkFunctionality.

Definition at line 55 of file QmitkPropertyListView.cpp.

{
  return false;
}
void QmitkPropertyListView::OnSelectionChanged ( std::vector< mitk::DataNode * >  nodes ) [virtual]

Invoked when the DataManager selection changed

Reimplemented from QmitkFunctionality.

Definition at line 48 of file QmitkPropertyListView.cpp.

References QmitkPropertiesTableEditor::SetPropertyList().

{
  if (nodes.empty() || (nodes.front() == NULL)) return;
      
  m_NodePropertiesTableEditor->SetPropertyList(nodes.front()->GetPropertyList());
}

Friends And Related Function Documentation

Definition at line 71 of file QmitkPropertyListView.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines