Run codespell on src/frontends

Command was:
codespell -w -i 3  -S Makefile.in -L mathed,afe,tthe,ue,fro,uint,larg,alph,te,thes,alle,Claus,pres,pass-thru  src/frontends/
This commit is contained in:
Jean-Marc Lasgouttes 2020-06-26 00:04:31 +02:00
parent 7a132f4f8c
commit 8ceb4f6b58
27 changed files with 57 additions and 57 deletions

View File

@ -44,7 +44,7 @@ class Selection;
/// The main application class
/**
There should be only one instance of this class. No Qt object
initialisation should be done before the instanciation of this class.
initialisation should be done before the instantiation of this class.
Model/View/Controller separation at frontend level in qt frontend:
@ -101,7 +101,7 @@ initialisation should be done before the instanciation of this class.
screen using the Painter. There can be only one Buffer displayed in
a BufferView and it is set on construction. Ideally, a BufferView
should not be able to change the contents of its associated Buffer.
A BufferView is instanciated and destroyed by a \c WorkArea; it is
A BufferView is instantiated and destroyed by a \c WorkArea; it is
automatically destroyed by the parent WorkArea when its Buffer is
closed.
@ -140,7 +140,7 @@ initialisation should be done before the instanciation of this class.
widget. A GuiView is in charge of creating and closing a View for a
given Buffer.
In the qt specialisation, \c GuiView, the central widget is a tab
widget. Each tab is reverved to the visualisation of one Buffer and
widget. Each tab is reserved to the visualisation of one Buffer and
contains one WorkArea. In the qt frontend, one GuiView thus contains
multiple WorkAreas but this number can limited to one for another
frontend. The idea is that the kernel should not know how a Buffer

View File

@ -95,7 +95,7 @@ public:
* direction of the string is forced, and the returned value
* is from the left edge of the word, not from the start of the string.
* \param rtl is true for right-to-left layout
* \param ws is the amount of extra inter-word space applied text justication.
* \param ws is the amount of extra inter-word space applied text justification.
*/
virtual int pos2x(docstring const & s, int pos, bool rtl, double ws) const = 0;
/**
@ -104,7 +104,7 @@ public:
* is from the left edge of the word, not from the start of the string.
* the offset x is updated to match the closest position in the string.
* \param rtl is true for right-to-left layout
* \param ws is the amount of extra inter-word space applied text justication.
* \param ws is the amount of extra inter-word space applied text justification.
*/
virtual int x2pos(docstring const & s, int & x, bool rtl, double ws) const = 0;
/**

View File

@ -49,7 +49,7 @@ public:
* Fill the X selection.
* The format is plain text.
* Does nothing on systems that don't have a selection.
* Since the X selection protocol is asyncronous this should never be
* Since the X selection protocol is asynchronous this should never be
* called from the kernel.
* If another application requests the current selection a
* SelectionRequest XEvent will be triggered. The response of the

View File

@ -158,7 +158,7 @@ public:
/** Defines the policy used by dialogs that are forced to support a button
controller when they either don't have a use for one or are not ready to
use one. This may be useful when testing a new button policy but wishing
to minimise problems to users by supplying an anything-goes policy via a
to minimize problems to users by supplying an anything-goes policy via a
preprocessor directive.
*/
IgnorantPolicy

View File

@ -88,7 +88,7 @@ public:
*/
//@{
/// \param data is a string encoding of the data to be displayed.
/// It is passed to the Controller to be translated into a useable form.
/// It is passed to the Controller to be translated into a usable form.
virtual void showData(std::string const & data);
//@}
@ -127,7 +127,7 @@ public:
/// Prepare dialog before view.
void prepareView();
/// Decide wether the dialog should grab thekeyboard focus when shown.
/// Decide whether the dialog should grab thekeyboard focus when shown.
/// This method defaults to true, override if a different behaviour
/// is wanted.
virtual bool wantInitialFocus() const { return true; }

View File

@ -522,7 +522,7 @@ pair<QString,bool> iconName(FuncRequest const & f, bool unknown, bool rtl)
// next thing to try is function name alone
names << lfunname;
// and finally maybe the unkown icon
// and finally maybe the unknown icon
if (unknown)
names << "unknown";
@ -1782,7 +1782,7 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
actOnUpdatedPrefs(lyxrc_orig, lyxrc);
// If the request comes from the minibuffer, then we can't reset
// the GUI, since that would destory the minibuffer itself and
// the GUI, since that would destroy the minibuffer itself and
// cause a crash, since we are currently in one of the methods of
// GuiCommandBuffer. See bug #8540.
if (cmd.origin() != FuncRequest::COMMANDBUFFER)
@ -2211,7 +2211,7 @@ void GuiApplication::processKeySym(KeySymbol const & keysym, KeyModifier state)
LYXERR(Debug::KEY, "action now set to [" << func.action() << ']');
}
// Dont remove this unless you know what you are doing.
// Don't remove this unless you know what you are doing.
d->meta_fake_bit = NoModifier;
// Can this happen now ?
@ -2386,7 +2386,7 @@ void GuiApplication::createView(int view_id)
void GuiApplication::createView(QString const & geometry_arg, bool autoShow,
int view_id)
{
// release the keyboard which might have been grabed by the global
// release the keyboard which might have been grabbed by the global
// menubar on Mac to catch shortcuts even without any GuiView.
if (d->global_menubar_)
d->global_menubar_->releaseKeyboard();
@ -2877,7 +2877,7 @@ void GuiApplication::commitData(QSessionManager & sm)
/** The implementation is required to avoid an application exit
** when session state save is triggered by session manager.
** The default implementation sends a close event to all
** visible top level widgets when session managment allows
** visible top level widgets when session management allows
** interaction.
** We are changing that to check the state of each buffer in all
** views and ask the users what to do if buffers are dirty.

View File

@ -61,7 +61,7 @@ private:
QStringList bibStyles() const;
/// get the list of bib files
QStringList bibFiles(bool const extension = true) const;
/// build filelists of all availabe bib/bst/cls/sty-files. done through
/// build filelists of all available bib/bst/cls/sty-files. done through
/// kpsewhich and an external script, saved in *Files.lst
void rescanBibStyles() const;
/// do we use bibtopic (for sectioned bibliography)?

View File

@ -435,7 +435,7 @@ void GuiCharacter::change_adaptor()
// to be really good here, we should set the combos to the values of
// the current text, and make it appear as "no change" if the values
// stay the same between applys. Might be difficult though wrt to a
// stay the same between applies. Might be difficult though wrt to a
// moved cursor - jbl
slotApply();
}

View File

@ -86,7 +86,7 @@ void CacheMimeData::update()
LYXERR(Debug::CLIPBOARD, "Creating CacheMimeData object");
cached_formats_ = read_clipboard()->formats();
// Qt times out after 5 seconds if it does not recieve a response.
// Qt times out after 5 seconds if it does not receive a response.
if (current_time() - start_time > 3) {
LYXERR0("No timely response from clipboard, perhaps process "
<< "holding clipboard is frozen?");
@ -154,7 +154,7 @@ FileName GuiClipboard::getPastedGraphicsFileName(Cursor const & cur,
LASSERT(!types.empty(), return FileName());
// select prefered type if AnyGraphicsType was passed
// select preferred type if AnyGraphicsType was passed
if (type == Clipboard::AnyGraphicsType)
type = types.front();
@ -189,7 +189,7 @@ FileName GuiClipboard::getPastedGraphicsFileName(Cursor const & cur,
} while (filename.isReadableFile());
while (true) {
// create file type filter, putting the prefered on to the front
// create file type filter, putting the preferred on to the front
QStringList filter;
for (size_t i = 0; i != types.size(); ++i) {
docstring s = bformat(_("%1$s Files"), typeNames[types[i]])

View File

@ -357,7 +357,7 @@ void ModuleSelectionManager::updateDownPB()
return;
}
// determine whether immediately succeding element requires this one
// determine whether immediately succeeding element requires this one
string const curmodname = getSelectedModel()->getIDString(curRow);
string const nextmodname = getSelectedModel()->getIDString(curRow + 1);
@ -945,7 +945,7 @@ GuiDocument::GuiDocument(GuiView & lv)
// language & quote
// this must preceed font, since fonts depend on this
// this must precede font, since fonts depend on this
langModule = new UiWidget<Ui::LanguageUi>(this);
connect(langModule->languageCO, SIGNAL(activated(int)),
this, SLOT(change_adaptor()));
@ -2495,16 +2495,16 @@ void GuiDocument::updateFontOptions()
if (tex_fonts)
font = fontModule->fontsSansCO->itemData(
fontModule->fontsSansCO->currentIndex()).toString();
bool scaleable = providesScale(font);
fontModule->scaleSansSB->setEnabled(scaleable);
fontModule->scaleSansLA->setEnabled(scaleable);
bool scalable = providesScale(font);
fontModule->scaleSansSB->setEnabled(scalable);
fontModule->scaleSansLA->setEnabled(scalable);
fontModule->fontSansOsfCB->setEnabled(providesOSF(font));
if (tex_fonts)
font = fontModule->fontsTypewriterCO->itemData(
fontModule->fontsTypewriterCO->currentIndex()).toString();
scaleable = providesScale(font);
fontModule->scaleTypewriterSB->setEnabled(scaleable);
fontModule->scaleTypewriterLA->setEnabled(scaleable);
scalable = providesScale(font);
fontModule->scaleTypewriterSB->setEnabled(scalable);
fontModule->scaleTypewriterLA->setEnabled(scalable);
fontModule->fontTypewriterOsfCB->setEnabled(providesOSF(font));
if (tex_fonts)
font = fontModule->fontsRomanCO->itemData(
@ -2702,9 +2702,9 @@ void GuiDocument::sansChanged(int item)
return;
QString const font =
fontModule->fontsSansCO->itemData(item).toString();
bool const scaleable = providesScale(font);
fontModule->scaleSansSB->setEnabled(scaleable);
fontModule->scaleSansLA->setEnabled(scaleable);
bool const scalable = providesScale(font);
fontModule->scaleSansSB->setEnabled(scalable);
fontModule->scaleSansLA->setEnabled(scalable);
fontModule->fontSansOsfCB->setEnabled(providesOSF(font));
updateExtraOpts();
}
@ -2716,9 +2716,9 @@ void GuiDocument::ttChanged(int item)
return;
QString const font =
fontModule->fontsTypewriterCO->itemData(item).toString();
bool scaleable = providesScale(font);
fontModule->scaleTypewriterSB->setEnabled(scaleable);
fontModule->scaleTypewriterLA->setEnabled(scaleable);
bool scalable = providesScale(font);
fontModule->scaleTypewriterSB->setEnabled(scalable);
fontModule->scaleTypewriterLA->setEnabled(scalable);
fontModule->fontTypewriterOsfCB->setEnabled(providesOSF(font));
updateExtraOpts();
}
@ -4747,7 +4747,7 @@ void GuiDocument::matchBiblatexStyles()
void GuiDocument::updateContents()
{
// Nothing to do here as the document settings is not cursor dependant.
// Nothing to do here as the document settings is not cursor dependent.
return;
}

View File

@ -195,7 +195,7 @@ GuiGraphics::GuiGraphics(GuiView & lv)
connect(draftCB, SIGNAL(stateChanged(int)),
this, SLOT(change_adaptor()));
// FIXME: we should connect to clicked() when we move to Qt 4.2 because
// the toggled(bool) signal is also trigged when we update the widgets
// the toggled(bool) signal is also triggered when we update the widgets
// (rgh-4/07) this isn't as much or a problem as it was, because we're now
// using blockSignals() to keep from triggering that signal when we call
// setChecked(). Note, too, that clicked() would get called whenever it

View File

@ -66,7 +66,7 @@ private:
docstring title() const;
/// put the log file into the ostream
void getContents(std::ostream & ss) const;
/// go to the next occurence of the RegExp
/// go to the next occurrence of the RegExp
void goTo(QRegExp const & exp) const;
/// does the document after cursor position contain the RegExp?
bool contains(QRegExp const & exp) const;

View File

@ -504,7 +504,7 @@ void GuiPainter::crossoutLines(FontInfo const & f, int x, int y, int width)
// the definition of \xout in ulem.sty is
// \def\xout{\bgroup \markoverwith{\hbox to.35em{\hss/\hss}}\ULon}
// Let's mimick it somewhat.
// Let's mimic it somewhat.
double offset = max(0.35 * theFontMetrics(tmpf).em(), 1);
for (int i = 0 ; i < iround(width / offset) ; ++i)
text(x + iround(i * offset), y, '/', tmpf);

View File

@ -40,11 +40,11 @@ private:
void dispatchParams() {}
bool isBufferDependent() const { return true; }
/// Searches occurence of string
/// Searches occurrence of string
void find(docstring const & search,
bool casesensitive, bool matchword, bool forward);
/// Replaces occurence of string
/// Replaces occurrence of string
void replace(docstring const & search, docstring const & replace,
bool casesensitive, bool matchword,
bool forward, bool all);

View File

@ -31,7 +31,7 @@ namespace frontend {
* of items from a list of available items. Adapted from code originally
* written for GuiCitationDialog.
* Note that this is a not a QWidget, though it could be converted to
* one. Rather, the managed widgets---see constructor for descripton
* one. Rather, the managed widgets---see constructor for description
* of them---should be created independently, and then passed to the
* constructor.
*/

View File

@ -127,7 +127,7 @@ void GuiTexInfo::updateStyles(TexFileType type)
QStringList flist = texFileList(filename);
if (flist.empty()) {
// build filelists of all availabe bst/cls/sty-files.
// build filelists of all available bst/cls/sty-files.
// Done through kpsewhich and an external script,
// saved in *Files.lst
rescanTexStyles();

View File

@ -72,7 +72,7 @@ GuiToolbar::GuiToolbar(ToolbarInfo const & tbinfo, GuiView & owner)
SLOT(setIconSize(QSize)));
// This is used by QMainWindow::restoreState for proper main window state
// restauration.
// restoration.
setObjectName(toqstr(tbinfo.name));
restoreSession();
}

View File

@ -312,7 +312,7 @@ public:
/// Update all visible dialogs.
/**
* Check the status of all visible dialogs and disable or reenable
* Check the status of all visible dialogs and disable or re-enable
* them as appropriate.
*
* Disabling is needed for example when a dialog is open and the

View File

@ -380,7 +380,7 @@ void GuiWorkArea::setBuffer(Buffer & buffer)
buffer.workAreaManager().add(this);
// HACK: Prevents an additional redraw when the scrollbar pops up
// which regularily happens on documents with more than one page.
// which regularly happens on documents with more than one page.
// The policy should be set to "Qt::ScrollBarAsNeeded" soon.
// Since we have no geometry information yet, we assume that
// a document needs a scrollbar if there is more then four
@ -595,7 +595,7 @@ void GuiWorkArea::Private::resizeBufferView()
// Update scrollbars which might have changed due different
// BufferView dimension. This is especially important when the
// BufferView goes from zero-size to the real-size for the first time,
// as the scrollbar paramters are then set for the first time.
// as the scrollbar parameters are then set for the first time.
updateScrollbar();
need_resize_ = false;
@ -1215,7 +1215,7 @@ void GuiWorkArea::Private::paintPreeditText(GuiPainter & pain)
size_t const preedit_length = preedit_string_.length();
// get position of selection in input method.
// FIXME: isn't there a way to do this simplier?
// FIXME: isn't there a simpler way to do this?
// rStart : cursor position in selected string in IM.
size_t rStart = 0;
// rLength : selected string length in IM.
@ -1364,7 +1364,7 @@ void GuiWorkArea::inputMethodEvent(QInputMethodEvent * e)
FuncRequest::KEYBOARD);
dispatch(cmd);
// FIXME: this is supposed to remove traces from preedit
// string. Can we avoid calling it explicitely?
// string. Can we avoid calling it explicitly?
d->buffer_view_->updateMetrics();
}

View File

@ -52,7 +52,7 @@ class InGuiThread : private IntoGuiThreadMover
{
public:
// please coverity by explicitly initalizing this variable.
// please coverity by explicitly initializing this variable.
InGuiThread() : return_value_(R()) {}
template<class F>

View File

@ -2205,7 +2205,7 @@ MenuDefinition Menus::Impl::mac_special_menu_;
documented below).
The above 3 steps are applied all the way up the parent window
chain until one of the above are satisifed. If all else fails a
chain until one of the above are satisfied. If all else fails a
default menubar will be created, the default menubar on Qt/Mac is
an empty menubar, however you can create a different default
menubar by creating a parentless QMenuBar, the first one created

View File

@ -220,7 +220,7 @@ void PanelStack::hideEvent(QHideEvent * event)
{
QWidget::hideEvent(event);
// Programatically hidden (not simply minimized by the user)
// Programmatically hidden (not simply minimized by the user)
if (!event->spontaneous()) {
resetSearch();
}

View File

@ -41,7 +41,7 @@ class LyXRC;
namespace frontend {
/** A class to ascertain whether the data passed to the @c validate()
* member function can be interpretted as a GlueLength.
* member function can be interpreted as a GlueLength.
*/
class LengthValidator : public QValidator
{
@ -85,7 +85,7 @@ LengthValidator * unsignedGlueLengthValidator(QLineEdit *);
/** A class to ascertain whether the data passed to the @c validate()
* member function can be interpretted as a GlueLength or is @param autotext.
* member function can be interpreted as a GlueLength or is @param autotext.
*/
class LengthAutoValidator : public LengthValidator
{

View File

@ -430,7 +430,7 @@ QString makeAbsPath(QString const & relpath, QString const & base)
/** Given a string such as
* "<glob> <glob> ... *.{abc,def} <glob>",
* convert the csh-style brace expresions:
* convert the csh-style brace expressions:
* "<glob> <glob> ... *.abc *.def <glob>".
* Requires no system support, so should work equally on Unix, Mac, Win32.
*/

View File

@ -163,7 +163,7 @@ QString browseRelToSub(QString const & filename,
QString const & label2 = QString(),
QString const & dir2 = QString());
/** Build filelists of all availabe bst/cls/sty-files. Done through
/** Build filelists of all available bst/cls/sty-files. Done through
* kpsewhich and an external script, saved in *Files.lst.
* \param arg: cls, sty, bst, or bib, as required by TeXFiles.py.
* Can be a list of these, too.

View File

@ -48,7 +48,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>Specify the original version of the document here (comparation source)</string>
<string>Specify the original version of the document here (comparison source)</string>
</property>
<property name="editable">
<bool>true</bool>
@ -84,7 +84,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>Specify the modified version of the document here (comparation target)</string>
<string>Specify the modified version of the document here (comparison target)</string>
</property>
<property name="editable">
<bool>true</bool>

View File

@ -1310,7 +1310,7 @@ void parse_box(Parser & p, ostream & os, unsigned outer_flags,
os << "use_makebox " << (inner_type == "makebox") << '\n';
if (outer_type == "mbox" || (outer_type == "fbox" && inner_type.empty()))
os << "width \"\"\n";
// for values like "1.5\width" LyX uses "1.5in" as width ad sets "width" as special
// for values like "1.5\width" LyX uses "1.5in" as width and sets "width" as special
else if (contains(width_unit, '\\'))
os << "width \"" << width_value << "in" << "\"\n";
else