]> Creatis software - bbtk.git/blob - packages/qt/src/bbqtOutputText.h
*** empty log message ***
[bbtk.git] / packages / qt / src / bbqtOutputText.h
1 #ifdef USE_QT
2
3 #ifndef __bbqtQOutputText_h_INCLUDED__
4 #define __bbqtQOutputText_h_INCLUDED__
5 #include "bbqt_EXPORT.h"
6 #include "bbtkQtBlackBox.h"
7
8 namespace bbqt
9 {
10
11 class bbqt_EXPORT QOutputText
12  : 
13    public bbtk::QtBlackBox
14 {
15   BBTK_BLACK_BOX_INTERFACE(QOutputText,bbtk::QtBlackBox);
16 //==================================================================
17 /// User callback called in the box contructor
18 virtual void bbUserConstructor();
19 /// User callback called in the box copy constructor
20 virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
21 /// User callback called in the box destructor
22 virtual void bbUserDestructor();
23 //==================================================================
24   BBTK_DECLARE_INPUT(Title,std::string);
25   BBTK_DECLARE_INPUT(In,std::string);
26   BBTK_PROCESS(Process);
27   void Process();
28   BBTK_CREATE_WIDGET(CreateWidget);
29   void CreateWidget(QWidget*);
30 };
31
32 BBTK_BEGIN_DESCRIBE_BLACK_BOX(QOutputText,bbtk::QtBlackBox);
33 BBTK_NAME("QOutputText");
34 BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
35 BBTK_DESCRIPTION("OutputText");
36 BBTK_CATEGORY("");
37 BBTK_INPUT(QOutputText,Title,"Title prepended to the text",std::string,"");
38 BBTK_INPUT(QOutputText,In,"Text",std::string,"");
39 BBTK_END_DESCRIBE_BLACK_BOX(QOutputText);
40 }
41 // EO namespace bbqt
42
43 #endif // __bbqtQOutputText_h_INCLUDED__
44 #endif // USE_QT
45