]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/FormCredits.h
Added FormCredits dialog (MVC version) by Michael Koziarski.
[lyx.git] / src / frontends / gnome / FormCredits.h
1 // -*- C++ -*-
2 /* This file is part of
3  * =================================================
4  * 
5  *          LyX, The Document Processor
6  *          Copyright 1995 Matthias Ettrich.
7  *          Copyright 1995-2000 The LyX Team.
8  *
9  * ================================================= 
10  *
11  * \author Michael Koziarski <michael@koziarski.org>
12  * */
13
14 #ifndef FORMCREDITS_H
15 #define FORMCREDITS_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "ControlCredits.h"
22 #include "GnomeBase.h"
23
24 namespace Gnome {
25 class Dialog;
26 }
27
28 namespace Gtk {
29 class Button;
30 class Text;
31 }
32
33 /**
34  * This class implements the dialog to show the credits.
35  */
36 class FormCredits : public FormCB<ControlCredits> {
37 public:
38         ///
39         FormCredits(ControlCredits & c);
40         ///
41         ~FormCredits();
42
43         void apply();
44
45         void hide();
46         void show();
47         void update();
48         
49 private:
50         
51         /// Build the dialog
52         void build();
53
54         /// get the dialog
55         Gnome::Dialog * dialog();
56     
57         void CancelClicked() { CancelButton(); }
58
59         /// The ok button
60         Gtk::Button * ok();
61         
62         Gtk::Text * text();
63
64         // Hold the dialog.
65         Gnome::Dialog * dialog_;
66 };
67
68 #endif