mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +00:00
fix Q include dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5599 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b355feb630
commit
a23766d245
@ -1,3 +1,8 @@
|
||||
2002-11-07 John Levon <levon@movementarian.org>
|
||||
|
||||
* ui/QIncludeDialog.ui:
|
||||
* QInclude.C: fix setting of combobox
|
||||
|
||||
2002-11-07 John Levon <levon@movementarian.org>
|
||||
|
||||
* ui/QPref*: add initial prefs ui from Juergen S
|
||||
|
@ -56,19 +56,25 @@ void QInclude::update_contents()
|
||||
|
||||
dialog_->filenameED->setText(params.cparams.getContents().c_str());
|
||||
|
||||
string const & cmdname = params.cparams.getCmdName();
|
||||
|
||||
dialog_->visiblespaceCB->setChecked(false);
|
||||
dialog_->visiblespaceCB->setEnabled(false);
|
||||
|
||||
if (cmdname == "input")
|
||||
dialog_->typeCO->setCurrentItem(0);
|
||||
else if (!cmdname.empty()) {
|
||||
dialog_->typeCO->setCurrentItem(2);
|
||||
dialog_->visiblespaceCB->setChecked(cmdname == "verbatiminput*");
|
||||
dialog_->visiblespaceCB->setEnabled(true);
|
||||
} else {
|
||||
dialog_->typeCO->setCurrentItem(1);
|
||||
switch (params.flag) {
|
||||
case InsetInclude::INPUT:
|
||||
dialog_->typeCO->setCurrentItem(0);
|
||||
break;
|
||||
|
||||
case InsetInclude::INCLUDE:
|
||||
dialog_->typeCO->setCurrentItem(1);
|
||||
break;
|
||||
|
||||
case InsetInclude::VERBAST:
|
||||
dialog_->visiblespaceCB->setChecked(true);
|
||||
/* fall through */
|
||||
case InsetInclude::VERB:
|
||||
dialog_->typeCO->setCurrentItem(2);
|
||||
dialog_->visiblespaceCB->setEnabled(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -310,6 +310,12 @@
|
||||
<receiver>QIncludeDialogBase</receiver>
|
||||
<slot>browseClicked()</slot>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>typeCO</sender>
|
||||
<signal>activated(int)</signal>
|
||||
<receiver>QIncludeDialogBase</receiver>
|
||||
<slot>change_adaptor()</slot>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>typeCO</sender>
|
||||
<signal>activated(int)</signal>
|
||||
|
Loading…
Reference in New Issue
Block a user