]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormCopyright.C
FormBase extends its reach into the codebase and gains a ButtonController
[lyx.git] / src / frontends / xforms / FormCopyright.C
1 /* FormCopyright.C
2  * FormCopyright Interface Class Implementation
3  */
4
5 #include <config.h>
6
7 #include FORMS_H_LOCATION
8
9 #ifdef __GNUG__
10 #pragma implementation
11 #endif
12
13 #include "Dialogs.h"
14 #include "LyXView.h"
15 #include "form_copyright.h"
16 #include "FormCopyright.h"
17
18 FormCopyright::FormCopyright( LyXView * lv, Dialogs * d )
19         : FormBase( lv, d, BUFFER_INDEPENDENT, _("Copyright and Warranty") ),
20           dialog_(0)
21 {
22         // let the dialog be shown
23         // This is a permanent connection so we won't bother
24         // storing a copy because we won't be disconnecting.
25         d->showCopyright.connect(slot(this, &FormCopyright::show));
26 }
27
28
29 FormCopyright::~FormCopyright()
30 {
31         delete dialog_;
32 }
33
34
35 void FormCopyright::build()
36 {
37         dialog_ = build_copyright();
38 }
39
40
41 FL_FORM * const FormCopyright::form() const
42 {
43         if ( dialog_ ) return dialog_->form;
44         return 0;
45 }