mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
* remove various xforms relicts, in particular:
* 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
This commit is contained in:
parent
2558af85af
commit
0be696bff0
20
NEWS
20
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
|
latex-xft-fonts package at ftp://ftp.lyx.org/pub/lyx/contrib to get maths
|
||||||
symbols displayed properly.
|
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
|
** Gnome frontend
|
||||||
|
|
||||||
Unfortunately, the development of the Gnome frontend has mostly
|
Unfortunately, the development of the Gnome frontend has mostly
|
||||||
|
5
README
5
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
|
gcc/g++, but some others work also. As of LyX 1.4.0, you need at
|
||||||
least gcc 3.x.
|
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.
|
* The Qt library, version 3.0 or newer.
|
||||||
|
|
||||||
Read the file "INSTALL" for more information on compiling.
|
Read the file "INSTALL" for more information on compiling.
|
||||||
|
@ -554,7 +554,7 @@ AC_DEFUN([LYX_USE_FRONTENDS],
|
|||||||
[AC_MSG_CHECKING([what frontend should be used for the GUI])
|
[AC_MSG_CHECKING([what frontend should be used for the GUI])
|
||||||
AC_ARG_WITH(frontend,
|
AC_ARG_WITH(frontend,
|
||||||
[ --with-frontend=THIS Use THIS frontend as main GUI:
|
[ --with-frontend=THIS Use THIS frontend as main GUI:
|
||||||
Possible values: xforms, qt, gtk(EXPERIMENTAL)],
|
Possible values: qt, gtk(EXPERIMENTAL)],
|
||||||
[FRONTENDS="$withval"])
|
[FRONTENDS="$withval"])
|
||||||
if test "x$FRONTENDS" = x ; then
|
if test "x$FRONTENDS" = x ; then
|
||||||
AC_MSG_RESULT(none)
|
AC_MSG_RESULT(none)
|
||||||
|
@ -70,9 +70,8 @@ public:
|
|||||||
// bool duplex;
|
// bool duplex;
|
||||||
|
|
||||||
/** Test that all the fields contain valid entries. It's unlikely
|
/** Test that all the fields contain valid entries. It's unlikely
|
||||||
that the internal code will get this wrong (at least for the
|
that the internal code will get this wrong however new ports
|
||||||
xforms code anyway) however new ports and external scripts
|
and external scripts might drive the wrong values in.
|
||||||
might drive the wrong values in.
|
|
||||||
*/
|
*/
|
||||||
void testInvariant() const;
|
void testInvariant() const;
|
||||||
///
|
///
|
||||||
|
@ -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
|
|
@ -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
|
|
@ -71,8 +71,6 @@ libcontrollers_la_SOURCES= \
|
|||||||
ControlNote.h \
|
ControlNote.h \
|
||||||
ControlParagraph.C \
|
ControlParagraph.C \
|
||||||
ControlParagraph.h \
|
ControlParagraph.h \
|
||||||
ControlPreamble.C \
|
|
||||||
ControlPreamble.h \
|
|
||||||
ControlPrefs.C \
|
ControlPrefs.C \
|
||||||
ControlPrefs.h \
|
ControlPrefs.h \
|
||||||
ControlPrint.C \
|
ControlPrint.C \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
// * \file xforms/Dialogs.C
|
// * \file gtk/Dialogs.C
|
||||||
* This file is part of LyX, the document processor.
|
* This file is part of LyX, the document processor.
|
||||||
* Licence details can be found in the file COPYING.
|
* Licence details can be found in the file COPYING.
|
||||||
*
|
*
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* Licence details can be found in the file COPYING.
|
* Licence details can be found in the file COPYING.
|
||||||
*
|
*
|
||||||
* \author John Spray
|
* \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.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
@ -793,7 +793,7 @@ void GDocument::apply()
|
|||||||
newbranch->setSelected((*row)[branchColActivated_]);
|
newbranch->setSelected((*row)[branchColActivated_]);
|
||||||
Glib::ustring const color = (*row)[branchColColor_];
|
Glib::ustring const color = (*row)[branchColColor_];
|
||||||
// FIXME: The color should be editable via a color
|
// 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
|
// setColor will silently ignore an invalid color and
|
||||||
// use the normal background color for now.
|
// use the normal background color for now.
|
||||||
newbranch->setColor(color);
|
newbranch->setColor(color);
|
||||||
|
Loading…
Reference in New Issue
Block a user