summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-06-18 22:59:25 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-07-10 17:59:48 +0900
commit5161d40d204dc6dbd9c34b5be0052243240f15b1 (patch)
tree5ccc61290c25f3c1f18a1e821ea59f90df97518e
parente46a8b8db6082f7d5e293407d654f127c48a0256 (diff)
downloadtderadio-5161d40d204dc6dbd9c34b5be0052243240f15b1.tar.gz
tderadio-5161d40d204dc6dbd9c34b5be0052243240f15b1.zip
CMake conversion.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit bc7518bdba609f90ee89de8b4e7ddaa1e567b1a8)
-rw-r--r--CMakeLists.txt94
-rw-r--r--ConfigureChecks.cmake94
-rw-r--r--INSTALL15
-rw-r--r--README72
-rw-r--r--README.md61
-rw-r--r--TODO2
-rw-r--r--config.h.cmake17
-rw-r--r--convert-presets/CMakeLists.txt26
-rw-r--r--convert-presets/po/CMakeLists.txt1
-rw-r--r--doc/man/convert-presets.1150
-rw-r--r--doc/man/tderadio.1147
-rw-r--r--icons/CMakeLists.txt1
-rw-r--r--plugins/CMakeLists.txt14
-rw-r--r--plugins/alsa-sound/CMakeLists.txt31
-rw-r--r--plugins/alsa-sound/icons/CMakeLists.txt1
-rw-r--r--plugins/alsa-sound/po/CMakeLists.txt1
-rw-r--r--plugins/gui-docking-menu/CMakeLists.txt28
-rw-r--r--plugins/gui-docking-menu/po/CMakeLists.txt1
-rw-r--r--plugins/gui-error-log/CMakeLists.txt27
-rw-r--r--plugins/gui-error-log/po/CMakeLists.txt1
-rw-r--r--plugins/gui-quickbar/CMakeLists.txt29
-rw-r--r--plugins/gui-quickbar/po/CMakeLists.txt1
-rw-r--r--plugins/gui-standard-display/CMakeLists.txt31
-rw-r--r--plugins/gui-standard-display/po/CMakeLists.txt1
-rw-r--r--plugins/lirc/CMakeLists.txt35
-rw-r--r--plugins/lirc/dot-lircrc.example (renamed from dot-lircrc.example)0
-rw-r--r--plugins/lirc/lircsupport.cpp10
-rw-r--r--plugins/lirc/lircsupport.h2
-rw-r--r--plugins/lirc/po/CMakeLists.txt1
-rw-r--r--plugins/lirc/po/tderadio-lirc/tderadio-lirc.pot22
-rw-r--r--plugins/oss-sound/CMakeLists.txt28
-rw-r--r--plugins/oss-sound/icons/CMakeLists.txt1
-rw-r--r--plugins/oss-sound/po/CMakeLists.txt1
-rw-r--r--plugins/radio/CMakeLists.txt28
-rw-r--r--plugins/radio/po/CMakeLists.txt1
-rw-r--r--plugins/recording/CMakeLists.txt33
-rw-r--r--plugins/recording/icons/CMakeLists.txt1
-rw-r--r--plugins/recording/po/CMakeLists.txt1
-rw-r--r--plugins/soundserver/CMakeLists.txt27
-rw-r--r--plugins/soundserver/po/CMakeLists.txt1
-rw-r--r--plugins/streaming/CMakeLists.txt31
-rw-r--r--plugins/streaming/icons/CMakeLists.txt1
-rw-r--r--plugins/streaming/po/CMakeLists.txt1
-rw-r--r--plugins/timecontrol/CMakeLists.txt28
-rw-r--r--plugins/timecontrol/icons/CMakeLists.txt1
-rw-r--r--plugins/timecontrol/po/CMakeLists.txt1
-rw-r--r--plugins/timeshifter/CMakeLists.txt28
-rw-r--r--plugins/timeshifter/icons/CMakeLists.txt1
-rw-r--r--plugins/timeshifter/po/CMakeLists.txt1
-rw-r--r--plugins/v4lradio/CMakeLists.txt30
-rw-r--r--plugins/v4lradio/po/CMakeLists.txt1
-rw-r--r--plugins/v4lradio/v4lradio.cpp7
-rw-r--r--presets/CMakeLists.txt23
-rw-r--r--src/CMakeLists.txt89
-rw-r--r--src/Makefile.am2
-rw-r--r--src/debug-profiler.cpp4
-rw-r--r--src/include/alarm.h3
-rw-r--r--src/include/debug-profiler.h9
-rw-r--r--src/include/fileringbuffer.h3
-rw-r--r--src/include/frequencyradiostation.h4
-rw-r--r--src/include/frequencyseekhelper.h9
-rw-r--r--src/include/interfaces.h2
-rw-r--r--src/include/internetradiostation.h3
-rw-r--r--src/include/multibuffer.h3
-rw-r--r--src/include/pluginmanager.h5
-rw-r--r--src/include/plugins.h18
-rw-r--r--src/include/radiostation-config.h29
-rw-r--r--src/include/radiostation-listview.h4
-rw-r--r--src/include/radiostation.h6
-rw-r--r--src/include/ringbuffer.h3
-rw-r--r--src/include/seekhelper.h6
-rw-r--r--src/include/soundformat.h2
-rw-r--r--src/include/soundstreamid.h4
-rw-r--r--src/include/standardscandialog.h11
-rw-r--r--src/include/station-drag-object.h3
-rw-r--r--src/include/stationlist.h5
-rw-r--r--src/include/stationselector.h11
-rw-r--r--src/include/widgetplugins.h2
-rw-r--r--src/po/CMakeLists.txt1
-rw-r--r--src/radiostation.cpp4
-rw-r--r--src/stationlist.cpp2
-rw-r--r--src/stationselector-ui.ui1
-rw-r--r--src/tderadio.xpm189
83 files changed, 1445 insertions, 184 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..ae228f3
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,94 @@
+############################################
+# #
+# Improvements and feedbacks are welcome #
+# #
+# This file is released under GPL >= 3 #
+# #
+############################################
+
+
+cmake_minimum_required( VERSION 3.1 )
+
+
+#### general package setup
+
+project( tderadio )
+
+
+#### include essential cmake modules
+
+include( FindPkgConfig )
+include( CheckSymbolExists )
+include( CheckIncludeFile )
+include( CheckLibraryExists )
+include( CheckCSourceCompiles )
+include( CheckCXXSourceCompiles )
+
+
+#### include our cmake modules
+
+include( TDEMacros )
+
+
+##### set version number ########################
+
+tde_set_project_version( )
+
+
+##### setup install paths
+
+include( TDESetupPaths )
+tde_setup_paths( )
+
+
+##### optional stuff
+
+option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
+option( WITH_LAME "Enable lame support" ${WITH_ALL_OPTIONS} )
+option( WITH_OGG "Enable ogg/vorbis support" ${WITH_ALL_OPTIONS} )
+
+option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
+
+
+##### user requested modules
+
+option( BUILD_ALL "Build all" ON )
+option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
+option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
+
+option( BUILD_ALSA_PLUGIN "Build ALSA plugin" ${BUILD_ALL} )
+option( BUILD_LIRC_PLUGIN "Build LIRC plugin" ${BUILD_ALL} )
+option( BUILD_OSS_PLUGIN "Build OSS plugin" ${BUILD_ALL} )
+
+
+##### configure checks
+
+include( ConfigureChecks.cmake )
+
+
+###### global compiler settings
+
+add_definitions( -DHAVE_CONFIG_H )
+
+set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
+set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
+set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
+
+
+##### directories
+
+add_subdirectory( convert-presets )
+add_subdirectory( icons )
+add_subdirectory( plugins )
+add_subdirectory( presets )
+add_subdirectory( src )
+
+
+##### other data ################################
+
+tde_conditional_add_project_docs( BUILD_DOC )
+
+
+##### write configure files
+
+configure_file( config.h.cmake config.h @ONLY )
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 0000000..5a14d7f
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -0,0 +1,94 @@
+###########################################
+# #
+# Improvements and feedback are welcome #
+# #
+# This file is released under GPL >= 3 #
+# #
+###########################################
+
+
+# required stuff
+find_package( TQt )
+find_package( TDE )
+
+tde_setup_architecture_flags( )
+
+include(TestBigEndian)
+test_big_endian(WORDS_BIGENDIAN)
+
+tde_setup_largefiles( )
+
+
+##### check for gcc visibility support
+
+if( WITH_GCC_VISIBILITY )
+ tde_setup_gcc_visibility( )
+endif( WITH_GCC_VISIBILITY )
+
+
+##### check for ALSA #####
+
+if( BUILD_ALSA_PLUGIN )
+ find_package( ALSA )
+ if( NOT ALSA_FOUND )
+ tde_message_fatal( "alsa support is requested, but was not found on your system" )
+ endif( NOT ALSA_FOUND )
+endif( BUILD_ALSA_PLUGIN )
+
+
+###### check for LAME #####
+
+if( WITH_LAME )
+ check_include_file( lame/lame.h HAVE_LAME_H )
+ if( NOT HAVE_LAME_H )
+ tde_message_fatal( "lame is requested, but not found on your system" )
+ endif( )
+ check_library_exists( mp3lame lame_init "" HAVE_LAME )
+ if( NOT HAVE_LAME )
+ tde_message_fatal( "mp3lame is requested, but not found on your system" )
+ endif( )
+ set( HAVE_LAME 1 )
+ set( LAME_LIBRARIES mp3lame CACHE INTERNAL "" FORCE )
+endif( WITH_LAME )
+
+
+##### check for LIRC #####
+
+if( BUILD_LIRC_PLUGIN )
+ pkg_search_module( LIRC lirc )
+ if( NOT LIRC_FOUND )
+ tde_message_fatal( "lirc support is requested, but was not found on your system" )
+ endif( NOT LIRC_FOUND )
+endif( BUILD_LIRC_PLUGIN )
+
+
+##### check for OGG/Vorbis #####
+
+if( WITH_OGG )
+ pkg_search_module( VORBIS vorbis )
+ pkg_search_module( VORBISFILE vorbisfile )
+ pkg_search_module( VORBISENC vorbisenc )
+ pkg_search_module( OGG ogg )
+ if( NOT VORBIS_FOUND )
+ tde_message_fatal( "vorbis is requested, but was not found on your system" )
+ elseif( NOT VORBISFILE_FOUND OR NOT VORBISENC_FOUND OR NOT OGG_FOUND )
+ tde_message_fatal( "vorbis is requested, but some of it's essential parts wasn't found on your system" )
+ endif( )
+ set( HAVE_OGG 1 )
+endif( WITH_OGG )
+
+
+##### check for sndfile #####
+
+pkg_search_module( SNDFILE sndfile )
+if( NOT SNDFILE_FOUND )
+ tde_message_fatal( "sndfile is required, but was not found on your system" )
+endif( )
+
+
+##### Check for videodev #####
+
+check_include_file( "linux/videodev2.h" HAVE_VIDEODEV2_H )
+if( HAVE_VIDEODEV2_H )
+ set( HAVE_V4L2 1 )
+endif( )
diff --git a/INSTALL b/INSTALL
index 4bca1d7..cf92abe 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,16 +1,3 @@
-Note on automake/autoconf versions
-==================================
-
-TDERadio should build with automake >= 1.6.1 and autoconf 2.5*
-
-If you have such a version but configure/make complains it needs e.g.
-automake 1.7.x you should try to run
-
- make -f Makefile.dist
-
-before you run ./configure.
-
-
Basic Installation
==================
@@ -53,7 +40,7 @@ The simplest way to compile this package is:
documentation.
4. You can remove the program binaries and object files from the
- source code directory by typing `make clean'.
+ source code directory by typing `make clean'.
Compilers and Options
=====================
diff --git a/README b/README
deleted file mode 100644
index d2fd9ea..0000000
--- a/README
+++ /dev/null
@@ -1,72 +0,0 @@
-This is a comfortable radio application for KDE 3.x.
-You can get the latest version from
-
- http://sourceforge.net/projects/tderadio/
-
-------------------
-Mailing Lists
-------------------
-
- http://lists.sourceforge.net/lists/listinfo/tderadio-user
- http://lists.sourceforge.net/lists/listinfo/tderadio-devel
- http://lists.sourceforge.net/lists/listinfo/tderadio-announce
-
-------------------
-Compile CVS tree
-------------------
-
-First checkout tderadio from CVS
-
- mkdir tderadio-cvs
- cd tderadio-cvs
- # next follow instructions on http://sourceforge.net/cvs/?group_id=45668
- cd tderadio
-
-and compile it
-
- make -f Makefile.dist
- ./configure
- make
- make install
-
--------------------
-Configuration files
--------------------
-
-gui, alarms, etc.:
- <dot-tdedir>/share/config/tderadiorc
-
-stations (xml-format):
- <dot-tdedir>/share/apps/tderadio/stations.krp
-
-systemwide presets (xml-format):
- <tdedir>/share/apps/tderadio/presets/<country>/<city>-<media>.krp
-
-
-------------------
-lirc support
-------------------
-
-lirc support is realized by the lirc_client lib. It should be detected
-automatically by ./configure. This library is used to translate the
-remote control key names to names used by tderadio, and may additionally
-be used for state management (tv, etc). An example for an apropriate
-.lircrc file can be found in ./tderadio/dot-lircrc.example.
-
-Names used by tderadio:
-
- TV powerOff, give tv program a chance
- 0..9 numerical station selection
- CH+ frequency increment
- CH- frequency decrement
- VOL+ volume increment
- VOL- volume decrement
- CH-SEARCH beachward station search
- CH+SEARCH forward statino search
- POWER power tderadio on/off
- RADIO power tderadio on
- SLEEP enable sleep countdown
- NEXT next station in list
- PREV prev station in list
- QUIT quit tderadio application
-
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..cdbe49e
--- /dev/null
+++ b/README.md
@@ -0,0 +1,61 @@
+
+TDERadio - a comfortable radio application for TDE
+
+
+Requirements
+------------
+- v4l or v4l2 enabled kernel
+- libsndfile (development package or header for compilation, library for execution)
+- libmp3lame (for mp3 encoding)
+- oss support (mixer, dsp/pcm) ??
+- radio card ;)
+
+Configuration files
+---------------------
+
+gui, alarms, etc.:
+ .trinity/share/config/tderadiorc
+
+stations (xml-format):
+ .trinity/share/apps/tderadio/stations.krp
+
+systemwide presets (xml-format):
+ <tdedir>/share/apps/tderadio/presets/<country>/<city>-<media>.krp
+
+
+lirc support
+--------------
+
+lirc support is realized by the lirc_client lib. This library is used to
+translate the remote control key names to names used by tderadio, and may
+additionally be used for state management (tv, etc).
+
+Names used by tderadio:
+
+ TV powerOff, give tv program a chance
+ 0..9 numerical station selection
+ CH+ frequency increment
+ CH- frequency decrement
+ VOL+ volume increment
+ VOL- volume decrement
+ CH-SEARCH beachward station search
+ CH+SEARCH forward statino search
+ POWER power tderadio on/off
+ RADIO power tderadio on
+ SLEEP enable sleep countdown
+ NEXT next station in list
+ PREV prev station in list
+ QUIT quit tderadio application
+
+.
+
+Contributing
+--------------
+
+If you wish to contribute to TDERadio, you might do so:
+
+- TDE Gitea Workspace (TGW) collaboration tool.
+ https://mirror.git.trinitydesktop.org/gitea
+
+- TDE Weblate Translation Workspace (TWTW) collaboration tool.
+ https://mirror.git.trinitydesktop.org/weblate
diff --git a/TODO b/TODO
index 6f706a3..ee9288e 100644
--- a/TODO
+++ b/TODO
@@ -57,8 +57,6 @@ FUTURE
======
* mediacontrol applet integration
* dcop interface
- * compile with -DQT_NO_ASCII_CAST (see src/Makefile.am)
- (necessary for Qt4)
* just grep for FIXME and TODO...
diff --git a/config.h.cmake b/config.h.cmake
new file mode 100644
index 0000000..01752bb
--- /dev/null
+++ b/config.h.cmake
@@ -0,0 +1,17 @@
+#define VERSION "@VERSION@"
+
+// Defined if you have fvisibility and fvisibility-inlines-hidden support.
+#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
+
+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
+ significant byte first (like Motorola and SPARC, unlike Intel). */
+#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
+
+// Defined if LAME support found
+#cmakedefine HAVE_LAME
+
+// Defined if OGG/Vorbis support found
+#cmakedefine HAVE_OGG
+
+// Defined if videodev2 support found
+#cmakedefine HAVE_V4L2
diff --git a/convert-presets/CMakeLists.txt b/convert-presets/CMakeLists.txt
new file mode 100644
index 0000000..c6643ea
--- /dev/null
+++ b/convert-presets/CMakeLists.txt
@@ -0,0 +1,26 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### convert_presets (translations)
+
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### convert_presets (executable)
+
+tde_add_executable( convert-presets AUTOMOC
+ SOURCES convert-presets.cpp
+ LINK tdecore-shared tdeui-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/convert-presets/po/CMakeLists.txt b/convert-presets/po/CMakeLists.txt
new file mode 100644
index 0000000..24e3bd8
--- /dev/null
+++ b/convert-presets/po/CMakeLists.txt
@@ -0,0 +1 @@
+tde_add_project_translations()
diff --git a/doc/man/convert-presets.1 b/doc/man/convert-presets.1
new file mode 100644
index 0000000..2b898ce
--- /dev/null
+++ b/doc/man/convert-presets.1
@@ -0,0 +1,150 @@
+.\" This file was generated by kdemangen.pl
+.TH CONVERT\-PRESETS 1 "Dec 2005" "Trinity Desktop Environment" "convert-presets"
+.SH NAME
+convert\-presets
+\- convert-presets
+.SH SYNOPSIS
+convert\-presets [Qt\-options] [TDE\-options] [options] [preset files]
+.SH DESCRIPTION
+convert-presets
+.SH OPTIONS
+.SS
+.SS Arguments:
+.TP
+.B preset
+files preset file to convert
+.SS Options:
+-q be quiet
+.SS
+.SS Generic options:
+.TP
+.B \-\-help
+Show help about options
+.TP
+.B \-\-help\-qt
+Show Qt specific options
+.TP
+.B \-\-help\-tde
+Show TDE specific options
+.TP
+.B \-\-help\-all
+Show all options
+.TP
+.B \-\-author
+Show author information
+.TP
+.B \-v, \-\-version
+Show version information
+.TP
+.B \-\-license
+Show license information
+.TP
+.B \-\-
+End of options
+.SS
+.SS TDE options:
+.TP
+.B \-\-caption <caption>
+Use 'caption' as name in the titlebar
+.TP
+.B \-\-icon <icon>
+Use 'icon' as the application icon
+.TP
+.B \-\-miniicon <icon>
+Use 'icon' as the icon in the titlebar
+.TP
+.B \-\-config <filename>
+Use alternative configuration file
+.TP
+.B \-\-dcopserver <server>
+Use the DCOP Server specified by 'server'
+.TP
+.B \-\-nocrashhandler
+Disable crash handler, to get core dumps
+.TP
+.B \-\-waitforwm
+Waits for a WM_NET compatible windowmanager
+.TP
+.B \-\-style <style>
+sets the application GUI style
+.TP
+.B \-\-geometry <geometry>
+sets the client geometry of the main widget - see man X for the argument format
+.SS
+.SS Qt options:
+.TP
+.B \-\-display <displayname>
+Use the X-server display 'displayname'
+.TP
+.B \-\-session <sessionId>
+Restore the application for the given 'sessionId'
+.TP
+.B \-\-cmap
+Causes the application to install a private color
+map on an 8-bit display
+.TP
+.B \-\-ncols <count>
+Limits the number of colors allocated in the color
+cube on an 8-bit display, if the application is
+using the QApplication::ManyColor color
+specification
+.TP
+.B \-\-nograb
+tells Qt to never grab the mouse or the keyboard
+.TP
+.B \-\-dograb
+running under a debugger can cause an implicit
+-nograb, use -dograb to override
+.TP
+.B \-\-sync
+switches to synchronous mode for debugging
+.TP
+.B \-\-fn, \-\-font <fontname>
+defines the application font
+.TP
+.B \-\-bg, \-\-background <color>
+sets the default background color and an
+application palette (light and dark shades are
+calculated)
+.TP
+.B \-\-fg, \-\-foreground <color>
+sets the default foreground color
+.TP
+.B \-\-btn, \-\-button <color>
+sets the default button color
+.TP
+.B \-\-name <name>
+sets the application name
+.TP
+.B \-\-title <title>
+sets the application title (caption)
+.TP
+.B \-\-visual TrueColor
+forces the application to use a TrueColor visual on
+an 8-bit display
+.TP
+.B \-\-inputstyle <inputstyle>
+sets XIM (X Input Method) input style. Possible
+values are onthespot, overthespot, offthespot and
+root
+.TP
+.B \-\-im <XIM server>
+set XIM server
+.TP
+.B \-\-noxim
+disable XIM
+.TP
+.B \-\-reverse
+mirrors the whole layout of widgets
+.SS
+
+.SH SEE ALSO
+Full user documentation is available through the TDE Help Center. You can also enter the URL
+.BR help:/convert\-presets/
+directly into konqueror or you can run
+.BR "`khelpcenter help:/convert\-presets/'"
+from the command-line.
+.br
+.SH AUTHORS
+Ernst Martin Witte, Klas Kalass
+.nf
diff --git a/doc/man/tderadio.1 b/doc/man/tderadio.1
new file mode 100644
index 0000000..eddbbdf
--- /dev/null
+++ b/doc/man/tderadio.1
@@ -0,0 +1,147 @@
+.\" This file was generated by kdemangen.pl
+.TH KRADIO 1 "Dec 2005" "Trinity Desktop Environment" "TDERadio"
+.SH NAME
+tderadio
+\- TDERadio
+.SH SYNOPSIS
+tderadio [Qt\-options] [TDE\-options]
+.SH DESCRIPTION
+TDERadio
+.SH OPTIONS
+.SS Generic options:
+.TP
+.B \-\-help
+Show help about options
+.TP
+.B \-\-help\-qt
+Show Qt specific options
+.TP
+.B \-\-help\-tde
+Show TDE specific options
+.TP
+.B \-\-help\-all
+Show all options
+.TP
+.B \-\-author
+Show author information
+.TP
+.B \-v, \-\-version
+Show version information
+.TP
+.B \-\-license
+Show license information
+.TP
+.B \-\-
+End of options
+.SS
+.SS TDE options:
+.TP
+.B \-\-caption <caption>
+Use 'caption' as name in the titlebar
+.TP
+.B \-\-icon <icon>
+Use 'icon' as the application icon
+.TP
+.B \-\-miniicon <icon>
+Use 'icon' as the icon in the titlebar
+.TP
+.B \-\-config <filename>
+Use alternative configuration file
+.TP
+.B \-\-dcopserver <server>
+Use the DCOP Server specified by 'server'
+.TP
+.B \-\-nocrashhandler
+Disable crash handler, to get core dumps
+.TP
+.B \-\-waitforwm
+Waits for a WM_NET compatible windowmanager
+.TP
+.B \-\-style <style>
+sets the application GUI style
+.TP
+.B \-\-geometry <geometry>
+sets the client geometry of the main widget - see man X for the argument format
+.SS Qt options:
+.TP
+.B \-\-display <displayname>
+Use the X-server display 'displayname'
+.TP
+.B \-\-session <sessionId>
+Restore the application for the given 'sessionId'
+.TP
+.B \-\-cmap
+Causes the application to install a private color
+map on an 8-bit display
+.TP
+.B \-\-ncols <count>
+Limits the number of colors allocated in the color
+cube on an 8-bit display, if the application is
+using the QApplication::ManyColor color
+specification
+.TP
+.B \-\-nograb
+tells Qt to never grab the mouse or the keyboard
+.TP
+.B \-\-dograb
+running under a debugger can cause an implicit
+-nograb, use -dograb to override
+.TP
+.B \-\-sync
+switches to synchronous mode for debugging
+.TP
+.B \-\-fn, \-\-font <fontname>
+defines the application font
+.TP
+.B \-\-bg, \-\-background <color>
+sets the default background color and an
+application palette (light and dark shades are
+calculated)
+.TP
+.B \-\-fg, \-\-foreground <color>
+sets the default foreground color
+.TP
+.B \-\-btn, \-\-button <color>
+sets the default button color
+.TP
+.B \-\-name <name>
+sets the application name
+.TP
+.B \-\-title <title>
+sets the application title (caption)
+.TP
+.B \-\-visual TrueColor
+forces the application to use a TrueColor visual on
+an 8-bit display
+.TP
+.B \-\-inputstyle <inputstyle>
+sets XIM (X Input Method) input style. Possible
+values are onthespot, overthespot, offthespot and
+root
+.TP
+.B \-\-im <XIM server>
+set XIM server
+.TP
+.B \-\-noxim
+disable XIM
+.TP
+.B \-\-reverse
+mirrors the whole layout of widgets
+.SS
+
+.SH SEE ALSO
+Full user documentation is available through the TDE Help Center. You can also enter the URL
+.BR help:/tderadio/
+directly into konqueror or you can run
+.BR "`khelpcenter help:/tderadio/'"
+from the command-line.
+.br
+.SH AUTHORS
+.nf
+Martin Witte <witte@kawo1.rwth-aachen.de>
+.br
+Marcus Camen <mcamen@mcamen.de>
+.br
+Klas Kalass <klas.kalass@gmx.de>
+.br
+
diff --git a/icons/CMakeLists.txt b/icons/CMakeLists.txt
new file mode 100644
index 0000000..63f765b
--- /dev/null
+++ b/icons/CMakeLists.txt
@@ -0,0 +1 @@
+tde_install_icons( )
diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
new file mode 100644
index 0000000..a66159c
--- /dev/null
+++ b/plugins/CMakeLists.txt
@@ -0,0 +1,14 @@
+tde_conditional_add_subdirectory( BUILD_ALSA_PLUGIN alsa-sound )
+add_subdirectory( gui-docking-menu )
+add_subdirectory( gui-error-log )
+add_subdirectory( gui-quickbar )
+add_subdirectory( gui-standard-display )
+tde_conditional_add_subdirectory( BUILD_LIRC_PLUGIN lirc )
+tde_conditional_add_subdirectory( BUILD_OSS_PLUGIN oss-sound )
+add_subdirectory( radio )
+add_subdirectory( recording )
+add_subdirectory( soundserver )
+add_subdirectory( streaming )
+add_subdirectory( timecontrol )
+add_subdirectory( timeshifter )
+add_subdirectory( v4lradio )
diff --git a/plugins/alsa-sound/CMakeLists.txt b/plugins/alsa-sound/CMakeLists.txt
new file mode 100644
index 0000000..0d8a5f0
--- /dev/null
+++ b/plugins/alsa-sound/CMakeLists.txt
@@ -0,0 +1,31 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### alsa-sound (icons and translations)
+
+add_subdirectory( icons )
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### alsa-sound (plugin)
+
+tde_add_kpart( libalsa-sound AUTOMOC
+ SOURCES
+ alsa-sound.cpp alsa-sound-configuration-ui.ui
+ alsa-sound-configuration.cpp alsa-mixer-element-ui.ui
+ alsa-mixer-element.cpp alsa-config-mixer-setting.cpp
+
+ LINK tderadio-shared ${ALSA_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
+)
diff --git a/plugins/alsa-sound/icons/CMakeLists.txt b/plugins/alsa-sound/icons/CMakeLists.txt
new file mode 100644
index 0000000..63f765b
--- /dev/null
+++ b/plugins/alsa-sound/icons/CMakeLists.txt
@@ -0,0 +1 @@
+tde_install_icons( )
diff --git a/plugins/alsa-sound/po/CMakeLists.txt b/plugins/alsa-sound/po/CMakeLists.txt
new file mode 100644
index 0000000..24e3bd8
--- /dev/null
+++ b/plugins/alsa-sound/po/CMakeLists.txt
@@ -0,0 +1 @@
+tde_add_project_translations()
diff --git a/plugins/gui-docking-menu/CMakeLists.txt b/plugins/gui-docking-menu/CMakeLists.txt
new file mode 100644
index 0000000..4ebed5e
--- /dev/null
+++ b/plugins/gui-docking-menu/CMakeLists.txt
@@ -0,0 +1,28 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/src
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### gui-docking-menu (translations)
+
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### gui-docking-menu (plugin)
+
+tde_add_kpart( libdocking-menu AUTOMOC
+ SOURCES docking-configuration.cpp docking.cpp
+ LINK tderadio-shared
+ DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
+)
diff --git a/plugins/gui-docking-menu/po/CMakeLists.txt b/plugins/gui-docking-menu/po/CMakeLists.txt
new file mode 100644
index 0000000..24e3bd8
--- /dev/null
+++ b/plugins/gui-docking-menu/po/CMakeLists.txt
@@ -0,0 +1 @@
+tde_add_project_translations()
diff --git a/plugins/gui-error-log/CMakeLists.txt b/plugins/gui-error-log/CMakeLists.txt
new file mode 100644
index 0000000..1d3770a
--- /dev/null
+++ b/plugins/gui-error-log/CMakeLists.txt
@@ -0,0 +1,27 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### gui-error-log (translations)
+
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### gui-error-log (plugin)
+
+tde_add_kpart( liberror-log AUTOMOC
+ SOURCES errorlog.cpp
+ LINK tderadio-shared
+ DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
+)
diff --git a/plugins/gui-error-log/po/CMakeLists.txt b/plugins/gui-error-log/po/CMakeLists.txt
new file mode 100644
index 0000000..24e3bd8
--- /dev/null
+++ b/plugins/gui-error-log/po/CMakeLists.txt
@@ -0,0 +1 @@
+tde_add_project_translations()
diff --git a/plugins/gui-quickbar/CMakeLists.txt b/plugins/gui-quickbar/CMakeLists.txt
new file mode 100644
index 0000000..df05cc4
--- /dev/null
+++ b/plugins/gui-quickbar/CMakeLists.txt
@@ -0,0 +1,29 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/src
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+ ${SNDFILE_LIBRARY_DIRS}
+)
+
+
+##### gui-quickbar (translations)
+
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### gui-quickbar (plugin)
+
+tde_add_kpart( libquickbar AUTOMOC
+ SOURCES buttonflowlayout.cpp quickbar.cpp quickbar-configuration.cpp
+ LINK tderadio-shared
+ DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
+)
diff --git a/plugins/gui-quickbar/po/CMakeLists.txt b/plugins/gui-quickbar/po/CMakeLists.txt
new file mode 100644
index 0000000..24e3bd8
--- /dev/null
+++ b/plugins/gui-quickbar/po/CMakeLists.txt
@@ -0,0 +1 @@
+tde_add_project_translations()
diff --git a/plugins/gui-standard-display/CMakeLists.txt b/plugins/gui-standard-display/CMakeLists.txt
new file mode 100644
index 0000000..7629d21
--- /dev/null
+++ b/plugins/gui-standard-display/CMakeLists.txt
@@ -0,0 +1,31 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### gui-standard-display (translations)
+
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### gui-standard-display (plugin)
+
+tde_add_kpart( libstandard-display AUTOMOC
+ SOURCES
+ displaycfg.cpp displaycfg_interfaces.cpp radioview-configuration.cpp
+ radioview.cpp radioview_element.cpp radioview_frequencyradio.cpp
+ radioview_frequencyseeker.cpp radioview_volume.cpp
+
+ LINK tderadio-shared
+ DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
+)
diff --git a/plugins/gui-standard-display/po/CMakeLists.txt b/plugins/gui-standard-display/po/CMakeLists.txt
new file mode 100644
index 0000000..24e3bd8
--- /dev/null
+++ b/plugins/gui-standard-display/po/CMakeLists.txt
@@ -0,0 +1 @@
+tde_add_project_translations()
diff --git a/plugins/lirc/CMakeLists.txt b/plugins/lirc/CMakeLists.txt
new file mode 100644
index 0000000..f0e35a1
--- /dev/null
+++ b/plugins/lirc/CMakeLists.txt
@@ -0,0 +1,35 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### lirc (translations)
+
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### lirc (plugin)
+
+tde_add_kpart( liblirc AUTOMOC
+ SOURCES lircsupport.cpp lirc-configuration-ui.ui lirc-configuration.cpp listviewitem_lirc.cpp
+ LINK tderadio-shared ${LIRC_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
+)
+
+
+##### other data
+
+INSTALL(
+ FILES default-dot-lircrc
+ DESTINATION ${DATA_INSTALL_DIR}/tderadio
+)
diff --git a/dot-lircrc.example b/plugins/lirc/dot-lircrc.example
index 73176c4..73176c4 100644
--- a/dot-lircrc.example
+++ b/plugins/lirc/dot-lircrc.example
diff --git a/plugins/lirc/lircsupport.cpp b/plugins/lirc/lircsupport.cpp
index 8fef92f..adb4bb1 100644
--- a/plugins/lirc/lircsupport.cpp
+++ b/plugins/lirc/lircsupport.cpp
@@ -17,9 +17,7 @@
#include "lircsupport.h"
-#ifdef HAVE_LIRC
#include <lirc/lirc_client.h>
-#endif
#include <tqsocketnotifier.h>
#include <tqtimer.h>
@@ -43,9 +41,7 @@
///////////////////////////////////////////////////////////////////////
//// plugin library functions
-//#ifdef HAVE_LIRC
PLUGIN_LIBRARY_FUNCTIONS(LircSupport, "tderadio-lirc", i18n("Linux Infrared Control (LIRC) Support"));
-//#endif
/////////////////////////////////////////////////////////////////////////////
@@ -54,7 +50,6 @@ LircSupport::LircSupport(const TQString &name)
m_TakeRawLIRC(false)
{
-#ifdef HAVE_LIRC
logDebug(i18n("initializing tderadio lirc plugin"));
fprintf (stderr, "%s\n", (const char*)i18n("initializing tderadio lirc plugin").utf8());
char *prg = (char*)"tderadio";
@@ -111,7 +106,6 @@ LircSupport::LircSupport(const TQString &name)
logDebug(i18n("Initializing tderadio lirc plugin successful"));
fprintf (stderr, "%s\n", (const char*)i18n("Initializing tderadio lirc plugin successful").utf8());
}
-#endif
m_kbdTimer = new TQTimer (this);
TQObject::connect (m_kbdTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotKbdTimedOut()));
@@ -122,20 +116,17 @@ LircSupport::LircSupport(const TQString &name)
LircSupport::~LircSupport()
{
-#ifdef HAVE_LIRC
if (m_fd_lirc != -1)
lirc_deinit();
if (m_lircConfig)
lirc_freeconfig(m_lircConfig);
m_fd_lirc = -1;
m_lircConfig = 0;
-#endif
}
void LircSupport::slotLIRC(int /*socket*/ )
{
-#ifdef HAVE_LIRC
if (!m_lircConfig || !m_lirc_notify || m_fd_lirc == -1)
return;
@@ -173,7 +164,6 @@ void LircSupport::slotLIRC(int /*socket*/ )
if (code)
free (code);
-#endif
}
diff --git a/plugins/lirc/lircsupport.h b/plugins/lirc/lircsupport.h
index bd1ad8a..df6b475 100644
--- a/plugins/lirc/lircsupport.h
+++ b/plugins/lirc/lircsupport.h
@@ -141,11 +141,9 @@ signals:
protected:
-#ifdef HAVE_LIRC
TQSocketNotifier *m_lirc_notify;
int m_fd_lirc;
struct lirc_config *m_lircConfig;
-#endif
TQTimer *m_kbdTimer;
int m_addIndex;
diff --git a/plugins/lirc/po/CMakeLists.txt b/plugins/lirc/po/CMakeLists.txt
new file mode 100644
index 0000000..24e3bd8
--- /dev/null
+++ b/plugins/lirc/po/CMakeLists.txt
@@ -0,0 +1 @@
+tde_add_project_translations()
diff --git a/plugins/lirc/po/tderadio-lirc/tderadio-lirc.pot b/plugins/lirc/po/tderadio-lirc/tderadio-lirc.pot
index 9dfef8f..e0e1ccb 100644
--- a/plugins/lirc/po/tderadio-lirc/tderadio-lirc.pot
+++ b/plugins/lirc/po/tderadio-lirc/tderadio-lirc.pot
@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2020-05-11 04:30+0200\n"
+"POT-Creation-Date: 2022-07-09 17:53+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -129,46 +129,46 @@ msgstr ""
msgid "Double Click on the entries to change the assignments"
msgstr ""
-#: lircsupport.cpp:47
+#: lircsupport.cpp:44
msgid "Linux Infrared Control (LIRC) Support"
msgstr ""
-#: lircsupport.cpp:53 lircsupport.cpp:332
+#: lircsupport.cpp:49 lircsupport.cpp:322
msgid "LIRC Plugin"
msgstr ""
-#: lircsupport.cpp:58 lircsupport.cpp:59
+#: lircsupport.cpp:53 lircsupport.cpp:54
msgid "initializing tderadio lirc plugin"
msgstr ""
-#: lircsupport.cpp:67
+#: lircsupport.cpp:62
msgid ""
"%1 does not exist. File was created with TDERadio's default .lircrc proposal"
msgstr ""
-#: lircsupport.cpp:96
+#: lircsupport.cpp:91
msgid "There is no entry for tderadio in any of your .lircrc files."
msgstr ""
-#: lircsupport.cpp:97
+#: lircsupport.cpp:92
msgid "Please setup your .lircrc files correctly."
msgstr ""
-#: lircsupport.cpp:108 lircsupport.cpp:109
+#: lircsupport.cpp:103 lircsupport.cpp:104
msgid "Initializing tderadio lirc plugin failed"
msgstr ""
-#: lircsupport.cpp:111 lircsupport.cpp:112
+#: lircsupport.cpp:106 lircsupport.cpp:107
msgid "Initializing tderadio lirc plugin successful"
msgstr ""
-#: lircsupport.cpp:169
+#: lircsupport.cpp:160
msgid ""
"Reading from LIRC socket failed. Disabling LIRC Functions till next start of "
"tderadio"
msgstr ""
-#: lircsupport.cpp:331
+#: lircsupport.cpp:321
msgid "LIRC Support"
msgstr ""
diff --git a/plugins/oss-sound/CMakeLists.txt b/plugins/oss-sound/CMakeLists.txt
new file mode 100644
index 0000000..e17a3fd
--- /dev/null
+++ b/plugins/oss-sound/CMakeLists.txt
@@ -0,0 +1,28 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### oss-sound (icons and translations)
+
+add_subdirectory( icons )
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### oss-sound (plugin)
+
+tde_add_kpart( liboss-sound AUTOMOC
+ SOURCES oss-sound.cpp oss-sound-configuration-ui.ui oss-sound-configuration.cpp
+ LINK tderadio-shared
+ DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
+)
diff --git a/plugins/oss-sound/icons/CMakeLists.txt b/plugins/oss-sound/icons/CMakeLists.txt
new file mode 100644
index 0000000..63f765b
--- /dev/null
+++ b/plugins/oss-sound/icons/CMakeLists.txt
@@ -0,0 +1 @@
+tde_install_icons( )
diff --git a/plugins/oss-sound/po/CMakeLists.txt b/plugins/oss-sound/po/CMakeLists.txt
new file mode 100644
index 0000000..24e3bd8
--- /dev/null
+++ b/plugins/oss-sound/po/CMakeLists.txt
@@ -0,0 +1 @@
+tde_add_project_translations()
diff --git a/plugins/radio/CMakeLists.txt b/plugins/radio/CMakeLists.txt
new file mode 100644
index 0000000..9877aba
--- /dev/null
+++ b/plugins/radio/CMakeLists.txt
@@ -0,0 +1,28 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/src
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### radio (translations)
+
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### radio (plugin)
+
+tde_add_kpart( libradio AUTOMOC
+ SOURCES radio-configuration.cpp radio-configuration-ui.ui radio.cpp
+ LINK tderadio-shared
+ DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
+)
diff --git a/plugins/radio/po/CMakeLists.txt b/plugins/radio/po/CMakeLists.txt
new file mode 100644
index 0000000..24e3bd8
--- /dev/null
+++ b/plugins/radio/po/CMakeLists.txt
@@ -0,0 +1 @@
+tde_add_project_translations()
diff --git a/plugins/recording/CMakeLists.txt b/plugins/recording/CMakeLists.txt
new file mode 100644
index 0000000..8d9d382
--- /dev/null
+++ b/plugins/recording/CMakeLists.txt
@@ -0,0 +1,33 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### recording (icons and translations)
+
+add_subdirectory( icons )
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### recording (plugin)
+
+tde_add_kpart( librecording AUTOMOC
+ SOURCES
+ recording-configuration.cpp recording-configuration-ui.ui recording.cpp
+ recording-config.cpp reccfg_interfaces.cpp encoder.cpp recording-datamonitor.cpp
+ recording-monitor.cpp encoder_mp3.cpp encoder_ogg.cpp encoder_pcm.cpp
+
+ LINK tderadio-shared ${LAME_LIBRARIES} ${OGG_LIBRARIES} ${VORBIS_LIBRARIES}
+ ${VORBISFILE_LIBRARIES} ${VORBISENC_LIBRARIES} ${SNDFILE_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
+)
diff --git a/plugins/recording/icons/CMakeLists.txt b/plugins/recording/icons/CMakeLists.txt
new file mode 100644
index 0000000..63f765b
--- /dev/null
+++ b/plugins/recording/icons/CMakeLists.txt
@@ -0,0 +1 @@
+tde_install_icons( )
diff --git a/plugins/recording/po/CMakeLists.txt b/plugins/recording/po/CMakeLists.txt
new file mode 100644
index 0000000..24e3bd8
--- /dev/null
+++ b/plugins/recording/po/CMakeLists.txt
@@ -0,0 +1 @@
+tde_add_project_translations()
diff --git a/plugins/soundserver/CMakeLists.txt b/plugins/soundserver/CMakeLists.txt
new file mode 100644
index 0000000..3880ff0
--- /dev/null
+++ b/plugins/soundserver/CMakeLists.txt
@@ -0,0 +1,27 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### soundserver (translations)
+
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### soundserver (plugin)
+
+tde_add_kpart( libsoundserver AUTOMOC
+ SOURCES soundserver.cpp
+ LINK tderadio-shared
+ DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
+)
diff --git a/plugins/soundserver/po/CMakeLists.txt b/plugins/soundserver/po/CMakeLists.txt
new file mode 100644
index 0000000..24e3bd8
--- /dev/null
+++ b/plugins/soundserver/po/CMakeLists.txt
@@ -0,0 +1 @@
+tde_add_project_translations()
diff --git a/plugins/streaming/CMakeLists.txt b/plugins/streaming/CMakeLists.txt
new file mode 100644
index 0000000..d56f58c
--- /dev/null
+++ b/plugins/streaming/CMakeLists.txt
@@ -0,0 +1,31 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### streaming (icons and translations)
+
+add_subdirectory( icons )
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### streaming (plugin)
+
+tde_add_kpart( libstreaming AUTOMOC
+ SOURCES
+ streaming.cpp streaming-configuration-ui.ui
+ streaming-configuration.cpp streaming-job.cpp
+
+ LINK tderadio-shared
+ DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
+)
diff --git a/plugins/streaming/icons/CMakeLists.txt b/plugins/streaming/icons/CMakeLists.txt
new file mode 100644
index 0000000..63f765b
--- /dev/null
+++ b/plugins/streaming/icons/CMakeLists.txt
@@ -0,0 +1 @@
+tde_install_icons( )
diff --git a/plugins/streaming/po/CMakeLists.txt b/plugins/streaming/po/CMakeLists.txt
new file mode 100644
index 0000000..24e3bd8
--- /dev/null
+++ b/plugins/streaming/po/CMakeLists.txt
@@ -0,0 +1 @@
+tde_add_project_translations()
diff --git a/plugins/timecontrol/CMakeLists.txt b/plugins/timecontrol/CMakeLists.txt
new file mode 100644
index 0000000..772612e
--- /dev/null
+++ b/plugins/timecontrol/CMakeLists.txt
@@ -0,0 +1,28 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### timecontrol (icons and translations)
+
+add_subdirectory( icons )
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### timecontrol (plugin)
+
+tde_add_kpart( libtimecontrol AUTOMOC
+ SOURCES timecontrol-configuration.cpp timecontrol-configuration-ui.ui timecontrol.cpp
+ LINK tderadio-shared
+ DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
+)
diff --git a/plugins/timecontrol/icons/CMakeLists.txt b/plugins/timecontrol/icons/CMakeLists.txt
new file mode 100644
index 0000000..63f765b
--- /dev/null
+++ b/plugins/timecontrol/icons/CMakeLists.txt
@@ -0,0 +1 @@
+tde_install_icons( )
diff --git a/plugins/timecontrol/po/CMakeLists.txt b/plugins/timecontrol/po/CMakeLists.txt
new file mode 100644
index 0000000..24e3bd8
--- /dev/null
+++ b/plugins/timecontrol/po/CMakeLists.txt
@@ -0,0 +1 @@
+tde_add_project_translations()
diff --git a/plugins/timeshifter/CMakeLists.txt b/plugins/timeshifter/CMakeLists.txt
new file mode 100644
index 0000000..d0c2e81
--- /dev/null
+++ b/plugins/timeshifter/CMakeLists.txt
@@ -0,0 +1,28 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### timeshifter (icons and translations)
+
+add_subdirectory( icons )
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### timeshifter (plugin)
+
+tde_add_kpart( libtimeshifter AUTOMOC
+ SOURCES timeshifter.cpp timeshifter-configuration-ui.ui timeshifter-configuration.cpp
+ LINK tderadio-shared
+ DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
+)
diff --git a/plugins/timeshifter/icons/CMakeLists.txt b/plugins/timeshifter/icons/CMakeLists.txt
new file mode 100644
index 0000000..63f765b
--- /dev/null
+++ b/plugins/timeshifter/icons/CMakeLists.txt
@@ -0,0 +1 @@
+tde_install_icons( )
diff --git a/plugins/timeshifter/po/CMakeLists.txt b/plugins/timeshifter/po/CMakeLists.txt
new file mode 100644
index 0000000..24e3bd8
--- /dev/null
+++ b/plugins/timeshifter/po/CMakeLists.txt
@@ -0,0 +1 @@
+tde_add_project_translations()
diff --git a/plugins/v4lradio/CMakeLists.txt b/plugins/v4lradio/CMakeLists.txt
new file mode 100644
index 0000000..2953f45
--- /dev/null
+++ b/plugins/v4lradio/CMakeLists.txt
@@ -0,0 +1,30 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### v4lradio (translations)
+
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### v4lradio (plugin)
+
+tde_add_kpart( libv4lradio AUTOMOC
+ SOURCES
+ v4lcfg_interfaces.cpp v4lradio-configuration.cpp
+ v4lradio-configuration-ui.ui v4lradio.cpp
+
+ LINK tderadio-shared
+ DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
+)
diff --git a/plugins/v4lradio/po/CMakeLists.txt b/plugins/v4lradio/po/CMakeLists.txt
new file mode 100644
index 0000000..24e3bd8
--- /dev/null
+++ b/plugins/v4lradio/po/CMakeLists.txt
@@ -0,0 +1 @@
+tde_add_project_translations()
diff --git a/plugins/v4lradio/v4lradio.cpp b/plugins/v4lradio/v4lradio.cpp
index 97564ea..963ec56 100644
--- a/plugins/v4lradio/v4lradio.cpp
+++ b/plugins/v4lradio/v4lradio.cpp
@@ -180,7 +180,7 @@ void V4LRadio::noticeConnectedI (ISoundStreamServer *s, bool pointer_valid)
s->register4_sendPlaybackVolume(this);
s->register4_sendCaptureVolume(this);
-
+
s->register4_sendStopCapture(this);
s->register4_querySoundStreamDescription(this);
@@ -1083,7 +1083,7 @@ ConfigPageInfo V4LRadio::createConfigurationPage()
AboutPageInfo V4LRadio::createAboutPage()
{
- TDEAboutData aboutData("tderadio",
+/* TDEAboutData aboutData("tderadio",
NULL,
NULL,
I18N_NOOP("V4L/V4L2 Plugin for TDERadio."
@@ -1104,7 +1104,8 @@ AboutPageInfo V4LRadio::createAboutPage()
i18n("V4L/V4L2"),
i18n("V4L/V4L2 Plugin"),
"applications-utilities"
- );
+ );*/
+ return AboutPageInfo();
}
////////////////////////////////////////
diff --git a/presets/CMakeLists.txt b/presets/CMakeLists.txt
new file mode 100644
index 0000000..85bc5cb
--- /dev/null
+++ b/presets/CMakeLists.txt
@@ -0,0 +1,23 @@
+file( GLOB_RECURSE _preset_dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/* )
+
+unset( _dirs )
+foreach( _preset_dir IN LISTS _preset_dirs )
+ get_filename_component( _dir ${_preset_dir} PATH )
+ list( APPEND _dirs ${_dir} )
+endforeach()
+if( _dirs )
+ list( SORT _dirs )
+ list( REMOVE_DUPLICATES _dirs )
+endif()
+
+foreach( _dir IN LISTS _dirs )
+ file( GLOB _krp_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${_dir}/*.krp )
+
+ if( _krp_files )
+ INSTALL(
+ FILES ${_krp_files}
+ DESTINATION ${DATA_INSTALL_DIR}/tderadio/presets/${_dir}
+ )
+ endif()
+endforeach()
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..f8370cd
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,89 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/include
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### tderadio (translations)
+
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
+
+
+##### tderadio (shared)
+
+tde_add_library( tderadio SHARED AUTOMOC
+ META_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}/include
+ SOURCES
+ alarm.cpp
+ debug-profiler.cpp
+ errorlog-interfaces.cpp
+ fileringbuffer.cpp
+ frequencyradiostation.cpp
+ frequencyseekhelper.cpp
+ internetradiostation.cpp
+ multibuffer.cpp
+ plugin_configuration_dialog.cpp
+ plugins.cpp
+ pluginmanager.cpp
+ pluginmanager-configuration.cpp
+ pluginmanager-configuration-ui.ui
+ radio_interfaces.cpp
+ radiodevice_interfaces.cpp
+ radiodevicepool_interfaces.cpp
+ radiostation.cpp
+ radiostation-config.cpp
+ radiostation-listview.cpp
+ ringbuffer.cpp
+ seekhelper.cpp
+ soundformat.cpp
+ soundstreamclient_interfaces.cpp
+ soundstreamid.cpp
+ standardscandialog.cpp
+ standardscandialog-ui.ui
+ station-drag-object.cpp
+ stationlist.cpp
+ stationlistxmlhandler.cpp
+ stationselection_interfaces.cpp
+ stationselector.cpp
+ stationselector-ui.ui
+ timecontrol_interfaces.cpp
+ utils.cpp
+ widgetplugins.cpp
+
+ LINK tdecore-shared tdeui-shared tdeio-shared
+ VERSION 0.0.0
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### tderadio (executable)
+
+tde_add_executable( tderadio AUTOMOC
+ META_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}/include
+ SOURCES
+ main.cpp
+ tderadioapp.cpp
+ aboutwidget.cpp
+
+ LINK tderadio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data
+
+tde_create_translated_desktop( tderadio.desktop )
+
+INSTALL(
+ FILES tderadio.xpm
+ DESTINATION ${SHARE_INSTALL_PREFIX}/pixmaps
+)
diff --git a/src/Makefile.am b/src/Makefile.am
index 774b857..f4fe0b2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,8 +8,6 @@ METASOURCES = AUTO
META_INCLUDES = $(srcdir)/include
-KDE_CXXFLAGS="-UQT_NO_ASCII_CAST"
-
bin_PROGRAMS = tderadio
tderadio_SOURCES = \
diff --git a/src/debug-profiler.cpp b/src/debug-profiler.cpp
index 5194b7e..f8262dd 100644
--- a/src/debug-profiler.cpp
+++ b/src/debug-profiler.cpp
@@ -21,8 +21,8 @@
#include <sys/resource.h>
-TimeProfiler global_time_profiler;
-MemProfiler global_mem_profiler;
+KDE_EXPORT TimeProfiler global_time_profiler;
+KDE_EXPORT MemProfiler global_mem_profiler;
Profiler::Profiler()
{
diff --git a/src/include/alarm.h b/src/include/alarm.h
index 14b4abc..ae28f4a 100644
--- a/src/include/alarm.h
+++ b/src/include/alarm.h
@@ -23,13 +23,14 @@
#endif
#include <tqdatetime.h>
+#include <kdemacros.h>
#include <vector>
/**
*@author Martin Witte
*/
-class Alarm
+class KDE_EXPORT Alarm
{
public:
diff --git a/src/include/debug-profiler.h b/src/include/debug-profiler.h
index 7ceb50d..1e46111 100644
--- a/src/include/debug-profiler.h
+++ b/src/include/debug-profiler.h
@@ -24,6 +24,7 @@
#include <tqstring.h>
#include <tqmap.h>
+#include <kdemacros.h>
#if (defined __i386__) || (defined __x86_64__)
static __inline__ unsigned long long int rdtsc()
@@ -39,7 +40,7 @@ static __inline__ unsigned long long int rdtsc()
}
#endif
-class Profiler
+class KDE_EXPORT Profiler
{
public:
Profiler();
@@ -76,14 +77,14 @@ protected:
};
-class TimeProfiler : public Profiler
+class KDE_EXPORT TimeProfiler : public Profiler
{
protected:
long long getCounter() const { return rdtsc(); }
};
-class MemProfiler : public Profiler
+class KDE_EXPORT MemProfiler : public Profiler
{
protected:
long long getCounter() const;
@@ -95,7 +96,7 @@ extern MemProfiler global_mem_profiler;
-class BlockProfiler
+class KDE_EXPORT BlockProfiler
{
public:
BlockProfiler(const TQString &descr);
diff --git a/src/include/fileringbuffer.h b/src/include/fileringbuffer.h
index 2978bec..0622af9 100644
--- a/src/include/fileringbuffer.h
+++ b/src/include/fileringbuffer.h
@@ -23,9 +23,10 @@
#endif
#include <tqstring.h>
+#include <kdemacros.h>
#include <stdio.h>
-class FileRingBuffer
+class KDE_EXPORT FileRingBuffer
{
public:
FileRingBuffer(const TQString &filename, TQ_UINT64 max_size);
diff --git a/src/include/frequencyradiostation.h b/src/include/frequencyradiostation.h
index 75c6ecd..eb62e4d 100644
--- a/src/include/frequencyradiostation.h
+++ b/src/include/frequencyradiostation.h
@@ -22,6 +22,8 @@
#include <config.h>
#endif
+#include <kdemacros.h>
+
#include "radiostation.h"
/**
@@ -35,7 +37,7 @@
// Kopenhagener Wellenplan: 9kHz
#define STATION_FREQ_INTERVAL_AM 0.009
-class FrequencyRadioStation : public RadioStation {
+class KDE_EXPORT FrequencyRadioStation : public RadioStation {
public:
FrequencyRadioStation ();
FrequencyRadioStation (float frequency);
diff --git a/src/include/frequencyseekhelper.h b/src/include/frequencyseekhelper.h
index 68ffe78..9fbdd87 100644
--- a/src/include/frequencyseekhelper.h
+++ b/src/include/frequencyseekhelper.h
@@ -23,15 +23,16 @@
#endif
#include <tqobject.h>
+#include <kdemacros.h>
#include "radiodevice_interfaces.h"
#include "seekhelper.h"
-class FrequencySeekHelper : public TQObject,
- public SeekHelper,
- public IFrequencyRadioClient
+class KDE_EXPORT FrequencySeekHelper : public TQObject,
+ public SeekHelper,
+ public IFrequencyRadioClient
{
Q_OBJECT
-
+
public:
FrequencySeekHelper(ISeekRadio &parent);
diff --git a/src/include/interfaces.h b/src/include/interfaces.h
index 0ed4a59..a969ef6 100644
--- a/src/include/interfaces.h
+++ b/src/include/interfaces.h
@@ -401,7 +401,7 @@ private:
#define INTERFACE(IF, cmplIF) \
class IF; \
class cmplIF; \
- class IF : public InterfaceBase<IF, cmplIF> \
+ class KDE_EXPORT IF : public InterfaceBase<IF, cmplIF> \
#define IF_CON_DESTRUCTOR(IF, n) \
IF() : BaseClass((n)) {} \
diff --git a/src/include/internetradiostation.h b/src/include/internetradiostation.h
index 716dba2..4389ee0 100644
--- a/src/include/internetradiostation.h
+++ b/src/include/internetradiostation.h
@@ -26,12 +26,13 @@
// KDE includes
#include <kurl.h>
+#include <kdemacros.h>
/**
* @author Klas Kalass, Ernst Martin Witte
*/
-class InternetRadioStation : public RadioStation {
+class KDE_EXPORT InternetRadioStation : public RadioStation {
public:
InternetRadioStation();
InternetRadioStation(KURL const &url);
diff --git a/src/include/multibuffer.h b/src/include/multibuffer.h
index e0ed05c..bebbac8 100644
--- a/src/include/multibuffer.h
+++ b/src/include/multibuffer.h
@@ -24,8 +24,9 @@
#include <tqsemaphore.h>
#include <tqstring.h>
+#include <kdemacros.h>
-class MultiBuffer
+class KDE_EXPORT MultiBuffer
{
public:
MultiBuffer(size_t n_buffers, size_t buffersize);
diff --git a/src/include/pluginmanager.h b/src/include/pluginmanager.h
index 3bf13f4..8c3dc86 100644
--- a/src/include/pluginmanager.h
+++ b/src/include/pluginmanager.h
@@ -24,6 +24,7 @@
#include <tqstring.h>
#include <tqptrdict.h>
+#include <kdemacros.h>
#include "plugins.h"
@@ -42,10 +43,10 @@ class TQMenuData;
class TDERadioApp;
-class PluginManager : public TQObject
+class KDE_EXPORT PluginManager : public TQObject
{
Q_OBJECT
-
+
public :
PluginManager(const TQString &name,
TDERadioApp *app,
diff --git a/src/include/plugins.h b/src/include/plugins.h
index c39b65e..cb79d14 100644
--- a/src/include/plugins.h
+++ b/src/include/plugins.h
@@ -80,7 +80,7 @@ struct ConfigPageInfo
typedef ConfigPageInfo AboutPageInfo;
-class PluginBase : public IErrorLogClient
+class KDE_EXPORT PluginBase : public IErrorLogClient
{
friend class PluginManager;
public :
@@ -135,22 +135,22 @@ protected :
#define PLUGIN_LIBRARY_FUNCTIONS(class_name, i18nName, description) \
-extern "C" void TDERadioPlugin_LoadLibrary() \
+extern "C" KDE_EXPORT void TDERadioPlugin_LoadLibrary() \
{ \
TDEGlobal::locale()->insertCatalogue(i18nName); \
} \
\
-extern "C" void TDERadioPlugin_UnloadLibrary() \
+extern "C" KDE_EXPORT void TDERadioPlugin_UnloadLibrary() \
{ \
TDEGlobal::locale()->removeCatalogue(i18nName); \
} \
\
-extern "C" void TDERadioPlugin_GetAvailablePlugins(TQMap<TQString, TQString> &info) \
+extern "C" KDE_EXPORT void TDERadioPlugin_GetAvailablePlugins(TQMap<TQString, TQString> &info) \
{ \
info.insert(#class_name, (description)); \
} \
\
-extern "C" PluginBase *TDERadioPlugin_CreatePlugin(const TQString &type, const TQString &object_name) \
+extern "C" KDE_EXPORT PluginBase *TDERadioPlugin_CreatePlugin(const TQString &type, const TQString &object_name) \
{ \
if (type == #class_name) { \
return new class_name(object_name); \
@@ -161,23 +161,23 @@ extern "C" PluginBase *TDERadioPlugin_CreatePlugin(const TQString &type, const T
#define PLUGIN_LIBRARY_FUNCTIONS2(class_name1, i18nName, description1, class_name2, description2) \
-extern "C" void TDERadioPlugin_LoadLibrary() \
+extern "C" KDE_EXPORT void TDERadioPlugin_LoadLibrary() \
{ \
TDEGlobal::locale()->insertCatalogue(i18nName); \
} \
\
-extern "C" void TDERadioPlugin_UnloadLibrary() \
+extern "C" KDE_EXPORT void TDERadioPlugin_UnloadLibrary() \
{ \
TDEGlobal::locale()->removeCatalogue(i18nName); \
} \
\
-extern "C" void TDERadioPlugin_GetAvailablePlugins(TQMap<TQString, TQString> &info) \
+extern "C" KDE_EXPORT void TDERadioPlugin_GetAvailablePlugins(TQMap<TQString, TQString> &info) \
{ \
info.insert(#class_name1, (description1)); \
info.insert(#class_name2, (description2)); \
} \
\
-extern "C" PluginBase *TDERadioPlugin_CreatePlugin(const TQString &type, const TQString &object_name) \
+extern "C" KDE_EXPORT PluginBase *TDERadioPlugin_CreatePlugin(const TQString &type, const TQString &object_name) \
{ \
if (type == #class_name1) { \
return new class_name1(object_name); \
diff --git a/src/include/radiostation-config.h b/src/include/radiostation-config.h
index 2efad05..8cf3132 100644
--- a/src/include/radiostation-config.h
+++ b/src/include/radiostation-config.h
@@ -23,32 +23,33 @@
#endif
#include <tqwidget.h>
+#include <kdemacros.h>
class RadioStation;
-class RadioStationConfig : public TQWidget
+class KDE_EXPORT RadioStationConfig : public TQWidget
{
Q_OBJECT
-
+
public:
- RadioStationConfig(TQWidget *parent);
+ RadioStationConfig(TQWidget *parent);
~RadioStationConfig();
virtual void setStationData (const RadioStation &rs) = 0;
virtual void storeStationData (RadioStation &rs) = 0;
signals:
- virtual void changed(RadioStationConfig *);
+ virtual void changed(RadioStationConfig *);
};
-class UndefinedRadioStationConfig : public RadioStationConfig
+class KDE_EXPORT UndefinedRadioStationConfig : public RadioStationConfig
{
Q_OBJECT
-
+
public:
- UndefinedRadioStationConfig (TQWidget *parent);
- ~UndefinedRadioStationConfig();
+ UndefinedRadioStationConfig (TQWidget *parent);
+ ~UndefinedRadioStationConfig();
virtual void setStationData (const RadioStation &rs);
virtual void storeStationData (RadioStation &rs);
@@ -58,23 +59,23 @@ public:
class TQSpinBox;
-class FrequencyRadioStationConfig : public RadioStationConfig
+class KDE_EXPORT FrequencyRadioStationConfig : public RadioStationConfig
{
Q_OBJECT
-
+
public:
- FrequencyRadioStationConfig (TQWidget *parent);
- ~FrequencyRadioStationConfig();
+ FrequencyRadioStationConfig (TQWidget *parent);
+ ~FrequencyRadioStationConfig();
virtual void setStationData (const RadioStation &rs);
virtual void storeStationData (RadioStation &rs);
protected slots:
- virtual void slotValueChanged(int);
+ virtual void slotValueChanged(int);
protected:
- TQSpinBox *m_editFrequency;
+ TQSpinBox *m_editFrequency;
};
diff --git a/src/include/radiostation-listview.h b/src/include/radiostation-listview.h
index 2ecb86f..f96269f 100644
--- a/src/include/radiostation-listview.h
+++ b/src/include/radiostation-listview.h
@@ -28,10 +28,10 @@
class RadioStation;
class StationList;
-class RadioStationListView : public TDEListView
+class KDE_EXPORT RadioStationListView : public TDEListView
{
Q_OBJECT
-
+
public:
RadioStationListView(TQWidget *parent=0, const char *name=0);
virtual ~RadioStationListView();
diff --git a/src/include/radiostation.h b/src/include/radiostation.h
index 68d0325..8534bf0 100644
--- a/src/include/radiostation.h
+++ b/src/include/radiostation.h
@@ -67,7 +67,7 @@ extern struct RegisterStationClass {} registerStationClass;
class RadioStationConfig;
-class RadioStation
+class KDE_EXPORT RadioStation
{
protected:
RadioStation (RegisterStationClass, const TQString &classname);
@@ -142,7 +142,7 @@ private:
-class UndefinedRadioStation : public RadioStation
+class KDE_EXPORT UndefinedRadioStation : public RadioStation
{
public:
UndefinedRadioStation (RegisterStationClass) : RadioStation (registerStationClass, getClassName()) {}
@@ -159,6 +159,6 @@ public:
};
-extern const UndefinedRadioStation undefinedRadioStation;
+extern "C" const UndefinedRadioStation undefinedRadioStation;
#endif
diff --git a/src/include/ringbuffer.h b/src/include/ringbuffer.h
index 1f545ca..d82c546 100644
--- a/src/include/ringbuffer.h
+++ b/src/include/ringbuffer.h
@@ -23,8 +23,9 @@
#endif
#include <sys/types.h>
+#include <kdemacros.h>
-class RingBuffer
+class KDE_EXPORT RingBuffer
{
public:
RingBuffer(size_t size);
diff --git a/src/include/seekhelper.h b/src/include/seekhelper.h
index f61ad9d..76f0e81 100644
--- a/src/include/seekhelper.h
+++ b/src/include/seekhelper.h
@@ -22,12 +22,14 @@
#include <config.h>
#endif
+#include <kdemacros.h>
+
#include "radiodevice_interfaces.h"
#include "soundstreamclient_interfaces.h"
-class SeekHelper : public IRadioDeviceClient,
- public ISoundStreamClient
+class KDE_EXPORT SeekHelper : public IRadioDeviceClient,
+ public ISoundStreamClient
{
public:
typedef enum { off, searchWorse, searchBest } state_t;
diff --git a/src/include/soundformat.h b/src/include/soundformat.h
index 0f07d9a..566cddc 100644
--- a/src/include/soundformat.h
+++ b/src/include/soundformat.h
@@ -26,7 +26,7 @@
#include <tqstring.h>
#include <tdeconfig.h>
-struct SoundFormat {
+struct KDE_EXPORT SoundFormat {
unsigned m_SampleRate;
unsigned m_Channels;
unsigned m_SampleBits;
diff --git a/src/include/soundstreamid.h b/src/include/soundstreamid.h
index e7aa4d5..b801e6b 100644
--- a/src/include/soundstreamid.h
+++ b/src/include/soundstreamid.h
@@ -22,7 +22,9 @@
#include <config.h>
#endif
-class SoundStreamID {
+#include <kdemacros.h>
+
+class KDE_EXPORT SoundStreamID {
SoundStreamID(int _id, int _phys_id);
public:
diff --git a/src/include/standardscandialog.h b/src/include/standardscandialog.h
index 2be7c74..ef16d2f 100644
--- a/src/include/standardscandialog.h
+++ b/src/include/standardscandialog.h
@@ -29,14 +29,15 @@
#include <tqtimer.h>
#include <tqdatetime.h>
+#include <kdemacros.h>
-class StandardScanDialog : public StandardScanDialogUI,
- public ISeekRadioClient,
-// public IRadioSoundClient,
- public IRadioClient
+class KDE_EXPORT StandardScanDialog : public StandardScanDialogUI,
+ public ISeekRadioClient,
+// public IRadioSoundClient,
+ public IRadioClient
{
Q_OBJECT
-
+
public:
StandardScanDialog(TQWidget *parent);
~StandardScanDialog();
diff --git a/src/include/station-drag-object.h b/src/include/station-drag-object.h
index 5796dd0..2e39653 100644
--- a/src/include/station-drag-object.h
+++ b/src/include/station-drag-object.h
@@ -19,8 +19,9 @@
#define KRADIO_STATION_DRAG_OBJECT_H
#include <tqdragobject.h>
+#include <kdemacros.h>
-class StationDragObject : public TQStoredDrag
+class KDE_EXPORT StationDragObject : public TQStoredDrag
{
public:
StationDragObject(const TQStringList &stationIDs, TQWidget *dragSource = NULL, const char * name = NULL);
diff --git a/src/include/stationlist.h b/src/include/stationlist.h
index dcacdca..0c8a6ff 100644
--- a/src/include/stationlist.h
+++ b/src/include/stationlist.h
@@ -26,6 +26,7 @@
#include "errorlog-interfaces.h"
#include <tqptrlist.h>
+#include <kdemacros.h>
class RadioStation;
class KURL;
@@ -52,7 +53,7 @@ class KURL;
*/
-class RawStationList : public TQPtrList<RadioStation>
+class KDE_EXPORT RawStationList : public TQPtrList<RadioStation>
{
public:
@@ -100,7 +101,7 @@ protected:
* @author Klas Kalass, Ernst Martin Witte
*/
-class StationList {
+class KDE_EXPORT StationList {
public:
StationList();
StationList(const StationList &sl);
diff --git a/src/include/stationselector.h b/src/include/stationselector.h
index 009293e..3f83f90 100644
--- a/src/include/stationselector.h
+++ b/src/include/stationselector.h
@@ -23,6 +23,7 @@
#endif
#include <tqstringlist.h>
+#include <kdemacros.h>
#include "radio_interfaces.h"
#include "stationselection_interfaces.h"
@@ -34,12 +35,12 @@
class RadioStationListView;
-class StationSelector : public StationSelectorUI,
- public IRadioClient,
- public IStationSelectionClient
+class KDE_EXPORT StationSelector : public StationSelectorUI,
+ public IRadioClient,
+ public IStationSelectionClient
{
Q_OBJECT
-
+
public :
StationSelector (TQWidget *parent);
~StationSelector ();
@@ -62,7 +63,7 @@ public :
void saveState (TDEConfig *) const;
void restoreState (TDEConfig *);
-
+
bool isDirty () const { return m_dirty; }
protected slots:
diff --git a/src/include/widgetplugins.h b/src/include/widgetplugins.h
index 69bb0bf..c29bc2f 100644
--- a/src/include/widgetplugins.h
+++ b/src/include/widgetplugins.h
@@ -26,7 +26,7 @@
class TQWidget;
-class WidgetPluginBase : public PluginBase
+class KDE_EXPORT WidgetPluginBase : public PluginBase
{
public :
WidgetPluginBase(const TQString &name, const TQString &description);
diff --git a/src/po/CMakeLists.txt b/src/po/CMakeLists.txt
new file mode 100644
index 0000000..24e3bd8
--- /dev/null
+++ b/src/po/CMakeLists.txt
@@ -0,0 +1 @@
+tde_add_project_translations()
diff --git a/src/radiostation.cpp b/src/radiostation.cpp
index 4870f3d..ba72c44 100644
--- a/src/radiostation.cpp
+++ b/src/radiostation.cpp
@@ -42,8 +42,8 @@ TQDict<RadioStation> *RadioStation::stationClassRegistry = 0;
/////////////////////////////////////////////////////////////////////////////
-RegisterStationClass registerStationClass;
-const UndefinedRadioStation undefinedRadioStation (registerStationClass);
+KDE_EXPORT RegisterStationClass registerStationClass;
+extern "C" const KDE_EXPORT UndefinedRadioStation undefinedRadioStation (registerStationClass);
/////////////////////////////////////////////////////////////////////////////
diff --git a/src/stationlist.cpp b/src/stationlist.cpp
index b8bed53..391efd9 100644
--- a/src/stationlist.cpp
+++ b/src/stationlist.cpp
@@ -32,7 +32,7 @@
//////////////////////////////////////////////////////////////////////////////
-const StationList emptyStationList;
+const KDE_EXPORT StationList emptyStationList;
//////////////////////////////////////////////////////////////////////////////
diff --git a/src/stationselector-ui.ui b/src/stationselector-ui.ui
index 3020fe5..6391158 100644
--- a/src/stationselector-ui.ui
+++ b/src/stationselector-ui.ui
@@ -168,4 +168,5 @@
<include location="global" impldecl="in implementation">kpushbutton.h</include>
<include location="global" impldecl="in implementation">radiostation-listview.h</include>
</includes>
+<exportmacro>KDE_EXPORT</exportmacro>
</UI>
diff --git a/src/tderadio.xpm b/src/tderadio.xpm
new file mode 100644
index 0000000..d58ca3f
--- /dev/null
+++ b/src/tderadio.xpm
@@ -0,0 +1,189 @@
+/* XPM */
+static char *tderadio[] = {
+/* columns rows colors chars-per-pixel */
+"32 32 151 2 ",
+" c #000000",
+". c #0D0603",
+"X c #00040A",
+"o c #06090E",
+"O c #150D0A",
+"+ c #1A120F",
+"@ c #010710",
+"# c #090C10",
+"$ c #050E1C",
+"% c #0C121A",
+"& c #29150C",
+"* c #351406",
+"= c #3B180A",
+"- c #2C1B14",
+"; c #301E16",
+": c #32211A",
+"> c #3C241B",
+", c #030F22",
+"< c #111925",
+"1 c #0C1D37",
+"2 c #0D1F3A",
+"3 c #172437",
+"4 c #13223A",
+"5 c #19273C",
+"6 c #1A283D",
+"7 c #551F09",
+"8 c #411E10",
+"9 c #452314",
+"0 c #40261B",
+"q c #552917",
+"w c #752A0B",
+"e c #782D0E",
+"r c #68321C",
+"t c #7C3619",
+"y c #462C22",
+"u c #463026",
+"i c #4C3329",
+"p c #5A3221",
+"a c #543529",
+"s c #563527",
+"d c #663B2A",
+"f c #773E26",
+"g c #723F2A",
+"h c #603F31",
+"j c #6E412E",
+"k c #654132",
+"l c #6A493A",
+"z c #6E4331",
+"x c #744735",
+"c c #172945",
+"v c #1A2E4E",
+"b c #1D3456",
+"n c #0C397F",
+"m c #1C427C",
+"M c #284675",
+"N c #823718",
+"B c #84391A",
+"V c #8A3F20",
+"C c #8D4223",
+"Z c #89462A",
+"A c #914627",
+"S c #924728",
+"D c #954A2B",
+"F c #994E2F",
+"G c #844A31",
+"H c #9A4F30",
+"J c #86533E",
+"K c #9D5233",
+"L c #955337",
+"P c #A15636",
+"I c #A65B3B",
+"U c #A95E3F",
+"Y c #895945",
+"T c #AA5F40",
+"R c #A25F44",
+"E c #8D614E",
+"W c #93634E",
+"Q c #996854",
+"! c #936451",
+"~ c #AC6142",
+"^ c #A2684F",
+"/ c #B16646",
+"( c #B26748",
+") c #B66B4C",
+"_ c #B96E4E",
+"` c #AC6D52",
+"' c #AD745B",
+"] c #BD7252",
+"[ c #AF7860",
+"{ c #C17656",
+"} c #C57A5B",
+"| c #C87D5E",
+" . c #CA7F60",
+".. c #CD8263",
+"X. c #C58469",
+"o. c #D18666",
+"O. c #D28768",
+"+. c #D58A6B",
+"@. c #D98E6E",
+"#. c #DA8F70",
+"$. c #DD9272",
+"%. c #D39174",
+"&. c #E19676",
+"*. c #E59A7A",
+"=. c #E99E7E",
+"-. c #00378B",
+";. c #033A8D",
+":. c #0C3C85",
+">. c #083E90",
+",. c #1E4888",
+"<. c #0E4393",
+"1. c #114595",
+"2. c #154998",
+"3. c #1A4D9B",
+"4. c #1D509D",
+"5. c #2C4D80",
+"6. c #2F538A",
+"7. c #325994",
+"8. c #3F6296",
+"9. c #2456A2",
+"0. c #2A5BA6",
+"q. c #2759A4",
+"w. c #3666AE",
+"e. c #3968AF",
+"r. c #3D6BB2",
+"t. c #42679E",
+"y. c #416FB5",
+"u. c #4371B5",
+"i. c #4976B9",
+"p. c #4C79BC",
+"a. c #507CBE",
+"s. c #577CB4",
+"d. c #537FC0",
+"f. c #5A81BC",
+"g. c #5681C2",
+"h. c #5D86C4",
+"j. c #5E88C8",
+"k. c #628BCA",
+"l. c #688CC4",
+"z. c #6790CD",
+"x. c #6B92CE",
+"c. c #6E96D2",
+"v. c #739AD5",
+"b. c #7EA3DC",
+"n. c #EDA282",
+"m. c #F1A686",
+"M. c #F4A989",
+"N. c #F9AE8E",
+"B. c #FCB191",
+"V. c #81A6DD",
+"C. c None",
+/* pixels */
+"C.C.C.C.C.C.v C.C.C.C.C.C. C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.",
+"C.C. 4 C.C.C. C.C.n.=.*.*.m.=.m.C.C.C.C.C.C.C.",
+" C.C.C.C.r.C.C.C. C.C.C. - ..I S C A H ) ..*.C.C.C.C.C.C.",
+" C.C.C.C.C.M C.C.C.C.C. C.&.> p P S S A V B C } *.C.C.C.C.C.",
+"C.C.C. $ b o C.C.C. : +.R . Z F P T I H C F +.&.C.C.C.C.",
+"C. C.C.C.r.C.C.C. C.C.C.O ` P 9 0 P _ +.@.} ~ K ) &.$.C.C.C.",
+"C. C.C.C.r.i.h.C.C.C. C.C.Y > H t . K _ &.n.n.@._ ~ +.$.C.C.C.",
+" C.C.3.9.r.d.k.v.C.C.C. C.+.O L A & f ) $.n.m.M.&...+.@.@.C.C.",
+"C.C.C.>.9.r.d.k.v.b.C.C. W +.s z K p d } +.&.M.N.M.=.$.@.+.C.C.",
+"C.C.<.;.4.w.i.j.z.c.x.C.u k +.Y a S g p _ _ | *.N.B.N.*.O.o.C.C.",
+"C.C.;.-.1.0.r.p.g.g.d.C.W y o.^ a T 7 * B C I } m.B.B.*.+.@.C.C.",
+"C.C.<.-.>.3.0.e.y.u.i.C.C.i +.' a ..r * w w e P #.N.B.=.+.@.C.C.",
+"C.C.C.-.-.;.2.9.q.q.C.C.: l =.Q k #.Y 9 A N e B O.N.B.n.#.@.C.C.",
+"C.C.C.1.-.-.-.>.1.C.C.C.X [ m.l ! @.k j ~ I S A ..N.B.=.+.@.C.C.",
+" C.C.C.1.1.1.9.u.C.C.C. m.m.+ %...- G P S S H | m.N.*.o.+.C.C.",
+"C. C.C.1.9.r.a.j.C.C. C.m.E i O.Z . V S S C F } n.N.&.o.o.C.C.",
+"C.C. C.<.9.r.a.f.C. C.C.X.O X...8 = t S P P / | *.M.$.o.C.C.C.",
+"C.C.C.X X 1 v 3 # C.C.C.O x +.` . t B K / } ] ..=.n...| C.C.C.",
+" C.C.C.:.m 5.t.h.C.C.C. C.C._ ; q F U ) &.=.+.&.=.*.| C.C.C.C.",
+" C.C.<.q.r.p.k.C. C.C.C.0 0 P / { @.*.=.n.m.*.@.| C.C.C.C.",
+"C.C. X $ 2 c 5 % o C.C.C.C. > ..+.o.O.@.=.n.m.m.*...} C.C.C.C.",
+"C.C.C.-.:.m 6.8.f.c.C.C.C. +.=.M.*.| +.*.n.n.=.@.] ..C.C.C.C.",
+" C.-.<.q.r.a.k.l.C. C.C.*.m.M.$.O.$.n.n.*.@. .| C.C.C.C.C.",
+"C.C. X , 1 4 5 < # C.C.C.C.&.n.n.&.&.=.m.=.$.+.+.@.C.C.C.C.C.",
+"C.C.C.-.n ,.7.t.s.v.C.C.C.C.C.C...=.=.&.=.m.M.=.@.+.C.C.C.C.C.C.",
+"C.C.C.-.<.9.r.a.k.v.C.C.C.C.C.C.] | +.@.=.m.n.*.+.@.C.C.C.C.C.C.",
+"C.C.C.-.<.q.r.a.k.v.C.C.C.C.C.C.C.) { o.=.=.&.O...C.C.C.C.C.C.C.",
+"C.C.-.-.<.9.r.a.k.v.C.C.C.C.C.C.C.C.) ) +.+...+.C.C.C.C.C.C.C.C.",
+"C.C.-.-.<.q.r.p.k.c.b.C.C.C.C.C.C.C.( U { / { C.C.C.C.C.C.C.C.C.",
+"C.C.-.-.<.q.r.a.k.v.V.C.C.C.C.C.C.C.C./ U C.C.C.C.C.C.C.C.C.C.C.",
+"C.C.C.-.<.9.r.d.k.v.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.",
+"C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C."
+};