]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Makefile.am
On Mac, moving down a paragraph should place the cursor at the end of the current...
[lyx.git] / src / frontends / qt4 / Makefile.am
index 83c940e20654820589f05b6ba0ab475760fd9e9b..fc42e9b9d6e0b2b079350f59e344aefcd6601263 100644 (file)
@@ -10,17 +10,22 @@ CLEANFILES += $(BUILT_SOURCES)
 # 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>" >> $@
@@ -53,9 +58,11 @@ SOURCEFILES = \
        Action.cpp \
        BulletsModule.cpp \
        ButtonController.cpp \
+       CategorizedCombo.cpp \
        ColorCache.cpp \
        CustomizedWidgets.cpp \
        EmptyTable.cpp \
+       FancyLineEdit.cpp \
        FileDialog.cpp \
        FindAndReplace.cpp \
        FloatPlacement.cpp \
@@ -100,7 +107,7 @@ SOURCEFILES = \
        GuiListings.cpp \
        GuiLog.cpp \
        GuiMathMatrix.cpp \
-       GuiNomencl.cpp \
+       GuiNomenclature.cpp \
        GuiNote.cpp \
        GuiPainter.cpp \
        GuiParagraph.cpp \
@@ -132,6 +139,7 @@ SOURCEFILES = \
        GuiWorkArea.cpp \
        GuiWrap.cpp \
        IconPalette.cpp \
+       InGuiThread.cpp \
        InsertTableWidget.cpp \
        InsetParamsDialog.cpp \
        InsetParamsWidget.cpp \
@@ -160,6 +168,7 @@ NOMOCHEADER = \
        GuiImage.h \
        GuiKeySymbol.h \
        GuiPainter.h \
+       GuiWorkArea_Private.h \
        LaTeXHighlighter.h \
        qt_i18n.h \
        qt_helpers.h \
@@ -168,8 +177,10 @@ NOMOCHEADER = \
 MOCHEADER = \
        Action.h \
        BulletsModule.h \
+       CategorizedCombo.h \
        CustomizedWidgets.h \
        EmptyTable.h \
+       FancyLineEdit.h \
        FindAndReplace.h \
        FloatPlacement.h \
        GuiAbout.h \
@@ -206,7 +217,7 @@ MOCHEADER = \
        GuiListings.h \
        GuiLog.h \
        GuiMathMatrix.h \
-       GuiNomencl.h \
+       GuiNomenclature.h \
        GuiNote.h \
        GuiParagraph.h \
        GuiPhantom.h \
@@ -237,6 +248,7 @@ MOCHEADER = \
        GuiWorkArea.h \
        GuiWrap.h \
        IconPalette.h \
+       InGuiThread.h \
        InsertTableWidget.h \
        InsetParamsDialog.h \
        InsetParamsWidget.h \
@@ -307,6 +319,7 @@ UIFILES = \
        PrefColorsUi.ui \
        PrefCompletionUi.ui \
        PrefConvertersUi.ui \
+       PrefDocHandlingUi.ui \
        PrefOutputUi.ui \
        PrefDisplayUi.ui \
        PrefEditUi.ui \