+
+2004-02-20 André Pönitz <poenitz@gmx.net>
+
+ * lyxfunc.[Ch]: rename view_status_message() to viewStatusMessage()
+
2004-02-16 Alfredo Braunstein <abraunst@lyx.org>
* text2.C (setCursorFromCoordinates): switch to absolute coords
void LCursor::replaceWord(string const & replacestring)
{
LyXText * t = text();
+ BOOST_ASSERT(t);
t->replaceSelectionWithString(*this, replacestring);
t->setSelectionRange(*this, replacestring.length());
void GView::showViewState()
{
- message(getLyXFunc().view_status_message());
+ message(getLyXFunc().viewStatusMessage());
}
if (yes ) {
view()->hideCursor();
Gdk::Cursor cursor(Gdk::WATCH);
- const_cast<GView*>(this)->get_window()->set_cursor(cursor);
- const_cast<GView*>(this)->set_sensitive(false);
+ const_cast<GView *>(this)->get_window()->set_cursor(cursor);
+ const_cast<GView *>(this)->set_sensitive(false);
} else {
- const_cast<GView*>(this)->get_window()->set_cursor();
- const_cast<GView*>(this)->set_sensitive(true);
+ const_cast<GView *>(this)->get_window()->set_cursor();
+ const_cast<GView *>(this)->set_sensitive(true);
}
}
void GView::clearMessage()
{
- message(getLyXFunc().view_status_message());
+ message(getLyXFunc().viewStatusMessage());
}
void QtView::update_view_state_qt()
{
- statusBar()->message(toqstr(getLyXFunc().view_status_message()));
+ statusBar()->message(toqstr(getLyXFunc().viewStatusMessage()));
statusbar_timer_.stop();
}
if (statusbar_timer_.isActive())
return;
- statusBar()->message(toqstr(getLyXFunc().view_status_message()));
+ statusBar()->message(toqstr(getLyXFunc().viewStatusMessage()));
}
if (yes)
QApplication::setOverrideCursor(Qt::waitCursor);
else
- QApplication::restoreOverrideCursor();
+ QApplication::restoreOverrideCursor();
}
create_form_form_main(width, height);
fl_set_form_atclose(getForm(), C_XFormsView_atCloseMainFormCB, 0);
- view_state_con = view_state_changed.connect(boost::bind(&XFormsView::show_view_state, this));
- focus_con = focus_command_buffer.connect(boost::bind(&XMiniBuffer::focus, minibuffer_.get()));
+ view_state_con =
+ view_state_changed.connect(boost::bind(&XFormsView::show_view_state, this));
+ focus_con =
+ focus_command_buffer.connect(boost::bind(&XMiniBuffer::focus, minibuffer_.get()));
// Make sure the buttons are disabled if needed.
updateToolbar();
- redraw_con = getDialogs().redrawGUI().connect(boost::bind(&XFormsView::redraw, this));
+ redraw_con =
+ getDialogs().redrawGUI().connect(boost::bind(&XFormsView::redraw, this));
}
void XFormsView::clearMessage()
{
- message(getLyXFunc().view_status_message());
+ message(getLyXFunc().viewStatusMessage());
}
void XFormsView::show_view_state()
{
- message(getLyXFunc().view_status_message());
+ message(getLyXFunc().viewStatusMessage());
}
}
-string const LyXFunc::view_status_message()
+string const LyXFunc::viewStatusMessage()
{
// When meta-fake key is pressed, show the key sequence so far + "M-".
- if (wasMetaKey()) {
+ if (wasMetaKey())
return keyseq.print() + "M-";
- }
// Else, when a non-complete key sequence is pressed,
// show the available options.
- if (keyseq.length() > 0 && !keyseq.deleted()) {
+ if (keyseq.length() > 0 && !keyseq.deleted())
return keyseq.printOptions();
- }
if (!view()->available())
return _("Welcome to LyX!");
void dispatch(FuncRequest const &, bool verbose = false);
/// return the status bar state string
- std::string const view_status_message();
+ std::string const viewStatusMessage();
///
typedef boost::shared_ptr<LyXKeySym> LyXKeySymPtr;