include $(top_srcdir)/config/common.am
-CLEANFILES += $(UIFILES:%.ui=ui_%.h)
-CLEANFILES += $(MOCEDFILES)
-
BUILT_SOURCES = $(UIFILES:%.ui=ui_%.h)
BUILT_SOURCES += $(MOCEDFILES)
+BUILT_SOURCES += Resources.cpp Resources.qrc
+
+CLEANFILES += $(BUILT_SOURCES)
-######################### Translation #############################
+######################### Qt stuff #############################
# Use _() for localization instead of tr() or trUtf8()
UIC4FLAGS=-tr lyx::qt_
%_moc.cpp: %.h
$(MOC4) -o $@ $<
+Resources.qrc: Makefile
+ echo "<!DOCTYPE RCC><RCC version='1.0'><qresource>" > $@
+ find $(top_srcdir)/lib/images -name '*.png' \
+ | sed -e 's:$(top_srcdir)/lib/\(.*\):<file alias="\1">&</file>:' \
+ >> $@
+ echo "</qresource></RCC>" >> $@
+
+Resources.cpp: Resources.qrc
+ $(RCC4) $< -name Resources -o $@
+
+
######################### LIBRARIES #############################
-pkglib_LTLIBRARIES = liblyxqt4.la
+noinst_LTLIBRARIES = liblyxqt4.la
liblyxqt4_la_DEPENDENCIES = $(MOCEDFILES)
liblyxqt4_la_LDFLAGS = $(QT4_LDFLAGS)
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/frontends \
-I$(top_srcdir)/images \
- $(QT4_INCLUDES) $(BOOST_INCLUDES) \
- -I$(top_srcdir)/src/frontends/controllers
+ $(QT4_INCLUDES) $(BOOST_INCLUDES)
SOURCEFILES = \
- alert_pimpl.cpp \
- CheckedLineEdit.cpp \
- Dialogs.cpp \
- FileDialog.cpp \
- GuiClipboard.cpp \
- GuiFontLoader.cpp \
- GuiFontMetrics.cpp \
- GuiSelection.cpp \
- KeySymbol.cpp \
- QCitation.cpp \
- QFloat.cpp \
- QFontExample.cpp \
- QLImage.cpp \
- QLPainter.cpp \
- QPrint.cpp \
- Qt2BC.cpp \
- qt_helpers.cpp \
- UrlView.cpp \
+ ButtonPolicy.cpp \
+ ButtonPolicy.h \
+ Dialog.cpp \
+ Dialog.h \
+ Resources.cpp \
Action.cpp \
BulletsModule.cpp \
+ ButtonController.cpp \
ColorCache.cpp \
+ CustomizedWidgets.cpp \
EmptyTable.cpp \
+ FileDialog.cpp \
FloatPlacement.cpp \
+ GuiAbout.cpp \
+ GuiAlert.cpp \
GuiApplication.cpp \
- GuiImplementation.cpp \
+ GuiBibitem.cpp \
+ GuiBibtex.cpp \
+ GuiBox.cpp \
+ GuiBranch.cpp \
+ GuiBranches.cpp \
+ GuiChanges.cpp \
+ GuiCharacter.cpp \
+ GuiCitation.cpp \
+ GuiClipboard.cpp \
+ GuiCommandBuffer.cpp \
+ GuiCommandEdit.cpp \
+ GuiCompleter.cpp \
+ GuiDelimiter.cpp \
+ GuiDialog.cpp \
+ GuiDocument.cpp \
+ GuiErrorList.cpp \
+ GuiERT.cpp \
+ GuiExternal.cpp \
+ GuiFloat.cpp \
+ GuiFontExample.cpp \
+ GuiFontLoader.cpp \
+ GuiFontMetrics.cpp \
+ GuiGraphics.cpp \
+ GuiHSpace.cpp \
+ GuiHyperlink.cpp \
+ GuiIdListModel.cpp \
+ GuiImage.cpp \
+ GuiInclude.cpp \
+ GuiKeySymbol.cpp \
+ GuiLabel.cpp \
+ GuiListings.cpp \
+ GuiLog.cpp \
+ GuiMath.cpp \
+ GuiMathMatrix.cpp \
+ GuiNomencl.cpp \
+ GuiNote.cpp \
+ GuiPainter.cpp \
+ GuiParagraph.cpp \
+ GuiPrefs.cpp \
+ GuiPrint.cpp \
+ GuiRef.cpp \
+ GuiSearch.cpp \
+ GuiSelection.cpp \
+ GuiSelectionManager.cpp \
+ GuiSendto.cpp \
+ GuiSetBorder.cpp \
+ GuiShowFile.cpp \
+ GuiSpellchecker.cpp \
+ GuiSymbols.cpp \
+ GuiTabular.cpp \
+ GuiTabularCreate.cpp \
+ GuiTexinfo.cpp \
+ GuiThesaurus.cpp \
+ GuiToc.cpp \
+ GuiToolbar.cpp \
+ GuiToolbars.cpp \
GuiView.cpp \
+ GuiViewSource.cpp \
+ GuiVSpace.cpp \
GuiWorkArea.cpp \
+ GuiWrap.cpp \
IconPalette.cpp \
InsertTableWidget.cpp \
LengthCombo.cpp \
LyXFileDialog.cpp \
+ LaTeXHighlighter.cpp \
+ Menus.cpp \
PanelStack.cpp \
- QAbout.cpp \
- QBibitem.cpp \
- QBibtex.cpp \
- QBox.cpp \
- QBranch.cpp \
- QBranches.cpp \
- QChanges.cpp \
- QCharacter.cpp \
- QCitationDialog.cpp \
- QCommandBuffer.cpp \
- QCommandEdit.cpp \
- QDelimiterDialog.cpp \
- QDialogView.cpp \
- QDocument.cpp \
- QErrorList.cpp \
- QERT.cpp \
- QExternal.cpp \
- QFloatDialog.cpp \
- QGraphics.cpp \
- QGraphicsDialog.cpp \
- QInclude.cpp \
- QIndex.cpp \
- QKeySymbol.cpp \
- QListings.cpp \
- QLMenubar.cpp \
- QLog.cpp \
- QLPopupMenu.cpp \
- QLPrintDialog.cpp \
- QLToolbar.cpp \
- QMathMatrixDialog.cpp \
- QNomencl.cpp \
- QNote.cpp \
- QParagraph.cpp \
- QPrefs.cpp \
- QRef.cpp \
- QSearch.cpp \
- QSelectionManager.cpp \
- QSendto.cpp \
- QSetBorder.cpp \
- QShowFile.cpp \
- QSpellchecker.cpp \
- QTabular.cpp \
- QTabularCreate.cpp \
- QTexinfo.cpp \
- QThesaurus.cpp \
- QToc.cpp \
- QURLDialog.cpp \
- QViewSource.cpp \
- QVSpace.cpp \
- QWrap.cpp \
- socket_callback.cpp \
+ qt_helpers.cpp \
TocModel.cpp \
TocWidget.cpp \
Validator.cpp
NOMOCHEADER = \
- CheckedLineEdit.h \
- GuiClipboard.h \
+ ButtonController.h \
+ ColorCache.h \
+ DialogView.h \
+ DockView.h \
+ FileDialog.h \
+ GuiCommand.h \
+ GuiFontExample.h \
GuiFontLoader.h \
GuiFontMetrics.h \
- GuiSelection.h \
- QGraphics.h \
- QLImage.h \
- QLPainter.h \
- QPrint.h \
- Qt2BC.h \
+ GuiIdListModel.h \
+ GuiImage.h \
+ GuiKeySymbol.h \
+ GuiMath.h \
+ GuiPainter.h \
+ GuiToolbars.h \
+ LaTeXHighlighter.h \
qt_helpers.h
MOCHEADER = \
Action.h \
BulletsModule.h \
- ColorCache.h \
- DockView.h \
+ CustomizedWidgets.h \
EmptyTable.h \
FloatPlacement.h \
+ GuiAbout.h \
GuiApplication.h \
- GuiImplementation.h \
+ GuiBibitem.h \
+ GuiBibtex.h \
+ GuiBox.h \
+ GuiBranches.h \
+ GuiBranch.h \
+ GuiChanges.h \
+ GuiCharacter.h \
+ GuiCitation.h \
+ GuiClipboard.h \
+ GuiCommandBuffer.h \
+ GuiCommandEdit.h \
+ GuiCompleter.h \
+ GuiDelimiter.h \
+ GuiDialog.h \
+ GuiDocument.h \
+ GuiErrorList.h \
+ GuiERT.h \
+ GuiExternal.h \
+ GuiFloat.h \
+ GuiGraphics.h \
+ GuiHSpace.h \
+ GuiHyperlink.h \
+ GuiInclude.h \
+ GuiLabel.h \
+ GuiListings.h \
+ GuiLog.h \
+ GuiMathMatrix.h \
+ GuiNomencl.h \
+ GuiNote.h \
+ GuiParagraph.h \
+ GuiPrefs.h \
+ GuiPrint.h \
+ GuiRef.h \
+ GuiSearch.h \
+ GuiSelection.h \
+ GuiSelectionManager.h \
+ GuiSendto.h \
+ GuiSetBorder.h \
+ GuiShowFile.h \
+ GuiSpellchecker.h \
+ GuiSymbols.h \
+ GuiTabularCreate.h \
+ GuiTabular.h \
+ GuiTexinfo.h \
+ GuiThesaurus.h \
+ GuiToc.h \
+ GuiToolbar.h \
GuiView.h \
+ GuiViewSource.h \
+ GuiVSpace.h \
GuiWorkArea.h \
+ GuiWrap.h \
IconPalette.h \
InsertTableWidget.h \
LengthCombo.h \
LyXFileDialog.h \
+ Menus.h \
PanelStack.h \
- QAbout.h \
- QBibitem.h \
- QBibtex.h \
- QBox.h \
- QBranches.h \
- QBranch.h \
- QChanges.h \
- QCharacter.h \
- QCitationDialog.h \
- QCitation.h \
- QCommandBuffer.h \
- QCommandEdit.h \
- QDelimiterDialog.h \
- QDialogView.h \
- QDocument.h \
- QErrorList.h \
- QERT.h \
- QExternal.h \
- QFloatDialog.h \
- QFloat.h \
- QFontExample.h \
- QGraphicsDialog.h \
- QInclude.h \
- QIndex.h \
- QKeySymbol.h \
- QListings.h \
- qlkey.h \
- QLMenubar.h \
- QLog.h \
- QLPopupMenu.h \
- QLPrintDialog.h \
- QLToolbar.h \
- QMathMatrixDialog.h \
- QNomencl.h \
- QNote.h \
- QParagraph.h \
- QPrefs.h \
- QRef.h \
- QSearch.h \
- QSelectionManager.h \
- QSendto.h \
- QSetBorder.h \
- QShowFile.h \
- QSpellchecker.h \
- QTabularCreate.h \
- QTabular.h \
- QTexinfo.h \
- QThesaurus.h \
- QToc.h \
- QURLDialog.h \
- QViewSource.h \
- QVSpace.h \
- QWrap.h \
- socket_callback.h \
TocModel.h \
TocWidget.h \
Validator.h
FloatUi.ui \
FontUi.ui \
GraphicsUi.ui \
+ HSpaceUi.ui \
+ HyperlinkUi.ui \
IncludeUi.ui \
- IndexUi.ui \
+ LabelUi.ui \
LanguageUi.ui \
LaTeXUi.ui \
ListingsUi.ui \
NumberingUi.ui \
PageLayoutUi.ui \
ParagraphUi.ui \
+ PDFSupportUi.ui \
PreambleUi.ui \
PrefColorsUi.ui \
+ PrefCompletionUi.ui \
PrefConvertersUi.ui \
- PrefCopiersUi.ui \
- PrefCygwinPathUi.ui \
PrefDateUi.ui \
PrefDisplayUi.ui \
+ PrefEditUi.ui \
PrefFileformatsUi.ui \
PrefIdentityUi.ui \
- PrefKeyboardUi.ui \
+ PrefInputUi.ui \
PrefLanguageUi.ui \
PrefLatexUi.ui \
PrefPathsUi.ui \
PrefPlaintextUi.ui \
PrefPrinterUi.ui \
PrefScreenFontsUi.ui \
+ PrefShortcutsUi.ui \
PrefSpellcheckerUi.ui \
PrefsUi.ui \
PrefUi.ui \
RefUi.ui \
SearchUi.ui \
SendtoUi.ui \
+ ShortcutUi.ui \
ShowFileUi.ui \
SpellcheckerUi.ui \
+ SymbolsUi.ui \
TabularCreateUi.ui \
TabularUi.ui \
TexinfoUi.ui \
TextLayoutUi.ui \
ThesaurusUi.ui \
TocUi.ui \
- URLUi.ui \
ViewSourceUi.ui \
VSpaceUi.ui \
WrapUi.ui
$(NOMOCHEADER)
BUILT_SOURCES += liblyxqt4.cpp
+CLEANFILES += liblyxqt4.cpp
else
+liblyxqt4.cpp:
+ touch $@
liblyxqt4_la_SOURCES = \
$(SOURCEFILES) \
$(MOCHEADER) \
$(NOMOCHEADER)
-EXTRA_DIST = pch.h
+EXTRA_DIST = pch.h ui/compile_uic.sh $(UIFILES:%=ui/%)
BUILT_SOURCES += $(PCH_FILE)
AM_CPPFLAGS += $(PCH_FLAGS)