diff options
author | gregory guy <[email protected]> | 2020-03-29 19:41:28 +0200 |
---|---|---|
committer | gregory guy <[email protected]> | 2021-01-26 11:52:09 +0100 |
commit | 6b3181cf92f1fc74da1e8a82f690a1526cb4e900 (patch) | |
tree | b2bcaa0683427ddc2a1d692870d731c238f6cce8 /kttsd/filters | |
parent | e09ebe446c909827c78f7c6d76b94ce4adea139d (diff) | |
download | tdeaccessibility-6b3181cf92f1fc74da1e8a82f690a1526cb4e900.tar.gz tdeaccessibility-6b3181cf92f1fc74da1e8a82f690a1526cb4e900.zip |
Conversion to the cmake building system.
Added several man pages taken from the Debian packaging.
Cleanup headers in ui files.
Add png icons for mono theme.
Signed-off-by: gregory guy <[email protected]>
cmake:
- Use tde_add_check_executable instead of a combination
of separate calls to tde_add_executable and add_test.
- Simplify the detection of time.h and sys/time.h headers.
- Refactor phrasebook files install, kmouth.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'kttsd/filters')
-rw-r--r-- | kttsd/filters/CMakeLists.txt | 41 | ||||
-rw-r--r-- | kttsd/filters/sbd/CMakeLists.txt | 43 | ||||
-rw-r--r-- | kttsd/filters/sbd/sbdconfwidget.ui | 16 | ||||
-rw-r--r-- | kttsd/filters/stringreplacer/CMakeLists.txt | 47 | ||||
-rw-r--r-- | kttsd/filters/stringreplacer/editreplacementwidget.ui | 9 | ||||
-rw-r--r-- | kttsd/filters/stringreplacer/stringreplacerconfwidget.ui | 18 | ||||
-rw-r--r-- | kttsd/filters/talkerchooser/CMakeLists.txt | 44 | ||||
-rw-r--r-- | kttsd/filters/talkerchooser/talkerchooserconfwidget.ui | 15 | ||||
-rw-r--r-- | kttsd/filters/xmltransformer/CMakeLists.txt | 43 | ||||
-rw-r--r-- | kttsd/filters/xmltransformer/xmltransformerconfwidget.ui | 17 |
10 files changed, 240 insertions, 53 deletions
diff --git a/kttsd/filters/CMakeLists.txt b/kttsd/filters/CMakeLists.txt new file mode 100644 index 0000000..719a243 --- /dev/null +++ b/kttsd/filters/CMakeLists.txt @@ -0,0 +1,41 @@ +add_subdirectory( stringreplacer ) +add_subdirectory( xmltransformer ) +add_subdirectory( sbd ) +add_subdirectory( talkerchooser ) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/kttsd/libkttsd +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### testfilter (test) + +tde_add_check_executable( testfilter AUTOMOC + + SOURCES + main.cpp + LINK + tdecore-shared + tdeui-shared + tdeio-shared + kttsd-shared + TEST +) + + +##### other data + +tde_create_translated_desktop( + SOURCE kttsd_filterplugin.desktop + DESTINATION ${SERVICETYPES_INSTALL_DIR} +) diff --git a/kttsd/filters/sbd/CMakeLists.txt b/kttsd/filters/sbd/CMakeLists.txt new file mode 100644 index 0000000..d81162c --- /dev/null +++ b/kttsd/filters/sbd/CMakeLists.txt @@ -0,0 +1,43 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/kttsd/libkttsd +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### libkttsd_sbdplugin (kpart) + +tde_add_kpart( libkttsd_sbdplugin AUTOMOC + + SOURCES + sbdconfwidget.ui + sbdproc.cpp + sbdconf.cpp + sbdplugin.cpp + LINK + kttsd-shared + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data + +tde_create_translated_desktop( + SOURCE kttsd_sbdplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) + +install( + FILES standard_sbdrc polish_festival_sbdrc + DESTINATION ${DATA_INSTALL_DIR}/kttsd/sbd +) diff --git a/kttsd/filters/sbd/sbdconfwidget.ui b/kttsd/filters/sbd/sbdconfwidget.ui index 3c8bcff..8eada8a 100644 --- a/kttsd/filters/sbd/sbdconfwidget.ui +++ b/kttsd/filters/sbd/sbdconfwidget.ui @@ -348,16 +348,8 @@ <tabstop>appIdLineEdit</tabstop> </tabstops> <layoutdefaults spacing="6" margin="11"/> -<includehints> - <includehint>klineedit.h</includehint> - <includehint>klineedit.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>klineedit.h</includehint> - <includehint>klineedit.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>klineedit.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>kpushbutton.h</includehint> -</includehints> +<includes> + <include location="global" impldecl="in implementation">klineedit.h</include> + <include location="global" impldecl="in implementation">kpushbutton.h</include> +</includes> </UI> diff --git a/kttsd/filters/stringreplacer/CMakeLists.txt b/kttsd/filters/stringreplacer/CMakeLists.txt new file mode 100644 index 0000000..1b9d5f9 --- /dev/null +++ b/kttsd/filters/stringreplacer/CMakeLists.txt @@ -0,0 +1,47 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/kttsd/libkttsd +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### libkttsd_stringreplacerplugin (kpart) + +tde_add_kpart( libkttsd_stringreplacerplugin AUTOMOC + + SOURCES + stringreplacerconfwidget.ui + editreplacementwidget.ui + stringreplacerconf.cpp + stringreplacerproc.cpp + stringreplacerplugin.cpp + LINK + kttsd-shared + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data + +tde_create_translated_desktop( + SOURCE kttsd_stringreplacerplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) + + +file( GLOB _xmls RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.xml ) + +install( + FILES ${_xmls} + DESTINATION ${DATA_INSTALL_DIR}/kttsd/stringreplacer +) diff --git a/kttsd/filters/stringreplacer/editreplacementwidget.ui b/kttsd/filters/stringreplacer/editreplacementwidget.ui index 8c61932..2424f75 100644 --- a/kttsd/filters/stringreplacer/editreplacementwidget.ui +++ b/kttsd/filters/stringreplacer/editreplacementwidget.ui @@ -255,9 +255,8 @@ <tabstop>substLineEdit</tabstop> </tabstops> <layoutdefaults spacing="6" margin="11"/> -<includehints> - <includehint>klineedit.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>klineedit.h</includehint> -</includehints> +<includes> + <include location="global" impldecl="in implementation">klineedit.h</include> + <include location="global" impldecl="in implementation">kpushbutton.h</include> +</includes> </UI> diff --git a/kttsd/filters/stringreplacer/stringreplacerconfwidget.ui b/kttsd/filters/stringreplacer/stringreplacerconfwidget.ui index f1e58d7..50b8c35 100644 --- a/kttsd/filters/stringreplacer/stringreplacerconfwidget.ui +++ b/kttsd/filters/stringreplacer/stringreplacerconfwidget.ui @@ -458,17 +458,9 @@ <tabstop>appIdLineEdit</tabstop> </tabstops> <layoutdefaults spacing="6" margin="11"/> -<includehints> - <includehint>klineedit.h</includehint> - <includehint>klineedit.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>klineedit.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>tdelistview.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>kpushbutton.h</includehint> -</includehints> +<includes> + <include location="global" impldecl="in implementation">tdelistview.h</include> + <include location="global" impldecl="in implementation">klineedit.h</include> + <include location="global" impldecl="in implementation">kpushbutton.h</include> +</includes> </UI> diff --git a/kttsd/filters/talkerchooser/CMakeLists.txt b/kttsd/filters/talkerchooser/CMakeLists.txt new file mode 100644 index 0000000..701efec --- /dev/null +++ b/kttsd/filters/talkerchooser/CMakeLists.txt @@ -0,0 +1,44 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/kttsd/libkttsd + ${CMAKE_BINARY_DIR}/kttsd/libkttsd +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### libkttsd_talkerchooserplugin (kpart) + +tde_add_kpart( libkttsd_talkerchooserplugin AUTOMOC + + SOURCES + talkerchooserconfwidget.ui + talkerchooserconf.cpp + talkerchooserproc.cpp + talkerchooserplugin.cpp + LINK + kttsd-shared + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data + +tde_create_translated_desktop( + SOURCE kttsd_talkerchooserplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) + +install( + FILES female_notifications_rc + DESTINATION ${DATA_INSTALL_DIR}/kttsd/talkerchooser +) diff --git a/kttsd/filters/talkerchooser/talkerchooserconfwidget.ui b/kttsd/filters/talkerchooser/talkerchooserconfwidget.ui index a66c2bc..f163922 100644 --- a/kttsd/filters/talkerchooser/talkerchooserconfwidget.ui +++ b/kttsd/filters/talkerchooser/talkerchooserconfwidget.ui @@ -305,15 +305,8 @@ <tabstop>appIdLineEdit</tabstop> </tabstops> <layoutdefaults spacing="6" margin="11"/> -<includehints> - <includehint>klineedit.h</includehint> - <includehint>klineedit.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>klineedit.h</includehint> - <includehint>klineedit.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>kpushbutton.h</includehint> -</includehints> +<includes> + <include location="global" impldecl="in implementation">klineedit.h</include> + <include location="global" impldecl="in implementation">kpushbutton.h</include> +</includes> </UI> diff --git a/kttsd/filters/xmltransformer/CMakeLists.txt b/kttsd/filters/xmltransformer/CMakeLists.txt new file mode 100644 index 0000000..50eedce --- /dev/null +++ b/kttsd/filters/xmltransformer/CMakeLists.txt @@ -0,0 +1,43 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/kttsd/libkttsd +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### libkttsd_xmltransformerplugin (kpart) + +tde_add_kpart( libkttsd_xmltransformerplugin AUTOMOC + + SOURCES + xmltransformerconfwidget.ui + xmltransformerconf.cpp + xmltransformerproc.cpp + xmltransformerplugin.cpp + LINK + kttsd-shared + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data + +tde_create_translated_desktop( + SOURCE kttsd_xmltransformerplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) + +install( + FILES xhtml2ssml.xsl xhtml2ssml_simple.xsl + DESTINATION ${DATA_INSTALL_DIR}/kttsd/xmltransformer +) diff --git a/kttsd/filters/xmltransformer/xmltransformerconfwidget.ui b/kttsd/filters/xmltransformer/xmltransformerconfwidget.ui index 89d5c7c..ecb6d3b 100644 --- a/kttsd/filters/xmltransformer/xmltransformerconfwidget.ui +++ b/kttsd/filters/xmltransformer/xmltransformerconfwidget.ui @@ -234,16 +234,9 @@ </grid> </widget> <layoutdefaults spacing="6" margin="11"/> -<includehints> - <includehint>klineedit.h</includehint> - <includehint>kurlrequester.h</includehint> - <includehint>klineedit.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>kurlrequester.h</includehint> - <includehint>klineedit.h</includehint> - <includehint>kpushbutton.h</includehint> - <includehint>klineedit.h</includehint> - <includehint>klineedit.h</includehint> - <includehint>klineedit.h</includehint> -</includehints> +<includes> + <include location="global" impldecl="in implementation">klineedit.h</include> + <include location="global" impldecl="in implementation">kpushbutton.h</include> + <include location="global" impldecl="in implementation">kurlrequester.h</include> +</includes> </UI> |