]> Creatis software - bbtk.git/blob - kernel/src/bbtkQtBlackBoxDialog.h
34df2647b94440bc1e96312fefdfa048f4bc1f66
[bbtk.git] / kernel / src / bbtkQtBlackBoxDialog.h
1 #ifndef __bbtkQtBlackBoxDialog_h_INCLUDED__
2 #define __bbtkQtBlackBoxDialog_h_INCLUDED__
3
4 #ifdef USE_QT
5
6
7 #include "bbtkQtBlackBox.h"
8 #include "bbtkWidgetBlackBoxWindow.h"
9 #include "ui_bbtkQtBlackBoxDialog.h"
10 #include "bbtkQtBlackBoxDialogParent.h"
11
12 namespace bbtk
13 {
14
15   //=========================================================================
16   // QtBlackBoxDialog
17   //=========================================================================
18   class QtBlackBoxDialog : public QtBlackBoxDialogParent,
19                            // WidgetBlackBoxWindow<QWidget>, 
20                            // public QDialog,
21                            private Ui::bbtkQtBlackBoxDialog
22   {
23     Q_OBJECT
24   public:
25     typedef QtBlackBoxDialogParent Parent;
26     //  typedef WidgetBlackBoxWindow<QWidget> Parent;
27     //QtBlackBoxDialog() : Parent(QtBlackBox::Pointer()) {}
28     QtBlackBoxDialog(QtBlackBox::Pointer box,
29                      QWidget *parent,
30                      const std::string& title,
31                      int width, int height);
32     ~QtBlackBoxDialog();
33     void bbShow();
34     void bbHide();
35     void bbClose();
36     bool bbIsDialog() { return true; }
37   };
38   //=========================================================================
39
40 }
41
42 #endif
43 #endif
44