]> Creatis software - cpPlugins.git/blobdiff - lib/cpPipelineEditor/BaseQtMainWindow.h
...
[cpPlugins.git] / lib / cpPipelineEditor / BaseQtMainWindow.h
index 430de43f924a3a684c924b1711d2fa5bec2e771c..786349aa3d2354ecf3cea61b6d3a2d6d49481d61 100644 (file)
@@ -1,10 +1,7 @@
-#ifndef __CPPLUGINS__BASEQTMAINWINDOW__H__
-#define __CPPLUGINS__BASEQTMAINWINDOW__H__
-
-#include <cpPlugins/Config.h>
-
-#ifdef cpPlugins_QT4
+#ifndef __CPPIPELINEEDITOR__BASEQTMAINWINDOW__H__
+#define __CPPIPELINEEDITOR__BASEQTMAINWINDOW__H__
 
+#include <cpPipelineEditor/cpPipelineEditor_Export.h>
 #include <QMainWindow>
 #include <cpPlugins/Interface.h>
 #include <cpPlugins/Workspace.h>
@@ -16,17 +13,15 @@ namespace cpExtensions
     class SimpleMPRWidget;
   }
 }
+class QTreeWidget;
+
 namespace cpPipelineEditor
 {
   class Editor;
-}
-class QTreeWidget;
 
-namespace cpPlugins
-{
   /**
    */
-  class cpPlugins_EXPORT BaseQtMainWindow
+  class cpPipelineEditor_EXPORT BaseQtMainWindow
     : public QMainWindow
   {
     Q_OBJECT;
@@ -59,6 +54,7 @@ namespace cpPlugins
       cpExtensions::QT::SimpleMPRWidget* mpr,
       cpPipelineEditor::Editor* editor
       );
+    void _CreateWorkspace( );
     void _LoadPlugins( const std::string& filename );
     void _LoadPluginsFromPath( const std::string& path );
     void _UpdateLoadedPlugins( );
@@ -68,6 +64,17 @@ namespace cpPlugins
     void _LoadWorkspace( const std::string& filename );
     void _SaveWorkspace( const std::string& filename );
 
+    void _ShowData(
+      const std::string& filter_name, const std::string& output_name
+      );
+    void _HideData(
+      const std::string& filter_name, const std::string& output_name
+      );
+    void _DataProperties(
+      const std::string& filter_name, const std::string& output_name
+      );
+    void _BackgroundProperties( unsigned int i );
+
   protected slots:
     void _InteractiveLoadPlugins( );
     void _InteractiveLoadPluginsFromPath( );
@@ -78,18 +85,19 @@ namespace cpPlugins
   protected:
     QApplication* m_Application;
     _TBlocker     m_Blocker;
-    Workspace     m_Workspace;
-    Interface     m_Interface;
     std::string   m_PluginsPath;
+    std::string   m_ApplicationPath;
+
+    cpPlugins::Interface* m_Interface;
+    cpPlugins::Workspace* m_Workspace;
 
     QTreeWidget* m_TreeWidget;
-    cpPipelineEditor::Editor* m_Editor;
+    Editor*      m_Editor;
+    cpExtensions::QT::SimpleMPRWidget* m_MPR;
   };
 
 } // ecapseman
 
-#endif // cpPlugins_QT4
-
-#endif // __CPPLUGINS__BASEQTMAINWINDOW__H__
+#endif // __CPPIPELINEEDITOR__BASEQTMAINWINDOW__H__
 
 // eof - $RCSfile$