]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/gnomeBC.h
ws changes
[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 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "ButtonController.h"
20
21 namespace Gtk {
22 class Button;
23 class Widget;
24 };
25
26 class gnomeBC : public GuiBC<Gtk::Button, Gtk::Widget>
27 {
28 public:
29         ///
30         gnomeBC(string const & cancel, string const & close);
31
32 private:
33         /// Updates the button sensitivity (enabled/disabled)
34         void setButtonEnabled(Gtk::Button * btn, bool enabled);
35
36         /// Updates the widget sensitivity (enabled/disabled)
37         void setWidgetEnabled(Gtk::Widget * obj, bool enabled);
38
39         /// Set the label on the button
40         void setButtonLabel(Gtk::Button * btn, string const & label);
41 };
42
43 #endif // GNOMEBC_H