3 * \file ControlSplash.C
4 * Copyright 2001 the LyX Team
5 * Read the file COPYING
9 * \author Angus Leeming, a.leeming@ic.ac.uk
15 #pragma implementation
18 #include "ControlSplash.h"
22 #include "support/filetools.h"
23 #include "lyxrc.h" // show_banner
25 ControlSplash::ControlSplash(Dialogs & d)
28 c_ = d.showSplash.connect(SigC::slot(this, &ControlSplash::show));
32 string const & ControlSplash::bannerFile() const
38 string const & ControlSplash::LyXVersion() const
44 void ControlSplash::show()
46 if (!lyxrc.show_banner)
49 banner_file_ = LibFileSearch("images", "banner", "xpm");
50 if (banner_file_.empty())
53 version_ = LYX_VERSION;
59 void ControlSplash::hide()