+2000-12-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * INSTALL: update PROBLEMS section.
+
+ * src/lyxlookup.h: remove condition on xforms version, since we
+ should not include it if not appropriate.
+
+2000-12-05 John Levon <moz@compsoc.man.ac.uk>
+
+ * src/LColor.C: "latex text" -> "latex inset" (from
+ Angus Leeming)
+
+ * src/lyxrc.C: "it's" -> "its" (from Angus Leeming)
+
+ * src/frontends/kde/FormTabularCreate.C:
+ * src/frontends/kde/citationdlg.C:
+ * src/frontends/kde/copyrightdlg.C:
+ * src/frontends/kde/paradlg.C:
+ * src/frontends/kde/paraextradlg.C:
+ * src/frontends/kde/parageneraldlg.C:
+ * src/frontends/kde/printdlg.C:
+ * src/frontends/kde/refdlg.C:
+ * src/frontends/kde/tabcreatedlg.C:
+ * src/frontends/kde/tocdlg.C:
+ * src/frontends/kde/urldlg.C: add necessary headers
+ (from Angus Leeming)
+
+ * src/frontends/kde/dlg/emptytable.C:
+ * src/frontends/kde/dlg/tabstack.C: ctors shouldn't have
+ default parameters (from Angus Leeming)
+
+ * src/frontends/kde/dlg/moc/.cvsignore:
+ * src/frontends/kde/dlg/.cvsignore:
+ * src/frontends/kde/moc/.cvsignore: fix the library name
+ (from Angus Leeming)
+
+ * src/frontends/kde/paradlg.C:
+ * src/frontends/kde/parageneraldlg.C:
+ * src/frontends/kde/dlg/para.dlg:
+ * src/frontends/kde/dlg/paradlgdata.C: added accelerators
+
+ * src/frontends/kde/dlg/README: clarified qtarch version
+
+ * src/frontends/kde/dlg/Makefile.am: removed the
+ dlg rules as they created spontaneous rebuilds
+ (not a good idea as it requires qtarch)
+
2000-12-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* config/lyxinclude.m4 (LYX_PATH_XFORMS): display also the
will be solved if you use --with-included-gettext when configuring
LyX.
- o It is possible to compile lyx with Digital Unix cxx compiler
- version 6.1 (and presumably compaq C++ 6.2 on both Tru64 unix and
- linux/alpha, when this will be available), provided one uses
+ o It is possible to compile lyx with Tru64 Unix cxx compiler
+ version 6.2, provided one uses
CXX=cxx
CXXFLAGS='-ptr /tmp/lyx_cxx_repository -std strict_ansi -g -O'
repository, due to the tricks used by automake for dependencies. Ask
Jean-Marc.Lasgouttes@inria.fr for a workaround.
- o On Digital Unix with cxx, you may have a compilation error in
+ o On Tru64 Unix, you may have to compile with
+ --with-included-string to work around a Tru64 linker limitation
+ (the STL string template creates names which may be too long).
+
+ o On Tru64 Unix with cxx, you may have a compilation error in
lyx_main.C if you have GNU gettext installed. This is due to a bug
in gettext. To solve this, you can either (1) configure with
--with-included-gettext or (2) add -D__STDC__ to cxx flags.
- o The configure script seems to hang while it is checking the LaTeX setup.
- We think that this is not a real problem, but rather a symptom of the
- fact that the ec-fonts are being rendered. This process can take quite
- some time, so the remedy is simply to have patience. (The fonts need to
- be rendered at some point to be usable anyways.)
-
o According to John Collins <collins@phys.psu.edu>, on SunOS 4.1.3 you may
find two sets of X libraries, and they are of course incompatible :-)
One is the set provided as part of OpenWindows, and one is the standard
{ footnote, N_("footnote"), "footnote", "DarkRed", "footnote" },
{ footnotebg, N_("footnote background"), "footnotebg", "grey60", "footnotebg" },
{ footnoteframe, N_("footnote frame"), "footnoteframe", "IndianRed", "footnoteframe" },
- { ert, N_("latex text"), "ert", "DarkRed", "ert" },
+ { ert, N_("latex inset"), "ert", "DarkRed", "ert" },
{ inset, N_("inset"), "inset", "black", "inset" },
{ insetbg, N_("inset background"), "insetbg", "grey60", "insetbg" },
{ insetframe, N_("inset frame"), "insetframe", "IndianRed", "insetframe" },
#include "BufferView.h"
#include "insets/insettabular.h"
-using std::endl;
-
FormTabularCreate::FormTabularCreate(LyXView *v, Dialogs *d)
: dialog_(0), lv_(v), d_(d), h_(0)
{
* *
***************************************************************************/
+#include <config.h>
#include "citationdlg.h"
CitationDialog::CitationDialog(FormCitation *form, QWidget *parent, const char *name, bool, WFlags)
*********************************************************************/
+#include <config.h>
#include "copyrightdlg.h"
#define Inherited CopyrightDialogData
*.deps
*.lo
.libs
-libkde.la
+libkdedlg.la
*moc.C
tabstack.h \
$(GENSOURCES)
-# dialog file dependencies
-
-copyrightdlgdata.C copyrightdlgdata.h: dialogs/copyright.dlg
- $(QTARCH) -g $<
-indexdlgdata.C indexdlgdata.h: dialogs/index.dlg
- $(QTARCH) -g $<
-printdlgdata.C printdlgdata.h: dialogs/print.dlg
- $(QTARCH) -g $<
-paradlgdata.C paradlgdata.h: dialogs/para.dlg
- $(QTARCH) -g $<
-parageneraldlgdata.C parageneraldlgdata.h: dialogs/parageneral.dlg
- $(QTARCH) -g $<
-paraabovedlgdata.C paraabovedlgdata.h: dialogs/paraabove.dlg
- $(QTARCH) -g $<
-parabelowdlgdata.C parabelowdlgdata.h: dialogs/parabelow.dlg
- $(QTARCH) -g $<
-paraextradlgdata.C paraextradlgdata.h: dialogs/paraextra.dlg
- $(QTARCH) -g $<
-tabcreatedlgdata.C tabcreatedlgdata.h: dialogs/tabcreate.dlg
- $(QTARCH) -g $<
-
-dlgdata: $(GENSOURCES)
-
moc/copyrightdlgdata_moc.C: copyrightdlgdata.C copyrightdlgdata.h
moc/emptytable_moc.C: emptytable.C emptytable.h
moc/indexdlgdata_moc.C: indexdlgdata.C indexdlgdata.h
-These files are generated with qtarch-1.4-6 which can be downloaded
+These files are generated with qtarch-1.4-5 which can be downloaded
from
http://qtarch.sourceforge.net/
Currently you also need this patch :
http://www.movement.uklinux.net/patches/lyx/qtarch-1.4.6.diff
-
+
+Eventually the intent is to fold this patch into the official qtarch and
+release a qtarch-1.4-6 tarball.
+
Note this is *not* the latest version, as they only support Qt 2.0.
You should compile in the KDE module when you compile qtarch-1.4.
Default {true}
AutoDefault {false}
IsMenuButton {false}
- Text {OK}
+ Text {&OK}
AutoRepeat {false}
AutoResize {false}
Rect {73 555 69 55}
Default {false}
AutoDefault {false}
IsMenuButton {false}
- Text {Apply}
+ Text {&Apply}
AutoRepeat {false}
AutoResize {false}
Rect {215 555 68 55}
Default {false}
AutoDefault {false}
IsMenuButton {false}
- Text {Restore}
+ Text {&Restore}
AutoRepeat {false}
AutoResize {false}
Rect {357 555 68 55}
Default {false}
AutoDefault {false}
IsMenuButton {false}
- Text {Cancel}
+ Text {&Cancel}
AutoRepeat {false}
AutoResize {false}
Rect {498 555 69 55}
const unsigned int cellsize = 20;
-EmptyTable::EmptyTable(QWidget * parent = 0, const char * name = 0)
+EmptyTable::EmptyTable(QWidget * parent, const char * name)
: QTableView(parent,name)
{
setNumCols(5);
*.deps
*.lo
.libs
-libkde.la
+libkdedlgmoc.la
*moc.C
--- Qt Architect 1.4-6 generated file ---
File: paradlgdata.C
- Last generated: Mon Dec 4 18:21:54 2000
+ Last generated: Tue Dec 5 17:05:19 2000
DO NOT EDIT!!! This file will be automatically
regenerated by qtarch. All changes will be lost.
ok->setBackgroundMode( QWidget::PaletteBackground );
ok->setFontPropagation( QWidget::NoChildren );
ok->setPalettePropagation( QWidget::NoChildren );
- ok->setText( _("OK") );
+ ok->setText( _("&OK") );
ok->setAutoRepeat( false );
ok->setAutoResize( false );
ok->setToggleButton( false );
apply->setBackgroundMode( QWidget::PaletteBackground );
apply->setFontPropagation( QWidget::NoChildren );
apply->setPalettePropagation( QWidget::NoChildren );
- apply->setText( _("Apply") );
+ apply->setText( _("&Apply") );
apply->setAutoRepeat( false );
apply->setAutoResize( false );
apply->setToggleButton( false );
restore->setBackgroundMode( QWidget::PaletteBackground );
restore->setFontPropagation( QWidget::NoChildren );
restore->setPalettePropagation( QWidget::NoChildren );
- restore->setText( _("Restore") );
+ restore->setText( _("&Restore") );
restore->setAutoRepeat( false );
restore->setAutoResize( false );
restore->setToggleButton( false );
cancel->setBackgroundMode( QWidget::PaletteBackground );
cancel->setFontPropagation( QWidget::NoChildren );
cancel->setPalettePropagation( QWidget::NoChildren );
- cancel->setText( _("Cancel") );
+ cancel->setText( _("&Cancel") );
cancel->setAutoRepeat( false );
cancel->setAutoResize( false );
cancel->setToggleButton( false );
--- Qt Architect 1.4-6 generated file ---
File: paradlgdata.h
- Last generated: Mon Dec 4 18:21:54 2000
+ Last generated: Tue Dec 5 17:05:19 2000
DO NOT EDIT!!! This file will be automatically
regenerated by qtarch. All changes will be lost.
* A tab bar and a widget stack for storing related pages.
*/
-TabStack::TabStack(QWidget * parent = 0, const char * name = 0)
+TabStack::TabStack(QWidget * parent, const char * name)
: QWidget(parent,name), tabs(0), stack(0)
{
stack = new QWidgetStack(this, "stack");
*.deps
*.lo
.libs
-libkde.la
+libkdemoc.la
*moc.C
* *
***************************************************************************/
+#include <config.h>
#include "support/lstrings.h"
#include "paradlg.h"
generalpage = new ParaGeneralDialog(this, "generalpage");
extrapage = new ParaExtraDialog(this, "extrapage");
- tabstack->addTabPage(generalpage, _("General"));
- tabstack->addTabPage(extrapage, _("Extra"));
+ tabstack->addTabPage(generalpage, _("&General"));
+ tabstack->addTabPage(extrapage, _("&Extra"));
}
ParaDialog::~ParaDialog()
*********************************************************************/
+#include <config.h>
#include "paraextradlg.h"
#include <gettext.h>
*********************************************************************/
+#include <config.h>
#include "parageneraldlg.h"
#include <gettext.h>
// FIXME: free punctuation to whoever can make the value
// boxes not be overly large
- spacetab->addTabPage(abovepage, _("Spacing Above"));
- spacetab->addTabPage(belowpage, _("Spacing Below"));
+ spacetab->addTabPage(abovepage, _("&Spacing Above"));
+ spacetab->addTabPage(belowpage, _("Spacing &Below"));
connect(abovepage->spaceabove, SIGNAL(highlighted(int)), this, SLOT(spaceaboveHighlighted(int)));
connect(belowpage->spacebelow, SIGNAL(highlighted(int)), this, SLOT(spacebelowHighlighted(int)));
* John Levon, moz@compsoc.man.ac.uk
*/
+#include <config.h>
#include "dlg/printdlgdata.h"
#include "printdlg.h"
#include "support/lstrings.h"
* *
***************************************************************************/
+#include <config.h>
#include "refdlg.h"
RefDialog::RefDialog(FormRef *form, QWidget *parent, const char *name, bool, WFlags)
* John Levon, <moz@compsoc.man.ac.uk>
*/
+#include <config.h>
#include "tabcreatedlg.h"
#include "support/lstrings.h"
* *
***************************************************************************/
+#include <config.h>
#include "tocdlg.h"
TocDialog::TocDialog(FormToc *form, QWidget *parent, const char *name, bool, WFlags)
* *
***************************************************************************/
+#include <config.h>
#include "urldlg.h"
UrlDialog::UrlDialog(FormUrl *form, QWidget *parent, const char *name, bool, WFlags)
#include "ButtonController.h"
#include "support/LAssert.h"
+#include "gettext.h" // _()
//#include "debug.h"
if (cancel_) {
if (bp_->buttonStatus(ButtonPolicy::CANCEL)) {
fl_set_object_label(cancel_,
- cancel_label);
+ _(cancel_label));
} else {
fl_set_object_label(cancel_,
- close_label);
+ _(close_label));
}
}
if (!read_only_.empty()) {
str = formatted(str, dialog_->text_warning->w-10,
FL_SMALL_SIZE, FL_NORMAL_STYLE);
- fl_set_object_label(dialog_->text_warning, str.c_str());
+ fl_set_object_label(dialog_->text_warning, _(str.c_str()));
fl_set_object_lsize(dialog_->text_warning, FL_SMALL_SIZE);
}
xformColorDB.clear();
XformColor xcol;
- xcol.name = N_("GUI background");
+ xcol.name = _("GUI background");
xcol.colorID = FL_COL1;
fl_getmcolor(FL_COL1, &xcol.r, &xcol.g, &xcol.b);
xformColorDB.push_back(xcol);
- xcol.name = N_("GUI text");
+ xcol.name = _("GUI text");
xcol.colorID = FL_BLACK;
fl_getmcolor(FL_BLACK, &xcol.r, &xcol.g, &xcol.b);
xformColorDB.push_back(xcol);
- xcol.name = N_("GUI selection");
+ xcol.name = _("GUI selection");
xcol.colorID = FL_YELLOW;
fl_getmcolor(FL_YELLOW, &xcol.r, &xcol.g, &xcol.b);
xformColorDB.push_back(xcol);
- xcol.name = N_("GUI pointer");
+ xcol.name = _("GUI pointer");
xcol.colorID = GUI_COLOR_CURSOR;
fl_getmcolor(GUI_COLOR_CURSOR, &xcol.r, &xcol.g, &xcol.b);
{
if (ob == dialog_->button_bind_file_browse) {
string dir = system_lyxdir + string("bind");
- string name = N_("Sys Bind");
+ string name = _("Sys Bind");
pair<string,string> dir1(name, dir);
dir = user_lyxdir + string("bind");
- name = N_("User Bind");
+ name = _("User Bind");
pair<string,string> dir2(name, dir);
parent_.browse(dialog_->input_bind_file,
} else if (ob == dialog_->button_ui_file_browse) {
string dir = system_lyxdir + string("ui");
- string name = N_("Sys UI");
+ string name = _("Sys UI");
pair<string,string> dir1(name, dir);
dir = user_lyxdir + string("ui");
- name = N_("User UI");
+ name = _("User UI");
pair<string,string> dir2(name, dir);
parent_.browse(dialog_->input_ui_file,
str = formatted(str, dialog_->text_warning->w-10,
FL_SMALL_SIZE, FL_NORMAL_STYLE);
- fl_set_object_label(dialog_->text_warning, str.c_str());
+ fl_set_object_label(dialog_->text_warning, _(str.c_str()));
fl_set_object_lsize(dialog_->text_warning, FL_SMALL_SIZE);
}
fl_set_object_lalign(obj, FL_ALIGN_CENTER);
fdui->radio_button_group_width = fl_bgn_group();
+ // xgettext:no-c-format
fdui->radio_width_percent_page = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 20, 140, 80, 30, _("% of Page"));
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
fdui->radio_width_default = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 20, 80, 80, 30, _("Default"));
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
fdui->radio_width_inch = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 20, 120, 80, 30, _("Inch"));
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
+ // xgettext:no-c-format
fdui->radio_width_percent_column = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 20, 160, 96, 30, _("% of Column"));
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
fl_end_group();
fdui->radio_button_group_height = fl_bgn_group();
+ // xgettext:no-c-format
fdui->radio_height_percent_page = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 140, 140, 96, 30, _("% of Page"));
fl_set_object_callback(obj, C_FormBaseInputCB, CHECKINPUT);
fdui->radio_height_inch = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 140, 120, 96, 30, _("Inch"));
fl_set_button_shortcut(obj, scex(_("Length|#L")), 1);
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
+ // xgettext:no-c-format
fdui->input_pextra_widthp = obj = fl_add_input(FL_INT_INPUT, 240, 70, 90, 30, idex(_("or %|#o")));
fl_set_button_shortcut(obj, scex(_("or %|#o")), 1);
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
fdui->input_typewriter = obj = fl_add_input(FL_NORMAL_INPUT, 210, 65, 200, 30, _("Typewriter"));
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
fl_set_object_callback(obj, C_FormBaseInputCB, 0);
+ // xgettext:no-c-format
fdui->counter_zoom = obj = fl_add_counter(FL_NORMAL_COUNTER, 310, 130, 100, 30, idex(_("Zoom %|#Z")));
fl_set_button_shortcut(obj, scex(_("Zoom %|#Z")), 1);
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
# replace the string with scex(_(string))
/shortcut/ s/".*[|].*"/scex(_(&))/
-
# For all lines containing "fl_add" and a string containing |, replace
# the string with idex(_(string))
/fl_add/ s/".*[|].*"/idex(_(&))/
-# For all lines containing "fl_add" and a string containing |, add the
-# shortcut command after the end of this line
+# For all lines containing "fl_add" and a string containing |, add the
+# shortcut command after the end of this line
/fl_add/ s/idex(\(.*\)").*$/&\
fl_set_button_shortcut(obj,scex(\1")),1);/
+# gettext will get confused if the string contains a "%" unless the line is
+# preceeded immediately by //xgettext:no-c-format
+/_(".*[%].*")/i\
+ // xgettext:no-c-format
+
# We use new/delete not malloc/free so change to suit.
s/\(\(FD_[^ ]*\) \*fdui =\).*sizeof(\*fdui))/\1 new \2/
functions. This should probably be moved into LyXView (to have
different input methods for different frames, but for now we can
keep it as it is. */
+#ifndef LYXLOOKUP_H
+#define LYXLOOKUP_H
#include <config.h>
-#include FORMS_H_LOCATION
-#if FL_REVISION < 89
-//#include <X11/Xlib.h>
+#include <X11/Xlib.h>
/// Initialize the compose key handling
-extern void InitLyXLookup(Display *, Window ) ;
+extern void InitLyXLookup(Display *, Window);
/// Read a keysym and/or a string (like XLookupString)
extern int LyXLookupString(XEvent * event,
/// Call this when you destroy your window
extern void CloseLyXLookup();
+
#endif
break;
case RC_SCREEN_ZOOM:
+ //xgettext:no-c-format
str = N_("The zoom percentage for screen fonts. A setting of 100% will make the fonts roughly the same size as on paper.");
break;
break;
case RC_TEMPDIRPATH:
- str = N_("LyX will place it's temporary directories in this path. They will be deleted when you quit LyX.");
+ str = N_("LyX will place its temporary directories in this path. They will be deleted when you quit LyX.");
break;
case RC_USETEMPDIR:
break;
case RC_DATE_INSERT_FORMAT:
+ //xgettext:no-c-format
str = N_("This accepts the normal strftime formats; see man strftime for full details. E.g.\"%A, %e. %B %Y\".");
break;