1 #ifndef __CPPLUGINS__BASEQTMAINWINDOW__H__
2 #define __CPPLUGINS__BASEQTMAINWINDOW__H__
4 #include <cpPlugins/Config.h>
9 #include <cpPlugins/Interface.h>
10 #include <cpPlugins/Workspace.h>
12 namespace cpExtensions
16 class SimpleMPRWidget;
19 namespace cpPipelineEditor
29 class cpPlugins_EXPORT BaseQtMainWindow
35 typedef BaseQtMainWindow Self;
36 typedef QMainWindow Superclass;
45 virtual bool eventFilter( QObject* obj, QEvent* event ) ITK_OVERRIDE;
49 explicit BaseQtMainWindow(
50 int argc, char* argv[],
52 QWidget* parent = NULL
54 virtual ~BaseQtMainWindow( );
59 cpExtensions::QT::SimpleMPRWidget* mpr,
60 cpPipelineEditor::Editor* editor
62 void _LoadPlugins( const std::string& filename );
63 void _LoadPluginsFromPath( const std::string& path );
64 void _UpdateLoadedPlugins( );
68 void _LoadWorkspace( const std::string& filename );
69 void _SaveWorkspace( const std::string& filename );
72 void _InteractiveLoadPlugins( );
73 void _InteractiveLoadPluginsFromPath( );
74 void _InteractiveLoadWorkspace( );
75 void _InteractiveSaveWorkspace( );
76 void _ExecFilter( const std::string& filter_name );
79 QApplication* m_Application;
81 Workspace m_Workspace;
82 Interface m_Interface;
83 std::string m_PluginsPath;
85 QTreeWidget* m_TreeWidget;
86 cpPipelineEditor::Editor* m_Editor;
91 #endif // cpPlugins_QT4
93 #endif // __CPPLUGINS__BASEQTMAINWINDOW__H__