]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/FormCopyright.C
implement getLabelList
[lyx.git] / src / frontends / gnome / FormCopyright.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 "debug.h"
20
21 #include "gnomeBC.h"
22 #include "FormCopyright.h"
23 #include "gnome_helpers.h"
24
25 #include <gtk--/button.h>
26 #include <gtk--/label.h>
27
28
29 FormCopyright::FormCopyright(ControlCopyright & c)
30         : FormCB<ControlCopyright>(c, "diahelpcopyright.glade", "DiaHelpCopyright")
31 {
32 }
33
34
35 void FormCopyright::build()
36 {
37         ok()->clicked.connect(SigC::slot(this, &FormCopyright::CancelClicked));
38         copyright()->set(controller().getCopyright());
39         license()->set(controller().getLicence());
40         disclaimer()->set(controller().getDisclaimer());
41 }
42
43
44 Gtk::Button * FormCopyright::ok()
45 {
46         return getWidget<Gtk::Button>("copyright_button_ok");
47 }
48
49 Gtk::Label * FormCopyright::disclaimer()
50 {
51         return getWidget<Gtk::Label>("copyright_disclaimer");
52 }
53
54 Gtk::Label * FormCopyright::copyright()
55 {
56         return getWidget<Gtk::Label>("copyright_copyright");
57 }
58
59 Gtk::Label * FormCopyright::license()
60 {
61         return getWidget<Gtk::Label>("copyright_license");
62 }