mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-16 16:18:22 +00:00
efc7359015
Normally the two stages of drawing are 1/ compute metrics of insets/rows/paragraphs/mathrow... 2/ draw the elements and cache their positions Now the three stages are 1/ metrics 2/ nodraw: do not draw the elements, but cache their position 3/ draw the elements (and store again their position; it does not seems to hurt performance). Revive the NullPainter: this replaces the setDrawingEnabled mechanism with a painter that does nothing. The advantage is that updatePosCache (renamed from setPosCache) does not need anymore to be invoked from the frontend. updatePosCache (the nodraw stage) is called at the end of BufferView::updateMetrics.
53 lines
989 B
Makefile
53 lines
989 B
Makefile
include $(top_srcdir)/config/common.am
|
|
|
|
SUBDIRS = $(FRONTENDS_SUBDIRS) .
|
|
|
|
DIST_SUBDIRS = qt4 .
|
|
|
|
noinst_LIBRARIES = liblyxfrontends.a
|
|
|
|
AM_CPPFLAGS += -I$(srcdir)/.. \
|
|
$(BOOST_INCLUDES) $(ICONV_INCLUDES) $(ZLIB_INCLUDES)
|
|
|
|
liblyxfrontends_a_SOURCES = \
|
|
alert.h \
|
|
Application.h \
|
|
FontLoader.h \
|
|
FontMetrics.h \
|
|
Delegates.h \
|
|
KeyModifier.h \
|
|
KeySymbol.h \
|
|
NullPainter.h \
|
|
Painter.h \
|
|
Clipboard.h \
|
|
Selection.h \
|
|
WorkArea.h \
|
|
WorkAreaManager.cpp \
|
|
WorkAreaManager.h \
|
|
mouse_state.h
|
|
|
|
################################# Tests ################################
|
|
|
|
EXTRA_DIST = \
|
|
CMakeLists.txt \
|
|
tests/CMakeLists.txt \
|
|
tests/test_biblio.cmake \
|
|
tests/test_biblio \
|
|
tests/regfiles/biblio
|
|
|
|
TESTS = \
|
|
tests/test_biblio
|
|
|
|
check_PROGRAMS = \
|
|
biblio
|
|
|
|
biblio_LDADD = $(BOOST_LIBS) $(ICONV_LIBS) $(ZLIB_LIBS)
|
|
biblio_SOURCES = \
|
|
tests/biblio.cpp \
|
|
tests/boost.cpp
|
|
|
|
makeregfiles: ${check_PROGRAMS}
|
|
for all in ${check_PROGRAMS} ; do \
|
|
./$$all > ${srcdir}/tests/regfiles/$$all ; \
|
|
done
|