]> git.lyx.org Git - features.git/commitdiff
Remove old splash dialog(s).
authorAngus Leeming <leeming@lyx.org>
Thu, 27 Sep 2001 09:45:57 +0000 (09:45 +0000)
committerAngus Leeming <leeming@lyx.org>
Thu, 27 Sep 2001 09:45:57 +0000 (09:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2807 a592a061-630c-0410-9148-cb99ea01b6c8

29 files changed:
src/frontends/ChangeLog
src/frontends/Dialogs.C
src/frontends/Dialogs.h
src/frontends/controllers/ChangeLog
src/frontends/controllers/ControlSplash.C [deleted file]
src/frontends/controllers/ControlSplash.h [deleted file]
src/frontends/controllers/GUI.h
src/frontends/controllers/Makefile.am
src/frontends/controllers/ViewBase.h
src/frontends/gnome/ChangeLog
src/frontends/gnome/Dialogs.C
src/frontends/gnome/Makefile.am
src/frontends/qt2/ChangeLog
src/frontends/qt2/Dialogs.C
src/frontends/qt2/Makefile.dialogs
src/frontends/qt2/QSplash.C [deleted file]
src/frontends/qt2/QSplash.h [deleted file]
src/frontends/qt2/QSplashDialog.C [deleted file]
src/frontends/qt2/QSplashDialog.h [deleted file]
src/frontends/xforms/ChangeLog
src/frontends/xforms/Dialogs.C
src/frontends/xforms/FormSplash.C [deleted file]
src/frontends/xforms/FormSplash.h [deleted file]
src/frontends/xforms/Makefile.am
src/frontends/xforms/Menubar_pimpl.C
src/frontends/xforms/form_splash.C [deleted file]
src/frontends/xforms/form_splash.h [deleted file]
src/frontends/xforms/forms/form_splash.fd [deleted file]
src/frontends/xforms/forms/makefile

index d7d774fe66b2312dd337df55e05d77914ea4dd28..9b516d38322d8a93d1b30e17b40a09826b4a08ed 100644 (file)
@@ -1,3 +1,9 @@
+2001-09-27  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * Dialogs.h (showSplash, destroySplash, splash_): removed.
+
+       * Dialogs.C (destroySplash): removed.
+
 2001-08-27  John Levon  <moz@compsoc.man.ac.uk>
 
        * GUIRunTime.h: initApplication() should take a & to argc 
index e3c1687c862f27b525976a4a3fc85efd30864484..4e6f32171c5efa4973e66858c76d3585ec80e3a3 100644 (file)
@@ -28,8 +28,3 @@ void Dialogs::add(DialogBase * ptr)
        lyx::Assert(ptr);
        dialogs_.push_back(db_ptr(ptr));
 }
-
-void Dialogs::destroySplash()
-{
-       splash_.reset();
-}
index 3a767a5280b3bb91e2b8bcba3415cfed752e23c6..631cd9dde369edd98130e82bf63e20b570b8e79d 100644 (file)
@@ -151,10 +151,6 @@ public:
        SigC::Signal0<void> showSpellchecker;
        /// bring up the spellchecker tab in preferences
        SigC::Signal0<void> showSpellcheckerPreferences;
-       /// pop up the splash
-       SigC::Signal0<void> showSplash;
-       /// destroy the splash dialog
-       void destroySplash();
        ///
        SigC::Signal1<void, InsetTabular *> showTabular;
        ///
@@ -179,8 +175,6 @@ private:
        void add(DialogBase *);
        /// the dialogs being managed
        std::vector<db_ptr> dialogs_;
-       /// the splash dialog
-       boost::scoped_ptr<DialogBase> splash_;
 };
 
 #endif
index 9094d9668765f3fd25a6baa4258a72ae690e99cc..3eccaaefab7791af39b0772507186fd14dc4ce6b 100644 (file)
@@ -1,3 +1,13 @@
+2001-09-27  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * ControlSplash.[Ch]: removed.
+
+       * GUI.h: remove GUISplash class.
+
+       * ViewBase.h: remove ViewSplash class.
+
+       * Makefile.am: remove ControlSplash.[Ch].
+
 2001-09-25  Angus Leeming  <a.leeming@ic.ac.uk>
 
        * ControlButtons.h: add variable emergency_exit_. If set to true, the
diff --git a/src/frontends/controllers/ControlSplash.C b/src/frontends/controllers/ControlSplash.C
deleted file mode 100644 (file)
index fd18e80..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * \file ControlSplash.C
- * Copyright 2001 the LyX Team
- * Read the file COPYING
- *
- * \author Allan Rae
- * \author John Levon
- * \author Angus Leeming, a.leeming@ic.ac.uk
- */
-
-#include <config.h>
-
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
-#include "ControlSplash.h"
-#include "Dialogs.h"
-#include "ViewBase.h"
-#include "version.h"
-#include "support/filetools.h"
-#include "lyxrc.h" // show_banner
-
-ControlSplash::ControlSplash(Dialogs & d)
-       : d_(d)
-{
-       c_ = d.showSplash.connect(SigC::slot(this, &ControlSplash::show));
-}
-
-
-string const & ControlSplash::bannerFile() const
-{
-       return banner_file_;
-}
-
-
-string const & ControlSplash::LyXVersion() const
-{
-       return version_;
-}
-
-
-void ControlSplash::show()
-{
-       if (!lyxrc.show_banner)
-               return;
-
-       banner_file_ = LibFileSearch("images", "banner", "xpm");
-       if (banner_file_.empty())
-               return;
-
-       version_ = LYX_VERSION;
-
-       view().show();
-}
-
-
-void ControlSplash::hide()
-{
-       view().hide();
-       c_.disconnect();
-       d_.destroySplash();
-}
diff --git a/src/frontends/controllers/ControlSplash.h b/src/frontends/controllers/ControlSplash.h
deleted file mode 100644 (file)
index c9fe110..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-// -*- C++ -*-
-/**
- * \file ControlSplash.h
- * Copyright 2001 the LyX Team
- * Read the file COPYING
- *
- * \author Allan Rae
- * \author John Levon
- * \author Angus Leeming, a.leeming@ic.ac.uk
- */
-
-#ifndef CONTROLSPLASH_H
-#define CONTROLSPLASH_H
-
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "DialogBase.h"
-#include "LString.h"
-
-class Dialogs;
-class ViewSplash;
-
-/** The startup splash screen
- */
-class ControlSplash : public DialogBase {
-public:
-       ///
-       ControlSplash(Dialogs &);
-       ///
-       string const & bannerFile() const;
-       ///
-       string const & LyXVersion() const;
-       /// hide (and destroy) the dialog
-       void hide();
-
-private:
-       /** Allow the Controller to access the View. This method must be
-           instantiated in a daughter class that creates the actual instance
-           of the View. */
-       virtual ViewSplash & view() = 0;
-
-       /// show the dialog
-       void show(); 
-
-       /// our container
-       Dialogs & d_; 
-       /// the show connection
-       SigC::Connection c_;
-
-       ///
-       string banner_file_;
-       ///
-       string version_;
-};
-
-#endif // CONTROLSPLASH_H
index 3f075ff3d0c34fa637b16d241a69f8b6d23bfa7c..663b075eef79fdbc1182c55765acb24d5f2b0217 100644 (file)
 #ifndef GUI_H
 #define GUI_H
 
-/** This class instantiates and makes available the GUI-specific
-    View for the Splash screen controller.
- */
-template <class GUIview>
-class GUISplash : public ControlSplash {
-public:
-       ///
-       GUISplash(Dialogs & d) : ControlSplash(d), view_(*this) {}
-       ///
-       virtual ViewSplash & view() { return view_; }
-
-private:
-       ///
-       GUIview view_;
-};
-
-
 /** This class instantiates and makes available the GUI-specific
     ButtonController and View.
  */
index 40bc2b583293684ac5edfc8801d3fd99d3b5bd6a..ee819b9f1a635df41d717f1a614e2b373a8bac75 100644 (file)
@@ -64,8 +64,6 @@ libcontrollers_la_SOURCES=\
        ControlSearch.h \
        ControlSpellchecker.C \
        ControlSpellchecker.h \
-       ControlSplash.C \
-       ControlSplash.h \
        ControlTabularCreate.C \
        ControlTabularCreate.h \
        ControlThesaurus.C \
index f84cf426f02fa65634fd2fad666ed85de71549a3..121533f711ddea8e8c6003d5a0a80ea687346686 100644 (file)
@@ -16,7 +16,6 @@
 
 #include <boost/utility.hpp>
 #include "ControlButtons.h"
-#include "ControlSplash.h"
 
 class ViewBase {
 public:
@@ -61,30 +60,6 @@ protected:
 };
 
 
-class ViewSplash {
-public:
-       /// 
-       ViewSplash(ControlSplash & c) : controller_(c) {}
-       /// 
-       virtual ~ViewSplash() {}
-
-       /// Hide the dialog.
-       virtual void hide() = 0;
-       /// Create the dialog and show it.
-       virtual void show() = 0;
-
-       /** The shortcut allows (e.g. xform's) global callback functions
-           access without making the whole controller_ public.
-       */
-        ///
-        void Hide() { controller_.hide(); }
-
-protected:
-       /// The view is, after all, controlled!
-       ControlSplash & controller_;
-};
-
-
 /** A generic class to cast the ButtonController controller_.bc_ to it's
     daughter class. */
 template <class GUIbc>
index 422155cc165188c8be5b68001657545aa99ae2f1..dd1e5058f0158ec83329d446a28a0f54938f7df8 100644 (file)
@@ -1,3 +1,9 @@
+2001-09-27  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * Dialogs.C: remove splash dialog code.
+
+       * Makefile.am: remove splash dialog files.
+
 2001-09-09  Lars Gullik Bjønnes  <larsbj@birdstep.com>
 
        * Makefile.am (libgnome_la_LIBADD): depend on the gui libs.
index 79955a58a68371614e5a5e33d1f8c740ba238a5d..1755022a2dc739f9efb3bdccc62b77992d4fa823 100644 (file)
@@ -19,7 +19,6 @@
 #include "Dialogs.h"
 #include "gnomeBC.h"
 
-#include "ControlSplash.h"
 #include "ControlBibitem.h"
 #include "ControlBibtex.h"
 #include "ControlCharacter.h"
@@ -55,7 +54,6 @@
 #include "FormPrint.h"
 #include "FormRef.h"
 #include "FormSearch.h"
-#include "FormSplash.h"
 #include "FormTabular.h"
 #include "FormTabularCreate.h"
 #include "FormToc.h"
@@ -74,8 +72,6 @@ Dialogs::Dialogs(LyXView * lv)
        add(new GUITabularCreate<FormTabularCreate, gnomeBC>(*lv, *this));
 
 /*     
-       splash_.reset(new FormSplash(lv, this));
-
        add(new GUIBibitem<FormBibitem, xformsBC>(*lv, *this));
        add(new GUIBibtex<FormBibtex, xformsBC>(*lv, *this));
        add(new GUICharacter<FormCharacter, xformsBC>(*lv, *this));
@@ -98,7 +94,6 @@ Dialogs::Dialogs(LyXView * lv)
        add(new FormPrint(lv, this));
        add(new FormRef(lv, this));
        add(new FormSearch(lv, this));
-       add(new FormSplash(lv, this));
        add(new FormTabular(lv, this));
        add(new FormTabularCreate(lv, this));
        add(new FormToc(lv, this));
@@ -177,10 +172,6 @@ A.  To avoid a segfault.
        code wrapped up like that in the form_copyright.[Ch] which is awkward
        but will at least allow multiple instances of the same dialog.
 
-       Signals will also be a great help in controlling the splashscreen --
-       once signalled to hide it can disconnect from the signal and remove
-       itself from memory.
-
        LyXFuncs will be used for requesting/setting LyX internal info.  This
        will ensure that scripts or LyXServer-connected applications can all
        have access to the same calls as the internal user-interface.
index e1c28b74b29ac568e5d73d72c0d4e49461912d75..28b8dcb78bc285cbcdc2e22bdb2f751b2e645377 100644 (file)
@@ -53,8 +53,6 @@ libgnome_la_LIBADD = \
 #      ../xforms/form_print.lo \
 #      ../xforms/FormRef.lo \
 #      ../xforms/form_ref.lo \
-#      ../xforms/FormSplash.lo \
-#      ../xforms/form_splash.lo \
 #      ../xforms/FormTabular.lo \
 #      ../xforms/form_tabular.lo \
 #      ../xforms/FormTabularCreate.lo \
index b2b3dab7e3b8f5b698d4108be43b306c8e60f55d..a94770d8e2a259667d40e9b4c6ed12eb47e57e07 100644 (file)
@@ -1,3 +1,12 @@
+2001-09-27  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * Dialogs.C: remove splash dialog code.
+
+       * QSplash.[Ch]:
+       * QSplashDialog.[Ch]: removed.
+
+       * Makefile.dialogs: remove splash dialog files.
+
 2001-09-18  John Levon  <moz@compsoc.man.ac.uk>
 
        * QRef.C: fix compile
index 84615efeee83d4479b258e6806f96e2affe4170c..78b10a82989f923674025fbb1bb7971ae25b98df 100644 (file)
@@ -54,7 +54,6 @@
 #include "QRef.h"
 #include "QSearch.h"
 #include "QSpellchecker.h"
-#include "QSplash.h"
 #include "QTabularCreate.h"
 #include "QThesaurus.h"
 #include "QURL.h"
@@ -85,7 +84,6 @@
 #include "controllers/ControlRef.h"
 #include "controllers/ControlSearch.h"
 #include "controllers/ControlSpellchecker.h"
-#include "controllers/ControlSplash.h"
 #include "controllers/ControlTabularCreate.h"
 #include "controllers/ControlThesaurus.h"
 #include "controllers/ControlUrl.h"
@@ -105,8 +103,6 @@ SigC::Signal0<void> Dialogs::redrawGUI;
 
 Dialogs::Dialogs(LyXView * lv)
 {
-       splash_.reset(new QSplash(lv, this));
-
        // dialogs that have been converted to new scheme
        add(new GUICitation<QCitation, Qt2BC>(*lv, *this));
        add(new GUIAboutlyx<QAbout, Qt2BC>(*lv, *this));
index c6e2f1ab1f2e3fab0045df1bbfcbaf0156599601..8054649092d49df1f062157383ed5bd42ecc83da 100644 (file)
@@ -21,7 +21,6 @@ DIALOGS = \
        QRef \
        QSearch \
        QSpellchecker \
-       QSplash \
        QTabularCreate \
        QThesaurus \
        QToc \
@@ -69,8 +68,6 @@ DIALOGSOURCES = \
        QSearch.C QSearchDialog.C \
        QSpellchecker.h QSpellcheckerDialog.h \
        QSpellchecker.C QSpellcheckerDialog.C \
-       QSplash.h QSplashDialog.h \
-       QSplash.C QSplashDialog.C \
        QTabularCreate.h QTabularCreateDialog.h \
        QTabularCreate.C QTabularCreateDialog.C \
        QThesaurus.h QThesaurusDialog.h \
@@ -103,7 +100,6 @@ MOCDIALOGS = \
        QRefDialog_moc.C \
        QSearchDialog_moc.C \
        QSpellcheckerDialog_moc.C \
-       QSplashDialog_moc.C \
        QTabularCreateDialog_moc.C \
        QThesaurusDialog_moc.C \
        QTocDialog_moc.C \
diff --git a/src/frontends/qt2/QSplash.C b/src/frontends/qt2/QSplash.C
deleted file mode 100644 (file)
index ffc3a6c..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * \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();
-}
diff --git a/src/frontends/qt2/QSplash.h b/src/frontends/qt2/QSplash.h
deleted file mode 100644 (file)
index e8976b5..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-// -*- C++ -*-
-/**
- * \file QSplash.h
- * Copyright 2001 the LyX Team
- * Read the file COPYING
- *
- * \author Edwin Leuven
- */
-
-#ifndef QSPLASH_H
-#define QSPLASH_H
-
-#include "DialogBase.h"
-class Dialogs; 
-class LyXView;
-class QSplashDialog;
-
-class QSplash : public DialogBase {
-
-public:
-       QSplash(LyXView *, Dialogs *);
-
-       ~QSplash();
-   
-       /// hide the dialog
-       void hide(); 
-
-private:
-       /// show the dialog
-       void show(); 
-
-       /// Real GUI implementation.
-       QSplashDialog * dialog_;
-       /// our container
-       Dialogs * d_; 
-       /// the show connection
-       SigC::Connection c_; 
-};
-
-#endif // QSPLASH_H
diff --git a/src/frontends/qt2/QSplashDialog.C b/src/frontends/qt2/QSplashDialog.C
deleted file mode 100644 (file)
index 07c4e13..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * \file QSplashDialog.C
- * Copyright 2001 the LyX Team
- * Read the file COPYING
- *
- * \author Edwin Leuven
- */
-
-#include <config.h>
-
-#include <qapplication.h>
-#include <qtimer.h>
-#include <qframe.h>
-#include <qpixmap.h>
-
-#include "version.h"
-#include "support/filetools.h"
-#include "support/lstrings.h"
-#include "lyxrc.h"
-#include "QSplashDialog.h" 
-
-QSplashDialog::QSplashDialog(QWidget * parent, const char * name, WFlags fl, bool modal)
-        : QFrame(parent, name, fl, modal)
-{
-       string const banner_file = LibFileSearch("images", "banner", "xpm");
-       if (banner_file.empty())
-               return;
-       
-       QPixmap const pm(tostr(banner_file).c_str());
-       int const w = pm.width();
-       int const h = pm.height();
-       
-       setBackgroundPixmap(pm);
-       setLineWidth(0);
-       setGeometry(QApplication::desktop()->width()/2 - w/2,
-                        QApplication::desktop()->height()/2 - h/2,
-                        w, h);
-       
-       QTimer::singleShot(5*1000, this, SLOT(hide()));
-}
-
-QSplashDialog::~QSplashDialog()
-{
-}
-
-
-void QSplashDialog::mousePressEvent( QMouseEvent * )
-{
-       hide();
-}
diff --git a/src/frontends/qt2/QSplashDialog.h b/src/frontends/qt2/QSplashDialog.h
deleted file mode 100644 (file)
index 0820077..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * \file QSplashDialog.C
- * Copyright 2001 the LyX Team
- * Read the file COPYING
- *
- * \author Edwin Leuven
- */
-
-#ifndef FORMSPLASHBASE_H
-#define FORMSPLASHBASE_H
-
-class QSplashDialog : public QFrame
-{
-public:
-       QSplashDialog(QWidget * parent,  const char * name,
-               WFlags fl = QWidget::WStyle_NoBorder | QWidget::WStyle_Customize, 
-               bool modal = false);
-   
-       ~QSplashDialog();
-   
-protected:
-       virtual void mousePressEvent(QMouseEvent *);
-};
-
-#endif // QSPLASHDIALOG_H
index a6e9bc76118702dfdd5f3f7decd1a7d4d9f9bff2..d8324423aed8b20ce393fcbdcd404191e7f330e2 100644 (file)
@@ -1,3 +1,16 @@
+2001-09-27  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * Dialogs.C: remove splash dialog code.
+
+       * FormSplash.[Ch]:
+       * form_splash.[Ch]:
+       * forms/form_splash.fd: removed.
+
+       * Makefile.am:
+       * forms/makefile: remove splash dialog files.
+
+       * Menubar_pimpl.C (MenuCallback): no longer call Dialogs::destroySplash.
+
 2001-09-27  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * forms/form_preferences.fd: fix typo
index c3d2260cf337bbb92e4f81b65974857769caf45d..38cb4a15d321e75a5c73a370648c0a4b5121fca8 100644 (file)
@@ -40,7 +40,6 @@
 #include "ControlRef.h"
 #include "ControlSearch.h"
 #include "ControlSpellchecker.h"
-#include "ControlSplash.h"
 #include "ControlTabularCreate.h"
 #include "ControlThesaurus.h"
 #include "ControlToc.h"
@@ -69,7 +68,6 @@
 #include "form_ref.h"
 #include "form_search.h"
 #include "form_spellchecker.h"
-#include "form_splash.h"
 #include "form_tabular_create.h"
 #include "form_thesaurus.h"
 #include "form_toc.h"
@@ -94,7 +92,6 @@
 #include "FormRef.h"
 #include "FormSearch.h"
 #include "FormSpellchecker.h"
-#include "FormSplash.h"
 #include "FormTabularCreate.h"
 #include "FormThesaurus.h" 
 #include "FormToc.h"
@@ -113,8 +110,6 @@ SigC::Signal0<void> Dialogs::redrawGUI;
 
 Dialogs::Dialogs(LyXView * lv)
 {
-       splash_.reset(new GUISplash<FormSplash>(*this));
-
        add(new GUIAboutlyx<FormAboutlyx, xformsBC>(*lv, *this));
        add(new GUIBibitem<FormBibitem, xformsBC>(*lv, *this));
        add(new GUIBibtex<FormBibtex, xformsBC>(*lv, *this));
@@ -219,10 +214,6 @@ A.  To avoid a segfault.
        code wrapped up like that in the form_copyright.[Ch] which is awkward
        but will at least allow multiple instances of the same dialog.
 
-       Signals will also be a great help in controlling the splashscreen --
-       once signalled to hide it can disconnect from the signal and remove
-       itself from memory.
-
        LyXFuncs will be used for requesting/setting LyX internal info.  This
        will ensure that scripts or LyXServer-connected applications can all
        have access to the same calls as the internal user-interface.
diff --git a/src/frontends/xforms/FormSplash.C b/src/frontends/xforms/FormSplash.C
deleted file mode 100644 (file)
index cdc3928..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-/**
- * \file FormSplash.C
- * Copyright 2001 the LyX Team
- * Read the file COPYING
- *
- * \author Allan Rae
- * \author John Levon
- */
-
-#include <config.h>
-
-#include FORMS_H_LOCATION
-
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
-#include "ControlSplash.h"
-#include "FormSplash.h"
-#include "form_splash.h"
-#include "form_splash.h"
-#include "support/LAssert.h"
-
-extern "C" {
-       
-       static
-       int C_FormSplashCloseCB(FL_FORM * form, void *)
-       {
-               lyx::Assert(form && form->u_vdata);
-               FormSplash * pre = static_cast<FormSplash *>(form->u_vdata);
-               pre->Hide();
-               return FL_CANCEL;
-       }
-       
-       void C_FormSplashCB(FL_OBJECT * ob, long)
-       {
-               lyx::Assert(ob && ob->form && ob->form->u_vdata);
-               FormSplash * pre = static_cast<FormSplash*>(ob->form->u_vdata);
-               pre->Hide();
-       }
-       
-}
-
-FormSplash::FormSplash(ControlSplash & c)
-       : ViewSplash(c)
-{}
-
-
-ControlSplash & FormSplash::controller() const
-{
-       return static_cast<ControlSplash &>(controller_);
-       //return dynamic_cast<ControlSplash &>(controller_);
-}
-
-
-void FormSplash::show()
-{
-       if (!dialog_.get()) {
-               build();
-               fl_set_form_atclose(dialog_->form, C_FormSplashCloseCB, 0);
-       }
-
-       int const xpos = WidthOfScreen(ScreenOfDisplay(fl_get_display(),
-                                                      fl_screen));
-       int const ypos = HeightOfScreen(ScreenOfDisplay(fl_get_display(),
-                                                       fl_screen));
-
-       fl_set_form_position(dialog_->form, xpos, ypos);
-
-       // Show the title form at most 5 secs
-       fl_set_timer(dialog_->splash_timer, 5);
-
-       if (dialog_->form->visible)
-               fl_raise_form(dialog_->form);
-       else
-               // Workaround dumb xforms sizing bug
-               fl_set_form_minsize(dialog_->form,
-                                   dialog_->form->w,
-                                   dialog_->form->h);
-               fl_show_form(dialog_->form, FL_PLACE_CENTER, FL_NOBORDER, "");
-}
-
-
-void FormSplash::hide()
-{
-       if (dialog_->form && dialog_->form->visible)
-               fl_hide_form(dialog_->form);
-}
-
-void FormSplash::build()
-{
-       dialog_.reset(build_splash());
-
-       fl_set_form_dblbuffer(dialog_->form, 1); // use dbl buffer
-       fl_addto_form(dialog_->form);
-       FL_OBJECT * obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON, 0, 0, 425, 290, "");
-       fl_set_pixmapbutton_file(obj, controller().bannerFile().c_str());
-       
-       fl_set_pixmapbutton_focus_outline(obj, 3);
-       fl_set_button_shortcut(obj, "^M ^[", 1);
-       fl_set_object_boxtype(obj, FL_NO_BOX);
-       fl_set_object_callback(obj, C_FormSplashCB, 0);
-       
-       obj = fl_add_text(FL_NORMAL_TEXT, 248, 265, 170, 16,
-                         controller().LyXVersion().c_str());
-       fl_set_object_lsize(obj, FL_NORMAL_SIZE);
-//     fl_mapcolor(FL_FREE_COL2, 0x05, 0x2e, 0x4c);
-       fl_mapcolor(FL_FREE_COL2, 0x2b, 0x47, 0x82);
-       fl_mapcolor(FL_FREE_COL3, 0xe1, 0xd2, 0x9b);
-       fl_set_object_color(obj, FL_FREE_COL2, FL_FREE_COL2);
-       fl_set_object_lcol(obj, FL_FREE_COL3);
-       fl_set_object_lalign(obj, FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
-       fl_set_object_lstyle(obj, FL_BOLD_STYLE);
-       fl_end_form();
-}
diff --git a/src/frontends/xforms/FormSplash.h b/src/frontends/xforms/FormSplash.h
deleted file mode 100644 (file)
index 695cddf..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-// -*- C++ -*-
-/**
- * \file FormSplash.h
- * Copyright 2001 the LyX Team
- * Read the file COPYING
- *
- * \author Allan Rae
- * \author John Levon
- */
-
-#ifndef FORMSPLASH_H
-#define FORMSPLASH_H
-
-#include <boost/smart_ptr.hpp>
-
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "ViewBase.h"
-
-class ControlSplash;
-struct FD_form_splash;
-
-/** The startup splash screen
- */
-class FormSplash : public ViewSplash {
-public:
-       ///
-       FormSplash(ControlSplash &);
-
-private:
-       /// Build the dialog
-       void build();
-       /// hide the dialog
-       void hide();
-       /// show the dialog
-       void show();
-
-       /// The parent controller
-       ControlSplash & controller() const;
-
-       /// Fdesign generated method
-       FD_form_splash * build_splash();
-
-       /// Real GUI implementation.
-       boost::scoped_ptr<FD_form_splash> dialog_;
-};
-
-#endif // FORMSPLASH_H
index f2890307d81ba2dbb3d57ab6473a954d208a1303..a682f07ab8cadbe805f5604ffc6425be3ec087d1 100644 (file)
@@ -144,10 +144,6 @@ libxforms_la_SOURCES = \
        FormSpellchecker.h \
        form_spellchecker.C \
        form_spellchecker.h \
-       FormSplash.C \
-       FormSplash.h \
-       form_splash.C \
-       form_splash.h \
        FormTabular.C \
        FormTabular.h \
        form_tabular.C \
index b48569185505c3f8b9cb2fd917880d38e0642f95..2a8463860a1649a9ad8e87e743654dd5fe27de0e 100644 (file)
@@ -541,12 +541,6 @@ void Menubar::Pimpl::MenuCallback(FL_OBJECT * ob, long button)
        LyXView * view = iteminfo->pimpl_->owner_;
        MenuItem const * item = iteminfo->item_.get();
 
-       /* get the splash out of the way. It would be nicer
-        * to only have this code at the start, but xforms
-        * makes it too ugly to do
-        */
-       view->getDialogs()->destroySplash();
        if (button == 1) {
                // set the pseudo menu-button
                fl_set_object_boxtype(ob, FL_DOWN_BOX);
diff --git a/src/frontends/xforms/form_splash.C b/src/frontends/xforms/form_splash.C
deleted file mode 100644 (file)
index d2e3418..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-// File modified by fdfix.sh for use by lyx (with xforms >= 0.88) and gettext
-#include <config.h>
-#include "lyx_gui_misc.h"
-#include "gettext.h"
-
-/* Form definition file generated with fdesign. */
-
-#include FORMS_H_LOCATION
-#include <stdlib.h>
-#include "form_splash.h"
-#include "FormSplash.h"
-
-FD_form_splash::~FD_form_splash()
-{
-  if ( form->visible ) fl_hide_form( form );
-  fl_free_form( form );
-}
-
-
-FD_form_splash * FormSplash::build_splash()
-{
-  FL_OBJECT *obj;
-  FD_form_splash *fdui = new FD_form_splash;
-
-  fdui->form = fl_bgn_form(FL_NO_BOX, 420, 290);
-  fdui->form->u_vdata = this;
-  obj = fl_add_box(FL_UP_BOX, 0, 0, 420, 290, "");
-    fl_set_object_color(obj, FL_BLACK, FL_TOP_BCOL);
-  fdui->splash_timer = obj = fl_add_timer(FL_HIDDEN_TIMER, 110, 170, 190, 60, "");
-    fl_set_object_callback(obj, C_FormSplashCB, 0);
-  fl_end_form();
-
-  fdui->form->fdui = fdui;
-
-  return fdui;
-}
-/*---------------------------------------*/
-
diff --git a/src/frontends/xforms/form_splash.h b/src/frontends/xforms/form_splash.h
deleted file mode 100644 (file)
index af25924..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-// File modified by fdfix.sh for use by lyx (with xforms >= 0.88) and gettext
-/** Header file generated with fdesign **/
-
-#ifndef FD_form_splash_h_
-#define FD_form_splash_h_
-
-/** Callbacks, globals and object handlers **/
-extern  "C" void C_FormSplashCB(FL_OBJECT *, long);
-
-
-/**** Forms and Objects ****/
-struct FD_form_splash {
-       ~FD_form_splash();
-
-       FL_FORM *form;
-       FL_OBJECT *splash_timer;
-};
-
-#endif /* FD_form_splash_h_ */
diff --git a/src/frontends/xforms/forms/form_splash.fd b/src/frontends/xforms/forms/form_splash.fd
deleted file mode 100644 (file)
index b6f02a9..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-Magic: 13000
-
-Internal Form Definition File
-    (do not change)
-
-Number of forms: 1
-Unit of measure: FL_COORD_PIXEL
-
-=============== FORM ===============
-Name: form_splash
-Width: 420
-Height: 290
-Number of Objects: 2
-
---------------------
-class: FL_BOX
-type: UP_BOX
-box: 0 0 420 290
-boxtype: FL_UP_BOX
-colors: FL_BLACK FL_TOP_BCOL
-alignment: FL_ALIGN_CENTER
-style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
-lcol: FL_BLACK
-label: 
-shortcut: 
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
-name: 
-callback: 
-argument: 
-
---------------------
-class: FL_TIMER
-type: HIDDEN_TIMER
-box: 110 170 190 60
-boxtype: FL_DOWN_BOX
-colors: FL_COL1 FL_RED
-alignment: FL_ALIGN_CENTER
-style: FL_NORMAL_STYLE
-size: FL_DEFAULT_SIZE
-lcol: FL_BLACK
-label: 
-shortcut: 
-resize: FL_RESIZE_ALL
-gravity: FL_NoGravity FL_NoGravity
-name: splash_timer
-callback: C_FormSplashCB
-argument: 0
-
-==============================
-create_the_forms
index d89aad5cc892f401f95f5427858a6c095a6dd4ab..62ad9ba5a1488a18486a7976facd42d86f41105c 100644 (file)
@@ -46,7 +46,6 @@ SRCS =  form_aboutlyx.fd \
        form_ref.fd \
        form_search.fd \
        form_spellchecker.fd \
-       form_splash.fd \
        form_tabular.fd \
        form_tabular_create.fd \
        form_thesaurus.fd \