mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
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:
parent
7a132f4f8c
commit
8ceb4f6b58
@ -44,7 +44,7 @@ class Selection;
|
|||||||
/// The main application class
|
/// The main application class
|
||||||
/**
|
/**
|
||||||
There should be only one instance of this class. No Qt object
|
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:
|
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
|
screen using the Painter. There can be only one Buffer displayed in
|
||||||
a BufferView and it is set on construction. Ideally, a BufferView
|
a BufferView and it is set on construction. Ideally, a BufferView
|
||||||
should not be able to change the contents of its associated Buffer.
|
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
|
automatically destroyed by the parent WorkArea when its Buffer is
|
||||||
closed.
|
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
|
widget. A GuiView is in charge of creating and closing a View for a
|
||||||
given Buffer.
|
given Buffer.
|
||||||
In the qt specialisation, \c GuiView, the central widget is a tab
|
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
|
contains one WorkArea. In the qt frontend, one GuiView thus contains
|
||||||
multiple WorkAreas but this number can limited to one for another
|
multiple WorkAreas but this number can limited to one for another
|
||||||
frontend. The idea is that the kernel should not know how a Buffer
|
frontend. The idea is that the kernel should not know how a Buffer
|
||||||
|
@ -95,7 +95,7 @@ public:
|
|||||||
* direction of the string is forced, and the returned value
|
* 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.
|
* 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 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;
|
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.
|
* 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.
|
* the offset x is updated to match the closest position in the string.
|
||||||
* \param rtl is true for right-to-left layout
|
* \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;
|
virtual int x2pos(docstring const & s, int & x, bool rtl, double ws) const = 0;
|
||||||
/**
|
/**
|
||||||
|
@ -49,7 +49,7 @@ public:
|
|||||||
* Fill the X selection.
|
* Fill the X selection.
|
||||||
* The format is plain text.
|
* The format is plain text.
|
||||||
* Does nothing on systems that don't have a selection.
|
* 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.
|
* called from the kernel.
|
||||||
* If another application requests the current selection a
|
* If another application requests the current selection a
|
||||||
* SelectionRequest XEvent will be triggered. The response of the
|
* SelectionRequest XEvent will be triggered. The response of the
|
||||||
|
@ -158,7 +158,7 @@ public:
|
|||||||
/** Defines the policy used by dialogs that are forced to support a button
|
/** 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
|
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
|
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.
|
preprocessor directive.
|
||||||
*/
|
*/
|
||||||
IgnorantPolicy
|
IgnorantPolicy
|
||||||
|
@ -88,7 +88,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
//@{
|
//@{
|
||||||
/// \param data is a string encoding of the data to be displayed.
|
/// \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);
|
virtual void showData(std::string const & data);
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
@ -127,7 +127,7 @@ public:
|
|||||||
/// Prepare dialog before view.
|
/// Prepare dialog before view.
|
||||||
void prepareView();
|
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
|
/// This method defaults to true, override if a different behaviour
|
||||||
/// is wanted.
|
/// is wanted.
|
||||||
virtual bool wantInitialFocus() const { return true; }
|
virtual bool wantInitialFocus() const { return true; }
|
||||||
|
@ -522,7 +522,7 @@ pair<QString,bool> iconName(FuncRequest const & f, bool unknown, bool rtl)
|
|||||||
// next thing to try is function name alone
|
// next thing to try is function name alone
|
||||||
names << lfunname;
|
names << lfunname;
|
||||||
|
|
||||||
// and finally maybe the unkown icon
|
// and finally maybe the unknown icon
|
||||||
if (unknown)
|
if (unknown)
|
||||||
names << "unknown";
|
names << "unknown";
|
||||||
|
|
||||||
@ -1782,7 +1782,7 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
|||||||
actOnUpdatedPrefs(lyxrc_orig, lyxrc);
|
actOnUpdatedPrefs(lyxrc_orig, lyxrc);
|
||||||
|
|
||||||
// If the request comes from the minibuffer, then we can't reset
|
// 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
|
// cause a crash, since we are currently in one of the methods of
|
||||||
// GuiCommandBuffer. See bug #8540.
|
// GuiCommandBuffer. See bug #8540.
|
||||||
if (cmd.origin() != FuncRequest::COMMANDBUFFER)
|
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() << ']');
|
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;
|
d->meta_fake_bit = NoModifier;
|
||||||
|
|
||||||
// Can this happen now ?
|
// Can this happen now ?
|
||||||
@ -2386,7 +2386,7 @@ void GuiApplication::createView(int view_id)
|
|||||||
void GuiApplication::createView(QString const & geometry_arg, bool autoShow,
|
void GuiApplication::createView(QString const & geometry_arg, bool autoShow,
|
||||||
int view_id)
|
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.
|
// menubar on Mac to catch shortcuts even without any GuiView.
|
||||||
if (d->global_menubar_)
|
if (d->global_menubar_)
|
||||||
d->global_menubar_->releaseKeyboard();
|
d->global_menubar_->releaseKeyboard();
|
||||||
@ -2877,7 +2877,7 @@ void GuiApplication::commitData(QSessionManager & sm)
|
|||||||
/** The implementation is required to avoid an application exit
|
/** The implementation is required to avoid an application exit
|
||||||
** when session state save is triggered by session manager.
|
** when session state save is triggered by session manager.
|
||||||
** The default implementation sends a close event to all
|
** 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.
|
** interaction.
|
||||||
** We are changing that to check the state of each buffer in all
|
** 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.
|
** views and ask the users what to do if buffers are dirty.
|
||||||
|
@ -61,7 +61,7 @@ private:
|
|||||||
QStringList bibStyles() const;
|
QStringList bibStyles() const;
|
||||||
/// get the list of bib files
|
/// get the list of bib files
|
||||||
QStringList bibFiles(bool const extension = true) const;
|
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
|
/// kpsewhich and an external script, saved in *Files.lst
|
||||||
void rescanBibStyles() const;
|
void rescanBibStyles() const;
|
||||||
/// do we use bibtopic (for sectioned bibliography)?
|
/// do we use bibtopic (for sectioned bibliography)?
|
||||||
|
@ -435,7 +435,7 @@ void GuiCharacter::change_adaptor()
|
|||||||
|
|
||||||
// to be really good here, we should set the combos to the values of
|
// 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
|
// 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
|
// moved cursor - jbl
|
||||||
slotApply();
|
slotApply();
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,7 @@ void CacheMimeData::update()
|
|||||||
LYXERR(Debug::CLIPBOARD, "Creating CacheMimeData object");
|
LYXERR(Debug::CLIPBOARD, "Creating CacheMimeData object");
|
||||||
cached_formats_ = read_clipboard()->formats();
|
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) {
|
if (current_time() - start_time > 3) {
|
||||||
LYXERR0("No timely response from clipboard, perhaps process "
|
LYXERR0("No timely response from clipboard, perhaps process "
|
||||||
<< "holding clipboard is frozen?");
|
<< "holding clipboard is frozen?");
|
||||||
@ -154,7 +154,7 @@ FileName GuiClipboard::getPastedGraphicsFileName(Cursor const & cur,
|
|||||||
|
|
||||||
LASSERT(!types.empty(), return FileName());
|
LASSERT(!types.empty(), return FileName());
|
||||||
|
|
||||||
// select prefered type if AnyGraphicsType was passed
|
// select preferred type if AnyGraphicsType was passed
|
||||||
if (type == Clipboard::AnyGraphicsType)
|
if (type == Clipboard::AnyGraphicsType)
|
||||||
type = types.front();
|
type = types.front();
|
||||||
|
|
||||||
@ -189,7 +189,7 @@ FileName GuiClipboard::getPastedGraphicsFileName(Cursor const & cur,
|
|||||||
} while (filename.isReadableFile());
|
} while (filename.isReadableFile());
|
||||||
|
|
||||||
while (true) {
|
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;
|
QStringList filter;
|
||||||
for (size_t i = 0; i != types.size(); ++i) {
|
for (size_t i = 0; i != types.size(); ++i) {
|
||||||
docstring s = bformat(_("%1$s Files"), typeNames[types[i]])
|
docstring s = bformat(_("%1$s Files"), typeNames[types[i]])
|
||||||
|
@ -357,7 +357,7 @@ void ModuleSelectionManager::updateDownPB()
|
|||||||
return;
|
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 curmodname = getSelectedModel()->getIDString(curRow);
|
||||||
string const nextmodname = getSelectedModel()->getIDString(curRow + 1);
|
string const nextmodname = getSelectedModel()->getIDString(curRow + 1);
|
||||||
|
|
||||||
@ -945,7 +945,7 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
|
|
||||||
|
|
||||||
// language & quote
|
// 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);
|
langModule = new UiWidget<Ui::LanguageUi>(this);
|
||||||
connect(langModule->languageCO, SIGNAL(activated(int)),
|
connect(langModule->languageCO, SIGNAL(activated(int)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
@ -2495,16 +2495,16 @@ void GuiDocument::updateFontOptions()
|
|||||||
if (tex_fonts)
|
if (tex_fonts)
|
||||||
font = fontModule->fontsSansCO->itemData(
|
font = fontModule->fontsSansCO->itemData(
|
||||||
fontModule->fontsSansCO->currentIndex()).toString();
|
fontModule->fontsSansCO->currentIndex()).toString();
|
||||||
bool scaleable = providesScale(font);
|
bool scalable = providesScale(font);
|
||||||
fontModule->scaleSansSB->setEnabled(scaleable);
|
fontModule->scaleSansSB->setEnabled(scalable);
|
||||||
fontModule->scaleSansLA->setEnabled(scaleable);
|
fontModule->scaleSansLA->setEnabled(scalable);
|
||||||
fontModule->fontSansOsfCB->setEnabled(providesOSF(font));
|
fontModule->fontSansOsfCB->setEnabled(providesOSF(font));
|
||||||
if (tex_fonts)
|
if (tex_fonts)
|
||||||
font = fontModule->fontsTypewriterCO->itemData(
|
font = fontModule->fontsTypewriterCO->itemData(
|
||||||
fontModule->fontsTypewriterCO->currentIndex()).toString();
|
fontModule->fontsTypewriterCO->currentIndex()).toString();
|
||||||
scaleable = providesScale(font);
|
scalable = providesScale(font);
|
||||||
fontModule->scaleTypewriterSB->setEnabled(scaleable);
|
fontModule->scaleTypewriterSB->setEnabled(scalable);
|
||||||
fontModule->scaleTypewriterLA->setEnabled(scaleable);
|
fontModule->scaleTypewriterLA->setEnabled(scalable);
|
||||||
fontModule->fontTypewriterOsfCB->setEnabled(providesOSF(font));
|
fontModule->fontTypewriterOsfCB->setEnabled(providesOSF(font));
|
||||||
if (tex_fonts)
|
if (tex_fonts)
|
||||||
font = fontModule->fontsRomanCO->itemData(
|
font = fontModule->fontsRomanCO->itemData(
|
||||||
@ -2702,9 +2702,9 @@ void GuiDocument::sansChanged(int item)
|
|||||||
return;
|
return;
|
||||||
QString const font =
|
QString const font =
|
||||||
fontModule->fontsSansCO->itemData(item).toString();
|
fontModule->fontsSansCO->itemData(item).toString();
|
||||||
bool const scaleable = providesScale(font);
|
bool const scalable = providesScale(font);
|
||||||
fontModule->scaleSansSB->setEnabled(scaleable);
|
fontModule->scaleSansSB->setEnabled(scalable);
|
||||||
fontModule->scaleSansLA->setEnabled(scaleable);
|
fontModule->scaleSansLA->setEnabled(scalable);
|
||||||
fontModule->fontSansOsfCB->setEnabled(providesOSF(font));
|
fontModule->fontSansOsfCB->setEnabled(providesOSF(font));
|
||||||
updateExtraOpts();
|
updateExtraOpts();
|
||||||
}
|
}
|
||||||
@ -2716,9 +2716,9 @@ void GuiDocument::ttChanged(int item)
|
|||||||
return;
|
return;
|
||||||
QString const font =
|
QString const font =
|
||||||
fontModule->fontsTypewriterCO->itemData(item).toString();
|
fontModule->fontsTypewriterCO->itemData(item).toString();
|
||||||
bool scaleable = providesScale(font);
|
bool scalable = providesScale(font);
|
||||||
fontModule->scaleTypewriterSB->setEnabled(scaleable);
|
fontModule->scaleTypewriterSB->setEnabled(scalable);
|
||||||
fontModule->scaleTypewriterLA->setEnabled(scaleable);
|
fontModule->scaleTypewriterLA->setEnabled(scalable);
|
||||||
fontModule->fontTypewriterOsfCB->setEnabled(providesOSF(font));
|
fontModule->fontTypewriterOsfCB->setEnabled(providesOSF(font));
|
||||||
updateExtraOpts();
|
updateExtraOpts();
|
||||||
}
|
}
|
||||||
@ -4747,7 +4747,7 @@ void GuiDocument::matchBiblatexStyles()
|
|||||||
|
|
||||||
void GuiDocument::updateContents()
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ GuiGraphics::GuiGraphics(GuiView & lv)
|
|||||||
connect(draftCB, SIGNAL(stateChanged(int)),
|
connect(draftCB, SIGNAL(stateChanged(int)),
|
||||||
this, SLOT(change_adaptor()));
|
this, SLOT(change_adaptor()));
|
||||||
// FIXME: we should connect to clicked() when we move to Qt 4.2 because
|
// 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
|
// (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
|
// using blockSignals() to keep from triggering that signal when we call
|
||||||
// setChecked(). Note, too, that clicked() would get called whenever it
|
// setChecked(). Note, too, that clicked() would get called whenever it
|
||||||
|
@ -66,7 +66,7 @@ private:
|
|||||||
docstring title() const;
|
docstring title() const;
|
||||||
/// put the log file into the ostream
|
/// put the log file into the ostream
|
||||||
void getContents(std::ostream & ss) const;
|
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;
|
void goTo(QRegExp const & exp) const;
|
||||||
/// does the document after cursor position contain the RegExp?
|
/// does the document after cursor position contain the RegExp?
|
||||||
bool contains(QRegExp const & exp) const;
|
bool contains(QRegExp const & exp) const;
|
||||||
|
@ -504,7 +504,7 @@ void GuiPainter::crossoutLines(FontInfo const & f, int x, int y, int width)
|
|||||||
|
|
||||||
// the definition of \xout in ulem.sty is
|
// the definition of \xout in ulem.sty is
|
||||||
// \def\xout{\bgroup \markoverwith{\hbox to.35em{\hss/\hss}}\ULon}
|
// \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);
|
double offset = max(0.35 * theFontMetrics(tmpf).em(), 1);
|
||||||
for (int i = 0 ; i < iround(width / offset) ; ++i)
|
for (int i = 0 ; i < iround(width / offset) ; ++i)
|
||||||
text(x + iround(i * offset), y, '/', tmpf);
|
text(x + iround(i * offset), y, '/', tmpf);
|
||||||
|
@ -40,11 +40,11 @@ private:
|
|||||||
void dispatchParams() {}
|
void dispatchParams() {}
|
||||||
bool isBufferDependent() const { return true; }
|
bool isBufferDependent() const { return true; }
|
||||||
|
|
||||||
/// Searches occurence of string
|
/// Searches occurrence of string
|
||||||
void find(docstring const & search,
|
void find(docstring const & search,
|
||||||
bool casesensitive, bool matchword, bool forward);
|
bool casesensitive, bool matchword, bool forward);
|
||||||
|
|
||||||
/// Replaces occurence of string
|
/// Replaces occurrence of string
|
||||||
void replace(docstring const & search, docstring const & replace,
|
void replace(docstring const & search, docstring const & replace,
|
||||||
bool casesensitive, bool matchword,
|
bool casesensitive, bool matchword,
|
||||||
bool forward, bool all);
|
bool forward, bool all);
|
||||||
|
@ -31,7 +31,7 @@ namespace frontend {
|
|||||||
* of items from a list of available items. Adapted from code originally
|
* of items from a list of available items. Adapted from code originally
|
||||||
* written for GuiCitationDialog.
|
* written for GuiCitationDialog.
|
||||||
* Note that this is a not a QWidget, though it could be converted to
|
* 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
|
* of them---should be created independently, and then passed to the
|
||||||
* constructor.
|
* constructor.
|
||||||
*/
|
*/
|
||||||
|
@ -127,7 +127,7 @@ void GuiTexInfo::updateStyles(TexFileType type)
|
|||||||
|
|
||||||
QStringList flist = texFileList(filename);
|
QStringList flist = texFileList(filename);
|
||||||
if (flist.empty()) {
|
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,
|
// Done through kpsewhich and an external script,
|
||||||
// saved in *Files.lst
|
// saved in *Files.lst
|
||||||
rescanTexStyles();
|
rescanTexStyles();
|
||||||
|
@ -72,7 +72,7 @@ GuiToolbar::GuiToolbar(ToolbarInfo const & tbinfo, GuiView & owner)
|
|||||||
SLOT(setIconSize(QSize)));
|
SLOT(setIconSize(QSize)));
|
||||||
|
|
||||||
// This is used by QMainWindow::restoreState for proper main window state
|
// This is used by QMainWindow::restoreState for proper main window state
|
||||||
// restauration.
|
// restoration.
|
||||||
setObjectName(toqstr(tbinfo.name));
|
setObjectName(toqstr(tbinfo.name));
|
||||||
restoreSession();
|
restoreSession();
|
||||||
}
|
}
|
||||||
|
@ -312,7 +312,7 @@ public:
|
|||||||
|
|
||||||
/// Update all visible dialogs.
|
/// 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.
|
* them as appropriate.
|
||||||
*
|
*
|
||||||
* Disabling is needed for example when a dialog is open and the
|
* Disabling is needed for example when a dialog is open and the
|
||||||
|
@ -380,7 +380,7 @@ void GuiWorkArea::setBuffer(Buffer & buffer)
|
|||||||
buffer.workAreaManager().add(this);
|
buffer.workAreaManager().add(this);
|
||||||
|
|
||||||
// HACK: Prevents an additional redraw when the scrollbar pops up
|
// 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.
|
// The policy should be set to "Qt::ScrollBarAsNeeded" soon.
|
||||||
// Since we have no geometry information yet, we assume that
|
// Since we have no geometry information yet, we assume that
|
||||||
// a document needs a scrollbar if there is more then four
|
// 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
|
// Update scrollbars which might have changed due different
|
||||||
// BufferView dimension. This is especially important when the
|
// BufferView dimension. This is especially important when the
|
||||||
// BufferView goes from zero-size to the real-size for the first time,
|
// 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();
|
updateScrollbar();
|
||||||
|
|
||||||
need_resize_ = false;
|
need_resize_ = false;
|
||||||
@ -1215,7 +1215,7 @@ void GuiWorkArea::Private::paintPreeditText(GuiPainter & pain)
|
|||||||
size_t const preedit_length = preedit_string_.length();
|
size_t const preedit_length = preedit_string_.length();
|
||||||
|
|
||||||
// get position of selection in input method.
|
// 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.
|
// rStart : cursor position in selected string in IM.
|
||||||
size_t rStart = 0;
|
size_t rStart = 0;
|
||||||
// rLength : selected string length in IM.
|
// rLength : selected string length in IM.
|
||||||
@ -1364,7 +1364,7 @@ void GuiWorkArea::inputMethodEvent(QInputMethodEvent * e)
|
|||||||
FuncRequest::KEYBOARD);
|
FuncRequest::KEYBOARD);
|
||||||
dispatch(cmd);
|
dispatch(cmd);
|
||||||
// FIXME: this is supposed to remove traces from preedit
|
// 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();
|
d->buffer_view_->updateMetrics();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ class InGuiThread : private IntoGuiThreadMover
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// please coverity by explicitly initalizing this variable.
|
// please coverity by explicitly initializing this variable.
|
||||||
InGuiThread() : return_value_(R()) {}
|
InGuiThread() : return_value_(R()) {}
|
||||||
|
|
||||||
template<class F>
|
template<class F>
|
||||||
|
@ -2205,7 +2205,7 @@ MenuDefinition Menus::Impl::mac_special_menu_;
|
|||||||
documented below).
|
documented below).
|
||||||
|
|
||||||
The above 3 steps are applied all the way up the parent window
|
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
|
default menubar will be created, the default menubar on Qt/Mac is
|
||||||
an empty menubar, however you can create a different default
|
an empty menubar, however you can create a different default
|
||||||
menubar by creating a parentless QMenuBar, the first one created
|
menubar by creating a parentless QMenuBar, the first one created
|
||||||
|
@ -220,7 +220,7 @@ void PanelStack::hideEvent(QHideEvent * event)
|
|||||||
{
|
{
|
||||||
QWidget::hideEvent(event);
|
QWidget::hideEvent(event);
|
||||||
|
|
||||||
// Programatically hidden (not simply minimized by the user)
|
// Programmatically hidden (not simply minimized by the user)
|
||||||
if (!event->spontaneous()) {
|
if (!event->spontaneous()) {
|
||||||
resetSearch();
|
resetSearch();
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ class LyXRC;
|
|||||||
namespace frontend {
|
namespace frontend {
|
||||||
|
|
||||||
/** A class to ascertain whether the data passed to the @c validate()
|
/** 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
|
class LengthValidator : public QValidator
|
||||||
{
|
{
|
||||||
@ -85,7 +85,7 @@ LengthValidator * unsignedGlueLengthValidator(QLineEdit *);
|
|||||||
|
|
||||||
|
|
||||||
/** A class to ascertain whether the data passed to the @c validate()
|
/** 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
|
class LengthAutoValidator : public LengthValidator
|
||||||
{
|
{
|
||||||
|
@ -430,7 +430,7 @@ QString makeAbsPath(QString const & relpath, QString const & base)
|
|||||||
|
|
||||||
/** Given a string such as
|
/** Given a string such as
|
||||||
* "<glob> <glob> ... *.{abc,def} <glob>",
|
* "<glob> <glob> ... *.{abc,def} <glob>",
|
||||||
* convert the csh-style brace expresions:
|
* convert the csh-style brace expressions:
|
||||||
* "<glob> <glob> ... *.abc *.def <glob>".
|
* "<glob> <glob> ... *.abc *.def <glob>".
|
||||||
* Requires no system support, so should work equally on Unix, Mac, Win32.
|
* Requires no system support, so should work equally on Unix, Mac, Win32.
|
||||||
*/
|
*/
|
||||||
|
@ -163,7 +163,7 @@ QString browseRelToSub(QString const & filename,
|
|||||||
QString const & label2 = QString(),
|
QString const & label2 = QString(),
|
||||||
QString const & dir2 = 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.
|
* kpsewhich and an external script, saved in *Files.lst.
|
||||||
* \param arg: cls, sty, bst, or bib, as required by TeXFiles.py.
|
* \param arg: cls, sty, bst, or bib, as required by TeXFiles.py.
|
||||||
* Can be a list of these, too.
|
* Can be a list of these, too.
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<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>
|
||||||
<property name="editable">
|
<property name="editable">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
@ -84,7 +84,7 @@
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<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>
|
||||||
<property name="editable">
|
<property name="editable">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
@ -1310,7 +1310,7 @@ void parse_box(Parser & p, ostream & os, unsigned outer_flags,
|
|||||||
os << "use_makebox " << (inner_type == "makebox") << '\n';
|
os << "use_makebox " << (inner_type == "makebox") << '\n';
|
||||||
if (outer_type == "mbox" || (outer_type == "fbox" && inner_type.empty()))
|
if (outer_type == "mbox" || (outer_type == "fbox" && inner_type.empty()))
|
||||||
os << "width \"\"\n";
|
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, '\\'))
|
else if (contains(width_unit, '\\'))
|
||||||
os << "width \"" << width_value << "in" << "\"\n";
|
os << "width \"" << width_value << "in" << "\"\n";
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user