mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Dialog::name() is not really needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20146 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
133041073b
commit
48901a7dc6
@ -85,7 +85,7 @@ void Dialog::hide()
|
||||
|
||||
controller().clearParams();
|
||||
hideView();
|
||||
kernel().disconnect(name());
|
||||
kernel().disconnect(name_);
|
||||
}
|
||||
|
||||
|
||||
@ -101,7 +101,7 @@ void Dialog::apply()
|
||||
controller().dispatchParams();
|
||||
|
||||
if (controller().disconnectOnApply() && !is_closing_) {
|
||||
kernel().disconnect(name());
|
||||
kernel().disconnect(name_);
|
||||
controller().initialiseParams(string());
|
||||
updateView();
|
||||
}
|
||||
@ -134,7 +134,7 @@ Dialog::Controller::Controller(Dialog & parent)
|
||||
|
||||
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();
|
||||
}
|
||||
|
@ -36,11 +36,6 @@ public:
|
||||
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.
|
||||
@ -162,6 +157,9 @@ protected:
|
||||
|
||||
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_;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user