mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Add session to citation dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24768 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c5c65daee4
commit
2cf301033e
@ -31,7 +31,9 @@
|
||||
#include "support/lstrings.h"
|
||||
|
||||
#include <QCloseEvent>
|
||||
#include <QSettings>
|
||||
#include <QShowEvent>
|
||||
#include <QVariant>
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
@ -730,6 +732,32 @@ BiblioInfo const & GuiCitation::bibInfo() const
|
||||
}
|
||||
|
||||
|
||||
void GuiCitation::saveSession() const
|
||||
{
|
||||
Dialog::saveSession();
|
||||
QSettings settings;
|
||||
settings.setValue(
|
||||
sessionKey() + "/regex", regexCB->isChecked());
|
||||
settings.setValue(
|
||||
sessionKey() + "/casesensitive", caseCB->isChecked());
|
||||
settings.setValue(
|
||||
sessionKey() + "/autofind", asTypeCB->isChecked());
|
||||
}
|
||||
|
||||
|
||||
void GuiCitation::restoreSession()
|
||||
{
|
||||
Dialog::restoreSession();
|
||||
QSettings settings;
|
||||
regexCB->setChecked(
|
||||
settings.value(sessionKey() + "/regex").toBool());
|
||||
caseCB->setChecked(
|
||||
settings.value(sessionKey() + "/casesensitive").toBool());
|
||||
asTypeCB->setChecked(
|
||||
settings.value(sessionKey() + "/autofind").toBool());
|
||||
}
|
||||
|
||||
|
||||
Dialog * createGuiCitation(GuiView & lv) { return new GuiCitation(lv); }
|
||||
|
||||
|
||||
|
@ -73,6 +73,8 @@ private:
|
||||
void clearParams();
|
||||
void dispatchParams();
|
||||
bool isBufferDependent() const { return true; }
|
||||
void saveSession() const;
|
||||
void restoreSession();
|
||||
/** Disconnect from the inset when the Apply button is pressed.
|
||||
* Allows easy insertion of multiple citations.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user