On Thursday 26 September 2002 11:16 am, Rob Lahaye wrote: > In FormDocument.C I find these two types of calls: > > bc().addReadOnly(language_->choice_inputenc); > and > bc_.addReadOnly(options_->counter_secnumdepth); > > Why do we have bc() in the first, and bc_ in the second call? > Typo, or on purpose?
Shrug. class FormDocument : public FormBaseBD { private: virtual xformsBC & bc() { return bc_; } /// The ButtonController ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_; }; Note that FormDocument has not yet undergone a controller-view split. All dialogs that have done so invoke the button controller as bc(): xformsBC & FormBase::bc() { return static_cast<xformsBC &>(getController().bc()); } I believe that Edwin has started to port the class over to the controller-view way of doing things, so any changes you make may be lost unless you liase with him. Regards, Angus