X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FxformsBC.h;h=085ca7174a378aeac3034b84374a4b7ede80761b;hb=37e82a546392d43f787826b85481a11f2a27af15;hp=21c5ac831c852ba5c38a43b4bbd1c42f34cbf3ec;hpb=b8105d810fc2c14ff8566cbc3c689be00d1c0f06;p=lyx.git diff --git a/src/frontends/xforms/xformsBC.h b/src/frontends/xforms/xformsBC.h index 21c5ac831c..085ca7174a 100644 --- a/src/frontends/xforms/xformsBC.h +++ b/src/frontends/xforms/xformsBC.h @@ -1,45 +1,45 @@ // -*- C++ -*- -/* This file is part of - * ====================================================== - * - * LyX, The Document Processor - * - * Copyright 2001 The LyX Team. +/** + * \file xformsBC.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * ====================================================== + * \author Allan Rae + * \author Angus Leeming + * \author Baruch Even * - * \file xformsBC.h - * \author Allan Rae, rae@lyx.org - * \author Angus Leeming, a.leeming@ic.ac.uk - * \author Baruch Even, baruch.even@writeme.com + * Full author contact details are available in file CREDITS. */ #ifndef XFORMSBC_H #define XFORMSBC_H -#include FORMS_H_LOCATION +#include "forms_fwd.h" -#ifdef __GNUG__ -#pragma interface -#endif +#include "BCView.h" +#include "gettext.h" -#include "ButtonController.h" +namespace lyx { +namespace frontend { -class xformsBC : public GuiBC -{ +class xformsBC : public GuiBC { public: /// - xformsBC(string const &, string const &); + xformsBC(ButtonController const &, + std::string const & = _("Cancel"), std::string const & = _("Close")); private: /// Updates the button sensitivity (enabled/disabled) - void setButtonEnabled(FL_OBJECT *, bool enabled); + void setButtonEnabled(FL_OBJECT *, bool enabled) const; /// Updates the widget sensitivity (enabled/disabled) - void setWidgetEnabled(FL_OBJECT *, bool enabled); + void setWidgetEnabled(FL_OBJECT *, bool enabled) const; /// Set the label on the button - void setButtonLabel(FL_OBJECT *, string const & label); + void setButtonLabel(FL_OBJECT *, std::string const & label) const; }; +} // namespace frontend +} // namespace lyx + #endif // XFORMSBC_H