]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GBC.h
Change glob() API to accept a dir parameter.
[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 "ButtonController.h"
16 #include "BCView.h"
17 #include "gettext.h"
18
19 #include <gtkmm.h>
20
21 namespace lyx {
22 namespace frontend {
23
24 class GBC : public GuiBC<Gtk::Button, Gtk::Widget> {
25 public:
26         GBC(ButtonController const & parent,
27             std::string const & cancel = _("Cancel"),
28             std::string const & close = _("Close"));
29 private:
30         /// Updates the button sensitivity (enabled/disabled)
31         void setButtonEnabled(Gtk::Button *, bool enabled) const;
32
33         /// Updates the widget sensitivity (enabled/disabled)
34         void setWidgetEnabled(Gtk::Widget *, bool enabled) const;
35
36         /// Set the label on the button
37         void setButtonLabel(Gtk::Button *, std::string const & label) const;
38 };
39
40 } // namespace frontend
41 } // namespace lyx
42
43 #endif