]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/gnomeBC.h
Remove unneeded files, we have switched to use the libglade and there is no
[lyx.git] / src / frontends / gnome / gnomeBC.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 1995-2000 The LyX Team.
8  *
9  * ======================================================
10  *
11  * Author: Baruch Even  <baruch@lyx.org>
12  */
13
14 #ifndef GNOMEBC_H
15 #define GNOMEBC_H
16
17 #include <list>
18
19 #ifdef __GNUG__
20 #pragma interface
21 #endif
22
23 #include "ButtonControllerBase.h"
24 #include "ButtonController.h"
25
26 namespace Gtk {
27 class Button;
28 class Widget;
29 };
30
31 class gnomeBC : public GuiBC<Gtk::Button, Gtk::Widget>
32 {
33 public:
34         ///
35         gnomeBC(string const & cancel, string const & close);
36
37 private:
38         /// Updates the button sensitivity (enabled/disabled)
39         void setButtonEnabled(Gtk::Button * btn, bool enabled);
40
41         /// Updates the widget sensitivity (enabled/disabled)
42         void setWidgetEnabled(Gtk::Widget * obj, bool enabled);
43
44         /// Set the label on the button
45         void setButtonLabel(Gtk::Button * btn, string const & label);
46 };
47
48 #endif // GNOMEBC_H