1 #ifndef __CPPLUGINS__INTERFACE__PARAMETERSQTDIALOG__H__
2 #define __CPPLUGINS__INTERFACE__PARAMETERSQTDIALOG__H__
4 #include <cpPlugins/Interface/Config.h>
6 #ifdef cpPlugins_Interface_QT4
8 #include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
9 #include <cpPlugins/Interface/Parameters.h>
14 #include <QGridLayout>
16 #include <QVBoxLayout>
18 class vtkAbstractWidget;
19 class vtkRenderWindowInteractor;
27 class cpPlugins_Interface_EXPORT ParametersQtDialog
33 ParametersQtDialog( QWidget* parent = 0, Qt::WindowFlags f = 0 );
34 virtual ~ParametersQtDialog( );
36 bool IsModal( ) const;
37 Parameters* getParameters( ) const;
38 void setInteractor( vtkRenderWindowInteractor* interactor );
39 bool setParameters( Parameters* parameters );
40 void setTitle( const std::string& title );
44 void syncParameters( );
47 Parameters* m_Parameters;
49 QGridLayout* m_MainLayout;
50 QVBoxLayout* m_ToolsLayout;
53 vtkRenderWindowInteractor* m_Interactor;
54 std::vector< vtkAbstractWidget* > m_Widgets;
58 bool cpPlugins_Interface_EXPORT ParametersQtDialog(
59 Parameters* parameters,
60 const std::string& title,
61 QWidget* parent = NULL
69 #endif // cpPlugins_Interface_QT4
71 #endif // __CPPLUGINS__INTERFACE__PARAMETERSQTDIALOG__H__