mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
0be0fcfd59
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7598 a592a061-630c-0410-9148-cb99ea01b6c8
55 lines
1.0 KiB
C
55 lines
1.0 KiB
C
/**
|
|
* \file GError.C
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Michael Koziarski
|
|
* \author Baruch Even
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
|
|
#include <config.h>
|
|
|
|
#include "gnomeBC.h"
|
|
#include "GError.h"
|
|
|
|
#include <gtkmm/button.h>
|
|
#include <gtkmm/textview.h>
|
|
|
|
GErrorDialog::GErrorDialog()
|
|
: GControlledView<ControlError>("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<Gtk::Button>("r_button_close");
|
|
}
|
|
|
|
Gtk::TextView * GErrorDialog::textarea() const
|
|
{
|
|
return getWidget<Gtk::TextView>("r_textarea");
|
|
}
|