#ifndef __CPPLUGINS__INTERFACE__PARAMETERSQTDIALOG__H__ #define __CPPLUGINS__INTERFACE__PARAMETERSQTDIALOG__H__ #include #ifdef cpPlugins_Interface_QT4 #include #include #include #include #include #include #include #include #include #include class vtkRenderWindowInteractor; namespace cpPlugins { namespace Interface { /** */ class cpPlugins_Interface_EXPORT ParametersQtDialog : public QDialog { Q_OBJECT; public: typedef std::set< vtkRenderWindowInteractor* > TInteractors; typedef std::map< std::string, vtkSmartPointer< vtkInteractorObserver > > TWidgets; public: ParametersQtDialog( QWidget* parent = 0, Qt::WindowFlags f = 0 ); virtual ~ParametersQtDialog( ); Parameters* getParameters( ) const; void addInteractor( vtkRenderWindowInteractor* interactor ); TInteractors& getInteractors( ); const TInteractors& getInteractors( ) const; bool isInteractive( ) const; void setInteractive( bool i ); void interactiveOn( ); void interactiveOff( ); bool setParameters( Parameters* parameters ); virtual int exec( ); virtual void show( ); void updateParameters( ); void updateView( ); protected slots: void _dlg_OpenSingleFile( ); void _dlg_SaveSingleFile( ); void _dlg_OpenSinglePath( ); void _dlg_OpenMultipleFiles( ); void _dlg_AddInt( ); void _dlg_AddUint( ); void _dlg_AddReal( ); protected: Parameters* m_Parameters; QLabel* m_Title; QGridLayout* m_MainLayout; QVBoxLayout* m_ToolsLayout; QDialogButtonBox* m_Buttons; TInteractors m_Interactors; TWidgets m_Widgets; bool m_Interactive; }; } // ecapseman } // ecapseman #endif // cpPlugins_Interface_QT4 #endif // __CPPLUGINS__INTERFACE__PARAMETERSQTDIALOG__H__ // eof - $RCSfile$