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, "diaerror.glade", "DiaError")
29 void FormError::build()
31 // Connect the buttons.
32 close_btn()->clicked.connect(SigC::slot(this, &FormError::CloseClicked));
34 // Manage the buttons state
35 bc().setCancel(close_btn());
37 // Make sure everything is in the correct state.
42 void FormError::update()
44 textarea()->insert(controller().params());
48 Gtk::Button * FormError::close_btn() const
50 return getWidget<Gtk::Button>("button_close");
54 Gtk::Text * FormError::textarea() const
56 return getWidget<Gtk::Text>("textarea");