provide python interpreter for mussa qui via a seperate thread
[mussa.git] / qui / threading / GuiProxy.hpp
1 #ifndef GUIPROXY_HPP_
2 #define GUIPROXY_HPP_
3
4 #include "alg/mussa.hpp"
5 #include "qui/MussaWindow.hpp"
6
7 #include <list>
8
9 class GuiProxy;
10 typedef boost::shared_ptr<GuiProxy> GuiProxyRef;
11 class GuiProxy : public QObject {
12   Q_OBJECT
13   
14 public:
15   //! default
16   GuiProxy();
17   //! initialize from master
18   GuiProxy(GuiProxy *);
19   GuiProxy(const GuiProxy &o);
20   
21 signals:
22   void create_mussa_window_signal(GuiProxy *);
23
24 public slots:
25   void create_mussa_window(MussaRef m);
26   void create_mussa_window(GuiProxy *);
27 private: 
28   GuiProxy *master;
29   MussaRef analysis;
30   std::list<MussaWindow *> windows;
31 };
32
33 void MussaWindowProxy(MussaRef);
34 #endif /*GUIPROXY_HPP_*/