X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FParametersQtDialog.h;h=04b76eda75bc5bbd43c56dd8aa4d1531f2980db8;hb=6ffc11d77924d6ab7e94db95d41105982ac73e00;hp=40b85141fd91efcf12233129ea62c5bc0d374ce7;hpb=19a9e1774044cc32c415ad38695800c1d169820d;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/ParametersQtDialog.h b/lib/cpPlugins/Interface/ParametersQtDialog.h index 40b8514..04b76ed 100644 --- a/lib/cpPlugins/Interface/ParametersQtDialog.h +++ b/lib/cpPlugins/Interface/ParametersQtDialog.h @@ -10,17 +10,12 @@ #include -#include -#include - #include #include #include #include #include -class vtkRenderWindowInteractor; - namespace cpPlugins { namespace Interface @@ -32,51 +27,38 @@ namespace cpPlugins { 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( ); + virtual void updateParameters( ); + virtual void updateView( ); + + protected: + virtual void _addButtons( ); + virtual void _updateWidgets( ); protected slots: - void _dlg_OpenSingleFile( ); - void _dlg_SaveSingleFile( ); - void _dlg_OpenSinglePath( ); - void _dlg_OpenMultipleFiles( ); - void _dlg_AddInt( ); - void _dlg_AddUint( ); - void _dlg_AddReal( ); + virtual void _dlg_OpenSingleFile( ); + virtual void _dlg_SaveSingleFile( ); + virtual void _dlg_OpenSinglePath( ); + virtual void _dlg_OpenMultipleFiles( ); + virtual void _dlg_AddInt( ); + virtual void _dlg_AddUint( ); + virtual void _dlg_AddReal( ); protected: Parameters* m_Parameters; + bool m_WidgetsUpdated; QLabel* m_Title; QGridLayout* m_MainLayout; QVBoxLayout* m_ToolsLayout; QDialogButtonBox* m_Buttons; - - TInteractors m_Interactors; - TWidgets m_Widgets; - bool m_Interactive; }; } // ecapseman