]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/FormCredits.C
Remove unneeded files, we have switched to use the libglade and there is no
[lyx.git] / src / frontends / gnome / FormCredits.C
1 // -*- C++ -*-
2 /* This file is part of
3  * =================================================
4  * 
5  *          LyX, The Document Processor
6  *          Copyright 1995-2000 The LyX Team.
7  *
8  * ================================================= 
9  *
10  * \author Michael Koziarski <michael@koziarski.org>
11  */
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include <config.h>
18
19 #include "gnomeBC.h"
20 #include "FormCredits.h"
21
22 #include <gtk--/button.h>
23 #include <gtk--/text.h>
24
25 FormCredits::FormCredits(ControlCredits & c)
26         : FormCB<ControlCredits>(c, "diahelpcredits.glade", "DiaHelpCredits")
27 {
28 }
29
30
31 void FormCredits::build()
32 {
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));
36
37         std::stringstream ss;
38         text()->insert(controller().getCredits(ss).str());
39 }
40
41
42 Gtk::Text * FormCredits::text()
43 {
44         return getWidget<Gtk::Text>("credits_text");
45 }
46
47 Gtk::Button * FormCredits::ok()
48 {
49         return getWidget<Gtk::Button>("credits_button_ok");
50 }