controller().clearParams();
hideView();
- kernel().disconnect(name());
+ kernel().disconnect(name_);
}
controller().dispatchParams();
if (controller().disconnectOnApply() && !is_closing_) {
- kernel().disconnect(name());
+ kernel().disconnect(name_);
controller().initialiseParams(string());
updateView();
}
bool Dialog::Controller::canApply() const
{
- FuncRequest const fr(getLfun(), dialog().name());
+ FuncRequest const fr(getLfun(), dialog().name_);
FuncStatus const fs(getStatus(fr));
return fs.enabled();
}
Dialog(LyXView & lv, std::string const & name);
virtual ~Dialog();
- /** The Dialog's name is the means by which a dialog identifies
- * itself to the kernel.
- */
- std::string const & name() const { return name_; }
-
/** \name Container Access
* These methods are publicly accessible because they are invoked
* by the parent container acting on commands from the LyX kernel.
bool is_closing_;
Kernel kernel_;
+ /** The Dialog's name is the means by which a dialog identifies
+ * itself to the kernel.
+ */
std::string name_;
boost::scoped_ptr<Controller> controller_ptr_;