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;
35 typedef std::set< vtkRenderWindowInteractor* > TInteractors;
38 ParametersQtDialog( QWidget* parent = 0, Qt::WindowFlags f = 0 );
39 virtual ~ParametersQtDialog( );
41 bool IsModal( ) const;
42 Parameters* getParameters( ) const;
43 void addInteractor( vtkRenderWindowInteractor* interactor );
44 TInteractors& getInteractors( );
45 const TInteractors& getInteractors( ) const;
46 bool setParameters( Parameters* parameters );
47 void setTitle( const std::string& title );
51 void syncParameters( );
54 Parameters* m_Parameters;
56 QGridLayout* m_MainLayout;
57 QVBoxLayout* m_ToolsLayout;
60 TInteractors m_Interactors;
67 #endif // cpPlugins_Interface_QT4
69 #endif // __CPPLUGINS__INTERFACE__PARAMETERSQTDIALOG__H__