Skip to content
Snippets Groups Projects
Commit ec4358c7 authored by stefan's avatar stefan
Browse files

Adapt export of SequenceViewerV2 to new sip style

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2156 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent dfc0d55d
No related branches found
No related tags found
No related merge requests found
...@@ -18,18 +18,22 @@ ...@@ -18,18 +18,22 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
#include <boost/python.hpp> #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 boost::python;
using namespace ost; using namespace ost;
using namespace ost::gui; using namespace ost::gui;
void export_SequenceViewerV2() void export_SequenceViewer()
{ {
class_<SequenceViewerProxyV2, bases<SipHandlerBase> >("SequenceViewerV2", init<>()) class_<SequenceViewer, boost::noncopyable >("SequenceViewer", no_init)
.def("Show", &SequenceViewerProxyV2::Show) .def("Show", &SequenceViewer::show)
.def("Hide", &SequenceViewerProxyV2::Hide) .def("Hide", &SequenceViewer::hide)
.def("GetQObject",&get_py_qobject<SequenceViewer>)
.add_property("qobject", &get_py_qobject<SequenceViewer>)
; ;
} }
...@@ -18,18 +18,22 @@ ...@@ -18,18 +18,22 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
#include <boost/python.hpp> #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 boost::python;
using namespace ost; using namespace ost;
using namespace ost::gui; using namespace ost::gui;
void export_SequenceViewer() void export_SequenceViewerV2()
{ {
class_<SequenceViewerProxy, bases<SipHandlerBase> >("SequenceViewer") class_<SequenceViewerV2, boost::noncopyable >("SequenceViewerV2",init<>())
.def("Show", &SequenceViewerProxy::Show) .def("Show", &SequenceViewerV2::show)
.def("Hide", &SequenceViewerProxy::Hide) .def("Hide", &SequenceViewerV2::hide)
.def("GetQObject",&get_py_qobject<SequenceViewerV2>)
.add_property("qobject", &get_py_qobject<SequenceViewerV2>)
; ;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment