#include <AutoSaver.h>
Public Slots | |
void | renameFile (QString dirName, QString file, QString tmpFile) |
Public Member Functions | |
void | setCompressed (bool on) |
void | setTimeout (int ms) |
Static Public Member Functions | |
static AutoSaver * | instance () |
Protected Member Functions | |
void | saveDocument (const std::string &, AutoSaveProperty &) |
void | slotCreateDocument (const App::Document &Doc) |
void | slotDeleteDocument (const App::Document &Doc) |
void | timerEvent (QTimerEvent *event) |
The class AutoSaver is used to automatically save a document to a temporary file.
|
static |
|
slot |
|
protected |
References Base::Console(), Gui::AutoSaveProperty::dirName, Base::StopWatch::elapsed(), App::GetApplication(), ParameterGrp::GetBool(), App::Application::getDocument(), Gui::getMainWindow(), App::Application::GetParameterGroupByPath(), Base::ConsoleSingleton::Log(), App::Document::PartialDoc, Base::FileWriter::putNextEntry(), Base::ZipWriter::putNextEntry(), OfflineRenderingUtils::save(), ParameterGrp::SetBool(), Base::ZipWriter::setComment(), Base::ZipWriter::setLevel(), Base::Writer::setMode(), Gui::MainWindow::showMessage(), Base::StopWatch::start(), App::Document::TempDoc, Base::StopWatch::toString(), Gui::AutoSaveProperty::touched, Base::ZipWriter::writeFiles(), and Gui::RecoveryWriter::writeFiles().
Referenced by timerEvent().
void AutoSaver::setCompressed | ( | bool | on | ) |
Enables or disables to create compreesed recovery files.
Referenced by Gui::Application::runApplication().
void AutoSaver::setTimeout | ( | int | ms | ) |
Sets the timeout in milliseconds. A value of 0 means that no timer is used.
Referenced by Gui::Application::runApplication(), and Gui::Dialog::DlgSettingsDocumentImp::saveSettings().
|
protected |
|
protected |
References App::Document::getName().
|
protected |
References Base::Console(), Base::ConsoleSingleton::Error(), and saveDocument().