2 * \file ControlSplash.C
3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
8 * \author Angus Leeming, a.leeming@ic.ac.uk
14 #pragma implementation
17 #include "ControlSplash.h"
21 #include "support/filetools.h"
22 #include "lyxrc.h" // show_banner
24 ControlSplash::ControlSplash(Dialogs & d)
27 c_ = d.showSplash.connect(SigC::slot(this, &ControlSplash::show));
31 string const & ControlSplash::bannerFile() const
37 string const & ControlSplash::LyXVersion() const
43 void ControlSplash::show()
45 if (!lyxrc.show_banner)
48 banner_file_ = LibFileSearch("images", "banner", "xpm");
49 if (banner_file_.empty())
52 version_ = LYX_VERSION;
58 void ControlSplash::hide()