]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/gnomeBC.h
Joao latest bits
[lyx.git] / src / frontends / gnome / gnomeBC.h
1 // -*- C++ -*-
2 /**
3  * \file gnomeBC.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Baruch Even
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GNOMEBC_H
13 #define GNOMEBC_H
14
15
16 #include "ButtonController.h"
17
18 namespace Gtk {
19 class Button;
20 class Widget;
21 };
22
23 class gnomeBC : public GuiBC<Gtk::Button, Gtk::Widget>
24 {
25 public:
26         ///
27         gnomeBC(string const & cancel, string const & close);
28
29 private:
30         /// Updates the button sensitivity (enabled/disabled)
31         void setButtonEnabled(Gtk::Button * btn, bool enabled);
32
33         /// Updates the widget sensitivity (enabled/disabled)
34         void setWidgetEnabled(Gtk::Widget * obj, bool enabled);
35
36         /// Set the label on the button
37         void setButtonLabel(Gtk::Button * btn, string const & label);
38 };
39
40 #endif // GNOMEBC_H