]> Creatis software - cpPlugins.git/blob - appli/PipelineEditor/PipelineEditor.h
First dump for version 0.1.0
[cpPlugins.git] / appli / PipelineEditor / PipelineEditor.h
1 #ifndef __PIPELINEEDITOR__H__
2 #define __PIPELINEEDITOR__H__
3
4 // Qt stuff
5 #include <QMainWindow>
6 #include <cpPlugins/Interface.h>
7 #include <cpPlugins/Workspace.h>
8
9 // -------------------------------------------------------------------------
10 namespace Ui
11 {
12   class PipelineEditor;
13 }
14
15 /**
16  */
17 class PipelineEditor
18   : public QMainWindow
19 {
20   Q_OBJECT;
21
22 public:
23   typedef PipelineEditor Self;
24   typedef QMainWindow      Superclass;
25
26 public:
27   explicit PipelineEditor(
28     int argc, char* argv[],
29     QWidget* parent = 0
30     );
31   virtual ~PipelineEditor( );
32
33 protected:
34   void _LoadPluginsFromPath( const std::string& path );
35   void _UpdateLoadedPlugins( );
36
37 protected slots:
38   void _ButtonLoadPluginsFile( );
39   void _ButtonLoadPluginsPath( );
40   void _ActionOpenWorkspace( );
41   void _ActionSaveWorkspace( );
42   void _ExecFilter( const std::string& filter_name );
43   void _ShowFilterOutput(
44     const std::string& filter_name, const std::string& output_name
45     );
46
47 private:
48   Ui::PipelineEditor*   m_UI;
49   cpPlugins::Workspace* m_Workspace;
50   cpPlugins::Interface  m_Interface;
51   std::string           m_PluginsPath;
52 };
53
54 #endif // __CPPIPELINEEDITOR__H__
55
56 // eof - $RCSfile$