lyx_mirror/src/frontends/qt2/QSplash.C
John Levon 03add3957a The big renaming. Yowser.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2552 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-19 13:25:15 +00:00

51 lines
686 B
C

/**
* \file QSplash.C
* Copyright 2001 the LyX Team
* Read the file COPYING
*
* \author Edwin Leuven
*/
#include <config.h>
#include <qframe.h>
#include "QSplashDialog.h"
#include "QSplash.h"
#include "Dialogs.h"
#include "version.h"
#include "support/filetools.h"
#include "lyxrc.h"
QSplash::QSplash(LyXView *, Dialogs * d)
: dialog_(0), d_(d)
{
c_ = d->showSplash.connect(SigC::slot(this, &QSplash::show));
}
QSplash::~QSplash()
{
c_.disconnect();
delete dialog_;
}
void QSplash::hide()
{
dialog_->hide();
}
void QSplash::show()
{
if (!lyxrc.show_banner)
return;
if (!dialog_)
dialog_ = new QSplashDialog( 0, "LyX");
// show banner
dialog_->show();
}