Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
QmitkDataNodeRemoveAction.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkDataNodeRemoveAction_h
14 #define QmitkDataNodeRemoveAction_h
15 
17 
19 
20 // qt
21 #include <QAction>
22 
23 namespace RemoveAction
24 {
26  mitk::DataStorage::Pointer dataStorage,
27  const QList<mitk::WeakPointer<mitk::DataNode>>& selectedNodes,
28  QWidget* parent = nullptr);
29 }
30 
32 {
33  Q_OBJECT
34 
35 public:
36 
38  QmitkDataNodeRemoveAction(QWidget* parent, berry::IWorkbenchPartSite* workbenchPartSite);
39 
40 private Q_SLOTS:
41 
42  void OnActionTriggered(bool);
43 
44 protected:
45 
46  void InitializeAction() override;
47 
48 private:
49 
50  QWidget* m_Parent;
51 
52 };
53 
54 #endif
void InitializeAction() override
QmitkDataNodeRemoveAction(QWidget *parent, berry::IWorkbenchPartSite::Pointer workbenchPartSite)
QmitkDataNodeRemoveAction(QWidget *parent, berry::IWorkbenchPartSite *workbenchPartSite)
Implements transparent reference counting.
MITK_QT_APP void Run(berry::IWorkbenchPartSite::Pointer workbenchPartSite, mitk::DataStorage::Pointer dataStorage, const QList< mitk::WeakPointer< mitk::DataNode >> &selectedNodes, QWidget *parent=nullptr)