]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/ParametersListWidget.h
Widget integration (step 3/6). WARNING: IT DOES NOT COMPILE YET
[cpPlugins.git] / lib / cpPlugins / Interface / ParametersListWidget.h
1 #ifndef __CPPLUGINS__INTERFACE__PARAMETERSLISTWIDGET__H__
2 #define __CPPLUGINS__INTERFACE__PARAMETERSLISTWIDGET__H__
3
4 #include <cpPlugins/Interface/Config.h>
5
6 #ifdef cpPlugins_Interface_QT4
7
8 #include <vector>
9 #include <QWidget>
10
11 // -------------------------------------------------------------------------
12 namespace Ui
13 {
14   class ParametersListWidget;
15 }
16
17 // -------------------------------------------------------------------------
18 /**
19  */
20 namespace cpPlugins
21 {
22   namespace Interface
23   {
24     class ParametersListWidget
25       : public QWidget
26     {
27       Q_OBJECT;
28
29     public:
30
31     public:
32       explicit ParametersListWidget(
33         const std::string& list_name, QWidget* parent = 0
34         );
35       virtual ~ParametersListWidget( );
36
37       std::vector< std::string > GetStringValues( ) const;
38       std::vector< int > GetIntValues( ) const;
39       std::vector< unsigned int > GetUintValues( ) const;
40       std::vector< double > GetDoubleValues( ) const;
41
42     private slots:
43       void _changeValuesCount( );
44
45     private:
46       Ui::ParametersListWidget* m_UI;
47     };
48
49   } // ecapseman
50
51 } // ecapseman
52
53 #endif // cpPlugins_Interface_QT4
54
55 #endif // __CPPLUGINS__INTERFACE__PARAMETERSLISTWIDGET__H__
56
57 // eof - $RCSfile$