# Use _() for localization instead of tr() or trUtf8()
UIC4FLAGS=-tr lyx::qt_
+# The ui_%.h pattern must match the filter in ../../../po/Rules-lyx
ui_%.h: ui/%.ui
$(AM_V_GEN)$(UIC4) $(UIC4FLAGS) $< -o $@
MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
+QT_VERSION = $(shell IFS=.; set -- `echo $(QT4_VERSION)`; \
+ echo 0x0`echo "obase=16; $$1*65536+$$2*256+$$3" | bc`)
+
+# The moc_%.cpp pattern must match the filter in ../../../po/Rules-lyx
moc_%.cpp: %.h
- $(AM_V_GEN)$(MOC4) -o $@ $<
+ $(AM_V_GEN)$(MOC4) -DQT_VERSION=$(QT_VERSION) -o $@ $<
Resources.qrc: Makefile
$(AM_V_GEN)echo "<!DOCTYPE RCC><RCC version='1.0'><qresource>" > $@ ; \
- find $(top_srcdir)/lib/images -name '*.png' \
+ find $(top_srcdir)/lib/images -name '*.png' -o -name '*.gif' \
| sed -e 's:$(top_srcdir)/lib/\(.*\):<file alias="\1">&</file>:' \
>> $@ ;\
echo "</qresource></RCC>" >> $@
ColorCache.cpp \
CustomizedWidgets.cpp \
EmptyTable.cpp \
+ FancyLineEdit.cpp \
FileDialog.cpp \
FindAndReplace.cpp \
FloatPlacement.cpp \
GuiListings.cpp \
GuiLog.cpp \
GuiMathMatrix.cpp \
- GuiNomencl.cpp \
+ GuiNomenclature.cpp \
GuiNote.cpp \
GuiPainter.cpp \
GuiParagraph.cpp \
BulletsModule.h \
CustomizedWidgets.h \
EmptyTable.h \
+ FancyLineEdit.h \
FindAndReplace.h \
FloatPlacement.h \
GuiAbout.h \
GuiListings.h \
GuiLog.h \
GuiMathMatrix.h \
- GuiNomencl.h \
+ GuiNomenclature.h \
GuiNote.h \
GuiParagraph.h \
GuiPhantom.h \