]> Creatis software - cpPlugins.git/blobdiff - appli/PipelineEditor/PipelineEditor.h
...
[cpPlugins.git] / appli / PipelineEditor / PipelineEditor.h
index 81a6d3dc1b9109952783088a418fe6b7dd6b4e3f..3f4a68be1d6fafb27325e897f839b719945a95ff 100644 (file)
@@ -1,86 +1,36 @@
-#ifndef __PIPELINEEDITOR__H__
-#define __PIPELINEEDITOR__H__
+#ifndef __PipelineEditor__h__
+#define __PipelineEditor__h__
 
-// Qt stuff
-#include <QApplication>
 #include <QMainWindow>
-#include <cpPlugins/Interface.h>
-#include <cpPlugins/Workspace.h>
+#include <cpBaseQtApplication/MainWindow.h>
 
-/**
- */
-class PipelineEditor_Blocker
-  : public QObject
-{
-protected:
-  virtual bool eventFilter( QObject* obj, QEvent* event ) override;
-};
-
-/*
-  class PipelineEditor;
-  struct PipelineEditor_Application
-  {
-  QApplication           Application;
-  PipelineEditor         Window;
-  PipelineEditor_Blocker Blocker;
-  PipelineEditor_Application( int argc, char* argv[] );
-  void Show( );
-  int Exec( );
-  void Block( );
-  void UnBlock( );
-  };
-*/
-
-// -------------------------------------------------------------------------
-namespace Ui
-{
-  class PipelineEditor;
-}
+namespace Ui { class PipelineEditor; }
 
 /**
  */
 class PipelineEditor
-  : public QMainWindow
+  : public cpBaseQtApplication::MainWindow
 {
   Q_OBJECT;
-
 public:
-  typedef PipelineEditor Self;
-  typedef QMainWindow    Superclass;
+  typedef PipelineEditor                  Self;
+  typedef cpBaseQtApplication::MainWindow Superclass;
 
 public:
   explicit PipelineEditor(
     int argc, char* argv[],
-    QApplication* app,
     QWidget* parent = NULL
     );
   virtual ~PipelineEditor( );
 
-protected:
-  void _LoadPluginsFromPath( const std::string& path );
-  void _UpdateLoadedPlugins( );
-  void _Block( );
-  void _UnBlock( );
-
 protected slots:
-  void _ButtonLoadPluginsFile( );
-  void _ButtonLoadPluginsPath( );
-  void _ActionOpenWorkspace( );
-  void _ActionSaveWorkspace( );
-  void _ExecFilter( const std::string& filter_name );
-  void _ShowFilterOutput(
-    const std::string& filter_name, const std::string& output_name
-    );
+  void _slotView( const std::string& name, bool show );
 
 private:
-  Ui::PipelineEditor*    m_UI;
-  QApplication*          m_Application;
-  PipelineEditor_Blocker m_Blocker;
-  cpPlugins::Workspace*  m_Workspace;
-  cpPlugins::Interface   m_Interface;
-  std::string            m_PluginsPath;
+  Ui::PipelineEditor* m_UI;
+  std::string m_ActiveWS;
 };
 
-#endif // __CPPIPELINEEDITOR__H__
+#endif // __PipelineEditor__h__
 
 // eof - $RCSfile$