#include "support/docstream.h"
#include "support/gettext.h"
+#include <QSettings>
#include <QTextCursor>
#include <QTextDocument>
+#include <QVariant>
using namespace std;
}
+void GuiViewSource::saveSession() const
+{
+ Dialog::saveSession();
+ QSettings settings;
+ settings.setValue(
+ sessionKey() + "/fullsource", widget_->viewFullSourceCB->isChecked());
+ settings.setValue(
+ sessionKey() + "/autoupdate", widget_->autoUpdateCB->isChecked());
+}
+
+
+void GuiViewSource::restoreSession()
+{
+ Dialog::restoreSession();
+ QSettings settings;
+ widget_->viewFullSourceCB->setChecked(
+ settings.value(sessionKey() + "/fullsource").toBool());
+ widget_->autoUpdateCB->setChecked(
+ settings.value(sessionKey() + "/autoupdate").toBool());
+}
+
+
Dialog * createGuiViewSource(GuiView & lv)
{
return new GuiViewSource(lv);
bool canApplyToReadOnly() const { return true; }
void updateView();
void enableView(bool enable);
+ void saveSession() const;
+ void restoreSession();
///@}
/// The title displayed by the dialog reflects source type.