# 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 \
GuiCommandBuffer.cpp \
GuiCommandEdit.cpp \
GuiCompare.cpp \
+ GuiCompareHistory.cpp \
GuiCompleter.cpp \
GuiDelimiter.cpp \
GuiDialog.cpp \
GuiErrorList.cpp \
GuiERT.cpp \
GuiExternal.cpp \
- GuiFloat.cpp \
GuiFontExample.cpp \
GuiFontLoader.cpp \
GuiFontMetrics.cpp \
GuiInfo.cpp \
GuiKeySymbol.cpp \
GuiLabel.cpp \
+ GuiLine.cpp \
GuiListings.cpp \
GuiLog.cpp \
GuiMathMatrix.cpp \
- GuiNomencl.cpp \
+ GuiNomenclature.cpp \
GuiNote.cpp \
GuiPainter.cpp \
GuiParagraph.cpp \
GuiWorkArea.cpp \
GuiWrap.cpp \
IconPalette.cpp \
+ InGuiThread.cpp \
InsertTableWidget.cpp \
- InsetDialog.cpp \
+ InsetParamsDialog.cpp \
+ InsetParamsWidget.cpp \
LengthCombo.cpp \
LyXFileDialog.cpp \
LaTeXHighlighter.cpp \
BulletsModule.h \
CustomizedWidgets.h \
EmptyTable.h \
+ FancyLineEdit.h \
FindAndReplace.h \
FloatPlacement.h \
GuiAbout.h \
GuiCommandBuffer.h \
GuiCommandEdit.h \
GuiCompare.h \
+ GuiCompareHistory.h \
GuiCompleter.h \
GuiDelimiter.h \
GuiDialog.h \
GuiErrorList.h \
GuiERT.h \
GuiExternal.h \
- GuiFloat.h \
GuiGraphics.h \
GuiHSpace.h \
GuiHyperlink.h \
GuiIndices.h \
GuiInfo.h \
GuiLabel.h \
+ GuiLine.h \
GuiListings.h \
GuiLog.h \
GuiMathMatrix.h \
- GuiNomencl.h \
+ GuiNomenclature.h \
GuiNote.h \
GuiParagraph.h \
GuiPhantom.h \
GuiWorkArea.h \
GuiWrap.h \
IconPalette.h \
+ InGuiThread.h \
InsertTableWidget.h \
- InsetDialog.h \
+ InsetParamsDialog.h \
+ InsetParamsWidget.h \
LayoutBox.h \
LengthCombo.h \
LyXFileDialog.h \
ChangesUi.ui \
CharacterUi.ui \
CitationUi.ui \
+ ColorUi.ui \
CompareUi.ui \
+ CompareHistoryUi.ui \
DelimiterUi.ui \
DocumentUi.ui \
ErrorListUi.ui \
ExternalUi.ui \
FindAndReplaceUi.ui \
FloatPlacementUi.ui \
- FloatUi.ui \
FontUi.ui \
GraphicsUi.ui \
HSpaceUi.ui \
IndexUi.ui \
IndicesUi.ui \
InfoUi.ui \
+ InsetParamsUi.ui \
LabelUi.ui \
LanguageUi.ui \
LaTeXUi.ui \
+ LineUi.ui \
ListingsUi.ui \
ListingsSettingsUi.ui \
+ LocalLayoutUi.ui \
LogUi.ui \
MarginsUi.ui \
MasterChildUi.ui \
PrefColorsUi.ui \
PrefCompletionUi.ui \
PrefConvertersUi.ui \
- PrefDateUi.ui \
+ PrefOutputUi.ui \
PrefDisplayUi.ui \
PrefEditUi.ui \
PrefFileformatsUi.ui \
PrefLanguageUi.ui \
PrefLatexUi.ui \
PrefPathsUi.ui \
- PrefPlaintextUi.ui \
PrefPrinterUi.ui \
PrefScreenFontsUi.ui \
PrefShortcutsUi.ui \
$(MOCHEADER) \
$(NOMOCHEADER)
-EXTRA_DIST = pch.h ui/compile_uic.sh $(UIFILES:%=ui/%)
+EXTRA_DIST = pch.h $(UIFILES:%=ui/%)
BUILT_SOURCES += $(PCH_FILE)
AM_CPPFLAGS += $(PCH_FLAGS)