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 <gnome--/dialog.h>
23 #include <gtk--/button.h>
24 #include <gtk--/text.h>
26 FormCredits::FormCredits(ControlCredits & c)
27 : FormCB<ControlCredits>(c, "diahelpcredits.glade", "DiaHelpCredits")
34 FormCredits::~FormCredits()
40 void FormCredits::build()
44 // It is better to show an OK button, but the policy require that we
45 // got a click on "Cancel"
46 ok()->clicked.connect(SigC::slot(this, &FormCredits::CancelClicked));
49 text()->insert(controller().getCredits(ss).str());
53 void FormCredits::show()
63 void FormCredits::hide()
69 void FormCredits::apply()
74 void FormCredits::update()
79 Gnome::Dialog * FormCredits::dialog()
81 return getWidget<Gnome::Dialog>("DiaHelpCredits");
84 Gtk::Text * FormCredits::text()
86 return getWidget<Gtk::Text>("credits_text");
89 Gtk::Button * FormCredits::ok()
91 return getWidget<Gtk::Button>("credits_button_ok");