]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GBC.h
Minipage is no more (long live the box inset)
[lyx.git] / src / frontends / gtk / GBC.h
1 // -*- C++ -*-
2 /**
3  * \file GBC.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Huang Ying
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GBUTTONCONTROLLER_H
13 #define GBUTTONCONTROLLER_H
14
15 #include <gtkmm.h>
16
17 #include "ButtonController.h"
18 #include "BCView.h"
19 #include "gettext.h"
20
21 class GBC : public GuiBC<Gtk::Button, Gtk::Widget>
22 {
23 public:
24         GBC(ButtonController const & parent,
25             std::string const & cancel = _("Cancel"),
26             std::string const & close = _("Close"));
27 private:
28         /// Updates the button sensitivity (enabled/disabled)
29         void setButtonEnabled(Gtk::Button *, bool enabled) const;
30
31         /// Updates the widget sensitivity (enabled/disabled)
32         void setWidgetEnabled(Gtk::Widget *, bool enabled) const;
33
34         /// Set the label on the button
35         void setButtonLabel(Gtk::Button *, std::string const & label) const;
36 };
37
38 #endif