2 /* This file is part of
3 * =================================================
5 * LyX, The Document Processor
6 * Copyright 1995-2000 The LyX Team.
8 * =================================================
10 * \author Michael Koziarski <michael@koziarski.org>
14 #pragma implementation
20 #include "FormCredits.h"
22 #include <gtk--/button.h>
23 #include <gtk--/text.h>
25 FormCredits::FormCredits(ControlCredits & c)
26 : FormCB<ControlCredits>(c, "diahelpcredits.glade", "DiaHelpCredits")
31 void FormCredits::build()
33 // It is better to show an OK button, but the policy require that we
34 // get a click on "Cancel"
35 ok()->clicked.connect(SigC::slot(this, &FormCredits::CancelClicked));
38 text()->insert(controller().getCredits(ss).str());
42 Gtk::Text * FormCredits::text()
44 return getWidget<Gtk::Text>("credits_text");
47 Gtk::Button * FormCredits::ok()
49 return getWidget<Gtk::Button>("credits_button_ok");