mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
29 lines
827 B
C++
29 lines
827 B
C++
#include "Progress.h"
|
|
using namespace boost::python;
|
|
|
|
NAMESPACE_UPP
|
|
|
|
void export_Progress()
|
|
{
|
|
ONCELOCK
|
|
{
|
|
class_<Progress, bases<TopWindow>, boost::noncopyable>("Progress", "Upp Progress")
|
|
.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
|