]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormCredits.h
Merging BRANCH_MVC back into HEAD.
[lyx.git] / src / frontends / xforms / FormCredits.h
1 /**
2  * \file FormCredits.h
3  * Copyright 2001 The LyX Team.
4  * See the file COPYING.
5  *
6  * \author Edwin Leuven, leuven@fee.uva.nl
7  */
8
9 #ifndef FORMCREDITS_H
10 #define FORMCREDITS_H
11
12 #include <boost/smart_ptr.hpp>
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "FormBaseDeprecated.h"
19 #include "xformsBC.h"
20
21 struct FD_form_credits;
22
23 /** This class provides an XForms implementation of the FormCredits Dialog.
24  */
25 class FormCredits : public FormBaseBI {
26 public:
27         /// #FormCopyright x(LyXFunc ..., Dialogs ...);#
28         FormCredits(LyXView *, Dialogs *);
29
30 private:
31         /// Pointer to the actual instantiation of the ButtonController.
32         virtual xformsBC & bc();
33         /// Build the dialog
34         virtual void build();
35         /// Pointer to the actual instantiation of the xforms form
36         virtual FL_FORM * form() const;
37         /// Fdesign generated method
38         FD_form_credits * build_credits();
39
40         /// Real GUI implementation.
41         boost::scoped_ptr<FD_form_credits> dialog_;
42         /// The ButtonController
43         ButtonController<OkCancelPolicy, xformsBC> bc_;
44 };
45
46
47 inline
48 xformsBC & FormCredits::bc()
49 {
50         return bc_;
51 }
52 #endif
53