]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/QT/WindowLevelImageConfiguration.h
...
[cpPlugins.git] / lib / cpExtensions / QT / WindowLevelImageConfiguration.h
index e6910c0891cd2d812d8ca0aca67cf1c76776673e..1725253cb1bc787609e9e8ea4c874b1f2835495e 100644 (file)
@@ -2,9 +2,6 @@
 #define __cpExtensions__QT__WindowLevelImageConfiguration__h__
 
 #include <cpExtensions/Config.h>
-
-#ifdef cpExtensions_QT4
-
 #include <QWidget>
 
 // -------------------------------------------------------------------------
@@ -15,7 +12,7 @@ namespace cpExtensions
 {
   namespace QT
   {
-    class SimpleMPRWidget;
+    class ActorsWidgetInterface;
 
     /**
      */
@@ -29,10 +26,12 @@ namespace cpExtensions
       typedef QWidget                       Superclass;
 
     public:
-      explicit WindowLevelImageConfiguration( QWidget* parent = NULL, Qt::WindowFlags f = 0 );
+      explicit WindowLevelImageConfiguration(
+        QWidget* parent = NULL, Qt::WindowFlags f = 0
+        );
       virtual ~WindowLevelImageConfiguration( );
 
-      void setData( SimpleMPRWidget* data );
+      void setData( ActorsWidgetInterface* data, const std::string& name );
 
     protected slots:
       void _maximumValue( int v );
@@ -44,15 +43,14 @@ namespace cpExtensions
 
     protected:
       Ui::WindowLevelImageConfiguration* m_UI;
-      SimpleMPRWidget* m_Data;
+      ActorsWidgetInterface* m_Data;
+      std::string m_Name;
     };
 
   } // ecapseman
 
 } // ecapseman
 
-#endif // cpExtensions_QT4
-
 #endif // __cpExtensions__QT__WindowLevelImageConfiguration__h__
 
 // eof - $RCSfile$