+2002-07-21 John Levon <moz@compsoc.man.ac.uk>
+
+ * LyXView.C: move autosave connect here
+
2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* LyXView.C (updateMenubar): remove code to set different menubars
// Start autosave timer
if (lyxrc.autosave) {
+ autosave_timeout_->timeout.connect(boost::bind(&LyXView::autoSave, this));
autosave_timeout_->setTimeout(lyxrc.autosave * 1000);
autosave_timeout_->start();
}
+2002-07-21 John Levon <moz@compsoc.man.ac.uk>
+
+ * Menubar_pimpl.C: change for removed menubar stuff
+
+2002-07-21 John Levon <moz@compsoc.man.ac.uk>
+
+ * QtView.C: reset idle timer on message()
+
2002-07-20 John Levon <moz@compsoc.man.ac.uk>
* QLImage.C: various fixes
Menubar::Pimpl::Pimpl(LyXView * view, MenuBackend const & mbe)
: owner_(static_cast<QtView*>(view)), menubackend_(mbe)
{
- MenuBackend::const_iterator mb = menubackend_.begin();
- MenuBackend::const_iterator mbend = menubackend_.end();
- for (; mb != mbend; ++mb) {
- if (mb->menubar() && mb->name() == "main") {
- Menu::const_iterator m = mb->begin();
- Menu::const_iterator end = mb->end();
- for (; m != end; ++m) {
- makeMenu(owner_->menuBar(), *m);
- }
- }
+ Menu::const_iterator m = mbe.getMenubar().begin();
+ Menu::const_iterator end = mbe.getMenubar().end();
+ for (; m != end; ++m) {
+ makeMenu(owner_->menuBar(), *m);
}
}
addToolBar(commandbuffer_, Bottom, true);
- // FIXME: move
- // FIXME autosave_timeout_->timeout.connect(SigC::slot(this, &QtView::autoSave));
-
// assign an icon to main form
string const iconname = LibFileSearch("images", "lyx", "xpm");
void QtView::message(string const & str)
{
statusBar()->message(str.c_str());
+ idle_timer_.stop();
+ idle_timer_.start(3000);
}
void QtView::update_view_state_qt()
{
- message(currentState(view()));
+ statusBar()->message(currentState(view()).c_str());
}
void QtView::update_view_state()
{
- message(currentState(view()));
+ statusBar()->message(currentState(view()).c_str());
}
+2002-07-21 John Levon <moz@compsoc.man.ac.uk>
+
+ * XFormsView.C: move autosave timer to LyXView.C
+
2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* Menubar_pimpl.[Ch]: remove support for multiple menubars
minibuffer_.reset(new XMiniBuffer(this, *controlcommand_,
air, height - (25 + air), width - (2 * air), 25));
- // FIXME: why do this in xforms/ ?
- autosave_timeout_->timeout.connect(boost::bind(&XFormsView::autoSave, this));
-
// assign an icon to main form
string iconname = LibFileSearch("images", "lyx", "xpm");
if (!iconname.empty()) {