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 _LoadPlugins( const std::string& filename );
58 void _LoadPluginsFromPath( const std::string& path );
59 void _UpdateLoadedPlugins( );
63 void _LoadWorkspace( const std::string& filename );
64 void _SaveWorkspace( const std::string& filename );
67 const std::string& filter_name, const std::string& output_name
70 const std::string& filter_name, const std::string& output_name
73 const std::string& filter_name, const std::string& output_name
75 void _BackgroundProperties( unsigned int i );
78 void _InteractiveLoadPlugins( );
79 void _InteractiveLoadPluginsFromPath( );
80 void _InteractiveLoadWorkspace( );
81 void _InteractiveSaveWorkspace( );
82 void _ExecFilter( const std::string& filter_name );
85 QApplication* m_Application;
87 cpPlugins::Workspace m_Workspace;
88 cpPlugins::Interface m_Interface;
89 std::string m_PluginsPath;
91 QTreeWidget* m_TreeWidget;
93 cpExtensions::QT::SimpleMPRWidget* m_MPR;
98 #endif // __CPPIPELINEEDITOR__BASEQTMAINWINDOW__H__