/* This file is part of * ================================================= * * LyX, The Document Processor * Copyright 1995-2000 The LyX Team. * * ================================================= * * \author Michael Koziarski * \author Baruch Even */ #ifdef __GNUG__ #pragma implementation #endif #include #include "gnomeBC.h" #include "GError.h" #include #include GErrorDialog::GErrorDialog(ControlError & c) : FormCB(c, "GError") {} void GErrorDialog::build() { // Connect the buttons. button_close()->signal_clicked().connect( SigC::slot(*this, &GErrorDialog::CloseClicked) ); // Manage the buttons state bc().setCancel(button_close()); // Make sure everything is in the correct state. bc().refresh(); } void GErrorDialog::update() { textarea()->get_buffer()->set_text(controller().params()); } Gtk::Button * GErrorDialog::button_close() const { return getWidget("r_button_close"); } Gtk::TextView * GErrorDialog::textarea() const { return getWidget("r_textarea"); }