]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlSplash.h
John's character.C patch (bug fix).
[lyx.git] / src / frontends / controllers / ControlSplash.h
1 // -*- C++ -*-
2 /**
3  * \file ControlSplash.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author Allan Rae
8  * \author John Levon
9  * \author Angus Leeming, a.leeming@ic.ac.uk
10  */
11
12 #ifndef CONTROLSPLASH_H
13 #define CONTROLSPLASH_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "DialogBase.h"
20 #include "LString.h"
21
22 class Dialogs;
23 class ViewSplash;
24
25 /** The startup splash screen
26  */
27 class ControlSplash : public DialogBase {
28 public:
29         ///
30         ControlSplash(Dialogs &);
31         ///
32         string const & bannerFile() const;
33         ///
34         string const & LyXVersion() const;
35         /// hide (and destroy) the dialog
36         void hide();
37
38 private:
39         /** Allow the Controller to access the View. This method must be
40             instantiated in a daughter class that creates the actual instance
41             of the View. */
42         virtual ViewSplash & view() = 0;
43
44         /// show the dialog
45         void show(); 
46
47         /// our container
48         Dialogs & d_; 
49         /// the show connection
50         SigC::Connection c_;
51
52         ///
53         string banner_file_;
54         ///
55         string version_;
56 };
57
58 #endif // CONTROLSPLASH_H