]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormCopyright.C
More pref work from Angus
[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         : FormBaseBI( lv, d, _("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 FL_FORM * FormCopyright::form() const
36 {
37         if ( dialog_ ) return dialog_->form;
38         return 0;
39 }
40
41
42 void FormCopyright::build()
43 {
44         dialog_ = build_copyright();
45
46         // Workaround dumb xforms sizing bug
47         minw_ = form()->w;
48         minh_ = form()->h;
49 }