4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Angus Leeming
11 * Full author contact details are available in file CREDITS.
20 class ButtonController;
24 /** \c BCView is the View to ButtonController's Controller. It
25 * stores the individual GUI widgets and sets their activation state
26 * upon receipt of instructions from the controller.
28 * It is a base class. The true, GUI, instantiations derive from it.
33 BCView(ButtonController & p) : parent(p) {}
37 /// Refresh the status of the Ok, Apply, Restore, Cancel buttons.
38 virtual void refresh() const = 0;
39 /// Refresh the status of any widgets in the read_only list
40 virtual void refreshReadOnly() const = 0;
43 /// A shortcut to the BP of the BC.
44 ButtonPolicy const & bp() const;
47 ButtonController & parent;
51 } // namespace frontend