]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/ParametersQtDialog.h
...
[cpPlugins.git] / lib / cpPlugins / Interface / ParametersQtDialog.h
index 4d4d37f731c5404ea5aa732906f881ae3fbca4a7..40b85141fd91efcf12233129ea62c5bc0d374ce7 100644 (file)
@@ -7,10 +7,12 @@
 
 #include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
 #include <cpPlugins/Interface/Parameters.h>
-#include <cpExtensions/Interaction/ImageInteractorStyle.h>
 
 #include <set>
 
+#include <vtkInteractorObserver.h>
+#include <vtkSmartPointer.h>
+
 #include <QDialog>
 #include <QDialogButtonBox>
 #include <QGridLayout>
@@ -31,9 +33,10 @@ namespace cpPlugins
       Q_OBJECT;
 
     public:
-      typedef cpExtensions::Interaction::ImageInteractorStyle TStyle;
-
       typedef std::set< vtkRenderWindowInteractor* > TInteractors;
+      typedef
+        std::map< std::string, vtkSmartPointer< vtkInteractorObserver > >
+        TWidgets;
 
     public:
       ParametersQtDialog( QWidget* parent = 0, Qt::WindowFlags f = 0 );
@@ -43,6 +46,10 @@ namespace cpPlugins
       void addInteractor( vtkRenderWindowInteractor* interactor );
       TInteractors& getInteractors( );
       const TInteractors& getInteractors( ) const;
+      bool isInteractive( ) const;
+      void setInteractive( bool i );
+      void interactiveOn( );
+      void interactiveOff( );
       bool setParameters( Parameters* parameters );
 
       virtual int exec( );
@@ -68,6 +75,8 @@ namespace cpPlugins
       QDialogButtonBox* m_Buttons;
 
       TInteractors m_Interactors;
+      TWidgets m_Widgets;
+      bool m_Interactive;
     };
 
   } // ecapseman