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 _LoadPlugins( const std::string& filename );
61 void _LoadPluginsFromPath( const std::string& path );
62 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( );
75 void _InteractiveLoadWorkspace( );
76 void _InteractiveSaveWorkspace( );
77 void _ExecFilter( const std::string& filter_name );
79 const std::string& filter_name, const std::string& output_name
82 const std::string& filter_name, const std::string& output_name
85 const std::string& filter_name, const std::string& output_name
89 QApplication* m_Application;
91 std::string m_PluginsPath;
93 std::string m_ExecutionPath;
94 cpPlugins::Interface m_Interface;
95 cpPlugins::Workspace m_Workspace;
97 QTreeWidget* m_TreeWidget;
99 cpExtensions::QT::SimpleMPRWidget* m_MPR;
104 #endif // __CPBASEQTAPPLICATION__MAINWINDOW__H__