mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
bazaar: CtrlProp ported to ValueCtrl update
git-svn-id: svn://ultimatepp.org/upp/trunk@3832 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
39e05a4bcd
commit
6be898dd04
1 changed files with 7 additions and 11 deletions
|
|
@ -59,19 +59,15 @@ void PropEditCtrl::UpdateCtrl()
|
|||
|
||||
if(a.get && a.set)
|
||||
{
|
||||
Ctrl* pc;
|
||||
if(!v.IsNull())
|
||||
One<Ctrl> oc;
|
||||
DefaultValueEditor(oc, v);
|
||||
{
|
||||
pc = DefaultValueEditor(v);
|
||||
{
|
||||
//LogPosCtrl needs instance infos to live show changes
|
||||
if(LogPosCtrl* ple = dynamic_cast<LogPosCtrl*>(pc))
|
||||
ple->Set(*ctrl);
|
||||
}
|
||||
//LogPosCtrl needs instance infos to live show changes
|
||||
if(LogPosCtrl* ple = dynamic_cast<LogPosCtrl*>(~oc))
|
||||
ple->Set(*ctrl);
|
||||
}
|
||||
else pc = new ValueCtrl();
|
||||
(*pc) <<= THISBACK1(OnUpdateRow, k); //for live editing, unlike WhenUpdateRow
|
||||
ac.SetCtrl(k, 1, pc); //owned
|
||||
(*oc) <<= THISBACK1(OnUpdateRow, k); //for live editing, unlike WhenUpdateRow
|
||||
ac.SetCtrl(k, 1, oc.Detach()); //owned
|
||||
++k;
|
||||
}
|
||||
else if(a.get)
|
||||
|
|
|
|||
Loading…
Reference in a new issue