]> git.lyx.org Git - features.git/blob - src/frontends/gtk/GBC.h
Replace LString.h with support/std_string.h,
[features.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 "support/std_string.h"
20 #include "gettext.h"
21
22 class GBC : public GuiBC<Gtk::Button, Gtk::Widget>
23 {
24 public:
25         GBC(ButtonController const & parent,
26             string const & cancel = _("Cancel"),
27             string const & close = _("Close"));
28 private:
29         /// Updates the button sensitivity (enabled/disabled)
30         void setButtonEnabled(Gtk::Button *, bool enabled) const;
31
32         /// Updates the widget sensitivity (enabled/disabled)
33         void setWidgetEnabled(Gtk::Widget *, bool enabled) const;
34
35         /// Set the label on the button
36         void setButtonLabel(Gtk::Button *, string const & label) const;
37 };
38
39 #endif