3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS.
14 #include "ButtonController.h"
17 CheckedWidget::~CheckedWidget()
21 BCView::BCView(ButtonController const & p)
26 ButtonPolicy & BCView::bp() const
32 void BCView::addCheckedWidget(CheckedWidget * ptr)
35 checked_widgets.push_back(checked_widget_ptr(ptr));
39 bool BCView::checkWidgets() const
43 checked_widget_list::const_iterator it = checked_widgets.begin();
44 checked_widget_list::const_iterator end = checked_widgets.end();
46 for (; it != end; ++it) {
47 valid &= (*it)->check();
50 // return valid status after checking ALL widgets