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