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