Buffer::getAutosaveFilename -> Buffer::getAutosaveFileName

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34243 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2010-04-21 01:19:33 +00:00
parent bb59d0fd0a
commit 88635c7e77
3 changed files with 8 additions and 8 deletions

View File

@ -3141,7 +3141,7 @@ int AutoSaveBuffer::generateChild()
} // namespace anon
FileName Buffer::getAutosaveFilename() const
FileName Buffer::getAutosaveFileName() const
{
// if the document is unnamed try to save in the backup dir, else
// in the default document path, and as a last try in the filePath,
@ -3160,7 +3160,7 @@ FileName Buffer::getAutosaveFilename() const
void Buffer::removeAutosaveFile() const
{
FileName const f = getAutosaveFilename();
FileName const f = getAutosaveFileName();
if (f.exists())
f.removeFile();
}
@ -3168,7 +3168,7 @@ void Buffer::removeAutosaveFile() const
void Buffer::moveAutosaveFile(support::FileName const & oldauto) const
{
FileName const newauto = getAutosaveFilename();
FileName const newauto = getAutosaveFileName();
oldauto.refresh();
if (newauto != oldauto && oldauto.exists())
if (!oldauto.moveTo(newauto))
@ -3187,7 +3187,7 @@ void Buffer::autoSave() const
// emit message signal.
message(_("Autosaving current document..."));
AutoSaveBuffer autosave(*this, getAutosaveFilename());
AutoSaveBuffer autosave(*this, getAutosaveFileName());
autosave.start();
d->bak_clean = true;

View File

@ -504,7 +504,7 @@ public:
///
void moveAutosaveFile(support::FileName const & old) const;
///
support::FileName getAutosaveFilename() const;
support::FileName getAutosaveFileName() const;
/// return the format of the buffer on a string
std::string bufferFormat() const;

View File

@ -1365,7 +1365,7 @@ void GuiView::autoSave()
#if (QT_VERSION >= 0x040400)
GuiViewPrivate::busyBuffers.insert(buffer);
QFuture<docstring> f = QtConcurrent::run(GuiViewPrivate::saveAndDestroy, buffer, buffer->clone(),
buffer->getAutosaveFilename());
buffer->getAutosaveFileName());
d.autosave_watcher_.setFuture(f);
#else
buffer->autoSave();
@ -2128,7 +2128,7 @@ bool GuiView::renameBuffer(Buffer & b, docstring const & newname)
}
}
FileName oldauto = b.getAutosaveFilename();
FileName oldauto = b.getAutosaveFileName();
// Ok, change the name of the buffer
b.setFileName(fname.absFileName());
@ -2141,7 +2141,7 @@ bool GuiView::renameBuffer(Buffer & b, docstring const & newname)
b.moveAutosaveFile(oldauto);
if (!saveBuffer(b)) {
oldauto = b.getAutosaveFilename();
oldauto = b.getAutosaveFileName();
b.setFileName(oldname.absFileName());
b.setUnnamed(unnamed);
b.saveCheckSum(oldname);