2001-03-15 16:34:44 +00:00
|
|
|
/**
|
|
|
|
* \file FormSplash.C
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author Edwin Leuven
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#include <qframe.h>
|
|
|
|
|
|
|
|
#include "FormSplashImpl.h"
|
|
|
|
#include "FormSplash.h"
|
|
|
|
#include "Dialogs.h"
|
|
|
|
#include "version.h"
|
|
|
|
#include "support/filetools.h"
|
|
|
|
#include "lyxrc.h"
|
|
|
|
|
|
|
|
FormSplash::FormSplash(LyXView *, Dialogs * d)
|
|
|
|
: dialog_(0), d_(d)
|
|
|
|
{
|
2001-03-26 19:34:45 +00:00
|
|
|
c_ = d->showSplash.connect(SigC::slot(this, &FormSplash::show));
|
2001-03-15 16:34:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FormSplash::~FormSplash()
|
|
|
|
{
|
2001-06-05 17:05:51 +00:00
|
|
|
c_.disconnect();
|
|
|
|
delete dialog_;
|
2001-03-15 16:34:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void FormSplash::hide()
|
|
|
|
{
|
2001-06-05 17:05:51 +00:00
|
|
|
dialog_->hide();
|
2001-03-15 16:34:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void FormSplash::show()
|
|
|
|
{
|
2001-06-05 17:05:51 +00:00
|
|
|
if (!lyxrc.show_banner)
|
|
|
|
return;
|
2001-03-26 19:34:45 +00:00
|
|
|
|
2001-06-05 17:05:51 +00:00
|
|
|
if (!dialog_)
|
|
|
|
dialog_ = new FormSplashBase( 0, "LyX");
|
2001-03-26 19:34:45 +00:00
|
|
|
|
2001-06-05 17:05:51 +00:00
|
|
|
// show banner
|
|
|
|
dialog_->show();
|
2001-03-15 16:34:44 +00:00
|
|
|
}
|