Show the template description when opening the External dialog.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7137 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-06-10 11:00:53 +00:00
parent 81f5788a20
commit d92b3fd67c
4 changed files with 15 additions and 8 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -64,7 +64,7 @@ void QExternal::update_contents()
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) {

View File

@ -1,3 +1,8 @@
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

View File

@ -152,11 +152,6 @@ ButtonPolicy::SMInput FormExternal::input(FL_OBJECT * ob, long)
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) {
@ -175,9 +170,11 @@ ButtonPolicy::SMInput FormExternal::input(FL_OBJECT * ob, long)
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);
}