mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
PDF options: reflect in UI mutually exclusive colorlinks and frames.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg222961.html
This commit is contained in:
parent
63dbd54e62
commit
601abfe929
@ -1784,6 +1784,8 @@ GuiDocument::GuiDocument(GuiView & lv)
|
||||
this, SLOT(change_adaptor()));
|
||||
connect(pdfSupportModule->pdfborderCB, SIGNAL(toggled(bool)),
|
||||
this, SLOT(change_adaptor()));
|
||||
connect(pdfSupportModule->colorlinksCB, SIGNAL(toggled(bool)),
|
||||
this, SLOT(colorlinksCB_adaptor(bool)));
|
||||
connect(pdfSupportModule->colorlinksCB, SIGNAL(toggled(bool)),
|
||||
this, SLOT(change_adaptor()));
|
||||
connect(pdfSupportModule->backrefCO, SIGNAL(activated(int)),
|
||||
@ -3152,6 +3154,12 @@ void GuiDocument::classChanged_adaptor()
|
||||
}
|
||||
|
||||
|
||||
void GuiDocument::colorlinksCB_adaptor(bool enabled)
|
||||
{
|
||||
pdfSupportModule->pdfborderCB->setEnabled(!enabled);
|
||||
}
|
||||
|
||||
|
||||
void GuiDocument::classChanged()
|
||||
{
|
||||
int idx = latexModule->classCO->currentIndex();
|
||||
@ -4879,6 +4887,10 @@ void GuiDocument::paramsToDialog()
|
||||
pdfSupportModule->pdfusetitleCB->setChecked(pdf.pdfusetitle);
|
||||
pdfSupportModule->colorlinksCB->setChecked(pdf.colorlinks);
|
||||
|
||||
//hyperref considers colorlinks to be mutually exlusive to borders
|
||||
//for workaround see manuals
|
||||
pdfSupportModule->pdfborderCB->setEnabled(!pdf.colorlinks);
|
||||
|
||||
nn = findToken(backref_opts, pdf.backref);
|
||||
if (nn >= 0)
|
||||
pdfSupportModule->backrefCO->setCurrentIndex(nn);
|
||||
|
@ -146,6 +146,7 @@ private Q_SLOTS:
|
||||
void browseMaster();
|
||||
void classChanged();
|
||||
void classChanged_adaptor();
|
||||
void colorlinksCB_adaptor(bool);
|
||||
void languagePackageChanged(int);
|
||||
void biblioChanged();
|
||||
void rescanBibFiles();
|
||||
|
@ -281,6 +281,9 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="colorlinksCB">
|
||||
<property name="toolTip">
|
||||
<string>Mutually exclusive with frames around links, see manual.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>C&olor links</string>
|
||||
</property>
|
||||
|
Loading…
Reference in New Issue
Block a user