]> Creatis software - cpPlugins.git/blob - appli/PipelineEditor/PipelineEditor.h
1ab1c61c012cfc725e7aff9e8f3320f80fbdcc8d
[cpPlugins.git] / appli / PipelineEditor / PipelineEditor.h
1 #ifndef __PipelineEditor__h__
2 #define __PipelineEditor__h__
3
4 #include <QMainWindow>
5 #include <cpBaseQtApplication/MainWindow.h>
6
7 namespace Ui { class PipelineEditor; }
8
9 /**
10  */
11 class PipelineEditor
12   : public cpBaseQtApplication::MainWindow
13 {
14   Q_OBJECT;
15 public:
16   typedef PipelineEditor                  Self;
17   typedef cpBaseQtApplication::MainWindow Superclass;
18
19 public:
20   explicit PipelineEditor(
21     int argc, char* argv[],
22     QWidget* parent = NULL
23     );
24   virtual ~PipelineEditor( );
25
26 protected:
27   template< class _TWidget >
28   inline std::pair< _TWidget*, bool > _configureViewer( );
29
30 protected slots:
31   virtual void _addWorkspace( const std::string& name ) cpPlugins_OVERRIDE;
32   void _slotOpenWorkspace( );
33   void _slotSaveWorkspace( );
34   void _slotSaveWorkspaceAs( );
35   void _slotView( const std::string& name, bool show );
36   void _slotActorsProperties( );
37
38 private:
39   Ui::PipelineEditor* m_UI;
40   std::string m_ActiveWS;
41 };
42
43 #endif // __PipelineEditor__h__
44
45 // eof - $RCSfile$