3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Michael Koziarski
8 * Full author contact details are available in file CREDITS
12 #pragma implementation
17 #include "support/lstrings.h"
24 #include <gtkmm/button.h>
25 #include <gtkmm/textview.h>
27 GAbout::GAbout(ControlAboutlyx & c)
28 : GnomeCB<ControlAboutlyx>(c, "GAbout")
38 // Connect the buttons.
39 close_btn()->signal_clicked().connect(SigC::slot(*this, &GAbout::CancelClicked));
41 // Manage the buttons state
42 bc().setCancel(close_btn());
55 cr += controller().getCopyright();
57 cr += controller().getLicense();
59 cr += controller().getDisclaimer();
60 copyright()->get_buffer()->set_text(cr);
64 version()->set_text(controller().getVersion());
67 controller().getCredits(in);
69 istringstream ss(in.str());
75 while (getline(ss, s)) {
77 if (prefixIs(s, "@b"))
79 else if (prefixIs(s, "@i"))
86 credits()->get_buffer()->set_text(out);
91 Gtk::Button * GAbout::close_btn() const
93 return getWidget<Gtk::Button>("r_close_btn");
95 Gtk::Label * GAbout::version() const
97 return getWidget<Gtk::Label>("r_version");
99 Gtk::TextView * GAbout::credits() const
101 return getWidget<Gtk::TextView>("r_credits");
103 Gtk::TextView * GAbout::copyright() const
105 return getWidget<Gtk::TextView>("r_copyright");