mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-24 14:22:40 -06:00
bazaar: BoostPyTest: some new exports, like TopWindow, Log, Prompt, Progress, Callback soon to come
git-svn-id: svn://ultimatepp.org/upp/trunk@3410 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
d40392943f
commit
ba9eb36262
18 changed files with 269 additions and 3 deletions
30
bazaar/CtrlLibBoostPy/Progress.cpp
Normal file
30
bazaar/CtrlLibBoostPy/Progress.cpp
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#include "Progress.h"
|
||||
using namespace boost::python;
|
||||
|
||||
NAMESPACE_UPP
|
||||
|
||||
void export_Progress()
|
||||
{
|
||||
ONCELOCK
|
||||
{
|
||||
class_<Progress, bases<TopWindow>, Progress, boost::noncopyable>("Progress", "Upp Progress", no_init)
|
||||
.add_property("pos", &Progress::GetPos, &Progress::SetPos)
|
||||
.add_property("total", &Progress::GetTotal, &Progress::SetTotal)
|
||||
.add_property("text", &Progress::GetText, (void (Progress::*)(const String&))&Progress::SetText)
|
||||
|
||||
.def("create", &Progress::Create)
|
||||
.def("cancel", &Progress::Cancel)
|
||||
.def("reset", &Progress::Reset)
|
||||
.def("set", &Progress::Set)
|
||||
.def("step", &Progress::Step)
|
||||
|
||||
.def("canceled", &Progress::Canceled)
|
||||
.def("setcanceled", &Progress::SetCanceled)
|
||||
.def("setposcanceled", &Progress::SetPosCanceled)
|
||||
.def("stepcanceled", &Progress::StepCanceled)
|
||||
;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
Loading…
Add table
Add a link
Reference in a new issue