X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FParametersQtDialog.h;h=d19d31450323814a4ceec7f3ae11cd8d12110784;hb=f654620df52b811be7bd263a1775c93d29c69a65;hp=daf2517b6663d8818ac153934a5378cc7f87ea63;hpb=132530e0876c10981f096abfea81d92ca840d333;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/ParametersQtDialog.h b/lib/cpPlugins/Interface/ParametersQtDialog.h index daf2517..d19d314 100644 --- a/lib/cpPlugins/Interface/ParametersQtDialog.h +++ b/lib/cpPlugins/Interface/ParametersQtDialog.h @@ -1,25 +1,71 @@ #ifndef __CPPLUGINS__INTERFACE__PARAMETERSQTDIALOG__H__ #define __CPPLUGINS__INTERFACE__PARAMETERSQTDIALOG__H__ +#include + +#ifdef cpPlugins_Interface_QT4 + #include #include +#include + +#include -class QWidget; +#include +#include +#include +#include + +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: + typedef cpExtensions::Interaction::ImageInteractorStyle TStyle; + + typedef std::set< vtkRenderWindowInteractor* > TInteractors; + + public: + ParametersQtDialog( QWidget* parent = 0, Qt::WindowFlags f = 0 ); + virtual ~ParametersQtDialog( ); + + bool IsModal( ) const; + Parameters* getParameters( ) const; + void addInteractor( vtkRenderWindowInteractor* interactor ); + TInteractors& getInteractors( ); + const TInteractors& getInteractors( ) const; + 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; + + TInteractors m_Interactors; + }; } // ecapseman } // ecapseman +#endif // cpPlugins_Interface_QT4 + #endif // __CPPLUGINS__INTERFACE__PARAMETERSQTDIALOG__H__ // eof - $RCSfile$