]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GError.C
(John): translate dialog titles.
[lyx.git] / src / frontends / gnome / GError.C
1 /* This file is part of
2  * =================================================
3  * 
4  *          LyX, The Document Processor
5  *          Copyright 1995-2000 The LyX Team.
6  *
7  * ================================================= 
8  *
9  * \author Michael Koziarski
10  * \author Baruch Even
11  */
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include <config.h>
18
19 #include "gnomeBC.h"
20 #include "GError.h"
21
22 #include <gtk--/button.h>
23 #include <gtk--/text.h>
24
25 GError::GError(ControlError & c)
26         : FormCB<ControlError>(c, "GError")
27 {}
28
29
30 void GError::build()
31 {
32         // Connect the buttons.
33         button_close()->clicked.connect(SigC::slot(this, &GError::CloseClicked));
34
35         // Manage the buttons state
36         bc().setCancel(button_close());
37
38         // Make sure everything is in the correct state.
39         bc().refresh();
40 }
41
42
43 void GError::update()
44 {
45         textarea()->insert(controller().params());
46 }
47
48 Gtk::Button * GError::button_close() const 
49 {
50         return getWidget<Gtk::Button>("r_button_close");
51 }
52
53 Gtk::Text * GError::textarea() const 
54 {
55         return getWidget<Gtk::Text>("r_textarea");
56 }