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:
John Levon 2002-11-07 22:15:53 +00:00
parent b355feb630
commit a23766d245
3 changed files with 27 additions and 10 deletions

View File

@ -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

View File

@ -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;
}
}

View File

@ -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>