mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
00edcc582f
Basically, I replaced all methods in the font_metrics namespace by a proper virtual interface FontMetrics. The FontLoader is _the_ container for FontMetrics. This patch should also bring some optimizations in a number of place in the code. This is because we do not need any more to search for the LyXFont at each font_metrics call. In effect, the speed advantage is not as sensible and this is a bit deceiving considering that this was my primary motivation behind the patch. But I like the patch anyway as it cleans up the relation and interfacing between fonts, metrics and frontends. * frontends/FontMetrics.h: new virtual interface. Renamed from font_metrics.h * qt4/GuiFontMetrics: corresponding qt4 implememtation. Renamed from qfont_metrics.C. The smallCaps particular case treatment has been transfered here as well as the width cache for MacOSX and Windows. * qt4/QLPainter.C: the smallCapsText has been reworked to return the width of the drawn text.C all other files: replace font_metric helper function call with corresponding FontMetrics method calls. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15265 a592a061-630c-0410-9148-cb99ea01b6c8
95 lines
2.1 KiB
Makefile
95 lines
2.1 KiB
Makefile
include $(top_srcdir)/config/common.am
|
|
include $(srcdir)/Makefile.dialogs
|
|
|
|
SUBDIRS = ui
|
|
|
|
EXTRA_DIST = pch.h Makefile.dialogs
|
|
|
|
DISTCLEANFILES += *_moc.cpp
|
|
|
|
libqt4_la_DEPENDENCIES = $(MOCEDFILES)
|
|
|
|
MOCEDFILES = $(MOCFILES:.C=_moc.cpp)
|
|
|
|
%_moc.cpp: %.h
|
|
$(MOC4) -o $@ $<
|
|
|
|
BUILT_SOURCES = $(PCH_FILE) $(MOCEDFILES)
|
|
|
|
noinst_LTLIBRARIES = libqt4.la
|
|
|
|
libqt4_la_LDFLAGS = $(QT4_LDFLAGS)
|
|
libqt4_la_LIBADD = $(QT4_LIB)
|
|
AM_CPPFLAGS += \
|
|
$(QT4_CPPFLAGS) \
|
|
$(PCH_FLAGS) \
|
|
-I$(top_srcdir)/src \
|
|
-I$(top_srcdir)/src/frontends \
|
|
-I$(top_srcdir)/images \
|
|
$(QT4_INCLUDES) $(BOOST_INCLUDES) \
|
|
-I$(top_srcdir)/src/frontends/controllers
|
|
|
|
libqt4_la_SOURCES = \
|
|
Alert_pimpl.C \
|
|
ColorCache.h ColorCache.C \
|
|
Dialogs.C \
|
|
FileDialog.C \
|
|
GuiApplication.C GuiApplication.h \
|
|
GuiClipboard.h GuiClipboard.C \
|
|
GuiFontLoader.h GuiFontLoader.C \
|
|
GuiFontMetrics.h GuiFontMetrics.C \
|
|
GuiSelection.h GuiSelection.C \
|
|
GuiImplementation.h GuiImplementation.C \
|
|
LyXKeySymFactory.C \
|
|
QLMenubar.C QLMenubar.h \
|
|
QAbout.C QAbout.h \
|
|
QBibitem.C QBibitem.h \
|
|
QBibtex.C QBibtex.h \
|
|
QBox.C QBox.h \
|
|
QBranch.C QBranch.h \
|
|
QBranches.C QBranches.h \
|
|
QChanges.C QChanges.h \
|
|
QCharacter.C QCharacter.h \
|
|
QCitation.C QCitation.h \
|
|
QDocument.C QDocument.h \
|
|
QDialogView.C QDialogView.h \
|
|
QErrorList.C QErrorList.h \
|
|
QERT.C QERT.h \
|
|
QExternal.C QExternal.h \
|
|
QFloat.C QFloat.h \
|
|
QGraphics.C QGraphics.h \
|
|
QInclude.C QInclude.h \
|
|
QIndex.C QIndex.h \
|
|
QLImage.C QLImage.h \
|
|
QLog.C QLog.h \
|
|
QViewSource.C QViewSource.h \
|
|
QLPainter.C QLPainter.h \
|
|
QLyXKeySym.C QLyXKeySym.h \
|
|
QMath.C QMath.h \
|
|
QNote.C QNote.h \
|
|
QParagraph.C QParagraph.h \
|
|
QPrefs.C QPrefs.h \
|
|
QPrint.C QPrint.h \
|
|
QRef.C QRef.h \
|
|
QSearch.C QSearch.h \
|
|
QSendto.C QSendto.h \
|
|
QShowFile.C QShowFile.h \
|
|
QSpellchecker.C QSpellchecker.h \
|
|
QTabular.C QTabular.h \
|
|
QTabularCreate.C QTabularCreate.h \
|
|
QTexinfo.C QTexinfo.h \
|
|
QThesaurus.C QThesaurus.h \
|
|
QToc.C QToc.h \
|
|
QVSpace.C QVSpace.h \
|
|
QWrap.C QWrap.h \
|
|
Qt2BC.C Qt2BC.h \
|
|
checkedwidgets.C checkedwidgets.h \
|
|
lyx_gui.C \
|
|
panelstack.h panelstack.C \
|
|
qfontexample.h qfontexample.C \
|
|
qlkey.h \
|
|
qt_helpers.h qt_helpers.C \
|
|
qtTimeout.C qtTimeout.h \
|
|
UrlView.C UrlView.h \
|
|
$(MOCFILES)
|