]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/FormCopyright.C
ws cleanup
[lyx.git] / src / frontends / gnome / FormCopyright.C
1 /* This file is part of
2  * =================================================
3  *
4  *          LyX, The Document Processor
5  *          Copyright 1995-2000 The LyX Team.
6  *
7  * =================================================
8  *
9  * \author Michael Koziarski <michael@koziarski.org>
10  */
11
12 #ifdef __GNUG__
13 #pragma implementation
14 #endif
15
16 #include <config.h>
17
18 #include "debug.h"
19
20 #include "gnomeBC.h"
21 #include "FormCopyright.h"
22 #include "gnome_helpers.h"
23
24 #include <gtk--/button.h>
25 #include <gtk--/label.h>
26
27
28 FormCopyright::FormCopyright(ControlCopyright & c)
29         : FormCB<ControlCopyright>(c, "diahelpcopyright.glade", "DiaHelpCopyright")
30 {
31 }
32
33
34 void FormCopyright::build()
35 {
36         ok()->clicked.connect(SigC::slot(this, &FormCopyright::CancelClicked));
37         copyright()->set(controller().getCopyright());
38         license()->set(controller().getLicence());
39         disclaimer()->set(controller().getDisclaimer());
40 }
41
42
43 Gtk::Button * FormCopyright::ok()
44 {
45         return getWidget<Gtk::Button>("copyright_button_ok");
46 }
47
48 Gtk::Label * FormCopyright::disclaimer()
49 {
50         return getWidget<Gtk::Label>("copyright_disclaimer");
51 }
52
53 Gtk::Label * FormCopyright::copyright()
54 {
55         return getWidget<Gtk::Label>("copyright_copyright");
56 }
57
58 Gtk::Label * FormCopyright::license()
59 {
60         return getWidget<Gtk::Label>("copyright_license");
61 }