Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _QmitkTrackingSourcesCheckBoxPanelWidget_H_INCLUDED
00019 #define _QmitkTrackingSourcesCheckBoxPanelWidget_H_INCLUDED
00020
00021 #include "ui_QmitkTrackingSourcesCheckBoxPanelWidgetControls.h"
00022 #include "MitkIGTUIExports.h"
00023
00024 #include <mitkNavigationDataSource.h>
00025 #include <QCheckBox>
00026
00027
00028
00029
00036 class MitkIGTUI_EXPORT QmitkTrackingSourcesCheckBoxPanelWidget : public QWidget
00037 {
00038 Q_OBJECT
00039 public:
00040
00041
00042 typedef std::vector< QCheckBox* > TrackingSourcesCheckboxes;
00043
00047 QmitkTrackingSourcesCheckBoxPanelWidget( QWidget* parent );
00048
00052 virtual ~QmitkTrackingSourcesCheckBoxPanelWidget();
00053
00057 void ShowSourceCheckboxes();
00058
00062 void SetNavigationDatas(std::vector<mitk::NavigationData::Pointer>* navDatas);
00063
00067 void AddNavigationData(mitk::NavigationData::Pointer nd);
00068
00072 void SetInfoText(QString text);
00073
00077 void SetActionPerformButtonText(QString text);
00078
00082 void SetActionPerformButtonCheckable(bool checkable);
00083
00087 void HideActionPerformButton(bool hide);
00088
00092 const std::vector<int>* GetSelectedTrackingSourcesIDs();
00093
00097 void SelectAll();
00098
00102 void DeselectAll();
00103
00107 void SelectCheckbox(unsigned int idx);
00108
00112 void DeselectCheckbox(unsigned int idx);
00113
00117 void EnableCheckboxes(bool enable);
00118
00122 void ClearSelectedIDs();
00123
00124 signals:
00125 void Selected(int id);
00126 void Deselected(int id);
00127 void PerformAction();
00128 void StopAction();
00129 void Action();
00130
00131 public slots:
00132 void ClearPanel();
00133
00134 protected slots:
00135 void OnCheckboxClicked(bool checked);
00136 void OnPerformActionClicked(bool toggled);
00137 void OnPerformActionClicked();
00138
00139 protected:
00140 void CreateConnections();
00141 void CreateQtPartControl( QWidget *parent );
00142 Ui::QmitkTrackingSourcesCheckBoxPanelWidgetControls* m_Controls;
00143
00144
00145
00146
00147
00148 private:
00149 TrackingSourcesCheckboxes* m_SourceCheckboxes;
00150 std::vector<mitk::NavigationData::Pointer>* m_NavigationDatas;
00151 std::vector<int>* m_SelectedIds;
00152
00153
00154 };
00155 #endif // _QmitkTrackingSourcesCheckBoxPanelWidget_H_INCLUDED
00156