1 /* This file is part of
2 * =================================================
4 * LyX, The Document Processor
5 * Copyright 1995-2000 The LyX Team.
7 * =================================================
13 #pragma implementation
19 #include "FormError.h"
21 #include <gtk--/button.h>
22 #include <gtk--/text.h>
24 FormError::FormError(ControlError & c)
25 : FormCB<ControlError>(c, "FormError")
29 void FormError::build()
31 // Connect the buttons.
32 button_close()->clicked.connect(SigC::slot(this, &FormError::CloseClicked));
34 // Manage the buttons state
35 bc().setCancel(button_close());
37 // Make sure everything is in the correct state.
42 void FormError::update()
44 textarea()->insert(controller().params());
47 Gtk::Button * FormError::button_close() const
49 return getWidget<Gtk::Button>("r_button_close");
52 Gtk::Text * FormError::textarea() const
54 return getWidget<Gtk::Text>("r_textarea");