diff --git a/modules/gui/pymod/export_sequence_viewer.cc b/modules/gui/pymod/export_sequence_viewer.cc index 72102350f1eed747540923e4a2f245175b4f246d..e6127166c5cb2c23903b9d407ad7437959c0addb 100644 --- a/modules/gui/pymod/export_sequence_viewer.cc +++ b/modules/gui/pymod/export_sequence_viewer.cc @@ -18,18 +18,22 @@ //------------------------------------------------------------------------------ #include <boost/python.hpp> -#include "sequence_viewer_proxyV2.hh" +#include <ost/gui/sequence_viewer/sequence_viewer.hh> + +#include "sip_handler.hh" using namespace boost::python; using namespace ost; using namespace ost::gui; -void export_SequenceViewerV2() +void export_SequenceViewer() { - class_<SequenceViewerProxyV2, bases<SipHandlerBase> >("SequenceViewerV2", init<>()) - .def("Show", &SequenceViewerProxyV2::Show) - .def("Hide", &SequenceViewerProxyV2::Hide) + class_<SequenceViewer, boost::noncopyable >("SequenceViewer", no_init) + .def("Show", &SequenceViewer::show) + .def("Hide", &SequenceViewer::hide) + .def("GetQObject",&get_py_qobject<SequenceViewer>) + .add_property("qobject", &get_py_qobject<SequenceViewer>) ; } diff --git a/modules/gui/pymod/export_sequence_viewerV2.cc b/modules/gui/pymod/export_sequence_viewerV2.cc index cc53523e69b14be9f3beb23a5050bc2635b55e06..cd010952fb9b6a32a06b85aafbeac16e08ced672 100644 --- a/modules/gui/pymod/export_sequence_viewerV2.cc +++ b/modules/gui/pymod/export_sequence_viewerV2.cc @@ -18,18 +18,22 @@ //------------------------------------------------------------------------------ #include <boost/python.hpp> -#include "sequence_viewer_proxy.hh" +#include <ost/gui/sequence/sequence_viewer.hh> + +#include "sip_handler.hh" using namespace boost::python; using namespace ost; using namespace ost::gui; -void export_SequenceViewer() +void export_SequenceViewerV2() { - class_<SequenceViewerProxy, bases<SipHandlerBase> >("SequenceViewer") - .def("Show", &SequenceViewerProxy::Show) - .def("Hide", &SequenceViewerProxy::Hide) + class_<SequenceViewerV2, boost::noncopyable >("SequenceViewerV2",init<>()) + .def("Show", &SequenceViewerV2::show) + .def("Hide", &SequenceViewerV2::hide) + .def("GetQObject",&get_py_qobject<SequenceViewerV2>) + .add_property("qobject", &get_py_qobject<SequenceViewerV2>) ; }