]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Makefile.am
Transfer some more dialog related code from core to frontend:
[lyx.git] / src / frontends / qt4 / Makefile.am
index 63c97c5b176de7bf27aed602061c6bb9512b28c3..8b8650a6a12e966c0de91d2e5221d80bcd627a6c 100644 (file)
@@ -5,8 +5,9 @@ CLEANFILES += $(MOCEDFILES)
 
 BUILT_SOURCES = $(UIFILES:%.ui=ui_%.h)
 BUILT_SOURCES += $(MOCEDFILES)
+BUILT_SOURCES += Resources.cpp Resources.qrc
 
-#########################  Translation  #############################
+#########################  Qt stuff  #############################
 # Use _() for localization instead of tr() or trUtf8()
 UIC4FLAGS=-tr lyx::qt_
 
@@ -18,9 +19,20 @@ MOCEDFILES = $(MOCHEADER:%.h=%_moc.cpp)
 %_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)
@@ -31,20 +43,24 @@ AM_CPPFLAGS += \
        -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 = \
+       ButtonPolicy.cpp \
+       ButtonPolicy.h \
+       Dialog.cpp \
+       Dialog.h \
+       Resources.cpp \
        Action.cpp \
-       alert_pimpl.cpp \
        BulletsModule.cpp \
        ButtonController.cpp \
        ColorCache.cpp \
-       Dialogs.cpp \
+       CustomizedWidgets.cpp \
        EmptyTable.cpp \
        FileDialog.cpp \
        FloatPlacement.cpp \
        GuiAbout.cpp \
+       GuiAlert.cpp \
        GuiApplication.cpp \
        GuiBibitem.cpp \
        GuiBibtex.cpp \
@@ -60,7 +76,6 @@ SOURCEFILES = \
        GuiDelimiter.cpp \
        GuiDialog.cpp \
        GuiDocument.cpp \
-       GuiEmbeddedFiles.cpp \
        GuiErrorList.cpp \
        GuiERT.cpp \
        GuiExternal.cpp \
@@ -69,13 +84,14 @@ SOURCEFILES = \
        GuiFontLoader.cpp \
        GuiFontMetrics.cpp \
        GuiGraphics.cpp \
+       GuiHyperlink.cpp \
        GuiImage.cpp \
-       GuiImplementation.cpp \
        GuiInclude.cpp \
        GuiIndex.cpp \
        GuiKeySymbol.cpp \
        GuiListings.cpp \
        GuiLog.cpp \
+       GuiMath.cpp \
        GuiMathMatrix.cpp \
        GuiMenubar.cpp \
        GuiNomencl.cpp \
@@ -99,7 +115,7 @@ SOURCEFILES = \
        GuiThesaurus.cpp \
        GuiToc.cpp \
        GuiToolbar.cpp \
-       GuiURL.cpp \
+       GuiToolbars.cpp \
        GuiView.cpp \
        GuiViewSource.cpp \
        GuiVSpace.cpp \
@@ -109,27 +125,29 @@ SOURCEFILES = \
        InsertTableWidget.cpp \
        LengthCombo.cpp \
        LyXFileDialog.cpp \
+       LaTeXHighlighter.cpp \
        PanelStack.cpp \
        qt_helpers.cpp \
-       socket_callback.cpp \
        TocModel.cpp \
        TocWidget.cpp \
        Validator.cpp 
 
 NOMOCHEADER = \
        ButtonController.h \
-       GuiClipboard.h \
+       DialogView.h \
        GuiFontLoader.h \
        GuiFontMetrics.h \
-       GuiSelection.h \
        GuiImage.h \
+       GuiMath.h \
        GuiPainter.h \
+       GuiToolbars.h \
        qt_helpers.h
 
 MOCHEADER = \
        Action.h \
        BulletsModule.h \
        ColorCache.h \
+       CustomizedWidgets.h \
        DockView.h \
        EmptyTable.h \
        FloatPlacement.h \
@@ -143,19 +161,19 @@ MOCHEADER = \
        GuiChanges.h \
        GuiCharacter.h \
        GuiCitation.h \
+       GuiClipboard.h \
        GuiCommandBuffer.h \
        GuiCommandEdit.h \
        GuiDelimiter.h \
        GuiDialog.h \
        GuiDocument.h \
-       GuiEmbeddedFiles.h \
        GuiErrorList.h \
        GuiERT.h \
        GuiExternal.h \
        GuiFloat.h \
        GuiFontExample.h \
        GuiGraphics.h \
-       GuiImplementation.h \
+       GuiHyperlink.h \
        GuiInclude.h \
        GuiIndex.h \
        GuiKeySymbol.h \
@@ -171,6 +189,7 @@ MOCHEADER = \
        GuiPrint.h \
        GuiRef.h \
        GuiSearch.h \
+       GuiSelection.h \
        GuiSelectionManager.h \
        GuiSendto.h \
        GuiSetBorder.h \
@@ -182,7 +201,6 @@ MOCHEADER = \
        GuiThesaurus.h \
        GuiToc.h \
        GuiToolbar.h \
-       GuiURL.h \
        GuiView.h \
        GuiViewSource.h \
        GuiVSpace.h \
@@ -192,9 +210,9 @@ MOCHEADER = \
        InsertTableWidget.h \
        LengthCombo.h \
        LyXFileDialog.h \
+       LaTeXHighlighter.h \
        PanelStack.h \
        qlkey.h \
-       socket_callback.h \
        TocModel.h \
        TocWidget.h \
        Validator.h
@@ -215,14 +233,15 @@ UIFILES = \
        CitationUi.ui \
        DelimiterUi.ui \
        DocumentUi.ui \
-       EmbeddedFilesUi.ui \
        ErrorListUi.ui \
        ERTUi.ui \
        ExternalUi.ui \
+       EmbeddedFilesUi.ui \
        FloatPlacementUi.ui \
        FloatUi.ui \
        FontUi.ui \
        GraphicsUi.ui \
+       HyperlinkUi.ui \
        IncludeUi.ui \
        IndexUi.ui \
        LanguageUi.ui \
@@ -237,6 +256,7 @@ UIFILES = \
        NumberingUi.ui \
        PageLayoutUi.ui \
        ParagraphUi.ui \
+       PDFSupportUi.ui \
        PreambleUi.ui \
        PrefColorsUi.ui \
        PrefConvertersUi.ui \
@@ -251,6 +271,7 @@ UIFILES = \
        PrefPlaintextUi.ui \
        PrefPrinterUi.ui \
        PrefScreenFontsUi.ui \
+       PrefShortcutsUi.ui \
        PrefSpellcheckerUi.ui \
        PrefsUi.ui \
        PrefUi.ui \
@@ -258,6 +279,7 @@ UIFILES = \
        RefUi.ui \
        SearchUi.ui \
        SendtoUi.ui \
+       ShortcutUi.ui \
        ShowFileUi.ui \
        SpellcheckerUi.ui \
        TabularCreateUi.ui \
@@ -266,7 +288,6 @@ UIFILES = \
        TextLayoutUi.ui \
        ThesaurusUi.ui \
        TocUi.ui \
-       URLUi.ui \
        ViewSourceUi.ui \
        VSpaceUi.ui \
        WrapUi.ui