00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision: 17495 $ 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 _QMITKIMAGENAVIGATORVIEW_H_INCLUDED 00019 #define _QMITKIMAGENAVIGATORVIEW_H_INCLUDED 00020 00021 #include <berryQtViewPart.h> 00022 #include "berryISizeProvider.h" 00023 00024 #include <QmitkDataNodeSelectionProvider.h> 00025 #include <QmitkDnDFrameWidget.h> 00026 #include <QmitkStdMultiWidgetEditor.h> 00027 #include "QmitkStepperAdapter.h" 00028 00029 #include <string> 00030 00031 #include "ui_QmitkImageNavigatorViewControls.h" 00032 #include "berryISizeProvider.h" 00033 00034 00044 class QmitkImageNavigatorView : public QObject, public berry::QtViewPart, public berry::ISizeProvider 00045 { 00046 00047 // this is needed for all Qt objects that should have a MOC object (everything that derives from QObject) 00048 Q_OBJECT 00049 00050 public: 00051 00052 static const std::string VIEW_ID; 00053 00054 QmitkImageNavigatorView(); 00055 virtual ~QmitkImageNavigatorView(); 00056 00057 virtual void CreateQtPartControl(QWidget *parent); 00058 00059 QmitkStdMultiWidget* GetActiveStdMultiWidget(); 00060 00061 void SetFocus(); 00062 00063 virtual int GetSizeFlags(bool width); 00064 virtual int ComputePreferredSize(bool width, int /*availableParallel*/, int /*availablePerpendicular*/, int preferredResult); 00065 00066 protected slots: 00067 00068 protected: 00069 00070 Ui::QmitkImageNavigatorViewControls m_Controls; 00071 00072 QmitkStdMultiWidget* m_MultiWidget; 00073 QmitkStepperAdapter* m_TransversalStepper; 00074 QmitkStepperAdapter* m_SagittalStepper; 00075 QmitkStepperAdapter* m_FrontalStepper; 00076 QmitkStepperAdapter* m_TimeStepper; 00077 }; 00078 00079 00080 00081 00082 #endif // _QMITKIMAGENAVIGATORVIEW_H_INCLUDED 00083