mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
5fd921e9e6
Dialogs.h: remove static from redrawGUI and toggleTooltips. And changes because of this. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4517 a592a061-630c-0410-9148-cb99ea01b6c8
44 lines
856 B
C
44 lines
856 B
C
/*
|
|
* \file FormError.C
|
|
* Copyright 2000-2001 The LyX Team.
|
|
* See the file COPYING.
|
|
*
|
|
* \author Angus Leeming, a.leeming@ic.ac.uk
|
|
*/
|
|
|
|
#ifdef __GNUG__
|
|
#pragma implementation
|
|
#endif
|
|
|
|
#include <config.h>
|
|
|
|
#include "xformsBC.h"
|
|
#include "ControlError.h"
|
|
#include "FormError.h"
|
|
#include "forms/form_error.h"
|
|
#include "xforms_helpers.h" // formatted
|
|
#include FORMS_H_LOCATION
|
|
|
|
typedef FormCB<ControlError, FormDB<FD_error> > base_class;
|
|
|
|
FormError::FormError(ControlError & c, Dialogs & d)
|
|
: base_class(c, d, _("LaTeX Error"))
|
|
{}
|
|
|
|
|
|
void FormError::build()
|
|
{
|
|
dialog_.reset(build_error(this));
|
|
|
|
// Manage the cancel/close button
|
|
bc().setCancel(dialog_->button_close);
|
|
}
|
|
|
|
|
|
void FormError::update()
|
|
{
|
|
string const txt = formatted(controller().params(),
|
|
dialog_->frame_message->w - 10);
|
|
fl_set_object_label(dialog_->frame_message, txt.c_str());
|
|
}
|