00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2009-05-12 19:14:45 +0200 (Di, 12 Mai 2009) $ 00006 Version: $Revision: 1.12 $ 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 QMITKNAVIGATIONTOOLMANAGEMENTWIDGET_H 00019 #define QMITKNAVIGATIONTOOLMANAGEMENTWIDGET_H 00020 00021 //QT headers 00022 #include <QWidget> 00023 00024 //mitk headers 00025 #include "MitkIGTUIExports.h" 00026 #include "mitkNavigationTool.h" 00027 #include <mitkNavigationToolStorage.h> 00028 00029 //ui header 00030 #include "ui_QmitkNavigationToolManagementWidgetControls.h" 00031 00042 class MitkIGTUI_EXPORT QmitkNavigationToolManagementWidget : public QWidget 00043 { 00044 Q_OBJECT 00045 00046 public: 00047 static const std::string VIEW_ID; 00048 00049 void Initialize(mitk::DataStorage* dataStorage); 00050 00051 QmitkNavigationToolManagementWidget(QWidget* parent = 0, Qt::WindowFlags f = 0); 00052 ~QmitkNavigationToolManagementWidget(); 00053 00054 protected slots: 00055 00056 //main widget page: 00057 void OnAddTool(); 00058 void OnDeleteTool(); 00059 void OnEditTool(); 00060 void OnLoadSingleTool(); 00061 void OnSaveSingleTool(); 00062 void OnLoadStorage(); 00063 void OnSaveStorage(); 00064 00065 //widget page "add tool": 00066 void OnAddToolCancel(); 00067 void OnAddToolSave(); 00068 void OnLoadSurface(); 00069 void OnLoadCalibrationFile(); 00070 00071 00072 protected: 00073 00075 virtual void CreateConnections(); 00076 00077 virtual void CreateQtPartControl(QWidget *parent); 00078 00079 Ui::QmitkNavigationToolManagementWidgetControls* m_Controls; 00080 00082 mitk::DataStorage* m_DataStorage; 00083 00085 mitk::NavigationToolStorage::Pointer m_NavigationToolStorage; 00086 00088 bool m_edit; 00089 00090 //############## private help methods ####################### 00091 void MessageBox(std::string s); 00092 void UpdateToolTable(); 00093 }; 00094 #endif