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