dialogs_(new Dialogs(*this)),
controlcommand_(new ControlCommandBuffer(*this))
{
- lyxerr[Debug::INIT] << "Initializing LyXFunc" << endl;
+ // Start autosave timer
+ if (lyxrc.autosave) {
+ autosave_timeout_->timeout.connect(boost::bind(&LyXView::autoSave, this));
+ autosave_timeout_->setTimeout(lyxrc.autosave * 1000);
+ autosave_timeout_->start();
+ }
}
}
-void LyXView::init()
-{
- updateLayoutChoice();
- updateMenubar();
-
- // Start autosave timer
- if (lyxrc.autosave) {
- autosave_timeout_->timeout.connect(boost::bind(&LyXView::autoSave, this));
- autosave_timeout_->setTimeout(lyxrc.autosave * 1000);
- autosave_timeout_->start();
- }
-}
-
-
Buffer * LyXView::buffer() const
{
return work_area_->bufferView().buffer();
void LyXView::showInsetDialog(string const & name, string const & data,
InsetBase * inset)
{
- getDialogs().show(name, data, 0);
+ getDialogs().show(name, data, inset);
}