00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2009-10-09 16:36:23 +0200 (Fr, 09 Okt 2009) $ 00006 Version: $Revision: 19414 $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef QmitkCloseProjectAction_H_ 00019 #define QmitkCloseProjectAction_H_ 00020 00021 #ifdef __MINGW32__ 00022 // We need to include winbase.h here in order to declare 00023 // atomic intrinsics like InterlockedIncrement correctly. 00024 // Otherwhise, they would be declared wrong within qatomic_windows.h . 00025 #include <windows.h> 00026 #endif 00027 00028 #include <QAction> 00029 00030 #include "mitkQtCommonDll.h" 00031 00032 #include <berryIWorkbenchWindow.h> 00033 00034 class MITK_QT_COMMON QmitkCloseProjectAction : public QAction 00035 { 00036 Q_OBJECT 00037 00038 public: 00039 QmitkCloseProjectAction(berry::IWorkbenchWindow::Pointer window); 00040 QmitkCloseProjectAction(const QIcon & icon, berry::IWorkbenchWindow::Pointer window); 00041 protected slots: 00042 void Run(); 00043 00044 private: 00045 void init(berry::IWorkbenchWindow::Pointer window); 00046 berry::IWorkbenchWindow::Pointer m_Window; 00047 }; 00048 #endif /*QmitkCloseProjectAction_H_*/