]> git.lyx.org Git - lyx.git/commitdiff
* remove various xforms relicts, in particular:
authorMichael Schmitt <michael.schmitt@teststep.org>
Thu, 6 Jul 2006 19:28:59 +0000 (19:28 +0000)
committerMichael Schmitt <michael.schmitt@teststep.org>
Thu, 6 Jul 2006 19:28:59 +0000 (19:28 +0000)
        * src/frontends/controllers/ControlPreamble.[Ch]:
        remove files, since this controller was only used
        by the xforms frontend

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14352 a592a061-630c-0410-9148-cb99ea01b6c8

NEWS
README
config/lyxinclude.m4
src/PrinterParams.h
src/frontends/controllers/ControlPreamble.C [deleted file]
src/frontends/controllers/ControlPreamble.h [deleted file]
src/frontends/controllers/Makefile.am
src/frontends/gtk/Dialogs.C
src/frontends/gtk/GCharacter.h
src/frontends/gtk/GDocument.C

diff --git a/NEWS b/NEWS
index 978437fd298ac4b65602fa0c1d451848631446c6..f5fe25fd8eb51d5819f33efb00a99338cd2a3f9b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -279,26 +279,6 @@ Note that if Qt is using Xft2/fontconfig, you may need to install the
 latex-xft-fonts package at ftp://ftp.lyx.org/pub/lyx/contrib to get maths
 symbols displayed properly.
 
-** Xforms frontend
-
-The advent of the Qt frontend does not mean that the historical xforms
-frontend is dead. Actually, it is still the one which is the best
-implemented, because we have had more time to polish it. In this release,
-most of the dialogs have been redesigned to be tighter.
-
-Note also that the xforms library has been very recently updated to
-version 1.0. This version has been released under the LGPL (Lesser
-General Public License), and the availability of the source means that
-many bugs that have been plaguing LyX have been fixed in xforms. You
-are advised to upgrade to xforms 1.0 to enjoy all these new fixes.
-In fact, LyX 1.3.0 no longer supports versions of xforms older than 0.89.5.
-
-In most cases the dialogs have been designed to make it impossible to input
-invalid parameters. The exception to this rule is the input of length data.
-Power LaTeX users can still input obtuse "glue lengths", but the widgets are
-highlighted in red if this input is invalid or incomplete. This visual
-feedback makes it easy to see why LyX won't allow you to Apply your changes.
-
 ** Gnome frontend
 
 Unfortunately, the development of the Gnome frontend has mostly
diff --git a/README b/README
index c7ec816d93e0415c68f5b85b7da7f20a26e32704..1d87f7bfa25f02e3cc65728bb70393a678e14515 100644 (file)
--- a/README
+++ b/README
@@ -78,11 +78,6 @@ What do I need to compile LyX from the source distribution?
       gcc/g++, but some others work also. As of LyX 1.4.0, you need at
       least gcc 3.x.
 
-    Either:
-    * The Xforms library, version 1.0.
-    * LibXpm, version 4.7 or newer.
-
-    Or:
     * The Qt library, version 3.0 or newer.
 
     Read the file "INSTALL" for more information on compiling.
index 4550e91beeeff25e75d305e65ba6b1f01ad2568d..777e782d216a2ebbf09cf778b1c8f993718a16a5 100644 (file)
@@ -554,7 +554,7 @@ AC_DEFUN([LYX_USE_FRONTENDS],
 [AC_MSG_CHECKING([what frontend should be used for the GUI])
 AC_ARG_WITH(frontend,
   [  --with-frontend=THIS    Use THIS frontend as main GUI:
-                           Possible values: xforms, qt, gtk(EXPERIMENTAL)],
+                           Possible values: qt, gtk(EXPERIMENTAL)],
   [FRONTENDS="$withval"])
 if test "x$FRONTENDS" = x ; then
   AC_MSG_RESULT(none)
index c31ec1a7418f41bc5d5296347db762050dd00402..32f468d02f16a8edda84b7a80e44adf4d2a3ae28 100644 (file)
@@ -70,9 +70,8 @@ public:
        // bool duplex;
 
        /** Test that all the fields contain valid entries.  It's unlikely
-           that the internal code will get this wrong (at least for the
-           xforms code anyway) however new ports and external scripts
-           might drive the wrong values in.
+           that the internal code will get this wrong however new ports 
+           and external scripts might drive the wrong values in.
         */
        void testInvariant() const;
        ///
diff --git a/src/frontends/controllers/ControlPreamble.C b/src/frontends/controllers/ControlPreamble.C
deleted file mode 100644 (file)
index 6f77909..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
- * \file ControlPreamble.C
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author Edwin Leuven
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#include <config.h>
-
-#include "ControlPreamble.h"
-
-#include "buffer.h"
-#include "bufferparams.h"
-
-using std::string;
-
-namespace lyx {
-namespace frontend {
-
-ControlPreamble::ControlPreamble(Dialog & parent)
-       : Dialog::Controller(parent)
-{}
-
-
-bool ControlPreamble::initialiseParams(std::string const &)
-{
-       params_ = kernel().buffer().params().preamble;
-       return true;
-}
-
-
-void ControlPreamble::clearParams()
-{
-       params_.erase();
-}
-
-
-void ControlPreamble::dispatchParams()
-{
-       // This can stay because we're going to throw the class away
-       // as soon as xforms 1.1 is released.
-       // Ie, there's no need to define LFUN_BUFFERPREAMBLE_APPLY.
-       Buffer & buffer = kernel().buffer();
-       buffer.params().preamble = params();
-       buffer.markDirty();
-}
-
-
-string const & ControlPreamble::params() const
-{
-       return params_;
-}
-
-
-void ControlPreamble::params(string const & newparams)
-{
-       params_ = newparams;
-}
-
-} // namespace frontend
-} // namespace lyx
diff --git a/src/frontends/controllers/ControlPreamble.h b/src/frontends/controllers/ControlPreamble.h
deleted file mode 100644 (file)
index 7a70dde..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-// -*- C++ -*-
-/**
- * \file ControlPreamble.h
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author Edwin Leuven
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#ifndef CONTROLPREAMBLE_H
-#define CONTROLPREAMBLE_H
-
-#include "Dialog.h"
-
-namespace lyx {
-namespace frontend {
-
-/** A controller for Preamble dialogs.
- */
-class ControlPreamble : public Dialog::Controller {
-public:
-       ///
-       ControlPreamble(Dialog &);
-       ///
-       virtual bool initialiseParams(std::string const &);
-       ///
-       virtual void clearParams();
-       ///
-       virtual void dispatchParams();
-       ///
-       virtual bool isBufferDependent() const { return true; }
-
-       ///
-       std::string const & params() const;
-       ///
-       void params(std::string const & newparams);
-private:
-       ///
-       std::string params_;
-};
-
-} // namespace frontend
-} // namespace lyx
-
-#endif // CONTROLPREAMBLE_H
index 2d5f9469a45296e1be9437edcf90e05554b476c0..aecdeaabd88417e8b944712657a4285b6a571b45 100644 (file)
@@ -71,8 +71,6 @@ libcontrollers_la_SOURCES= \
        ControlNote.h \
        ControlParagraph.C \
        ControlParagraph.h \
-       ControlPreamble.C \
-       ControlPreamble.h \
        ControlPrefs.C \
        ControlPrefs.h \
        ControlPrint.C \
index 7321a2ef729de62668e23e18854d68afb5753eb0..65abdfbf4df1258b3e84c9715df403bd2165a934 100644 (file)
@@ -1,5 +1,5 @@
 /**
-// * \file xforms/Dialogs.C
+// * \file gtk/Dialogs.C
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
index fa5b366181adb23e7916c0b6f904ce0ef56c0e77..e4902818c75b3b9b7b1fe580d8da2c84f6274f61 100644 (file)
@@ -5,7 +5,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author John Spray
- * Based on version from xforms frontend
+ * Based on version from former xforms frontend
  *
  * Full author contact details are available in file CREDITS.
  */
index 5263d9577ffe243ebe60ec68e6e47948f7f5dace..067364ecb5f0244966f473c097e1327a780f91b1 100644 (file)
@@ -793,7 +793,7 @@ void GDocument::apply()
                        newbranch->setSelected((*row)[branchColActivated_]);
                        Glib::ustring const color = (*row)[branchColColor_];
                        // FIXME: The color should be editable via a color
-                       // chooser, not a text field (see qt/xforms frontends)
+                       // chooser, not a text field (see qt frontends)
                        // setColor will silently ignore an invalid color and
                        // use the normal background color for now.
                        newbranch->setColor(color);