3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 // Too hard to make concept checks work with this file
14 #ifdef _GLIBCXX_CONCEPT_CHECKS
15 #undef _GLIBCXX_CONCEPT_CHECKS
17 #ifdef _GLIBCPP_CONCEPT_CHECKS
18 #undef _GLIBCPP_CONCEPT_CHECKS
22 #include "ControlLog.h"
33 GLog::GLog(Dialog & parent)
34 : GViewCB<ControlLog, GViewGladeB>(parent, lyx::to_utf8(_("Log Viewer")), false)
40 string const gladeName = findGladeFile("log");
41 xml_ = Gnome::Glade::Xml::create(gladeName);
44 xml_->get_widget("Close", button);
47 xml_->get_widget("Refresh", button);
48 button->signal_clicked().connect(
49 sigc::mem_fun(*this, &GLog::update));
51 Gtk::TextView * contentview;
52 xml_->get_widget("ContentView", contentview);
53 contentbuffer_ = contentview->get_buffer();
59 string const title = controller().title();
64 std::ostringstream contents;
65 controller().getContents(contents);
67 if (!contents.str().empty())
68 contentbuffer_->set_text(contents.str());
70 contentbuffer_->set_text(lyx::to_utf8(_("Error reading file!")));
73 } // namespace frontend