+2003-06-10 Angus Leeming <leeming@lyx.org>
+
+ * QExternal.C (update_contents): show the help text when the dialog is
+ opened.
+
2003-06-06 John Levon <levon@movementarian.org>
* ui/QExternalDialogBase.ui: re-org
dialog_->fileED->setText(toqstr(params.filename));
dialog_->externalCO->setCurrentItem(controller().getTemplateNumber(params.templ.lyxName));
- dialog_->externalTV->setText(toqstr(params.templ.helpText));
+ dialog_->externalTV->setText(toqstr(helpText()));
int item = 0;
switch (params.display) {
+2003-06-10 Angus Leeming <leeming@lyx.org>
+
+ * FormExternal.C (input, updateComboChange):
+ show the correct help text when the dialog is opened.
+
2003-06-04 Angus Leeming <leeming@lyx.org>
* FormExternal.C
if (ob == dialog_->choice_template) {
// set to the chosen template
- int const choice = fl_get_choice(dialog_->choice_template) - 1;
- InsetExternal::Params params = controller().params();
- params.templ = controller().getTemplate(choice);
- controller().setParams(params);
-
updateComboChange();
} else if (ob == dialog_->button_browse) {
void FormExternal::updateComboChange()
{
+ int const choice = fl_get_choice(dialog_->choice_template) - 1;
+ ExternalTemplate templ = controller().getTemplate(choice);
+
// Update the help text
fl_clear_browser(dialog_->browser_helptext);
- fl_addto_browser(dialog_->browser_helptext,
- controller().params().templ.helpText.c_str());
+ fl_addto_browser(dialog_->browser_helptext, templ.helpText.c_str());
fl_set_browser_topline(dialog_->browser_helptext, 0);
}