1 #ifndef __CPBASEQTAPPLICATION__MAINWINDOW__H__
2 #define __CPBASEQTAPPLICATION__MAINWINDOW__H__
4 #include <cpBaseQtApplication_Export.h>
6 #include <cpPlugins/Interface.h>
7 #include <cpPlugins/Workspace.h>
13 class SimpleMPRWidget;
18 namespace cpBaseQtApplication
24 class cpBaseQtApplication_EXPORT MainWindow
30 typedef MainWindow Self;
31 typedef QMainWindow Superclass;
40 virtual bool eventFilter( QObject* obj, QEvent* event ) ITK_OVERRIDE;
45 int argc, char* argv[],
47 QWidget* parent = NULL
49 virtual ~MainWindow( );
51 void UpdateEnvironment( );
56 cpExtensions::QT::SimpleMPRWidget* mpr,
57 cpBaseQtApplication::Editor* editor
59 void _ClearWorkspace( );
60 void _AddEnvironments( const std::string& environments );
61 void _LoadPlugins( const std::string& filename );
62 void _LoadPluginsFromPath( const std::string& path );
63 void _UpdateLoadedPlugins( );
67 void _LoadWorkspace( const std::string& filename );
68 void _SaveWorkspace( const std::string& filename );
70 void _BackgroundProperties( unsigned int i );
73 void _InteractiveLoadPlugins( );
74 void _InteractiveLoadPluginsFromPath( );
76 void _InteractiveLoadWorkspace( );
77 void _InteractiveSaveWorkspace( );
78 void _InteractiveAddEnviromentPaths( );
79 void _ExecFilter( const std::string& filter_name );
81 const std::string& filter_name, const std::string& output_name
84 const std::string& filter_name, const std::string& output_name
87 const std::string& filter_name, const std::string& output_name
91 QApplication* m_Application;
93 std::string m_PluginsPath;
95 std::string m_RunPath;
96 cpPlugins::Interface m_Interface;
97 cpPlugins::Workspace m_Workspace;
99 QTreeWidget* m_TreeWidget;
101 cpExtensions::QT::SimpleMPRWidget* m_MPR;
106 #endif // __CPBASEQTAPPLICATION__MAINWINDOW__H__