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>
10 #include <cpExtensions/Interaction/ImageInteractorStyle.h>
15 #include <QGridLayout>
17 #include <QVBoxLayout>
19 class vtkRenderWindowInteractor;
27 class cpPlugins_Interface_EXPORT ParametersQtDialog
33 typedef cpExtensions::Interaction::ImageInteractorStyle TStyle;
36 ParametersQtDialog( QWidget* parent = 0, Qt::WindowFlags f = 0 );
37 virtual ~ParametersQtDialog( );
39 bool IsModal( ) const;
40 Parameters* getParameters( ) const;
41 void addInteractor( vtkRenderWindowInteractor* interactor );
42 bool setParameters( Parameters* parameters );
43 void setTitle( const std::string& title );
47 void syncParameters( );
50 Parameters* m_Parameters;
52 QGridLayout* m_MainLayout;
53 QVBoxLayout* m_ToolsLayout;
56 std::set< vtkRenderWindowInteractor* > m_Interactors;
63 #endif // cpPlugins_Interface_QT4
65 #endif // __CPPLUGINS__INTERFACE__PARAMETERSQTDIALOG__H__