X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FParametersQtDialog.h;h=365ec9ca1edda5eba97419f97a2983dd0aae6f9b;hb=8e5fd31fd4d280781d8bc27a799361bf9c30b1d4;hp=ea9f84de53ebc017dc137c0949b57c1becc04164;hpb=e9143845b476fc8b86c1706fb140ebee770a650b;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/ParametersQtDialog.h b/lib/cpPlugins/Interface/ParametersQtDialog.h index ea9f84d..365ec9c 100644 --- a/lib/cpPlugins/Interface/ParametersQtDialog.h +++ b/lib/cpPlugins/Interface/ParametersQtDialog.h @@ -8,17 +8,51 @@ #include #include -class QWidget; +#include + +#include +#include +#include +#include + +class vtkAbstractWidget; +class vtkRenderWindowInteractor; namespace cpPlugins { namespace Interface { - bool cpPlugins_Interface_EXPORT ParametersQtDialog( - Parameters* parameters, - const std::string& title, - QWidget* parent = NULL - ); + /** + */ + class cpPlugins_Interface_EXPORT ParametersQtDialog + : public QDialog + { + Q_OBJECT; + + public: + ParametersQtDialog( QWidget* parent = 0, Qt::WindowFlags f = 0 ); + virtual ~ParametersQtDialog( ); + + bool IsModal( ) const; + Parameters* getParameters( ) const; + void setInteractor( vtkRenderWindowInteractor* interactor ); + bool setParameters( Parameters* parameters ); + void setTitle( const std::string& title ); + + virtual int exec( ); + virtual void show( ); + void syncParameters( ); + + protected: + Parameters* m_Parameters; + QLabel* m_Title; + QGridLayout* m_MainLayout; + QVBoxLayout* m_ToolsLayout; + bool m_IsModal; + + vtkRenderWindowInteractor* m_Interactor; + std::vector< vtkAbstractWidget* > m_Widgets; + }; } // ecapseman