4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
16 #include "ButtonController.h"
21 /** \c Dialog collects the different parts of a Model-Controller-View
22 * split of a generic dialog together.
24 class GuiDialog : public Dialog
27 /// \param lv is the access point for the dialog to the LyX kernel.
28 /// \param name is the identifier given to the dialog by its parent
30 GuiDialog(LyXView & lv, std::string const & name);
33 * These methods are publicly accessible because they are invoked
34 * by the View when the user presses... guess what ;-)
43 /** Check whether we may apply our data.
45 * The buttons are disabled if not and (re-)enabled if yes.
48 void setButtonsValid(bool valid);
51 /** \name Dialog Components
52 * Methods to access the various components making up a dialog.
55 ButtonController const & bc() const { return bc_; }
56 ButtonController & bc() { return bc_; }
68 } // namespace frontend