X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FParametersQtDialog.h;h=d19d31450323814a4ceec7f3ae11cd8d12110784;hb=00b54bc0344d74f31df8b93f7c28a07cfc8d6873;hp=2dc62ed168a2542f9d0ffb035c470621ac89e7c4;hpb=022d9ce59bfd6ab97517cba9440429750df6c442;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/ParametersQtDialog.h b/lib/cpPlugins/Interface/ParametersQtDialog.h index 2dc62ed..d19d314 100644 --- a/lib/cpPlugins/Interface/ParametersQtDialog.h +++ b/lib/cpPlugins/Interface/ParametersQtDialog.h @@ -7,15 +7,15 @@ #include #include +#include -#include +#include #include #include #include #include -class vtkAbstractWidget; class vtkRenderWindowInteractor; namespace cpPlugins @@ -29,13 +29,20 @@ namespace cpPlugins { Q_OBJECT; + public: + typedef cpExtensions::Interaction::ImageInteractorStyle TStyle; + + typedef std::set< vtkRenderWindowInteractor* > TInteractors; + public: ParametersQtDialog( QWidget* parent = 0, Qt::WindowFlags f = 0 ); virtual ~ParametersQtDialog( ); bool IsModal( ) const; Parameters* getParameters( ) const; - void setInteractor( vtkRenderWindowInteractor* interactor ); + void addInteractor( vtkRenderWindowInteractor* interactor ); + TInteractors& getInteractors( ); + const TInteractors& getInteractors( ) const; bool setParameters( Parameters* parameters ); void setTitle( const std::string& title ); @@ -50,18 +57,9 @@ namespace cpPlugins QVBoxLayout* m_ToolsLayout; bool m_IsModal; - vtkRenderWindowInteractor* m_Interactor; - std::vector< vtkAbstractWidget* > m_Widgets; + TInteractors m_Interactors; }; - /* TODO - bool cpPlugins_Interface_EXPORT ParametersQtDialog( - Parameters* parameters, - const std::string& title, - QWidget* parent = NULL - ); - */ - } // ecapseman } // ecapseman