masterChildModule->childrenTW->setColumnCount(2);
masterChildModule->childrenTW->headerItem()->setText(0, qt_("Child Document"));
masterChildModule->childrenTW->headerItem()->setText(1, qt_("Include to Output"));
- masterChildModule->childrenTW->resizeColumnToContents(1);
- masterChildModule->childrenTW->resizeColumnToContents(2);
-
+#if (QT_VERSION > 0x050000)
+ masterChildModule->childrenTW->header()->setSectionResizeMode(0, QHeaderView::ResizeToContents);
+ masterChildModule->childrenTW->header()->setSectionResizeMode(1, QHeaderView::ResizeToContents);
+#else
+ masterChildModule->childrenTW->header()->setResizeMode(0, QHeaderView::ResizeToContents);
+ masterChildModule->childrenTW->header()->setResizeMode(1, QHeaderView::ResizeToContents);
+#endif
// Formats
outputModule = new UiWidget<Ui::OutputUi>(this);
connect(outputModule->shellescapeCB, SIGNAL(stateChanged(int)),
this, SLOT(shellescapeChanged()));
- connect(outputModule->outputsyncCB, SIGNAL(clicked()),
- this, SLOT(change_adaptor()));
+ connect(outputModule->outputsyncCB, SIGNAL(toggled(bool)),
+ this, SLOT(setOutputSync(bool)));
connect(outputModule->synccustomCB, SIGNAL(editTextChanged(QString)),
this, SLOT(change_adaptor()));
outputModule->synccustomCB->addItem("");
outputModule->synccustomCB));
connect(outputModule->saveTransientPropertiesCB, SIGNAL(clicked()),
- this, SLOT(change_adaptor()));
+ this, SLOT(change_adaptor()));
+ connect(outputModule->postponeFragileCB, SIGNAL(clicked()),
+ this, SLOT(change_adaptor()));
// language & quote
changesModule = new UiWidget<Ui::ChangeTrackingUi>(this);
connect(changesModule->trackChangesCB, SIGNAL(clicked()),
this, SLOT(change_adaptor()));
- connect(changesModule->outputChangesCB, SIGNAL(clicked()),
- this, SLOT(change_adaptor()));
+ connect(changesModule->outputChangesCB, SIGNAL(toggled(bool)),
+ this, SLOT(outputChangesToggled(bool)));
connect(changesModule->changeBarsCB, SIGNAL(clicked()),
this, SLOT(change_adaptor()));
bp_.save_transient_properties =
outputModule->saveTransientPropertiesCB->isChecked();
+ bp_.postpone_fragile_content =
+ outputModule->postponeFragileCB->isChecked();
// fonts
bp_.fonts_roman[nontexfonts] =
outputModule->shellescapeCB->setChecked(bp_.shell_escape);
outputModule->outputsyncCB->setChecked(bp_.output_sync);
outputModule->synccustomCB->setEditText(toqstr(bp_.output_sync_macro));
+ outputModule->synccustomCB->setEnabled(bp_.output_sync);
+ outputModule->synccustomLA->setEnabled(bp_.output_sync);
outputModule->mathimgSB->setValue(bp_.html_math_img_scale);
outputModule->mathoutCB->setCurrentIndex(bp_.html_math_output);
outputModule->saveTransientPropertiesCB
->setChecked(bp_.save_transient_properties);
+ outputModule->postponeFragileCB
+ ->setChecked(bp_.postpone_fragile_content);
// paper
bool const extern_geometry =
changesModule->trackChangesCB->setChecked(bp_.track_changes);
changesModule->outputChangesCB->setChecked(bp_.output_changes);
changesModule->changeBarsCB->setChecked(bp_.change_bars);
+ changesModule->changeBarsCB->setEnabled(bp_.output_changes);
// Make sure that the bc is in the INITIAL state
if (bc().policy().buttonStatus(ButtonPolicy::RESTORE))
}
+void GuiDocument::outputChangesToggled(bool on)
+{
+ changesModule->changeBarsCB->setEnabled(on);
+ change_adaptor();
+}
+
+void GuiDocument::setOutputSync(bool on)
+{
+ outputModule->synccustomCB->setEnabled(on);
+ outputModule->synccustomLA->setEnabled(on);
+ change_adaptor();
+}
+
+
Dialog * createGuiDocument(GuiView & lv) { return new GuiDocument(lv); }