]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkQtBlackBoxDialog.h
Qt black boxes updated
[bbtk.git] / kernel / src / bbtkQtBlackBoxDialog.h
index a9d6202f027413604e5f091e5981f658da8fc945..ba2fb29f2798b8d3b0a3bae34076dc06e4e6a2b0 100644 (file)
@@ -5,9 +5,9 @@
 
 
 #include "bbtkQtBlackBox.h"
-#include "bbtkWidgetBlackBoxWindow.h"
+
+#include <QDialog>
 #include "ui_bbtkQtBlackBoxDialog.h"
-#include "bbtkQtBlackBoxDialogParent.h"
 
 namespace bbtk
 {
@@ -15,25 +15,18 @@ namespace bbtk
   //=========================================================================
   // QtBlackBoxDialog
   //=========================================================================
-  class QtBlackBoxDialog : public QtBlackBoxDialogParent,
-                          // WidgetBlackBoxWindow<QWidget>, 
-                          // public QDialog,
+  class QtBlackBoxDialog : public QDialog,
                           private Ui::bbtkQtBlackBoxDialog
   {
     Q_OBJECT
   public:
-    typedef QtBlackBoxDialogParent Parent;
-    //  typedef WidgetBlackBoxWindow<QWidget> Parent;
-    //QtBlackBoxDialog() : Parent(QtBlackBox::Pointer()) {}
     QtBlackBoxDialog(QtBlackBox::Pointer box,
                     QWidget *parent,
                     const std::string& title,
                     int width, int height);
     ~QtBlackBoxDialog();
-    void bbShow();
-    void bbHide();
-    void bbDestroy();
-    bool bbIsDialog() { return true; }
+  private:
+    QtBlackBox::WeakPointer mBox;
   };
   //=========================================================================