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>
13 #include <vtkInteractorObserver.h>
14 #include <vtkSmartPointer.h>
17 #include <QDialogButtonBox>
18 #include <QGridLayout>
20 #include <QVBoxLayout>
22 class vtkRenderWindowInteractor;
30 class cpPlugins_Interface_EXPORT ParametersQtDialog
36 typedef std::set< vtkRenderWindowInteractor* > TInteractors;
38 std::map< std::string, vtkSmartPointer< vtkInteractorObserver > >
42 ParametersQtDialog( QWidget* parent = 0, Qt::WindowFlags f = 0 );
43 virtual ~ParametersQtDialog( );
45 Parameters* getParameters( ) const;
46 void addInteractor( vtkRenderWindowInteractor* interactor );
47 TInteractors& getInteractors( );
48 const TInteractors& getInteractors( ) const;
49 bool isInteractive( ) const;
50 void setInteractive( bool i );
51 void interactiveOn( );
52 void interactiveOff( );
53 bool setParameters( Parameters* parameters );
58 void updateParameters( );
62 void _dlg_OpenSingleFile( );
63 void _dlg_SaveSingleFile( );
64 void _dlg_OpenSinglePath( );
65 void _dlg_OpenMultipleFiles( );
71 Parameters* m_Parameters;
73 QGridLayout* m_MainLayout;
74 QVBoxLayout* m_ToolsLayout;
75 QDialogButtonBox* m_Buttons;
77 TInteractors m_Interactors;
86 #endif // cpPlugins_Interface_QT4
88 #endif // __CPPLUGINS__INTERFACE__PARAMETERSQTDIALOG__H__