#include "lyx_cb.h"
#include "BufferView.h"
#include "bufferview_funcs.h"
-#include "lyxtextclasslist.h"
#include "Dialogs.h"
#include "Toolbar.h"
// 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::updateMenubar()
{
- if (!view()->buffer() && menubackend.hasMenu("main_nobuffer")) {
- menubar_->set("main_nobuffer");
- } else {
- menubar_->set("main");
- }
-
menubar_->update();
}
// update the layout display
if (toolbar_->updateLayoutList(buffer()->params.textclass)) {
- current_layout = textclasslist[buffer()->params.textclass].defaultLayoutName();
+ current_layout = buffer()->params.getLyXTextClass().defaultLayoutName();
}
string const & layout =