1 #ifndef __CPPIPELINEEDITOR__BASEQTMAINWINDOW__H__
2 #define __CPPIPELINEEDITOR__BASEQTMAINWINDOW__H__
4 #include <cpPipelineEditor/cpPipelineEditor_Export.h>
6 #include <cpPlugins/Interface.h>
7 #include <cpPlugins/Workspace.h>
13 class SimpleMPRWidget;
18 namespace cpPipelineEditor
24 class cpPipelineEditor_EXPORT BaseQtMainWindow
30 typedef BaseQtMainWindow Self;
31 typedef QMainWindow Superclass;
40 virtual bool eventFilter( QObject* obj, QEvent* event ) ITK_OVERRIDE;
44 explicit BaseQtMainWindow(
45 int argc, char* argv[],
47 QWidget* parent = NULL
49 virtual ~BaseQtMainWindow( );
54 cpExtensions::QT::SimpleMPRWidget* mpr,
55 cpPipelineEditor::Editor* editor
57 void _CreateWorkspace( );
58 void _LoadPlugins( const std::string& filename );
59 void _LoadPluginsFromPath( const std::string& path );
60 void _UpdateLoadedPlugins( );
64 void _LoadWorkspace( const std::string& filename );
65 void _SaveWorkspace( const std::string& filename );
68 const std::string& filter_name, const std::string& output_name
71 const std::string& filter_name, const std::string& output_name
74 const std::string& filter_name, const std::string& output_name
76 void _BackgroundProperties( unsigned int i );
79 void _InteractiveLoadPlugins( );
80 void _InteractiveLoadPluginsFromPath( );
81 void _InteractiveLoadWorkspace( );
82 void _InteractiveSaveWorkspace( );
83 void _ExecFilter( const std::string& filter_name );
86 QApplication* m_Application;
88 std::string m_PluginsPath;
89 std::string m_ApplicationPath;
91 cpPlugins::Interface* m_Interface;
92 cpPlugins::Workspace* m_Workspace;
94 QTreeWidget* m_TreeWidget;
96 cpExtensions::QT::SimpleMPRWidget* m_MPR;
101 #endif // __CPPIPELINEEDITOR__BASEQTMAINWINDOW__H__