2 /* This file is part of
3 * =================================================
5 * LyX, The Document Processor
6 * Copyright 1995-2000 The LyX Team.
8 * =================================================
14 #pragma implementation
20 #include "FormError.h"
22 #include <gtk--/button.h>
23 #include <gtk--/text.h>
25 FormError::FormError(ControlError & c)
26 : FormCB<ControlError>(c, "diaerror.glade", "DiaError")
30 void FormError::build()
32 // Connect the buttons.
33 close_btn()->clicked.connect(SigC::slot(this, &FormError::CloseClicked));
35 // Manage the buttons state
36 bc().setCancel(close_btn());
38 // Make sure everything is in the correct state.
43 void FormError::update()
45 textarea()->insert(controller().params());
49 Gtk::Button * FormError::close_btn() const
51 return getWidget<Gtk::Button>("button_close");
55 Gtk::Text * FormError::textarea() const
57 return getWidget<Gtk::Text>("textarea");