]> Creatis software - cpPlugins.git/blob - lib/cpBaseQtApplication/ActorPropertiesQDialog.h
0e5addc473d2503d1e8458151d12ae4f4775e5db
[cpPlugins.git] / lib / cpBaseQtApplication / ActorPropertiesQDialog.h
1 #ifndef __CPBASEQTAPPLICATION__ACTORPROPERTIESQDIALOG__H__
2 #define __CPBASEQTAPPLICATION__ACTORPROPERTIESQDIALOG__H__
3
4 #include <cpBaseQtApplication/ActorProperties.h>
5
6 #include <QDialog>
7 #include <QDialogButtonBox>
8 #include <QGridLayout>
9 #include <QLabel>
10 #include <QVBoxLayout>
11
12 namespace cpBaseQtApplication
13 {
14   /**
15    */
16   class cpBaseQtApplication_EXPORT ActorPropertiesQDialog
17     : public QDialog
18   {
19     Q_OBJECT;
20
21   public:
22     typedef std::set< vtkSmartPointer< vtkPropCollection > > TProps;
23
24   public:
25     ActorPropertiesQDialog(
26       QWidget* parent = 0, Qt::WindowFlags f = 0
27       );
28     virtual ~ActorPropertiesQDialog( );
29
30     virtual void setProps( const TProps& props );
31     virtual bool addRenderWindow( vtkRenderWindow* win );
32
33   protected:
34     cpBaseQtApplication::ActorProperties* m_MainWidget;
35     QLabel* m_Title;
36     QGridLayout* m_MainLayout;
37     QVBoxLayout* m_ToolsLayout;
38     QDialogButtonBox* m_Buttons;
39   };
40
41 } // ecapseman
42
43 #endif // __CPBASEQTAPPLICATION__ACTORPROPERTIESQDIALOG__H__
44
45 // eof - $RCSfile$